@univerjs-pro/collaboration-client-node 0.25.0 → 0.25.2

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/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x4cba16=_0xff38;(function(_0x504101,_0x3f5665){const _0x47cfb1=_0xff38,_0x4614cc=_0x504101();while(!![]){try{const _0x358522=-parseInt(_0x47cfb1(0x1fb))/0x1*(parseInt(_0x47cfb1(0x211))/0x2)+-parseInt(_0x47cfb1(0x225))/0x3*(-parseInt(_0x47cfb1(0x21f))/0x4)+parseInt(_0x47cfb1(0x204))/0x5*(-parseInt(_0x47cfb1(0x205))/0x6)+-parseInt(_0x47cfb1(0x1f4))/0x7*(parseInt(_0x47cfb1(0x1f6))/0x8)+parseInt(_0x47cfb1(0x1eb))/0x9*(parseInt(_0x47cfb1(0x21c))/0xa)+-parseInt(_0x47cfb1(0x1fc))/0xb*(parseInt(_0x47cfb1(0x21e))/0xc)+parseInt(_0x47cfb1(0x215))/0xd*(parseInt(_0x47cfb1(0x20e))/0xe);if(_0x358522===_0x3f5665)break;else _0x4614cc['push'](_0x4614cc['shift']());}catch(_0x231369){_0x4614cc['push'](_0x4614cc['shift']());}}}(_0x1fba,0x97f7c),Object[_0x4cba16(0x226)](exports,Symbol[_0x4cba16(0x1ee)],{'value':_0x4cba16(0x203)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/network'),r=require('rxjs'),i=require('ws'),a=require('@univerjs-pro/collaboration');const o='collaboration-client-node.config',s={};var c='@univerjs-pro/collaboration-client-node',l=_0x4cba16(0x206);function u(_0x4a7249,_0x15bb86){return function(_0x33b1cb,_0x257c85){_0x15bb86(_0x33b1cb,_0x257c85,_0x4a7249);};}function _0xff38(_0x4ed9ad,_0x1de043){_0x4ed9ad=_0x4ed9ad-0x1e1;const _0x1fba11=_0x1fba();let _0xff3809=_0x1fba11[_0x4ed9ad];return _0xff3809;}function d(_0x304fd7,_0x53e0cd,_0x2ff3cd,_0x3da941){const _0x1f674f=_0x4cba16;var _0x59432a=arguments['length'],_0x4d55af=_0x59432a<0x3?_0x53e0cd:_0x3da941===null?_0x3da941=Object['getOwnPropertyDescriptor'](_0x53e0cd,_0x2ff3cd):_0x3da941,_0x5ce9b9;if(typeof Reflect=='object'&&typeof Reflect[_0x1f674f(0x20b)]==_0x1f674f(0x1e8))_0x4d55af=Reflect[_0x1f674f(0x20b)](_0x304fd7,_0x53e0cd,_0x2ff3cd,_0x3da941);else{for(var _0xd5087a=_0x304fd7[_0x1f674f(0x227)]-0x1;_0xd5087a>=0x0;_0xd5087a--)(_0x5ce9b9=_0x304fd7[_0xd5087a])&&(_0x4d55af=(_0x59432a<0x3?_0x5ce9b9(_0x4d55af):_0x59432a>0x3?_0x5ce9b9(_0x53e0cd,_0x2ff3cd,_0x4d55af):_0x5ce9b9(_0x53e0cd,_0x2ff3cd))||_0x4d55af);}return _0x59432a>0x3&&_0x4d55af&&Object['defineProperty'](_0x53e0cd,_0x2ff3cd,_0x4d55af),_0x4d55af;}function _0x1fba(){const _0xb38fc=['onStarting','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','UniverCollaborationClientNodePlugin','default','ISnapshotServerService','CollaborationSocketService','next','Observable','toDisposable','call','function','constructor','open','1619739phmLtP','customHeaders','headers','toStringTag','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','add','version','registerDependencies','close','63eXhLxL','message','1062360etIUdQ','registerHTTPInterceptor','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','DependentOn','send','883331boVLGc','1854655rAhmSp','pluginName','set','_configService','packageName','_httpService','COLLABORATION_CLIENT_NODE_CONFIG_KEY','Module','40RDkFhg','662838vYKmjq','0.25.0','IConfigService','toPrimitive','DisposableCollection','_injector','decorate','Inject','ILogService','27356728ohZtLP','string','ISocketService','2jvecDQ','Injector','HTTPService','addEventListener','13InYgJj','_doCreateSocket','removeEventListener','Disposable','object','createSocket','symbol','40SSVaDz','Plugin','12ixykFF','4wosKSV','pipe','dispose','share','error','UniverCollaborationClientPlugin','3238197ssIFXL','defineProperty','length','getConfig'];_0x1fba=function(){return _0xb38fc;};return _0x1fba();}let f=class extends t[_0x4cba16(0x218)]{constructor(_0x3c93c9){const _0x404025=_0x4cba16;super(),this[_0x404025(0x1ff)]=_0x3c93c9;}['createSocket'](_0x39cf6d){const _0x48a97d=_0x4cba16;var _0x45da89;let _0x550f18=((_0x45da89=this[_0x48a97d(0x1ff)][_0x48a97d(0x228)](e[_0x48a97d(0x1ef)]))==null?void 0x0:_0x45da89[_0x48a97d(0x1ec)])||{};try{let _0x2da835=new i['WebSocket'](_0x39cf6d,{'headers':{..._0x550f18}}),_0x100a0f=new t[(_0x48a97d(0x209))]();return{'URL':_0x39cf6d,'close':(_0x9b907e,_0x3304e4)=>{const _0xe5efa1=_0x48a97d;_0x2da835[_0xe5efa1(0x1f3)](_0x9b907e,_0x3304e4),_0x100a0f[_0xe5efa1(0x221)]();},'send':_0x243f29=>{const _0x1b6ce0=_0x48a97d;_0x2da835[_0x1b6ce0(0x1fa)](_0x243f29);},'open$':new r[(_0x48a97d(0x1e5))](_0x21368f=>{const _0x5c15e5=_0x48a97d;let _0x52766b=_0x255497=>_0x21368f[_0x5c15e5(0x1e4)](_0x255497);_0x2da835[_0x5c15e5(0x214)]('open',_0x52766b),_0x100a0f[_0x5c15e5(0x1f0)]((0x0,t[_0x5c15e5(0x1e6)])(()=>_0x2da835['removeEventListener'](_0x5c15e5(0x1ea),_0x52766b)));})[_0x48a97d(0x220)]((0x0,r[_0x48a97d(0x222)])()),'close$':new r[(_0x48a97d(0x1e5))](_0x42093d=>{const _0x34d8ce=_0x48a97d;let _0x2cd32a=_0x3223af=>_0x42093d[_0x34d8ce(0x1e4)](_0x3223af);_0x2da835['addEventListener'](_0x34d8ce(0x1f3),_0x2cd32a),_0x100a0f[_0x34d8ce(0x1f0)]((0x0,t[_0x34d8ce(0x1e6)])(()=>_0x2da835['removeEventListener'](_0x34d8ce(0x1f3),_0x2cd32a)));})[_0x48a97d(0x220)]((0x0,r['share'])()),'error$':new r[(_0x48a97d(0x1e5))](_0x276a61=>{const _0x4ef437=_0x48a97d;let _0x2a853c=_0x5d9c25=>_0x276a61[_0x4ef437(0x1e4)](_0x5d9c25);_0x2da835[_0x4ef437(0x214)](_0x4ef437(0x223),_0x2a853c),_0x100a0f[_0x4ef437(0x1f0)]((0x0,t['toDisposable'])(()=>_0x2da835[_0x4ef437(0x217)](_0x4ef437(0x223),_0x2a853c)));})[_0x48a97d(0x220)]((0x0,r[_0x48a97d(0x222)])()),'message$':new r['Observable'](_0x3831a9=>{const _0x5edf45=_0x48a97d;let _0x208bca=_0x53d60f=>_0x3831a9[_0x5edf45(0x1e4)](_0x53d60f);_0x2da835[_0x5edf45(0x214)](_0x5edf45(0x1f5),_0x208bca),_0x100a0f[_0x5edf45(0x1f0)]((0x0,t[_0x5edf45(0x1e6)])(()=>_0x2da835['removeEventListener'](_0x5edf45(0x1f5),_0x208bca)));})[_0x48a97d(0x220)]((0x0,r[_0x48a97d(0x222)])())};}catch(_0x51600a){return console[_0x48a97d(0x223)](_0x51600a),null;}}};f=d([u(0x0,t[_0x4cba16(0x207)])],f);function p(_0x4be6bc){'@babel/helpers - typeof';const _0x3b9f78=_0x4cba16;return p=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x3b9f78(0x21b)?function(_0x1ddf4b){return typeof _0x1ddf4b;}:function(_0x422b10){const _0x50a65c=_0x3b9f78;return _0x422b10&&typeof Symbol==_0x50a65c(0x1e8)&&_0x422b10[_0x50a65c(0x1e9)]===Symbol&&_0x422b10!==Symbol['prototype']?_0x50a65c(0x21b):typeof _0x422b10;},p(_0x4be6bc);}function m(_0x132b84,_0x1480d2){const _0x11c3b0=_0x4cba16;if(p(_0x132b84)!='object'||!_0x132b84)return _0x132b84;var _0x227a76=_0x132b84[Symbol[_0x11c3b0(0x208)]];if(_0x227a76!==void 0x0){var _0x55bd65=_0x227a76[_0x11c3b0(0x1e7)](_0x132b84,_0x1480d2||_0x11c3b0(0x1e1));if(p(_0x55bd65)!=_0x11c3b0(0x219))return _0x55bd65;throw TypeError(_0x11c3b0(0x1f8));}return(_0x1480d2===_0x11c3b0(0x20f)?String:Number)(_0x132b84);}function h(_0x224a07){const _0x3d83ae=_0x4cba16;var _0x4237bd=m(_0x224a07,_0x3d83ae(0x20f));return p(_0x4237bd)=='symbol'?_0x4237bd:_0x4237bd+'';}function g(_0x4b780b,_0x5424e9,_0x36d5c0){return(_0x5424e9=h(_0x5424e9))in _0x4b780b?Object['defineProperty'](_0x4b780b,_0x5424e9,{'value':_0x36d5c0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4b780b[_0x5424e9]=_0x36d5c0,_0x4b780b;}let _=class extends t[_0x4cba16(0x21d)]{constructor(_0x4b322d=s,_0x312839,_0x21632a){const _0x21f71e=_0x4cba16;super(),this[_0x21f71e(0x1ff)]=_0x312839,this[_0x21f71e(0x20a)]=_0x21632a,this[_0x21f71e(0x1ff)]['setConfig'](o,_0x4b322d);}[_0x4cba16(0x229)](){this['_registerDependencies']();}['_registerDependencies'](){const _0x1003f9=_0x4cba16;(0x0,t[_0x1003f9(0x1f2)])(this[_0x1003f9(0x20a)],[[n[_0x1003f9(0x210)],{'useClass':f}]]);}};g(_,_0x4cba16(0x1fd),_0x4cba16(0x22a)),g(_,_0x4cba16(0x200),c),g(_,_0x4cba16(0x1f1),l),_=d([(0x0,t[_0x4cba16(0x1f9)])(e[_0x4cba16(0x224)]),u(0x1,t[_0x4cba16(0x207)]),u(0x2,(0x0,t[_0x4cba16(0x20c)])(t[_0x4cba16(0x212)]))],_);let v=class extends e[_0x4cba16(0x1e3)]{constructor(_0x564eab,_0x4a3886,_0x316c13,_0x164b0d,_0x56beca){const _0x239483=_0x4cba16;super(_0x564eab,_0x4a3886,_0x316c13,_0x164b0d,_0x56beca);let _0x5255f4=this[_0x239483(0x1ff)][_0x239483(0x228)](e[_0x239483(0x1ef)]);this[_0x239483(0x201)][_0x239483(0x1f7)]({'interceptor':(_0x533aaf,_0x4e1ce5)=>{const _0x4a43f3=_0x239483;let _0x421e77=_0x533aaf[_0x4a43f3(0x1ed)];if(_0x5255f4!=null&&_0x5255f4['customHeaders']){for(let _0xd3f75b in _0x5255f4[_0x4a43f3(0x1ec)])_0x421e77[_0x4a43f3(0x1fe)](_0xd3f75b,_0x5255f4[_0x4a43f3(0x1ec)][_0xd3f75b]);}return _0x4e1ce5(_0x533aaf);}});}async[_0x4cba16(0x21a)](_0x1348b7){const _0x298f64=_0x4cba16;return this[_0x298f64(0x216)](_0x1348b7);}};v=d([u(0x0,(0x0,t[_0x4cba16(0x20c)])(t[_0x4cba16(0x212)])),u(0x1,(0x0,t['Inject'])(n[_0x4cba16(0x213)])),u(0x2,t[_0x4cba16(0x207)]),u(0x3,t[_0x4cba16(0x20d)]),u(0x4,a[_0x4cba16(0x1e2)])],v),exports[_0x4cba16(0x202)]=o,Object[_0x4cba16(0x226)](exports,'NodeCollaborationSocketService',{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x4cba16(0x226)](exports,_0x4cba16(0x22b),{'enumerable':!0x0,'get':function(){return _;}});
1
+ const _0x7ceb2=_0x551d;(function(_0x54cbe1,_0x3d2fb3){const _0x2bc8c1=_0x551d,_0x52cfec=_0x54cbe1();while(!![]){try{const _0xc28007=parseInt(_0x2bc8c1(0x205))/0x1*(parseInt(_0x2bc8c1(0x1e7))/0x2)+parseInt(_0x2bc8c1(0x1ff))/0x3+-parseInt(_0x2bc8c1(0x20c))/0x4+parseInt(_0x2bc8c1(0x1d1))/0x5*(-parseInt(_0x2bc8c1(0x1ee))/0x6)+parseInt(_0x2bc8c1(0x1f1))/0x7*(-parseInt(_0x2bc8c1(0x20a))/0x8)+-parseInt(_0x2bc8c1(0x1f4))/0x9+parseInt(_0x2bc8c1(0x1e8))/0xa;if(_0xc28007===_0x3d2fb3)break;else _0x52cfec['push'](_0x52cfec['shift']());}catch(_0x16cd57){_0x52cfec['push'](_0x52cfec['shift']());}}}(_0x1cf5,0x9a5e6),Object['defineProperty'](exports,Symbol[_0x7ceb2(0x1d7)],{'value':_0x7ceb2(0x1f9)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/network'),r=require('rxjs'),i=require('ws'),a=require('@univerjs-pro/collaboration');const o=_0x7ceb2(0x1eb),s={};var c=_0x7ceb2(0x1de),l='0.25.2';function u(_0x1ed438,_0x53b059){return function(_0x41e07c,_0x1b6220){_0x53b059(_0x41e07c,_0x1b6220,_0x1ed438);};}function _0x551d(_0xa9d432,_0x227837){_0xa9d432=_0xa9d432-0x1ce;const _0x1cf5b9=_0x1cf5();let _0x551d92=_0x1cf5b9[_0xa9d432];return _0x551d92;}function d(_0x416dbf,_0x1409ad,_0x12f0ff,_0x104fc3){const _0x5949f9=_0x7ceb2;var _0x1d9398=arguments[_0x5949f9(0x1f6)],_0x46beb7=_0x1d9398<0x3?_0x1409ad:_0x104fc3===null?_0x104fc3=Object[_0x5949f9(0x216)](_0x1409ad,_0x12f0ff):_0x104fc3,_0x128a7f;if(typeof Reflect==_0x5949f9(0x1d2)&&typeof Reflect[_0x5949f9(0x206)]==_0x5949f9(0x1fe))_0x46beb7=Reflect[_0x5949f9(0x206)](_0x416dbf,_0x1409ad,_0x12f0ff,_0x104fc3);else{for(var _0x77f723=_0x416dbf[_0x5949f9(0x1f6)]-0x1;_0x77f723>=0x0;_0x77f723--)(_0x128a7f=_0x416dbf[_0x77f723])&&(_0x46beb7=(_0x1d9398<0x3?_0x128a7f(_0x46beb7):_0x1d9398>0x3?_0x128a7f(_0x1409ad,_0x12f0ff,_0x46beb7):_0x128a7f(_0x1409ad,_0x12f0ff))||_0x46beb7);}return _0x1d9398>0x3&&_0x46beb7&&Object[_0x5949f9(0x1e6)](_0x1409ad,_0x12f0ff,_0x46beb7),_0x46beb7;}let f=class extends t[_0x7ceb2(0x1e9)]{constructor(_0x2f5c83){const _0x2d8c6b=_0x7ceb2;super(),this[_0x2d8c6b(0x1fb)]=_0x2f5c83;}[_0x7ceb2(0x213)](_0x1372df){const _0xf667d5=_0x7ceb2;var _0x3e45bd;let _0x5eeff9=((_0x3e45bd=this[_0xf667d5(0x1fb)][_0xf667d5(0x211)](e[_0xf667d5(0x200)]))==null?void 0x0:_0x3e45bd[_0xf667d5(0x210)])||{};try{let _0x210009=new i[(_0xf667d5(0x1fa))](_0x1372df,{'headers':{..._0x5eeff9}}),_0x133d13=new t['DisposableCollection']();return{'URL':_0x1372df,'close':(_0x5c03e6,_0x4bb0a9)=>{const _0x4ff582=_0xf667d5;_0x210009[_0x4ff582(0x1da)](_0x5c03e6,_0x4bb0a9),_0x133d13['dispose']();},'send':_0x473843=>{const _0x4ab54e=_0xf667d5;_0x210009[_0x4ab54e(0x1ed)](_0x473843);},'open$':new r[(_0xf667d5(0x1d4))](_0xc230d=>{const _0x57f476=_0xf667d5;let _0x4f2585=_0x5e3c43=>_0xc230d[_0x57f476(0x1d0)](_0x5e3c43);_0x210009[_0x57f476(0x1e1)]('open',_0x4f2585),_0x133d13[_0x57f476(0x1df)]((0x0,t[_0x57f476(0x202)])(()=>_0x210009[_0x57f476(0x201)](_0x57f476(0x1d5),_0x4f2585)));})['pipe']((0x0,r[_0xf667d5(0x1db)])()),'close$':new r[(_0xf667d5(0x1d4))](_0x1312b8=>{const _0x1bbdbd=_0xf667d5;let _0x1acfc8=_0x51f7c2=>_0x1312b8[_0x1bbdbd(0x1d0)](_0x51f7c2);_0x210009['addEventListener']('close',_0x1acfc8),_0x133d13['add']((0x0,t[_0x1bbdbd(0x202)])(()=>_0x210009[_0x1bbdbd(0x201)](_0x1bbdbd(0x1da),_0x1acfc8)));})[_0xf667d5(0x203)]((0x0,r[_0xf667d5(0x1db)])()),'error$':new r[(_0xf667d5(0x1d4))](_0x281258=>{const _0x9a03c1=_0xf667d5;let _0x1a5d80=_0x17352f=>_0x281258[_0x9a03c1(0x1d0)](_0x17352f);_0x210009[_0x9a03c1(0x1e1)]('error',_0x1a5d80),_0x133d13[_0x9a03c1(0x1df)]((0x0,t['toDisposable'])(()=>_0x210009[_0x9a03c1(0x201)](_0x9a03c1(0x1ce),_0x1a5d80)));})[_0xf667d5(0x203)]((0x0,r[_0xf667d5(0x1db)])()),'message$':new r[(_0xf667d5(0x1d4))](_0xb6055c=>{const _0x242390=_0xf667d5;let _0x1f7a9e=_0x520174=>_0xb6055c['next'](_0x520174);_0x210009[_0x242390(0x1e1)](_0x242390(0x20d),_0x1f7a9e),_0x133d13['add']((0x0,t[_0x242390(0x202)])(()=>_0x210009['removeEventListener'](_0x242390(0x20d),_0x1f7a9e)));})[_0xf667d5(0x203)]((0x0,r['share'])())};}catch(_0x29fb61){return console[_0xf667d5(0x1ce)](_0x29fb61),null;}}};f=d([u(0x0,t[_0x7ceb2(0x215)])],f);function _0x1cf5(){const _0x10363e=['_httpService','Observable','open','HTTPService','toStringTag','set','COLLABORATION_CLIENT_NODE_CONFIG_KEY','close','share','ISocketService','registerDependencies','@univerjs-pro/collaboration-client-node','add','onStarting','addEventListener','symbol','setConfig','_injector','DependentOn','defineProperty','30620xAxPzq','11746270SOLDFB','Disposable','default','collaboration-client-node.config','headers','send','5655912zrWujl','Injector','packageName','1241107QkxQyP','ISnapshotServerService','version','7218189pJalJQ','_registerDependencies','length','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','registerHTTPInterceptor','Module','WebSocket','_configService','prototype','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','function','2575110VMyHvV','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','removeEventListener','toDisposable','pipe','iterator','69PAvepa','decorate','constructor','Inject','_doCreateSocket','8lzRTwS','string','2140476jzzYHZ','message','Plugin','CollaborationSocketService','customHeaders','getConfig','UniverCollaborationClientNodePlugin','createSocket','pluginName','IConfigService','getOwnPropertyDescriptor','error','call','next','5SbKyLD','object'];_0x1cf5=function(){return _0x10363e;};return _0x1cf5();}function p(_0x32d7f4){'@babel/helpers - typeof';const _0x4c57f0=_0x7ceb2;return p=typeof Symbol=='function'&&typeof Symbol[_0x4c57f0(0x204)]==_0x4c57f0(0x1e2)?function(_0x51d53b){return typeof _0x51d53b;}:function(_0x464fe5){const _0x605b2b=_0x4c57f0;return _0x464fe5&&typeof Symbol==_0x605b2b(0x1fe)&&_0x464fe5[_0x605b2b(0x207)]===Symbol&&_0x464fe5!==Symbol[_0x605b2b(0x1fc)]?_0x605b2b(0x1e2):typeof _0x464fe5;},p(_0x32d7f4);}function m(_0x164411,_0x3350ff){const _0x569181=_0x7ceb2;if(p(_0x164411)!=_0x569181(0x1d2)||!_0x164411)return _0x164411;var _0x11ca8e=_0x164411[Symbol['toPrimitive']];if(_0x11ca8e!==void 0x0){var _0x58bd25=_0x11ca8e[_0x569181(0x1cf)](_0x164411,_0x3350ff||_0x569181(0x1ea));if(p(_0x58bd25)!=_0x569181(0x1d2))return _0x58bd25;throw TypeError(_0x569181(0x1fd));}return(_0x3350ff===_0x569181(0x20b)?String:Number)(_0x164411);}function h(_0x2d04a8){var _0x488244=m(_0x2d04a8,'string');return p(_0x488244)=='symbol'?_0x488244:_0x488244+'';}function g(_0x2704d6,_0xee140f,_0x49f845){const _0x41f851=_0x7ceb2;return(_0xee140f=h(_0xee140f))in _0x2704d6?Object[_0x41f851(0x1e6)](_0x2704d6,_0xee140f,{'value':_0x49f845,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2704d6[_0xee140f]=_0x49f845,_0x2704d6;}let _=class extends t[_0x7ceb2(0x20e)]{constructor(_0x4a2b94=s,_0x2a7a4,_0x4a2ec1){const _0x5b1e97=_0x7ceb2;super(),this[_0x5b1e97(0x1fb)]=_0x2a7a4,this['_injector']=_0x4a2ec1,this[_0x5b1e97(0x1fb)][_0x5b1e97(0x1e3)](o,_0x4a2b94);}[_0x7ceb2(0x1e0)](){const _0x352f27=_0x7ceb2;this[_0x352f27(0x1f5)]();}[_0x7ceb2(0x1f5)](){const _0x9a70e8=_0x7ceb2;(0x0,t[_0x9a70e8(0x1dd)])(this[_0x9a70e8(0x1e4)],[[n[_0x9a70e8(0x1dc)],{'useClass':f}]]);}};g(_,_0x7ceb2(0x214),_0x7ceb2(0x1f7)),g(_,_0x7ceb2(0x1f0),c),g(_,_0x7ceb2(0x1f3),l),_=d([(0x0,t[_0x7ceb2(0x1e5)])(e['UniverCollaborationClientPlugin']),u(0x1,t[_0x7ceb2(0x215)]),u(0x2,(0x0,t[_0x7ceb2(0x208)])(t[_0x7ceb2(0x1ef)]))],_);let v=class extends e[_0x7ceb2(0x20f)]{constructor(_0x3f5104,_0x3be39c,_0x122b88,_0x5a4c40,_0x2a3d0c){const _0x55053e=_0x7ceb2;super(_0x3f5104,_0x3be39c,_0x122b88,_0x5a4c40,_0x2a3d0c);let _0x381078=this[_0x55053e(0x1fb)][_0x55053e(0x211)](e[_0x55053e(0x200)]);this[_0x55053e(0x1d3)][_0x55053e(0x1f8)]({'interceptor':(_0x1af4e6,_0x5bc345)=>{const _0x27d22f=_0x55053e;let _0x53b56f=_0x1af4e6[_0x27d22f(0x1ec)];if(_0x381078!=null&&_0x381078[_0x27d22f(0x210)]){for(let _0xc89daa in _0x381078['customHeaders'])_0x53b56f[_0x27d22f(0x1d8)](_0xc89daa,_0x381078[_0x27d22f(0x210)][_0xc89daa]);}return _0x5bc345(_0x1af4e6);}});}async[_0x7ceb2(0x213)](_0x1411fe){const _0x2e4414=_0x7ceb2;return this[_0x2e4414(0x209)](_0x1411fe);}};v=d([u(0x0,(0x0,t[_0x7ceb2(0x208)])(t[_0x7ceb2(0x1ef)])),u(0x1,(0x0,t[_0x7ceb2(0x208)])(n[_0x7ceb2(0x1d6)])),u(0x2,t[_0x7ceb2(0x215)]),u(0x3,t['ILogService']),u(0x4,a[_0x7ceb2(0x1f2)])],v),exports[_0x7ceb2(0x1d9)]=o,Object[_0x7ceb2(0x1e6)](exports,'NodeCollaborationSocketService',{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x7ceb2(0x1e6)](exports,_0x7ceb2(0x212),{'enumerable':!0x0,'get':function(){return _;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5e53ec=_0x12cf;function _0x2ef4(){const _0x10e8d6=['addEventListener','782496BlQrYv','18KJIbqt','0.25.0','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pipe','customHeaders','next','1QFtJbI','packageName','headers','defineProperty','function','decorate','_configService','symbol','setConfig','add','object','_injector','@univerjs-pro/collaboration-client-node','6hUSGVA','7782852TBelNx','registerHTTPInterceptor','onStarting','close','error','_httpService','constructor','1714730aRjvbn','dispose','removeEventListener','createSocket','call','open','length','_registerDependencies','getOwnPropertyDescriptor','getConfig','toPrimitive','27779592XMQuZT','default','message','string','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','version','collaboration-client-node.config','5UgQeMz','2805486oKnKEb','prototype','3231851JMmaDz','8MDaBsM','704218MrWLTI','pluginName','set'];_0x2ef4=function(){return _0x10e8d6;};return _0x2ef4();}(function(_0x3f91a8,_0x5e638d){const _0x2882b7=_0x12cf,_0x27e1dd=_0x3f91a8();while(!![]){try{const _0x26e7a4=parseInt(_0x2882b7(0xc2))/0x1*(-parseInt(_0x2882b7(0xb7))/0x2)+parseInt(_0x2882b7(0xcf))/0x3*(parseInt(_0x2882b7(0xbb))/0x4)+-parseInt(_0x2882b7(0xb2))/0x5*(parseInt(_0x2882b7(0xb3))/0x6)+-parseInt(_0x2882b7(0xb5))/0x7*(parseInt(_0x2882b7(0xb6))/0x8)+parseInt(_0x2882b7(0xbc))/0x9*(-parseInt(_0x2882b7(0xd7))/0xa)+-parseInt(_0x2882b7(0xd0))/0xb+parseInt(_0x2882b7(0xab))/0xc;if(_0x26e7a4===_0x5e638d)break;else _0x27e1dd['push'](_0x27e1dd['shift']());}catch(_0xa1577c){_0x27e1dd['push'](_0x27e1dd['shift']());}}}(_0x2ef4,0x5b651));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x328162,CollaborationSocketService as _0x58b70e,UniverCollaborationClientPlugin as _0x1d3c2b}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x5ae4b0,Disposable as _0x177425,DisposableCollection as _0x20758f,IConfigService as _0xad3ba7,ILogService as _0x553122,Inject as _0x2f1572,Injector as _0x223922,Plugin as _0x6a520f,registerDependencies as _0x59ecfb,toDisposable as _0x34d89b}from'@univerjs/core';import{HTTPService as _0x2b11a1,ISocketService as _0x142def}from'@univerjs/network';import{Observable as _0x2c886d,share as _0x5be40a}from'rxjs';import{WebSocket as _0x5b9436}from'ws';import{ISnapshotServerService as _0x29a262}from'@univerjs-pro/collaboration';function _0x12cf(_0x221823,_0x3bcebc){_0x221823=_0x221823-0xa1;const _0x2ef423=_0x2ef4();let _0x12cf36=_0x2ef423[_0x221823];return _0x12cf36;}const y=_0x5e53ec(0xb1),b={};var x=_0x5e53ec(0xce),S=_0x5e53ec(0xbd);function C(_0x1dae04,_0x5f4722){return function(_0xe1e72,_0x5a62da){_0x5f4722(_0xe1e72,_0x5a62da,_0x1dae04);};}function w(_0x1cf1a1,_0x48e369,_0x5a57f5,_0x576929){const _0x2decd8=_0x5e53ec;var _0x3e18f7=arguments[_0x2decd8(0xa6)],_0x566d3e=_0x3e18f7<0x3?_0x48e369:_0x576929===null?_0x576929=Object[_0x2decd8(0xa8)](_0x48e369,_0x5a57f5):_0x576929,_0x5e51a4;if(typeof Reflect==_0x2decd8(0xcc)&&typeof Reflect['decorate']==_0x2decd8(0xc6))_0x566d3e=Reflect[_0x2decd8(0xc7)](_0x1cf1a1,_0x48e369,_0x5a57f5,_0x576929);else{for(var _0x3a1304=_0x1cf1a1[_0x2decd8(0xa6)]-0x1;_0x3a1304>=0x0;_0x3a1304--)(_0x5e51a4=_0x1cf1a1[_0x3a1304])&&(_0x566d3e=(_0x3e18f7<0x3?_0x5e51a4(_0x566d3e):_0x3e18f7>0x3?_0x5e51a4(_0x48e369,_0x5a57f5,_0x566d3e):_0x5e51a4(_0x48e369,_0x5a57f5))||_0x566d3e);}return _0x3e18f7>0x3&&_0x566d3e&&Object['defineProperty'](_0x48e369,_0x5a57f5,_0x566d3e),_0x566d3e;}let T=class extends _0x177425{constructor(_0x2c86c5){const _0x99b7d9=_0x5e53ec;super(),this[_0x99b7d9(0xc8)]=_0x2c86c5;}[_0x5e53ec(0xa3)](_0x137758){const _0x4113a2=_0x5e53ec;var _0x11cd20;let _0x363751=((_0x11cd20=this[_0x4113a2(0xc8)][_0x4113a2(0xa9)](_0x328162))==null?void 0x0:_0x11cd20[_0x4113a2(0xc0)])||{};try{let _0xdc5429=new _0x5b9436(_0x137758,{'headers':{..._0x363751}}),_0xc0474c=new _0x20758f();return{'URL':_0x137758,'close':(_0x4025e5,_0x16e9d0)=>{const _0xad695=_0x4113a2;_0xdc5429[_0xad695(0xd3)](_0x4025e5,_0x16e9d0),_0xc0474c[_0xad695(0xa1)]();},'send':_0x56d7fb=>{_0xdc5429['send'](_0x56d7fb);},'open$':new _0x2c886d(_0x29f1e4=>{const _0x1600b6=_0x4113a2;let _0x3b11d3=_0x172649=>_0x29f1e4[_0x1600b6(0xc1)](_0x172649);_0xdc5429[_0x1600b6(0xba)](_0x1600b6(0xa5),_0x3b11d3),_0xc0474c['add'](_0x34d89b(()=>_0xdc5429[_0x1600b6(0xa2)](_0x1600b6(0xa5),_0x3b11d3)));})[_0x4113a2(0xbf)](_0x5be40a()),'close$':new _0x2c886d(_0x5e9429=>{const _0x319d5c=_0x4113a2;let _0x1e8575=_0x32c546=>_0x5e9429[_0x319d5c(0xc1)](_0x32c546);_0xdc5429[_0x319d5c(0xba)](_0x319d5c(0xd3),_0x1e8575),_0xc0474c[_0x319d5c(0xcb)](_0x34d89b(()=>_0xdc5429[_0x319d5c(0xa2)](_0x319d5c(0xd3),_0x1e8575)));})[_0x4113a2(0xbf)](_0x5be40a()),'error$':new _0x2c886d(_0x380bbf=>{const _0x5a75f3=_0x4113a2;let _0x2280fd=_0x2f4f60=>_0x380bbf[_0x5a75f3(0xc1)](_0x2f4f60);_0xdc5429['addEventListener'](_0x5a75f3(0xd4),_0x2280fd),_0xc0474c[_0x5a75f3(0xcb)](_0x34d89b(()=>_0xdc5429[_0x5a75f3(0xa2)](_0x5a75f3(0xd4),_0x2280fd)));})[_0x4113a2(0xbf)](_0x5be40a()),'message$':new _0x2c886d(_0x1e8fd4=>{const _0x223cdc=_0x4113a2;let _0xaf8109=_0x1e9149=>_0x1e8fd4[_0x223cdc(0xc1)](_0x1e9149);_0xdc5429[_0x223cdc(0xba)]('message',_0xaf8109),_0xc0474c[_0x223cdc(0xcb)](_0x34d89b(()=>_0xdc5429[_0x223cdc(0xa2)](_0x223cdc(0xad),_0xaf8109)));})['pipe'](_0x5be40a())};}catch(_0x19dc42){return console['error'](_0x19dc42),null;}}};T=w([C(0x0,_0xad3ba7)],T);function E(_0x3636e5){'@babel/helpers - typeof';const _0x2b5522=_0x5e53ec;return E=typeof Symbol==_0x2b5522(0xc6)&&typeof Symbol['iterator']==_0x2b5522(0xc9)?function(_0x316c39){return typeof _0x316c39;}:function(_0x20075b){const _0x3ee7ad=_0x2b5522;return _0x20075b&&typeof Symbol==_0x3ee7ad(0xc6)&&_0x20075b[_0x3ee7ad(0xd6)]===Symbol&&_0x20075b!==Symbol[_0x3ee7ad(0xb4)]?'symbol':typeof _0x20075b;},E(_0x3636e5);}function D(_0x456661,_0xad226f){const _0x10981a=_0x5e53ec;if(E(_0x456661)!=_0x10981a(0xcc)||!_0x456661)return _0x456661;var _0x553749=_0x456661[Symbol[_0x10981a(0xaa)]];if(_0x553749!==void 0x0){var _0x2861aa=_0x553749[_0x10981a(0xa4)](_0x456661,_0xad226f||_0x10981a(0xac));if(E(_0x2861aa)!='object')return _0x2861aa;throw TypeError(_0x10981a(0xbe));}return(_0xad226f===_0x10981a(0xae)?String:Number)(_0x456661);}function O(_0x4959c7){const _0x48aa56=_0x5e53ec;var _0x5e77f6=D(_0x4959c7,_0x48aa56(0xae));return E(_0x5e77f6)==_0x48aa56(0xc9)?_0x5e77f6:_0x5e77f6+'';}function k(_0x3a6a01,_0x960556,_0x24a37f){const _0xf55264=_0x5e53ec;return(_0x960556=O(_0x960556))in _0x3a6a01?Object[_0xf55264(0xc5)](_0x3a6a01,_0x960556,{'value':_0x24a37f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a6a01[_0x960556]=_0x24a37f,_0x3a6a01;}let A=class extends _0x6a520f{constructor(_0x5bbd84=b,_0x128233,_0x1a48b1){const _0x3bc87c=_0x5e53ec;super(),this[_0x3bc87c(0xc8)]=_0x128233,this[_0x3bc87c(0xcd)]=_0x1a48b1,this[_0x3bc87c(0xc8)][_0x3bc87c(0xca)](y,_0x5bbd84);}[_0x5e53ec(0xd2)](){const _0x3b0db4=_0x5e53ec;this[_0x3b0db4(0xa7)]();}[_0x5e53ec(0xa7)](){_0x59ecfb(this['_injector'],[[_0x142def,{'useClass':T}]]);}};k(A,_0x5e53ec(0xb8),_0x5e53ec(0xaf)),k(A,_0x5e53ec(0xc3),x),k(A,_0x5e53ec(0xb0),S),A=w([_0x5ae4b0(_0x1d3c2b),C(0x1,_0xad3ba7),C(0x2,_0x2f1572(_0x223922))],A);let j=class extends _0x58b70e{constructor(_0x4e7104,_0x525d58,_0x3f0dca,_0x2f8c21,_0x300d5e){const _0xd6bf04=_0x5e53ec;super(_0x4e7104,_0x525d58,_0x3f0dca,_0x2f8c21,_0x300d5e);let _0x1c9362=this[_0xd6bf04(0xc8)][_0xd6bf04(0xa9)](_0x328162);this[_0xd6bf04(0xd5)][_0xd6bf04(0xd1)]({'interceptor':(_0x5ea436,_0x1ad3a2)=>{const _0x4af417=_0xd6bf04;let _0x42c04a=_0x5ea436[_0x4af417(0xc4)];if(_0x1c9362!=null&&_0x1c9362[_0x4af417(0xc0)]){for(let _0x26b7e8 in _0x1c9362[_0x4af417(0xc0)])_0x42c04a[_0x4af417(0xb9)](_0x26b7e8,_0x1c9362['customHeaders'][_0x26b7e8]);}return _0x1ad3a2(_0x5ea436);}});}async['createSocket'](_0x1d5086){return this['_doCreateSocket'](_0x1d5086);}};j=w([C(0x0,_0x2f1572(_0x223922)),C(0x1,_0x2f1572(_0x2b11a1)),C(0x2,_0xad3ba7),C(0x3,_0x553122),C(0x4,_0x29a262)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0x57fe4b=_0x2134;(function(_0x168b2d,_0x18aa30){const _0xd965bb=_0x2134,_0x5e3570=_0x168b2d();while(!![]){try{const _0x3b060e=parseInt(_0xd965bb(0x1cc))/0x1+parseInt(_0xd965bb(0x1b6))/0x2+-parseInt(_0xd965bb(0x1c0))/0x3+-parseInt(_0xd965bb(0x1a6))/0x4+parseInt(_0xd965bb(0x1c2))/0x5*(-parseInt(_0xd965bb(0x1a7))/0x6)+-parseInt(_0xd965bb(0x1a9))/0x7+-parseInt(_0xd965bb(0x1ad))/0x8*(-parseInt(_0xd965bb(0x1a4))/0x9);if(_0x3b060e===_0x18aa30)break;else _0x5e3570['push'](_0x5e3570['shift']());}catch(_0xd22440){_0x5e3570['push'](_0x5e3570['shift']());}}}(_0x52e4,0x8db60));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x4e3e91,CollaborationSocketService as _0x1aa866,UniverCollaborationClientPlugin as _0x1450d7}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x18c3de,Disposable as _0x386d87,DisposableCollection as _0xe9d5e5,IConfigService as _0x2a1401,ILogService as _0x139940,Inject as _0x4701b4,Injector as _0x57a3b3,Plugin as _0x4c3ca1,registerDependencies as _0x226470,toDisposable as _0x1acf27}from'@univerjs/core';import{HTTPService as _0x3c9ce1,ISocketService as _0x17fa88}from'@univerjs/network';import{Observable as _0x6b13f1,share as _0x5c5e2e}from'rxjs';function _0x2134(_0x2d77b4,_0x16cef3){_0x2d77b4=_0x2d77b4-0x19e;const _0x52e4dc=_0x52e4();let _0x2134df=_0x52e4dc[_0x2d77b4];return _0x2134df;}import{WebSocket as _0xe89495}from'ws';import{ISnapshotServerService as _0x29057c}from'@univerjs-pro/collaboration';const y=_0x57fe4b(0x1a0),b={};var x=_0x57fe4b(0x1c8),S=_0x57fe4b(0x1c3);function C(_0x18ff53,_0xfbc772){return function(_0x136535,_0x3da90e){_0xfbc772(_0x136535,_0x3da90e,_0x18ff53);};}function w(_0x469254,_0xf6835a,_0x141c92,_0x3c63f6){const _0x3f70eb=_0x57fe4b;var _0x3434dd=arguments[_0x3f70eb(0x1ba)],_0x41610b=_0x3434dd<0x3?_0xf6835a:_0x3c63f6===null?_0x3c63f6=Object[_0x3f70eb(0x1a5)](_0xf6835a,_0x141c92):_0x3c63f6,_0x3f6da8;if(typeof Reflect=='object'&&typeof Reflect[_0x3f70eb(0x1bc)]==_0x3f70eb(0x1cf))_0x41610b=Reflect[_0x3f70eb(0x1bc)](_0x469254,_0xf6835a,_0x141c92,_0x3c63f6);else{for(var _0x503630=_0x469254[_0x3f70eb(0x1ba)]-0x1;_0x503630>=0x0;_0x503630--)(_0x3f6da8=_0x469254[_0x503630])&&(_0x41610b=(_0x3434dd<0x3?_0x3f6da8(_0x41610b):_0x3434dd>0x3?_0x3f6da8(_0xf6835a,_0x141c92,_0x41610b):_0x3f6da8(_0xf6835a,_0x141c92))||_0x41610b);}return _0x3434dd>0x3&&_0x41610b&&Object[_0x3f70eb(0x1c6)](_0xf6835a,_0x141c92,_0x41610b),_0x41610b;}let T=class extends _0x386d87{constructor(_0x1c7e7e){const _0x29d1db=_0x57fe4b;super(),this[_0x29d1db(0x1b8)]=_0x1c7e7e;}[_0x57fe4b(0x1b3)](_0x239ed9){const _0x3a40b0=_0x57fe4b;var _0x201a47;let _0x514a37=((_0x201a47=this[_0x3a40b0(0x1b8)]['getConfig'](_0x4e3e91))==null?void 0x0:_0x201a47[_0x3a40b0(0x1d2)])||{};try{let _0x593ab3=new _0xe89495(_0x239ed9,{'headers':{..._0x514a37}}),_0x484672=new _0xe9d5e5();return{'URL':_0x239ed9,'close':(_0x1b4c10,_0x126825)=>{const _0x510b8e=_0x3a40b0;_0x593ab3[_0x510b8e(0x1b2)](_0x1b4c10,_0x126825),_0x484672[_0x510b8e(0x1b1)]();},'send':_0x712ae3=>{const _0x415a51=_0x3a40b0;_0x593ab3[_0x415a51(0x1bf)](_0x712ae3);},'open$':new _0x6b13f1(_0x109a96=>{const _0x2e2453=_0x3a40b0;let _0x9477be=_0x3b06fd=>_0x109a96['next'](_0x3b06fd);_0x593ab3[_0x2e2453(0x1a8)](_0x2e2453(0x1af),_0x9477be),_0x484672[_0x2e2453(0x1a3)](_0x1acf27(()=>_0x593ab3[_0x2e2453(0x19e)](_0x2e2453(0x1af),_0x9477be)));})[_0x3a40b0(0x1c5)](_0x5c5e2e()),'close$':new _0x6b13f1(_0x4674d8=>{const _0x254f79=_0x3a40b0;let _0x834bd2=_0x10e396=>_0x4674d8['next'](_0x10e396);_0x593ab3[_0x254f79(0x1a8)](_0x254f79(0x1b2),_0x834bd2),_0x484672[_0x254f79(0x1a3)](_0x1acf27(()=>_0x593ab3[_0x254f79(0x19e)](_0x254f79(0x1b2),_0x834bd2)));})['pipe'](_0x5c5e2e()),'error$':new _0x6b13f1(_0x41516f=>{const _0x45b64a=_0x3a40b0;let _0x5b747c=_0xa08e57=>_0x41516f['next'](_0xa08e57);_0x593ab3[_0x45b64a(0x1a8)](_0x45b64a(0x1c9),_0x5b747c),_0x484672[_0x45b64a(0x1a3)](_0x1acf27(()=>_0x593ab3['removeEventListener'](_0x45b64a(0x1c9),_0x5b747c)));})[_0x3a40b0(0x1c5)](_0x5c5e2e()),'message$':new _0x6b13f1(_0x179088=>{const _0x58005f=_0x3a40b0;let _0x120ad6=_0x4d32bc=>_0x179088[_0x58005f(0x1a1)](_0x4d32bc);_0x593ab3[_0x58005f(0x1a8)]('message',_0x120ad6),_0x484672[_0x58005f(0x1a3)](_0x1acf27(()=>_0x593ab3[_0x58005f(0x19e)](_0x58005f(0x1cd),_0x120ad6)));})[_0x3a40b0(0x1c5)](_0x5c5e2e())};}catch(_0x4e31cd){return console[_0x3a40b0(0x1c9)](_0x4e31cd),null;}}};T=w([C(0x0,_0x2a1401)],T);function E(_0xfb3498){'@babel/helpers - typeof';const _0x428a50=_0x57fe4b;return E=typeof Symbol=='function'&&typeof Symbol[_0x428a50(0x19f)]==_0x428a50(0x1b7)?function(_0x30acfe){return typeof _0x30acfe;}:function(_0x4c6f7b){const _0x1e73b9=_0x428a50;return _0x4c6f7b&&typeof Symbol==_0x1e73b9(0x1cf)&&_0x4c6f7b[_0x1e73b9(0x1ab)]===Symbol&&_0x4c6f7b!==Symbol[_0x1e73b9(0x1ac)]?_0x1e73b9(0x1b7):typeof _0x4c6f7b;},E(_0xfb3498);}function D(_0x3c37a0,_0x4632ee){const _0x1dfb2f=_0x57fe4b;if(E(_0x3c37a0)!=_0x1dfb2f(0x1bb)||!_0x3c37a0)return _0x3c37a0;var _0x5d7ab5=_0x3c37a0[Symbol['toPrimitive']];if(_0x5d7ab5!==void 0x0){var _0x5a72cd=_0x5d7ab5['call'](_0x3c37a0,_0x4632ee||_0x1dfb2f(0x1b4));if(E(_0x5a72cd)!='object')return _0x5a72cd;throw TypeError(_0x1dfb2f(0x1cb));}return(_0x4632ee===_0x1dfb2f(0x1d0)?String:Number)(_0x3c37a0);}function O(_0x2ef4e2){const _0x44bedc=_0x57fe4b;var _0x970427=D(_0x2ef4e2,_0x44bedc(0x1d0));return E(_0x970427)==_0x44bedc(0x1b7)?_0x970427:_0x970427+'';}function k(_0x1d4ca3,_0x56567e,_0x3a7273){const _0x2e7e8d=_0x57fe4b;return(_0x56567e=O(_0x56567e))in _0x1d4ca3?Object[_0x2e7e8d(0x1c6)](_0x1d4ca3,_0x56567e,{'value':_0x3a7273,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1d4ca3[_0x56567e]=_0x3a7273,_0x1d4ca3;}let A=class extends _0x4c3ca1{constructor(_0x433816=b,_0x3d8765,_0x5641ec){const _0x4300a0=_0x57fe4b;super(),this['_configService']=_0x3d8765,this[_0x4300a0(0x1ae)]=_0x5641ec,this['_configService'][_0x4300a0(0x1bd)](y,_0x433816);}[_0x57fe4b(0x1c7)](){const _0x2f5887=_0x57fe4b;this[_0x2f5887(0x1a2)]();}[_0x57fe4b(0x1a2)](){const _0x1ccad0=_0x57fe4b;_0x226470(this[_0x1ccad0(0x1ae)],[[_0x17fa88,{'useClass':T}]]);}};k(A,_0x57fe4b(0x1c1),_0x57fe4b(0x1be)),k(A,_0x57fe4b(0x1d1),x),k(A,_0x57fe4b(0x1b5),S),A=w([_0x18c3de(_0x1450d7),C(0x1,_0x2a1401),C(0x2,_0x4701b4(_0x57a3b3))],A);let j=class extends _0x1aa866{constructor(_0x20ea9a,_0x1e5beb,_0x95d853,_0x297075,_0x5be7a6){const _0x228f35=_0x57fe4b;super(_0x20ea9a,_0x1e5beb,_0x95d853,_0x297075,_0x5be7a6);let _0x705bc3=this['_configService'][_0x228f35(0x1ca)](_0x4e3e91);this[_0x228f35(0x1ce)][_0x228f35(0x1aa)]({'interceptor':(_0x1d5a11,_0x52a8c8)=>{const _0x54242f=_0x228f35;let _0x481169=_0x1d5a11[_0x54242f(0x1b0)];if(_0x705bc3!=null&&_0x705bc3[_0x54242f(0x1d2)]){for(let _0x244045 in _0x705bc3[_0x54242f(0x1d2)])_0x481169[_0x54242f(0x1c4)](_0x244045,_0x705bc3[_0x54242f(0x1d2)][_0x244045]);}return _0x52a8c8(_0x1d5a11);}});}async[_0x57fe4b(0x1b3)](_0x9849dd){const _0x1b843b=_0x57fe4b;return this[_0x1b843b(0x1b9)](_0x9849dd);}};function _0x52e4(){const _0x160501=['customHeaders','removeEventListener','iterator','collaboration-client-node.config','next','_registerDependencies','add','27ZhNxlt','getOwnPropertyDescriptor','3548932piIjgH','447978cmeakO','addEventListener','2465127oUdRNS','registerHTTPInterceptor','constructor','prototype','4479240SbhWiZ','_injector','open','headers','dispose','close','createSocket','default','version','1008170MwtcVO','symbol','_configService','_doCreateSocket','length','object','decorate','setConfig','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','send','2407593kgMbUS','pluginName','5cCvQVU','0.25.2','set','pipe','defineProperty','onStarting','@univerjs-pro/collaboration-client-node','error','getConfig','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','513236cwcMmi','message','_httpService','function','string','packageName'];_0x52e4=function(){return _0x160501;};return _0x52e4();}j=w([C(0x0,_0x4701b4(_0x57a3b3)),C(0x1,_0x4701b4(_0x3c9ce1)),C(0x2,_0x2a1401),C(0x3,_0x139940),C(0x4,_0x29057c)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5e53ec=_0x12cf;function _0x2ef4(){const _0x10e8d6=['addEventListener','782496BlQrYv','18KJIbqt','0.25.0','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pipe','customHeaders','next','1QFtJbI','packageName','headers','defineProperty','function','decorate','_configService','symbol','setConfig','add','object','_injector','@univerjs-pro/collaboration-client-node','6hUSGVA','7782852TBelNx','registerHTTPInterceptor','onStarting','close','error','_httpService','constructor','1714730aRjvbn','dispose','removeEventListener','createSocket','call','open','length','_registerDependencies','getOwnPropertyDescriptor','getConfig','toPrimitive','27779592XMQuZT','default','message','string','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','version','collaboration-client-node.config','5UgQeMz','2805486oKnKEb','prototype','3231851JMmaDz','8MDaBsM','704218MrWLTI','pluginName','set'];_0x2ef4=function(){return _0x10e8d6;};return _0x2ef4();}(function(_0x3f91a8,_0x5e638d){const _0x2882b7=_0x12cf,_0x27e1dd=_0x3f91a8();while(!![]){try{const _0x26e7a4=parseInt(_0x2882b7(0xc2))/0x1*(-parseInt(_0x2882b7(0xb7))/0x2)+parseInt(_0x2882b7(0xcf))/0x3*(parseInt(_0x2882b7(0xbb))/0x4)+-parseInt(_0x2882b7(0xb2))/0x5*(parseInt(_0x2882b7(0xb3))/0x6)+-parseInt(_0x2882b7(0xb5))/0x7*(parseInt(_0x2882b7(0xb6))/0x8)+parseInt(_0x2882b7(0xbc))/0x9*(-parseInt(_0x2882b7(0xd7))/0xa)+-parseInt(_0x2882b7(0xd0))/0xb+parseInt(_0x2882b7(0xab))/0xc;if(_0x26e7a4===_0x5e638d)break;else _0x27e1dd['push'](_0x27e1dd['shift']());}catch(_0xa1577c){_0x27e1dd['push'](_0x27e1dd['shift']());}}}(_0x2ef4,0x5b651));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x328162,CollaborationSocketService as _0x58b70e,UniverCollaborationClientPlugin as _0x1d3c2b}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x5ae4b0,Disposable as _0x177425,DisposableCollection as _0x20758f,IConfigService as _0xad3ba7,ILogService as _0x553122,Inject as _0x2f1572,Injector as _0x223922,Plugin as _0x6a520f,registerDependencies as _0x59ecfb,toDisposable as _0x34d89b}from'@univerjs/core';import{HTTPService as _0x2b11a1,ISocketService as _0x142def}from'@univerjs/network';import{Observable as _0x2c886d,share as _0x5be40a}from'rxjs';import{WebSocket as _0x5b9436}from'ws';import{ISnapshotServerService as _0x29a262}from'@univerjs-pro/collaboration';function _0x12cf(_0x221823,_0x3bcebc){_0x221823=_0x221823-0xa1;const _0x2ef423=_0x2ef4();let _0x12cf36=_0x2ef423[_0x221823];return _0x12cf36;}const y=_0x5e53ec(0xb1),b={};var x=_0x5e53ec(0xce),S=_0x5e53ec(0xbd);function C(_0x1dae04,_0x5f4722){return function(_0xe1e72,_0x5a62da){_0x5f4722(_0xe1e72,_0x5a62da,_0x1dae04);};}function w(_0x1cf1a1,_0x48e369,_0x5a57f5,_0x576929){const _0x2decd8=_0x5e53ec;var _0x3e18f7=arguments[_0x2decd8(0xa6)],_0x566d3e=_0x3e18f7<0x3?_0x48e369:_0x576929===null?_0x576929=Object[_0x2decd8(0xa8)](_0x48e369,_0x5a57f5):_0x576929,_0x5e51a4;if(typeof Reflect==_0x2decd8(0xcc)&&typeof Reflect['decorate']==_0x2decd8(0xc6))_0x566d3e=Reflect[_0x2decd8(0xc7)](_0x1cf1a1,_0x48e369,_0x5a57f5,_0x576929);else{for(var _0x3a1304=_0x1cf1a1[_0x2decd8(0xa6)]-0x1;_0x3a1304>=0x0;_0x3a1304--)(_0x5e51a4=_0x1cf1a1[_0x3a1304])&&(_0x566d3e=(_0x3e18f7<0x3?_0x5e51a4(_0x566d3e):_0x3e18f7>0x3?_0x5e51a4(_0x48e369,_0x5a57f5,_0x566d3e):_0x5e51a4(_0x48e369,_0x5a57f5))||_0x566d3e);}return _0x3e18f7>0x3&&_0x566d3e&&Object['defineProperty'](_0x48e369,_0x5a57f5,_0x566d3e),_0x566d3e;}let T=class extends _0x177425{constructor(_0x2c86c5){const _0x99b7d9=_0x5e53ec;super(),this[_0x99b7d9(0xc8)]=_0x2c86c5;}[_0x5e53ec(0xa3)](_0x137758){const _0x4113a2=_0x5e53ec;var _0x11cd20;let _0x363751=((_0x11cd20=this[_0x4113a2(0xc8)][_0x4113a2(0xa9)](_0x328162))==null?void 0x0:_0x11cd20[_0x4113a2(0xc0)])||{};try{let _0xdc5429=new _0x5b9436(_0x137758,{'headers':{..._0x363751}}),_0xc0474c=new _0x20758f();return{'URL':_0x137758,'close':(_0x4025e5,_0x16e9d0)=>{const _0xad695=_0x4113a2;_0xdc5429[_0xad695(0xd3)](_0x4025e5,_0x16e9d0),_0xc0474c[_0xad695(0xa1)]();},'send':_0x56d7fb=>{_0xdc5429['send'](_0x56d7fb);},'open$':new _0x2c886d(_0x29f1e4=>{const _0x1600b6=_0x4113a2;let _0x3b11d3=_0x172649=>_0x29f1e4[_0x1600b6(0xc1)](_0x172649);_0xdc5429[_0x1600b6(0xba)](_0x1600b6(0xa5),_0x3b11d3),_0xc0474c['add'](_0x34d89b(()=>_0xdc5429[_0x1600b6(0xa2)](_0x1600b6(0xa5),_0x3b11d3)));})[_0x4113a2(0xbf)](_0x5be40a()),'close$':new _0x2c886d(_0x5e9429=>{const _0x319d5c=_0x4113a2;let _0x1e8575=_0x32c546=>_0x5e9429[_0x319d5c(0xc1)](_0x32c546);_0xdc5429[_0x319d5c(0xba)](_0x319d5c(0xd3),_0x1e8575),_0xc0474c[_0x319d5c(0xcb)](_0x34d89b(()=>_0xdc5429[_0x319d5c(0xa2)](_0x319d5c(0xd3),_0x1e8575)));})[_0x4113a2(0xbf)](_0x5be40a()),'error$':new _0x2c886d(_0x380bbf=>{const _0x5a75f3=_0x4113a2;let _0x2280fd=_0x2f4f60=>_0x380bbf[_0x5a75f3(0xc1)](_0x2f4f60);_0xdc5429['addEventListener'](_0x5a75f3(0xd4),_0x2280fd),_0xc0474c[_0x5a75f3(0xcb)](_0x34d89b(()=>_0xdc5429[_0x5a75f3(0xa2)](_0x5a75f3(0xd4),_0x2280fd)));})[_0x4113a2(0xbf)](_0x5be40a()),'message$':new _0x2c886d(_0x1e8fd4=>{const _0x223cdc=_0x4113a2;let _0xaf8109=_0x1e9149=>_0x1e8fd4[_0x223cdc(0xc1)](_0x1e9149);_0xdc5429[_0x223cdc(0xba)]('message',_0xaf8109),_0xc0474c[_0x223cdc(0xcb)](_0x34d89b(()=>_0xdc5429[_0x223cdc(0xa2)](_0x223cdc(0xad),_0xaf8109)));})['pipe'](_0x5be40a())};}catch(_0x19dc42){return console['error'](_0x19dc42),null;}}};T=w([C(0x0,_0xad3ba7)],T);function E(_0x3636e5){'@babel/helpers - typeof';const _0x2b5522=_0x5e53ec;return E=typeof Symbol==_0x2b5522(0xc6)&&typeof Symbol['iterator']==_0x2b5522(0xc9)?function(_0x316c39){return typeof _0x316c39;}:function(_0x20075b){const _0x3ee7ad=_0x2b5522;return _0x20075b&&typeof Symbol==_0x3ee7ad(0xc6)&&_0x20075b[_0x3ee7ad(0xd6)]===Symbol&&_0x20075b!==Symbol[_0x3ee7ad(0xb4)]?'symbol':typeof _0x20075b;},E(_0x3636e5);}function D(_0x456661,_0xad226f){const _0x10981a=_0x5e53ec;if(E(_0x456661)!=_0x10981a(0xcc)||!_0x456661)return _0x456661;var _0x553749=_0x456661[Symbol[_0x10981a(0xaa)]];if(_0x553749!==void 0x0){var _0x2861aa=_0x553749[_0x10981a(0xa4)](_0x456661,_0xad226f||_0x10981a(0xac));if(E(_0x2861aa)!='object')return _0x2861aa;throw TypeError(_0x10981a(0xbe));}return(_0xad226f===_0x10981a(0xae)?String:Number)(_0x456661);}function O(_0x4959c7){const _0x48aa56=_0x5e53ec;var _0x5e77f6=D(_0x4959c7,_0x48aa56(0xae));return E(_0x5e77f6)==_0x48aa56(0xc9)?_0x5e77f6:_0x5e77f6+'';}function k(_0x3a6a01,_0x960556,_0x24a37f){const _0xf55264=_0x5e53ec;return(_0x960556=O(_0x960556))in _0x3a6a01?Object[_0xf55264(0xc5)](_0x3a6a01,_0x960556,{'value':_0x24a37f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a6a01[_0x960556]=_0x24a37f,_0x3a6a01;}let A=class extends _0x6a520f{constructor(_0x5bbd84=b,_0x128233,_0x1a48b1){const _0x3bc87c=_0x5e53ec;super(),this[_0x3bc87c(0xc8)]=_0x128233,this[_0x3bc87c(0xcd)]=_0x1a48b1,this[_0x3bc87c(0xc8)][_0x3bc87c(0xca)](y,_0x5bbd84);}[_0x5e53ec(0xd2)](){const _0x3b0db4=_0x5e53ec;this[_0x3b0db4(0xa7)]();}[_0x5e53ec(0xa7)](){_0x59ecfb(this['_injector'],[[_0x142def,{'useClass':T}]]);}};k(A,_0x5e53ec(0xb8),_0x5e53ec(0xaf)),k(A,_0x5e53ec(0xc3),x),k(A,_0x5e53ec(0xb0),S),A=w([_0x5ae4b0(_0x1d3c2b),C(0x1,_0xad3ba7),C(0x2,_0x2f1572(_0x223922))],A);let j=class extends _0x58b70e{constructor(_0x4e7104,_0x525d58,_0x3f0dca,_0x2f8c21,_0x300d5e){const _0xd6bf04=_0x5e53ec;super(_0x4e7104,_0x525d58,_0x3f0dca,_0x2f8c21,_0x300d5e);let _0x1c9362=this[_0xd6bf04(0xc8)][_0xd6bf04(0xa9)](_0x328162);this[_0xd6bf04(0xd5)][_0xd6bf04(0xd1)]({'interceptor':(_0x5ea436,_0x1ad3a2)=>{const _0x4af417=_0xd6bf04;let _0x42c04a=_0x5ea436[_0x4af417(0xc4)];if(_0x1c9362!=null&&_0x1c9362[_0x4af417(0xc0)]){for(let _0x26b7e8 in _0x1c9362[_0x4af417(0xc0)])_0x42c04a[_0x4af417(0xb9)](_0x26b7e8,_0x1c9362['customHeaders'][_0x26b7e8]);}return _0x1ad3a2(_0x5ea436);}});}async['createSocket'](_0x1d5086){return this['_doCreateSocket'](_0x1d5086);}};j=w([C(0x0,_0x2f1572(_0x223922)),C(0x1,_0x2f1572(_0x2b11a1)),C(0x2,_0xad3ba7),C(0x3,_0x553122),C(0x4,_0x29a262)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0x57fe4b=_0x2134;(function(_0x168b2d,_0x18aa30){const _0xd965bb=_0x2134,_0x5e3570=_0x168b2d();while(!![]){try{const _0x3b060e=parseInt(_0xd965bb(0x1cc))/0x1+parseInt(_0xd965bb(0x1b6))/0x2+-parseInt(_0xd965bb(0x1c0))/0x3+-parseInt(_0xd965bb(0x1a6))/0x4+parseInt(_0xd965bb(0x1c2))/0x5*(-parseInt(_0xd965bb(0x1a7))/0x6)+-parseInt(_0xd965bb(0x1a9))/0x7+-parseInt(_0xd965bb(0x1ad))/0x8*(-parseInt(_0xd965bb(0x1a4))/0x9);if(_0x3b060e===_0x18aa30)break;else _0x5e3570['push'](_0x5e3570['shift']());}catch(_0xd22440){_0x5e3570['push'](_0x5e3570['shift']());}}}(_0x52e4,0x8db60));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x4e3e91,CollaborationSocketService as _0x1aa866,UniverCollaborationClientPlugin as _0x1450d7}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x18c3de,Disposable as _0x386d87,DisposableCollection as _0xe9d5e5,IConfigService as _0x2a1401,ILogService as _0x139940,Inject as _0x4701b4,Injector as _0x57a3b3,Plugin as _0x4c3ca1,registerDependencies as _0x226470,toDisposable as _0x1acf27}from'@univerjs/core';import{HTTPService as _0x3c9ce1,ISocketService as _0x17fa88}from'@univerjs/network';import{Observable as _0x6b13f1,share as _0x5c5e2e}from'rxjs';function _0x2134(_0x2d77b4,_0x16cef3){_0x2d77b4=_0x2d77b4-0x19e;const _0x52e4dc=_0x52e4();let _0x2134df=_0x52e4dc[_0x2d77b4];return _0x2134df;}import{WebSocket as _0xe89495}from'ws';import{ISnapshotServerService as _0x29057c}from'@univerjs-pro/collaboration';const y=_0x57fe4b(0x1a0),b={};var x=_0x57fe4b(0x1c8),S=_0x57fe4b(0x1c3);function C(_0x18ff53,_0xfbc772){return function(_0x136535,_0x3da90e){_0xfbc772(_0x136535,_0x3da90e,_0x18ff53);};}function w(_0x469254,_0xf6835a,_0x141c92,_0x3c63f6){const _0x3f70eb=_0x57fe4b;var _0x3434dd=arguments[_0x3f70eb(0x1ba)],_0x41610b=_0x3434dd<0x3?_0xf6835a:_0x3c63f6===null?_0x3c63f6=Object[_0x3f70eb(0x1a5)](_0xf6835a,_0x141c92):_0x3c63f6,_0x3f6da8;if(typeof Reflect=='object'&&typeof Reflect[_0x3f70eb(0x1bc)]==_0x3f70eb(0x1cf))_0x41610b=Reflect[_0x3f70eb(0x1bc)](_0x469254,_0xf6835a,_0x141c92,_0x3c63f6);else{for(var _0x503630=_0x469254[_0x3f70eb(0x1ba)]-0x1;_0x503630>=0x0;_0x503630--)(_0x3f6da8=_0x469254[_0x503630])&&(_0x41610b=(_0x3434dd<0x3?_0x3f6da8(_0x41610b):_0x3434dd>0x3?_0x3f6da8(_0xf6835a,_0x141c92,_0x41610b):_0x3f6da8(_0xf6835a,_0x141c92))||_0x41610b);}return _0x3434dd>0x3&&_0x41610b&&Object[_0x3f70eb(0x1c6)](_0xf6835a,_0x141c92,_0x41610b),_0x41610b;}let T=class extends _0x386d87{constructor(_0x1c7e7e){const _0x29d1db=_0x57fe4b;super(),this[_0x29d1db(0x1b8)]=_0x1c7e7e;}[_0x57fe4b(0x1b3)](_0x239ed9){const _0x3a40b0=_0x57fe4b;var _0x201a47;let _0x514a37=((_0x201a47=this[_0x3a40b0(0x1b8)]['getConfig'](_0x4e3e91))==null?void 0x0:_0x201a47[_0x3a40b0(0x1d2)])||{};try{let _0x593ab3=new _0xe89495(_0x239ed9,{'headers':{..._0x514a37}}),_0x484672=new _0xe9d5e5();return{'URL':_0x239ed9,'close':(_0x1b4c10,_0x126825)=>{const _0x510b8e=_0x3a40b0;_0x593ab3[_0x510b8e(0x1b2)](_0x1b4c10,_0x126825),_0x484672[_0x510b8e(0x1b1)]();},'send':_0x712ae3=>{const _0x415a51=_0x3a40b0;_0x593ab3[_0x415a51(0x1bf)](_0x712ae3);},'open$':new _0x6b13f1(_0x109a96=>{const _0x2e2453=_0x3a40b0;let _0x9477be=_0x3b06fd=>_0x109a96['next'](_0x3b06fd);_0x593ab3[_0x2e2453(0x1a8)](_0x2e2453(0x1af),_0x9477be),_0x484672[_0x2e2453(0x1a3)](_0x1acf27(()=>_0x593ab3[_0x2e2453(0x19e)](_0x2e2453(0x1af),_0x9477be)));})[_0x3a40b0(0x1c5)](_0x5c5e2e()),'close$':new _0x6b13f1(_0x4674d8=>{const _0x254f79=_0x3a40b0;let _0x834bd2=_0x10e396=>_0x4674d8['next'](_0x10e396);_0x593ab3[_0x254f79(0x1a8)](_0x254f79(0x1b2),_0x834bd2),_0x484672[_0x254f79(0x1a3)](_0x1acf27(()=>_0x593ab3[_0x254f79(0x19e)](_0x254f79(0x1b2),_0x834bd2)));})['pipe'](_0x5c5e2e()),'error$':new _0x6b13f1(_0x41516f=>{const _0x45b64a=_0x3a40b0;let _0x5b747c=_0xa08e57=>_0x41516f['next'](_0xa08e57);_0x593ab3[_0x45b64a(0x1a8)](_0x45b64a(0x1c9),_0x5b747c),_0x484672[_0x45b64a(0x1a3)](_0x1acf27(()=>_0x593ab3['removeEventListener'](_0x45b64a(0x1c9),_0x5b747c)));})[_0x3a40b0(0x1c5)](_0x5c5e2e()),'message$':new _0x6b13f1(_0x179088=>{const _0x58005f=_0x3a40b0;let _0x120ad6=_0x4d32bc=>_0x179088[_0x58005f(0x1a1)](_0x4d32bc);_0x593ab3[_0x58005f(0x1a8)]('message',_0x120ad6),_0x484672[_0x58005f(0x1a3)](_0x1acf27(()=>_0x593ab3[_0x58005f(0x19e)](_0x58005f(0x1cd),_0x120ad6)));})[_0x3a40b0(0x1c5)](_0x5c5e2e())};}catch(_0x4e31cd){return console[_0x3a40b0(0x1c9)](_0x4e31cd),null;}}};T=w([C(0x0,_0x2a1401)],T);function E(_0xfb3498){'@babel/helpers - typeof';const _0x428a50=_0x57fe4b;return E=typeof Symbol=='function'&&typeof Symbol[_0x428a50(0x19f)]==_0x428a50(0x1b7)?function(_0x30acfe){return typeof _0x30acfe;}:function(_0x4c6f7b){const _0x1e73b9=_0x428a50;return _0x4c6f7b&&typeof Symbol==_0x1e73b9(0x1cf)&&_0x4c6f7b[_0x1e73b9(0x1ab)]===Symbol&&_0x4c6f7b!==Symbol[_0x1e73b9(0x1ac)]?_0x1e73b9(0x1b7):typeof _0x4c6f7b;},E(_0xfb3498);}function D(_0x3c37a0,_0x4632ee){const _0x1dfb2f=_0x57fe4b;if(E(_0x3c37a0)!=_0x1dfb2f(0x1bb)||!_0x3c37a0)return _0x3c37a0;var _0x5d7ab5=_0x3c37a0[Symbol['toPrimitive']];if(_0x5d7ab5!==void 0x0){var _0x5a72cd=_0x5d7ab5['call'](_0x3c37a0,_0x4632ee||_0x1dfb2f(0x1b4));if(E(_0x5a72cd)!='object')return _0x5a72cd;throw TypeError(_0x1dfb2f(0x1cb));}return(_0x4632ee===_0x1dfb2f(0x1d0)?String:Number)(_0x3c37a0);}function O(_0x2ef4e2){const _0x44bedc=_0x57fe4b;var _0x970427=D(_0x2ef4e2,_0x44bedc(0x1d0));return E(_0x970427)==_0x44bedc(0x1b7)?_0x970427:_0x970427+'';}function k(_0x1d4ca3,_0x56567e,_0x3a7273){const _0x2e7e8d=_0x57fe4b;return(_0x56567e=O(_0x56567e))in _0x1d4ca3?Object[_0x2e7e8d(0x1c6)](_0x1d4ca3,_0x56567e,{'value':_0x3a7273,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1d4ca3[_0x56567e]=_0x3a7273,_0x1d4ca3;}let A=class extends _0x4c3ca1{constructor(_0x433816=b,_0x3d8765,_0x5641ec){const _0x4300a0=_0x57fe4b;super(),this['_configService']=_0x3d8765,this[_0x4300a0(0x1ae)]=_0x5641ec,this['_configService'][_0x4300a0(0x1bd)](y,_0x433816);}[_0x57fe4b(0x1c7)](){const _0x2f5887=_0x57fe4b;this[_0x2f5887(0x1a2)]();}[_0x57fe4b(0x1a2)](){const _0x1ccad0=_0x57fe4b;_0x226470(this[_0x1ccad0(0x1ae)],[[_0x17fa88,{'useClass':T}]]);}};k(A,_0x57fe4b(0x1c1),_0x57fe4b(0x1be)),k(A,_0x57fe4b(0x1d1),x),k(A,_0x57fe4b(0x1b5),S),A=w([_0x18c3de(_0x1450d7),C(0x1,_0x2a1401),C(0x2,_0x4701b4(_0x57a3b3))],A);let j=class extends _0x1aa866{constructor(_0x20ea9a,_0x1e5beb,_0x95d853,_0x297075,_0x5be7a6){const _0x228f35=_0x57fe4b;super(_0x20ea9a,_0x1e5beb,_0x95d853,_0x297075,_0x5be7a6);let _0x705bc3=this['_configService'][_0x228f35(0x1ca)](_0x4e3e91);this[_0x228f35(0x1ce)][_0x228f35(0x1aa)]({'interceptor':(_0x1d5a11,_0x52a8c8)=>{const _0x54242f=_0x228f35;let _0x481169=_0x1d5a11[_0x54242f(0x1b0)];if(_0x705bc3!=null&&_0x705bc3[_0x54242f(0x1d2)]){for(let _0x244045 in _0x705bc3[_0x54242f(0x1d2)])_0x481169[_0x54242f(0x1c4)](_0x244045,_0x705bc3[_0x54242f(0x1d2)][_0x244045]);}return _0x52a8c8(_0x1d5a11);}});}async[_0x57fe4b(0x1b3)](_0x9849dd){const _0x1b843b=_0x57fe4b;return this[_0x1b843b(0x1b9)](_0x9849dd);}};function _0x52e4(){const _0x160501=['customHeaders','removeEventListener','iterator','collaboration-client-node.config','next','_registerDependencies','add','27ZhNxlt','getOwnPropertyDescriptor','3548932piIjgH','447978cmeakO','addEventListener','2465127oUdRNS','registerHTTPInterceptor','constructor','prototype','4479240SbhWiZ','_injector','open','headers','dispose','close','createSocket','default','version','1008170MwtcVO','symbol','_configService','_doCreateSocket','length','object','decorate','setConfig','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','send','2407593kgMbUS','pluginName','5cCvQVU','0.25.2','set','pipe','defineProperty','onStarting','@univerjs-pro/collaboration-client-node','error','getConfig','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','513236cwcMmi','message','_httpService','function','string','packageName'];_0x52e4=function(){return _0x160501;};return _0x52e4();}j=w([C(0x0,_0x4701b4(_0x57a3b3)),C(0x1,_0x4701b4(_0x3c9ce1)),C(0x2,_0x2a1401),C(0x3,_0x139940),C(0x4,_0x29057c)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x29a2(_0x2aaa73,_0x56a39d){_0x2aaa73=_0x2aaa73-0xaf;const _0x29785e=_0x2978();let _0x29a28f=_0x29785e[_0x2aaa73];return _0x29a28f;}(function(_0x2218df,_0x124c92){const _0x8fccca=_0x29a2,_0x4d2659=_0x2218df();while(!![]){try{const _0x4b4c7a=parseInt(_0x8fccca(0xf9))/0x1*(-parseInt(_0x8fccca(0xfa))/0x2)+parseInt(_0x8fccca(0xc4))/0x3+-parseInt(_0x8fccca(0xf6))/0x4*(parseInt(_0x8fccca(0xdc))/0x5)+parseInt(_0x8fccca(0xfb))/0x6+-parseInt(_0x8fccca(0xb2))/0x7+-parseInt(_0x8fccca(0xbe))/0x8*(-parseInt(_0x8fccca(0xeb))/0x9)+parseInt(_0x8fccca(0xea))/0xa*(parseInt(_0x8fccca(0xbb))/0xb);if(_0x4b4c7a===_0x124c92)break;else _0x4d2659['push'](_0x4d2659['shift']());}catch(_0x7bfe7d){_0x4d2659['push'](_0x4d2659['shift']());}}}(_0x2978,0xd52f8),function(_0x7dbb74,_0x3485a6){const _0x11b1f7=_0x29a2;typeof exports==_0x11b1f7(0xf8)&&typeof module<'u'?_0x3485a6(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define=='function'&&define['amd']?define([_0x11b1f7(0xcd),_0x11b1f7(0xd2),_0x11b1f7(0xc1),'@univerjs/network','rxjs','@univerjs-pro/collaboration'],_0x3485a6):(_0x7dbb74=typeof globalThis<'u'?globalThis:_0x7dbb74||self,_0x3485a6(_0x7dbb74[_0x11b1f7(0xf5)]={},_0x7dbb74[_0x11b1f7(0xe0)],_0x7dbb74[_0x11b1f7(0xaf)],_0x7dbb74[_0x11b1f7(0xca)],_0x7dbb74[_0x11b1f7(0xed)],_0x7dbb74['UniverProCollaboration']));}(this,function(_0x496b35,_0x2f698f,_0x5d39fe,_0x5d1c0a,_0xec7f7d,_0xe51902){const _0x410398=_0x29a2;Object[_0x410398(0xd7)](_0x496b35,Symbol[_0x410398(0xe9)],{'value':'Module'});var _0x23ba35=(_0x61bf04,_0x531f4f)=>()=>(_0x531f4f||(_0x61bf04((_0x531f4f={'exports':{}})[_0x410398(0xcd)],_0x531f4f),_0x61bf04=null),_0x531f4f[_0x410398(0xcd)]);let _0x2009ba='collaboration-client-node.config',_0x5b55de={};var _0x55c6f5=_0x410398(0xe1),_0x342a8e='0.25.0',_0x54662e=_0x23ba35((_0x27ad80,_0x55a3ae)=>{const _0x3522b0=_0x410398;_0x55a3ae[_0x3522b0(0xcd)]=function(){throw Error('ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object');};})();function _0x2fc846(_0x983f74,_0x5c96fb){return function(_0x5c2ad2,_0x39c507){_0x5c96fb(_0x5c2ad2,_0x39c507,_0x983f74);};}function _0x2d46ed(_0x563c0a,_0x324bcd,_0x2e91af,_0x14bcca){const _0x38f6a8=_0x410398;var _0x273574=arguments['length'],_0x44dbc5=_0x273574<0x3?_0x324bcd:_0x14bcca===null?_0x14bcca=Object['getOwnPropertyDescriptor'](_0x324bcd,_0x2e91af):_0x14bcca,_0x7355ba;if(typeof Reflect==_0x38f6a8(0xf8)&&typeof Reflect[_0x38f6a8(0xf1)]=='function')_0x44dbc5=Reflect[_0x38f6a8(0xf1)](_0x563c0a,_0x324bcd,_0x2e91af,_0x14bcca);else{for(var _0x14e61e=_0x563c0a[_0x38f6a8(0xb4)]-0x1;_0x14e61e>=0x0;_0x14e61e--)(_0x7355ba=_0x563c0a[_0x14e61e])&&(_0x44dbc5=(_0x273574<0x3?_0x7355ba(_0x44dbc5):_0x273574>0x3?_0x7355ba(_0x324bcd,_0x2e91af,_0x44dbc5):_0x7355ba(_0x324bcd,_0x2e91af))||_0x44dbc5);}return _0x273574>0x3&&_0x44dbc5&&Object[_0x38f6a8(0xd7)](_0x324bcd,_0x2e91af,_0x44dbc5),_0x44dbc5;}let _0x38e9e6=class extends _0x5d39fe[_0x410398(0xee)]{constructor(_0x36c694){super(),this['_configService']=_0x36c694;}[_0x410398(0xb0)](_0x503e6c){const _0x9f98e=_0x410398;var _0x451dcb;let _0x2985e8=((_0x451dcb=this[_0x9f98e(0xce)][_0x9f98e(0xe6)](_0x2f698f[_0x9f98e(0xc8)]))==null?void 0x0:_0x451dcb[_0x9f98e(0xe3)])||{};try{let _0x2de4d7=new _0x54662e[(_0x9f98e(0xc6))](_0x503e6c,{'headers':{..._0x2985e8}}),_0x194d0e=new _0x5d39fe[(_0x9f98e(0xec))]();return{'URL':_0x503e6c,'close':(_0x2e89f9,_0x48190c)=>{const _0x283e14=_0x9f98e;_0x2de4d7[_0x283e14(0xe4)](_0x2e89f9,_0x48190c),_0x194d0e[_0x283e14(0xd9)]();},'send':_0x341d37=>{const _0x29bb87=_0x9f98e;_0x2de4d7[_0x29bb87(0xd5)](_0x341d37);},'open$':new _0xec7f7d['Observable'](_0x18a2bc=>{const _0x14c476=_0x9f98e;let _0x25bd4d=_0x347451=>_0x18a2bc[_0x14c476(0xd3)](_0x347451);_0x2de4d7[_0x14c476(0xda)](_0x14c476(0xde),_0x25bd4d),_0x194d0e['add']((0x0,_0x5d39fe[_0x14c476(0xb9)])(()=>_0x2de4d7['removeEventListener'](_0x14c476(0xde),_0x25bd4d)));})[_0x9f98e(0xd6)]((0x0,_0xec7f7d['share'])()),'close$':new _0xec7f7d[(_0x9f98e(0xbf))](_0x449d21=>{const _0x569205=_0x9f98e;let _0x3a3136=_0x90c0ba=>_0x449d21[_0x569205(0xd3)](_0x90c0ba);_0x2de4d7[_0x569205(0xda)](_0x569205(0xe4),_0x3a3136),_0x194d0e[_0x569205(0xc0)]((0x0,_0x5d39fe[_0x569205(0xb9)])(()=>_0x2de4d7['removeEventListener'](_0x569205(0xe4),_0x3a3136)));})[_0x9f98e(0xd6)]((0x0,_0xec7f7d[_0x9f98e(0xb5)])()),'error$':new _0xec7f7d[(_0x9f98e(0xbf))](_0x3de42b=>{const _0x5b627a=_0x9f98e;let _0x13d683=_0x3fb504=>_0x3de42b[_0x5b627a(0xd3)](_0x3fb504);_0x2de4d7[_0x5b627a(0xda)]('error',_0x13d683),_0x194d0e[_0x5b627a(0xc0)]((0x0,_0x5d39fe[_0x5b627a(0xb9)])(()=>_0x2de4d7[_0x5b627a(0xf0)]('error',_0x13d683)));})['pipe']((0x0,_0xec7f7d['share'])()),'message$':new _0xec7f7d[(_0x9f98e(0xbf))](_0x236bcb=>{const _0x6134ac=_0x9f98e;let _0x53c5b6=_0x4ca64d=>_0x236bcb['next'](_0x4ca64d);_0x2de4d7[_0x6134ac(0xda)]('message',_0x53c5b6),_0x194d0e[_0x6134ac(0xc0)]((0x0,_0x5d39fe[_0x6134ac(0xb9)])(()=>_0x2de4d7[_0x6134ac(0xf0)](_0x6134ac(0xd4),_0x53c5b6)));})['pipe']((0x0,_0xec7f7d['share'])())};}catch(_0x2a71ef){return console['error'](_0x2a71ef),null;}}};_0x38e9e6=_0x2d46ed([_0x2fc846(0x0,_0x5d39fe['IConfigService'])],_0x38e9e6);function _0x26233e(_0x1bb8a7){'@babel/helpers - typeof';const _0x360573=_0x410398;return _0x26233e=typeof Symbol==_0x360573(0xe8)&&typeof Symbol[_0x360573(0xef)]==_0x360573(0xe5)?function(_0x50320a){return typeof _0x50320a;}:function(_0x4a24a6){const _0x34fa65=_0x360573;return _0x4a24a6&&typeof Symbol==_0x34fa65(0xe8)&&_0x4a24a6[_0x34fa65(0xc3)]===Symbol&&_0x4a24a6!==Symbol['prototype']?_0x34fa65(0xe5):typeof _0x4a24a6;},_0x26233e(_0x1bb8a7);}function _0x3ad854(_0x5b7c25,_0x1b1b5e){const _0xad2b5e=_0x410398;if(_0x26233e(_0x5b7c25)!=_0xad2b5e(0xf8)||!_0x5b7c25)return _0x5b7c25;var _0x2d23db=_0x5b7c25[Symbol[_0xad2b5e(0xfd)]];if(_0x2d23db!==void 0x0){var _0x53dee5=_0x2d23db['call'](_0x5b7c25,_0x1b1b5e||_0xad2b5e(0xc9));if(_0x26233e(_0x53dee5)!=_0xad2b5e(0xf8))return _0x53dee5;throw TypeError(_0xad2b5e(0xf2));}return(_0x1b1b5e===_0xad2b5e(0xdf)?String:Number)(_0x5b7c25);}function _0x2c88c1(_0x325b58){const _0x5994f0=_0x410398;var _0x44c561=_0x3ad854(_0x325b58,_0x5994f0(0xdf));return _0x26233e(_0x44c561)==_0x5994f0(0xe5)?_0x44c561:_0x44c561+'';}function _0x297232(_0x343b5b,_0x2bbbbb,_0x29d86d){return(_0x2bbbbb=_0x2c88c1(_0x2bbbbb))in _0x343b5b?Object['defineProperty'](_0x343b5b,_0x2bbbbb,{'value':_0x29d86d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x343b5b[_0x2bbbbb]=_0x29d86d,_0x343b5b;}let _0x1b5fae=class extends _0x5d39fe[_0x410398(0xf3)]{constructor(_0x1da237=_0x5b55de,_0x142269,_0x3345cd){const _0x4ffca8=_0x410398;super(),this[_0x4ffca8(0xce)]=_0x142269,this[_0x4ffca8(0xdd)]=_0x3345cd,this[_0x4ffca8(0xce)]['setConfig'](_0x2009ba,_0x1da237);}[_0x410398(0xb7)](){const _0x1585fd=_0x410398;this[_0x1585fd(0xb6)]();}[_0x410398(0xb6)](){const _0x2f9de1=_0x410398;(0x0,_0x5d39fe[_0x2f9de1(0xcf)])(this[_0x2f9de1(0xdd)],[[_0x5d1c0a[_0x2f9de1(0xe7)],{'useClass':_0x38e9e6}]]);}};_0x297232(_0x1b5fae,'pluginName',_0x410398(0xd0)),_0x297232(_0x1b5fae,_0x410398(0xf7),_0x55c6f5),_0x297232(_0x1b5fae,_0x410398(0xd8),_0x342a8e),_0x1b5fae=_0x2d46ed([(0x0,_0x5d39fe[_0x410398(0xc7)])(_0x2f698f[_0x410398(0xc5)]),_0x2fc846(0x1,_0x5d39fe['IConfigService']),_0x2fc846(0x2,(0x0,_0x5d39fe[_0x410398(0xbc)])(_0x5d39fe[_0x410398(0xbd)]))],_0x1b5fae);let _0x287f44=class extends _0x2f698f[_0x410398(0xd1)]{constructor(_0x4c1095,_0x49b3be,_0x14b424,_0x1c52c4,_0x45e1c8){const _0x173862=_0x410398;super(_0x4c1095,_0x49b3be,_0x14b424,_0x1c52c4,_0x45e1c8);let _0x27ac48=this[_0x173862(0xce)][_0x173862(0xe6)](_0x2f698f[_0x173862(0xc8)]);this[_0x173862(0xb8)][_0x173862(0xcc)]({'interceptor':(_0xcad9ac,_0x41c82a)=>{const _0x34c9f8=_0x173862;let _0x25af92=_0xcad9ac[_0x34c9f8(0xe2)];if(_0x27ac48!=null&&_0x27ac48['customHeaders']){for(let _0x872fdb in _0x27ac48[_0x34c9f8(0xe3)])_0x25af92[_0x34c9f8(0xdb)](_0x872fdb,_0x27ac48[_0x34c9f8(0xe3)][_0x872fdb]);}return _0x41c82a(_0xcad9ac);}});}async[_0x410398(0xb0)](_0x102a76){return this['_doCreateSocket'](_0x102a76);}};_0x287f44=_0x2d46ed([_0x2fc846(0x0,(0x0,_0x5d39fe['Inject'])(_0x5d39fe[_0x410398(0xbd)])),_0x2fc846(0x1,(0x0,_0x5d39fe[_0x410398(0xbc)])(_0x5d1c0a[_0x410398(0xfc)])),_0x2fc846(0x2,_0x5d39fe[_0x410398(0xf4)]),_0x2fc846(0x3,_0x5d39fe[_0x410398(0xcb)]),_0x2fc846(0x4,_0xe51902[_0x410398(0xb1)])],_0x287f44),_0x496b35[_0x410398(0xb3)]=_0x2009ba,Object[_0x410398(0xd7)](_0x496b35,_0x410398(0xba),{'enumerable':!0x0,'get':function(){return _0x287f44;}}),Object[_0x410398(0xd7)](_0x496b35,_0x410398(0xc2),{'enumerable':!0x0,'get':function(){return _0x1b5fae;}});}));function _0x2978(){const _0x216380=['registerHTTPInterceptor','exports','_configService','registerDependencies','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','CollaborationSocketService','@univerjs-pro/collaboration-client','next','message','send','pipe','defineProperty','version','dispose','addEventListener','set','760705riCMLy','_injector','open','string','UniverProCollaborationClient','@univerjs-pro/collaboration-client-node','headers','customHeaders','close','symbol','getConfig','ISocketService','function','toStringTag','127270Vhuzbu','10481994ksEOkF','DisposableCollection','rxjs','Disposable','iterator','removeEventListener','decorate','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Plugin','IConfigService','UniverProCollaborationClientNode','20lUkbTp','packageName','object','206zCbFFE','16094wgiDFr','1264830HUUpvQ','HTTPService','toPrimitive','UniverCore','createSocket','ISnapshotServerService','8590736gWDEcp','COLLABORATION_CLIENT_NODE_CONFIG_KEY','length','share','_registerDependencies','onStarting','_httpService','toDisposable','NodeCollaborationSocketService','2013piqGGt','Inject','Injector','8kysAyf','Observable','add','@univerjs/core','UniverCollaborationClientNodePlugin','constructor','2442993LJEHPi','UniverCollaborationClientPlugin','WebSocket','DependentOn','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','default','UniverNetwork','ILogService'];_0x2978=function(){return _0x216380;};return _0x2978();}
1
+ function _0x5ab0(){const _0x56b04f=['version','default','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','UniverCollaborationClientPlugin','next','UniverProCollaboration','toDisposable','ISocketService','message','Inject','prototype','DependentOn','982035xnCczx','3874087SJvXnY','Module','exports','DisposableCollection','share','UniverCollaborationClientNodePlugin','IConfigService','toPrimitive','error','@univerjs-pro/collaboration','decorate','set','pluginName','createSocket','add','_httpService','length','1646643uMbSws','@univerjs-pro/collaboration-client-node','registerDependencies','UniverNetwork','constructor','onStarting','Plugin','227632mNpqLb','string','iterator','24477327BrmjYT','registerHTTPInterceptor','customHeaders','@univerjs-pro/collaboration-client','getConfig','UniverProCollaborationClientNode','_doCreateSocket','@univerjs/core','collaboration-client-node.config','send','defineProperty','headers','getOwnPropertyDescriptor','8jbsmMw','7693902TGqsAi','rxjs','symbol','_configService','removeEventListener','_injector','open','6226670rTXlVi','Disposable','object','close','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','CollaborationSocketService','pipe','addEventListener','function','Injector','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','dispose','Observable','NodeCollaborationSocketService','2VcjEGd','setConfig'];_0x5ab0=function(){return _0x56b04f;};return _0x5ab0();}function _0x28e8(_0x5dc0f4,_0xf87f30){_0x5dc0f4=_0x5dc0f4-0xa5;const _0x5ab0d4=_0x5ab0();let _0x28e8a2=_0x5ab0d4[_0x5dc0f4];return _0x28e8a2;}(function(_0x372815,_0x2db31c){const _0x23750b=_0x28e8,_0x1b0099=_0x372815();while(!![]){try{const _0x8b94ed=parseInt(_0x23750b(0xd7))/0x1+parseInt(_0x23750b(0xc9))/0x2*(parseInt(_0x23750b(0xe9))/0x3)+parseInt(_0x23750b(0xf0))/0x4+parseInt(_0x23750b(0xbb))/0x5+parseInt(_0x23750b(0xb4))/0x6+-parseInt(_0x23750b(0xd8))/0x7*(parseInt(_0x23750b(0xb3))/0x8)+-parseInt(_0x23750b(0xa6))/0x9;if(_0x8b94ed===_0x2db31c)break;else _0x1b0099['push'](_0x1b0099['shift']());}catch(_0x335fcd){_0x1b0099['push'](_0x1b0099['shift']());}}}(_0x5ab0,0xcda5b),function(_0x40f034,_0x24a772){const _0x4a01e9=_0x28e8;typeof exports==_0x4a01e9(0xbd)&&typeof module<'u'?_0x24a772(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define=='function'&&define['amd']?define([_0x4a01e9(0xda),_0x4a01e9(0xa9),_0x4a01e9(0xad),'@univerjs/network',_0x4a01e9(0xb5),_0x4a01e9(0xe1)],_0x24a772):(_0x40f034=typeof globalThis<'u'?globalThis:_0x40f034||self,_0x24a772(_0x40f034[_0x4a01e9(0xab)]={},_0x40f034['UniverProCollaborationClient'],_0x40f034['UniverCore'],_0x40f034[_0x4a01e9(0xec)],_0x40f034[_0x4a01e9(0xb5)],_0x40f034[_0x4a01e9(0xd0)]));}(this,function(_0x491f13,_0x529a9e,_0xfc82ff,_0x3dc215,_0x218c2a,_0x123c11){const _0x40f35c=_0x28e8;Object['defineProperty'](_0x491f13,Symbol['toStringTag'],{'value':_0x40f35c(0xd9)});var _0x206dd1=(_0x72ca4e,_0x176915)=>()=>(_0x176915||(_0x72ca4e((_0x176915={'exports':{}})[_0x40f35c(0xda)],_0x176915),_0x72ca4e=null),_0x176915[_0x40f35c(0xda)]);let _0x37a994=_0x40f35c(0xae),_0x2c26bc={};var _0x31b022=_0x40f35c(0xea),_0x2cb8b6='0.25.2',_0x25acb6=_0x206dd1((_0x200255,_0x39098d)=>{const _0x2bb61d=_0x40f35c;_0x39098d[_0x2bb61d(0xda)]=function(){throw Error('ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object');};})();function _0x232674(_0x4ca300,_0x3a070b){return function(_0x4ab50a,_0x35edb5){_0x3a070b(_0x4ab50a,_0x35edb5,_0x4ca300);};}function _0x5eae7a(_0x193bdb,_0x58274c,_0x25b5b9,_0x34670c){const _0x2bb6c5=_0x40f35c;var _0x4cf03a=arguments[_0x2bb6c5(0xe8)],_0x4860e2=_0x4cf03a<0x3?_0x58274c:_0x34670c===null?_0x34670c=Object[_0x2bb6c5(0xb2)](_0x58274c,_0x25b5b9):_0x34670c,_0xd839ea;if(typeof Reflect=='object'&&typeof Reflect['decorate']=='function')_0x4860e2=Reflect[_0x2bb6c5(0xe2)](_0x193bdb,_0x58274c,_0x25b5b9,_0x34670c);else{for(var _0x476229=_0x193bdb['length']-0x1;_0x476229>=0x0;_0x476229--)(_0xd839ea=_0x193bdb[_0x476229])&&(_0x4860e2=(_0x4cf03a<0x3?_0xd839ea(_0x4860e2):_0x4cf03a>0x3?_0xd839ea(_0x58274c,_0x25b5b9,_0x4860e2):_0xd839ea(_0x58274c,_0x25b5b9))||_0x4860e2);}return _0x4cf03a>0x3&&_0x4860e2&&Object['defineProperty'](_0x58274c,_0x25b5b9,_0x4860e2),_0x4860e2;}let _0x549954=class extends _0xfc82ff[_0x40f35c(0xbc)]{constructor(_0x1fa0f7){const _0x549e18=_0x40f35c;super(),this[_0x549e18(0xb7)]=_0x1fa0f7;}[_0x40f35c(0xe5)](_0x303bb0){const _0x30f83a=_0x40f35c;var _0x245d28;let _0x307a65=((_0x245d28=this[_0x30f83a(0xb7)][_0x30f83a(0xaa)](_0x529a9e[_0x30f83a(0xc5)]))==null?void 0x0:_0x245d28[_0x30f83a(0xa8)])||{};try{let _0x4893f2=new _0x25acb6['WebSocket'](_0x303bb0,{'headers':{..._0x307a65}}),_0x366864=new _0xfc82ff[(_0x30f83a(0xdb))]();return{'URL':_0x303bb0,'close':(_0x57f865,_0x4478ba)=>{const _0x477200=_0x30f83a;_0x4893f2['close'](_0x57f865,_0x4478ba),_0x366864[_0x477200(0xc6)]();},'send':_0x44a33c=>{const _0x85cc32=_0x30f83a;_0x4893f2[_0x85cc32(0xaf)](_0x44a33c);},'open$':new _0x218c2a[(_0x30f83a(0xc7))](_0x4bfd59=>{const _0x4976f5=_0x30f83a;let _0x5442c1=_0x47225a=>_0x4bfd59['next'](_0x47225a);_0x4893f2['addEventListener'](_0x4976f5(0xba),_0x5442c1),_0x366864[_0x4976f5(0xe6)]((0x0,_0xfc82ff[_0x4976f5(0xd1)])(()=>_0x4893f2[_0x4976f5(0xb8)]('open',_0x5442c1)));})[_0x30f83a(0xc1)]((0x0,_0x218c2a[_0x30f83a(0xdc)])()),'close$':new _0x218c2a['Observable'](_0xdce80d=>{const _0x59ac93=_0x30f83a;let _0x4750ac=_0xdc95ca=>_0xdce80d[_0x59ac93(0xcf)](_0xdc95ca);_0x4893f2[_0x59ac93(0xc2)](_0x59ac93(0xbe),_0x4750ac),_0x366864[_0x59ac93(0xe6)]((0x0,_0xfc82ff[_0x59ac93(0xd1)])(()=>_0x4893f2[_0x59ac93(0xb8)](_0x59ac93(0xbe),_0x4750ac)));})[_0x30f83a(0xc1)]((0x0,_0x218c2a[_0x30f83a(0xdc)])()),'error$':new _0x218c2a['Observable'](_0x5662b7=>{const _0x110f25=_0x30f83a;let _0x588f17=_0x3cd4a8=>_0x5662b7[_0x110f25(0xcf)](_0x3cd4a8);_0x4893f2['addEventListener']('error',_0x588f17),_0x366864[_0x110f25(0xe6)]((0x0,_0xfc82ff['toDisposable'])(()=>_0x4893f2[_0x110f25(0xb8)](_0x110f25(0xe0),_0x588f17)));})[_0x30f83a(0xc1)]((0x0,_0x218c2a[_0x30f83a(0xdc)])()),'message$':new _0x218c2a[(_0x30f83a(0xc7))](_0x3c4380=>{const _0x30188b=_0x30f83a;let _0x10283d=_0x24c192=>_0x3c4380[_0x30188b(0xcf)](_0x24c192);_0x4893f2[_0x30188b(0xc2)](_0x30188b(0xd3),_0x10283d),_0x366864[_0x30188b(0xe6)]((0x0,_0xfc82ff[_0x30188b(0xd1)])(()=>_0x4893f2[_0x30188b(0xb8)](_0x30188b(0xd3),_0x10283d)));})[_0x30f83a(0xc1)]((0x0,_0x218c2a[_0x30f83a(0xdc)])())};}catch(_0x104752){return console[_0x30f83a(0xe0)](_0x104752),null;}}};_0x549954=_0x5eae7a([_0x232674(0x0,_0xfc82ff[_0x40f35c(0xde)])],_0x549954);function _0x2e8450(_0x226dbe){'@babel/helpers - typeof';const _0xfd79b1=_0x40f35c;return _0x2e8450=typeof Symbol==_0xfd79b1(0xc3)&&typeof Symbol[_0xfd79b1(0xa5)]=='symbol'?function(_0x231ea6){return typeof _0x231ea6;}:function(_0xab1cd2){const _0x4c9da9=_0xfd79b1;return _0xab1cd2&&typeof Symbol==_0x4c9da9(0xc3)&&_0xab1cd2[_0x4c9da9(0xed)]===Symbol&&_0xab1cd2!==Symbol[_0x4c9da9(0xd5)]?_0x4c9da9(0xb6):typeof _0xab1cd2;},_0x2e8450(_0x226dbe);}function _0x429aab(_0x196bd2,_0x145056){const _0x2de6b1=_0x40f35c;if(_0x2e8450(_0x196bd2)!=_0x2de6b1(0xbd)||!_0x196bd2)return _0x196bd2;var _0x52524a=_0x196bd2[Symbol[_0x2de6b1(0xdf)]];if(_0x52524a!==void 0x0){var _0x5921b2=_0x52524a['call'](_0x196bd2,_0x145056||_0x2de6b1(0xcc));if(_0x2e8450(_0x5921b2)!=_0x2de6b1(0xbd))return _0x5921b2;throw TypeError(_0x2de6b1(0xbf));}return(_0x145056===_0x2de6b1(0xf1)?String:Number)(_0x196bd2);}function _0xbb9779(_0x5a3fc8){const _0x34ddc4=_0x40f35c;var _0x110c74=_0x429aab(_0x5a3fc8,'string');return _0x2e8450(_0x110c74)==_0x34ddc4(0xb6)?_0x110c74:_0x110c74+'';}function _0xf01d28(_0x44a06f,_0x19e8b6,_0x9545cf){const _0x3c827c=_0x40f35c;return(_0x19e8b6=_0xbb9779(_0x19e8b6))in _0x44a06f?Object[_0x3c827c(0xb0)](_0x44a06f,_0x19e8b6,{'value':_0x9545cf,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x44a06f[_0x19e8b6]=_0x9545cf,_0x44a06f;}let _0x95e813=class extends _0xfc82ff[_0x40f35c(0xef)]{constructor(_0x2f0c4b=_0x2c26bc,_0x1a686d,_0x2af000){const _0x184dd4=_0x40f35c;super(),this[_0x184dd4(0xb7)]=_0x1a686d,this[_0x184dd4(0xb9)]=_0x2af000,this[_0x184dd4(0xb7)][_0x184dd4(0xca)](_0x37a994,_0x2f0c4b);}[_0x40f35c(0xee)](){this['_registerDependencies']();}['_registerDependencies'](){const _0x3838cc=_0x40f35c;(0x0,_0xfc82ff[_0x3838cc(0xeb)])(this['_injector'],[[_0x3dc215[_0x3838cc(0xd2)],{'useClass':_0x549954}]]);}};_0xf01d28(_0x95e813,_0x40f35c(0xe4),_0x40f35c(0xcd)),_0xf01d28(_0x95e813,'packageName',_0x31b022),_0xf01d28(_0x95e813,_0x40f35c(0xcb),_0x2cb8b6),_0x95e813=_0x5eae7a([(0x0,_0xfc82ff[_0x40f35c(0xd6)])(_0x529a9e[_0x40f35c(0xce)]),_0x232674(0x1,_0xfc82ff[_0x40f35c(0xde)]),_0x232674(0x2,(0x0,_0xfc82ff[_0x40f35c(0xd4)])(_0xfc82ff[_0x40f35c(0xc4)]))],_0x95e813);let _0x5c1658=class extends _0x529a9e[_0x40f35c(0xc0)]{constructor(_0x750e0f,_0xc7f546,_0x5313c3,_0x150fbd,_0x3ee83c){const _0x5e4773=_0x40f35c;super(_0x750e0f,_0xc7f546,_0x5313c3,_0x150fbd,_0x3ee83c);let _0xc88099=this['_configService'][_0x5e4773(0xaa)](_0x529a9e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this[_0x5e4773(0xe7)][_0x5e4773(0xa7)]({'interceptor':(_0x34b2e3,_0x4fb906)=>{const _0x106305=_0x5e4773;let _0x5783e5=_0x34b2e3[_0x106305(0xb1)];if(_0xc88099!=null&&_0xc88099[_0x106305(0xa8)]){for(let _0x174037 in _0xc88099[_0x106305(0xa8)])_0x5783e5[_0x106305(0xe3)](_0x174037,_0xc88099[_0x106305(0xa8)][_0x174037]);}return _0x4fb906(_0x34b2e3);}});}async[_0x40f35c(0xe5)](_0x4d94c3){const _0x5e508b=_0x40f35c;return this[_0x5e508b(0xac)](_0x4d94c3);}};_0x5c1658=_0x5eae7a([_0x232674(0x0,(0x0,_0xfc82ff[_0x40f35c(0xd4)])(_0xfc82ff[_0x40f35c(0xc4)])),_0x232674(0x1,(0x0,_0xfc82ff[_0x40f35c(0xd4)])(_0x3dc215['HTTPService'])),_0x232674(0x2,_0xfc82ff['IConfigService']),_0x232674(0x3,_0xfc82ff['ILogService']),_0x232674(0x4,_0x123c11['ISnapshotServerService'])],_0x5c1658),_0x491f13['COLLABORATION_CLIENT_NODE_CONFIG_KEY']=_0x37a994,Object[_0x40f35c(0xb0)](_0x491f13,_0x40f35c(0xc8),{'enumerable':!0x0,'get':function(){return _0x5c1658;}}),Object[_0x40f35c(0xb0)](_0x491f13,_0x40f35c(0xdd),{'enumerable':!0x0,'get':function(){return _0x95e813;}});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "0.25.0",
3
+ "version": "0.25.2",
4
4
  "private": false,
5
5
  "description": "Node.js collaboration client plugin for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -52,17 +52,17 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "ws": "8.20.1",
55
- "@univerjs-pro/collaboration": "0.25.0",
56
- "@univerjs-pro/collaboration-client": "0.25.0",
57
- "@univerjs/core": "0.25.0",
58
- "@univerjs/network": "0.25.0"
55
+ "@univerjs-pro/collaboration": "0.25.2",
56
+ "@univerjs/core": "0.25.2",
57
+ "@univerjs-pro/collaboration-client": "0.25.2",
58
+ "@univerjs/network": "0.25.2"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/ws": "8.18.1",
62
62
  "rxjs": "7.8.2",
63
63
  "typescript": "^6.0.3",
64
64
  "vitest": "^4.1.6",
65
- "@univerjs-infra/shared": "0.25.0"
65
+ "@univerjs-infra/shared": "0.25.2"
66
66
  },
67
67
  "scripts": {
68
68
  "test": "vitest run",