@ckeditor/ckeditor5-real-time-collaboration 46.0.1-alpha.2 → 46.0.1-alpha.3
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/package.json +14 -14
- package/src/presencelist/presencelistui.js +1 -1
- package/src/presencelist/view/presencedropdownlistitemview.js +1 -1
- package/src/presencelist/view/presencedropdownlistview.js +1 -1
- package/src/presencelist/view/presenceinlinelistitemview.js +1 -1
- package/src/presencelist/view/presenceinlinelistview.js +1 -1
- package/src/presencelist/view/presencelistview.js +1 -1
- package/src/realtimecollaborativecomments/cloudservicescommentsadapter.js +2 -2
- package/src/realtimecollaborativeediting/realtimecollaborationclient.js +2 -2
- package/src/realtimecollaborativeediting/sessions.js +1 -1
- package/src/realtimecollaborativeediting/usermarkers.js +1 -1
- package/src/realtimecollaborativeediting/websocketgateway.js +2 -2
- package/src/realtimecollaborativerevisionhistory/cloudservicesrevisionhistoryadapter.js +2 -2
- package/src/realtimecollaborativetrackchanges/cloudservicestrackchangesadapter.js +2 -2
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0xb02b3b=_0x368b;function _0x368b(_0x317745,_0x52b1a5){const _0x551a32=_0x551a();return _0x368b=function(_0x368ba1,_0x2e99f2){_0x368ba1=_0x368ba1-0xb8;let _0x2df8e2=_0x551a32[_0x368ba1];return _0x2df8e2;},_0x368b(_0x317745,_0x52b1a5);}function _0x551a(){const _0x3b4c07=['7MsLArx','forEach','getUser','get','328xZLrQY','channelSessions','addUser','_handleSessionAdd','channelConnectedUsers','state','sessions-unregister-not-exist','getUserBySessionId','_users','47133KEpwTV','188262GEjekl','_handleSessionRemove','delete','has','context','_uniqueUsersCount','role','remove','Sessions','mySessionId','fire','pluginName','stopListening','111918uNhZDB','2274180ZdrXGB','init','listenTo','change:state','unregister','sessions-register-already-registered','user','connected','connection','orderNumber','add','plugins','values','2377095EanHqY','_registeredSessions','size','getUserRole','defineMe','sessionAdd:','isPremiumPlugin','requires','1383782XZCMCk','clear','sessionId','_createUser','getUserSessions','allConnectedUsers','isMe','set','3ZlQSSa','register','2224288YuLwXY','assign','isOfficialPlugin'];_0x551a=function(){return _0x3b4c07;};return _0x551a();}(function(_0x2bc713,_0x5d260d){const _0x15e8c5=_0x368b,_0x1b19a5=_0x2bc713();while(!![]){try{const _0x3f468a=parseInt(_0x15e8c5(0xce))/0x1+parseInt(_0x15e8c5(0xf1))/0x2*(parseInt(_0x15e8c5(0xbb))/0x3)+-parseInt(_0x15e8c5(0xbd))/0x4+parseInt(_0x15e8c5(0xe9))/0x5+parseInt(_0x15e8c5(0xdb))/0x6*(parseInt(_0x15e8c5(0xc0))/0x7)+-parseInt(_0x15e8c5(0xc4))/0x8*(parseInt(_0x15e8c5(0xcd))/0x9)+-parseInt(_0x15e8c5(0xdc))/0xa;if(_0x3f468a===_0x5d260d)break;else _0x1b19a5['push'](_0x1b19a5['shift']());}catch(_0x16419a){_0x1b19a5['push'](_0x1b19a5['shift']());}}}(_0x551a,0x5bcd2));import{ContextPlugin as _0x4677d8}from'ckeditor5/src/core.js';import{Collection as _0x21ee6b,CKEditorError as _0x4112d1}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x4a2495}from'./websocketgateway.js';import{Users as _0x35d405}from'ckeditor5-collaboration/src/collaboration-core.js';export class Sessions extends _0x4677d8{[_0xb02b3b(0xc5)];[_0xb02b3b(0xc8)];[_0xb02b3b(0xb8)];[_0xb02b3b(0xea)];[_0xb02b3b(0xd3)];[_0xb02b3b(0xcc)];static get[_0xb02b3b(0xd9)](){const _0x48ddee=_0xb02b3b;return _0x48ddee(0xd6);}static get[_0xb02b3b(0xbf)](){return!0x0;}static get[_0xb02b3b(0xef)](){return!0x0;}static get[_0xb02b3b(0xf0)](){return[_0x4a2495,_0x35d405];}constructor(_0x2c2ab6){const _0x11c871=_0xb02b3b;super(_0x2c2ab6),this[_0x11c871(0xc5)]=new Map(),this[_0x11c871(0xc8)]=new Map(),this[_0x11c871(0xb8)]=new _0x21ee6b(),this[_0x11c871(0xea)]=new Map(),this[_0x11c871(0xd3)]=0x0,this[_0x11c871(0xcc)]=this[_0x11c871(0xd2)][_0x11c871(0xe7)][_0x11c871(0xc3)](_0x35d405);}[_0xb02b3b(0xdd)](){const _0x4e3da4=_0xb02b3b,_0x5e9a55=this[_0x4e3da4(0xd2)][_0x4e3da4(0xe7)][_0x4e3da4(0xc3)](_0x4a2495);this[_0x4e3da4(0xde)](_0x5e9a55,_0x4e3da4(0xdf),(_0x3d1d1e,_0x595e5e,_0x14ec4a)=>{const _0x25e607=_0x4e3da4;if(_0x25e607(0xe3)!==_0x14ec4a)this[_0x25e607(0xc5)][_0x25e607(0xc1)](_0x23fee0=>_0x23fee0[_0x25e607(0xf2)]()),this[_0x25e607(0xc8)][_0x25e607(0xc1)](_0x79fbcb=>_0x79fbcb[_0x25e607(0xf2)]()),this[_0x25e607(0xb8)][_0x25e607(0xf2)]();else{for(const [_0x3c34cd,_0x52abf6]of this[_0x25e607(0xea)])for(const _0x182974 of _0x52abf6)this[_0x25e607(0xc7)](_0x3c34cd,_0x182974);}}),this[_0x4e3da4(0xf4)](_0x5e9a55[_0x4e3da4(0xe4)]['me'],!0x0);}[_0xb02b3b(0xbc)](_0x556bd1,_0x20c9ff){const _0x7fe2f=_0xb02b3b;if(this[_0x7fe2f(0xea)][_0x7fe2f(0xd1)](_0x556bd1))throw new _0x4112d1(_0x7fe2f(0xe1),null,{'channelId':_0x556bd1});this[_0x7fe2f(0xea)][_0x7fe2f(0xba)](_0x556bd1,_0x20c9ff),this[_0x7fe2f(0xc5)][_0x7fe2f(0xba)](_0x556bd1,new _0x21ee6b()),this[_0x7fe2f(0xc8)][_0x7fe2f(0xba)](_0x556bd1,new _0x21ee6b()),this[_0x7fe2f(0xde)](_0x20c9ff,_0x7fe2f(0xe6),(_0x3de380,_0x522f92)=>this[_0x7fe2f(0xc7)](_0x556bd1,_0x522f92)),this[_0x7fe2f(0xde)](_0x20c9ff,_0x7fe2f(0xd5),(_0xada425,_0x3281f2)=>this[_0x7fe2f(0xcf)](_0x556bd1,_0x3281f2));for(const _0x3e41f3 of _0x20c9ff)this[_0x7fe2f(0xc7)](_0x556bd1,_0x3e41f3);}[_0xb02b3b(0xe0)](_0x36df6f){const _0x264e3b=_0xb02b3b;if(!this[_0x264e3b(0xea)][_0x264e3b(0xd1)](_0x36df6f))throw new _0x4112d1(_0x264e3b(0xca),null,{'channelId':_0x36df6f});const _0x5cd39b=this[_0x264e3b(0xea)][_0x264e3b(0xc3)](_0x36df6f);this[_0x264e3b(0xda)](_0x5cd39b);for(const _0x164809 of _0x5cd39b)_0x264e3b(0xe3)===this[_0x264e3b(0xd2)][_0x264e3b(0xe7)][_0x264e3b(0xc3)](_0x4a2495)[_0x264e3b(0xc9)]&&this[_0x264e3b(0xcf)](_0x36df6f,_0x164809);this[_0x264e3b(0xea)][_0x264e3b(0xd0)](_0x36df6f),this[_0x264e3b(0xc5)][_0x264e3b(0xd0)](_0x36df6f),this[_0x264e3b(0xc8)][_0x264e3b(0xd0)](_0x36df6f);}get[_0xb02b3b(0xd7)](){const _0x1c1910=_0xb02b3b;return this[_0x1c1910(0xd2)][_0x1c1910(0xe7)][_0x1c1910(0xc3)](_0x4a2495)[_0x1c1910(0xe4)][_0x1c1910(0xf3)];}[_0xb02b3b(0xcb)](_0x47e79e){const _0x46f4bf=_0xb02b3b;for(const _0x15b833 of this[_0x46f4bf(0xc5)][_0x46f4bf(0xe8)]())for(const _0x4e3734 of _0x15b833)if(_0x4e3734['id']===_0x47e79e)return _0x4e3734[_0x46f4bf(0xe2)];}[_0xb02b3b(0xf5)](_0x45576e,_0x2c4f1b){const _0x5568e5=_0xb02b3b,_0x449ae0=_0x2c4f1b?[this[_0x5568e5(0xc5)][_0x5568e5(0xc3)](_0x2c4f1b)]:this[_0x5568e5(0xc5)][_0x5568e5(0xe8)](),_0x59ad33=new Set();for(const _0x12b742 of _0x449ae0)for(const _0x2be9b2 of _0x12b742)_0x2be9b2[_0x5568e5(0xe2)]['id']===_0x45576e['id']&&_0x59ad33[_0x5568e5(0xe6)](_0x2be9b2['id']);return _0x59ad33;}[_0xb02b3b(0xec)](_0x507a61){const _0x2f96a2=_0xb02b3b;for(const _0x4fd1ff of this[_0x2f96a2(0xc5)][_0x2f96a2(0xe8)]())for(const _0x47bc06 of _0x4fd1ff)if(_0x47bc06[_0x2f96a2(0xe2)]===_0x507a61)return _0x47bc06[_0x2f96a2(0xd4)];}[_0xb02b3b(0xc7)](_0xf9feba,_0x1170bb){const _0x2bbfeb=_0xb02b3b;if(_0x2bbfeb(0xe3)!==this[_0x2bbfeb(0xd2)][_0x2bbfeb(0xe7)][_0x2bbfeb(0xc3)](_0x4a2495)[_0x2bbfeb(0xc9)])return;const _0x490650=_0x1170bb[_0x2bbfeb(0xe2)],_0x4ca7ba=this[_0x2bbfeb(0xcc)][_0x2bbfeb(0xc2)](_0x490650['id'])||this[_0x2bbfeb(0xf4)](_0x490650),_0x2c4e8d=Object[_0x2bbfeb(0xbe)]({},_0x1170bb,{'user':_0x4ca7ba});this[_0x2bbfeb(0xc5)][_0x2bbfeb(0xc3)](_0xf9feba)[_0x2bbfeb(0xe6)](_0x2c4e8d);const _0x582cdd=this[_0x2bbfeb(0xc8)][_0x2bbfeb(0xc3)](_0xf9feba);_0x582cdd[_0x2bbfeb(0xd1)](_0x4ca7ba['id'])||_0x582cdd[_0x2bbfeb(0xe6)](_0x4ca7ba),this[_0x2bbfeb(0xb8)][_0x2bbfeb(0xd1)](_0x4ca7ba['id'])||this[_0x2bbfeb(0xb8)][_0x2bbfeb(0xe6)](_0x4ca7ba,_0x4ca7ba[_0x2bbfeb(0xb9)]?0x0:void 0x0),this[_0x2bbfeb(0xd8)](_0x2bbfeb(0xee)+_0xf9feba,{'channelId':_0xf9feba,'session':_0x2c4e8d});}[_0xb02b3b(0xcf)](_0x5a876a,_0x2aa195){const _0x22e4f5=_0xb02b3b;if(_0x22e4f5(0xe3)!==this[_0x22e4f5(0xd2)][_0x22e4f5(0xe7)][_0x22e4f5(0xc3)](_0x4a2495)[_0x22e4f5(0xc9)])return;const _0x14d6bf=this[_0x22e4f5(0xc8)][_0x22e4f5(0xc3)](_0x5a876a),_0x22c05f=_0x2aa195[_0x22e4f5(0xe2)];_0x22c05f['id']&&(this[_0x22e4f5(0xc5)][_0x22e4f5(0xc3)](_0x5a876a)[_0x22e4f5(0xd5)](_0x2aa195['id']),_0x14d6bf[_0x22e4f5(0xd1)](_0x22c05f['id'])&&!this[_0x22e4f5(0xf5)](_0x22c05f,_0x5a876a)[_0x22e4f5(0xeb)]&&_0x14d6bf[_0x22e4f5(0xd5)](_0x22c05f['id']),this[_0x22e4f5(0xb8)][_0x22e4f5(0xc3)](_0x22c05f['id'])&&!this[_0x22e4f5(0xf5)](_0x22c05f)[_0x22e4f5(0xeb)]&&this[_0x22e4f5(0xb8)][_0x22e4f5(0xd5)](_0x22c05f['id']));}[_0xb02b3b(0xf4)](_0x43be70,_0xd67e6){const _0x5c6176=_0xb02b3b,_0xd0bfa2=this[_0x5c6176(0xcc)][_0x5c6176(0xc6)](_0x43be70);return _0xd67e6&&this[_0x5c6176(0xcc)][_0x5c6176(0xed)](_0x43be70['id']),_0xd0bfa2[_0x5c6176(0xe5)]=this[_0x5c6176(0xd3)]++,_0xd0bfa2;}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const _0x477ef0=_0x23db;(function(_0x387afb,_0x22c106){const _0x330fbd=_0x23db,_0xa8ca65=_0x387afb();while(!![]){try{const _0x3e6cbf=-parseInt(_0x330fbd(0x13d))/0x1+-parseInt(_0x330fbd(0x11f))/0x2+parseInt(_0x330fbd(0x101))/0x3*(parseInt(_0x330fbd(0xfd))/0x4)+parseInt(_0x330fbd(0x109))/0x5*(parseInt(_0x330fbd(0x183))/0x6)+parseInt(_0x330fbd(0x13c))/0x7+-parseInt(_0x330fbd(0x146))/0x8*(-parseInt(_0x330fbd(0x14d))/0x9)+-parseInt(_0x330fbd(0x16a))/0xa*(parseInt(_0x330fbd(0x16c))/0xb);if(_0x3e6cbf===_0x22c106)break;else _0xa8ca65['push'](_0xa8ca65['shift']());}catch(_0x919cfa){_0xa8ca65['push'](_0xa8ca65['shift']());}}}(_0x4f32,0xc2504));import{Plugin as _0x489db0}from'ckeditor5/src/core.js';import{global as _0x2deb0e,DomEmitterMixin as _0x352372}from'ckeditor5/src/utils.js';import{Sessions as _0x68dfc0}from'./sessions.js';import{ModelLiveRange as _0x34f5bc}from'ckeditor5/src/engine.js';function _0x23db(_0x918398,_0x2f7b48){const _0x4f32a6=_0x4f32();return _0x23db=function(_0x23db34,_0x3f3c79){_0x23db34=_0x23db34-0xfd;let _0x243a24=_0x4f32a6[_0x23db34];return _0x243a24;},_0x23db(_0x918398,_0x2f7b48);}import'../../theme/usermarkers.css';export class UserMarkers extends _0x489db0{[_0x477ef0(0x121)]=new(_0x352372())();static get[_0x477ef0(0x134)](){return[_0x68dfc0];}static get[_0x477ef0(0x149)](){const _0x84dee3=_0x477ef0;return _0x84dee3(0x184);}static get[_0x477ef0(0x181)](){return!0x0;}static get[_0x477ef0(0x123)](){return!0x0;}[_0x477ef0(0x16b)](){const _0x948fd7=_0x477ef0,_0x36a9a6=this[_0x948fd7(0xff)],_0x47dbaa=_0x36a9a6[_0x948fd7(0x125)][_0x948fd7(0x112)](_0x68dfc0);_0x36a9a6[_0x948fd7(0x102)][_0x948fd7(0x14b)](_0x948fd7(0x13e))[_0x948fd7(0x128)]({'model':_0x948fd7(0x164),'view':(_0x16cd90,{writer:_0x16e227})=>function(_0x3af686,_0x4597eb,_0x2c5807,_0x1d6d7a){const _0x5e7d65=_0x948fd7,_0x5ad5e6=_0x3af686[_0x5e7d65(0x186)][_0x5e7d65(0x12a)](':')[0x2],_0x5afbd5=_0x2c5807[_0x5e7d65(0x168)](_0x5ad5e6);if(!_0x5afbd5||_0x5ad5e6===_0x2c5807[_0x5e7d65(0x140)])return;if(!_0x1d6d7a[_0x5e7d65(0x14e)][_0x5e7d65(0x17b)][_0x5e7d65(0x12e)](_0x3af686[_0x5e7d65(0x139)][_0x5e7d65(0x138)],_0x5e7d65(0x127)))return;const _0x26b8d1={'class':_0x5e7d65(0x169)+_0x5afbd5[_0x5e7d65(0x145)][_0x5e7d65(0x133)](),'data-name':_0x5afbd5[_0x5e7d65(0x163)],'data-session-id':_0x5ad5e6},_0x50b6c6=_0x1d6d7a[_0x5e7d65(0x14e)][_0x5e7d65(0x14f)][_0x5e7d65(0x112)](_0x3af686[_0x5e7d65(0x186)]),_0x44e521=_0x50b6c6[_0x5e7d65(0x126)](),_0x4401e9=_0x44e521[_0x5e7d65(0x11a)],_0x35f14d=_0x1d6d7a[_0x5e7d65(0x14e)][_0x5e7d65(0x17b)];if(_0x4401e9&&_0x35f14d[_0x5e7d65(0x142)](_0x4401e9)&&_0x35f14d[_0x5e7d65(0x16d)](_0x4401e9)&&!_0x1d6d7a[_0x5e7d65(0x14e)][_0x5e7d65(0x14f)][_0x5e7d65(0x112)](_0x5e7d65(0x10b)+_0x5ad5e6)[_0x5e7d65(0x180)]()[_0x5e7d65(0x15f)])return;const _0x47d8cd=_0x44e521[_0x5e7d65(0x172)];return _0x1d6d7a[_0x5e7d65(0x14e)][_0x5e7d65(0x17b)][_0x5e7d65(0x13b)](_0x47d8cd)&&!_0x1d6d7a[_0x5e7d65(0x14e)][_0x5e7d65(0x135)](_0x47d8cd)&&(_0x26b8d1[_0x5e7d65(0x115)]=!0x1),function(_0x3476b1,_0x2161ff,_0x2c1b94){const _0x5bddda=_0x5e7d65,_0x239be7=_0x3476b1[_0x5bddda(0x182)](_0x5bddda(0x151),_0x2161ff);return _0x3476b1[_0x5bddda(0x15c)](_0x5bddda(0x154),!0x0,_0x239be7),_0x239be7[_0x5bddda(0x106)]=function(_0x582e95){const _0x475d63=_0x5bddda,_0x441d3b=this[_0x475d63(0x15d)](_0x582e95),_0x489713=document[_0x475d63(0x152)](_0x475d63(0x151));return _0x489713[_0x475d63(0x165)][_0x475d63(0x173)](_0x475d63(0x175)),_0x489713[_0x475d63(0x158)](_0x475d63(0x115),_0x475d63(0x156)),_0x489713[_0x475d63(0x158)](_0x475d63(0x166),_0x475d63(0x156)),_0x489713[_0x475d63(0x119)]=_0x2c1b94[_0x475d63(0x163)],_0x441d3b[_0x475d63(0x188)]=_0x475d63(0x100)+_0x489713[_0x475d63(0x108)]+'',_0x441d3b[_0x475d63(0x114)](_0x475d63(0x122),()=>{const _0x55435e=_0x475d63;_0x441d3b[_0x55435e(0x165)][_0x55435e(0x173)](_0x55435e(0x105));}),_0x441d3b[_0x475d63(0x114)](_0x475d63(0x17c),()=>{const _0x486820=_0x475d63;_0x441d3b[_0x486820(0x165)][_0x486820(0x103)](_0x486820(0x105));}),_0x441d3b;},_0x239be7[_0x5bddda(0x141)]=function(_0x111ce3){const _0x1e9da0=_0x5bddda;return!(!this[_0x1e9da0(0x130)](_0x1e9da0(0x154))||!_0x111ce3[_0x1e9da0(0x130)](_0x1e9da0(0x154))||this[_0x1e9da0(0x10a)](_0x1e9da0(0x14c))!=_0x111ce3[_0x1e9da0(0x10a)](_0x1e9da0(0x14c)));},_0x239be7;}(_0x4597eb,_0x26b8d1,_0x5afbd5);}(_0x16cd90,_0x16e227,_0x47dbaa,_0x36a9a6)}),_0x36a9a6[_0x948fd7(0x102)][_0x948fd7(0x14b)](_0x948fd7(0x13e))[_0x948fd7(0x16f)]({'model':_0x948fd7(0x111),'view':_0x300b6d=>function(_0x352704,_0x16080f){const _0x268e7b=_0x948fd7,_0x546d81=_0x352704[_0x268e7b(0x186)][_0x268e7b(0x12a)](':')[0x2];if(_0x546d81===_0x16080f[_0x268e7b(0x140)])return null;const _0x1f4ae0=_0x16080f[_0x268e7b(0x168)](_0x546d81);if(!_0x1f4ae0)return{'id':_0x546d81,'classes':[]};return{'id':_0x546d81,'classes':[_0x268e7b(0x157),_0x1f4ae0[_0x268e7b(0x145)][_0x268e7b(0x171)]()],'attributes':{'data-session-id':_0x546d81},'priority':0x7d0+_0x1f4ae0[_0x268e7b(0x12c)]};}(_0x300b6d,_0x47dbaa)}),function(_0x7a831e){const _0x5a4174=_0x948fd7,_0x2a9c95=_0x7a831e[_0x5a4174(0x14e)],_0x489164=new Map(),_0x32b7be=_0x7a831e[_0x5a4174(0x125)][_0x5a4174(0x112)](_0x68dfc0);_0x2a9c95[_0x5a4174(0x14f)]['on'](_0x5a4174(0x15b),(_0xe25457,_0x116886,_0x52750c,_0x2b89cc)=>{const _0x249585=_0x5a4174;if(!_0x2b89cc&&_0x489164[_0x249585(0x112)](_0x116886[_0x249585(0x163)]))return _0x489164[_0x249585(0x112)](_0x116886[_0x249585(0x163)])[_0x249585(0x11c)](),void _0x489164[_0x249585(0x16e)](_0x116886[_0x249585(0x163)]);const _0x4e4f9b=_0x116886[_0x249585(0x163)][_0x249585(0x12a)](':')[0x2];if(_0x4e4f9b===_0x32b7be[_0x249585(0x140)])return;const _0x42bbfa=_0x249585(0x10f)+_0x4e4f9b;_0x2a9c95[_0x249585(0x14f)][_0x249585(0x162)](_0x42bbfa)&&_0x7a831e[_0x249585(0x120)][_0x249585(0x132)](_0x42bbfa),_0x116886['on'](_0x249585(0x104),(_0x1874f7,_0x1f4404,_0x425acf)=>{const _0x135214=_0x249585;if(_0x135214(0x11b)!=_0x1f4404[_0x135214(0x124)][_0x135214(0x117)]&&_0x135214(0x11b)==_0x116886[_0x135214(0x180)]()[_0x135214(0x124)][_0x135214(0x117)]&&!_0x489164[_0x135214(0x162)](_0x116886[_0x135214(0x163)])){const _0x2848a5=_0x2a9c95[_0x135214(0x17b)][_0x135214(0x10c)](_0x425acf[_0x135214(0x178)]);if(_0x2848a5){const _0x1c418b=_0x34f5bc[_0x135214(0x176)](_0x2848a5);_0x489164[_0x135214(0x11d)](_0x116886[_0x135214(0x163)],_0x1c418b),_0x1c418b['on'](_0x135214(0x104),(_0x39474a,_0x53c368,_0x9b141b)=>{const _0x475520=_0x135214;if(_0x475520(0x11b)==_0x1c418b[_0x475520(0x124)][_0x475520(0x117)]){const _0x5535f2=_0x2a9c95[_0x475520(0x17b)][_0x475520(0x10c)](_0x9b141b[_0x475520(0x178)]);_0x5535f2?(_0x1c418b[_0x475520(0x138)]=_0x5535f2[_0x475520(0x138)],_0x1c418b[_0x475520(0x113)]=_0x5535f2[_0x475520(0x113)]):(_0x489164[_0x475520(0x16e)](_0x116886[_0x475520(0x163)]),_0x1c418b[_0x475520(0x11c)]());}});}}});}),_0x2a9c95[_0x5a4174(0x179)]['on'](_0x5a4174(0x11e),()=>{const _0x286581=_0x5a4174;_0x489164[_0x286581(0x110)]>0x0&&_0x2a9c95[_0x286581(0x144)]({'isUndoable':!0x1},_0x10996c=>{const _0x411a25=_0x286581;for(const [_0x4b2dcc,_0x39119a]of _0x489164)_0x411a25(0x11b)==_0x2a9c95[_0x411a25(0x14f)][_0x411a25(0x112)](_0x4b2dcc)[_0x411a25(0x180)]()[_0x411a25(0x124)][_0x411a25(0x117)]&&(te(_0x4b2dcc[_0x411a25(0x12a)](':')[0x2],_0x39119a[_0x411a25(0x12f)](),_0x2a9c95,_0x10996c),_0x39119a[_0x411a25(0x11c)]());_0x489164[_0x411a25(0x185)]();});});}(_0x36a9a6),this[_0x948fd7(0x121)][_0x948fd7(0x137)](_0x2deb0e[_0x948fd7(0x179)],_0x948fd7(0x15e),(_0x2968be,{key:_0x2daaae})=>{const _0x12776d=_0x948fd7;_0x12776d(0x14a)===_0x2daaae&&function(_0xf4ccf2){const _0x70e2f3=_0x12776d;_0xf4ccf2[_0x70e2f3(0x120)][_0x70e2f3(0x148)][_0x70e2f3(0x11e)](_0x264678=>{const _0xcbfd6a=_0x70e2f3;for(const _0x11bb33 of _0xf4ccf2[_0xcbfd6a(0x14e)][_0xcbfd6a(0x14f)]){if(!_0x11bb33[_0xcbfd6a(0x163)][_0xcbfd6a(0x17d)](_0xcbfd6a(0x164)))continue;const _0x384c97=_0xf4ccf2[_0xcbfd6a(0x120)][_0xcbfd6a(0x17a)][_0xcbfd6a(0x155)](_0x11bb33[_0xcbfd6a(0x163)]);if(_0x384c97){for(const _0x495f7b of _0x384c97)_0x264678[_0xcbfd6a(0xfe)](_0xcbfd6a(0x105),_0x495f7b);}}});}(_0x36a9a6);},{'useCapture':!0x0});}[_0x477ef0(0x174)](){const _0x289793=_0x477ef0,_0x12843c=this[_0x289793(0xff)],_0x4847b3=_0x12843c[_0x289793(0x10d)][_0x289793(0x112)](_0x289793(0x107));_0x4847b3&&_0x12843c[_0x289793(0x14e)]['on'](_0x289793(0x143),(_0x55a53d,_0x56ddaa)=>{const _0x43d008=_0x289793,_0x4f53bd=_0x56ddaa[0x0];if(!_0x4f53bd[_0x43d008(0x129)])return;if(_0x43d008(0x160)!=_0x4f53bd[_0x43d008(0x150)]||!_0x4f53bd[_0x43d008(0x163)][_0x43d008(0x17d)](_0x43d008(0x159)))return;const _0x463ec4=_0x4f53bd[_0x43d008(0x177)];_0x4847b3[_0x43d008(0x170)][_0x43d008(0x162)](_0x463ec4)&&(_0x4f53bd[_0x43d008(0x13a)]=_0x4f53bd[_0x43d008(0x17e)]?_0x12843c[_0x43d008(0x14e)][_0x43d008(0x12d)](_0x4f53bd[_0x43d008(0x17e)][_0x43d008(0x138)],_0x4f53bd[_0x43d008(0x17e)][_0x43d008(0x113)]):null);},{'priority':_0x289793(0x187)});}[_0x477ef0(0x161)](){const _0x2bdad3=_0x477ef0;return this[_0x2bdad3(0x121)][_0x2bdad3(0x15a)](),super[_0x2bdad3(0x161)]();}[_0x477ef0(0x10e)](){const _0x3b7c01=_0x477ef0,_0x29e2f7=this[_0x3b7c01(0xff)],_0x403e10=_0x29e2f7[_0x3b7c01(0x14e)][_0x3b7c01(0x179)],_0x38b0da=_0x29e2f7[_0x3b7c01(0x125)][_0x3b7c01(0x112)](_0x68dfc0);_0x29e2f7[_0x3b7c01(0x14e)][_0x3b7c01(0x144)]({'isUndoable':!0x1},_0x498e47=>{const _0x35e685=_0x3b7c01,_0x45d4b8=_0x35e685(0x10b)+_0x38b0da[_0x35e685(0x140)],_0x34f506=_0x35e685(0x10f)+_0x38b0da[_0x35e685(0x140)],_0x1f95c1=_0x29e2f7[_0x35e685(0x14e)][_0x35e685(0x14f)][_0x35e685(0x162)](_0x45d4b8);_0x29e2f7[_0x35e685(0x120)][_0x35e685(0x148)][_0x35e685(0x147)]?te(_0x38b0da[_0x35e685(0x140)],_0x403e10[_0x35e685(0x167)][_0x35e685(0x118)](),_0x29e2f7[_0x35e685(0x14e)],_0x498e47):_0x1f95c1&&(_0x498e47[_0x35e685(0x13f)](_0x45d4b8),_0x498e47[_0x35e685(0x13f)](_0x34f506));});}}function _0x4f32(){const _0x1b5994=['user:position','classList','spellcheck','selection','getUserBySessionId','ck-user__marker\x20','7627140MYbBFg','init','22cwwtjq','isInline','delete','markerToHighlight','_createdBatches','getSelectionClass','parent','add','afterInit','ck-user__marker-tooltip','fromRange','batch','deletionPosition','document','mapper','schema','mouseleave','startsWith','oldRange','element','getRange','isOfficialPlugin','createUIElement','30YHoNsz','UserMarkers','clear','markerName','highest','innerHTML','4NpGLZF','removeClass','editor','<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','1821657zjncKp','conversion','remove','change:range','ck-user__marker_hovered','render','undo','outerHTML','897300pwerXm','getAttribute','user:range:','getNearestSelectionRange','commands','createUserMarkerOperations','user:position:','size','user:range','get','end','addEventListener','contenteditable','getPositions','rootName','getFirstRange','textContent','nodeAfter','$graveyard','detach','set','change','339938mxccWT','editing','_domEmitter','mouseenter','isPremiumPlugin','root','plugins','getStart','$text','markerToElement','isDocumentOperation','split','addMarker','orderNumber','createRange','checkChild','toRange','getCustomProperty','tableCell','reconvertMarker','getMarkerClass','requires','hasContent','getContainedElement','listenTo','start','markerRange','newRange','isLimit','6236797dWzleI','719108LhSwgi','editingDowncast','removeMarker','mySessionId','isSimilar','isObject','applyOperation','enqueueChange','color','2173128BcTZvD','hasDomSelection','view','pluginName','Escape','for','data-session-id','27kJseiD','model','markers','type','span','createElement','updateMarker','userPositionMarker','markerNameToElements','false','ck-user__selection','setAttribute','user:','stopListening','update:user:range','setCustomProperty','toDomElement','keydown','isCollapsed','marker','destroy','has','name'];_0x4f32=function(){return _0x1b5994;};return _0x4f32();}function te(_0x500e40,_0x2c16bf,_0x1fc8dc,_0x49355d){const _0x31e58d=_0x477ef0,_0x5a0391=_0x31e58d(0x10b)+_0x500e40,_0x47c548=_0x31e58d(0x10f)+_0x500e40,_0x2338aa=_0x2c16bf[_0x31e58d(0x136)]();let _0x13a3e2=_0x2c16bf[_0x31e58d(0x138)];if(_0x2338aa&&_0x2338aa['is'](_0x31e58d(0x17f),_0x31e58d(0x131))){const _0x334ff6=function(_0x469f7a,_0x30a737){const _0xa79655=_0x31e58d;for(const _0x2b1c10 of _0x469f7a[_0xa79655(0x116)]())if(_0x30a737[_0xa79655(0x17b)][_0xa79655(0x12e)](_0x2b1c10,_0xa79655(0x127)))return _0x2b1c10;}(_0x2c16bf,_0x1fc8dc);_0x334ff6&&(_0x13a3e2=_0x334ff6,_0x2c16bf=_0x49355d[_0x31e58d(0x12d)](_0x13a3e2));}const _0x52a84d=_0x49355d[_0x31e58d(0x12d)](_0x13a3e2);_0x1fc8dc[_0x31e58d(0x14f)][_0x31e58d(0x162)](_0x5a0391)?(_0x49355d[_0x31e58d(0x153)](_0x5a0391,{'range':_0x2c16bf}),_0x49355d[_0x31e58d(0x153)](_0x47c548,{'range':_0x52a84d})):(_0x49355d[_0x31e58d(0x12b)](_0x5a0391,{'range':_0x2c16bf,'usingOperation':!0x0}),_0x49355d[_0x31e58d(0x12b)](_0x47c548,{'range':_0x52a84d,'usingOperation':!0x0}));}
|
|
23
|
+
const _0x31c1ab=_0x5a21;(function(_0x12bdca,_0x256c3f){const _0x10f424=_0x5a21,_0x319df9=_0x12bdca();while(!![]){try{const _0x20efa7=parseInt(_0x10f424(0x1a5))/0x1*(-parseInt(_0x10f424(0x1d1))/0x2)+-parseInt(_0x10f424(0x19c))/0x3+-parseInt(_0x10f424(0x204))/0x4*(-parseInt(_0x10f424(0x227))/0x5)+-parseInt(_0x10f424(0x1cb))/0x6*(-parseInt(_0x10f424(0x206))/0x7)+parseInt(_0x10f424(0x1c1))/0x8*(-parseInt(_0x10f424(0x1d8))/0x9)+parseInt(_0x10f424(0x1bb))/0xa*(-parseInt(_0x10f424(0x1b8))/0xb)+parseInt(_0x10f424(0x1a0))/0xc;if(_0x20efa7===_0x256c3f)break;else _0x319df9['push'](_0x319df9['shift']());}catch(_0x13c3a1){_0x319df9['push'](_0x319df9['shift']());}}}(_0xaccb,0x921ce));import{Plugin as _0x38924}from'ckeditor5/src/core.js';import{global as _0x331055,DomEmitterMixin as _0x547c44}from'ckeditor5/src/utils.js';function _0xaccb(){const _0x33a0e6=['change','isPremiumPlugin','orderNumber','createUIElement','startsWith','ck-user__marker_hovered','tableCell','6MmDjYH','delete','createUserMarkerOperations','ck-user__selection','$graveyard','isInline','2hZZjRB','mapper','user:position:','document','user:range:','size','isOfficialPlugin','9xezGZI','removeClass','UserMarkers','removeMarker','createRange','toDomElement','highest','element','color','outerHTML','parent','toRange','updateMarker','enqueueChange','keydown','has','mouseleave','remove','Escape','checkChild','newRange','batch','update:user:range','user:position','view','render','isSimilar','isObject','get','hasContent','hasDomSelection','commands','plugins','innerHTML','markerName','applyOperation','markers','reconvertMarker','add','getStart','oldRange','split','markerNameToElements','detach','592ZRePLA','getUserBySessionId','1335117MlrIer','setAttribute','markerRange','user:','span','for','pluginName','getCustomProperty','$text','_createdBatches','start','setCustomProperty','userPositionMarker','type','editingDowncast','model','conversion','markerToHighlight','classList','_domEmitter','end','destroy','name','ck-user__marker\x20','editing','marker','spellcheck','<span\x20class=\x22ck-user__marker-line\x22\x20contenteditable=\x22false\x22><span\x20class=\x22ck-user__marker-dot\x22></span></span>','getContainedElement','afterInit','ck-user__marker-tooltip','getFirstRange','rootName','16840ruqPGP','getRange','2937666NqfXzK','addMarker','clear','isLimit','26055336UAJick','getNearestSelectionRange','markerToElement','false','init','1095923wErwiC','createElement','fromRange','schema','undo','deletionPosition','addEventListener','stopListening','isCollapsed','mySessionId','requires','getSelectionClass','set','listenTo','selection','user:range','isDocumentOperation','textContent','mouseenter','1960849kZPssc','data-session-id','editor','10sgFVwl','getAttribute','root','contenteditable','change:range','getPositions','68728hXOrgP','nodeAfter','getMarkerClass'];_0xaccb=function(){return _0x33a0e6;};return _0xaccb();}import{Sessions as _0x5ab48d}from'./sessions.js';import{ModelLiveRange as _0x3d72ec}from'ckeditor5/src/engine.js';import'../../theme/usermarkers.css';function _0x5a21(_0x523917,_0x5491c0){const _0xaccb1a=_0xaccb();return _0x5a21=function(_0x5a2127,_0x10e4d8){_0x5a2127=_0x5a2127-0x19c;let _0x5aea07=_0xaccb1a[_0x5a2127];return _0x5aea07;},_0x5a21(_0x523917,_0x5491c0);}export class UserMarkers extends _0x38924{[_0x31c1ab(0x219)]=new(_0x547c44())();static get[_0x31c1ab(0x1af)](){return[_0x5ab48d];}static get[_0x31c1ab(0x20c)](){const _0x41ed0e=_0x31c1ab;return _0x41ed0e(0x1da);}static get[_0x31c1ab(0x1d7)](){return!0x0;}static get[_0x31c1ab(0x1c5)](){return!0x0;}[_0x31c1ab(0x1a4)](){const _0x17901d=_0x31c1ab,_0x1b4204=this[_0x17901d(0x1ba)],_0x572388=_0x1b4204[_0x17901d(0x1f8)][_0x17901d(0x1f4)](_0x5ab48d);_0x1b4204[_0x17901d(0x216)][_0x17901d(0x20b)](_0x17901d(0x214))[_0x17901d(0x1a2)]({'model':_0x17901d(0x1ef),'view':(_0x225bab,{writer:_0x162673})=>function(_0x2ac9b5,_0x55cb05,_0x23b487,_0x39619b){const _0x1b73f7=_0x17901d,_0x397591=_0x2ac9b5[_0x1b73f7(0x1fa)][_0x1b73f7(0x201)](':')[0x2],_0x207df8=_0x23b487[_0x1b73f7(0x205)](_0x397591);if(!_0x207df8||_0x397591===_0x23b487[_0x1b73f7(0x1ae)])return;if(!_0x39619b[_0x1b73f7(0x215)][_0x1b73f7(0x1a8)][_0x1b73f7(0x1eb)](_0x2ac9b5[_0x1b73f7(0x208)][_0x1b73f7(0x210)],_0x1b73f7(0x20e)))return;const _0x12ccfb={'class':_0x1b73f7(0x21d)+_0x207df8[_0x1b73f7(0x1e0)][_0x1b73f7(0x1c3)](),'data-name':_0x207df8[_0x1b73f7(0x21c)],'data-session-id':_0x397591},_0x44b818=_0x39619b[_0x1b73f7(0x215)][_0x1b73f7(0x1fc)][_0x1b73f7(0x1f4)](_0x2ac9b5[_0x1b73f7(0x1fa)]),_0x286867=_0x44b818[_0x1b73f7(0x1ff)](),_0x35c806=_0x286867[_0x1b73f7(0x1c2)],_0x4aa8b9=_0x39619b[_0x1b73f7(0x215)][_0x1b73f7(0x1a8)];if(_0x35c806&&_0x4aa8b9[_0x1b73f7(0x1f3)](_0x35c806)&&_0x4aa8b9[_0x1b73f7(0x1d0)](_0x35c806)&&!_0x39619b[_0x1b73f7(0x215)][_0x1b73f7(0x1fc)][_0x1b73f7(0x1f4)](_0x1b73f7(0x1d5)+_0x397591)[_0x1b73f7(0x228)]()[_0x1b73f7(0x1ad)])return;const _0x4f14bd=_0x286867[_0x1b73f7(0x1e2)];return _0x39619b[_0x1b73f7(0x215)][_0x1b73f7(0x1a8)][_0x1b73f7(0x19f)](_0x4f14bd)&&!_0x39619b[_0x1b73f7(0x215)][_0x1b73f7(0x1f5)](_0x4f14bd)&&(_0x12ccfb[_0x1b73f7(0x1be)]=!0x1),function(_0x551083,_0x42ee54,_0x5d3d91){const _0x455cdd=_0x1b73f7,_0x1fb300=_0x551083[_0x455cdd(0x1c7)](_0x455cdd(0x20a),_0x42ee54);return _0x551083[_0x455cdd(0x211)](_0x455cdd(0x212),!0x0,_0x1fb300),_0x1fb300[_0x455cdd(0x1f1)]=function(_0x3cccd7){const _0x148193=_0x455cdd,_0x39b40b=this[_0x148193(0x1dd)](_0x3cccd7),_0x5b84d4=document[_0x148193(0x1a6)](_0x148193(0x20a));return _0x5b84d4[_0x148193(0x218)][_0x148193(0x1fe)](_0x148193(0x224)),_0x5b84d4[_0x148193(0x207)](_0x148193(0x1be),_0x148193(0x1a3)),_0x5b84d4[_0x148193(0x207)](_0x148193(0x220),_0x148193(0x1a3)),_0x5b84d4[_0x148193(0x1b6)]=_0x5d3d91[_0x148193(0x21c)],_0x39b40b[_0x148193(0x1f9)]=_0x148193(0x221)+_0x5b84d4[_0x148193(0x1e1)]+'',_0x39b40b[_0x148193(0x1ab)](_0x148193(0x1b7),()=>{const _0x4f4bcb=_0x148193;_0x39b40b[_0x4f4bcb(0x218)][_0x4f4bcb(0x1fe)](_0x4f4bcb(0x1c9));}),_0x39b40b[_0x148193(0x1ab)](_0x148193(0x1e8),()=>{const _0x420272=_0x148193;_0x39b40b[_0x420272(0x218)][_0x420272(0x1e9)](_0x420272(0x1c9));}),_0x39b40b;},_0x1fb300[_0x455cdd(0x1f2)]=function(_0x4e1180){const _0xdf32de=_0x455cdd;return!(!this[_0xdf32de(0x20d)](_0xdf32de(0x212))||!_0x4e1180[_0xdf32de(0x20d)](_0xdf32de(0x212))||this[_0xdf32de(0x1bc)](_0xdf32de(0x1b9))!=_0x4e1180[_0xdf32de(0x1bc)](_0xdf32de(0x1b9)));},_0x1fb300;}(_0x55cb05,_0x12ccfb,_0x207df8);}(_0x225bab,_0x162673,_0x572388,_0x1b4204)}),_0x1b4204[_0x17901d(0x216)][_0x17901d(0x20b)](_0x17901d(0x214))[_0x17901d(0x217)]({'model':_0x17901d(0x1b4),'view':_0x3a582a=>function(_0x1b4748,_0x56d250){const _0x28dcc0=_0x17901d,_0x365a87=_0x1b4748[_0x28dcc0(0x1fa)][_0x28dcc0(0x201)](':')[0x2];if(_0x365a87===_0x56d250[_0x28dcc0(0x1ae)])return null;const _0x2b23a2=_0x56d250[_0x28dcc0(0x205)](_0x365a87);if(!_0x2b23a2)return{'id':_0x365a87,'classes':[]};return{'id':_0x365a87,'classes':[_0x28dcc0(0x1ce),_0x2b23a2[_0x28dcc0(0x1e0)][_0x28dcc0(0x1b0)]()],'attributes':{'data-session-id':_0x365a87},'priority':0x7d0+_0x2b23a2[_0x28dcc0(0x1c6)]};}(_0x3a582a,_0x572388)}),function(_0x1b82ab){const _0x43425b=_0x17901d,_0x1f6435=_0x1b82ab[_0x43425b(0x215)],_0x16f9d6=new Map(),_0x16107c=_0x1b82ab[_0x43425b(0x1f8)][_0x43425b(0x1f4)](_0x5ab48d);_0x1f6435[_0x43425b(0x1fc)]['on'](_0x43425b(0x1ee),(_0x7c2e21,_0x786bad,_0xf6e061,_0x5e0e2e)=>{const _0x53181c=_0x43425b;if(!_0x5e0e2e&&_0x16f9d6[_0x53181c(0x1f4)](_0x786bad[_0x53181c(0x21c)]))return _0x16f9d6[_0x53181c(0x1f4)](_0x786bad[_0x53181c(0x21c)])[_0x53181c(0x203)](),void _0x16f9d6[_0x53181c(0x1cc)](_0x786bad[_0x53181c(0x21c)]);const _0x4479b7=_0x786bad[_0x53181c(0x21c)][_0x53181c(0x201)](':')[0x2];if(_0x4479b7===_0x16107c[_0x53181c(0x1ae)])return;const _0x5ef428=_0x53181c(0x1d3)+_0x4479b7;_0x1f6435[_0x53181c(0x1fc)][_0x53181c(0x1e7)](_0x5ef428)&&_0x1b82ab[_0x53181c(0x21e)][_0x53181c(0x1fd)](_0x5ef428),_0x786bad['on'](_0x53181c(0x1bf),(_0x47b162,_0x3000c0,_0xf32f97)=>{const _0x6d1d70=_0x53181c;if(_0x6d1d70(0x1cf)!=_0x3000c0[_0x6d1d70(0x1bd)][_0x6d1d70(0x226)]&&_0x6d1d70(0x1cf)==_0x786bad[_0x6d1d70(0x228)]()[_0x6d1d70(0x1bd)][_0x6d1d70(0x226)]&&!_0x16f9d6[_0x6d1d70(0x1e7)](_0x786bad[_0x6d1d70(0x21c)])){const _0x4fe083=_0x1f6435[_0x6d1d70(0x1a8)][_0x6d1d70(0x1a1)](_0xf32f97[_0x6d1d70(0x1aa)]);if(_0x4fe083){const _0x2073bc=_0x3d72ec[_0x6d1d70(0x1a7)](_0x4fe083);_0x16f9d6[_0x6d1d70(0x1b1)](_0x786bad[_0x6d1d70(0x21c)],_0x2073bc),_0x2073bc['on'](_0x6d1d70(0x1bf),(_0x3e69cb,_0x41b6ab,_0x15ea4f)=>{const _0x13dab3=_0x6d1d70;if(_0x13dab3(0x1cf)==_0x2073bc[_0x13dab3(0x1bd)][_0x13dab3(0x226)]){const _0x24df71=_0x1f6435[_0x13dab3(0x1a8)][_0x13dab3(0x1a1)](_0x15ea4f[_0x13dab3(0x1aa)]);_0x24df71?(_0x2073bc[_0x13dab3(0x210)]=_0x24df71[_0x13dab3(0x210)],_0x2073bc[_0x13dab3(0x21a)]=_0x24df71[_0x13dab3(0x21a)]):(_0x16f9d6[_0x13dab3(0x1cc)](_0x786bad[_0x13dab3(0x21c)]),_0x2073bc[_0x13dab3(0x203)]());}});}}});}),_0x1f6435[_0x43425b(0x1d4)]['on'](_0x43425b(0x1c4),()=>{const _0xa49591=_0x43425b;_0x16f9d6[_0xa49591(0x1d6)]>0x0&&_0x1f6435[_0xa49591(0x1e5)]({'isUndoable':!0x1},_0x4eee43=>{const _0x58b9cd=_0xa49591;for(const [_0x443092,_0x4e70be]of _0x16f9d6)_0x58b9cd(0x1cf)==_0x1f6435[_0x58b9cd(0x1fc)][_0x58b9cd(0x1f4)](_0x443092)[_0x58b9cd(0x228)]()[_0x58b9cd(0x1bd)][_0x58b9cd(0x226)]&&(Z(_0x443092[_0x58b9cd(0x201)](':')[0x2],_0x4e70be[_0x58b9cd(0x1e3)](),_0x1f6435,_0x4eee43),_0x4e70be[_0x58b9cd(0x203)]());_0x16f9d6[_0x58b9cd(0x19e)]();});});}(_0x1b4204),this[_0x17901d(0x219)][_0x17901d(0x1b2)](_0x331055[_0x17901d(0x1d4)],_0x17901d(0x1e6),(_0x4869bb,{key:_0x2aa4cf})=>{const _0x203c8d=_0x17901d;_0x203c8d(0x1ea)===_0x2aa4cf&&function(_0x4953f8){const _0x58501c=_0x203c8d;_0x4953f8[_0x58501c(0x21e)][_0x58501c(0x1f0)][_0x58501c(0x1c4)](_0x3e46cf=>{const _0x585432=_0x58501c;for(const _0x2ea7df of _0x4953f8[_0x585432(0x215)][_0x585432(0x1fc)]){if(!_0x2ea7df[_0x585432(0x21c)][_0x585432(0x1c8)](_0x585432(0x1ef)))continue;const _0x10b73b=_0x4953f8[_0x585432(0x21e)][_0x585432(0x1d2)][_0x585432(0x202)](_0x2ea7df[_0x585432(0x21c)]);if(_0x10b73b){for(const _0x2af604 of _0x10b73b)_0x3e46cf[_0x585432(0x1d9)](_0x585432(0x1c9),_0x2af604);}}});}(_0x1b4204);},{'useCapture':!0x0});}[_0x31c1ab(0x223)](){const _0x15072c=_0x31c1ab,_0x1a8d03=this[_0x15072c(0x1ba)],_0x1102a5=_0x1a8d03[_0x15072c(0x1f7)][_0x15072c(0x1f4)](_0x15072c(0x1a9));_0x1102a5&&_0x1a8d03[_0x15072c(0x215)]['on'](_0x15072c(0x1fb),(_0x1cae65,_0x318378)=>{const _0x2a7a5e=_0x15072c,_0x35d0db=_0x318378[0x0];if(!_0x35d0db[_0x2a7a5e(0x1b5)])return;if(_0x2a7a5e(0x21f)!=_0x35d0db[_0x2a7a5e(0x213)]||!_0x35d0db[_0x2a7a5e(0x21c)][_0x2a7a5e(0x1c8)](_0x2a7a5e(0x209)))return;const _0xd89226=_0x35d0db[_0x2a7a5e(0x1ed)];_0x1102a5[_0x2a7a5e(0x20f)][_0x2a7a5e(0x1e7)](_0xd89226)&&(_0x35d0db[_0x2a7a5e(0x1ec)]=_0x35d0db[_0x2a7a5e(0x200)]?_0x1a8d03[_0x2a7a5e(0x215)][_0x2a7a5e(0x1dc)](_0x35d0db[_0x2a7a5e(0x200)][_0x2a7a5e(0x210)],_0x35d0db[_0x2a7a5e(0x200)][_0x2a7a5e(0x21a)]):null);},{'priority':_0x15072c(0x1de)});}[_0x31c1ab(0x21b)](){const _0x1f306d=_0x31c1ab;return this[_0x1f306d(0x219)][_0x1f306d(0x1ac)](),super[_0x1f306d(0x21b)]();}[_0x31c1ab(0x1cd)](){const _0x476e8e=_0x31c1ab,_0x13f380=this[_0x476e8e(0x1ba)],_0x4f0c68=_0x13f380[_0x476e8e(0x215)][_0x476e8e(0x1d4)],_0x427135=_0x13f380[_0x476e8e(0x1f8)][_0x476e8e(0x1f4)](_0x5ab48d);_0x13f380[_0x476e8e(0x215)][_0x476e8e(0x1e5)]({'isUndoable':!0x1},_0x3b82cd=>{const _0x5c4783=_0x476e8e,_0x3368a6=_0x5c4783(0x1d5)+_0x427135[_0x5c4783(0x1ae)],_0x2c7250=_0x5c4783(0x1d3)+_0x427135[_0x5c4783(0x1ae)],_0x37933e=_0x13f380[_0x5c4783(0x215)][_0x5c4783(0x1fc)][_0x5c4783(0x1e7)](_0x3368a6);_0x13f380[_0x5c4783(0x21e)][_0x5c4783(0x1f0)][_0x5c4783(0x1f6)]?Z(_0x427135[_0x5c4783(0x1ae)],_0x4f0c68[_0x5c4783(0x1b3)][_0x5c4783(0x225)](),_0x13f380[_0x5c4783(0x215)],_0x3b82cd):_0x37933e&&(_0x3b82cd[_0x5c4783(0x1db)](_0x3368a6),_0x3b82cd[_0x5c4783(0x1db)](_0x2c7250));});}}function Z(_0x30b938,_0x5adc31,_0x1fdf96,_0x46398c){const _0x15a72f=_0x31c1ab,_0x3f0e35=_0x15a72f(0x1d5)+_0x30b938,_0x509bb6=_0x15a72f(0x1d3)+_0x30b938,_0x4c2bbb=_0x5adc31[_0x15a72f(0x222)]();let _0x3278f6=_0x5adc31[_0x15a72f(0x210)];if(_0x4c2bbb&&_0x4c2bbb['is'](_0x15a72f(0x1df),_0x15a72f(0x1ca))){const _0x3f9f79=function(_0x5f35aa,_0x9be7ff){const _0x156318=_0x15a72f;for(const _0x2cb9c4 of _0x5f35aa[_0x156318(0x1c0)]())if(_0x9be7ff[_0x156318(0x1a8)][_0x156318(0x1eb)](_0x2cb9c4,_0x156318(0x20e)))return _0x2cb9c4;}(_0x5adc31,_0x1fdf96);_0x3f9f79&&(_0x3278f6=_0x3f9f79,_0x5adc31=_0x46398c[_0x15a72f(0x1dc)](_0x3278f6));}const _0x3bc4c9=_0x46398c[_0x15a72f(0x1dc)](_0x3278f6);_0x1fdf96[_0x15a72f(0x1fc)][_0x15a72f(0x1e7)](_0x3f0e35)?(_0x46398c[_0x15a72f(0x1e4)](_0x3f0e35,{'range':_0x5adc31}),_0x46398c[_0x15a72f(0x1e4)](_0x509bb6,{'range':_0x3bc4c9})):(_0x46398c[_0x15a72f(0x19d)](_0x3f0e35,{'range':_0x5adc31,'usingOperation':!0x0}),_0x46398c[_0x15a72f(0x19d)](_0x509bb6,{'range':_0x3bc4c9,'usingOperation':!0x0}));}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>
|
|
23
|
+
const _0x316d29=_0x50bd;function _0x5e53(){const _0x5683fa=['3326225FRlMgB','addToReconnectionStack','connected','connection','Connected\x20users\x20limit\x20exceeded','change:me','removeFromReconnectionStack','online','error','requires','then','disconnect','real-time-collaboration','isOfficialPlugin','12UABzMn','bind','plugins','_reconnect','constructor','websocketgateway-missing-token','3744MIAsqq','all','cloudservices-init','initialReconnectionInterval','isPremiumPlugin','config','685475rsRLZW','cloudServices.connectionTimeout','webSocketUrl','state','websocketgateway-invalid-plugin-interface','10547432dkEBEE','_shouldPluginsReconnect','DISCONNECTED','WebSocketGateway','websocketgateway-plugin-already-registered','init','delete','CONNECTED','1120KLPtDS','pluginName','function','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.','782790sISGnk','set','connect','_reconnectionStack','CONNECTING','code','offline','stopListening','cloudservices-reconnection-error','from','catch','context','add','token','get','showWarning','2715718XVKUDu','9PCCbce','_isBrowserOffline','limitExceeded','destroy','websocketgateway-missing-websocket-url','isInReconnectionStack','reconnect','listenTo','1026212lGtaAU','_domEmitter','CloudServices','has','cloudServices.requestTimeout','define'];_0x5e53=function(){return _0x5683fa;};return _0x5e53();}(function(_0x38d0dc,_0x274731){const _0x26c4ca=_0x50bd,_0x5dce3b=_0x38d0dc();while(!![]){try{const _0x584a28=-parseInt(_0x26c4ca(0x181))/0x1+parseInt(_0x26c4ca(0x1a2))/0x2+parseInt(_0x26c4ca(0x1bf))/0x3*(-parseInt(_0x26c4ca(0x1ab))/0x4)+-parseInt(_0x26c4ca(0x18e))/0x5*(-parseInt(_0x26c4ca(0x1c5))/0x6)+-parseInt(_0x26c4ca(0x1b1))/0x7+-parseInt(_0x26c4ca(0x186))/0x8*(-parseInt(_0x26c4ca(0x1a3))/0x9)+parseInt(_0x26c4ca(0x192))/0xa;if(_0x584a28===_0x274731)break;else _0x5dce3b['push'](_0x5dce3b['shift']());}catch(_0x2d3cdd){_0x5dce3b['push'](_0x5dce3b['shift']());}}}(_0x5e53,0xacb99));import{ContextPlugin as _0x2ae508}from'ckeditor5/src/core.js';function _0x50bd(_0x41cec5,_0x11690a){const _0x5e53b4=_0x5e53();return _0x50bd=function(_0x50bdad,_0x1c0d57){_0x50bdad=_0x50bdad-0x180;let _0x3e8f34=_0x5e53b4[_0x50bdad];return _0x3e8f34;},_0x50bd(_0x41cec5,_0x11690a);}import{DomEmitterMixin as _0x4893b2,CKEditorError as _0x1036ac}from'ckeditor5/src/utils.js';import{WebSocketGateway as _0x351175,WEB_SOCKET_GATEWAY_STATES as _0x3735c5}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';import{Notification as _0x462617}from'ckeditor5/src/ui.js';class n extends _0x2ae508{static [_0x316d29(0x189)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x351175)());static [_0x316d29(0x1c8)]=0x3e8;[_0x316d29(0x1b4)];[_0x316d29(0x195)];[_0x316d29(0x187)];[_0x316d29(0x1ac)];static get[_0x316d29(0x1ba)](){const _0x24f4c9=_0x316d29;return[_0x24f4c9(0x1ad),_0x462617];}static get[_0x316d29(0x18f)](){const _0x3bd32e=_0x316d29;return _0x3bd32e(0x189);}static get[_0x316d29(0x1be)](){return!0x0;}static get[_0x316d29(0x1c9)](){return!0x0;}constructor(_0x1273fe){const _0x707e3a=_0x316d29;super(_0x1273fe),this[_0x707e3a(0x193)](_0x707e3a(0x184),_0x3735c5[_0x707e3a(0x18d)]),this[_0x707e3a(0x193)](_0x707e3a(0x1a4),!0x1),this[_0x707e3a(0x195)]=new Set(),this[_0x707e3a(0x187)]=!0x1,this[_0x707e3a(0x1ac)]=new(_0x4893b2())();}[_0x316d29(0x18b)](){const _0x20a21a=_0x316d29,_0x4090b0=this[_0x20a21a(0x19d)],_0x4f1db0=_0x4090b0[_0x20a21a(0x1c1)][_0x20a21a(0x1a0)](_0x20a21a(0x1ad)),_0x12c996=_0x4090b0[_0x20a21a(0x1c1)][_0x20a21a(0x1a0)](_0x462617);if(!_0x4f1db0[_0x20a21a(0x19f)])throw new _0x1036ac(_0x20a21a(0x1c4),this);if(!_0x4f1db0[_0x20a21a(0x183)])throw new _0x1036ac(_0x20a21a(0x1a7),this);return this[_0x20a21a(0x1ac)][_0x20a21a(0x1aa)](window,_0x20a21a(0x198),()=>this[_0x20a21a(0x1a4)]=!0x0),this[_0x20a21a(0x1ac)][_0x20a21a(0x1aa)](window,_0x20a21a(0x1b8),()=>this[_0x20a21a(0x1a4)]=!0x1),this[_0x20a21a(0x19d)][_0x20a21a(0x180)][_0x20a21a(0x1b0)](_0x20a21a(0x182),0xa),this[_0x20a21a(0x19d)][_0x20a21a(0x180)][_0x20a21a(0x1b0)](_0x20a21a(0x1af),0x14),n[_0x20a21a(0x189)][_0x20a21a(0x194)](_0x4f1db0[_0x20a21a(0x19f)],_0x4f1db0[_0x20a21a(0x183)],{'timeout':0x3e8*this[_0x20a21a(0x19d)][_0x20a21a(0x180)][_0x20a21a(0x1a0)](_0x20a21a(0x182)),'requestTimeout':0x3e8*this[_0x20a21a(0x19d)][_0x20a21a(0x180)][_0x20a21a(0x1a0)](_0x20a21a(0x1af))})[_0x20a21a(0x1bb)](_0x2b7e08=>{const _0x42bc2f=_0x20a21a;if(this[_0x42bc2f(0x1b4)]=_0x2b7e08,this[_0x42bc2f(0x1c0)](_0x42bc2f(0x184))['to'](_0x2b7e08,_0x42bc2f(0x184),this,_0x42bc2f(0x1a4),(_0x256ecc,_0x43eadd)=>(_0x42bc2f(0x1b3)!==_0x256ecc&&(this[_0x42bc2f(0x187)]=!0x0),_0x43eadd||_0x256ecc!==_0x3735c5[_0x42bc2f(0x18d)]?_0x3735c5[_0x42bc2f(0x188)]:this[_0x42bc2f(0x184)]==_0x3735c5[_0x42bc2f(0x188)]&&this[_0x42bc2f(0x187)]?(this[_0x42bc2f(0x187)]=!0x1,this[_0x42bc2f(0x1c2)](),_0x3735c5[_0x42bc2f(0x196)]):_0x3735c5[_0x42bc2f(0x18d)])),this[_0x42bc2f(0x1b4)]['on'](_0x42bc2f(0x1b9),(_0x3954af,_0x3c8485)=>{const _0x255389=_0x42bc2f;if(_0x255389(0x1a5)!==_0x3c8485[_0x255389(0x197)])throw console[_0x255389(0x1b9)](_0x3c8485),new _0x1036ac(_0x255389(0x1c7),null,{'originalError':_0x3c8485});_0x12c996[_0x255389(0x1a1)](_0x255389(0x191),{'title':_0x255389(0x1b5),'namespace':_0x255389(0x1bd)});}),!_0x2b7e08['me'])return new Promise(_0x42a482=>_0x2b7e08['on'](_0x42bc2f(0x1b6),_0x42a482));})[_0x20a21a(0x19c)](_0x2440fc=>{const _0x1b54fd=_0x20a21a;throw console[_0x1b54fd(0x1b9)](_0x2440fc),new _0x1036ac(_0x1b54fd(0x1c7),null,{'originalError':_0x2440fc});});}[_0x316d29(0x1b2)](_0x1e20c9){const _0xfae7c7=_0x316d29;if(_0xfae7c7(0x190)!=typeof _0x1e20c9[_0xfae7c7(0x1a9)])throw new _0x1036ac(_0xfae7c7(0x185),this);if(this[_0xfae7c7(0x1a8)](_0x1e20c9))throw new _0x1036ac(_0xfae7c7(0x18a),this,{'name':_0x1e20c9[_0xfae7c7(0x1c3)][_0xfae7c7(0x18f)]});this[_0xfae7c7(0x195)][_0xfae7c7(0x19e)](_0x1e20c9);}[_0x316d29(0x1b7)](_0x2ab8d2){const _0x125599=_0x316d29;this[_0x125599(0x195)][_0x125599(0x18c)](_0x2ab8d2);}[_0x316d29(0x1a8)](_0x3c739a){const _0x3c5f7c=_0x316d29;return this[_0x3c5f7c(0x195)][_0x3c5f7c(0x1ae)](_0x3c739a);}[_0x316d29(0x1c2)](){const _0x459dc2=_0x316d29;return this[_0x459dc2(0x1b4)][_0x459dc2(0x1a9)]()[_0x459dc2(0x1bb)](()=>Promise[_0x459dc2(0x1c6)](Array[_0x459dc2(0x19b)](this[_0x459dc2(0x195)],_0x2863af=>_0x2863af[_0x459dc2(0x1a9)]())))[_0x459dc2(0x1bb)](()=>this[_0x459dc2(0x184)]=_0x3735c5[_0x459dc2(0x18d)])[_0x459dc2(0x19c)](_0xed74fc=>{const _0x1c81f7=_0x459dc2;throw console[_0x1c81f7(0x1b9)](_0xed74fc),new _0x1036ac(_0x1c81f7(0x19a),this[_0x1c81f7(0x19d)]);});}[_0x316d29(0x1bc)](){const _0x5675e9=_0x316d29;this[_0x5675e9(0x1b4)]&&this[_0x5675e9(0x1b4)][_0x5675e9(0x1bc)](),this[_0x5675e9(0x184)]=_0x3735c5[_0x5675e9(0x188)],this[_0x5675e9(0x1ac)][_0x5675e9(0x199)]();}[_0x316d29(0x1a6)](){const _0x2502f0=_0x316d29;this[_0x2502f0(0x1bc)](),super[_0x2502f0(0x1a6)]();}}export{n as WebSocketGateway};
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>_0x4f3e2e)());[_0x22a1bf(0xf6)];[_0x22a1bf(0xdd)];[_0x22a1bf(0xd3)];[_0x22a1bf(0x12f)];static get[_0x22a1bf(0xca)](){const _0x412cac=_0x22a1bf;return[_0x563aac,_0x8e5a2d,_0x412cac(0x13a),_0x148a42,_0x540d3d];}static get[_0x22a1bf(0xd2)](){const _0xe921f2=_0x22a1bf;return _0xe921f2(0xf5);}static get[_0x22a1bf(0x125)](){return!0x0;}static get[_0x22a1bf(0xe0)](){return!0x0;}constructor(_0x3d5111){const _0x15c828=_0x22a1bf;super(_0x3d5111);const _0x49cbdd=this[_0x15c828(0x106)][_0x15c828(0xd5)][_0x15c828(0x11e)](_0x15c828(0xf8));this[_0x15c828(0xf6)]=null,this[_0x15c828(0xdd)]=this[_0x15c828(0x106)][_0x15c828(0xe9)][_0x15c828(0x11e)](_0x15c828(0x127)),this[_0x15c828(0xd3)]=new c[(_0x15c828(0x12a))](_0x49cbdd);}async[_0x22a1bf(0xdc)](){const _0x168578=_0x22a1bf,_0x33e6ba=this[_0x168578(0x106)][_0x168578(0xe9)][_0x168578(0x11e)](_0x8e5a2d),_0x42b6d0=_0x33e6ba[_0x168578(0xee)],_0x32d790=this[_0x168578(0x106)][_0x168578(0xe9)][_0x168578(0x11e)](_0x563aac);this[_0x168578(0xdd)][_0x168578(0x135)]({'history':_0x42b6d0,'getLatestVersion':()=>this[_0x168578(0x11a)](),'getCurrentRevisionId':()=>_0x33e6ba[_0x168578(0xd6)]});const _0x5593c7=this[_0x168578(0x106)][_0x168578(0xd5)][_0x168578(0x11e)](_0x168578(0xfd))||_0x3a254c,_0x12713a=await _0x58fe11[_0x168578(0x10a)](_0x32d790[_0x168578(0xd0)],_0x5593c7);this[_0x168578(0x106)][_0x168578(0xe9)][_0x168578(0x11e)](_0x168578(0x13a))[_0x168578(0x129)]={'getRevision':async({revisionId:_0xbe817f})=>(await this[_0x168578(0x10b)](),await this[_0x168578(0xd3)][_0x168578(0xfe)](_0xbe817f)),'updateRevisions':async _0x56fd0f=>{const _0x589a75=_0x168578;await this[_0x589a75(0x10b)]();const _0x2eb2e6=this[_0x589a75(0xdd)][_0x589a75(0xec)];if(_0x12713a&&0x1===_0x56fd0f[_0x589a75(0x107)]&&_0x56fd0f[0x0]['id']===_0x2eb2e6['id'])return _0x56fd0f;for(const _0x50ead4 of _0x56fd0f)_0x50ead4['id']===_0x2eb2e6['id']&&(_0x50ead4[_0x589a75(0x128)]=_0x50ead4[_0x589a75(0xce)]===_0x50ead4[_0x589a75(0xf0)]);return this[_0x589a75(0xd3)][_0x589a75(0x10f)](_0x56fd0f,this[_0x589a75(0xf6)])[_0x589a75(0xeb)](_0x22264e=>(this[_0x589a75(0xf6)]=_0x22264e,_0x56fd0f))[_0x589a75(0x117)](_0x20ba06=>{const _0x306017=_0x589a75;if(P(_0x20ba06)||_0x306017(0x121)===_0x20ba06[_0x306017(0xf2)]&&void 0x0!==_0x20ba06[_0x306017(0xe6)][_0x306017(0x13b)]){for(const _0x281fb6 of _0x56fd0f){!this[_0x306017(0xdd)][_0x306017(0x11d)][_0x306017(0xfe)](_0x281fb6['id'])||this[_0x306017(0xdd)][_0x306017(0x116)](_0x281fb6['id'],_0x281fb6,!0x1);}if(P(_0x20ba06))throw _0x20ba06;return _0x56fd0f;}throw _0x20ba06;});}},this[_0x168578(0xf4)](this[_0x168578(0xd3)],_0x168578(0xe3),(_0x24de01,{revisionsData:_0x590efc,requestId:_0x47dd11})=>{const _0x1c3cd7=_0x168578;Math[_0x1c3cd7(0xc9)](..._0x590efc[_0x1c3cd7(0xcf)](_0x236436=>_0x236436[_0x1c3cd7(0xf0)]))>this[_0x1c3cd7(0xd7)]()-0x1?this[_0x1c3cd7(0x11a)]()[_0x1c3cd7(0xeb)](()=>{const _0xc6af41=_0x1c3cd7;this[_0xc6af41(0xe2)](_0x590efc,_0x47dd11);}):this[_0x1c3cd7(0xe2)](_0x590efc,_0x47dd11);});const {revisions:_0x5b2525,requestId:_0x53a133}=await this[_0x168578(0xd3)][_0x168578(0x133)](_0x32d790[_0x168578(0xd0)]);_0x32d790[_0x168578(0xf9)](this),this[_0x168578(0xf6)]=_0x53a133,await this[_0x168578(0xdb)](_0x5b2525);for(const _0x13d30c of _0x5b2525)this[_0x168578(0xdd)][_0x168578(0x114)](_0x13d30c);this[_0x168578(0xf4)](_0x33e6ba,_0x168578(0x115),(_0x13c570,_0x43144,_0x1c7f84)=>{const _0x3075f7=_0x168578;_0x1c7f84&&(this[_0x3075f7(0x12f)]=_0x33e6ba[_0x3075f7(0x10d)],_0x13c570[_0x3075f7(0x11b)]());}),this[_0x168578(0xdd)][_0x168578(0xc8)](_0x168578(0x102))['to'](_0x32d790,_0x168578(0x132),_0x1d135d=>_0x1d135d===_0x1de02b[_0x168578(0x119)]);}async[_0x22a1bf(0x10e)](){const _0x38359a=_0x22a1bf,_0x30a3c8=this[_0x38359a(0x106)][_0x38359a(0xe9)][_0x38359a(0x11e)](_0x563aac),_0x116177=this[_0x38359a(0x106)][_0x38359a(0xe9)][_0x38359a(0x11e)](_0x8e5a2d),_0x231011=async()=>{const _0x389a05=_0x38359a,_0x5d887c=this[_0x389a05(0xdd)][_0x389a05(0xec)],_0x17b4c7=_0x5d887c['id'],_0x383bfb=_0x17b4c7!==_0x116177[_0x389a05(0xd6)];if(_0x383bfb){const _0x2c09e3=_0x116177[_0x389a05(0x10d)]-this[_0x389a05(0x12f)],_0x406ea7=this[_0x389a05(0xd7)]();this[_0x389a05(0xdd)][_0x389a05(0x12e)][_0x389a05(0x137)]();if(_0x5d887c[_0x389a05(0xf0)]+_0x2c09e3!==_0x406ea7){const _0x5aa0f8=_0x5d887c[_0x389a05(0xce)]+_0x2c09e3,_0x4f0103=this[_0x389a05(0x106)][_0x389a05(0xe9)][_0x389a05(0x11e)](_0x540d3d),_0x4b5ae9=this[_0x389a05(0xdd)][_0x389a05(0x12d)]({'revision':_0x5d887c,'from':_0x5aa0f8,'to':_0x406ea7});_0x4b5ae9['id']=_0x5d887c['id'];const _0x42574d=_0x4b5ae9[_0x389a05(0xd1)][_0x389a05(0xcf)](_0xa1e9e2=>_0x4f0103[_0x389a05(0xda)](_0xa1e9e2));_0x5d887c[_0x389a05(0x118)]({..._0x4b5ae9,'authors':_0x42574d},!0x0),this[_0x389a05(0xdd)][_0x389a05(0x116)](_0x5d887c['id'],_0x4b5ae9,!0x0);}this[_0x389a05(0xdd)][_0x389a05(0x104)]=_0x406ea7,(_0x5d887c[_0x389a05(0xf0)]===_0x5d887c[_0x389a05(0xce)]&&!this[_0x389a05(0xdd)][_0x389a05(0x101)][_0x389a05(0x131)](_0x17b4c7)&&this[_0x389a05(0xdd)][_0x389a05(0x11d)][_0x389a05(0xe5)][_0x389a05(0x112)](_0x17b4c7),this[_0x389a05(0xdd)][_0x389a05(0x12b)](_0x406ea7));}const {revisions:_0x3783c9,requestId:_0x6ea774}=await this[_0x389a05(0xd3)][_0x389a05(0x10e)](_0x30a3c8[_0x389a05(0xd0)],this[_0x389a05(0xf6)]);_0x383bfb&&_0x3783c9[_0x389a05(0x107)]>0x0?_0x116177[_0x389a05(0x124)]():(await this[_0x389a05(0xdb)](_0x3783c9),this[_0x389a05(0xe2)](_0x3783c9,_0x6ea774),this[_0x389a05(0xdd)][_0x389a05(0xd8)]());};return _0x116177[_0x38359a(0x100)]?_0x231011():new Promise((_0x3f5d12,_0x19c66f)=>{const _0x32a76c=_0x38359a;_0x116177[_0x32a76c(0x103)](_0x32a76c(0x115),()=>{const _0x5ef1f7=_0x32a76c;_0x231011()[_0x5ef1f7(0xeb)](_0x3f5d12)[_0x5ef1f7(0x117)](_0x19c66f);});});}[_0x22a1bf(0xcb)](){const _0x520abf=_0x22a1bf;super[_0x520abf(0xcb)]();}async[_0x22a1bf(0x10b)](){const _0x4d767b=_0x22a1bf;this[_0x4d767b(0xd3)][_0x4d767b(0x122)]||await new Promise(_0x444a90=>{const _0x1f77f7=_0x4d767b;this[_0x1f77f7(0xf4)](this[_0x1f77f7(0xd3)],_0x1f77f7(0xc7),_0x79add8=>{const _0x5c239f=_0x1f77f7;_0x79add8[_0x5c239f(0x11b)](),_0x444a90();});});}[_0x22a1bf(0xd7)](){const _0x13bd62=_0x22a1bf,_0x694ae7=this[_0x13bd62(0x106)][_0x13bd62(0xe9)][_0x13bd62(0x11e)](_0x8e5a2d)[_0x13bd62(0xee)][_0x13bd62(0x138)]()[_0x13bd62(0x136)]();for(const _0x257abe of _0x694ae7)if(_0x13bd62(0xd4)!==_0x257abe[_0x13bd62(0xcc)]||_0x257abe[_0x13bd62(0xfb)])return _0x257abe[_0x13bd62(0xe4)]+0x1;}[_0x22a1bf(0x11a)](){const _0x4208a6=_0x22a1bf,_0x3f2df6=this[_0x4208a6(0x106)][_0x4208a6(0xe9)][_0x4208a6(0x11e)](_0x8e5a2d);return new Promise(_0x7e1b56=>{const _0x5e08e2=_0x4208a6;_0x3f2df6[_0x5e08e2(0xd9)]?_0x3f2df6[_0x5e08e2(0x103)](_0x5e08e2(0x120),()=>{const _0x11f922=_0x5e08e2;_0x7e1b56(this[_0x11f922(0xd7)]());}):_0x7e1b56(this[_0x5e08e2(0xd7)]());});}[_0x22a1bf(0xe2)](_0x481d57,_0x13081c){const _0x3e9361=_0x22a1bf,_0x5d28cf=this[_0x3e9361(0xdd)][_0x3e9361(0x11d)];this[_0x3e9361(0xf6)]=_0x13081c;for(const _0x2711f4 of _0x481d57){const _0x1f7893=_0x5d28cf[_0x3e9361(0xfe)](_0x2711f4['id']);if(_0x1f7893){if((_0x2711f4[_0x3e9361(0xce)]||_0x2711f4[_0x3e9361(0xf0)])&&(_0x2711f4[_0x3e9361(0xde)]=null),_0x1f7893===this[_0x3e9361(0xdd)][_0x3e9361(0xec)]){const _0x2d0614=Math[_0x3e9361(0xc9)](_0x1f7893[_0x3e9361(0xf0)],_0x2711f4[_0x3e9361(0xf0)]),_0x24dd98=Math[_0x3e9361(0xc9)](_0x1f7893[_0x3e9361(0xce)],_0x2711f4[_0x3e9361(0xce)]);let _0xfd4344;_0x1f7893[_0x3e9361(0xf0)]===_0x2711f4[_0x3e9361(0xf0)]&&_0x1f7893[_0x3e9361(0xce)]===_0x2711f4[_0x3e9361(0xce)]?(_0xfd4344=!0x0,this[_0x3e9361(0x126)](_0x2711f4)):_0x2711f4[_0x3e9361(0xf0)]===_0x2d0614&&_0x2711f4[_0x3e9361(0xce)]===_0x24dd98?_0xfd4344=!0x1:(_0x1f7893[_0x3e9361(0xf0)]===_0x2d0614&&_0x1f7893[_0x3e9361(0xce)]===_0x24dd98||this[_0x3e9361(0xf3)]({'revision':_0x1f7893,'from':_0x24dd98,'to':_0x2d0614}),_0xfd4344=!0x0),_0xfd4344&&(delete _0x2711f4[_0x3e9361(0xce)],delete _0x2711f4[_0x3e9361(0xf0)],delete _0x2711f4[_0x3e9361(0xde)],delete _0x2711f4[_0x3e9361(0x105)],delete _0x2711f4[_0x3e9361(0xd1)]);}this[_0x3e9361(0xdd)][_0x3e9361(0xed)](_0x2711f4),this[_0x3e9361(0x126)](_0x2711f4);}else this[_0x3e9361(0xdd)][_0x3e9361(0x114)](_0x2711f4);}const _0x2120e5=_0x5d28cf[_0x3e9361(0x108)]();_0x2120e5[_0x3e9361(0x136)]();for(let _0x32b38f=0x0;_0x32b38f<_0x2120e5[_0x3e9361(0x107)]-0x1;_0x32b38f++){const _0x1bbf0a=_0x2120e5[_0x32b38f],_0x1964fd=_0x2120e5[_0x32b38f+0x1];if(_0x1bbf0a[_0x3e9361(0xce)]<_0x1964fd[_0x3e9361(0xf0)]){const _0x4e8dc1=_0x1964fd[_0x3e9361(0xf0)],_0x4c530a=Math[_0x3e9361(0xc9)](_0x4e8dc1,_0x1bbf0a[_0x3e9361(0xf0)]);this[_0x3e9361(0xf3)]({'revision':_0x1bbf0a,'from':_0x4e8dc1,'to':_0x4c530a});}}}[_0x22a1bf(0xf3)]({revision:_0x43ea9c,from:_0x19d00e,to:_0x150e97}={}){const _0x370754=_0x22a1bf,_0xf2a109=this[_0x370754(0x106)][_0x370754(0xe9)][_0x370754(0x11e)](_0x540d3d),_0xec3d3e=this[_0x370754(0xdd)][_0x370754(0x12d)]({'revision':_0x43ea9c,'from':_0x19d00e,'to':_0x150e97});_0xec3d3e[_0x370754(0xf1)]=_0xec3d3e[_0x370754(0xd1)][_0x370754(0xcf)](_0x56de35=>_0xf2a109[_0x370754(0xda)](_0x56de35)),_0x43ea9c[_0x370754(0x118)](_0xec3d3e);}[_0x22a1bf(0x126)](_0x3b2132){const _0x192d67=_0x22a1bf,_0x1b6a92={};_0x1b6a92['id']=_0x3b2132['id'];for(const _0xc7cccc of Object[_0x192d67(0xea)](_0x3b2132))'id'!==_0xc7cccc&&(_0x1b6a92[_0xc7cccc]=void 0x0);this[_0x192d67(0xdd)][_0x192d67(0x116)](_0x1b6a92['id'],_0x1b6a92,!0x0);}async[_0x22a1bf(0xdb)](_0x5ec659){const _0x499caf=_0x22a1bf,_0x290415=this[_0x499caf(0x106)][_0x499caf(0xe9)][_0x499caf(0x11e)](_0x540d3d),{connection:_0xc1c496}=this[_0x499caf(0x106)][_0x499caf(0xe9)][_0x499caf(0x11e)](_0x563aac),_0x27153f=new Set();for(const _0x4cfe8e of _0x5ec659){for(const _0x992911 of _0x4cfe8e[_0x499caf(0xd1)])_0x12db88(_0x992911);_0x4cfe8e[_0x499caf(0xcd)]&&_0x12db88(_0x4cfe8e[_0x499caf(0xcd)]);}if(0x0===_0x27153f[_0x499caf(0xdf)])return;const _0x56a91f=await _0x4ab5ae[_0x499caf(0x12c)](_0xc1c496,Array[_0x499caf(0x113)](_0x27153f));for(const _0x59536c of _0x56a91f)_0x290415[_0x499caf(0xda)](_0x59536c['id'])||_0x290415[_0x499caf(0xf7)](_0x59536c);function _0x12db88(_0x68eb88){const _0x207c6d=_0x499caf;_0x290415[_0x207c6d(0xda)](_0x68eb88)||_0x27153f[_0x207c6d(0x139)](_0x68eb88);}}}export{c as CloudServicesRevisionHistoryAdapter};function P(_0x5d7b9c){const _0x5c3260=_0x22a1bf;return _0x5d7b9c[_0x5c3260(0xfc)][_0x5c3260(0x123)](_0x5c3260(0x130))||_0x5d7b9c[_0x5c3260(0xfc)][_0x5c3260(0x123)](_0x5c3260(0xe1))||_0x5d7b9c[_0x5c3260(0xfc)][_0x5c3260(0x123)](_0x5c3260(0x134));}
|
|
23
|
+
const _0x5aeec7=_0x51bb;(function(_0x1dc645,_0x5a931d){const _0x225188=_0x51bb,_0x533143=_0x1dc645();while(!![]){try{const _0xc3310b=parseInt(_0x225188(0xa2))/0x1+parseInt(_0x225188(0xa0))/0x2+-parseInt(_0x225188(0xc5))/0x3+-parseInt(_0x225188(0xee))/0x4*(-parseInt(_0x225188(0x9e))/0x5)+parseInt(_0x225188(0xbc))/0x6*(-parseInt(_0x225188(0xe7))/0x7)+parseInt(_0x225188(0xa4))/0x8*(parseInt(_0x225188(0xca))/0x9)+parseInt(_0x225188(0xfc))/0xa*(-parseInt(_0x225188(0xa5))/0xb);if(_0xc3310b===_0x5a931d)break;else _0x533143['push'](_0x533143['shift']());}catch(_0x11a7bf){_0x533143['push'](_0x533143['shift']());}}}(_0x36c5,0xc2498));import{Plugin as _0x16d655}from'ckeditor5/src/core.js';import{version as _0x293aec}from'ckeditor5/src/utils.js';import{Users as _0x54578d}from'ckeditor5-collaboration/src/collaboration-core.js';function _0x36c5(){const _0x249160=['destroy','data','CONNECTED','_isPendingUpdate','reverse','change:_isPendingUpdate','setRevisionData','from','getUser','change:_isConnected','authorsIds','cloud-services-internal-error:\x20Not\x20connected.','getOperations','requires','getRevisions','buildRevisionData','addRevisionData','isOfficialPlugin','837955iCvfZq','plugins','865498GrRQHV','connection','1234986MEgLuS','diffData','49016EOniOm','803DyObUg','cloudServices.bundleVersion','revisionsUpdated','reconnect','isBundleUploaded','isPremiumPlugin','cloud-services-internal-error:\x20Revision\x20History\x20Service\x20is\x20not\x20connected.','_preventResendingRevisionData','repository','map','reInit','creatorId','isConnected','config','_waitForServiceReady','affectsData','baseVersion','_offset','RevisionHistory','isEmptyCurrent','_startingVersion','_bufferedUpdates','get','8013066cIsNVt','_fetchMissingUsers','serverHistory','_handleRevisionsUpdate','_revisions','code','adapter','max','then','644799ixwqgw','_revisionTracker','CloudServicesRevisionHistoryAdapter','_revisionDataBuilder','currentRevision','1278SvyIul','cloud-services-internal-error:\x20Request\x20timeout.','bind','_getLatestVersion','collaboration.channelId','_lastRequestId','startsWith','updateRevisions','RevisionHistoryService','toVersion','_bufferUpdate','catch','sendBufferedUpdates','connected','isEnabled','off','editor','init','message','sessionId','getRevision','size','marker','has','_getLatestVersionFromServerOperations','state','authors','_handleReconnectionError','_update','7yVzVWo','getMany','once','addUser','remove','createdAt','setSource','28tteEMa','keys','fromVersion','type','_revisionHistoryService','wrongRequestId','RevisionTracker','listenTo','pluginName','_createCurrentRevision','addToReconnectionStack','_fixRevision','_oldOffset','400','186940yxCUVB','add','length','connect','_isConnected'];_0x36c5=function(){return _0x249160;};return _0x36c5();}import{RealTimeCollaborationClient as _0x3eeb7a}from'../realtimecollaborativeediting/realtimecollaborationclient.js';import{WebSocketGateway as _0x4c4cf3}from'../realtimecollaborativeediting/websocketgateway.js';import{Sessions as _0x2da23b}from'../realtimecollaborativeediting/sessions.js';function _0x51bb(_0x5157d1,_0x1bb412){const _0x36c5eb=_0x36c5();return _0x51bb=function(_0x51bbd3,_0x32984b){_0x51bbd3=_0x51bbd3-0x8c;let _0x4b8d19=_0x36c5eb[_0x51bbd3];return _0x4b8d19;},_0x51bb(_0x5157d1,_0x1bb412);}import{EditorService as _0x492719,RevisionHistoryService as _0xde5fe,User as _0x75386a,WEB_SOCKET_GATEWAY_STATES as _0x2aebb2}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';class c extends _0x16d655{static [_0x5aeec7(0xd2)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0xde5fe)());[_0x5aeec7(0xcf)];[_0x5aeec7(0xc6)];[_0x5aeec7(0xf2)];[_0x5aeec7(0xfa)];static get[_0x5aeec7(0x99)](){const _0x405dd7=_0x5aeec7;return[_0x4c4cf3,_0x3eeb7a,_0x405dd7(0xb7),_0x2da23b,_0x54578d];}static get[_0x5aeec7(0xf6)](){const _0x54fdad=_0x5aeec7;return _0x54fdad(0xc7);}static get[_0x5aeec7(0x9d)](){return!0x0;}static get[_0x5aeec7(0xaa)](){return!0x0;}constructor(_0x2b88e6){const _0x2280eb=_0x5aeec7;super(_0x2b88e6);const _0x1ee75c=this[_0x2280eb(0xda)][_0x2280eb(0xb2)][_0x2280eb(0xbb)](_0x2280eb(0xce));this[_0x2280eb(0xcf)]=null,this[_0x2280eb(0xc6)]=this[_0x2280eb(0xda)][_0x2280eb(0x9f)][_0x2280eb(0xbb)](_0x2280eb(0xf4)),this[_0x2280eb(0xf2)]=new c[(_0x2280eb(0xd2))](_0x1ee75c);}async[_0x5aeec7(0xdb)](){const _0x252114=_0x5aeec7,_0x5fe91e=this[_0x252114(0xda)][_0x252114(0x9f)][_0x252114(0xbb)](_0x3eeb7a),_0x482a20=_0x5fe91e[_0x252114(0xbe)],_0x1810b0=this[_0x252114(0xda)][_0x252114(0x9f)][_0x252114(0xbb)](_0x4c4cf3);this[_0x252114(0xc6)][_0x252114(0xed)]({'history':_0x482a20,'getLatestVersion':()=>this[_0x252114(0xcd)](),'getCurrentRevisionId':()=>_0x5fe91e[_0x252114(0xdd)]});const _0x256499=this[_0x252114(0xda)][_0x252114(0xb2)][_0x252114(0xbb)](_0x252114(0xa6))||_0x293aec,_0x44670e=await _0x492719[_0x252114(0xa9)](_0x1810b0[_0x252114(0xa1)],_0x256499);this[_0x252114(0xda)][_0x252114(0x9f)][_0x252114(0xbb)](_0x252114(0xb7))[_0x252114(0xc2)]={'getRevision':async({revisionId:_0x21a139})=>(await this[_0x252114(0xb3)](),await this[_0x252114(0xf2)][_0x252114(0xde)](_0x21a139)),'updateRevisions':async _0x564173=>{const _0x4a7d85=_0x252114;await this[_0x4a7d85(0xb3)]();const _0x4cf1c8=this[_0x4a7d85(0xc6)][_0x4a7d85(0xc9)];if(_0x44670e&&0x1===_0x564173[_0x4a7d85(0xfe)]&&_0x564173[0x0]['id']===_0x4cf1c8['id'])return _0x564173;for(const _0x12d7fd of _0x564173)_0x12d7fd['id']===_0x4cf1c8['id']&&(_0x12d7fd[_0x4a7d85(0xb8)]=_0x12d7fd[_0x4a7d85(0xf0)]===_0x12d7fd[_0x4a7d85(0xd3)]);return this[_0x4a7d85(0xf2)][_0x4a7d85(0xd1)](_0x564173,this[_0x4a7d85(0xcf)])[_0x4a7d85(0xc4)](_0x36f2b5=>(this[_0x4a7d85(0xcf)]=_0x36f2b5,_0x564173))[_0x4a7d85(0xd5)](_0x11b21a=>{const _0x2e6ca0=_0x4a7d85;if(it(_0x11b21a)||_0x2e6ca0(0xfb)===_0x11b21a[_0x2e6ca0(0xc1)]&&void 0x0!==_0x11b21a[_0x2e6ca0(0x8d)][_0x2e6ca0(0xf3)]){for(const _0x48c40a of _0x564173){!this[_0x2e6ca0(0xc6)][_0x2e6ca0(0xad)][_0x2e6ca0(0xde)](_0x48c40a['id'])||this[_0x2e6ca0(0xc6)][_0x2e6ca0(0xd4)](_0x48c40a['id'],_0x48c40a,!0x1);}if(it(_0x11b21a))throw _0x11b21a;return _0x564173;}throw _0x11b21a;});}},this[_0x252114(0xf5)](this[_0x252114(0xf2)],_0x252114(0xa7),(_0x524196,{revisionsData:_0x18984b,requestId:_0x4c7a07})=>{const _0x39c81d=_0x252114;Math[_0x39c81d(0xc3)](..._0x18984b[_0x39c81d(0xae)](_0x57c5ee=>_0x57c5ee[_0x39c81d(0xd3)]))>this[_0x39c81d(0xe2)]()-0x1?this[_0x39c81d(0xcd)]()[_0x39c81d(0xc4)](()=>{const _0x33d101=_0x39c81d;this[_0x33d101(0xbf)](_0x18984b,_0x4c7a07);}):this[_0x39c81d(0xbf)](_0x18984b,_0x4c7a07);});const {revisions:_0x47e0ec,requestId:_0x55a419}=await this[_0x252114(0xf2)][_0x252114(0xff)](_0x1810b0[_0x252114(0xa1)]);_0x1810b0[_0x252114(0xf8)](this),this[_0x252114(0xcf)]=_0x55a419,await this[_0x252114(0xbd)](_0x47e0ec);for(const _0x4fb560 of _0x47e0ec)this[_0x252114(0xc6)][_0x252114(0x9c)](_0x4fb560);this[_0x252114(0xf5)](_0x5fe91e,_0x252114(0x95),(_0x65191e,_0x2a8976,_0x5d1290)=>{const _0xd6be4=_0x252114;_0x5d1290&&(this[_0xd6be4(0xfa)]=_0x5fe91e[_0xd6be4(0xb6)],_0x65191e[_0xd6be4(0xd9)]());}),this[_0x252114(0xc6)][_0x252114(0xcc)](_0x252114(0xd8))['to'](_0x1810b0,_0x252114(0xe3),_0xd35350=>_0xd35350===_0x2aebb2[_0x252114(0x8e)]);}async[_0x5aeec7(0xa8)](){const _0x5878a8=_0x5aeec7,_0xdd3296=this[_0x5878a8(0xda)][_0x5878a8(0x9f)][_0x5878a8(0xbb)](_0x4c4cf3),_0x5643fa=this[_0x5878a8(0xda)][_0x5878a8(0x9f)][_0x5878a8(0xbb)](_0x3eeb7a),_0x55ab77=async()=>{const _0x514635=_0x5878a8,_0x5f0bad=this[_0x514635(0xc6)][_0x514635(0xc9)],_0x2c00bc=_0x5f0bad['id'],_0x2944f3=_0x2c00bc!==_0x5643fa[_0x514635(0xdd)];if(_0x2944f3){const _0x5e5de9=_0x5643fa[_0x514635(0xb6)]-this[_0x514635(0xfa)],_0x106420=this[_0x514635(0xe2)]();this[_0x514635(0xc6)][_0x514635(0xc8)][_0x514635(0xaf)]();if(_0x5f0bad[_0x514635(0xd3)]+_0x5e5de9!==_0x106420){const _0x1edb62=_0x5f0bad[_0x514635(0xf0)]+_0x5e5de9,_0xf9f9b4=this[_0x514635(0xda)][_0x514635(0x9f)][_0x514635(0xbb)](_0x54578d),_0x4cdec7=this[_0x514635(0xc6)][_0x514635(0x9b)]({'revision':_0x5f0bad,'from':_0x1edb62,'to':_0x106420});_0x4cdec7['id']=_0x5f0bad['id'];const _0x43478d=_0x4cdec7[_0x514635(0x96)][_0x514635(0xae)](_0x5c4519=>_0xf9f9b4[_0x514635(0x94)](_0x5c4519));_0x5f0bad[_0x514635(0xe6)]({..._0x4cdec7,'authors':_0x43478d},!0x0),this[_0x514635(0xc6)][_0x514635(0xd4)](_0x5f0bad['id'],_0x4cdec7,!0x0);}this[_0x514635(0xc6)][_0x514635(0xb9)]=_0x106420,(_0x5f0bad[_0x514635(0xd3)]===_0x5f0bad[_0x514635(0xf0)]&&!this[_0x514635(0xc6)][_0x514635(0xba)][_0x514635(0xe1)](_0x2c00bc)&&this[_0x514635(0xc6)][_0x514635(0xad)][_0x514635(0xc0)][_0x514635(0xeb)](_0x2c00bc),this[_0x514635(0xc6)][_0x514635(0xf7)](_0x106420));}const {revisions:_0x35af51,requestId:_0x569e88}=await this[_0x514635(0xf2)][_0x514635(0xa8)](_0xdd3296[_0x514635(0xa1)],this[_0x514635(0xcf)]);_0x2944f3&&_0x35af51[_0x514635(0xfe)]>0x0?_0x5643fa[_0x514635(0xe5)]():(await this[_0x514635(0xbd)](_0x35af51),this[_0x514635(0xbf)](_0x35af51,_0x569e88),this[_0x514635(0xc6)][_0x514635(0xd6)]());};return _0x5643fa[_0x5878a8(0x100)]?_0x55ab77():new Promise((_0x5a320f,_0x2109b2)=>{const _0x1d4f03=_0x5878a8;_0x5643fa[_0x1d4f03(0xe9)](_0x1d4f03(0x95),()=>{const _0x36df21=_0x1d4f03;_0x55ab77()[_0x36df21(0xc4)](_0x5a320f)[_0x36df21(0xd5)](_0x2109b2);});});}[_0x5aeec7(0x8c)](){const _0x416680=_0x5aeec7;super[_0x416680(0x8c)]();}async[_0x5aeec7(0xb3)](){const _0x21c584=_0x5aeec7;this[_0x21c584(0xf2)][_0x21c584(0xb1)]||await new Promise(_0x11f499=>{const _0x45dc96=_0x21c584;this[_0x45dc96(0xf5)](this[_0x45dc96(0xf2)],_0x45dc96(0xd7),_0x15545b=>{const _0x3de164=_0x45dc96;_0x15545b[_0x3de164(0xd9)](),_0x11f499();});});}[_0x5aeec7(0xe2)](){const _0x3eabee=_0x5aeec7,_0x4265b9=this[_0x3eabee(0xda)][_0x3eabee(0x9f)][_0x3eabee(0xbb)](_0x3eeb7a)[_0x3eabee(0xbe)][_0x3eabee(0x98)]()[_0x3eabee(0x90)]();for(const _0x36ce68 of _0x4265b9)if(_0x3eabee(0xe0)!==_0x36ce68[_0x3eabee(0xf1)]||_0x36ce68[_0x3eabee(0xb4)])return _0x36ce68[_0x3eabee(0xb5)]+0x1;}[_0x5aeec7(0xcd)](){const _0x5ae069=_0x5aeec7,_0x949124=this[_0x5ae069(0xda)][_0x5ae069(0x9f)][_0x5ae069(0xbb)](_0x3eeb7a);return new Promise(_0x27acb4=>{const _0x4b7095=_0x5ae069;_0x949124[_0x4b7095(0x8f)]?_0x949124[_0x4b7095(0xe9)](_0x4b7095(0x91),()=>{const _0x2814ef=_0x4b7095;_0x27acb4(this[_0x2814ef(0xe2)]());}):_0x27acb4(this[_0x4b7095(0xe2)]());});}[_0x5aeec7(0xbf)](_0xc99f96,_0x59d7e0){const _0xd0504f=_0x5aeec7,_0x5a52f1=this[_0xd0504f(0xc6)][_0xd0504f(0xad)];this[_0xd0504f(0xcf)]=_0x59d7e0;for(const _0xa04c13 of _0xc99f96){const _0x395b98=_0x5a52f1[_0xd0504f(0xde)](_0xa04c13['id']);if(_0x395b98){if((_0xa04c13[_0xd0504f(0xf0)]||_0xa04c13[_0xd0504f(0xd3)])&&(_0xa04c13[_0xd0504f(0xa3)]=null),_0x395b98===this[_0xd0504f(0xc6)][_0xd0504f(0xc9)]){const _0x2a35be=Math[_0xd0504f(0xc3)](_0x395b98[_0xd0504f(0xd3)],_0xa04c13[_0xd0504f(0xd3)]),_0x25e245=Math[_0xd0504f(0xc3)](_0x395b98[_0xd0504f(0xf0)],_0xa04c13[_0xd0504f(0xf0)]);let _0x278774;_0x395b98[_0xd0504f(0xd3)]===_0xa04c13[_0xd0504f(0xd3)]&&_0x395b98[_0xd0504f(0xf0)]===_0xa04c13[_0xd0504f(0xf0)]?(_0x278774=!0x0,this[_0xd0504f(0xac)](_0xa04c13)):_0xa04c13[_0xd0504f(0xd3)]===_0x2a35be&&_0xa04c13[_0xd0504f(0xf0)]===_0x25e245?_0x278774=!0x1:(_0x395b98[_0xd0504f(0xd3)]===_0x2a35be&&_0x395b98[_0xd0504f(0xf0)]===_0x25e245||this[_0xd0504f(0xf9)]({'revision':_0x395b98,'from':_0x25e245,'to':_0x2a35be}),_0x278774=!0x0),_0x278774&&(delete _0xa04c13[_0xd0504f(0xf0)],delete _0xa04c13[_0xd0504f(0xd3)],delete _0xa04c13[_0xd0504f(0xa3)],delete _0xa04c13[_0xd0504f(0xec)],delete _0xa04c13[_0xd0504f(0x96)]);}this[_0xd0504f(0xc6)][_0xd0504f(0x92)](_0xa04c13),this[_0xd0504f(0xac)](_0xa04c13);}else this[_0xd0504f(0xc6)][_0xd0504f(0x9c)](_0xa04c13);}const _0x518d05=_0x5a52f1[_0xd0504f(0x9a)]();_0x518d05[_0xd0504f(0x90)]();for(let _0x59472f=0x0;_0x59472f<_0x518d05[_0xd0504f(0xfe)]-0x1;_0x59472f++){const _0x39d42e=_0x518d05[_0x59472f],_0x220112=_0x518d05[_0x59472f+0x1];if(_0x39d42e[_0xd0504f(0xf0)]<_0x220112[_0xd0504f(0xd3)]){const _0x1be173=_0x220112[_0xd0504f(0xd3)],_0x155588=Math[_0xd0504f(0xc3)](_0x1be173,_0x39d42e[_0xd0504f(0xd3)]);this[_0xd0504f(0xf9)]({'revision':_0x39d42e,'from':_0x1be173,'to':_0x155588});}}}[_0x5aeec7(0xf9)]({revision:_0x2be14e,from:_0x1f8ea5,to:_0x216603}={}){const _0x480cf9=_0x5aeec7,_0x3d2279=this[_0x480cf9(0xda)][_0x480cf9(0x9f)][_0x480cf9(0xbb)](_0x54578d),_0xd6643c=this[_0x480cf9(0xc6)][_0x480cf9(0x9b)]({'revision':_0x2be14e,'from':_0x1f8ea5,'to':_0x216603});_0xd6643c[_0x480cf9(0xe4)]=_0xd6643c[_0x480cf9(0x96)][_0x480cf9(0xae)](_0x526cf5=>_0x3d2279[_0x480cf9(0x94)](_0x526cf5)),_0x2be14e[_0x480cf9(0xe6)](_0xd6643c);}[_0x5aeec7(0xac)](_0x258f6f){const _0x4b0e8e=_0x5aeec7,_0x3a2aa3={};_0x3a2aa3['id']=_0x258f6f['id'];for(const _0x1b3c66 of Object[_0x4b0e8e(0xef)](_0x258f6f))'id'!==_0x1b3c66&&(_0x3a2aa3[_0x1b3c66]=void 0x0);this[_0x4b0e8e(0xc6)][_0x4b0e8e(0xd4)](_0x3a2aa3['id'],_0x3a2aa3,!0x0);}async[_0x5aeec7(0xbd)](_0x3430b9){const _0xfcb19b=_0x5aeec7,_0x3388bd=this[_0xfcb19b(0xda)][_0xfcb19b(0x9f)][_0xfcb19b(0xbb)](_0x54578d),{connection:_0x35fc51}=this[_0xfcb19b(0xda)][_0xfcb19b(0x9f)][_0xfcb19b(0xbb)](_0x4c4cf3),_0x2b1500=new Set();for(const _0xb035a2 of _0x3430b9){for(const _0x3d1682 of _0xb035a2[_0xfcb19b(0x96)])_0x19197c(_0x3d1682);_0xb035a2[_0xfcb19b(0xb0)]&&_0x19197c(_0xb035a2[_0xfcb19b(0xb0)]);}if(0x0===_0x2b1500[_0xfcb19b(0xdf)])return;const _0x598f91=await _0x75386a[_0xfcb19b(0xe8)](_0x35fc51,Array[_0xfcb19b(0x93)](_0x2b1500));for(const _0x2ffcc6 of _0x598f91)_0x3388bd[_0xfcb19b(0x94)](_0x2ffcc6['id'])||_0x3388bd[_0xfcb19b(0xea)](_0x2ffcc6);function _0x19197c(_0xb6f2cb){const _0x2314be=_0xfcb19b;_0x3388bd[_0x2314be(0x94)](_0xb6f2cb)||_0x2b1500[_0x2314be(0xfd)](_0xb6f2cb);}}}export{c as CloudServicesRevisionHistoryAdapter};function it(_0x5f59d4){const _0x2ad527=_0x5aeec7;return _0x5f59d4[_0x2ad527(0xdc)][_0x2ad527(0xd0)](_0x2ad527(0xab))||_0x5f59d4[_0x2ad527(0xdc)][_0x2ad527(0xd0)](_0x2ad527(0x97))||_0x5f59d4[_0x2ad527(0xdc)][_0x2ad527(0xd0)](_0x2ad527(0xcb));}
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
24
|
-
((()=>
|
|
23
|
+
const _0x598608=_0x1fcc;(function(_0x564e1a,_0x501014){const _0x3cb4fe=_0x1fcc,_0x210011=_0x564e1a();while(!![]){try{const _0x49128b=parseInt(_0x3cb4fe(0xb8))/0x1+-parseInt(_0x3cb4fe(0x94))/0x2*(parseInt(_0x3cb4fe(0xa3))/0x3)+-parseInt(_0x3cb4fe(0x95))/0x4+-parseInt(_0x3cb4fe(0xb6))/0x5+parseInt(_0x3cb4fe(0xb7))/0x6+-parseInt(_0x3cb4fe(0xcd))/0x7*(parseInt(_0x3cb4fe(0xbb))/0x8)+parseInt(_0x3cb4fe(0xc8))/0x9*(parseInt(_0x3cb4fe(0xa9))/0xa);if(_0x49128b===_0x501014)break;else _0x210011['push'](_0x210011['shift']());}catch(_0x474afd){_0x210011['push'](_0x210011['shift']());}}}(_0x5968,0x66eb5));import{Plugin as _0x15147d}from'ckeditor5/src/core.js';function _0x5968(){const _0xc71001=['754456jYqiJf','collaboration.channelId','_bufferedRequests','find','type','values','size','addToReconnectionStack','pluginName','_fetchMissingUsersForThreads','update','message','CloudServicesTrackChangesAdapter','9yhEabF','cloud-services-internal-error:\x20Not\x20connected.','state','off','then','35QfGffw','requires','addUser','from','_saved','plugins','originalSuggestionId','2756GteCKc','2894596LlbEqZ','open','isOfficialPlugin','get','addSuggestionData','connected','connect','TrackChangesEditing','getSuggestion','getUser','_trackChangesService','getMany','reconnect','startsWith','393WhsjxD','editor','isConnected','set','isPremiumPlugin','TrackChangesService','8976770pLHphB','config','catch','suggestionUpdated','add','attributes','adapter','listenTo','cloud-services-internal-error:\x20Request\x20timeout.','_waitForServiceReady','init','connection','data','2183690UIbVtL','2987874gUSfIi','838341EYTptM','delete','hasSuggestion'];_0x5968=function(){return _0xc71001;};return _0x5968();}import{User as _0x1029aa,TrackChangesService as _0x4035b3}from'@ckeditor/ckeditor-cloud-services-collaboration/src/services.js';function _0x1fcc(_0x128b3c,_0x434514){const _0x596844=_0x5968();return _0x1fcc=function(_0x1fccaf,_0x60da95){_0x1fccaf=_0x1fccaf-0x91;let _0x574f47=_0x596844[_0x1fccaf];return _0x574f47;},_0x1fcc(_0x128b3c,_0x434514);}import{WebSocketGateway as _0x3a5f72}from'../realtimecollaborativeediting/websocketgateway.js';import{CloudServicesCommentsAdapter as _0xbc9a38}from'../realtimecollaborativecomments/cloudservicescommentsadapter.js';import{Users as _0x5f34af}from'ckeditor5-collaboration/src/collaboration-core.js';class m extends _0x15147d{static [_0x598608(0xa8)]=/* #__PURE__ -- @preserve */
|
|
24
|
+
((()=>_0x4035b3)());[_0x598608(0xbd)];[_0x598608(0x9f)];static get[_0x598608(0xce)](){const _0x3cb339=_0x598608;return[_0xbc9a38,_0x3cb339(0x9c),_0x3a5f72];}static get[_0x598608(0xc3)](){const _0x3cf37e=_0x598608;return _0x3cf37e(0xc7);}static get[_0x598608(0x97)](){return!0x0;}static get[_0x598608(0xa7)](){return!0x0;}constructor(_0x5eb51a){const _0x1a41a2=_0x598608;super(_0x5eb51a);const _0x66c2b6=this[_0x1a41a2(0xa4)][_0x1a41a2(0xaa)][_0x1a41a2(0x98)](_0x1a41a2(0xbc));this[_0x1a41a2(0xbd)]=new Map(),this[_0x1a41a2(0x9f)]=new m[(_0x1a41a2(0xa8))](_0x66c2b6);}[_0x598608(0xb3)](){const _0x3912d3=_0x598608,_0x2819e7=this[_0x3912d3(0xa4)][_0x3912d3(0x92)][_0x3912d3(0x98)](_0x3a5f72),_0x51aeb2=this[_0x3912d3(0xa4)][_0x3912d3(0x92)][_0x3912d3(0x98)](_0x3912d3(0x9c));return _0x51aeb2[_0x3912d3(0xaf)]={'getSuggestion':async _0x2d29f8=>{const _0x45d15d=_0x3912d3;await this[_0x45d15d(0xb2)]();const _0xdbcd10=await this[_0x45d15d(0x9f)][_0x45d15d(0x98)](_0x2d29f8)[_0x45d15d(0xab)](A);return await this[_0x45d15d(0xc4)]([_0xdbcd10]),_0xdbcd10;},'addSuggestion':async({id:_0x4ea571,type:_0x956c55,data:_0x268f58,originalSuggestionId:_0x128baa,attributes:_0x15e53c})=>{const _0xe51bf5=_0x3912d3;await this[_0xe51bf5(0xb2)]();const _0x494664={'id':_0x4ea571,'type':_0x956c55,'data':_0x268f58,'originalSuggestionId':_0x128baa,'attributes':_0x15e53c},_0x3ada0e=await this[_0xe51bf5(0x9f)][_0xe51bf5(0xad)](_0x4ea571,_0x956c55,_0x268f58,_0x128baa,_0x15e53c)[_0xe51bf5(0xab)](_0x5d7019=>{if(it(_0x5d7019))return new Promise(_0x547ee8=>{const _0x430833=_0x1fcc;this[_0x430833(0xbd)][_0x430833(0xa6)](_0x4ea571,{'resolve':_0x547ee8,'suggestionData':_0x494664});});throw _0x5d7019;});return this[_0xe51bf5(0xbd)][_0xe51bf5(0xb9)](_0x4ea571),_0x3ada0e;},'updateSuggestion':async(_0x1862ae,_0x15bcf3)=>{const _0x33e3b7=_0x3912d3;if(await this[_0x33e3b7(0xb2)](),_0x33e3b7(0x96)!==_0x15bcf3[_0x33e3b7(0xca)])return this[_0x33e3b7(0x9f)][_0x33e3b7(0xc5)](_0x1862ae,_0x15bcf3)[_0x33e3b7(0xab)](A);}},this[_0x3912d3(0xb0)](this[_0x3912d3(0x9f)],_0x3912d3(0xac),(_0x1ca4b9,_0x3e4425)=>{const _0x4bf404=_0x3912d3;_0x51aeb2[_0x4bf404(0xba)](_0x3e4425['id'])&&(_0x51aeb2[_0x4bf404(0x9d)](_0x3e4425['id'])[_0x4bf404(0xae)]=_0x3e4425[_0x4bf404(0xae)]);}),this[_0x3912d3(0x9f)][_0x3912d3(0x9b)](_0x2819e7[_0x3912d3(0xb4)])[_0x3912d3(0xcc)](_0x1b8e13=>(_0x2819e7[_0x3912d3(0xc2)](this),this[_0x3912d3(0xc4)](_0x1b8e13)[_0x3912d3(0xcc)](()=>{const _0x3e5a4e=_0x3912d3;for(const _0x26cdac of _0x1b8e13){_0x51aeb2[_0x3e5a4e(0x99)](_0x26cdac)[_0x3e5a4e(0x91)]=!0x0;}})));}async[_0x598608(0xa1)](){const _0x38fb25=_0x598608,_0x3f07b7=this[_0x38fb25(0xa4)][_0x38fb25(0x92)][_0x38fb25(0x98)](_0x38fb25(0x9c)),{connection:_0x25fd87}=this[_0x38fb25(0xa4)][_0x38fb25(0x92)][_0x38fb25(0x98)](_0x3a5f72),_0x4b1ce2=await this[_0x38fb25(0x9f)][_0x38fb25(0x9b)](_0x25fd87);await this[_0x38fb25(0xc4)](_0x4b1ce2);for(const {suggestionData:_0x5f5ad0,resolve:_0x4520f7}of this[_0x38fb25(0xbd)][_0x38fb25(0xc0)]()){let _0x38d3c0=_0x4b1ce2[_0x38fb25(0xbe)](_0x6e9dae=>_0x6e9dae['id']===_0x5f5ad0['id']);_0x38d3c0||(_0x38d3c0=await this[_0x38fb25(0x9f)][_0x38fb25(0xad)](_0x5f5ad0['id'],_0x5f5ad0[_0x38fb25(0xbf)],_0x5f5ad0[_0x38fb25(0xb5)],_0x5f5ad0[_0x38fb25(0x93)])),_0x4520f7(_0x38d3c0);}for(const _0x1bc082 of _0x4b1ce2)_0x3f07b7[_0x38fb25(0xba)](_0x1bc082['id'])||_0x3f07b7[_0x38fb25(0x99)](_0x1bc082);}async[_0x598608(0xb2)](){const _0x59a3b9=_0x598608;this[_0x59a3b9(0x9f)][_0x59a3b9(0xa5)]||await new Promise(_0x23d8bc=>{const _0xb0436d=_0x59a3b9;this[_0xb0436d(0xb0)](this[_0xb0436d(0x9f)],_0xb0436d(0x9a),_0x116d15=>{const _0x14d605=_0xb0436d;_0x116d15[_0x14d605(0xcb)](),_0x23d8bc();});});}async[_0x598608(0xc4)](_0x446673){const _0x44504a=_0x598608,_0x5df0ef=this[_0x44504a(0xa4)][_0x44504a(0x92)][_0x44504a(0x98)](_0x5f34af),{connection:_0xf4ace1}=this[_0x44504a(0xa4)][_0x44504a(0x92)][_0x44504a(0x98)](_0x3a5f72),_0x2887d2=new Set();for(const {authorId:_0x2cc4aa}of _0x446673)_0x5df0ef[_0x44504a(0x9e)](_0x2cc4aa)||_0x2887d2[_0x44504a(0xad)](_0x2cc4aa);if(0x0===_0x2887d2[_0x44504a(0xc1)])return;const _0x2bf704=await _0x1029aa[_0x44504a(0xa0)](_0xf4ace1,Array[_0x44504a(0xd0)](_0x2887d2));for(const _0x3bc8ce of _0x2bf704)_0x5df0ef[_0x44504a(0x9e)](_0x3bc8ce['id'])||_0x5df0ef[_0x44504a(0xcf)](_0x3bc8ce);}}export{m as CloudServicesTrackChangesAdapter};function A(_0x45d322){if(it(_0x45d322))return new Promise(()=>{});throw _0x45d322;}function it(_0x3a6e66){const _0xda6e31=_0x598608;return _0x3a6e66[_0xda6e31(0xc6)][_0xda6e31(0xa2)](_0xda6e31(0xc9))||_0x3a6e66[_0xda6e31(0xc6)][_0xda6e31(0xa2)](_0xda6e31(0xb1));}
|