@univerjs-pro/collaboration-client-node 1.0.0-alpha.5 → 1.0.0-alpha.7

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 _0x210a58=_0x5e4f;(function(_0x2cf506,_0x499bd2){const _0x20b424=_0x5e4f,_0x75a733=_0x2cf506();while(!![]){try{const _0x46ec84=-parseInt(_0x20b424(0x176))/0x1+parseInt(_0x20b424(0x171))/0x2*(parseInt(_0x20b424(0x151))/0x3)+-parseInt(_0x20b424(0x159))/0x4*(-parseInt(_0x20b424(0x15f))/0x5)+-parseInt(_0x20b424(0x156))/0x6*(parseInt(_0x20b424(0x154))/0x7)+-parseInt(_0x20b424(0x152))/0x8+parseInt(_0x20b424(0x174))/0x9+parseInt(_0x20b424(0x179))/0xa;if(_0x46ec84===_0x499bd2)break;else _0x75a733['push'](_0x75a733['shift']());}catch(_0x465feb){_0x75a733['push'](_0x75a733['shift']());}}}(_0x5a34,0x549e4),Object[_0x210a58(0x194)](exports,Symbol[_0x210a58(0x153)],{'value':'Module'}));function _0x5a34(){const _0x145901=['packageName','addEventListener','pipe','object','toDisposable','error','registerHTTPInterceptor','Injector','IConfigService','_doCreateSocket','@univerjs-pro/collaboration-client-node','createSocket','_configService','setConfig','WebSocket','NodeCollaborationSocketService','add','version','open','symbol','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','CollaborationSocketService','defineProperty','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','ISocketService','822393yhmPTj','2775760KFwbqO','toStringTag','311906evXyVK','_config','36vQYBvJ','ILogService','Disposable','20232ZprTHs','1.0.0-alpha.5','customHeaders','close','string','set','15UIihMj','_registerDependencies','registerDependencies','message','dispose','pluginName','prototype','call','length','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','onStarting','share','getOwnPropertyDescriptor','function','DisposableCollection','headers','Observable','default','2XQGRVZ','Inject','removeEventListener','5479677BRMuXf','send','449812gWXinA','decorate','HTTPService','5125680AEBthM','UniverCollaborationClientNodePlugin','ISnapshotServerService','_injector','getConfig'];_0x5a34=function(){return _0x145901;};return _0x5a34();}let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/network'),r=require('rxjs'),i=require('ws'),a=require('@univerjs-pro/collaboration');var o=_0x210a58(0x188),s=_0x210a58(0x15a);function _0x5e4f(_0x5a0855,_0x302fae){_0x5a0855=_0x5a0855-0x151;const _0x5a34b3=_0x5a34();let _0x5e4f57=_0x5a34b3[_0x5a0855];return _0x5e4f57;}const c={};function l(_0x4164ce,_0x359747){return function(_0x290289,_0x1b42d2){_0x359747(_0x290289,_0x1b42d2,_0x4164ce);};}function u(_0x25a205,_0x4ebc69,_0x2f4686,_0x1e253b){const _0x557c75=_0x210a58;var _0x397e01=arguments[_0x557c75(0x167)],_0x2aa7a5=_0x397e01<0x3?_0x4ebc69:_0x1e253b===null?_0x1e253b=Object[_0x557c75(0x16b)](_0x4ebc69,_0x2f4686):_0x1e253b,_0x109652;if(typeof Reflect=='object'&&typeof Reflect[_0x557c75(0x177)]==_0x557c75(0x16c))_0x2aa7a5=Reflect[_0x557c75(0x177)](_0x25a205,_0x4ebc69,_0x2f4686,_0x1e253b);else{for(var _0x209181=_0x25a205[_0x557c75(0x167)]-0x1;_0x209181>=0x0;_0x209181--)(_0x109652=_0x25a205[_0x209181])&&(_0x2aa7a5=(_0x397e01<0x3?_0x109652(_0x2aa7a5):_0x397e01>0x3?_0x109652(_0x4ebc69,_0x2f4686,_0x2aa7a5):_0x109652(_0x4ebc69,_0x2f4686))||_0x2aa7a5);}return _0x397e01>0x3&&_0x2aa7a5&&Object[_0x557c75(0x194)](_0x4ebc69,_0x2f4686,_0x2aa7a5),_0x2aa7a5;}let d=class extends t[_0x210a58(0x158)]{constructor(_0x1f80ff){const _0x3cb950=_0x210a58;super(),this[_0x3cb950(0x18a)]=_0x1f80ff;}[_0x210a58(0x189)](_0x4a8d4f){const _0x307dce=_0x210a58;var _0x45131a;let _0x5dd1a2=((_0x45131a=this[_0x307dce(0x18a)][_0x307dce(0x17d)](e[_0x307dce(0x192)]))==null?void 0x0:_0x45131a[_0x307dce(0x15b)])||{};try{let _0x34a099=new i[(_0x307dce(0x18c))](_0x4a8d4f,{'headers':{..._0x5dd1a2}}),_0x5b454d=new t[(_0x307dce(0x16d))]();return{'URL':_0x4a8d4f,'close':(_0x28bd0a,_0x4aef49)=>{const _0x410aa7=_0x307dce;_0x34a099[_0x410aa7(0x15c)](_0x28bd0a,_0x4aef49),_0x5b454d[_0x410aa7(0x163)]();},'send':_0x2ab81f=>{const _0x50c44f=_0x307dce;_0x34a099[_0x50c44f(0x175)](_0x2ab81f);},'open$':new r[(_0x307dce(0x16f))](_0xfbce2c=>{const _0x495cf7=_0x307dce;let _0x261104=_0x16b34f=>_0xfbce2c['next'](_0x16b34f);_0x34a099[_0x495cf7(0x17f)](_0x495cf7(0x190),_0x261104),_0x5b454d['add']((0x0,t[_0x495cf7(0x182)])(()=>_0x34a099[_0x495cf7(0x173)](_0x495cf7(0x190),_0x261104)));})['pipe']((0x0,r[_0x307dce(0x16a)])()),'close$':new r[(_0x307dce(0x16f))](_0x34273d=>{const _0x4ebdf6=_0x307dce;let _0xe3fb1a=_0x50c1ff=>_0x34273d['next'](_0x50c1ff);_0x34a099[_0x4ebdf6(0x17f)](_0x4ebdf6(0x15c),_0xe3fb1a),_0x5b454d[_0x4ebdf6(0x18e)]((0x0,t['toDisposable'])(()=>_0x34a099[_0x4ebdf6(0x173)](_0x4ebdf6(0x15c),_0xe3fb1a)));})[_0x307dce(0x180)]((0x0,r[_0x307dce(0x16a)])()),'error$':new r[(_0x307dce(0x16f))](_0x4d6219=>{const _0x6477f4=_0x307dce;let _0x285975=_0x338a81=>_0x4d6219['next'](_0x338a81);_0x34a099[_0x6477f4(0x17f)](_0x6477f4(0x183),_0x285975),_0x5b454d[_0x6477f4(0x18e)]((0x0,t[_0x6477f4(0x182)])(()=>_0x34a099['removeEventListener'](_0x6477f4(0x183),_0x285975)));})[_0x307dce(0x180)]((0x0,r[_0x307dce(0x16a)])()),'message$':new r[(_0x307dce(0x16f))](_0x5da6b9=>{const _0x2b1188=_0x307dce;let _0x229444=_0x188a9a=>_0x5da6b9['next'](_0x188a9a);_0x34a099[_0x2b1188(0x17f)]('message',_0x229444),_0x5b454d[_0x2b1188(0x18e)]((0x0,t['toDisposable'])(()=>_0x34a099[_0x2b1188(0x173)](_0x2b1188(0x162),_0x229444)));})[_0x307dce(0x180)]((0x0,r[_0x307dce(0x16a)])())};}catch(_0x31a56f){return console['error'](_0x31a56f),null;}}};d=u([l(0x0,t['IConfigService'])],d);function f(_0x3a3115){'@babel/helpers - typeof';const _0x2345c0=_0x210a58;return f=typeof Symbol==_0x2345c0(0x16c)&&typeof Symbol['iterator']==_0x2345c0(0x191)?function(_0x1cc8ce){return typeof _0x1cc8ce;}:function(_0x5223a3){const _0x3c3dfc=_0x2345c0;return _0x5223a3&&typeof Symbol=='function'&&_0x5223a3['constructor']===Symbol&&_0x5223a3!==Symbol[_0x3c3dfc(0x165)]?_0x3c3dfc(0x191):typeof _0x5223a3;},f(_0x3a3115);}function p(_0x298b24,_0x32eb92){const _0x4f7179=_0x210a58;if(f(_0x298b24)!=_0x4f7179(0x181)||!_0x298b24)return _0x298b24;var _0x35771=_0x298b24[Symbol['toPrimitive']];if(_0x35771!==void 0x0){var _0x1ff50c=_0x35771[_0x4f7179(0x166)](_0x298b24,_0x32eb92||_0x4f7179(0x170));if(f(_0x1ff50c)!=_0x4f7179(0x181))return _0x1ff50c;throw TypeError(_0x4f7179(0x168));}return(_0x32eb92===_0x4f7179(0x15d)?String:Number)(_0x298b24);}function m(_0x3d7377){const _0xccca9a=_0x210a58;var _0x4713dd=p(_0x3d7377,_0xccca9a(0x15d));return f(_0x4713dd)==_0xccca9a(0x191)?_0x4713dd:_0x4713dd+'';}function h(_0x3302c2,_0x256118,_0x51008b){return(_0x256118=m(_0x256118))in _0x3302c2?Object['defineProperty'](_0x3302c2,_0x256118,{'value':_0x51008b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3302c2[_0x256118]=_0x51008b,_0x3302c2;}let g=class extends t['Plugin']{constructor(_0xc18c3c=c,_0x2678b3,_0x349d4a){const _0x68e454=_0x210a58;super(),this[_0x68e454(0x155)]=_0xc18c3c,this[_0x68e454(0x18a)]=_0x2678b3,this[_0x68e454(0x17c)]=_0x349d4a;let {..._0x7a563e}=(0x0,t['merge'])({},c,this[_0x68e454(0x155)]);this[_0x68e454(0x18a)][_0x68e454(0x18b)]('collaboration-client-node.config',_0x7a563e);}[_0x210a58(0x169)](){const _0x258bcd=_0x210a58;this[_0x258bcd(0x160)]();}[_0x210a58(0x160)](){const _0x465c75=_0x210a58;(0x0,t[_0x465c75(0x161)])(this['_injector'],[[n[_0x465c75(0x196)],{'useClass':d}]]);}};h(g,_0x210a58(0x164),_0x210a58(0x195)),h(g,_0x210a58(0x17e),o),h(g,_0x210a58(0x18f),s),g=u([(0x0,t['DependentOn'])(e['UniverCollaborationClientPlugin']),l(0x1,t[_0x210a58(0x186)]),l(0x2,(0x0,t[_0x210a58(0x172)])(t[_0x210a58(0x185)]))],g);let _=class extends e[_0x210a58(0x193)]{constructor(_0x57a535,_0x440d87,_0x2c4325,_0x11c58a,_0x37df0e){const _0x416972=_0x210a58;super(_0x57a535,_0x440d87,_0x2c4325,_0x11c58a,_0x37df0e);let _0x575fc0=this['_configService'][_0x416972(0x17d)](e[_0x416972(0x192)]);this['_httpService'][_0x416972(0x184)]({'interceptor':(_0x35cd2d,_0x35d22b)=>{const _0x342491=_0x416972;let _0x2659d7=_0x35cd2d[_0x342491(0x16e)];if(_0x575fc0!=null&&_0x575fc0[_0x342491(0x15b)]){for(let _0x1d709b in _0x575fc0[_0x342491(0x15b)])_0x2659d7[_0x342491(0x15e)](_0x1d709b,_0x575fc0[_0x342491(0x15b)][_0x1d709b]);}return _0x35d22b(_0x35cd2d);}});}async['createSocket'](_0x19d481){const _0x28ca53=_0x210a58;return this[_0x28ca53(0x187)](_0x19d481);}};_=u([l(0x0,(0x0,t[_0x210a58(0x172)])(t[_0x210a58(0x185)])),l(0x1,(0x0,t[_0x210a58(0x172)])(n[_0x210a58(0x178)])),l(0x2,t[_0x210a58(0x186)]),l(0x3,t[_0x210a58(0x157)]),l(0x4,a[_0x210a58(0x17b)])],_),Object[_0x210a58(0x194)](exports,_0x210a58(0x18d),{'enumerable':!0x0,'get':function(){return _;}}),Object['defineProperty'](exports,_0x210a58(0x17a),{'enumerable':!0x0,'get':function(){return g;}});
1
+ const _0x5669ad=_0x4f6a;function _0x50ff(){const _0x42d45d=['DisposableCollection','_config','11885qSKJHc','merge','31560110xNyOCh','_httpService','version','toDisposable','DependentOn','toStringTag','iterator','311KACCps','ISocketService','symbol','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','string','customHeaders','@univerjs-pro/collaboration-client-node','addEventListener','setConfig','5838108Jnqpjm','prototype','decorate','dispose','WebSocket','1.0.0-alpha.7','HTTPService','_doCreateSocket','7312459IxTJmO','object','constructor','pipe','createSocket','UniverCollaborationClientNodePlugin','close','Observable','_configService','next','send','add','removeEventListener','packageName','getConfig','open','message','654xtgQgr','234auperW','toPrimitive','onStarting','share','default','Inject','Plugin','registerDependencies','6411664ejIWjS','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','error','597960gcGKRC','function','_injector','_registerDependencies','CollaborationSocketService','registerHTTPInterceptor','headers','UniverCollaborationClientPlugin','Disposable','Injector','defineProperty','11290nPHUip','length','NodeCollaborationSocketService','IConfigService'];_0x50ff=function(){return _0x42d45d;};return _0x50ff();}(function(_0x4822fe,_0x386aa7){const _0x5a5eb1=_0x4f6a,_0x2bc05a=_0x4822fe();while(!![]){try{const _0x216a5b=parseInt(_0x5a5eb1(0x11b))/0x1*(parseInt(_0x5a5eb1(0x154))/0x2)+parseInt(_0x5a5eb1(0x124))/0x3+parseInt(_0x5a5eb1(0x146))/0x4+-parseInt(_0x5a5eb1(0x112))/0x5*(parseInt(_0x5a5eb1(0x13d))/0x6)+parseInt(_0x5a5eb1(0x12c))/0x7+parseInt(_0x5a5eb1(0x149))/0x8*(-parseInt(_0x5a5eb1(0x13e))/0x9)+-parseInt(_0x5a5eb1(0x114))/0xa;if(_0x216a5b===_0x386aa7)break;else _0x2bc05a['push'](_0x2bc05a['shift']());}catch(_0x358f77){_0x2bc05a['push'](_0x2bc05a['shift']());}}}(_0x50ff,0xf1df6),Object[_0x5669ad(0x153)](exports,Symbol[_0x5669ad(0x119)],{'value':'Module'}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/network'),r=require('rxjs'),i=require('ws'),a=require('@univerjs-pro/collaboration');var o=_0x5669ad(0x121),s=_0x5669ad(0x129);const c={};function _0x4f6a(_0x43ae6f,_0x9f07d2){_0x43ae6f=_0x43ae6f-0x10e;const _0x50ffec=_0x50ff();let _0x4f6a1b=_0x50ffec[_0x43ae6f];return _0x4f6a1b;}function l(_0x40e87a,_0x53bef2){return function(_0x1a99ac,_0x40bae4){_0x53bef2(_0x1a99ac,_0x40bae4,_0x40e87a);};}function u(_0x5de84b,_0x5a7cb6,_0x5c1cbb,_0x5528a8){const _0x15899e=_0x5669ad;var _0x52a564=arguments[_0x15899e(0x155)],_0x491c2=_0x52a564<0x3?_0x5a7cb6:_0x5528a8===null?_0x5528a8=Object['getOwnPropertyDescriptor'](_0x5a7cb6,_0x5c1cbb):_0x5528a8,_0x3f758d;if(typeof Reflect==_0x15899e(0x12d)&&typeof Reflect[_0x15899e(0x126)]==_0x15899e(0x14a))_0x491c2=Reflect['decorate'](_0x5de84b,_0x5a7cb6,_0x5c1cbb,_0x5528a8);else{for(var _0x5c62aa=_0x5de84b[_0x15899e(0x155)]-0x1;_0x5c62aa>=0x0;_0x5c62aa--)(_0x3f758d=_0x5de84b[_0x5c62aa])&&(_0x491c2=(_0x52a564<0x3?_0x3f758d(_0x491c2):_0x52a564>0x3?_0x3f758d(_0x5a7cb6,_0x5c1cbb,_0x491c2):_0x3f758d(_0x5a7cb6,_0x5c1cbb))||_0x491c2);}return _0x52a564>0x3&&_0x491c2&&Object[_0x15899e(0x153)](_0x5a7cb6,_0x5c1cbb,_0x491c2),_0x491c2;}let d=class extends t[_0x5669ad(0x151)]{constructor(_0x362de9){const _0x371173=_0x5669ad;super(),this[_0x371173(0x134)]=_0x362de9;}[_0x5669ad(0x130)](_0x53dfaa){const _0x49b8cc=_0x5669ad;var _0x5a6bea;let _0x617213=((_0x5a6bea=this[_0x49b8cc(0x134)][_0x49b8cc(0x13a)](e[_0x49b8cc(0x147)]))==null?void 0x0:_0x5a6bea[_0x49b8cc(0x120)])||{};try{let _0x30dd7e=new i[(_0x49b8cc(0x128))](_0x53dfaa,{'headers':{..._0x617213}}),_0x2e0582=new t[(_0x49b8cc(0x110))]();return{'URL':_0x53dfaa,'close':(_0x1141fd,_0x13d44b)=>{const _0x12197f=_0x49b8cc;_0x30dd7e[_0x12197f(0x132)](_0x1141fd,_0x13d44b),_0x2e0582[_0x12197f(0x127)]();},'send':_0x25dfc0=>{const _0x2b5f00=_0x49b8cc;_0x30dd7e[_0x2b5f00(0x136)](_0x25dfc0);},'open$':new r['Observable'](_0x2e135f=>{const _0x5e259b=_0x49b8cc;let _0x3d38f0=_0x3041c2=>_0x2e135f[_0x5e259b(0x135)](_0x3041c2);_0x30dd7e[_0x5e259b(0x122)](_0x5e259b(0x13b),_0x3d38f0),_0x2e0582[_0x5e259b(0x137)]((0x0,t[_0x5e259b(0x117)])(()=>_0x30dd7e[_0x5e259b(0x138)](_0x5e259b(0x13b),_0x3d38f0)));})[_0x49b8cc(0x12f)]((0x0,r[_0x49b8cc(0x141)])()),'close$':new r[(_0x49b8cc(0x133))](_0x13c7d9=>{const _0x5e31ab=_0x49b8cc;let _0x385a16=_0x264a9b=>_0x13c7d9[_0x5e31ab(0x135)](_0x264a9b);_0x30dd7e[_0x5e31ab(0x122)](_0x5e31ab(0x132),_0x385a16),_0x2e0582['add']((0x0,t['toDisposable'])(()=>_0x30dd7e[_0x5e31ab(0x138)](_0x5e31ab(0x132),_0x385a16)));})[_0x49b8cc(0x12f)]((0x0,r[_0x49b8cc(0x141)])()),'error$':new r[(_0x49b8cc(0x133))](_0x2ceb63=>{const _0x22d944=_0x49b8cc;let _0x2bb77f=_0x5025aa=>_0x2ceb63[_0x22d944(0x135)](_0x5025aa);_0x30dd7e[_0x22d944(0x122)](_0x22d944(0x148),_0x2bb77f),_0x2e0582[_0x22d944(0x137)]((0x0,t[_0x22d944(0x117)])(()=>_0x30dd7e['removeEventListener']('error',_0x2bb77f)));})[_0x49b8cc(0x12f)]((0x0,r['share'])()),'message$':new r['Observable'](_0x519319=>{const _0x36aad4=_0x49b8cc;let _0x2aa196=_0x44688e=>_0x519319['next'](_0x44688e);_0x30dd7e['addEventListener']('message',_0x2aa196),_0x2e0582[_0x36aad4(0x137)]((0x0,t['toDisposable'])(()=>_0x30dd7e[_0x36aad4(0x138)](_0x36aad4(0x13c),_0x2aa196)));})[_0x49b8cc(0x12f)]((0x0,r[_0x49b8cc(0x141)])())};}catch(_0x63ab88){return console[_0x49b8cc(0x148)](_0x63ab88),null;}}};d=u([l(0x0,t[_0x5669ad(0x10f)])],d);function f(_0x1de610){'@babel/helpers - typeof';const _0x5de100=_0x5669ad;return f=typeof Symbol==_0x5de100(0x14a)&&typeof Symbol[_0x5de100(0x11a)]==_0x5de100(0x11d)?function(_0x1e626c){return typeof _0x1e626c;}:function(_0x2f1957){const _0x59d02f=_0x5de100;return _0x2f1957&&typeof Symbol==_0x59d02f(0x14a)&&_0x2f1957[_0x59d02f(0x12e)]===Symbol&&_0x2f1957!==Symbol[_0x59d02f(0x125)]?_0x59d02f(0x11d):typeof _0x2f1957;},f(_0x1de610);}function p(_0xb69ede,_0x505f65){const _0x387c6f=_0x5669ad;if(f(_0xb69ede)!='object'||!_0xb69ede)return _0xb69ede;var _0x47fd4d=_0xb69ede[Symbol[_0x387c6f(0x13f)]];if(_0x47fd4d!==void 0x0){var _0x1c6036=_0x47fd4d['call'](_0xb69ede,_0x505f65||_0x387c6f(0x142));if(f(_0x1c6036)!='object')return _0x1c6036;throw TypeError(_0x387c6f(0x11e));}return(_0x505f65===_0x387c6f(0x11f)?String:Number)(_0xb69ede);}function m(_0x1b9ead){const _0x4d65f2=_0x5669ad;var _0x1c2f32=p(_0x1b9ead,'string');return f(_0x1c2f32)==_0x4d65f2(0x11d)?_0x1c2f32:_0x1c2f32+'';}function h(_0x4cf27d,_0x8f4c1d,_0x175e0b){const _0x42fc7f=_0x5669ad;return(_0x8f4c1d=m(_0x8f4c1d))in _0x4cf27d?Object[_0x42fc7f(0x153)](_0x4cf27d,_0x8f4c1d,{'value':_0x175e0b,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4cf27d[_0x8f4c1d]=_0x175e0b,_0x4cf27d;}let g=class extends t[_0x5669ad(0x144)]{constructor(_0x3d933d=c,_0x2c990d,_0x258fa9){const _0x3ea775=_0x5669ad;super(),this[_0x3ea775(0x111)]=_0x3d933d,this[_0x3ea775(0x134)]=_0x2c990d,this[_0x3ea775(0x14b)]=_0x258fa9;let {..._0xc059d9}=(0x0,t[_0x3ea775(0x113)])({},c,this[_0x3ea775(0x111)]);this['_configService'][_0x3ea775(0x123)]('collaboration-client-node.config',_0xc059d9);}[_0x5669ad(0x140)](){this['_registerDependencies']();}[_0x5669ad(0x14c)](){const _0x180ac9=_0x5669ad;(0x0,t[_0x180ac9(0x145)])(this[_0x180ac9(0x14b)],[[n[_0x180ac9(0x11c)],{'useClass':d}]]);}};h(g,'pluginName','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),h(g,_0x5669ad(0x139),o),h(g,_0x5669ad(0x116),s),g=u([(0x0,t[_0x5669ad(0x118)])(e[_0x5669ad(0x150)]),l(0x1,t[_0x5669ad(0x10f)]),l(0x2,(0x0,t[_0x5669ad(0x143)])(t[_0x5669ad(0x152)]))],g);let _=class extends e[_0x5669ad(0x14d)]{constructor(_0x48ed90,_0x45c603,_0x19f736,_0x2a6c38,_0x17c399){const _0x140c40=_0x5669ad;super(_0x48ed90,_0x45c603,_0x19f736,_0x2a6c38,_0x17c399);let _0x4c7855=this[_0x140c40(0x134)][_0x140c40(0x13a)](e[_0x140c40(0x147)]);this[_0x140c40(0x115)][_0x140c40(0x14e)]({'interceptor':(_0x553779,_0x4f7cc7)=>{const _0x13d81=_0x140c40;let _0x38e53f=_0x553779[_0x13d81(0x14f)];if(_0x4c7855!=null&&_0x4c7855[_0x13d81(0x120)]){for(let _0x291bda in _0x4c7855[_0x13d81(0x120)])_0x38e53f['set'](_0x291bda,_0x4c7855[_0x13d81(0x120)][_0x291bda]);}return _0x4f7cc7(_0x553779);}});}async[_0x5669ad(0x130)](_0x3d441c){const _0xd491a=_0x5669ad;return this[_0xd491a(0x12b)](_0x3d441c);}};_=u([l(0x0,(0x0,t['Inject'])(t['Injector'])),l(0x1,(0x0,t['Inject'])(n[_0x5669ad(0x12a)])),l(0x2,t[_0x5669ad(0x10f)]),l(0x3,t['ILogService']),l(0x4,a['ISnapshotServerService'])],_),Object[_0x5669ad(0x153)](exports,_0x5669ad(0x10e),{'enumerable':!0x0,'get':function(){return _;}}),Object['defineProperty'](exports,_0x5669ad(0x131),{'enumerable':!0x0,'get':function(){return g;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x6f2f3f=_0x5431;(function(_0xee31c2,_0x463552){const _0x473698=_0x5431,_0x23de25=_0xee31c2();while(!![]){try{const _0x559b5b=-parseInt(_0x473698(0xe6))/0x1+parseInt(_0x473698(0xd9))/0x2+-parseInt(_0x473698(0xd1))/0x3*(-parseInt(_0x473698(0xbc))/0x4)+-parseInt(_0x473698(0xb9))/0x5+parseInt(_0x473698(0xbe))/0x6+-parseInt(_0x473698(0xe9))/0x7*(parseInt(_0x473698(0xc1))/0x8)+-parseInt(_0x473698(0xcb))/0x9;if(_0x559b5b===_0x463552)break;else _0x23de25['push'](_0x23de25['shift']());}catch(_0x13acf9){_0x23de25['push'](_0x23de25['shift']());}}}(_0x457c,0x3ee4d));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x5e7c43,CollaborationSocketService as _0x259f6f,UniverCollaborationClientPlugin as _0x3e3489}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x2f5f78,Disposable as _0x1ebedc,DisposableCollection as _0x2b3acc,IConfigService as _0x3a7a90,ILogService as _0x34b83e,Inject as _0x3babd1,Injector as _0x5d8c04,Plugin as _0xa4996a,merge as _0x53778d,registerDependencies as _0x5d402c,toDisposable as _0x239723}from'@univerjs/core';import{HTTPService as _0x377abe,ISocketService as _0x460b5a}from'@univerjs/network';import{Observable as _0x165fc0,share as _0x5b23a5}from'rxjs';import{WebSocket as _0x1c8900}from'ws';import{ISnapshotServerService as _0x6cc045}from'@univerjs-pro/collaboration';var b=_0x6f2f3f(0xd5),x=_0x6f2f3f(0xd2);const S={};function C(_0x2c933e,_0xf31fbf){return function(_0x4b96b8,_0x404b68){_0xf31fbf(_0x4b96b8,_0x404b68,_0x2c933e);};}function _0x457c(){const _0x4687de=['addEventListener','registerHTTPInterceptor','_config','54JErpus','1.0.0-alpha.5','createSocket','dispose','@univerjs-pro/collaboration-client-node','defineProperty','object','send','859200lEVDrm','string','decorate','customHeaders','packageName','getOwnPropertyDescriptor','_registerDependencies','_httpService','length','_configService','open','_injector','toPrimitive','354695TdpVvj','getConfig','iterator','105dOnAjL','message','pipe','setConfig','1161305OqhFpu','set','_doCreateSocket','51836wJuoSj','version','2967714TXlsvX','pluginName','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','33048XrkbuD','function','error','next','removeEventListener','close','call','prototype','add','onStarting','2258523CpAIZW','constructor','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'];_0x457c=function(){return _0x4687de;};return _0x457c();}function w(_0x498a7c,_0x4ad69f,_0x33b57a,_0xc6a8cb){const _0x3cd78f=_0x6f2f3f;var _0xa49b6a=arguments['length'],_0xa2969c=_0xa49b6a<0x3?_0x4ad69f:_0xc6a8cb===null?_0xc6a8cb=Object[_0x3cd78f(0xde)](_0x4ad69f,_0x33b57a):_0xc6a8cb,_0x1053dd;if(typeof Reflect==_0x3cd78f(0xd7)&&typeof Reflect[_0x3cd78f(0xdb)]=='function')_0xa2969c=Reflect['decorate'](_0x498a7c,_0x4ad69f,_0x33b57a,_0xc6a8cb);else{for(var _0x3314b=_0x498a7c[_0x3cd78f(0xe1)]-0x1;_0x3314b>=0x0;_0x3314b--)(_0x1053dd=_0x498a7c[_0x3314b])&&(_0xa2969c=(_0xa49b6a<0x3?_0x1053dd(_0xa2969c):_0xa49b6a>0x3?_0x1053dd(_0x4ad69f,_0x33b57a,_0xa2969c):_0x1053dd(_0x4ad69f,_0x33b57a))||_0xa2969c);}return _0xa49b6a>0x3&&_0xa2969c&&Object[_0x3cd78f(0xd6)](_0x4ad69f,_0x33b57a,_0xa2969c),_0xa2969c;}let T=class extends _0x1ebedc{constructor(_0x1b5837){const _0x13e1f7=_0x6f2f3f;super(),this[_0x13e1f7(0xe2)]=_0x1b5837;}[_0x6f2f3f(0xd3)](_0x458cc6){const _0x43b61b=_0x6f2f3f;var _0xb62a0f;let _0x1441d1=((_0xb62a0f=this[_0x43b61b(0xe2)][_0x43b61b(0xe7)](_0x5e7c43))==null?void 0x0:_0xb62a0f['customHeaders'])||{};try{let _0x369b96=new _0x1c8900(_0x458cc6,{'headers':{..._0x1441d1}}),_0x47ef5b=new _0x2b3acc();return{'URL':_0x458cc6,'close':(_0x281e7b,_0x53ff8d)=>{const _0x354183=_0x43b61b;_0x369b96['close'](_0x281e7b,_0x53ff8d),_0x47ef5b[_0x354183(0xd4)]();},'send':_0x2601e1=>{const _0x5d3c57=_0x43b61b;_0x369b96[_0x5d3c57(0xd8)](_0x2601e1);},'open$':new _0x165fc0(_0x3f3171=>{const _0x3c8ac6=_0x43b61b;let _0x42780a=_0x1afd47=>_0x3f3171[_0x3c8ac6(0xc4)](_0x1afd47);_0x369b96[_0x3c8ac6(0xce)]('open',_0x42780a),_0x47ef5b[_0x3c8ac6(0xc9)](_0x239723(()=>_0x369b96[_0x3c8ac6(0xc5)](_0x3c8ac6(0xe3),_0x42780a)));})[_0x43b61b(0xb7)](_0x5b23a5()),'close$':new _0x165fc0(_0x53da4b=>{const _0x4e28af=_0x43b61b;let _0x5906b7=_0x4c3a92=>_0x53da4b[_0x4e28af(0xc4)](_0x4c3a92);_0x369b96[_0x4e28af(0xce)](_0x4e28af(0xc6),_0x5906b7),_0x47ef5b['add'](_0x239723(()=>_0x369b96[_0x4e28af(0xc5)](_0x4e28af(0xc6),_0x5906b7)));})['pipe'](_0x5b23a5()),'error$':new _0x165fc0(_0x1da99e=>{const _0x2922c5=_0x43b61b;let _0x3d268e=_0x182e66=>_0x1da99e[_0x2922c5(0xc4)](_0x182e66);_0x369b96[_0x2922c5(0xce)]('error',_0x3d268e),_0x47ef5b['add'](_0x239723(()=>_0x369b96[_0x2922c5(0xc5)]('error',_0x3d268e)));})[_0x43b61b(0xb7)](_0x5b23a5()),'message$':new _0x165fc0(_0x239cfd=>{const _0x705346=_0x43b61b;let _0x4cda38=_0xb4469f=>_0x239cfd['next'](_0xb4469f);_0x369b96['addEventListener'](_0x705346(0xb6),_0x4cda38),_0x47ef5b[_0x705346(0xc9)](_0x239723(()=>_0x369b96[_0x705346(0xc5)](_0x705346(0xb6),_0x4cda38)));})[_0x43b61b(0xb7)](_0x5b23a5())};}catch(_0x1c57db){return console[_0x43b61b(0xc3)](_0x1c57db),null;}}};T=w([C(0x0,_0x3a7a90)],T);function E(_0x30d0b6){'@babel/helpers - typeof';const _0x44f5f8=_0x6f2f3f;return E=typeof Symbol==_0x44f5f8(0xc2)&&typeof Symbol[_0x44f5f8(0xe8)]=='symbol'?function(_0x2454bc){return typeof _0x2454bc;}:function(_0x31642d){const _0x251c4e=_0x44f5f8;return _0x31642d&&typeof Symbol=='function'&&_0x31642d[_0x251c4e(0xcc)]===Symbol&&_0x31642d!==Symbol[_0x251c4e(0xc8)]?'symbol':typeof _0x31642d;},E(_0x30d0b6);}function D(_0x282819,_0x38763a){const _0x4e1f3c=_0x6f2f3f;if(E(_0x282819)!=_0x4e1f3c(0xd7)||!_0x282819)return _0x282819;var _0x168bc1=_0x282819[Symbol[_0x4e1f3c(0xe5)]];if(_0x168bc1!==void 0x0){var _0x5a28d6=_0x168bc1[_0x4e1f3c(0xc7)](_0x282819,_0x38763a||'default');if(E(_0x5a28d6)!=_0x4e1f3c(0xd7))return _0x5a28d6;throw TypeError(_0x4e1f3c(0xc0));}return(_0x38763a===_0x4e1f3c(0xda)?String:Number)(_0x282819);}function O(_0x1bdd37){const _0x2dbaeb=_0x6f2f3f;var _0x4958bc=D(_0x1bdd37,_0x2dbaeb(0xda));return E(_0x4958bc)=='symbol'?_0x4958bc:_0x4958bc+'';}function k(_0x28bff3,_0x57ecc3,_0x4989bf){const _0x3a962f=_0x6f2f3f;return(_0x57ecc3=O(_0x57ecc3))in _0x28bff3?Object[_0x3a962f(0xd6)](_0x28bff3,_0x57ecc3,{'value':_0x4989bf,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x28bff3[_0x57ecc3]=_0x4989bf,_0x28bff3;}function _0x5431(_0xa831ad,_0x4e5666){_0xa831ad=_0xa831ad-0xb6;const _0x457cb0=_0x457c();let _0x543115=_0x457cb0[_0xa831ad];return _0x543115;}let A=class extends _0xa4996a{constructor(_0x370fd9=S,_0x91d76b,_0x299f02){const _0x2e8fb5=_0x6f2f3f;super(),this[_0x2e8fb5(0xd0)]=_0x370fd9,this[_0x2e8fb5(0xe2)]=_0x91d76b,this['_injector']=_0x299f02;let {..._0x39d796}=_0x53778d({},S,this[_0x2e8fb5(0xd0)]);this[_0x2e8fb5(0xe2)][_0x2e8fb5(0xb8)]('collaboration-client-node.config',_0x39d796);}[_0x6f2f3f(0xca)](){const _0x3aaaee=_0x6f2f3f;this[_0x3aaaee(0xdf)]();}[_0x6f2f3f(0xdf)](){const _0x48b367=_0x6f2f3f;_0x5d402c(this[_0x48b367(0xe4)],[[_0x460b5a,{'useClass':T}]]);}};k(A,_0x6f2f3f(0xbf),_0x6f2f3f(0xcd)),k(A,_0x6f2f3f(0xdd),b),k(A,_0x6f2f3f(0xbd),x),A=w([_0x2f5f78(_0x3e3489),C(0x1,_0x3a7a90),C(0x2,_0x3babd1(_0x5d8c04))],A);let j=class extends _0x259f6f{constructor(_0x5c11cd,_0x1a8288,_0x591763,_0x15dd77,_0x55ccaa){const _0x5548f4=_0x6f2f3f;super(_0x5c11cd,_0x1a8288,_0x591763,_0x15dd77,_0x55ccaa);let _0x31d715=this[_0x5548f4(0xe2)][_0x5548f4(0xe7)](_0x5e7c43);this[_0x5548f4(0xe0)][_0x5548f4(0xcf)]({'interceptor':(_0x1f5039,_0x5ace85)=>{const _0x5c8153=_0x5548f4;let _0x1480c2=_0x1f5039['headers'];if(_0x31d715!=null&&_0x31d715[_0x5c8153(0xdc)]){for(let _0x4f5b1c in _0x31d715[_0x5c8153(0xdc)])_0x1480c2[_0x5c8153(0xba)](_0x4f5b1c,_0x31d715[_0x5c8153(0xdc)][_0x4f5b1c]);}return _0x5ace85(_0x1f5039);}});}async[_0x6f2f3f(0xd3)](_0x2b905a){const _0x4712d1=_0x6f2f3f;return this[_0x4712d1(0xbb)](_0x2b905a);}};j=w([C(0x0,_0x3babd1(_0x5d8c04)),C(0x1,_0x3babd1(_0x377abe)),C(0x2,_0x3a7a90),C(0x3,_0x34b83e),C(0x4,_0x6cc045)],j);export{j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0x5cda16=_0x20c8;(function(_0x2bbdb5,_0x55cc11){const _0x2d5316=_0x20c8,_0x313545=_0x2bbdb5();while(!![]){try{const _0x3fd490=-parseInt(_0x2d5316(0x189))/0x1*(-parseInt(_0x2d5316(0x1af))/0x2)+-parseInt(_0x2d5316(0x1ae))/0x3*(parseInt(_0x2d5316(0x1a3))/0x4)+parseInt(_0x2d5316(0x1b3))/0x5*(-parseInt(_0x2d5316(0x18b))/0x6)+-parseInt(_0x2d5316(0x1a9))/0x7+-parseInt(_0x2d5316(0x1b4))/0x8+parseInt(_0x2d5316(0x18e))/0x9+parseInt(_0x2d5316(0x1ac))/0xa;if(_0x3fd490===_0x55cc11)break;else _0x313545['push'](_0x313545['shift']());}catch(_0x58f603){_0x313545['push'](_0x313545['shift']());}}}(_0x307f,0xbd590));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1e26a3,CollaborationSocketService as _0x34cc33,UniverCollaborationClientPlugin as _0x179376}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x2f70f7,Disposable as _0x274d29,DisposableCollection as _0x4f6dd7,IConfigService as _0x16d363,ILogService as _0x5c3772,Inject as _0x499c14,Injector as _0x207556,Plugin as _0x51ac31,merge as _0x40abab,registerDependencies as _0x1a53a2,toDisposable as _0x274a58}from'@univerjs/core';import{HTTPService as _0x988b6c,ISocketService as _0x5d3214}from'@univerjs/network';import{Observable as _0x706c8a,share as _0x96d6e5}from'rxjs';import{WebSocket as _0x566053}from'ws';function _0x307f(){const _0x50ab35=['defineProperty','createSocket','onStarting','customHeaders','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','2580592KAyVic','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','add','12761690GExUjd','packageName','3JXqYjx','2cgcpYX','getConfig','next','_httpService','65hnUslw','10049136jlmHOh','pluginName','string','_doCreateSocket','call','addEventListener','1067908xGhExS','error','267114ietTgI','function','close','13291911AUcuHb','_config','object','default','symbol','decorate','_registerDependencies','_injector','getOwnPropertyDescriptor','@univerjs-pro/collaboration-client-node','prototype','registerHTTPInterceptor','toPrimitive','_configService','length','send','removeEventListener','1.0.0-alpha.7','headers','constructor','pipe','3367372ctaidv'];_0x307f=function(){return _0x50ab35;};return _0x307f();}import{ISnapshotServerService as _0x1e8a53}from'@univerjs-pro/collaboration';var b=_0x5cda16(0x197),x=_0x5cda16(0x19f);const S={};function _0x20c8(_0x223b98,_0x2f6231){_0x223b98=_0x223b98-0x188;const _0x307f81=_0x307f();let _0x20c8e3=_0x307f81[_0x223b98];return _0x20c8e3;}function C(_0x4733b5,_0x553cb8){return function(_0x54741e,_0x4c92dd){_0x553cb8(_0x54741e,_0x4c92dd,_0x4733b5);};}function w(_0x483c9b,_0x5f6a43,_0x516acc,_0x4a96a5){const _0x488a07=_0x5cda16;var _0xb11651=arguments[_0x488a07(0x19c)],_0xfc6dae=_0xb11651<0x3?_0x5f6a43:_0x4a96a5===null?_0x4a96a5=Object[_0x488a07(0x196)](_0x5f6a43,_0x516acc):_0x4a96a5,_0x570709;if(typeof Reflect==_0x488a07(0x190)&&typeof Reflect[_0x488a07(0x193)]==_0x488a07(0x18c))_0xfc6dae=Reflect[_0x488a07(0x193)](_0x483c9b,_0x5f6a43,_0x516acc,_0x4a96a5);else{for(var _0x39cd85=_0x483c9b[_0x488a07(0x19c)]-0x1;_0x39cd85>=0x0;_0x39cd85--)(_0x570709=_0x483c9b[_0x39cd85])&&(_0xfc6dae=(_0xb11651<0x3?_0x570709(_0xfc6dae):_0xb11651>0x3?_0x570709(_0x5f6a43,_0x516acc,_0xfc6dae):_0x570709(_0x5f6a43,_0x516acc))||_0xfc6dae);}return _0xb11651>0x3&&_0xfc6dae&&Object[_0x488a07(0x1a4)](_0x5f6a43,_0x516acc,_0xfc6dae),_0xfc6dae;}let T=class extends _0x274d29{constructor(_0x5bb3b2){const _0x4db1ab=_0x5cda16;super(),this[_0x4db1ab(0x19b)]=_0x5bb3b2;}['createSocket'](_0x247160){const _0x3e6da3=_0x5cda16;var _0x9b4f02;let _0x53b27b=((_0x9b4f02=this['_configService'][_0x3e6da3(0x1b0)](_0x1e26a3))==null?void 0x0:_0x9b4f02[_0x3e6da3(0x1a7)])||{};try{let _0x2516d5=new _0x566053(_0x247160,{'headers':{..._0x53b27b}}),_0x194bdc=new _0x4f6dd7();return{'URL':_0x247160,'close':(_0x3e6ef2,_0x3e4cca)=>{_0x2516d5['close'](_0x3e6ef2,_0x3e4cca),_0x194bdc['dispose']();},'send':_0x33bb57=>{const _0xcf954b=_0x3e6da3;_0x2516d5[_0xcf954b(0x19d)](_0x33bb57);},'open$':new _0x706c8a(_0x4c8d04=>{const _0x1f88a5=_0x3e6da3;let _0x4056e4=_0x1028a6=>_0x4c8d04[_0x1f88a5(0x1b1)](_0x1028a6);_0x2516d5[_0x1f88a5(0x188)]('open',_0x4056e4),_0x194bdc[_0x1f88a5(0x1ab)](_0x274a58(()=>_0x2516d5[_0x1f88a5(0x19e)]('open',_0x4056e4)));})[_0x3e6da3(0x1a2)](_0x96d6e5()),'close$':new _0x706c8a(_0x3e8f83=>{const _0x4b0393=_0x3e6da3;let _0x4bbd2a=_0x1a9744=>_0x3e8f83['next'](_0x1a9744);_0x2516d5[_0x4b0393(0x188)](_0x4b0393(0x18d),_0x4bbd2a),_0x194bdc['add'](_0x274a58(()=>_0x2516d5[_0x4b0393(0x19e)](_0x4b0393(0x18d),_0x4bbd2a)));})[_0x3e6da3(0x1a2)](_0x96d6e5()),'error$':new _0x706c8a(_0x147046=>{const _0x473d15=_0x3e6da3;let _0x26bd70=_0x505b77=>_0x147046[_0x473d15(0x1b1)](_0x505b77);_0x2516d5[_0x473d15(0x188)](_0x473d15(0x18a),_0x26bd70),_0x194bdc[_0x473d15(0x1ab)](_0x274a58(()=>_0x2516d5[_0x473d15(0x19e)](_0x473d15(0x18a),_0x26bd70)));})[_0x3e6da3(0x1a2)](_0x96d6e5()),'message$':new _0x706c8a(_0x1f1bd6=>{const _0x4d9413=_0x3e6da3;let _0x5b9e0d=_0x1379e2=>_0x1f1bd6[_0x4d9413(0x1b1)](_0x1379e2);_0x2516d5['addEventListener']('message',_0x5b9e0d),_0x194bdc['add'](_0x274a58(()=>_0x2516d5['removeEventListener']('message',_0x5b9e0d)));})['pipe'](_0x96d6e5())};}catch(_0x4c1fe9){return console['error'](_0x4c1fe9),null;}}};T=w([C(0x0,_0x16d363)],T);function E(_0x6fb48d){'@babel/helpers - typeof';return E=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x80ce80){return typeof _0x80ce80;}:function(_0x4db599){const _0xf0c7e7=_0x20c8;return _0x4db599&&typeof Symbol==_0xf0c7e7(0x18c)&&_0x4db599[_0xf0c7e7(0x1a1)]===Symbol&&_0x4db599!==Symbol[_0xf0c7e7(0x198)]?_0xf0c7e7(0x192):typeof _0x4db599;},E(_0x6fb48d);}function D(_0x30b10d,_0x9ac783){const _0x8a51b0=_0x5cda16;if(E(_0x30b10d)!='object'||!_0x30b10d)return _0x30b10d;var _0xcc83b1=_0x30b10d[Symbol[_0x8a51b0(0x19a)]];if(_0xcc83b1!==void 0x0){var _0x4a08fd=_0xcc83b1[_0x8a51b0(0x1b8)](_0x30b10d,_0x9ac783||_0x8a51b0(0x191));if(E(_0x4a08fd)!=_0x8a51b0(0x190))return _0x4a08fd;throw TypeError(_0x8a51b0(0x1a8));}return(_0x9ac783===_0x8a51b0(0x1b6)?String:Number)(_0x30b10d);}function O(_0x143c5d){const _0x2a367f=_0x5cda16;var _0x3cec51=D(_0x143c5d,_0x2a367f(0x1b6));return E(_0x3cec51)=='symbol'?_0x3cec51:_0x3cec51+'';}function k(_0x3f8e54,_0x120ad0,_0x1d5a06){return(_0x120ad0=O(_0x120ad0))in _0x3f8e54?Object['defineProperty'](_0x3f8e54,_0x120ad0,{'value':_0x1d5a06,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3f8e54[_0x120ad0]=_0x1d5a06,_0x3f8e54;}let A=class extends _0x51ac31{constructor(_0x2430c9=S,_0x145b45,_0x20fb2f){const _0x15638c=_0x5cda16;super(),this['_config']=_0x2430c9,this['_configService']=_0x145b45,this[_0x15638c(0x195)]=_0x20fb2f;let {..._0x394c74}=_0x40abab({},S,this[_0x15638c(0x18f)]);this['_configService']['setConfig']('collaboration-client-node.config',_0x394c74);}[_0x5cda16(0x1a6)](){this['_registerDependencies']();}[_0x5cda16(0x194)](){const _0x71e4c0=_0x5cda16;_0x1a53a2(this[_0x71e4c0(0x195)],[[_0x5d3214,{'useClass':T}]]);}};k(A,_0x5cda16(0x1b5),_0x5cda16(0x1aa)),k(A,_0x5cda16(0x1ad),b),k(A,'version',x),A=w([_0x2f70f7(_0x179376),C(0x1,_0x16d363),C(0x2,_0x499c14(_0x207556))],A);let j=class extends _0x34cc33{constructor(_0x181bc7,_0x4ba23e,_0x44c783,_0x47725a,_0x43f43b){const _0x4e1a4f=_0x5cda16;super(_0x181bc7,_0x4ba23e,_0x44c783,_0x47725a,_0x43f43b);let _0x126b21=this[_0x4e1a4f(0x19b)]['getConfig'](_0x1e26a3);this[_0x4e1a4f(0x1b2)][_0x4e1a4f(0x199)]({'interceptor':(_0xeb0a3,_0x2cdec0)=>{const _0x15eceb=_0x4e1a4f;let _0x5a4da4=_0xeb0a3[_0x15eceb(0x1a0)];if(_0x126b21!=null&&_0x126b21[_0x15eceb(0x1a7)]){for(let _0x5ede87 in _0x126b21[_0x15eceb(0x1a7)])_0x5a4da4['set'](_0x5ede87,_0x126b21[_0x15eceb(0x1a7)][_0x5ede87]);}return _0x2cdec0(_0xeb0a3);}});}async[_0x5cda16(0x1a5)](_0x1781dd){const _0x519268=_0x5cda16;return this[_0x519268(0x1b7)](_0x1781dd);}};j=w([C(0x0,_0x499c14(_0x207556)),C(0x1,_0x499c14(_0x988b6c)),C(0x2,_0x16d363),C(0x3,_0x5c3772),C(0x4,_0x1e8a53)],j);export{j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x6f2f3f=_0x5431;(function(_0xee31c2,_0x463552){const _0x473698=_0x5431,_0x23de25=_0xee31c2();while(!![]){try{const _0x559b5b=-parseInt(_0x473698(0xe6))/0x1+parseInt(_0x473698(0xd9))/0x2+-parseInt(_0x473698(0xd1))/0x3*(-parseInt(_0x473698(0xbc))/0x4)+-parseInt(_0x473698(0xb9))/0x5+parseInt(_0x473698(0xbe))/0x6+-parseInt(_0x473698(0xe9))/0x7*(parseInt(_0x473698(0xc1))/0x8)+-parseInt(_0x473698(0xcb))/0x9;if(_0x559b5b===_0x463552)break;else _0x23de25['push'](_0x23de25['shift']());}catch(_0x13acf9){_0x23de25['push'](_0x23de25['shift']());}}}(_0x457c,0x3ee4d));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x5e7c43,CollaborationSocketService as _0x259f6f,UniverCollaborationClientPlugin as _0x3e3489}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x2f5f78,Disposable as _0x1ebedc,DisposableCollection as _0x2b3acc,IConfigService as _0x3a7a90,ILogService as _0x34b83e,Inject as _0x3babd1,Injector as _0x5d8c04,Plugin as _0xa4996a,merge as _0x53778d,registerDependencies as _0x5d402c,toDisposable as _0x239723}from'@univerjs/core';import{HTTPService as _0x377abe,ISocketService as _0x460b5a}from'@univerjs/network';import{Observable as _0x165fc0,share as _0x5b23a5}from'rxjs';import{WebSocket as _0x1c8900}from'ws';import{ISnapshotServerService as _0x6cc045}from'@univerjs-pro/collaboration';var b=_0x6f2f3f(0xd5),x=_0x6f2f3f(0xd2);const S={};function C(_0x2c933e,_0xf31fbf){return function(_0x4b96b8,_0x404b68){_0xf31fbf(_0x4b96b8,_0x404b68,_0x2c933e);};}function _0x457c(){const _0x4687de=['addEventListener','registerHTTPInterceptor','_config','54JErpus','1.0.0-alpha.5','createSocket','dispose','@univerjs-pro/collaboration-client-node','defineProperty','object','send','859200lEVDrm','string','decorate','customHeaders','packageName','getOwnPropertyDescriptor','_registerDependencies','_httpService','length','_configService','open','_injector','toPrimitive','354695TdpVvj','getConfig','iterator','105dOnAjL','message','pipe','setConfig','1161305OqhFpu','set','_doCreateSocket','51836wJuoSj','version','2967714TXlsvX','pluginName','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','33048XrkbuD','function','error','next','removeEventListener','close','call','prototype','add','onStarting','2258523CpAIZW','constructor','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'];_0x457c=function(){return _0x4687de;};return _0x457c();}function w(_0x498a7c,_0x4ad69f,_0x33b57a,_0xc6a8cb){const _0x3cd78f=_0x6f2f3f;var _0xa49b6a=arguments['length'],_0xa2969c=_0xa49b6a<0x3?_0x4ad69f:_0xc6a8cb===null?_0xc6a8cb=Object[_0x3cd78f(0xde)](_0x4ad69f,_0x33b57a):_0xc6a8cb,_0x1053dd;if(typeof Reflect==_0x3cd78f(0xd7)&&typeof Reflect[_0x3cd78f(0xdb)]=='function')_0xa2969c=Reflect['decorate'](_0x498a7c,_0x4ad69f,_0x33b57a,_0xc6a8cb);else{for(var _0x3314b=_0x498a7c[_0x3cd78f(0xe1)]-0x1;_0x3314b>=0x0;_0x3314b--)(_0x1053dd=_0x498a7c[_0x3314b])&&(_0xa2969c=(_0xa49b6a<0x3?_0x1053dd(_0xa2969c):_0xa49b6a>0x3?_0x1053dd(_0x4ad69f,_0x33b57a,_0xa2969c):_0x1053dd(_0x4ad69f,_0x33b57a))||_0xa2969c);}return _0xa49b6a>0x3&&_0xa2969c&&Object[_0x3cd78f(0xd6)](_0x4ad69f,_0x33b57a,_0xa2969c),_0xa2969c;}let T=class extends _0x1ebedc{constructor(_0x1b5837){const _0x13e1f7=_0x6f2f3f;super(),this[_0x13e1f7(0xe2)]=_0x1b5837;}[_0x6f2f3f(0xd3)](_0x458cc6){const _0x43b61b=_0x6f2f3f;var _0xb62a0f;let _0x1441d1=((_0xb62a0f=this[_0x43b61b(0xe2)][_0x43b61b(0xe7)](_0x5e7c43))==null?void 0x0:_0xb62a0f['customHeaders'])||{};try{let _0x369b96=new _0x1c8900(_0x458cc6,{'headers':{..._0x1441d1}}),_0x47ef5b=new _0x2b3acc();return{'URL':_0x458cc6,'close':(_0x281e7b,_0x53ff8d)=>{const _0x354183=_0x43b61b;_0x369b96['close'](_0x281e7b,_0x53ff8d),_0x47ef5b[_0x354183(0xd4)]();},'send':_0x2601e1=>{const _0x5d3c57=_0x43b61b;_0x369b96[_0x5d3c57(0xd8)](_0x2601e1);},'open$':new _0x165fc0(_0x3f3171=>{const _0x3c8ac6=_0x43b61b;let _0x42780a=_0x1afd47=>_0x3f3171[_0x3c8ac6(0xc4)](_0x1afd47);_0x369b96[_0x3c8ac6(0xce)]('open',_0x42780a),_0x47ef5b[_0x3c8ac6(0xc9)](_0x239723(()=>_0x369b96[_0x3c8ac6(0xc5)](_0x3c8ac6(0xe3),_0x42780a)));})[_0x43b61b(0xb7)](_0x5b23a5()),'close$':new _0x165fc0(_0x53da4b=>{const _0x4e28af=_0x43b61b;let _0x5906b7=_0x4c3a92=>_0x53da4b[_0x4e28af(0xc4)](_0x4c3a92);_0x369b96[_0x4e28af(0xce)](_0x4e28af(0xc6),_0x5906b7),_0x47ef5b['add'](_0x239723(()=>_0x369b96[_0x4e28af(0xc5)](_0x4e28af(0xc6),_0x5906b7)));})['pipe'](_0x5b23a5()),'error$':new _0x165fc0(_0x1da99e=>{const _0x2922c5=_0x43b61b;let _0x3d268e=_0x182e66=>_0x1da99e[_0x2922c5(0xc4)](_0x182e66);_0x369b96[_0x2922c5(0xce)]('error',_0x3d268e),_0x47ef5b['add'](_0x239723(()=>_0x369b96[_0x2922c5(0xc5)]('error',_0x3d268e)));})[_0x43b61b(0xb7)](_0x5b23a5()),'message$':new _0x165fc0(_0x239cfd=>{const _0x705346=_0x43b61b;let _0x4cda38=_0xb4469f=>_0x239cfd['next'](_0xb4469f);_0x369b96['addEventListener'](_0x705346(0xb6),_0x4cda38),_0x47ef5b[_0x705346(0xc9)](_0x239723(()=>_0x369b96[_0x705346(0xc5)](_0x705346(0xb6),_0x4cda38)));})[_0x43b61b(0xb7)](_0x5b23a5())};}catch(_0x1c57db){return console[_0x43b61b(0xc3)](_0x1c57db),null;}}};T=w([C(0x0,_0x3a7a90)],T);function E(_0x30d0b6){'@babel/helpers - typeof';const _0x44f5f8=_0x6f2f3f;return E=typeof Symbol==_0x44f5f8(0xc2)&&typeof Symbol[_0x44f5f8(0xe8)]=='symbol'?function(_0x2454bc){return typeof _0x2454bc;}:function(_0x31642d){const _0x251c4e=_0x44f5f8;return _0x31642d&&typeof Symbol=='function'&&_0x31642d[_0x251c4e(0xcc)]===Symbol&&_0x31642d!==Symbol[_0x251c4e(0xc8)]?'symbol':typeof _0x31642d;},E(_0x30d0b6);}function D(_0x282819,_0x38763a){const _0x4e1f3c=_0x6f2f3f;if(E(_0x282819)!=_0x4e1f3c(0xd7)||!_0x282819)return _0x282819;var _0x168bc1=_0x282819[Symbol[_0x4e1f3c(0xe5)]];if(_0x168bc1!==void 0x0){var _0x5a28d6=_0x168bc1[_0x4e1f3c(0xc7)](_0x282819,_0x38763a||'default');if(E(_0x5a28d6)!=_0x4e1f3c(0xd7))return _0x5a28d6;throw TypeError(_0x4e1f3c(0xc0));}return(_0x38763a===_0x4e1f3c(0xda)?String:Number)(_0x282819);}function O(_0x1bdd37){const _0x2dbaeb=_0x6f2f3f;var _0x4958bc=D(_0x1bdd37,_0x2dbaeb(0xda));return E(_0x4958bc)=='symbol'?_0x4958bc:_0x4958bc+'';}function k(_0x28bff3,_0x57ecc3,_0x4989bf){const _0x3a962f=_0x6f2f3f;return(_0x57ecc3=O(_0x57ecc3))in _0x28bff3?Object[_0x3a962f(0xd6)](_0x28bff3,_0x57ecc3,{'value':_0x4989bf,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x28bff3[_0x57ecc3]=_0x4989bf,_0x28bff3;}function _0x5431(_0xa831ad,_0x4e5666){_0xa831ad=_0xa831ad-0xb6;const _0x457cb0=_0x457c();let _0x543115=_0x457cb0[_0xa831ad];return _0x543115;}let A=class extends _0xa4996a{constructor(_0x370fd9=S,_0x91d76b,_0x299f02){const _0x2e8fb5=_0x6f2f3f;super(),this[_0x2e8fb5(0xd0)]=_0x370fd9,this[_0x2e8fb5(0xe2)]=_0x91d76b,this['_injector']=_0x299f02;let {..._0x39d796}=_0x53778d({},S,this[_0x2e8fb5(0xd0)]);this[_0x2e8fb5(0xe2)][_0x2e8fb5(0xb8)]('collaboration-client-node.config',_0x39d796);}[_0x6f2f3f(0xca)](){const _0x3aaaee=_0x6f2f3f;this[_0x3aaaee(0xdf)]();}[_0x6f2f3f(0xdf)](){const _0x48b367=_0x6f2f3f;_0x5d402c(this[_0x48b367(0xe4)],[[_0x460b5a,{'useClass':T}]]);}};k(A,_0x6f2f3f(0xbf),_0x6f2f3f(0xcd)),k(A,_0x6f2f3f(0xdd),b),k(A,_0x6f2f3f(0xbd),x),A=w([_0x2f5f78(_0x3e3489),C(0x1,_0x3a7a90),C(0x2,_0x3babd1(_0x5d8c04))],A);let j=class extends _0x259f6f{constructor(_0x5c11cd,_0x1a8288,_0x591763,_0x15dd77,_0x55ccaa){const _0x5548f4=_0x6f2f3f;super(_0x5c11cd,_0x1a8288,_0x591763,_0x15dd77,_0x55ccaa);let _0x31d715=this[_0x5548f4(0xe2)][_0x5548f4(0xe7)](_0x5e7c43);this[_0x5548f4(0xe0)][_0x5548f4(0xcf)]({'interceptor':(_0x1f5039,_0x5ace85)=>{const _0x5c8153=_0x5548f4;let _0x1480c2=_0x1f5039['headers'];if(_0x31d715!=null&&_0x31d715[_0x5c8153(0xdc)]){for(let _0x4f5b1c in _0x31d715[_0x5c8153(0xdc)])_0x1480c2[_0x5c8153(0xba)](_0x4f5b1c,_0x31d715[_0x5c8153(0xdc)][_0x4f5b1c]);}return _0x5ace85(_0x1f5039);}});}async[_0x6f2f3f(0xd3)](_0x2b905a){const _0x4712d1=_0x6f2f3f;return this[_0x4712d1(0xbb)](_0x2b905a);}};j=w([C(0x0,_0x3babd1(_0x5d8c04)),C(0x1,_0x3babd1(_0x377abe)),C(0x2,_0x3a7a90),C(0x3,_0x34b83e),C(0x4,_0x6cc045)],j);export{j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0x5cda16=_0x20c8;(function(_0x2bbdb5,_0x55cc11){const _0x2d5316=_0x20c8,_0x313545=_0x2bbdb5();while(!![]){try{const _0x3fd490=-parseInt(_0x2d5316(0x189))/0x1*(-parseInt(_0x2d5316(0x1af))/0x2)+-parseInt(_0x2d5316(0x1ae))/0x3*(parseInt(_0x2d5316(0x1a3))/0x4)+parseInt(_0x2d5316(0x1b3))/0x5*(-parseInt(_0x2d5316(0x18b))/0x6)+-parseInt(_0x2d5316(0x1a9))/0x7+-parseInt(_0x2d5316(0x1b4))/0x8+parseInt(_0x2d5316(0x18e))/0x9+parseInt(_0x2d5316(0x1ac))/0xa;if(_0x3fd490===_0x55cc11)break;else _0x313545['push'](_0x313545['shift']());}catch(_0x58f603){_0x313545['push'](_0x313545['shift']());}}}(_0x307f,0xbd590));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1e26a3,CollaborationSocketService as _0x34cc33,UniverCollaborationClientPlugin as _0x179376}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x2f70f7,Disposable as _0x274d29,DisposableCollection as _0x4f6dd7,IConfigService as _0x16d363,ILogService as _0x5c3772,Inject as _0x499c14,Injector as _0x207556,Plugin as _0x51ac31,merge as _0x40abab,registerDependencies as _0x1a53a2,toDisposable as _0x274a58}from'@univerjs/core';import{HTTPService as _0x988b6c,ISocketService as _0x5d3214}from'@univerjs/network';import{Observable as _0x706c8a,share as _0x96d6e5}from'rxjs';import{WebSocket as _0x566053}from'ws';function _0x307f(){const _0x50ab35=['defineProperty','createSocket','onStarting','customHeaders','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','2580592KAyVic','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','add','12761690GExUjd','packageName','3JXqYjx','2cgcpYX','getConfig','next','_httpService','65hnUslw','10049136jlmHOh','pluginName','string','_doCreateSocket','call','addEventListener','1067908xGhExS','error','267114ietTgI','function','close','13291911AUcuHb','_config','object','default','symbol','decorate','_registerDependencies','_injector','getOwnPropertyDescriptor','@univerjs-pro/collaboration-client-node','prototype','registerHTTPInterceptor','toPrimitive','_configService','length','send','removeEventListener','1.0.0-alpha.7','headers','constructor','pipe','3367372ctaidv'];_0x307f=function(){return _0x50ab35;};return _0x307f();}import{ISnapshotServerService as _0x1e8a53}from'@univerjs-pro/collaboration';var b=_0x5cda16(0x197),x=_0x5cda16(0x19f);const S={};function _0x20c8(_0x223b98,_0x2f6231){_0x223b98=_0x223b98-0x188;const _0x307f81=_0x307f();let _0x20c8e3=_0x307f81[_0x223b98];return _0x20c8e3;}function C(_0x4733b5,_0x553cb8){return function(_0x54741e,_0x4c92dd){_0x553cb8(_0x54741e,_0x4c92dd,_0x4733b5);};}function w(_0x483c9b,_0x5f6a43,_0x516acc,_0x4a96a5){const _0x488a07=_0x5cda16;var _0xb11651=arguments[_0x488a07(0x19c)],_0xfc6dae=_0xb11651<0x3?_0x5f6a43:_0x4a96a5===null?_0x4a96a5=Object[_0x488a07(0x196)](_0x5f6a43,_0x516acc):_0x4a96a5,_0x570709;if(typeof Reflect==_0x488a07(0x190)&&typeof Reflect[_0x488a07(0x193)]==_0x488a07(0x18c))_0xfc6dae=Reflect[_0x488a07(0x193)](_0x483c9b,_0x5f6a43,_0x516acc,_0x4a96a5);else{for(var _0x39cd85=_0x483c9b[_0x488a07(0x19c)]-0x1;_0x39cd85>=0x0;_0x39cd85--)(_0x570709=_0x483c9b[_0x39cd85])&&(_0xfc6dae=(_0xb11651<0x3?_0x570709(_0xfc6dae):_0xb11651>0x3?_0x570709(_0x5f6a43,_0x516acc,_0xfc6dae):_0x570709(_0x5f6a43,_0x516acc))||_0xfc6dae);}return _0xb11651>0x3&&_0xfc6dae&&Object[_0x488a07(0x1a4)](_0x5f6a43,_0x516acc,_0xfc6dae),_0xfc6dae;}let T=class extends _0x274d29{constructor(_0x5bb3b2){const _0x4db1ab=_0x5cda16;super(),this[_0x4db1ab(0x19b)]=_0x5bb3b2;}['createSocket'](_0x247160){const _0x3e6da3=_0x5cda16;var _0x9b4f02;let _0x53b27b=((_0x9b4f02=this['_configService'][_0x3e6da3(0x1b0)](_0x1e26a3))==null?void 0x0:_0x9b4f02[_0x3e6da3(0x1a7)])||{};try{let _0x2516d5=new _0x566053(_0x247160,{'headers':{..._0x53b27b}}),_0x194bdc=new _0x4f6dd7();return{'URL':_0x247160,'close':(_0x3e6ef2,_0x3e4cca)=>{_0x2516d5['close'](_0x3e6ef2,_0x3e4cca),_0x194bdc['dispose']();},'send':_0x33bb57=>{const _0xcf954b=_0x3e6da3;_0x2516d5[_0xcf954b(0x19d)](_0x33bb57);},'open$':new _0x706c8a(_0x4c8d04=>{const _0x1f88a5=_0x3e6da3;let _0x4056e4=_0x1028a6=>_0x4c8d04[_0x1f88a5(0x1b1)](_0x1028a6);_0x2516d5[_0x1f88a5(0x188)]('open',_0x4056e4),_0x194bdc[_0x1f88a5(0x1ab)](_0x274a58(()=>_0x2516d5[_0x1f88a5(0x19e)]('open',_0x4056e4)));})[_0x3e6da3(0x1a2)](_0x96d6e5()),'close$':new _0x706c8a(_0x3e8f83=>{const _0x4b0393=_0x3e6da3;let _0x4bbd2a=_0x1a9744=>_0x3e8f83['next'](_0x1a9744);_0x2516d5[_0x4b0393(0x188)](_0x4b0393(0x18d),_0x4bbd2a),_0x194bdc['add'](_0x274a58(()=>_0x2516d5[_0x4b0393(0x19e)](_0x4b0393(0x18d),_0x4bbd2a)));})[_0x3e6da3(0x1a2)](_0x96d6e5()),'error$':new _0x706c8a(_0x147046=>{const _0x473d15=_0x3e6da3;let _0x26bd70=_0x505b77=>_0x147046[_0x473d15(0x1b1)](_0x505b77);_0x2516d5[_0x473d15(0x188)](_0x473d15(0x18a),_0x26bd70),_0x194bdc[_0x473d15(0x1ab)](_0x274a58(()=>_0x2516d5[_0x473d15(0x19e)](_0x473d15(0x18a),_0x26bd70)));})[_0x3e6da3(0x1a2)](_0x96d6e5()),'message$':new _0x706c8a(_0x1f1bd6=>{const _0x4d9413=_0x3e6da3;let _0x5b9e0d=_0x1379e2=>_0x1f1bd6[_0x4d9413(0x1b1)](_0x1379e2);_0x2516d5['addEventListener']('message',_0x5b9e0d),_0x194bdc['add'](_0x274a58(()=>_0x2516d5['removeEventListener']('message',_0x5b9e0d)));})['pipe'](_0x96d6e5())};}catch(_0x4c1fe9){return console['error'](_0x4c1fe9),null;}}};T=w([C(0x0,_0x16d363)],T);function E(_0x6fb48d){'@babel/helpers - typeof';return E=typeof Symbol=='function'&&typeof Symbol['iterator']=='symbol'?function(_0x80ce80){return typeof _0x80ce80;}:function(_0x4db599){const _0xf0c7e7=_0x20c8;return _0x4db599&&typeof Symbol==_0xf0c7e7(0x18c)&&_0x4db599[_0xf0c7e7(0x1a1)]===Symbol&&_0x4db599!==Symbol[_0xf0c7e7(0x198)]?_0xf0c7e7(0x192):typeof _0x4db599;},E(_0x6fb48d);}function D(_0x30b10d,_0x9ac783){const _0x8a51b0=_0x5cda16;if(E(_0x30b10d)!='object'||!_0x30b10d)return _0x30b10d;var _0xcc83b1=_0x30b10d[Symbol[_0x8a51b0(0x19a)]];if(_0xcc83b1!==void 0x0){var _0x4a08fd=_0xcc83b1[_0x8a51b0(0x1b8)](_0x30b10d,_0x9ac783||_0x8a51b0(0x191));if(E(_0x4a08fd)!=_0x8a51b0(0x190))return _0x4a08fd;throw TypeError(_0x8a51b0(0x1a8));}return(_0x9ac783===_0x8a51b0(0x1b6)?String:Number)(_0x30b10d);}function O(_0x143c5d){const _0x2a367f=_0x5cda16;var _0x3cec51=D(_0x143c5d,_0x2a367f(0x1b6));return E(_0x3cec51)=='symbol'?_0x3cec51:_0x3cec51+'';}function k(_0x3f8e54,_0x120ad0,_0x1d5a06){return(_0x120ad0=O(_0x120ad0))in _0x3f8e54?Object['defineProperty'](_0x3f8e54,_0x120ad0,{'value':_0x1d5a06,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3f8e54[_0x120ad0]=_0x1d5a06,_0x3f8e54;}let A=class extends _0x51ac31{constructor(_0x2430c9=S,_0x145b45,_0x20fb2f){const _0x15638c=_0x5cda16;super(),this['_config']=_0x2430c9,this['_configService']=_0x145b45,this[_0x15638c(0x195)]=_0x20fb2f;let {..._0x394c74}=_0x40abab({},S,this[_0x15638c(0x18f)]);this['_configService']['setConfig']('collaboration-client-node.config',_0x394c74);}[_0x5cda16(0x1a6)](){this['_registerDependencies']();}[_0x5cda16(0x194)](){const _0x71e4c0=_0x5cda16;_0x1a53a2(this[_0x71e4c0(0x195)],[[_0x5d3214,{'useClass':T}]]);}};k(A,_0x5cda16(0x1b5),_0x5cda16(0x1aa)),k(A,_0x5cda16(0x1ad),b),k(A,'version',x),A=w([_0x2f70f7(_0x179376),C(0x1,_0x16d363),C(0x2,_0x499c14(_0x207556))],A);let j=class extends _0x34cc33{constructor(_0x181bc7,_0x4ba23e,_0x44c783,_0x47725a,_0x43f43b){const _0x4e1a4f=_0x5cda16;super(_0x181bc7,_0x4ba23e,_0x44c783,_0x47725a,_0x43f43b);let _0x126b21=this[_0x4e1a4f(0x19b)]['getConfig'](_0x1e26a3);this[_0x4e1a4f(0x1b2)][_0x4e1a4f(0x199)]({'interceptor':(_0xeb0a3,_0x2cdec0)=>{const _0x15eceb=_0x4e1a4f;let _0x5a4da4=_0xeb0a3[_0x15eceb(0x1a0)];if(_0x126b21!=null&&_0x126b21[_0x15eceb(0x1a7)]){for(let _0x5ede87 in _0x126b21[_0x15eceb(0x1a7)])_0x5a4da4['set'](_0x5ede87,_0x126b21[_0x15eceb(0x1a7)][_0x5ede87]);}return _0x2cdec0(_0xeb0a3);}});}async[_0x5cda16(0x1a5)](_0x1781dd){const _0x519268=_0x5cda16;return this[_0x519268(0x1b7)](_0x1781dd);}};j=w([C(0x0,_0x499c14(_0x207556)),C(0x1,_0x499c14(_0x988b6c)),C(0x2,_0x16d363),C(0x3,_0x5c3772),C(0x4,_0x1e8a53)],j);export{j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x2ea0(_0x446478,_0x3aab32){_0x446478=_0x446478-0x1e7;const _0x37bad0=_0x37ba();let _0x2ea0f0=_0x37bad0[_0x446478];return _0x2ea0f0;}function _0x37ba(){const _0x4ad392=['_injector','createSocket','toStringTag','length','1108095unDxjh','toPrimitive','6226947EjXqrA','ISnapshotServerService','IConfigService','dispose','default','60nxRwwG','iterator','setConfig','collaboration-client-node.config','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','_configService','UniverCore','Observable','@univerjs/core','customHeaders','30mtvUwg','Module','HTTPService','removeEventListener','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','_doCreateSocket','570792SroFyJ','addEventListener','_config','2128680dLpYOA','share','UniverProCollaborationClientNode','open','string','object','onStarting','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','DependentOn','toDisposable','send','close','@univerjs-pro/collaboration-client','16CXksQz','message','Inject','getConfig','function','6671252OeFeZx','merge','amd','next','registerDependencies','UniverProCollaborationClient','defineProperty','DisposableCollection','rxjs','pipe','Disposable','UniverNetwork','114388QHfnuY','add','Injector','ILogService','Plugin','symbol','WebSocket','pluginName','error','prototype','decorate','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','exports','_registerDependencies','134600btJYxV'];_0x37ba=function(){return _0x4ad392;};return _0x37ba();}(function(_0x162eb4,_0x1850d4){const _0x32b71d=_0x2ea0,_0x24fbe3=_0x162eb4();while(!![]){try{const _0x21d482=-parseInt(_0x32b71d(0x217))/0x1*(parseInt(_0x32b71d(0x206))/0x2)+-parseInt(_0x32b71d(0x22a))/0x3+parseInt(_0x32b71d(0x1f6))/0x4+parseInt(_0x32b71d(0x225))/0x5*(parseInt(_0x32b71d(0x231))/0x6)+-parseInt(_0x32b71d(0x20b))/0x7+parseInt(_0x32b71d(0x1f9))/0x8+parseInt(_0x32b71d(0x22c))/0x9*(parseInt(_0x32b71d(0x1f0))/0xa);if(_0x21d482===_0x1850d4)break;else _0x24fbe3['push'](_0x24fbe3['shift']());}catch(_0x21b257){_0x24fbe3['push'](_0x24fbe3['shift']());}}}(_0x37ba,0x7e01f),function(_0x5d3e28,_0xaa32e1){const _0x10f1ce=_0x2ea0;typeof exports==_0x10f1ce(0x1fe)&&typeof module<'u'?_0xaa32e1(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define==_0x10f1ce(0x20a)&&define[_0x10f1ce(0x20d)]?define([_0x10f1ce(0x223),_0x10f1ce(0x205),_0x10f1ce(0x1ee),'@univerjs/network',_0x10f1ce(0x213),'@univerjs-pro/collaboration'],_0xaa32e1):(_0x5d3e28=typeof globalThis<'u'?globalThis:_0x5d3e28||self,_0xaa32e1(_0x5d3e28[_0x10f1ce(0x1fb)]={},_0x5d3e28[_0x10f1ce(0x210)],_0x5d3e28[_0x10f1ce(0x1ec)],_0x5d3e28[_0x10f1ce(0x216)],_0x5d3e28[_0x10f1ce(0x213)],_0x5d3e28['UniverProCollaboration']));}(this,function(_0x54a4f6,_0x46bc4b,_0xfc9632,_0x2cca83,_0xe44bf7,_0x5b26f2){const _0x35adfa=_0x2ea0;Object['defineProperty'](_0x54a4f6,Symbol[_0x35adfa(0x228)],{'value':_0x35adfa(0x1f1)});var _0x2bd88b=(_0x476c27,_0xc8950e)=>()=>(_0xc8950e||(_0x476c27((_0xc8950e={'exports':{}})[_0x35adfa(0x223)],_0xc8950e),_0x476c27=null),_0xc8950e[_0x35adfa(0x223)]),_0x29acd5='@univerjs-pro/collaboration-client-node',_0x349fa4='1.0.0-alpha.5';let _0x3c254c={};var _0x3aab01=_0x2bd88b((_0x597f3e,_0x13102a)=>{const _0x95244a=_0x35adfa;_0x13102a[_0x95244a(0x223)]=function(){const _0xf3630e=_0x95244a;throw Error(_0xf3630e(0x222));};})();function _0x1637a0(_0x5d203c,_0x35afa6){return function(_0x3043f1,_0x596712){_0x35afa6(_0x3043f1,_0x596712,_0x5d203c);};}function _0x38a54a(_0x5d92f9,_0x178bb8,_0x1e0619,_0x2be593){const _0x4e9825=_0x35adfa;var _0x5bd34f=arguments['length'],_0x3d1b25=_0x5bd34f<0x3?_0x178bb8:_0x2be593===null?_0x2be593=Object['getOwnPropertyDescriptor'](_0x178bb8,_0x1e0619):_0x2be593,_0x546032;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x4e9825(0x20a))_0x3d1b25=Reflect[_0x4e9825(0x221)](_0x5d92f9,_0x178bb8,_0x1e0619,_0x2be593);else{for(var _0x17935d=_0x5d92f9[_0x4e9825(0x229)]-0x1;_0x17935d>=0x0;_0x17935d--)(_0x546032=_0x5d92f9[_0x17935d])&&(_0x3d1b25=(_0x5bd34f<0x3?_0x546032(_0x3d1b25):_0x5bd34f>0x3?_0x546032(_0x178bb8,_0x1e0619,_0x3d1b25):_0x546032(_0x178bb8,_0x1e0619))||_0x3d1b25);}return _0x5bd34f>0x3&&_0x3d1b25&&Object[_0x4e9825(0x211)](_0x178bb8,_0x1e0619,_0x3d1b25),_0x3d1b25;}let _0x507bf0=class extends _0xfc9632[_0x35adfa(0x215)]{constructor(_0x473ce8){const _0x51919a=_0x35adfa;super(),this[_0x51919a(0x1eb)]=_0x473ce8;}[_0x35adfa(0x227)](_0x5e189f){const _0x11696b=_0x35adfa;var _0x3e62dd;let _0x3a59cb=((_0x3e62dd=this['_configService'][_0x11696b(0x209)](_0x46bc4b[_0x11696b(0x1ea)]))==null?void 0x0:_0x3e62dd[_0x11696b(0x1ef)])||{};try{let _0x5e3646=new _0x3aab01[(_0x11696b(0x21d))](_0x5e189f,{'headers':{..._0x3a59cb}}),_0x329f32=new _0xfc9632[(_0x11696b(0x212))]();return{'URL':_0x5e189f,'close':(_0x427e30,_0x17d894)=>{const _0x21d7f4=_0x11696b;_0x5e3646[_0x21d7f4(0x204)](_0x427e30,_0x17d894),_0x329f32[_0x21d7f4(0x22f)]();},'send':_0x3e1c52=>{const _0x125f69=_0x11696b;_0x5e3646[_0x125f69(0x203)](_0x3e1c52);},'open$':new _0xe44bf7[(_0x11696b(0x1ed))](_0x24aaae=>{const _0x117761=_0x11696b;let _0x266fd9=_0x3691e7=>_0x24aaae[_0x117761(0x20e)](_0x3691e7);_0x5e3646['addEventListener'](_0x117761(0x1fc),_0x266fd9),_0x329f32['add']((0x0,_0xfc9632[_0x117761(0x202)])(()=>_0x5e3646[_0x117761(0x1f3)](_0x117761(0x1fc),_0x266fd9)));})[_0x11696b(0x214)]((0x0,_0xe44bf7[_0x11696b(0x1fa)])()),'close$':new _0xe44bf7['Observable'](_0x5656c9=>{const _0x951365=_0x11696b;let _0x51af4d=_0x362f58=>_0x5656c9[_0x951365(0x20e)](_0x362f58);_0x5e3646[_0x951365(0x1f7)](_0x951365(0x204),_0x51af4d),_0x329f32[_0x951365(0x218)]((0x0,_0xfc9632[_0x951365(0x202)])(()=>_0x5e3646[_0x951365(0x1f3)](_0x951365(0x204),_0x51af4d)));})[_0x11696b(0x214)]((0x0,_0xe44bf7[_0x11696b(0x1fa)])()),'error$':new _0xe44bf7[(_0x11696b(0x1ed))](_0x480095=>{const _0x23bb22=_0x11696b;let _0x20ade6=_0x553b74=>_0x480095[_0x23bb22(0x20e)](_0x553b74);_0x5e3646['addEventListener'](_0x23bb22(0x21f),_0x20ade6),_0x329f32[_0x23bb22(0x218)]((0x0,_0xfc9632[_0x23bb22(0x202)])(()=>_0x5e3646[_0x23bb22(0x1f3)](_0x23bb22(0x21f),_0x20ade6)));})[_0x11696b(0x214)]((0x0,_0xe44bf7[_0x11696b(0x1fa)])()),'message$':new _0xe44bf7[(_0x11696b(0x1ed))](_0x4701d2=>{const _0x5c7c13=_0x11696b;let _0x4b24a7=_0x45634b=>_0x4701d2[_0x5c7c13(0x20e)](_0x45634b);_0x5e3646[_0x5c7c13(0x1f7)](_0x5c7c13(0x207),_0x4b24a7),_0x329f32['add']((0x0,_0xfc9632[_0x5c7c13(0x202)])(()=>_0x5e3646[_0x5c7c13(0x1f3)](_0x5c7c13(0x207),_0x4b24a7)));})[_0x11696b(0x214)]((0x0,_0xe44bf7[_0x11696b(0x1fa)])())};}catch(_0x31388e){return console[_0x11696b(0x21f)](_0x31388e),null;}}};_0x507bf0=_0x38a54a([_0x1637a0(0x0,_0xfc9632['IConfigService'])],_0x507bf0);function _0x858994(_0x49c856){'@babel/helpers - typeof';const _0x5b3da8=_0x35adfa;return _0x858994=typeof Symbol==_0x5b3da8(0x20a)&&typeof Symbol[_0x5b3da8(0x1e7)]==_0x5b3da8(0x21c)?function(_0x56665b){return typeof _0x56665b;}:function(_0x2bcfbe){const _0x2414ae=_0x5b3da8;return _0x2bcfbe&&typeof Symbol=='function'&&_0x2bcfbe['constructor']===Symbol&&_0x2bcfbe!==Symbol[_0x2414ae(0x220)]?_0x2414ae(0x21c):typeof _0x2bcfbe;},_0x858994(_0x49c856);}function _0xd1d2f6(_0x241a91,_0x5a306c){const _0x466d1d=_0x35adfa;if(_0x858994(_0x241a91)!=_0x466d1d(0x1fe)||!_0x241a91)return _0x241a91;var _0x4b72f4=_0x241a91[Symbol[_0x466d1d(0x22b)]];if(_0x4b72f4!==void 0x0){var _0x3852f=_0x4b72f4['call'](_0x241a91,_0x5a306c||_0x466d1d(0x230));if(_0x858994(_0x3852f)!=_0x466d1d(0x1fe))return _0x3852f;throw TypeError(_0x466d1d(0x200));}return(_0x5a306c===_0x466d1d(0x1fd)?String:Number)(_0x241a91);}function _0x38ee8e(_0x20b529){const _0x131a71=_0x35adfa;var _0x1253a9=_0xd1d2f6(_0x20b529,_0x131a71(0x1fd));return _0x858994(_0x1253a9)=='symbol'?_0x1253a9:_0x1253a9+'';}function _0x230d77(_0x4bddf2,_0x4a33df,_0x4f4b5c){const _0x2efcab=_0x35adfa;return(_0x4a33df=_0x38ee8e(_0x4a33df))in _0x4bddf2?Object[_0x2efcab(0x211)](_0x4bddf2,_0x4a33df,{'value':_0x4f4b5c,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4bddf2[_0x4a33df]=_0x4f4b5c,_0x4bddf2;}let _0x1a39a9=class extends _0xfc9632[_0x35adfa(0x21b)]{constructor(_0x2d0c39=_0x3c254c,_0xb423d8,_0x1fb19e){const _0x48f9ee=_0x35adfa;super(),this[_0x48f9ee(0x1f8)]=_0x2d0c39,this['_configService']=_0xb423d8,this[_0x48f9ee(0x226)]=_0x1fb19e;let {..._0x435e77}=(0x0,_0xfc9632[_0x48f9ee(0x20c)])({},_0x3c254c,this[_0x48f9ee(0x1f8)]);this[_0x48f9ee(0x1eb)][_0x48f9ee(0x1e8)](_0x48f9ee(0x1e9),_0x435e77);}[_0x35adfa(0x1ff)](){const _0x484b76=_0x35adfa;this[_0x484b76(0x224)]();}['_registerDependencies'](){const _0x9c995e=_0x35adfa;(0x0,_0xfc9632[_0x9c995e(0x20f)])(this[_0x9c995e(0x226)],[[_0x2cca83['ISocketService'],{'useClass':_0x507bf0}]]);}};_0x230d77(_0x1a39a9,_0x35adfa(0x21e),_0x35adfa(0x1f4)),_0x230d77(_0x1a39a9,'packageName',_0x29acd5),_0x230d77(_0x1a39a9,'version',_0x349fa4),_0x1a39a9=_0x38a54a([(0x0,_0xfc9632[_0x35adfa(0x201)])(_0x46bc4b['UniverCollaborationClientPlugin']),_0x1637a0(0x1,_0xfc9632[_0x35adfa(0x22e)]),_0x1637a0(0x2,(0x0,_0xfc9632[_0x35adfa(0x208)])(_0xfc9632[_0x35adfa(0x219)]))],_0x1a39a9);let _0x18b547=class extends _0x46bc4b['CollaborationSocketService']{constructor(_0x22748b,_0x38ac0c,_0x46018f,_0x265df4,_0x278adc){const _0x21fc84=_0x35adfa;super(_0x22748b,_0x38ac0c,_0x46018f,_0x265df4,_0x278adc);let _0x13b0af=this['_configService'][_0x21fc84(0x209)](_0x46bc4b[_0x21fc84(0x1ea)]);this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x33399d,_0x14df56)=>{const _0x4a2ab7=_0x21fc84;let _0x10a476=_0x33399d['headers'];if(_0x13b0af!=null&&_0x13b0af['customHeaders']){for(let _0x4b4833 in _0x13b0af[_0x4a2ab7(0x1ef)])_0x10a476['set'](_0x4b4833,_0x13b0af[_0x4a2ab7(0x1ef)][_0x4b4833]);}return _0x14df56(_0x33399d);}});}async[_0x35adfa(0x227)](_0x172809){const _0x46b724=_0x35adfa;return this[_0x46b724(0x1f5)](_0x172809);}};_0x18b547=_0x38a54a([_0x1637a0(0x0,(0x0,_0xfc9632[_0x35adfa(0x208)])(_0xfc9632[_0x35adfa(0x219)])),_0x1637a0(0x1,(0x0,_0xfc9632['Inject'])(_0x2cca83[_0x35adfa(0x1f2)])),_0x1637a0(0x2,_0xfc9632['IConfigService']),_0x1637a0(0x3,_0xfc9632[_0x35adfa(0x21a)]),_0x1637a0(0x4,_0x5b26f2[_0x35adfa(0x22d)])],_0x18b547),Object[_0x35adfa(0x211)](_0x54a4f6,'NodeCollaborationSocketService',{'enumerable':!0x0,'get':function(){return _0x18b547;}}),Object[_0x35adfa(0x211)](_0x54a4f6,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _0x1a39a9;}});}));
1
+ function _0x1de9(_0x4b141d,_0x4317f1){_0x4b141d=_0x4b141d-0x18b;const _0xb44255=_0xb442();let _0x1de97d=_0xb44255[_0x4b141d];return _0x1de97d;}function _0xb442(){const _0x3bf200=['4UgAbkE','send','2290320oXwEhZ','call','UniverNetwork','setConfig','CollaborationSocketService','headers','registerHTTPInterceptor','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','Inject','toStringTag','474574HqEqlC','length','close','_doCreateSocket','merge','version','@univerjs-pro/collaboration','createSocket','Plugin','customHeaders','@univerjs/core','prototype','constructor','WebSocket','_httpService','UniverProCollaboration','iterator','decorate','pipe','_config','Injector','default','54342WEuAKX','removeEventListener','share','getOwnPropertyDescriptor','287gQmVBK','add','open','ISocketService','ILogService','rxjs','NodeCollaborationSocketService','object','packageName','672531RdJHrF','UniverProCollaborationClient','4051704McinRF','pluginName','Observable','symbol','function','1.0.0-alpha.7','_configService','UniverCollaborationClientPlugin','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','collaboration-client-node.config','next','@univerjs-pro/collaboration-client','HTTPService','string','1762844KvAoVv','onStarting','getConfig','registerDependencies','@univerjs/network','exports','_injector','ISnapshotServerService','IConfigService','addEventListener','toDisposable','message','error','@univerjs-pro/collaboration-client-node','defineProperty','21961638FTWlIW'];_0xb442=function(){return _0x3bf200;};return _0xb442();}(function(_0x5f0980,_0xfb72f2){const _0x1131f0=_0x1de9,_0x39dd8a=_0x5f0980();while(!![]){try{const _0x383f4a=parseInt(_0x1131f0(0x1c6))/0x1+parseInt(_0x1131f0(0x1ba))/0x2*(parseInt(_0x1131f0(0x19a))/0x3)+parseInt(_0x1131f0(0x1aa))/0x4+parseInt(_0x1131f0(0x1bc))/0x5+parseInt(_0x1131f0(0x18d))/0x6*(parseInt(_0x1131f0(0x191))/0x7)+parseInt(_0x1131f0(0x19c))/0x8+-parseInt(_0x1131f0(0x1b9))/0x9;if(_0x383f4a===_0xfb72f2)break;else _0x39dd8a['push'](_0x39dd8a['shift']());}catch(_0x3a02e3){_0x39dd8a['push'](_0x39dd8a['shift']());}}}(_0xb442,0x3f4f9),function(_0x57eeaa,_0xf27bc){const _0x5a4556=_0x1de9;typeof exports==_0x5a4556(0x198)&&typeof module<'u'?_0xf27bc(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define==_0x5a4556(0x1a0)&&define['amd']?define([_0x5a4556(0x1af),_0x5a4556(0x1a7),_0x5a4556(0x1d0),_0x5a4556(0x1ae),'rxjs',_0x5a4556(0x1cc)],_0xf27bc):(_0x57eeaa=typeof globalThis<'u'?globalThis:_0x57eeaa||self,_0xf27bc(_0x57eeaa['UniverProCollaborationClientNode']={},_0x57eeaa[_0x5a4556(0x19b)],_0x57eeaa['UniverCore'],_0x57eeaa[_0x5a4556(0x1be)],_0x57eeaa[_0x5a4556(0x196)],_0x57eeaa[_0x5a4556(0x1d5)]));}(this,function(_0x2a28c3,_0x21977d,_0x29b1e9,_0x1fc00f,_0x562211,_0x66ca4){const _0xeab5f6=_0x1de9;Object[_0xeab5f6(0x1b8)](_0x2a28c3,Symbol[_0xeab5f6(0x1c5)],{'value':'Module'});var _0x1b90af=(_0x45b1e7,_0x2173e2)=>()=>(_0x2173e2||(_0x45b1e7((_0x2173e2={'exports':{}})[_0xeab5f6(0x1af)],_0x2173e2),_0x45b1e7=null),_0x2173e2[_0xeab5f6(0x1af)]),_0xb524a3=_0xeab5f6(0x1b7),_0x37c92d=_0xeab5f6(0x1a1);let _0x80eb7d={};var _0x2d9872=_0x1b90af((_0x9b8bfb,_0x26d908)=>{_0x26d908['exports']=function(){const _0x39d7ae=_0x1de9;throw Error(_0x39d7ae(0x1a4));};})();function _0x258b5b(_0x888ce5,_0xbd1500){return function(_0x278ba7,_0x296d58){_0xbd1500(_0x278ba7,_0x296d58,_0x888ce5);};}function _0x346b7d(_0x22e3d4,_0x2d173f,_0xfc2793,_0x2b4731){const _0x6a3755=_0xeab5f6;var _0x569980=arguments[_0x6a3755(0x1c7)],_0x2853e4=_0x569980<0x3?_0x2d173f:_0x2b4731===null?_0x2b4731=Object[_0x6a3755(0x190)](_0x2d173f,_0xfc2793):_0x2b4731,_0x598368;if(typeof Reflect==_0x6a3755(0x198)&&typeof Reflect[_0x6a3755(0x1d7)]==_0x6a3755(0x1a0))_0x2853e4=Reflect[_0x6a3755(0x1d7)](_0x22e3d4,_0x2d173f,_0xfc2793,_0x2b4731);else{for(var _0x528b9b=_0x22e3d4[_0x6a3755(0x1c7)]-0x1;_0x528b9b>=0x0;_0x528b9b--)(_0x598368=_0x22e3d4[_0x528b9b])&&(_0x2853e4=(_0x569980<0x3?_0x598368(_0x2853e4):_0x569980>0x3?_0x598368(_0x2d173f,_0xfc2793,_0x2853e4):_0x598368(_0x2d173f,_0xfc2793))||_0x2853e4);}return _0x569980>0x3&&_0x2853e4&&Object[_0x6a3755(0x1b8)](_0x2d173f,_0xfc2793,_0x2853e4),_0x2853e4;}let _0x3e13dd=class extends _0x29b1e9['Disposable']{constructor(_0x491fbb){const _0x2631af=_0xeab5f6;super(),this[_0x2631af(0x1a2)]=_0x491fbb;}[_0xeab5f6(0x1cd)](_0x4bc1ea){const _0x4aa48d=_0xeab5f6;var _0x43d7c7;let _0x50c874=((_0x43d7c7=this[_0x4aa48d(0x1a2)][_0x4aa48d(0x1ac)](_0x21977d[_0x4aa48d(0x1c3)]))==null?void 0x0:_0x43d7c7[_0x4aa48d(0x1cf)])||{};try{let _0x4aaf73=new _0x2d9872[(_0x4aa48d(0x1d3))](_0x4bc1ea,{'headers':{..._0x50c874}}),_0x5c1ac4=new _0x29b1e9['DisposableCollection']();return{'URL':_0x4bc1ea,'close':(_0x13cf24,_0xfb24a3)=>{const _0x1a6636=_0x4aa48d;_0x4aaf73[_0x1a6636(0x1c8)](_0x13cf24,_0xfb24a3),_0x5c1ac4['dispose']();},'send':_0x63ea00=>{const _0xf7df20=_0x4aa48d;_0x4aaf73[_0xf7df20(0x1bb)](_0x63ea00);},'open$':new _0x562211[(_0x4aa48d(0x19e))](_0x16455e=>{const _0x2e13dc=_0x4aa48d;let _0x6bc9e6=_0x4b58de=>_0x16455e[_0x2e13dc(0x1a6)](_0x4b58de);_0x4aaf73['addEventListener'](_0x2e13dc(0x193),_0x6bc9e6),_0x5c1ac4[_0x2e13dc(0x192)]((0x0,_0x29b1e9['toDisposable'])(()=>_0x4aaf73[_0x2e13dc(0x18e)](_0x2e13dc(0x193),_0x6bc9e6)));})[_0x4aa48d(0x1d8)]((0x0,_0x562211['share'])()),'close$':new _0x562211[(_0x4aa48d(0x19e))](_0xdf10e3=>{const _0x4fd38a=_0x4aa48d;let _0x389dac=_0x42076f=>_0xdf10e3[_0x4fd38a(0x1a6)](_0x42076f);_0x4aaf73[_0x4fd38a(0x1b3)]('close',_0x389dac),_0x5c1ac4[_0x4fd38a(0x192)]((0x0,_0x29b1e9[_0x4fd38a(0x1b4)])(()=>_0x4aaf73[_0x4fd38a(0x18e)](_0x4fd38a(0x1c8),_0x389dac)));})[_0x4aa48d(0x1d8)]((0x0,_0x562211['share'])()),'error$':new _0x562211['Observable'](_0x231c5f=>{const _0x213392=_0x4aa48d;let _0x2ab111=_0x536f15=>_0x231c5f[_0x213392(0x1a6)](_0x536f15);_0x4aaf73[_0x213392(0x1b3)](_0x213392(0x1b6),_0x2ab111),_0x5c1ac4[_0x213392(0x192)]((0x0,_0x29b1e9[_0x213392(0x1b4)])(()=>_0x4aaf73[_0x213392(0x18e)]('error',_0x2ab111)));})[_0x4aa48d(0x1d8)]((0x0,_0x562211[_0x4aa48d(0x18f)])()),'message$':new _0x562211[(_0x4aa48d(0x19e))](_0x204fd0=>{const _0x30fd34=_0x4aa48d;let _0x578a99=_0x458a6a=>_0x204fd0[_0x30fd34(0x1a6)](_0x458a6a);_0x4aaf73['addEventListener'](_0x30fd34(0x1b5),_0x578a99),_0x5c1ac4[_0x30fd34(0x192)]((0x0,_0x29b1e9[_0x30fd34(0x1b4)])(()=>_0x4aaf73[_0x30fd34(0x18e)](_0x30fd34(0x1b5),_0x578a99)));})[_0x4aa48d(0x1d8)]((0x0,_0x562211[_0x4aa48d(0x18f)])())};}catch(_0xb82aef){return console[_0x4aa48d(0x1b6)](_0xb82aef),null;}}};_0x3e13dd=_0x346b7d([_0x258b5b(0x0,_0x29b1e9[_0xeab5f6(0x1b2)])],_0x3e13dd);function _0x232c23(_0x5c531a){'@babel/helpers - typeof';const _0x3c14bb=_0xeab5f6;return _0x232c23=typeof Symbol==_0x3c14bb(0x1a0)&&typeof Symbol[_0x3c14bb(0x1d6)]==_0x3c14bb(0x19f)?function(_0x550a1b){return typeof _0x550a1b;}:function(_0x2fd3e1){const _0x37d253=_0x3c14bb;return _0x2fd3e1&&typeof Symbol==_0x37d253(0x1a0)&&_0x2fd3e1[_0x37d253(0x1d2)]===Symbol&&_0x2fd3e1!==Symbol[_0x37d253(0x1d1)]?_0x37d253(0x19f):typeof _0x2fd3e1;},_0x232c23(_0x5c531a);}function _0x2aec87(_0x50c2c0,_0x31749a){const _0x3dd9f8=_0xeab5f6;if(_0x232c23(_0x50c2c0)!=_0x3dd9f8(0x198)||!_0x50c2c0)return _0x50c2c0;var _0x141e96=_0x50c2c0[Symbol['toPrimitive']];if(_0x141e96!==void 0x0){var _0x3315f8=_0x141e96[_0x3dd9f8(0x1bd)](_0x50c2c0,_0x31749a||_0x3dd9f8(0x18c));if(_0x232c23(_0x3315f8)!=_0x3dd9f8(0x198))return _0x3315f8;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x31749a==='string'?String:Number)(_0x50c2c0);}function _0x2b67f8(_0x1616ad){const _0x4081bc=_0xeab5f6;var _0x1807ec=_0x2aec87(_0x1616ad,_0x4081bc(0x1a9));return _0x232c23(_0x1807ec)==_0x4081bc(0x19f)?_0x1807ec:_0x1807ec+'';}function _0x5e6462(_0x51634e,_0x413ba5,_0x335d4a){const _0x496261=_0xeab5f6;return(_0x413ba5=_0x2b67f8(_0x413ba5))in _0x51634e?Object[_0x496261(0x1b8)](_0x51634e,_0x413ba5,{'value':_0x335d4a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x51634e[_0x413ba5]=_0x335d4a,_0x51634e;}let _0x62f332=class extends _0x29b1e9[_0xeab5f6(0x1ce)]{constructor(_0x38419e=_0x80eb7d,_0x1b4781,_0x14aa4a){const _0x11fa9c=_0xeab5f6;super(),this['_config']=_0x38419e,this[_0x11fa9c(0x1a2)]=_0x1b4781,this[_0x11fa9c(0x1b0)]=_0x14aa4a;let {..._0x3ebbb2}=(0x0,_0x29b1e9[_0x11fa9c(0x1ca)])({},_0x80eb7d,this[_0x11fa9c(0x1d9)]);this['_configService'][_0x11fa9c(0x1bf)](_0x11fa9c(0x1a5),_0x3ebbb2);}[_0xeab5f6(0x1ab)](){this['_registerDependencies']();}['_registerDependencies'](){const _0x260081=_0xeab5f6;(0x0,_0x29b1e9[_0x260081(0x1ad)])(this[_0x260081(0x1b0)],[[_0x1fc00f[_0x260081(0x194)],{'useClass':_0x3e13dd}]]);}};_0x5e6462(_0x62f332,_0xeab5f6(0x19d),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),_0x5e6462(_0x62f332,_0xeab5f6(0x199),_0xb524a3),_0x5e6462(_0x62f332,_0xeab5f6(0x1cb),_0x37c92d),_0x62f332=_0x346b7d([(0x0,_0x29b1e9['DependentOn'])(_0x21977d[_0xeab5f6(0x1a3)]),_0x258b5b(0x1,_0x29b1e9[_0xeab5f6(0x1b2)]),_0x258b5b(0x2,(0x0,_0x29b1e9[_0xeab5f6(0x1c4)])(_0x29b1e9[_0xeab5f6(0x18b)]))],_0x62f332);let _0x994b4a=class extends _0x21977d[_0xeab5f6(0x1c0)]{constructor(_0x19bada,_0x5bb8a9,_0x5db681,_0x43f42e,_0x77572d){const _0x4c38e1=_0xeab5f6;super(_0x19bada,_0x5bb8a9,_0x5db681,_0x43f42e,_0x77572d);let _0x1ca5fa=this[_0x4c38e1(0x1a2)][_0x4c38e1(0x1ac)](_0x21977d['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this[_0x4c38e1(0x1d4)][_0x4c38e1(0x1c2)]({'interceptor':(_0x5b5889,_0x47d4c8)=>{const _0x45d11a=_0x4c38e1;let _0x59b9b7=_0x5b5889[_0x45d11a(0x1c1)];if(_0x1ca5fa!=null&&_0x1ca5fa[_0x45d11a(0x1cf)]){for(let _0x5e84af in _0x1ca5fa[_0x45d11a(0x1cf)])_0x59b9b7['set'](_0x5e84af,_0x1ca5fa[_0x45d11a(0x1cf)][_0x5e84af]);}return _0x47d4c8(_0x5b5889);}});}async['createSocket'](_0x887f48){const _0x183b8b=_0xeab5f6;return this[_0x183b8b(0x1c9)](_0x887f48);}};_0x994b4a=_0x346b7d([_0x258b5b(0x0,(0x0,_0x29b1e9['Inject'])(_0x29b1e9[_0xeab5f6(0x18b)])),_0x258b5b(0x1,(0x0,_0x29b1e9['Inject'])(_0x1fc00f[_0xeab5f6(0x1a8)])),_0x258b5b(0x2,_0x29b1e9[_0xeab5f6(0x1b2)]),_0x258b5b(0x3,_0x29b1e9[_0xeab5f6(0x195)]),_0x258b5b(0x4,_0x66ca4[_0xeab5f6(0x1b1)])],_0x994b4a),Object['defineProperty'](_0x2a28c3,_0xeab5f6(0x197),{'enumerable':!0x0,'get':function(){return _0x994b4a;}}),Object['defineProperty'](_0x2a28c3,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _0x62f332;}});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "1.0.0-alpha.5",
3
+ "version": "1.0.0-alpha.7",
4
4
  "private": false,
5
5
  "description": "Node.js collaboration client plugin for Univer Pro.",
6
6
  "author": "DreamNum Co., Ltd. <developer@univer.ai>",
@@ -52,17 +52,17 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "ws": "8.21.0",
55
- "@univerjs-pro/collaboration": "1.0.0-alpha.5",
56
- "@univerjs-pro/collaboration-client": "1.0.0-alpha.5",
57
- "@univerjs/core": "1.0.0-alpha.5",
58
- "@univerjs/network": "1.0.0-alpha.5"
55
+ "@univerjs-pro/collaboration-client": "1.0.0-alpha.7",
56
+ "@univerjs/core": "1.0.0-alpha.7",
57
+ "@univerjs/network": "1.0.0-alpha.7",
58
+ "@univerjs-pro/collaboration": "1.0.0-alpha.7"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@types/ws": "8.18.1",
62
62
  "rxjs": "7.8.2",
63
63
  "typescript": "^6.0.3",
64
64
  "vitest": "^4.1.10",
65
- "@univerjs-infra/shared": "1.0.0-alpha.5"
65
+ "@univerjs-infra/shared": "1.0.0-alpha.7"
66
66
  },
67
67
  "scripts": {
68
68
  "test": "vitest run",