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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1424c7=_0x400d;(function(_0x5d7679,_0x4bb4b9){const _0x4d2241=_0x400d,_0x304ceb=_0x5d7679();while(!![]){try{const _0x314a59=-parseInt(_0x4d2241(0x1b0))/0x1*(-parseInt(_0x4d2241(0x195))/0x2)+-parseInt(_0x4d2241(0x1d4))/0x3+-parseInt(_0x4d2241(0x1d0))/0x4+parseInt(_0x4d2241(0x1c5))/0x5*(-parseInt(_0x4d2241(0x1a3))/0x6)+-parseInt(_0x4d2241(0x1a2))/0x7+parseInt(_0x4d2241(0x1c7))/0x8*(parseInt(_0x4d2241(0x1cb))/0x9)+parseInt(_0x4d2241(0x1cf))/0xa;if(_0x314a59===_0x4bb4b9)break;else _0x304ceb['push'](_0x304ceb['shift']());}catch(_0x4ea97b){_0x304ceb['push'](_0x304ceb['shift']());}}}(_0x1de3,0xbd430),Object[_0x1424c7(0x194)](exports,Symbol['toStringTag'],{'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=_0x1424c7(0x19a),c=_0x1424c7(0x1aa);const l={};function _0x400d(_0x2d4384,_0x5ce964){_0x2d4384=_0x2d4384-0x194;const _0x1de3b6=_0x1de3();let _0x400d54=_0x1de3b6[_0x2d4384];return _0x400d54;}function u(_0x3e6a60,_0x150d28){return function(_0x18146b,_0x3f924a){_0x150d28(_0x18146b,_0x3f924a,_0x3e6a60);};}function d(_0x53c5ac,_0x39dea8,_0x130297,_0x4ff16b){const _0x4b6201=_0x1424c7;var _0x219ba5=arguments[_0x4b6201(0x1d5)],_0x5eed4e=_0x219ba5<0x3?_0x39dea8:_0x4ff16b===null?_0x4ff16b=Object[_0x4b6201(0x1a6)](_0x39dea8,_0x130297):_0x4ff16b,_0x1d4597;if(typeof Reflect=='object'&&typeof Reflect[_0x4b6201(0x1bd)]==_0x4b6201(0x1b7))_0x5eed4e=Reflect[_0x4b6201(0x1bd)](_0x53c5ac,_0x39dea8,_0x130297,_0x4ff16b);else{for(var _0x54fd8e=_0x53c5ac[_0x4b6201(0x1d5)]-0x1;_0x54fd8e>=0x0;_0x54fd8e--)(_0x1d4597=_0x53c5ac[_0x54fd8e])&&(_0x5eed4e=(_0x219ba5<0x3?_0x1d4597(_0x5eed4e):_0x219ba5>0x3?_0x1d4597(_0x39dea8,_0x130297,_0x5eed4e):_0x1d4597(_0x39dea8,_0x130297))||_0x5eed4e);}return _0x219ba5>0x3&&_0x5eed4e&&Object[_0x4b6201(0x194)](_0x39dea8,_0x130297,_0x5eed4e),_0x5eed4e;}let f=class extends r['Disposable']{constructor(_0x464c49){const _0x5ea9ec=_0x1424c7;super(),this[_0x5ea9ec(0x1af)]=_0x464c49;}[_0x1424c7(0x1c3)](_0x7f2e91){const _0x108292=_0x1424c7;var _0x19663c;let _0x46e669=((_0x19663c=this['_configService'][_0x108292(0x1ce)](t['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x19663c['customHeaders'])||{};try{let _0x4d67cc=new o[(_0x108292(0x1cd))](_0x7f2e91,{'headers':{..._0x46e669}}),_0x24a42c=new r[(_0x108292(0x1a0))]();return{'URL':_0x7f2e91,'close':(_0x5dfd06,_0x5e2812)=>{const _0x4d208c=_0x108292;_0x4d67cc[_0x4d208c(0x197)](_0x5dfd06,_0x5e2812),_0x24a42c[_0x4d208c(0x19d)]();},'send':_0x1e3046=>{_0x4d67cc['send'](_0x1e3046);},'open$':new a['Observable'](_0x8ee127=>{const _0x137919=_0x108292;let _0x38b5ef=_0x456447=>_0x8ee127[_0x137919(0x1b3)](_0x456447);_0x4d67cc[_0x137919(0x1ab)](_0x137919(0x1bc),_0x38b5ef),_0x24a42c[_0x137919(0x1da)]((0x0,r[_0x137919(0x19c)])(()=>_0x4d67cc[_0x137919(0x1d9)](_0x137919(0x1bc),_0x38b5ef)));})[_0x108292(0x1ae)]((0x0,a[_0x108292(0x1a4)])()),'close$':new a[(_0x108292(0x19b))](_0xa4128d=>{const _0x59038e=_0x108292;let _0x1029c6=_0x22b32b=>_0xa4128d['next'](_0x22b32b);_0x4d67cc[_0x59038e(0x1ab)](_0x59038e(0x197),_0x1029c6),_0x24a42c[_0x59038e(0x1da)]((0x0,r[_0x59038e(0x19c)])(()=>_0x4d67cc[_0x59038e(0x1d9)](_0x59038e(0x197),_0x1029c6)));})[_0x108292(0x1ae)]((0x0,a[_0x108292(0x1a4)])()),'error$':new a[(_0x108292(0x19b))](_0x1f6c0d=>{const _0x352625=_0x108292;let _0x1ee5e6=_0x70ff3e=>_0x1f6c0d[_0x352625(0x1b3)](_0x70ff3e);_0x4d67cc['addEventListener']('error',_0x1ee5e6),_0x24a42c[_0x352625(0x1da)]((0x0,r['toDisposable'])(()=>_0x4d67cc[_0x352625(0x1d9)](_0x352625(0x1a8),_0x1ee5e6)));})[_0x108292(0x1ae)]((0x0,a[_0x108292(0x1a4)])()),'message$':new a[(_0x108292(0x19b))](_0x382ba0=>{const _0x3dd65b=_0x108292;let _0x3343ec=_0x47c6e6=>_0x382ba0[_0x3dd65b(0x1b3)](_0x47c6e6);_0x4d67cc[_0x3dd65b(0x1ab)]('message',_0x3343ec),_0x24a42c['add']((0x0,r[_0x3dd65b(0x19c)])(()=>_0x4d67cc[_0x3dd65b(0x1d9)](_0x3dd65b(0x1c1),_0x3343ec)));})[_0x108292(0x1ae)]((0x0,a[_0x108292(0x1a4)])())};}catch(_0x33a820){return console[_0x108292(0x1a8)](_0x33a820),null;}}};f=d([u(0x0,r['IConfigService'])],f);function p(_0x555c12){'@babel/helpers - typeof';const _0x4bc0b6=_0x1424c7;return p=typeof Symbol==_0x4bc0b6(0x1b7)&&typeof Symbol['iterator']==_0x4bc0b6(0x1a5)?function(_0x3701e1){return typeof _0x3701e1;}:function(_0x10bce0){const _0x115b08=_0x4bc0b6;return _0x10bce0&&typeof Symbol==_0x115b08(0x1b7)&&_0x10bce0[_0x115b08(0x1c4)]===Symbol&&_0x10bce0!==Symbol['prototype']?_0x115b08(0x1a5):typeof _0x10bce0;},p(_0x555c12);}function m(_0x5491e0,_0x2a81d9){const _0x3a1d37=_0x1424c7;if(p(_0x5491e0)!=_0x3a1d37(0x1c6)||!_0x5491e0)return _0x5491e0;var _0x2dbf1f=_0x5491e0[Symbol[_0x3a1d37(0x19f)]];if(_0x2dbf1f!==void 0x0){var _0x566697=_0x2dbf1f[_0x3a1d37(0x1c8)](_0x5491e0,_0x2a81d9||_0x3a1d37(0x1b2));if(p(_0x566697)!='object')return _0x566697;throw TypeError(_0x3a1d37(0x1a9));}return(_0x2a81d9===_0x3a1d37(0x1d6)?String:Number)(_0x5491e0);}function h(_0x58ae4f){const _0x264100=_0x1424c7;var _0x1af0d7=m(_0x58ae4f,_0x264100(0x1d6));return p(_0x1af0d7)==_0x264100(0x1a5)?_0x1af0d7:_0x1af0d7+'';}function g(_0x549785,_0x47d17a,_0x56dffa){const _0x236c81=_0x1424c7;return(_0x47d17a=h(_0x47d17a))in _0x549785?Object[_0x236c81(0x194)](_0x549785,_0x47d17a,{'value':_0x56dffa,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x549785[_0x47d17a]=_0x56dffa,_0x549785;}let _=class extends r[_0x1424c7(0x198)]{constructor(_0x47f52d=l,_0x126165,_0x4762d6){const _0x37a2ec=_0x1424c7;super(),this['_config']=_0x47f52d,this['_configService']=_0x126165,this[_0x37a2ec(0x1a7)]=_0x4762d6;let {..._0x473c3f}=(0x0,r['merge'])({},l,this['_config']);this['_configService']['setConfig'](_0x37a2ec(0x1b8),_0x473c3f);}[_0x1424c7(0x196)](){const _0x3e8cbd=_0x1424c7;this[_0x3e8cbd(0x1c0)]();}['_registerDependencies'](){const _0x39251c=_0x1424c7;(0x0,r[_0x39251c(0x1b1)])(this[_0x39251c(0x1a7)],[[i[_0x39251c(0x1c9)],{'useClass':f}]]);}};g(_,_0x1424c7(0x1ba),_0x1424c7(0x1bb)),g(_,_0x1424c7(0x1d8),s),g(_,'version',c),_=d([(0x0,r[_0x1424c7(0x1b4)])(n['UniverLicensePlugin'],i['UniverNetworkPlugin'],e[_0x1424c7(0x1d7)],t[_0x1424c7(0x1d3)]),u(0x1,r[_0x1424c7(0x1ad)]),u(0x2,(0x0,r[_0x1424c7(0x1b6)])(r[_0x1424c7(0x1bf)]))],_);let v=class extends t[_0x1424c7(0x1d1)]{constructor(_0x49ec7b,_0x220def,_0x2a2d0d,_0x1b9b21,_0x269ede){const _0x1f0b45=_0x1424c7;super(_0x49ec7b,_0x220def,_0x2a2d0d,_0x1b9b21,_0x269ede);let _0x3d77a4=this['_configService'][_0x1f0b45(0x1ce)](t[_0x1f0b45(0x199)]);this[_0x1f0b45(0x1b9)][_0x1f0b45(0x1b5)]({'interceptor':(_0x5ab961,_0x14e981)=>{const _0x25ef4f=_0x1f0b45;let _0x38e431=_0x5ab961[_0x25ef4f(0x1cc)];if(_0x3d77a4!=null&&_0x3d77a4[_0x25ef4f(0x1d2)]){for(let _0x1253ea in _0x3d77a4[_0x25ef4f(0x1d2)])_0x38e431[_0x25ef4f(0x1a1)](_0x1253ea,_0x3d77a4['customHeaders'][_0x1253ea]);}return _0x14e981(_0x5ab961);}});}async[_0x1424c7(0x1c3)](_0x3f219f){const _0x10720a=_0x1424c7;return this[_0x10720a(0x19e)](_0x3f219f);}};function _0x1de3(){const _0x55cbf9=['decorate','ILogService','Injector','_registerDependencies','message','ISnapshotServerService','createSocket','constructor','4332025Xylcjy','object','904boimYL','call','ISocketService','HTTPService','11169ioICaB','headers','WebSocket','getConfig','31405470uNUQXZ','3966008QxjHrj','CollaborationSocketService','customHeaders','UniverCollaborationClientPlugin','3991701ardUVI','length','string','UniverCollaborationPlugin','packageName','removeEventListener','add','defineProperty','8538uHgTVB','onStarting','close','Plugin','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','@univerjs-pro/collaboration-client-node','Observable','toDisposable','dispose','_doCreateSocket','toPrimitive','DisposableCollection','set','5589031hCzjxr','6xwlOVZ','share','symbol','getOwnPropertyDescriptor','_injector','error','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','1.2.0','addEventListener','NodeCollaborationSocketService','IConfigService','pipe','_configService','347mVKHWt','registerDependencies','default','next','DependentOn','registerHTTPInterceptor','Inject','function','collaboration-client-node.config','_httpService','pluginName','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','open'];_0x1de3=function(){return _0x55cbf9;};return _0x1de3();}v=d([u(0x0,(0x0,r[_0x1424c7(0x1b6)])(r[_0x1424c7(0x1bf)])),u(0x1,(0x0,r[_0x1424c7(0x1b6)])(i[_0x1424c7(0x1ca)])),u(0x2,r[_0x1424c7(0x1ad)]),u(0x3,r[_0x1424c7(0x1be)]),u(0x4,e[_0x1424c7(0x1c2)])],v),Object[_0x1424c7(0x194)](exports,_0x1424c7(0x1ac),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x1424c7(0x194)](exports,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _;}});
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 _;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x47bc2a=_0x100f;(function(_0x85ba9,_0x3a56bc){const _0x5cdbef=_0x100f,_0x159ae9=_0x85ba9();while(!![]){try{const _0x544251=parseInt(_0x5cdbef(0x178))/0x1+parseInt(_0x5cdbef(0x15a))/0x2+parseInt(_0x5cdbef(0x159))/0x3*(parseInt(_0x5cdbef(0x169))/0x4)+parseInt(_0x5cdbef(0x17e))/0x5*(parseInt(_0x5cdbef(0x17f))/0x6)+parseInt(_0x5cdbef(0x17c))/0x7+parseInt(_0x5cdbef(0x165))/0x8+-parseInt(_0x5cdbef(0x15b))/0x9;if(_0x544251===_0x3a56bc)break;else _0x159ae9['push'](_0x159ae9['shift']());}catch(_0x2448f2){_0x159ae9['push'](_0x159ae9['shift']());}}}(_0x3158,0x9db67));import{ISnapshotServerService as _0x3da036,UniverCollaborationPlugin as _0x5abde8}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2fe3fc,CollaborationSocketService as _0x2e173e,UniverCollaborationClientPlugin as _0x3b637d}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x599a0d}from'@univerjs-pro/license';import{DependentOn as _0x57091f,Disposable as _0x47d90e,DisposableCollection as _0x2b456d,IConfigService as _0x4c03a8,ILogService as _0x209a81,Inject as _0x250861,Injector as _0x2d0a9a,Plugin as _0x154098,merge as _0x1f8196,registerDependencies as _0x1e6a9c,toDisposable as _0x280896}from'@univerjs/core';import{HTTPService as _0x1fb9b7,ISocketService as _0x33e5fd,UniverNetworkPlugin as _0x3ee3ce}from'@univerjs/network';import{Observable as _0x433ce7,share as _0x2ea3a3}from'rxjs';import{WebSocket as _0xfb2a47}from'ws';var C=_0x47bc2a(0x161),w=_0x47bc2a(0x15d);const T={};function E(_0x363fe4,_0x471e00){return function(_0x436767,_0x39443e){_0x471e00(_0x436767,_0x39443e,_0x363fe4);};}function D(_0x352d22,_0x4daf38,_0x16dfb8,_0xd49fa0){const _0x579d42=_0x47bc2a;var _0x2fa88e=arguments['length'],_0x4f8238=_0x2fa88e<0x3?_0x4daf38:_0xd49fa0===null?_0xd49fa0=Object[_0x579d42(0x179)](_0x4daf38,_0x16dfb8):_0xd49fa0,_0x367f5b;if(typeof Reflect==_0x579d42(0x166)&&typeof Reflect[_0x579d42(0x175)]=='function')_0x4f8238=Reflect[_0x579d42(0x175)](_0x352d22,_0x4daf38,_0x16dfb8,_0xd49fa0);else{for(var _0x30ff70=_0x352d22['length']-0x1;_0x30ff70>=0x0;_0x30ff70--)(_0x367f5b=_0x352d22[_0x30ff70])&&(_0x4f8238=(_0x2fa88e<0x3?_0x367f5b(_0x4f8238):_0x2fa88e>0x3?_0x367f5b(_0x4daf38,_0x16dfb8,_0x4f8238):_0x367f5b(_0x4daf38,_0x16dfb8))||_0x4f8238);}return _0x2fa88e>0x3&&_0x4f8238&&Object[_0x579d42(0x158)](_0x4daf38,_0x16dfb8,_0x4f8238),_0x4f8238;}let O=class extends _0x47d90e{constructor(_0x326dad){const _0x5b5c04=_0x47bc2a;super(),this[_0x5b5c04(0x183)]=_0x326dad;}[_0x47bc2a(0x180)](_0x291f15){const _0x24218=_0x47bc2a;var _0x497c9a;let _0x129af1=((_0x497c9a=this[_0x24218(0x183)]['getConfig'](_0x2fe3fc))==null?void 0x0:_0x497c9a[_0x24218(0x164)])||{};try{let _0x14dc8c=new _0xfb2a47(_0x291f15,{'headers':{..._0x129af1}}),_0x470d0b=new _0x2b456d();return{'URL':_0x291f15,'close':(_0x39fe68,_0x3d59d6)=>{const _0xa7cdbf=_0x24218;_0x14dc8c[_0xa7cdbf(0x172)](_0x39fe68,_0x3d59d6),_0x470d0b['dispose']();},'send':_0xa92791=>{const _0x5a4d43=_0x24218;_0x14dc8c[_0x5a4d43(0x173)](_0xa92791);},'open$':new _0x433ce7(_0x3452f1=>{const _0x211510=_0x24218;let _0x10a622=_0x58aa5a=>_0x3452f1[_0x211510(0x16c)](_0x58aa5a);_0x14dc8c[_0x211510(0x17b)](_0x211510(0x16b),_0x10a622),_0x470d0b['add'](_0x280896(()=>_0x14dc8c[_0x211510(0x174)](_0x211510(0x16b),_0x10a622)));})['pipe'](_0x2ea3a3()),'close$':new _0x433ce7(_0x326cf6=>{const _0x42a9ab=_0x24218;let _0x148dbc=_0x5913e5=>_0x326cf6[_0x42a9ab(0x16c)](_0x5913e5);_0x14dc8c[_0x42a9ab(0x17b)](_0x42a9ab(0x172),_0x148dbc),_0x470d0b[_0x42a9ab(0x177)](_0x280896(()=>_0x14dc8c[_0x42a9ab(0x174)](_0x42a9ab(0x172),_0x148dbc)));})[_0x24218(0x15c)](_0x2ea3a3()),'error$':new _0x433ce7(_0x251060=>{const _0x21d29b=_0x24218;let _0x2af2d7=_0x17ee5f=>_0x251060[_0x21d29b(0x16c)](_0x17ee5f);_0x14dc8c[_0x21d29b(0x17b)](_0x21d29b(0x15f),_0x2af2d7),_0x470d0b[_0x21d29b(0x177)](_0x280896(()=>_0x14dc8c[_0x21d29b(0x174)]('error',_0x2af2d7)));})['pipe'](_0x2ea3a3()),'message$':new _0x433ce7(_0x163e7e=>{const _0x5f23b3=_0x24218;let _0x32ee0b=_0x5ee749=>_0x163e7e['next'](_0x5ee749);_0x14dc8c[_0x5f23b3(0x17b)]('message',_0x32ee0b),_0x470d0b['add'](_0x280896(()=>_0x14dc8c[_0x5f23b3(0x174)](_0x5f23b3(0x17d),_0x32ee0b)));})[_0x24218(0x15c)](_0x2ea3a3())};}catch(_0x2f763a){return console[_0x24218(0x15f)](_0x2f763a),null;}}};O=D([E(0x0,_0x4c03a8)],O);function k(_0x2b9b0a){'@babel/helpers - typeof';const _0x2532c8=_0x47bc2a;return k=typeof Symbol==_0x2532c8(0x15e)&&typeof Symbol[_0x2532c8(0x160)]=='symbol'?function(_0x2ec1ff){return typeof _0x2ec1ff;}:function(_0x2af757){const _0x163154=_0x2532c8;return _0x2af757&&typeof Symbol==_0x163154(0x15e)&&_0x2af757[_0x163154(0x170)]===Symbol&&_0x2af757!==Symbol['prototype']?_0x163154(0x182):typeof _0x2af757;},k(_0x2b9b0a);}function A(_0x23af1a,_0x16d773){const _0x2f348c=_0x47bc2a;if(k(_0x23af1a)!=_0x2f348c(0x166)||!_0x23af1a)return _0x23af1a;var _0x5d5c7b=_0x23af1a[Symbol['toPrimitive']];if(_0x5d5c7b!==void 0x0){var _0x4a470f=_0x5d5c7b[_0x2f348c(0x171)](_0x23af1a,_0x16d773||_0x2f348c(0x16a));if(k(_0x4a470f)!=_0x2f348c(0x166))return _0x4a470f;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x16d773===_0x2f348c(0x187)?String:Number)(_0x23af1a);}function j(_0x1ed0dc){const _0x22530b=_0x47bc2a;var _0x18534a=A(_0x1ed0dc,_0x22530b(0x187));return k(_0x18534a)==_0x22530b(0x182)?_0x18534a:_0x18534a+'';}function M(_0x2aa112,_0x3359db,_0x3c82fd){const _0x24e1b3=_0x47bc2a;return(_0x3359db=j(_0x3359db))in _0x2aa112?Object[_0x24e1b3(0x158)](_0x2aa112,_0x3359db,{'value':_0x3c82fd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2aa112[_0x3359db]=_0x3c82fd,_0x2aa112;}let N=class extends _0x154098{constructor(_0xdb9c17=T,_0x4e282d,_0x5ee0bf){const _0x373c56=_0x47bc2a;super(),this[_0x373c56(0x162)]=_0xdb9c17,this['_configService']=_0x4e282d,this[_0x373c56(0x17a)]=_0x5ee0bf;let {..._0x338481}=_0x1f8196({},T,this[_0x373c56(0x162)]);this['_configService'][_0x373c56(0x186)](_0x373c56(0x181),_0x338481);}[_0x47bc2a(0x163)](){this['_registerDependencies']();}['_registerDependencies'](){const _0x32fe0f=_0x47bc2a;_0x1e6a9c(this[_0x32fe0f(0x17a)],[[_0x33e5fd,{'useClass':O}]]);}};M(N,'pluginName',_0x47bc2a(0x16f)),M(N,_0x47bc2a(0x168),C),M(N,_0x47bc2a(0x167),w),N=D([_0x57091f(_0x599a0d,_0x3ee3ce,_0x5abde8,_0x3b637d),E(0x1,_0x4c03a8),E(0x2,_0x250861(_0x2d0a9a))],N);let P=class extends _0x2e173e{constructor(_0x58f740,_0x599e88,_0x352d2f,_0x1c7ec3,_0x103701){const _0x51a58e=_0x47bc2a;super(_0x58f740,_0x599e88,_0x352d2f,_0x1c7ec3,_0x103701);let _0x2797b4=this['_configService'][_0x51a58e(0x16d)](_0x2fe3fc);this[_0x51a58e(0x16e)][_0x51a58e(0x185)]({'interceptor':(_0x2ad996,_0x5667c3)=>{const _0x3391f2=_0x51a58e;let _0x2d4d64=_0x2ad996[_0x3391f2(0x188)];if(_0x2797b4!=null&&_0x2797b4[_0x3391f2(0x164)]){for(let _0x5ac32d in _0x2797b4['customHeaders'])_0x2d4d64[_0x3391f2(0x184)](_0x5ac32d,_0x2797b4['customHeaders'][_0x5ac32d]);}return _0x5667c3(_0x2ad996);}});}async[_0x47bc2a(0x180)](_0x5b671c){const _0x46efae=_0x47bc2a;return this[_0x46efae(0x176)](_0x5b671c);}};P=D([E(0x0,_0x250861(_0x2d0a9a)),E(0x1,_0x250861(_0x1fb9b7)),E(0x2,_0x4c03a8),E(0x3,_0x209a81),E(0x4,_0x3da036)],P);function _0x100f(_0x1c6378,_0x5557fc){_0x1c6378=_0x1c6378-0x158;const _0x31589b=_0x3158();let _0x100f0f=_0x31589b[_0x1c6378];return _0x100f0f;}export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};function _0x3158(){const _0x434c27=['createSocket','collaboration-client-node.config','symbol','_configService','set','registerHTTPInterceptor','setConfig','string','headers','defineProperty','9pjkVYb','309792eigmeA','9989919OyCHbF','pipe','1.2.0','function','error','iterator','@univerjs-pro/collaboration-client-node','_config','onStarting','customHeaders','2694384psaQll','object','version','packageName','350684oyyOdA','default','open','next','getConfig','_httpService','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','constructor','call','close','send','removeEventListener','decorate','_doCreateSocket','add','11265FHxDTQ','getOwnPropertyDescriptor','_injector','addEventListener','5341574RbXNtA','message','141830sMXkgY','48yNXkuY'];_0x3158=function(){return _0x434c27;};return _0x3158();}
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};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x47bc2a=_0x100f;(function(_0x85ba9,_0x3a56bc){const _0x5cdbef=_0x100f,_0x159ae9=_0x85ba9();while(!![]){try{const _0x544251=parseInt(_0x5cdbef(0x178))/0x1+parseInt(_0x5cdbef(0x15a))/0x2+parseInt(_0x5cdbef(0x159))/0x3*(parseInt(_0x5cdbef(0x169))/0x4)+parseInt(_0x5cdbef(0x17e))/0x5*(parseInt(_0x5cdbef(0x17f))/0x6)+parseInt(_0x5cdbef(0x17c))/0x7+parseInt(_0x5cdbef(0x165))/0x8+-parseInt(_0x5cdbef(0x15b))/0x9;if(_0x544251===_0x3a56bc)break;else _0x159ae9['push'](_0x159ae9['shift']());}catch(_0x2448f2){_0x159ae9['push'](_0x159ae9['shift']());}}}(_0x3158,0x9db67));import{ISnapshotServerService as _0x3da036,UniverCollaborationPlugin as _0x5abde8}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x2fe3fc,CollaborationSocketService as _0x2e173e,UniverCollaborationClientPlugin as _0x3b637d}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x599a0d}from'@univerjs-pro/license';import{DependentOn as _0x57091f,Disposable as _0x47d90e,DisposableCollection as _0x2b456d,IConfigService as _0x4c03a8,ILogService as _0x209a81,Inject as _0x250861,Injector as _0x2d0a9a,Plugin as _0x154098,merge as _0x1f8196,registerDependencies as _0x1e6a9c,toDisposable as _0x280896}from'@univerjs/core';import{HTTPService as _0x1fb9b7,ISocketService as _0x33e5fd,UniverNetworkPlugin as _0x3ee3ce}from'@univerjs/network';import{Observable as _0x433ce7,share as _0x2ea3a3}from'rxjs';import{WebSocket as _0xfb2a47}from'ws';var C=_0x47bc2a(0x161),w=_0x47bc2a(0x15d);const T={};function E(_0x363fe4,_0x471e00){return function(_0x436767,_0x39443e){_0x471e00(_0x436767,_0x39443e,_0x363fe4);};}function D(_0x352d22,_0x4daf38,_0x16dfb8,_0xd49fa0){const _0x579d42=_0x47bc2a;var _0x2fa88e=arguments['length'],_0x4f8238=_0x2fa88e<0x3?_0x4daf38:_0xd49fa0===null?_0xd49fa0=Object[_0x579d42(0x179)](_0x4daf38,_0x16dfb8):_0xd49fa0,_0x367f5b;if(typeof Reflect==_0x579d42(0x166)&&typeof Reflect[_0x579d42(0x175)]=='function')_0x4f8238=Reflect[_0x579d42(0x175)](_0x352d22,_0x4daf38,_0x16dfb8,_0xd49fa0);else{for(var _0x30ff70=_0x352d22['length']-0x1;_0x30ff70>=0x0;_0x30ff70--)(_0x367f5b=_0x352d22[_0x30ff70])&&(_0x4f8238=(_0x2fa88e<0x3?_0x367f5b(_0x4f8238):_0x2fa88e>0x3?_0x367f5b(_0x4daf38,_0x16dfb8,_0x4f8238):_0x367f5b(_0x4daf38,_0x16dfb8))||_0x4f8238);}return _0x2fa88e>0x3&&_0x4f8238&&Object[_0x579d42(0x158)](_0x4daf38,_0x16dfb8,_0x4f8238),_0x4f8238;}let O=class extends _0x47d90e{constructor(_0x326dad){const _0x5b5c04=_0x47bc2a;super(),this[_0x5b5c04(0x183)]=_0x326dad;}[_0x47bc2a(0x180)](_0x291f15){const _0x24218=_0x47bc2a;var _0x497c9a;let _0x129af1=((_0x497c9a=this[_0x24218(0x183)]['getConfig'](_0x2fe3fc))==null?void 0x0:_0x497c9a[_0x24218(0x164)])||{};try{let _0x14dc8c=new _0xfb2a47(_0x291f15,{'headers':{..._0x129af1}}),_0x470d0b=new _0x2b456d();return{'URL':_0x291f15,'close':(_0x39fe68,_0x3d59d6)=>{const _0xa7cdbf=_0x24218;_0x14dc8c[_0xa7cdbf(0x172)](_0x39fe68,_0x3d59d6),_0x470d0b['dispose']();},'send':_0xa92791=>{const _0x5a4d43=_0x24218;_0x14dc8c[_0x5a4d43(0x173)](_0xa92791);},'open$':new _0x433ce7(_0x3452f1=>{const _0x211510=_0x24218;let _0x10a622=_0x58aa5a=>_0x3452f1[_0x211510(0x16c)](_0x58aa5a);_0x14dc8c[_0x211510(0x17b)](_0x211510(0x16b),_0x10a622),_0x470d0b['add'](_0x280896(()=>_0x14dc8c[_0x211510(0x174)](_0x211510(0x16b),_0x10a622)));})['pipe'](_0x2ea3a3()),'close$':new _0x433ce7(_0x326cf6=>{const _0x42a9ab=_0x24218;let _0x148dbc=_0x5913e5=>_0x326cf6[_0x42a9ab(0x16c)](_0x5913e5);_0x14dc8c[_0x42a9ab(0x17b)](_0x42a9ab(0x172),_0x148dbc),_0x470d0b[_0x42a9ab(0x177)](_0x280896(()=>_0x14dc8c[_0x42a9ab(0x174)](_0x42a9ab(0x172),_0x148dbc)));})[_0x24218(0x15c)](_0x2ea3a3()),'error$':new _0x433ce7(_0x251060=>{const _0x21d29b=_0x24218;let _0x2af2d7=_0x17ee5f=>_0x251060[_0x21d29b(0x16c)](_0x17ee5f);_0x14dc8c[_0x21d29b(0x17b)](_0x21d29b(0x15f),_0x2af2d7),_0x470d0b[_0x21d29b(0x177)](_0x280896(()=>_0x14dc8c[_0x21d29b(0x174)]('error',_0x2af2d7)));})['pipe'](_0x2ea3a3()),'message$':new _0x433ce7(_0x163e7e=>{const _0x5f23b3=_0x24218;let _0x32ee0b=_0x5ee749=>_0x163e7e['next'](_0x5ee749);_0x14dc8c[_0x5f23b3(0x17b)]('message',_0x32ee0b),_0x470d0b['add'](_0x280896(()=>_0x14dc8c[_0x5f23b3(0x174)](_0x5f23b3(0x17d),_0x32ee0b)));})[_0x24218(0x15c)](_0x2ea3a3())};}catch(_0x2f763a){return console[_0x24218(0x15f)](_0x2f763a),null;}}};O=D([E(0x0,_0x4c03a8)],O);function k(_0x2b9b0a){'@babel/helpers - typeof';const _0x2532c8=_0x47bc2a;return k=typeof Symbol==_0x2532c8(0x15e)&&typeof Symbol[_0x2532c8(0x160)]=='symbol'?function(_0x2ec1ff){return typeof _0x2ec1ff;}:function(_0x2af757){const _0x163154=_0x2532c8;return _0x2af757&&typeof Symbol==_0x163154(0x15e)&&_0x2af757[_0x163154(0x170)]===Symbol&&_0x2af757!==Symbol['prototype']?_0x163154(0x182):typeof _0x2af757;},k(_0x2b9b0a);}function A(_0x23af1a,_0x16d773){const _0x2f348c=_0x47bc2a;if(k(_0x23af1a)!=_0x2f348c(0x166)||!_0x23af1a)return _0x23af1a;var _0x5d5c7b=_0x23af1a[Symbol['toPrimitive']];if(_0x5d5c7b!==void 0x0){var _0x4a470f=_0x5d5c7b[_0x2f348c(0x171)](_0x23af1a,_0x16d773||_0x2f348c(0x16a));if(k(_0x4a470f)!=_0x2f348c(0x166))return _0x4a470f;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x16d773===_0x2f348c(0x187)?String:Number)(_0x23af1a);}function j(_0x1ed0dc){const _0x22530b=_0x47bc2a;var _0x18534a=A(_0x1ed0dc,_0x22530b(0x187));return k(_0x18534a)==_0x22530b(0x182)?_0x18534a:_0x18534a+'';}function M(_0x2aa112,_0x3359db,_0x3c82fd){const _0x24e1b3=_0x47bc2a;return(_0x3359db=j(_0x3359db))in _0x2aa112?Object[_0x24e1b3(0x158)](_0x2aa112,_0x3359db,{'value':_0x3c82fd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x2aa112[_0x3359db]=_0x3c82fd,_0x2aa112;}let N=class extends _0x154098{constructor(_0xdb9c17=T,_0x4e282d,_0x5ee0bf){const _0x373c56=_0x47bc2a;super(),this[_0x373c56(0x162)]=_0xdb9c17,this['_configService']=_0x4e282d,this[_0x373c56(0x17a)]=_0x5ee0bf;let {..._0x338481}=_0x1f8196({},T,this[_0x373c56(0x162)]);this['_configService'][_0x373c56(0x186)](_0x373c56(0x181),_0x338481);}[_0x47bc2a(0x163)](){this['_registerDependencies']();}['_registerDependencies'](){const _0x32fe0f=_0x47bc2a;_0x1e6a9c(this[_0x32fe0f(0x17a)],[[_0x33e5fd,{'useClass':O}]]);}};M(N,'pluginName',_0x47bc2a(0x16f)),M(N,_0x47bc2a(0x168),C),M(N,_0x47bc2a(0x167),w),N=D([_0x57091f(_0x599a0d,_0x3ee3ce,_0x5abde8,_0x3b637d),E(0x1,_0x4c03a8),E(0x2,_0x250861(_0x2d0a9a))],N);let P=class extends _0x2e173e{constructor(_0x58f740,_0x599e88,_0x352d2f,_0x1c7ec3,_0x103701){const _0x51a58e=_0x47bc2a;super(_0x58f740,_0x599e88,_0x352d2f,_0x1c7ec3,_0x103701);let _0x2797b4=this['_configService'][_0x51a58e(0x16d)](_0x2fe3fc);this[_0x51a58e(0x16e)][_0x51a58e(0x185)]({'interceptor':(_0x2ad996,_0x5667c3)=>{const _0x3391f2=_0x51a58e;let _0x2d4d64=_0x2ad996[_0x3391f2(0x188)];if(_0x2797b4!=null&&_0x2797b4[_0x3391f2(0x164)]){for(let _0x5ac32d in _0x2797b4['customHeaders'])_0x2d4d64[_0x3391f2(0x184)](_0x5ac32d,_0x2797b4['customHeaders'][_0x5ac32d]);}return _0x5667c3(_0x2ad996);}});}async[_0x47bc2a(0x180)](_0x5b671c){const _0x46efae=_0x47bc2a;return this[_0x46efae(0x176)](_0x5b671c);}};P=D([E(0x0,_0x250861(_0x2d0a9a)),E(0x1,_0x250861(_0x1fb9b7)),E(0x2,_0x4c03a8),E(0x3,_0x209a81),E(0x4,_0x3da036)],P);function _0x100f(_0x1c6378,_0x5557fc){_0x1c6378=_0x1c6378-0x158;const _0x31589b=_0x3158();let _0x100f0f=_0x31589b[_0x1c6378];return _0x100f0f;}export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};function _0x3158(){const _0x434c27=['createSocket','collaboration-client-node.config','symbol','_configService','set','registerHTTPInterceptor','setConfig','string','headers','defineProperty','9pjkVYb','309792eigmeA','9989919OyCHbF','pipe','1.2.0','function','error','iterator','@univerjs-pro/collaboration-client-node','_config','onStarting','customHeaders','2694384psaQll','object','version','packageName','350684oyyOdA','default','open','next','getConfig','_httpService','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','constructor','call','close','send','removeEventListener','decorate','_doCreateSocket','add','11265FHxDTQ','getOwnPropertyDescriptor','_injector','addEventListener','5341574RbXNtA','message','141830sMXkgY','48yNXkuY'];_0x3158=function(){return _0x434c27;};return _0x3158();}
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};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x5741(){const _0x551e4e=['20cBVrQk','591752wfxMxq','1072552RZpkQm','next','ISnapshotServerService','toStringTag','18udvfyt','string','UniverProCollaborationClientNode','CollaborationSocketService','symbol','1.2.0','createSocket','onStarting','share','set','function','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','22187KOPQqx','getOwnPropertyDescriptor','decorate','@univerjs-pro/collaboration-client','close','error','_configService','prototype','NodeCollaborationSocketService','getConfig','@univerjs/network','_doCreateSocket','pipe','UniverCollaborationPlugin','send','Module','868115HfZHKD','DisposableCollection','730379gpRopX','33562vZAfrM','UniverCollaborationClientPlugin','6852gGmRtq','version','length','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','constructor','UniverNetwork','removeEventListener','object','_config','registerDependencies','DependentOn','UniverCollaborationClientNodePlugin','collaboration-client-node.config','HTTPService','ISocketService','toPrimitive','rxjs','add','registerHTTPInterceptor','ILogService','120uXjqcD','exports','Injector','UniverNetworkPlugin','toDisposable','IConfigService','Inject','customHeaders','amd','1662810Flstsx','24bJLuzC','message','headers','@univerjs-pro/license','_registerDependencies','addEventListener','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','@univerjs-pro/collaboration-client-node','@univerjs-pro/collaboration','call','WebSocket','Observable','defineProperty','dispose'];_0x5741=function(){return _0x551e4e;};return _0x5741();}function _0x4f0e(_0x5204e7,_0xbd9a2){_0x5204e7=_0x5204e7-0x8c;const _0x574174=_0x5741();let _0x4f0efa=_0x574174[_0x5204e7];return _0x4f0efa;}(function(_0x468e90,_0x43f841){const _0x5a462=_0x4f0e,_0x277543=_0x468e90();while(!![]){try{const _0x3cb9e2=parseInt(_0x5a462(0x94))/0x1+parseInt(_0x5a462(0x95))/0x2*(-parseInt(_0x5a462(0xab))/0x3)+parseInt(_0x5a462(0xc3))/0x4*(-parseInt(_0x5a462(0x92))/0x5)+-parseInt(_0x5a462(0xb5))/0x6*(parseInt(_0x5a462(0xc4))/0x7)+-parseInt(_0x5a462(0xc5))/0x8*(-parseInt(_0x5a462(0xc9))/0x9)+parseInt(_0x5a462(0xb4))/0xa+-parseInt(_0x5a462(0xd5))/0xb*(-parseInt(_0x5a462(0x97))/0xc);if(_0x3cb9e2===_0x43f841)break;else _0x277543['push'](_0x277543['shift']());}catch(_0x5c874e){_0x277543['push'](_0x277543['shift']());}}}(_0x5741,0x6b2de),function(_0x512914,_0x3bf952){const _0x206d97=_0x4f0e;typeof exports=='object'&&typeof module<'u'?_0x3bf952(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs')):typeof define==_0x206d97(0xd3)&&define[_0x206d97(0xb3)]?define([_0x206d97(0xac),_0x206d97(0xbd),_0x206d97(0xd8),_0x206d97(0xb8),'@univerjs/core',_0x206d97(0x8c),_0x206d97(0xa7)],_0x3bf952):(_0x512914=typeof globalThis<'u'?globalThis:_0x512914||self,_0x3bf952(_0x512914[_0x206d97(0xcb)]={},_0x512914['UniverProCollaboration'],_0x512914['UniverProCollaborationClient'],_0x512914['UniverProLicense'],_0x512914['UniverCore'],_0x512914[_0x206d97(0x9c)],_0x512914[_0x206d97(0xa7)]));}(this,function(_0x456191,_0x5b2c43,_0x3d1626,_0x5d909e,_0x2e284b,_0x224836,_0x3f5451){const _0x4b34e2=_0x4f0e;Object['defineProperty'](_0x456191,Symbol[_0x4b34e2(0xc8)],{'value':_0x4b34e2(0x91)});var _0x144a6a=(_0xeb9cb0,_0x3e234a)=>()=>(_0x3e234a||(_0xeb9cb0((_0x3e234a={'exports':{}})[_0x4b34e2(0xac)],_0x3e234a),_0xeb9cb0=null),_0x3e234a[_0x4b34e2(0xac)]),_0x1baf45=_0x4b34e2(0xbc),_0x423b82=_0x4b34e2(0xce);let _0x508ea2={};var _0x5dd875=_0x144a6a((_0xca181,_0x171d3a)=>{const _0x52b3d9=_0x4b34e2;_0x171d3a[_0x52b3d9(0xac)]=function(){const _0x5556ef=_0x52b3d9;throw Error(_0x5556ef(0xd4));};})();function _0x571732(_0x1da928,_0x41328e){return function(_0x7db2b1,_0x33534b){_0x41328e(_0x7db2b1,_0x33534b,_0x1da928);};}function _0x507320(_0xbd7aed,_0xbce5bb,_0x4b49a6,_0x5dd44a){const _0x24d8da=_0x4b34e2;var _0x10d025=arguments[_0x24d8da(0x99)],_0x35f10a=_0x10d025<0x3?_0xbce5bb:_0x5dd44a===null?_0x5dd44a=Object[_0x24d8da(0xd6)](_0xbce5bb,_0x4b49a6):_0x5dd44a,_0x46a463;if(typeof Reflect==_0x24d8da(0x9e)&&typeof Reflect[_0x24d8da(0xd7)]==_0x24d8da(0xd3))_0x35f10a=Reflect['decorate'](_0xbd7aed,_0xbce5bb,_0x4b49a6,_0x5dd44a);else{for(var _0x6b3562=_0xbd7aed[_0x24d8da(0x99)]-0x1;_0x6b3562>=0x0;_0x6b3562--)(_0x46a463=_0xbd7aed[_0x6b3562])&&(_0x35f10a=(_0x10d025<0x3?_0x46a463(_0x35f10a):_0x10d025>0x3?_0x46a463(_0xbce5bb,_0x4b49a6,_0x35f10a):_0x46a463(_0xbce5bb,_0x4b49a6))||_0x35f10a);}return _0x10d025>0x3&&_0x35f10a&&Object['defineProperty'](_0xbce5bb,_0x4b49a6,_0x35f10a),_0x35f10a;}let _0x4b6bf8=class extends _0x2e284b['Disposable']{constructor(_0x5b3129){const _0x56a4c6=_0x4b34e2;super(),this[_0x56a4c6(0xdb)]=_0x5b3129;}[_0x4b34e2(0xcf)](_0x4e9462){const _0x51088e=_0x4b34e2;var _0x2bd1a7;let _0x3ad65c=((_0x2bd1a7=this['_configService'][_0x51088e(0xde)](_0x3d1626['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x2bd1a7[_0x51088e(0xb2)])||{};try{let _0x2ce4d8=new _0x5dd875[(_0x51088e(0xbf))](_0x4e9462,{'headers':{..._0x3ad65c}}),_0x143b78=new _0x2e284b[(_0x51088e(0x93))]();return{'URL':_0x4e9462,'close':(_0xe801cc,_0x16b233)=>{const _0x4c4b0c=_0x51088e;_0x2ce4d8[_0x4c4b0c(0xd9)](_0xe801cc,_0x16b233),_0x143b78[_0x4c4b0c(0xc2)]();},'send':_0x19ce98=>{const _0x20a430=_0x51088e;_0x2ce4d8[_0x20a430(0x90)](_0x19ce98);},'open$':new _0x3f5451['Observable'](_0x1259e8=>{const _0x345f34=_0x51088e;let _0x2db9d3=_0x9acb73=>_0x1259e8[_0x345f34(0xc6)](_0x9acb73);_0x2ce4d8[_0x345f34(0xba)]('open',_0x2db9d3),_0x143b78[_0x345f34(0xa8)]((0x0,_0x2e284b['toDisposable'])(()=>_0x2ce4d8[_0x345f34(0x9d)]('open',_0x2db9d3)));})[_0x51088e(0x8e)]((0x0,_0x3f5451[_0x51088e(0xd1)])()),'close$':new _0x3f5451[(_0x51088e(0xc0))](_0x4956cf=>{const _0x5b09a6=_0x51088e;let _0x2c2526=_0x4c9020=>_0x4956cf['next'](_0x4c9020);_0x2ce4d8['addEventListener'](_0x5b09a6(0xd9),_0x2c2526),_0x143b78['add']((0x0,_0x2e284b[_0x5b09a6(0xaf)])(()=>_0x2ce4d8['removeEventListener'](_0x5b09a6(0xd9),_0x2c2526)));})[_0x51088e(0x8e)]((0x0,_0x3f5451[_0x51088e(0xd1)])()),'error$':new _0x3f5451[(_0x51088e(0xc0))](_0x4d5ad8=>{const _0x5d69df=_0x51088e;let _0x313f1d=_0x48c681=>_0x4d5ad8[_0x5d69df(0xc6)](_0x48c681);_0x2ce4d8[_0x5d69df(0xba)](_0x5d69df(0xda),_0x313f1d),_0x143b78['add']((0x0,_0x2e284b['toDisposable'])(()=>_0x2ce4d8[_0x5d69df(0x9d)](_0x5d69df(0xda),_0x313f1d)));})[_0x51088e(0x8e)]((0x0,_0x3f5451[_0x51088e(0xd1)])()),'message$':new _0x3f5451['Observable'](_0x46f161=>{const _0x4438bf=_0x51088e;let _0x484f4c=_0x34a9d1=>_0x46f161[_0x4438bf(0xc6)](_0x34a9d1);_0x2ce4d8[_0x4438bf(0xba)](_0x4438bf(0xb6),_0x484f4c),_0x143b78[_0x4438bf(0xa8)]((0x0,_0x2e284b['toDisposable'])(()=>_0x2ce4d8[_0x4438bf(0x9d)]('message',_0x484f4c)));})['pipe']((0x0,_0x3f5451[_0x51088e(0xd1)])())};}catch(_0x2af5d5){return console['error'](_0x2af5d5),null;}}};_0x4b6bf8=_0x507320([_0x571732(0x0,_0x2e284b[_0x4b34e2(0xb0)])],_0x4b6bf8);function _0xe7241f(_0x43656b){'@babel/helpers - typeof';const _0x3a7e79=_0x4b34e2;return _0xe7241f=typeof Symbol==_0x3a7e79(0xd3)&&typeof Symbol['iterator']==_0x3a7e79(0xcd)?function(_0x20b187){return typeof _0x20b187;}:function(_0x4d2be5){const _0x2df101=_0x3a7e79;return _0x4d2be5&&typeof Symbol==_0x2df101(0xd3)&&_0x4d2be5[_0x2df101(0x9b)]===Symbol&&_0x4d2be5!==Symbol[_0x2df101(0xdc)]?_0x2df101(0xcd):typeof _0x4d2be5;},_0xe7241f(_0x43656b);}function _0x401a85(_0x4da4ae,_0xb216e){const _0x33cfb8=_0x4b34e2;if(_0xe7241f(_0x4da4ae)!=_0x33cfb8(0x9e)||!_0x4da4ae)return _0x4da4ae;var _0x5ed4d0=_0x4da4ae[Symbol[_0x33cfb8(0xa6)]];if(_0x5ed4d0!==void 0x0){var _0x246f76=_0x5ed4d0[_0x33cfb8(0xbe)](_0x4da4ae,_0xb216e||'default');if(_0xe7241f(_0x246f76)!=_0x33cfb8(0x9e))return _0x246f76;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0xb216e===_0x33cfb8(0xca)?String:Number)(_0x4da4ae);}function _0x392a32(_0x1deafe){const _0x3ff6b8=_0x4b34e2;var _0x49c4d0=_0x401a85(_0x1deafe,_0x3ff6b8(0xca));return _0xe7241f(_0x49c4d0)==_0x3ff6b8(0xcd)?_0x49c4d0:_0x49c4d0+'';}function _0x324a7d(_0x556c9c,_0x501067,_0x1afc30){return(_0x501067=_0x392a32(_0x501067))in _0x556c9c?Object['defineProperty'](_0x556c9c,_0x501067,{'value':_0x1afc30,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x556c9c[_0x501067]=_0x1afc30,_0x556c9c;}let _0x2435f5=class extends _0x2e284b['Plugin']{constructor(_0x56ca97=_0x508ea2,_0xef7119,_0x53d46c){const _0x3c3d7f=_0x4b34e2;super(),this[_0x3c3d7f(0x9f)]=_0x56ca97,this['_configService']=_0xef7119,this['_injector']=_0x53d46c;let {..._0x2929a2}=(0x0,_0x2e284b['merge'])({},_0x508ea2,this[_0x3c3d7f(0x9f)]);this[_0x3c3d7f(0xdb)]['setConfig'](_0x3c3d7f(0xa3),_0x2929a2);}[_0x4b34e2(0xd0)](){const _0x42cd00=_0x4b34e2;this[_0x42cd00(0xb9)]();}[_0x4b34e2(0xb9)](){const _0x37e985=_0x4b34e2;(0x0,_0x2e284b[_0x37e985(0xa0)])(this['_injector'],[[_0x224836[_0x37e985(0xa5)],{'useClass':_0x4b6bf8}]]);}};_0x324a7d(_0x2435f5,'pluginName',_0x4b34e2(0x9a)),_0x324a7d(_0x2435f5,'packageName',_0x1baf45),_0x324a7d(_0x2435f5,_0x4b34e2(0x98),_0x423b82),_0x2435f5=_0x507320([(0x0,_0x2e284b[_0x4b34e2(0xa1)])(_0x5d909e['UniverLicensePlugin'],_0x224836[_0x4b34e2(0xae)],_0x5b2c43[_0x4b34e2(0x8f)],_0x3d1626[_0x4b34e2(0x96)]),_0x571732(0x1,_0x2e284b[_0x4b34e2(0xb0)]),_0x571732(0x2,(0x0,_0x2e284b['Inject'])(_0x2e284b[_0x4b34e2(0xad)]))],_0x2435f5);let _0x31e157=class extends _0x3d1626[_0x4b34e2(0xcc)]{constructor(_0x27c8fc,_0x372b6b,_0xab4956,_0x58faa8,_0x43364d){const _0x509ed8=_0x4b34e2;super(_0x27c8fc,_0x372b6b,_0xab4956,_0x58faa8,_0x43364d);let _0x1a5d07=this[_0x509ed8(0xdb)][_0x509ed8(0xde)](_0x3d1626[_0x509ed8(0xbb)]);this['_httpService'][_0x509ed8(0xa9)]({'interceptor':(_0x16e775,_0x1aa0e9)=>{const _0x1efec0=_0x509ed8;let _0x2784b6=_0x16e775[_0x1efec0(0xb7)];if(_0x1a5d07!=null&&_0x1a5d07[_0x1efec0(0xb2)]){for(let _0x525a1e in _0x1a5d07[_0x1efec0(0xb2)])_0x2784b6[_0x1efec0(0xd2)](_0x525a1e,_0x1a5d07[_0x1efec0(0xb2)][_0x525a1e]);}return _0x1aa0e9(_0x16e775);}});}async[_0x4b34e2(0xcf)](_0x1631ea){const _0x161572=_0x4b34e2;return this[_0x161572(0x8d)](_0x1631ea);}};_0x31e157=_0x507320([_0x571732(0x0,(0x0,_0x2e284b[_0x4b34e2(0xb1)])(_0x2e284b[_0x4b34e2(0xad)])),_0x571732(0x1,(0x0,_0x2e284b['Inject'])(_0x224836[_0x4b34e2(0xa4)])),_0x571732(0x2,_0x2e284b[_0x4b34e2(0xb0)]),_0x571732(0x3,_0x2e284b[_0x4b34e2(0xaa)]),_0x571732(0x4,_0x5b2c43[_0x4b34e2(0xc7)])],_0x31e157),Object['defineProperty'](_0x456191,_0x4b34e2(0xdd),{'enumerable':!0x0,'get':function(){return _0x31e157;}}),Object[_0x4b34e2(0xc1)](_0x456191,_0x4b34e2(0xa2),{'enumerable':!0x0,'get':function(){return _0x2435f5;}});}));
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();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "1.2.0",
3
+ "version": "1.3.1",
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,16 +51,16 @@
51
51
  "rxjs": ">=7.0.0"
52
52
  },
53
53
  "dependencies": {
54
- "@univerjs-pro/collaboration": "1.2.0",
55
- "@univerjs-pro/collaboration-client": "1.2.0",
56
- "@univerjs-pro/license": "1.2.0",
57
- "@univerjs/core": "1.2.0",
58
- "@univerjs/network": "1.2.0",
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",
59
59
  "ws": "8.21.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/ws": "8.18.1",
63
- "@univerjs-infra/shared": "1.2.0",
63
+ "@univerjs-infra/shared": "1.3.1",
64
64
  "rxjs": "7.8.2",
65
65
  "typescript": "^6.0.3",
66
66
  "vitest": "^5.0.4"