@ckeditor/ckeditor5-real-time-collaboration 45.2.1-alpha.9 → 46.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/real-time-collaboration.js +1 -1
- package/dist/index.js +6 -6
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +15 -15
- package/src/augmentation.d.ts +2 -2
- package/src/common-translations.js +1 -1
- package/src/config.d.ts +1 -1
- package/src/index.d.ts +15 -11
- package/src/index.js +1 -1
- package/src/presencelist/presencelistui.d.ts +2 -2
- package/src/presencelist/presencelistui.js +1 -1
- package/src/presencelist/view/presencecounterview.d.ts +1 -1
- package/src/presencelist/view/presencecounterview.js +1 -1
- package/src/presencelist/view/presencedropdownlistitemview.d.ts +1 -1
- package/src/presencelist/view/presencedropdownlistitemview.js +1 -1
- package/src/presencelist/view/presencedropdownlistview.d.ts +1 -28
- package/src/presencelist/view/presencedropdownlistview.js +1 -1
- package/src/presencelist/view/presenceinlinelistitemview.d.ts +1 -1
- package/src/presencelist/view/presenceinlinelistitemview.js +1 -1
- package/src/presencelist/view/presenceinlinelistview.d.ts +3 -3
- package/src/presencelist/view/presenceinlinelistview.js +1 -1
- package/src/presencelist/view/presencelistview.d.ts +0 -15
- package/src/presencelist/view/presencelistview.js +1 -1
- package/src/presencelist.d.ts +3 -3
- package/src/presencelist.js +1 -1
- package/src/realtimecollaborativecomments/cloudservicescommentsadapter.d.ts +3 -3
- package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +2 -2
- package/src/realtimecollaborativecomments.d.ts +4 -4
- package/src/realtimecollaborativecomments.js +1 -1
- package/src/realtimecollaborativeediting/realtimecollaborationclient.d.ts +4 -4
- package/src/realtimecollaborativeediting/realtimecollaborationclient.js +2 -2
- package/src/realtimecollaborativeediting/sessions.d.ts +7 -7
- package/src/realtimecollaborativeediting/sessions.js +1 -1
- package/src/realtimecollaborativeediting/usermarkers.d.ts +2 -2
- package/src/realtimecollaborativeediting/usermarkers.js +1 -1
- package/src/realtimecollaborativeediting/websocketgateway.d.ts +7 -8
- package/src/realtimecollaborativeediting/websocketgateway.js +2 -2
- package/src/realtimecollaborativeediting.d.ts +2 -2
- package/src/realtimecollaborativeediting.js +1 -1
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.d.ts +4 -4
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +2 -2
- package/src/realtimecollaborativerevisionhistory.d.ts +3 -3
- package/src/realtimecollaborativerevisionhistory.js +1 -1
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.d.ts +3 -3
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +2 -2
- package/src/realtimecollaborativetrackchanges.d.ts +3 -3
- package/src/realtimecollaborativetrackchanges.js +1 -1
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
24
|
-
((()=>_0x11f563)());[_0x460090(0x1cd)];[_0x460090(0x1d2)];[_0x460090(0x1b5)];[_0x460090(0x1b4)];[_0x460090(0x1eb)];[_0x460090(0x1f4)];[_0x460090(0x21c)];[_0x460090(0x294)];[_0x460090(0x23c)];[_0x460090(0x250)];[_0x460090(0x231)];[_0x460090(0x1c6)];[_0x460090(0x28c)];[_0x460090(0x236)];[_0x460090(0x258)];[_0x460090(0x295)];[_0x460090(0x27f)];[_0x460090(0x1b6)];static get[_0x460090(0x280)](){return[_0x322d2e,_0x293f85,_0x97cbb6,_0x431c54,_0x49213f,_0x1933e9];}static get[_0x460090(0x25b)](){const _0x25f3af=_0x460090;return _0x25f3af(0x1ea);}static get[_0x460090(0x1c5)](){return!0x0;}static get[_0x460090(0x235)](){return!0x0;}get[_0x460090(0x23a)](){const _0x4c20bb=_0x460090;return this[_0x4c20bb(0x1ad)]+this[_0x4c20bb(0x1cd)];}get[_0x460090(0x1ad)](){const _0x2a7655=_0x460090;return this[_0x2a7655(0x1b5)][_0x2a7655(0x25e)]-this[_0x2a7655(0x1cd)];}get[_0x460090(0x1c7)](){const _0x20ba91=_0x460090,_0x514a3f=this[_0x20ba91(0x1b5)][_0x20ba91(0x1de)]();for(let _0x182f45=_0x514a3f[_0x20ba91(0x24b)]-0x1;_0x182f45>=0x0;_0x182f45--){const _0xa24727=_0x514a3f[_0x182f45];if(!this[_0x20ba91(0x27f)][_0x20ba91(0x23b)](_0xa24727))return _0xa24727[_0x20ba91(0x1e6)]+0x1-this[_0x20ba91(0x1cd)];}return 0x0;}constructor(_0x42463a){const _0x4fdb8e=_0x460090;if(super(_0x42463a),this[_0x4fdb8e(0x1cd)]=0x0,this[_0x4fdb8e(0x1d2)]=null,this[_0x4fdb8e(0x1b5)]=new _0x543159(),this[_0x4fdb8e(0x1b3)][_0x4fdb8e(0x1c0)][_0x4fdb8e(0x1dc)](_0x4fdb8e(0x251),{}),this[_0x4fdb8e(0x1b4)]=this[_0x4fdb8e(0x1b3)][_0x4fdb8e(0x1c0)][_0x4fdb8e(0x1b7)](_0x4fdb8e(0x268)),!this[_0x4fdb8e(0x1b4)])throw new _0x1c6a94(_0x4fdb8e(0x1e1),this);const _0x307114=_0x42463a[_0x4fdb8e(0x1c0)][_0x4fdb8e(0x1b7)](_0x4fdb8e(0x28a))||_0x46e302;this[_0x4fdb8e(0x1eb)]=new l[(_0x4fdb8e(0x2a4))](_0x307114,this[_0x4fdb8e(0x1b4)]),this[_0x4fdb8e(0x1f4)]=this[_0x4fdb8e(0x1b3)][_0x4fdb8e(0x211)][_0x4fdb8e(0x1e7)],this[_0x4fdb8e(0x21c)]=new _0x36adc7(),this[_0x4fdb8e(0x294)]=[],this[_0x4fdb8e(0x23c)]=new WeakSet(),this[_0x4fdb8e(0x250)]=new Set(),this[_0x4fdb8e(0x1ee)](_0x4fdb8e(0x208),!0x1),this[_0x4fdb8e(0x1ee)](_0x4fdb8e(0x1cb),!0x1),this[_0x4fdb8e(0x231)]=null,this[_0x4fdb8e(0x1c6)]=!0x1,this[_0x4fdb8e(0x28c)]=null,this[_0x4fdb8e(0x236)]=0x12c,this[_0x4fdb8e(0x258)]=this[_0x4fdb8e(0x236)],this[_0x4fdb8e(0x295)]=null,this[_0x4fdb8e(0x27f)]=new WeakSet(),this[_0x4fdb8e(0x1b6)]=new Y(this[_0x4fdb8e(0x27f)]);}[_0x460090(0x24c)](){const _0x324f04=_0x460090,_0x29ea86=this[_0x324f04(0x1b3)],_0x1c9e4e=_0x29ea86[_0x324f04(0x283)][_0x324f04(0x1b7)](_0x49213f),_0x4b875c=_0x29ea86[_0x324f04(0x283)][_0x324f04(0x1b7)](_0x322d2e);this[_0x324f04(0x1c4)](_0x1c9e4e,_0x324f04(0x234),(_0x4bb744,_0x2525aa)=>{const _0x3ef32b=_0x324f04,_0x1e1835=_0x2525aa[0x0];_0x1e1835[_0x3ef32b(0x1cf)]&&(_0x4bb744[_0x3ef32b(0x278)]=_0x1c9e4e[_0x3ef32b(0x22b)](_0x1e1835[_0x3ef32b(0x1cf)]),_0x4bb744[_0x3ef32b(0x292)]()),null===_0x1e1835[_0x3ef32b(0x1cf)]&&(_0x4bb744[_0x3ef32b(0x278)]=null,_0x4bb744[_0x3ef32b(0x292)]());},{'priority':_0x324f04(0x247)}),this[_0x324f04(0x1c4)](_0x29ea86[_0x324f04(0x211)][_0x324f04(0x1e7)][_0x324f04(0x273)],_0x324f04(0x1ed),(_0x1fce29,_0x19c698)=>{const _0x1deab9=_0x324f04;_0x19c698[_0x1deab9(0x270)]&&this[_0x1deab9(0x29d)]();}),this[_0x324f04(0x1c4)](_0x29ea86[_0x324f04(0x225)][_0x324f04(0x248)],_0x324f04(0x21f),()=>{const _0x100365=_0x324f04;this[_0x100365(0x29d)]();}),this[_0x324f04(0x1bf)](),_0x29ea86[_0x324f04(0x211)]['on'](_0x324f04(0x27b),(_0x515b34,_0xe35c0)=>{const _0x7105be=_0x324f04,_0x543408=_0xe35c0[0x0];_0x543408[_0x7105be(0x259)]&&(this[_0x7105be(0x1b1)](_0x543408),this[_0x7105be(0x202)]()&&this[_0x7105be(0x264)]());}),this[_0x324f04(0x20e)](),this[_0x324f04(0x275)](_0x324f04(0x23d))['to'](_0x4b875c,_0x324f04(0x205),this,_0x324f04(0x1cb),(_0x2f8353,_0x17c8b7)=>_0x324f04(0x201)===_0x2f8353&&!_0x17c8b7),this['on'](_0x324f04(0x203),()=>{const _0x1c5222=_0x324f04;this[_0x1c5222(0x23d)]?_0x29ea86[_0x1c5222(0x246)](_0x1c5222(0x22a)):_0x29ea86[_0x1c5222(0x25a)](_0x1c5222(0x22a));}),this[_0x324f04(0x23d)]?_0x29ea86[_0x324f04(0x246)](_0x324f04(0x22a)):_0x29ea86[_0x324f04(0x25a)](_0x324f04(0x22a)),this[_0x324f04(0x1ee)](_0x324f04(0x210),!0x1);}async[_0x460090(0x2a3)](){const _0x5330fa=_0x460090,_0x5e1cf8=this[_0x5330fa(0x1b3)][_0x5330fa(0x283)][_0x5330fa(0x1b7)](_0x293f85),_0xdc18fb=this[_0x5330fa(0x1b3)][_0x5330fa(0x283)][_0x5330fa(0x1b7)](_0x322d2e);try{this[_0x5330fa(0x208)]=!0x0,_0x5e1cf8[_0x5330fa(0x27e)](this[_0x5330fa(0x1b4)]);const _0x708740=await this[_0x5330fa(0x1eb)][_0x5330fa(0x2a3)](_0xdc18fb[_0x5330fa(0x21a)],this[_0x5330fa(0x1c7)]);await this[_0x5330fa(0x2ab)](_0x708740)&&(this[_0x5330fa(0x208)]=!0x1,this[_0x5330fa(0x213)]());const _0x491269=await this[_0x5330fa(0x1eb)][_0x5330fa(0x26e)]();_0x5e1cf8[_0x5330fa(0x293)](this[_0x5330fa(0x1b4)],_0x491269),this[_0x5330fa(0x1df)](),this[_0x5330fa(0x210)]=!0x0;}catch(_0x3c38dd){if(function(_0x4c5c10){const _0x21a702=_0x5330fa;return _0x21a702(0x267)===_0x4c5c10[_0x21a702(0x1ef)];}(_0x3c38dd)&&this[_0x5330fa(0x1d2)])await this[_0x5330fa(0x252)]();else{if(function(_0x3a3208){const _0x5bfd08=_0x5330fa;return _0x5bfd08(0x1d1)===_0x3a3208[_0x5bfd08(0x1ef)];}(_0x3c38dd)){const _0x19d41a=_0x50ed73(this[_0x5330fa(0x1b3)][_0x5330fa(0x206)],_0x5330fa(0x1c8));this[_0x5330fa(0x286)](_0x19d41a);}else{if(!(_0x3c38dd instanceof Q))throw _0x3c38dd;this[_0x5330fa(0x286)]();}}}}[_0x460090(0x1db)](){const _0x48feae=_0x460090,_0x4da381=this[_0x48feae(0x1b3)][_0x48feae(0x283)][_0x48feae(0x1b7)](_0x322d2e),_0x90da1e=this[_0x48feae(0x1b3)][_0x48feae(0x283)][_0x48feae(0x1b7)](_0x293f85);this[_0x48feae(0x1b3)][_0x48feae(0x25a)](_0x48feae(0x1d4)),_0x90da1e[_0x48feae(0x2a6)][_0x48feae(0x23b)](this[_0x48feae(0x1b4)])&&_0x90da1e[_0x48feae(0x27e)](this[_0x48feae(0x1b4)]),_0x4da381[_0x48feae(0x244)](this),this[_0x48feae(0x261)](),super[_0x48feae(0x1db)]();}async[_0x460090(0x2ab)](_0x1a43b6){const _0x17bfb4=_0x460090;if(this[_0x17bfb4(0x1d2)]!==_0x1a43b6[_0x17bfb4(0x1d2)]&&this[_0x17bfb4(0x295)]!==_0x1a43b6[_0x17bfb4(0x290)])throw new Q();return this[_0x17bfb4(0x1d2)]=_0x1a43b6[_0x17bfb4(0x1d2)],this[_0x17bfb4(0x24e)]([],{..._0x1a43b6,'wereChangesApplied':!0x1,'data':_0x1a43b6[_0x17bfb4(0x1dd)]},_0x17bfb4(0x2a3));}async[_0x460090(0x1e8)](_0x258140,_0x326dfc=!0x1){const _0x40af2c=_0x460090,{connection:_0x2d4ec4}=this[_0x40af2c(0x1b3)][_0x40af2c(0x283)][_0x40af2c(0x1b7)](_0x322d2e);l[_0x40af2c(0x2a4)][_0x40af2c(0x26e)](_0x2d4ec4,this[_0x40af2c(0x1b4)])[_0x40af2c(0x2a7)](_0x4779aa=>this[_0x40af2c(0x238)](_0x4779aa))[_0x40af2c(0x260)](_0x14cafa=>{const _0x278db4=_0x40af2c;this[_0x278db4(0x22e)](_0x278db4(0x1fe),_0x14cafa);}),this[_0x40af2c(0x1c4)](this[_0x40af2c(0x1eb)],_0x40af2c(0x29e),this[_0x40af2c(0x24a)][_0x40af2c(0x275)](this)),this[_0x40af2c(0x1c4)](this[_0x40af2c(0x1eb)],_0x40af2c(0x1f2),(_0x245fb7,_0xc85d4c)=>{const _0x3feb49=_0x40af2c;this[_0x3feb49(0x22e)](_0x3feb49(0x1aa),_0xc85d4c);}),this[_0x40af2c(0x1c4)](this[_0x40af2c(0x1eb)],_0x40af2c(0x291),()=>{const _0x51c2eb=_0x40af2c;this[_0x51c2eb(0x210)]=!0x1;});const _0x3574d3=this[_0x40af2c(0x1b6)][_0x40af2c(0x243)](_0x258140);this[_0x40af2c(0x208)]=!0x0;const _0x139711=await this[_0x40af2c(0x1eb)][_0x40af2c(0x1ba)](_0x2d4ec4,this[_0x40af2c(0x25f)](_0x258140),_0x3574d3);if(this[_0x40af2c(0x1d2)]=_0x139711[_0x40af2c(0x1d2)],_0x326dfc){if(!_0x139711[_0x40af2c(0x217)])return void this[_0x40af2c(0x286)]();this[_0x40af2c(0x208)]=!0x1,this[_0x40af2c(0x213)](),this[_0x40af2c(0x1b5)][_0x40af2c(0x1d8)](),this[_0x40af2c(0x1cd)]=_0x139711[_0x40af2c(0x1e4)],this[_0x40af2c(0x1b5)][_0x40af2c(0x25e)]=this[_0x40af2c(0x1cd)],await this[_0x40af2c(0x24e)](_0x258140,_0x139711,_0x40af2c(0x1bd));}else await this[_0x40af2c(0x1bc)](_0x139711,_0x258140);this[_0x40af2c(0x1df)](),this[_0x40af2c(0x210)]=!0x0;}[_0x460090(0x1df)](){const _0x312a83=_0x460090,_0xb47cfa=this[_0x312a83(0x1b3)][_0x312a83(0x283)][_0x312a83(0x1b7)](_0x293f85),_0x172912=this[_0x312a83(0x1b3)][_0x312a83(0x283)][_0x312a83(0x1b7)](_0x97cbb6),_0x53fa65=_0xb47cfa[_0x312a83(0x2a6)][_0x312a83(0x1b7)](this[_0x312a83(0x1b4)]);_0x53fa65&&_0x53fa65[_0x312a83(0x24b)]>0x1?_0x172912[_0x312a83(0x2a2)]():this[_0x312a83(0x1c4)](_0xb47cfa,_0x312a83(0x23f)+this[_0x312a83(0x1b4)],()=>{const _0x4700c9=_0x312a83;0x2===_0xb47cfa[_0x4700c9(0x2a6)][_0x4700c9(0x1b7)](this[_0x4700c9(0x1b4)])[_0x4700c9(0x24b)]&&_0x172912[_0x4700c9(0x2a2)]();});}async[_0x460090(0x24a)](_0x1684ad,_0x13b50f,_0x2c083b,_0x56d9ff){const _0x12d736=_0x460090;if(!this[_0x12d736(0x208)]&&this[_0x12d736(0x1f4)][_0x12d736(0x25e)]==_0x13b50f){const _0x1baabf=this[_0x12d736(0x1ca)](_0x2c083b,_0x56d9ff);await this[_0x12d736(0x25c)](_0x1baabf),this[_0x12d736(0x242)](_0x1baabf,_0x13b50f,_0x2c083b[_0x12d736(0x290)])||this[_0x12d736(0x22e)](_0x12d736(0x214));}}async[_0x460090(0x252)](){const _0x16c453=_0x460090;this[_0x16c453(0x261)]();const {locale:_0x10032f}=this[_0x16c453(0x1b3)];let _0x3d575d;try{_0x3d575d=await this[_0x16c453(0x1eb)][_0x16c453(0x1e9)]();}catch{const _0x2a6561=_0x50ed73(_0x10032f,_0x16c453(0x1c1));return void this[_0x16c453(0x286)](_0x2a6561);}const _0x480359=_0x3d575d[_0x16c453(0x26b)]||_0x3d575d[_0x16c453(0x255)];if(this[_0x16c453(0x295)]!==_0x480359[_0x16c453(0x290)]){const _0x4e5a8d=_0x50ed73(_0x10032f,_0x16c453(0x215));return void this[_0x16c453(0x286)](_0x4e5a8d);}await this[_0x16c453(0x1e8)](this[_0x16c453(0x1b3)][_0x16c453(0x211)][_0x16c453(0x1e7)][_0x16c453(0x2a0)][_0x16c453(0x1de)](),!0x0);}[_0x460090(0x261)](){const _0x3f0f13=_0x460090;this[_0x3f0f13(0x1eb)][_0x3f0f13(0x1c9)](),this[_0x3f0f13(0x294)]=[],clearTimeout(this[_0x3f0f13(0x28c)]),this[_0x3f0f13(0x22c)](this[_0x3f0f13(0x1eb)]);}[_0x460090(0x238)](_0x4845f0){const _0x99d130=_0x460090,_0x507cc9=this[_0x99d130(0x1b3)][_0x99d130(0x283)][_0x99d130(0x1b7)](_0x293f85);this[_0x99d130(0x1c4)](_0x507cc9,_0x99d130(0x23f)+this[_0x99d130(0x1b4)],(_0x44c39c,{session:_0x17834d})=>{const _0x448495=_0x99d130;if(_0x17834d['id']===_0x507cc9[_0x448495(0x219)]){_0x44c39c[_0x448495(0x229)]();const _0x570342=this[_0x448495(0x1b3)][_0x448495(0x283)][_0x448495(0x23b)](_0x448495(0x2a9))&&this[_0x448495(0x1b3)][_0x448495(0x283)][_0x448495(0x1b7)](_0x448495(0x2a9));let _0x226969=_0x17834d[_0x448495(0x207)];_0x570342&&_0x570342[_0x448495(0x233)]&&(_0x226969=_0x226969[_0x448495(0x1ce)](_0x22cfee=>_0x448495(0x1be)!==_0x22cfee)),this[_0x448495(0x1b3)][_0x448495(0x283)][_0x448495(0x1b7)](_0x448495(0x218))[_0x448495(0x1e5)](_0x226969,this[_0x448495(0x1b4)]);}}),_0x507cc9[_0x99d130(0x293)](this[_0x99d130(0x1b4)],_0x4845f0);}[_0x460090(0x1bf)](){const _0x5ac9d1=_0x460090,_0x1e547c=this[_0x5ac9d1(0x1b3)][_0x5ac9d1(0x1dd)][_0x5ac9d1(0x1ee)];this[_0x5ac9d1(0x1b3)][_0x5ac9d1(0x1dd)][_0x5ac9d1(0x1ee)]=(..._0x3df6e8)=>{const _0x53f112=_0x5ac9d1;if(!_0x3df6e8[_0x3df6e8[_0x53f112(0x24b)]-0x1][_0x53f112(0x254)])throw new _0x1c6a94(_0x53f112(0x20c),this);_0x1e547c[_0x53f112(0x28e)](this[_0x53f112(0x1b3)][_0x53f112(0x1dd)],_0x3df6e8);};}[_0x460090(0x20e)](){const _0x31ac66=_0x460090;this[_0x31ac66(0x1b3)][_0x31ac66(0x1dd)]['on'](_0x31ac66(0x24c),(_0x12aa0d,[_0x53b355])=>{const _0x3e91f6=_0x31ac66;if(this[_0x3e91f6(0x1f4)][_0x3e91f6(0x25e)])throw new _0x1c6a94(_0x3e91f6(0x287),this);_0x12aa0d[_0x3e91f6(0x292)](),this[_0x3e91f6(0x2aa)]();const _0x178f76=this[_0x3e91f6(0x1b3)][_0x3e91f6(0x1c0)][_0x3e91f6(0x1b7)](_0x3e91f6(0x1fc)),_0x15d546=this[_0x3e91f6(0x285)](_0x53b355,_0x178f76);0x0==_0x15d546[_0x3e91f6(0x24b)]&&_0x15d546[_0x3e91f6(0x1ae)](new _0x42ae7a(0x0)),_0x12aa0d[_0x3e91f6(0x278)]=this[_0x3e91f6(0x1e8)](_0x15d546)[_0x3e91f6(0x2a7)](()=>{const _0x379a16=_0x3e91f6;this[_0x379a16(0x1b3)][_0x379a16(0x283)][_0x379a16(0x1b7)](_0x322d2e)[_0x379a16(0x266)](this),this[_0x379a16(0x1b3)][_0x379a16(0x1dd)][_0x379a16(0x220)](_0x379a16(0x223));})[_0x3e91f6(0x260)](_0x4a1141=>this[_0x3e91f6(0x22e)](_0x3e91f6(0x2ac),_0x4a1141))[_0x3e91f6(0x27d)](()=>this[_0x3e91f6(0x213)]());},{'priority':_0x31ac66(0x247)}),this[_0x31ac66(0x1b3)]['on'](_0x31ac66(0x26d),async(_0x382e86,[_0x272dc0,_0x2cfb07])=>{const _0x5e9f38=_0x31ac66;_0x382e86[_0x5e9f38(0x292)]();const _0x30e2c5=this[_0x5e9f38(0x1b3)][_0x5e9f38(0x211)][_0x5e9f38(0x1e7)][_0x5e9f38(0x25d)](_0x272dc0);if(!this[_0x5e9f38(0x250)][_0x5e9f38(0x23b)](_0x272dc0)){const _0x29aaf4=_0x2cfb07&&_0x2cfb07[_0x5e9f38(0x1dd)]?_0x2cfb07[_0x5e9f38(0x1dd)]:'',_0x3bc526=_0x2cfb07&&_0x2cfb07[_0x5e9f38(0x1d0)]?_0x2cfb07[_0x5e9f38(0x1d0)]:{};await this[_0x5e9f38(0x28f)](_0x272dc0,_0x29aaf4,_0x3bc526);}this[_0x5e9f38(0x1b3)][_0x5e9f38(0x211)][_0x5e9f38(0x1ac)]({'isUndoable':!0x1},()=>{const _0x4fa78b=_0x5e9f38;_0x30e2c5[_0x4fa78b(0x24d)]=!0x0,this[_0x4fa78b(0x1b3)][_0x4fa78b(0x211)][_0x4fa78b(0x1e7)][_0x4fa78b(0x1c2)][_0x4fa78b(0x1da)](_0x30e2c5);});},{'priority':_0x31ac66(0x247)});}async[_0x460090(0x25c)](_0x5c5a46){const _0x5c731f=_0x460090,_0x4d3efa=this[_0x5c731f(0x1b3)][_0x5c731f(0x283)][_0x5c731f(0x1b7)](_0x49213f),{connection:_0x3d542a}=this[_0x5c731f(0x1b3)][_0x5c731f(0x283)][_0x5c731f(0x1b7)](_0x322d2e),_0x48154e=new Set();for(const _0x80a363 of _0x5c5a46){const _0x3bf518=_0x80a363[_0x5c731f(0x1cf)];_0x3bf518&&!_0x4d3efa[_0x5c731f(0x22b)](_0x3bf518)&&_0x48154e[_0x5c731f(0x204)](_0x3bf518);}if(0x0===_0x48154e[_0x5c731f(0x1fd)])return;const _0x1ff802=await _0x5ab0dc[_0x5c731f(0x27c)](_0x3d542a,Array[_0x5c731f(0x227)](_0x48154e));for(const _0x11b577 of _0x1ff802)_0x4d3efa[_0x5c731f(0x22b)](_0x11b577['id'])||_0x4d3efa[_0x5c731f(0x1b2)](_0x11b577);}[_0x460090(0x285)](_0xd683eb,_0x405c4c={}){const _0x53acfd=_0x460090,_0x3b45fa=this[_0x53acfd(0x1b3)][_0x53acfd(0x211)],_0x5ce64f=[];let _0x3edf9f=0x0;const _0x5d6268=_0x53acfd(0x29b)==typeof _0xd683eb?{'main':_0xd683eb}:_0xd683eb;for(const _0x264a2a of Object[_0x53acfd(0x253)](_0x5d6268)){if(!this[_0x53acfd(0x1f4)][_0x53acfd(0x20a)][_0x53acfd(0x23b)](_0x264a2a))throw new _0x1c6a94(_0x53acfd(0x1b8),this);const _0x3dbdfe=this[_0x53acfd(0x1b3)][_0x53acfd(0x1dd)][_0x53acfd(0x1f1)](_0x5d6268[_0x264a2a]),_0x1d8b5a=this[_0x53acfd(0x1f4)][_0x53acfd(0x25d)](_0x264a2a),_0x3da885=new _0x1a3f19(_0x3b45fa[_0x53acfd(0x1e0)](_0x1d8b5a,0x0),_0x3dbdfe,_0x3edf9f++);_0x5ce64f[_0x53acfd(0x1ae)](_0x3da885);for(const [_0xdca0eb,_0x2ec8d0]of _0x3dbdfe[_0x53acfd(0x299)]){const _0x2185ac=_0x3b45fa[_0x53acfd(0x1d6)](_0x3b45fa[_0x53acfd(0x263)](_0x1d8b5a,_0x2ec8d0[_0x53acfd(0x230)][_0x53acfd(0x1ec)][_0x53acfd(0x20b)]()),_0x3b45fa[_0x53acfd(0x263)](_0x1d8b5a,_0x2ec8d0[_0x53acfd(0x26f)][_0x53acfd(0x1ec)][_0x53acfd(0x20b)]())),_0x292150=new _0x280681(_0xdca0eb,null,_0x2185ac,_0x3b45fa[_0x53acfd(0x299)],!0x0,_0x3edf9f++);_0x5ce64f[_0x53acfd(0x1ae)](_0x292150);}}if(_0x405c4c)for(const [_0x524bfa,_0x3c51e8]of Object[_0x53acfd(0x1a8)](_0x405c4c)){const _0x20e4da=_0x3b45fa[_0x53acfd(0x1e7)][_0x53acfd(0x25d)](_0x524bfa);if(!_0x20e4da)throw new _0x1c6a94(_0x53acfd(0x200),null);for(const [_0x36d1cf,_0x4a5226]of Object[_0x53acfd(0x1a8)](_0x3c51e8))if(null!==_0x4a5226){const _0x247a18=new _0x1c7047(_0x20e4da,_0x36d1cf,null,_0x4a5226,_0x3edf9f++);_0x5ce64f[_0x53acfd(0x1ae)](_0x247a18);}}return _0x5ce64f;}async[_0x460090(0x28f)](_0x112ade,_0x23c49b,_0xc754ef){const _0x263dd2=_0x460090;this[_0x263dd2(0x285)]({[_0x112ade]:_0x23c49b},{[_0x112ade]:_0xc754ef})[_0x263dd2(0x1a9)]((_0x597423,_0x459420)=>{const _0x41b1cb=_0x263dd2;_0x597423[_0x41b1cb(0x1e6)]=this[_0x41b1cb(0x1f4)][_0x41b1cb(0x25e)]+_0x459420,_0x597423[_0x41b1cb(0x269)]=!0x0,this[_0x41b1cb(0x1b1)](_0x597423);}),this[_0x263dd2(0x264)](),await this[_0x263dd2(0x257)]();}async[_0x460090(0x1bc)](_0x5e13c8,_0x440cf5){const _0xa91cdd=_0x460090;let _0x2cd558;this[_0xa91cdd(0x1cd)]=_0x5e13c8[_0xa91cdd(0x1e4)];const _0x2d0c58=_0x5e13c8[_0xa91cdd(0x217)]&&!_0x5e13c8[_0xa91cdd(0x239)],_0x14bdb1=_0x2d0c58?0x0:_0x5e13c8[_0xa91cdd(0x1dd)][_0xa91cdd(0x1e6)];if(_0x440cf5[_0xa91cdd(0x1a9)](_0x130f55=>{const _0x4af6c9=_0xa91cdd;_0x130f55[_0x4af6c9(0x269)]=!0x0,_0x130f55[_0x4af6c9(0x296)]=_0x5e13c8[_0x4af6c9(0x276)],_0x130f55[_0x4af6c9(0x1cf)]=null;}),_0x2d0c58)_0x2cd558=_0x440cf5,this[_0xa91cdd(0x1cc)](_0x2cd558,_0x2d0c58);else{if(_0x5e13c8[_0xa91cdd(0x239)]){const _0x847861=this[_0xa91cdd(0x285)](_0x5e13c8[_0xa91cdd(0x239)]);this[_0xa91cdd(0x1f4)][_0xa91cdd(0x2a0)][_0xa91cdd(0x25e)]=-_0x847861[_0xa91cdd(0x24b)],_0x847861[_0xa91cdd(0x1a9)](_0x11da84=>{const _0x3885cc=_0xa91cdd;_0x11da84[_0x3885cc(0x1e6)]-=_0x847861[_0x3885cc(0x24b)],_0x11da84[_0x3885cc(0x296)]=_0x5e13c8[_0x3885cc(0x276)],_0x11da84[_0x3885cc(0x269)]=!0x0,_0x11da84[_0x3885cc(0x1cf)]=null;}),this[_0xa91cdd(0x1cc)](_0x847861,!0x0),this[_0xa91cdd(0x1b5)][_0xa91cdd(0x25e)]=-_0x847861[_0xa91cdd(0x24b)]+this[_0xa91cdd(0x1cd)],this[_0xa91cdd(0x2ae)](_0x847861);}this[_0xa91cdd(0x1f4)][_0xa91cdd(0x2a0)][_0xa91cdd(0x25e)]=_0x14bdb1,_0x2cd558=this[_0xa91cdd(0x1ca)](_0x5e13c8[_0xa91cdd(0x1dd)],_0x5e13c8[_0xa91cdd(0x249)]),await this[_0xa91cdd(0x25c)](_0x2cd558),this[_0xa91cdd(0x1cc)](_0x2cd558,_0x2d0c58);}_0x5e13c8[_0xa91cdd(0x290)]&&(this[_0xa91cdd(0x1b6)][_0xa91cdd(0x1af)](_0x2cd558,_0x5e13c8[_0xa91cdd(0x290)]),this[_0xa91cdd(0x295)]=_0x5e13c8[_0xa91cdd(0x290)]),this[_0xa91cdd(0x1b5)][_0xa91cdd(0x25e)]=_0x14bdb1+this[_0xa91cdd(0x1cd)],this[_0xa91cdd(0x2ae)](_0x2cd558),_0x440cf5[_0xa91cdd(0x1ce)](_0xb353f9=>{const _0xd350df=_0xa91cdd,_0x487a8a=this[_0xd350df(0x29c)](_0xb353f9);return _0x487a8a&&!this[_0xd350df(0x250)][_0xd350df(0x23b)](_0x487a8a);})[_0xa91cdd(0x1a9)]((_0x4555a9,_0x339d21)=>{const _0x4bdf89=_0xa91cdd;_0x4555a9[_0x4bdf89(0x1e6)]=this[_0x4bdf89(0x1f4)][_0x4bdf89(0x25e)]+_0x339d21,this[_0x4bdf89(0x1b1)](_0x4555a9);}),this[_0xa91cdd(0x202)]()?(this[_0xa91cdd(0x258)]=0x0,this[_0xa91cdd(0x264)](!0x0),await this[_0xa91cdd(0x257)]()):(this[_0xa91cdd(0x208)]=!0x1,this[_0xa91cdd(0x213)]());}[_0x460090(0x22e)](_0x4ea5f8,_0x52639b){const _0x2db717=_0x460090,_0x5d5cef=_0x52639b&&_0x52639b[_0x2db717(0x1f9)];if(_0x5d5cef&&_0x5d5cef[_0x2db717(0x265)](_0x2db717(0x1ff)))throw _0x52639b;const _0x264a4a=this[_0x2db717(0x1b3)][_0x2db717(0x283)][_0x2db717(0x1b7)](_0x322d2e);throw this[_0x2db717(0x208)]=!0x0,_0x264a4a[_0x2db717(0x1c9)](),this[_0x2db717(0x1b3)][_0x2db717(0x25a)](_0x2db717(0x209)),new _0x1c6a94(_0x4ea5f8,this[_0x2db717(0x1b3)],_0x5d5cef?{'originalError':_0x5d5cef}:void 0x0);}[_0x460090(0x1b1)](_0x1d8246){const _0x2b5a9e=_0x460090;this[_0x2b5a9e(0x23c)][_0x2b5a9e(0x23b)](_0x1d8246)||(this[_0x2b5a9e(0x23c)][_0x2b5a9e(0x204)](_0x1d8246),this[_0x2b5a9e(0x294)][_0x2b5a9e(0x1ae)](_0x1d8246),this[_0x2b5a9e(0x231)]||_0x2b5a9e(0x282)==_0x1d8246[_0x2b5a9e(0x277)]&&!_0x1d8246[_0x2b5a9e(0x24f)]||this[_0x2b5a9e(0x2aa)]());}[_0x460090(0x264)](_0x3743b0=!0x1){const _0x568075=_0x460090;!_0x3743b0&&this[_0x568075(0x208)]||(this[_0x568075(0x208)]=!0x0,clearTimeout(this[_0x568075(0x28c)]),this[_0x568075(0x28c)]=setTimeout(()=>{const _0x5a3b44=_0x568075;this[_0x5a3b44(0x262)]()[_0x5a3b44(0x2a7)](_0x5a8377=>{const _0x4c7894=_0x5a3b44;_0x5a8377&&(this[_0x4c7894(0x213)](),this[_0x4c7894(0x208)]=!0x1);})[_0x5a3b44(0x260)](_0x22e6a1=>{const _0x1ed127=_0x5a3b44;this[_0x1ed127(0x213)](),this[_0x1ed127(0x208)]=!0x1,function(_0x49df2a){const _0x268b2b=_0x1ed127;return _0x49df2a[_0x268b2b(0x1f9)][_0x268b2b(0x265)](_0x268b2b(0x237))||_0x49df2a[_0x268b2b(0x1f9)][_0x268b2b(0x265)](_0x268b2b(0x284))||_0x49df2a[_0x268b2b(0x1f9)][_0x268b2b(0x265)](_0x268b2b(0x20d));}(_0x22e6a1)||this[_0x1ed127(0x22e)](_0x22e6a1[_0x1ed127(0x1f9)],_0x22e6a1);});},this[_0x568075(0x258)]));}[_0x460090(0x257)](){return new Promise(_0x191983=>{const _0xcda5a7=_0x564b;this['on'](_0xcda5a7(0x2a1),()=>{_0x191983();});});}async[_0x460090(0x262)](){const _0x2ccb01=_0x460090,_0x178757=this[_0x2ccb01(0x1b3)][_0x2ccb01(0x283)][_0x2ccb01(0x1b7)](_0x97cbb6);if(this[_0x2ccb01(0x281)]()&&(_0x178757[_0x2ccb01(0x2a2)](),this[_0x2ccb01(0x1c6)]=!0x1),!this[_0x2ccb01(0x202)]())return!0x0;const _0x4f7ccf=[...this[_0x2ccb01(0x294)]];for(const _0x6a9018 of _0x4f7ccf)_0x6a9018[_0x2ccb01(0x1b0)]=this[_0x2ccb01(0x1f4)][_0x2ccb01(0x2a0)][_0x2ccb01(0x1fb)](_0x6a9018);const _0x3ee611=this[_0x2ccb01(0x1b6)][_0x2ccb01(0x243)](_0x4f7ccf),_0x534684=J++,_0x5abf65=this[_0x2ccb01(0x25f)](_0x4f7ccf),_0x3ebfe7=await this[_0x2ccb01(0x1eb)][_0x2ccb01(0x1e3)](_0x5abf65,_0x5abf65[_0x2ccb01(0x1e6)],_0x3ee611);try{return await this[_0x2ccb01(0x24e)](_0x4f7ccf,_0x3ebfe7,_0x534684);}catch(_0x10d74f){return this[_0x2ccb01(0x22e)](_0x2ccb01(0x29f),_0x10d74f);}}async[_0x460090(0x24e)](_0x33cf7c,_0x3646b2,_0x23fe95){const _0x268a9c=_0x460090;if(_0x268a9c(0x1f2)in _0x3646b2)throw _0x3646b2[_0x268a9c(0x1f2)];let _0x5e1060=!0x1;if(_0x3646b2[_0x268a9c(0x217)]){_0x3646b2[_0x268a9c(0x290)]&&(this[_0x268a9c(0x295)]=_0x3646b2[_0x268a9c(0x290)]),this[_0x268a9c(0x294)]=this[_0x268a9c(0x294)][_0x268a9c(0x1ce)](_0x21c756=>!_0x33cf7c[_0x268a9c(0x28b)](_0x21c756));for(const _0x49475b of _0x33cf7c)_0x49475b[_0x268a9c(0x296)]=_0x268a9c(0x28d)in _0x3646b2&&_0x3646b2[_0x268a9c(0x28d)]||void 0x0;X(_0x33cf7c,_0x3646b2[_0x268a9c(0x25e)]-_0x33cf7c[_0x268a9c(0x24b)]),this[_0x268a9c(0x2ae)](_0x33cf7c);const _0xf4e672=_0x33cf7c[_0x268a9c(0x1ce)](_0x7f7038=>{const _0x527d60=_0x268a9c;if(!_0x7f7038[_0x527d60(0x269)])return!0x1;const _0x2fa1f0=this[_0x527d60(0x29c)](_0x7f7038);return _0x2fa1f0&&!this[_0x527d60(0x250)][_0x527d60(0x23b)](_0x2fa1f0);});X(_0xf4e672,this[_0x268a9c(0x1f4)][_0x268a9c(0x25e)]),this[_0x268a9c(0x1cc)](_0xf4e672),_0x5e1060=!0x0,this[_0x268a9c(0x258)]=this[_0x268a9c(0x236)];}else{const _0xadab3d=this[_0x268a9c(0x1ca)](_0x3646b2[_0x268a9c(0x1dd)],_0x3646b2[_0x268a9c(0x249)])[_0x268a9c(0x1ce)](_0x563287=>_0x563287[_0x268a9c(0x1e6)]>=this[_0x268a9c(0x1ad)]);_0xadab3d[_0x268a9c(0x1a9)](_0x1c4623=>this[_0x268a9c(0x1d7)](_0x1c4623)),this[_0x268a9c(0x294)]=this[_0x268a9c(0x294)][_0x268a9c(0x1ce)](_0x54b4e1=>!_0x54b4e1[_0x268a9c(0x269)]||!this[_0x268a9c(0x250)][_0x268a9c(0x23b)](this[_0x268a9c(0x29c)](_0x54b4e1))),this[_0x268a9c(0x294)][_0x268a9c(0x24b)]&&X(this[_0x268a9c(0x294)],this[_0x268a9c(0x294)][0x0][_0x268a9c(0x1e6)]),await this[_0x268a9c(0x25c)](_0xadab3d),_0x5e1060=this[_0x268a9c(0x242)](_0xadab3d,_0x3646b2[_0x268a9c(0x25e)],_0x3646b2[_0x268a9c(0x290)]),this[_0x268a9c(0x258)]=Math[_0x268a9c(0x297)](this[_0x268a9c(0x258)]/0x2);}return _0x5e1060?!this[_0x268a9c(0x202)]()||(this[_0x268a9c(0x264)](!0x0),!0x1):this[_0x268a9c(0x22e)](_0x268a9c(0x1d9));}[_0x460090(0x242)](_0x1aa41b,_0x7a5c30,_0x4c1d12){const _0x3fdb2e=_0x460090;try{const _0x1e02a9={'document':this[_0x3fdb2e(0x1f4)],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x56c0e9,operationsB:_0x2a6641,originalOperations:_0x48e8f6}=_0x432211(_0x1aa41b,this[_0x3fdb2e(0x294)],_0x1e02a9);X(_0x56c0e9,this[_0x3fdb2e(0x1f4)][_0x3fdb2e(0x25e)]),X(_0x2a6641,_0x7a5c30);for(const _0x39366d of _0x56c0e9){const _0x5b3b4f=_0x48e8f6[_0x3fdb2e(0x1b7)](_0x39366d);_0x39366d[_0x3fdb2e(0x1cf)]=_0x5b3b4f?_0x5b3b4f[_0x3fdb2e(0x1cf)]:null;}_0x4c1d12&&(this[_0x3fdb2e(0x1b6)][_0x3fdb2e(0x1af)](_0x1aa41b,_0x4c1d12),this[_0x3fdb2e(0x295)]=_0x4c1d12),this[_0x3fdb2e(0x294)]=[..._0x2a6641],this[_0x3fdb2e(0x1cc)](_0x56c0e9),this[_0x3fdb2e(0x2ae)](_0x1aa41b);}catch(_0xbee9c5){return console[_0x3fdb2e(0x1f2)](_0xbee9c5),!0x1;}return!0x0;}[_0x460090(0x1cc)](_0x424a5f,_0x11632e=!0x1){const _0x21375b=_0x460090;this[_0x21375b(0x1b3)][_0x21375b(0x211)][_0x21375b(0x1ac)]({'isUndoable':!0x1,'isLocal':!0x1},_0x567c00=>{const _0x259eb3=_0x21375b;for(const _0x500b77 of _0x424a5f)this[_0x259eb3(0x23c)][_0x259eb3(0x204)](_0x500b77),this[_0x259eb3(0x1d7)](_0x500b77),_0x567c00[_0x259eb3(0x221)][_0x259eb3(0x22f)](_0x500b77),this[_0x259eb3(0x1b3)][_0x259eb3(0x211)][_0x259eb3(0x27b)](_0x500b77);});}[_0x460090(0x1d7)](_0x43b6c3){const _0x24af78=_0x460090,_0x1b11ef=this[_0x24af78(0x29c)](_0x43b6c3);_0x1b11ef&&this[_0x24af78(0x250)][_0x24af78(0x204)](_0x1b11ef);}[_0x460090(0x29c)](_0x57f90f){const _0x185faf=_0x460090;let _0x1cd242,_0x4c9d25;switch(_0x57f90f[_0x185faf(0x277)]){case _0x185faf(0x1f3):_0x1cd242=_0x57f90f[_0x185faf(0x222)][_0x185faf(0x1d3)];break;case _0x185faf(0x282):if(_0x4c9d25=_0x57f90f[_0x185faf(0x298)],!_0x4c9d25)return null;_0x1cd242=_0x4c9d25[_0x185faf(0x1d3)];break;case _0x185faf(0x1b9):_0x1cd242=_0x57f90f[_0x185faf(0x1d3)];break;case _0x185faf(0x1fa):_0x1cd242=_0x57f90f[_0x185faf(0x23e)];break;case _0x185faf(0x27a):_0x1cd242=_0x57f90f[_0x185faf(0x21e)][_0x185faf(0x1d3)];break;default:return null;}return _0x1cd242[_0x185faf(0x2ad)];}[_0x460090(0x2ae)](_0x35cea1){const _0x13a599=_0x460090;_0x35cea1[_0x13a599(0x1a9)](_0x12aa04=>{const _0x4cde2a=_0x13a599,_0x11687a=_0x12aa04[_0x4cde2a(0x26a)]();_0x11687a[_0x4cde2a(0x1cf)]=_0x12aa04[_0x4cde2a(0x1cf)],_0x11687a[_0x4cde2a(0x269)]=!!_0x12aa04[_0x4cde2a(0x269)],_0x11687a[_0x4cde2a(0x296)]=_0x12aa04[_0x4cde2a(0x296)],_0x11687a[_0x4cde2a(0x1e6)]+=this[_0x4cde2a(0x1cd)],_0x12aa04[_0x4cde2a(0x289)]&&this[_0x4cde2a(0x27f)][_0x4cde2a(0x204)](_0x11687a),this[_0x4cde2a(0x1b5)][_0x4cde2a(0x22f)](_0x11687a);});}[_0x460090(0x286)](_0x5cefa6){const _0x82a0d5=_0x460090,_0xe3fa92=this[_0x82a0d5(0x1b3)][_0x82a0d5(0x283)][_0x82a0d5(0x1b7)](_0x82a0d5(0x1bb)),_0x4dd972=this[_0x82a0d5(0x1b3)][_0x82a0d5(0x206)];_0x5cefa6||(_0x5cefa6=_0x50ed73(_0x4dd972,_0x82a0d5(0x1f5))),_0xe3fa92[_0x82a0d5(0x2a5)](_0x5cefa6,{'title':_0x50ed73(_0x4dd972,_0x82a0d5(0x224)),'namespace':_0x82a0d5(0x271)}),this[_0x82a0d5(0x1cb)]=!0x0,clearTimeout(this[_0x82a0d5(0x28c)]),this[_0x82a0d5(0x294)]=[],this[_0x82a0d5(0x1b3)][_0x82a0d5(0x283)][_0x82a0d5(0x1b7)](_0x322d2e)[_0x82a0d5(0x1c9)]();}[_0x460090(0x2aa)](){const _0x37fd58=_0x460090;this[_0x37fd58(0x231)]||(this[_0x37fd58(0x231)]=this[_0x37fd58(0x1b3)][_0x37fd58(0x283)][_0x37fd58(0x1b7)](_0x431c54)[_0x37fd58(0x204)](_0x50ed73(this[_0x37fd58(0x1b3)][_0x37fd58(0x206)],_0x37fd58(0x272))));}[_0x460090(0x213)](){const _0x957ef1=_0x460090;this[_0x957ef1(0x231)]&&(this[_0x957ef1(0x1b3)][_0x957ef1(0x283)][_0x957ef1(0x1b7)](_0x431c54)[_0x957ef1(0x212)](this[_0x957ef1(0x231)]),this[_0x957ef1(0x231)]=null);}[_0x460090(0x25f)](_0x20e03b){const _0x9105ae=_0x460090,_0x108103=_0x20e03b[_0x9105ae(0x1c3)](_0x355ad1=>_0x355ad1[_0x9105ae(0x1f7)]());return this[_0x9105ae(0x21c)][_0x9105ae(0x1ab)](_0x108103);}[_0x460090(0x1ca)](_0x149146,_0x1be21e){const _0x38e53c=_0x460090;return this[_0x38e53c(0x21c)][_0x38e53c(0x279)](_0x149146)[_0x38e53c(0x1c3)]((_0x56fec1,_0x5eb5f4)=>{const _0x501319=_0x38e53c,_0x44fcaa=_0x501319(0x24c)==_0x1be21e[_0x5eb5f4][_0x501319(0x277)];if(_0x501319(0x240)==_0x56fec1[_0x501319(0x29a)]){const _0x3624c7=_0x56fec1[_0x501319(0x222)][_0x501319(0x1d3)];!this[_0x501319(0x1f4)][_0x501319(0x25d)](_0x3624c7)&&(this[_0x501319(0x1f4)][_0x501319(0x20f)](_0x501319(0x1e2),_0x3624c7)[_0x501319(0x22d)]=!0x1);}const _0x11ede2=_0x603261[_0x501319(0x216)](_0x56fec1,this[_0x501319(0x1f4)]);return _0x11ede2[_0x501319(0x1b0)]=_0x56fec1[_0x501319(0x1b0)],_0x11ede2[_0x501319(0x269)]=_0x44fcaa,_0x11ede2[_0x501319(0x1cf)]=_0x44fcaa?null:_0x1be21e[_0x5eb5f4][_0x501319(0x1f8)],_0x11ede2[_0x501319(0x289)]=_0x501319(0x1d5)===_0x1be21e[_0x5eb5f4][_0x501319(0x277)],_0x11ede2[_0x501319(0x296)]=_0x1be21e[_0x5eb5f4][_0x501319(0x296)],_0x11ede2;});}[_0x460090(0x29d)](){const _0x28bd40=_0x460090;this[_0x28bd40(0x1c6)]=!0x0,this[_0x28bd40(0x281)]()?this[_0x28bd40(0x264)]():this[_0x28bd40(0x1c6)]=!0x1;}[_0x460090(0x281)](){const _0x19ce33=_0x460090,_0xe52e29=this[_0x19ce33(0x1b3)][_0x19ce33(0x283)][_0x19ce33(0x1b7)](_0x293f85)[_0x19ce33(0x2a6)][_0x19ce33(0x1b7)](this[_0x19ce33(0x1b4)]);return!this[_0x19ce33(0x1b3)][_0x19ce33(0x21d)]&&!!_0xe52e29&&_0xe52e29[_0x19ce33(0x24b)]>0x1&&this[_0x19ce33(0x1c6)];}[_0x460090(0x202)](){const _0x47c798=_0x460090;return this[_0x47c798(0x294)][_0x47c798(0x24b)]>0x0||this[_0x47c798(0x281)]();}}export default l;class Q extends Error{}function X(_0x27c9e7,_0x19b2c5){const _0x40a348=_0x460090;for(const _0x5daba5 of _0x27c9e7)_0x5daba5[_0x40a348(0x1e6)]=_0x19b2c5++;}class Y{[_0x460090(0x228)];[_0x460090(0x21b)];constructor(_0x5d7485){const _0x50a6d4=_0x460090;this[_0x50a6d4(0x228)]=_0x5d7485,this[_0x50a6d4(0x21b)]=new WeakMap();}[_0x460090(0x243)](_0x5674c0){const _0x1972c2=_0x460090;let _0x371dd6=_0x5674c0[_0x1972c2(0x24b)];for(;_0x371dd6--;){const _0x5b8bee=_0x5674c0[_0x371dd6];if(!this[_0x1972c2(0x228)][_0x1972c2(0x23b)](_0x5b8bee)){if(!this[_0x1972c2(0x21b)][_0x1972c2(0x23b)](_0x5b8bee)){const _0xee543f=_0x1e3446()[_0x1972c2(0x20b)](0x1,0x12);this[_0x1972c2(0x21b)][_0x1972c2(0x1ee)](_0x5b8bee,_0xee543f);}return this[_0x1972c2(0x21b)][_0x1972c2(0x1b7)](_0x5b8bee);}}}[_0x460090(0x1af)](_0x2b8d8f,_0x3ec8a7){const _0x2bde47=_0x460090;if(!_0x3ec8a7)return;let _0x56878f=_0x2b8d8f[_0x2bde47(0x24b)];for(;_0x56878f--;){const _0x1640bc=_0x2b8d8f[_0x56878f];this[_0x2bde47(0x228)][_0x2bde47(0x23b)](_0x1640bc)||this[_0x2bde47(0x21b)][_0x2bde47(0x1ee)](_0x1640bc,_0x3ec8a7);}}}
|
|
23
|
+
const _0x48cf25=_0x1b51;function _0x1b51(_0x15e972,_0x43c72e){const _0x509558=_0x5095();return _0x1b51=function(_0x1b51db,_0x2b85f9){_0x1b51db=_0x1b51db-0xc9;let _0x246110=_0x509558[_0x1b51db];return _0x246110;},_0x1b51(_0x15e972,_0x43c72e);}(function(_0x276868,_0x1ccfc9){const _0x2b4bba=_0x1b51,_0x266e22=_0x276868();while(!![]){try{const _0x1a9175=parseInt(_0x2b4bba(0x11f))/0x1+parseInt(_0x2b4bba(0xd2))/0x2*(-parseInt(_0x2b4bba(0x16d))/0x3)+-parseInt(_0x2b4bba(0xf7))/0x4+parseInt(_0x2b4bba(0x179))/0x5*(parseInt(_0x2b4bba(0x1b1))/0x6)+parseInt(_0x2b4bba(0x1a3))/0x7*(parseInt(_0x2b4bba(0x1c2))/0x8)+-parseInt(_0x2b4bba(0xf3))/0x9+-parseInt(_0x2b4bba(0x111))/0xa*(-parseInt(_0x2b4bba(0x15e))/0xb);if(_0x1a9175===_0x1ccfc9)break;else _0x266e22['push'](_0x266e22['shift']());}catch(_0x38fcd9){_0x266e22['push'](_0x266e22['shift']());}}}(_0x5095,0x9cabc));import{Plugin as _0xb1f595,PendingActions as _0x2b5d75}from'ckeditor5/src/core.js';import{CKEditorError as _0x287132,version as _0x336758,uid as _0x3c0256}from'ckeditor5/src/utils.js';import{Notification as _0x477077}from'ckeditor5/src/ui.js';import{transformOperationSets as _0x2e7ce9,NoOperation as _0x447d9e,InsertOperation as _0x47bbca,MarkerOperation as _0x5f31cd,RootAttributeOperation as _0xcabfeb,OperationFactory as _0x1d9a29,History as _0x260ce5}from'ckeditor5/src/engine.js';import{WebSocketGateway as _0x5615bf}from'./websocketgateway.js';import{Sessions as _0x166e79}from'./sessions.js';import{UserMarkers as _0x4f70a5}from'./usermarkers.js';import{getTranslation as _0x3894e8}from'../common-translations.js';import{Compressor as _0x3333ae}from'@ckeditor/ckeditor5-operations-compressor';import{Users as _0x18fbdd}from'ckeditor5-collaboration/src/collaboration-core.js';import{User as _0x3b1967,CollaborativeEditingService as _0x2592db}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';let G=0x1;class l extends _0xb1f595{static [_0x48cf25(0xe5)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x2592db)());[_0x48cf25(0x17a)];[_0x48cf25(0x160)];[_0x48cf25(0x12f)];[_0x48cf25(0xe7)];[_0x48cf25(0x1c6)];[_0x48cf25(0xcf)];[_0x48cf25(0x18f)];[_0x48cf25(0x158)];[_0x48cf25(0x106)];[_0x48cf25(0x124)];[_0x48cf25(0xcd)];[_0x48cf25(0x129)];[_0x48cf25(0x1c8)];[_0x48cf25(0x14b)];[_0x48cf25(0x169)];[_0x48cf25(0x130)];[_0x48cf25(0xd9)];[_0x48cf25(0xe4)];static get[_0x48cf25(0x1b7)](){return[_0x5615bf,_0x166e79,_0x4f70a5,_0x2b5d75,_0x18fbdd,_0x477077];}static get[_0x48cf25(0x181)](){const _0x25d461=_0x48cf25;return _0x25d461(0x1a6);}static get[_0x48cf25(0x16e)](){return!0x0;}static get[_0x48cf25(0xc9)](){return!0x0;}get[_0x48cf25(0x187)](){const _0x89545a=_0x48cf25;return this[_0x89545a(0xf2)]+this[_0x89545a(0x17a)];}get[_0x48cf25(0xf2)](){const _0x3eba1=_0x48cf25;return this[_0x3eba1(0x12f)][_0x3eba1(0xcb)]-this[_0x3eba1(0x17a)];}get[_0x48cf25(0x1ab)](){const _0x32a0c6=_0x48cf25,_0x14e2a8=this[_0x32a0c6(0x12f)][_0x32a0c6(0x1b5)]();for(let _0x25c556=_0x14e2a8[_0x32a0c6(0x16f)]-0x1;_0x25c556>=0x0;_0x25c556--){const _0x443ef8=_0x14e2a8[_0x25c556];if(!this[_0x32a0c6(0xd9)][_0x32a0c6(0xfe)](_0x443ef8))return _0x443ef8[_0x32a0c6(0x126)]+0x1-this[_0x32a0c6(0x17a)];}return 0x0;}constructor(_0x4378bf){const _0x9f426b=_0x48cf25;if(super(_0x4378bf),this[_0x9f426b(0x17a)]=0x0,this[_0x9f426b(0x160)]=null,this[_0x9f426b(0x12f)]=new _0x260ce5(),this[_0x9f426b(0x110)][_0x9f426b(0x190)][_0x9f426b(0x162)](_0x9f426b(0x136),{}),this[_0x9f426b(0xe7)]=this[_0x9f426b(0x110)][_0x9f426b(0x190)][_0x9f426b(0xdb)](_0x9f426b(0x116)),!this[_0x9f426b(0xe7)])throw new _0x287132(_0x9f426b(0x14d),this);const _0x5872fa=_0x4378bf[_0x9f426b(0x190)][_0x9f426b(0xdb)](_0x9f426b(0x1a4))||_0x336758;this[_0x9f426b(0x1c6)]=new l[(_0x9f426b(0xe5))](_0x5872fa,this[_0x9f426b(0xe7)]),this[_0x9f426b(0xcf)]=this[_0x9f426b(0x110)][_0x9f426b(0xd6)][_0x9f426b(0x193)],this[_0x9f426b(0x18f)]=new _0x3333ae(),this[_0x9f426b(0x158)]=[],this[_0x9f426b(0x106)]=new WeakSet(),this[_0x9f426b(0x124)]=new Set(),this[_0x9f426b(0x152)](_0x9f426b(0x178),!0x1),this[_0x9f426b(0x152)](_0x9f426b(0x13b),!0x1),this[_0x9f426b(0xcd)]=null,this[_0x9f426b(0x129)]=!0x1,this[_0x9f426b(0x1c8)]=null,this[_0x9f426b(0x14b)]=0x12c,this[_0x9f426b(0x169)]=this[_0x9f426b(0x14b)],this[_0x9f426b(0x130)]=null,this[_0x9f426b(0xd9)]=new WeakSet(),this[_0x9f426b(0xe4)]=new J(this[_0x9f426b(0xd9)]);}[_0x48cf25(0x1a5)](){const _0x43a168=_0x48cf25,_0x151ae3=this[_0x43a168(0x110)],_0x296e65=_0x151ae3[_0x43a168(0xd0)][_0x43a168(0xdb)](_0x18fbdd),_0x1d348a=_0x151ae3[_0x43a168(0xd0)][_0x43a168(0xdb)](_0x5615bf);this[_0x43a168(0x12b)](_0x296e65,_0x43a168(0x17b),(_0x559ad0,_0x4260d3)=>{const _0x5c39c0=_0x43a168,_0x54003d=_0x4260d3[0x0];_0x54003d[_0x5c39c0(0x1ce)]&&(_0x559ad0[_0x5c39c0(0xce)]=_0x296e65[_0x5c39c0(0xe6)](_0x54003d[_0x5c39c0(0x1ce)]),_0x559ad0[_0x5c39c0(0xca)]()),null===_0x54003d[_0x5c39c0(0x1ce)]&&(_0x559ad0[_0x5c39c0(0xce)]=null,_0x559ad0[_0x5c39c0(0xca)]());},{'priority':_0x43a168(0x114)}),this[_0x43a168(0x12b)](_0x151ae3[_0x43a168(0xd6)][_0x43a168(0x193)][_0x43a168(0x182)],_0x43a168(0x1b2),(_0x5e9bce,_0xe97140)=>{const _0x4f794d=_0x43a168;_0xe97140[_0x4f794d(0x137)]&&this[_0x4f794d(0xea)]();}),this[_0x43a168(0x12b)](_0x151ae3[_0x43a168(0xfc)][_0x43a168(0x196)],_0x43a168(0x1c0),()=>{const _0x151810=_0x43a168;this[_0x151810(0xea)]();}),this[_0x43a168(0xf9)](),_0x151ae3[_0x43a168(0xd6)]['on'](_0x43a168(0x135),(_0x5d4219,_0x4f22d7)=>{const _0x526ce0=_0x43a168,_0x425148=_0x4f22d7[0x0];_0x425148[_0x526ce0(0x1b0)]&&(this[_0x526ce0(0x148)](_0x425148),this[_0x526ce0(0x175)]()&&this[_0x526ce0(0xf6)]());}),this[_0x43a168(0x14a)](),this[_0x43a168(0x103)](_0x43a168(0x15b))['to'](_0x1d348a,_0x43a168(0x15c),this,_0x43a168(0x13b),(_0x1cc5ed,_0x24d8d4)=>_0x43a168(0x17c)===_0x1cc5ed&&!_0x24d8d4),this['on'](_0x43a168(0x1ad),()=>{const _0x4c1fae=_0x43a168;this[_0x4c1fae(0x15b)]?_0x151ae3[_0x4c1fae(0x120)](_0x4c1fae(0x142)):_0x151ae3[_0x4c1fae(0x18d)](_0x4c1fae(0x142));}),this[_0x43a168(0x15b)]?_0x151ae3[_0x43a168(0x120)](_0x43a168(0x142)):_0x151ae3[_0x43a168(0x18d)](_0x43a168(0x142)),this[_0x43a168(0x152)](_0x43a168(0xeb),!0x1);}async[_0x48cf25(0x101)](){const _0x88884e=_0x48cf25,_0x4eb2a7=this[_0x88884e(0x110)][_0x88884e(0xd0)][_0x88884e(0xdb)](_0x166e79),_0x74e575=this[_0x88884e(0x110)][_0x88884e(0xd0)][_0x88884e(0xdb)](_0x5615bf);try{this[_0x88884e(0x178)]=!0x0,_0x4eb2a7[_0x88884e(0x13c)](this[_0x88884e(0xe7)]);const _0x4e8c6f=await this[_0x88884e(0x1c6)][_0x88884e(0x101)](_0x74e575[_0x88884e(0x191)],this[_0x88884e(0x1ab)]);await this[_0x88884e(0xdd)](_0x4e8c6f)&&(this[_0x88884e(0x178)]=!0x1,this[_0x88884e(0x17d)]());const _0x554511=await this[_0x88884e(0x1c6)][_0x88884e(0x1cd)]();_0x4eb2a7[_0x88884e(0x109)](this[_0x88884e(0xe7)],_0x554511),this[_0x88884e(0x132)](),this[_0x88884e(0xeb)]=!0x0;}catch(_0x21c741){if(function(_0x507ed1){const _0x47a349=_0x88884e;return _0x47a349(0x121)===_0x507ed1[_0x47a349(0xd8)];}(_0x21c741)&&this[_0x88884e(0x160)])await this[_0x88884e(0xef)]();else{if(function(_0x583289){const _0x6f99bb=_0x88884e;return _0x6f99bb(0x159)===_0x583289[_0x6f99bb(0xd8)];}(_0x21c741)){const _0x4ef3fa=_0x3894e8(this[_0x88884e(0x110)][_0x88884e(0x1a2)],_0x88884e(0x194));this[_0x88884e(0x185)](_0x4ef3fa);}else{if(!(_0x21c741 instanceof $))throw _0x21c741;this[_0x88884e(0x185)]();}}}}[_0x48cf25(0xf5)](){const _0x4482da=_0x48cf25,_0x1c7eb5=this[_0x4482da(0x110)][_0x4482da(0xd0)][_0x4482da(0xdb)](_0x5615bf),_0x177f7a=this[_0x4482da(0x110)][_0x4482da(0xd0)][_0x4482da(0xdb)](_0x166e79);this[_0x4482da(0x110)][_0x4482da(0x18d)](_0x4482da(0x1c1)),_0x177f7a[_0x4482da(0x15a)][_0x4482da(0xfe)](this[_0x4482da(0xe7)])&&_0x177f7a[_0x4482da(0x13c)](this[_0x4482da(0xe7)]),_0x1c7eb5[_0x4482da(0x138)](this),this[_0x4482da(0xe2)](),super[_0x4482da(0xf5)]();}async[_0x48cf25(0xdd)](_0x42dde8){const _0x1ca6fb=_0x48cf25;if(this[_0x1ca6fb(0x160)]!==_0x42dde8[_0x1ca6fb(0x160)]&&this[_0x1ca6fb(0x130)]!==_0x42dde8[_0x1ca6fb(0x10a)])throw new $();return this[_0x1ca6fb(0x160)]=_0x42dde8[_0x1ca6fb(0x160)],this[_0x1ca6fb(0x13a)]([],{..._0x42dde8,'wereChangesApplied':!0x1,'data':_0x42dde8[_0x1ca6fb(0x11a)]},_0x1ca6fb(0x101));}async[_0x48cf25(0x149)](_0x11cef2,_0xbb8d5f=!0x1){const _0x183318=_0x48cf25,{connection:_0x548377}=this[_0x183318(0x110)][_0x183318(0xd0)][_0x183318(0xdb)](_0x5615bf);l[_0x183318(0xe5)][_0x183318(0x1cd)](_0x548377,this[_0x183318(0xe7)])[_0x183318(0x1bd)](_0xd0648f=>this[_0x183318(0x1ae)](_0xd0648f))[_0x183318(0x133)](_0x453117=>{const _0x36db8b=_0x183318;this[_0x36db8b(0xda)](_0x36db8b(0x167),_0x453117);}),this[_0x183318(0x12b)](this[_0x183318(0x1c6)],_0x183318(0x177),this[_0x183318(0x105)][_0x183318(0x103)](this)),this[_0x183318(0x12b)](this[_0x183318(0x1c6)],_0x183318(0x139),(_0x4c04b8,_0x191191)=>{const _0x187d83=_0x183318;this[_0x187d83(0xda)](_0x187d83(0x1bc),_0x191191);}),this[_0x183318(0x12b)](this[_0x183318(0x1c6)],_0x183318(0x122),()=>{const _0x5db957=_0x183318;this[_0x5db957(0xeb)]=!0x1;});const _0x3fc3bf=this[_0x183318(0xe4)][_0x183318(0x1a9)](_0x11cef2);this[_0x183318(0x178)]=!0x0;const _0x92d15f=await this[_0x183318(0x1c6)][_0x183318(0x10e)](_0x548377,this[_0x183318(0x1b9)](_0x11cef2),_0x3fc3bf);if(this[_0x183318(0x160)]=_0x92d15f[_0x183318(0x160)],_0xbb8d5f){if(!_0x92d15f[_0x183318(0x11c)])return void this[_0x183318(0x185)]();this[_0x183318(0x178)]=!0x1,this[_0x183318(0x17d)](),this[_0x183318(0x12f)][_0x183318(0x1c9)](),this[_0x183318(0x17a)]=_0x92d15f[_0x183318(0x163)],this[_0x183318(0x12f)][_0x183318(0xcb)]=this[_0x183318(0x17a)],await this[_0x183318(0x13a)](_0x11cef2,_0x92d15f,_0x183318(0xf4));}else await this[_0x183318(0x115)](_0x92d15f,_0x11cef2);this[_0x183318(0x132)](),this[_0x183318(0xeb)]=!0x0;}[_0x48cf25(0x132)](){const _0x49654c=_0x48cf25,_0x255d7e=this[_0x49654c(0x110)][_0x49654c(0xd0)][_0x49654c(0xdb)](_0x166e79),_0x471a35=this[_0x49654c(0x110)][_0x49654c(0xd0)][_0x49654c(0xdb)](_0x4f70a5),_0x95d067=_0x255d7e[_0x49654c(0x15a)][_0x49654c(0xdb)](this[_0x49654c(0xe7)]);_0x95d067&&_0x95d067[_0x49654c(0x16f)]>0x1?_0x471a35[_0x49654c(0x18b)]():this[_0x49654c(0x12b)](_0x255d7e,_0x49654c(0x188)+this[_0x49654c(0xe7)],()=>{const _0x491871=_0x49654c;0x2===_0x255d7e[_0x491871(0x15a)][_0x491871(0xdb)](this[_0x491871(0xe7)])[_0x491871(0x16f)]&&_0x471a35[_0x491871(0x18b)]();});}async[_0x48cf25(0x105)](_0x2a8457,_0x54ae78,_0x136a1f,_0x5c1afe){const _0x3ef2ff=_0x48cf25;if(!this[_0x3ef2ff(0x178)]&&this[_0x3ef2ff(0xcf)][_0x3ef2ff(0xcb)]==_0x54ae78){const _0x2ca0c9=this[_0x3ef2ff(0x12a)](_0x136a1f,_0x5c1afe);await this[_0x3ef2ff(0xf0)](_0x2ca0c9),this[_0x3ef2ff(0x1ba)](_0x2ca0c9,_0x54ae78,_0x136a1f[_0x3ef2ff(0x10a)])||this[_0x3ef2ff(0xda)](_0x3ef2ff(0x104));}}async[_0x48cf25(0xef)](){const _0xedb21a=_0x48cf25;this[_0xedb21a(0xe2)]();const {locale:_0x3b75d8}=this[_0xedb21a(0x110)];let _0xc439e0;try{_0xc439e0=await this[_0xedb21a(0x1c6)][_0xedb21a(0x10f)]();}catch{const _0x31bba8=_0x3894e8(_0x3b75d8,_0xedb21a(0x186));return void this[_0xedb21a(0x185)](_0x31bba8);}const _0x35dfe7=_0xc439e0[_0xedb21a(0xe3)]||_0xc439e0[_0xedb21a(0x15d)];if(this[_0xedb21a(0x130)]!==_0x35dfe7[_0xedb21a(0x10a)]){const _0x6064c7=_0x3894e8(_0x3b75d8,_0xedb21a(0x184));return void this[_0xedb21a(0x185)](_0x6064c7);}await this[_0xedb21a(0x149)](this[_0xedb21a(0x110)][_0xedb21a(0xd6)][_0xedb21a(0x193)][_0xedb21a(0xe8)][_0xedb21a(0x1b5)](),!0x0);}[_0x48cf25(0xe2)](){const _0x5292c9=_0x48cf25;this[_0x5292c9(0x1c6)][_0x5292c9(0x1bf)](),this[_0x5292c9(0x158)]=[],clearTimeout(this[_0x5292c9(0x1c8)]),this[_0x5292c9(0x1af)](this[_0x5292c9(0x1c6)]);}[_0x48cf25(0x1ae)](_0x50ca8b){const _0xc73b6b=_0x48cf25,_0x59a70c=this[_0xc73b6b(0x110)][_0xc73b6b(0xd0)][_0xc73b6b(0xdb)](_0x166e79);this[_0xc73b6b(0x12b)](_0x59a70c,_0xc73b6b(0x188)+this[_0xc73b6b(0xe7)],(_0x1994a2,{session:_0x2715e3})=>{const _0x2986b6=_0xc73b6b;if(_0x2715e3['id']===_0x59a70c[_0x2986b6(0x17e)]){_0x1994a2[_0x2986b6(0x18c)]();const _0x2ce3a1=this[_0x2986b6(0x110)][_0x2986b6(0xd0)][_0x2986b6(0xfe)](_0x2986b6(0xdc))&&this[_0x2986b6(0x110)][_0x2986b6(0xd0)][_0x2986b6(0xdb)](_0x2986b6(0xdc));let _0x136600=_0x2715e3[_0x2986b6(0x166)];_0x2ce3a1&&_0x2ce3a1[_0x2986b6(0xee)]&&(_0x136600=_0x136600[_0x2986b6(0x1c4)](_0x2ba24b=>_0x2986b6(0x1b6)!==_0x2ba24b)),this[_0x2986b6(0x110)][_0x2986b6(0xd0)][_0x2986b6(0xdb)](_0x2986b6(0x1aa))[_0x2986b6(0x199)](_0x136600,this[_0x2986b6(0xe7)]);}}),_0x59a70c[_0xc73b6b(0x109)](this[_0xc73b6b(0xe7)],_0x50ca8b);}[_0x48cf25(0xf9)](){const _0x2811d1=_0x48cf25,_0x3c26b1=this[_0x2811d1(0x110)][_0x2811d1(0x11a)][_0x2811d1(0x152)];this[_0x2811d1(0x110)][_0x2811d1(0x11a)][_0x2811d1(0x152)]=(..._0x5db2dd)=>{const _0x249ec5=_0x2811d1;if(!_0x5db2dd[_0x5db2dd[_0x249ec5(0x16f)]-0x1][_0x249ec5(0x146)])throw new _0x287132(_0x249ec5(0xd1),this);_0x3c26b1[_0x249ec5(0x150)](this[_0x249ec5(0x110)][_0x249ec5(0x11a)],_0x5db2dd);};}[_0x48cf25(0x14a)](){const _0x3e59d8=_0x48cf25;this[_0x3e59d8(0x110)][_0x3e59d8(0x11a)]['on'](_0x3e59d8(0x1a5),(_0x2554db,[_0x538f07])=>{const _0x40c9d4=_0x3e59d8;if(this[_0x40c9d4(0xcf)][_0x40c9d4(0xcb)])throw new _0x287132(_0x40c9d4(0x164),this);_0x2554db[_0x40c9d4(0xca)](),this[_0x40c9d4(0x1cc)]();const _0x1bb284=this[_0x40c9d4(0x110)][_0x40c9d4(0x190)][_0x40c9d4(0xdb)](_0x40c9d4(0x117)),_0x375a04=this[_0x40c9d4(0x170)](_0x538f07,_0x1bb284);0x0==_0x375a04[_0x40c9d4(0x16f)]&&_0x375a04[_0x40c9d4(0x168)](new _0x447d9e(0x0)),_0x2554db[_0x40c9d4(0xce)]=this[_0x40c9d4(0x149)](_0x375a04)[_0x40c9d4(0x1bd)](()=>{const _0x1ac630=_0x40c9d4;this[_0x1ac630(0x110)][_0x1ac630(0xd0)][_0x1ac630(0xdb)](_0x5615bf)[_0x1ac630(0xf1)](this),this[_0x1ac630(0x110)][_0x1ac630(0x11a)][_0x1ac630(0x10b)](_0x1ac630(0xed));})[_0x40c9d4(0x133)](_0x2064cf=>this[_0x40c9d4(0xda)](_0x40c9d4(0x112),_0x2064cf))[_0x40c9d4(0x19b)](()=>this[_0x40c9d4(0x17d)]());},{'priority':_0x3e59d8(0x114)}),this[_0x3e59d8(0x110)]['on'](_0x3e59d8(0x183),async(_0x50f97f,[_0xdcefe4,_0x4b419b])=>{const _0x2d515a=_0x3e59d8;_0x50f97f[_0x2d515a(0xca)]();const _0x3d11e2=this[_0x2d515a(0x110)][_0x2d515a(0xd6)][_0x2d515a(0x193)][_0x2d515a(0x107)](_0xdcefe4);if(!this[_0x2d515a(0x124)][_0x2d515a(0xfe)](_0xdcefe4)){const _0x498a47=_0x4b419b&&_0x4b419b[_0x2d515a(0x11a)]?_0x4b419b[_0x2d515a(0x11a)]:'',_0x5db500=_0x4b419b&&_0x4b419b[_0x2d515a(0xd3)]?_0x4b419b[_0x2d515a(0xd3)]:{};await this[_0x2d515a(0x14f)](_0xdcefe4,_0x498a47,_0x5db500);}this[_0x2d515a(0x110)][_0x2d515a(0xd6)][_0x2d515a(0x173)]({'isUndoable':!0x1},()=>{const _0x4b0aeb=_0x2d515a;_0x3d11e2[_0x4b0aeb(0x19a)]=!0x0,this[_0x4b0aeb(0x110)][_0x4b0aeb(0xd6)][_0x4b0aeb(0x193)][_0x4b0aeb(0xe1)][_0x4b0aeb(0x16c)](_0x3d11e2);});},{'priority':_0x3e59d8(0x114)});}async[_0x48cf25(0xf0)](_0x3bff05){const _0x140357=_0x48cf25,_0x511ce0=this[_0x140357(0x110)][_0x140357(0xd0)][_0x140357(0xdb)](_0x18fbdd),{connection:_0x2c59ee}=this[_0x140357(0x110)][_0x140357(0xd0)][_0x140357(0xdb)](_0x5615bf),_0x4d3c0e=new Set();for(const _0x5bd676 of _0x3bff05){const _0x3c4c14=_0x5bd676[_0x140357(0x1ce)];_0x3c4c14&&!_0x511ce0[_0x140357(0xe6)](_0x3c4c14)&&_0x4d3c0e[_0x140357(0x11e)](_0x3c4c14);}if(0x0===_0x4d3c0e[_0x140357(0x113)])return;const _0x5e9727=await _0x3b1967[_0x140357(0xe9)](_0x2c59ee,Array[_0x140357(0x195)](_0x4d3c0e));for(const _0x1c3c45 of _0x5e9727)_0x511ce0[_0x140357(0xe6)](_0x1c3c45['id'])||_0x511ce0[_0x140357(0x128)](_0x1c3c45);}[_0x48cf25(0x170)](_0x4584fa,_0x4244bd={}){const _0x1f5eca=_0x48cf25,_0x19f334=this[_0x1f5eca(0x110)][_0x1f5eca(0xd6)],_0x207434=[];let _0x19a94f=0x0;const _0x35d6c7=_0x1f5eca(0x144)==typeof _0x4584fa?{'main':_0x4584fa}:_0x4584fa;for(const _0x35c88f of Object[_0x1f5eca(0x19c)](_0x35d6c7)){if(!this[_0x1f5eca(0xcf)][_0x1f5eca(0x165)][_0x1f5eca(0xfe)](_0x35c88f))throw new _0x287132(_0x1f5eca(0x180),this);const _0x1adbae=this[_0x1f5eca(0x110)][_0x1f5eca(0x11a)][_0x1f5eca(0x12e)](_0x35d6c7[_0x35c88f]),_0x637b76=this[_0x1f5eca(0xcf)][_0x1f5eca(0x107)](_0x35c88f),_0x14a11b=new _0x47bbca(_0x19f334[_0x1f5eca(0xcc)](_0x637b76,0x0),_0x1adbae,_0x19a94f++);_0x207434[_0x1f5eca(0x168)](_0x14a11b);for(const [_0x53d848,_0x315bc6]of _0x1adbae[_0x1f5eca(0xec)]){const _0x481324=_0x19f334[_0x1f5eca(0xd5)](_0x19f334[_0x1f5eca(0x108)](_0x637b76,_0x315bc6[_0x1f5eca(0x123)][_0x1f5eca(0xfd)][_0x1f5eca(0xfa)]()),_0x19f334[_0x1f5eca(0x108)](_0x637b76,_0x315bc6[_0x1f5eca(0x1cb)][_0x1f5eca(0xfd)][_0x1f5eca(0xfa)]())),_0x2ad104=new _0x5f31cd(_0x53d848,null,_0x481324,_0x19f334[_0x1f5eca(0xec)],!0x0,_0x19a94f++);_0x207434[_0x1f5eca(0x168)](_0x2ad104);}}if(_0x4244bd)for(const [_0x16ab17,_0xd1849c]of Object[_0x1f5eca(0x192)](_0x4244bd)){const _0x440bbd=_0x19f334[_0x1f5eca(0x193)][_0x1f5eca(0x107)](_0x16ab17);if(!_0x440bbd)throw new _0x287132(_0x1f5eca(0xde),null);for(const [_0x506e03,_0x48c2cc]of Object[_0x1f5eca(0x192)](_0xd1849c))if(null!==_0x48c2cc){const _0x231f79=new _0xcabfeb(_0x440bbd,_0x506e03,null,_0x48c2cc,_0x19a94f++);_0x207434[_0x1f5eca(0x168)](_0x231f79);}}return _0x207434;}async[_0x48cf25(0x14f)](_0x1ceb68,_0x1c7bab,_0x543be5){const _0xf5a06a=_0x48cf25;this[_0xf5a06a(0x170)]({[_0x1ceb68]:_0x1c7bab},{[_0x1ceb68]:_0x543be5})[_0xf5a06a(0x1c7)]((_0x290e79,_0x2407bd)=>{const _0x5d2890=_0xf5a06a;_0x290e79[_0x5d2890(0x126)]=this[_0x5d2890(0xcf)][_0x5d2890(0xcb)]+_0x2407bd,_0x290e79[_0x5d2890(0x154)]=!0x0,this[_0x5d2890(0x148)](_0x290e79);}),this[_0xf5a06a(0xf6)](),await this[_0xf5a06a(0x11b)]();}async[_0x48cf25(0x115)](_0x3b6ad1,_0x2697a3){const _0x3f203f=_0x48cf25;let _0x17a0d9;this[_0x3f203f(0x17a)]=_0x3b6ad1[_0x3f203f(0x163)];const _0x5a548a=_0x3b6ad1[_0x3f203f(0x11c)]&&!_0x3b6ad1[_0x3f203f(0x1a1)],_0x40914b=_0x5a548a?0x0:_0x3b6ad1[_0x3f203f(0x11a)][_0x3f203f(0x126)];if(_0x2697a3[_0x3f203f(0x1c7)](_0x1e7067=>{const _0x135682=_0x3f203f;_0x1e7067[_0x135682(0x154)]=!0x0,_0x1e7067[_0x135682(0x151)]=_0x3b6ad1[_0x135682(0x174)],_0x1e7067[_0x135682(0x1ce)]=null;}),_0x5a548a)_0x17a0d9=_0x2697a3,this[_0x3f203f(0xd7)](_0x17a0d9,_0x5a548a);else{if(_0x3b6ad1[_0x3f203f(0x1a1)]){const _0x150e51=this[_0x3f203f(0x170)](_0x3b6ad1[_0x3f203f(0x1a1)]);this[_0x3f203f(0xcf)][_0x3f203f(0xe8)][_0x3f203f(0xcb)]=-_0x150e51[_0x3f203f(0x16f)],_0x150e51[_0x3f203f(0x1c7)](_0x4998e0=>{const _0x14ba84=_0x3f203f;_0x4998e0[_0x14ba84(0x126)]-=_0x150e51[_0x14ba84(0x16f)],_0x4998e0[_0x14ba84(0x151)]=_0x3b6ad1[_0x14ba84(0x174)],_0x4998e0[_0x14ba84(0x154)]=!0x0,_0x4998e0[_0x14ba84(0x1ce)]=null;}),this[_0x3f203f(0xd7)](_0x150e51,!0x0),this[_0x3f203f(0x12f)][_0x3f203f(0xcb)]=-_0x150e51[_0x3f203f(0x16f)]+this[_0x3f203f(0x17a)],this[_0x3f203f(0xd4)](_0x150e51);}this[_0x3f203f(0xcf)][_0x3f203f(0xe8)][_0x3f203f(0xcb)]=_0x40914b,_0x17a0d9=this[_0x3f203f(0x12a)](_0x3b6ad1[_0x3f203f(0x11a)],_0x3b6ad1[_0x3f203f(0x161)]),await this[_0x3f203f(0xf0)](_0x17a0d9),this[_0x3f203f(0xd7)](_0x17a0d9,_0x5a548a);}_0x3b6ad1[_0x3f203f(0x10a)]&&(this[_0x3f203f(0xe4)][_0x3f203f(0x14c)](_0x17a0d9,_0x3b6ad1[_0x3f203f(0x10a)]),this[_0x3f203f(0x130)]=_0x3b6ad1[_0x3f203f(0x10a)]),this[_0x3f203f(0x12f)][_0x3f203f(0xcb)]=_0x40914b+this[_0x3f203f(0x17a)],this[_0x3f203f(0xd4)](_0x17a0d9),_0x2697a3[_0x3f203f(0x1c4)](_0x46a1dd=>{const _0x3a3c65=_0x3f203f,_0x34a399=this[_0x3a3c65(0x11d)](_0x46a1dd);return _0x34a399&&!this[_0x3a3c65(0x124)][_0x3a3c65(0xfe)](_0x34a399);})[_0x3f203f(0x1c7)]((_0x2eea9d,_0x3f26ed)=>{const _0x3e0bbb=_0x3f203f;_0x2eea9d[_0x3e0bbb(0x126)]=this[_0x3e0bbb(0xcf)][_0x3e0bbb(0xcb)]+_0x3f26ed,this[_0x3e0bbb(0x148)](_0x2eea9d);}),this[_0x3f203f(0x175)]()?(this[_0x3f203f(0x169)]=0x0,this[_0x3f203f(0xf6)](!0x0),await this[_0x3f203f(0x11b)]()):(this[_0x3f203f(0x178)]=!0x1,this[_0x3f203f(0x17d)]());}[_0x48cf25(0xda)](_0x258dee,_0x4924f8){const _0x45c052=_0x48cf25,_0x164c1f=_0x4924f8&&_0x4924f8[_0x45c052(0x118)];if(_0x164c1f&&_0x164c1f[_0x45c052(0x1c3)](_0x45c052(0x1c5)))throw _0x4924f8;const _0x5dd9c0=this[_0x45c052(0x110)][_0x45c052(0xd0)][_0x45c052(0xdb)](_0x5615bf);throw this[_0x45c052(0x178)]=!0x0,_0x5dd9c0[_0x45c052(0x1bf)](),this[_0x45c052(0x110)][_0x45c052(0x18d)](_0x45c052(0xff)),new _0x287132(_0x258dee,this[_0x45c052(0x110)],_0x164c1f?{'originalError':_0x164c1f}:void 0x0);}[_0x48cf25(0x148)](_0x930360){const _0x38989f=_0x48cf25;this[_0x38989f(0x106)][_0x38989f(0xfe)](_0x930360)||(this[_0x38989f(0x106)][_0x38989f(0x11e)](_0x930360),this[_0x38989f(0x158)][_0x38989f(0x168)](_0x930360),this[_0x38989f(0xcd)]||_0x38989f(0x16a)==_0x930360[_0x38989f(0x143)]&&!_0x930360[_0x38989f(0x145)]||this[_0x38989f(0x1cc)]());}[_0x48cf25(0xf6)](_0x1eb5f9=!0x1){const _0x3495eb=_0x48cf25;!_0x1eb5f9&&this[_0x3495eb(0x178)]||(this[_0x3495eb(0x178)]=!0x0,clearTimeout(this[_0x3495eb(0x1c8)]),this[_0x3495eb(0x1c8)]=setTimeout(()=>{const _0x3a0145=_0x3495eb;this[_0x3a0145(0x1a8)]()[_0x3a0145(0x1bd)](_0x2f9e51=>{const _0x3e3438=_0x3a0145;_0x2f9e51&&(this[_0x3e3438(0x17d)](),this[_0x3e3438(0x178)]=!0x1);})[_0x3a0145(0x133)](_0x545a0a=>{const _0x473923=_0x3a0145;this[_0x473923(0x17d)](),this[_0x473923(0x178)]=!0x1,function(_0x871ece){const _0x2d4468=_0x473923;return _0x871ece[_0x2d4468(0x118)][_0x2d4468(0x1c3)](_0x2d4468(0x16b))||_0x871ece[_0x2d4468(0x118)][_0x2d4468(0x1c3)](_0x2d4468(0x13e))||_0x871ece[_0x2d4468(0x118)][_0x2d4468(0x1c3)](_0x2d4468(0x198));}(_0x545a0a)||this[_0x473923(0xda)](_0x545a0a[_0x473923(0x118)],_0x545a0a);});},this[_0x3495eb(0x169)]));}[_0x48cf25(0x11b)](){return new Promise(_0xe30d53=>{const _0x1d5933=_0x1b51;this['on'](_0x1d5933(0x134),()=>{_0xe30d53();});});}async[_0x48cf25(0x1a8)](){const _0x325227=_0x48cf25,_0x4e3f68=this[_0x325227(0x110)][_0x325227(0xd0)][_0x325227(0xdb)](_0x4f70a5);if(this[_0x325227(0x13f)]()&&(_0x4e3f68[_0x325227(0x18b)](),this[_0x325227(0x129)]=!0x1),!this[_0x325227(0x175)]())return!0x0;const _0x25c217=[...this[_0x325227(0x158)]];for(const _0x486d2f of _0x25c217)_0x486d2f[_0x325227(0x19d)]=this[_0x325227(0xcf)][_0x325227(0xe8)][_0x325227(0x10d)](_0x486d2f);const _0x1dec62=this[_0x325227(0xe4)][_0x325227(0x1a9)](_0x25c217),_0x3bdf03=G++,_0x2f93aa=this[_0x325227(0x1b9)](_0x25c217),_0x45ddcd=await this[_0x325227(0x1c6)][_0x325227(0x125)](_0x2f93aa,_0x2f93aa[_0x325227(0x126)],_0x1dec62);try{return await this[_0x325227(0x13a)](_0x25c217,_0x45ddcd,_0x3bdf03);}catch(_0x5652e1){return this[_0x325227(0xda)](_0x325227(0x189),_0x5652e1);}}async[_0x48cf25(0x13a)](_0x2a209f,_0xc57dd2,_0x1565e8){const _0x5ee3b9=_0x48cf25;if(_0x5ee3b9(0x139)in _0xc57dd2)throw _0xc57dd2[_0x5ee3b9(0x139)];let _0x15c987=!0x1;if(_0xc57dd2[_0x5ee3b9(0x11c)]){_0xc57dd2[_0x5ee3b9(0x10a)]&&(this[_0x5ee3b9(0x130)]=_0xc57dd2[_0x5ee3b9(0x10a)]),this[_0x5ee3b9(0x158)]=this[_0x5ee3b9(0x158)][_0x5ee3b9(0x1c4)](_0x560ed0=>!_0x2a209f[_0x5ee3b9(0x1a0)](_0x560ed0));for(const _0x3a622d of _0x2a209f)_0x3a622d[_0x5ee3b9(0x151)]=_0x5ee3b9(0x13d)in _0xc57dd2&&_0xc57dd2[_0x5ee3b9(0x13d)]||void 0x0;K(_0x2a209f,_0xc57dd2[_0x5ee3b9(0xcb)]-_0x2a209f[_0x5ee3b9(0x16f)]),this[_0x5ee3b9(0xd4)](_0x2a209f);const _0x566aa9=_0x2a209f[_0x5ee3b9(0x1c4)](_0x176ed6=>{const _0x36dd2b=_0x5ee3b9;if(!_0x176ed6[_0x36dd2b(0x154)])return!0x1;const _0x1c6000=this[_0x36dd2b(0x11d)](_0x176ed6);return _0x1c6000&&!this[_0x36dd2b(0x124)][_0x36dd2b(0xfe)](_0x1c6000);});K(_0x566aa9,this[_0x5ee3b9(0xcf)][_0x5ee3b9(0xcb)]),this[_0x5ee3b9(0xd7)](_0x566aa9),_0x15c987=!0x0,this[_0x5ee3b9(0x169)]=this[_0x5ee3b9(0x14b)];}else{const _0x29dbe3=this[_0x5ee3b9(0x12a)](_0xc57dd2[_0x5ee3b9(0x11a)],_0xc57dd2[_0x5ee3b9(0x161)])[_0x5ee3b9(0x1c4)](_0xc85670=>_0xc85670[_0x5ee3b9(0x126)]>=this[_0x5ee3b9(0xf2)]);_0x29dbe3[_0x5ee3b9(0x1c7)](_0x5195ac=>this[_0x5ee3b9(0x10c)](_0x5195ac)),this[_0x5ee3b9(0x158)]=this[_0x5ee3b9(0x158)][_0x5ee3b9(0x1c4)](_0x44a638=>!_0x44a638[_0x5ee3b9(0x154)]||!this[_0x5ee3b9(0x124)][_0x5ee3b9(0xfe)](this[_0x5ee3b9(0x11d)](_0x44a638))),this[_0x5ee3b9(0x158)][_0x5ee3b9(0x16f)]&&K(this[_0x5ee3b9(0x158)],this[_0x5ee3b9(0x158)][0x0][_0x5ee3b9(0x126)]),await this[_0x5ee3b9(0xf0)](_0x29dbe3),_0x15c987=this[_0x5ee3b9(0x1ba)](_0x29dbe3,_0xc57dd2[_0x5ee3b9(0xcb)],_0xc57dd2[_0x5ee3b9(0x10a)]),this[_0x5ee3b9(0x169)]=Math[_0x5ee3b9(0xfb)](this[_0x5ee3b9(0x169)]/0x2);}return _0x15c987?!this[_0x5ee3b9(0x175)]()||(this[_0x5ee3b9(0xf6)](!0x0),!0x1):this[_0x5ee3b9(0xda)](_0x5ee3b9(0xdf));}[_0x48cf25(0x1ba)](_0x54b651,_0x11f022,_0x4cbfb0){const _0x28f87e=_0x48cf25;try{const _0x4185a3={'document':this[_0x28f87e(0xcf)],'useRelations':!0x1,'padWithNoOps':!0x0},{operationsA:_0x8a5be,operationsB:_0x413e88,originalOperations:_0x3a017a}=_0x2e7ce9(_0x54b651,this[_0x28f87e(0x158)],_0x4185a3);K(_0x8a5be,this[_0x28f87e(0xcf)][_0x28f87e(0xcb)]),K(_0x413e88,_0x11f022);for(const _0x58add2 of _0x8a5be){const _0x44bc21=_0x3a017a[_0x28f87e(0xdb)](_0x58add2);_0x58add2[_0x28f87e(0x1ce)]=_0x44bc21?_0x44bc21[_0x28f87e(0x1ce)]:null;}_0x4cbfb0&&(this[_0x28f87e(0xe4)][_0x28f87e(0x14c)](_0x54b651,_0x4cbfb0),this[_0x28f87e(0x130)]=_0x4cbfb0),this[_0x28f87e(0x158)]=[..._0x413e88],this[_0x28f87e(0xd7)](_0x8a5be),this[_0x28f87e(0xd4)](_0x54b651);}catch(_0x245871){return console[_0x28f87e(0x139)](_0x245871),!0x1;}return!0x0;}[_0x48cf25(0xd7)](_0x110f3d,_0x5a0aca=!0x1){const _0x310f4a=_0x48cf25;this[_0x310f4a(0x110)][_0x310f4a(0xd6)][_0x310f4a(0x173)]({'isUndoable':!0x1,'isLocal':!0x1},_0x357c53=>{const _0x2d6ffe=_0x310f4a;for(const _0x10d191 of _0x110f3d)this[_0x2d6ffe(0x106)][_0x2d6ffe(0x11e)](_0x10d191),this[_0x2d6ffe(0x10c)](_0x10d191),_0x357c53[_0x2d6ffe(0x12d)][_0x2d6ffe(0x1be)](_0x10d191),this[_0x2d6ffe(0x110)][_0x2d6ffe(0xd6)][_0x2d6ffe(0x135)](_0x10d191);});}[_0x48cf25(0x10c)](_0x4d2c2f){const _0x110503=_0x48cf25,_0x510b43=this[_0x110503(0x11d)](_0x4d2c2f);_0x510b43&&this[_0x110503(0x124)][_0x110503(0x11e)](_0x510b43);}[_0x48cf25(0x11d)](_0x324ff3){const _0x234dd2=_0x48cf25;let _0x269866,_0x54a3e2;switch(_0x324ff3[_0x234dd2(0x143)]){case _0x234dd2(0x1b8):_0x269866=_0x324ff3[_0x234dd2(0xf8)][_0x234dd2(0x197)];break;case _0x234dd2(0x16a):if(_0x54a3e2=_0x324ff3[_0x234dd2(0x155)],!_0x54a3e2)return null;_0x269866=_0x54a3e2[_0x234dd2(0x197)];break;case _0x234dd2(0x176):_0x269866=_0x324ff3[_0x234dd2(0x197)];break;case _0x234dd2(0x1ac):_0x269866=_0x324ff3[_0x234dd2(0xe0)];break;case _0x234dd2(0x1cf):_0x269866=_0x324ff3[_0x234dd2(0x1b4)][_0x234dd2(0x197)];break;default:return null;}return _0x269866[_0x234dd2(0x171)];}[_0x48cf25(0xd4)](_0x5730db){const _0xec85c9=_0x48cf25;_0x5730db[_0xec85c9(0x1c7)](_0x35aca7=>{const _0x13f292=_0xec85c9,_0x5d4c50=_0x35aca7[_0x13f292(0x100)]();_0x5d4c50[_0x13f292(0x1ce)]=_0x35aca7[_0x13f292(0x1ce)],_0x5d4c50[_0x13f292(0x154)]=!!_0x35aca7[_0x13f292(0x154)],_0x5d4c50[_0x13f292(0x151)]=_0x35aca7[_0x13f292(0x151)],_0x5d4c50[_0x13f292(0x126)]+=this[_0x13f292(0x17a)],_0x35aca7[_0x13f292(0x102)]&&this[_0x13f292(0xd9)][_0x13f292(0x11e)](_0x5d4c50),this[_0x13f292(0x12f)][_0x13f292(0x1be)](_0x5d4c50);});}[_0x48cf25(0x185)](_0x101174){const _0x463703=_0x48cf25,_0x4e39ea=this[_0x463703(0x110)][_0x463703(0xd0)][_0x463703(0xdb)](_0x463703(0x1bb)),_0x402f20=this[_0x463703(0x110)][_0x463703(0x1a2)];_0x101174||(_0x101174=_0x3894e8(_0x402f20,_0x463703(0x140))),_0x4e39ea[_0x463703(0x1ca)](_0x101174,{'title':_0x3894e8(_0x402f20,_0x463703(0x119)),'namespace':_0x463703(0x12c)}),this[_0x463703(0x13b)]=!0x0,clearTimeout(this[_0x463703(0x1c8)]),this[_0x463703(0x158)]=[],this[_0x463703(0x110)][_0x463703(0xd0)][_0x463703(0xdb)](_0x5615bf)[_0x463703(0x1bf)]();}[_0x48cf25(0x1cc)](){const _0x125e4a=_0x48cf25;this[_0x125e4a(0xcd)]||(this[_0x125e4a(0xcd)]=this[_0x125e4a(0x110)][_0x125e4a(0xd0)][_0x125e4a(0xdb)](_0x2b5d75)[_0x125e4a(0x11e)](_0x3894e8(this[_0x125e4a(0x110)][_0x125e4a(0x1a2)],_0x125e4a(0x141))));}[_0x48cf25(0x17d)](){const _0xc31c9b=_0x48cf25;this[_0xc31c9b(0xcd)]&&(this[_0xc31c9b(0x110)][_0xc31c9b(0xd0)][_0xc31c9b(0xdb)](_0x2b5d75)[_0xc31c9b(0x14e)](this[_0xc31c9b(0xcd)]),this[_0xc31c9b(0xcd)]=null);}[_0x48cf25(0x1b9)](_0x59a297){const _0x2cd318=_0x48cf25,_0x5c311c=_0x59a297[_0x2cd318(0x172)](_0x14bebd=>_0x14bebd[_0x2cd318(0x131)]());return this[_0x2cd318(0x18f)][_0x2cd318(0x19e)](_0x5c311c);}[_0x48cf25(0x12a)](_0x402776,_0x186a92){const _0x5e7c0c=_0x48cf25;return this[_0x5e7c0c(0x18f)][_0x5e7c0c(0x1a7)](_0x402776)[_0x5e7c0c(0x172)]((_0x14fecd,_0x58cd65)=>{const _0x2b67d9=_0x5e7c0c,_0x5be2a9=_0x2b67d9(0x1a5)==_0x186a92[_0x58cd65][_0x2b67d9(0x143)];if(_0x2b67d9(0x1b3)==_0x14fecd[_0x2b67d9(0x19f)]){const _0x1dc95f=_0x14fecd[_0x2b67d9(0xf8)][_0x2b67d9(0x197)];!this[_0x2b67d9(0xcf)][_0x2b67d9(0x107)](_0x1dc95f)&&(this[_0x2b67d9(0xcf)][_0x2b67d9(0x18e)](_0x2b67d9(0x157),_0x1dc95f)[_0x2b67d9(0x156)]=!0x1);}const _0x2aafcc=_0x1d9a29[_0x2b67d9(0x17f)](_0x14fecd,this[_0x2b67d9(0xcf)]);return _0x2aafcc[_0x2b67d9(0x19d)]=_0x14fecd[_0x2b67d9(0x19d)],_0x2aafcc[_0x2b67d9(0x154)]=_0x5be2a9,_0x2aafcc[_0x2b67d9(0x1ce)]=_0x5be2a9?null:_0x186a92[_0x58cd65][_0x2b67d9(0x18a)],_0x2aafcc[_0x2b67d9(0x102)]=_0x2b67d9(0x147)===_0x186a92[_0x58cd65][_0x2b67d9(0x143)],_0x2aafcc[_0x2b67d9(0x151)]=_0x186a92[_0x58cd65][_0x2b67d9(0x151)],_0x2aafcc;});}[_0x48cf25(0xea)](){const _0x4a88ea=_0x48cf25;this[_0x4a88ea(0x129)]=!0x0,this[_0x4a88ea(0x13f)]()?this[_0x4a88ea(0xf6)]():this[_0x4a88ea(0x129)]=!0x1;}[_0x48cf25(0x13f)](){const _0x3d0249=_0x48cf25,_0x12a49a=this[_0x3d0249(0x110)][_0x3d0249(0xd0)][_0x3d0249(0xdb)](_0x166e79)[_0x3d0249(0x15a)][_0x3d0249(0xdb)](this[_0x3d0249(0xe7)]);return!this[_0x3d0249(0x110)][_0x3d0249(0x153)]&&!!_0x12a49a&&_0x12a49a[_0x3d0249(0x16f)]>0x1&&this[_0x3d0249(0x129)];}[_0x48cf25(0x175)](){const _0x22a451=_0x48cf25;return this[_0x22a451(0x158)][_0x22a451(0x16f)]>0x0||this[_0x22a451(0x13f)]();}}function _0x5095(){const _0x2467c0=['2497tazQdy','_ignoredOperations','sessionId','metadata','define','offset','realtimecollaborationclient-init-document-already-initialized','roots','permissions','realtimecollaborationclient-init-session-connection-error','push','_currentBufferDelay','marker','cloud-services-internal-error:\x20Not\x20connected.','_bufferRootLoad','22719QphCtg','isOfficialPlugin','length','_getOperationsFromInitData','rootName','map','enqueueChange','sessionCreatedAt','_shouldSendUpdate','addRootAttribute','operationsReceived','_isPendingUpdate','1660eACTIl','_offset','getOperationAuthor','connected','_clearPendingAction','mySessionId','fromJSON','realtimecollaborationclient-init-non-existent-root','pluginName','selection','loadRoot','The\x20last\x20saved\x20version\x20of\x20the\x20document\x20does\x20not\x20match\x20the\x20local\x20version.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','_handleReconnectionError','The\x20document\x20details\x20could\x20not\x20be\x20taken\x20during\x20the\x20reconnection.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','cloudDocumentVersion','sessionAdd:','realtimecollaborationclient-sendbufferedoperations','userId','createUserMarkerOperations','off','enableReadOnlyMode','createRoot','_compressor','config','connection','entries','document','The\x20document\x20cannot\x20be\x20connected\x20back\x20to\x20the\x20server.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','from','view','root','cloud-services-internal-error:\x20Request\x20timeout.','setPermissions','_isLoaded','finally','keys','wasUndone','compress','__className','includes','initData','locale','51457gRKqXC','cloudServices.bundleVersion','init','RealTimeCollaborationClient','decompress','_sendBufferedOperations','getIdOfTheLastOperation','Permissions','lastSyncVersion','addRoot','change:_isEditingAllowed','_initSessionsHandling','stopListening','isDocumentOperation','1668OTBsyS','change:range','InsertOperation','targetPosition','getOperations','document:write','requires','insert','_compressOperations','_handleExternalOperations','Notification','realtimecollaborationclient-init-service-internal-error','then','addOperation','disconnect','change:hasDomSelection','rtc-destroyed','1328ANLqVU','startsWith','filter','realtimecollaborationclient','_service','forEach','_sendBufferedOperationsDelayId','reset','showWarning','end','_setPendingAction','getConnectedSessions','_authorId','move','isPremiumPlugin','stop','version','createPositionAt','_pendingAction','return','_document','plugins','realtimecollaborationclient-editor-setdata-and-editor-data-set-are-forbidden-in-real-time-collaboration','214OEnZoK','attributes','_updateServerHistory','createRange','model','_applyOperationsSet','code','_disconnectionOperations','_crash','get','CommentsOnly','_handleReconnectionResponse','multi-root-editor-root-attributes-no-root','realtimecollaborationclient-handleserverresponse','affectedSelectable','differ','_disconnectService','currentDocumentSession','_operationIdentifier','CollaborativeEditingService','getUser','_channelId','history','getMany','_refreshUserSelectionMarkers','_isConnected','markers','ready','isEnabled','_connectAfterSessionHasBeenFlushed','_fetchMissingUsers','addToReconnectionStack','_lastServerVersion','10217313QrmOKP','reconnection:\x20flushed\x20session','destroy','_sendBufferedOperationsDelayed','2361648vXfiJO','position','_initThrowingOnDataSet','slice','round','editing','path','has','realtimecollaborationclient-error','clone','reconnect','_isDisconnection','bind','realtimecollaborationclient-init-service-incorrect-server-operation','_handleReceivedOperations','_knownOperations','getRoot','createPositionFromPath','register','lastOperationId','fire','_addKnownRoot','isUndoneOperation','connect','getDocumentDetails','editor','81340eVFUsz','realtimecollaborationclient-init-connection-failed','size','high','_handleInitialConnectionData','collaboration.channelId','rootsAttributes','message','Synchronization\x20issue','data','_waitUntilSynced','wereChangesApplied','_getAffectedRoot','add','18724lgjZui','disableReadOnlyMode','404','disconnected','start','_knownRootNames','sendOperations','baseVersion','_operationToId','addUser','_hasSelectionChanged','_decompressOperations','listenTo','real-time-collaboration','batch','parse','serverHistory','_lastSyncedOperationId','toJSON','_handleSendingSelectionMarkers','catch','change:_isPendingUpdate','applyOperation','collaboration','directChange','removeFromReconnectionStack','error','_handleServerResponse','_hasSynchronizationProblem','unregister','lastOperationAcceptedAt','cloud-services-internal-error:\x20Collaborative\x20Editing\x20Service\x20is\x20not\x20connected.','_shouldSendSelectionUpdate','The\x20local\x20document\x20and\x20server\x20document\x20differ\x20and\x20merging\x20them\x20can\x20cause\x20unexpected\x20behavior.\x20To\x20not\x20lose\x20your\x20content\x20save\x20it\x20locally\x20and\x20refresh\x20the\x20editor.','PENDING_ACTION_SENDING_DATA','rtc-offline','type','string','affectsData','suppressErrorInCollaboration','cs:removeUser','_saveOperationInBuffer','_connectService','_setUpDataInit','_baseBufferDelay','setIdForTheLastOperation','collaboration-missing-channelid','remove','_loadRoot','apply','createdAt','set','isReadOnly','_isInit','newRange','_isAttached','$root','_bufferedOperations','409','channelSessions','_isEditingAllowed','state','lastDocumentSession'];_0x5095=function(){return _0x2467c0;};return _0x5095();}export{l as RealTimeCollaborationClient};class $ extends Error{}function K(_0x438d19,_0x4369bb){const _0x2be03b=_0x48cf25;for(const _0x6a9e2a of _0x438d19)_0x6a9e2a[_0x2be03b(0x126)]=_0x4369bb++;}class J{[_0x48cf25(0x15f)];[_0x48cf25(0x127)];constructor(_0x3c6a16){const _0x1404e9=_0x48cf25;this[_0x1404e9(0x15f)]=_0x3c6a16,this[_0x1404e9(0x127)]=new WeakMap();}[_0x48cf25(0x1a9)](_0x1fb3a9){const _0x20e356=_0x48cf25;let _0x2722ae=_0x1fb3a9[_0x20e356(0x16f)];for(;_0x2722ae--;){const _0x5c1623=_0x1fb3a9[_0x2722ae];if(!this[_0x20e356(0x15f)][_0x20e356(0xfe)](_0x5c1623)){if(!this[_0x20e356(0x127)][_0x20e356(0xfe)](_0x5c1623)){const _0x3da428=_0x3c0256()[_0x20e356(0xfa)](0x1,0x12);this[_0x20e356(0x127)][_0x20e356(0x152)](_0x5c1623,_0x3da428);}return this[_0x20e356(0x127)][_0x20e356(0xdb)](_0x5c1623);}}}[_0x48cf25(0x14c)](_0x4b6472,_0x30016b){const _0x1beae4=_0x48cf25;if(!_0x30016b)return;let _0x1db0a5=_0x4b6472[_0x1beae4(0x16f)];for(;_0x1db0a5--;){const _0x1bb0d6=_0x4b6472[_0x1db0a5];this[_0x1beae4(0x15f)][_0x1beae4(0xfe)](_0x1bb0d6)||this[_0x1beae4(0x127)][_0x1beae4(0x152)](_0x1bb0d6,_0x30016b);}}}
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { ContextPlugin, type Editor, type Context } from 'ckeditor5/src/core.js';
|
|
10
10
|
import { Collection } from 'ckeditor5/src/utils.js';
|
|
11
|
-
import WebSocketGateway from './websocketgateway.js';
|
|
11
|
+
import { WebSocketGateway } from './websocketgateway.js';
|
|
12
12
|
import { Users, type User } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
13
13
|
import type { User as ServerUserModel, SessionCollection, ISocket } from '@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';
|
|
14
|
-
export type
|
|
14
|
+
export type RtcServerUser = ServerUserModel & User;
|
|
15
15
|
/**
|
|
16
16
|
*
|
|
17
17
|
* The `Sessions` plugin stores the information about the users and sessions connected to the rich text editor.
|
|
@@ -33,7 +33,7 @@ export type ServerUser = ServerUserModel & User;
|
|
|
33
33
|
* two sessions but only one user will be connected. You will be able to see two selections in the same document, both in
|
|
34
34
|
* the same color, but only a single user in the {@link module:real-time-collaboration/presencelist~PresenceList user presence list}.
|
|
35
35
|
*/
|
|
36
|
-
export
|
|
36
|
+
export declare class Sessions extends ContextPlugin {
|
|
37
37
|
/**
|
|
38
38
|
* A map of session collections connected to the separate channels.
|
|
39
39
|
*
|
|
@@ -95,7 +95,7 @@ export default class Sessions extends ContextPlugin {
|
|
|
95
95
|
/**
|
|
96
96
|
* Returns a reference to the user connected with a session with the given ID.
|
|
97
97
|
*/
|
|
98
|
-
getUserBySessionId(sessionId: string):
|
|
98
|
+
getUserBySessionId(sessionId: string): RtcServerUser | undefined;
|
|
99
99
|
/**
|
|
100
100
|
* Returns a set of ids of all currently connected sessions for the given user.
|
|
101
101
|
*
|
|
@@ -104,18 +104,18 @@ export default class Sessions extends ContextPlugin {
|
|
|
104
104
|
*
|
|
105
105
|
* Optionally the result can be limited to the given channelId.
|
|
106
106
|
*/
|
|
107
|
-
getUserSessions(user:
|
|
107
|
+
getUserSessions(user: RtcServerUser, channelId?: string): Set<string>;
|
|
108
108
|
/**
|
|
109
109
|
* Returns the role of a given user.
|
|
110
110
|
*/
|
|
111
|
-
getUserRole(user:
|
|
111
|
+
getUserRole(user: RtcServerUser): string | undefined;
|
|
112
112
|
}
|
|
113
113
|
/**
|
|
114
114
|
* Fired when the new user session is added.
|
|
115
115
|
*
|
|
116
116
|
* @eventName ~Sessions#sessionAdd:channelId
|
|
117
117
|
*/
|
|
118
|
-
export type
|
|
118
|
+
export type RtcSessionAddEvent = {
|
|
119
119
|
name: 'sessionAdd' | `sessionAdd:${string}`;
|
|
120
120
|
args: [
|
|
121
121
|
{
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x4a1f4e=_0x4d19;(function(_0x1ceb89,_0xba3f2a){const _0x206798=_0x4d19,_0x2e7473=_0x1ceb89();while(!![]){try{const _0x5ac10d=-parseInt(_0x206798(0xd5))/0x1+parseInt(_0x206798(0xcf))/0x2+parseInt(_0x206798(0xde))/0x3*(-parseInt(_0x206798(0xb4))/0x4)+parseInt(_0x206798(0xdd))/0x5*(-parseInt(_0x206798(0xe2))/0x6)+parseInt(_0x206798(0xb8))/0x7*(parseInt(_0x206798(0xea))/0x8)+-parseInt(_0x206798(0xbe))/0x9+parseInt(_0x206798(0xe5))/0xa;if(_0x5ac10d===_0xba3f2a)break;else _0x2e7473['push'](_0x2e7473['shift']());}catch(_0x3daa0c){_0x2e7473['push'](_0x2e7473['shift']());}}}(_0x1cd1,0x51706));import{ContextPlugin as _0x35f650}from'ckeditor5/src/core.js';function _0x1cd1(){const _0x2e0505=['requires','5655888ZxzXya','set','_handleSessionAdd','register','_handleSessionRemove','state','clear','Sessions','role','context','defineMe','getUser','assign','pluginName','fire','forEach','channelConnectedUsers','566998xqnyuT','isOfficialPlugin','add','listenTo','_createUser','plugins','528019LURLIy','allConnectedUsers','sessions-unregister-not-exist','sessions-register-already-registered','stopListening','channelSessions','orderNumber','change:state','1209055IaARLT','2241wZhnBb','getUserBySessionId','remove','connection','6CSwYRd','delete','getUserSessions','11405610IqNvSI','get','sessionAdd:','mySessionId','connected','3962184wjiQOG','isMe','getUserRole','sessionId','user','values','_users','has','1004TizTCn','_uniqueUsersCount','unregister','_registeredSessions','7JqMxys','addUser','isPremiumPlugin','init','size'];_0x1cd1=function(){return _0x2e0505;};return _0x1cd1();}import{Collection as _0x2ff111,CKEditorError as _0x38965a}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x5998bd}from'./websocketgateway.js';import{Users as _0x4d6cd7}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x4d19(_0x214c1b,_0x4b3886){const _0x1cd10e=_0x1cd1();return _0x4d19=function(_0x4d19af,_0x236c3d){_0x4d19af=_0x4d19af-0xb1;let _0x1b7982=_0x1cd10e[_0x4d19af];return _0x1b7982;},_0x4d19(_0x214c1b,_0x4b3886);}export class Sessions extends _0x35f650{[_0x4a1f4e(0xda)];[_0x4a1f4e(0xce)];[_0x4a1f4e(0xd6)];[_0x4a1f4e(0xb7)];[_0x4a1f4e(0xb5)];[_0x4a1f4e(0xb2)];static get[_0x4a1f4e(0xcb)](){const _0x2c08c8=_0x4a1f4e;return _0x2c08c8(0xc5);}static get[_0x4a1f4e(0xd0)](){return!0x0;}static get[_0x4a1f4e(0xba)](){return!0x0;}static get[_0x4a1f4e(0xbd)](){return[_0x5998bd,_0x4d6cd7];}constructor(_0x90d0e9){const _0x19c47f=_0x4a1f4e;super(_0x90d0e9),this[_0x19c47f(0xda)]=new Map(),this[_0x19c47f(0xce)]=new Map(),this[_0x19c47f(0xd6)]=new _0x2ff111(),this[_0x19c47f(0xb7)]=new Map(),this[_0x19c47f(0xb5)]=0x0,this[_0x19c47f(0xb2)]=this[_0x19c47f(0xc7)][_0x19c47f(0xd4)][_0x19c47f(0xe6)](_0x4d6cd7);}[_0x4a1f4e(0xbb)](){const _0x202701=_0x4a1f4e,_0x58fa67=this[_0x202701(0xc7)][_0x202701(0xd4)][_0x202701(0xe6)](_0x5998bd);this[_0x202701(0xd2)](_0x58fa67,_0x202701(0xdc),(_0x36070f,_0x4c145d,_0x3ff66f)=>{const _0x21165d=_0x202701;if(_0x21165d(0xe9)!==_0x3ff66f)this[_0x21165d(0xda)][_0x21165d(0xcd)](_0x36392b=>_0x36392b[_0x21165d(0xc4)]()),this[_0x21165d(0xce)][_0x21165d(0xcd)](_0x31545d=>_0x31545d[_0x21165d(0xc4)]()),this[_0x21165d(0xd6)][_0x21165d(0xc4)]();else{for(const [_0x5eb14e,_0x41568d]of this[_0x21165d(0xb7)])for(const _0x4e6ba6 of _0x41568d)this[_0x21165d(0xc0)](_0x5eb14e,_0x4e6ba6);}}),this[_0x202701(0xd3)](_0x58fa67[_0x202701(0xe1)]['me'],!0x0);}[_0x4a1f4e(0xc1)](_0x3d11f6,_0x2f78de){const _0x5c0e7b=_0x4a1f4e;if(this[_0x5c0e7b(0xb7)][_0x5c0e7b(0xb3)](_0x3d11f6))throw new _0x38965a(_0x5c0e7b(0xd8),null,{'channelId':_0x3d11f6});this[_0x5c0e7b(0xb7)][_0x5c0e7b(0xbf)](_0x3d11f6,_0x2f78de),this[_0x5c0e7b(0xda)][_0x5c0e7b(0xbf)](_0x3d11f6,new _0x2ff111()),this[_0x5c0e7b(0xce)][_0x5c0e7b(0xbf)](_0x3d11f6,new _0x2ff111()),this[_0x5c0e7b(0xd2)](_0x2f78de,_0x5c0e7b(0xd1),(_0x285d95,_0x2f4f1f)=>this[_0x5c0e7b(0xc0)](_0x3d11f6,_0x2f4f1f)),this[_0x5c0e7b(0xd2)](_0x2f78de,_0x5c0e7b(0xe0),(_0x2be0a8,_0x47c295)=>this[_0x5c0e7b(0xc2)](_0x3d11f6,_0x47c295));for(const _0x1eeb17 of _0x2f78de)this[_0x5c0e7b(0xc0)](_0x3d11f6,_0x1eeb17);}[_0x4a1f4e(0xb6)](_0x41159c){const _0x4f6410=_0x4a1f4e;if(!this[_0x4f6410(0xb7)][_0x4f6410(0xb3)](_0x41159c))throw new _0x38965a(_0x4f6410(0xd7),null,{'channelId':_0x41159c});const _0x5b2369=this[_0x4f6410(0xb7)][_0x4f6410(0xe6)](_0x41159c);this[_0x4f6410(0xd9)](_0x5b2369);for(const _0x599c64 of _0x5b2369)_0x4f6410(0xe9)===this[_0x4f6410(0xc7)][_0x4f6410(0xd4)][_0x4f6410(0xe6)](_0x5998bd)[_0x4f6410(0xc3)]&&this[_0x4f6410(0xc2)](_0x41159c,_0x599c64);this[_0x4f6410(0xb7)][_0x4f6410(0xe3)](_0x41159c),this[_0x4f6410(0xda)][_0x4f6410(0xe3)](_0x41159c),this[_0x4f6410(0xce)][_0x4f6410(0xe3)](_0x41159c);}get[_0x4a1f4e(0xe8)](){const _0x219fd4=_0x4a1f4e;return this[_0x219fd4(0xc7)][_0x219fd4(0xd4)][_0x219fd4(0xe6)](_0x5998bd)[_0x219fd4(0xe1)][_0x219fd4(0xed)];}[_0x4a1f4e(0xdf)](_0x472d89){const _0xd04cc6=_0x4a1f4e;for(const _0x414d73 of this[_0xd04cc6(0xda)][_0xd04cc6(0xb1)]())for(const _0x158953 of _0x414d73)if(_0x158953['id']===_0x472d89)return _0x158953[_0xd04cc6(0xee)];}[_0x4a1f4e(0xe4)](_0x18b921,_0x4c2256){const _0x29f026=_0x4a1f4e,_0x3bf7d0=_0x4c2256?[this[_0x29f026(0xda)][_0x29f026(0xe6)](_0x4c2256)]:this[_0x29f026(0xda)][_0x29f026(0xb1)](),_0x587551=new Set();for(const _0x53293f of _0x3bf7d0)for(const _0xab4727 of _0x53293f)_0xab4727[_0x29f026(0xee)]['id']===_0x18b921['id']&&_0x587551[_0x29f026(0xd1)](_0xab4727['id']);return _0x587551;}[_0x4a1f4e(0xec)](_0x2c87fc){const _0x2b64f3=_0x4a1f4e;for(const _0x5b33b0 of this[_0x2b64f3(0xda)][_0x2b64f3(0xb1)]())for(const _0x1d9f4f of _0x5b33b0)if(_0x1d9f4f[_0x2b64f3(0xee)]===_0x2c87fc)return _0x1d9f4f[_0x2b64f3(0xc6)];}[_0x4a1f4e(0xc0)](_0x56c879,_0x473326){const _0x401491=_0x4a1f4e;if(_0x401491(0xe9)!==this[_0x401491(0xc7)][_0x401491(0xd4)][_0x401491(0xe6)](_0x5998bd)[_0x401491(0xc3)])return;const _0x4eeaac=_0x473326[_0x401491(0xee)],_0x55db3a=this[_0x401491(0xb2)][_0x401491(0xc9)](_0x4eeaac['id'])||this[_0x401491(0xd3)](_0x4eeaac),_0x37eb29=Object[_0x401491(0xca)]({},_0x473326,{'user':_0x55db3a});this[_0x401491(0xda)][_0x401491(0xe6)](_0x56c879)[_0x401491(0xd1)](_0x37eb29);const _0x185262=this[_0x401491(0xce)][_0x401491(0xe6)](_0x56c879);_0x185262[_0x401491(0xb3)](_0x55db3a['id'])||_0x185262[_0x401491(0xd1)](_0x55db3a),this[_0x401491(0xd6)][_0x401491(0xb3)](_0x55db3a['id'])||this[_0x401491(0xd6)][_0x401491(0xd1)](_0x55db3a,_0x55db3a[_0x401491(0xeb)]?0x0:void 0x0),this[_0x401491(0xcc)](_0x401491(0xe7)+_0x56c879,{'channelId':_0x56c879,'session':_0x37eb29});}[_0x4a1f4e(0xc2)](_0xa4ac64,_0xd423d4){const _0x22d3af=_0x4a1f4e;if(_0x22d3af(0xe9)!==this[_0x22d3af(0xc7)][_0x22d3af(0xd4)][_0x22d3af(0xe6)](_0x5998bd)[_0x22d3af(0xc3)])return;const _0x36b112=this[_0x22d3af(0xce)][_0x22d3af(0xe6)](_0xa4ac64),_0x5373e9=_0xd423d4[_0x22d3af(0xee)];_0x5373e9['id']&&(this[_0x22d3af(0xda)][_0x22d3af(0xe6)](_0xa4ac64)[_0x22d3af(0xe0)](_0xd423d4['id']),_0x36b112[_0x22d3af(0xb3)](_0x5373e9['id'])&&!this[_0x22d3af(0xe4)](_0x5373e9,_0xa4ac64)[_0x22d3af(0xbc)]&&_0x36b112[_0x22d3af(0xe0)](_0x5373e9['id']),this[_0x22d3af(0xd6)][_0x22d3af(0xe6)](_0x5373e9['id'])&&!this[_0x22d3af(0xe4)](_0x5373e9)[_0x22d3af(0xbc)]&&this[_0x22d3af(0xd6)][_0x22d3af(0xe0)](_0x5373e9['id']));}[_0x4a1f4e(0xd3)](_0x73474,_0xc7754f){const _0x5d45bd=_0x4a1f4e,_0x360ff4=this[_0x5d45bd(0xb2)][_0x5d45bd(0xb9)](_0x73474);return _0xc7754f&&this[_0x5d45bd(0xb2)][_0x5d45bd(0xc8)](_0x73474['id']),_0x360ff4[_0x5d45bd(0xdb)]=this[_0x5d45bd(0xb5)]++,_0x360ff4;}}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
5
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
6
|
-
import Sessions from './sessions.js';
|
|
6
|
+
import { Sessions } from './sessions.js';
|
|
7
7
|
import '../../theme/usermarkers.css';
|
|
8
8
|
/**
|
|
9
9
|
* This plugin:
|
|
@@ -15,7 +15,7 @@ import '../../theme/usermarkers.css';
|
|
|
15
15
|
* {@link RealTimeCollaborationClient} uses this API to create user selection operations in the most optimal moment
|
|
16
16
|
* (as the last operation in the operations package) - this is to reach the best compression result.
|
|
17
17
|
*/
|
|
18
|
-
export
|
|
18
|
+
export declare class UserMarkers extends Plugin {
|
|
19
19
|
/**
|
|
20
20
|
* @inheritDoc
|
|
21
21
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function _0xae2b(_0x5addc6,_0xf91348){const _0x1c473c=_0x1c47();return _0xae2b=function(_0xae2bc6,_0x2459b5){_0xae2bc6=_0xae2bc6-0x77;let _0xa29ffe=_0x1c473c[_0xae2bc6];return _0xa29ffe;},_0xae2b(_0x5addc6,_0xf91348);}const _0x184495=_0xae2b;(function(_0x22e004,_0x34d607){const _0x23fbe7=_0xae2b,_0x5f45ef=_0x22e004();while(!![]){try{const _0x87d3a0=parseInt(_0x23fbe7(0xc4))/0x1*(parseInt(_0x23fbe7(0xc6))/0x2)+-parseInt(_0x23fbe7(0x9b))/0x3*(parseInt(_0x23fbe7(0x102))/0x4)+-parseInt(_0x23fbe7(0xc9))/0x5*(-parseInt(_0x23fbe7(0xdf))/0x6)+-parseInt(_0x23fbe7(0xd1))/0x7*(-parseInt(_0x23fbe7(0xb7))/0x8)+parseInt(_0x23fbe7(0xb2))/0x9+parseInt(_0x23fbe7(0x8f))/0xa+-parseInt(_0x23fbe7(0xb6))/0xb;if(_0x87d3a0===_0x34d607)break;else _0x5f45ef['push'](_0x5f45ef['shift']());}catch(_0x3b5941){_0x5f45ef['push'](_0x5f45ef['shift']());}}}(_0x1c47,0x9c06b));import{Plugin as _0x360118}from'ckeditor5/src/core.js';import{global as _0x1f50db,DomEmitterMixin as _0x32040e}from'ckeditor5/src/utils.js';import _0x502c6e from'./sessions.js';import{LiveRange as _0x401dc8}from'ckeditor5/src/engine.js';import'../../theme/usermarkers.css';export default class q extends _0x360118{[_0x184495(0xa1)]=new(_0x32040e())();static get[_0x184495(0x84)](){return[_0x502c6e];}static get[_0x184495(0x93)](){const _0x255f9f=_0x184495;return _0x255f9f(0xe8);}static get[_0x184495(0xb8)](){return!0x0;}static get[_0x184495(0xd7)](){return!0x0;}[_0x184495(0x96)](){const _0x2fdd13=_0x184495,_0x21896f=this[_0x2fdd13(0xf6)],_0x23695e=_0x21896f[_0x2fdd13(0xc5)][_0x2fdd13(0xbd)](_0x502c6e);_0x21896f[_0x2fdd13(0xed)][_0x2fdd13(0xc3)](_0x2fdd13(0xbf))[_0x2fdd13(0x86)]({'model':_0x2fdd13(0xc1),'view':(_0x52e245,{writer:_0x1804b9})=>function(_0x459190,_0x4be1f7,_0x4f67c4,_0xe83b48){const _0x3b486c=_0x2fdd13,_0x3c1f88=_0x459190[_0x3b486c(0xe2)][_0x3b486c(0xde)](':')[0x2],_0x593359=_0x4f67c4[_0x3b486c(0xb0)](_0x3c1f88);if(!_0x593359||_0x3c1f88===_0x4f67c4[_0x3b486c(0x8b)])return;if(!_0xe83b48[_0x3b486c(0xbc)][_0x3b486c(0xf5)][_0x3b486c(0xee)](_0x459190[_0x3b486c(0xad)][_0x3b486c(0xa5)],_0x3b486c(0x80)))return;const _0x14a8ee={'class':_0x3b486c(0xf3)+_0x593359[_0x3b486c(0xb1)][_0x3b486c(0xa2)](),'data-name':_0x593359[_0x3b486c(0xe7)],'data-session-id':_0x3c1f88},_0x429de3=_0xe83b48[_0x3b486c(0xbc)][_0x3b486c(0xdc)][_0x3b486c(0xbd)](_0x459190[_0x3b486c(0xe2)]),_0x20a757=_0x429de3[_0x3b486c(0x98)](),_0x14dd2f=_0x20a757[_0x3b486c(0x89)],_0x1a0a90=_0xe83b48[_0x3b486c(0xbc)][_0x3b486c(0xf5)];if(_0x14dd2f&&_0x1a0a90[_0x3b486c(0x81)](_0x14dd2f)&&_0x1a0a90[_0x3b486c(0xf0)](_0x14dd2f)&&!_0xe83b48[_0x3b486c(0xbc)][_0x3b486c(0xdc)][_0x3b486c(0xbd)](_0x3b486c(0x99)+_0x3c1f88)[_0x3b486c(0xa8)]()[_0x3b486c(0xe4)])return;const _0x516afa=_0x20a757[_0x3b486c(0xf8)];return _0xe83b48[_0x3b486c(0xbc)][_0x3b486c(0xf5)][_0x3b486c(0xf1)](_0x516afa)&&!_0xe83b48[_0x3b486c(0xbc)][_0x3b486c(0xe1)](_0x516afa)&&(_0x14a8ee[_0x3b486c(0x87)]=!0x1),function(_0x710f67,_0x51c7d3,_0x298dae){const _0x150312=_0x3b486c,_0x59e5f2=_0x710f67[_0x150312(0x7f)](_0x150312(0xca),_0x51c7d3);return _0x710f67[_0x150312(0xd0)](_0x150312(0xff),!0x0,_0x59e5f2),_0x59e5f2[_0x150312(0xd4)]=function(_0x50ae3a){const _0x551dc7=_0x150312,_0xb3d266=this[_0x551dc7(0xb9)](_0x50ae3a),_0x4df985=document[_0x551dc7(0xfe)](_0x551dc7(0xca));return _0x4df985[_0x551dc7(0xda)][_0x551dc7(0x9a)](_0x551dc7(0xeb)),_0x4df985[_0x551dc7(0x94)](_0x551dc7(0x87),_0x551dc7(0xf4)),_0x4df985[_0x551dc7(0x94)](_0x551dc7(0xac),_0x551dc7(0xf4)),_0x4df985[_0x551dc7(0xbb)]=_0x298dae[_0x551dc7(0xe7)],_0xb3d266[_0x551dc7(0xfc)]=_0x551dc7(0xcb)+_0x4df985[_0x551dc7(0xa4)]+'',_0xb3d266[_0x551dc7(0xa0)](_0x551dc7(0xcd),()=>{const _0x5989b9=_0x551dc7;_0xb3d266[_0x5989b9(0xda)][_0x5989b9(0x9a)](_0x5989b9(0x8a));}),_0xb3d266[_0x551dc7(0xa0)](_0x551dc7(0xec),()=>{const _0x4955b1=_0x551dc7;_0xb3d266[_0x4955b1(0xda)][_0x4955b1(0xe0)](_0x4955b1(0x8a));}),_0xb3d266;},_0x59e5f2[_0x150312(0xe3)]=function(_0x2e6e4d){const _0x1526a0=_0x150312;return!(!this[_0x1526a0(0x82)](_0x1526a0(0xff))||!_0x2e6e4d[_0x1526a0(0x82)](_0x1526a0(0xff))||this[_0x1526a0(0xbe)](_0x1526a0(0x95))!=_0x2e6e4d[_0x1526a0(0xbe)](_0x1526a0(0x95)));},_0x59e5f2;}(_0x4be1f7,_0x14a8ee,_0x593359);}(_0x52e245,_0x1804b9,_0x23695e,_0x21896f)}),_0x21896f[_0x2fdd13(0xed)][_0x2fdd13(0xc3)](_0x2fdd13(0xbf))[_0x2fdd13(0xaa)]({'model':_0x2fdd13(0xa3),'view':_0x287f01=>function(_0x10390b,_0x1bf25e){const _0x3a5441=_0x2fdd13,_0x54e44a=_0x10390b[_0x3a5441(0xe2)][_0x3a5441(0xde)](':')[0x2];if(_0x54e44a===_0x1bf25e[_0x3a5441(0x8b)])return null;const _0x31fae8=_0x1bf25e[_0x3a5441(0xb0)](_0x54e44a);if(!_0x31fae8)return{'id':_0x54e44a,'classes':[]};return{'id':_0x54e44a,'classes':[_0x3a5441(0xd6),_0x31fae8[_0x3a5441(0xb1)][_0x3a5441(0xcf)]()],'attributes':{'data-session-id':_0x54e44a},'priority':0x7d0+_0x31fae8[_0x3a5441(0xa7)]};}(_0x287f01,_0x23695e)}),function(_0x25848a){const _0x52ac49=_0x2fdd13,_0x33669d=_0x25848a[_0x52ac49(0xbc)],_0x396698=new Map(),_0x259019=_0x25848a[_0x52ac49(0xc5)][_0x52ac49(0xbd)](_0x502c6e);_0x33669d[_0x52ac49(0xdc)]['on'](_0x52ac49(0x78),(_0x1dc40c,_0x5e0c09,_0xc0780b,_0x4edb79)=>{const _0x571232=_0x52ac49;if(!_0x4edb79&&_0x396698[_0x571232(0xbd)](_0x5e0c09[_0x571232(0xe7)]))return _0x396698[_0x571232(0xbd)](_0x5e0c09[_0x571232(0xe7)])[_0x571232(0x83)](),void _0x396698[_0x571232(0x79)](_0x5e0c09[_0x571232(0xe7)]);const _0x128b2b=_0x5e0c09[_0x571232(0xe7)][_0x571232(0xde)](':')[0x2];if(_0x128b2b===_0x259019[_0x571232(0x8b)])return;const _0x1199bc=_0x571232(0xef)+_0x128b2b;_0x33669d[_0x571232(0xdc)][_0x571232(0xce)](_0x1199bc)&&_0x25848a[_0x571232(0x9e)][_0x571232(0x7c)](_0x1199bc),_0x5e0c09['on'](_0x571232(0xdd),(_0xdf7ebe,_0x2d8f81,_0x279613)=>{const _0x386341=_0x571232;if(_0x386341(0xe9)!=_0x2d8f81[_0x386341(0xd8)][_0x386341(0x9d)]&&_0x386341(0xe9)==_0x5e0c09[_0x386341(0xa8)]()[_0x386341(0xd8)][_0x386341(0x9d)]&&!_0x396698[_0x386341(0xce)](_0x5e0c09[_0x386341(0xe7)])){const _0x316c46=_0x33669d[_0x386341(0xf5)][_0x386341(0x7b)](_0x279613[_0x386341(0x100)]);if(_0x316c46){const _0x1e8d04=_0x401dc8[_0x386341(0xd3)](_0x316c46);_0x396698[_0x386341(0x85)](_0x5e0c09[_0x386341(0xe7)],_0x1e8d04),_0x1e8d04['on'](_0x386341(0xdd),(_0x21d564,_0x34bcc4,_0x5edd73)=>{const _0x325e85=_0x386341;if(_0x325e85(0xe9)==_0x1e8d04[_0x325e85(0xd8)][_0x325e85(0x9d)]){const _0x56d8b0=_0x33669d[_0x325e85(0xf5)][_0x325e85(0x7b)](_0x5edd73[_0x325e85(0x100)]);_0x56d8b0?(_0x1e8d04[_0x325e85(0xa5)]=_0x56d8b0[_0x325e85(0xa5)],_0x1e8d04[_0x325e85(0x9c)]=_0x56d8b0[_0x325e85(0x9c)]):(_0x396698[_0x325e85(0x79)](_0x5e0c09[_0x325e85(0xe7)]),_0x1e8d04[_0x325e85(0x83)]());}});}}});}),_0x33669d[_0x52ac49(0x90)]['on'](_0x52ac49(0xd2),()=>{const _0x3c5e27=_0x52ac49;_0x396698[_0x3c5e27(0x88)]>0x0&&_0x33669d[_0x3c5e27(0xc8)]({'isUndoable':!0x1},_0x46078f=>{const _0x105f23=_0x3c5e27;for(const [_0xcc66f6,_0x5f10df]of _0x396698)_0x105f23(0xe9)==_0x33669d[_0x105f23(0xdc)][_0x105f23(0xbd)](_0xcc66f6)[_0x105f23(0xa8)]()[_0x105f23(0xd8)][_0x105f23(0x9d)]&&(te(_0xcc66f6[_0x105f23(0xde)](':')[0x2],_0x5f10df[_0x105f23(0xfb)](),_0x33669d,_0x46078f),_0x5f10df[_0x105f23(0x83)]());_0x396698[_0x105f23(0xf9)]();});});}(_0x21896f),this[_0x2fdd13(0xa1)][_0x2fdd13(0xe6)](_0x1f50db[_0x2fdd13(0x90)],_0x2fdd13(0xab),(_0x4acd45,{key:_0x4c23c8})=>{const _0x4ca362=_0x2fdd13;_0x4ca362(0xcc)===_0x4c23c8&&function(_0x1c149f){const _0x1139d5=_0x4ca362;_0x1c149f[_0x1139d5(0x9e)][_0x1139d5(0xba)][_0x1139d5(0xd2)](_0x56013c=>{const _0x3a0e45=_0x1139d5;for(const _0x5179b6 of _0x1c149f[_0x3a0e45(0xbc)][_0x3a0e45(0xdc)]){if(!_0x5179b6[_0x3a0e45(0xe7)][_0x3a0e45(0xe5)](_0x3a0e45(0xc1)))continue;const _0x30aa16=_0x1c149f[_0x3a0e45(0x9e)][_0x3a0e45(0xa9)][_0x3a0e45(0xae)](_0x5179b6[_0x3a0e45(0xe7)]);if(_0x30aa16){for(const _0x891287 of _0x30aa16)_0x56013c[_0x3a0e45(0xd9)](_0x3a0e45(0x8a),_0x891287);}}});}(_0x21896f);},{'useCapture':!0x0});}[_0x184495(0xf7)](){const _0x20a547=_0x184495,_0x10ed2f=this[_0x20a547(0xf6)],_0x1c94f6=_0x10ed2f[_0x20a547(0x8c)][_0x20a547(0xbd)](_0x20a547(0xaf));_0x1c94f6&&_0x10ed2f[_0x20a547(0xbc)]['on'](_0x20a547(0x8e),(_0x14afef,_0x4dc882)=>{const _0xd107df=_0x20a547,_0x47bac1=_0x4dc882[0x0];if(!_0x47bac1[_0xd107df(0x8d)])return;if(_0xd107df(0x91)!=_0x47bac1[_0xd107df(0xa6)]||!_0x47bac1[_0xd107df(0xe7)][_0xd107df(0xe5)](_0xd107df(0xb3)))return;const _0x5ec3ec=_0x47bac1[_0xd107df(0xf2)];_0x1c94f6[_0xd107df(0x7d)][_0xd107df(0xce)](_0x5ec3ec)&&(_0x47bac1[_0xd107df(0xea)]=_0x47bac1[_0xd107df(0xc0)]?_0x10ed2f[_0xd107df(0xbc)][_0xd107df(0x77)](_0x47bac1[_0xd107df(0xc0)][_0xd107df(0xa5)],_0x47bac1[_0xd107df(0xc0)][_0xd107df(0x9c)]):null);},{'priority':_0x20a547(0x7e)});}[_0x184495(0xc7)](){const _0xec9f73=_0x184495;return this[_0xec9f73(0xa1)][_0xec9f73(0x97)](),super[_0xec9f73(0xc7)]();}[_0x184495(0xc2)](){const _0x59a29b=_0x184495,_0x50eb86=this[_0x59a29b(0xf6)],_0x5a6572=_0x50eb86[_0x59a29b(0xbc)][_0x59a29b(0x90)],_0x5121dd=_0x50eb86[_0x59a29b(0xc5)][_0x59a29b(0xbd)](_0x502c6e);_0x50eb86[_0x59a29b(0xbc)][_0x59a29b(0xc8)]({'isUndoable':!0x1},_0x4c2c48=>{const _0xe26596=_0x59a29b,_0x2d9075=_0xe26596(0x99)+_0x5121dd[_0xe26596(0x8b)],_0x661b55=_0xe26596(0xef)+_0x5121dd[_0xe26596(0x8b)],_0x1b310e=_0x50eb86[_0xe26596(0xbc)][_0xe26596(0xdc)][_0xe26596(0xce)](_0x2d9075);_0x50eb86[_0xe26596(0x9e)][_0xe26596(0xba)][_0xe26596(0xb5)]?te(_0x5121dd[_0xe26596(0x8b)],_0x5a6572[_0xe26596(0xfa)][_0xe26596(0xfd)](),_0x50eb86[_0xe26596(0xbc)],_0x4c2c48):_0x1b310e&&(_0x4c2c48[_0xe26596(0xdb)](_0x2d9075),_0x4c2c48[_0xe26596(0xdb)](_0x661b55));});}}function _0x1c47(){const _0x1bce47=['false','schema','editor','afterInit','parent','clear','selection','toRange','innerHTML','getFirstRange','createElement','userPositionMarker','deletionPosition','tableCell','4236IIZPgk','createRange','update:user:range','delete','updateMarker','getNearestSelectionRange','reconvertMarker','_createdBatches','highest','createUIElement','$text','isObject','getCustomProperty','detach','requires','set','markerToElement','contenteditable','size','nodeAfter','ck-user__marker_hovered','mySessionId','commands','isDocumentOperation','applyOperation','11729080xkTCev','document','marker','getContainedElement','pluginName','setAttribute','data-session-id','init','stopListening','getStart','user:range:','add','657zNdbwY','end','rootName','editing','getPositions','addEventListener','_domEmitter','getMarkerClass','user:range','outerHTML','start','type','orderNumber','getRange','mapper','markerToHighlight','keydown','spellcheck','markerRange','markerNameToElements','undo','getUserBySessionId','color','10787400NweCvM','user:','element','hasDomSelection','41770938yoQPfH','2163800bQCChA','isOfficialPlugin','toDomElement','view','textContent','model','get','getAttribute','editingDowncast','oldRange','user:position','createUserMarkerOperations','for','6cIQbon','plugins','396522FLhUje','destroy','enqueueChange','83285FFSsMz','span','<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','Escape','mouseenter','has','getSelectionClass','setCustomProperty','14MEsAcz','change','fromRange','render','addMarker','ck-user__selection','isPremiumPlugin','root','removeClass','classList','removeMarker','markers','change:range','split','204BpWeiv','remove','hasContent','markerName','isSimilar','isCollapsed','startsWith','listenTo','name','UserMarkers','$graveyard','newRange','ck-user__marker-tooltip','mouseleave','conversion','checkChild','user:position:','isInline','isLimit','batch','ck-user__marker\x20'];_0x1c47=function(){return _0x1bce47;};return _0x1c47();}function te(_0x4b8dd1,_0x389212,_0x150a6a,_0x41cb94){const _0x598c61=_0x184495,_0x45cda8=_0x598c61(0x99)+_0x4b8dd1,_0x316e02=_0x598c61(0xef)+_0x4b8dd1,_0x1b4750=_0x389212[_0x598c61(0x92)]();let _0x3af584=_0x389212[_0x598c61(0xa5)];if(_0x1b4750&&_0x1b4750['is'](_0x598c61(0xb4),_0x598c61(0x101))){const _0x2366b0=function(_0x34408d,_0x30a3cf){const _0x3084c0=_0x598c61;for(const _0x2556c4 of _0x34408d[_0x3084c0(0x9f)]())if(_0x30a3cf[_0x3084c0(0xf5)][_0x3084c0(0xee)](_0x2556c4,_0x3084c0(0x80)))return _0x2556c4;}(_0x389212,_0x150a6a);_0x2366b0&&(_0x3af584=_0x2366b0,_0x389212=_0x41cb94[_0x598c61(0x77)](_0x3af584));}const _0x156e57=_0x41cb94[_0x598c61(0x77)](_0x3af584);_0x150a6a[_0x598c61(0xdc)][_0x598c61(0xce)](_0x45cda8)?(_0x41cb94[_0x598c61(0x7a)](_0x45cda8,{'range':_0x389212}),_0x41cb94[_0x598c61(0x7a)](_0x316e02,{'range':_0x156e57})):(_0x41cb94[_0x598c61(0xd5)](_0x45cda8,{'range':_0x389212,'usingOperation':!0x0}),_0x41cb94[_0x598c61(0xd5)](_0x316e02,{'range':_0x156e57,'usingOperation':!0x0}));}
|
|
23
|
+
function _0x55d7(){const _0x1f8285=['root','$graveyard','afterInit','getMarkerClass','remove','toRange','hasDomSelection','document','getFirstRange','has','newRange','schema','isObject','createUserMarkerOperations','createUIElement','markerRange','827776QzQEEs','getRange','ck-user__selection','reconvertMarker','addEventListener','markers','createElement','classList','element','isLimit','editingDowncast','Escape','change','change:range','UserMarkers','addMarker','9egfjPb','model','setCustomProperty','start','add','applyOperation','createRange','nodeAfter','getNearestSelectionRange','isDocumentOperation','editor','mouseleave','isSimilar','36810Qouocm','rootName','innerHTML','560PXCWZo','stopListening','false','13745430AlcFVN','oldRange','ck-user__marker-tooltip','removeClass','type','userPositionMarker','editing','isCollapsed','update:user:range','11bQAuQJ','highest','delete','undo','20728368XIaLGR','mySessionId','_createdBatches','108INVTQn','selection','parent','isOfficialPlugin','requires','spellcheck','view','span','<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','contenteditable','getSelectionClass','batch','pluginName','mouseenter','textContent','$text','getCustomProperty','conversion','markerName','465074ilZgeo','removeMarker','getContainedElement','user:range','startsWith','getStart','deletionPosition','updateMarker','enqueueChange','isInline','ck-user__marker_hovered','data-session-id','size','ck-user__marker\x20','commands','destroy','getUserBySessionId','markerToElement','markerToHighlight','checkChild','user:position','111eoTSbE','for','clear','color','user:','user:range:','user:position:','fromRange','tableCell','init','split','hasContent','listenTo','render','_domEmitter','name','marker','markerNameToElements','end','orderNumber','detach','get','toDomElement','isPremiumPlugin','48748TLdWxh','getPositions','mapper','set','15379jDifnf','setAttribute','outerHTML','getAttribute','keydown','plugins'];_0x55d7=function(){return _0x1f8285;};return _0x55d7();}const _0x559e8d=_0x56be;(function(_0x1e79f2,_0x310bde){const _0x3f8b59=_0x56be,_0xaefa8b=_0x1e79f2();while(!![]){try{const _0x2b338=parseInt(_0x3f8b59(0x18c))/0x1+parseInt(_0x3f8b59(0x163))/0x2*(-parseInt(_0x3f8b59(0x1a1))/0x3)+-parseInt(_0x3f8b59(0x12c))/0x4*(-parseInt(_0x3f8b59(0x166))/0x5)+-parseInt(_0x3f8b59(0x179))/0x6*(-parseInt(_0x3f8b59(0x130))/0x7)+parseInt(_0x3f8b59(0x146))/0x8*(-parseInt(_0x3f8b59(0x156))/0x9)+parseInt(_0x3f8b59(0x169))/0xa+-parseInt(_0x3f8b59(0x172))/0xb*(parseInt(_0x3f8b59(0x176))/0xc);if(_0x2b338===_0x310bde)break;else _0xaefa8b['push'](_0xaefa8b['shift']());}catch(_0x59ddca){_0xaefa8b['push'](_0xaefa8b['shift']());}}}(_0x55d7,0xb2c7e));import{Plugin as _0x420643}from'ckeditor5/src/core.js';function _0x56be(_0x29a153,_0x113a4b){const _0x55d789=_0x55d7();return _0x56be=function(_0x56bee4,_0x1ab2c7){_0x56bee4=_0x56bee4-0x116;let _0x5fac7=_0x55d789[_0x56bee4];return _0x5fac7;},_0x56be(_0x29a153,_0x113a4b);}import{global as _0x456a78,DomEmitterMixin as _0x13fe45}from'ckeditor5/src/utils.js';import{Sessions as _0x2df1ed}from'./sessions.js';import{ModelLiveRange as _0x153383}from'ckeditor5/src/engine.js';import'../../theme/usermarkers.css';export class UserMarkers extends _0x420643{[_0x559e8d(0x122)]=new(_0x13fe45())();static get[_0x559e8d(0x17d)](){return[_0x2df1ed];}static get[_0x559e8d(0x185)](){const _0x139e8f=_0x559e8d;return _0x139e8f(0x154);}static get[_0x559e8d(0x17c)](){return!0x0;}static get[_0x559e8d(0x12b)](){return!0x0;}[_0x559e8d(0x11d)](){const _0x4fe195=_0x559e8d,_0x6fbc6d=this[_0x4fe195(0x160)],_0x419444=_0x6fbc6d[_0x4fe195(0x135)][_0x4fe195(0x129)](_0x2df1ed);_0x6fbc6d[_0x4fe195(0x18a)][_0x4fe195(0x1a2)](_0x4fe195(0x150))[_0x4fe195(0x19d)]({'model':_0x4fe195(0x1a0),'view':(_0x10d9d9,{writer:_0x288073})=>function(_0x8f4598,_0xcd2495,_0x169f1c,_0x504f2f){const _0x577ded=_0x4fe195,_0x3a2860=_0x8f4598[_0x577ded(0x18b)][_0x577ded(0x11e)](':')[0x2],_0x3ac7ad=_0x169f1c[_0x577ded(0x19c)](_0x3a2860);if(!_0x3ac7ad||_0x3a2860===_0x169f1c[_0x577ded(0x177)])return;if(!_0x504f2f[_0x577ded(0x157)][_0x577ded(0x141)][_0x577ded(0x19f)](_0x8f4598[_0x577ded(0x145)][_0x577ded(0x159)],_0x577ded(0x188)))return;const _0x129f6f={'class':_0x577ded(0x199)+_0x3ac7ad[_0x577ded(0x117)][_0x577ded(0x139)](),'data-name':_0x3ac7ad[_0x577ded(0x123)],'data-session-id':_0x3a2860},_0x5a8fff=_0x504f2f[_0x577ded(0x157)][_0x577ded(0x14b)][_0x577ded(0x129)](_0x8f4598[_0x577ded(0x18b)]),_0xf061e7=_0x5a8fff[_0x577ded(0x191)](),_0x57f3d2=_0xf061e7[_0x577ded(0x15d)],_0x3dd8d7=_0x504f2f[_0x577ded(0x157)][_0x577ded(0x141)];if(_0x57f3d2&&_0x3dd8d7[_0x577ded(0x142)](_0x57f3d2)&&_0x3dd8d7[_0x577ded(0x195)](_0x57f3d2)&&!_0x504f2f[_0x577ded(0x157)][_0x577ded(0x14b)][_0x577ded(0x129)](_0x577ded(0x119)+_0x3a2860)[_0x577ded(0x147)]()[_0x577ded(0x170)])return;const _0x216598=_0xf061e7[_0x577ded(0x17b)];return _0x504f2f[_0x577ded(0x157)][_0x577ded(0x141)][_0x577ded(0x14f)](_0x216598)&&!_0x504f2f[_0x577ded(0x157)][_0x577ded(0x11f)](_0x216598)&&(_0x129f6f[_0x577ded(0x182)]=!0x1),function(_0x1574b3,_0x3ff069,_0x42f60f){const _0x1ebe5b=_0x577ded,_0x5060c6=_0x1574b3[_0x1ebe5b(0x144)](_0x1ebe5b(0x180),_0x3ff069);return _0x1574b3[_0x1ebe5b(0x158)](_0x1ebe5b(0x16e),!0x0,_0x5060c6),_0x5060c6[_0x1ebe5b(0x121)]=function(_0x502e19){const _0x221a49=_0x1ebe5b,_0x4e475c=this[_0x221a49(0x12a)](_0x502e19),_0x315511=document[_0x221a49(0x14c)](_0x221a49(0x180));return _0x315511[_0x221a49(0x14d)][_0x221a49(0x15a)](_0x221a49(0x16b)),_0x315511[_0x221a49(0x131)](_0x221a49(0x182),_0x221a49(0x168)),_0x315511[_0x221a49(0x131)](_0x221a49(0x17e),_0x221a49(0x168)),_0x315511[_0x221a49(0x187)]=_0x42f60f[_0x221a49(0x123)],_0x4e475c[_0x221a49(0x165)]=_0x221a49(0x181)+_0x315511[_0x221a49(0x132)]+'',_0x4e475c[_0x221a49(0x14a)](_0x221a49(0x186),()=>{const _0x18a39a=_0x221a49;_0x4e475c[_0x18a39a(0x14d)][_0x18a39a(0x15a)](_0x18a39a(0x196));}),_0x4e475c[_0x221a49(0x14a)](_0x221a49(0x161),()=>{const _0x58e061=_0x221a49;_0x4e475c[_0x58e061(0x14d)][_0x58e061(0x13a)](_0x58e061(0x196));}),_0x4e475c;},_0x5060c6[_0x1ebe5b(0x162)]=function(_0x5c1225){const _0x3d137a=_0x1ebe5b;return!(!this[_0x3d137a(0x189)](_0x3d137a(0x16e))||!_0x5c1225[_0x3d137a(0x189)](_0x3d137a(0x16e))||this[_0x3d137a(0x133)](_0x3d137a(0x197))!=_0x5c1225[_0x3d137a(0x133)](_0x3d137a(0x197)));},_0x5060c6;}(_0xcd2495,_0x129f6f,_0x3ac7ad);}(_0x10d9d9,_0x288073,_0x419444,_0x6fbc6d)}),_0x6fbc6d[_0x4fe195(0x18a)][_0x4fe195(0x1a2)](_0x4fe195(0x150))[_0x4fe195(0x19e)]({'model':_0x4fe195(0x18f),'view':_0x501738=>function(_0x273dc1,_0x7c71ed){const _0x2b8ef3=_0x4fe195,_0x1629ee=_0x273dc1[_0x2b8ef3(0x18b)][_0x2b8ef3(0x11e)](':')[0x2];if(_0x1629ee===_0x7c71ed[_0x2b8ef3(0x177)])return null;const _0x26a2f9=_0x7c71ed[_0x2b8ef3(0x19c)](_0x1629ee);if(!_0x26a2f9)return{'id':_0x1629ee,'classes':[]};return{'id':_0x1629ee,'classes':[_0x2b8ef3(0x148),_0x26a2f9[_0x2b8ef3(0x117)][_0x2b8ef3(0x183)]()],'attributes':{'data-session-id':_0x1629ee},'priority':0x7d0+_0x26a2f9[_0x2b8ef3(0x127)]};}(_0x501738,_0x419444)}),function(_0x3a856f){const _0x23bee7=_0x4fe195,_0xe607e8=_0x3a856f[_0x23bee7(0x157)],_0x4109b0=new Map(),_0x22b985=_0x3a856f[_0x23bee7(0x135)][_0x23bee7(0x129)](_0x2df1ed);_0xe607e8[_0x23bee7(0x14b)]['on'](_0x23bee7(0x171),(_0x3f67fd,_0x421c39,_0x197f78,_0x14ce88)=>{const _0x190dd1=_0x23bee7;if(!_0x14ce88&&_0x4109b0[_0x190dd1(0x129)](_0x421c39[_0x190dd1(0x123)]))return _0x4109b0[_0x190dd1(0x129)](_0x421c39[_0x190dd1(0x123)])[_0x190dd1(0x128)](),void _0x4109b0[_0x190dd1(0x174)](_0x421c39[_0x190dd1(0x123)]);const _0x5051a6=_0x421c39[_0x190dd1(0x123)][_0x190dd1(0x11e)](':')[0x2];if(_0x5051a6===_0x22b985[_0x190dd1(0x177)])return;const _0xda82bc=_0x190dd1(0x11a)+_0x5051a6;_0xe607e8[_0x190dd1(0x14b)][_0x190dd1(0x13f)](_0xda82bc)&&_0x3a856f[_0x190dd1(0x16f)][_0x190dd1(0x149)](_0xda82bc),_0x421c39['on'](_0x190dd1(0x153),(_0x38b79c,_0x5be864,_0x2388df)=>{const _0x362028=_0x190dd1;if(_0x362028(0x137)!=_0x5be864[_0x362028(0x136)][_0x362028(0x164)]&&_0x362028(0x137)==_0x421c39[_0x362028(0x147)]()[_0x362028(0x136)][_0x362028(0x164)]&&!_0x4109b0[_0x362028(0x13f)](_0x421c39[_0x362028(0x123)])){const _0x4b88f7=_0xe607e8[_0x362028(0x141)][_0x362028(0x15e)](_0x2388df[_0x362028(0x192)]);if(_0x4b88f7){const _0x5e722f=_0x153383[_0x362028(0x11b)](_0x4b88f7);_0x4109b0[_0x362028(0x12f)](_0x421c39[_0x362028(0x123)],_0x5e722f),_0x5e722f['on'](_0x362028(0x153),(_0x78df24,_0x488477,_0x43a31d)=>{const _0x402a5a=_0x362028;if(_0x402a5a(0x137)==_0x5e722f[_0x402a5a(0x136)][_0x402a5a(0x164)]){const _0x46235c=_0xe607e8[_0x402a5a(0x141)][_0x402a5a(0x15e)](_0x43a31d[_0x402a5a(0x192)]);_0x46235c?(_0x5e722f[_0x402a5a(0x159)]=_0x46235c[_0x402a5a(0x159)],_0x5e722f[_0x402a5a(0x126)]=_0x46235c[_0x402a5a(0x126)]):(_0x4109b0[_0x402a5a(0x174)](_0x421c39[_0x402a5a(0x123)]),_0x5e722f[_0x402a5a(0x128)]());}});}}});}),_0xe607e8[_0x23bee7(0x13d)]['on'](_0x23bee7(0x152),()=>{const _0x315a79=_0x23bee7;_0x4109b0[_0x315a79(0x198)]>0x0&&_0xe607e8[_0x315a79(0x194)]({'isUndoable':!0x1},_0x57b650=>{const _0x59f80c=_0x315a79;for(const [_0x4ce052,_0x3bd485]of _0x4109b0)_0x59f80c(0x137)==_0xe607e8[_0x59f80c(0x14b)][_0x59f80c(0x129)](_0x4ce052)[_0x59f80c(0x147)]()[_0x59f80c(0x136)][_0x59f80c(0x164)]&&(Z(_0x4ce052[_0x59f80c(0x11e)](':')[0x2],_0x3bd485[_0x59f80c(0x13b)](),_0xe607e8,_0x57b650),_0x3bd485[_0x59f80c(0x128)]());_0x4109b0[_0x59f80c(0x116)]();});});}(_0x6fbc6d),this[_0x4fe195(0x122)][_0x4fe195(0x120)](_0x456a78[_0x4fe195(0x13d)],_0x4fe195(0x134),(_0x55defa,{key:_0x4d34eb})=>{const _0x451b1e=_0x4fe195;_0x451b1e(0x151)===_0x4d34eb&&function(_0x56a218){const _0x21106f=_0x451b1e;_0x56a218[_0x21106f(0x16f)][_0x21106f(0x17f)][_0x21106f(0x152)](_0x4c7427=>{const _0x2dc302=_0x21106f;for(const _0xf5fda3 of _0x56a218[_0x2dc302(0x157)][_0x2dc302(0x14b)]){if(!_0xf5fda3[_0x2dc302(0x123)][_0x2dc302(0x190)](_0x2dc302(0x1a0)))continue;const _0x5e275f=_0x56a218[_0x2dc302(0x16f)][_0x2dc302(0x12e)][_0x2dc302(0x125)](_0xf5fda3[_0x2dc302(0x123)]);if(_0x5e275f){for(const _0x37f5ba of _0x5e275f)_0x4c7427[_0x2dc302(0x16c)](_0x2dc302(0x196),_0x37f5ba);}}});}(_0x6fbc6d);},{'useCapture':!0x0});}[_0x559e8d(0x138)](){const _0x2a9845=_0x559e8d,_0x4abcd7=this[_0x2a9845(0x160)],_0x270e82=_0x4abcd7[_0x2a9845(0x19a)][_0x2a9845(0x129)](_0x2a9845(0x175));_0x270e82&&_0x4abcd7[_0x2a9845(0x157)]['on'](_0x2a9845(0x15b),(_0x5cdfeb,_0x2889b5)=>{const _0x4d4202=_0x2a9845,_0x2cf725=_0x2889b5[0x0];if(!_0x2cf725[_0x4d4202(0x15f)])return;if(_0x4d4202(0x124)!=_0x2cf725[_0x4d4202(0x16d)]||!_0x2cf725[_0x4d4202(0x123)][_0x4d4202(0x190)](_0x4d4202(0x118)))return;const _0x4ea7e1=_0x2cf725[_0x4d4202(0x184)];_0x270e82[_0x4d4202(0x178)][_0x4d4202(0x13f)](_0x4ea7e1)&&(_0x2cf725[_0x4d4202(0x140)]=_0x2cf725[_0x4d4202(0x16a)]?_0x4abcd7[_0x4d4202(0x157)][_0x4d4202(0x15c)](_0x2cf725[_0x4d4202(0x16a)][_0x4d4202(0x159)],_0x2cf725[_0x4d4202(0x16a)][_0x4d4202(0x126)]):null);},{'priority':_0x2a9845(0x173)});}[_0x559e8d(0x19b)](){const _0x5b4ff3=_0x559e8d;return this[_0x5b4ff3(0x122)][_0x5b4ff3(0x167)](),super[_0x5b4ff3(0x19b)]();}[_0x559e8d(0x143)](){const _0xd94565=_0x559e8d,_0xda28c2=this[_0xd94565(0x160)],_0x1262bc=_0xda28c2[_0xd94565(0x157)][_0xd94565(0x13d)],_0x12f4df=_0xda28c2[_0xd94565(0x135)][_0xd94565(0x129)](_0x2df1ed);_0xda28c2[_0xd94565(0x157)][_0xd94565(0x194)]({'isUndoable':!0x1},_0x497bc2=>{const _0xa4dfad=_0xd94565,_0x39d06b=_0xa4dfad(0x119)+_0x12f4df[_0xa4dfad(0x177)],_0x37d971=_0xa4dfad(0x11a)+_0x12f4df[_0xa4dfad(0x177)],_0x512f6d=_0xda28c2[_0xa4dfad(0x157)][_0xa4dfad(0x14b)][_0xa4dfad(0x13f)](_0x39d06b);_0xda28c2[_0xa4dfad(0x16f)][_0xa4dfad(0x17f)][_0xa4dfad(0x13c)]?Z(_0x12f4df[_0xa4dfad(0x177)],_0x1262bc[_0xa4dfad(0x17a)][_0xa4dfad(0x13e)](),_0xda28c2[_0xa4dfad(0x157)],_0x497bc2):_0x512f6d&&(_0x497bc2[_0xa4dfad(0x18d)](_0x39d06b),_0x497bc2[_0xa4dfad(0x18d)](_0x37d971));});}}function Z(_0x34b39d,_0x7b826b,_0x5bbfc5,_0x10f455){const _0x50faea=_0x559e8d,_0x22c605=_0x50faea(0x119)+_0x34b39d,_0x46bb6a=_0x50faea(0x11a)+_0x34b39d,_0x1546e8=_0x7b826b[_0x50faea(0x18e)]();let _0x2e0399=_0x7b826b[_0x50faea(0x159)];if(_0x1546e8&&_0x1546e8['is'](_0x50faea(0x14e),_0x50faea(0x11c))){const _0x2865fc=function(_0x4444a7,_0xb5a05d){const _0x256b35=_0x50faea;for(const _0x604d73 of _0x4444a7[_0x256b35(0x12d)]())if(_0xb5a05d[_0x256b35(0x141)][_0x256b35(0x19f)](_0x604d73,_0x256b35(0x188)))return _0x604d73;}(_0x7b826b,_0x5bbfc5);_0x2865fc&&(_0x2e0399=_0x2865fc,_0x7b826b=_0x10f455[_0x50faea(0x15c)](_0x2e0399));}const _0x34a290=_0x10f455[_0x50faea(0x15c)](_0x2e0399);_0x5bbfc5[_0x50faea(0x14b)][_0x50faea(0x13f)](_0x22c605)?(_0x10f455[_0x50faea(0x193)](_0x22c605,{'range':_0x7b826b}),_0x10f455[_0x50faea(0x193)](_0x46bb6a,{'range':_0x34a290})):(_0x10f455[_0x50faea(0x155)](_0x22c605,{'range':_0x7b826b,'usingOperation':!0x0}),_0x10f455[_0x50faea(0x155)](_0x46bb6a,{'range':_0x34a290,'usingOperation':!0x0}));}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { ContextPlugin, type Plugin, type Editor, type Context } from 'ckeditor5/src/core.js';
|
|
10
10
|
import { WebSocketGateway as WebSocketGatewayProvider, type WebSocketGatewayState } from '@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';
|
|
11
11
|
import { Notification } from 'ckeditor5/src/ui.js';
|
|
12
|
-
export
|
|
12
|
+
export declare class WebSocketGateway extends ContextPlugin {
|
|
13
13
|
static WebSocketGateway: typeof WebSocketGatewayProvider;
|
|
14
14
|
static initialReconnectionInterval: number;
|
|
15
15
|
connection: WebSocketGatewayProvider;
|
|
@@ -41,15 +41,15 @@ export default class WebSocketGateway extends ContextPlugin {
|
|
|
41
41
|
* Registers a plugin that will be reconnected when the connection is back.
|
|
42
42
|
* The plugin needs to implement the `reconnect()` method.
|
|
43
43
|
*/
|
|
44
|
-
addToReconnectionStack(plugin:
|
|
44
|
+
addToReconnectionStack(plugin: RtcReconnectPlugin | RtcReconnectContextPlugin): void;
|
|
45
45
|
/**
|
|
46
46
|
* Removes the plugin from the reconnection stack.
|
|
47
47
|
*/
|
|
48
|
-
removeFromReconnectionStack(plugin:
|
|
48
|
+
removeFromReconnectionStack(plugin: RtcReconnectPlugin | RtcReconnectContextPlugin): void;
|
|
49
49
|
/**
|
|
50
50
|
* Checks if the plugin is present in the reconnection stack.
|
|
51
51
|
*/
|
|
52
|
-
isInReconnectionStack(plugin:
|
|
52
|
+
isInReconnectionStack(plugin: RtcReconnectPlugin | RtcReconnectContextPlugin): boolean;
|
|
53
53
|
/**
|
|
54
54
|
* Disconnects the client from the WebSocket server and also stops the DOM emitter listeners to prevent reconnect process.
|
|
55
55
|
*/
|
|
@@ -59,9 +59,8 @@ export default class WebSocketGateway extends ContextPlugin {
|
|
|
59
59
|
*/
|
|
60
60
|
destroy(): void;
|
|
61
61
|
}
|
|
62
|
-
interface
|
|
62
|
+
export interface RtcReconnect {
|
|
63
63
|
reconnect: () => void | Promise<void>;
|
|
64
64
|
}
|
|
65
|
-
export type
|
|
66
|
-
export type
|
|
67
|
-
export {};
|
|
65
|
+
export type RtcReconnectPlugin = Plugin & RtcReconnect;
|
|
66
|
+
export type RtcReconnectContextPlugin = ContextPlugin & RtcReconnect;
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
|
|
24
|
-
((()=>
|
|
23
|
+
function _0x1b7f(){const _0x2076af=['cloudservices-reconnection-error','webSocketUrl','634692EjkngA','isInReconnectionStack','offline','requires','connection','The\x20limit\x20of\x20maximum\x20concurrent\x20connections\x20that\x20the\x20collaboration\x20server\x20can\x20handle\x20has\x20been\x20reached.\x20Try\x20opening\x20the\x20document\x20again\x20in\x20a\x20few\x20minutes.\x20Please\x20contact\x20your\x20system\x20administrator\x20if\x20the\x20problem\x20persists.','listenTo','delete','showWarning','then','code','isOfficialPlugin','change:me','init','error','limitExceeded','set','websocketgateway-plugin-already-registered','add','bind','stopListening','addToReconnectionStack','websocketgateway-missing-websocket-url','_isBrowserOffline','cloudServices.requestTimeout','cloudServices.connectionTimeout','cloudservices-init','874678HrYHIS','2585442fxKiTB','websocketgateway-invalid-plugin-interface','get','constructor','CloudServices','_reconnectionStack','pluginName','connect','WebSocketGateway','CONNECTED','_shouldPluginsReconnect','plugins','disconnect','has','define','reconnect','catch','_reconnect','function','5VHoZLc','online','234101bYIDpt','token','32bhBubq','config','from','context','Connected\x20users\x20limit\x20exceeded','connected','CONNECTING','isPremiumPlugin','DISCONNECTED','all','real-time-collaboration','initialReconnectionInterval','960412DbMlFy','9FGYlPJ','_domEmitter','websocketgateway-missing-token','31687720mTTjYn','destroy','state','removeFromReconnectionStack','3022956uYLVzx'];_0x1b7f=function(){return _0x2076af;};return _0x1b7f();}function _0x35d2(_0x563461,_0x5edd27){const _0x1b7fc9=_0x1b7f();return _0x35d2=function(_0x35d2ff,_0x468406){_0x35d2ff=_0x35d2ff-0xf2;let _0x156de1=_0x1b7fc9[_0x35d2ff];return _0x156de1;},_0x35d2(_0x563461,_0x5edd27);}const _0x55d247=_0x35d2;(function(_0x3365f9,_0x3579bc){const _0x1cfac5=_0x35d2,_0x58b051=_0x3365f9();while(!![]){try{const _0x9f1aba=-parseInt(_0x1cfac5(0x11d))/0x1+-parseInt(_0x1cfac5(0x136))/0x2+-parseInt(_0x1cfac5(0x108))/0x3+parseInt(_0x1cfac5(0x12b))/0x4*(-parseInt(_0x1cfac5(0x11b))/0x5)+-parseInt(_0x1cfac5(0x133))/0x6+parseInt(_0x1cfac5(0x107))/0x7*(-parseInt(_0x1cfac5(0x11f))/0x8)+parseInt(_0x1cfac5(0x12c))/0x9*(parseInt(_0x1cfac5(0x12f))/0xa);if(_0x9f1aba===_0x3579bc)break;else _0x58b051['push'](_0x58b051['shift']());}catch(_0xb22a74){_0x58b051['push'](_0x58b051['shift']());}}}(_0x1b7f,0x7cf16));import{ContextPlugin as _0x457c88}from'ckeditor5/src/core.js';import{DomEmitterMixin as _0x4bc5b7,CKEditorError as _0x5e759b}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x5500fc,WEB_SOCKET_GATEWAY_STATES as _0x90e838}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x40f1cb}from'ckeditor5/src/ui.js';class n extends _0x457c88{static [_0x55d247(0x110)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x5500fc)());static [_0x55d247(0x12a)]=0x3e8;[_0x55d247(0x13a)];[_0x55d247(0x10d)];[_0x55d247(0x112)];[_0x55d247(0x12d)];static get[_0x55d247(0x139)](){const _0x4e1b87=_0x55d247;return[_0x4e1b87(0x10c),_0x40f1cb];}static get[_0x55d247(0x10e)](){const _0x1fc94b=_0x55d247;return _0x1fc94b(0x110);}static get[_0x55d247(0xf7)](){return!0x0;}static get[_0x55d247(0x126)](){return!0x0;}constructor(_0x724750){const _0x4d6835=_0x55d247;super(_0x724750),this[_0x4d6835(0xfc)](_0x4d6835(0x131),_0x90e838[_0x4d6835(0x111)]),this[_0x4d6835(0xfc)](_0x4d6835(0x103),!0x1),this[_0x4d6835(0x10d)]=new Set(),this[_0x4d6835(0x112)]=!0x1,this[_0x4d6835(0x12d)]=new(_0x4bc5b7())();}[_0x55d247(0xf9)](){const _0x5d9094=_0x55d247,_0xfc2be1=this[_0x5d9094(0x122)],_0x39172b=_0xfc2be1[_0x5d9094(0x113)][_0x5d9094(0x10a)](_0x5d9094(0x10c)),_0x4c2f6f=_0xfc2be1[_0x5d9094(0x113)][_0x5d9094(0x10a)](_0x40f1cb);if(!_0x39172b[_0x5d9094(0x11e)])throw new _0x5e759b(_0x5d9094(0x12e),this);if(!_0x39172b[_0x5d9094(0x135)])throw new _0x5e759b(_0x5d9094(0x102),this);return this[_0x5d9094(0x12d)][_0x5d9094(0xf2)](window,_0x5d9094(0x138),()=>this[_0x5d9094(0x103)]=!0x0),this[_0x5d9094(0x12d)][_0x5d9094(0xf2)](window,_0x5d9094(0x11c),()=>this[_0x5d9094(0x103)]=!0x1),this[_0x5d9094(0x122)][_0x5d9094(0x120)][_0x5d9094(0x116)](_0x5d9094(0x105),0xa),this[_0x5d9094(0x122)][_0x5d9094(0x120)][_0x5d9094(0x116)](_0x5d9094(0x104),0x14),n[_0x5d9094(0x110)][_0x5d9094(0x10f)](_0x39172b[_0x5d9094(0x11e)],_0x39172b[_0x5d9094(0x135)],{'timeout':0x3e8*this[_0x5d9094(0x122)][_0x5d9094(0x120)][_0x5d9094(0x10a)](_0x5d9094(0x105)),'requestTimeout':0x3e8*this[_0x5d9094(0x122)][_0x5d9094(0x120)][_0x5d9094(0x10a)](_0x5d9094(0x104))})[_0x5d9094(0xf5)](_0x486622=>{const _0x4f7737=_0x5d9094;if(this[_0x4f7737(0x13a)]=_0x486622,this[_0x4f7737(0xff)](_0x4f7737(0x131))['to'](_0x486622,_0x4f7737(0x131),this,_0x4f7737(0x103),(_0x3ff9c6,_0x2171d6)=>(_0x4f7737(0x124)!==_0x3ff9c6&&(this[_0x4f7737(0x112)]=!0x0),_0x2171d6||_0x3ff9c6!==_0x90e838[_0x4f7737(0x111)]?_0x90e838[_0x4f7737(0x127)]:this[_0x4f7737(0x131)]==_0x90e838[_0x4f7737(0x127)]&&this[_0x4f7737(0x112)]?(this[_0x4f7737(0x112)]=!0x1,this[_0x4f7737(0x119)](),_0x90e838[_0x4f7737(0x125)]):_0x90e838[_0x4f7737(0x111)])),this[_0x4f7737(0x13a)]['on'](_0x4f7737(0xfa),(_0x46aea1,_0x485a93)=>{const _0x2a8dc5=_0x4f7737;if(_0x2a8dc5(0xfb)!==_0x485a93[_0x2a8dc5(0xf6)])throw console[_0x2a8dc5(0xfa)](_0x485a93),new _0x5e759b(_0x2a8dc5(0x106),null,{'originalError':_0x485a93});_0x4c2f6f[_0x2a8dc5(0xf4)](_0x2a8dc5(0x13b),{'title':_0x2a8dc5(0x123),'namespace':_0x2a8dc5(0x129)});}),!_0x486622['me'])return new Promise(_0x26e635=>_0x486622['on'](_0x4f7737(0xf8),_0x26e635));})[_0x5d9094(0x118)](_0x31d65b=>{const _0x3e9673=_0x5d9094;throw console[_0x3e9673(0xfa)](_0x31d65b),new _0x5e759b(_0x3e9673(0x106),null,{'originalError':_0x31d65b});});}[_0x55d247(0x101)](_0x46ea60){const _0x4dcf00=_0x55d247;if(_0x4dcf00(0x11a)!=typeof _0x46ea60[_0x4dcf00(0x117)])throw new _0x5e759b(_0x4dcf00(0x109),this);if(this[_0x4dcf00(0x137)](_0x46ea60))throw new _0x5e759b(_0x4dcf00(0xfd),this,{'name':_0x46ea60[_0x4dcf00(0x10b)][_0x4dcf00(0x10e)]});this[_0x4dcf00(0x10d)][_0x4dcf00(0xfe)](_0x46ea60);}[_0x55d247(0x132)](_0x59fdd4){const _0x145bdc=_0x55d247;this[_0x145bdc(0x10d)][_0x145bdc(0xf3)](_0x59fdd4);}[_0x55d247(0x137)](_0xf99f62){const _0x295d55=_0x55d247;return this[_0x295d55(0x10d)][_0x295d55(0x115)](_0xf99f62);}[_0x55d247(0x119)](){const _0x55e353=_0x55d247;return this[_0x55e353(0x13a)][_0x55e353(0x117)]()[_0x55e353(0xf5)](()=>Promise[_0x55e353(0x128)](Array[_0x55e353(0x121)](this[_0x55e353(0x10d)],_0x104761=>_0x104761[_0x55e353(0x117)]())))[_0x55e353(0xf5)](()=>this[_0x55e353(0x131)]=_0x90e838[_0x55e353(0x111)])[_0x55e353(0x118)](_0x3b4389=>{const _0x5844fe=_0x55e353;throw console[_0x5844fe(0xfa)](_0x3b4389),new _0x5e759b(_0x5844fe(0x134),this[_0x5844fe(0x122)]);});}[_0x55d247(0x114)](){const _0x113768=_0x55d247;this[_0x113768(0x13a)]&&this[_0x113768(0x13a)][_0x113768(0x114)](),this[_0x113768(0x131)]=_0x90e838[_0x113768(0x127)],this[_0x113768(0x12d)][_0x113768(0x100)]();}[_0x55d247(0x130)](){const _0xad90ee=_0x55d247;this[_0xad90ee(0x114)](),super[_0xad90ee(0x130)]();}}export{n as WebSocketGateway};
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
9
|
import { Plugin } from 'ckeditor5/src/core.js';
|
|
10
|
-
import RealTimeCollaborationClient from './realtimecollaborativeediting/realtimecollaborationclient.js';
|
|
10
|
+
import { RealTimeCollaborationClient } from './realtimecollaborativeediting/realtimecollaborationclient.js';
|
|
11
11
|
/**
|
|
12
12
|
* Enables the real-time collaborative editing feature.
|
|
13
13
|
*
|
|
14
14
|
* Check the {@glink features/collaboration/real-time-collaboration/real-time-collaboration-integration Real-time collaboration} guide
|
|
15
15
|
* to see how to launch the editor in the real-time collaboration mode.
|
|
16
16
|
*/
|
|
17
|
-
export
|
|
17
|
+
export declare class RealTimeCollaborativeEditing extends Plugin {
|
|
18
18
|
/**
|
|
19
19
|
* @inheritDoc
|
|
20
20
|
*/
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
var
|
|
23
|
+
var _0x50f6a1=_0x428b;function _0x428b(_0x20a021,_0x2b1b04){var _0x4bd126=_0x4bd1();return _0x428b=function(_0x428bbf,_0x15cda4){_0x428bbf=_0x428bbf-0x16b;var _0x176664=_0x4bd126[_0x428bbf];return _0x176664;},_0x428b(_0x20a021,_0x2b1b04);}(function(_0x4be659,_0x10f2d2){var _0x4d0efe=_0x428b,_0x2c00e3=_0x4be659();while(!![]){try{var _0x15842e=-parseInt(_0x4d0efe(0x174))/0x1*(parseInt(_0x4d0efe(0x17a))/0x2)+-parseInt(_0x4d0efe(0x17b))/0x3*(-parseInt(_0x4d0efe(0x176))/0x4)+-parseInt(_0x4d0efe(0x16c))/0x5*(-parseInt(_0x4d0efe(0x16e))/0x6)+-parseInt(_0x4d0efe(0x179))/0x7+parseInt(_0x4d0efe(0x170))/0x8*(-parseInt(_0x4d0efe(0x175))/0x9)+parseInt(_0x4d0efe(0x172))/0xa*(-parseInt(_0x4d0efe(0x173))/0xb)+parseInt(_0x4d0efe(0x171))/0xc*(parseInt(_0x4d0efe(0x17c))/0xd);if(_0x15842e===_0x10f2d2)break;else _0x2c00e3['push'](_0x2c00e3['shift']());}catch(_0x3dc82a){_0x2c00e3['push'](_0x2c00e3['shift']());}}}(_0x4bd1,0x59a7e));import{Plugin as _0x321ee4}from'ckeditor5/src/core.js';import{RealTimeCollaborationClient as _0x13994c}from'./realtimecollaborativeediting/realtimecollaborationclient.js';function _0x4bd1(){var _0x1febe6=['isPremiumPlugin','8iKGFiZ','12maiVxv','9470QMJKkB','3388Pkiwtm','26459QsIBjg','388233edBOsu','942200JSgqJQ','pluginName','isOfficialPlugin','2721593GfqzlV','30YLPLRn','3TjrpPz','11862929AyAVQV','RealTimeCollaborativeEditing','95eURjgD','requires','107256vjQPMD'];_0x4bd1=function(){return _0x1febe6;};return _0x4bd1();}export class RealTimeCollaborativeEditing extends _0x321ee4{static get[_0x50f6a1(0x16d)](){return[_0x13994c];}static get[_0x50f6a1(0x177)](){var _0x94bd8c=_0x50f6a1;return _0x94bd8c(0x16b);}static get[_0x50f6a1(0x178)](){return!0x0;}static get[_0x50f6a1(0x16f)](){return!0x0;}}
|
|
@@ -8,14 +8,14 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import { Plugin, type Editor } from 'ckeditor5/src/core.js';
|
|
10
10
|
import { Users } from 'ckeditor5-collaboration/src/collaboration-core.js';
|
|
11
|
-
import RealTimeCollaborationClient from '../realtimecollaborativeediting/realtimecollaborationclient.js';
|
|
12
|
-
import WebSocketGateway,
|
|
13
|
-
import Sessions from '../realtimecollaborativeediting/sessions.js';
|
|
11
|
+
import { RealTimeCollaborationClient } from '../realtimecollaborativeediting/realtimecollaborationclient.js';
|
|
12
|
+
import { WebSocketGateway, type RtcReconnectPlugin } from '../realtimecollaborativeediting/websocketgateway.js';
|
|
13
|
+
import { Sessions } from '../realtimecollaborativeediting/sessions.js';
|
|
14
14
|
import { RevisionHistoryService } from '@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';
|
|
15
15
|
/**
|
|
16
16
|
* The Cloud Services revision history adapter plugin.
|
|
17
17
|
*/
|
|
18
|
-
export
|
|
18
|
+
export declare class CloudServicesRevisionHistoryAdapter extends Plugin implements RtcReconnectPlugin {
|
|
19
19
|
static RevisionHistoryService: typeof RevisionHistoryService;
|
|
20
20
|
/**
|
|
21
21
|
* @inheritDoc
|