@ckeditor/ckeditor5-revision-history 0.0.0-nightly-20250203.0 → 0.0.0-nightly-20250205.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/revision-history.js +1 -1
- package/dist/index.js +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +10 -10
- package/src/changeitem.js +2 -2
- package/src/editor/revisionviewereditor.js +2 -2
- package/src/editor/revisionviewereditorui.js +1 -1
- package/src/editor/revisionviewereditoruiview.js +1 -1
- package/src/index.js +1 -1
- package/src/revision.js +2 -2
- package/src/revisiondiff.js +1 -1
- package/src/revisionhistory.js +1 -1
- package/src/revisionsrepository.js +1 -1
- package/src/revisiontracker.js +1 -1
- package/src/revisionviewer.js +1 -1
- package/src/ui/revision/createrevisionactionsdropdown.js +1 -1
- package/src/ui/revision/revisionauthorview.js +1 -1
- package/src/ui/revision/revisionnameview.js +1 -1
- package/src/ui/revision/revisionview.js +2 -2
- package/src/ui/revision/subrevisioncollapserview.js +1 -1
- package/src/ui/revision/subrevisionview.js +1 -1
- package/src/ui/revision/utils.js +1 -1
- package/src/ui/revisionhistory/revisionhistorysaverevisionformview.js +1 -1
- package/src/ui/revisionhistory/revisionhistoryui.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebar.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarheaderview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebartimeperiodview.js +1 -1
- package/src/ui/revisionssidebar/revisionssidebarview.js +1 -1
- package/src/ui/revisionssidebar/utils.js +1 -1
- package/src/ui/revisionviewer/changedetailsview.js +1 -1
- package/src/ui/revisionviewer/changesnavigationview.js +1 -1
- package/src/ui/revisionviewer/revisionviewerloadingoverlay.js +1 -1
- package/src/ui/revisionviewer/revisionviewerui.js +1 -1
- package/src/utils/common-translations.js +1 -1
package/dist/index.js
CHANGED
|
@@ -20,10 +20,10 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ObservableMixin as
|
|
24
|
-
_0x56bb44(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x13909f){super(),this['id']=_0x13909f['id']||_0x7bac97(),this['creator']=_0x13909f['creator']||null,this['authors']=_0x13909f['authors']||[],this['diffData']=_0x13909f['diffData']||null,this['toVersion']=_0x13909f['toVersion']||0x0,this['fromVersion']=_0x13909f['fromVersion']||0x0,this['set']('name',_0x13909f['name']||''),this['set']('createdAt',_0x13909f['createdAt']||new Date()),this['set']('attributes',_0x13909f['attributes']||{});}['setName'](_0x2b71f5){this['_update']({'name':_0x2b71f5});}['setAttribute'](_0x3bf916,_0x5d1212){const _0x27e81e=_0x4f0a8f(this['attributes']);_0x3b6183(_0x27e81e,_0x3bf916,_0x5d1212),this['_update']({'attributes':_0x27e81e});}['removeAttribute'](_0x1ed29a){const _0x49a203=_0x4f0a8f(this['attributes']);_0x25f974(_0x49a203,_0x1ed29a),this['_update']({'attributes':_0x49a203});}['_update'](_0x51f090,_0x1fad92=!0x1){let _0x4f2292=!0x1;const _0x2f22ba={'id':this['id']},_0x9ad369=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x2506cb of _0x9ad369){const _0x18f0f8=_0x51f090[_0x2506cb];void 0x0!==_0x18f0f8&&_0x18f0f8!==this[_0x2506cb]&&(this[_0x2506cb]=_0x18f0f8,_0x2f22ba[_0x2506cb]=_0x18f0f8,_0x4f2292=!0x0);}_0x4f2292&&(_0x2f22ba['authors']&&(_0x2f22ba['authorsIds']=_0x2f22ba['authors']['map'](_0x2e90bf=>_0x2e90bf['id']),delete _0x2f22ba['authors']),this['fire']('_update',_0x2f22ba,_0x1fad92));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x15c449=>_0x15c449['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x38f4f7{['_revisions'];static get['requires'](){return[_0x4c2d32];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x2d24ae){super(_0x2d24ae),this['_revisions']=new _0x2ff70c();}['afterInit'](){!async function(_0x5d9a5b){const _0x51fab5=_0x4002da([0x53,0x34,0x74,0x4d,0x4c,0x39,0x69,0x50,0x75,0x5a,0x58,0x6e,0x4b,0x64,0x42,0x57,0x32,0x33,0x54,0x63,0x4e,0x7a,0x6f,0x72,0x48,0x68,0x44,0x66,0x43,0x78,0x30,0x71,0x45,0x49,0x65,0x61,0x67,0x31,0x79,0x47,0x77,0x51,0x59,0x56,0x36,0x6b,0x35,0x73,0x70,0x4a,0x6c,0x55,0x76,0x62,0x6d,0x46,0x52,0x37,0x41,0x4f,0x6a,0x38]),_0x3c8b51=0xeb829,_0x3dfc76=0x4ae2225c,_0x1fc10a=0x4ae57c2c^_0x3dfc76,_0x1bdbd2=window[_0x4002da([0x44,0x61,0x74,0x65])][_0x4002da([0x6e,0x6f,0x77])](),_0x432fb5=_0x5d9a5b[_0x4002da([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5380b9=new window[(_0x4002da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28641f=>{_0x432fb5[_0x4002da([0x6f,0x6e,0x63,0x65])](_0x4002da([0x72,0x65,0x61,0x64,0x79]),_0x28641f);}),_0x41f646={[_0x4002da([0x6b,0x74,0x79])]:_0x4002da([0x45,0x43]),[_0x4002da([0x75,0x73,0x65])]:_0x4002da([0x73,0x69,0x67]),[_0x4002da([0x63,0x72,0x76])]:_0x4002da([0x50,0x2d,0x32,0x35,0x36]),[_0x4002da([0x78])]:_0x4002da([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]),[_0x4002da([0x79])]:_0x4002da([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]),[_0x4002da([0x61,0x6c,0x67])]:_0x4002da([0x45,0x53,0x32,0x35,0x36])},_0x5464fc=_0x432fb5[_0x4002da([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4002da([0x67,0x65,0x74])](_0x4002da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x969b90(){let _0x2e3859,_0x480d81=null,_0x2e5196=null;try{if(_0x5464fc==_0x4002da([0x47,0x50,0x4c]))return _0x4002da([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2e3859=_0x484b74(),!_0x2e3859)return _0x4002da([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2e3859[_0x4002da([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2e5196=_0x8f19f5(_0x2e3859[_0x4002da([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2e3859[_0x4002da([0x6a,0x74,0x69])])),await _0x9a7cdb()?_0x2e91d7()?_0xbfd729()?_0x4002da([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4c11a1()?(_0x2e3859[_0x4002da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4002da([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x480d81=_0x6773cd(_0x4002da([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2e3859[_0x4002da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4002da([0x74,0x72,0x69,0x61,0x6c])&&(_0x480d81=_0x6773cd(_0x4002da([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x59a076()):_0x4002da([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4002da([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4002da([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x118775){return _0x4002da([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xbfd729(){const _0x44b69b=[_0x4002da([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4002da([0x74,0x72,0x69,0x61,0x6c])][_0x4002da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e3859[_0x4002da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1bdbd2/0x3e8:0xe10*_0x1fc10a;return _0x2e3859[_0x4002da([0x65,0x78,0x70])]<_0x44b69b;}function _0x2e91d7(){const _0x4e557e=_0x2e3859[_0x4002da([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x4e557e)return!0x1;if(_0x4e557e[_0x4002da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4002da([0x2a])))return!0x0;if(_0x4e557e[_0x4002da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4002da([0x52,0x48])))return!0x0;if(_0x4e557e[_0x4002da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4002da([0x52,0x52,0x48]))){if(_0x86d5db())return!0x0;if(_0x101981()||_0x3ebc5b())return!0x0;}return!0x1;}function _0x4c11a1(){const _0x2760dc=_0x2e3859[_0x4002da([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2760dc||0x0==_0x2760dc[_0x4002da([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xaacb5c}=new URL(window[_0x4002da([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2760dc[_0x4002da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xaacb5c))return!0x0;const _0x2ab325=_0xaacb5c[_0x4002da([0x73,0x70,0x6c,0x69,0x74])](_0x4002da([0x2e]));return _0x2760dc[_0x4002da([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c72d0=>_0x5c72d0[_0x4002da([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4002da([0x2a])))[_0x4002da([0x6d,0x61,0x70])](_0x184afa=>_0x184afa[_0x4002da([0x73,0x70,0x6c,0x69,0x74])](_0x4002da([0x2e])))[_0x4002da([0x73,0x6f,0x6d,0x65])](_0x4826d8=>_0x2ab325[_0x4002da([0x65,0x76,0x65,0x72,0x79])]((_0x23de81,_0x60dcb2)=>_0x4826d8[_0x60dcb2]===_0x23de81||_0x4826d8[_0x60dcb2]===_0x4002da([0x2a])));}function _0x59a076(){return _0x480d81&&_0x2e5196?new window[(_0x4002da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xd591df,_0x293430)=>{_0x480d81[_0x4002da([0x74,0x68,0x65,0x6e])](_0xd591df,_0x293430),_0x2e5196[_0x4002da([0x74,0x68,0x65,0x6e])](_0x16e50b=>{_0x16e50b!=_0x4002da([0x56,0x61,0x6c,0x69,0x64])&&_0xd591df(_0x16e50b);},_0x293430);}):_0x480d81||_0x2e5196||_0x4002da([0x56,0x61,0x6c,0x69,0x64]);}}function _0x8f19f5(_0x4a5b7f,_0xde405b){return new window[(_0x4002da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x339d9a=>{if(_0x498d34())return _0x339d9a(_0x4002da([0x56,0x61,0x6c,0x69,0x64]));_0x4044eb(),_0x432fb5[_0x4002da([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4002da([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2968c1=!0x1;const _0x92ca36=_0x7bac97();function _0x346c3b(_0x174dc0){return!!_0x174dc0&&(typeof _0x174dc0===_0x4002da([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x174dc0===_0x4002da([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x174dc0[_0x4002da([0x74,0x68,0x65,0x6e])]===_0x4002da([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x174dc0[_0x4002da([0x63,0x61,0x74,0x63,0x68])]===_0x4002da([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4d8606(_0x59e317){_0x38f836(_0x59e317)[_0x4002da([0x74,0x68,0x65,0x6e])](_0x4a4528=>{if(!_0x4a4528||_0x4a4528[_0x4002da([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4002da([0x6f,0x6b]))return _0x4002da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3e4f48(_0x678554(_0x92ca36+_0xde405b))!=_0x4a4528[_0x4002da([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4002da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4002da([0x56,0x61,0x6c,0x69,0x64]);})[_0x4002da([0x74,0x68,0x65,0x6e])](_0xfa6eac=>(_0x408be5(),_0xfa6eac),()=>{const _0x5d497f=_0x5391ea();return null==_0x5d497f?(_0x408be5(),_0x4002da([0x56,0x61,0x6c,0x69,0x64])):_0x4002da(_0x1bdbd2-_0x5d497f>(0x6eeea65c^_0x3dfc76)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4002da([0x74,0x68,0x65,0x6e])](_0x339d9a)[_0x4002da([0x63,0x61,0x74,0x63,0x68])](()=>{_0x339d9a(_0x4002da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x558b6c=0x4ad4ccdc^_0x3dfc76;function _0x408be5(){const _0x44a75e=_0x4002da([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e4f48(_0x678554(_0x4a5b7f)),_0xafdf53=_0x1421be(_0x3e4f48(window[_0x4002da([0x4d,0x61,0x74,0x68])][_0x4002da([0x63,0x65,0x69,0x6c])](_0x1bdbd2/_0x558b6c)));window[_0x4002da([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4002da([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44a75e,_0xafdf53);}function _0x5391ea(){const _0x55e55a=_0x4002da([0x6c,0x6c,0x63,0x74,0x2d])+_0x3e4f48(_0x678554(_0x4a5b7f)),_0x4d9e8b=window[_0x4002da([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4002da([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x55e55a);return _0x4d9e8b?window[_0x4002da([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1421be(_0x4d9e8b),0x10)*_0x558b6c:null;}function _0x38f836(_0x3526da){return new window[(_0x4002da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xf06f18,_0x37c6e3)=>{_0x3526da[_0x4002da([0x74,0x68,0x65,0x6e])](_0xf06f18,_0x37c6e3),window[_0x4002da([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x37c6e3,0x4ae3f69c^_0x3dfc76);});}}_0x432fb5[_0x4002da([0x6f,0x6e])](_0x4002da([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1f6dec,_0x43063b)=>{if(_0x43063b[0x0]!=_0x4a5b7f)return _0x339d9a(_0x4002da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x43063b[0x1]={..._0x43063b[0x1],[_0x4002da([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x92ca36};},{[_0x4002da([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4002da([0x68,0x69,0x67,0x68])}),_0x432fb5[_0x4002da([0x6f,0x6e])](_0x4002da([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4308b4=>{_0x346c3b(_0x4308b4[_0x4002da([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2968c1=!0x0,_0x4d8606(_0x4308b4[_0x4002da([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4002da([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4002da([0x6c,0x6f,0x77])}),_0x5380b9[_0x4002da([0x74,0x68,0x65,0x6e])](()=>{_0x2968c1||_0x339d9a(_0x4002da([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x498d34(){return _0x432fb5[_0x4002da([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4002da([0x76,0x69,0x65,0x77])][_0x4002da([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4002da([0x61,0x75,0x74,0x6f]);}function _0x4044eb(){_0x432fb5[_0x4002da([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4002da([0x76,0x69,0x65,0x77])][_0x4002da([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4002da([0x61,0x75,0x74,0x6f]);}}function _0x6773cd(_0x3b9262){const _0x38ebd7=[new window[(_0x4002da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ad7cc=>setTimeout(_0x1ad7cc,0x4aeb1c90^_0x3dfc76)),_0x5380b9[_0x4002da([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4002da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xfbf98e=>{const _0x4809f6=0x4ae2225b^_0x3dfc76,_0x1402d5=_0x5d9a5b[_0x4002da([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3d9cf9(){_0x1402d5[_0x4002da([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x4809f6&&_0xfbf98e();}_0x3d9cf9(),_0x1402d5[_0x4002da([0x6f,0x6e])](_0x4002da([0x61,0x64,0x64]),_0x3d9cf9);})),new window[(_0x4002da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5d8966=>{function _0x404b86(){for(const _0x3dfd70 in window)if(window[_0x4002da([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4002da([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x3dfd70))&&window[_0x3dfd70]==_0x3c8b51)return _0x5d8966();_0x432fb5[_0x4002da([0x73,0x74,0x61,0x74,0x65])]!=_0x4002da([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4002da([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x404b86,0x4ae231d4^_0x3dfc76);}_0x47a0ce(_0x4002da([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x404b86();})];return window[_0x4002da([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4002da([0x72,0x61,0x63,0x65])](_0x38ebd7)[_0x4002da([0x74,0x68,0x65,0x6e])](()=>_0x3b9262);}async function _0x3bcca8(){if(await _0x5380b9,_0x47a0ce(_0x4002da([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x51210b=_0x5d9a5b[_0x4002da([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x50d57f=_0x5d9a5b[_0x4002da([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])](_0x51210b[_0x4002da([0x69,0x64])]),_0x438a16=_0x51f95b(_0x4002da([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x438a16[_0x4002da([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x51210b['id'],_0x50d57f?_0x50d57f['id']:null,!0x0),_0x438a16[_0x4002da([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4002da([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x438a16[_0x4002da([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x438a16[_0x4002da([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x1c839f,void(_0x438a16[_0x4002da([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x1c839f);}if(_0x47a0ce(_0x4002da([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x211800=_0x51f95b(_0x4002da([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x211800[_0x4002da([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4002da([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x211800[_0x4002da([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x211800[_0x4002da([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x1c839f,_0x211800[_0x4002da([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x1c839f;}_0x432fb5[_0x4002da([0x6d,0x6f,0x64,0x65,0x6c])][_0x4002da([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1c839f,_0x432fb5[_0x4002da([0x6d,0x6f,0x64,0x65,0x6c])][_0x4002da([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1c839f,_0x432fb5[_0x4002da([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4002da([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x86d5db(){return _0x47a0ce(_0x4002da([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x51f95b(_0x4002da([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4002da([0x73,0x74,0x61,0x74,0x65])]==_0x4002da([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x101981(){return _0x47a0ce(_0x4002da([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 _0x3ebc5b(){return _0x47a0ce(_0x4002da([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0x1e9a6d(_0x582349){const _0x4f137f=_0x63b053();_0x432fb5[_0x4f137f]=_0x4002da([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])+_0x582349,_0x582349[_0x4002da([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4002da([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x63b053()]=_0x3c8b51),_0x582349!=_0x4002da([0x56,0x61,0x6c,0x69,0x64])&&_0x3bcca8();}function _0x63b053(){const _0x2cb81a=window[_0x4002da([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4002da([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4002da([0x6e,0x6f,0x77])]())[_0x4002da([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4002da([0x2e]),'');let _0x4f18fe=_0x4002da([0x53]);for(let _0x1bd08c=0x0;_0x1bd08c<_0x2cb81a[_0x4002da([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1bd08c+=0x2){let _0x4a5dcb=window[_0x4002da([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cb81a[_0x4002da([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1bd08c,_0x1bd08c+0x2));_0x4a5dcb>=_0x51fab5[_0x4002da([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4a5dcb-=_0x51fab5[_0x4002da([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4f18fe+=_0x51fab5[_0x4a5dcb];}return _0x4f18fe;}function _0x484b74(){const _0x209fb3=_0x5464fc[_0x4002da([0x73,0x70,0x6c,0x69,0x74])](_0x4002da([0x2e]));if(0x3!=_0x209fb3[_0x4002da([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4d05c2(_0x209fb3[0x1]);function _0x4d05c2(_0x32caf1){const _0x4aad0c=_0x244891(_0x32caf1);return _0x4aad0c&&_0x441ebd()?_0x4aad0c:null;function _0x441ebd(){const _0x136404=_0x4aad0c[_0x4002da([0x6a,0x74,0x69])],_0xc274c5=window[_0x4002da([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x136404[_0x4002da([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x136404[_0x4002da([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x34540e={..._0x4aad0c,[_0x4002da([0x6a,0x74,0x69])]:_0x136404[_0x4002da([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x136404[_0x4002da([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x34540e[_0x4002da([0x76,0x63])],_0x678554(_0x34540e)==_0xc274c5;}}}async function _0x9a7cdb(){let _0x10db5e=!0x0;try{const _0xe02a9e=_0x5464fc[_0x4002da([0x73,0x70,0x6c,0x69,0x74])](_0x4002da([0x2e])),[_0x30abdb,_0x5760d8,_0x19b2a8]=_0xe02a9e;return _0x96974(_0x30abdb),await _0x2c1d50(_0x30abdb,_0x5760d8,_0x19b2a8),_0x10db5e;}catch(_0x5617bf){return!0x1;}function _0x96974(_0x44f5ba){const _0x3bbe43=_0x244891(_0x44f5ba);_0x3bbe43&&_0x3bbe43[_0x4002da([0x61,0x6c,0x67])]==_0x4002da([0x45,0x53,0x32,0x35,0x36])||(_0x10db5e=!0x1);}async function _0x2c1d50(_0x35220b,_0x188908,_0x299ff6){const _0x10b251=window[_0x4002da([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4002da([0x66,0x72,0x6f,0x6d])](_0x4d3f29(_0x299ff6),_0x331c0d=>_0x331c0d[_0x4002da([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x19bcdb=new window[(_0x4002da([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4002da([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x35220b+_0x4002da([0x2e])+_0x188908),_0x4fbba1=window[_0x4002da([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4002da([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4fbba1)return;const _0x2c0304=await _0x4fbba1[_0x4002da([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4002da([0x6a,0x77,0x6b]),_0x41f646,{[_0x4002da([0x6e,0x61,0x6d,0x65])]:_0x4002da([0x45,0x43,0x44,0x53,0x41]),[_0x4002da([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4002da([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4002da([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4fbba1[_0x4002da([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4002da([0x6e,0x61,0x6d,0x65])]:_0x4002da([0x45,0x43,0x44,0x53,0x41]),[_0x4002da([0x68,0x61,0x73,0x68])]:{[_0x4002da([0x6e,0x61,0x6d,0x65])]:_0x4002da([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2c0304,_0x10b251,_0x19bcdb)||(_0x10db5e=!0x1);}}function _0x244891(_0x3a43b9){return _0x3a43b9[_0x4002da([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4002da([0x65,0x79]))?JSON[_0x4002da([0x70,0x61,0x72,0x73,0x65])](_0x4d3f29(_0x3a43b9)):null;}function _0x4d3f29(_0xedcc6e){return window[_0x4002da([0x61,0x74,0x6f,0x62])](_0xedcc6e[_0x4002da([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4002da([0x2b]))[_0x4002da([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4002da([0x2f])));}function _0x678554(_0x883aad){let _0xe6431b=0x1505;function _0x58a24e(_0x38172b){for(let _0x565b80=0x0;_0x565b80<_0x38172b[_0x4002da([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x565b80++){const _0x4bc26b=_0x38172b[_0x4002da([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x565b80);_0xe6431b=(_0xe6431b<<0x5)+_0xe6431b+_0x4bc26b,_0xe6431b&=_0xe6431b;}}function _0x299190(_0x27d170){Array[_0x4002da([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x27d170)?_0x27d170[_0x4002da([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x299190):_0x27d170&&typeof _0x27d170==_0x4002da([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4002da([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x27d170)[_0x4002da([0x73,0x6f,0x72,0x74])]()[_0x4002da([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x20441e,_0x13592d])=>{_0x58a24e(_0x20441e),_0x299190(_0x13592d);}):_0x58a24e(window[_0x4002da([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x27d170));}return _0x299190(_0x883aad),_0xe6431b>>>0x0;}function _0x3e4f48(_0x2f50f7){return _0x2f50f7[_0x4002da([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4002da([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4002da([0x30]));}function _0x1421be(_0x11c2ef){return _0x11c2ef[_0x4002da([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4002da([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4002da([0x6a,0x6f,0x69,0x6e])]('');}function _0x47a0ce(_0x335bdf){return _0x432fb5[_0x4002da([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4002da([0x68,0x61,0x73])](_0x335bdf);}function _0x51f95b(_0x34ddf2){return _0x432fb5[_0x4002da([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4002da([0x67,0x65,0x74])](_0x34ddf2);}function _0x1c839f(){}function _0x4002da(_0x1627db){return _0x1627db['map'](_0x6efc47=>String['fromCharCode'](_0x6efc47))['join']('');}_0x1e9a6d(await _0x969b90());}(this);}['createRevision'](_0x2c0f26){const _0x37e76a=this['editor']['plugins']['get']('Users');return new a({'id':_0x2c0f26['id'],'name':_0x2c0f26['name'],'creator':_0x2c0f26['creatorId']?_0x37e76a['getUser'](_0x2c0f26['creatorId']):null,'diffData':_0x2c0f26['diffData']||_0x2c0f26['data'],'authors':_0x2c0f26['authorsIds']['map'](_0x430cf7=>_0x37e76a['getUser'](_0x430cf7)),'createdAt':new Date(_0x2c0f26['createdAt']),'attributes':_0x2c0f26['attributes'],'fromVersion':_0x2c0f26['fromVersion'],'toVersion':_0x2c0f26['toVersion']});}['addRevision'](_0x3c8237,_0x2005e3=0x0){this['_revisions']['add'](_0x3c8237,_0x2005e3);}['getRevision'](_0x43161b){return this['_revisions']['get'](_0x43161b);}['getRevisions'](_0x502914={'toJSON':!0x1}){const _0x30886e=Array['from'](this['_revisions']);return _0x30886e['reverse'](),_0x502914['toJSON']?_0x30886e['map'](_0x5ee72f=>_0x5ee72f['toJSON']()):_0x30886e;}['getIndex'](_0x198435){return this['_revisions']['getIndex'](_0x198435);}['getEarlierVisibleRevision'](_0x11fcb7){const [,_0x39f9a5]=this['getRevisionsIterator'](_0x11fcb7,{'direction':'earlier'});return _0x39f9a5;}['getLaterVisibleRevision'](_0x3cb7f2){const [,_0x47d0db]=this['getRevisionsIterator'](_0x3cb7f2,{'direction':'later'});return _0x47d0db;}['getRevisionsInDiff'](_0x306727){const _0x4663eb=[];for(const _0x5197e2 of this['getRevisionsIterator'](_0x306727['newRevisionId']))if(_0x4663eb['push'](_0x5197e2),_0x5197e2['id']===_0x306727['oldRevisionId'])break;return _0x4663eb;}*['getRevisionsIterator'](_0x53de09,{direction:_0x2ade92='earlier',filter:_0x28313c=()=>!0x0}={}){const _0x354acc='earlier'===_0x2ade92?0x1:-0x1;let _0xe4ca83=this['_revisions']['get'](_0x53de09),_0x4811ab=this['getIndex'](_0xe4ca83);for(yield _0xe4ca83;_0xe4ca83;){if(_0x4811ab+=_0x354acc,_0xe4ca83=this['getRevision'](_0x4811ab),!_0xe4ca83)return;_0x28313c(_0xe4ca83)&&(yield _0xe4ca83);}}}function m(_0x189438,_0x1d811a,_0x31cc76){const t=_0x189438['t'];switch(_0x1d811a){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'},_0x31cc76);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x31cc76);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x20dad9,'a':_0x4a57c1,'e':_0x481447,'r':_0x21f19b,'u':_0x4ed8b6};class l extends _0x38f4f7{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4c2d32,j,_0x397ed5];}constructor(_0xb608be){super(_0xb608be),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x5827a0=_0x7bac97();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5827a0},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x3253d6=this['repository']['getRevision'](0x0),_0x2ee9a2=_0x3253d6&&null===_0x3253d6['creator']?_0x3253d6:null;if(this['_continueCurrentRevision']=!!_0x2ee9a2&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x4a746c=this['_source']['getCurrentRevisionId'](),_0xca9b60=this['repository']['getRevision'](_0x4a746c);if(_0xca9b60)this['_startingVersion']=_0xca9b60['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x1bbf06=this['_source']['history']['_operations']['find'](_0x46e747=>!_0x46e747['_isInit']),_0x23d12d=_0x1bbf06?_0x1bbf06['baseVersion']:this['_source']['history']['version'];_0x3253d6?(_0x3253d6['toVersion']<_0x23d12d&&_0x3253d6['_update']({'toVersion':_0x23d12d}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x2ee9a2['id'],this['_startingVersion']=_0x2ee9a2['fromVersion']):(this['_startingVersion']=_0x3253d6['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x23d12d,this['_continueCurrentRevision']=!0x1);}}else _0x2ee9a2&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x2ee9a2['toVersion'],this['editor']['model']['document']['history']['version']),_0x2ee9a2['fromVersion']===_0x2ee9a2['toVersion']?(0x0!==_0x2ee9a2['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x2ee9a2['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x2ee9a2['id'],this['_startingVersion']=_0x2ee9a2['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',_0x54c922=>!_0x54c922),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xfab947=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5c8e98;for(const _0x3a9655 in _0xfab947){const _0x8950c0=_0x3a9655,_0x48ca70=_0xfab947[_0x8950c0];if('revisionHistoryLicenseKeyValid'==_0x48ca70||'revisionHistoryLicenseKeyInvalid'==_0x48ca70||'revisionHistoryLicenseKeyExpired'==_0x48ca70||'revisionHistoryLicenseKeyDomainLimit'==_0x48ca70||'revisionHistoryLicenseKeyNotAllowed'==_0x48ca70||'revisionHistoryLicenseKeyEvaluationLimit'==_0x48ca70||'revisionHistoryLicenseKeyTrialLimit'==_0x48ca70||'revisionHistoryLicenseKeyUsageLimit'==_0x48ca70){delete _0xfab947[_0x8950c0],_0x5c8e98=_0x48ca70,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x5c8e98&&_0xfab947['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x5c8e98&&_0xfab947['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x5c8e98&&_0xfab947['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x5c8e98&&_0xfab947['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x5c8e98&&_0xfab947['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x5c8e98&&_0xfab947['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x5c8e98&&_0xfab947['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x2688f2=this['repository']['getRevision'](0x0),_0x1fd8e1=await this['getRevisionDocumentData'](_0x2688f2),_0x34ee1d=await this['getRevisionRootsAttributes'](_0x2688f2);this['_replaceEditorDataWithRevisionData'](_0x1fd8e1,_0x34ee1d);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x16b931){this['_source']=_0x16b931;}async['update'](){const _0x53ca05=await this['_source']['getLatestVersion']();if(_0x53ca05>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5a9062=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x53ca05});_0x5a9062['authors']=_0x5a9062['authorsIds']['map'](_0x16e03b=>this['editor']['plugins']['get']('Users')['getUser'](_0x16e03b)),this['currentRevision']['_update'](_0x5a9062);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0x454303={},_0x1eea9a=null){const _0x435226=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x1eea9a>this['currentRevision']['toVersion']&&(_0x1eea9a=null),null===_0x1eea9a&&(_0x1eea9a=await this['_source']['getLatestVersion']());const _0x1f039f=this['_getFromVersion'](_0x1eea9a),_0x3b9644=this['buildRevisionData']({'from':_0x1f039f,'to':_0x1eea9a});if(this['currentRevision']['toVersion']<_0x1eea9a){const _0x261fd0=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x1eea9a,'to':_0x1eea9a});_0x261fd0['authors']=[],_0x261fd0['authorsIds']=[],_0x261fd0['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x261fd0,!0x0),delete _0x261fd0['authors'],_0x435226['push'](_0x261fd0);}_0x454303['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x454303['name']=_0x454303['name']||null,_0x454303['id']=_0x454303['id']||_0x7bac97(),_0x454303={..._0x454303,..._0x3b9644};const _0x26aeeb=this['addRevisionData'](_0x454303);_0x435226['push'](_0x454303);const _0x5cb8d1=this['repository']['getIndex'](_0x26aeeb);if(0x0!==_0x5cb8d1){const _0x38c749=this['repository']['getRevision'](_0x5cb8d1-0x1);if(_0x38c749['fromVersion']!==_0x1eea9a){const _0x40704b=this['_revisionDataBuilder']['getData'](_0x1eea9a,_0x38c749['toVersion']),_0x5d2d72={'id':_0x38c749['id'],'diffData':_0x40704b['diffData'],'authorsIds':_0x40704b['authorsIds'],'authors':_0x40704b['authorsIds']['map'](_0x377b5d=>this['editor']['plugins']['get']('Users')['getUser'](_0x377b5d)),'fromVersion':_0x1eea9a};_0x38c749===this['currentRevision']&&(_0x5d2d72['createdAt']=new Date(_0x454303['createdAt']['getTime']()+0xa)),_0x38c749['_update'](_0x5d2d72,!0x0),delete _0x5d2d72['authors'],_0x435226['push'](_0x5d2d72);}}if(this['adapter']){for(const _0x12230a of _0x435226)this['_bufferUpdate'](_0x12230a['id'],_0x12230a,!0x0);this['sendBufferedUpdates']();}return _0x26aeeb;}['addRevisionData'](_0x37f406){const _0x1952da=this['repository']['createRevision'](_0x37f406);return this['adapter']&&_0x1952da['on']('_update',(_0x52d16f,_0x177395,_0xd21512)=>{_0xd21512||(this['_bufferUpdate'](_0x177395['id'],_0x177395,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x1952da,this['_findInsertionIndex'](_0x1952da)),_0x1952da;}async['getRevisionDocumentData'](_0x3e8d26){await this['_loadRevisionData'](_0x3e8d26);const _0x4a7420={};for(const _0x528d88 in _0x3e8d26['diffData']){if(_0x3e8d26['diffData'][_0x528d88]['attachChange']&&!_0x3e8d26['diffData'][_0x528d88]['attachChange']['isAttached'])continue;const _0x197193=this['_removeRevisionMarkers'](JSON['parse'](_0x3e8d26['diffData'][_0x528d88]['insertions'])),_0x1c763d=this['editor']['editing']['view']['document'],_0x489d35=new _0x5069ac(_0x1c763d,_0x197193['map'](_0x7a2a48=>C(_0x7a2a48,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x4a7420[_0x528d88]=this['editor']['data']['processor']['toData'](_0x489d35),this['editor']['data']['processor']['useFillerType']('default');}return _0x4a7420;}async['getRevisionRootsAttributes'](_0x4d63db){await this['_loadRevisionData'](_0x4d63db);const _0x528a81={};for(const _0xaa321a in _0x4d63db['diffData'])_0x4d63db['diffData'][_0xaa321a]['attachChange']&&!_0x4d63db['diffData'][_0xaa321a]['attachChange']['isAttached']||(_0x528a81[_0xaa321a]=_0x4d63db['diffData'][_0xaa321a]['attributesAfter']||{});return _0x528a81;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x557b11=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x46484f=0x0;_0x46484f<_0x557b11['length'];_0x46484f++){const _0x388b1d=_0x557b11[_0x46484f];let _0x50b7da=!0x1;for(const _0x4a34ff of Object['keys'](_0x388b1d))void 0x0===_0x388b1d[_0x4a34ff]?delete _0x388b1d[_0x4a34ff]:'id'!==_0x4a34ff&&(_0x50b7da=!0x0);_0x50b7da||(_0x557b11[_0x46484f]=null);}if(_0x557b11=_0x557b11['filter'](_0x1560f2=>null!==_0x1560f2),!_0x557b11['length'])return;for(let _0x5abfd6=0x0;_0x5abfd6<_0x557b11['length'];_0x5abfd6++){const _0x19e2f4=_0x557b11[_0x5abfd6];void 0x0!==_0x19e2f4['fromVersion']&&void 0x0===_0x19e2f4['toVersion']&&(_0x19e2f4['toVersion']=this['repository']['getRevision'](_0x19e2f4['id'])['toVersion']),void 0x0!==_0x19e2f4['toVersion']&&void 0x0===_0x19e2f4['fromVersion']&&(_0x19e2f4['fromVersion']=this['repository']['getRevision'](_0x19e2f4['id'])['fromVersion']);}const _0x2bfb09=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x557b11,_0x2bfb09)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x3e7f78=>{if(_0x3e7f78){for(const _0x2a53d2 of _0x3e7f78)this['setRevisionData']({'id':_0x2a53d2['id'],'createdAt':_0x2a53d2['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0xc7aaee,_0x168ab1){let _0x199801=this['editor']['config']['get']('initialData'),_0x30cb26=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x199801){_0x199801={};for(const _0x247a6b of this['editor']['model']['document']['getRootNames']())_0x199801[_0x247a6b]='';}if('string'==typeof _0x199801&&(_0x199801={'main':_0x199801}),void 0x0===_0x30cb26){_0x30cb26={};for(const _0xd97719 of this['editor']['model']['document']['getRootNames']())_0x30cb26[_0xd97719]={};}let _0x2413c1=!0x1;const _0x2a1091=Object['keys'](_0x199801),_0x11b297=Object['keys'](_0xc7aaee);for(const _0x43e6b4 of _0x2a1091){if(_0x199801[_0x43e6b4]!==_0xc7aaee[_0x43e6b4]&&''!==_0x199801[_0x43e6b4]['trim']()){_0x2413c1=!0x0;break;}if(!_0x35af8b(_0x30cb26[_0x43e6b4],_0x168ab1[_0x43e6b4])&&Object['keys'](_0x30cb26[_0x43e6b4])['length']>0x0){_0x2413c1=!0x0;break;}}_0x2413c1||(_0x2413c1=_0x11b297['some'](_0x117f2f=>!this['editor']['model']['document']['getRoot'](_0x117f2f))),_0x2413c1&&_0x55fcac('editor-initial-data-replaced-with-revision-data',{'editorData':_0x199801,'editorRootsAttributes':_0x30cb26,'revisionData':_0xc7aaee,'revisionRootsAttributes':_0x168ab1}),this['editor']['config']['set']('initialData',_0xc7aaee),this['editor']['config']['set']('rootsAttributes',_0x168ab1);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x3cbfc0=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x3cbfc0['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x731eaf){const _0x2d2a85=this['repository']['getRevisions']();_0x2d2a85['reverse']();let _0x26ecd0=0x0;for(;_0x26ecd0<_0x2d2a85['length'];){const _0x3a428a=_0x2d2a85[_0x26ecd0];if(_0x3a428a===this['currentRevision']){_0x26ecd0++;continue;}if(_0x3a428a['id']===this['_initialRevisionId'])break;const _0x6c5cf6=_0x731eaf['toVersion']-_0x3a428a['toVersion']||_0x731eaf['fromVersion']-_0x3a428a['fromVersion'];if(_0x6c5cf6>0x0)break;if(_0x6c5cf6<0x0)_0x26ecd0++;else{if(!_0x731eaf['creator']&&_0x3a428a['creator'])break;if(_0x3a428a['creator']||!_0x731eaf['creator']){if(_0x731eaf['createdAt']>_0x3a428a['createdAt'])break;_0x26ecd0++;}else _0x26ecd0++;}}return _0x26ecd0;}['setRevisionData'](_0x3e3692){const _0x59f450=this['repository']['getRevision'](_0x3e3692['id']);if(_0x3e3692['createdAt']&&(_0x3e3692['createdAt']=new Date(_0x3e3692['createdAt'])),_0x3e3692['authorsIds']){const _0x6bc36e=this['editor']['plugins']['get']('Users');_0x3e3692['authors']=_0x3e3692['authorsIds']['map'](_0x3bb391=>_0x6bc36e['getUser'](_0x3bb391));}_0x59f450['_update'](_0x3e3692,!0x0);}['buildRevisionData']({revision:_0x398629=null,from:_0x4bc9df=null,to:_0x729d28=null}){_0x4bc9df=null!==_0x4bc9df?_0x4bc9df:_0x398629['fromVersion'],_0x729d28=null!==_0x729d28?_0x729d28:_0x398629['toVersion'];const _0x375426=this['_revisionDataBuilder']['getData'](_0x4bc9df,_0x729d28),_0x364275={'diffData':_0x375426['diffData'],'authorsIds':_0x375426['authorsIds'],'fromVersion':_0x4bc9df,'toVersion':_0x729d28};if(!_0x398629||_0x729d28!==_0x398629['toVersion']){const _0x4edfbe=_0x729d28-0x1,_0x4b146d=this['_source']['history']['getOperation'](_0x4edfbe);_0x364275['createdAt']=_0x4b146d&&_0x4b146d['createdAt']||new Date();}if(this['_loadedStateData']&&_0x4bc9df===this['_loadedStateData']['fromVersion']){for(const _0x374a95 of this['_loadedStateData']['authors'])_0x364275['authorsIds']['includes'](_0x374a95['id'])||_0x364275['authorsIds']['push'](_0x374a95['id']);}return _0x364275;}['_loadRevisionData'](_0x259725){if(!_0x259725||_0x259725['diffData'])return Promise['resolve']();{const _0x4c0e6d=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x4c0e6d,'revisionId':_0x259725['id']})['then'](_0x2f31b1=>{_0x259725['diffData']=_0x2f31b1['diffData'];});}}['_bufferUpdate'](_0x2d289d,_0x13449f,_0x34f685){if(this['_bufferedUpdates']['has'](_0x2d289d)){const _0x1ac899=this['_bufferedUpdates']['get'](_0x2d289d);_0x13449f=_0x34f685?{..._0x1ac899,..._0x13449f}:{..._0x13449f,..._0x1ac899};}this['_bufferedUpdates']['set'](_0x2d289d,_0x13449f);}['_getFromVersion'](_0x524067){const _0x3d0aac=this['repository']['getRevisions']();_0x3d0aac['reverse'](),_0x3d0aac['shift']();const _0x2288a9=_0x3d0aac['find'](_0x51f2f4=>_0x51f2f4['toVersion']<=_0x524067)['toVersion'];return _0x2288a9<this['_startingVersion']?this['_startingVersion']:_0x2288a9;}['_createInitialRevision'](_0x5d86d0){const _0x34d033=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x34d033)this['_initialRevisionId']=_0x34d033['id'];else{const _0x2b2cc0=!this['editor']['model']['document']['roots']['find'](_0x135dd7=>this['editor']['model']['hasContent'](_0x135dd7)),_0x1ae7f8=this['editor']['plugins']['get']('Users')['me']['id'],_0x6cca1c=m(this['editor']['locale'],_0x2b2cc0?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x5d86d0,'to':_0x5d86d0,'id':this['_initialRevisionId'],'name':_0x6cca1c,'creatorId':_0x1ae7f8});}}['_createCurrentRevision'](_0x383856){const _0x120fb=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x120fb),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x383856,'to':_0x383856,'id':_0x120fb,'name':'','creatorId':null}));}['_makeRevision']({name:_0x17db6e,from:_0x58b254,to:_0x21feee,creatorId:_0x4c6784,id:_0x4be724}){const _0x1980fc=this['buildRevisionData']({'from':_0x58b254,'to':_0x21feee});_0x1980fc['name']=_0x17db6e,_0x1980fc['creatorId']=_0x4c6784,_0x1980fc['id']=_0x4be724;const _0x27f35c=this['addRevisionData'](_0x1980fc);return this['adapter']&&this['_bufferUpdate'](_0x1980fc['id'],_0x1980fc,!0x0),_0x27f35c;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x1d1442){return(_0x1d1442=_0x1d1442['filter'](_0x23b658=>!_0x23b658['name']||'revision-start'!==_0x23b658['name']&&'revision-end'!==_0x23b658['name']))['forEach'](_0x7f20f5=>{'string'!=typeof _0x7f20f5&&(_0x7f20f5['children']=this['_removeRevisionMarkers'](_0x7f20f5['children']),_0x7f20f5['attributes']=_0x7f20f5['attributes']['filter'](_0x3927b5=>!_0x3927b5[0x0]['startsWith']('data-revision-')));}),_0x1d1442;}}function C(_0x8b402b,_0x2fe26b){const _0x4b35d1=_0x2fe26b['editing']['view']['document'];if('string'==typeof _0x8b402b)return new _0x51c9c5(_0x4b35d1,_0x8b402b);{const _0x3b3c89=_0x8b402b['children']['map'](_0xdca7a=>C(_0xdca7a,_0x2fe26b));return new(P[_0x8b402b['type']]||_0x16c8d2)(_0x4b35d1,_0x8b402b['name'],_0x8b402b['attributes'],_0x3b3c89);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5f4d26){this['editor']=_0x5f4d26,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'](_0x1c6c05){this['source']=_0x1c6c05;const _0x5f3226=new Map(),_0xde99e3=new Map(),_0x154bb2=this['editor']['model']['document']['roots']['map'](_0x593325=>_0x593325['rootName']);for(const _0xcb118a of _0x154bb2){const _0x22162c=this['editor']['model']['document']['getRoot'](_0xcb118a),_0x4fe12f=T(_0x22162c);_0x5f3226['set'](_0xcb118a,_0x4fe12f),_0xde99e3['set'](_0xcb118a,Object['fromEntries'](_0x22162c['getAttributes']()));}const _0x53047a=Array['from'](this['editor']['model']['markers'])['map'](_0x40dded=>[_0x40dded['name'],_0x40dded['getRange']()]),_0x4574ac=this['source']['version'];this['_saveMetaData'](_0x4574ac,_0x5f3226,_0x53047a,_0xde99e3),this['_startingRevisionId']=this['_revisionId'];const _0xb1a6f4=new Map(),_0x11ae57=new Map();for(const _0x10c298 of _0x154bb2){const _0x5a0eaa=F(_0x10c298);_0xb1a6f4['set'](_0x10c298,_0x5a0eaa),_0x11ae57['set'](_0x10c298,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0xb1a6f4,[],_0x11ae57);}['getData'](_0x3537fb,_0x3563ab){if(this['_lastFrom']===_0x3537fb&&this['_lastTo']<=_0x3563ab)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x3563ab,!0x0);else{if(!this['_savedMetaData']['has'](_0x3537fb)){const _0x154523=this['_getPreviousFrom'](_0x3537fb);this['_calculateMetaData'](_0x154523,_0x3537fb,!0x1);}this['_calculateMetaData'](_0x3537fb,_0x3563ab,!0x0);}return this['_lastFrom']=_0x3537fb,this['_lastTo']=_0x3563ab,this['_getState']();}['loadState'](_0x4628e6){this['_reset'](),this['_lastFrom']=_0x4628e6['fromVersion'],this['_lastTo']=_0x4628e6['toVersion'];for(const _0x4e8858 in _0x4628e6['diffData']){const _0x316d1a=_0x4628e6['diffData'][_0x4e8858]['attachChange'],_0x39a663=_0x4f0a8f(_0x4628e6['diffData'][_0x4e8858]['attributesBefore'])||{},_0x1dbb48=this['_makeModelFromViewString'](_0x4628e6['diffData'][_0x4e8858]['deletions']);_0x1dbb48['rootName']=_0x4e8858,_0x1dbb48['_isAttached']=!_0x316d1a||!_0x316d1a['isAttached'],_0x1dbb48['isAttached']=()=>_0x1dbb48['_isAttached'],this['_baseRoots']['set'](_0x4e8858,_0x1dbb48),this['_baseRootsAttributes']['set'](_0x4e8858,_0x39a663),_0x316d1a&&this['_touchedRoots']['set'](_0x4e8858,_0x316d1a);const _0x4f6ef5=this['_makeIdsRoot'](_0x1dbb48);this['_baseIdsRoots']['set'](_0x4e8858,_0x4f6ef5);for(const [_0x23ff2f,_0x2ec209]of _0x1dbb48['markers']){if(!_0x23ff2f['startsWith']('revision:'))continue;const _0x5cdd31=_0x23ff2f['split'](':')[0x2];for(const _0x1e3318 of _0x2ec209['getWalker']({'singleCharacters':!0x0})){const _0xf12d9a=this['_getVidAttributeName'](_0x1e3318),_0x1806de='elementEnd'==_0x1e3318['type']?_0x1e3318['previousPosition']['path']['slice'](0x0,-0x1):_0x1e3318['previousPosition']['path'],_0x555275=_0x4f6ef5['getNodeByPath'](_0x1806de)['getAttribute'](_0xf12d9a);this['_touched']['set'](_0x555275,{'userId':_0x5cdd31});}}}this['_startingRevisionId']=this['_revisionId'];const _0x17bd50=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x2b12a6=>!this['_touched']['has'](_0x2b12a6));let _0x266e1a=0x0;const _0xc675c6=new Map();for(const _0x30f1ff in _0x4628e6['diffData']){const _0xe56d21=_0x4628e6['diffData'][_0x30f1ff]['attachChange'],_0x5f16aa=_0x4f0a8f(_0x4628e6['diffData'][_0x30f1ff]['attributesAfter'])||{},_0x1562dd=this['_makeModelFromViewString'](_0x4628e6['diffData'][_0x30f1ff]['insertions']);_0x1562dd['rootName']=_0x30f1ff,_0x1562dd['_isAttached']=!_0xe56d21||_0xe56d21['isAttached'],_0x1562dd['isAttached']=()=>_0x1562dd['_isAttached'],this['_diffRoots']['set'](_0x30f1ff,_0x1562dd),this['_diffRootsAttributes']['set'](_0x30f1ff,_0x5f16aa);const _0x2808f6=this['_makeIdsRoot'](_0x1562dd,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x30f1ff,_0x2808f6),_0xc675c6['set'](_0x30f1ff,_0x1562dd['isAttached']()?_0x5f16aa:{});for(const [_0x37c7ee,_0x4f851e]of _0x1562dd['markers']){if(!_0x37c7ee['startsWith']('revision:'))continue;const _0xe03ab=_0x37c7ee['split'](':')[0x2];for(const _0x2d39ae of _0x4f851e['getWalker']({'singleCharacters':!0x0})){const _0x331452=this['_getVidAttributeName'](_0x2d39ae),_0x29a782=this['_revisionId']++,_0x285bb5='elementEnd'==_0x2d39ae['type']?_0x2d39ae['previousPosition']['path']['slice'](0x0,-0x1):_0x2d39ae['previousPosition']['path'];_0x2808f6['getNodeByPath'](_0x285bb5)['_setAttribute'](_0x331452,_0x29a782),this['_touched']['set'](_0x29a782,{'userId':_0xe03ab});}}for(const _0x30950a of this['editor']['model']['createRangeIn'](_0x1562dd)['getWalker']({'singleCharacters':!0x0})){const _0x39e56f=this['_getVidAttributeName'](_0x30950a),_0x46e93d='elementEnd'==_0x30950a['type']?_0x30950a['previousPosition']['path']['slice'](0x0,-0x1):_0x30950a['previousPosition']['path'],_0x3ab78d=_0x2808f6['getNodeByPath'](_0x46e93d);_0x3ab78d['getAttribute'](_0x39e56f)>0x0||_0x3ab78d['_setAttribute'](_0x39e56f,_0x17bd50[_0x266e1a++]);}for(const [_0x20f681,_0x1c43f7]of _0x1562dd['markers'])_0x20f681['startsWith']('revision:')||this['_markers']['set'](_0x20f681,_0x1c43f7);}const _0x3f450f=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3f450f),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3f450f,0x1));const _0x54ffc3=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x54ffc3),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x54ffc3,0x1));const _0x341b87=Array['from'](this['_diffRoots'])['map'](([_0x1bdf40,_0x142c4f])=>[_0x1bdf40,T(_0x142c4f)]);this['_saveMetaData'](this['_lastTo'],_0x341b87,this['_markers'],_0xc675c6);}['_makeModelFromViewString'](_0x5604b6){const _0x1c5463=JSON['parse'](_0x5604b6),_0x437ee3=this['editor']['editing']['view']['document'],_0x311c5c=new _0x5069ac(_0x437ee3,_0x1c5463['map'](_0x8c4718=>C(_0x8c4718,this['editor'])));return this['editor']['data']['toModel'](_0x311c5c);}['_saveMetaData'](_0x30da7e,_0x28f431,_0x286758,_0x25bd4a){const _0x494325=new Map(_0x28f431),_0x4cc166=new Map(_0x4f0a8f(_0x25bd4a)),_0x474fdd=new Map();for(const [_0x629a62,_0x32dc75]of _0x286758)_0x474fdd['set'](_0x629a62,{'start':_0x32dc75['start']['clone'](),'end':_0x32dc75['end']['clone'](),'rootName':_0x32dc75['root']['rootName']});this['_savedMetaData']['set'](_0x30da7e,{'roots':_0x494325,'markers':_0x474fdd,'rootsAttributes':_0x4cc166});}['_removeMetaData'](_0xfd093){this['_savedMetaData']['delete'](_0xfd093);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0x4684e2,_0x2275c0=null){let _0x4ec5a7=null;_0x4684e2['is']('documentFragment')||(_0x4ec5a7=new ft(_0x4684e2['name'],{'vid_start':null===_0x2275c0?this['_revisionId']++:_0x2275c0++}));const _0x5f45c4=[];for(const _0x4d40cc of _0x4684e2['getChildren']())if(_0x4d40cc['is']('element')){_0x5f45c4['push'](this['_makeIdsRoot'](_0x4d40cc,_0x2275c0));const _0x539868=_0x5f45c4[_0x5f45c4['length']-0x1];null!==_0x2275c0&&(_0x2275c0=_0x539868['is']('element','$text')?_0x539868['getAttribute']('vid')+0x1:_0x539868['getAttribute']('vid_end')+0x1);}else{for(let _0xbd427c=0x0;_0xbd427c<_0x4d40cc['offsetSize'];_0xbd427c++)_0x5f45c4['push'](new ft('$text',{'vid':null===_0x2275c0?this['_revisionId']++:_0x2275c0++}));}if(_0x4684e2['is']('documentFragment')){const _0xa4bcc3=F(_0x4684e2['rootName']);return _0xa4bcc3['_insertChild'](0x0,_0x5f45c4),_0xa4bcc3;}return _0x4ec5a7['_setAttribute']('vid_end',null===_0x2275c0?this['_revisionId']++:_0x2275c0++),_0x4ec5a7['_insertChild'](0x0,_0x5f45c4),_0x4ec5a7;}['_calculateMetaData'](_0x24686a,_0x5c0036,_0x114e00){this['_reset']();const {roots:_0x2e74b7,markers:_0x21ff08,rootsAttributes:_0x3cc6be}=this['_savedMetaData']['get'](_0x24686a);this['_baseRoots']=new Map(_0x2e74b7),this['_baseRootsAttributes']=new Map(_0x4f0a8f(_0x3cc6be));for(const [_0x1c78f8,_0x1e1317]of this['_baseRoots'])if('$graveyard'!==_0x1c78f8&&(this['_diffRoots']['set'](_0x1c78f8,T(_0x1e1317)),this['_diffRootsAttributes']=new Map(_0x4f0a8f(_0x3cc6be)),_0x114e00)){const _0x45f735=this['_revisionId'];this['_idsRoots']['set'](_0x1c78f8,this['_makeIdsRoot'](_0x1e1317)),this['_baseIdsRoots']['set'](_0x1c78f8,this['_makeIdsRoot'](_0x1e1317,_0x45f735));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x114e00&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x12c300,_0x4e6b03]of _0x21ff08){const _0x464203=this['_baseRoots']['get'](_0x4e6b03['rootName']),_0x50847e=this['_diffRoots']['get'](_0x4e6b03['rootName']),_0x4a1177=new vt(this['_fixPosition'](_0x4e6b03['start'],_0x464203),this['_fixPosition'](_0x4e6b03['end'],_0x464203)),_0x4425d7=this['_fixRange'](_0x4a1177,_0x50847e);_0x464203['markers']['set'](_0x12c300,_0x4a1177),this['_markers']['set'](_0x12c300,_0x4425d7);}this['_applyOperations'](_0x24686a,_0x5c0036,_0x114e00);}['_applyOperations'](_0x406e65,_0x4b6ec3,_0x315c49){for(const _0x544972 of this['source']['getOperations'](_0x406e65,_0x4b6ec3))this['_handleOperation'](_0x544972,_0x315c49);for(const _0x596276 of this['_diffRoots']['values']())_0x596276['markers']['clear']();for(const [_0x96f5ec,_0x655cdb]of this['_markers']){this['_diffRoots']['get'](_0x655cdb['root']['rootName'])['markers']['set'](_0x96f5ec,_0x655cdb['clone']());}const _0x529d23=new Map(),_0x695909=new Map();for(const [_0x55dd2b,_0x485d7a]of this['_diffRoots'])_0x529d23['set'](_0x55dd2b,T(_0x485d7a)),_0x695909['set'](_0x55dd2b,this['_diffRootsAttributes']['get'](_0x55dd2b));this['_saveMetaData'](_0x4b6ec3,_0x529d23,this['_markers'],_0x695909);}['_getPreviousFrom'](_0xa772a3){const _0x4c5479=Array['from'](this['_savedMetaData']['keys']());_0x4c5479['sort']((_0x28eed3,_0x15488f)=>_0x28eed3-_0x15488f),_0x4c5479['reverse']();for(const _0x4c8a15 of _0x4c5479)if(_0x4c8a15<_0xa772a3)return _0x4c8a15;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x30087f,_0x15320b){const _0x1ec24c=Array['from'](_0x15320b['markers'])['map'](([_0x225db5,_0x2b8906])=>[_0x225db5,this['_fixRange'](_0x2b8906,_0x30087f)]);_0x30087f['markers']=new Map(_0x1ec24c);}['_transformMarkers'](_0x2eb9f8){for(const _0x5b3821 of this['_markers']['values']()){const _0x41030c=_0x5b3821['getTransformedByOperation'](_0x2eb9f8),_0x5c939b=vt['_createFromRanges'](_0x41030c);_0x5b3821['start']=_0x5c939b['start'],_0x5b3821['end']=_0x5c939b['end'];}}['_handleOperation'](_0x27d912,_0x5bb693){if('addRoot'!=_0x27d912['type']&&'detachRoot'!=_0x27d912['type']){if('insert'==_0x27d912['type']){const _0x29677b=_0x27d912['position']['root']['rootName'];this['_diffRoots']['has'](_0x29677b)||(this['_diffRoots']['set'](_0x29677b,F(_0x29677b,!0x0)),this['_diffRootsAttributes']['set'](_0x29677b,{}),_0x5bb693&&this['_idsRoots']['set'](_0x29677b,F(_0x29677b,!0x0)));}else{if('addRootAttribute'==_0x27d912['type']||'removeRootAttribute'==_0x27d912['type']||'changeRootAttribute'==_0x27d912['type'])return void this['_handleRootAttributeOperation'](_0x27d912);'marker'==_0x27d912['type']&&this['_handleMarkerOperation'](_0x27d912);}if('marker'!==_0x27d912['type']){const _0x3ef769=this['_cloneOperation'](_0x27d912,this['_diffRoots']);_0x3ef769['_execute'](),this['_transformMarkers'](_0x3ef769);}if(_0x5bb693)switch(_0x27d912['type']){case'insert':this['_handleInsertOperation'](_0x27d912);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x27d912);break;case'merge':this['_handleMergeOperation'](_0x27d912);break;case'split':this['_handleSplitOperation'](_0x27d912);}}else this['_handleRootOperation'](_0x27d912,_0x5bb693);}['_cloneOperation'](_0xc5da40,_0x70033c){const _0x577790=_0xc5da40['clone']();return _0x577790['_authorId']=_0xc5da40['_authorId'],this['_fixOperation'](_0x577790,_0x70033c),_0x577790;}['_getBaseVids'](_0x3a1170){return _0x3a1170['map'](_0x23d0ab=>{const _0x4b62f9=this['_getVidAttributeName'](_0x23d0ab);return Number(_0x23d0ab['item']['getAttribute'](_0x4b62f9));});}['_generateTape'](_0x1b5a18,_0x5ad8a6){if(_0x1b5a18['is']('element','$text'))_0x5ad8a6['push']({'item':_0x1b5a18,'type':'text'});else{_0x1b5a18['is']('element')&&_0x5ad8a6['push']({'item':_0x1b5a18,'type':'elementStart'});for(const _0x2d8b78 of _0x1b5a18['getChildren']())this['_generateTape'](_0x2d8b78,_0x5ad8a6);_0x1b5a18['is']('element')&&_0x5ad8a6['push']({'item':_0x1b5a18,'type':'elementEnd'});}return _0x5ad8a6;}['_getState'](){const _0x26f43a=new Map(this['_touched']),_0x865cd2=new Map(_0x26f43a),_0x5dbbb4=new Map(),_0x1f97b4={'insertions':{},'deletions':{}},_0x5b24fa={'insertions':{},'deletions':{}},_0x49855c=new Map(),_0x41eaad=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x41eaad['delete']('$graveyard');for(const _0x9d5c82 of _0x41eaad){const _0x58697e=this['_diffRoots']['get'](_0x9d5c82)||F(_0x9d5c82,!0x1),_0x3d3040=this['_baseRoots']['get'](_0x9d5c82)||F(_0x9d5c82,!0x1);_0x58697e['isAttached']()||_0x3d3040['isAttached']()?(_0x1f97b4['insertions'][_0x9d5c82]=T(_0x58697e),_0x1f97b4['deletions'][_0x9d5c82]=T(_0x3d3040),this['_copyMarkers'](_0x1f97b4['deletions'][_0x9d5c82],_0x3d3040),this['_copyMarkers'](_0x1f97b4['insertions'][_0x9d5c82],_0x58697e),_0x5b24fa['insertions'][_0x9d5c82]=this['_generateTape'](this['_idsRoots']['get'](_0x9d5c82),[]),_0x5b24fa['deletions'][_0x9d5c82]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x9d5c82)||F(_0x9d5c82,!0x1),[])):_0x41eaad['delete'](_0x9d5c82);}for(const _0x200dc3 of _0x41eaad){const _0x5b3d1d=_0x5b24fa['insertions'][_0x200dc3];for(const _0x641c6a of _0x5b3d1d){const _0x3fba54=this['_getVidAttributeName'](_0x641c6a),_0xbcd8ce=_0x641c6a['item']['getAttribute'](_0x3fba54);_0x865cd2['delete'](_0xbcd8ce),_0xbcd8ce>=this['_startingRevisionId']&&_0x5dbbb4['set'](_0xbcd8ce,_0x26f43a['get'](_0xbcd8ce));}}for(const _0x4200c3 of _0x41eaad){const _0x3d6ec2=_0x5b24fa['insertions'][_0x4200c3],_0x5598ff=this['_getBaseVids'](_0x5b24fa['deletions'][_0x4200c3]);let _0x4bebd1=0x0;for(const _0x2202a6 of _0x3d6ec2){const _0x4a03fe=this['_getVidAttributeName'](_0x2202a6),_0x18e76a=_0x2202a6['item']['getAttribute'](_0x4a03fe);if(!_0x5dbbb4['has'](_0x18e76a)&&!_0x49855c['has'](_0x18e76a)){if(_0x865cd2['has'](_0x18e76a))_0x4bebd1++;else{if(_0x18e76a!=_0x5598ff[_0x4bebd1]){const _0x34b192=_0x26f43a['get'](_0x18e76a)||_0x26f43a['get'](_0x5598ff[_0x4bebd1]);for(;_0x18e76a!=_0x5598ff[_0x4bebd1];)_0x865cd2['has'](_0x5598ff[_0x4bebd1])||(_0x49855c['set'](_0x5598ff[_0x4bebd1],_0x34b192),_0x26f43a['set'](_0x5598ff[_0x4bebd1],_0x34b192)),_0x4bebd1++;}_0x4bebd1++;}}}}for(const _0x425a2c of _0x41eaad){const _0x201a20=_0x5b24fa['insertions'][_0x425a2c];for(const _0x1ea2de of _0x201a20){const _0x4638f5=this['_getVidAttributeName'](_0x1ea2de),_0x21cf6a=_0x1ea2de['item']['getAttribute'](_0x4638f5);if(_0x49855c['has'](_0x21cf6a)){const _0x5d72f0=_0x49855c['get'](_0x21cf6a);_0x865cd2['has'](_0x21cf6a)||_0x865cd2['set'](_0x21cf6a,{..._0x5d72f0}),_0x5dbbb4['set'](_0x21cf6a,{..._0x5d72f0});}}}for(const _0x44caea of _0x865cd2['keys']())_0x44caea>=this['_startingRevisionId']&&_0x865cd2['delete'](_0x44caea);const _0x3fbc96=new Map();for(const _0x5c2092 of _0x41eaad){let _0x507b62=_0x5b24fa['insertions'][_0x5c2092];for(const _0x4d598d of _0x507b62)if(_0x4d598d['item']['is']('element','tableCell')){const _0x4f4def=this['_getVidAttributeName'](_0x4d598d),_0x28067c=_0x4d598d['item']['getAttribute'](_0x4f4def);if(_0x5dbbb4['has'](_0x28067c)){const _0x45bc04=_0x4d598d['item']['parent']['parent']['getAttribute']('vid_start'),_0x544f97=_0x3fbc96['get'](_0x45bc04)||new Set();_0x544f97['add'](_0x5dbbb4['get'](_0x28067c)['userId']),_0x3fbc96['set'](_0x45bc04,_0x544f97);}}_0x507b62=_0x5b24fa['deletions'][_0x5c2092];for(const _0xd84a1b of _0x507b62)if(_0xd84a1b['item']['is']('element','tableCell')){const _0x23b140=this['_getVidAttributeName'](_0xd84a1b),_0x5a368f=_0xd84a1b['item']['getAttribute'](_0x23b140);if(_0x865cd2['has'](_0x5a368f)){const _0x2fba93=_0xd84a1b['item']['parent']['parent']['getAttribute']('vid_start'),_0x342b52=_0x3fbc96['get'](_0x2fba93)||new Set();_0x342b52['add'](_0x865cd2['get'](_0x5a368f)['userId']),_0x3fbc96['set'](_0x2fba93,_0x342b52);}}for(const _0x55d0b1 of _0x3fbc96['keys']())(_0x5dbbb4['has'](_0x55d0b1)||_0x865cd2['has'](_0x55d0b1))&&_0x3fbc96['delete'](_0x55d0b1);}for(const _0x1f7b74 of _0x41eaad){const _0x2b6196=_0x5b24fa['insertions'][_0x1f7b74];let _0x10a342=null,_0x4f8717=null;for(const _0x4a1503 of _0x2b6196){const _0x35dab1=this['_getVidAttributeName'](_0x4a1503),_0x3e1a84=_0x4a1503['item']['getAttribute'](_0x35dab1),_0x3a5258=_0x3fbc96['get'](_0x3e1a84);_0x3a5258&&'elementStart'==_0x4a1503['type']&&(_0x10a342=Array['from'](_0x3a5258)[0x0],_0x4f8717=_0x4a1503['item']['getAttribute']('vid_end')),_0x10a342&&(_0x865cd2['set'](_0x3e1a84,{'userId':_0x10a342}),_0x5dbbb4['set'](_0x3e1a84,{'userId':_0x10a342})),_0x3e1a84==_0x4f8717&&(_0x10a342=null,_0x4f8717=null);}}const _0x4658ef={},_0x6ba928=new Set();for(const _0x59dd27 of _0x41eaad){const _0x5cb06c=_0x1f97b4['deletions'][_0x59dd27],_0x9c9fe7=_0x1f97b4['insertions'][_0x59dd27];for(const {userId:_0x256258}of this['_touchedMarkers']['values']())null!==_0x256258&&_0x6ba928['add'](_0x256258);for(const {userId:_0x2b8151}of this['_touchedRoots']['values']())null!==_0x2b8151&&_0x6ba928['add'](_0x2b8151);this['_markChanges'](_0x9c9fe7,_0x5b24fa['insertions'][_0x59dd27],_0x5dbbb4,'insertion',_0x6ba928),this['_markChanges'](_0x5cb06c,_0x5b24fa['deletions'][_0x59dd27],_0x865cd2,'deletion',_0x6ba928),_0x4658ef[_0x59dd27]={'insertions':this['_prepareViewToSave'](_0x9c9fe7),'deletions':this['_prepareViewToSave'](_0x5cb06c),'attachChange':this['_touchedRoots']['get'](_0x59dd27)||null,'attributesBefore':_0x4f0a8f(this['_baseRootsAttributes']['get'](_0x59dd27))||{},'attributesAfter':_0x4f0a8f(this['_diffRootsAttributes']['get'](_0x59dd27))};}return{'diffData':_0x4658ef,'authorsIds':Array['from'](_0x6ba928)};}['_processRootBeforeSave'](_0x129264){for(const [,_0x31d375]of _0x129264['markers']){const _0x14b950=_0x31d375['start']['getAncestors']()['filter'](_0x5ec9d7=>'tableCell'==_0x5ec9d7['name']);for(const _0x5b253e of _0x14b950)0x1==_0x5b253e['childCount']&&_0x5b253e['getChild'](0x0)['is']('element','paragraph')&&_0x5b253e['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x4ddec2){this['_processRootBeforeSave'](_0x4ddec2);const _0x118f81=this['editor']['data']['toView'](_0x4ddec2,{}),_0x402ebd=Array['from'](_0x118f81['getChildren']())['map'](_0xc217ab=>this['_getViewJson'](_0xc217ab));return JSON['stringify'](_0x402ebd);}['_getViewJson'](_0x2c67f6){if(_0x2c67f6['is']('$text'))return _0x2c67f6['data'];{const _0x3d9410=_0x2c67f6;return{'type':Object['keys'](P)['find'](_0x107571=>_0x2c67f6 instanceof P[_0x107571]),'name':_0x3d9410['name'],'attributes':Array['from'](_0x3d9410['getAttributes']()),'children':Array['from'](_0x3d9410['getChildren']())['map'](_0x15d067=>this['_getViewJson'](_0x15d067))};}}['_markChanges'](_0x4b1b6c,_0x4d2573,_0x1cd41a,_0x453474,_0x4f5448){let _0x4d9aac=null,_0x518174=null,_0x3a85b4=0x0;const _0x2dfb01=this['editor']['model'];for(let _0x41b30a=0x0;_0x41b30a<_0x4d2573['length'];_0x41b30a++){const _0x5b86ce=this['_getVidAttributeName'](_0x4d2573[_0x41b30a]),_0x2282c5=_0x4d2573[_0x41b30a]['item']['getAttribute'](_0x5b86ce),_0x1c4a0a=_0x1cd41a['get'](_0x2282c5),_0x42b0de=_0x41b30a==_0x4d2573['length']-0x1;(!_0x4d9aac&&_0x1c4a0a&&(_0x4d9aac=_0x1c4a0a,_0x518174=_0x4d2573[_0x41b30a]),_0x4d9aac&&(!_0x1c4a0a||_0x1c4a0a['userId']!=_0x4d9aac['userId']))&&(_0x396e04(_0x1c4a0a,B(_0x518174,_0x4b1b6c,_0x2dfb01),B(_0x4d2573[_0x41b30a],_0x4b1b6c,_0x2dfb01)),_0x4d9aac=_0x1c4a0a||null,_0x518174=_0x1c4a0a?_0x4d2573[_0x41b30a]:null),_0x4d9aac&&_0x42b0de&&_0x396e04(_0x1c4a0a,B(_0x518174,_0x4b1b6c,_0x2dfb01),J(_0x4d2573[_0x41b30a],_0x4b1b6c,_0x2dfb01));}function _0x396e04(_0x2ba84a,_0x507da6,_0x40efcf){const _0x5936c3=_0x4d9aac['userId'],_0x187e4b='revision:'+_0x453474+':'+_0x5936c3+':'+_0x3a85b4++,_0xd7a300=_0x2dfb01['createRange'](_0x507da6,_0x40efcf);_0x4b1b6c['markers']['set'](_0x187e4b,_0xd7a300),null!==_0x5936c3&&_0x4f5448['add'](_0x5936c3);}}['_getVidAttributeName'](_0xaa6eb7){switch(_0xaa6eb7['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x370833,_0x47f3c5){_0x370833['baseVersion']=null;for(const _0x5bab6c in _0x370833){const _0x50b9ef=_0x370833[_0x5bab6c];if(_0x50b9ef instanceof gt){const _0x120230=_0x47f3c5['get'](_0x50b9ef['root']['rootName']);_0x370833[_0x5bab6c]=this['_fixPosition'](_0x50b9ef,_0x120230);}if(_0x50b9ef instanceof vt){const _0x1587e6=_0x47f3c5['get'](_0x50b9ef['root']['rootName']);_0x370833[_0x5bab6c]=this['_fixRange'](_0x50b9ef,_0x1587e6);}'root'===_0x5bab6c&&(_0x370833['root']=_0x47f3c5['get'](_0x370833['root']['rootName']));}}['_fixRange'](_0x43927b,_0x3a86d0){return this['editor']['model']['createRange'](this['_fixPosition'](_0x43927b['start'],_0x3a86d0),this['_fixPosition'](_0x43927b['end'],_0x3a86d0));}['_fixPosition'](_0x2013a9,_0xb615e9){return this['editor']['model']['createPositionFromPath'](_0xb615e9,_0x2013a9['path'],_0x2013a9['stickiness']);}['_handleInsertOperation'](_0x3982d7){const _0xd5c5bf=this['_idsRoots']['get'](_0x3982d7['position']['root']['rootName']),_0xe8f943=this['_fixPosition'](_0x3982d7['position'],_0xd5c5bf),_0x6b553a=null===_0x3982d7['_authorId']?null:_0x3982d7['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x39202f=_0xe8f943['parent'],_0x1638e1=this['_revisionId'],_0x3b7770=[];for(const _0x248571 of _0x3982d7['nodes'])if(_0x248571['is']('element'))_0x3b7770['push'](this['_makeIdsRoot'](_0x248571));else{for(let _0x2f4594=0x0;_0x2f4594<_0x248571['offsetSize'];_0x2f4594++)_0x3b7770['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x15d00d=this['_revisionId'];for(let _0x4a405b=_0x1638e1;_0x4a405b<_0x15d00d;_0x4a405b++)this['_touched']['set'](_0x4a405b,{'userId':_0x6b553a});_0x39202f['_insertChild'](_0xe8f943['offset'],_0x3b7770);}['_handleMoveOperation'](_0x2e126f){(_0x2e126f=this['_cloneOperation'](_0x2e126f,this['_idsRoots']))['_execute']();const _0x361ca0=null===_0x2e126f['_authorId']?null:_0x2e126f['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x12b9cd=_0x2e126f['getMovedRangeStart'](),_0x59ed84=_0x12b9cd['parent'],_0x34ca7a=_0x12b9cd['offset'];!function _0x4cae11(_0x457d92,_0x1a6888,_0x55dbdd,_0x4f5742){for(let _0x510702=_0x55dbdd;_0x510702<_0x4f5742;_0x510702++){const _0x33b533=_0x1a6888['getChild'](_0x510702);_0x33b533['is']('element','$text')?_0x457d92['set'](_0x33b533['getAttribute']('vid'),{'userId':_0x361ca0}):(_0x457d92['set'](_0x33b533['getAttribute']('vid_start'),{'userId':_0x361ca0}),_0x4cae11(_0x457d92,_0x33b533,0x0,_0x33b533['childCount']),_0x457d92['set'](_0x33b533['getAttribute']('vid_end'),{'userId':_0x361ca0}));}}(this['_touched'],_0x59ed84,_0x34ca7a,_0x34ca7a+_0x2e126f['howMany']);}['_handleMergeOperation'](_0x6cdf7c){const _0x32fcdd=null===(_0x6cdf7c=this['_cloneOperation'](_0x6cdf7c,this['_idsRoots']))['_authorId']?null:_0x6cdf7c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x44ef78=_0x6cdf7c['targetPosition']['parent'],_0x109b42=_0x6cdf7c['sourcePosition']['parent'],_0x4a09d9=_0x44ef78['getAttribute']('vid_end'),_0x380a53=_0x109b42['getAttribute']('vid_start');_0x44ef78['_setAttribute']('vid_end',_0x109b42['getAttribute']('vid_end')),_0x109b42['_setAttribute']('vid_end',_0x4a09d9),this['_touched']['set'](_0x380a53,{'userId':_0x32fcdd}),this['_touched']['set'](_0x4a09d9,{'userId':_0x32fcdd}),_0x6cdf7c['_execute']();}['_handleSplitOperation'](_0x5ade87){const _0x39008e=null===(_0x5ade87=this['_cloneOperation'](_0x5ade87,this['_idsRoots']))['_authorId']?null:_0x5ade87['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x225698=_0x5ade87['graveyardPosition'],_0x385702=_0x5ade87['splitPosition']['parent'];_0x5ade87['_execute']();const _0x43dc05=_0x385702['getAttribute']('vid_end'),_0x2504ee=_0x5ade87['insertionPosition']['nodeAfter'];if(_0x225698){const _0x40f560=_0x2504ee['getAttribute']('vid_end'),_0x2af7d6=_0x385702['getAttribute']('vid_end');_0x385702['_setAttribute']('vid_end',_0x40f560),_0x2504ee['_setAttribute']('vid_end',_0x2af7d6),this['_touched']['set'](_0x385702['getAttribute']('vid_end'),{'userId':_0x39008e}),this['_touched']['set'](_0x2504ee['getAttribute']('vid_start'),{'userId':_0x39008e});}else{const _0x1054ae=this['_revisionId']++,_0x54896b=this['_revisionId']++;_0x385702['_setAttribute']('vid_end',_0x1054ae),_0x2504ee['_setAttribute']('vid_start',_0x54896b),_0x2504ee['_setAttribute']('vid_end',_0x43dc05),this['_touched']['set'](_0x1054ae,{'userId':_0x39008e}),this['_touched']['set'](_0x54896b,{'userId':_0x39008e});}}['_handleMarkerOperation'](_0x30ae5c){if(!_0x30ae5c['affectsData'])return;const _0x32fe42=(_0x30ae5c=this['_cloneOperation'](_0x30ae5c,this['_diffRoots']))['oldRange']?_0x30ae5c['oldRange']['root']:null,_0x525d58=_0x30ae5c['newRange']?_0x30ae5c['newRange']['root']:null;_0x32fe42&&this['_markers']['delete'](_0x30ae5c['name']),_0x525d58&&this['_markers']['set'](_0x30ae5c['name'],_0x30ae5c['newRange']['clone']());const _0x87acc7=null===_0x30ae5c['_authorId']?null:_0x30ae5c['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x559db1=_0x30ae5c['name'];if(!this['_touchedMarkers']['has'](_0x559db1))return void this['_touchedMarkers']['set'](_0x559db1,{'range':_0x30ae5c['oldRange'],'userId':_0x87acc7});const _0xcef4c8=this['_touchedMarkers']['get'](_0x559db1),_0x5709ec=_0xcef4c8['range'],_0x15653e=_0x30ae5c['newRange'];null==_0x5709ec&&null==_0x15653e||_0x5709ec&&_0x15653e&&_0x5709ec['isEqual'](_0x15653e)?this['_touchedMarkers']['delete'](_0x30ae5c['name']):_0xcef4c8['userId']=_0x87acc7;}['_handleRootOperation'](_0x39414e,_0x18d354){this['_diffRoots']['has'](_0x39414e['rootName'])?this['_diffRoots']['get'](_0x39414e['rootName'])['_isAttached']=_0x39414e['isAdd']:(this['_diffRoots']['set'](_0x39414e['rootName'],F(_0x39414e['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x39414e['rootName'],{}),_0x18d354&&this['_idsRoots']['set'](_0x39414e['rootName'],F(_0x39414e['rootName'],!0x0)));const _0x5436e6=null===_0x39414e['_authorId']?null:_0x39414e['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4c63ff=this['_touchedRoots']['get'](_0x39414e['rootName']);_0x4c63ff&&_0x4c63ff['userId']===_0x5436e6?this['_touchedRoots']['delete'](_0x39414e['rootName']):this['_touchedRoots']['set'](_0x39414e['rootName'],{'userId':_0x5436e6,'isAttached':_0x39414e['isAdd']});}['_handleRootAttributeOperation'](_0x24b2d6){const _0x1f439b=this['_diffRootsAttributes']['get'](_0x24b2d6['root']['rootName']);null===_0x24b2d6['newValue']?delete _0x1f439b[_0x24b2d6['key']]:_0x1f439b[_0x24b2d6['key']]=_0x24b2d6['newValue'];}}function T(_0x527458){const _0x46bb09=F(_0x527458['rootName'],_0x527458['isAttached']());for(const _0x2506d3 of _0x527458['getChildren']()){const _0x44e0e9=_0x2506d3['_clone'](!0x0);_0x46bb09['_appendChild'](_0x44e0e9);}return _0x46bb09;}function F(_0x29e426,_0x4df5d3=!0x0){const _0x33551c=new mt();return _0x33551c['rootName']=_0x29e426,_0x33551c['_isAttached']=_0x4df5d3,_0x33551c['isAttached']=()=>_0x33551c['_isAttached'],_0x33551c;}function B(_0x4c4169,_0x37b62c,_0x2073f3){const _0x1ba101='elementEnd'==_0x4c4169['type']?_0x2073f3['createPositionAt'](_0x4c4169['item'],'end'):_0x2073f3['createPositionBefore'](_0x4c4169['item']);return _0x2073f3['createPositionFromPath'](_0x37b62c,_0x1ba101['path'],_0x1ba101['stickiness']);}function J(_0xf54cec,_0xcbdb72,_0xeacdc7){const _0x1a35f2='elementStart'==_0xf54cec['type']?_0xeacdc7['createPositionAt'](_0xf54cec['item'],0x0):_0xeacdc7['createPositionAfter'](_0xf54cec['item']);return _0xeacdc7['createPositionFromPath'](_0xcbdb72,_0x1a35f2['path'],_0x1a35f2['stickiness']);}class ns extends _0x292cac{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x1cfd56,_0x3574b9){super(_0x1cfd56),this['focusTracker']=new _0x1e0689(),this['keystrokes']=new _0xabb4ae(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3574b9),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0x4306fa({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x59d49e=_0x57b55a=>_0x57b55a['stopPropagation']();this['keystrokes']['set']('arrowright',_0x59d49e),this['keystrokes']['set']('arrowleft',_0x59d49e),this['keystrokes']['set']('arrowup',_0x59d49e),this['keystrokes']['set']('arrowdown',_0x59d49e);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x1ebc1f){this['revisionNameInputView']['fieldView']['element']['value']=_0x1ebc1f['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x2ba712){const _0x5a1f35=new nt(this['locale'],_0x11ce75),_0x5bb692=_0x5a1f35['fieldView'];_0x5bb692['extendTemplate']({'attributes':{'maxlength':'220'}});let _0xea7bc9=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x2ba712&&(_0xea7bc9+='\x20('+m(this['locale'],'optional')+')'),(_0x5a1f35['label']=_0xea7bc9,_0x5bb692['on']('input',()=>{this['revisionNameInputValue']=_0x5bb692['element']['value']['trim']();}),_0x5a1f35);}}class u extends _0x38f4f7{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x178d15=this['editor'],_0xa0b927=_0x178d15['plugins']['get']('RevisionTracker');_0x178d15['ui']['componentFactory']['add']('revisionHistory',_0x558de0=>{const _0xb20739=_0xb121cb(_0x558de0),_0xae789b=_0xb20739['panelView']['children'],_0x3a85f5=new te(_0x558de0),_0x4d686e=new _0x35372d(_0x558de0),_0x3b6154=new _0x559b2e(_0x558de0),_0x10acf8=new _0x35372d(_0x558de0),_0x554d34=new _0x559b2e(_0x558de0);return _0xb20739['bind']('isEnabled')['to'](_0xa0b927,'isReady',_0xa0b927,'isEnabled',_0x178d15,'isReadOnly',(_0x2ae972,_0x2f8efc,_0x456cc6)=>_0x2ae972&&_0x2f8efc&&!_0x456cc6),_0xb20739['buttonView']['set']({'icon':_0x23c949['history'],'label':m(_0x558de0,'Revision\x20history'),'tooltip':!0x0}),_0x3b6154['set']({'label':m(_0x558de0,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x3b6154['bind']('isEnabled')['to'](_0xa0b927,'isReady',_0xa0b927,'isEnabled',_0x178d15,'isReadOnly',(_0x4db915,_0x3b367d,_0x5e6ad9)=>_0x4db915&&_0x3b367d&&!_0x5e6ad9),_0x3b6154['on']('execute',()=>this['_showDialog']()),_0x554d34['set']({'label':m(_0x558de0,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x554d34['bind']('isEnabled')['to'](_0xa0b927,'isReady',_0x178d15,'isReadOnly',(_0x67e719,_0x16c0c0)=>_0x67e719&&!_0x16c0c0),_0x554d34['on']('execute',()=>{_0x178d15['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0xb20739['isOpen']=!0x1,_0x178d15['editing']['view']['focus']();}),_0x4d686e['children']['add'](_0x3b6154),_0x10acf8['children']['add'](_0x554d34),_0x3a85f5['role']='menu',_0x3a85f5['items']['addMany']([_0x4d686e,_0x10acf8]),_0xae789b['add'](_0x3a85f5),_0xb20739;}),_0x178d15['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x3e8b3c=this['editor'],_0x410832=_0x3e8b3c['locale'],_0x3629bd=new _0xc61a72(_0x410832),_0x352803=new _0x4371dd(_0x410832);_0x3629bd['buttonView']['set']({'icon':_0x23c949['history'],'label':m(_0x410832,'Revision\x20history')});const _0x3c739c=new _0x19ccac(_0x410832,_0x3629bd),_0xa02ff7=new _0x4d5058(_0x410832);_0xa02ff7['set']({'label':m(_0x410832,'Save\x20current\x20revision')}),_0xa02ff7['delegate']('execute')['to'](_0x3629bd),_0xa02ff7['on']('execute',()=>{this['_showDialog']();}),_0x3c739c['children']['add'](_0xa02ff7),_0x352803['items']['add'](_0x3c739c);const _0x404a3f=new _0x19ccac(_0x410832,_0x3629bd),_0x1b793d=new _0x4d5058(_0x410832);return _0x1b793d['set']({'label':m(_0x410832,'Open\x20revision\x20history')}),_0x1b793d['delegate']('execute')['to'](_0x3629bd),_0x1b793d['on']('execute',()=>{_0x3e8b3c['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x404a3f['children']['add'](_0x1b793d),_0x352803['items']['add'](_0x404a3f),_0x3629bd['panelView']['children']['add'](_0x352803),_0x3629bd;}['_showDialog'](){const _0x30cca4=this['editor'],_0x4aadf5=_0x30cca4['locale'],_0x56b396=_0x30cca4['plugins']['get']('Dialog'),_0x17cbef=_0x30cca4['plugins']['get']('RevisionTracker');function _0x2a0567(_0x78347e){_0x30cca4['config']['get']('revisionHistory.requireRevisionName')&&''===_0x78347e['revisionName']?_0x78347e['revisionNameInputView']['errorText']=m(_0x4aadf5,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x30cca4['plugins']['get'](l)['saveRevision']({'name':_0x78347e['revisionName']}),_0x56b396['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x2a0567(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x56b396['show']({'id':'revisionSave','title':m(_0x4aadf5,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x30cca4['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x56b396['hide']()},{'label':m(_0x30cca4['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x431b40){_0x431b40['bind']('isEnabled')['to'](_0x17cbef,'isReady',_0x17cbef,'isEnabled',_0x30cca4,'isReadOnly',(_0x5a5d8a,_0x24ad2b,_0x586dec)=>_0x5a5d8a&&_0x24ad2b&&!_0x586dec);},'onExecute':()=>_0x2a0567(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x4389ca=this['editor'],_0x44893b=_0x4389ca['locale'];this['_saveRevisionFormView']=new ns(_0x44893b,_0x4389ca['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x292cac{['changeId'];['_model'];constructor(_0x3ba2dd,_0x4dd10d){super(_0x3ba2dd),this['_model']=_0x4dd10d,this['changeId']=_0x4dd10d['id'];const _0x4306b2=this['bindTemplate'],_0x59d91a=m(_0x3ba2dd,_0x4dd10d['data']['isSuggestion']?'Suggested\x20by':'add'==_0x4dd10d['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x4dd10d['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x4306b2['to']('type',_0xc19bb2=>'ck-revision-change__'+_0xc19bb2)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x59d91a}]},{'text':'\x20'+_0x4dd10d['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x56bb44(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x1fa606){super(),this['id']=_0x1fa606['id']||_0x7bac97(),this['author']=_0x1fa606['author'],this['type']=_0x1fa606['type'],this['data']=_0x1fa606['data']||{},this['rootName']=_0x1fa606['rootName'],this['set']('createdAt',_0x1fa606['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x371080,_0x5d7954){this['newRevisionId']=_0x371080,this['oldRevisionId']=_0x5d7954,this['changes']=new _0x2ff70c();}['_setChanges'](_0x19fbfd){for(const _0x42bdc5 of _0x19fbfd)this['changes']['add'](_0x42bdc5);}}const Y={'c':_0x20dad9,'a':_0x4a57c1,'e':_0x481447,'r':_0x21f19b,'u':_0x4ed8b6};class d extends _0x38f4f7{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x4c2d32,_0x192215,j];}constructor(_0x106648){super(_0x106648),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0xeb2fe5,_0x395f4e,_0x943698)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x32b39f=>{for(const _0x4c1963 of this['editor']['editing']['view']['document']['roots'])_0x943698?_0x32b39f['removeClass']('ck-editor__editable__overlay',_0x4c1963):_0x32b39f['addClass']('ck-editor__editable__overlay',_0x4c1963);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0xc88a34=>null!==_0xc88a34),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x429be6,_0x78dd64,_0x2cf8d8)=>_0x429be6&&_0x2cf8d8?_0x78dd64['changes']['getIndex'](_0x2cf8d8):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x52b974,_0x253b25)=>_0x52b974?_0x253b25['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x192215);}['init'](){const _0x1f1f9f=this['editor'],_0x1b478a=new yt(_0x1f1f9f,{'direction':'backward'}),_0x129cfa=new yt(_0x1f1f9f,{'direction':'forward'});(_0x1f1f9f['commands']['add']('showPreviousChange',_0x1b478a),_0x1f1f9f['commands']['add']('showNextChange',_0x129cfa),_0x1f1f9f['commands']['add']('restoreRevision',new _t(_0x1f1f9f)),this['on']('change:numberOfChanges',()=>{_0x1b478a['refresh'](),_0x129cfa['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x1f1f9f['enableReadOnlyMode']('revision-viewer'),_0x1f1f9f['plugins']['has']('WidgetToolbarRepository'))&&_0x1f1f9f['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x63ec1b){await this['loadRevisionData'](_0x63ec1b);const _0x240820={};for(const _0xd9a4d in _0x63ec1b['diffData']){if(_0x63ec1b['diffData'][_0xd9a4d]['attachChange']&&!_0x63ec1b['diffData'][_0xd9a4d]['attachChange']['isAttached'])continue;const _0x59c492=this['_removeRevisionMarkers'](JSON['parse'](_0x63ec1b['diffData'][_0xd9a4d]['insertions'])),_0x2e6915=this['editor']['editing']['view']['document'],_0x242d7e=new _0x5069ac(_0x2e6915,_0x59c492['map'](_0x547a65=>this['_getViewObj'](_0x547a65)));this['editor']['data']['processor']['useFillerType']('marked'),_0x240820[_0xd9a4d]=this['editor']['data']['processor']['toData'](_0x242d7e),this['editor']['data']['processor']['useFillerType']('default');}return _0x240820;}async['getRevisionRootsAttributes'](_0x101d96){await this['loadRevisionData'](_0x101d96);const _0x4b6306={};for(const _0x806e62 in _0x101d96['diffData'])_0x101d96['diffData'][_0x806e62]['attachChange']&&!_0x101d96['diffData'][_0x806e62]['attachChange']['isAttached']||(_0x4b6306[_0x806e62]=_0x101d96['diffData'][_0x806e62]['attributesAfter']||{});return _0x4b6306;}['_removeRevisionMarkers'](_0x2631e9){return(_0x2631e9=_0x2631e9['filter'](_0x56da94=>!_0x56da94['name']||'revision-start'!==_0x56da94['name']&&'revision-end'!==_0x56da94['name']))['forEach'](_0x545369=>{'string'!=typeof _0x545369&&(_0x545369['children']=this['_removeRevisionMarkers'](_0x545369['children']),_0x545369['attributes']=_0x545369['attributes']['filter'](_0xff2ad4=>!_0xff2ad4[0x0]['startsWith']('data-revision-')));}),_0x2631e9;}async['compare'](_0x539af6,_0x10b750,_0x275038=!0x1){if(!this['isEnabled'])return;const _0x28d46c=this['diff'],_0x452098=this['repository'],_0x5a8a0f='string'==typeof _0x539af6?_0x452098['getRevision'](_0x539af6):_0x539af6,_0x3902c5='string'==typeof _0x10b750?_0x452098['getRevision'](_0x10b750):_0x10b750,_0x4f609c=_0x5a8a0f['id'],_0xa5de78=_0x3902c5?_0x3902c5['id']:null;if(!_0x275038&&this['diff']&&this['diff']['newRevisionId']===_0x4f609c&&this['diff']['oldRevisionId']===_0xa5de78)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x4f609c,_0xa5de78);const _0x35ca0b=this['_getRevisionsRange'](_0x5a8a0f,_0x3902c5,!0x0)['map'](_0x55fe98=>this['loadRevisionData'](_0x55fe98));return _0x35ca0b['push'](new Promise(_0x59b186=>{setTimeout(_0x59b186,0x14);})),Promise['all'](_0x35ca0b)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x3dfcd4=this['_getDiff'](_0x4f609c,_0xa5de78);for(const _0x57a8f4 of _0x3dfcd4['changes'])this['_changeIdToChange']['set'](_0x57a8f4['id'],_0x57a8f4);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x55f34f=>{for(const _0x514b10 of this['editor']['model']['document']['getRootNames']())_0x55f34f['detachRoot'](_0x514b10);for(const _0x2015b8 of Object['keys'](_0x3dfcd4['model'])){const _0x3de0b8=_0x55f34f['addRoot'](_0x2015b8);for(const _0xb2520a of Object['keys'](_0x3dfcd4['attributes'][_0x2015b8]))_0x55f34f['setAttribute'](_0xb2520a,_0x3dfcd4['attributes'][_0x2015b8][_0xb2520a],_0x3de0b8);_0x55f34f['insert'](_0x3dfcd4['model'][_0x2015b8],_0x3de0b8,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x3dfcd4['changes'])),this['isReady']=!0x0;})['catch'](_0x315953=>{console['error'](_0x315953),this['_cleanUp'](),_0x28d46c&&(this['diff']=_0x28d46c),this['isReady']=!0x0;});}['addRevisionData'](_0x3031f6,_0x10ad8a){const _0x112737=this['repository']['createRevision'](_0x3031f6);return _0x112737['on']('_update',(_0x252b69,_0x328305,_0x2160a7)=>_0x10ad8a(_0x328305,_0x2160a7,_0x112737)),this['repository']['addRevision'](_0x112737),_0x112737;}['loadRevisionData'](_0x13ef0c){if(!_0x13ef0c||_0x13ef0c['diffData'])return Promise['resolve']();{const _0x58d7d6=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x58d7d6,'revisionId':_0x13ef0c['id']})['then'](_0x575293=>{_0x13ef0c['_update']({'diffData':_0x575293['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x2d1790=>{for(const _0x59b8e2 of this['editor']['model']['document']['getRootNames']())_0x2d1790['detachRoot'](_0x59b8e2);});}['_sortAndFilterDiffChanges'](_0x1fb129){const _0x18e9f1=[],_0x52cb08=new Map();for(const _0x262577 of this['editor']['model']['document']['getRootNames']()){const _0x2987ca=this['editor']['editing']['view']['getDomRoot'](_0x262577);if(!_0x2987ca)continue;const _0x206756=_0x2987ca['getClientRects']()['item'](0x0);_0x206756&&(_0x18e9f1['push'](_0x262577),_0x52cb08['set'](_0x262577,_0x206756));}return _0x18e9f1['sort']((_0x53a8b0,_0x1513f8)=>{const _0x1e9134=_0x52cb08['get'](_0x53a8b0),_0x255f28=_0x52cb08['get'](_0x1513f8);return _0x1e9134['y']-_0x255f28['y']||_0x1e9134['x']-_0x255f28['x'];}),(_0x1fb129=_0x1fb129['filter'](_0x3dec91=>_0x18e9f1['includes'](_0x3dec91['rootName'])))['sort']((_0x1f3efa,_0x6a67de)=>_0x18e9f1['indexOf'](_0x1f3efa['rootName'])-_0x18e9f1['indexOf'](_0x6a67de['rootName'])),_0x1fb129;}['_makeTape'](_0x463fcf){const _0x4cde40=Array['from'](_0x463fcf['markers'])['filter'](([_0x5a380e,_0x4ff854])=>_0x5a380e['startsWith']('revision:')&&!_0x4ff854['isCollapsed']),_0x5157e6=Array['from'](this['editor']['model']['createRangeIn'](_0x463fcf)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x4cde40['length'])for(const _0x37d7d9 of _0x5157e6){const [_0x627105,_0xd7416b]=_0x4cde40[0x0],[,_0x39cdc4,_0x64a049]=_0x627105['split'](':');if(_0xd7416b['end']['isEqual'](_0x37d7d9['nextPosition'])&&_0x4cde40['shift'](),(_0x37d7d9['previousPosition']['isEqual'](_0xd7416b['start'])||_0x37d7d9['previousPosition']['isAfter'](_0xd7416b['start']))&&('insertion'==_0x39cdc4?_0x37d7d9['isAdded']={'userId':_0x64a049}:'deletion'==_0x39cdc4&&(_0x37d7d9['isRemoved']={'userId':_0x64a049})),0x0==_0x4cde40['length'])break;}return _0x5157e6;}['_refreshStartEndIndex'](_0x1b5e3e){const _0xd0e979=new Map();for(let _0xcacc7=0x0;_0xcacc7<_0x1b5e3e['length'];_0xcacc7++)'text'===_0x1b5e3e[_0xcacc7]['type']?(_0x1b5e3e[_0xcacc7]['item']['startIndex']=_0xcacc7,_0x1b5e3e[_0xcacc7]['item']['endIndex']=_0xcacc7):('elementStart'===_0x1b5e3e[_0xcacc7]['type']?_0x1b5e3e[_0xcacc7]['item']['startIndex']=_0xcacc7:'elementEnd'===_0x1b5e3e[_0xcacc7]['type']&&(_0x1b5e3e[_0xcacc7]['item']['endIndex']=_0xcacc7),_0xd0e979['set'](_0x1b5e3e[_0xcacc7]['id'],_0xcacc7));for(const _0x5c0bff of _0xd0e979['values']())'elementStart'===_0x1b5e3e[_0x5c0bff]['type']?_0x1b5e3e[_0x5c0bff]['item']['endIndex']=_0xd0e979['get'](_0x1b5e3e[_0x5c0bff]['pairId']):'elementEnd'===_0x1b5e3e[_0x5c0bff]['type']&&(_0x1b5e3e[_0x5c0bff]['item']['startIndex']=_0xd0e979['get'](_0x1b5e3e[_0x5c0bff]['pairId']));}['_processTape'](_0x1f5026){for(let _0x2ac806=0x0;_0x2ac806<_0x1f5026['length'];_0x2ac806++){if('elementStart'===_0x1f5026[_0x2ac806]['type'])_0x1f5026[_0x2ac806]['item']['startIndex']=_0x2ac806;else{if('elementEnd'===_0x1f5026[_0x2ac806]['type']){_0x1f5026[_0x2ac806]['item']['endIndex']=_0x2ac806;const _0x58058c=_0x1f5026[_0x2ac806]['item']['startIndex'];_0x1f5026[_0x58058c]['pairId']=_0x1f5026[_0x2ac806]['id'],_0x1f5026[_0x2ac806]['pairId']=_0x1f5026[_0x58058c]['id'];}else _0x1f5026[_0x2ac806]['item']['startIndex']=_0x2ac806,_0x1f5026[_0x2ac806]['item']['endIndex']=_0x2ac806,_0x1f5026[_0x2ac806]['pairId']=null;}_0x1f5026[_0x2ac806]['markersStart']||(_0x1f5026[_0x2ac806]['markersStart']=[],_0x1f5026[_0x2ac806]['markersEnd']=[]);}}['_markInsertions'](_0x3d747a,_0x391a06){const _0x5c7de6=_0x3d747a['filter'](_0x27e28b=>!_0x27e28b['isAdded']);for(let _0x488691=0x0;_0x488691<_0x391a06['length'];_0x488691++)_0x391a06[_0x488691]['isAdded']&&(_0x5c7de6[_0x488691]['isAdded']=_0x391a06[_0x488691]['isAdded']);}['_makeModelFromViewString'](_0x3ea042){const _0x1207f3=JSON['parse'](_0x3ea042),_0x53fd8b=this['editor']['editing']['view']['document'],_0x47faac=new _0x5069ac(_0x53fd8b,_0x1207f3['map'](_0x5a8f72=>this['_getViewObj'](_0x5a8f72)));return this['editor']['data']['toModel'](_0x47faac);}['_getViewObj'](_0x8c7840){const _0x8b317e=this['editor']['editing']['view']['document'];if('string'==typeof _0x8c7840)return new _0x51c9c5(_0x8b317e,_0x8c7840);{const _0x4e2ff5=_0x8c7840['children']['map'](_0x386e42=>this['_getViewObj'](_0x386e42));return new(Y[_0x8c7840['type']]||_0x16c8d2)(_0x8b317e,_0x8c7840['name'],_0x8c7840['attributes'],_0x4e2ff5);}}['_getDiff'](_0x128448,_0x93a0ab=null){const _0x10a19a=this['repository']['getRevision'](_0x128448),_0x8b9c9a=_0x93a0ab?this['repository']['getRevision'](_0x93a0ab):null,_0x5afd8e=this['_getRevisionsRange'](_0x10a19a,_0x8b9c9a),_0xaec139=_0x5afd8e[_0x5afd8e['length']-0x1],_0x5814bc=new Map(),_0x2bd363={'model':{},'attributes':{},'changes':[]},_0x58c649=new Set(),_0x35f35e=new Map();for(let _0x50dc08=_0x5afd8e['length']-0x1;_0x50dc08>=0x0;_0x50dc08--){const _0x5093ca=_0x5afd8e[_0x50dc08];for(const _0x4e559c of Object['keys'](_0x5093ca['diffData']))if(_0x5093ca['diffData'][_0x4e559c]['attachChange']){const _0x410285=_0x5093ca['diffData'][_0x4e559c]['attachChange'];_0x410285['isAttached']?(_0x58c649['add'](_0x4e559c),_0x35f35e['has'](_0x4e559c)&&_0x35f35e['get'](_0x4e559c)['userId']==_0x410285['userId']?_0x35f35e['delete'](_0x4e559c):_0x35f35e['set'](_0x4e559c,_0x410285)):_0x35f35e['has'](_0x4e559c)?(_0x58c649['delete'](_0x4e559c),_0x35f35e['delete'](_0x4e559c)):(_0x58c649['add'](_0x4e559c),_0x35f35e['set'](_0x4e559c,_0x410285));}else _0x58c649['add'](_0x4e559c);}for(const _0x2081fa of _0x58c649){const _0x17a251=_0x35f35e['has'](_0x2081fa)&&!_0x35f35e['get'](_0x2081fa)['isAttached'];let _0xf78baf=_0x17a251?_0x5afd8e['length']-0x1:0x0;const _0x441508=_0x17a251?-0x1:0x1;for(;_0x5afd8e[_0xf78baf];){const _0x389df2=_0x5afd8e[_0xf78baf];if(_0x389df2['diffData'][_0x2081fa]){const _0x5c9dd2=_0x17a251?_0x389df2['diffData'][_0x2081fa]['attributesBefore']:_0x389df2['diffData'][_0x2081fa]['attributesAfter'];_0x2bd363['attributes'][_0x2081fa]=_0x5c9dd2?_0x4f0a8f(_0x5c9dd2):{};break;}_0xf78baf+=_0x441508;}}for(const _0x4d57c4 of _0x5afd8e){_0x4d57c4['model']={};for(const _0x5c9798 of _0x4d57c4['authors'])_0x5814bc['set'](_0x5c9798['id'],_0x5c9798);for(const _0x35ec9c of _0x58c649){const _0x14bb82=_0x4d57c4['diffData'][_0x35ec9c]?_0x4d57c4['diffData'][_0x35ec9c]['insertions']:'[]',_0x149d5c=_0x4d57c4['diffData'][_0x35ec9c]?_0x4d57c4['diffData'][_0x35ec9c]['deletions']:'[]';_0x4d57c4['model'][_0x35ec9c]={'insertions':this['_makeModelFromViewString'](_0x14bb82),'deletions':this['_makeModelFromViewString'](_0x149d5c)};}}for(const _0xfddf72 of _0x58c649){let _0xfe7047=null,_0x43300e=0x0;const _0x4733f3=new Map(Array['from'](_0x10a19a['model'][_0xfddf72]['insertions']['markers'])['filter'](([_0x7e4bbc])=>!_0x7e4bbc['startsWith']('revision:')));let _0x21096b=0x0;for(const _0x56b12f of _0x5afd8e){const _0x40230d=this['_makeTape'](_0x56b12f['model'][_0xfddf72]['insertions']);_0x56b12f==_0x10a19a?(_0xfe7047=_0x40230d,_0x43300e=_0xfe7047['length'],_0xfe7047['forEach'](_0x437050=>{_0x437050['id']=_0x21096b++;}),this['_processTape'](_0xfe7047)):this['_markInsertions'](_0xfe7047,_0x40230d);const _0x495982=_0xfe7047['filter'](_0x5d0c89=>!_0x5d0c89['isAdded'])['map'](_0xc5be9b=>_0xc5be9b['id']);let _0x2cad4e=0x0;const _0x32fb65=this['_makeTape'](_0x56b12f['model'][_0xfddf72]['deletions']);_0x32fb65['forEach'](_0x3a54d9=>{_0x3a54d9['isRemoved']?_0x3a54d9['id']=_0x43300e++:_0x3a54d9['id']=_0x495982[_0x2cad4e++];}),this['_processTape'](_0x32fb65),this['_setDistance'](_0xfe7047,'isAdded'),this['_setDistance'](_0x32fb65,'isRemoved'),_0x56b12f==_0x10a19a&&this['_markMarkers'](_0xfe7047,_0x4733f3),_0xfe7047=this['_joinTapes'](_0xfe7047,_0x32fb65),this['_refreshStartEndIndex'](_0xfe7047),this['_setDistance'](_0xfe7047,'isRemoved');}_0xfe7047=_0xfe7047['filter'](_0x72ac51=>!(_0x72ac51['isAdded']&&_0x72ac51['isRemoved']));const _0x2c4b03=new Map(_0xaec139['model'][_0xfddf72]['deletions']['markers']),_0x31e09e=new Set(_0x4733f3['keys']());for(const _0x4c652a of _0x2c4b03['keys']())_0x31e09e['delete'](_0x4c652a);this['_markSuggestions'](_0xfe7047,_0x31e09e),this['_fixObsoleteTags'](_0xfe7047),_0xfe7047=this['_removeMissingPairs'](_0xfe7047),_0xfe7047=this['_markMismatchedRemovedTags'](_0xfe7047),_0xfe7047=this['_removeUnsupportedChanges'](_0xfe7047);const {root:_0x1274d7,changes:_0x2de8d4}=this['_makeModelFromTape'](_0xfe7047,_0x5814bc,_0xfddf72);_0x2bd363['model'][_0xfddf72]=_0x1274d7;const _0x478884=_0x35f35e['get'](_0xfddf72);if(_0x478884){const _0x550543=_0x5814bc['get'](_0x478884['userId']),_0x999ae=new r({'author':_0x550543,'type':_0x478884['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0xfddf72});_0x2de8d4['unshift'](_0x999ae),_0x2bd363['attributes'][_0xfddf72]['revisionHistoryAttachChange']=_0x999ae['id'];}_0x2bd363['changes']=_0x2bd363['changes']['concat'](_0x2de8d4);}return _0x2bd363;}['_markMarkers'](_0x10e3ea,_0x412a05){for(let _0x2c805b=0x0;_0x2c805b<_0x10e3ea['length'];_0x2c805b++)for(const [_0x1b5259,_0x390bd5]of _0x412a05)_0x390bd5['start']['isEqual'](_0x10e3ea[_0x2c805b]['previousPosition'])&&_0x10e3ea[_0x2c805b]['markersStart']['push'](_0x1b5259),_0x390bd5['end']['isEqual'](_0x10e3ea[_0x2c805b]['nextPosition'])&&_0x10e3ea[_0x2c805b]['markersEnd']['push'](_0x1b5259);}['_joinTapes'](_0x4bd3df,_0x399f1e){let _0x185c41=[],_0xcb8482=0x0,_0x1a4809=0x0;for(;_0xcb8482<_0x4bd3df['length']||_0x1a4809<_0x399f1e['length'];){const _0x769ae5=_0x4bd3df[_0xcb8482]||{},_0x4c6646=_0x399f1e[_0x1a4809]||{};if(_0x769ae5['id']==_0x4c6646['id'])_0xcb8482++,_0x1a4809++,_0x185c41['push'](_0x769ae5);else{if(_0x4c6646['isRemoved']&&_0x769ae5['isAdded']){const {commonTape:_0x3c7fa2,iEnd:_0x45c6de,jEnd:_0x43aa50}=this['_threeWayMerge'](_0x4bd3df,_0xcb8482,_0x399f1e,_0x1a4809);_0x185c41=_0x185c41['concat'](_0x3c7fa2),_0xcb8482=_0x45c6de,_0x1a4809=_0x43aa50;}else _0x4c6646['isRemoved']?(_0x1a4809++,_0x185c41['push'](_0x4c6646)):(_0xcb8482++,_0x185c41['push'](_0x769ae5));}}return _0x185c41;}['_markSuggestions'](_0x1b59d8,_0x510f9f){const _0x589c99=[];for(let _0x39e4a5=0x0;_0x39e4a5<_0x1b59d8['length'];_0x39e4a5++){for(let _0x451cc7=0x0;_0x451cc7<_0x1b59d8[_0x39e4a5]['markersStart']['length'];_0x451cc7++){const _0x53580d=_0x1b59d8[_0x39e4a5]['markersStart'][_0x451cc7];if(!_0x510f9f['has'](_0x53580d))continue;const {group:_0x51de09,type:_0x2d5bf6,authorId:_0x269dd2}=_0x2448a9(_0x53580d);'revision-suggestion'!=_0x51de09||'insertion'!=_0x2d5bf6&&'deletion'!=_0x2d5bf6||(_0x589c99['unshift']({'type':_0x2d5bf6,'name':_0x53580d,'userId':_0x269dd2}),_0x1b59d8[_0x39e4a5]['markersStart']['splice'](_0x451cc7,0x1),_0x451cc7--);}_0x4fcd85(_0x1b59d8[_0x39e4a5]);for(let _0x264225=0x0;_0x264225<_0x1b59d8[_0x39e4a5]['markersEnd']['length'];_0x264225++){const _0x3fa68e=_0x1b59d8[_0x39e4a5]['markersEnd'][_0x264225];if(!_0x510f9f['has'](_0x3fa68e))continue;const {group:_0x43ea16,type:_0x2f4778}=_0x2448a9(_0x3fa68e);if('revision-suggestion'!=_0x43ea16||'insertion'!=_0x2f4778&&'deletion'!=_0x2f4778)continue;_0x1b59d8[_0x39e4a5]['markersEnd']['splice'](_0x264225,0x1),_0x264225--;const _0x1e1cf8=_0x589c99['findIndex'](_0x365f5c=>_0x365f5c['name']==_0x3fa68e);_0x1e1cf8>-0x1&&_0x589c99['splice'](_0x1e1cf8,0x1);}}function _0x2448a9(_0x5a7628){const _0xba8603=_0x5a7628['split'](':');return{'group':_0xba8603[0x0],'type':_0xba8603[0x1],'subType':_0xba8603['length']>=0x5?_0xba8603[0x2]:null,'id':_0xba8603['length']<0x5?_0xba8603[0x2]:_0xba8603[0x3],'authorId':_0xba8603['length']<0x5?_0xba8603[0x3]:_0xba8603[0x4],'markerCount':0x6==_0xba8603['length']?_0xba8603[0x5]:null};}function _0x4fcd85(_0x18de9c){for(let _0x901363=0x0;_0x901363<_0x589c99['length'];_0x901363++){if(_0x18de9c['isAdded']&&'insertion'==_0x589c99[_0x901363]['type'])return _0x18de9c['isAddSuggestion']=_0x589c99[_0x901363],void delete _0x18de9c['isAdded'];if(!_0x18de9c['isAdded']&&!_0x18de9c['isRemoved']&&'deletion'==_0x589c99[_0x901363]['type'])return void(_0x18de9c['isRemoveSuggestion']=_0x589c99[_0x901363]);}}}['_setDistance'](_0x411d33,_0x338bda){let _0x2e608e=0x0,_0x5b6501=!0x1;const _0x3c6f95=new Map();for(const _0x14868e of _0x411d33)_0x14868e[_0x338bda]?_0x5b6501&&(_0x2e608e++,_0x5b6501=!0x1):(_0x2e608e++,_0x5b6501=!0x0),_0x3c6f95['set'](_0x14868e['id'],_0x2e608e);for(let _0x4e017f=0x0;_0x4e017f<_0x411d33['length'];_0x4e017f++){if('isRemoved'==_0x338bda&&_0x411d33[_0x4e017f]['isAdded']||'isAdded'==_0x338bda&&_0x411d33[_0x4e017f]['isRemoved'])continue;if('text'==_0x411d33[_0x4e017f]['type']){_0x411d33[_0x4e017f]['distance']=0x0;continue;}const _0x487531=_0x3c6f95['get'](_0x411d33[_0x4e017f]['pairId']),_0x21c35b=_0x3c6f95['get'](_0x411d33[_0x4e017f]['id']);_0x411d33[_0x4e017f]['distance']=_0x487531-_0x21c35b;}}['_getRevisionsRange'](_0x35edd8,_0x461166,_0x172efe=!0x1){const _0x526e02=[];let _0x350222=this['repository']['getIndex'](_0x35edd8),_0x34a65d=this['repository']['getIndex'](_0x461166);for(-0x1==_0x34a65d&&(_0x34a65d=this['repository']['_revisions']['length'],_0x172efe=!0x1);_0x350222<_0x34a65d;)_0x526e02['push'](this['repository']['getRevision'](_0x350222)),_0x350222++;return _0x172efe&&_0x526e02['push'](this['repository']['getRevision'](_0x350222)),_0x526e02;}['_threeWayMerge'](_0x275409,_0x33905b,_0x3fc8c3,_0x5523d9){const _0x2c0533=this['editor']['model']['schema'];let _0x40e68f=_0x33905b;for(;_0x275409[_0x40e68f]&&_0x275409[_0x40e68f]['isAdded'];)_0x40e68f++;let _0x3dc0ac=_0x5523d9;for(;_0x3fc8c3[_0x3dc0ac]&&_0x3fc8c3[_0x3dc0ac]['isRemoved'];)_0x3dc0ac++;_0x30949e(_0x275409,_0x33905b,_0x40e68f),_0x30949e(_0x3fc8c3,_0x5523d9,_0x3dc0ac);const _0x53f03b=_0x3fc8c3['slice'](_0x5523d9,_0x3dc0ac)['concat'](_0x275409['slice'](_0x33905b,_0x40e68f));return _0x53f03b['sort']((_0x2e5e2b,_0xbf8c3f)=>_0x2e5e2b['side']!=_0xbf8c3f['side']?_0x2e5e2b['side']-_0xbf8c3f['side']:_0x2e5e2b['level']!=_0xbf8c3f['level']?_0x2e5e2b['level']-_0xbf8c3f['level']:_0x2e5e2b['distance']!=_0xbf8c3f['distance']?_0xbf8c3f['distance']-_0x2e5e2b['distance']:!!_0x2e5e2b['isAdded']!=!!_0xbf8c3f['isAdded']?-0x1==_0x2e5e2b['side']||0x0==_0x2e5e2b['side']?_0x2e5e2b['isAdded']?-0x1:0x1:_0x2e5e2b['isAdded']?0x1:-0x1:_0x2e5e2b['index']-_0xbf8c3f['index']),{'commonTape':_0x53f03b,'iEnd':_0x40e68f,'jEnd':_0x3dc0ac};function _0x30949e(_0xf010c8,_0x12e4e8,_0x1036fc){let _0x6a683=-0x1,_0x4885d3=Number['POSITIVE_INFINITY'],_0x498cb2=!0x0;for(let _0xffb083=_0x12e4e8;_0xffb083<_0x1036fc;_0xffb083++)if(_0x2c0533['isInline'](_0xf010c8[_0xffb083]['item'])||(_0x498cb2=!0x1),_0xf010c8[_0xffb083]['item']['startIndex']<_0x12e4e8&&(_0x6a683=_0xffb083),_0xf010c8[_0xffb083]['item']['endIndex']>=_0x1036fc){_0x4885d3=_0xffb083;break;}_0x498cb2&&(_0x6a683=_0x1036fc-0x1);for(let _0x5ba0cd=_0x12e4e8;_0x5ba0cd<_0x1036fc;_0x5ba0cd++)_0xf010c8[_0x5ba0cd]['side']=_0x5ba0cd<=_0x6a683?-0x1:_0x5ba0cd<_0x4885d3?0x0:0x1,_0xf010c8[_0x5ba0cd]['index']=_0x5ba0cd;let _0x40c1d1=0x0;for(let _0x2c1dd2=_0x12e4e8;_0x2c1dd2<=_0x6a683;_0x2c1dd2++)0x0==_0xf010c8[_0x2c1dd2]['distance']?_0xf010c8[_0x2c1dd2]['level']=_0x40c1d1:(_0x40c1d1++,_0xf010c8[_0x2c1dd2]['level']=_0x40c1d1,_0x40c1d1++);for(let _0x3cba2f=_0x12e4e8;_0x3cba2f<_0x1036fc;_0x3cba2f++)0x0==_0xf010c8[_0x3cba2f]['side']&&(_0xf010c8[_0x3cba2f]['level']=_0x40c1d1);_0x40c1d1=0x0;for(let _0x2c1784=_0x1036fc-0x1;_0x2c1784>=_0x4885d3;_0x2c1784--)0x0==_0xf010c8[_0x2c1784]['distance']?_0xf010c8[_0x2c1784]['level']=_0x40c1d1:(_0x40c1d1--,_0xf010c8[_0x2c1784]['level']=_0x40c1d1,_0x40c1d1--);}}['_fixObsoleteTags'](_0x557bc3){const _0x17ec07=new Map(),_0x2ee626=this['editor']['model']['schema'];for(let _0x1db946=0x1;_0x1db946<_0x557bc3['length'];_0x1db946++){let _0x260992,_0x127bb2,_0x107319;const _0x2f714b=_0x557bc3[_0x1db946],_0x24c85b=_0x557bc3[_0x1db946-0x1];if('text'==_0x2f714b['type'])continue;if(_0x2f714b['type']!=_0x24c85b['type'])continue;if(!_0x2ee626['isBlock'](_0x24c85b['item'])||_0x2ee626['isLimit'](_0x24c85b['item']))continue;if(!_0x2ee626['isBlock'](_0x2f714b['item'])||_0x2ee626['isLimit'](_0x2f714b['item']))continue;if((_0x557bc3[_0x1db946]['isAdded']||_0x557bc3[_0x1db946]['isAddSuggestion'])&&_0x557bc3[_0x1db946-0x1]['isRemoved'])_0x260992=_0x557bc3[_0x1db946],_0x127bb2=_0x557bc3[_0x1db946-0x1],_0x107319=_0x1db946-0x1;else{if(!_0x557bc3[_0x1db946]['isRemoved']||!_0x557bc3[_0x1db946-0x1]['isAdded']&&!_0x557bc3[_0x1db946-0x1]['isAddSuggestion'])continue;_0x260992=_0x557bc3[_0x1db946-0x1],_0x127bb2=_0x557bc3[_0x1db946],_0x107319=_0x1db946;}const _0x325d9f=_0x260992['level']==_0x127bb2['level'],_0x13a4e3=Math['abs'](_0x260992['level'])<Math['abs'](_0x127bb2['level'])&&0x0==_0x127bb2['distance'];(_0x325d9f||_0x13a4e3)&&(_0x17ec07['set'](_0x127bb2['id'],_0x260992['id']),_0x557bc3['splice'](_0x107319,0x1),_0x1db946--,_0x260992['isAdded']=!0x1);}for(let _0x2484e3=0x0;_0x2484e3<_0x557bc3['length'];_0x2484e3++)_0x17ec07['has'](_0x557bc3[_0x2484e3]['pairId'])&&(_0x557bc3[_0x2484e3]['pairId']=_0x17ec07['get'](_0x557bc3[_0x2484e3]['pairId']));}['_removeMissingPairs'](_0x43a283){const _0x430b7b=new Set(_0x43a283['map'](_0x3ce153=>_0x3ce153['id']));for(let _0x506e9d=0x0;_0x506e9d<_0x43a283['length'];_0x506e9d++)_0x430b7b['has'](_0x43a283[_0x506e9d]['pairId'])||0x0==_0x43a283[_0x506e9d]['distance']||(_0x43a283[_0x506e9d]['isIncorrect']=!0x0);return _0x43a283['filter'](_0x3828e8=>!_0x3828e8['isIncorrect']);}['_markMismatchedRemovedTags'](_0x395599){const _0x2cb2a7=new Set();for(let _0x2023b2=0x0;_0x2023b2<_0x395599['length'];_0x2023b2++){if(_0x2cb2a7['has'](_0x395599[_0x2023b2]['id'])&&_0x395599[_0x2023b2]['isRemoved']&&(_0x395599[_0x2023b2]['isIncorrect']=!0x0),_0x395599[_0x2023b2]['isIncorrect'])continue;if(0x0==_0x395599[_0x2023b2]['distance'])continue;if('elementStart'!=_0x395599[_0x2023b2]['type'])continue;if(null==_0x395599[_0x2023b2]['pairId'])continue;let _0x23d35a=_0x2023b2+0x1,_0x5a6003=0x0;for(;_0x395599[_0x23d35a]['id']!=_0x395599[_0x2023b2]['pairId'];)'elementStart'==_0x395599[_0x23d35a]['type']?_0x5a6003++:'elementEnd'==_0x395599[_0x23d35a]['type']&&_0x5a6003--,_0x23d35a++;if(0x0!=_0x5a6003){if(_0x395599[_0x2023b2]['isRemoved'])_0x395599[_0x2023b2]['isIncorrect']=!0x0;else{for(;_0x23d35a!=_0x2023b2;)_0x395599[_0x23d35a]['isRemoved']&&0x0!=_0x395599[_0x23d35a]['distance']&&(_0x395599[_0x23d35a]['isIncorrect']=!0x0,_0x2cb2a7['add'](_0x395599[_0x23d35a]['pairId'])),_0x23d35a--;}}}return _0x395599['filter'](_0x19cfdd=>!_0x19cfdd['isIncorrect']);}['_removeUnsupportedChanges'](_0x3a10a1){const _0x1f5511=this['editor']['model']['schema'];for(let _0x5ee174=0x0;_0x5ee174<_0x3a10a1['length'];_0x5ee174++){if(!(_0x3a10a1[_0x5ee174]['isAdded']||_0x3a10a1[_0x5ee174]['isAddSuggestion']||_0x3a10a1[_0x5ee174]['isRemoved']||_0x3a10a1[_0x5ee174]['isRemoveSuggestion']))continue;if(0x0==_0x3a10a1[_0x5ee174]['distance'])continue;const _0x5a7aab=_0x3a10a1[_0x5ee174]['item'];_0x1f5511['isBlock'](_0x5a7aab)||_0x1f5511['isLimit'](_0x5a7aab)||(_0x3a10a1[_0x5ee174]['isAdded']&&delete _0x3a10a1[_0x5ee174]['isAdded'],_0x3a10a1[_0x5ee174]['isAddSuggestion']&&delete _0x3a10a1[_0x5ee174]['isAddSuggestion'],_0x3a10a1[_0x5ee174]['isRemoveSuggestion']&&delete _0x3a10a1[_0x5ee174]['isRemoveSuggestion'],_0x3a10a1[_0x5ee174]['isRemoved']&&(_0x3a10a1[_0x5ee174]['isIncorrect']=!0x0));}return _0x3a10a1['filter'](_0x3017a0=>!_0x3017a0['isIncorrect']);}['_makeModelFromTape'](_0x31e03e,_0x190505,_0x1e8921){const _0x452796=new mt(),_0x24b712=[],_0x51af53=new Map(),_0x2ae9a2=this['editor']['model'],_0x11f7d1=_0x2ae9a2['schema'],_0x3db0d7=[_0x452796],_0x13c3f8={},_0x5aba2b={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x1cbbf6=null;const _0x48a776=[0x0];for(let _0x48d2c9=0x0;_0x48d2c9<_0x31e03e['length'];_0x48d2c9++)if('elementStart'===_0x31e03e[_0x48d2c9]['type']){_0x31e03e[_0x48d2c9]['previousPosition']=_0x2ae9a2['createPositionFromPath'](_0x452796,_0x48a776);const _0x2bf67b=new ft(_0x31e03e[_0x48d2c9]['item']['name'],_0x31e03e[_0x48d2c9]['item']['getAttributes']());_0x3db0d7[0x0]['_appendChild'](_0x2bf67b),_0x48a776['push'](0x0),_0x3db0d7['unshift'](_0x2bf67b),_0x31e03e[_0x48d2c9]['nextPosition']=_0x2ae9a2['createPositionFromPath'](_0x452796,_0x48a776);}else'elementEnd'===_0x31e03e[_0x48d2c9]['type']?(_0x3db0d7['shift'](),_0x31e03e[_0x48d2c9]['previousPosition']=_0x2ae9a2['createPositionFromPath'](_0x452796,_0x48a776),_0x48a776['pop'](),_0x48a776[_0x48a776['length']-0x1]++,_0x31e03e[_0x48d2c9]['nextPosition']=_0x2ae9a2['createPositionFromPath'](_0x452796,_0x48a776)):(_0x31e03e[_0x48d2c9]['previousPosition']=_0x2ae9a2['createPositionFromPath'](_0x452796,_0x48a776),_0x1cbbf6?_0x1cbbf6['_data']+=_0x31e03e[_0x48d2c9]['item']['data']:_0x1cbbf6=new wt(_0x31e03e[_0x48d2c9]['item']['data'],_0x31e03e[_0x48d2c9]['item']['getAttributes']()),_0x31e03e[_0x48d2c9+0x1]&&'text'===_0x31e03e[_0x48d2c9+0x1]['type']&&_0x1b9c01(_0x1cbbf6,_0x31e03e[_0x48d2c9+0x1]['item'])||(_0x3db0d7[0x0]['_appendChild'](_0x1cbbf6),_0x1cbbf6=null),_0x48a776[_0x48a776['length']-0x1]+=_0x31e03e[_0x48d2c9]['item']['offsetSize'],_0x31e03e[_0x48d2c9]['nextPosition']=_0x2ae9a2['createPositionFromPath'](_0x452796,_0x48a776));for(let _0x37876d=0x0;_0x37876d<_0x31e03e['length'];_0x37876d++){const _0x296d63=_0x31e03e[_0x37876d]['previousPosition'],_0x482514=_0x31e03e[_0x37876d]['nextPosition'];for(const _0x22bf21 of _0x31e03e[_0x37876d]['markersStart'])_0x51af53['set'](_0x22bf21,{'start':_0x296d63,'end':null});_0x598b6e('isRemoveSuggestion',_0x37876d,_0x296d63,_0x482514),_0x598b6e('isAddSuggestion',_0x37876d,_0x296d63,_0x482514),_0x598b6e('isRemoved',_0x37876d,_0x296d63,_0x482514),_0x598b6e('isAdded',_0x37876d,_0x296d63,_0x482514);for(const _0x195820 of _0x31e03e[_0x37876d]['markersEnd']){_0x51af53['get'](_0x195820)['end']=_0x482514;}}for(const [_0x175870,_0x20dc72]of _0x51af53){const _0x255213=this['editor']['model']['createRange'](_0x20dc72['start'],_0x20dc72['end']);_0x452796['markers']['set'](_0x175870,_0x255213);}return _0x24b712['sort']((_0x29adcf,_0x3cde7e)=>{const _0xa6fb8a=_0x452796['markers']['get']('revision:'+_0x29adcf['id']),_0x5caf05=_0x452796['markers']['get']('revision:'+_0x3cde7e['id']);return _0xa6fb8a['start']['isBefore'](_0x5caf05['start'])?-0x1:_0xa6fb8a['start']['isAfter'](_0x5caf05['start'])?0x1:_0xa6fb8a['end']['isBefore'](_0x5caf05['end'])?-0x1:_0xa6fb8a['end']['isAfter'](_0x5caf05['end'])?0x1:'add'===_0x29adcf['type']?-0x1:0x1;}),{'root':_0x452796,'changes':_0x24b712};function _0x598b6e(_0x5cf650,_0x5496af,_0x228faa,_0x4ef751){const _0x370525=!!_0x31e03e[_0x5496af][_0x5cf650],_0x46e057=_0x370525?_0x31e03e[_0x5496af][_0x5cf650]['userId']:null,_0x41c6ed=_0x5496af===_0x31e03e['length']-0x1,_0xfb96f3=_0x5aba2b[_0x5cf650][0x0],_0x4d85a1=_0x11f7d1['isObject'](_0x31e03e[_0x5496af]['item']);!_0x13c3f8[_0x5cf650]&&_0x370525?_0x13c3f8[_0x5cf650]={'start':_0x228faa,'tapeItem':_0x31e03e[_0x5496af],'userId':_0x46e057,'type':_0x5cf650}:_0x13c3f8[_0x5cf650]&&!_0x370525?(_0x13c3f8[_0x5cf650]['end']=_0x228faa,_0x301da8(_0x13c3f8[_0x5cf650]),_0x13c3f8[_0x5cf650]=null):_0x13c3f8[_0x5cf650]&&_0x370525&&_0x13c3f8[_0x5cf650]['userId']!==_0x46e057&&(_0x13c3f8[_0x5cf650]['end']=_0x228faa,_0xfb96f3&&_0xfb96f3['userId']===_0x13c3f8[_0x5cf650]['userId']||_0x301da8(_0x13c3f8[_0x5cf650]),_0x13c3f8[_0x5cf650]={'start':_0x228faa,'tapeItem':_0x31e03e[_0x5496af],'userId':_0x46e057,'type':_0x5cf650}),_0x13c3f8[_0x5cf650]&&_0x4d85a1&&('elementStart'!==_0x31e03e[_0x5496af]['type']||_0xfb96f3&&_0xfb96f3['userId']===_0x46e057||_0x5aba2b[_0x5cf650]['unshift']({'userId':_0x46e057,'object':_0x31e03e[_0x5496af]['item'],'change':_0x13c3f8[_0x5cf650]}),'elementEnd'===_0x31e03e[_0x5496af]['type']&&_0xfb96f3&&_0xfb96f3['object']===_0x31e03e[_0x5496af]['item']&&(_0x5aba2b[_0x5cf650]['shift'](),_0x13c3f8[_0x5cf650]=_0xfb96f3['change'])),_0x13c3f8[_0x5cf650]&&_0x41c6ed&&(_0x13c3f8[_0x5cf650]['end']=_0x4ef751,_0x301da8(_0x13c3f8[_0x5cf650]),_0x13c3f8[_0x5cf650]=null);}function _0x301da8({start:_0x55e8f1,end:_0xb6357c,tapeItem:_0x100cf0,userId:_0x554888,type:_0x821f0}){const _0x5aeb08=_0x100cf0['item'],_0x2acd38=_0x2ae9a2['schema']['isBlock'](_0x5aeb08)&&!_0x2ae9a2['schema']['isLimit'](_0x5aeb08),_0x6e5b39=_0x55e8f1['nodeAfter']==_0xb6357c['parent']&&_0xb6357c['isAtStart'];if(_0x2acd38&&_0x6e5b39)return;const _0x167b61=_0x2ae9a2['createRange'](_0x55e8f1,_0xb6357c),_0x3d12e9=_0x190505['get'](_0x554888),_0x5dd526=new r({'author':_0x3d12e9,'type':'isAdded'==_0x821f0||'isAddSuggestion'==_0x821f0?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x821f0||'isRemoveSuggestion'==_0x821f0},'createdAt':new Date(),'rootName':_0x1e8921});_0x24b712['push'](_0x5dd526),_0x452796['markers']['set']('revision:'+_0x5dd526['id'],_0x167b61);}function _0x1b9c01(_0xb3ab65,_0x4a324e){const _0x8e797b=_0xb3ab65['getAttributes'](),_0x2baca1=_0x4a324e['getAttributes']();for(const _0x4ca2c8 of _0x8e797b){if(_0x4ca2c8[0x1]!==_0x4a324e['getAttribute'](_0x4ca2c8[0x0]))return!0x1;_0x2baca1['next']();}return _0x2baca1['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x118022=>{const _0x171d7d=_0x118022['markerName']['split'](':')[0x1],_0x417db2=this['_getChangeFromId'](_0x171d7d);if(!_0x417db2)return null;const _0x2ea4e9='add'==_0x417db2['type']?'insertion':'deletion',_0x3e6c1a=['ck-suggestion-marker','ck-suggestion-marker-'+_0x2ea4e9];return _0x417db2['data']['isSuggestion']&&_0x3e6c1a['push']('ck-suggestion-marker-'+_0x2ea4e9+'-new'),this['activeChange']==_0x417db2&&_0x3e6c1a['push']('ck-suggestion-marker--active'),{'classes':_0x3e6c1a,'attributes':{'data-change-id':_0x171d7d}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x8eba83=>{_0x8eba83['on']('element:pre',(_0x15d645,_0x500548,_0x1a83bd)=>{const _0x3c6821=_0x500548['viewItem']['getChild'](0x0);if(!_0x3c6821||!_0x3c6821['is']('element','code'))return;if(!_0x1a83bd['consumable']['consume'](_0x3c6821,{'attributes':['vid_start','vid_end']}))return;const _0x3f733f=_0x500548['modelRange']['start']['nodeAfter'];_0x1a83bd['writer']['setAttribute']('vid_start',_0x3c6821['getAttribute']('vid_start'),_0x3f733f),_0x1a83bd['writer']['setAttribute']('vid_end',_0x3c6821['getAttribute']('vid_end'),_0x3f733f);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x55cf42=>{_0x55cf42['on']('element',(_0x45e475,_0x58c37c,_0x48fac9)=>{if(!_0x48fac9['consumable']['consume'](_0x58c37c['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x58c37c['modelRange']['isCollapsed'])return;const _0x1d7cb4=_0x58c37c['modelRange']['start']['nodeAfter'];_0x1d7cb4['hasAttribute']('vid_start')||_0x1d7cb4['hasAttribute']('vid')||(_0x48fac9['writer']['setAttribute']('vid_start',_0x58c37c['viewItem']['getAttribute']('vid_start'),_0x1d7cb4),_0x48fac9['writer']['setAttribute']('vid_end',_0x58c37c['viewItem']['getAttribute']('vid_end'),_0x1d7cb4));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x552889=>_0x552889['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x5ae79f,[,_0x1ddbe2])=>{['vid_start','vid_end','vid']['includes'](_0x1ddbe2)&&(_0x5ae79f['return']=!0x0,_0x5ae79f['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0xd79d30=>{_0xd79d30['on']('attribute:vid',(_0x27152b,_0x522e33,_0x41f9c2)=>{if('\x20'!=_0x522e33['item']['data']||_0x522e33['item']['parent']['maxOffset']>0x1)return;if(!_0x41f9c2['consumable']['consume'](_0x522e33['item'],_0x27152b['name']))return;const _0xfbbc0b=_0x41f9c2['writer'],_0xe4f57b=_0x41f9c2['mapper']['toViewRange'](_0x522e33['range']);_0xfbbc0b['wrap'](_0xe4f57b,_0xfbbc0b['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x31b108){const _0x3c5953=_0x31b108['plugins']['get']('RevisionViewer');return(_0x188f65,_0x1265b4,_0x3e2df4)=>{const _0x40519c=_0x1265b4['markerName']['split'](':')[0x1],_0x56c863=_0x3c5953['_getChangeFromId'](_0x40519c);if(!_0x56c863)return null;const _0x55b3e6='add'==_0x56c863['type']?'split':'merge';if(!_0x3e2df4['consumable']['test'](_0x1265b4['markerRange'],_0x188f65['name']))return;const _0x4ba44a=_0x1265b4['markerRange']['getWalker'](),_0x2ea63c=_0x1265b4['markerRange']['start'],_0x345d99=_0x31b108['model']['schema'];let _0x5b2962=null,_0x376a83=null,_0x17136d=!0x1,_0x4c8a39=!0x1;for(const _0x338075 of _0x4ba44a){const _0x4bc3e0=_0x338075['item'];_0x17136d=_0x17136d||_0x345d99['isContent'](_0x4bc3e0);const _0x20a0c5=_0x3e2df4['mapper']['toViewElement'](_0x4bc3e0);if(_0x20a0c5&&_0x20a0c5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x338075['type']&&(_0x345d99['isBlock'](_0x4bc3e0)&&!_0x345d99['isLimit'](_0x4bc3e0)&&(_0x4bc3e0['nextSibling']||_0x2ea63c['isAtEnd']?_0x5b2962&&_0x5b2962['parent']==_0x4bc3e0||(_0x5b2962=_0x4bc3e0,_0x2f97c2(_0x338075['previousPosition']),_0x4c8a39=!0x0):_0x376a83=_0x376a83||_0x338075['previousPosition']));}function _0x2f97c2(_0x39b474){const _0x35f764=_0x3e2df4['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x55b3e6}),_0x4383de=_0x3e2df4['mapper']['toViewPosition'](_0x39b474);_0x56c863['data']['isSuggestion']&&_0x3e2df4['writer']['addClass']('ck-suggestion-marker-'+_0x55b3e6+'-new',_0x35f764),_0x3c5953['activeChange']==_0x56c863&&_0x3e2df4['writer']['addClass']('ck-suggestion-marker--active',_0x35f764),_0x3e2df4['writer']['insert'](_0x4383de,_0x35f764),_0x3e2df4['mapper']['bindElementToMarker'](_0x35f764,_0x1265b4['markerName']);}_0x17136d||_0x4c8a39||!_0x376a83||_0x2f97c2(_0x376a83);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x232e1a,_0x339ee1,_0x450060)=>{const _0x35472f=_0x450060['mapper']['markerNameToElements'](_0x339ee1['markerName']);if(_0x35472f){for(const _0x3e35e2 of _0x35472f)(_0x3e35e2['hasClass']('ck-suggestion-marker-split')||_0x3e35e2['hasClass']('ck-suggestion-marker-merge'))&&(_0x450060['mapper']['unbindElementFromMarkerName'](_0x3e35e2,_0x339ee1['markerName']),_0x450060['writer']['remove'](_0x3e35e2));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0xd6548a,_0x386f0b,_0x55518a)=>{const _0x324d7a=_0x386f0b['markerName']['split'](':')[0x1],_0x2ff7a8=this['_getChangeFromId'](_0x324d7a);if(!_0x2ff7a8)return null;const _0x4ed350='add'==_0x2ff7a8['type']?'split':'merge';if(_0x55518a['consumable']['test'](_0x386f0b['markerRange'],_0xd6548a['name']))for(const _0x1c722c of _0x386f0b['markerRange']['getItems']()){if(!_0x1c722c['is']('element','softBreak'))continue;const _0x2798f0=_0x55518a['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x4ed350}),_0x2a74f1=_0x55518a['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x1c722c));_0x2ff7a8['data']['isSuggestion']&&_0x55518a['writer']['addClass']('ck-suggestion-marker-'+_0x4ed350+'-new',_0x2798f0),this['activeChange']==_0x2ff7a8&&_0x55518a['writer']['addClass']('ck-suggestion-marker--active',_0x2798f0),_0x55518a['writer']['insert'](_0x2a74f1,_0x2798f0),_0x55518a['mapper']['bindElementToMarker'](_0x2798f0,_0x386f0b['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x42e23c=>{for(const _0x141a4d of this['editor']['model']['document']['getRootNames']()){const _0x2f34a6=this['editor']['model']['document']['getRoot'](_0x141a4d),_0x405bd4=this['editor']['editing']['view']['document']['getRoot'](_0x141a4d);if(_0x405bd4){const _0x27446b=_0x2f34a6['getAttribute']('revisionHistoryAttachChange');if(_0x42e23c['removeAttribute']('data-change-id',_0x405bd4),_0x42e23c['removeClass']('ck-revision-history-root-add',_0x405bd4),_0x42e23c['removeClass']('ck-revision-history-root-remove',_0x405bd4),_0x42e23c['removeClass']('ck-revision-history-root--active',_0x405bd4),_0x27446b){const _0x110868=this['_getChangeFromId'](_0x27446b);if(!_0x110868)return null;_0x42e23c['setAttribute']('data-change-id',_0x27446b,_0x405bd4),_0x42e23c['addClass']('ck-revision-history-root-'+_0x110868['type'],_0x405bd4),this['activeChange']==_0x110868&&_0x42e23c['addClass']('ck-revision-history-root--active',_0x405bd4);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x593514=>'revision-comment:'+_0x593514,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x1acd6c=>'revision-suggestion:'+_0x1acd6c,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x2befec=>({'name':'suggestion:'+_0x2befec,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0xb17b4=>{const _0x937b82=_0xb17b4['markerName']['split'](':')[0x1];return'insertion'!=_0x937b82&&'deletion'!=_0x937b82?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x937b82]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x151492,_0x4b5ac8,_0x465154)=>{const _0x390dbb=_0x465154['mapper']['markerNameToElements'](_0x4b5ac8['markerName']);if(_0x390dbb){for(const _0x2e7d25 of _0x390dbb)_0x2e7d25['is']('uiElement')&&(_0x465154['mapper']['unbindElementFromMarkerName'](_0x2e7d25,_0x4b5ac8['markerName']),_0x465154['writer']['remove'](_0x2e7d25));}},{'priority':'high'});}['_getChangeFromId'](_0x2c1644){return this['_changeIdToChange']['get'](_0x2c1644);}['_getViewForChange'](_0x2e5cf7){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x2e5cf7),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4dc146,_0x5ed81e,_0x28c30e,_0x41d40d)=>{_0x41d40d&&this['_balloon']['remove'](_0x41d40d),_0x28c30e&&(this['_balloon']['add']({'view':_0x28c30e,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x1961b3=this['editor']['editing'],_0x55a546=this['_getChangeFromId'](_0x28c30e['changeId']);let _0x55749e;if(_0x55a546['data']['isOnRoot']){const _0xb62ff3=_0x1961b3['view']['getDomRoot'](_0x55a546['rootName']);_0x55749e=Array['from'](_0xb62ff3['getClientRects']());}else{const _0x9138b5=this['editor']['model']['markers']['get']('revision:'+_0x28c30e['changeId']);_0x55749e=Array['from'](_0x1961b3['mapper']['markerNameToElements'](_0x9138b5['name']))['map'](_0x3a5d6d=>_0x1961b3['view']['domConverter']['mapViewToDom'](_0x3a5d6d))['map'](_0x15cdea=>Array['from'](_0x15cdea['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x55749e[0x0];return _0x55749e['find'](_0x44de33=>_0x44de33['top']-0x3<=this['_activeViewTarget']['y']&&_0x44de33['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x44de33['left']-0x3<=this['_activeViewTarget']['x']&&_0x44de33['right']+0x3>=this['_activeViewTarget']['x'])||_0x55749e[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x26122f,_0xc2891b,_0x1c1174,_0x532161)=>{this['activeView']=_0x1c1174?this['_getViewForChange'](_0x1c1174):null,this['editor']['model']['change'](()=>{const _0x2d1f40=this['editor']['editing'];_0x532161&&(_0x532161['data']['isOnRoot']?_0x2d1f40['view']['change'](_0x138f47=>{_0x138f47['removeClass']('ck-revision-history-root--active',_0x2d1f40['view']['document']['getRoot'](_0x532161['rootName']));}):_0x2d1f40['reconvertMarker']('revision:'+_0x532161['id'])),_0x1c1174&&(_0x1c1174['data']['isOnRoot']?_0x2d1f40['view']['change'](_0x11056e=>{_0x11056e['addClass']('ck-revision-history-root--active',_0x2d1f40['view']['document']['getRoot'](_0x1c1174['rootName']));}):_0x2d1f40['reconvertMarker']('revision:'+_0x1c1174['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x2d65ed,_0x28338d)=>{if(this['activeChange'])return;const _0x106d6f=this['_findChangeIdFromDomTarget'](_0x28338d['target']),_0x4927fe=this['_changeIdToChange']['get'](_0x106d6f);_0x4927fe?(this['_activeViewTarget']={'x':_0x28338d['domEvent']['x'],'y':_0x28338d['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x4927fe)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x11e6d3,_0x1ad152)=>{const _0x44282d=this['_findChangeIdFromDomTarget'](_0x1ad152['target']),_0x9d3413=this['_changeIdToChange']['get'](_0x44282d);_0x9d3413?(this['_activeViewTarget']={'x':_0x1ad152['domEvent']['x'],'y':_0x1ad152['domEvent']['y']},_0x9d3413===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x9d3413):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x1632bb){do{const _0x432f23=_0x1632bb['getAttribute']('data-change-id');if(_0x432f23)return _0x432f23;_0x1632bb=_0x1632bb['parent'];}while(_0x1632bb);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x17a4dc=>{for(const _0x905c9 of this['editor']['model']['markers'])_0x17a4dc['removeMarker'](_0x905c9);});}}function Z(_0x14bde4,_0x1ea899){return(_0xd8053b,_0x1dec72,_0x4dc8f1)=>{if(!_0x4dc8f1['consumable']['test'](_0x1dec72['markerRange'],_0xd8053b['name']))return;const _0x339c0c=_0x1dec72['markerRange']['getWalker'](),_0xe3b17e=_0x1dec72['markerRange']['start'],_0x22e1a1=_0x14bde4['model']['schema'];let _0x1700ee=null,_0x357ab1=null,_0x13bf12=!0x1,_0x223124=!0x1;for(const _0x523e36 of _0x339c0c){const _0x5420b1=_0x523e36['item'];_0x13bf12=_0x13bf12||_0x22e1a1['isContent'](_0x5420b1);const _0x4689b5=_0x4dc8f1['mapper']['toViewElement'](_0x5420b1);if(_0x4689b5&&_0x4689b5['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x523e36['type']&&(_0x22e1a1['isBlock'](_0x5420b1)&&!_0x22e1a1['isLimit'](_0x5420b1)&&(_0x5420b1['nextSibling']||_0xe3b17e['isAtEnd']?_0x1700ee&&_0x1700ee['parent']==_0x5420b1||(_0x1700ee=_0x5420b1,_0x4d9f27(_0x523e36['previousPosition']),_0x223124=!0x0):_0x357ab1=_0x357ab1||_0x523e36['previousPosition']));}function _0x4d9f27(_0x6fcf94){const _0x3da363=_0x4dc8f1['mapper']['toViewPosition'](_0x6fcf94),_0x3f4c4e=_0x4dc8f1['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x1ea899});_0x4dc8f1['writer']['insert'](_0x3da363,_0x3f4c4e),_0x4dc8f1['mapper']['bindElementToMarker'](_0x3f4c4e,_0x1dec72['markerName']);}_0x13bf12||_0x223124||!_0x357ab1||_0x4d9f27(_0x357ab1);};}class _t extends _0xebfd2f{constructor(_0x487bd7){super(_0x487bd7);const _0x385ed4=_0x487bd7['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x385ed4,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x385ed4,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x2117ba=this['editor'],_0x3189e5=_0x2117ba['plugins']['get'](d),_0x2b64b1=_0x3189e5['isReady']?_0x3189e5['diff']['newRevisionId']:null;_0x2117ba['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x2b64b1);}['refresh'](){const {isReady:_0x2f10b8,isEnabled:_0x3001eb,repository:_0x4aa205,diff:_0x584a5f}=this['editor']['plugins']['get'](d),_0x927e9b=_0x584a5f&&_0x4aa205['getLaterVisibleRevision'](_0x584a5f['newRevisionId']);this['isEnabled']=_0x2f10b8&&_0x3001eb&&Boolean(_0x927e9b);}}class yt extends _0xebfd2f{['_step'];constructor(_0x32ab42,{direction:_0x2b11b0}){super(_0x32ab42);const _0x58dae3=_0x32ab42['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x2b11b0?0x1:-0x1,this['listenTo'](_0x58dae3,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x58dae3,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x58dae3,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x159d18=this['editor'],_0x4fb4df=_0x159d18['plugins']['get'](d),{isNavigationMode:_0x5212f3,currentChangeNumber:_0x40a6ee}=_0x4fb4df;let _0x290fff;if(_0x4fb4df['activeChange']=_0x5212f3?_0x4fb4df['diff']['changes']['get'](_0x40a6ee+this['_step']):_0x4fb4df['diff']['changes']['first'],_0x4fb4df['activeChange']['data']['isOnRoot'])_0x290fff=_0x159d18['editing']['view']['getDomRoot'](_0x4fb4df['activeChange']['rootName']);else{const _0x590c7b=_0x159d18['model']['markers']['get']('revision:'+_0x4fb4df['activeChange']['id']);_0x290fff=_0x8a99ae(_0x159d18['editing'],_0x590c7b);}_0x524a74({'target':_0x290fff,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2b6ba2,currentChangeNumber:_0x378c45,numberOfChanges:_0x58b880,isReady:_0x24d137,isEnabled:_0x3e34b1}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x3e34b1&&_0x24d137&&_0x58b880)&&(!_0x2b6ba2||(0x1===this['_step']?_0x378c45<_0x58b880-0x1:_0x378c45>0x0));}}class di extends _0x292cac{constructor(_0x34a370){super(_0x34a370);const _0x5f470d=this['bindTemplate'],_0x7aacf1=new _0x559b2e(_0x34a370),_0xe6bee1=new _0x559b2e(_0x34a370);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',(_0x434e6b,_0x2cd28a)=>_0x434e6b&&_0x2cd28a>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x366d12,_0x316cdb,_0x4b9c7a,_0x3137fd)=>{if(!_0x366d12)return m(_0x34a370,'Loading...');if(!_0x4b9c7a)return m(_0x34a370,'No\x20changes');const _0x4c2bb9=m(_0x34a370,'NUMBER_OF_CHANGES',_0x4b9c7a);return _0x3137fd?m(_0x34a370,'X_OF_Y_CHANGES',[_0x316cdb+0x1,_0x4b9c7a]):_0x4c2bb9;}),_0x7aacf1['set']({'label':m(_0x34a370,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0xe6bee1['set']({'label':m(_0x34a370,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0x7aacf1['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0xe6bee1['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x7aacf1['on']('execute',()=>this['fire']('execute','backward')),_0xe6bee1['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',_0x5f470d['if']('_isStatusLabelVisible','ck-hidden',_0x425fe9=>!_0x425fe9)]},'children':[{'text':_0x5f470d['to']('isNavigationMode',_0x3ec43b=>_0x3ec43b?m(_0x34a370,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x34a370,'Total')+':\x20')}]},{'text':_0x5f470d['to']('_statusText')}]},new _0x5b8931(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x7aacf1,_0xe6bee1]}]});}}const ce='ck-editor__editable__loading-overlay';class ae extends _0x38f4f7{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x2760be=this['editor']['editing']['view'];_0x2760be['change'](_0x290b43=>{for(const _0x3157ae of _0x2760be['document']['roots'])_0x290b43['addClass'](ce,_0x3157ae);});}['hide'](){const _0xc4964=this['editor']['editing']['view'];_0xc4964['change'](_0x15ddd4=>{for(const _0xf96126 of _0xc4964['document']['roots'])_0x15ddd4['removeClass'](ce,_0xf96126);});}}class g extends _0x38f4f7{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,ae];}['init'](){const _0x473c23=this['editor'],_0x3455d4=_0x473c23['plugins']['get'](d),_0x38c84d=_0x473c23['plugins']['get'](ae);_0x473c23['ui']['componentFactory']['add']('exitToEditing',_0x2cf60d=>{const _0x1ba7c3=new _0x559b2e(_0x2cf60d);return _0x1ba7c3['set']({'label':m(_0x2cf60d,'Back\x20to\x20editing'),'icon':_0x23c949['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x1ba7c3,'execute',()=>{_0x473c23['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x1ba7c3;}),_0x473c23['ui']['componentFactory']['add']('restoreRevision',_0x4ec323=>{const _0x15ce87=new _0x559b2e(_0x4ec323);return _0x15ce87['set']({'label':m(_0x4ec323,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x15ce87['bind']('isEnabled')['to'](_0x473c23['commands']['get']('restoreRevision')),this['listenTo'](_0x15ce87,'execute',()=>_0x473c23['execute']('restoreRevision')),_0x15ce87;}),_0x473c23['ui']['componentFactory']['add']('changesNavigation',_0x2e950e=>{const _0x3ff321=new di(_0x2e950e),_0x51ab3d=_0x473c23['commands']['get']('showPreviousChange'),_0x3f79ff=_0x473c23['commands']['get']('showNextChange');return _0x3ff321['bind']('isBackwardNavigationEnabled')['to'](_0x51ab3d,'isEnabled'),_0x3ff321['bind']('isForwardNavigationEnabled')['to'](_0x3f79ff,'isEnabled'),_0x3ff321['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3455d4),this['listenTo'](_0x3ff321,'execute',(_0x458388,_0x4595d3)=>{_0x473c23['execute']('forward'===_0x4595d3?'showNextChange':'showPreviousChange');}),_0x3ff321;}),_0x38c84d['show'](),_0x3455d4['on']('change:isReady',(_0x12fcf8,_0x3559b4,_0xfe50a3)=>{_0xfe50a3?_0x38c84d['hide']():_0x38c84d['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x585df5,_0x2ec746){super(_0x585df5,_0x2ec746);const _0xbe1ea4=this['bindTemplate'];this['set']({'label':m(_0x585df5,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x585df5,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0xbe1ea4['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x27433a=this['fieldView']['element'];this['_tooltipString']=_0x27433a['scrollWidth']>_0x27433a['clientWidth']&&_0x27433a['value']||'';}}class ti extends _0x292cac{constructor(_0x1a06cd,_0x51323a,_0x2cf4cd){super(_0x1a06cd);const _0x245ac5=new _0x2c29c5();_0x245ac5['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x2ae2b4=['ck','ck-revision-history-sidebar__revision-author'];_0x2cf4cd&&_0x2ae2b4['push']('ck-revision-history-sidebar__revision-author_creator');const _0x4586e2=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x1a06cd,_0x2cf4cd?'Revision\x20creator':'Revision\x20author')},'children':[_0x245ac5,_0x51323a['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2ae2b4},'children':_0x4586e2});}}function ni(_0x55b38d,_0x14838e){const _0x5344f1=_0x55b38d['bindTemplate'],_0xc4e093=_0x55b38d['locale'],_0x3f798d=_0xb121cb(_0xc4e093);_0x3f798d['panelPosition']='sw';const _0x1cdbd7=function(_0x1940f2,_0x4f0dc0){const _0x5283cc=function(_0x530d0f,_0x3b1c75){const _0x31bbe5=_0x530d0f['locale'],_0x2fe1ad={'Compare\x20against\x20selected':m(_0x31bbe5,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x31bbe5,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x31bbe5,'Restore\x20this\x20revision')};return _0x3b1c75['map'](_0x1879f1=>{const _0x5052c2=_0x2fe1ad[_0x1879f1['name']];return _0x5052c2&&_0x5052c2!==_0x1879f1['name']&&(_0x1879f1['name']=_0x5052c2),_0x1879f1;});}(_0x1940f2,_0x4f0dc0),_0x596230=new _0x2ff70c();for(const _0x2734d0 of _0x5283cc){const _0x2068f0={'type':'button','model':new to({'label':_0x2734d0['name'],'class':_0x2734d0['class'],'withText':!0x0,'role':'menuitem','_action':_0x2734d0['action']})};_0x2068f0['model']['bind']('isEnabled')['to'](_0x1940f2,'isActionsDropdownOpen',_0x5c9803=>'function'!=typeof _0x2734d0['isEnabled']||(!_0x5c9803||_0x2734d0['isEnabled'](_0x1940f2))),_0x596230['add'](_0x2068f0);}return _0x596230;}(_0x55b38d,_0x14838e);return _0x55b38d['bind']('isActionsDropdownOpen')['to'](_0x3f798d,'isOpen'),_0x3f798d['buttonView']['set']({'label':m(_0xc4e093,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x23c949['threeVerticalDots']}),_0x3f798d['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5344f1['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5344f1['to'](_0x4ad60d=>_0x4ad60d['stopPropagation']())}}),_0x3f798d['on']('execute',_0x24939a=>{_0x55b38d['isReady']&&'function'==typeof _0x24939a['source']['_action']&&_0x24939a['source']['_action'](_0x55b38d);}),_0x478fff(_0x3f798d,_0x1cdbd7,{'role':'menu'}),_0x3f798d['listenTo'](_0x55b38d,'change:isActionsDropdownOpen',(_0x288c0e,_0xf5eb6a,_0x4c3908)=>{if(_0x4c3908)for(const _0x3572fa of _0x3f798d['listView']['items']){const _0x380d9a=_0x3572fa['children']['first'],_0x57ef0b=_0x14838e['find'](_0x143326=>_0x143326['action']===_0x380d9a['_action'])['isVisible'];_0x3572fa['isVisible']=void 0x0===_0x57ef0b||_0x57ef0b(_0x55b38d);}}),_0x3f798d;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x2b00dc,uid as _0x1c8288,Collection as _0x2ec462,logWarning as _0x5d1652,FocusTracker as _0x1a473b,KeystrokeHandler as _0x117533,scrollViewportToShowTarget as _0x1e1b90,ResizeObserver as at,ElementReplacer as ht,CKEditorError as _0x5782d2}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x4fd0d8,set as _0x17456d,unset as _0x3343ff,isEqual as _0x9f149f}from'lodash-es';import{Plugin as _0x3f5b68,PendingActions as _0x1162f5,icons as _0x594f54,Command as _0x1773cd,ElementApiMixin as it,Editor as tt}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x1a724d,getMarkerDomElement as _0x455b9f,ConfirmMixin as _0x4dccca,sanitizeEditorConfig as _0x33a446}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x1f5212,Element as ft,Range as vt,ViewUIElement as _0x1f2667,ViewRawElement as _0x16dfe9,ViewEmptyElement as _0x34669c,ViewAttributeElement as _0x1d76c8,ViewContainerElement as _0x5d2d63,Position as gt,ViewText as _0x200987,ViewElement as _0x2654e2,DocumentFragment as mt,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as _0x964c4d,injectCssTransitionDisabler as ts,submitHandler as _0xe85002,LabeledFieldView as nt,createLabeledInputText as _0x70c291,createDropdown as _0x319079,ListView as _0x59df3c,ListItemView as te,ButtonView as _0x3dffff,MenuBarMenuView as _0x739e67,MenuBarMenuListView as _0x32430c,MenuBarMenuListItemView as _0x1a868e,MenuBarMenuListItemButtonView as _0x32d0d3,ContextualBalloon as _0x368c57,ToolbarSeparatorView as _0x4d1567,IconView as _0x52f07d,addListToDropdown as _0x4cecdd,ViewModel as to,EditorUI as st,normalizeToolbarConfig as ot,BoxedEditorUIView as ct,StickyPanelView as ut,ToolbarView as lt,InlineEditableUIView as dt}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x5979b0}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x2b00dc(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x54a93c){super(),this['id']=_0x54a93c['id']||_0x1c8288(),this['creator']=_0x54a93c['creator']||null,this['authors']=_0x54a93c['authors']||[],this['diffData']=_0x54a93c['diffData']||null,this['toVersion']=_0x54a93c['toVersion']||0x0,this['fromVersion']=_0x54a93c['fromVersion']||0x0,this['set']('name',_0x54a93c['name']||''),this['set']('createdAt',_0x54a93c['createdAt']||new Date()),this['set']('attributes',_0x54a93c['attributes']||{});}['setName'](_0x2fc82d){this['_update']({'name':_0x2fc82d});}['setAttribute'](_0x54802c,_0x463dba){const _0x327d56=_0x4fd0d8(this['attributes']);_0x17456d(_0x327d56,_0x54802c,_0x463dba),this['_update']({'attributes':_0x327d56});}['removeAttribute'](_0xa293db){const _0x152d1b=_0x4fd0d8(this['attributes']);_0x3343ff(_0x152d1b,_0xa293db),this['_update']({'attributes':_0x152d1b});}['_update'](_0x122775,_0x5b620e=!0x1){let _0x44250d=!0x1;const _0x434b0d={'id':this['id']},_0x5b5d53=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x39c06e of _0x5b5d53){const _0x169902=_0x122775[_0x39c06e];void 0x0!==_0x169902&&_0x169902!==this[_0x39c06e]&&(this[_0x39c06e]=_0x169902,_0x434b0d[_0x39c06e]=_0x169902,_0x44250d=!0x0);}_0x44250d&&(_0x434b0d['authors']&&(_0x434b0d['authorsIds']=_0x434b0d['authors']['map'](_0x4f06aa=>_0x4f06aa['id']),delete _0x434b0d['authors']),this['fire']('_update',_0x434b0d,_0x5b620e));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x341ce5=>_0x341ce5['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x3f5b68{['_revisions'];static get['requires'](){return[_0x1a724d];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x47ab50){super(_0x47ab50),this['_revisions']=new _0x2ec462();}['afterInit'](){!async function(_0x5e5501){const _0x58cb6b=_0x5425d8([0x62,0x35,0x45,0x4e,0x66,0x56,0x63,0x6f,0x47,0x71,0x49,0x6e,0x6b,0x73,0x70,0x58,0x4d,0x41,0x44,0x38,0x65,0x31,0x79,0x61,0x48,0x52,0x36,0x4b,0x59,0x78,0x5a,0x67,0x6c,0x6a,0x42,0x74,0x4a,0x75,0x55,0x53,0x54,0x30,0x33,0x50,0x57,0x43,0x72,0x34,0x64,0x6d,0x69,0x51,0x4c,0x4f,0x76,0x37,0x46,0x39,0x32,0x77,0x7a,0x68]),_0x1240a7=0xeb829,_0x1e7bd5=0x3fcc9594,_0x30132a=0x3fcbcb34^_0x1e7bd5,_0x1ede23=window[_0x5425d8([0x44,0x61,0x74,0x65])][_0x5425d8([0x6e,0x6f,0x77])](),_0x423b54=_0x5e5501[_0x5425d8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x443065=new window[(_0x5425d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3da7e7=>{_0x423b54[_0x5425d8([0x6f,0x6e,0x63,0x65])](_0x5425d8([0x72,0x65,0x61,0x64,0x79]),_0x3da7e7);}),_0x123a3b={[_0x5425d8([0x6b,0x74,0x79])]:_0x5425d8([0x45,0x43]),[_0x5425d8([0x75,0x73,0x65])]:_0x5425d8([0x73,0x69,0x67]),[_0x5425d8([0x63,0x72,0x76])]:_0x5425d8([0x50,0x2d,0x32,0x35,0x36]),[_0x5425d8([0x78])]:_0x5425d8([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]),[_0x5425d8([0x79])]:_0x5425d8([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]),[_0x5425d8([0x61,0x6c,0x67])]:_0x5425d8([0x45,0x53,0x32,0x35,0x36])},_0x34ca8b=_0x423b54[_0x5425d8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5425d8([0x67,0x65,0x74])](_0x5425d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x45bbe7(){let _0x5a7e99,_0x55c81e=null,_0x1686ff=null;try{if(_0x34ca8b==_0x5425d8([0x47,0x50,0x4c]))return _0x5425d8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5a7e99=_0x6f3f7a(),!_0x5a7e99)return _0x5425d8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5a7e99[_0x5425d8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1686ff=_0x1edc90(_0x5a7e99[_0x5425d8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5a7e99[_0x5425d8([0x6a,0x74,0x69])])),await _0x33a043()?_0x3d2d82()?_0x483359()?_0x5425d8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x10db84()?(_0x5a7e99[_0x5425d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5425d8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x55c81e=_0x2db3c6(_0x5425d8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5a7e99[_0x5425d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5425d8([0x74,0x72,0x69,0x61,0x6c])&&(_0x55c81e=_0x2db3c6(_0x5425d8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2a35bd()):_0x5425d8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5425d8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5425d8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x370c69){return _0x5425d8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x483359(){const _0x901d57=[_0x5425d8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5425d8([0x74,0x72,0x69,0x61,0x6c])][_0x5425d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5a7e99[_0x5425d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1ede23/0x3e8:0xe10*_0x30132a;return _0x5a7e99[_0x5425d8([0x65,0x78,0x70])]<_0x901d57;}function _0x3d2d82(){const _0x6eefe5=_0x5a7e99[_0x5425d8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];if(!_0x6eefe5)return!0x1;if(_0x6eefe5[_0x5425d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5425d8([0x2a])))return!0x0;if(_0x6eefe5[_0x5425d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5425d8([0x52,0x48])))return!0x0;if(_0x6eefe5[_0x5425d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5425d8([0x52,0x52,0x48]))){if(_0x36ff7a())return!0x0;if(_0x1519ea()||_0x53c2a5())return!0x0;}return!0x1;}function _0x10db84(){const _0x9e5f1f=_0x5a7e99[_0x5425d8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x9e5f1f||0x0==_0x9e5f1f[_0x5425d8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2e573c}=new URL(window[_0x5425d8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x9e5f1f[_0x5425d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e573c))return!0x0;const _0x10e72d=_0x2e573c[_0x5425d8([0x73,0x70,0x6c,0x69,0x74])](_0x5425d8([0x2e]));return _0x9e5f1f[_0x5425d8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3cf225=>_0x3cf225[_0x5425d8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5425d8([0x2a])))[_0x5425d8([0x6d,0x61,0x70])](_0x456711=>_0x456711[_0x5425d8([0x73,0x70,0x6c,0x69,0x74])](_0x5425d8([0x2e])))[_0x5425d8([0x73,0x6f,0x6d,0x65])](_0x359b03=>_0x10e72d[_0x5425d8([0x65,0x76,0x65,0x72,0x79])]((_0x25821f,_0x4b53cc)=>_0x359b03[_0x4b53cc]===_0x25821f||_0x359b03[_0x4b53cc]===_0x5425d8([0x2a])));}function _0x2a35bd(){return _0x55c81e&&_0x1686ff?new window[(_0x5425d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x139d1f,_0x3ed7af)=>{_0x55c81e[_0x5425d8([0x74,0x68,0x65,0x6e])](_0x139d1f,_0x3ed7af),_0x1686ff[_0x5425d8([0x74,0x68,0x65,0x6e])](_0x13d9f0=>{_0x13d9f0!=_0x5425d8([0x56,0x61,0x6c,0x69,0x64])&&_0x139d1f(_0x13d9f0);},_0x3ed7af);}):_0x55c81e||_0x1686ff||_0x5425d8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1edc90(_0xd57407,_0x19bc1d){return new window[(_0x5425d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x765e60=>{if(_0x585b53())return _0x765e60(_0x5425d8([0x56,0x61,0x6c,0x69,0x64]));_0x193e59(),_0x423b54[_0x5425d8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5425d8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x420fd6=!0x1;const _0x2fce46=_0x1c8288();function _0x4f8b54(_0x20205d){return!!_0x20205d&&(typeof _0x20205d===_0x5425d8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x20205d===_0x5425d8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x20205d[_0x5425d8([0x74,0x68,0x65,0x6e])]===_0x5425d8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x20205d[_0x5425d8([0x63,0x61,0x74,0x63,0x68])]===_0x5425d8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1aa8f9(_0xcdca0d){_0x4807b1(_0xcdca0d)[_0x5425d8([0x74,0x68,0x65,0x6e])](_0x2e72d1=>{if(!_0x2e72d1||_0x2e72d1[_0x5425d8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5425d8([0x6f,0x6b]))return _0x5425d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x339475(_0x5f0631(_0x2fce46+_0x19bc1d))!=_0x2e72d1[_0x5425d8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5425d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5425d8([0x56,0x61,0x6c,0x69,0x64]);})[_0x5425d8([0x74,0x68,0x65,0x6e])](_0x501121=>(_0x64ab93(),_0x501121),()=>{const _0x2b8a46=_0x346dfb();return null==_0x2b8a46?(_0x64ab93(),_0x5425d8([0x56,0x61,0x6c,0x69,0x64])):_0x5425d8(_0x1ede23-_0x2b8a46>(0x1bc01194^_0x1e7bd5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5425d8([0x74,0x68,0x65,0x6e])](_0x765e60)[_0x5425d8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x765e60(_0x5425d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x37a00d=0x3ffa7b14^_0x1e7bd5;function _0x64ab93(){const _0x17ab43=_0x5425d8([0x6c,0x6c,0x63,0x74,0x2d])+_0x339475(_0x5f0631(_0xd57407)),_0x22b089=_0x1f6ad0(_0x339475(window[_0x5425d8([0x4d,0x61,0x74,0x68])][_0x5425d8([0x63,0x65,0x69,0x6c])](_0x1ede23/_0x37a00d)));window[_0x5425d8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5425d8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x17ab43,_0x22b089);}function _0x346dfb(){const _0x476e99=_0x5425d8([0x6c,0x6c,0x63,0x74,0x2d])+_0x339475(_0x5f0631(_0xd57407)),_0x522079=window[_0x5425d8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5425d8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x476e99);return _0x522079?window[_0x5425d8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f6ad0(_0x522079),0x10)*_0x37a00d:null;}function _0x4807b1(_0x3b2473){return new window[(_0x5425d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x577598,_0x4075df)=>{_0x3b2473[_0x5425d8([0x74,0x68,0x65,0x6e])](_0x577598,_0x4075df),window[_0x5425d8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4075df,0x3fcd4154^_0x1e7bd5);});}}_0x423b54[_0x5425d8([0x6f,0x6e])](_0x5425d8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x534ea0,_0x3f9262)=>{if(_0x3f9262[0x0]!=_0xd57407)return _0x765e60(_0x5425d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3f9262[0x1]={..._0x3f9262[0x1],[_0x5425d8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2fce46};},{[_0x5425d8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5425d8([0x68,0x69,0x67,0x68])}),_0x423b54[_0x5425d8([0x6f,0x6e])](_0x5425d8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x33dfd5=>{_0x4f8b54(_0x33dfd5[_0x5425d8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x420fd6=!0x0,_0x1aa8f9(_0x33dfd5[_0x5425d8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5425d8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5425d8([0x6c,0x6f,0x77])}),_0x443065[_0x5425d8([0x74,0x68,0x65,0x6e])](()=>{_0x420fd6||_0x765e60(_0x5425d8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x585b53(){return _0x423b54[_0x5425d8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5425d8([0x76,0x69,0x65,0x77])][_0x5425d8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5425d8([0x61,0x75,0x74,0x6f]);}function _0x193e59(){_0x423b54[_0x5425d8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5425d8([0x76,0x69,0x65,0x77])][_0x5425d8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5425d8([0x61,0x75,0x74,0x6f]);}}function _0x2db3c6(_0x13136a){const _0x1dc2d4=[new window[(_0x5425d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1485e4=>setTimeout(_0x1485e4,0x3fc5ab58^_0x1e7bd5)),_0x443065[_0x5425d8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5425d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49837a=>{const _0x75b570=0x3fcc9593^_0x1e7bd5,_0x1a49fd=_0x5e5501[_0x5425d8([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x481b05(){_0x1a49fd[_0x5425d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x75b570&&_0x49837a();}_0x481b05(),_0x1a49fd[_0x5425d8([0x6f,0x6e])](_0x5425d8([0x61,0x64,0x64]),_0x481b05);})),new window[(_0x5425d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x80bebe=>{function _0x1fa5ea(){for(const _0x31451d in window)if(window[_0x5425d8([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x5425d8([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x31451d))&&window[_0x31451d]==_0x1240a7)return _0x80bebe();_0x423b54[_0x5425d8([0x73,0x74,0x61,0x74,0x65])]!=_0x5425d8([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x5425d8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1fa5ea,0x3fcc861c^_0x1e7bd5);}_0x3019fe(_0x5425d8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x1fa5ea();})];return window[_0x5425d8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5425d8([0x72,0x61,0x63,0x65])](_0x1dc2d4)[_0x5425d8([0x74,0x68,0x65,0x6e])](()=>_0x13136a);}async function _0x13a950(){if(await _0x443065,_0x3019fe(_0x5425d8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5009f2=_0x5e5501[_0x5425d8([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x42a40a=_0x5e5501[_0x5425d8([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])](_0x5009f2[_0x5425d8([0x69,0x64])]),_0x5c0616=_0x41b4ce(_0x5425d8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x5c0616[_0x5425d8([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5009f2['id'],_0x42a40a?_0x42a40a['id']:null,!0x0),_0x5c0616[_0x5425d8([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5425d8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5c0616[_0x5425d8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5c0616[_0x5425d8([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x43f186,void(_0x5c0616[_0x5425d8([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x43f186);}if(_0x3019fe(_0x5425d8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x5ac80f=_0x41b4ce(_0x5425d8([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x5ac80f[_0x5425d8([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x5425d8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x5ac80f[_0x5425d8([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x5ac80f[_0x5425d8([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x43f186,_0x5ac80f[_0x5425d8([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x43f186;}_0x423b54[_0x5425d8([0x6d,0x6f,0x64,0x65,0x6c])][_0x5425d8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x43f186,_0x423b54[_0x5425d8([0x6d,0x6f,0x64,0x65,0x6c])][_0x5425d8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x43f186,_0x423b54[_0x5425d8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5425d8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x36ff7a(){return _0x3019fe(_0x5425d8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x41b4ce(_0x5425d8([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x5425d8([0x73,0x74,0x61,0x74,0x65])]==_0x5425d8([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x1519ea(){return _0x3019fe(_0x5425d8([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 _0x53c2a5(){return _0x3019fe(_0x5425d8([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]));}function _0xcc05f9(_0x44d82c){const _0x6c1eb5=_0x6c7318();_0x423b54[_0x6c1eb5]=_0x5425d8([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])+_0x44d82c,_0x44d82c[_0x5425d8([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x5425d8([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x6c7318()]=_0x1240a7),_0x44d82c!=_0x5425d8([0x56,0x61,0x6c,0x69,0x64])&&_0x13a950();}function _0x6c7318(){const _0x2f3c12=window[_0x5425d8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5425d8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5425d8([0x6e,0x6f,0x77])]())[_0x5425d8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5425d8([0x2e]),'');let _0x86a9d2=_0x5425d8([0x62]);for(let _0x581e5b=0x0;_0x581e5b<_0x2f3c12[_0x5425d8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x581e5b+=0x2){let _0x2b8761=window[_0x5425d8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2f3c12[_0x5425d8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x581e5b,_0x581e5b+0x2));_0x2b8761>=_0x58cb6b[_0x5425d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2b8761-=_0x58cb6b[_0x5425d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x86a9d2+=_0x58cb6b[_0x2b8761];}return _0x86a9d2;}function _0x6f3f7a(){const _0x339dcc=_0x34ca8b[_0x5425d8([0x73,0x70,0x6c,0x69,0x74])](_0x5425d8([0x2e]));if(0x3!=_0x339dcc[_0x5425d8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5dfe1f(_0x339dcc[0x1]);function _0x5dfe1f(_0x416caa){const _0x1199d2=_0x2c549d(_0x416caa);return _0x1199d2&&_0xf08701()?_0x1199d2:null;function _0xf08701(){const _0x42e735=_0x1199d2[_0x5425d8([0x6a,0x74,0x69])],_0x32d998=window[_0x5425d8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x42e735[_0x5425d8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42e735[_0x5425d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3b1c33={..._0x1199d2,[_0x5425d8([0x6a,0x74,0x69])]:_0x42e735[_0x5425d8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x42e735[_0x5425d8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3b1c33[_0x5425d8([0x76,0x63])],_0x5f0631(_0x3b1c33)==_0x32d998;}}}async function _0x33a043(){let _0x2b083c=!0x0;try{const _0x503a4f=_0x34ca8b[_0x5425d8([0x73,0x70,0x6c,0x69,0x74])](_0x5425d8([0x2e])),[_0x37c559,_0x2f9762,_0x4c2366]=_0x503a4f;return _0x41060d(_0x37c559),await _0x2a5f6a(_0x37c559,_0x2f9762,_0x4c2366),_0x2b083c;}catch(_0x8e9d56){return!0x1;}function _0x41060d(_0x3c221e){const _0x3cbbf7=_0x2c549d(_0x3c221e);_0x3cbbf7&&_0x3cbbf7[_0x5425d8([0x61,0x6c,0x67])]==_0x5425d8([0x45,0x53,0x32,0x35,0x36])||(_0x2b083c=!0x1);}async function _0x2a5f6a(_0x276ead,_0x19eb4c,_0x372c2f){const _0x445419=window[_0x5425d8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5425d8([0x66,0x72,0x6f,0x6d])](_0x516b83(_0x372c2f),_0x44bd49=>_0x44bd49[_0x5425d8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2369d4=new window[(_0x5425d8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5425d8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x276ead+_0x5425d8([0x2e])+_0x19eb4c),_0x5984bb=window[_0x5425d8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5425d8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5984bb)return;const _0x8c3cce=await _0x5984bb[_0x5425d8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5425d8([0x6a,0x77,0x6b]),_0x123a3b,{[_0x5425d8([0x6e,0x61,0x6d,0x65])]:_0x5425d8([0x45,0x43,0x44,0x53,0x41]),[_0x5425d8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5425d8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5425d8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5984bb[_0x5425d8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5425d8([0x6e,0x61,0x6d,0x65])]:_0x5425d8([0x45,0x43,0x44,0x53,0x41]),[_0x5425d8([0x68,0x61,0x73,0x68])]:{[_0x5425d8([0x6e,0x61,0x6d,0x65])]:_0x5425d8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x8c3cce,_0x445419,_0x2369d4)||(_0x2b083c=!0x1);}}function _0x2c549d(_0x37520b){return _0x37520b[_0x5425d8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5425d8([0x65,0x79]))?JSON[_0x5425d8([0x70,0x61,0x72,0x73,0x65])](_0x516b83(_0x37520b)):null;}function _0x516b83(_0x4a785a){return window[_0x5425d8([0x61,0x74,0x6f,0x62])](_0x4a785a[_0x5425d8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5425d8([0x2b]))[_0x5425d8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5425d8([0x2f])));}function _0x5f0631(_0x30e888){let _0x52835e=0x1505;function _0x5969d5(_0x22ffbe){for(let _0x5a4b41=0x0;_0x5a4b41<_0x22ffbe[_0x5425d8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a4b41++){const _0x45426d=_0x22ffbe[_0x5425d8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5a4b41);_0x52835e=(_0x52835e<<0x5)+_0x52835e+_0x45426d,_0x52835e&=_0x52835e;}}function _0x2013ad(_0x2b053c){Array[_0x5425d8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2b053c)?_0x2b053c[_0x5425d8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2013ad):_0x2b053c&&typeof _0x2b053c==_0x5425d8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5425d8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2b053c)[_0x5425d8([0x73,0x6f,0x72,0x74])]()[_0x5425d8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x356fd6,_0x5c2e13])=>{_0x5969d5(_0x356fd6),_0x2013ad(_0x5c2e13);}):_0x5969d5(window[_0x5425d8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2b053c));}return _0x2013ad(_0x30e888),_0x52835e>>>0x0;}function _0x339475(_0x32cccb){return _0x32cccb[_0x5425d8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5425d8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5425d8([0x30]));}function _0x1f6ad0(_0x2e49db){return _0x2e49db[_0x5425d8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5425d8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5425d8([0x6a,0x6f,0x69,0x6e])]('');}function _0x3019fe(_0x5f58bf){return _0x423b54[_0x5425d8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5425d8([0x68,0x61,0x73])](_0x5f58bf);}function _0x41b4ce(_0x166045){return _0x423b54[_0x5425d8([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x5425d8([0x67,0x65,0x74])](_0x166045);}function _0x43f186(){}function _0x5425d8(_0x57c02f){return _0x57c02f['map'](_0x381f02=>String['fromCharCode'](_0x381f02))['join']('');}_0xcc05f9(await _0x45bbe7());}(this);}['createRevision'](_0x2c72be){const _0x25423a=this['editor']['plugins']['get']('Users');return new a({'id':_0x2c72be['id'],'name':_0x2c72be['name'],'creator':_0x2c72be['creatorId']?_0x25423a['getUser'](_0x2c72be['creatorId']):null,'diffData':_0x2c72be['diffData']||_0x2c72be['data'],'authors':_0x2c72be['authorsIds']['map'](_0x4974e9=>_0x25423a['getUser'](_0x4974e9)),'createdAt':new Date(_0x2c72be['createdAt']),'attributes':_0x2c72be['attributes'],'fromVersion':_0x2c72be['fromVersion'],'toVersion':_0x2c72be['toVersion']});}['addRevision'](_0x7f7098,_0x2fabde=0x0){this['_revisions']['add'](_0x7f7098,_0x2fabde);}['getRevision'](_0x4d622b){return this['_revisions']['get'](_0x4d622b);}['getRevisions'](_0x1fd284={'toJSON':!0x1}){const _0x12b37c=Array['from'](this['_revisions']);return _0x12b37c['reverse'](),_0x1fd284['toJSON']?_0x12b37c['map'](_0x1869c4=>_0x1869c4['toJSON']()):_0x12b37c;}['getIndex'](_0x2f1e53){return this['_revisions']['getIndex'](_0x2f1e53);}['getEarlierVisibleRevision'](_0x38ca5d){const [,_0x55b3bc]=this['getRevisionsIterator'](_0x38ca5d,{'direction':'earlier'});return _0x55b3bc;}['getLaterVisibleRevision'](_0xa21a17){const [,_0x2b1762]=this['getRevisionsIterator'](_0xa21a17,{'direction':'later'});return _0x2b1762;}['getRevisionsInDiff'](_0x94b42b){const _0x50b1c5=[];for(const _0x39bfba of this['getRevisionsIterator'](_0x94b42b['newRevisionId']))if(_0x50b1c5['push'](_0x39bfba),_0x39bfba['id']===_0x94b42b['oldRevisionId'])break;return _0x50b1c5;}*['getRevisionsIterator'](_0xef6e4,{direction:_0x360c27='earlier',filter:_0x144349=()=>!0x0}={}){const _0x4172df='earlier'===_0x360c27?0x1:-0x1;let _0x364df3=this['_revisions']['get'](_0xef6e4),_0x215d22=this['getIndex'](_0x364df3);for(yield _0x364df3;_0x364df3;){if(_0x215d22+=_0x4172df,_0x364df3=this['getRevision'](_0x215d22),!_0x364df3)return;_0x144349(_0x364df3)&&(yield _0x364df3);}}}function m(_0x52a3f5,_0x53329a,_0x3c73e3){const t=_0x52a3f5['t'];switch(_0x53329a){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'},_0x3c73e3);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x3c73e3);case'Show\x20previous\x20change':return t('Show\x20previous\x20change');case'Show\x20next\x20change':return t('Show\x20next\x20change');case'EDIT_X_OF_Y_REVISIONS':return t({'string':'Edit','id':'EDIT_X_OF_Y_REVISIONS'});case'Total':return t('Total');case'Revision\x20creator':return t('Revision\x20creator');case'Revision\x20author':return t('Revision\x20author');case'Revision\x20name':return t('Revision\x20name');case'Save\x20current\x20revision':return t('Save\x20current\x20revision');case'Accept':return t('Accept');case'Save':return t('Save');case'Cancel':return t('Cancel');case'Name\x20of\x20the\x20revision':return t('Name\x20of\x20the\x20revision');case'optional':return t('optional');case'PENDING_ACTION_REVISION_HISTORY':return t({'string':'Unsaved\x20change\x20in\x20revision\x20history.','id':'PENDING_ACTION_REVISION_HISTORY'});case'The\x20revision\x20name\x20cannot\x20be\x20empty.':return t('The\x20revision\x20name\x20cannot\x20be\x20empty.');case'Enter\x20the\x20revision\x20name':return t('Enter\x20the\x20revision\x20name');default:return'';}}const P={'c':_0x5d2d63,'a':_0x1d76c8,'e':_0x34669c,'r':_0x16dfe9,'u':_0x1f2667};class l extends _0x3f5b68{['licenseKey'];['_licenseKeyCheckInterval'];['adapter'];['currentRevision'];['repository'];['_revisionDataBuilder'];['_source'];['_initialRevisionId'];['_bufferedUpdates'];['_pendingAction'];['_continueCurrentRevision'];['_startingVersion'];['_loadedStateData'];static get['pluginName'](){return'RevisionTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1a724d,j,_0x1162f5];}constructor(_0x936a65){super(_0x936a65),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new V(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x26a2ca=_0x1c8288();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x26a2ca},this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['set']('_isPendingUpdate',!0x1),this['editor']['config']['define']('revisionHistory.resumeUnsavedRevision',!0x0),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'});}['init'](){this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['_setConversion'](),this['editor']['data']['on']('ready',()=>{const _0x5a80e5=this['repository']['getRevision'](0x0),_0x3f53d0=_0x5a80e5&&null===_0x5a80e5['creator']?_0x5a80e5:null;if(this['_continueCurrentRevision']=!!_0x3f53d0&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x42d7c7=this['_source']['getCurrentRevisionId'](),_0x468736=this['repository']['getRevision'](_0x42d7c7);if(_0x468736)this['_startingVersion']=_0x468736['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x9c1323=this['_source']['history']['_operations']['find'](_0x35c974=>!_0x35c974['_isInit']),_0x187f83=_0x9c1323?_0x9c1323['baseVersion']:this['_source']['history']['version'];_0x5a80e5?(_0x5a80e5['toVersion']<_0x187f83&&_0x5a80e5['_update']({'toVersion':_0x187f83}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x3f53d0['id'],this['_startingVersion']=_0x3f53d0['fromVersion']):(this['_startingVersion']=_0x5a80e5['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x187f83,this['_continueCurrentRevision']=!0x1);}}else _0x3f53d0&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x3f53d0['toVersion'],this['editor']['model']['document']['history']['version']),_0x3f53d0['fromVersion']===_0x3f53d0['toVersion']?(0x0!==_0x3f53d0['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x3f53d0['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x3f53d0['id'],this['_startingVersion']=_0x3f53d0['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',_0x516965=>!_0x516965),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x81251f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x249778;for(const _0x568adf in _0x81251f){const _0x36cbf5=_0x568adf,_0x43b5a4=_0x81251f[_0x36cbf5];if('revisionHistoryLicenseKeyValid'==_0x43b5a4||'revisionHistoryLicenseKeyInvalid'==_0x43b5a4||'revisionHistoryLicenseKeyExpired'==_0x43b5a4||'revisionHistoryLicenseKeyDomainLimit'==_0x43b5a4||'revisionHistoryLicenseKeyNotAllowed'==_0x43b5a4||'revisionHistoryLicenseKeyEvaluationLimit'==_0x43b5a4||'revisionHistoryLicenseKeyTrialLimit'==_0x43b5a4||'revisionHistoryLicenseKeyUsageLimit'==_0x43b5a4){delete _0x81251f[_0x36cbf5],_0x249778=_0x43b5a4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x249778&&_0x81251f['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x249778&&_0x81251f['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x249778&&_0x81251f['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x249778&&_0x81251f['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x249778&&_0x81251f['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x249778&&_0x81251f['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x249778&&_0x81251f['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x42ca6b=this['repository']['getRevision'](0x0),_0x7609ef=await this['getRevisionDocumentData'](_0x42ca6b),_0x200246=await this['getRevisionRootsAttributes'](_0x42ca6b);this['_replaceEditorDataWithRevisionData'](_0x7609ef,_0x200246);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x121082){this['_source']=_0x121082;}async['update'](){const _0x3ed95a=await this['_source']['getLatestVersion']();if(_0x3ed95a>this['currentRevision']['toVersion']){await this['_loadState']();const _0x1d78fb=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x3ed95a});_0x1d78fb['authors']=_0x1d78fb['authorsIds']['map'](_0x468fe5=>this['editor']['plugins']['get']('Users')['getUser'](_0x468fe5)),this['currentRevision']['_update'](_0x1d78fb);}}async['_loadState'](){this['_continueCurrentRevision']&&!this['_loadedStateData']&&(await this['_loadRevisionData'](this['currentRevision']),this['_revisionDataBuilder']['loadState'](this['currentRevision']),this['_loadedStateData']={'fromVersion':this['currentRevision']['fromVersion'],'authors':this['currentRevision']['authors']['slice']()});}async['saveRevision'](_0xbe42a0={},_0x151a0e=null){const _0x23089f=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x151a0e>this['currentRevision']['toVersion']&&(_0x151a0e=null),null===_0x151a0e&&(_0x151a0e=await this['_source']['getLatestVersion']());const _0x20326b=this['_getFromVersion'](_0x151a0e),_0x4ef866=this['buildRevisionData']({'from':_0x20326b,'to':_0x151a0e});if(this['currentRevision']['toVersion']<_0x151a0e){const _0x54523f=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x151a0e,'to':_0x151a0e});_0x54523f['authors']=[],_0x54523f['authorsIds']=[],_0x54523f['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x54523f,!0x0),delete _0x54523f['authors'],_0x23089f['push'](_0x54523f);}_0xbe42a0['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0xbe42a0['name']=_0xbe42a0['name']||null,_0xbe42a0['id']=_0xbe42a0['id']||_0x1c8288(),_0xbe42a0={..._0xbe42a0,..._0x4ef866};const _0x512737=this['addRevisionData'](_0xbe42a0);_0x23089f['push'](_0xbe42a0);const _0x2541de=this['repository']['getIndex'](_0x512737);if(0x0!==_0x2541de){const _0x3404da=this['repository']['getRevision'](_0x2541de-0x1);if(_0x3404da['fromVersion']!==_0x151a0e){const _0x2b9939=this['_revisionDataBuilder']['getData'](_0x151a0e,_0x3404da['toVersion']),_0x3d54a6={'id':_0x3404da['id'],'diffData':_0x2b9939['diffData'],'authorsIds':_0x2b9939['authorsIds'],'authors':_0x2b9939['authorsIds']['map'](_0x160997=>this['editor']['plugins']['get']('Users')['getUser'](_0x160997)),'fromVersion':_0x151a0e};_0x3404da===this['currentRevision']&&(_0x3d54a6['createdAt']=new Date(_0xbe42a0['createdAt']['getTime']()+0xa)),_0x3404da['_update'](_0x3d54a6,!0x0),delete _0x3d54a6['authors'],_0x23089f['push'](_0x3d54a6);}}if(this['adapter']){for(const _0xedc4d5 of _0x23089f)this['_bufferUpdate'](_0xedc4d5['id'],_0xedc4d5,!0x0);this['sendBufferedUpdates']();}return _0x512737;}['addRevisionData'](_0x241834){const _0x5c3a75=this['repository']['createRevision'](_0x241834);return this['adapter']&&_0x5c3a75['on']('_update',(_0x3855e1,_0x56329e,_0x5f3aad)=>{_0x5f3aad||(this['_bufferUpdate'](_0x56329e['id'],_0x56329e,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x5c3a75,this['_findInsertionIndex'](_0x5c3a75)),_0x5c3a75;}async['getRevisionDocumentData'](_0xfa756a){await this['_loadRevisionData'](_0xfa756a);const _0xa954fb={};for(const _0x5f4bb3 in _0xfa756a['diffData']){if(_0xfa756a['diffData'][_0x5f4bb3]['attachChange']&&!_0xfa756a['diffData'][_0x5f4bb3]['attachChange']['isAttached'])continue;const _0x467207=this['_removeRevisionMarkers'](JSON['parse'](_0xfa756a['diffData'][_0x5f4bb3]['insertions'])),_0x1cc64b=this['editor']['editing']['view']['document'],_0x50ceb4=new _0x1f5212(_0x1cc64b,_0x467207['map'](_0x2a004c=>C(_0x2a004c,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0xa954fb[_0x5f4bb3]=this['editor']['data']['processor']['toData'](_0x50ceb4),this['editor']['data']['processor']['useFillerType']('default');}return _0xa954fb;}async['getRevisionRootsAttributes'](_0x1b2ea7){await this['_loadRevisionData'](_0x1b2ea7);const _0x2a631e={};for(const _0x1d1b97 in _0x1b2ea7['diffData'])_0x1b2ea7['diffData'][_0x1d1b97]['attachChange']&&!_0x1b2ea7['diffData'][_0x1d1b97]['attachChange']['isAttached']||(_0x2a631e[_0x1d1b97]=_0x1b2ea7['diffData'][_0x1d1b97]['attributesAfter']||{});return _0x2a631e;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x277d34=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x168187=0x0;_0x168187<_0x277d34['length'];_0x168187++){const _0x4d4b5d=_0x277d34[_0x168187];let _0x4dff2e=!0x1;for(const _0x4dfd36 of Object['keys'](_0x4d4b5d))void 0x0===_0x4d4b5d[_0x4dfd36]?delete _0x4d4b5d[_0x4dfd36]:'id'!==_0x4dfd36&&(_0x4dff2e=!0x0);_0x4dff2e||(_0x277d34[_0x168187]=null);}if(_0x277d34=_0x277d34['filter'](_0x109d2b=>null!==_0x109d2b),!_0x277d34['length'])return;for(let _0x2c291c=0x0;_0x2c291c<_0x277d34['length'];_0x2c291c++){const _0x5e264e=_0x277d34[_0x2c291c];void 0x0!==_0x5e264e['fromVersion']&&void 0x0===_0x5e264e['toVersion']&&(_0x5e264e['toVersion']=this['repository']['getRevision'](_0x5e264e['id'])['toVersion']),void 0x0!==_0x5e264e['toVersion']&&void 0x0===_0x5e264e['fromVersion']&&(_0x5e264e['fromVersion']=this['repository']['getRevision'](_0x5e264e['id'])['fromVersion']);}const _0x273ca6=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x277d34,_0x273ca6)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x4d5929=>{if(_0x4d5929){for(const _0x4d4944 of _0x4d5929)this['setRevisionData']({'id':_0x4d4944['id'],'createdAt':_0x4d4944['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x2298d2,_0x359ec7){let _0x2f106f=this['editor']['config']['get']('initialData'),_0x5f5d2c=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x2f106f){_0x2f106f={};for(const _0x190dac of this['editor']['model']['document']['getRootNames']())_0x2f106f[_0x190dac]='';}if('string'==typeof _0x2f106f&&(_0x2f106f={'main':_0x2f106f}),void 0x0===_0x5f5d2c){_0x5f5d2c={};for(const _0x4347d2 of this['editor']['model']['document']['getRootNames']())_0x5f5d2c[_0x4347d2]={};}let _0x42836c=!0x1;const _0x3b7fd9=Object['keys'](_0x2f106f),_0x1f8ce0=Object['keys'](_0x2298d2);for(const _0x20b198 of _0x3b7fd9){if(_0x2f106f[_0x20b198]!==_0x2298d2[_0x20b198]&&''!==_0x2f106f[_0x20b198]['trim']()){_0x42836c=!0x0;break;}if(!_0x9f149f(_0x5f5d2c[_0x20b198],_0x359ec7[_0x20b198])&&Object['keys'](_0x5f5d2c[_0x20b198])['length']>0x0){_0x42836c=!0x0;break;}}_0x42836c||(_0x42836c=_0x1f8ce0['some'](_0x4ba117=>!this['editor']['model']['document']['getRoot'](_0x4ba117))),_0x42836c&&_0x5d1652('editor-initial-data-replaced-with-revision-data',{'editorData':_0x2f106f,'editorRootsAttributes':_0x5f5d2c,'revisionData':_0x2298d2,'revisionRootsAttributes':_0x359ec7}),this['editor']['config']['set']('initialData',_0x2298d2),this['editor']['config']['set']('rootsAttributes',_0x359ec7);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x15e5eb=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x15e5eb['add'](m(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1f68f6){const _0x5abedb=this['repository']['getRevisions']();_0x5abedb['reverse']();let _0x14b1a3=0x0;for(;_0x14b1a3<_0x5abedb['length'];){const _0x125847=_0x5abedb[_0x14b1a3];if(_0x125847===this['currentRevision']){_0x14b1a3++;continue;}if(_0x125847['id']===this['_initialRevisionId'])break;const _0x1c9543=_0x1f68f6['toVersion']-_0x125847['toVersion']||_0x1f68f6['fromVersion']-_0x125847['fromVersion'];if(_0x1c9543>0x0)break;if(_0x1c9543<0x0)_0x14b1a3++;else{if(!_0x1f68f6['creator']&&_0x125847['creator'])break;if(_0x125847['creator']||!_0x1f68f6['creator']){if(_0x1f68f6['createdAt']>_0x125847['createdAt'])break;_0x14b1a3++;}else _0x14b1a3++;}}return _0x14b1a3;}['setRevisionData'](_0x50ed63){const _0x16118e=this['repository']['getRevision'](_0x50ed63['id']);if(_0x50ed63['createdAt']&&(_0x50ed63['createdAt']=new Date(_0x50ed63['createdAt'])),_0x50ed63['authorsIds']){const _0x29bfa2=this['editor']['plugins']['get']('Users');_0x50ed63['authors']=_0x50ed63['authorsIds']['map'](_0xf1e5d9=>_0x29bfa2['getUser'](_0xf1e5d9));}_0x16118e['_update'](_0x50ed63,!0x0);}['buildRevisionData']({revision:_0x2626ee=null,from:_0x32defc=null,to:_0x8710bd=null}){_0x32defc=null!==_0x32defc?_0x32defc:_0x2626ee['fromVersion'],_0x8710bd=null!==_0x8710bd?_0x8710bd:_0x2626ee['toVersion'];const _0x3ad3c3=this['_revisionDataBuilder']['getData'](_0x32defc,_0x8710bd),_0x46bdfb={'diffData':_0x3ad3c3['diffData'],'authorsIds':_0x3ad3c3['authorsIds'],'fromVersion':_0x32defc,'toVersion':_0x8710bd};if(!_0x2626ee||_0x8710bd!==_0x2626ee['toVersion']){const _0x31e5f6=_0x8710bd-0x1,_0x4d73e3=this['_source']['history']['getOperation'](_0x31e5f6);_0x46bdfb['createdAt']=_0x4d73e3&&_0x4d73e3['createdAt']||new Date();}if(this['_loadedStateData']&&_0x32defc===this['_loadedStateData']['fromVersion']){for(const _0x28584d of this['_loadedStateData']['authors'])_0x46bdfb['authorsIds']['includes'](_0x28584d['id'])||_0x46bdfb['authorsIds']['push'](_0x28584d['id']);}return _0x46bdfb;}['_loadRevisionData'](_0xd32ec5){if(!_0xd32ec5||_0xd32ec5['diffData'])return Promise['resolve']();{const _0x12c123=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x12c123,'revisionId':_0xd32ec5['id']})['then'](_0x470a14=>{_0xd32ec5['diffData']=_0x470a14['diffData'];});}}['_bufferUpdate'](_0x3bdf7d,_0x15ef70,_0x2a7436){if(this['_bufferedUpdates']['has'](_0x3bdf7d)){const _0xe69ee8=this['_bufferedUpdates']['get'](_0x3bdf7d);_0x15ef70=_0x2a7436?{..._0xe69ee8,..._0x15ef70}:{..._0x15ef70,..._0xe69ee8};}this['_bufferedUpdates']['set'](_0x3bdf7d,_0x15ef70);}['_getFromVersion'](_0x7528e0){const _0x407da2=this['repository']['getRevisions']();_0x407da2['reverse'](),_0x407da2['shift']();const _0x40c20d=_0x407da2['find'](_0x129b90=>_0x129b90['toVersion']<=_0x7528e0)['toVersion'];return _0x40c20d<this['_startingVersion']?this['_startingVersion']:_0x40c20d;}['_createInitialRevision'](_0xfccb1a){const _0x199da7=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x199da7)this['_initialRevisionId']=_0x199da7['id'];else{const _0x1539e2=!this['editor']['model']['document']['roots']['find'](_0x5c0800=>this['editor']['model']['hasContent'](_0x5c0800)),_0x42009f=this['editor']['plugins']['get']('Users')['me']['id'],_0x366124=m(this['editor']['locale'],_0x1539e2?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0xfccb1a,'to':_0xfccb1a,'id':this['_initialRevisionId'],'name':_0x366124,'creatorId':_0x42009f});}}['_createCurrentRevision'](_0x476e1a){const _0x2815a6=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x2815a6),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x476e1a,'to':_0x476e1a,'id':_0x2815a6,'name':'','creatorId':null}));}['_makeRevision']({name:_0x13d7be,from:_0x918ad4,to:_0x23108e,creatorId:_0x442891,id:_0x1975eb}){const _0x242718=this['buildRevisionData']({'from':_0x918ad4,'to':_0x23108e});_0x242718['name']=_0x13d7be,_0x242718['creatorId']=_0x442891,_0x242718['id']=_0x1975eb;const _0x5b80a7=this['addRevisionData'](_0x242718);return this['adapter']&&this['_bufferUpdate'](_0x242718['id'],_0x242718,!0x0),_0x5b80a7;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x3289ec){return(_0x3289ec=_0x3289ec['filter'](_0x13dc29=>!_0x13dc29['name']||'revision-start'!==_0x13dc29['name']&&'revision-end'!==_0x13dc29['name']))['forEach'](_0x4faaee=>{'string'!=typeof _0x4faaee&&(_0x4faaee['children']=this['_removeRevisionMarkers'](_0x4faaee['children']),_0x4faaee['attributes']=_0x4faaee['attributes']['filter'](_0x16bf6a=>!_0x16bf6a[0x0]['startsWith']('data-revision-')));}),_0x3289ec;}}function C(_0x422b33,_0x29e4a4){const _0x359641=_0x29e4a4['editing']['view']['document'];if('string'==typeof _0x422b33)return new _0x200987(_0x359641,_0x422b33);{const _0x1d2143=_0x422b33['children']['map'](_0x770860=>C(_0x770860,_0x29e4a4));return new(P[_0x422b33['type']]||_0x2654e2)(_0x359641,_0x422b33['name'],_0x422b33['attributes'],_0x1d2143);}}class V{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5af433){this['editor']=_0x5af433,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'](_0x4378ca){this['source']=_0x4378ca;const _0x59811e=new Map(),_0x1677b5=new Map(),_0x3f85db=this['editor']['model']['document']['roots']['map'](_0x345fd7=>_0x345fd7['rootName']);for(const _0x502644 of _0x3f85db){const _0x35a996=this['editor']['model']['document']['getRoot'](_0x502644),_0x4a3248=T(_0x35a996);_0x59811e['set'](_0x502644,_0x4a3248),_0x1677b5['set'](_0x502644,Object['fromEntries'](_0x35a996['getAttributes']()));}const _0x4757fc=Array['from'](this['editor']['model']['markers'])['map'](_0xb90182=>[_0xb90182['name'],_0xb90182['getRange']()]),_0x3d0cc7=this['source']['version'];this['_saveMetaData'](_0x3d0cc7,_0x59811e,_0x4757fc,_0x1677b5),this['_startingRevisionId']=this['_revisionId'];const _0x2f957b=new Map(),_0x51fc26=new Map();for(const _0x39546e of _0x3f85db){const _0x1627a9=F(_0x39546e);_0x2f957b['set'](_0x39546e,_0x1627a9),_0x51fc26['set'](_0x39546e,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x2f957b,[],_0x51fc26);}['getData'](_0x2cc654,_0x5122d6){if(this['_lastFrom']===_0x2cc654&&this['_lastTo']<=_0x5122d6)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x5122d6,!0x0);else{if(!this['_savedMetaData']['has'](_0x2cc654)){const _0x44caa3=this['_getPreviousFrom'](_0x2cc654);this['_calculateMetaData'](_0x44caa3,_0x2cc654,!0x1);}this['_calculateMetaData'](_0x2cc654,_0x5122d6,!0x0);}return this['_lastFrom']=_0x2cc654,this['_lastTo']=_0x5122d6,this['_getState']();}['loadState'](_0x1398a7){this['_reset'](),this['_lastFrom']=_0x1398a7['fromVersion'],this['_lastTo']=_0x1398a7['toVersion'];for(const _0xfb6c94 in _0x1398a7['diffData']){const _0x45da45=_0x1398a7['diffData'][_0xfb6c94]['attachChange'],_0x5597e4=_0x4fd0d8(_0x1398a7['diffData'][_0xfb6c94]['attributesBefore'])||{},_0x4ce914=this['_makeModelFromViewString'](_0x1398a7['diffData'][_0xfb6c94]['deletions']);_0x4ce914['rootName']=_0xfb6c94,_0x4ce914['_isAttached']=!_0x45da45||!_0x45da45['isAttached'],_0x4ce914['isAttached']=()=>_0x4ce914['_isAttached'],this['_baseRoots']['set'](_0xfb6c94,_0x4ce914),this['_baseRootsAttributes']['set'](_0xfb6c94,_0x5597e4),_0x45da45&&this['_touchedRoots']['set'](_0xfb6c94,_0x45da45);const _0x1108fc=this['_makeIdsRoot'](_0x4ce914);this['_baseIdsRoots']['set'](_0xfb6c94,_0x1108fc);for(const [_0x4abb6a,_0x5d77c5]of _0x4ce914['markers']){if(!_0x4abb6a['startsWith']('revision:'))continue;const _0x3e203d=_0x4abb6a['split'](':')[0x2];for(const _0x57be5b of _0x5d77c5['getWalker']({'singleCharacters':!0x0})){const _0x536d81=this['_getVidAttributeName'](_0x57be5b),_0x23a3b8='elementEnd'==_0x57be5b['type']?_0x57be5b['previousPosition']['path']['slice'](0x0,-0x1):_0x57be5b['previousPosition']['path'],_0x1e22a0=_0x1108fc['getNodeByPath'](_0x23a3b8)['getAttribute'](_0x536d81);this['_touched']['set'](_0x1e22a0,{'userId':_0x3e203d});}}}this['_startingRevisionId']=this['_revisionId'];const _0x223f65=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xc01bee=>!this['_touched']['has'](_0xc01bee));let _0x473824=0x0;const _0x28a080=new Map();for(const _0x53d46a in _0x1398a7['diffData']){const _0x5e93a2=_0x1398a7['diffData'][_0x53d46a]['attachChange'],_0x14a502=_0x4fd0d8(_0x1398a7['diffData'][_0x53d46a]['attributesAfter'])||{},_0x4591ee=this['_makeModelFromViewString'](_0x1398a7['diffData'][_0x53d46a]['insertions']);_0x4591ee['rootName']=_0x53d46a,_0x4591ee['_isAttached']=!_0x5e93a2||_0x5e93a2['isAttached'],_0x4591ee['isAttached']=()=>_0x4591ee['_isAttached'],this['_diffRoots']['set'](_0x53d46a,_0x4591ee),this['_diffRootsAttributes']['set'](_0x53d46a,_0x14a502);const _0x2aa44b=this['_makeIdsRoot'](_0x4591ee,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x53d46a,_0x2aa44b),_0x28a080['set'](_0x53d46a,_0x4591ee['isAttached']()?_0x14a502:{});for(const [_0x5a2e29,_0x5b75b3]of _0x4591ee['markers']){if(!_0x5a2e29['startsWith']('revision:'))continue;const _0x42cd47=_0x5a2e29['split'](':')[0x2];for(const _0x1e16f9 of _0x5b75b3['getWalker']({'singleCharacters':!0x0})){const _0x1b66dd=this['_getVidAttributeName'](_0x1e16f9),_0xbc2b8=this['_revisionId']++,_0x5d90bc='elementEnd'==_0x1e16f9['type']?_0x1e16f9['previousPosition']['path']['slice'](0x0,-0x1):_0x1e16f9['previousPosition']['path'];_0x2aa44b['getNodeByPath'](_0x5d90bc)['_setAttribute'](_0x1b66dd,_0xbc2b8),this['_touched']['set'](_0xbc2b8,{'userId':_0x42cd47});}}for(const _0x470034 of this['editor']['model']['createRangeIn'](_0x4591ee)['getWalker']({'singleCharacters':!0x0})){const _0x53b2fb=this['_getVidAttributeName'](_0x470034),_0x5555e1='elementEnd'==_0x470034['type']?_0x470034['previousPosition']['path']['slice'](0x0,-0x1):_0x470034['previousPosition']['path'],_0x24b4ae=_0x2aa44b['getNodeByPath'](_0x5555e1);_0x24b4ae['getAttribute'](_0x53b2fb)>0x0||_0x24b4ae['_setAttribute'](_0x53b2fb,_0x223f65[_0x473824++]);}for(const [_0x348985,_0x5d4e4f]of _0x4591ee['markers'])_0x348985['startsWith']('revision:')||this['_markers']['set'](_0x348985,_0x5d4e4f);}const _0x54d6da=F('$graveyard');this['_baseRoots']['set']('$graveyard',_0x54d6da),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x54d6da,0x1));const _0x218583=F('$graveyard');this['_diffRoots']['set']('$graveyard',_0x218583),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x218583,0x1));const _0x4cb274=Array['from'](this['_diffRoots'])['map'](([_0x57ea25,_0x42be42])=>[_0x57ea25,T(_0x42be42)]);this['_saveMetaData'](this['_lastTo'],_0x4cb274,this['_markers'],_0x28a080);}['_makeModelFromViewString'](_0x50f58f){const _0x2a1cad=JSON['parse'](_0x50f58f),_0x4d0750=this['editor']['editing']['view']['document'],_0x5b0730=new _0x1f5212(_0x4d0750,_0x2a1cad['map'](_0x2c495c=>C(_0x2c495c,this['editor'])));return this['editor']['data']['toModel'](_0x5b0730);}['_saveMetaData'](_0x1efb50,_0x2156c1,_0x43b3ba,_0x204af7){const _0x537e77=new Map(_0x2156c1),_0x45d0a4=new Map(_0x4fd0d8(_0x204af7)),_0xecee66=new Map();for(const [_0xf4c24,_0x16e132]of _0x43b3ba)_0xecee66['set'](_0xf4c24,{'start':_0x16e132['start']['clone'](),'end':_0x16e132['end']['clone'](),'rootName':_0x16e132['root']['rootName']});this['_savedMetaData']['set'](_0x1efb50,{'roots':_0x537e77,'markers':_0xecee66,'rootsAttributes':_0x45d0a4});}['_removeMetaData'](_0x2ea953){this['_savedMetaData']['delete'](_0x2ea953);}['reInit'](){this['_reset'](),this['_lastFrom']=-0x1,this['_lastTo']=-0x1,this['_savedMetaData']['clear'](),this['init'](this['source']);}['_reset'](){this['_touched']['clear'](),this['_touchedMarkers']['clear'](),this['_touchedRoots']['clear'](),this['_diffRoots']['clear'](),this['_diffRootsAttributes']['clear'](),this['_baseRoots']['clear'](),this['_baseRootsAttributes']['clear'](),this['_idsRoots']['clear'](),this['_baseIdsRoots']['clear'](),this['_markers']['clear'](),this['_revisionId']=0x1,this['_startingRevisionId']=this['_revisionId'];}['_makeIdsRoot'](_0xd3548a,_0x41cec9=null){let _0x1e1e1f=null;_0xd3548a['is']('documentFragment')||(_0x1e1e1f=new ft(_0xd3548a['name'],{'vid_start':null===_0x41cec9?this['_revisionId']++:_0x41cec9++}));const _0x51b67a=[];for(const _0x577f13 of _0xd3548a['getChildren']())if(_0x577f13['is']('element')){_0x51b67a['push'](this['_makeIdsRoot'](_0x577f13,_0x41cec9));const _0x50e725=_0x51b67a[_0x51b67a['length']-0x1];null!==_0x41cec9&&(_0x41cec9=_0x50e725['is']('element','$text')?_0x50e725['getAttribute']('vid')+0x1:_0x50e725['getAttribute']('vid_end')+0x1);}else{for(let _0x56da27=0x0;_0x56da27<_0x577f13['offsetSize'];_0x56da27++)_0x51b67a['push'](new ft('$text',{'vid':null===_0x41cec9?this['_revisionId']++:_0x41cec9++}));}if(_0xd3548a['is']('documentFragment')){const _0x1f5ff5=F(_0xd3548a['rootName']);return _0x1f5ff5['_insertChild'](0x0,_0x51b67a),_0x1f5ff5;}return _0x1e1e1f['_setAttribute']('vid_end',null===_0x41cec9?this['_revisionId']++:_0x41cec9++),_0x1e1e1f['_insertChild'](0x0,_0x51b67a),_0x1e1e1f;}['_calculateMetaData'](_0x4530f3,_0x537ae4,_0x29c923){this['_reset']();const {roots:_0x5c9677,markers:_0x29737a,rootsAttributes:_0x3a43bf}=this['_savedMetaData']['get'](_0x4530f3);this['_baseRoots']=new Map(_0x5c9677),this['_baseRootsAttributes']=new Map(_0x4fd0d8(_0x3a43bf));for(const [_0x26fe98,_0x29798b]of this['_baseRoots'])if('$graveyard'!==_0x26fe98&&(this['_diffRoots']['set'](_0x26fe98,T(_0x29798b)),this['_diffRootsAttributes']=new Map(_0x4fd0d8(_0x3a43bf)),_0x29c923)){const _0x523aa2=this['_revisionId'];this['_idsRoots']['set'](_0x26fe98,this['_makeIdsRoot'](_0x29798b)),this['_baseIdsRoots']['set'](_0x26fe98,this['_makeIdsRoot'](_0x29798b,_0x523aa2));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',T(this['_baseRoots']['get']('$graveyard'))),_0x29c923&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0xad91d0,_0x2f81d3]of _0x29737a){const _0x5dc32b=this['_baseRoots']['get'](_0x2f81d3['rootName']),_0x1b512b=this['_diffRoots']['get'](_0x2f81d3['rootName']),_0x30da39=new vt(this['_fixPosition'](_0x2f81d3['start'],_0x5dc32b),this['_fixPosition'](_0x2f81d3['end'],_0x5dc32b)),_0x364507=this['_fixRange'](_0x30da39,_0x1b512b);_0x5dc32b['markers']['set'](_0xad91d0,_0x30da39),this['_markers']['set'](_0xad91d0,_0x364507);}this['_applyOperations'](_0x4530f3,_0x537ae4,_0x29c923);}['_applyOperations'](_0x3faeb6,_0x76f99d,_0x3729c4){for(const _0x5c6ba9 of this['source']['getOperations'](_0x3faeb6,_0x76f99d))this['_handleOperation'](_0x5c6ba9,_0x3729c4);for(const _0x2d2039 of this['_diffRoots']['values']())_0x2d2039['markers']['clear']();for(const [_0x2d92b8,_0x176591]of this['_markers']){this['_diffRoots']['get'](_0x176591['root']['rootName'])['markers']['set'](_0x2d92b8,_0x176591['clone']());}const _0x4cda13=new Map(),_0x3041f3=new Map();for(const [_0xa4d0a3,_0x52dd8b]of this['_diffRoots'])_0x4cda13['set'](_0xa4d0a3,T(_0x52dd8b)),_0x3041f3['set'](_0xa4d0a3,this['_diffRootsAttributes']['get'](_0xa4d0a3));this['_saveMetaData'](_0x76f99d,_0x4cda13,this['_markers'],_0x3041f3);}['_getPreviousFrom'](_0xa59139){const _0x108992=Array['from'](this['_savedMetaData']['keys']());_0x108992['sort']((_0x47b73e,_0x525146)=>_0x47b73e-_0x525146),_0x108992['reverse']();for(const _0x246760 of _0x108992)if(_0x246760<_0xa59139)return _0x246760;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x4957f5,_0x425c8c){const _0x307d89=Array['from'](_0x425c8c['markers'])['map'](([_0x52ad52,_0x16c91d])=>[_0x52ad52,this['_fixRange'](_0x16c91d,_0x4957f5)]);_0x4957f5['markers']=new Map(_0x307d89);}['_transformMarkers'](_0x247f67){for(const _0x36f92c of this['_markers']['values']()){const _0x4215c5=_0x36f92c['getTransformedByOperation'](_0x247f67),_0x3edd37=vt['_createFromRanges'](_0x4215c5);_0x36f92c['start']=_0x3edd37['start'],_0x36f92c['end']=_0x3edd37['end'];}}['_handleOperation'](_0x27200f,_0x5700a9){if('addRoot'!=_0x27200f['type']&&'detachRoot'!=_0x27200f['type']){if('insert'==_0x27200f['type']){const _0x32c491=_0x27200f['position']['root']['rootName'];this['_diffRoots']['has'](_0x32c491)||(this['_diffRoots']['set'](_0x32c491,F(_0x32c491,!0x0)),this['_diffRootsAttributes']['set'](_0x32c491,{}),_0x5700a9&&this['_idsRoots']['set'](_0x32c491,F(_0x32c491,!0x0)));}else{if('addRootAttribute'==_0x27200f['type']||'removeRootAttribute'==_0x27200f['type']||'changeRootAttribute'==_0x27200f['type'])return void this['_handleRootAttributeOperation'](_0x27200f);'marker'==_0x27200f['type']&&this['_handleMarkerOperation'](_0x27200f);}if('marker'!==_0x27200f['type']){const _0x4b45b2=this['_cloneOperation'](_0x27200f,this['_diffRoots']);_0x4b45b2['_execute'](),this['_transformMarkers'](_0x4b45b2);}if(_0x5700a9)switch(_0x27200f['type']){case'insert':this['_handleInsertOperation'](_0x27200f);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x27200f);break;case'merge':this['_handleMergeOperation'](_0x27200f);break;case'split':this['_handleSplitOperation'](_0x27200f);}}else this['_handleRootOperation'](_0x27200f,_0x5700a9);}['_cloneOperation'](_0x2f1f9d,_0x5488fe){const _0x53ae13=_0x2f1f9d['clone']();return _0x53ae13['_authorId']=_0x2f1f9d['_authorId'],this['_fixOperation'](_0x53ae13,_0x5488fe),_0x53ae13;}['_getBaseVids'](_0x2137a8){return _0x2137a8['map'](_0x10544d=>{const _0xc5eb09=this['_getVidAttributeName'](_0x10544d);return Number(_0x10544d['item']['getAttribute'](_0xc5eb09));});}['_generateTape'](_0x3d511a,_0x54b4a2){if(_0x3d511a['is']('element','$text'))_0x54b4a2['push']({'item':_0x3d511a,'type':'text'});else{_0x3d511a['is']('element')&&_0x54b4a2['push']({'item':_0x3d511a,'type':'elementStart'});for(const _0x3471bd of _0x3d511a['getChildren']())this['_generateTape'](_0x3471bd,_0x54b4a2);_0x3d511a['is']('element')&&_0x54b4a2['push']({'item':_0x3d511a,'type':'elementEnd'});}return _0x54b4a2;}['_getState'](){const _0x4df472=new Map(this['_touched']),_0x1c5c51=new Map(_0x4df472),_0x5196e8=new Map(),_0x4c415b={'insertions':{},'deletions':{}},_0x584a19={'insertions':{},'deletions':{}},_0x511629=new Map(),_0x15afdb=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x15afdb['delete']('$graveyard');for(const _0x311330 of _0x15afdb){const _0x36bea5=this['_diffRoots']['get'](_0x311330)||F(_0x311330,!0x1),_0xdc6e96=this['_baseRoots']['get'](_0x311330)||F(_0x311330,!0x1);_0x36bea5['isAttached']()||_0xdc6e96['isAttached']()?(_0x4c415b['insertions'][_0x311330]=T(_0x36bea5),_0x4c415b['deletions'][_0x311330]=T(_0xdc6e96),this['_copyMarkers'](_0x4c415b['deletions'][_0x311330],_0xdc6e96),this['_copyMarkers'](_0x4c415b['insertions'][_0x311330],_0x36bea5),_0x584a19['insertions'][_0x311330]=this['_generateTape'](this['_idsRoots']['get'](_0x311330),[]),_0x584a19['deletions'][_0x311330]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x311330)||F(_0x311330,!0x1),[])):_0x15afdb['delete'](_0x311330);}for(const _0x40809d of _0x15afdb){const _0x48a788=_0x584a19['insertions'][_0x40809d];for(const _0x41a7f9 of _0x48a788){const _0x3fd999=this['_getVidAttributeName'](_0x41a7f9),_0x28034a=_0x41a7f9['item']['getAttribute'](_0x3fd999);_0x1c5c51['delete'](_0x28034a),_0x28034a>=this['_startingRevisionId']&&_0x5196e8['set'](_0x28034a,_0x4df472['get'](_0x28034a));}}for(const _0x4ac67f of _0x15afdb){const _0x574d84=_0x584a19['insertions'][_0x4ac67f],_0x5a6c35=this['_getBaseVids'](_0x584a19['deletions'][_0x4ac67f]);let _0x22f3b3=0x0;for(const _0x3e058c of _0x574d84){const _0x46e9b9=this['_getVidAttributeName'](_0x3e058c),_0xfbf215=_0x3e058c['item']['getAttribute'](_0x46e9b9);if(!_0x5196e8['has'](_0xfbf215)&&!_0x511629['has'](_0xfbf215)){if(_0x1c5c51['has'](_0xfbf215))_0x22f3b3++;else{if(_0xfbf215!=_0x5a6c35[_0x22f3b3]){const _0x56bb43=_0x4df472['get'](_0xfbf215)||_0x4df472['get'](_0x5a6c35[_0x22f3b3]);for(;_0xfbf215!=_0x5a6c35[_0x22f3b3];)_0x1c5c51['has'](_0x5a6c35[_0x22f3b3])||(_0x511629['set'](_0x5a6c35[_0x22f3b3],_0x56bb43),_0x4df472['set'](_0x5a6c35[_0x22f3b3],_0x56bb43)),_0x22f3b3++;}_0x22f3b3++;}}}}for(const _0x503da2 of _0x15afdb){const _0x531b8c=_0x584a19['insertions'][_0x503da2];for(const _0x49ed38 of _0x531b8c){const _0x841750=this['_getVidAttributeName'](_0x49ed38),_0x2548e8=_0x49ed38['item']['getAttribute'](_0x841750);if(_0x511629['has'](_0x2548e8)){const _0x9ad3c7=_0x511629['get'](_0x2548e8);_0x1c5c51['has'](_0x2548e8)||_0x1c5c51['set'](_0x2548e8,{..._0x9ad3c7}),_0x5196e8['set'](_0x2548e8,{..._0x9ad3c7});}}}for(const _0x547a6d of _0x1c5c51['keys']())_0x547a6d>=this['_startingRevisionId']&&_0x1c5c51['delete'](_0x547a6d);const _0x54e904=new Map();for(const _0x27fbe0 of _0x15afdb){let _0x4d8be6=_0x584a19['insertions'][_0x27fbe0];for(const _0x6937f5 of _0x4d8be6)if(_0x6937f5['item']['is']('element','tableCell')){const _0x52a441=this['_getVidAttributeName'](_0x6937f5),_0x10da42=_0x6937f5['item']['getAttribute'](_0x52a441);if(_0x5196e8['has'](_0x10da42)){const _0x268688=_0x6937f5['item']['parent']['parent']['getAttribute']('vid_start'),_0x201452=_0x54e904['get'](_0x268688)||new Set();_0x201452['add'](_0x5196e8['get'](_0x10da42)['userId']),_0x54e904['set'](_0x268688,_0x201452);}}_0x4d8be6=_0x584a19['deletions'][_0x27fbe0];for(const _0x5b0418 of _0x4d8be6)if(_0x5b0418['item']['is']('element','tableCell')){const _0x4f85e0=this['_getVidAttributeName'](_0x5b0418),_0x41f04c=_0x5b0418['item']['getAttribute'](_0x4f85e0);if(_0x1c5c51['has'](_0x41f04c)){const _0xef4fb=_0x5b0418['item']['parent']['parent']['getAttribute']('vid_start'),_0x3ec3c8=_0x54e904['get'](_0xef4fb)||new Set();_0x3ec3c8['add'](_0x1c5c51['get'](_0x41f04c)['userId']),_0x54e904['set'](_0xef4fb,_0x3ec3c8);}}for(const _0x445fe6 of _0x54e904['keys']())(_0x5196e8['has'](_0x445fe6)||_0x1c5c51['has'](_0x445fe6))&&_0x54e904['delete'](_0x445fe6);}for(const _0x58ddbb of _0x15afdb){const _0x552e67=_0x584a19['insertions'][_0x58ddbb];let _0xa27095=null,_0x3f9a9d=null;for(const _0x43065b of _0x552e67){const _0x1696fc=this['_getVidAttributeName'](_0x43065b),_0x1f921e=_0x43065b['item']['getAttribute'](_0x1696fc),_0x23324c=_0x54e904['get'](_0x1f921e);_0x23324c&&'elementStart'==_0x43065b['type']&&(_0xa27095=Array['from'](_0x23324c)[0x0],_0x3f9a9d=_0x43065b['item']['getAttribute']('vid_end')),_0xa27095&&(_0x1c5c51['set'](_0x1f921e,{'userId':_0xa27095}),_0x5196e8['set'](_0x1f921e,{'userId':_0xa27095})),_0x1f921e==_0x3f9a9d&&(_0xa27095=null,_0x3f9a9d=null);}}const _0x2b4124={},_0x4b263a=new Set();for(const _0x36c3ad of _0x15afdb){const _0x45c754=_0x4c415b['deletions'][_0x36c3ad],_0x32706a=_0x4c415b['insertions'][_0x36c3ad];for(const {userId:_0x2ed44f}of this['_touchedMarkers']['values']())null!==_0x2ed44f&&_0x4b263a['add'](_0x2ed44f);for(const {userId:_0x12ae62}of this['_touchedRoots']['values']())null!==_0x12ae62&&_0x4b263a['add'](_0x12ae62);this['_markChanges'](_0x32706a,_0x584a19['insertions'][_0x36c3ad],_0x5196e8,'insertion',_0x4b263a),this['_markChanges'](_0x45c754,_0x584a19['deletions'][_0x36c3ad],_0x1c5c51,'deletion',_0x4b263a),_0x2b4124[_0x36c3ad]={'insertions':this['_prepareViewToSave'](_0x32706a),'deletions':this['_prepareViewToSave'](_0x45c754),'attachChange':this['_touchedRoots']['get'](_0x36c3ad)||null,'attributesBefore':_0x4fd0d8(this['_baseRootsAttributes']['get'](_0x36c3ad))||{},'attributesAfter':_0x4fd0d8(this['_diffRootsAttributes']['get'](_0x36c3ad))};}return{'diffData':_0x2b4124,'authorsIds':Array['from'](_0x4b263a)};}['_processRootBeforeSave'](_0x3b7a20){for(const [,_0x3a3e52]of _0x3b7a20['markers']){const _0x5b52b0=_0x3a3e52['start']['getAncestors']()['filter'](_0x261c7d=>'tableCell'==_0x261c7d['name']);for(const _0x3efc90 of _0x5b52b0)0x1==_0x3efc90['childCount']&&_0x3efc90['getChild'](0x0)['is']('element','paragraph')&&_0x3efc90['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3424c5){this['_processRootBeforeSave'](_0x3424c5);const _0x927ee3=this['editor']['data']['toView'](_0x3424c5,{}),_0x1f78a9=Array['from'](_0x927ee3['getChildren']())['map'](_0x52e6b3=>this['_getViewJson'](_0x52e6b3));return JSON['stringify'](_0x1f78a9);}['_getViewJson'](_0x24a025){if(_0x24a025['is']('$text'))return _0x24a025['data'];{const _0x400d22=_0x24a025;return{'type':Object['keys'](P)['find'](_0x59e947=>_0x24a025 instanceof P[_0x59e947]),'name':_0x400d22['name'],'attributes':Array['from'](_0x400d22['getAttributes']()),'children':Array['from'](_0x400d22['getChildren']())['map'](_0x1255fe=>this['_getViewJson'](_0x1255fe))};}}['_markChanges'](_0x59dd38,_0x72572d,_0x5412a0,_0x1ccbcd,_0x4d293d){let _0x2e367b=null,_0x535181=null,_0x205d67=0x0;const _0x2dcc5b=this['editor']['model'];for(let _0x593e78=0x0;_0x593e78<_0x72572d['length'];_0x593e78++){const _0x44dc95=this['_getVidAttributeName'](_0x72572d[_0x593e78]),_0x3c953a=_0x72572d[_0x593e78]['item']['getAttribute'](_0x44dc95),_0x349462=_0x5412a0['get'](_0x3c953a),_0x3b3d1e=_0x593e78==_0x72572d['length']-0x1;(!_0x2e367b&&_0x349462&&(_0x2e367b=_0x349462,_0x535181=_0x72572d[_0x593e78]),_0x2e367b&&(!_0x349462||_0x349462['userId']!=_0x2e367b['userId']))&&(_0x55b710(_0x349462,B(_0x535181,_0x59dd38,_0x2dcc5b),B(_0x72572d[_0x593e78],_0x59dd38,_0x2dcc5b)),_0x2e367b=_0x349462||null,_0x535181=_0x349462?_0x72572d[_0x593e78]:null),_0x2e367b&&_0x3b3d1e&&_0x55b710(_0x349462,B(_0x535181,_0x59dd38,_0x2dcc5b),J(_0x72572d[_0x593e78],_0x59dd38,_0x2dcc5b));}function _0x55b710(_0x1f6151,_0x3fed8b,_0x477d0f){const _0x5319da=_0x2e367b['userId'],_0x466d2e='revision:'+_0x1ccbcd+':'+_0x5319da+':'+_0x205d67++,_0x46fa51=_0x2dcc5b['createRange'](_0x3fed8b,_0x477d0f);_0x59dd38['markers']['set'](_0x466d2e,_0x46fa51),null!==_0x5319da&&_0x4d293d['add'](_0x5319da);}}['_getVidAttributeName'](_0x4a0d01){switch(_0x4a0d01['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x247bf9,_0x415cab){_0x247bf9['baseVersion']=null;for(const _0x8a31a5 in _0x247bf9){const _0x4e3b14=_0x247bf9[_0x8a31a5];if(_0x4e3b14 instanceof gt){const _0x355fd6=_0x415cab['get'](_0x4e3b14['root']['rootName']);_0x247bf9[_0x8a31a5]=this['_fixPosition'](_0x4e3b14,_0x355fd6);}if(_0x4e3b14 instanceof vt){const _0x135c53=_0x415cab['get'](_0x4e3b14['root']['rootName']);_0x247bf9[_0x8a31a5]=this['_fixRange'](_0x4e3b14,_0x135c53);}'root'===_0x8a31a5&&(_0x247bf9['root']=_0x415cab['get'](_0x247bf9['root']['rootName']));}}['_fixRange'](_0xf7ecce,_0x2e867c){return this['editor']['model']['createRange'](this['_fixPosition'](_0xf7ecce['start'],_0x2e867c),this['_fixPosition'](_0xf7ecce['end'],_0x2e867c));}['_fixPosition'](_0x545833,_0x42e824){return this['editor']['model']['createPositionFromPath'](_0x42e824,_0x545833['path'],_0x545833['stickiness']);}['_handleInsertOperation'](_0x4569af){const _0x5c7915=this['_idsRoots']['get'](_0x4569af['position']['root']['rootName']),_0x484b09=this['_fixPosition'](_0x4569af['position'],_0x5c7915),_0x23b7cb=null===_0x4569af['_authorId']?null:_0x4569af['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x426bbb=_0x484b09['parent'],_0x3a157f=this['_revisionId'],_0x3e95bf=[];for(const _0x436111 of _0x4569af['nodes'])if(_0x436111['is']('element'))_0x3e95bf['push'](this['_makeIdsRoot'](_0x436111));else{for(let _0x424f9f=0x0;_0x424f9f<_0x436111['offsetSize'];_0x424f9f++)_0x3e95bf['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x3b94c2=this['_revisionId'];for(let _0x307ef7=_0x3a157f;_0x307ef7<_0x3b94c2;_0x307ef7++)this['_touched']['set'](_0x307ef7,{'userId':_0x23b7cb});_0x426bbb['_insertChild'](_0x484b09['offset'],_0x3e95bf);}['_handleMoveOperation'](_0x4f81f3){(_0x4f81f3=this['_cloneOperation'](_0x4f81f3,this['_idsRoots']))['_execute']();const _0x15e9c8=null===_0x4f81f3['_authorId']?null:_0x4f81f3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1c3a55=_0x4f81f3['getMovedRangeStart'](),_0x3407c2=_0x1c3a55['parent'],_0x274093=_0x1c3a55['offset'];!function _0x2a76e6(_0x511096,_0x2090e4,_0x2fc218,_0x48c6f6){for(let _0x496540=_0x2fc218;_0x496540<_0x48c6f6;_0x496540++){const _0xd53fbe=_0x2090e4['getChild'](_0x496540);_0xd53fbe['is']('element','$text')?_0x511096['set'](_0xd53fbe['getAttribute']('vid'),{'userId':_0x15e9c8}):(_0x511096['set'](_0xd53fbe['getAttribute']('vid_start'),{'userId':_0x15e9c8}),_0x2a76e6(_0x511096,_0xd53fbe,0x0,_0xd53fbe['childCount']),_0x511096['set'](_0xd53fbe['getAttribute']('vid_end'),{'userId':_0x15e9c8}));}}(this['_touched'],_0x3407c2,_0x274093,_0x274093+_0x4f81f3['howMany']);}['_handleMergeOperation'](_0x2b496d){const _0x909117=null===(_0x2b496d=this['_cloneOperation'](_0x2b496d,this['_idsRoots']))['_authorId']?null:_0x2b496d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x389069=_0x2b496d['targetPosition']['parent'],_0x240f9d=_0x2b496d['sourcePosition']['parent'],_0x1ee57a=_0x389069['getAttribute']('vid_end'),_0x4c654f=_0x240f9d['getAttribute']('vid_start');_0x389069['_setAttribute']('vid_end',_0x240f9d['getAttribute']('vid_end')),_0x240f9d['_setAttribute']('vid_end',_0x1ee57a),this['_touched']['set'](_0x4c654f,{'userId':_0x909117}),this['_touched']['set'](_0x1ee57a,{'userId':_0x909117}),_0x2b496d['_execute']();}['_handleSplitOperation'](_0x34920d){const _0x2bf807=null===(_0x34920d=this['_cloneOperation'](_0x34920d,this['_idsRoots']))['_authorId']?null:_0x34920d['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x4b71b2=_0x34920d['graveyardPosition'],_0x33433d=_0x34920d['splitPosition']['parent'];_0x34920d['_execute']();const _0x1e953f=_0x33433d['getAttribute']('vid_end'),_0x1430c4=_0x34920d['insertionPosition']['nodeAfter'];if(_0x4b71b2){const _0xa1c6a1=_0x1430c4['getAttribute']('vid_end'),_0x4b1b55=_0x33433d['getAttribute']('vid_end');_0x33433d['_setAttribute']('vid_end',_0xa1c6a1),_0x1430c4['_setAttribute']('vid_end',_0x4b1b55),this['_touched']['set'](_0x33433d['getAttribute']('vid_end'),{'userId':_0x2bf807}),this['_touched']['set'](_0x1430c4['getAttribute']('vid_start'),{'userId':_0x2bf807});}else{const _0x4268df=this['_revisionId']++,_0x354821=this['_revisionId']++;_0x33433d['_setAttribute']('vid_end',_0x4268df),_0x1430c4['_setAttribute']('vid_start',_0x354821),_0x1430c4['_setAttribute']('vid_end',_0x1e953f),this['_touched']['set'](_0x4268df,{'userId':_0x2bf807}),this['_touched']['set'](_0x354821,{'userId':_0x2bf807});}}['_handleMarkerOperation'](_0x29ab71){if(!_0x29ab71['affectsData'])return;const _0x57ad21=(_0x29ab71=this['_cloneOperation'](_0x29ab71,this['_diffRoots']))['oldRange']?_0x29ab71['oldRange']['root']:null,_0x4756e0=_0x29ab71['newRange']?_0x29ab71['newRange']['root']:null;_0x57ad21&&this['_markers']['delete'](_0x29ab71['name']),_0x4756e0&&this['_markers']['set'](_0x29ab71['name'],_0x29ab71['newRange']['clone']());const _0x576dd4=null===_0x29ab71['_authorId']?null:_0x29ab71['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2c2bf6=_0x29ab71['name'];if(!this['_touchedMarkers']['has'](_0x2c2bf6))return void this['_touchedMarkers']['set'](_0x2c2bf6,{'range':_0x29ab71['oldRange'],'userId':_0x576dd4});const _0x4f036d=this['_touchedMarkers']['get'](_0x2c2bf6),_0x4343d4=_0x4f036d['range'],_0x25ef69=_0x29ab71['newRange'];null==_0x4343d4&&null==_0x25ef69||_0x4343d4&&_0x25ef69&&_0x4343d4['isEqual'](_0x25ef69)?this['_touchedMarkers']['delete'](_0x29ab71['name']):_0x4f036d['userId']=_0x576dd4;}['_handleRootOperation'](_0x489c97,_0x31ffed){this['_diffRoots']['has'](_0x489c97['rootName'])?this['_diffRoots']['get'](_0x489c97['rootName'])['_isAttached']=_0x489c97['isAdd']:(this['_diffRoots']['set'](_0x489c97['rootName'],F(_0x489c97['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x489c97['rootName'],{}),_0x31ffed&&this['_idsRoots']['set'](_0x489c97['rootName'],F(_0x489c97['rootName'],!0x0)));const _0x2c0ad5=null===_0x489c97['_authorId']?null:_0x489c97['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1e74f0=this['_touchedRoots']['get'](_0x489c97['rootName']);_0x1e74f0&&_0x1e74f0['userId']===_0x2c0ad5?this['_touchedRoots']['delete'](_0x489c97['rootName']):this['_touchedRoots']['set'](_0x489c97['rootName'],{'userId':_0x2c0ad5,'isAttached':_0x489c97['isAdd']});}['_handleRootAttributeOperation'](_0x46086a){const _0x5a0ff8=this['_diffRootsAttributes']['get'](_0x46086a['root']['rootName']);null===_0x46086a['newValue']?delete _0x5a0ff8[_0x46086a['key']]:_0x5a0ff8[_0x46086a['key']]=_0x46086a['newValue'];}}function T(_0x1ffc37){const _0x2c3613=F(_0x1ffc37['rootName'],_0x1ffc37['isAttached']());for(const _0x170d1f of _0x1ffc37['getChildren']()){const _0x3567f1=_0x170d1f['_clone'](!0x0);_0x2c3613['_appendChild'](_0x3567f1);}return _0x2c3613;}function F(_0x594e01,_0x327f83=!0x0){const _0x202800=new mt();return _0x202800['rootName']=_0x594e01,_0x202800['_isAttached']=_0x327f83,_0x202800['isAttached']=()=>_0x202800['_isAttached'],_0x202800;}function B(_0x3840c4,_0xc65058,_0x134c3d){const _0x25a312='elementEnd'==_0x3840c4['type']?_0x134c3d['createPositionAt'](_0x3840c4['item'],'end'):_0x134c3d['createPositionBefore'](_0x3840c4['item']);return _0x134c3d['createPositionFromPath'](_0xc65058,_0x25a312['path'],_0x25a312['stickiness']);}function J(_0x56347c,_0xb18577,_0x6b8ac4){const _0x2b7180='elementStart'==_0x56347c['type']?_0x6b8ac4['createPositionAt'](_0x56347c['item'],0x0):_0x6b8ac4['createPositionAfter'](_0x56347c['item']);return _0x6b8ac4['createPositionFromPath'](_0xb18577,_0x2b7180['path'],_0x2b7180['stickiness']);}class hs extends _0x964c4d{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x41b82f,_0x5d4d6f){super(_0x41b82f),this['focusTracker']=new _0x1a473b(),this['keystrokes']=new _0x117533(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x5d4d6f),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),ts(this);}['render'](){super['render'](),_0xe85002({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x767467=_0x5e3c4e=>_0x5e3c4e['stopPropagation']();this['keystrokes']['set']('arrowright',_0x767467),this['keystrokes']['set']('arrowleft',_0x767467),this['keystrokes']['set']('arrowup',_0x767467),this['keystrokes']['set']('arrowdown',_0x767467);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x554651){this['revisionNameInputView']['fieldView']['element']['value']=_0x554651['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x252ef1){const _0x34c0bb=new nt(this['locale'],_0x70c291),_0x2e758f=_0x34c0bb['fieldView'];_0x2e758f['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x25cfbb=m(this['locale'],'Name\x20of\x20the\x20revision');return!_0x252ef1&&(_0x25cfbb+='\x20('+m(this['locale'],'optional')+')'),(_0x34c0bb['label']=_0x25cfbb,_0x2e758f['on']('input',()=>{this['revisionNameInputValue']=_0x2e758f['element']['value']['trim']();}),_0x34c0bb);}}class u extends _0x3f5b68{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x5ef5b2=this['editor'],_0x58e47d=_0x5ef5b2['plugins']['get']('RevisionTracker');_0x5ef5b2['ui']['componentFactory']['add']('revisionHistory',_0x2165fd=>{const _0x3b3912=_0x319079(_0x2165fd),_0x1cfe9c=_0x3b3912['panelView']['children'],_0x2112a3=new _0x59df3c(_0x2165fd),_0x1b93c4=new te(_0x2165fd),_0x5e4da4=new _0x3dffff(_0x2165fd),_0x5b3f38=new te(_0x2165fd),_0x393db5=new _0x3dffff(_0x2165fd);return _0x3b3912['bind']('isEnabled')['to'](_0x58e47d,'isReady',_0x58e47d,'isEnabled',_0x5ef5b2,'isReadOnly',(_0x94a123,_0x19aacf,_0x5b7867)=>_0x94a123&&_0x19aacf&&!_0x5b7867),_0x3b3912['buttonView']['set']({'icon':_0x594f54['history'],'label':m(_0x2165fd,'Revision\x20history'),'tooltip':!0x0}),_0x5e4da4['set']({'label':m(_0x2165fd,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x5e4da4['bind']('isEnabled')['to'](_0x58e47d,'isReady',_0x58e47d,'isEnabled',_0x5ef5b2,'isReadOnly',(_0x20fb19,_0x141232,_0x5e7b9a)=>_0x20fb19&&_0x141232&&!_0x5e7b9a),_0x5e4da4['on']('execute',()=>this['_showDialog']()),_0x393db5['set']({'label':m(_0x2165fd,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x393db5['bind']('isEnabled')['to'](_0x58e47d,'isReady',_0x5ef5b2,'isReadOnly',(_0x2273e8,_0x20ea70)=>_0x2273e8&&!_0x20ea70),_0x393db5['on']('execute',()=>{_0x5ef5b2['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x3b3912['isOpen']=!0x1,_0x5ef5b2['editing']['view']['focus']();}),_0x1b93c4['children']['add'](_0x5e4da4),_0x5b3f38['children']['add'](_0x393db5),_0x2112a3['role']='menu',_0x2112a3['items']['addMany']([_0x1b93c4,_0x5b3f38]),_0x1cfe9c['add'](_0x2112a3),_0x3b3912;}),_0x5ef5b2['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x42ee86=this['editor'],_0xe7085=_0x42ee86['locale'],_0x34a068=new _0x739e67(_0xe7085),_0x43b55f=new _0x32430c(_0xe7085);_0x34a068['buttonView']['set']({'icon':_0x594f54['history'],'label':m(_0xe7085,'Revision\x20history')});const _0x32c8fe=new _0x1a868e(_0xe7085,_0x34a068),_0x247c1c=new _0x32d0d3(_0xe7085);_0x247c1c['set']({'label':m(_0xe7085,'Save\x20current\x20revision')}),_0x247c1c['delegate']('execute')['to'](_0x34a068),_0x247c1c['on']('execute',()=>{this['_showDialog']();}),_0x32c8fe['children']['add'](_0x247c1c),_0x43b55f['items']['add'](_0x32c8fe);const _0x15616d=new _0x1a868e(_0xe7085,_0x34a068),_0x4e9e9a=new _0x32d0d3(_0xe7085);return _0x4e9e9a['set']({'label':m(_0xe7085,'Open\x20revision\x20history')}),_0x4e9e9a['delegate']('execute')['to'](_0x34a068),_0x4e9e9a['on']('execute',()=>{_0x42ee86['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x15616d['children']['add'](_0x4e9e9a),_0x43b55f['items']['add'](_0x15616d),_0x34a068['panelView']['children']['add'](_0x43b55f),_0x34a068;}['_showDialog'](){const _0x5c92c0=this['editor'],_0xffda6b=_0x5c92c0['locale'],_0x3f55e7=_0x5c92c0['plugins']['get']('Dialog'),_0x2a0ee4=_0x5c92c0['plugins']['get']('RevisionTracker');function _0x5c6aaa(_0x2131fe){_0x5c92c0['config']['get']('revisionHistory.requireRevisionName')&&''===_0x2131fe['revisionName']?_0x2131fe['revisionNameInputView']['errorText']=m(_0xffda6b,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x5c92c0['plugins']['get'](l)['saveRevision']({'name':_0x2131fe['revisionName']}),_0x3f55e7['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x5c6aaa(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x3f55e7['show']({'id':'revisionSave','title':m(_0xffda6b,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':m(_0x5c92c0['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x3f55e7['hide']()},{'label':m(_0x5c92c0['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1c8d07){_0x1c8d07['bind']('isEnabled')['to'](_0x2a0ee4,'isReady',_0x2a0ee4,'isEnabled',_0x5c92c0,'isReadOnly',(_0x2db73a,_0x3fc5eb,_0x461777)=>_0x2db73a&&_0x3fc5eb&&!_0x461777);},'onExecute':()=>_0x5c6aaa(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x3dcd21=this['editor'],_0x58bd3d=_0x3dcd21['locale'];this['_saveRevisionFormView']=new hs(_0x58bd3d,_0x3dcd21['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class X extends _0x964c4d{['changeId'];['_model'];constructor(_0x556f1a,_0x3adc49){super(_0x556f1a),this['_model']=_0x3adc49,this['changeId']=_0x3adc49['id'];const _0x1f8608=this['bindTemplate'],_0x5dc1eb=m(_0x556f1a,_0x3adc49['data']['isSuggestion']?'Suggested\x20by':'add'==_0x3adc49['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x3adc49['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x1f8608['to']('type',_0x264f82=>'ck-revision-change__'+_0x264f82)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x5dc1eb}]},{'text':'\x20'+_0x3adc49['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x2b00dc(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xf61e3){super(),this['id']=_0xf61e3['id']||_0x1c8288(),this['author']=_0xf61e3['author'],this['type']=_0xf61e3['type'],this['data']=_0xf61e3['data']||{},this['rootName']=_0xf61e3['rootName'],this['set']('createdAt',_0xf61e3['createdAt']);}['toJSON'](){return{'id':this['id'],'authorId':this['author']['id'],'type':this['type'],'data':this['data'],'createdAt':this['createdAt']};}}class f{['newRevisionId'];['oldRevisionId'];['changes'];constructor(_0x54a8d1,_0x4678a4){this['newRevisionId']=_0x54a8d1,this['oldRevisionId']=_0x4678a4,this['changes']=new _0x2ec462();}['_setChanges'](_0x2d9be1){for(const _0x257b0f of _0x2d9be1)this['changes']['add'](_0x257b0f);}}const Y={'c':_0x5d2d63,'a':_0x1d76c8,'e':_0x34669c,'r':_0x16dfe9,'u':_0x1f2667};class d extends _0x3f5b68{['repository'];['adapter'];['_activeViewTarget'];['_changeView'];['_changeIdToChange'];['_balloon'];static get['pluginName'](){return'RevisionViewer';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[_0x1a724d,_0x368c57,j];}constructor(_0x2a6367){super(_0x2a6367),this['repository']=this['editor']['plugins']['get']('RevisionsRepository'),this['set']('activeChange',null),this['set']('activeView',null),this['_activeViewTarget']=null,this['set']('diff',null),this['set']('isReady',!0x1),this['set']('isEnabled',!0x0),this['on']('change:isEnabled',(_0x430c88,_0x468bce,_0x2ada5f)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x38cbde=>{for(const _0x122d65 of this['editor']['editing']['view']['document']['roots'])_0x2ada5f?_0x38cbde['removeClass']('ck-editor__editable__overlay',_0x122d65):_0x38cbde['addClass']('ck-editor__editable__overlay',_0x122d65);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x237a09=>null!==_0x237a09),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x37f7e6,_0x415f29,_0x59f141)=>_0x37f7e6&&_0x59f141?_0x415f29['changes']['getIndex'](_0x59f141):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xc9f779,_0x39cd63)=>_0xc9f779?_0x39cd63['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x368c57);}['init'](){const _0x13fca3=this['editor'],_0x50bfa2=new yt(_0x13fca3,{'direction':'backward'}),_0x4125f5=new yt(_0x13fca3,{'direction':'forward'});(_0x13fca3['commands']['add']('showPreviousChange',_0x50bfa2),_0x13fca3['commands']['add']('showNextChange',_0x4125f5),_0x13fca3['commands']['add']('restoreRevision',new _t(_0x13fca3)),this['on']('change:numberOfChanges',()=>{_0x50bfa2['refresh'](),_0x4125f5['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x13fca3['enableReadOnlyMode']('revision-viewer'),_0x13fca3['plugins']['has']('WidgetToolbarRepository'))&&_0x13fca3['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x488cf3){await this['loadRevisionData'](_0x488cf3);const _0x3ec73c={};for(const _0x695ea2 in _0x488cf3['diffData']){if(_0x488cf3['diffData'][_0x695ea2]['attachChange']&&!_0x488cf3['diffData'][_0x695ea2]['attachChange']['isAttached'])continue;const _0xac4f69=this['_removeRevisionMarkers'](JSON['parse'](_0x488cf3['diffData'][_0x695ea2]['insertions'])),_0x2f417=this['editor']['editing']['view']['document'],_0x5225a5=new _0x1f5212(_0x2f417,_0xac4f69['map'](_0x40aa02=>this['_getViewObj'](_0x40aa02)));this['editor']['data']['processor']['useFillerType']('marked'),_0x3ec73c[_0x695ea2]=this['editor']['data']['processor']['toData'](_0x5225a5),this['editor']['data']['processor']['useFillerType']('default');}return _0x3ec73c;}async['getRevisionRootsAttributes'](_0x5220a5){await this['loadRevisionData'](_0x5220a5);const _0x192444={};for(const _0x1d136f in _0x5220a5['diffData'])_0x5220a5['diffData'][_0x1d136f]['attachChange']&&!_0x5220a5['diffData'][_0x1d136f]['attachChange']['isAttached']||(_0x192444[_0x1d136f]=_0x5220a5['diffData'][_0x1d136f]['attributesAfter']||{});return _0x192444;}['_removeRevisionMarkers'](_0xe54ea6){return(_0xe54ea6=_0xe54ea6['filter'](_0x2a89d4=>!_0x2a89d4['name']||'revision-start'!==_0x2a89d4['name']&&'revision-end'!==_0x2a89d4['name']))['forEach'](_0x593d73=>{'string'!=typeof _0x593d73&&(_0x593d73['children']=this['_removeRevisionMarkers'](_0x593d73['children']),_0x593d73['attributes']=_0x593d73['attributes']['filter'](_0x23e021=>!_0x23e021[0x0]['startsWith']('data-revision-')));}),_0xe54ea6;}async['compare'](_0x3e44d6,_0x18b805,_0x5ed8f8=!0x1){if(!this['isEnabled'])return;const _0x153ef7=this['diff'],_0x362dc6=this['repository'],_0x410668='string'==typeof _0x3e44d6?_0x362dc6['getRevision'](_0x3e44d6):_0x3e44d6,_0x363993='string'==typeof _0x18b805?_0x362dc6['getRevision'](_0x18b805):_0x18b805,_0x1ac9f2=_0x410668['id'],_0x16beca=_0x363993?_0x363993['id']:null;if(!_0x5ed8f8&&this['diff']&&this['diff']['newRevisionId']===_0x1ac9f2&&this['diff']['oldRevisionId']===_0x16beca)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x1ac9f2,_0x16beca);const _0x1bd3e1=this['_getRevisionsRange'](_0x410668,_0x363993,!0x0)['map'](_0x2a1727=>this['loadRevisionData'](_0x2a1727));return _0x1bd3e1['push'](new Promise(_0x11be3d=>{setTimeout(_0x11be3d,0x14);})),Promise['all'](_0x1bd3e1)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x1f59eb=this['_getDiff'](_0x1ac9f2,_0x16beca);for(const _0x5dca96 of _0x1f59eb['changes'])this['_changeIdToChange']['set'](_0x5dca96['id'],_0x5dca96);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x105e82=>{for(const _0x24cdb4 of this['editor']['model']['document']['getRootNames']())_0x105e82['detachRoot'](_0x24cdb4);for(const _0x267f95 of Object['keys'](_0x1f59eb['model'])){const _0x4bd93f=_0x105e82['addRoot'](_0x267f95);for(const _0x5e2c82 of Object['keys'](_0x1f59eb['attributes'][_0x267f95]))_0x105e82['setAttribute'](_0x5e2c82,_0x1f59eb['attributes'][_0x267f95][_0x5e2c82],_0x4bd93f);_0x105e82['insert'](_0x1f59eb['model'][_0x267f95],_0x4bd93f,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x1f59eb['changes'])),this['isReady']=!0x0;})['catch'](_0x4954af=>{console['error'](_0x4954af),this['_cleanUp'](),_0x153ef7&&(this['diff']=_0x153ef7),this['isReady']=!0x0;});}['addRevisionData'](_0x1cf513,_0x125b21){const _0x5233ac=this['repository']['createRevision'](_0x1cf513);return _0x5233ac['on']('_update',(_0x155997,_0x2b060d,_0x78f82c)=>_0x125b21(_0x2b060d,_0x78f82c,_0x5233ac)),this['repository']['addRevision'](_0x5233ac),_0x5233ac;}['loadRevisionData'](_0x492377){if(!_0x492377||_0x492377['diffData'])return Promise['resolve']();{const _0x142501=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x142501,'revisionId':_0x492377['id']})['then'](_0x10f179=>{_0x492377['_update']({'diffData':_0x10f179['diffData']},!0x0);});}}['_cleanUp'](){this['activeChange']=null,this['_cleanMarkers'](),this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=null,this['_changeIdToChange']['clear'](),this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x580df9=>{for(const _0x403bbe of this['editor']['model']['document']['getRootNames']())_0x580df9['detachRoot'](_0x403bbe);});}['_sortAndFilterDiffChanges'](_0x3decfc){const _0x1c8eb5=[],_0x106bb6=new Map();for(const _0x950227 of this['editor']['model']['document']['getRootNames']()){const _0x48a1a6=this['editor']['editing']['view']['getDomRoot'](_0x950227);if(!_0x48a1a6)continue;const _0x326a87=_0x48a1a6['getClientRects']()['item'](0x0);_0x326a87&&(_0x1c8eb5['push'](_0x950227),_0x106bb6['set'](_0x950227,_0x326a87));}return _0x1c8eb5['sort']((_0x61aa22,_0x3193c1)=>{const _0x368d9b=_0x106bb6['get'](_0x61aa22),_0x33a132=_0x106bb6['get'](_0x3193c1);return _0x368d9b['y']-_0x33a132['y']||_0x368d9b['x']-_0x33a132['x'];}),(_0x3decfc=_0x3decfc['filter'](_0x3f2c8f=>_0x1c8eb5['includes'](_0x3f2c8f['rootName'])))['sort']((_0x1602a4,_0x2d0bbe)=>_0x1c8eb5['indexOf'](_0x1602a4['rootName'])-_0x1c8eb5['indexOf'](_0x2d0bbe['rootName'])),_0x3decfc;}['_makeTape'](_0x240ed7){const _0x443ca3=Array['from'](_0x240ed7['markers'])['filter'](([_0x281009,_0x52e6e1])=>_0x281009['startsWith']('revision:')&&!_0x52e6e1['isCollapsed']),_0xcfce57=Array['from'](this['editor']['model']['createRangeIn'](_0x240ed7)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x443ca3['length'])for(const _0x398770 of _0xcfce57){const [_0x5af02d,_0x5e9489]=_0x443ca3[0x0],[,_0xe026e,_0x5b90a6]=_0x5af02d['split'](':');if(_0x5e9489['end']['isEqual'](_0x398770['nextPosition'])&&_0x443ca3['shift'](),(_0x398770['previousPosition']['isEqual'](_0x5e9489['start'])||_0x398770['previousPosition']['isAfter'](_0x5e9489['start']))&&('insertion'==_0xe026e?_0x398770['isAdded']={'userId':_0x5b90a6}:'deletion'==_0xe026e&&(_0x398770['isRemoved']={'userId':_0x5b90a6})),0x0==_0x443ca3['length'])break;}return _0xcfce57;}['_refreshStartEndIndex'](_0x15d6b8){const _0x2bb706=new Map();for(let _0x33e57d=0x0;_0x33e57d<_0x15d6b8['length'];_0x33e57d++)'text'===_0x15d6b8[_0x33e57d]['type']?(_0x15d6b8[_0x33e57d]['item']['startIndex']=_0x33e57d,_0x15d6b8[_0x33e57d]['item']['endIndex']=_0x33e57d):('elementStart'===_0x15d6b8[_0x33e57d]['type']?_0x15d6b8[_0x33e57d]['item']['startIndex']=_0x33e57d:'elementEnd'===_0x15d6b8[_0x33e57d]['type']&&(_0x15d6b8[_0x33e57d]['item']['endIndex']=_0x33e57d),_0x2bb706['set'](_0x15d6b8[_0x33e57d]['id'],_0x33e57d));for(const _0x475e0e of _0x2bb706['values']())'elementStart'===_0x15d6b8[_0x475e0e]['type']?_0x15d6b8[_0x475e0e]['item']['endIndex']=_0x2bb706['get'](_0x15d6b8[_0x475e0e]['pairId']):'elementEnd'===_0x15d6b8[_0x475e0e]['type']&&(_0x15d6b8[_0x475e0e]['item']['startIndex']=_0x2bb706['get'](_0x15d6b8[_0x475e0e]['pairId']));}['_processTape'](_0x3fd580){for(let _0x4055bc=0x0;_0x4055bc<_0x3fd580['length'];_0x4055bc++){if('elementStart'===_0x3fd580[_0x4055bc]['type'])_0x3fd580[_0x4055bc]['item']['startIndex']=_0x4055bc;else{if('elementEnd'===_0x3fd580[_0x4055bc]['type']){_0x3fd580[_0x4055bc]['item']['endIndex']=_0x4055bc;const _0x22cf56=_0x3fd580[_0x4055bc]['item']['startIndex'];_0x3fd580[_0x22cf56]['pairId']=_0x3fd580[_0x4055bc]['id'],_0x3fd580[_0x4055bc]['pairId']=_0x3fd580[_0x22cf56]['id'];}else _0x3fd580[_0x4055bc]['item']['startIndex']=_0x4055bc,_0x3fd580[_0x4055bc]['item']['endIndex']=_0x4055bc,_0x3fd580[_0x4055bc]['pairId']=null;}_0x3fd580[_0x4055bc]['markersStart']||(_0x3fd580[_0x4055bc]['markersStart']=[],_0x3fd580[_0x4055bc]['markersEnd']=[]);}}['_markInsertions'](_0xea4dfe,_0x523a0f){const _0xee434=_0xea4dfe['filter'](_0x3d02b8=>!_0x3d02b8['isAdded']);for(let _0x33db22=0x0;_0x33db22<_0x523a0f['length'];_0x33db22++)_0x523a0f[_0x33db22]['isAdded']&&(_0xee434[_0x33db22]['isAdded']=_0x523a0f[_0x33db22]['isAdded']);}['_makeModelFromViewString'](_0x2d363f){const _0x53becf=JSON['parse'](_0x2d363f),_0x5e06a0=this['editor']['editing']['view']['document'],_0x30c22c=new _0x1f5212(_0x5e06a0,_0x53becf['map'](_0x515b50=>this['_getViewObj'](_0x515b50)));return this['editor']['data']['toModel'](_0x30c22c);}['_getViewObj'](_0x57844d){const _0x4cf3da=this['editor']['editing']['view']['document'];if('string'==typeof _0x57844d)return new _0x200987(_0x4cf3da,_0x57844d);{const _0xeb3132=_0x57844d['children']['map'](_0x145d8d=>this['_getViewObj'](_0x145d8d));return new(Y[_0x57844d['type']]||_0x2654e2)(_0x4cf3da,_0x57844d['name'],_0x57844d['attributes'],_0xeb3132);}}['_getDiff'](_0x587be1,_0xc208fc=null){const _0x3bfd15=this['repository']['getRevision'](_0x587be1),_0x55b7f7=_0xc208fc?this['repository']['getRevision'](_0xc208fc):null,_0x4b46d1=this['_getRevisionsRange'](_0x3bfd15,_0x55b7f7),_0x20d046=_0x4b46d1[_0x4b46d1['length']-0x1],_0x495f71=new Map(),_0x261d24={'model':{},'attributes':{},'changes':[]},_0x523452=new Set(),_0x10a534=new Map();for(let _0x8e3e41=_0x4b46d1['length']-0x1;_0x8e3e41>=0x0;_0x8e3e41--){const _0x4064b4=_0x4b46d1[_0x8e3e41];for(const _0x507c81 of Object['keys'](_0x4064b4['diffData']))if(_0x4064b4['diffData'][_0x507c81]['attachChange']){const _0x518f3d=_0x4064b4['diffData'][_0x507c81]['attachChange'];_0x518f3d['isAttached']?(_0x523452['add'](_0x507c81),_0x10a534['has'](_0x507c81)&&_0x10a534['get'](_0x507c81)['userId']==_0x518f3d['userId']?_0x10a534['delete'](_0x507c81):_0x10a534['set'](_0x507c81,_0x518f3d)):_0x10a534['has'](_0x507c81)?(_0x523452['delete'](_0x507c81),_0x10a534['delete'](_0x507c81)):(_0x523452['add'](_0x507c81),_0x10a534['set'](_0x507c81,_0x518f3d));}else _0x523452['add'](_0x507c81);}for(const _0x3c9461 of _0x523452){const _0x5e1524=_0x10a534['has'](_0x3c9461)&&!_0x10a534['get'](_0x3c9461)['isAttached'];let _0x72a2a7=_0x5e1524?_0x4b46d1['length']-0x1:0x0;const _0x484d6c=_0x5e1524?-0x1:0x1;for(;_0x4b46d1[_0x72a2a7];){const _0x11a365=_0x4b46d1[_0x72a2a7];if(_0x11a365['diffData'][_0x3c9461]){const _0x24af16=_0x5e1524?_0x11a365['diffData'][_0x3c9461]['attributesBefore']:_0x11a365['diffData'][_0x3c9461]['attributesAfter'];_0x261d24['attributes'][_0x3c9461]=_0x24af16?_0x4fd0d8(_0x24af16):{};break;}_0x72a2a7+=_0x484d6c;}}for(const _0x8da7f8 of _0x4b46d1){_0x8da7f8['model']={};for(const _0x47ca44 of _0x8da7f8['authors'])_0x495f71['set'](_0x47ca44['id'],_0x47ca44);for(const _0x42cd6b of _0x523452){const _0x450aff=_0x8da7f8['diffData'][_0x42cd6b]?_0x8da7f8['diffData'][_0x42cd6b]['insertions']:'[]',_0x372ce1=_0x8da7f8['diffData'][_0x42cd6b]?_0x8da7f8['diffData'][_0x42cd6b]['deletions']:'[]';_0x8da7f8['model'][_0x42cd6b]={'insertions':this['_makeModelFromViewString'](_0x450aff),'deletions':this['_makeModelFromViewString'](_0x372ce1)};}}for(const _0x2f2f87 of _0x523452){let _0x359c00=null,_0x42ced5=0x0;const _0x554608=new Map(Array['from'](_0x3bfd15['model'][_0x2f2f87]['insertions']['markers'])['filter'](([_0x526f41])=>!_0x526f41['startsWith']('revision:')));let _0x341139=0x0;for(const _0xe33397 of _0x4b46d1){const _0x1f7e26=this['_makeTape'](_0xe33397['model'][_0x2f2f87]['insertions']);_0xe33397==_0x3bfd15?(_0x359c00=_0x1f7e26,_0x42ced5=_0x359c00['length'],_0x359c00['forEach'](_0x9d7220=>{_0x9d7220['id']=_0x341139++;}),this['_processTape'](_0x359c00)):this['_markInsertions'](_0x359c00,_0x1f7e26);const _0x21fb0f=_0x359c00['filter'](_0x1641dd=>!_0x1641dd['isAdded'])['map'](_0x20ee90=>_0x20ee90['id']);let _0x251b6d=0x0;const _0x5ca466=this['_makeTape'](_0xe33397['model'][_0x2f2f87]['deletions']);_0x5ca466['forEach'](_0x203480=>{_0x203480['isRemoved']?_0x203480['id']=_0x42ced5++:_0x203480['id']=_0x21fb0f[_0x251b6d++];}),this['_processTape'](_0x5ca466),this['_setDistance'](_0x359c00,'isAdded'),this['_setDistance'](_0x5ca466,'isRemoved'),_0xe33397==_0x3bfd15&&this['_markMarkers'](_0x359c00,_0x554608),_0x359c00=this['_joinTapes'](_0x359c00,_0x5ca466),this['_refreshStartEndIndex'](_0x359c00),this['_setDistance'](_0x359c00,'isRemoved');}_0x359c00=_0x359c00['filter'](_0x1dfda1=>!(_0x1dfda1['isAdded']&&_0x1dfda1['isRemoved']));const _0x183482=new Map(_0x20d046['model'][_0x2f2f87]['deletions']['markers']),_0x3dc8d9=new Set(_0x554608['keys']());for(const _0x5e1bfe of _0x183482['keys']())_0x3dc8d9['delete'](_0x5e1bfe);this['_markSuggestions'](_0x359c00,_0x3dc8d9),this['_fixObsoleteTags'](_0x359c00),_0x359c00=this['_removeMissingPairs'](_0x359c00),_0x359c00=this['_markMismatchedRemovedTags'](_0x359c00),_0x359c00=this['_removeUnsupportedChanges'](_0x359c00);const {root:_0x27e084,changes:_0x5509b7}=this['_makeModelFromTape'](_0x359c00,_0x495f71,_0x2f2f87);_0x261d24['model'][_0x2f2f87]=_0x27e084;const _0x2793ea=_0x10a534['get'](_0x2f2f87);if(_0x2793ea){const _0xaa9311=_0x495f71['get'](_0x2793ea['userId']),_0xda052b=new r({'author':_0xaa9311,'type':_0x2793ea['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2f2f87});_0x5509b7['unshift'](_0xda052b),_0x261d24['attributes'][_0x2f2f87]['revisionHistoryAttachChange']=_0xda052b['id'];}_0x261d24['changes']=_0x261d24['changes']['concat'](_0x5509b7);}return _0x261d24;}['_markMarkers'](_0x22868f,_0x34b202){for(let _0x195707=0x0;_0x195707<_0x22868f['length'];_0x195707++)for(const [_0x506a04,_0x29983d]of _0x34b202)_0x29983d['start']['isEqual'](_0x22868f[_0x195707]['previousPosition'])&&_0x22868f[_0x195707]['markersStart']['push'](_0x506a04),_0x29983d['end']['isEqual'](_0x22868f[_0x195707]['nextPosition'])&&_0x22868f[_0x195707]['markersEnd']['push'](_0x506a04);}['_joinTapes'](_0x5b0134,_0xb9b0d){let _0xd0e5b=[],_0x18aaf6=0x0,_0x57137f=0x0;for(;_0x18aaf6<_0x5b0134['length']||_0x57137f<_0xb9b0d['length'];){const _0x29d29c=_0x5b0134[_0x18aaf6]||{},_0x290b75=_0xb9b0d[_0x57137f]||{};if(_0x29d29c['id']==_0x290b75['id'])_0x18aaf6++,_0x57137f++,_0xd0e5b['push'](_0x29d29c);else{if(_0x290b75['isRemoved']&&_0x29d29c['isAdded']){const {commonTape:_0x2cf047,iEnd:_0x286fbb,jEnd:_0xf5773c}=this['_threeWayMerge'](_0x5b0134,_0x18aaf6,_0xb9b0d,_0x57137f);_0xd0e5b=_0xd0e5b['concat'](_0x2cf047),_0x18aaf6=_0x286fbb,_0x57137f=_0xf5773c;}else _0x290b75['isRemoved']?(_0x57137f++,_0xd0e5b['push'](_0x290b75)):(_0x18aaf6++,_0xd0e5b['push'](_0x29d29c));}}return _0xd0e5b;}['_markSuggestions'](_0x58b8db,_0x1eff4b){const _0x5f378d=[];for(let _0x39a65b=0x0;_0x39a65b<_0x58b8db['length'];_0x39a65b++){for(let _0x1027ec=0x0;_0x1027ec<_0x58b8db[_0x39a65b]['markersStart']['length'];_0x1027ec++){const _0x509cb1=_0x58b8db[_0x39a65b]['markersStart'][_0x1027ec];if(!_0x1eff4b['has'](_0x509cb1))continue;const {group:_0x3cab91,type:_0x5b5d64,authorId:_0x4b62f2}=_0x162c17(_0x509cb1);'revision-suggestion'!=_0x3cab91||'insertion'!=_0x5b5d64&&'deletion'!=_0x5b5d64||(_0x5f378d['unshift']({'type':_0x5b5d64,'name':_0x509cb1,'userId':_0x4b62f2}),_0x58b8db[_0x39a65b]['markersStart']['splice'](_0x1027ec,0x1),_0x1027ec--);}_0x9ec45(_0x58b8db[_0x39a65b]);for(let _0x1351d5=0x0;_0x1351d5<_0x58b8db[_0x39a65b]['markersEnd']['length'];_0x1351d5++){const _0x36d091=_0x58b8db[_0x39a65b]['markersEnd'][_0x1351d5];if(!_0x1eff4b['has'](_0x36d091))continue;const {group:_0x21f49f,type:_0x2ed6cf}=_0x162c17(_0x36d091);if('revision-suggestion'!=_0x21f49f||'insertion'!=_0x2ed6cf&&'deletion'!=_0x2ed6cf)continue;_0x58b8db[_0x39a65b]['markersEnd']['splice'](_0x1351d5,0x1),_0x1351d5--;const _0x2c031c=_0x5f378d['findIndex'](_0x363d73=>_0x363d73['name']==_0x36d091);_0x2c031c>-0x1&&_0x5f378d['splice'](_0x2c031c,0x1);}}function _0x162c17(_0x4d3d7b){const _0x2ef036=_0x4d3d7b['split'](':');return{'group':_0x2ef036[0x0],'type':_0x2ef036[0x1],'subType':_0x2ef036['length']>=0x5?_0x2ef036[0x2]:null,'id':_0x2ef036['length']<0x5?_0x2ef036[0x2]:_0x2ef036[0x3],'authorId':_0x2ef036['length']<0x5?_0x2ef036[0x3]:_0x2ef036[0x4],'markerCount':0x6==_0x2ef036['length']?_0x2ef036[0x5]:null};}function _0x9ec45(_0x177c01){for(let _0x8c21ca=0x0;_0x8c21ca<_0x5f378d['length'];_0x8c21ca++){if(_0x177c01['isAdded']&&'insertion'==_0x5f378d[_0x8c21ca]['type'])return _0x177c01['isAddSuggestion']=_0x5f378d[_0x8c21ca],void delete _0x177c01['isAdded'];if(!_0x177c01['isAdded']&&!_0x177c01['isRemoved']&&'deletion'==_0x5f378d[_0x8c21ca]['type'])return void(_0x177c01['isRemoveSuggestion']=_0x5f378d[_0x8c21ca]);}}}['_setDistance'](_0x47e5d6,_0x32396d){let _0x34c12b=0x0,_0x25e551=!0x1;const _0x3a411d=new Map();for(const _0xf19b7e of _0x47e5d6)_0xf19b7e[_0x32396d]?_0x25e551&&(_0x34c12b++,_0x25e551=!0x1):(_0x34c12b++,_0x25e551=!0x0),_0x3a411d['set'](_0xf19b7e['id'],_0x34c12b);for(let _0x5db79e=0x0;_0x5db79e<_0x47e5d6['length'];_0x5db79e++){if('isRemoved'==_0x32396d&&_0x47e5d6[_0x5db79e]['isAdded']||'isAdded'==_0x32396d&&_0x47e5d6[_0x5db79e]['isRemoved'])continue;if('text'==_0x47e5d6[_0x5db79e]['type']){_0x47e5d6[_0x5db79e]['distance']=0x0;continue;}const _0x31fcfb=_0x3a411d['get'](_0x47e5d6[_0x5db79e]['pairId']),_0x5b05d6=_0x3a411d['get'](_0x47e5d6[_0x5db79e]['id']);_0x47e5d6[_0x5db79e]['distance']=_0x31fcfb-_0x5b05d6;}}['_getRevisionsRange'](_0x504db6,_0x3d9548,_0x17fb2a=!0x1){const _0x484cf4=[];let _0x4506db=this['repository']['getIndex'](_0x504db6),_0x44d5d8=this['repository']['getIndex'](_0x3d9548);for(-0x1==_0x44d5d8&&(_0x44d5d8=this['repository']['_revisions']['length'],_0x17fb2a=!0x1);_0x4506db<_0x44d5d8;)_0x484cf4['push'](this['repository']['getRevision'](_0x4506db)),_0x4506db++;return _0x17fb2a&&_0x484cf4['push'](this['repository']['getRevision'](_0x4506db)),_0x484cf4;}['_threeWayMerge'](_0x4a65e5,_0x5a2921,_0x5eecfd,_0x519045){const _0x5858f6=this['editor']['model']['schema'];let _0x198f65=_0x5a2921;for(;_0x4a65e5[_0x198f65]&&_0x4a65e5[_0x198f65]['isAdded'];)_0x198f65++;let _0x1e28d4=_0x519045;for(;_0x5eecfd[_0x1e28d4]&&_0x5eecfd[_0x1e28d4]['isRemoved'];)_0x1e28d4++;_0x2eb41f(_0x4a65e5,_0x5a2921,_0x198f65),_0x2eb41f(_0x5eecfd,_0x519045,_0x1e28d4);const _0x3a9297=_0x5eecfd['slice'](_0x519045,_0x1e28d4)['concat'](_0x4a65e5['slice'](_0x5a2921,_0x198f65));return _0x3a9297['sort']((_0x1c762f,_0x33cf30)=>_0x1c762f['side']!=_0x33cf30['side']?_0x1c762f['side']-_0x33cf30['side']:_0x1c762f['level']!=_0x33cf30['level']?_0x1c762f['level']-_0x33cf30['level']:_0x1c762f['distance']!=_0x33cf30['distance']?_0x33cf30['distance']-_0x1c762f['distance']:!!_0x1c762f['isAdded']!=!!_0x33cf30['isAdded']?-0x1==_0x1c762f['side']||0x0==_0x1c762f['side']?_0x1c762f['isAdded']?-0x1:0x1:_0x1c762f['isAdded']?0x1:-0x1:_0x1c762f['index']-_0x33cf30['index']),{'commonTape':_0x3a9297,'iEnd':_0x198f65,'jEnd':_0x1e28d4};function _0x2eb41f(_0x43bff9,_0x4134c1,_0x18d579){let _0x5794d9=-0x1,_0x1a8d33=Number['POSITIVE_INFINITY'],_0x4e67cd=!0x0;for(let _0x14c09d=_0x4134c1;_0x14c09d<_0x18d579;_0x14c09d++)if(_0x5858f6['isInline'](_0x43bff9[_0x14c09d]['item'])||(_0x4e67cd=!0x1),_0x43bff9[_0x14c09d]['item']['startIndex']<_0x4134c1&&(_0x5794d9=_0x14c09d),_0x43bff9[_0x14c09d]['item']['endIndex']>=_0x18d579){_0x1a8d33=_0x14c09d;break;}_0x4e67cd&&(_0x5794d9=_0x18d579-0x1);for(let _0x3e4e03=_0x4134c1;_0x3e4e03<_0x18d579;_0x3e4e03++)_0x43bff9[_0x3e4e03]['side']=_0x3e4e03<=_0x5794d9?-0x1:_0x3e4e03<_0x1a8d33?0x0:0x1,_0x43bff9[_0x3e4e03]['index']=_0x3e4e03;let _0x1e99d1=0x0;for(let _0x5ae595=_0x4134c1;_0x5ae595<=_0x5794d9;_0x5ae595++)0x0==_0x43bff9[_0x5ae595]['distance']?_0x43bff9[_0x5ae595]['level']=_0x1e99d1:(_0x1e99d1++,_0x43bff9[_0x5ae595]['level']=_0x1e99d1,_0x1e99d1++);for(let _0x458bb0=_0x4134c1;_0x458bb0<_0x18d579;_0x458bb0++)0x0==_0x43bff9[_0x458bb0]['side']&&(_0x43bff9[_0x458bb0]['level']=_0x1e99d1);_0x1e99d1=0x0;for(let _0x215502=_0x18d579-0x1;_0x215502>=_0x1a8d33;_0x215502--)0x0==_0x43bff9[_0x215502]['distance']?_0x43bff9[_0x215502]['level']=_0x1e99d1:(_0x1e99d1--,_0x43bff9[_0x215502]['level']=_0x1e99d1,_0x1e99d1--);}}['_fixObsoleteTags'](_0x13db9b){const _0x148dc0=new Map(),_0x50937a=this['editor']['model']['schema'];for(let _0x52c502=0x1;_0x52c502<_0x13db9b['length'];_0x52c502++){let _0x1474c3,_0x308d93,_0x3a2a7f;const _0x3856c5=_0x13db9b[_0x52c502],_0x4fde78=_0x13db9b[_0x52c502-0x1];if('text'==_0x3856c5['type'])continue;if(_0x3856c5['type']!=_0x4fde78['type'])continue;if(!_0x50937a['isBlock'](_0x4fde78['item'])||_0x50937a['isLimit'](_0x4fde78['item']))continue;if(!_0x50937a['isBlock'](_0x3856c5['item'])||_0x50937a['isLimit'](_0x3856c5['item']))continue;if((_0x13db9b[_0x52c502]['isAdded']||_0x13db9b[_0x52c502]['isAddSuggestion'])&&_0x13db9b[_0x52c502-0x1]['isRemoved'])_0x1474c3=_0x13db9b[_0x52c502],_0x308d93=_0x13db9b[_0x52c502-0x1],_0x3a2a7f=_0x52c502-0x1;else{if(!_0x13db9b[_0x52c502]['isRemoved']||!_0x13db9b[_0x52c502-0x1]['isAdded']&&!_0x13db9b[_0x52c502-0x1]['isAddSuggestion'])continue;_0x1474c3=_0x13db9b[_0x52c502-0x1],_0x308d93=_0x13db9b[_0x52c502],_0x3a2a7f=_0x52c502;}const _0x3eed58=_0x1474c3['level']==_0x308d93['level'],_0x1f8e8d=Math['abs'](_0x1474c3['level'])<Math['abs'](_0x308d93['level'])&&0x0==_0x308d93['distance'];(_0x3eed58||_0x1f8e8d)&&(_0x148dc0['set'](_0x308d93['id'],_0x1474c3['id']),_0x13db9b['splice'](_0x3a2a7f,0x1),_0x52c502--,_0x1474c3['isAdded']=!0x1);}for(let _0x55c8cb=0x0;_0x55c8cb<_0x13db9b['length'];_0x55c8cb++)_0x148dc0['has'](_0x13db9b[_0x55c8cb]['pairId'])&&(_0x13db9b[_0x55c8cb]['pairId']=_0x148dc0['get'](_0x13db9b[_0x55c8cb]['pairId']));}['_removeMissingPairs'](_0x4cdc1d){const _0x2d3614=new Set(_0x4cdc1d['map'](_0x38c4c3=>_0x38c4c3['id']));for(let _0x36286a=0x0;_0x36286a<_0x4cdc1d['length'];_0x36286a++)_0x2d3614['has'](_0x4cdc1d[_0x36286a]['pairId'])||0x0==_0x4cdc1d[_0x36286a]['distance']||(_0x4cdc1d[_0x36286a]['isIncorrect']=!0x0);return _0x4cdc1d['filter'](_0x66f5ec=>!_0x66f5ec['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3b1c4d){const _0x5dfe9b=new Set();for(let _0x50fb58=0x0;_0x50fb58<_0x3b1c4d['length'];_0x50fb58++){if(_0x5dfe9b['has'](_0x3b1c4d[_0x50fb58]['id'])&&_0x3b1c4d[_0x50fb58]['isRemoved']&&(_0x3b1c4d[_0x50fb58]['isIncorrect']=!0x0),_0x3b1c4d[_0x50fb58]['isIncorrect'])continue;if(0x0==_0x3b1c4d[_0x50fb58]['distance'])continue;if('elementStart'!=_0x3b1c4d[_0x50fb58]['type'])continue;if(null==_0x3b1c4d[_0x50fb58]['pairId'])continue;let _0x4e962c=_0x50fb58+0x1,_0x13a6b2=0x0;for(;_0x3b1c4d[_0x4e962c]['id']!=_0x3b1c4d[_0x50fb58]['pairId'];)'elementStart'==_0x3b1c4d[_0x4e962c]['type']?_0x13a6b2++:'elementEnd'==_0x3b1c4d[_0x4e962c]['type']&&_0x13a6b2--,_0x4e962c++;if(0x0!=_0x13a6b2){if(_0x3b1c4d[_0x50fb58]['isRemoved'])_0x3b1c4d[_0x50fb58]['isIncorrect']=!0x0;else{for(;_0x4e962c!=_0x50fb58;)_0x3b1c4d[_0x4e962c]['isRemoved']&&0x0!=_0x3b1c4d[_0x4e962c]['distance']&&(_0x3b1c4d[_0x4e962c]['isIncorrect']=!0x0,_0x5dfe9b['add'](_0x3b1c4d[_0x4e962c]['pairId'])),_0x4e962c--;}}}return _0x3b1c4d['filter'](_0x3f7b69=>!_0x3f7b69['isIncorrect']);}['_removeUnsupportedChanges'](_0x5645ed){const _0x44008d=this['editor']['model']['schema'];for(let _0x22fdb5=0x0;_0x22fdb5<_0x5645ed['length'];_0x22fdb5++){if(!(_0x5645ed[_0x22fdb5]['isAdded']||_0x5645ed[_0x22fdb5]['isAddSuggestion']||_0x5645ed[_0x22fdb5]['isRemoved']||_0x5645ed[_0x22fdb5]['isRemoveSuggestion']))continue;if(0x0==_0x5645ed[_0x22fdb5]['distance'])continue;const _0x2cf374=_0x5645ed[_0x22fdb5]['item'];_0x44008d['isBlock'](_0x2cf374)||_0x44008d['isLimit'](_0x2cf374)||(_0x5645ed[_0x22fdb5]['isAdded']&&delete _0x5645ed[_0x22fdb5]['isAdded'],_0x5645ed[_0x22fdb5]['isAddSuggestion']&&delete _0x5645ed[_0x22fdb5]['isAddSuggestion'],_0x5645ed[_0x22fdb5]['isRemoveSuggestion']&&delete _0x5645ed[_0x22fdb5]['isRemoveSuggestion'],_0x5645ed[_0x22fdb5]['isRemoved']&&(_0x5645ed[_0x22fdb5]['isIncorrect']=!0x0));}return _0x5645ed['filter'](_0x2d4e25=>!_0x2d4e25['isIncorrect']);}['_makeModelFromTape'](_0x22085a,_0x354414,_0x77f5ad){const _0x3ce62c=new mt(),_0x371625=[],_0x409cdf=new Map(),_0x4dc9b3=this['editor']['model'],_0x4e95e6=_0x4dc9b3['schema'],_0x3b420d=[_0x3ce62c],_0x367c31={},_0x114fe1={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x737f64=null;const _0x46fc62=[0x0];for(let _0xe9001d=0x0;_0xe9001d<_0x22085a['length'];_0xe9001d++)if('elementStart'===_0x22085a[_0xe9001d]['type']){_0x22085a[_0xe9001d]['previousPosition']=_0x4dc9b3['createPositionFromPath'](_0x3ce62c,_0x46fc62);const _0x1791f8=new ft(_0x22085a[_0xe9001d]['item']['name'],_0x22085a[_0xe9001d]['item']['getAttributes']());_0x3b420d[0x0]['_appendChild'](_0x1791f8),_0x46fc62['push'](0x0),_0x3b420d['unshift'](_0x1791f8),_0x22085a[_0xe9001d]['nextPosition']=_0x4dc9b3['createPositionFromPath'](_0x3ce62c,_0x46fc62);}else'elementEnd'===_0x22085a[_0xe9001d]['type']?(_0x3b420d['shift'](),_0x22085a[_0xe9001d]['previousPosition']=_0x4dc9b3['createPositionFromPath'](_0x3ce62c,_0x46fc62),_0x46fc62['pop'](),_0x46fc62[_0x46fc62['length']-0x1]++,_0x22085a[_0xe9001d]['nextPosition']=_0x4dc9b3['createPositionFromPath'](_0x3ce62c,_0x46fc62)):(_0x22085a[_0xe9001d]['previousPosition']=_0x4dc9b3['createPositionFromPath'](_0x3ce62c,_0x46fc62),_0x737f64?_0x737f64['_data']+=_0x22085a[_0xe9001d]['item']['data']:_0x737f64=new wt(_0x22085a[_0xe9001d]['item']['data'],_0x22085a[_0xe9001d]['item']['getAttributes']()),_0x22085a[_0xe9001d+0x1]&&'text'===_0x22085a[_0xe9001d+0x1]['type']&&_0x130d4d(_0x737f64,_0x22085a[_0xe9001d+0x1]['item'])||(_0x3b420d[0x0]['_appendChild'](_0x737f64),_0x737f64=null),_0x46fc62[_0x46fc62['length']-0x1]+=_0x22085a[_0xe9001d]['item']['offsetSize'],_0x22085a[_0xe9001d]['nextPosition']=_0x4dc9b3['createPositionFromPath'](_0x3ce62c,_0x46fc62));for(let _0x308612=0x0;_0x308612<_0x22085a['length'];_0x308612++){const _0x5902be=_0x22085a[_0x308612]['previousPosition'],_0x5a2159=_0x22085a[_0x308612]['nextPosition'];for(const _0xb4f4a3 of _0x22085a[_0x308612]['markersStart'])_0x409cdf['set'](_0xb4f4a3,{'start':_0x5902be,'end':null});_0x282b86('isRemoveSuggestion',_0x308612,_0x5902be,_0x5a2159),_0x282b86('isAddSuggestion',_0x308612,_0x5902be,_0x5a2159),_0x282b86('isRemoved',_0x308612,_0x5902be,_0x5a2159),_0x282b86('isAdded',_0x308612,_0x5902be,_0x5a2159);for(const _0x18fa9d of _0x22085a[_0x308612]['markersEnd']){_0x409cdf['get'](_0x18fa9d)['end']=_0x5a2159;}}for(const [_0x39dbed,_0x4599f0]of _0x409cdf){const _0x5e8148=this['editor']['model']['createRange'](_0x4599f0['start'],_0x4599f0['end']);_0x3ce62c['markers']['set'](_0x39dbed,_0x5e8148);}return _0x371625['sort']((_0x19f6f0,_0x32b76a)=>{const _0x22949c=_0x3ce62c['markers']['get']('revision:'+_0x19f6f0['id']),_0x35301a=_0x3ce62c['markers']['get']('revision:'+_0x32b76a['id']);return _0x22949c['start']['isBefore'](_0x35301a['start'])?-0x1:_0x22949c['start']['isAfter'](_0x35301a['start'])?0x1:_0x22949c['end']['isBefore'](_0x35301a['end'])?-0x1:_0x22949c['end']['isAfter'](_0x35301a['end'])?0x1:'add'===_0x19f6f0['type']?-0x1:0x1;}),{'root':_0x3ce62c,'changes':_0x371625};function _0x282b86(_0x23ece2,_0x5d572b,_0x3d9cdb,_0x23a448){const _0x72df45=!!_0x22085a[_0x5d572b][_0x23ece2],_0x4fcff7=_0x72df45?_0x22085a[_0x5d572b][_0x23ece2]['userId']:null,_0x3f6638=_0x5d572b===_0x22085a['length']-0x1,_0x2e907c=_0x114fe1[_0x23ece2][0x0],_0x310bb6=_0x4e95e6['isObject'](_0x22085a[_0x5d572b]['item']);!_0x367c31[_0x23ece2]&&_0x72df45?_0x367c31[_0x23ece2]={'start':_0x3d9cdb,'tapeItem':_0x22085a[_0x5d572b],'userId':_0x4fcff7,'type':_0x23ece2}:_0x367c31[_0x23ece2]&&!_0x72df45?(_0x367c31[_0x23ece2]['end']=_0x3d9cdb,_0x5e72da(_0x367c31[_0x23ece2]),_0x367c31[_0x23ece2]=null):_0x367c31[_0x23ece2]&&_0x72df45&&_0x367c31[_0x23ece2]['userId']!==_0x4fcff7&&(_0x367c31[_0x23ece2]['end']=_0x3d9cdb,_0x2e907c&&_0x2e907c['userId']===_0x367c31[_0x23ece2]['userId']||_0x5e72da(_0x367c31[_0x23ece2]),_0x367c31[_0x23ece2]={'start':_0x3d9cdb,'tapeItem':_0x22085a[_0x5d572b],'userId':_0x4fcff7,'type':_0x23ece2}),_0x367c31[_0x23ece2]&&_0x310bb6&&('elementStart'!==_0x22085a[_0x5d572b]['type']||_0x2e907c&&_0x2e907c['userId']===_0x4fcff7||_0x114fe1[_0x23ece2]['unshift']({'userId':_0x4fcff7,'object':_0x22085a[_0x5d572b]['item'],'change':_0x367c31[_0x23ece2]}),'elementEnd'===_0x22085a[_0x5d572b]['type']&&_0x2e907c&&_0x2e907c['object']===_0x22085a[_0x5d572b]['item']&&(_0x114fe1[_0x23ece2]['shift'](),_0x367c31[_0x23ece2]=_0x2e907c['change'])),_0x367c31[_0x23ece2]&&_0x3f6638&&(_0x367c31[_0x23ece2]['end']=_0x23a448,_0x5e72da(_0x367c31[_0x23ece2]),_0x367c31[_0x23ece2]=null);}function _0x5e72da({start:_0x18038b,end:_0x53ce3c,tapeItem:_0x5b8ec3,userId:_0xb2cd8,type:_0x557523}){const _0x3d7d5b=_0x5b8ec3['item'],_0x2f685e=_0x4dc9b3['schema']['isBlock'](_0x3d7d5b)&&!_0x4dc9b3['schema']['isLimit'](_0x3d7d5b),_0x234b80=_0x18038b['nodeAfter']==_0x53ce3c['parent']&&_0x53ce3c['isAtStart'];if(_0x2f685e&&_0x234b80)return;const _0x2546b5=_0x4dc9b3['createRange'](_0x18038b,_0x53ce3c),_0x12c379=_0x354414['get'](_0xb2cd8),_0x400da3=new r({'author':_0x12c379,'type':'isAdded'==_0x557523||'isAddSuggestion'==_0x557523?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x557523||'isRemoveSuggestion'==_0x557523},'createdAt':new Date(),'rootName':_0x77f5ad});_0x371625['push'](_0x400da3),_0x3ce62c['markers']['set']('revision:'+_0x400da3['id'],_0x2546b5);}function _0x130d4d(_0xa2b253,_0x2c55e4){const _0x412583=_0xa2b253['getAttributes'](),_0x4481c5=_0x2c55e4['getAttributes']();for(const _0x466dbc of _0x412583){if(_0x466dbc[0x1]!==_0x2c55e4['getAttribute'](_0x466dbc[0x0]))return!0x1;_0x4481c5['next']();}return _0x4481c5['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0xe8344a=>{const _0x121465=_0xe8344a['markerName']['split'](':')[0x1],_0x1802f4=this['_getChangeFromId'](_0x121465);if(!_0x1802f4)return null;const _0x368509='add'==_0x1802f4['type']?'insertion':'deletion',_0x54f6fa=['ck-suggestion-marker','ck-suggestion-marker-'+_0x368509];return _0x1802f4['data']['isSuggestion']&&_0x54f6fa['push']('ck-suggestion-marker-'+_0x368509+'-new'),this['activeChange']==_0x1802f4&&_0x54f6fa['push']('ck-suggestion-marker--active'),{'classes':_0x54f6fa,'attributes':{'data-change-id':_0x121465}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x1f7568=>{_0x1f7568['on']('element:pre',(_0x64349a,_0x5ed308,_0x56d33c)=>{const _0x5032c9=_0x5ed308['viewItem']['getChild'](0x0);if(!_0x5032c9||!_0x5032c9['is']('element','code'))return;if(!_0x56d33c['consumable']['consume'](_0x5032c9,{'attributes':['vid_start','vid_end']}))return;const _0x262049=_0x5ed308['modelRange']['start']['nodeAfter'];_0x56d33c['writer']['setAttribute']('vid_start',_0x5032c9['getAttribute']('vid_start'),_0x262049),_0x56d33c['writer']['setAttribute']('vid_end',_0x5032c9['getAttribute']('vid_end'),_0x262049);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x27c9ba=>{_0x27c9ba['on']('element',(_0x17ac1a,_0x31cd96,_0x3305de)=>{if(!_0x3305de['consumable']['consume'](_0x31cd96['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x31cd96['modelRange']['isCollapsed'])return;const _0xa728f5=_0x31cd96['modelRange']['start']['nodeAfter'];_0xa728f5['hasAttribute']('vid_start')||_0xa728f5['hasAttribute']('vid')||(_0x3305de['writer']['setAttribute']('vid_start',_0x31cd96['viewItem']['getAttribute']('vid_start'),_0xa728f5),_0x3305de['writer']['setAttribute']('vid_end',_0x31cd96['viewItem']['getAttribute']('vid_end'),_0xa728f5));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0xb2bd55=>_0xb2bd55['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x1b4d0f,[,_0x420699])=>{['vid_start','vid_end','vid']['includes'](_0x420699)&&(_0x1b4d0f['return']=!0x0,_0x1b4d0f['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x3cddc7=>{_0x3cddc7['on']('attribute:vid',(_0x3cccfe,_0x5310a7,_0x91ab4d)=>{if('\x20'!=_0x5310a7['item']['data']||_0x5310a7['item']['parent']['maxOffset']>0x1)return;if(!_0x91ab4d['consumable']['consume'](_0x5310a7['item'],_0x3cccfe['name']))return;const _0x45ec26=_0x91ab4d['writer'],_0x586b5a=_0x91ab4d['mapper']['toViewRange'](_0x5310a7['range']);_0x45ec26['wrap'](_0x586b5a,_0x45ec26['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x142ee2){const _0x436031=_0x142ee2['plugins']['get']('RevisionViewer');return(_0x1daa02,_0x1a1139,_0x2396c5)=>{const _0x3585a5=_0x1a1139['markerName']['split'](':')[0x1],_0x266a32=_0x436031['_getChangeFromId'](_0x3585a5);if(!_0x266a32)return null;const _0x58025b='add'==_0x266a32['type']?'split':'merge';if(!_0x2396c5['consumable']['test'](_0x1a1139['markerRange'],_0x1daa02['name']))return;const _0x470e34=_0x1a1139['markerRange']['getWalker'](),_0x3a711d=_0x1a1139['markerRange']['start'],_0x2210a4=_0x142ee2['model']['schema'];let _0x13c8a9=null,_0x3bc09d=null,_0x15baac=!0x1,_0x45d739=!0x1;for(const _0x3e24da of _0x470e34){const _0x53a3b7=_0x3e24da['item'];_0x15baac=_0x15baac||_0x2210a4['isContent'](_0x53a3b7);const _0x46fd5b=_0x2396c5['mapper']['toViewElement'](_0x53a3b7);if(_0x46fd5b&&_0x46fd5b['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x3e24da['type']&&(_0x2210a4['isBlock'](_0x53a3b7)&&!_0x2210a4['isLimit'](_0x53a3b7)&&(_0x53a3b7['nextSibling']||_0x3a711d['isAtEnd']?_0x13c8a9&&_0x13c8a9['parent']==_0x53a3b7||(_0x13c8a9=_0x53a3b7,_0x335fbc(_0x3e24da['previousPosition']),_0x45d739=!0x0):_0x3bc09d=_0x3bc09d||_0x3e24da['previousPosition']));}function _0x335fbc(_0x175acf){const _0x252db5=_0x2396c5['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x58025b}),_0x554e67=_0x2396c5['mapper']['toViewPosition'](_0x175acf);_0x266a32['data']['isSuggestion']&&_0x2396c5['writer']['addClass']('ck-suggestion-marker-'+_0x58025b+'-new',_0x252db5),_0x436031['activeChange']==_0x266a32&&_0x2396c5['writer']['addClass']('ck-suggestion-marker--active',_0x252db5),_0x2396c5['writer']['insert'](_0x554e67,_0x252db5),_0x2396c5['mapper']['bindElementToMarker'](_0x252db5,_0x1a1139['markerName']);}_0x15baac||_0x45d739||!_0x3bc09d||_0x335fbc(_0x3bc09d);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x3d172a,_0x2264e0,_0x75a754)=>{const _0x1ed2fa=_0x75a754['mapper']['markerNameToElements'](_0x2264e0['markerName']);if(_0x1ed2fa){for(const _0x1ae1d8 of _0x1ed2fa)(_0x1ae1d8['hasClass']('ck-suggestion-marker-split')||_0x1ae1d8['hasClass']('ck-suggestion-marker-merge'))&&(_0x75a754['mapper']['unbindElementFromMarkerName'](_0x1ae1d8,_0x2264e0['markerName']),_0x75a754['writer']['remove'](_0x1ae1d8));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x29987f,_0x29b202,_0x42f404)=>{const _0x13d782=_0x29b202['markerName']['split'](':')[0x1],_0x3ba312=this['_getChangeFromId'](_0x13d782);if(!_0x3ba312)return null;const _0x50b382='add'==_0x3ba312['type']?'split':'merge';if(_0x42f404['consumable']['test'](_0x29b202['markerRange'],_0x29987f['name']))for(const _0xec9d5e of _0x29b202['markerRange']['getItems']()){if(!_0xec9d5e['is']('element','softBreak'))continue;const _0x51b71f=_0x42f404['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x50b382}),_0x4ba065=_0x42f404['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0xec9d5e));_0x3ba312['data']['isSuggestion']&&_0x42f404['writer']['addClass']('ck-suggestion-marker-'+_0x50b382+'-new',_0x51b71f),this['activeChange']==_0x3ba312&&_0x42f404['writer']['addClass']('ck-suggestion-marker--active',_0x51b71f),_0x42f404['writer']['insert'](_0x4ba065,_0x51b71f),_0x42f404['mapper']['bindElementToMarker'](_0x51b71f,_0x29b202['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x559150=>{for(const _0x1d428f of this['editor']['model']['document']['getRootNames']()){const _0x3d8dd1=this['editor']['model']['document']['getRoot'](_0x1d428f),_0x4a3132=this['editor']['editing']['view']['document']['getRoot'](_0x1d428f);if(_0x4a3132){const _0x197234=_0x3d8dd1['getAttribute']('revisionHistoryAttachChange');if(_0x559150['removeAttribute']('data-change-id',_0x4a3132),_0x559150['removeClass']('ck-revision-history-root-add',_0x4a3132),_0x559150['removeClass']('ck-revision-history-root-remove',_0x4a3132),_0x559150['removeClass']('ck-revision-history-root--active',_0x4a3132),_0x197234){const _0x320912=this['_getChangeFromId'](_0x197234);if(!_0x320912)return null;_0x559150['setAttribute']('data-change-id',_0x197234,_0x4a3132),_0x559150['addClass']('ck-revision-history-root-'+_0x320912['type'],_0x4a3132),this['activeChange']==_0x320912&&_0x559150['addClass']('ck-revision-history-root--active',_0x4a3132);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x5ab57c=>'revision-comment:'+_0x5ab57c,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x1d7e13=>'revision-suggestion:'+_0x1d7e13,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x1ff03a=>({'name':'suggestion:'+_0x1ff03a,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x17ed67=>{const _0x3992ec=_0x17ed67['markerName']['split'](':')[0x1];return'insertion'!=_0x3992ec&&'deletion'!=_0x3992ec?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x3992ec]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',Z(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',Z(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x340217,_0x4c4ffe,_0x4dc370)=>{const _0x3d85e4=_0x4dc370['mapper']['markerNameToElements'](_0x4c4ffe['markerName']);if(_0x3d85e4){for(const _0x52171c of _0x3d85e4)_0x52171c['is']('uiElement')&&(_0x4dc370['mapper']['unbindElementFromMarkerName'](_0x52171c,_0x4c4ffe['markerName']),_0x4dc370['writer']['remove'](_0x52171c));}},{'priority':'high'});}['_getChangeFromId'](_0x533e9d){return this['_changeIdToChange']['get'](_0x533e9d);}['_getViewForChange'](_0x11f046){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new X(this['editor']['locale'],_0x11f046),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x2050e3,_0x5b6f82,_0x5938b8,_0x816209)=>{_0x816209&&this['_balloon']['remove'](_0x816209),_0x5938b8&&(this['_balloon']['add']({'view':_0x5938b8,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x3a224e=this['editor']['editing'],_0x6f234c=this['_getChangeFromId'](_0x5938b8['changeId']);let _0xf8c69a;if(_0x6f234c['data']['isOnRoot']){const _0x4dcee4=_0x3a224e['view']['getDomRoot'](_0x6f234c['rootName']);_0xf8c69a=Array['from'](_0x4dcee4['getClientRects']());}else{const _0x9d7195=this['editor']['model']['markers']['get']('revision:'+_0x5938b8['changeId']);_0xf8c69a=Array['from'](_0x3a224e['mapper']['markerNameToElements'](_0x9d7195['name']))['map'](_0x957967=>_0x3a224e['view']['domConverter']['mapViewToDom'](_0x957967))['map'](_0x21fa0d=>Array['from'](_0x21fa0d['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0xf8c69a[0x0];return _0xf8c69a['find'](_0x55c127=>_0x55c127['top']-0x3<=this['_activeViewTarget']['y']&&_0x55c127['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x55c127['left']-0x3<=this['_activeViewTarget']['x']&&_0x55c127['right']+0x3>=this['_activeViewTarget']['x'])||_0xf8c69a[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x32a137,_0x16a8a4,_0x5dafd2,_0x4c0088)=>{this['activeView']=_0x5dafd2?this['_getViewForChange'](_0x5dafd2):null,this['editor']['model']['change'](()=>{const _0x5b87a7=this['editor']['editing'];_0x4c0088&&(_0x4c0088['data']['isOnRoot']?_0x5b87a7['view']['change'](_0x3258dc=>{_0x3258dc['removeClass']('ck-revision-history-root--active',_0x5b87a7['view']['document']['getRoot'](_0x4c0088['rootName']));}):_0x5b87a7['reconvertMarker']('revision:'+_0x4c0088['id'])),_0x5dafd2&&(_0x5dafd2['data']['isOnRoot']?_0x5b87a7['view']['change'](_0x4fab97=>{_0x4fab97['addClass']('ck-revision-history-root--active',_0x5b87a7['view']['document']['getRoot'](_0x5dafd2['rootName']));}):_0x5b87a7['reconvertMarker']('revision:'+_0x5dafd2['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x549017,_0x32b0c2)=>{if(this['activeChange'])return;const _0x15bf6c=this['_findChangeIdFromDomTarget'](_0x32b0c2['target']),_0x2c09ab=this['_changeIdToChange']['get'](_0x15bf6c);_0x2c09ab?(this['_activeViewTarget']={'x':_0x32b0c2['domEvent']['x'],'y':_0x32b0c2['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2c09ab)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x24bd4b,_0x4d9b91)=>{const _0x57c0cc=this['_findChangeIdFromDomTarget'](_0x4d9b91['target']),_0x454df6=this['_changeIdToChange']['get'](_0x57c0cc);_0x454df6?(this['_activeViewTarget']={'x':_0x4d9b91['domEvent']['x'],'y':_0x4d9b91['domEvent']['y']},_0x454df6===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x454df6):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x472391){do{const _0x2121a4=_0x472391['getAttribute']('data-change-id');if(_0x2121a4)return _0x2121a4;_0x472391=_0x472391['parent'];}while(_0x472391);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x52c5de=>{for(const _0x3c8033 of this['editor']['model']['markers'])_0x52c5de['removeMarker'](_0x3c8033);});}}function Z(_0x1ba8e8,_0x2999a7){return(_0x3e8046,_0x4fad8d,_0x52664a)=>{if(!_0x52664a['consumable']['test'](_0x4fad8d['markerRange'],_0x3e8046['name']))return;const _0x3938d0=_0x4fad8d['markerRange']['getWalker'](),_0x4a439b=_0x4fad8d['markerRange']['start'],_0xe95dbf=_0x1ba8e8['model']['schema'];let _0x3884d4=null,_0x4301a8=null,_0x338cd0=!0x1,_0x10437b=!0x1;for(const _0x1fa9c2 of _0x3938d0){const _0x3a299e=_0x1fa9c2['item'];_0x338cd0=_0x338cd0||_0xe95dbf['isContent'](_0x3a299e);const _0x1029f7=_0x52664a['mapper']['toViewElement'](_0x3a299e);if(_0x1029f7&&_0x1029f7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1fa9c2['type']&&(_0xe95dbf['isBlock'](_0x3a299e)&&!_0xe95dbf['isLimit'](_0x3a299e)&&(_0x3a299e['nextSibling']||_0x4a439b['isAtEnd']?_0x3884d4&&_0x3884d4['parent']==_0x3a299e||(_0x3884d4=_0x3a299e,_0x366af3(_0x1fa9c2['previousPosition']),_0x10437b=!0x0):_0x4301a8=_0x4301a8||_0x1fa9c2['previousPosition']));}function _0x366af3(_0x55641c){const _0x3c49e8=_0x52664a['mapper']['toViewPosition'](_0x55641c),_0x26cb6c=_0x52664a['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x2999a7});_0x52664a['writer']['insert'](_0x3c49e8,_0x26cb6c),_0x52664a['mapper']['bindElementToMarker'](_0x26cb6c,_0x4fad8d['markerName']);}_0x338cd0||_0x10437b||!_0x4301a8||_0x366af3(_0x4301a8);};}class _t extends _0x1773cd{constructor(_0x409199){super(_0x409199);const _0xf35087=_0x409199['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0xf35087,'change:isReady',()=>this['refresh']()),this['listenTo'](_0xf35087,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x1c1e4e=this['editor'],_0xa8425b=_0x1c1e4e['plugins']['get'](d),_0x101c2c=_0xa8425b['isReady']?_0xa8425b['diff']['newRevisionId']:null;_0x1c1e4e['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x101c2c);}['refresh'](){const {isReady:_0xd26e04,isEnabled:_0x29d681,repository:_0x65b927,diff:_0x4b4781}=this['editor']['plugins']['get'](d),_0x2a7c2a=_0x4b4781&&_0x65b927['getLaterVisibleRevision'](_0x4b4781['newRevisionId']);this['isEnabled']=_0xd26e04&&_0x29d681&&Boolean(_0x2a7c2a);}}class yt extends _0x1773cd{['_step'];constructor(_0x3a18a7,{direction:_0x30d9a2}){super(_0x3a18a7);const _0x55411a=_0x3a18a7['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x30d9a2?0x1:-0x1,this['listenTo'](_0x55411a,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x55411a,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x55411a,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x208645=this['editor'],_0x2028bb=_0x208645['plugins']['get'](d),{isNavigationMode:_0x10a349,currentChangeNumber:_0x3a390f}=_0x2028bb;let _0x4ec556;if(_0x2028bb['activeChange']=_0x10a349?_0x2028bb['diff']['changes']['get'](_0x3a390f+this['_step']):_0x2028bb['diff']['changes']['first'],_0x2028bb['activeChange']['data']['isOnRoot'])_0x4ec556=_0x208645['editing']['view']['getDomRoot'](_0x2028bb['activeChange']['rootName']);else{const _0x5b1833=_0x208645['model']['markers']['get']('revision:'+_0x2028bb['activeChange']['id']);_0x4ec556=_0x455b9f(_0x208645['editing'],_0x5b1833);}_0x1e1b90({'target':_0x4ec556,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x2d3a47,currentChangeNumber:_0x46abb0,numberOfChanges:_0x25acc8,isReady:_0x2f4948,isEnabled:_0x3592a9}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x3592a9&&_0x2f4948&&_0x25acc8)&&(!_0x2d3a47||(0x1===this['_step']?_0x46abb0<_0x25acc8-0x1:_0x46abb0>0x0));}}class _i extends _0x964c4d{constructor(_0x2fda80){super(_0x2fda80);const _0x64142f=this['bindTemplate'],_0xe3c075=new _0x3dffff(_0x2fda80),_0x20b9e2=new _0x3dffff(_0x2fda80);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',(_0x7c50d6,_0x866f9)=>_0x7c50d6&&_0x866f9>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x228cb6,_0xfeaece,_0x21966d,_0x5ac92c)=>{if(!_0x228cb6)return m(_0x2fda80,'Loading...');if(!_0x21966d)return m(_0x2fda80,'No\x20changes');const _0x9d361d=m(_0x2fda80,'NUMBER_OF_CHANGES',_0x21966d);return _0x5ac92c?m(_0x2fda80,'X_OF_Y_CHANGES',[_0xfeaece+0x1,_0x21966d]):_0x9d361d;}),_0xe3c075['set']({'label':m(_0x2fda80,'Show\x20previous\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x2014.494a.75.75\x200\x200\x200\x201.197-.899l-.067-.089-6.992-8a.75.75\x200\x200\x200-1.05-.078l-.079.078-7.008\x208a.75.75\x200\x200\x200\x201.049\x201.066l.08-.078\x206.442-7.354\x206.428\x207.354z\x22/></svg>\x0a'}),_0x20b9e2['set']({'label':m(_0x2fda80,'Show\x20next\x20change'),'tooltip':!0x0,'icon':'<svg\x20viewBox=\x220\x200\x2020\x2020\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22><path\x20d=\x22M16.435\x205.506a.75.75\x200\x200\x201\x201.197.899l-.067.089-6.992\x208a.75.75\x200\x200\x201-1.05.078l-.079-.078-7.008-8a.75.75\x200\x200\x201\x201.049-1.066l.08.078\x206.442\x207.354\x206.428-7.354z\x22/></svg>\x0a'}),_0xe3c075['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x20b9e2['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0xe3c075['on']('execute',()=>this['fire']('execute','backward')),_0x20b9e2['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',_0x64142f['if']('_isStatusLabelVisible','ck-hidden',_0x100cca=>!_0x100cca)]},'children':[{'text':_0x64142f['to']('isNavigationMode',_0x4e1020=>_0x4e1020?m(_0x2fda80,'EDIT_X_OF_Y_REVISIONS')+':\x20':m(_0x2fda80,'Total')+':\x20')}]},{'text':_0x64142f['to']('_statusText')}]},new _0x4d1567(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0xe3c075,_0x20b9e2]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x3f5b68{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x3b90fb=this['editor']['editing']['view'];_0x3b90fb['change'](_0xca2d4b=>{for(const _0x3286c6 of _0x3b90fb['document']['roots'])_0xca2d4b['addClass'](ce,_0x3286c6);});}['hide'](){const _0x274c1a=this['editor']['editing']['view'];_0x274c1a['change'](_0x28e976=>{for(const _0x2637bf of _0x274c1a['document']['roots'])_0x28e976['removeClass'](ce,_0x2637bf);});}}class g extends _0x3f5b68{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x15df6b=this['editor'],_0x543752=_0x15df6b['plugins']['get'](d),_0x5acd7e=_0x15df6b['plugins']['get'](le);_0x15df6b['ui']['componentFactory']['add']('exitToEditing',_0x386888=>{const _0x29726c=new _0x3dffff(_0x386888);return _0x29726c['set']({'label':m(_0x386888,'Back\x20to\x20editing'),'icon':_0x594f54['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x29726c,'execute',()=>{_0x15df6b['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x29726c;}),_0x15df6b['ui']['componentFactory']['add']('restoreRevision',_0x1dccd8=>{const _0x464a19=new _0x3dffff(_0x1dccd8);return _0x464a19['set']({'label':m(_0x1dccd8,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x464a19['bind']('isEnabled')['to'](_0x15df6b['commands']['get']('restoreRevision')),this['listenTo'](_0x464a19,'execute',()=>_0x15df6b['execute']('restoreRevision')),_0x464a19;}),_0x15df6b['ui']['componentFactory']['add']('changesNavigation',_0x160143=>{const _0x45453f=new _i(_0x160143),_0x2806dd=_0x15df6b['commands']['get']('showPreviousChange'),_0x15c1f6=_0x15df6b['commands']['get']('showNextChange');return _0x45453f['bind']('isBackwardNavigationEnabled')['to'](_0x2806dd,'isEnabled'),_0x45453f['bind']('isForwardNavigationEnabled')['to'](_0x15c1f6,'isEnabled'),_0x45453f['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x543752),this['listenTo'](_0x45453f,'execute',(_0x4d1002,_0x3a60b3)=>{_0x15df6b['execute']('forward'===_0x3a60b3?'showNextChange':'showPreviousChange');}),_0x45453f;}),_0x5acd7e['show'](),_0x543752['on']('change:isReady',(_0x22ed5d,_0xe29409,_0x4547aa)=>{_0x4547aa?_0x5acd7e['hide']():_0x5acd7e['show']();});}}class pt extends nt{['_resizeObserver']=null;constructor(_0x23ac30,_0x56f9e0){super(_0x23ac30,_0x56f9e0);const _0x1c8c24=this['bindTemplate'];this['set']({'label':m(_0x23ac30,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=m(_0x23ac30,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x1c8c24['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new at(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x577d6c=this['fieldView']['element'];this['_tooltipString']=_0x577d6c['scrollWidth']>_0x577d6c['clientWidth']&&_0x577d6c['value']||'';}}class ti extends _0x964c4d{constructor(_0x518caf,_0x335924,_0x38f235){super(_0x518caf);const _0xd1a515=new _0x52f07d();_0xd1a515['set']({'content':'<svg\x20viewBox=\x220\x200\x2011\x2010\x22\x20xmlns=\x22http://www.w3.org/2000/svg\x22\x20xmlns:xlink=\x22http://www.w3.org/1999/xlink\x22><path\x20d=\x22M5.5\x205C8.538\x205\x2011\x207.015\x2011\x209.5c0\x20.17-.011.336-.034.5H.034A3.732\x203.732\x200\x200\x201\x200\x209.5C0\x207.015\x202.462\x205\x205.5\x205zm0-5a2.5\x202.5\x200\x201\x201\x200\x205\x202.5\x202.5\x200\x200\x201\x200-5z\x22\x20/></svg>\x0a','viewBox':'0\x200\x2011\x2010'});const _0x10aa96=['ck','ck-revision-history-sidebar__revision-author'];_0x38f235&&_0x10aa96['push']('ck-revision-history-sidebar__revision-author_creator');const _0x545609=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':m(_0x518caf,_0x38f235?'Revision\x20creator':'Revision\x20author')},'children':[_0xd1a515,_0x335924['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x10aa96},'children':_0x545609});}}function ni(_0x219a96,_0x33259c){const _0x23e3d8=_0x219a96['bindTemplate'],_0x4ab915=_0x219a96['locale'],_0x161fb4=_0x319079(_0x4ab915);_0x161fb4['panelPosition']='sw';const _0x540f56=function(_0x4f9b34,_0xcb3c07){const _0x48c760=function(_0x124429,_0x3ef9f1){const _0x3eb753=_0x124429['locale'],_0x2c4c02={'Compare\x20against\x20selected':m(_0x3eb753,'Compare\x20against\x20selected'),'Name\x20this\x20revision':m(_0x3eb753,'Name\x20this\x20revision'),'Restore\x20this\x20revision':m(_0x3eb753,'Restore\x20this\x20revision')};return _0x3ef9f1['map'](_0x41d652=>{const _0x36976e=_0x2c4c02[_0x41d652['name']];return _0x36976e&&_0x36976e!==_0x41d652['name']&&(_0x41d652['name']=_0x36976e),_0x41d652;});}(_0x4f9b34,_0xcb3c07),_0x49ad77=new _0x2ec462();for(const _0x54f87a of _0x48c760){const _0x3af6ca={'type':'button','model':new to({'label':_0x54f87a['name'],'class':_0x54f87a['class'],'withText':!0x0,'role':'menuitem','_action':_0x54f87a['action']})};_0x3af6ca['model']['bind']('isEnabled')['to'](_0x4f9b34,'isActionsDropdownOpen',_0x20ffc5=>'function'!=typeof _0x54f87a['isEnabled']||(!_0x20ffc5||_0x54f87a['isEnabled'](_0x4f9b34))),_0x49ad77['add'](_0x3af6ca);}return _0x49ad77;}(_0x219a96,_0x33259c);return _0x219a96['bind']('isActionsDropdownOpen')['to'](_0x161fb4,'isOpen'),_0x161fb4['buttonView']['set']({'label':m(_0x4ab915,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x594f54['threeVerticalDots']}),_0x161fb4['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x23e3d8['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x23e3d8['to'](_0x52e654=>_0x52e654['stopPropagation']())}}),_0x161fb4['on']('execute',_0x5062b2=>{_0x219a96['isReady']&&'function'==typeof _0x5062b2['source']['_action']&&_0x5062b2['source']['_action'](_0x219a96);}),_0x4cecdd(_0x161fb4,_0x540f56,{'role':'menu'}),_0x161fb4['listenTo'](_0x219a96,'change:isActionsDropdownOpen',(_0x40b6b1,_0xe981a1,_0xeee0cb)=>{if(_0xeee0cb)for(const _0x4a4681 of _0x161fb4['listView']['items']){const _0x4f260f=_0x4a4681['children']['first'],_0x12f564=_0x33259c['find'](_0x3d782e=>_0x3d782e['action']===_0x4f260f['_action'])['isVisible'];_0x4a4681['isVisible']=void 0x0===_0x12f564||_0x12f564(_0x219a96);}}),_0x161fb4;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
+
_0x4dccca(_0x964c4d){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0x1f005f,_0x67d1b2,_0x2329b7,_0x1dd1e2){super(_0x1f005f);const _0x47eb22=this['bindTemplate'],_0x5338bb=function(_0xca06ec,_0x4a2c3a){const _0x3aa2bb=Array['from'](_0x4a2c3a['authors'])['filter'](_0x5755f0=>_0x5755f0!=_0x4a2c3a['creator']);return _0x4a2c3a['creator']&&_0x3aa2bb['unshift'](_0x4a2c3a['creator']),_0x3aa2bb['map'](_0x8a87c9=>new ti(_0xca06ec,_0x8a87c9,_0x8a87c9==_0x4a2c3a['creator']));}(_0x1f005f,_0x67d1b2);this['id']=_0x67d1b2['id'],this['_revision']=_0x67d1b2,this['_requireRevisionName']=_0x1dd1e2,this['bind']('name','createdAt')['to'](_0x67d1b2),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0xd25f69=>{return _0x45468e=_0x1f005f['uiLanguage'],(_0x383ddc=_0xd25f69)['toLocaleDateString'](_0x45468e,{'month':'long','day':'numeric'})+',\x20'+_0x383ddc['toLocaleTimeString'](_0x45468e,{'hour':'numeric','minute':'numeric'});var _0x45468e,_0x383ddc;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0x1f005f,_0x70c291),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0xf736b=>_0xf736b||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x265127,_0x1a9a45)=>_0x265127&&_0x1a9a45),this['revisionActionsView']=_0x2329b7&&_0x2329b7['length']?ni(this,_0x2329b7):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x47eb22['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x47eb22['if']('isEnabled','ck-disabled',_0x5739aa=>!_0x5739aa),_0x47eb22['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x47eb22['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x47eb22['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':_0x47eb22['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':_0x5338bb}]},this['revisionActionsView']],'on':{'click':_0x47eb22['to'](_0x24d73b=>{_0x24d73b['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0x3fcb4c=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0x3fcb4c,'change',()=>{this['_requireRevisionName']&&!_0x3fcb4c['value']||this['fire']('setName',{'id':this['id'],'name':_0x3fcb4c['value']}),_0x3fcb4c['value']||(_0x3fcb4c['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function di(_0xc19727,_0x1d90ea){const _0xe93950=_0x5979b0['fromJSDate'](_0xc19727)['setLocale'](_0x1d90ea),_0x360e15=_0x5979b0['local'](),_0x51ff2e=_0x360e15['minus']({'days':0x1})['startOf']('day');let _0xb6d406,_0x172112;return _0xe93950['hasSame'](_0x360e15,'day')?(_0xb6d406=_0xe93950['startOf']('day')['toJSDate'](),_0x172112=_0xe93950['toRelativeCalendar']()):_0xe93950['hasSame'](_0x51ff2e,'day')?(_0xb6d406=_0x51ff2e['toJSDate'](),_0x172112=_0xe93950['toRelativeCalendar']()):_0xe93950['hasSame'](_0x360e15,'week')?(_0xb6d406=_0xe93950['startOf']('week')['toJSDate'](),_0x172112=_0xe93950['weekdayLong']||''):_0xe93950['hasSame'](_0x360e15,'year')?(_0xb6d406=_0xe93950['startOf']('month')['toJSDate'](),_0x172112=_0xe93950['monthLong']||''):(_0xb6d406=_0xe93950['startOf']('year')['toJSDate'](),_0x172112=String(_0xe93950['year'])),{'startDate':_0xb6d406,'localizedPeriodName':_0x172112};}class mi extends _0x964c4d{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x3608fb,_0x3099ab,_0x710a7,_0x18052d){super(_0x3608fb);const _0x39042b=di(_0x3099ab,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x3099ab,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x710a7,this['_requireRevisionName']=_0x18052d,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':_0x39042b}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x2058b9){const _0x37dc76=new ai(this['locale'],_0x2058b9,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x37dc76);}['removeRevision'](_0x1af593){const _0x141319=this['revisionViews']['find'](_0x59b462=>_0x59b462['id']===_0x1af593['id']);this['revisionViews']['remove'](_0x141319);}}class rs extends _0x964c4d{constructor(_0x4b1562){super(_0x4b1562);const _0x4cb37c=new _0x52f07d();_0x4cb37c['content']=_0x594f54['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x4cb37c,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[m(_0x4b1562,'Revision\x20history')]}]});}}class ci extends _0x964c4d{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x465cfd,_0x495f41,_0x64180d,_0x5b3322){super(_0x465cfd);const _0x10a7d2=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x495f41,this['_revisionActions']=_0x64180d,this['_requireRevisionName']=_0x5b3322,this['on']('select',(_0x4a6afb,_0x268eee)=>{this['fire']('revisionSelected',_0x268eee);}),this['on']('setName',(_0x490033,_0x24591c)=>{this['fire']('revisionSetName',_0x24591c);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new rs(_0x465cfd),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x10a7d2['if']('isEnabled','ck-disabled',_0x339298=>!_0x339298)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x32aae3 of this['_revisions'])this['_addRevision'](_0x32aae3);this['_revisions']['on']('add',(_0x38b797,_0x1898f1)=>{this['_addRevision'](_0x1898f1);}),this['_revisions']['on']('remove',(_0x5590c1,_0x4ece62)=>{this['_removeRevision'](_0x4ece62);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x19b41a=>_0x19b41a['revisionViews']['map'](_0x21938b=>_0x21938b))['flat']();}['selectRevision'](_0x37e9c2){for(const _0x30b0f9 of this['revisionViews'])_0x37e9c2&&_0x37e9c2['id']===_0x30b0f9['id']?_0x30b0f9['select']():_0x30b0f9['deselect']();}['highlightRevisions'](_0x3c7c10){for(const _0x259172 of this['revisionViews'])_0x3c7c10['some'](({id:_0x82ccc6})=>_0x82ccc6===_0x259172['id'])?_0x259172['highlight']():_0x259172['unhighlight']();}['_addRevision'](_0x1db493){const _0x174b83=di(_0x1db493['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x4cac51=this['timePeriodViews']['get'](0x0);_0x4cac51&&_0x4cac51['startDate']['getTime']()===_0x174b83['getTime']()||(_0x4cac51=new mi(this['locale'],_0x174b83,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x4cac51)),_0x4cac51['addRevision'](_0x1db493);}['_removeRevision'](_0x3c653c){const _0x469b35=di(_0x3c653c['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x469b35)['removeRevision'](_0x3c653c);}['_getTimePeriodViewByStartDate'](_0x23fb56){return this['timePeriodViews']['find'](_0x5b6966=>_0x5b6966['startDate']['getTime']()===_0x23fb56['getTime']());}}class w extends _0x3f5b68{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(
|
|
29
|
-
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x20d4ab,_0x16e8c3){super(_0x16e8c3),this['sourceElement']=_0x20d4ab,this['model']['document']['createRoot']();const _0x232748=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x232748);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x22ccce,_0x3aaef6){const _0x801b84=new this(_0x22ccce,_0x3aaef6);return await _0x801b84['initPlugins'](),await _0x801b84['ui']['init'](_0x22ccce),await _0x801b84['data']['init'](_0x801b84['config']['get']('initialData')||''),_0x801b84['fire']('ready'),_0x801b84;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x38f4f7{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2d61ba){function _0x591ccb(_0x105365){return _0x105365['map'](_0x3f98fb=>String['fromCharCode'](_0x3f98fb))['join']('');}super(_0x2d61ba),this['result']='end',_0x2d61ba[_0x591ccb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x591ccb([0x76,0x69,0x65,0x77])][_0x591ccb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x591ccb([0x61,0x75,0x74,0x6f]),_0x2d61ba[_0x591ccb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x591ccb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x591ccb([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x591ccb([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x591ccb([0x6f,0x6b])});}}class k extends _0x38f4f7{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x8f6a96){if(super(_0x8f6a96),!this['editor']['config']['get']('revisionHistory'))throw new _0x35a358('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x539177=>this['_showRevisionViewer']({..._0x539177,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x381999=>this['_closeRevisionViewer'](_0x381999)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x416964=>this['_restoreRevision'](_0x416964)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x1f99d6){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x1f99d6;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x26f68c){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x26f68c);}['getRevision'](_0x4d3867){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x4d3867);}['getRevisions'](_0x321869){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x321869||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2da1ce=this['editor'],_0x846e13=_0x5b0573(_0x2da1ce,p),_0x47d35f=_0x2da1ce['plugins']['get']('RevisionTracker'),_0x171ee6=_0x2da1ce['plugins']['get']('Users')['users'];return _0x846e13['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x846e13['lazyRoots'],(_0x846e13['plugins']['push'](Rt,d,g,class extends _0x38f4f7{static get['requires'](){return[d,'Users'];}['init'](){const _0x169807=this['editor']['plugins']['get']('Users');for(const _0x19a949 of _0x171ee6)_0x19a949['isAnonymous']||_0x169807['getUser'](_0x19a949['id'])||_0x169807['addUser'](_0x19a949);const _0x3687d2=_0x47d35f['repository']['getRevisions']();let _0x2036ce=null;const _0x4c99ef=this['editor']['plugins']['get']('RevisionViewer');_0x4c99ef['adapter']=_0x47d35f['adapter'],_0x4c99ef['bind']('isEnabled')['to'](_0x47d35f),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2da1ce,'isReadOnly',_0x23ec44=>!_0x23ec44);for(const _0x57e6b8 of _0x3687d2){const _0x43e3d2=null===_0x57e6b8['creator'];if(_0x43e3d2&&_0x57e6b8['toVersion']===_0x57e6b8['fromVersion'])continue;const _0x2751de=_0x57e6b8['toJSON']();_0x4c99ef['addRevisionData'](_0x2751de,(_0x48453a,_0x3e0524,_0x29cb2c)=>{if(_0x43e3d2){if(_0x2036ce)_0x2036ce['_update'](_0x48453a,_0x3e0524);else{if(!_0x3e0524){const _0x3ea21d=_0x29cb2c['toJSON']();_0x3ea21d['id']=_0x7bac97(),_0x47d35f['saveRevision'](_0x3ea21d,_0x29cb2c['toVersion'])['then'](_0x22def4=>{_0x2036ce=_0x22def4;});}}}else _0x57e6b8['_update'](_0x48453a,_0x3e0524);});}}},w),_0x846e13);}['_enhanceShowRevisionViewerCallback'](){const _0x2fd051=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x350b84=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x4d7e60=this['editor']['plugins']['get']('Autosave');await _0x4d7e60['save']();}else await _0x350b84['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1b5c7c=this['editor']['plugins']['get']('Dialog');_0x1b5c7c['isOpen']&&_0x1b5c7c['hide']();}const _0x2200cd=this['_getRevisionViewerEditorConfig']();return _0x2fd051(_0x2200cd)['then'](_0x370b5a=>{return(this['_viewerEditor']=_0x370b5a,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x370b5a;})['catch'](_0x48dec4=>(console['error'](_0x48dec4),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x2fe260=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x2fe260(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x5e4dfd=this['editor']['plugins']['get']('Annotations');_0x5e4dfd['refreshVisibility'](),_0x5e4dfd['refreshPositioning']();}})));}['_showRevisionViewer'](_0x24b66a){const _0x86f5ab=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x50d465=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x196488=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x196488,_0x24b66a)['then'](_0x1b7083=>(_0x50d465['style']['display']='block',_0x86f5ab['style']['display']='none',_0x1b7083));}['_closeRevisionViewer'](_0x10d05c){const _0x70309b=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x70309b['style']['display']='',_0x10d05c['destroy']();}async['_restoreRevision'](_0x1b233d){const _0x14d6ef=this['editor'],_0x5440e6=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x396ecc=_0x14d6ef['plugins']['get']('RevisionTracker'),_0x4e549f=_0x5440e6['repository']['getRevision'](_0x1b233d);let _0x9029c2,_0xc2e2ba,_0x29b76b;try{_0x9029c2=await _0x5440e6['getRevisionData'](_0x4e549f),_0xc2e2ba=await _0x5440e6['getRevisionRootsAttributes'](_0x4e549f);}catch(_0x55acdf){return void console['error'](_0x55acdf);}_0x14d6ef['model']['change'](_0xdcb9c3=>{for(const _0x11322f of Array['from'](_0x14d6ef['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0xdcb9c3['removeMarker'](_0x11322f);}),_0x5440e6['isReady']=!0x1,_0x14d6ef['model']['enqueueChange'](_0x31c9ee=>{_0x31c9ee['setSelection'](null),_0x31c9ee['removeSelectionAttribute'](_0x14d6ef['model']['document']['selection']['getAttributeKeys']());const _0x178046=Object['keys'](_0x9029c2);for(const _0x512494 of _0x14d6ef['model']['document']['roots'])'$graveyard'!=_0x512494['rootName']&&_0x512494['isAttached']()&&!_0x178046['includes'](_0x512494['rootName'])&&_0x31c9ee['detachRoot'](_0x512494);for(const _0x422490 of _0x178046){let _0x5d19b9=_0x14d6ef['model']['document']['getRoot'](_0x422490);_0x5d19b9&&_0x5d19b9['isAttached']()||(_0x5d19b9=_0x31c9ee['addRoot'](_0x422490));const _0x116fee=_0xc2e2ba[_0x422490],_0x56a25c=Object['keys'](_0x116fee),_0x187adf=_0x9029c2[_0x422490];for(const _0x46eb02 of _0x5d19b9['getAttributeKeys']())_0x56a25c['includes'](_0x46eb02)||_0x31c9ee['removeAttribute'](_0x46eb02,_0x5d19b9);for(const _0x1289cc of _0x56a25c)_0x31c9ee['setAttribute'](_0x1289cc,_0xc2e2ba[_0x422490][_0x1289cc],_0x5d19b9);_0x31c9ee['remove'](_0x31c9ee['createRangeIn'](_0x5d19b9)),_0x31c9ee['insert'](_0x14d6ef['data']['parse'](_0x187adf,_0x5d19b9),_0x5d19b9,0x0);}});const _0x18022f=m(_0x14d6ef['locale'],'Restored');if(_0x4e549f['name'])_0x29b76b=-0x1==_0x4e549f['name']['indexOf'](_0x18022f)?_0x18022f+':\x20'+_0x4e549f['name']:_0x4e549f['name'];else _0x29b76b=_0x18022f+':\x20'+(_0x4e549f['createdAt']['toLocaleDateString'](_0x14d6ef['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x4e549f['createdAt']['toLocaleTimeString'](_0x14d6ef['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x396ecc['saveRevision']({'name':_0x29b76b}),_0x5440e6['isReady']=!0x0,_0x14d6ef['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,ae as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|
|
28
|
+
bt();static get['pluginName'](){return'RevisionsSidebar';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d];}constructor(_0x585adb){super(_0x585adb),this['_revisionViewer']=_0x585adb['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x3635e6=this['_revisionsRepository']['_revisions'],_0x51a85d=this['_createRevisionActions'](),_0x52f1be=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new ci(this['editor']['locale'],_0x3635e6,_0x51a85d,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',(_0x4d671b,_0xc38a64)=>{_0xc38a64['revisionViews']['on']('add',(_0x4fedb8,_0x4287dc)=>{_0x4287dc['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)),_0x52f1be['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x2853c0=this['_revisionsRepository']['getRevision'](0x0);if(_0x2853c0){const _0x563fe5=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x2853c0['id']);this['_revisionViewer']['compare'](_0x2853c0,_0x563fe5);}}['_handleRevisionSelected'](_0x453597,_0x411666){const _0x10e0af=this['_revisionsRepository']['getRevision'](_0x411666['id']),_0x3cfba8=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x10e0af['id']);this['_revisionViewer']['compare'](_0x10e0af,_0x3cfba8);}['_handleRevisionSetName'](_0x1cf6f2,_0x1579d1){this['_revisionsRepository']['getRevision'](_0x1579d1['id'])['setName'](_0x1579d1['name']);}['_handleDiffChange'](_0xd8628e,_0x2dbf3c,_0x12d287){const _0x5c6e9c=this['_revisionsRepository']['getRevisionsInDiff'](_0x12d287);_0x5c6e9c['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x5c6e9c),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x5c6e9c[0x0]));}['_createRevisionActions'](){const _0x2308b2=this['editor'],_0x42b4ff=w['availableRevisionActions'],_0x20f62c=_0x2308b2['config']['get']('revisionHistory.revisionActions')||w['defaultRevisionActions'];if(_0x20f62c['length'])return _0x20f62c['map'](_0x3516bc=>{const _0x4b8487='string'==typeof _0x3516bc?Object['assign']({},_0x42b4ff[_0x3516bc]):_0x3516bc;return _0x4b8487['action']=_0x4b8487['action']['bind'](this,_0x2308b2),_0x4b8487['isVisible']&&(_0x4b8487['isVisible']=_0x4b8487['isVisible']['bind'](this,_0x2308b2)),_0x4b8487;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x1b0d5e},_0x3998c7)=>{const _0x36286e=_0x1b0d5e['get'](d),_0x1171b2=_0x36286e['repository'];let _0x3fae05=_0x36286e['diff']['newRevisionId'],_0x3481d6=_0x3998c7['id'];_0x1171b2['getIndex'](_0x3fae05)>_0x1171b2['getIndex'](_0x3481d6)&&([_0x3fae05,_0x3481d6]=[_0x3481d6,_0x3fae05]),_0x36286e['compare'](_0x3fae05,_0x3481d6);},'isVisible':({plugins:_0x2650b1},_0x4b13cf)=>{const _0x484d30=_0x2650b1['get'](d);return!(_0x484d30['repository']['getRevisionsInDiff'](_0x484d30['diff'])['length']>0x2)&&!_0x4b13cf['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x5756c3,{id:_0x5b23b2})=>{_0x5756c3['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x5b23b2);},'isVisible':({plugins:_0x1ab3fa},_0x440166)=>!!_0x1ab3fa['get'](d)['repository']['getLaterVisibleRevision'](_0x440166['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0x9606d3},{id:_0x4c01e4,revisionNameView:_0x5a5fae})=>{const _0x2d6e6a=_0x9606d3['get'](d),_0x3466d5=_0x2d6e6a['repository']['getEarlierVisibleRevision'](_0x4c01e4);_0x2d6e6a['compare'](_0x4c01e4,_0x3466d5),_0x5a5fae['focus'](),_0x5a5fae['fieldView']['select']();}}};}class rt extends st{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0xe82285,_0x424212){super(_0xe82285),this['_view']=_0x424212,this['_toolbarConfig']=ot(_0xe82285['config']['get']('toolbar')),this['_elementReplacer']=new ht();}get['element'](){return this['view']['element'];}['init'](_0x600cf6){const _0x3343b5=this['editor'],_0xae1765=this['view'],_0x1b2330=_0x3343b5['editing']['view'],_0x2aa21c=_0xae1765['editable'],_0x2979ae=_0x1b2330['document']['getRoot']();_0x2aa21c['name']=_0x2979ae['rootName'],_0xae1765['render']();const _0x32ff74=_0x2aa21c['element'];this['setEditableElement'](_0x2aa21c['name'],_0x32ff74),_0xae1765['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x1b2330['attachDomRoot'](_0x32ff74),this['_elementReplacer']['replace'](_0x600cf6,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x1b9e50=this['view'],_0x3a583f=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x3a583f['detachDomRoot'](_0x1b9e50['editable']['name']),_0x1b9e50['destroy']();}['_initToolbar'](){const _0x1287a6=this['view'];_0x1287a6['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x1287a6['stickyPanel']['limiterElement']=_0x1287a6['element'],_0x1287a6['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x35319e})=>_0x35319e),_0x1287a6['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x1287a6['toolbar']);}}class et extends ct{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x2961b8,_0x34044c,_0x405643={}){super(_0x2961b8),this['stickyPanel']=new ut(_0x2961b8),this['toolbar']=new lt(_0x2961b8,{'shouldGroupWhenFull':_0x405643['shouldToolbarGroupWhenFull']}),this['_editable']=new dt(_0x2961b8,_0x34044c);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class R extends/* #__PURE__ -- @preserve */
|
|
29
|
+
it(tt){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x55eaa8,_0x51de64){super(_0x51de64),this['sourceElement']=_0x55eaa8,this['model']['document']['createRoot']();const _0x2dbe7b=new et(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new rt(this,_0x2dbe7b);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x100442,_0x2cc101){const _0x4cc68f=new this(_0x100442,_0x2cc101);return await _0x4cc68f['initPlugins'](),await _0x4cc68f['ui']['init'](_0x100442),await _0x4cc68f['data']['init'](_0x4cc68f['config']['get']('initialData')||''),_0x4cc68f['fire']('ready'),_0x4cc68f;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class Rt extends _0x3f5b68{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x944449){function _0x32bb0a(_0x52d336){return _0x52d336['map'](_0x19c29a=>String['fromCharCode'](_0x19c29a))['join']('');}super(_0x944449),this['result']='end',_0x944449[_0x32bb0a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32bb0a([0x76,0x69,0x65,0x77])][_0x32bb0a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x32bb0a([0x61,0x75,0x74,0x6f]),_0x944449[_0x32bb0a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x32bb0a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x32bb0a([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x32bb0a([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x32bb0a([0x6f,0x6b])});}}class k extends _0x3f5b68{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x46654f){if(super(_0x46654f),!this['editor']['config']['get']('revisionHistory'))throw new _0x5782d2('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x4ef48b=>this['_showRevisionViewer']({..._0x4ef48b,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x200e05=>this['_closeRevisionViewer'](_0x200e05)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x620763=>this['_restoreRevision'](_0x620763)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x46224e){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x46224e;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x2ce835){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x2ce835);}['getRevision'](_0xc35d4d){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0xc35d4d);}['getRevisions'](_0x2c5fbf){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2c5fbf||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x28967d=this['editor'],_0x1b3f31=_0x33a446(_0x28967d,p),_0x29ee09=_0x28967d['plugins']['get']('RevisionTracker'),_0x2d18d3=_0x28967d['plugins']['get']('Users')['users'];return _0x1b3f31['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x1b3f31['lazyRoots'],(_0x1b3f31['plugins']['push'](Rt,d,g,class extends _0x3f5b68{static get['requires'](){return[d,'Users'];}['init'](){const _0x58ad5c=this['editor']['plugins']['get']('Users');for(const _0x1397df of _0x2d18d3)_0x1397df['isAnonymous']||_0x58ad5c['getUser'](_0x1397df['id'])||_0x58ad5c['addUser'](_0x1397df);const _0x1e0afa=_0x29ee09['repository']['getRevisions']();let _0x4c9a7e=null;const _0x1ab3fd=this['editor']['plugins']['get']('RevisionViewer');_0x1ab3fd['adapter']=_0x29ee09['adapter'],_0x1ab3fd['bind']('isEnabled')['to'](_0x29ee09),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x28967d,'isReadOnly',_0x537226=>!_0x537226);for(const _0x2213b1 of _0x1e0afa){const _0x19512b=null===_0x2213b1['creator'];if(_0x19512b&&_0x2213b1['toVersion']===_0x2213b1['fromVersion'])continue;const _0x92ac46=_0x2213b1['toJSON']();_0x1ab3fd['addRevisionData'](_0x92ac46,(_0x1035c9,_0x1eab8b,_0x20ab49)=>{if(_0x19512b){if(_0x4c9a7e)_0x4c9a7e['_update'](_0x1035c9,_0x1eab8b);else{if(!_0x1eab8b){const _0x5a23b4=_0x20ab49['toJSON']();_0x5a23b4['id']=_0x1c8288(),_0x29ee09['saveRevision'](_0x5a23b4,_0x20ab49['toVersion'])['then'](_0x5ae52c=>{_0x4c9a7e=_0x5ae52c;});}}}else _0x2213b1['_update'](_0x1035c9,_0x1eab8b);});}}},w),_0x1b3f31);}['_enhanceShowRevisionViewerCallback'](){const _0x33d16d=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x596c75=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x5d3283=this['editor']['plugins']['get']('Autosave');await _0x5d3283['save']();}else await _0x596c75['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x3bb6ad=this['editor']['plugins']['get']('Dialog');_0x3bb6ad['isOpen']&&_0x3bb6ad['hide']();}const _0x4a8fa6=this['_getRevisionViewerEditorConfig']();return _0x33d16d(_0x4a8fa6)['then'](_0x2268a8=>{return(this['_viewerEditor']=_0x2268a8,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x2268a8;})['catch'](_0x4dc7e2=>(console['error'](_0x4dc7e2),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x529e09=this['editor']['config']['get']('revisionHistory')['closeRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.closeRevisionViewerCallback',()=>(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['_viewerEditor']['plugins']['get']('RevisionViewer')['_cleanUp'](),_0x529e09(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x38f906=this['editor']['plugins']['get']('Annotations');_0x38f906['refreshVisibility'](),_0x38f906['refreshPositioning']();}})));}['_showRevisionViewer'](_0x32d310){const _0x3b9064=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x9fc5cf=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0x2672ba=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return R['create'](_0x2672ba,_0x32d310)['then'](_0x2c10bd=>(_0x9fc5cf['style']['display']='block',_0x3b9064['style']['display']='none',_0x2c10bd));}['_closeRevisionViewer'](_0xb86429){const _0x4c9f55=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x4c9f55['style']['display']='',_0xb86429['destroy']();}async['_restoreRevision'](_0x635a69){const _0x548c7e=this['editor'],_0x3366f6=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x59c68a=_0x548c7e['plugins']['get']('RevisionTracker'),_0x1a0cd4=_0x3366f6['repository']['getRevision'](_0x635a69);let _0x35a88e,_0x3a27e4,_0x565027;try{_0x35a88e=await _0x3366f6['getRevisionData'](_0x1a0cd4),_0x3a27e4=await _0x3366f6['getRevisionRootsAttributes'](_0x1a0cd4);}catch(_0x3215f9){return void console['error'](_0x3215f9);}_0x548c7e['model']['change'](_0x19d96b=>{for(const _0x46feb3 of Array['from'](_0x548c7e['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x19d96b['removeMarker'](_0x46feb3);}),_0x3366f6['isReady']=!0x1,_0x548c7e['model']['enqueueChange'](_0x1f446e=>{_0x1f446e['setSelection'](null),_0x1f446e['removeSelectionAttribute'](_0x548c7e['model']['document']['selection']['getAttributeKeys']());const _0x19361c=Object['keys'](_0x35a88e);for(const _0x2e268d of _0x548c7e['model']['document']['roots'])'$graveyard'!=_0x2e268d['rootName']&&_0x2e268d['isAttached']()&&!_0x19361c['includes'](_0x2e268d['rootName'])&&_0x1f446e['detachRoot'](_0x2e268d);for(const _0xf740f6 of _0x19361c){let _0x26cf3c=_0x548c7e['model']['document']['getRoot'](_0xf740f6);_0x26cf3c&&_0x26cf3c['isAttached']()||(_0x26cf3c=_0x1f446e['addRoot'](_0xf740f6));const _0x946b8b=_0x3a27e4[_0xf740f6],_0x3fde64=Object['keys'](_0x946b8b),_0xaa048a=_0x35a88e[_0xf740f6];for(const _0x4a3b8f of _0x26cf3c['getAttributeKeys']())_0x3fde64['includes'](_0x4a3b8f)||_0x1f446e['removeAttribute'](_0x4a3b8f,_0x26cf3c);for(const _0x130aaf of _0x3fde64)_0x1f446e['setAttribute'](_0x130aaf,_0x3a27e4[_0xf740f6][_0x130aaf],_0x26cf3c);_0x1f446e['remove'](_0x1f446e['createRangeIn'](_0x26cf3c)),_0x1f446e['insert'](_0x548c7e['data']['parse'](_0xaa048a,_0x26cf3c),_0x26cf3c,0x0);}});const _0x36b626=m(_0x548c7e['locale'],'Restored');if(_0x1a0cd4['name'])_0x565027=-0x1==_0x1a0cd4['name']['indexOf'](_0x36b626)?_0x36b626+':\x20'+_0x1a0cd4['name']:_0x1a0cd4['name'];else _0x565027=_0x36b626+':\x20'+(_0x1a0cd4['createdAt']['toLocaleDateString'](_0x548c7e['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x1a0cd4['createdAt']['toLocaleTimeString'](_0x548c7e['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x59c68a['saveRevision']({'name':_0x565027}),_0x3366f6['isReady']=!0x0,_0x548c7e['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,k as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,g as RevisionViewerUI,j as RevisionsRepository,w as RevisionsSidebar};
|