@univerjs-pro/live-share 0.15.0-insiders.20251227-c108ce3 → 0.15.0-insiders.20260107-3441c7a
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/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +11 -11
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';function _0x3bb2(){const _0x68999=['_injector','getLiveShareCoordinatorSync','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','836220BBsoWM','SetScrollOperation','startFollowing','FRange','14408MKfqoR','1177975sitrvk','getActiveWorkbook','extend','get','syncExecuteCommand','tryStartPresenting','303730LQiIqc','getId','FEnum','34859MmFQDN','getUnitId','stopFollowing','getSheetId','33468zZmirW','LiveShareStatusEnum','144RnzZQd','144222cZpldZ','startPresenting','LiveShareController','getStatus','startRow','FUniver','executeCommand','LiveShareStatus','No\x20active\x20workbook\x20found.'];_0x3bb2=function(){return _0x68999;};return _0x3bb2();}const _0x531d44=_0x5615;(function(_0x10a67a,_0x3f4810){const _0x110167=_0x5615,_0x39163a=_0x10a67a();while(!![]){try{const _0x22d1ac=parseInt(_0x110167(0x1f4))/0x1+-parseInt(_0x110167(0x207))/0x2+parseInt(_0x110167(0x1fa))/0x3*(parseInt(_0x110167(0x1f8))/0x4)+parseInt(_0x110167(0x1eb))/0x5+parseInt(_0x110167(0x1fb))/0x6+-parseInt(_0x110167(0x1f1))/0x7+-parseInt(_0x110167(0x1ea))/0x8;if(_0x22d1ac===_0x3f4810)break;else _0x39163a['push'](_0x39163a['shift']());}catch(_0x162d65){_0x39163a['push'](_0x39163a['shift']());}}}(_0x3bb2,0x38d66));const n=require('@univerjs-pro/live-share'),g=require('@univerjs/engine-render'),u=require('@univerjs/sheets'),f=require('@univerjs/sheets-ui'),d=require('@univerjs/sheets/facade'),a=require('@univerjs/core/facade');class w extends d[_0x531d44(0x1e9)]{['_initialize'](_0x34e6ea,_0xf299e9,_0x5cdc1,_0x2c4fd4,_0x5ec672){const _0x32ce9e=_0x531d44,_0x70d915=_0x34e6ea[_0x32ce9e(0x1ee)](n[_0x32ce9e(0x1fd)]),_0x28b62d=_0x34e6ea[_0x32ce9e(0x1ee)](g['IRenderManagerService']),_0x468743=_0xf299e9['getUnitId'](),_0x2404d2=_0xf299e9['getActiveSheet'](),_0x35abc7=_0x70d915[_0x32ce9e(0x205)](_0x468743);(_0x35abc7==null?void 0x0:_0x35abc7['getStatus']())!==n['LiveShareStatus']['PRESENTING']||(_0x5cdc1['getSheetId']()!==_0x2404d2[_0x32ce9e(0x1f7)]()&&this['_commandService'][_0x32ce9e(0x201)](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x468743,'subUnitId':_0x5cdc1[_0x32ce9e(0x1f7)]()}),!_0x28b62d['getRenderById'](_0x468743))||_0x5ec672[_0x32ce9e(0x1ef)](f[_0x32ce9e(0x208)]['id'],{'unitId':_0xf299e9[_0x32ce9e(0x1f5)](),'sheetId':_0x5cdc1['getSheetId'](),'sheetViewStartRow':_0x2c4fd4[_0x32ce9e(0x1ff)],'sheetViewStartColumn':_0x2c4fd4['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x531d44(0x1e9)][_0x531d44(0x1ed)](w);function _0x5615(_0xee5cc8,_0x982139){_0xee5cc8=_0xee5cc8-0x1e8;const _0x3bb2f0=_0x3bb2();let _0x5615a9=_0x3bb2f0[_0xee5cc8];return _0x5615a9;}class C extends a[_0x531d44(0x200)]{['getLiveShareStatus'](){const _0x175f46=_0x531d44;var _0x2d7aa9,_0x16c3e0;const _0x5b6d57=this[_0x175f46(0x204)][_0x175f46(0x1ee)](n[_0x175f46(0x1fd)]),_0x2b50ba=(_0x2d7aa9=this[_0x175f46(0x1ec)]())==null?void 0x0:_0x2d7aa9[_0x175f46(0x1f2)]();if(!_0x2b50ba)throw new Error('No\x20active\x20workbook\x20found.');const _0x220efc=_0x5b6d57['getLiveShareCoordinatorSync'](_0x2b50ba);return(_0x16c3e0=_0x220efc==null?void 0x0:_0x220efc[_0x175f46(0x1fe)]())!=null?_0x16c3e0:n[_0x175f46(0x202)]['IDLE'];}['startFollowing'](){const _0x47d04d=_0x531d44;var _0xe1db39;const _0x40c162=this[_0x47d04d(0x204)][_0x47d04d(0x1ee)](n['LiveShareController']),_0xac0a34=(_0xe1db39=this[_0x47d04d(0x1ec)]())==null?void 0x0:_0xe1db39[_0x47d04d(0x1f2)]();if(!_0xac0a34)throw new Error(_0x47d04d(0x203));const _0x1342b6=_0x40c162[_0x47d04d(0x205)](_0xac0a34);if(!_0x1342b6)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1342b6[_0x47d04d(0x1e8)]();}[_0x531d44(0x1f6)](){const _0x2675d1=_0x531d44;var _0x34afed;const _0x117ac8=this['_injector'][_0x2675d1(0x1ee)](n[_0x2675d1(0x1fd)]),_0x26a53e=(_0x34afed=this[_0x2675d1(0x1ec)]())==null?void 0x0:_0x34afed[_0x2675d1(0x1f2)]();if(!_0x26a53e)throw new Error(_0x2675d1(0x203));const _0x1b23a3=_0x117ac8['getLiveShareCoordinatorSync'](_0x26a53e);if(!_0x1b23a3)throw new Error(_0x2675d1(0x206));_0x1b23a3[_0x2675d1(0x1f6)]();}[_0x531d44(0x1fc)](){const _0x2533a5=_0x531d44;var _0x2144fb;const _0x5692d9=this['_injector'][_0x2533a5(0x1ee)](n[_0x2533a5(0x1fd)]),_0x22a04f=(_0x2144fb=this[_0x2533a5(0x1ec)]())==null?void 0x0:_0x2144fb[_0x2533a5(0x1f2)]();if(!_0x22a04f)throw new Error(_0x2533a5(0x203));const _0x1de0be=_0x5692d9[_0x2533a5(0x205)](_0x22a04f);if(!_0x1de0be)throw new Error(_0x2533a5(0x206));_0x1de0be[_0x2533a5(0x1f0)]();}['stopPresenting'](){const _0x215a1e=_0x531d44;var _0x371e20;const _0x4893c8=this['_injector'][_0x215a1e(0x1ee)](n[_0x215a1e(0x1fd)]),_0x41adf9=(_0x371e20=this[_0x215a1e(0x1ec)]())==null?void 0x0:_0x371e20['getId']();if(!_0x41adf9)throw new Error(_0x215a1e(0x203));const _0xc15524=_0x4893c8[_0x215a1e(0x205)](_0x41adf9);if(!_0xc15524)throw new Error(_0x215a1e(0x206));_0xc15524['stopPresenting']();}}a[_0x531d44(0x200)][_0x531d44(0x1ed)](C);class L extends a[_0x531d44(0x1f3)]{get[_0x531d44(0x1f9)](){const _0xa08a3d=_0x531d44;return n[_0xa08a3d(0x202)];}}a[_0x531d44(0x1f3)][_0x531d44(0x1ed)](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x3cbd18=_0xdb56;(function(_0x36e2cf,_0x15f657){const _0x56c847=_0xdb56,_0x3da28a=_0x36e2cf();while(!![]){try{const _0x4c7164=-parseInt(_0x56c847(0x1b7))/0x1+-parseInt(_0x56c847(0x21c))/0x2+-parseInt(_0x56c847(0x241))/0x3*(parseInt(_0x56c847(0x191))/0x4)+-parseInt(_0x56c847(0x24a))/0x5+parseInt(_0x56c847(0x24d))/0x6*(-parseInt(_0x56c847(0x23c))/0x7)+-parseInt(_0x56c847(0x254))/0x8+parseInt(_0x56c847(0x1db))/0x9;if(_0x4c7164===_0x15f657)break;else _0x3da28a['push'](_0x3da28a['shift']());}catch(_0x1473fe){_0x3da28a['push'](_0x3da28a['shift']());}}}(_0x46af,0xe3442));var T=Object[_0x3cbd18(0x24f)],U=(_0x4e8e07,_0xf3ca13,_0x1b69b1)=>_0xf3ca13 in _0x4e8e07?T(_0x4e8e07,_0xf3ca13,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b69b1}):_0x4e8e07[_0xf3ca13]=_0x1b69b1,_=(_0x1bce6e,_0x40d9d3,_0x308f8c)=>U(_0x1bce6e,typeof _0x40d9d3!='symbol'?_0x40d9d3+'':_0x40d9d3,_0x308f8c);Object[_0x3cbd18(0x24f)](exports,Symbol[_0x3cbd18(0x193)],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x4215d3,..._0x2e9136}){const _0xb22fc7=_0x3cbd18,{icon:_0x2aa161,id:_0x1a3a68,className:_0x103e71,extend:_0x34dbc7,..._0x4af05f}=_0x2e9136,_0x2dda5d=('univerjs-icon\x20univerjs-icon-'+_0x1a3a68+'\x20'+(_0x103e71||''))[_0xb22fc7(0x1f0)](),_0x39deac=v['useRef']('_'+H());return j(_0x2aa161,''+_0x1a3a68,{'defIds':_0x2aa161[_0xb22fc7(0x229)],'idSuffix':_0x39deac[_0xb22fc7(0x1ff)]},{'ref':_0x4215d3,'className':_0x2dda5d,..._0x4af05f},_0x34dbc7);}function j(_0x5c013e,_0x2f118e,_0xe5daf6,_0x12e3b4,_0x13d428){const _0x2521d0=_0x3cbd18;return v['createElement'](_0x5c013e[_0x2521d0(0x1ee)],{'key':_0x2f118e,...y(_0x5c013e,_0xe5daf6,_0x13d428),..._0x12e3b4},(F(_0x5c013e,_0xe5daf6)[_0x2521d0(0x1b3)]||[])[_0x2521d0(0x200)]((_0x3bc93e,_0x3631a2)=>j(_0x3bc93e,_0x2f118e+'-'+_0x5c013e[_0x2521d0(0x1ee)]+'-'+_0x3631a2,_0xe5daf6,void 0x0,_0x13d428)));}function y(_0x30d185,_0x476f0b,_0xe4921){const _0xc6feac=_0x3cbd18,_0x40e7f8={..._0x30d185[_0xc6feac(0x19b)]};_0xe4921!=null&&_0xe4921[_0xc6feac(0x24e)]&&_0x40e7f8['fill']==='colorChannel1'&&(_0x40e7f8[_0xc6feac(0x1e1)]=_0xe4921['colorChannel1']),_0x30d185[_0xc6feac(0x1ee)]===_0xc6feac(0x256)&&_0x40e7f8['id']&&(_0x40e7f8['id']=_0x40e7f8['id']+_0x476f0b[_0xc6feac(0x23a)]),Object[_0xc6feac(0x25a)](_0x40e7f8)[_0xc6feac(0x251)](([_0x343f6f,_0x28a4fa])=>{const _0x59304d=_0xc6feac;_0x343f6f===_0x59304d(0x256)&&typeof _0x28a4fa=='string'&&(_0x40e7f8[_0x343f6f]=_0x28a4fa['replace'](/url\(#(.*)\)/,'url(#$1'+_0x476f0b[_0x59304d(0x23a)]+')'));});const {defIds:_0x3335f6}=_0x476f0b;return!_0x3335f6||_0x3335f6['length']===0x0||(_0x30d185[_0xc6feac(0x1ee)]===_0xc6feac(0x1b1)&&_0x40e7f8[_0xc6feac(0x230)]&&(_0x40e7f8[_0xc6feac(0x230)]=_0x40e7f8['xlink:href']+_0x476f0b[_0xc6feac(0x23a)]),Object[_0xc6feac(0x25a)](_0x40e7f8)[_0xc6feac(0x251)](([_0x55e75b,_0x38d68d])=>{const _0x174858=_0xc6feac;typeof _0x38d68d=='string'&&(_0x40e7f8[_0x55e75b]=_0x38d68d[_0x174858(0x1c6)](/url\(#(.*)\)/,_0x174858(0x249)+_0x476f0b[_0x174858(0x23a)]+')'));})),_0x40e7f8;}function F(_0x58ff52,_0x280a6b){const _0x75a0d1=_0x3cbd18;var _0x3fe792;const {defIds:_0x50d344}=_0x280a6b;return!_0x50d344||_0x50d344['length']===0x0?_0x58ff52:_0x58ff52[_0x75a0d1(0x1ee)]===_0x75a0d1(0x1b6)&&((_0x3fe792=_0x58ff52[_0x75a0d1(0x1b3)])!=null&&_0x3fe792[_0x75a0d1(0x187)])?{..._0x58ff52,'children':_0x58ff52[_0x75a0d1(0x1b3)][_0x75a0d1(0x200)](_0x40c107=>typeof _0x40c107[_0x75a0d1(0x19b)]['id']==_0x75a0d1(0x1b4)&&_0x50d344&&_0x50d344[_0x75a0d1(0x1a9)](_0x40c107[_0x75a0d1(0x19b)]['id'])?{..._0x40c107,'attrs':{..._0x40c107[_0x75a0d1(0x19b)],'id':_0x40c107[_0x75a0d1(0x19b)]['id']+_0x280a6b[_0x75a0d1(0x23a)]}}:_0x40c107)}:_0x58ff52;}function H(){const _0x4fad1f=_0x3cbd18;return Math[_0x4fad1f(0x220)]()[_0x4fad1f(0x1f8)](0x24)['substring'](0x2,0x8);}x[_0x3cbd18(0x1f2)]='UniverIcon';const V={'tag':_0x3cbd18(0x1d2),'attrs':{'xmlns':_0x3cbd18(0x1e6),'fill':_0x3cbd18(0x1c2),'viewBox':_0x3cbd18(0x22f),'width':_0x3cbd18(0x225),'height':_0x3cbd18(0x225)},'children':[{'tag':_0x3cbd18(0x1cb),'attrs':{'fill':_0x3cbd18(0x22a),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x3cbd18(0x1cb),'attrs':{'fill':_0x3cbd18(0x22a),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x3cbd18(0x212),'clipRule':_0x3cbd18(0x212)}}]},R=v[_0x3cbd18(0x186)](function(_0x5282ee,_0x15156b){const _0x343530=_0x3cbd18;return v[_0x343530(0x20f)](x,Object[_0x343530(0x1fc)]({},_0x5282ee,{'id':_0x343530(0x234),'ref':_0x15156b,'icon':V}));});R[_0x3cbd18(0x1f2)]=_0x3cbd18(0x1a0);class E extends o['Disposable']{constructor(){const _0x32f5bc=_0x3cbd18;super(...arguments),_(this,_0x32f5bc(0x242),new Set()),_(this,_0x32f5bc(0x19a),new Set());}[_0x3cbd18(0x250)](_0x50d123){const _0x581880=_0x3cbd18;return this[_0x581880(0x242)]['add'](_0x50d123),o[_0x581880(0x1d0)](()=>this[_0x581880(0x242)][_0x581880(0x1a3)](_0x50d123));}[_0x3cbd18(0x1df)](_0x2d5b3c){const _0xc4e421=_0x3cbd18;return this[_0xc4e421(0x19a)][_0xc4e421(0x199)](_0x2d5b3c),o[_0xc4e421(0x1d0)](()=>this['_reporters'][_0xc4e421(0x1a3)](_0x2d5b3c));}['shouldShareOperation'](_0x16c33f){const _0x17d3eb=_0x3cbd18;return this[_0x17d3eb(0x242)][_0x17d3eb(0x238)](_0x16c33f);}[_0x3cbd18(0x1b0)](_0x3d027f){const _0x41df03=_0x3cbd18;return Array[_0x41df03(0x239)](this[_0x41df03(0x19a)])[_0x41df03(0x200)](_0x326dc8=>_0x326dc8(_0x3d027f));}}var M=Object[_0x3cbd18(0x23f)],P=(_0x2a0987,_0x43692f,_0x102cd7,_0x3b589d)=>{const _0x53af20=_0x3cbd18;for(var _0x4a3c0a=_0x3b589d>0x1?void 0x0:_0x3b589d?M(_0x43692f,_0x102cd7):_0x43692f,_0x450a81=_0x2a0987[_0x53af20(0x187)]-0x1,_0x167bfd;_0x450a81>=0x0;_0x450a81--)(_0x167bfd=_0x2a0987[_0x450a81])&&(_0x4a3c0a=_0x167bfd(_0x4a3c0a)||_0x4a3c0a);return _0x4a3c0a;},S=(_0x480d96,_0x24584f)=>(_0x2b8074,_0x525f11)=>_0x24584f(_0x2b8074,_0x525f11,_0x480d96);function _0xdb56(_0x20a675,_0x16f2b1){_0x20a675=_0x20a675-0x185;const _0x46af1c=_0x46af();let _0xdb5632=_0x46af1c[_0x20a675];return _0xdb5632;}exports[_0x3cbd18(0x247)]=class extends o[_0x3cbd18(0x1d6)]{constructor(_0x1be053,_0x37c8a2,_0x1a281b){const _0x5064e7=_0x3cbd18;super(),_(this,'_entities',new Map()),(this[_0x5064e7(0x188)]=_0x1be053,this['_injector']=_0x37c8a2,this[_0x5064e7(0x1a6)]=_0x1a281b,this[_0x5064e7(0x1ce)]());}async['getLiveShareCoordinator'](_0x399d90){const _0x50b88a=_0x3cbd18;return this[_0x50b88a(0x21a)][_0x50b88a(0x238)](_0x399d90)||await this['_startLiveShareCoordinator'](_0x399d90),this[_0x50b88a(0x21a)][_0x50b88a(0x217)](_0x399d90);}['getLiveShareCoordinatorSync'](_0x25b9a0){const _0x126231=_0x3cbd18;var _0x5aff42;return(_0x5aff42=this[_0x126231(0x21a)][_0x126231(0x217)](_0x25b9a0))!=null?_0x5aff42:null;}['_init'](){const _0x1eb217=_0x3cbd18;this[_0x1eb217(0x188)][_0x1eb217(0x1ef)](o[_0x1eb217(0x223)]['UNIVER_SHEET'])[_0x1eb217(0x1b8)](I[_0x1eb217(0x215)](this[_0x1eb217(0x1f6)]))['subscribe'](async _0x606503=>{const _0x2515a4=_0x1eb217,_0x9f481a=_0x606503[_0x2515a4(0x22e)]();this['_entities'][_0x2515a4(0x238)](_0x9f481a)||this[_0x2515a4(0x233)](_0x9f481a);}),this[_0x1eb217(0x188)]['getTypeOfUnitDisposed$'](o[_0x1eb217(0x223)][_0x1eb217(0x1c7)])[_0x1eb217(0x1b8)](I[_0x1eb217(0x215)](this[_0x1eb217(0x1f6)]))[_0x1eb217(0x22c)](_0x5e627b=>{const _0x283413=_0x1eb217,_0x57024c=_0x5e627b[_0x283413(0x22e)](),_0x33f9d8=this[_0x283413(0x21a)]['get'](_0x57024c);_0x33f9d8==null||_0x33f9d8[_0x283413(0x23e)]();});}async['_startLiveShareCoordinator'](_0x2b0842){const _0x3daf16=_0x3cbd18,_0x30e7e9=await this[_0x3daf16(0x1a6)][_0x3daf16(0x224)](_0x2b0842),_0x43ad06=this[_0x3daf16(0x19f)][_0x3daf16(0x1ba)](exports[_0x3daf16(0x240)],_0x2b0842,_0x30e7e9);return _0x43ad06[_0x3daf16(0x211)](),this['_entities'][_0x3daf16(0x21e)](_0x2b0842,_0x43ad06),_0x43ad06;}},exports[_0x3cbd18(0x247)]=P([S(0x0,o[_0x3cbd18(0x235)]),S(0x1,o[_0x3cbd18(0x1ab)](o[_0x3cbd18(0x204)])),S(0x2,o[_0x3cbd18(0x1ab)](b[_0x3cbd18(0x1fe)]))],exports[_0x3cbd18(0x247)]);var u=(_0x3ae2f8=>(_0x3ae2f8['OFFLINE']='offline',_0x3ae2f8['IDLE']='idle',_0x3ae2f8[_0x3cbd18(0x1d3)]=_0x3cbd18(0x198),_0x3ae2f8[_0x3cbd18(0x20e)]=_0x3cbd18(0x248),_0x3ae2f8[_0x3cbd18(0x1cf)]=_0x3cbd18(0x19c),_0x3ae2f8))(u||{});const k=_0x3cbd18(0x228),q=0xc8;exports[_0x3cbd18(0x240)]=class extends o[_0x3cbd18(0x1d6)]{constructor(_0x156eae,_0x3f728a,_0x527f9d,_0x2ae1c3,_0x52c861){const _0x38e9f0=_0x3cbd18;super(),_(this,_0x38e9f0(0x1f5),new O['BehaviorSubject'](_0x38e9f0(0x1f1))),_(this,'status$',this['_status$'][_0x38e9f0(0x1f3)]()),_(this,_0x38e9f0(0x1ce),!0x1),_(this,'_commandDisposable',null),_(this,_0x38e9f0(0x1bb),null),(this[_0x38e9f0(0x207)]=_0x156eae,this[_0x38e9f0(0x1cd)]=_0x3f728a,this[_0x38e9f0(0x1e2)]=_0x527f9d,this[_0x38e9f0(0x236)]=_0x2ae1c3,this[_0x38e9f0(0x1d4)]=_0x52c861);}get[_0x3cbd18(0x1dd)](){const _0x4db36d=_0x3cbd18;return this[_0x4db36d(0x1f5)][_0x4db36d(0x1e0)]();}[_0x3cbd18(0x23e)](){const _0x2e03ca=_0x3cbd18;var _0x828b09;(_0x828b09=this['_commandDisposable'])==null||_0x828b09[_0x2e03ca(0x23e)](),this[_0x2e03ca(0x1f5)]['next'](_0x2e03ca(0x1f1)),this[_0x2e03ca(0x1f5)][_0x2e03ca(0x1b2)]();}[_0x3cbd18(0x18a)](){const _0x4ea827=_0x3cbd18;return this[_0x4ea827(0x1dd)];}[_0x3cbd18(0x211)](){const _0xcab05e=_0x3cbd18;this[_0xcab05e(0x1ce)]||(this[_0xcab05e(0x1ce)]=!0x0,this['_collabSession'][_0xcab05e(0x18f)]['pipe'](I[_0xcab05e(0x215)](this[_0xcab05e(0x1f6)]))[_0xcab05e(0x22c)](_0x4c48f2=>{const _0x53d18d=_0xcab05e;switch(_0x4c48f2){case b[_0x53d18d(0x221)][_0x53d18d(0x20d)]:this['_handleOffline']();break;case b[_0x53d18d(0x221)][_0x53d18d(0x1c9)]:this[_0x53d18d(0x209)]();break;}}),this['_collabSession'][_0xcab05e(0x259)]['pipe'](I[_0xcab05e(0x215)](this[_0xcab05e(0x1f6)]))[_0xcab05e(0x22c)](_0x150b06=>{const _0x5dae5a=_0xcab05e,{eventID:_0x42175f}=_0x150b06;switch(_0x42175f){case d[_0x5dae5a(0x22d)][_0x5dae5a(0x1c8)]:this[_0x5dae5a(0x189)](_0x150b06);break;case d[_0x5dae5a(0x22d)][_0x5dae5a(0x255)]:this[_0x5dae5a(0x18c)](_0x150b06);break;case d['CollaborationEvent'][_0x5dae5a(0x253)]:this[_0x5dae5a(0x1e5)]();break;case d['CollaborationEvent'][_0x5dae5a(0x18e)]:this['_handleNewChangeSets'](_0x150b06);break;}}));}['tryStartPresenting'](){const _0x339387=_0x3cbd18;this[_0x339387(0x1cd)]['send']({'eventID':d[_0x339387(0x22d)][_0x339387(0x190)],'data':{'unitID':this[_0x339387(0x207)],'userID':this[_0x339387(0x1cd)][_0x339387(0x1ed)]()}},this[_0x339387(0x207)]);}[_0x3cbd18(0x20b)](){const _0x30cda2=_0x3cbd18;this[_0x30cda2(0x1dd)]===_0x30cda2(0x19c)&&(this[_0x30cda2(0x1f5)][_0x30cda2(0x21d)](_0x30cda2(0x1f1)),this[_0x30cda2(0x1cd)][_0x30cda2(0x1e4)]({'eventID':d['CollaborationEvent'][_0x30cda2(0x253)],'data':{'unitID':this[_0x30cda2(0x207)]}},this[_0x30cda2(0x207)]));}[_0x3cbd18(0x192)](){const _0x483c6f=_0x3cbd18;this['_status']===_0x483c6f(0x248)&&(this[_0x483c6f(0x1f5)][_0x483c6f(0x21d)](_0x483c6f(0x198)),this[_0x483c6f(0x1bc)]());}[_0x3cbd18(0x24c)](){const _0x42c18b=_0x3cbd18;this[_0x42c18b(0x1dd)]==='following'&&this[_0x42c18b(0x1fb)]();}['_handleNewHost'](_0x961bd7){const _0x23d22c=_0x3cbd18,{presenter:_0x57af40}=_0x961bd7[_0x23d22c(0x257)],_0x17e3b2=this[_0x23d22c(0x1cd)][_0x23d22c(0x1ed)]();this[_0x23d22c(0x1bb)]=_0x57af40,_0x57af40===_0x17e3b2?(this[_0x23d22c(0x1fb)](),this[_0x23d22c(0x1ad)]()):this[_0x23d22c(0x1dd)]!==_0x23d22c(0x248)&&(this['_stopPresenting'](),this[_0x23d22c(0x1bc)]());}[_0x3cbd18(0x201)](){const _0x29801a=_0x3cbd18,_0x382e3b={'eventID':d[_0x29801a(0x22d)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x29801a(0x1cd)][_0x29801a(0x1e4)](_0x382e3b,this['_unitID']);}['_handleTerminate'](){const _0x187d1d=_0x3cbd18;this[_0x187d1d(0x1bb)]=null,this[_0x187d1d(0x1dd)]!=='presenting'&&this['_beIdle']();}[_0x3cbd18(0x258)](_0x16f019){const _0x180a16=_0x3cbd18;if(this[_0x180a16(0x1dd)]===_0x180a16(0x198)&&this['_presenter']===_0x16f019[_0x180a16(0x257)][_0x180a16(0x222)]){const _0x3d6cd4=d[_0x180a16(0x1f9)](_0x16f019[_0x180a16(0x257)])[_0x180a16(0x1bd)][_0x180a16(0x197)]()[_0x180a16(0x1dc)](_0x19e99c=>_0x19e99c['id']===C['InsertSheetMutation']['id']);if(_0x3d6cd4){const _0x5d9425=_0x3d6cd4[_0x180a16(0x1e3)]['unitId'],_0x1f3380=_0x3d6cd4[_0x180a16(0x1e3)]['sheet']['id'];setTimeout(()=>{const _0x20c626=_0x180a16;this[_0x20c626(0x1d4)][_0x20c626(0x1ae)](C[_0x20c626(0x1e8)]['id'],{'unitId':_0x5d9425,'subUnitId':_0x1f3380},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x59bdd0=_0x3cbd18;this[_0x59bdd0(0x1f5)]['next']('presenting');const _0x1f493f=new Map(),_0x4ba12c=this['_commandDisposable']=new o['DisposableCollection']();_0x4ba12c[_0x59bdd0(0x199)](o['toDisposable'](()=>{const _0x3f93dd=_0x59bdd0;_0x1f493f[_0x3f93dd(0x251)](_0x42ba89=>_0x42ba89[_0x3f93dd(0x1b2)]()),_0x1f493f[_0x3f93dd(0x1a5)]();})),_0x4ba12c['add'](this[_0x59bdd0(0x1d4)][_0x59bdd0(0x1c0)](_0x4f1295=>{const _0x724c86=_0x59bdd0;var _0x1607ff;if(_0x4f1295['type']!==o[_0x724c86(0x219)][_0x724c86(0x19e)]||!this[_0x724c86(0x236)][_0x724c86(0x231)](_0x4f1295['id']))return;const {id:_0x26793c}=_0x4f1295;let _0x55f02a;_0x1f493f['has'](_0x26793c)?_0x55f02a=_0x1f493f[_0x724c86(0x217)](_0x26793c):(_0x55f02a=new O['Subject'](),_0x1f493f[_0x724c86(0x21e)](_0x26793c,_0x55f02a),_0x55f02a['pipe'](I[_0x724c86(0x202)]((_0x1607ff=this['_configService'][_0x724c86(0x1bf)](k))!=null?_0x1607ff:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2a7708=>{const _0x118cb1=_0x724c86;this[_0x118cb1(0x1cd)][_0x118cb1(0x1e4)]({'eventID':d[_0x118cb1(0x22d)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x118cb1(0x207)],'operations':{[_0x2a7708['id']]:{'id':_0x2a7708['id'],'params':JSON[_0x118cb1(0x1f4)](_0x2a7708[_0x118cb1(0x1e3)])}}}},this['_unitID']);})),_0x55f02a[_0x724c86(0x21d)](_0x4f1295);})),this['_liveShareService']['getInitialStates'](this[_0x59bdd0(0x207)])[_0x59bdd0(0x251)](_0x32481a=>this[_0x59bdd0(0x1cd)][_0x59bdd0(0x1e4)]({'eventID':d[_0x59bdd0(0x22d)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x59bdd0(0x207)],'operations':{[_0x32481a['id']]:{'id':_0x32481a['id'],'params':JSON['stringify'](_0x32481a[_0x59bdd0(0x1e3)])}}}},this[_0x59bdd0(0x207)]));}[_0x3cbd18(0x23b)](){const _0x29734a=_0x3cbd18;var _0x4f9dd4;this[_0x29734a(0x1f5)][_0x29734a(0x21d)](_0x29734a(0x1f1)),(_0x4f9dd4=this['_commandDisposable'])==null||_0x4f9dd4[_0x29734a(0x23e)](),this['_commandDisposable']=null;}[_0x3cbd18(0x1bc)](){const _0x4d5657=_0x3cbd18;var _0x21019b;(_0x21019b=this[_0x4d5657(0x1c3)])==null||_0x21019b[_0x4d5657(0x23e)](),this['_status$'][_0x4d5657(0x21d)](_0x4d5657(0x198));}[_0x3cbd18(0x22b)](){const _0x146a35=_0x3cbd18;var _0x8c7e9d;this[_0x146a35(0x1f5)][_0x146a35(0x21d)](_0x146a35(0x1f1)),(_0x8c7e9d=this['_commandDisposable'])==null||_0x8c7e9d[_0x146a35(0x23e)](),this[_0x146a35(0x1c3)]=null;}[_0x3cbd18(0x1fb)](){const _0x3ce691=_0x3cbd18;var _0x25ee2b;this[_0x3ce691(0x1f5)]['next'](_0x3ce691(0x248)),(_0x25ee2b=this[_0x3ce691(0x1c3)])==null||_0x25ee2b[_0x3ce691(0x23e)]();}[_0x3cbd18(0x18c)](_0x31597d){const _0x153726=_0x3cbd18;if([_0x153726(0x19c),'not-following','offline'][_0x153726(0x1a9)](this[_0x153726(0x1dd)])||!_0x31597d[_0x153726(0x257)][_0x153726(0x208)]||_0x31597d[_0x153726(0x257)][_0x153726(0x208)]===this[_0x153726(0x1cd)][_0x153726(0x1ed)]())return;this[_0x153726(0x1dd)]===_0x153726(0x1f1)&&this[_0x153726(0x1bc)]();const _0x5d4612=_0x31597d[_0x153726(0x257)][_0x153726(0x246)];Object[_0x153726(0x243)](_0x5d4612)[_0x153726(0x251)](_0x2631ee=>{const _0x102d46=_0x153726;this[_0x102d46(0x1d4)][_0x102d46(0x1ae)](_0x2631ee['id'],_0x2631ee['params']?JSON[_0x102d46(0x1ec)](_0x2631ee[_0x102d46(0x1e3)]):null,{'fromCollab':!0x0});});}[_0x3cbd18(0x1a8)](){const _0x5b93ff=_0x3cbd18;var _0x4ad59f;this[_0x5b93ff(0x1f5)][_0x5b93ff(0x21d)](_0x5b93ff(0x216)),(_0x4ad59f=this[_0x5b93ff(0x1c3)])==null||_0x4ad59f[_0x5b93ff(0x23e)]();}[_0x3cbd18(0x209)](){const _0x5cc25e=_0x3cbd18;this[_0x5cc25e(0x1f5)][_0x5cc25e(0x21d)](_0x5cc25e(0x1f1)),this['_fetchOperations']();}},exports[_0x3cbd18(0x240)]=P([S(0x2,o[_0x3cbd18(0x1de)]),S(0x3,o[_0x3cbd18(0x1ab)](E)),S(0x4,o[_0x3cbd18(0x1d5)])],exports[_0x3cbd18(0x240)]);function $(){const _0xb3f975=_0x3cbd18,_0x194e5c=p[_0xb3f975(0x1c4)](exports[_0xb3f975(0x247)]),_0x32bef9=p[_0xb3f975(0x1c4)](o['IUniverInstanceService']),_0x27bf10=p[_0xb3f975(0x1cc)](()=>_0x32bef9[_0xb3f975(0x1a1)](o['UniverInstanceType'][_0xb3f975(0x1c7)]),void 0x0,!0x1,[]),[_0x406f2c,_0x21f7c5]=v['useState'](null),[_0x51df88,_0x394edf]=v['useState'](u['IDLE']),_0x4aaaf1=v[_0xb3f975(0x21f)](null);return v[_0xb3f975(0x20a)](()=>(_0x27bf10&&_0x194e5c[_0xb3f975(0x1ea)](_0x27bf10[_0xb3f975(0x22e)]())['then'](_0x1f7aca=>{const _0x271f36=_0xb3f975;_0x21f7c5(_0x1f7aca),_0x4aaaf1[_0x271f36(0x1ff)]=_0x1f7aca['status$'][_0x271f36(0x22c)](_0x1c74be=>{_0x394edf(_0x1c74be);});}),()=>{const _0xc32d21=_0xb3f975;var _0x141359;(_0x141359=_0x4aaaf1[_0xc32d21(0x1ff)])==null||_0x141359[_0xc32d21(0x1eb)](),_0x4aaaf1[_0xc32d21(0x1ff)]=null;}),[_0x27bf10,_0x194e5c]),_0x406f2c?l[_0xb3f975(0x195)](f[_0xb3f975(0x1e9)],{'align':'end','disabled':_0x51df88===u[_0xb3f975(0x20d)],'className':_0xb3f975(0x1aa),'overlay':l['jsx'](W,{'status':_0x51df88,'coordinator':_0x406f2c}),'children':l['jsx']('button',{'className':f[_0xb3f975(0x1d9)](_0xb3f975(0x218),{'univer-cursor-not-allowed':_0x51df88===u[_0xb3f975(0x20d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x51df88!==u[_0xb3f975(0x20d)]}),'type':_0xb3f975(0x1c1),'children':l[_0xb3f975(0x195)](R,{'className':_0xb3f975(0x210)})})}):null;}function W(_0xae12d2){const _0x105300=_0x3cbd18,{status:_0xc762e3,coordinator:_0x4eb206}=_0xae12d2;switch(_0xc762e3){case u[_0x105300(0x226)]:return l[_0x105300(0x195)](G,{'coordinator':_0x4eb206});case u[_0x105300(0x1d3)]:return l[_0x105300(0x195)](B,{'coordinator':_0x4eb206});case u[_0x105300(0x20e)]:return l[_0x105300(0x195)](Y,{'coordinator':_0x4eb206});case u[_0x105300(0x20d)]:return l[_0x105300(0x195)](J,{});case u[_0x105300(0x1cf)]:return l[_0x105300(0x195)](Z,{'coordinator':_0x4eb206});default:return null;}}function G(_0x466ae5){const _0x40ccbb=_0x3cbd18,{coordinator:_0x4c3f0d}=_0x466ae5;return l[_0x40ccbb(0x1be)](l[_0x40ccbb(0x196)],{'children':[l['jsx'](_0x40ccbb(0x1da),{'className':_0x40ccbb(0x23d),'children':_0x40ccbb(0x1e7)}),l[_0x40ccbb(0x195)](f[_0x40ccbb(0x1d1)],{'onClick':()=>_0x4c3f0d[_0x40ccbb(0x1d8)](),'children':_0x40ccbb(0x1b5)})]});}function B(_0x443aa2){const _0x2250e2=_0x3cbd18,{coordinator:_0x3d7666}=_0x443aa2;return l['jsxs'](l[_0x2250e2(0x196)],{'children':[l[_0x2250e2(0x195)](_0x2250e2(0x1da),{'className':_0x2250e2(0x23d),'children':_0x2250e2(0x1ca)}),l[_0x2250e2(0x195)](f[_0x2250e2(0x1d1)],{'onClick':()=>_0x3d7666['stopFollowing'](),'children':_0x2250e2(0x244)})]});}function Y(_0x4009a2){const _0x3489c9=_0x3cbd18,{coordinator:_0x5f1895}=_0x4009a2;return l[_0x3489c9(0x1be)](l[_0x3489c9(0x196)],{'children':[l['jsx'](_0x3489c9(0x1da),{'className':_0x3489c9(0x23d),'children':_0x3489c9(0x213)}),l[_0x3489c9(0x195)](f['Button'],{'variant':_0x3489c9(0x1af),'onClick':()=>_0x5f1895[_0x3489c9(0x192)](),'children':_0x3489c9(0x1b9)})]});}function Z(_0x11bc18){const _0x24976e=_0x3cbd18,{coordinator:_0x23619c}=_0x11bc18;return l['jsxs'](l[_0x24976e(0x196)],{'children':[l[_0x24976e(0x195)](_0x24976e(0x1da),{'className':_0x24976e(0x23d),'children':_0x24976e(0x205)}),l[_0x24976e(0x195)](f['Button'],{'variant':'default','onClick':()=>_0x23619c[_0x24976e(0x20b)](),'children':_0x24976e(0x232)})]});}function J(){const _0x1ef033=_0x3cbd18;return l['jsx'](l[_0x1ef033(0x196)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x3cbd18(0x23f)],z=(_0x35d10a,_0xc9c882,_0x3689f0,_0x13880d)=>{const _0x8746b2=_0x3cbd18;for(var _0x312396=_0x13880d>0x1?void 0x0:_0x13880d?K(_0xc9c882,_0x3689f0):_0xc9c882,_0x5cfdc2=_0x35d10a[_0x8746b2(0x187)]-0x1,_0x133856;_0x5cfdc2>=0x0;_0x5cfdc2--)(_0x133856=_0x35d10a[_0x5cfdc2])&&(_0x312396=_0x133856(_0x312396)||_0x312396);return _0x312396;},L=(_0x5dff01,_0x450971)=>(_0x337546,_0x1b620f)=>_0x450971(_0x337546,_0x1b620f,_0x5dff01);exports[_0x3cbd18(0x20c)]=class extends o[_0x3cbd18(0x21b)]{constructor(_0x1a868a,_0x3b59c2){const _0x2c88be=_0x3cbd18;super(),this[_0x2c88be(0x19f)]=_0x1a868a,this[_0x2c88be(0x203)]=_0x3b59c2,this[_0x2c88be(0x1d7)]();}[_0x3cbd18(0x1d7)](){const _0x34d60c=_0x3cbd18;this[_0x34d60c(0x1a7)](this[_0x34d60c(0x203)]['registerComponent'](p['BuiltInUIPart'][_0x34d60c(0x1f7)],()=>p[_0x34d60c(0x18b)]($,this[_0x34d60c(0x19f)])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0x3cbd18(0x1ab)](o[_0x3cbd18(0x204)])),L(0x1,p[_0x3cbd18(0x25b)])],exports[_0x3cbd18(0x20c)]);const Q=_0x3cbd18(0x1ac),w={};var X=Object[_0x3cbd18(0x23f)],ee=(_0x398729,_0x1317a7,_0x466c4e,_0x55bd36)=>{const _0x15c2ad=_0x3cbd18;for(var _0x1e0340=_0x55bd36>0x1?void 0x0:_0x55bd36?X(_0x1317a7,_0x466c4e):_0x1317a7,_0x3e8b6f=_0x398729[_0x15c2ad(0x187)]-0x1,_0x5ed338;_0x3e8b6f>=0x0;_0x3e8b6f--)(_0x5ed338=_0x398729[_0x3e8b6f])&&(_0x1e0340=_0x5ed338(_0x1e0340)||_0x1e0340);return _0x1e0340;},te=(_0x3aeddb,_0xcd07aa)=>(_0x8ccb1,_0x1d3ff0)=>_0xcd07aa(_0x8ccb1,_0x1d3ff0,_0x3aeddb);let m=class extends o['Disposable']{constructor(_0x10d4ff){const _0x21de52=_0x3cbd18;super(),this[_0x21de52(0x236)]=_0x10d4ff,this[_0x21de52(0x1ce)]();}[_0x3cbd18(0x1ce)](){const _0x1323e4=_0x3cbd18;[D['SetZoomRatioOperation']['id'],D[_0x1323e4(0x1fd)]['id'],C['SetWorksheetActiveOperation']['id']][_0x1323e4(0x251)](_0xe7731=>{const _0x1302c8=_0x1323e4;this[_0x1302c8(0x1a7)](this[_0x1302c8(0x236)][_0x1302c8(0x250)](_0xe7731));});}};m=ee([te(0x0,o[_0x3cbd18(0x1ab)](E))],m);function _0x46af(){const _0x53125e=['_status$','dispose$','HEADER_MENU','toString','parseProtocolChangeset','mergeOverrideWithDependencies','_stopFollowing','assign','SetScrollOperation','CollaborationSessionService','current','map','_fetchOperations','throttleTime','_uiPartsService','Injector','You\x27re\x20presenting\x20the\x20document','UNIVER_LIVE_SHARE_PLUGIN','_unitID','presenter','_handleOnline','useEffect','stopPresenting','DesktopLiveShareController','OFFLINE','NOT_FOLLOWING','createElement','univer-size-4','init','evenodd','You\x27re\x20not\x20following\x20the\x20presenter','setConfig','takeUntil','offline','get','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','CommandType','_entities','Disposable','144154CBrXgn','next','set','useRef','random','SessionStatus','memberID','UniverInstanceType','requireSession','1em','IDLE','LiveShare','SAME_OPERATION_SHARE_INTERVAL','defIds','currentColor','_beIdle','subscribe','CollaborationEvent','getUnitId','0\x200\x2017\x2017','xlink:href','shouldShareOperation','Stop\x20presenting','_startLiveShareCoordinator','live-share-icon','IUniverInstanceService','_liveShareService','UNIVER_UNKNOWN','has','from','idSuffix','_stopPresenting','6381865YwytRF','univer-mb-3\x20univer-w-full\x20univer-text-sm','dispose','getOwnPropertyDescriptor','LiveShareCoordinator','561BnPJvE','_sharedOperations','values','Stop\x20following','onRendered','operations','LiveShareController','not-following','url(#$1','1082890vMptKx','merge','stopFollowing','12yZiFDh','colorChannel1','defineProperty','registerSharedOperation','forEach','_config','LIVESHARE_TERMINATE','8245760GpJPRd','LIVESHARE_OPERATION','mask','data','_handleNewChangeSets','event$','entries','IUIPartsService','pluginName','forwardRef','length','_univerInstanceService','_handleNewHost','getStatus','connectInjector','_handleOperation','symbol','NEW_CHANGESETS','sessionStatus$','LIVESHARE_REQUEST_HOST','27260cXILzi','startFollowing','toStringTag','UniverCollaborationClientPlugin','jsx','Fragment','reverse','following','add','_reporters','attrs','presenting','DependentOn','OPERATION','_injector','LiveShareIcon','getCurrentTypeOfUnit$','LiveShareService','delete','UniverLiveSharePlugin','clear','_collabSessionService','disposeWithMe','_handleOffline','includes','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','Inject','live-share.config','_startPresenting','executeCommand','text','getInitialStates','use','complete','children','string','Start','defs','1583187YNxXYB','pipe','Start\x20following','createInstance','_presenter','_startFollowing','mutations','jsxs','getConfig','onCommandExecuted','button','none','_commandDisposable','useDependency','Plugin','replace','UNIVER_SHEET','LIVESHARE_NEW_HOST','ONLINE','You\x27re\x20following\x20the\x20presenter','path','useObservable','_collabSession','_init','PRESENTING','toDisposable','Button','svg','FOLLOWING','_commandService','ICommandService','RxDisposable','_mountLiveShare','tryStartPresenting','clsx','div','62381151HyXPmJ','find','_status','IConfigService','registerInitialStateReporter','getValue','fill','_configService','params','send','_handleTerminate','http://www.w3.org/2000/svg','Present\x20this\x20document','SetWorksheetActiveOperation','Dropdown','getLiveShareCoordinator','unsubscribe','parse','getMemberID','tag','getTypeOfUnitAdded$','trim','idle','displayName','asObservable','stringify'];_0x46af=function(){return _0x53125e;};return _0x46af();}var ie=Object[_0x3cbd18(0x24f)],se=Object['getOwnPropertyDescriptor'],ne=(_0x5ed3b1,_0x4c1aa4,_0x32088a)=>_0x4c1aa4 in _0x5ed3b1?ie(_0x5ed3b1,_0x4c1aa4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32088a}):_0x5ed3b1[_0x4c1aa4]=_0x32088a,re=(_0x23df2e,_0x124044,_0x14586e,_0x41fc5e)=>{const _0x327ce2=_0x3cbd18;for(var _0x1ca513=_0x41fc5e>0x1?void 0x0:_0x41fc5e?se(_0x124044,_0x14586e):_0x124044,_0x3b9342=_0x23df2e[_0x327ce2(0x187)]-0x1,_0x4ac41d;_0x3b9342>=0x0;_0x3b9342--)(_0x4ac41d=_0x23df2e[_0x3b9342])&&(_0x1ca513=_0x4ac41d(_0x1ca513)||_0x1ca513);return _0x1ca513;},N=(_0x58e2f4,_0x93c5c1)=>(_0x3d3524,_0x2fe417)=>_0x93c5c1(_0x3d3524,_0x2fe417,_0x58e2f4),A=(_0x5a684d,_0x518e39,_0x18eac6)=>ne(_0x5a684d,typeof _0x518e39!=_0x3cbd18(0x18d)?_0x518e39+'':_0x518e39,_0x18eac6);const oe=_0x3cbd18(0x206);exports['UniverLiveSharePlugin']=class extends o[_0x3cbd18(0x1c5)]{constructor(_0x57283b=w,_0x43aef8,_0x492505){const _0x249c5a=_0x3cbd18;super(),this[_0x249c5a(0x252)]=_0x57283b,this[_0x249c5a(0x19f)]=_0x43aef8,this[_0x249c5a(0x1e2)]=_0x492505;const {..._0xf81f4a}=o[_0x249c5a(0x24b)]({},w,this[_0x249c5a(0x252)]);this[_0x249c5a(0x1e2)][_0x249c5a(0x214)](Q,_0xf81f4a);}['onStarting'](){const _0x23fdbb=_0x3cbd18;o['registerDependencies'](this[_0x23fdbb(0x19f)],o[_0x23fdbb(0x1fa)]([[E],[exports[_0x23fdbb(0x247)]],[m],[exports[_0x23fdbb(0x20c)]]],this[_0x23fdbb(0x252)]['override'])),o['touchDependencies'](this[_0x23fdbb(0x19f)],[[m]]);}[_0x3cbd18(0x245)](){const _0x35422a=_0x3cbd18;o['touchDependencies'](this['_injector'],[[exports[_0x35422a(0x20c)]]]);}},A(exports[_0x3cbd18(0x1a4)],'type',o[_0x3cbd18(0x223)][_0x3cbd18(0x237)]),A(exports[_0x3cbd18(0x1a4)],_0x3cbd18(0x185),oe),exports[_0x3cbd18(0x1a4)]=re([o[_0x3cbd18(0x19d)](b[_0x3cbd18(0x194)]),N(0x1,o[_0x3cbd18(0x1ab)](o[_0x3cbd18(0x204)])),N(0x2,o[_0x3cbd18(0x1de)])],exports[_0x3cbd18(0x1a4)]),exports[_0x3cbd18(0x227)]=$,exports[_0x3cbd18(0x1a2)]=E,exports['LiveShareStatus']=u;
|
|
1
|
+
'use strict';const _0x6be33=_0x3402;(function(_0x2cce31,_0xb95da9){const _0x2e9f4a=_0x3402,_0x43f5f4=_0x2cce31();while(!![]){try{const _0x4d5c0e=parseInt(_0x2e9f4a(0x21e))/0x1+-parseInt(_0x2e9f4a(0x25a))/0x2*(parseInt(_0x2e9f4a(0x22f))/0x3)+parseInt(_0x2e9f4a(0x1da))/0x4+-parseInt(_0x2e9f4a(0x1d7))/0x5+parseInt(_0x2e9f4a(0x1bc))/0x6+-parseInt(_0x2e9f4a(0x1f9))/0x7*(parseInt(_0x2e9f4a(0x1b1))/0x8)+parseInt(_0x2e9f4a(0x1e1))/0x9*(parseInt(_0x2e9f4a(0x259))/0xa);if(_0x4d5c0e===_0xb95da9)break;else _0x43f5f4['push'](_0x43f5f4['shift']());}catch(_0x13894d){_0x43f5f4['push'](_0x43f5f4['shift']());}}}(_0x3ba1,0xc610e));var T=Object[_0x6be33(0x1c8)],U=(_0x4925d7,_0x4ada07,_0x452c42)=>_0x4ada07 in _0x4925d7?T(_0x4925d7,_0x4ada07,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x452c42}):_0x4925d7[_0x4ada07]=_0x452c42,_=(_0x2d0a01,_0x4c0bf6,_0xcf080f)=>U(_0x2d0a01,typeof _0x4c0bf6!=_0x6be33(0x23d)?_0x4c0bf6+'':_0x4c0bf6,_0xcf080f);Object[_0x6be33(0x1c8)](exports,Symbol[_0x6be33(0x220)],{'value':_0x6be33(0x1eb)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x11400b,..._0x31bf2d}){const _0x3c54b2=_0x6be33,{icon:_0x338229,id:_0x45e81d,className:_0x45a739,extend:_0x53a4ef,..._0x1f39e9}=_0x31bf2d,_0x3bec7a=(_0x3c54b2(0x1db)+_0x45e81d+'\x20'+(_0x45a739||''))['trim'](),_0xb5932d=v[_0x3c54b2(0x24f)]('_'+H());return j(_0x338229,''+_0x45e81d,{'defIds':_0x338229[_0x3c54b2(0x1de)],'idSuffix':_0xb5932d[_0x3c54b2(0x241)]},{'ref':_0x11400b,'className':_0x3bec7a,..._0x1f39e9},_0x53a4ef);}function j(_0x3dcc7e,_0xcdd5a0,_0x38c590,_0x194d06,_0x165d0d){const _0x573b2f=_0x6be33;return v[_0x573b2f(0x25c)](_0x3dcc7e['tag'],{'key':_0xcdd5a0,...y(_0x3dcc7e,_0x38c590,_0x165d0d),..._0x194d06},(F(_0x3dcc7e,_0x38c590)[_0x573b2f(0x1ca)]||[])[_0x573b2f(0x198)]((_0x23dfaf,_0x4080ba)=>j(_0x23dfaf,_0xcdd5a0+'-'+_0x3dcc7e[_0x573b2f(0x256)]+'-'+_0x4080ba,_0x38c590,void 0x0,_0x165d0d)));}function y(_0xedc04b,_0x2044be,_0x431cf1){const _0x10e20c=_0x6be33,_0x48eb95={..._0xedc04b[_0x10e20c(0x206)]};_0x431cf1!=null&&_0x431cf1['colorChannel1']&&_0x48eb95['fill']===_0x10e20c(0x207)&&(_0x48eb95[_0x10e20c(0x1fb)]=_0x431cf1[_0x10e20c(0x207)]),_0xedc04b[_0x10e20c(0x256)]===_0x10e20c(0x1b7)&&_0x48eb95['id']&&(_0x48eb95['id']=_0x48eb95['id']+_0x2044be['idSuffix']),Object[_0x10e20c(0x1a7)](_0x48eb95)[_0x10e20c(0x1a5)](([_0x18b9d5,_0x4664e1])=>{const _0x56df68=_0x10e20c;_0x18b9d5===_0x56df68(0x1b7)&&typeof _0x4664e1=='string'&&(_0x48eb95[_0x18b9d5]=_0x4664e1[_0x56df68(0x1d5)](/url\(#(.*)\)/,_0x56df68(0x22b)+_0x2044be['idSuffix']+')'));});const {defIds:_0x7f176a}=_0x2044be;return!_0x7f176a||_0x7f176a[_0x10e20c(0x267)]===0x0||(_0xedc04b[_0x10e20c(0x256)]===_0x10e20c(0x233)&&_0x48eb95[_0x10e20c(0x21b)]&&(_0x48eb95[_0x10e20c(0x21b)]=_0x48eb95['xlink:href']+_0x2044be[_0x10e20c(0x1ab)]),Object[_0x10e20c(0x1a7)](_0x48eb95)[_0x10e20c(0x1a5)](([_0x47578b,_0x22446b])=>{const _0x4a3df7=_0x10e20c;typeof _0x22446b==_0x4a3df7(0x235)&&(_0x48eb95[_0x47578b]=_0x22446b['replace'](/url\(#(.*)\)/,_0x4a3df7(0x22b)+_0x2044be[_0x4a3df7(0x1ab)]+')'));})),_0x48eb95;}function F(_0x117ccc,_0xa4abd1){const _0x1680c7=_0x6be33;var _0x4d93b2;const {defIds:_0xfee9aa}=_0xa4abd1;return!_0xfee9aa||_0xfee9aa[_0x1680c7(0x267)]===0x0?_0x117ccc:_0x117ccc[_0x1680c7(0x256)]===_0x1680c7(0x1fa)&&((_0x4d93b2=_0x117ccc['children'])!=null&&_0x4d93b2[_0x1680c7(0x267)])?{..._0x117ccc,'children':_0x117ccc[_0x1680c7(0x1ca)][_0x1680c7(0x198)](_0x3a07a9=>typeof _0x3a07a9['attrs']['id']==_0x1680c7(0x235)&&_0xfee9aa&&_0xfee9aa[_0x1680c7(0x197)](_0x3a07a9[_0x1680c7(0x206)]['id'])?{..._0x3a07a9,'attrs':{..._0x3a07a9['attrs'],'id':_0x3a07a9[_0x1680c7(0x206)]['id']+_0xa4abd1[_0x1680c7(0x1ab)]}}:_0x3a07a9)}:_0x117ccc;}function H(){const _0x5709db=_0x6be33;return Math[_0x5709db(0x1b2)]()['toString'](0x24)['substring'](0x2,0x8);}x[_0x6be33(0x232)]=_0x6be33(0x1c1);const V={'tag':_0x6be33(0x1dc),'attrs':{'xmlns':_0x6be33(0x205),'fill':_0x6be33(0x1b0),'viewBox':_0x6be33(0x237),'width':'1em','height':'1em'},'children':[{'tag':_0x6be33(0x1e5),'attrs':{'fill':_0x6be33(0x20f),'d':_0x6be33(0x211)}},{'tag':_0x6be33(0x1e5),'attrs':{'fill':_0x6be33(0x20f),'d':_0x6be33(0x1b5),'fillRule':_0x6be33(0x249),'clipRule':_0x6be33(0x249)}}]},R=v['forwardRef'](function(_0x547c5f,_0x1d5533){const _0x14b889=_0x6be33;return v[_0x14b889(0x25c)](x,Object[_0x14b889(0x1a6)]({},_0x547c5f,{'id':_0x14b889(0x1d6),'ref':_0x1d5533,'icon':V}));});R[_0x6be33(0x232)]=_0x6be33(0x1a0);class E extends o['Disposable']{constructor(){const _0x49b52c=_0x6be33;super(...arguments),_(this,_0x49b52c(0x247),new Set()),_(this,_0x49b52c(0x231),new Set());}[_0x6be33(0x1df)](_0x14a4ae){const _0x17f494=_0x6be33;return this[_0x17f494(0x247)]['add'](_0x14a4ae),o[_0x17f494(0x1c2)](()=>this['_sharedOperations']['delete'](_0x14a4ae));}['registerInitialStateReporter'](_0x65e003){const _0x2f5bc2=_0x6be33;return this[_0x2f5bc2(0x231)][_0x2f5bc2(0x1e3)](_0x65e003),o['toDisposable'](()=>this['_reporters'][_0x2f5bc2(0x1c7)](_0x65e003));}[_0x6be33(0x202)](_0x43fa10){const _0x259563=_0x6be33;return this[_0x259563(0x247)][_0x259563(0x20b)](_0x43fa10);}[_0x6be33(0x1f0)](_0x50456c){const _0xfd2584=_0x6be33;return Array['from'](this[_0xfd2584(0x231)])[_0xfd2584(0x198)](_0x17e0c6=>_0x17e0c6(_0x50456c));}}var M=Object[_0x6be33(0x253)],P=(_0x47a9c0,_0x5027b3,_0x34dcc4,_0x5924f4)=>{const _0x4ec086=_0x6be33;for(var _0x13f438=_0x5924f4>0x1?void 0x0:_0x5924f4?M(_0x5027b3,_0x34dcc4):_0x5027b3,_0x56b025=_0x47a9c0[_0x4ec086(0x267)]-0x1,_0x3bfeba;_0x56b025>=0x0;_0x56b025--)(_0x3bfeba=_0x47a9c0[_0x56b025])&&(_0x13f438=_0x3bfeba(_0x13f438)||_0x13f438);return _0x13f438;},S=(_0x560423,_0x18a963)=>(_0x17e7e0,_0x83732)=>_0x18a963(_0x17e7e0,_0x83732,_0x560423);exports[_0x6be33(0x1d4)]=class extends o[_0x6be33(0x26e)]{constructor(_0x260b0c,_0x531775,_0x16cec6){const _0x3ef5d2=_0x6be33;super(),_(this,_0x3ef5d2(0x1d0),new Map()),(this['_univerInstanceService']=_0x260b0c,this[_0x3ef5d2(0x1b9)]=_0x531775,this[_0x3ef5d2(0x1c9)]=_0x16cec6,this[_0x3ef5d2(0x239)]());}async[_0x6be33(0x22a)](_0x402faa){const _0x4f1b54=_0x6be33;return this[_0x4f1b54(0x1d0)][_0x4f1b54(0x20b)](_0x402faa)||await this[_0x4f1b54(0x213)](_0x402faa),this[_0x4f1b54(0x1d0)][_0x4f1b54(0x1c0)](_0x402faa);}['getLiveShareCoordinatorSync'](_0x274894){const _0x14677a=_0x6be33;var _0x919dc8;return(_0x919dc8=this[_0x14677a(0x1d0)]['get'](_0x274894))!=null?_0x919dc8:null;}[_0x6be33(0x239)](){const _0x56d708=_0x6be33;this[_0x56d708(0x1ff)][_0x56d708(0x23b)](o[_0x56d708(0x1cb)][_0x56d708(0x23a)])[_0x56d708(0x1fe)](I[_0x56d708(0x223)](this[_0x56d708(0x210)]))[_0x56d708(0x1ba)](async _0x3ac7dc=>{const _0x338428=_0x56d708,_0x345e1b=_0x3ac7dc[_0x338428(0x224)]();this[_0x338428(0x1d0)][_0x338428(0x20b)](_0x345e1b)||this[_0x338428(0x213)](_0x345e1b);}),this[_0x56d708(0x1ff)][_0x56d708(0x219)](o['UniverInstanceType'][_0x56d708(0x23a)])['pipe'](I[_0x56d708(0x223)](this[_0x56d708(0x210)]))[_0x56d708(0x1ba)](_0x317fea=>{const _0x2b1417=_0x56d708,_0x2ee220=_0x317fea[_0x2b1417(0x224)](),_0x498bac=this[_0x2b1417(0x1d0)][_0x2b1417(0x1c0)](_0x2ee220);_0x498bac==null||_0x498bac['dispose']();});}async[_0x6be33(0x213)](_0x150157){const _0x42f68c=_0x6be33,_0x2a4c47=await this[_0x42f68c(0x1c9)]['requireSession'](_0x150157),_0x427e65=this['_injector'][_0x42f68c(0x1bf)](exports[_0x42f68c(0x238)],_0x150157,_0x2a4c47);return _0x427e65[_0x42f68c(0x1a8)](),this[_0x42f68c(0x1d0)][_0x42f68c(0x1b6)](_0x150157,_0x427e65),_0x427e65;}},exports[_0x6be33(0x1d4)]=P([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x6be33(0x22e)](o[_0x6be33(0x25f)])),S(0x2,o[_0x6be33(0x22e)](b['CollaborationSessionService']))],exports[_0x6be33(0x1d4)]);var u=(_0x2a5809=>(_0x2a5809[_0x6be33(0x25e)]='offline',_0x2a5809[_0x6be33(0x201)]='idle',_0x2a5809[_0x6be33(0x266)]='following',_0x2a5809['NOT_FOLLOWING']=_0x6be33(0x21c),_0x2a5809[_0x6be33(0x21f)]=_0x6be33(0x240),_0x2a5809))(u||{});const k=_0x6be33(0x20d),q=0xc8;exports[_0x6be33(0x238)]=class extends o[_0x6be33(0x26e)]{constructor(_0x456554,_0x448d3d,_0x279232,_0x13182f,_0x562322){const _0x5df246=_0x6be33;super(),_(this,_0x5df246(0x1bd),new O[(_0x5df246(0x22c))](_0x5df246(0x196))),_(this,_0x5df246(0x1d1),this['_status$'][_0x5df246(0x1bb)]()),_(this,'_init',!0x1),_(this,'_commandDisposable',null),_(this,'_presenter',null),(this['_unitID']=_0x456554,this[_0x5df246(0x1b3)]=_0x448d3d,this[_0x5df246(0x20e)]=_0x279232,this[_0x5df246(0x1ce)]=_0x13182f,this[_0x5df246(0x1f7)]=_0x562322);}get[_0x6be33(0x258)](){const _0xfe86d8=_0x6be33;return this[_0xfe86d8(0x1bd)][_0xfe86d8(0x1dd)]();}[_0x6be33(0x26d)](){const _0x1b8b4d=_0x6be33;var _0x3d195c;(_0x3d195c=this['_commandDisposable'])==null||_0x3d195c['dispose'](),this[_0x1b8b4d(0x1bd)][_0x1b8b4d(0x1e7)]('idle'),this[_0x1b8b4d(0x1bd)][_0x1b8b4d(0x1a4)]();}[_0x6be33(0x1fd)](){return this['_status'];}[_0x6be33(0x1a8)](){const _0x5f0ef9=_0x6be33;this[_0x5f0ef9(0x239)]||(this[_0x5f0ef9(0x239)]=!0x0,this[_0x5f0ef9(0x1b3)][_0x5f0ef9(0x1b8)][_0x5f0ef9(0x1fe)](I[_0x5f0ef9(0x223)](this[_0x5f0ef9(0x210)]))[_0x5f0ef9(0x1ba)](_0xfbe112=>{const _0x159379=_0x5f0ef9;switch(_0xfbe112){case b[_0x159379(0x215)][_0x159379(0x25e)]:this[_0x159379(0x1ec)]();break;case b[_0x159379(0x215)][_0x159379(0x1f8)]:this[_0x159379(0x24e)]();break;}}),this[_0x5f0ef9(0x1b3)]['event$']['pipe'](I[_0x5f0ef9(0x223)](this['dispose$']))[_0x5f0ef9(0x1ba)](_0x3d31ab=>{const _0x5c32f2=_0x5f0ef9,{eventID:_0x1f0ca2}=_0x3d31ab;switch(_0x1f0ca2){case d['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x5c32f2(0x1f2)](_0x3d31ab);break;case d[_0x5c32f2(0x236)][_0x5c32f2(0x1c4)]:this[_0x5c32f2(0x229)](_0x3d31ab);break;case d[_0x5c32f2(0x236)][_0x5c32f2(0x244)]:this[_0x5c32f2(0x26a)]();break;case d[_0x5c32f2(0x236)][_0x5c32f2(0x1f3)]:this[_0x5c32f2(0x1c3)](_0x3d31ab);break;}}));}[_0x6be33(0x1e2)](){const _0x1bd484=_0x6be33;this['_collabSession'][_0x1bd484(0x203)]({'eventID':d[_0x1bd484(0x236)][_0x1bd484(0x21d)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x1bd484(0x19a)]()}},this[_0x1bd484(0x268)]);}[_0x6be33(0x264)](){const _0x215999=_0x6be33;this[_0x215999(0x258)]===_0x215999(0x240)&&(this[_0x215999(0x1bd)][_0x215999(0x1e7)]('idle'),this[_0x215999(0x1b3)][_0x215999(0x203)]({'eventID':d[_0x215999(0x236)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x215999(0x268)]));}['startFollowing'](){const _0x5c391b=_0x6be33;this[_0x5c391b(0x258)]==='not-following'&&(this['_status$'][_0x5c391b(0x1e7)]('following'),this['_startFollowing']());}[_0x6be33(0x225)](){const _0x2591cf=_0x6be33;this['_status']==='following'&&this[_0x2591cf(0x263)]();}[_0x6be33(0x1f2)](_0x310f69){const _0x50ab1c=_0x6be33,{presenter:_0x52b614}=_0x310f69['data'],_0x2255a0=this[_0x50ab1c(0x1b3)]['getMemberID']();this['_presenter']=_0x52b614,_0x52b614===_0x2255a0?(this[_0x50ab1c(0x263)](),this[_0x50ab1c(0x1ed)]()):this[_0x50ab1c(0x258)]!==_0x50ab1c(0x21c)&&(this[_0x50ab1c(0x1ee)](),this[_0x50ab1c(0x218)]());}[_0x6be33(0x1af)](){const _0x153f20=_0x6be33,_0x851603={'eventID':d[_0x153f20(0x236)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x153f20(0x1b3)][_0x153f20(0x203)](_0x851603,this['_unitID']);}[_0x6be33(0x26a)](){const _0xb021c4=_0x6be33;this['_presenter']=null,this[_0xb021c4(0x258)]!==_0xb021c4(0x240)&&this[_0xb021c4(0x1ae)]();}[_0x6be33(0x1c3)](_0x19bf1a){const _0x35aa1b=_0x6be33;if(this[_0x35aa1b(0x258)]===_0x35aa1b(0x257)&&this[_0x35aa1b(0x1a3)]===_0x19bf1a[_0x35aa1b(0x255)][_0x35aa1b(0x260)]){const _0x1c3451=d[_0x35aa1b(0x24c)](_0x19bf1a[_0x35aa1b(0x255)])[_0x35aa1b(0x25d)][_0x35aa1b(0x22d)]()['find'](_0x1223d0=>_0x1223d0['id']===C[_0x35aa1b(0x248)]['id']);if(_0x1c3451){const _0x56e10b=_0x1c3451[_0x35aa1b(0x1e8)][_0x35aa1b(0x204)],_0x2d311a=_0x1c3451[_0x35aa1b(0x1e8)][_0x35aa1b(0x216)]['id'];setTimeout(()=>{const _0xb02728=_0x35aa1b;this[_0xb02728(0x1f7)]['executeCommand'](C[_0xb02728(0x226)]['id'],{'unitId':_0x56e10b,'subUnitId':_0x2d311a},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x262ae6=_0x6be33;this[_0x262ae6(0x1bd)][_0x262ae6(0x1e7)](_0x262ae6(0x240));const _0x20dfd6=new Map(),_0x809032=this['_commandDisposable']=new o[(_0x262ae6(0x19d))]();_0x809032['add'](o[_0x262ae6(0x1c2)](()=>{const _0x458a2e=_0x262ae6;_0x20dfd6['forEach'](_0x34b1f2=>_0x34b1f2[_0x458a2e(0x1a4)]()),_0x20dfd6[_0x458a2e(0x24b)]();})),_0x809032['add'](this[_0x262ae6(0x1f7)][_0x262ae6(0x20c)](_0xbb99aa=>{const _0x26e6dc=_0x262ae6;var _0x3159fa;if(_0xbb99aa[_0x26e6dc(0x199)]!==o[_0x26e6dc(0x230)][_0x26e6dc(0x1a1)]||!this[_0x26e6dc(0x1ce)][_0x26e6dc(0x202)](_0xbb99aa['id']))return;const {id:_0x559ac3}=_0xbb99aa;let _0x375e43;_0x20dfd6[_0x26e6dc(0x20b)](_0x559ac3)?_0x375e43=_0x20dfd6['get'](_0x559ac3):(_0x375e43=new O[(_0x26e6dc(0x1e4))](),_0x20dfd6[_0x26e6dc(0x1b6)](_0x559ac3,_0x375e43),_0x375e43[_0x26e6dc(0x1fe)](I[_0x26e6dc(0x1e9)]((_0x3159fa=this['_configService'][_0x26e6dc(0x261)](k))!=null?_0x3159fa:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x26e6dc(0x1ba)](_0x5dd222=>{const _0x324d20=_0x26e6dc;this[_0x324d20(0x1b3)][_0x324d20(0x203)]({'eventID':d[_0x324d20(0x236)][_0x324d20(0x1c4)],'data':{'unitID':this[_0x324d20(0x268)],'operations':{[_0x5dd222['id']]:{'id':_0x5dd222['id'],'params':JSON[_0x324d20(0x24a)](_0x5dd222[_0x324d20(0x1e8)])}}}},this[_0x324d20(0x268)]);})),_0x375e43['next'](_0xbb99aa);})),this['_liveShareService'][_0x262ae6(0x1f0)](this[_0x262ae6(0x268)])[_0x262ae6(0x1a5)](_0xc803c9=>this['_collabSession'][_0x262ae6(0x203)]({'eventID':d[_0x262ae6(0x236)][_0x262ae6(0x1c4)],'data':{'unitID':this[_0x262ae6(0x268)],'operations':{[_0xc803c9['id']]:{'id':_0xc803c9['id'],'params':JSON[_0x262ae6(0x24a)](_0xc803c9[_0x262ae6(0x1e8)])}}}},this[_0x262ae6(0x268)]));}[_0x6be33(0x1ee)](){const _0x37986c=_0x6be33;var _0x591079;this[_0x37986c(0x1bd)]['next'](_0x37986c(0x196)),(_0x591079=this[_0x37986c(0x1e6)])==null||_0x591079[_0x37986c(0x26d)](),this[_0x37986c(0x1e6)]=null;}[_0x6be33(0x218)](){const _0x349eb2=_0x6be33;var _0x4571c7;(_0x4571c7=this[_0x349eb2(0x1e6)])==null||_0x4571c7[_0x349eb2(0x26d)](),this['_status$'][_0x349eb2(0x1e7)](_0x349eb2(0x257));}[_0x6be33(0x1ae)](){const _0x5be756=_0x6be33;var _0xc02a95;this[_0x5be756(0x1bd)]['next'](_0x5be756(0x196)),(_0xc02a95=this[_0x5be756(0x1e6)])==null||_0xc02a95['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x47df77=_0x6be33;var _0x1db5ec;this['_status$'][_0x47df77(0x1e7)]('not-following'),(_0x1db5ec=this[_0x47df77(0x1e6)])==null||_0x1db5ec[_0x47df77(0x26d)]();}['_handleOperation'](_0x2e07b6){const _0x173d95=_0x6be33;if(['presenting',_0x173d95(0x21c),'offline']['includes'](this[_0x173d95(0x258)])||!_0x2e07b6[_0x173d95(0x255)][_0x173d95(0x1f5)]||_0x2e07b6[_0x173d95(0x255)][_0x173d95(0x1f5)]===this[_0x173d95(0x1b3)][_0x173d95(0x19a)]())return;this['_status']==='idle'&&this['_startFollowing']();const _0x542531=_0x2e07b6[_0x173d95(0x255)][_0x173d95(0x23e)];Object['values'](_0x542531)[_0x173d95(0x1a5)](_0x5a1db0=>{const _0x45b6e5=_0x173d95;this[_0x45b6e5(0x1f7)][_0x45b6e5(0x228)](_0x5a1db0['id'],_0x5a1db0[_0x45b6e5(0x1e8)]?JSON[_0x45b6e5(0x217)](_0x5a1db0[_0x45b6e5(0x1e8)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x5133ff=_0x6be33;var _0x133b22;this[_0x5133ff(0x1bd)][_0x5133ff(0x1e7)](_0x5133ff(0x208)),(_0x133b22=this['_commandDisposable'])==null||_0x133b22[_0x5133ff(0x26d)]();}[_0x6be33(0x24e)](){const _0x4e60ba=_0x6be33;this['_status$'][_0x4e60ba(0x1e7)](_0x4e60ba(0x196)),this[_0x4e60ba(0x1af)]();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x6be33(0x26b)]),S(0x3,o[_0x6be33(0x22e)](E)),S(0x4,o[_0x6be33(0x209)])],exports[_0x6be33(0x238)]);function $(){const _0x122433=_0x6be33,_0x2ec90f=p['useDependency'](exports[_0x122433(0x1d4)]),_0x4d5101=p['useDependency'](o[_0x122433(0x20a)]),_0x506d65=p[_0x122433(0x265)](()=>_0x4d5101['getCurrentTypeOfUnit$'](o['UniverInstanceType'][_0x122433(0x23a)]),void 0x0,!0x1,[]),[_0x1498e3,_0x5d54e6]=v[_0x122433(0x1b4)](null),[_0x1f930d,_0x586d4a]=v[_0x122433(0x1b4)](u[_0x122433(0x201)]),_0x24b11f=v[_0x122433(0x24f)](null);return v[_0x122433(0x222)](()=>(_0x506d65&&_0x2ec90f['getLiveShareCoordinator'](_0x506d65[_0x122433(0x224)]())[_0x122433(0x26c)](_0x41cbc3=>{const _0x27fcea=_0x122433;_0x5d54e6(_0x41cbc3),_0x24b11f[_0x27fcea(0x241)]=_0x41cbc3[_0x27fcea(0x1d1)][_0x27fcea(0x1ba)](_0x547617=>{_0x586d4a(_0x547617);});}),()=>{const _0x262f87=_0x122433;var _0x3df4e1;(_0x3df4e1=_0x24b11f[_0x262f87(0x241)])==null||_0x3df4e1[_0x262f87(0x1ad)](),_0x24b11f[_0x262f87(0x241)]=null;}),[_0x506d65,_0x2ec90f]),_0x1498e3?l[_0x122433(0x200)](f[_0x122433(0x1aa)],{'align':_0x122433(0x1ef),'disabled':_0x1f930d===u[_0x122433(0x25e)],'className':_0x122433(0x246),'overlay':l['jsx'](W,{'status':_0x1f930d,'coordinator':_0x1498e3}),'children':l[_0x122433(0x200)]('button',{'className':f['clsx'](_0x122433(0x214),{'univer-cursor-not-allowed':_0x1f930d===u[_0x122433(0x25e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1f930d!==u['OFFLINE']}),'type':_0x122433(0x1ea),'children':l[_0x122433(0x200)](R,{'className':_0x122433(0x227)})})}):null;}function W(_0x39b859){const _0x4809b4=_0x6be33,{status:_0x370dc0,coordinator:_0x2aebb8}=_0x39b859;switch(_0x370dc0){case u['IDLE']:return l['jsx'](G,{'coordinator':_0x2aebb8});case u[_0x4809b4(0x266)]:return l[_0x4809b4(0x200)](B,{'coordinator':_0x2aebb8});case u[_0x4809b4(0x21a)]:return l[_0x4809b4(0x200)](Y,{'coordinator':_0x2aebb8});case u[_0x4809b4(0x25e)]:return l['jsx'](J,{});case u[_0x4809b4(0x21f)]:return l[_0x4809b4(0x200)](Z,{'coordinator':_0x2aebb8});default:return null;}}function G(_0xaff639){const _0x5cc1d8=_0x6be33,{coordinator:_0x57b2e9}=_0xaff639;return l[_0x5cc1d8(0x1cf)](l[_0x5cc1d8(0x254)],{'children':[l[_0x5cc1d8(0x200)](_0x5cc1d8(0x1f4),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5cc1d8(0x269)}),l[_0x5cc1d8(0x200)](f[_0x5cc1d8(0x1cd)],{'onClick':()=>_0x57b2e9['tryStartPresenting'](),'children':_0x5cc1d8(0x1fc)})]});}function B(_0x50e192){const _0x1af003=_0x6be33,{coordinator:_0xd24b06}=_0x50e192;return l[_0x1af003(0x1cf)](l[_0x1af003(0x254)],{'children':[l[_0x1af003(0x200)](_0x1af003(0x1f4),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1af003(0x19c)}),l[_0x1af003(0x200)](f[_0x1af003(0x1cd)],{'onClick':()=>_0xd24b06['stopFollowing'](),'children':'Stop\x20following'})]});}function Y(_0x8a46c8){const _0x1d935c=_0x6be33,{coordinator:_0x213d73}=_0x8a46c8;return l['jsxs'](l[_0x1d935c(0x254)],{'children':[l[_0x1d935c(0x200)](_0x1d935c(0x1f4),{'className':_0x1d935c(0x24d),'children':_0x1d935c(0x1c5)}),l[_0x1d935c(0x200)](f[_0x1d935c(0x1cd)],{'variant':_0x1d935c(0x262),'onClick':()=>_0x213d73[_0x1d935c(0x1a9)](),'children':'Start\x20following'})]});}function Z(_0x26b027){const _0x565349=_0x6be33,{coordinator:_0x91572}=_0x26b027;return l[_0x565349(0x1cf)](l[_0x565349(0x254)],{'children':[l['jsx'](_0x565349(0x1f4),{'className':_0x565349(0x24d),'children':_0x565349(0x1f1)}),l[_0x565349(0x200)](f[_0x565349(0x1cd)],{'variant':'default','onClick':()=>_0x91572['stopPresenting'](),'children':_0x565349(0x1d2)})]});}function J(){const _0xf4db23=_0x6be33;return l[_0xf4db23(0x200)](l['Fragment'],{'children':_0xf4db23(0x251)});}var K=Object[_0x6be33(0x253)],z=(_0x103346,_0x4a6512,_0x3934e4,_0x5ab9cd)=>{const _0x285cb9=_0x6be33;for(var _0x5b0530=_0x5ab9cd>0x1?void 0x0:_0x5ab9cd?K(_0x4a6512,_0x3934e4):_0x4a6512,_0x20ff58=_0x103346[_0x285cb9(0x267)]-0x1,_0x108ef7;_0x20ff58>=0x0;_0x20ff58--)(_0x108ef7=_0x103346[_0x20ff58])&&(_0x5b0530=_0x108ef7(_0x5b0530)||_0x5b0530);return _0x5b0530;},L=(_0x4ef8c8,_0x2fbeef)=>(_0x1c7357,_0xb02dc2)=>_0x2fbeef(_0x1c7357,_0xb02dc2,_0x4ef8c8);exports[_0x6be33(0x1ac)]=class extends o[_0x6be33(0x1e0)]{constructor(_0x3a7ce1,_0x30618b){const _0x16af62=_0x6be33;super(),this[_0x16af62(0x1b9)]=_0x3a7ce1,this[_0x16af62(0x23c)]=_0x30618b,this[_0x16af62(0x1a2)]();}['_mountLiveShare'](){const _0x58c751=_0x6be33;this[_0x58c751(0x1d8)](this['_uiPartsService']['registerComponent'](p[_0x58c751(0x19e)][_0x58c751(0x250)],()=>p[_0x58c751(0x212)]($,this[_0x58c751(0x1b9)])));}},exports[_0x6be33(0x1ac)]=z([L(0x0,o[_0x6be33(0x22e)](o['Injector'])),L(0x1,p[_0x6be33(0x221)])],exports[_0x6be33(0x1ac)]);const Q=_0x6be33(0x234),w={};var X=Object[_0x6be33(0x253)],ee=(_0x2fa54a,_0x314da2,_0x26b71b,_0x38e100)=>{const _0x1d93cb=_0x6be33;for(var _0x2936d3=_0x38e100>0x1?void 0x0:_0x38e100?X(_0x314da2,_0x26b71b):_0x314da2,_0x37060c=_0x2fa54a[_0x1d93cb(0x267)]-0x1,_0x139792;_0x37060c>=0x0;_0x37060c--)(_0x139792=_0x2fa54a[_0x37060c])&&(_0x2936d3=_0x139792(_0x2936d3)||_0x2936d3);return _0x2936d3;},te=(_0x411ef3,_0x1d01a9)=>(_0x57d8b0,_0x5cff1a)=>_0x1d01a9(_0x57d8b0,_0x5cff1a,_0x411ef3);let m=class extends o['Disposable']{constructor(_0x2035f7){const _0x5c3da6=_0x6be33;super(),this[_0x5c3da6(0x1ce)]=_0x2035f7,this[_0x5c3da6(0x239)]();}[_0x6be33(0x239)](){const _0x5d164a=_0x6be33;[D['SetZoomRatioOperation']['id'],D[_0x5d164a(0x19b)]['id'],C[_0x5d164a(0x226)]['id']][_0x5d164a(0x1a5)](_0x52551b=>{const _0x550d38=_0x5d164a;this['disposeWithMe'](this[_0x550d38(0x1ce)]['registerSharedOperation'](_0x52551b));});}};function _0x3402(_0xfe1219,_0x270270){_0xfe1219=_0xfe1219-0x196;const _0x3ba128=_0x3ba1();let _0x3402a0=_0x3ba128[_0xfe1219];return _0x3402a0;}function _0x3ba1(){const _0x480d26=['delete','defineProperty','_collabSessionService','children','UniverInstanceType','_config','Button','_liveShareService','jsxs','_entities','status$','Stop\x20presenting','Plugin','LiveShareController','replace','live-share-icon','2307375kceSQN','disposeWithMe','onStarting','1402384vqOpOV','univerjs-icon\x20univerjs-icon-','svg','getValue','defIds','registerSharedOperation','Disposable','27rHGhid','tryStartPresenting','add','Subject','path','_commandDisposable','next','params','throttleTime','button','Module','_handleOffline','_startPresenting','_stopPresenting','end','getInitialStates','You\x27re\x20presenting\x20the\x20document','_handleNewHost','NEW_CHANGESETS','div','presenter','override','_commandService','ONLINE','182588wumlEE','defs','fill','Start','getStatus','pipe','_univerInstanceService','jsx','IDLE','shouldShareOperation','send','unitId','http://www.w3.org/2000/svg','attrs','colorChannel1','offline','ICommandService','IUniverInstanceService','has','onCommandExecuted','SAME_OPERATION_SHARE_INTERVAL','_configService','currentColor','dispose$','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','connectInjector','_startLiveShareCoordinator','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','SessionStatus','sheet','parse','_startFollowing','getTypeOfUnitDisposed$','NOT_FOLLOWING','xlink:href','not-following','LIVESHARE_REQUEST_HOST','897788zjUZvK','PRESENTING','toStringTag','IUIPartsService','useEffect','takeUntil','getUnitId','stopFollowing','SetWorksheetActiveOperation','univer-size-4','executeCommand','_handleOperation','getLiveShareCoordinator','url(#$1','BehaviorSubject','reverse','Inject','6VCzlND','CommandType','_reporters','displayName','use','live-share.config','string','CollaborationEvent','0\x200\x2017\x2017','LiveShareCoordinator','_init','UNIVER_SHEET','getTypeOfUnitAdded$','_uiPartsService','symbol','operations','onRendered','presenting','current','merge','UniverLiveSharePlugin','LIVESHARE_TERMINATE','touchDependencies','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_sharedOperations','InsertSheetMutation','evenodd','stringify','clear','parseProtocolChangeset','univer-mb-3\x20univer-w-full\x20univer-text-sm','_handleOnline','useRef','HEADER_MENU','You\x27are\x20offline.','LiveShareService','getOwnPropertyDescriptor','Fragment','data','tag','following','_status','4196970pNMAwK','1538374brUKzO','registerDependencies','createElement','mutations','OFFLINE','Injector','memberID','getConfig','text','_stopFollowing','stopPresenting','useObservable','FOLLOWING','length','_unitID','Present\x20this\x20document','_handleTerminate','IConfigService','then','dispose','RxDisposable','idle','includes','map','type','getMemberID','SetScrollOperation','You\x27re\x20following\x20the\x20presenter','DisposableCollection','BuiltInUIPart','pluginName','LiveShareIcon','OPERATION','_mountLiveShare','_presenter','complete','forEach','assign','entries','init','startFollowing','Dropdown','idSuffix','DesktopLiveShareController','unsubscribe','_beIdle','_fetchOperations','none','88hQOkCk','random','_collabSession','useState','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','set','mask','sessionStatus$','_injector','subscribe','asObservable','3543456HpTrRZ','_status$','setConfig','createInstance','get','UniverIcon','toDisposable','_handleNewChangeSets','LIVESHARE_OPERATION','You\x27re\x20not\x20following\x20the\x20presenter','UNIVER_LIVE_SHARE_PLUGIN'];_0x3ba1=function(){return _0x480d26;};return _0x3ba1();}m=ee([te(0x0,o['Inject'](E))],m);var ie=Object['defineProperty'],se=Object[_0x6be33(0x253)],ne=(_0x1a19d1,_0x4d8be3,_0x133a39)=>_0x4d8be3 in _0x1a19d1?ie(_0x1a19d1,_0x4d8be3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x133a39}):_0x1a19d1[_0x4d8be3]=_0x133a39,re=(_0x537699,_0x13d156,_0x576f10,_0x56c316)=>{const _0x5895c4=_0x6be33;for(var _0x2ba70e=_0x56c316>0x1?void 0x0:_0x56c316?se(_0x13d156,_0x576f10):_0x13d156,_0x49d266=_0x537699[_0x5895c4(0x267)]-0x1,_0x29c604;_0x49d266>=0x0;_0x49d266--)(_0x29c604=_0x537699[_0x49d266])&&(_0x2ba70e=_0x29c604(_0x2ba70e)||_0x2ba70e);return _0x2ba70e;},N=(_0x4c45a3,_0x22e876)=>(_0x4e2e03,_0x1a9bd7)=>_0x22e876(_0x4e2e03,_0x1a9bd7,_0x4c45a3),A=(_0x2f696e,_0xa563a3,_0xeacc20)=>ne(_0x2f696e,typeof _0xa563a3!=_0x6be33(0x23d)?_0xa563a3+'':_0xa563a3,_0xeacc20);const oe=_0x6be33(0x1c6);exports[_0x6be33(0x243)]=class extends o[_0x6be33(0x1d3)]{constructor(_0x42dcdb=w,_0x3e423e,_0x173e97){const _0x28573a=_0x6be33;super(),this['_config']=_0x42dcdb,this[_0x28573a(0x1b9)]=_0x3e423e,this[_0x28573a(0x20e)]=_0x173e97;const {..._0x27ed59}=o[_0x28573a(0x242)]({},w,this[_0x28573a(0x1cc)]);this[_0x28573a(0x20e)][_0x28573a(0x1be)](Q,_0x27ed59);}[_0x6be33(0x1d9)](){const _0x30d089=_0x6be33;o[_0x30d089(0x25b)](this[_0x30d089(0x1b9)],o['mergeOverrideWithDependencies']([[E],[exports[_0x30d089(0x1d4)]],[m],[exports[_0x30d089(0x1ac)]]],this[_0x30d089(0x1cc)][_0x30d089(0x1f6)])),o[_0x30d089(0x245)](this['_injector'],[[m]]);}[_0x6be33(0x23f)](){const _0x2cc9f8=_0x6be33;o['touchDependencies'](this[_0x2cc9f8(0x1b9)],[[exports['DesktopLiveShareController']]]);}},A(exports['UniverLiveSharePlugin'],_0x6be33(0x199),o[_0x6be33(0x1cb)]['UNIVER_UNKNOWN']),A(exports[_0x6be33(0x243)],_0x6be33(0x19f),oe),exports[_0x6be33(0x243)]=re([o['DependentOn'](b['UniverCollaborationClientPlugin']),N(0x1,o['Inject'](o[_0x6be33(0x25f)])),N(0x2,o[_0x6be33(0x26b)])],exports[_0x6be33(0x243)]),exports['LiveShare']=$,exports[_0x6be33(0x252)]=E,exports['LiveShareStatus']=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x2284b3=_0x2a73;(function(_0x331e0f,_0x56b98e){const _0x468944=_0x2a73,_0x3f687d=_0x331e0f();while(!![]){try{const _0x553d88=-parseInt(_0x468944(0x1ad))/0x1*(parseInt(_0x468944(0x1bd))/0x2)+-parseInt(_0x468944(0x1c3))/0x3*(parseInt(_0x468944(0x1b9))/0x4)+parseInt(_0x468944(0x1b4))/0x5+-parseInt(_0x468944(0x1b5))/0x6*(parseInt(_0x468944(0x1ab))/0x7)+parseInt(_0x468944(0x1aa))/0x8+-parseInt(_0x468944(0x1b3))/0x9+parseInt(_0x468944(0x1c0))/0xa*(parseInt(_0x468944(0x1bb))/0xb);if(_0x553d88===_0x56b98e)break;else _0x3f687d['push'](_0x3f687d['shift']());}catch(_0x411aed){_0x3f687d['push'](_0x3f687d['shift']());}}}(_0x5950,0x98b80));function _0x5950(){const _0x155d29=['_initialize','521496XBElMj','2942555LKLqkb','1685382eVzrrq','getSheetId','getActiveWorkbook','stopFollowing','92ZlyCab','startRow','550iULHjU','tryStartPresenting','229202xeVKqD','syncExecuteCommand','extend','178230qnVvLX','No\x20active\x20workbook\x20found.','getLiveShareCoordinatorSync','87537kMrshX','startFollowing','_commandService','getStatus','getActiveSheet','getId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopPresenting','getRenderById','_injector','startColumn','getUnitId','6657824kXGzPq','21exHixp','IDLE','1XqgIIn','PRESENTING','startPresenting','executeCommand','get'];_0x5950=function(){return _0x155d29;};return _0x5950();}import{LiveShareController as _0x46f7e9,LiveShareStatus as _0x5f0174}from'@univerjs-pro/live-share';import{IRenderManagerService as _0xe13cf2}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x24c9fb}from'@univerjs/sheets';import{SetScrollOperation as _0x431eb8}from'@univerjs/sheets-ui';import{FRange as _0x4c30e7}from'@univerjs/sheets/facade';import{FUniver as _0x5cddf1,FEnum as _0x276510}from'@univerjs/core/facade';class I extends _0x4c30e7{[_0x2284b3(0x1b2)](_0x23c393,_0x582871,_0x1f15c7,_0x27f3bb,_0x128463){const _0x5ccaaa=_0x2284b3,_0x34d743=_0x23c393[_0x5ccaaa(0x1b1)](_0x46f7e9),_0x5f1fe7=_0x23c393[_0x5ccaaa(0x1b1)](_0xe13cf2),_0x393756=_0x582871[_0x5ccaaa(0x1ce)](),_0x3b8f65=_0x582871[_0x5ccaaa(0x1c7)](),_0x32f0c2=_0x34d743['getLiveShareCoordinatorSync'](_0x393756);(_0x32f0c2==null?void 0x0:_0x32f0c2['getStatus']())!==_0x5f0174[_0x5ccaaa(0x1ae)]||(_0x1f15c7['getSheetId']()!==_0x3b8f65['getSheetId']()&&this[_0x5ccaaa(0x1c5)][_0x5ccaaa(0x1b0)](_0x24c9fb['id'],{'unitId':_0x393756,'subUnitId':_0x1f15c7[_0x5ccaaa(0x1b6)]()}),!_0x5f1fe7[_0x5ccaaa(0x1cb)](_0x393756))||_0x128463[_0x5ccaaa(0x1be)](_0x431eb8['id'],{'unitId':_0x582871[_0x5ccaaa(0x1ce)](),'sheetId':_0x1f15c7[_0x5ccaaa(0x1b6)](),'sheetViewStartRow':_0x27f3bb[_0x5ccaaa(0x1ba)],'sheetViewStartColumn':_0x27f3bb[_0x5ccaaa(0x1cd)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4c30e7['extend'](I);class m extends _0x5cddf1{['getLiveShareStatus'](){const _0x132603=_0x2284b3;var _0x44b715,_0x2431e7;const _0x548618=this[_0x132603(0x1cc)][_0x132603(0x1b1)](_0x46f7e9),_0x3e76a9=(_0x44b715=this[_0x132603(0x1b7)]())==null?void 0x0:_0x44b715[_0x132603(0x1c8)]();if(!_0x3e76a9)throw new Error(_0x132603(0x1c1));const _0x48276d=_0x548618[_0x132603(0x1c2)](_0x3e76a9);return(_0x2431e7=_0x48276d==null?void 0x0:_0x48276d[_0x132603(0x1c6)]())!=null?_0x2431e7:_0x5f0174[_0x132603(0x1ac)];}[_0x2284b3(0x1c4)](){const _0x1dfcd5=_0x2284b3;var _0x5c972e;const _0x13b22f=this['_injector']['get'](_0x46f7e9),_0x1e1414=(_0x5c972e=this['getActiveWorkbook']())==null?void 0x0:_0x5c972e[_0x1dfcd5(0x1c8)]();if(!_0x1e1414)throw new Error(_0x1dfcd5(0x1c1));const _0x5bce7c=_0x13b22f[_0x1dfcd5(0x1c2)](_0x1e1414);if(!_0x5bce7c)throw new Error(_0x1dfcd5(0x1c9));_0x5bce7c['startFollowing']();}[_0x2284b3(0x1b8)](){const _0x15f16d=_0x2284b3;var _0x3b87cc;const _0x16117d=this[_0x15f16d(0x1cc)][_0x15f16d(0x1b1)](_0x46f7e9),_0x4eb8f8=(_0x3b87cc=this['getActiveWorkbook']())==null?void 0x0:_0x3b87cc['getId']();if(!_0x4eb8f8)throw new Error(_0x15f16d(0x1c1));const _0x224785=_0x16117d[_0x15f16d(0x1c2)](_0x4eb8f8);if(!_0x224785)throw new Error(_0x15f16d(0x1c9));_0x224785['stopFollowing']();}[_0x2284b3(0x1af)](){const _0x219fc7=_0x2284b3;var _0x3b517a;const _0x3f845c=this[_0x219fc7(0x1cc)][_0x219fc7(0x1b1)](_0x46f7e9),_0x462ac0=(_0x3b517a=this[_0x219fc7(0x1b7)]())==null?void 0x0:_0x3b517a[_0x219fc7(0x1c8)]();if(!_0x462ac0)throw new Error(_0x219fc7(0x1c1));const _0x3d594d=_0x3f845c[_0x219fc7(0x1c2)](_0x462ac0);if(!_0x3d594d)throw new Error(_0x219fc7(0x1c9));_0x3d594d[_0x219fc7(0x1bc)]();}[_0x2284b3(0x1ca)](){const _0x3d8d97=_0x2284b3;var _0x1aa3f4;const _0xa37566=this[_0x3d8d97(0x1cc)][_0x3d8d97(0x1b1)](_0x46f7e9),_0x1deada=(_0x1aa3f4=this[_0x3d8d97(0x1b7)]())==null?void 0x0:_0x1aa3f4[_0x3d8d97(0x1c8)]();if(!_0x1deada)throw new Error('No\x20active\x20workbook\x20found.');const _0x83508f=_0xa37566[_0x3d8d97(0x1c2)](_0x1deada);if(!_0x83508f)throw new Error(_0x3d8d97(0x1c9));_0x83508f[_0x3d8d97(0x1ca)]();}}_0x5cddf1[_0x2284b3(0x1bf)](m);class C extends _0x276510{get['LiveShareStatusEnum'](){return _0x5f0174;}}function _0x2a73(_0x41ea3a,_0x43dcfe){_0x41ea3a=_0x41ea3a-0x1aa;const _0x595010=_0x5950();let _0x2a73b1=_0x595010[_0x41ea3a];return _0x2a73b1;}_0x276510[_0x2284b3(0x1bf)](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xedc892=_0x3cc7;(function(_0x4b9575,_0x1e2f72){const _0x20b3c8=_0x3cc7,_0x195cb1=_0x4b9575();while(!![]){try{const _0x4c3ef0=parseInt(_0x20b3c8(0x23d))/0x1+-parseInt(_0x20b3c8(0x20d))/0x2*(-parseInt(_0x20b3c8(0x232))/0x3)+parseInt(_0x20b3c8(0x1ea))/0x4+-parseInt(_0x20b3c8(0x1fe))/0x5*(parseInt(_0x20b3c8(0x251))/0x6)+-parseInt(_0x20b3c8(0x211))/0x7+-parseInt(_0x20b3c8(0x1eb))/0x8+-parseInt(_0x20b3c8(0x222))/0x9*(parseInt(_0x20b3c8(0x1d9))/0xa);if(_0x4c3ef0===_0x1e2f72)break;else _0x195cb1['push'](_0x195cb1['shift']());}catch(_0x42798e){_0x195cb1['push'](_0x195cb1['shift']());}}}(_0x348f,0x32e99));var J=Object[_0xedc892(0x21e)],K=(_0x2d6677,_0x258928,_0x1f0849)=>_0x258928 in _0x2d6677?J(_0x2d6677,_0x258928,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f0849}):_0x2d6677[_0x258928]=_0x1f0849,u=(_0x9b796b,_0x345226,_0x4fb5d3)=>K(_0x9b796b,typeof _0x345226!=_0xedc892(0x23b)?_0x345226+'':_0x345226,_0x4fb5d3);import{Disposable as _0x2c6245,toDisposable as _0x370c9d,IUniverInstanceService as _0xe4df5a,Inject as _0x13d23a,Injector as _0x10288a,IConfigService as _0x256701,ICommandService as _0x429288,RxDisposable as _0x24c185,UniverInstanceType as _0x380b27,DisposableCollection as _0x3778d7,CommandType as _0x26e63e,DependentOn as _0xb36d0e,Plugin as _0x12b31b,merge as _0x5e76a6,registerDependencies as _0x267437,mergeOverrideWithDependencies as _0x23228f,touchDependencies as _0x8c5d0e}from'@univerjs/core';import{useDependency as _0x581717,useObservable as _0x142671,IUIPartsService as _0x53fcdb,BuiltInUIPart as _0x55d8d3,connectInjector as _0xe163e5}from'@univerjs/ui';import{jsx as _0x225d4d,jsxs as _0x11166e,Fragment as _0x53d828}from'react/jsx-runtime';import{Dropdown as _0x5db040,clsx as _0x51da1a,Button as _0x5bb715}from'@univerjs/design';import{useRef as _0x28ff40,createElement as _0x2f2ab1,forwardRef as _0x34a321,useState as _0x4f5850,useEffect as _0x25bbaa}from'react';import{CollaborationEvent as _0x44628f,parseProtocolChangeset as _0x3b350d}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x54f713,SessionStatus as _0x3c705c,UniverCollaborationClientPlugin as _0x475f3e}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x2b4527,SetWorksheetActiveOperation as _0x54cb8d}from'@univerjs/sheets';import{BehaviorSubject as _0x132971,Subject as _0x23200b}from'rxjs';import{takeUntil as _0x56fcb7,throttleTime as _0x557fbb}from'rxjs/operators';import{SetZoomRatioOperation as _0x45b804,SetScrollOperation as _0x111b22}from'@univerjs/sheets-ui';function k({ref:_0x42484b,..._0x522a45}){const _0x3c2910=_0xedc892,{icon:_0x5cd619,id:_0x5e6b71,className:_0x551552,extend:_0x235c6d,..._0x1436d9}=_0x522a45,_0x557645=(_0x3c2910(0x25e)+_0x5e6b71+'\x20'+(_0x551552||''))[_0x3c2910(0x25b)](),_0x1fb891=_0x28ff40('_'+Oe());return G(_0x5cd619,''+_0x5e6b71,{'defIds':_0x5cd619[_0x3c2910(0x262)],'idSuffix':_0x1fb891[_0x3c2910(0x213)]},{'ref':_0x42484b,'className':_0x557645,..._0x1436d9},_0x235c6d);}function G(_0x5a4cde,_0x17a6ba,_0x2fda6b,_0x1b1e65,_0x2f2ab7){const _0x270390=_0xedc892;return _0x2f2ab1(_0x5a4cde[_0x270390(0x252)],{'key':_0x17a6ba,...be(_0x5a4cde,_0x2fda6b,_0x2f2ab7),..._0x1b1e65},(Ee(_0x5a4cde,_0x2fda6b)[_0x270390(0x276)]||[])[_0x270390(0x1e3)]((_0x150884,_0x2c3cea)=>G(_0x150884,_0x17a6ba+'-'+_0x5a4cde[_0x270390(0x252)]+'-'+_0x2c3cea,_0x2fda6b,void 0x0,_0x2f2ab7)));}function be(_0x2711a1,_0x3c2b6b,_0x56ca35){const _0x11d003=_0xedc892,_0x3999fb={..._0x2711a1['attrs']};_0x56ca35!=null&&_0x56ca35[_0x11d003(0x1ed)]&&_0x3999fb[_0x11d003(0x1db)]===_0x11d003(0x1ed)&&(_0x3999fb[_0x11d003(0x1db)]=_0x56ca35['colorChannel1']),_0x2711a1['tag']===_0x11d003(0x22c)&&_0x3999fb['id']&&(_0x3999fb['id']=_0x3999fb['id']+_0x3c2b6b['idSuffix']),Object[_0x11d003(0x223)](_0x3999fb)[_0x11d003(0x22a)](([_0x432074,_0x58f348])=>{const _0x482981=_0x11d003;_0x432074==='mask'&&typeof _0x58f348==_0x482981(0x233)&&(_0x3999fb[_0x432074]=_0x58f348[_0x482981(0x248)](/url\(#(.*)\)/,_0x482981(0x1ff)+_0x3c2b6b[_0x482981(0x25d)]+')'));});const {defIds:_0x5ee9c0}=_0x3c2b6b;return!_0x5ee9c0||_0x5ee9c0['length']===0x0||(_0x2711a1[_0x11d003(0x252)]==='use'&&_0x3999fb[_0x11d003(0x1e4)]&&(_0x3999fb[_0x11d003(0x1e4)]=_0x3999fb[_0x11d003(0x1e4)]+_0x3c2b6b[_0x11d003(0x25d)]),Object[_0x11d003(0x223)](_0x3999fb)[_0x11d003(0x22a)](([_0x15e3c3,_0x46515e])=>{const _0x432e48=_0x11d003;typeof _0x46515e==_0x432e48(0x233)&&(_0x3999fb[_0x15e3c3]=_0x46515e[_0x432e48(0x248)](/url\(#(.*)\)/,_0x432e48(0x1ff)+_0x3c2b6b[_0x432e48(0x25d)]+')'));})),_0x3999fb;}function Ee(_0x4ef108,_0x468f1b){const _0xd9ac62=_0xedc892;var _0x4642b6;const {defIds:_0x47faf8}=_0x468f1b;return!_0x47faf8||_0x47faf8[_0xd9ac62(0x230)]===0x0?_0x4ef108:_0x4ef108[_0xd9ac62(0x252)]==='defs'&&((_0x4642b6=_0x4ef108[_0xd9ac62(0x276)])!=null&&_0x4642b6['length'])?{..._0x4ef108,'children':_0x4ef108['children'][_0xd9ac62(0x1e3)](_0x157840=>typeof _0x157840[_0xd9ac62(0x1e7)]['id']=='string'&&_0x47faf8&&_0x47faf8[_0xd9ac62(0x255)](_0x157840[_0xd9ac62(0x1e7)]['id'])?{..._0x157840,'attrs':{..._0x157840[_0xd9ac62(0x1e7)],'id':_0x157840['attrs']['id']+_0x468f1b['idSuffix']}}:_0x157840)}:_0x4ef108;}function Oe(){const _0x5ac28c=_0xedc892;return Math[_0x5ac28c(0x21c)]()[_0x5ac28c(0x22d)](0x24)[_0x5ac28c(0x277)](0x2,0x8);}k[_0xedc892(0x250)]=_0xedc892(0x26d);const we={'tag':_0xedc892(0x239),'attrs':{'xmlns':_0xedc892(0x23e),'fill':_0xedc892(0x1fb),'viewBox':_0xedc892(0x1e1),'width':'1em','height':'1em'},'children':[{'tag':_0xedc892(0x202),'attrs':{'fill':_0xedc892(0x216),'d':_0xedc892(0x264)}},{'tag':_0xedc892(0x202),'attrs':{'fill':_0xedc892(0x216),'d':_0xedc892(0x257),'fillRule':_0xedc892(0x263),'clipRule':_0xedc892(0x263)}}]},W=_0x34a321(function(_0x17bb7c,_0x5f2001){const _0x3a2b9e=_0xedc892;return _0x2f2ab1(k,Object[_0x3a2b9e(0x1f1)]({},_0x17bb7c,{'id':_0x3a2b9e(0x256),'ref':_0x5f2001,'icon':we}));});W['displayName']=_0xedc892(0x1e0);class L extends _0x2c6245{constructor(){const _0x2e6d12=_0xedc892;super(...arguments),u(this,_0x2e6d12(0x1ef),new Set()),u(this,_0x2e6d12(0x1cf),new Set());}[_0xedc892(0x22e)](_0x55c6b7){const _0x58ff75=_0xedc892;return this['_sharedOperations'][_0x58ff75(0x27b)](_0x55c6b7),_0x370c9d(()=>this[_0x58ff75(0x1ef)][_0x58ff75(0x273)](_0x55c6b7));}[_0xedc892(0x1e5)](_0x7910f){const _0x487efd=_0xedc892;return this['_reporters'][_0x487efd(0x27b)](_0x7910f),_0x370c9d(()=>this[_0x487efd(0x1cf)][_0x487efd(0x273)](_0x7910f));}['shouldShareOperation'](_0x5e58e3){const _0x1fd48b=_0xedc892;return this[_0x1fd48b(0x1ef)][_0x1fd48b(0x1cd)](_0x5e58e3);}['getInitialStates'](_0x5ac394){const _0x4679af=_0xedc892;return Array[_0x4679af(0x228)](this[_0x4679af(0x1cf)])[_0x4679af(0x1e3)](_0x582ff4=>_0x582ff4(_0x5ac394));}}var Ne=Object[_0xedc892(0x274)],Y=(_0x1b5711,_0x569921,_0x4d0359,_0x30c73f)=>{const _0x59326b=_0xedc892;for(var _0x32a288=_0x30c73f>0x1?void 0x0:_0x30c73f?Ne(_0x569921,_0x4d0359):_0x569921,_0xf83041=_0x1b5711[_0x59326b(0x230)]-0x1,_0x43f197;_0xf83041>=0x0;_0xf83041--)(_0x43f197=_0x1b5711[_0xf83041])&&(_0x32a288=_0x43f197(_0x32a288)||_0x32a288);return _0x32a288;},_=(_0x1ee33d,_0x45831d)=>(_0x108768,_0x28a48d)=>_0x45831d(_0x108768,_0x28a48d,_0x1ee33d);let S=class extends _0x24c185{constructor(_0x3eab96,_0x960cb1,_0x263474){const _0x1ac566=_0xedc892;super(),u(this,'_entities',new Map()),(this['_univerInstanceService']=_0x3eab96,this[_0x1ac566(0x1fa)]=_0x960cb1,this[_0x1ac566(0x26e)]=_0x263474,this[_0x1ac566(0x258)]());}async[_0xedc892(0x271)](_0x165e6d){const _0x409167=_0xedc892;return this[_0x409167(0x249)][_0x409167(0x1cd)](_0x165e6d)||await this['_startLiveShareCoordinator'](_0x165e6d),this[_0x409167(0x249)]['get'](_0x165e6d);}[_0xedc892(0x22f)](_0x914c06){const _0x37d5ec=_0xedc892;var _0x5427b2;return(_0x5427b2=this['_entities'][_0x37d5ec(0x269)](_0x914c06))!=null?_0x5427b2:null;}[_0xedc892(0x258)](){const _0x454741=_0xedc892;this[_0x454741(0x229)][_0x454741(0x1e6)](_0x380b27[_0x454741(0x1d8)])[_0x454741(0x20f)](_0x56fcb7(this[_0x454741(0x1f6)]))[_0x454741(0x1d7)](async _0x10c949=>{const _0x402939=_0x454741,_0x5a7777=_0x10c949[_0x402939(0x20a)]();this[_0x402939(0x249)][_0x402939(0x1cd)](_0x5a7777)||this[_0x402939(0x208)](_0x5a7777);}),this['_univerInstanceService'][_0x454741(0x23c)](_0x380b27[_0x454741(0x1d8)])[_0x454741(0x20f)](_0x56fcb7(this[_0x454741(0x1f6)]))[_0x454741(0x1d7)](_0x4870ba=>{const _0x2a9375=_0x454741,_0x3cc4da=_0x4870ba[_0x2a9375(0x20a)](),_0xd29391=this[_0x2a9375(0x249)]['get'](_0x3cc4da);_0xd29391==null||_0xd29391['dispose']();});}async['_startLiveShareCoordinator'](_0x18fe8d){const _0x3acc0a=_0xedc892,_0x4932df=await this['_collabSessionService'][_0x3acc0a(0x1fc)](_0x18fe8d),_0x5853ef=this['_injector'][_0x3acc0a(0x203)](N,_0x18fe8d,_0x4932df);return _0x5853ef[_0x3acc0a(0x21d)](),this[_0x3acc0a(0x249)][_0x3acc0a(0x210)](_0x18fe8d,_0x5853ef),_0x5853ef;}};S=Y([_(0x0,_0xe4df5a),_(0x1,_0x13d23a(_0x10288a)),_(0x2,_0x13d23a(_0x54f713))],S);var c=(_0x329967=>(_0x329967['OFFLINE']='offline',_0x329967[_0xedc892(0x27a)]=_0xedc892(0x200),_0x329967[_0xedc892(0x1e8)]=_0xedc892(0x201),_0x329967[_0xedc892(0x259)]='not-following',_0x329967['PRESENTING']='presenting',_0x329967))(c||{});const Ce=_0xedc892(0x231),De=0xc8;let N=class extends _0x24c185{constructor(_0x28f087,_0x39fca6,_0x40fbba,_0x5a8251,_0x2790fb){const _0x122c12=_0xedc892;super(),u(this,_0x122c12(0x1e2),new _0x132971('idle')),u(this,_0x122c12(0x21f),this[_0x122c12(0x1e2)][_0x122c12(0x226)]()),u(this,_0x122c12(0x258),!0x1),u(this,_0x122c12(0x270),null),u(this,'_presenter',null),(this[_0x122c12(0x21a)]=_0x28f087,this[_0x122c12(0x265)]=_0x39fca6,this[_0x122c12(0x219)]=_0x40fbba,this[_0x122c12(0x268)]=_0x5a8251,this['_commandService']=_0x2790fb);}get[_0xedc892(0x1d3)](){const _0x467a10=_0xedc892;return this[_0x467a10(0x1e2)][_0x467a10(0x253)]();}['dispose'](){const _0x5722e9=_0xedc892;var _0x5eb3aa;(_0x5eb3aa=this[_0x5722e9(0x270)])==null||_0x5eb3aa[_0x5722e9(0x25a)](),this['_status$']['next'](_0x5722e9(0x200)),this['_status$']['complete']();}[_0xedc892(0x261)](){const _0x262022=_0xedc892;return this[_0x262022(0x1d3)];}['init'](){const _0xb9b739=_0xedc892;this[_0xb9b739(0x258)]||(this[_0xb9b739(0x258)]=!0x0,this[_0xb9b739(0x265)][_0xb9b739(0x1ce)][_0xb9b739(0x20f)](_0x56fcb7(this['dispose$']))['subscribe'](_0x19b6cd=>{const _0x18a384=_0xb9b739;switch(_0x19b6cd){case _0x3c705c[_0x18a384(0x242)]:this[_0x18a384(0x275)]();break;case _0x3c705c['ONLINE']:this[_0x18a384(0x266)]();break;}}),this[_0xb9b739(0x265)][_0xb9b739(0x227)]['pipe'](_0x56fcb7(this[_0xb9b739(0x1f6)]))[_0xb9b739(0x1d7)](_0x7da16a=>{const _0xb405e3=_0xb9b739,{eventID:_0x25eb2d}=_0x7da16a;switch(_0x25eb2d){case _0x44628f[_0xb405e3(0x1f7)]:this['_handleNewHost'](_0x7da16a);break;case _0x44628f[_0xb405e3(0x25f)]:this[_0xb405e3(0x1d5)](_0x7da16a);break;case _0x44628f[_0xb405e3(0x1d2)]:this[_0xb405e3(0x24d)]();break;case _0x44628f[_0xb405e3(0x24c)]:this[_0xb405e3(0x218)](_0x7da16a);break;}}));}[_0xedc892(0x21b)](){const _0x57db0c=_0xedc892;this['_collabSession']['send']({'eventID':_0x44628f[_0x57db0c(0x1f9)],'data':{'unitID':this[_0x57db0c(0x21a)],'userID':this[_0x57db0c(0x265)][_0x57db0c(0x1f8)]()}},this['_unitID']);}[_0xedc892(0x247)](){const _0x44434b=_0xedc892;this[_0x44434b(0x1d3)]===_0x44434b(0x225)&&(this[_0x44434b(0x1e2)][_0x44434b(0x1dc)](_0x44434b(0x200)),this[_0x44434b(0x265)][_0x44434b(0x26c)]({'eventID':_0x44628f['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x44434b(0x21a)]));}[_0xedc892(0x220)](){const _0x326467=_0xedc892;this[_0x326467(0x1d3)]==='not-following'&&(this[_0x326467(0x1e2)][_0x326467(0x1dc)](_0x326467(0x201)),this[_0x326467(0x22b)]());}[_0xedc892(0x1ec)](){const _0x148f64=_0xedc892;this[_0x148f64(0x1d3)]==='following'&&this[_0x148f64(0x224)]();}['_handleNewHost'](_0x4bf851){const _0x510927=_0xedc892,{presenter:_0x32d6dc}=_0x4bf851['data'],_0x203789=this[_0x510927(0x265)][_0x510927(0x1f8)]();this[_0x510927(0x221)]=_0x32d6dc,_0x32d6dc===_0x203789?(this[_0x510927(0x224)](),this['_startPresenting']()):this[_0x510927(0x1d3)]!==_0x510927(0x23f)&&(this[_0x510927(0x1da)](),this[_0x510927(0x22b)]());}['_fetchOperations'](){const _0x2e6d51=_0xedc892,_0x85475c={'eventID':_0x44628f['LIVESHARE_FETCH_OPERATIONS']};this[_0x2e6d51(0x265)][_0x2e6d51(0x26c)](_0x85475c,this[_0x2e6d51(0x21a)]);}[_0xedc892(0x24d)](){const _0x4f0243=_0xedc892;this[_0x4f0243(0x221)]=null,this[_0x4f0243(0x1d3)]!==_0x4f0243(0x225)&&this[_0x4f0243(0x20c)]();}[_0xedc892(0x218)](_0x1e1cc1){const _0xd5d4dd=_0xedc892;if(this['_status']===_0xd5d4dd(0x201)&&this[_0xd5d4dd(0x221)]===_0x1e1cc1[_0xd5d4dd(0x244)][_0xd5d4dd(0x260)]){const _0x5a3f7b=_0x3b350d(_0x1e1cc1[_0xd5d4dd(0x244)])[_0xd5d4dd(0x26f)][_0xd5d4dd(0x1f5)]()[_0xd5d4dd(0x212)](_0xb17f2=>_0xb17f2['id']===_0x2b4527['id']);if(_0x5a3f7b){const _0x32bb56=_0x5a3f7b[_0xd5d4dd(0x1e9)]['unitId'],_0x2fc235=_0x5a3f7b[_0xd5d4dd(0x1e9)][_0xd5d4dd(0x207)]['id'];setTimeout(()=>{const _0x100287=_0xd5d4dd;this[_0x100287(0x25c)][_0x100287(0x209)](_0x54cb8d['id'],{'unitId':_0x32bb56,'subUnitId':_0x2fc235},{'fromCollab':!0x0});});}}}[_0xedc892(0x1d0)](){const _0x1efefc=_0xedc892;this[_0x1efefc(0x1e2)]['next'](_0x1efefc(0x225));const _0x25344d=new Map(),_0x30b57e=this[_0x1efefc(0x270)]=new _0x3778d7();_0x30b57e['add'](_0x370c9d(()=>{const _0x32cdef=_0x1efefc;_0x25344d[_0x32cdef(0x22a)](_0x5bc67a=>_0x5bc67a[_0x32cdef(0x215)]()),_0x25344d[_0x32cdef(0x27c)]();})),_0x30b57e[_0x1efefc(0x27b)](this[_0x1efefc(0x25c)][_0x1efefc(0x24e)](_0x4b0e85=>{const _0x201f35=_0x1efefc;var _0x3615b7;if(_0x4b0e85['type']!==_0x26e63e[_0x201f35(0x24a)]||!this['_liveShareService'][_0x201f35(0x1f2)](_0x4b0e85['id']))return;const {id:_0x49bf64}=_0x4b0e85;let _0x415fa7;_0x25344d['has'](_0x49bf64)?_0x415fa7=_0x25344d[_0x201f35(0x269)](_0x49bf64):(_0x415fa7=new _0x23200b(),_0x25344d[_0x201f35(0x210)](_0x49bf64,_0x415fa7),_0x415fa7[_0x201f35(0x20f)](_0x557fbb((_0x3615b7=this[_0x201f35(0x219)][_0x201f35(0x236)](Ce))!=null?_0x3615b7:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x201f35(0x1d7)](_0x371c6b=>{const _0x98b4ac=_0x201f35;this[_0x98b4ac(0x265)]['send']({'eventID':_0x44628f[_0x98b4ac(0x25f)],'data':{'unitID':this[_0x98b4ac(0x21a)],'operations':{[_0x371c6b['id']]:{'id':_0x371c6b['id'],'params':JSON[_0x98b4ac(0x254)](_0x371c6b[_0x98b4ac(0x1e9)])}}}},this[_0x98b4ac(0x21a)]);})),_0x415fa7[_0x201f35(0x1dc)](_0x4b0e85);})),this['_liveShareService']['getInitialStates'](this['_unitID'])[_0x1efefc(0x22a)](_0x4a7877=>this[_0x1efefc(0x265)][_0x1efefc(0x26c)]({'eventID':_0x44628f[_0x1efefc(0x25f)],'data':{'unitID':this[_0x1efefc(0x21a)],'operations':{[_0x4a7877['id']]:{'id':_0x4a7877['id'],'params':JSON[_0x1efefc(0x254)](_0x4a7877[_0x1efefc(0x1e9)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x41055f=_0xedc892;var _0x4d8c6a;this[_0x41055f(0x1e2)]['next']('idle'),(_0x4d8c6a=this[_0x41055f(0x270)])==null||_0x4d8c6a[_0x41055f(0x25a)](),this[_0x41055f(0x270)]=null;}['_startFollowing'](){const _0x46556f=_0xedc892;var _0x330500;(_0x330500=this['_commandDisposable'])==null||_0x330500[_0x46556f(0x25a)](),this[_0x46556f(0x1e2)]['next'](_0x46556f(0x201));}[_0xedc892(0x20c)](){const _0x190e43=_0xedc892;var _0x17f625;this['_status$'][_0x190e43(0x1dc)](_0x190e43(0x200)),(_0x17f625=this[_0x190e43(0x270)])==null||_0x17f625[_0x190e43(0x25a)](),this[_0x190e43(0x270)]=null;}[_0xedc892(0x224)](){const _0x1c26be=_0xedc892;var _0x5cd923;this[_0x1c26be(0x1e2)][_0x1c26be(0x1dc)](_0x1c26be(0x23f)),(_0x5cd923=this[_0x1c26be(0x270)])==null||_0x5cd923[_0x1c26be(0x25a)]();}[_0xedc892(0x1d5)](_0x21de4a){const _0x1c2ede=_0xedc892;if(['presenting',_0x1c2ede(0x23f),'offline'][_0x1c2ede(0x255)](this[_0x1c2ede(0x1d3)])||!_0x21de4a[_0x1c2ede(0x244)][_0x1c2ede(0x278)]||_0x21de4a[_0x1c2ede(0x244)][_0x1c2ede(0x278)]===this[_0x1c2ede(0x265)][_0x1c2ede(0x1f8)]())return;this[_0x1c2ede(0x1d3)]===_0x1c2ede(0x200)&&this[_0x1c2ede(0x22b)]();const _0x29b9d1=_0x21de4a['data'][_0x1c2ede(0x279)];Object['values'](_0x29b9d1)[_0x1c2ede(0x22a)](_0x8dcc2c=>{const _0x4fe24c=_0x1c2ede;this[_0x4fe24c(0x25c)][_0x4fe24c(0x209)](_0x8dcc2c['id'],_0x8dcc2c[_0x4fe24c(0x1e9)]?JSON[_0x4fe24c(0x245)](_0x8dcc2c['params']):null,{'fromCollab':!0x0});});}[_0xedc892(0x275)](){const _0x33229c=_0xedc892;var _0x5746e4;this[_0x33229c(0x1e2)]['next']('offline'),(_0x5746e4=this[_0x33229c(0x270)])==null||_0x5746e4[_0x33229c(0x25a)]();}[_0xedc892(0x266)](){const _0x277412=_0xedc892;this['_status$'][_0x277412(0x1dc)](_0x277412(0x200)),this[_0x277412(0x204)]();}};N=Y([_(0x2,_0x256701),_(0x3,_0x13d23a(L)),_(0x4,_0x429288)],N);function Le(){const _0x1ae4a7=_0xedc892,_0x5e5ceb=_0x581717(S),_0xa0e5b0=_0x581717(_0xe4df5a),_0x4c7a0b=_0x142671(()=>_0xa0e5b0[_0x1ae4a7(0x24f)](_0x380b27[_0x1ae4a7(0x1d8)]),void 0x0,!0x1,[]),[_0x1ed8c7,_0xf78217]=_0x4f5850(null),[_0x378e59,_0x4a680a]=_0x4f5850(c[_0x1ae4a7(0x27a)]),_0xaab986=_0x28ff40(null);return _0x25bbaa(()=>(_0x4c7a0b&&_0x5e5ceb[_0x1ae4a7(0x271)](_0x4c7a0b[_0x1ae4a7(0x20a)]())[_0x1ae4a7(0x23a)](_0xe99958=>{const _0x38b61f=_0x1ae4a7;_0xf78217(_0xe99958),_0xaab986[_0x38b61f(0x213)]=_0xe99958[_0x38b61f(0x21f)]['subscribe'](_0x43e0b6=>{_0x4a680a(_0x43e0b6);});}),()=>{const _0x197986=_0x1ae4a7;var _0x422a5e;(_0x422a5e=_0xaab986['current'])==null||_0x422a5e[_0x197986(0x206)](),_0xaab986[_0x197986(0x213)]=null;}),[_0x4c7a0b,_0x5e5ceb]),_0x1ed8c7?_0x225d4d(_0x5db040,{'align':_0x1ae4a7(0x267),'disabled':_0x378e59===c[_0x1ae4a7(0x242)],'className':_0x1ae4a7(0x241),'overlay':_0x225d4d(Re,{'status':_0x378e59,'coordinator':_0x1ed8c7}),'children':_0x225d4d(_0x1ae4a7(0x1df),{'className':_0x51da1a(_0x1ae4a7(0x1fd),{'univer-cursor-not-allowed':_0x378e59===c[_0x1ae4a7(0x242)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x378e59!==c[_0x1ae4a7(0x242)]}),'type':'button','children':_0x225d4d(W,{'className':_0x1ae4a7(0x272)})})}):null;}function _0x348f(){const _0x1346e3=['following','path','createInstance','_fetchOperations','onRendered','unsubscribe','sheet','_startLiveShareCoordinator','executeCommand','getUnitId','Start\x20following','_beIdle','552624BnqnTW','_config','pipe','set','2879492boXOAQ','find','current','default','complete','currentColor','Stop\x20following','_handleNewChangeSets','_configService','_unitID','tryStartPresenting','random','init','defineProperty','status$','startFollowing','_presenter','101754nTIEIQ','entries','_stopFollowing','presenting','asObservable','event$','from','_univerInstanceService','forEach','_startFollowing','mask','toString','registerSharedOperation','getLiveShareCoordinatorSync','length','SAME_OPERATION_SHARE_INTERVAL','3ZPnzWM','string','_uiPartsService','pluginName','getConfig','setConfig','live-share.config','svg','then','symbol','getTypeOfUnitDisposed$','343595usPFRp','http://www.w3.org/2000/svg','not-following','div','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','OFFLINE','PRESENTING','data','parse','You\x27re\x20following\x20the\x20presenter','stopPresenting','replace','_entities','OPERATION','override','NEW_CHANGESETS','_handleTerminate','onCommandExecuted','getCurrentTypeOfUnit$','displayName','6iFVfgo','tag','getValue','stringify','includes','live-share-icon','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_init','NOT_FOLLOWING','dispose','trim','_commandService','idSuffix','univerjs-icon\x20univerjs-icon-','LIVESHARE_OPERATION','memberID','getStatus','defIds','evenodd','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_collabSession','_handleOnline','end','_liveShareService','get','Start','univer-mb-3\x20univer-w-full\x20univer-text-sm','send','UniverIcon','_collabSessionService','mutations','_commandDisposable','getLiveShareCoordinator','univer-size-4','delete','getOwnPropertyDescriptor','_handleOffline','children','substring','presenter','operations','IDLE','add','clear','has','sessionStatus$','_reporters','_startPresenting','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_TERMINATE','_status','disposeWithMe','_handleOperation','UNIVER_UNKNOWN','subscribe','UNIVER_SHEET','40jGVmPM','_stopPresenting','fill','next','text','Stop\x20presenting','button','LiveShareIcon','0\x200\x2017\x2017','_status$','map','xlink:href','registerInitialStateReporter','getTypeOfUnitAdded$','attrs','FOLLOWING','params','897988JCuaja','347416HMpjHQ','stopFollowing','colorChannel1','_mountLiveShare','_sharedOperations','Present\x20this\x20document','assign','shouldShareOperation','onStarting','You\x27re\x20presenting\x20the\x20document','reverse','dispose$','LIVESHARE_NEW_HOST','getMemberID','LIVESHARE_REQUEST_HOST','_injector','none','requireSession','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','679300echrBK','url(#$1','idle'];_0x348f=function(){return _0x1346e3;};return _0x348f();}function Re(_0x2ff684){const _0x3be840=_0xedc892,{status:_0x3a93ee,coordinator:_0x488e4b}=_0x2ff684;switch(_0x3a93ee){case c[_0x3be840(0x27a)]:return _0x225d4d($e,{'coordinator':_0x488e4b});case c[_0x3be840(0x1e8)]:return _0x225d4d(xe,{'coordinator':_0x488e4b});case c['NOT_FOLLOWING']:return _0x225d4d(Pe,{'coordinator':_0x488e4b});case c[_0x3be840(0x242)]:return _0x225d4d(Te,{});case c[_0x3be840(0x243)]:return _0x225d4d(Ae,{'coordinator':_0x488e4b});default:return null;}}function $e(_0x457956){const _0x34c4cf=_0xedc892,{coordinator:_0x49f9ed}=_0x457956;return _0x11166e(_0x53d828,{'children':[_0x225d4d(_0x34c4cf(0x240),{'className':_0x34c4cf(0x26b),'children':_0x34c4cf(0x1f0)}),_0x225d4d(_0x5bb715,{'onClick':()=>_0x49f9ed[_0x34c4cf(0x21b)](),'children':_0x34c4cf(0x26a)})]});}function xe(_0x262333){const _0x36e7b7=_0xedc892,{coordinator:_0x591b10}=_0x262333;return _0x11166e(_0x53d828,{'children':[_0x225d4d(_0x36e7b7(0x240),{'className':_0x36e7b7(0x26b),'children':_0x36e7b7(0x246)}),_0x225d4d(_0x5bb715,{'onClick':()=>_0x591b10[_0x36e7b7(0x1ec)](),'children':_0x36e7b7(0x217)})]});}function Pe(_0x2bb250){const _0x36d0ce=_0xedc892,{coordinator:_0x26bf61}=_0x2bb250;return _0x11166e(_0x53d828,{'children':[_0x225d4d(_0x36d0ce(0x240),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x225d4d(_0x5bb715,{'variant':_0x36d0ce(0x1dd),'onClick':()=>_0x26bf61[_0x36d0ce(0x220)](),'children':_0x36d0ce(0x20b)})]});}function Ae(_0x27e2f9){const _0x3bc660=_0xedc892,{coordinator:_0x375be9}=_0x27e2f9;return _0x11166e(_0x53d828,{'children':[_0x225d4d(_0x3bc660(0x240),{'className':_0x3bc660(0x26b),'children':_0x3bc660(0x1f4)}),_0x225d4d(_0x5bb715,{'variant':_0x3bc660(0x214),'onClick':()=>_0x375be9[_0x3bc660(0x247)](),'children':_0x3bc660(0x1de)})]});}function Te(){return _0x225d4d(_0x53d828,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0xedc892(0x274)],He=(_0x1a1a96,_0x51788a,_0x455f35,_0x3bee38)=>{const _0x229206=_0xedc892;for(var _0x119ecb=_0x3bee38>0x1?void 0x0:_0x3bee38?Fe(_0x51788a,_0x455f35):_0x51788a,_0x29e413=_0x1a1a96[_0x229206(0x230)]-0x1,_0x22d6af;_0x29e413>=0x0;_0x29e413--)(_0x22d6af=_0x1a1a96[_0x29e413])&&(_0x119ecb=_0x22d6af(_0x119ecb)||_0x119ecb);return _0x119ecb;},A=(_0x4471fb,_0x4d04d1)=>(_0x805e00,_0xeb1e1f)=>_0x4d04d1(_0x805e00,_0xeb1e1f,_0x4471fb);let m=class extends _0x2c6245{constructor(_0x5637b0,_0x5dd7bd){const _0x4d8443=_0xedc892;super(),this[_0x4d8443(0x1fa)]=_0x5637b0,this[_0x4d8443(0x234)]=_0x5dd7bd,this[_0x4d8443(0x1ee)]();}[_0xedc892(0x1ee)](){const _0x7d59b2=_0xedc892;this[_0x7d59b2(0x1d4)](this['_uiPartsService']['registerComponent'](_0x55d8d3['HEADER_MENU'],()=>_0xe163e5(Le,this[_0x7d59b2(0x1fa)])));}};m=He([A(0x0,_0x13d23a(_0x10288a)),A(0x1,_0x53fcdb)],m);const ye=_0xedc892(0x238),T={};function _0x3cc7(_0x5f2cf0,_0x4c0bcf){_0x5f2cf0=_0x5f2cf0-0x1cd;const _0x348f79=_0x348f();let _0x3cc76f=_0x348f79[_0x5f2cf0];return _0x3cc76f;}var Ue=Object[_0xedc892(0x274)],Ve=(_0x3e4803,_0x3e4607,_0x130aa9,_0x569e8b)=>{const _0xf0d2cf=_0xedc892;for(var _0x259885=_0x569e8b>0x1?void 0x0:_0x569e8b?Ue(_0x3e4607,_0x130aa9):_0x3e4607,_0x5ee392=_0x3e4803[_0xf0d2cf(0x230)]-0x1,_0x5f2a10;_0x5ee392>=0x0;_0x5ee392--)(_0x5f2a10=_0x3e4803[_0x5ee392])&&(_0x259885=_0x5f2a10(_0x259885)||_0x259885);return _0x259885;},je=(_0x4aabf6,_0x1c2638)=>(_0x402881,_0x393e1d)=>_0x1c2638(_0x402881,_0x393e1d,_0x4aabf6);let I=class extends _0x2c6245{constructor(_0xe4c478){super(),this['_liveShareService']=_0xe4c478,this['_init']();}[_0xedc892(0x258)](){const _0x84dd91=_0xedc892;[_0x45b804['id'],_0x111b22['id'],_0x54cb8d['id']][_0x84dd91(0x22a)](_0x451986=>{const _0x42c5ac=_0x84dd91;this[_0x42c5ac(0x1d4)](this['_liveShareService']['registerSharedOperation'](_0x451986));});}};I=Ve([je(0x0,_0x13d23a(L))],I);var Me=Object[_0xedc892(0x21e)],ke=Object[_0xedc892(0x274)],Ge=(_0x2deeed,_0x12c39d,_0x240a0b)=>_0x12c39d in _0x2deeed?Me(_0x2deeed,_0x12c39d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x240a0b}):_0x2deeed[_0x12c39d]=_0x240a0b,We=(_0x517bfd,_0x55554e,_0x388b67,_0x5af153)=>{const _0x30704a=_0xedc892;for(var _0x18cafa=_0x5af153>0x1?void 0x0:_0x5af153?ke(_0x55554e,_0x388b67):_0x55554e,_0x1c32b3=_0x517bfd[_0x30704a(0x230)]-0x1,_0x4707a0;_0x1c32b3>=0x0;_0x1c32b3--)(_0x4707a0=_0x517bfd[_0x1c32b3])&&(_0x18cafa=_0x4707a0(_0x18cafa)||_0x18cafa);return _0x18cafa;},F=(_0x15ccf1,_0x436400)=>(_0x1d6097,_0x54581d)=>_0x436400(_0x1d6097,_0x54581d,_0x15ccf1),B=(_0x5ee4a6,_0x329ff2,_0x1d90c4)=>Ge(_0x5ee4a6,typeof _0x329ff2!=_0xedc892(0x23b)?_0x329ff2+'':_0x329ff2,_0x1d90c4);const Ye=_0xedc892(0x1d1);let b=class extends _0x12b31b{constructor(_0xe53ffb=T,_0x20726b,_0x5baba9){const _0x3082db=_0xedc892;super(),this['_config']=_0xe53ffb,this[_0x3082db(0x1fa)]=_0x20726b,this[_0x3082db(0x219)]=_0x5baba9;const {..._0x59c0f1}=_0x5e76a6({},T,this[_0x3082db(0x20e)]);this[_0x3082db(0x219)][_0x3082db(0x237)](ye,_0x59c0f1);}[_0xedc892(0x1f3)](){const _0x4c3234=_0xedc892;_0x267437(this['_injector'],_0x23228f([[L],[S],[I],[m]],this['_config'][_0x4c3234(0x24b)])),_0x8c5d0e(this[_0x4c3234(0x1fa)],[[I]]);}[_0xedc892(0x205)](){const _0x2a827f=_0xedc892;_0x8c5d0e(this[_0x2a827f(0x1fa)],[[m]]);}};B(b,'type',_0x380b27[_0xedc892(0x1d6)]),B(b,_0xedc892(0x235),Ye),b=We([_0xb36d0e(_0x475f3e),F(0x1,_0x13d23a(_0x10288a)),F(0x2,_0x256701)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
|
1
|
+
const _0x40438e=_0x47cc;(function(_0x499a68,_0xa7184a){const _0x303d3a=_0x47cc,_0x466f16=_0x499a68();while(!![]){try{const _0x58db09=parseInt(_0x303d3a(0x1a3))/0x1+parseInt(_0x303d3a(0x15e))/0x2*(-parseInt(_0x303d3a(0x17c))/0x3)+-parseInt(_0x303d3a(0x1a6))/0x4+-parseInt(_0x303d3a(0x171))/0x5*(-parseInt(_0x303d3a(0x184))/0x6)+parseInt(_0x303d3a(0x115))/0x7*(-parseInt(_0x303d3a(0x12d))/0x8)+parseInt(_0x303d3a(0x17a))/0x9*(parseInt(_0x303d3a(0x135))/0xa)+-parseInt(_0x303d3a(0x11b))/0xb*(-parseInt(_0x303d3a(0x148))/0xc);if(_0x58db09===_0xa7184a)break;else _0x466f16['push'](_0x466f16['shift']());}catch(_0x2b506f){_0x466f16['push'](_0x466f16['shift']());}}}(_0x47f9,0x215dc));var J=Object[_0x40438e(0x190)],K=(_0x32c42a,_0x2ee3b7,_0x1301ae)=>_0x2ee3b7 in _0x32c42a?J(_0x32c42a,_0x2ee3b7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1301ae}):_0x32c42a[_0x2ee3b7]=_0x1301ae,u=(_0x4a2c88,_0x53cecf,_0x4dd82c)=>K(_0x4a2c88,typeof _0x53cecf!=_0x40438e(0x14d)?_0x53cecf+'':_0x53cecf,_0x4dd82c);import{Disposable as _0x142380,toDisposable as _0x162835,IUniverInstanceService as _0x5a3693,Inject as _0x515096,Injector as _0x2eaef8,IConfigService as _0x18693d,ICommandService as _0x1b75b0,RxDisposable as _0x470f4e,UniverInstanceType as _0x24a06b,DisposableCollection as _0x557a96,CommandType as _0x54eed1,DependentOn as _0x120121,Plugin as _0x277eca,merge as _0x3187af,registerDependencies as _0x260ef6,mergeOverrideWithDependencies as _0x26d4c0,touchDependencies as _0x154532}from'@univerjs/core';import{useDependency as _0x54980e,useObservable as _0x2371ea,IUIPartsService as _0x13ef6b,BuiltInUIPart as _0x5427fd,connectInjector as _0x266a27}from'@univerjs/ui';import{jsx as _0x282781,jsxs as _0x1a3be5,Fragment as _0x2d1d5d}from'react/jsx-runtime';import{Dropdown as _0x45eb67,clsx as _0x2be6db,Button as _0x18eae9}from'@univerjs/design';import{useRef as _0x4f23fd,createElement as _0x4f1371,forwardRef as _0x905103,useState as _0x89ec1e,useEffect as _0x33dad}from'react';import{CollaborationEvent as _0x5527b9,parseProtocolChangeset as _0x14e3f7}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3bde2f,SessionStatus as _0x1a4938,UniverCollaborationClientPlugin as _0xc0232f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x35c6e2,SetWorksheetActiveOperation as _0xcbc908}from'@univerjs/sheets';import{BehaviorSubject as _0x4119dd,Subject as _0x26010b}from'rxjs';import{takeUntil as _0x505794,throttleTime as _0x55e0fd}from'rxjs/operators';import{SetZoomRatioOperation as _0x1bfcb6,SetScrollOperation as _0x15a66d}from'@univerjs/sheets-ui';function _0x47cc(_0x2d80c3,_0x548e20){_0x2d80c3=_0x2d80c3-0x107;const _0x47f9b5=_0x47f9();let _0x47ccba=_0x47f9b5[_0x2d80c3];return _0x47ccba;}function k({ref:_0x4afa15,..._0x2c761a}){const _0x118ac2=_0x40438e,{icon:_0xa58156,id:_0x1c051b,className:_0x266745,extend:_0x3059ae,..._0x15b762}=_0x2c761a,_0x262b21=(_0x118ac2(0x168)+_0x1c051b+'\x20'+(_0x266745||''))[_0x118ac2(0x149)](),_0x3b8315=_0x4f23fd('_'+Oe());return G(_0xa58156,''+_0x1c051b,{'defIds':_0xa58156['defIds'],'idSuffix':_0x3b8315[_0x118ac2(0x1a1)]},{'ref':_0x4afa15,'className':_0x262b21,..._0x15b762},_0x3059ae);}function G(_0x173525,_0x1df7b1,_0x2f8904,_0x192443,_0x49dcc0){const _0x2bc951=_0x40438e;return _0x4f1371(_0x173525['tag'],{'key':_0x1df7b1,...be(_0x173525,_0x2f8904,_0x49dcc0),..._0x192443},(Ee(_0x173525,_0x2f8904)['children']||[])['map']((_0x3a1c6b,_0x424cde)=>G(_0x3a1c6b,_0x1df7b1+'-'+_0x173525[_0x2bc951(0x18f)]+'-'+_0x424cde,_0x2f8904,void 0x0,_0x49dcc0)));}function be(_0xd1fef3,_0x4cd31e,_0x58b7b7){const _0x4778d1=_0x40438e,_0x59adb9={..._0xd1fef3[_0x4778d1(0x144)]};_0x58b7b7!=null&&_0x58b7b7[_0x4778d1(0x19e)]&&_0x59adb9['fill']===_0x4778d1(0x19e)&&(_0x59adb9[_0x4778d1(0x152)]=_0x58b7b7[_0x4778d1(0x19e)]),_0xd1fef3[_0x4778d1(0x18f)]===_0x4778d1(0x127)&&_0x59adb9['id']&&(_0x59adb9['id']=_0x59adb9['id']+_0x4cd31e[_0x4778d1(0x18c)]),Object[_0x4778d1(0x10e)](_0x59adb9)[_0x4778d1(0x160)](([_0x565e85,_0x20a09e])=>{const _0xf6759f=_0x4778d1;_0x565e85===_0xf6759f(0x127)&&typeof _0x20a09e==_0xf6759f(0x155)&&(_0x59adb9[_0x565e85]=_0x20a09e[_0xf6759f(0x12f)](/url\(#(.*)\)/,'url(#$1'+_0x4cd31e['idSuffix']+')'));});const {defIds:_0xb065cc}=_0x4cd31e;return!_0xb065cc||_0xb065cc[_0x4778d1(0x188)]===0x0||(_0xd1fef3['tag']===_0x4778d1(0x15c)&&_0x59adb9['xlink:href']&&(_0x59adb9[_0x4778d1(0x12a)]=_0x59adb9[_0x4778d1(0x12a)]+_0x4cd31e['idSuffix']),Object['entries'](_0x59adb9)['forEach'](([_0xc0478b,_0x508f86])=>{const _0x4fda44=_0x4778d1;typeof _0x508f86=='string'&&(_0x59adb9[_0xc0478b]=_0x508f86[_0x4fda44(0x12f)](/url\(#(.*)\)/,_0x4fda44(0x113)+_0x4cd31e[_0x4fda44(0x18c)]+')'));})),_0x59adb9;}function Ee(_0xd16053,_0x49d430){const _0x1ce328=_0x40438e;var _0x6e0431;const {defIds:_0x3ce7bf}=_0x49d430;return!_0x3ce7bf||_0x3ce7bf['length']===0x0?_0xd16053:_0xd16053[_0x1ce328(0x18f)]===_0x1ce328(0x124)&&((_0x6e0431=_0xd16053[_0x1ce328(0x164)])!=null&&_0x6e0431[_0x1ce328(0x188)])?{..._0xd16053,'children':_0xd16053[_0x1ce328(0x164)][_0x1ce328(0x143)](_0x54efaf=>typeof _0x54efaf[_0x1ce328(0x144)]['id']=='string'&&_0x3ce7bf&&_0x3ce7bf[_0x1ce328(0x153)](_0x54efaf[_0x1ce328(0x144)]['id'])?{..._0x54efaf,'attrs':{..._0x54efaf[_0x1ce328(0x144)],'id':_0x54efaf[_0x1ce328(0x144)]['id']+_0x49d430[_0x1ce328(0x18c)]}}:_0x54efaf)}:_0xd16053;}function Oe(){const _0x35357b=_0x40438e;return Math['random']()[_0x35357b(0x13f)](0x24)[_0x35357b(0x192)](0x2,0x8);}k['displayName']=_0x40438e(0x142);const we={'tag':_0x40438e(0x176),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x40438e(0x110),'width':_0x40438e(0x151),'height':'1em'},'children':[{'tag':_0x40438e(0x14b),'attrs':{'fill':_0x40438e(0x134),'d':_0x40438e(0x131)}},{'tag':'path','attrs':{'fill':_0x40438e(0x134),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x40438e(0x11a),'clipRule':_0x40438e(0x11a)}}]},W=_0x905103(function(_0x481ac7,_0x879358){const _0x2777c2=_0x40438e;return _0x4f1371(k,Object[_0x2777c2(0x19d)]({},_0x481ac7,{'id':_0x2777c2(0x167),'ref':_0x879358,'icon':we}));});W[_0x40438e(0x14a)]='LiveShareIcon';class L extends _0x142380{constructor(){const _0x53d58f=_0x40438e;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x53d58f(0x186),new Set());}[_0x40438e(0x10b)](_0x23f087){const _0x1ad192=_0x40438e;return this[_0x1ad192(0x18d)][_0x1ad192(0x165)](_0x23f087),_0x162835(()=>this[_0x1ad192(0x18d)][_0x1ad192(0x12c)](_0x23f087));}[_0x40438e(0x150)](_0x1fb63b){const _0x430a54=_0x40438e;return this[_0x430a54(0x186)][_0x430a54(0x165)](_0x1fb63b),_0x162835(()=>this[_0x430a54(0x186)]['delete'](_0x1fb63b));}[_0x40438e(0x139)](_0x59d2b2){const _0x3516cb=_0x40438e;return this[_0x3516cb(0x18d)][_0x3516cb(0x1a5)](_0x59d2b2);}[_0x40438e(0x197)](_0x5f28ea){const _0x5f24e7=_0x40438e;return Array['from'](this['_reporters'])[_0x5f24e7(0x143)](_0x36eb84=>_0x36eb84(_0x5f28ea));}}function _0x47f9(){const _0x4888e2=['stringify','Start','dispose$','pipe','startFollowing','event$','_collabSessionService','registerSharedOperation','HEADER_MENU','offline','entries','LIVESHARE_FETCH_OPERATIONS','0\x200\x2017\x2017','_configService','_handleNewHost','url(#$1','_init','3626dfOUwN','UNIVER_UNKNOWN','Start\x20following','_entities','FOLLOWING','evenodd','33KlJYZN','getMemberID','OFFLINE','stopPresenting','tryStartPresenting','_handleTerminate','dispose','_startLiveShareCoordinator','SAME_OPERATION_SHARE_INTERVAL','defs','_handleOperation','getUnitId','mask','default','data','xlink:href','IDLE','delete','344cPKCiv','UNIVER_LIVE_SHARE_PLUGIN','replace','next','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_presenter','sessionStatus$','currentColor','509050BdjslY','div','following','_startFollowing','shouldShareOperation','type','disposeWithMe','not-following','getValue','parse','toString','_univerInstanceService','LIVESHARE_OPERATION','UniverIcon','map','attrs','_status$','asObservable','send','657468HsLtBM','trim','displayName','path','UNIVER_SHEET','symbol','init','_status','registerInitialStateReporter','1em','fill','includes','get','string','unsubscribe','subscribe','stopFollowing','ONLINE','_stopPresenting','onStarting','use','status$','2kBwxhX','mutations','forEach','getStatus','getConfig','memberID','children','add','_unitID','live-share-icon','univerjs-icon\x20univerjs-icon-','complete','presenting','_liveShareService','pluginName','LIVESHARE_TERMINATE','_config','requireSession','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','5kulALz','params','You\x27are\x20offline.','onCommandExecuted','registerComponent','svg','_handleNewChangeSets','getLiveShareCoordinator','_beIdle','9iYdcZD','univer-mb-3\x20univer-w-full\x20univer-text-sm','353853ihXxyW','getOwnPropertyDescriptor','_commandDisposable','PRESENTING','presenter','_commandService','LIVESHARE_NEW_HOST','You\x27re\x20following\x20the\x20presenter','412266cbdoFb','executeCommand','_reporters','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','length','setConfig','set','onRendered','idSuffix','_sharedOperations','then','tag','defineProperty','_handleOnline','substring','_stopFollowing','idle','_startPresenting','button','getInitialStates','operations','Present\x20this\x20document','sheet','_mountLiveShare','_collabSession','assign','colorChannel1','unitId','_injector','current','getTypeOfUnitDisposed$','112651lWcUOv','getCurrentTypeOfUnit$','has','478964PdfCqP','NEW_CHANGESETS'];_0x47f9=function(){return _0x4888e2;};return _0x47f9();}var Ne=Object[_0x40438e(0x17d)],Y=(_0x4c888b,_0x11f570,_0x5228dc,_0x524ffe)=>{const _0x76b223=_0x40438e;for(var _0x28c625=_0x524ffe>0x1?void 0x0:_0x524ffe?Ne(_0x11f570,_0x5228dc):_0x11f570,_0x2bdc16=_0x4c888b[_0x76b223(0x188)]-0x1,_0x19ea95;_0x2bdc16>=0x0;_0x2bdc16--)(_0x19ea95=_0x4c888b[_0x2bdc16])&&(_0x28c625=_0x19ea95(_0x28c625)||_0x28c625);return _0x28c625;},_=(_0x3356bb,_0x1ab874)=>(_0x1b71bb,_0xdab50c)=>_0x1ab874(_0x1b71bb,_0xdab50c,_0x3356bb);let S=class extends _0x470f4e{constructor(_0x5aca0d,_0x54895f,_0x234351){const _0x2738da=_0x40438e;super(),u(this,'_entities',new Map()),(this[_0x2738da(0x140)]=_0x5aca0d,this['_injector']=_0x54895f,this[_0x2738da(0x10a)]=_0x234351,this[_0x2738da(0x114)]());}async[_0x40438e(0x178)](_0x412409){const _0x3fb7a4=_0x40438e;return this['_entities']['has'](_0x412409)||await this[_0x3fb7a4(0x122)](_0x412409),this[_0x3fb7a4(0x118)][_0x3fb7a4(0x154)](_0x412409);}['getLiveShareCoordinatorSync'](_0x35a51b){const _0x21a934=_0x40438e;var _0x28dbea;return(_0x28dbea=this[_0x21a934(0x118)][_0x21a934(0x154)](_0x35a51b))!=null?_0x28dbea:null;}[_0x40438e(0x114)](){const _0x3253f1=_0x40438e;this[_0x3253f1(0x140)]['getTypeOfUnitAdded$'](_0x24a06b[_0x3253f1(0x14c)])[_0x3253f1(0x107)](_0x505794(this['dispose$']))[_0x3253f1(0x157)](async _0x1f8c57=>{const _0x4c5770=_0x3253f1,_0x2ee9ce=_0x1f8c57[_0x4c5770(0x126)]();this[_0x4c5770(0x118)][_0x4c5770(0x1a5)](_0x2ee9ce)||this['_startLiveShareCoordinator'](_0x2ee9ce);}),this[_0x3253f1(0x140)][_0x3253f1(0x1a2)](_0x24a06b[_0x3253f1(0x14c)])[_0x3253f1(0x107)](_0x505794(this[_0x3253f1(0x1aa)]))[_0x3253f1(0x157)](_0x58f199=>{const _0x500a5b=_0x3253f1,_0x4ab110=_0x58f199['getUnitId'](),_0x162aa6=this[_0x500a5b(0x118)]['get'](_0x4ab110);_0x162aa6==null||_0x162aa6[_0x500a5b(0x121)]();});}async[_0x40438e(0x122)](_0x1b4687){const _0x332449=_0x40438e,_0x22feac=await this[_0x332449(0x10a)][_0x332449(0x16f)](_0x1b4687),_0x571083=this['_injector']['createInstance'](N,_0x1b4687,_0x22feac);return _0x571083['init'](),this[_0x332449(0x118)][_0x332449(0x18a)](_0x1b4687,_0x571083),_0x571083;}};S=Y([_(0x0,_0x5a3693),_(0x1,_0x515096(_0x2eaef8)),_(0x2,_0x515096(_0x3bde2f))],S);var c=(_0x3f43e7=>(_0x3f43e7['OFFLINE']=_0x40438e(0x10d),_0x3f43e7[_0x40438e(0x12b)]='idle',_0x3f43e7[_0x40438e(0x119)]='following',_0x3f43e7['NOT_FOLLOWING']=_0x40438e(0x13c),_0x3f43e7[_0x40438e(0x17f)]='presenting',_0x3f43e7))(c||{});const Ce=_0x40438e(0x123),De=0xc8;let N=class extends _0x470f4e{constructor(_0x42fa58,_0x56d566,_0xe9c346,_0x4c3f5b,_0x295bfc){const _0x4f97f9=_0x40438e;super(),u(this,_0x4f97f9(0x145),new _0x4119dd('idle')),u(this,_0x4f97f9(0x15d),this['_status$'][_0x4f97f9(0x146)]()),u(this,_0x4f97f9(0x114),!0x1),u(this,_0x4f97f9(0x17e),null),u(this,_0x4f97f9(0x132),null),(this[_0x4f97f9(0x166)]=_0x42fa58,this[_0x4f97f9(0x19c)]=_0x56d566,this[_0x4f97f9(0x111)]=_0xe9c346,this[_0x4f97f9(0x16b)]=_0x4c3f5b,this[_0x4f97f9(0x181)]=_0x295bfc);}get['_status'](){const _0x2fb33e=_0x40438e;return this[_0x2fb33e(0x145)][_0x2fb33e(0x13d)]();}[_0x40438e(0x121)](){const _0x45c693=_0x40438e;var _0x1cb889;(_0x1cb889=this[_0x45c693(0x17e)])==null||_0x1cb889[_0x45c693(0x121)](),this[_0x45c693(0x145)][_0x45c693(0x130)](_0x45c693(0x194)),this[_0x45c693(0x145)][_0x45c693(0x169)]();}[_0x40438e(0x161)](){const _0x46a17f=_0x40438e;return this[_0x46a17f(0x14f)];}[_0x40438e(0x14e)](){const _0x56f2d8=_0x40438e;this[_0x56f2d8(0x114)]||(this[_0x56f2d8(0x114)]=!0x0,this[_0x56f2d8(0x19c)][_0x56f2d8(0x133)][_0x56f2d8(0x107)](_0x505794(this[_0x56f2d8(0x1aa)]))[_0x56f2d8(0x157)](_0x1333f1=>{const _0x59bf20=_0x56f2d8;switch(_0x1333f1){case _0x1a4938['OFFLINE']:this['_handleOffline']();break;case _0x1a4938[_0x59bf20(0x159)]:this['_handleOnline']();break;}}),this[_0x56f2d8(0x19c)][_0x56f2d8(0x109)]['pipe'](_0x505794(this['dispose$']))[_0x56f2d8(0x157)](_0x4ea196=>{const _0x35e9bb=_0x56f2d8,{eventID:_0x65fbbc}=_0x4ea196;switch(_0x65fbbc){case _0x5527b9[_0x35e9bb(0x182)]:this[_0x35e9bb(0x112)](_0x4ea196);break;case _0x5527b9['LIVESHARE_OPERATION']:this[_0x35e9bb(0x125)](_0x4ea196);break;case _0x5527b9[_0x35e9bb(0x16d)]:this[_0x35e9bb(0x120)]();break;case _0x5527b9[_0x35e9bb(0x1a7)]:this['_handleNewChangeSets'](_0x4ea196);break;}}));}[_0x40438e(0x11f)](){const _0x49b2d9=_0x40438e;this[_0x49b2d9(0x19c)][_0x49b2d9(0x147)]({'eventID':_0x5527b9['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x49b2d9(0x166)],'userID':this[_0x49b2d9(0x19c)][_0x49b2d9(0x11c)]()}},this[_0x49b2d9(0x166)]);}['stopPresenting'](){const _0x3bc702=_0x40438e;this[_0x3bc702(0x14f)]===_0x3bc702(0x16a)&&(this[_0x3bc702(0x145)][_0x3bc702(0x130)](_0x3bc702(0x194)),this[_0x3bc702(0x19c)][_0x3bc702(0x147)]({'eventID':_0x5527b9[_0x3bc702(0x16d)],'data':{'unitID':this[_0x3bc702(0x166)]}},this[_0x3bc702(0x166)]));}[_0x40438e(0x108)](){const _0x3cf05a=_0x40438e;this['_status']===_0x3cf05a(0x13c)&&(this[_0x3cf05a(0x145)][_0x3cf05a(0x130)](_0x3cf05a(0x137)),this[_0x3cf05a(0x138)]());}[_0x40438e(0x158)](){const _0x5878a9=_0x40438e;this[_0x5878a9(0x14f)]===_0x5878a9(0x137)&&this[_0x5878a9(0x193)]();}['_handleNewHost'](_0xcb9d73){const _0x8d8012=_0x40438e,{presenter:_0x336bb7}=_0xcb9d73[_0x8d8012(0x129)],_0x22c428=this[_0x8d8012(0x19c)][_0x8d8012(0x11c)]();this[_0x8d8012(0x132)]=_0x336bb7,_0x336bb7===_0x22c428?(this[_0x8d8012(0x193)](),this['_startPresenting']()):this[_0x8d8012(0x14f)]!==_0x8d8012(0x13c)&&(this[_0x8d8012(0x15a)](),this[_0x8d8012(0x138)]());}['_fetchOperations'](){const _0x3a117a=_0x40438e,_0xe4c44={'eventID':_0x5527b9[_0x3a117a(0x10f)]};this['_collabSession']['send'](_0xe4c44,this[_0x3a117a(0x166)]);}['_handleTerminate'](){const _0x298517=_0x40438e;this[_0x298517(0x132)]=null,this['_status']!==_0x298517(0x16a)&&this['_beIdle']();}[_0x40438e(0x177)](_0x49c8b2){const _0x3b30d7=_0x40438e;if(this['_status']===_0x3b30d7(0x137)&&this[_0x3b30d7(0x132)]===_0x49c8b2[_0x3b30d7(0x129)][_0x3b30d7(0x163)]){const _0x3c557d=_0x14e3f7(_0x49c8b2[_0x3b30d7(0x129)])[_0x3b30d7(0x15f)]['reverse']()['find'](_0x5be341=>_0x5be341['id']===_0x35c6e2['id']);if(_0x3c557d){const _0x2ee0f8=_0x3c557d['params'][_0x3b30d7(0x19f)],_0x571796=_0x3c557d['params'][_0x3b30d7(0x19a)]['id'];setTimeout(()=>{const _0x774e56=_0x3b30d7;this[_0x774e56(0x181)]['executeCommand'](_0xcbc908['id'],{'unitId':_0x2ee0f8,'subUnitId':_0x571796},{'fromCollab':!0x0});});}}}[_0x40438e(0x195)](){const _0x1e57c9=_0x40438e;this[_0x1e57c9(0x145)][_0x1e57c9(0x130)](_0x1e57c9(0x16a));const _0x3bf156=new Map(),_0x11a84d=this['_commandDisposable']=new _0x557a96();_0x11a84d[_0x1e57c9(0x165)](_0x162835(()=>{const _0x31867d=_0x1e57c9;_0x3bf156[_0x31867d(0x160)](_0x4d6572=>_0x4d6572[_0x31867d(0x169)]()),_0x3bf156['clear']();})),_0x11a84d[_0x1e57c9(0x165)](this['_commandService'][_0x1e57c9(0x174)](_0x1493ad=>{const _0x2e0ccb=_0x1e57c9;var _0x46004e;if(_0x1493ad[_0x2e0ccb(0x13a)]!==_0x54eed1['OPERATION']||!this[_0x2e0ccb(0x16b)][_0x2e0ccb(0x139)](_0x1493ad['id']))return;const {id:_0x555b04}=_0x1493ad;let _0x2f357c;_0x3bf156['has'](_0x555b04)?_0x2f357c=_0x3bf156['get'](_0x555b04):(_0x2f357c=new _0x26010b(),_0x3bf156[_0x2e0ccb(0x18a)](_0x555b04,_0x2f357c),_0x2f357c['pipe'](_0x55e0fd((_0x46004e=this[_0x2e0ccb(0x111)][_0x2e0ccb(0x162)](Ce))!=null?_0x46004e:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2e0ccb(0x157)](_0x23275d=>{const _0x5692cc=_0x2e0ccb;this[_0x5692cc(0x19c)][_0x5692cc(0x147)]({'eventID':_0x5527b9[_0x5692cc(0x141)],'data':{'unitID':this[_0x5692cc(0x166)],'operations':{[_0x23275d['id']]:{'id':_0x23275d['id'],'params':JSON[_0x5692cc(0x1a8)](_0x23275d[_0x5692cc(0x172)])}}}},this[_0x5692cc(0x166)]);})),_0x2f357c[_0x2e0ccb(0x130)](_0x1493ad);})),this[_0x1e57c9(0x16b)][_0x1e57c9(0x197)](this[_0x1e57c9(0x166)])[_0x1e57c9(0x160)](_0x147df5=>this[_0x1e57c9(0x19c)][_0x1e57c9(0x147)]({'eventID':_0x5527b9[_0x1e57c9(0x141)],'data':{'unitID':this[_0x1e57c9(0x166)],'operations':{[_0x147df5['id']]:{'id':_0x147df5['id'],'params':JSON[_0x1e57c9(0x1a8)](_0x147df5['params'])}}}},this[_0x1e57c9(0x166)]));}[_0x40438e(0x15a)](){const _0xef736c=_0x40438e;var _0x595d01;this['_status$'][_0xef736c(0x130)](_0xef736c(0x194)),(_0x595d01=this[_0xef736c(0x17e)])==null||_0x595d01[_0xef736c(0x121)](),this['_commandDisposable']=null;}[_0x40438e(0x138)](){const _0x41ea4f=_0x40438e;var _0x5ad979;(_0x5ad979=this['_commandDisposable'])==null||_0x5ad979[_0x41ea4f(0x121)](),this[_0x41ea4f(0x145)][_0x41ea4f(0x130)](_0x41ea4f(0x137));}[_0x40438e(0x179)](){const _0x502f41=_0x40438e;var _0x2fb286;this[_0x502f41(0x145)][_0x502f41(0x130)]('idle'),(_0x2fb286=this[_0x502f41(0x17e)])==null||_0x2fb286[_0x502f41(0x121)](),this[_0x502f41(0x17e)]=null;}[_0x40438e(0x193)](){const _0x34b869=_0x40438e;var _0x29a306;this['_status$'][_0x34b869(0x130)](_0x34b869(0x13c)),(_0x29a306=this[_0x34b869(0x17e)])==null||_0x29a306[_0x34b869(0x121)]();}[_0x40438e(0x125)](_0xbd2e1a){const _0x407f16=_0x40438e;if([_0x407f16(0x16a),_0x407f16(0x13c),_0x407f16(0x10d)][_0x407f16(0x153)](this['_status'])||!_0xbd2e1a[_0x407f16(0x129)][_0x407f16(0x180)]||_0xbd2e1a['data'][_0x407f16(0x180)]===this[_0x407f16(0x19c)][_0x407f16(0x11c)]())return;this[_0x407f16(0x14f)]===_0x407f16(0x194)&&this[_0x407f16(0x138)]();const _0x2722c6=_0xbd2e1a[_0x407f16(0x129)][_0x407f16(0x198)];Object['values'](_0x2722c6)[_0x407f16(0x160)](_0x5f5ccd=>{const _0x57e662=_0x407f16;this[_0x57e662(0x181)][_0x57e662(0x185)](_0x5f5ccd['id'],_0x5f5ccd['params']?JSON[_0x57e662(0x13e)](_0x5f5ccd[_0x57e662(0x172)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x313e26=_0x40438e;var _0x2200d4;this['_status$'][_0x313e26(0x130)]('offline'),(_0x2200d4=this['_commandDisposable'])==null||_0x2200d4[_0x313e26(0x121)]();}[_0x40438e(0x191)](){const _0x1df844=_0x40438e;this[_0x1df844(0x145)][_0x1df844(0x130)](_0x1df844(0x194)),this['_fetchOperations']();}};N=Y([_(0x2,_0x18693d),_(0x3,_0x515096(L)),_(0x4,_0x1b75b0)],N);function Le(){const _0x22e9f1=_0x40438e,_0x48f933=_0x54980e(S),_0x2a1eb8=_0x54980e(_0x5a3693),_0x4fe1a9=_0x2371ea(()=>_0x2a1eb8[_0x22e9f1(0x1a4)](_0x24a06b[_0x22e9f1(0x14c)]),void 0x0,!0x1,[]),[_0x58aed3,_0x405f7a]=_0x89ec1e(null),[_0x568915,_0x58e9b0]=_0x89ec1e(c[_0x22e9f1(0x12b)]),_0x419775=_0x4f23fd(null);return _0x33dad(()=>(_0x4fe1a9&&_0x48f933['getLiveShareCoordinator'](_0x4fe1a9[_0x22e9f1(0x126)]())[_0x22e9f1(0x18e)](_0x374c0f=>{const _0x3c4f83=_0x22e9f1;_0x405f7a(_0x374c0f),_0x419775[_0x3c4f83(0x1a1)]=_0x374c0f[_0x3c4f83(0x15d)][_0x3c4f83(0x157)](_0x38cdce=>{_0x58e9b0(_0x38cdce);});}),()=>{const _0x330361=_0x22e9f1;var _0x4d4ebe;(_0x4d4ebe=_0x419775['current'])==null||_0x4d4ebe[_0x330361(0x156)](),_0x419775['current']=null;}),[_0x4fe1a9,_0x48f933]),_0x58aed3?_0x282781(_0x45eb67,{'align':'end','disabled':_0x568915===c[_0x22e9f1(0x11d)],'className':_0x22e9f1(0x187),'overlay':_0x282781(Re,{'status':_0x568915,'coordinator':_0x58aed3}),'children':_0x282781(_0x22e9f1(0x196),{'className':_0x2be6db(_0x22e9f1(0x170),{'univer-cursor-not-allowed':_0x568915===c[_0x22e9f1(0x11d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x568915!==c['OFFLINE']}),'type':_0x22e9f1(0x196),'children':_0x282781(W,{'className':'univer-size-4'})})}):null;}function Re(_0x437467){const _0xaf73a4=_0x40438e,{status:_0xc7ed2f,coordinator:_0x177b7c}=_0x437467;switch(_0xc7ed2f){case c[_0xaf73a4(0x12b)]:return _0x282781($e,{'coordinator':_0x177b7c});case c[_0xaf73a4(0x119)]:return _0x282781(xe,{'coordinator':_0x177b7c});case c['NOT_FOLLOWING']:return _0x282781(Pe,{'coordinator':_0x177b7c});case c[_0xaf73a4(0x11d)]:return _0x282781(Te,{});case c[_0xaf73a4(0x17f)]:return _0x282781(Ae,{'coordinator':_0x177b7c});default:return null;}}function $e(_0x120ab4){const _0x162a68=_0x40438e,{coordinator:_0x203df8}=_0x120ab4;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781(_0x162a68(0x136),{'className':_0x162a68(0x17b),'children':_0x162a68(0x199)}),_0x282781(_0x18eae9,{'onClick':()=>_0x203df8[_0x162a68(0x11f)](),'children':_0x162a68(0x1a9)})]});}function xe(_0x46b877){const _0xd05436=_0x40438e,{coordinator:_0x43b589}=_0x46b877;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781('div',{'className':_0xd05436(0x17b),'children':_0xd05436(0x183)}),_0x282781(_0x18eae9,{'onClick':()=>_0x43b589[_0xd05436(0x158)](),'children':'Stop\x20following'})]});}function Pe(_0x23d975){const _0x63f7a4=_0x40438e,{coordinator:_0x1a2993}=_0x23d975;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781(_0x63f7a4(0x136),{'className':_0x63f7a4(0x17b),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x282781(_0x18eae9,{'variant':'text','onClick':()=>_0x1a2993[_0x63f7a4(0x108)](),'children':_0x63f7a4(0x117)})]});}function Ae(_0x2e9bdc){const _0x19c77d=_0x40438e,{coordinator:_0x5f5c03}=_0x2e9bdc;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781('div',{'className':_0x19c77d(0x17b),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x282781(_0x18eae9,{'variant':_0x19c77d(0x128),'onClick':()=>_0x5f5c03[_0x19c77d(0x11e)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x1a4dda=_0x40438e;return _0x282781(_0x2d1d5d,{'children':_0x1a4dda(0x173)});}var Fe=Object[_0x40438e(0x17d)],He=(_0xe36e06,_0x328326,_0xedbe7e,_0x1a4370)=>{for(var _0x405fd4=_0x1a4370>0x1?void 0x0:_0x1a4370?Fe(_0x328326,_0xedbe7e):_0x328326,_0x3bc04c=_0xe36e06['length']-0x1,_0x5503cc;_0x3bc04c>=0x0;_0x3bc04c--)(_0x5503cc=_0xe36e06[_0x3bc04c])&&(_0x405fd4=_0x5503cc(_0x405fd4)||_0x405fd4);return _0x405fd4;},A=(_0x3ab088,_0x426d4c)=>(_0x51cd35,_0x494648)=>_0x426d4c(_0x51cd35,_0x494648,_0x3ab088);let m=class extends _0x142380{constructor(_0x3be079,_0x59b39d){const _0x2daf53=_0x40438e;super(),this[_0x2daf53(0x1a0)]=_0x3be079,this['_uiPartsService']=_0x59b39d,this[_0x2daf53(0x19b)]();}['_mountLiveShare'](){const _0x229f65=_0x40438e;this[_0x229f65(0x13b)](this['_uiPartsService'][_0x229f65(0x175)](_0x5427fd[_0x229f65(0x10c)],()=>_0x266a27(Le,this[_0x229f65(0x1a0)])));}};m=He([A(0x0,_0x515096(_0x2eaef8)),A(0x1,_0x13ef6b)],m);const ye='live-share.config',T={};var Ue=Object[_0x40438e(0x17d)],Ve=(_0x47c872,_0x4d30bd,_0x9de0a7,_0x3752d3)=>{const _0x11f663=_0x40438e;for(var _0x42a8af=_0x3752d3>0x1?void 0x0:_0x3752d3?Ue(_0x4d30bd,_0x9de0a7):_0x4d30bd,_0x32da67=_0x47c872[_0x11f663(0x188)]-0x1,_0x15a074;_0x32da67>=0x0;_0x32da67--)(_0x15a074=_0x47c872[_0x32da67])&&(_0x42a8af=_0x15a074(_0x42a8af)||_0x42a8af);return _0x42a8af;},je=(_0x13edb2,_0x5be002)=>(_0x3620f0,_0x32c9d5)=>_0x5be002(_0x3620f0,_0x32c9d5,_0x13edb2);let I=class extends _0x142380{constructor(_0x270207){const _0x5b80cf=_0x40438e;super(),this['_liveShareService']=_0x270207,this[_0x5b80cf(0x114)]();}[_0x40438e(0x114)](){const _0x1a0f76=_0x40438e;[_0x1bfcb6['id'],_0x15a66d['id'],_0xcbc908['id']][_0x1a0f76(0x160)](_0x43f413=>{const _0x266d04=_0x1a0f76;this['disposeWithMe'](this[_0x266d04(0x16b)][_0x266d04(0x10b)](_0x43f413));});}};I=Ve([je(0x0,_0x515096(L))],I);var Me=Object[_0x40438e(0x190)],ke=Object[_0x40438e(0x17d)],Ge=(_0x72d1ae,_0x42e855,_0x3afd20)=>_0x42e855 in _0x72d1ae?Me(_0x72d1ae,_0x42e855,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3afd20}):_0x72d1ae[_0x42e855]=_0x3afd20,We=(_0x5e1741,_0x2c0306,_0xaca0d9,_0x339251)=>{const _0x332944=_0x40438e;for(var _0x531e36=_0x339251>0x1?void 0x0:_0x339251?ke(_0x2c0306,_0xaca0d9):_0x2c0306,_0x26a81e=_0x5e1741[_0x332944(0x188)]-0x1,_0x581a77;_0x26a81e>=0x0;_0x26a81e--)(_0x581a77=_0x5e1741[_0x26a81e])&&(_0x531e36=_0x581a77(_0x531e36)||_0x531e36);return _0x531e36;},F=(_0x1cc530,_0x5974cc)=>(_0x8b6089,_0x2703b8)=>_0x5974cc(_0x8b6089,_0x2703b8,_0x1cc530),B=(_0x1d3557,_0x3c23f8,_0x16bddb)=>Ge(_0x1d3557,typeof _0x3c23f8!=_0x40438e(0x14d)?_0x3c23f8+'':_0x3c23f8,_0x16bddb);const Ye=_0x40438e(0x12e);let b=class extends _0x277eca{constructor(_0x595d93=T,_0x50ea94,_0x53ea49){const _0x4411b1=_0x40438e;super(),this['_config']=_0x595d93,this['_injector']=_0x50ea94,this['_configService']=_0x53ea49;const {..._0x2d8609}=_0x3187af({},T,this[_0x4411b1(0x16e)]);this['_configService'][_0x4411b1(0x189)](ye,_0x2d8609);}[_0x40438e(0x15b)](){const _0x7abc44=_0x40438e;_0x260ef6(this[_0x7abc44(0x1a0)],_0x26d4c0([[L],[S],[I],[m]],this[_0x7abc44(0x16e)]['override'])),_0x154532(this[_0x7abc44(0x1a0)],[[I]]);}[_0x40438e(0x18b)](){const _0x1f28ee=_0x40438e;_0x154532(this[_0x1f28ee(0x1a0)],[[m]]);}};B(b,_0x40438e(0x13a),_0x24a06b[_0x40438e(0x116)]),B(b,_0x40438e(0x16c),Ye),b=We([_0x120121(_0xc0232f),F(0x1,_0x515096(_0x2eaef8)),F(0x2,_0x18693d)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const _0x2284b3=_0x2a73;(function(_0x331e0f,_0x56b98e){const _0x468944=_0x2a73,_0x3f687d=_0x331e0f();while(!![]){try{const _0x553d88=-parseInt(_0x468944(0x1ad))/0x1*(parseInt(_0x468944(0x1bd))/0x2)+-parseInt(_0x468944(0x1c3))/0x3*(parseInt(_0x468944(0x1b9))/0x4)+parseInt(_0x468944(0x1b4))/0x5+-parseInt(_0x468944(0x1b5))/0x6*(parseInt(_0x468944(0x1ab))/0x7)+parseInt(_0x468944(0x1aa))/0x8+-parseInt(_0x468944(0x1b3))/0x9+parseInt(_0x468944(0x1c0))/0xa*(parseInt(_0x468944(0x1bb))/0xb);if(_0x553d88===_0x56b98e)break;else _0x3f687d['push'](_0x3f687d['shift']());}catch(_0x411aed){_0x3f687d['push'](_0x3f687d['shift']());}}}(_0x5950,0x98b80));function _0x5950(){const _0x155d29=['_initialize','521496XBElMj','2942555LKLqkb','1685382eVzrrq','getSheetId','getActiveWorkbook','stopFollowing','92ZlyCab','startRow','550iULHjU','tryStartPresenting','229202xeVKqD','syncExecuteCommand','extend','178230qnVvLX','No\x20active\x20workbook\x20found.','getLiveShareCoordinatorSync','87537kMrshX','startFollowing','_commandService','getStatus','getActiveSheet','getId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','stopPresenting','getRenderById','_injector','startColumn','getUnitId','6657824kXGzPq','21exHixp','IDLE','1XqgIIn','PRESENTING','startPresenting','executeCommand','get'];_0x5950=function(){return _0x155d29;};return _0x5950();}import{LiveShareController as _0x46f7e9,LiveShareStatus as _0x5f0174}from'@univerjs-pro/live-share';import{IRenderManagerService as _0xe13cf2}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x24c9fb}from'@univerjs/sheets';import{SetScrollOperation as _0x431eb8}from'@univerjs/sheets-ui';import{FRange as _0x4c30e7}from'@univerjs/sheets/facade';import{FUniver as _0x5cddf1,FEnum as _0x276510}from'@univerjs/core/facade';class I extends _0x4c30e7{[_0x2284b3(0x1b2)](_0x23c393,_0x582871,_0x1f15c7,_0x27f3bb,_0x128463){const _0x5ccaaa=_0x2284b3,_0x34d743=_0x23c393[_0x5ccaaa(0x1b1)](_0x46f7e9),_0x5f1fe7=_0x23c393[_0x5ccaaa(0x1b1)](_0xe13cf2),_0x393756=_0x582871[_0x5ccaaa(0x1ce)](),_0x3b8f65=_0x582871[_0x5ccaaa(0x1c7)](),_0x32f0c2=_0x34d743['getLiveShareCoordinatorSync'](_0x393756);(_0x32f0c2==null?void 0x0:_0x32f0c2['getStatus']())!==_0x5f0174[_0x5ccaaa(0x1ae)]||(_0x1f15c7['getSheetId']()!==_0x3b8f65['getSheetId']()&&this[_0x5ccaaa(0x1c5)][_0x5ccaaa(0x1b0)](_0x24c9fb['id'],{'unitId':_0x393756,'subUnitId':_0x1f15c7[_0x5ccaaa(0x1b6)]()}),!_0x5f1fe7[_0x5ccaaa(0x1cb)](_0x393756))||_0x128463[_0x5ccaaa(0x1be)](_0x431eb8['id'],{'unitId':_0x582871[_0x5ccaaa(0x1ce)](),'sheetId':_0x1f15c7[_0x5ccaaa(0x1b6)](),'sheetViewStartRow':_0x27f3bb[_0x5ccaaa(0x1ba)],'sheetViewStartColumn':_0x27f3bb[_0x5ccaaa(0x1cd)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4c30e7['extend'](I);class m extends _0x5cddf1{['getLiveShareStatus'](){const _0x132603=_0x2284b3;var _0x44b715,_0x2431e7;const _0x548618=this[_0x132603(0x1cc)][_0x132603(0x1b1)](_0x46f7e9),_0x3e76a9=(_0x44b715=this[_0x132603(0x1b7)]())==null?void 0x0:_0x44b715[_0x132603(0x1c8)]();if(!_0x3e76a9)throw new Error(_0x132603(0x1c1));const _0x48276d=_0x548618[_0x132603(0x1c2)](_0x3e76a9);return(_0x2431e7=_0x48276d==null?void 0x0:_0x48276d[_0x132603(0x1c6)]())!=null?_0x2431e7:_0x5f0174[_0x132603(0x1ac)];}[_0x2284b3(0x1c4)](){const _0x1dfcd5=_0x2284b3;var _0x5c972e;const _0x13b22f=this['_injector']['get'](_0x46f7e9),_0x1e1414=(_0x5c972e=this['getActiveWorkbook']())==null?void 0x0:_0x5c972e[_0x1dfcd5(0x1c8)]();if(!_0x1e1414)throw new Error(_0x1dfcd5(0x1c1));const _0x5bce7c=_0x13b22f[_0x1dfcd5(0x1c2)](_0x1e1414);if(!_0x5bce7c)throw new Error(_0x1dfcd5(0x1c9));_0x5bce7c['startFollowing']();}[_0x2284b3(0x1b8)](){const _0x15f16d=_0x2284b3;var _0x3b87cc;const _0x16117d=this[_0x15f16d(0x1cc)][_0x15f16d(0x1b1)](_0x46f7e9),_0x4eb8f8=(_0x3b87cc=this['getActiveWorkbook']())==null?void 0x0:_0x3b87cc['getId']();if(!_0x4eb8f8)throw new Error(_0x15f16d(0x1c1));const _0x224785=_0x16117d[_0x15f16d(0x1c2)](_0x4eb8f8);if(!_0x224785)throw new Error(_0x15f16d(0x1c9));_0x224785['stopFollowing']();}[_0x2284b3(0x1af)](){const _0x219fc7=_0x2284b3;var _0x3b517a;const _0x3f845c=this[_0x219fc7(0x1cc)][_0x219fc7(0x1b1)](_0x46f7e9),_0x462ac0=(_0x3b517a=this[_0x219fc7(0x1b7)]())==null?void 0x0:_0x3b517a[_0x219fc7(0x1c8)]();if(!_0x462ac0)throw new Error(_0x219fc7(0x1c1));const _0x3d594d=_0x3f845c[_0x219fc7(0x1c2)](_0x462ac0);if(!_0x3d594d)throw new Error(_0x219fc7(0x1c9));_0x3d594d[_0x219fc7(0x1bc)]();}[_0x2284b3(0x1ca)](){const _0x3d8d97=_0x2284b3;var _0x1aa3f4;const _0xa37566=this[_0x3d8d97(0x1cc)][_0x3d8d97(0x1b1)](_0x46f7e9),_0x1deada=(_0x1aa3f4=this[_0x3d8d97(0x1b7)]())==null?void 0x0:_0x1aa3f4[_0x3d8d97(0x1c8)]();if(!_0x1deada)throw new Error('No\x20active\x20workbook\x20found.');const _0x83508f=_0xa37566[_0x3d8d97(0x1c2)](_0x1deada);if(!_0x83508f)throw new Error(_0x3d8d97(0x1c9));_0x83508f[_0x3d8d97(0x1ca)]();}}_0x5cddf1[_0x2284b3(0x1bf)](m);class C extends _0x276510{get['LiveShareStatusEnum'](){return _0x5f0174;}}function _0x2a73(_0x41ea3a,_0x43dcfe){_0x41ea3a=_0x41ea3a-0x1aa;const _0x595010=_0x5950();let _0x2a73b1=_0x595010[_0x41ea3a];return _0x2a73b1;}_0x276510[_0x2284b3(0x1bf)](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0xedc892=_0x3cc7;(function(_0x4b9575,_0x1e2f72){const _0x20b3c8=_0x3cc7,_0x195cb1=_0x4b9575();while(!![]){try{const _0x4c3ef0=parseInt(_0x20b3c8(0x23d))/0x1+-parseInt(_0x20b3c8(0x20d))/0x2*(-parseInt(_0x20b3c8(0x232))/0x3)+parseInt(_0x20b3c8(0x1ea))/0x4+-parseInt(_0x20b3c8(0x1fe))/0x5*(parseInt(_0x20b3c8(0x251))/0x6)+-parseInt(_0x20b3c8(0x211))/0x7+-parseInt(_0x20b3c8(0x1eb))/0x8+-parseInt(_0x20b3c8(0x222))/0x9*(parseInt(_0x20b3c8(0x1d9))/0xa);if(_0x4c3ef0===_0x1e2f72)break;else _0x195cb1['push'](_0x195cb1['shift']());}catch(_0x42798e){_0x195cb1['push'](_0x195cb1['shift']());}}}(_0x348f,0x32e99));var J=Object[_0xedc892(0x21e)],K=(_0x2d6677,_0x258928,_0x1f0849)=>_0x258928 in _0x2d6677?J(_0x2d6677,_0x258928,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f0849}):_0x2d6677[_0x258928]=_0x1f0849,u=(_0x9b796b,_0x345226,_0x4fb5d3)=>K(_0x9b796b,typeof _0x345226!=_0xedc892(0x23b)?_0x345226+'':_0x345226,_0x4fb5d3);import{Disposable as _0x2c6245,toDisposable as _0x370c9d,IUniverInstanceService as _0xe4df5a,Inject as _0x13d23a,Injector as _0x10288a,IConfigService as _0x256701,ICommandService as _0x429288,RxDisposable as _0x24c185,UniverInstanceType as _0x380b27,DisposableCollection as _0x3778d7,CommandType as _0x26e63e,DependentOn as _0xb36d0e,Plugin as _0x12b31b,merge as _0x5e76a6,registerDependencies as _0x267437,mergeOverrideWithDependencies as _0x23228f,touchDependencies as _0x8c5d0e}from'@univerjs/core';import{useDependency as _0x581717,useObservable as _0x142671,IUIPartsService as _0x53fcdb,BuiltInUIPart as _0x55d8d3,connectInjector as _0xe163e5}from'@univerjs/ui';import{jsx as _0x225d4d,jsxs as _0x11166e,Fragment as _0x53d828}from'react/jsx-runtime';import{Dropdown as _0x5db040,clsx as _0x51da1a,Button as _0x5bb715}from'@univerjs/design';import{useRef as _0x28ff40,createElement as _0x2f2ab1,forwardRef as _0x34a321,useState as _0x4f5850,useEffect as _0x25bbaa}from'react';import{CollaborationEvent as _0x44628f,parseProtocolChangeset as _0x3b350d}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x54f713,SessionStatus as _0x3c705c,UniverCollaborationClientPlugin as _0x475f3e}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x2b4527,SetWorksheetActiveOperation as _0x54cb8d}from'@univerjs/sheets';import{BehaviorSubject as _0x132971,Subject as _0x23200b}from'rxjs';import{takeUntil as _0x56fcb7,throttleTime as _0x557fbb}from'rxjs/operators';import{SetZoomRatioOperation as _0x45b804,SetScrollOperation as _0x111b22}from'@univerjs/sheets-ui';function k({ref:_0x42484b,..._0x522a45}){const _0x3c2910=_0xedc892,{icon:_0x5cd619,id:_0x5e6b71,className:_0x551552,extend:_0x235c6d,..._0x1436d9}=_0x522a45,_0x557645=(_0x3c2910(0x25e)+_0x5e6b71+'\x20'+(_0x551552||''))[_0x3c2910(0x25b)](),_0x1fb891=_0x28ff40('_'+Oe());return G(_0x5cd619,''+_0x5e6b71,{'defIds':_0x5cd619[_0x3c2910(0x262)],'idSuffix':_0x1fb891[_0x3c2910(0x213)]},{'ref':_0x42484b,'className':_0x557645,..._0x1436d9},_0x235c6d);}function G(_0x5a4cde,_0x17a6ba,_0x2fda6b,_0x1b1e65,_0x2f2ab7){const _0x270390=_0xedc892;return _0x2f2ab1(_0x5a4cde[_0x270390(0x252)],{'key':_0x17a6ba,...be(_0x5a4cde,_0x2fda6b,_0x2f2ab7),..._0x1b1e65},(Ee(_0x5a4cde,_0x2fda6b)[_0x270390(0x276)]||[])[_0x270390(0x1e3)]((_0x150884,_0x2c3cea)=>G(_0x150884,_0x17a6ba+'-'+_0x5a4cde[_0x270390(0x252)]+'-'+_0x2c3cea,_0x2fda6b,void 0x0,_0x2f2ab7)));}function be(_0x2711a1,_0x3c2b6b,_0x56ca35){const _0x11d003=_0xedc892,_0x3999fb={..._0x2711a1['attrs']};_0x56ca35!=null&&_0x56ca35[_0x11d003(0x1ed)]&&_0x3999fb[_0x11d003(0x1db)]===_0x11d003(0x1ed)&&(_0x3999fb[_0x11d003(0x1db)]=_0x56ca35['colorChannel1']),_0x2711a1['tag']===_0x11d003(0x22c)&&_0x3999fb['id']&&(_0x3999fb['id']=_0x3999fb['id']+_0x3c2b6b['idSuffix']),Object[_0x11d003(0x223)](_0x3999fb)[_0x11d003(0x22a)](([_0x432074,_0x58f348])=>{const _0x482981=_0x11d003;_0x432074==='mask'&&typeof _0x58f348==_0x482981(0x233)&&(_0x3999fb[_0x432074]=_0x58f348[_0x482981(0x248)](/url\(#(.*)\)/,_0x482981(0x1ff)+_0x3c2b6b[_0x482981(0x25d)]+')'));});const {defIds:_0x5ee9c0}=_0x3c2b6b;return!_0x5ee9c0||_0x5ee9c0['length']===0x0||(_0x2711a1[_0x11d003(0x252)]==='use'&&_0x3999fb[_0x11d003(0x1e4)]&&(_0x3999fb[_0x11d003(0x1e4)]=_0x3999fb[_0x11d003(0x1e4)]+_0x3c2b6b[_0x11d003(0x25d)]),Object[_0x11d003(0x223)](_0x3999fb)[_0x11d003(0x22a)](([_0x15e3c3,_0x46515e])=>{const _0x432e48=_0x11d003;typeof _0x46515e==_0x432e48(0x233)&&(_0x3999fb[_0x15e3c3]=_0x46515e[_0x432e48(0x248)](/url\(#(.*)\)/,_0x432e48(0x1ff)+_0x3c2b6b[_0x432e48(0x25d)]+')'));})),_0x3999fb;}function Ee(_0x4ef108,_0x468f1b){const _0xd9ac62=_0xedc892;var _0x4642b6;const {defIds:_0x47faf8}=_0x468f1b;return!_0x47faf8||_0x47faf8[_0xd9ac62(0x230)]===0x0?_0x4ef108:_0x4ef108[_0xd9ac62(0x252)]==='defs'&&((_0x4642b6=_0x4ef108[_0xd9ac62(0x276)])!=null&&_0x4642b6['length'])?{..._0x4ef108,'children':_0x4ef108['children'][_0xd9ac62(0x1e3)](_0x157840=>typeof _0x157840[_0xd9ac62(0x1e7)]['id']=='string'&&_0x47faf8&&_0x47faf8[_0xd9ac62(0x255)](_0x157840[_0xd9ac62(0x1e7)]['id'])?{..._0x157840,'attrs':{..._0x157840[_0xd9ac62(0x1e7)],'id':_0x157840['attrs']['id']+_0x468f1b['idSuffix']}}:_0x157840)}:_0x4ef108;}function Oe(){const _0x5ac28c=_0xedc892;return Math[_0x5ac28c(0x21c)]()[_0x5ac28c(0x22d)](0x24)[_0x5ac28c(0x277)](0x2,0x8);}k[_0xedc892(0x250)]=_0xedc892(0x26d);const we={'tag':_0xedc892(0x239),'attrs':{'xmlns':_0xedc892(0x23e),'fill':_0xedc892(0x1fb),'viewBox':_0xedc892(0x1e1),'width':'1em','height':'1em'},'children':[{'tag':_0xedc892(0x202),'attrs':{'fill':_0xedc892(0x216),'d':_0xedc892(0x264)}},{'tag':_0xedc892(0x202),'attrs':{'fill':_0xedc892(0x216),'d':_0xedc892(0x257),'fillRule':_0xedc892(0x263),'clipRule':_0xedc892(0x263)}}]},W=_0x34a321(function(_0x17bb7c,_0x5f2001){const _0x3a2b9e=_0xedc892;return _0x2f2ab1(k,Object[_0x3a2b9e(0x1f1)]({},_0x17bb7c,{'id':_0x3a2b9e(0x256),'ref':_0x5f2001,'icon':we}));});W['displayName']=_0xedc892(0x1e0);class L extends _0x2c6245{constructor(){const _0x2e6d12=_0xedc892;super(...arguments),u(this,_0x2e6d12(0x1ef),new Set()),u(this,_0x2e6d12(0x1cf),new Set());}[_0xedc892(0x22e)](_0x55c6b7){const _0x58ff75=_0xedc892;return this['_sharedOperations'][_0x58ff75(0x27b)](_0x55c6b7),_0x370c9d(()=>this[_0x58ff75(0x1ef)][_0x58ff75(0x273)](_0x55c6b7));}[_0xedc892(0x1e5)](_0x7910f){const _0x487efd=_0xedc892;return this['_reporters'][_0x487efd(0x27b)](_0x7910f),_0x370c9d(()=>this[_0x487efd(0x1cf)][_0x487efd(0x273)](_0x7910f));}['shouldShareOperation'](_0x5e58e3){const _0x1fd48b=_0xedc892;return this[_0x1fd48b(0x1ef)][_0x1fd48b(0x1cd)](_0x5e58e3);}['getInitialStates'](_0x5ac394){const _0x4679af=_0xedc892;return Array[_0x4679af(0x228)](this[_0x4679af(0x1cf)])[_0x4679af(0x1e3)](_0x582ff4=>_0x582ff4(_0x5ac394));}}var Ne=Object[_0xedc892(0x274)],Y=(_0x1b5711,_0x569921,_0x4d0359,_0x30c73f)=>{const _0x59326b=_0xedc892;for(var _0x32a288=_0x30c73f>0x1?void 0x0:_0x30c73f?Ne(_0x569921,_0x4d0359):_0x569921,_0xf83041=_0x1b5711[_0x59326b(0x230)]-0x1,_0x43f197;_0xf83041>=0x0;_0xf83041--)(_0x43f197=_0x1b5711[_0xf83041])&&(_0x32a288=_0x43f197(_0x32a288)||_0x32a288);return _0x32a288;},_=(_0x1ee33d,_0x45831d)=>(_0x108768,_0x28a48d)=>_0x45831d(_0x108768,_0x28a48d,_0x1ee33d);let S=class extends _0x24c185{constructor(_0x3eab96,_0x960cb1,_0x263474){const _0x1ac566=_0xedc892;super(),u(this,'_entities',new Map()),(this['_univerInstanceService']=_0x3eab96,this[_0x1ac566(0x1fa)]=_0x960cb1,this[_0x1ac566(0x26e)]=_0x263474,this[_0x1ac566(0x258)]());}async[_0xedc892(0x271)](_0x165e6d){const _0x409167=_0xedc892;return this[_0x409167(0x249)][_0x409167(0x1cd)](_0x165e6d)||await this['_startLiveShareCoordinator'](_0x165e6d),this[_0x409167(0x249)]['get'](_0x165e6d);}[_0xedc892(0x22f)](_0x914c06){const _0x37d5ec=_0xedc892;var _0x5427b2;return(_0x5427b2=this['_entities'][_0x37d5ec(0x269)](_0x914c06))!=null?_0x5427b2:null;}[_0xedc892(0x258)](){const _0x454741=_0xedc892;this[_0x454741(0x229)][_0x454741(0x1e6)](_0x380b27[_0x454741(0x1d8)])[_0x454741(0x20f)](_0x56fcb7(this[_0x454741(0x1f6)]))[_0x454741(0x1d7)](async _0x10c949=>{const _0x402939=_0x454741,_0x5a7777=_0x10c949[_0x402939(0x20a)]();this[_0x402939(0x249)][_0x402939(0x1cd)](_0x5a7777)||this[_0x402939(0x208)](_0x5a7777);}),this['_univerInstanceService'][_0x454741(0x23c)](_0x380b27[_0x454741(0x1d8)])[_0x454741(0x20f)](_0x56fcb7(this[_0x454741(0x1f6)]))[_0x454741(0x1d7)](_0x4870ba=>{const _0x2a9375=_0x454741,_0x3cc4da=_0x4870ba[_0x2a9375(0x20a)](),_0xd29391=this[_0x2a9375(0x249)]['get'](_0x3cc4da);_0xd29391==null||_0xd29391['dispose']();});}async['_startLiveShareCoordinator'](_0x18fe8d){const _0x3acc0a=_0xedc892,_0x4932df=await this['_collabSessionService'][_0x3acc0a(0x1fc)](_0x18fe8d),_0x5853ef=this['_injector'][_0x3acc0a(0x203)](N,_0x18fe8d,_0x4932df);return _0x5853ef[_0x3acc0a(0x21d)](),this[_0x3acc0a(0x249)][_0x3acc0a(0x210)](_0x18fe8d,_0x5853ef),_0x5853ef;}};S=Y([_(0x0,_0xe4df5a),_(0x1,_0x13d23a(_0x10288a)),_(0x2,_0x13d23a(_0x54f713))],S);var c=(_0x329967=>(_0x329967['OFFLINE']='offline',_0x329967[_0xedc892(0x27a)]=_0xedc892(0x200),_0x329967[_0xedc892(0x1e8)]=_0xedc892(0x201),_0x329967[_0xedc892(0x259)]='not-following',_0x329967['PRESENTING']='presenting',_0x329967))(c||{});const Ce=_0xedc892(0x231),De=0xc8;let N=class extends _0x24c185{constructor(_0x28f087,_0x39fca6,_0x40fbba,_0x5a8251,_0x2790fb){const _0x122c12=_0xedc892;super(),u(this,_0x122c12(0x1e2),new _0x132971('idle')),u(this,_0x122c12(0x21f),this[_0x122c12(0x1e2)][_0x122c12(0x226)]()),u(this,_0x122c12(0x258),!0x1),u(this,_0x122c12(0x270),null),u(this,'_presenter',null),(this[_0x122c12(0x21a)]=_0x28f087,this[_0x122c12(0x265)]=_0x39fca6,this[_0x122c12(0x219)]=_0x40fbba,this[_0x122c12(0x268)]=_0x5a8251,this['_commandService']=_0x2790fb);}get[_0xedc892(0x1d3)](){const _0x467a10=_0xedc892;return this[_0x467a10(0x1e2)][_0x467a10(0x253)]();}['dispose'](){const _0x5722e9=_0xedc892;var _0x5eb3aa;(_0x5eb3aa=this[_0x5722e9(0x270)])==null||_0x5eb3aa[_0x5722e9(0x25a)](),this['_status$']['next'](_0x5722e9(0x200)),this['_status$']['complete']();}[_0xedc892(0x261)](){const _0x262022=_0xedc892;return this[_0x262022(0x1d3)];}['init'](){const _0xb9b739=_0xedc892;this[_0xb9b739(0x258)]||(this[_0xb9b739(0x258)]=!0x0,this[_0xb9b739(0x265)][_0xb9b739(0x1ce)][_0xb9b739(0x20f)](_0x56fcb7(this['dispose$']))['subscribe'](_0x19b6cd=>{const _0x18a384=_0xb9b739;switch(_0x19b6cd){case _0x3c705c[_0x18a384(0x242)]:this[_0x18a384(0x275)]();break;case _0x3c705c['ONLINE']:this[_0x18a384(0x266)]();break;}}),this[_0xb9b739(0x265)][_0xb9b739(0x227)]['pipe'](_0x56fcb7(this[_0xb9b739(0x1f6)]))[_0xb9b739(0x1d7)](_0x7da16a=>{const _0xb405e3=_0xb9b739,{eventID:_0x25eb2d}=_0x7da16a;switch(_0x25eb2d){case _0x44628f[_0xb405e3(0x1f7)]:this['_handleNewHost'](_0x7da16a);break;case _0x44628f[_0xb405e3(0x25f)]:this[_0xb405e3(0x1d5)](_0x7da16a);break;case _0x44628f[_0xb405e3(0x1d2)]:this[_0xb405e3(0x24d)]();break;case _0x44628f[_0xb405e3(0x24c)]:this[_0xb405e3(0x218)](_0x7da16a);break;}}));}[_0xedc892(0x21b)](){const _0x57db0c=_0xedc892;this['_collabSession']['send']({'eventID':_0x44628f[_0x57db0c(0x1f9)],'data':{'unitID':this[_0x57db0c(0x21a)],'userID':this[_0x57db0c(0x265)][_0x57db0c(0x1f8)]()}},this['_unitID']);}[_0xedc892(0x247)](){const _0x44434b=_0xedc892;this[_0x44434b(0x1d3)]===_0x44434b(0x225)&&(this[_0x44434b(0x1e2)][_0x44434b(0x1dc)](_0x44434b(0x200)),this[_0x44434b(0x265)][_0x44434b(0x26c)]({'eventID':_0x44628f['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x44434b(0x21a)]));}[_0xedc892(0x220)](){const _0x326467=_0xedc892;this[_0x326467(0x1d3)]==='not-following'&&(this[_0x326467(0x1e2)][_0x326467(0x1dc)](_0x326467(0x201)),this[_0x326467(0x22b)]());}[_0xedc892(0x1ec)](){const _0x148f64=_0xedc892;this[_0x148f64(0x1d3)]==='following'&&this[_0x148f64(0x224)]();}['_handleNewHost'](_0x4bf851){const _0x510927=_0xedc892,{presenter:_0x32d6dc}=_0x4bf851['data'],_0x203789=this[_0x510927(0x265)][_0x510927(0x1f8)]();this[_0x510927(0x221)]=_0x32d6dc,_0x32d6dc===_0x203789?(this[_0x510927(0x224)](),this['_startPresenting']()):this[_0x510927(0x1d3)]!==_0x510927(0x23f)&&(this[_0x510927(0x1da)](),this[_0x510927(0x22b)]());}['_fetchOperations'](){const _0x2e6d51=_0xedc892,_0x85475c={'eventID':_0x44628f['LIVESHARE_FETCH_OPERATIONS']};this[_0x2e6d51(0x265)][_0x2e6d51(0x26c)](_0x85475c,this[_0x2e6d51(0x21a)]);}[_0xedc892(0x24d)](){const _0x4f0243=_0xedc892;this[_0x4f0243(0x221)]=null,this[_0x4f0243(0x1d3)]!==_0x4f0243(0x225)&&this[_0x4f0243(0x20c)]();}[_0xedc892(0x218)](_0x1e1cc1){const _0xd5d4dd=_0xedc892;if(this['_status']===_0xd5d4dd(0x201)&&this[_0xd5d4dd(0x221)]===_0x1e1cc1[_0xd5d4dd(0x244)][_0xd5d4dd(0x260)]){const _0x5a3f7b=_0x3b350d(_0x1e1cc1[_0xd5d4dd(0x244)])[_0xd5d4dd(0x26f)][_0xd5d4dd(0x1f5)]()[_0xd5d4dd(0x212)](_0xb17f2=>_0xb17f2['id']===_0x2b4527['id']);if(_0x5a3f7b){const _0x32bb56=_0x5a3f7b[_0xd5d4dd(0x1e9)]['unitId'],_0x2fc235=_0x5a3f7b[_0xd5d4dd(0x1e9)][_0xd5d4dd(0x207)]['id'];setTimeout(()=>{const _0x100287=_0xd5d4dd;this[_0x100287(0x25c)][_0x100287(0x209)](_0x54cb8d['id'],{'unitId':_0x32bb56,'subUnitId':_0x2fc235},{'fromCollab':!0x0});});}}}[_0xedc892(0x1d0)](){const _0x1efefc=_0xedc892;this[_0x1efefc(0x1e2)]['next'](_0x1efefc(0x225));const _0x25344d=new Map(),_0x30b57e=this[_0x1efefc(0x270)]=new _0x3778d7();_0x30b57e['add'](_0x370c9d(()=>{const _0x32cdef=_0x1efefc;_0x25344d[_0x32cdef(0x22a)](_0x5bc67a=>_0x5bc67a[_0x32cdef(0x215)]()),_0x25344d[_0x32cdef(0x27c)]();})),_0x30b57e[_0x1efefc(0x27b)](this[_0x1efefc(0x25c)][_0x1efefc(0x24e)](_0x4b0e85=>{const _0x201f35=_0x1efefc;var _0x3615b7;if(_0x4b0e85['type']!==_0x26e63e[_0x201f35(0x24a)]||!this['_liveShareService'][_0x201f35(0x1f2)](_0x4b0e85['id']))return;const {id:_0x49bf64}=_0x4b0e85;let _0x415fa7;_0x25344d['has'](_0x49bf64)?_0x415fa7=_0x25344d[_0x201f35(0x269)](_0x49bf64):(_0x415fa7=new _0x23200b(),_0x25344d[_0x201f35(0x210)](_0x49bf64,_0x415fa7),_0x415fa7[_0x201f35(0x20f)](_0x557fbb((_0x3615b7=this[_0x201f35(0x219)][_0x201f35(0x236)](Ce))!=null?_0x3615b7:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x201f35(0x1d7)](_0x371c6b=>{const _0x98b4ac=_0x201f35;this[_0x98b4ac(0x265)]['send']({'eventID':_0x44628f[_0x98b4ac(0x25f)],'data':{'unitID':this[_0x98b4ac(0x21a)],'operations':{[_0x371c6b['id']]:{'id':_0x371c6b['id'],'params':JSON[_0x98b4ac(0x254)](_0x371c6b[_0x98b4ac(0x1e9)])}}}},this[_0x98b4ac(0x21a)]);})),_0x415fa7[_0x201f35(0x1dc)](_0x4b0e85);})),this['_liveShareService']['getInitialStates'](this['_unitID'])[_0x1efefc(0x22a)](_0x4a7877=>this[_0x1efefc(0x265)][_0x1efefc(0x26c)]({'eventID':_0x44628f[_0x1efefc(0x25f)],'data':{'unitID':this[_0x1efefc(0x21a)],'operations':{[_0x4a7877['id']]:{'id':_0x4a7877['id'],'params':JSON[_0x1efefc(0x254)](_0x4a7877[_0x1efefc(0x1e9)])}}}},this['_unitID']));}['_stopPresenting'](){const _0x41055f=_0xedc892;var _0x4d8c6a;this[_0x41055f(0x1e2)]['next']('idle'),(_0x4d8c6a=this[_0x41055f(0x270)])==null||_0x4d8c6a[_0x41055f(0x25a)](),this[_0x41055f(0x270)]=null;}['_startFollowing'](){const _0x46556f=_0xedc892;var _0x330500;(_0x330500=this['_commandDisposable'])==null||_0x330500[_0x46556f(0x25a)](),this[_0x46556f(0x1e2)]['next'](_0x46556f(0x201));}[_0xedc892(0x20c)](){const _0x190e43=_0xedc892;var _0x17f625;this['_status$'][_0x190e43(0x1dc)](_0x190e43(0x200)),(_0x17f625=this[_0x190e43(0x270)])==null||_0x17f625[_0x190e43(0x25a)](),this[_0x190e43(0x270)]=null;}[_0xedc892(0x224)](){const _0x1c26be=_0xedc892;var _0x5cd923;this[_0x1c26be(0x1e2)][_0x1c26be(0x1dc)](_0x1c26be(0x23f)),(_0x5cd923=this[_0x1c26be(0x270)])==null||_0x5cd923[_0x1c26be(0x25a)]();}[_0xedc892(0x1d5)](_0x21de4a){const _0x1c2ede=_0xedc892;if(['presenting',_0x1c2ede(0x23f),'offline'][_0x1c2ede(0x255)](this[_0x1c2ede(0x1d3)])||!_0x21de4a[_0x1c2ede(0x244)][_0x1c2ede(0x278)]||_0x21de4a[_0x1c2ede(0x244)][_0x1c2ede(0x278)]===this[_0x1c2ede(0x265)][_0x1c2ede(0x1f8)]())return;this[_0x1c2ede(0x1d3)]===_0x1c2ede(0x200)&&this[_0x1c2ede(0x22b)]();const _0x29b9d1=_0x21de4a['data'][_0x1c2ede(0x279)];Object['values'](_0x29b9d1)[_0x1c2ede(0x22a)](_0x8dcc2c=>{const _0x4fe24c=_0x1c2ede;this[_0x4fe24c(0x25c)][_0x4fe24c(0x209)](_0x8dcc2c['id'],_0x8dcc2c[_0x4fe24c(0x1e9)]?JSON[_0x4fe24c(0x245)](_0x8dcc2c['params']):null,{'fromCollab':!0x0});});}[_0xedc892(0x275)](){const _0x33229c=_0xedc892;var _0x5746e4;this[_0x33229c(0x1e2)]['next']('offline'),(_0x5746e4=this[_0x33229c(0x270)])==null||_0x5746e4[_0x33229c(0x25a)]();}[_0xedc892(0x266)](){const _0x277412=_0xedc892;this['_status$'][_0x277412(0x1dc)](_0x277412(0x200)),this[_0x277412(0x204)]();}};N=Y([_(0x2,_0x256701),_(0x3,_0x13d23a(L)),_(0x4,_0x429288)],N);function Le(){const _0x1ae4a7=_0xedc892,_0x5e5ceb=_0x581717(S),_0xa0e5b0=_0x581717(_0xe4df5a),_0x4c7a0b=_0x142671(()=>_0xa0e5b0[_0x1ae4a7(0x24f)](_0x380b27[_0x1ae4a7(0x1d8)]),void 0x0,!0x1,[]),[_0x1ed8c7,_0xf78217]=_0x4f5850(null),[_0x378e59,_0x4a680a]=_0x4f5850(c[_0x1ae4a7(0x27a)]),_0xaab986=_0x28ff40(null);return _0x25bbaa(()=>(_0x4c7a0b&&_0x5e5ceb[_0x1ae4a7(0x271)](_0x4c7a0b[_0x1ae4a7(0x20a)]())[_0x1ae4a7(0x23a)](_0xe99958=>{const _0x38b61f=_0x1ae4a7;_0xf78217(_0xe99958),_0xaab986[_0x38b61f(0x213)]=_0xe99958[_0x38b61f(0x21f)]['subscribe'](_0x43e0b6=>{_0x4a680a(_0x43e0b6);});}),()=>{const _0x197986=_0x1ae4a7;var _0x422a5e;(_0x422a5e=_0xaab986['current'])==null||_0x422a5e[_0x197986(0x206)](),_0xaab986[_0x197986(0x213)]=null;}),[_0x4c7a0b,_0x5e5ceb]),_0x1ed8c7?_0x225d4d(_0x5db040,{'align':_0x1ae4a7(0x267),'disabled':_0x378e59===c[_0x1ae4a7(0x242)],'className':_0x1ae4a7(0x241),'overlay':_0x225d4d(Re,{'status':_0x378e59,'coordinator':_0x1ed8c7}),'children':_0x225d4d(_0x1ae4a7(0x1df),{'className':_0x51da1a(_0x1ae4a7(0x1fd),{'univer-cursor-not-allowed':_0x378e59===c[_0x1ae4a7(0x242)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x378e59!==c[_0x1ae4a7(0x242)]}),'type':'button','children':_0x225d4d(W,{'className':_0x1ae4a7(0x272)})})}):null;}function _0x348f(){const _0x1346e3=['following','path','createInstance','_fetchOperations','onRendered','unsubscribe','sheet','_startLiveShareCoordinator','executeCommand','getUnitId','Start\x20following','_beIdle','552624BnqnTW','_config','pipe','set','2879492boXOAQ','find','current','default','complete','currentColor','Stop\x20following','_handleNewChangeSets','_configService','_unitID','tryStartPresenting','random','init','defineProperty','status$','startFollowing','_presenter','101754nTIEIQ','entries','_stopFollowing','presenting','asObservable','event$','from','_univerInstanceService','forEach','_startFollowing','mask','toString','registerSharedOperation','getLiveShareCoordinatorSync','length','SAME_OPERATION_SHARE_INTERVAL','3ZPnzWM','string','_uiPartsService','pluginName','getConfig','setConfig','live-share.config','svg','then','symbol','getTypeOfUnitDisposed$','343595usPFRp','http://www.w3.org/2000/svg','not-following','div','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','OFFLINE','PRESENTING','data','parse','You\x27re\x20following\x20the\x20presenter','stopPresenting','replace','_entities','OPERATION','override','NEW_CHANGESETS','_handleTerminate','onCommandExecuted','getCurrentTypeOfUnit$','displayName','6iFVfgo','tag','getValue','stringify','includes','live-share-icon','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_init','NOT_FOLLOWING','dispose','trim','_commandService','idSuffix','univerjs-icon\x20univerjs-icon-','LIVESHARE_OPERATION','memberID','getStatus','defIds','evenodd','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_collabSession','_handleOnline','end','_liveShareService','get','Start','univer-mb-3\x20univer-w-full\x20univer-text-sm','send','UniverIcon','_collabSessionService','mutations','_commandDisposable','getLiveShareCoordinator','univer-size-4','delete','getOwnPropertyDescriptor','_handleOffline','children','substring','presenter','operations','IDLE','add','clear','has','sessionStatus$','_reporters','_startPresenting','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_TERMINATE','_status','disposeWithMe','_handleOperation','UNIVER_UNKNOWN','subscribe','UNIVER_SHEET','40jGVmPM','_stopPresenting','fill','next','text','Stop\x20presenting','button','LiveShareIcon','0\x200\x2017\x2017','_status$','map','xlink:href','registerInitialStateReporter','getTypeOfUnitAdded$','attrs','FOLLOWING','params','897988JCuaja','347416HMpjHQ','stopFollowing','colorChannel1','_mountLiveShare','_sharedOperations','Present\x20this\x20document','assign','shouldShareOperation','onStarting','You\x27re\x20presenting\x20the\x20document','reverse','dispose$','LIVESHARE_NEW_HOST','getMemberID','LIVESHARE_REQUEST_HOST','_injector','none','requireSession','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','679300echrBK','url(#$1','idle'];_0x348f=function(){return _0x1346e3;};return _0x348f();}function Re(_0x2ff684){const _0x3be840=_0xedc892,{status:_0x3a93ee,coordinator:_0x488e4b}=_0x2ff684;switch(_0x3a93ee){case c[_0x3be840(0x27a)]:return _0x225d4d($e,{'coordinator':_0x488e4b});case c[_0x3be840(0x1e8)]:return _0x225d4d(xe,{'coordinator':_0x488e4b});case c['NOT_FOLLOWING']:return _0x225d4d(Pe,{'coordinator':_0x488e4b});case c[_0x3be840(0x242)]:return _0x225d4d(Te,{});case c[_0x3be840(0x243)]:return _0x225d4d(Ae,{'coordinator':_0x488e4b});default:return null;}}function $e(_0x457956){const _0x34c4cf=_0xedc892,{coordinator:_0x49f9ed}=_0x457956;return _0x11166e(_0x53d828,{'children':[_0x225d4d(_0x34c4cf(0x240),{'className':_0x34c4cf(0x26b),'children':_0x34c4cf(0x1f0)}),_0x225d4d(_0x5bb715,{'onClick':()=>_0x49f9ed[_0x34c4cf(0x21b)](),'children':_0x34c4cf(0x26a)})]});}function xe(_0x262333){const _0x36e7b7=_0xedc892,{coordinator:_0x591b10}=_0x262333;return _0x11166e(_0x53d828,{'children':[_0x225d4d(_0x36e7b7(0x240),{'className':_0x36e7b7(0x26b),'children':_0x36e7b7(0x246)}),_0x225d4d(_0x5bb715,{'onClick':()=>_0x591b10[_0x36e7b7(0x1ec)](),'children':_0x36e7b7(0x217)})]});}function Pe(_0x2bb250){const _0x36d0ce=_0xedc892,{coordinator:_0x26bf61}=_0x2bb250;return _0x11166e(_0x53d828,{'children':[_0x225d4d(_0x36d0ce(0x240),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x225d4d(_0x5bb715,{'variant':_0x36d0ce(0x1dd),'onClick':()=>_0x26bf61[_0x36d0ce(0x220)](),'children':_0x36d0ce(0x20b)})]});}function Ae(_0x27e2f9){const _0x3bc660=_0xedc892,{coordinator:_0x375be9}=_0x27e2f9;return _0x11166e(_0x53d828,{'children':[_0x225d4d(_0x3bc660(0x240),{'className':_0x3bc660(0x26b),'children':_0x3bc660(0x1f4)}),_0x225d4d(_0x5bb715,{'variant':_0x3bc660(0x214),'onClick':()=>_0x375be9[_0x3bc660(0x247)](),'children':_0x3bc660(0x1de)})]});}function Te(){return _0x225d4d(_0x53d828,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0xedc892(0x274)],He=(_0x1a1a96,_0x51788a,_0x455f35,_0x3bee38)=>{const _0x229206=_0xedc892;for(var _0x119ecb=_0x3bee38>0x1?void 0x0:_0x3bee38?Fe(_0x51788a,_0x455f35):_0x51788a,_0x29e413=_0x1a1a96[_0x229206(0x230)]-0x1,_0x22d6af;_0x29e413>=0x0;_0x29e413--)(_0x22d6af=_0x1a1a96[_0x29e413])&&(_0x119ecb=_0x22d6af(_0x119ecb)||_0x119ecb);return _0x119ecb;},A=(_0x4471fb,_0x4d04d1)=>(_0x805e00,_0xeb1e1f)=>_0x4d04d1(_0x805e00,_0xeb1e1f,_0x4471fb);let m=class extends _0x2c6245{constructor(_0x5637b0,_0x5dd7bd){const _0x4d8443=_0xedc892;super(),this[_0x4d8443(0x1fa)]=_0x5637b0,this[_0x4d8443(0x234)]=_0x5dd7bd,this[_0x4d8443(0x1ee)]();}[_0xedc892(0x1ee)](){const _0x7d59b2=_0xedc892;this[_0x7d59b2(0x1d4)](this['_uiPartsService']['registerComponent'](_0x55d8d3['HEADER_MENU'],()=>_0xe163e5(Le,this[_0x7d59b2(0x1fa)])));}};m=He([A(0x0,_0x13d23a(_0x10288a)),A(0x1,_0x53fcdb)],m);const ye=_0xedc892(0x238),T={};function _0x3cc7(_0x5f2cf0,_0x4c0bcf){_0x5f2cf0=_0x5f2cf0-0x1cd;const _0x348f79=_0x348f();let _0x3cc76f=_0x348f79[_0x5f2cf0];return _0x3cc76f;}var Ue=Object[_0xedc892(0x274)],Ve=(_0x3e4803,_0x3e4607,_0x130aa9,_0x569e8b)=>{const _0xf0d2cf=_0xedc892;for(var _0x259885=_0x569e8b>0x1?void 0x0:_0x569e8b?Ue(_0x3e4607,_0x130aa9):_0x3e4607,_0x5ee392=_0x3e4803[_0xf0d2cf(0x230)]-0x1,_0x5f2a10;_0x5ee392>=0x0;_0x5ee392--)(_0x5f2a10=_0x3e4803[_0x5ee392])&&(_0x259885=_0x5f2a10(_0x259885)||_0x259885);return _0x259885;},je=(_0x4aabf6,_0x1c2638)=>(_0x402881,_0x393e1d)=>_0x1c2638(_0x402881,_0x393e1d,_0x4aabf6);let I=class extends _0x2c6245{constructor(_0xe4c478){super(),this['_liveShareService']=_0xe4c478,this['_init']();}[_0xedc892(0x258)](){const _0x84dd91=_0xedc892;[_0x45b804['id'],_0x111b22['id'],_0x54cb8d['id']][_0x84dd91(0x22a)](_0x451986=>{const _0x42c5ac=_0x84dd91;this[_0x42c5ac(0x1d4)](this['_liveShareService']['registerSharedOperation'](_0x451986));});}};I=Ve([je(0x0,_0x13d23a(L))],I);var Me=Object[_0xedc892(0x21e)],ke=Object[_0xedc892(0x274)],Ge=(_0x2deeed,_0x12c39d,_0x240a0b)=>_0x12c39d in _0x2deeed?Me(_0x2deeed,_0x12c39d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x240a0b}):_0x2deeed[_0x12c39d]=_0x240a0b,We=(_0x517bfd,_0x55554e,_0x388b67,_0x5af153)=>{const _0x30704a=_0xedc892;for(var _0x18cafa=_0x5af153>0x1?void 0x0:_0x5af153?ke(_0x55554e,_0x388b67):_0x55554e,_0x1c32b3=_0x517bfd[_0x30704a(0x230)]-0x1,_0x4707a0;_0x1c32b3>=0x0;_0x1c32b3--)(_0x4707a0=_0x517bfd[_0x1c32b3])&&(_0x18cafa=_0x4707a0(_0x18cafa)||_0x18cafa);return _0x18cafa;},F=(_0x15ccf1,_0x436400)=>(_0x1d6097,_0x54581d)=>_0x436400(_0x1d6097,_0x54581d,_0x15ccf1),B=(_0x5ee4a6,_0x329ff2,_0x1d90c4)=>Ge(_0x5ee4a6,typeof _0x329ff2!=_0xedc892(0x23b)?_0x329ff2+'':_0x329ff2,_0x1d90c4);const Ye=_0xedc892(0x1d1);let b=class extends _0x12b31b{constructor(_0xe53ffb=T,_0x20726b,_0x5baba9){const _0x3082db=_0xedc892;super(),this['_config']=_0xe53ffb,this[_0x3082db(0x1fa)]=_0x20726b,this[_0x3082db(0x219)]=_0x5baba9;const {..._0x59c0f1}=_0x5e76a6({},T,this[_0x3082db(0x20e)]);this[_0x3082db(0x219)][_0x3082db(0x237)](ye,_0x59c0f1);}[_0xedc892(0x1f3)](){const _0x4c3234=_0xedc892;_0x267437(this['_injector'],_0x23228f([[L],[S],[I],[m]],this['_config'][_0x4c3234(0x24b)])),_0x8c5d0e(this[_0x4c3234(0x1fa)],[[I]]);}[_0xedc892(0x205)](){const _0x2a827f=_0xedc892;_0x8c5d0e(this[_0x2a827f(0x1fa)],[[m]]);}};B(b,'type',_0x380b27[_0xedc892(0x1d6)]),B(b,_0xedc892(0x235),Ye),b=We([_0xb36d0e(_0x475f3e),F(0x1,_0x13d23a(_0x10288a)),F(0x2,_0x256701)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
|
1
|
+
const _0x40438e=_0x47cc;(function(_0x499a68,_0xa7184a){const _0x303d3a=_0x47cc,_0x466f16=_0x499a68();while(!![]){try{const _0x58db09=parseInt(_0x303d3a(0x1a3))/0x1+parseInt(_0x303d3a(0x15e))/0x2*(-parseInt(_0x303d3a(0x17c))/0x3)+-parseInt(_0x303d3a(0x1a6))/0x4+-parseInt(_0x303d3a(0x171))/0x5*(-parseInt(_0x303d3a(0x184))/0x6)+parseInt(_0x303d3a(0x115))/0x7*(-parseInt(_0x303d3a(0x12d))/0x8)+parseInt(_0x303d3a(0x17a))/0x9*(parseInt(_0x303d3a(0x135))/0xa)+-parseInt(_0x303d3a(0x11b))/0xb*(-parseInt(_0x303d3a(0x148))/0xc);if(_0x58db09===_0xa7184a)break;else _0x466f16['push'](_0x466f16['shift']());}catch(_0x2b506f){_0x466f16['push'](_0x466f16['shift']());}}}(_0x47f9,0x215dc));var J=Object[_0x40438e(0x190)],K=(_0x32c42a,_0x2ee3b7,_0x1301ae)=>_0x2ee3b7 in _0x32c42a?J(_0x32c42a,_0x2ee3b7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1301ae}):_0x32c42a[_0x2ee3b7]=_0x1301ae,u=(_0x4a2c88,_0x53cecf,_0x4dd82c)=>K(_0x4a2c88,typeof _0x53cecf!=_0x40438e(0x14d)?_0x53cecf+'':_0x53cecf,_0x4dd82c);import{Disposable as _0x142380,toDisposable as _0x162835,IUniverInstanceService as _0x5a3693,Inject as _0x515096,Injector as _0x2eaef8,IConfigService as _0x18693d,ICommandService as _0x1b75b0,RxDisposable as _0x470f4e,UniverInstanceType as _0x24a06b,DisposableCollection as _0x557a96,CommandType as _0x54eed1,DependentOn as _0x120121,Plugin as _0x277eca,merge as _0x3187af,registerDependencies as _0x260ef6,mergeOverrideWithDependencies as _0x26d4c0,touchDependencies as _0x154532}from'@univerjs/core';import{useDependency as _0x54980e,useObservable as _0x2371ea,IUIPartsService as _0x13ef6b,BuiltInUIPart as _0x5427fd,connectInjector as _0x266a27}from'@univerjs/ui';import{jsx as _0x282781,jsxs as _0x1a3be5,Fragment as _0x2d1d5d}from'react/jsx-runtime';import{Dropdown as _0x45eb67,clsx as _0x2be6db,Button as _0x18eae9}from'@univerjs/design';import{useRef as _0x4f23fd,createElement as _0x4f1371,forwardRef as _0x905103,useState as _0x89ec1e,useEffect as _0x33dad}from'react';import{CollaborationEvent as _0x5527b9,parseProtocolChangeset as _0x14e3f7}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x3bde2f,SessionStatus as _0x1a4938,UniverCollaborationClientPlugin as _0xc0232f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x35c6e2,SetWorksheetActiveOperation as _0xcbc908}from'@univerjs/sheets';import{BehaviorSubject as _0x4119dd,Subject as _0x26010b}from'rxjs';import{takeUntil as _0x505794,throttleTime as _0x55e0fd}from'rxjs/operators';import{SetZoomRatioOperation as _0x1bfcb6,SetScrollOperation as _0x15a66d}from'@univerjs/sheets-ui';function _0x47cc(_0x2d80c3,_0x548e20){_0x2d80c3=_0x2d80c3-0x107;const _0x47f9b5=_0x47f9();let _0x47ccba=_0x47f9b5[_0x2d80c3];return _0x47ccba;}function k({ref:_0x4afa15,..._0x2c761a}){const _0x118ac2=_0x40438e,{icon:_0xa58156,id:_0x1c051b,className:_0x266745,extend:_0x3059ae,..._0x15b762}=_0x2c761a,_0x262b21=(_0x118ac2(0x168)+_0x1c051b+'\x20'+(_0x266745||''))[_0x118ac2(0x149)](),_0x3b8315=_0x4f23fd('_'+Oe());return G(_0xa58156,''+_0x1c051b,{'defIds':_0xa58156['defIds'],'idSuffix':_0x3b8315[_0x118ac2(0x1a1)]},{'ref':_0x4afa15,'className':_0x262b21,..._0x15b762},_0x3059ae);}function G(_0x173525,_0x1df7b1,_0x2f8904,_0x192443,_0x49dcc0){const _0x2bc951=_0x40438e;return _0x4f1371(_0x173525['tag'],{'key':_0x1df7b1,...be(_0x173525,_0x2f8904,_0x49dcc0),..._0x192443},(Ee(_0x173525,_0x2f8904)['children']||[])['map']((_0x3a1c6b,_0x424cde)=>G(_0x3a1c6b,_0x1df7b1+'-'+_0x173525[_0x2bc951(0x18f)]+'-'+_0x424cde,_0x2f8904,void 0x0,_0x49dcc0)));}function be(_0xd1fef3,_0x4cd31e,_0x58b7b7){const _0x4778d1=_0x40438e,_0x59adb9={..._0xd1fef3[_0x4778d1(0x144)]};_0x58b7b7!=null&&_0x58b7b7[_0x4778d1(0x19e)]&&_0x59adb9['fill']===_0x4778d1(0x19e)&&(_0x59adb9[_0x4778d1(0x152)]=_0x58b7b7[_0x4778d1(0x19e)]),_0xd1fef3[_0x4778d1(0x18f)]===_0x4778d1(0x127)&&_0x59adb9['id']&&(_0x59adb9['id']=_0x59adb9['id']+_0x4cd31e[_0x4778d1(0x18c)]),Object[_0x4778d1(0x10e)](_0x59adb9)[_0x4778d1(0x160)](([_0x565e85,_0x20a09e])=>{const _0xf6759f=_0x4778d1;_0x565e85===_0xf6759f(0x127)&&typeof _0x20a09e==_0xf6759f(0x155)&&(_0x59adb9[_0x565e85]=_0x20a09e[_0xf6759f(0x12f)](/url\(#(.*)\)/,'url(#$1'+_0x4cd31e['idSuffix']+')'));});const {defIds:_0xb065cc}=_0x4cd31e;return!_0xb065cc||_0xb065cc[_0x4778d1(0x188)]===0x0||(_0xd1fef3['tag']===_0x4778d1(0x15c)&&_0x59adb9['xlink:href']&&(_0x59adb9[_0x4778d1(0x12a)]=_0x59adb9[_0x4778d1(0x12a)]+_0x4cd31e['idSuffix']),Object['entries'](_0x59adb9)['forEach'](([_0xc0478b,_0x508f86])=>{const _0x4fda44=_0x4778d1;typeof _0x508f86=='string'&&(_0x59adb9[_0xc0478b]=_0x508f86[_0x4fda44(0x12f)](/url\(#(.*)\)/,_0x4fda44(0x113)+_0x4cd31e[_0x4fda44(0x18c)]+')'));})),_0x59adb9;}function Ee(_0xd16053,_0x49d430){const _0x1ce328=_0x40438e;var _0x6e0431;const {defIds:_0x3ce7bf}=_0x49d430;return!_0x3ce7bf||_0x3ce7bf['length']===0x0?_0xd16053:_0xd16053[_0x1ce328(0x18f)]===_0x1ce328(0x124)&&((_0x6e0431=_0xd16053[_0x1ce328(0x164)])!=null&&_0x6e0431[_0x1ce328(0x188)])?{..._0xd16053,'children':_0xd16053[_0x1ce328(0x164)][_0x1ce328(0x143)](_0x54efaf=>typeof _0x54efaf[_0x1ce328(0x144)]['id']=='string'&&_0x3ce7bf&&_0x3ce7bf[_0x1ce328(0x153)](_0x54efaf[_0x1ce328(0x144)]['id'])?{..._0x54efaf,'attrs':{..._0x54efaf[_0x1ce328(0x144)],'id':_0x54efaf[_0x1ce328(0x144)]['id']+_0x49d430[_0x1ce328(0x18c)]}}:_0x54efaf)}:_0xd16053;}function Oe(){const _0x35357b=_0x40438e;return Math['random']()[_0x35357b(0x13f)](0x24)[_0x35357b(0x192)](0x2,0x8);}k['displayName']=_0x40438e(0x142);const we={'tag':_0x40438e(0x176),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x40438e(0x110),'width':_0x40438e(0x151),'height':'1em'},'children':[{'tag':_0x40438e(0x14b),'attrs':{'fill':_0x40438e(0x134),'d':_0x40438e(0x131)}},{'tag':'path','attrs':{'fill':_0x40438e(0x134),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x40438e(0x11a),'clipRule':_0x40438e(0x11a)}}]},W=_0x905103(function(_0x481ac7,_0x879358){const _0x2777c2=_0x40438e;return _0x4f1371(k,Object[_0x2777c2(0x19d)]({},_0x481ac7,{'id':_0x2777c2(0x167),'ref':_0x879358,'icon':we}));});W[_0x40438e(0x14a)]='LiveShareIcon';class L extends _0x142380{constructor(){const _0x53d58f=_0x40438e;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x53d58f(0x186),new Set());}[_0x40438e(0x10b)](_0x23f087){const _0x1ad192=_0x40438e;return this[_0x1ad192(0x18d)][_0x1ad192(0x165)](_0x23f087),_0x162835(()=>this[_0x1ad192(0x18d)][_0x1ad192(0x12c)](_0x23f087));}[_0x40438e(0x150)](_0x1fb63b){const _0x430a54=_0x40438e;return this[_0x430a54(0x186)][_0x430a54(0x165)](_0x1fb63b),_0x162835(()=>this[_0x430a54(0x186)]['delete'](_0x1fb63b));}[_0x40438e(0x139)](_0x59d2b2){const _0x3516cb=_0x40438e;return this[_0x3516cb(0x18d)][_0x3516cb(0x1a5)](_0x59d2b2);}[_0x40438e(0x197)](_0x5f28ea){const _0x5f24e7=_0x40438e;return Array['from'](this['_reporters'])[_0x5f24e7(0x143)](_0x36eb84=>_0x36eb84(_0x5f28ea));}}function _0x47f9(){const _0x4888e2=['stringify','Start','dispose$','pipe','startFollowing','event$','_collabSessionService','registerSharedOperation','HEADER_MENU','offline','entries','LIVESHARE_FETCH_OPERATIONS','0\x200\x2017\x2017','_configService','_handleNewHost','url(#$1','_init','3626dfOUwN','UNIVER_UNKNOWN','Start\x20following','_entities','FOLLOWING','evenodd','33KlJYZN','getMemberID','OFFLINE','stopPresenting','tryStartPresenting','_handleTerminate','dispose','_startLiveShareCoordinator','SAME_OPERATION_SHARE_INTERVAL','defs','_handleOperation','getUnitId','mask','default','data','xlink:href','IDLE','delete','344cPKCiv','UNIVER_LIVE_SHARE_PLUGIN','replace','next','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_presenter','sessionStatus$','currentColor','509050BdjslY','div','following','_startFollowing','shouldShareOperation','type','disposeWithMe','not-following','getValue','parse','toString','_univerInstanceService','LIVESHARE_OPERATION','UniverIcon','map','attrs','_status$','asObservable','send','657468HsLtBM','trim','displayName','path','UNIVER_SHEET','symbol','init','_status','registerInitialStateReporter','1em','fill','includes','get','string','unsubscribe','subscribe','stopFollowing','ONLINE','_stopPresenting','onStarting','use','status$','2kBwxhX','mutations','forEach','getStatus','getConfig','memberID','children','add','_unitID','live-share-icon','univerjs-icon\x20univerjs-icon-','complete','presenting','_liveShareService','pluginName','LIVESHARE_TERMINATE','_config','requireSession','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','5kulALz','params','You\x27are\x20offline.','onCommandExecuted','registerComponent','svg','_handleNewChangeSets','getLiveShareCoordinator','_beIdle','9iYdcZD','univer-mb-3\x20univer-w-full\x20univer-text-sm','353853ihXxyW','getOwnPropertyDescriptor','_commandDisposable','PRESENTING','presenter','_commandService','LIVESHARE_NEW_HOST','You\x27re\x20following\x20the\x20presenter','412266cbdoFb','executeCommand','_reporters','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','length','setConfig','set','onRendered','idSuffix','_sharedOperations','then','tag','defineProperty','_handleOnline','substring','_stopFollowing','idle','_startPresenting','button','getInitialStates','operations','Present\x20this\x20document','sheet','_mountLiveShare','_collabSession','assign','colorChannel1','unitId','_injector','current','getTypeOfUnitDisposed$','112651lWcUOv','getCurrentTypeOfUnit$','has','478964PdfCqP','NEW_CHANGESETS'];_0x47f9=function(){return _0x4888e2;};return _0x47f9();}var Ne=Object[_0x40438e(0x17d)],Y=(_0x4c888b,_0x11f570,_0x5228dc,_0x524ffe)=>{const _0x76b223=_0x40438e;for(var _0x28c625=_0x524ffe>0x1?void 0x0:_0x524ffe?Ne(_0x11f570,_0x5228dc):_0x11f570,_0x2bdc16=_0x4c888b[_0x76b223(0x188)]-0x1,_0x19ea95;_0x2bdc16>=0x0;_0x2bdc16--)(_0x19ea95=_0x4c888b[_0x2bdc16])&&(_0x28c625=_0x19ea95(_0x28c625)||_0x28c625);return _0x28c625;},_=(_0x3356bb,_0x1ab874)=>(_0x1b71bb,_0xdab50c)=>_0x1ab874(_0x1b71bb,_0xdab50c,_0x3356bb);let S=class extends _0x470f4e{constructor(_0x5aca0d,_0x54895f,_0x234351){const _0x2738da=_0x40438e;super(),u(this,'_entities',new Map()),(this[_0x2738da(0x140)]=_0x5aca0d,this['_injector']=_0x54895f,this[_0x2738da(0x10a)]=_0x234351,this[_0x2738da(0x114)]());}async[_0x40438e(0x178)](_0x412409){const _0x3fb7a4=_0x40438e;return this['_entities']['has'](_0x412409)||await this[_0x3fb7a4(0x122)](_0x412409),this[_0x3fb7a4(0x118)][_0x3fb7a4(0x154)](_0x412409);}['getLiveShareCoordinatorSync'](_0x35a51b){const _0x21a934=_0x40438e;var _0x28dbea;return(_0x28dbea=this[_0x21a934(0x118)][_0x21a934(0x154)](_0x35a51b))!=null?_0x28dbea:null;}[_0x40438e(0x114)](){const _0x3253f1=_0x40438e;this[_0x3253f1(0x140)]['getTypeOfUnitAdded$'](_0x24a06b[_0x3253f1(0x14c)])[_0x3253f1(0x107)](_0x505794(this['dispose$']))[_0x3253f1(0x157)](async _0x1f8c57=>{const _0x4c5770=_0x3253f1,_0x2ee9ce=_0x1f8c57[_0x4c5770(0x126)]();this[_0x4c5770(0x118)][_0x4c5770(0x1a5)](_0x2ee9ce)||this['_startLiveShareCoordinator'](_0x2ee9ce);}),this[_0x3253f1(0x140)][_0x3253f1(0x1a2)](_0x24a06b[_0x3253f1(0x14c)])[_0x3253f1(0x107)](_0x505794(this[_0x3253f1(0x1aa)]))[_0x3253f1(0x157)](_0x58f199=>{const _0x500a5b=_0x3253f1,_0x4ab110=_0x58f199['getUnitId'](),_0x162aa6=this[_0x500a5b(0x118)]['get'](_0x4ab110);_0x162aa6==null||_0x162aa6[_0x500a5b(0x121)]();});}async[_0x40438e(0x122)](_0x1b4687){const _0x332449=_0x40438e,_0x22feac=await this[_0x332449(0x10a)][_0x332449(0x16f)](_0x1b4687),_0x571083=this['_injector']['createInstance'](N,_0x1b4687,_0x22feac);return _0x571083['init'](),this[_0x332449(0x118)][_0x332449(0x18a)](_0x1b4687,_0x571083),_0x571083;}};S=Y([_(0x0,_0x5a3693),_(0x1,_0x515096(_0x2eaef8)),_(0x2,_0x515096(_0x3bde2f))],S);var c=(_0x3f43e7=>(_0x3f43e7['OFFLINE']=_0x40438e(0x10d),_0x3f43e7[_0x40438e(0x12b)]='idle',_0x3f43e7[_0x40438e(0x119)]='following',_0x3f43e7['NOT_FOLLOWING']=_0x40438e(0x13c),_0x3f43e7[_0x40438e(0x17f)]='presenting',_0x3f43e7))(c||{});const Ce=_0x40438e(0x123),De=0xc8;let N=class extends _0x470f4e{constructor(_0x42fa58,_0x56d566,_0xe9c346,_0x4c3f5b,_0x295bfc){const _0x4f97f9=_0x40438e;super(),u(this,_0x4f97f9(0x145),new _0x4119dd('idle')),u(this,_0x4f97f9(0x15d),this['_status$'][_0x4f97f9(0x146)]()),u(this,_0x4f97f9(0x114),!0x1),u(this,_0x4f97f9(0x17e),null),u(this,_0x4f97f9(0x132),null),(this[_0x4f97f9(0x166)]=_0x42fa58,this[_0x4f97f9(0x19c)]=_0x56d566,this[_0x4f97f9(0x111)]=_0xe9c346,this[_0x4f97f9(0x16b)]=_0x4c3f5b,this[_0x4f97f9(0x181)]=_0x295bfc);}get['_status'](){const _0x2fb33e=_0x40438e;return this[_0x2fb33e(0x145)][_0x2fb33e(0x13d)]();}[_0x40438e(0x121)](){const _0x45c693=_0x40438e;var _0x1cb889;(_0x1cb889=this[_0x45c693(0x17e)])==null||_0x1cb889[_0x45c693(0x121)](),this[_0x45c693(0x145)][_0x45c693(0x130)](_0x45c693(0x194)),this[_0x45c693(0x145)][_0x45c693(0x169)]();}[_0x40438e(0x161)](){const _0x46a17f=_0x40438e;return this[_0x46a17f(0x14f)];}[_0x40438e(0x14e)](){const _0x56f2d8=_0x40438e;this[_0x56f2d8(0x114)]||(this[_0x56f2d8(0x114)]=!0x0,this[_0x56f2d8(0x19c)][_0x56f2d8(0x133)][_0x56f2d8(0x107)](_0x505794(this[_0x56f2d8(0x1aa)]))[_0x56f2d8(0x157)](_0x1333f1=>{const _0x59bf20=_0x56f2d8;switch(_0x1333f1){case _0x1a4938['OFFLINE']:this['_handleOffline']();break;case _0x1a4938[_0x59bf20(0x159)]:this['_handleOnline']();break;}}),this[_0x56f2d8(0x19c)][_0x56f2d8(0x109)]['pipe'](_0x505794(this['dispose$']))[_0x56f2d8(0x157)](_0x4ea196=>{const _0x35e9bb=_0x56f2d8,{eventID:_0x65fbbc}=_0x4ea196;switch(_0x65fbbc){case _0x5527b9[_0x35e9bb(0x182)]:this[_0x35e9bb(0x112)](_0x4ea196);break;case _0x5527b9['LIVESHARE_OPERATION']:this[_0x35e9bb(0x125)](_0x4ea196);break;case _0x5527b9[_0x35e9bb(0x16d)]:this[_0x35e9bb(0x120)]();break;case _0x5527b9[_0x35e9bb(0x1a7)]:this['_handleNewChangeSets'](_0x4ea196);break;}}));}[_0x40438e(0x11f)](){const _0x49b2d9=_0x40438e;this[_0x49b2d9(0x19c)][_0x49b2d9(0x147)]({'eventID':_0x5527b9['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x49b2d9(0x166)],'userID':this[_0x49b2d9(0x19c)][_0x49b2d9(0x11c)]()}},this[_0x49b2d9(0x166)]);}['stopPresenting'](){const _0x3bc702=_0x40438e;this[_0x3bc702(0x14f)]===_0x3bc702(0x16a)&&(this[_0x3bc702(0x145)][_0x3bc702(0x130)](_0x3bc702(0x194)),this[_0x3bc702(0x19c)][_0x3bc702(0x147)]({'eventID':_0x5527b9[_0x3bc702(0x16d)],'data':{'unitID':this[_0x3bc702(0x166)]}},this[_0x3bc702(0x166)]));}[_0x40438e(0x108)](){const _0x3cf05a=_0x40438e;this['_status']===_0x3cf05a(0x13c)&&(this[_0x3cf05a(0x145)][_0x3cf05a(0x130)](_0x3cf05a(0x137)),this[_0x3cf05a(0x138)]());}[_0x40438e(0x158)](){const _0x5878a9=_0x40438e;this[_0x5878a9(0x14f)]===_0x5878a9(0x137)&&this[_0x5878a9(0x193)]();}['_handleNewHost'](_0xcb9d73){const _0x8d8012=_0x40438e,{presenter:_0x336bb7}=_0xcb9d73[_0x8d8012(0x129)],_0x22c428=this[_0x8d8012(0x19c)][_0x8d8012(0x11c)]();this[_0x8d8012(0x132)]=_0x336bb7,_0x336bb7===_0x22c428?(this[_0x8d8012(0x193)](),this['_startPresenting']()):this[_0x8d8012(0x14f)]!==_0x8d8012(0x13c)&&(this[_0x8d8012(0x15a)](),this[_0x8d8012(0x138)]());}['_fetchOperations'](){const _0x3a117a=_0x40438e,_0xe4c44={'eventID':_0x5527b9[_0x3a117a(0x10f)]};this['_collabSession']['send'](_0xe4c44,this[_0x3a117a(0x166)]);}['_handleTerminate'](){const _0x298517=_0x40438e;this[_0x298517(0x132)]=null,this['_status']!==_0x298517(0x16a)&&this['_beIdle']();}[_0x40438e(0x177)](_0x49c8b2){const _0x3b30d7=_0x40438e;if(this['_status']===_0x3b30d7(0x137)&&this[_0x3b30d7(0x132)]===_0x49c8b2[_0x3b30d7(0x129)][_0x3b30d7(0x163)]){const _0x3c557d=_0x14e3f7(_0x49c8b2[_0x3b30d7(0x129)])[_0x3b30d7(0x15f)]['reverse']()['find'](_0x5be341=>_0x5be341['id']===_0x35c6e2['id']);if(_0x3c557d){const _0x2ee0f8=_0x3c557d['params'][_0x3b30d7(0x19f)],_0x571796=_0x3c557d['params'][_0x3b30d7(0x19a)]['id'];setTimeout(()=>{const _0x774e56=_0x3b30d7;this[_0x774e56(0x181)]['executeCommand'](_0xcbc908['id'],{'unitId':_0x2ee0f8,'subUnitId':_0x571796},{'fromCollab':!0x0});});}}}[_0x40438e(0x195)](){const _0x1e57c9=_0x40438e;this[_0x1e57c9(0x145)][_0x1e57c9(0x130)](_0x1e57c9(0x16a));const _0x3bf156=new Map(),_0x11a84d=this['_commandDisposable']=new _0x557a96();_0x11a84d[_0x1e57c9(0x165)](_0x162835(()=>{const _0x31867d=_0x1e57c9;_0x3bf156[_0x31867d(0x160)](_0x4d6572=>_0x4d6572[_0x31867d(0x169)]()),_0x3bf156['clear']();})),_0x11a84d[_0x1e57c9(0x165)](this['_commandService'][_0x1e57c9(0x174)](_0x1493ad=>{const _0x2e0ccb=_0x1e57c9;var _0x46004e;if(_0x1493ad[_0x2e0ccb(0x13a)]!==_0x54eed1['OPERATION']||!this[_0x2e0ccb(0x16b)][_0x2e0ccb(0x139)](_0x1493ad['id']))return;const {id:_0x555b04}=_0x1493ad;let _0x2f357c;_0x3bf156['has'](_0x555b04)?_0x2f357c=_0x3bf156['get'](_0x555b04):(_0x2f357c=new _0x26010b(),_0x3bf156[_0x2e0ccb(0x18a)](_0x555b04,_0x2f357c),_0x2f357c['pipe'](_0x55e0fd((_0x46004e=this[_0x2e0ccb(0x111)][_0x2e0ccb(0x162)](Ce))!=null?_0x46004e:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2e0ccb(0x157)](_0x23275d=>{const _0x5692cc=_0x2e0ccb;this[_0x5692cc(0x19c)][_0x5692cc(0x147)]({'eventID':_0x5527b9[_0x5692cc(0x141)],'data':{'unitID':this[_0x5692cc(0x166)],'operations':{[_0x23275d['id']]:{'id':_0x23275d['id'],'params':JSON[_0x5692cc(0x1a8)](_0x23275d[_0x5692cc(0x172)])}}}},this[_0x5692cc(0x166)]);})),_0x2f357c[_0x2e0ccb(0x130)](_0x1493ad);})),this[_0x1e57c9(0x16b)][_0x1e57c9(0x197)](this[_0x1e57c9(0x166)])[_0x1e57c9(0x160)](_0x147df5=>this[_0x1e57c9(0x19c)][_0x1e57c9(0x147)]({'eventID':_0x5527b9[_0x1e57c9(0x141)],'data':{'unitID':this[_0x1e57c9(0x166)],'operations':{[_0x147df5['id']]:{'id':_0x147df5['id'],'params':JSON[_0x1e57c9(0x1a8)](_0x147df5['params'])}}}},this[_0x1e57c9(0x166)]));}[_0x40438e(0x15a)](){const _0xef736c=_0x40438e;var _0x595d01;this['_status$'][_0xef736c(0x130)](_0xef736c(0x194)),(_0x595d01=this[_0xef736c(0x17e)])==null||_0x595d01[_0xef736c(0x121)](),this['_commandDisposable']=null;}[_0x40438e(0x138)](){const _0x41ea4f=_0x40438e;var _0x5ad979;(_0x5ad979=this['_commandDisposable'])==null||_0x5ad979[_0x41ea4f(0x121)](),this[_0x41ea4f(0x145)][_0x41ea4f(0x130)](_0x41ea4f(0x137));}[_0x40438e(0x179)](){const _0x502f41=_0x40438e;var _0x2fb286;this[_0x502f41(0x145)][_0x502f41(0x130)]('idle'),(_0x2fb286=this[_0x502f41(0x17e)])==null||_0x2fb286[_0x502f41(0x121)](),this[_0x502f41(0x17e)]=null;}[_0x40438e(0x193)](){const _0x34b869=_0x40438e;var _0x29a306;this['_status$'][_0x34b869(0x130)](_0x34b869(0x13c)),(_0x29a306=this[_0x34b869(0x17e)])==null||_0x29a306[_0x34b869(0x121)]();}[_0x40438e(0x125)](_0xbd2e1a){const _0x407f16=_0x40438e;if([_0x407f16(0x16a),_0x407f16(0x13c),_0x407f16(0x10d)][_0x407f16(0x153)](this['_status'])||!_0xbd2e1a[_0x407f16(0x129)][_0x407f16(0x180)]||_0xbd2e1a['data'][_0x407f16(0x180)]===this[_0x407f16(0x19c)][_0x407f16(0x11c)]())return;this[_0x407f16(0x14f)]===_0x407f16(0x194)&&this[_0x407f16(0x138)]();const _0x2722c6=_0xbd2e1a[_0x407f16(0x129)][_0x407f16(0x198)];Object['values'](_0x2722c6)[_0x407f16(0x160)](_0x5f5ccd=>{const _0x57e662=_0x407f16;this[_0x57e662(0x181)][_0x57e662(0x185)](_0x5f5ccd['id'],_0x5f5ccd['params']?JSON[_0x57e662(0x13e)](_0x5f5ccd[_0x57e662(0x172)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x313e26=_0x40438e;var _0x2200d4;this['_status$'][_0x313e26(0x130)]('offline'),(_0x2200d4=this['_commandDisposable'])==null||_0x2200d4[_0x313e26(0x121)]();}[_0x40438e(0x191)](){const _0x1df844=_0x40438e;this[_0x1df844(0x145)][_0x1df844(0x130)](_0x1df844(0x194)),this['_fetchOperations']();}};N=Y([_(0x2,_0x18693d),_(0x3,_0x515096(L)),_(0x4,_0x1b75b0)],N);function Le(){const _0x22e9f1=_0x40438e,_0x48f933=_0x54980e(S),_0x2a1eb8=_0x54980e(_0x5a3693),_0x4fe1a9=_0x2371ea(()=>_0x2a1eb8[_0x22e9f1(0x1a4)](_0x24a06b[_0x22e9f1(0x14c)]),void 0x0,!0x1,[]),[_0x58aed3,_0x405f7a]=_0x89ec1e(null),[_0x568915,_0x58e9b0]=_0x89ec1e(c[_0x22e9f1(0x12b)]),_0x419775=_0x4f23fd(null);return _0x33dad(()=>(_0x4fe1a9&&_0x48f933['getLiveShareCoordinator'](_0x4fe1a9[_0x22e9f1(0x126)]())[_0x22e9f1(0x18e)](_0x374c0f=>{const _0x3c4f83=_0x22e9f1;_0x405f7a(_0x374c0f),_0x419775[_0x3c4f83(0x1a1)]=_0x374c0f[_0x3c4f83(0x15d)][_0x3c4f83(0x157)](_0x38cdce=>{_0x58e9b0(_0x38cdce);});}),()=>{const _0x330361=_0x22e9f1;var _0x4d4ebe;(_0x4d4ebe=_0x419775['current'])==null||_0x4d4ebe[_0x330361(0x156)](),_0x419775['current']=null;}),[_0x4fe1a9,_0x48f933]),_0x58aed3?_0x282781(_0x45eb67,{'align':'end','disabled':_0x568915===c[_0x22e9f1(0x11d)],'className':_0x22e9f1(0x187),'overlay':_0x282781(Re,{'status':_0x568915,'coordinator':_0x58aed3}),'children':_0x282781(_0x22e9f1(0x196),{'className':_0x2be6db(_0x22e9f1(0x170),{'univer-cursor-not-allowed':_0x568915===c[_0x22e9f1(0x11d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x568915!==c['OFFLINE']}),'type':_0x22e9f1(0x196),'children':_0x282781(W,{'className':'univer-size-4'})})}):null;}function Re(_0x437467){const _0xaf73a4=_0x40438e,{status:_0xc7ed2f,coordinator:_0x177b7c}=_0x437467;switch(_0xc7ed2f){case c[_0xaf73a4(0x12b)]:return _0x282781($e,{'coordinator':_0x177b7c});case c[_0xaf73a4(0x119)]:return _0x282781(xe,{'coordinator':_0x177b7c});case c['NOT_FOLLOWING']:return _0x282781(Pe,{'coordinator':_0x177b7c});case c[_0xaf73a4(0x11d)]:return _0x282781(Te,{});case c[_0xaf73a4(0x17f)]:return _0x282781(Ae,{'coordinator':_0x177b7c});default:return null;}}function $e(_0x120ab4){const _0x162a68=_0x40438e,{coordinator:_0x203df8}=_0x120ab4;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781(_0x162a68(0x136),{'className':_0x162a68(0x17b),'children':_0x162a68(0x199)}),_0x282781(_0x18eae9,{'onClick':()=>_0x203df8[_0x162a68(0x11f)](),'children':_0x162a68(0x1a9)})]});}function xe(_0x46b877){const _0xd05436=_0x40438e,{coordinator:_0x43b589}=_0x46b877;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781('div',{'className':_0xd05436(0x17b),'children':_0xd05436(0x183)}),_0x282781(_0x18eae9,{'onClick':()=>_0x43b589[_0xd05436(0x158)](),'children':'Stop\x20following'})]});}function Pe(_0x23d975){const _0x63f7a4=_0x40438e,{coordinator:_0x1a2993}=_0x23d975;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781(_0x63f7a4(0x136),{'className':_0x63f7a4(0x17b),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x282781(_0x18eae9,{'variant':'text','onClick':()=>_0x1a2993[_0x63f7a4(0x108)](),'children':_0x63f7a4(0x117)})]});}function Ae(_0x2e9bdc){const _0x19c77d=_0x40438e,{coordinator:_0x5f5c03}=_0x2e9bdc;return _0x1a3be5(_0x2d1d5d,{'children':[_0x282781('div',{'className':_0x19c77d(0x17b),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x282781(_0x18eae9,{'variant':_0x19c77d(0x128),'onClick':()=>_0x5f5c03[_0x19c77d(0x11e)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x1a4dda=_0x40438e;return _0x282781(_0x2d1d5d,{'children':_0x1a4dda(0x173)});}var Fe=Object[_0x40438e(0x17d)],He=(_0xe36e06,_0x328326,_0xedbe7e,_0x1a4370)=>{for(var _0x405fd4=_0x1a4370>0x1?void 0x0:_0x1a4370?Fe(_0x328326,_0xedbe7e):_0x328326,_0x3bc04c=_0xe36e06['length']-0x1,_0x5503cc;_0x3bc04c>=0x0;_0x3bc04c--)(_0x5503cc=_0xe36e06[_0x3bc04c])&&(_0x405fd4=_0x5503cc(_0x405fd4)||_0x405fd4);return _0x405fd4;},A=(_0x3ab088,_0x426d4c)=>(_0x51cd35,_0x494648)=>_0x426d4c(_0x51cd35,_0x494648,_0x3ab088);let m=class extends _0x142380{constructor(_0x3be079,_0x59b39d){const _0x2daf53=_0x40438e;super(),this[_0x2daf53(0x1a0)]=_0x3be079,this['_uiPartsService']=_0x59b39d,this[_0x2daf53(0x19b)]();}['_mountLiveShare'](){const _0x229f65=_0x40438e;this[_0x229f65(0x13b)](this['_uiPartsService'][_0x229f65(0x175)](_0x5427fd[_0x229f65(0x10c)],()=>_0x266a27(Le,this[_0x229f65(0x1a0)])));}};m=He([A(0x0,_0x515096(_0x2eaef8)),A(0x1,_0x13ef6b)],m);const ye='live-share.config',T={};var Ue=Object[_0x40438e(0x17d)],Ve=(_0x47c872,_0x4d30bd,_0x9de0a7,_0x3752d3)=>{const _0x11f663=_0x40438e;for(var _0x42a8af=_0x3752d3>0x1?void 0x0:_0x3752d3?Ue(_0x4d30bd,_0x9de0a7):_0x4d30bd,_0x32da67=_0x47c872[_0x11f663(0x188)]-0x1,_0x15a074;_0x32da67>=0x0;_0x32da67--)(_0x15a074=_0x47c872[_0x32da67])&&(_0x42a8af=_0x15a074(_0x42a8af)||_0x42a8af);return _0x42a8af;},je=(_0x13edb2,_0x5be002)=>(_0x3620f0,_0x32c9d5)=>_0x5be002(_0x3620f0,_0x32c9d5,_0x13edb2);let I=class extends _0x142380{constructor(_0x270207){const _0x5b80cf=_0x40438e;super(),this['_liveShareService']=_0x270207,this[_0x5b80cf(0x114)]();}[_0x40438e(0x114)](){const _0x1a0f76=_0x40438e;[_0x1bfcb6['id'],_0x15a66d['id'],_0xcbc908['id']][_0x1a0f76(0x160)](_0x43f413=>{const _0x266d04=_0x1a0f76;this['disposeWithMe'](this[_0x266d04(0x16b)][_0x266d04(0x10b)](_0x43f413));});}};I=Ve([je(0x0,_0x515096(L))],I);var Me=Object[_0x40438e(0x190)],ke=Object[_0x40438e(0x17d)],Ge=(_0x72d1ae,_0x42e855,_0x3afd20)=>_0x42e855 in _0x72d1ae?Me(_0x72d1ae,_0x42e855,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3afd20}):_0x72d1ae[_0x42e855]=_0x3afd20,We=(_0x5e1741,_0x2c0306,_0xaca0d9,_0x339251)=>{const _0x332944=_0x40438e;for(var _0x531e36=_0x339251>0x1?void 0x0:_0x339251?ke(_0x2c0306,_0xaca0d9):_0x2c0306,_0x26a81e=_0x5e1741[_0x332944(0x188)]-0x1,_0x581a77;_0x26a81e>=0x0;_0x26a81e--)(_0x581a77=_0x5e1741[_0x26a81e])&&(_0x531e36=_0x581a77(_0x531e36)||_0x531e36);return _0x531e36;},F=(_0x1cc530,_0x5974cc)=>(_0x8b6089,_0x2703b8)=>_0x5974cc(_0x8b6089,_0x2703b8,_0x1cc530),B=(_0x1d3557,_0x3c23f8,_0x16bddb)=>Ge(_0x1d3557,typeof _0x3c23f8!=_0x40438e(0x14d)?_0x3c23f8+'':_0x3c23f8,_0x16bddb);const Ye=_0x40438e(0x12e);let b=class extends _0x277eca{constructor(_0x595d93=T,_0x50ea94,_0x53ea49){const _0x4411b1=_0x40438e;super(),this['_config']=_0x595d93,this['_injector']=_0x50ea94,this['_configService']=_0x53ea49;const {..._0x2d8609}=_0x3187af({},T,this[_0x4411b1(0x16e)]);this['_configService'][_0x4411b1(0x189)](ye,_0x2d8609);}[_0x40438e(0x15b)](){const _0x7abc44=_0x40438e;_0x260ef6(this[_0x7abc44(0x1a0)],_0x26d4c0([[L],[S],[I],[m]],this[_0x7abc44(0x16e)]['override'])),_0x154532(this[_0x7abc44(0x1a0)],[[I]]);}[_0x40438e(0x18b)](){const _0x1f28ee=_0x40438e;_0x154532(this[_0x1f28ee(0x1a0)],[[m]]);}};B(b,_0x40438e(0x13a),_0x24a06b[_0x40438e(0x116)]),B(b,_0x40438e(0x16c),Ye),b=We([_0x120121(_0xc0232f),F(0x1,_0x515096(_0x2eaef8)),F(0x2,_0x18693d)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function _0x184b(){const _0x1fb4c7=['24UEqPnX','_injector','UniverSheetsUi','function','3243033DIgpQF','extend','getUnitId','UniverSheetsFacade','getSheetId','FEnum','tryStartPresenting','startFollowing','1758044lxxGNt','6362DoZgAE','PRESENTING','UniverCoreFacade','getActiveWorkbook','startColumn','LiveShareStatusEnum','UniverSheets','15Xfqqhg','getLiveShareStatus','16635470xoUaEA','UniverEngineRender','@univerjs/core/facade','9004626JmgaBE','getId','object','getActiveSheet','getRenderById','3397179QUxurJ','@univerjs/engine-render','stopFollowing','_commandService','getLiveShareCoordinatorSync','LiveShareController','@univerjs/sheets-ui','FUniver','getStatus','IDLE','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','@univerjs-pro/live-share','@univerjs/sheets/facade','3956687IILJWX','IRenderManagerService','No\x20active\x20workbook\x20found.','stopPresenting','startPresenting','get','353SBcUdl','11tCQojR','LiveShareStatus'];_0x184b=function(){return _0x1fb4c7;};return _0x184b();}function _0x3177(_0x1025d1,_0x2f5974){_0x1025d1=_0x1025d1-0x133;const _0x184b86=_0x184b();let _0x31773d=_0x184b86[_0x1025d1];return _0x31773d;}(function(_0x38bec1,_0x13987a){const _0x5e3add=_0x3177,_0x4a558f=_0x38bec1();while(!![]){try{const _0x1addbe=parseInt(_0x5e3add(0x148))/0x1*(parseInt(_0x5e3add(0x158))/0x2)+parseInt(_0x5e3add(0x135))/0x3+-parseInt(_0x5e3add(0x157))/0x4*(-parseInt(_0x5e3add(0x15f))/0x5)+-parseInt(_0x5e3add(0x164))/0x6+-parseInt(_0x5e3add(0x142))/0x7+parseInt(_0x5e3add(0x14b))/0x8*(parseInt(_0x5e3add(0x14f))/0x9)+parseInt(_0x5e3add(0x161))/0xa*(-parseInt(_0x5e3add(0x149))/0xb);if(_0x1addbe===_0x13987a)break;else _0x4a558f['push'](_0x4a558f['shift']());}catch(_0x5de97b){_0x4a558f['push'](_0x4a558f['shift']());}}}(_0x184b,0xe1e57),function(_0x23b9af,_0x5ea572){const _0x1fa31a=_0x3177;typeof exports==_0x1fa31a(0x166)&&typeof module<'u'?_0x5ea572(require('@univerjs-pro/live-share'),require('@univerjs/engine-render'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/sheets/facade'),require('@univerjs/core/facade')):typeof define==_0x1fa31a(0x14e)&&define['amd']?define([_0x1fa31a(0x140),_0x1fa31a(0x136),'@univerjs/sheets',_0x1fa31a(0x13b),_0x1fa31a(0x141),_0x1fa31a(0x163)],_0x5ea572):(_0x23b9af=typeof globalThis<'u'?globalThis:_0x23b9af||self,_0x5ea572(_0x23b9af['UniverProLiveShare'],_0x23b9af[_0x1fa31a(0x162)],_0x23b9af[_0x1fa31a(0x15e)],_0x23b9af[_0x1fa31a(0x14d)],_0x23b9af[_0x1fa31a(0x152)],_0x23b9af[_0x1fa31a(0x15a)]));}(this,function(_0x356370,_0x45abd8,_0x3bc2de,_0x3a8b23,_0x3a08f6,_0x4fc22c){'use strict';const _0x437d23=_0x3177;class _0x1c052f extends _0x3a08f6['FRange']{['_initialize'](_0x49bdf9,_0x593056,_0x3d0a3b,_0x3e7ef2,_0x11267f){const _0x41a94a=_0x3177,_0x41c117=_0x49bdf9[_0x41a94a(0x147)](_0x356370[_0x41a94a(0x13a)]),_0x4c0895=_0x49bdf9[_0x41a94a(0x147)](_0x45abd8[_0x41a94a(0x143)]),_0x5255f9=_0x593056[_0x41a94a(0x151)](),_0x3c4003=_0x593056[_0x41a94a(0x133)](),_0x21a1ba=_0x41c117['getLiveShareCoordinatorSync'](_0x5255f9);(_0x21a1ba==null?void 0x0:_0x21a1ba['getStatus']())!==_0x356370[_0x41a94a(0x14a)][_0x41a94a(0x159)]||(_0x3d0a3b[_0x41a94a(0x153)]()!==_0x3c4003[_0x41a94a(0x153)]()&&this[_0x41a94a(0x138)]['executeCommand'](_0x3bc2de['SetWorksheetActiveOperation']['id'],{'unitId':_0x5255f9,'subUnitId':_0x3d0a3b['getSheetId']()}),!_0x4c0895[_0x41a94a(0x134)](_0x5255f9))||_0x11267f['syncExecuteCommand'](_0x3a8b23['SetScrollOperation']['id'],{'unitId':_0x593056[_0x41a94a(0x151)](),'sheetId':_0x3d0a3b[_0x41a94a(0x153)](),'sheetViewStartRow':_0x3e7ef2['startRow'],'sheetViewStartColumn':_0x3e7ef2[_0x41a94a(0x15c)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x3a08f6['FRange']['extend'](_0x1c052f);class _0x8a53b0 extends _0x4fc22c['FUniver']{[_0x437d23(0x160)](){const _0x7de63e=_0x437d23;var _0x5026b8,_0x3ff529;const _0x57f79a=this['_injector'][_0x7de63e(0x147)](_0x356370[_0x7de63e(0x13a)]),_0x16ca57=(_0x5026b8=this[_0x7de63e(0x15b)]())==null?void 0x0:_0x5026b8[_0x7de63e(0x165)]();if(!_0x16ca57)throw new Error(_0x7de63e(0x144));const _0x1327df=_0x57f79a[_0x7de63e(0x139)](_0x16ca57);return(_0x3ff529=_0x1327df==null?void 0x0:_0x1327df[_0x7de63e(0x13d)]())!=null?_0x3ff529:_0x356370[_0x7de63e(0x14a)][_0x7de63e(0x13e)];}[_0x437d23(0x156)](){const _0x4f0493=_0x437d23;var _0x3d85b4;const _0x40d2ad=this['_injector'][_0x4f0493(0x147)](_0x356370[_0x4f0493(0x13a)]),_0x4da09f=(_0x3d85b4=this[_0x4f0493(0x15b)]())==null?void 0x0:_0x3d85b4['getId']();if(!_0x4da09f)throw new Error(_0x4f0493(0x144));const _0x9ee365=_0x40d2ad[_0x4f0493(0x139)](_0x4da09f);if(!_0x9ee365)throw new Error(_0x4f0493(0x13f));_0x9ee365[_0x4f0493(0x156)]();}[_0x437d23(0x137)](){const _0x1acad3=_0x437d23;var _0x479f17;const _0x5c25ed=this[_0x1acad3(0x14c)]['get'](_0x356370[_0x1acad3(0x13a)]),_0xac21dc=(_0x479f17=this['getActiveWorkbook']())==null?void 0x0:_0x479f17[_0x1acad3(0x165)]();if(!_0xac21dc)throw new Error('No\x20active\x20workbook\x20found.');const _0x3bd355=_0x5c25ed['getLiveShareCoordinatorSync'](_0xac21dc);if(!_0x3bd355)throw new Error(_0x1acad3(0x13f));_0x3bd355[_0x1acad3(0x137)]();}[_0x437d23(0x146)](){const _0x574be5=_0x437d23;var _0xed8ec9;const _0x1c4b73=this[_0x574be5(0x14c)][_0x574be5(0x147)](_0x356370[_0x574be5(0x13a)]),_0x3d33f2=(_0xed8ec9=this[_0x574be5(0x15b)]())==null?void 0x0:_0xed8ec9[_0x574be5(0x165)]();if(!_0x3d33f2)throw new Error(_0x574be5(0x144));const _0x4ae96f=_0x1c4b73['getLiveShareCoordinatorSync'](_0x3d33f2);if(!_0x4ae96f)throw new Error(_0x574be5(0x13f));_0x4ae96f[_0x574be5(0x155)]();}[_0x437d23(0x145)](){const _0x1159ed=_0x437d23;var _0xfb8945;const _0x1e072e=this[_0x1159ed(0x14c)]['get'](_0x356370[_0x1159ed(0x13a)]),_0x5c1187=(_0xfb8945=this[_0x1159ed(0x15b)]())==null?void 0x0:_0xfb8945[_0x1159ed(0x165)]();if(!_0x5c1187)throw new Error(_0x1159ed(0x144));const _0x2f6ada=_0x1e072e[_0x1159ed(0x139)](_0x5c1187);if(!_0x2f6ada)throw new Error(_0x1159ed(0x13f));_0x2f6ada['stopPresenting']();}}_0x4fc22c[_0x437d23(0x13c)][_0x437d23(0x150)](_0x8a53b0);class _0x411215 extends _0x4fc22c[_0x437d23(0x154)]{get[_0x437d23(0x15d)](){return _0x356370['LiveShareStatus'];}}_0x4fc22c[_0x437d23(0x154)]['extend'](_0x411215);}));
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x23fd(){const _0x25f00f=['evenodd','_handleOnline','rxjs','idSuffix','subscribe','Start\x20following','LIVESHARE_OPERATION','presenter','_startFollowing','colorChannel1','NEW_CHANGESETS','78QOPCnP','not-following','assign','_commandService','_fetchOperations','306zNzSXl','SetZoomRatioOperation','_mountLiveShare','offline','mergeOverrideWithDependencies','throttleTime','getTypeOfUnitDisposed$','amd','_init','svg','OFFLINE','_collabSessionService','_config','6498200OhUEhT','UNIVER_SHEET','Button','React','LiveShareStatus','event$','RxDisposable','UniverSheetsUi','_handleNewChangeSets','defs','_reporters','IUniverInstanceService','add','useEffect','4741560Lpickq','type','presenting','getStatus','_stopFollowing','@univerjs-pro/collaboration','symbol','toDisposable','useRef','UniverCore','fill','url(#$1','tag','useDependency','LiveShareController','live-share.config','LiveShareIcon','269222fAAdsu','BuiltInUIPart','_startPresenting','live-share-icon','UNIVER_UNKNOWN','getCurrentTypeOfUnit$','sessionStatus$','length','IDLE','defIds','children','NOT_FOLLOWING','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','1em','_startLiveShareCoordinator','executeCommand','_unitID','rxjs/operators','jsx','UniverLiveSharePlugin','includes','send','5500824PEycln','Stop\x20following','asObservable','from','onRendered','UniverDesign','getMemberID','FOLLOWING','getConfig','find','jsxs','mutations','use','react','_sharedOperations','LiveShare','UNIVER_LIVE_SHARE_PLUGIN','tryStartPresenting','idle','map','stopPresenting','has','trim','merge','override','disposeWithMe','Present\x20this\x20document','You\x27re\x20following\x20the\x20presenter','forwardRef','_handleNewHost','createInstance','set','stopFollowing','univer-size-4','defineProperty','clear','pipe','LIVESHARE_NEW_HOST','button','@univerjs/sheets-ui','text','clsx','_presenter','LiveShareService','_status$','react/jsx-runtime','_status','UniverProLiveShare','_stopPresenting','SessionStatus','_entities','onStarting','getOwnPropertyDescriptor','getLiveShareCoordinatorSync','@univerjs/sheets','parse','shouldShareOperation','registerInitialStateReporter','getInitialStates','delete','default','attrs','dispose','complete','Subject','Injector','http://www.w3.org/2000/svg','UniverUi','unsubscribe','DisposableCollection','_univerInstanceService','requireSession','substring','273976QeaNKr','LIVESHARE_TERMINATE','entries','replace','_handleTerminate','next','current','end','SetWorksheetActiveOperation','CommandType','UniverCollaborationClientPlugin','_injector','toString','useState','11802qQYBHV','Start','CollaborationEvent','init','path','Module','Disposable','UniverProCollaborationClient','forEach','UniverIcon','You\x27re\x20presenting\x20the\x20document','string','currentColor','_commandDisposable','displayName','LiveShareCoordinator','pluginName','mask','get','toStringTag','@univerjs/ui','IConfigService','getLiveShareCoordinator','useObservable','PRESENTING','DesktopLiveShareController','DependentOn','_collabSession','xlink:href','_handleOffline','BehaviorSubject','params','_handleOperation','SetScrollOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','operators','@univerjs-pro/collaboration-client','touchDependencies','Dropdown','startFollowing','6201629xBeSpE','sheet','stringify','parseProtocolChangeset','_uiPartsService','_beIdle','_liveShareService','Fragment','function','div','UniverInstanceType','data','_configService','@univerjs/core','values','dispose$','connectInjector','status$','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','OPERATION','following','takeUntil','Inject','HEADER_MENU','registerSharedOperation','registerComponent','createElement','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','getUnitId'];_0x23fd=function(){return _0x25f00f;};return _0x23fd();}function _0x1725(_0xdb3b83,_0x51d614){_0xdb3b83=_0xdb3b83-0xf0;const _0x23fd97=_0x23fd();let _0x1725f4=_0x23fd97[_0xdb3b83];return _0x1725f4;}(function(_0x8c81f5,_0x31b223){const _0x1836a4=_0x1725,_0x2872e7=_0x8c81f5();while(!![]){try{const _0x96a133=-parseInt(_0x1836a4(0x150))/0x1+parseInt(_0x1836a4(0x1bd))/0x2*(parseInt(_0x1836a4(0x11f))/0x3)+-parseInt(_0x1836a4(0x166))/0x4+parseInt(_0x1836a4(0x131))/0x5+parseInt(_0x1836a4(0x13f))/0x6+-parseInt(_0x1836a4(0xf7))/0x7+-parseInt(_0x1836a4(0x1af))/0x8*(-parseInt(_0x1836a4(0x124))/0x9);if(_0x96a133===_0x31b223)break;else _0x2872e7['push'](_0x2872e7['shift']());}catch(_0x5d7589){_0x2872e7['push'](_0x2872e7['shift']());}}}(_0x23fd,0xd6325),function(_0x2aecd3,_0x3cb15e){const _0x3d0a0e=_0x1725;typeof exports=='object'&&typeof module<'u'?_0x3cb15e(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x3d0a0e(0xff)&&define[_0x3d0a0e(0x12b)]?define(['exports',_0x3d0a0e(0x104),_0x3d0a0e(0x1d1),_0x3d0a0e(0x193),'@univerjs/design',_0x3d0a0e(0x173),_0x3d0a0e(0x144),_0x3d0a0e(0xf3),_0x3d0a0e(0x19c),_0x3d0a0e(0x116),_0x3d0a0e(0x161),_0x3d0a0e(0x18d)],_0x3cb15e):(_0x2aecd3=typeof globalThis<'u'?globalThis:_0x2aecd3||self,_0x3cb15e(_0x2aecd3[_0x3d0a0e(0x195)]={},_0x2aecd3[_0x3d0a0e(0x148)],_0x2aecd3[_0x3d0a0e(0x1a9)],_0x2aecd3[_0x3d0a0e(0x134)],_0x2aecd3[_0x3d0a0e(0x16b)],_0x2aecd3[_0x3d0a0e(0x134)],_0x2aecd3['UniverProCollaboration'],_0x2aecd3[_0x3d0a0e(0x1c4)],_0x2aecd3['UniverSheets'],_0x2aecd3[_0x3d0a0e(0x116)],_0x2aecd3[_0x3d0a0e(0x116)][_0x3d0a0e(0xf2)],_0x2aecd3[_0x3d0a0e(0x138)]));}(this,function(_0x566137,_0x327b3e,_0x331cdd,_0x3f5bcc,_0x3a6087,_0xcd4ef7,_0x357a77,_0x4d3bfc,_0x3f6c09,_0x23eb22,_0x58a4a9,_0x1ea554){'use strict';const _0x312948=_0x1725;var _0x37f04b=Object['defineProperty'],_0x263ef6=(_0x5ef45c,_0x35a730,_0x2a26bf)=>_0x35a730 in _0x5ef45c?_0x37f04b(_0x5ef45c,_0x35a730,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a26bf}):_0x5ef45c[_0x35a730]=_0x2a26bf,_0x16fd1b=(_0x4a1609,_0x735d30,_0x2e877b)=>_0x263ef6(_0x4a1609,typeof _0x735d30!=_0x312948(0x145)?_0x735d30+'':_0x735d30,_0x2e877b);function _0x12ac21({ref:_0xda873b,..._0x4bb3ba}){const _0x5c76d5=_0x312948,{icon:_0x11dddd,id:_0xe43334,className:_0x152b91,extend:_0x3a6867,..._0x50cd9f}=_0x4bb3ba,_0x262e90=('univerjs-icon\x20univerjs-icon-'+_0xe43334+'\x20'+(_0x152b91||''))[_0x5c76d5(0x17c)](),_0xfd3aa9=_0xcd4ef7[_0x5c76d5(0x147)]('_'+_0x37a16d());return _0x54550d(_0x11dddd,''+_0xe43334,{'defIds':_0x11dddd[_0x5c76d5(0x159)],'idSuffix':_0xfd3aa9[_0x5c76d5(0x1b5)]},{'ref':_0xda873b,'className':_0x262e90,..._0x50cd9f},_0x3a6867);}function _0x54550d(_0x435d25,_0x14caa2,_0x4e75d5,_0x5e8680,_0x43886b){const _0x1ada62=_0x312948;return _0xcd4ef7[_0x1ada62(0x111)](_0x435d25['tag'],{'key':_0x14caa2,..._0x3e1cd6(_0x435d25,_0x4e75d5,_0x43886b),..._0x5e8680},(_0x17eba3(_0x435d25,_0x4e75d5)[_0x1ada62(0x15a)]||[])[_0x1ada62(0x179)]((_0x3a47b4,_0x29b233)=>_0x54550d(_0x3a47b4,_0x14caa2+'-'+_0x435d25[_0x1ada62(0x14b)]+'-'+_0x29b233,_0x4e75d5,void 0x0,_0x43886b)));}function _0x3e1cd6(_0x31bd9e,_0x5ee8da,_0x4c550e){const _0x3ff138=_0x312948,_0x56c79c={..._0x31bd9e[_0x3ff138(0x1a3)]};_0x4c550e!=null&&_0x4c550e[_0x3ff138(0x11d)]&&_0x56c79c[_0x3ff138(0x149)]==='colorChannel1'&&(_0x56c79c[_0x3ff138(0x149)]=_0x4c550e[_0x3ff138(0x11d)]),_0x31bd9e[_0x3ff138(0x14b)]===_0x3ff138(0x1ce)&&_0x56c79c['id']&&(_0x56c79c['id']=_0x56c79c['id']+_0x5ee8da[_0x3ff138(0x117)]),Object[_0x3ff138(0x1b1)](_0x56c79c)[_0x3ff138(0x1c5)](([_0x593ce4,_0x1802e3])=>{const _0x314a21=_0x3ff138;_0x593ce4===_0x314a21(0x1ce)&&typeof _0x1802e3==_0x314a21(0x1c8)&&(_0x56c79c[_0x593ce4]=_0x1802e3[_0x314a21(0x1b2)](/url\(#(.*)\)/,_0x314a21(0x14a)+_0x5ee8da['idSuffix']+')'));});const {defIds:_0xd0516f}=_0x5ee8da;return!_0xd0516f||_0xd0516f[_0x3ff138(0x157)]===0x0||(_0x31bd9e[_0x3ff138(0x14b)]===_0x3ff138(0x172)&&_0x56c79c[_0x3ff138(0x1d9)]&&(_0x56c79c[_0x3ff138(0x1d9)]=_0x56c79c[_0x3ff138(0x1d9)]+_0x5ee8da[_0x3ff138(0x117)]),Object['entries'](_0x56c79c)['forEach'](([_0x2625bf,_0x27f34a])=>{const _0x9d710f=_0x3ff138;typeof _0x27f34a==_0x9d710f(0x1c8)&&(_0x56c79c[_0x2625bf]=_0x27f34a[_0x9d710f(0x1b2)](/url\(#(.*)\)/,_0x9d710f(0x14a)+_0x5ee8da['idSuffix']+')'));})),_0x56c79c;}function _0x17eba3(_0x44217c,_0xa0c7b4){const _0x530128=_0x312948;var _0xb695b1;const {defIds:_0xde4008}=_0xa0c7b4;return!_0xde4008||_0xde4008[_0x530128(0x157)]===0x0?_0x44217c:_0x44217c[_0x530128(0x14b)]===_0x530128(0x13a)&&((_0xb695b1=_0x44217c[_0x530128(0x15a)])!=null&&_0xb695b1[_0x530128(0x157)])?{..._0x44217c,'children':_0x44217c[_0x530128(0x15a)][_0x530128(0x179)](_0x3dfa7=>typeof _0x3dfa7[_0x530128(0x1a3)]['id']=='string'&&_0xde4008&&_0xde4008[_0x530128(0x164)](_0x3dfa7[_0x530128(0x1a3)]['id'])?{..._0x3dfa7,'attrs':{..._0x3dfa7[_0x530128(0x1a3)],'id':_0x3dfa7['attrs']['id']+_0xa0c7b4[_0x530128(0x117)]}}:_0x3dfa7)}:_0x44217c;}function _0x37a16d(){const _0x1b8668=_0x312948;return Math['random']()[_0x1b8668(0x1bb)](0x24)[_0x1b8668(0x1ae)](0x2,0x8);}_0x12ac21['displayName']=_0x312948(0x1c6);const _0x2fa222={'tag':_0x312948(0x12d),'attrs':{'xmlns':_0x312948(0x1a8),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x312948(0x15d),'height':_0x312948(0x15d)},'children':[{'tag':_0x312948(0x1c1),'attrs':{'fill':_0x312948(0x1c9),'d':_0x312948(0x112)}},{'tag':_0x312948(0x1c1),'attrs':{'fill':_0x312948(0x1c9),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x312948(0x114),'clipRule':'evenodd'}}]},_0x3193fb=_0xcd4ef7[_0x312948(0x182)](function(_0x254c5d,_0xbdc12b){const _0x48dc8e=_0x312948;return _0xcd4ef7['createElement'](_0x12ac21,Object[_0x48dc8e(0x121)]({},_0x254c5d,{'id':_0x48dc8e(0x153),'ref':_0xbdc12b,'icon':_0x2fa222}));});_0x3193fb[_0x312948(0x1cb)]=_0x312948(0x14f);class _0xae056b extends _0x327b3e[_0x312948(0x1c3)]{constructor(){const _0xa486d=_0x312948;super(...arguments),_0x16fd1b(this,'_sharedOperations',new Set()),_0x16fd1b(this,_0xa486d(0x13b),new Set());}[_0x312948(0x10f)](_0x1c72b9){const _0x5eccd6=_0x312948;return this[_0x5eccd6(0x174)][_0x5eccd6(0x13d)](_0x1c72b9),_0x327b3e[_0x5eccd6(0x146)](()=>this[_0x5eccd6(0x174)][_0x5eccd6(0x1a1)](_0x1c72b9));}[_0x312948(0x19f)](_0x4f0408){const _0x4ec4e2=_0x312948;return this['_reporters'][_0x4ec4e2(0x13d)](_0x4f0408),_0x327b3e[_0x4ec4e2(0x146)](()=>this[_0x4ec4e2(0x13b)]['delete'](_0x4f0408));}[_0x312948(0x19e)](_0x4688d3){const _0x5188dd=_0x312948;return this[_0x5188dd(0x174)]['has'](_0x4688d3);}[_0x312948(0x1a0)](_0x538a0f){const _0x2c5023=_0x312948;return Array[_0x2c5023(0x169)](this['_reporters'])[_0x2c5023(0x179)](_0xb0cdb8=>_0xb0cdb8(_0x538a0f));}}var _0x55a179=Object[_0x312948(0x19a)],_0x27da11=(_0x21d7e6,_0x3bc1b1,_0x1885ba,_0x18e63c)=>{const _0x3fc031=_0x312948;for(var _0x22d131=_0x18e63c>0x1?void 0x0:_0x18e63c?_0x55a179(_0x3bc1b1,_0x1885ba):_0x3bc1b1,_0x484470=_0x21d7e6[_0x3fc031(0x157)]-0x1,_0x137d12;_0x484470>=0x0;_0x484470--)(_0x137d12=_0x21d7e6[_0x484470])&&(_0x22d131=_0x137d12(_0x22d131)||_0x22d131);return _0x22d131;},_0x3c82ad=(_0x36ddad,_0x142f53)=>(_0x1d02e6,_0x149377)=>_0x142f53(_0x1d02e6,_0x149377,_0x36ddad);_0x566137[_0x312948(0x14d)]=class extends _0x327b3e[_0x312948(0x137)]{constructor(_0x413c5c,_0x25d17a,_0x308c39){const _0x4361b3=_0x312948;super(),_0x16fd1b(this,_0x4361b3(0x198),new Map()),(this[_0x4361b3(0x1ac)]=_0x413c5c,this[_0x4361b3(0x1ba)]=_0x25d17a,this[_0x4361b3(0x12f)]=_0x308c39,this['_init']());}async[_0x312948(0x1d3)](_0x5a1935){const _0x46bebb=_0x312948;return this[_0x46bebb(0x198)]['has'](_0x5a1935)||await this[_0x46bebb(0x15e)](_0x5a1935),this[_0x46bebb(0x198)][_0x46bebb(0x1cf)](_0x5a1935);}[_0x312948(0x19b)](_0x3bfacb){const _0x4180ae=_0x312948;var _0x347e60;return(_0x347e60=this[_0x4180ae(0x198)][_0x4180ae(0x1cf)](_0x3bfacb))!=null?_0x347e60:null;}[_0x312948(0x12c)](){const _0x573e08=_0x312948;this[_0x573e08(0x1ac)]['getTypeOfUnitAdded$'](_0x327b3e[_0x573e08(0x101)]['UNIVER_SHEET'])[_0x573e08(0x18a)](_0x58a4a9[_0x573e08(0x10c)](this['dispose$']))[_0x573e08(0x118)](async _0x456eb5=>{const _0x3b8814=_0x573e08,_0x197c82=_0x456eb5[_0x3b8814(0x113)]();this[_0x3b8814(0x198)][_0x3b8814(0x17b)](_0x197c82)||this['_startLiveShareCoordinator'](_0x197c82);}),this['_univerInstanceService'][_0x573e08(0x12a)](_0x327b3e[_0x573e08(0x101)][_0x573e08(0x132)])[_0x573e08(0x18a)](_0x58a4a9[_0x573e08(0x10c)](this[_0x573e08(0x106)]))['subscribe'](_0x362d53=>{const _0x4d0d47=_0x573e08,_0xf1dce6=_0x362d53[_0x4d0d47(0x113)](),_0x216209=this[_0x4d0d47(0x198)][_0x4d0d47(0x1cf)](_0xf1dce6);_0x216209==null||_0x216209[_0x4d0d47(0x1a4)]();});}async['_startLiveShareCoordinator'](_0x2a438f){const _0x70f93b=_0x312948,_0x20da07=await this[_0x70f93b(0x12f)][_0x70f93b(0x1ad)](_0x2a438f),_0x3f6e0b=this[_0x70f93b(0x1ba)][_0x70f93b(0x184)](_0x566137[_0x70f93b(0x1cc)],_0x2a438f,_0x20da07);return _0x3f6e0b[_0x70f93b(0x1c0)](),this[_0x70f93b(0x198)][_0x70f93b(0x185)](_0x2a438f,_0x3f6e0b),_0x3f6e0b;}},_0x566137[_0x312948(0x14d)]=_0x27da11([_0x3c82ad(0x0,_0x327b3e[_0x312948(0x13c)]),_0x3c82ad(0x1,_0x327b3e[_0x312948(0x10d)](_0x327b3e[_0x312948(0x1a7)])),_0x3c82ad(0x2,_0x327b3e['Inject'](_0x4d3bfc['CollaborationSessionService']))],_0x566137[_0x312948(0x14d)]);var _0x11fee9=(_0x226aef=>(_0x226aef[_0x312948(0x12e)]=_0x312948(0x127),_0x226aef['IDLE']='idle',_0x226aef[_0x312948(0x16d)]=_0x312948(0x10b),_0x226aef[_0x312948(0x15b)]=_0x312948(0x120),_0x226aef[_0x312948(0x1d5)]=_0x312948(0x141),_0x226aef))(_0x11fee9||{});const _0x94e2b7='SAME_OPERATION_SHARE_INTERVAL',_0x3ede1e=0xc8;_0x566137[_0x312948(0x1cc)]=class extends _0x327b3e[_0x312948(0x137)]{constructor(_0x322da1,_0x5eb7ba,_0x2892dc,_0x11c42d,_0x22ccf7){const _0x1fb37c=_0x312948;super(),_0x16fd1b(this,_0x1fb37c(0x192),new _0x23eb22[(_0x1fb37c(0x1db))](_0x1fb37c(0x178))),_0x16fd1b(this,_0x1fb37c(0x108),this['_status$'][_0x1fb37c(0x168)]()),_0x16fd1b(this,'_init',!0x1),_0x16fd1b(this,_0x1fb37c(0x1ca),null),_0x16fd1b(this,_0x1fb37c(0x190),null),(this[_0x1fb37c(0x160)]=_0x322da1,this[_0x1fb37c(0x1d8)]=_0x5eb7ba,this[_0x1fb37c(0x103)]=_0x2892dc,this[_0x1fb37c(0xfd)]=_0x11c42d,this[_0x1fb37c(0x122)]=_0x22ccf7);}get['_status'](){const _0x584e0c=_0x312948;return this[_0x584e0c(0x192)]['getValue']();}['dispose'](){const _0x47bdc2=_0x312948;var _0x2fd316;(_0x2fd316=this[_0x47bdc2(0x1ca)])==null||_0x2fd316[_0x47bdc2(0x1a4)](),this[_0x47bdc2(0x192)]['next'](_0x47bdc2(0x178)),this[_0x47bdc2(0x192)]['complete']();}[_0x312948(0x142)](){const _0x18ebc4=_0x312948;return this[_0x18ebc4(0x194)];}[_0x312948(0x1c0)](){const _0x2f7961=_0x312948;this[_0x2f7961(0x12c)]||(this['_init']=!0x0,this[_0x2f7961(0x1d8)][_0x2f7961(0x156)][_0x2f7961(0x18a)](_0x58a4a9[_0x2f7961(0x10c)](this[_0x2f7961(0x106)]))['subscribe'](_0x491230=>{const _0x3090a5=_0x2f7961;switch(_0x491230){case _0x4d3bfc[_0x3090a5(0x197)][_0x3090a5(0x12e)]:this[_0x3090a5(0x1da)]();break;case _0x4d3bfc[_0x3090a5(0x197)]['ONLINE']:this[_0x3090a5(0x115)]();break;}}),this[_0x2f7961(0x1d8)][_0x2f7961(0x136)][_0x2f7961(0x18a)](_0x58a4a9[_0x2f7961(0x10c)](this[_0x2f7961(0x106)]))[_0x2f7961(0x118)](_0x5d9bff=>{const _0x2d837e=_0x2f7961,{eventID:_0x5c1ca6}=_0x5d9bff;switch(_0x5c1ca6){case _0x357a77[_0x2d837e(0x1bf)][_0x2d837e(0x18b)]:this[_0x2d837e(0x183)](_0x5d9bff);break;case _0x357a77[_0x2d837e(0x1bf)][_0x2d837e(0x11a)]:this['_handleOperation'](_0x5d9bff);break;case _0x357a77['CollaborationEvent'][_0x2d837e(0x1b0)]:this[_0x2d837e(0x1b3)]();break;case _0x357a77[_0x2d837e(0x1bf)][_0x2d837e(0x11e)]:this[_0x2d837e(0x139)](_0x5d9bff);break;}}));}[_0x312948(0x177)](){const _0x262396=_0x312948;this[_0x262396(0x1d8)][_0x262396(0x165)]({'eventID':_0x357a77['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x262396(0x160)],'userID':this[_0x262396(0x1d8)][_0x262396(0x16c)]()}},this[_0x262396(0x160)]);}[_0x312948(0x17a)](){const _0x376536=_0x312948;this['_status']==='presenting'&&(this[_0x376536(0x192)]['next']('idle'),this[_0x376536(0x1d8)]['send']({'eventID':_0x357a77[_0x376536(0x1bf)][_0x376536(0x1b0)],'data':{'unitID':this[_0x376536(0x160)]}},this[_0x376536(0x160)]));}[_0x312948(0xf6)](){const _0x3f59e1=_0x312948;this[_0x3f59e1(0x194)]===_0x3f59e1(0x120)&&(this['_status$']['next']('following'),this[_0x3f59e1(0x11c)]());}[_0x312948(0x186)](){const _0x2a1393=_0x312948;this[_0x2a1393(0x194)]===_0x2a1393(0x10b)&&this[_0x2a1393(0x143)]();}[_0x312948(0x183)](_0x145d42){const _0x37ca98=_0x312948,{presenter:_0xf9fdbd}=_0x145d42['data'],_0x229ab4=this[_0x37ca98(0x1d8)]['getMemberID']();this[_0x37ca98(0x190)]=_0xf9fdbd,_0xf9fdbd===_0x229ab4?(this[_0x37ca98(0x143)](),this[_0x37ca98(0x152)]()):this[_0x37ca98(0x194)]!==_0x37ca98(0x120)&&(this[_0x37ca98(0x196)](),this[_0x37ca98(0x11c)]());}[_0x312948(0x123)](){const _0x46ec11=_0x312948,_0xfa07b4={'eventID':_0x357a77[_0x46ec11(0x1bf)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x46ec11(0x1d8)][_0x46ec11(0x165)](_0xfa07b4,this[_0x46ec11(0x160)]);}[_0x312948(0x1b3)](){const _0x379729=_0x312948;this[_0x379729(0x190)]=null,this['_status']!=='presenting'&&this[_0x379729(0xfc)]();}[_0x312948(0x139)](_0x5130b7){const _0x33b86d=_0x312948;if(this['_status']===_0x33b86d(0x10b)&&this[_0x33b86d(0x190)]===_0x5130b7[_0x33b86d(0x102)]['memberID']){const _0x241f11=_0x357a77[_0x33b86d(0xfa)](_0x5130b7['data'])[_0x33b86d(0x171)]['reverse']()[_0x33b86d(0x16f)](_0x4f97b7=>_0x4f97b7['id']===_0x3f6c09['InsertSheetMutation']['id']);if(_0x241f11){const _0x4b5c57=_0x241f11[_0x33b86d(0x1dc)]['unitId'],_0x4827e0=_0x241f11['params'][_0x33b86d(0xf8)]['id'];setTimeout(()=>{const _0x5cfb4a=_0x33b86d;this['_commandService'][_0x5cfb4a(0x15f)](_0x3f6c09[_0x5cfb4a(0x1b7)]['id'],{'unitId':_0x4b5c57,'subUnitId':_0x4827e0},{'fromCollab':!0x0});});}}}[_0x312948(0x152)](){const _0xd9f64=_0x312948;this[_0xd9f64(0x192)][_0xd9f64(0x1b4)](_0xd9f64(0x141));const _0x1bf261=new Map(),_0x26c7fe=this['_commandDisposable']=new _0x327b3e[(_0xd9f64(0x1ab))]();_0x26c7fe['add'](_0x327b3e[_0xd9f64(0x146)](()=>{const _0x58959e=_0xd9f64;_0x1bf261[_0x58959e(0x1c5)](_0x4a7f5f=>_0x4a7f5f[_0x58959e(0x1a5)]()),_0x1bf261[_0x58959e(0x189)]();})),_0x26c7fe[_0xd9f64(0x13d)](this[_0xd9f64(0x122)]['onCommandExecuted'](_0x35ffca=>{const _0x2c868a=_0xd9f64;var _0x17c5fa;if(_0x35ffca[_0x2c868a(0x140)]!==_0x327b3e[_0x2c868a(0x1b8)][_0x2c868a(0x10a)]||!this['_liveShareService'][_0x2c868a(0x19e)](_0x35ffca['id']))return;const {id:_0xf6d050}=_0x35ffca;let _0x182e74;_0x1bf261[_0x2c868a(0x17b)](_0xf6d050)?_0x182e74=_0x1bf261[_0x2c868a(0x1cf)](_0xf6d050):(_0x182e74=new _0x23eb22[(_0x2c868a(0x1a6))](),_0x1bf261[_0x2c868a(0x185)](_0xf6d050,_0x182e74),_0x182e74['pipe'](_0x58a4a9[_0x2c868a(0x129)]((_0x17c5fa=this[_0x2c868a(0x103)][_0x2c868a(0x16e)](_0x94e2b7))!=null?_0x17c5fa:_0x3ede1e,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2c868a(0x118)](_0x36e7de=>{const _0x1d8221=_0x2c868a;this[_0x1d8221(0x1d8)][_0x1d8221(0x165)]({'eventID':_0x357a77[_0x1d8221(0x1bf)][_0x1d8221(0x11a)],'data':{'unitID':this[_0x1d8221(0x160)],'operations':{[_0x36e7de['id']]:{'id':_0x36e7de['id'],'params':JSON[_0x1d8221(0xf9)](_0x36e7de[_0x1d8221(0x1dc)])}}}},this[_0x1d8221(0x160)]);})),_0x182e74[_0x2c868a(0x1b4)](_0x35ffca);})),this['_liveShareService']['getInitialStates'](this['_unitID'])[_0xd9f64(0x1c5)](_0x47dca6=>this[_0xd9f64(0x1d8)][_0xd9f64(0x165)]({'eventID':_0x357a77[_0xd9f64(0x1bf)][_0xd9f64(0x11a)],'data':{'unitID':this[_0xd9f64(0x160)],'operations':{[_0x47dca6['id']]:{'id':_0x47dca6['id'],'params':JSON[_0xd9f64(0xf9)](_0x47dca6[_0xd9f64(0x1dc)])}}}},this[_0xd9f64(0x160)]));}['_stopPresenting'](){const _0x59dd49=_0x312948;var _0x2af2b7;this[_0x59dd49(0x192)]['next'](_0x59dd49(0x178)),(_0x2af2b7=this[_0x59dd49(0x1ca)])==null||_0x2af2b7['dispose'](),this[_0x59dd49(0x1ca)]=null;}[_0x312948(0x11c)](){const _0x4c2b51=_0x312948;var _0x272609;(_0x272609=this[_0x4c2b51(0x1ca)])==null||_0x272609[_0x4c2b51(0x1a4)](),this[_0x4c2b51(0x192)][_0x4c2b51(0x1b4)]('following');}[_0x312948(0xfc)](){const _0x320f3e=_0x312948;var _0x3d7154;this['_status$'][_0x320f3e(0x1b4)]('idle'),(_0x3d7154=this[_0x320f3e(0x1ca)])==null||_0x3d7154[_0x320f3e(0x1a4)](),this['_commandDisposable']=null;}[_0x312948(0x143)](){const _0x5f42bc=_0x312948;var _0x50bef2;this['_status$']['next']('not-following'),(_0x50bef2=this[_0x5f42bc(0x1ca)])==null||_0x50bef2['dispose']();}[_0x312948(0x1dd)](_0x194f2b){const _0x1ef41d=_0x312948;if([_0x1ef41d(0x141),_0x1ef41d(0x120),_0x1ef41d(0x127)][_0x1ef41d(0x164)](this['_status'])||!_0x194f2b[_0x1ef41d(0x102)][_0x1ef41d(0x11b)]||_0x194f2b['data']['presenter']===this['_collabSession']['getMemberID']())return;this[_0x1ef41d(0x194)]===_0x1ef41d(0x178)&&this[_0x1ef41d(0x11c)]();const _0x56065a=_0x194f2b['data']['operations'];Object[_0x1ef41d(0x105)](_0x56065a)['forEach'](_0x306035=>{const _0x1005be=_0x1ef41d;this[_0x1005be(0x122)]['executeCommand'](_0x306035['id'],_0x306035[_0x1005be(0x1dc)]?JSON[_0x1005be(0x19d)](_0x306035[_0x1005be(0x1dc)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x135bde=_0x312948;var _0x2cfda3;this[_0x135bde(0x192)][_0x135bde(0x1b4)](_0x135bde(0x127)),(_0x2cfda3=this[_0x135bde(0x1ca)])==null||_0x2cfda3['dispose']();}[_0x312948(0x115)](){const _0x140af5=_0x312948;this[_0x140af5(0x192)][_0x140af5(0x1b4)](_0x140af5(0x178)),this[_0x140af5(0x123)]();}},_0x566137['LiveShareCoordinator']=_0x27da11([_0x3c82ad(0x2,_0x327b3e[_0x312948(0x1d2)]),_0x3c82ad(0x3,_0x327b3e['Inject'](_0xae056b)),_0x3c82ad(0x4,_0x327b3e['ICommandService'])],_0x566137[_0x312948(0x1cc)]);function _0x5f2d24(){const _0x569424=_0x312948,_0x459906=_0x331cdd[_0x569424(0x14c)](_0x566137[_0x569424(0x14d)]),_0x5528c6=_0x331cdd['useDependency'](_0x327b3e['IUniverInstanceService']),_0x59f333=_0x331cdd[_0x569424(0x1d4)](()=>_0x5528c6[_0x569424(0x155)](_0x327b3e[_0x569424(0x101)][_0x569424(0x132)]),void 0x0,!0x1,[]),[_0x2d30b4,_0x33e496]=_0xcd4ef7[_0x569424(0x1bc)](null),[_0x370ab6,_0x4e865c]=_0xcd4ef7['useState'](_0x11fee9['IDLE']),_0x58bbb8=_0xcd4ef7[_0x569424(0x147)](null);return _0xcd4ef7[_0x569424(0x13e)](()=>(_0x59f333&&_0x459906[_0x569424(0x1d3)](_0x59f333[_0x569424(0x113)]())['then'](_0x34a57b=>{const _0x374d1e=_0x569424;_0x33e496(_0x34a57b),_0x58bbb8[_0x374d1e(0x1b5)]=_0x34a57b[_0x374d1e(0x108)][_0x374d1e(0x118)](_0xb280d2=>{_0x4e865c(_0xb280d2);});}),()=>{const _0x4797d8=_0x569424;var _0x10d99e;(_0x10d99e=_0x58bbb8[_0x4797d8(0x1b5)])==null||_0x10d99e[_0x4797d8(0x1aa)](),_0x58bbb8[_0x4797d8(0x1b5)]=null;}),[_0x59f333,_0x459906]),_0x2d30b4?_0x3f5bcc['jsx'](_0x3a6087[_0x569424(0xf5)],{'align':_0x569424(0x1b6),'disabled':_0x370ab6===_0x11fee9[_0x569424(0x12e)],'className':_0x569424(0x109),'overlay':_0x3f5bcc[_0x569424(0x162)](_0x1aaf83,{'status':_0x370ab6,'coordinator':_0x2d30b4}),'children':_0x3f5bcc['jsx'](_0x569424(0x18c),{'className':_0x3a6087[_0x569424(0x18f)](_0x569424(0x15c),{'univer-cursor-not-allowed':_0x370ab6===_0x11fee9[_0x569424(0x12e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x370ab6!==_0x11fee9['OFFLINE']}),'type':_0x569424(0x18c),'children':_0x3f5bcc[_0x569424(0x162)](_0x3193fb,{'className':_0x569424(0x187)})})}):null;}function _0x1aaf83(_0x266a6){const _0x4f93de=_0x312948,{status:_0x15fc2c,coordinator:_0x3f7035}=_0x266a6;switch(_0x15fc2c){case _0x11fee9[_0x4f93de(0x158)]:return _0x3f5bcc[_0x4f93de(0x162)](_0xbc16c0,{'coordinator':_0x3f7035});case _0x11fee9[_0x4f93de(0x16d)]:return _0x3f5bcc[_0x4f93de(0x162)](_0x381344,{'coordinator':_0x3f7035});case _0x11fee9[_0x4f93de(0x15b)]:return _0x3f5bcc[_0x4f93de(0x162)](_0x2b5b92,{'coordinator':_0x3f7035});case _0x11fee9[_0x4f93de(0x12e)]:return _0x3f5bcc[_0x4f93de(0x162)](_0x1cb916,{});case _0x11fee9['PRESENTING']:return _0x3f5bcc[_0x4f93de(0x162)](_0x25e59b,{'coordinator':_0x3f7035});default:return null;}}function _0xbc16c0(_0x3187a8){const _0x220628=_0x312948,{coordinator:_0x4bfd01}=_0x3187a8;return _0x3f5bcc[_0x220628(0x170)](_0x3f5bcc[_0x220628(0xfe)],{'children':[_0x3f5bcc[_0x220628(0x162)](_0x220628(0x100),{'className':_0x220628(0xf1),'children':_0x220628(0x180)}),_0x3f5bcc[_0x220628(0x162)](_0x3a6087[_0x220628(0x133)],{'onClick':()=>_0x4bfd01[_0x220628(0x177)](),'children':_0x220628(0x1be)})]});}function _0x381344(_0x3910da){const _0x1db0b4=_0x312948,{coordinator:_0x3c0410}=_0x3910da;return _0x3f5bcc[_0x1db0b4(0x170)](_0x3f5bcc[_0x1db0b4(0xfe)],{'children':[_0x3f5bcc['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1db0b4(0x181)}),_0x3f5bcc[_0x1db0b4(0x162)](_0x3a6087[_0x1db0b4(0x133)],{'onClick':()=>_0x3c0410[_0x1db0b4(0x186)](),'children':_0x1db0b4(0x167)})]});}function _0x2b5b92(_0x2f32fc){const _0x47c308=_0x312948,{coordinator:_0x28ed18}=_0x2f32fc;return _0x3f5bcc[_0x47c308(0x170)](_0x3f5bcc[_0x47c308(0xfe)],{'children':[_0x3f5bcc[_0x47c308(0x162)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x3f5bcc['jsx'](_0x3a6087['Button'],{'variant':_0x47c308(0x18e),'onClick':()=>_0x28ed18[_0x47c308(0xf6)](),'children':_0x47c308(0x119)})]});}function _0x25e59b(_0x35f604){const _0x5aae11=_0x312948,{coordinator:_0x195185}=_0x35f604;return _0x3f5bcc[_0x5aae11(0x170)](_0x3f5bcc[_0x5aae11(0xfe)],{'children':[_0x3f5bcc[_0x5aae11(0x162)](_0x5aae11(0x100),{'className':_0x5aae11(0xf1),'children':_0x5aae11(0x1c7)}),_0x3f5bcc[_0x5aae11(0x162)](_0x3a6087['Button'],{'variant':_0x5aae11(0x1a2),'onClick':()=>_0x195185[_0x5aae11(0x17a)](),'children':'Stop\x20presenting'})]});}function _0x1cb916(){const _0x379c44=_0x312948;return _0x3f5bcc['jsx'](_0x3f5bcc[_0x379c44(0xfe)],{'children':'You\x27are\x20offline.'});}var _0x42a35b=Object[_0x312948(0x19a)],_0x58359a=(_0x163982,_0x24ab97,_0x5eadf2,_0x386deb)=>{const _0x8920e8=_0x312948;for(var _0x257c79=_0x386deb>0x1?void 0x0:_0x386deb?_0x42a35b(_0x24ab97,_0x5eadf2):_0x24ab97,_0x2169fd=_0x163982[_0x8920e8(0x157)]-0x1,_0x12c7e7;_0x2169fd>=0x0;_0x2169fd--)(_0x12c7e7=_0x163982[_0x2169fd])&&(_0x257c79=_0x12c7e7(_0x257c79)||_0x257c79);return _0x257c79;},_0x40f129=(_0x1d64de,_0x25b160)=>(_0x5b8768,_0xaf1b1a)=>_0x25b160(_0x5b8768,_0xaf1b1a,_0x1d64de);_0x566137[_0x312948(0x1d6)]=class extends _0x327b3e['Disposable']{constructor(_0x25c600,_0x3aa941){const _0x579e1=_0x312948;super(),this[_0x579e1(0x1ba)]=_0x25c600,this[_0x579e1(0xfb)]=_0x3aa941,this[_0x579e1(0x126)]();}['_mountLiveShare'](){const _0x1a010d=_0x312948;this[_0x1a010d(0x17f)](this['_uiPartsService'][_0x1a010d(0x110)](_0x331cdd[_0x1a010d(0x151)][_0x1a010d(0x10e)],()=>_0x331cdd[_0x1a010d(0x107)](_0x5f2d24,this[_0x1a010d(0x1ba)])));}},_0x566137['DesktopLiveShareController']=_0x58359a([_0x40f129(0x0,_0x327b3e[_0x312948(0x10d)](_0x327b3e[_0x312948(0x1a7)])),_0x40f129(0x1,_0x331cdd['IUIPartsService'])],_0x566137[_0x312948(0x1d6)]);const _0x5a8680=_0x312948(0x14e),_0x263335={};var _0x19ebe8=Object['getOwnPropertyDescriptor'],_0x450570=(_0x4545b0,_0x3c50f7,_0x90890e,_0x35d5ae)=>{const _0x2044da=_0x312948;for(var _0x2cf634=_0x35d5ae>0x1?void 0x0:_0x35d5ae?_0x19ebe8(_0x3c50f7,_0x90890e):_0x3c50f7,_0x102be7=_0x4545b0[_0x2044da(0x157)]-0x1,_0x37063f;_0x102be7>=0x0;_0x102be7--)(_0x37063f=_0x4545b0[_0x102be7])&&(_0x2cf634=_0x37063f(_0x2cf634)||_0x2cf634);return _0x2cf634;},_0x257f4d=(_0x14ec59,_0x2775ac)=>(_0x4149d9,_0x393516)=>_0x2775ac(_0x4149d9,_0x393516,_0x14ec59);let _0x51dd19=class extends _0x327b3e[_0x312948(0x1c3)]{constructor(_0x1ae35e){const _0x460ec0=_0x312948;super(),this[_0x460ec0(0xfd)]=_0x1ae35e,this['_init']();}[_0x312948(0x12c)](){const _0x19375f=_0x312948;[_0x1ea554[_0x19375f(0x125)]['id'],_0x1ea554[_0x19375f(0xf0)]['id'],_0x3f6c09[_0x19375f(0x1b7)]['id']][_0x19375f(0x1c5)](_0x15cba1=>{const _0x4eb7e2=_0x19375f;this[_0x4eb7e2(0x17f)](this['_liveShareService'][_0x4eb7e2(0x10f)](_0x15cba1));});}};_0x51dd19=_0x450570([_0x257f4d(0x0,_0x327b3e[_0x312948(0x10d)](_0xae056b))],_0x51dd19);var _0x209e83=Object[_0x312948(0x188)],_0x5f4a19=Object[_0x312948(0x19a)],_0x357052=(_0x5af32f,_0x3fb84a,_0x3bcc29)=>_0x3fb84a in _0x5af32f?_0x209e83(_0x5af32f,_0x3fb84a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3bcc29}):_0x5af32f[_0x3fb84a]=_0x3bcc29,_0x77e233=(_0xd62f2b,_0x38680c,_0x56b3d8,_0x56019e)=>{const _0x152e1f=_0x312948;for(var _0x1187c0=_0x56019e>0x1?void 0x0:_0x56019e?_0x5f4a19(_0x38680c,_0x56b3d8):_0x38680c,_0xb39cda=_0xd62f2b[_0x152e1f(0x157)]-0x1,_0x2e2ae5;_0xb39cda>=0x0;_0xb39cda--)(_0x2e2ae5=_0xd62f2b[_0xb39cda])&&(_0x1187c0=_0x2e2ae5(_0x1187c0)||_0x1187c0);return _0x1187c0;},_0x4b0f74=(_0x1e0b80,_0x1729f3)=>(_0x21ad03,_0x2c644b)=>_0x1729f3(_0x21ad03,_0x2c644b,_0x1e0b80),_0x357f3b=(_0x53605c,_0x53a262,_0x5cc43d)=>_0x357052(_0x53605c,typeof _0x53a262!=_0x312948(0x145)?_0x53a262+'':_0x53a262,_0x5cc43d);const _0x1c6a30=_0x312948(0x176);_0x566137[_0x312948(0x163)]=class extends _0x327b3e['Plugin']{constructor(_0x4e53a3=_0x263335,_0x20d349,_0x586271){const _0x3e5d44=_0x312948;super(),this[_0x3e5d44(0x130)]=_0x4e53a3,this[_0x3e5d44(0x1ba)]=_0x20d349,this['_configService']=_0x586271;const {..._0x229707}=_0x327b3e[_0x3e5d44(0x17d)]({},_0x263335,this[_0x3e5d44(0x130)]);this[_0x3e5d44(0x103)]['setConfig'](_0x5a8680,_0x229707);}[_0x312948(0x199)](){const _0x2c394d=_0x312948;_0x327b3e['registerDependencies'](this[_0x2c394d(0x1ba)],_0x327b3e[_0x2c394d(0x128)]([[_0xae056b],[_0x566137[_0x2c394d(0x14d)]],[_0x51dd19],[_0x566137[_0x2c394d(0x1d6)]]],this[_0x2c394d(0x130)][_0x2c394d(0x17e)])),_0x327b3e[_0x2c394d(0xf4)](this[_0x2c394d(0x1ba)],[[_0x51dd19]]);}[_0x312948(0x16a)](){const _0x347b98=_0x312948;_0x327b3e[_0x347b98(0xf4)](this[_0x347b98(0x1ba)],[[_0x566137[_0x347b98(0x1d6)]]]);}},_0x357f3b(_0x566137[_0x312948(0x163)],_0x312948(0x140),_0x327b3e[_0x312948(0x101)][_0x312948(0x154)]),_0x357f3b(_0x566137[_0x312948(0x163)],_0x312948(0x1cd),_0x1c6a30),_0x566137[_0x312948(0x163)]=_0x77e233([_0x327b3e[_0x312948(0x1d7)](_0x4d3bfc[_0x312948(0x1b9)]),_0x4b0f74(0x1,_0x327b3e[_0x312948(0x10d)](_0x327b3e[_0x312948(0x1a7)])),_0x4b0f74(0x2,_0x327b3e[_0x312948(0x1d2)])],_0x566137[_0x312948(0x163)]),_0x566137[_0x312948(0x175)]=_0x5f2d24,_0x566137[_0x312948(0x191)]=_0xae056b,_0x566137[_0x312948(0x135)]=_0x11fee9,Object[_0x312948(0x188)](_0x566137,Symbol[_0x312948(0x1d0)],{'value':_0x312948(0x1c2)});}));
|
|
1
|
+
(function(_0x256ba4,_0x1451a0){const _0xc91a9f=_0x50e4,_0x5e3335=_0x256ba4();while(!![]){try{const _0x2a778e=parseInt(_0xc91a9f(0x108))/0x1*(-parseInt(_0xc91a9f(0x1c5))/0x2)+parseInt(_0xc91a9f(0x11b))/0x3*(-parseInt(_0xc91a9f(0x1a5))/0x4)+-parseInt(_0xc91a9f(0x161))/0x5+-parseInt(_0xc91a9f(0x1a1))/0x6*(parseInt(_0xc91a9f(0x143))/0x7)+-parseInt(_0xc91a9f(0x13f))/0x8*(-parseInt(_0xc91a9f(0x107))/0x9)+parseInt(_0xc91a9f(0x126))/0xa+parseInt(_0xc91a9f(0x16e))/0xb;if(_0x2a778e===_0x1451a0)break;else _0x5e3335['push'](_0x5e3335['shift']());}catch(_0x267662){_0x5e3335['push'](_0x5e3335['shift']());}}}(_0x25fb,0x9be0f),function(_0x321a60,_0x1d77dd){const _0x830e2a=_0x50e4;typeof exports==_0x830e2a(0x1c1)&&typeof module<'u'?_0x1d77dd(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define==_0x830e2a(0x15d)&&define['amd']?define([_0x830e2a(0x10f),_0x830e2a(0x11c),_0x830e2a(0x106),'react/jsx-runtime','@univerjs/design',_0x830e2a(0x147),_0x830e2a(0x124),_0x830e2a(0x1c6),_0x830e2a(0x1bb),_0x830e2a(0x116),_0x830e2a(0x122),_0x830e2a(0x170)],_0x1d77dd):(_0x321a60=typeof globalThis<'u'?globalThis:_0x321a60||self,_0x1d77dd(_0x321a60[_0x830e2a(0x1b0)]={},_0x321a60[_0x830e2a(0x15c)],_0x321a60[_0x830e2a(0x10e)],_0x321a60[_0x830e2a(0x103)],_0x321a60[_0x830e2a(0x1c0)],_0x321a60[_0x830e2a(0x103)],_0x321a60[_0x830e2a(0x132)],_0x321a60[_0x830e2a(0x1cb)],_0x321a60[_0x830e2a(0x10a)],_0x321a60[_0x830e2a(0x116)],_0x321a60['rxjs'][_0x830e2a(0xed)],_0x321a60['UniverSheetsUi']));}(this,function(_0x491357,_0x3cd3bb,_0x672739,_0x164c98,_0x29f95a,_0x29551b,_0x470106,_0x3f3ef9,_0x103de8,_0xb17181,_0x4f2afb,_0x405304){'use strict';const _0x36a365=_0x50e4;var _0x5d242e=Object[_0x36a365(0x130)],_0x577596=(_0x3e730f,_0x44c3e8,_0x4cafe0)=>_0x44c3e8 in _0x3e730f?_0x5d242e(_0x3e730f,_0x44c3e8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4cafe0}):_0x3e730f[_0x44c3e8]=_0x4cafe0,_0x5abcce=(_0x576cd5,_0x34e6ca,_0x104d7e)=>_0x577596(_0x576cd5,typeof _0x34e6ca!=_0x36a365(0x158)?_0x34e6ca+'':_0x34e6ca,_0x104d7e);function _0x2c7261({ref:_0x1c702c,..._0x3a3c8f}){const _0x1ac38f=_0x36a365,{icon:_0x3cdad0,id:_0x16bbd5,className:_0x57723d,extend:_0xe7b8bc,..._0x3fd566}=_0x3a3c8f,_0x3fe8ee=('univerjs-icon\x20univerjs-icon-'+_0x16bbd5+'\x20'+(_0x57723d||''))[_0x1ac38f(0x1a8)](),_0x3b92fb=_0x29551b[_0x1ac38f(0x181)]('_'+_0x501319());return _0x455187(_0x3cdad0,''+_0x16bbd5,{'defIds':_0x3cdad0[_0x1ac38f(0x17e)],'idSuffix':_0x3b92fb['current']},{'ref':_0x1c702c,'className':_0x3fe8ee,..._0x3fd566},_0xe7b8bc);}function _0x455187(_0x3ba8ef,_0x17ccd9,_0x3f6a02,_0x13bb5b,_0x5a082b){const _0x1cd4a5=_0x36a365;return _0x29551b[_0x1cd4a5(0x129)](_0x3ba8ef[_0x1cd4a5(0x155)],{'key':_0x17ccd9,..._0x16a26e(_0x3ba8ef,_0x3f6a02,_0x5a082b),..._0x13bb5b},(_0x3da627(_0x3ba8ef,_0x3f6a02)['children']||[])[_0x1cd4a5(0x1bd)]((_0x4aee43,_0x2a0c7e)=>_0x455187(_0x4aee43,_0x17ccd9+'-'+_0x3ba8ef[_0x1cd4a5(0x155)]+'-'+_0x2a0c7e,_0x3f6a02,void 0x0,_0x5a082b)));}function _0x16a26e(_0x306970,_0xdd763d,_0x312224){const _0x4d170d=_0x36a365,_0x350902={..._0x306970[_0x4d170d(0x1ae)]};_0x312224!=null&&_0x312224[_0x4d170d(0x1b2)]&&_0x350902['fill']===_0x4d170d(0x1b2)&&(_0x350902[_0x4d170d(0x183)]=_0x312224[_0x4d170d(0x1b2)]),_0x306970['tag']===_0x4d170d(0x1ca)&&_0x350902['id']&&(_0x350902['id']=_0x350902['id']+_0xdd763d[_0x4d170d(0x19c)]),Object[_0x4d170d(0x105)](_0x350902)['forEach'](([_0x3af791,_0x3654c3])=>{const _0x9b3a73=_0x4d170d;_0x3af791===_0x9b3a73(0x1ca)&&typeof _0x3654c3==_0x9b3a73(0x163)&&(_0x350902[_0x3af791]=_0x3654c3[_0x9b3a73(0x100)](/url\(#(.*)\)/,_0x9b3a73(0x13b)+_0xdd763d[_0x9b3a73(0x19c)]+')'));});const {defIds:_0x546e18}=_0xdd763d;return!_0x546e18||_0x546e18[_0x4d170d(0x117)]===0x0||(_0x306970[_0x4d170d(0x155)]===_0x4d170d(0xfc)&&_0x350902[_0x4d170d(0x16d)]&&(_0x350902[_0x4d170d(0x16d)]=_0x350902[_0x4d170d(0x16d)]+_0xdd763d[_0x4d170d(0x19c)]),Object[_0x4d170d(0x105)](_0x350902)[_0x4d170d(0xf9)](([_0x4fa374,_0x2f447c])=>{const _0xa24093=_0x4d170d;typeof _0x2f447c==_0xa24093(0x163)&&(_0x350902[_0x4fa374]=_0x2f447c[_0xa24093(0x100)](/url\(#(.*)\)/,_0xa24093(0x13b)+_0xdd763d[_0xa24093(0x19c)]+')'));})),_0x350902;}function _0x3da627(_0xa39da8,_0xcf1e1a){const _0x3a4cc9=_0x36a365;var _0x3b82c0;const {defIds:_0x491a59}=_0xcf1e1a;return!_0x491a59||_0x491a59[_0x3a4cc9(0x117)]===0x0?_0xa39da8:_0xa39da8[_0x3a4cc9(0x155)]===_0x3a4cc9(0x16a)&&((_0x3b82c0=_0xa39da8[_0x3a4cc9(0x1c8)])!=null&&_0x3b82c0[_0x3a4cc9(0x117)])?{..._0xa39da8,'children':_0xa39da8['children'][_0x3a4cc9(0x1bd)](_0x5cecc8=>typeof _0x5cecc8[_0x3a4cc9(0x1ae)]['id']==_0x3a4cc9(0x163)&&_0x491a59&&_0x491a59[_0x3a4cc9(0x142)](_0x5cecc8[_0x3a4cc9(0x1ae)]['id'])?{..._0x5cecc8,'attrs':{..._0x5cecc8[_0x3a4cc9(0x1ae)],'id':_0x5cecc8['attrs']['id']+_0xcf1e1a[_0x3a4cc9(0x19c)]}}:_0x5cecc8)}:_0xa39da8;}function _0x501319(){const _0x627ea6=_0x36a365;return Math[_0x627ea6(0x14f)]()[_0x627ea6(0x11e)](0x24)['substring'](0x2,0x8);}_0x2c7261[_0x36a365(0xf7)]=_0x36a365(0x153);const _0x790996={'tag':_0x36a365(0x120),'attrs':{'xmlns':_0x36a365(0x1ce),'fill':_0x36a365(0xf0),'viewBox':_0x36a365(0x1c4),'width':'1em','height':'1em'},'children':[{'tag':_0x36a365(0x1a4),'attrs':{'fill':'currentColor','d':_0x36a365(0xee)}},{'tag':_0x36a365(0x1a4),'attrs':{'fill':_0x36a365(0x14a),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x36a365(0x16f),'clipRule':_0x36a365(0x16f)}}]},_0x3bc5e6=_0x29551b[_0x36a365(0x190)](function(_0x5237ac,_0x5482bf){const _0x449a5b=_0x36a365;return _0x29551b[_0x449a5b(0x129)](_0x2c7261,Object[_0x449a5b(0x140)]({},_0x5237ac,{'id':'live-share-icon','ref':_0x5482bf,'icon':_0x790996}));});_0x3bc5e6['displayName']=_0x36a365(0x11a);class _0x18b732 extends _0x3cd3bb[_0x36a365(0x1a0)]{constructor(){const _0x77daa5=_0x36a365;super(...arguments),_0x5abcce(this,_0x77daa5(0x12f),new Set()),_0x5abcce(this,_0x77daa5(0x168),new Set());}['registerSharedOperation'](_0x32882c){const _0x4483b8=_0x36a365;return this[_0x4483b8(0x12f)][_0x4483b8(0x13d)](_0x32882c),_0x3cd3bb[_0x4483b8(0x1be)](()=>this[_0x4483b8(0x12f)]['delete'](_0x32882c));}['registerInitialStateReporter'](_0x3ab8e4){const _0x4a806a=_0x36a365;return this[_0x4a806a(0x168)][_0x4a806a(0x13d)](_0x3ab8e4),_0x3cd3bb['toDisposable'](()=>this[_0x4a806a(0x168)][_0x4a806a(0x10b)](_0x3ab8e4));}[_0x36a365(0xf2)](_0x1e46c5){const _0x1fc4c9=_0x36a365;return this[_0x1fc4c9(0x12f)][_0x1fc4c9(0x151)](_0x1e46c5);}[_0x36a365(0x15f)](_0xa7077f){const _0x2687fd=_0x36a365;return Array[_0x2687fd(0x16c)](this[_0x2687fd(0x168)])[_0x2687fd(0x1bd)](_0x484e46=>_0x484e46(_0xa7077f));}}var _0x5b837f=Object[_0x36a365(0x1cd)],_0xe9851c=(_0x5b1915,_0x43aef0,_0x18bfcd,_0x51de18)=>{for(var _0x430610=_0x51de18>0x1?void 0x0:_0x51de18?_0x5b837f(_0x43aef0,_0x18bfcd):_0x43aef0,_0x47ddc9=_0x5b1915['length']-0x1,_0x1bca34;_0x47ddc9>=0x0;_0x47ddc9--)(_0x1bca34=_0x5b1915[_0x47ddc9])&&(_0x430610=_0x1bca34(_0x430610)||_0x430610);return _0x430610;},_0x51da42=(_0x97ecb3,_0x35cbc6)=>(_0x6112f9,_0x4015a2)=>_0x35cbc6(_0x6112f9,_0x4015a2,_0x97ecb3);_0x491357[_0x36a365(0xf4)]=class extends _0x3cd3bb[_0x36a365(0x12d)]{constructor(_0x4e70f7,_0x1961d6,_0x31a690){const _0x2451c6=_0x36a365;super(),_0x5abcce(this,'_entities',new Map()),(this[_0x2451c6(0x167)]=_0x4e70f7,this[_0x2451c6(0x1af)]=_0x1961d6,this[_0x2451c6(0x162)]=_0x31a690,this[_0x2451c6(0x123)]());}async[_0x36a365(0x141)](_0x43e3ac){const _0x3478d7=_0x36a365;return this[_0x3478d7(0xfd)][_0x3478d7(0x151)](_0x43e3ac)||await this[_0x3478d7(0x1c7)](_0x43e3ac),this[_0x3478d7(0xfd)][_0x3478d7(0x10c)](_0x43e3ac);}['getLiveShareCoordinatorSync'](_0x27383d){const _0x116e48=_0x36a365;var _0x23d96d;return(_0x23d96d=this[_0x116e48(0xfd)][_0x116e48(0x10c)](_0x27383d))!=null?_0x23d96d:null;}[_0x36a365(0x123)](){const _0x49187a=_0x36a365;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x3cd3bb[_0x49187a(0xf3)]['UNIVER_SHEET'])['pipe'](_0x4f2afb['takeUntil'](this[_0x49187a(0xf1)]))[_0x49187a(0x18a)](async _0x1f37ff=>{const _0x5f1ad2=_0x49187a,_0x28eafe=_0x1f37ff['getUnitId']();this['_entities'][_0x5f1ad2(0x151)](_0x28eafe)||this[_0x5f1ad2(0x1c7)](_0x28eafe);}),this[_0x49187a(0x167)][_0x49187a(0x199)](_0x3cd3bb['UniverInstanceType']['UNIVER_SHEET'])[_0x49187a(0x1cf)](_0x4f2afb[_0x49187a(0x17d)](this['dispose$']))[_0x49187a(0x18a)](_0x1e93b5=>{const _0x22bc33=_0x49187a,_0x5821d6=_0x1e93b5[_0x22bc33(0x1a6)](),_0x4a8ccd=this[_0x22bc33(0xfd)]['get'](_0x5821d6);_0x4a8ccd==null||_0x4a8ccd[_0x22bc33(0x15e)]();});}async[_0x36a365(0x1c7)](_0x13acf1){const _0x304867=_0x36a365,_0x4a6e03=await this[_0x304867(0x162)][_0x304867(0x156)](_0x13acf1),_0x3f8226=this['_injector'][_0x304867(0x19e)](_0x491357['LiveShareCoordinator'],_0x13acf1,_0x4a6e03);return _0x3f8226['init'](),this[_0x304867(0xfd)][_0x304867(0x18b)](_0x13acf1,_0x3f8226),_0x3f8226;}},_0x491357[_0x36a365(0xf4)]=_0xe9851c([_0x51da42(0x0,_0x3cd3bb[_0x36a365(0x1aa)]),_0x51da42(0x1,_0x3cd3bb[_0x36a365(0xff)](_0x3cd3bb[_0x36a365(0xfb)])),_0x51da42(0x2,_0x3cd3bb[_0x36a365(0xff)](_0x3f3ef9[_0x36a365(0x13a)]))],_0x491357['LiveShareController']);var _0x3df07c=(_0x5ad58f=>(_0x5ad58f[_0x36a365(0x138)]='offline',_0x5ad58f[_0x36a365(0x135)]='idle',_0x5ad58f[_0x36a365(0x15a)]=_0x36a365(0xf5),_0x5ad58f[_0x36a365(0x17a)]=_0x36a365(0x193),_0x5ad58f['PRESENTING']='presenting',_0x5ad58f))(_0x3df07c||{});const _0x4de5d6=_0x36a365(0x11f),_0x5457f3=0xc8;_0x491357[_0x36a365(0x180)]=class extends _0x3cd3bb[_0x36a365(0x12d)]{constructor(_0x3ae48a,_0x154c2d,_0x3daef5,_0x3896b7,_0xee1013){const _0x105769=_0x36a365;super(),_0x5abcce(this,_0x105769(0x119),new _0xb17181['BehaviorSubject'](_0x105769(0x18c))),_0x5abcce(this,_0x105769(0x102),this[_0x105769(0x119)]['asObservable']()),_0x5abcce(this,_0x105769(0x123),!0x1),_0x5abcce(this,_0x105769(0x172),null),_0x5abcce(this,_0x105769(0x176),null),(this[_0x105769(0x1bf)]=_0x3ae48a,this[_0x105769(0x1b8)]=_0x154c2d,this['_configService']=_0x3daef5,this[_0x105769(0x1c3)]=_0x3896b7,this['_commandService']=_0xee1013);}get[_0x36a365(0x131)](){const _0x48d6c0=_0x36a365;return this[_0x48d6c0(0x119)]['getValue']();}[_0x36a365(0x15e)](){const _0x3a12c6=_0x36a365;var _0x5d6109;(_0x5d6109=this[_0x3a12c6(0x172)])==null||_0x5d6109['dispose'](),this[_0x3a12c6(0x119)][_0x3a12c6(0x1ab)](_0x3a12c6(0x18c)),this[_0x3a12c6(0x119)][_0x3a12c6(0x14d)]();}[_0x36a365(0x10d)](){const _0xd71700=_0x36a365;return this[_0xd71700(0x131)];}[_0x36a365(0x18e)](){const _0x18e200=_0x36a365;this[_0x18e200(0x123)]||(this[_0x18e200(0x123)]=!0x0,this[_0x18e200(0x1b8)]['sessionStatus$'][_0x18e200(0x1cf)](_0x4f2afb[_0x18e200(0x17d)](this[_0x18e200(0xf1)]))[_0x18e200(0x18a)](_0x44ffd8=>{const _0x49be6a=_0x18e200;switch(_0x44ffd8){case _0x3f3ef9[_0x49be6a(0x12c)]['OFFLINE']:this[_0x49be6a(0xf8)]();break;case _0x3f3ef9[_0x49be6a(0x12c)][_0x49be6a(0x12b)]:this[_0x49be6a(0x19d)]();break;}}),this[_0x18e200(0x1b8)][_0x18e200(0x11d)]['pipe'](_0x4f2afb[_0x18e200(0x17d)](this[_0x18e200(0xf1)]))[_0x18e200(0x18a)](_0x5971ec=>{const _0x542af9=_0x18e200,{eventID:_0x526d75}=_0x5971ec;switch(_0x526d75){case _0x470106[_0x542af9(0x19b)][_0x542af9(0x192)]:this[_0x542af9(0x14c)](_0x5971ec);break;case _0x470106[_0x542af9(0x19b)][_0x542af9(0x148)]:this[_0x542af9(0x160)](_0x5971ec);break;case _0x470106[_0x542af9(0x19b)][_0x542af9(0x17b)]:this[_0x542af9(0x152)]();break;case _0x470106[_0x542af9(0x19b)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x5971ec);break;}}));}[_0x36a365(0x157)](){const _0x505909=_0x36a365;this[_0x505909(0x1b8)]['send']({'eventID':_0x470106[_0x505909(0x19b)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x505909(0x1bf)],'userID':this[_0x505909(0x1b8)][_0x505909(0x1a3)]()}},this[_0x505909(0x1bf)]);}['stopPresenting'](){const _0x446196=_0x36a365;this[_0x446196(0x131)]===_0x446196(0x134)&&(this[_0x446196(0x119)][_0x446196(0x1ab)]('idle'),this[_0x446196(0x1b8)]['send']({'eventID':_0x470106[_0x446196(0x19b)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x446196(0x1bf)]}},this[_0x446196(0x1bf)]));}[_0x36a365(0xf6)](){const _0xfd5485=_0x36a365;this[_0xfd5485(0x131)]===_0xfd5485(0x193)&&(this['_status$'][_0xfd5485(0x1ab)]('following'),this[_0xfd5485(0x144)]());}[_0x36a365(0x1b6)](){const _0x4062be=_0x36a365;this[_0x4062be(0x131)]===_0x4062be(0xf5)&&this['_stopFollowing']();}['_handleNewHost'](_0x1804a9){const _0x156d3d=_0x36a365,{presenter:_0x3317a4}=_0x1804a9[_0x156d3d(0x184)],_0x37c5ab=this[_0x156d3d(0x1b8)][_0x156d3d(0x1a3)]();this[_0x156d3d(0x176)]=_0x3317a4,_0x3317a4===_0x37c5ab?(this[_0x156d3d(0x121)](),this[_0x156d3d(0x1bc)]()):this['_status']!==_0x156d3d(0x193)&&(this[_0x156d3d(0x14b)](),this[_0x156d3d(0x144)]());}[_0x36a365(0x115)](){const _0xc6c74=_0x36a365,_0x1eacd6={'eventID':_0x470106[_0xc6c74(0x19b)][_0xc6c74(0x1ad)]};this[_0xc6c74(0x1b8)][_0xc6c74(0x17f)](_0x1eacd6,this[_0xc6c74(0x1bf)]);}[_0x36a365(0x152)](){const _0x54c8a8=_0x36a365;this[_0x54c8a8(0x176)]=null,this[_0x54c8a8(0x131)]!==_0x54c8a8(0x134)&&this[_0x54c8a8(0x166)]();}['_handleNewChangeSets'](_0x50b2ee){const _0x5770bc=_0x36a365;if(this['_status']===_0x5770bc(0xf5)&&this[_0x5770bc(0x176)]===_0x50b2ee[_0x5770bc(0x184)][_0x5770bc(0x133)]){const _0x545722=_0x470106[_0x5770bc(0x136)](_0x50b2ee[_0x5770bc(0x184)])[_0x5770bc(0xef)]['reverse']()['find'](_0x6ed44d=>_0x6ed44d['id']===_0x103de8[_0x5770bc(0x19f)]['id']);if(_0x545722){const _0x273581=_0x545722[_0x5770bc(0x188)][_0x5770bc(0x15b)],_0x327320=_0x545722['params'][_0x5770bc(0x109)]['id'];setTimeout(()=>{const _0x48a24e=_0x5770bc;this['_commandService']['executeCommand'](_0x103de8[_0x48a24e(0x113)]['id'],{'unitId':_0x273581,'subUnitId':_0x327320},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x1b0da3=_0x36a365;this['_status$'][_0x1b0da3(0x1ab)](_0x1b0da3(0x134));const _0x22926a=new Map(),_0x492ced=this['_commandDisposable']=new _0x3cd3bb[(_0x1b0da3(0x159))]();_0x492ced[_0x1b0da3(0x13d)](_0x3cd3bb[_0x1b0da3(0x1be)](()=>{const _0x9845df=_0x1b0da3;_0x22926a[_0x9845df(0xf9)](_0x1eeea7=>_0x1eeea7[_0x9845df(0x14d)]()),_0x22926a['clear']();})),_0x492ced[_0x1b0da3(0x13d)](this[_0x1b0da3(0x1a7)]['onCommandExecuted'](_0x58d0c7=>{const _0x5e53e3=_0x1b0da3;var _0x2c7631;if(_0x58d0c7[_0x5e53e3(0x194)]!==_0x3cd3bb[_0x5e53e3(0x196)][_0x5e53e3(0x19a)]||!this[_0x5e53e3(0x1c3)]['shouldShareOperation'](_0x58d0c7['id']))return;const {id:_0x1a87a6}=_0x58d0c7;let _0x2ec9c4;_0x22926a[_0x5e53e3(0x151)](_0x1a87a6)?_0x2ec9c4=_0x22926a[_0x5e53e3(0x10c)](_0x1a87a6):(_0x2ec9c4=new _0xb17181['Subject'](),_0x22926a[_0x5e53e3(0x18b)](_0x1a87a6,_0x2ec9c4),_0x2ec9c4[_0x5e53e3(0x1cf)](_0x4f2afb['throttleTime']((_0x2c7631=this['_configService']['getConfig'](_0x4de5d6))!=null?_0x2c7631:_0x5457f3,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x8ab933=>{const _0x19b41f=_0x5e53e3;this[_0x19b41f(0x1b8)][_0x19b41f(0x17f)]({'eventID':_0x470106[_0x19b41f(0x19b)][_0x19b41f(0x148)],'data':{'unitID':this[_0x19b41f(0x1bf)],'operations':{[_0x8ab933['id']]:{'id':_0x8ab933['id'],'params':JSON[_0x19b41f(0x175)](_0x8ab933['params'])}}}},this['_unitID']);})),_0x2ec9c4['next'](_0x58d0c7);})),this['_liveShareService'][_0x1b0da3(0x15f)](this[_0x1b0da3(0x1bf)])['forEach'](_0x553b3d=>this[_0x1b0da3(0x1b8)][_0x1b0da3(0x17f)]({'eventID':_0x470106['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x553b3d['id']]:{'id':_0x553b3d['id'],'params':JSON['stringify'](_0x553b3d['params'])}}}},this[_0x1b0da3(0x1bf)]));}[_0x36a365(0x14b)](){const _0x2e0d45=_0x36a365;var _0x41fa55;this[_0x2e0d45(0x119)][_0x2e0d45(0x1ab)](_0x2e0d45(0x18c)),(_0x41fa55=this[_0x2e0d45(0x172)])==null||_0x41fa55[_0x2e0d45(0x15e)](),this[_0x2e0d45(0x172)]=null;}[_0x36a365(0x144)](){const _0x1af7d8=_0x36a365;var _0x210495;(_0x210495=this['_commandDisposable'])==null||_0x210495['dispose'](),this[_0x1af7d8(0x119)]['next'](_0x1af7d8(0xf5));}[_0x36a365(0x166)](){const _0x45ec7b=_0x36a365;var _0x15190c;this[_0x45ec7b(0x119)][_0x45ec7b(0x1ab)](_0x45ec7b(0x18c)),(_0x15190c=this[_0x45ec7b(0x172)])==null||_0x15190c[_0x45ec7b(0x15e)](),this[_0x45ec7b(0x172)]=null;}['_stopFollowing'](){const _0x5accaa=_0x36a365;var _0x2e3b14;this[_0x5accaa(0x119)][_0x5accaa(0x1ab)](_0x5accaa(0x193)),(_0x2e3b14=this[_0x5accaa(0x172)])==null||_0x2e3b14['dispose']();}[_0x36a365(0x160)](_0x3f140e){const _0x4f70cd=_0x36a365;if([_0x4f70cd(0x134),'not-following',_0x4f70cd(0x186)][_0x4f70cd(0x142)](this[_0x4f70cd(0x131)])||!_0x3f140e[_0x4f70cd(0x184)][_0x4f70cd(0x191)]||_0x3f140e[_0x4f70cd(0x184)][_0x4f70cd(0x191)]===this[_0x4f70cd(0x1b8)]['getMemberID']())return;this[_0x4f70cd(0x131)]===_0x4f70cd(0x18c)&&this[_0x4f70cd(0x144)]();const _0x525bc2=_0x3f140e[_0x4f70cd(0x184)][_0x4f70cd(0x174)];Object[_0x4f70cd(0x104)](_0x525bc2)['forEach'](_0x5b083f=>{const _0x46bb14=_0x4f70cd;this[_0x46bb14(0x1a7)]['executeCommand'](_0x5b083f['id'],_0x5b083f[_0x46bb14(0x188)]?JSON[_0x46bb14(0x171)](_0x5b083f[_0x46bb14(0x188)]):null,{'fromCollab':!0x0});});}[_0x36a365(0xf8)](){const _0x5d9fbb=_0x36a365;var _0x2e1ba1;this[_0x5d9fbb(0x119)][_0x5d9fbb(0x1ab)](_0x5d9fbb(0x186)),(_0x2e1ba1=this[_0x5d9fbb(0x172)])==null||_0x2e1ba1['dispose']();}[_0x36a365(0x19d)](){const _0x2f0779=_0x36a365;this[_0x2f0779(0x119)][_0x2f0779(0x1ab)]('idle'),this['_fetchOperations']();}},_0x491357[_0x36a365(0x180)]=_0xe9851c([_0x51da42(0x2,_0x3cd3bb[_0x36a365(0x1b7)]),_0x51da42(0x3,_0x3cd3bb[_0x36a365(0xff)](_0x18b732)),_0x51da42(0x4,_0x3cd3bb[_0x36a365(0x1b3)])],_0x491357['LiveShareCoordinator']);function _0x2ea681(){const _0x467b8b=_0x36a365,_0xb886c5=_0x672739['useDependency'](_0x491357[_0x467b8b(0xf4)]),_0x454f7d=_0x672739[_0x467b8b(0x118)](_0x3cd3bb[_0x467b8b(0x1aa)]),_0x309003=_0x672739['useObservable'](()=>_0x454f7d[_0x467b8b(0x187)](_0x3cd3bb[_0x467b8b(0xf3)][_0x467b8b(0x13e)]),void 0x0,!0x1,[]),[_0x156559,_0x3d4952]=_0x29551b[_0x467b8b(0x182)](null),[_0xe1a51b,_0x257e7e]=_0x29551b['useState'](_0x3df07c[_0x467b8b(0x135)]),_0x2a0830=_0x29551b[_0x467b8b(0x181)](null);return _0x29551b[_0x467b8b(0x198)](()=>(_0x309003&&_0xb886c5[_0x467b8b(0x141)](_0x309003[_0x467b8b(0x1a6)]())[_0x467b8b(0x164)](_0x4b989d=>{const _0x46d4e5=_0x467b8b;_0x3d4952(_0x4b989d),_0x2a0830[_0x46d4e5(0x145)]=_0x4b989d[_0x46d4e5(0x102)]['subscribe'](_0x786c59=>{_0x257e7e(_0x786c59);});}),()=>{const _0x163108=_0x467b8b;var _0x43c0bd;(_0x43c0bd=_0x2a0830[_0x163108(0x145)])==null||_0x43c0bd['unsubscribe'](),_0x2a0830[_0x163108(0x145)]=null;}),[_0x309003,_0xb886c5]),_0x156559?_0x164c98[_0x467b8b(0x14e)](_0x29f95a[_0x467b8b(0x17c)],{'align':'end','disabled':_0xe1a51b===_0x3df07c[_0x467b8b(0x138)],'className':_0x467b8b(0x18f),'overlay':_0x164c98['jsx'](_0x25883b,{'status':_0xe1a51b,'coordinator':_0x156559}),'children':_0x164c98[_0x467b8b(0x14e)]('button',{'className':_0x29f95a['clsx'](_0x467b8b(0x114),{'univer-cursor-not-allowed':_0xe1a51b===_0x3df07c[_0x467b8b(0x138)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xe1a51b!==_0x3df07c[_0x467b8b(0x138)]}),'type':_0x467b8b(0x1a2),'children':_0x164c98[_0x467b8b(0x14e)](_0x3bc5e6,{'className':_0x467b8b(0x101)})})}):null;}function _0x25883b(_0x283d9a){const _0x433a0a=_0x36a365,{status:_0x2e960a,coordinator:_0x3c9e62}=_0x283d9a;switch(_0x2e960a){case _0x3df07c[_0x433a0a(0x135)]:return _0x164c98[_0x433a0a(0x14e)](_0x2e699c,{'coordinator':_0x3c9e62});case _0x3df07c[_0x433a0a(0x15a)]:return _0x164c98['jsx'](_0xf279b1,{'coordinator':_0x3c9e62});case _0x3df07c[_0x433a0a(0x17a)]:return _0x164c98[_0x433a0a(0x14e)](_0x585135,{'coordinator':_0x3c9e62});case _0x3df07c['OFFLINE']:return _0x164c98[_0x433a0a(0x14e)](_0x237e8e,{});case _0x3df07c[_0x433a0a(0x189)]:return _0x164c98[_0x433a0a(0x14e)](_0x18f485,{'coordinator':_0x3c9e62});default:return null;}}function _0x2e699c(_0x58143d){const _0x5a32a1=_0x36a365,{coordinator:_0x2f0364}=_0x58143d;return _0x164c98[_0x5a32a1(0x197)](_0x164c98['Fragment'],{'children':[_0x164c98[_0x5a32a1(0x14e)](_0x5a32a1(0x12a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5a32a1(0x111)}),_0x164c98[_0x5a32a1(0x14e)](_0x29f95a['Button'],{'onClick':()=>_0x2f0364[_0x5a32a1(0x157)](),'children':'Start'})]});}function _0xf279b1(_0x41f3e4){const _0x56080d=_0x36a365,{coordinator:_0x5ee280}=_0x41f3e4;return _0x164c98[_0x56080d(0x197)](_0x164c98[_0x56080d(0x195)],{'children':[_0x164c98[_0x56080d(0x14e)](_0x56080d(0x12a),{'className':_0x56080d(0x1ac),'children':_0x56080d(0x127)}),_0x164c98[_0x56080d(0x14e)](_0x29f95a['Button'],{'onClick':()=>_0x5ee280[_0x56080d(0x1b6)](),'children':'Stop\x20following'})]});}function _0x585135(_0x8de4ab){const _0x4f3437=_0x36a365,{coordinator:_0x268243}=_0x8de4ab;return _0x164c98[_0x4f3437(0x197)](_0x164c98[_0x4f3437(0x195)],{'children':[_0x164c98['jsx'](_0x4f3437(0x12a),{'className':_0x4f3437(0x1ac),'children':_0x4f3437(0xfe)}),_0x164c98['jsx'](_0x29f95a['Button'],{'variant':'text','onClick':()=>_0x268243[_0x4f3437(0xf6)](),'children':_0x4f3437(0x154)})]});}function _0x18f485(_0x42792a){const _0x42631e=_0x36a365,{coordinator:_0x5f2e9a}=_0x42792a;return _0x164c98[_0x42631e(0x197)](_0x164c98['Fragment'],{'children':[_0x164c98[_0x42631e(0x14e)](_0x42631e(0x12a),{'className':_0x42631e(0x1ac),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x164c98['jsx'](_0x29f95a['Button'],{'variant':_0x42631e(0x165),'onClick':()=>_0x5f2e9a['stopPresenting'](),'children':'Stop\x20presenting'})]});}function _0x237e8e(){const _0x2d85a9=_0x36a365;return _0x164c98[_0x2d85a9(0x14e)](_0x164c98[_0x2d85a9(0x195)],{'children':'You\x27are\x20offline.'});}var _0xcc146=Object[_0x36a365(0x1cd)],_0x225f4e=(_0x3d4020,_0x5b7b2c,_0x17fdd2,_0x354cac)=>{const _0xabc629=_0x36a365;for(var _0x134029=_0x354cac>0x1?void 0x0:_0x354cac?_0xcc146(_0x5b7b2c,_0x17fdd2):_0x5b7b2c,_0x24661a=_0x3d4020[_0xabc629(0x117)]-0x1,_0x2be5b6;_0x24661a>=0x0;_0x24661a--)(_0x2be5b6=_0x3d4020[_0x24661a])&&(_0x134029=_0x2be5b6(_0x134029)||_0x134029);return _0x134029;},_0x2d0621=(_0x9ae30b,_0x522add)=>(_0x309222,_0x5b72d3)=>_0x522add(_0x309222,_0x5b72d3,_0x9ae30b);_0x491357[_0x36a365(0x1cc)]=class extends _0x3cd3bb[_0x36a365(0x1a0)]{constructor(_0xbdd968,_0xb37d8a){const _0x44d3f2=_0x36a365;super(),this[_0x44d3f2(0x1af)]=_0xbdd968,this[_0x44d3f2(0x12e)]=_0xb37d8a,this['_mountLiveShare']();}[_0x36a365(0x1b5)](){const _0x576c09=_0x36a365;this[_0x576c09(0x125)](this[_0x576c09(0x12e)][_0x576c09(0x128)](_0x672739['BuiltInUIPart'][_0x576c09(0x110)],()=>_0x672739[_0x576c09(0x1b4)](_0x2ea681,this[_0x576c09(0x1af)])));}},_0x491357[_0x36a365(0x1cc)]=_0x225f4e([_0x2d0621(0x0,_0x3cd3bb[_0x36a365(0xff)](_0x3cd3bb[_0x36a365(0xfb)])),_0x2d0621(0x1,_0x672739['IUIPartsService'])],_0x491357[_0x36a365(0x1cc)]);const _0x113052='live-share.config',_0x513162={};var _0x2e44b3=Object[_0x36a365(0x1cd)],_0xb50faa=(_0x55f961,_0x3e12f8,_0x114dad,_0x1323fa)=>{const _0x21a235=_0x36a365;for(var _0x2f4ecb=_0x1323fa>0x1?void 0x0:_0x1323fa?_0x2e44b3(_0x3e12f8,_0x114dad):_0x3e12f8,_0x2767dd=_0x55f961[_0x21a235(0x117)]-0x1,_0x51ce4d;_0x2767dd>=0x0;_0x2767dd--)(_0x51ce4d=_0x55f961[_0x2767dd])&&(_0x2f4ecb=_0x51ce4d(_0x2f4ecb)||_0x2f4ecb);return _0x2f4ecb;},_0xe4a308=(_0xb58d0f,_0x522bf4)=>(_0x2fdcf4,_0x257e87)=>_0x522bf4(_0x2fdcf4,_0x257e87,_0xb58d0f);let _0x4ffbd9=class extends _0x3cd3bb[_0x36a365(0x1a0)]{constructor(_0x4ca743){const _0xbb66fa=_0x36a365;super(),this[_0xbb66fa(0x1c3)]=_0x4ca743,this['_init']();}[_0x36a365(0x123)](){const _0x42ad04=_0x36a365;[_0x405304[_0x42ad04(0x13c)]['id'],_0x405304[_0x42ad04(0x146)]['id'],_0x103de8[_0x42ad04(0x113)]['id']]['forEach'](_0x29fb41=>{const _0x46cf32=_0x42ad04;this[_0x46cf32(0x125)](this['_liveShareService'][_0x46cf32(0x16b)](_0x29fb41));});}};_0x4ffbd9=_0xb50faa([_0xe4a308(0x0,_0x3cd3bb[_0x36a365(0xff)](_0x18b732))],_0x4ffbd9);var _0x38145c=Object[_0x36a365(0x130)],_0x54e80a=Object[_0x36a365(0x1cd)],_0x1c1cff=(_0x8137b2,_0x34e2b8,_0x3db8bf)=>_0x34e2b8 in _0x8137b2?_0x38145c(_0x8137b2,_0x34e2b8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3db8bf}):_0x8137b2[_0x34e2b8]=_0x3db8bf,_0x4b6478=(_0x75f138,_0x224f53,_0x1da574,_0x7ea292)=>{const _0x51e164=_0x36a365;for(var _0x38d983=_0x7ea292>0x1?void 0x0:_0x7ea292?_0x54e80a(_0x224f53,_0x1da574):_0x224f53,_0x3ce49f=_0x75f138[_0x51e164(0x117)]-0x1,_0x984f87;_0x3ce49f>=0x0;_0x3ce49f--)(_0x984f87=_0x75f138[_0x3ce49f])&&(_0x38d983=_0x984f87(_0x38d983)||_0x38d983);return _0x38d983;},_0x3df10e=(_0x1fbee1,_0xef1bf2)=>(_0x4da6bd,_0x2e2596)=>_0xef1bf2(_0x4da6bd,_0x2e2596,_0x1fbee1),_0x1e8743=(_0x3c4514,_0x11a72d,_0x4889cd)=>_0x1c1cff(_0x3c4514,typeof _0x11a72d!=_0x36a365(0x158)?_0x11a72d+'':_0x11a72d,_0x4889cd);const _0x36851a=_0x36a365(0x150);_0x491357[_0x36a365(0x1ba)]=class extends _0x3cd3bb[_0x36a365(0x139)]{constructor(_0x4a6b27=_0x513162,_0x2d16d9,_0x145abd){const _0x25d5b8=_0x36a365;super(),this[_0x25d5b8(0x173)]=_0x4a6b27,this[_0x25d5b8(0x1af)]=_0x2d16d9,this[_0x25d5b8(0x112)]=_0x145abd;const {..._0x52d8a7}=_0x3cd3bb[_0x25d5b8(0x149)]({},_0x513162,this[_0x25d5b8(0x173)]);this['_configService'][_0x25d5b8(0x185)](_0x113052,_0x52d8a7);}[_0x36a365(0xfa)](){const _0x9bf4cd=_0x36a365;_0x3cd3bb[_0x9bf4cd(0x169)](this[_0x9bf4cd(0x1af)],_0x3cd3bb[_0x9bf4cd(0x137)]([[_0x18b732],[_0x491357[_0x9bf4cd(0xf4)]],[_0x4ffbd9],[_0x491357[_0x9bf4cd(0x1cc)]]],this['_config'][_0x9bf4cd(0x177)])),_0x3cd3bb[_0x9bf4cd(0x1c2)](this['_injector'],[[_0x4ffbd9]]);}[_0x36a365(0x179)](){const _0x3c33ae=_0x36a365;_0x3cd3bb[_0x3c33ae(0x1c2)](this[_0x3c33ae(0x1af)],[[_0x491357['DesktopLiveShareController']]]);}},_0x1e8743(_0x491357[_0x36a365(0x1ba)],'type',_0x3cd3bb[_0x36a365(0xf3)][_0x36a365(0x18d)]),_0x1e8743(_0x491357['UniverLiveSharePlugin'],_0x36a365(0x1a9),_0x36851a),_0x491357['UniverLiveSharePlugin']=_0x4b6478([_0x3cd3bb[_0x36a365(0x1b9)](_0x3f3ef9['UniverCollaborationClientPlugin']),_0x3df10e(0x1,_0x3cd3bb[_0x36a365(0xff)](_0x3cd3bb[_0x36a365(0xfb)])),_0x3df10e(0x2,_0x3cd3bb[_0x36a365(0x1b7)])],_0x491357[_0x36a365(0x1ba)]),_0x491357[_0x36a365(0x1b1)]=_0x2ea681,_0x491357[_0x36a365(0x1c9)]=_0x18b732,_0x491357['LiveShareStatus']=_0x3df07c,Object[_0x36a365(0x130)](_0x491357,Symbol[_0x36a365(0x178)],{'value':'Module'});}));function _0x50e4(_0x4db43a,_0x1dfd64){_0x4db43a=_0x4db43a-0xed;const _0x25fbd1=_0x25fb();let _0x50e4e5=_0x25fbd1[_0x4db43a];return _0x50e4e5;}function _0x25fb(){const _0x5abef2=['evenodd','@univerjs/sheets-ui','parse','_commandDisposable','_config','operations','stringify','_presenter','override','toStringTag','onRendered','NOT_FOLLOWING','LIVESHARE_TERMINATE','Dropdown','takeUntil','defIds','send','LiveShareCoordinator','useRef','useState','fill','data','setConfig','offline','getCurrentTypeOfUnit$','params','PRESENTING','subscribe','set','idle','UNIVER_UNKNOWN','init','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','forwardRef','presenter','LIVESHARE_NEW_HOST','not-following','type','Fragment','CommandType','jsxs','useEffect','getTypeOfUnitDisposed$','OPERATION','CollaborationEvent','idSuffix','_handleOnline','createInstance','InsertSheetMutation','Disposable','5574ExEgkB','button','getMemberID','path','1516ZYTPdW','getUnitId','_commandService','trim','pluginName','IUniverInstanceService','next','univer-mb-3\x20univer-w-full\x20univer-text-sm','LIVESHARE_FETCH_OPERATIONS','attrs','_injector','UniverProLiveShare','LiveShare','colorChannel1','ICommandService','connectInjector','_mountLiveShare','stopFollowing','IConfigService','_collabSession','DependentOn','UniverLiveSharePlugin','@univerjs/sheets','_startPresenting','map','toDisposable','_unitID','UniverDesign','object','touchDependencies','_liveShareService','0\x200\x2017\x2017','22sPRvtz','@univerjs-pro/collaboration-client','_startLiveShareCoordinator','children','LiveShareService','mask','UniverProCollaborationClient','DesktopLiveShareController','getOwnPropertyDescriptor','http://www.w3.org/2000/svg','pipe','operators','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','mutations','none','dispose$','shouldShareOperation','UniverInstanceType','LiveShareController','following','startFollowing','displayName','_handleOffline','forEach','onStarting','Injector','use','_entities','You\x27re\x20not\x20following\x20the\x20presenter','Inject','replace','univer-size-4','status$','React','values','entries','@univerjs/ui','41589xHqfkZ','26651leLUlM','sheet','UniverSheets','delete','get','getStatus','UniverUi','exports','HEADER_MENU','Present\x20this\x20document','_configService','SetWorksheetActiveOperation','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_fetchOperations','rxjs','length','useDependency','_status$','LiveShareIcon','6423jsXNvm','@univerjs/core','event$','toString','SAME_OPERATION_SHARE_INTERVAL','svg','_stopFollowing','rxjs/operators','_init','@univerjs-pro/collaboration','disposeWithMe','11893980TkhqwN','You\x27re\x20following\x20the\x20presenter','registerComponent','createElement','div','ONLINE','SessionStatus','RxDisposable','_uiPartsService','_sharedOperations','defineProperty','_status','UniverProCollaboration','memberID','presenting','IDLE','parseProtocolChangeset','mergeOverrideWithDependencies','OFFLINE','Plugin','CollaborationSessionService','url(#$1','SetZoomRatioOperation','add','UNIVER_SHEET','1832TrCYPw','assign','getLiveShareCoordinator','includes','9429trzwPA','_startFollowing','current','SetScrollOperation','react','LIVESHARE_OPERATION','merge','currentColor','_stopPresenting','_handleNewHost','complete','jsx','random','UNIVER_LIVE_SHARE_PLUGIN','has','_handleTerminate','UniverIcon','Start\x20following','tag','requireSession','tryStartPresenting','symbol','DisposableCollection','FOLLOWING','unitId','UniverCore','function','dispose','getInitialStates','_handleOperation','1864995WGBKbF','_collabSessionService','string','then','default','_beIdle','_univerInstanceService','_reporters','registerDependencies','defs','registerSharedOperation','from','xlink:href','12318174mkJrMs'];_0x25fb=function(){return _0x5abef2;};return _0x25fb();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.15.0-insiders.
|
|
3
|
+
"version": "0.15.0-insiders.20260107-3441c7a",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^1.1.0",
|
|
60
|
-
"@univerjs-pro/collaboration": "0.15.0-insiders.
|
|
61
|
-
"@univerjs-pro/collaboration-client": "0.15.0-insiders.
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/sheets
|
|
67
|
-
"@univerjs/ui": "0.15.0-insiders.
|
|
60
|
+
"@univerjs-pro/collaboration": "0.15.0-insiders.20260107-3441c7a",
|
|
61
|
+
"@univerjs-pro/collaboration-client": "0.15.0-insiders.20260107-3441c7a",
|
|
62
|
+
"@univerjs/design": "0.15.0-insiders.20260107-3441c7a",
|
|
63
|
+
"@univerjs/engine-render": "0.15.0-insiders.20260107-3441c7a",
|
|
64
|
+
"@univerjs/core": "0.15.0-insiders.20260107-3441c7a",
|
|
65
|
+
"@univerjs/sheets-ui": "0.15.0-insiders.20260107-3441c7a",
|
|
66
|
+
"@univerjs/sheets": "0.15.0-insiders.20260107-3441c7a",
|
|
67
|
+
"@univerjs/ui": "0.15.0-insiders.20260107-3441c7a"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"typescript": "^5.9.3",
|
|
75
75
|
"vite": "^7.3.0",
|
|
76
76
|
"vitest": "^4.0.16",
|
|
77
|
-
"@univerjs
|
|
78
|
-
"@univerjs/
|
|
77
|
+
"@univerjs/protocol": "0.1.48",
|
|
78
|
+
"@univerjs-infra/shared": "0.15.0"
|
|
79
79
|
},
|
|
80
80
|
"scripts": {
|
|
81
81
|
"test": "vitest run",
|