@univerjs-pro/collaboration-client-node 0.24.0-insiders.20260530-57a0a3e → 0.25.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 _0x3eaa00=_0x29d0;(function(_0x10ae61,_0x202901){const _0xe64882=_0x29d0,_0x82e763=_0x10ae61();while(!![]){try{const _0x571793=parseInt(_0xe64882(0x99))/0x1+-parseInt(_0xe64882(0x75))/0x2+-parseInt(_0xe64882(0x96))/0x3+parseInt(_0xe64882(0x82))/0x4*(parseInt(_0xe64882(0x8e))/0x5)+parseInt(_0xe64882(0xa2))/0x6*(-parseInt(_0xe64882(0x98))/0x7)+-parseInt(_0xe64882(0x7c))/0x8*(parseInt(_0xe64882(0x7e))/0x9)+-parseInt(_0xe64882(0xb7))/0xa*(-parseInt(_0xe64882(0x7f))/0xb);if(_0x571793===_0x202901)break;else _0x82e763['push'](_0x82e763['shift']());}catch(_0x4c42a6){_0x82e763['push'](_0x82e763['shift']());}}}(_0x49c2,0xdce00),Object[_0x3eaa00(0xa8)](exports,Symbol['toStringTag'],{'value':_0x3eaa00(0xa9)}));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=_0x3eaa00(0x80),s={};function _0x29d0(_0x16246c,_0x1a9ab5){_0x16246c=_0x16246c-0x75;const _0x49c246=_0x49c2();let _0x29d0da=_0x49c246[_0x16246c];return _0x29d0da;}var c=_0x3eaa00(0xa0),l='0.24.0-insiders.20260530-57a0a3e';function u(_0xd2e3da,_0x41bfa2){return function(_0x507ec7,_0x536c28){_0x41bfa2(_0x507ec7,_0x536c28,_0xd2e3da);};}function d(_0x42d57f,_0x2efae1,_0x45f258,_0x482911){const _0x2eed53=_0x3eaa00;var _0x1f9617=arguments[_0x2eed53(0x9e)],_0x2b01c3=_0x1f9617<0x3?_0x2efae1:_0x482911===null?_0x482911=Object[_0x2eed53(0x94)](_0x2efae1,_0x45f258):_0x482911,_0x7ebc73;if(typeof Reflect==_0x2eed53(0x8a)&&typeof Reflect['decorate']=='function')_0x2b01c3=Reflect['decorate'](_0x42d57f,_0x2efae1,_0x45f258,_0x482911);else{for(var _0x3abd59=_0x42d57f[_0x2eed53(0x9e)]-0x1;_0x3abd59>=0x0;_0x3abd59--)(_0x7ebc73=_0x42d57f[_0x3abd59])&&(_0x2b01c3=(_0x1f9617<0x3?_0x7ebc73(_0x2b01c3):_0x1f9617>0x3?_0x7ebc73(_0x2efae1,_0x45f258,_0x2b01c3):_0x7ebc73(_0x2efae1,_0x45f258))||_0x2b01c3);}return _0x1f9617>0x3&&_0x2b01c3&&Object['defineProperty'](_0x2efae1,_0x45f258,_0x2b01c3),_0x2b01c3;}let f=class extends t[_0x3eaa00(0xaf)]{constructor(_0x286555){const _0x569897=_0x3eaa00;super(),this[_0x569897(0xab)]=_0x286555;}[_0x3eaa00(0x8f)](_0x470c7b){const _0x47f3ef=_0x3eaa00;var _0x4b2da7;let _0x22f98f=((_0x4b2da7=this['_configService'][_0x47f3ef(0x7d)](e[_0x47f3ef(0x83)]))==null?void 0x0:_0x4b2da7[_0x47f3ef(0x79)])||{};try{let _0x3dbe99=new i['WebSocket'](_0x470c7b,{'headers':{..._0x22f98f}}),_0x52bf8c=new t[(_0x47f3ef(0x77))]();return{'URL':_0x470c7b,'close':(_0x5803e6,_0xa93906)=>{const _0x4eae72=_0x47f3ef;_0x3dbe99[_0x4eae72(0xa1)](_0x5803e6,_0xa93906),_0x52bf8c[_0x4eae72(0x87)]();},'send':_0x49c727=>{_0x3dbe99['send'](_0x49c727);},'open$':new r[(_0x47f3ef(0x92))](_0x1fa5d1=>{const _0x5e4673=_0x47f3ef;let _0x5411f8=_0x541c56=>_0x1fa5d1[_0x5e4673(0xad)](_0x541c56);_0x3dbe99[_0x5e4673(0x85)](_0x5e4673(0x9b),_0x5411f8),_0x52bf8c['add']((0x0,t[_0x5e4673(0x90)])(()=>_0x3dbe99[_0x5e4673(0xb5)](_0x5e4673(0x9b),_0x5411f8)));})[_0x47f3ef(0x93)]((0x0,r['share'])()),'close$':new r[(_0x47f3ef(0x92))](_0x2663f2=>{const _0x7befa1=_0x47f3ef;let _0x1a93d4=_0x139eea=>_0x2663f2[_0x7befa1(0xad)](_0x139eea);_0x3dbe99['addEventListener'](_0x7befa1(0xa1),_0x1a93d4),_0x52bf8c['add']((0x0,t[_0x7befa1(0x90)])(()=>_0x3dbe99[_0x7befa1(0xb5)]('close',_0x1a93d4)));})['pipe']((0x0,r[_0x47f3ef(0x97)])()),'error$':new r['Observable'](_0x198830=>{const _0x30ece3=_0x47f3ef;let _0x4ae191=_0x12ba2b=>_0x198830[_0x30ece3(0xad)](_0x12ba2b);_0x3dbe99[_0x30ece3(0x85)]('error',_0x4ae191),_0x52bf8c[_0x30ece3(0x88)]((0x0,t[_0x30ece3(0x90)])(()=>_0x3dbe99[_0x30ece3(0xb5)](_0x30ece3(0x7a),_0x4ae191)));})[_0x47f3ef(0x93)]((0x0,r[_0x47f3ef(0x97)])()),'message$':new r[(_0x47f3ef(0x92))](_0x304b07=>{const _0x2cdebb=_0x47f3ef;let _0x13c22a=_0x569e69=>_0x304b07[_0x2cdebb(0xad)](_0x569e69);_0x3dbe99[_0x2cdebb(0x85)](_0x2cdebb(0x9f),_0x13c22a),_0x52bf8c[_0x2cdebb(0x88)]((0x0,t[_0x2cdebb(0x90)])(()=>_0x3dbe99[_0x2cdebb(0xb5)](_0x2cdebb(0x9f),_0x13c22a)));})[_0x47f3ef(0x93)]((0x0,r[_0x47f3ef(0x97)])())};}catch(_0x2d7449){return console[_0x47f3ef(0x7a)](_0x2d7449),null;}}};f=d([u(0x0,t['IConfigService'])],f);function p(_0xe40934){'@babel/helpers - typeof';const _0x52a91c=_0x3eaa00;return p=typeof Symbol=='function'&&typeof Symbol[_0x52a91c(0x7b)]==_0x52a91c(0xa5)?function(_0x5e2082){return typeof _0x5e2082;}:function(_0x35f376){const _0x2f8791=_0x52a91c;return _0x35f376&&typeof Symbol==_0x2f8791(0x8b)&&_0x35f376['constructor']===Symbol&&_0x35f376!==Symbol['prototype']?_0x2f8791(0xa5):typeof _0x35f376;},p(_0xe40934);}function m(_0x2d94a3,_0x1f3259){const _0xc1fa09=_0x3eaa00;if(p(_0x2d94a3)!='object'||!_0x2d94a3)return _0x2d94a3;var _0x4930f3=_0x2d94a3[Symbol[_0xc1fa09(0xa7)]];if(_0x4930f3!==void 0x0){var _0x50202a=_0x4930f3[_0xc1fa09(0xae)](_0x2d94a3,_0x1f3259||_0xc1fa09(0x86));if(p(_0x50202a)!='object')return _0x50202a;throw TypeError(_0xc1fa09(0xb9));}return(_0x1f3259===_0xc1fa09(0x9a)?String:Number)(_0x2d94a3);}function h(_0x35623c){const _0x71673=_0x3eaa00;var _0x162290=m(_0x35623c,_0x71673(0x9a));return p(_0x162290)=='symbol'?_0x162290:_0x162290+'';}function g(_0x5e1ef0,_0x409540,_0x8c9bc4){const _0x532870=_0x3eaa00;return(_0x409540=h(_0x409540))in _0x5e1ef0?Object[_0x532870(0xa8)](_0x5e1ef0,_0x409540,{'value':_0x8c9bc4,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5e1ef0[_0x409540]=_0x8c9bc4,_0x5e1ef0;}let _=class extends t[_0x3eaa00(0x9d)]{constructor(_0x50d319=s,_0x1007d7,_0x2e198f){const _0x128206=_0x3eaa00;super(),this[_0x128206(0xab)]=_0x1007d7,this[_0x128206(0x8c)]=_0x2e198f,this['_configService'][_0x128206(0xb1)](o,_0x50d319);}[_0x3eaa00(0xac)](){const _0x47e389=_0x3eaa00;this[_0x47e389(0x89)]();}[_0x3eaa00(0x89)](){const _0x58f320=_0x3eaa00;(0x0,t['registerDependencies'])(this[_0x58f320(0x8c)],[[n[_0x58f320(0x8d)],{'useClass':f}]]);}};g(_,_0x3eaa00(0x91),_0x3eaa00(0xb8)),g(_,_0x3eaa00(0xb6),c),g(_,_0x3eaa00(0x76),l),_=d([(0x0,t[_0x3eaa00(0x9c)])(e[_0x3eaa00(0x81)]),u(0x1,t[_0x3eaa00(0xb2)]),u(0x2,(0x0,t[_0x3eaa00(0xa4)])(t['Injector']))],_);let v=class extends e[_0x3eaa00(0xa6)]{constructor(_0x208aff,_0x1ab1ea,_0x16d681,_0x4856b0,_0x5f7c6a){const _0xc0272d=_0x3eaa00;super(_0x208aff,_0x1ab1ea,_0x16d681,_0x4856b0,_0x5f7c6a);let _0x332f78=this[_0xc0272d(0xab)][_0xc0272d(0x7d)](e[_0xc0272d(0x83)]);this['_httpService'][_0xc0272d(0xaa)]({'interceptor':(_0xed0fed,_0x239e51)=>{const _0x547657=_0xc0272d;let _0x4281ed=_0xed0fed[_0x547657(0xb4)];if(_0x332f78!=null&&_0x332f78[_0x547657(0x79)]){for(let _0x79eaff in _0x332f78['customHeaders'])_0x4281ed['set'](_0x79eaff,_0x332f78[_0x547657(0x79)][_0x79eaff]);}return _0x239e51(_0xed0fed);}});}async['createSocket'](_0x228722){return this['_doCreateSocket'](_0x228722);}};v=d([u(0x0,(0x0,t[_0x3eaa00(0xa4)])(t[_0x3eaa00(0xa3)])),u(0x1,(0x0,t[_0x3eaa00(0xa4)])(n[_0x3eaa00(0x78)])),u(0x2,t[_0x3eaa00(0xb2)]),u(0x3,t[_0x3eaa00(0xb0)]),u(0x4,a['ISnapshotServerService'])],v),exports[_0x3eaa00(0xb3)]=o,Object['defineProperty'](exports,_0x3eaa00(0x95),{'enumerable':!0x0,'get':function(){return v;}}),Object['defineProperty'](exports,_0x3eaa00(0x84),{'enumerable':!0x0,'get':function(){return _;}});function _0x49c2(){const _0x199191=['pluginName','Observable','pipe','getOwnPropertyDescriptor','NodeCollaborationSocketService','5417262UaDIhK','share','3481289vzyeEo','1389522TyuyDJ','string','open','DependentOn','Plugin','length','message','@univerjs-pro/collaboration-client-node','close','6TJTqlj','Injector','Inject','symbol','CollaborationSocketService','toPrimitive','defineProperty','Module','registerHTTPInterceptor','_configService','onStarting','next','call','Disposable','ILogService','setConfig','IConfigService','COLLABORATION_CLIENT_NODE_CONFIG_KEY','headers','removeEventListener','packageName','30930onznBk','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','2522326PkYMQK','version','DisposableCollection','HTTPService','customHeaders','error','iterator','16DlsbQt','getConfig','5160960pzPmrs','13871xnyPro','collaboration-client-node.config','UniverCollaborationClientPlugin','4DbYbFh','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','UniverCollaborationClientNodePlugin','addEventListener','default','dispose','add','_registerDependencies','object','function','_injector','ISocketService','1630165BRrdKy','createSocket','toDisposable'];_0x49c2=function(){return _0x199191;};return _0x49c2();}
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 _;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3f0249=_0x1be0;(function(_0x56e700,_0x25d83a){const _0x555197=_0x1be0,_0x464ff1=_0x56e700();while(!![]){try{const _0x31605b=parseInt(_0x555197(0x79))/0x1*(-parseInt(_0x555197(0x80))/0x2)+-parseInt(_0x555197(0x88))/0x3+-parseInt(_0x555197(0x9d))/0x4+-parseInt(_0x555197(0x72))/0x5*(-parseInt(_0x555197(0x8d))/0x6)+-parseInt(_0x555197(0x96))/0x7*(parseInt(_0x555197(0x8a))/0x8)+-parseInt(_0x555197(0x94))/0x9+parseInt(_0x555197(0x93))/0xa*(parseInt(_0x555197(0x8c))/0xb);if(_0x31605b===_0x25d83a)break;else _0x464ff1['push'](_0x464ff1['shift']());}catch(_0x4bff9f){_0x464ff1['push'](_0x464ff1['shift']());}}}(_0x221d,0x2bfb1));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1a60de,CollaborationSocketService as _0x444992,UniverCollaborationClientPlugin as _0x147412}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x146b3b,Disposable as _0x53b30f,DisposableCollection as _0x243cb5,IConfigService as _0x350a13,ILogService as _0x238cc4,Inject as _0x14f5a5,Injector as _0x1597c7,Plugin as _0xa342bf,registerDependencies as _0x45373c,toDisposable as _0x54d228}from'@univerjs/core';function _0x221d(){const _0x1b0157=['1316932SHRQPO','pipe','getOwnPropertyDescriptor','add','removeEventListener','collaboration-client-node.config','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','pluginName','426140PlFuUU','setConfig','customHeaders','constructor','call','onStarting','_doCreateSocket','11NuAvST','packageName','next','message','0.24.0-insiders.20260530-57a0a3e','length','decorate','39186MiLfxK','defineProperty','toPrimitive','string','getConfig','_registerDependencies','headers','default','338574HSgYFX','function','8vulmOf','createSocket','146091WJjjab','12dRPAEL','@univerjs-pro/collaboration-client-node','version','set','_configService','addEventListener','790sFZmbo','2933433LMBKZc','open','391713pxDERd','close','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','symbol','_injector','iterator','error'];_0x221d=function(){return _0x1b0157;};return _0x221d();}import{HTTPService as _0x1119a6,ISocketService as _0x224985}from'@univerjs/network';import{Observable as _0x336852,share as _0xf85f8c}from'rxjs';import{WebSocket as _0x7dffd2}from'ws';import{ISnapshotServerService as _0x2a9951}from'@univerjs-pro/collaboration';function _0x1be0(_0x3888c9,_0x3529c1){_0x3888c9=_0x3888c9-0x72;const _0x221d61=_0x221d();let _0x1be039=_0x221d61[_0x3888c9];return _0x1be039;}const y=_0x3f0249(0xa2),b={};var x=_0x3f0249(0x8e),S=_0x3f0249(0x7d);function C(_0x539171,_0x104556){return function(_0x3669ce,_0x399d9c){_0x104556(_0x3669ce,_0x399d9c,_0x539171);};}function w(_0x415ba8,_0x1a5e00,_0x495d38,_0x3cd9f9){const _0x10e176=_0x3f0249;var _0x58be32=arguments[_0x10e176(0x7e)],_0x571198=_0x58be32<0x3?_0x1a5e00:_0x3cd9f9===null?_0x3cd9f9=Object[_0x10e176(0x9f)](_0x1a5e00,_0x495d38):_0x3cd9f9,_0x16ea65;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x10e176(0x89))_0x571198=Reflect[_0x10e176(0x7f)](_0x415ba8,_0x1a5e00,_0x495d38,_0x3cd9f9);else{for(var _0x177cca=_0x415ba8[_0x10e176(0x7e)]-0x1;_0x177cca>=0x0;_0x177cca--)(_0x16ea65=_0x415ba8[_0x177cca])&&(_0x571198=(_0x58be32<0x3?_0x16ea65(_0x571198):_0x58be32>0x3?_0x16ea65(_0x1a5e00,_0x495d38,_0x571198):_0x16ea65(_0x1a5e00,_0x495d38))||_0x571198);}return _0x58be32>0x3&&_0x571198&&Object['defineProperty'](_0x1a5e00,_0x495d38,_0x571198),_0x571198;}let T=class extends _0x53b30f{constructor(_0x4032b0){const _0x87225=_0x3f0249;super(),this[_0x87225(0x91)]=_0x4032b0;}[_0x3f0249(0x8b)](_0x3fdafe){const _0x4eae52=_0x3f0249;var _0x11d913;let _0x3b7693=((_0x11d913=this[_0x4eae52(0x91)][_0x4eae52(0x84)](_0x1a60de))==null?void 0x0:_0x11d913[_0x4eae52(0x74)])||{};try{let _0x333451=new _0x7dffd2(_0x3fdafe,{'headers':{..._0x3b7693}}),_0x3cea40=new _0x243cb5();return{'URL':_0x3fdafe,'close':(_0x34d0ac,_0x3660ca)=>{const _0x3de373=_0x4eae52;_0x333451[_0x3de373(0x97)](_0x34d0ac,_0x3660ca),_0x3cea40['dispose']();},'send':_0x8daf1e=>{_0x333451['send'](_0x8daf1e);},'open$':new _0x336852(_0x1149ab=>{const _0x393c26=_0x4eae52;let _0x3cc56a=_0x3ed611=>_0x1149ab[_0x393c26(0x7b)](_0x3ed611);_0x333451[_0x393c26(0x92)](_0x393c26(0x95),_0x3cc56a),_0x3cea40[_0x393c26(0xa0)](_0x54d228(()=>_0x333451[_0x393c26(0xa1)](_0x393c26(0x95),_0x3cc56a)));})['pipe'](_0xf85f8c()),'close$':new _0x336852(_0x5afcf1=>{const _0x388077=_0x4eae52;let _0x4bae93=_0x1ee91f=>_0x5afcf1[_0x388077(0x7b)](_0x1ee91f);_0x333451[_0x388077(0x92)](_0x388077(0x97),_0x4bae93),_0x3cea40[_0x388077(0xa0)](_0x54d228(()=>_0x333451[_0x388077(0xa1)]('close',_0x4bae93)));})['pipe'](_0xf85f8c()),'error$':new _0x336852(_0x171ca3=>{const _0x44352f=_0x4eae52;let _0x52741d=_0x530298=>_0x171ca3[_0x44352f(0x7b)](_0x530298);_0x333451[_0x44352f(0x92)](_0x44352f(0x9c),_0x52741d),_0x3cea40[_0x44352f(0xa0)](_0x54d228(()=>_0x333451['removeEventListener'](_0x44352f(0x9c),_0x52741d)));})['pipe'](_0xf85f8c()),'message$':new _0x336852(_0xd26eaf=>{const _0x51a448=_0x4eae52;let _0x10a399=_0x322064=>_0xd26eaf[_0x51a448(0x7b)](_0x322064);_0x333451['addEventListener']('message',_0x10a399),_0x3cea40[_0x51a448(0xa0)](_0x54d228(()=>_0x333451['removeEventListener'](_0x51a448(0x7c),_0x10a399)));})[_0x4eae52(0x9e)](_0xf85f8c())};}catch(_0x8f9db5){return console[_0x4eae52(0x9c)](_0x8f9db5),null;}}};T=w([C(0x0,_0x350a13)],T);function E(_0x3e0d2c){'@babel/helpers - typeof';const _0x280499=_0x3f0249;return E=typeof Symbol==_0x280499(0x89)&&typeof Symbol[_0x280499(0x9b)]=='symbol'?function(_0x10812c){return typeof _0x10812c;}:function(_0xaaf09b){const _0x18fd37=_0x280499;return _0xaaf09b&&typeof Symbol==_0x18fd37(0x89)&&_0xaaf09b[_0x18fd37(0x75)]===Symbol&&_0xaaf09b!==Symbol['prototype']?_0x18fd37(0x99):typeof _0xaaf09b;},E(_0x3e0d2c);}function D(_0x591aae,_0xcdc9a6){const _0x3ee589=_0x3f0249;if(E(_0x591aae)!='object'||!_0x591aae)return _0x591aae;var _0xbb81d9=_0x591aae[Symbol[_0x3ee589(0x82)]];if(_0xbb81d9!==void 0x0){var _0x58ead9=_0xbb81d9[_0x3ee589(0x76)](_0x591aae,_0xcdc9a6||_0x3ee589(0x87));if(E(_0x58ead9)!='object')return _0x58ead9;throw TypeError(_0x3ee589(0x98));}return(_0xcdc9a6===_0x3ee589(0x83)?String:Number)(_0x591aae);}function O(_0x5775c9){const _0x3fca7a=_0x3f0249;var _0x47bbf7=D(_0x5775c9,'string');return E(_0x47bbf7)==_0x3fca7a(0x99)?_0x47bbf7:_0x47bbf7+'';}function k(_0x1e75d0,_0x2e0d64,_0x21e99f){const _0x504ae7=_0x3f0249;return(_0x2e0d64=O(_0x2e0d64))in _0x1e75d0?Object[_0x504ae7(0x81)](_0x1e75d0,_0x2e0d64,{'value':_0x21e99f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1e75d0[_0x2e0d64]=_0x21e99f,_0x1e75d0;}let A=class extends _0xa342bf{constructor(_0x5ddbf1=b,_0x52cf49,_0x442478){const _0xfbdba9=_0x3f0249;super(),this[_0xfbdba9(0x91)]=_0x52cf49,this[_0xfbdba9(0x9a)]=_0x442478,this['_configService'][_0xfbdba9(0x73)](y,_0x5ddbf1);}[_0x3f0249(0x77)](){const _0x3abaaf=_0x3f0249;this[_0x3abaaf(0x85)]();}[_0x3f0249(0x85)](){_0x45373c(this['_injector'],[[_0x224985,{'useClass':T}]]);}};k(A,_0x3f0249(0xa4),_0x3f0249(0xa3)),k(A,_0x3f0249(0x7a),x),k(A,_0x3f0249(0x8f),S),A=w([_0x146b3b(_0x147412),C(0x1,_0x350a13),C(0x2,_0x14f5a5(_0x1597c7))],A);let j=class extends _0x444992{constructor(_0x355291,_0x2c84e9,_0x2019e7,_0x3ae75e,_0x4c5b66){const _0x2cfdfb=_0x3f0249;super(_0x355291,_0x2c84e9,_0x2019e7,_0x3ae75e,_0x4c5b66);let _0x4bfd01=this[_0x2cfdfb(0x91)]['getConfig'](_0x1a60de);this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x3abf69,_0x51b8c2)=>{const _0x144840=_0x2cfdfb;let _0x335530=_0x3abf69[_0x144840(0x86)];if(_0x4bfd01!=null&&_0x4bfd01[_0x144840(0x74)]){for(let _0x8bbe69 in _0x4bfd01[_0x144840(0x74)])_0x335530[_0x144840(0x90)](_0x8bbe69,_0x4bfd01[_0x144840(0x74)][_0x8bbe69]);}return _0x51b8c2(_0x3abf69);}});}async[_0x3f0249(0x8b)](_0x307d38){const _0xfde3c5=_0x3f0249;return this[_0xfde3c5(0x78)](_0x307d38);}};j=w([C(0x0,_0x14f5a5(_0x1597c7)),C(0x1,_0x14f5a5(_0x1119a6)),C(0x2,_0x350a13),C(0x3,_0x238cc4),C(0x4,_0x2a9951)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
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};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3f0249=_0x1be0;(function(_0x56e700,_0x25d83a){const _0x555197=_0x1be0,_0x464ff1=_0x56e700();while(!![]){try{const _0x31605b=parseInt(_0x555197(0x79))/0x1*(-parseInt(_0x555197(0x80))/0x2)+-parseInt(_0x555197(0x88))/0x3+-parseInt(_0x555197(0x9d))/0x4+-parseInt(_0x555197(0x72))/0x5*(-parseInt(_0x555197(0x8d))/0x6)+-parseInt(_0x555197(0x96))/0x7*(parseInt(_0x555197(0x8a))/0x8)+-parseInt(_0x555197(0x94))/0x9+parseInt(_0x555197(0x93))/0xa*(parseInt(_0x555197(0x8c))/0xb);if(_0x31605b===_0x25d83a)break;else _0x464ff1['push'](_0x464ff1['shift']());}catch(_0x4bff9f){_0x464ff1['push'](_0x464ff1['shift']());}}}(_0x221d,0x2bfb1));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x1a60de,CollaborationSocketService as _0x444992,UniverCollaborationClientPlugin as _0x147412}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x146b3b,Disposable as _0x53b30f,DisposableCollection as _0x243cb5,IConfigService as _0x350a13,ILogService as _0x238cc4,Inject as _0x14f5a5,Injector as _0x1597c7,Plugin as _0xa342bf,registerDependencies as _0x45373c,toDisposable as _0x54d228}from'@univerjs/core';function _0x221d(){const _0x1b0157=['1316932SHRQPO','pipe','getOwnPropertyDescriptor','add','removeEventListener','collaboration-client-node.config','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','pluginName','426140PlFuUU','setConfig','customHeaders','constructor','call','onStarting','_doCreateSocket','11NuAvST','packageName','next','message','0.24.0-insiders.20260530-57a0a3e','length','decorate','39186MiLfxK','defineProperty','toPrimitive','string','getConfig','_registerDependencies','headers','default','338574HSgYFX','function','8vulmOf','createSocket','146091WJjjab','12dRPAEL','@univerjs-pro/collaboration-client-node','version','set','_configService','addEventListener','790sFZmbo','2933433LMBKZc','open','391713pxDERd','close','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','symbol','_injector','iterator','error'];_0x221d=function(){return _0x1b0157;};return _0x221d();}import{HTTPService as _0x1119a6,ISocketService as _0x224985}from'@univerjs/network';import{Observable as _0x336852,share as _0xf85f8c}from'rxjs';import{WebSocket as _0x7dffd2}from'ws';import{ISnapshotServerService as _0x2a9951}from'@univerjs-pro/collaboration';function _0x1be0(_0x3888c9,_0x3529c1){_0x3888c9=_0x3888c9-0x72;const _0x221d61=_0x221d();let _0x1be039=_0x221d61[_0x3888c9];return _0x1be039;}const y=_0x3f0249(0xa2),b={};var x=_0x3f0249(0x8e),S=_0x3f0249(0x7d);function C(_0x539171,_0x104556){return function(_0x3669ce,_0x399d9c){_0x104556(_0x3669ce,_0x399d9c,_0x539171);};}function w(_0x415ba8,_0x1a5e00,_0x495d38,_0x3cd9f9){const _0x10e176=_0x3f0249;var _0x58be32=arguments[_0x10e176(0x7e)],_0x571198=_0x58be32<0x3?_0x1a5e00:_0x3cd9f9===null?_0x3cd9f9=Object[_0x10e176(0x9f)](_0x1a5e00,_0x495d38):_0x3cd9f9,_0x16ea65;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x10e176(0x89))_0x571198=Reflect[_0x10e176(0x7f)](_0x415ba8,_0x1a5e00,_0x495d38,_0x3cd9f9);else{for(var _0x177cca=_0x415ba8[_0x10e176(0x7e)]-0x1;_0x177cca>=0x0;_0x177cca--)(_0x16ea65=_0x415ba8[_0x177cca])&&(_0x571198=(_0x58be32<0x3?_0x16ea65(_0x571198):_0x58be32>0x3?_0x16ea65(_0x1a5e00,_0x495d38,_0x571198):_0x16ea65(_0x1a5e00,_0x495d38))||_0x571198);}return _0x58be32>0x3&&_0x571198&&Object['defineProperty'](_0x1a5e00,_0x495d38,_0x571198),_0x571198;}let T=class extends _0x53b30f{constructor(_0x4032b0){const _0x87225=_0x3f0249;super(),this[_0x87225(0x91)]=_0x4032b0;}[_0x3f0249(0x8b)](_0x3fdafe){const _0x4eae52=_0x3f0249;var _0x11d913;let _0x3b7693=((_0x11d913=this[_0x4eae52(0x91)][_0x4eae52(0x84)](_0x1a60de))==null?void 0x0:_0x11d913[_0x4eae52(0x74)])||{};try{let _0x333451=new _0x7dffd2(_0x3fdafe,{'headers':{..._0x3b7693}}),_0x3cea40=new _0x243cb5();return{'URL':_0x3fdafe,'close':(_0x34d0ac,_0x3660ca)=>{const _0x3de373=_0x4eae52;_0x333451[_0x3de373(0x97)](_0x34d0ac,_0x3660ca),_0x3cea40['dispose']();},'send':_0x8daf1e=>{_0x333451['send'](_0x8daf1e);},'open$':new _0x336852(_0x1149ab=>{const _0x393c26=_0x4eae52;let _0x3cc56a=_0x3ed611=>_0x1149ab[_0x393c26(0x7b)](_0x3ed611);_0x333451[_0x393c26(0x92)](_0x393c26(0x95),_0x3cc56a),_0x3cea40[_0x393c26(0xa0)](_0x54d228(()=>_0x333451[_0x393c26(0xa1)](_0x393c26(0x95),_0x3cc56a)));})['pipe'](_0xf85f8c()),'close$':new _0x336852(_0x5afcf1=>{const _0x388077=_0x4eae52;let _0x4bae93=_0x1ee91f=>_0x5afcf1[_0x388077(0x7b)](_0x1ee91f);_0x333451[_0x388077(0x92)](_0x388077(0x97),_0x4bae93),_0x3cea40[_0x388077(0xa0)](_0x54d228(()=>_0x333451[_0x388077(0xa1)]('close',_0x4bae93)));})['pipe'](_0xf85f8c()),'error$':new _0x336852(_0x171ca3=>{const _0x44352f=_0x4eae52;let _0x52741d=_0x530298=>_0x171ca3[_0x44352f(0x7b)](_0x530298);_0x333451[_0x44352f(0x92)](_0x44352f(0x9c),_0x52741d),_0x3cea40[_0x44352f(0xa0)](_0x54d228(()=>_0x333451['removeEventListener'](_0x44352f(0x9c),_0x52741d)));})['pipe'](_0xf85f8c()),'message$':new _0x336852(_0xd26eaf=>{const _0x51a448=_0x4eae52;let _0x10a399=_0x322064=>_0xd26eaf[_0x51a448(0x7b)](_0x322064);_0x333451['addEventListener']('message',_0x10a399),_0x3cea40[_0x51a448(0xa0)](_0x54d228(()=>_0x333451['removeEventListener'](_0x51a448(0x7c),_0x10a399)));})[_0x4eae52(0x9e)](_0xf85f8c())};}catch(_0x8f9db5){return console[_0x4eae52(0x9c)](_0x8f9db5),null;}}};T=w([C(0x0,_0x350a13)],T);function E(_0x3e0d2c){'@babel/helpers - typeof';const _0x280499=_0x3f0249;return E=typeof Symbol==_0x280499(0x89)&&typeof Symbol[_0x280499(0x9b)]=='symbol'?function(_0x10812c){return typeof _0x10812c;}:function(_0xaaf09b){const _0x18fd37=_0x280499;return _0xaaf09b&&typeof Symbol==_0x18fd37(0x89)&&_0xaaf09b[_0x18fd37(0x75)]===Symbol&&_0xaaf09b!==Symbol['prototype']?_0x18fd37(0x99):typeof _0xaaf09b;},E(_0x3e0d2c);}function D(_0x591aae,_0xcdc9a6){const _0x3ee589=_0x3f0249;if(E(_0x591aae)!='object'||!_0x591aae)return _0x591aae;var _0xbb81d9=_0x591aae[Symbol[_0x3ee589(0x82)]];if(_0xbb81d9!==void 0x0){var _0x58ead9=_0xbb81d9[_0x3ee589(0x76)](_0x591aae,_0xcdc9a6||_0x3ee589(0x87));if(E(_0x58ead9)!='object')return _0x58ead9;throw TypeError(_0x3ee589(0x98));}return(_0xcdc9a6===_0x3ee589(0x83)?String:Number)(_0x591aae);}function O(_0x5775c9){const _0x3fca7a=_0x3f0249;var _0x47bbf7=D(_0x5775c9,'string');return E(_0x47bbf7)==_0x3fca7a(0x99)?_0x47bbf7:_0x47bbf7+'';}function k(_0x1e75d0,_0x2e0d64,_0x21e99f){const _0x504ae7=_0x3f0249;return(_0x2e0d64=O(_0x2e0d64))in _0x1e75d0?Object[_0x504ae7(0x81)](_0x1e75d0,_0x2e0d64,{'value':_0x21e99f,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x1e75d0[_0x2e0d64]=_0x21e99f,_0x1e75d0;}let A=class extends _0xa342bf{constructor(_0x5ddbf1=b,_0x52cf49,_0x442478){const _0xfbdba9=_0x3f0249;super(),this[_0xfbdba9(0x91)]=_0x52cf49,this[_0xfbdba9(0x9a)]=_0x442478,this['_configService'][_0xfbdba9(0x73)](y,_0x5ddbf1);}[_0x3f0249(0x77)](){const _0x3abaaf=_0x3f0249;this[_0x3abaaf(0x85)]();}[_0x3f0249(0x85)](){_0x45373c(this['_injector'],[[_0x224985,{'useClass':T}]]);}};k(A,_0x3f0249(0xa4),_0x3f0249(0xa3)),k(A,_0x3f0249(0x7a),x),k(A,_0x3f0249(0x8f),S),A=w([_0x146b3b(_0x147412),C(0x1,_0x350a13),C(0x2,_0x14f5a5(_0x1597c7))],A);let j=class extends _0x444992{constructor(_0x355291,_0x2c84e9,_0x2019e7,_0x3ae75e,_0x4c5b66){const _0x2cfdfb=_0x3f0249;super(_0x355291,_0x2c84e9,_0x2019e7,_0x3ae75e,_0x4c5b66);let _0x4bfd01=this[_0x2cfdfb(0x91)]['getConfig'](_0x1a60de);this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x3abf69,_0x51b8c2)=>{const _0x144840=_0x2cfdfb;let _0x335530=_0x3abf69[_0x144840(0x86)];if(_0x4bfd01!=null&&_0x4bfd01[_0x144840(0x74)]){for(let _0x8bbe69 in _0x4bfd01[_0x144840(0x74)])_0x335530[_0x144840(0x90)](_0x8bbe69,_0x4bfd01[_0x144840(0x74)][_0x8bbe69]);}return _0x51b8c2(_0x3abf69);}});}async[_0x3f0249(0x8b)](_0x307d38){const _0xfde3c5=_0x3f0249;return this[_0xfde3c5(0x78)](_0x307d38);}};j=w([C(0x0,_0x14f5a5(_0x1597c7)),C(0x1,_0x14f5a5(_0x1119a6)),C(0x2,_0x350a13),C(0x3,_0x238cc4),C(0x4,_0x2a9951)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
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};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x459e(_0x14b5f2,_0x10b494){_0x14b5f2=_0x14b5f2-0x9f;const _0xc92845=_0xc928();let _0x459e7b=_0xc92845[_0x14b5f2];return _0x459e7b;}(function(_0x48b715,_0x4b0db0){const _0x260152=_0x459e,_0x58e133=_0x48b715();while(!![]){try{const _0x1531f4=parseInt(_0x260152(0xcd))/0x1+-parseInt(_0x260152(0xee))/0x2+-parseInt(_0x260152(0xc8))/0x3+-parseInt(_0x260152(0xd0))/0x4*(-parseInt(_0x260152(0xe9))/0x5)+parseInt(_0x260152(0xc4))/0x6*(parseInt(_0x260152(0xb3))/0x7)+-parseInt(_0x260152(0xab))/0x8*(-parseInt(_0x260152(0xd9))/0x9)+parseInt(_0x260152(0xe7))/0xa;if(_0x1531f4===_0x4b0db0)break;else _0x58e133['push'](_0x58e133['shift']());}catch(_0x1fad2f){_0x58e133['push'](_0x58e133['shift']());}}}(_0xc928,0xa9c54),function(_0x49f5a3,_0x4020c6){const _0x3171d4=_0x459e;typeof exports=='object'&&typeof module<'u'?_0x4020c6(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define==_0x3171d4(0xe0)&&define[_0x3171d4(0xae)]?define([_0x3171d4(0xa5),_0x3171d4(0xaf),_0x3171d4(0xdf),'@univerjs/network','rxjs',_0x3171d4(0xb4)],_0x4020c6):(_0x49f5a3=typeof globalThis<'u'?globalThis:_0x49f5a3||self,_0x4020c6(_0x49f5a3[_0x3171d4(0xb5)]={},_0x49f5a3[_0x3171d4(0xa3)],_0x49f5a3[_0x3171d4(0xe6)],_0x49f5a3['UniverNetwork'],_0x49f5a3[_0x3171d4(0xb7)],_0x49f5a3['UniverProCollaboration']));}(this,function(_0x326d53,_0x539a8f,_0x203a89,_0x48344c,_0x5d9a0c,_0x1c986f){const _0x156810=_0x459e;Object[_0x156810(0xf1)](_0x326d53,Symbol[_0x156810(0xef)],{'value':'Module'});var _0x4088be=(_0x45d4d0,_0x3d52cc)=>()=>(_0x3d52cc||(_0x45d4d0((_0x3d52cc={'exports':{}})[_0x156810(0xa5)],_0x3d52cc),_0x45d4d0=null),_0x3d52cc[_0x156810(0xa5)]);let _0x11a125=_0x156810(0xb0),_0x1f5603={};var _0x40993a=_0x156810(0xeb),_0x5cda30=_0x156810(0xde),_0x55d235=_0x4088be((_0x4d4ebb,_0x21562e)=>{const _0x5a4e8e=_0x156810;_0x21562e[_0x5a4e8e(0xa5)]=function(){const _0x2be29e=_0x5a4e8e;throw Error(_0x2be29e(0xd5));};})();function _0x165d54(_0x149ddf,_0x312362){return function(_0xe7a9af,_0x3623ea){_0x312362(_0xe7a9af,_0x3623ea,_0x149ddf);};}function _0x4a6356(_0xa2b57,_0x3073d3,_0x32bd4a,_0x3ac53f){const _0x4fc6ca=_0x156810;var _0x387876=arguments[_0x4fc6ca(0xb9)],_0x2caaf2=_0x387876<0x3?_0x3073d3:_0x3ac53f===null?_0x3ac53f=Object[_0x4fc6ca(0xe5)](_0x3073d3,_0x32bd4a):_0x3ac53f,_0x46577e;if(typeof Reflect==_0x4fc6ca(0xba)&&typeof Reflect[_0x4fc6ca(0xbb)]==_0x4fc6ca(0xe0))_0x2caaf2=Reflect['decorate'](_0xa2b57,_0x3073d3,_0x32bd4a,_0x3ac53f);else{for(var _0x9bc1bd=_0xa2b57['length']-0x1;_0x9bc1bd>=0x0;_0x9bc1bd--)(_0x46577e=_0xa2b57[_0x9bc1bd])&&(_0x2caaf2=(_0x387876<0x3?_0x46577e(_0x2caaf2):_0x387876>0x3?_0x46577e(_0x3073d3,_0x32bd4a,_0x2caaf2):_0x46577e(_0x3073d3,_0x32bd4a))||_0x2caaf2);}return _0x387876>0x3&&_0x2caaf2&&Object['defineProperty'](_0x3073d3,_0x32bd4a,_0x2caaf2),_0x2caaf2;}let _0x501bdd=class extends _0x203a89[_0x156810(0xcf)]{constructor(_0x171129){const _0x9c6fcd=_0x156810;super(),this[_0x9c6fcd(0xe8)]=_0x171129;}[_0x156810(0xf0)](_0x2b16ac){const _0x3dda64=_0x156810;var _0x17f38b;let _0x26259a=((_0x17f38b=this[_0x3dda64(0xe8)][_0x3dda64(0xa1)](_0x539a8f[_0x3dda64(0xb1)]))==null?void 0x0:_0x17f38b[_0x3dda64(0xec)])||{};try{let _0x31f645=new _0x55d235[(_0x3dda64(0xaa))](_0x2b16ac,{'headers':{..._0x26259a}}),_0x4b9800=new _0x203a89[(_0x3dda64(0xb8))]();return{'URL':_0x2b16ac,'close':(_0x5945fc,_0x4f6efa)=>{const _0x138479=_0x3dda64;_0x31f645[_0x138479(0xce)](_0x5945fc,_0x4f6efa),_0x4b9800[_0x138479(0xc6)]();},'send':_0x18c477=>{const _0x57c02c=_0x3dda64;_0x31f645[_0x57c02c(0xd1)](_0x18c477);},'open$':new _0x5d9a0c[(_0x3dda64(0xbf))](_0x1f81d2=>{const _0x52fdf7=_0x3dda64;let _0x135bbd=_0x290f36=>_0x1f81d2[_0x52fdf7(0xcb)](_0x290f36);_0x31f645[_0x52fdf7(0xad)]('open',_0x135bbd),_0x4b9800[_0x52fdf7(0xa8)]((0x0,_0x203a89[_0x52fdf7(0xe3)])(()=>_0x31f645[_0x52fdf7(0xb6)](_0x52fdf7(0xa9),_0x135bbd)));})[_0x3dda64(0xd3)]((0x0,_0x5d9a0c['share'])()),'close$':new _0x5d9a0c[(_0x3dda64(0xbf))](_0x409642=>{const _0x41e0ed=_0x3dda64;let _0x4e5086=_0x25d5b2=>_0x409642[_0x41e0ed(0xcb)](_0x25d5b2);_0x31f645['addEventListener'](_0x41e0ed(0xce),_0x4e5086),_0x4b9800['add']((0x0,_0x203a89[_0x41e0ed(0xe3)])(()=>_0x31f645[_0x41e0ed(0xb6)](_0x41e0ed(0xce),_0x4e5086)));})[_0x3dda64(0xd3)]((0x0,_0x5d9a0c[_0x3dda64(0xd7)])()),'error$':new _0x5d9a0c[(_0x3dda64(0xbf))](_0x3f0823=>{const _0x182adf=_0x3dda64;let _0x51d031=_0x415e60=>_0x3f0823[_0x182adf(0xcb)](_0x415e60);_0x31f645[_0x182adf(0xad)](_0x182adf(0xc3),_0x51d031),_0x4b9800[_0x182adf(0xa8)]((0x0,_0x203a89[_0x182adf(0xe3)])(()=>_0x31f645[_0x182adf(0xb6)](_0x182adf(0xc3),_0x51d031)));})[_0x3dda64(0xd3)]((0x0,_0x5d9a0c[_0x3dda64(0xd7)])()),'message$':new _0x5d9a0c[(_0x3dda64(0xbf))](_0x2fb76e=>{const _0x5bcca3=_0x3dda64;let _0x19fa4b=_0x3e3169=>_0x2fb76e[_0x5bcca3(0xcb)](_0x3e3169);_0x31f645['addEventListener'](_0x5bcca3(0xbd),_0x19fa4b),_0x4b9800[_0x5bcca3(0xa8)]((0x0,_0x203a89['toDisposable'])(()=>_0x31f645[_0x5bcca3(0xb6)](_0x5bcca3(0xbd),_0x19fa4b)));})['pipe']((0x0,_0x5d9a0c['share'])())};}catch(_0x9e57a9){return console['error'](_0x9e57a9),null;}}};_0x501bdd=_0x4a6356([_0x165d54(0x0,_0x203a89['IConfigService'])],_0x501bdd);function _0x456feb(_0x1b8fca){'@babel/helpers - typeof';const _0x13d38b=_0x156810;return _0x456feb=typeof Symbol==_0x13d38b(0xe0)&&typeof Symbol[_0x13d38b(0xf2)]=='symbol'?function(_0x379f14){return typeof _0x379f14;}:function(_0x283c3a){const _0x5a2e07=_0x13d38b;return _0x283c3a&&typeof Symbol==_0x5a2e07(0xe0)&&_0x283c3a[_0x5a2e07(0xa6)]===Symbol&&_0x283c3a!==Symbol[_0x5a2e07(0xca)]?_0x5a2e07(0xc9):typeof _0x283c3a;},_0x456feb(_0x1b8fca);}function _0xad78ab(_0x2c2e33,_0x404532){const _0x5cd325=_0x156810;if(_0x456feb(_0x2c2e33)!=_0x5cd325(0xba)||!_0x2c2e33)return _0x2c2e33;var _0x358bc8=_0x2c2e33[Symbol[_0x5cd325(0xb2)]];if(_0x358bc8!==void 0x0){var _0x46d1d9=_0x358bc8['call'](_0x2c2e33,_0x404532||_0x5cd325(0xd8));if(_0x456feb(_0x46d1d9)!='object')return _0x46d1d9;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x404532===_0x5cd325(0xdd)?String:Number)(_0x2c2e33);}function _0x45b0b1(_0x3c9501){const _0x8d542e=_0x156810;var _0x2db223=_0xad78ab(_0x3c9501,_0x8d542e(0xdd));return _0x456feb(_0x2db223)==_0x8d542e(0xc9)?_0x2db223:_0x2db223+'';}function _0x252ccf(_0xf9177e,_0x9423ce,_0x32eff7){const _0x58a6ce=_0x156810;return(_0x9423ce=_0x45b0b1(_0x9423ce))in _0xf9177e?Object[_0x58a6ce(0xf1)](_0xf9177e,_0x9423ce,{'value':_0x32eff7,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0xf9177e[_0x9423ce]=_0x32eff7,_0xf9177e;}let _0x459b49=class extends _0x203a89[_0x156810(0xd6)]{constructor(_0x32d3e9=_0x1f5603,_0x3dca83,_0x4986ba){const _0xa51da5=_0x156810;super(),this[_0xa51da5(0xe8)]=_0x3dca83,this[_0xa51da5(0xc7)]=_0x4986ba,this['_configService'][_0xa51da5(0xa0)](_0x11a125,_0x32d3e9);}[_0x156810(0xcc)](){this['_registerDependencies']();}[_0x156810(0xc1)](){const _0x58d34b=_0x156810;(0x0,_0x203a89[_0x58d34b(0xda)])(this[_0x58d34b(0xc7)],[[_0x48344c[_0x58d34b(0xed)],{'useClass':_0x501bdd}]]);}};_0x252ccf(_0x459b49,_0x156810(0xac),_0x156810(0xc0)),_0x252ccf(_0x459b49,_0x156810(0xe4),_0x40993a),_0x252ccf(_0x459b49,'version',_0x5cda30),_0x459b49=_0x4a6356([(0x0,_0x203a89[_0x156810(0xa4)])(_0x539a8f['UniverCollaborationClientPlugin']),_0x165d54(0x1,_0x203a89[_0x156810(0xea)]),_0x165d54(0x2,(0x0,_0x203a89['Inject'])(_0x203a89['Injector']))],_0x459b49);let _0x2a1455=class extends _0x539a8f[_0x156810(0xe2)]{constructor(_0x15d107,_0x172298,_0x2d3d59,_0x56a0f1,_0x23ae12){const _0x214fc4=_0x156810;super(_0x15d107,_0x172298,_0x2d3d59,_0x56a0f1,_0x23ae12);let _0x16b320=this['_configService'][_0x214fc4(0xa1)](_0x539a8f[_0x214fc4(0xb1)]);this[_0x214fc4(0xd4)][_0x214fc4(0xdc)]({'interceptor':(_0x232dab,_0x2e0c90)=>{const _0x5abb26=_0x214fc4;let _0x1cbf3f=_0x232dab[_0x5abb26(0xdb)];if(_0x16b320!=null&&_0x16b320['customHeaders']){for(let _0x4b43d3 in _0x16b320[_0x5abb26(0xec)])_0x1cbf3f[_0x5abb26(0x9f)](_0x4b43d3,_0x16b320[_0x5abb26(0xec)][_0x4b43d3]);}return _0x2e0c90(_0x232dab);}});}async[_0x156810(0xf0)](_0x14e0c1){const _0x4b5c4c=_0x156810;return this[_0x4b5c4c(0xa2)](_0x14e0c1);}};_0x2a1455=_0x4a6356([_0x165d54(0x0,(0x0,_0x203a89[_0x156810(0xc2)])(_0x203a89[_0x156810(0xa7)])),_0x165d54(0x1,(0x0,_0x203a89[_0x156810(0xc2)])(_0x48344c[_0x156810(0xd2)])),_0x165d54(0x2,_0x203a89['IConfigService']),_0x165d54(0x3,_0x203a89[_0x156810(0xe1)]),_0x165d54(0x4,_0x1c986f['ISnapshotServerService'])],_0x2a1455),_0x326d53[_0x156810(0xbe)]=_0x11a125,Object[_0x156810(0xf1)](_0x326d53,_0x156810(0xc5),{'enumerable':!0x0,'get':function(){return _0x2a1455;}}),Object[_0x156810(0xf1)](_0x326d53,_0x156810(0xbc),{'enumerable':!0x0,'get':function(){return _0x459b49;}});}));function _0xc928(){const _0x144876=['_httpService','ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object','Plugin','share','default','239058WCCtTJ','registerDependencies','headers','registerHTTPInterceptor','string','0.24.0-insiders.20260530-57a0a3e','@univerjs/core','function','ILogService','CollaborationSocketService','toDisposable','packageName','getOwnPropertyDescriptor','UniverCore','4498060UCXKSe','_configService','5TpaiOu','IConfigService','@univerjs-pro/collaboration-client-node','customHeaders','ISocketService','1793908faRwty','toStringTag','createSocket','defineProperty','iterator','set','setConfig','getConfig','_doCreateSocket','UniverProCollaborationClient','DependentOn','exports','constructor','Injector','add','open','WebSocket','56IvLqMz','pluginName','addEventListener','amd','@univerjs-pro/collaboration-client','collaboration-client-node.config','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','toPrimitive','371oLUGYv','@univerjs-pro/collaboration','UniverProCollaborationClientNode','removeEventListener','rxjs','DisposableCollection','length','object','decorate','UniverCollaborationClientNodePlugin','message','COLLABORATION_CLIENT_NODE_CONFIG_KEY','Observable','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','_registerDependencies','Inject','error','47778jCsKRD','NodeCollaborationSocketService','dispose','_injector','2854335ZKOMNe','symbol','prototype','next','onStarting','1166593ZYoBAH','close','Disposable','1277628WiQGvY','send','HTTPService','pipe'];_0xc928=function(){return _0x144876;};return _0xc928();}
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();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "0.24.0-insiders.20260530-57a0a3e",
3
+ "version": "0.25.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.24.0-insiders.20260530-57a0a3e",
56
- "@univerjs-pro/collaboration-client": "0.24.0-insiders.20260530-57a0a3e",
57
- "@univerjs/core": "0.24.0-insiders.20260530-57a0a3e",
58
- "@univerjs/network": "0.24.0-insiders.20260530-57a0a3e"
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"
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.6",
65
- "@univerjs-infra/shared": "0.24.0"
65
+ "@univerjs-infra/shared": "0.25.0"
66
66
  },
67
67
  "scripts": {
68
68
  "test": "vitest run",