@univerjs-pro/collaboration-client-node 0.25.0 → 1.0.0-alpha.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 _0x4cba16=_0xff38;(function(_0x504101,_0x3f5665){const _0x47cfb1=_0xff38,_0x4614cc=_0x504101();while(!![]){try{const _0x358522=-parseInt(_0x47cfb1(0x1fb))/0x1*(parseInt(_0x47cfb1(0x211))/0x2)+-parseInt(_0x47cfb1(0x225))/0x3*(-parseInt(_0x47cfb1(0x21f))/0x4)+parseInt(_0x47cfb1(0x204))/0x5*(-parseInt(_0x47cfb1(0x205))/0x6)+-parseInt(_0x47cfb1(0x1f4))/0x7*(parseInt(_0x47cfb1(0x1f6))/0x8)+parseInt(_0x47cfb1(0x1eb))/0x9*(parseInt(_0x47cfb1(0x21c))/0xa)+-parseInt(_0x47cfb1(0x1fc))/0xb*(parseInt(_0x47cfb1(0x21e))/0xc)+parseInt(_0x47cfb1(0x215))/0xd*(parseInt(_0x47cfb1(0x20e))/0xe);if(_0x358522===_0x3f5665)break;else _0x4614cc['push'](_0x4614cc['shift']());}catch(_0x231369){_0x4614cc['push'](_0x4614cc['shift']());}}}(_0x1fba,0x97f7c),Object[_0x4cba16(0x226)](exports,Symbol[_0x4cba16(0x1ee)],{'value':_0x4cba16(0x203)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/network'),r=require('rxjs'),i=require('ws'),a=require('@univerjs-pro/collaboration');const o='collaboration-client-node.config',s={};var c='@univerjs-pro/collaboration-client-node',l=_0x4cba16(0x206);function u(_0x4a7249,_0x15bb86){return function(_0x33b1cb,_0x257c85){_0x15bb86(_0x33b1cb,_0x257c85,_0x4a7249);};}function _0xff38(_0x4ed9ad,_0x1de043){_0x4ed9ad=_0x4ed9ad-0x1e1;const _0x1fba11=_0x1fba();let _0xff3809=_0x1fba11[_0x4ed9ad];return _0xff3809;}function d(_0x304fd7,_0x53e0cd,_0x2ff3cd,_0x3da941){const _0x1f674f=_0x4cba16;var _0x59432a=arguments['length'],_0x4d55af=_0x59432a<0x3?_0x53e0cd:_0x3da941===null?_0x3da941=Object['getOwnPropertyDescriptor'](_0x53e0cd,_0x2ff3cd):_0x3da941,_0x5ce9b9;if(typeof Reflect=='object'&&typeof Reflect[_0x1f674f(0x20b)]==_0x1f674f(0x1e8))_0x4d55af=Reflect[_0x1f674f(0x20b)](_0x304fd7,_0x53e0cd,_0x2ff3cd,_0x3da941);else{for(var _0xd5087a=_0x304fd7[_0x1f674f(0x227)]-0x1;_0xd5087a>=0x0;_0xd5087a--)(_0x5ce9b9=_0x304fd7[_0xd5087a])&&(_0x4d55af=(_0x59432a<0x3?_0x5ce9b9(_0x4d55af):_0x59432a>0x3?_0x5ce9b9(_0x53e0cd,_0x2ff3cd,_0x4d55af):_0x5ce9b9(_0x53e0cd,_0x2ff3cd))||_0x4d55af);}return _0x59432a>0x3&&_0x4d55af&&Object['defineProperty'](_0x53e0cd,_0x2ff3cd,_0x4d55af),_0x4d55af;}function _0x1fba(){const _0xb38fc=['onStarting','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','UniverCollaborationClientNodePlugin','default','ISnapshotServerService','CollaborationSocketService','next','Observable','toDisposable','call','function','constructor','open','1619739phmLtP','customHeaders','headers','toStringTag','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','add','version','registerDependencies','close','63eXhLxL','message','1062360etIUdQ','registerHTTPInterceptor','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','DependentOn','send','883331boVLGc','1854655rAhmSp','pluginName','set','_configService','packageName','_httpService','COLLABORATION_CLIENT_NODE_CONFIG_KEY','Module','40RDkFhg','662838vYKmjq','0.25.0','IConfigService','toPrimitive','DisposableCollection','_injector','decorate','Inject','ILogService','27356728ohZtLP','string','ISocketService','2jvecDQ','Injector','HTTPService','addEventListener','13InYgJj','_doCreateSocket','removeEventListener','Disposable','object','createSocket','symbol','40SSVaDz','Plugin','12ixykFF','4wosKSV','pipe','dispose','share','error','UniverCollaborationClientPlugin','3238197ssIFXL','defineProperty','length','getConfig'];_0x1fba=function(){return _0xb38fc;};return _0x1fba();}let f=class extends t[_0x4cba16(0x218)]{constructor(_0x3c93c9){const _0x404025=_0x4cba16;super(),this[_0x404025(0x1ff)]=_0x3c93c9;}['createSocket'](_0x39cf6d){const _0x48a97d=_0x4cba16;var _0x45da89;let _0x550f18=((_0x45da89=this[_0x48a97d(0x1ff)][_0x48a97d(0x228)](e[_0x48a97d(0x1ef)]))==null?void 0x0:_0x45da89[_0x48a97d(0x1ec)])||{};try{let _0x2da835=new i['WebSocket'](_0x39cf6d,{'headers':{..._0x550f18}}),_0x100a0f=new t[(_0x48a97d(0x209))]();return{'URL':_0x39cf6d,'close':(_0x9b907e,_0x3304e4)=>{const _0xe5efa1=_0x48a97d;_0x2da835[_0xe5efa1(0x1f3)](_0x9b907e,_0x3304e4),_0x100a0f[_0xe5efa1(0x221)]();},'send':_0x243f29=>{const _0x1b6ce0=_0x48a97d;_0x2da835[_0x1b6ce0(0x1fa)](_0x243f29);},'open$':new r[(_0x48a97d(0x1e5))](_0x21368f=>{const _0x5c15e5=_0x48a97d;let _0x52766b=_0x255497=>_0x21368f[_0x5c15e5(0x1e4)](_0x255497);_0x2da835[_0x5c15e5(0x214)]('open',_0x52766b),_0x100a0f[_0x5c15e5(0x1f0)]((0x0,t[_0x5c15e5(0x1e6)])(()=>_0x2da835['removeEventListener'](_0x5c15e5(0x1ea),_0x52766b)));})[_0x48a97d(0x220)]((0x0,r[_0x48a97d(0x222)])()),'close$':new r[(_0x48a97d(0x1e5))](_0x42093d=>{const _0x34d8ce=_0x48a97d;let _0x2cd32a=_0x3223af=>_0x42093d[_0x34d8ce(0x1e4)](_0x3223af);_0x2da835['addEventListener'](_0x34d8ce(0x1f3),_0x2cd32a),_0x100a0f[_0x34d8ce(0x1f0)]((0x0,t[_0x34d8ce(0x1e6)])(()=>_0x2da835['removeEventListener'](_0x34d8ce(0x1f3),_0x2cd32a)));})[_0x48a97d(0x220)]((0x0,r['share'])()),'error$':new r[(_0x48a97d(0x1e5))](_0x276a61=>{const _0x4ef437=_0x48a97d;let _0x2a853c=_0x5d9c25=>_0x276a61[_0x4ef437(0x1e4)](_0x5d9c25);_0x2da835[_0x4ef437(0x214)](_0x4ef437(0x223),_0x2a853c),_0x100a0f[_0x4ef437(0x1f0)]((0x0,t['toDisposable'])(()=>_0x2da835[_0x4ef437(0x217)](_0x4ef437(0x223),_0x2a853c)));})[_0x48a97d(0x220)]((0x0,r[_0x48a97d(0x222)])()),'message$':new r['Observable'](_0x3831a9=>{const _0x5edf45=_0x48a97d;let _0x208bca=_0x53d60f=>_0x3831a9[_0x5edf45(0x1e4)](_0x53d60f);_0x2da835[_0x5edf45(0x214)](_0x5edf45(0x1f5),_0x208bca),_0x100a0f[_0x5edf45(0x1f0)]((0x0,t[_0x5edf45(0x1e6)])(()=>_0x2da835['removeEventListener'](_0x5edf45(0x1f5),_0x208bca)));})[_0x48a97d(0x220)]((0x0,r[_0x48a97d(0x222)])())};}catch(_0x51600a){return console[_0x48a97d(0x223)](_0x51600a),null;}}};f=d([u(0x0,t[_0x4cba16(0x207)])],f);function p(_0x4be6bc){'@babel/helpers - typeof';const _0x3b9f78=_0x4cba16;return p=typeof Symbol=='function'&&typeof Symbol['iterator']==_0x3b9f78(0x21b)?function(_0x1ddf4b){return typeof _0x1ddf4b;}:function(_0x422b10){const _0x50a65c=_0x3b9f78;return _0x422b10&&typeof Symbol==_0x50a65c(0x1e8)&&_0x422b10[_0x50a65c(0x1e9)]===Symbol&&_0x422b10!==Symbol['prototype']?_0x50a65c(0x21b):typeof _0x422b10;},p(_0x4be6bc);}function m(_0x132b84,_0x1480d2){const _0x11c3b0=_0x4cba16;if(p(_0x132b84)!='object'||!_0x132b84)return _0x132b84;var _0x227a76=_0x132b84[Symbol[_0x11c3b0(0x208)]];if(_0x227a76!==void 0x0){var _0x55bd65=_0x227a76[_0x11c3b0(0x1e7)](_0x132b84,_0x1480d2||_0x11c3b0(0x1e1));if(p(_0x55bd65)!=_0x11c3b0(0x219))return _0x55bd65;throw TypeError(_0x11c3b0(0x1f8));}return(_0x1480d2===_0x11c3b0(0x20f)?String:Number)(_0x132b84);}function h(_0x224a07){const _0x3d83ae=_0x4cba16;var _0x4237bd=m(_0x224a07,_0x3d83ae(0x20f));return p(_0x4237bd)=='symbol'?_0x4237bd:_0x4237bd+'';}function g(_0x4b780b,_0x5424e9,_0x36d5c0){return(_0x5424e9=h(_0x5424e9))in _0x4b780b?Object['defineProperty'](_0x4b780b,_0x5424e9,{'value':_0x36d5c0,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x4b780b[_0x5424e9]=_0x36d5c0,_0x4b780b;}let _=class extends t[_0x4cba16(0x21d)]{constructor(_0x4b322d=s,_0x312839,_0x21632a){const _0x21f71e=_0x4cba16;super(),this[_0x21f71e(0x1ff)]=_0x312839,this[_0x21f71e(0x20a)]=_0x21632a,this[_0x21f71e(0x1ff)]['setConfig'](o,_0x4b322d);}[_0x4cba16(0x229)](){this['_registerDependencies']();}['_registerDependencies'](){const _0x1003f9=_0x4cba16;(0x0,t[_0x1003f9(0x1f2)])(this[_0x1003f9(0x20a)],[[n[_0x1003f9(0x210)],{'useClass':f}]]);}};g(_,_0x4cba16(0x1fd),_0x4cba16(0x22a)),g(_,_0x4cba16(0x200),c),g(_,_0x4cba16(0x1f1),l),_=d([(0x0,t[_0x4cba16(0x1f9)])(e[_0x4cba16(0x224)]),u(0x1,t[_0x4cba16(0x207)]),u(0x2,(0x0,t[_0x4cba16(0x20c)])(t[_0x4cba16(0x212)]))],_);let v=class extends e[_0x4cba16(0x1e3)]{constructor(_0x564eab,_0x4a3886,_0x316c13,_0x164b0d,_0x56beca){const _0x239483=_0x4cba16;super(_0x564eab,_0x4a3886,_0x316c13,_0x164b0d,_0x56beca);let _0x5255f4=this[_0x239483(0x1ff)][_0x239483(0x228)](e[_0x239483(0x1ef)]);this[_0x239483(0x201)][_0x239483(0x1f7)]({'interceptor':(_0x533aaf,_0x4e1ce5)=>{const _0x4a43f3=_0x239483;let _0x421e77=_0x533aaf[_0x4a43f3(0x1ed)];if(_0x5255f4!=null&&_0x5255f4['customHeaders']){for(let _0xd3f75b in _0x5255f4[_0x4a43f3(0x1ec)])_0x421e77[_0x4a43f3(0x1fe)](_0xd3f75b,_0x5255f4[_0x4a43f3(0x1ec)][_0xd3f75b]);}return _0x4e1ce5(_0x533aaf);}});}async[_0x4cba16(0x21a)](_0x1348b7){const _0x298f64=_0x4cba16;return this[_0x298f64(0x216)](_0x1348b7);}};v=d([u(0x0,(0x0,t[_0x4cba16(0x20c)])(t[_0x4cba16(0x212)])),u(0x1,(0x0,t['Inject'])(n[_0x4cba16(0x213)])),u(0x2,t[_0x4cba16(0x207)]),u(0x3,t[_0x4cba16(0x20d)]),u(0x4,a[_0x4cba16(0x1e2)])],v),exports[_0x4cba16(0x202)]=o,Object[_0x4cba16(0x226)](exports,'NodeCollaborationSocketService',{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x4cba16(0x226)](exports,_0x4cba16(0x22b),{'enumerable':!0x0,'get':function(){return _;}});
1
+ const _0x49dd44=_0x21f7;(function(_0x235a21,_0x793caf){const _0x2c9277=_0x21f7,_0x547665=_0x235a21();while(!![]){try{const _0xd0087e=-parseInt(_0x2c9277(0x102))/0x1+-parseInt(_0x2c9277(0xf4))/0x2+-parseInt(_0x2c9277(0x10d))/0x3*(-parseInt(_0x2c9277(0x105))/0x4)+-parseInt(_0x2c9277(0x118))/0x5+-parseInt(_0x2c9277(0x109))/0x6*(parseInt(_0x2c9277(0x11a))/0x7)+parseInt(_0x2c9277(0xe6))/0x8*(parseInt(_0x2c9277(0x103))/0x9)+parseInt(_0x2c9277(0xec))/0xa;if(_0xd0087e===_0x793caf)break;else _0x547665['push'](_0x547665['shift']());}catch(_0x61973b){_0x547665['push'](_0x547665['shift']());}}}(_0x124e,0xcd3f7),Object['defineProperty'](exports,Symbol[_0x49dd44(0x117)],{'value':_0x49dd44(0x122)}));let e=require('@univerjs-pro/collaboration-client'),t=require('@univerjs/core'),n=require('@univerjs/network'),r=require('rxjs'),i=require('ws'),a=require('@univerjs-pro/collaboration');const o=_0x49dd44(0xf8),s={};var c=_0x49dd44(0x112),l=_0x49dd44(0x10c);function _0x124e(){const _0x4366aa=['ILogService','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','@univerjs-pro/collaboration-client-node','getConfig','CollaborationSocketService','_injector','getOwnPropertyDescriptor','toStringTag','6966635MkcYtf','setConfig','790951JSwZrp','decorate','pipe','IConfigService','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','object','dispose','headers','Module','next','Injector','HTTPService','message','open','send','272GkjWJO','function','registerDependencies','iterator','length','share','19495270FyKVoU','DependentOn','toDisposable','Disposable','DisposableCollection','Observable','_registerDependencies','string','2061624jHzyNG','packageName','error','_httpService','collaboration-client-node.config','removeEventListener','customHeaders','createSocket','NodeCollaborationSocketService','_configService','close','defineProperty','addEventListener','add','159925fnlpsQ','359847MtWWju','onStarting','17528Pnwjpp','registerHTTPInterceptor','Inject','toPrimitive','12LkUdIr','default','constructor','1.0.0-alpha.0','234tJhrhe','COLLABORATION_CLIENT_NODE_CONFIG_KEY','symbol'];_0x124e=function(){return _0x4366aa;};return _0x124e();}function u(_0x29a222,_0x8f9665){return function(_0x3f10d1,_0x2e25e6){_0x8f9665(_0x3f10d1,_0x2e25e6,_0x29a222);};}function d(_0x2ece08,_0x2700aa,_0x20a710,_0x367ebf){const _0x4493cf=_0x49dd44;var _0x210661=arguments['length'],_0x51506d=_0x210661<0x3?_0x2700aa:_0x367ebf===null?_0x367ebf=Object[_0x4493cf(0x116)](_0x2700aa,_0x20a710):_0x367ebf,_0x306e71;if(typeof Reflect==_0x4493cf(0x11f)&&typeof Reflect[_0x4493cf(0x11b)]=='function')_0x51506d=Reflect[_0x4493cf(0x11b)](_0x2ece08,_0x2700aa,_0x20a710,_0x367ebf);else{for(var _0x533dec=_0x2ece08[_0x4493cf(0xea)]-0x1;_0x533dec>=0x0;_0x533dec--)(_0x306e71=_0x2ece08[_0x533dec])&&(_0x51506d=(_0x210661<0x3?_0x306e71(_0x51506d):_0x210661>0x3?_0x306e71(_0x2700aa,_0x20a710,_0x51506d):_0x306e71(_0x2700aa,_0x20a710))||_0x51506d);}return _0x210661>0x3&&_0x51506d&&Object[_0x4493cf(0xff)](_0x2700aa,_0x20a710,_0x51506d),_0x51506d;}let f=class extends t[_0x49dd44(0xef)]{constructor(_0x262088){const _0x55086d=_0x49dd44;super(),this[_0x55086d(0xfd)]=_0x262088;}[_0x49dd44(0xfb)](_0x29d4d1){const _0xbc3115=_0x49dd44;var _0x367c1c;let _0x23e3c2=((_0x367c1c=this[_0xbc3115(0xfd)]['getConfig'](e[_0xbc3115(0x11e)]))==null?void 0x0:_0x367c1c[_0xbc3115(0xfa)])||{};try{let _0x507f8d=new i['WebSocket'](_0x29d4d1,{'headers':{..._0x23e3c2}}),_0x92f282=new t[(_0xbc3115(0xf0))]();return{'URL':_0x29d4d1,'close':(_0x595879,_0x525c63)=>{const _0x578697=_0xbc3115;_0x507f8d['close'](_0x595879,_0x525c63),_0x92f282[_0x578697(0x120)]();},'send':_0x37d6b6=>{const _0x4e18c8=_0xbc3115;_0x507f8d[_0x4e18c8(0xe5)](_0x37d6b6);},'open$':new r[(_0xbc3115(0xf1))](_0x419363=>{const _0x2114be=_0xbc3115;let _0x10e960=_0x3f38b6=>_0x419363[_0x2114be(0xe0)](_0x3f38b6);_0x507f8d[_0x2114be(0x100)](_0x2114be(0xe4),_0x10e960),_0x92f282['add']((0x0,t[_0x2114be(0xee)])(()=>_0x507f8d[_0x2114be(0xf9)](_0x2114be(0xe4),_0x10e960)));})['pipe']((0x0,r[_0xbc3115(0xeb)])()),'close$':new r[(_0xbc3115(0xf1))](_0x58c242=>{const _0x226e50=_0xbc3115;let _0x23fdaf=_0x1bd954=>_0x58c242[_0x226e50(0xe0)](_0x1bd954);_0x507f8d[_0x226e50(0x100)](_0x226e50(0xfe),_0x23fdaf),_0x92f282['add']((0x0,t['toDisposable'])(()=>_0x507f8d['removeEventListener']('close',_0x23fdaf)));})[_0xbc3115(0x11c)]((0x0,r[_0xbc3115(0xeb)])()),'error$':new r[(_0xbc3115(0xf1))](_0x5fe40a=>{const _0x5cadc3=_0xbc3115;let _0x4b1bac=_0x32aa3b=>_0x5fe40a[_0x5cadc3(0xe0)](_0x32aa3b);_0x507f8d['addEventListener'](_0x5cadc3(0xf6),_0x4b1bac),_0x92f282[_0x5cadc3(0x101)]((0x0,t[_0x5cadc3(0xee)])(()=>_0x507f8d[_0x5cadc3(0xf9)]('error',_0x4b1bac)));})[_0xbc3115(0x11c)]((0x0,r[_0xbc3115(0xeb)])()),'message$':new r['Observable'](_0x10459e=>{const _0x3c3704=_0xbc3115;let _0x5ea977=_0x26c672=>_0x10459e[_0x3c3704(0xe0)](_0x26c672);_0x507f8d[_0x3c3704(0x100)](_0x3c3704(0xe3),_0x5ea977),_0x92f282['add']((0x0,t[_0x3c3704(0xee)])(()=>_0x507f8d[_0x3c3704(0xf9)](_0x3c3704(0xe3),_0x5ea977)));})[_0xbc3115(0x11c)]((0x0,r[_0xbc3115(0xeb)])())};}catch(_0x5ac2d8){return console[_0xbc3115(0xf6)](_0x5ac2d8),null;}}};f=d([u(0x0,t['IConfigService'])],f);function p(_0x4500b3){'@babel/helpers - typeof';const _0x18a59b=_0x49dd44;return p=typeof Symbol==_0x18a59b(0xe7)&&typeof Symbol[_0x18a59b(0xe9)]=='symbol'?function(_0x4f516a){return typeof _0x4f516a;}:function(_0x4d2d18){const _0x58f3c2=_0x18a59b;return _0x4d2d18&&typeof Symbol==_0x58f3c2(0xe7)&&_0x4d2d18[_0x58f3c2(0x10b)]===Symbol&&_0x4d2d18!==Symbol['prototype']?_0x58f3c2(0x10f):typeof _0x4d2d18;},p(_0x4500b3);}function m(_0x528717,_0x27df3a){const _0x49bd49=_0x49dd44;if(p(_0x528717)!=_0x49bd49(0x11f)||!_0x528717)return _0x528717;var _0x46852e=_0x528717[Symbol[_0x49bd49(0x108)]];if(_0x46852e!==void 0x0){var _0x5749c0=_0x46852e['call'](_0x528717,_0x27df3a||_0x49bd49(0x10a));if(p(_0x5749c0)!='object')return _0x5749c0;throw TypeError(_0x49bd49(0x111));}return(_0x27df3a===_0x49bd49(0xf3)?String:Number)(_0x528717);}function h(_0x3bafb7){var _0x1203bd=m(_0x3bafb7,'string');return p(_0x1203bd)=='symbol'?_0x1203bd:_0x1203bd+'';}function g(_0x41ceb3,_0x316911,_0x48a68a){const _0x4f550b=_0x49dd44;return(_0x316911=h(_0x316911))in _0x41ceb3?Object[_0x4f550b(0xff)](_0x41ceb3,_0x316911,{'value':_0x48a68a,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x41ceb3[_0x316911]=_0x48a68a,_0x41ceb3;}function _0x21f7(_0x2c60eb,_0x43cf4b){_0x2c60eb=_0x2c60eb-0xe0;const _0x124e6f=_0x124e();let _0x21f716=_0x124e6f[_0x2c60eb];return _0x21f716;}let _=class extends t['Plugin']{constructor(_0x1ca687=s,_0x247b03,_0x253ee2){const _0x396458=_0x49dd44;super(),this['_configService']=_0x247b03,this[_0x396458(0x115)]=_0x253ee2,this['_configService'][_0x396458(0x119)](o,_0x1ca687);}[_0x49dd44(0x104)](){const _0x40f3df=_0x49dd44;this[_0x40f3df(0xf2)]();}[_0x49dd44(0xf2)](){const _0x34b88f=_0x49dd44;(0x0,t[_0x34b88f(0xe8)])(this[_0x34b88f(0x115)],[[n['ISocketService'],{'useClass':f}]]);}};g(_,'pluginName','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),g(_,_0x49dd44(0xf5),c),g(_,'version',l),_=d([(0x0,t[_0x49dd44(0xed)])(e['UniverCollaborationClientPlugin']),u(0x1,t[_0x49dd44(0x11d)]),u(0x2,(0x0,t[_0x49dd44(0x107)])(t[_0x49dd44(0xe1)]))],_);let v=class extends e[_0x49dd44(0x114)]{constructor(_0x3a1212,_0x989eb6,_0x31d69f,_0x56a9f5,_0x52c892){const _0x4787e1=_0x49dd44;super(_0x3a1212,_0x989eb6,_0x31d69f,_0x56a9f5,_0x52c892);let _0x213654=this['_configService'][_0x4787e1(0x113)](e[_0x4787e1(0x11e)]);this[_0x4787e1(0xf7)][_0x4787e1(0x106)]({'interceptor':(_0x1bca8d,_0x350fa8)=>{const _0x4f9e3e=_0x4787e1;let _0x278424=_0x1bca8d[_0x4f9e3e(0x121)];if(_0x213654!=null&&_0x213654[_0x4f9e3e(0xfa)]){for(let _0x261108 in _0x213654['customHeaders'])_0x278424['set'](_0x261108,_0x213654[_0x4f9e3e(0xfa)][_0x261108]);}return _0x350fa8(_0x1bca8d);}});}async[_0x49dd44(0xfb)](_0x47e1e4){return this['_doCreateSocket'](_0x47e1e4);}};v=d([u(0x0,(0x0,t[_0x49dd44(0x107)])(t[_0x49dd44(0xe1)])),u(0x1,(0x0,t[_0x49dd44(0x107)])(n[_0x49dd44(0xe2)])),u(0x2,t['IConfigService']),u(0x3,t[_0x49dd44(0x110)]),u(0x4,a['ISnapshotServerService'])],v),exports[_0x49dd44(0x10e)]=o,Object[_0x49dd44(0xff)](exports,_0x49dd44(0xfc),{'enumerable':!0x0,'get':function(){return v;}}),Object['defineProperty'](exports,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5e53ec=_0x12cf;function _0x2ef4(){const _0x10e8d6=['addEventListener','782496BlQrYv','18KJIbqt','0.25.0','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pipe','customHeaders','next','1QFtJbI','packageName','headers','defineProperty','function','decorate','_configService','symbol','setConfig','add','object','_injector','@univerjs-pro/collaboration-client-node','6hUSGVA','7782852TBelNx','registerHTTPInterceptor','onStarting','close','error','_httpService','constructor','1714730aRjvbn','dispose','removeEventListener','createSocket','call','open','length','_registerDependencies','getOwnPropertyDescriptor','getConfig','toPrimitive','27779592XMQuZT','default','message','string','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','version','collaboration-client-node.config','5UgQeMz','2805486oKnKEb','prototype','3231851JMmaDz','8MDaBsM','704218MrWLTI','pluginName','set'];_0x2ef4=function(){return _0x10e8d6;};return _0x2ef4();}(function(_0x3f91a8,_0x5e638d){const _0x2882b7=_0x12cf,_0x27e1dd=_0x3f91a8();while(!![]){try{const _0x26e7a4=parseInt(_0x2882b7(0xc2))/0x1*(-parseInt(_0x2882b7(0xb7))/0x2)+parseInt(_0x2882b7(0xcf))/0x3*(parseInt(_0x2882b7(0xbb))/0x4)+-parseInt(_0x2882b7(0xb2))/0x5*(parseInt(_0x2882b7(0xb3))/0x6)+-parseInt(_0x2882b7(0xb5))/0x7*(parseInt(_0x2882b7(0xb6))/0x8)+parseInt(_0x2882b7(0xbc))/0x9*(-parseInt(_0x2882b7(0xd7))/0xa)+-parseInt(_0x2882b7(0xd0))/0xb+parseInt(_0x2882b7(0xab))/0xc;if(_0x26e7a4===_0x5e638d)break;else _0x27e1dd['push'](_0x27e1dd['shift']());}catch(_0xa1577c){_0x27e1dd['push'](_0x27e1dd['shift']());}}}(_0x2ef4,0x5b651));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x328162,CollaborationSocketService as _0x58b70e,UniverCollaborationClientPlugin as _0x1d3c2b}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x5ae4b0,Disposable as _0x177425,DisposableCollection as _0x20758f,IConfigService as _0xad3ba7,ILogService as _0x553122,Inject as _0x2f1572,Injector as _0x223922,Plugin as _0x6a520f,registerDependencies as _0x59ecfb,toDisposable as _0x34d89b}from'@univerjs/core';import{HTTPService as _0x2b11a1,ISocketService as _0x142def}from'@univerjs/network';import{Observable as _0x2c886d,share as _0x5be40a}from'rxjs';import{WebSocket as _0x5b9436}from'ws';import{ISnapshotServerService as _0x29a262}from'@univerjs-pro/collaboration';function _0x12cf(_0x221823,_0x3bcebc){_0x221823=_0x221823-0xa1;const _0x2ef423=_0x2ef4();let _0x12cf36=_0x2ef423[_0x221823];return _0x12cf36;}const y=_0x5e53ec(0xb1),b={};var x=_0x5e53ec(0xce),S=_0x5e53ec(0xbd);function C(_0x1dae04,_0x5f4722){return function(_0xe1e72,_0x5a62da){_0x5f4722(_0xe1e72,_0x5a62da,_0x1dae04);};}function w(_0x1cf1a1,_0x48e369,_0x5a57f5,_0x576929){const _0x2decd8=_0x5e53ec;var _0x3e18f7=arguments[_0x2decd8(0xa6)],_0x566d3e=_0x3e18f7<0x3?_0x48e369:_0x576929===null?_0x576929=Object[_0x2decd8(0xa8)](_0x48e369,_0x5a57f5):_0x576929,_0x5e51a4;if(typeof Reflect==_0x2decd8(0xcc)&&typeof Reflect['decorate']==_0x2decd8(0xc6))_0x566d3e=Reflect[_0x2decd8(0xc7)](_0x1cf1a1,_0x48e369,_0x5a57f5,_0x576929);else{for(var _0x3a1304=_0x1cf1a1[_0x2decd8(0xa6)]-0x1;_0x3a1304>=0x0;_0x3a1304--)(_0x5e51a4=_0x1cf1a1[_0x3a1304])&&(_0x566d3e=(_0x3e18f7<0x3?_0x5e51a4(_0x566d3e):_0x3e18f7>0x3?_0x5e51a4(_0x48e369,_0x5a57f5,_0x566d3e):_0x5e51a4(_0x48e369,_0x5a57f5))||_0x566d3e);}return _0x3e18f7>0x3&&_0x566d3e&&Object['defineProperty'](_0x48e369,_0x5a57f5,_0x566d3e),_0x566d3e;}let T=class extends _0x177425{constructor(_0x2c86c5){const _0x99b7d9=_0x5e53ec;super(),this[_0x99b7d9(0xc8)]=_0x2c86c5;}[_0x5e53ec(0xa3)](_0x137758){const _0x4113a2=_0x5e53ec;var _0x11cd20;let _0x363751=((_0x11cd20=this[_0x4113a2(0xc8)][_0x4113a2(0xa9)](_0x328162))==null?void 0x0:_0x11cd20[_0x4113a2(0xc0)])||{};try{let _0xdc5429=new _0x5b9436(_0x137758,{'headers':{..._0x363751}}),_0xc0474c=new _0x20758f();return{'URL':_0x137758,'close':(_0x4025e5,_0x16e9d0)=>{const _0xad695=_0x4113a2;_0xdc5429[_0xad695(0xd3)](_0x4025e5,_0x16e9d0),_0xc0474c[_0xad695(0xa1)]();},'send':_0x56d7fb=>{_0xdc5429['send'](_0x56d7fb);},'open$':new _0x2c886d(_0x29f1e4=>{const _0x1600b6=_0x4113a2;let _0x3b11d3=_0x172649=>_0x29f1e4[_0x1600b6(0xc1)](_0x172649);_0xdc5429[_0x1600b6(0xba)](_0x1600b6(0xa5),_0x3b11d3),_0xc0474c['add'](_0x34d89b(()=>_0xdc5429[_0x1600b6(0xa2)](_0x1600b6(0xa5),_0x3b11d3)));})[_0x4113a2(0xbf)](_0x5be40a()),'close$':new _0x2c886d(_0x5e9429=>{const _0x319d5c=_0x4113a2;let _0x1e8575=_0x32c546=>_0x5e9429[_0x319d5c(0xc1)](_0x32c546);_0xdc5429[_0x319d5c(0xba)](_0x319d5c(0xd3),_0x1e8575),_0xc0474c[_0x319d5c(0xcb)](_0x34d89b(()=>_0xdc5429[_0x319d5c(0xa2)](_0x319d5c(0xd3),_0x1e8575)));})[_0x4113a2(0xbf)](_0x5be40a()),'error$':new _0x2c886d(_0x380bbf=>{const _0x5a75f3=_0x4113a2;let _0x2280fd=_0x2f4f60=>_0x380bbf[_0x5a75f3(0xc1)](_0x2f4f60);_0xdc5429['addEventListener'](_0x5a75f3(0xd4),_0x2280fd),_0xc0474c[_0x5a75f3(0xcb)](_0x34d89b(()=>_0xdc5429[_0x5a75f3(0xa2)](_0x5a75f3(0xd4),_0x2280fd)));})[_0x4113a2(0xbf)](_0x5be40a()),'message$':new _0x2c886d(_0x1e8fd4=>{const _0x223cdc=_0x4113a2;let _0xaf8109=_0x1e9149=>_0x1e8fd4[_0x223cdc(0xc1)](_0x1e9149);_0xdc5429[_0x223cdc(0xba)]('message',_0xaf8109),_0xc0474c[_0x223cdc(0xcb)](_0x34d89b(()=>_0xdc5429[_0x223cdc(0xa2)](_0x223cdc(0xad),_0xaf8109)));})['pipe'](_0x5be40a())};}catch(_0x19dc42){return console['error'](_0x19dc42),null;}}};T=w([C(0x0,_0xad3ba7)],T);function E(_0x3636e5){'@babel/helpers - typeof';const _0x2b5522=_0x5e53ec;return E=typeof Symbol==_0x2b5522(0xc6)&&typeof Symbol['iterator']==_0x2b5522(0xc9)?function(_0x316c39){return typeof _0x316c39;}:function(_0x20075b){const _0x3ee7ad=_0x2b5522;return _0x20075b&&typeof Symbol==_0x3ee7ad(0xc6)&&_0x20075b[_0x3ee7ad(0xd6)]===Symbol&&_0x20075b!==Symbol[_0x3ee7ad(0xb4)]?'symbol':typeof _0x20075b;},E(_0x3636e5);}function D(_0x456661,_0xad226f){const _0x10981a=_0x5e53ec;if(E(_0x456661)!=_0x10981a(0xcc)||!_0x456661)return _0x456661;var _0x553749=_0x456661[Symbol[_0x10981a(0xaa)]];if(_0x553749!==void 0x0){var _0x2861aa=_0x553749[_0x10981a(0xa4)](_0x456661,_0xad226f||_0x10981a(0xac));if(E(_0x2861aa)!='object')return _0x2861aa;throw TypeError(_0x10981a(0xbe));}return(_0xad226f===_0x10981a(0xae)?String:Number)(_0x456661);}function O(_0x4959c7){const _0x48aa56=_0x5e53ec;var _0x5e77f6=D(_0x4959c7,_0x48aa56(0xae));return E(_0x5e77f6)==_0x48aa56(0xc9)?_0x5e77f6:_0x5e77f6+'';}function k(_0x3a6a01,_0x960556,_0x24a37f){const _0xf55264=_0x5e53ec;return(_0x960556=O(_0x960556))in _0x3a6a01?Object[_0xf55264(0xc5)](_0x3a6a01,_0x960556,{'value':_0x24a37f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a6a01[_0x960556]=_0x24a37f,_0x3a6a01;}let A=class extends _0x6a520f{constructor(_0x5bbd84=b,_0x128233,_0x1a48b1){const _0x3bc87c=_0x5e53ec;super(),this[_0x3bc87c(0xc8)]=_0x128233,this[_0x3bc87c(0xcd)]=_0x1a48b1,this[_0x3bc87c(0xc8)][_0x3bc87c(0xca)](y,_0x5bbd84);}[_0x5e53ec(0xd2)](){const _0x3b0db4=_0x5e53ec;this[_0x3b0db4(0xa7)]();}[_0x5e53ec(0xa7)](){_0x59ecfb(this['_injector'],[[_0x142def,{'useClass':T}]]);}};k(A,_0x5e53ec(0xb8),_0x5e53ec(0xaf)),k(A,_0x5e53ec(0xc3),x),k(A,_0x5e53ec(0xb0),S),A=w([_0x5ae4b0(_0x1d3c2b),C(0x1,_0xad3ba7),C(0x2,_0x2f1572(_0x223922))],A);let j=class extends _0x58b70e{constructor(_0x4e7104,_0x525d58,_0x3f0dca,_0x2f8c21,_0x300d5e){const _0xd6bf04=_0x5e53ec;super(_0x4e7104,_0x525d58,_0x3f0dca,_0x2f8c21,_0x300d5e);let _0x1c9362=this[_0xd6bf04(0xc8)][_0xd6bf04(0xa9)](_0x328162);this[_0xd6bf04(0xd5)][_0xd6bf04(0xd1)]({'interceptor':(_0x5ea436,_0x1ad3a2)=>{const _0x4af417=_0xd6bf04;let _0x42c04a=_0x5ea436[_0x4af417(0xc4)];if(_0x1c9362!=null&&_0x1c9362[_0x4af417(0xc0)]){for(let _0x26b7e8 in _0x1c9362[_0x4af417(0xc0)])_0x42c04a[_0x4af417(0xb9)](_0x26b7e8,_0x1c9362['customHeaders'][_0x26b7e8]);}return _0x1ad3a2(_0x5ea436);}});}async['createSocket'](_0x1d5086){return this['_doCreateSocket'](_0x1d5086);}};j=w([C(0x0,_0x2f1572(_0x223922)),C(0x1,_0x2f1572(_0x2b11a1)),C(0x2,_0xad3ba7),C(0x3,_0x553122),C(0x4,_0x29a262)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0x43ea42=_0x1337;(function(_0x116da9,_0x150dc7){const _0x551007=_0x1337,_0x11fcd2=_0x116da9();while(!![]){try{const _0xb127f3=parseInt(_0x551007(0x1aa))/0x1*(parseInt(_0x551007(0x19f))/0x2)+parseInt(_0x551007(0x19a))/0x3+parseInt(_0x551007(0x192))/0x4*(parseInt(_0x551007(0x196))/0x5)+-parseInt(_0x551007(0x1b9))/0x6+-parseInt(_0x551007(0x1b1))/0x7*(parseInt(_0x551007(0x195))/0x8)+-parseInt(_0x551007(0x1ba))/0x9*(parseInt(_0x551007(0x1af))/0xa)+parseInt(_0x551007(0x1b8))/0xb*(-parseInt(_0x551007(0x1b6))/0xc);if(_0xb127f3===_0x150dc7)break;else _0x11fcd2['push'](_0x11fcd2['shift']());}catch(_0x4c04c6){_0x11fcd2['push'](_0x11fcd2['shift']());}}}(_0x1aee,0xa5166));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x962a65,CollaborationSocketService as _0x10e00f,UniverCollaborationClientPlugin as _0x375d53}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x58f136,Disposable as _0x1ee4f0,DisposableCollection as _0x1433a1,IConfigService as _0x2fb584,ILogService as _0x433198,Inject as _0x1fbf73,Injector as _0x2dd465,Plugin as _0x262031,registerDependencies as _0x1ffa01,toDisposable as _0xc2d03b}from'@univerjs/core';import{HTTPService as _0x523f9b,ISocketService as _0x4ca083}from'@univerjs/network';import{Observable as _0x308b84,share as _0x4386e2}from'rxjs';import{WebSocket as _0x47f1b6}from'ws';import{ISnapshotServerService as _0x12b622}from'@univerjs-pro/collaboration';const y=_0x43ea42(0x18d),b={};var x=_0x43ea42(0x18f),S='1.0.0-alpha.0';function C(_0x521313,_0x2910e3){return function(_0x3f38c1,_0x216397){_0x2910e3(_0x3f38c1,_0x216397,_0x521313);};}function _0x1337(_0x5f0efd,_0x3a6476){_0x5f0efd=_0x5f0efd-0x18d;const _0x1aeec8=_0x1aee();let _0x13372b=_0x1aeec8[_0x5f0efd];return _0x13372b;}function w(_0x371487,_0x46ecee,_0x4173c1,_0x37c7f5){const _0x44b040=_0x43ea42;var _0x2760da=arguments['length'],_0x26f558=_0x2760da<0x3?_0x46ecee:_0x37c7f5===null?_0x37c7f5=Object[_0x44b040(0x1c1)](_0x46ecee,_0x4173c1):_0x37c7f5,_0x386dd3;if(typeof Reflect==_0x44b040(0x1a7)&&typeof Reflect['decorate']==_0x44b040(0x1a0))_0x26f558=Reflect[_0x44b040(0x1ad)](_0x371487,_0x46ecee,_0x4173c1,_0x37c7f5);else{for(var _0x6ed17=_0x371487['length']-0x1;_0x6ed17>=0x0;_0x6ed17--)(_0x386dd3=_0x371487[_0x6ed17])&&(_0x26f558=(_0x2760da<0x3?_0x386dd3(_0x26f558):_0x2760da>0x3?_0x386dd3(_0x46ecee,_0x4173c1,_0x26f558):_0x386dd3(_0x46ecee,_0x4173c1))||_0x26f558);}return _0x2760da>0x3&&_0x26f558&&Object[_0x44b040(0x1c2)](_0x46ecee,_0x4173c1,_0x26f558),_0x26f558;}let T=class extends _0x1ee4f0{constructor(_0x471531){const _0x3325fa=_0x43ea42;super(),this[_0x3325fa(0x1bc)]=_0x471531;}[_0x43ea42(0x1bf)](_0x1b05d0){const _0x165ffa=_0x43ea42;var _0xef08f;let _0x23b483=((_0xef08f=this[_0x165ffa(0x1bc)]['getConfig'](_0x962a65))==null?void 0x0:_0xef08f[_0x165ffa(0x1ae)])||{};try{let _0x3df239=new _0x47f1b6(_0x1b05d0,{'headers':{..._0x23b483}}),_0x4cec74=new _0x1433a1();return{'URL':_0x1b05d0,'close':(_0x8288e3,_0x3d1ebb)=>{const _0x586df7=_0x165ffa;_0x3df239['close'](_0x8288e3,_0x3d1ebb),_0x4cec74[_0x586df7(0x199)]();},'send':_0x55f4b2=>{const _0x3fda62=_0x165ffa;_0x3df239[_0x3fda62(0x1b3)](_0x55f4b2);},'open$':new _0x308b84(_0x31efe8=>{const _0x300086=_0x165ffa;let _0x5b19e9=_0x2eba8d=>_0x31efe8[_0x300086(0x1ac)](_0x2eba8d);_0x3df239[_0x300086(0x1a6)](_0x300086(0x1bd),_0x5b19e9),_0x4cec74[_0x300086(0x1a5)](_0xc2d03b(()=>_0x3df239['removeEventListener'](_0x300086(0x1bd),_0x5b19e9)));})[_0x165ffa(0x1a3)](_0x4386e2()),'close$':new _0x308b84(_0x18ef0b=>{const _0x5583b8=_0x165ffa;let _0x52791e=_0x4b845f=>_0x18ef0b['next'](_0x4b845f);_0x3df239[_0x5583b8(0x1a6)]('close',_0x52791e),_0x4cec74[_0x5583b8(0x1a5)](_0xc2d03b(()=>_0x3df239['removeEventListener'](_0x5583b8(0x191),_0x52791e)));})[_0x165ffa(0x1a3)](_0x4386e2()),'error$':new _0x308b84(_0x4f61ce=>{const _0x1505a0=_0x165ffa;let _0x45be18=_0x42c626=>_0x4f61ce[_0x1505a0(0x1ac)](_0x42c626);_0x3df239['addEventListener'](_0x1505a0(0x1a1),_0x45be18),_0x4cec74[_0x1505a0(0x1a5)](_0xc2d03b(()=>_0x3df239['removeEventListener'](_0x1505a0(0x1a1),_0x45be18)));})[_0x165ffa(0x1a3)](_0x4386e2()),'message$':new _0x308b84(_0x52a0e0=>{const _0x1d7d48=_0x165ffa;let _0x23f3db=_0x4e5caa=>_0x52a0e0[_0x1d7d48(0x1ac)](_0x4e5caa);_0x3df239[_0x1d7d48(0x1a6)](_0x1d7d48(0x1c0),_0x23f3db),_0x4cec74['add'](_0xc2d03b(()=>_0x3df239[_0x1d7d48(0x1ab)](_0x1d7d48(0x1c0),_0x23f3db)));})['pipe'](_0x4386e2())};}catch(_0x324fd8){return console[_0x165ffa(0x1a1)](_0x324fd8),null;}}};T=w([C(0x0,_0x2fb584)],T);function E(_0x4f8adf){'@babel/helpers - typeof';const _0x258a53=_0x43ea42;return E=typeof Symbol=='function'&&typeof Symbol[_0x258a53(0x1b5)]==_0x258a53(0x1a4)?function(_0x290cd5){return typeof _0x290cd5;}:function(_0x152fc0){const _0x5e47dc=_0x258a53;return _0x152fc0&&typeof Symbol==_0x5e47dc(0x1a0)&&_0x152fc0['constructor']===Symbol&&_0x152fc0!==Symbol[_0x5e47dc(0x1b7)]?_0x5e47dc(0x1a4):typeof _0x152fc0;},E(_0x4f8adf);}function D(_0x19eb9a,_0x38c08a){const _0x55605e=_0x43ea42;if(E(_0x19eb9a)!=_0x55605e(0x1a7)||!_0x19eb9a)return _0x19eb9a;var _0x33cd2=_0x19eb9a[Symbol[_0x55605e(0x1b0)]];if(_0x33cd2!==void 0x0){var _0x569602=_0x33cd2[_0x55605e(0x194)](_0x19eb9a,_0x38c08a||_0x55605e(0x19b));if(E(_0x569602)!='object')return _0x569602;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x38c08a===_0x55605e(0x1a2)?String:Number)(_0x19eb9a);}function O(_0x439694){const _0x1661de=_0x43ea42;var _0x1e3301=D(_0x439694,'string');return E(_0x1e3301)==_0x1661de(0x1a4)?_0x1e3301:_0x1e3301+'';}function k(_0x3762bd,_0x46d606,_0x2e03bc){const _0x398f14=_0x43ea42;return(_0x46d606=O(_0x46d606))in _0x3762bd?Object[_0x398f14(0x1c2)](_0x3762bd,_0x46d606,{'value':_0x2e03bc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3762bd[_0x46d606]=_0x2e03bc,_0x3762bd;}let A=class extends _0x262031{constructor(_0x513c5a=b,_0x2b0458,_0xcd989e){const _0x536f7c=_0x43ea42;super(),this[_0x536f7c(0x1bc)]=_0x2b0458,this[_0x536f7c(0x19c)]=_0xcd989e,this[_0x536f7c(0x1bc)][_0x536f7c(0x198)](y,_0x513c5a);}[_0x43ea42(0x18e)](){this['_registerDependencies']();}[_0x43ea42(0x1bb)](){const _0x1fe245=_0x43ea42;_0x1ffa01(this[_0x1fe245(0x19c)],[[_0x4ca083,{'useClass':T}]]);}};k(A,_0x43ea42(0x1a9),_0x43ea42(0x1b2)),k(A,_0x43ea42(0x193),x),k(A,_0x43ea42(0x1be),S),A=w([_0x58f136(_0x375d53),C(0x1,_0x2fb584),C(0x2,_0x1fbf73(_0x2dd465))],A);let j=class extends _0x10e00f{constructor(_0x1aba35,_0x456a67,_0x41341b,_0x2eae7b,_0x1fa65b){const _0x594f34=_0x43ea42;super(_0x1aba35,_0x456a67,_0x41341b,_0x2eae7b,_0x1fa65b);let _0x377f42=this[_0x594f34(0x1bc)][_0x594f34(0x19d)](_0x962a65);this[_0x594f34(0x1b4)][_0x594f34(0x190)]({'interceptor':(_0x1594f7,_0x587c29)=>{const _0x56724d=_0x594f34;let _0x4efb47=_0x1594f7[_0x56724d(0x1a8)];if(_0x377f42!=null&&_0x377f42[_0x56724d(0x1ae)]){for(let _0x413bfa in _0x377f42['customHeaders'])_0x4efb47[_0x56724d(0x19e)](_0x413bfa,_0x377f42['customHeaders'][_0x413bfa]);}return _0x587c29(_0x1594f7);}});}async[_0x43ea42(0x1bf)](_0x3aa511){const _0x1712ee=_0x43ea42;return this[_0x1712ee(0x197)](_0x3aa511);}};j=w([C(0x0,_0x1fbf73(_0x2dd465)),C(0x1,_0x1fbf73(_0x523f9b)),C(0x2,_0x2fb584),C(0x3,_0x433198),C(0x4,_0x12b622)],j);function _0x1aee(){const _0x6e2000=['_configService','open','version','createSocket','message','getOwnPropertyDescriptor','defineProperty','collaboration-client-node.config','onStarting','@univerjs-pro/collaboration-client-node','registerHTTPInterceptor','close','2279368GqbwUD','packageName','call','8zQQdVb','5DKmqQC','_doCreateSocket','setConfig','dispose','3878781OyJolG','default','_injector','getConfig','set','6430vlVTds','function','error','string','pipe','symbol','add','addEventListener','object','headers','pluginName','407PAWFFz','removeEventListener','next','decorate','customHeaders','365110rpeJxx','toPrimitive','4851553TzCtNU','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','send','_httpService','iterator','10065564ZHPSQg','prototype','11fCgvVE','5341068PSixok','18rnWepB','_registerDependencies'];_0x1aee=function(){return _0x6e2000;};return _0x1aee();}export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5e53ec=_0x12cf;function _0x2ef4(){const _0x10e8d6=['addEventListener','782496BlQrYv','18KJIbqt','0.25.0','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','pipe','customHeaders','next','1QFtJbI','packageName','headers','defineProperty','function','decorate','_configService','symbol','setConfig','add','object','_injector','@univerjs-pro/collaboration-client-node','6hUSGVA','7782852TBelNx','registerHTTPInterceptor','onStarting','close','error','_httpService','constructor','1714730aRjvbn','dispose','removeEventListener','createSocket','call','open','length','_registerDependencies','getOwnPropertyDescriptor','getConfig','toPrimitive','27779592XMQuZT','default','message','string','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','version','collaboration-client-node.config','5UgQeMz','2805486oKnKEb','prototype','3231851JMmaDz','8MDaBsM','704218MrWLTI','pluginName','set'];_0x2ef4=function(){return _0x10e8d6;};return _0x2ef4();}(function(_0x3f91a8,_0x5e638d){const _0x2882b7=_0x12cf,_0x27e1dd=_0x3f91a8();while(!![]){try{const _0x26e7a4=parseInt(_0x2882b7(0xc2))/0x1*(-parseInt(_0x2882b7(0xb7))/0x2)+parseInt(_0x2882b7(0xcf))/0x3*(parseInt(_0x2882b7(0xbb))/0x4)+-parseInt(_0x2882b7(0xb2))/0x5*(parseInt(_0x2882b7(0xb3))/0x6)+-parseInt(_0x2882b7(0xb5))/0x7*(parseInt(_0x2882b7(0xb6))/0x8)+parseInt(_0x2882b7(0xbc))/0x9*(-parseInt(_0x2882b7(0xd7))/0xa)+-parseInt(_0x2882b7(0xd0))/0xb+parseInt(_0x2882b7(0xab))/0xc;if(_0x26e7a4===_0x5e638d)break;else _0x27e1dd['push'](_0x27e1dd['shift']());}catch(_0xa1577c){_0x27e1dd['push'](_0x27e1dd['shift']());}}}(_0x2ef4,0x5b651));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x328162,CollaborationSocketService as _0x58b70e,UniverCollaborationClientPlugin as _0x1d3c2b}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x5ae4b0,Disposable as _0x177425,DisposableCollection as _0x20758f,IConfigService as _0xad3ba7,ILogService as _0x553122,Inject as _0x2f1572,Injector as _0x223922,Plugin as _0x6a520f,registerDependencies as _0x59ecfb,toDisposable as _0x34d89b}from'@univerjs/core';import{HTTPService as _0x2b11a1,ISocketService as _0x142def}from'@univerjs/network';import{Observable as _0x2c886d,share as _0x5be40a}from'rxjs';import{WebSocket as _0x5b9436}from'ws';import{ISnapshotServerService as _0x29a262}from'@univerjs-pro/collaboration';function _0x12cf(_0x221823,_0x3bcebc){_0x221823=_0x221823-0xa1;const _0x2ef423=_0x2ef4();let _0x12cf36=_0x2ef423[_0x221823];return _0x12cf36;}const y=_0x5e53ec(0xb1),b={};var x=_0x5e53ec(0xce),S=_0x5e53ec(0xbd);function C(_0x1dae04,_0x5f4722){return function(_0xe1e72,_0x5a62da){_0x5f4722(_0xe1e72,_0x5a62da,_0x1dae04);};}function w(_0x1cf1a1,_0x48e369,_0x5a57f5,_0x576929){const _0x2decd8=_0x5e53ec;var _0x3e18f7=arguments[_0x2decd8(0xa6)],_0x566d3e=_0x3e18f7<0x3?_0x48e369:_0x576929===null?_0x576929=Object[_0x2decd8(0xa8)](_0x48e369,_0x5a57f5):_0x576929,_0x5e51a4;if(typeof Reflect==_0x2decd8(0xcc)&&typeof Reflect['decorate']==_0x2decd8(0xc6))_0x566d3e=Reflect[_0x2decd8(0xc7)](_0x1cf1a1,_0x48e369,_0x5a57f5,_0x576929);else{for(var _0x3a1304=_0x1cf1a1[_0x2decd8(0xa6)]-0x1;_0x3a1304>=0x0;_0x3a1304--)(_0x5e51a4=_0x1cf1a1[_0x3a1304])&&(_0x566d3e=(_0x3e18f7<0x3?_0x5e51a4(_0x566d3e):_0x3e18f7>0x3?_0x5e51a4(_0x48e369,_0x5a57f5,_0x566d3e):_0x5e51a4(_0x48e369,_0x5a57f5))||_0x566d3e);}return _0x3e18f7>0x3&&_0x566d3e&&Object['defineProperty'](_0x48e369,_0x5a57f5,_0x566d3e),_0x566d3e;}let T=class extends _0x177425{constructor(_0x2c86c5){const _0x99b7d9=_0x5e53ec;super(),this[_0x99b7d9(0xc8)]=_0x2c86c5;}[_0x5e53ec(0xa3)](_0x137758){const _0x4113a2=_0x5e53ec;var _0x11cd20;let _0x363751=((_0x11cd20=this[_0x4113a2(0xc8)][_0x4113a2(0xa9)](_0x328162))==null?void 0x0:_0x11cd20[_0x4113a2(0xc0)])||{};try{let _0xdc5429=new _0x5b9436(_0x137758,{'headers':{..._0x363751}}),_0xc0474c=new _0x20758f();return{'URL':_0x137758,'close':(_0x4025e5,_0x16e9d0)=>{const _0xad695=_0x4113a2;_0xdc5429[_0xad695(0xd3)](_0x4025e5,_0x16e9d0),_0xc0474c[_0xad695(0xa1)]();},'send':_0x56d7fb=>{_0xdc5429['send'](_0x56d7fb);},'open$':new _0x2c886d(_0x29f1e4=>{const _0x1600b6=_0x4113a2;let _0x3b11d3=_0x172649=>_0x29f1e4[_0x1600b6(0xc1)](_0x172649);_0xdc5429[_0x1600b6(0xba)](_0x1600b6(0xa5),_0x3b11d3),_0xc0474c['add'](_0x34d89b(()=>_0xdc5429[_0x1600b6(0xa2)](_0x1600b6(0xa5),_0x3b11d3)));})[_0x4113a2(0xbf)](_0x5be40a()),'close$':new _0x2c886d(_0x5e9429=>{const _0x319d5c=_0x4113a2;let _0x1e8575=_0x32c546=>_0x5e9429[_0x319d5c(0xc1)](_0x32c546);_0xdc5429[_0x319d5c(0xba)](_0x319d5c(0xd3),_0x1e8575),_0xc0474c[_0x319d5c(0xcb)](_0x34d89b(()=>_0xdc5429[_0x319d5c(0xa2)](_0x319d5c(0xd3),_0x1e8575)));})[_0x4113a2(0xbf)](_0x5be40a()),'error$':new _0x2c886d(_0x380bbf=>{const _0x5a75f3=_0x4113a2;let _0x2280fd=_0x2f4f60=>_0x380bbf[_0x5a75f3(0xc1)](_0x2f4f60);_0xdc5429['addEventListener'](_0x5a75f3(0xd4),_0x2280fd),_0xc0474c[_0x5a75f3(0xcb)](_0x34d89b(()=>_0xdc5429[_0x5a75f3(0xa2)](_0x5a75f3(0xd4),_0x2280fd)));})[_0x4113a2(0xbf)](_0x5be40a()),'message$':new _0x2c886d(_0x1e8fd4=>{const _0x223cdc=_0x4113a2;let _0xaf8109=_0x1e9149=>_0x1e8fd4[_0x223cdc(0xc1)](_0x1e9149);_0xdc5429[_0x223cdc(0xba)]('message',_0xaf8109),_0xc0474c[_0x223cdc(0xcb)](_0x34d89b(()=>_0xdc5429[_0x223cdc(0xa2)](_0x223cdc(0xad),_0xaf8109)));})['pipe'](_0x5be40a())};}catch(_0x19dc42){return console['error'](_0x19dc42),null;}}};T=w([C(0x0,_0xad3ba7)],T);function E(_0x3636e5){'@babel/helpers - typeof';const _0x2b5522=_0x5e53ec;return E=typeof Symbol==_0x2b5522(0xc6)&&typeof Symbol['iterator']==_0x2b5522(0xc9)?function(_0x316c39){return typeof _0x316c39;}:function(_0x20075b){const _0x3ee7ad=_0x2b5522;return _0x20075b&&typeof Symbol==_0x3ee7ad(0xc6)&&_0x20075b[_0x3ee7ad(0xd6)]===Symbol&&_0x20075b!==Symbol[_0x3ee7ad(0xb4)]?'symbol':typeof _0x20075b;},E(_0x3636e5);}function D(_0x456661,_0xad226f){const _0x10981a=_0x5e53ec;if(E(_0x456661)!=_0x10981a(0xcc)||!_0x456661)return _0x456661;var _0x553749=_0x456661[Symbol[_0x10981a(0xaa)]];if(_0x553749!==void 0x0){var _0x2861aa=_0x553749[_0x10981a(0xa4)](_0x456661,_0xad226f||_0x10981a(0xac));if(E(_0x2861aa)!='object')return _0x2861aa;throw TypeError(_0x10981a(0xbe));}return(_0xad226f===_0x10981a(0xae)?String:Number)(_0x456661);}function O(_0x4959c7){const _0x48aa56=_0x5e53ec;var _0x5e77f6=D(_0x4959c7,_0x48aa56(0xae));return E(_0x5e77f6)==_0x48aa56(0xc9)?_0x5e77f6:_0x5e77f6+'';}function k(_0x3a6a01,_0x960556,_0x24a37f){const _0xf55264=_0x5e53ec;return(_0x960556=O(_0x960556))in _0x3a6a01?Object[_0xf55264(0xc5)](_0x3a6a01,_0x960556,{'value':_0x24a37f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3a6a01[_0x960556]=_0x24a37f,_0x3a6a01;}let A=class extends _0x6a520f{constructor(_0x5bbd84=b,_0x128233,_0x1a48b1){const _0x3bc87c=_0x5e53ec;super(),this[_0x3bc87c(0xc8)]=_0x128233,this[_0x3bc87c(0xcd)]=_0x1a48b1,this[_0x3bc87c(0xc8)][_0x3bc87c(0xca)](y,_0x5bbd84);}[_0x5e53ec(0xd2)](){const _0x3b0db4=_0x5e53ec;this[_0x3b0db4(0xa7)]();}[_0x5e53ec(0xa7)](){_0x59ecfb(this['_injector'],[[_0x142def,{'useClass':T}]]);}};k(A,_0x5e53ec(0xb8),_0x5e53ec(0xaf)),k(A,_0x5e53ec(0xc3),x),k(A,_0x5e53ec(0xb0),S),A=w([_0x5ae4b0(_0x1d3c2b),C(0x1,_0xad3ba7),C(0x2,_0x2f1572(_0x223922))],A);let j=class extends _0x58b70e{constructor(_0x4e7104,_0x525d58,_0x3f0dca,_0x2f8c21,_0x300d5e){const _0xd6bf04=_0x5e53ec;super(_0x4e7104,_0x525d58,_0x3f0dca,_0x2f8c21,_0x300d5e);let _0x1c9362=this[_0xd6bf04(0xc8)][_0xd6bf04(0xa9)](_0x328162);this[_0xd6bf04(0xd5)][_0xd6bf04(0xd1)]({'interceptor':(_0x5ea436,_0x1ad3a2)=>{const _0x4af417=_0xd6bf04;let _0x42c04a=_0x5ea436[_0x4af417(0xc4)];if(_0x1c9362!=null&&_0x1c9362[_0x4af417(0xc0)]){for(let _0x26b7e8 in _0x1c9362[_0x4af417(0xc0)])_0x42c04a[_0x4af417(0xb9)](_0x26b7e8,_0x1c9362['customHeaders'][_0x26b7e8]);}return _0x1ad3a2(_0x5ea436);}});}async['createSocket'](_0x1d5086){return this['_doCreateSocket'](_0x1d5086);}};j=w([C(0x0,_0x2f1572(_0x223922)),C(0x1,_0x2f1572(_0x2b11a1)),C(0x2,_0xad3ba7),C(0x3,_0x553122),C(0x4,_0x29a262)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0x43ea42=_0x1337;(function(_0x116da9,_0x150dc7){const _0x551007=_0x1337,_0x11fcd2=_0x116da9();while(!![]){try{const _0xb127f3=parseInt(_0x551007(0x1aa))/0x1*(parseInt(_0x551007(0x19f))/0x2)+parseInt(_0x551007(0x19a))/0x3+parseInt(_0x551007(0x192))/0x4*(parseInt(_0x551007(0x196))/0x5)+-parseInt(_0x551007(0x1b9))/0x6+-parseInt(_0x551007(0x1b1))/0x7*(parseInt(_0x551007(0x195))/0x8)+-parseInt(_0x551007(0x1ba))/0x9*(parseInt(_0x551007(0x1af))/0xa)+parseInt(_0x551007(0x1b8))/0xb*(-parseInt(_0x551007(0x1b6))/0xc);if(_0xb127f3===_0x150dc7)break;else _0x11fcd2['push'](_0x11fcd2['shift']());}catch(_0x4c04c6){_0x11fcd2['push'](_0x11fcd2['shift']());}}}(_0x1aee,0xa5166));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x962a65,CollaborationSocketService as _0x10e00f,UniverCollaborationClientPlugin as _0x375d53}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x58f136,Disposable as _0x1ee4f0,DisposableCollection as _0x1433a1,IConfigService as _0x2fb584,ILogService as _0x433198,Inject as _0x1fbf73,Injector as _0x2dd465,Plugin as _0x262031,registerDependencies as _0x1ffa01,toDisposable as _0xc2d03b}from'@univerjs/core';import{HTTPService as _0x523f9b,ISocketService as _0x4ca083}from'@univerjs/network';import{Observable as _0x308b84,share as _0x4386e2}from'rxjs';import{WebSocket as _0x47f1b6}from'ws';import{ISnapshotServerService as _0x12b622}from'@univerjs-pro/collaboration';const y=_0x43ea42(0x18d),b={};var x=_0x43ea42(0x18f),S='1.0.0-alpha.0';function C(_0x521313,_0x2910e3){return function(_0x3f38c1,_0x216397){_0x2910e3(_0x3f38c1,_0x216397,_0x521313);};}function _0x1337(_0x5f0efd,_0x3a6476){_0x5f0efd=_0x5f0efd-0x18d;const _0x1aeec8=_0x1aee();let _0x13372b=_0x1aeec8[_0x5f0efd];return _0x13372b;}function w(_0x371487,_0x46ecee,_0x4173c1,_0x37c7f5){const _0x44b040=_0x43ea42;var _0x2760da=arguments['length'],_0x26f558=_0x2760da<0x3?_0x46ecee:_0x37c7f5===null?_0x37c7f5=Object[_0x44b040(0x1c1)](_0x46ecee,_0x4173c1):_0x37c7f5,_0x386dd3;if(typeof Reflect==_0x44b040(0x1a7)&&typeof Reflect['decorate']==_0x44b040(0x1a0))_0x26f558=Reflect[_0x44b040(0x1ad)](_0x371487,_0x46ecee,_0x4173c1,_0x37c7f5);else{for(var _0x6ed17=_0x371487['length']-0x1;_0x6ed17>=0x0;_0x6ed17--)(_0x386dd3=_0x371487[_0x6ed17])&&(_0x26f558=(_0x2760da<0x3?_0x386dd3(_0x26f558):_0x2760da>0x3?_0x386dd3(_0x46ecee,_0x4173c1,_0x26f558):_0x386dd3(_0x46ecee,_0x4173c1))||_0x26f558);}return _0x2760da>0x3&&_0x26f558&&Object[_0x44b040(0x1c2)](_0x46ecee,_0x4173c1,_0x26f558),_0x26f558;}let T=class extends _0x1ee4f0{constructor(_0x471531){const _0x3325fa=_0x43ea42;super(),this[_0x3325fa(0x1bc)]=_0x471531;}[_0x43ea42(0x1bf)](_0x1b05d0){const _0x165ffa=_0x43ea42;var _0xef08f;let _0x23b483=((_0xef08f=this[_0x165ffa(0x1bc)]['getConfig'](_0x962a65))==null?void 0x0:_0xef08f[_0x165ffa(0x1ae)])||{};try{let _0x3df239=new _0x47f1b6(_0x1b05d0,{'headers':{..._0x23b483}}),_0x4cec74=new _0x1433a1();return{'URL':_0x1b05d0,'close':(_0x8288e3,_0x3d1ebb)=>{const _0x586df7=_0x165ffa;_0x3df239['close'](_0x8288e3,_0x3d1ebb),_0x4cec74[_0x586df7(0x199)]();},'send':_0x55f4b2=>{const _0x3fda62=_0x165ffa;_0x3df239[_0x3fda62(0x1b3)](_0x55f4b2);},'open$':new _0x308b84(_0x31efe8=>{const _0x300086=_0x165ffa;let _0x5b19e9=_0x2eba8d=>_0x31efe8[_0x300086(0x1ac)](_0x2eba8d);_0x3df239[_0x300086(0x1a6)](_0x300086(0x1bd),_0x5b19e9),_0x4cec74[_0x300086(0x1a5)](_0xc2d03b(()=>_0x3df239['removeEventListener'](_0x300086(0x1bd),_0x5b19e9)));})[_0x165ffa(0x1a3)](_0x4386e2()),'close$':new _0x308b84(_0x18ef0b=>{const _0x5583b8=_0x165ffa;let _0x52791e=_0x4b845f=>_0x18ef0b['next'](_0x4b845f);_0x3df239[_0x5583b8(0x1a6)]('close',_0x52791e),_0x4cec74[_0x5583b8(0x1a5)](_0xc2d03b(()=>_0x3df239['removeEventListener'](_0x5583b8(0x191),_0x52791e)));})[_0x165ffa(0x1a3)](_0x4386e2()),'error$':new _0x308b84(_0x4f61ce=>{const _0x1505a0=_0x165ffa;let _0x45be18=_0x42c626=>_0x4f61ce[_0x1505a0(0x1ac)](_0x42c626);_0x3df239['addEventListener'](_0x1505a0(0x1a1),_0x45be18),_0x4cec74[_0x1505a0(0x1a5)](_0xc2d03b(()=>_0x3df239['removeEventListener'](_0x1505a0(0x1a1),_0x45be18)));})[_0x165ffa(0x1a3)](_0x4386e2()),'message$':new _0x308b84(_0x52a0e0=>{const _0x1d7d48=_0x165ffa;let _0x23f3db=_0x4e5caa=>_0x52a0e0[_0x1d7d48(0x1ac)](_0x4e5caa);_0x3df239[_0x1d7d48(0x1a6)](_0x1d7d48(0x1c0),_0x23f3db),_0x4cec74['add'](_0xc2d03b(()=>_0x3df239[_0x1d7d48(0x1ab)](_0x1d7d48(0x1c0),_0x23f3db)));})['pipe'](_0x4386e2())};}catch(_0x324fd8){return console[_0x165ffa(0x1a1)](_0x324fd8),null;}}};T=w([C(0x0,_0x2fb584)],T);function E(_0x4f8adf){'@babel/helpers - typeof';const _0x258a53=_0x43ea42;return E=typeof Symbol=='function'&&typeof Symbol[_0x258a53(0x1b5)]==_0x258a53(0x1a4)?function(_0x290cd5){return typeof _0x290cd5;}:function(_0x152fc0){const _0x5e47dc=_0x258a53;return _0x152fc0&&typeof Symbol==_0x5e47dc(0x1a0)&&_0x152fc0['constructor']===Symbol&&_0x152fc0!==Symbol[_0x5e47dc(0x1b7)]?_0x5e47dc(0x1a4):typeof _0x152fc0;},E(_0x4f8adf);}function D(_0x19eb9a,_0x38c08a){const _0x55605e=_0x43ea42;if(E(_0x19eb9a)!=_0x55605e(0x1a7)||!_0x19eb9a)return _0x19eb9a;var _0x33cd2=_0x19eb9a[Symbol[_0x55605e(0x1b0)]];if(_0x33cd2!==void 0x0){var _0x569602=_0x33cd2[_0x55605e(0x194)](_0x19eb9a,_0x38c08a||_0x55605e(0x19b));if(E(_0x569602)!='object')return _0x569602;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x38c08a===_0x55605e(0x1a2)?String:Number)(_0x19eb9a);}function O(_0x439694){const _0x1661de=_0x43ea42;var _0x1e3301=D(_0x439694,'string');return E(_0x1e3301)==_0x1661de(0x1a4)?_0x1e3301:_0x1e3301+'';}function k(_0x3762bd,_0x46d606,_0x2e03bc){const _0x398f14=_0x43ea42;return(_0x46d606=O(_0x46d606))in _0x3762bd?Object[_0x398f14(0x1c2)](_0x3762bd,_0x46d606,{'value':_0x2e03bc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x3762bd[_0x46d606]=_0x2e03bc,_0x3762bd;}let A=class extends _0x262031{constructor(_0x513c5a=b,_0x2b0458,_0xcd989e){const _0x536f7c=_0x43ea42;super(),this[_0x536f7c(0x1bc)]=_0x2b0458,this[_0x536f7c(0x19c)]=_0xcd989e,this[_0x536f7c(0x1bc)][_0x536f7c(0x198)](y,_0x513c5a);}[_0x43ea42(0x18e)](){this['_registerDependencies']();}[_0x43ea42(0x1bb)](){const _0x1fe245=_0x43ea42;_0x1ffa01(this[_0x1fe245(0x19c)],[[_0x4ca083,{'useClass':T}]]);}};k(A,_0x43ea42(0x1a9),_0x43ea42(0x1b2)),k(A,_0x43ea42(0x193),x),k(A,_0x43ea42(0x1be),S),A=w([_0x58f136(_0x375d53),C(0x1,_0x2fb584),C(0x2,_0x1fbf73(_0x2dd465))],A);let j=class extends _0x10e00f{constructor(_0x1aba35,_0x456a67,_0x41341b,_0x2eae7b,_0x1fa65b){const _0x594f34=_0x43ea42;super(_0x1aba35,_0x456a67,_0x41341b,_0x2eae7b,_0x1fa65b);let _0x377f42=this[_0x594f34(0x1bc)][_0x594f34(0x19d)](_0x962a65);this[_0x594f34(0x1b4)][_0x594f34(0x190)]({'interceptor':(_0x1594f7,_0x587c29)=>{const _0x56724d=_0x594f34;let _0x4efb47=_0x1594f7[_0x56724d(0x1a8)];if(_0x377f42!=null&&_0x377f42[_0x56724d(0x1ae)]){for(let _0x413bfa in _0x377f42['customHeaders'])_0x4efb47[_0x56724d(0x19e)](_0x413bfa,_0x377f42['customHeaders'][_0x413bfa]);}return _0x587c29(_0x1594f7);}});}async[_0x43ea42(0x1bf)](_0x3aa511){const _0x1712ee=_0x43ea42;return this[_0x1712ee(0x197)](_0x3aa511);}};j=w([C(0x0,_0x1fbf73(_0x2dd465)),C(0x1,_0x1fbf73(_0x523f9b)),C(0x2,_0x2fb584),C(0x3,_0x433198),C(0x4,_0x12b622)],j);function _0x1aee(){const _0x6e2000=['_configService','open','version','createSocket','message','getOwnPropertyDescriptor','defineProperty','collaboration-client-node.config','onStarting','@univerjs-pro/collaboration-client-node','registerHTTPInterceptor','close','2279368GqbwUD','packageName','call','8zQQdVb','5DKmqQC','_doCreateSocket','setConfig','dispose','3878781OyJolG','default','_injector','getConfig','set','6430vlVTds','function','error','string','pipe','symbol','add','addEventListener','object','headers','pluginName','407PAWFFz','removeEventListener','next','decorate','customHeaders','365110rpeJxx','toPrimitive','4851553TzCtNU','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','send','_httpService','iterator','10065564ZHPSQg','prototype','11fCgvVE','5341068PSixok','18rnWepB','_registerDependencies'];_0x1aee=function(){return _0x6e2000;};return _0x1aee();}export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
@@ -1,4 +1,4 @@
1
- export { COLLABORATION_CLIENT_NODE_CONFIG_KEY } from './config.schema';
2
- export type { IUniverCollaborationClientNodeConfig } from './config.schema';
1
+ export { COLLABORATION_CLIENT_NODE_CONFIG_KEY } from './config/config';
2
+ export type { IUniverCollaborationClientNodeConfig } from './config/config';
3
3
  export { UniverCollaborationClientNodePlugin } from './plugin';
4
4
  export { NodeCollaborationSocketService } from './services/collaboration-socket.service';
@@ -1,4 +1,4 @@
1
- import type { IUniverCollaborationClientNodeConfig } from './config.schema';
1
+ import type { IUniverCollaborationClientNodeConfig } from './config/config';
2
2
  import { IConfigService, Injector, Plugin } from '@univerjs/core';
3
3
  export declare class UniverCollaborationClientNodePlugin extends Plugin {
4
4
  private readonly _configService;
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x29a2(_0x2aaa73,_0x56a39d){_0x2aaa73=_0x2aaa73-0xaf;const _0x29785e=_0x2978();let _0x29a28f=_0x29785e[_0x2aaa73];return _0x29a28f;}(function(_0x2218df,_0x124c92){const _0x8fccca=_0x29a2,_0x4d2659=_0x2218df();while(!![]){try{const _0x4b4c7a=parseInt(_0x8fccca(0xf9))/0x1*(-parseInt(_0x8fccca(0xfa))/0x2)+parseInt(_0x8fccca(0xc4))/0x3+-parseInt(_0x8fccca(0xf6))/0x4*(parseInt(_0x8fccca(0xdc))/0x5)+parseInt(_0x8fccca(0xfb))/0x6+-parseInt(_0x8fccca(0xb2))/0x7+-parseInt(_0x8fccca(0xbe))/0x8*(-parseInt(_0x8fccca(0xeb))/0x9)+parseInt(_0x8fccca(0xea))/0xa*(parseInt(_0x8fccca(0xbb))/0xb);if(_0x4b4c7a===_0x124c92)break;else _0x4d2659['push'](_0x4d2659['shift']());}catch(_0x7bfe7d){_0x4d2659['push'](_0x4d2659['shift']());}}}(_0x2978,0xd52f8),function(_0x7dbb74,_0x3485a6){const _0x11b1f7=_0x29a2;typeof exports==_0x11b1f7(0xf8)&&typeof module<'u'?_0x3485a6(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define=='function'&&define['amd']?define([_0x11b1f7(0xcd),_0x11b1f7(0xd2),_0x11b1f7(0xc1),'@univerjs/network','rxjs','@univerjs-pro/collaboration'],_0x3485a6):(_0x7dbb74=typeof globalThis<'u'?globalThis:_0x7dbb74||self,_0x3485a6(_0x7dbb74[_0x11b1f7(0xf5)]={},_0x7dbb74[_0x11b1f7(0xe0)],_0x7dbb74[_0x11b1f7(0xaf)],_0x7dbb74[_0x11b1f7(0xca)],_0x7dbb74[_0x11b1f7(0xed)],_0x7dbb74['UniverProCollaboration']));}(this,function(_0x496b35,_0x2f698f,_0x5d39fe,_0x5d1c0a,_0xec7f7d,_0xe51902){const _0x410398=_0x29a2;Object[_0x410398(0xd7)](_0x496b35,Symbol[_0x410398(0xe9)],{'value':'Module'});var _0x23ba35=(_0x61bf04,_0x531f4f)=>()=>(_0x531f4f||(_0x61bf04((_0x531f4f={'exports':{}})[_0x410398(0xcd)],_0x531f4f),_0x61bf04=null),_0x531f4f[_0x410398(0xcd)]);let _0x2009ba='collaboration-client-node.config',_0x5b55de={};var _0x55c6f5=_0x410398(0xe1),_0x342a8e='0.25.0',_0x54662e=_0x23ba35((_0x27ad80,_0x55a3ae)=>{const _0x3522b0=_0x410398;_0x55a3ae[_0x3522b0(0xcd)]=function(){throw Error('ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object');};})();function _0x2fc846(_0x983f74,_0x5c96fb){return function(_0x5c2ad2,_0x39c507){_0x5c96fb(_0x5c2ad2,_0x39c507,_0x983f74);};}function _0x2d46ed(_0x563c0a,_0x324bcd,_0x2e91af,_0x14bcca){const _0x38f6a8=_0x410398;var _0x273574=arguments['length'],_0x44dbc5=_0x273574<0x3?_0x324bcd:_0x14bcca===null?_0x14bcca=Object['getOwnPropertyDescriptor'](_0x324bcd,_0x2e91af):_0x14bcca,_0x7355ba;if(typeof Reflect==_0x38f6a8(0xf8)&&typeof Reflect[_0x38f6a8(0xf1)]=='function')_0x44dbc5=Reflect[_0x38f6a8(0xf1)](_0x563c0a,_0x324bcd,_0x2e91af,_0x14bcca);else{for(var _0x14e61e=_0x563c0a[_0x38f6a8(0xb4)]-0x1;_0x14e61e>=0x0;_0x14e61e--)(_0x7355ba=_0x563c0a[_0x14e61e])&&(_0x44dbc5=(_0x273574<0x3?_0x7355ba(_0x44dbc5):_0x273574>0x3?_0x7355ba(_0x324bcd,_0x2e91af,_0x44dbc5):_0x7355ba(_0x324bcd,_0x2e91af))||_0x44dbc5);}return _0x273574>0x3&&_0x44dbc5&&Object[_0x38f6a8(0xd7)](_0x324bcd,_0x2e91af,_0x44dbc5),_0x44dbc5;}let _0x38e9e6=class extends _0x5d39fe[_0x410398(0xee)]{constructor(_0x36c694){super(),this['_configService']=_0x36c694;}[_0x410398(0xb0)](_0x503e6c){const _0x9f98e=_0x410398;var _0x451dcb;let _0x2985e8=((_0x451dcb=this[_0x9f98e(0xce)][_0x9f98e(0xe6)](_0x2f698f[_0x9f98e(0xc8)]))==null?void 0x0:_0x451dcb[_0x9f98e(0xe3)])||{};try{let _0x2de4d7=new _0x54662e[(_0x9f98e(0xc6))](_0x503e6c,{'headers':{..._0x2985e8}}),_0x194d0e=new _0x5d39fe[(_0x9f98e(0xec))]();return{'URL':_0x503e6c,'close':(_0x2e89f9,_0x48190c)=>{const _0x283e14=_0x9f98e;_0x2de4d7[_0x283e14(0xe4)](_0x2e89f9,_0x48190c),_0x194d0e[_0x283e14(0xd9)]();},'send':_0x341d37=>{const _0x29bb87=_0x9f98e;_0x2de4d7[_0x29bb87(0xd5)](_0x341d37);},'open$':new _0xec7f7d['Observable'](_0x18a2bc=>{const _0x14c476=_0x9f98e;let _0x25bd4d=_0x347451=>_0x18a2bc[_0x14c476(0xd3)](_0x347451);_0x2de4d7[_0x14c476(0xda)](_0x14c476(0xde),_0x25bd4d),_0x194d0e['add']((0x0,_0x5d39fe[_0x14c476(0xb9)])(()=>_0x2de4d7['removeEventListener'](_0x14c476(0xde),_0x25bd4d)));})[_0x9f98e(0xd6)]((0x0,_0xec7f7d['share'])()),'close$':new _0xec7f7d[(_0x9f98e(0xbf))](_0x449d21=>{const _0x569205=_0x9f98e;let _0x3a3136=_0x90c0ba=>_0x449d21[_0x569205(0xd3)](_0x90c0ba);_0x2de4d7[_0x569205(0xda)](_0x569205(0xe4),_0x3a3136),_0x194d0e[_0x569205(0xc0)]((0x0,_0x5d39fe[_0x569205(0xb9)])(()=>_0x2de4d7['removeEventListener'](_0x569205(0xe4),_0x3a3136)));})[_0x9f98e(0xd6)]((0x0,_0xec7f7d[_0x9f98e(0xb5)])()),'error$':new _0xec7f7d[(_0x9f98e(0xbf))](_0x3de42b=>{const _0x5b627a=_0x9f98e;let _0x13d683=_0x3fb504=>_0x3de42b[_0x5b627a(0xd3)](_0x3fb504);_0x2de4d7[_0x5b627a(0xda)]('error',_0x13d683),_0x194d0e[_0x5b627a(0xc0)]((0x0,_0x5d39fe[_0x5b627a(0xb9)])(()=>_0x2de4d7[_0x5b627a(0xf0)]('error',_0x13d683)));})['pipe']((0x0,_0xec7f7d['share'])()),'message$':new _0xec7f7d[(_0x9f98e(0xbf))](_0x236bcb=>{const _0x6134ac=_0x9f98e;let _0x53c5b6=_0x4ca64d=>_0x236bcb['next'](_0x4ca64d);_0x2de4d7[_0x6134ac(0xda)]('message',_0x53c5b6),_0x194d0e[_0x6134ac(0xc0)]((0x0,_0x5d39fe[_0x6134ac(0xb9)])(()=>_0x2de4d7[_0x6134ac(0xf0)](_0x6134ac(0xd4),_0x53c5b6)));})['pipe']((0x0,_0xec7f7d['share'])())};}catch(_0x2a71ef){return console['error'](_0x2a71ef),null;}}};_0x38e9e6=_0x2d46ed([_0x2fc846(0x0,_0x5d39fe['IConfigService'])],_0x38e9e6);function _0x26233e(_0x1bb8a7){'@babel/helpers - typeof';const _0x360573=_0x410398;return _0x26233e=typeof Symbol==_0x360573(0xe8)&&typeof Symbol[_0x360573(0xef)]==_0x360573(0xe5)?function(_0x50320a){return typeof _0x50320a;}:function(_0x4a24a6){const _0x34fa65=_0x360573;return _0x4a24a6&&typeof Symbol==_0x34fa65(0xe8)&&_0x4a24a6[_0x34fa65(0xc3)]===Symbol&&_0x4a24a6!==Symbol['prototype']?_0x34fa65(0xe5):typeof _0x4a24a6;},_0x26233e(_0x1bb8a7);}function _0x3ad854(_0x5b7c25,_0x1b1b5e){const _0xad2b5e=_0x410398;if(_0x26233e(_0x5b7c25)!=_0xad2b5e(0xf8)||!_0x5b7c25)return _0x5b7c25;var _0x2d23db=_0x5b7c25[Symbol[_0xad2b5e(0xfd)]];if(_0x2d23db!==void 0x0){var _0x53dee5=_0x2d23db['call'](_0x5b7c25,_0x1b1b5e||_0xad2b5e(0xc9));if(_0x26233e(_0x53dee5)!=_0xad2b5e(0xf8))return _0x53dee5;throw TypeError(_0xad2b5e(0xf2));}return(_0x1b1b5e===_0xad2b5e(0xdf)?String:Number)(_0x5b7c25);}function _0x2c88c1(_0x325b58){const _0x5994f0=_0x410398;var _0x44c561=_0x3ad854(_0x325b58,_0x5994f0(0xdf));return _0x26233e(_0x44c561)==_0x5994f0(0xe5)?_0x44c561:_0x44c561+'';}function _0x297232(_0x343b5b,_0x2bbbbb,_0x29d86d){return(_0x2bbbbb=_0x2c88c1(_0x2bbbbb))in _0x343b5b?Object['defineProperty'](_0x343b5b,_0x2bbbbb,{'value':_0x29d86d,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x343b5b[_0x2bbbbb]=_0x29d86d,_0x343b5b;}let _0x1b5fae=class extends _0x5d39fe[_0x410398(0xf3)]{constructor(_0x1da237=_0x5b55de,_0x142269,_0x3345cd){const _0x4ffca8=_0x410398;super(),this[_0x4ffca8(0xce)]=_0x142269,this[_0x4ffca8(0xdd)]=_0x3345cd,this[_0x4ffca8(0xce)]['setConfig'](_0x2009ba,_0x1da237);}[_0x410398(0xb7)](){const _0x1585fd=_0x410398;this[_0x1585fd(0xb6)]();}[_0x410398(0xb6)](){const _0x2f9de1=_0x410398;(0x0,_0x5d39fe[_0x2f9de1(0xcf)])(this[_0x2f9de1(0xdd)],[[_0x5d1c0a[_0x2f9de1(0xe7)],{'useClass':_0x38e9e6}]]);}};_0x297232(_0x1b5fae,'pluginName',_0x410398(0xd0)),_0x297232(_0x1b5fae,_0x410398(0xf7),_0x55c6f5),_0x297232(_0x1b5fae,_0x410398(0xd8),_0x342a8e),_0x1b5fae=_0x2d46ed([(0x0,_0x5d39fe[_0x410398(0xc7)])(_0x2f698f[_0x410398(0xc5)]),_0x2fc846(0x1,_0x5d39fe['IConfigService']),_0x2fc846(0x2,(0x0,_0x5d39fe[_0x410398(0xbc)])(_0x5d39fe[_0x410398(0xbd)]))],_0x1b5fae);let _0x287f44=class extends _0x2f698f[_0x410398(0xd1)]{constructor(_0x4c1095,_0x49b3be,_0x14b424,_0x1c52c4,_0x45e1c8){const _0x173862=_0x410398;super(_0x4c1095,_0x49b3be,_0x14b424,_0x1c52c4,_0x45e1c8);let _0x27ac48=this[_0x173862(0xce)][_0x173862(0xe6)](_0x2f698f[_0x173862(0xc8)]);this[_0x173862(0xb8)][_0x173862(0xcc)]({'interceptor':(_0xcad9ac,_0x41c82a)=>{const _0x34c9f8=_0x173862;let _0x25af92=_0xcad9ac[_0x34c9f8(0xe2)];if(_0x27ac48!=null&&_0x27ac48['customHeaders']){for(let _0x872fdb in _0x27ac48[_0x34c9f8(0xe3)])_0x25af92[_0x34c9f8(0xdb)](_0x872fdb,_0x27ac48[_0x34c9f8(0xe3)][_0x872fdb]);}return _0x41c82a(_0xcad9ac);}});}async[_0x410398(0xb0)](_0x102a76){return this['_doCreateSocket'](_0x102a76);}};_0x287f44=_0x2d46ed([_0x2fc846(0x0,(0x0,_0x5d39fe['Inject'])(_0x5d39fe[_0x410398(0xbd)])),_0x2fc846(0x1,(0x0,_0x5d39fe[_0x410398(0xbc)])(_0x5d1c0a[_0x410398(0xfc)])),_0x2fc846(0x2,_0x5d39fe[_0x410398(0xf4)]),_0x2fc846(0x3,_0x5d39fe[_0x410398(0xcb)]),_0x2fc846(0x4,_0xe51902[_0x410398(0xb1)])],_0x287f44),_0x496b35[_0x410398(0xb3)]=_0x2009ba,Object[_0x410398(0xd7)](_0x496b35,_0x410398(0xba),{'enumerable':!0x0,'get':function(){return _0x287f44;}}),Object[_0x410398(0xd7)](_0x496b35,_0x410398(0xc2),{'enumerable':!0x0,'get':function(){return _0x1b5fae;}});}));function _0x2978(){const _0x216380=['registerHTTPInterceptor','exports','_configService','registerDependencies','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','CollaborationSocketService','@univerjs-pro/collaboration-client','next','message','send','pipe','defineProperty','version','dispose','addEventListener','set','760705riCMLy','_injector','open','string','UniverProCollaborationClient','@univerjs-pro/collaboration-client-node','headers','customHeaders','close','symbol','getConfig','ISocketService','function','toStringTag','127270Vhuzbu','10481994ksEOkF','DisposableCollection','rxjs','Disposable','iterator','removeEventListener','decorate','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Plugin','IConfigService','UniverProCollaborationClientNode','20lUkbTp','packageName','object','206zCbFFE','16094wgiDFr','1264830HUUpvQ','HTTPService','toPrimitive','UniverCore','createSocket','ISnapshotServerService','8590736gWDEcp','COLLABORATION_CLIENT_NODE_CONFIG_KEY','length','share','_registerDependencies','onStarting','_httpService','toDisposable','NodeCollaborationSocketService','2013piqGGt','Inject','Injector','8kysAyf','Observable','add','@univerjs/core','UniverCollaborationClientNodePlugin','constructor','2442993LJEHPi','UniverCollaborationClientPlugin','WebSocket','DependentOn','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','default','UniverNetwork','ILogService'];_0x2978=function(){return _0x216380;};return _0x2978();}
1
+ (function(_0x35dc3c,_0x4104f4){const _0x5a6f86=_0x537b,_0x560887=_0x35dc3c();while(!![]){try{const _0x3f7a1d=-parseInt(_0x5a6f86(0x154))/0x1*(-parseInt(_0x5a6f86(0x156))/0x2)+parseInt(_0x5a6f86(0x18b))/0x3*(-parseInt(_0x5a6f86(0x160))/0x4)+parseInt(_0x5a6f86(0x167))/0x5+-parseInt(_0x5a6f86(0x174))/0x6*(parseInt(_0x5a6f86(0x171))/0x7)+parseInt(_0x5a6f86(0x15f))/0x8+-parseInt(_0x5a6f86(0x145))/0x9+parseInt(_0x5a6f86(0x16c))/0xa;if(_0x3f7a1d===_0x4104f4)break;else _0x560887['push'](_0x560887['shift']());}catch(_0x38e6c7){_0x560887['push'](_0x560887['shift']());}}}(_0x5010,0xf3632),function(_0x42360f,_0x22aabf){const _0x364d35=_0x537b;typeof exports==_0x364d35(0x17c)&&typeof module<'u'?_0x22aabf(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define==_0x364d35(0x168)&&define[_0x364d35(0x185)]?define(['exports','@univerjs-pro/collaboration-client',_0x364d35(0x169),_0x364d35(0x186),_0x364d35(0x151),_0x364d35(0x157)],_0x22aabf):(_0x42360f=typeof globalThis<'u'?globalThis:_0x42360f||self,_0x22aabf(_0x42360f[_0x364d35(0x14e)]={},_0x42360f[_0x364d35(0x17e)],_0x42360f[_0x364d35(0x170)],_0x42360f[_0x364d35(0x187)],_0x42360f[_0x364d35(0x151)],_0x42360f[_0x364d35(0x162)]));}(this,function(_0x47313c,_0x16382c,_0x33b92e,_0x5cfb11,_0xa38acc,_0x50ee19){const _0x221703=_0x537b;Object[_0x221703(0x188)](_0x47313c,Symbol[_0x221703(0x146)],{'value':_0x221703(0x15c)});var _0x209874=(_0x8a55de,_0x318e17)=>()=>(_0x318e17||(_0x8a55de((_0x318e17={'exports':{}})[_0x221703(0x147)],_0x318e17),_0x8a55de=null),_0x318e17[_0x221703(0x147)]);let _0x428564=_0x221703(0x173),_0x39dbac={};var _0x27ad88=_0x221703(0x166),_0x22bdd4=_0x221703(0x155),_0x162aa1=_0x209874((_0x542473,_0x5bb6d4)=>{_0x5bb6d4['exports']=function(){throw Error('ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object');};})();function _0x6332de(_0x371abb,_0x5b9a50){return function(_0x191037,_0x59ba87){_0x5b9a50(_0x191037,_0x59ba87,_0x371abb);};}function _0x50017b(_0x1d5803,_0x4291ac,_0x20cf1b,_0x1f7740){const _0x8f5db8=_0x221703;var _0x52241d=arguments['length'],_0x4ce01a=_0x52241d<0x3?_0x4291ac:_0x1f7740===null?_0x1f7740=Object[_0x8f5db8(0x140)](_0x4291ac,_0x20cf1b):_0x1f7740,_0x5bc8b2;if(typeof Reflect==_0x8f5db8(0x17c)&&typeof Reflect[_0x8f5db8(0x14c)]==_0x8f5db8(0x168))_0x4ce01a=Reflect[_0x8f5db8(0x14c)](_0x1d5803,_0x4291ac,_0x20cf1b,_0x1f7740);else{for(var _0x43842d=_0x1d5803[_0x8f5db8(0x16b)]-0x1;_0x43842d>=0x0;_0x43842d--)(_0x5bc8b2=_0x1d5803[_0x43842d])&&(_0x4ce01a=(_0x52241d<0x3?_0x5bc8b2(_0x4ce01a):_0x52241d>0x3?_0x5bc8b2(_0x4291ac,_0x20cf1b,_0x4ce01a):_0x5bc8b2(_0x4291ac,_0x20cf1b))||_0x4ce01a);}return _0x52241d>0x3&&_0x4ce01a&&Object[_0x8f5db8(0x188)](_0x4291ac,_0x20cf1b,_0x4ce01a),_0x4ce01a;}let _0x54deae=class extends _0x33b92e['Disposable']{constructor(_0x1b1ff0){const _0x1d86b0=_0x221703;super(),this[_0x1d86b0(0x144)]=_0x1b1ff0;}['createSocket'](_0x378ecb){const _0x49eb7b=_0x221703;var _0x4aed2b;let _0x3853d4=((_0x4aed2b=this[_0x49eb7b(0x144)][_0x49eb7b(0x181)](_0x16382c[_0x49eb7b(0x14f)]))==null?void 0x0:_0x4aed2b[_0x49eb7b(0x17f)])||{};try{let _0x355ca5=new _0x162aa1['WebSocket'](_0x378ecb,{'headers':{..._0x3853d4}}),_0x105825=new _0x33b92e['DisposableCollection']();return{'URL':_0x378ecb,'close':(_0x31bdd7,_0x269e58)=>{const _0x182559=_0x49eb7b;_0x355ca5[_0x182559(0x16e)](_0x31bdd7,_0x269e58),_0x105825['dispose']();},'send':_0x199e5a=>{const _0x13d6d4=_0x49eb7b;_0x355ca5[_0x13d6d4(0x141)](_0x199e5a);},'open$':new _0xa38acc['Observable'](_0x5c7d3c=>{const _0x59309d=_0x49eb7b;let _0x1d2ca6=_0x36412=>_0x5c7d3c[_0x59309d(0x152)](_0x36412);_0x355ca5['addEventListener']('open',_0x1d2ca6),_0x105825[_0x59309d(0x15a)]((0x0,_0x33b92e[_0x59309d(0x172)])(()=>_0x355ca5['removeEventListener'](_0x59309d(0x184),_0x1d2ca6)));})[_0x49eb7b(0x16f)]((0x0,_0xa38acc[_0x49eb7b(0x17b)])()),'close$':new _0xa38acc[(_0x49eb7b(0x175))](_0xff9c5f=>{const _0x2dc07c=_0x49eb7b;let _0x511653=_0x38422e=>_0xff9c5f[_0x2dc07c(0x152)](_0x38422e);_0x355ca5['addEventListener'](_0x2dc07c(0x16e),_0x511653),_0x105825[_0x2dc07c(0x15a)]((0x0,_0x33b92e[_0x2dc07c(0x172)])(()=>_0x355ca5[_0x2dc07c(0x16a)](_0x2dc07c(0x16e),_0x511653)));})['pipe']((0x0,_0xa38acc[_0x49eb7b(0x17b)])()),'error$':new _0xa38acc[(_0x49eb7b(0x175))](_0x4a677b=>{const _0x3dac82=_0x49eb7b;let _0x1bafb5=_0x4d9301=>_0x4a677b[_0x3dac82(0x152)](_0x4d9301);_0x355ca5[_0x3dac82(0x13e)](_0x3dac82(0x161),_0x1bafb5),_0x105825['add']((0x0,_0x33b92e['toDisposable'])(()=>_0x355ca5[_0x3dac82(0x16a)](_0x3dac82(0x161),_0x1bafb5)));})[_0x49eb7b(0x16f)]((0x0,_0xa38acc['share'])()),'message$':new _0xa38acc[(_0x49eb7b(0x175))](_0x312df8=>{const _0xcacb74=_0x49eb7b;let _0x46d43f=_0x4bb370=>_0x312df8['next'](_0x4bb370);_0x355ca5[_0xcacb74(0x13e)](_0xcacb74(0x15e),_0x46d43f),_0x105825[_0xcacb74(0x15a)]((0x0,_0x33b92e['toDisposable'])(()=>_0x355ca5[_0xcacb74(0x16a)](_0xcacb74(0x15e),_0x46d43f)));})[_0x49eb7b(0x16f)]((0x0,_0xa38acc[_0x49eb7b(0x17b)])())};}catch(_0x28870c){return console[_0x49eb7b(0x161)](_0x28870c),null;}}};_0x54deae=_0x50017b([_0x6332de(0x0,_0x33b92e[_0x221703(0x159)])],_0x54deae);function _0x29bb28(_0x59b414){'@babel/helpers - typeof';const _0x35e459=_0x221703;return _0x29bb28=typeof Symbol=='function'&&typeof Symbol[_0x35e459(0x183)]=='symbol'?function(_0x2609ef){return typeof _0x2609ef;}:function(_0x1b4328){const _0xa9edea=_0x35e459;return _0x1b4328&&typeof Symbol==_0xa9edea(0x168)&&_0x1b4328[_0xa9edea(0x158)]===Symbol&&_0x1b4328!==Symbol['prototype']?_0xa9edea(0x14a):typeof _0x1b4328;},_0x29bb28(_0x59b414);}function _0xed6a04(_0x272d5b,_0x18cb21){const _0x598975=_0x221703;if(_0x29bb28(_0x272d5b)!=_0x598975(0x17c)||!_0x272d5b)return _0x272d5b;var _0x44c676=_0x272d5b[Symbol[_0x598975(0x143)]];if(_0x44c676!==void 0x0){var _0x71bf25=_0x44c676[_0x598975(0x14d)](_0x272d5b,_0x18cb21||_0x598975(0x178));if(_0x29bb28(_0x71bf25)!=_0x598975(0x17c))return _0x71bf25;throw TypeError(_0x598975(0x150));}return(_0x18cb21===_0x598975(0x165)?String:Number)(_0x272d5b);}function _0x5249c7(_0x2a3890){const _0x5a0d88=_0x221703;var _0x47057f=_0xed6a04(_0x2a3890,_0x5a0d88(0x165));return _0x29bb28(_0x47057f)==_0x5a0d88(0x14a)?_0x47057f:_0x47057f+'';}function _0x37ee4c(_0x545e62,_0x9ff9ea,_0xbf13e9){const _0x22c98f=_0x221703;return(_0x9ff9ea=_0x5249c7(_0x9ff9ea))in _0x545e62?Object[_0x22c98f(0x188)](_0x545e62,_0x9ff9ea,{'value':_0xbf13e9,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x545e62[_0x9ff9ea]=_0xbf13e9,_0x545e62;}let _0x574cfb=class extends _0x33b92e[_0x221703(0x16d)]{constructor(_0x54352e=_0x39dbac,_0x5c1b79,_0x46e162){const _0x4244a1=_0x221703;super(),this[_0x4244a1(0x144)]=_0x5c1b79,this[_0x4244a1(0x148)]=_0x46e162,this[_0x4244a1(0x144)][_0x4244a1(0x13f)](_0x428564,_0x54352e);}['onStarting'](){const _0x4f26dc=_0x221703;this[_0x4f26dc(0x15d)]();}[_0x221703(0x15d)](){const _0x229a23=_0x221703;(0x0,_0x33b92e['registerDependencies'])(this[_0x229a23(0x148)],[[_0x5cfb11[_0x229a23(0x149)],{'useClass':_0x54deae}]]);}};_0x37ee4c(_0x574cfb,'pluginName',_0x221703(0x18a)),_0x37ee4c(_0x574cfb,'packageName',_0x27ad88),_0x37ee4c(_0x574cfb,_0x221703(0x177),_0x22bdd4),_0x574cfb=_0x50017b([(0x0,_0x33b92e[_0x221703(0x17d)])(_0x16382c['UniverCollaborationClientPlugin']),_0x6332de(0x1,_0x33b92e[_0x221703(0x159)]),_0x6332de(0x2,(0x0,_0x33b92e['Inject'])(_0x33b92e[_0x221703(0x14b)]))],_0x574cfb);let _0x280db8=class extends _0x16382c[_0x221703(0x15b)]{constructor(_0x199fe3,_0x1737d2,_0x49c6b4,_0x336487,_0x45c004){const _0x4134ce=_0x221703;super(_0x199fe3,_0x1737d2,_0x49c6b4,_0x336487,_0x45c004);let _0x134b93=this[_0x4134ce(0x144)]['getConfig'](_0x16382c[_0x4134ce(0x14f)]);this['_httpService'][_0x4134ce(0x180)]({'interceptor':(_0x57db47,_0x171714)=>{const _0x4beec8=_0x4134ce;let _0x2401e6=_0x57db47[_0x4beec8(0x142)];if(_0x134b93!=null&&_0x134b93[_0x4beec8(0x17f)]){for(let _0x9dc633 in _0x134b93[_0x4beec8(0x17f)])_0x2401e6['set'](_0x9dc633,_0x134b93[_0x4beec8(0x17f)][_0x9dc633]);}return _0x171714(_0x57db47);}});}async[_0x221703(0x164)](_0x29c47d){const _0x49f92a=_0x221703;return this[_0x49f92a(0x176)](_0x29c47d);}};_0x280db8=_0x50017b([_0x6332de(0x0,(0x0,_0x33b92e['Inject'])(_0x33b92e[_0x221703(0x14b)])),_0x6332de(0x1,(0x0,_0x33b92e[_0x221703(0x17a)])(_0x5cfb11[_0x221703(0x179)])),_0x6332de(0x2,_0x33b92e[_0x221703(0x159)]),_0x6332de(0x3,_0x33b92e['ILogService']),_0x6332de(0x4,_0x50ee19[_0x221703(0x189)])],_0x280db8),_0x47313c[_0x221703(0x163)]=_0x428564,Object['defineProperty'](_0x47313c,_0x221703(0x182),{'enumerable':!0x0,'get':function(){return _0x280db8;}}),Object[_0x221703(0x188)](_0x47313c,_0x221703(0x153),{'enumerable':!0x0,'get':function(){return _0x574cfb;}});}));function _0x537b(_0x1d6ec5,_0x27b682){_0x1d6ec5=_0x1d6ec5-0x13e;const _0x5010d2=_0x5010();let _0x537bac=_0x5010d2[_0x1d6ec5];return _0x537bac;}function _0x5010(){const _0x40572b=['Plugin','close','pipe','UniverCore','11655441wuFfnj','toDisposable','collaboration-client-node.config','6cUYkHW','Observable','_doCreateSocket','version','default','HTTPService','Inject','share','object','DependentOn','UniverProCollaborationClient','customHeaders','registerHTTPInterceptor','getConfig','NodeCollaborationSocketService','iterator','open','amd','@univerjs/network','UniverNetwork','defineProperty','ISnapshotServerService','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','21PVnhyC','addEventListener','setConfig','getOwnPropertyDescriptor','send','headers','toPrimitive','_configService','12837069iTpTnq','toStringTag','exports','_injector','ISocketService','symbol','Injector','decorate','call','UniverProCollaborationClientNode','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','rxjs','next','UniverCollaborationClientNodePlugin','114emfAMA','1.0.0-alpha.0','33942EAtStx','@univerjs-pro/collaboration','constructor','IConfigService','add','CollaborationSocketService','Module','_registerDependencies','message','6869696KrKBUv','1009728JJlhXz','error','UniverProCollaboration','COLLABORATION_CLIENT_NODE_CONFIG_KEY','createSocket','string','@univerjs-pro/collaboration-client-node','5040205aHjDEr','function','@univerjs/core','removeEventListener','length','20538950BRaRcz'];_0x5010=function(){return _0x40572b;};return _0x5010();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "0.25.0",
3
+ "version": "1.0.0-alpha.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>",
@@ -52,17 +52,17 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "ws": "8.20.1",
55
- "@univerjs-pro/collaboration": "0.25.0",
56
- "@univerjs-pro/collaboration-client": "0.25.0",
57
- "@univerjs/core": "0.25.0",
58
- "@univerjs/network": "0.25.0"
55
+ "@univerjs-pro/collaboration-client": "1.0.0-alpha.0",
56
+ "@univerjs-pro/collaboration": "1.0.0-alpha.0",
57
+ "@univerjs/core": "1.0.0-alpha.0",
58
+ "@univerjs/network": "1.0.0-alpha.0"
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
- "vitest": "^4.1.6",
65
- "@univerjs-infra/shared": "0.25.0"
64
+ "vitest": "^4.1.9",
65
+ "@univerjs-infra/shared": "1.0.0-alpha.0"
66
66
  },
67
67
  "scripts": {
68
68
  "test": "vitest run",