@ckeditor/ckeditor5-revision-history 43.3.1 → 44.0.0-alpha.1
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/README.md +16 -0
- package/build/revision-history.js +1 -1
- package/dist/augmentation.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/revisiontracker.d.ts +4 -0
- 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 +8 -8
- package/src/augmentation.d.ts +2 -2
- 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.d.ts +4 -0
- 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
|
-
_0x11085b(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2bdb88){super(),this['id']=_0x2bdb88['id']||_0x19b749(),this['creator']=_0x2bdb88['creator']||null,this['authors']=_0x2bdb88['authors']||[],this['diffData']=_0x2bdb88['diffData']||null,this['toVersion']=_0x2bdb88['toVersion']||0x0,this['fromVersion']=_0x2bdb88['fromVersion']||0x0,this['set']('name',_0x2bdb88['name']||''),this['set']('createdAt',_0x2bdb88['createdAt']||new Date()),this['set']('attributes',_0x2bdb88['attributes']||{});}['setName'](_0x40fda1){this['_update']({'name':_0x40fda1});}['setAttribute'](_0x5d7c9c,_0x1bdb68){const _0x3eda29=_0x5cde81(this['attributes']);_0x49d2dd(_0x3eda29,_0x5d7c9c,_0x1bdb68),this['_update']({'attributes':_0x3eda29});}['removeAttribute'](_0x56c2c5){const _0x547043=_0x5cde81(this['attributes']);_0x236921(_0x547043,_0x56c2c5),this['_update']({'attributes':_0x547043});}['_update'](_0x1ac743,_0x5f52be=!0x1){let _0x107e25=!0x1;const _0x7c332c={'id':this['id']},_0x40c325=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0xfccaba of _0x40c325){const _0x2f145d=_0x1ac743[_0xfccaba];void 0x0!==_0x2f145d&&_0x2f145d!==this[_0xfccaba]&&(this[_0xfccaba]=_0x2f145d,_0x7c332c[_0xfccaba]=_0x2f145d,_0x107e25=!0x0);}_0x107e25&&(_0x7c332c['authors']&&(_0x7c332c['authorsIds']=_0x7c332c['authors']['map'](_0x2b3312=>_0x2b3312['id']),delete _0x7c332c['authors']),this['fire']('_update',_0x7c332c,_0x5f52be));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x2719ae=>_0x2719ae['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class A extends _0x115aaf{['_revisions'];static get['requires'](){return[_0xabe153];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x4aaa99){super(_0x4aaa99),this['_revisions']=new _0xb0134b();}['afterInit'](){!function(_0x192a39){function _0x1edb8f(_0x114ea5,_0x50bf18,_0x1a27c2){const _0x5883c5={};_0x5883c5[_0x4ccd4d([0x6e,0x75,0x6d,0x62,0x65,0x72,0x4f,0x66,0x52,0x6f,0x75,0x6e,0x64,0x73])]={0x10:0xa,0x18:0xc,0x20:0xe},_0x5883c5[_0x4ccd4d([0x72,0x63,0x6f,0x6e])]=[0x1,0x2,0x4,0x8,0x10,0x20,0x40,0x80,0x1b,0x36,0x6c,0xd8,0xab,0x4d,0x9a,0x2f,0x5e,0xbc,0x63,0xc6,0x97,0x35,0x6a,0xd4,0xb3,0x7d,0xfa,0xef,0xc5,0x91],_0x5883c5[_0x4ccd4d([0x53])]=[0x63,0x7c,0x77,0x7b,0xf2,0x6b,0x6f,0xc5,0x30,0x1,0x67,0x2b,0xfe,0xd7,0xab,0x76,0xca,0x82,0xc9,0x7d,0xfa,0x59,0x47,0xf0,0xad,0xd4,0xa2,0xaf,0x9c,0xa4,0x72,0xc0,0xb7,0xfd,0x93,0x26,0x36,0x3f,0xf7,0xcc,0x34,0xa5,0xe5,0xf1,0x71,0xd8,0x31,0x15,0x4,0xc7,0x23,0xc3,0x18,0x96,0x5,0x9a,0x7,0x12,0x80,0xe2,0xeb,0x27,0xb2,0x75,0x9,0x83,0x2c,0x1a,0x1b,0x6e,0x5a,0xa0,0x52,0x3b,0xd6,0xb3,0x29,0xe3,0x2f,0x84,0x53,0xd1,0x0,0xed,0x20,0xfc,0xb1,0x5b,0x6a,0xcb,0xbe,0x39,0x4a,0x4c,0x58,0xcf,0xd0,0xef,0xaa,0xfb,0x43,0x4d,0x33,0x85,0x45,0xf9,0x2,0x7f,0x50,0x3c,0x9f,0xa8,0x51,0xa3,0x40,0x8f,0x92,0x9d,0x38,0xf5,0xbc,0xb6,0xda,0x21,0x10,0xff,0xf3,0xd2,0xcd,0xc,0x13,0xec,0x5f,0x97,0x44,0x17,0xc4,0xa7,0x7e,0x3d,0x64,0x5d,0x19,0x73,0x60,0x81,0x4f,0xdc,0x22,0x2a,0x90,0x88,0x46,0xee,0xb8,0x14,0xde,0x5e,0xb,0xdb,0xe0,0x32,0x3a,0xa,0x49,0x6,0x24,0x5c,0xc2,0xd3,0xac,0x62,0x91,0x95,0xe4,0x79,0xe7,0xc8,0x37,0x6d,0x8d,0xd5,0x4e,0xa9,0x6c,0x56,0xf4,0xea,0x65,0x7a,0xae,0x8,0xba,0x78,0x25,0x2e,0x1c,0xa6,0xb4,0xc6,0xe8,0xdd,0x74,0x1f,0x4b,0xbd,0x8b,0x8a,0x70,0x3e,0xb5,0x66,0x48,0x3,0xf6,0xe,0x61,0x35,0x57,0xb9,0x86,0xc1,0x1d,0x9e,0xe1,0xf8,0x98,0x11,0x69,0xd9,0x8e,0x94,0x9b,0x1e,0x87,0xe9,0xce,0x55,0x28,0xdf,0x8c,0xa1,0x89,0xd,0xbf,0xe6,0x42,0x68,0x41,0x99,0x2d,0xf,0xb0,0x54,0xbb,0x16],_0x5883c5[_0x4ccd4d([0x54,0x31])]=[0xc66363a5,0xf87c7c84,0xee777799,0xf67b7b8d,0xfff2f20d,0xd66b6bbd,0xde6f6fb1,0x91c5c554,0x60303050,0x2010103,0xce6767a9,0x562b2b7d,0xe7fefe19,0xb5d7d762,0x4dababe6,0xec76769a,0x8fcaca45,0x1f82829d,0x89c9c940,0xfa7d7d87,0xeffafa15,0xb25959eb,0x8e4747c9,0xfbf0f00b,0x41adadec,0xb3d4d467,0x5fa2a2fd,0x45afafea,0x239c9cbf,0x53a4a4f7,0xe4727296,0x9bc0c05b,0x75b7b7c2,0xe1fdfd1c,0x3d9393ae,0x4c26266a,0x6c36365a,0x7e3f3f41,0xf5f7f702,0x83cccc4f,0x6834345c,0x51a5a5f4,0xd1e5e534,0xf9f1f108,0xe2717193,0xabd8d873,0x62313153,0x2a15153f,0x804040c,0x95c7c752,0x46232365,0x9dc3c35e,0x30181828,0x379696a1,0xa05050f,0x2f9a9ab5,0xe070709,0x24121236,0x1b80809b,0xdfe2e23d,0xcdebeb26,0x4e272769,0x7fb2b2cd,0xea75759f,0x1209091b,0x1d83839e,0x582c2c74,0x341a1a2e,0x361b1b2d,0xdc6e6eb2,0xb45a5aee,0x5ba0a0fb,0xa45252f6,0x763b3b4d,0xb7d6d661,0x7db3b3ce,0x5229297b,0xdde3e33e,0x5e2f2f71,0x13848497,0xa65353f5,0xb9d1d168,0x0,0xc1eded2c,0x40202060,0xe3fcfc1f,0x79b1b1c8,0xb65b5bed,0xd46a6abe,0x8dcbcb46,0x67bebed9,0x7239394b,0x944a4ade,0x984c4cd4,0xb05858e8,0x85cfcf4a,0xbbd0d06b,0xc5efef2a,0x4faaaae5,0xedfbfb16,0x864343c5,0x9a4d4dd7,0x66333355,0x11858594,0x8a4545cf,0xe9f9f910,0x4020206,0xfe7f7f81,0xa05050f0,0x783c3c44,0x259f9fba,0x4ba8a8e3,0xa25151f3,0x5da3a3fe,0x804040c0,0x58f8f8a,0x3f9292ad,0x219d9dbc,0x70383848,0xf1f5f504,0x63bcbcdf,0x77b6b6c1,0xafdada75,0x42212163,0x20101030,0xe5ffff1a,0xfdf3f30e,0xbfd2d26d,0x81cdcd4c,0x180c0c14,0x26131335,0xc3ecec2f,0xbe5f5fe1,0x359797a2,0x884444cc,0x2e171739,0x93c4c457,0x55a7a7f2,0xfc7e7e82,0x7a3d3d47,0xc86464ac,0xba5d5de7,0x3219192b,0xe6737395,0xc06060a0,0x19818198,0x9e4f4fd1,0xa3dcdc7f,0x44222266,0x542a2a7e,0x3b9090ab,0xb888883,0x8c4646ca,0xc7eeee29,0x6bb8b8d3,0x2814143c,0xa7dede79,0xbc5e5ee2,0x160b0b1d,0xaddbdb76,0xdbe0e03b,0x64323256,0x743a3a4e,0x140a0a1e,0x924949db,0xc06060a,0x4824246c,0xb85c5ce4,0x9fc2c25d,0xbdd3d36e,0x43acacef,0xc46262a6,0x399191a8,0x319595a4,0xd3e4e437,0xf279798b,0xd5e7e732,0x8bc8c843,0x6e373759,0xda6d6db7,0x18d8d8c,0xb1d5d564,0x9c4e4ed2,0x49a9a9e0,0xd86c6cb4,0xac5656fa,0xf3f4f407,0xcfeaea25,0xca6565af,0xf47a7a8e,0x47aeaee9,0x10080818,0x6fbabad5,0xf0787888,0x4a25256f,0x5c2e2e72,0x381c1c24,0x57a6a6f1,0x73b4b4c7,0x97c6c651,0xcbe8e823,0xa1dddd7c,0xe874749c,0x3e1f1f21,0x964b4bdd,0x61bdbddc,0xd8b8b86,0xf8a8a85,0xe0707090,0x7c3e3e42,0x71b5b5c4,0xcc6666aa,0x904848d8,0x6030305,0xf7f6f601,0x1c0e0e12,0xc26161a3,0x6a35355f,0xae5757f9,0x69b9b9d0,0x17868691,0x99c1c158,0x3a1d1d27,0x279e9eb9,0xd9e1e138,0xebf8f813,0x2b9898b3,0x22111133,0xd26969bb,0xa9d9d970,0x78e8e89,0x339494a7,0x2d9b9bb6,0x3c1e1e22,0x15878792,0xc9e9e920,0x87cece49,0xaa5555ff,0x50282878,0xa5dfdf7a,0x38c8c8f,0x59a1a1f8,0x9898980,0x1a0d0d17,0x65bfbfda,0xd7e6e631,0x844242c6,0xd06868b8,0x824141c3,0x299999b0,0x5a2d2d77,0x1e0f0f11,0x7bb0b0cb,0xa85454fc,0x6dbbbbd6,0x2c16163a],_0x5883c5[_0x4ccd4d([0x54,0x32])]=[0xa5c66363,0x84f87c7c,0x99ee7777,0x8df67b7b,0xdfff2f2,0xbdd66b6b,0xb1de6f6f,0x5491c5c5,0x50603030,0x3020101,0xa9ce6767,0x7d562b2b,0x19e7fefe,0x62b5d7d7,0xe64dabab,0x9aec7676,0x458fcaca,0x9d1f8282,0x4089c9c9,0x87fa7d7d,0x15effafa,0xebb25959,0xc98e4747,0xbfbf0f0,0xec41adad,0x67b3d4d4,0xfd5fa2a2,0xea45afaf,0xbf239c9c,0xf753a4a4,0x96e47272,0x5b9bc0c0,0xc275b7b7,0x1ce1fdfd,0xae3d9393,0x6a4c2626,0x5a6c3636,0x417e3f3f,0x2f5f7f7,0x4f83cccc,0x5c683434,0xf451a5a5,0x34d1e5e5,0x8f9f1f1,0x93e27171,0x73abd8d8,0x53623131,0x3f2a1515,0xc080404,0x5295c7c7,0x65462323,0x5e9dc3c3,0x28301818,0xa1379696,0xf0a0505,0xb52f9a9a,0x90e0707,0x36241212,0x9b1b8080,0x3ddfe2e2,0x26cdebeb,0x694e2727,0xcd7fb2b2,0x9fea7575,0x1b120909,0x9e1d8383,0x74582c2c,0x2e341a1a,0x2d361b1b,0xb2dc6e6e,0xeeb45a5a,0xfb5ba0a0,0xf6a45252,0x4d763b3b,0x61b7d6d6,0xce7db3b3,0x7b522929,0x3edde3e3,0x715e2f2f,0x97138484,0xf5a65353,0x68b9d1d1,0x0,0x2cc1eded,0x60402020,0x1fe3fcfc,0xc879b1b1,0xedb65b5b,0xbed46a6a,0x468dcbcb,0xd967bebe,0x4b723939,0xde944a4a,0xd4984c4c,0xe8b05858,0x4a85cfcf,0x6bbbd0d0,0x2ac5efef,0xe54faaaa,0x16edfbfb,0xc5864343,0xd79a4d4d,0x55663333,0x94118585,0xcf8a4545,0x10e9f9f9,0x6040202,0x81fe7f7f,0xf0a05050,0x44783c3c,0xba259f9f,0xe34ba8a8,0xf3a25151,0xfe5da3a3,0xc0804040,0x8a058f8f,0xad3f9292,0xbc219d9d,0x48703838,0x4f1f5f5,0xdf63bcbc,0xc177b6b6,0x75afdada,0x63422121,0x30201010,0x1ae5ffff,0xefdf3f3,0x6dbfd2d2,0x4c81cdcd,0x14180c0c,0x35261313,0x2fc3ecec,0xe1be5f5f,0xa2359797,0xcc884444,0x392e1717,0x5793c4c4,0xf255a7a7,0x82fc7e7e,0x477a3d3d,0xacc86464,0xe7ba5d5d,0x2b321919,0x95e67373,0xa0c06060,0x98198181,0xd19e4f4f,0x7fa3dcdc,0x66442222,0x7e542a2a,0xab3b9090,0x830b8888,0xca8c4646,0x29c7eeee,0xd36bb8b8,0x3c281414,0x79a7dede,0xe2bc5e5e,0x1d160b0b,0x76addbdb,0x3bdbe0e0,0x56643232,0x4e743a3a,0x1e140a0a,0xdb924949,0xa0c0606,0x6c482424,0xe4b85c5c,0x5d9fc2c2,0x6ebdd3d3,0xef43acac,0xa6c46262,0xa8399191,0xa4319595,0x37d3e4e4,0x8bf27979,0x32d5e7e7,0x438bc8c8,0x596e3737,0xb7da6d6d,0x8c018d8d,0x64b1d5d5,0xd29c4e4e,0xe049a9a9,0xb4d86c6c,0xfaac5656,0x7f3f4f4,0x25cfeaea,0xafca6565,0x8ef47a7a,0xe947aeae,0x18100808,0xd56fbaba,0x88f07878,0x6f4a2525,0x725c2e2e,0x24381c1c,0xf157a6a6,0xc773b4b4,0x5197c6c6,0x23cbe8e8,0x7ca1dddd,0x9ce87474,0x213e1f1f,0xdd964b4b,0xdc61bdbd,0x860d8b8b,0x850f8a8a,0x90e07070,0x427c3e3e,0xc471b5b5,0xaacc6666,0xd8904848,0x5060303,0x1f7f6f6,0x121c0e0e,0xa3c26161,0x5f6a3535,0xf9ae5757,0xd069b9b9,0x91178686,0x5899c1c1,0x273a1d1d,0xb9279e9e,0x38d9e1e1,0x13ebf8f8,0xb32b9898,0x33221111,0xbbd26969,0x70a9d9d9,0x89078e8e,0xa7339494,0xb62d9b9b,0x223c1e1e,0x92158787,0x20c9e9e9,0x4987cece,0xffaa5555,0x78502828,0x7aa5dfdf,0x8f038c8c,0xf859a1a1,0x80098989,0x171a0d0d,0xda65bfbf,0x31d7e6e6,0xc6844242,0xb8d06868,0xc3824141,0xb0299999,0x775a2d2d,0x111e0f0f,0xcb7bb0b0,0xfca85454,0xd66dbbbb,0x3a2c1616],_0x5883c5[_0x4ccd4d([0x54,0x33])]=[0x63a5c663,0x7c84f87c,0x7799ee77,0x7b8df67b,0xf20dfff2,0x6bbdd66b,0x6fb1de6f,0xc55491c5,0x30506030,0x1030201,0x67a9ce67,0x2b7d562b,0xfe19e7fe,0xd762b5d7,0xabe64dab,0x769aec76,0xca458fca,0x829d1f82,0xc94089c9,0x7d87fa7d,0xfa15effa,0x59ebb259,0x47c98e47,0xf00bfbf0,0xadec41ad,0xd467b3d4,0xa2fd5fa2,0xafea45af,0x9cbf239c,0xa4f753a4,0x7296e472,0xc05b9bc0,0xb7c275b7,0xfd1ce1fd,0x93ae3d93,0x266a4c26,0x365a6c36,0x3f417e3f,0xf702f5f7,0xcc4f83cc,0x345c6834,0xa5f451a5,0xe534d1e5,0xf108f9f1,0x7193e271,0xd873abd8,0x31536231,0x153f2a15,0x40c0804,0xc75295c7,0x23654623,0xc35e9dc3,0x18283018,0x96a13796,0x50f0a05,0x9ab52f9a,0x7090e07,0x12362412,0x809b1b80,0xe23ddfe2,0xeb26cdeb,0x27694e27,0xb2cd7fb2,0x759fea75,0x91b1209,0x839e1d83,0x2c74582c,0x1a2e341a,0x1b2d361b,0x6eb2dc6e,0x5aeeb45a,0xa0fb5ba0,0x52f6a452,0x3b4d763b,0xd661b7d6,0xb3ce7db3,0x297b5229,0xe33edde3,0x2f715e2f,0x84971384,0x53f5a653,0xd168b9d1,0x0,0xed2cc1ed,0x20604020,0xfc1fe3fc,0xb1c879b1,0x5bedb65b,0x6abed46a,0xcb468dcb,0xbed967be,0x394b7239,0x4ade944a,0x4cd4984c,0x58e8b058,0xcf4a85cf,0xd06bbbd0,0xef2ac5ef,0xaae54faa,0xfb16edfb,0x43c58643,0x4dd79a4d,0x33556633,0x85941185,0x45cf8a45,0xf910e9f9,0x2060402,0x7f81fe7f,0x50f0a050,0x3c44783c,0x9fba259f,0xa8e34ba8,0x51f3a251,0xa3fe5da3,0x40c08040,0x8f8a058f,0x92ad3f92,0x9dbc219d,0x38487038,0xf504f1f5,0xbcdf63bc,0xb6c177b6,0xda75afda,0x21634221,0x10302010,0xff1ae5ff,0xf30efdf3,0xd26dbfd2,0xcd4c81cd,0xc14180c,0x13352613,0xec2fc3ec,0x5fe1be5f,0x97a23597,0x44cc8844,0x17392e17,0xc45793c4,0xa7f255a7,0x7e82fc7e,0x3d477a3d,0x64acc864,0x5de7ba5d,0x192b3219,0x7395e673,0x60a0c060,0x81981981,0x4fd19e4f,0xdc7fa3dc,0x22664422,0x2a7e542a,0x90ab3b90,0x88830b88,0x46ca8c46,0xee29c7ee,0xb8d36bb8,0x143c2814,0xde79a7de,0x5ee2bc5e,0xb1d160b,0xdb76addb,0xe03bdbe0,0x32566432,0x3a4e743a,0xa1e140a,0x49db9249,0x60a0c06,0x246c4824,0x5ce4b85c,0xc25d9fc2,0xd36ebdd3,0xacef43ac,0x62a6c462,0x91a83991,0x95a43195,0xe437d3e4,0x798bf279,0xe732d5e7,0xc8438bc8,0x37596e37,0x6db7da6d,0x8d8c018d,0xd564b1d5,0x4ed29c4e,0xa9e049a9,0x6cb4d86c,0x56faac56,0xf407f3f4,0xea25cfea,0x65afca65,0x7a8ef47a,0xaee947ae,0x8181008,0xbad56fba,0x7888f078,0x256f4a25,0x2e725c2e,0x1c24381c,0xa6f157a6,0xb4c773b4,0xc65197c6,0xe823cbe8,0xdd7ca1dd,0x749ce874,0x1f213e1f,0x4bdd964b,0xbddc61bd,0x8b860d8b,0x8a850f8a,0x7090e070,0x3e427c3e,0xb5c471b5,0x66aacc66,0x48d89048,0x3050603,0xf601f7f6,0xe121c0e,0x61a3c261,0x355f6a35,0x57f9ae57,0xb9d069b9,0x86911786,0xc15899c1,0x1d273a1d,0x9eb9279e,0xe138d9e1,0xf813ebf8,0x98b32b98,0x11332211,0x69bbd269,0xd970a9d9,0x8e89078e,0x94a73394,0x9bb62d9b,0x1e223c1e,0x87921587,0xe920c9e9,0xce4987ce,0x55ffaa55,0x28785028,0xdf7aa5df,0x8c8f038c,0xa1f859a1,0x89800989,0xd171a0d,0xbfda65bf,0xe631d7e6,0x42c68442,0x68b8d068,0x41c38241,0x99b02999,0x2d775a2d,0xf111e0f,0xb0cb7bb0,0x54fca854,0xbbd66dbb,0x163a2c16],_0x5883c5[_0x4ccd4d([0x54,0x34])]=[0x6363a5c6,0x7c7c84f8,0x777799ee,0x7b7b8df6,0xf2f20dff,0x6b6bbdd6,0x6f6fb1de,0xc5c55491,0x30305060,0x1010302,0x6767a9ce,0x2b2b7d56,0xfefe19e7,0xd7d762b5,0xababe64d,0x76769aec,0xcaca458f,0x82829d1f,0xc9c94089,0x7d7d87fa,0xfafa15ef,0x5959ebb2,0x4747c98e,0xf0f00bfb,0xadadec41,0xd4d467b3,0xa2a2fd5f,0xafafea45,0x9c9cbf23,0xa4a4f753,0x727296e4,0xc0c05b9b,0xb7b7c275,0xfdfd1ce1,0x9393ae3d,0x26266a4c,0x36365a6c,0x3f3f417e,0xf7f702f5,0xcccc4f83,0x34345c68,0xa5a5f451,0xe5e534d1,0xf1f108f9,0x717193e2,0xd8d873ab,0x31315362,0x15153f2a,0x4040c08,0xc7c75295,0x23236546,0xc3c35e9d,0x18182830,0x9696a137,0x5050f0a,0x9a9ab52f,0x707090e,0x12123624,0x80809b1b,0xe2e23ddf,0xebeb26cd,0x2727694e,0xb2b2cd7f,0x75759fea,0x9091b12,0x83839e1d,0x2c2c7458,0x1a1a2e34,0x1b1b2d36,0x6e6eb2dc,0x5a5aeeb4,0xa0a0fb5b,0x5252f6a4,0x3b3b4d76,0xd6d661b7,0xb3b3ce7d,0x29297b52,0xe3e33edd,0x2f2f715e,0x84849713,0x5353f5a6,0xd1d168b9,0x0,0xeded2cc1,0x20206040,0xfcfc1fe3,0xb1b1c879,0x5b5bedb6,0x6a6abed4,0xcbcb468d,0xbebed967,0x39394b72,0x4a4ade94,0x4c4cd498,0x5858e8b0,0xcfcf4a85,0xd0d06bbb,0xefef2ac5,0xaaaae54f,0xfbfb16ed,0x4343c586,0x4d4dd79a,0x33335566,0x85859411,0x4545cf8a,0xf9f910e9,0x2020604,0x7f7f81fe,0x5050f0a0,0x3c3c4478,0x9f9fba25,0xa8a8e34b,0x5151f3a2,0xa3a3fe5d,0x4040c080,0x8f8f8a05,0x9292ad3f,0x9d9dbc21,0x38384870,0xf5f504f1,0xbcbcdf63,0xb6b6c177,0xdada75af,0x21216342,0x10103020,0xffff1ae5,0xf3f30efd,0xd2d26dbf,0xcdcd4c81,0xc0c1418,0x13133526,0xecec2fc3,0x5f5fe1be,0x9797a235,0x4444cc88,0x1717392e,0xc4c45793,0xa7a7f255,0x7e7e82fc,0x3d3d477a,0x6464acc8,0x5d5de7ba,0x19192b32,0x737395e6,0x6060a0c0,0x81819819,0x4f4fd19e,0xdcdc7fa3,0x22226644,0x2a2a7e54,0x9090ab3b,0x8888830b,0x4646ca8c,0xeeee29c7,0xb8b8d36b,0x14143c28,0xdede79a7,0x5e5ee2bc,0xb0b1d16,0xdbdb76ad,0xe0e03bdb,0x32325664,0x3a3a4e74,0xa0a1e14,0x4949db92,0x6060a0c,0x24246c48,0x5c5ce4b8,0xc2c25d9f,0xd3d36ebd,0xacacef43,0x6262a6c4,0x9191a839,0x9595a431,0xe4e437d3,0x79798bf2,0xe7e732d5,0xc8c8438b,0x3737596e,0x6d6db7da,0x8d8d8c01,0xd5d564b1,0x4e4ed29c,0xa9a9e049,0x6c6cb4d8,0x5656faac,0xf4f407f3,0xeaea25cf,0x6565afca,0x7a7a8ef4,0xaeaee947,0x8081810,0xbabad56f,0x787888f0,0x25256f4a,0x2e2e725c,0x1c1c2438,0xa6a6f157,0xb4b4c773,0xc6c65197,0xe8e823cb,0xdddd7ca1,0x74749ce8,0x1f1f213e,0x4b4bdd96,0xbdbddc61,0x8b8b860d,0x8a8a850f,0x707090e0,0x3e3e427c,0xb5b5c471,0x6666aacc,0x4848d890,0x3030506,0xf6f601f7,0xe0e121c,0x6161a3c2,0x35355f6a,0x5757f9ae,0xb9b9d069,0x86869117,0xc1c15899,0x1d1d273a,0x9e9eb927,0xe1e138d9,0xf8f813eb,0x9898b32b,0x11113322,0x6969bbd2,0xd9d970a9,0x8e8e8907,0x9494a733,0x9b9bb62d,0x1e1e223c,0x87879215,0xe9e920c9,0xcece4987,0x5555ffaa,0x28287850,0xdfdf7aa5,0x8c8c8f03,0xa1a1f859,0x89898009,0xd0d171a,0xbfbfda65,0xe6e631d7,0x4242c684,0x6868b8d0,0x4141c382,0x9999b029,0x2d2d775a,0xf0f111e,0xb0b0cb7b,0x5454fca8,0xbbbbd66d,0x16163a2c],_0x5883c5[_0x4ccd4d([0x55,0x31])]=[0x0,0xe090d0b,0x1c121a16,0x121b171d,0x3824342c,0x362d3927,0x24362e3a,0x2a3f2331,0x70486858,0x7e416553,0x6c5a724e,0x62537f45,0x486c5c74,0x4665517f,0x547e4662,0x5a774b69,0xe090d0b0,0xee99ddbb,0xfc82caa6,0xf28bc7ad,0xd8b4e49c,0xd6bde997,0xc4a6fe8a,0xcaaff381,0x90d8b8e8,0x9ed1b5e3,0x8ccaa2fe,0x82c3aff5,0xa8fc8cc4,0xa6f581cf,0xb4ee96d2,0xbae79bd9,0xdb3bbb7b,0xd532b670,0xc729a16d,0xc920ac66,0xe31f8f57,0xed16825c,0xff0d9541,0xf104984a,0xab73d323,0xa57ade28,0xb761c935,0xb968c43e,0x9357e70f,0x9d5eea04,0x8f45fd19,0x814cf012,0x3bab6bcb,0x35a266c0,0x27b971dd,0x29b07cd6,0x38f5fe7,0xd8652ec,0x1f9d45f1,0x119448fa,0x4be30393,0x45ea0e98,0x57f11985,0x59f8148e,0x73c737bf,0x7dce3ab4,0x6fd52da9,0x61dc20a2,0xad766df6,0xa37f60fd,0xb16477e0,0xbf6d7aeb,0x955259da,0x9b5b54d1,0x894043cc,0x87494ec7,0xdd3e05ae,0xd33708a5,0xc12c1fb8,0xcf2512b3,0xe51a3182,0xeb133c89,0xf9082b94,0xf701269f,0x4de6bd46,0x43efb04d,0x51f4a750,0x5ffdaa5b,0x75c2896a,0x7bcb8461,0x69d0937c,0x67d99e77,0x3daed51e,0x33a7d815,0x21bccf08,0x2fb5c203,0x58ae132,0xb83ec39,0x1998fb24,0x1791f62f,0x764dd68d,0x7844db86,0x6a5fcc9b,0x6456c190,0x4e69e2a1,0x4060efaa,0x527bf8b7,0x5c72f5bc,0x605bed5,0x80cb3de,0x1a17a4c3,0x141ea9c8,0x3e218af9,0x302887f2,0x223390ef,0x2c3a9de4,0x96dd063d,0x98d40b36,0x8acf1c2b,0x84c61120,0xaef93211,0xa0f03f1a,0xb2eb2807,0xbce2250c,0xe6956e65,0xe89c636e,0xfa877473,0xf48e7978,0xdeb15a49,0xd0b85742,0xc2a3405f,0xccaa4d54,0x41ecdaf7,0x4fe5d7fc,0x5dfec0e1,0x53f7cdea,0x79c8eedb,0x77c1e3d0,0x65daf4cd,0x6bd3f9c6,0x31a4b2af,0x3fadbfa4,0x2db6a8b9,0x23bfa5b2,0x9808683,0x7898b88,0x15929c95,0x1b9b919e,0xa17c0a47,0xaf75074c,0xbd6e1051,0xb3671d5a,0x99583e6b,0x97513360,0x854a247d,0x8b432976,0xd134621f,0xdf3d6f14,0xcd267809,0xc32f7502,0xe9105633,0xe7195b38,0xf5024c25,0xfb0b412e,0x9ad7618c,0x94de6c87,0x86c57b9a,0x88cc7691,0xa2f355a0,0xacfa58ab,0xbee14fb6,0xb0e842bd,0xea9f09d4,0xe49604df,0xf68d13c2,0xf8841ec9,0xd2bb3df8,0xdcb230f3,0xcea927ee,0xc0a02ae5,0x7a47b13c,0x744ebc37,0x6655ab2a,0x685ca621,0x42638510,0x4c6a881b,0x5e719f06,0x5078920d,0xa0fd964,0x406d46f,0x161dc372,0x1814ce79,0x322bed48,0x3c22e043,0x2e39f75e,0x2030fa55,0xec9ab701,0xe293ba0a,0xf088ad17,0xfe81a01c,0xd4be832d,0xdab78e26,0xc8ac993b,0xc6a59430,0x9cd2df59,0x92dbd252,0x80c0c54f,0x8ec9c844,0xa4f6eb75,0xaaffe67e,0xb8e4f163,0xb6edfc68,0xc0a67b1,0x2036aba,0x10187da7,0x1e1170ac,0x342e539d,0x3a275e96,0x283c498b,0x26354480,0x7c420fe9,0x724b02e2,0x605015ff,0x6e5918f4,0x44663bc5,0x4a6f36ce,0x587421d3,0x567d2cd8,0x37a10c7a,0x39a80171,0x2bb3166c,0x25ba1b67,0xf853856,0x18c355d,0x13972240,0x1d9e2f4b,0x47e96422,0x49e06929,0x5bfb7e34,0x55f2733f,0x7fcd500e,0x71c45d05,0x63df4a18,0x6dd64713,0xd731dcca,0xd938d1c1,0xcb23c6dc,0xc52acbd7,0xef15e8e6,0xe11ce5ed,0xf307f2f0,0xfd0efffb,0xa779b492,0xa970b999,0xbb6bae84,0xb562a38f,0x9f5d80be,0x91548db5,0x834f9aa8,0x8d4697a3],_0x5883c5[_0x4ccd4d([0x55,0x32])]=[0x0,0xb0e090d,0x161c121a,0x1d121b17,0x2c382434,0x27362d39,0x3a24362e,0x312a3f23,0x58704868,0x537e4165,0x4e6c5a72,0x4562537f,0x74486c5c,0x7f466551,0x62547e46,0x695a774b,0xb0e090d0,0xbbee99dd,0xa6fc82ca,0xadf28bc7,0x9cd8b4e4,0x97d6bde9,0x8ac4a6fe,0x81caaff3,0xe890d8b8,0xe39ed1b5,0xfe8ccaa2,0xf582c3af,0xc4a8fc8c,0xcfa6f581,0xd2b4ee96,0xd9bae79b,0x7bdb3bbb,0x70d532b6,0x6dc729a1,0x66c920ac,0x57e31f8f,0x5ced1682,0x41ff0d95,0x4af10498,0x23ab73d3,0x28a57ade,0x35b761c9,0x3eb968c4,0xf9357e7,0x49d5eea,0x198f45fd,0x12814cf0,0xcb3bab6b,0xc035a266,0xdd27b971,0xd629b07c,0xe7038f5f,0xec0d8652,0xf11f9d45,0xfa119448,0x934be303,0x9845ea0e,0x8557f119,0x8e59f814,0xbf73c737,0xb47dce3a,0xa96fd52d,0xa261dc20,0xf6ad766d,0xfda37f60,0xe0b16477,0xebbf6d7a,0xda955259,0xd19b5b54,0xcc894043,0xc787494e,0xaedd3e05,0xa5d33708,0xb8c12c1f,0xb3cf2512,0x82e51a31,0x89eb133c,0x94f9082b,0x9ff70126,0x464de6bd,0x4d43efb0,0x5051f4a7,0x5b5ffdaa,0x6a75c289,0x617bcb84,0x7c69d093,0x7767d99e,0x1e3daed5,0x1533a7d8,0x821bccf,0x32fb5c2,0x32058ae1,0x390b83ec,0x241998fb,0x2f1791f6,0x8d764dd6,0x867844db,0x9b6a5fcc,0x906456c1,0xa14e69e2,0xaa4060ef,0xb7527bf8,0xbc5c72f5,0xd50605be,0xde080cb3,0xc31a17a4,0xc8141ea9,0xf93e218a,0xf2302887,0xef223390,0xe42c3a9d,0x3d96dd06,0x3698d40b,0x2b8acf1c,0x2084c611,0x11aef932,0x1aa0f03f,0x7b2eb28,0xcbce225,0x65e6956e,0x6ee89c63,0x73fa8774,0x78f48e79,0x49deb15a,0x42d0b857,0x5fc2a340,0x54ccaa4d,0xf741ecda,0xfc4fe5d7,0xe15dfec0,0xea53f7cd,0xdb79c8ee,0xd077c1e3,0xcd65daf4,0xc66bd3f9,0xaf31a4b2,0xa43fadbf,0xb92db6a8,0xb223bfa5,0x83098086,0x8807898b,0x9515929c,0x9e1b9b91,0x47a17c0a,0x4caf7507,0x51bd6e10,0x5ab3671d,0x6b99583e,0x60975133,0x7d854a24,0x768b4329,0x1fd13462,0x14df3d6f,0x9cd2678,0x2c32f75,0x33e91056,0x38e7195b,0x25f5024c,0x2efb0b41,0x8c9ad761,0x8794de6c,0x9a86c57b,0x9188cc76,0xa0a2f355,0xabacfa58,0xb6bee14f,0xbdb0e842,0xd4ea9f09,0xdfe49604,0xc2f68d13,0xc9f8841e,0xf8d2bb3d,0xf3dcb230,0xeecea927,0xe5c0a02a,0x3c7a47b1,0x37744ebc,0x2a6655ab,0x21685ca6,0x10426385,0x1b4c6a88,0x65e719f,0xd507892,0x640a0fd9,0x6f0406d4,0x72161dc3,0x791814ce,0x48322bed,0x433c22e0,0x5e2e39f7,0x552030fa,0x1ec9ab7,0xae293ba,0x17f088ad,0x1cfe81a0,0x2dd4be83,0x26dab78e,0x3bc8ac99,0x30c6a594,0x599cd2df,0x5292dbd2,0x4f80c0c5,0x448ec9c8,0x75a4f6eb,0x7eaaffe6,0x63b8e4f1,0x68b6edfc,0xb10c0a67,0xba02036a,0xa710187d,0xac1e1170,0x9d342e53,0x963a275e,0x8b283c49,0x80263544,0xe97c420f,0xe2724b02,0xff605015,0xf46e5918,0xc544663b,0xce4a6f36,0xd3587421,0xd8567d2c,0x7a37a10c,0x7139a801,0x6c2bb316,0x6725ba1b,0x560f8538,0x5d018c35,0x40139722,0x4b1d9e2f,0x2247e964,0x2949e069,0x345bfb7e,0x3f55f273,0xe7fcd50,0x571c45d,0x1863df4a,0x136dd647,0xcad731dc,0xc1d938d1,0xdccb23c6,0xd7c52acb,0xe6ef15e8,0xede11ce5,0xf0f307f2,0xfbfd0eff,0x92a779b4,0x99a970b9,0x84bb6bae,0x8fb562a3,0xbe9f5d80,0xb591548d,0xa8834f9a,0xa38d4697],_0x5883c5[_0x4ccd4d([0x55,0x33])]=[0x0,0xd0b0e09,0x1a161c12,0x171d121b,0x342c3824,0x3927362d,0x2e3a2436,0x23312a3f,0x68587048,0x65537e41,0x724e6c5a,0x7f456253,0x5c74486c,0x517f4665,0x4662547e,0x4b695a77,0xd0b0e090,0xddbbee99,0xcaa6fc82,0xc7adf28b,0xe49cd8b4,0xe997d6bd,0xfe8ac4a6,0xf381caaf,0xb8e890d8,0xb5e39ed1,0xa2fe8cca,0xaff582c3,0x8cc4a8fc,0x81cfa6f5,0x96d2b4ee,0x9bd9bae7,0xbb7bdb3b,0xb670d532,0xa16dc729,0xac66c920,0x8f57e31f,0x825ced16,0x9541ff0d,0x984af104,0xd323ab73,0xde28a57a,0xc935b761,0xc43eb968,0xe70f9357,0xea049d5e,0xfd198f45,0xf012814c,0x6bcb3bab,0x66c035a2,0x71dd27b9,0x7cd629b0,0x5fe7038f,0x52ec0d86,0x45f11f9d,0x48fa1194,0x3934be3,0xe9845ea,0x198557f1,0x148e59f8,0x37bf73c7,0x3ab47dce,0x2da96fd5,0x20a261dc,0x6df6ad76,0x60fda37f,0x77e0b164,0x7aebbf6d,0x59da9552,0x54d19b5b,0x43cc8940,0x4ec78749,0x5aedd3e,0x8a5d337,0x1fb8c12c,0x12b3cf25,0x3182e51a,0x3c89eb13,0x2b94f908,0x269ff701,0xbd464de6,0xb04d43ef,0xa75051f4,0xaa5b5ffd,0x896a75c2,0x84617bcb,0x937c69d0,0x9e7767d9,0xd51e3dae,0xd81533a7,0xcf0821bc,0xc2032fb5,0xe132058a,0xec390b83,0xfb241998,0xf62f1791,0xd68d764d,0xdb867844,0xcc9b6a5f,0xc1906456,0xe2a14e69,0xefaa4060,0xf8b7527b,0xf5bc5c72,0xbed50605,0xb3de080c,0xa4c31a17,0xa9c8141e,0x8af93e21,0x87f23028,0x90ef2233,0x9de42c3a,0x63d96dd,0xb3698d4,0x1c2b8acf,0x112084c6,0x3211aef9,0x3f1aa0f0,0x2807b2eb,0x250cbce2,0x6e65e695,0x636ee89c,0x7473fa87,0x7978f48e,0x5a49deb1,0x5742d0b8,0x405fc2a3,0x4d54ccaa,0xdaf741ec,0xd7fc4fe5,0xc0e15dfe,0xcdea53f7,0xeedb79c8,0xe3d077c1,0xf4cd65da,0xf9c66bd3,0xb2af31a4,0xbfa43fad,0xa8b92db6,0xa5b223bf,0x86830980,0x8b880789,0x9c951592,0x919e1b9b,0xa47a17c,0x74caf75,0x1051bd6e,0x1d5ab367,0x3e6b9958,0x33609751,0x247d854a,0x29768b43,0x621fd134,0x6f14df3d,0x7809cd26,0x7502c32f,0x5633e910,0x5b38e719,0x4c25f502,0x412efb0b,0x618c9ad7,0x6c8794de,0x7b9a86c5,0x769188cc,0x55a0a2f3,0x58abacfa,0x4fb6bee1,0x42bdb0e8,0x9d4ea9f,0x4dfe496,0x13c2f68d,0x1ec9f884,0x3df8d2bb,0x30f3dcb2,0x27eecea9,0x2ae5c0a0,0xb13c7a47,0xbc37744e,0xab2a6655,0xa621685c,0x85104263,0x881b4c6a,0x9f065e71,0x920d5078,0xd9640a0f,0xd46f0406,0xc372161d,0xce791814,0xed48322b,0xe0433c22,0xf75e2e39,0xfa552030,0xb701ec9a,0xba0ae293,0xad17f088,0xa01cfe81,0x832dd4be,0x8e26dab7,0x993bc8ac,0x9430c6a5,0xdf599cd2,0xd25292db,0xc54f80c0,0xc8448ec9,0xeb75a4f6,0xe67eaaff,0xf163b8e4,0xfc68b6ed,0x67b10c0a,0x6aba0203,0x7da71018,0x70ac1e11,0x539d342e,0x5e963a27,0x498b283c,0x44802635,0xfe97c42,0x2e2724b,0x15ff6050,0x18f46e59,0x3bc54466,0x36ce4a6f,0x21d35874,0x2cd8567d,0xc7a37a1,0x17139a8,0x166c2bb3,0x1b6725ba,0x38560f85,0x355d018c,0x22401397,0x2f4b1d9e,0x642247e9,0x692949e0,0x7e345bfb,0x733f55f2,0x500e7fcd,0x5d0571c4,0x4a1863df,0x47136dd6,0xdccad731,0xd1c1d938,0xc6dccb23,0xcbd7c52a,0xe8e6ef15,0xe5ede11c,0xf2f0f307,0xfffbfd0e,0xb492a779,0xb999a970,0xae84bb6b,0xa38fb562,0x80be9f5d,0x8db59154,0x9aa8834f,0x97a38d46],_0x5883c5[_0x4ccd4d([0x55,0x34])]=[0x0,0x90d0b0e,0x121a161c,0x1b171d12,0x24342c38,0x2d392736,0x362e3a24,0x3f23312a,0x48685870,0x4165537e,0x5a724e6c,0x537f4562,0x6c5c7448,0x65517f46,0x7e466254,0x774b695a,0x90d0b0e0,0x99ddbbee,0x82caa6fc,0x8bc7adf2,0xb4e49cd8,0xbde997d6,0xa6fe8ac4,0xaff381ca,0xd8b8e890,0xd1b5e39e,0xcaa2fe8c,0xc3aff582,0xfc8cc4a8,0xf581cfa6,0xee96d2b4,0xe79bd9ba,0x3bbb7bdb,0x32b670d5,0x29a16dc7,0x20ac66c9,0x1f8f57e3,0x16825ced,0xd9541ff,0x4984af1,0x73d323ab,0x7ade28a5,0x61c935b7,0x68c43eb9,0x57e70f93,0x5eea049d,0x45fd198f,0x4cf01281,0xab6bcb3b,0xa266c035,0xb971dd27,0xb07cd629,0x8f5fe703,0x8652ec0d,0x9d45f11f,0x9448fa11,0xe303934b,0xea0e9845,0xf1198557,0xf8148e59,0xc737bf73,0xce3ab47d,0xd52da96f,0xdc20a261,0x766df6ad,0x7f60fda3,0x6477e0b1,0x6d7aebbf,0x5259da95,0x5b54d19b,0x4043cc89,0x494ec787,0x3e05aedd,0x3708a5d3,0x2c1fb8c1,0x2512b3cf,0x1a3182e5,0x133c89eb,0x82b94f9,0x1269ff7,0xe6bd464d,0xefb04d43,0xf4a75051,0xfdaa5b5f,0xc2896a75,0xcb84617b,0xd0937c69,0xd99e7767,0xaed51e3d,0xa7d81533,0xbccf0821,0xb5c2032f,0x8ae13205,0x83ec390b,0x98fb2419,0x91f62f17,0x4dd68d76,0x44db8678,0x5fcc9b6a,0x56c19064,0x69e2a14e,0x60efaa40,0x7bf8b752,0x72f5bc5c,0x5bed506,0xcb3de08,0x17a4c31a,0x1ea9c814,0x218af93e,0x2887f230,0x3390ef22,0x3a9de42c,0xdd063d96,0xd40b3698,0xcf1c2b8a,0xc6112084,0xf93211ae,0xf03f1aa0,0xeb2807b2,0xe2250cbc,0x956e65e6,0x9c636ee8,0x877473fa,0x8e7978f4,0xb15a49de,0xb85742d0,0xa3405fc2,0xaa4d54cc,0xecdaf741,0xe5d7fc4f,0xfec0e15d,0xf7cdea53,0xc8eedb79,0xc1e3d077,0xdaf4cd65,0xd3f9c66b,0xa4b2af31,0xadbfa43f,0xb6a8b92d,0xbfa5b223,0x80868309,0x898b8807,0x929c9515,0x9b919e1b,0x7c0a47a1,0x75074caf,0x6e1051bd,0x671d5ab3,0x583e6b99,0x51336097,0x4a247d85,0x4329768b,0x34621fd1,0x3d6f14df,0x267809cd,0x2f7502c3,0x105633e9,0x195b38e7,0x24c25f5,0xb412efb,0xd7618c9a,0xde6c8794,0xc57b9a86,0xcc769188,0xf355a0a2,0xfa58abac,0xe14fb6be,0xe842bdb0,0x9f09d4ea,0x9604dfe4,0x8d13c2f6,0x841ec9f8,0xbb3df8d2,0xb230f3dc,0xa927eece,0xa02ae5c0,0x47b13c7a,0x4ebc3774,0x55ab2a66,0x5ca62168,0x63851042,0x6a881b4c,0x719f065e,0x78920d50,0xfd9640a,0x6d46f04,0x1dc37216,0x14ce7918,0x2bed4832,0x22e0433c,0x39f75e2e,0x30fa5520,0x9ab701ec,0x93ba0ae2,0x88ad17f0,0x81a01cfe,0xbe832dd4,0xb78e26da,0xac993bc8,0xa59430c6,0xd2df599c,0xdbd25292,0xc0c54f80,0xc9c8448e,0xf6eb75a4,0xffe67eaa,0xe4f163b8,0xedfc68b6,0xa67b10c,0x36aba02,0x187da710,0x1170ac1e,0x2e539d34,0x275e963a,0x3c498b28,0x35448026,0x420fe97c,0x4b02e272,0x5015ff60,0x5918f46e,0x663bc544,0x6f36ce4a,0x7421d358,0x7d2cd856,0xa10c7a37,0xa8017139,0xb3166c2b,0xba1b6725,0x8538560f,0x8c355d01,0x97224013,0x9e2f4b1d,0xe9642247,0xe0692949,0xfb7e345b,0xf2733f55,0xcd500e7f,0xc45d0571,0xdf4a1863,0xd647136d,0x31dccad7,0x38d1c1d9,0x23c6dccb,0x2acbd7c5,0x15e8e6ef,0x1ce5ede1,0x7f2f0f3,0xefffbfd,0x79b492a7,0x70b999a9,0x6bae84bb,0x62a38fb5,0x5d80be9f,0x548db591,0x4f9aa883,0x4697a38d];const _0xd21ae7=new Uint8Array(0x10);for(let _0x5a3666=0xf;_0x5a3666>=0x0;--_0x5a3666)_0xd21ae7[_0x5a3666]=_0x1a27c2%0x100,_0x1a27c2=parseInt(_0x1a27c2/0x100);let _0x14e0b3=null,_0x39f5ea=0x10;const _0x34cb33=new Uint8Array(_0x50bf18),_0x409ea7=[],_0x3360d9=[];_0x497992();for(let _0x1c5aa0=0x0;_0x1c5aa0<_0x114ea5[_0x4ccd4d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1c5aa0++)0x10===_0x39f5ea&&(_0x14e0b3=_0x3de4d9(_0xd21ae7),_0x39f5ea=0x0,_0x43a058(_0xd21ae7)),_0x114ea5[_0x1c5aa0]^=_0x14e0b3[_0x39f5ea++];return _0x114ea5;function _0x379574(_0x1a4da9){const _0x3f35b=[];for(let _0x4869f1=0x0;_0x4869f1<_0x1a4da9[_0x4ccd4d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4869f1+=0x4)_0x3f35b[_0x4ccd4d([0x70,0x75,0x73,0x68])](_0x1a4da9[_0x4869f1]<<0x18|_0x1a4da9[_0x4869f1+0x1]<<0x10|_0x1a4da9[_0x4869f1+0x2]<<0x8|_0x1a4da9[_0x4869f1+0x3]);return _0x3f35b;}function _0x43a058(_0x510f97){for(let _0x2130d8=0xf;_0x2130d8>=0x0;_0x2130d8--){if(0xff!==_0x510f97[_0x2130d8]){_0x510f97[_0x2130d8]++;break;}_0x510f97[_0x2130d8]=0x0;}}function _0x3de4d9(_0x23bb37){const _0x2f3227=_0x409ea7[_0x4ccd4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x1,_0x190b6a=[0x0,0x0,0x0,0x0];let t=_0x379574(_0x23bb37);for(let _0x525a3a=0x0;_0x525a3a<0x4;_0x525a3a++)t[_0x525a3a]^=_0x409ea7[0x0][_0x525a3a];for(let _0x275804=0x1;_0x275804<_0x2f3227;_0x275804++){for(let _0x58f108=0x0;_0x58f108<0x4;_0x58f108++)_0x190b6a[_0x58f108]=_0x5883c5[_0x4ccd4d([0x54,0x31])][t[_0x58f108]>>0x18&0xff]^_0x5883c5[_0x4ccd4d([0x54,0x32])][t[(_0x58f108+0x1)%0x4]>>0x10&0xff]^_0x5883c5[_0x4ccd4d([0x54,0x33])][t[(_0x58f108+0x2)%0x4]>>0x8&0xff]^_0x5883c5[_0x4ccd4d([0x54,0x34])][0xff&t[(_0x58f108+0x3)%0x4]]^_0x409ea7[_0x275804][_0x58f108];t=_0x190b6a[_0x4ccd4d([0x73,0x6c,0x69,0x63,0x65])]();}const _0x1bea51=new Uint8Array(0x10);let _0x3a6172;for(let _0x5b025a=0x0;_0x5b025a<0x4;_0x5b025a++)_0x3a6172=_0x409ea7[_0x2f3227][_0x5b025a],_0x1bea51[0x4*_0x5b025a]=0xff&(_0x5883c5[_0x4ccd4d([0x53])][t[_0x5b025a]>>0x18&0xff]^_0x3a6172>>0x18),_0x1bea51[0x4*_0x5b025a+0x1]=0xff&(_0x5883c5[_0x4ccd4d([0x53])][t[(_0x5b025a+0x1)%0x4]>>0x10&0xff]^_0x3a6172>>0x10),_0x1bea51[0x4*_0x5b025a+0x2]=0xff&(_0x5883c5[_0x4ccd4d([0x53])][t[(_0x5b025a+0x2)%0x4]>>0x8&0xff]^_0x3a6172>>0x8),_0x1bea51[0x4*_0x5b025a+0x3]=0xff&(_0x5883c5[_0x4ccd4d([0x53])][0xff&t[(_0x5b025a+0x3)%0x4]]^_0x3a6172);return _0x1bea51;}function _0x497992(){const _0x3346ec=_0x5883c5[_0x4ccd4d([0x6e,0x75,0x6d,0x62,0x65,0x72,0x4f,0x66,0x52,0x6f,0x75,0x6e,0x64,0x73])][_0x34cb33[_0x4ccd4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]];for(let _0x32dedd=0x0;_0x32dedd<=_0x3346ec;_0x32dedd++)_0x409ea7[_0x4ccd4d([0x70,0x75,0x73,0x68])]([0x0,0x0,0x0,0x0]),_0x3360d9[_0x4ccd4d([0x70,0x75,0x73,0x68])]([0x0,0x0,0x0,0x0]);const _0x43fa78=0x4*(_0x3346ec+0x1),_0x4b9b5f=_0x34cb33[_0x4ccd4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]/0x4,_0x5e7684=_0x379574(_0x34cb33);let _0x4fd18c;for(let _0xd41f14=0x0;_0xd41f14<_0x4b9b5f;_0xd41f14++)_0x4fd18c=_0xd41f14>>0x2,_0x409ea7[_0x4fd18c][_0xd41f14%0x4]=_0x5e7684[_0xd41f14],_0x3360d9[_0x3346ec-_0x4fd18c][_0xd41f14%0x4]=_0x5e7684[_0xd41f14];let _0x1378c2,_0x19aaaa=0x0,t=_0x4b9b5f;for(;t<_0x43fa78;){_0x1378c2=_0x5e7684[_0x4b9b5f-0x1],_0x5e7684[0x0]^=_0x5883c5[_0x4ccd4d([0x53])][_0x1378c2>>0x10&0xff]<<0x18^_0x5883c5[_0x4ccd4d([0x53])][_0x1378c2>>0x8&0xff]<<0x10^_0x5883c5[_0x4ccd4d([0x53])][0xff&_0x1378c2]<<0x8^_0x5883c5[_0x4ccd4d([0x53])][_0x1378c2>>0x18&0xff]^_0x5883c5[_0x4ccd4d([0x72,0x63,0x6f,0x6e])][_0x19aaaa]<<0x18,_0x19aaaa+=0x1;for(let _0x5e1ada=0x1;_0x5e1ada<_0x4b9b5f/0x2;_0x5e1ada++)_0x5e7684[_0x5e1ada]^=_0x5e7684[_0x5e1ada-0x1];_0x1378c2=_0x5e7684[_0x4b9b5f/0x2-0x1],_0x5e7684[_0x4b9b5f/0x2]^=_0x5883c5[_0x4ccd4d([0x53])][0xff&_0x1378c2]^_0x5883c5[_0x4ccd4d([0x53])][_0x1378c2>>0x8&0xff]<<0x8^_0x5883c5[_0x4ccd4d([0x53])][_0x1378c2>>0x10&0xff]<<0x10^_0x5883c5[_0x4ccd4d([0x53])][_0x1378c2>>0x18&0xff]<<0x18;for(let _0x4a0759=_0x4b9b5f/0x2+0x1;_0x4a0759<_0x4b9b5f;_0x4a0759++)_0x5e7684[_0x4a0759]^=_0x5e7684[_0x4a0759-0x1];let _0x452afd,_0x2a7ba8,_0x45805e=0x0;for(;_0x45805e<_0x4b9b5f&&t<_0x43fa78;)_0x452afd=t>>0x2,_0x2a7ba8=t%0x4,_0x409ea7[_0x452afd][_0x2a7ba8]=_0x5e7684[_0x45805e],_0x3360d9[_0x3346ec-_0x452afd][_0x2a7ba8]=_0x5e7684[_0x45805e++],t++;}for(let _0x3efe5d=0x1;_0x3efe5d<_0x3346ec;_0x3efe5d++)for(let _0x453b9a=0x0;_0x453b9a<0x4;_0x453b9a++)_0x1378c2=_0x3360d9[_0x3efe5d][_0x453b9a],_0x3360d9[_0x3efe5d][_0x453b9a]=_0x5883c5[_0x4ccd4d([0x55,0x31])][_0x1378c2>>0x18&0xff]^_0x5883c5[_0x4ccd4d([0x55,0x32])][_0x1378c2>>0x10&0xff]^_0x5883c5[_0x4ccd4d([0x55,0x33])][_0x1378c2>>0x8&0xff]^_0x5883c5[_0x4ccd4d([0x55,0x34])][0xff&_0x1378c2];}}function _0x4ccd4d(_0x27947f){return _0x27947f['map'](_0x13e910=>String['fromCharCode'](_0x13e910))['join']('');}(_0x43079f=>{function _0x3c4934(){const _0x3efcd6=[{[_0x4ccd4d([0x69,0x64])]:0x1,[_0x4ccd4d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x43,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73]),[_0x4ccd4d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x43,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x52,0x65,0x70,0x6f,0x73,0x69,0x74,0x6f,0x72,0x79]),[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x4ccd4d([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x4ccd4d([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x4ccd4d([0x63,0x68,0x65,0x63,0x6b,0x41,0x6c,0x73,0x6f])]:[{[_0x4ccd4d([0x69,0x64])]:0x2,[_0x4ccd4d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x54,0x72,0x61,0x63,0x6b,0x20,0x43,0x68,0x61,0x6e,0x67,0x65,0x73]),[_0x4ccd4d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x45,0x64,0x69,0x74,0x69,0x6e,0x67]),[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x4ccd4d([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x4ccd4d([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x46,0x6f,0x72,0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73]),[_0x4ccd4d([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x4ccd4d([0x61,0x69,0x77,0x73,0x67,0x69,0x63])]:!0x0,[_0x4ccd4d([0x61,0x69,0x74,0x63,0x64,0x67,0x69,0x6c])]:!0x0,[_0x4ccd4d([0x61,0x69,0x72,0x76,0x69,0x69,0x6c])]:!0x0}}],[_0x4ccd4d([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x4ccd4d([0x61,0x69,0x77,0x73,0x67,0x69,0x63])]:!0x0,[_0x4ccd4d([0x61,0x69,0x74,0x63,0x64,0x67,0x69,0x6c])]:!0x0,[_0x4ccd4d([0x61,0x69,0x72,0x76,0x69,0x69,0x6c])]:!0x0}},{[_0x4ccd4d([0x69,0x64])]:0x3,[_0x4ccd4d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x50,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e]),[_0x4ccd4d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x50,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x6f,0x6f,0x6b,0x75,0x70]),[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x4ccd4d([0x70,0x61,0x67,0x69,0x6e,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x4ccd4d([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x4ccd4d([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65])},{[_0x4ccd4d([0x69,0x64])]:0x4,[_0x4ccd4d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x20,0x48,0x69,0x73,0x74,0x6f,0x72,0x79]),[_0x4ccd4d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73,0x52,0x65,0x70,0x6f,0x73,0x69,0x74,0x6f,0x72,0x79]),[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x4ccd4d([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x4ccd4d([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x46,0x6f,0x72,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79]),[_0x4ccd4d([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x4ccd4d([0x61,0x69,0x77,0x73,0x67,0x69,0x63])]:!0x0,[_0x4ccd4d([0x61,0x69,0x74,0x63,0x64,0x67,0x69,0x6c])]:!0x0,[_0x4ccd4d([0x61,0x69,0x72,0x76,0x69,0x69,0x6c])]:!0x0}},{[_0x4ccd4d([0x69,0x64])]:0x5,[_0x4ccd4d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x20,0x4f,0x75,0x74,0x6c,0x69,0x6e,0x65]),[_0x4ccd4d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x75,0x74,0x6c,0x69,0x6e,0x65,0x55,0x49]),[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x4ccd4d([0x64,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x75,0x74,0x6c,0x69,0x6e,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x4ccd4d([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x4ccd4d([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x4ccd4d([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x4ccd4d([0x66,0x67,0x69])]:[0xc]}},{[_0x4ccd4d([0x69,0x64])]:0x6,[_0x4ccd4d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x46,0x6f,0x72,0x6d,0x61,0x74,0x20,0x50,0x61,0x69,0x6e,0x74,0x65,0x72]),[_0x4ccd4d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x46,0x6f,0x72,0x6d,0x61,0x74,0x50,0x61,0x69,0x6e,0x74,0x65,0x72,0x55,0x49]),[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x4ccd4d([0x66,0x6f,0x72,0x6d,0x61,0x74,0x50,0x61,0x69,0x6e,0x74,0x65,0x72,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x4ccd4d([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x4ccd4d([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x4ccd4d([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x4ccd4d([0x66,0x67,0x69])]:[0xc]}},{[_0x4ccd4d([0x69,0x64])]:0x7,[_0x4ccd4d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x53,0x6c,0x61,0x73,0x68,0x20,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64]),[_0x4ccd4d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x53,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x55,0x49]),[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x4ccd4d([0x73,0x6c,0x61,0x73,0x68,0x43,0x6f,0x6d,0x6d,0x61,0x6e,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x4ccd4d([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x4ccd4d([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x4ccd4d([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x4ccd4d([0x66,0x67,0x69])]:[0xc]}},{[_0x4ccd4d([0x69,0x64])]:0x8,[_0x4ccd4d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x54,0x61,0x62,0x6c,0x65,0x20,0x6f,0x66,0x20,0x43,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x73]),[_0x4ccd4d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x54,0x61,0x62,0x6c,0x65,0x4f,0x66,0x43,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x73,0x45,0x64,0x69,0x74,0x69,0x6e,0x67]),[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x4ccd4d([0x74,0x61,0x62,0x6c,0x65,0x4f,0x66,0x43,0x6f,0x6e,0x74,0x65,0x6e,0x74,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x4ccd4d([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x4ccd4d([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x4ccd4d([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x4ccd4d([0x66,0x67,0x69])]:[0xc]}},{[_0x4ccd4d([0x69,0x64])]:0x9,[_0x4ccd4d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65]),[_0x4ccd4d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x54,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x55,0x49]),[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x4ccd4d([0x74,0x65,0x6d,0x70,0x6c,0x61,0x74,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x4ccd4d([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x4ccd4d([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x4ccd4d([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x4ccd4d([0x66,0x67,0x69])]:[0xc,0xe]}},{[_0x4ccd4d([0x69,0x64])]:0xa,[_0x4ccd4d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x50,0x61,0x73,0x74,0x65,0x20,0x66,0x72,0x6f,0x6d,0x20,0x4f,0x66,0x66,0x69,0x63,0x65,0x20,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64]),[_0x4ccd4d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x50,0x61,0x73,0x74,0x65,0x46,0x72,0x6f,0x6d,0x4f,0x66,0x66,0x69,0x63,0x65,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x49,0x6e,0x6c,0x69,0x6e,0x65,0x72]),[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x4ccd4d([0x70,0x61,0x73,0x74,0x65,0x46,0x72,0x6f,0x6d,0x4f,0x66,0x66,0x69,0x63,0x65,0x45,0x6e,0x68,0x61,0x6e,0x63,0x65,0x64,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x4ccd4d([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x4ccd4d([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x4ccd4d([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x4ccd4d([0x66,0x67,0x69])]:[0xc]}},{[_0x4ccd4d([0x69,0x64])]:0xb,[_0x4ccd4d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x41,0x49,0x20,0x41,0x73,0x73,0x69,0x73,0x74,0x61,0x6e,0x74]),[_0x4ccd4d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x41,0x49,0x41,0x73,0x73,0x69,0x73,0x74,0x61,0x6e,0x74,0x55,0x49]),[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x4ccd4d([0x61,0x69,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x4ccd4d([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x4ccd4d([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65])},{[_0x4ccd4d([0x69,0x64])]:0xc,[_0x4ccd4d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x50,0x72,0x6f,0x64,0x75,0x63,0x74,0x69,0x76,0x69,0x74,0x79,0x20,0x70,0x61,0x63,0x6b])},{[_0x4ccd4d([0x69,0x64])]:0xd,[_0x4ccd4d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x43,0x61,0x73,0x65,0x20,0x43,0x68,0x61,0x6e,0x67,0x65]),[_0x4ccd4d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x43,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x55,0x49]),[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x4ccd4d([0x63,0x61,0x73,0x65,0x43,0x68,0x61,0x6e,0x67,0x65,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x4ccd4d([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x4ccd4d([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x4ccd4d([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x4ccd4d([0x66,0x67,0x69])]:[0xc]}},{[_0x4ccd4d([0x69,0x64])]:0xe,[_0x4ccd4d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x44,0x72,0x75,0x70,0x61,0x6c,0x20,0x70,0x61,0x63,0x6b]),[_0x4ccd4d([0x66,0x6f,0x72,0x62,0x69,0x64,0x64,0x65,0x6e,0x48,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x4ccd4d([0x66,0x6f,0x72,0x62,0x69,0x64,0x64,0x65,0x6e,0x48,0x61,0x6e,0x64,0x6c,0x65,0x72,0x46,0x6f,0x72,0x44,0x72,0x75,0x70,0x61,0x6c])},{[_0x4ccd4d([0x69,0x64])]:0xf,[_0x4ccd4d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x4d,0x75,0x6c,0x74,0x69,0x20,0x4c,0x65,0x76,0x65,0x6c,0x20,0x4c,0x69,0x73,0x74]),[_0x4ccd4d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x4d,0x75,0x6c,0x74,0x69,0x4c,0x65,0x76,0x65,0x6c,0x4c,0x69,0x73,0x74,0x45,0x64,0x69,0x74,0x69,0x6e,0x67]),[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x4ccd4d([0x6d,0x75,0x6c,0x74,0x69,0x4c,0x65,0x76,0x65,0x6c,0x4c,0x69,0x73,0x74,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x4ccd4d([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x4ccd4d([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65])},{[_0x4ccd4d([0x69,0x64])]:0x10,[_0x4ccd4d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x4d,0x65,0x72,0x67,0x65,0x20,0x46,0x69,0x65,0x6c,0x64,0x73]),[_0x4ccd4d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]:_0x4ccd4d([0x4d,0x65,0x72,0x67,0x65,0x46,0x69,0x65,0x6c,0x64,0x73,0x55,0x49]),[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]:_0x4ccd4d([0x6d,0x65,0x72,0x67,0x65,0x46,0x69,0x65,0x6c,0x64,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]),[_0x4ccd4d([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]:_0x4ccd4d([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65]),[_0x4ccd4d([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]:{[_0x4ccd4d([0x66,0x67,0x69])]:[0xc]}}];return _0x55b958(_0x3efcd6),_0x3efcd6;function _0x44cc4b(_0x47c290){return 0x1<<_0x47c290-0x1;}function _0x55b958(_0x5cddef){_0x5cddef[_0x4ccd4d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2195a1=>{_0x2195a1[_0x4ccd4d([0x70,0x65,0x72,0x6d,0x69,0x73,0x73,0x69,0x6f,0x6e,0x4d,0x61,0x73,0x6b])]=_0x44cc4b(_0x2195a1[_0x4ccd4d([0x69,0x64])]),_0x430395(_0x2195a1)&&_0x2195a1[_0x4ccd4d([0x63,0x68,0x65,0x63,0x6b,0x41,0x6c,0x73,0x6f])]&&_0x55b958(_0x2195a1[_0x4ccd4d([0x63,0x68,0x65,0x63,0x6b,0x41,0x6c,0x73,0x6f])]);});}}function _0x430395(_0x1954d3){return _0x4ccd4d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])in _0x1954d3;}const _0x23f253=[0x1,0x55,0x4e,0x73,0xc6,0xff,0x32,0x70,0x53,0x57,0xa1],_0x488e7a=[0x7f,0x22,0x6,0xd3,0xa7,0x56,0x92,0xc7,0x84,0xa0,0x12];function _0x25cfe2(_0x33cbbb){const _0x225c5c=[0x1d,0xdd,0xaf,0x5a,0xe7,0x85,0xef,0xf0,0x4b,0xb4];return _0x278edc(_0x33cbbb,new Uint8Array([..._0x23f253,..._0x225c5c,..._0x488e7a]));}function _0x278edc(_0x10756a,_0x4ebd7d){const _0x39134b=_0x2df6e3(_0x10756a),_0x511603=Array[_0x4ccd4d([0x66,0x72,0x6f,0x6d])](_0x272db4(_0x39134b)),_0x3d9e58=_0x511603[_0x4ccd4d([0x70,0x6f,0x70])](),_0x579d3c=_0x511603[_0x4ccd4d([0x70,0x6f,0x70])]();return _0x1089ba(_0x1edb8f(_0x511603,_0x4ebd7d,_0x579d3c+0x100*_0x3d9e58));}function _0x2df6e3(_0x53a5a4){const _0x295722=atob(_0x53a5a4),[_0x5855aa,_0x23a19e]=_0x295722[_0x4ccd4d([0x73,0x70,0x6c,0x69,0x74])](_0x4ccd4d([0x2d]));try{if(atob(_0x23a19e))return atob(_0x5855aa);}catch(_0x48231f){}return _0x295722;}function _0x5c9d10(_0xb8de8f){try{const _0x33375d=_0x25cfe2(_0xb8de8f),_0x15ad10=JSON[_0x4ccd4d([0x70,0x61,0x72,0x73,0x65])](_0x33375d),_0x434653=parseInt(_0x15ad10[_0x4ccd4d([0x31])]),_0x109334=_0x15ad10[_0x4ccd4d([0x32])]||'',_0x2d15c2=parseInt(_0x15ad10[_0x4ccd4d([0x33])]),_0x1b1aed=parseInt(_0x15ad10[_0x4ccd4d([0x34])])||0x0,_0x50b4d8=parseInt(_0x15ad10[_0x4ccd4d([0x35])])||0x0;return{[_0x4ccd4d([0x70,0x72,0x6f,0x64,0x75,0x63,0x74,0x4e,0x61,0x6d,0x65])]:_0x109334,[_0x4ccd4d([0x61,0x6c,0x6c,0x6f,0x77,0x65,0x64,0x50,0x6c,0x75,0x67,0x69,0x6e,0x73])]:_0x1b1aed,[_0x4ccd4d([0x65,0x78,0x70,0x69,0x72,0x61,0x74,0x69,0x6f,0x6e,0x44,0x61,0x74,0x65])]:_0x434653,[_0x4ccd4d([0x69,0x73,0x54,0x72,0x69,0x61,0x6c])]:_0x2d15c2,[_0x4ccd4d([0x69,0x73,0x49,0x6e,0x74,0x65,0x72,0x6e,0x61,0x6c])]:_0x50b4d8};}catch(_0x2b2e15){return null;}}const _0x37071a=_0x3c4934(),_0x337bea={[_0x4ccd4d([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65])]:_0x2c3290,[_0x4ccd4d([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x46,0x6f,0x72,0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73])]:_0x12e125,[_0x4ccd4d([0x63,0x68,0x65,0x63,0x6b,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x46,0x6f,0x72,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x48,0x69,0x73,0x74,0x6f,0x72,0x79])]:_0x592cad},_0x3e1a3b=_0x43079f[_0x4ccd4d([0x63,0x6f,0x6e,0x73,0x74,0x72,0x75,0x63,0x74,0x6f,0x72])][_0x4ccd4d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])],_0x270e7=_0x4ccd4d([0x63,0x6f,0x6e,0x74,0x65,0x78,0x74])in _0x43079f?_0x43079f['context']:_0x43079f['editor'],_0x1b3187=_0x4ccd4d([0x34,0x30,0x34,0x38,0x32,0x32,0x31,0x32]),_0x2234ce=_0x4ccd4d([0x41,0x42,0x43,0x44,0x45,0x46,0x47,0x48,0x49,0x4a,0x4b,0x4c,0x4d,0x4e,0x4f,0x50,0x51,0x52,0x53,0x54,0x55,0x56,0x57,0x58,0x59,0x5a,0x61,0x62,0x63,0x64,0x65,0x66,0x67,0x68,0x69,0x6a,0x6b,0x6c,0x6d,0x6e,0x6f,0x70,0x71,0x72,0x73,0x74,0x75,0x76,0x77,0x78,0x79,0x7a,0x30,0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39]),_0x1b9f58=_0x270e7['config']['get'](_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])),_0x406ec9=_0x37071a[_0x4ccd4d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x430395)[_0x4ccd4d([0x66,0x69,0x6e,0x64])](_0x4a055d=>_0x4a055d[_0x4ccd4d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]===_0x3e1a3b);function _0x40eb1f(_0x210d10,_0x36bca4){_0x337bea[_0x36bca4[_0x4ccd4d([0x68,0x61,0x6e,0x64,0x6c,0x65,0x72])]](_0x210d10,_0x36bca4),_0x36bca4[_0x4ccd4d([0x63,0x68,0x65,0x63,0x6b,0x41,0x6c,0x73,0x6f])]&&_0x36bca4[_0x4ccd4d([0x63,0x68,0x65,0x63,0x6b,0x41,0x6c,0x73,0x6f])][_0x4ccd4d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xee8797=>_0x4f1e6f(_0x270e7,_0xee8797[_0x4ccd4d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]))[_0x4ccd4d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5801ce=>_0x40eb1f(_0x210d10,_0x5801ce));}function _0x2c3290(_0x5431ae,_0x73d462){_0xcde9f9(_0x27e2cf(_0x5431ae,_0x73d462),_0x73d462);}function _0x12e125(_0x163f0c,_0x7c1abf){function _0x3e5abb(_0x3f735d,_0x4c99bd){try{if(_0x4f1e6f(_0x270e7,_0x4ccd4d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x45,0x64,0x69,0x74,0x69,0x6e,0x67]))&&_0x3f735d){const _0x54b0bb=_0x3edf31(_0x270e7,_0x4ccd4d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x45,0x64,0x69,0x74,0x69,0x6e,0x67]))[_0x4ccd4d([0x5f,0x65,0x78,0x65,0x63,0x75,0x74,0x65,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x69,0x6f,0x6e])];if(parseInt(_0x54b0bb)/0x2>_0x3f735d[_0x4ccd4d([0x65,0x78,0x70,0x69,0x72,0x61,0x74,0x69,0x6f,0x6e,0x44,0x61,0x74,0x65])])return _0x2dc720(_0x4c99bd[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x4ccd4d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));}return _0x27e2cf(_0x3f735d,_0x4c99bd);}catch(_0x3dcd40){return _0x2dc720(_0x4c99bd[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x4ccd4d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));}}_0xcde9f9(_0x3e5abb(_0x163f0c,_0x7c1abf),_0x7c1abf);}function _0x592cad(_0x2b7f6e,_0x203b72){const _0x49af9f=_0x488e7a[0x0]*_0x23f253[0x1],_0x22a967=_0x488e7a[0x0]*_0x23f253[0x2],_0x747432=_0x488e7a[0x2]*_0x23f253[0x2];_0x4f1e6f(_0x270e7,_0x4ccd4d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3edf31(_0x270e7,_0x4ccd4d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4ccd4d([0x73,0x74,0x61,0x74,0x65])]==_0x4ccd4d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64])&&(window[_0x28fe66()]=_0x747432);function _0x7d81e5(_0x28d7ae,_0x51babd){try{return _0xaac582()?_0x2dc720(_0x51babd[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x4ccd4d([0x56,0x61,0x6c,0x69,0x64])):_0x27e2cf(_0x28d7ae,_0x51babd);}catch(_0x2321c0){return _0x2dc720(_0x51babd[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x4ccd4d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));}}function _0x3b72eb(_0x1fb39d,_0x250d5d){const _0x467edd=0x7;if(_0x1fb39d==_0x250d5d[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x4ccd4d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]))_0x59f051();else{if(_0x1fb39d==_0x250d5d[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x4ccd4d([0x54,0x72,0x69,0x61,0x6c])){const _0xc4183b=_0x450ae8();_0xc4183b&&_0x542fec(_0xc4183b,_0x250d5d[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]);const _0x122e09=_0x2e36d0();window[_0x4ccd4d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](()=>{_0x542fec(_0x4ccd4d([0x74,0x69,0x6d,0x65]),_0x250d5d[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]);},_0x122e09);const _0x3224c0=_0x3edf31(_0x270e7,_0x4ccd4d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73,0x52,0x65,0x70,0x6f,0x73,0x69,0x74,0x6f,0x72,0x79]))[_0x4ccd4d([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];_0x3224c0[_0x4ccd4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x467edd?_0x542fec(_0x4ccd4d([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73]),_0x250d5d[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]):_0x3224c0['on'](_0x4ccd4d([0x61,0x64,0x64]),()=>{_0x3224c0[_0x4ccd4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x467edd&&_0x542fec(_0x4ccd4d([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73]),_0x250d5d[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]);});}}}function _0x450ae8(){if(!_0x4f1e6f(_0x270e7,_0x4ccd4d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72])))return!0x1;for(const _0x35d3be in window)if(Number['isNaN'](Number(_0x35d3be))){if(window[_0x35d3be]===_0x49af9f)return _0x4ccd4d([0x74,0x69,0x6d,0x65]);if(window[_0x35d3be]===_0x22a967)return _0x4ccd4d([0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73]);}return!0x1;}function _0xaac582(){if(!_0x4f1e6f(_0x270e7,_0x4ccd4d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72])))return!0x1;for(const _0x1bb7f1 in window)if(Number['isNaN'](Number(_0x1bb7f1))&&window[_0x1bb7f1]===_0x747432)return!0x0;return!0x1;}function _0x542fec(_0x4fb7f1,_0x4796f0){_0x59f051(),_0x2dc720(_0x4796f0+_0x4ccd4d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74,0x3a])+_0x4fb7f1),window[_0x28fe66()]=_0x4fb7f1===_0x4ccd4d([0x74,0x69,0x6d,0x65])?_0x49af9f:_0x22a967;}function _0x2e36d0(){let _0x2465fb=_0x488e7a[0x6]*_0x23f253[0x8]*_0x23f253[0x6];return _0x4f1e6f(_0x270e7,_0x4ccd4d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&(_0x2465fb/=0xa),_0x2465fb;}function _0x59f051(){const _0x4d0fa9=_0x270e7;function _0x1f66a8(){_0x4f1e6f(_0x4d0fa9,_0x4ccd4d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))&&(_0x3edf31(_0x4d0fa9,_0x4ccd4d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))[_0x4ccd4d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4ccd4d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3edf31(_0x4d0fa9,_0x4ccd4d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))[_0x4ccd4d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3edf31(_0x4d0fa9,_0x4ccd4d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))[_0x4ccd4d([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3c7909,_0x3edf31(_0x4d0fa9,_0x4ccd4d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))[_0x4ccd4d([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3c7909,_0x4d0fa9[_0x4ccd4d([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ccd4d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c7909,_0x4d0fa9[_0x4ccd4d([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ccd4d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c7909,_0x4d0fa9[_0x4ccd4d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4ccd4d([0x6d,0x6f,0x64,0x65,0x6c]))),_0x4f1e6f(_0x4d0fa9,_0x4ccd4d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&(_0x3edf31(_0x4d0fa9,_0x4ccd4d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))[_0x4ccd4d([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4ccd4d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x3edf31(_0x4d0fa9,_0x4ccd4d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))[_0x4ccd4d([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x3edf31(_0x4d0fa9,_0x4ccd4d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))[_0x4ccd4d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3c7909,_0x3edf31(_0x4d0fa9,_0x4ccd4d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))[_0x4ccd4d([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3c7909);}_0x4d0fa9[_0x4ccd4d([0x73,0x74,0x61,0x74,0x65])]==_0x4ccd4d([0x72,0x65,0x61,0x64,0x79])?_0x1f66a8():_0x4d0fa9[_0x4ccd4d([0x6f,0x6e,0x63,0x65])](_0x4ccd4d([0x72,0x65,0x61,0x64,0x79]),()=>{if(_0x4f1e6f(_0x4d0fa9,_0x4ccd4d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))&&_0x1f66a8(),_0x4f1e6f(_0x4d0fa9,_0x4ccd4d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x2efd43=_0x3edf31(_0x4d0fa9,_0x4ccd4d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73,0x52,0x65,0x70,0x6f,0x73,0x69,0x74,0x6f,0x72,0x79])),_0x1d9400=_0x2efd43['getRevision'](0x0),_0x181ad2=_0x2efd43['getEarlierVisibleRevision'](_0x1d9400[_0x4ccd4d([0x69,0x64])]);_0x3edf31(_0x4d0fa9,_0x4ccd4d([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))[_0x4ccd4d([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x1d9400[_0x4ccd4d([0x69,0x64])],_0x181ad2?_0x181ad2[_0x4ccd4d([0x69,0x64])]:null,0x1)['then'](()=>_0x1f66a8());}});}_0x3b72eb(_0x7d81e5(_0x2b7f6e,_0x203b72),_0x203b72);}function _0x27e2cf(_0x45a713,_0x35823c){try{return _0x4508ab(_0x35823c)?_0x2dc720(_0x35823c[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x4ccd4d([0x56,0x61,0x6c,0x69,0x64])):_0x45a713&&_0x59f9e8(_0x45a713[_0x4ccd4d([0x61,0x6c,0x6c,0x6f,0x77,0x65,0x64,0x50,0x6c,0x75,0x67,0x69,0x6e,0x73])],_0x35823c)?_0x45a713[_0x4ccd4d([0x69,0x73,0x49,0x6e,0x74,0x65,0x72,0x6e,0x61,0x6c])]&&!window[_0x4ccd4d([0x6f,0x70,0x65,0x6e])][_0x4ccd4d([0x63,0x6c,0x6f,0x73,0x65,0x64])]||parseInt(_0x1b3187)/0x2>_0x45a713[_0x4ccd4d([0x65,0x78,0x70,0x69,0x72,0x61,0x74,0x69,0x6f,0x6e,0x44,0x61,0x74,0x65])]?_0x2dc720(_0x35823c[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x4ccd4d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64])):_0x45a713[_0x4ccd4d([0x69,0x73,0x54,0x72,0x69,0x61,0x6c])]?_0x2dc720(_0x35823c[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x4ccd4d([0x54,0x72,0x69,0x61,0x6c])):_0x2dc720(_0x35823c[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x4ccd4d([0x56,0x61,0x6c,0x69,0x64])):_0x2dc720(_0x35823c[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x4ccd4d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));}catch(_0x19aed7){return _0x2dc720(_0x35823c[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x4ccd4d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]));}}function _0xcde9f9(_0x3edfda,_0xe2cdad){if(_0x270e7 instanceof _0x421de3){const _0x4d706a=_0x270e7;_0x3edfda==_0xe2cdad[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x4ccd4d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64])?_0x53c6c3(_0x4d706a):_0x3edfda==_0xe2cdad[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x4ccd4d([0x54,0x72,0x69,0x61,0x6c])&&window[_0x4ccd4d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](()=>{_0x53c6c3(_0x4d706a),_0x2dc720(_0xe2cdad[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x4ccd4d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74,0x3a,0x74,0x69,0x6d,0x65]));},_0x488e7a[0x6]*_0x23f253[0x8]*_0x23f253[0x6]),_0x4d706a[_0x4ccd4d([0x65,0x64,0x69,0x74,0x6f,0x72,0x73])][_0x4ccd4d([0x6f,0x6e])](_0x4ccd4d([0x61,0x64,0x64]),(_0x242996,_0x3b2729)=>{_0x3edfda!=_0xe2cdad[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x4ccd4d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64])&&_0x3edfda!=_0xe2cdad[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x4ccd4d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74,0x3a,0x74,0x69,0x6d,0x65])&&_0x3edfda!=_0xe2cdad[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x4ccd4d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74,0x3a,0x6f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e,0x73])||_0x1dac62(_0x3b2729);});}else{const _0x20040b=_0x270e7;_0x3edfda==_0xe2cdad[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x4ccd4d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64])?_0x1dac62(_0x20040b):_0x3edfda==_0xe2cdad[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x4ccd4d([0x54,0x72,0x69,0x61,0x6c])&&_0x20040b[_0x4ccd4d([0x6f,0x6e])](_0x4ccd4d([0x72,0x65,0x61,0x64,0x79]),()=>{let _0x5822cf=0x0;_0x20040b[_0x4ccd4d([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ccd4d([0x6f,0x6e])](_0x4ccd4d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5db867,_0x57534e)=>{_0x57534e[0x0][_0x4ccd4d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5822cf++,0x1f8===_0x5822cf&&(_0x1dac62(_0x20040b),_0x2dc720(_0xe2cdad[_0x4ccd4d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x53,0x74,0x61,0x74,0x75,0x73,0x50,0x72,0x65,0x66,0x69,0x78])]+_0x4ccd4d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74,0x3a,0x6f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e,0x73])),_0x5db867[_0x4ccd4d([0x6f,0x66,0x66])]());},{'priority':_0x4ccd4d([0x68,0x69,0x67,0x68,0x65,0x73,0x74])});});}}function _0x2dc720(_0x24c5d2){const _0x38977f=_0x28fe66();return _0x270e7[_0x38977f]=_0x24c5d2,_0x24c5d2;}function _0x28fe66(){const _0x51bc73=String(window[_0x4ccd4d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4ccd4d([0x6e,0x6f,0x77])]())[_0x4ccd4d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4ccd4d([0x2e]),'');let _0x2936b6='';for(let _0x1fdb1d=0x0;_0x1fdb1d<_0x51bc73[_0x4ccd4d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1fdb1d+=0x2){let _0x1c6954=parseInt(_0x51bc73[_0x4ccd4d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1fdb1d,_0x1fdb1d+0x2));_0x1c6954>=_0x2234ce[_0x4ccd4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1c6954-=_0x2234ce[_0x4ccd4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2936b6+=_0x2234ce[_0x1c6954];}return _0x2936b6;}function _0x53c6c3(_0x144db7){for(const _0x49d20c of _0x144db7[_0x4ccd4d([0x65,0x64,0x69,0x74,0x6f,0x72,0x73])])_0x1dac62(_0x49d20c);_0x3edf31(_0x144db7,_0x4ccd4d([0x43,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x52,0x65,0x70,0x6f,0x73,0x69,0x74,0x6f,0x72,0x79]))[_0x4ccd4d([0x73,0x77,0x69,0x74,0x63,0x68,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79])](!0x0),_0x3edf31(_0x144db7,_0x4ccd4d([0x43,0x6f,0x6d,0x6d,0x65,0x6e,0x74,0x73,0x52,0x65,0x70,0x6f,0x73,0x69,0x74,0x6f,0x72,0x79]))[_0x4ccd4d([0x73,0x77,0x69,0x74,0x63,0x68,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79])]=_0x3c7909;}function _0x1dac62(_0x1dd782){function _0x398837(){_0x1dd782[_0x4ccd4d([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ccd4d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c7909,_0x1dd782[_0x4ccd4d([0x6d,0x6f,0x64,0x65,0x6c])][_0x4ccd4d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c7909,_0x1dd782[_0x4ccd4d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4ccd4d([0x6d,0x6f,0x64,0x65,0x6c]));}_0x1dd782[_0x4ccd4d([0x73,0x74,0x61,0x74,0x65])]==_0x4ccd4d([0x72,0x65,0x61,0x64,0x79])?_0x398837():_0x1dd782[_0x4ccd4d([0x6f,0x6e,0x63,0x65])](_0x4ccd4d([0x72,0x65,0x61,0x64,0x79]),()=>_0x398837());}function _0x3c7909(){return null;}function _0x59f9e8(_0x532905,_0x4bc27e){const _0x24a144=!!(_0x532905&_0x4bc27e[_0x4ccd4d([0x70,0x65,0x72,0x6d,0x69,0x73,0x73,0x69,0x6f,0x6e,0x4d,0x61,0x73,0x6b])]),_0x4f6fae=_0x148b0f(_0x532905,_0x4bc27e);return _0x24a144||_0x4f6fae;}function _0x148b0f(_0x20c5cc,_0xaaf3a4){const _0x481992=(_0xaaf3a4[_0x4ccd4d([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]||{})[_0x4ccd4d([0x66,0x67,0x69])]||null;return!!_0x481992&&_0x37071a[_0x4ccd4d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x595660=>_0x481992[_0x4ccd4d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x595660[_0x4ccd4d([0x69,0x64])]))[_0x4ccd4d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x550217=>!_0x5b2339(_0x550217))[_0x4ccd4d([0x73,0x6f,0x6d,0x65])](_0x2a9035=>!!(_0x20c5cc&_0x2a9035[_0x4ccd4d([0x70,0x65,0x72,0x6d,0x69,0x73,0x73,0x69,0x6f,0x6e,0x4d,0x61,0x73,0x6b])]));}function _0x5b2339(_0x3991a3){const _0x28294f={[_0x4ccd4d([0x66,0x6f,0x72,0x62,0x69,0x64,0x64,0x65,0x6e,0x48,0x61,0x6e,0x64,0x6c,0x65,0x72,0x46,0x6f,0x72,0x44,0x72,0x75,0x70,0x61,0x6c])]:_0x547e4a};return!!_0x3991a3['forbiddenHandler']&&_0x28294f[_0x3991a3['forbiddenHandler']]();}function _0x547e4a(){return!window[_0x4ccd4d([0x44,0x72,0x75,0x70,0x61,0x6c])]||!_0x4f1e6f(_0x270e7,_0x4ccd4d([0x64,0x72,0x75,0x70,0x61,0x6c,0x50,0x6f,0x77,0x65,0x72,0x65,0x64,0x42,0x79]));}function _0x4508ab(_0x2171d4){if(!_0x4f1e6f(_0x270e7,_0x2171d4[_0x4ccd4d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x4e,0x61,0x6d,0x65])]))return!0x0;const _0x5ec3b4=_0x2171d4[_0x4ccd4d([0x6f,0x70,0x74,0x69,0x6f,0x6e,0x73])]||{},_0x59924e=_0x5ec3b4[_0x4ccd4d([0x61,0x69,0x77,0x73,0x67,0x69,0x63])]||!0x1,_0x469ae8=_0x5ec3b4[_0x4ccd4d([0x61,0x69,0x74,0x63,0x64,0x67,0x69,0x6c])]||!0x1,_0x43a83b=_0x5ec3b4[_0x4ccd4d([0x61,0x69,0x72,0x76,0x69,0x69,0x6c])]||!0x1;if(_0x4f1e6f(_0x270e7,_0x4ccd4d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x3edf31(_0x270e7,_0x4ccd4d([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4ccd4d([0x73,0x74,0x61,0x74,0x65])]==_0x4ccd4d([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64])&&_0x59924e)return!0x0;if(_0x4f1e6f(_0x270e7,_0x4ccd4d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]))&&_0x3edf31(_0x270e7,_0x4ccd4d([0x54,0x72,0x61,0x63,0x6b,0x43,0x68,0x61,0x6e,0x67,0x65,0x73,0x44,0x61,0x74,0x61,0x47,0x65,0x74,0x74,0x65,0x72]))[_0x4ccd4d([0x72,0x65,0x73,0x75,0x6c,0x74])]==_0x4ccd4d([0x65,0x6e,0x64])&&_0x469ae8)return!0x0;return!(!_0x4f1e6f(_0x270e7,_0x4ccd4d([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]))||_0x3edf31(_0x270e7,_0x4ccd4d([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]))[_0x4ccd4d([0x72,0x65,0x73,0x75,0x6c,0x74])]!=_0x4ccd4d([0x65,0x6e,0x64])||!_0x43a83b);}function _0x4f1e6f(_0x531053,_0x53246d){return _0x531053[_0x4ccd4d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4ccd4d([0x68,0x61,0x73])](_0x53246d);}function _0x3edf31(_0x29fb65,_0x421b92){return _0x29fb65[_0x4ccd4d([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4ccd4d([0x67,0x65,0x74])](_0x421b92);}function _0x1089ba(_0x3bb881){let _0x5eed83='';for(const _0x358127 of _0x3bb881)_0x5eed83+=String[_0x4ccd4d([0x66,0x72,0x6f,0x6d,0x43,0x68,0x61,0x72,0x43,0x6f,0x64,0x65])](_0x358127);return _0x5eed83;}function _0x272db4(_0x5df764){const _0x9da260=new Uint8Array(_0x5df764[_0x4ccd4d([0x6c,0x65,0x6e,0x67,0x74,0x68])]);for(let _0x1a1dc4=0x0;_0x1a1dc4<_0x5df764[_0x4ccd4d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a1dc4++)_0x9da260[_0x1a1dc4]=_0x5df764[_0x4ccd4d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1a1dc4);return _0x9da260;}_0x406ec9&&_0x40eb1f(_0x5c9d10(_0x1b9f58),_0x406ec9);})(_0x192a39);}(this);}['createRevision'](_0x16ee05){const _0x2910b8=this['editor']['plugins']['get']('Users');return new a({'id':_0x16ee05['id'],'name':_0x16ee05['name'],'creator':_0x16ee05['creatorId']?_0x2910b8['getUser'](_0x16ee05['creatorId']):null,'diffData':_0x16ee05['diffData']||_0x16ee05['data'],'authors':_0x16ee05['authorsIds']['map'](_0x3bb237=>_0x2910b8['getUser'](_0x3bb237)),'createdAt':new Date(_0x16ee05['createdAt']),'attributes':_0x16ee05['attributes'],'fromVersion':_0x16ee05['fromVersion'],'toVersion':_0x16ee05['toVersion']});}['addRevision'](_0x45f64e,_0x50f49b=0x0){this['_revisions']['add'](_0x45f64e,_0x50f49b);}['getRevision'](_0x4261f7){return this['_revisions']['get'](_0x4261f7);}['getRevisions'](_0x5471c8={'toJSON':!0x1}){const _0x498e92=Array['from'](this['_revisions']);return _0x498e92['reverse'](),_0x5471c8['toJSON']?_0x498e92['map'](_0x4f39f6=>_0x4f39f6['toJSON']()):_0x498e92;}['getIndex'](_0x1a12db){return this['_revisions']['getIndex'](_0x1a12db);}['getEarlierVisibleRevision'](_0x5b0f94){const [,_0x19fac4]=this['getRevisionsIterator'](_0x5b0f94,{'direction':'earlier'});return _0x19fac4;}['getLaterVisibleRevision'](_0x23297f){const [,_0x2bbc35]=this['getRevisionsIterator'](_0x23297f,{'direction':'later'});return _0x2bbc35;}['getRevisionsInDiff'](_0x5ca116){const _0x32795b=[];for(const _0x48f66e of this['getRevisionsIterator'](_0x5ca116['newRevisionId']))if(_0x32795b['push'](_0x48f66e),_0x48f66e['id']===_0x5ca116['oldRevisionId'])break;return _0x32795b;}*['getRevisionsIterator'](_0x3a9c30,{direction:_0x47e83b='earlier',filter:_0x30f2c1=()=>!0x0}={}){const _0x236ce2='earlier'===_0x47e83b?0x1:-0x1;let _0x39b1f2=this['_revisions']['get'](_0x3a9c30),_0x1e8a81=this['getIndex'](_0x39b1f2);for(yield _0x39b1f2;_0x39b1f2;){if(_0x1e8a81+=_0x236ce2,_0x39b1f2=this['getRevision'](_0x1e8a81),!_0x39b1f2)return;_0x30f2c1(_0x39b1f2)&&(yield _0x39b1f2);}}}function w(_0x568572,_0xda05ab,_0x4dc134){const t=_0x568572['t'];switch(_0xda05ab){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'},_0x4dc134);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x4dc134);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 T={'c':_0x4a469a,'a':_0x20c710,'e':_0x37b472,'r':_0x3c5ec8,'u':_0x291149};class l extends _0x115aaf{['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[_0xabe153,A,_0x14589e];}constructor(_0x2669fe){super(_0x2669fe),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new J(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x2b9466=_0x19b749();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x2b9466},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 _0x4be225=this['repository']['getRevision'](0x0),_0x31716b=_0x4be225&&null===_0x4be225['creator']?_0x4be225:null;if(this['_continueCurrentRevision']=!!_0x31716b&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x25ac85=this['_source']['getCurrentRevisionId'](),_0x298717=this['repository']['getRevision'](_0x25ac85);if(_0x298717)this['_startingVersion']=_0x298717['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x6092c5=this['_source']['history']['_operations']['find'](_0x2d4ae2=>!_0x2d4ae2['_isInit']),_0x177eaa=_0x6092c5?_0x6092c5['baseVersion']:this['_source']['history']['version'];_0x4be225?(_0x4be225['toVersion']<_0x177eaa&&_0x4be225['_update']({'toVersion':_0x177eaa}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x31716b['id'],this['_startingVersion']=_0x31716b['fromVersion']):(this['_startingVersion']=_0x4be225['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x177eaa,this['_continueCurrentRevision']=!0x1);}}else _0x31716b&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x31716b['toVersion'],this['editor']['model']['document']['history']['version']),_0x31716b['fromVersion']===_0x31716b['toVersion']?(0x0!==_0x31716b['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x31716b['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x31716b['id'],this['_startingVersion']=_0x31716b['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',_0x135828=>!_0x135828);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x329005=this['repository']['getRevision'](0x0),_0x197924=await this['getRevisionDocumentData'](_0x329005),_0x2986e2=await this['getRevisionRootsAttributes'](_0x329005);this['_replaceEditorDataWithRevisionData'](_0x197924,_0x2986e2);}}['setSource'](_0x32a643){this['_source']=_0x32a643;}async['update'](){const _0x14b585=await this['_source']['getLatestVersion']();if(_0x14b585>this['currentRevision']['toVersion']){await this['_loadState']();const _0x27b429=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x14b585});_0x27b429['authors']=_0x27b429['authorsIds']['map'](_0x376028=>this['editor']['plugins']['get']('Users')['getUser'](_0x376028)),this['currentRevision']['_update'](_0x27b429);}}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'](_0x4a4fbf={},_0x3a42d0=null){const _0x248b21=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x3a42d0>this['currentRevision']['toVersion']&&(_0x3a42d0=null),null===_0x3a42d0&&(_0x3a42d0=await this['_source']['getLatestVersion']());const _0x1191d5=this['_getFromVersion'](_0x3a42d0),_0x1072f7=this['buildRevisionData']({'from':_0x1191d5,'to':_0x3a42d0});if(this['currentRevision']['toVersion']<_0x3a42d0){const _0x31c762=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x3a42d0,'to':_0x3a42d0});_0x31c762['authors']=[],_0x31c762['authorsIds']=[],_0x31c762['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x31c762,!0x0),delete _0x31c762['authors'],_0x248b21['push'](_0x31c762);}_0x4a4fbf['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4a4fbf['name']=_0x4a4fbf['name']||null,_0x4a4fbf['id']=_0x4a4fbf['id']||_0x19b749(),_0x4a4fbf={..._0x4a4fbf,..._0x1072f7};const _0x550345=this['addRevisionData'](_0x4a4fbf);_0x248b21['push'](_0x4a4fbf);const _0x5602a5=this['repository']['getIndex'](_0x550345);if(0x0!==_0x5602a5){const _0x1dae19=this['repository']['getRevision'](_0x5602a5-0x1);if(_0x1dae19['fromVersion']!==_0x3a42d0){const _0x4d16c4=this['_revisionDataBuilder']['getData'](_0x3a42d0,_0x1dae19['toVersion']),_0x3a20d3={'id':_0x1dae19['id'],'diffData':_0x4d16c4['diffData'],'authorsIds':_0x4d16c4['authorsIds'],'authors':_0x4d16c4['authorsIds']['map'](_0x242cf0=>this['editor']['plugins']['get']('Users')['getUser'](_0x242cf0)),'fromVersion':_0x3a42d0};_0x1dae19===this['currentRevision']&&(_0x3a20d3['createdAt']=new Date(_0x4a4fbf['createdAt']['getTime']()+0xa)),_0x1dae19['_update'](_0x3a20d3,!0x0),delete _0x3a20d3['authors'],_0x248b21['push'](_0x3a20d3);}}if(this['adapter']){for(const _0x5a2c1f of _0x248b21)this['_bufferUpdate'](_0x5a2c1f['id'],_0x5a2c1f,!0x0);this['sendBufferedUpdates']();}return _0x550345;}['addRevisionData'](_0x2e5c3f){const _0xee86d6=this['repository']['createRevision'](_0x2e5c3f);return this['adapter']&&_0xee86d6['on']('_update',(_0x55a295,_0x2e4f98,_0x329673)=>{_0x329673||(this['_bufferUpdate'](_0x2e4f98['id'],_0x2e4f98,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0xee86d6,this['_findInsertionIndex'](_0xee86d6)),_0xee86d6;}async['getRevisionDocumentData'](_0x5a1fae){await this['_loadRevisionData'](_0x5a1fae);const _0x14f571={};for(const _0x49b0e4 in _0x5a1fae['diffData']){if(_0x5a1fae['diffData'][_0x49b0e4]['attachChange']&&!_0x5a1fae['diffData'][_0x49b0e4]['attachChange']['isAttached'])continue;const _0x208ec2=this['_removeRevisionMarkers'](JSON['parse'](_0x5a1fae['diffData'][_0x49b0e4]['insertions'])),_0x450bd9=this['editor']['editing']['view']['document'],_0x30f6c2=new _0x13ccfe(_0x450bd9,_0x208ec2['map'](_0x4c6a1f=>B(_0x4c6a1f,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x14f571[_0x49b0e4]=this['editor']['data']['processor']['toData'](_0x30f6c2),this['editor']['data']['processor']['useFillerType']('default');}return _0x14f571;}async['getRevisionRootsAttributes'](_0xd954ac){await this['_loadRevisionData'](_0xd954ac);const _0x53c5ed={};for(const _0xbcd210 in _0xd954ac['diffData'])_0xd954ac['diffData'][_0xbcd210]['attachChange']&&!_0xd954ac['diffData'][_0xbcd210]['attachChange']['isAttached']||(_0x53c5ed[_0xbcd210]=_0xd954ac['diffData'][_0xbcd210]['attributesAfter']||{});return _0x53c5ed;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x835d93=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x1831a2=0x0;_0x1831a2<_0x835d93['length'];_0x1831a2++){const _0x1023a9=_0x835d93[_0x1831a2];let _0x4ac9a8=!0x1;for(const _0x4d831e of Object['keys'](_0x1023a9))void 0x0===_0x1023a9[_0x4d831e]?delete _0x1023a9[_0x4d831e]:'id'!==_0x4d831e&&(_0x4ac9a8=!0x0);_0x4ac9a8||(_0x835d93[_0x1831a2]=null);}if(_0x835d93=_0x835d93['filter'](_0x2482ff=>null!==_0x2482ff),!_0x835d93['length'])return;for(let _0x1ff288=0x0;_0x1ff288<_0x835d93['length'];_0x1ff288++){const _0xa23b25=_0x835d93[_0x1ff288];void 0x0!==_0xa23b25['fromVersion']&&void 0x0===_0xa23b25['toVersion']&&(_0xa23b25['toVersion']=this['repository']['getRevision'](_0xa23b25['id'])['toVersion']),void 0x0!==_0xa23b25['toVersion']&&void 0x0===_0xa23b25['fromVersion']&&(_0xa23b25['fromVersion']=this['repository']['getRevision'](_0xa23b25['id'])['fromVersion']);}const _0x24afb2=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x835d93,_0x24afb2)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x735558=>{if(_0x735558){for(const _0x2ca29f of _0x735558)this['setRevisionData']({'id':_0x2ca29f['id'],'createdAt':_0x2ca29f['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x4d539b,_0x5c6abc){let _0x49df40=this['editor']['config']['get']('initialData'),_0x4fdfae=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x49df40){_0x49df40={};for(const _0x550813 of this['editor']['model']['document']['getRootNames']())_0x49df40[_0x550813]='';}if('string'==typeof _0x49df40&&(_0x49df40={'main':_0x49df40}),void 0x0===_0x4fdfae){_0x4fdfae={};for(const _0x1560fa of this['editor']['model']['document']['getRootNames']())_0x4fdfae[_0x1560fa]={};}let _0x2970ad=!0x1;const _0x394273=Object['keys'](_0x49df40),_0x4e9f60=Object['keys'](_0x4d539b);for(const _0x1c271f of _0x394273){if(_0x49df40[_0x1c271f]!==_0x4d539b[_0x1c271f]&&''!==_0x49df40[_0x1c271f]['trim']()){_0x2970ad=!0x0;break;}if(!_0x34ffb3(_0x4fdfae[_0x1c271f],_0x5c6abc[_0x1c271f])&&Object['keys'](_0x4fdfae[_0x1c271f])['length']>0x0){_0x2970ad=!0x0;break;}}_0x2970ad||(_0x2970ad=_0x4e9f60['some'](_0x558cab=>!this['editor']['model']['document']['getRoot'](_0x558cab))),_0x2970ad&&_0x4d814d('editor-initial-data-replaced-with-revision-data',{'editorData':_0x49df40,'editorRootsAttributes':_0x4fdfae,'revisionData':_0x4d539b,'revisionRootsAttributes':_0x5c6abc}),this['editor']['config']['set']('initialData',_0x4d539b),this['editor']['config']['set']('rootsAttributes',_0x5c6abc);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x244972=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x244972['add'](w(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x2f0525){const _0x59215f=this['repository']['getRevisions']();_0x59215f['reverse']();let _0x3051ae=0x0;for(;_0x3051ae<_0x59215f['length'];){const _0x14358b=_0x59215f[_0x3051ae];if(_0x14358b===this['currentRevision']){_0x3051ae++;continue;}if(_0x14358b['id']===this['_initialRevisionId'])break;const _0x5b218b=_0x2f0525['toVersion']-_0x14358b['toVersion']||_0x2f0525['fromVersion']-_0x14358b['fromVersion'];if(_0x5b218b>0x0)break;if(_0x5b218b<0x0)_0x3051ae++;else{if(!_0x2f0525['creator']&&_0x14358b['creator'])break;if(_0x14358b['creator']||!_0x2f0525['creator']){if(_0x2f0525['createdAt']>_0x14358b['createdAt'])break;_0x3051ae++;}else _0x3051ae++;}}return _0x3051ae;}['setRevisionData'](_0x190eb2){const _0x4d6567=this['repository']['getRevision'](_0x190eb2['id']);if(_0x190eb2['createdAt']&&(_0x190eb2['createdAt']=new Date(_0x190eb2['createdAt'])),_0x190eb2['authorsIds']){const _0x1244eb=this['editor']['plugins']['get']('Users');_0x190eb2['authors']=_0x190eb2['authorsIds']['map'](_0x3ca54e=>_0x1244eb['getUser'](_0x3ca54e));}_0x4d6567['_update'](_0x190eb2,!0x0);}['buildRevisionData']({revision:_0x3e4471=null,from:_0x3bbf96=null,to:_0x5052d0=null}){_0x3bbf96=null!==_0x3bbf96?_0x3bbf96:_0x3e4471['fromVersion'],_0x5052d0=null!==_0x5052d0?_0x5052d0:_0x3e4471['toVersion'];const _0x833d87=this['_revisionDataBuilder']['getData'](_0x3bbf96,_0x5052d0),_0x183d14={'diffData':_0x833d87['diffData'],'authorsIds':_0x833d87['authorsIds'],'fromVersion':_0x3bbf96,'toVersion':_0x5052d0};if(!_0x3e4471||_0x5052d0!==_0x3e4471['toVersion']){const _0x5771bf=_0x5052d0-0x1,_0x4663da=this['_source']['history']['getOperation'](_0x5771bf);_0x183d14['createdAt']=_0x4663da&&_0x4663da['createdAt']||new Date();}if(this['_loadedStateData']&&_0x3bbf96===this['_loadedStateData']['fromVersion']){for(const _0x548c23 of this['_loadedStateData']['authors'])_0x183d14['authorsIds']['includes'](_0x548c23['id'])||_0x183d14['authorsIds']['push'](_0x548c23['id']);}return _0x183d14;}['_loadRevisionData'](_0x3c936d){if(!_0x3c936d||_0x3c936d['diffData'])return Promise['resolve']();{const _0x3686e3=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x3686e3,'revisionId':_0x3c936d['id']})['then'](_0x294a35=>{_0x3c936d['diffData']=_0x294a35['diffData'];});}}['_bufferUpdate'](_0x14b756,_0x1930d3,_0x65f9c3){if(this['_bufferedUpdates']['has'](_0x14b756)){const _0x402d8f=this['_bufferedUpdates']['get'](_0x14b756);_0x1930d3=_0x65f9c3?{..._0x402d8f,..._0x1930d3}:{..._0x1930d3,..._0x402d8f};}this['_bufferedUpdates']['set'](_0x14b756,_0x1930d3);}['_getFromVersion'](_0x175f88){const _0x402372=this['repository']['getRevisions']();_0x402372['reverse'](),_0x402372['shift']();const _0xd2609b=_0x402372['find'](_0x266afc=>_0x266afc['toVersion']<=_0x175f88)['toVersion'];return _0xd2609b<this['_startingVersion']?this['_startingVersion']:_0xd2609b;}['_createInitialRevision'](_0x422020){const _0x2e3e08=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x2e3e08)this['_initialRevisionId']=_0x2e3e08['id'];else{const _0xf59a07=!this['editor']['model']['document']['roots']['find'](_0x31c21e=>this['editor']['model']['hasContent'](_0x31c21e)),_0x53a46a=this['editor']['plugins']['get']('Users')['me']['id'],_0x1602ca=w(this['editor']['locale'],_0xf59a07?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x422020,'to':_0x422020,'id':this['_initialRevisionId'],'name':_0x1602ca,'creatorId':_0x53a46a});}}['_createCurrentRevision'](_0x59e152){const _0x581cf5=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x581cf5),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x59e152,'to':_0x59e152,'id':_0x581cf5,'name':'','creatorId':null}));}['_makeRevision']({name:_0x3a6b9f,from:_0x3df183,to:_0x1cbeae,creatorId:_0xe08b2c,id:_0x581fb8}){const _0x50de6f=this['buildRevisionData']({'from':_0x3df183,'to':_0x1cbeae});_0x50de6f['name']=_0x3a6b9f,_0x50de6f['creatorId']=_0xe08b2c,_0x50de6f['id']=_0x581fb8;const _0x26e852=this['addRevisionData'](_0x50de6f);return this['adapter']&&this['_bufferUpdate'](_0x50de6f['id'],_0x50de6f,!0x0),_0x26e852;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x5e7b6f){return(_0x5e7b6f=_0x5e7b6f['filter'](_0x5397b5=>!_0x5397b5['name']||'revision-start'!==_0x5397b5['name']&&'revision-end'!==_0x5397b5['name']))['forEach'](_0x1349c1=>{'string'!=typeof _0x1349c1&&(_0x1349c1['children']=this['_removeRevisionMarkers'](_0x1349c1['children']),_0x1349c1['attributes']=_0x1349c1['attributes']['filter'](_0x2bfeab=>!_0x2bfeab[0x0]['startsWith']('data-revision-')));}),_0x5e7b6f;}}function B(_0x5c254e,_0x4fefff){const _0x12b530=_0x4fefff['editing']['view']['document'];if('string'==typeof _0x5c254e)return new _0x1321c8(_0x12b530,_0x5c254e);{const _0x3ae79b=_0x5c254e['children']['map'](_0x3a6ddd=>B(_0x3a6ddd,_0x4fefff));return new(T[_0x5c254e['type']]||_0x293ee7)(_0x12b530,_0x5c254e['name'],_0x5c254e['attributes'],_0x3ae79b);}}class J{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x58d39b){this['editor']=_0x58d39b,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'](_0x9bfe5){this['source']=_0x9bfe5;const _0x1fbe8f=new Map(),_0x405f3d=new Map(),_0x2a20a0=this['editor']['model']['document']['roots']['map'](_0x4ca32b=>_0x4ca32b['rootName']);for(const _0x30dd61 of _0x2a20a0){const _0x4af98b=this['editor']['model']['document']['getRoot'](_0x30dd61),_0x37548e=q(_0x4af98b);_0x1fbe8f['set'](_0x30dd61,_0x37548e),_0x405f3d['set'](_0x30dd61,Object['fromEntries'](_0x4af98b['getAttributes']()));}const _0xee8e7b=Array['from'](this['editor']['model']['markers'])['map'](_0xf711f6=>[_0xf711f6['name'],_0xf711f6['getRange']()]),_0x15cfec=this['source']['version'];this['_saveMetaData'](_0x15cfec,_0x1fbe8f,_0xee8e7b,_0x405f3d),this['_startingRevisionId']=this['_revisionId'];const _0x5f7e6=new Map(),_0x4726a4=new Map();for(const _0x374720 of _0x2a20a0){const _0x12b83c=G(_0x374720);_0x5f7e6['set'](_0x374720,_0x12b83c),_0x4726a4['set'](_0x374720,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x5f7e6,[],_0x4726a4);}['getData'](_0x344729,_0x329b34){if(this['_lastFrom']===_0x344729&&this['_lastTo']<=_0x329b34)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x329b34,!0x0);else{if(!this['_savedMetaData']['has'](_0x344729)){const _0x505b3a=this['_getPreviousFrom'](_0x344729);this['_calculateMetaData'](_0x505b3a,_0x344729,!0x1);}this['_calculateMetaData'](_0x344729,_0x329b34,!0x0);}return this['_lastFrom']=_0x344729,this['_lastTo']=_0x329b34,this['_getState']();}['loadState'](_0x9c8c20){this['_reset'](),this['_lastFrom']=_0x9c8c20['fromVersion'],this['_lastTo']=_0x9c8c20['toVersion'];for(const _0x1274b1 in _0x9c8c20['diffData']){const _0x19836b=_0x9c8c20['diffData'][_0x1274b1]['attachChange'],_0x59c371=_0x5cde81(_0x9c8c20['diffData'][_0x1274b1]['attributesBefore'])||{},_0x637712=this['_makeModelFromViewString'](_0x9c8c20['diffData'][_0x1274b1]['deletions']);_0x637712['rootName']=_0x1274b1,_0x637712['_isAttached']=!_0x19836b||!_0x19836b['isAttached'],_0x637712['isAttached']=()=>_0x637712['_isAttached'],this['_baseRoots']['set'](_0x1274b1,_0x637712),this['_baseRootsAttributes']['set'](_0x1274b1,_0x59c371),_0x19836b&&this['_touchedRoots']['set'](_0x1274b1,_0x19836b);const _0x5d0783=this['_makeIdsRoot'](_0x637712);this['_baseIdsRoots']['set'](_0x1274b1,_0x5d0783);for(const [_0x26daf1,_0x241fd0]of _0x637712['markers']){if(!_0x26daf1['startsWith']('revision:'))continue;const _0x3065ec=_0x26daf1['split'](':')[0x2];for(const _0x225ad4 of _0x241fd0['getWalker']({'singleCharacters':!0x0})){const _0x195cad=this['_getVidAttributeName'](_0x225ad4),_0x2fd3b9='elementEnd'==_0x225ad4['type']?_0x225ad4['previousPosition']['path']['slice'](0x0,-0x1):_0x225ad4['previousPosition']['path'],_0x555c40=_0x5d0783['getNodeByPath'](_0x2fd3b9)['getAttribute'](_0x195cad);this['_touched']['set'](_0x555c40,{'userId':_0x3065ec});}}}this['_startingRevisionId']=this['_revisionId'];const _0x34979f=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0xa3d60e=>!this['_touched']['has'](_0xa3d60e));let _0x46f8fe=0x0;const _0x4b54b7=new Map();for(const _0x545a63 in _0x9c8c20['diffData']){const _0x36503c=_0x9c8c20['diffData'][_0x545a63]['attachChange'],_0x171115=_0x5cde81(_0x9c8c20['diffData'][_0x545a63]['attributesAfter'])||{},_0x2df15a=this['_makeModelFromViewString'](_0x9c8c20['diffData'][_0x545a63]['insertions']);_0x2df15a['rootName']=_0x545a63,_0x2df15a['_isAttached']=!_0x36503c||_0x36503c['isAttached'],_0x2df15a['isAttached']=()=>_0x2df15a['_isAttached'],this['_diffRoots']['set'](_0x545a63,_0x2df15a),this['_diffRootsAttributes']['set'](_0x545a63,_0x171115);const _0x3c2bd4=this['_makeIdsRoot'](_0x2df15a,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x545a63,_0x3c2bd4),_0x4b54b7['set'](_0x545a63,_0x2df15a['isAttached']()?_0x171115:{});for(const [_0x598925,_0x1e676b]of _0x2df15a['markers']){if(!_0x598925['startsWith']('revision:'))continue;const _0x22ff65=_0x598925['split'](':')[0x2];for(const _0x3a0ca1 of _0x1e676b['getWalker']({'singleCharacters':!0x0})){const _0x4a757d=this['_getVidAttributeName'](_0x3a0ca1),_0x44c914=this['_revisionId']++,_0x50b330='elementEnd'==_0x3a0ca1['type']?_0x3a0ca1['previousPosition']['path']['slice'](0x0,-0x1):_0x3a0ca1['previousPosition']['path'];_0x3c2bd4['getNodeByPath'](_0x50b330)['_setAttribute'](_0x4a757d,_0x44c914),this['_touched']['set'](_0x44c914,{'userId':_0x22ff65});}}for(const _0x8aa398 of this['editor']['model']['createRangeIn'](_0x2df15a)['getWalker']({'singleCharacters':!0x0})){const _0x34f326=this['_getVidAttributeName'](_0x8aa398),_0x2dc666='elementEnd'==_0x8aa398['type']?_0x8aa398['previousPosition']['path']['slice'](0x0,-0x1):_0x8aa398['previousPosition']['path'],_0x207b26=_0x3c2bd4['getNodeByPath'](_0x2dc666);_0x207b26['getAttribute'](_0x34f326)>0x0||_0x207b26['_setAttribute'](_0x34f326,_0x34979f[_0x46f8fe++]);}for(const [_0x573e7f,_0x48b37a]of _0x2df15a['markers'])_0x573e7f['startsWith']('revision:')||this['_markers']['set'](_0x573e7f,_0x48b37a);}const _0x2c4b01=G('$graveyard');this['_baseRoots']['set']('$graveyard',_0x2c4b01),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x2c4b01,0x1));const _0x45a6fc=G('$graveyard');this['_diffRoots']['set']('$graveyard',_0x45a6fc),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x45a6fc,0x1));const _0x541313=Array['from'](this['_diffRoots'])['map'](([_0x3ec46c,_0x1724cd])=>[_0x3ec46c,q(_0x1724cd)]);this['_saveMetaData'](this['_lastTo'],_0x541313,this['_markers'],_0x4b54b7);}['_makeModelFromViewString'](_0xb348c2){const _0x55ff12=JSON['parse'](_0xb348c2),_0x32d3e2=this['editor']['editing']['view']['document'],_0x132f66=new _0x13ccfe(_0x32d3e2,_0x55ff12['map'](_0x48e59f=>B(_0x48e59f,this['editor'])));return this['editor']['data']['toModel'](_0x132f66);}['_saveMetaData'](_0x46222d,_0x240bab,_0x512f5b,_0x1f2e32){const _0x347fb3=new Map(_0x240bab),_0x425970=new Map(_0x5cde81(_0x1f2e32)),_0x13051a=new Map();for(const [_0x18cc93,_0x1cba9b]of _0x512f5b)_0x13051a['set'](_0x18cc93,{'start':_0x1cba9b['start']['clone'](),'end':_0x1cba9b['end']['clone'](),'rootName':_0x1cba9b['root']['rootName']});this['_savedMetaData']['set'](_0x46222d,{'roots':_0x347fb3,'markers':_0x13051a,'rootsAttributes':_0x425970});}['_removeMetaData'](_0x4211b8){this['_savedMetaData']['delete'](_0x4211b8);}['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'](_0xc356b6,_0x52f69e=null){let _0x5e03c8=null;_0xc356b6['is']('documentFragment')||(_0x5e03c8=new ft(_0xc356b6['name'],{'vid_start':null===_0x52f69e?this['_revisionId']++:_0x52f69e++}));const _0x506a8a=[];for(const _0x4be25d of _0xc356b6['getChildren']())if(_0x4be25d['is']('element')){_0x506a8a['push'](this['_makeIdsRoot'](_0x4be25d,_0x52f69e));const _0x4abdf1=_0x506a8a[_0x506a8a['length']-0x1];null!==_0x52f69e&&(_0x52f69e=_0x4abdf1['is']('element','$text')?_0x4abdf1['getAttribute']('vid')+0x1:_0x4abdf1['getAttribute']('vid_end')+0x1);}else{for(let _0x5cdbfd=0x0;_0x5cdbfd<_0x4be25d['offsetSize'];_0x5cdbfd++)_0x506a8a['push'](new ft('$text',{'vid':null===_0x52f69e?this['_revisionId']++:_0x52f69e++}));}if(_0xc356b6['is']('documentFragment')){const _0x3e5d98=G(_0xc356b6['rootName']);return _0x3e5d98['_insertChild'](0x0,_0x506a8a),_0x3e5d98;}return _0x5e03c8['_setAttribute']('vid_end',null===_0x52f69e?this['_revisionId']++:_0x52f69e++),_0x5e03c8['_insertChild'](0x0,_0x506a8a),_0x5e03c8;}['_calculateMetaData'](_0x398d6f,_0x4e48a2,_0x206360){this['_reset']();const {roots:_0x4dcf00,markers:_0x547630,rootsAttributes:_0x3cacf4}=this['_savedMetaData']['get'](_0x398d6f);this['_baseRoots']=new Map(_0x4dcf00),this['_baseRootsAttributes']=new Map(_0x5cde81(_0x3cacf4));for(const [_0x10edef,_0x348ff8]of this['_baseRoots'])if('$graveyard'!==_0x10edef&&(this['_diffRoots']['set'](_0x10edef,q(_0x348ff8)),this['_diffRootsAttributes']=new Map(_0x5cde81(_0x3cacf4)),_0x206360)){const _0x2e83f3=this['_revisionId'];this['_idsRoots']['set'](_0x10edef,this['_makeIdsRoot'](_0x348ff8)),this['_baseIdsRoots']['set'](_0x10edef,this['_makeIdsRoot'](_0x348ff8,_0x2e83f3));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',q(this['_baseRoots']['get']('$graveyard'))),_0x206360&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x1d5974,_0x1838cb]of _0x547630){const _0x19af98=this['_baseRoots']['get'](_0x1838cb['rootName']),_0x499df4=this['_diffRoots']['get'](_0x1838cb['rootName']),_0x500755=new vt(this['_fixPosition'](_0x1838cb['start'],_0x19af98),this['_fixPosition'](_0x1838cb['end'],_0x19af98)),_0x1de18b=this['_fixRange'](_0x500755,_0x499df4);_0x19af98['markers']['set'](_0x1d5974,_0x500755),this['_markers']['set'](_0x1d5974,_0x1de18b);}this['_applyOperations'](_0x398d6f,_0x4e48a2,_0x206360);}['_applyOperations'](_0x1cd910,_0x5ccd6e,_0x238156){for(const _0x5c33c5 of this['source']['getOperations'](_0x1cd910,_0x5ccd6e))this['_handleOperation'](_0x5c33c5,_0x238156);for(const _0x3da6e5 of this['_diffRoots']['values']())_0x3da6e5['markers']['clear']();for(const [_0x3ddaaa,_0x14e7ee]of this['_markers']){this['_diffRoots']['get'](_0x14e7ee['root']['rootName'])['markers']['set'](_0x3ddaaa,_0x14e7ee['clone']());}const _0x388e2b=new Map(),_0x2b99c0=new Map();for(const [_0xa2a83,_0x21b605]of this['_diffRoots'])_0x388e2b['set'](_0xa2a83,q(_0x21b605)),_0x2b99c0['set'](_0xa2a83,this['_diffRootsAttributes']['get'](_0xa2a83));this['_saveMetaData'](_0x5ccd6e,_0x388e2b,this['_markers'],_0x2b99c0);}['_getPreviousFrom'](_0x388618){const _0xac89bf=Array['from'](this['_savedMetaData']['keys']());_0xac89bf['sort']((_0x2bbf55,_0x2b15ad)=>_0x2bbf55-_0x2b15ad),_0xac89bf['reverse']();for(const _0x146481 of _0xac89bf)if(_0x146481<_0x388618)return _0x146481;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x3e9bd9,_0x59db5c){const _0x26f2f5=Array['from'](_0x59db5c['markers'])['map'](([_0x1278d7,_0x2a3110])=>[_0x1278d7,this['_fixRange'](_0x2a3110,_0x3e9bd9)]);_0x3e9bd9['markers']=new Map(_0x26f2f5);}['_transformMarkers'](_0x4eeb80){for(const _0x45b58c of this['_markers']['values']()){const _0x4bf4d9=_0x45b58c['getTransformedByOperation'](_0x4eeb80),_0x303e7e=vt['_createFromRanges'](_0x4bf4d9);_0x45b58c['start']=_0x303e7e['start'],_0x45b58c['end']=_0x303e7e['end'];}}['_handleOperation'](_0x51fc63,_0x184233){if('addRoot'!=_0x51fc63['type']&&'detachRoot'!=_0x51fc63['type']){if('insert'==_0x51fc63['type']){const _0x5e29be=_0x51fc63['position']['root']['rootName'];this['_diffRoots']['has'](_0x5e29be)||(this['_diffRoots']['set'](_0x5e29be,G(_0x5e29be,!0x0)),this['_diffRootsAttributes']['set'](_0x5e29be,{}),_0x184233&&this['_idsRoots']['set'](_0x5e29be,G(_0x5e29be,!0x0)));}else{if('addRootAttribute'==_0x51fc63['type']||'removeRootAttribute'==_0x51fc63['type']||'changeRootAttribute'==_0x51fc63['type'])return void this['_handleRootAttributeOperation'](_0x51fc63);'marker'==_0x51fc63['type']&&this['_handleMarkerOperation'](_0x51fc63);}if('marker'!==_0x51fc63['type']){const _0x35d845=this['_cloneOperation'](_0x51fc63,this['_diffRoots']);_0x35d845['_execute'](),this['_transformMarkers'](_0x35d845);}if(_0x184233)switch(_0x51fc63['type']){case'insert':this['_handleInsertOperation'](_0x51fc63);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x51fc63);break;case'merge':this['_handleMergeOperation'](_0x51fc63);break;case'split':this['_handleSplitOperation'](_0x51fc63);}}else this['_handleRootOperation'](_0x51fc63,_0x184233);}['_cloneOperation'](_0x548f54,_0x422e5b){const _0x13b2a6=_0x548f54['clone']();return _0x13b2a6['_authorId']=_0x548f54['_authorId'],this['_fixOperation'](_0x13b2a6,_0x422e5b),_0x13b2a6;}['_getBaseVids'](_0x12f44d){return _0x12f44d['map'](_0x1141d7=>{const _0x4a5d8d=this['_getVidAttributeName'](_0x1141d7);return Number(_0x1141d7['item']['getAttribute'](_0x4a5d8d));});}['_generateTape'](_0x29a807,_0x5d63f9){if(_0x29a807['is']('element','$text'))_0x5d63f9['push']({'item':_0x29a807,'type':'text'});else{_0x29a807['is']('element')&&_0x5d63f9['push']({'item':_0x29a807,'type':'elementStart'});for(const _0x2766ef of _0x29a807['getChildren']())this['_generateTape'](_0x2766ef,_0x5d63f9);_0x29a807['is']('element')&&_0x5d63f9['push']({'item':_0x29a807,'type':'elementEnd'});}return _0x5d63f9;}['_getState'](){const _0x13da56=new Map(this['_touched']),_0x2c0b5f=new Map(_0x13da56),_0x14f900=new Map(),_0x2683c4={'insertions':{},'deletions':{}},_0x22f2c3={'insertions':{},'deletions':{}},_0x463d03=new Map(),_0x13772c=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x13772c['delete']('$graveyard');for(const _0x1b51aa of _0x13772c){const _0x2f2f75=this['_diffRoots']['get'](_0x1b51aa)||G(_0x1b51aa,!0x1),_0xacac52=this['_baseRoots']['get'](_0x1b51aa)||G(_0x1b51aa,!0x1);_0x2f2f75['isAttached']()||_0xacac52['isAttached']()?(_0x2683c4['insertions'][_0x1b51aa]=q(_0x2f2f75),_0x2683c4['deletions'][_0x1b51aa]=q(_0xacac52),this['_copyMarkers'](_0x2683c4['deletions'][_0x1b51aa],_0xacac52),this['_copyMarkers'](_0x2683c4['insertions'][_0x1b51aa],_0x2f2f75),_0x22f2c3['insertions'][_0x1b51aa]=this['_generateTape'](this['_idsRoots']['get'](_0x1b51aa),[]),_0x22f2c3['deletions'][_0x1b51aa]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1b51aa)||G(_0x1b51aa,!0x1),[])):_0x13772c['delete'](_0x1b51aa);}for(const _0x33ab54 of _0x13772c){const _0x2ec4bf=_0x22f2c3['insertions'][_0x33ab54];for(const _0xb30d11 of _0x2ec4bf){const _0x278438=this['_getVidAttributeName'](_0xb30d11),_0x489132=_0xb30d11['item']['getAttribute'](_0x278438);_0x2c0b5f['delete'](_0x489132),_0x489132>=this['_startingRevisionId']&&_0x14f900['set'](_0x489132,_0x13da56['get'](_0x489132));}}for(const _0xbe8422 of _0x13772c){const _0x177bec=_0x22f2c3['insertions'][_0xbe8422],_0x46fe5e=this['_getBaseVids'](_0x22f2c3['deletions'][_0xbe8422]);let _0x257dbc=0x0;for(const _0xf636b3 of _0x177bec){const _0x5aa7c2=this['_getVidAttributeName'](_0xf636b3),_0x3d2d69=_0xf636b3['item']['getAttribute'](_0x5aa7c2);if(!_0x14f900['has'](_0x3d2d69)&&!_0x463d03['has'](_0x3d2d69)){if(_0x2c0b5f['has'](_0x3d2d69))_0x257dbc++;else{if(_0x3d2d69!=_0x46fe5e[_0x257dbc]){const _0x2ad9d5=_0x13da56['get'](_0x3d2d69)||_0x13da56['get'](_0x46fe5e[_0x257dbc]);for(;_0x3d2d69!=_0x46fe5e[_0x257dbc];)_0x2c0b5f['has'](_0x46fe5e[_0x257dbc])||(_0x463d03['set'](_0x46fe5e[_0x257dbc],_0x2ad9d5),_0x13da56['set'](_0x46fe5e[_0x257dbc],_0x2ad9d5)),_0x257dbc++;}_0x257dbc++;}}}}for(const _0x270a12 of _0x13772c){const _0x4bbae0=_0x22f2c3['insertions'][_0x270a12];for(const _0x359c24 of _0x4bbae0){const _0x28b216=this['_getVidAttributeName'](_0x359c24),_0x1bdede=_0x359c24['item']['getAttribute'](_0x28b216);if(_0x463d03['has'](_0x1bdede)){const _0x49c419=_0x463d03['get'](_0x1bdede);_0x2c0b5f['has'](_0x1bdede)||_0x2c0b5f['set'](_0x1bdede,{..._0x49c419}),_0x14f900['set'](_0x1bdede,{..._0x49c419});}}}for(const _0x6de60 of _0x2c0b5f['keys']())_0x6de60>=this['_startingRevisionId']&&_0x2c0b5f['delete'](_0x6de60);const _0x2e6e60=new Map();for(const _0x32b237 of _0x13772c){let _0xc1c832=_0x22f2c3['insertions'][_0x32b237];for(const _0x744b07 of _0xc1c832)if(_0x744b07['item']['is']('element','tableCell')){const _0x3db361=this['_getVidAttributeName'](_0x744b07),_0x368d56=_0x744b07['item']['getAttribute'](_0x3db361);if(_0x14f900['has'](_0x368d56)){const _0x56ebf7=_0x744b07['item']['parent']['parent']['getAttribute']('vid_start'),_0x3182d9=_0x2e6e60['get'](_0x56ebf7)||new Set();_0x3182d9['add'](_0x14f900['get'](_0x368d56)['userId']),_0x2e6e60['set'](_0x56ebf7,_0x3182d9);}}_0xc1c832=_0x22f2c3['deletions'][_0x32b237];for(const _0x5ac60d of _0xc1c832)if(_0x5ac60d['item']['is']('element','tableCell')){const _0x5de302=this['_getVidAttributeName'](_0x5ac60d),_0x4bd40e=_0x5ac60d['item']['getAttribute'](_0x5de302);if(_0x2c0b5f['has'](_0x4bd40e)){const _0x4b415f=_0x5ac60d['item']['parent']['parent']['getAttribute']('vid_start'),_0x582c7a=_0x2e6e60['get'](_0x4b415f)||new Set();_0x582c7a['add'](_0x2c0b5f['get'](_0x4bd40e)['userId']),_0x2e6e60['set'](_0x4b415f,_0x582c7a);}}for(const _0x1831b4 of _0x2e6e60['keys']())(_0x14f900['has'](_0x1831b4)||_0x2c0b5f['has'](_0x1831b4))&&_0x2e6e60['delete'](_0x1831b4);}for(const _0x4a61b9 of _0x13772c){const _0x689b11=_0x22f2c3['insertions'][_0x4a61b9];let _0x11dd43=null,_0x11dbe7=null;for(const _0x316379 of _0x689b11){const _0xc36d0f=this['_getVidAttributeName'](_0x316379),_0x4a540e=_0x316379['item']['getAttribute'](_0xc36d0f),_0x435066=_0x2e6e60['get'](_0x4a540e);_0x435066&&'elementStart'==_0x316379['type']&&(_0x11dd43=Array['from'](_0x435066)[0x0],_0x11dbe7=_0x316379['item']['getAttribute']('vid_end')),_0x11dd43&&(_0x2c0b5f['set'](_0x4a540e,{'userId':_0x11dd43}),_0x14f900['set'](_0x4a540e,{'userId':_0x11dd43})),_0x4a540e==_0x11dbe7&&(_0x11dd43=null,_0x11dbe7=null);}}const _0x242ce4={},_0x47eca2=new Set();for(const _0x1dca96 of _0x13772c){const _0x2576e5=_0x2683c4['deletions'][_0x1dca96],_0x887266=_0x2683c4['insertions'][_0x1dca96];for(const {userId:_0x69c82d}of this['_touchedMarkers']['values']())null!==_0x69c82d&&_0x47eca2['add'](_0x69c82d);for(const {userId:_0x1fe25c}of this['_touchedRoots']['values']())null!==_0x1fe25c&&_0x47eca2['add'](_0x1fe25c);this['_markChanges'](_0x887266,_0x22f2c3['insertions'][_0x1dca96],_0x14f900,'insertion',_0x47eca2),this['_markChanges'](_0x2576e5,_0x22f2c3['deletions'][_0x1dca96],_0x2c0b5f,'deletion',_0x47eca2),_0x242ce4[_0x1dca96]={'insertions':this['_prepareViewToSave'](_0x887266),'deletions':this['_prepareViewToSave'](_0x2576e5),'attachChange':this['_touchedRoots']['get'](_0x1dca96)||null,'attributesBefore':_0x5cde81(this['_baseRootsAttributes']['get'](_0x1dca96))||{},'attributesAfter':_0x5cde81(this['_diffRootsAttributes']['get'](_0x1dca96))};}return{'diffData':_0x242ce4,'authorsIds':Array['from'](_0x47eca2)};}['_processRootBeforeSave'](_0x220116){for(const [,_0x1de2b6]of _0x220116['markers']){const _0x5cf4d1=_0x1de2b6['start']['getAncestors']()['filter'](_0x36de31=>'tableCell'==_0x36de31['name']);for(const _0x12b22b of _0x5cf4d1)0x1==_0x12b22b['childCount']&&_0x12b22b['getChild'](0x0)['is']('element','paragraph')&&_0x12b22b['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0x3c4921){this['_processRootBeforeSave'](_0x3c4921);const _0x1016dd=this['editor']['data']['toView'](_0x3c4921,{}),_0x4a21df=Array['from'](_0x1016dd['getChildren']())['map'](_0x3ee181=>this['_getViewJson'](_0x3ee181));return JSON['stringify'](_0x4a21df);}['_getViewJson'](_0x42e744){if(_0x42e744['is']('$text'))return _0x42e744['data'];{const _0x421be4=_0x42e744;return{'type':Object['keys'](T)['find'](_0x1c6025=>_0x42e744 instanceof T[_0x1c6025]),'name':_0x421be4['name'],'attributes':Array['from'](_0x421be4['getAttributes']()),'children':Array['from'](_0x421be4['getChildren']())['map'](_0x388928=>this['_getViewJson'](_0x388928))};}}['_markChanges'](_0x30038c,_0x13e639,_0x331766,_0x1f9873,_0x10be56){let _0x34163d=null,_0xdd1085=null,_0xe23a50=0x0;const _0x51761f=this['editor']['model'];for(let _0x298c8a=0x0;_0x298c8a<_0x13e639['length'];_0x298c8a++){const _0x18ec91=this['_getVidAttributeName'](_0x13e639[_0x298c8a]),_0x27cfc1=_0x13e639[_0x298c8a]['item']['getAttribute'](_0x18ec91),_0x2207f4=_0x331766['get'](_0x27cfc1),_0x13ffdc=_0x298c8a==_0x13e639['length']-0x1;(!_0x34163d&&_0x2207f4&&(_0x34163d=_0x2207f4,_0xdd1085=_0x13e639[_0x298c8a]),_0x34163d&&(!_0x2207f4||_0x2207f4['userId']!=_0x34163d['userId']))&&(_0x4c1df3(_0x2207f4,L(_0xdd1085,_0x30038c,_0x51761f),L(_0x13e639[_0x298c8a],_0x30038c,_0x51761f)),_0x34163d=_0x2207f4||null,_0xdd1085=_0x2207f4?_0x13e639[_0x298c8a]:null),_0x34163d&&_0x13ffdc&&_0x4c1df3(_0x2207f4,L(_0xdd1085,_0x30038c,_0x51761f),W(_0x13e639[_0x298c8a],_0x30038c,_0x51761f));}function _0x4c1df3(_0xbe19de,_0x244ff2,_0x30f64a){const _0x5957b=_0x34163d['userId'],_0x13304e='revision:'+_0x1f9873+':'+_0x5957b+':'+_0xe23a50++,_0x47957b=_0x51761f['createRange'](_0x244ff2,_0x30f64a);_0x30038c['markers']['set'](_0x13304e,_0x47957b),null!==_0x5957b&&_0x10be56['add'](_0x5957b);}}['_getVidAttributeName'](_0x93ceed){switch(_0x93ceed['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x143e04,_0x21a196){_0x143e04['baseVersion']=null;for(const _0x5b28af in _0x143e04){const _0x4b77d9=_0x143e04[_0x5b28af];if(_0x4b77d9 instanceof gt){const _0x2c4644=_0x21a196['get'](_0x4b77d9['root']['rootName']);_0x143e04[_0x5b28af]=this['_fixPosition'](_0x4b77d9,_0x2c4644);}if(_0x4b77d9 instanceof vt){const _0x25a4e7=_0x21a196['get'](_0x4b77d9['root']['rootName']);_0x143e04[_0x5b28af]=this['_fixRange'](_0x4b77d9,_0x25a4e7);}'root'===_0x5b28af&&(_0x143e04['root']=_0x21a196['get'](_0x143e04['root']['rootName']));}}['_fixRange'](_0x5b080f,_0x4fbacf){return this['editor']['model']['createRange'](this['_fixPosition'](_0x5b080f['start'],_0x4fbacf),this['_fixPosition'](_0x5b080f['end'],_0x4fbacf));}['_fixPosition'](_0x1eb98b,_0x31ab42){return this['editor']['model']['createPositionFromPath'](_0x31ab42,_0x1eb98b['path'],_0x1eb98b['stickiness']);}['_handleInsertOperation'](_0x470691){const _0x7e02c4=this['_idsRoots']['get'](_0x470691['position']['root']['rootName']),_0x331782=this['_fixPosition'](_0x470691['position'],_0x7e02c4),_0x11a962=null===_0x470691['_authorId']?null:_0x470691['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x47836e=_0x331782['parent'],_0x365e29=this['_revisionId'],_0x38243d=[];for(const _0x5b47b0 of _0x470691['nodes'])if(_0x5b47b0['is']('element'))_0x38243d['push'](this['_makeIdsRoot'](_0x5b47b0));else{for(let _0x50cdf7=0x0;_0x50cdf7<_0x5b47b0['offsetSize'];_0x50cdf7++)_0x38243d['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x2e5269=this['_revisionId'];for(let _0x43bcb5=_0x365e29;_0x43bcb5<_0x2e5269;_0x43bcb5++)this['_touched']['set'](_0x43bcb5,{'userId':_0x11a962});_0x47836e['_insertChild'](_0x331782['offset'],_0x38243d);}['_handleMoveOperation'](_0x17eb7a){(_0x17eb7a=this['_cloneOperation'](_0x17eb7a,this['_idsRoots']))['_execute']();const _0x1d8868=null===_0x17eb7a['_authorId']?null:_0x17eb7a['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x24deea=_0x17eb7a['getMovedRangeStart'](),_0x2353d1=_0x24deea['parent'],_0x3c72e0=_0x24deea['offset'];!function _0x59237a(_0x44d654,_0x119355,_0x1834f1,_0x367017){for(let _0x208752=_0x1834f1;_0x208752<_0x367017;_0x208752++){const _0x35f292=_0x119355['getChild'](_0x208752);_0x35f292['is']('element','$text')?_0x44d654['set'](_0x35f292['getAttribute']('vid'),{'userId':_0x1d8868}):(_0x44d654['set'](_0x35f292['getAttribute']('vid_start'),{'userId':_0x1d8868}),_0x59237a(_0x44d654,_0x35f292,0x0,_0x35f292['childCount']),_0x44d654['set'](_0x35f292['getAttribute']('vid_end'),{'userId':_0x1d8868}));}}(this['_touched'],_0x2353d1,_0x3c72e0,_0x3c72e0+_0x17eb7a['howMany']);}['_handleMergeOperation'](_0x2977f8){const _0x400691=null===(_0x2977f8=this['_cloneOperation'](_0x2977f8,this['_idsRoots']))['_authorId']?null:_0x2977f8['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x41070f=_0x2977f8['targetPosition']['parent'],_0x67d0f9=_0x2977f8['sourcePosition']['parent'],_0x517d3e=_0x41070f['getAttribute']('vid_end'),_0x356504=_0x67d0f9['getAttribute']('vid_start');_0x41070f['_setAttribute']('vid_end',_0x67d0f9['getAttribute']('vid_end')),_0x67d0f9['_setAttribute']('vid_end',_0x517d3e),this['_touched']['set'](_0x356504,{'userId':_0x400691}),this['_touched']['set'](_0x517d3e,{'userId':_0x400691}),_0x2977f8['_execute']();}['_handleSplitOperation'](_0x4bfec3){const _0x183cf2=null===(_0x4bfec3=this['_cloneOperation'](_0x4bfec3,this['_idsRoots']))['_authorId']?null:_0x4bfec3['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x7b5e65=_0x4bfec3['graveyardPosition'],_0x11327c=_0x4bfec3['splitPosition']['parent'];_0x4bfec3['_execute']();const _0x28f8be=_0x11327c['getAttribute']('vid_end'),_0x21ed0a=_0x4bfec3['insertionPosition']['nodeAfter'];if(_0x7b5e65){const _0x138539=_0x21ed0a['getAttribute']('vid_end'),_0x4318b=_0x11327c['getAttribute']('vid_end');_0x11327c['_setAttribute']('vid_end',_0x138539),_0x21ed0a['_setAttribute']('vid_end',_0x4318b),this['_touched']['set'](_0x11327c['getAttribute']('vid_end'),{'userId':_0x183cf2}),this['_touched']['set'](_0x21ed0a['getAttribute']('vid_start'),{'userId':_0x183cf2});}else{const _0x29bced=this['_revisionId']++,_0x1da773=this['_revisionId']++;_0x11327c['_setAttribute']('vid_end',_0x29bced),_0x21ed0a['_setAttribute']('vid_start',_0x1da773),_0x21ed0a['_setAttribute']('vid_end',_0x28f8be),this['_touched']['set'](_0x29bced,{'userId':_0x183cf2}),this['_touched']['set'](_0x1da773,{'userId':_0x183cf2});}}['_handleMarkerOperation'](_0x134cd0){if(!_0x134cd0['affectsData'])return;const _0x566b4e=(_0x134cd0=this['_cloneOperation'](_0x134cd0,this['_diffRoots']))['oldRange']?_0x134cd0['oldRange']['root']:null,_0xa28cc=_0x134cd0['newRange']?_0x134cd0['newRange']['root']:null;_0x566b4e&&this['_markers']['delete'](_0x134cd0['name']),_0xa28cc&&this['_markers']['set'](_0x134cd0['name'],_0x134cd0['newRange']['clone']());const _0x1d0b30=null===_0x134cd0['_authorId']?null:_0x134cd0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x9d538c=_0x134cd0['name'];if(!this['_touchedMarkers']['has'](_0x9d538c))return void this['_touchedMarkers']['set'](_0x9d538c,{'range':_0x134cd0['oldRange'],'userId':_0x1d0b30});const _0x2c89d3=this['_touchedMarkers']['get'](_0x9d538c),_0xb8bc56=_0x2c89d3['range'],_0xe91366=_0x134cd0['newRange'];null==_0xb8bc56&&null==_0xe91366||_0xb8bc56&&_0xe91366&&_0xb8bc56['isEqual'](_0xe91366)?this['_touchedMarkers']['delete'](_0x134cd0['name']):_0x2c89d3['userId']=_0x1d0b30;}['_handleRootOperation'](_0x810894,_0x42c7c5){this['_diffRoots']['has'](_0x810894['rootName'])?this['_diffRoots']['get'](_0x810894['rootName'])['_isAttached']=_0x810894['isAdd']:(this['_diffRoots']['set'](_0x810894['rootName'],G(_0x810894['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x810894['rootName'],{}),_0x42c7c5&&this['_idsRoots']['set'](_0x810894['rootName'],G(_0x810894['rootName'],!0x0)));const _0x2598b3=null===_0x810894['_authorId']?null:_0x810894['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x13a8de=this['_touchedRoots']['get'](_0x810894['rootName']);_0x13a8de&&_0x13a8de['userId']===_0x2598b3?this['_touchedRoots']['delete'](_0x810894['rootName']):this['_touchedRoots']['set'](_0x810894['rootName'],{'userId':_0x2598b3,'isAttached':_0x810894['isAdd']});}['_handleRootAttributeOperation'](_0x2f5082){const _0x3579ed=this['_diffRootsAttributes']['get'](_0x2f5082['root']['rootName']);null===_0x2f5082['newValue']?delete _0x3579ed[_0x2f5082['key']]:_0x3579ed[_0x2f5082['key']]=_0x2f5082['newValue'];}}function q(_0x5e3023){const _0x5ddc2e=G(_0x5e3023['rootName'],_0x5e3023['isAttached']());for(const _0x37f0ab of _0x5e3023['getChildren']()){const _0x1b2ee0=_0x37f0ab['_clone'](!0x0);_0x5ddc2e['_appendChild'](_0x1b2ee0);}return _0x5ddc2e;}function G(_0x6e666,_0x30d0ad=!0x0){const _0x95b79c=new wt();return _0x95b79c['rootName']=_0x6e666,_0x95b79c['_isAttached']=_0x30d0ad,_0x95b79c['isAttached']=()=>_0x95b79c['_isAttached'],_0x95b79c;}function L(_0x508141,_0x159fd0,_0x3e4c6a){const _0x4ffabf='elementEnd'==_0x508141['type']?_0x3e4c6a['createPositionAt'](_0x508141['item'],'end'):_0x3e4c6a['createPositionBefore'](_0x508141['item']);return _0x3e4c6a['createPositionFromPath'](_0x159fd0,_0x4ffabf['path'],_0x4ffabf['stickiness']);}function W(_0x41d325,_0x35226c,_0x3f772b){const _0x2d54f3='elementStart'==_0x41d325['type']?_0x3f772b['createPositionAt'](_0x41d325['item'],0x0):_0x3f772b['createPositionAfter'](_0x41d325['item']);return _0x3f772b['createPositionFromPath'](_0x35226c,_0x2d54f3['path'],_0x2d54f3['stickiness']);}class hs extends _0x5d3752{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x5b2222,_0x3cdcd5){super(_0x5b2222),this['focusTracker']=new _0x46633f(),this['keystrokes']=new _0x363e46(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x3cdcd5),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'](),_0x53bbca({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x139d16=_0xc8a5e9=>_0xc8a5e9['stopPropagation']();this['keystrokes']['set']('arrowright',_0x139d16),this['keystrokes']['set']('arrowleft',_0x139d16),this['keystrokes']['set']('arrowup',_0x139d16),this['keystrokes']['set']('arrowdown',_0x139d16);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x173cfe){this['revisionNameInputView']['fieldView']['element']['value']=_0x173cfe['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x23ccb3){const _0x2d6393=new at(this['locale'],_0x23903f),_0x57bb4d=_0x2d6393['fieldView'];_0x57bb4d['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x5a53d1=w(this['locale'],'Name\x20of\x20the\x20revision');return!_0x23ccb3&&(_0x5a53d1+='\x20('+w(this['locale'],'optional')+')'),(_0x2d6393['label']=_0x5a53d1,_0x57bb4d['on']('input',()=>{this['revisionNameInputValue']=_0x57bb4d['element']['value']['trim']();}),_0x2d6393);}}class u extends _0x115aaf{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x1766c0=this['editor'],_0x332e8f=_0x1766c0['plugins']['get']('RevisionTracker');_0x1766c0['ui']['componentFactory']['add']('revisionHistory',_0x3823cd=>{const _0x34f466=_0x3272ef(_0x3823cd),_0x4d122a=_0x34f466['panelView']['children'],_0x5d45f7=new _0x2bfa29(_0x3823cd),_0x1ee5b0=new te(_0x3823cd),_0x8f4749=new _0x103323(_0x3823cd),_0x455fe3=new te(_0x3823cd),_0x3738a6=new _0x103323(_0x3823cd);return _0x34f466['bind']('isEnabled')['to'](_0x332e8f,'isReady',_0x332e8f,'isEnabled',_0x1766c0,'isReadOnly',(_0x26c665,_0x2f0978,_0x467b20)=>_0x26c665&&_0x2f0978&&!_0x467b20),_0x34f466['buttonView']['set']({'icon':_0x44fb96['history'],'label':w(_0x3823cd,'Revision\x20history'),'tooltip':!0x0}),_0x8f4749['set']({'label':w(_0x3823cd,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0x8f4749['bind']('isEnabled')['to'](_0x332e8f,'isReady',_0x332e8f,'isEnabled',_0x1766c0,'isReadOnly',(_0x4a1a3c,_0x340285,_0x2a26e4)=>_0x4a1a3c&&_0x340285&&!_0x2a26e4),_0x8f4749['on']('execute',()=>this['_showDialog']()),_0x3738a6['set']({'label':w(_0x3823cd,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x3738a6['bind']('isEnabled')['to'](_0x332e8f,'isReady',_0x1766c0,'isReadOnly',(_0x24a373,_0x3dfcf4)=>_0x24a373&&!_0x3dfcf4),_0x3738a6['on']('execute',()=>{_0x1766c0['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x34f466['isOpen']=!0x1,_0x1766c0['editing']['view']['focus']();}),_0x1ee5b0['children']['add'](_0x8f4749),_0x455fe3['children']['add'](_0x3738a6),_0x5d45f7['role']='menu',_0x5d45f7['items']['addMany']([_0x1ee5b0,_0x455fe3]),_0x4d122a['add'](_0x5d45f7),_0x34f466;}),_0x1766c0['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x440382=this['editor'],_0x150e1a=_0x440382['locale'],_0x3572c1=new _0x38be76(_0x150e1a),_0x49e773=new _0x43e0ed(_0x150e1a);_0x3572c1['buttonView']['set']({'icon':_0x44fb96['history'],'label':w(_0x150e1a,'Revision\x20history')});const _0x398bf9=new _0x3722a1(_0x150e1a,_0x3572c1),_0x57f5f5=new _0x7fd829(_0x150e1a);_0x57f5f5['set']({'label':w(_0x150e1a,'Save\x20current\x20revision')}),_0x57f5f5['delegate']('execute')['to'](_0x3572c1),_0x57f5f5['on']('execute',()=>{this['_showDialog']();}),_0x398bf9['children']['add'](_0x57f5f5),_0x49e773['items']['add'](_0x398bf9);const _0x253ef5=new _0x3722a1(_0x150e1a,_0x3572c1),_0x15526c=new _0x7fd829(_0x150e1a);return _0x15526c['set']({'label':w(_0x150e1a,'Open\x20revision\x20history')}),_0x15526c['delegate']('execute')['to'](_0x3572c1),_0x15526c['on']('execute',()=>{_0x440382['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x253ef5['children']['add'](_0x15526c),_0x49e773['items']['add'](_0x253ef5),_0x3572c1['panelView']['children']['add'](_0x49e773),_0x3572c1;}['_showDialog'](){const _0x1fe194=this['editor'],_0x4583d4=_0x1fe194['locale'],_0x41525d=_0x1fe194['plugins']['get']('Dialog'),_0x159dd9=_0x1fe194['plugins']['get']('RevisionTracker');function _0x3bcc25(_0x5c7f42){_0x1fe194['config']['get']('revisionHistory.requireRevisionName')&&''===_0x5c7f42['revisionName']?_0x5c7f42['revisionNameInputView']['errorText']=w(_0x4583d4,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x1fe194['plugins']['get'](l)['saveRevision']({'name':_0x5c7f42['revisionName']}),_0x41525d['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x3bcc25(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x41525d['show']({'id':'revisionSave','title':w(_0x4583d4,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':w(_0x1fe194['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x41525d['hide']()},{'label':w(_0x1fe194['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x4f690a){_0x4f690a['bind']('isEnabled')['to'](_0x159dd9,'isReady',_0x159dd9,'isEnabled',_0x1fe194,'isReadOnly',(_0x4cef35,_0x314fbf,_0x1e032c)=>_0x4cef35&&_0x314fbf&&!_0x1e032c);},'onExecute':()=>_0x3bcc25(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x41d2c1=this['editor'],_0x33174a=_0x41d2c1['locale'];this['_saveRevisionFormView']=new hs(_0x33174a,_0x41d2c1['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Z extends _0x5d3752{['changeId'];['_model'];constructor(_0x1880c5,_0x437f55){super(_0x1880c5),this['_model']=_0x437f55,this['changeId']=_0x437f55['id'];const _0x55b219=this['bindTemplate'],_0x4c19ce=w(_0x1880c5,_0x437f55['data']['isSuggestion']?'Suggested\x20by':'add'==_0x437f55['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0x437f55['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x55b219['to']('type',_0x163591=>'ck-revision-change__'+_0x163591)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x4c19ce}]},{'text':'\x20'+_0x437f55['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
-
_0x11085b(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0x24d922){super(),this['id']=_0x24d922['id']||_0x19b749(),this['author']=_0x24d922['author'],this['type']=_0x24d922['type'],this['data']=_0x24d922['data']||{},this['rootName']=_0x24d922['rootName'],this['set']('createdAt',_0x24d922['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(_0x286d4f,_0x3e0fd9){this['newRevisionId']=_0x286d4f,this['oldRevisionId']=_0x3e0fd9,this['changes']=new _0xb0134b();}['_setChanges'](_0x5f3471){for(const _0x2969d2 of _0x5f3471)this['changes']['add'](_0x2969d2);}}const tt={'c':_0x4a469a,'a':_0x20c710,'e':_0x37b472,'r':_0x3c5ec8,'u':_0x291149};class d extends _0x115aaf{['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[_0xabe153,_0x9ea6eb,A];}constructor(_0x2db8ab){super(_0x2db8ab),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',(_0x4c2f1c,_0x420a4d,_0x693af1)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x27e8bb=>{for(const _0x3e2266 of this['editor']['editing']['view']['document']['roots'])_0x693af1?_0x27e8bb['removeClass']('ck-editor__editable__overlay',_0x3e2266):_0x27e8bb['addClass']('ck-editor__editable__overlay',_0x3e2266);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x1fcd54=>null!==_0x1fcd54),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x4fd0a4,_0x4a2088,_0x233fff)=>_0x4fd0a4&&_0x233fff?_0x4a2088['changes']['getIndex'](_0x233fff):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0xf195ef,_0x7fb82a)=>_0xf195ef?_0x7fb82a['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0x9ea6eb);}['init'](){const _0x2dcccc=this['editor'],_0x5ee854=new bt(_0x2dcccc,{'direction':'backward'}),_0x17250d=new bt(_0x2dcccc,{'direction':'forward'});(_0x2dcccc['commands']['add']('showPreviousChange',_0x5ee854),_0x2dcccc['commands']['add']('showNextChange',_0x17250d),_0x2dcccc['commands']['add']('restoreRevision',new yt(_0x2dcccc)),this['on']('change:numberOfChanges',()=>{_0x5ee854['refresh'](),_0x17250d['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x2dcccc['enableReadOnlyMode']('revision-viewer'),_0x2dcccc['plugins']['has']('WidgetToolbarRepository'))&&_0x2dcccc['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0x280ea5){await this['loadRevisionData'](_0x280ea5);const _0x157df0={};for(const _0x20ed65 in _0x280ea5['diffData']){if(_0x280ea5['diffData'][_0x20ed65]['attachChange']&&!_0x280ea5['diffData'][_0x20ed65]['attachChange']['isAttached'])continue;const _0x1d9fb0=this['_removeRevisionMarkers'](JSON['parse'](_0x280ea5['diffData'][_0x20ed65]['insertions'])),_0x1f6eca=this['editor']['editing']['view']['document'],_0x50a6d6=new _0x13ccfe(_0x1f6eca,_0x1d9fb0['map'](_0x5a1dcf=>this['_getViewObj'](_0x5a1dcf)));this['editor']['data']['processor']['useFillerType']('marked'),_0x157df0[_0x20ed65]=this['editor']['data']['processor']['toData'](_0x50a6d6),this['editor']['data']['processor']['useFillerType']('default');}return _0x157df0;}async['getRevisionRootsAttributes'](_0x3c63a5){await this['loadRevisionData'](_0x3c63a5);const _0x4a5699={};for(const _0x5c3560 in _0x3c63a5['diffData'])_0x3c63a5['diffData'][_0x5c3560]['attachChange']&&!_0x3c63a5['diffData'][_0x5c3560]['attachChange']['isAttached']||(_0x4a5699[_0x5c3560]=_0x3c63a5['diffData'][_0x5c3560]['attributesAfter']||{});return _0x4a5699;}['_removeRevisionMarkers'](_0x24ccde){return(_0x24ccde=_0x24ccde['filter'](_0x1f5b17=>!_0x1f5b17['name']||'revision-start'!==_0x1f5b17['name']&&'revision-end'!==_0x1f5b17['name']))['forEach'](_0x2b99c3=>{'string'!=typeof _0x2b99c3&&(_0x2b99c3['children']=this['_removeRevisionMarkers'](_0x2b99c3['children']),_0x2b99c3['attributes']=_0x2b99c3['attributes']['filter'](_0x1fc99c=>!_0x1fc99c[0x0]['startsWith']('data-revision-')));}),_0x24ccde;}async['compare'](_0x25ec41,_0x222550,_0x4851f9=!0x1){if(!this['isEnabled'])return;const _0x22e977=this['diff'],_0x21b0b4=this['repository'],_0x3b9b0f='string'==typeof _0x25ec41?_0x21b0b4['getRevision'](_0x25ec41):_0x25ec41,_0x556890='string'==typeof _0x222550?_0x21b0b4['getRevision'](_0x222550):_0x222550,_0x42e933=_0x3b9b0f['id'],_0x39a1f6=_0x556890?_0x556890['id']:null;if(!_0x4851f9&&this['diff']&&this['diff']['newRevisionId']===_0x42e933&&this['diff']['oldRevisionId']===_0x39a1f6)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0x42e933,_0x39a1f6);const _0x3adeab=this['_getRevisionsRange'](_0x3b9b0f,_0x556890,!0x0)['map'](_0x553051=>this['loadRevisionData'](_0x553051));return _0x3adeab['push'](new Promise(_0x4123a9=>{setTimeout(_0x4123a9,0x14);})),Promise['all'](_0x3adeab)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x255ab8=this['_getDiff'](_0x42e933,_0x39a1f6);for(const _0x3f52ff of _0x255ab8['changes'])this['_changeIdToChange']['set'](_0x3f52ff['id'],_0x3f52ff);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x24ae73=>{for(const _0xfc8fb9 of this['editor']['model']['document']['getRootNames']())_0x24ae73['detachRoot'](_0xfc8fb9);for(const _0x5de8a9 of Object['keys'](_0x255ab8['model'])){const _0x3901f5=_0x24ae73['addRoot'](_0x5de8a9);for(const _0x35bb35 of Object['keys'](_0x255ab8['attributes'][_0x5de8a9]))_0x24ae73['setAttribute'](_0x35bb35,_0x255ab8['attributes'][_0x5de8a9][_0x35bb35],_0x3901f5);_0x24ae73['insert'](_0x255ab8['model'][_0x5de8a9],_0x3901f5,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x255ab8['changes'])),this['isReady']=!0x0;})['catch'](_0x21dc13=>{console['error'](_0x21dc13),this['_cleanUp'](),_0x22e977&&(this['diff']=_0x22e977),this['isReady']=!0x0;});}['addRevisionData'](_0x5a8d26,_0x1c995f){const _0x44f62d=this['repository']['createRevision'](_0x5a8d26);return _0x44f62d['on']('_update',(_0x1e7993,_0x1157b5,_0xa5522a)=>_0x1c995f(_0x1157b5,_0xa5522a,_0x44f62d)),this['repository']['addRevision'](_0x44f62d),_0x44f62d;}['loadRevisionData'](_0x371d40){if(!_0x371d40||_0x371d40['diffData'])return Promise['resolve']();{const _0x351f36=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x351f36,'revisionId':_0x371d40['id']})['then'](_0x12e702=>{_0x371d40['_update']({'diffData':_0x12e702['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},_0xd53d05=>{for(const _0x2184f3 of this['editor']['model']['document']['getRootNames']())_0xd53d05['detachRoot'](_0x2184f3);});}['_sortAndFilterDiffChanges'](_0x5ea08f){const _0x2df255=[],_0x1b5e6e=new Map();for(const _0x20db31 of this['editor']['model']['document']['getRootNames']()){const _0x4efa85=this['editor']['editing']['view']['getDomRoot'](_0x20db31);if(!_0x4efa85)continue;const _0x42fc20=_0x4efa85['getClientRects']()['item'](0x0);_0x42fc20&&(_0x2df255['push'](_0x20db31),_0x1b5e6e['set'](_0x20db31,_0x42fc20));}return _0x2df255['sort']((_0x9f8022,_0x5abb71)=>{const _0x3bb507=_0x1b5e6e['get'](_0x9f8022),_0x25318d=_0x1b5e6e['get'](_0x5abb71);return _0x3bb507['y']-_0x25318d['y']||_0x3bb507['x']-_0x25318d['x'];}),(_0x5ea08f=_0x5ea08f['filter'](_0x577650=>_0x2df255['includes'](_0x577650['rootName'])))['sort']((_0x53a8fe,_0x45a757)=>_0x2df255['indexOf'](_0x53a8fe['rootName'])-_0x2df255['indexOf'](_0x45a757['rootName'])),_0x5ea08f;}['_makeTape'](_0x1fe604){const _0x3a1087=Array['from'](_0x1fe604['markers'])['filter'](([_0x4deec1,_0x55a5ac])=>_0x4deec1['startsWith']('revision:')&&!_0x55a5ac['isCollapsed']),_0xb69bfc=Array['from'](this['editor']['model']['createRangeIn'](_0x1fe604)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x3a1087['length'])for(const _0x39614f of _0xb69bfc){const [_0x271699,_0x7f107c]=_0x3a1087[0x0],[,_0x1ad13a,_0x1585dc]=_0x271699['split'](':');if(_0x7f107c['end']['isEqual'](_0x39614f['nextPosition'])&&_0x3a1087['shift'](),(_0x39614f['previousPosition']['isEqual'](_0x7f107c['start'])||_0x39614f['previousPosition']['isAfter'](_0x7f107c['start']))&&('insertion'==_0x1ad13a?_0x39614f['isAdded']={'userId':_0x1585dc}:'deletion'==_0x1ad13a&&(_0x39614f['isRemoved']={'userId':_0x1585dc})),0x0==_0x3a1087['length'])break;}return _0xb69bfc;}['_refreshStartEndIndex'](_0x1fea30){const _0x460a45=new Map();for(let _0x36ad33=0x0;_0x36ad33<_0x1fea30['length'];_0x36ad33++)'text'===_0x1fea30[_0x36ad33]['type']?(_0x1fea30[_0x36ad33]['item']['startIndex']=_0x36ad33,_0x1fea30[_0x36ad33]['item']['endIndex']=_0x36ad33):('elementStart'===_0x1fea30[_0x36ad33]['type']?_0x1fea30[_0x36ad33]['item']['startIndex']=_0x36ad33:'elementEnd'===_0x1fea30[_0x36ad33]['type']&&(_0x1fea30[_0x36ad33]['item']['endIndex']=_0x36ad33),_0x460a45['set'](_0x1fea30[_0x36ad33]['id'],_0x36ad33));for(const _0x4f0f62 of _0x460a45['values']())'elementStart'===_0x1fea30[_0x4f0f62]['type']?_0x1fea30[_0x4f0f62]['item']['endIndex']=_0x460a45['get'](_0x1fea30[_0x4f0f62]['pairId']):'elementEnd'===_0x1fea30[_0x4f0f62]['type']&&(_0x1fea30[_0x4f0f62]['item']['startIndex']=_0x460a45['get'](_0x1fea30[_0x4f0f62]['pairId']));}['_processTape'](_0x323daa){for(let _0xf9bff1=0x0;_0xf9bff1<_0x323daa['length'];_0xf9bff1++){if('elementStart'===_0x323daa[_0xf9bff1]['type'])_0x323daa[_0xf9bff1]['item']['startIndex']=_0xf9bff1;else{if('elementEnd'===_0x323daa[_0xf9bff1]['type']){_0x323daa[_0xf9bff1]['item']['endIndex']=_0xf9bff1;const _0xe2ac3d=_0x323daa[_0xf9bff1]['item']['startIndex'];_0x323daa[_0xe2ac3d]['pairId']=_0x323daa[_0xf9bff1]['id'],_0x323daa[_0xf9bff1]['pairId']=_0x323daa[_0xe2ac3d]['id'];}else _0x323daa[_0xf9bff1]['item']['startIndex']=_0xf9bff1,_0x323daa[_0xf9bff1]['item']['endIndex']=_0xf9bff1,_0x323daa[_0xf9bff1]['pairId']=null;}_0x323daa[_0xf9bff1]['markersStart']||(_0x323daa[_0xf9bff1]['markersStart']=[],_0x323daa[_0xf9bff1]['markersEnd']=[]);}}['_markInsertions'](_0x801460,_0x184fa8){const _0x45a723=_0x801460['filter'](_0x29c9dd=>!_0x29c9dd['isAdded']);for(let _0x43c67d=0x0;_0x43c67d<_0x184fa8['length'];_0x43c67d++)_0x184fa8[_0x43c67d]['isAdded']&&(_0x45a723[_0x43c67d]['isAdded']=_0x184fa8[_0x43c67d]['isAdded']);}['_makeModelFromViewString'](_0x383038){const _0x3aa6f9=JSON['parse'](_0x383038),_0x42ab29=this['editor']['editing']['view']['document'],_0x5df3a3=new _0x13ccfe(_0x42ab29,_0x3aa6f9['map'](_0x3e315c=>this['_getViewObj'](_0x3e315c)));return this['editor']['data']['toModel'](_0x5df3a3);}['_getViewObj'](_0x1d762b){const _0x151939=this['editor']['editing']['view']['document'];if('string'==typeof _0x1d762b)return new _0x1321c8(_0x151939,_0x1d762b);{const _0x2ffd14=_0x1d762b['children']['map'](_0x3af4bf=>this['_getViewObj'](_0x3af4bf));return new(tt[_0x1d762b['type']]||_0x293ee7)(_0x151939,_0x1d762b['name'],_0x1d762b['attributes'],_0x2ffd14);}}['_getDiff'](_0x2a3789,_0x1072a4=null){const _0x36aed4=this['repository']['getRevision'](_0x2a3789),_0x3f6baf=_0x1072a4?this['repository']['getRevision'](_0x1072a4):null,_0x2d9ea3=this['_getRevisionsRange'](_0x36aed4,_0x3f6baf),_0x1fe247=_0x2d9ea3[_0x2d9ea3['length']-0x1],_0x9c6ba6=new Map(),_0x6ee7cb={'model':{},'attributes':{},'changes':[]},_0x2b1fe5=new Set(),_0xf95f51=new Map();for(let _0x2d7917=_0x2d9ea3['length']-0x1;_0x2d7917>=0x0;_0x2d7917--){const _0x428716=_0x2d9ea3[_0x2d7917];for(const _0x4930e6 of Object['keys'](_0x428716['diffData']))if(_0x428716['diffData'][_0x4930e6]['attachChange']){const _0x4f0af7=_0x428716['diffData'][_0x4930e6]['attachChange'];_0x4f0af7['isAttached']?(_0x2b1fe5['add'](_0x4930e6),_0xf95f51['has'](_0x4930e6)&&_0xf95f51['get'](_0x4930e6)['userId']==_0x4f0af7['userId']?_0xf95f51['delete'](_0x4930e6):_0xf95f51['set'](_0x4930e6,_0x4f0af7)):_0xf95f51['has'](_0x4930e6)?(_0x2b1fe5['delete'](_0x4930e6),_0xf95f51['delete'](_0x4930e6)):(_0x2b1fe5['add'](_0x4930e6),_0xf95f51['set'](_0x4930e6,_0x4f0af7));}else _0x2b1fe5['add'](_0x4930e6);}for(const _0x1e5d0a of _0x2b1fe5){const _0x2872d2=_0xf95f51['has'](_0x1e5d0a)&&!_0xf95f51['get'](_0x1e5d0a)['isAttached'];let _0x2cdebf=_0x2872d2?_0x2d9ea3['length']-0x1:0x0;const _0x417e26=_0x2872d2?-0x1:0x1;for(;_0x2d9ea3[_0x2cdebf];){const _0x4d4526=_0x2d9ea3[_0x2cdebf];if(_0x4d4526['diffData'][_0x1e5d0a]){const _0x5e1cce=_0x2872d2?_0x4d4526['diffData'][_0x1e5d0a]['attributesBefore']:_0x4d4526['diffData'][_0x1e5d0a]['attributesAfter'];_0x6ee7cb['attributes'][_0x1e5d0a]=_0x5e1cce?_0x5cde81(_0x5e1cce):{};break;}_0x2cdebf+=_0x417e26;}}for(const _0x1df904 of _0x2d9ea3){_0x1df904['model']={};for(const _0x5ce247 of _0x1df904['authors'])_0x9c6ba6['set'](_0x5ce247['id'],_0x5ce247);for(const _0x8344c of _0x2b1fe5){const _0xf0d33d=_0x1df904['diffData'][_0x8344c]?_0x1df904['diffData'][_0x8344c]['insertions']:'[]',_0x59841f=_0x1df904['diffData'][_0x8344c]?_0x1df904['diffData'][_0x8344c]['deletions']:'[]';_0x1df904['model'][_0x8344c]={'insertions':this['_makeModelFromViewString'](_0xf0d33d),'deletions':this['_makeModelFromViewString'](_0x59841f)};}}for(const _0x2cd9d0 of _0x2b1fe5){let _0x381958=null,_0x4c57fa=0x0;const _0x561c62=new Map(Array['from'](_0x36aed4['model'][_0x2cd9d0]['insertions']['markers'])['filter'](([_0x1cac7e])=>!_0x1cac7e['startsWith']('revision:')));let _0x1ecea3=0x0;for(const _0x47e9c0 of _0x2d9ea3){const _0x494303=this['_makeTape'](_0x47e9c0['model'][_0x2cd9d0]['insertions']);_0x47e9c0==_0x36aed4?(_0x381958=_0x494303,_0x4c57fa=_0x381958['length'],_0x381958['forEach'](_0x2a3e42=>{_0x2a3e42['id']=_0x1ecea3++;}),this['_processTape'](_0x381958)):this['_markInsertions'](_0x381958,_0x494303);const _0x458505=_0x381958['filter'](_0x345b0e=>!_0x345b0e['isAdded'])['map'](_0x248644=>_0x248644['id']);let _0x315b28=0x0;const _0x2f8346=this['_makeTape'](_0x47e9c0['model'][_0x2cd9d0]['deletions']);_0x2f8346['forEach'](_0x1a1885=>{_0x1a1885['isRemoved']?_0x1a1885['id']=_0x4c57fa++:_0x1a1885['id']=_0x458505[_0x315b28++];}),this['_processTape'](_0x2f8346),this['_setDistance'](_0x381958,'isAdded'),this['_setDistance'](_0x2f8346,'isRemoved'),_0x47e9c0==_0x36aed4&&this['_markMarkers'](_0x381958,_0x561c62),_0x381958=this['_joinTapes'](_0x381958,_0x2f8346),this['_refreshStartEndIndex'](_0x381958),this['_setDistance'](_0x381958,'isRemoved');}_0x381958=_0x381958['filter'](_0x1f7110=>!(_0x1f7110['isAdded']&&_0x1f7110['isRemoved']));const _0x58e110=new Map(_0x1fe247['model'][_0x2cd9d0]['deletions']['markers']),_0x2de64e=new Set(_0x561c62['keys']());for(const _0x3a4636 of _0x58e110['keys']())_0x2de64e['delete'](_0x3a4636);this['_markSuggestions'](_0x381958,_0x2de64e),this['_fixObsoleteTags'](_0x381958),_0x381958=this['_removeMissingPairs'](_0x381958),_0x381958=this['_markMismatchedRemovedTags'](_0x381958),_0x381958=this['_removeUnsupportedChanges'](_0x381958);const {root:_0x40a6cc,changes:_0x41dc6f}=this['_makeModelFromTape'](_0x381958,_0x9c6ba6,_0x2cd9d0);_0x6ee7cb['model'][_0x2cd9d0]=_0x40a6cc;const _0x5794eb=_0xf95f51['get'](_0x2cd9d0);if(_0x5794eb){const _0x4ef644=_0x9c6ba6['get'](_0x5794eb['userId']),_0x4fdfef=new r({'author':_0x4ef644,'type':_0x5794eb['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x2cd9d0});_0x41dc6f['unshift'](_0x4fdfef),_0x6ee7cb['attributes'][_0x2cd9d0]['revisionHistoryAttachChange']=_0x4fdfef['id'];}_0x6ee7cb['changes']=_0x6ee7cb['changes']['concat'](_0x41dc6f);}return _0x6ee7cb;}['_markMarkers'](_0x223974,_0xc5e117){for(let _0xc3ac95=0x0;_0xc3ac95<_0x223974['length'];_0xc3ac95++)for(const [_0x3b27ef,_0x5deaae]of _0xc5e117)_0x5deaae['start']['isEqual'](_0x223974[_0xc3ac95]['previousPosition'])&&_0x223974[_0xc3ac95]['markersStart']['push'](_0x3b27ef),_0x5deaae['end']['isEqual'](_0x223974[_0xc3ac95]['nextPosition'])&&_0x223974[_0xc3ac95]['markersEnd']['push'](_0x3b27ef);}['_joinTapes'](_0x4b6a64,_0x465acc){let _0x5cdd46=[],_0x2c814c=0x0,_0x134de1=0x0;for(;_0x2c814c<_0x4b6a64['length']||_0x134de1<_0x465acc['length'];){const _0x54e0df=_0x4b6a64[_0x2c814c]||{},_0x3b60a9=_0x465acc[_0x134de1]||{};if(_0x54e0df['id']==_0x3b60a9['id'])_0x2c814c++,_0x134de1++,_0x5cdd46['push'](_0x54e0df);else{if(_0x3b60a9['isRemoved']&&_0x54e0df['isAdded']){const {commonTape:_0x577eb9,iEnd:_0x10a8ba,jEnd:_0x5f564a}=this['_threeWayMerge'](_0x4b6a64,_0x2c814c,_0x465acc,_0x134de1);_0x5cdd46=_0x5cdd46['concat'](_0x577eb9),_0x2c814c=_0x10a8ba,_0x134de1=_0x5f564a;}else _0x3b60a9['isRemoved']?(_0x134de1++,_0x5cdd46['push'](_0x3b60a9)):(_0x2c814c++,_0x5cdd46['push'](_0x54e0df));}}return _0x5cdd46;}['_markSuggestions'](_0x3df7ae,_0x586137){const _0x3cf897=[];for(let _0x5bd1aa=0x0;_0x5bd1aa<_0x3df7ae['length'];_0x5bd1aa++){for(let _0x4be980=0x0;_0x4be980<_0x3df7ae[_0x5bd1aa]['markersStart']['length'];_0x4be980++){const _0x4a071b=_0x3df7ae[_0x5bd1aa]['markersStart'][_0x4be980];if(!_0x586137['has'](_0x4a071b))continue;const {group:_0x2c4ab4,type:_0x285723,authorId:_0x1d33db}=_0x555373(_0x4a071b);'revision-suggestion'!=_0x2c4ab4||'insertion'!=_0x285723&&'deletion'!=_0x285723||(_0x3cf897['unshift']({'type':_0x285723,'name':_0x4a071b,'userId':_0x1d33db}),_0x3df7ae[_0x5bd1aa]['markersStart']['splice'](_0x4be980,0x1),_0x4be980--);}_0x21d8f5(_0x3df7ae[_0x5bd1aa]);for(let _0x39999d=0x0;_0x39999d<_0x3df7ae[_0x5bd1aa]['markersEnd']['length'];_0x39999d++){const _0x5289d4=_0x3df7ae[_0x5bd1aa]['markersEnd'][_0x39999d];if(!_0x586137['has'](_0x5289d4))continue;const {group:_0x2d71a1,type:_0x542b99}=_0x555373(_0x5289d4);if('revision-suggestion'!=_0x2d71a1||'insertion'!=_0x542b99&&'deletion'!=_0x542b99)continue;_0x3df7ae[_0x5bd1aa]['markersEnd']['splice'](_0x39999d,0x1),_0x39999d--;const _0x30a288=_0x3cf897['findIndex'](_0x199aa3=>_0x199aa3['name']==_0x5289d4);_0x30a288>-0x1&&_0x3cf897['splice'](_0x30a288,0x1);}}function _0x555373(_0x24019a){const _0x24cd97=_0x24019a['split'](':');return{'group':_0x24cd97[0x0],'type':_0x24cd97[0x1],'subType':_0x24cd97['length']>=0x5?_0x24cd97[0x2]:null,'id':_0x24cd97['length']<0x5?_0x24cd97[0x2]:_0x24cd97[0x3],'authorId':_0x24cd97['length']<0x5?_0x24cd97[0x3]:_0x24cd97[0x4],'markerCount':0x6==_0x24cd97['length']?_0x24cd97[0x5]:null};}function _0x21d8f5(_0x6b01c7){for(let _0x1991f4=0x0;_0x1991f4<_0x3cf897['length'];_0x1991f4++){if(_0x6b01c7['isAdded']&&'insertion'==_0x3cf897[_0x1991f4]['type'])return _0x6b01c7['isAddSuggestion']=_0x3cf897[_0x1991f4],void delete _0x6b01c7['isAdded'];if(!_0x6b01c7['isAdded']&&!_0x6b01c7['isRemoved']&&'deletion'==_0x3cf897[_0x1991f4]['type'])return void(_0x6b01c7['isRemoveSuggestion']=_0x3cf897[_0x1991f4]);}}}['_setDistance'](_0x58f280,_0x4c23f5){let _0x1135b2=0x0,_0x5ec311=!0x1;const _0x4d390d=new Map();for(const _0x59c367 of _0x58f280)_0x59c367[_0x4c23f5]?_0x5ec311&&(_0x1135b2++,_0x5ec311=!0x1):(_0x1135b2++,_0x5ec311=!0x0),_0x4d390d['set'](_0x59c367['id'],_0x1135b2);for(let _0x4ffc7c=0x0;_0x4ffc7c<_0x58f280['length'];_0x4ffc7c++){if('isRemoved'==_0x4c23f5&&_0x58f280[_0x4ffc7c]['isAdded']||'isAdded'==_0x4c23f5&&_0x58f280[_0x4ffc7c]['isRemoved'])continue;if('text'==_0x58f280[_0x4ffc7c]['type']){_0x58f280[_0x4ffc7c]['distance']=0x0;continue;}const _0x494b4a=_0x4d390d['get'](_0x58f280[_0x4ffc7c]['pairId']),_0x517493=_0x4d390d['get'](_0x58f280[_0x4ffc7c]['id']);_0x58f280[_0x4ffc7c]['distance']=_0x494b4a-_0x517493;}}['_getRevisionsRange'](_0x216847,_0x35fb9e,_0xd09f99=!0x1){const _0x199afe=[];let _0xecce13=this['repository']['getIndex'](_0x216847),_0x783bc0=this['repository']['getIndex'](_0x35fb9e);for(-0x1==_0x783bc0&&(_0x783bc0=this['repository']['_revisions']['length'],_0xd09f99=!0x1);_0xecce13<_0x783bc0;)_0x199afe['push'](this['repository']['getRevision'](_0xecce13)),_0xecce13++;return _0xd09f99&&_0x199afe['push'](this['repository']['getRevision'](_0xecce13)),_0x199afe;}['_threeWayMerge'](_0x2a9baa,_0x598a03,_0x41e202,_0x4aa5ba){const _0x1a6ae6=this['editor']['model']['schema'];let _0x35fdff=_0x598a03;for(;_0x2a9baa[_0x35fdff]&&_0x2a9baa[_0x35fdff]['isAdded'];)_0x35fdff++;let _0x24203b=_0x4aa5ba;for(;_0x41e202[_0x24203b]&&_0x41e202[_0x24203b]['isRemoved'];)_0x24203b++;_0xcac10e(_0x2a9baa,_0x598a03,_0x35fdff),_0xcac10e(_0x41e202,_0x4aa5ba,_0x24203b);const _0x2176a4=_0x41e202['slice'](_0x4aa5ba,_0x24203b)['concat'](_0x2a9baa['slice'](_0x598a03,_0x35fdff));return _0x2176a4['sort']((_0x249536,_0x571320)=>_0x249536['side']!=_0x571320['side']?_0x249536['side']-_0x571320['side']:_0x249536['level']!=_0x571320['level']?_0x249536['level']-_0x571320['level']:_0x249536['distance']!=_0x571320['distance']?_0x571320['distance']-_0x249536['distance']:!!_0x249536['isAdded']!=!!_0x571320['isAdded']?-0x1==_0x249536['side']||0x0==_0x249536['side']?_0x249536['isAdded']?-0x1:0x1:_0x249536['isAdded']?0x1:-0x1:_0x249536['index']-_0x571320['index']),{'commonTape':_0x2176a4,'iEnd':_0x35fdff,'jEnd':_0x24203b};function _0xcac10e(_0x429679,_0x2180c6,_0x12065f){let _0x3d4b06=-0x1,_0x4bd817=Number['POSITIVE_INFINITY'],_0x1cf4a5=!0x0;for(let _0x4b7441=_0x2180c6;_0x4b7441<_0x12065f;_0x4b7441++)if(_0x1a6ae6['isInline'](_0x429679[_0x4b7441]['item'])||(_0x1cf4a5=!0x1),_0x429679[_0x4b7441]['item']['startIndex']<_0x2180c6&&(_0x3d4b06=_0x4b7441),_0x429679[_0x4b7441]['item']['endIndex']>=_0x12065f){_0x4bd817=_0x4b7441;break;}_0x1cf4a5&&(_0x3d4b06=_0x12065f-0x1);for(let _0x341bf3=_0x2180c6;_0x341bf3<_0x12065f;_0x341bf3++)_0x429679[_0x341bf3]['side']=_0x341bf3<=_0x3d4b06?-0x1:_0x341bf3<_0x4bd817?0x0:0x1,_0x429679[_0x341bf3]['index']=_0x341bf3;let _0x1f8e06=0x0;for(let _0x1d55e7=_0x2180c6;_0x1d55e7<=_0x3d4b06;_0x1d55e7++)0x0==_0x429679[_0x1d55e7]['distance']?_0x429679[_0x1d55e7]['level']=_0x1f8e06:(_0x1f8e06++,_0x429679[_0x1d55e7]['level']=_0x1f8e06,_0x1f8e06++);for(let _0x142a37=_0x2180c6;_0x142a37<_0x12065f;_0x142a37++)0x0==_0x429679[_0x142a37]['side']&&(_0x429679[_0x142a37]['level']=_0x1f8e06);_0x1f8e06=0x0;for(let _0x2f53ce=_0x12065f-0x1;_0x2f53ce>=_0x4bd817;_0x2f53ce--)0x0==_0x429679[_0x2f53ce]['distance']?_0x429679[_0x2f53ce]['level']=_0x1f8e06:(_0x1f8e06--,_0x429679[_0x2f53ce]['level']=_0x1f8e06,_0x1f8e06--);}}['_fixObsoleteTags'](_0x27bae1){const _0x2d6aee=new Map(),_0x458a9a=this['editor']['model']['schema'];for(let _0x19091c=0x1;_0x19091c<_0x27bae1['length'];_0x19091c++){let _0x289047,_0x4cd206,_0x41d85d;const _0x58d629=_0x27bae1[_0x19091c],_0x211dc8=_0x27bae1[_0x19091c-0x1];if('text'==_0x58d629['type'])continue;if(_0x58d629['type']!=_0x211dc8['type'])continue;if(!_0x458a9a['isBlock'](_0x211dc8['item'])||_0x458a9a['isLimit'](_0x211dc8['item']))continue;if(!_0x458a9a['isBlock'](_0x58d629['item'])||_0x458a9a['isLimit'](_0x58d629['item']))continue;if((_0x27bae1[_0x19091c]['isAdded']||_0x27bae1[_0x19091c]['isAddSuggestion'])&&_0x27bae1[_0x19091c-0x1]['isRemoved'])_0x289047=_0x27bae1[_0x19091c],_0x4cd206=_0x27bae1[_0x19091c-0x1],_0x41d85d=_0x19091c-0x1;else{if(!_0x27bae1[_0x19091c]['isRemoved']||!_0x27bae1[_0x19091c-0x1]['isAdded']&&!_0x27bae1[_0x19091c-0x1]['isAddSuggestion'])continue;_0x289047=_0x27bae1[_0x19091c-0x1],_0x4cd206=_0x27bae1[_0x19091c],_0x41d85d=_0x19091c;}const _0x15b23d=_0x289047['level']==_0x4cd206['level'],_0xfc27ed=Math['abs'](_0x289047['level'])<Math['abs'](_0x4cd206['level'])&&0x0==_0x4cd206['distance'];(_0x15b23d||_0xfc27ed)&&(_0x2d6aee['set'](_0x4cd206['id'],_0x289047['id']),_0x27bae1['splice'](_0x41d85d,0x1),_0x19091c--,_0x289047['isAdded']=!0x1);}for(let _0xa8d3a6=0x0;_0xa8d3a6<_0x27bae1['length'];_0xa8d3a6++)_0x2d6aee['has'](_0x27bae1[_0xa8d3a6]['pairId'])&&(_0x27bae1[_0xa8d3a6]['pairId']=_0x2d6aee['get'](_0x27bae1[_0xa8d3a6]['pairId']));}['_removeMissingPairs'](_0x15067a){const _0x1b42e3=new Set(_0x15067a['map'](_0x3bec78=>_0x3bec78['id']));for(let _0x2f3b29=0x0;_0x2f3b29<_0x15067a['length'];_0x2f3b29++)_0x1b42e3['has'](_0x15067a[_0x2f3b29]['pairId'])||0x0==_0x15067a[_0x2f3b29]['distance']||(_0x15067a[_0x2f3b29]['isIncorrect']=!0x0);return _0x15067a['filter'](_0x21e690=>!_0x21e690['isIncorrect']);}['_markMismatchedRemovedTags'](_0xde8232){const _0x3554b8=new Set();for(let _0x3ad748=0x0;_0x3ad748<_0xde8232['length'];_0x3ad748++){if(_0x3554b8['has'](_0xde8232[_0x3ad748]['id'])&&_0xde8232[_0x3ad748]['isRemoved']&&(_0xde8232[_0x3ad748]['isIncorrect']=!0x0),_0xde8232[_0x3ad748]['isIncorrect'])continue;if(0x0==_0xde8232[_0x3ad748]['distance'])continue;if('elementStart'!=_0xde8232[_0x3ad748]['type'])continue;if(null==_0xde8232[_0x3ad748]['pairId'])continue;let _0x3f62e9=_0x3ad748+0x1,_0x2aeb39=0x0;for(;_0xde8232[_0x3f62e9]['id']!=_0xde8232[_0x3ad748]['pairId'];)'elementStart'==_0xde8232[_0x3f62e9]['type']?_0x2aeb39++:'elementEnd'==_0xde8232[_0x3f62e9]['type']&&_0x2aeb39--,_0x3f62e9++;if(0x0!=_0x2aeb39){if(_0xde8232[_0x3ad748]['isRemoved'])_0xde8232[_0x3ad748]['isIncorrect']=!0x0;else{for(;_0x3f62e9!=_0x3ad748;)_0xde8232[_0x3f62e9]['isRemoved']&&0x0!=_0xde8232[_0x3f62e9]['distance']&&(_0xde8232[_0x3f62e9]['isIncorrect']=!0x0,_0x3554b8['add'](_0xde8232[_0x3f62e9]['pairId'])),_0x3f62e9--;}}}return _0xde8232['filter'](_0x31a44b=>!_0x31a44b['isIncorrect']);}['_removeUnsupportedChanges'](_0x351fd3){const _0x3a17d5=this['editor']['model']['schema'];for(let _0x41ca58=0x0;_0x41ca58<_0x351fd3['length'];_0x41ca58++){if(!(_0x351fd3[_0x41ca58]['isAdded']||_0x351fd3[_0x41ca58]['isAddSuggestion']||_0x351fd3[_0x41ca58]['isRemoved']||_0x351fd3[_0x41ca58]['isRemoveSuggestion']))continue;if(0x0==_0x351fd3[_0x41ca58]['distance'])continue;const _0x4850ac=_0x351fd3[_0x41ca58]['item'];_0x3a17d5['isBlock'](_0x4850ac)||_0x3a17d5['isLimit'](_0x4850ac)||(_0x351fd3[_0x41ca58]['isAdded']&&delete _0x351fd3[_0x41ca58]['isAdded'],_0x351fd3[_0x41ca58]['isAddSuggestion']&&delete _0x351fd3[_0x41ca58]['isAddSuggestion'],_0x351fd3[_0x41ca58]['isRemoveSuggestion']&&delete _0x351fd3[_0x41ca58]['isRemoveSuggestion'],_0x351fd3[_0x41ca58]['isRemoved']&&(_0x351fd3[_0x41ca58]['isIncorrect']=!0x0));}return _0x351fd3['filter'](_0x40e7fd=>!_0x40e7fd['isIncorrect']);}['_makeModelFromTape'](_0x3083d3,_0x215805,_0x1bf6ea){const _0x7e4745=new wt(),_0x2c37f0=[],_0x1663de=new Map(),_0x7fe119=this['editor']['model'],_0x64f2fc=_0x7fe119['schema'],_0x521673=[_0x7e4745],_0x552610={},_0x56c6a5={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x27225a=null;const _0x2b78e3=[0x0];for(let _0x403912=0x0;_0x403912<_0x3083d3['length'];_0x403912++)if('elementStart'===_0x3083d3[_0x403912]['type']){_0x3083d3[_0x403912]['previousPosition']=_0x7fe119['createPositionFromPath'](_0x7e4745,_0x2b78e3);const _0x3f7054=new ft(_0x3083d3[_0x403912]['item']['name'],_0x3083d3[_0x403912]['item']['getAttributes']());_0x521673[0x0]['_appendChild'](_0x3f7054),_0x2b78e3['push'](0x0),_0x521673['unshift'](_0x3f7054),_0x3083d3[_0x403912]['nextPosition']=_0x7fe119['createPositionFromPath'](_0x7e4745,_0x2b78e3);}else'elementEnd'===_0x3083d3[_0x403912]['type']?(_0x521673['shift'](),_0x3083d3[_0x403912]['previousPosition']=_0x7fe119['createPositionFromPath'](_0x7e4745,_0x2b78e3),_0x2b78e3['pop'](),_0x2b78e3[_0x2b78e3['length']-0x1]++,_0x3083d3[_0x403912]['nextPosition']=_0x7fe119['createPositionFromPath'](_0x7e4745,_0x2b78e3)):(_0x3083d3[_0x403912]['previousPosition']=_0x7fe119['createPositionFromPath'](_0x7e4745,_0x2b78e3),_0x27225a?_0x27225a['_data']+=_0x3083d3[_0x403912]['item']['data']:_0x27225a=new _t(_0x3083d3[_0x403912]['item']['data'],_0x3083d3[_0x403912]['item']['getAttributes']()),_0x3083d3[_0x403912+0x1]&&'text'===_0x3083d3[_0x403912+0x1]['type']&&_0x5415e9(_0x27225a,_0x3083d3[_0x403912+0x1]['item'])||(_0x521673[0x0]['_appendChild'](_0x27225a),_0x27225a=null),_0x2b78e3[_0x2b78e3['length']-0x1]+=_0x3083d3[_0x403912]['item']['offsetSize'],_0x3083d3[_0x403912]['nextPosition']=_0x7fe119['createPositionFromPath'](_0x7e4745,_0x2b78e3));for(let _0x1be73b=0x0;_0x1be73b<_0x3083d3['length'];_0x1be73b++){const _0x386ef9=_0x3083d3[_0x1be73b]['previousPosition'],_0x3fe5d0=_0x3083d3[_0x1be73b]['nextPosition'];for(const _0x43acae of _0x3083d3[_0x1be73b]['markersStart'])_0x1663de['set'](_0x43acae,{'start':_0x386ef9,'end':null});_0x50e2c1('isRemoveSuggestion',_0x1be73b,_0x386ef9,_0x3fe5d0),_0x50e2c1('isAddSuggestion',_0x1be73b,_0x386ef9,_0x3fe5d0),_0x50e2c1('isRemoved',_0x1be73b,_0x386ef9,_0x3fe5d0),_0x50e2c1('isAdded',_0x1be73b,_0x386ef9,_0x3fe5d0);for(const _0x3fae1 of _0x3083d3[_0x1be73b]['markersEnd']){_0x1663de['get'](_0x3fae1)['end']=_0x3fe5d0;}}for(const [_0x4e1fcc,_0x46b9db]of _0x1663de){const _0x45f722=this['editor']['model']['createRange'](_0x46b9db['start'],_0x46b9db['end']);_0x7e4745['markers']['set'](_0x4e1fcc,_0x45f722);}return _0x2c37f0['sort']((_0x134e3a,_0x310ae7)=>{const _0x598337=_0x7e4745['markers']['get']('revision:'+_0x134e3a['id']),_0x58a7e2=_0x7e4745['markers']['get']('revision:'+_0x310ae7['id']);return _0x598337['start']['isBefore'](_0x58a7e2['start'])?-0x1:_0x598337['start']['isAfter'](_0x58a7e2['start'])?0x1:_0x598337['end']['isBefore'](_0x58a7e2['end'])?-0x1:_0x598337['end']['isAfter'](_0x58a7e2['end'])?0x1:'add'===_0x134e3a['type']?-0x1:0x1;}),{'root':_0x7e4745,'changes':_0x2c37f0};function _0x50e2c1(_0x57aebe,_0x2422cd,_0x82e934,_0x3bac88){const _0x58f92a=!!_0x3083d3[_0x2422cd][_0x57aebe],_0x51f3c5=_0x58f92a?_0x3083d3[_0x2422cd][_0x57aebe]['userId']:null,_0x23f6c6=_0x2422cd===_0x3083d3['length']-0x1,_0x565a6f=_0x56c6a5[_0x57aebe][0x0],_0x4e7257=_0x64f2fc['isObject'](_0x3083d3[_0x2422cd]['item']);!_0x552610[_0x57aebe]&&_0x58f92a?_0x552610[_0x57aebe]={'start':_0x82e934,'tapeItem':_0x3083d3[_0x2422cd],'userId':_0x51f3c5,'type':_0x57aebe}:_0x552610[_0x57aebe]&&!_0x58f92a?(_0x552610[_0x57aebe]['end']=_0x82e934,_0x414df2(_0x552610[_0x57aebe]),_0x552610[_0x57aebe]=null):_0x552610[_0x57aebe]&&_0x58f92a&&_0x552610[_0x57aebe]['userId']!==_0x51f3c5&&(_0x552610[_0x57aebe]['end']=_0x82e934,_0x565a6f&&_0x565a6f['userId']===_0x552610[_0x57aebe]['userId']||_0x414df2(_0x552610[_0x57aebe]),_0x552610[_0x57aebe]={'start':_0x82e934,'tapeItem':_0x3083d3[_0x2422cd],'userId':_0x51f3c5,'type':_0x57aebe}),_0x552610[_0x57aebe]&&_0x4e7257&&('elementStart'!==_0x3083d3[_0x2422cd]['type']||_0x565a6f&&_0x565a6f['userId']===_0x51f3c5||_0x56c6a5[_0x57aebe]['unshift']({'userId':_0x51f3c5,'object':_0x3083d3[_0x2422cd]['item'],'change':_0x552610[_0x57aebe]}),'elementEnd'===_0x3083d3[_0x2422cd]['type']&&_0x565a6f&&_0x565a6f['object']===_0x3083d3[_0x2422cd]['item']&&(_0x56c6a5[_0x57aebe]['shift'](),_0x552610[_0x57aebe]=_0x565a6f['change'])),_0x552610[_0x57aebe]&&_0x23f6c6&&(_0x552610[_0x57aebe]['end']=_0x3bac88,_0x414df2(_0x552610[_0x57aebe]),_0x552610[_0x57aebe]=null);}function _0x414df2({start:_0x4b0baf,end:_0x28e7d5,tapeItem:_0x1be3de,userId:_0x493553,type:_0x9d16d2}){const _0x1877e2=_0x1be3de['item'],_0x304c54=_0x7fe119['schema']['isBlock'](_0x1877e2)&&!_0x7fe119['schema']['isLimit'](_0x1877e2),_0x46921c=_0x4b0baf['nodeAfter']==_0x28e7d5['parent']&&_0x28e7d5['isAtStart'];if(_0x304c54&&_0x46921c)return;const _0x18a98f=_0x7fe119['createRange'](_0x4b0baf,_0x28e7d5),_0x5a2fdf=_0x215805['get'](_0x493553),_0x521c96=new r({'author':_0x5a2fdf,'type':'isAdded'==_0x9d16d2||'isAddSuggestion'==_0x9d16d2?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x9d16d2||'isRemoveSuggestion'==_0x9d16d2},'createdAt':new Date(),'rootName':_0x1bf6ea});_0x2c37f0['push'](_0x521c96),_0x7e4745['markers']['set']('revision:'+_0x521c96['id'],_0x18a98f);}function _0x5415e9(_0x22eb10,_0x5b7361){const _0x5df673=_0x22eb10['getAttributes'](),_0x1fc24f=_0x5b7361['getAttributes']();for(const _0x32eb34 of _0x5df673){if(_0x32eb34[0x1]!==_0x5b7361['getAttribute'](_0x32eb34[0x0]))return!0x1;_0x1fc24f['next']();}return _0x1fc24f['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x1a6090=>{const _0xdaa7ae=_0x1a6090['markerName']['split'](':')[0x1],_0x4becb9=this['_getChangeFromId'](_0xdaa7ae);if(!_0x4becb9)return null;const _0x270001='add'==_0x4becb9['type']?'insertion':'deletion',_0x2a47bc=['ck-suggestion-marker','ck-suggestion-marker-'+_0x270001];return _0x4becb9['data']['isSuggestion']&&_0x2a47bc['push']('ck-suggestion-marker-'+_0x270001+'-new'),this['activeChange']==_0x4becb9&&_0x2a47bc['push']('ck-suggestion-marker--active'),{'classes':_0x2a47bc,'attributes':{'data-change-id':_0xdaa7ae}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x5c8af7=>{_0x5c8af7['on']('element:pre',(_0x16ee69,_0x35c293,_0x25905c)=>{const _0x47a121=_0x35c293['viewItem']['getChild'](0x0);if(!_0x47a121||!_0x47a121['is']('element','code'))return;if(!_0x25905c['consumable']['consume'](_0x47a121,{'attributes':['vid_start','vid_end']}))return;const _0x3fc7d4=_0x35c293['modelRange']['start']['nodeAfter'];_0x25905c['writer']['setAttribute']('vid_start',_0x47a121['getAttribute']('vid_start'),_0x3fc7d4),_0x25905c['writer']['setAttribute']('vid_end',_0x47a121['getAttribute']('vid_end'),_0x3fc7d4);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x48964f=>{_0x48964f['on']('element',(_0x24ed55,_0x53eb75,_0x4759f3)=>{if(!_0x4759f3['consumable']['consume'](_0x53eb75['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x53eb75['modelRange']['isCollapsed'])return;const _0x224247=_0x53eb75['modelRange']['start']['nodeAfter'];_0x224247['hasAttribute']('vid_start')||_0x224247['hasAttribute']('vid')||(_0x4759f3['writer']['setAttribute']('vid_start',_0x53eb75['viewItem']['getAttribute']('vid_start'),_0x224247),_0x4759f3['writer']['setAttribute']('vid_end',_0x53eb75['viewItem']['getAttribute']('vid_end'),_0x224247));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x5cc469=>_0x5cc469['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x40b68e,[,_0x20ad82])=>{['vid_start','vid_end','vid']['includes'](_0x20ad82)&&(_0x40b68e['return']=!0x0,_0x40b68e['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x4cb085=>{_0x4cb085['on']('attribute:vid',(_0x8eeda5,_0x3dcefa,_0x3f1232)=>{if('\x20'!=_0x3dcefa['item']['data']||_0x3dcefa['item']['parent']['maxOffset']>0x1)return;if(!_0x3f1232['consumable']['consume'](_0x3dcefa['item'],_0x8eeda5['name']))return;const _0x143a81=_0x3f1232['writer'],_0x18fb9c=_0x3f1232['mapper']['toViewRange'](_0x3dcefa['range']);_0x143a81['wrap'](_0x18fb9c,_0x143a81['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x4bd626){const _0x4ae9a6=_0x4bd626['plugins']['get']('RevisionViewer');return(_0x38596c,_0x3c98b0,_0x2dc285)=>{const _0x3cfdb7=_0x3c98b0['markerName']['split'](':')[0x1],_0x317036=_0x4ae9a6['_getChangeFromId'](_0x3cfdb7);if(!_0x317036)return null;const _0x39db50='add'==_0x317036['type']?'split':'merge';if(!_0x2dc285['consumable']['test'](_0x3c98b0['markerRange'],_0x38596c['name']))return;const _0x419fd8=_0x3c98b0['markerRange']['getWalker'](),_0x45fdd3=_0x3c98b0['markerRange']['start'],_0x1b02cc=_0x4bd626['model']['schema'];let _0x4d687c=null,_0x198c8a=null,_0x91895=!0x1,_0x119bb5=!0x1;for(const _0x1666e1 of _0x419fd8){const _0x1fada1=_0x1666e1['item'];_0x91895=_0x91895||_0x1b02cc['isContent'](_0x1fada1);const _0x3ef581=_0x2dc285['mapper']['toViewElement'](_0x1fada1);if(_0x3ef581&&_0x3ef581['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x1666e1['type']&&(_0x1b02cc['isBlock'](_0x1fada1)&&!_0x1b02cc['isLimit'](_0x1fada1)&&(_0x1fada1['nextSibling']||_0x45fdd3['isAtEnd']?_0x4d687c&&_0x4d687c['parent']==_0x1fada1||(_0x4d687c=_0x1fada1,_0x4cee67(_0x1666e1['previousPosition']),_0x119bb5=!0x0):_0x198c8a=_0x198c8a||_0x1666e1['previousPosition']));}function _0x4cee67(_0x36dbb0){const _0x58b4d5=_0x2dc285['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x39db50}),_0x50177f=_0x2dc285['mapper']['toViewPosition'](_0x36dbb0);_0x317036['data']['isSuggestion']&&_0x2dc285['writer']['addClass']('ck-suggestion-marker-'+_0x39db50+'-new',_0x58b4d5),_0x4ae9a6['activeChange']==_0x317036&&_0x2dc285['writer']['addClass']('ck-suggestion-marker--active',_0x58b4d5),_0x2dc285['writer']['insert'](_0x50177f,_0x58b4d5),_0x2dc285['mapper']['bindElementToMarker'](_0x58b4d5,_0x3c98b0['markerName']);}_0x91895||_0x119bb5||!_0x198c8a||_0x4cee67(_0x198c8a);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x43db8e,_0x53b1e3,_0xfa8a2f)=>{const _0x446bb0=_0xfa8a2f['mapper']['markerNameToElements'](_0x53b1e3['markerName']);if(_0x446bb0){for(const _0x849c83 of _0x446bb0)(_0x849c83['hasClass']('ck-suggestion-marker-split')||_0x849c83['hasClass']('ck-suggestion-marker-merge'))&&(_0xfa8a2f['mapper']['unbindElementFromMarkerName'](_0x849c83,_0x53b1e3['markerName']),_0xfa8a2f['writer']['remove'](_0x849c83));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x2457d7,_0x1faab0,_0x13f79c)=>{const _0x4f91e6=_0x1faab0['markerName']['split'](':')[0x1],_0x191ac8=this['_getChangeFromId'](_0x4f91e6);if(!_0x191ac8)return null;const _0x40fece='add'==_0x191ac8['type']?'split':'merge';if(_0x13f79c['consumable']['test'](_0x1faab0['markerRange'],_0x2457d7['name']))for(const _0x59bde0 of _0x1faab0['markerRange']['getItems']()){if(!_0x59bde0['is']('element','softBreak'))continue;const _0x21b4f1=_0x13f79c['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x40fece}),_0x574b11=_0x13f79c['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x59bde0));_0x191ac8['data']['isSuggestion']&&_0x13f79c['writer']['addClass']('ck-suggestion-marker-'+_0x40fece+'-new',_0x21b4f1),this['activeChange']==_0x191ac8&&_0x13f79c['writer']['addClass']('ck-suggestion-marker--active',_0x21b4f1),_0x13f79c['writer']['insert'](_0x574b11,_0x21b4f1),_0x13f79c['mapper']['bindElementToMarker'](_0x21b4f1,_0x1faab0['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x3e59b3=>{for(const _0x301df4 of this['editor']['model']['document']['getRootNames']()){const _0x20cba7=this['editor']['model']['document']['getRoot'](_0x301df4),_0x52409a=this['editor']['editing']['view']['document']['getRoot'](_0x301df4);if(_0x52409a){const _0x356fe0=_0x20cba7['getAttribute']('revisionHistoryAttachChange');if(_0x3e59b3['removeAttribute']('data-change-id',_0x52409a),_0x3e59b3['removeClass']('ck-revision-history-root-add',_0x52409a),_0x3e59b3['removeClass']('ck-revision-history-root-remove',_0x52409a),_0x3e59b3['removeClass']('ck-revision-history-root--active',_0x52409a),_0x356fe0){const _0x56104c=this['_getChangeFromId'](_0x356fe0);if(!_0x56104c)return null;_0x3e59b3['setAttribute']('data-change-id',_0x356fe0,_0x52409a),_0x3e59b3['addClass']('ck-revision-history-root-'+_0x56104c['type'],_0x52409a),this['activeChange']==_0x56104c&&_0x3e59b3['addClass']('ck-revision-history-root--active',_0x52409a);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x218cbb=>'revision-comment:'+_0x218cbb,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x23cab2=>'revision-suggestion:'+_0x23cab2,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x19a8e5=>({'name':'suggestion:'+_0x19a8e5,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x5a324c=>{const _0x59e307=_0x5a324c['markerName']['split'](':')[0x1];return'insertion'!=_0x59e307&&'deletion'!=_0x59e307?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x59e307]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',et(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',et(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x16d6ba,_0x1ab4a9,_0x239087)=>{const _0x1f9f03=_0x239087['mapper']['markerNameToElements'](_0x1ab4a9['markerName']);if(_0x1f9f03){for(const _0x499cee of _0x1f9f03)_0x499cee['is']('uiElement')&&(_0x239087['mapper']['unbindElementFromMarkerName'](_0x499cee,_0x1ab4a9['markerName']),_0x239087['writer']['remove'](_0x499cee));}},{'priority':'high'});}['_getChangeFromId'](_0x117562){return this['_changeIdToChange']['get'](_0x117562);}['_getViewForChange'](_0xc5ec7f){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Z(this['editor']['locale'],_0xc5ec7f),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x35788f,_0x16fc7a,_0x3aee37,_0x18cf3b)=>{_0x18cf3b&&this['_balloon']['remove'](_0x18cf3b),_0x3aee37&&(this['_balloon']['add']({'view':_0x3aee37,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x274177=this['editor']['editing'],_0x45271=this['_getChangeFromId'](_0x3aee37['changeId']);let _0x51129a;if(_0x45271['data']['isOnRoot']){const _0x21a7f0=_0x274177['view']['getDomRoot'](_0x45271['rootName']);_0x51129a=Array['from'](_0x21a7f0['getClientRects']());}else{const _0x51d652=this['editor']['model']['markers']['get']('revision:'+_0x3aee37['changeId']);_0x51129a=Array['from'](_0x274177['mapper']['markerNameToElements'](_0x51d652['name']))['map'](_0x3c111b=>_0x274177['view']['domConverter']['mapViewToDom'](_0x3c111b))['map'](_0x10c800=>Array['from'](_0x10c800['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x51129a[0x0];return _0x51129a['find'](_0x3317f8=>_0x3317f8['top']-0x3<=this['_activeViewTarget']['y']&&_0x3317f8['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x3317f8['left']-0x3<=this['_activeViewTarget']['x']&&_0x3317f8['right']+0x3>=this['_activeViewTarget']['x'])||_0x51129a[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x12a30c,_0x5af931,_0x501e3d,_0x1e73f1)=>{this['activeView']=_0x501e3d?this['_getViewForChange'](_0x501e3d):null,this['editor']['model']['change'](()=>{const _0x143144=this['editor']['editing'];_0x1e73f1&&(_0x1e73f1['data']['isOnRoot']?_0x143144['view']['change'](_0x514370=>{_0x514370['removeClass']('ck-revision-history-root--active',_0x143144['view']['document']['getRoot'](_0x1e73f1['rootName']));}):_0x143144['reconvertMarker']('revision:'+_0x1e73f1['id'])),_0x501e3d&&(_0x501e3d['data']['isOnRoot']?_0x143144['view']['change'](_0x26504b=>{_0x26504b['addClass']('ck-revision-history-root--active',_0x143144['view']['document']['getRoot'](_0x501e3d['rootName']));}):_0x143144['reconvertMarker']('revision:'+_0x501e3d['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x4a8a98,_0x2d7718)=>{if(this['activeChange'])return;const _0x375388=this['_findChangeIdFromDomTarget'](_0x2d7718['target']),_0x2850e9=this['_changeIdToChange']['get'](_0x375388);_0x2850e9?(this['_activeViewTarget']={'x':_0x2d7718['domEvent']['x'],'y':_0x2d7718['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x2850e9)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x4c6cab,_0xe62fb5)=>{const _0x1d64bf=this['_findChangeIdFromDomTarget'](_0xe62fb5['target']),_0x505318=this['_changeIdToChange']['get'](_0x1d64bf);_0x505318?(this['_activeViewTarget']={'x':_0xe62fb5['domEvent']['x'],'y':_0xe62fb5['domEvent']['y']},_0x505318===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x505318):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x4e8667){do{const _0x4019bc=_0x4e8667['getAttribute']('data-change-id');if(_0x4019bc)return _0x4019bc;_0x4e8667=_0x4e8667['parent'];}while(_0x4e8667);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x32e7f4=>{for(const _0x235eaf of this['editor']['model']['markers'])_0x32e7f4['removeMarker'](_0x235eaf);});}}function et(_0x2e4606,_0x3083d6){return(_0x360e3f,_0x182833,_0x4dad49)=>{if(!_0x4dad49['consumable']['test'](_0x182833['markerRange'],_0x360e3f['name']))return;const _0x4ffbff=_0x182833['markerRange']['getWalker'](),_0x4ffb17=_0x182833['markerRange']['start'],_0x258ff0=_0x2e4606['model']['schema'];let _0x4fbc6e=null,_0x3832d0=null,_0x308490=!0x1,_0x465890=!0x1;for(const _0x2fc56c of _0x4ffbff){const _0x320136=_0x2fc56c['item'];_0x308490=_0x308490||_0x258ff0['isContent'](_0x320136);const _0x3e5b7c=_0x4dad49['mapper']['toViewElement'](_0x320136);if(_0x3e5b7c&&_0x3e5b7c['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x2fc56c['type']&&(_0x258ff0['isBlock'](_0x320136)&&!_0x258ff0['isLimit'](_0x320136)&&(_0x320136['nextSibling']||_0x4ffb17['isAtEnd']?_0x4fbc6e&&_0x4fbc6e['parent']==_0x320136||(_0x4fbc6e=_0x320136,_0x19e306(_0x2fc56c['previousPosition']),_0x465890=!0x0):_0x3832d0=_0x3832d0||_0x2fc56c['previousPosition']));}function _0x19e306(_0x2bbd55){const _0x1603c2=_0x4dad49['mapper']['toViewPosition'](_0x2bbd55),_0x27314b=_0x4dad49['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x3083d6});_0x4dad49['writer']['insert'](_0x1603c2,_0x27314b),_0x4dad49['mapper']['bindElementToMarker'](_0x27314b,_0x182833['markerName']);}_0x308490||_0x465890||!_0x3832d0||_0x19e306(_0x3832d0);};}class yt extends _0x1fcb68{constructor(_0x112c4d){super(_0x112c4d);const _0x5159b2=_0x112c4d['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x5159b2,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x5159b2,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x32f457=this['editor'],_0x3f195a=_0x32f457['plugins']['get'](d),_0x58a5e3=_0x3f195a['isReady']?_0x3f195a['diff']['newRevisionId']:null;_0x32f457['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x58a5e3);}['refresh'](){const {isReady:_0x5e1b05,isEnabled:_0x101b64}=this['editor']['plugins']['get'](d);this['isEnabled']=_0x5e1b05&&_0x101b64;}}class bt extends _0x1fcb68{['_step'];constructor(_0x23a2e6,{direction:_0x40d7a1}){super(_0x23a2e6);const _0x47c09e=_0x23a2e6['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x40d7a1?0x1:-0x1,this['listenTo'](_0x47c09e,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x47c09e,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x47c09e,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x5ac784=this['editor'],_0x360fd5=_0x5ac784['plugins']['get'](d),{isNavigationMode:_0xf71a4e,currentChangeNumber:_0x3fc056}=_0x360fd5;let _0x134031;if(_0x360fd5['activeChange']=_0xf71a4e?_0x360fd5['diff']['changes']['get'](_0x3fc056+this['_step']):_0x360fd5['diff']['changes']['first'],_0x360fd5['activeChange']['data']['isOnRoot'])_0x134031=_0x5ac784['editing']['view']['getDomRoot'](_0x360fd5['activeChange']['rootName']);else{const _0x307e14=_0x5ac784['model']['markers']['get']('revision:'+_0x360fd5['activeChange']['id']);_0x134031=_0x1a7121(_0x5ac784['editing'],_0x307e14);}_0x28ebd7({'target':_0x134031,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x3e32d5,currentChangeNumber:_0x11ab0f,numberOfChanges:_0x5979c3,isReady:_0x5eb657,isEnabled:_0x2b477c}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x2b477c&&_0x5eb657&&_0x5979c3)&&(!_0x3e32d5||(0x1===this['_step']?_0x11ab0f<_0x5979c3-0x1:_0x11ab0f>0x0));}}class _i extends _0x5d3752{constructor(_0x584011){super(_0x584011);const _0x5e87b9=this['bindTemplate'],_0x1ea3c7=new _0x103323(_0x584011),_0x1d294c=new _0x103323(_0x584011);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',(_0x53e2c8,_0x5d65e1)=>_0x53e2c8&&_0x5d65e1>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0xb5497a,_0x187a9b,_0xb61117,_0x5eff1d)=>{if(!_0xb5497a)return w(_0x584011,'Loading...');if(!_0xb61117)return w(_0x584011,'No\x20changes');const _0x5be022=w(_0x584011,'NUMBER_OF_CHANGES',_0xb61117);return _0x5eff1d?w(_0x584011,'X_OF_Y_CHANGES',[_0x187a9b+0x1,_0xb61117]):_0x5be022;}),_0x1ea3c7['set']({'label':w(_0x584011,'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'}),_0x1d294c['set']({'label':w(_0x584011,'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'}),_0x1ea3c7['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x1d294c['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x1ea3c7['on']('execute',()=>this['fire']('execute','backward')),_0x1d294c['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',_0x5e87b9['if']('_isStatusLabelVisible','ck-hidden',_0x4eed85=>!_0x4eed85)]},'children':[{'text':_0x5e87b9['to']('isNavigationMode',_0x549f7b=>_0x549f7b?w(_0x584011,'EDIT_X_OF_Y_REVISIONS')+':\x20':w(_0x584011,'Total')+':\x20')}]},{'text':_0x5e87b9['to']('_statusText')}]},new _0x3b97bc(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x1ea3c7,_0x1d294c]}]});}}const ce='ck-editor__editable__loading-overlay';class le extends _0x115aaf{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x383165=this['editor']['editing']['view'];_0x383165['change'](_0x4f176a=>{for(const _0x1ef1dd of _0x383165['document']['roots'])_0x4f176a['addClass'](ce,_0x1ef1dd);});}['hide'](){const _0x5e6aa5=this['editor']['editing']['view'];_0x5e6aa5['change'](_0x53db8a=>{for(const _0x1b8a21 of _0x5e6aa5['document']['roots'])_0x53db8a['removeClass'](ce,_0x1b8a21);});}}class m extends _0x115aaf{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,le];}['init'](){const _0x13a34c=this['editor'],_0x484b6c=_0x13a34c['plugins']['get'](d),_0x39c5cd=_0x13a34c['plugins']['get'](le);_0x13a34c['ui']['componentFactory']['add']('exitToEditing',_0xa40b49=>{const _0x212384=new _0x103323(_0xa40b49);return _0x212384['set']({'label':w(_0xa40b49,'Back\x20to\x20editing'),'icon':_0x44fb96['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x212384,'execute',()=>{_0x13a34c['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x212384;}),_0x13a34c['ui']['componentFactory']['add']('restoreRevision',_0x338eaf=>{const _0x2bc221=new _0x103323(_0x338eaf);return _0x2bc221['set']({'label':w(_0x338eaf,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x2bc221['bind']('isEnabled')['to'](_0x13a34c['commands']['get']('restoreRevision')),this['listenTo'](_0x2bc221,'execute',()=>_0x13a34c['execute']('restoreRevision')),_0x2bc221;}),_0x13a34c['ui']['componentFactory']['add']('changesNavigation',_0x153482=>{const _0x5d2159=new _i(_0x153482),_0x1d77fb=_0x13a34c['commands']['get']('showPreviousChange'),_0x4a76df=_0x13a34c['commands']['get']('showNextChange');return _0x5d2159['bind']('isBackwardNavigationEnabled')['to'](_0x1d77fb,'isEnabled'),_0x5d2159['bind']('isForwardNavigationEnabled')['to'](_0x4a76df,'isEnabled'),_0x5d2159['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x484b6c),this['listenTo'](_0x5d2159,'execute',(_0x139c1a,_0x51ba4e)=>{_0x13a34c['execute']('forward'===_0x51ba4e?'showNextChange':'showPreviousChange');}),_0x5d2159;}),_0x39c5cd['show'](),_0x484b6c['on']('change:isReady',(_0x28013e,_0x535bbe,_0x295847)=>{_0x295847?_0x39c5cd['hide']():_0x39c5cd['show']();});}}class kt extends at{['_resizeObserver']=null;constructor(_0x17fe58,_0x24ce9e){super(_0x17fe58,_0x24ce9e);const _0x279508=this['bindTemplate'];this['set']({'label':w(_0x17fe58,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=w(_0x17fe58,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x279508['to']('_tooltipString'),'data-cke-tooltip-position':'s','data-cke-tooltip-class':'ck-tooltip_multi-line'}});}['render'](){super['render'](),this['_resizeObserver']=new mt(this['fieldView']['element'],()=>this['_updateTooltipText']()),this['listenTo'](this['fieldView'],'input',()=>this['_updateTooltipText']());}['destroy'](){super['destroy'](),this['_resizeObserver']&&this['_resizeObserver']['destroy']();}['_updateTooltipText'](){const _0x395444=this['fieldView']['element'];this['_tooltipString']=_0x395444['scrollWidth']>_0x395444['clientWidth']&&_0x395444['value']||'';}}class ti extends _0x5d3752{constructor(_0x4d2553,_0x3fb14a,_0x1255d9){super(_0x4d2553);const _0x45c1bb=new _0x52c400();_0x45c1bb['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 _0x2b63f9=['ck','ck-revision-history-sidebar__revision-author'];_0x1255d9&&_0x2b63f9['push']('ck-revision-history-sidebar__revision-author_creator');const _0x42ba06=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':w(_0x4d2553,_0x1255d9?'Revision\x20creator':'Revision\x20author')},'children':[_0x45c1bb,_0x3fb14a['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x2b63f9},'children':_0x42ba06});}}function ni(_0x58a949,_0x54447a){const _0x3bbbd2=_0x58a949['bindTemplate'],_0x4b224a=_0x58a949['locale'],_0x292368=_0x3272ef(_0x4b224a);_0x292368['panelPosition']='sw';const _0x4f9463=function(_0x381071,_0x11339a){const _0x24a5dc=function(_0xb51439,_0x4da38d){const _0x1809f9=_0xb51439['locale'],_0x357fd4={'Compare\x20against\x20selected':w(_0x1809f9,'Compare\x20against\x20selected'),'Name\x20this\x20revision':w(_0x1809f9,'Name\x20this\x20revision'),'Restore\x20this\x20revision':w(_0x1809f9,'Restore\x20this\x20revision')};return _0x4da38d['map'](_0x201ee6=>{const _0x2d8ffc=_0x357fd4[_0x201ee6['name']];return _0x2d8ffc&&_0x2d8ffc!==_0x201ee6['name']&&(_0x201ee6['name']=_0x2d8ffc),_0x201ee6;});}(_0x381071,_0x11339a),_0x83b0b=new _0xb0134b();for(const _0x3d0cbc of _0x24a5dc){const _0x56515c={'type':'button','model':new to({'label':_0x3d0cbc['name'],'class':_0x3d0cbc['class'],'withText':!0x0,'role':'menuitem','_action':_0x3d0cbc['action']})};_0x56515c['model']['bind']('isEnabled')['to'](_0x381071,'isActionsDropdownOpen',_0x551666=>'function'!=typeof _0x3d0cbc['isEnabled']||(!_0x551666||_0x3d0cbc['isEnabled'](_0x381071))),_0x83b0b['add'](_0x56515c);}return _0x83b0b;}(_0x58a949,_0x54447a);return _0x58a949['bind']('isActionsDropdownOpen')['to'](_0x292368,'isOpen'),_0x292368['buttonView']['set']({'label':w(_0x4b224a,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x44fb96['threeVerticalDots']}),_0x292368['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x3bbbd2['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x3bbbd2['to'](_0x37acb3=>_0x37acb3['stopPropagation']())}}),_0x292368['on']('execute',_0xa35385=>{_0x58a949['isReady']&&'function'==typeof _0xa35385['source']['_action']&&_0xa35385['source']['_action'](_0x58a949);}),_0x5d888d(_0x292368,_0x4f9463,{'role':'menu'}),_0x292368['listenTo'](_0x58a949,'change:isActionsDropdownOpen',(_0x3d6d25,_0x39f39a,_0x18aaee)=>{if(_0x18aaee)for(const _0x17dbc8 of _0x292368['listView']['items']){const _0x4b1379=_0x17dbc8['children']['first'],_0x1d161a=_0x54447a['find'](_0x40a9d0=>_0x40a9d0['action']===_0x4b1379['_action'])['isVisible'];_0x17dbc8['isVisible']=void 0x0===_0x1d161a||_0x1d161a(_0x58a949);}}),_0x292368;}class ai extends/* #__PURE__ -- @preserve */
|
|
26
|
-
|
|
23
|
+
import{ObservableMixin as _0x3cf027,uid as _0x4834e8,Collection as _0x5c9475,logWarning as _0x1655ad,FocusTracker as _0x4a9bb6,KeystrokeHandler as _0x3473af,scrollViewportToShowTarget as _0x5ef61f,ResizeObserver as at,ElementReplacer as ct,CKEditorError as _0x3ed888}from'@ckeditor/ckeditor5-utils/dist/index.js';import{cloneDeep as _0x3bf4ba,set as _0x5afcb9,unset as _0x596b14,isEqual as _0x141f62}from'lodash-es';import{Plugin as _0x39b81a,PendingActions as _0x4b53d0,icons as _0x590976,Command as _0x14503b,ElementApiMixin as rt,Editor as it}from'@ckeditor/ckeditor5-core/dist/index.js';import{Users as _0x41312b,getMarkerDomElement as _0xca6c05,ConfirmMixin as ti,sanitizeEditorConfig as _0x6935f0}from'ckeditor5-collaboration/dist/index.js';import{ViewDocumentFragment as _0x3bd259,ViewText as _0x3c17b8,ViewElement as _0x20d11f,Element as ft,Range as vt,Position as gt,DocumentFragment as mt,ViewContainerElement as _0x300b3b,ViewAttributeElement as _0x5596fe,ViewEmptyElement as _0x5e2c99,ViewRawElement as _0x5ae857,ViewUIElement as _0x60da44,Text as wt}from'@ckeditor/ckeditor5-engine/dist/index.js';import{View as ts,injectCssTransitionDisabler as _0x5ed148,submitHandler as _0x5a4d0c,LabeledFieldView as _0x5eff68,createLabeledInputText as _0x1f1f1e,createDropdown as _0x5533af,ListView as _0x5d810d,ListItemView as _0x426f41,ButtonView as te,MenuBarMenuView as _0x37a145,MenuBarMenuListView as _0x84f804,MenuBarMenuListItemView as _0x590f6a,MenuBarMenuListItemButtonView as _0x40881e,ContextualBalloon as _0xe657c7,ToolbarSeparatorView as _0xbbb2ea,IconView as _0x18863c,addListToDropdown as to,ViewModel as _0x13d394,EditorUI as ot,normalizeToolbarConfig as ht,BoxedEditorUIView as dt,StickyPanelView as lt,ToolbarView as nt,InlineEditableUIView as ut}from'@ckeditor/ckeditor5-ui/dist/index.js';import{DateTime as _0x175515}from'luxon';class a extends/* #__PURE__ -- @preserve */
|
|
24
|
+
_0x3cf027(){['id'];['creator'];['authors'];['diffData'];['toVersion'];['fromVersion'];['model'];constructor(_0x2f2906){super(),this['id']=_0x2f2906['id']||_0x4834e8(),this['creator']=_0x2f2906['creator']||null,this['authors']=_0x2f2906['authors']||[],this['diffData']=_0x2f2906['diffData']||null,this['toVersion']=_0x2f2906['toVersion']||0x0,this['fromVersion']=_0x2f2906['fromVersion']||0x0,this['set']('name',_0x2f2906['name']||''),this['set']('createdAt',_0x2f2906['createdAt']||new Date()),this['set']('attributes',_0x2f2906['attributes']||{});}['setName'](_0x4915ea){this['_update']({'name':_0x4915ea});}['setAttribute'](_0x5ef5ea,_0x51381e){const _0x5c3990=_0x3bf4ba(this['attributes']);_0x5afcb9(_0x5c3990,_0x5ef5ea,_0x51381e),this['_update']({'attributes':_0x5c3990});}['removeAttribute'](_0x32f830){const _0x1564d0=_0x3bf4ba(this['attributes']);_0x596b14(_0x1564d0,_0x32f830),this['_update']({'attributes':_0x1564d0});}['_update'](_0x1423ee,_0x3883a6=!0x1){let _0x22438f=!0x1;const _0x41965f={'id':this['id']},_0x2b1ba8=['name','createdAt','diffData','authors','attributes','toVersion','fromVersion','creatorId'];for(const _0x10f265 of _0x2b1ba8){const _0xb0afa0=_0x1423ee[_0x10f265];void 0x0!==_0xb0afa0&&_0xb0afa0!==this[_0x10f265]&&(this[_0x10f265]=_0xb0afa0,_0x41965f[_0x10f265]=_0xb0afa0,_0x22438f=!0x0);}_0x22438f&&(_0x41965f['authors']&&(_0x41965f['authorsIds']=_0x41965f['authors']['map'](_0x3e9c0d=>_0x3e9c0d['id']),delete _0x41965f['authors']),this['fire']('_update',_0x41965f,_0x3883a6));}['toJSON'](){return{'id':this['id'],'name':this['name'],'creatorId':this['creator']?this['creator']['id']:null,'authorsIds':this['authors']['map'](_0x956725=>_0x956725['id']),'diffData':this['diffData'],'createdAt':this['createdAt'],'attributes':this['attributes'],'fromVersion':this['fromVersion'],'toVersion':this['toVersion']};}}class j extends _0x39b81a{['_revisions'];static get['requires'](){return[_0x41312b];}static get['pluginName'](){return'RevisionsRepository';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}get['length'](){return this['_revisions']['length'];}constructor(_0x2919b3){super(_0x2919b3),this['_revisions']=new _0x5c9475();}['afterInit'](){!async function(_0x23aba7){const _0x16ef02=_0x4d28db([0x57,0x55,0x65,0x63,0x4b,0x76,0x52,0x50,0x51,0x48,0x68,0x69,0x64,0x56,0x70,0x39,0x62,0x6c,0x71,0x32,0x4d,0x59,0x41,0x6b,0x7a,0x73,0x78,0x44,0x34,0x66,0x45,0x74,0x47,0x31,0x6e,0x4f,0x67,0x43,0x58,0x36,0x77,0x42,0x72,0x54,0x49,0x46,0x53,0x4c,0x35,0x38,0x4a,0x4e,0x6f,0x6a,0x75,0x33,0x37,0x5a,0x79,0x30,0x61,0x6d]),_0x40ccd9=0xeb829,_0x3da9d6=0x6b98dcf4,_0x64351=0x6b9f8b74^_0x3da9d6,_0x317165=window[_0x4d28db([0x44,0x61,0x74,0x65])][_0x4d28db([0x6e,0x6f,0x77])](),_0xe6384b=_0x23aba7[_0x4d28db([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x38c048=new window[(_0x4d28db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xf76b1c=>{_0xe6384b[_0x4d28db([0x6f,0x6e,0x63,0x65])](_0x4d28db([0x72,0x65,0x61,0x64,0x79]),_0xf76b1c);}),_0x30d30a={[_0x4d28db([0x6b,0x74,0x79])]:_0x4d28db([0x45,0x43]),[_0x4d28db([0x75,0x73,0x65])]:_0x4d28db([0x73,0x69,0x67]),[_0x4d28db([0x63,0x72,0x76])]:_0x4d28db([0x50,0x2d,0x32,0x35,0x36]),[_0x4d28db([0x78])]:_0x4d28db([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]),[_0x4d28db([0x79])]:_0x4d28db([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]),[_0x4d28db([0x61,0x6c,0x67])]:_0x4d28db([0x45,0x53,0x32,0x35,0x36])},_0x3bc48c=_0xe6384b[_0x4d28db([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4d28db([0x67,0x65,0x74])](_0x4d28db([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x510cc7(){let _0x357589,_0x29fe08=null,_0x15ed2a=null;try{if(_0x3bc48c==_0x4d28db([0x47,0x50,0x4c]))return _0x4d28db([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x357589=_0x243bf5(),!_0x357589)return _0x4d28db([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x357589[_0x4d28db([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x15ed2a=_0x55b458(_0x357589[_0x4d28db([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x357589[_0x4d28db([0x6a,0x74,0x69])])),await _0x3b360d()?_0x546568()?_0x49b0cb()?_0x4d28db([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2d3c93()?(_0x357589[_0x4d28db([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d28db([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x29fe08=_0x415127(_0x4d28db([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x357589[_0x4d28db([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d28db([0x74,0x72,0x69,0x61,0x6c])&&(_0x29fe08=_0x415127(_0x4d28db([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),_0x357589[_0x4d28db([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4d28db([0x64,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74])&&(_0x29fe08=_0x415127(_0x4d28db([0x44,0x65,0x76,0x65,0x6c,0x6f,0x70,0x6d,0x65,0x6e,0x74,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e14be()):_0x4d28db([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4d28db([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4d28db([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch(_0x5dc3d8){return _0x4d28db([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x49b0cb(){const _0x3f8432=[_0x4d28db([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4d28db([0x74,0x72,0x69,0x61,0x6c])][_0x4d28db([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x357589[_0x4d28db([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x317165/0x3e8:0xe10*_0x64351;return _0x357589[_0x4d28db([0x65,0x78,0x70])]<_0x3f8432;}function _0x546568(){const _0x346b73=_0x357589[_0x4d28db([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x346b73&&(!!_0x346b73[_0x4d28db([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d28db([0x2a]))||(!!_0x346b73[_0x4d28db([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d28db([0x52,0x48]))||!(!_0x346b73[_0x4d28db([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d28db([0x52,0x52,0x48]))||!_0x2cf251())));}function _0x2d3c93(){const _0xebc16a=_0x357589[_0x4d28db([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xebc16a||0x0==_0xebc16a[_0x4d28db([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x564641}=new URL(window[_0x4d28db([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xebc16a[_0x4d28db([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x564641))return!0x0;const _0x9d476c=_0x564641[_0x4d28db([0x73,0x70,0x6c,0x69,0x74])](_0x4d28db([0x2e]));return _0xebc16a[_0x4d28db([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d39e0=>_0x3d39e0[_0x4d28db([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4d28db([0x2a])))[_0x4d28db([0x6d,0x61,0x70])](_0xfc90cf=>_0xfc90cf[_0x4d28db([0x73,0x70,0x6c,0x69,0x74])](_0x4d28db([0x2e])))[_0x4d28db([0x73,0x6f,0x6d,0x65])](_0x2c2355=>_0x9d476c[_0x4d28db([0x65,0x76,0x65,0x72,0x79])]((_0x558923,_0x223686)=>_0x2c2355[_0x223686]===_0x558923||_0x2c2355[_0x223686]===_0x4d28db([0x2a])));}function _0x1e14be(){return _0x29fe08&&_0x15ed2a?new window[(_0x4d28db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x511138,_0x1bbacf)=>{_0x29fe08[_0x4d28db([0x74,0x68,0x65,0x6e])](_0x511138,_0x1bbacf),_0x15ed2a[_0x4d28db([0x74,0x68,0x65,0x6e])](_0x10d304=>{_0x10d304!=_0x4d28db([0x56,0x61,0x6c,0x69,0x64])&&_0x511138(_0x10d304);},_0x1bbacf);}):_0x29fe08||_0x15ed2a||_0x4d28db([0x56,0x61,0x6c,0x69,0x64]);}}function _0x55b458(_0x2babc2,_0x39ac0f){return new window[(_0x4d28db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x113a58=>{if(_0x363a95())return _0x113a58(_0x4d28db([0x56,0x61,0x6c,0x69,0x64]));_0x191c47(),_0xe6384b[_0x4d28db([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4d28db([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd3e3ad=!0x1;const _0x4f7981=_0x4834e8();function _0x291706(_0x2d9c46){return!!_0x2d9c46&&(typeof _0x2d9c46===_0x4d28db([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2d9c46===_0x4d28db([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2d9c46[_0x4d28db([0x74,0x68,0x65,0x6e])]===_0x4d28db([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2d9c46[_0x4d28db([0x63,0x61,0x74,0x63,0x68])]===_0x4d28db([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x484535(_0xd42696){_0x9a7aee(_0xd42696)[_0x4d28db([0x74,0x68,0x65,0x6e])](_0x188ac2=>{if(!_0x188ac2||_0x188ac2[_0x4d28db([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4d28db([0x6f,0x6b]))return _0x4d28db([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x155a22(_0x26adbb(_0x4f7981+_0x39ac0f))!=_0x188ac2[_0x4d28db([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4d28db([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4d28db([0x56,0x61,0x6c,0x69,0x64]);})[_0x4d28db([0x74,0x68,0x65,0x6e])](_0x2afedb=>(_0x4b81a6(),_0x2afedb),()=>{const _0x23ad1b=_0x54076a();return null==_0x23ad1b?(_0x4b81a6(),_0x4d28db([0x56,0x61,0x6c,0x69,0x64])):_0x4d28db(_0x317165-_0x23ad1b>(0x4f9458f4^_0x3da9d6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4d28db([0x74,0x68,0x65,0x6e])](_0x113a58)[_0x4d28db([0x63,0x61,0x74,0x63,0x68])](()=>{_0x113a58(_0x4d28db([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2d7767=0x6bae3274^_0x3da9d6;function _0x4b81a6(){const _0x505fef=_0x4d28db([0x6c,0x6c,0x63,0x74,0x2d])+_0x155a22(_0x26adbb(_0x2babc2)),_0x202baf=_0xcfdbc7(_0x155a22(window[_0x4d28db([0x4d,0x61,0x74,0x68])][_0x4d28db([0x63,0x65,0x69,0x6c])](_0x317165/_0x2d7767)));window[_0x4d28db([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d28db([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x505fef,_0x202baf);}function _0x54076a(){const _0x23c8cc=_0x4d28db([0x6c,0x6c,0x63,0x74,0x2d])+_0x155a22(_0x26adbb(_0x2babc2)),_0x544edb=window[_0x4d28db([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4d28db([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x23c8cc);return _0x544edb?window[_0x4d28db([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xcfdbc7(_0x544edb),0x10)*_0x2d7767:null;}function _0x9a7aee(_0x10544d){return new window[(_0x4d28db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x567f6f,_0x116eb3)=>{_0x10544d[_0x4d28db([0x74,0x68,0x65,0x6e])](_0x567f6f,_0x116eb3),window[_0x4d28db([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x116eb3,0x6b990834^_0x3da9d6);});}}_0xe6384b[_0x4d28db([0x6f,0x6e])](_0x4d28db([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2ffc45,_0x176573)=>{if(_0x176573[0x0]!=_0x2babc2)return _0x113a58(_0x4d28db([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x176573[0x1]={..._0x176573[0x1],[_0x4d28db([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4f7981};},{[_0x4d28db([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d28db([0x68,0x69,0x67,0x68])}),_0xe6384b[_0x4d28db([0x6f,0x6e])](_0x4d28db([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x574360=>{_0x291706(_0x574360[_0x4d28db([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd3e3ad=!0x0,_0x484535(_0x574360[_0x4d28db([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4d28db([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4d28db([0x6c,0x6f,0x77])}),_0x38c048[_0x4d28db([0x74,0x68,0x65,0x6e])](()=>{_0xd3e3ad||_0x113a58(_0x4d28db([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x363a95(){return _0xe6384b[_0x4d28db([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d28db([0x76,0x69,0x65,0x77])][_0x4d28db([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4d28db([0x61,0x75,0x74,0x6f]);}function _0x191c47(){_0xe6384b[_0x4d28db([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4d28db([0x76,0x69,0x65,0x77])][_0x4d28db([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4d28db([0x61,0x75,0x74,0x6f]);}}function _0x415127(_0x42aeba){const _0x3899aa=[new window[(_0x4d28db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x51007e=>setTimeout(_0x51007e,0x6b91e238^_0x3da9d6)),_0x38c048[_0x4d28db([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4d28db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x181e28=>{const _0x3c128b=0x6b98dcf3^_0x3da9d6,_0x37735d=_0x23aba7[_0x4d28db([0x5f,0x72,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x73])];function _0x3cc67f(){_0x37735d[_0x4d28db([0x6c,0x65,0x6e,0x67,0x74,0x68])]>=_0x3c128b&&_0x181e28();}_0x3cc67f(),_0x37735d[_0x4d28db([0x6f,0x6e])](_0x4d28db([0x61,0x64,0x64]),_0x3cc67f);})),new window[(_0x4d28db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45df69=>{function _0x567f5b(){for(const _0x2e403e in window)if(window[_0x4d28db([0x4e,0x75,0x6d,0x62,0x65,0x72])]['isNaN'](window[_0x4d28db([0x4e,0x75,0x6d,0x62,0x65,0x72])](_0x2e403e))&&window[_0x2e403e]==_0x40ccd9)return _0x45df69();_0xe6384b[_0x4d28db([0x73,0x74,0x61,0x74,0x65])]!=_0x4d28db([0x64,0x65,0x73,0x74,0x72,0x6f,0x79,0x65,0x64])&&window[_0x4d28db([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x567f5b,0x6b98cf7c^_0x3da9d6);}_0x59fb72(_0x4d28db([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))&&_0x567f5b();})];return window[_0x4d28db([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4d28db([0x72,0x61,0x63,0x65])](_0x3899aa)[_0x4d28db([0x74,0x68,0x65,0x6e])](()=>_0x42aeba);}async function _0xb018c6(){if(await _0x38c048,_0x59fb72(_0x4d28db([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]))){const _0x5bdea3=_0x23aba7[_0x4d28db([0x67,0x65,0x74,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])](0x0),_0x509963=_0x23aba7[_0x4d28db([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])](_0x5bdea3[_0x4d28db([0x69,0x64])]),_0x21fe98=_0x5a91e1(_0x4d28db([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x56,0x69,0x65,0x77,0x65,0x72]));return await _0x21fe98[_0x4d28db([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])](_0x5bdea3['id'],_0x509963?_0x509963['id']:null,!0x0),_0x21fe98[_0x4d28db([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4d28db([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x21fe98[_0x4d28db([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x21fe98[_0x4d28db([0x63,0x6f,0x6d,0x70,0x61,0x72,0x65])]=_0x3c9a2d,void(_0x21fe98[_0x4d28db([0x5f,0x67,0x65,0x74,0x44,0x69,0x66,0x66])]=_0x3c9a2d);}if(_0x59fb72(_0x4d28db([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]))){const _0x4ecf48=_0x5a91e1(_0x4d28db([0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e,0x54,0x72,0x61,0x63,0x6b,0x65,0x72]));_0x4ecf48[_0x4d28db([0x75,0x6e,0x62,0x69,0x6e,0x64])](_0x4d28db([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])),_0x4ecf48[_0x4d28db([0x69,0x73,0x45,0x6e,0x61,0x62,0x6c,0x65,0x64])]=!0x1,_0x4ecf48[_0x4d28db([0x75,0x70,0x64,0x61,0x74,0x65])]=_0x3c9a2d,_0x4ecf48[_0x4d28db([0x73,0x61,0x76,0x65,0x52,0x65,0x76,0x69,0x73,0x69,0x6f,0x6e])]=_0x3c9a2d;}_0xe6384b[_0x4d28db([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d28db([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3c9a2d,_0xe6384b[_0x4d28db([0x6d,0x6f,0x64,0x65,0x6c])][_0x4d28db([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3c9a2d,_0xe6384b[_0x4d28db([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4d28db([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2cf251(){return _0x59fb72(_0x4d28db([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))&&_0x5a91e1(_0x4d28db([0x57,0x65,0x62,0x53,0x6f,0x63,0x6b,0x65,0x74,0x47,0x61,0x74,0x65,0x77,0x61,0x79]))[_0x4d28db([0x73,0x74,0x61,0x74,0x65])]==_0x4d28db([0x63,0x6f,0x6e,0x6e,0x65,0x63,0x74,0x65,0x64]);}function _0x4e73ab(_0x59c3ae){const _0x4dadf5=_0x1c6529();_0xe6384b[_0x4dadf5]=_0x4d28db([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])+_0x59c3ae,_0x59c3ae[_0x4d28db([0x65,0x6e,0x64,0x73,0x57,0x69,0x74,0x68])](_0x4d28db([0x4c,0x69,0x6d,0x69,0x74]))&&(window[_0x1c6529()]=_0x40ccd9),_0x59c3ae!=_0x4d28db([0x56,0x61,0x6c,0x69,0x64])&&_0xb018c6();}function _0x1c6529(){const _0xd78295=window[_0x4d28db([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4d28db([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4d28db([0x6e,0x6f,0x77])]())[_0x4d28db([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4d28db([0x2e]),'');let _0x30b595=_0x4d28db([0x57]);for(let _0x1725fe=0x0;_0x1725fe<_0xd78295[_0x4d28db([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1725fe+=0x2){let _0x1a83dc=window[_0x4d28db([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd78295[_0x4d28db([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1725fe,_0x1725fe+0x2));_0x1a83dc>=_0x16ef02[_0x4d28db([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1a83dc-=_0x16ef02[_0x4d28db([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x30b595+=_0x16ef02[_0x1a83dc];}return _0x30b595;}function _0x243bf5(){const _0x2b8aab=_0x3bc48c[_0x4d28db([0x73,0x70,0x6c,0x69,0x74])](_0x4d28db([0x2e]));if(0x3!=_0x2b8aab[_0x4d28db([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3db1cf(_0x2b8aab[0x1]);function _0x3db1cf(_0x57aa79){const _0x1c44b5=_0x19c434(_0x57aa79);return _0x1c44b5&&_0x3daaff()?_0x1c44b5:null;function _0x3daaff(){const _0x1185aa=_0x1c44b5[_0x4d28db([0x6a,0x74,0x69])],_0x59cf1d=window[_0x4d28db([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1185aa[_0x4d28db([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1185aa[_0x4d28db([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3939a7={..._0x1c44b5,[_0x4d28db([0x6a,0x74,0x69])]:_0x1185aa[_0x4d28db([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1185aa[_0x4d28db([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3939a7[_0x4d28db([0x76,0x63])],_0x26adbb(_0x3939a7)==_0x59cf1d;}}}async function _0x3b360d(){let _0x4d47d9=!0x0;try{const _0xfa7fff=_0x3bc48c[_0x4d28db([0x73,0x70,0x6c,0x69,0x74])](_0x4d28db([0x2e])),[_0x293a65,_0x115c20,_0x1ac7b1]=_0xfa7fff;return _0x1efd6e(_0x293a65),await _0x188779(_0x293a65,_0x115c20,_0x1ac7b1),_0x4d47d9;}catch(_0x35d7d9){return!0x1;}function _0x1efd6e(_0x13843e){const _0x10d54b=_0x19c434(_0x13843e);_0x10d54b&&_0x10d54b[_0x4d28db([0x61,0x6c,0x67])]==_0x4d28db([0x45,0x53,0x32,0x35,0x36])||(_0x4d47d9=!0x1);}async function _0x188779(_0x2e58f7,_0x4be14d,_0x2fd0f3){const _0x1c2b6b=window[_0x4d28db([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4d28db([0x66,0x72,0x6f,0x6d])](_0x53c95b(_0x2fd0f3),_0x42c706=>_0x42c706[_0x4d28db([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x506eb2=new window[(_0x4d28db([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4d28db([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2e58f7+_0x4d28db([0x2e])+_0x4be14d),_0x1e39f1=window[_0x4d28db([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4d28db([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1e39f1)return;const _0x266bdc=await _0x1e39f1[_0x4d28db([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4d28db([0x6a,0x77,0x6b]),_0x30d30a,{[_0x4d28db([0x6e,0x61,0x6d,0x65])]:_0x4d28db([0x45,0x43,0x44,0x53,0x41]),[_0x4d28db([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4d28db([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4d28db([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1e39f1[_0x4d28db([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4d28db([0x6e,0x61,0x6d,0x65])]:_0x4d28db([0x45,0x43,0x44,0x53,0x41]),[_0x4d28db([0x68,0x61,0x73,0x68])]:{[_0x4d28db([0x6e,0x61,0x6d,0x65])]:_0x4d28db([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x266bdc,_0x1c2b6b,_0x506eb2)||(_0x4d47d9=!0x1);}}function _0x19c434(_0x53602f){return _0x53602f[_0x4d28db([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4d28db([0x65,0x79]))?JSON[_0x4d28db([0x70,0x61,0x72,0x73,0x65])](_0x53c95b(_0x53602f)):null;}function _0x53c95b(_0x3ff771){return window[_0x4d28db([0x61,0x74,0x6f,0x62])](_0x3ff771[_0x4d28db([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4d28db([0x2b]))[_0x4d28db([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4d28db([0x2f])));}function _0x26adbb(_0x503b08){let _0x377fd9=0x1505;function _0x391aef(_0x383a8d){for(let _0x4acf72=0x0;_0x4acf72<_0x383a8d[_0x4d28db([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4acf72++){const _0x238331=_0x383a8d[_0x4d28db([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4acf72);_0x377fd9=(_0x377fd9<<0x5)+_0x377fd9+_0x238331,_0x377fd9&=_0x377fd9;}}function _0x23a37a(_0x2e4191){Array[_0x4d28db([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2e4191)?_0x2e4191[_0x4d28db([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x23a37a):_0x2e4191&&typeof _0x2e4191==_0x4d28db([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4d28db([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2e4191)[_0x4d28db([0x73,0x6f,0x72,0x74])]()[_0x4d28db([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x15f1ef,_0x55560b])=>{_0x391aef(_0x15f1ef),_0x23a37a(_0x55560b);}):_0x391aef(window[_0x4d28db([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2e4191));}return _0x23a37a(_0x503b08),_0x377fd9>>>0x0;}function _0x155a22(_0x565f6a){return _0x565f6a[_0x4d28db([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4d28db([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4d28db([0x30]));}function _0xcfdbc7(_0x2db8bf){return _0x2db8bf[_0x4d28db([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4d28db([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4d28db([0x6a,0x6f,0x69,0x6e])]('');}function _0x59fb72(_0x54eebc){return _0xe6384b[_0x4d28db([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d28db([0x68,0x61,0x73])](_0x54eebc);}function _0x5a91e1(_0x3d3ebf){return _0xe6384b[_0x4d28db([0x70,0x6c,0x75,0x67,0x69,0x6e,0x73])][_0x4d28db([0x67,0x65,0x74])](_0x3d3ebf);}function _0x3c9a2d(){}function _0x4d28db(_0x47a62c){return _0x47a62c['map'](_0x250108=>String['fromCharCode'](_0x250108))['join']('');}_0x4e73ab(await _0x510cc7());}(this);}['createRevision'](_0x391224){const _0x2f3245=this['editor']['plugins']['get']('Users');return new a({'id':_0x391224['id'],'name':_0x391224['name'],'creator':_0x391224['creatorId']?_0x2f3245['getUser'](_0x391224['creatorId']):null,'diffData':_0x391224['diffData']||_0x391224['data'],'authors':_0x391224['authorsIds']['map'](_0x36f3e6=>_0x2f3245['getUser'](_0x36f3e6)),'createdAt':new Date(_0x391224['createdAt']),'attributes':_0x391224['attributes'],'fromVersion':_0x391224['fromVersion'],'toVersion':_0x391224['toVersion']});}['addRevision'](_0x4c8aa0,_0x4e9d0c=0x0){this['_revisions']['add'](_0x4c8aa0,_0x4e9d0c);}['getRevision'](_0x522819){return this['_revisions']['get'](_0x522819);}['getRevisions'](_0x12b7e7={'toJSON':!0x1}){const _0x272df4=Array['from'](this['_revisions']);return _0x272df4['reverse'](),_0x12b7e7['toJSON']?_0x272df4['map'](_0x55e4d8=>_0x55e4d8['toJSON']()):_0x272df4;}['getIndex'](_0x393151){return this['_revisions']['getIndex'](_0x393151);}['getEarlierVisibleRevision'](_0x407ca4){const [,_0x4eb4c8]=this['getRevisionsIterator'](_0x407ca4,{'direction':'earlier'});return _0x4eb4c8;}['getLaterVisibleRevision'](_0x5a72fe){const [,_0x1a449c]=this['getRevisionsIterator'](_0x5a72fe,{'direction':'later'});return _0x1a449c;}['getRevisionsInDiff'](_0x25990d){const _0xd6e39c=[];for(const _0x12b6c7 of this['getRevisionsIterator'](_0x25990d['newRevisionId']))if(_0xd6e39c['push'](_0x12b6c7),_0x12b6c7['id']===_0x25990d['oldRevisionId'])break;return _0xd6e39c;}*['getRevisionsIterator'](_0x90e915,{direction:_0x3f77ab='earlier',filter:_0x406139=()=>!0x0}={}){const _0x21cce8='earlier'===_0x3f77ab?0x1:-0x1;let _0x3ef474=this['_revisions']['get'](_0x90e915),_0x4e43d7=this['getIndex'](_0x3ef474);for(yield _0x3ef474;_0x3ef474;){if(_0x4e43d7+=_0x21cce8,_0x3ef474=this['getRevision'](_0x4e43d7),!_0x3ef474)return;_0x406139(_0x3ef474)&&(yield _0x3ef474);}}}function R(_0x43fbb7,_0x483b1c,_0x23a42b){const t=_0x43fbb7['t'];switch(_0x483b1c){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'},_0x23a42b);case'X_OF_Y_CHANGES':return t({'string':'%0\x20of\x20%1','id':'X_OF_Y_CHANGES'},_0x23a42b);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 C={'c':_0x300b3b,'a':_0x5596fe,'e':_0x5e2c99,'r':_0x5ae857,'u':_0x60da44};class l extends _0x39b81a{['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[_0x41312b,j,_0x4b53d0];}constructor(_0x23c691){super(_0x23c691),this['adapter']=null,this['currentRevision']=null,this['_revisionDataBuilder']=new T(this['editor']),this['_initialRevisionId']=this['editor']['config']['get']('collaboration.channelId')||'initial',this['_bufferedUpdates']=new Map(),this['_loadedStateData']=null;const _0x5e0071=_0x4834e8();this['_source']={'history':this['editor']['model']['document']['history'],'getLatestVersion':()=>Promise['resolve'](this['editor']['model']['document']['version']),'getCurrentRevisionId':()=>_0x5e0071},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 _0x17ee3d=this['repository']['getRevision'](0x0),_0x4485d9=_0x17ee3d&&null===_0x17ee3d['creator']?_0x17ee3d:null;if(this['_continueCurrentRevision']=!!_0x4485d9&&this['editor']['config']['get']('revisionHistory.resumeUnsavedRevision'),this['editor']['plugins']['has']('RealTimeCollaborationClient')){const _0x19319a=this['_source']['getCurrentRevisionId'](),_0x3c8b02=this['repository']['getRevision'](_0x19319a);if(_0x3c8b02)this['_startingVersion']=_0x3c8b02['fromVersion'],this['_continueCurrentRevision']=!0x1;else{const _0x94359c=this['_source']['history']['_operations']['find'](_0x1475a6=>!_0x1475a6['_isInit']),_0x4bd312=_0x94359c?_0x94359c['baseVersion']:this['_source']['history']['version'];_0x17ee3d?(_0x17ee3d['toVersion']<_0x4bd312&&_0x17ee3d['_update']({'toVersion':_0x4bd312}),this['_continueCurrentRevision']?(this['_source']['getCurrentRevisionId']=()=>_0x4485d9['id'],this['_startingVersion']=_0x4485d9['fromVersion']):(this['_startingVersion']=_0x17ee3d['toVersion'],this['_continueCurrentRevision']=!0x1)):(this['_startingVersion']=_0x4bd312,this['_continueCurrentRevision']=!0x1);}}else _0x4485d9&&(this['editor']['model']['document']['history']['version']=Math['max'](_0x4485d9['toVersion'],this['editor']['model']['document']['history']['version']),_0x4485d9['fromVersion']===_0x4485d9['toVersion']?(0x0!==_0x4485d9['fromVersion']&&(this['_source']['getCurrentRevisionId']=()=>_0x4485d9['id']),this['_continueCurrentRevision']=!0x1):this['_continueCurrentRevision']&&(this['_source']['getCurrentRevisionId']=()=>_0x4485d9['id'],this['_startingVersion']=_0x4485d9['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',_0x2d90e4=>!_0x2d90e4),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xb0bb59=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x466cd0;for(const _0x17fb1f in _0xb0bb59){const _0x467f20=_0x17fb1f,_0x54e6de=_0xb0bb59[_0x467f20];if('revisionHistoryLicenseKeyValid'==_0x54e6de||'revisionHistoryLicenseKeyInvalid'==_0x54e6de||'revisionHistoryLicenseKeyExpired'==_0x54e6de||'revisionHistoryLicenseKeyDomainLimit'==_0x54e6de||'revisionHistoryLicenseKeyNotAllowed'==_0x54e6de||'revisionHistoryLicenseKeyEvaluationLimit'==_0x54e6de||'revisionHistoryLicenseKeyTrialLimit'==_0x54e6de||'revisionHistoryLicenseKeyDevelopmentLimit'==_0x54e6de||'revisionHistoryLicenseKeyUsageLimit'==_0x54e6de){delete _0xb0bb59[_0x467f20],_0x466cd0=_0x54e6de,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'revisionHistoryLicenseKeyInvalid'==_0x466cd0&&_0xb0bb59['_showLicenseError']('invalid'),'revisionHistoryLicenseKeyExpired'==_0x466cd0&&_0xb0bb59['_showLicenseError']('expired'),'revisionHistoryLicenseKeyDomainLimit'==_0x466cd0&&_0xb0bb59['_showLicenseError']('domainLimit'),'revisionHistoryLicenseKeyNotAllowed'==_0x466cd0&&_0xb0bb59['_showLicenseError']('featureNotAllowed','RevisionHistory'),'revisionHistoryLicenseKeyEvaluationLimit'==_0x466cd0&&_0xb0bb59['_showLicenseError']('evaluationLimit'),'revisionHistoryLicenseKeyTrialLimit'==_0x466cd0&&_0xb0bb59['_showLicenseError']('trialLimit'),'revisionHistoryLicenseKeyDevelopmentLimit'==_0x466cd0&&_0xb0bb59['_showLicenseError']('developmentLimit'),'revisionHistoryLicenseKeyUsageLimit'==_0x466cd0&&_0xb0bb59['_showLicenseError']('usageLimit');},0x3e8);}async['afterInit'](){if(this['repository']['length']>0x0){const _0x18cfb3=this['repository']['getRevision'](0x0),_0x294cbe=await this['getRevisionDocumentData'](_0x18cfb3),_0x33b650=await this['getRevisionRootsAttributes'](_0x18cfb3);this['_replaceEditorDataWithRevisionData'](_0x294cbe,_0x33b650);}}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}['setSource'](_0x507b0f){this['_source']=_0x507b0f;}async['update'](){const _0x191093=await this['_source']['getLatestVersion']();if(_0x191093>this['currentRevision']['toVersion']){await this['_loadState']();const _0x5ad305=this['buildRevisionData']({'revision':this['currentRevision'],'to':_0x191093});_0x5ad305['authors']=_0x5ad305['authorsIds']['map'](_0x17ab7d=>this['editor']['plugins']['get']('Users')['getUser'](_0x17ab7d)),this['currentRevision']['_update'](_0x5ad305);}}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'](_0x4a91b9={},_0x461e20=null){const _0x7e7dbb=[];await this['_loadState'](),this['_continueCurrentRevision']=!0x1,_0x461e20>this['currentRevision']['toVersion']&&(_0x461e20=null),null===_0x461e20&&(_0x461e20=await this['_source']['getLatestVersion']());const _0x48f758=this['_getFromVersion'](_0x461e20),_0x2aa74c=this['buildRevisionData']({'from':_0x48f758,'to':_0x461e20});if(this['currentRevision']['toVersion']<_0x461e20){const _0x36d207=this['buildRevisionData']({'revision':this['currentRevision'],'from':_0x461e20,'to':_0x461e20});_0x36d207['authors']=[],_0x36d207['authorsIds']=[],_0x36d207['id']=this['currentRevision']['id'],this['currentRevision']['_update'](_0x36d207,!0x0),delete _0x36d207['authors'],_0x7e7dbb['push'](_0x36d207);}_0x4a91b9['creatorId']=this['editor']['plugins']['get']('Users')['me']['id'],_0x4a91b9['name']=_0x4a91b9['name']||null,_0x4a91b9['id']=_0x4a91b9['id']||_0x4834e8(),_0x4a91b9={..._0x4a91b9,..._0x2aa74c};const _0x540ef7=this['addRevisionData'](_0x4a91b9);_0x7e7dbb['push'](_0x4a91b9);const _0x5785ba=this['repository']['getIndex'](_0x540ef7);if(0x0!==_0x5785ba){const _0x389fc7=this['repository']['getRevision'](_0x5785ba-0x1);if(_0x389fc7['fromVersion']!==_0x461e20){const _0x51c20c=this['_revisionDataBuilder']['getData'](_0x461e20,_0x389fc7['toVersion']),_0x4f41dd={'id':_0x389fc7['id'],'diffData':_0x51c20c['diffData'],'authorsIds':_0x51c20c['authorsIds'],'authors':_0x51c20c['authorsIds']['map'](_0x1ba668=>this['editor']['plugins']['get']('Users')['getUser'](_0x1ba668)),'fromVersion':_0x461e20};_0x389fc7===this['currentRevision']&&(_0x4f41dd['createdAt']=new Date(_0x4a91b9['createdAt']['getTime']()+0xa)),_0x389fc7['_update'](_0x4f41dd,!0x0),delete _0x4f41dd['authors'],_0x7e7dbb['push'](_0x4f41dd);}}if(this['adapter']){for(const _0x593fda of _0x7e7dbb)this['_bufferUpdate'](_0x593fda['id'],_0x593fda,!0x0);this['sendBufferedUpdates']();}return _0x540ef7;}['addRevisionData'](_0x524206){const _0x4d65cc=this['repository']['createRevision'](_0x524206);return this['adapter']&&_0x4d65cc['on']('_update',(_0x34d8a8,_0xf73c10,_0x4bca66)=>{_0x4bca66||(this['_bufferUpdate'](_0xf73c10['id'],_0xf73c10,!0x0),this['sendBufferedUpdates']());}),this['repository']['addRevision'](_0x4d65cc,this['_findInsertionIndex'](_0x4d65cc)),_0x4d65cc;}async['getRevisionDocumentData'](_0x1935bf){await this['_loadRevisionData'](_0x1935bf);const _0x9f38e0={};for(const _0x4f7d9e in _0x1935bf['diffData']){if(_0x1935bf['diffData'][_0x4f7d9e]['attachChange']&&!_0x1935bf['diffData'][_0x4f7d9e]['attachChange']['isAttached'])continue;const _0x403df3=this['_removeRevisionMarkers'](JSON['parse'](_0x1935bf['diffData'][_0x4f7d9e]['insertions'])),_0x3601c1=this['editor']['editing']['view']['document'],_0x1f4fe3=new _0x3bd259(_0x3601c1,_0x403df3['map'](_0x2a2a5c=>V(_0x2a2a5c,this['editor'])));this['editor']['data']['processor']['useFillerType']('marked'),_0x9f38e0[_0x4f7d9e]=this['editor']['data']['processor']['toData'](_0x1f4fe3),this['editor']['data']['processor']['useFillerType']('default');}return _0x9f38e0;}async['getRevisionRootsAttributes'](_0x39d828){await this['_loadRevisionData'](_0x39d828);const _0x482ba8={};for(const _0x55f1db in _0x39d828['diffData'])_0x39d828['diffData'][_0x55f1db]['attachChange']&&!_0x39d828['diffData'][_0x55f1db]['attachChange']['isAttached']||(_0x482ba8[_0x55f1db]=_0x39d828['diffData'][_0x55f1db]['attributesAfter']||{});return _0x482ba8;}['sendBufferedUpdates'](){if(0x0===this['_bufferedUpdates']['size'])return;if(this['_isPendingUpdate'])return;let _0x25c47c=Array['from'](this['_bufferedUpdates']['values']());this['_bufferedUpdates']['clear']();for(let _0x10295b=0x0;_0x10295b<_0x25c47c['length'];_0x10295b++){const _0x1182aa=_0x25c47c[_0x10295b];let _0x5b1241=!0x1;for(const _0x45b89f of Object['keys'](_0x1182aa))void 0x0===_0x1182aa[_0x45b89f]?delete _0x1182aa[_0x45b89f]:'id'!==_0x45b89f&&(_0x5b1241=!0x0);_0x5b1241||(_0x25c47c[_0x10295b]=null);}if(_0x25c47c=_0x25c47c['filter'](_0x2a6012=>null!==_0x2a6012),!_0x25c47c['length'])return;for(let _0x364b23=0x0;_0x364b23<_0x25c47c['length'];_0x364b23++){const _0x102e64=_0x25c47c[_0x364b23];void 0x0!==_0x102e64['fromVersion']&&void 0x0===_0x102e64['toVersion']&&(_0x102e64['toVersion']=this['repository']['getRevision'](_0x102e64['id'])['toVersion']),void 0x0!==_0x102e64['toVersion']&&void 0x0===_0x102e64['fromVersion']&&(_0x102e64['fromVersion']=this['repository']['getRevision'](_0x102e64['id'])['fromVersion']);}const _0x126300=this['editor']['config']['get']('collaboration.channelId');this['_isPendingUpdate']=!0x0,this['_addPendingAction'](),this['adapter']['updateRevisions'](_0x25c47c,_0x126300)['finally'](()=>{this['_isPendingUpdate']=!0x1;})['then'](_0x205b29=>{if(_0x205b29){for(const _0x40a067 of _0x205b29)this['setRevisionData']({'id':_0x40a067['id'],'createdAt':_0x40a067['createdAt']});}this['_removePendingAction'](),this['sendBufferedUpdates']();});}['_replaceEditorDataWithRevisionData'](_0x566105,_0x518006){let _0x3dfc30=this['editor']['config']['get']('initialData'),_0x58be64=this['editor']['config']['get']('rootsAttributes');if(void 0x0===_0x3dfc30){_0x3dfc30={};for(const _0x3468d2 of this['editor']['model']['document']['getRootNames']())_0x3dfc30[_0x3468d2]='';}if('string'==typeof _0x3dfc30&&(_0x3dfc30={'main':_0x3dfc30}),void 0x0===_0x58be64){_0x58be64={};for(const _0x805675 of this['editor']['model']['document']['getRootNames']())_0x58be64[_0x805675]={};}let _0x2b2680=!0x1;const _0xcb6f01=Object['keys'](_0x3dfc30),_0x17de4c=Object['keys'](_0x566105);for(const _0x1c2a9f of _0xcb6f01){if(_0x3dfc30[_0x1c2a9f]!==_0x566105[_0x1c2a9f]&&''!==_0x3dfc30[_0x1c2a9f]['trim']()){_0x2b2680=!0x0;break;}if(!_0x141f62(_0x58be64[_0x1c2a9f],_0x518006[_0x1c2a9f])&&Object['keys'](_0x58be64[_0x1c2a9f])['length']>0x0){_0x2b2680=!0x0;break;}}_0x2b2680||(_0x2b2680=_0x17de4c['some'](_0x5b951a=>!this['editor']['model']['document']['getRoot'](_0x5b951a))),_0x2b2680&&_0x1655ad('editor-initial-data-replaced-with-revision-data',{'editorData':_0x3dfc30,'editorRootsAttributes':_0x58be64,'revisionData':_0x566105,'revisionRootsAttributes':_0x518006}),this['editor']['config']['set']('initialData',_0x566105),this['editor']['config']['set']('rootsAttributes',_0x518006);}['_addPendingAction'](){if(!this['_pendingAction']){const _0x547ed0=this['editor']['plugins']['get']('PendingActions');this['_pendingAction']=_0x547ed0['add'](R(this['editor']['locale'],'PENDING_ACTION_REVISION_HISTORY'));}}['_removePendingAction'](){this['_pendingAction']&&(this['editor']['plugins']['get']('PendingActions')['remove'](this['_pendingAction']),this['_pendingAction']=null);}['_findInsertionIndex'](_0x1bf939){const _0x583ec1=this['repository']['getRevisions']();_0x583ec1['reverse']();let _0x23c007=0x0;for(;_0x23c007<_0x583ec1['length'];){const _0x1eb980=_0x583ec1[_0x23c007];if(_0x1eb980===this['currentRevision']){_0x23c007++;continue;}if(_0x1eb980['id']===this['_initialRevisionId'])break;const _0x258083=_0x1bf939['toVersion']-_0x1eb980['toVersion']||_0x1bf939['fromVersion']-_0x1eb980['fromVersion'];if(_0x258083>0x0)break;if(_0x258083<0x0)_0x23c007++;else{if(!_0x1bf939['creator']&&_0x1eb980['creator'])break;if(_0x1eb980['creator']||!_0x1bf939['creator']){if(_0x1bf939['createdAt']>_0x1eb980['createdAt'])break;_0x23c007++;}else _0x23c007++;}}return _0x23c007;}['setRevisionData'](_0x173b59){const _0x5a1532=this['repository']['getRevision'](_0x173b59['id']);if(_0x173b59['createdAt']&&(_0x173b59['createdAt']=new Date(_0x173b59['createdAt'])),_0x173b59['authorsIds']){const _0x470520=this['editor']['plugins']['get']('Users');_0x173b59['authors']=_0x173b59['authorsIds']['map'](_0x595af1=>_0x470520['getUser'](_0x595af1));}_0x5a1532['_update'](_0x173b59,!0x0);}['buildRevisionData']({revision:_0x161a7d=null,from:_0x372786=null,to:_0x934765=null}){_0x372786=null!==_0x372786?_0x372786:_0x161a7d['fromVersion'],_0x934765=null!==_0x934765?_0x934765:_0x161a7d['toVersion'];const _0x1c83ca=this['_revisionDataBuilder']['getData'](_0x372786,_0x934765),_0x1cd207={'diffData':_0x1c83ca['diffData'],'authorsIds':_0x1c83ca['authorsIds'],'fromVersion':_0x372786,'toVersion':_0x934765};if(!_0x161a7d||_0x934765!==_0x161a7d['toVersion']){const _0x2d218b=_0x934765-0x1,_0xe541aa=this['_source']['history']['getOperation'](_0x2d218b);_0x1cd207['createdAt']=_0xe541aa&&_0xe541aa['createdAt']||new Date();}if(this['_loadedStateData']&&_0x372786===this['_loadedStateData']['fromVersion']){for(const _0x15d0ab of this['_loadedStateData']['authors'])_0x1cd207['authorsIds']['includes'](_0x15d0ab['id'])||_0x1cd207['authorsIds']['push'](_0x15d0ab['id']);}return _0x1cd207;}['_loadRevisionData'](_0x30ad29){if(!_0x30ad29||_0x30ad29['diffData'])return Promise['resolve']();{const _0x474922=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x474922,'revisionId':_0x30ad29['id']})['then'](_0x531b0f=>{_0x30ad29['diffData']=_0x531b0f['diffData'];});}}['_bufferUpdate'](_0x37eb61,_0x3a9c2d,_0x283c1e){if(this['_bufferedUpdates']['has'](_0x37eb61)){const _0x4471a8=this['_bufferedUpdates']['get'](_0x37eb61);_0x3a9c2d=_0x283c1e?{..._0x4471a8,..._0x3a9c2d}:{..._0x3a9c2d,..._0x4471a8};}this['_bufferedUpdates']['set'](_0x37eb61,_0x3a9c2d);}['_getFromVersion'](_0x2550f9){const _0x5a20ab=this['repository']['getRevisions']();_0x5a20ab['reverse'](),_0x5a20ab['shift']();const _0x38760d=_0x5a20ab['find'](_0x99c052=>_0x99c052['toVersion']<=_0x2550f9)['toVersion'];return _0x38760d<this['_startingVersion']?this['_startingVersion']:_0x38760d;}['_createInitialRevision'](_0x17c215){const _0x51d011=this['repository']['getRevision'](this['repository']['length']-0x1);if(_0x51d011)this['_initialRevisionId']=_0x51d011['id'];else{const _0x34601e=!this['editor']['model']['document']['roots']['find'](_0x4f4390=>this['editor']['model']['hasContent'](_0x4f4390)),_0x3dc7cd=this['editor']['plugins']['get']('Users')['me']['id'],_0x4c6458=R(this['editor']['locale'],_0x34601e?'Empty\x20document':'Initial\x20revision');this['_makeRevision']({'from':_0x17c215,'to':_0x17c215,'id':this['_initialRevisionId'],'name':_0x4c6458,'creatorId':_0x3dc7cd});}}['_createCurrentRevision'](_0x499acc){const _0x29a8c2=this['_source']['getCurrentRevisionId']();this['currentRevision']=this['repository']['getRevision'](_0x29a8c2),this['currentRevision']||(this['currentRevision']=this['_makeRevision']({'from':_0x499acc,'to':_0x499acc,'id':_0x29a8c2,'name':'','creatorId':null}));}['_makeRevision']({name:_0x33f8f4,from:_0x47e1d5,to:_0x568d23,creatorId:_0xc9fc35,id:_0x3ce0ad}){const _0x29ff2f=this['buildRevisionData']({'from':_0x47e1d5,'to':_0x568d23});_0x29ff2f['name']=_0x33f8f4,_0x29ff2f['creatorId']=_0xc9fc35,_0x29ff2f['id']=_0x3ce0ad;const _0xf62372=this['addRevisionData'](_0x29ff2f);return this['adapter']&&this['_bufferUpdate'](_0x29ff2f['id'],_0x29ff2f,!0x0),_0xf62372;}['_setConversion'](){this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'});}['_removeRevisionMarkers'](_0x1712ba){return(_0x1712ba=_0x1712ba['filter'](_0x1acff0=>!_0x1acff0['name']||'revision-start'!==_0x1acff0['name']&&'revision-end'!==_0x1acff0['name']))['forEach'](_0x396469=>{'string'!=typeof _0x396469&&(_0x396469['children']=this['_removeRevisionMarkers'](_0x396469['children']),_0x396469['attributes']=_0x396469['attributes']['filter'](_0x3a4174=>!_0x3a4174[0x0]['startsWith']('data-revision-')));}),_0x1712ba;}}function V(_0x8e8c25,_0x3c9f74){const _0x288956=_0x3c9f74['editing']['view']['document'];if('string'==typeof _0x8e8c25)return new _0x3c17b8(_0x288956,_0x8e8c25);{const _0x26450e=_0x8e8c25['children']['map'](_0x590da=>V(_0x590da,_0x3c9f74));return new(C[_0x8e8c25['type']]||_0x20d11f)(_0x288956,_0x8e8c25['name'],_0x8e8c25['attributes'],_0x26450e);}}class T{['editor'];['source'];['_savedMetaData'];['_lastFrom'];['_lastTo'];['_markers'];['_diffRoots'];['_diffRootsAttributes'];['_baseRoots'];['_baseRootsAttributes'];['_idsRoots'];['_baseIdsRoots'];['_touched'];['_touchedMarkers'];['_touchedRoots'];['_revisionId'];['_startingRevisionId'];constructor(_0x5df59c){this['editor']=_0x5df59c,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'](_0x3f265d){this['source']=_0x3f265d;const _0x3f6b3e=new Map(),_0x3adabe=new Map(),_0x3c1222=this['editor']['model']['document']['roots']['map'](_0x30fa6c=>_0x30fa6c['rootName']);for(const _0x514f90 of _0x3c1222){const _0x40d81c=this['editor']['model']['document']['getRoot'](_0x514f90),_0x399f31=F(_0x40d81c);_0x3f6b3e['set'](_0x514f90,_0x399f31),_0x3adabe['set'](_0x514f90,Object['fromEntries'](_0x40d81c['getAttributes']()));}const _0x554bed=Array['from'](this['editor']['model']['markers'])['map'](_0x150ab6=>[_0x150ab6['name'],_0x150ab6['getRange']()]),_0x402061=this['source']['version'];this['_saveMetaData'](_0x402061,_0x3f6b3e,_0x554bed,_0x3adabe),this['_startingRevisionId']=this['_revisionId'];const _0x364729=new Map(),_0x27e586=new Map();for(const _0x110b47 of _0x3c1222){const _0x1a2b92=B(_0x110b47);_0x364729['set'](_0x110b47,_0x1a2b92),_0x27e586['set'](_0x110b47,{});}this['_saveMetaData'](Number['NEGATIVE_INFINITY'],_0x364729,[],_0x27e586);}['getData'](_0x31369e,_0x14078a){if(this['_lastFrom']===_0x31369e&&this['_lastTo']<=_0x14078a)this['_savedMetaData']['size']>0x1&&this['_removeMetaData'](this['_lastTo']),this['_applyOperations'](this['_lastTo'],_0x14078a,!0x0);else{if(!this['_savedMetaData']['has'](_0x31369e)){const _0x33fbe8=this['_getPreviousFrom'](_0x31369e);this['_calculateMetaData'](_0x33fbe8,_0x31369e,!0x1);}this['_calculateMetaData'](_0x31369e,_0x14078a,!0x0);}return this['_lastFrom']=_0x31369e,this['_lastTo']=_0x14078a,this['_getState']();}['loadState'](_0x347112){this['_reset'](),this['_lastFrom']=_0x347112['fromVersion'],this['_lastTo']=_0x347112['toVersion'];for(const _0x11110d in _0x347112['diffData']){const _0x21d23f=_0x347112['diffData'][_0x11110d]['attachChange'],_0x30d32e=_0x3bf4ba(_0x347112['diffData'][_0x11110d]['attributesBefore'])||{},_0x166ce6=this['_makeModelFromViewString'](_0x347112['diffData'][_0x11110d]['deletions']);_0x166ce6['rootName']=_0x11110d,_0x166ce6['_isAttached']=!_0x21d23f||!_0x21d23f['isAttached'],_0x166ce6['isAttached']=()=>_0x166ce6['_isAttached'],this['_baseRoots']['set'](_0x11110d,_0x166ce6),this['_baseRootsAttributes']['set'](_0x11110d,_0x30d32e),_0x21d23f&&this['_touchedRoots']['set'](_0x11110d,_0x21d23f);const _0x5e36d5=this['_makeIdsRoot'](_0x166ce6);this['_baseIdsRoots']['set'](_0x11110d,_0x5e36d5);for(const [_0x25aea3,_0x4a5c48]of _0x166ce6['markers']){if(!_0x25aea3['startsWith']('revision:'))continue;const _0x107c17=_0x25aea3['split'](':')[0x2];for(const _0x58d9b1 of _0x4a5c48['getWalker']({'singleCharacters':!0x0})){const _0x40a731=this['_getVidAttributeName'](_0x58d9b1),_0x43334a='elementEnd'==_0x58d9b1['type']?_0x58d9b1['previousPosition']['path']['slice'](0x0,-0x1):_0x58d9b1['previousPosition']['path'],_0x32937a=_0x5e36d5['getNodeByPath'](_0x43334a)['getAttribute'](_0x40a731);this['_touched']['set'](_0x32937a,{'userId':_0x107c17});}}}this['_startingRevisionId']=this['_revisionId'];const _0x2a346e=[...Array(this['_revisionId'])['keys']()]['slice'](0x1)['filter'](_0x45abd7=>!this['_touched']['has'](_0x45abd7));let _0x3f5e10=0x0;const _0x2c7d33=new Map();for(const _0x286cf1 in _0x347112['diffData']){const _0xcdb094=_0x347112['diffData'][_0x286cf1]['attachChange'],_0x780cfd=_0x3bf4ba(_0x347112['diffData'][_0x286cf1]['attributesAfter'])||{},_0x17e9fe=this['_makeModelFromViewString'](_0x347112['diffData'][_0x286cf1]['insertions']);_0x17e9fe['rootName']=_0x286cf1,_0x17e9fe['_isAttached']=!_0xcdb094||_0xcdb094['isAttached'],_0x17e9fe['isAttached']=()=>_0x17e9fe['_isAttached'],this['_diffRoots']['set'](_0x286cf1,_0x17e9fe),this['_diffRootsAttributes']['set'](_0x286cf1,_0x780cfd);const _0x22afc6=this['_makeIdsRoot'](_0x17e9fe,Number['NEGATIVE_INFINITY']);this['_idsRoots']['set'](_0x286cf1,_0x22afc6),_0x2c7d33['set'](_0x286cf1,_0x17e9fe['isAttached']()?_0x780cfd:{});for(const [_0x117aa5,_0x199947]of _0x17e9fe['markers']){if(!_0x117aa5['startsWith']('revision:'))continue;const _0x43c4b=_0x117aa5['split'](':')[0x2];for(const _0x35184b of _0x199947['getWalker']({'singleCharacters':!0x0})){const _0x2b2f4b=this['_getVidAttributeName'](_0x35184b),_0x4ec022=this['_revisionId']++,_0x5872cb='elementEnd'==_0x35184b['type']?_0x35184b['previousPosition']['path']['slice'](0x0,-0x1):_0x35184b['previousPosition']['path'];_0x22afc6['getNodeByPath'](_0x5872cb)['_setAttribute'](_0x2b2f4b,_0x4ec022),this['_touched']['set'](_0x4ec022,{'userId':_0x43c4b});}}for(const _0x27af7f of this['editor']['model']['createRangeIn'](_0x17e9fe)['getWalker']({'singleCharacters':!0x0})){const _0x5dbbc0=this['_getVidAttributeName'](_0x27af7f),_0x327c0='elementEnd'==_0x27af7f['type']?_0x27af7f['previousPosition']['path']['slice'](0x0,-0x1):_0x27af7f['previousPosition']['path'],_0x10aa06=_0x22afc6['getNodeByPath'](_0x327c0);_0x10aa06['getAttribute'](_0x5dbbc0)>0x0||_0x10aa06['_setAttribute'](_0x5dbbc0,_0x2a346e[_0x3f5e10++]);}for(const [_0xc7d471,_0x16f77c]of _0x17e9fe['markers'])_0xc7d471['startsWith']('revision:')||this['_markers']['set'](_0xc7d471,_0x16f77c);}const _0x3b610c=B('$graveyard');this['_baseRoots']['set']('$graveyard',_0x3b610c),this['_baseIdsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x3b610c,0x1));const _0x229164=B('$graveyard');this['_diffRoots']['set']('$graveyard',_0x229164),this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](_0x229164,0x1));const _0x3759dc=Array['from'](this['_diffRoots'])['map'](([_0x5bf134,_0x5265de])=>[_0x5bf134,F(_0x5265de)]);this['_saveMetaData'](this['_lastTo'],_0x3759dc,this['_markers'],_0x2c7d33);}['_makeModelFromViewString'](_0x222265){const _0x10a759=JSON['parse'](_0x222265),_0x295f8e=this['editor']['editing']['view']['document'],_0x2b854c=new _0x3bd259(_0x295f8e,_0x10a759['map'](_0x2a2cb4=>V(_0x2a2cb4,this['editor'])));return this['editor']['data']['toModel'](_0x2b854c);}['_saveMetaData'](_0x58f1aa,_0x2b4281,_0x39a444,_0x484810){const _0x448f1f=new Map(_0x2b4281),_0x55c48e=new Map(_0x3bf4ba(_0x484810)),_0x3484d2=new Map();for(const [_0x141146,_0x61678c]of _0x39a444)_0x3484d2['set'](_0x141146,{'start':_0x61678c['start']['clone'](),'end':_0x61678c['end']['clone'](),'rootName':_0x61678c['root']['rootName']});this['_savedMetaData']['set'](_0x58f1aa,{'roots':_0x448f1f,'markers':_0x3484d2,'rootsAttributes':_0x55c48e});}['_removeMetaData'](_0xc9f6ff){this['_savedMetaData']['delete'](_0xc9f6ff);}['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'](_0x2a6e50,_0x2850fe=null){let _0x38cb62=null;_0x2a6e50['is']('documentFragment')||(_0x38cb62=new ft(_0x2a6e50['name'],{'vid_start':null===_0x2850fe?this['_revisionId']++:_0x2850fe++}));const _0x763c11=[];for(const _0x42da61 of _0x2a6e50['getChildren']())if(_0x42da61['is']('element')){_0x763c11['push'](this['_makeIdsRoot'](_0x42da61,_0x2850fe));const _0x38a613=_0x763c11[_0x763c11['length']-0x1];null!==_0x2850fe&&(_0x2850fe=_0x38a613['is']('element','$text')?_0x38a613['getAttribute']('vid')+0x1:_0x38a613['getAttribute']('vid_end')+0x1);}else{for(let _0xafdb95=0x0;_0xafdb95<_0x42da61['offsetSize'];_0xafdb95++)_0x763c11['push'](new ft('$text',{'vid':null===_0x2850fe?this['_revisionId']++:_0x2850fe++}));}if(_0x2a6e50['is']('documentFragment')){const _0x355adf=B(_0x2a6e50['rootName']);return _0x355adf['_insertChild'](0x0,_0x763c11),_0x355adf;}return _0x38cb62['_setAttribute']('vid_end',null===_0x2850fe?this['_revisionId']++:_0x2850fe++),_0x38cb62['_insertChild'](0x0,_0x763c11),_0x38cb62;}['_calculateMetaData'](_0x581440,_0x499f8c,_0x1e530f){this['_reset']();const {roots:_0x2c17fd,markers:_0x1d38b7,rootsAttributes:_0x456f83}=this['_savedMetaData']['get'](_0x581440);this['_baseRoots']=new Map(_0x2c17fd),this['_baseRootsAttributes']=new Map(_0x3bf4ba(_0x456f83));for(const [_0x1f6ae9,_0x5daafc]of this['_baseRoots'])if('$graveyard'!==_0x1f6ae9&&(this['_diffRoots']['set'](_0x1f6ae9,F(_0x5daafc)),this['_diffRootsAttributes']=new Map(_0x3bf4ba(_0x456f83)),_0x1e530f)){const _0x49da58=this['_revisionId'];this['_idsRoots']['set'](_0x1f6ae9,this['_makeIdsRoot'](_0x5daafc)),this['_baseIdsRoots']['set'](_0x1f6ae9,this['_makeIdsRoot'](_0x5daafc,_0x49da58));}this['_startingRevisionId']=this['_revisionId'],this['_diffRoots']['set']('$graveyard',F(this['_baseRoots']['get']('$graveyard'))),_0x1e530f&&this['_idsRoots']['set']('$graveyard',this['_makeIdsRoot'](this['_baseRoots']['get']('$graveyard')));for(const [_0x391d77,_0x270efd]of _0x1d38b7){const _0x5efa48=this['_baseRoots']['get'](_0x270efd['rootName']),_0x2a8b0d=this['_diffRoots']['get'](_0x270efd['rootName']),_0x127a0d=new vt(this['_fixPosition'](_0x270efd['start'],_0x5efa48),this['_fixPosition'](_0x270efd['end'],_0x5efa48)),_0x58592f=this['_fixRange'](_0x127a0d,_0x2a8b0d);_0x5efa48['markers']['set'](_0x391d77,_0x127a0d),this['_markers']['set'](_0x391d77,_0x58592f);}this['_applyOperations'](_0x581440,_0x499f8c,_0x1e530f);}['_applyOperations'](_0x7b0c89,_0x115f6e,_0x1c7cbb){for(const _0x64d36b of this['source']['getOperations'](_0x7b0c89,_0x115f6e))this['_handleOperation'](_0x64d36b,_0x1c7cbb);for(const _0x41efe9 of this['_diffRoots']['values']())_0x41efe9['markers']['clear']();for(const [_0x5a47aa,_0xe87ad]of this['_markers']){this['_diffRoots']['get'](_0xe87ad['root']['rootName'])['markers']['set'](_0x5a47aa,_0xe87ad['clone']());}const _0x118f14=new Map(),_0x8bec95=new Map();for(const [_0x5a55f6,_0x328221]of this['_diffRoots'])_0x118f14['set'](_0x5a55f6,F(_0x328221)),_0x8bec95['set'](_0x5a55f6,this['_diffRootsAttributes']['get'](_0x5a55f6));this['_saveMetaData'](_0x115f6e,_0x118f14,this['_markers'],_0x8bec95);}['_getPreviousFrom'](_0x13f3c6){const _0x21d3d2=Array['from'](this['_savedMetaData']['keys']());_0x21d3d2['sort']((_0x355dd6,_0x332cc6)=>_0x355dd6-_0x332cc6),_0x21d3d2['reverse']();for(const _0x2c12e7 of _0x21d3d2)if(_0x2c12e7<_0x13f3c6)return _0x2c12e7;return Number['NEGATIVE_INFINITY'];}['_copyMarkers'](_0x385c80,_0x1fb81e){const _0x14e529=Array['from'](_0x1fb81e['markers'])['map'](([_0x423f84,_0x180de6])=>[_0x423f84,this['_fixRange'](_0x180de6,_0x385c80)]);_0x385c80['markers']=new Map(_0x14e529);}['_transformMarkers'](_0xe6997f){for(const _0x39f4d7 of this['_markers']['values']()){const _0x53adb7=_0x39f4d7['getTransformedByOperation'](_0xe6997f),_0x50c06e=vt['_createFromRanges'](_0x53adb7);_0x39f4d7['start']=_0x50c06e['start'],_0x39f4d7['end']=_0x50c06e['end'];}}['_handleOperation'](_0x267a2f,_0x4144a8){if('addRoot'!=_0x267a2f['type']&&'detachRoot'!=_0x267a2f['type']){if('insert'==_0x267a2f['type']){const _0x19f16c=_0x267a2f['position']['root']['rootName'];this['_diffRoots']['has'](_0x19f16c)||(this['_diffRoots']['set'](_0x19f16c,B(_0x19f16c,!0x0)),this['_diffRootsAttributes']['set'](_0x19f16c,{}),_0x4144a8&&this['_idsRoots']['set'](_0x19f16c,B(_0x19f16c,!0x0)));}else{if('addRootAttribute'==_0x267a2f['type']||'removeRootAttribute'==_0x267a2f['type']||'changeRootAttribute'==_0x267a2f['type'])return void this['_handleRootAttributeOperation'](_0x267a2f);'marker'==_0x267a2f['type']&&this['_handleMarkerOperation'](_0x267a2f);}if('marker'!==_0x267a2f['type']){const _0x5c92ff=this['_cloneOperation'](_0x267a2f,this['_diffRoots']);_0x5c92ff['_execute'](),this['_transformMarkers'](_0x5c92ff);}if(_0x4144a8)switch(_0x267a2f['type']){case'insert':this['_handleInsertOperation'](_0x267a2f);break;case'move':case'remove':case'reinsert':this['_handleMoveOperation'](_0x267a2f);break;case'merge':this['_handleMergeOperation'](_0x267a2f);break;case'split':this['_handleSplitOperation'](_0x267a2f);}}else this['_handleRootOperation'](_0x267a2f,_0x4144a8);}['_cloneOperation'](_0x4ee94f,_0x32c85e){const _0x4baebe=_0x4ee94f['clone']();return _0x4baebe['_authorId']=_0x4ee94f['_authorId'],this['_fixOperation'](_0x4baebe,_0x32c85e),_0x4baebe;}['_getBaseVids'](_0xf077f4){return _0xf077f4['map'](_0x3781d4=>{const _0x146d21=this['_getVidAttributeName'](_0x3781d4);return Number(_0x3781d4['item']['getAttribute'](_0x146d21));});}['_generateTape'](_0x2263f3,_0xe48d88){if(_0x2263f3['is']('element','$text'))_0xe48d88['push']({'item':_0x2263f3,'type':'text'});else{_0x2263f3['is']('element')&&_0xe48d88['push']({'item':_0x2263f3,'type':'elementStart'});for(const _0x1044a5 of _0x2263f3['getChildren']())this['_generateTape'](_0x1044a5,_0xe48d88);_0x2263f3['is']('element')&&_0xe48d88['push']({'item':_0x2263f3,'type':'elementEnd'});}return _0xe48d88;}['_getState'](){const _0x27e96d=new Map(this['_touched']),_0x30eedf=new Map(_0x27e96d),_0x1989b6=new Map(),_0x136d8e={'insertions':{},'deletions':{}},_0xdbe6fc={'insertions':{},'deletions':{}},_0x5067f8=new Map(),_0x2da59c=new Set([...this['_baseRoots']['keys'](),...this['_diffRoots']['keys']()]);_0x2da59c['delete']('$graveyard');for(const _0x1e07ce of _0x2da59c){const _0x3fde2e=this['_diffRoots']['get'](_0x1e07ce)||B(_0x1e07ce,!0x1),_0x16dd5d=this['_baseRoots']['get'](_0x1e07ce)||B(_0x1e07ce,!0x1);_0x3fde2e['isAttached']()||_0x16dd5d['isAttached']()?(_0x136d8e['insertions'][_0x1e07ce]=F(_0x3fde2e),_0x136d8e['deletions'][_0x1e07ce]=F(_0x16dd5d),this['_copyMarkers'](_0x136d8e['deletions'][_0x1e07ce],_0x16dd5d),this['_copyMarkers'](_0x136d8e['insertions'][_0x1e07ce],_0x3fde2e),_0xdbe6fc['insertions'][_0x1e07ce]=this['_generateTape'](this['_idsRoots']['get'](_0x1e07ce),[]),_0xdbe6fc['deletions'][_0x1e07ce]=this['_generateTape'](this['_baseIdsRoots']['get'](_0x1e07ce)||B(_0x1e07ce,!0x1),[])):_0x2da59c['delete'](_0x1e07ce);}for(const _0x31c240 of _0x2da59c){const _0x1edc0b=_0xdbe6fc['insertions'][_0x31c240];for(const _0x3d4209 of _0x1edc0b){const _0x5084d0=this['_getVidAttributeName'](_0x3d4209),_0x41ffea=_0x3d4209['item']['getAttribute'](_0x5084d0);_0x30eedf['delete'](_0x41ffea),_0x41ffea>=this['_startingRevisionId']&&_0x1989b6['set'](_0x41ffea,_0x27e96d['get'](_0x41ffea));}}for(const _0xe8e61f of _0x2da59c){const _0x3b9a25=_0xdbe6fc['insertions'][_0xe8e61f],_0x4ed23b=this['_getBaseVids'](_0xdbe6fc['deletions'][_0xe8e61f]);let _0x3b8483=0x0;for(const _0x4e1d07 of _0x3b9a25){const _0x3d48a8=this['_getVidAttributeName'](_0x4e1d07),_0x134218=_0x4e1d07['item']['getAttribute'](_0x3d48a8);if(!_0x1989b6['has'](_0x134218)&&!_0x5067f8['has'](_0x134218)){if(_0x30eedf['has'](_0x134218))_0x3b8483++;else{if(_0x134218!=_0x4ed23b[_0x3b8483]){const _0x249827=_0x27e96d['get'](_0x134218)||_0x27e96d['get'](_0x4ed23b[_0x3b8483]);for(;_0x134218!=_0x4ed23b[_0x3b8483];)_0x30eedf['has'](_0x4ed23b[_0x3b8483])||(_0x5067f8['set'](_0x4ed23b[_0x3b8483],_0x249827),_0x27e96d['set'](_0x4ed23b[_0x3b8483],_0x249827)),_0x3b8483++;}_0x3b8483++;}}}}for(const _0x2a64cb of _0x2da59c){const _0x36b8a6=_0xdbe6fc['insertions'][_0x2a64cb];for(const _0x1e6f4a of _0x36b8a6){const _0x17ee32=this['_getVidAttributeName'](_0x1e6f4a),_0x5830cf=_0x1e6f4a['item']['getAttribute'](_0x17ee32);if(_0x5067f8['has'](_0x5830cf)){const _0x1d807=_0x5067f8['get'](_0x5830cf);_0x30eedf['has'](_0x5830cf)||_0x30eedf['set'](_0x5830cf,{..._0x1d807}),_0x1989b6['set'](_0x5830cf,{..._0x1d807});}}}for(const _0x124b31 of _0x30eedf['keys']())_0x124b31>=this['_startingRevisionId']&&_0x30eedf['delete'](_0x124b31);const _0x23d764=new Map();for(const _0x19da08 of _0x2da59c){let _0x5f39f4=_0xdbe6fc['insertions'][_0x19da08];for(const _0x1fe06e of _0x5f39f4)if(_0x1fe06e['item']['is']('element','tableCell')){const _0x5bc82e=this['_getVidAttributeName'](_0x1fe06e),_0x53684b=_0x1fe06e['item']['getAttribute'](_0x5bc82e);if(_0x1989b6['has'](_0x53684b)){const _0x1ebf0d=_0x1fe06e['item']['parent']['parent']['getAttribute']('vid_start'),_0x338fc3=_0x23d764['get'](_0x1ebf0d)||new Set();_0x338fc3['add'](_0x1989b6['get'](_0x53684b)['userId']),_0x23d764['set'](_0x1ebf0d,_0x338fc3);}}_0x5f39f4=_0xdbe6fc['deletions'][_0x19da08];for(const _0x422885 of _0x5f39f4)if(_0x422885['item']['is']('element','tableCell')){const _0x5bcc8c=this['_getVidAttributeName'](_0x422885),_0x19db16=_0x422885['item']['getAttribute'](_0x5bcc8c);if(_0x30eedf['has'](_0x19db16)){const _0x2d4112=_0x422885['item']['parent']['parent']['getAttribute']('vid_start'),_0x2b60cb=_0x23d764['get'](_0x2d4112)||new Set();_0x2b60cb['add'](_0x30eedf['get'](_0x19db16)['userId']),_0x23d764['set'](_0x2d4112,_0x2b60cb);}}for(const _0x487f42 of _0x23d764['keys']())(_0x1989b6['has'](_0x487f42)||_0x30eedf['has'](_0x487f42))&&_0x23d764['delete'](_0x487f42);}for(const _0xa448f3 of _0x2da59c){const _0x4f4f80=_0xdbe6fc['insertions'][_0xa448f3];let _0x3f0dfd=null,_0x5ef562=null;for(const _0x24d49c of _0x4f4f80){const _0x3b1b30=this['_getVidAttributeName'](_0x24d49c),_0x4ddbdc=_0x24d49c['item']['getAttribute'](_0x3b1b30),_0x5f18bc=_0x23d764['get'](_0x4ddbdc);_0x5f18bc&&'elementStart'==_0x24d49c['type']&&(_0x3f0dfd=Array['from'](_0x5f18bc)[0x0],_0x5ef562=_0x24d49c['item']['getAttribute']('vid_end')),_0x3f0dfd&&(_0x30eedf['set'](_0x4ddbdc,{'userId':_0x3f0dfd}),_0x1989b6['set'](_0x4ddbdc,{'userId':_0x3f0dfd})),_0x4ddbdc==_0x5ef562&&(_0x3f0dfd=null,_0x5ef562=null);}}const _0x471559={},_0x2b3b73=new Set();for(const _0x5270fb of _0x2da59c){const _0x2a77d8=_0x136d8e['deletions'][_0x5270fb],_0x22ef47=_0x136d8e['insertions'][_0x5270fb];for(const {userId:_0x33c8cf}of this['_touchedMarkers']['values']())null!==_0x33c8cf&&_0x2b3b73['add'](_0x33c8cf);for(const {userId:_0xeaa410}of this['_touchedRoots']['values']())null!==_0xeaa410&&_0x2b3b73['add'](_0xeaa410);this['_markChanges'](_0x22ef47,_0xdbe6fc['insertions'][_0x5270fb],_0x1989b6,'insertion',_0x2b3b73),this['_markChanges'](_0x2a77d8,_0xdbe6fc['deletions'][_0x5270fb],_0x30eedf,'deletion',_0x2b3b73),_0x471559[_0x5270fb]={'insertions':this['_prepareViewToSave'](_0x22ef47),'deletions':this['_prepareViewToSave'](_0x2a77d8),'attachChange':this['_touchedRoots']['get'](_0x5270fb)||null,'attributesBefore':_0x3bf4ba(this['_baseRootsAttributes']['get'](_0x5270fb))||{},'attributesAfter':_0x3bf4ba(this['_diffRootsAttributes']['get'](_0x5270fb))};}return{'diffData':_0x471559,'authorsIds':Array['from'](_0x2b3b73)};}['_processRootBeforeSave'](_0x1cb7ab){for(const [,_0x24bdc1]of _0x1cb7ab['markers']){const _0x58faf9=_0x24bdc1['start']['getAncestors']()['filter'](_0x261ad7=>'tableCell'==_0x261ad7['name']);for(const _0x195886 of _0x58faf9)0x1==_0x195886['childCount']&&_0x195886['getChild'](0x0)['is']('element','paragraph')&&_0x195886['getChild'](0x0)['_setAttribute']('keepParagraph',!0x0);}}['_prepareViewToSave'](_0xbb119c){this['_processRootBeforeSave'](_0xbb119c);const _0x4b30e7=this['editor']['data']['toView'](_0xbb119c,{}),_0x345622=Array['from'](_0x4b30e7['getChildren']())['map'](_0x3a4777=>this['_getViewJson'](_0x3a4777));return JSON['stringify'](_0x345622);}['_getViewJson'](_0x37a3f8){if(_0x37a3f8['is']('$text'))return _0x37a3f8['data'];{const _0x3f92fc=_0x37a3f8;return{'type':Object['keys'](C)['find'](_0x3223c6=>_0x37a3f8 instanceof C[_0x3223c6]),'name':_0x3f92fc['name'],'attributes':Array['from'](_0x3f92fc['getAttributes']()),'children':Array['from'](_0x3f92fc['getChildren']())['map'](_0x633b62=>this['_getViewJson'](_0x633b62))};}}['_markChanges'](_0x2b661a,_0x5a8e10,_0x354831,_0x12e15f,_0x316e03){let _0x589032=null,_0x1ddefb=null,_0x1e8f52=0x0;const _0x4b4876=this['editor']['model'];for(let _0x382d25=0x0;_0x382d25<_0x5a8e10['length'];_0x382d25++){const _0x60e9b9=this['_getVidAttributeName'](_0x5a8e10[_0x382d25]),_0x1430d6=_0x5a8e10[_0x382d25]['item']['getAttribute'](_0x60e9b9),_0x9e7da0=_0x354831['get'](_0x1430d6),_0x56d8e1=_0x382d25==_0x5a8e10['length']-0x1;(!_0x589032&&_0x9e7da0&&(_0x589032=_0x9e7da0,_0x1ddefb=_0x5a8e10[_0x382d25]),_0x589032&&(!_0x9e7da0||_0x9e7da0['userId']!=_0x589032['userId']))&&(_0x2b2242(_0x9e7da0,J(_0x1ddefb,_0x2b661a,_0x4b4876),J(_0x5a8e10[_0x382d25],_0x2b661a,_0x4b4876)),_0x589032=_0x9e7da0||null,_0x1ddefb=_0x9e7da0?_0x5a8e10[_0x382d25]:null),_0x589032&&_0x56d8e1&&_0x2b2242(_0x9e7da0,J(_0x1ddefb,_0x2b661a,_0x4b4876),q(_0x5a8e10[_0x382d25],_0x2b661a,_0x4b4876));}function _0x2b2242(_0x357cac,_0x509a2d,_0xa3b14f){const _0x4429a6=_0x589032['userId'],_0x8e8506='revision:'+_0x12e15f+':'+_0x4429a6+':'+_0x1e8f52++,_0x5385cd=_0x4b4876['createRange'](_0x509a2d,_0xa3b14f);_0x2b661a['markers']['set'](_0x8e8506,_0x5385cd),null!==_0x4429a6&&_0x316e03['add'](_0x4429a6);}}['_getVidAttributeName'](_0x34903c){switch(_0x34903c['type']){case'elementStart':return'vid_start';case'elementEnd':return'vid_end';default:return'vid';}}['_fixOperation'](_0x21e639,_0x581e50){_0x21e639['baseVersion']=null;for(const _0x40f06a in _0x21e639){const _0x3a5cac=_0x21e639[_0x40f06a];if(_0x3a5cac instanceof gt){const _0x30eece=_0x581e50['get'](_0x3a5cac['root']['rootName']);_0x21e639[_0x40f06a]=this['_fixPosition'](_0x3a5cac,_0x30eece);}if(_0x3a5cac instanceof vt){const _0x4ad2ec=_0x581e50['get'](_0x3a5cac['root']['rootName']);_0x21e639[_0x40f06a]=this['_fixRange'](_0x3a5cac,_0x4ad2ec);}'root'===_0x40f06a&&(_0x21e639['root']=_0x581e50['get'](_0x21e639['root']['rootName']));}}['_fixRange'](_0x26d96e,_0x1c02de){return this['editor']['model']['createRange'](this['_fixPosition'](_0x26d96e['start'],_0x1c02de),this['_fixPosition'](_0x26d96e['end'],_0x1c02de));}['_fixPosition'](_0x5d847f,_0xd62476){return this['editor']['model']['createPositionFromPath'](_0xd62476,_0x5d847f['path'],_0x5d847f['stickiness']);}['_handleInsertOperation'](_0x30597b){const _0x1463bd=this['_idsRoots']['get'](_0x30597b['position']['root']['rootName']),_0x3bac6e=this['_fixPosition'](_0x30597b['position'],_0x1463bd),_0x1844b0=null===_0x30597b['_authorId']?null:_0x30597b['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x2a1734=_0x3bac6e['parent'],_0x50ae15=this['_revisionId'],_0x2bdcc1=[];for(const _0x2b569f of _0x30597b['nodes'])if(_0x2b569f['is']('element'))_0x2bdcc1['push'](this['_makeIdsRoot'](_0x2b569f));else{for(let _0x44636a=0x0;_0x44636a<_0x2b569f['offsetSize'];_0x44636a++)_0x2bdcc1['push'](new ft('$text',{'vid':this['_revisionId']++}));}const _0x23c5da=this['_revisionId'];for(let _0x450169=_0x50ae15;_0x450169<_0x23c5da;_0x450169++)this['_touched']['set'](_0x450169,{'userId':_0x1844b0});_0x2a1734['_insertChild'](_0x3bac6e['offset'],_0x2bdcc1);}['_handleMoveOperation'](_0xdd0757){(_0xdd0757=this['_cloneOperation'](_0xdd0757,this['_idsRoots']))['_execute']();const _0x3f8227=null===_0xdd0757['_authorId']?null:_0xdd0757['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x52c7f1=_0xdd0757['getMovedRangeStart'](),_0x408b33=_0x52c7f1['parent'],_0x1112d3=_0x52c7f1['offset'];!function _0xaed3db(_0x564e73,_0xba77aa,_0x338c44,_0x5added){for(let _0x57b5f8=_0x338c44;_0x57b5f8<_0x5added;_0x57b5f8++){const _0x419ff7=_0xba77aa['getChild'](_0x57b5f8);_0x419ff7['is']('element','$text')?_0x564e73['set'](_0x419ff7['getAttribute']('vid'),{'userId':_0x3f8227}):(_0x564e73['set'](_0x419ff7['getAttribute']('vid_start'),{'userId':_0x3f8227}),_0xaed3db(_0x564e73,_0x419ff7,0x0,_0x419ff7['childCount']),_0x564e73['set'](_0x419ff7['getAttribute']('vid_end'),{'userId':_0x3f8227}));}}(this['_touched'],_0x408b33,_0x1112d3,_0x1112d3+_0xdd0757['howMany']);}['_handleMergeOperation'](_0x1ecfc0){const _0x5ebdc7=null===(_0x1ecfc0=this['_cloneOperation'](_0x1ecfc0,this['_idsRoots']))['_authorId']?null:_0x1ecfc0['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x1bd841=_0x1ecfc0['targetPosition']['parent'],_0x410582=_0x1ecfc0['sourcePosition']['parent'],_0x25b5af=_0x1bd841['getAttribute']('vid_end'),_0x2a0f24=_0x410582['getAttribute']('vid_start');_0x1bd841['_setAttribute']('vid_end',_0x410582['getAttribute']('vid_end')),_0x410582['_setAttribute']('vid_end',_0x25b5af),this['_touched']['set'](_0x2a0f24,{'userId':_0x5ebdc7}),this['_touched']['set'](_0x25b5af,{'userId':_0x5ebdc7}),_0x1ecfc0['_execute']();}['_handleSplitOperation'](_0x23ecff){const _0x1f7d7a=null===(_0x23ecff=this['_cloneOperation'](_0x23ecff,this['_idsRoots']))['_authorId']?null:_0x23ecff['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x296e28=_0x23ecff['graveyardPosition'],_0x394106=_0x23ecff['splitPosition']['parent'];_0x23ecff['_execute']();const _0x4f3f94=_0x394106['getAttribute']('vid_end'),_0x16f0be=_0x23ecff['insertionPosition']['nodeAfter'];if(_0x296e28){const _0x23e3a3=_0x16f0be['getAttribute']('vid_end'),_0x3b53a9=_0x394106['getAttribute']('vid_end');_0x394106['_setAttribute']('vid_end',_0x23e3a3),_0x16f0be['_setAttribute']('vid_end',_0x3b53a9),this['_touched']['set'](_0x394106['getAttribute']('vid_end'),{'userId':_0x1f7d7a}),this['_touched']['set'](_0x16f0be['getAttribute']('vid_start'),{'userId':_0x1f7d7a});}else{const _0x2565c5=this['_revisionId']++,_0x5ab9ba=this['_revisionId']++;_0x394106['_setAttribute']('vid_end',_0x2565c5),_0x16f0be['_setAttribute']('vid_start',_0x5ab9ba),_0x16f0be['_setAttribute']('vid_end',_0x4f3f94),this['_touched']['set'](_0x2565c5,{'userId':_0x1f7d7a}),this['_touched']['set'](_0x5ab9ba,{'userId':_0x1f7d7a});}}['_handleMarkerOperation'](_0x316908){if(!_0x316908['affectsData'])return;const _0x57e868=(_0x316908=this['_cloneOperation'](_0x316908,this['_diffRoots']))['oldRange']?_0x316908['oldRange']['root']:null,_0x2038b2=_0x316908['newRange']?_0x316908['newRange']['root']:null;_0x57e868&&this['_markers']['delete'](_0x316908['name']),_0x2038b2&&this['_markers']['set'](_0x316908['name'],_0x316908['newRange']['clone']());const _0x5032a8=null===_0x316908['_authorId']?null:_0x316908['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0x132617=_0x316908['name'];if(!this['_touchedMarkers']['has'](_0x132617))return void this['_touchedMarkers']['set'](_0x132617,{'range':_0x316908['oldRange'],'userId':_0x5032a8});const _0x56ec41=this['_touchedMarkers']['get'](_0x132617),_0x52756e=_0x56ec41['range'],_0x374835=_0x316908['newRange'];null==_0x52756e&&null==_0x374835||_0x52756e&&_0x374835&&_0x52756e['isEqual'](_0x374835)?this['_touchedMarkers']['delete'](_0x316908['name']):_0x56ec41['userId']=_0x5032a8;}['_handleRootOperation'](_0x13cdab,_0x5e7c73){this['_diffRoots']['has'](_0x13cdab['rootName'])?this['_diffRoots']['get'](_0x13cdab['rootName'])['_isAttached']=_0x13cdab['isAdd']:(this['_diffRoots']['set'](_0x13cdab['rootName'],B(_0x13cdab['rootName'],!0x0)),this['_diffRootsAttributes']['set'](_0x13cdab['rootName'],{}),_0x5e7c73&&this['_idsRoots']['set'](_0x13cdab['rootName'],B(_0x13cdab['rootName'],!0x0)));const _0x402d03=null===_0x13cdab['_authorId']?null:_0x13cdab['_authorId']||this['editor']['plugins']['get']('Users')['me']['id'],_0xbed346=this['_touchedRoots']['get'](_0x13cdab['rootName']);_0xbed346&&_0xbed346['userId']===_0x402d03?this['_touchedRoots']['delete'](_0x13cdab['rootName']):this['_touchedRoots']['set'](_0x13cdab['rootName'],{'userId':_0x402d03,'isAttached':_0x13cdab['isAdd']});}['_handleRootAttributeOperation'](_0x18592d){const _0x250c69=this['_diffRootsAttributes']['get'](_0x18592d['root']['rootName']);null===_0x18592d['newValue']?delete _0x250c69[_0x18592d['key']]:_0x250c69[_0x18592d['key']]=_0x18592d['newValue'];}}function F(_0x11b8ea){const _0x2ef9d7=B(_0x11b8ea['rootName'],_0x11b8ea['isAttached']());for(const _0x75488d of _0x11b8ea['getChildren']()){const _0x52bf30=_0x75488d['_clone'](!0x0);_0x2ef9d7['_appendChild'](_0x52bf30);}return _0x2ef9d7;}function B(_0x9fb570,_0x3869a6=!0x0){const _0x5e70b2=new mt();return _0x5e70b2['rootName']=_0x9fb570,_0x5e70b2['_isAttached']=_0x3869a6,_0x5e70b2['isAttached']=()=>_0x5e70b2['_isAttached'],_0x5e70b2;}function J(_0x4bd730,_0x428df8,_0x2b3ee5){const _0x132758='elementEnd'==_0x4bd730['type']?_0x2b3ee5['createPositionAt'](_0x4bd730['item'],'end'):_0x2b3ee5['createPositionBefore'](_0x4bd730['item']);return _0x2b3ee5['createPositionFromPath'](_0x428df8,_0x132758['path'],_0x132758['stickiness']);}function q(_0x474839,_0x4de589,_0x2d5f34){const _0x31752e='elementStart'==_0x474839['type']?_0x2d5f34['createPositionAt'](_0x474839['item'],0x0):_0x2d5f34['createPositionAfter'](_0x474839['item']);return _0x2d5f34['createPositionFromPath'](_0x4de589,_0x31752e['path'],_0x31752e['stickiness']);}class hs extends ts{['focusTracker'];['keystrokes'];['revisionNameInputView'];constructor(_0x4f8aa3,_0x20786e){super(_0x4f8aa3),this['focusTracker']=new _0x4a9bb6(),this['keystrokes']=new _0x3473af(),this['set']('revisionNameInputValue',''),this['revisionNameInputView']=this['_createRevisionNameInput'](_0x20786e),this['setTemplate']({'tag':'form','attributes':{'class':['ck','ck-revision-history-save-revision-form','ck-responsive-form'],'tabindex':'-1'},'children':[this['revisionNameInputView']]}),_0x5ed148(this);}['render'](){super['render'](),_0x5a4d0c({'view':this}),this['focusTracker']['add'](this['revisionNameInputView']['element']),this['keystrokes']['listenTo'](this['element']);const _0x10eef7=_0x1ed4e4=>_0x1ed4e4['stopPropagation']();this['keystrokes']['set']('arrowright',_0x10eef7),this['keystrokes']['set']('arrowleft',_0x10eef7),this['keystrokes']['set']('arrowup',_0x10eef7),this['keystrokes']['set']('arrowdown',_0x10eef7);}['focus'](){this['revisionNameInputView']['focus']();}get['revisionName'](){return this['revisionNameInputView']['fieldView']['element']['value']['trim']();}set['revisionName'](_0x2a69aa){this['revisionNameInputView']['fieldView']['element']['value']=_0x2a69aa['trim']();}['reset'](){this['revisionNameInputView']['fieldView']['element']['value']='',this['revisionNameInputView']['errorText']=null;}['_createRevisionNameInput'](_0x5b3ebc){const _0x5337c7=new _0x5eff68(this['locale'],_0x1f1f1e),_0x57919b=_0x5337c7['fieldView'];_0x57919b['extendTemplate']({'attributes':{'maxlength':'220'}});let _0x3552d8=R(this['locale'],'Name\x20of\x20the\x20revision');return!_0x5b3ebc&&(_0x3552d8+='\x20('+R(this['locale'],'optional')+')'),(_0x5337c7['label']=_0x3552d8,_0x57919b['on']('input',()=>{this['revisionNameInputValue']=_0x57919b['element']['value']['trim']();}),_0x5337c7);}}class u extends _0x39b81a{static get['pluginName'](){return'RevisionHistoryUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l];}['_saveRevisionFormView'];['init'](){const _0x1f476d=this['editor'],_0x2d27c5=_0x1f476d['plugins']['get']('RevisionTracker');_0x1f476d['ui']['componentFactory']['add']('revisionHistory',_0x1ace41=>{const _0x3f563d=_0x5533af(_0x1ace41),_0x798313=_0x3f563d['panelView']['children'],_0x2c257b=new _0x5d810d(_0x1ace41),_0x530d1d=new _0x426f41(_0x1ace41),_0xdb6f27=new te(_0x1ace41),_0x15e3e0=new _0x426f41(_0x1ace41),_0x6a8559=new te(_0x1ace41);return _0x3f563d['bind']('isEnabled')['to'](_0x2d27c5,'isReady',_0x2d27c5,'isEnabled',_0x1f476d,'isReadOnly',(_0x59c461,_0x4bb232,_0x3f4ae0)=>_0x59c461&&_0x4bb232&&!_0x3f4ae0),_0x3f563d['buttonView']['set']({'icon':_0x590976['history'],'label':R(_0x1ace41,'Revision\x20history'),'tooltip':!0x0}),_0xdb6f27['set']({'label':R(_0x1ace41,'Save\x20current\x20revision'),'withText':!0x0,'role':'menuitem'}),_0xdb6f27['bind']('isEnabled')['to'](_0x2d27c5,'isReady',_0x2d27c5,'isEnabled',_0x1f476d,'isReadOnly',(_0xbec17d,_0x332e7b,_0x6afea)=>_0xbec17d&&_0x332e7b&&!_0x6afea),_0xdb6f27['on']('execute',()=>this['_showDialog']()),_0x6a8559['set']({'label':R(_0x1ace41,'Open\x20revision\x20history'),'withText':!0x0,'role':'menuitem'}),_0x6a8559['bind']('isEnabled')['to'](_0x2d27c5,'isReady',_0x1f476d,'isReadOnly',(_0x5bd9ac,_0x55174d)=>_0x5bd9ac&&!_0x55174d),_0x6a8559['on']('execute',()=>{_0x1f476d['config']['get']('revisionHistory')['showRevisionViewerCallback'](),_0x3f563d['isOpen']=!0x1,_0x1f476d['editing']['view']['focus']();}),_0x530d1d['children']['add'](_0xdb6f27),_0x15e3e0['children']['add'](_0x6a8559),_0x2c257b['role']='menu',_0x2c257b['items']['addMany']([_0x530d1d,_0x15e3e0]),_0x798313['add'](_0x2c257b),_0x3f563d;}),_0x1f476d['ui']['componentFactory']['add']('menuBar:revisionHistory',()=>this['_registerMenuComponent']());}['_registerMenuComponent'](){const _0x14a645=this['editor'],_0x47a60e=_0x14a645['locale'],_0x2029be=new _0x37a145(_0x47a60e),_0x2a3476=new _0x84f804(_0x47a60e);_0x2029be['buttonView']['set']({'icon':_0x590976['history'],'label':R(_0x47a60e,'Revision\x20history')});const _0x241f65=new _0x590f6a(_0x47a60e,_0x2029be),_0x5dc668=new _0x40881e(_0x47a60e);_0x5dc668['set']({'label':R(_0x47a60e,'Save\x20current\x20revision')}),_0x5dc668['delegate']('execute')['to'](_0x2029be),_0x5dc668['on']('execute',()=>{this['_showDialog']();}),_0x241f65['children']['add'](_0x5dc668),_0x2a3476['items']['add'](_0x241f65);const _0x1841ca=new _0x590f6a(_0x47a60e,_0x2029be),_0x277962=new _0x40881e(_0x47a60e);return _0x277962['set']({'label':R(_0x47a60e,'Open\x20revision\x20history')}),_0x277962['delegate']('execute')['to'](_0x2029be),_0x277962['on']('execute',()=>{_0x14a645['config']['get']('revisionHistory')['showRevisionViewerCallback']();}),_0x1841ca['children']['add'](_0x277962),_0x2a3476['items']['add'](_0x1841ca),_0x2029be['panelView']['children']['add'](_0x2a3476),_0x2029be;}['_showDialog'](){const _0x591aa6=this['editor'],_0x514a1f=_0x591aa6['locale'],_0x53d6a9=_0x591aa6['plugins']['get']('Dialog'),_0x3aabc5=_0x591aa6['plugins']['get']('RevisionTracker');function _0x77215c(_0xfe3d4f){_0x591aa6['config']['get']('revisionHistory.requireRevisionName')&&''===_0xfe3d4f['revisionName']?_0xfe3d4f['revisionNameInputView']['errorText']=R(_0x514a1f,'The\x20revision\x20name\x20cannot\x20be\x20empty.'):(_0x591aa6['plugins']['get'](l)['saveRevision']({'name':_0xfe3d4f['revisionName']}),_0x53d6a9['hide']());}this['_saveRevisionFormView']||(this['_createSaveRevisionFormView'](),this['_saveRevisionFormView']['on']('submit',()=>_0x77215c(this['_saveRevisionFormView']))),this['_saveRevisionFormView']['reset'](),_0x53d6a9['show']({'id':'revisionSave','title':R(_0x514a1f,'Save\x20current\x20revision'),'isModal':!0x0,'content':this['_saveRevisionFormView'],'actionButtons':[{'label':R(_0x591aa6['locale'],'Cancel'),'withText':!0x0,'onExecute':()=>_0x53d6a9['hide']()},{'label':R(_0x591aa6['locale'],'Accept'),'class':'ck-button-action','withText':!0x0,'onCreate'(_0x1d2332){_0x1d2332['bind']('isEnabled')['to'](_0x3aabc5,'isReady',_0x3aabc5,'isEnabled',_0x591aa6,'isReadOnly',(_0x43c797,_0x242e80,_0x2719c9)=>_0x43c797&&_0x242e80&&!_0x2719c9);},'onExecute':()=>_0x77215c(this['_saveRevisionFormView'])}]});}['_createSaveRevisionFormView'](){const _0x557c81=this['editor'],_0x4c7599=_0x557c81['locale'];this['_saveRevisionFormView']=new hs(_0x4c7599,_0x557c81['config']['get']('revisionHistory.requireRevisionName')),this['_saveRevisionFormView']['render']();}}class Y extends ts{['changeId'];['_model'];constructor(_0x448cfb,_0xb442b3){super(_0x448cfb),this['_model']=_0xb442b3,this['changeId']=_0xb442b3['id'];const _0x48fb10=this['bindTemplate'],_0x459d19=R(_0x448cfb,_0xb442b3['data']['isSuggestion']?'Suggested\x20by':'add'==_0xb442b3['type']?'Added\x20by':'Removed\x20by');this['set']('type',_0xb442b3['type']),this['setTemplate']({'tag':'div','attributes':{'class':['ck-annotation','ck-revision-change',_0x48fb10['to']('type',_0x182f59=>'ck-revision-change__'+_0x182f59)],'tabindex':-0x1},'children':[{'tag':'span','children':[{'tag':'span','attributes':{'class':['ck-revision-change__label']},'children':[{'text':_0x459d19}]},{'text':'\x20'+_0xb442b3['author']['name']}]}]});}['focus'](){this['element']['focus']();}}class r extends/* #__PURE__ -- @preserve */
|
|
25
|
+
_0x3cf027(){['id'];['author'];['type'];['data'];['rootName'];constructor(_0xc8ed8){super(),this['id']=_0xc8ed8['id']||_0x4834e8(),this['author']=_0xc8ed8['author'],this['type']=_0xc8ed8['type'],this['data']=_0xc8ed8['data']||{},this['rootName']=_0xc8ed8['rootName'],this['set']('createdAt',_0xc8ed8['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(_0x37e6f9,_0x3c0fd1){this['newRevisionId']=_0x37e6f9,this['oldRevisionId']=_0x3c0fd1,this['changes']=new _0x5c9475();}['_setChanges'](_0x492ebb){for(const _0x221e50 of _0x492ebb)this['changes']['add'](_0x221e50);}}const Z={'c':_0x300b3b,'a':_0x5596fe,'e':_0x5e2c99,'r':_0x5ae857,'u':_0x60da44};class d extends _0x39b81a{['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[_0x41312b,_0xe657c7,j];}constructor(_0x4eaf80){super(_0x4eaf80),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',(_0x49d457,_0x1b1e70,_0x24172b)=>{this['activeChange']=null,this['activeView']=null,this['editor']['editing']['view']['change'](_0x2427ea=>{for(const _0x13266c of this['editor']['editing']['view']['document']['roots'])_0x24172b?_0x2427ea['removeClass']('ck-editor__editable__overlay',_0x13266c):_0x2427ea['addClass']('ck-editor__editable__overlay',_0x13266c);});}),this['bind']('isNavigationMode')['to'](this,'activeChange',_0x2ceb8c=>null!==_0x2ceb8c),this['bind']('currentChangeNumber')['to'](this,'isReady',this,'diff',this,'activeChange',(_0x430d78,_0x27fcc7,_0x5b204a)=>_0x430d78&&_0x5b204a?_0x27fcc7['changes']['getIndex'](_0x5b204a):0x0),this['bind']('numberOfChanges')['to'](this,'isReady',this,'diff',(_0x3e2aee,_0x465bd5)=>_0x3e2aee?_0x465bd5['changes']['length']:0x0),this['_changeView']=null,this['_changeIdToChange']=new Map(),this['adapter']=null,this['_balloon']=this['editor']['plugins']['get'](_0xe657c7);}['init'](){const _0x5568b0=this['editor'],_0xaa5b11=new yt(_0x5568b0,{'direction':'backward'}),_0x49ec00=new yt(_0x5568b0,{'direction':'forward'});(_0x5568b0['commands']['add']('showPreviousChange',_0xaa5b11),_0x5568b0['commands']['add']('showNextChange',_0x49ec00),_0x5568b0['commands']['add']('restoreRevision',new _t(_0x5568b0)),this['on']('change:numberOfChanges',()=>{_0xaa5b11['refresh'](),_0x49ec00['refresh']();}),this['_setConversion'](),this['_initInteractions'](),_0x5568b0['enableReadOnlyMode']('revision-viewer'),_0x5568b0['plugins']['has']('WidgetToolbarRepository'))&&_0x5568b0['plugins']['get']('WidgetToolbarRepository')['forceDisabled']('revision-viewer');}async['getRevisionData'](_0xafe7b1){await this['loadRevisionData'](_0xafe7b1);const _0x4d6ddf={};for(const _0x471ac3 in _0xafe7b1['diffData']){if(_0xafe7b1['diffData'][_0x471ac3]['attachChange']&&!_0xafe7b1['diffData'][_0x471ac3]['attachChange']['isAttached'])continue;const _0x52eb97=this['_removeRevisionMarkers'](JSON['parse'](_0xafe7b1['diffData'][_0x471ac3]['insertions'])),_0x241941=this['editor']['editing']['view']['document'],_0x53cbe9=new _0x3bd259(_0x241941,_0x52eb97['map'](_0x34e2e0=>this['_getViewObj'](_0x34e2e0)));this['editor']['data']['processor']['useFillerType']('marked'),_0x4d6ddf[_0x471ac3]=this['editor']['data']['processor']['toData'](_0x53cbe9),this['editor']['data']['processor']['useFillerType']('default');}return _0x4d6ddf;}async['getRevisionRootsAttributes'](_0x20a678){await this['loadRevisionData'](_0x20a678);const _0x3c36b0={};for(const _0x4a2648 in _0x20a678['diffData'])_0x20a678['diffData'][_0x4a2648]['attachChange']&&!_0x20a678['diffData'][_0x4a2648]['attachChange']['isAttached']||(_0x3c36b0[_0x4a2648]=_0x20a678['diffData'][_0x4a2648]['attributesAfter']||{});return _0x3c36b0;}['_removeRevisionMarkers'](_0x653f6d){return(_0x653f6d=_0x653f6d['filter'](_0x2d02ac=>!_0x2d02ac['name']||'revision-start'!==_0x2d02ac['name']&&'revision-end'!==_0x2d02ac['name']))['forEach'](_0x27e092=>{'string'!=typeof _0x27e092&&(_0x27e092['children']=this['_removeRevisionMarkers'](_0x27e092['children']),_0x27e092['attributes']=_0x27e092['attributes']['filter'](_0x5f2ff0=>!_0x5f2ff0[0x0]['startsWith']('data-revision-')));}),_0x653f6d;}async['compare'](_0x5ecb5c,_0x4d04fb,_0x10fb4b=!0x1){if(!this['isEnabled'])return;const _0x45d160=this['diff'],_0x55f038=this['repository'],_0x2fca15='string'==typeof _0x5ecb5c?_0x55f038['getRevision'](_0x5ecb5c):_0x5ecb5c,_0x4c9cbb='string'==typeof _0x4d04fb?_0x55f038['getRevision'](_0x4d04fb):_0x4d04fb,_0xcf87e1=_0x2fca15['id'],_0x45bb20=_0x4c9cbb?_0x4c9cbb['id']:null;if(!_0x10fb4b&&this['diff']&&this['diff']['newRevisionId']===_0xcf87e1&&this['diff']['oldRevisionId']===_0x45bb20)return Promise['resolve']();this['isReady']=!0x1,this['activeView']=null,this['activeChange']=null,this['diff']=new f(_0xcf87e1,_0x45bb20);const _0x4d0c6b=this['_getRevisionsRange'](_0x2fca15,_0x4c9cbb,!0x0)['map'](_0x2e2ffa=>this['loadRevisionData'](_0x2e2ffa));return _0x4d0c6b['push'](new Promise(_0x2dcf76=>{setTimeout(_0x2dcf76,0x14);})),Promise['all'](_0x4d0c6b)['then'](()=>{if(!this['isEnabled'])return;this['_cleanUp']();const _0x2f26d6=this['_getDiff'](_0xcf87e1,_0x45bb20);for(const _0x282a91 of _0x2f26d6['changes'])this['_changeIdToChange']['set'](_0x282a91['id'],_0x282a91);this['editor']['model']['enqueueChange']({'isUndoable':!0x1},_0x558488=>{for(const _0x1f4b60 of this['editor']['model']['document']['getRootNames']())_0x558488['detachRoot'](_0x1f4b60);for(const _0x42b799 of Object['keys'](_0x2f26d6['model'])){const _0x423414=_0x558488['addRoot'](_0x42b799);for(const _0xa38fb4 of Object['keys'](_0x2f26d6['attributes'][_0x42b799]))_0x558488['setAttribute'](_0xa38fb4,_0x2f26d6['attributes'][_0x42b799][_0xa38fb4],_0x423414);_0x558488['insert'](_0x2f26d6['model'][_0x42b799],_0x423414,0x0);}}),this['diff']['_setChanges'](this['_sortAndFilterDiffChanges'](_0x2f26d6['changes'])),this['isReady']=!0x0;})['catch'](_0x2833d8=>{console['error'](_0x2833d8),this['_cleanUp'](),_0x45d160&&(this['diff']=_0x45d160),this['isReady']=!0x0;});}['addRevisionData'](_0x462c47,_0x2d62d8){const _0x14fb75=this['repository']['createRevision'](_0x462c47);return _0x14fb75['on']('_update',(_0x57a4ab,_0xfdf8a,_0x2ea14f)=>_0x2d62d8(_0xfdf8a,_0x2ea14f,_0x14fb75)),this['repository']['addRevision'](_0x14fb75),_0x14fb75;}['loadRevisionData'](_0xf6b6cf){if(!_0xf6b6cf||_0xf6b6cf['diffData'])return Promise['resolve']();{const _0x44d7f3=this['editor']['config']['get']('collaboration.channelId');return this['adapter']['getRevision']({'channelId':_0x44d7f3,'revisionId':_0xf6b6cf['id']})['then'](_0x26002c=>{_0xf6b6cf['_update']({'diffData':_0x26002c['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},_0xa9f232=>{for(const _0x2d60dd of this['editor']['model']['document']['getRootNames']())_0xa9f232['detachRoot'](_0x2d60dd);});}['_sortAndFilterDiffChanges'](_0x485cb1){const _0x12e592=[],_0x1dad0a=new Map();for(const _0x25d379 of this['editor']['model']['document']['getRootNames']()){const _0x2825c9=this['editor']['editing']['view']['getDomRoot'](_0x25d379);if(!_0x2825c9)continue;const _0x371743=_0x2825c9['getClientRects']()['item'](0x0);_0x371743&&(_0x12e592['push'](_0x25d379),_0x1dad0a['set'](_0x25d379,_0x371743));}return _0x12e592['sort']((_0x4b82c7,_0x146876)=>{const _0x2f4507=_0x1dad0a['get'](_0x4b82c7),_0x1a8995=_0x1dad0a['get'](_0x146876);return _0x2f4507['y']-_0x1a8995['y']||_0x2f4507['x']-_0x1a8995['x'];}),(_0x485cb1=_0x485cb1['filter'](_0x5dd977=>_0x12e592['includes'](_0x5dd977['rootName'])))['sort']((_0x58ddc9,_0x4eafd8)=>_0x12e592['indexOf'](_0x58ddc9['rootName'])-_0x12e592['indexOf'](_0x4eafd8['rootName'])),_0x485cb1;}['_makeTape'](_0x58987a){const _0x40a9c0=Array['from'](_0x58987a['markers'])['filter'](([_0x41e973,_0x44bca9])=>_0x41e973['startsWith']('revision:')&&!_0x44bca9['isCollapsed']),_0x43fe06=Array['from'](this['editor']['model']['createRangeIn'](_0x58987a)['getWalker']({'singleCharacters':!0x0}));if(0x0!=_0x40a9c0['length'])for(const _0x497d8e of _0x43fe06){const [_0x4ed187,_0x6347d8]=_0x40a9c0[0x0],[,_0x42c369,_0x24d4ee]=_0x4ed187['split'](':');if(_0x6347d8['end']['isEqual'](_0x497d8e['nextPosition'])&&_0x40a9c0['shift'](),(_0x497d8e['previousPosition']['isEqual'](_0x6347d8['start'])||_0x497d8e['previousPosition']['isAfter'](_0x6347d8['start']))&&('insertion'==_0x42c369?_0x497d8e['isAdded']={'userId':_0x24d4ee}:'deletion'==_0x42c369&&(_0x497d8e['isRemoved']={'userId':_0x24d4ee})),0x0==_0x40a9c0['length'])break;}return _0x43fe06;}['_refreshStartEndIndex'](_0x3611ac){const _0x40f2c3=new Map();for(let _0x57d84c=0x0;_0x57d84c<_0x3611ac['length'];_0x57d84c++)'text'===_0x3611ac[_0x57d84c]['type']?(_0x3611ac[_0x57d84c]['item']['startIndex']=_0x57d84c,_0x3611ac[_0x57d84c]['item']['endIndex']=_0x57d84c):('elementStart'===_0x3611ac[_0x57d84c]['type']?_0x3611ac[_0x57d84c]['item']['startIndex']=_0x57d84c:'elementEnd'===_0x3611ac[_0x57d84c]['type']&&(_0x3611ac[_0x57d84c]['item']['endIndex']=_0x57d84c),_0x40f2c3['set'](_0x3611ac[_0x57d84c]['id'],_0x57d84c));for(const _0x120fd9 of _0x40f2c3['values']())'elementStart'===_0x3611ac[_0x120fd9]['type']?_0x3611ac[_0x120fd9]['item']['endIndex']=_0x40f2c3['get'](_0x3611ac[_0x120fd9]['pairId']):'elementEnd'===_0x3611ac[_0x120fd9]['type']&&(_0x3611ac[_0x120fd9]['item']['startIndex']=_0x40f2c3['get'](_0x3611ac[_0x120fd9]['pairId']));}['_processTape'](_0x2f1ad0){for(let _0x3a8e78=0x0;_0x3a8e78<_0x2f1ad0['length'];_0x3a8e78++){if('elementStart'===_0x2f1ad0[_0x3a8e78]['type'])_0x2f1ad0[_0x3a8e78]['item']['startIndex']=_0x3a8e78;else{if('elementEnd'===_0x2f1ad0[_0x3a8e78]['type']){_0x2f1ad0[_0x3a8e78]['item']['endIndex']=_0x3a8e78;const _0x9bf3c0=_0x2f1ad0[_0x3a8e78]['item']['startIndex'];_0x2f1ad0[_0x9bf3c0]['pairId']=_0x2f1ad0[_0x3a8e78]['id'],_0x2f1ad0[_0x3a8e78]['pairId']=_0x2f1ad0[_0x9bf3c0]['id'];}else _0x2f1ad0[_0x3a8e78]['item']['startIndex']=_0x3a8e78,_0x2f1ad0[_0x3a8e78]['item']['endIndex']=_0x3a8e78,_0x2f1ad0[_0x3a8e78]['pairId']=null;}_0x2f1ad0[_0x3a8e78]['markersStart']||(_0x2f1ad0[_0x3a8e78]['markersStart']=[],_0x2f1ad0[_0x3a8e78]['markersEnd']=[]);}}['_markInsertions'](_0x55e786,_0x88009d){const _0x4187c9=_0x55e786['filter'](_0xefe8fb=>!_0xefe8fb['isAdded']);for(let _0x203d5e=0x0;_0x203d5e<_0x88009d['length'];_0x203d5e++)_0x88009d[_0x203d5e]['isAdded']&&(_0x4187c9[_0x203d5e]['isAdded']=_0x88009d[_0x203d5e]['isAdded']);}['_makeModelFromViewString'](_0x156587){const _0x20cbfe=JSON['parse'](_0x156587),_0x7ac585=this['editor']['editing']['view']['document'],_0x17e117=new _0x3bd259(_0x7ac585,_0x20cbfe['map'](_0x5e28a4=>this['_getViewObj'](_0x5e28a4)));return this['editor']['data']['toModel'](_0x17e117);}['_getViewObj'](_0x3e1cdb){const _0x21c202=this['editor']['editing']['view']['document'];if('string'==typeof _0x3e1cdb)return new _0x3c17b8(_0x21c202,_0x3e1cdb);{const _0x19ca80=_0x3e1cdb['children']['map'](_0x1591bd=>this['_getViewObj'](_0x1591bd));return new(Z[_0x3e1cdb['type']]||_0x20d11f)(_0x21c202,_0x3e1cdb['name'],_0x3e1cdb['attributes'],_0x19ca80);}}['_getDiff'](_0x5728b3,_0x252b0e=null){const _0x19f1b7=this['repository']['getRevision'](_0x5728b3),_0x491f5b=_0x252b0e?this['repository']['getRevision'](_0x252b0e):null,_0x2d890f=this['_getRevisionsRange'](_0x19f1b7,_0x491f5b),_0x4e4072=_0x2d890f[_0x2d890f['length']-0x1],_0x4995dd=new Map(),_0x12f116={'model':{},'attributes':{},'changes':[]},_0x376dbb=new Set(),_0x26ce6b=new Map();for(let _0x14c839=_0x2d890f['length']-0x1;_0x14c839>=0x0;_0x14c839--){const _0x44c779=_0x2d890f[_0x14c839];for(const _0x58025b of Object['keys'](_0x44c779['diffData']))if(_0x44c779['diffData'][_0x58025b]['attachChange']){const _0x54064d=_0x44c779['diffData'][_0x58025b]['attachChange'];_0x54064d['isAttached']?(_0x376dbb['add'](_0x58025b),_0x26ce6b['has'](_0x58025b)&&_0x26ce6b['get'](_0x58025b)['userId']==_0x54064d['userId']?_0x26ce6b['delete'](_0x58025b):_0x26ce6b['set'](_0x58025b,_0x54064d)):_0x26ce6b['has'](_0x58025b)?(_0x376dbb['delete'](_0x58025b),_0x26ce6b['delete'](_0x58025b)):(_0x376dbb['add'](_0x58025b),_0x26ce6b['set'](_0x58025b,_0x54064d));}else _0x376dbb['add'](_0x58025b);}for(const _0x25dba3 of _0x376dbb){const _0xb3ed46=_0x26ce6b['has'](_0x25dba3)&&!_0x26ce6b['get'](_0x25dba3)['isAttached'];let _0x30a525=_0xb3ed46?_0x2d890f['length']-0x1:0x0;const _0x4be327=_0xb3ed46?-0x1:0x1;for(;_0x2d890f[_0x30a525];){const _0x3dd250=_0x2d890f[_0x30a525];if(_0x3dd250['diffData'][_0x25dba3]){const _0x3787f2=_0xb3ed46?_0x3dd250['diffData'][_0x25dba3]['attributesBefore']:_0x3dd250['diffData'][_0x25dba3]['attributesAfter'];_0x12f116['attributes'][_0x25dba3]=_0x3787f2?_0x3bf4ba(_0x3787f2):{};break;}_0x30a525+=_0x4be327;}}for(const _0x1d75e5 of _0x2d890f){_0x1d75e5['model']={};for(const _0x1d93f7 of _0x1d75e5['authors'])_0x4995dd['set'](_0x1d93f7['id'],_0x1d93f7);for(const _0x2d0ee0 of _0x376dbb){const _0x16818c=_0x1d75e5['diffData'][_0x2d0ee0]?_0x1d75e5['diffData'][_0x2d0ee0]['insertions']:'[]',_0x32c821=_0x1d75e5['diffData'][_0x2d0ee0]?_0x1d75e5['diffData'][_0x2d0ee0]['deletions']:'[]';_0x1d75e5['model'][_0x2d0ee0]={'insertions':this['_makeModelFromViewString'](_0x16818c),'deletions':this['_makeModelFromViewString'](_0x32c821)};}}for(const _0x41a7c0 of _0x376dbb){let _0x2e4889=null,_0x372d11=0x0;const _0x1a3448=new Map(Array['from'](_0x19f1b7['model'][_0x41a7c0]['insertions']['markers'])['filter'](([_0x50d442])=>!_0x50d442['startsWith']('revision:')));let _0x9b1b0a=0x0;for(const _0x1f0659 of _0x2d890f){const _0x33d858=this['_makeTape'](_0x1f0659['model'][_0x41a7c0]['insertions']);_0x1f0659==_0x19f1b7?(_0x2e4889=_0x33d858,_0x372d11=_0x2e4889['length'],_0x2e4889['forEach'](_0x2e9c0e=>{_0x2e9c0e['id']=_0x9b1b0a++;}),this['_processTape'](_0x2e4889)):this['_markInsertions'](_0x2e4889,_0x33d858);const _0x2c523f=_0x2e4889['filter'](_0x510474=>!_0x510474['isAdded'])['map'](_0x6c800b=>_0x6c800b['id']);let _0x1e333e=0x0;const _0x18aad2=this['_makeTape'](_0x1f0659['model'][_0x41a7c0]['deletions']);_0x18aad2['forEach'](_0x13eb19=>{_0x13eb19['isRemoved']?_0x13eb19['id']=_0x372d11++:_0x13eb19['id']=_0x2c523f[_0x1e333e++];}),this['_processTape'](_0x18aad2),this['_setDistance'](_0x2e4889,'isAdded'),this['_setDistance'](_0x18aad2,'isRemoved'),_0x1f0659==_0x19f1b7&&this['_markMarkers'](_0x2e4889,_0x1a3448),_0x2e4889=this['_joinTapes'](_0x2e4889,_0x18aad2),this['_refreshStartEndIndex'](_0x2e4889),this['_setDistance'](_0x2e4889,'isRemoved');}_0x2e4889=_0x2e4889['filter'](_0x54ffd7=>!(_0x54ffd7['isAdded']&&_0x54ffd7['isRemoved']));const _0x2ab4fc=new Map(_0x4e4072['model'][_0x41a7c0]['deletions']['markers']),_0x5e96e7=new Set(_0x1a3448['keys']());for(const _0x1d939a of _0x2ab4fc['keys']())_0x5e96e7['delete'](_0x1d939a);this['_markSuggestions'](_0x2e4889,_0x5e96e7),this['_fixObsoleteTags'](_0x2e4889),_0x2e4889=this['_removeMissingPairs'](_0x2e4889),_0x2e4889=this['_markMismatchedRemovedTags'](_0x2e4889),_0x2e4889=this['_removeUnsupportedChanges'](_0x2e4889);const {root:_0x1825bf,changes:_0x509e1b}=this['_makeModelFromTape'](_0x2e4889,_0x4995dd,_0x41a7c0);_0x12f116['model'][_0x41a7c0]=_0x1825bf;const _0x439df9=_0x26ce6b['get'](_0x41a7c0);if(_0x439df9){const _0x36225e=_0x4995dd['get'](_0x439df9['userId']),_0x407ff7=new r({'author':_0x36225e,'type':_0x439df9['isAttached']?'add':'remove','data':{'isOnRoot':!0x0},'createdAt':new Date(),'rootName':_0x41a7c0});_0x509e1b['unshift'](_0x407ff7),_0x12f116['attributes'][_0x41a7c0]['revisionHistoryAttachChange']=_0x407ff7['id'];}_0x12f116['changes']=_0x12f116['changes']['concat'](_0x509e1b);}return _0x12f116;}['_markMarkers'](_0x2455d8,_0x3d150c){for(let _0x25c55b=0x0;_0x25c55b<_0x2455d8['length'];_0x25c55b++)for(const [_0x3d6d60,_0x46e00a]of _0x3d150c)_0x46e00a['start']['isEqual'](_0x2455d8[_0x25c55b]['previousPosition'])&&_0x2455d8[_0x25c55b]['markersStart']['push'](_0x3d6d60),_0x46e00a['end']['isEqual'](_0x2455d8[_0x25c55b]['nextPosition'])&&_0x2455d8[_0x25c55b]['markersEnd']['push'](_0x3d6d60);}['_joinTapes'](_0x1bb416,_0xbb4d76){let _0x43ca9c=[],_0x61bbe0=0x0,_0x15e276=0x0;for(;_0x61bbe0<_0x1bb416['length']||_0x15e276<_0xbb4d76['length'];){const _0x4614f9=_0x1bb416[_0x61bbe0]||{},_0x3d9a37=_0xbb4d76[_0x15e276]||{};if(_0x4614f9['id']==_0x3d9a37['id'])_0x61bbe0++,_0x15e276++,_0x43ca9c['push'](_0x4614f9);else{if(_0x3d9a37['isRemoved']&&_0x4614f9['isAdded']){const {commonTape:_0x31645c,iEnd:_0x1c3b89,jEnd:_0x18787b}=this['_threeWayMerge'](_0x1bb416,_0x61bbe0,_0xbb4d76,_0x15e276);_0x43ca9c=_0x43ca9c['concat'](_0x31645c),_0x61bbe0=_0x1c3b89,_0x15e276=_0x18787b;}else _0x3d9a37['isRemoved']?(_0x15e276++,_0x43ca9c['push'](_0x3d9a37)):(_0x61bbe0++,_0x43ca9c['push'](_0x4614f9));}}return _0x43ca9c;}['_markSuggestions'](_0x2737ca,_0x3326a1){const _0x225c6d=[];for(let _0x33a023=0x0;_0x33a023<_0x2737ca['length'];_0x33a023++){for(let _0x4006eb=0x0;_0x4006eb<_0x2737ca[_0x33a023]['markersStart']['length'];_0x4006eb++){const _0x295dd8=_0x2737ca[_0x33a023]['markersStart'][_0x4006eb];if(!_0x3326a1['has'](_0x295dd8))continue;const {group:_0xa38e09,type:_0x467e63,authorId:_0x479e06}=_0x3bd3a4(_0x295dd8);'revision-suggestion'!=_0xa38e09||'insertion'!=_0x467e63&&'deletion'!=_0x467e63||(_0x225c6d['unshift']({'type':_0x467e63,'name':_0x295dd8,'userId':_0x479e06}),_0x2737ca[_0x33a023]['markersStart']['splice'](_0x4006eb,0x1),_0x4006eb--);}_0x2f0f8b(_0x2737ca[_0x33a023]);for(let _0x5c239b=0x0;_0x5c239b<_0x2737ca[_0x33a023]['markersEnd']['length'];_0x5c239b++){const _0x590090=_0x2737ca[_0x33a023]['markersEnd'][_0x5c239b];if(!_0x3326a1['has'](_0x590090))continue;const {group:_0x502d01,type:_0x272003}=_0x3bd3a4(_0x590090);if('revision-suggestion'!=_0x502d01||'insertion'!=_0x272003&&'deletion'!=_0x272003)continue;_0x2737ca[_0x33a023]['markersEnd']['splice'](_0x5c239b,0x1),_0x5c239b--;const _0x104db5=_0x225c6d['findIndex'](_0x15f460=>_0x15f460['name']==_0x590090);_0x104db5>-0x1&&_0x225c6d['splice'](_0x104db5,0x1);}}function _0x3bd3a4(_0x206011){const _0x57edab=_0x206011['split'](':');return{'group':_0x57edab[0x0],'type':_0x57edab[0x1],'subType':_0x57edab['length']>=0x5?_0x57edab[0x2]:null,'id':_0x57edab['length']<0x5?_0x57edab[0x2]:_0x57edab[0x3],'authorId':_0x57edab['length']<0x5?_0x57edab[0x3]:_0x57edab[0x4],'markerCount':0x6==_0x57edab['length']?_0x57edab[0x5]:null};}function _0x2f0f8b(_0x48ae9d){for(let _0x15395a=0x0;_0x15395a<_0x225c6d['length'];_0x15395a++){if(_0x48ae9d['isAdded']&&'insertion'==_0x225c6d[_0x15395a]['type'])return _0x48ae9d['isAddSuggestion']=_0x225c6d[_0x15395a],void delete _0x48ae9d['isAdded'];if(!_0x48ae9d['isAdded']&&!_0x48ae9d['isRemoved']&&'deletion'==_0x225c6d[_0x15395a]['type'])return void(_0x48ae9d['isRemoveSuggestion']=_0x225c6d[_0x15395a]);}}}['_setDistance'](_0x2c4cc6,_0x459c79){let _0x1b803f=0x0,_0x1b4fb8=!0x1;const _0x4d0ac5=new Map();for(const _0x28334a of _0x2c4cc6)_0x28334a[_0x459c79]?_0x1b4fb8&&(_0x1b803f++,_0x1b4fb8=!0x1):(_0x1b803f++,_0x1b4fb8=!0x0),_0x4d0ac5['set'](_0x28334a['id'],_0x1b803f);for(let _0x353efe=0x0;_0x353efe<_0x2c4cc6['length'];_0x353efe++){if('isRemoved'==_0x459c79&&_0x2c4cc6[_0x353efe]['isAdded']||'isAdded'==_0x459c79&&_0x2c4cc6[_0x353efe]['isRemoved'])continue;if('text'==_0x2c4cc6[_0x353efe]['type']){_0x2c4cc6[_0x353efe]['distance']=0x0;continue;}const _0x477a90=_0x4d0ac5['get'](_0x2c4cc6[_0x353efe]['pairId']),_0x53d0a8=_0x4d0ac5['get'](_0x2c4cc6[_0x353efe]['id']);_0x2c4cc6[_0x353efe]['distance']=_0x477a90-_0x53d0a8;}}['_getRevisionsRange'](_0xe07078,_0x4931e7,_0x345934=!0x1){const _0x27357a=[];let _0x233100=this['repository']['getIndex'](_0xe07078),_0x595e77=this['repository']['getIndex'](_0x4931e7);for(-0x1==_0x595e77&&(_0x595e77=this['repository']['_revisions']['length'],_0x345934=!0x1);_0x233100<_0x595e77;)_0x27357a['push'](this['repository']['getRevision'](_0x233100)),_0x233100++;return _0x345934&&_0x27357a['push'](this['repository']['getRevision'](_0x233100)),_0x27357a;}['_threeWayMerge'](_0x383718,_0x32bcb6,_0x4d31d7,_0x5e7d42){const _0x12041f=this['editor']['model']['schema'];let _0x424fca=_0x32bcb6;for(;_0x383718[_0x424fca]&&_0x383718[_0x424fca]['isAdded'];)_0x424fca++;let _0x6b6e34=_0x5e7d42;for(;_0x4d31d7[_0x6b6e34]&&_0x4d31d7[_0x6b6e34]['isRemoved'];)_0x6b6e34++;_0x16deb6(_0x383718,_0x32bcb6,_0x424fca),_0x16deb6(_0x4d31d7,_0x5e7d42,_0x6b6e34);const _0x8fca20=_0x4d31d7['slice'](_0x5e7d42,_0x6b6e34)['concat'](_0x383718['slice'](_0x32bcb6,_0x424fca));return _0x8fca20['sort']((_0x3e9dab,_0xc6ba06)=>_0x3e9dab['side']!=_0xc6ba06['side']?_0x3e9dab['side']-_0xc6ba06['side']:_0x3e9dab['level']!=_0xc6ba06['level']?_0x3e9dab['level']-_0xc6ba06['level']:_0x3e9dab['distance']!=_0xc6ba06['distance']?_0xc6ba06['distance']-_0x3e9dab['distance']:!!_0x3e9dab['isAdded']!=!!_0xc6ba06['isAdded']?-0x1==_0x3e9dab['side']||0x0==_0x3e9dab['side']?_0x3e9dab['isAdded']?-0x1:0x1:_0x3e9dab['isAdded']?0x1:-0x1:_0x3e9dab['index']-_0xc6ba06['index']),{'commonTape':_0x8fca20,'iEnd':_0x424fca,'jEnd':_0x6b6e34};function _0x16deb6(_0x1bb9e9,_0x58e0fe,_0x139ae8){let _0x5a3b54=-0x1,_0x53c9f8=Number['POSITIVE_INFINITY'],_0x1a9368=!0x0;for(let _0x56daf8=_0x58e0fe;_0x56daf8<_0x139ae8;_0x56daf8++)if(_0x12041f['isInline'](_0x1bb9e9[_0x56daf8]['item'])||(_0x1a9368=!0x1),_0x1bb9e9[_0x56daf8]['item']['startIndex']<_0x58e0fe&&(_0x5a3b54=_0x56daf8),_0x1bb9e9[_0x56daf8]['item']['endIndex']>=_0x139ae8){_0x53c9f8=_0x56daf8;break;}_0x1a9368&&(_0x5a3b54=_0x139ae8-0x1);for(let _0x15fdf4=_0x58e0fe;_0x15fdf4<_0x139ae8;_0x15fdf4++)_0x1bb9e9[_0x15fdf4]['side']=_0x15fdf4<=_0x5a3b54?-0x1:_0x15fdf4<_0x53c9f8?0x0:0x1,_0x1bb9e9[_0x15fdf4]['index']=_0x15fdf4;let _0x4b9824=0x0;for(let _0x485e97=_0x58e0fe;_0x485e97<=_0x5a3b54;_0x485e97++)0x0==_0x1bb9e9[_0x485e97]['distance']?_0x1bb9e9[_0x485e97]['level']=_0x4b9824:(_0x4b9824++,_0x1bb9e9[_0x485e97]['level']=_0x4b9824,_0x4b9824++);for(let _0x5966b1=_0x58e0fe;_0x5966b1<_0x139ae8;_0x5966b1++)0x0==_0x1bb9e9[_0x5966b1]['side']&&(_0x1bb9e9[_0x5966b1]['level']=_0x4b9824);_0x4b9824=0x0;for(let _0x448250=_0x139ae8-0x1;_0x448250>=_0x53c9f8;_0x448250--)0x0==_0x1bb9e9[_0x448250]['distance']?_0x1bb9e9[_0x448250]['level']=_0x4b9824:(_0x4b9824--,_0x1bb9e9[_0x448250]['level']=_0x4b9824,_0x4b9824--);}}['_fixObsoleteTags'](_0x1211d0){const _0xc9ef66=new Map(),_0x425d7b=this['editor']['model']['schema'];for(let _0x195cdf=0x1;_0x195cdf<_0x1211d0['length'];_0x195cdf++){let _0x1b594d,_0x3cf08c,_0x1384cc;const _0x1f4944=_0x1211d0[_0x195cdf],_0x501479=_0x1211d0[_0x195cdf-0x1];if('text'==_0x1f4944['type'])continue;if(_0x1f4944['type']!=_0x501479['type'])continue;if(!_0x425d7b['isBlock'](_0x501479['item'])||_0x425d7b['isLimit'](_0x501479['item']))continue;if(!_0x425d7b['isBlock'](_0x1f4944['item'])||_0x425d7b['isLimit'](_0x1f4944['item']))continue;if((_0x1211d0[_0x195cdf]['isAdded']||_0x1211d0[_0x195cdf]['isAddSuggestion'])&&_0x1211d0[_0x195cdf-0x1]['isRemoved'])_0x1b594d=_0x1211d0[_0x195cdf],_0x3cf08c=_0x1211d0[_0x195cdf-0x1],_0x1384cc=_0x195cdf-0x1;else{if(!_0x1211d0[_0x195cdf]['isRemoved']||!_0x1211d0[_0x195cdf-0x1]['isAdded']&&!_0x1211d0[_0x195cdf-0x1]['isAddSuggestion'])continue;_0x1b594d=_0x1211d0[_0x195cdf-0x1],_0x3cf08c=_0x1211d0[_0x195cdf],_0x1384cc=_0x195cdf;}const _0xd04de2=_0x1b594d['level']==_0x3cf08c['level'],_0x1964bc=Math['abs'](_0x1b594d['level'])<Math['abs'](_0x3cf08c['level'])&&0x0==_0x3cf08c['distance'];(_0xd04de2||_0x1964bc)&&(_0xc9ef66['set'](_0x3cf08c['id'],_0x1b594d['id']),_0x1211d0['splice'](_0x1384cc,0x1),_0x195cdf--,_0x1b594d['isAdded']=!0x1);}for(let _0xd099fa=0x0;_0xd099fa<_0x1211d0['length'];_0xd099fa++)_0xc9ef66['has'](_0x1211d0[_0xd099fa]['pairId'])&&(_0x1211d0[_0xd099fa]['pairId']=_0xc9ef66['get'](_0x1211d0[_0xd099fa]['pairId']));}['_removeMissingPairs'](_0xa45ada){const _0x29d233=new Set(_0xa45ada['map'](_0x2e4683=>_0x2e4683['id']));for(let _0x42ae32=0x0;_0x42ae32<_0xa45ada['length'];_0x42ae32++)_0x29d233['has'](_0xa45ada[_0x42ae32]['pairId'])||0x0==_0xa45ada[_0x42ae32]['distance']||(_0xa45ada[_0x42ae32]['isIncorrect']=!0x0);return _0xa45ada['filter'](_0x2ac31b=>!_0x2ac31b['isIncorrect']);}['_markMismatchedRemovedTags'](_0x3dfb38){const _0x4727df=new Set();for(let _0x1ee483=0x0;_0x1ee483<_0x3dfb38['length'];_0x1ee483++){if(_0x4727df['has'](_0x3dfb38[_0x1ee483]['id'])&&_0x3dfb38[_0x1ee483]['isRemoved']&&(_0x3dfb38[_0x1ee483]['isIncorrect']=!0x0),_0x3dfb38[_0x1ee483]['isIncorrect'])continue;if(0x0==_0x3dfb38[_0x1ee483]['distance'])continue;if('elementStart'!=_0x3dfb38[_0x1ee483]['type'])continue;if(null==_0x3dfb38[_0x1ee483]['pairId'])continue;let _0x368572=_0x1ee483+0x1,_0xd9da64=0x0;for(;_0x3dfb38[_0x368572]['id']!=_0x3dfb38[_0x1ee483]['pairId'];)'elementStart'==_0x3dfb38[_0x368572]['type']?_0xd9da64++:'elementEnd'==_0x3dfb38[_0x368572]['type']&&_0xd9da64--,_0x368572++;if(0x0!=_0xd9da64){if(_0x3dfb38[_0x1ee483]['isRemoved'])_0x3dfb38[_0x1ee483]['isIncorrect']=!0x0;else{for(;_0x368572!=_0x1ee483;)_0x3dfb38[_0x368572]['isRemoved']&&0x0!=_0x3dfb38[_0x368572]['distance']&&(_0x3dfb38[_0x368572]['isIncorrect']=!0x0,_0x4727df['add'](_0x3dfb38[_0x368572]['pairId'])),_0x368572--;}}}return _0x3dfb38['filter'](_0x2477cb=>!_0x2477cb['isIncorrect']);}['_removeUnsupportedChanges'](_0x581a8a){const _0x4fe506=this['editor']['model']['schema'];for(let _0x1dee1e=0x0;_0x1dee1e<_0x581a8a['length'];_0x1dee1e++){if(!(_0x581a8a[_0x1dee1e]['isAdded']||_0x581a8a[_0x1dee1e]['isAddSuggestion']||_0x581a8a[_0x1dee1e]['isRemoved']||_0x581a8a[_0x1dee1e]['isRemoveSuggestion']))continue;if(0x0==_0x581a8a[_0x1dee1e]['distance'])continue;const _0x364fb7=_0x581a8a[_0x1dee1e]['item'];_0x4fe506['isBlock'](_0x364fb7)||_0x4fe506['isLimit'](_0x364fb7)||(_0x581a8a[_0x1dee1e]['isAdded']&&delete _0x581a8a[_0x1dee1e]['isAdded'],_0x581a8a[_0x1dee1e]['isAddSuggestion']&&delete _0x581a8a[_0x1dee1e]['isAddSuggestion'],_0x581a8a[_0x1dee1e]['isRemoveSuggestion']&&delete _0x581a8a[_0x1dee1e]['isRemoveSuggestion'],_0x581a8a[_0x1dee1e]['isRemoved']&&(_0x581a8a[_0x1dee1e]['isIncorrect']=!0x0));}return _0x581a8a['filter'](_0x14ebef=>!_0x14ebef['isIncorrect']);}['_makeModelFromTape'](_0x87f036,_0x1044e0,_0x3b531e){const _0x5511d2=new mt(),_0x2d8a04=[],_0x339df9=new Map(),_0x1a7e00=this['editor']['model'],_0x494d66=_0x1a7e00['schema'],_0x21e71b=[_0x5511d2],_0x514eb9={},_0x18508c={'isAdded':[],'isRemoved':[],'isAddSuggestion':[],'isRemoveSuggestion':[]};let _0x4230ae=null;const _0x1ce558=[0x0];for(let _0x299862=0x0;_0x299862<_0x87f036['length'];_0x299862++)if('elementStart'===_0x87f036[_0x299862]['type']){_0x87f036[_0x299862]['previousPosition']=_0x1a7e00['createPositionFromPath'](_0x5511d2,_0x1ce558);const _0x52a4d2=new ft(_0x87f036[_0x299862]['item']['name'],_0x87f036[_0x299862]['item']['getAttributes']());_0x21e71b[0x0]['_appendChild'](_0x52a4d2),_0x1ce558['push'](0x0),_0x21e71b['unshift'](_0x52a4d2),_0x87f036[_0x299862]['nextPosition']=_0x1a7e00['createPositionFromPath'](_0x5511d2,_0x1ce558);}else'elementEnd'===_0x87f036[_0x299862]['type']?(_0x21e71b['shift'](),_0x87f036[_0x299862]['previousPosition']=_0x1a7e00['createPositionFromPath'](_0x5511d2,_0x1ce558),_0x1ce558['pop'](),_0x1ce558[_0x1ce558['length']-0x1]++,_0x87f036[_0x299862]['nextPosition']=_0x1a7e00['createPositionFromPath'](_0x5511d2,_0x1ce558)):(_0x87f036[_0x299862]['previousPosition']=_0x1a7e00['createPositionFromPath'](_0x5511d2,_0x1ce558),_0x4230ae?_0x4230ae['_data']+=_0x87f036[_0x299862]['item']['data']:_0x4230ae=new wt(_0x87f036[_0x299862]['item']['data'],_0x87f036[_0x299862]['item']['getAttributes']()),_0x87f036[_0x299862+0x1]&&'text'===_0x87f036[_0x299862+0x1]['type']&&_0x324895(_0x4230ae,_0x87f036[_0x299862+0x1]['item'])||(_0x21e71b[0x0]['_appendChild'](_0x4230ae),_0x4230ae=null),_0x1ce558[_0x1ce558['length']-0x1]+=_0x87f036[_0x299862]['item']['offsetSize'],_0x87f036[_0x299862]['nextPosition']=_0x1a7e00['createPositionFromPath'](_0x5511d2,_0x1ce558));for(let _0x19ed51=0x0;_0x19ed51<_0x87f036['length'];_0x19ed51++){const _0x328b64=_0x87f036[_0x19ed51]['previousPosition'],_0x2f498c=_0x87f036[_0x19ed51]['nextPosition'];for(const _0xc1db7 of _0x87f036[_0x19ed51]['markersStart'])_0x339df9['set'](_0xc1db7,{'start':_0x328b64,'end':null});_0x2c7504('isRemoveSuggestion',_0x19ed51,_0x328b64,_0x2f498c),_0x2c7504('isAddSuggestion',_0x19ed51,_0x328b64,_0x2f498c),_0x2c7504('isRemoved',_0x19ed51,_0x328b64,_0x2f498c),_0x2c7504('isAdded',_0x19ed51,_0x328b64,_0x2f498c);for(const _0x540e06 of _0x87f036[_0x19ed51]['markersEnd']){_0x339df9['get'](_0x540e06)['end']=_0x2f498c;}}for(const [_0x2d1ff2,_0x4b9f1e]of _0x339df9){const _0x3f0c36=this['editor']['model']['createRange'](_0x4b9f1e['start'],_0x4b9f1e['end']);_0x5511d2['markers']['set'](_0x2d1ff2,_0x3f0c36);}return _0x2d8a04['sort']((_0x58e76c,_0x5ef862)=>{const _0x1fbc0a=_0x5511d2['markers']['get']('revision:'+_0x58e76c['id']),_0x5d8258=_0x5511d2['markers']['get']('revision:'+_0x5ef862['id']);return _0x1fbc0a['start']['isBefore'](_0x5d8258['start'])?-0x1:_0x1fbc0a['start']['isAfter'](_0x5d8258['start'])?0x1:_0x1fbc0a['end']['isBefore'](_0x5d8258['end'])?-0x1:_0x1fbc0a['end']['isAfter'](_0x5d8258['end'])?0x1:'add'===_0x58e76c['type']?-0x1:0x1;}),{'root':_0x5511d2,'changes':_0x2d8a04};function _0x2c7504(_0x27d9fd,_0x2015b0,_0x5d3317,_0x357896){const _0x5e61ea=!!_0x87f036[_0x2015b0][_0x27d9fd],_0x2c6c33=_0x5e61ea?_0x87f036[_0x2015b0][_0x27d9fd]['userId']:null,_0x539064=_0x2015b0===_0x87f036['length']-0x1,_0x53dd45=_0x18508c[_0x27d9fd][0x0],_0x17d6bb=_0x494d66['isObject'](_0x87f036[_0x2015b0]['item']);!_0x514eb9[_0x27d9fd]&&_0x5e61ea?_0x514eb9[_0x27d9fd]={'start':_0x5d3317,'tapeItem':_0x87f036[_0x2015b0],'userId':_0x2c6c33,'type':_0x27d9fd}:_0x514eb9[_0x27d9fd]&&!_0x5e61ea?(_0x514eb9[_0x27d9fd]['end']=_0x5d3317,_0x476369(_0x514eb9[_0x27d9fd]),_0x514eb9[_0x27d9fd]=null):_0x514eb9[_0x27d9fd]&&_0x5e61ea&&_0x514eb9[_0x27d9fd]['userId']!==_0x2c6c33&&(_0x514eb9[_0x27d9fd]['end']=_0x5d3317,_0x53dd45&&_0x53dd45['userId']===_0x514eb9[_0x27d9fd]['userId']||_0x476369(_0x514eb9[_0x27d9fd]),_0x514eb9[_0x27d9fd]={'start':_0x5d3317,'tapeItem':_0x87f036[_0x2015b0],'userId':_0x2c6c33,'type':_0x27d9fd}),_0x514eb9[_0x27d9fd]&&_0x17d6bb&&('elementStart'!==_0x87f036[_0x2015b0]['type']||_0x53dd45&&_0x53dd45['userId']===_0x2c6c33||_0x18508c[_0x27d9fd]['unshift']({'userId':_0x2c6c33,'object':_0x87f036[_0x2015b0]['item'],'change':_0x514eb9[_0x27d9fd]}),'elementEnd'===_0x87f036[_0x2015b0]['type']&&_0x53dd45&&_0x53dd45['object']===_0x87f036[_0x2015b0]['item']&&(_0x18508c[_0x27d9fd]['shift'](),_0x514eb9[_0x27d9fd]=_0x53dd45['change'])),_0x514eb9[_0x27d9fd]&&_0x539064&&(_0x514eb9[_0x27d9fd]['end']=_0x357896,_0x476369(_0x514eb9[_0x27d9fd]),_0x514eb9[_0x27d9fd]=null);}function _0x476369({start:_0x13d8a3,end:_0x225a68,tapeItem:_0x9f3a71,userId:_0x105b12,type:_0x250a4f}){const _0x26bfb7=_0x9f3a71['item'],_0x1681e6=_0x1a7e00['schema']['isBlock'](_0x26bfb7)&&!_0x1a7e00['schema']['isLimit'](_0x26bfb7),_0x3f214a=_0x13d8a3['nodeAfter']==_0x225a68['parent']&&_0x225a68['isAtStart'];if(_0x1681e6&&_0x3f214a)return;const _0x5822ac=_0x1a7e00['createRange'](_0x13d8a3,_0x225a68),_0x191658=_0x1044e0['get'](_0x105b12),_0x15d592=new r({'author':_0x191658,'type':'isAdded'==_0x250a4f||'isAddSuggestion'==_0x250a4f?'add':'remove','data':{'isSuggestion':'isAddSuggestion'==_0x250a4f||'isRemoveSuggestion'==_0x250a4f},'createdAt':new Date(),'rootName':_0x3b531e});_0x2d8a04['push'](_0x15d592),_0x5511d2['markers']['set']('revision:'+_0x15d592['id'],_0x5822ac);}function _0x324895(_0x310ad5,_0x297cc5){const _0x449bd7=_0x310ad5['getAttributes'](),_0x3be7dc=_0x297cc5['getAttributes']();for(const _0x1f6fde of _0x449bd7){if(_0x1f6fde[0x1]!==_0x297cc5['getAttribute'](_0x1f6fde[0x0]))return!0x1;_0x3be7dc['next']();}return _0x3be7dc['next']()['done'];}}['_setConversion'](){this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'revision'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision','view':_0x31d3b4=>{const _0x5bce0e=_0x31d3b4['markerName']['split'](':')[0x1],_0x5cb9b9=this['_getChangeFromId'](_0x5bce0e);if(!_0x5cb9b9)return null;const _0x4febfc='add'==_0x5cb9b9['type']?'insertion':'deletion',_0x4d23a7=['ck-suggestion-marker','ck-suggestion-marker-'+_0x4febfc];return _0x5cb9b9['data']['isSuggestion']&&_0x4d23a7['push']('ck-suggestion-marker-'+_0x4febfc+'-new'),this['activeChange']==_0x5cb9b9&&_0x4d23a7['push']('ck-suggestion-marker--active'),{'classes':_0x4d23a7,'attributes':{'data-change-id':_0x5bce0e}};}}),this['editor']['conversion']['for']('upcast')['add'](_0x230933=>{_0x230933['on']('element:pre',(_0x4f5f72,_0x5b52da,_0x209531)=>{const _0x30100b=_0x5b52da['viewItem']['getChild'](0x0);if(!_0x30100b||!_0x30100b['is']('element','code'))return;if(!_0x209531['consumable']['consume'](_0x30100b,{'attributes':['vid_start','vid_end']}))return;const _0x4c5341=_0x5b52da['modelRange']['start']['nodeAfter'];_0x209531['writer']['setAttribute']('vid_start',_0x30100b['getAttribute']('vid_start'),_0x4c5341),_0x209531['writer']['setAttribute']('vid_end',_0x30100b['getAttribute']('vid_end'),_0x4c5341);},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['add'](_0x264c22=>{_0x264c22['on']('element',(_0x53cc0b,_0x3fc282,_0x48653c)=>{if(!_0x48653c['consumable']['consume'](_0x3fc282['viewItem'],{'attributes':['vid_start','vid_end']}))return;if(_0x3fc282['modelRange']['isCollapsed'])return;const _0x39c82c=_0x3fc282['modelRange']['start']['nodeAfter'];_0x39c82c['hasAttribute']('vid_start')||_0x39c82c['hasAttribute']('vid')||(_0x48653c['writer']['setAttribute']('vid_start',_0x3fc282['viewItem']['getAttribute']('vid_start'),_0x39c82c),_0x48653c['writer']['setAttribute']('vid_end',_0x3fc282['viewItem']['getAttribute']('vid_end'),_0x39c82c));},{'priority':'low'});}),this['editor']['conversion']['for']('upcast')['elementToAttribute']({'view':{'name':'span','attributes':{'vid':!0x0}},'model':{'key':'vid','value':_0x4b2869=>_0x4b2869['getAttribute']('vid')}}),this['editor']['model']['schema']['on']('checkAttribute',(_0x525cf9,[,_0x52d2cc])=>{['vid_start','vid_end','vid']['includes'](_0x52d2cc)&&(_0x525cf9['return']=!0x0,_0x525cf9['stop']());},{'priority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['add'](_0x59561d=>{_0x59561d['on']('attribute:vid',(_0x180981,_0x479902,_0x1706f1)=>{if('\x20'!=_0x479902['item']['data']||_0x479902['item']['parent']['maxOffset']>0x1)return;if(!_0x1706f1['consumable']['consume'](_0x479902['item'],_0x180981['name']))return;const _0x208d01=_0x1706f1['writer'],_0x3a4692=_0x1706f1['mapper']['toViewRange'](_0x479902['range']);_0x208d01['wrap'](_0x3a4692,_0x208d01['createAttributeElement']('span'));});}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',function(_0x347668){const _0x3c5619=_0x347668['plugins']['get']('RevisionViewer');return(_0x1817c3,_0x351b9c,_0x38907d)=>{const _0x1b78a6=_0x351b9c['markerName']['split'](':')[0x1],_0x3db14e=_0x3c5619['_getChangeFromId'](_0x1b78a6);if(!_0x3db14e)return null;const _0x558210='add'==_0x3db14e['type']?'split':'merge';if(!_0x38907d['consumable']['test'](_0x351b9c['markerRange'],_0x1817c3['name']))return;const _0x23364c=_0x351b9c['markerRange']['getWalker'](),_0x36f7f4=_0x351b9c['markerRange']['start'],_0x4ff01a=_0x347668['model']['schema'];let _0x132545=null,_0x4477a0=null,_0x377c46=!0x1,_0x59e839=!0x1;for(const _0x53dfa8 of _0x23364c){const _0x3dd763=_0x53dfa8['item'];_0x377c46=_0x377c46||_0x4ff01a['isContent'](_0x3dd763);const _0x4c4cb7=_0x38907d['mapper']['toViewElement'](_0x3dd763);if(_0x4c4cb7&&_0x4c4cb7['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x53dfa8['type']&&(_0x4ff01a['isBlock'](_0x3dd763)&&!_0x4ff01a['isLimit'](_0x3dd763)&&(_0x3dd763['nextSibling']||_0x36f7f4['isAtEnd']?_0x132545&&_0x132545['parent']==_0x3dd763||(_0x132545=_0x3dd763,_0x1c665f(_0x53dfa8['previousPosition']),_0x59e839=!0x0):_0x4477a0=_0x4477a0||_0x53dfa8['previousPosition']));}function _0x1c665f(_0x47aa48){const _0x1ab46c=_0x38907d['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x558210}),_0x51375e=_0x38907d['mapper']['toViewPosition'](_0x47aa48);_0x3db14e['data']['isSuggestion']&&_0x38907d['writer']['addClass']('ck-suggestion-marker-'+_0x558210+'-new',_0x1ab46c),_0x3c5619['activeChange']==_0x3db14e&&_0x38907d['writer']['addClass']('ck-suggestion-marker--active',_0x1ab46c),_0x38907d['writer']['insert'](_0x51375e,_0x1ab46c),_0x38907d['mapper']['bindElementToMarker'](_0x1ab46c,_0x351b9c['markerName']);}_0x377c46||_0x59e839||!_0x4477a0||_0x1c665f(_0x4477a0);};}(this['editor']),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision',(_0x4a2f8a,_0x532fa7,_0x3f60f6)=>{const _0x457e31=_0x3f60f6['mapper']['markerNameToElements'](_0x532fa7['markerName']);if(_0x457e31){for(const _0x3952ed of _0x457e31)(_0x3952ed['hasClass']('ck-suggestion-marker-split')||_0x3952ed['hasClass']('ck-suggestion-marker-merge'))&&(_0x3f60f6['mapper']['unbindElementFromMarkerName'](_0x3952ed,_0x532fa7['markerName']),_0x3f60f6['writer']['remove'](_0x3952ed));}},{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision',(_0x226901,_0x86e74f,_0x16fb9f)=>{const _0x1a04ad=_0x86e74f['markerName']['split'](':')[0x1],_0x32ee98=this['_getChangeFromId'](_0x1a04ad);if(!_0x32ee98)return null;const _0x3ba89c='add'==_0x32ee98['type']?'split':'merge';if(_0x16fb9f['consumable']['test'](_0x86e74f['markerRange'],_0x226901['name']))for(const _0x4548bc of _0x86e74f['markerRange']['getItems']()){if(!_0x4548bc['is']('element','softBreak'))continue;const _0x193d58=_0x16fb9f['writer']['createUIElement']('span',{'class':'ck-suggestion-marker-'+_0x3ba89c}),_0x10721d=_0x16fb9f['mapper']['toViewPosition'](this['editor']['model']['createPositionBefore'](_0x4548bc));_0x32ee98['data']['isSuggestion']&&_0x16fb9f['writer']['addClass']('ck-suggestion-marker-'+_0x3ba89c+'-new',_0x193d58),this['activeChange']==_0x32ee98&&_0x16fb9f['writer']['addClass']('ck-suggestion-marker--active',_0x193d58),_0x16fb9f['writer']['insert'](_0x10721d,_0x193d58),_0x16fb9f['mapper']['bindElementToMarker'](_0x193d58,_0x86e74f['markerName']);}},{'priority':'high'}),this['editor']['model']['document']['on']('change',()=>{this['editor']['editing']['view']['change'](_0x511b9f=>{for(const _0x452ded of this['editor']['model']['document']['getRootNames']()){const _0x2014f2=this['editor']['model']['document']['getRoot'](_0x452ded),_0x147c1e=this['editor']['editing']['view']['document']['getRoot'](_0x452ded);if(_0x147c1e){const _0x2299a9=_0x2014f2['getAttribute']('revisionHistoryAttachChange');if(_0x511b9f['removeAttribute']('data-change-id',_0x147c1e),_0x511b9f['removeClass']('ck-revision-history-root-add',_0x147c1e),_0x511b9f['removeClass']('ck-revision-history-root-remove',_0x147c1e),_0x511b9f['removeClass']('ck-revision-history-root--active',_0x147c1e),_0x2299a9){const _0x415aec=this['_getChangeFromId'](_0x2299a9);if(!_0x415aec)return null;_0x511b9f['setAttribute']('data-change-id',_0x2299a9,_0x147c1e),_0x511b9f['addClass']('ck-revision-history-root-'+_0x415aec['type'],_0x147c1e),this['activeChange']==_0x415aec&&_0x511b9f['addClass']('ck-revision-history-root--active',_0x147c1e);}}}});}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'comment','model':_0x42c2d0=>'revision-comment:'+_0x42c2d0,'converterPriority':'highest'}),this['editor']['conversion']['for']('upcast')['dataToMarker']({'view':'suggestion','model':_0x312c66=>'revision-suggestion:'+_0x312c66,'converterPriority':'highest'}),this['editor']['conversion']['for']('dataDowncast')['markerToData']({'model':'revision-suggestion','view':_0x318210=>({'name':'suggestion:'+_0x318210,'group':'revision-suggestion'}),'converterPriority':'highest'}),this['editor']['conversion']['for']('editingDowncast')['markerToHighlight']({'model':'revision-suggestion','view':_0x48b064=>{const _0x2ef8f2=_0x48b064['markerName']['split'](':')[0x1];return'insertion'!=_0x2ef8f2&&'deletion'!=_0x2ef8f2?null:{'classes':['ck-suggestion-preview-marker','ck-suggestion-preview-marker-'+_0x2ef8f2]};}}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:deletion',tt(this['editor'],'merge'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('addMarker:revision-suggestion:insertion',tt(this['editor'],'split'),{'priority':'high'}),this['editor']['editing']['downcastDispatcher']['on']('removeMarker:revision-suggestion',(_0x3f219c,_0x4fb493,_0x42ece4)=>{const _0x43707e=_0x42ece4['mapper']['markerNameToElements'](_0x4fb493['markerName']);if(_0x43707e){for(const _0x5ccef4 of _0x43707e)_0x5ccef4['is']('uiElement')&&(_0x42ece4['mapper']['unbindElementFromMarkerName'](_0x5ccef4,_0x4fb493['markerName']),_0x42ece4['writer']['remove'](_0x5ccef4));}},{'priority':'high'});}['_getChangeFromId'](_0x358dac){return this['_changeIdToChange']['get'](_0x358dac);}['_getViewForChange'](_0x5df81e){return this['_changeView']&&this['_changeView']['destroy'](),this['_changeView']=new Y(this['editor']['locale'],_0x5df81e),this['_changeView'];}['_initInteractions'](){this['editor']['model']['document']['selection']['observeMarkers']('revision'),this['on']('change:activeView',(_0x4d89ba,_0x131895,_0x93513a,_0x549bcd)=>{_0x549bcd&&this['_balloon']['remove'](_0x549bcd),_0x93513a&&(this['_balloon']['add']({'view':_0x93513a,'stackId':'revisionHistoryLabel','position':{'target':()=>{const _0x4a713d=this['editor']['editing'],_0x197b99=this['_getChangeFromId'](_0x93513a['changeId']);let _0x3ba92e;if(_0x197b99['data']['isOnRoot']){const _0x55c27b=_0x4a713d['view']['getDomRoot'](_0x197b99['rootName']);_0x3ba92e=Array['from'](_0x55c27b['getClientRects']());}else{const _0x1517ad=this['editor']['model']['markers']['get']('revision:'+_0x93513a['changeId']);_0x3ba92e=Array['from'](_0x4a713d['mapper']['markerNameToElements'](_0x1517ad['name']))['map'](_0x101482=>_0x4a713d['view']['domConverter']['mapViewToDom'](_0x101482))['map'](_0x47f412=>Array['from'](_0x47f412['getClientRects']()))['flat']();}if(!this['_activeViewTarget'])return _0x3ba92e[0x0];return _0x3ba92e['find'](_0x4afcaa=>_0x4afcaa['top']-0x3<=this['_activeViewTarget']['y']&&_0x4afcaa['bottom']+0x3>=this['_activeViewTarget']['y']&&_0x4afcaa['left']-0x3<=this['_activeViewTarget']['x']&&_0x4afcaa['right']+0x3>=this['_activeViewTarget']['x'])||_0x3ba92e[0x0];}}}),this['_balloon']['showStack']('revisionHistoryLabel'));}),this['on']('change:activeChange',(_0x49a960,_0x3a3737,_0x2d229f,_0x50147e)=>{this['activeView']=_0x2d229f?this['_getViewForChange'](_0x2d229f):null,this['editor']['model']['change'](()=>{const _0x5860c0=this['editor']['editing'];_0x50147e&&(_0x50147e['data']['isOnRoot']?_0x5860c0['view']['change'](_0x10b3b5=>{_0x10b3b5['removeClass']('ck-revision-history-root--active',_0x5860c0['view']['document']['getRoot'](_0x50147e['rootName']));}):_0x5860c0['reconvertMarker']('revision:'+_0x50147e['id'])),_0x2d229f&&(_0x2d229f['data']['isOnRoot']?_0x5860c0['view']['change'](_0x3192ee=>{_0x3192ee['addClass']('ck-revision-history-root--active',_0x5860c0['view']['document']['getRoot'](_0x2d229f['rootName']));}):_0x5860c0['reconvertMarker']('revision:'+_0x2d229f['id']));});}),this['listenTo'](this['editor']['editing']['view']['document'],'mouseover',(_0x266e6b,_0x30e331)=>{if(this['activeChange'])return;const _0x5eba07=this['_findChangeIdFromDomTarget'](_0x30e331['target']),_0x373914=this['_changeIdToChange']['get'](_0x5eba07);_0x373914?(this['_activeViewTarget']={'x':_0x30e331['domEvent']['x'],'y':_0x30e331['domEvent']['y']},this['activeView']=this['_getViewForChange'](_0x373914)):(this['_activeViewTarget']=null,this['activeView']=null);}),this['listenTo'](this['editor']['editing']['view']['document'],'mousedown',(_0x1744fe,_0x48ea41)=>{const _0x19b6ce=this['_findChangeIdFromDomTarget'](_0x48ea41['target']),_0x269f74=this['_changeIdToChange']['get'](_0x19b6ce);_0x269f74?(this['_activeViewTarget']={'x':_0x48ea41['domEvent']['x'],'y':_0x48ea41['domEvent']['y']},_0x269f74===this['activeChange']?this['_balloon']['updatePosition']():this['activeChange']=_0x269f74):(this['_activeViewTarget']=null,this['activeChange']=null);});}['_findChangeIdFromDomTarget'](_0x11b3ae){do{const _0x35d165=_0x11b3ae['getAttribute']('data-change-id');if(_0x35d165)return _0x35d165;_0x11b3ae=_0x11b3ae['parent'];}while(_0x11b3ae);return null;}['_cleanMarkers'](){this['editor']['model']['change'](_0x1a63cd=>{for(const _0x2a558b of this['editor']['model']['markers'])_0x1a63cd['removeMarker'](_0x2a558b);});}}function tt(_0x4beeb0,_0x186edc){return(_0x53cf33,_0x292558,_0x4bda3b)=>{if(!_0x4bda3b['consumable']['test'](_0x292558['markerRange'],_0x53cf33['name']))return;const _0x41b28a=_0x292558['markerRange']['getWalker'](),_0x181afc=_0x292558['markerRange']['start'],_0x1ba7bc=_0x4beeb0['model']['schema'];let _0x1933e1=null,_0x4a6d16=null,_0x343025=!0x1,_0x41ab2e=!0x1;for(const _0x30dbd7 of _0x41b28a){const _0x3bf3a1=_0x30dbd7['item'];_0x343025=_0x343025||_0x1ba7bc['isContent'](_0x3bf3a1);const _0x2a0d90=_0x4bda3b['mapper']['toViewElement'](_0x3bf3a1);if(_0x2a0d90&&_0x2a0d90['getCustomProperty']('addHighlight'))return;'elementEnd'==_0x30dbd7['type']&&(_0x1ba7bc['isBlock'](_0x3bf3a1)&&!_0x1ba7bc['isLimit'](_0x3bf3a1)&&(_0x3bf3a1['nextSibling']||_0x181afc['isAtEnd']?_0x1933e1&&_0x1933e1['parent']==_0x3bf3a1||(_0x1933e1=_0x3bf3a1,_0x127996(_0x30dbd7['previousPosition']),_0x41ab2e=!0x0):_0x4a6d16=_0x4a6d16||_0x30dbd7['previousPosition']));}function _0x127996(_0x60129f){const _0x4bfa5b=_0x4bda3b['mapper']['toViewPosition'](_0x60129f),_0x17b996=_0x4bda3b['writer']['createUIElement']('span',{'class':'ck-suggestion-preview-marker-'+_0x186edc});_0x4bda3b['writer']['insert'](_0x4bfa5b,_0x17b996),_0x4bda3b['mapper']['bindElementToMarker'](_0x17b996,_0x292558['markerName']);}_0x343025||_0x41ab2e||!_0x4a6d16||_0x127996(_0x4a6d16);};}class _t extends _0x14503b{constructor(_0x1ea38){super(_0x1ea38);const _0x4eb108=_0x1ea38['plugins']['get'](d);this['affectsData']=!0x1,this['listenTo'](_0x4eb108,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x4eb108,'change:isEnabled',()=>this['refresh']());}['execute'](){const _0x581a71=this['editor'],_0x547383=_0x581a71['plugins']['get'](d),_0x17e827=_0x547383['isReady']?_0x547383['diff']['newRevisionId']:null;_0x581a71['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x17e827);}['refresh'](){const {isReady:_0x1837c7,isEnabled:_0x5edebd}=this['editor']['plugins']['get'](d);this['isEnabled']=_0x1837c7&&_0x5edebd;}}class yt extends _0x14503b{['_step'];constructor(_0x5896a1,{direction:_0x14b160}){super(_0x5896a1);const _0x2332c5=_0x5896a1['plugins']['get'](d);this['affectsData']=!0x1,this['_step']='forward'===_0x14b160?0x1:-0x1,this['listenTo'](_0x2332c5,'change:isReady',()=>this['refresh']()),this['listenTo'](_0x2332c5,'change:isEnabled',()=>this['refresh']()),this['listenTo'](_0x2332c5,'change:activeChange',()=>this['refresh']());}['execute'](){const _0x2f82af=this['editor'],_0x65258b=_0x2f82af['plugins']['get'](d),{isNavigationMode:_0x4532d1,currentChangeNumber:_0x471ae5}=_0x65258b;let _0x199284;if(_0x65258b['activeChange']=_0x4532d1?_0x65258b['diff']['changes']['get'](_0x471ae5+this['_step']):_0x65258b['diff']['changes']['first'],_0x65258b['activeChange']['data']['isOnRoot'])_0x199284=_0x2f82af['editing']['view']['getDomRoot'](_0x65258b['activeChange']['rootName']);else{const _0x5b5662=_0x2f82af['model']['markers']['get']('revision:'+_0x65258b['activeChange']['id']);_0x199284=_0xca6c05(_0x2f82af['editing'],_0x5b5662);}_0x5ef61f({'target':_0x199284,'viewportOffset':0x28});}['refresh'](){const {isNavigationMode:_0x4dcf7c,currentChangeNumber:_0x34890d,numberOfChanges:_0x11390f,isReady:_0x38b530,isEnabled:_0x3d9d54}=this['editor']['plugins']['get'](d);this['isEnabled']=!!(_0x3d9d54&&_0x38b530&&_0x11390f)&&(!_0x4dcf7c||(0x1===this['_step']?_0x34890d<_0x11390f-0x1:_0x34890d>0x0));}}class ui extends ts{constructor(_0x22a723){super(_0x22a723);const _0x359698=this['bindTemplate'],_0x645082=new te(_0x22a723),_0x4f939c=new te(_0x22a723);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',(_0x219d86,_0x5c0a4b)=>_0x219d86&&_0x5c0a4b>0x0),this['bind']('_statusText')['to'](this,'isReady',this,'currentChangeNumber',this,'numberOfChanges',this,'isNavigationMode',(_0x1ddd71,_0xe023b4,_0x2b45ea,_0x1b510f)=>{if(!_0x1ddd71)return R(_0x22a723,'Loading...');if(!_0x2b45ea)return R(_0x22a723,'No\x20changes');const _0x331ee0=R(_0x22a723,'NUMBER_OF_CHANGES',_0x2b45ea);return _0x1b510f?R(_0x22a723,'X_OF_Y_CHANGES',[_0xe023b4+0x1,_0x2b45ea]):_0x331ee0;}),_0x645082['set']({'label':R(_0x22a723,'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'}),_0x4f939c['set']({'label':R(_0x22a723,'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'}),_0x645082['bind']('isEnabled')['to'](this,'isBackwardNavigationEnabled'),_0x4f939c['bind']('isEnabled')['to'](this,'isForwardNavigationEnabled'),_0x645082['on']('execute',()=>this['fire']('execute','backward')),_0x4f939c['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',_0x359698['if']('_isStatusLabelVisible','ck-hidden',_0x24a0ae=>!_0x24a0ae)]},'children':[{'text':_0x359698['to']('isNavigationMode',_0x366eb2=>_0x366eb2?R(_0x22a723,'EDIT_X_OF_Y_REVISIONS')+':\x20':R(_0x22a723,'Total')+':\x20')}]},{'text':_0x359698['to']('_statusText')}]},new _0xbbb2ea(),{'tag':'div','attributes':{'class':['ck-revision-history-ui__changes-navigation__navigation']},'children':[_0x645082,_0x4f939c]}]});}}const le='ck-editor__editable__loading-overlay';class de extends _0x39b81a{static get['pluginName'](){return'RevisionViewerLoadingOverlay';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['show'](){const _0x371f2a=this['editor']['editing']['view'];_0x371f2a['change'](_0x39d592=>{for(const _0x360dd0 of _0x371f2a['document']['roots'])_0x39d592['addClass'](le,_0x360dd0);});}['hide'](){const _0x1c26e9=this['editor']['editing']['view'];_0x1c26e9['change'](_0x25582e=>{for(const _0x3e5b1f of _0x1c26e9['document']['roots'])_0x25582e['removeClass'](le,_0x3e5b1f);});}}class m extends _0x39b81a{static get['pluginName'](){return'RevisionViewerUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[d,de];}['init'](){const _0xf27b72=this['editor'],_0x3f3de7=_0xf27b72['plugins']['get'](d),_0x44f38c=_0xf27b72['plugins']['get'](de);_0xf27b72['ui']['componentFactory']['add']('exitToEditing',_0x19e0b3=>{const _0x570a77=new te(_0x19e0b3);return _0x570a77['set']({'label':R(_0x19e0b3,'Back\x20to\x20editing'),'icon':_0x590976['undo'],'withText':!0x0,'tooltip':!0x0,'class':'ck-revision-history-ui__back-to-editing'}),this['listenTo'](_0x570a77,'execute',()=>{_0xf27b72['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}),_0x570a77;}),_0xf27b72['ui']['componentFactory']['add']('restoreRevision',_0x5dd2c5=>{const _0x20f129=new te(_0x5dd2c5);return _0x20f129['set']({'label':R(_0x5dd2c5,'Restore\x20this\x20revision'),'withText':!0x0,'tooltip':!0x0}),_0x20f129['bind']('isEnabled')['to'](_0xf27b72['commands']['get']('restoreRevision')),this['listenTo'](_0x20f129,'execute',()=>_0xf27b72['execute']('restoreRevision')),_0x20f129;}),_0xf27b72['ui']['componentFactory']['add']('changesNavigation',_0x202cef=>{const _0x495924=new ui(_0x202cef),_0x491791=_0xf27b72['commands']['get']('showPreviousChange'),_0x4bd895=_0xf27b72['commands']['get']('showNextChange');return _0x495924['bind']('isBackwardNavigationEnabled')['to'](_0x491791,'isEnabled'),_0x495924['bind']('isForwardNavigationEnabled')['to'](_0x4bd895,'isEnabled'),_0x495924['bind']('isReady','currentChangeNumber','numberOfChanges','isNavigationMode')['to'](_0x3f3de7),this['listenTo'](_0x495924,'execute',(_0x1b137b,_0x18f065)=>{_0xf27b72['execute']('forward'===_0x18f065?'showNextChange':'showPreviousChange');}),_0x495924;}),_0x44f38c['show'](),_0x3f3de7['on']('change:isReady',(_0x492533,_0x481ed5,_0x1c5cba)=>{_0x1c5cba?_0x44f38c['hide']():_0x44f38c['show']();});}}class pt extends _0x5eff68{['_resizeObserver']=null;constructor(_0x26ecc0,_0x2d9b48){super(_0x26ecc0,_0x2d9b48);const _0x4a199a=this['bindTemplate'];this['set']({'label':R(_0x26ecc0,'Revision\x20name'),'_tooltipString':''}),this['fieldView']['placeholder']=R(_0x26ecc0,'Enter\x20the\x20revision\x20name'),this['extendTemplate']({'tag':'span','attributes':{'class':['ck-revision-history-sidebar__revision-name'],'data-cke-tooltip-text':_0x4a199a['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 _0x147710=this['fieldView']['element'];this['_tooltipString']=_0x147710['scrollWidth']>_0x147710['clientWidth']&&_0x147710['value']||'';}}class ri extends ts{constructor(_0x40fd26,_0x1f5e4b,_0x2fa543){super(_0x40fd26);const _0x1bec08=new _0x18863c();_0x1bec08['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 _0x5363a7=['ck','ck-revision-history-sidebar__revision-author'];_0x2fa543&&_0x5363a7['push']('ck-revision-history-sidebar__revision-author_creator');const _0x326679=[{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__revision-author__name'],'title':R(_0x40fd26,_0x2fa543?'Revision\x20creator':'Revision\x20author')},'children':[_0x1bec08,_0x1f5e4b['name']]}];this['setTemplate']({'tag':'li','attributes':{'class':_0x5363a7},'children':_0x326679});}}function oi(_0x3c273b,_0x3213e9){const _0x5af66e=_0x3c273b['bindTemplate'],_0x12ea5c=_0x3c273b['locale'],_0x23fe78=_0x5533af(_0x12ea5c);_0x23fe78['panelPosition']='sw';const _0x5bf167=function(_0x4caa54,_0x3dad05){const _0x19e6f5=function(_0x1de0a2,_0x12fc65){const _0x47b60e=_0x1de0a2['locale'],_0x540407={'Compare\x20against\x20selected':R(_0x47b60e,'Compare\x20against\x20selected'),'Name\x20this\x20revision':R(_0x47b60e,'Name\x20this\x20revision'),'Restore\x20this\x20revision':R(_0x47b60e,'Restore\x20this\x20revision')};return _0x12fc65['map'](_0x1b9b8e=>{const _0xe63c43=_0x540407[_0x1b9b8e['name']];return _0xe63c43&&_0xe63c43!==_0x1b9b8e['name']&&(_0x1b9b8e['name']=_0xe63c43),_0x1b9b8e;});}(_0x4caa54,_0x3dad05),_0x27e902=new _0x5c9475();for(const _0x23fe50 of _0x19e6f5){const _0xa4c688={'type':'button','model':new _0x13d394({'label':_0x23fe50['name'],'class':_0x23fe50['class'],'withText':!0x0,'role':'menuitem','_action':_0x23fe50['action']})};_0xa4c688['model']['bind']('isEnabled')['to'](_0x4caa54,'isActionsDropdownOpen',_0x628fd6=>'function'!=typeof _0x23fe50['isEnabled']||(!_0x628fd6||_0x23fe50['isEnabled'](_0x4caa54))),_0x27e902['add'](_0xa4c688);}return _0x27e902;}(_0x3c273b,_0x3213e9);return _0x3c273b['bind']('isActionsDropdownOpen')['to'](_0x23fe78,'isOpen'),_0x23fe78['buttonView']['set']({'label':R(_0x12ea5c,'Show\x20more\x20items'),'tooltip':!0x0,'tooltipPosition':'sw','icon':_0x590976['threeVerticalDots']}),_0x23fe78['extendTemplate']({'attributes':{'class':['ck-revision-history-sidebar__revision__actions',_0x5af66e['if']('isActionsDropdownOpen','ck-on')]},'on':{'click':_0x5af66e['to'](_0x50b1a6=>_0x50b1a6['stopPropagation']())}}),_0x23fe78['on']('execute',_0x20502d=>{_0x3c273b['isReady']&&'function'==typeof _0x20502d['source']['_action']&&_0x20502d['source']['_action'](_0x3c273b);}),to(_0x23fe78,_0x5bf167,{'role':'menu'}),_0x23fe78['listenTo'](_0x3c273b,'change:isActionsDropdownOpen',(_0x223317,_0x39e4fd,_0x14899e)=>{if(_0x14899e)for(const _0x6c9a2e of _0x23fe78['listView']['items']){const _0x366a4f=_0x6c9a2e['children']['first'],_0x9417e5=_0x3213e9['find'](_0x166c1c=>_0x166c1c['action']===_0x366a4f['_action'])['isVisible'];_0x6c9a2e['isVisible']=void 0x0===_0x9417e5||_0x9417e5(_0x3c273b);}}),_0x23fe78;}class hi extends/* #__PURE__ -- @preserve */
|
|
26
|
+
ti(ts){['id'];['revisionNameView'];['revisionActionsView'];['_revision'];['_requireRevisionName'];constructor(_0xee6995,_0x45b2e5,_0x500226,_0x5cc987){super(_0xee6995);const _0x459072=this['bindTemplate'],_0x13c6a9=function(_0x37ceb5,_0x15e2b4){const _0x1cc170=Array['from'](_0x15e2b4['authors'])['filter'](_0x1d696a=>_0x1d696a!=_0x15e2b4['creator']);return _0x15e2b4['creator']&&_0x1cc170['unshift'](_0x15e2b4['creator']),_0x1cc170['map'](_0x3966c5=>new ri(_0x37ceb5,_0x3966c5,_0x3966c5==_0x15e2b4['creator']));}(_0xee6995,_0x45b2e5);this['id']=_0x45b2e5['id'],this['_revision']=_0x45b2e5,this['_requireRevisionName']=_0x5cc987,this['bind']('name','createdAt')['to'](_0x45b2e5),this['bind']('_createdAtFormatted')['to'](this,'createdAt',_0x3a64ef=>{return _0xba0513=_0xee6995['uiLanguage'],(_0x1750e1=_0x3a64ef)['toLocaleDateString'](_0xba0513,{'month':'long','day':'numeric'})+',\x20'+_0x1750e1['toLocaleTimeString'](_0xba0513,{'hour':'numeric','minute':'numeric'});var _0xba0513,_0x1750e1;}),this['set']('isSelected',!0x1),this['set']('isHighlighted',!0x1),this['set']('isActionsDropdownOpen',!0x1),this['set']('isReady',!0x1),this['set']('isEnabled',!0x1),this['revisionNameView']=new pt(_0xee6995,_0x1f1f1e),this['revisionNameView']['fieldView']['extendTemplate']({'attributes':{'maxlength':'220'}}),this['revisionNameView']['fieldView']['bind']('value')['to'](this,'name',_0x1f9756=>_0x1f9756||this['_createdAtFormatted']),this['revisionNameView']['bind']('isEnabled')['to'](this,'isSelected',this,'isEnabled',(_0x2cd1d2,_0x2235bc)=>_0x2cd1d2&&_0x2235bc),this['revisionActionsView']=_0x500226&&_0x500226['length']?oi(this,_0x500226):'',this['revisionActionsView']&&this['revisionActionsView']['bind']('isEnabled')['to'](this),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision-wrapper',_0x459072['if']('isConfirm','ck-revision-history-sidebar__revision-wrapper_confirmation_visible')]},'children':[{'tag':'div','attributes':{'class':['ck','ck-reset','ck-revision-history-sidebar__revision',_0x459072['if']('isEnabled','ck-disabled',_0x41f9f9=>!_0x41f9f9),_0x459072['if']('isSelected','ck-revision-history-sidebar__revision_selected'),_0x459072['if']('isHighlighted','ck-revision-history-sidebar__revision_highlighted'),_0x459072['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':_0x459072['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':_0x13c6a9}]},this['revisionActionsView']],'on':{'click':_0x459072['to'](_0x159440=>{_0x159440['srcElement']['closest']('.ck-thread__remove-confirm')||this['isReady']&&this['isEnabled']&&this['fire']('select',{'id':this['id']});})}}]});}['render'](){super['render']();const _0xdc2cc7=this['revisionNameView']['fieldView']['element'];this['listenTo'](_0xdc2cc7,'change',()=>{this['_requireRevisionName']&&!_0xdc2cc7['value']||this['fire']('setName',{'id':this['id'],'name':_0xdc2cc7['value']}),_0xdc2cc7['value']||(_0xdc2cc7['value']=this['name']?this['name']:this['_createdAtFormatted']);});}['select'](){this['isSelected']=!0x0;}['deselect'](){this['isSelected']=!0x1;}['highlight'](){this['isHighlighted']=!0x0;}['unhighlight'](){this['isHighlighted']=!0x1;}}function mi(_0x66b75a,_0x38953f){const _0x704316=_0x175515['fromJSDate'](_0x66b75a)['setLocale'](_0x38953f),_0x3a05e7=_0x175515['local'](),_0x53d58c=_0x3a05e7['minus']({'days':0x1})['startOf']('day');let _0x458a85,_0x49abbc;return _0x704316['hasSame'](_0x3a05e7,'day')?(_0x458a85=_0x704316['startOf']('day')['toJSDate'](),_0x49abbc=_0x704316['toRelativeCalendar']()):_0x704316['hasSame'](_0x53d58c,'day')?(_0x458a85=_0x53d58c['toJSDate'](),_0x49abbc=_0x704316['toRelativeCalendar']()):_0x704316['hasSame'](_0x3a05e7,'week')?(_0x458a85=_0x704316['startOf']('week')['toJSDate'](),_0x49abbc=_0x704316['weekdayLong']||''):_0x704316['hasSame'](_0x3a05e7,'year')?(_0x458a85=_0x704316['startOf']('month')['toJSDate'](),_0x49abbc=_0x704316['monthLong']||''):(_0x458a85=_0x704316['startOf']('year')['toJSDate'](),_0x49abbc=String(_0x704316['year'])),{'startDate':_0x458a85,'localizedPeriodName':_0x49abbc};}class vi extends ts{['startDate'];['revisionViews'];['_revisionActions'];['_requireRevisionName'];constructor(_0x5d3280,_0x4ec5cc,_0x39e435,_0x5c59dc){super(_0x5d3280);const _0x9b8465=mi(_0x4ec5cc,this['locale']['uiLanguage'])['localizedPeriodName'];this['startDate']=_0x4ec5cc,this['revisionViews']=this['createCollection'](),this['_revisionActions']=_0x39e435,this['_requireRevisionName']=_0x5c59dc,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':_0x9b8465}]},{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__time-period__revisions']},'children':this['revisionViews']}]});}['addRevision'](_0x42fa39){const _0x16fa14=new hi(this['locale'],_0x42fa39,this['_revisionActions'],this['_requireRevisionName']);this['revisionViews']['add'](_0x16fa14);}['removeRevision'](_0x2fd7f0){const _0x2a0e5b=this['revisionViews']['find'](_0x1854c7=>_0x1854c7['id']===_0x2fd7f0['id']);this['revisionViews']['remove'](_0x2a0e5b);}}class as extends ts{constructor(_0x4f58fc){super(_0x4f58fc);const _0x37129e=new _0x18863c();_0x37129e['content']=_0x590976['history'],this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset_all','ck-revision-history-sidebar__header']},'children':[_0x37129e,{'tag':'span','attributes':{'class':['ck','ck-revision-history-sidebar__header__label']},'children':[R(_0x4f58fc,'Revision\x20history')]}]});}}class di extends ts{['timePeriodViews'];['_revisions'];['_revisionActions'];['_requireRevisionName'];constructor(_0x559629,_0x17fcce,_0x41ab78,_0x5a4bf6){super(_0x559629);const _0x366434=this['bindTemplate'];this['timePeriodViews']=this['createCollection'](),this['timePeriodViews']['delegate']('select')['to'](this),this['timePeriodViews']['delegate']('setName')['to'](this),this['_revisions']=_0x17fcce,this['_revisionActions']=_0x41ab78,this['_requireRevisionName']=_0x5a4bf6,this['on']('select',(_0x3a9181,_0x562dcc)=>{this['fire']('revisionSelected',_0x562dcc);}),this['on']('setName',(_0xb6ae4,_0x1a8618)=>{this['fire']('revisionSetName',_0x1a8618);}),this['set']('isEnabled',!0x1),this['setTemplate']({'tag':'div','attributes':{'class':['ck','ck-reset','ck-rounded-corners','ck-revision-history-sidebar']},'children':[new as(_0x559629),{'tag':'div','attributes':{'class':['ck','ck-revision-history-sidebar__timeline',_0x366434['if']('isEnabled','ck-disabled',_0xaa7e75=>!_0xaa7e75)]},'children':this['timePeriodViews']}]});}['render'](){super['render']();for(const _0x251f82 of this['_revisions'])this['_addRevision'](_0x251f82);this['_revisions']['on']('add',(_0x184dca,_0x3fb810)=>{this['_addRevision'](_0x3fb810);}),this['_revisions']['on']('remove',(_0xa29032,_0x5eb53d)=>{this['_removeRevision'](_0x5eb53d);});}get['revisionViews'](){return this['timePeriodViews']['map'](_0x5125ed=>_0x5125ed['revisionViews']['map'](_0x5eeba4=>_0x5eeba4))['flat']();}['selectRevision'](_0x1676bb){for(const _0x28b87a of this['revisionViews'])_0x1676bb&&_0x1676bb['id']===_0x28b87a['id']?_0x28b87a['select']():_0x28b87a['deselect']();}['highlightRevisions'](_0x3a7c37){for(const _0x48d172 of this['revisionViews'])_0x3a7c37['some'](({id:_0x62847d})=>_0x62847d===_0x48d172['id'])?_0x48d172['highlight']():_0x48d172['unhighlight']();}['_addRevision'](_0xe6810e){const _0x4528a7=mi(_0xe6810e['createdAt'],this['locale']['uiLanguage'])['startDate'];let _0x5d778d=this['timePeriodViews']['get'](0x0);_0x5d778d&&_0x5d778d['startDate']['getTime']()===_0x4528a7['getTime']()||(_0x5d778d=new vi(this['locale'],_0x4528a7,this['_revisionActions'],this['_requireRevisionName']),this['timePeriodViews']['add'](_0x5d778d)),_0x5d778d['addRevision'](_0xe6810e);}['_removeRevision'](_0x12537d){const _0x37b793=mi(_0x12537d['createdAt'],this['locale']['uiLanguage'])['startDate'];this['_getTimePeriodViewByStartDate'](_0x37b793)['removeRevision'](_0x12537d);}['_getTimePeriodViewByStartDate'](_0x1abd3b){return this['timePeriodViews']['find'](_0x3ad388=>_0x3ad388['startDate']['getTime']()===_0x1abd3b['getTime']());}}class g extends _0x39b81a{['_revisionViewer'];['_revisionsRepository'];['_sidebarView'];static ['defaultRevisionActions']=/* #__PURE__ -- @preserve */
|
|
27
27
|
((()=>['compareAgainstSelected','restoreRevision','nameRevision'])());static ['availableRevisionActions']=/* #__PURE__ -- @preserve */
|
|
28
|
-
|
|
29
|
-
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x2d3e33,_0x5de85d){super(_0x5de85d),this['sourceElement']=_0x2d3e33,this['model']['document']['createRoot']();const _0x3f2be0=new ot(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new st(this,_0x3f2be0);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x56cebd,_0x5f5720){const _0x367dac=new this(_0x56cebd,_0x5f5720);return await _0x367dac['initPlugins'](),await _0x367dac['ui']['init'](_0x56cebd),await _0x367dac['data']['init'](_0x367dac['config']['get']('initialData')||''),_0x367dac['fire']('ready'),_0x367dac;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x115aaf{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x44e617){super(_0x44e617),this['result']='end';}}class H extends _0x115aaf{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x10ddc6){if(super(_0x10ddc6),!this['editor']['config']['get']('revisionHistory'))throw new _0xf4792a('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x296abe=>this['_showRevisionViewer']({..._0x296abe,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x533a35=>this['_closeRevisionViewer'](_0x533a35)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x5f4c0d=>this['_restoreRevision'](_0x5f4c0d)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0x3bcb21){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0x3bcb21;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x4e268e){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x4e268e);}['getRevision'](_0x308f7d){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x308f7d);}['getRevisions'](_0xf92fee){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0xf92fee||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x2abbf1=this['editor'],_0x5e9717=_0x4f5848(_0x2abbf1,p),_0x7021db=_0x2abbf1['plugins']['get']('RevisionTracker'),_0xae6692=_0x2abbf1['plugins']['get']('Users')['users'];return _0x5e9717['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x5e9717['lazyRoots'],(_0x5e9717['plugins']['push'](k,d,m,class extends _0x115aaf{static get['requires'](){return[d,'Users'];}['init'](){const _0x5a243a=this['editor']['plugins']['get']('Users');for(const _0x3efaef of _0xae6692)_0x3efaef['isAnonymous']||_0x5a243a['getUser'](_0x3efaef['id'])||_0x5a243a['addUser'](_0x3efaef);const _0x23d3cf=_0x7021db['repository']['getRevisions']();let _0x1059b6=null;const _0x2edba4=this['editor']['plugins']['get']('RevisionViewer');_0x2edba4['adapter']=_0x7021db['adapter'],_0x2edba4['bind']('isEnabled')['to'](_0x7021db),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x2abbf1,'isReadOnly',_0x4083ad=>!_0x4083ad);for(const _0x4b274b of _0x23d3cf){const _0xe81e47=null===_0x4b274b['creator'];if(_0xe81e47&&_0x4b274b['toVersion']===_0x4b274b['fromVersion'])continue;const _0x1d3f0d=_0x4b274b['toJSON']();_0x2edba4['addRevisionData'](_0x1d3f0d,(_0x2a7b45,_0x2b2eea,_0xbda917)=>{if(_0xe81e47){if(_0x1059b6)_0x1059b6['_update'](_0x2a7b45,_0x2b2eea);else{if(!_0x2b2eea){const _0x37e2ea=_0xbda917['toJSON']();_0x37e2ea['id']=_0x19b749(),_0x7021db['saveRevision'](_0x37e2ea,_0xbda917['toVersion'])['then'](_0x515ac2=>{_0x1059b6=_0x515ac2;});}}}else _0x4b274b['_update'](_0x2a7b45,_0x2b2eea);});}}},R),_0x5e9717);}['_enhanceShowRevisionViewerCallback'](){const _0xee21e2=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x27771d=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x12d4c7=this['editor']['plugins']['get']('Autosave');await _0x12d4c7['save']();}else await _0x27771d['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1db8a6=this['editor']['plugins']['get']('Dialog');_0x1db8a6['isOpen']&&_0x1db8a6['hide']();}const _0x2d3a79=this['_getRevisionViewerEditorConfig']();return _0xee21e2(_0x2d3a79)['then'](_0x112952=>{return(this['_viewerEditor']=_0x112952,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x112952;})['catch'](_0xad975f=>(console['error'](_0xad975f),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x279dee=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'](),_0x279dee(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x34806a=this['editor']['plugins']['get']('Annotations');_0x34806a['refreshVisibility'](),_0x34806a['refreshPositioning']();}})));}['_showRevisionViewer'](_0x137d04){const _0xb70b11=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x2ee09a=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xc828d2=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return g['create'](_0xc828d2,_0x137d04)['then'](_0x47f032=>(_0x2ee09a['style']['display']='block',_0xb70b11['style']['display']='none',_0x47f032));}['_closeRevisionViewer'](_0x5900fc){const _0x12ded9=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x12ded9['style']['display']='',_0x5900fc['destroy']();}async['_restoreRevision'](_0x36e1d4){const _0x574dbd=this['editor'],_0x21cda8=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x519566=_0x574dbd['plugins']['get']('RevisionTracker'),_0x135679=_0x21cda8['repository']['getRevision'](_0x36e1d4);let _0x3513cb,_0xacb32d,_0x657833;try{_0x3513cb=await _0x21cda8['getRevisionData'](_0x135679),_0xacb32d=await _0x21cda8['getRevisionRootsAttributes'](_0x135679);}catch(_0x40f60e){return void console['error'](_0x40f60e);}_0x574dbd['model']['change'](_0x18da4f=>{for(const _0x5c4fcf of Array['from'](_0x574dbd['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x18da4f['removeMarker'](_0x5c4fcf);}),_0x21cda8['isReady']=!0x1,_0x574dbd['model']['enqueueChange'](_0x34c9dd=>{_0x34c9dd['setSelection'](null),_0x34c9dd['removeSelectionAttribute'](_0x574dbd['model']['document']['selection']['getAttributeKeys']());const _0x544408=Object['keys'](_0x3513cb);for(const _0x3ea3ad of _0x574dbd['model']['document']['roots'])'$graveyard'!=_0x3ea3ad['rootName']&&_0x3ea3ad['isAttached']()&&!_0x544408['includes'](_0x3ea3ad['rootName'])&&_0x34c9dd['detachRoot'](_0x3ea3ad);for(const _0x2af0e6 of _0x544408){let _0x366610=_0x574dbd['model']['document']['getRoot'](_0x2af0e6);_0x366610&&_0x366610['isAttached']()||(_0x366610=_0x34c9dd['addRoot'](_0x2af0e6));const _0x35ae06=_0xacb32d[_0x2af0e6],_0x4c5516=Object['keys'](_0x35ae06),_0x3d7269=_0x3513cb[_0x2af0e6];for(const _0x5dc528 of _0x366610['getAttributeKeys']())_0x4c5516['includes'](_0x5dc528)||_0x34c9dd['removeAttribute'](_0x5dc528,_0x366610);for(const _0x49d612 of _0x4c5516)_0x34c9dd['setAttribute'](_0x49d612,_0xacb32d[_0x2af0e6][_0x49d612],_0x366610);_0x34c9dd['remove'](_0x34c9dd['createRangeIn'](_0x366610)),_0x34c9dd['insert'](_0x574dbd['data']['parse'](_0x3d7269,_0x366610),_0x366610,0x0);}});const _0x14343e=w(_0x574dbd['locale'],'Restored');if(_0x135679['name'])_0x657833=-0x1==_0x135679['name']['indexOf'](_0x14343e)?_0x14343e+':\x20'+_0x135679['name']:_0x135679['name'];else _0x657833=_0x14343e+':\x20'+(_0x135679['createdAt']['toLocaleDateString'](_0x574dbd['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x135679['createdAt']['toLocaleTimeString'](_0x574dbd['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x519566['saveRevision']({'name':_0x657833}),_0x21cda8['isReady']=!0x0,_0x574dbd['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,le as RevisionViewerLoadingOverlay,m as RevisionViewerUI,A as RevisionsRepository,R 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(_0x1c9e84){super(_0x1c9e84),this['_revisionViewer']=_0x1c9e84['plugins']['get'](d),this['_revisionsRepository']=this['_revisionViewer']['repository'],this['_sidebarView']=null;}['init'](){const _0x17030b=this['_revisionsRepository']['_revisions'],_0x5e5a90=this['_createRevisionActions'](),_0x80bab0=this['editor']['config']['get']('revisionHistory.viewerSidebarContainer');this['_sidebarView']=new di(this['editor']['locale'],_0x17030b,_0x5e5a90,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',(_0xb2aa33,_0x28fa69)=>{_0x28fa69['revisionViews']['on']('add',(_0x556cde,_0x4c3f24)=>{_0x4c3f24['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)),_0x80bab0['appendChild'](this['_sidebarView']['element']);}['destroy'](){this['_sidebarView']['element']['remove'](),this['_sidebarView']['destroy']();}['_handleEditorDataReady'](){const _0x283922=this['_revisionsRepository']['getRevision'](0x0);if(_0x283922){const _0x24f63c=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x283922['id']);this['_revisionViewer']['compare'](_0x283922,_0x24f63c);}}['_handleRevisionSelected'](_0x471fcf,_0xfa79e4){const _0x359969=this['_revisionsRepository']['getRevision'](_0xfa79e4['id']),_0x565a73=this['_revisionsRepository']['getEarlierVisibleRevision'](_0x359969['id']);this['_revisionViewer']['compare'](_0x359969,_0x565a73);}['_handleRevisionSetName'](_0x292662,_0x24c3c0){this['_revisionsRepository']['getRevision'](_0x24c3c0['id'])['setName'](_0x24c3c0['name']);}['_handleDiffChange'](_0x22a8cc,_0x8da1e9,_0x102587){const _0x37d7be=this['_revisionsRepository']['getRevisionsInDiff'](_0x102587);_0x37d7be['length']>0x2?(this['_sidebarView']['highlightRevisions'](_0x37d7be),this['_sidebarView']['selectRevision'](null)):(this['_sidebarView']['highlightRevisions']([]),this['_sidebarView']['selectRevision'](_0x37d7be[0x0]));}['_createRevisionActions'](){const _0x25c940=this['editor'],_0x5c2a98=g['availableRevisionActions'],_0x46c4f7=_0x25c940['config']['get']('revisionHistory.revisionActions')||g['defaultRevisionActions'];if(_0x46c4f7['length'])return _0x46c4f7['map'](_0x40e8f0=>{const _0x1e23b3='string'==typeof _0x40e8f0?Object['assign']({},_0x5c2a98[_0x40e8f0]):_0x40e8f0;return _0x1e23b3['action']=_0x1e23b3['action']['bind'](this,_0x25c940),_0x1e23b3['isVisible']&&(_0x1e23b3['isVisible']=_0x1e23b3['isVisible']['bind'](this,_0x25c940)),_0x1e23b3;});}}function bt(){return{'compareAgainstSelected':{'name':'Compare\x20against\x20selected','action':({plugins:_0x3df00d},_0x20d401)=>{const _0xcb6355=_0x3df00d['get'](d),_0xbe7cdf=_0xcb6355['repository'];let _0x5cc3ac=_0xcb6355['diff']['newRevisionId'],_0x28b596=_0x20d401['id'];_0xbe7cdf['getIndex'](_0x5cc3ac)>_0xbe7cdf['getIndex'](_0x28b596)&&([_0x5cc3ac,_0x28b596]=[_0x28b596,_0x5cc3ac]),_0xcb6355['compare'](_0x5cc3ac,_0x28b596);},'isVisible':({plugins:_0x1769a3},_0xab489)=>{const _0x1818c9=_0x1769a3['get'](d);return!(_0x1818c9['repository']['getRevisionsInDiff'](_0x1818c9['diff'])['length']>0x2)&&!_0xab489['isSelected'];}},'restoreRevision':{'name':'Restore\x20this\x20revision','action':(_0x496b14,{id:_0x9c15cf})=>{_0x496b14['config']['get']('revisionHistory')['restoreRevisionCallback'](_0x9c15cf);},'isVisible':({plugins:_0x44fdb6},_0x122ecf)=>!!_0x44fdb6['get'](d)['repository']['getLaterVisibleRevision'](_0x122ecf['id'])},'nameRevision':{'name':'Name\x20this\x20revision','action':({plugins:_0xc60e10},{id:_0x320286,revisionNameView:_0x50e620})=>{const _0x57a0d1=_0xc60e10['get'](d),_0x37367a=_0x57a0d1['repository']['getEarlierVisibleRevision'](_0x320286);_0x57a0d1['compare'](_0x320286,_0x37367a),_0x50e620['focus'](),_0x50e620['fieldView']['select']();}}};}class et extends ot{['_view'];['_toolbarConfig'];['_elementReplacer'];get['view'](){return this['_view'];}constructor(_0x3737ea,_0x457eb4){super(_0x3737ea),this['_view']=_0x457eb4,this['_toolbarConfig']=ht(_0x3737ea['config']['get']('toolbar')),this['_elementReplacer']=new ct();}get['element'](){return this['view']['element'];}['init'](_0x200c14){const _0x992019=this['editor'],_0x14baea=this['view'],_0x345367=_0x992019['editing']['view'],_0x1d5dce=_0x14baea['editable'],_0x512ccd=_0x345367['document']['getRoot']();_0x1d5dce['name']=_0x512ccd['rootName'],_0x14baea['render']();const _0x540034=_0x1d5dce['element'];this['setEditableElement'](_0x1d5dce['name'],_0x540034),_0x14baea['editable']['bind']('isFocused')['to'](this['focusTracker']),_0x345367['attachDomRoot'](_0x540034),this['_elementReplacer']['replace'](_0x200c14,this['element']),this['_initToolbar'](),this['fire']('ready');}['destroy'](){super['destroy']();const _0x2c3abd=this['view'],_0x2d38ec=this['editor']['editing']['view'];this['_elementReplacer']['restore'](),_0x2d38ec['detachDomRoot'](_0x2c3abd['editable']['name']),_0x2c3abd['destroy']();}['_initToolbar'](){const _0x5ea20f=this['view'];_0x5ea20f['stickyPanel']['bind']('isActive')['to'](this['focusTracker'],'isFocused'),_0x5ea20f['stickyPanel']['limiterElement']=_0x5ea20f['element'],_0x5ea20f['stickyPanel']['bind']('viewportTopOffset')['to'](this,'viewportOffset',({top:_0x672bb})=>_0x672bb),_0x5ea20f['toolbar']['fillFromConfig'](this['_toolbarConfig'],this['componentFactory']),this['addToolbar'](_0x5ea20f['toolbar']);}}class st extends dt{['_editable'];['stickyPanel'];['toolbar'];get['editable'](){return this['_editable'];}constructor(_0x15a0ca,_0x53f8d5,_0x153a71={}){super(_0x15a0ca),this['stickyPanel']=new lt(_0x15a0ca),this['toolbar']=new nt(_0x15a0ca,{'shouldGroupWhenFull':_0x153a71['shouldToolbarGroupWhenFull']}),this['_editable']=new ut(_0x15a0ca,_0x53f8d5);}['render'](){super['render'](),this['stickyPanel']['content']['add'](this['toolbar']),this['top']['add'](this['stickyPanel']),this['main']['add'](this['editable']);}}class w extends/* #__PURE__ -- @preserve */
|
|
29
|
+
rt(it){['_ui'];get['ui'](){return this['_ui'];}constructor(_0x14f9a2,_0x1da954){super(_0x1da954),this['sourceElement']=_0x14f9a2,this['model']['document']['createRoot']();const _0x3820d9=new st(this['locale'],this['editing']['view'],{'shouldToolbarGroupWhenFull':!0x0});this['_ui']=new et(this,_0x3820d9);}['destroy'](){return this['updateSourceElement'](),this['ui']['destroy'](),super['destroy']();}static async['create'](_0x536f62,_0x44d9ec){const _0x309a33=new this(_0x536f62,_0x44d9ec);return await _0x309a33['initPlugins'](),await _0x309a33['ui']['init'](_0x536f62),await _0x309a33['data']['init'](_0x309a33['config']['get']('initialData')||''),_0x309a33['fire']('ready'),_0x309a33;}}const p=['RevisionHistoryUI','RestrictedEditingMode'];class k extends _0x39b81a{['result'];static get['pluginName'](){return'RevisionViewerIntegration';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1e806d){function _0x24bb69(_0x5b9793){return _0x5b9793['map'](_0x55fe54=>String['fromCharCode'](_0x55fe54))['join']('');}super(_0x1e806d),this['result']='end',_0x1e806d[_0x24bb69([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x24bb69([0x76,0x69,0x65,0x77])][_0x24bb69([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x24bb69([0x61,0x75,0x74,0x6f]),_0x1e806d[_0x24bb69([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74])]=()=>window[_0x24bb69([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x24bb69([0x72,0x65,0x73,0x6f,0x6c,0x76,0x65])]({[_0x24bb69([0x73,0x74,0x61,0x74,0x75,0x73])]:_0x24bb69([0x6f,0x6b])});}}class H extends _0x39b81a{['_viewerEditor'];static get['pluginName'](){return'RevisionHistory';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}static get['requires'](){return[l,u];}constructor(_0x5efd0b){if(super(_0x5efd0b),!this['editor']['config']['get']('revisionHistory'))throw new _0x3ed888('revision-history-missing-configuration',this);this['_viewerEditor']=null,this['editor']['config']['define']('revisionHistory.showRevisionViewerCallback',_0x32c269=>this['_showRevisionViewer']({..._0x32c269,'translations':this['editor']['locale']['translations']})),this['editor']['config']['define']('revisionHistory.closeRevisionViewerCallback',_0x25e40c=>this['_closeRevisionViewer'](_0x25e40c)),this['editor']['config']['define']('revisionHistory.restoreRevisionCallback',_0x423f0d=>this['_restoreRevision'](_0x423f0d)),this['editor']['config']['define']('revisionHistory.requireRevisionName',!0x1),this['_enhanceShowRevisionViewerCallback'](),this['_enhanceCloseRevisionViewerCallback']();}set['adapter'](_0xe38c8c){this['editor']['plugins']['get']('RevisionTracker')['adapter']=_0xe38c8c;}get['adapter'](){return this['editor']['plugins']['get']('RevisionTracker')['adapter'];}['addRevisionData'](_0x89fa29){return this['editor']['plugins']['get']('RevisionTracker')['addRevisionData'](_0x89fa29);}['getRevision'](_0x8ba865){return this['editor']['plugins']['get']('RevisionsRepository')['getRevision'](_0x8ba865);}['getRevisions'](_0x2a8786){return this['editor']['plugins']['get']('RevisionsRepository')['getRevisions'](_0x2a8786||{'toJSON':!0x1});}['_getRevisionViewerEditorConfig'](){const _0x118cbf=this['editor'],_0x2c9ed0=_0x6935f0(_0x118cbf,p),_0x39f633=_0x118cbf['plugins']['get']('RevisionTracker'),_0x260e48=_0x118cbf['plugins']['get']('Users')['users'];return _0x2c9ed0['toolbar']=['exitToEditing','restoreRevision','changesNavigation'],delete _0x2c9ed0['lazyRoots'],(_0x2c9ed0['plugins']['push'](k,d,m,class extends _0x39b81a{static get['requires'](){return[d,'Users'];}['init'](){const _0x3c852f=this['editor']['plugins']['get']('Users');for(const _0x311f2d of _0x260e48)_0x311f2d['isAnonymous']||_0x3c852f['getUser'](_0x311f2d['id'])||_0x3c852f['addUser'](_0x311f2d);const _0x10f66c=_0x39f633['repository']['getRevisions']();let _0xe9c31a=null;const _0x4219e1=this['editor']['plugins']['get']('RevisionViewer');_0x4219e1['adapter']=_0x39f633['adapter'],_0x4219e1['bind']('isEnabled')['to'](_0x39f633),this['editor']['commands']['get']('restoreRevision')['bind']('isEnabled')['to'](_0x118cbf,'isReadOnly',_0x37f069=>!_0x37f069);for(const _0x3aa848 of _0x10f66c){const _0x464d7a=null===_0x3aa848['creator'];if(_0x464d7a&&_0x3aa848['toVersion']===_0x3aa848['fromVersion'])continue;const _0x2fb5e6=_0x3aa848['toJSON']();_0x4219e1['addRevisionData'](_0x2fb5e6,(_0xa8c82d,_0x33152a,_0x55b063)=>{if(_0x464d7a){if(_0xe9c31a)_0xe9c31a['_update'](_0xa8c82d,_0x33152a);else{if(!_0x33152a){const _0x266870=_0x55b063['toJSON']();_0x266870['id']=_0x4834e8(),_0x39f633['saveRevision'](_0x266870,_0x55b063['toVersion'])['then'](_0x5486ab=>{_0xe9c31a=_0x5486ab;});}}}else _0x3aa848['_update'](_0xa8c82d,_0x33152a);});}}},g),_0x2c9ed0);}['_enhanceShowRevisionViewerCallback'](){const _0x33d456=this['editor']['config']['get']('revisionHistory')['showRevisionViewerCallback'];this['editor']['config']['set']('revisionHistory.showRevisionViewerCallback',async()=>{this['editor']['enableReadOnlyMode']('revision-history-viewer-opened');const _0x26637a=this['editor']['plugins']['get']('RevisionTracker');if(this['editor']['plugins']['has']('Autosave')){const _0x41670d=this['editor']['plugins']['get']('Autosave');await _0x41670d['save']();}else await _0x26637a['update']();if(this['editor']['plugins']['has']('PaginationLookup')&&this['editor']['plugins']['get']('PaginationLookup')['_recalculatePageBreaks'](),this['editor']['plugins']['has']('Dialog')){const _0x1bce9f=this['editor']['plugins']['get']('Dialog');_0x1bce9f['isOpen']&&_0x1bce9f['hide']();}const _0x3af338=this['_getRevisionViewerEditorConfig']();return _0x33d456(_0x3af338)['then'](_0x1ed250=>{return(this['_viewerEditor']=_0x1ed250,this['editor']['plugins']['has']('Annotations'))&&this['editor']['plugins']['get']('Annotations')['refreshVisibility'](),_0x1ed250;})['catch'](_0x40b4f7=>(console['error'](_0x40b4f7),this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),null));});}['_enhanceCloseRevisionViewerCallback'](){const _0x50016b=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'](),_0x50016b(this['_viewerEditor'])['then'](()=>{if(this['editor']['disableReadOnlyMode']('revision-history-viewer-opened'),this['_viewerEditor']=null,this['editor']['plugins']['has']('Annotations')){const _0x403109=this['editor']['plugins']['get']('Annotations');_0x403109['refreshVisibility'](),_0x403109['refreshPositioning']();}})));}['_showRevisionViewer'](_0x7a89c7){const _0x535379=this['editor']['config']['get']('revisionHistory.editorContainer'),_0x404179=this['editor']['config']['get']('revisionHistory.viewerContainer'),_0xf27a89=this['editor']['config']['get']('revisionHistory.viewerEditorElement');return w['create'](_0xf27a89,_0x7a89c7)['then'](_0x15781f=>(_0x404179['style']['display']='block',_0x535379['style']['display']='none',_0x15781f));}['_closeRevisionViewer'](_0x2f764d){const _0x2829a9=this['editor']['config']['get']('revisionHistory.editorContainer');return this['editor']['config']['get']('revisionHistory.viewerContainer')['style']['display']='none',_0x2829a9['style']['display']='',_0x2f764d['destroy']();}async['_restoreRevision'](_0x5eceba){const _0x28d2eb=this['editor'],_0x157648=this['_viewerEditor']['plugins']['get']('RevisionViewer'),_0x53b55c=_0x28d2eb['plugins']['get']('RevisionTracker'),_0x598d7b=_0x157648['repository']['getRevision'](_0x5eceba);let _0x554384,_0x44c905,_0x4d6dda;try{_0x554384=await _0x157648['getRevisionData'](_0x598d7b),_0x44c905=await _0x157648['getRevisionRootsAttributes'](_0x598d7b);}catch(_0x4a6576){return void console['error'](_0x4a6576);}_0x28d2eb['model']['change'](_0x158368=>{for(const _0x5878a4 of Array['from'](_0x28d2eb['model']['markers']['getMarkersGroup']('restrictedEditingException')))_0x158368['removeMarker'](_0x5878a4);}),_0x157648['isReady']=!0x1,_0x28d2eb['model']['enqueueChange'](_0x49c5c5=>{_0x49c5c5['setSelection'](null),_0x49c5c5['removeSelectionAttribute'](_0x28d2eb['model']['document']['selection']['getAttributeKeys']());const _0x5aadd9=Object['keys'](_0x554384);for(const _0x558587 of _0x28d2eb['model']['document']['roots'])'$graveyard'!=_0x558587['rootName']&&_0x558587['isAttached']()&&!_0x5aadd9['includes'](_0x558587['rootName'])&&_0x49c5c5['detachRoot'](_0x558587);for(const _0x530478 of _0x5aadd9){let _0x8afdf6=_0x28d2eb['model']['document']['getRoot'](_0x530478);_0x8afdf6&&_0x8afdf6['isAttached']()||(_0x8afdf6=_0x49c5c5['addRoot'](_0x530478));const _0x5b7c96=_0x44c905[_0x530478],_0x5c0c80=Object['keys'](_0x5b7c96),_0x45d7b6=_0x554384[_0x530478];for(const _0x5987bd of _0x8afdf6['getAttributeKeys']())_0x5c0c80['includes'](_0x5987bd)||_0x49c5c5['removeAttribute'](_0x5987bd,_0x8afdf6);for(const _0x423063 of _0x5c0c80)_0x49c5c5['setAttribute'](_0x423063,_0x44c905[_0x530478][_0x423063],_0x8afdf6);_0x49c5c5['remove'](_0x49c5c5['createRangeIn'](_0x8afdf6)),_0x49c5c5['insert'](_0x28d2eb['data']['parse'](_0x45d7b6,_0x8afdf6),_0x8afdf6,0x0);}});const _0x574e8c=R(_0x28d2eb['locale'],'Restored');if(_0x598d7b['name'])_0x4d6dda=-0x1==_0x598d7b['name']['indexOf'](_0x574e8c)?_0x574e8c+':\x20'+_0x598d7b['name']:_0x598d7b['name'];else _0x4d6dda=_0x574e8c+':\x20'+(_0x598d7b['createdAt']['toLocaleDateString'](_0x28d2eb['locale']['uiLanguage'],{'month':'long','day':'numeric'})+',\x20'+_0x598d7b['createdAt']['toLocaleTimeString'](_0x28d2eb['locale']['uiLanguage'],{'hour':'numeric','minute':'numeric'}));return await _0x53b55c['saveRevision']({'name':_0x4d6dda}),_0x157648['isReady']=!0x0,_0x28d2eb['config']['get']('revisionHistory')['closeRevisionViewerCallback']();}}export{a as Revision,H as RevisionHistory,u as RevisionHistoryUI,l as RevisionTracker,d as RevisionViewer,de as RevisionViewerLoadingOverlay,m as RevisionViewerUI,j as RevisionsRepository,g as RevisionsSidebar};
|