@univerjs-pro/collaboration-client-node 0.24.0 → 0.25.0-insiders.20260608-e4336f7

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 _0x1172e1=_0x2a4e;(function(_0xc4d3e5,_0x3b113f){const _0x3f808d=_0x2a4e,_0x501df4=_0xc4d3e5();while(!![]){try{const _0x870b38=parseInt(_0x3f808d(0x15b))/0x1+-parseInt(_0x3f808d(0x140))/0x2*(parseInt(_0x3f808d(0x154))/0x3)+-parseInt(_0x3f808d(0x162))/0x4*(parseInt(_0x3f808d(0x16e))/0x5)+parseInt(_0x3f808d(0x14c))/0x6+-parseInt(_0x3f808d(0x13a))/0x7+parseInt(_0x3f808d(0x167))/0x8+parseInt(_0x3f808d(0x143))/0x9;if(_0x870b38===_0x3b113f)break;else _0x501df4['push'](_0x501df4['shift']());}catch(_0xa64c65){_0x501df4['push'](_0x501df4['shift']());}}}(_0xd081,0x725f1),Object['defineProperty'](exports,Symbol[_0x1172e1(0x16c)],{'value':_0x1172e1(0x156)}));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`);function _0x2a4e(_0x43bc9f,_0x5bc47f){_0x43bc9f=_0x43bc9f-0x137;const _0xd0814a=_0xd081();let _0x2a4e3d=_0xd0814a[_0x43bc9f];return _0x2a4e3d;}const o=_0x1172e1(0x16a);Symbol(o);const s={};var c=_0x1172e1(0x146),l=_0x1172e1(0x14b);function u(_0x3120f2,_0x273bf5){return function(_0x2f132a,_0x2af51a){_0x273bf5(_0x2f132a,_0x2af51a,_0x3120f2);};}function d(_0xfc58c5,_0x2e574c,_0x42fe3c,_0x4b51c8){const _0x445cd5=_0x1172e1;var _0x563be1=arguments[_0x445cd5(0x160)],_0x5ebdee=_0x563be1<0x3?_0x2e574c:_0x4b51c8===null?_0x4b51c8=Object[_0x445cd5(0x174)](_0x2e574c,_0x42fe3c):_0x4b51c8,_0x193c42;if(typeof Reflect==_0x445cd5(0x148)&&typeof Reflect[_0x445cd5(0x159)]=='function')_0x5ebdee=Reflect['decorate'](_0xfc58c5,_0x2e574c,_0x42fe3c,_0x4b51c8);else{for(var _0x2a33a9=_0xfc58c5['length']-0x1;_0x2a33a9>=0x0;_0x2a33a9--)(_0x193c42=_0xfc58c5[_0x2a33a9])&&(_0x5ebdee=(_0x563be1<0x3?_0x193c42(_0x5ebdee):_0x563be1>0x3?_0x193c42(_0x2e574c,_0x42fe3c,_0x5ebdee):_0x193c42(_0x2e574c,_0x42fe3c))||_0x5ebdee);}return _0x563be1>0x3&&_0x5ebdee&&Object['defineProperty'](_0x2e574c,_0x42fe3c,_0x5ebdee),_0x5ebdee;}let f=class extends t[_0x1172e1(0x152)]{constructor(_0x3ce7a1){const _0x5be2c1=_0x1172e1;super(),this[_0x5be2c1(0x161)]=_0x3ce7a1;}['createSocket'](_0x4eb78b){const _0x19b470=_0x1172e1;var _0x49e772;let _0x2a6ec3=((_0x49e772=this[_0x19b470(0x161)]['getConfig'](e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x49e772[_0x19b470(0x144)])||{};try{let _0x33e294=new i['WebSocket'](_0x4eb78b,{'headers':{..._0x2a6ec3}}),_0x41f80b=new t[(_0x19b470(0x171))]();return{'URL':_0x4eb78b,'close':(_0x519e6d,_0x4c9f21)=>{const _0x18cae2=_0x19b470;_0x33e294[_0x18cae2(0x157)](_0x519e6d,_0x4c9f21),_0x41f80b['dispose']();},'send':_0x404382=>{const _0x3d07a9=_0x19b470;_0x33e294[_0x3d07a9(0x14e)](_0x404382);},'open$':new r[(_0x19b470(0x13e))](_0x145f49=>{const _0x19736a=_0x19b470;let _0xc3c76f=_0x45e754=>_0x145f49['next'](_0x45e754);_0x33e294[_0x19736a(0x142)](_0x19736a(0x165),_0xc3c76f),_0x41f80b[_0x19736a(0x13f)]((0x0,t['toDisposable'])(()=>_0x33e294[_0x19736a(0x13b)](_0x19736a(0x165),_0xc3c76f)));})[_0x19b470(0x139)]((0x0,r['share'])()),'close$':new r[(_0x19b470(0x13e))](_0x5dcaa1=>{const _0x5c5980=_0x19b470;let _0x2575fe=_0x5042c5=>_0x5dcaa1['next'](_0x5042c5);_0x33e294[_0x5c5980(0x142)](_0x5c5980(0x157),_0x2575fe),_0x41f80b[_0x5c5980(0x13f)]((0x0,t[_0x5c5980(0x149)])(()=>_0x33e294[_0x5c5980(0x13b)](_0x5c5980(0x157),_0x2575fe)));})[_0x19b470(0x139)]((0x0,r[_0x19b470(0x15d)])()),'error$':new r[(_0x19b470(0x13e))](_0x581449=>{const _0x562135=_0x19b470;let _0x256c67=_0x28f386=>_0x581449[_0x562135(0x151)](_0x28f386);_0x33e294[_0x562135(0x142)](_0x562135(0x177),_0x256c67),_0x41f80b[_0x562135(0x13f)]((0x0,t['toDisposable'])(()=>_0x33e294['removeEventListener']('error',_0x256c67)));})[_0x19b470(0x139)]((0x0,r[_0x19b470(0x15d)])()),'message$':new r['Observable'](_0xcb8f15=>{const _0x10d429=_0x19b470;let _0x5e4d4b=_0x4820dc=>_0xcb8f15[_0x10d429(0x151)](_0x4820dc);_0x33e294['addEventListener'](_0x10d429(0x137),_0x5e4d4b),_0x41f80b[_0x10d429(0x13f)]((0x0,t[_0x10d429(0x149)])(()=>_0x33e294[_0x10d429(0x13b)](_0x10d429(0x137),_0x5e4d4b)));})[_0x19b470(0x139)]((0x0,r[_0x19b470(0x15d)])())};}catch(_0x1a9c05){return console['error'](_0x1a9c05),null;}}};f=d([u(0x0,t[_0x1172e1(0x168)])],f);function p(_0x4f58bd){'@babel/helpers - typeof';const _0x439b27=_0x1172e1;return p=typeof Symbol==_0x439b27(0x15f)&&typeof Symbol['iterator']==_0x439b27(0x153)?function(_0x31576b){return typeof _0x31576b;}:function(_0x3ba8b8){const _0x42cdd5=_0x439b27;return _0x3ba8b8&&typeof Symbol==_0x42cdd5(0x15f)&&_0x3ba8b8['constructor']===Symbol&&_0x3ba8b8!==Symbol[_0x42cdd5(0x15a)]?_0x42cdd5(0x153):typeof _0x3ba8b8;},p(_0x4f58bd);}function m(_0x241615,_0x66c1bc){const _0x17fb5e=_0x1172e1;if(p(_0x241615)!=_0x17fb5e(0x148)||!_0x241615)return _0x241615;var _0x423c9e=_0x241615[Symbol['toPrimitive']];if(_0x423c9e!==void 0x0){var _0x45543c=_0x423c9e[_0x17fb5e(0x166)](_0x241615,_0x66c1bc||_0x17fb5e(0x138));if(p(_0x45543c)!=_0x17fb5e(0x148))return _0x45543c;throw TypeError(_0x17fb5e(0x15e));}return(_0x66c1bc===_0x17fb5e(0x147)?String:Number)(_0x241615);}function h(_0x46565c){const _0x561ae7=_0x1172e1;var _0x429297=m(_0x46565c,_0x561ae7(0x147));return p(_0x429297)=='symbol'?_0x429297:_0x429297+'';}function _0xd081(){const _0x10f1bb=['registerHTTPInterceptor','0.24.0','4704558VAWQMo','Injector','send','setConfig','onStarting','next','Disposable','symbol','6bkVXnH','_injector','Module','close','defineProperty','decorate','prototype','830383EYJInU','ISnapshotServerService','share','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','function','length','_configService','44036erTLfI','getConfig','version','open','call','5837304wyulXH','IConfigService','Inject','collaboration-client-node.config','COLLABORATION_CLIENT_NODE_CONFIG_KEY','toStringTag','_registerDependencies','335bLVazY','UniverCollaborationClientNodePlugin','Plugin','DisposableCollection','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','packageName','getOwnPropertyDescriptor','HTTPService','NodeCollaborationSocketService','error','headers','message','default','pipe','5912823DjsTrn','removeEventListener','_httpService','DependentOn','Observable','add','786314BNHQWt','registerDependencies','addEventListener','4436388VmzMeF','customHeaders','UniverCollaborationClientPlugin','@univerjs-pro/collaboration-client-node','string','object','toDisposable'];_0xd081=function(){return _0x10f1bb;};return _0xd081();}function g(_0x597068,_0x25d066,_0x3b83d8){const _0x4b3d6f=_0x1172e1;return(_0x25d066=h(_0x25d066))in _0x597068?Object[_0x4b3d6f(0x158)](_0x597068,_0x25d066,{'value':_0x3b83d8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x597068[_0x25d066]=_0x3b83d8,_0x597068;}let _=class extends t[_0x1172e1(0x170)]{constructor(_0x1529cc=s,_0x99bea0,_0x3c4613){const _0x44864c=_0x1172e1;super(),this[_0x44864c(0x161)]=_0x99bea0,this[_0x44864c(0x155)]=_0x3c4613,this['_configService'][_0x44864c(0x14f)](o,_0x1529cc);}[_0x1172e1(0x150)](){const _0x43383b=_0x1172e1;this[_0x43383b(0x16d)]();}[_0x1172e1(0x16d)](){const _0x374d36=_0x1172e1;(0x0,t[_0x374d36(0x141)])(this[_0x374d36(0x155)],[[n['ISocketService'],{'useClass':f}]]);}};g(_,'pluginName',_0x1172e1(0x172)),g(_,_0x1172e1(0x173),c),g(_,_0x1172e1(0x164),l),_=d([(0x0,t[_0x1172e1(0x13d)])(e[_0x1172e1(0x145)]),u(0x1,t[_0x1172e1(0x168)]),u(0x2,(0x0,t['Inject'])(t[_0x1172e1(0x14d)]))],_);let v=class extends e['CollaborationSocketService']{constructor(_0x13883c,_0x8181ea,_0x26731c,_0x1b02ec,_0x16de60){const _0x6318a4=_0x1172e1;super(_0x13883c,_0x8181ea,_0x26731c,_0x1b02ec,_0x16de60);let _0x373212=this[_0x6318a4(0x161)][_0x6318a4(0x163)](e['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']);this[_0x6318a4(0x13c)][_0x6318a4(0x14a)]({'interceptor':(_0x8ae44e,_0xdfb707)=>{const _0x52fb65=_0x6318a4;let _0xeac17f=_0x8ae44e[_0x52fb65(0x178)];if(_0x373212!=null&&_0x373212['customHeaders']){for(let _0x20d2ef in _0x373212[_0x52fb65(0x144)])_0xeac17f['set'](_0x20d2ef,_0x373212[_0x52fb65(0x144)][_0x20d2ef]);}return _0xdfb707(_0x8ae44e);}});}async['createSocket'](_0x433804){return this['_doCreateSocket'](_0x433804);}};v=d([u(0x0,(0x0,t['Inject'])(t[_0x1172e1(0x14d)])),u(0x1,(0x0,t[_0x1172e1(0x169)])(n[_0x1172e1(0x175)])),u(0x2,t[_0x1172e1(0x168)]),u(0x3,t['ILogService']),u(0x4,a[_0x1172e1(0x15c)])],v),exports[_0x1172e1(0x16b)]=o,Object[_0x1172e1(0x158)](exports,_0x1172e1(0x176),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x1172e1(0x158)](exports,_0x1172e1(0x16f),{'enumerable':!0x0,'get':function(){return _;}});
1
+ const _0x12fa33=_0xade9;(function(_0x11799c,_0x5997e3){const _0x4d8a9f=_0xade9,_0x1bdbf9=_0x11799c();while(!![]){try{const _0x1c53b2=parseInt(_0x4d8a9f(0x1e8))/0x1*(-parseInt(_0x4d8a9f(0x1ba))/0x2)+parseInt(_0x4d8a9f(0x1da))/0x3+parseInt(_0x4d8a9f(0x1f0))/0x4*(-parseInt(_0x4d8a9f(0x1f7))/0x5)+-parseInt(_0x4d8a9f(0x1f4))/0x6*(-parseInt(_0x4d8a9f(0x1d1))/0x7)+-parseInt(_0x4d8a9f(0x1e5))/0x8*(parseInt(_0x4d8a9f(0x1d2))/0x9)+-parseInt(_0x4d8a9f(0x1ed))/0xa*(parseInt(_0x4d8a9f(0x1cb))/0xb)+-parseInt(_0x4d8a9f(0x1c4))/0xc*(-parseInt(_0x4d8a9f(0x1de))/0xd);if(_0x1c53b2===_0x5997e3)break;else _0x1bdbf9['push'](_0x1bdbf9['shift']());}catch(_0x4334d1){_0x1bdbf9['push'](_0x1bdbf9['shift']());}}}(_0x4218,0x46990),Object[_0x12fa33(0x1cf)](exports,Symbol[_0x12fa33(0x1d8)],{'value':_0x12fa33(0x1d3)}));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=_0x12fa33(0x1e0),s={};function _0xade9(_0x4de82f,_0x2412a9){_0x4de82f=_0x4de82f-0x1ba;const _0x42182a=_0x4218();let _0xade91b=_0x42182a[_0x4de82f];return _0xade91b;}var c=_0x12fa33(0x1f8),l=_0x12fa33(0x1c6);function u(_0x1d7246,_0x441007){return function(_0x58096d,_0x4ea1ca){_0x441007(_0x58096d,_0x4ea1ca,_0x1d7246);};}function d(_0x5b88df,_0x4d85f4,_0x555502,_0x3e18f6){const _0x58b451=_0x12fa33;var _0x3989c3=arguments[_0x58b451(0x1f3)],_0x1cfaf9=_0x3989c3<0x3?_0x4d85f4:_0x3e18f6===null?_0x3e18f6=Object['getOwnPropertyDescriptor'](_0x4d85f4,_0x555502):_0x3e18f6,_0x2a6908;if(typeof Reflect==_0x58b451(0x1d7)&&typeof Reflect[_0x58b451(0x1e6)]=='function')_0x1cfaf9=Reflect[_0x58b451(0x1e6)](_0x5b88df,_0x4d85f4,_0x555502,_0x3e18f6);else{for(var _0x440c0d=_0x5b88df[_0x58b451(0x1f3)]-0x1;_0x440c0d>=0x0;_0x440c0d--)(_0x2a6908=_0x5b88df[_0x440c0d])&&(_0x1cfaf9=(_0x3989c3<0x3?_0x2a6908(_0x1cfaf9):_0x3989c3>0x3?_0x2a6908(_0x4d85f4,_0x555502,_0x1cfaf9):_0x2a6908(_0x4d85f4,_0x555502))||_0x1cfaf9);}return _0x3989c3>0x3&&_0x1cfaf9&&Object['defineProperty'](_0x4d85f4,_0x555502,_0x1cfaf9),_0x1cfaf9;}let f=class extends t['Disposable']{constructor(_0x217437){const _0x2844ec=_0x12fa33;super(),this[_0x2844ec(0x1fb)]=_0x217437;}[_0x12fa33(0x1c8)](_0x5bf747){const _0x4ebfa6=_0x12fa33;var _0x4ebd14;let _0x2b4f3b=((_0x4ebd14=this[_0x4ebfa6(0x1fb)][_0x4ebfa6(0x1cd)](e[_0x4ebfa6(0x1e9)]))==null?void 0x0:_0x4ebd14[_0x4ebfa6(0x1c0)])||{};try{let _0xe9c8c0=new i['WebSocket'](_0x5bf747,{'headers':{..._0x2b4f3b}}),_0x8fd5ed=new t[(_0x4ebfa6(0x200))]();return{'URL':_0x5bf747,'close':(_0x4605cf,_0x5f50c2)=>{const _0x46fd7d=_0x4ebfa6;_0xe9c8c0[_0x46fd7d(0x1d9)](_0x4605cf,_0x5f50c2),_0x8fd5ed[_0x46fd7d(0x1bc)]();},'send':_0x125cad=>{const _0x35cc7e=_0x4ebfa6;_0xe9c8c0[_0x35cc7e(0x1fc)](_0x125cad);},'open$':new r[(_0x4ebfa6(0x1d4))](_0x51965f=>{const _0x2f2717=_0x4ebfa6;let _0x70e6b9=_0x1d0ab1=>_0x51965f[_0x2f2717(0x1bb)](_0x1d0ab1);_0xe9c8c0['addEventListener']('open',_0x70e6b9),_0x8fd5ed['add']((0x0,t['toDisposable'])(()=>_0xe9c8c0[_0x2f2717(0x1d0)](_0x2f2717(0x1d6),_0x70e6b9)));})[_0x4ebfa6(0x1dc)]((0x0,r[_0x4ebfa6(0x1c3)])()),'close$':new r['Observable'](_0x89b3cb=>{const _0x4e5691=_0x4ebfa6;let _0x774c18=_0x447cba=>_0x89b3cb[_0x4e5691(0x1bb)](_0x447cba);_0xe9c8c0[_0x4e5691(0x1eb)](_0x4e5691(0x1d9),_0x774c18),_0x8fd5ed[_0x4e5691(0x1ec)]((0x0,t['toDisposable'])(()=>_0xe9c8c0[_0x4e5691(0x1d0)](_0x4e5691(0x1d9),_0x774c18)));})[_0x4ebfa6(0x1dc)]((0x0,r['share'])()),'error$':new r[(_0x4ebfa6(0x1d4))](_0x49e809=>{const _0x55e519=_0x4ebfa6;let _0x37e1cc=_0x530df2=>_0x49e809['next'](_0x530df2);_0xe9c8c0['addEventListener'](_0x55e519(0x1c9),_0x37e1cc),_0x8fd5ed[_0x55e519(0x1ec)]((0x0,t[_0x55e519(0x1df)])(()=>_0xe9c8c0[_0x55e519(0x1d0)](_0x55e519(0x1c9),_0x37e1cc)));})['pipe']((0x0,r[_0x4ebfa6(0x1c3)])()),'message$':new r['Observable'](_0x565afc=>{const _0x3fa1bc=_0x4ebfa6;let _0x299c32=_0x5a9280=>_0x565afc[_0x3fa1bc(0x1bb)](_0x5a9280);_0xe9c8c0[_0x3fa1bc(0x1eb)](_0x3fa1bc(0x201),_0x299c32),_0x8fd5ed[_0x3fa1bc(0x1ec)]((0x0,t[_0x3fa1bc(0x1df)])(()=>_0xe9c8c0[_0x3fa1bc(0x1d0)](_0x3fa1bc(0x201),_0x299c32)));})[_0x4ebfa6(0x1dc)]((0x0,r[_0x4ebfa6(0x1c3)])())};}catch(_0x58c0d7){return console['error'](_0x58c0d7),null;}}};f=d([u(0x0,t['IConfigService'])],f);function p(_0xfd0e08){'@babel/helpers - typeof';const _0x96bf71=_0x12fa33;return p=typeof Symbol=='function'&&typeof Symbol[_0x96bf71(0x1e4)]==_0x96bf71(0x1e3)?function(_0x1d56bd){return typeof _0x1d56bd;}:function(_0xe98a9){const _0x39e649=_0x96bf71;return _0xe98a9&&typeof Symbol=='function'&&_0xe98a9[_0x39e649(0x1f6)]===Symbol&&_0xe98a9!==Symbol[_0x39e649(0x1f5)]?_0x39e649(0x1e3):typeof _0xe98a9;},p(_0xfd0e08);}function m(_0x4a0b85,_0x429b32){const _0x427083=_0x12fa33;if(p(_0x4a0b85)!=_0x427083(0x1d7)||!_0x4a0b85)return _0x4a0b85;var _0x3616c6=_0x4a0b85[Symbol[_0x427083(0x1fa)]];if(_0x3616c6!==void 0x0){var _0x599329=_0x3616c6['call'](_0x4a0b85,_0x429b32||_0x427083(0x1bd));if(p(_0x599329)!=_0x427083(0x1d7))return _0x599329;throw TypeError(_0x427083(0x1c1));}return(_0x429b32===_0x427083(0x1c5)?String:Number)(_0x4a0b85);}function h(_0x4b3925){const _0xa06c3b=_0x12fa33;var _0x76a96b=m(_0x4b3925,'string');return p(_0x76a96b)==_0xa06c3b(0x1e3)?_0x76a96b:_0x76a96b+'';}function g(_0x15880a,_0x1009d5,_0x2364d8){const _0x290174=_0x12fa33;return(_0x1009d5=h(_0x1009d5))in _0x15880a?Object[_0x290174(0x1cf)](_0x15880a,_0x1009d5,{'value':_0x2364d8,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x15880a[_0x1009d5]=_0x2364d8,_0x15880a;}let _=class extends t[_0x12fa33(0x1c2)]{constructor(_0x57e9f4=s,_0x47fe9a,_0x226179){const _0x24205a=_0x12fa33;super(),this['_configService']=_0x47fe9a,this[_0x24205a(0x1cc)]=_0x226179,this[_0x24205a(0x1fb)]['setConfig'](o,_0x57e9f4);}[_0x12fa33(0x1fe)](){const _0x1d0df7=_0x12fa33;this[_0x1d0df7(0x1dd)]();}['_registerDependencies'](){const _0x316185=_0x12fa33;(0x0,t[_0x316185(0x1e7)])(this[_0x316185(0x1cc)],[[n[_0x316185(0x1f9)],{'useClass':f}]]);}};g(_,'pluginName',_0x12fa33(0x1f1)),g(_,'packageName',c),g(_,'version',l),_=d([(0x0,t[_0x12fa33(0x1ce)])(e[_0x12fa33(0x1ca)]),u(0x1,t[_0x12fa33(0x1e2)]),u(0x2,(0x0,t['Inject'])(t[_0x12fa33(0x1bf)]))],_);function _0x4218(){const _0x1d1ac3=['@univerjs-pro/collaboration-client-node','ISocketService','toPrimitive','_configService','send','ILogService','onStarting','set','DisposableCollection','message','1112jvTqNl','next','dispose','default','_httpService','Injector','customHeaders','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','Plugin','share','15852eCEebk','string','0.25.0-insiders.20260608-e4336f7','registerHTTPInterceptor','createSocket','error','UniverCollaborationClientPlugin','22lDKzvg','_injector','getConfig','DependentOn','defineProperty','removeEventListener','35jCxlXu','512361lKLVwG','Module','Observable','ISnapshotServerService','open','object','toStringTag','close','1501128KYYXWA','headers','pipe','_registerDependencies','10959wIsmzH','toDisposable','collaboration-client-node.config','NodeCollaborationSocketService','IConfigService','symbol','iterator','72tGrplc','decorate','registerDependencies','189qdAuvY','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','Inject','addEventListener','add','2580860XKFTLr','_doCreateSocket','HTTPService','48hVuLzS','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','CollaborationSocketService','length','446244mthILW','prototype','constructor','234610ECngiB'];_0x4218=function(){return _0x1d1ac3;};return _0x4218();}let v=class extends e[_0x12fa33(0x1f2)]{constructor(_0xfca6b8,_0x451529,_0x47364c,_0x23ed11,_0xbf564d){const _0x1cec9b=_0x12fa33;super(_0xfca6b8,_0x451529,_0x47364c,_0x23ed11,_0xbf564d);let _0x1b4708=this[_0x1cec9b(0x1fb)][_0x1cec9b(0x1cd)](e[_0x1cec9b(0x1e9)]);this[_0x1cec9b(0x1be)][_0x1cec9b(0x1c7)]({'interceptor':(_0x3ab821,_0x532bbd)=>{const _0xcd0d74=_0x1cec9b;let _0xf0500a=_0x3ab821[_0xcd0d74(0x1db)];if(_0x1b4708!=null&&_0x1b4708[_0xcd0d74(0x1c0)]){for(let _0x3e4fd4 in _0x1b4708[_0xcd0d74(0x1c0)])_0xf0500a[_0xcd0d74(0x1ff)](_0x3e4fd4,_0x1b4708[_0xcd0d74(0x1c0)][_0x3e4fd4]);}return _0x532bbd(_0x3ab821);}});}async[_0x12fa33(0x1c8)](_0x49ead6){const _0x423275=_0x12fa33;return this[_0x423275(0x1ee)](_0x49ead6);}};v=d([u(0x0,(0x0,t[_0x12fa33(0x1ea)])(t[_0x12fa33(0x1bf)])),u(0x1,(0x0,t[_0x12fa33(0x1ea)])(n[_0x12fa33(0x1ef)])),u(0x2,t['IConfigService']),u(0x3,t[_0x12fa33(0x1fd)]),u(0x4,a[_0x12fa33(0x1d5)])],v),exports['COLLABORATION_CLIENT_NODE_CONFIG_KEY']=o,Object['defineProperty'](exports,_0x12fa33(0x1e1),{'enumerable':!0x0,'get':function(){return v;}}),Object[_0x12fa33(0x1cf)](exports,'UniverCollaborationClientNodePlugin',{'enumerable':!0x0,'get':function(){return _;}});
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0xc076f4=_0x4f1e;(function(_0x356426,_0x521a54){const _0x260278=_0x4f1e,_0x4d5b2b=_0x356426();while(!![]){try{const _0x30f841=parseInt(_0x260278(0xd2))/0x1+parseInt(_0x260278(0xcc))/0x2*(parseInt(_0x260278(0xb0))/0x3)+-parseInt(_0x260278(0xcf))/0x4*(parseInt(_0x260278(0xda))/0x5)+-parseInt(_0x260278(0xce))/0x6+-parseInt(_0x260278(0xcb))/0x7*(parseInt(_0x260278(0xcd))/0x8)+-parseInt(_0x260278(0xd1))/0x9*(-parseInt(_0x260278(0xca))/0xa)+parseInt(_0x260278(0xd5))/0xb;if(_0x30f841===_0x521a54)break;else _0x4d5b2b['push'](_0x4d5b2b['shift']());}catch(_0x13fd6c){_0x4d5b2b['push'](_0x4d5b2b['shift']());}}}(_0x5793,0x78ac9));function _0x5793(){const _0xb3aab8=['object','collaboration-client-node.config','2617100ItuTko','6581687kRqoBD','4EQPsjV','8gMllfL','3698760pPfTmn','80mbcLsT','error','18TCAtvt','548980USLcKI','_registerDependencies','default','3858580eMhNsW','headers','getOwnPropertyDescriptor','string','createSocket','10120gFqvMP','defineProperty','close','decorate','call','1002423ICNRUQ','function','send','constructor','set','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','pipe','next','_configService','setConfig','pluginName','dispose','toPrimitive','addEventListener','customHeaders','getConfig','length','add','iterator','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','removeEventListener','open','symbol','_injector'];_0x5793=function(){return _0xb3aab8;};return _0x5793();}import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x425b61,CollaborationSocketService as _0x3286a9,UniverCollaborationClientPlugin as _0x4bc88a}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x4128c4,Disposable as _0x4f91b6,DisposableCollection as _0xa25ea9,IConfigService as _0x4d2bff,ILogService as _0x53fcd2,Inject as _0x1a844e,Injector as _0x15f090,Plugin as _0x3916ff,registerDependencies as _0x27d82e,toDisposable as _0x5c9b03}from'@univerjs/core';import{HTTPService as _0x486185,ISocketService as _0x502ff7}from'@univerjs/network';import{Observable as _0x5e8015,share as _0x147173}from'rxjs';import{WebSocket as _0x3de71c}from'ws';import{ISnapshotServerService as _0x39a472}from'@univerjs-pro/collaboration';const y=_0xc076f4(0xc9);Symbol(y);const b={};var x='@univerjs-pro/collaboration-client-node',S='0.24.0';function _0x4f1e(_0x4e55d3,_0x1d16d0){_0x4e55d3=_0x4e55d3-0xb0;const _0x5793fa=_0x5793();let _0x4f1e66=_0x5793fa[_0x4e55d3];return _0x4f1e66;}function C(_0x5e432a,_0x44e845){return function(_0x3d781c,_0x1da507){_0x44e845(_0x3d781c,_0x1da507,_0x5e432a);};}function w(_0x52f1a4,_0x1ccabd,_0x1d3cd1,_0xa38815){const _0x5ddc9a=_0xc076f4;var _0x93d24=arguments[_0x5ddc9a(0xc0)],_0x53be47=_0x93d24<0x3?_0x1ccabd:_0xa38815===null?_0xa38815=Object[_0x5ddc9a(0xd7)](_0x1ccabd,_0x1d3cd1):_0xa38815,_0x5cb5fa;if(typeof Reflect=='object'&&typeof Reflect[_0x5ddc9a(0xdd)]=='function')_0x53be47=Reflect['decorate'](_0x52f1a4,_0x1ccabd,_0x1d3cd1,_0xa38815);else{for(var _0x285e31=_0x52f1a4[_0x5ddc9a(0xc0)]-0x1;_0x285e31>=0x0;_0x285e31--)(_0x5cb5fa=_0x52f1a4[_0x285e31])&&(_0x53be47=(_0x93d24<0x3?_0x5cb5fa(_0x53be47):_0x93d24>0x3?_0x5cb5fa(_0x1ccabd,_0x1d3cd1,_0x53be47):_0x5cb5fa(_0x1ccabd,_0x1d3cd1))||_0x53be47);}return _0x93d24>0x3&&_0x53be47&&Object[_0x5ddc9a(0xdb)](_0x1ccabd,_0x1d3cd1,_0x53be47),_0x53be47;}let T=class extends _0x4f91b6{constructor(_0x2a5b51){const _0x3b93f1=_0xc076f4;super(),this[_0x3b93f1(0xb8)]=_0x2a5b51;}['createSocket'](_0x46a4ff){const _0x20f880=_0xc076f4;var _0x1dfa75;let _0x300e2f=((_0x1dfa75=this[_0x20f880(0xb8)][_0x20f880(0xbf)](_0x425b61))==null?void 0x0:_0x1dfa75[_0x20f880(0xbe)])||{};try{let _0x2d54bf=new _0x3de71c(_0x46a4ff,{'headers':{..._0x300e2f}}),_0x3ced30=new _0xa25ea9();return{'URL':_0x46a4ff,'close':(_0x3cf507,_0x4c0824)=>{const _0x56df88=_0x20f880;_0x2d54bf[_0x56df88(0xdc)](_0x3cf507,_0x4c0824),_0x3ced30[_0x56df88(0xbb)]();},'send':_0x81c467=>{const _0x1d0558=_0x20f880;_0x2d54bf[_0x1d0558(0xb2)](_0x81c467);},'open$':new _0x5e8015(_0x45c7eb=>{const _0x46f613=_0x20f880;let _0x562c66=_0xd6c41a=>_0x45c7eb[_0x46f613(0xb7)](_0xd6c41a);_0x2d54bf[_0x46f613(0xbd)](_0x46f613(0xc5),_0x562c66),_0x3ced30[_0x46f613(0xc1)](_0x5c9b03(()=>_0x2d54bf[_0x46f613(0xc4)](_0x46f613(0xc5),_0x562c66)));})['pipe'](_0x147173()),'close$':new _0x5e8015(_0x2c077d=>{const _0x28646a=_0x20f880;let _0x40c176=_0x270b4d=>_0x2c077d[_0x28646a(0xb7)](_0x270b4d);_0x2d54bf['addEventListener'](_0x28646a(0xdc),_0x40c176),_0x3ced30[_0x28646a(0xc1)](_0x5c9b03(()=>_0x2d54bf[_0x28646a(0xc4)]('close',_0x40c176)));})[_0x20f880(0xb6)](_0x147173()),'error$':new _0x5e8015(_0x23a476=>{const _0x474d6f=_0x20f880;let _0x4aa789=_0x215b3e=>_0x23a476['next'](_0x215b3e);_0x2d54bf[_0x474d6f(0xbd)](_0x474d6f(0xd0),_0x4aa789),_0x3ced30[_0x474d6f(0xc1)](_0x5c9b03(()=>_0x2d54bf[_0x474d6f(0xc4)](_0x474d6f(0xd0),_0x4aa789)));})[_0x20f880(0xb6)](_0x147173()),'message$':new _0x5e8015(_0x269253=>{const _0x4c2f47=_0x20f880;let _0x72a1bd=_0x1d3ab5=>_0x269253['next'](_0x1d3ab5);_0x2d54bf[_0x4c2f47(0xbd)]('message',_0x72a1bd),_0x3ced30[_0x4c2f47(0xc1)](_0x5c9b03(()=>_0x2d54bf['removeEventListener']('message',_0x72a1bd)));})['pipe'](_0x147173())};}catch(_0x25cb1e){return console[_0x20f880(0xd0)](_0x25cb1e),null;}}};T=w([C(0x0,_0x4d2bff)],T);function E(_0x43e15e){'@babel/helpers - typeof';const _0x557bdb=_0xc076f4;return E=typeof Symbol==_0x557bdb(0xb1)&&typeof Symbol[_0x557bdb(0xc2)]=='symbol'?function(_0x471a0f){return typeof _0x471a0f;}:function(_0x10e893){const _0x537663=_0x557bdb;return _0x10e893&&typeof Symbol==_0x537663(0xb1)&&_0x10e893[_0x537663(0xb3)]===Symbol&&_0x10e893!==Symbol['prototype']?_0x537663(0xc6):typeof _0x10e893;},E(_0x43e15e);}function D(_0x53d47b,_0x3d9722){const _0x4f77bd=_0xc076f4;if(E(_0x53d47b)!=_0x4f77bd(0xc8)||!_0x53d47b)return _0x53d47b;var _0x1b3c1e=_0x53d47b[Symbol[_0x4f77bd(0xbc)]];if(_0x1b3c1e!==void 0x0){var _0x2177f5=_0x1b3c1e[_0x4f77bd(0xde)](_0x53d47b,_0x3d9722||_0x4f77bd(0xd4));if(E(_0x2177f5)!=_0x4f77bd(0xc8))return _0x2177f5;throw TypeError(_0x4f77bd(0xc3));}return(_0x3d9722==='string'?String:Number)(_0x53d47b);}function O(_0xfb385c){const _0x2c5803=_0xc076f4;var _0x6a2df=D(_0xfb385c,_0x2c5803(0xd8));return E(_0x6a2df)==_0x2c5803(0xc6)?_0x6a2df:_0x6a2df+'';}function k(_0x54fd9f,_0x463212,_0x536afc){return(_0x463212=O(_0x463212))in _0x54fd9f?Object['defineProperty'](_0x54fd9f,_0x463212,{'value':_0x536afc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x54fd9f[_0x463212]=_0x536afc,_0x54fd9f;}let A=class extends _0x3916ff{constructor(_0x38259a=b,_0x4f8b7c,_0x56c7d3){const _0x38cc68=_0xc076f4;super(),this[_0x38cc68(0xb8)]=_0x4f8b7c,this[_0x38cc68(0xc7)]=_0x56c7d3,this[_0x38cc68(0xb8)][_0x38cc68(0xb9)](y,_0x38259a);}['onStarting'](){const _0x1f4a2d=_0xc076f4;this[_0x1f4a2d(0xd3)]();}[_0xc076f4(0xd3)](){const _0x19d1b2=_0xc076f4;_0x27d82e(this[_0x19d1b2(0xc7)],[[_0x502ff7,{'useClass':T}]]);}};k(A,_0xc076f4(0xba),_0xc076f4(0xb5)),k(A,'packageName',x),k(A,'version',S),A=w([_0x4128c4(_0x4bc88a),C(0x1,_0x4d2bff),C(0x2,_0x1a844e(_0x15f090))],A);let j=class extends _0x3286a9{constructor(_0x373590,_0x43b619,_0x57f52c,_0x18baba,_0x1e0c4d){const _0x361006=_0xc076f4;super(_0x373590,_0x43b619,_0x57f52c,_0x18baba,_0x1e0c4d);let _0x180769=this[_0x361006(0xb8)][_0x361006(0xbf)](_0x425b61);this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x796ddb,_0x3ba6d0)=>{const _0x429b51=_0x361006;let _0x152721=_0x796ddb[_0x429b51(0xd6)];if(_0x180769!=null&&_0x180769[_0x429b51(0xbe)]){for(let _0x12d056 in _0x180769[_0x429b51(0xbe)])_0x152721[_0x429b51(0xb4)](_0x12d056,_0x180769[_0x429b51(0xbe)][_0x12d056]);}return _0x3ba6d0(_0x796ddb);}});}async[_0xc076f4(0xd9)](_0x313acc){return this['_doCreateSocket'](_0x313acc);}};j=w([C(0x0,_0x1a844e(_0x15f090)),C(0x1,_0x1a844e(_0x486185)),C(0x2,_0x4d2bff),C(0x3,_0x53fcd2),C(0x4,_0x39a472)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0x1ff046=_0x209b;(function(_0xb3275,_0x1732df){const _0x257e0a=_0x209b,_0x1d01ac=_0xb3275();while(!![]){try{const _0x173148=-parseInt(_0x257e0a(0x129))/0x1+-parseInt(_0x257e0a(0x13d))/0x2*(parseInt(_0x257e0a(0x13a))/0x3)+-parseInt(_0x257e0a(0x150))/0x4*(parseInt(_0x257e0a(0x147))/0x5)+-parseInt(_0x257e0a(0x142))/0x6*(parseInt(_0x257e0a(0x14d))/0x7)+parseInt(_0x257e0a(0x12d))/0x8+parseInt(_0x257e0a(0x153))/0x9+parseInt(_0x257e0a(0x133))/0xa;if(_0x173148===_0x1732df)break;else _0x1d01ac['push'](_0x1d01ac['shift']());}catch(_0x19ef99){_0x1d01ac['push'](_0x1d01ac['shift']());}}}(_0x13ed,0x6c77b));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x37b513,CollaborationSocketService as _0x5a902f,UniverCollaborationClientPlugin as _0x2a8777}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x37405d,Disposable as _0x591c06,DisposableCollection as _0x23a74c,IConfigService as _0x64880e,ILogService as _0x444c53,Inject as _0x5d25a8,Injector as _0xc0b514,Plugin as _0x253070,registerDependencies as _0x3ead1e,toDisposable as _0x109868}from'@univerjs/core';function _0x209b(_0xae251d,_0x3dd496){_0xae251d=_0xae251d-0x129;const _0x13ed7c=_0x13ed();let _0x209bbd=_0x13ed7c[_0xae251d];return _0x209bbd;}import{HTTPService as _0x3e4613,ISocketService as _0x2bbccf}from'@univerjs/network';import{Observable as _0x365c06,share as _0x1c22a8}from'rxjs';import{WebSocket as _0x9c39cf}from'ws';import{ISnapshotServerService as _0x318517}from'@univerjs-pro/collaboration';const y=_0x1ff046(0x14e),b={};var x=_0x1ff046(0x144),S=_0x1ff046(0x12f);function C(_0x3300fe,_0x3354e3){return function(_0x19d4b7,_0x2fd6ff){_0x3354e3(_0x19d4b7,_0x2fd6ff,_0x3300fe);};}function w(_0x29aae1,_0x321dd5,_0x19f403,_0x3f0a7c){const _0x5308b3=_0x1ff046;var _0x409241=arguments['length'],_0x152a4a=_0x409241<0x3?_0x321dd5:_0x3f0a7c===null?_0x3f0a7c=Object[_0x5308b3(0x13e)](_0x321dd5,_0x19f403):_0x3f0a7c,_0x304bcd;if(typeof Reflect==_0x5308b3(0x12b)&&typeof Reflect[_0x5308b3(0x154)]==_0x5308b3(0x155))_0x152a4a=Reflect[_0x5308b3(0x154)](_0x29aae1,_0x321dd5,_0x19f403,_0x3f0a7c);else{for(var _0x3beabe=_0x29aae1[_0x5308b3(0x12c)]-0x1;_0x3beabe>=0x0;_0x3beabe--)(_0x304bcd=_0x29aae1[_0x3beabe])&&(_0x152a4a=(_0x409241<0x3?_0x304bcd(_0x152a4a):_0x409241>0x3?_0x304bcd(_0x321dd5,_0x19f403,_0x152a4a):_0x304bcd(_0x321dd5,_0x19f403))||_0x152a4a);}return _0x409241>0x3&&_0x152a4a&&Object['defineProperty'](_0x321dd5,_0x19f403,_0x152a4a),_0x152a4a;}let T=class extends _0x591c06{constructor(_0x448a98){super(),this['_configService']=_0x448a98;}['createSocket'](_0x958261){const _0x212cc5=_0x1ff046;var _0x3307f4;let _0x11a31c=((_0x3307f4=this[_0x212cc5(0x13f)][_0x212cc5(0x141)](_0x37b513))==null?void 0x0:_0x3307f4['customHeaders'])||{};try{let _0xc50e61=new _0x9c39cf(_0x958261,{'headers':{..._0x11a31c}}),_0x4ec2b7=new _0x23a74c();return{'URL':_0x958261,'close':(_0x343cc9,_0x448885)=>{const _0x12c933=_0x212cc5;_0xc50e61[_0x12c933(0x13b)](_0x343cc9,_0x448885),_0x4ec2b7[_0x12c933(0x148)]();},'send':_0x1fd48d=>{const _0x174ccc=_0x212cc5;_0xc50e61[_0x174ccc(0x14f)](_0x1fd48d);},'open$':new _0x365c06(_0x3db06e=>{const _0x11b812=_0x212cc5;let _0x21714b=_0x54cfff=>_0x3db06e[_0x11b812(0x14c)](_0x54cfff);_0xc50e61[_0x11b812(0x140)]('open',_0x21714b),_0x4ec2b7[_0x11b812(0x152)](_0x109868(()=>_0xc50e61[_0x11b812(0x137)](_0x11b812(0x158),_0x21714b)));})[_0x212cc5(0x132)](_0x1c22a8()),'close$':new _0x365c06(_0x59c3a9=>{const _0x46065c=_0x212cc5;let _0x27c1d2=_0xb8a3af=>_0x59c3a9['next'](_0xb8a3af);_0xc50e61[_0x46065c(0x140)](_0x46065c(0x13b),_0x27c1d2),_0x4ec2b7[_0x46065c(0x152)](_0x109868(()=>_0xc50e61[_0x46065c(0x137)]('close',_0x27c1d2)));})[_0x212cc5(0x132)](_0x1c22a8()),'error$':new _0x365c06(_0x114b22=>{const _0x74c720=_0x212cc5;let _0x122ec9=_0x243d38=>_0x114b22['next'](_0x243d38);_0xc50e61[_0x74c720(0x140)](_0x74c720(0x143),_0x122ec9),_0x4ec2b7[_0x74c720(0x152)](_0x109868(()=>_0xc50e61[_0x74c720(0x137)](_0x74c720(0x143),_0x122ec9)));})[_0x212cc5(0x132)](_0x1c22a8()),'message$':new _0x365c06(_0x1cc508=>{const _0x4a6c6c=_0x212cc5;let _0x26c8fd=_0x4dad59=>_0x1cc508[_0x4a6c6c(0x14c)](_0x4dad59);_0xc50e61[_0x4a6c6c(0x140)](_0x4a6c6c(0x12a),_0x26c8fd),_0x4ec2b7[_0x4a6c6c(0x152)](_0x109868(()=>_0xc50e61[_0x4a6c6c(0x137)](_0x4a6c6c(0x12a),_0x26c8fd)));})[_0x212cc5(0x132)](_0x1c22a8())};}catch(_0x57571a){return console['error'](_0x57571a),null;}}};function _0x13ed(){const _0x4490b3=['pipe','8003500MFDVGU','prototype','_doCreateSocket','constructor','removeEventListener','customHeaders','pluginName','6ZotSwP','close','defineProperty','301042PksPxb','getOwnPropertyDescriptor','_configService','addEventListener','getConfig','3947382FqjfYf','error','@univerjs-pro/collaboration-client-node','iterator','createSocket','1660385DLDxzf','dispose','setConfig','symbol','string','next','7VUdaLX','collaboration-client-node.config','send','8XvLBfO','headers','add','7437609RYvrKW','decorate','function','_registerDependencies','call','open','registerHTTPInterceptor','_injector','369569mKJqne','message','object','length','6481552tljQWo','set','0.25.0-insiders.20260608-e4336f7','version','default'];_0x13ed=function(){return _0x4490b3;};return _0x13ed();}T=w([C(0x0,_0x64880e)],T);function E(_0x1a82c2){'@babel/helpers - typeof';const _0x59faa0=_0x1ff046;return E=typeof Symbol==_0x59faa0(0x155)&&typeof Symbol[_0x59faa0(0x145)]=='symbol'?function(_0x5275a5){return typeof _0x5275a5;}:function(_0x2fbcdd){const _0x2890d3=_0x59faa0;return _0x2fbcdd&&typeof Symbol=='function'&&_0x2fbcdd[_0x2890d3(0x136)]===Symbol&&_0x2fbcdd!==Symbol[_0x2890d3(0x134)]?_0x2890d3(0x14a):typeof _0x2fbcdd;},E(_0x1a82c2);}function D(_0x2fdef0,_0x32835f){const _0x36cc9b=_0x1ff046;if(E(_0x2fdef0)!=_0x36cc9b(0x12b)||!_0x2fdef0)return _0x2fdef0;var _0x119cce=_0x2fdef0[Symbol['toPrimitive']];if(_0x119cce!==void 0x0){var _0x3cc84d=_0x119cce[_0x36cc9b(0x157)](_0x2fdef0,_0x32835f||_0x36cc9b(0x131));if(E(_0x3cc84d)!=_0x36cc9b(0x12b))return _0x3cc84d;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x32835f===_0x36cc9b(0x14b)?String:Number)(_0x2fdef0);}function O(_0x1cdbdd){var _0x2ac876=D(_0x1cdbdd,'string');return E(_0x2ac876)=='symbol'?_0x2ac876:_0x2ac876+'';}function k(_0x332553,_0x3bbc2d,_0x2a9c72){const _0x12933f=_0x1ff046;return(_0x3bbc2d=O(_0x3bbc2d))in _0x332553?Object[_0x12933f(0x13c)](_0x332553,_0x3bbc2d,{'value':_0x2a9c72,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x332553[_0x3bbc2d]=_0x2a9c72,_0x332553;}let A=class extends _0x253070{constructor(_0x27e66c=b,_0x5509a7,_0xf45466){const _0x1c0808=_0x1ff046;super(),this[_0x1c0808(0x13f)]=_0x5509a7,this['_injector']=_0xf45466,this[_0x1c0808(0x13f)][_0x1c0808(0x149)](y,_0x27e66c);}['onStarting'](){this['_registerDependencies']();}[_0x1ff046(0x156)](){const _0x299b0f=_0x1ff046;_0x3ead1e(this[_0x299b0f(0x15a)],[[_0x2bbccf,{'useClass':T}]]);}};k(A,_0x1ff046(0x139),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),k(A,'packageName',x),k(A,_0x1ff046(0x130),S),A=w([_0x37405d(_0x2a8777),C(0x1,_0x64880e),C(0x2,_0x5d25a8(_0xc0b514))],A);let j=class extends _0x5a902f{constructor(_0x32a4bd,_0x215917,_0x1e9e90,_0x4cd65a,_0x1a9d30){const _0x111c33=_0x1ff046;super(_0x32a4bd,_0x215917,_0x1e9e90,_0x4cd65a,_0x1a9d30);let _0xaf6c00=this[_0x111c33(0x13f)][_0x111c33(0x141)](_0x37b513);this['_httpService'][_0x111c33(0x159)]({'interceptor':(_0x45e23b,_0x1962f)=>{const _0x9f90ca=_0x111c33;let _0x1daf6c=_0x45e23b[_0x9f90ca(0x151)];if(_0xaf6c00!=null&&_0xaf6c00['customHeaders']){for(let _0x2206e7 in _0xaf6c00[_0x9f90ca(0x138)])_0x1daf6c[_0x9f90ca(0x12e)](_0x2206e7,_0xaf6c00[_0x9f90ca(0x138)][_0x2206e7]);}return _0x1962f(_0x45e23b);}});}async[_0x1ff046(0x146)](_0x2480db){const _0x1b9410=_0x1ff046;return this[_0x1b9410(0x135)](_0x2480db);}};j=w([C(0x0,_0x5d25a8(_0xc0b514)),C(0x1,_0x5d25a8(_0x3e4613)),C(0x2,_0x64880e),C(0x3,_0x444c53),C(0x4,_0x318517)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0xc076f4=_0x4f1e;(function(_0x356426,_0x521a54){const _0x260278=_0x4f1e,_0x4d5b2b=_0x356426();while(!![]){try{const _0x30f841=parseInt(_0x260278(0xd2))/0x1+parseInt(_0x260278(0xcc))/0x2*(parseInt(_0x260278(0xb0))/0x3)+-parseInt(_0x260278(0xcf))/0x4*(parseInt(_0x260278(0xda))/0x5)+-parseInt(_0x260278(0xce))/0x6+-parseInt(_0x260278(0xcb))/0x7*(parseInt(_0x260278(0xcd))/0x8)+-parseInt(_0x260278(0xd1))/0x9*(-parseInt(_0x260278(0xca))/0xa)+parseInt(_0x260278(0xd5))/0xb;if(_0x30f841===_0x521a54)break;else _0x4d5b2b['push'](_0x4d5b2b['shift']());}catch(_0x13fd6c){_0x4d5b2b['push'](_0x4d5b2b['shift']());}}}(_0x5793,0x78ac9));function _0x5793(){const _0xb3aab8=['object','collaboration-client-node.config','2617100ItuTko','6581687kRqoBD','4EQPsjV','8gMllfL','3698760pPfTmn','80mbcLsT','error','18TCAtvt','548980USLcKI','_registerDependencies','default','3858580eMhNsW','headers','getOwnPropertyDescriptor','string','createSocket','10120gFqvMP','defineProperty','close','decorate','call','1002423ICNRUQ','function','send','constructor','set','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','pipe','next','_configService','setConfig','pluginName','dispose','toPrimitive','addEventListener','customHeaders','getConfig','length','add','iterator','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','removeEventListener','open','symbol','_injector'];_0x5793=function(){return _0xb3aab8;};return _0x5793();}import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x425b61,CollaborationSocketService as _0x3286a9,UniverCollaborationClientPlugin as _0x4bc88a}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x4128c4,Disposable as _0x4f91b6,DisposableCollection as _0xa25ea9,IConfigService as _0x4d2bff,ILogService as _0x53fcd2,Inject as _0x1a844e,Injector as _0x15f090,Plugin as _0x3916ff,registerDependencies as _0x27d82e,toDisposable as _0x5c9b03}from'@univerjs/core';import{HTTPService as _0x486185,ISocketService as _0x502ff7}from'@univerjs/network';import{Observable as _0x5e8015,share as _0x147173}from'rxjs';import{WebSocket as _0x3de71c}from'ws';import{ISnapshotServerService as _0x39a472}from'@univerjs-pro/collaboration';const y=_0xc076f4(0xc9);Symbol(y);const b={};var x='@univerjs-pro/collaboration-client-node',S='0.24.0';function _0x4f1e(_0x4e55d3,_0x1d16d0){_0x4e55d3=_0x4e55d3-0xb0;const _0x5793fa=_0x5793();let _0x4f1e66=_0x5793fa[_0x4e55d3];return _0x4f1e66;}function C(_0x5e432a,_0x44e845){return function(_0x3d781c,_0x1da507){_0x44e845(_0x3d781c,_0x1da507,_0x5e432a);};}function w(_0x52f1a4,_0x1ccabd,_0x1d3cd1,_0xa38815){const _0x5ddc9a=_0xc076f4;var _0x93d24=arguments[_0x5ddc9a(0xc0)],_0x53be47=_0x93d24<0x3?_0x1ccabd:_0xa38815===null?_0xa38815=Object[_0x5ddc9a(0xd7)](_0x1ccabd,_0x1d3cd1):_0xa38815,_0x5cb5fa;if(typeof Reflect=='object'&&typeof Reflect[_0x5ddc9a(0xdd)]=='function')_0x53be47=Reflect['decorate'](_0x52f1a4,_0x1ccabd,_0x1d3cd1,_0xa38815);else{for(var _0x285e31=_0x52f1a4[_0x5ddc9a(0xc0)]-0x1;_0x285e31>=0x0;_0x285e31--)(_0x5cb5fa=_0x52f1a4[_0x285e31])&&(_0x53be47=(_0x93d24<0x3?_0x5cb5fa(_0x53be47):_0x93d24>0x3?_0x5cb5fa(_0x1ccabd,_0x1d3cd1,_0x53be47):_0x5cb5fa(_0x1ccabd,_0x1d3cd1))||_0x53be47);}return _0x93d24>0x3&&_0x53be47&&Object[_0x5ddc9a(0xdb)](_0x1ccabd,_0x1d3cd1,_0x53be47),_0x53be47;}let T=class extends _0x4f91b6{constructor(_0x2a5b51){const _0x3b93f1=_0xc076f4;super(),this[_0x3b93f1(0xb8)]=_0x2a5b51;}['createSocket'](_0x46a4ff){const _0x20f880=_0xc076f4;var _0x1dfa75;let _0x300e2f=((_0x1dfa75=this[_0x20f880(0xb8)][_0x20f880(0xbf)](_0x425b61))==null?void 0x0:_0x1dfa75[_0x20f880(0xbe)])||{};try{let _0x2d54bf=new _0x3de71c(_0x46a4ff,{'headers':{..._0x300e2f}}),_0x3ced30=new _0xa25ea9();return{'URL':_0x46a4ff,'close':(_0x3cf507,_0x4c0824)=>{const _0x56df88=_0x20f880;_0x2d54bf[_0x56df88(0xdc)](_0x3cf507,_0x4c0824),_0x3ced30[_0x56df88(0xbb)]();},'send':_0x81c467=>{const _0x1d0558=_0x20f880;_0x2d54bf[_0x1d0558(0xb2)](_0x81c467);},'open$':new _0x5e8015(_0x45c7eb=>{const _0x46f613=_0x20f880;let _0x562c66=_0xd6c41a=>_0x45c7eb[_0x46f613(0xb7)](_0xd6c41a);_0x2d54bf[_0x46f613(0xbd)](_0x46f613(0xc5),_0x562c66),_0x3ced30[_0x46f613(0xc1)](_0x5c9b03(()=>_0x2d54bf[_0x46f613(0xc4)](_0x46f613(0xc5),_0x562c66)));})['pipe'](_0x147173()),'close$':new _0x5e8015(_0x2c077d=>{const _0x28646a=_0x20f880;let _0x40c176=_0x270b4d=>_0x2c077d[_0x28646a(0xb7)](_0x270b4d);_0x2d54bf['addEventListener'](_0x28646a(0xdc),_0x40c176),_0x3ced30[_0x28646a(0xc1)](_0x5c9b03(()=>_0x2d54bf[_0x28646a(0xc4)]('close',_0x40c176)));})[_0x20f880(0xb6)](_0x147173()),'error$':new _0x5e8015(_0x23a476=>{const _0x474d6f=_0x20f880;let _0x4aa789=_0x215b3e=>_0x23a476['next'](_0x215b3e);_0x2d54bf[_0x474d6f(0xbd)](_0x474d6f(0xd0),_0x4aa789),_0x3ced30[_0x474d6f(0xc1)](_0x5c9b03(()=>_0x2d54bf[_0x474d6f(0xc4)](_0x474d6f(0xd0),_0x4aa789)));})[_0x20f880(0xb6)](_0x147173()),'message$':new _0x5e8015(_0x269253=>{const _0x4c2f47=_0x20f880;let _0x72a1bd=_0x1d3ab5=>_0x269253['next'](_0x1d3ab5);_0x2d54bf[_0x4c2f47(0xbd)]('message',_0x72a1bd),_0x3ced30[_0x4c2f47(0xc1)](_0x5c9b03(()=>_0x2d54bf['removeEventListener']('message',_0x72a1bd)));})['pipe'](_0x147173())};}catch(_0x25cb1e){return console[_0x20f880(0xd0)](_0x25cb1e),null;}}};T=w([C(0x0,_0x4d2bff)],T);function E(_0x43e15e){'@babel/helpers - typeof';const _0x557bdb=_0xc076f4;return E=typeof Symbol==_0x557bdb(0xb1)&&typeof Symbol[_0x557bdb(0xc2)]=='symbol'?function(_0x471a0f){return typeof _0x471a0f;}:function(_0x10e893){const _0x537663=_0x557bdb;return _0x10e893&&typeof Symbol==_0x537663(0xb1)&&_0x10e893[_0x537663(0xb3)]===Symbol&&_0x10e893!==Symbol['prototype']?_0x537663(0xc6):typeof _0x10e893;},E(_0x43e15e);}function D(_0x53d47b,_0x3d9722){const _0x4f77bd=_0xc076f4;if(E(_0x53d47b)!=_0x4f77bd(0xc8)||!_0x53d47b)return _0x53d47b;var _0x1b3c1e=_0x53d47b[Symbol[_0x4f77bd(0xbc)]];if(_0x1b3c1e!==void 0x0){var _0x2177f5=_0x1b3c1e[_0x4f77bd(0xde)](_0x53d47b,_0x3d9722||_0x4f77bd(0xd4));if(E(_0x2177f5)!=_0x4f77bd(0xc8))return _0x2177f5;throw TypeError(_0x4f77bd(0xc3));}return(_0x3d9722==='string'?String:Number)(_0x53d47b);}function O(_0xfb385c){const _0x2c5803=_0xc076f4;var _0x6a2df=D(_0xfb385c,_0x2c5803(0xd8));return E(_0x6a2df)==_0x2c5803(0xc6)?_0x6a2df:_0x6a2df+'';}function k(_0x54fd9f,_0x463212,_0x536afc){return(_0x463212=O(_0x463212))in _0x54fd9f?Object['defineProperty'](_0x54fd9f,_0x463212,{'value':_0x536afc,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x54fd9f[_0x463212]=_0x536afc,_0x54fd9f;}let A=class extends _0x3916ff{constructor(_0x38259a=b,_0x4f8b7c,_0x56c7d3){const _0x38cc68=_0xc076f4;super(),this[_0x38cc68(0xb8)]=_0x4f8b7c,this[_0x38cc68(0xc7)]=_0x56c7d3,this[_0x38cc68(0xb8)][_0x38cc68(0xb9)](y,_0x38259a);}['onStarting'](){const _0x1f4a2d=_0xc076f4;this[_0x1f4a2d(0xd3)]();}[_0xc076f4(0xd3)](){const _0x19d1b2=_0xc076f4;_0x27d82e(this[_0x19d1b2(0xc7)],[[_0x502ff7,{'useClass':T}]]);}};k(A,_0xc076f4(0xba),_0xc076f4(0xb5)),k(A,'packageName',x),k(A,'version',S),A=w([_0x4128c4(_0x4bc88a),C(0x1,_0x4d2bff),C(0x2,_0x1a844e(_0x15f090))],A);let j=class extends _0x3286a9{constructor(_0x373590,_0x43b619,_0x57f52c,_0x18baba,_0x1e0c4d){const _0x361006=_0xc076f4;super(_0x373590,_0x43b619,_0x57f52c,_0x18baba,_0x1e0c4d);let _0x180769=this[_0x361006(0xb8)][_0x361006(0xbf)](_0x425b61);this['_httpService']['registerHTTPInterceptor']({'interceptor':(_0x796ddb,_0x3ba6d0)=>{const _0x429b51=_0x361006;let _0x152721=_0x796ddb[_0x429b51(0xd6)];if(_0x180769!=null&&_0x180769[_0x429b51(0xbe)]){for(let _0x12d056 in _0x180769[_0x429b51(0xbe)])_0x152721[_0x429b51(0xb4)](_0x12d056,_0x180769[_0x429b51(0xbe)][_0x12d056]);}return _0x3ba6d0(_0x796ddb);}});}async[_0xc076f4(0xd9)](_0x313acc){return this['_doCreateSocket'](_0x313acc);}};j=w([C(0x0,_0x1a844e(_0x15f090)),C(0x1,_0x1a844e(_0x486185)),C(0x2,_0x4d2bff),C(0x3,_0x53fcd2),C(0x4,_0x39a472)],j);export{y as COLLABORATION_CLIENT_NODE_CONFIG_KEY,j as NodeCollaborationSocketService,A as UniverCollaborationClientNodePlugin};
1
+ const _0x1ff046=_0x209b;(function(_0xb3275,_0x1732df){const _0x257e0a=_0x209b,_0x1d01ac=_0xb3275();while(!![]){try{const _0x173148=-parseInt(_0x257e0a(0x129))/0x1+-parseInt(_0x257e0a(0x13d))/0x2*(parseInt(_0x257e0a(0x13a))/0x3)+-parseInt(_0x257e0a(0x150))/0x4*(parseInt(_0x257e0a(0x147))/0x5)+-parseInt(_0x257e0a(0x142))/0x6*(parseInt(_0x257e0a(0x14d))/0x7)+parseInt(_0x257e0a(0x12d))/0x8+parseInt(_0x257e0a(0x153))/0x9+parseInt(_0x257e0a(0x133))/0xa;if(_0x173148===_0x1732df)break;else _0x1d01ac['push'](_0x1d01ac['shift']());}catch(_0x19ef99){_0x1d01ac['push'](_0x1d01ac['shift']());}}}(_0x13ed,0x6c77b));import{COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY as _0x37b513,CollaborationSocketService as _0x5a902f,UniverCollaborationClientPlugin as _0x2a8777}from'@univerjs-pro/collaboration-client';import{DependentOn as _0x37405d,Disposable as _0x591c06,DisposableCollection as _0x23a74c,IConfigService as _0x64880e,ILogService as _0x444c53,Inject as _0x5d25a8,Injector as _0xc0b514,Plugin as _0x253070,registerDependencies as _0x3ead1e,toDisposable as _0x109868}from'@univerjs/core';function _0x209b(_0xae251d,_0x3dd496){_0xae251d=_0xae251d-0x129;const _0x13ed7c=_0x13ed();let _0x209bbd=_0x13ed7c[_0xae251d];return _0x209bbd;}import{HTTPService as _0x3e4613,ISocketService as _0x2bbccf}from'@univerjs/network';import{Observable as _0x365c06,share as _0x1c22a8}from'rxjs';import{WebSocket as _0x9c39cf}from'ws';import{ISnapshotServerService as _0x318517}from'@univerjs-pro/collaboration';const y=_0x1ff046(0x14e),b={};var x=_0x1ff046(0x144),S=_0x1ff046(0x12f);function C(_0x3300fe,_0x3354e3){return function(_0x19d4b7,_0x2fd6ff){_0x3354e3(_0x19d4b7,_0x2fd6ff,_0x3300fe);};}function w(_0x29aae1,_0x321dd5,_0x19f403,_0x3f0a7c){const _0x5308b3=_0x1ff046;var _0x409241=arguments['length'],_0x152a4a=_0x409241<0x3?_0x321dd5:_0x3f0a7c===null?_0x3f0a7c=Object[_0x5308b3(0x13e)](_0x321dd5,_0x19f403):_0x3f0a7c,_0x304bcd;if(typeof Reflect==_0x5308b3(0x12b)&&typeof Reflect[_0x5308b3(0x154)]==_0x5308b3(0x155))_0x152a4a=Reflect[_0x5308b3(0x154)](_0x29aae1,_0x321dd5,_0x19f403,_0x3f0a7c);else{for(var _0x3beabe=_0x29aae1[_0x5308b3(0x12c)]-0x1;_0x3beabe>=0x0;_0x3beabe--)(_0x304bcd=_0x29aae1[_0x3beabe])&&(_0x152a4a=(_0x409241<0x3?_0x304bcd(_0x152a4a):_0x409241>0x3?_0x304bcd(_0x321dd5,_0x19f403,_0x152a4a):_0x304bcd(_0x321dd5,_0x19f403))||_0x152a4a);}return _0x409241>0x3&&_0x152a4a&&Object['defineProperty'](_0x321dd5,_0x19f403,_0x152a4a),_0x152a4a;}let T=class extends _0x591c06{constructor(_0x448a98){super(),this['_configService']=_0x448a98;}['createSocket'](_0x958261){const _0x212cc5=_0x1ff046;var _0x3307f4;let _0x11a31c=((_0x3307f4=this[_0x212cc5(0x13f)][_0x212cc5(0x141)](_0x37b513))==null?void 0x0:_0x3307f4['customHeaders'])||{};try{let _0xc50e61=new _0x9c39cf(_0x958261,{'headers':{..._0x11a31c}}),_0x4ec2b7=new _0x23a74c();return{'URL':_0x958261,'close':(_0x343cc9,_0x448885)=>{const _0x12c933=_0x212cc5;_0xc50e61[_0x12c933(0x13b)](_0x343cc9,_0x448885),_0x4ec2b7[_0x12c933(0x148)]();},'send':_0x1fd48d=>{const _0x174ccc=_0x212cc5;_0xc50e61[_0x174ccc(0x14f)](_0x1fd48d);},'open$':new _0x365c06(_0x3db06e=>{const _0x11b812=_0x212cc5;let _0x21714b=_0x54cfff=>_0x3db06e[_0x11b812(0x14c)](_0x54cfff);_0xc50e61[_0x11b812(0x140)]('open',_0x21714b),_0x4ec2b7[_0x11b812(0x152)](_0x109868(()=>_0xc50e61[_0x11b812(0x137)](_0x11b812(0x158),_0x21714b)));})[_0x212cc5(0x132)](_0x1c22a8()),'close$':new _0x365c06(_0x59c3a9=>{const _0x46065c=_0x212cc5;let _0x27c1d2=_0xb8a3af=>_0x59c3a9['next'](_0xb8a3af);_0xc50e61[_0x46065c(0x140)](_0x46065c(0x13b),_0x27c1d2),_0x4ec2b7[_0x46065c(0x152)](_0x109868(()=>_0xc50e61[_0x46065c(0x137)]('close',_0x27c1d2)));})[_0x212cc5(0x132)](_0x1c22a8()),'error$':new _0x365c06(_0x114b22=>{const _0x74c720=_0x212cc5;let _0x122ec9=_0x243d38=>_0x114b22['next'](_0x243d38);_0xc50e61[_0x74c720(0x140)](_0x74c720(0x143),_0x122ec9),_0x4ec2b7[_0x74c720(0x152)](_0x109868(()=>_0xc50e61[_0x74c720(0x137)](_0x74c720(0x143),_0x122ec9)));})[_0x212cc5(0x132)](_0x1c22a8()),'message$':new _0x365c06(_0x1cc508=>{const _0x4a6c6c=_0x212cc5;let _0x26c8fd=_0x4dad59=>_0x1cc508[_0x4a6c6c(0x14c)](_0x4dad59);_0xc50e61[_0x4a6c6c(0x140)](_0x4a6c6c(0x12a),_0x26c8fd),_0x4ec2b7[_0x4a6c6c(0x152)](_0x109868(()=>_0xc50e61[_0x4a6c6c(0x137)](_0x4a6c6c(0x12a),_0x26c8fd)));})[_0x212cc5(0x132)](_0x1c22a8())};}catch(_0x57571a){return console['error'](_0x57571a),null;}}};function _0x13ed(){const _0x4490b3=['pipe','8003500MFDVGU','prototype','_doCreateSocket','constructor','removeEventListener','customHeaders','pluginName','6ZotSwP','close','defineProperty','301042PksPxb','getOwnPropertyDescriptor','_configService','addEventListener','getConfig','3947382FqjfYf','error','@univerjs-pro/collaboration-client-node','iterator','createSocket','1660385DLDxzf','dispose','setConfig','symbol','string','next','7VUdaLX','collaboration-client-node.config','send','8XvLBfO','headers','add','7437609RYvrKW','decorate','function','_registerDependencies','call','open','registerHTTPInterceptor','_injector','369569mKJqne','message','object','length','6481552tljQWo','set','0.25.0-insiders.20260608-e4336f7','version','default'];_0x13ed=function(){return _0x4490b3;};return _0x13ed();}T=w([C(0x0,_0x64880e)],T);function E(_0x1a82c2){'@babel/helpers - typeof';const _0x59faa0=_0x1ff046;return E=typeof Symbol==_0x59faa0(0x155)&&typeof Symbol[_0x59faa0(0x145)]=='symbol'?function(_0x5275a5){return typeof _0x5275a5;}:function(_0x2fbcdd){const _0x2890d3=_0x59faa0;return _0x2fbcdd&&typeof Symbol=='function'&&_0x2fbcdd[_0x2890d3(0x136)]===Symbol&&_0x2fbcdd!==Symbol[_0x2890d3(0x134)]?_0x2890d3(0x14a):typeof _0x2fbcdd;},E(_0x1a82c2);}function D(_0x2fdef0,_0x32835f){const _0x36cc9b=_0x1ff046;if(E(_0x2fdef0)!=_0x36cc9b(0x12b)||!_0x2fdef0)return _0x2fdef0;var _0x119cce=_0x2fdef0[Symbol['toPrimitive']];if(_0x119cce!==void 0x0){var _0x3cc84d=_0x119cce[_0x36cc9b(0x157)](_0x2fdef0,_0x32835f||_0x36cc9b(0x131));if(E(_0x3cc84d)!=_0x36cc9b(0x12b))return _0x3cc84d;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x32835f===_0x36cc9b(0x14b)?String:Number)(_0x2fdef0);}function O(_0x1cdbdd){var _0x2ac876=D(_0x1cdbdd,'string');return E(_0x2ac876)=='symbol'?_0x2ac876:_0x2ac876+'';}function k(_0x332553,_0x3bbc2d,_0x2a9c72){const _0x12933f=_0x1ff046;return(_0x3bbc2d=O(_0x3bbc2d))in _0x332553?Object[_0x12933f(0x13c)](_0x332553,_0x3bbc2d,{'value':_0x2a9c72,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x332553[_0x3bbc2d]=_0x2a9c72,_0x332553;}let A=class extends _0x253070{constructor(_0x27e66c=b,_0x5509a7,_0xf45466){const _0x1c0808=_0x1ff046;super(),this[_0x1c0808(0x13f)]=_0x5509a7,this['_injector']=_0xf45466,this[_0x1c0808(0x13f)][_0x1c0808(0x149)](y,_0x27e66c);}['onStarting'](){this['_registerDependencies']();}[_0x1ff046(0x156)](){const _0x299b0f=_0x1ff046;_0x3ead1e(this[_0x299b0f(0x15a)],[[_0x2bbccf,{'useClass':T}]]);}};k(A,_0x1ff046(0x139),'UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN'),k(A,'packageName',x),k(A,_0x1ff046(0x130),S),A=w([_0x37405d(_0x2a8777),C(0x1,_0x64880e),C(0x2,_0x5d25a8(_0xc0b514))],A);let j=class extends _0x5a902f{constructor(_0x32a4bd,_0x215917,_0x1e9e90,_0x4cd65a,_0x1a9d30){const _0x111c33=_0x1ff046;super(_0x32a4bd,_0x215917,_0x1e9e90,_0x4cd65a,_0x1a9d30);let _0xaf6c00=this[_0x111c33(0x13f)][_0x111c33(0x141)](_0x37b513);this['_httpService'][_0x111c33(0x159)]({'interceptor':(_0x45e23b,_0x1962f)=>{const _0x9f90ca=_0x111c33;let _0x1daf6c=_0x45e23b[_0x9f90ca(0x151)];if(_0xaf6c00!=null&&_0xaf6c00['customHeaders']){for(let _0x2206e7 in _0xaf6c00[_0x9f90ca(0x138)])_0x1daf6c[_0x9f90ca(0x12e)](_0x2206e7,_0xaf6c00[_0x9f90ca(0x138)][_0x2206e7]);}return _0x1962f(_0x45e23b);}});}async[_0x1ff046(0x146)](_0x2480db){const _0x1b9410=_0x1ff046;return this[_0x1b9410(0x135)](_0x2480db);}};j=w([C(0x0,_0x5d25a8(_0xc0b514)),C(0x1,_0x5d25a8(_0x3e4613)),C(0x2,_0x64880e),C(0x3,_0x444c53),C(0x4,_0x318517)],j);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 _0xe5fb(_0xcd01c7,_0x1d0f8f){_0xcd01c7=_0xcd01c7-0x1b1;const _0x1f095e=_0x1f09();let _0xe5fb06=_0x1f095e[_0xcd01c7];return _0xe5fb06;}function _0x1f09(){const _0x15ebf0=['share','pipe','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','CollaborationSocketService','1843930LQHzFq','90kZXBRf','toStringTag','close','UniverProCollaborationClient','getConfig','customHeaders','iterator','0.24.0','Module','registerHTTPInterceptor','packageName','@univerjs/network','default','12lwqMWX','3054951dpYJmU','_httpService','toPrimitive','setConfig','ILogService','Injector','COLLABORATION_CLIENT_NODE_CONFIG_KEY','rxjs','prototype','UniverCollaborationClientPlugin','onStarting','amd','function','NodeCollaborationSocketService','Observable','UniverCore','Inject','UniverNetwork','exports','addEventListener','headers','3324jtGdRP','UniverCollaborationClientNodePlugin','UniverProCollaboration','message','ISnapshotServerService','decorate','UniverProCollaborationClientNode','48632TghrPk','WebSocket','length','_registerDependencies','open','Disposable','removeEventListener','object','255Idmltz','symbol','COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','Plugin','462630YQXRdq','version','error','constructor','_configService','createSocket','add','next','@univerjs/core','defineProperty','IConfigService','send','5610FiDDUo','@univerjs-pro/collaboration-client','53748WEmrvs','call','dispose','10481280ChjsJC','_injector'];_0x1f09=function(){return _0x15ebf0;};return _0x1f09();}(function(_0x18c1e7,_0x207104){const _0x58ebf8=_0xe5fb,_0x15a1b7=_0x18c1e7();while(!![]){try{const _0x18bc54=parseInt(_0x58ebf8(0x1da))/0x1*(-parseInt(_0x58ebf8(0x1f1))/0x2)+parseInt(_0x58ebf8(0x1c8))/0x3*(parseInt(_0x58ebf8(0x1c0))/0x4)+-parseInt(_0x58ebf8(0x1d8))/0x5*(-parseInt(_0x58ebf8(0x1b9))/0x6)+-parseInt(_0x58ebf8(0x1cc))/0x7+parseInt(_0x58ebf8(0x1dd))/0x8+-parseInt(_0x58ebf8(0x1f2))/0x9+-parseInt(_0x58ebf8(0x1e4))/0xa*(parseInt(_0x58ebf8(0x1e3))/0xb);if(_0x18bc54===_0x207104)break;else _0x15a1b7['push'](_0x15a1b7['shift']());}catch(_0x50412e){_0x15a1b7['push'](_0x15a1b7['shift']());}}}(_0x1f09,0xb1dab),function(_0x16a0ac,_0x5a300f){const _0x314d6d=_0xe5fb;typeof exports=='object'&&typeof module<'u'?_0x5a300f(exports,require(`@univerjs-pro/collaboration-client`),require(`@univerjs/core`),require(`@univerjs/network`),require(`rxjs`),require(`@univerjs-pro/collaboration`)):typeof define==_0x314d6d(0x1fe)&&define[_0x314d6d(0x1fd)]?define(['exports',_0x314d6d(0x1d9),_0x314d6d(0x1d4),_0x314d6d(0x1ef),_0x314d6d(0x1f9),'@univerjs-pro/collaboration'],_0x5a300f):(_0x16a0ac=typeof globalThis<'u'?globalThis:_0x16a0ac||self,_0x5a300f(_0x16a0ac[_0x314d6d(0x1bf)]={},_0x16a0ac[_0x314d6d(0x1e7)],_0x16a0ac[_0x314d6d(0x1b3)],_0x16a0ac[_0x314d6d(0x1b5)],_0x16a0ac[_0x314d6d(0x1f9)],_0x16a0ac[_0x314d6d(0x1bb)]));}(this,function(_0x3a9b6b,_0x21dcba,_0x4e8485,_0x55b040,_0x1246b3,_0xb38d98){const _0x46f1b9=_0xe5fb;Object['defineProperty'](_0x3a9b6b,Symbol[_0x46f1b9(0x1e5)],{'value':_0x46f1b9(0x1ec)});var _0x103798=(_0x1c2b08,_0x3efe37)=>()=>(_0x3efe37||(_0x1c2b08((_0x3efe37={'exports':{}})['exports'],_0x3efe37),_0x1c2b08=null),_0x3efe37['exports']);let _0x8504a4='collaboration-client-node.config';Symbol(_0x8504a4);let _0x268a3d={};var _0x152b1b='@univerjs-pro/collaboration-client-node',_0x3bc90f=_0x46f1b9(0x1eb),_0x2a9918=_0x103798((_0x1ad94e,_0x290b3c)=>{const _0x1bd5a3=_0x46f1b9;_0x290b3c[_0x1bd5a3(0x1b6)]=function(){throw Error('ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object');};})();function _0xdf5223(_0x5380f4,_0x1b86a4){return function(_0x1014ed,_0x176603){_0x1b86a4(_0x1014ed,_0x176603,_0x5380f4);};}function _0x2e6f6a(_0x5306c0,_0x3e4e53,_0x3630a5,_0x264c5d){const _0x2ecfe2=_0x46f1b9;var _0x563e8f=arguments['length'],_0x194ff9=_0x563e8f<0x3?_0x3e4e53:_0x264c5d===null?_0x264c5d=Object['getOwnPropertyDescriptor'](_0x3e4e53,_0x3630a5):_0x264c5d,_0x300947;if(typeof Reflect=='object'&&typeof Reflect['decorate']==_0x2ecfe2(0x1fe))_0x194ff9=Reflect[_0x2ecfe2(0x1be)](_0x5306c0,_0x3e4e53,_0x3630a5,_0x264c5d);else{for(var _0x3cc6f9=_0x5306c0[_0x2ecfe2(0x1c2)]-0x1;_0x3cc6f9>=0x0;_0x3cc6f9--)(_0x300947=_0x5306c0[_0x3cc6f9])&&(_0x194ff9=(_0x563e8f<0x3?_0x300947(_0x194ff9):_0x563e8f>0x3?_0x300947(_0x3e4e53,_0x3630a5,_0x194ff9):_0x300947(_0x3e4e53,_0x3630a5))||_0x194ff9);}return _0x563e8f>0x3&&_0x194ff9&&Object[_0x2ecfe2(0x1d5)](_0x3e4e53,_0x3630a5,_0x194ff9),_0x194ff9;}let _0x296d97=class extends _0x4e8485[_0x46f1b9(0x1c5)]{constructor(_0xb0ef2b){const _0x56f9a8=_0x46f1b9;super(),this[_0x56f9a8(0x1d0)]=_0xb0ef2b;}[_0x46f1b9(0x1d1)](_0x3f7490){const _0x5d9377=_0x46f1b9;var _0x3a4cf4;let _0xa8654=((_0x3a4cf4=this[_0x5d9377(0x1d0)][_0x5d9377(0x1e8)](_0x21dcba['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY']))==null?void 0x0:_0x3a4cf4[_0x5d9377(0x1e9)])||{};try{let _0x5d3a5b=new _0x2a9918[(_0x5d9377(0x1c1))](_0x3f7490,{'headers':{..._0xa8654}}),_0x228f4d=new _0x4e8485['DisposableCollection']();return{'URL':_0x3f7490,'close':(_0x547e5d,_0xcf6486)=>{const _0x3a1749=_0x5d9377;_0x5d3a5b[_0x3a1749(0x1e6)](_0x547e5d,_0xcf6486),_0x228f4d[_0x3a1749(0x1dc)]();},'send':_0x2c1be9=>{const _0x3df201=_0x5d9377;_0x5d3a5b[_0x3df201(0x1d7)](_0x2c1be9);},'open$':new _0x1246b3[(_0x5d9377(0x1b2))](_0x566dc5=>{const _0x2df113=_0x5d9377;let _0x5a6d7f=_0xc6c2bc=>_0x566dc5[_0x2df113(0x1d3)](_0xc6c2bc);_0x5d3a5b[_0x2df113(0x1b7)](_0x2df113(0x1c4),_0x5a6d7f),_0x228f4d['add']((0x0,_0x4e8485['toDisposable'])(()=>_0x5d3a5b['removeEventListener'](_0x2df113(0x1c4),_0x5a6d7f)));})[_0x5d9377(0x1e0)]((0x0,_0x1246b3[_0x5d9377(0x1df)])()),'close$':new _0x1246b3[(_0x5d9377(0x1b2))](_0x5c4a2e=>{const _0x515aed=_0x5d9377;let _0x5d79be=_0x392e4f=>_0x5c4a2e[_0x515aed(0x1d3)](_0x392e4f);_0x5d3a5b[_0x515aed(0x1b7)]('close',_0x5d79be),_0x228f4d[_0x515aed(0x1d2)]((0x0,_0x4e8485['toDisposable'])(()=>_0x5d3a5b[_0x515aed(0x1c6)]('close',_0x5d79be)));})[_0x5d9377(0x1e0)]((0x0,_0x1246b3['share'])()),'error$':new _0x1246b3[(_0x5d9377(0x1b2))](_0x5c02ba=>{const _0x3942cd=_0x5d9377;let _0x186222=_0x126296=>_0x5c02ba[_0x3942cd(0x1d3)](_0x126296);_0x5d3a5b['addEventListener'](_0x3942cd(0x1ce),_0x186222),_0x228f4d['add']((0x0,_0x4e8485['toDisposable'])(()=>_0x5d3a5b[_0x3942cd(0x1c6)](_0x3942cd(0x1ce),_0x186222)));})[_0x5d9377(0x1e0)]((0x0,_0x1246b3[_0x5d9377(0x1df)])()),'message$':new _0x1246b3[(_0x5d9377(0x1b2))](_0x422978=>{const _0x596514=_0x5d9377;let _0x13919c=_0x353a3e=>_0x422978[_0x596514(0x1d3)](_0x353a3e);_0x5d3a5b[_0x596514(0x1b7)](_0x596514(0x1bc),_0x13919c),_0x228f4d[_0x596514(0x1d2)]((0x0,_0x4e8485['toDisposable'])(()=>_0x5d3a5b[_0x596514(0x1c6)]('message',_0x13919c)));})[_0x5d9377(0x1e0)]((0x0,_0x1246b3['share'])())};}catch(_0x2d9ec5){return console[_0x5d9377(0x1ce)](_0x2d9ec5),null;}}};_0x296d97=_0x2e6f6a([_0xdf5223(0x0,_0x4e8485[_0x46f1b9(0x1d6)])],_0x296d97);function _0x2accf9(_0x4804fe){'@babel/helpers - typeof';const _0x4bb580=_0x46f1b9;return _0x2accf9=typeof Symbol==_0x4bb580(0x1fe)&&typeof Symbol[_0x4bb580(0x1ea)]==_0x4bb580(0x1c9)?function(_0x28da51){return typeof _0x28da51;}:function(_0x593a2c){const _0x30ce33=_0x4bb580;return _0x593a2c&&typeof Symbol==_0x30ce33(0x1fe)&&_0x593a2c[_0x30ce33(0x1cf)]===Symbol&&_0x593a2c!==Symbol[_0x30ce33(0x1fa)]?_0x30ce33(0x1c9):typeof _0x593a2c;},_0x2accf9(_0x4804fe);}function _0x4e5505(_0x129680,_0x643cf2){const _0x222026=_0x46f1b9;if(_0x2accf9(_0x129680)!=_0x222026(0x1c7)||!_0x129680)return _0x129680;var _0x2d1ca7=_0x129680[Symbol[_0x222026(0x1f4)]];if(_0x2d1ca7!==void 0x0){var _0x46c935=_0x2d1ca7[_0x222026(0x1db)](_0x129680,_0x643cf2||_0x222026(0x1f0));if(_0x2accf9(_0x46c935)!=_0x222026(0x1c7))return _0x46c935;throw TypeError('@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.');}return(_0x643cf2==='string'?String:Number)(_0x129680);}function _0x42eba6(_0x280951){const _0x322696=_0x46f1b9;var _0x4f0c0e=_0x4e5505(_0x280951,'string');return _0x2accf9(_0x4f0c0e)==_0x322696(0x1c9)?_0x4f0c0e:_0x4f0c0e+'';}function _0x30d685(_0x9cc2e1,_0xebc51b,_0x44ab76){return(_0xebc51b=_0x42eba6(_0xebc51b))in _0x9cc2e1?Object['defineProperty'](_0x9cc2e1,_0xebc51b,{'value':_0x44ab76,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x9cc2e1[_0xebc51b]=_0x44ab76,_0x9cc2e1;}let _0x43978a=class extends _0x4e8485[_0x46f1b9(0x1cb)]{constructor(_0x440f52=_0x268a3d,_0x5ce0ec,_0x4683d1){const _0xfed05b=_0x46f1b9;super(),this['_configService']=_0x5ce0ec,this[_0xfed05b(0x1de)]=_0x4683d1,this[_0xfed05b(0x1d0)][_0xfed05b(0x1f5)](_0x8504a4,_0x440f52);}[_0x46f1b9(0x1fc)](){const _0x5e5769=_0x46f1b9;this[_0x5e5769(0x1c3)]();}[_0x46f1b9(0x1c3)](){const _0x8dfc73=_0x46f1b9;(0x0,_0x4e8485['registerDependencies'])(this[_0x8dfc73(0x1de)],[[_0x55b040['ISocketService'],{'useClass':_0x296d97}]]);}};_0x30d685(_0x43978a,'pluginName',_0x46f1b9(0x1e1)),_0x30d685(_0x43978a,_0x46f1b9(0x1ee),_0x152b1b),_0x30d685(_0x43978a,_0x46f1b9(0x1cd),_0x3bc90f),_0x43978a=_0x2e6f6a([(0x0,_0x4e8485['DependentOn'])(_0x21dcba[_0x46f1b9(0x1fb)]),_0xdf5223(0x1,_0x4e8485[_0x46f1b9(0x1d6)]),_0xdf5223(0x2,(0x0,_0x4e8485[_0x46f1b9(0x1b4)])(_0x4e8485[_0x46f1b9(0x1f7)]))],_0x43978a);let _0x755934=class extends _0x21dcba[_0x46f1b9(0x1e2)]{constructor(_0x1e9b97,_0x1d0293,_0x3566f7,_0xddf7e1,_0x487403){const _0x19bd44=_0x46f1b9;super(_0x1e9b97,_0x1d0293,_0x3566f7,_0xddf7e1,_0x487403);let _0x42b9d7=this[_0x19bd44(0x1d0)]['getConfig'](_0x21dcba[_0x19bd44(0x1ca)]);this[_0x19bd44(0x1f3)][_0x19bd44(0x1ed)]({'interceptor':(_0xe3bb76,_0x30246f)=>{const _0x25a6b5=_0x19bd44;let _0x466fc0=_0xe3bb76[_0x25a6b5(0x1b8)];if(_0x42b9d7!=null&&_0x42b9d7[_0x25a6b5(0x1e9)]){for(let _0x3802a4 in _0x42b9d7[_0x25a6b5(0x1e9)])_0x466fc0['set'](_0x3802a4,_0x42b9d7[_0x25a6b5(0x1e9)][_0x3802a4]);}return _0x30246f(_0xe3bb76);}});}async[_0x46f1b9(0x1d1)](_0x3f6ce3){return this['_doCreateSocket'](_0x3f6ce3);}};_0x755934=_0x2e6f6a([_0xdf5223(0x0,(0x0,_0x4e8485[_0x46f1b9(0x1b4)])(_0x4e8485[_0x46f1b9(0x1f7)])),_0xdf5223(0x1,(0x0,_0x4e8485[_0x46f1b9(0x1b4)])(_0x55b040['HTTPService'])),_0xdf5223(0x2,_0x4e8485[_0x46f1b9(0x1d6)]),_0xdf5223(0x3,_0x4e8485[_0x46f1b9(0x1f6)]),_0xdf5223(0x4,_0xb38d98[_0x46f1b9(0x1bd)])],_0x755934),_0x3a9b6b[_0x46f1b9(0x1f8)]=_0x8504a4,Object[_0x46f1b9(0x1d5)](_0x3a9b6b,_0x46f1b9(0x1b1),{'enumerable':!0x0,'get':function(){return _0x755934;}}),Object[_0x46f1b9(0x1d5)](_0x3a9b6b,_0x46f1b9(0x1ba),{'enumerable':!0x0,'get':function(){return _0x43978a;}});}));
1
+ function _0x30e7(_0x291f68,_0x2bfdbf){_0x291f68=_0x291f68-0xae;const _0x5afb3a=_0x5afb();let _0x30e7cc=_0x5afb3a[_0x291f68];return _0x30e7cc;}function _0x5afb(){const _0x1844c3=['COLLABORATION_CLIENT_PLUGIN_CONFIG_KEY','exports','@univerjs-pro/collaboration-client','ILogService','@univerjs-pro/collaboration-client-node','_configService','toPrimitive','add','customHeaders','next','CollaborationSocketService','0.25.0-insiders.20260608-e4336f7','headers','94NaNoId','prototype','set','symbol','UniverNetwork','Module','onStarting','_httpService','packageName','collaboration-client-node.config','object','UniverCollaborationClientNodePlugin','3288546kHWgJo','Observable','share','@univerjs/network','Inject','_injector','decorate','UniverProCollaboration','UniverCollaborationClientPlugin','WebSocket','3877UfjGtz','57618jzDgWm','close','_doCreateSocket','Plugin','message','toDisposable','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','toStringTag','rxjs','createSocket','DisposableCollection','registerHTTPInterceptor','defineProperty','open','getConfig','DependentOn','string','NodeCollaborationSocketService','4028283VTcmOt','2342985izcjDH','2264316zLCODw','Injector','length','version','UniverProCollaborationClientNode','3897YBPIfr','addEventListener','pipe','UNIVER_COLLABORATION_CLIENT_NODE_PLUGIN','UniverCore','amd','constructor','UniverProCollaborationClient','call','error','getOwnPropertyDescriptor','function','_registerDependencies','IConfigService','removeEventListener','dispose','10616JruAGx','iterator','HTTPService','@univerjs-pro/collaboration'];_0x5afb=function(){return _0x1844c3;};return _0x5afb();}(function(_0x82e302,_0x5dffeb){const _0x19d4c3=_0x30e7,_0x541b77=_0x82e302();while(!![]){try{const _0x30baeb=-parseInt(_0x19d4c3(0xae))/0x1*(parseInt(_0x19d4c3(0xe9))/0x2)+parseInt(_0x19d4c3(0xaf))/0x3+-parseInt(_0x19d4c3(0xc3))/0x4+parseInt(_0x19d4c3(0xc2))/0x5+-parseInt(_0x19d4c3(0xf5))/0x6+parseInt(_0x19d4c3(0xc1))/0x7+parseInt(_0x19d4c3(0xd8))/0x8*(parseInt(_0x19d4c3(0xc8))/0x9);if(_0x30baeb===_0x5dffeb)break;else _0x541b77['push'](_0x541b77['shift']());}catch(_0x271498){_0x541b77['push'](_0x541b77['shift']());}}}(_0x5afb,0x535e2),function(_0x4060d5,_0x1f73d9){const _0x3bc796=_0x30e7;typeof exports==_0x3bc796(0xf3)&&typeof module<'u'?_0x1f73d9(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/network'),require('rxjs'),require('@univerjs-pro/collaboration')):typeof define==_0x3bc796(0xd3)&&define[_0x3bc796(0xcd)]?define([_0x3bc796(0xdd),_0x3bc796(0xde),'@univerjs/core',_0x3bc796(0xf8),_0x3bc796(0xb7),_0x3bc796(0xdb)],_0x1f73d9):(_0x4060d5=typeof globalThis<'u'?globalThis:_0x4060d5||self,_0x1f73d9(_0x4060d5[_0x3bc796(0xc7)]={},_0x4060d5[_0x3bc796(0xcf)],_0x4060d5[_0x3bc796(0xcc)],_0x4060d5[_0x3bc796(0xed)],_0x4060d5[_0x3bc796(0xb7)],_0x4060d5[_0x3bc796(0xfc)]));}(this,function(_0xde7aaa,_0x5c2ab0,_0x50e5c2,_0x121709,_0x1fdb82,_0x9e8420){const _0x131054=_0x30e7;Object['defineProperty'](_0xde7aaa,Symbol[_0x131054(0xb6)],{'value':_0x131054(0xee)});var _0x2f5c16=(_0xa8f75a,_0x5f053e)=>()=>(_0x5f053e||(_0xa8f75a((_0x5f053e={'exports':{}})['exports'],_0x5f053e),_0xa8f75a=null),_0x5f053e[_0x131054(0xdd)]);let _0x3bd48b=_0x131054(0xf2),_0xf9a636={};var _0x4ea719=_0x131054(0xe0),_0x7aa2fd=_0x131054(0xe7),_0x17e7f0=_0x2f5c16((_0xfb1020,_0xd40f2a)=>{_0xd40f2a['exports']=function(){throw Error('ws\x20does\x20not\x20work\x20in\x20the\x20browser.\x20Browser\x20clients\x20must\x20use\x20the\x20native\x20WebSocket\x20object');};})();function _0x334d9f(_0x4406d8,_0x3e8cc5){return function(_0x4dfc64,_0x4c147f){_0x3e8cc5(_0x4dfc64,_0x4c147f,_0x4406d8);};}function _0x41f8f2(_0x75cc85,_0x34c00b,_0x541353,_0x32e0e8){const _0x22a0d3=_0x131054;var _0x588e25=arguments[_0x22a0d3(0xc5)],_0x3cfd47=_0x588e25<0x3?_0x34c00b:_0x32e0e8===null?_0x32e0e8=Object[_0x22a0d3(0xd2)](_0x34c00b,_0x541353):_0x32e0e8,_0x1e94b4;if(typeof Reflect==_0x22a0d3(0xf3)&&typeof Reflect[_0x22a0d3(0xfb)]==_0x22a0d3(0xd3))_0x3cfd47=Reflect[_0x22a0d3(0xfb)](_0x75cc85,_0x34c00b,_0x541353,_0x32e0e8);else{for(var _0x579d8e=_0x75cc85[_0x22a0d3(0xc5)]-0x1;_0x579d8e>=0x0;_0x579d8e--)(_0x1e94b4=_0x75cc85[_0x579d8e])&&(_0x3cfd47=(_0x588e25<0x3?_0x1e94b4(_0x3cfd47):_0x588e25>0x3?_0x1e94b4(_0x34c00b,_0x541353,_0x3cfd47):_0x1e94b4(_0x34c00b,_0x541353))||_0x3cfd47);}return _0x588e25>0x3&&_0x3cfd47&&Object[_0x22a0d3(0xbb)](_0x34c00b,_0x541353,_0x3cfd47),_0x3cfd47;}let _0xf45bf9=class extends _0x50e5c2['Disposable']{constructor(_0x5448d3){const _0x3efa57=_0x131054;super(),this[_0x3efa57(0xe1)]=_0x5448d3;}[_0x131054(0xb8)](_0x354f9e){const _0x22f240=_0x131054;var _0x289270;let _0x594d12=((_0x289270=this[_0x22f240(0xe1)][_0x22f240(0xbd)](_0x5c2ab0[_0x22f240(0xdc)]))==null?void 0x0:_0x289270[_0x22f240(0xe4)])||{};try{let _0x127082=new _0x17e7f0[(_0x22f240(0xfe))](_0x354f9e,{'headers':{..._0x594d12}}),_0x4fca1d=new _0x50e5c2[(_0x22f240(0xb9))]();return{'URL':_0x354f9e,'close':(_0x249104,_0x3f1709)=>{const _0x38e197=_0x22f240;_0x127082[_0x38e197(0xb0)](_0x249104,_0x3f1709),_0x4fca1d[_0x38e197(0xd7)]();},'send':_0x55ba17=>{_0x127082['send'](_0x55ba17);},'open$':new _0x1fdb82['Observable'](_0x1d6081=>{const _0xc02fee=_0x22f240;let _0x1657e9=_0x5db1da=>_0x1d6081[_0xc02fee(0xe5)](_0x5db1da);_0x127082[_0xc02fee(0xc9)](_0xc02fee(0xbc),_0x1657e9),_0x4fca1d[_0xc02fee(0xe3)]((0x0,_0x50e5c2['toDisposable'])(()=>_0x127082[_0xc02fee(0xd6)](_0xc02fee(0xbc),_0x1657e9)));})['pipe']((0x0,_0x1fdb82[_0x22f240(0xf7)])()),'close$':new _0x1fdb82[(_0x22f240(0xf6))](_0x47285d=>{const _0x386d39=_0x22f240;let _0x44cbae=_0xf9639b=>_0x47285d[_0x386d39(0xe5)](_0xf9639b);_0x127082[_0x386d39(0xc9)](_0x386d39(0xb0),_0x44cbae),_0x4fca1d['add']((0x0,_0x50e5c2[_0x386d39(0xb4)])(()=>_0x127082['removeEventListener'](_0x386d39(0xb0),_0x44cbae)));})[_0x22f240(0xca)]((0x0,_0x1fdb82[_0x22f240(0xf7)])()),'error$':new _0x1fdb82[(_0x22f240(0xf6))](_0x3055cb=>{const _0x16d4a3=_0x22f240;let _0x4cd189=_0x74d327=>_0x3055cb['next'](_0x74d327);_0x127082[_0x16d4a3(0xc9)](_0x16d4a3(0xd1),_0x4cd189),_0x4fca1d[_0x16d4a3(0xe3)]((0x0,_0x50e5c2['toDisposable'])(()=>_0x127082['removeEventListener'](_0x16d4a3(0xd1),_0x4cd189)));})[_0x22f240(0xca)]((0x0,_0x1fdb82[_0x22f240(0xf7)])()),'message$':new _0x1fdb82[(_0x22f240(0xf6))](_0x49ffa9=>{const _0x4923a2=_0x22f240;let _0x12e959=_0x39097d=>_0x49ffa9[_0x4923a2(0xe5)](_0x39097d);_0x127082[_0x4923a2(0xc9)](_0x4923a2(0xb3),_0x12e959),_0x4fca1d[_0x4923a2(0xe3)]((0x0,_0x50e5c2[_0x4923a2(0xb4)])(()=>_0x127082[_0x4923a2(0xd6)]('message',_0x12e959)));})[_0x22f240(0xca)]((0x0,_0x1fdb82[_0x22f240(0xf7)])())};}catch(_0x5c37be){return console[_0x22f240(0xd1)](_0x5c37be),null;}}};_0xf45bf9=_0x41f8f2([_0x334d9f(0x0,_0x50e5c2['IConfigService'])],_0xf45bf9);function _0x52a32d(_0x51276e){'@babel/helpers - typeof';const _0x2fb4c5=_0x131054;return _0x52a32d=typeof Symbol==_0x2fb4c5(0xd3)&&typeof Symbol[_0x2fb4c5(0xd9)]==_0x2fb4c5(0xec)?function(_0x1cdd79){return typeof _0x1cdd79;}:function(_0x3a8ff8){const _0x5c486f=_0x2fb4c5;return _0x3a8ff8&&typeof Symbol==_0x5c486f(0xd3)&&_0x3a8ff8[_0x5c486f(0xce)]===Symbol&&_0x3a8ff8!==Symbol[_0x5c486f(0xea)]?_0x5c486f(0xec):typeof _0x3a8ff8;},_0x52a32d(_0x51276e);}function _0x1a4c27(_0x3d20c6,_0x34d83c){const _0x2b9d2d=_0x131054;if(_0x52a32d(_0x3d20c6)!=_0x2b9d2d(0xf3)||!_0x3d20c6)return _0x3d20c6;var _0xb5ac34=_0x3d20c6[Symbol[_0x2b9d2d(0xe2)]];if(_0xb5ac34!==void 0x0){var _0x51a0bf=_0xb5ac34[_0x2b9d2d(0xd0)](_0x3d20c6,_0x34d83c||'default');if(_0x52a32d(_0x51a0bf)!=_0x2b9d2d(0xf3))return _0x51a0bf;throw TypeError(_0x2b9d2d(0xb5));}return(_0x34d83c===_0x2b9d2d(0xbf)?String:Number)(_0x3d20c6);}function _0x5a84ec(_0x5e36a0){const _0x1c5885=_0x131054;var _0x1a071b=_0x1a4c27(_0x5e36a0,_0x1c5885(0xbf));return _0x52a32d(_0x1a071b)==_0x1c5885(0xec)?_0x1a071b:_0x1a071b+'';}function _0x2c076a(_0x45e932,_0x103ca3,_0x5e0f01){const _0x3db9fb=_0x131054;return(_0x103ca3=_0x5a84ec(_0x103ca3))in _0x45e932?Object[_0x3db9fb(0xbb)](_0x45e932,_0x103ca3,{'value':_0x5e0f01,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x45e932[_0x103ca3]=_0x5e0f01,_0x45e932;}let _0x1e06d0=class extends _0x50e5c2[_0x131054(0xb2)]{constructor(_0x362f24=_0xf9a636,_0x54d6c8,_0x4f243e){const _0x39e0e3=_0x131054;super(),this[_0x39e0e3(0xe1)]=_0x54d6c8,this[_0x39e0e3(0xfa)]=_0x4f243e,this[_0x39e0e3(0xe1)]['setConfig'](_0x3bd48b,_0x362f24);}[_0x131054(0xef)](){const _0x1b96df=_0x131054;this[_0x1b96df(0xd4)]();}[_0x131054(0xd4)](){(0x0,_0x50e5c2['registerDependencies'])(this['_injector'],[[_0x121709['ISocketService'],{'useClass':_0xf45bf9}]]);}};_0x2c076a(_0x1e06d0,'pluginName',_0x131054(0xcb)),_0x2c076a(_0x1e06d0,_0x131054(0xf1),_0x4ea719),_0x2c076a(_0x1e06d0,_0x131054(0xc6),_0x7aa2fd),_0x1e06d0=_0x41f8f2([(0x0,_0x50e5c2[_0x131054(0xbe)])(_0x5c2ab0[_0x131054(0xfd)]),_0x334d9f(0x1,_0x50e5c2['IConfigService']),_0x334d9f(0x2,(0x0,_0x50e5c2[_0x131054(0xf9)])(_0x50e5c2[_0x131054(0xc4)]))],_0x1e06d0);let _0x3d08f1=class extends _0x5c2ab0[_0x131054(0xe6)]{constructor(_0x27cc54,_0x13e209,_0x1c5f0f,_0x431c9d,_0x47b64a){const _0x1a83a9=_0x131054;super(_0x27cc54,_0x13e209,_0x1c5f0f,_0x431c9d,_0x47b64a);let _0x456d99=this[_0x1a83a9(0xe1)][_0x1a83a9(0xbd)](_0x5c2ab0[_0x1a83a9(0xdc)]);this[_0x1a83a9(0xf0)][_0x1a83a9(0xba)]({'interceptor':(_0x213166,_0x1385ce)=>{const _0x51103c=_0x1a83a9;let _0x506a2a=_0x213166[_0x51103c(0xe8)];if(_0x456d99!=null&&_0x456d99[_0x51103c(0xe4)]){for(let _0x4dd68b in _0x456d99[_0x51103c(0xe4)])_0x506a2a[_0x51103c(0xeb)](_0x4dd68b,_0x456d99['customHeaders'][_0x4dd68b]);}return _0x1385ce(_0x213166);}});}async[_0x131054(0xb8)](_0x209478){const _0x430baa=_0x131054;return this[_0x430baa(0xb1)](_0x209478);}};_0x3d08f1=_0x41f8f2([_0x334d9f(0x0,(0x0,_0x50e5c2[_0x131054(0xf9)])(_0x50e5c2[_0x131054(0xc4)])),_0x334d9f(0x1,(0x0,_0x50e5c2['Inject'])(_0x121709[_0x131054(0xda)])),_0x334d9f(0x2,_0x50e5c2[_0x131054(0xd5)]),_0x334d9f(0x3,_0x50e5c2[_0x131054(0xdf)]),_0x334d9f(0x4,_0x9e8420['ISnapshotServerService'])],_0x3d08f1),_0xde7aaa['COLLABORATION_CLIENT_NODE_CONFIG_KEY']=_0x3bd48b,Object['defineProperty'](_0xde7aaa,_0x131054(0xc0),{'enumerable':!0x0,'get':function(){return _0x3d08f1;}}),Object['defineProperty'](_0xde7aaa,_0x131054(0xf4),{'enumerable':!0x0,'get':function(){return _0x1e06d0;}});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/collaboration-client-node",
3
- "version": "0.24.0",
3
+ "version": "0.25.0-insiders.20260608-e4336f7",
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-client": "0.24.0",
56
- "@univerjs/network": "0.24.0",
57
- "@univerjs/core": "0.24.0",
58
- "@univerjs-pro/collaboration": "0.24.0"
55
+ "@univerjs/core": "0.25.0-insiders.20260608-e4336f7",
56
+ "@univerjs/network": "0.25.0-insiders.20260608-e4336f7",
57
+ "@univerjs-pro/collaboration-client": "0.25.0-insiders.20260608-e4336f7",
58
+ "@univerjs-pro/collaboration": "0.25.0-insiders.20260608-e4336f7"
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.24.0"
64
+ "vitest": "^4.1.8",
65
+ "@univerjs-infra/shared": "0.25.0"
66
66
  },
67
67
  "scripts": {
68
68
  "test": "vitest run",