@univerjs-pro/collaboration-client-node 1.0.4 → 1.1.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 _0xc91cd3=_0x33da;(function(_0x8b02d2,_0x260359){const _0x1be318=_0x33da,_0x3ebe1c=_0x8b02d2();while(!![]){try{const _0x4c8458=-parseInt(_0x1be318(0xb1))/0x1*(parseInt(_0x1be318(0xe3))/0x2)+-parseInt(_0x1be318(0xb9))/0x3+-parseInt(_0x1be318(0xbc))/0x4*(-parseInt(_0x1be318(0xc6))/0x5)+-parseInt(_0x1be318(0xe8))/0x6*(-parseInt(_0x1be318(0xcc))/0x7)+-parseInt(_0x1be318(0xd3))/0x8+parseInt(_0x1be318(0xee))/0x9+parseInt(_0x1be318(0xcd))/0xa;if(_0x4c8458===_0x260359)break;else _0x3ebe1c['push'](_0x3ebe1c['shift']());}catch(_0x982f05){_0x3ebe1c['push'](_0x3ebe1c['shift']());}}}(_0x552c,0xba8f4),Object[_0xc91cd3(0xdc)](exports,Symbol[_0xc91cd3(0xa9)],{'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=_0xc91cd3(0xde),c=_0xc91cd3(0xb4);const l={};function u(_0x4ed6ba,_0x48d57d){return function(_0xa5155a,_0x32031f){_0x48d57d(_0xa5155a,_0x32031f,_0x4ed6ba);};}function d(_0x3b3b95,_0x53fd5a,_0x38f3b4,_0x3c4c9e){const _0x50024c=_0xc91cd3;var _0x1fceab=arguments['length'],_0x251644=_0x1fceab<0x3?_0x53fd5a:_0x3c4c9e===null?_0x3c4c9e=Object['getOwnPropertyDescriptor'](_0x53fd5a,_0x38f3b4):_0x3c4c9e,_0x50ecde;if(typeof Reflect=='object'&&typeof Reflect[_0x50024c(0xab)]==_0x50024c(0xd9))_0x251644=Reflect['decorate'](_0x3b3b95,_0x53fd5a,_0x38f3b4,_0x3c4c9e);else{for(var _0x1cfc69=_0x3b3b95[_0x50024c(0xb6)]-0x1;_0x1cfc69>=0x0;_0x1cfc69--)(_0x50ecde=_0x3b3b95[_0x1cfc69])&&(_0x251644=(_0x1fceab<0x3?_0x50ecde(_0x251644):_0x1fceab>0x3?_0x50ecde(_0x53fd5a,_0x38f3b4,_0x251644):_0x50ecde(_0x53fd5a,_0x38f3b4))||_0x251644);}return _0x1fceab>0x3&&_0x251644&&Object[_0x50024c(0xdc)](_0x53fd5a,_0x38f3b4,_0x251644),_0x251644;}let f=class extends r[_0xc91cd3(0xce)]{constructor(_0x566551){super(),this['_configService']=_0x566551;}[_0xc91cd3(0xed)](_0x52e013){const _0x202672=_0xc91cd3;var _0xcc6f6e;let _0x41a42a=((_0xcc6f6e=this[_0x202672(0xe9)]['getConfig'](t[_0x202672(0xe6)]))==null?void 0x0:_0xcc6f6e[_0x202672(0xca)])||{};try{let _0x5b33cc=new o[(_0x202672(0xba))](_0x52e013,{'headers':{..._0x41a42a}}),_0x23a477=new r['DisposableCollection']();return{'URL':_0x52e013,'close':(_0x2c1e0c,_0x485aa0)=>{const _0xeedb78=_0x202672;_0x5b33cc[_0xeedb78(0xae)](_0x2c1e0c,_0x485aa0),_0x23a477[_0xeedb78(0xcb)]();},'send':_0x94a05d=>{const _0x1501de=_0x202672;_0x5b33cc[_0x1501de(0xdd)](_0x94a05d);},'open$':new a[(_0x202672(0xe5))](_0x2e5121=>{const _0x8d9c5a=_0x202672;let _0x23acbd=_0x16537c=>_0x2e5121[_0x8d9c5a(0xc5)](_0x16537c);_0x5b33cc['addEventListener']('open',_0x23acbd),_0x23a477[_0x8d9c5a(0xc2)]((0x0,r[_0x8d9c5a(0xd4)])(()=>_0x5b33cc[_0x8d9c5a(0xc3)](_0x8d9c5a(0xc1),_0x23acbd)));})[_0x202672(0xbe)]((0x0,a[_0x202672(0xb7)])()),'close$':new a[(_0x202672(0xe5))](_0x28f435=>{const _0xc79c6b=_0x202672;let _0x5ab2bb=_0x3d801a=>_0x28f435['next'](_0x3d801a);_0x5b33cc[_0xc79c6b(0xd1)]('close',_0x5ab2bb),_0x23a477[_0xc79c6b(0xc2)]((0x0,r['toDisposable'])(()=>_0x5b33cc[_0xc79c6b(0xc3)](_0xc79c6b(0xae),_0x5ab2bb)));})['pipe']((0x0,a[_0x202672(0xb7)])()),'error$':new a[(_0x202672(0xe5))](_0x2e918b=>{const _0x57d2e7=_0x202672;let _0x14d45c=_0x3c5fbe=>_0x2e918b[_0x57d2e7(0xc5)](_0x3c5fbe);_0x5b33cc[_0x57d2e7(0xd1)]('error',_0x14d45c),_0x23a477[_0x57d2e7(0xc2)]((0x0,r['toDisposable'])(()=>_0x5b33cc[_0x57d2e7(0xc3)](_0x57d2e7(0xe7),_0x14d45c)));})['pipe']((0x0,a[_0x202672(0xb7)])()),'message$':new a[(_0x202672(0xe5))](_0x5a3bce=>{const _0xab059a=_0x202672;let _0x5e76e6=_0x38d85b=>_0x5a3bce[_0xab059a(0xc5)](_0x38d85b);_0x5b33cc[_0xab059a(0xd1)](_0xab059a(0xaa),_0x5e76e6),_0x23a477[_0xab059a(0xc2)]((0x0,r['toDisposable'])(()=>_0x5b33cc['removeEventListener'](_0xab059a(0xaa),_0x5e76e6)));})[_0x202672(0xbe)]((0x0,a[_0x202672(0xb7)])())};}catch(_0xc96593){return console[_0x202672(0xe7)](_0xc96593),null;}}};f=d([u(0x0,r['IConfigService'])],f);function p(_0x4a03dc){'@babel/helpers - typeof';const _0x10c663=_0xc91cd3;return p=typeof Symbol==_0x10c663(0xd9)&&typeof Symbol['iterator']=='symbol'?function(_0x396b08){return typeof _0x396b08;}:function(_0x14cb0f){const _0xe6eff0=_0x10c663;return _0x14cb0f&&typeof Symbol==_0xe6eff0(0xd9)&&_0x14cb0f[_0xe6eff0(0xc0)]===Symbol&&_0x14cb0f!==Symbol[_0xe6eff0(0xe2)]?_0xe6eff0(0xbb):typeof _0x14cb0f;},p(_0x4a03dc);}function _0x552c(){const _0x241054=['constructor','open','add','removeEventListener','UniverCollaborationClientPlugin','next','606395oJMUrB','_doCreateSocket','merge','onStarting','customHeaders','dispose','1361206LIteDl','12540080HoUWlj','Disposable','Plugin','headers','addEventListener','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','8006384LhNOzb','toDisposable','UniverCollaborationPlugin','_injector','collaboration-client-node.config','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','function','DependentOn','UniverCollaborationClientNodePlugin','defineProperty','send','@univerjs-pro/collaboration-client-node','HTTPService','Inject','packageName','prototype','12rNzvwP','_registerDependencies','Observable','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','error','12OWFGbn','_configService','ISnapshotServerService','UniverLicensePlugin','CollaborationSocketService','createSocket','8089272nYEXLE','registerHTTPInterceptor','getConfig','NodeCollaborationSocketService','toPrimitive','toStringTag','message','decorate','pluginName','call','close','_config','object','154241ppXRri','IConfigService','_httpService','1.0.4','ISocketService','length','share','string','3556227XvsfKx','WebSocket','symbol','44vtjwHL','ILogService','pipe','set'];_0x552c=function(){return _0x241054;};return _0x552c();}function m(_0x1ee5f5,_0x1d150c){const _0x244eb9=_0xc91cd3;if(p(_0x1ee5f5)!=_0x244eb9(0xb0)||!_0x1ee5f5)return _0x1ee5f5;var _0x5916e6=_0x1ee5f5[Symbol[_0x244eb9(0xa8)]];if(_0x5916e6!==void 0x0){var _0x5ba1df=_0x5916e6[_0x244eb9(0xad)](_0x1ee5f5,_0x1d150c||'default');if(p(_0x5ba1df)!='object')return _0x5ba1df;throw TypeError(_0x244eb9(0xd2));}return(_0x1d150c===_0x244eb9(0xb8)?String:Number)(_0x1ee5f5);}function h(_0x3b9c64){const _0x3e588b=_0xc91cd3;var _0x2b5350=m(_0x3b9c64,_0x3e588b(0xb8));return p(_0x2b5350)==_0x3e588b(0xbb)?_0x2b5350:_0x2b5350+'';}function _0x33da(_0x22c569,_0x126576){_0x22c569=_0x22c569-0xa7;const _0x552c5f=_0x552c();let _0x33da3a=_0x552c5f[_0x22c569];return _0x33da3a;}function g(_0x46db90,_0x1b9ff4,_0x4cd828){const _0x519f19=_0xc91cd3;return(_0x1b9ff4=h(_0x1b9ff4))in _0x46db90?Object[_0x519f19(0xdc)](_0x46db90,_0x1b9ff4,{'value':_0x4cd828,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x46db90[_0x1b9ff4]=_0x4cd828,_0x46db90;}let _=class extends r[_0xc91cd3(0xcf)]{constructor(_0x30091c=l,_0x5a2683,_0x3a350a){const _0x40f035=_0xc91cd3;super(),this['_config']=_0x30091c,this[_0x40f035(0xe9)]=_0x5a2683,this[_0x40f035(0xd6)]=_0x3a350a;let {..._0x5f171c}=(0x0,r[_0x40f035(0xc8)])({},l,this[_0x40f035(0xaf)]);this['_configService']['setConfig'](_0x40f035(0xd7),_0x5f171c);}[_0xc91cd3(0xc9)](){const _0x3d0d8d=_0xc91cd3;this[_0x3d0d8d(0xe4)]();}[_0xc91cd3(0xe4)](){const _0xd9369b=_0xc91cd3;(0x0,r['registerDependencies'])(this[_0xd9369b(0xd6)],[[i[_0xd9369b(0xb5)],{'useClass':f}]]);}};g(_,_0xc91cd3(0xac),_0xc91cd3(0xd8)),g(_,_0xc91cd3(0xe1),s),g(_,'version',c),_=d([(0x0,r[_0xc91cd3(0xda)])(n[_0xc91cd3(0xeb)],i['UniverNetworkPlugin'],e[_0xc91cd3(0xd5)],t[_0xc91cd3(0xc4)]),u(0x1,r[_0xc91cd3(0xb2)]),u(0x2,(0x0,r[_0xc91cd3(0xe0)])(r['Injector']))],_);let v=class extends t[_0xc91cd3(0xec)]{constructor(_0x19c341,_0x4c6cc0,_0x54d846,_0x2c29ec,_0x1fb73b){const _0x5f094c=_0xc91cd3;super(_0x19c341,_0x4c6cc0,_0x54d846,_0x2c29ec,_0x1fb73b);let _0x1bbea0=this[_0x5f094c(0xe9)][_0x5f094c(0xf0)](t['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this[_0x5f094c(0xb3)][_0x5f094c(0xef)]({'interceptor':(_0x4d3064,_0x6ff0ba)=>{const _0x259a26=_0x5f094c;let _0x38f9aa=_0x4d3064[_0x259a26(0xd0)];if(_0x1bbea0!=null&&_0x1bbea0[_0x259a26(0xca)]){for(let _0x3bd4f5 in _0x1bbea0[_0x259a26(0xca)])_0x38f9aa[_0x259a26(0xbf)](_0x3bd4f5,_0x1bbea0[_0x259a26(0xca)][_0x3bd4f5]);}return _0x6ff0ba(_0x4d3064);}});}async[_0xc91cd3(0xed)](_0x27cdfb){const _0x18ba47=_0xc91cd3;return this[_0x18ba47(0xc7)](_0x27cdfb);}};v=d([u(0x0,(0x0,r[_0xc91cd3(0xe0)])(r['Injector'])),u(0x1,(0x0,r[_0xc91cd3(0xe0)])(i[_0xc91cd3(0xdf)])),u(0x2,r[_0xc91cd3(0xb2)]),u(0x3,r[_0xc91cd3(0xbd)]),u(0x4,e[_0xc91cd3(0xea)])],v),Object['defineProperty'](exports,_0xc91cd3(0xa7),{'enumerable':!0x0,'get':function(){return v;}}),Object['defineProperty'](exports,_0xc91cd3(0xdb),{'enumerable':!0x0,'get':function(){return _;}});
1
+ const _0x340046=_0x1058;(function(_0x163a4d,_0x338364){const _0x44b38b=_0x1058,_0x588b22=_0x163a4d();while(!![]){try{const _0xdc1e49=parseInt(_0x44b38b(0xc2))/0x1*(-parseInt(_0x44b38b(0xd7))/0x2)+-parseInt(_0x44b38b(0xc9))/0x3+-parseInt(_0x44b38b(0xb9))/0x4+-parseInt(_0x44b38b(0xe0))/0x5*(-parseInt(_0x44b38b(0xc5))/0x6)+-parseInt(_0x44b38b(0xb6))/0x7+parseInt(_0x44b38b(0xeb))/0x8+-parseInt(_0x44b38b(0xf6))/0x9*(-parseInt(_0x44b38b(0xbc))/0xa);if(_0xdc1e49===_0x338364)break;else _0x588b22['push'](_0x588b22['shift']());}catch(_0x528fa5){_0x588b22['push'](_0x588b22['shift']());}}}(_0x4a61,0xda967),Object[_0x340046(0xe4)](exports,Symbol[_0x340046(0xf4)],{'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=_0x340046(0xf2);const l={};function u(_0x57eb16,_0x11d0bb){return function(_0x2a71b1,_0x179024){_0x11d0bb(_0x2a71b1,_0x179024,_0x57eb16);};}function _0x4a61(){const _0xf0a8a6=['string','10922056lXkTtO','registerDependencies','UniverCollaborationClientPlugin','next','share','_configService','_doCreateSocket','1.1.0','registerHTTPInterceptor','toStringTag','NodeCollaborationSocketService','162RQoWVL','set','Injector','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','add','iterator','call','ISocketService','5399324TjVYxT','ILogService','constructor','5029776yBGnSN','decorate','pipe','422410ktLIbH','onStarting','removeEventListener','CollaborationSocketService','Observable','Plugin','2ThsSdI','symbol','_registerDependencies','10334382RzrXRN','merge','addEventListener','Disposable','700545CqhAlP','WebSocket','pluginName','toPrimitive','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','toDisposable','getConfig','createSocket','default','_injector','message','getOwnPropertyDescriptor','ISnapshotServerService','packageName','690366wDdhlf','dispose','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','setConfig','IConfigService','object','length','customHeaders','_config','5MYqHLh','close','function','headers','defineProperty','Inject','error','HTTPService','open','DependentOn'];_0x4a61=function(){return _0xf0a8a6;};return _0x4a61();}function d(_0x28f92d,_0x111bf6,_0x326771,_0xceee72){const _0xc96142=_0x340046;var _0x58220f=arguments[_0xc96142(0xdd)],_0x3dcf76=_0x58220f<0x3?_0x111bf6:_0xceee72===null?_0xceee72=Object[_0xc96142(0xd4)](_0x111bf6,_0x326771):_0xceee72,_0x35035a;if(typeof Reflect==_0xc96142(0xdc)&&typeof Reflect[_0xc96142(0xba)]==_0xc96142(0xe2))_0x3dcf76=Reflect[_0xc96142(0xba)](_0x28f92d,_0x111bf6,_0x326771,_0xceee72);else{for(var _0x1d9eb0=_0x28f92d[_0xc96142(0xdd)]-0x1;_0x1d9eb0>=0x0;_0x1d9eb0--)(_0x35035a=_0x28f92d[_0x1d9eb0])&&(_0x3dcf76=(_0x58220f<0x3?_0x35035a(_0x3dcf76):_0x58220f>0x3?_0x35035a(_0x111bf6,_0x326771,_0x3dcf76):_0x35035a(_0x111bf6,_0x326771))||_0x3dcf76);}return _0x58220f>0x3&&_0x3dcf76&&Object[_0xc96142(0xe4)](_0x111bf6,_0x326771,_0x3dcf76),_0x3dcf76;}let f=class extends r[_0x340046(0xc8)]{constructor(_0x16d0f2){const _0x4ca404=_0x340046;super(),this[_0x4ca404(0xf0)]=_0x16d0f2;}[_0x340046(0xd0)](_0x3af1a2){const _0x56a1c4=_0x340046;var _0x219431;let _0x5ecb78=((_0x219431=this[_0x56a1c4(0xf0)]['getConfig'](t[_0x56a1c4(0xd9)]))==null?void 0x0:_0x219431[_0x56a1c4(0xde)])||{};try{let _0x13d9d7=new o[(_0x56a1c4(0xca))](_0x3af1a2,{'headers':{..._0x5ecb78}}),_0x5839d9=new r['DisposableCollection']();return{'URL':_0x3af1a2,'close':(_0x307570,_0x41b548)=>{const _0x414b5a=_0x56a1c4;_0x13d9d7[_0x414b5a(0xe1)](_0x307570,_0x41b548),_0x5839d9[_0x414b5a(0xd8)]();},'send':_0x195aaa=>{_0x13d9d7['send'](_0x195aaa);},'open$':new a[(_0x56a1c4(0xc0))](_0x4e1a10=>{const _0x250911=_0x56a1c4;let _0x46116d=_0x2c19e4=>_0x4e1a10[_0x250911(0xee)](_0x2c19e4);_0x13d9d7['addEventListener'](_0x250911(0xe8),_0x46116d),_0x5839d9[_0x250911(0xb2)]((0x0,r[_0x250911(0xce)])(()=>_0x13d9d7[_0x250911(0xbe)](_0x250911(0xe8),_0x46116d)));})[_0x56a1c4(0xbb)]((0x0,a[_0x56a1c4(0xef)])()),'close$':new a[(_0x56a1c4(0xc0))](_0x108341=>{const _0x27aef5=_0x56a1c4;let _0x1d5d7e=_0x28ffc1=>_0x108341['next'](_0x28ffc1);_0x13d9d7[_0x27aef5(0xc7)](_0x27aef5(0xe1),_0x1d5d7e),_0x5839d9[_0x27aef5(0xb2)]((0x0,r[_0x27aef5(0xce)])(()=>_0x13d9d7[_0x27aef5(0xbe)](_0x27aef5(0xe1),_0x1d5d7e)));})[_0x56a1c4(0xbb)]((0x0,a[_0x56a1c4(0xef)])()),'error$':new a[(_0x56a1c4(0xc0))](_0x299063=>{const _0x573fdb=_0x56a1c4;let _0x37a725=_0x26ce17=>_0x299063[_0x573fdb(0xee)](_0x26ce17);_0x13d9d7[_0x573fdb(0xc7)](_0x573fdb(0xe6),_0x37a725),_0x5839d9['add']((0x0,r[_0x573fdb(0xce)])(()=>_0x13d9d7[_0x573fdb(0xbe)](_0x573fdb(0xe6),_0x37a725)));})['pipe']((0x0,a[_0x56a1c4(0xef)])()),'message$':new a[(_0x56a1c4(0xc0))](_0xe17009=>{const _0x458286=_0x56a1c4;let _0x19b63f=_0x17cf58=>_0xe17009[_0x458286(0xee)](_0x17cf58);_0x13d9d7[_0x458286(0xc7)](_0x458286(0xd3),_0x19b63f),_0x5839d9[_0x458286(0xb2)]((0x0,r[_0x458286(0xce)])(()=>_0x13d9d7[_0x458286(0xbe)](_0x458286(0xd3),_0x19b63f)));})[_0x56a1c4(0xbb)]((0x0,a[_0x56a1c4(0xef)])())};}catch(_0x1a2582){return console[_0x56a1c4(0xe6)](_0x1a2582),null;}}};f=d([u(0x0,r[_0x340046(0xdb)])],f);function _0x1058(_0x49e3db,_0x3f5a34){_0x49e3db=_0x49e3db-0xb0;const _0x4a61b7=_0x4a61();let _0x10586f=_0x4a61b7[_0x49e3db];return _0x10586f;}function p(_0x53d4af){'@babel/helpers - typeof';const _0x18b817=_0x340046;return p=typeof Symbol==_0x18b817(0xe2)&&typeof Symbol[_0x18b817(0xb3)]=='symbol'?function(_0x576e16){return typeof _0x576e16;}:function(_0xd1542){const _0x304e5d=_0x18b817;return _0xd1542&&typeof Symbol=='function'&&_0xd1542[_0x304e5d(0xb8)]===Symbol&&_0xd1542!==Symbol['prototype']?_0x304e5d(0xc3):typeof _0xd1542;},p(_0x53d4af);}function m(_0x15f585,_0xd04c75){const _0x39b74a=_0x340046;if(p(_0x15f585)!=_0x39b74a(0xdc)||!_0x15f585)return _0x15f585;var _0x3bdfe5=_0x15f585[Symbol[_0x39b74a(0xcc)]];if(_0x3bdfe5!==void 0x0){var _0x3608bd=_0x3bdfe5[_0x39b74a(0xb4)](_0x15f585,_0xd04c75||_0x39b74a(0xd1));if(p(_0x3608bd)!=_0x39b74a(0xdc))return _0x3608bd;throw TypeError(_0x39b74a(0xcd));}return(_0xd04c75===_0x39b74a(0xea)?String:Number)(_0x15f585);}function h(_0x3bdfe3){const _0x186160=_0x340046;var _0x10b6b4=m(_0x3bdfe3,_0x186160(0xea));return p(_0x10b6b4)==_0x186160(0xc3)?_0x10b6b4:_0x10b6b4+'';}function g(_0x5c6b27,_0x2019f7,_0x42707d){const _0x42b8d4=_0x340046;return(_0x2019f7=h(_0x2019f7))in _0x5c6b27?Object[_0x42b8d4(0xe4)](_0x5c6b27,_0x2019f7,{'value':_0x42707d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5c6b27[_0x2019f7]=_0x42707d,_0x5c6b27;}let _=class extends r[_0x340046(0xc1)]{constructor(_0xe1168d=l,_0x407af2,_0x42ac9a){const _0x4c266b=_0x340046;super(),this[_0x4c266b(0xdf)]=_0xe1168d,this[_0x4c266b(0xf0)]=_0x407af2,this[_0x4c266b(0xd2)]=_0x42ac9a;let {..._0x287263}=(0x0,r[_0x4c266b(0xc6)])({},l,this[_0x4c266b(0xdf)]);this[_0x4c266b(0xf0)][_0x4c266b(0xda)]('collaboration-client-node.config',_0x287263);}[_0x340046(0xbd)](){const _0x2b82a9=_0x340046;this[_0x2b82a9(0xc4)]();}['_registerDependencies'](){const _0x1dee7d=_0x340046;(0x0,r[_0x1dee7d(0xec)])(this[_0x1dee7d(0xd2)],[[i[_0x1dee7d(0xb5)],{'useClass':f}]]);}};g(_,_0x340046(0xcb),_0x340046(0xb1)),g(_,_0x340046(0xd6),s),g(_,'version',c),_=d([(0x0,r[_0x340046(0xe9)])(n['UniverLicensePlugin'],i['UniverNetworkPlugin'],e['UniverCollaborationPlugin'],t[_0x340046(0xed)]),u(0x1,r[_0x340046(0xdb)]),u(0x2,(0x0,r['Inject'])(r['Injector']))],_);let v=class extends t[_0x340046(0xbf)]{constructor(_0x1e295e,_0x8d19d,_0x455095,_0x464b9a,_0x50ad46){const _0x1c4183=_0x340046;super(_0x1e295e,_0x8d19d,_0x455095,_0x464b9a,_0x50ad46);let _0x6872ec=this['_configService'][_0x1c4183(0xcf)](t[_0x1c4183(0xd9)]);this['_httpService'][_0x1c4183(0xf3)]({'interceptor':(_0x1a7638,_0x562b2d)=>{const _0x2355da=_0x1c4183;let _0x361c6d=_0x1a7638[_0x2355da(0xe3)];if(_0x6872ec!=null&&_0x6872ec[_0x2355da(0xde)]){for(let _0x489710 in _0x6872ec[_0x2355da(0xde)])_0x361c6d[_0x2355da(0xf7)](_0x489710,_0x6872ec[_0x2355da(0xde)][_0x489710]);}return _0x562b2d(_0x1a7638);}});}async[_0x340046(0xd0)](_0x57f24c){const _0x3b5b94=_0x340046;return this[_0x3b5b94(0xf1)](_0x57f24c);}};v=d([u(0x0,(0x0,r[_0x340046(0xe5)])(r[_0x340046(0xb0)])),u(0x1,(0x0,r[_0x340046(0xe5)])(i[_0x340046(0xe7)])),u(0x2,r[_0x340046(0xdb)]),u(0x3,r[_0x340046(0xb7)]),u(0x4,e[_0x340046(0xd5)])],v),Object[_0x340046(0xe4)](exports,_0x340046(0xf5),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x340046(0xe4)](exports,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x119233=_0xba97;(function(_0x4893c1,_0x10bcaf){const _0x56551c=_0xba97,_0x2f96b9=_0x4893c1();while(!![]){try{const _0x51ca24=parseInt(_0x56551c(0x1f3))/0x1+parseInt(_0x56551c(0x213))/0x2+parseInt(_0x56551c(0x1f5))/0x3*(parseInt(_0x56551c(0x1e5))/0x4)+parseInt(_0x56551c(0x1eb))/0x5*(parseInt(_0x56551c(0x20d))/0x6)+-parseInt(_0x56551c(0x1f8))/0x7*(parseInt(_0x56551c(0x1f2))/0x8)+-parseInt(_0x56551c(0x1e9))/0x9*(-parseInt(_0x56551c(0x211))/0xa)+-parseInt(_0x56551c(0x1f6))/0xb;if(_0x51ca24===_0x10bcaf)break;else _0x2f96b9['push'](_0x2f96b9['shift']());}catch(_0x252673){_0x2f96b9['push'](_0x2f96b9['shift']());}}}(_0x14dc,0x48124));import{ISnapshotServerService as _0x2d5765,UniverCollaborationPlugin as _0x33cb64}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0xdb8f0,CollaborationSocketService as _0x3560dc,UniverCollaborationClientPlugin as _0x1e4d74}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x575df6}from'@univerjs-pro/license';import{DependentOn as _0x4d25f2,Disposable as _0x4c557e,DisposableCollection as _0x3858d1,IConfigService as _0x5f5dc7,ILogService as _0x6252b9,Inject as _0x57e288,Injector as _0x10472f,Plugin as _0x3edb25,merge as _0x3f0887,registerDependencies as _0x2c722a,toDisposable as _0x15c7c4}from'@univerjs/core';import{HTTPService as _0x19f3fe,ISocketService as _0x47b568,UniverNetworkPlugin as _0x3bb066}from'@univerjs/network';import{Observable as _0x286fab,share as _0x22b94b}from'rxjs';import{WebSocket as _0x534f5b}from'ws';var C=_0x119233(0x1e4),w=_0x119233(0x215);function _0xba97(_0x36e0c7,_0x3732ea){_0x36e0c7=_0x36e0c7-0x1e3;const _0x14dc43=_0x14dc();let _0xba97eb=_0x14dc43[_0x36e0c7];return _0xba97eb;}const T={};function E(_0x5f142a,_0x17ba08){return function(_0x26672d,_0x17c203){_0x17ba08(_0x26672d,_0x17c203,_0x5f142a);};}function D(_0x540bf6,_0x3ad0a7,_0xe3ce,_0x295a07){const _0x1cf8ae=_0x119233;var _0x3f325d=arguments[_0x1cf8ae(0x1f1)],_0x84cb7b=_0x3f325d<0x3?_0x3ad0a7:_0x295a07===null?_0x295a07=Object[_0x1cf8ae(0x1fd)](_0x3ad0a7,_0xe3ce):_0x295a07,_0x450bbe;if(typeof Reflect==_0x1cf8ae(0x20f)&&typeof Reflect[_0x1cf8ae(0x20a)]==_0x1cf8ae(0x1f4))_0x84cb7b=Reflect[_0x1cf8ae(0x20a)](_0x540bf6,_0x3ad0a7,_0xe3ce,_0x295a07);else{for(var _0x1e09ad=_0x540bf6[_0x1cf8ae(0x1f1)]-0x1;_0x1e09ad>=0x0;_0x1e09ad--)(_0x450bbe=_0x540bf6[_0x1e09ad])&&(_0x84cb7b=(_0x3f325d<0x3?_0x450bbe(_0x84cb7b):_0x3f325d>0x3?_0x450bbe(_0x3ad0a7,_0xe3ce,_0x84cb7b):_0x450bbe(_0x3ad0a7,_0xe3ce))||_0x84cb7b);}return _0x3f325d>0x3&&_0x84cb7b&&Object[_0x1cf8ae(0x207)](_0x3ad0a7,_0xe3ce,_0x84cb7b),_0x84cb7b;}let O=class extends _0x4c557e{constructor(_0x206d5e){super(),this['_configService']=_0x206d5e;}['createSocket'](_0x4c0e2e){const _0x2cbade=_0x119233;var _0x3c6e2d;let _0x1de296=((_0x3c6e2d=this[_0x2cbade(0x1f0)][_0x2cbade(0x218)](_0xdb8f0))==null?void 0x0:_0x3c6e2d['customHeaders'])||{};try{let _0x2d5a2f=new _0x534f5b(_0x4c0e2e,{'headers':{..._0x1de296}}),_0x19c935=new _0x3858d1();return{'URL':_0x4c0e2e,'close':(_0x10d371,_0x2c7f6a)=>{const _0x149459=_0x2cbade;_0x2d5a2f[_0x149459(0x1fb)](_0x10d371,_0x2c7f6a),_0x19c935[_0x149459(0x214)]();},'send':_0x4fb516=>{_0x2d5a2f['send'](_0x4fb516);},'open$':new _0x286fab(_0x12e35b=>{const _0x232cb3=_0x2cbade;let _0x1d1eb2=_0x3cfad9=>_0x12e35b[_0x232cb3(0x20b)](_0x3cfad9);_0x2d5a2f['addEventListener']('open',_0x1d1eb2),_0x19c935[_0x232cb3(0x203)](_0x15c7c4(()=>_0x2d5a2f[_0x232cb3(0x1fc)](_0x232cb3(0x201),_0x1d1eb2)));})[_0x2cbade(0x1ea)](_0x22b94b()),'close$':new _0x286fab(_0x596f5f=>{const _0x9c02ea=_0x2cbade;let _0x45f5ea=_0x2cf796=>_0x596f5f[_0x9c02ea(0x20b)](_0x2cf796);_0x2d5a2f['addEventListener'](_0x9c02ea(0x1fb),_0x45f5ea),_0x19c935['add'](_0x15c7c4(()=>_0x2d5a2f[_0x9c02ea(0x1fc)](_0x9c02ea(0x1fb),_0x45f5ea)));})['pipe'](_0x22b94b()),'error$':new _0x286fab(_0x29ce88=>{const _0x2fb291=_0x2cbade;let _0xf00cef=_0x369023=>_0x29ce88['next'](_0x369023);_0x2d5a2f[_0x2fb291(0x1fe)](_0x2fb291(0x1ed),_0xf00cef),_0x19c935['add'](_0x15c7c4(()=>_0x2d5a2f['removeEventListener']('error',_0xf00cef)));})['pipe'](_0x22b94b()),'message$':new _0x286fab(_0x66b4ba=>{const _0x4c710c=_0x2cbade;let _0x1148b3=_0x127b87=>_0x66b4ba[_0x4c710c(0x20b)](_0x127b87);_0x2d5a2f[_0x4c710c(0x1fe)](_0x4c710c(0x1ef),_0x1148b3),_0x19c935[_0x4c710c(0x203)](_0x15c7c4(()=>_0x2d5a2f[_0x4c710c(0x1fc)](_0x4c710c(0x1ef),_0x1148b3)));})[_0x2cbade(0x1ea)](_0x22b94b())};}catch(_0xd8cf76){return console['error'](_0xd8cf76),null;}}};O=D([E(0x0,_0x5f5dc7)],O);function k(_0x4014ae){'@babel/helpers - typeof';const _0x57971e=_0x119233;return k=typeof Symbol==_0x57971e(0x1f4)&&typeof Symbol[_0x57971e(0x217)]=='symbol'?function(_0x3c370c){return typeof _0x3c370c;}:function(_0x1983ab){const _0x341a52=_0x57971e;return _0x1983ab&&typeof Symbol==_0x341a52(0x1f4)&&_0x1983ab[_0x341a52(0x219)]===Symbol&&_0x1983ab!==Symbol[_0x341a52(0x208)]?_0x341a52(0x1fa):typeof _0x1983ab;},k(_0x4014ae);}function A(_0x22b478,_0x55a639){const _0x37360d=_0x119233;if(k(_0x22b478)!=_0x37360d(0x20f)||!_0x22b478)return _0x22b478;var _0x1a3dca=_0x22b478[Symbol['toPrimitive']];if(_0x1a3dca!==void 0x0){var _0x2e1eee=_0x1a3dca[_0x37360d(0x1ee)](_0x22b478,_0x55a639||_0x37360d(0x200));if(k(_0x2e1eee)!='object')return _0x2e1eee;throw TypeError(_0x37360d(0x216));}return(_0x55a639===_0x37360d(0x1ff)?String:Number)(_0x22b478);}function j(_0x97121f){const _0x3609a1=_0x119233;var _0x380ab6=A(_0x97121f,_0x3609a1(0x1ff));return k(_0x380ab6)=='symbol'?_0x380ab6:_0x380ab6+'';}function M(_0x271767,_0xabff0e,_0x3552dd){const _0x4d98a1=_0x119233;return(_0xabff0e=j(_0xabff0e))in _0x271767?Object[_0x4d98a1(0x207)](_0x271767,_0xabff0e,{'value':_0x3552dd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x271767[_0xabff0e]=_0x3552dd,_0x271767;}let N=class extends _0x3edb25{constructor(_0x275c69=T,_0x4e9b9c,_0xb80779){const _0x2e1aa8=_0x119233;super(),this[_0x2e1aa8(0x206)]=_0x275c69,this[_0x2e1aa8(0x1f0)]=_0x4e9b9c,this[_0x2e1aa8(0x205)]=_0xb80779;let {..._0x48995c}=_0x3f0887({},T,this['_config']);this[_0x2e1aa8(0x1f0)][_0x2e1aa8(0x1f7)](_0x2e1aa8(0x1e3),_0x48995c);}[_0x119233(0x1e8)](){const _0x26f88c=_0x119233;this[_0x26f88c(0x1f9)]();}['_registerDependencies'](){const _0x3cb28=_0x119233;_0x2c722a(this[_0x3cb28(0x205)],[[_0x47b568,{'useClass':O}]]);}};M(N,_0x119233(0x20c),_0x119233(0x212)),M(N,_0x119233(0x1e7),C),M(N,_0x119233(0x20e),w),N=D([_0x4d25f2(_0x575df6,_0x3bb066,_0x33cb64,_0x1e4d74),E(0x1,_0x5f5dc7),E(0x2,_0x57e288(_0x10472f))],N);let P=class extends _0x3560dc{constructor(_0x156173,_0x16e218,_0x1d2d26,_0xc3f645,_0x32d9b2){const _0x32a734=_0x119233;super(_0x156173,_0x16e218,_0x1d2d26,_0xc3f645,_0x32d9b2);let _0x3c498b=this[_0x32a734(0x1f0)][_0x32a734(0x218)](_0xdb8f0);this[_0x32a734(0x209)][_0x32a734(0x202)]({'interceptor':(_0x2868c6,_0x2e016c)=>{const _0x1a9f66=_0x32a734;let _0x5cc9c3=_0x2868c6[_0x1a9f66(0x204)];if(_0x3c498b!=null&&_0x3c498b[_0x1a9f66(0x1e6)]){for(let _0x495c49 in _0x3c498b[_0x1a9f66(0x1e6)])_0x5cc9c3[_0x1a9f66(0x1ec)](_0x495c49,_0x3c498b[_0x1a9f66(0x1e6)][_0x495c49]);}return _0x2e016c(_0x2868c6);}});}async['createSocket'](_0x344d2a){const _0x1a43d2=_0x119233;return this[_0x1a43d2(0x210)](_0x344d2a);}};P=D([E(0x0,_0x57e288(_0x10472f)),E(0x1,_0x57e288(_0x19f3fe)),E(0x2,_0x5f5dc7),E(0x3,_0x6252b9),E(0x4,_0x2d5765)],P);function _0x14dc(){const _0x40dbac=['headers','_injector','_config','defineProperty','prototype','_httpService','decorate','next','pluginName','2576214bZwaPL','version','object','_doCreateSocket','3190rhqIZp','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','519700WYYSdT','dispose','1.0.4','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','iterator','getConfig','constructor','collaboration-client-node.config','@univerjs-pro/collaboration-client-node','985476YGuQWw','customHeaders','packageName','onStarting','4293EFDofn','pipe','5hONDyS','set','error','call','message','_configService','length','8yOSvuO','151855rXIcnB','function','3ZfZXWS','7494080sqqynD','setConfig','1841854aOnKjU','_registerDependencies','symbol','close','removeEventListener','getOwnPropertyDescriptor','addEventListener','string','default','open','registerHTTPInterceptor','add'];_0x14dc=function(){return _0x40dbac;};return _0x14dc();}export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
1
+ const _0x407e30=_0x4e94;(function(_0x92a4d5,_0x44b3e1){const _0x4b8a32=_0x4e94,_0x3bd108=_0x92a4d5();while(!![]){try{const _0x448f06=-parseInt(_0x4b8a32(0x127))/0x1+-parseInt(_0x4b8a32(0x105))/0x2+-parseInt(_0x4b8a32(0x120))/0x3+parseInt(_0x4b8a32(0x121))/0x4+parseInt(_0x4b8a32(0x106))/0x5+-parseInt(_0x4b8a32(0x10c))/0x6+parseInt(_0x4b8a32(0x10d))/0x7;if(_0x448f06===_0x44b3e1)break;else _0x3bd108['push'](_0x3bd108['shift']());}catch(_0x2df963){_0x3bd108['push'](_0x3bd108['shift']());}}}(_0x5c63,0x6ea7c));import{ISnapshotServerService as _0x568942,UniverCollaborationPlugin as _0x5c6729}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3e723d,CollaborationSocketService as _0x16d96d,UniverCollaborationClientPlugin as _0x363762}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x2c7985}from'@univerjs-pro/license';import{DependentOn as _0x2ba93a,Disposable as _0x1d9623,DisposableCollection as _0x1faf6c,IConfigService as _0x58fc6e,ILogService as _0x3bb1e6,Inject as _0x3d41d3,Injector as _0x451f6e,Plugin as _0x4bd04c,merge as _0x3707cf,registerDependencies as _0x1ccb89,toDisposable as _0x18c957}from'@univerjs/core';import{HTTPService as _0x557549,ISocketService as _0x2e5c1b,UniverNetworkPlugin as _0x4dc214}from'@univerjs/network';import{Observable as _0xe69dde,share as _0x36c6c6}from'rxjs';import{WebSocket as _0x5d990d}from'ws';var C=_0x407e30(0x11a),w=_0x407e30(0x116);const T={};function E(_0x55d866,_0x522c9e){return function(_0x286b3a,_0x18cdfa){_0x522c9e(_0x286b3a,_0x18cdfa,_0x55d866);};}function D(_0x34f224,_0x1471b2,_0x22b318,_0x34caf1){const _0x41356e=_0x407e30;var _0x548918=arguments['length'],_0x3f792d=_0x548918<0x3?_0x1471b2:_0x34caf1===null?_0x34caf1=Object['getOwnPropertyDescriptor'](_0x1471b2,_0x22b318):_0x34caf1,_0xf42b7c;if(typeof Reflect==_0x41356e(0x129)&&typeof Reflect[_0x41356e(0x12d)]=='function')_0x3f792d=Reflect[_0x41356e(0x12d)](_0x34f224,_0x1471b2,_0x22b318,_0x34caf1);else{for(var _0x3bb752=_0x34f224[_0x41356e(0x104)]-0x1;_0x3bb752>=0x0;_0x3bb752--)(_0xf42b7c=_0x34f224[_0x3bb752])&&(_0x3f792d=(_0x548918<0x3?_0xf42b7c(_0x3f792d):_0x548918>0x3?_0xf42b7c(_0x1471b2,_0x22b318,_0x3f792d):_0xf42b7c(_0x1471b2,_0x22b318))||_0x3f792d);}return _0x548918>0x3&&_0x3f792d&&Object[_0x41356e(0x10a)](_0x1471b2,_0x22b318,_0x3f792d),_0x3f792d;}let O=class extends _0x1d9623{constructor(_0x56682b){const _0x48cd5f=_0x407e30;super(),this[_0x48cd5f(0x108)]=_0x56682b;}[_0x407e30(0x12b)](_0x17a9c6){const _0x721f0b=_0x407e30;var _0x164c45;let _0x11d8cc=((_0x164c45=this[_0x721f0b(0x108)]['getConfig'](_0x3e723d))==null?void 0x0:_0x164c45[_0x721f0b(0x12e)])||{};try{let _0x27d77a=new _0x5d990d(_0x17a9c6,{'headers':{..._0x11d8cc}}),_0x1e0bf0=new _0x1faf6c();return{'URL':_0x17a9c6,'close':(_0x29d8c2,_0x5e2fd8)=>{const _0xea25b9=_0x721f0b;_0x27d77a[_0xea25b9(0x119)](_0x29d8c2,_0x5e2fd8),_0x1e0bf0[_0xea25b9(0x12a)]();},'send':_0x3cacb8=>{const _0x3cfbae=_0x721f0b;_0x27d77a[_0x3cfbae(0x130)](_0x3cacb8);},'open$':new _0xe69dde(_0x5cb01f=>{const _0x444488=_0x721f0b;let _0x262cb5=_0x252fff=>_0x5cb01f[_0x444488(0x128)](_0x252fff);_0x27d77a[_0x444488(0x11e)]('open',_0x262cb5),_0x1e0bf0[_0x444488(0x114)](_0x18c957(()=>_0x27d77a[_0x444488(0x10e)](_0x444488(0x125),_0x262cb5)));})[_0x721f0b(0x109)](_0x36c6c6()),'close$':new _0xe69dde(_0x417082=>{const _0x24bb55=_0x721f0b;let _0x541764=_0x181d33=>_0x417082['next'](_0x181d33);_0x27d77a[_0x24bb55(0x11e)](_0x24bb55(0x119),_0x541764),_0x1e0bf0[_0x24bb55(0x114)](_0x18c957(()=>_0x27d77a['removeEventListener'](_0x24bb55(0x119),_0x541764)));})[_0x721f0b(0x109)](_0x36c6c6()),'error$':new _0xe69dde(_0x424fba=>{const _0x1c43d4=_0x721f0b;let _0x3449c4=_0x581ec2=>_0x424fba['next'](_0x581ec2);_0x27d77a[_0x1c43d4(0x11e)](_0x1c43d4(0x115),_0x3449c4),_0x1e0bf0[_0x1c43d4(0x114)](_0x18c957(()=>_0x27d77a['removeEventListener'](_0x1c43d4(0x115),_0x3449c4)));})[_0x721f0b(0x109)](_0x36c6c6()),'message$':new _0xe69dde(_0x588ff6=>{const _0x82e95f=_0x721f0b;let _0x28a750=_0xa558bb=>_0x588ff6[_0x82e95f(0x128)](_0xa558bb);_0x27d77a[_0x82e95f(0x11e)](_0x82e95f(0x111),_0x28a750),_0x1e0bf0['add'](_0x18c957(()=>_0x27d77a[_0x82e95f(0x10e)]('message',_0x28a750)));})['pipe'](_0x36c6c6())};}catch(_0x921670){return console[_0x721f0b(0x115)](_0x921670),null;}}};O=D([E(0x0,_0x58fc6e)],O);function k(_0x296ca1){'@babel/helpers - typeof';const _0x243b8f=_0x407e30;return k=typeof Symbol==_0x243b8f(0x10f)&&typeof Symbol['iterator']==_0x243b8f(0x12f)?function(_0x1234c7){return typeof _0x1234c7;}:function(_0x487b52){const _0x3069ca=_0x243b8f;return _0x487b52&&typeof Symbol==_0x3069ca(0x10f)&&_0x487b52['constructor']===Symbol&&_0x487b52!==Symbol[_0x3069ca(0x11f)]?_0x3069ca(0x12f):typeof _0x487b52;},k(_0x296ca1);}function A(_0x14cbb3,_0x3666e3){const _0x126529=_0x407e30;if(k(_0x14cbb3)!='object'||!_0x14cbb3)return _0x14cbb3;var _0x7d1d38=_0x14cbb3[Symbol[_0x126529(0x11d)]];if(_0x7d1d38!==void 0x0){var _0x5470cc=_0x7d1d38[_0x126529(0x12c)](_0x14cbb3,_0x3666e3||'default');if(k(_0x5470cc)!=_0x126529(0x129))return _0x5470cc;throw TypeError(_0x126529(0x123));}return(_0x3666e3===_0x126529(0x110)?String:Number)(_0x14cbb3);}function j(_0x325f49){const _0x18589e=_0x407e30;var _0x41c523=A(_0x325f49,_0x18589e(0x110));return k(_0x41c523)==_0x18589e(0x12f)?_0x41c523:_0x41c523+'';}function M(_0x16492e,_0x5d2bb3,_0x549f34){const _0x9fe1ae=_0x407e30;return(_0x5d2bb3=j(_0x5d2bb3))in _0x16492e?Object[_0x9fe1ae(0x10a)](_0x16492e,_0x5d2bb3,{'value':_0x549f34,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x16492e[_0x5d2bb3]=_0x549f34,_0x16492e;}let N=class extends _0x4bd04c{constructor(_0x5e875c=T,_0x53dd6c,_0x3102bf){const _0x3c50b8=_0x407e30;super(),this[_0x3c50b8(0x10b)]=_0x5e875c,this[_0x3c50b8(0x108)]=_0x53dd6c,this[_0x3c50b8(0x112)]=_0x3102bf;let {..._0x59ea80}=_0x3707cf({},T,this[_0x3c50b8(0x10b)]);this[_0x3c50b8(0x108)][_0x3c50b8(0x122)](_0x3c50b8(0x11c),_0x59ea80);}['onStarting'](){this['_registerDependencies']();}['_registerDependencies'](){const _0x5d15f6=_0x407e30;_0x1ccb89(this[_0x5d15f6(0x112)],[[_0x2e5c1b,{'useClass':O}]]);}};M(N,_0x407e30(0x107),_0x407e30(0x117)),M(N,'packageName',C),M(N,'version',w),N=D([_0x2ba93a(_0x2c7985,_0x4dc214,_0x5c6729,_0x363762),E(0x1,_0x58fc6e),E(0x2,_0x3d41d3(_0x451f6e))],N);let P=class extends _0x16d96d{constructor(_0x543100,_0x53eb11,_0x543761,_0x3f1498,_0x300c2d){const _0x4769bd=_0x407e30;super(_0x543100,_0x53eb11,_0x543761,_0x3f1498,_0x300c2d);let _0x7c08be=this['_configService'][_0x4769bd(0x126)](_0x3e723d);this[_0x4769bd(0x124)][_0x4769bd(0x103)]({'interceptor':(_0x7a7f9e,_0x52d40a)=>{const _0x22e237=_0x4769bd;let _0x532099=_0x7a7f9e[_0x22e237(0x11b)];if(_0x7c08be!=null&&_0x7c08be['customHeaders']){for(let _0x263822 in _0x7c08be[_0x22e237(0x12e)])_0x532099[_0x22e237(0x118)](_0x263822,_0x7c08be[_0x22e237(0x12e)][_0x263822]);}return _0x52d40a(_0x7a7f9e);}});}async[_0x407e30(0x12b)](_0x1f391e){const _0x5254a2=_0x407e30;return this[_0x5254a2(0x113)](_0x1f391e);}};P=D([E(0x0,_0x3d41d3(_0x451f6e)),E(0x1,_0x3d41d3(_0x557549)),E(0x2,_0x58fc6e),E(0x3,_0x3bb1e6),E(0x4,_0x568942)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};function _0x4e94(_0x4986c6,_0xfeef17){_0x4986c6=_0x4986c6-0x103;const _0x5c636a=_0x5c63();let _0x4e94ce=_0x5c636a[_0x4986c6];return _0x4e94ce;}function _0x5c63(){const _0x6df7da=['add','error','1.1.0','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','set','close','@univerjs-pro/collaboration-client-node','headers','collaboration-client-node.config','toPrimitive','addEventListener','prototype','1356429cKZJQt','2141716LnnvQc','setConfig','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_httpService','open','getConfig','901802jafPsY','next','object','dispose','createSocket','call','decorate','customHeaders','symbol','send','registerHTTPInterceptor','length','448990apCesu','424360ZAFsqJ','pluginName','_configService','pipe','defineProperty','_config','2795226tbibaS','13140778uohTpw','removeEventListener','function','string','message','_injector','_doCreateSocket'];_0x5c63=function(){return _0x6df7da;};return _0x5c63();}
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x119233=_0xba97;(function(_0x4893c1,_0x10bcaf){const _0x56551c=_0xba97,_0x2f96b9=_0x4893c1();while(!![]){try{const _0x51ca24=parseInt(_0x56551c(0x1f3))/0x1+parseInt(_0x56551c(0x213))/0x2+parseInt(_0x56551c(0x1f5))/0x3*(parseInt(_0x56551c(0x1e5))/0x4)+parseInt(_0x56551c(0x1eb))/0x5*(parseInt(_0x56551c(0x20d))/0x6)+-parseInt(_0x56551c(0x1f8))/0x7*(parseInt(_0x56551c(0x1f2))/0x8)+-parseInt(_0x56551c(0x1e9))/0x9*(-parseInt(_0x56551c(0x211))/0xa)+-parseInt(_0x56551c(0x1f6))/0xb;if(_0x51ca24===_0x10bcaf)break;else _0x2f96b9['push'](_0x2f96b9['shift']());}catch(_0x252673){_0x2f96b9['push'](_0x2f96b9['shift']());}}}(_0x14dc,0x48124));import{ISnapshotServerService as _0x2d5765,UniverCollaborationPlugin as _0x33cb64}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0xdb8f0,CollaborationSocketService as _0x3560dc,UniverCollaborationClientPlugin as _0x1e4d74}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x575df6}from'@univerjs-pro/license';import{DependentOn as _0x4d25f2,Disposable as _0x4c557e,DisposableCollection as _0x3858d1,IConfigService as _0x5f5dc7,ILogService as _0x6252b9,Inject as _0x57e288,Injector as _0x10472f,Plugin as _0x3edb25,merge as _0x3f0887,registerDependencies as _0x2c722a,toDisposable as _0x15c7c4}from'@univerjs/core';import{HTTPService as _0x19f3fe,ISocketService as _0x47b568,UniverNetworkPlugin as _0x3bb066}from'@univerjs/network';import{Observable as _0x286fab,share as _0x22b94b}from'rxjs';import{WebSocket as _0x534f5b}from'ws';var C=_0x119233(0x1e4),w=_0x119233(0x215);function _0xba97(_0x36e0c7,_0x3732ea){_0x36e0c7=_0x36e0c7-0x1e3;const _0x14dc43=_0x14dc();let _0xba97eb=_0x14dc43[_0x36e0c7];return _0xba97eb;}const T={};function E(_0x5f142a,_0x17ba08){return function(_0x26672d,_0x17c203){_0x17ba08(_0x26672d,_0x17c203,_0x5f142a);};}function D(_0x540bf6,_0x3ad0a7,_0xe3ce,_0x295a07){const _0x1cf8ae=_0x119233;var _0x3f325d=arguments[_0x1cf8ae(0x1f1)],_0x84cb7b=_0x3f325d<0x3?_0x3ad0a7:_0x295a07===null?_0x295a07=Object[_0x1cf8ae(0x1fd)](_0x3ad0a7,_0xe3ce):_0x295a07,_0x450bbe;if(typeof Reflect==_0x1cf8ae(0x20f)&&typeof Reflect[_0x1cf8ae(0x20a)]==_0x1cf8ae(0x1f4))_0x84cb7b=Reflect[_0x1cf8ae(0x20a)](_0x540bf6,_0x3ad0a7,_0xe3ce,_0x295a07);else{for(var _0x1e09ad=_0x540bf6[_0x1cf8ae(0x1f1)]-0x1;_0x1e09ad>=0x0;_0x1e09ad--)(_0x450bbe=_0x540bf6[_0x1e09ad])&&(_0x84cb7b=(_0x3f325d<0x3?_0x450bbe(_0x84cb7b):_0x3f325d>0x3?_0x450bbe(_0x3ad0a7,_0xe3ce,_0x84cb7b):_0x450bbe(_0x3ad0a7,_0xe3ce))||_0x84cb7b);}return _0x3f325d>0x3&&_0x84cb7b&&Object[_0x1cf8ae(0x207)](_0x3ad0a7,_0xe3ce,_0x84cb7b),_0x84cb7b;}let O=class extends _0x4c557e{constructor(_0x206d5e){super(),this['_configService']=_0x206d5e;}['createSocket'](_0x4c0e2e){const _0x2cbade=_0x119233;var _0x3c6e2d;let _0x1de296=((_0x3c6e2d=this[_0x2cbade(0x1f0)][_0x2cbade(0x218)](_0xdb8f0))==null?void 0x0:_0x3c6e2d['customHeaders'])||{};try{let _0x2d5a2f=new _0x534f5b(_0x4c0e2e,{'headers':{..._0x1de296}}),_0x19c935=new _0x3858d1();return{'URL':_0x4c0e2e,'close':(_0x10d371,_0x2c7f6a)=>{const _0x149459=_0x2cbade;_0x2d5a2f[_0x149459(0x1fb)](_0x10d371,_0x2c7f6a),_0x19c935[_0x149459(0x214)]();},'send':_0x4fb516=>{_0x2d5a2f['send'](_0x4fb516);},'open$':new _0x286fab(_0x12e35b=>{const _0x232cb3=_0x2cbade;let _0x1d1eb2=_0x3cfad9=>_0x12e35b[_0x232cb3(0x20b)](_0x3cfad9);_0x2d5a2f['addEventListener']('open',_0x1d1eb2),_0x19c935[_0x232cb3(0x203)](_0x15c7c4(()=>_0x2d5a2f[_0x232cb3(0x1fc)](_0x232cb3(0x201),_0x1d1eb2)));})[_0x2cbade(0x1ea)](_0x22b94b()),'close$':new _0x286fab(_0x596f5f=>{const _0x9c02ea=_0x2cbade;let _0x45f5ea=_0x2cf796=>_0x596f5f[_0x9c02ea(0x20b)](_0x2cf796);_0x2d5a2f['addEventListener'](_0x9c02ea(0x1fb),_0x45f5ea),_0x19c935['add'](_0x15c7c4(()=>_0x2d5a2f[_0x9c02ea(0x1fc)](_0x9c02ea(0x1fb),_0x45f5ea)));})['pipe'](_0x22b94b()),'error$':new _0x286fab(_0x29ce88=>{const _0x2fb291=_0x2cbade;let _0xf00cef=_0x369023=>_0x29ce88['next'](_0x369023);_0x2d5a2f[_0x2fb291(0x1fe)](_0x2fb291(0x1ed),_0xf00cef),_0x19c935['add'](_0x15c7c4(()=>_0x2d5a2f['removeEventListener']('error',_0xf00cef)));})['pipe'](_0x22b94b()),'message$':new _0x286fab(_0x66b4ba=>{const _0x4c710c=_0x2cbade;let _0x1148b3=_0x127b87=>_0x66b4ba[_0x4c710c(0x20b)](_0x127b87);_0x2d5a2f[_0x4c710c(0x1fe)](_0x4c710c(0x1ef),_0x1148b3),_0x19c935[_0x4c710c(0x203)](_0x15c7c4(()=>_0x2d5a2f[_0x4c710c(0x1fc)](_0x4c710c(0x1ef),_0x1148b3)));})[_0x2cbade(0x1ea)](_0x22b94b())};}catch(_0xd8cf76){return console['error'](_0xd8cf76),null;}}};O=D([E(0x0,_0x5f5dc7)],O);function k(_0x4014ae){'@babel/helpers - typeof';const _0x57971e=_0x119233;return k=typeof Symbol==_0x57971e(0x1f4)&&typeof Symbol[_0x57971e(0x217)]=='symbol'?function(_0x3c370c){return typeof _0x3c370c;}:function(_0x1983ab){const _0x341a52=_0x57971e;return _0x1983ab&&typeof Symbol==_0x341a52(0x1f4)&&_0x1983ab[_0x341a52(0x219)]===Symbol&&_0x1983ab!==Symbol[_0x341a52(0x208)]?_0x341a52(0x1fa):typeof _0x1983ab;},k(_0x4014ae);}function A(_0x22b478,_0x55a639){const _0x37360d=_0x119233;if(k(_0x22b478)!=_0x37360d(0x20f)||!_0x22b478)return _0x22b478;var _0x1a3dca=_0x22b478[Symbol['toPrimitive']];if(_0x1a3dca!==void 0x0){var _0x2e1eee=_0x1a3dca[_0x37360d(0x1ee)](_0x22b478,_0x55a639||_0x37360d(0x200));if(k(_0x2e1eee)!='object')return _0x2e1eee;throw TypeError(_0x37360d(0x216));}return(_0x55a639===_0x37360d(0x1ff)?String:Number)(_0x22b478);}function j(_0x97121f){const _0x3609a1=_0x119233;var _0x380ab6=A(_0x97121f,_0x3609a1(0x1ff));return k(_0x380ab6)=='symbol'?_0x380ab6:_0x380ab6+'';}function M(_0x271767,_0xabff0e,_0x3552dd){const _0x4d98a1=_0x119233;return(_0xabff0e=j(_0xabff0e))in _0x271767?Object[_0x4d98a1(0x207)](_0x271767,_0xabff0e,{'value':_0x3552dd,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x271767[_0xabff0e]=_0x3552dd,_0x271767;}let N=class extends _0x3edb25{constructor(_0x275c69=T,_0x4e9b9c,_0xb80779){const _0x2e1aa8=_0x119233;super(),this[_0x2e1aa8(0x206)]=_0x275c69,this[_0x2e1aa8(0x1f0)]=_0x4e9b9c,this[_0x2e1aa8(0x205)]=_0xb80779;let {..._0x48995c}=_0x3f0887({},T,this['_config']);this[_0x2e1aa8(0x1f0)][_0x2e1aa8(0x1f7)](_0x2e1aa8(0x1e3),_0x48995c);}[_0x119233(0x1e8)](){const _0x26f88c=_0x119233;this[_0x26f88c(0x1f9)]();}['_registerDependencies'](){const _0x3cb28=_0x119233;_0x2c722a(this[_0x3cb28(0x205)],[[_0x47b568,{'useClass':O}]]);}};M(N,_0x119233(0x20c),_0x119233(0x212)),M(N,_0x119233(0x1e7),C),M(N,_0x119233(0x20e),w),N=D([_0x4d25f2(_0x575df6,_0x3bb066,_0x33cb64,_0x1e4d74),E(0x1,_0x5f5dc7),E(0x2,_0x57e288(_0x10472f))],N);let P=class extends _0x3560dc{constructor(_0x156173,_0x16e218,_0x1d2d26,_0xc3f645,_0x32d9b2){const _0x32a734=_0x119233;super(_0x156173,_0x16e218,_0x1d2d26,_0xc3f645,_0x32d9b2);let _0x3c498b=this[_0x32a734(0x1f0)][_0x32a734(0x218)](_0xdb8f0);this[_0x32a734(0x209)][_0x32a734(0x202)]({'interceptor':(_0x2868c6,_0x2e016c)=>{const _0x1a9f66=_0x32a734;let _0x5cc9c3=_0x2868c6[_0x1a9f66(0x204)];if(_0x3c498b!=null&&_0x3c498b[_0x1a9f66(0x1e6)]){for(let _0x495c49 in _0x3c498b[_0x1a9f66(0x1e6)])_0x5cc9c3[_0x1a9f66(0x1ec)](_0x495c49,_0x3c498b[_0x1a9f66(0x1e6)][_0x495c49]);}return _0x2e016c(_0x2868c6);}});}async['createSocket'](_0x344d2a){const _0x1a43d2=_0x119233;return this[_0x1a43d2(0x210)](_0x344d2a);}};P=D([E(0x0,_0x57e288(_0x10472f)),E(0x1,_0x57e288(_0x19f3fe)),E(0x2,_0x5f5dc7),E(0x3,_0x6252b9),E(0x4,_0x2d5765)],P);function _0x14dc(){const _0x40dbac=['headers','_injector','_config','defineProperty','prototype','_httpService','decorate','next','pluginName','2576214bZwaPL','version','object','_doCreateSocket','3190rhqIZp','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','519700WYYSdT','dispose','1.0.4','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','iterator','getConfig','constructor','collaboration-client-node.config','@univerjs-pro/collaboration-client-node','985476YGuQWw','customHeaders','packageName','onStarting','4293EFDofn','pipe','5hONDyS','set','error','call','message','_configService','length','8yOSvuO','151855rXIcnB','function','3ZfZXWS','7494080sqqynD','setConfig','1841854aOnKjU','_registerDependencies','symbol','close','removeEventListener','getOwnPropertyDescriptor','addEventListener','string','default','open','registerHTTPInterceptor','add'];_0x14dc=function(){return _0x40dbac;};return _0x14dc();}export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};
1
+ const _0x407e30=_0x4e94;(function(_0x92a4d5,_0x44b3e1){const _0x4b8a32=_0x4e94,_0x3bd108=_0x92a4d5();while(!![]){try{const _0x448f06=-parseInt(_0x4b8a32(0x127))/0x1+-parseInt(_0x4b8a32(0x105))/0x2+-parseInt(_0x4b8a32(0x120))/0x3+parseInt(_0x4b8a32(0x121))/0x4+parseInt(_0x4b8a32(0x106))/0x5+-parseInt(_0x4b8a32(0x10c))/0x6+parseInt(_0x4b8a32(0x10d))/0x7;if(_0x448f06===_0x44b3e1)break;else _0x3bd108['push'](_0x3bd108['shift']());}catch(_0x2df963){_0x3bd108['push'](_0x3bd108['shift']());}}}(_0x5c63,0x6ea7c));import{ISnapshotServerService as _0x568942,UniverCollaborationPlugin as _0x5c6729}from'@univerjs-pro/collaboration';import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x3e723d,CollaborationSocketService as _0x16d96d,UniverCollaborationClientPlugin as _0x363762}from'@univerjs-pro/collaboration-client';import{UniverLicensePlugin as _0x2c7985}from'@univerjs-pro/license';import{DependentOn as _0x2ba93a,Disposable as _0x1d9623,DisposableCollection as _0x1faf6c,IConfigService as _0x58fc6e,ILogService as _0x3bb1e6,Inject as _0x3d41d3,Injector as _0x451f6e,Plugin as _0x4bd04c,merge as _0x3707cf,registerDependencies as _0x1ccb89,toDisposable as _0x18c957}from'@univerjs/core';import{HTTPService as _0x557549,ISocketService as _0x2e5c1b,UniverNetworkPlugin as _0x4dc214}from'@univerjs/network';import{Observable as _0xe69dde,share as _0x36c6c6}from'rxjs';import{WebSocket as _0x5d990d}from'ws';var C=_0x407e30(0x11a),w=_0x407e30(0x116);const T={};function E(_0x55d866,_0x522c9e){return function(_0x286b3a,_0x18cdfa){_0x522c9e(_0x286b3a,_0x18cdfa,_0x55d866);};}function D(_0x34f224,_0x1471b2,_0x22b318,_0x34caf1){const _0x41356e=_0x407e30;var _0x548918=arguments['length'],_0x3f792d=_0x548918<0x3?_0x1471b2:_0x34caf1===null?_0x34caf1=Object['getOwnPropertyDescriptor'](_0x1471b2,_0x22b318):_0x34caf1,_0xf42b7c;if(typeof Reflect==_0x41356e(0x129)&&typeof Reflect[_0x41356e(0x12d)]=='function')_0x3f792d=Reflect[_0x41356e(0x12d)](_0x34f224,_0x1471b2,_0x22b318,_0x34caf1);else{for(var _0x3bb752=_0x34f224[_0x41356e(0x104)]-0x1;_0x3bb752>=0x0;_0x3bb752--)(_0xf42b7c=_0x34f224[_0x3bb752])&&(_0x3f792d=(_0x548918<0x3?_0xf42b7c(_0x3f792d):_0x548918>0x3?_0xf42b7c(_0x1471b2,_0x22b318,_0x3f792d):_0xf42b7c(_0x1471b2,_0x22b318))||_0x3f792d);}return _0x548918>0x3&&_0x3f792d&&Object[_0x41356e(0x10a)](_0x1471b2,_0x22b318,_0x3f792d),_0x3f792d;}let O=class extends _0x1d9623{constructor(_0x56682b){const _0x48cd5f=_0x407e30;super(),this[_0x48cd5f(0x108)]=_0x56682b;}[_0x407e30(0x12b)](_0x17a9c6){const _0x721f0b=_0x407e30;var _0x164c45;let _0x11d8cc=((_0x164c45=this[_0x721f0b(0x108)]['getConfig'](_0x3e723d))==null?void 0x0:_0x164c45[_0x721f0b(0x12e)])||{};try{let _0x27d77a=new _0x5d990d(_0x17a9c6,{'headers':{..._0x11d8cc}}),_0x1e0bf0=new _0x1faf6c();return{'URL':_0x17a9c6,'close':(_0x29d8c2,_0x5e2fd8)=>{const _0xea25b9=_0x721f0b;_0x27d77a[_0xea25b9(0x119)](_0x29d8c2,_0x5e2fd8),_0x1e0bf0[_0xea25b9(0x12a)]();},'send':_0x3cacb8=>{const _0x3cfbae=_0x721f0b;_0x27d77a[_0x3cfbae(0x130)](_0x3cacb8);},'open$':new _0xe69dde(_0x5cb01f=>{const _0x444488=_0x721f0b;let _0x262cb5=_0x252fff=>_0x5cb01f[_0x444488(0x128)](_0x252fff);_0x27d77a[_0x444488(0x11e)]('open',_0x262cb5),_0x1e0bf0[_0x444488(0x114)](_0x18c957(()=>_0x27d77a[_0x444488(0x10e)](_0x444488(0x125),_0x262cb5)));})[_0x721f0b(0x109)](_0x36c6c6()),'close$':new _0xe69dde(_0x417082=>{const _0x24bb55=_0x721f0b;let _0x541764=_0x181d33=>_0x417082['next'](_0x181d33);_0x27d77a[_0x24bb55(0x11e)](_0x24bb55(0x119),_0x541764),_0x1e0bf0[_0x24bb55(0x114)](_0x18c957(()=>_0x27d77a['removeEventListener'](_0x24bb55(0x119),_0x541764)));})[_0x721f0b(0x109)](_0x36c6c6()),'error$':new _0xe69dde(_0x424fba=>{const _0x1c43d4=_0x721f0b;let _0x3449c4=_0x581ec2=>_0x424fba['next'](_0x581ec2);_0x27d77a[_0x1c43d4(0x11e)](_0x1c43d4(0x115),_0x3449c4),_0x1e0bf0[_0x1c43d4(0x114)](_0x18c957(()=>_0x27d77a['removeEventListener'](_0x1c43d4(0x115),_0x3449c4)));})[_0x721f0b(0x109)](_0x36c6c6()),'message$':new _0xe69dde(_0x588ff6=>{const _0x82e95f=_0x721f0b;let _0x28a750=_0xa558bb=>_0x588ff6[_0x82e95f(0x128)](_0xa558bb);_0x27d77a[_0x82e95f(0x11e)](_0x82e95f(0x111),_0x28a750),_0x1e0bf0['add'](_0x18c957(()=>_0x27d77a[_0x82e95f(0x10e)]('message',_0x28a750)));})['pipe'](_0x36c6c6())};}catch(_0x921670){return console[_0x721f0b(0x115)](_0x921670),null;}}};O=D([E(0x0,_0x58fc6e)],O);function k(_0x296ca1){'@babel/helpers - typeof';const _0x243b8f=_0x407e30;return k=typeof Symbol==_0x243b8f(0x10f)&&typeof Symbol['iterator']==_0x243b8f(0x12f)?function(_0x1234c7){return typeof _0x1234c7;}:function(_0x487b52){const _0x3069ca=_0x243b8f;return _0x487b52&&typeof Symbol==_0x3069ca(0x10f)&&_0x487b52['constructor']===Symbol&&_0x487b52!==Symbol[_0x3069ca(0x11f)]?_0x3069ca(0x12f):typeof _0x487b52;},k(_0x296ca1);}function A(_0x14cbb3,_0x3666e3){const _0x126529=_0x407e30;if(k(_0x14cbb3)!='object'||!_0x14cbb3)return _0x14cbb3;var _0x7d1d38=_0x14cbb3[Symbol[_0x126529(0x11d)]];if(_0x7d1d38!==void 0x0){var _0x5470cc=_0x7d1d38[_0x126529(0x12c)](_0x14cbb3,_0x3666e3||'default');if(k(_0x5470cc)!=_0x126529(0x129))return _0x5470cc;throw TypeError(_0x126529(0x123));}return(_0x3666e3===_0x126529(0x110)?String:Number)(_0x14cbb3);}function j(_0x325f49){const _0x18589e=_0x407e30;var _0x41c523=A(_0x325f49,_0x18589e(0x110));return k(_0x41c523)==_0x18589e(0x12f)?_0x41c523:_0x41c523+'';}function M(_0x16492e,_0x5d2bb3,_0x549f34){const _0x9fe1ae=_0x407e30;return(_0x5d2bb3=j(_0x5d2bb3))in _0x16492e?Object[_0x9fe1ae(0x10a)](_0x16492e,_0x5d2bb3,{'value':_0x549f34,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x16492e[_0x5d2bb3]=_0x549f34,_0x16492e;}let N=class extends _0x4bd04c{constructor(_0x5e875c=T,_0x53dd6c,_0x3102bf){const _0x3c50b8=_0x407e30;super(),this[_0x3c50b8(0x10b)]=_0x5e875c,this[_0x3c50b8(0x108)]=_0x53dd6c,this[_0x3c50b8(0x112)]=_0x3102bf;let {..._0x59ea80}=_0x3707cf({},T,this[_0x3c50b8(0x10b)]);this[_0x3c50b8(0x108)][_0x3c50b8(0x122)](_0x3c50b8(0x11c),_0x59ea80);}['onStarting'](){this['_registerDependencies']();}['_registerDependencies'](){const _0x5d15f6=_0x407e30;_0x1ccb89(this[_0x5d15f6(0x112)],[[_0x2e5c1b,{'useClass':O}]]);}};M(N,_0x407e30(0x107),_0x407e30(0x117)),M(N,'packageName',C),M(N,'version',w),N=D([_0x2ba93a(_0x2c7985,_0x4dc214,_0x5c6729,_0x363762),E(0x1,_0x58fc6e),E(0x2,_0x3d41d3(_0x451f6e))],N);let P=class extends _0x16d96d{constructor(_0x543100,_0x53eb11,_0x543761,_0x3f1498,_0x300c2d){const _0x4769bd=_0x407e30;super(_0x543100,_0x53eb11,_0x543761,_0x3f1498,_0x300c2d);let _0x7c08be=this['_configService'][_0x4769bd(0x126)](_0x3e723d);this[_0x4769bd(0x124)][_0x4769bd(0x103)]({'interceptor':(_0x7a7f9e,_0x52d40a)=>{const _0x22e237=_0x4769bd;let _0x532099=_0x7a7f9e[_0x22e237(0x11b)];if(_0x7c08be!=null&&_0x7c08be['customHeaders']){for(let _0x263822 in _0x7c08be[_0x22e237(0x12e)])_0x532099[_0x22e237(0x118)](_0x263822,_0x7c08be[_0x22e237(0x12e)][_0x263822]);}return _0x52d40a(_0x7a7f9e);}});}async[_0x407e30(0x12b)](_0x1f391e){const _0x5254a2=_0x407e30;return this[_0x5254a2(0x113)](_0x1f391e);}};P=D([E(0x0,_0x3d41d3(_0x451f6e)),E(0x1,_0x3d41d3(_0x557549)),E(0x2,_0x58fc6e),E(0x3,_0x3bb1e6),E(0x4,_0x568942)],P);export{P as NodeCollaborationSocketService,N as UniverCollaborationClientNodePlugin};function _0x4e94(_0x4986c6,_0xfeef17){_0x4986c6=_0x4986c6-0x103;const _0x5c636a=_0x5c63();let _0x4e94ce=_0x5c636a[_0x4986c6];return _0x4e94ce;}function _0x5c63(){const _0x6df7da=['add','error','1.1.0','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','set','close','@univerjs-pro/collaboration-client-node','headers','collaboration-client-node.config','toPrimitive','addEventListener','prototype','1356429cKZJQt','2141716LnnvQc','setConfig','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','_httpService','open','getConfig','901802jafPsY','next','object','dispose','createSocket','call','decorate','customHeaders','symbol','send','registerHTTPInterceptor','length','448990apCesu','424360ZAFsqJ','pluginName','_configService','pipe','defineProperty','_config','2795226tbibaS','13140778uohTpw','removeEventListener','function','string','message','_injector','_doCreateSocket'];_0x5c63=function(){return _0x6df7da;};return _0x5c63();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x1d81(_0xc56e90,_0x1d0ba5){_0xc56e90=_0xc56e90-0xde;const _0x1ec5d4=_0x1ec5();let _0x1d8169=_0x1ec5d4[_0xc56e90];return _0x1d8169;}function _0x1ec5(){const _0x5ed025=['merge','_injector','function','Inject','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','@univerjs/network','UniverCore','length','6608616fZkLhp','Observable','@univerjs-pro/collaboration','1205110vnAaPU','prototype','Injector','UniverProCollaboration','_registerDependencies','add','call','DisposableCollection','dispose','symbol','getConfig','share','toStringTag','amd','close','pipe','collaboration-client-node.config','addEventListener','rxjs','version','removeEventListener','UniverCollaborationClientNodePlugin','373935lMZcIl','7PEQGMi','_doCreateSocket','UniverProCollaborationClientNode','set','headers','Module','setConfig','UniverNetwork','getOwnPropertyDescriptor','16563GnjhzM','open','IConfigService','iterator','514646kHlgYb','defineProperty','send','UniverCollaborationPlugin','5335236uBOAMg','message','ILogService','@univerjs-pro/collaboration-client','error','object','exports','customHeaders','ISocketService','default','CollaborationSocketService','_configService','registerHTTPInterceptor','_httpService','@univerjs-pro/license','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','decorate','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','UniverLicensePlugin','1915276JPVNOq','next','DependentOn','UniverProLicense','createSocket','UniverCollaborationClientPlugin','WebSocket','UniverNetworkPlugin','toDisposable','_config','ISnapshotServerService','1.0.4','NodeCollaborationSocketService','@univerjs/core'];_0x1ec5=function(){return _0x5ed025;};return _0x1ec5();}(function(_0x42fd05,_0x37895e){const _0x307bd2=_0x1d81,_0x2d577d=_0x42fd05();while(!![]){try{const _0x2bf778=parseInt(_0x307bd2(0x12b))/0x1+parseInt(_0x307bd2(0x107))/0x2+-parseInt(_0x307bd2(0x127))/0x3+-parseInt(_0x307bd2(0xee))/0x4+-parseInt(_0x307bd2(0x11d))/0x5+-parseInt(_0x307bd2(0x12f))/0x6+-parseInt(_0x307bd2(0x11e))/0x7*(-parseInt(_0x307bd2(0x104))/0x8);if(_0x2bf778===_0x37895e)break;else _0x2d577d['push'](_0x2d577d['shift']());}catch(_0x2b11d7){_0x2d577d['push'](_0x2d577d['shift']());}}}(_0x1ec5,0x78d61),function(_0x5f146f,_0x13a737){const _0x2eceb4=_0x1d81;typeof exports==_0x2eceb4(0xe0)&&typeof module<'u'?_0x13a737(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs')):typeof define=='function'&&define[_0x2eceb4(0x114)]?define([_0x2eceb4(0xe1),_0x2eceb4(0x106),_0x2eceb4(0xde),_0x2eceb4(0xe9),_0x2eceb4(0xfb),_0x2eceb4(0x101),'rxjs'],_0x13a737):(_0x5f146f=typeof globalThis<'u'?globalThis:_0x5f146f||self,_0x13a737(_0x5f146f[_0x2eceb4(0x120)]={},_0x5f146f[_0x2eceb4(0x10a)],_0x5f146f['UniverProCollaborationClient'],_0x5f146f[_0x2eceb4(0xf1)],_0x5f146f[_0x2eceb4(0x102)],_0x5f146f[_0x2eceb4(0x125)],_0x5f146f[_0x2eceb4(0x119)]));}(this,function(_0x38e7d4,_0x4931f9,_0x45935d,_0x3da27e,_0x17dee1,_0x17d6b3,_0x3aa0ac){const _0x6996a5=_0x1d81;Object['defineProperty'](_0x38e7d4,Symbol[_0x6996a5(0x113)],{'value':_0x6996a5(0x123)});var _0x29ec88=(_0x49c174,_0x56f812)=>()=>(_0x56f812||(_0x49c174((_0x56f812={'exports':{}})[_0x6996a5(0xe1)],_0x56f812),_0x49c174=null),_0x56f812[_0x6996a5(0xe1)]),_0x58ec36='@univerjs-pro/collaboration-client-node',_0xa9026a=_0x6996a5(0xf9);let _0x34f4e5={};var _0x2e3937=_0x29ec88((_0x177cd9,_0x295e98)=>{const _0x4e5a50=_0x6996a5;_0x295e98[_0x4e5a50(0xe1)]=function(){throw Error('ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object');};})();function _0x20bdbe(_0x537685,_0xee779f){return function(_0x1baf8a,_0x4863e0){_0xee779f(_0x1baf8a,_0x4863e0,_0x537685);};}function _0x3710cb(_0x1f2b6b,_0x935e67,_0x1b2aff,_0x889520){const _0x54030b=_0x6996a5;var _0x584c90=arguments[_0x54030b(0x103)],_0x7b669c=_0x584c90<0x3?_0x935e67:_0x889520===null?_0x889520=Object[_0x54030b(0x126)](_0x935e67,_0x1b2aff):_0x889520,_0x30f3f2;if(typeof Reflect==_0x54030b(0xe0)&&typeof Reflect['decorate']==_0x54030b(0xfe))_0x7b669c=Reflect[_0x54030b(0xeb)](_0x1f2b6b,_0x935e67,_0x1b2aff,_0x889520);else{for(var _0x487df6=_0x1f2b6b[_0x54030b(0x103)]-0x1;_0x487df6>=0x0;_0x487df6--)(_0x30f3f2=_0x1f2b6b[_0x487df6])&&(_0x7b669c=(_0x584c90<0x3?_0x30f3f2(_0x7b669c):_0x584c90>0x3?_0x30f3f2(_0x935e67,_0x1b2aff,_0x7b669c):_0x30f3f2(_0x935e67,_0x1b2aff))||_0x7b669c);}return _0x584c90>0x3&&_0x7b669c&&Object['defineProperty'](_0x935e67,_0x1b2aff,_0x7b669c),_0x7b669c;}let _0x9ca3d3=class extends _0x17dee1['Disposable']{constructor(_0xd6624e){super(),this['_configService']=_0xd6624e;}[_0x6996a5(0xf2)](_0x3d3eba){const _0x1be147=_0x6996a5;var _0x7f567f;let _0x3d818d=((_0x7f567f=this['_configService']['getConfig'](_0x45935d[_0x1be147(0xea)]))==null?void 0x0:_0x7f567f[_0x1be147(0xe2)])||{};try{let _0x2bfb54=new _0x2e3937[(_0x1be147(0xf4))](_0x3d3eba,{'headers':{..._0x3d818d}}),_0x248767=new _0x17dee1[(_0x1be147(0x10e))]();return{'URL':_0x3d3eba,'close':(_0x23b5f7,_0x926d18)=>{const _0x461f81=_0x1be147;_0x2bfb54[_0x461f81(0x115)](_0x23b5f7,_0x926d18),_0x248767[_0x461f81(0x10f)]();},'send':_0x2dd4f6=>{const _0xe4b12d=_0x1be147;_0x2bfb54[_0xe4b12d(0x12d)](_0x2dd4f6);},'open$':new _0x3aa0ac[(_0x1be147(0x105))](_0x2fc150=>{const _0x1a4b8d=_0x1be147;let _0x458cba=_0x4fb07e=>_0x2fc150[_0x1a4b8d(0xef)](_0x4fb07e);_0x2bfb54[_0x1a4b8d(0x118)](_0x1a4b8d(0x128),_0x458cba),_0x248767[_0x1a4b8d(0x10c)]((0x0,_0x17dee1[_0x1a4b8d(0xf6)])(()=>_0x2bfb54[_0x1a4b8d(0x11b)]('open',_0x458cba)));})[_0x1be147(0x116)]((0x0,_0x3aa0ac['share'])()),'close$':new _0x3aa0ac[(_0x1be147(0x105))](_0x4a369c=>{const _0x4488bd=_0x1be147;let _0x414ac4=_0x44f109=>_0x4a369c[_0x4488bd(0xef)](_0x44f109);_0x2bfb54[_0x4488bd(0x118)](_0x4488bd(0x115),_0x414ac4),_0x248767[_0x4488bd(0x10c)]((0x0,_0x17dee1[_0x4488bd(0xf6)])(()=>_0x2bfb54[_0x4488bd(0x11b)](_0x4488bd(0x115),_0x414ac4)));})[_0x1be147(0x116)]((0x0,_0x3aa0ac[_0x1be147(0x112)])()),'error$':new _0x3aa0ac['Observable'](_0x504881=>{const _0x3dc335=_0x1be147;let _0x40cd4e=_0x19cd75=>_0x504881['next'](_0x19cd75);_0x2bfb54[_0x3dc335(0x118)](_0x3dc335(0xdf),_0x40cd4e),_0x248767[_0x3dc335(0x10c)]((0x0,_0x17dee1[_0x3dc335(0xf6)])(()=>_0x2bfb54[_0x3dc335(0x11b)]('error',_0x40cd4e)));})[_0x1be147(0x116)]((0x0,_0x3aa0ac[_0x1be147(0x112)])()),'message$':new _0x3aa0ac[(_0x1be147(0x105))](_0x5bc4d4=>{const _0x2a35d2=_0x1be147;let _0x5d8e33=_0x1e5482=>_0x5bc4d4[_0x2a35d2(0xef)](_0x1e5482);_0x2bfb54[_0x2a35d2(0x118)](_0x2a35d2(0x130),_0x5d8e33),_0x248767[_0x2a35d2(0x10c)]((0x0,_0x17dee1[_0x2a35d2(0xf6)])(()=>_0x2bfb54['removeEventListener'](_0x2a35d2(0x130),_0x5d8e33)));})[_0x1be147(0x116)]((0x0,_0x3aa0ac[_0x1be147(0x112)])())};}catch(_0x3afccc){return console[_0x1be147(0xdf)](_0x3afccc),null;}}};_0x9ca3d3=_0x3710cb([_0x20bdbe(0x0,_0x17dee1[_0x6996a5(0x129)])],_0x9ca3d3);function _0x161986(_0x3e6a7d){'@babel/helpers - typeof';const _0x5788bc=_0x6996a5;return _0x161986=typeof Symbol==_0x5788bc(0xfe)&&typeof Symbol[_0x5788bc(0x12a)]==_0x5788bc(0x110)?function(_0x1d08d3){return typeof _0x1d08d3;}:function(_0x460f3f){const _0x2b39af=_0x5788bc;return _0x460f3f&&typeof Symbol==_0x2b39af(0xfe)&&_0x460f3f['constructor']===Symbol&&_0x460f3f!==Symbol[_0x2b39af(0x108)]?'symbol':typeof _0x460f3f;},_0x161986(_0x3e6a7d);}function _0x52d293(_0x4f7cf5,_0x4ba1e8){const _0x1f7083=_0x6996a5;if(_0x161986(_0x4f7cf5)!=_0x1f7083(0xe0)||!_0x4f7cf5)return _0x4f7cf5;var _0x501710=_0x4f7cf5[Symbol['toPrimitive']];if(_0x501710!==void 0x0){var _0x190a1b=_0x501710[_0x1f7083(0x10d)](_0x4f7cf5,_0x4ba1e8||_0x1f7083(0xe4));if(_0x161986(_0x190a1b)!='object')return _0x190a1b;throw TypeError(_0x1f7083(0xec));}return(_0x4ba1e8==='string'?String:Number)(_0x4f7cf5);}function _0x1921a1(_0x54aeea){const _0x52105a=_0x6996a5;var _0x448ac5=_0x52d293(_0x54aeea,'string');return _0x161986(_0x448ac5)==_0x52105a(0x110)?_0x448ac5:_0x448ac5+'';}function _0x1f53f4(_0x4d3fa4,_0x70ef45,_0x3f6101){const _0x185408=_0x6996a5;return(_0x70ef45=_0x1921a1(_0x70ef45))in _0x4d3fa4?Object[_0x185408(0x12c)](_0x4d3fa4,_0x70ef45,{'value':_0x3f6101,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4d3fa4[_0x70ef45]=_0x3f6101,_0x4d3fa4;}let _0x53351a=class extends _0x17dee1['Plugin']{constructor(_0x30775f=_0x34f4e5,_0x51f78f,_0x34708c){const _0x113cf3=_0x6996a5;super(),this['_config']=_0x30775f,this[_0x113cf3(0xe6)]=_0x51f78f,this[_0x113cf3(0xfd)]=_0x34708c;let {..._0x2c861b}=(0x0,_0x17dee1[_0x113cf3(0xfc)])({},_0x34f4e5,this[_0x113cf3(0xf7)]);this[_0x113cf3(0xe6)][_0x113cf3(0x124)](_0x113cf3(0x117),_0x2c861b);}['onStarting'](){const _0xd4bc14=_0x6996a5;this[_0xd4bc14(0x10b)]();}[_0x6996a5(0x10b)](){const _0x518a53=_0x6996a5;(0x0,_0x17dee1['registerDependencies'])(this[_0x518a53(0xfd)],[[_0x17d6b3[_0x518a53(0xe3)],{'useClass':_0x9ca3d3}]]);}};_0x1f53f4(_0x53351a,'pluginName',_0x6996a5(0x100)),_0x1f53f4(_0x53351a,'packageName',_0x58ec36),_0x1f53f4(_0x53351a,_0x6996a5(0x11a),_0xa9026a),_0x53351a=_0x3710cb([(0x0,_0x17dee1[_0x6996a5(0xf0)])(_0x3da27e[_0x6996a5(0xed)],_0x17d6b3[_0x6996a5(0xf5)],_0x4931f9[_0x6996a5(0x12e)],_0x45935d[_0x6996a5(0xf3)]),_0x20bdbe(0x1,_0x17dee1[_0x6996a5(0x129)]),_0x20bdbe(0x2,(0x0,_0x17dee1[_0x6996a5(0xff)])(_0x17dee1[_0x6996a5(0x109)]))],_0x53351a);let _0x4d8d89=class extends _0x45935d[_0x6996a5(0xe5)]{constructor(_0x1fdeba,_0x4466ce,_0x5f9cf5,_0x3283b2,_0x19a382){const _0x7fc043=_0x6996a5;super(_0x1fdeba,_0x4466ce,_0x5f9cf5,_0x3283b2,_0x19a382);let _0x3c14b6=this[_0x7fc043(0xe6)][_0x7fc043(0x111)](_0x45935d[_0x7fc043(0xea)]);this[_0x7fc043(0xe8)][_0x7fc043(0xe7)]({'interceptor':(_0x23e19d,_0x5a75af)=>{const _0x59e019=_0x7fc043;let _0x137579=_0x23e19d[_0x59e019(0x122)];if(_0x3c14b6!=null&&_0x3c14b6['customHeaders']){for(let _0x48c25d in _0x3c14b6[_0x59e019(0xe2)])_0x137579[_0x59e019(0x121)](_0x48c25d,_0x3c14b6[_0x59e019(0xe2)][_0x48c25d]);}return _0x5a75af(_0x23e19d);}});}async[_0x6996a5(0xf2)](_0x55a11f){const _0x7dd4ef=_0x6996a5;return this[_0x7dd4ef(0x11f)](_0x55a11f);}};_0x4d8d89=_0x3710cb([_0x20bdbe(0x0,(0x0,_0x17dee1[_0x6996a5(0xff)])(_0x17dee1[_0x6996a5(0x109)])),_0x20bdbe(0x1,(0x0,_0x17dee1[_0x6996a5(0xff)])(_0x17d6b3['HTTPService'])),_0x20bdbe(0x2,_0x17dee1[_0x6996a5(0x129)]),_0x20bdbe(0x3,_0x17dee1[_0x6996a5(0x131)]),_0x20bdbe(0x4,_0x4931f9[_0x6996a5(0xf8)])],_0x4d8d89),Object['defineProperty'](_0x38e7d4,_0x6996a5(0xfa),{'enumerable':!0x0,'get':function(){return _0x4d8d89;}}),Object[_0x6996a5(0x12c)](_0x38e7d4,_0x6996a5(0x11c),{'enumerable':!0x0,'get':function(){return _0x53351a;}});}));
1
+ (function(_0x2c87c1,_0x391cf4){const _0x26c192=_0x377c,_0x41994b=_0x2c87c1();while(!![]){try{const _0xd8ab60=-parseInt(_0x26c192(0x1bc))/0x1+parseInt(_0x26c192(0x1ba))/0x2+parseInt(_0x26c192(0x189))/0x3*(parseInt(_0x26c192(0x192))/0x4)+parseInt(_0x26c192(0x187))/0x5+-parseInt(_0x26c192(0x185))/0x6*(parseInt(_0x26c192(0x1aa))/0x7)+-parseInt(_0x26c192(0x1be))/0x8+parseInt(_0x26c192(0x1b9))/0x9;if(_0xd8ab60===_0x391cf4)break;else _0x41994b['push'](_0x41994b['shift']());}catch(_0x26412a){_0x41994b['push'](_0x41994b['shift']());}}}(_0x2856,0xc0686),function(_0x5a10f6,_0x52ca0c){const _0x8fc0e9=_0x377c;typeof exports=='object'&&typeof module<'u'?_0x52ca0c(exports,require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs-pro/license'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs')):typeof define==_0x8fc0e9(0x1a3)&&define[_0x8fc0e9(0x166)]?define([_0x8fc0e9(0x167),_0x8fc0e9(0x180),'@univerjs-pro/collaboration-client',_0x8fc0e9(0x1a9),_0x8fc0e9(0x193),'@univerjs/network',_0x8fc0e9(0x175)],_0x52ca0c):(_0x5a10f6=typeof globalThis<'u'?globalThis:_0x5a10f6||self,_0x52ca0c(_0x5a10f6[_0x8fc0e9(0x174)]={},_0x5a10f6[_0x8fc0e9(0x169)],_0x5a10f6['UniverProCollaborationClient'],_0x5a10f6[_0x8fc0e9(0x170)],_0x5a10f6[_0x8fc0e9(0x18b)],_0x5a10f6[_0x8fc0e9(0x17a)],_0x5a10f6['rxjs']));}(this,function(_0x26ee1d,_0x49301b,_0x176623,_0x59c000,_0x1fd9ac,_0x5690d2,_0x21604a){const _0x2a0d6c=_0x377c;Object[_0x2a0d6c(0x16d)](_0x26ee1d,Symbol[_0x2a0d6c(0x19a)],{'value':_0x2a0d6c(0x183)});var _0xa1ee8d=(_0x1ebb55,_0x242996)=>()=>(_0x242996||(_0x1ebb55((_0x242996={'exports':{}})['exports'],_0x242996),_0x1ebb55=null),_0x242996[_0x2a0d6c(0x167)]),_0x40e66d='@univerjs-pro/collaboration-client-node',_0x29ae61=_0x2a0d6c(0x191);let _0x34a63b={};var _0xb1e6ce=_0xa1ee8d((_0x3074f7,_0x13de83)=>{_0x13de83['exports']=function(){const _0x180d40=_0x377c;throw Error(_0x180d40(0x1bd));};})();function _0x296258(_0x45e512,_0x47a570){return function(_0x4a33e9,_0x1409d0){_0x47a570(_0x4a33e9,_0x1409d0,_0x45e512);};}function _0x4b86e7(_0x45957,_0x21153b,_0x2c0fae,_0xd6261e){const _0x1fa92f=_0x2a0d6c;var _0x46ff75=arguments[_0x1fa92f(0x1b8)],_0x5b801e=_0x46ff75<0x3?_0x21153b:_0xd6261e===null?_0xd6261e=Object[_0x1fa92f(0x17d)](_0x21153b,_0x2c0fae):_0xd6261e,_0xe86f19;if(typeof Reflect==_0x1fa92f(0x1bb)&&typeof Reflect[_0x1fa92f(0x1a8)]==_0x1fa92f(0x1a3))_0x5b801e=Reflect[_0x1fa92f(0x1a8)](_0x45957,_0x21153b,_0x2c0fae,_0xd6261e);else{for(var _0x28babe=_0x45957[_0x1fa92f(0x1b8)]-0x1;_0x28babe>=0x0;_0x28babe--)(_0xe86f19=_0x45957[_0x28babe])&&(_0x5b801e=(_0x46ff75<0x3?_0xe86f19(_0x5b801e):_0x46ff75>0x3?_0xe86f19(_0x21153b,_0x2c0fae,_0x5b801e):_0xe86f19(_0x21153b,_0x2c0fae))||_0x5b801e);}return _0x46ff75>0x3&&_0x5b801e&&Object['defineProperty'](_0x21153b,_0x2c0fae,_0x5b801e),_0x5b801e;}let _0x3e3886=class extends _0x1fd9ac['Disposable']{constructor(_0x5ba7ce){const _0x5a0172=_0x2a0d6c;super(),this[_0x5a0172(0x179)]=_0x5ba7ce;}[_0x2a0d6c(0x198)](_0x32aac7){const _0x3b0560=_0x2a0d6c;var _0x5d204e;let _0x4331c8=((_0x5d204e=this[_0x3b0560(0x179)][_0x3b0560(0x177)](_0x176623[_0x3b0560(0x190)]))==null?void 0x0:_0x5d204e[_0x3b0560(0x194)])||{};try{let _0x5b6b96=new _0xb1e6ce[(_0x3b0560(0x16a))](_0x32aac7,{'headers':{..._0x4331c8}}),_0x2bf50d=new _0x1fd9ac[(_0x3b0560(0x19f))]();return{'URL':_0x32aac7,'close':(_0x4683ca,_0x27f101)=>{const _0x57f85d=_0x3b0560;_0x5b6b96[_0x57f85d(0x1b1)](_0x4683ca,_0x27f101),_0x2bf50d[_0x57f85d(0x1a0)]();},'send':_0x462dca=>{const _0x481ce5=_0x3b0560;_0x5b6b96[_0x481ce5(0x199)](_0x462dca);},'open$':new _0x21604a[(_0x3b0560(0x1a7))](_0x2f1f45=>{const _0x3bb2cf=_0x3b0560;let _0x5c6b28=_0x6cf204=>_0x2f1f45['next'](_0x6cf204);_0x5b6b96['addEventListener'](_0x3bb2cf(0x1ae),_0x5c6b28),_0x2bf50d[_0x3bb2cf(0x1a4)]((0x0,_0x1fd9ac[_0x3bb2cf(0x1b6)])(()=>_0x5b6b96[_0x3bb2cf(0x176)](_0x3bb2cf(0x1ae),_0x5c6b28)));})[_0x3b0560(0x16e)]((0x0,_0x21604a[_0x3b0560(0x168)])()),'close$':new _0x21604a[(_0x3b0560(0x1a7))](_0x439942=>{const _0x461cbd=_0x3b0560;let _0x3b0382=_0x2c78d9=>_0x439942[_0x461cbd(0x195)](_0x2c78d9);_0x5b6b96['addEventListener'](_0x461cbd(0x1b1),_0x3b0382),_0x2bf50d[_0x461cbd(0x1a4)]((0x0,_0x1fd9ac[_0x461cbd(0x1b6)])(()=>_0x5b6b96['removeEventListener'](_0x461cbd(0x1b1),_0x3b0382)));})['pipe']((0x0,_0x21604a[_0x3b0560(0x168)])()),'error$':new _0x21604a[(_0x3b0560(0x1a7))](_0x43de8f=>{const _0x1d5210=_0x3b0560;let _0x2850c7=_0x2a8f04=>_0x43de8f[_0x1d5210(0x195)](_0x2a8f04);_0x5b6b96[_0x1d5210(0x196)](_0x1d5210(0x19d),_0x2850c7),_0x2bf50d[_0x1d5210(0x1a4)]((0x0,_0x1fd9ac[_0x1d5210(0x1b6)])(()=>_0x5b6b96[_0x1d5210(0x176)](_0x1d5210(0x19d),_0x2850c7)));})[_0x3b0560(0x16e)]((0x0,_0x21604a[_0x3b0560(0x168)])()),'message$':new _0x21604a[(_0x3b0560(0x1a7))](_0x2bb25f=>{const _0x54a17d=_0x3b0560;let _0x474966=_0x574551=>_0x2bb25f[_0x54a17d(0x195)](_0x574551);_0x5b6b96['addEventListener'](_0x54a17d(0x1b5),_0x474966),_0x2bf50d[_0x54a17d(0x1a4)]((0x0,_0x1fd9ac['toDisposable'])(()=>_0x5b6b96[_0x54a17d(0x176)]('message',_0x474966)));})[_0x3b0560(0x16e)]((0x0,_0x21604a[_0x3b0560(0x168)])())};}catch(_0x7b4851){return console['error'](_0x7b4851),null;}}};_0x3e3886=_0x4b86e7([_0x296258(0x0,_0x1fd9ac['IConfigService'])],_0x3e3886);function _0x587bdc(_0x56bfc9){'@babel/helpers - typeof';const _0x113ec7=_0x2a0d6c;return _0x587bdc=typeof Symbol==_0x113ec7(0x1a3)&&typeof Symbol['iterator']==_0x113ec7(0x1b4)?function(_0x3354b0){return typeof _0x3354b0;}:function(_0x3f6be5){const _0x99a676=_0x113ec7;return _0x3f6be5&&typeof Symbol==_0x99a676(0x1a3)&&_0x3f6be5[_0x99a676(0x178)]===Symbol&&_0x3f6be5!==Symbol[_0x99a676(0x1af)]?'symbol':typeof _0x3f6be5;},_0x587bdc(_0x56bfc9);}function _0x54f767(_0x117c04,_0x9d2c42){const _0x4d54bc=_0x2a0d6c;if(_0x587bdc(_0x117c04)!=_0x4d54bc(0x1bb)||!_0x117c04)return _0x117c04;var _0x4746b0=_0x117c04[Symbol[_0x4d54bc(0x181)]];if(_0x4746b0!==void 0x0){var _0x44d717=_0x4746b0[_0x4d54bc(0x1b0)](_0x117c04,_0x9d2c42||_0x4d54bc(0x173));if(_0x587bdc(_0x44d717)!=_0x4d54bc(0x1bb))return _0x44d717;throw TypeError(_0x4d54bc(0x1c0));}return(_0x9d2c42===_0x4d54bc(0x18e)?String:Number)(_0x117c04);}function _0x14a553(_0x31442e){const _0x250724=_0x2a0d6c;var _0xc16aa8=_0x54f767(_0x31442e,_0x250724(0x18e));return _0x587bdc(_0xc16aa8)==_0x250724(0x1b4)?_0xc16aa8:_0xc16aa8+'';}function _0x2d6375(_0x438d94,_0x4b98e4,_0x38a309){const _0x59e087=_0x2a0d6c;return(_0x4b98e4=_0x14a553(_0x4b98e4))in _0x438d94?Object[_0x59e087(0x16d)](_0x438d94,_0x4b98e4,{'value':_0x38a309,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x438d94[_0x4b98e4]=_0x38a309,_0x438d94;}let _0x427bc7=class extends _0x1fd9ac[_0x2a0d6c(0x17f)]{constructor(_0x2d14b5=_0x34a63b,_0x113272,_0x405bba){const _0x4c005d=_0x2a0d6c;super(),this[_0x4c005d(0x172)]=_0x2d14b5,this[_0x4c005d(0x179)]=_0x113272,this[_0x4c005d(0x1b2)]=_0x405bba;let {..._0x1624f7}=(0x0,_0x1fd9ac[_0x4c005d(0x1b3)])({},_0x34a63b,this['_config']);this['_configService'][_0x4c005d(0x17c)](_0x4c005d(0x1a1),_0x1624f7);}[_0x2a0d6c(0x16b)](){this['_registerDependencies']();}[_0x2a0d6c(0x16c)](){const _0x66213f=_0x2a0d6c;(0x0,_0x1fd9ac['registerDependencies'])(this[_0x66213f(0x1b2)],[[_0x5690d2[_0x66213f(0x171)],{'useClass':_0x3e3886}]]);}};_0x2d6375(_0x427bc7,_0x2a0d6c(0x19b),_0x2a0d6c(0x16f)),_0x2d6375(_0x427bc7,_0x2a0d6c(0x17e),_0x40e66d),_0x2d6375(_0x427bc7,_0x2a0d6c(0x18d),_0x29ae61),_0x427bc7=_0x4b86e7([(0x0,_0x1fd9ac[_0x2a0d6c(0x184)])(_0x59c000[_0x2a0d6c(0x1a2)],_0x5690d2[_0x2a0d6c(0x1b7)],_0x49301b[_0x2a0d6c(0x1ad)],_0x176623[_0x2a0d6c(0x1a5)]),_0x296258(0x1,_0x1fd9ac['IConfigService']),_0x296258(0x2,(0x0,_0x1fd9ac[_0x2a0d6c(0x18f)])(_0x1fd9ac[_0x2a0d6c(0x19c)]))],_0x427bc7);let _0x153227=class extends _0x176623[_0x2a0d6c(0x1bf)]{constructor(_0x3a6c1e,_0x2997b5,_0x36fce0,_0x37b86a,_0x362eb7){const _0x50d459=_0x2a0d6c;super(_0x3a6c1e,_0x2997b5,_0x36fce0,_0x37b86a,_0x362eb7);let _0x1af42d=this['_configService'][_0x50d459(0x177)](_0x176623['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this[_0x50d459(0x19e)][_0x50d459(0x1ab)]({'interceptor':(_0x1bd716,_0xae00fb)=>{const _0x406883=_0x50d459;let _0x45b491=_0x1bd716[_0x406883(0x17b)];if(_0x1af42d!=null&&_0x1af42d['customHeaders']){for(let _0x19de67 in _0x1af42d[_0x406883(0x194)])_0x45b491[_0x406883(0x182)](_0x19de67,_0x1af42d[_0x406883(0x194)][_0x19de67]);}return _0xae00fb(_0x1bd716);}});}async['createSocket'](_0x41f16e){const _0x112bd8=_0x2a0d6c;return this[_0x112bd8(0x18c)](_0x41f16e);}};_0x153227=_0x4b86e7([_0x296258(0x0,(0x0,_0x1fd9ac['Inject'])(_0x1fd9ac['Injector'])),_0x296258(0x1,(0x0,_0x1fd9ac['Inject'])(_0x5690d2[_0x2a0d6c(0x188)])),_0x296258(0x2,_0x1fd9ac[_0x2a0d6c(0x18a)]),_0x296258(0x3,_0x1fd9ac[_0x2a0d6c(0x1ac)]),_0x296258(0x4,_0x49301b[_0x2a0d6c(0x197)])],_0x153227),Object[_0x2a0d6c(0x16d)](_0x26ee1d,_0x2a0d6c(0x186),{'enumerable':!0x0,'get':function(){return _0x153227;}}),Object['defineProperty'](_0x26ee1d,_0x2a0d6c(0x1a6),{'enumerable':!0x0,'get':function(){return _0x427bc7;}});}));function _0x377c(_0x186b9f,_0x305069){_0x186b9f=_0x186b9f-0x166;const _0x2856ca=_0x2856();let _0x377cfe=_0x2856ca[_0x186b9f];return _0x377cfe;}function _0x2856(){const _0x51d57f=['call','close','_injector','merge','symbol','message','toDisposable','UniverNetworkPlugin','length','3654774VtKvhV','1282938oxclBT','object','270703TJvEYy','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','4568976IQeosA','CollaborationSocketService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','amd','exports','share','UniverProCollaboration','WebSocket','onStarting','_registerDependencies','defineProperty','pipe','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','UniverProLicense','ISocketService','_config','default','UniverProCollaborationClientNode','rxjs','removeEventListener','getConfig','constructor','_configService','UniverNetwork','headers','setConfig','getOwnPropertyDescriptor','packageName','Plugin','@univerjs-pro/collaboration','toPrimitive','set','Module','DependentOn','229752UrOhCW','NodeCollaborationSocketService','4228685vNGEwq','HTTPService','6081xbpWhb','IConfigService','UniverCore','_doCreateSocket','version','string','Inject','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','1.1.0','916BTmLLC','@univerjs/core','customHeaders','next','addEventListener','ISnapshotServerService','createSocket','send','toStringTag','pluginName','Injector','error','_httpService','DisposableCollection','dispose','collaboration-client-node.config','UniverLicensePlugin','function','add','UniverCollaborationClientPlugin','UniverCollaborationClientNodePlugin','Observable','decorate','@univerjs-pro/license','133taJpmS','registerHTTPInterceptor','ILogService','UniverCollaborationPlugin','open','prototype'];_0x2856=function(){return _0x51d57f;};return _0x2856();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "1.0.4",
3
+ "version": "1.1.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,19 +51,19 @@
51
51
  "rxjs": ">=7.0.0"
52
52
  },
53
53
  "dependencies": {
54
- "@univerjs-pro/collaboration": "1.0.4",
55
- "@univerjs-pro/collaboration-client": "1.0.4",
56
- "@univerjs-pro/license": "1.0.4",
57
- "@univerjs/core": "1.0.4",
58
- "@univerjs/network": "1.0.4",
54
+ "@univerjs-pro/collaboration": "1.1.0",
55
+ "@univerjs-pro/collaboration-client": "1.1.0",
56
+ "@univerjs-pro/license": "1.1.0",
57
+ "@univerjs/core": "1.1.0",
58
+ "@univerjs/network": "1.1.0",
59
59
  "ws": "8.21.0"
60
60
  },
61
61
  "devDependencies": {
62
62
  "@types/ws": "8.18.1",
63
- "@univerjs-infra/shared": "1.0.4",
63
+ "@univerjs-infra/shared": "1.1.0",
64
64
  "rxjs": "7.8.2",
65
65
  "typescript": "^6.0.3",
66
- "vitest": "^5.0.0"
66
+ "vitest": "^5.0.4"
67
67
  },
68
68
  "scripts": {
69
69
  "test": "vitest run",