@univerjs-pro/collaboration-client-node 1.3.1 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x19b43e=_0x5501;(function(_0x3cc664,_0x793c04){const _0x980ddd=_0x5501,_0x4f3140=_0x3cc664();while(!![]){try{const _0x3a2cbf=parseInt(_0x980ddd(0x1cc))/0x1+-parseInt(_0x980ddd(0x1db))/0x2*(-parseInt(_0x980ddd(0x1d0))/0x3)+parseInt(_0x980ddd(0x1c8))/0x4*(parseInt(_0x980ddd(0x1d8))/0x5)+-parseInt(_0x980ddd(0x1c3))/0x6*(-parseInt(_0x980ddd(0x1c9))/0x7)+-parseInt(_0x980ddd(0x1d7))/0x8+-parseInt(_0x980ddd(0x1c7))/0x9*(parseInt(_0x980ddd(0x1fe))/0xa)+parseInt(_0x980ddd(0x1ed))/0xb;if(_0x3a2cbf===_0x793c04)break;else _0x4f3140['push'](_0x4f3140['shift']());}catch(_0x22317b){_0x4f3140['push'](_0x4f3140['shift']());}}}(_0x56d3,0xeeeca),Object[_0x19b43e(0x1ef)](exports,Symbol[_0x19b43e(0x1ee)],{'value':'Module'}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs-pro/license'),r=require('@univerjs/core'),i=require('@univerjs/network'),a=require('rxjs'),o=require('ws');var s='@univerjs-pro/collaboration-client-node',c=_0x19b43e(0x1be);const l={};function u(_0x122d3e,_0x4c6804){return function(_0x425998,_0x3cf72f){_0x4c6804(_0x425998,_0x3cf72f,_0x122d3e);};}function d(_0x4c4b47,_0x230df8,_0x41f2bd,_0x21767c){const _0x5bd8ca=_0x19b43e;var _0x263baf=arguments['length'],_0x1e8843=_0x263baf<0x3?_0x230df8:_0x21767c===null?_0x21767c=Object[_0x5bd8ca(0x1c0)](_0x230df8,_0x41f2bd):_0x21767c,_0x16f48c;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x5bd8ca(0x1b8))_0x1e8843=Reflect[_0x5bd8ca(0x1c2)](_0x4c4b47,_0x230df8,_0x41f2bd,_0x21767c);else{for(var _0x5b63f7=_0x4c4b47[_0x5bd8ca(0x1bd)]-0x1;_0x5b63f7>=0x0;_0x5b63f7--)(_0x16f48c=_0x4c4b47[_0x5b63f7])&&(_0x1e8843=(_0x263baf<0x3?_0x16f48c(_0x1e8843):_0x263baf>0x3?_0x16f48c(_0x230df8,_0x41f2bd,_0x1e8843):_0x16f48c(_0x230df8,_0x41f2bd))||_0x1e8843);}return _0x263baf>0x3&&_0x1e8843&&Object[_0x5bd8ca(0x1ef)](_0x230df8,_0x41f2bd,_0x1e8843),_0x1e8843;}function _0x5501(_0x49a12,_0x361ade){_0x49a12=_0x49a12-0x1b7;const _0x56d352=_0x56d3();let _0x550187=_0x56d352[_0x49a12];return _0x550187;}let f=class extends r[_0x19b43e(0x1d9)]{constructor(_0x32cff2){const _0x5b1f37=_0x19b43e;super(),this[_0x5b1f37(0x1ba)]=_0x32cff2;}[_0x19b43e(0x1d1)](_0xa6014b){const _0x2450ae=_0x19b43e;var _0x5890f0;let _0x2d5899=((_0x5890f0=this[_0x2450ae(0x1ba)][_0x2450ae(0x1dd)](t[_0x2450ae(0x1f8)]))==null?void 0x0:_0x5890f0['customHeaders'])||{};try{let _0x42a305=new o[(_0x2450ae(0x1e1))](_0xa6014b,{'headers':{..._0x2d5899}}),_0x15a995=new r[(_0x2450ae(0x1e5))]();return{'URL':_0xa6014b,'close':(_0x3a244b,_0x22fad8)=>{const _0x25c1d0=_0x2450ae;_0x42a305[_0x25c1d0(0x1c5)](_0x3a244b,_0x22fad8),_0x15a995[_0x25c1d0(0x1bf)]();},'send':_0x37caea=>{const _0x3da734=_0x2450ae;_0x42a305[_0x3da734(0x1bb)](_0x37caea);},'open$':new a[(_0x2450ae(0x1cd))](_0x4696e7=>{const _0x214dda=_0x2450ae;let _0x51e9ab=_0x7e3aea=>_0x4696e7[_0x214dda(0x1da)](_0x7e3aea);_0x42a305['addEventListener']('open',_0x51e9ab),_0x15a995['add']((0x0,r[_0x214dda(0x1dc)])(()=>_0x42a305[_0x214dda(0x1d2)](_0x214dda(0x1e4),_0x51e9ab)));})[_0x2450ae(0x1b7)]((0x0,a[_0x2450ae(0x1e0)])()),'close$':new a['Observable'](_0x45728d=>{const _0x544cd2=_0x2450ae;let _0x31a708=_0x546ec3=>_0x45728d[_0x544cd2(0x1da)](_0x546ec3);_0x42a305[_0x544cd2(0x1f5)]('close',_0x31a708),_0x15a995['add']((0x0,r[_0x544cd2(0x1dc)])(()=>_0x42a305[_0x544cd2(0x1d2)](_0x544cd2(0x1c5),_0x31a708)));})[_0x2450ae(0x1b7)]((0x0,a[_0x2450ae(0x1e0)])()),'error$':new a['Observable'](_0x29e933=>{const _0x2051fb=_0x2450ae;let _0x3093d4=_0x4a7851=>_0x29e933[_0x2051fb(0x1da)](_0x4a7851);_0x42a305[_0x2051fb(0x1f5)](_0x2051fb(0x1c6),_0x3093d4),_0x15a995['add']((0x0,r[_0x2051fb(0x1dc)])(()=>_0x42a305[_0x2051fb(0x1d2)]('error',_0x3093d4)));})[_0x2450ae(0x1b7)]((0x0,a[_0x2450ae(0x1e0)])()),'message$':new a[(_0x2450ae(0x1cd))](_0x4459dc=>{const _0xa350ac=_0x2450ae;let _0x42af7e=_0x438c0c=>_0x4459dc['next'](_0x438c0c);_0x42a305[_0xa350ac(0x1f5)]('message',_0x42af7e),_0x15a995[_0xa350ac(0x1e6)]((0x0,r[_0xa350ac(0x1dc)])(()=>_0x42a305[_0xa350ac(0x1d2)](_0xa350ac(0x1f1),_0x42af7e)));})[_0x2450ae(0x1b7)]((0x0,a['share'])())};}catch(_0x224c65){return console['error'](_0x224c65),null;}}};f=d([u(0x0,r[_0x19b43e(0x1f2)])],f);function p(_0x4104cc){'@babel/helpers - typeof';const _0x3503e3=_0x19b43e;return p=typeof Symbol=='function'&&typeof Symbol[_0x3503e3(0x1e3)]==_0x3503e3(0x1e8)?function(_0x249e6e){return typeof _0x249e6e;}:function(_0x25596a){const _0x592d1c=_0x3503e3;return _0x25596a&&typeof Symbol==_0x592d1c(0x1b8)&&_0x25596a[_0x592d1c(0x1e2)]===Symbol&&_0x25596a!==Symbol['prototype']?_0x592d1c(0x1e8):typeof _0x25596a;},p(_0x4104cc);}function m(_0x3bda2d,_0x218596){const _0x3cd6ef=_0x19b43e;if(p(_0x3bda2d)!='object'||!_0x3bda2d)return _0x3bda2d;var _0x3cf574=_0x3bda2d[Symbol[_0x3cd6ef(0x1d4)]];if(_0x3cf574!==void 0x0){var _0x4274e3=_0x3cf574[_0x3cd6ef(0x1f6)](_0x3bda2d,_0x218596||_0x3cd6ef(0x1cb));if(p(_0x4274e3)!='object')return _0x4274e3;throw TypeError(_0x3cd6ef(0x1eb));}return(_0x218596==='string'?String:Number)(_0x3bda2d);}function h(_0x19f298){var _0x489b0b=m(_0x19f298,'string');return p(_0x489b0b)=='symbol'?_0x489b0b:_0x489b0b+'';}function g(_0x247e6b,_0x2ca4ee,_0x5c64c0){return(_0x2ca4ee=h(_0x2ca4ee))in _0x247e6b?Object['defineProperty'](_0x247e6b,_0x2ca4ee,{'value':_0x5c64c0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x247e6b[_0x2ca4ee]=_0x5c64c0,_0x247e6b;}let _=class extends r[_0x19b43e(0x1bc)]{constructor(_0x4caec5=l,_0xbb8460,_0x1e97ab){const _0x7477ef=_0x19b43e;super(),this[_0x7477ef(0x1fa)]=_0x4caec5,this[_0x7477ef(0x1ba)]=_0xbb8460,this['_injector']=_0x1e97ab;let {..._0x11a5e6}=(0x0,r[_0x7477ef(0x1c1)])({},l,this[_0x7477ef(0x1fa)]);this[_0x7477ef(0x1ba)][_0x7477ef(0x1ce)](_0x7477ef(0x1f7),_0x11a5e6);}[_0x19b43e(0x1d6)](){const _0xe50ea1=_0x19b43e;this[_0xe50ea1(0x1ec)]();}[_0x19b43e(0x1ec)](){const _0x13ccf9=_0x19b43e;(0x0,r[_0x13ccf9(0x1fc)])(this[_0x13ccf9(0x1b9)],[[i[_0x13ccf9(0x1e7)],{'useClass':f}]]);}};g(_,'pluginName',_0x19b43e(0x1f4)),g(_,'packageName',s),g(_,'version',c),_=d([(0x0,r[_0x19b43e(0x1f3)])(n[_0x19b43e(0x1cf)],i[_0x19b43e(0x1de)],e['UniverCollaborationPlugin'],t[_0x19b43e(0x1fd)]),u(0x1,r[_0x19b43e(0x1f2)]),u(0x2,(0x0,r[_0x19b43e(0x1df)])(r[_0x19b43e(0x1d5)]))],_);function _0x56d3(){const _0x26179e=['Observable','setConfig','UniverLicensePlugin','54012eNICFB','createSocket','removeEventListener','HTTPService','toPrimitive','Injector','onStarting','13196032YDgikq','74380oWWdZn','Disposable','next','148BZjxeQ','toDisposable','getConfig','UniverNetworkPlugin','Inject','share','WebSocket','constructor','iterator','open','DisposableCollection','add','ISocketService','symbol','customHeaders','set','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_registerDependencies','10549616aywcXV','toStringTag','defineProperty','_doCreateSocket','message','IConfigService','DependentOn','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','addEventListener','call','collaboration-client-node.config','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','CollaborationSocketService','_config','NodeCollaborationSocketService','registerDependencies','UniverCollaborationClientPlugin','10UzrQTM','pipe','function','_injector','_configService','send','Plugin','length','1.3.1','dispose','getOwnPropertyDescriptor','merge','decorate','5166732ReZSKo','ILogService','close','error','10434717SwGxpB','128raeOzd','7BLHFPR','UniverCollaborationClientNodePlugin','default','159045sxbFuv'];_0x56d3=function(){return _0x26179e;};return _0x56d3();}let v=class extends t[_0x19b43e(0x1f9)]{constructor(_0x47be6e,_0x23b76c,_0x5656a2,_0x35ac2f,_0x1eadc9){const _0x260e15=_0x19b43e;super(_0x47be6e,_0x23b76c,_0x5656a2,_0x35ac2f,_0x1eadc9);let _0x44ef5c=this['_configService'][_0x260e15(0x1dd)](t['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x328c74,_0x3e98af)=>{const _0x28bceb=_0x260e15;let _0x47bcd3=_0x328c74['headers'];if(_0x44ef5c!=null&&_0x44ef5c[_0x28bceb(0x1e9)]){for(let _0x351108 in _0x44ef5c['customHeaders'])_0x47bcd3[_0x28bceb(0x1ea)](_0x351108,_0x44ef5c[_0x28bceb(0x1e9)][_0x351108]);}return _0x3e98af(_0x328c74);}});}async[_0x19b43e(0x1d1)](_0x1b33c8){const _0x4fb193=_0x19b43e;return this[_0x4fb193(0x1f0)](_0x1b33c8);}};v=d([u(0x0,(0x0,r[_0x19b43e(0x1df)])(r['Injector'])),u(0x1,(0x0,r[_0x19b43e(0x1df)])(i[_0x19b43e(0x1d3)])),u(0x2,r[_0x19b43e(0x1f2)]),u(0x3,r[_0x19b43e(0x1c4)]),u(0x4,e['ISnapshotServerService'])],v),Object[_0x19b43e(0x1ef)](exports,_0x19b43e(0x1fb),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x19b43e(0x1ef)](exports,_0x19b43e(0x1ca),{'enumerable':!0x0,'get':function(){return _;}});
1
+ const _0x2c56eb=_0x50ee;(function(_0x523a0e,_0x2d9b2e){const _0x52df78=_0x50ee,_0x5cee35=_0x523a0e();while(!![]){try{const _0x526c4b=parseInt(_0x52df78(0x83))/0x1*(parseInt(_0x52df78(0x81))/0x2)+parseInt(_0x52df78(0xb1))/0x3+parseInt(_0x52df78(0xbf))/0x4+-parseInt(_0x52df78(0x97))/0x5+-parseInt(_0x52df78(0xca))/0x6+parseInt(_0x52df78(0xb9))/0x7*(-parseInt(_0x52df78(0xba))/0x8)+-parseInt(_0x52df78(0xc0))/0x9*(-parseInt(_0x52df78(0x8a))/0xa);if(_0x526c4b===_0x2d9b2e)break;else _0x5cee35['push'](_0x5cee35['shift']());}catch(_0x2a24ee){_0x5cee35['push'](_0x5cee35['shift']());}}}(_0x4b74,0x20482),Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x2c56eb(0x9f)}));let e=require('@univerjs-pro/collaboration'),t=require('@univerjs-pro/collaboration-client'),n=require('@univerjs-pro/license'),r=require('@univerjs/core'),i=require('@univerjs/network'),a=require('rxjs'),o=require('ws');var s=_0x2c56eb(0xbb),c=_0x2c56eb(0xcd);const l={};function u(_0x1208b2,_0x572d89){return function(_0x36ffaf,_0x1bb688){_0x572d89(_0x36ffaf,_0x1bb688,_0x1208b2);};}function d(_0x3a5846,_0x190a87,_0x4f357d,_0x101130){const _0x22a54d=_0x2c56eb;var _0x250d62=arguments[_0x22a54d(0xaa)],_0x1d086f=_0x250d62<0x3?_0x190a87:_0x101130===null?_0x101130=Object[_0x22a54d(0xc8)](_0x190a87,_0x4f357d):_0x101130,_0x420336;if(typeof Reflect==_0x22a54d(0x8c)&&typeof Reflect[_0x22a54d(0xbc)]=='function')_0x1d086f=Reflect[_0x22a54d(0xbc)](_0x3a5846,_0x190a87,_0x4f357d,_0x101130);else{for(var _0xeb165e=_0x3a5846['length']-0x1;_0xeb165e>=0x0;_0xeb165e--)(_0x420336=_0x3a5846[_0xeb165e])&&(_0x1d086f=(_0x250d62<0x3?_0x420336(_0x1d086f):_0x250d62>0x3?_0x420336(_0x190a87,_0x4f357d,_0x1d086f):_0x420336(_0x190a87,_0x4f357d))||_0x1d086f);}return _0x250d62>0x3&&_0x1d086f&&Object['defineProperty'](_0x190a87,_0x4f357d,_0x1d086f),_0x1d086f;}let f=class extends r[_0x2c56eb(0x9a)]{constructor(_0x5a61e6){const _0xf847fb=_0x2c56eb;super(),this[_0xf847fb(0x98)]=_0x5a61e6;}[_0x2c56eb(0x95)](_0x37f8eb){const _0x45d655=_0x2c56eb;var _0x29656a;let _0x229fb2=((_0x29656a=this[_0x45d655(0x98)]['getConfig'](t[_0x45d655(0x93)]))==null?void 0x0:_0x29656a[_0x45d655(0xb7)])||{};try{let _0x35a702=new o[(_0x45d655(0xc6))](_0x37f8eb,{'headers':{..._0x229fb2}}),_0x485ab0=new r[(_0x45d655(0xc7))]();return{'URL':_0x37f8eb,'close':(_0x588b37,_0x24b3c7)=>{const _0x4ad094=_0x45d655;_0x35a702[_0x4ad094(0x82)](_0x588b37,_0x24b3c7),_0x485ab0[_0x4ad094(0x99)]();},'send':_0x3b835c=>{const _0x3f3d42=_0x45d655;_0x35a702[_0x3f3d42(0xa5)](_0x3b835c);},'open$':new a[(_0x45d655(0x9b))](_0x51157e=>{const _0x25cef2=_0x45d655;let _0x2081f1=_0x3add6c=>_0x51157e[_0x25cef2(0x9d)](_0x3add6c);_0x35a702[_0x25cef2(0x88)](_0x25cef2(0x94),_0x2081f1),_0x485ab0[_0x25cef2(0xa1)]((0x0,r[_0x25cef2(0xbe)])(()=>_0x35a702[_0x25cef2(0xb6)]('open',_0x2081f1)));})[_0x45d655(0x9c)]((0x0,a[_0x45d655(0xc4)])()),'close$':new a[(_0x45d655(0x9b))](_0x9f481e=>{const _0x54a16c=_0x45d655;let _0x29f5f5=_0x1a54b3=>_0x9f481e[_0x54a16c(0x9d)](_0x1a54b3);_0x35a702[_0x54a16c(0x88)](_0x54a16c(0x82),_0x29f5f5),_0x485ab0[_0x54a16c(0xa1)]((0x0,r[_0x54a16c(0xbe)])(()=>_0x35a702[_0x54a16c(0xb6)](_0x54a16c(0x82),_0x29f5f5)));})[_0x45d655(0x9c)]((0x0,a[_0x45d655(0xc4)])()),'error$':new a[(_0x45d655(0x9b))](_0x15be86=>{const _0x1fb298=_0x45d655;let _0x242694=_0x2628e3=>_0x15be86[_0x1fb298(0x9d)](_0x2628e3);_0x35a702[_0x1fb298(0x88)](_0x1fb298(0xc1),_0x242694),_0x485ab0['add']((0x0,r[_0x1fb298(0xbe)])(()=>_0x35a702[_0x1fb298(0xb6)](_0x1fb298(0xc1),_0x242694)));})[_0x45d655(0x9c)]((0x0,a[_0x45d655(0xc4)])()),'message$':new a[(_0x45d655(0x9b))](_0x42fc11=>{const _0x5ecb68=_0x45d655;let _0x495218=_0x7a920a=>_0x42fc11['next'](_0x7a920a);_0x35a702[_0x5ecb68(0x88)](_0x5ecb68(0xa8),_0x495218),_0x485ab0[_0x5ecb68(0xa1)]((0x0,r['toDisposable'])(()=>_0x35a702[_0x5ecb68(0xb6)](_0x5ecb68(0xa8),_0x495218)));})[_0x45d655(0x9c)]((0x0,a[_0x45d655(0xc4)])())};}catch(_0x228c55){return console[_0x45d655(0xc1)](_0x228c55),null;}}};f=d([u(0x0,r[_0x2c56eb(0xc2)])],f);function p(_0x5e3e94){'@babel/helpers - typeof';const _0x2d7fc5=_0x2c56eb;return p=typeof Symbol==_0x2d7fc5(0xb3)&&typeof Symbol[_0x2d7fc5(0x84)]==_0x2d7fc5(0xcc)?function(_0x4b6e18){return typeof _0x4b6e18;}:function(_0x317e69){const _0x568614=_0x2d7fc5;return _0x317e69&&typeof Symbol==_0x568614(0xb3)&&_0x317e69['constructor']===Symbol&&_0x317e69!==Symbol['prototype']?'symbol':typeof _0x317e69;},p(_0x5e3e94);}function _0x4b74(){const _0x2c8731=['_registerDependencies','_doCreateSocket','defineProperty','call','_config','348321KNzAco','_injector','function','ISocketService','version','removeEventListener','customHeaders','ISnapshotServerService','304521TaoIWw','24dLsKah','@univerjs-pro/collaboration-client-node','decorate','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','toDisposable','439736cMDOCp','3690zrtsiC','error','IConfigService','UniverCollaborationClientPlugin','share','Inject','WebSocket','DisposableCollection','getOwnPropertyDescriptor','Plugin','72120CMEeFO','UniverLicensePlugin','symbol','1.4.0','311086NAFneq','close','1wYYuwV','iterator','UniverCollaborationClientNodePlugin','setConfig','Injector','addEventListener','onStarting','520JnZpKr','UniverNetworkPlugin','object','set','pluginName','UniverCollaborationPlugin','_httpService','DependentOn','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','open','createSocket','NodeCollaborationSocketService','640745xdzIBl','_configService','dispose','Disposable','Observable','pipe','next','HTTPService','Module','packageName','add','toPrimitive','collaboration-client-node.config','merge','send','registerHTTPInterceptor','getConfig','message','headers','length','ILogService'];_0x4b74=function(){return _0x2c8731;};return _0x4b74();}function m(_0x417782,_0x31c3fc){const _0x2e2987=_0x2c56eb;if(p(_0x417782)!=_0x2e2987(0x8c)||!_0x417782)return _0x417782;var _0x3812b7=_0x417782[Symbol[_0x2e2987(0xa2)]];if(_0x3812b7!==void 0x0){var _0x1cbbf8=_0x3812b7[_0x2e2987(0xaf)](_0x417782,_0x31c3fc||'default');if(p(_0x1cbbf8)!=_0x2e2987(0x8c))return _0x1cbbf8;throw TypeError(_0x2e2987(0x92));}return(_0x31c3fc==='string'?String:Number)(_0x417782);}function h(_0x21e2e7){const _0x471eb2=_0x2c56eb;var _0x6446de=m(_0x21e2e7,'string');return p(_0x6446de)==_0x471eb2(0xcc)?_0x6446de:_0x6446de+'';}function g(_0x54aaa2,_0x2c4be1,_0x38ac27){const _0x1caf4d=_0x2c56eb;return(_0x2c4be1=h(_0x2c4be1))in _0x54aaa2?Object[_0x1caf4d(0xae)](_0x54aaa2,_0x2c4be1,{'value':_0x38ac27,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x54aaa2[_0x2c4be1]=_0x38ac27,_0x54aaa2;}let _=class extends r[_0x2c56eb(0xc9)]{constructor(_0x3167a9=l,_0x1ed551,_0x514211){const _0x4c7f49=_0x2c56eb;super(),this['_config']=_0x3167a9,this['_configService']=_0x1ed551,this[_0x4c7f49(0xb2)]=_0x514211;let {..._0x229f0b}=(0x0,r[_0x4c7f49(0xa4)])({},l,this[_0x4c7f49(0xb0)]);this[_0x4c7f49(0x98)][_0x4c7f49(0x86)](_0x4c7f49(0xa3),_0x229f0b);}[_0x2c56eb(0x89)](){const _0x225370=_0x2c56eb;this[_0x225370(0xac)]();}[_0x2c56eb(0xac)](){const _0x20cf41=_0x2c56eb;(0x0,r['registerDependencies'])(this[_0x20cf41(0xb2)],[[i[_0x20cf41(0xb4)],{'useClass':f}]]);}};g(_,_0x2c56eb(0x8e),_0x2c56eb(0xbd)),g(_,_0x2c56eb(0xa0),s),g(_,_0x2c56eb(0xb5),c),_=d([(0x0,r[_0x2c56eb(0x91)])(n[_0x2c56eb(0xcb)],i[_0x2c56eb(0x8b)],e[_0x2c56eb(0x8f)],t[_0x2c56eb(0xc3)]),u(0x1,r[_0x2c56eb(0xc2)]),u(0x2,(0x0,r[_0x2c56eb(0xc5)])(r[_0x2c56eb(0x87)]))],_);let v=class extends t['CollaborationSocketService']{constructor(_0xc1d0e5,_0x55ae5d,_0x1f1ad4,_0x377855,_0x556c0c){const _0xb16259=_0x2c56eb;super(_0xc1d0e5,_0x55ae5d,_0x1f1ad4,_0x377855,_0x556c0c);let _0x16c8c4=this[_0xb16259(0x98)][_0xb16259(0xa7)](t[_0xb16259(0x93)]);this[_0xb16259(0x90)][_0xb16259(0xa6)]({'interceptor':(_0x1bb0b0,_0x4ac8ca)=>{const _0x1a9a0b=_0xb16259;let _0x3f30c3=_0x1bb0b0[_0x1a9a0b(0xa9)];if(_0x16c8c4!=null&&_0x16c8c4['customHeaders']){for(let _0xac4ee0 in _0x16c8c4[_0x1a9a0b(0xb7)])_0x3f30c3[_0x1a9a0b(0x8d)](_0xac4ee0,_0x16c8c4[_0x1a9a0b(0xb7)][_0xac4ee0]);}return _0x4ac8ca(_0x1bb0b0);}});}async[_0x2c56eb(0x95)](_0x357574){const _0xbfada3=_0x2c56eb;return this[_0xbfada3(0xad)](_0x357574);}};function _0x50ee(_0x24a756,_0x46aaa4){_0x24a756=_0x24a756-0x81;const _0x4b74b4=_0x4b74();let _0x50ee69=_0x4b74b4[_0x24a756];return _0x50ee69;}v=d([u(0x0,(0x0,r['Inject'])(r[_0x2c56eb(0x87)])),u(0x1,(0x0,r['Inject'])(i[_0x2c56eb(0x9e)])),u(0x2,r['IConfigService']),u(0x3,r[_0x2c56eb(0xab)]),u(0x4,e[_0x2c56eb(0xb8)])],v),Object[_0x2c56eb(0xae)](exports,_0x2c56eb(0x96),{'enumerable':!0x0,'get':function(){return v;}}),Object['defineProperty'](exports,_0x2c56eb(0x85),{'enumerable':!0x0,'get':function(){return _;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- function _0x2568(_0x34c56c,_0x3a12d1){_0x34c56c=_0x34c56c-0x13f;const _0x2c1d3b=_0x2c1d();let _0x2568c6=_0x2c1d3b[_0x34c56c];return _0x2568c6;}const _0x3ed49b=_0x2568;(function(_0x3b1be8,_0x2110a0){const _0x4d09ff=_0x2568,_0x3c7b43=_0x3b1be8();while(!![]){try{const _0x3d072f=-parseInt(_0x4d09ff(0x140))/0x1*(parseInt(_0x4d09ff(0x145))/0x2)+-parseInt(_0x4d09ff(0x169))/0x3+parseInt(_0x4d09ff(0x15a))/0x4*(-parseInt(_0x4d09ff(0x161))/0x5)+-parseInt(_0x4d09ff(0x15d))/0x6*(parseInt(_0x4d09ff(0x15c))/0x7)+-parseInt(_0x4d09ff(0x16b))/0x8*(parseInt(_0x4d09ff(0x154))/0x9)+parseInt(_0x4d09ff(0x14c))/0xa*(parseInt(_0x4d09ff(0x153))/0xb)+-parseInt(_0x4d09ff(0x143))/0xc*(-parseInt(_0x4d09ff(0x151))/0xd);if(_0x3d072f===_0x2110a0)break;else _0x3c7b43['push'](_0x3c7b43['shift']());}catch(_0x4ed8d7){_0x3c7b43['push'](_0x3c7b43['shift']());}}}(_0x2c1d,0xf1052));import{ISnapshotServerService as _0x12d40d,UniverCollaborationPlugin as _0x247ccd}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2b8ddf,CollaborationSocketService as _0x405c78,UniverCollaborationClientPlugin as _0x28d393}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x253fce}from'@univerjs-pro/license';import{DependentOn as _0xd9fdd5,Disposable as _0x2958fe,DisposableCollection as _0x40c93b,IConfigService as _0x3c1060,ILogService as _0x385b76,Inject as _0x1dd1db,Injector as _0x1464a6,Plugin as _0xea637b,merge as _0x592ba3,registerDependencies as _0x3fe490,toDisposable as _0x1cd99c}from'@univerjs/core';import{HTTPService as _0x1d6519,ISocketService as _0x5a2968,UniverNetworkPlugin as _0x283729}from'@univerjs/network';import{Observable as _0x543202,share as _0x170ea9}from'rxjs';function _0x2c1d(){const _0x376f96=['headers','_httpService','toPrimitive','set','_config','1708rMDfWz','createSocket','705061YoafYY','84gONUHz','version','pipe','setConfig','1685CzyGzX','customHeaders','next','default','message','getOwnPropertyDescriptor','decorate','1.3.1','4434684fUjVNc','defineProperty','8BDDPhV','prototype','_registerDependencies','_injector','add','registerHTTPInterceptor','iterator','@univerjs-pro/collaboration-client-node','error','length','onStarting','31mXJUFP','addEventListener','send','53024808jiNpKI','close','55696jPTdiv','symbol','getConfig','open','packageName','removeEventListener','_configService','41050VKeDdZ','function','string','object','constructor','13rRctmV','pluginName','1958JQtgpt','2400021bQHmhs'];_0x2c1d=function(){return _0x376f96;};return _0x2c1d();}import{WebSocket as _0x24ba19}from'ws';var C=_0x3ed49b(0x172),w=_0x3ed49b(0x168);const T={};function E(_0x15096d,_0x4aa84e){return function(_0xaabefb,_0x1e72b2){_0x4aa84e(_0xaabefb,_0x1e72b2,_0x15096d);};}function D(_0x17a492,_0x369697,_0x97ab39,_0x36e575){const _0x1884f3=_0x3ed49b;var _0x4b03ca=arguments[_0x1884f3(0x174)],_0x4a7ecd=_0x4b03ca<0x3?_0x369697:_0x36e575===null?_0x36e575=Object[_0x1884f3(0x166)](_0x369697,_0x97ab39):_0x36e575,_0x4a80d1;if(typeof Reflect==_0x1884f3(0x14f)&&typeof Reflect[_0x1884f3(0x167)]==_0x1884f3(0x14d))_0x4a7ecd=Reflect['decorate'](_0x17a492,_0x369697,_0x97ab39,_0x36e575);else{for(var _0x1adf98=_0x17a492[_0x1884f3(0x174)]-0x1;_0x1adf98>=0x0;_0x1adf98--)(_0x4a80d1=_0x17a492[_0x1adf98])&&(_0x4a7ecd=(_0x4b03ca<0x3?_0x4a80d1(_0x4a7ecd):_0x4b03ca>0x3?_0x4a80d1(_0x369697,_0x97ab39,_0x4a7ecd):_0x4a80d1(_0x369697,_0x97ab39))||_0x4a7ecd);}return _0x4b03ca>0x3&&_0x4a7ecd&&Object['defineProperty'](_0x369697,_0x97ab39,_0x4a7ecd),_0x4a7ecd;}let O=class extends _0x2958fe{constructor(_0x1203cb){super(),this['_configService']=_0x1203cb;}[_0x3ed49b(0x15b)](_0x514da7){const _0x473ca4=_0x3ed49b;var _0x2947b9;let _0x3da7a2=((_0x2947b9=this[_0x473ca4(0x14b)][_0x473ca4(0x147)](_0x2b8ddf))==null?void 0x0:_0x2947b9['customHeaders'])||{};try{let _0x1ff457=new _0x24ba19(_0x514da7,{'headers':{..._0x3da7a2}}),_0x5669e5=new _0x40c93b();return{'URL':_0x514da7,'close':(_0xbe1ee3,_0x4fb394)=>{const _0x5d1016=_0x473ca4;_0x1ff457[_0x5d1016(0x144)](_0xbe1ee3,_0x4fb394),_0x5669e5['dispose']();},'send':_0x2aaf35=>{const _0x29b77b=_0x473ca4;_0x1ff457[_0x29b77b(0x142)](_0x2aaf35);},'open$':new _0x543202(_0x1fd000=>{const _0x15c8e9=_0x473ca4;let _0x51474e=_0x52625d=>_0x1fd000[_0x15c8e9(0x163)](_0x52625d);_0x1ff457[_0x15c8e9(0x141)](_0x15c8e9(0x148),_0x51474e),_0x5669e5[_0x15c8e9(0x16f)](_0x1cd99c(()=>_0x1ff457[_0x15c8e9(0x14a)](_0x15c8e9(0x148),_0x51474e)));})[_0x473ca4(0x15f)](_0x170ea9()),'close$':new _0x543202(_0x48dddc=>{const _0x560941=_0x473ca4;let _0x2d5531=_0x22a694=>_0x48dddc[_0x560941(0x163)](_0x22a694);_0x1ff457['addEventListener'](_0x560941(0x144),_0x2d5531),_0x5669e5[_0x560941(0x16f)](_0x1cd99c(()=>_0x1ff457[_0x560941(0x14a)](_0x560941(0x144),_0x2d5531)));})['pipe'](_0x170ea9()),'error$':new _0x543202(_0x853607=>{const _0x48af71=_0x473ca4;let _0x53f4ac=_0x2b4543=>_0x853607['next'](_0x2b4543);_0x1ff457[_0x48af71(0x141)](_0x48af71(0x173),_0x53f4ac),_0x5669e5[_0x48af71(0x16f)](_0x1cd99c(()=>_0x1ff457[_0x48af71(0x14a)](_0x48af71(0x173),_0x53f4ac)));})['pipe'](_0x170ea9()),'message$':new _0x543202(_0x43ad72=>{const _0x5ccb40=_0x473ca4;let _0x3c1269=_0x594c67=>_0x43ad72[_0x5ccb40(0x163)](_0x594c67);_0x1ff457[_0x5ccb40(0x141)](_0x5ccb40(0x165),_0x3c1269),_0x5669e5[_0x5ccb40(0x16f)](_0x1cd99c(()=>_0x1ff457[_0x5ccb40(0x14a)](_0x5ccb40(0x165),_0x3c1269)));})['pipe'](_0x170ea9())};}catch(_0x5de2e9){return console['error'](_0x5de2e9),null;}}};O=D([E(0x0,_0x3c1060)],O);function k(_0x3a2880){'@babel/helpers - typeof';const _0x5eca6b=_0x3ed49b;return k=typeof Symbol==_0x5eca6b(0x14d)&&typeof Symbol[_0x5eca6b(0x171)]==_0x5eca6b(0x146)?function(_0x166943){return typeof _0x166943;}:function(_0x40e748){const _0x77d203=_0x5eca6b;return _0x40e748&&typeof Symbol==_0x77d203(0x14d)&&_0x40e748[_0x77d203(0x150)]===Symbol&&_0x40e748!==Symbol[_0x77d203(0x16c)]?_0x77d203(0x146):typeof _0x40e748;},k(_0x3a2880);}function A(_0x142f86,_0x1b278e){const _0x2831a2=_0x3ed49b;if(k(_0x142f86)!=_0x2831a2(0x14f)||!_0x142f86)return _0x142f86;var _0x1a0ccd=_0x142f86[Symbol[_0x2831a2(0x157)]];if(_0x1a0ccd!==void 0x0){var _0x472441=_0x1a0ccd['call'](_0x142f86,_0x1b278e||_0x2831a2(0x164));if(k(_0x472441)!=_0x2831a2(0x14f))return _0x472441;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1b278e===_0x2831a2(0x14e)?String:Number)(_0x142f86);}function j(_0x881ed4){const _0x2e20ec=_0x3ed49b;var _0x545ad8=A(_0x881ed4,_0x2e20ec(0x14e));return k(_0x545ad8)==_0x2e20ec(0x146)?_0x545ad8:_0x545ad8+'';}function M(_0x45e617,_0x22f246,_0x14297c){const _0x135de2=_0x3ed49b;return(_0x22f246=j(_0x22f246))in _0x45e617?Object[_0x135de2(0x16a)](_0x45e617,_0x22f246,{'value':_0x14297c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x45e617[_0x22f246]=_0x14297c,_0x45e617;}let N=class extends _0xea637b{constructor(_0x9a8666=T,_0x47d2db,_0x475b0e){const _0x1d7fe6=_0x3ed49b;super(),this['_config']=_0x9a8666,this[_0x1d7fe6(0x14b)]=_0x47d2db,this['_injector']=_0x475b0e;let {..._0xad2b1f}=_0x592ba3({},T,this[_0x1d7fe6(0x159)]);this['_configService'][_0x1d7fe6(0x160)]('collaboration-client-node.config',_0xad2b1f);}[_0x3ed49b(0x13f)](){this['_registerDependencies']();}[_0x3ed49b(0x16d)](){const _0x4b95ea=_0x3ed49b;_0x3fe490(this[_0x4b95ea(0x16e)],[[_0x5a2968,{'useClass':O}]]);}};M(N,_0x3ed49b(0x152),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),M(N,_0x3ed49b(0x149),C),M(N,_0x3ed49b(0x15e),w),N=D([_0xd9fdd5(_0x253fce,_0x283729,_0x247ccd,_0x28d393),E(0x1,_0x3c1060),E(0x2,_0x1dd1db(_0x1464a6))],N);let P=class extends _0x405c78{constructor(_0x48ac84,_0x179940,_0x3dd094,_0x53991c,_0x719401){const _0x224f03=_0x3ed49b;super(_0x48ac84,_0x179940,_0x3dd094,_0x53991c,_0x719401);let _0x5c9a53=this[_0x224f03(0x14b)]['getConfig'](_0x2b8ddf);this[_0x224f03(0x156)][_0x224f03(0x170)]({'interceptor':(_0x5511a4,_0x114cb0)=>{const _0x4bdc72=_0x224f03;let _0x157b15=_0x5511a4[_0x4bdc72(0x155)];if(_0x5c9a53!=null&&_0x5c9a53[_0x4bdc72(0x162)]){for(let _0x25bc70 in _0x5c9a53[_0x4bdc72(0x162)])_0x157b15[_0x4bdc72(0x158)](_0x25bc70,_0x5c9a53[_0x4bdc72(0x162)][_0x25bc70]);}return _0x114cb0(_0x5511a4);}});}async[_0x3ed49b(0x15b)](_0x3827a7){return this['_doCreateSocket'](_0x3827a7);}};P=D([E(0x0,_0x1dd1db(_0x1464a6)),E(0x1,_0x1dd1db(_0x1d6519)),E(0x2,_0x3c1060),E(0x3,_0x385b76),E(0x4,_0x12d40d)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
1
+ const _0x59090d=_0x4192;(function(_0x59a35d,_0x5da3b6){const _0x192905=_0x4192,_0x427638=_0x59a35d();while(!![]){try{const _0x370a22=parseInt(_0x192905(0x142))/0x1*(parseInt(_0x192905(0x16b))/0x2)+-parseInt(_0x192905(0x13c))/0x3+parseInt(_0x192905(0x157))/0x4+parseInt(_0x192905(0x13d))/0x5*(parseInt(_0x192905(0x13b))/0x6)+parseInt(_0x192905(0x152))/0x7+-parseInt(_0x192905(0x161))/0x8*(-parseInt(_0x192905(0x146))/0x9)+-parseInt(_0x192905(0x15d))/0xa;if(_0x370a22===_0x5da3b6)break;else _0x427638['push'](_0x427638['shift']());}catch(_0xad5e1d){_0x427638['push'](_0x427638['shift']());}}}(_0x4fae,0x537e1));import{ISnapshotServerService as _0x5b3b8f,UniverCollaborationPlugin as _0x51d679}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1d236b,CollaborationSocketService as _0x35eb1a,UniverCollaborationClientPlugin as _0x25a16c}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x546296}from'@univerjs-pro/license';function _0x4192(_0x536d3d,_0x153578){_0x536d3d=_0x536d3d-0x13b;const _0x4fae16=_0x4fae();let _0x4192b4=_0x4fae16[_0x536d3d];return _0x4192b4;}import{DependentOn as _0x252588,Disposable as _0x470969,DisposableCollection as _0xc209c3,IConfigService as _0x889711,ILogService as _0x47a811,Inject as _0x5e1919,Injector as _0x4683da,Plugin as _0x219adf,merge as _0x51f70e,registerDependencies as _0x3e275f,toDisposable as _0x2d154c}from'@univerjs/core';import{HTTPService as _0x152225,ISocketService as _0x2268e0,UniverNetworkPlugin as _0x1abc4b}from'@univerjs/network';import{Observable as _0x38e503,share as _0x2ebbe7}from'rxjs';import{WebSocket as _0x33e35c}from'ws';var C='@univerjs-pro/collaboration-client-node',w=_0x59090d(0x140);const T={};function E(_0x1e2506,_0xde04a6){return function(_0x2268bd,_0x40b7a0){_0xde04a6(_0x2268bd,_0x40b7a0,_0x1e2506);};}function D(_0x5cd6a3,_0x5d8df3,_0x3745d4,_0x46c249){const _0xc1d2ff=_0x59090d;var _0x968e82=arguments['length'],_0x2b4017=_0x968e82<0x3?_0x5d8df3:_0x46c249===null?_0x46c249=Object[_0xc1d2ff(0x16e)](_0x5d8df3,_0x3745d4):_0x46c249,_0xe99d38;if(typeof Reflect==_0xc1d2ff(0x159)&&typeof Reflect[_0xc1d2ff(0x162)]=='function')_0x2b4017=Reflect['decorate'](_0x5cd6a3,_0x5d8df3,_0x3745d4,_0x46c249);else{for(var _0x143ded=_0x5cd6a3[_0xc1d2ff(0x151)]-0x1;_0x143ded>=0x0;_0x143ded--)(_0xe99d38=_0x5cd6a3[_0x143ded])&&(_0x2b4017=(_0x968e82<0x3?_0xe99d38(_0x2b4017):_0x968e82>0x3?_0xe99d38(_0x5d8df3,_0x3745d4,_0x2b4017):_0xe99d38(_0x5d8df3,_0x3745d4))||_0x2b4017);}return _0x968e82>0x3&&_0x2b4017&&Object[_0xc1d2ff(0x163)](_0x5d8df3,_0x3745d4,_0x2b4017),_0x2b4017;}let O=class extends _0x470969{constructor(_0x209d6d){const _0x2f0025=_0x59090d;super(),this[_0x2f0025(0x166)]=_0x209d6d;}[_0x59090d(0x149)](_0x3ca285){const _0x26586d=_0x59090d;var _0x4cc789;let _0x362f01=((_0x4cc789=this['_configService'][_0x26586d(0x145)](_0x1d236b))==null?void 0x0:_0x4cc789[_0x26586d(0x16c)])||{};try{let _0x2282bc=new _0x33e35c(_0x3ca285,{'headers':{..._0x362f01}}),_0x5d18a6=new _0xc209c3();return{'URL':_0x3ca285,'close':(_0x3ab16b,_0x44af28)=>{const _0x369f37=_0x26586d;_0x2282bc[_0x369f37(0x14b)](_0x3ab16b,_0x44af28),_0x5d18a6[_0x369f37(0x160)]();},'send':_0x343514=>{const _0x15982b=_0x26586d;_0x2282bc[_0x15982b(0x16a)](_0x343514);},'open$':new _0x38e503(_0x564413=>{const _0x91517c=_0x26586d;let _0x12e7cb=_0x25b89a=>_0x564413[_0x91517c(0x168)](_0x25b89a);_0x2282bc[_0x91517c(0x148)](_0x91517c(0x14e),_0x12e7cb),_0x5d18a6[_0x91517c(0x14a)](_0x2d154c(()=>_0x2282bc[_0x91517c(0x15e)](_0x91517c(0x14e),_0x12e7cb)));})[_0x26586d(0x143)](_0x2ebbe7()),'close$':new _0x38e503(_0x17d93d=>{const _0x5e7572=_0x26586d;let _0x3365e6=_0x566951=>_0x17d93d[_0x5e7572(0x168)](_0x566951);_0x2282bc['addEventListener'](_0x5e7572(0x14b),_0x3365e6),_0x5d18a6[_0x5e7572(0x14a)](_0x2d154c(()=>_0x2282bc['removeEventListener'](_0x5e7572(0x14b),_0x3365e6)));})['pipe'](_0x2ebbe7()),'error$':new _0x38e503(_0x5be6d9=>{const _0x589293=_0x26586d;let _0x13b339=_0x59574b=>_0x5be6d9[_0x589293(0x168)](_0x59574b);_0x2282bc[_0x589293(0x148)](_0x589293(0x15f),_0x13b339),_0x5d18a6['add'](_0x2d154c(()=>_0x2282bc[_0x589293(0x15e)]('error',_0x13b339)));})[_0x26586d(0x143)](_0x2ebbe7()),'message$':new _0x38e503(_0x4eba48=>{const _0x5ecc4c=_0x26586d;let _0x4ef866=_0x333fa1=>_0x4eba48['next'](_0x333fa1);_0x2282bc[_0x5ecc4c(0x148)](_0x5ecc4c(0x15b),_0x4ef866),_0x5d18a6[_0x5ecc4c(0x14a)](_0x2d154c(()=>_0x2282bc[_0x5ecc4c(0x15e)](_0x5ecc4c(0x15b),_0x4ef866)));})['pipe'](_0x2ebbe7())};}catch(_0x7845e7){return console[_0x26586d(0x15f)](_0x7845e7),null;}}};O=D([E(0x0,_0x889711)],O);function _0x4fae(){const _0x183665=['_doCreateSocket','pluginName','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','2019644IPUZtc','set','object','headers','message','_registerDependencies','11748550aBSEgo','removeEventListener','error','dispose','8utEmgk','decorate','defineProperty','default','toPrimitive','_configService','iterator','next','_injector','send','2XguGUg','customHeaders','setConfig','getOwnPropertyDescriptor','prototype','version','27954bVSdbZ','576042OvOlci','200eKPzUQ','_config','constructor','1.4.0','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','334486cMzdiq','pipe','registerHTTPInterceptor','getConfig','2735406ERCwSj','_httpService','addEventListener','createSocket','add','close','packageName','string','open','function','onStarting','length','2654141KHMPgF','symbol'];_0x4fae=function(){return _0x183665;};return _0x4fae();}function k(_0x2eaa54){'@babel/helpers - typeof';const _0x246b1f=_0x59090d;return k=typeof Symbol==_0x246b1f(0x14f)&&typeof Symbol[_0x246b1f(0x167)]=='symbol'?function(_0x44fbc1){return typeof _0x44fbc1;}:function(_0x3a46c4){const _0x26e5eb=_0x246b1f;return _0x3a46c4&&typeof Symbol=='function'&&_0x3a46c4[_0x26e5eb(0x13f)]===Symbol&&_0x3a46c4!==Symbol[_0x26e5eb(0x16f)]?'symbol':typeof _0x3a46c4;},k(_0x2eaa54);}function A(_0x224eb0,_0x2d420c){const _0x20cdb2=_0x59090d;if(k(_0x224eb0)!=_0x20cdb2(0x159)||!_0x224eb0)return _0x224eb0;var _0x2c66c5=_0x224eb0[Symbol[_0x20cdb2(0x165)]];if(_0x2c66c5!==void 0x0){var _0xbf4772=_0x2c66c5['call'](_0x224eb0,_0x2d420c||_0x20cdb2(0x164));if(k(_0xbf4772)!=_0x20cdb2(0x159))return _0xbf4772;throw TypeError(_0x20cdb2(0x156));}return(_0x2d420c===_0x20cdb2(0x14d)?String:Number)(_0x224eb0);}function j(_0x4c64a2){const _0x18096f=_0x59090d;var _0x132018=A(_0x4c64a2,_0x18096f(0x14d));return k(_0x132018)==_0x18096f(0x153)?_0x132018:_0x132018+'';}function M(_0x2b1eb1,_0x25371d,_0xef8cad){return(_0x25371d=j(_0x25371d))in _0x2b1eb1?Object['defineProperty'](_0x2b1eb1,_0x25371d,{'value':_0xef8cad,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2b1eb1[_0x25371d]=_0xef8cad,_0x2b1eb1;}let N=class extends _0x219adf{constructor(_0x435659=T,_0xc66520,_0x59c580){const _0x99b1d5=_0x59090d;super(),this[_0x99b1d5(0x13e)]=_0x435659,this[_0x99b1d5(0x166)]=_0xc66520,this[_0x99b1d5(0x169)]=_0x59c580;let {..._0x2a0fe8}=_0x51f70e({},T,this[_0x99b1d5(0x13e)]);this['_configService'][_0x99b1d5(0x16d)]('collaboration-client-node.config',_0x2a0fe8);}[_0x59090d(0x150)](){const _0x1a46c6=_0x59090d;this[_0x1a46c6(0x15c)]();}[_0x59090d(0x15c)](){const _0x12d8ec=_0x59090d;_0x3e275f(this[_0x12d8ec(0x169)],[[_0x2268e0,{'useClass':O}]]);}};M(N,_0x59090d(0x155),_0x59090d(0x141)),M(N,_0x59090d(0x14c),C),M(N,_0x59090d(0x170),w),N=D([_0x252588(_0x546296,_0x1abc4b,_0x51d679,_0x25a16c),E(0x1,_0x889711),E(0x2,_0x5e1919(_0x4683da))],N);let P=class extends _0x35eb1a{constructor(_0x419926,_0x116e90,_0x2c9ddf,_0x8b2a15,_0x34a060){const _0x22b31f=_0x59090d;super(_0x419926,_0x116e90,_0x2c9ddf,_0x8b2a15,_0x34a060);let _0x188f61=this[_0x22b31f(0x166)][_0x22b31f(0x145)](_0x1d236b);this[_0x22b31f(0x147)][_0x22b31f(0x144)]({'interceptor':(_0x30d5bd,_0xce93e6)=>{const _0x207a8d=_0x22b31f;let _0x528bba=_0x30d5bd[_0x207a8d(0x15a)];if(_0x188f61!=null&&_0x188f61['customHeaders']){for(let _0x485110 in _0x188f61[_0x207a8d(0x16c)])_0x528bba[_0x207a8d(0x158)](_0x485110,_0x188f61[_0x207a8d(0x16c)][_0x485110]);}return _0xce93e6(_0x30d5bd);}});}async[_0x59090d(0x149)](_0x4304b6){const _0x38b949=_0x59090d;return this[_0x38b949(0x154)](_0x4304b6);}};P=D([E(0x0,_0x5e1919(_0x4683da)),E(0x1,_0x5e1919(_0x152225)),E(0x2,_0x889711),E(0x3,_0x47a811),E(0x4,_0x5b3b8f)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- function _0x2568(_0x34c56c,_0x3a12d1){_0x34c56c=_0x34c56c-0x13f;const _0x2c1d3b=_0x2c1d();let _0x2568c6=_0x2c1d3b[_0x34c56c];return _0x2568c6;}const _0x3ed49b=_0x2568;(function(_0x3b1be8,_0x2110a0){const _0x4d09ff=_0x2568,_0x3c7b43=_0x3b1be8();while(!![]){try{const _0x3d072f=-parseInt(_0x4d09ff(0x140))/0x1*(parseInt(_0x4d09ff(0x145))/0x2)+-parseInt(_0x4d09ff(0x169))/0x3+parseInt(_0x4d09ff(0x15a))/0x4*(-parseInt(_0x4d09ff(0x161))/0x5)+-parseInt(_0x4d09ff(0x15d))/0x6*(parseInt(_0x4d09ff(0x15c))/0x7)+-parseInt(_0x4d09ff(0x16b))/0x8*(parseInt(_0x4d09ff(0x154))/0x9)+parseInt(_0x4d09ff(0x14c))/0xa*(parseInt(_0x4d09ff(0x153))/0xb)+-parseInt(_0x4d09ff(0x143))/0xc*(-parseInt(_0x4d09ff(0x151))/0xd);if(_0x3d072f===_0x2110a0)break;else _0x3c7b43['push'](_0x3c7b43['shift']());}catch(_0x4ed8d7){_0x3c7b43['push'](_0x3c7b43['shift']());}}}(_0x2c1d,0xf1052));import{ISnapshotServerService as _0x12d40d,UniverCollaborationPlugin as _0x247ccd}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2b8ddf,CollaborationSocketService as _0x405c78,UniverCollaborationClientPlugin as _0x28d393}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x253fce}from'@univerjs-pro/license';import{DependentOn as _0xd9fdd5,Disposable as _0x2958fe,DisposableCollection as _0x40c93b,IConfigService as _0x3c1060,ILogService as _0x385b76,Inject as _0x1dd1db,Injector as _0x1464a6,Plugin as _0xea637b,merge as _0x592ba3,registerDependencies as _0x3fe490,toDisposable as _0x1cd99c}from'@univerjs/core';import{HTTPService as _0x1d6519,ISocketService as _0x5a2968,UniverNetworkPlugin as _0x283729}from'@univerjs/network';import{Observable as _0x543202,share as _0x170ea9}from'rxjs';function _0x2c1d(){const _0x376f96=['headers','_httpService','toPrimitive','set','_config','1708rMDfWz','createSocket','705061YoafYY','84gONUHz','version','pipe','setConfig','1685CzyGzX','customHeaders','next','default','message','getOwnPropertyDescriptor','decorate','1.3.1','4434684fUjVNc','defineProperty','8BDDPhV','prototype','_registerDependencies','_injector','add','registerHTTPInterceptor','iterator','@univerjs-pro/collaboration-client-node','error','length','onStarting','31mXJUFP','addEventListener','send','53024808jiNpKI','close','55696jPTdiv','symbol','getConfig','open','packageName','removeEventListener','_configService','41050VKeDdZ','function','string','object','constructor','13rRctmV','pluginName','1958JQtgpt','2400021bQHmhs'];_0x2c1d=function(){return _0x376f96;};return _0x2c1d();}import{WebSocket as _0x24ba19}from'ws';var C=_0x3ed49b(0x172),w=_0x3ed49b(0x168);const T={};function E(_0x15096d,_0x4aa84e){return function(_0xaabefb,_0x1e72b2){_0x4aa84e(_0xaabefb,_0x1e72b2,_0x15096d);};}function D(_0x17a492,_0x369697,_0x97ab39,_0x36e575){const _0x1884f3=_0x3ed49b;var _0x4b03ca=arguments[_0x1884f3(0x174)],_0x4a7ecd=_0x4b03ca<0x3?_0x369697:_0x36e575===null?_0x36e575=Object[_0x1884f3(0x166)](_0x369697,_0x97ab39):_0x36e575,_0x4a80d1;if(typeof Reflect==_0x1884f3(0x14f)&&typeof Reflect[_0x1884f3(0x167)]==_0x1884f3(0x14d))_0x4a7ecd=Reflect['decorate'](_0x17a492,_0x369697,_0x97ab39,_0x36e575);else{for(var _0x1adf98=_0x17a492[_0x1884f3(0x174)]-0x1;_0x1adf98>=0x0;_0x1adf98--)(_0x4a80d1=_0x17a492[_0x1adf98])&&(_0x4a7ecd=(_0x4b03ca<0x3?_0x4a80d1(_0x4a7ecd):_0x4b03ca>0x3?_0x4a80d1(_0x369697,_0x97ab39,_0x4a7ecd):_0x4a80d1(_0x369697,_0x97ab39))||_0x4a7ecd);}return _0x4b03ca>0x3&&_0x4a7ecd&&Object['defineProperty'](_0x369697,_0x97ab39,_0x4a7ecd),_0x4a7ecd;}let O=class extends _0x2958fe{constructor(_0x1203cb){super(),this['_configService']=_0x1203cb;}[_0x3ed49b(0x15b)](_0x514da7){const _0x473ca4=_0x3ed49b;var _0x2947b9;let _0x3da7a2=((_0x2947b9=this[_0x473ca4(0x14b)][_0x473ca4(0x147)](_0x2b8ddf))==null?void 0x0:_0x2947b9['customHeaders'])||{};try{let _0x1ff457=new _0x24ba19(_0x514da7,{'headers':{..._0x3da7a2}}),_0x5669e5=new _0x40c93b();return{'URL':_0x514da7,'close':(_0xbe1ee3,_0x4fb394)=>{const _0x5d1016=_0x473ca4;_0x1ff457[_0x5d1016(0x144)](_0xbe1ee3,_0x4fb394),_0x5669e5['dispose']();},'send':_0x2aaf35=>{const _0x29b77b=_0x473ca4;_0x1ff457[_0x29b77b(0x142)](_0x2aaf35);},'open$':new _0x543202(_0x1fd000=>{const _0x15c8e9=_0x473ca4;let _0x51474e=_0x52625d=>_0x1fd000[_0x15c8e9(0x163)](_0x52625d);_0x1ff457[_0x15c8e9(0x141)](_0x15c8e9(0x148),_0x51474e),_0x5669e5[_0x15c8e9(0x16f)](_0x1cd99c(()=>_0x1ff457[_0x15c8e9(0x14a)](_0x15c8e9(0x148),_0x51474e)));})[_0x473ca4(0x15f)](_0x170ea9()),'close$':new _0x543202(_0x48dddc=>{const _0x560941=_0x473ca4;let _0x2d5531=_0x22a694=>_0x48dddc[_0x560941(0x163)](_0x22a694);_0x1ff457['addEventListener'](_0x560941(0x144),_0x2d5531),_0x5669e5[_0x560941(0x16f)](_0x1cd99c(()=>_0x1ff457[_0x560941(0x14a)](_0x560941(0x144),_0x2d5531)));})['pipe'](_0x170ea9()),'error$':new _0x543202(_0x853607=>{const _0x48af71=_0x473ca4;let _0x53f4ac=_0x2b4543=>_0x853607['next'](_0x2b4543);_0x1ff457[_0x48af71(0x141)](_0x48af71(0x173),_0x53f4ac),_0x5669e5[_0x48af71(0x16f)](_0x1cd99c(()=>_0x1ff457[_0x48af71(0x14a)](_0x48af71(0x173),_0x53f4ac)));})['pipe'](_0x170ea9()),'message$':new _0x543202(_0x43ad72=>{const _0x5ccb40=_0x473ca4;let _0x3c1269=_0x594c67=>_0x43ad72[_0x5ccb40(0x163)](_0x594c67);_0x1ff457[_0x5ccb40(0x141)](_0x5ccb40(0x165),_0x3c1269),_0x5669e5[_0x5ccb40(0x16f)](_0x1cd99c(()=>_0x1ff457[_0x5ccb40(0x14a)](_0x5ccb40(0x165),_0x3c1269)));})['pipe'](_0x170ea9())};}catch(_0x5de2e9){return console['error'](_0x5de2e9),null;}}};O=D([E(0x0,_0x3c1060)],O);function k(_0x3a2880){'@babel/helpers - typeof';const _0x5eca6b=_0x3ed49b;return k=typeof Symbol==_0x5eca6b(0x14d)&&typeof Symbol[_0x5eca6b(0x171)]==_0x5eca6b(0x146)?function(_0x166943){return typeof _0x166943;}:function(_0x40e748){const _0x77d203=_0x5eca6b;return _0x40e748&&typeof Symbol==_0x77d203(0x14d)&&_0x40e748[_0x77d203(0x150)]===Symbol&&_0x40e748!==Symbol[_0x77d203(0x16c)]?_0x77d203(0x146):typeof _0x40e748;},k(_0x3a2880);}function A(_0x142f86,_0x1b278e){const _0x2831a2=_0x3ed49b;if(k(_0x142f86)!=_0x2831a2(0x14f)||!_0x142f86)return _0x142f86;var _0x1a0ccd=_0x142f86[Symbol[_0x2831a2(0x157)]];if(_0x1a0ccd!==void 0x0){var _0x472441=_0x1a0ccd['call'](_0x142f86,_0x1b278e||_0x2831a2(0x164));if(k(_0x472441)!=_0x2831a2(0x14f))return _0x472441;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x1b278e===_0x2831a2(0x14e)?String:Number)(_0x142f86);}function j(_0x881ed4){const _0x2e20ec=_0x3ed49b;var _0x545ad8=A(_0x881ed4,_0x2e20ec(0x14e));return k(_0x545ad8)==_0x2e20ec(0x146)?_0x545ad8:_0x545ad8+'';}function M(_0x45e617,_0x22f246,_0x14297c){const _0x135de2=_0x3ed49b;return(_0x22f246=j(_0x22f246))in _0x45e617?Object[_0x135de2(0x16a)](_0x45e617,_0x22f246,{'value':_0x14297c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x45e617[_0x22f246]=_0x14297c,_0x45e617;}let N=class extends _0xea637b{constructor(_0x9a8666=T,_0x47d2db,_0x475b0e){const _0x1d7fe6=_0x3ed49b;super(),this['_config']=_0x9a8666,this[_0x1d7fe6(0x14b)]=_0x47d2db,this['_injector']=_0x475b0e;let {..._0xad2b1f}=_0x592ba3({},T,this[_0x1d7fe6(0x159)]);this['_configService'][_0x1d7fe6(0x160)]('collaboration-client-node.config',_0xad2b1f);}[_0x3ed49b(0x13f)](){this['_registerDependencies']();}[_0x3ed49b(0x16d)](){const _0x4b95ea=_0x3ed49b;_0x3fe490(this[_0x4b95ea(0x16e)],[[_0x5a2968,{'useClass':O}]]);}};M(N,_0x3ed49b(0x152),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),M(N,_0x3ed49b(0x149),C),M(N,_0x3ed49b(0x15e),w),N=D([_0xd9fdd5(_0x253fce,_0x283729,_0x247ccd,_0x28d393),E(0x1,_0x3c1060),E(0x2,_0x1dd1db(_0x1464a6))],N);let P=class extends _0x405c78{constructor(_0x48ac84,_0x179940,_0x3dd094,_0x53991c,_0x719401){const _0x224f03=_0x3ed49b;super(_0x48ac84,_0x179940,_0x3dd094,_0x53991c,_0x719401);let _0x5c9a53=this[_0x224f03(0x14b)]['getConfig'](_0x2b8ddf);this[_0x224f03(0x156)][_0x224f03(0x170)]({'interceptor':(_0x5511a4,_0x114cb0)=>{const _0x4bdc72=_0x224f03;let _0x157b15=_0x5511a4[_0x4bdc72(0x155)];if(_0x5c9a53!=null&&_0x5c9a53[_0x4bdc72(0x162)]){for(let _0x25bc70 in _0x5c9a53[_0x4bdc72(0x162)])_0x157b15[_0x4bdc72(0x158)](_0x25bc70,_0x5c9a53[_0x4bdc72(0x162)][_0x25bc70]);}return _0x114cb0(_0x5511a4);}});}async[_0x3ed49b(0x15b)](_0x3827a7){return this['_doCreateSocket'](_0x3827a7);}};P=D([E(0x0,_0x1dd1db(_0x1464a6)),E(0x1,_0x1dd1db(_0x1d6519)),E(0x2,_0x3c1060),E(0x3,_0x385b76),E(0x4,_0x12d40d)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
1
+ const _0x59090d=_0x4192;(function(_0x59a35d,_0x5da3b6){const _0x192905=_0x4192,_0x427638=_0x59a35d();while(!![]){try{const _0x370a22=parseInt(_0x192905(0x142))/0x1*(parseInt(_0x192905(0x16b))/0x2)+-parseInt(_0x192905(0x13c))/0x3+parseInt(_0x192905(0x157))/0x4+parseInt(_0x192905(0x13d))/0x5*(parseInt(_0x192905(0x13b))/0x6)+parseInt(_0x192905(0x152))/0x7+-parseInt(_0x192905(0x161))/0x8*(-parseInt(_0x192905(0x146))/0x9)+-parseInt(_0x192905(0x15d))/0xa;if(_0x370a22===_0x5da3b6)break;else _0x427638['push'](_0x427638['shift']());}catch(_0xad5e1d){_0x427638['push'](_0x427638['shift']());}}}(_0x4fae,0x537e1));import{ISnapshotServerService as _0x5b3b8f,UniverCollaborationPlugin as _0x51d679}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1d236b,CollaborationSocketService as _0x35eb1a,UniverCollaborationClientPlugin as _0x25a16c}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x546296}from'@univerjs-pro/license';function _0x4192(_0x536d3d,_0x153578){_0x536d3d=_0x536d3d-0x13b;const _0x4fae16=_0x4fae();let _0x4192b4=_0x4fae16[_0x536d3d];return _0x4192b4;}import{DependentOn as _0x252588,Disposable as _0x470969,DisposableCollection as _0xc209c3,IConfigService as _0x889711,ILogService as _0x47a811,Inject as _0x5e1919,Injector as _0x4683da,Plugin as _0x219adf,merge as _0x51f70e,registerDependencies as _0x3e275f,toDisposable as _0x2d154c}from'@univerjs/core';import{HTTPService as _0x152225,ISocketService as _0x2268e0,UniverNetworkPlugin as _0x1abc4b}from'@univerjs/network';import{Observable as _0x38e503,share as _0x2ebbe7}from'rxjs';import{WebSocket as _0x33e35c}from'ws';var C='@univerjs-pro/collaboration-client-node',w=_0x59090d(0x140);const T={};function E(_0x1e2506,_0xde04a6){return function(_0x2268bd,_0x40b7a0){_0xde04a6(_0x2268bd,_0x40b7a0,_0x1e2506);};}function D(_0x5cd6a3,_0x5d8df3,_0x3745d4,_0x46c249){const _0xc1d2ff=_0x59090d;var _0x968e82=arguments['length'],_0x2b4017=_0x968e82<0x3?_0x5d8df3:_0x46c249===null?_0x46c249=Object[_0xc1d2ff(0x16e)](_0x5d8df3,_0x3745d4):_0x46c249,_0xe99d38;if(typeof Reflect==_0xc1d2ff(0x159)&&typeof Reflect[_0xc1d2ff(0x162)]=='function')_0x2b4017=Reflect['decorate'](_0x5cd6a3,_0x5d8df3,_0x3745d4,_0x46c249);else{for(var _0x143ded=_0x5cd6a3[_0xc1d2ff(0x151)]-0x1;_0x143ded>=0x0;_0x143ded--)(_0xe99d38=_0x5cd6a3[_0x143ded])&&(_0x2b4017=(_0x968e82<0x3?_0xe99d38(_0x2b4017):_0x968e82>0x3?_0xe99d38(_0x5d8df3,_0x3745d4,_0x2b4017):_0xe99d38(_0x5d8df3,_0x3745d4))||_0x2b4017);}return _0x968e82>0x3&&_0x2b4017&&Object[_0xc1d2ff(0x163)](_0x5d8df3,_0x3745d4,_0x2b4017),_0x2b4017;}let O=class extends _0x470969{constructor(_0x209d6d){const _0x2f0025=_0x59090d;super(),this[_0x2f0025(0x166)]=_0x209d6d;}[_0x59090d(0x149)](_0x3ca285){const _0x26586d=_0x59090d;var _0x4cc789;let _0x362f01=((_0x4cc789=this['_configService'][_0x26586d(0x145)](_0x1d236b))==null?void 0x0:_0x4cc789[_0x26586d(0x16c)])||{};try{let _0x2282bc=new _0x33e35c(_0x3ca285,{'headers':{..._0x362f01}}),_0x5d18a6=new _0xc209c3();return{'URL':_0x3ca285,'close':(_0x3ab16b,_0x44af28)=>{const _0x369f37=_0x26586d;_0x2282bc[_0x369f37(0x14b)](_0x3ab16b,_0x44af28),_0x5d18a6[_0x369f37(0x160)]();},'send':_0x343514=>{const _0x15982b=_0x26586d;_0x2282bc[_0x15982b(0x16a)](_0x343514);},'open$':new _0x38e503(_0x564413=>{const _0x91517c=_0x26586d;let _0x12e7cb=_0x25b89a=>_0x564413[_0x91517c(0x168)](_0x25b89a);_0x2282bc[_0x91517c(0x148)](_0x91517c(0x14e),_0x12e7cb),_0x5d18a6[_0x91517c(0x14a)](_0x2d154c(()=>_0x2282bc[_0x91517c(0x15e)](_0x91517c(0x14e),_0x12e7cb)));})[_0x26586d(0x143)](_0x2ebbe7()),'close$':new _0x38e503(_0x17d93d=>{const _0x5e7572=_0x26586d;let _0x3365e6=_0x566951=>_0x17d93d[_0x5e7572(0x168)](_0x566951);_0x2282bc['addEventListener'](_0x5e7572(0x14b),_0x3365e6),_0x5d18a6[_0x5e7572(0x14a)](_0x2d154c(()=>_0x2282bc['removeEventListener'](_0x5e7572(0x14b),_0x3365e6)));})['pipe'](_0x2ebbe7()),'error$':new _0x38e503(_0x5be6d9=>{const _0x589293=_0x26586d;let _0x13b339=_0x59574b=>_0x5be6d9[_0x589293(0x168)](_0x59574b);_0x2282bc[_0x589293(0x148)](_0x589293(0x15f),_0x13b339),_0x5d18a6['add'](_0x2d154c(()=>_0x2282bc[_0x589293(0x15e)]('error',_0x13b339)));})[_0x26586d(0x143)](_0x2ebbe7()),'message$':new _0x38e503(_0x4eba48=>{const _0x5ecc4c=_0x26586d;let _0x4ef866=_0x333fa1=>_0x4eba48['next'](_0x333fa1);_0x2282bc[_0x5ecc4c(0x148)](_0x5ecc4c(0x15b),_0x4ef866),_0x5d18a6[_0x5ecc4c(0x14a)](_0x2d154c(()=>_0x2282bc[_0x5ecc4c(0x15e)](_0x5ecc4c(0x15b),_0x4ef866)));})['pipe'](_0x2ebbe7())};}catch(_0x7845e7){return console[_0x26586d(0x15f)](_0x7845e7),null;}}};O=D([E(0x0,_0x889711)],O);function _0x4fae(){const _0x183665=['_doCreateSocket','pluginName','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','2019644IPUZtc','set','object','headers','message','_registerDependencies','11748550aBSEgo','removeEventListener','error','dispose','8utEmgk','decorate','defineProperty','default','toPrimitive','_configService','iterator','next','_injector','send','2XguGUg','customHeaders','setConfig','getOwnPropertyDescriptor','prototype','version','27954bVSdbZ','576042OvOlci','200eKPzUQ','_config','constructor','1.4.0','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','334486cMzdiq','pipe','registerHTTPInterceptor','getConfig','2735406ERCwSj','_httpService','addEventListener','createSocket','add','close','packageName','string','open','function','onStarting','length','2654141KHMPgF','symbol'];_0x4fae=function(){return _0x183665;};return _0x4fae();}function k(_0x2eaa54){'@babel/helpers - typeof';const _0x246b1f=_0x59090d;return k=typeof Symbol==_0x246b1f(0x14f)&&typeof Symbol[_0x246b1f(0x167)]=='symbol'?function(_0x44fbc1){return typeof _0x44fbc1;}:function(_0x3a46c4){const _0x26e5eb=_0x246b1f;return _0x3a46c4&&typeof Symbol=='function'&&_0x3a46c4[_0x26e5eb(0x13f)]===Symbol&&_0x3a46c4!==Symbol[_0x26e5eb(0x16f)]?'symbol':typeof _0x3a46c4;},k(_0x2eaa54);}function A(_0x224eb0,_0x2d420c){const _0x20cdb2=_0x59090d;if(k(_0x224eb0)!=_0x20cdb2(0x159)||!_0x224eb0)return _0x224eb0;var _0x2c66c5=_0x224eb0[Symbol[_0x20cdb2(0x165)]];if(_0x2c66c5!==void 0x0){var _0xbf4772=_0x2c66c5['call'](_0x224eb0,_0x2d420c||_0x20cdb2(0x164));if(k(_0xbf4772)!=_0x20cdb2(0x159))return _0xbf4772;throw TypeError(_0x20cdb2(0x156));}return(_0x2d420c===_0x20cdb2(0x14d)?String:Number)(_0x224eb0);}function j(_0x4c64a2){const _0x18096f=_0x59090d;var _0x132018=A(_0x4c64a2,_0x18096f(0x14d));return k(_0x132018)==_0x18096f(0x153)?_0x132018:_0x132018+'';}function M(_0x2b1eb1,_0x25371d,_0xef8cad){return(_0x25371d=j(_0x25371d))in _0x2b1eb1?Object['defineProperty'](_0x2b1eb1,_0x25371d,{'value':_0xef8cad,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2b1eb1[_0x25371d]=_0xef8cad,_0x2b1eb1;}let N=class extends _0x219adf{constructor(_0x435659=T,_0xc66520,_0x59c580){const _0x99b1d5=_0x59090d;super(),this[_0x99b1d5(0x13e)]=_0x435659,this[_0x99b1d5(0x166)]=_0xc66520,this[_0x99b1d5(0x169)]=_0x59c580;let {..._0x2a0fe8}=_0x51f70e({},T,this[_0x99b1d5(0x13e)]);this['_configService'][_0x99b1d5(0x16d)]('collaboration-client-node.config',_0x2a0fe8);}[_0x59090d(0x150)](){const _0x1a46c6=_0x59090d;this[_0x1a46c6(0x15c)]();}[_0x59090d(0x15c)](){const _0x12d8ec=_0x59090d;_0x3e275f(this[_0x12d8ec(0x169)],[[_0x2268e0,{'useClass':O}]]);}};M(N,_0x59090d(0x155),_0x59090d(0x141)),M(N,_0x59090d(0x14c),C),M(N,_0x59090d(0x170),w),N=D([_0x252588(_0x546296,_0x1abc4b,_0x51d679,_0x25a16c),E(0x1,_0x889711),E(0x2,_0x5e1919(_0x4683da))],N);let P=class extends _0x35eb1a{constructor(_0x419926,_0x116e90,_0x2c9ddf,_0x8b2a15,_0x34a060){const _0x22b31f=_0x59090d;super(_0x419926,_0x116e90,_0x2c9ddf,_0x8b2a15,_0x34a060);let _0x188f61=this[_0x22b31f(0x166)][_0x22b31f(0x145)](_0x1d236b);this[_0x22b31f(0x147)][_0x22b31f(0x144)]({'interceptor':(_0x30d5bd,_0xce93e6)=>{const _0x207a8d=_0x22b31f;let _0x528bba=_0x30d5bd[_0x207a8d(0x15a)];if(_0x188f61!=null&&_0x188f61['customHeaders']){for(let _0x485110 in _0x188f61[_0x207a8d(0x16c)])_0x528bba[_0x207a8d(0x158)](_0x485110,_0x188f61[_0x207a8d(0x16c)][_0x485110]);}return _0xce93e6(_0x30d5bd);}});}async[_0x59090d(0x149)](_0x4304b6){const _0x38b949=_0x59090d;return this[_0x38b949(0x154)](_0x4304b6);}};P=D([E(0x0,_0x5e1919(_0x4683da)),E(0x1,_0x5e1919(_0x152225)),E(0x2,_0x889711),E(0x3,_0x47a811),E(0x4,_0x5b3b8f)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0xcfad3e,_0xd2d50d){const _0x1fb8d0=_0x2b48,_0x1db8f3=_0xcfad3e();while(!![]){try{const _0x11fce7=parseInt(_0x1fb8d0(0x220))/0x1+-parseInt(_0x1fb8d0(0x1fc))/0x2+parseInt(_0x1fb8d0(0x20e))/0x3*(parseInt(_0x1fb8d0(0x222))/0x4)+parseInt(_0x1fb8d0(0x1f4))/0x5*(-parseInt(_0x1fb8d0(0x1eb))/0x6)+-parseInt(_0x1fb8d0(0x1de))/0x7*(-parseInt(_0x1fb8d0(0x1df))/0x8)+parseInt(_0x1fb8d0(0x227))/0x9*(parseInt(_0x1fb8d0(0x20f))/0xa)+-parseInt(_0x1fb8d0(0x22b))/0xb;if(_0x11fce7===_0xd2d50d)break;else _0x1db8f3['push'](_0x1db8f3['shift']());}catch(_0x194bc5){_0x1db8f3['push'](_0x1db8f3['shift']());}}}(_0x2c4d,0xc065f),function(_0x598e6e,_0x5d53d4){const _0x532449=_0x2b48;typeof exports==_0x532449(0x22c)&&typeof module<'u'?_0x5d53d4(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs')):typeof define==_0x532449(0x1f2)&&define[_0x532449(0x1e8)]?define([_0x532449(0x1fa),_0x532449(0x218),_0x532449(0x1fd),'@univerjs-pro/license',_0x532449(0x1f7),'@univerjs/network',_0x532449(0x1f8)],_0x5d53d4):(_0x598e6e=typeof globalThis<'u'?globalThis:_0x598e6e||self,_0x5d53d4(_0x598e6e[_0x532449(0x1dd)]={},_0x598e6e[_0x532449(0x205)],_0x598e6e[_0x532449(0x1fb)],_0x598e6e[_0x532449(0x20a)],_0x598e6e[_0x532449(0x1fe)],_0x598e6e[_0x532449(0x209)],_0x598e6e[_0x532449(0x1f8)]));}(this,function(_0x275261,_0x33baee,_0x42c9eb,_0x38218c,_0x4f0a9c,_0xd724,_0xf9958){const _0x48fe57=_0x2b48;Object[_0x48fe57(0x1e0)](_0x275261,Symbol[_0x48fe57(0x221)],{'value':_0x48fe57(0x1f9)});var _0x531be8=(_0x18209a,_0x2ccf79)=>()=>(_0x2ccf79||(_0x18209a((_0x2ccf79={'exports':{}})[_0x48fe57(0x1fa)],_0x2ccf79),_0x18209a=null),_0x2ccf79[_0x48fe57(0x1fa)]),_0x2ba5fa=_0x48fe57(0x22a),_0x19db15='1.3.1';let _0x538689={};var _0x27373c=_0x531be8((_0x1dfee6,_0x204bde)=>{const _0x14f09b=_0x48fe57;_0x204bde[_0x14f09b(0x1fa)]=function(){const _0x4b39cb=_0x14f09b;throw Error(_0x4b39cb(0x1dc));};})();function _0x1f0d1f(_0x1912f7,_0x43ae14){return function(_0x5cb74d,_0x26b548){_0x43ae14(_0x5cb74d,_0x26b548,_0x1912f7);};}function _0x2b33af(_0x31cccf,_0xbb62e,_0x5b4c68,_0x487c86){const _0x32a690=_0x48fe57;var _0x9eed97=arguments[_0x32a690(0x21a)],_0x42afd4=_0x9eed97<0x3?_0xbb62e:_0x487c86===null?_0x487c86=Object[_0x32a690(0x20c)](_0xbb62e,_0x5b4c68):_0x487c86,_0x28d548;if(typeof Reflect=='object'&&typeof Reflect[_0x32a690(0x200)]==_0x32a690(0x1f2))_0x42afd4=Reflect[_0x32a690(0x200)](_0x31cccf,_0xbb62e,_0x5b4c68,_0x487c86);else{for(var _0x5319a8=_0x31cccf[_0x32a690(0x21a)]-0x1;_0x5319a8>=0x0;_0x5319a8--)(_0x28d548=_0x31cccf[_0x5319a8])&&(_0x42afd4=(_0x9eed97<0x3?_0x28d548(_0x42afd4):_0x9eed97>0x3?_0x28d548(_0xbb62e,_0x5b4c68,_0x42afd4):_0x28d548(_0xbb62e,_0x5b4c68))||_0x42afd4);}return _0x9eed97>0x3&&_0x42afd4&&Object[_0x32a690(0x1e0)](_0xbb62e,_0x5b4c68,_0x42afd4),_0x42afd4;}let _0x29d974=class extends _0x4f0a9c[_0x48fe57(0x223)]{constructor(_0x3f8592){const _0x33690b=_0x48fe57;super(),this[_0x33690b(0x20d)]=_0x3f8592;}[_0x48fe57(0x215)](_0x46b043){const _0x445da6=_0x48fe57;var _0x168c2d;let _0x22fd68=((_0x168c2d=this['_configService'][_0x445da6(0x21e)](_0x42c9eb[_0x445da6(0x225)]))==null?void 0x0:_0x168c2d['customHeaders'])||{};try{let _0x43d006=new _0x27373c['WebSocket'](_0x46b043,{'headers':{..._0x22fd68}}),_0x10b30f=new _0x4f0a9c[(_0x445da6(0x1ed))]();return{'URL':_0x46b043,'close':(_0x34acfe,_0xd7c512)=>{const _0x31873b=_0x445da6;_0x43d006[_0x31873b(0x21d)](_0x34acfe,_0xd7c512),_0x10b30f['dispose']();},'send':_0x2d4828=>{const _0xd22707=_0x445da6;_0x43d006[_0xd22707(0x208)](_0x2d4828);},'open$':new _0xf9958[(_0x445da6(0x228))](_0x3584a8=>{const _0x121c80=_0x445da6;let _0x433543=_0x9375bb=>_0x3584a8[_0x121c80(0x1db)](_0x9375bb);_0x43d006[_0x121c80(0x229)]('open',_0x433543),_0x10b30f['add']((0x0,_0x4f0a9c[_0x121c80(0x1f6)])(()=>_0x43d006[_0x121c80(0x224)](_0x121c80(0x1e3),_0x433543)));})['pipe']((0x0,_0xf9958['share'])()),'close$':new _0xf9958[(_0x445da6(0x228))](_0xc74477=>{const _0x5f072f=_0x445da6;let _0x3a7bf3=_0x479322=>_0xc74477[_0x5f072f(0x1db)](_0x479322);_0x43d006[_0x5f072f(0x229)](_0x5f072f(0x21d),_0x3a7bf3),_0x10b30f[_0x5f072f(0x1e2)]((0x0,_0x4f0a9c[_0x5f072f(0x1f6)])(()=>_0x43d006[_0x5f072f(0x224)](_0x5f072f(0x21d),_0x3a7bf3)));})[_0x445da6(0x1e4)]((0x0,_0xf9958['share'])()),'error$':new _0xf9958[(_0x445da6(0x228))](_0x58f55f=>{const _0x47775e=_0x445da6;let _0x159210=_0x57f5e2=>_0x58f55f[_0x47775e(0x1db)](_0x57f5e2);_0x43d006[_0x47775e(0x229)]('error',_0x159210),_0x10b30f[_0x47775e(0x1e2)]((0x0,_0x4f0a9c[_0x47775e(0x1f6)])(()=>_0x43d006[_0x47775e(0x224)](_0x47775e(0x202),_0x159210)));})['pipe']((0x0,_0xf9958['share'])()),'message$':new _0xf9958[(_0x445da6(0x228))](_0x1ba8be=>{const _0x20d0f9=_0x445da6;let _0xa0da42=_0x19a1e8=>_0x1ba8be[_0x20d0f9(0x1db)](_0x19a1e8);_0x43d006[_0x20d0f9(0x229)](_0x20d0f9(0x207),_0xa0da42),_0x10b30f[_0x20d0f9(0x1e2)]((0x0,_0x4f0a9c[_0x20d0f9(0x1f6)])(()=>_0x43d006[_0x20d0f9(0x224)](_0x20d0f9(0x207),_0xa0da42)));})[_0x445da6(0x1e4)]((0x0,_0xf9958[_0x445da6(0x214)])())};}catch(_0x3bf289){return console['error'](_0x3bf289),null;}}};_0x29d974=_0x2b33af([_0x1f0d1f(0x0,_0x4f0a9c['IConfigService'])],_0x29d974);function _0xc5f758(_0x37a95e){'@babel/helpers - typeof';const _0x489107=_0x48fe57;return _0xc5f758=typeof Symbol==_0x489107(0x1f2)&&typeof Symbol[_0x489107(0x216)]==_0x489107(0x219)?function(_0x62e74f){return typeof _0x62e74f;}:function(_0x27ad41){const _0x3bed87=_0x489107;return _0x27ad41&&typeof Symbol==_0x3bed87(0x1f2)&&_0x27ad41['constructor']===Symbol&&_0x27ad41!==Symbol['prototype']?_0x3bed87(0x219):typeof _0x27ad41;},_0xc5f758(_0x37a95e);}function _0x11a466(_0x5685a1,_0x1e758f){const _0x54fdc4=_0x48fe57;if(_0xc5f758(_0x5685a1)!=_0x54fdc4(0x22c)||!_0x5685a1)return _0x5685a1;var _0x4773ef=_0x5685a1[Symbol[_0x54fdc4(0x1e7)]];if(_0x4773ef!==void 0x0){var _0x5813d7=_0x4773ef[_0x54fdc4(0x21f)](_0x5685a1,_0x1e758f||_0x54fdc4(0x1ec));if(_0xc5f758(_0x5813d7)!=_0x54fdc4(0x22c))return _0x5813d7;throw TypeError(_0x54fdc4(0x1f1));}return(_0x1e758f===_0x54fdc4(0x217)?String:Number)(_0x5685a1);}function _0x904c01(_0x7d1b55){const _0x1d87f7=_0x48fe57;var _0x29ec98=_0x11a466(_0x7d1b55,_0x1d87f7(0x217));return _0xc5f758(_0x29ec98)==_0x1d87f7(0x219)?_0x29ec98:_0x29ec98+'';}function _0x1ed979(_0x3009da,_0x50541f,_0x478ade){const _0x3d0485=_0x48fe57;return(_0x50541f=_0x904c01(_0x50541f))in _0x3009da?Object[_0x3d0485(0x1e0)](_0x3009da,_0x50541f,{'value':_0x478ade,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3009da[_0x50541f]=_0x478ade,_0x3009da;}let _0x567e25=class extends _0x4f0a9c[_0x48fe57(0x1ee)]{constructor(_0x39cb39=_0x538689,_0x369bef,_0xe8c047){const _0x1f3ad4=_0x48fe57;super(),this[_0x1f3ad4(0x203)]=_0x39cb39,this[_0x1f3ad4(0x20d)]=_0x369bef,this['_injector']=_0xe8c047;let {..._0x3c812f}=(0x0,_0x4f0a9c[_0x1f3ad4(0x22d)])({},_0x538689,this['_config']);this[_0x1f3ad4(0x20d)][_0x1f3ad4(0x1e1)](_0x1f3ad4(0x1f5),_0x3c812f);}['onStarting'](){this['_registerDependencies']();}['_registerDependencies'](){const _0x484e98=_0x48fe57;(0x0,_0x4f0a9c['registerDependencies'])(this[_0x484e98(0x20b)],[[_0xd724[_0x484e98(0x213)],{'useClass':_0x29d974}]]);}};_0x1ed979(_0x567e25,_0x48fe57(0x1e5),_0x48fe57(0x1f3)),_0x1ed979(_0x567e25,_0x48fe57(0x211),_0x2ba5fa),_0x1ed979(_0x567e25,'version',_0x19db15),_0x567e25=_0x2b33af([(0x0,_0x4f0a9c[_0x48fe57(0x212)])(_0x38218c['UniverLicensePlugin'],_0xd724[_0x48fe57(0x210)],_0x33baee['UniverCollaborationPlugin'],_0x42c9eb['UniverCollaborationClientPlugin']),_0x1f0d1f(0x1,_0x4f0a9c[_0x48fe57(0x21c)]),_0x1f0d1f(0x2,(0x0,_0x4f0a9c[_0x48fe57(0x1e9)])(_0x4f0a9c[_0x48fe57(0x204)]))],_0x567e25);let _0x286def=class extends _0x42c9eb[_0x48fe57(0x201)]{constructor(_0x24d5c3,_0x5d7b49,_0xaf3fe6,_0x32bcf6,_0x486010){const _0xc6e8fa=_0x48fe57;super(_0x24d5c3,_0x5d7b49,_0xaf3fe6,_0x32bcf6,_0x486010);let _0x32ed5d=this['_configService'][_0xc6e8fa(0x21e)](_0x42c9eb[_0xc6e8fa(0x225)]);this[_0xc6e8fa(0x1ea)]['registerHTTPInterceptor']({'interceptor':(_0x3d2a2c,_0x56a1a4)=>{const _0x2ddf1f=_0xc6e8fa;let _0x1d8ae1=_0x3d2a2c[_0x2ddf1f(0x206)];if(_0x32ed5d!=null&&_0x32ed5d['customHeaders']){for(let _0x4dbd68 in _0x32ed5d[_0x2ddf1f(0x21b)])_0x1d8ae1['set'](_0x4dbd68,_0x32ed5d['customHeaders'][_0x4dbd68]);}return _0x56a1a4(_0x3d2a2c);}});}async[_0x48fe57(0x215)](_0x3eb8c8){const _0x5ec966=_0x48fe57;return this[_0x5ec966(0x1ff)](_0x3eb8c8);}};_0x286def=_0x2b33af([_0x1f0d1f(0x0,(0x0,_0x4f0a9c[_0x48fe57(0x1e9)])(_0x4f0a9c[_0x48fe57(0x204)])),_0x1f0d1f(0x1,(0x0,_0x4f0a9c[_0x48fe57(0x1e9)])(_0xd724['HTTPService'])),_0x1f0d1f(0x2,_0x4f0a9c[_0x48fe57(0x21c)]),_0x1f0d1f(0x3,_0x4f0a9c[_0x48fe57(0x1ef)]),_0x1f0d1f(0x4,_0x33baee[_0x48fe57(0x226)])],_0x286def),Object[_0x48fe57(0x1e0)](_0x275261,_0x48fe57(0x1f0),{'enumerable':!0x0,'get':function(){return _0x286def;}}),Object[_0x48fe57(0x1e0)](_0x275261,_0x48fe57(0x1e6),{'enumerable':!0x0,'get':function(){return _0x567e25;}});}));function _0x2b48(_0x379a1c,_0x2c00fa){_0x379a1c=_0x379a1c-0x1db;const _0x2c4df9=_0x2c4d();let _0x2b48da=_0x2c4df9[_0x379a1c];return _0x2b48da;}function _0x2c4d(){const _0x1998b1=['send','UniverNetwork','UniverProLicense','_injector','getOwnPropertyDescriptor','_configService','1049541aIGBzc','20LDbiFH','UniverNetworkPlugin','packageName','DependentOn','ISocketService','share','createSocket','iterator','string','@univerjs-pro/collaboration','symbol','length','customHeaders','IConfigService','close','getConfig','call','578070JDVgEx','toStringTag','8eTARUx','Disposable','removeEventListener','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','ISnapshotServerService','4334139JDUeQL','Observable','addEventListener','@univerjs-pro/collaboration-client-node','15490123YKovNp','object','merge','next','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','UniverProCollaborationClientNode','162862pTixnh','424MLPVIF','defineProperty','setConfig','add','open','pipe','pluginName','UniverCollaborationClientNodePlugin','toPrimitive','amd','Inject','_httpService','8478AmBLoo','default','DisposableCollection','Plugin','ILogService','NodeCollaborationSocketService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','function','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','3470oFwSKN','collaboration-client-node.config','toDisposable','@univerjs/core','rxjs','Module','exports','UniverProCollaborationClient','594252gXUAYm','@univerjs-pro/collaboration-client','UniverCore','_doCreateSocket','decorate','CollaborationSocketService','error','_config','Injector','UniverProCollaboration','headers','message'];_0x2c4d=function(){return _0x1998b1;};return _0x2c4d();}
1
+ (function(_0x986c76,_0x3986e4){const _0x346b38=_0x38fa,_0x2c50b1=_0x986c76();while(!![]){try{const _0x4d734d=parseInt(_0x346b38(0x18c))/0x1*(parseInt(_0x346b38(0x159))/0x2)+-parseInt(_0x346b38(0x149))/0x3+parseInt(_0x346b38(0x16c))/0x4+parseInt(_0x346b38(0x13d))/0x5+parseInt(_0x346b38(0x14a))/0x6+parseInt(_0x346b38(0x15e))/0x7*(parseInt(_0x346b38(0x15c))/0x8)+-parseInt(_0x346b38(0x18f))/0x9;if(_0x4d734d===_0x3986e4)break;else _0x2c50b1['push'](_0x2c50b1['shift']());}catch(_0x126e8f){_0x2c50b1['push'](_0x2c50b1['shift']());}}}(_0xc473,0x35af7),function(_0x442a13,_0x30334f){const _0x330f0c=_0x38fa;typeof exports==_0x330f0c(0x164)&&typeof module<'u'?_0x30334f(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs')):typeof define==_0x330f0c(0x178)&&define[_0x330f0c(0x150)]?define(['exports',_0x330f0c(0x16d),_0x330f0c(0x145),'@univerjs-pro/license',_0x330f0c(0x17f),_0x330f0c(0x16e),_0x330f0c(0x17a)],_0x30334f):(_0x442a13=typeof globalThis<'u'?globalThis:_0x442a13||self,_0x30334f(_0x442a13[_0x330f0c(0x175)]={},_0x442a13[_0x330f0c(0x141)],_0x442a13[_0x330f0c(0x17c)],_0x442a13[_0x330f0c(0x154)],_0x442a13['UniverCore'],_0x442a13[_0x330f0c(0x176)],_0x442a13[_0x330f0c(0x17a)]));}(this,function(_0xb1a2cc,_0x476004,_0x1cc665,_0x252b7a,_0x321c9a,_0x14a989,_0xe5f44b){const _0xaabc27=_0x38fa;Object[_0xaabc27(0x18a)](_0xb1a2cc,Symbol['toStringTag'],{'value':'Module'});var _0x2af3d3=(_0x28982f,_0x1baad1)=>()=>(_0x1baad1||(_0x28982f((_0x1baad1={'exports':{}})['exports'],_0x1baad1,_0x1baad1[_0xaabc27(0x155)]),_0x28982f=null),_0x1baad1['exports']),_0x40b601='@univerjs-pro/collaboration-client-node',_0x5bfe21=_0xaabc27(0x181);let _0x349717={};var _0x36e9ed=_0x2af3d3((_0x7ea15,_0x4f076a)=>{const _0x2aa323=_0xaabc27;_0x4f076a[_0x2aa323(0x155)]=function(){throw Error('ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object');};})();function _0x325b11(_0x4b2f6c,_0x30a294){return function(_0x24051b,_0x5e40bf){_0x30a294(_0x24051b,_0x5e40bf,_0x4b2f6c);};}function _0x2f708b(_0x407502,_0x18fa64,_0x9412d7,_0x14d30f){const _0x1ef451=_0xaabc27;var _0x2b725f=arguments[_0x1ef451(0x13e)],_0x1f79c8=_0x2b725f<0x3?_0x18fa64:_0x14d30f===null?_0x14d30f=Object[_0x1ef451(0x142)](_0x18fa64,_0x9412d7):_0x14d30f,_0x46d913;if(typeof Reflect==_0x1ef451(0x164)&&typeof Reflect[_0x1ef451(0x15f)]==_0x1ef451(0x178))_0x1f79c8=Reflect[_0x1ef451(0x15f)](_0x407502,_0x18fa64,_0x9412d7,_0x14d30f);else{for(var _0x1eb7e4=_0x407502[_0x1ef451(0x13e)]-0x1;_0x1eb7e4>=0x0;_0x1eb7e4--)(_0x46d913=_0x407502[_0x1eb7e4])&&(_0x1f79c8=(_0x2b725f<0x3?_0x46d913(_0x1f79c8):_0x2b725f>0x3?_0x46d913(_0x18fa64,_0x9412d7,_0x1f79c8):_0x46d913(_0x18fa64,_0x9412d7))||_0x1f79c8);}return _0x2b725f>0x3&&_0x1f79c8&&Object[_0x1ef451(0x18a)](_0x18fa64,_0x9412d7,_0x1f79c8),_0x1f79c8;}let _0x452dea=class extends _0x321c9a[_0xaabc27(0x186)]{constructor(_0x5b1697){super(),this['_configService']=_0x5b1697;}[_0xaabc27(0x182)](_0x3ed940){const _0x4644d2=_0xaabc27;var _0x5a83b9;let _0x33924f=((_0x5a83b9=this['_configService'][_0x4644d2(0x172)](_0x1cc665[_0x4644d2(0x166)]))==null?void 0x0:_0x5a83b9[_0x4644d2(0x14f)])||{};try{let _0x1c5a7d=new _0x36e9ed[(_0x4644d2(0x14e))](_0x3ed940,{'headers':{..._0x33924f}}),_0x34530c=new _0x321c9a['DisposableCollection']();return{'URL':_0x3ed940,'close':(_0x27396a,_0xcbbd59)=>{_0x1c5a7d['close'](_0x27396a,_0xcbbd59),_0x34530c['dispose']();},'send':_0xf0a94b=>{const _0x53fed6=_0x4644d2;_0x1c5a7d[_0x53fed6(0x156)](_0xf0a94b);},'open$':new _0xe5f44b['Observable'](_0x4fb692=>{const _0x505774=_0x4644d2;let _0x2bfaf8=_0x29cf2e=>_0x4fb692['next'](_0x29cf2e);_0x1c5a7d['addEventListener']('open',_0x2bfaf8),_0x34530c[_0x505774(0x15b)]((0x0,_0x321c9a[_0x505774(0x162)])(()=>_0x1c5a7d[_0x505774(0x171)](_0x505774(0x16b),_0x2bfaf8)));})[_0x4644d2(0x179)]((0x0,_0xe5f44b[_0x4644d2(0x184)])()),'close$':new _0xe5f44b[(_0x4644d2(0x174))](_0x2fa58a=>{const _0x2fc63c=_0x4644d2;let _0x1d6186=_0x58ca66=>_0x2fa58a[_0x2fc63c(0x190)](_0x58ca66);_0x1c5a7d[_0x2fc63c(0x14c)](_0x2fc63c(0x18b),_0x1d6186),_0x34530c[_0x2fc63c(0x15b)]((0x0,_0x321c9a[_0x2fc63c(0x162)])(()=>_0x1c5a7d[_0x2fc63c(0x171)](_0x2fc63c(0x18b),_0x1d6186)));})[_0x4644d2(0x179)]((0x0,_0xe5f44b[_0x4644d2(0x184)])()),'error$':new _0xe5f44b[(_0x4644d2(0x174))](_0x2ccec0=>{const _0x112e36=_0x4644d2;let _0x51c17d=_0xbf6c6b=>_0x2ccec0[_0x112e36(0x190)](_0xbf6c6b);_0x1c5a7d[_0x112e36(0x14c)](_0x112e36(0x173),_0x51c17d),_0x34530c['add']((0x0,_0x321c9a[_0x112e36(0x162)])(()=>_0x1c5a7d[_0x112e36(0x171)](_0x112e36(0x173),_0x51c17d)));})['pipe']((0x0,_0xe5f44b[_0x4644d2(0x184)])()),'message$':new _0xe5f44b[(_0x4644d2(0x174))](_0x5c14fb=>{const _0x4541df=_0x4644d2;let _0x93d2c9=_0x4b20e8=>_0x5c14fb[_0x4541df(0x190)](_0x4b20e8);_0x1c5a7d[_0x4541df(0x14c)](_0x4541df(0x168),_0x93d2c9),_0x34530c[_0x4541df(0x15b)]((0x0,_0x321c9a[_0x4541df(0x162)])(()=>_0x1c5a7d[_0x4541df(0x171)](_0x4541df(0x168),_0x93d2c9)));})[_0x4644d2(0x179)]((0x0,_0xe5f44b[_0x4644d2(0x184)])())};}catch(_0x55d18c){return console['error'](_0x55d18c),null;}}};_0x452dea=_0x2f708b([_0x325b11(0x0,_0x321c9a[_0xaabc27(0x15d)])],_0x452dea);function _0x5ab28e(_0x1b0c75){'@babel/helpers - typeof';const _0x11adb1=_0xaabc27;return _0x5ab28e=typeof Symbol==_0x11adb1(0x178)&&typeof Symbol[_0x11adb1(0x158)]==_0x11adb1(0x169)?function(_0x326109){return typeof _0x326109;}:function(_0x15474e){const _0x49d2ee=_0x11adb1;return _0x15474e&&typeof Symbol=='function'&&_0x15474e[_0x49d2ee(0x148)]===Symbol&&_0x15474e!==Symbol[_0x49d2ee(0x14d)]?_0x49d2ee(0x169):typeof _0x15474e;},_0x5ab28e(_0x1b0c75);}function _0x463c35(_0x105a7c,_0x4f63bc){const _0x22b6ae=_0xaabc27;if(_0x5ab28e(_0x105a7c)!=_0x22b6ae(0x164)||!_0x105a7c)return _0x105a7c;var _0x142101=_0x105a7c[Symbol[_0x22b6ae(0x143)]];if(_0x142101!==void 0x0){var _0x4cc8af=_0x142101[_0x22b6ae(0x160)](_0x105a7c,_0x4f63bc||_0x22b6ae(0x18e));if(_0x5ab28e(_0x4cc8af)!=_0x22b6ae(0x164))return _0x4cc8af;throw TypeError(_0x22b6ae(0x17b));}return(_0x4f63bc===_0x22b6ae(0x161)?String:Number)(_0x105a7c);}function _0x353f85(_0x4a2f7d){const _0x296ec9=_0xaabc27;var _0x148f12=_0x463c35(_0x4a2f7d,_0x296ec9(0x161));return _0x5ab28e(_0x148f12)==_0x296ec9(0x169)?_0x148f12:_0x148f12+'';}function _0x4357ec(_0x40c193,_0x5a825e,_0x39fd7d){const _0x20a206=_0xaabc27;return(_0x5a825e=_0x353f85(_0x5a825e))in _0x40c193?Object[_0x20a206(0x18a)](_0x40c193,_0x5a825e,{'value':_0x39fd7d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x40c193[_0x5a825e]=_0x39fd7d,_0x40c193;}let _0x4f8a1f=class extends _0x321c9a['Plugin']{constructor(_0x3f428e=_0x349717,_0x57fdbf,_0x44da79){const _0x159fa9=_0xaabc27;super(),this[_0x159fa9(0x17d)]=_0x3f428e,this[_0x159fa9(0x153)]=_0x57fdbf,this[_0x159fa9(0x16f)]=_0x44da79;let {..._0x23e06b}=(0x0,_0x321c9a[_0x159fa9(0x180)])({},_0x349717,this[_0x159fa9(0x17d)]);this['_configService'][_0x159fa9(0x165)](_0x159fa9(0x15a),_0x23e06b);}['onStarting'](){const _0xd8eaa7=_0xaabc27;this[_0xd8eaa7(0x167)]();}[_0xaabc27(0x167)](){const _0x59c1f1=_0xaabc27;(0x0,_0x321c9a[_0x59c1f1(0x187)])(this[_0x59c1f1(0x16f)],[[_0x14a989[_0x59c1f1(0x183)],{'useClass':_0x452dea}]]);}};_0x4357ec(_0x4f8a1f,'pluginName','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),_0x4357ec(_0x4f8a1f,_0xaabc27(0x152),_0x40b601),_0x4357ec(_0x4f8a1f,_0xaabc27(0x17e),_0x5bfe21),_0x4f8a1f=_0x2f708b([(0x0,_0x321c9a[_0xaabc27(0x14b)])(_0x252b7a[_0xaabc27(0x177)],_0x14a989[_0xaabc27(0x144)],_0x476004[_0xaabc27(0x157)],_0x1cc665['UniverCollaborationClientPlugin']),_0x325b11(0x1,_0x321c9a[_0xaabc27(0x15d)]),_0x325b11(0x2,(0x0,_0x321c9a[_0xaabc27(0x188)])(_0x321c9a[_0xaabc27(0x170)]))],_0x4f8a1f);let _0x2c1f50=class extends _0x1cc665[_0xaabc27(0x189)]{constructor(_0x277d76,_0x422bc3,_0x27c5d7,_0x2ed71f,_0x1bf08e){const _0x4a121a=_0xaabc27;super(_0x277d76,_0x422bc3,_0x27c5d7,_0x2ed71f,_0x1bf08e);let _0x270c07=this[_0x4a121a(0x153)]['getConfig'](_0x1cc665[_0x4a121a(0x166)]);this['_httpService'][_0x4a121a(0x146)]({'interceptor':(_0x4322e4,_0x9a8448)=>{const _0x45d5b6=_0x4a121a;let _0x1ba830=_0x4322e4[_0x45d5b6(0x185)];if(_0x270c07!=null&&_0x270c07['customHeaders']){for(let _0x33a0b5 in _0x270c07[_0x45d5b6(0x14f)])_0x1ba830[_0x45d5b6(0x151)](_0x33a0b5,_0x270c07[_0x45d5b6(0x14f)][_0x33a0b5]);}return _0x9a8448(_0x4322e4);}});}async['createSocket'](_0x1d46c8){const _0x492db4=_0xaabc27;return this[_0x492db4(0x18d)](_0x1d46c8);}};_0x2c1f50=_0x2f708b([_0x325b11(0x0,(0x0,_0x321c9a[_0xaabc27(0x188)])(_0x321c9a[_0xaabc27(0x170)])),_0x325b11(0x1,(0x0,_0x321c9a['Inject'])(_0x14a989[_0xaabc27(0x163)])),_0x325b11(0x2,_0x321c9a[_0xaabc27(0x15d)]),_0x325b11(0x3,_0x321c9a[_0xaabc27(0x13f)]),_0x325b11(0x4,_0x476004[_0xaabc27(0x147)])],_0x2c1f50),Object[_0xaabc27(0x18a)](_0xb1a2cc,_0xaabc27(0x140),{'enumerable':!0x0,'get':function(){return _0x2c1f50;}}),Object[_0xaabc27(0x18a)](_0xb1a2cc,_0xaabc27(0x16a),{'enumerable':!0x0,'get':function(){return _0x4f8a1f;}});}));function _0x38fa(_0xc55ff0,_0x744c7){_0xc55ff0=_0xc55ff0-0x13d;const _0xc47335=_0xc473();let _0x38fa7f=_0xc47335[_0xc55ff0];return _0x38fa7f;}function _0xc473(){const _0x403db0=['Inject','CollaborationSocketService','defineProperty','close','156830ujbtJT','_doCreateSocket','default','7914564DCfnvm','next','1251580NQSrGf','length','ILogService','NodeCollaborationSocketService','UniverProCollaboration','getOwnPropertyDescriptor','toPrimitive','UniverNetworkPlugin','@univerjs-pro/collaboration-client','registerHTTPInterceptor','ISnapshotServerService','constructor','1080237TJNCiQ','2396958YSXUtw','DependentOn','addEventListener','prototype','WebSocket','customHeaders','amd','set','packageName','_configService','UniverProLicense','exports','send','UniverCollaborationPlugin','iterator','2Dusozh','collaboration-client-node.config','add','128904QtOcny','IConfigService','133CxwIty','decorate','call','string','toDisposable','HTTPService','object','setConfig','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_registerDependencies','message','symbol','UniverCollaborationClientNodePlugin','open','1386336RTfDNn','@univerjs-pro/collaboration','@univerjs/network','_injector','Injector','removeEventListener','getConfig','error','Observable','UniverProCollaborationClientNode','UniverNetwork','UniverLicensePlugin','function','pipe','rxjs','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UniverProCollaborationClient','_config','version','@univerjs/core','merge','1.4.0','createSocket','ISocketService','share','headers','Disposable','registerDependencies'];_0xc473=function(){return _0x403db0;};return _0xc473();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "private": false,
5
5
  "description": "Node.js collaboration client plugin for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -51,27 +51,27 @@
51
51
  "rxjs": ">=7.0.0"
52
52
  },
53
53
  "dependencies": {
54
- "@univerjs-pro/collaboration": "1.3.1",
55
- "@univerjs-pro/collaboration-client": "1.3.1",
56
- "@univerjs-pro/license": "1.3.1",
57
- "@univerjs/core": "1.3.1",
58
- "@univerjs/network": "1.3.1",
54
+ "@univerjs-pro/collaboration": "1.4.0",
55
+ "@univerjs-pro/collaboration-client": "1.4.0",
56
+ "@univerjs-pro/license": "1.4.0",
57
+ "@univerjs/core": "1.4.0",
58
+ "@univerjs/network": "1.4.0",
59
59
  "ws": "8.21.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/ws": "8.18.1",
63
- "@univerjs-infra/shared": "1.3.1",
63
+ "@univerjs-infra/shared": "1.4.0",
64
64
  "rxjs": "7.8.2",
65
- "typescript": "^6.0.3",
66
- "vitest": "^5.0.4"
65
+ "tsrs": "0.20.1-ts7.1.0-beta",
66
+ "vitest": "^5.0.5"
67
67
  },
68
68
  "scripts": {
69
69
  "test": "vitest run",
70
70
  "test:watch": "vitest",
71
71
  "coverage": "vitest run --coverage",
72
- "typecheck": "tsc --noEmit",
72
+ "typecheck": "tsrs --noEmit",
73
73
  "build:bundle": "univer-cli build --nodeFirst",
74
- "build:types": "tsc -p tsconfig.node.json",
74
+ "build:types": "tsrs -p tsconfig.node.json",
75
75
  "build": "pnpm run build:bundle && pnpm run build:types"
76
76
  },
77
77
  "module": "./lib/es/index.js"