@univerjs-pro/live-share 0.15.0-insiders.20260107-3d1cfdf → 0.15.0-insiders.20260108-7b9120d

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 CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x5ce0e1=_0x28b5;(function(_0x45623f,_0x34432e){const _0x5a5c0c=_0x28b5,_0x5457bd=_0x45623f();while(!![]){try{const _0x437028=-parseInt(_0x5a5c0c(0x9b))/0x1+parseInt(_0x5a5c0c(0xb7))/0x2+-parseInt(_0x5a5c0c(0xa2))/0x3*(parseInt(_0x5a5c0c(0xb1))/0x4)+parseInt(_0x5a5c0c(0xad))/0x5+-parseInt(_0x5a5c0c(0xa7))/0x6*(parseInt(_0x5a5c0c(0x9c))/0x7)+-parseInt(_0x5a5c0c(0xa0))/0x8*(-parseInt(_0x5a5c0c(0xba))/0x9)+parseInt(_0x5a5c0c(0xaf))/0xa;if(_0x437028===_0x34432e)break;else _0x5457bd['push'](_0x5457bd['shift']());}catch(_0x252b13){_0x5457bd['push'](_0x5457bd['shift']());}}}(_0x3298,0xb0f60));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[_0x5ce0e1(0x9e)]{[_0x5ce0e1(0xb2)](_0x2e6c0d,_0x11dfe4,_0x42a5c5,_0x213480,_0x2d399c){const _0x2bb76c=_0x5ce0e1,_0x8355a0=_0x2e6c0d[_0x2bb76c(0xab)](n[_0x2bb76c(0x98)]),_0x3e4f07=_0x2e6c0d['get'](g[_0x2bb76c(0x97)]),_0x47e9ff=_0x11dfe4['getUnitId'](),_0x67bd81=_0x11dfe4[_0x2bb76c(0x96)](),_0x54380d=_0x8355a0[_0x2bb76c(0x95)](_0x47e9ff);(_0x54380d==null?void 0x0:_0x54380d['getStatus']())!==n[_0x2bb76c(0xbd)][_0x2bb76c(0xa1)]||(_0x42a5c5['getSheetId']()!==_0x67bd81['getSheetId']()&&this['_commandService'][_0x2bb76c(0xa3)](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x47e9ff,'subUnitId':_0x42a5c5[_0x2bb76c(0xb5)]()}),!_0x3e4f07['getRenderById'](_0x47e9ff))||_0x2d399c[_0x2bb76c(0xaa)](f[_0x2bb76c(0xbe)]['id'],{'unitId':_0x11dfe4[_0x2bb76c(0xb8)](),'sheetId':_0x42a5c5[_0x2bb76c(0xb5)](),'sheetViewStartRow':_0x213480[_0x2bb76c(0xa6)],'sheetViewStartColumn':_0x213480[_0x2bb76c(0xa4)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}function _0x28b5(_0x385e13,_0x44ebbe){_0x385e13=_0x385e13-0x94;const _0x3298e4=_0x3298();let _0x28b520=_0x3298e4[_0x385e13];return _0x28b520;}d[_0x5ce0e1(0x9e)][_0x5ce0e1(0x99)](w);class C extends a[_0x5ce0e1(0xac)]{[_0x5ce0e1(0xbc)](){const _0x57d0eb=_0x5ce0e1;var _0x267ad5,_0x20ee65;const _0x178210=this['_injector'][_0x57d0eb(0xab)](n[_0x57d0eb(0x98)]),_0x55e786=(_0x267ad5=this[_0x57d0eb(0xb3)]())==null?void 0x0:_0x267ad5[_0x57d0eb(0xbb)]();if(!_0x55e786)throw new Error(_0x57d0eb(0xb4));const _0xcd31c3=_0x178210[_0x57d0eb(0x95)](_0x55e786);return(_0x20ee65=_0xcd31c3==null?void 0x0:_0xcd31c3[_0x57d0eb(0xa8)]())!=null?_0x20ee65:n[_0x57d0eb(0xbd)][_0x57d0eb(0xb0)];}['startFollowing'](){const _0x2449e4=_0x5ce0e1;var _0x3ee8b4;const _0xf11da=this['_injector'][_0x2449e4(0xab)](n[_0x2449e4(0x98)]),_0x9cdc58=(_0x3ee8b4=this[_0x2449e4(0xb3)]())==null?void 0x0:_0x3ee8b4[_0x2449e4(0xbb)]();if(!_0x9cdc58)throw new Error(_0x2449e4(0xb4));const _0xa64449=_0xf11da[_0x2449e4(0x95)](_0x9cdc58);if(!_0xa64449)throw new Error(_0x2449e4(0xb6));_0xa64449[_0x2449e4(0x9d)]();}['stopFollowing'](){const _0x145a07=_0x5ce0e1;var _0x3633d0;const _0x2a279d=this[_0x145a07(0xb9)][_0x145a07(0xab)](n[_0x145a07(0x98)]),_0x861817=(_0x3633d0=this[_0x145a07(0xb3)]())==null?void 0x0:_0x3633d0[_0x145a07(0xbb)]();if(!_0x861817)throw new Error(_0x145a07(0xb4));const _0x261622=_0x2a279d[_0x145a07(0x95)](_0x861817);if(!_0x261622)throw new Error(_0x145a07(0xb6));_0x261622[_0x145a07(0x94)]();}[_0x5ce0e1(0xa9)](){const _0x37afd2=_0x5ce0e1;var _0x3e29fc;const _0x460c4a=this[_0x37afd2(0xb9)][_0x37afd2(0xab)](n[_0x37afd2(0x98)]),_0x3c2b10=(_0x3e29fc=this[_0x37afd2(0xb3)]())==null?void 0x0:_0x3e29fc[_0x37afd2(0xbb)]();if(!_0x3c2b10)throw new Error(_0x37afd2(0xb4));const _0x59d942=_0x460c4a[_0x37afd2(0x95)](_0x3c2b10);if(!_0x59d942)throw new Error(_0x37afd2(0xb6));_0x59d942[_0x37afd2(0xae)]();}[_0x5ce0e1(0x9f)](){const _0x4a9a2d=_0x5ce0e1;var _0x30632e;const _0x404416=this[_0x4a9a2d(0xb9)]['get'](n[_0x4a9a2d(0x98)]),_0x349433=(_0x30632e=this['getActiveWorkbook']())==null?void 0x0:_0x30632e[_0x4a9a2d(0xbb)]();if(!_0x349433)throw new Error(_0x4a9a2d(0xb4));const _0x47ce5e=_0x404416[_0x4a9a2d(0x95)](_0x349433);if(!_0x47ce5e)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x47ce5e['stopPresenting']();}}a[_0x5ce0e1(0xac)][_0x5ce0e1(0x99)](C);class L extends a[_0x5ce0e1(0xa5)]{get[_0x5ce0e1(0x9a)](){const _0x5d99f8=_0x5ce0e1;return n[_0x5d99f8(0xbd)];}}a['FEnum']['extend'](L);function _0x3298(){const _0x3bb4b7=['stopPresenting','268928BIcXQW','PRESENTING','177CNkAVG','executeCommand','startColumn','FEnum','startRow','42tNWEdq','getStatus','startPresenting','syncExecuteCommand','get','FUniver','4032420UuHGSn','tryStartPresenting','1656010hRhAqB','IDLE','50824aanann','_initialize','getActiveWorkbook','No\x20active\x20workbook\x20found.','getSheetId','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','2471542tNbVET','getUnitId','_injector','207wYEfVD','getId','getLiveShareStatus','LiveShareStatus','SetScrollOperation','stopFollowing','getLiveShareCoordinatorSync','getActiveSheet','IRenderManagerService','LiveShareController','extend','LiveShareStatusEnum','1185539fFXNvD','320999EaWzQq','startFollowing','FRange'];_0x3298=function(){return _0x3bb4b7;};return _0x3298();}
1
+ 'use strict';const _0x467f89=_0x5c56;(function(_0x426e4e,_0x58b762){const _0x6f4d67=_0x5c56,_0xc49177=_0x426e4e();while(!![]){try{const _0x4d4c10=-parseInt(_0x6f4d67(0x15c))/0x1+-parseInt(_0x6f4d67(0x136))/0x2+parseInt(_0x6f4d67(0x13d))/0x3*(parseInt(_0x6f4d67(0x13f))/0x4)+-parseInt(_0x6f4d67(0x15b))/0x5+-parseInt(_0x6f4d67(0x146))/0x6*(-parseInt(_0x6f4d67(0x14c))/0x7)+-parseInt(_0x6f4d67(0x14f))/0x8*(parseInt(_0x6f4d67(0x139))/0x9)+-parseInt(_0x6f4d67(0x15e))/0xa*(-parseInt(_0x6f4d67(0x142))/0xb);if(_0x4d4c10===_0x58b762)break;else _0xc49177['push'](_0xc49177['shift']());}catch(_0x52f322){_0xc49177['push'](_0xc49177['shift']());}}}(_0x1505,0x5fdd9));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[_0x467f89(0x150)]{[_0x467f89(0x145)](_0x15c5dc,_0x2a4703,_0x22b4b7,_0xef336f,_0x561daf){const _0x379e17=_0x467f89,_0xbcf927=_0x15c5dc[_0x379e17(0x13a)](n[_0x379e17(0x148)]),_0x4c8949=_0x15c5dc[_0x379e17(0x13a)](g[_0x379e17(0x15a)]),_0x52e9ba=_0x2a4703['getUnitId'](),_0x34542e=_0x2a4703[_0x379e17(0x13b)](),_0x5b8519=_0xbcf927['getLiveShareCoordinatorSync'](_0x52e9ba);(_0x5b8519==null?void 0x0:_0x5b8519[_0x379e17(0x14d)]())!==n[_0x379e17(0x160)]['PRESENTING']||(_0x22b4b7[_0x379e17(0x154)]()!==_0x34542e[_0x379e17(0x154)]()&&this[_0x379e17(0x144)][_0x379e17(0x147)](u[_0x379e17(0x149)]['id'],{'unitId':_0x52e9ba,'subUnitId':_0x22b4b7['getSheetId']()}),!_0x4c8949[_0x379e17(0x14a)](_0x52e9ba))||_0x561daf[_0x379e17(0x14b)](f[_0x379e17(0x137)]['id'],{'unitId':_0x2a4703['getUnitId'](),'sheetId':_0x22b4b7[_0x379e17(0x154)](),'sheetViewStartRow':_0xef336f[_0x379e17(0x143)],'sheetViewStartColumn':_0xef336f[_0x379e17(0x152)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x467f89(0x150)][_0x467f89(0x15d)](w);class C extends a[_0x467f89(0x135)]{[_0x467f89(0x14e)](){const _0x493a92=_0x467f89;var _0x1e933e,_0x463337;const _0x1615aa=this[_0x493a92(0x156)][_0x493a92(0x13a)](n[_0x493a92(0x148)]),_0x10d262=(_0x1e933e=this[_0x493a92(0x15f)]())==null?void 0x0:_0x1e933e['getId']();if(!_0x10d262)throw new Error(_0x493a92(0x159));const _0x4dc0b9=_0x1615aa[_0x493a92(0x13c)](_0x10d262);return(_0x463337=_0x4dc0b9==null?void 0x0:_0x4dc0b9[_0x493a92(0x14d)]())!=null?_0x463337:n[_0x493a92(0x160)][_0x493a92(0x13e)];}[_0x467f89(0x155)](){const _0x5286cf=_0x467f89;var _0x12bcac;const _0x3c1544=this['_injector'][_0x5286cf(0x13a)](n[_0x5286cf(0x148)]),_0x3ba57c=(_0x12bcac=this[_0x5286cf(0x15f)]())==null?void 0x0:_0x12bcac['getId']();if(!_0x3ba57c)throw new Error('No\x20active\x20workbook\x20found.');const _0x2c4bb4=_0x3c1544[_0x5286cf(0x13c)](_0x3ba57c);if(!_0x2c4bb4)throw new Error(_0x5286cf(0x151));_0x2c4bb4[_0x5286cf(0x155)]();}[_0x467f89(0x140)](){const _0x5376ec=_0x467f89;var _0xecaac4;const _0x1f2d0a=this[_0x5376ec(0x156)][_0x5376ec(0x13a)](n[_0x5376ec(0x148)]),_0x4b27e5=(_0xecaac4=this[_0x5376ec(0x15f)]())==null?void 0x0:_0xecaac4[_0x5376ec(0x138)]();if(!_0x4b27e5)throw new Error(_0x5376ec(0x159));const _0x43a912=_0x1f2d0a[_0x5376ec(0x13c)](_0x4b27e5);if(!_0x43a912)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x43a912[_0x5376ec(0x140)]();}[_0x467f89(0x158)](){const _0x121a73=_0x467f89;var _0x125486;const _0x34fda0=this['_injector']['get'](n[_0x121a73(0x148)]),_0x4003c2=(_0x125486=this[_0x121a73(0x15f)]())==null?void 0x0:_0x125486[_0x121a73(0x138)]();if(!_0x4003c2)throw new Error(_0x121a73(0x159));const _0x5d10a5=_0x34fda0['getLiveShareCoordinatorSync'](_0x4003c2);if(!_0x5d10a5)throw new Error(_0x121a73(0x151));_0x5d10a5['tryStartPresenting']();}[_0x467f89(0x157)](){const _0x108d43=_0x467f89;var _0x59c9d3;const _0x31c63c=this[_0x108d43(0x156)][_0x108d43(0x13a)](n[_0x108d43(0x148)]),_0x32cd9b=(_0x59c9d3=this[_0x108d43(0x15f)]())==null?void 0x0:_0x59c9d3[_0x108d43(0x138)]();if(!_0x32cd9b)throw new Error(_0x108d43(0x159));const _0xb4999d=_0x31c63c[_0x108d43(0x13c)](_0x32cd9b);if(!_0xb4999d)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xb4999d[_0x108d43(0x157)]();}}a[_0x467f89(0x135)][_0x467f89(0x15d)](C);function _0x5c56(_0x438679,_0x18f27d){_0x438679=_0x438679-0x135;const _0x1505fc=_0x1505();let _0x5c56ed=_0x1505fc[_0x438679];return _0x5c56ed;}class L extends a[_0x467f89(0x153)]{get[_0x467f89(0x141)](){const _0xcad41=_0x467f89;return n[_0xcad41(0x160)];}}a['FEnum'][_0x467f89(0x15d)](L);function _0x1505(){const _0x56ffb6=['syncExecuteCommand','1128323Jfegiy','getStatus','getLiveShareStatus','916536kmDnsc','FRange','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','startColumn','FEnum','getSheetId','startFollowing','_injector','stopPresenting','startPresenting','No\x20active\x20workbook\x20found.','IRenderManagerService','2859230IDxZaq','373664JRHAZs','extend','10eAuyJw','getActiveWorkbook','LiveShareStatus','FUniver','839044dIuVmA','SetScrollOperation','getId','9ZfafJi','get','getActiveSheet','getLiveShareCoordinatorSync','6knkvxz','IDLE','342688jnPYwq','stopFollowing','LiveShareStatusEnum','16937041OrYdne','startRow','_commandService','_initialize','6LyMzgN','executeCommand','LiveShareController','SetWorksheetActiveOperation','getRenderById'];_0x1505=function(){return _0x56ffb6;};return _0x1505();}
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x5ebda9=_0x108d;(function(_0x3fda51,_0xdbbd56){const _0x4d02ba=_0x108d,_0x586fed=_0x3fda51();while(!![]){try{const _0xc2e1c6=parseInt(_0x4d02ba(0x12e))/0x1+parseInt(_0x4d02ba(0x14f))/0x2+parseInt(_0x4d02ba(0xf2))/0x3*(parseInt(_0x4d02ba(0xf7))/0x4)+-parseInt(_0x4d02ba(0xe7))/0x5*(parseInt(_0x4d02ba(0x131))/0x6)+-parseInt(_0x4d02ba(0x165))/0x7+-parseInt(_0x4d02ba(0x153))/0x8*(-parseInt(_0x4d02ba(0x14e))/0x9)+-parseInt(_0x4d02ba(0x106))/0xa*(parseInt(_0x4d02ba(0x10f))/0xb);if(_0xc2e1c6===_0xdbbd56)break;else _0x586fed['push'](_0x586fed['shift']());}catch(_0x19f6e2){_0x586fed['push'](_0x586fed['shift']());}}}(_0x47d9,0x52706));var T=Object[_0x5ebda9(0x100)],U=(_0x22a205,_0x21b735,_0x732931)=>_0x21b735 in _0x22a205?T(_0x22a205,_0x21b735,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x732931}):_0x22a205[_0x21b735]=_0x732931,_=(_0xe46a60,_0x3fe54e,_0x749b5)=>U(_0xe46a60,typeof _0x3fe54e!=_0x5ebda9(0x179)?_0x3fe54e+'':_0x3fe54e,_0x749b5);Object[_0x5ebda9(0x100)](exports,Symbol['toStringTag'],{'value':_0x5ebda9(0xd9)});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:_0x313096,..._0x3e31f6}){const _0x340b83=_0x5ebda9,{icon:_0xc7d88d,id:_0x5edb09,className:_0x497256,extend:_0x1b93ba,..._0x28f671}=_0x3e31f6,_0x40ac2b=(_0x340b83(0x133)+_0x5edb09+'\x20'+(_0x497256||''))['trim'](),_0x2ae2a6=v['useRef']('_'+H());return j(_0xc7d88d,''+_0x5edb09,{'defIds':_0xc7d88d['defIds'],'idSuffix':_0x2ae2a6[_0x340b83(0x10e)]},{'ref':_0x313096,'className':_0x40ac2b,..._0x28f671},_0x1b93ba);}function j(_0x2fc3d4,_0x4dffa4,_0x177438,_0xe5320a,_0xd2567e){const _0x452543=_0x5ebda9;return v[_0x452543(0xe0)](_0x2fc3d4[_0x452543(0x17c)],{'key':_0x4dffa4,...y(_0x2fc3d4,_0x177438,_0xd2567e),..._0xe5320a},(F(_0x2fc3d4,_0x177438)['children']||[])[_0x452543(0x152)]((_0x1231ce,_0x1b2f6c)=>j(_0x1231ce,_0x4dffa4+'-'+_0x2fc3d4[_0x452543(0x17c)]+'-'+_0x1b2f6c,_0x177438,void 0x0,_0xd2567e)));}function y(_0x33bef4,_0xbe4d32,_0x40cb7f){const _0x2feb1b=_0x5ebda9,_0x487a7d={..._0x33bef4['attrs']};_0x40cb7f!=null&&_0x40cb7f[_0x2feb1b(0x11e)]&&_0x487a7d[_0x2feb1b(0xc8)]===_0x2feb1b(0x11e)&&(_0x487a7d[_0x2feb1b(0xc8)]=_0x40cb7f[_0x2feb1b(0x11e)]),_0x33bef4[_0x2feb1b(0x17c)]===_0x2feb1b(0xf0)&&_0x487a7d['id']&&(_0x487a7d['id']=_0x487a7d['id']+_0xbe4d32['idSuffix']),Object[_0x2feb1b(0x138)](_0x487a7d)['forEach'](([_0x56fc13,_0x1c89bf])=>{const _0x2f7b2b=_0x2feb1b;_0x56fc13===_0x2f7b2b(0xf0)&&typeof _0x1c89bf==_0x2f7b2b(0xcc)&&(_0x487a7d[_0x56fc13]=_0x1c89bf[_0x2f7b2b(0x122)](/url\(#(.*)\)/,_0x2f7b2b(0x11b)+_0xbe4d32['idSuffix']+')'));});const {defIds:_0x2fd0c9}=_0xbe4d32;return!_0x2fd0c9||_0x2fd0c9[_0x2feb1b(0x196)]===0x0||(_0x33bef4[_0x2feb1b(0x17c)]===_0x2feb1b(0x109)&&_0x487a7d[_0x2feb1b(0x173)]&&(_0x487a7d['xlink:href']=_0x487a7d[_0x2feb1b(0x173)]+_0xbe4d32[_0x2feb1b(0x183)]),Object[_0x2feb1b(0x138)](_0x487a7d)[_0x2feb1b(0xeb)](([_0x3c01de,_0x5462a3])=>{const _0x4c16cc=_0x2feb1b;typeof _0x5462a3==_0x4c16cc(0xcc)&&(_0x487a7d[_0x3c01de]=_0x5462a3[_0x4c16cc(0x122)](/url\(#(.*)\)/,'url(#$1'+_0xbe4d32[_0x4c16cc(0x183)]+')'));})),_0x487a7d;}function F(_0x3e52ef,_0x58a2f8){const _0x59dd00=_0x5ebda9;var _0x5e9bd4;const {defIds:_0x258491}=_0x58a2f8;return!_0x258491||_0x258491[_0x59dd00(0x196)]===0x0?_0x3e52ef:_0x3e52ef['tag']===_0x59dd00(0x127)&&((_0x5e9bd4=_0x3e52ef[_0x59dd00(0x191)])!=null&&_0x5e9bd4[_0x59dd00(0x196)])?{..._0x3e52ef,'children':_0x3e52ef[_0x59dd00(0x191)][_0x59dd00(0x152)](_0x4d3d70=>typeof _0x4d3d70[_0x59dd00(0xe1)]['id']==_0x59dd00(0xcc)&&_0x258491&&_0x258491['includes'](_0x4d3d70['attrs']['id'])?{..._0x4d3d70,'attrs':{..._0x4d3d70[_0x59dd00(0xe1)],'id':_0x4d3d70[_0x59dd00(0xe1)]['id']+_0x58a2f8[_0x59dd00(0x183)]}}:_0x4d3d70)}:_0x3e52ef;}function H(){const _0x4e76b5=_0x5ebda9;return Math[_0x4e76b5(0x124)]()[_0x4e76b5(0x166)](0x24)[_0x4e76b5(0x13f)](0x2,0x8);}x['displayName']='UniverIcon';const V={'tag':'svg','attrs':{'xmlns':_0x5ebda9(0x129),'fill':'none','viewBox':_0x5ebda9(0x17f),'width':_0x5ebda9(0xea),'height':_0x5ebda9(0xea)},'children':[{'tag':_0x5ebda9(0xf6),'attrs':{'fill':'currentColor','d':_0x5ebda9(0x13e)}},{'tag':_0x5ebda9(0xf6),'attrs':{'fill':'currentColor','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':_0x5ebda9(0x13b),'clipRule':'evenodd'}}]},R=v['forwardRef'](function(_0x19699c,_0x5a49b8){const _0x7f8259=_0x5ebda9;return v[_0x7f8259(0xe0)](x,Object['assign']({},_0x19699c,{'id':_0x7f8259(0x15c),'ref':_0x5a49b8,'icon':V}));});R['displayName']=_0x5ebda9(0x12c);class E extends o['Disposable']{constructor(){const _0x2a4d79=_0x5ebda9;super(...arguments),_(this,_0x2a4d79(0xd4),new Set()),_(this,_0x2a4d79(0x128),new Set());}[_0x5ebda9(0x11a)](_0x5c37f6){const _0x5442dc=_0x5ebda9;return this[_0x5442dc(0xd4)][_0x5442dc(0x154)](_0x5c37f6),o[_0x5442dc(0xfd)](()=>this[_0x5442dc(0xd4)][_0x5442dc(0xed)](_0x5c37f6));}[_0x5ebda9(0x189)](_0x4f651f){const _0x5df325=_0x5ebda9;return this[_0x5df325(0x128)][_0x5df325(0x154)](_0x4f651f),o[_0x5df325(0xfd)](()=>this[_0x5df325(0x128)]['delete'](_0x4f651f));}[_0x5ebda9(0xdc)](_0x475cb3){const _0x566cbc=_0x5ebda9;return this['_sharedOperations'][_0x566cbc(0x15f)](_0x475cb3);}[_0x5ebda9(0x105)](_0x1e7c98){const _0x39143d=_0x5ebda9;return Array[_0x39143d(0xec)](this['_reporters'])[_0x39143d(0x152)](_0x190684=>_0x190684(_0x1e7c98));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x440c5b,_0x56961a,_0x53a6b8,_0x5a344f)=>{for(var _0x1e2475=_0x5a344f>0x1?void 0x0:_0x5a344f?M(_0x56961a,_0x53a6b8):_0x56961a,_0x1388b8=_0x440c5b['length']-0x1,_0x4961a1;_0x1388b8>=0x0;_0x1388b8--)(_0x4961a1=_0x440c5b[_0x1388b8])&&(_0x1e2475=_0x4961a1(_0x1e2475)||_0x1e2475);return _0x1e2475;},S=(_0x2e5be5,_0xca9822)=>(_0x4e18e4,_0x42f762)=>_0xca9822(_0x4e18e4,_0x42f762,_0x2e5be5);exports[_0x5ebda9(0xf8)]=class extends o[_0x5ebda9(0xfc)]{constructor(_0xe43374,_0x2163bf,_0x5be6c2){const _0xc3af71=_0x5ebda9;super(),_(this,_0xc3af71(0x108),new Map()),(this[_0xc3af71(0x142)]=_0xe43374,this[_0xc3af71(0x113)]=_0x2163bf,this['_collabSessionService']=_0x5be6c2,this[_0xc3af71(0xf1)]());}async[_0x5ebda9(0x112)](_0xf7a880){const _0x45fe66=_0x5ebda9;return this[_0x45fe66(0x108)]['has'](_0xf7a880)||await this[_0x45fe66(0xdf)](_0xf7a880),this[_0x45fe66(0x108)][_0x45fe66(0x102)](_0xf7a880);}[_0x5ebda9(0x117)](_0x439978){const _0x4ceeb0=_0x5ebda9;var _0x1cf5f5;return(_0x1cf5f5=this[_0x4ceeb0(0x108)][_0x4ceeb0(0x102)](_0x439978))!=null?_0x1cf5f5:null;}[_0x5ebda9(0xf1)](){const _0x28ba1e=_0x5ebda9;this['_univerInstanceService'][_0x28ba1e(0xe2)](o['UniverInstanceType'][_0x28ba1e(0x10c)])[_0x28ba1e(0x14d)](I['takeUntil'](this['dispose$']))[_0x28ba1e(0x172)](async _0x3d8e9f=>{const _0x502591=_0x28ba1e,_0x228429=_0x3d8e9f[_0x502591(0x140)]();this[_0x502591(0x108)][_0x502591(0x15f)](_0x228429)||this[_0x502591(0xdf)](_0x228429);}),this['_univerInstanceService'][_0x28ba1e(0xcd)](o['UniverInstanceType'][_0x28ba1e(0x10c)])[_0x28ba1e(0x14d)](I['takeUntil'](this['dispose$']))[_0x28ba1e(0x172)](_0x51f319=>{const _0x3b9aa0=_0x28ba1e,_0x218dbc=_0x51f319[_0x3b9aa0(0x140)](),_0x1c1012=this[_0x3b9aa0(0x108)][_0x3b9aa0(0x102)](_0x218dbc);_0x1c1012==null||_0x1c1012['dispose']();});}async[_0x5ebda9(0xdf)](_0x185b38){const _0x503618=_0x5ebda9,_0x3b6d4f=await this['_collabSessionService'][_0x503618(0x114)](_0x185b38),_0x558a20=this[_0x503618(0x113)][_0x503618(0x107)](exports[_0x503618(0x158)],_0x185b38,_0x3b6d4f);return _0x558a20[_0x503618(0x119)](),this[_0x503618(0x108)]['set'](_0x185b38,_0x558a20),_0x558a20;}},exports['LiveShareController']=P([S(0x0,o[_0x5ebda9(0x10b)]),S(0x1,o['Inject'](o[_0x5ebda9(0xef)])),S(0x2,o['Inject'](b[_0x5ebda9(0x144)]))],exports['LiveShareController']);var u=(_0x21a257=>(_0x21a257[_0x5ebda9(0x103)]=_0x5ebda9(0x101),_0x21a257[_0x5ebda9(0x16b)]=_0x5ebda9(0x136),_0x21a257[_0x5ebda9(0x178)]=_0x5ebda9(0xee),_0x21a257['NOT_FOLLOWING']=_0x5ebda9(0x155),_0x21a257[_0x5ebda9(0x10a)]=_0x5ebda9(0x141),_0x21a257))(u||{});const k=_0x5ebda9(0xd2),q=0xc8;exports[_0x5ebda9(0x158)]=class extends o[_0x5ebda9(0xfc)]{constructor(_0x501301,_0x574635,_0x38bff8,_0x3d6fa8,_0xc1a4c6){const _0x158df7=_0x5ebda9;super(),_(this,_0x158df7(0x18e),new O[(_0x158df7(0x145))](_0x158df7(0x136))),_(this,'status$',this[_0x158df7(0x18e)][_0x158df7(0x111)]()),_(this,_0x158df7(0xf1),!0x1),_(this,_0x158df7(0x104),null),_(this,'_presenter',null),(this[_0x158df7(0x125)]=_0x501301,this[_0x158df7(0x194)]=_0x574635,this['_configService']=_0x38bff8,this[_0x158df7(0xf4)]=_0x3d6fa8,this['_commandService']=_0xc1a4c6);}get[_0x5ebda9(0xff)](){const _0x58c2fe=_0x5ebda9;return this[_0x58c2fe(0x18e)][_0x58c2fe(0x13a)]();}['dispose'](){const _0x53c160=_0x5ebda9;var _0x135a9b;(_0x135a9b=this['_commandDisposable'])==null||_0x135a9b[_0x53c160(0x115)](),this[_0x53c160(0x18e)][_0x53c160(0x147)](_0x53c160(0x136)),this[_0x53c160(0x18e)][_0x53c160(0x195)]();}[_0x5ebda9(0x18c)](){const _0x3d8c0c=_0x5ebda9;return this[_0x3d8c0c(0xff)];}[_0x5ebda9(0x119)](){const _0x5bfccf=_0x5ebda9;this[_0x5bfccf(0xf1)]||(this[_0x5bfccf(0xf1)]=!0x0,this[_0x5bfccf(0x194)][_0x5bfccf(0xd5)][_0x5bfccf(0x14d)](I[_0x5bfccf(0x116)](this[_0x5bfccf(0xc4)]))[_0x5bfccf(0x172)](_0x49311a=>{const _0x440b5e=_0x5bfccf;switch(_0x49311a){case b[_0x440b5e(0xdb)][_0x440b5e(0x103)]:this['_handleOffline']();break;case b[_0x440b5e(0xdb)][_0x440b5e(0xe3)]:this[_0x440b5e(0xd7)]();break;}}),this[_0x5bfccf(0x194)][_0x5bfccf(0x18a)][_0x5bfccf(0x14d)](I[_0x5bfccf(0x116)](this[_0x5bfccf(0xc4)]))[_0x5bfccf(0x172)](_0x12ba78=>{const _0x37583a=_0x5bfccf,{eventID:_0x4c0e0b}=_0x12ba78;switch(_0x4c0e0b){case d[_0x37583a(0x190)]['LIVESHARE_NEW_HOST']:this[_0x37583a(0x177)](_0x12ba78);break;case d[_0x37583a(0x190)][_0x37583a(0xe6)]:this[_0x37583a(0xde)](_0x12ba78);break;case d[_0x37583a(0x190)][_0x37583a(0x12d)]:this[_0x37583a(0x156)]();break;case d[_0x37583a(0x190)][_0x37583a(0x146)]:this['_handleNewChangeSets'](_0x12ba78);break;}}));}[_0x5ebda9(0xc9)](){const _0x3fd5d1=_0x5ebda9;this[_0x3fd5d1(0x194)][_0x3fd5d1(0x175)]({'eventID':d['CollaborationEvent'][_0x3fd5d1(0x150)],'data':{'unitID':this[_0x3fd5d1(0x125)],'userID':this[_0x3fd5d1(0x194)][_0x3fd5d1(0x181)]()}},this[_0x3fd5d1(0x125)]);}['stopPresenting'](){const _0x39c143=_0x5ebda9;this[_0x39c143(0xff)]===_0x39c143(0x141)&&(this['_status$'][_0x39c143(0x147)](_0x39c143(0x136)),this[_0x39c143(0x194)][_0x39c143(0x175)]({'eventID':d[_0x39c143(0x190)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x39c143(0x125)]}},this[_0x39c143(0x125)]));}[_0x5ebda9(0xca)](){const _0x2541f7=_0x5ebda9;this['_status']==='not-following'&&(this[_0x2541f7(0x18e)][_0x2541f7(0x147)](_0x2541f7(0xee)),this[_0x2541f7(0x11f)]());}[_0x5ebda9(0xc3)](){this['_status']==='following'&&this['_stopFollowing']();}[_0x5ebda9(0x177)](_0x1ca3f4){const _0x110ae4=_0x5ebda9,{presenter:_0x17ff24}=_0x1ca3f4['data'],_0x555e0b=this['_collabSession'][_0x110ae4(0x181)]();this[_0x110ae4(0xfb)]=_0x17ff24,_0x17ff24===_0x555e0b?(this[_0x110ae4(0xfe)](),this[_0x110ae4(0x16e)]()):this[_0x110ae4(0xff)]!==_0x110ae4(0x155)&&(this[_0x110ae4(0x126)](),this[_0x110ae4(0x11f)]());}['_fetchOperations'](){const _0xc89bd4=_0x5ebda9,_0x10315f={'eventID':d[_0xc89bd4(0x190)][_0xc89bd4(0xdd)]};this['_collabSession'][_0xc89bd4(0x175)](_0x10315f,this[_0xc89bd4(0x125)]);}[_0x5ebda9(0x156)](){const _0x49288d=_0x5ebda9;this['_presenter']=null,this[_0x49288d(0xff)]!==_0x49288d(0x141)&&this[_0x49288d(0x192)]();}[_0x5ebda9(0x13c)](_0x3768c5){const _0x3dda2e=_0x5ebda9;if(this[_0x3dda2e(0xff)]===_0x3dda2e(0xee)&&this['_presenter']===_0x3768c5[_0x3dda2e(0x16d)][_0x3dda2e(0xd1)]){const _0x430a25=d[_0x3dda2e(0x149)](_0x3768c5['data'])['mutations'][_0x3dda2e(0xc7)]()[_0x3dda2e(0x16f)](_0xca7e3e=>_0xca7e3e['id']===C[_0x3dda2e(0x186)]['id']);if(_0x430a25){const _0x5b8db6=_0x430a25[_0x3dda2e(0x171)]['unitId'],_0xe662da=_0x430a25[_0x3dda2e(0x171)][_0x3dda2e(0x184)]['id'];setTimeout(()=>{const _0x4350d8=_0x3dda2e;this[_0x4350d8(0x18d)]['executeCommand'](C[_0x4350d8(0x17a)]['id'],{'unitId':_0x5b8db6,'subUnitId':_0xe662da},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x4263d8=_0x5ebda9;this[_0x4263d8(0x18e)]['next'](_0x4263d8(0x141));const _0x3e3840=new Map(),_0x289e6f=this[_0x4263d8(0x104)]=new o[(_0x4263d8(0xd0))]();_0x289e6f[_0x4263d8(0x154)](o[_0x4263d8(0xfd)](()=>{const _0x173a75=_0x4263d8;_0x3e3840[_0x173a75(0xeb)](_0x57b94d=>_0x57b94d[_0x173a75(0x195)]()),_0x3e3840['clear']();})),_0x289e6f[_0x4263d8(0x154)](this['_commandService'][_0x4263d8(0x132)](_0x1401d1=>{const _0x648c9a=_0x4263d8;var _0x5c716c;if(_0x1401d1[_0x648c9a(0x164)]!==o[_0x648c9a(0x15a)][_0x648c9a(0x151)]||!this[_0x648c9a(0xf4)][_0x648c9a(0xdc)](_0x1401d1['id']))return;const {id:_0x404581}=_0x1401d1;let _0x2a88b3;_0x3e3840[_0x648c9a(0x15f)](_0x404581)?_0x2a88b3=_0x3e3840['get'](_0x404581):(_0x2a88b3=new O[(_0x648c9a(0x180))](),_0x3e3840['set'](_0x404581,_0x2a88b3),_0x2a88b3[_0x648c9a(0x14d)](I[_0x648c9a(0x121)]((_0x5c716c=this['_configService'][_0x648c9a(0xf5)](k))!=null?_0x5c716c:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x24097c=>{const _0x5f35b9=_0x648c9a;this[_0x5f35b9(0x194)][_0x5f35b9(0x175)]({'eventID':d[_0x5f35b9(0x190)][_0x5f35b9(0xe6)],'data':{'unitID':this[_0x5f35b9(0x125)],'operations':{[_0x24097c['id']]:{'id':_0x24097c['id'],'params':JSON[_0x5f35b9(0x11c)](_0x24097c[_0x5f35b9(0x171)])}}}},this['_unitID']);})),_0x2a88b3[_0x648c9a(0x147)](_0x1401d1);})),this[_0x4263d8(0xf4)][_0x4263d8(0x105)](this[_0x4263d8(0x125)])[_0x4263d8(0xeb)](_0x1cdc3f=>this[_0x4263d8(0x194)][_0x4263d8(0x175)]({'eventID':d[_0x4263d8(0x190)][_0x4263d8(0xe6)],'data':{'unitID':this[_0x4263d8(0x125)],'operations':{[_0x1cdc3f['id']]:{'id':_0x1cdc3f['id'],'params':JSON['stringify'](_0x1cdc3f['params'])}}}},this[_0x4263d8(0x125)]));}['_stopPresenting'](){const _0x148f9e=_0x5ebda9;var _0x32c109;this[_0x148f9e(0x18e)][_0x148f9e(0x147)](_0x148f9e(0x136)),(_0x32c109=this[_0x148f9e(0x104)])==null||_0x32c109['dispose'](),this['_commandDisposable']=null;}[_0x5ebda9(0x11f)](){const _0xf33d0=_0x5ebda9;var _0x526cc9;(_0x526cc9=this['_commandDisposable'])==null||_0x526cc9[_0xf33d0(0x115)](),this[_0xf33d0(0x18e)][_0xf33d0(0x147)]('following');}[_0x5ebda9(0x192)](){const _0x4a3f8c=_0x5ebda9;var _0x20608c;this[_0x4a3f8c(0x18e)]['next'](_0x4a3f8c(0x136)),(_0x20608c=this[_0x4a3f8c(0x104)])==null||_0x20608c['dispose'](),this[_0x4a3f8c(0x104)]=null;}[_0x5ebda9(0xfe)](){const _0x21b1f2=_0x5ebda9;var _0x36979d;this[_0x21b1f2(0x18e)][_0x21b1f2(0x147)](_0x21b1f2(0x155)),(_0x36979d=this[_0x21b1f2(0x104)])==null||_0x36979d[_0x21b1f2(0x115)]();}[_0x5ebda9(0xde)](_0x2bc0e3){const _0x3be5e1=_0x5ebda9;if([_0x3be5e1(0x141),'not-following',_0x3be5e1(0x101)][_0x3be5e1(0x176)](this[_0x3be5e1(0xff)])||!_0x2bc0e3[_0x3be5e1(0x16d)][_0x3be5e1(0x148)]||_0x2bc0e3[_0x3be5e1(0x16d)][_0x3be5e1(0x148)]===this[_0x3be5e1(0x194)]['getMemberID']())return;this[_0x3be5e1(0xff)]===_0x3be5e1(0x136)&&this[_0x3be5e1(0x11f)]();const _0x63ec75=_0x2bc0e3[_0x3be5e1(0x16d)][_0x3be5e1(0xd3)];Object[_0x3be5e1(0x143)](_0x63ec75)[_0x3be5e1(0xeb)](_0x2618a6=>{const _0x5df6e4=_0x3be5e1;this[_0x5df6e4(0x18d)][_0x5df6e4(0xe5)](_0x2618a6['id'],_0x2618a6[_0x5df6e4(0x171)]?JSON['parse'](_0x2618a6[_0x5df6e4(0x171)]):null,{'fromCollab':!0x0});});}[_0x5ebda9(0x185)](){const _0xb79ab6=_0x5ebda9;var _0x1a2b34;this[_0xb79ab6(0x18e)]['next'](_0xb79ab6(0x101)),(_0x1a2b34=this['_commandDisposable'])==null||_0x1a2b34[_0xb79ab6(0x115)]();}[_0x5ebda9(0xd7)](){const _0x1b4dd2=_0x5ebda9;this[_0x1b4dd2(0x18e)][_0x1b4dd2(0x147)](_0x1b4dd2(0x136)),this[_0x1b4dd2(0x12b)]();}},exports['LiveShareCoordinator']=P([S(0x2,o[_0x5ebda9(0x14b)]),S(0x3,o[_0x5ebda9(0xcf)](E)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function _0x108d(_0x1f8f69,_0x23af53){_0x1f8f69=_0x1f8f69-0xc1;const _0x47d982=_0x47d9();let _0x108dbc=_0x47d982[_0x1f8f69];return _0x108dbc;}function $(){const _0x30a48c=_0x5ebda9,_0x9a2bfc=p['useDependency'](exports[_0x30a48c(0xf8)]),_0x1b1a72=p['useDependency'](o[_0x30a48c(0x10b)]),_0x43478b=p[_0x30a48c(0x17e)](()=>_0x1b1a72['getCurrentTypeOfUnit$'](o[_0x30a48c(0x110)][_0x30a48c(0x10c)]),void 0x0,!0x1,[]),[_0xa0c3b1,_0x38aee3]=v[_0x30a48c(0x123)](null),[_0xb6997d,_0x3540f3]=v[_0x30a48c(0x123)](u[_0x30a48c(0x16b)]),_0x2a5704=v[_0x30a48c(0x187)](null);return v[_0x30a48c(0x188)](()=>(_0x43478b&&_0x9a2bfc[_0x30a48c(0x112)](_0x43478b['getUnitId']())[_0x30a48c(0xcb)](_0x58fd12=>{const _0x3cd9de=_0x30a48c;_0x38aee3(_0x58fd12),_0x2a5704[_0x3cd9de(0x10e)]=_0x58fd12[_0x3cd9de(0xe4)][_0x3cd9de(0x172)](_0x15e06f=>{_0x3540f3(_0x15e06f);});}),()=>{const _0x51ef43=_0x30a48c;var _0x267af5;(_0x267af5=_0x2a5704['current'])==null||_0x267af5['unsubscribe'](),_0x2a5704[_0x51ef43(0x10e)]=null;}),[_0x43478b,_0x9a2bfc]),_0xa0c3b1?l['jsx'](f[_0x30a48c(0x167)],{'align':_0x30a48c(0x16a),'disabled':_0xb6997d===u[_0x30a48c(0x103)],'className':_0x30a48c(0x120),'overlay':l[_0x30a48c(0xf9)](W,{'status':_0xb6997d,'coordinator':_0xa0c3b1}),'children':l[_0x30a48c(0xf9)](_0x30a48c(0xfa),{'className':f[_0x30a48c(0x137)](_0x30a48c(0x13d),{'univer-cursor-not-allowed':_0xb6997d===u[_0x30a48c(0x103)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xb6997d!==u[_0x30a48c(0x103)]}),'type':_0x30a48c(0xfa),'children':l[_0x30a48c(0xf9)](R,{'className':_0x30a48c(0x17b)})})}):null;}function W(_0x59b992){const _0x25aea1=_0x5ebda9,{status:_0x429252,coordinator:_0x3e42e9}=_0x59b992;switch(_0x429252){case u['IDLE']:return l[_0x25aea1(0xf9)](G,{'coordinator':_0x3e42e9});case u[_0x25aea1(0x178)]:return l['jsx'](B,{'coordinator':_0x3e42e9});case u[_0x25aea1(0x134)]:return l[_0x25aea1(0xf9)](Y,{'coordinator':_0x3e42e9});case u[_0x25aea1(0x103)]:return l[_0x25aea1(0xf9)](J,{});case u['PRESENTING']:return l[_0x25aea1(0xf9)](Z,{'coordinator':_0x3e42e9});default:return null;}}function G(_0x16eb9a){const _0xe23b41=_0x5ebda9,{coordinator:_0x53cc16}=_0x16eb9a;return l[_0xe23b41(0xc6)](l['Fragment'],{'children':[l[_0xe23b41(0xf9)](_0xe23b41(0x160),{'className':_0xe23b41(0x174),'children':_0xe23b41(0x12f)}),l[_0xe23b41(0xf9)](f[_0xe23b41(0x18f)],{'onClick':()=>_0x53cc16['tryStartPresenting'](),'children':'Start'})]});}function B(_0x1c3645){const _0x53761a=_0x5ebda9,{coordinator:_0xd0af3b}=_0x1c3645;return l['jsxs'](l[_0x53761a(0x159)],{'children':[l['jsx'](_0x53761a(0x160),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x53761a(0x170)}),l['jsx'](f['Button'],{'onClick':()=>_0xd0af3b['stopFollowing'](),'children':'Stop\x20following'})]});}function Y(_0x373a4c){const _0x122be1=_0x5ebda9,{coordinator:_0x365efa}=_0x373a4c;return l[_0x122be1(0xc6)](l[_0x122be1(0x159)],{'children':[l[_0x122be1(0xf9)](_0x122be1(0x160),{'className':_0x122be1(0x174),'children':_0x122be1(0x161)}),l['jsx'](f[_0x122be1(0x18f)],{'variant':_0x122be1(0xd8),'onClick':()=>_0x365efa[_0x122be1(0xca)](),'children':_0x122be1(0xe8)})]});}function Z(_0x4159ae){const _0x1b7d89=_0x5ebda9,{coordinator:_0x5d7c87}=_0x4159ae;return l[_0x1b7d89(0xc6)](l[_0x1b7d89(0x159)],{'children':[l[_0x1b7d89(0xf9)](_0x1b7d89(0x160),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x1b7d89(0xf9)](f[_0x1b7d89(0x18f)],{'variant':'default','onClick':()=>_0x5d7c87['stopPresenting'](),'children':_0x1b7d89(0x135)})]});}function J(){const _0x4e267b=_0x5ebda9;return l[_0x4e267b(0xf9)](l['Fragment'],{'children':'You\x27are\x20offline.'});}var K=Object[_0x5ebda9(0x169)],z=(_0x55a8c0,_0x42104f,_0x239243,_0x393cd1)=>{const _0x349e1d=_0x5ebda9;for(var _0x4cf846=_0x393cd1>0x1?void 0x0:_0x393cd1?K(_0x42104f,_0x239243):_0x42104f,_0x39d3e7=_0x55a8c0[_0x349e1d(0x196)]-0x1,_0x32caaa;_0x39d3e7>=0x0;_0x39d3e7--)(_0x32caaa=_0x55a8c0[_0x39d3e7])&&(_0x4cf846=_0x32caaa(_0x4cf846)||_0x4cf846);return _0x4cf846;},L=(_0x11bb94,_0x385b59)=>(_0x4178ae,_0x1896ae)=>_0x385b59(_0x4178ae,_0x1896ae,_0x11bb94);exports[_0x5ebda9(0xce)]=class extends o['Disposable']{constructor(_0x5c48c6,_0x49cad2){const _0x14e9ca=_0x5ebda9;super(),this[_0x14e9ca(0x113)]=_0x5c48c6,this[_0x14e9ca(0x14c)]=_0x49cad2,this[_0x14e9ca(0xf3)]();}['_mountLiveShare'](){const _0x1cbd30=_0x5ebda9;this[_0x1cbd30(0xda)](this[_0x1cbd30(0x14c)][_0x1cbd30(0xe9)](p[_0x1cbd30(0x130)][_0x1cbd30(0x15e)],()=>p['connectInjector']($,this[_0x1cbd30(0x113)])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0x5ebda9(0xcf)](o[_0x5ebda9(0xef)])),L(0x1,p['IUIPartsService'])],exports[_0x5ebda9(0xce)]);const Q=_0x5ebda9(0xc5),w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x599362,_0x209ec2,_0x5f01bb,_0x3a1efe)=>{for(var _0x369065=_0x3a1efe>0x1?void 0x0:_0x3a1efe?X(_0x209ec2,_0x5f01bb):_0x209ec2,_0xd2033e=_0x599362['length']-0x1,_0x27ea81;_0xd2033e>=0x0;_0xd2033e--)(_0x27ea81=_0x599362[_0xd2033e])&&(_0x369065=_0x27ea81(_0x369065)||_0x369065);return _0x369065;},te=(_0x1c60f9,_0x85863a)=>(_0x2392a6,_0x4ae57e)=>_0x85863a(_0x2392a6,_0x4ae57e,_0x1c60f9);let m=class extends o[_0x5ebda9(0x15b)]{constructor(_0x1b67fb){const _0x14493b=_0x5ebda9;super(),this['_liveShareService']=_0x1b67fb,this[_0x14493b(0xf1)]();}[_0x5ebda9(0xf1)](){const _0x51fc7a=_0x5ebda9;[D[_0x51fc7a(0x157)]['id'],D[_0x51fc7a(0x15d)]['id'],C[_0x51fc7a(0x17a)]['id']][_0x51fc7a(0xeb)](_0x109914=>{const _0x3d64ab=_0x51fc7a;this[_0x3d64ab(0xda)](this[_0x3d64ab(0xf4)][_0x3d64ab(0x11a)](_0x109914));});}};m=ee([te(0x0,o[_0x5ebda9(0xcf)](E))],m);var ie=Object[_0x5ebda9(0x100)],se=Object[_0x5ebda9(0x169)],ne=(_0x4e6736,_0x468505,_0x17937b)=>_0x468505 in _0x4e6736?ie(_0x4e6736,_0x468505,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x17937b}):_0x4e6736[_0x468505]=_0x17937b,re=(_0x1a45f5,_0xa245de,_0x29d938,_0x27214a)=>{const _0x5cce3f=_0x5ebda9;for(var _0x4e16c4=_0x27214a>0x1?void 0x0:_0x27214a?se(_0xa245de,_0x29d938):_0xa245de,_0x2700f7=_0x1a45f5[_0x5cce3f(0x196)]-0x1,_0x4c2805;_0x2700f7>=0x0;_0x2700f7--)(_0x4c2805=_0x1a45f5[_0x2700f7])&&(_0x4e16c4=_0x4c2805(_0x4e16c4)||_0x4e16c4);return _0x4e16c4;},N=(_0x13542e,_0x1f61bd)=>(_0x3e1ceb,_0x4a11a8)=>_0x1f61bd(_0x3e1ceb,_0x4a11a8,_0x13542e),A=(_0x4dd5f6,_0x5d80bf,_0x12419b)=>ne(_0x4dd5f6,typeof _0x5d80bf!=_0x5ebda9(0x179)?_0x5d80bf+'':_0x5d80bf,_0x12419b);const oe=_0x5ebda9(0x17d);function _0x47d9(){const _0xe77b66=['params','subscribe','xlink:href','univer-mb-3\x20univer-w-full\x20univer-text-sm','send','includes','_handleNewHost','FOLLOWING','symbol','SetWorksheetActiveOperation','univer-size-4','tag','UNIVER_LIVE_SHARE_PLUGIN','useObservable','0\x200\x2017\x2017','Subject','getMemberID','_configService','idSuffix','sheet','_handleOffline','InsertSheetMutation','useRef','useEffect','registerInitialStateReporter','event$','pluginName','getStatus','_commandService','_status$','Button','CollaborationEvent','children','_beIdle','merge','_collabSession','complete','length','DependentOn','setConfig','stopFollowing','dispose$','live-share.config','jsxs','reverse','fill','tryStartPresenting','startFollowing','then','string','getTypeOfUnitDisposed$','DesktopLiveShareController','Inject','DisposableCollection','memberID','SAME_OPERATION_SHARE_INTERVAL','operations','_sharedOperations','sessionStatus$','UniverCollaborationClientPlugin','_handleOnline','text','Module','disposeWithMe','SessionStatus','shouldShareOperation','LIVESHARE_FETCH_OPERATIONS','_handleOperation','_startLiveShareCoordinator','createElement','attrs','getTypeOfUnitAdded$','ONLINE','status$','executeCommand','LIVESHARE_OPERATION','125cJvUnr','Start\x20following','registerComponent','1em','forEach','from','delete','following','Injector','mask','_init','3yEbKHL','_mountLiveShare','_liveShareService','getConfig','path','193220qGMQDH','LiveShareController','jsx','button','_presenter','RxDisposable','toDisposable','_stopFollowing','_status','defineProperty','offline','get','OFFLINE','_commandDisposable','getInitialStates','2360vEmbMR','createInstance','_entities','use','PRESENTING','IUniverInstanceService','UNIVER_SHEET','LiveShare','current','1034VRaVnr','UniverInstanceType','asObservable','getLiveShareCoordinator','_injector','requireSession','dispose','takeUntil','getLiveShareCoordinatorSync','Plugin','init','registerSharedOperation','url(#$1','stringify','onRendered','colorChannel1','_startFollowing','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','throttleTime','replace','useState','random','_unitID','_stopPresenting','defs','_reporters','http://www.w3.org/2000/svg','mergeOverrideWithDependencies','_fetchOperations','LiveShareIcon','LIVESHARE_TERMINATE','448169wfdIew','Present\x20this\x20document','BuiltInUIPart','141888IACMfg','onCommandExecuted','univerjs-icon\x20univerjs-icon-','NOT_FOLLOWING','Stop\x20presenting','idle','clsx','entries','LiveShareService','getValue','evenodd','_handleNewChangeSets','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','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','substring','getUnitId','presenting','_univerInstanceService','values','CollaborationSessionService','BehaviorSubject','NEW_CHANGESETS','next','presenter','parseProtocolChangeset','LiveShareStatus','IConfigService','_uiPartsService','pipe','3497652EKkdkH','636516wdLDMk','LIVESHARE_REQUEST_HOST','OPERATION','map','8sAHsWM','add','not-following','_handleTerminate','SetZoomRatioOperation','LiveShareCoordinator','Fragment','CommandType','Disposable','live-share-icon','SetScrollOperation','HEADER_MENU','has','div','You\x27re\x20not\x20following\x20the\x20presenter','_config','registerDependencies','type','1766142rOfkOQ','toString','Dropdown','UniverLiveSharePlugin','getOwnPropertyDescriptor','end','IDLE','touchDependencies','data','_startPresenting','find','You\x27re\x20following\x20the\x20presenter'];_0x47d9=function(){return _0xe77b66;};return _0x47d9();}exports[_0x5ebda9(0x168)]=class extends o[_0x5ebda9(0x118)]{constructor(_0xb5abe0=w,_0x3fdf6e,_0x30a4de){const _0xbecc53=_0x5ebda9;super(),this['_config']=_0xb5abe0,this['_injector']=_0x3fdf6e,this[_0xbecc53(0x182)]=_0x30a4de;const {..._0x5e7264}=o[_0xbecc53(0x193)]({},w,this['_config']);this['_configService'][_0xbecc53(0xc2)](Q,_0x5e7264);}['onStarting'](){const _0x32687f=_0x5ebda9;o[_0x32687f(0x163)](this[_0x32687f(0x113)],o[_0x32687f(0x12a)]([[E],[exports['LiveShareController']],[m],[exports[_0x32687f(0xce)]]],this[_0x32687f(0x162)]['override'])),o[_0x32687f(0x16c)](this[_0x32687f(0x113)],[[m]]);}[_0x5ebda9(0x11d)](){const _0x48e6ac=_0x5ebda9;o['touchDependencies'](this[_0x48e6ac(0x113)],[[exports['DesktopLiveShareController']]]);}},A(exports[_0x5ebda9(0x168)],'type',o[_0x5ebda9(0x110)]['UNIVER_UNKNOWN']),A(exports[_0x5ebda9(0x168)],_0x5ebda9(0x18b),oe),exports[_0x5ebda9(0x168)]=re([o[_0x5ebda9(0xc1)](b[_0x5ebda9(0xd6)]),N(0x1,o[_0x5ebda9(0xcf)](o[_0x5ebda9(0xef)])),N(0x2,o['IConfigService'])],exports[_0x5ebda9(0x168)]),exports[_0x5ebda9(0x10d)]=$,exports[_0x5ebda9(0x139)]=E,exports[_0x5ebda9(0x14a)]=u;
1
+ 'use strict';const _0x5e1818=_0x1030;(function(_0xe61586,_0xf78915){const _0x551cf7=_0x1030,_0x42c183=_0xe61586();while(!![]){try{const _0xfd61b1=parseInt(_0x551cf7(0x1c3))/0x1+parseInt(_0x551cf7(0x14e))/0x2+-parseInt(_0x551cf7(0x16b))/0x3*(parseInt(_0x551cf7(0x10c))/0x4)+-parseInt(_0x551cf7(0x17a))/0x5+parseInt(_0x551cf7(0x109))/0x6*(-parseInt(_0x551cf7(0x147))/0x7)+-parseInt(_0x551cf7(0x1c8))/0x8+parseInt(_0x551cf7(0x1a4))/0x9;if(_0xfd61b1===_0xf78915)break;else _0x42c183['push'](_0x42c183['shift']());}catch(_0x550817){_0x42c183['push'](_0x42c183['shift']());}}}(_0x5af7,0xbc442));function _0x5af7(){const _0x3c3569=['replace','3236756fwghrC','then','_startFollowing','symbol','univer-mb-3\x20univer-w-full\x20univer-text-sm','shouldShareOperation','UNIVER_LIVE_SHARE_PLUGIN','_config','sheet','_status','_univerInstanceService','forwardRef','not-following','You\x27are\x20offline.','UniverLiveSharePlugin','IUniverInstanceService','complete','PRESENTING','delete','HEADER_MENU','UniverInstanceType','Subject','Dropdown','takeUntil','from','params','_handleNewHost','IDLE','univer-size-4','getTypeOfUnitDisposed$','current','stringify','live-share.config','LiveShareService','_handleOnline','toDisposable','onCommandExecuted','DependentOn','stopPresenting','Module','disposeWithMe','override','_mountLiveShare','Stop\x20following','_reporters','getInitialStates','get','getLiveShareCoordinatorSync','executeCommand','LiveShareController','live-share-icon','_collabSessionService','includes','clsx','Inject','Stop\x20presenting','getStatus','sessionStatus$','_entities','84mxoNJk','text','getOwnPropertyDescriptor','Injector','_init','BehaviorSubject','CollaborationEvent','2437824SSCSLV','url(#$1','_status$','LIVESHARE_TERMINATE','dispose','tag','_handleTerminate','SessionStatus','SetZoomRatioOperation','operations','univerjs-icon\x20univerjs-icon-','Start\x20following','ICommandService','createInstance','_handleOperation','memberID','use','_commandDisposable','Start','setConfig','ONLINE','evenodd','touchDependencies','length','useEffect','string','_fetchOperations','_liveShareService','IConfigService','3hZmzFw','_sharedOperations','xlink:href','DisposableCollection','useState','0\x200\x2017\x2017','_unitID','defineProperty','stopFollowing','getUnitId','getMemberID','set','requireSession','merge','entries','1526890DSBYhd','_configService','data','DesktopLiveShareController','Button','presenter','OPERATION','send','_stopPresenting','1em','You\x27re\x20following\x20the\x20presenter','presenting','getValue','LiveShareCoordinator','add','unsubscribe','_handleNewChangeSets','toStringTag','asObservable','onStarting','div','following','_presenter','Disposable','connectInjector','CollaborationSessionService','registerDependencies','OFFLINE','jsx','displayName','status$','LIVESHARE_REQUEST_HOST','attrs','button','_collabSession','subscribe','onRendered','CommandType','_stopFollowing','startFollowing','default','find','19355571dJzghB','dispose$','none','createElement','registerInitialStateReporter','idle','defIds','UNIVER_UNKNOWN','getCurrentTypeOfUnit$','getLiveShareCoordinator','map','_handleOffline','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','defs','useObservable','LiveShareStatus','_uiPartsService','UniverIcon','_commandService','FOLLOWING','path','LIVESHARE_OPERATION','_injector','BuiltInUIPart','clear','pluginName','children','init','mask','jsxs','pipe','877461GXWEQb','Plugin','NOT_FOLLOWING','useRef','_startPresenting','12285208OLIWZt','registerComponent','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','getTypeOfUnitAdded$','tryStartPresenting','mergeOverrideWithDependencies','mutations','parseProtocolChangeset','forEach','offline','next','registerSharedOperation','LiveShareIcon','idSuffix','SetWorksheetActiveOperation','UNIVER_SHEET','_beIdle','Present\x20this\x20document','_startLiveShareCoordinator','type','RxDisposable','fill','assign','Fragment','412818wzuSVe','has'];_0x5af7=function(){return _0x3c3569;};return _0x5af7();}var T=Object[_0x5e1818(0x172)],U=(_0x5c2f3f,_0x1739a2,_0x1a8b0a)=>_0x1739a2 in _0x5c2f3f?T(_0x5c2f3f,_0x1739a2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a8b0a}):_0x5c2f3f[_0x1739a2]=_0x1a8b0a,_=(_0x33174b,_0x233082,_0x4c3c74)=>U(_0x33174b,typeof _0x233082!=_0x5e1818(0x10f)?_0x233082+'':_0x233082,_0x4c3c74);Object[_0x5e1818(0x172)](exports,Symbol[_0x5e1818(0x18b)],{'value':_0x5e1818(0x133)});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:_0x596c77,..._0x5438c7}){const _0x3a68d6=_0x5e1818,{icon:_0x19581d,id:_0x2c3402,className:_0x1e6553,extend:_0x14bf03,..._0x2f9c9a}=_0x5438c7,_0x18238e=(_0x3a68d6(0x158)+_0x2c3402+'\x20'+(_0x1e6553||''))['trim'](),_0x2ca2a8=v['useRef']('_'+H());return j(_0x19581d,''+_0x2c3402,{'defIds':_0x19581d[_0x3a68d6(0x1aa)],'idSuffix':_0x2ca2a8['current']},{'ref':_0x596c77,'className':_0x18238e,..._0x2f9c9a},_0x14bf03);}function j(_0x181d51,_0x31dc0b,_0x2428a2,_0x130ab1,_0x3cdebd){const _0x3327a0=_0x5e1818;return v[_0x3327a0(0x1a7)](_0x181d51[_0x3327a0(0x153)],{'key':_0x31dc0b,...y(_0x181d51,_0x2428a2,_0x3cdebd),..._0x130ab1},(F(_0x181d51,_0x2428a2)[_0x3327a0(0x1be)]||[])[_0x3327a0(0x1ae)]((_0x4bbee8,_0x373855)=>j(_0x4bbee8,_0x31dc0b+'-'+_0x181d51[_0x3327a0(0x153)]+'-'+_0x373855,_0x2428a2,void 0x0,_0x3cdebd)));}function y(_0x19ee73,_0x54930e,_0x45110c){const _0xe7303b=_0x5e1818,_0x1bf6af={..._0x19ee73['attrs']};_0x45110c!=null&&_0x45110c['colorChannel1']&&_0x1bf6af[_0xe7303b(0x106)]==='colorChannel1'&&(_0x1bf6af[_0xe7303b(0x106)]=_0x45110c['colorChannel1']),_0x19ee73[_0xe7303b(0x153)]===_0xe7303b(0x1c0)&&_0x1bf6af['id']&&(_0x1bf6af['id']=_0x1bf6af['id']+_0x54930e['idSuffix']),Object[_0xe7303b(0x179)](_0x1bf6af)['forEach'](([_0x42148d,_0x106aa9])=>{const _0x2861a1=_0xe7303b;_0x42148d===_0x2861a1(0x1c0)&&typeof _0x106aa9==_0x2861a1(0x167)&&(_0x1bf6af[_0x42148d]=_0x106aa9['replace'](/url\(#(.*)\)/,_0x2861a1(0x14f)+_0x54930e[_0x2861a1(0x1d5)]+')'));});const {defIds:_0x1c0e54}=_0x54930e;return!_0x1c0e54||_0x1c0e54['length']===0x0||(_0x19ee73[_0xe7303b(0x153)]===_0xe7303b(0x15e)&&_0x1bf6af['xlink:href']&&(_0x1bf6af[_0xe7303b(0x16d)]=_0x1bf6af[_0xe7303b(0x16d)]+_0x54930e['idSuffix']),Object[_0xe7303b(0x179)](_0x1bf6af)[_0xe7303b(0x1d0)](([_0x245c04,_0x110f0e])=>{const _0x24651a=_0xe7303b;typeof _0x110f0e=='string'&&(_0x1bf6af[_0x245c04]=_0x110f0e[_0x24651a(0x10b)](/url\(#(.*)\)/,_0x24651a(0x14f)+_0x54930e[_0x24651a(0x1d5)]+')'));})),_0x1bf6af;}function F(_0x1b096f,_0x408be6){const _0x28c8db=_0x5e1818;var _0x207b45;const {defIds:_0x7e1db1}=_0x408be6;return!_0x7e1db1||_0x7e1db1[_0x28c8db(0x165)]===0x0?_0x1b096f:_0x1b096f['tag']===_0x28c8db(0x1b1)&&((_0x207b45=_0x1b096f['children'])!=null&&_0x207b45[_0x28c8db(0x165)])?{..._0x1b096f,'children':_0x1b096f[_0x28c8db(0x1be)][_0x28c8db(0x1ae)](_0x3cfe1b=>typeof _0x3cfe1b[_0x28c8db(0x19a)]['id']==_0x28c8db(0x167)&&_0x7e1db1&&_0x7e1db1[_0x28c8db(0x140)](_0x3cfe1b['attrs']['id'])?{..._0x3cfe1b,'attrs':{..._0x3cfe1b['attrs'],'id':_0x3cfe1b['attrs']['id']+_0x408be6[_0x28c8db(0x1d5)]}}:_0x3cfe1b)}:_0x1b096f;}function H(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}x['displayName']=_0x5e1818(0x1b5);const V={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x5e1818(0x1a6),'viewBox':_0x5e1818(0x170),'width':_0x5e1818(0x183),'height':_0x5e1818(0x183)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x5e1818(0x1ca)}},{'tag':_0x5e1818(0x1b8),'attrs':{'fill':'currentColor','d':_0x5e1818(0x1b0),'fillRule':_0x5e1818(0x163),'clipRule':_0x5e1818(0x163)}}]},R=v[_0x5e1818(0x117)](function(_0x54a46a,_0x21d5a0){const _0x5b8ae5=_0x5e1818;return v[_0x5b8ae5(0x1a7)](x,Object[_0x5b8ae5(0x107)]({},_0x54a46a,{'id':_0x5b8ae5(0x13e),'ref':_0x21d5a0,'icon':V}));});R[_0x5e1818(0x197)]=_0x5e1818(0x1d4);class E extends o['Disposable']{constructor(){const _0x3bc10a=_0x5e1818;super(...arguments),_(this,'_sharedOperations',new Set()),_(this,_0x3bc10a(0x138),new Set());}[_0x5e1818(0x1d3)](_0x42f49f){const _0x11bd69=_0x5e1818;return this[_0x11bd69(0x16c)][_0x11bd69(0x188)](_0x42f49f),o[_0x11bd69(0x12f)](()=>this['_sharedOperations']['delete'](_0x42f49f));}[_0x5e1818(0x1a8)](_0x191acd){const _0x5f3194=_0x5e1818;return this[_0x5f3194(0x138)][_0x5f3194(0x188)](_0x191acd),o['toDisposable'](()=>this[_0x5f3194(0x138)][_0x5f3194(0x11e)](_0x191acd));}[_0x5e1818(0x111)](_0xf890a7){const _0x50b0ee=_0x5e1818;return this[_0x50b0ee(0x16c)][_0x50b0ee(0x10a)](_0xf890a7);}[_0x5e1818(0x139)](_0x44f7f2){const _0x20b849=_0x5e1818;return Array[_0x20b849(0x124)](this[_0x20b849(0x138)])[_0x20b849(0x1ae)](_0x4cd15e=>_0x4cd15e(_0x44f7f2));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x4dca53,_0x3d116b,_0x31479b,_0x2997c5)=>{const _0x11da34=_0x5e1818;for(var _0x58460b=_0x2997c5>0x1?void 0x0:_0x2997c5?M(_0x3d116b,_0x31479b):_0x3d116b,_0x95e9b2=_0x4dca53[_0x11da34(0x165)]-0x1,_0x3649fb;_0x95e9b2>=0x0;_0x95e9b2--)(_0x3649fb=_0x4dca53[_0x95e9b2])&&(_0x58460b=_0x3649fb(_0x58460b)||_0x58460b);return _0x58460b;},S=(_0x4a2b6c,_0x1fca89)=>(_0x376e69,_0xd971b5)=>_0x1fca89(_0x376e69,_0xd971b5,_0x4a2b6c);exports['LiveShareController']=class extends o[_0x5e1818(0x105)]{constructor(_0x160985,_0x1cbc16,_0x4f6ce9){const _0x148f19=_0x5e1818;super(),_(this,'_entities',new Map()),(this[_0x148f19(0x116)]=_0x160985,this['_injector']=_0x1cbc16,this[_0x148f19(0x13f)]=_0x4f6ce9,this[_0x148f19(0x14b)]());}async[_0x5e1818(0x1ad)](_0x6583ca){const _0x2749f4=_0x5e1818;return this[_0x2749f4(0x146)][_0x2749f4(0x10a)](_0x6583ca)||await this[_0x2749f4(0x1da)](_0x6583ca),this['_entities'][_0x2749f4(0x13a)](_0x6583ca);}[_0x5e1818(0x13b)](_0x3af223){var _0x518874;return(_0x518874=this['_entities']['get'](_0x3af223))!=null?_0x518874:null;}[_0x5e1818(0x14b)](){const _0x51c8e0=_0x5e1818;this[_0x51c8e0(0x116)][_0x51c8e0(0x1cb)](o['UniverInstanceType'][_0x51c8e0(0x1d7)])[_0x51c8e0(0x1c2)](I[_0x51c8e0(0x123)](this[_0x51c8e0(0x1a5)]))['subscribe'](async _0x4c2d68=>{const _0x1c222b=_0x51c8e0,_0x398e39=_0x4c2d68[_0x1c222b(0x174)]();this['_entities'][_0x1c222b(0x10a)](_0x398e39)||this[_0x1c222b(0x1da)](_0x398e39);}),this[_0x51c8e0(0x116)][_0x51c8e0(0x129)](o['UniverInstanceType'][_0x51c8e0(0x1d7)])[_0x51c8e0(0x1c2)](I[_0x51c8e0(0x123)](this['dispose$']))[_0x51c8e0(0x19d)](_0x24efae=>{const _0x23d7f1=_0x51c8e0,_0xe0ee1d=_0x24efae[_0x23d7f1(0x174)](),_0x17fcaf=this['_entities'][_0x23d7f1(0x13a)](_0xe0ee1d);_0x17fcaf==null||_0x17fcaf[_0x23d7f1(0x152)]();});}async['_startLiveShareCoordinator'](_0x769508){const _0x21451e=_0x5e1818,_0x3a0cdf=await this[_0x21451e(0x13f)][_0x21451e(0x177)](_0x769508),_0x333dc7=this[_0x21451e(0x1ba)][_0x21451e(0x15b)](exports[_0x21451e(0x187)],_0x769508,_0x3a0cdf);return _0x333dc7['init'](),this[_0x21451e(0x146)][_0x21451e(0x176)](_0x769508,_0x333dc7),_0x333dc7;}},exports[_0x5e1818(0x13d)]=P([S(0x0,o[_0x5e1818(0x11b)]),S(0x1,o[_0x5e1818(0x142)](o['Injector'])),S(0x2,o[_0x5e1818(0x142)](b[_0x5e1818(0x193)]))],exports[_0x5e1818(0x13d)]);var u=(_0xf3edbd=>(_0xf3edbd[_0x5e1818(0x195)]=_0x5e1818(0x1d1),_0xf3edbd[_0x5e1818(0x127)]='idle',_0xf3edbd['FOLLOWING']='following',_0xf3edbd['NOT_FOLLOWING']=_0x5e1818(0x118),_0xf3edbd[_0x5e1818(0x11d)]='presenting',_0xf3edbd))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports['LiveShareCoordinator']=class extends o[_0x5e1818(0x105)]{constructor(_0x2ac381,_0x5bc83c,_0x24e4be,_0x274f9b,_0x4c6ac6){const _0x163b78=_0x5e1818;super(),_(this,_0x163b78(0x150),new O[(_0x163b78(0x14c))](_0x163b78(0x1a9))),_(this,'status$',this['_status$'][_0x163b78(0x18c)]()),_(this,_0x163b78(0x14b),!0x1),_(this,_0x163b78(0x15f),null),_(this,_0x163b78(0x190),null),(this[_0x163b78(0x171)]=_0x2ac381,this['_collabSession']=_0x5bc83c,this[_0x163b78(0x17b)]=_0x24e4be,this[_0x163b78(0x169)]=_0x274f9b,this['_commandService']=_0x4c6ac6);}get[_0x5e1818(0x115)](){const _0x47ddf2=_0x5e1818;return this['_status$'][_0x47ddf2(0x186)]();}[_0x5e1818(0x152)](){const _0x525054=_0x5e1818;var _0x343ad8;(_0x343ad8=this[_0x525054(0x15f)])==null||_0x343ad8[_0x525054(0x152)](),this[_0x525054(0x150)][_0x525054(0x1d2)](_0x525054(0x1a9)),this[_0x525054(0x150)][_0x525054(0x11c)]();}[_0x5e1818(0x144)](){const _0x246c04=_0x5e1818;return this[_0x246c04(0x115)];}[_0x5e1818(0x1bf)](){const _0x31b4a0=_0x5e1818;this[_0x31b4a0(0x14b)]||(this['_init']=!0x0,this[_0x31b4a0(0x19c)][_0x31b4a0(0x145)][_0x31b4a0(0x1c2)](I[_0x31b4a0(0x123)](this[_0x31b4a0(0x1a5)]))[_0x31b4a0(0x19d)](_0x5f066e=>{const _0x4547fa=_0x31b4a0;switch(_0x5f066e){case b[_0x4547fa(0x155)][_0x4547fa(0x195)]:this[_0x4547fa(0x1af)]();break;case b['SessionStatus'][_0x4547fa(0x162)]:this[_0x4547fa(0x12e)]();break;}}),this[_0x31b4a0(0x19c)]['event$']['pipe'](I['takeUntil'](this[_0x31b4a0(0x1a5)]))[_0x31b4a0(0x19d)](_0x3058d7=>{const _0x31ca5e=_0x31b4a0,{eventID:_0x1cbf0c}=_0x3058d7;switch(_0x1cbf0c){case d['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x31ca5e(0x126)](_0x3058d7);break;case d['CollaborationEvent']['LIVESHARE_OPERATION']:this[_0x31ca5e(0x15c)](_0x3058d7);break;case d[_0x31ca5e(0x14d)][_0x31ca5e(0x151)]:this[_0x31ca5e(0x154)]();break;case d[_0x31ca5e(0x14d)]['NEW_CHANGESETS']:this[_0x31ca5e(0x18a)](_0x3058d7);break;}}));}[_0x5e1818(0x1cc)](){const _0x3a63b5=_0x5e1818;this[_0x3a63b5(0x19c)][_0x3a63b5(0x181)]({'eventID':d[_0x3a63b5(0x14d)][_0x3a63b5(0x199)],'data':{'unitID':this[_0x3a63b5(0x171)],'userID':this['_collabSession'][_0x3a63b5(0x175)]()}},this[_0x3a63b5(0x171)]);}['stopPresenting'](){const _0x1857c1=_0x5e1818;this[_0x1857c1(0x115)]===_0x1857c1(0x185)&&(this[_0x1857c1(0x150)]['next'](_0x1857c1(0x1a9)),this['_collabSession'][_0x1857c1(0x181)]({'eventID':d['CollaborationEvent'][_0x1857c1(0x151)],'data':{'unitID':this[_0x1857c1(0x171)]}},this['_unitID']));}[_0x5e1818(0x1a1)](){const _0x215c61=_0x5e1818;this[_0x215c61(0x115)]===_0x215c61(0x118)&&(this[_0x215c61(0x150)][_0x215c61(0x1d2)]('following'),this[_0x215c61(0x10e)]());}[_0x5e1818(0x173)](){const _0x292ce9=_0x5e1818;this[_0x292ce9(0x115)]===_0x292ce9(0x18f)&&this[_0x292ce9(0x1a0)]();}[_0x5e1818(0x126)](_0x2adb84){const _0x163b2e=_0x5e1818,{presenter:_0x1c67f9}=_0x2adb84[_0x163b2e(0x17c)],_0x1813d8=this[_0x163b2e(0x19c)][_0x163b2e(0x175)]();this[_0x163b2e(0x190)]=_0x1c67f9,_0x1c67f9===_0x1813d8?(this[_0x163b2e(0x1a0)](),this[_0x163b2e(0x1c7)]()):this[_0x163b2e(0x115)]!=='not-following'&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x5e1818(0x168)](){const _0x1b1170=_0x5e1818,_0x4baba0={'eventID':d[_0x1b1170(0x14d)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x1b1170(0x19c)][_0x1b1170(0x181)](_0x4baba0,this[_0x1b1170(0x171)]);}[_0x5e1818(0x154)](){const _0x3587cc=_0x5e1818;this['_presenter']=null,this[_0x3587cc(0x115)]!==_0x3587cc(0x185)&&this[_0x3587cc(0x1d8)]();}['_handleNewChangeSets'](_0x2ce937){const _0x41ce6b=_0x5e1818;if(this[_0x41ce6b(0x115)]===_0x41ce6b(0x18f)&&this[_0x41ce6b(0x190)]===_0x2ce937[_0x41ce6b(0x17c)][_0x41ce6b(0x15d)]){const _0x8b80a8=d[_0x41ce6b(0x1cf)](_0x2ce937['data'])[_0x41ce6b(0x1ce)]['reverse']()[_0x41ce6b(0x1a3)](_0x1b3937=>_0x1b3937['id']===C['InsertSheetMutation']['id']);if(_0x8b80a8){const _0x1a72b2=_0x8b80a8[_0x41ce6b(0x125)]['unitId'],_0x390de2=_0x8b80a8[_0x41ce6b(0x125)][_0x41ce6b(0x114)]['id'];setTimeout(()=>{const _0x5b9efb=_0x41ce6b;this[_0x5b9efb(0x1b6)][_0x5b9efb(0x13c)](C[_0x5b9efb(0x1d6)]['id'],{'unitId':_0x1a72b2,'subUnitId':_0x390de2},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x2cc5e0=_0x5e1818;this[_0x2cc5e0(0x150)]['next']('presenting');const _0x54257e=new Map(),_0x540f5a=this[_0x2cc5e0(0x15f)]=new o[(_0x2cc5e0(0x16e))]();_0x540f5a['add'](o[_0x2cc5e0(0x12f)](()=>{const _0x223afe=_0x2cc5e0;_0x54257e[_0x223afe(0x1d0)](_0x4a3269=>_0x4a3269[_0x223afe(0x11c)]()),_0x54257e[_0x223afe(0x1bc)]();})),_0x540f5a['add'](this[_0x2cc5e0(0x1b6)][_0x2cc5e0(0x130)](_0x34ff0f=>{const _0x4d5c71=_0x2cc5e0;var _0x29f895;if(_0x34ff0f[_0x4d5c71(0x1db)]!==o[_0x4d5c71(0x19f)][_0x4d5c71(0x180)]||!this[_0x4d5c71(0x169)][_0x4d5c71(0x111)](_0x34ff0f['id']))return;const {id:_0xdd9daa}=_0x34ff0f;let _0x30f429;_0x54257e[_0x4d5c71(0x10a)](_0xdd9daa)?_0x30f429=_0x54257e[_0x4d5c71(0x13a)](_0xdd9daa):(_0x30f429=new O[(_0x4d5c71(0x121))](),_0x54257e[_0x4d5c71(0x176)](_0xdd9daa,_0x30f429),_0x30f429[_0x4d5c71(0x1c2)](I['throttleTime']((_0x29f895=this['_configService']['getConfig'](k))!=null?_0x29f895:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x69c23f=>{const _0x58f376=_0x4d5c71;this[_0x58f376(0x19c)]['send']({'eventID':d['CollaborationEvent'][_0x58f376(0x1b9)],'data':{'unitID':this['_unitID'],'operations':{[_0x69c23f['id']]:{'id':_0x69c23f['id'],'params':JSON['stringify'](_0x69c23f['params'])}}}},this['_unitID']);})),_0x30f429['next'](_0x34ff0f);})),this[_0x2cc5e0(0x169)][_0x2cc5e0(0x139)](this[_0x2cc5e0(0x171)])[_0x2cc5e0(0x1d0)](_0x3f415e=>this[_0x2cc5e0(0x19c)][_0x2cc5e0(0x181)]({'eventID':d[_0x2cc5e0(0x14d)][_0x2cc5e0(0x1b9)],'data':{'unitID':this['_unitID'],'operations':{[_0x3f415e['id']]:{'id':_0x3f415e['id'],'params':JSON[_0x2cc5e0(0x12b)](_0x3f415e[_0x2cc5e0(0x125)])}}}},this[_0x2cc5e0(0x171)]));}[_0x5e1818(0x182)](){const _0x158b9f=_0x5e1818;var _0x44d923;this[_0x158b9f(0x150)]['next'](_0x158b9f(0x1a9)),(_0x44d923=this[_0x158b9f(0x15f)])==null||_0x44d923[_0x158b9f(0x152)](),this['_commandDisposable']=null;}['_startFollowing'](){const _0x36b785=_0x5e1818;var _0x4c76be;(_0x4c76be=this['_commandDisposable'])==null||_0x4c76be[_0x36b785(0x152)](),this['_status$']['next'](_0x36b785(0x18f));}[_0x5e1818(0x1d8)](){const _0x58ff4d=_0x5e1818;var _0x47c013;this[_0x58ff4d(0x150)][_0x58ff4d(0x1d2)](_0x58ff4d(0x1a9)),(_0x47c013=this['_commandDisposable'])==null||_0x47c013[_0x58ff4d(0x152)](),this[_0x58ff4d(0x15f)]=null;}[_0x5e1818(0x1a0)](){const _0x37c6c7=_0x5e1818;var _0x2a3f51;this[_0x37c6c7(0x150)][_0x37c6c7(0x1d2)](_0x37c6c7(0x118)),(_0x2a3f51=this[_0x37c6c7(0x15f)])==null||_0x2a3f51[_0x37c6c7(0x152)]();}['_handleOperation'](_0xb75caf){const _0x9b354d=_0x5e1818;if([_0x9b354d(0x185),'not-following',_0x9b354d(0x1d1)][_0x9b354d(0x140)](this[_0x9b354d(0x115)])||!_0xb75caf[_0x9b354d(0x17c)][_0x9b354d(0x17f)]||_0xb75caf['data'][_0x9b354d(0x17f)]===this['_collabSession'][_0x9b354d(0x175)]())return;this['_status']===_0x9b354d(0x1a9)&&this[_0x9b354d(0x10e)]();const _0x11f0c0=_0xb75caf[_0x9b354d(0x17c)][_0x9b354d(0x157)];Object['values'](_0x11f0c0)[_0x9b354d(0x1d0)](_0x13857f=>{const _0x53eea4=_0x9b354d;this[_0x53eea4(0x1b6)]['executeCommand'](_0x13857f['id'],_0x13857f[_0x53eea4(0x125)]?JSON['parse'](_0x13857f[_0x53eea4(0x125)]):null,{'fromCollab':!0x0});});}[_0x5e1818(0x1af)](){const _0x2b4c13=_0x5e1818;var _0x42aa05;this['_status$'][_0x2b4c13(0x1d2)](_0x2b4c13(0x1d1)),(_0x42aa05=this[_0x2b4c13(0x15f)])==null||_0x42aa05[_0x2b4c13(0x152)]();}[_0x5e1818(0x12e)](){const _0x3ab4c5=_0x5e1818;this['_status$']['next'](_0x3ab4c5(0x1a9)),this['_fetchOperations']();}},exports[_0x5e1818(0x187)]=P([S(0x2,o[_0x5e1818(0x16a)]),S(0x3,o['Inject'](E)),S(0x4,o[_0x5e1818(0x15a)])],exports[_0x5e1818(0x187)]);function $(){const _0x561165=_0x5e1818,_0x3aff45=p['useDependency'](exports[_0x561165(0x13d)]),_0x25c95b=p['useDependency'](o[_0x561165(0x11b)]),_0x2d8562=p[_0x561165(0x1b2)](()=>_0x25c95b[_0x561165(0x1ac)](o[_0x561165(0x120)][_0x561165(0x1d7)]),void 0x0,!0x1,[]),[_0x48ea76,_0x2489d6]=v[_0x561165(0x16f)](null),[_0x4e328a,_0x27dd9a]=v[_0x561165(0x16f)](u[_0x561165(0x127)]),_0x49db2e=v[_0x561165(0x1c6)](null);return v[_0x561165(0x166)](()=>(_0x2d8562&&_0x3aff45[_0x561165(0x1ad)](_0x2d8562[_0x561165(0x174)]())[_0x561165(0x10d)](_0x1c1323=>{const _0x49d474=_0x561165;_0x2489d6(_0x1c1323),_0x49db2e['current']=_0x1c1323[_0x49d474(0x198)][_0x49d474(0x19d)](_0x5a80e0=>{_0x27dd9a(_0x5a80e0);});}),()=>{const _0x4bce80=_0x561165;var _0x284886;(_0x284886=_0x49db2e[_0x4bce80(0x12a)])==null||_0x284886[_0x4bce80(0x189)](),_0x49db2e[_0x4bce80(0x12a)]=null;}),[_0x2d8562,_0x3aff45]),_0x48ea76?l['jsx'](f[_0x561165(0x122)],{'align':'end','disabled':_0x4e328a===u[_0x561165(0x195)],'className':'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','overlay':l[_0x561165(0x196)](W,{'status':_0x4e328a,'coordinator':_0x48ea76}),'children':l['jsx'](_0x561165(0x19b),{'className':f[_0x561165(0x141)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x4e328a===u[_0x561165(0x195)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4e328a!==u[_0x561165(0x195)]}),'type':'button','children':l[_0x561165(0x196)](R,{'className':_0x561165(0x128)})})}):null;}function W(_0x600cd4){const _0x47a165=_0x5e1818,{status:_0x3f9bbb,coordinator:_0x2adbc3}=_0x600cd4;switch(_0x3f9bbb){case u[_0x47a165(0x127)]:return l[_0x47a165(0x196)](G,{'coordinator':_0x2adbc3});case u[_0x47a165(0x1b7)]:return l[_0x47a165(0x196)](B,{'coordinator':_0x2adbc3});case u[_0x47a165(0x1c5)]:return l['jsx'](Y,{'coordinator':_0x2adbc3});case u[_0x47a165(0x195)]:return l[_0x47a165(0x196)](J,{});case u[_0x47a165(0x11d)]:return l[_0x47a165(0x196)](Z,{'coordinator':_0x2adbc3});default:return null;}}function G(_0x69c15f){const _0x17400e=_0x5e1818,{coordinator:_0x19e866}=_0x69c15f;return l[_0x17400e(0x1c1)](l[_0x17400e(0x108)],{'children':[l[_0x17400e(0x196)](_0x17400e(0x18e),{'className':_0x17400e(0x110),'children':_0x17400e(0x1d9)}),l[_0x17400e(0x196)](f[_0x17400e(0x17e)],{'onClick':()=>_0x19e866['tryStartPresenting'](),'children':_0x17400e(0x160)})]});}function _0x1030(_0x140f15,_0x722fff){_0x140f15=_0x140f15-0x105;const _0x5af758=_0x5af7();let _0x103040=_0x5af758[_0x140f15];return _0x103040;}function B(_0x35086a){const _0x4c3d79=_0x5e1818,{coordinator:_0x5d526c}=_0x35086a;return l['jsxs'](l[_0x4c3d79(0x108)],{'children':[l[_0x4c3d79(0x196)](_0x4c3d79(0x18e),{'className':_0x4c3d79(0x110),'children':_0x4c3d79(0x184)}),l['jsx'](f['Button'],{'onClick':()=>_0x5d526c[_0x4c3d79(0x173)](),'children':_0x4c3d79(0x137)})]});}function Y(_0xac89e9){const _0x1afb2e=_0x5e1818,{coordinator:_0xc36b0a}=_0xac89e9;return l[_0x1afb2e(0x1c1)](l['Fragment'],{'children':[l[_0x1afb2e(0x196)]('div',{'className':_0x1afb2e(0x110),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l['jsx'](f[_0x1afb2e(0x17e)],{'variant':_0x1afb2e(0x148),'onClick':()=>_0xc36b0a['startFollowing'](),'children':_0x1afb2e(0x159)})]});}function Z(_0x156774){const _0x1d7deb=_0x5e1818,{coordinator:_0x2364dd}=_0x156774;return l[_0x1d7deb(0x1c1)](l[_0x1d7deb(0x108)],{'children':[l[_0x1d7deb(0x196)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x1d7deb(0x196)](f['Button'],{'variant':_0x1d7deb(0x1a2),'onClick':()=>_0x2364dd[_0x1d7deb(0x132)](),'children':_0x1d7deb(0x143)})]});}function J(){const _0x258c2b=_0x5e1818;return l[_0x258c2b(0x196)](l['Fragment'],{'children':_0x258c2b(0x119)});}var K=Object[_0x5e1818(0x149)],z=(_0x5d98c7,_0x202607,_0x588ec0,_0x39fa2e)=>{const _0x3be9b2=_0x5e1818;for(var _0x268e5c=_0x39fa2e>0x1?void 0x0:_0x39fa2e?K(_0x202607,_0x588ec0):_0x202607,_0x50ada4=_0x5d98c7[_0x3be9b2(0x165)]-0x1,_0x37135f;_0x50ada4>=0x0;_0x50ada4--)(_0x37135f=_0x5d98c7[_0x50ada4])&&(_0x268e5c=_0x37135f(_0x268e5c)||_0x268e5c);return _0x268e5c;},L=(_0x3435fb,_0x57e767)=>(_0x205cab,_0x57a0b8)=>_0x57e767(_0x205cab,_0x57a0b8,_0x3435fb);exports[_0x5e1818(0x17d)]=class extends o[_0x5e1818(0x191)]{constructor(_0x347620,_0x625d8c){const _0x2cef4c=_0x5e1818;super(),this[_0x2cef4c(0x1ba)]=_0x347620,this[_0x2cef4c(0x1b4)]=_0x625d8c,this[_0x2cef4c(0x136)]();}[_0x5e1818(0x136)](){const _0xdf9f9c=_0x5e1818;this[_0xdf9f9c(0x134)](this['_uiPartsService'][_0xdf9f9c(0x1c9)](p[_0xdf9f9c(0x1bb)][_0xdf9f9c(0x11f)],()=>p[_0xdf9f9c(0x192)]($,this['_injector'])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0x5e1818(0x142)](o[_0x5e1818(0x14a)])),L(0x1,p['IUIPartsService'])],exports[_0x5e1818(0x17d)]);const Q=_0x5e1818(0x12c),w={};var X=Object[_0x5e1818(0x149)],ee=(_0x56146c,_0x48ea2d,_0x322102,_0x4e4916)=>{const _0xc45854=_0x5e1818;for(var _0x12af6d=_0x4e4916>0x1?void 0x0:_0x4e4916?X(_0x48ea2d,_0x322102):_0x48ea2d,_0x1c826d=_0x56146c[_0xc45854(0x165)]-0x1,_0x53368d;_0x1c826d>=0x0;_0x1c826d--)(_0x53368d=_0x56146c[_0x1c826d])&&(_0x12af6d=_0x53368d(_0x12af6d)||_0x12af6d);return _0x12af6d;},te=(_0x41267f,_0x2c78bc)=>(_0x12d9ac,_0x43b07d)=>_0x2c78bc(_0x12d9ac,_0x43b07d,_0x41267f);let m=class extends o[_0x5e1818(0x191)]{constructor(_0x39e28a){const _0x3506eb=_0x5e1818;super(),this[_0x3506eb(0x169)]=_0x39e28a,this[_0x3506eb(0x14b)]();}[_0x5e1818(0x14b)](){const _0x3fada8=_0x5e1818;[D[_0x3fada8(0x156)]['id'],D['SetScrollOperation']['id'],C[_0x3fada8(0x1d6)]['id']]['forEach'](_0x15b0d7=>{const _0x417aca=_0x3fada8;this[_0x417aca(0x134)](this[_0x417aca(0x169)][_0x417aca(0x1d3)](_0x15b0d7));});}};m=ee([te(0x0,o[_0x5e1818(0x142)](E))],m);var ie=Object[_0x5e1818(0x172)],se=Object['getOwnPropertyDescriptor'],ne=(_0x5dbe9c,_0x2b9c14,_0x4808d8)=>_0x2b9c14 in _0x5dbe9c?ie(_0x5dbe9c,_0x2b9c14,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4808d8}):_0x5dbe9c[_0x2b9c14]=_0x4808d8,re=(_0x32daed,_0x5089ee,_0x49abca,_0x5dfa1f)=>{const _0x2d2711=_0x5e1818;for(var _0x119e63=_0x5dfa1f>0x1?void 0x0:_0x5dfa1f?se(_0x5089ee,_0x49abca):_0x5089ee,_0x177786=_0x32daed[_0x2d2711(0x165)]-0x1,_0x3305a9;_0x177786>=0x0;_0x177786--)(_0x3305a9=_0x32daed[_0x177786])&&(_0x119e63=_0x3305a9(_0x119e63)||_0x119e63);return _0x119e63;},N=(_0x46612d,_0x23bf47)=>(_0x174835,_0x2278b9)=>_0x23bf47(_0x174835,_0x2278b9,_0x46612d),A=(_0x1a5106,_0x3d34dd,_0x585f7d)=>ne(_0x1a5106,typeof _0x3d34dd!=_0x5e1818(0x10f)?_0x3d34dd+'':_0x3d34dd,_0x585f7d);const oe=_0x5e1818(0x112);exports[_0x5e1818(0x11a)]=class extends o[_0x5e1818(0x1c4)]{constructor(_0x2d92dd=w,_0x215707,_0x571ca0){const _0x377257=_0x5e1818;super(),this[_0x377257(0x113)]=_0x2d92dd,this[_0x377257(0x1ba)]=_0x215707,this[_0x377257(0x17b)]=_0x571ca0;const {..._0x1a16ed}=o[_0x377257(0x178)]({},w,this['_config']);this[_0x377257(0x17b)][_0x377257(0x161)](Q,_0x1a16ed);}[_0x5e1818(0x18d)](){const _0xe610c9=_0x5e1818;o[_0xe610c9(0x194)](this['_injector'],o[_0xe610c9(0x1cd)]([[E],[exports['LiveShareController']],[m],[exports[_0xe610c9(0x17d)]]],this[_0xe610c9(0x113)][_0xe610c9(0x135)])),o['touchDependencies'](this[_0xe610c9(0x1ba)],[[m]]);}[_0x5e1818(0x19e)](){const _0x5b3c91=_0x5e1818;o[_0x5b3c91(0x164)](this[_0x5b3c91(0x1ba)],[[exports[_0x5b3c91(0x17d)]]]);}},A(exports['UniverLiveSharePlugin'],_0x5e1818(0x1db),o[_0x5e1818(0x120)][_0x5e1818(0x1ab)]),A(exports['UniverLiveSharePlugin'],_0x5e1818(0x1bd),oe),exports[_0x5e1818(0x11a)]=re([o[_0x5e1818(0x131)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x5e1818(0x142)](o[_0x5e1818(0x14a)])),N(0x2,o['IConfigService'])],exports[_0x5e1818(0x11a)]),exports['LiveShare']=$,exports[_0x5e1818(0x12d)]=E,exports[_0x5e1818(0x1b3)]=u;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x30a585=_0x1a2f;(function(_0x2ba1d7,_0x42ae8e){const _0x2cf796=_0x1a2f,_0x176f68=_0x2ba1d7();while(!![]){try{const _0x41a298=parseInt(_0x2cf796(0x1d5))/0x1*(parseInt(_0x2cf796(0x1c5))/0x2)+-parseInt(_0x2cf796(0x1d4))/0x3+-parseInt(_0x2cf796(0x1da))/0x4+-parseInt(_0x2cf796(0x1ca))/0x5+parseInt(_0x2cf796(0x1cf))/0x6+parseInt(_0x2cf796(0x1c7))/0x7*(parseInt(_0x2cf796(0x1be))/0x8)+parseInt(_0x2cf796(0x1d2))/0x9;if(_0x41a298===_0x42ae8e)break;else _0x176f68['push'](_0x176f68['shift']());}catch(_0x4e5b26){_0x176f68['push'](_0x176f68['shift']());}}}(_0xa7aa,0xe6b2e));import{LiveShareController as _0x1b0e5a,LiveShareStatus as _0x3c5ca6}from'@univerjs-pro/live-share';function _0x1a2f(_0x48b678,_0x40a9ec){_0x48b678=_0x48b678-0x1be;const _0xa7aa98=_0xa7aa();let _0x1a2f84=_0xa7aa98[_0x48b678];return _0x1a2f84;}import{IRenderManagerService as _0xe3c4aa}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x42229a}from'@univerjs/sheets';import{SetScrollOperation as _0xad1144}from'@univerjs/sheets-ui';import{FRange as _0x34e1c5}from'@univerjs/sheets/facade';import{FUniver as _0x51335c,FEnum as _0x53e57c}from'@univerjs/core/facade';class I extends _0x34e1c5{[_0x30a585(0x1dc)](_0x25b83b,_0x7dcd5e,_0x45f3ac,_0x3acdd8,_0x231b74){const _0x1fdcab=_0x30a585,_0x15ab42=_0x25b83b[_0x1fdcab(0x1c0)](_0x1b0e5a),_0x4d7876=_0x25b83b[_0x1fdcab(0x1c0)](_0xe3c4aa),_0x390b69=_0x7dcd5e[_0x1fdcab(0x1c6)](),_0x5c01dd=_0x7dcd5e[_0x1fdcab(0x1cb)](),_0x402fa4=_0x15ab42[_0x1fdcab(0x1c2)](_0x390b69);(_0x402fa4==null?void 0x0:_0x402fa4['getStatus']())!==_0x3c5ca6[_0x1fdcab(0x1ce)]||(_0x45f3ac[_0x1fdcab(0x1cd)]()!==_0x5c01dd['getSheetId']()&&this[_0x1fdcab(0x1bf)][_0x1fdcab(0x1d8)](_0x42229a['id'],{'unitId':_0x390b69,'subUnitId':_0x45f3ac[_0x1fdcab(0x1cd)]()}),!_0x4d7876[_0x1fdcab(0x1c1)](_0x390b69))||_0x231b74[_0x1fdcab(0x1c9)](_0xad1144['id'],{'unitId':_0x7dcd5e[_0x1fdcab(0x1c6)](),'sheetId':_0x45f3ac['getSheetId'](),'sheetViewStartRow':_0x3acdd8[_0x1fdcab(0x1c4)],'sheetViewStartColumn':_0x3acdd8['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x34e1c5[_0x30a585(0x1d1)](I);function _0xa7aa(){const _0x32722d=['getLiveShareCoordinatorSync','tryStartPresenting','startRow','200958Uzmbin','getUnitId','1496299FJlsJD','getActiveWorkbook','syncExecuteCommand','3460205TcoOsc','getActiveSheet','getId','getSheetId','PRESENTING','2767572vyAkgi','startFollowing','extend','17955369NutIBc','IDLE','5666760MGgkOa','2uvvuSW','getLiveShareStatus','No\x20active\x20workbook\x20found.','executeCommand','stopFollowing','2510628YxSyiB','_injector','_initialize','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','56QVydMm','_commandService','get','getRenderById'];_0xa7aa=function(){return _0x32722d;};return _0xa7aa();}class m extends _0x51335c{[_0x30a585(0x1d6)](){const _0x3fa364=_0x30a585;var _0x266652,_0x298c5a;const _0x2fdf19=this['_injector'][_0x3fa364(0x1c0)](_0x1b0e5a),_0x5ef7ba=(_0x266652=this['getActiveWorkbook']())==null?void 0x0:_0x266652[_0x3fa364(0x1cc)]();if(!_0x5ef7ba)throw new Error(_0x3fa364(0x1d7));const _0x3ff71b=_0x2fdf19[_0x3fa364(0x1c2)](_0x5ef7ba);return(_0x298c5a=_0x3ff71b==null?void 0x0:_0x3ff71b['getStatus']())!=null?_0x298c5a:_0x3c5ca6[_0x3fa364(0x1d3)];}[_0x30a585(0x1d0)](){const _0x50fa10=_0x30a585;var _0x1932b6;const _0x55edcd=this[_0x50fa10(0x1db)][_0x50fa10(0x1c0)](_0x1b0e5a),_0xbaf4e4=(_0x1932b6=this[_0x50fa10(0x1c8)]())==null?void 0x0:_0x1932b6[_0x50fa10(0x1cc)]();if(!_0xbaf4e4)throw new Error(_0x50fa10(0x1d7));const _0xed849f=_0x55edcd[_0x50fa10(0x1c2)](_0xbaf4e4);if(!_0xed849f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xed849f[_0x50fa10(0x1d0)]();}[_0x30a585(0x1d9)](){const _0x1ba9d9=_0x30a585;var _0x4a8691;const _0x3d0350=this[_0x1ba9d9(0x1db)][_0x1ba9d9(0x1c0)](_0x1b0e5a),_0x401c6f=(_0x4a8691=this[_0x1ba9d9(0x1c8)]())==null?void 0x0:_0x4a8691[_0x1ba9d9(0x1cc)]();if(!_0x401c6f)throw new Error(_0x1ba9d9(0x1d7));const _0xf4ff0d=_0x3d0350[_0x1ba9d9(0x1c2)](_0x401c6f);if(!_0xf4ff0d)throw new Error(_0x1ba9d9(0x1dd));_0xf4ff0d['stopFollowing']();}['startPresenting'](){const _0x1208e4=_0x30a585;var _0x34fb8d;const _0x508514=this[_0x1208e4(0x1db)][_0x1208e4(0x1c0)](_0x1b0e5a),_0xb16a14=(_0x34fb8d=this[_0x1208e4(0x1c8)]())==null?void 0x0:_0x34fb8d['getId']();if(!_0xb16a14)throw new Error('No\x20active\x20workbook\x20found.');const _0x47955f=_0x508514[_0x1208e4(0x1c2)](_0xb16a14);if(!_0x47955f)throw new Error(_0x1208e4(0x1dd));_0x47955f[_0x1208e4(0x1c3)]();}['stopPresenting'](){const _0x3cac34=_0x30a585;var _0x2227da;const _0x456943=this[_0x3cac34(0x1db)][_0x3cac34(0x1c0)](_0x1b0e5a),_0x4bafad=(_0x2227da=this[_0x3cac34(0x1c8)]())==null?void 0x0:_0x2227da[_0x3cac34(0x1cc)]();if(!_0x4bafad)throw new Error('No\x20active\x20workbook\x20found.');const _0x170742=_0x456943[_0x3cac34(0x1c2)](_0x4bafad);if(!_0x170742)throw new Error(_0x3cac34(0x1dd));_0x170742['stopPresenting']();}}_0x51335c[_0x30a585(0x1d1)](m);class C extends _0x53e57c{get['LiveShareStatusEnum'](){return _0x3c5ca6;}}_0x53e57c[_0x30a585(0x1d1)](C);
1
+ const _0x426154=_0x8a89;(function(_0x116d59,_0x4b69ff){const _0x11a702=_0x8a89,_0x1f659f=_0x116d59();while(!![]){try{const _0x3bd634=-parseInt(_0x11a702(0x107))/0x1+-parseInt(_0x11a702(0xf7))/0x2*(parseInt(_0x11a702(0xee))/0x3)+-parseInt(_0x11a702(0x101))/0x4+-parseInt(_0x11a702(0xeb))/0x5*(parseInt(_0x11a702(0x105))/0x6)+parseInt(_0x11a702(0xec))/0x7+-parseInt(_0x11a702(0xf3))/0x8*(parseInt(_0x11a702(0xed))/0x9)+parseInt(_0x11a702(0x10a))/0xa;if(_0x3bd634===_0x4b69ff)break;else _0x1f659f['push'](_0x1f659f['shift']());}catch(_0x1129b9){_0x1f659f['push'](_0x1f659f['shift']());}}}(_0x9fc7,0xc9dd4));import{LiveShareController as _0x1b0bc7,LiveShareStatus as _0x4a414c}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x208de2}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x4fb1a4}from'@univerjs/sheets';import{SetScrollOperation as _0x5a4d9c}from'@univerjs/sheets-ui';import{FRange as _0x59a437}from'@univerjs/sheets/facade';import{FUniver as _0x5289b2,FEnum as _0x5e7752}from'@univerjs/core/facade';function _0x9fc7(){const _0x3b31d3=['stopFollowing','18055ODAiOQ','startRow','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','39928370yxDsSF','getLiveShareCoordinatorSync','No\x20active\x20workbook\x20found.','3786520hdFuaP','5557755xZeDbx','10359CWcros','33315KqItDy','startColumn','_injector','getActiveWorkbook','getActiveSheet','4872HafWPb','PRESENTING','executeCommand','LiveShareStatusEnum','104TOgvzp','getSheetId','getStatus','get','IDLE','getUnitId','syncExecuteCommand','tryStartPresenting','startFollowing','getId','4595536NdSFxI','_commandService','extend','getRenderById','12fvwmHi'];_0x9fc7=function(){return _0x3b31d3;};return _0x9fc7();}class I extends _0x59a437{['_initialize'](_0x101dc0,_0x4055a3,_0x1de88f,_0x2090f1,_0x17a018){const _0x1e27c8=_0x8a89,_0x2a7e19=_0x101dc0[_0x1e27c8(0xfa)](_0x1b0bc7),_0x9c2e36=_0x101dc0[_0x1e27c8(0xfa)](_0x208de2),_0x3deccb=_0x4055a3[_0x1e27c8(0xfc)](),_0x385007=_0x4055a3[_0x1e27c8(0xf2)](),_0x148b32=_0x2a7e19[_0x1e27c8(0x10b)](_0x3deccb);(_0x148b32==null?void 0x0:_0x148b32[_0x1e27c8(0xf9)]())!==_0x4a414c[_0x1e27c8(0xf4)]||(_0x1de88f[_0x1e27c8(0xf8)]()!==_0x385007[_0x1e27c8(0xf8)]()&&this[_0x1e27c8(0x102)][_0x1e27c8(0xf5)](_0x4fb1a4['id'],{'unitId':_0x3deccb,'subUnitId':_0x1de88f['getSheetId']()}),!_0x9c2e36[_0x1e27c8(0x104)](_0x3deccb))||_0x17a018[_0x1e27c8(0xfd)](_0x5a4d9c['id'],{'unitId':_0x4055a3[_0x1e27c8(0xfc)](),'sheetId':_0x1de88f[_0x1e27c8(0xf8)](),'sheetViewStartRow':_0x2090f1[_0x1e27c8(0x108)],'sheetViewStartColumn':_0x2090f1[_0x1e27c8(0xef)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x59a437[_0x426154(0x103)](I);class m extends _0x5289b2{['getLiveShareStatus'](){const _0x1fb26e=_0x426154;var _0xed5654,_0x52c2b4;const _0x1b6745=this[_0x1fb26e(0xf0)][_0x1fb26e(0xfa)](_0x1b0bc7),_0x469945=(_0xed5654=this[_0x1fb26e(0xf1)]())==null?void 0x0:_0xed5654[_0x1fb26e(0x100)]();if(!_0x469945)throw new Error(_0x1fb26e(0x10c));const _0x4bdae4=_0x1b6745['getLiveShareCoordinatorSync'](_0x469945);return(_0x52c2b4=_0x4bdae4==null?void 0x0:_0x4bdae4['getStatus']())!=null?_0x52c2b4:_0x4a414c[_0x1fb26e(0xfb)];}[_0x426154(0xff)](){const _0x47f8f1=_0x426154;var _0xc1e9bf;const _0x123bb8=this[_0x47f8f1(0xf0)][_0x47f8f1(0xfa)](_0x1b0bc7),_0x51a492=(_0xc1e9bf=this[_0x47f8f1(0xf1)]())==null?void 0x0:_0xc1e9bf[_0x47f8f1(0x100)]();if(!_0x51a492)throw new Error('No\x20active\x20workbook\x20found.');const _0x3064e0=_0x123bb8[_0x47f8f1(0x10b)](_0x51a492);if(!_0x3064e0)throw new Error(_0x47f8f1(0x109));_0x3064e0[_0x47f8f1(0xff)]();}[_0x426154(0x106)](){const _0x199c5f=_0x426154;var _0x1df549;const _0x2d8f5e=this[_0x199c5f(0xf0)]['get'](_0x1b0bc7),_0xf65f2e=(_0x1df549=this['getActiveWorkbook']())==null?void 0x0:_0x1df549[_0x199c5f(0x100)]();if(!_0xf65f2e)throw new Error(_0x199c5f(0x10c));const _0x48ee09=_0x2d8f5e[_0x199c5f(0x10b)](_0xf65f2e);if(!_0x48ee09)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x48ee09[_0x199c5f(0x106)]();}['startPresenting'](){const _0x3a1edb=_0x426154;var _0x235b79;const _0x20ebd6=this['_injector'][_0x3a1edb(0xfa)](_0x1b0bc7),_0x3e8bc2=(_0x235b79=this[_0x3a1edb(0xf1)]())==null?void 0x0:_0x235b79[_0x3a1edb(0x100)]();if(!_0x3e8bc2)throw new Error(_0x3a1edb(0x10c));const _0x426a99=_0x20ebd6[_0x3a1edb(0x10b)](_0x3e8bc2);if(!_0x426a99)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x426a99[_0x3a1edb(0xfe)]();}['stopPresenting'](){const _0x212719=_0x426154;var _0x41b88b;const _0x45e990=this[_0x212719(0xf0)]['get'](_0x1b0bc7),_0x4ae917=(_0x41b88b=this['getActiveWorkbook']())==null?void 0x0:_0x41b88b[_0x212719(0x100)]();if(!_0x4ae917)throw new Error(_0x212719(0x10c));const _0x5aaa49=_0x45e990[_0x212719(0x10b)](_0x4ae917);if(!_0x5aaa49)throw new Error(_0x212719(0x109));_0x5aaa49['stopPresenting']();}}_0x5289b2['extend'](m);class C extends _0x5e7752{get[_0x426154(0xf6)](){return _0x4a414c;}}function _0x8a89(_0x4d9246,_0x46d4b5){_0x4d9246=_0x4d9246-0xeb;const _0x9fc7e3=_0x9fc7();let _0x8a8918=_0x9fc7e3[_0x4d9246];return _0x8a8918;}_0x5e7752['extend'](C);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3d115b=_0x2aa9;(function(_0x2765d0,_0x182ad0){const _0x88694a=_0x2aa9,_0x29f9b2=_0x2765d0();while(!![]){try{const _0x3f5a28=-parseInt(_0x88694a(0x1c7))/0x1+parseInt(_0x88694a(0x1fc))/0x2+parseInt(_0x88694a(0x1ef))/0x3*(parseInt(_0x88694a(0x1a1))/0x4)+parseInt(_0x88694a(0x1fa))/0x5*(-parseInt(_0x88694a(0x1d4))/0x6)+-parseInt(_0x88694a(0x207))/0x7*(parseInt(_0x88694a(0x200))/0x8)+parseInt(_0x88694a(0x1ac))/0x9+parseInt(_0x88694a(0x21a))/0xa*(parseInt(_0x88694a(0x19e))/0xb);if(_0x3f5a28===_0x182ad0)break;else _0x29f9b2['push'](_0x29f9b2['shift']());}catch(_0x3b6548){_0x29f9b2['push'](_0x29f9b2['shift']());}}}(_0x56b3,0x6b20a));var J=Object[_0x3d115b(0x1bf)],K=(_0x137beb,_0x2edb27,_0x120002)=>_0x2edb27 in _0x137beb?J(_0x137beb,_0x2edb27,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x120002}):_0x137beb[_0x2edb27]=_0x120002,u=(_0x4151d0,_0x402d2f,_0x3a11ad)=>K(_0x4151d0,typeof _0x402d2f!=_0x3d115b(0x1e8)?_0x402d2f+'':_0x402d2f,_0x3a11ad);import{Disposable as _0x87d3da,toDisposable as _0x2af3fb,IUniverInstanceService as _0x1d384b,Inject as _0x577b1e,Injector as _0x4e118f,IConfigService as _0x332024,ICommandService as _0x5b24bd,RxDisposable as _0x346b59,UniverInstanceType as _0x3088b9,DisposableCollection as _0x34f591,CommandType as _0x1b9ff0,DependentOn as _0x3cc453,Plugin as _0x4b1824,merge as _0x4a94f8,registerDependencies as _0x51b5fa,mergeOverrideWithDependencies as _0x215342,touchDependencies as _0x2b00b4}from'@univerjs/core';import{useDependency as _0x32938e,useObservable as _0x305896,IUIPartsService as _0x5c986b,BuiltInUIPart as _0x523e83,connectInjector as _0x32b998}from'@univerjs/ui';import{jsx as _0x567ad8,jsxs as _0x1873ad,Fragment as _0xaba553}from'react/jsx-runtime';import{Dropdown as _0x1d0e01,clsx as _0xc920a1,Button as _0x473b7d}from'@univerjs/design';import{useRef as _0x1df2a9,createElement as _0x267537,forwardRef as _0x2c3eb3,useState as _0x4d351d,useEffect as _0x463e26}from'react';import{CollaborationEvent as _0x993281,parseProtocolChangeset as _0xe3d24e}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x5b388b,SessionStatus as _0x5e3c97,UniverCollaborationClientPlugin as _0x545bb7}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4db54c,SetWorksheetActiveOperation as _0x871b64}from'@univerjs/sheets';function _0x2aa9(_0x390fb9,_0x13cd74){_0x390fb9=_0x390fb9-0x17f;const _0x56b3c6=_0x56b3();let _0x2aa949=_0x56b3c6[_0x390fb9];return _0x2aa949;}import{BehaviorSubject as _0x3dca77,Subject as _0x1bf23e}from'rxjs';import{takeUntil as _0x4ccafe,throttleTime as _0x10a81f}from'rxjs/operators';import{SetZoomRatioOperation as _0x2fe506,SetScrollOperation as _0x33c19d}from'@univerjs/sheets-ui';function k({ref:_0x9b34d2,..._0x2290a9}){const _0x306692=_0x3d115b,{icon:_0x2c2160,id:_0x459ded,className:_0x14210c,extend:_0x6c6fa3,..._0x48aaf8}=_0x2290a9,_0x17dc02=(_0x306692(0x1b4)+_0x459ded+'\x20'+(_0x14210c||''))[_0x306692(0x219)](),_0x36eccc=_0x1df2a9('_'+Oe());return G(_0x2c2160,''+_0x459ded,{'defIds':_0x2c2160[_0x306692(0x21d)],'idSuffix':_0x36eccc['current']},{'ref':_0x9b34d2,'className':_0x17dc02,..._0x48aaf8},_0x6c6fa3);}function G(_0xf3815b,_0x2c5615,_0x355677,_0x545477,_0x188599){const _0xdead6d=_0x3d115b;return _0x267537(_0xf3815b[_0xdead6d(0x201)],{'key':_0x2c5615,...be(_0xf3815b,_0x355677,_0x188599),..._0x545477},(Ee(_0xf3815b,_0x355677)[_0xdead6d(0x222)]||[])[_0xdead6d(0x20e)]((_0x3592a1,_0x57c104)=>G(_0x3592a1,_0x2c5615+'-'+_0xf3815b['tag']+'-'+_0x57c104,_0x355677,void 0x0,_0x188599)));}function be(_0x4158dd,_0x4e0612,_0x8fc515){const _0x4da175=_0x3d115b,_0x33f590={..._0x4158dd['attrs']};_0x8fc515!=null&&_0x8fc515['colorChannel1']&&_0x33f590[_0x4da175(0x1ca)]===_0x4da175(0x194)&&(_0x33f590[_0x4da175(0x1ca)]=_0x8fc515[_0x4da175(0x194)]),_0x4158dd['tag']===_0x4da175(0x203)&&_0x33f590['id']&&(_0x33f590['id']=_0x33f590['id']+_0x4e0612['idSuffix']),Object[_0x4da175(0x1a5)](_0x33f590)[_0x4da175(0x19b)](([_0x3d452f,_0x5ae30b])=>{const _0x56acb6=_0x4da175;_0x3d452f===_0x56acb6(0x203)&&typeof _0x5ae30b==_0x56acb6(0x1ee)&&(_0x33f590[_0x3d452f]=_0x5ae30b[_0x56acb6(0x1e2)](/url\(#(.*)\)/,'url(#$1'+_0x4e0612[_0x56acb6(0x1ea)]+')'));});const {defIds:_0x400008}=_0x4e0612;return!_0x400008||_0x400008[_0x4da175(0x19a)]===0x0||(_0x4158dd[_0x4da175(0x201)]===_0x4da175(0x220)&&_0x33f590['xlink:href']&&(_0x33f590['xlink:href']=_0x33f590[_0x4da175(0x18f)]+_0x4e0612[_0x4da175(0x1ea)]),Object[_0x4da175(0x1a5)](_0x33f590)[_0x4da175(0x19b)](([_0x37b09d,_0x4875d9])=>{const _0x1783e6=_0x4da175;typeof _0x4875d9=='string'&&(_0x33f590[_0x37b09d]=_0x4875d9[_0x1783e6(0x1e2)](/url\(#(.*)\)/,_0x1783e6(0x190)+_0x4e0612[_0x1783e6(0x1ea)]+')'));})),_0x33f590;}function Ee(_0xe8b5eb,_0x5c94b1){const _0x2c2c97=_0x3d115b;var _0x5035e3;const {defIds:_0x473d9f}=_0x5c94b1;return!_0x473d9f||_0x473d9f[_0x2c2c97(0x19a)]===0x0?_0xe8b5eb:_0xe8b5eb[_0x2c2c97(0x201)]==='defs'&&((_0x5035e3=_0xe8b5eb[_0x2c2c97(0x222)])!=null&&_0x5035e3['length'])?{..._0xe8b5eb,'children':_0xe8b5eb[_0x2c2c97(0x222)][_0x2c2c97(0x20e)](_0x2ba542=>typeof _0x2ba542[_0x2c2c97(0x202)]['id']==_0x2c2c97(0x1ee)&&_0x473d9f&&_0x473d9f[_0x2c2c97(0x204)](_0x2ba542[_0x2c2c97(0x202)]['id'])?{..._0x2ba542,'attrs':{..._0x2ba542[_0x2c2c97(0x202)],'id':_0x2ba542[_0x2c2c97(0x202)]['id']+_0x5c94b1['idSuffix']}}:_0x2ba542)}:_0xe8b5eb;}function Oe(){const _0x528b48=_0x3d115b;return Math['random']()['toString'](0x24)[_0x528b48(0x1ff)](0x2,0x8);}k[_0x3d115b(0x1e1)]='UniverIcon';const we={'tag':_0x3d115b(0x1a0),'attrs':{'xmlns':_0x3d115b(0x1be),'fill':'none','viewBox':_0x3d115b(0x1e5),'width':_0x3d115b(0x221),'height':'1em'},'children':[{'tag':_0x3d115b(0x18c),'attrs':{'fill':'currentColor','d':_0x3d115b(0x1c2)}},{'tag':_0x3d115b(0x18c),'attrs':{'fill':_0x3d115b(0x21e),'d':_0x3d115b(0x1e0),'fillRule':'evenodd','clipRule':_0x3d115b(0x216)}}]},W=_0x2c3eb3(function(_0x4a83c5,_0x589741){const _0x731f28=_0x3d115b;return _0x267537(k,Object['assign']({},_0x4a83c5,{'id':_0x731f28(0x1bb),'ref':_0x589741,'icon':we}));});W[_0x3d115b(0x1e1)]=_0x3d115b(0x1c1);class L extends _0x87d3da{constructor(){const _0x1fd972=_0x3d115b;super(...arguments),u(this,_0x1fd972(0x20c),new Set()),u(this,'_reporters',new Set());}[_0x3d115b(0x18a)](_0x2994cb){const _0x208654=_0x3d115b;return this[_0x208654(0x20c)][_0x208654(0x1f4)](_0x2994cb),_0x2af3fb(()=>this['_sharedOperations'][_0x208654(0x20a)](_0x2994cb));}[_0x3d115b(0x1c5)](_0x4f6963){const _0x20e902=_0x3d115b;return this[_0x20e902(0x1d3)][_0x20e902(0x1f4)](_0x4f6963),_0x2af3fb(()=>this['_reporters']['delete'](_0x4f6963));}[_0x3d115b(0x189)](_0x3aea5b){const _0x5156ad=_0x3d115b;return this[_0x5156ad(0x20c)]['has'](_0x3aea5b);}['getInitialStates'](_0xba6e91){const _0x2d429d=_0x3d115b;return Array[_0x2d429d(0x1d5)](this[_0x2d429d(0x1d3)])['map'](_0x3c9c27=>_0x3c9c27(_0xba6e91));}}var Ne=Object[_0x3d115b(0x184)],Y=(_0x41ce2c,_0x350d64,_0xf01484,_0x10de0f)=>{const _0x426fb4=_0x3d115b;for(var _0x5d0ea8=_0x10de0f>0x1?void 0x0:_0x10de0f?Ne(_0x350d64,_0xf01484):_0x350d64,_0x2eeacc=_0x41ce2c[_0x426fb4(0x19a)]-0x1,_0x175061;_0x2eeacc>=0x0;_0x2eeacc--)(_0x175061=_0x41ce2c[_0x2eeacc])&&(_0x5d0ea8=_0x175061(_0x5d0ea8)||_0x5d0ea8);return _0x5d0ea8;},_=(_0x1e0ee7,_0x1aa014)=>(_0x1e0e61,_0x95ab10)=>_0x1aa014(_0x1e0e61,_0x95ab10,_0x1e0ee7);let S=class extends _0x346b59{constructor(_0x102359,_0x4d4f06,_0x5e3862){const _0x481dba=_0x3d115b;super(),u(this,_0x481dba(0x18d),new Map()),(this[_0x481dba(0x1b5)]=_0x102359,this[_0x481dba(0x1c4)]=_0x4d4f06,this[_0x481dba(0x18b)]=_0x5e3862,this['_init']());}async[_0x3d115b(0x1b2)](_0x5c9d68){const _0x3d3c71=_0x3d115b;return this[_0x3d3c71(0x18d)][_0x3d3c71(0x1dd)](_0x5c9d68)||await this[_0x3d3c71(0x1aa)](_0x5c9d68),this[_0x3d3c71(0x18d)][_0x3d3c71(0x182)](_0x5c9d68);}[_0x3d115b(0x212)](_0x356585){const _0x408bcb=_0x3d115b;var _0x2664f7;return(_0x2664f7=this[_0x408bcb(0x18d)][_0x408bcb(0x182)](_0x356585))!=null?_0x2664f7:null;}[_0x3d115b(0x1da)](){const _0x21983f=_0x3d115b;this[_0x21983f(0x1b5)]['getTypeOfUnitAdded$'](_0x3088b9[_0x21983f(0x1d0)])[_0x21983f(0x191)](_0x4ccafe(this[_0x21983f(0x1a8)]))[_0x21983f(0x21f)](async _0x212792=>{const _0xd212cf=_0x21983f,_0x4f5acd=_0x212792[_0xd212cf(0x21c)]();this[_0xd212cf(0x18d)][_0xd212cf(0x1dd)](_0x4f5acd)||this['_startLiveShareCoordinator'](_0x4f5acd);}),this[_0x21983f(0x1b5)][_0x21983f(0x1db)](_0x3088b9[_0x21983f(0x1d0)])[_0x21983f(0x191)](_0x4ccafe(this['dispose$']))[_0x21983f(0x21f)](_0x1d5399=>{const _0x515aa3=_0x21983f,_0xcd8e77=_0x1d5399[_0x515aa3(0x21c)](),_0x43a71a=this[_0x515aa3(0x18d)][_0x515aa3(0x182)](_0xcd8e77);_0x43a71a==null||_0x43a71a[_0x515aa3(0x1eb)]();});}async[_0x3d115b(0x1aa)](_0x45bf60){const _0x4c98dd=_0x3d115b,_0x3dde04=await this[_0x4c98dd(0x18b)][_0x4c98dd(0x1a7)](_0x45bf60),_0x296ae7=this[_0x4c98dd(0x1c4)][_0x4c98dd(0x205)](N,_0x45bf60,_0x3dde04);return _0x296ae7[_0x4c98dd(0x218)](),this[_0x4c98dd(0x18d)]['set'](_0x45bf60,_0x296ae7),_0x296ae7;}};S=Y([_(0x0,_0x1d384b),_(0x1,_0x577b1e(_0x4e118f)),_(0x2,_0x577b1e(_0x5b388b))],S);var c=(_0x118b3b=>(_0x118b3b[_0x3d115b(0x217)]=_0x3d115b(0x210),_0x118b3b[_0x3d115b(0x1cc)]='idle',_0x118b3b[_0x3d115b(0x1f3)]=_0x3d115b(0x1f6),_0x118b3b[_0x3d115b(0x1c3)]='not-following',_0x118b3b[_0x3d115b(0x195)]=_0x3d115b(0x196),_0x118b3b))(c||{});const Ce=_0x3d115b(0x1f2),De=0xc8;let N=class extends _0x346b59{constructor(_0x4944fb,_0x298705,_0x6469cc,_0x422494,_0x938e0d){const _0x12af2e=_0x3d115b;super(),u(this,_0x12af2e(0x1fb),new _0x3dca77('idle')),u(this,_0x12af2e(0x17f),this[_0x12af2e(0x1fb)][_0x12af2e(0x1d6)]()),u(this,'_init',!0x1),u(this,'_commandDisposable',null),u(this,_0x12af2e(0x1df),null),(this[_0x12af2e(0x1d7)]=_0x4944fb,this['_collabSession']=_0x298705,this[_0x12af2e(0x1e7)]=_0x6469cc,this[_0x12af2e(0x1cb)]=_0x422494,this['_commandService']=_0x938e0d);}get[_0x3d115b(0x1f8)](){const _0x57172b=_0x3d115b;return this[_0x57172b(0x1fb)][_0x57172b(0x208)]();}['dispose'](){const _0x46155a=_0x3d115b;var _0x30e668;(_0x30e668=this[_0x46155a(0x20f)])==null||_0x30e668[_0x46155a(0x1eb)](),this['_status$'][_0x46155a(0x1b3)]('idle'),this[_0x46155a(0x1fb)][_0x46155a(0x213)]();}[_0x3d115b(0x1ab)](){const _0x3803e3=_0x3d115b;return this[_0x3803e3(0x1f8)];}[_0x3d115b(0x218)](){const _0x1fe957=_0x3d115b;this[_0x1fe957(0x1da)]||(this[_0x1fe957(0x1da)]=!0x0,this[_0x1fe957(0x1e6)]['sessionStatus$']['pipe'](_0x4ccafe(this[_0x1fe957(0x1a8)]))[_0x1fe957(0x21f)](_0x32a882=>{const _0x105a2a=_0x1fe957;switch(_0x32a882){case _0x5e3c97['OFFLINE']:this[_0x105a2a(0x1f9)]();break;case _0x5e3c97[_0x105a2a(0x215)]:this[_0x105a2a(0x1c0)]();break;}}),this[_0x1fe957(0x1e6)][_0x1fe957(0x1ce)]['pipe'](_0x4ccafe(this[_0x1fe957(0x1a8)]))[_0x1fe957(0x21f)](_0x2ceed5=>{const _0x29d180=_0x1fe957,{eventID:_0x4824e1}=_0x2ceed5;switch(_0x4824e1){case _0x993281[_0x29d180(0x1c8)]:this[_0x29d180(0x19d)](_0x2ceed5);break;case _0x993281[_0x29d180(0x1bd)]:this[_0x29d180(0x1e4)](_0x2ceed5);break;case _0x993281[_0x29d180(0x1b6)]:this[_0x29d180(0x1f0)]();break;case _0x993281[_0x29d180(0x1ec)]:this[_0x29d180(0x180)](_0x2ceed5);break;}}));}[_0x3d115b(0x1f5)](){const _0x3a62bd=_0x3d115b;this[_0x3a62bd(0x1e6)]['send']({'eventID':_0x993281['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3a62bd(0x1d7)],'userID':this['_collabSession'][_0x3a62bd(0x1d1)]()}},this[_0x3a62bd(0x1d7)]);}[_0x3d115b(0x192)](){const _0x4666a4=_0x3d115b;this[_0x4666a4(0x1f8)]===_0x4666a4(0x196)&&(this[_0x4666a4(0x1fb)][_0x4666a4(0x1b3)]('idle'),this[_0x4666a4(0x1e6)][_0x4666a4(0x1b1)]({'eventID':_0x993281[_0x4666a4(0x1b6)],'data':{'unitID':this[_0x4666a4(0x1d7)]}},this[_0x4666a4(0x1d7)]));}[_0x3d115b(0x1c9)](){const _0x27805c=_0x3d115b;this[_0x27805c(0x1f8)]===_0x27805c(0x20b)&&(this[_0x27805c(0x1fb)][_0x27805c(0x1b3)]('following'),this[_0x27805c(0x1a3)]());}[_0x3d115b(0x1a6)](){const _0x15df76=_0x3d115b;this[_0x15df76(0x1f8)]===_0x15df76(0x1f6)&&this[_0x15df76(0x226)]();}['_handleNewHost'](_0x1d7e2e){const _0x23de95=_0x3d115b,{presenter:_0x3a8cf2}=_0x1d7e2e[_0x23de95(0x185)],_0x532198=this['_collabSession']['getMemberID']();this[_0x23de95(0x1df)]=_0x3a8cf2,_0x3a8cf2===_0x532198?(this[_0x23de95(0x226)](),this[_0x23de95(0x186)]()):this[_0x23de95(0x1f8)]!==_0x23de95(0x20b)&&(this[_0x23de95(0x209)](),this['_startFollowing']());}['_fetchOperations'](){const _0x169708=_0x3d115b,_0x13b17d={'eventID':_0x993281['LIVESHARE_FETCH_OPERATIONS']};this[_0x169708(0x1e6)]['send'](_0x13b17d,this['_unitID']);}[_0x3d115b(0x1f0)](){const _0x2d0029=_0x3d115b;this[_0x2d0029(0x1df)]=null,this[_0x2d0029(0x1f8)]!==_0x2d0029(0x196)&&this[_0x2d0029(0x1d2)]();}[_0x3d115b(0x180)](_0x14b734){const _0x55fcd7=_0x3d115b;if(this[_0x55fcd7(0x1f8)]===_0x55fcd7(0x1f6)&&this[_0x55fcd7(0x1df)]===_0x14b734[_0x55fcd7(0x185)][_0x55fcd7(0x1de)]){const _0x2bb002=_0xe3d24e(_0x14b734['data'])['mutations'][_0x55fcd7(0x20d)]()[_0x55fcd7(0x1fd)](_0x5e096a=>_0x5e096a['id']===_0x4db54c['id']);if(_0x2bb002){const _0x2cacfb=_0x2bb002[_0x55fcd7(0x181)][_0x55fcd7(0x1e3)],_0x3b8183=_0x2bb002[_0x55fcd7(0x181)][_0x55fcd7(0x188)]['id'];setTimeout(()=>{const _0x2f25ca=_0x55fcd7;this[_0x2f25ca(0x211)]['executeCommand'](_0x871b64['id'],{'unitId':_0x2cacfb,'subUnitId':_0x3b8183},{'fromCollab':!0x0});});}}}[_0x3d115b(0x186)](){const _0x5b1d10=_0x3d115b;this[_0x5b1d10(0x1fb)][_0x5b1d10(0x1b3)](_0x5b1d10(0x196));const _0xf8d406=new Map(),_0x193879=this[_0x5b1d10(0x20f)]=new _0x34f591();_0x193879[_0x5b1d10(0x1f4)](_0x2af3fb(()=>{const _0x37b36e=_0x5b1d10;_0xf8d406[_0x37b36e(0x19b)](_0x46dd7f=>_0x46dd7f['complete']()),_0xf8d406[_0x37b36e(0x197)]();})),_0x193879[_0x5b1d10(0x1f4)](this['_commandService'][_0x5b1d10(0x1f7)](_0x5a7cc0=>{const _0x250f61=_0x5b1d10;var _0x2fb3ff;if(_0x5a7cc0[_0x250f61(0x1f1)]!==_0x1b9ff0['OPERATION']||!this[_0x250f61(0x1cb)]['shouldShareOperation'](_0x5a7cc0['id']))return;const {id:_0x3af4c3}=_0x5a7cc0;let _0x364744;_0xf8d406['has'](_0x3af4c3)?_0x364744=_0xf8d406[_0x250f61(0x182)](_0x3af4c3):(_0x364744=new _0x1bf23e(),_0xf8d406[_0x250f61(0x19c)](_0x3af4c3,_0x364744),_0x364744['pipe'](_0x10a81f((_0x2fb3ff=this[_0x250f61(0x1e7)][_0x250f61(0x1b0)](Ce))!=null?_0x2fb3ff:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x250f61(0x21f)](_0x189833=>{const _0x34f79c=_0x250f61;this['_collabSession'][_0x34f79c(0x1b1)]({'eventID':_0x993281[_0x34f79c(0x1bd)],'data':{'unitID':this[_0x34f79c(0x1d7)],'operations':{[_0x189833['id']]:{'id':_0x189833['id'],'params':JSON[_0x34f79c(0x1ad)](_0x189833['params'])}}}},this[_0x34f79c(0x1d7)]);})),_0x364744['next'](_0x5a7cc0);})),this[_0x5b1d10(0x1cb)][_0x5b1d10(0x183)](this[_0x5b1d10(0x1d7)])[_0x5b1d10(0x19b)](_0x524645=>this[_0x5b1d10(0x1e6)][_0x5b1d10(0x1b1)]({'eventID':_0x993281['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5b1d10(0x1d7)],'operations':{[_0x524645['id']]:{'id':_0x524645['id'],'params':JSON[_0x5b1d10(0x1ad)](_0x524645['params'])}}}},this[_0x5b1d10(0x1d7)]));}[_0x3d115b(0x209)](){const _0xdb6baa=_0x3d115b;var _0x54484d;this[_0xdb6baa(0x1fb)][_0xdb6baa(0x1b3)](_0xdb6baa(0x1b9)),(_0x54484d=this[_0xdb6baa(0x20f)])==null||_0x54484d[_0xdb6baa(0x1eb)](),this[_0xdb6baa(0x20f)]=null;}['_startFollowing'](){const _0x36917f=_0x3d115b;var _0x5f6e23;(_0x5f6e23=this[_0x36917f(0x20f)])==null||_0x5f6e23[_0x36917f(0x1eb)](),this['_status$'][_0x36917f(0x1b3)](_0x36917f(0x1f6));}[_0x3d115b(0x1d2)](){const _0x2daf33=_0x3d115b;var _0x49bf7b;this[_0x2daf33(0x1fb)][_0x2daf33(0x1b3)]('idle'),(_0x49bf7b=this['_commandDisposable'])==null||_0x49bf7b[_0x2daf33(0x1eb)](),this[_0x2daf33(0x20f)]=null;}[_0x3d115b(0x226)](){const _0x37ef58=_0x3d115b;var _0x5844c0;this[_0x37ef58(0x1fb)]['next']('not-following'),(_0x5844c0=this[_0x37ef58(0x20f)])==null||_0x5844c0[_0x37ef58(0x1eb)]();}[_0x3d115b(0x1e4)](_0x2c3190){const _0x3f0f03=_0x3d115b;if(['presenting','not-following',_0x3f0f03(0x210)][_0x3f0f03(0x204)](this['_status'])||!_0x2c3190[_0x3f0f03(0x185)][_0x3f0f03(0x227)]||_0x2c3190[_0x3f0f03(0x185)][_0x3f0f03(0x227)]===this[_0x3f0f03(0x1e6)][_0x3f0f03(0x1d1)]())return;this[_0x3f0f03(0x1f8)]===_0x3f0f03(0x1b9)&&this[_0x3f0f03(0x1a3)]();const _0xcfa6b=_0x2c3190[_0x3f0f03(0x185)][_0x3f0f03(0x1a9)];Object[_0x3f0f03(0x1af)](_0xcfa6b)['forEach'](_0x4ea591=>{const _0x2c8053=_0x3f0f03;this['_commandService'][_0x2c8053(0x193)](_0x4ea591['id'],_0x4ea591[_0x2c8053(0x181)]?JSON[_0x2c8053(0x229)](_0x4ea591[_0x2c8053(0x181)]):null,{'fromCollab':!0x0});});}[_0x3d115b(0x1f9)](){const _0x2b8b6e=_0x3d115b;var _0x377a42;this['_status$'][_0x2b8b6e(0x1b3)](_0x2b8b6e(0x210)),(_0x377a42=this[_0x2b8b6e(0x20f)])==null||_0x377a42[_0x2b8b6e(0x1eb)]();}[_0x3d115b(0x1c0)](){const _0x22ee67=_0x3d115b;this['_status$'][_0x22ee67(0x1b3)](_0x22ee67(0x1b9)),this['_fetchOperations']();}};N=Y([_(0x2,_0x332024),_(0x3,_0x577b1e(L)),_(0x4,_0x5b24bd)],N);function Le(){const _0xb61340=_0x3d115b,_0x330dd0=_0x32938e(S),_0xd0c67a=_0x32938e(_0x1d384b),_0x141823=_0x305896(()=>_0xd0c67a[_0xb61340(0x1b7)](_0x3088b9[_0xb61340(0x1d0)]),void 0x0,!0x1,[]),[_0x5ba85a,_0x407846]=_0x4d351d(null),[_0x2525d0,_0x4d3053]=_0x4d351d(c[_0xb61340(0x1cc)]),_0x128890=_0x1df2a9(null);return _0x463e26(()=>(_0x141823&&_0x330dd0[_0xb61340(0x1b2)](_0x141823[_0xb61340(0x21c)]())[_0xb61340(0x1dc)](_0x2cc010=>{const _0x118459=_0xb61340;_0x407846(_0x2cc010),_0x128890[_0x118459(0x18e)]=_0x2cc010[_0x118459(0x17f)][_0x118459(0x21f)](_0x34f406=>{_0x4d3053(_0x34f406);});}),()=>{const _0x50093f=_0xb61340;var _0x18af26;(_0x18af26=_0x128890[_0x50093f(0x18e)])==null||_0x18af26[_0x50093f(0x1d9)](),_0x128890['current']=null;}),[_0x141823,_0x330dd0]),_0x5ba85a?_0x567ad8(_0x1d0e01,{'align':'end','disabled':_0x2525d0===c[_0xb61340(0x217)],'className':_0xb61340(0x225),'overlay':_0x567ad8(Re,{'status':_0x2525d0,'coordinator':_0x5ba85a}),'children':_0x567ad8('button',{'className':_0xc920a1('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2525d0===c[_0xb61340(0x217)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2525d0!==c[_0xb61340(0x217)]}),'type':'button','children':_0x567ad8(W,{'className':_0xb61340(0x1bc)})})}):null;}function Re(_0x1eccd1){const _0x433b21=_0x3d115b,{status:_0x49c1f1,coordinator:_0x21cc42}=_0x1eccd1;switch(_0x49c1f1){case c[_0x433b21(0x1cc)]:return _0x567ad8($e,{'coordinator':_0x21cc42});case c['FOLLOWING']:return _0x567ad8(xe,{'coordinator':_0x21cc42});case c['NOT_FOLLOWING']:return _0x567ad8(Pe,{'coordinator':_0x21cc42});case c[_0x433b21(0x217)]:return _0x567ad8(Te,{});case c[_0x433b21(0x195)]:return _0x567ad8(Ae,{'coordinator':_0x21cc42});default:return null;}}function $e(_0x574574){const _0x1121f8=_0x3d115b,{coordinator:_0x599f00}=_0x574574;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x1121f8(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1121f8(0x21b)}),_0x567ad8(_0x473b7d,{'onClick':()=>_0x599f00['tryStartPresenting'](),'children':_0x1121f8(0x1e9)})]});}function xe(_0x1591bc){const _0x421d86=_0x3d115b,{coordinator:_0x2eb1e7}=_0x1591bc;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x421d86(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x421d86(0x206)}),_0x567ad8(_0x473b7d,{'onClick':()=>_0x2eb1e7[_0x421d86(0x1a6)](),'children':_0x421d86(0x199)})]});}function Pe(_0x131f74){const _0x4fc2ef=_0x3d115b,{coordinator:_0x666fe9}=_0x131f74;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x4fc2ef(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4fc2ef(0x1ae)}),_0x567ad8(_0x473b7d,{'variant':'text','onClick':()=>_0x666fe9['startFollowing'](),'children':_0x4fc2ef(0x1c6)})]});}function Ae(_0x6f69ac){const _0x3cbddd=_0x3d115b,{coordinator:_0x233646}=_0x6f69ac;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x3cbddd(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3cbddd(0x1a2)}),_0x567ad8(_0x473b7d,{'variant':_0x3cbddd(0x1ed),'onClick':()=>_0x233646['stopPresenting'](),'children':_0x3cbddd(0x1fe)})]});}function Te(){const _0x3d9158=_0x3d115b;return _0x567ad8(_0xaba553,{'children':_0x3d9158(0x198)});}var Fe=Object[_0x3d115b(0x184)],He=(_0x5d8579,_0x47ab83,_0x494b5c,_0x23f112)=>{const _0x266b35=_0x3d115b;for(var _0x14b5a3=_0x23f112>0x1?void 0x0:_0x23f112?Fe(_0x47ab83,_0x494b5c):_0x47ab83,_0x17c2e0=_0x5d8579[_0x266b35(0x19a)]-0x1,_0x1f1eda;_0x17c2e0>=0x0;_0x17c2e0--)(_0x1f1eda=_0x5d8579[_0x17c2e0])&&(_0x14b5a3=_0x1f1eda(_0x14b5a3)||_0x14b5a3);return _0x14b5a3;},A=(_0x5a1819,_0xa51087)=>(_0x46bc5c,_0x1faa84)=>_0xa51087(_0x46bc5c,_0x1faa84,_0x5a1819);let m=class extends _0x87d3da{constructor(_0x3d9c8d,_0x5f0b87){const _0x3bc300=_0x3d115b;super(),this['_injector']=_0x3d9c8d,this['_uiPartsService']=_0x5f0b87,this[_0x3bc300(0x1cf)]();}[_0x3d115b(0x1cf)](){const _0x360c27=_0x3d115b;this[_0x360c27(0x1cd)](this[_0x360c27(0x1ba)][_0x360c27(0x19f)](_0x523e83['HEADER_MENU'],()=>_0x32b998(Le,this['_injector'])));}};m=He([A(0x0,_0x577b1e(_0x4e118f)),A(0x1,_0x5c986b)],m);const ye=_0x3d115b(0x1a4),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x269b8e,_0xd4ecde,_0x578c94,_0x463b65)=>{const _0xc50249=_0x3d115b;for(var _0x2b9198=_0x463b65>0x1?void 0x0:_0x463b65?Ue(_0xd4ecde,_0x578c94):_0xd4ecde,_0x54e774=_0x269b8e[_0xc50249(0x19a)]-0x1,_0x422c92;_0x54e774>=0x0;_0x54e774--)(_0x422c92=_0x269b8e[_0x54e774])&&(_0x2b9198=_0x422c92(_0x2b9198)||_0x2b9198);return _0x2b9198;},je=(_0x21f658,_0x2ce4ce)=>(_0xfd58e4,_0x2177fd)=>_0x2ce4ce(_0xfd58e4,_0x2177fd,_0x21f658);let I=class extends _0x87d3da{constructor(_0x1724f9){const _0x1f8772=_0x3d115b;super(),this['_liveShareService']=_0x1724f9,this[_0x1f8772(0x1da)]();}[_0x3d115b(0x1da)](){[_0x2fe506['id'],_0x33c19d['id'],_0x871b64['id']]['forEach'](_0x3eee4a=>{const _0x3aef92=_0x2aa9;this[_0x3aef92(0x1cd)](this[_0x3aef92(0x1cb)]['registerSharedOperation'](_0x3eee4a));});}};I=Ve([je(0x0,_0x577b1e(L))],I);var Me=Object[_0x3d115b(0x1bf)],ke=Object[_0x3d115b(0x184)],Ge=(_0x437603,_0x5b1b32,_0x308fc6)=>_0x5b1b32 in _0x437603?Me(_0x437603,_0x5b1b32,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x308fc6}):_0x437603[_0x5b1b32]=_0x308fc6,We=(_0x2db0e1,_0x451381,_0x4792fb,_0x28e983)=>{for(var _0x1878ec=_0x28e983>0x1?void 0x0:_0x28e983?ke(_0x451381,_0x4792fb):_0x451381,_0x42267e=_0x2db0e1['length']-0x1,_0x2ce274;_0x42267e>=0x0;_0x42267e--)(_0x2ce274=_0x2db0e1[_0x42267e])&&(_0x1878ec=_0x2ce274(_0x1878ec)||_0x1878ec);return _0x1878ec;},F=(_0x30df85,_0x4521d6)=>(_0x1bd40e,_0x8b67c6)=>_0x4521d6(_0x1bd40e,_0x8b67c6,_0x30df85),B=(_0x56b064,_0x58a088,_0x1b81e7)=>Ge(_0x56b064,typeof _0x58a088!=_0x3d115b(0x1e8)?_0x58a088+'':_0x58a088,_0x1b81e7);function _0x56b3(){const _0x16021c=['FOLLOWING','add','tryStartPresenting','following','onCommandExecuted','_status','_handleOffline','30IWDsgc','_status$','1330286KOVgwT','find','Stop\x20presenting','substring','1326976FsBVyf','tag','attrs','mask','includes','createInstance','You\x27re\x20following\x20the\x20presenter','7vBnCXi','getValue','_stopPresenting','delete','not-following','_sharedOperations','reverse','map','_commandDisposable','offline','_commandService','getLiveShareCoordinatorSync','complete','onStarting','ONLINE','evenodd','OFFLINE','init','trim','4610AWthPZ','Present\x20this\x20document','getUnitId','defIds','currentColor','subscribe','use','1em','children','onRendered','override','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','_stopFollowing','presenter','div','parse','status$','_handleNewChangeSets','params','get','getInitialStates','getOwnPropertyDescriptor','data','_startPresenting','UNIVER_LIVE_SHARE_PLUGIN','sheet','shouldShareOperation','registerSharedOperation','_collabSessionService','path','_entities','current','xlink:href','url(#$1','pipe','stopPresenting','executeCommand','colorChannel1','PRESENTING','presenting','clear','You\x27are\x20offline.','Stop\x20following','length','forEach','set','_handleNewHost','1507bijEMY','registerComponent','svg','4ZuuNYN','You\x27re\x20presenting\x20the\x20document','_startFollowing','live-share.config','entries','stopFollowing','requireSession','dispose$','operations','_startLiveShareCoordinator','getStatus','3322998PXjeIU','stringify','You\x27re\x20not\x20following\x20the\x20presenter','values','getConfig','send','getLiveShareCoordinator','next','univerjs-icon\x20univerjs-icon-','_univerInstanceService','LIVESHARE_TERMINATE','getCurrentTypeOfUnit$','pluginName','idle','_uiPartsService','live-share-icon','univer-size-4','LIVESHARE_OPERATION','http://www.w3.org/2000/svg','defineProperty','_handleOnline','LiveShareIcon','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','NOT_FOLLOWING','_injector','registerInitialStateReporter','Start\x20following','408527ZlXwYj','LIVESHARE_NEW_HOST','startFollowing','fill','_liveShareService','IDLE','disposeWithMe','event$','_mountLiveShare','UNIVER_SHEET','getMemberID','_beIdle','_reporters','873006YWFiyO','from','asObservable','_unitID','_config','unsubscribe','_init','getTypeOfUnitDisposed$','then','has','memberID','_presenter','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','displayName','replace','unitId','_handleOperation','0\x200\x2017\x2017','_collabSession','_configService','symbol','Start','idSuffix','dispose','NEW_CHANGESETS','default','string','2366031dwuqaE','_handleTerminate','type','SAME_OPERATION_SHARE_INTERVAL'];_0x56b3=function(){return _0x16021c;};return _0x56b3();}const Ye=_0x3d115b(0x187);let b=class extends _0x4b1824{constructor(_0xd518e7=T,_0x5f23f7,_0x5745af){const _0xec64b4=_0x3d115b;super(),this[_0xec64b4(0x1d8)]=_0xd518e7,this[_0xec64b4(0x1c4)]=_0x5f23f7,this['_configService']=_0x5745af;const {..._0x23af25}=_0x4a94f8({},T,this[_0xec64b4(0x1d8)]);this['_configService']['setConfig'](ye,_0x23af25);}[_0x3d115b(0x214)](){const _0x5f378f=_0x3d115b;_0x51b5fa(this[_0x5f378f(0x1c4)],_0x215342([[L],[S],[I],[m]],this[_0x5f378f(0x1d8)][_0x5f378f(0x224)])),_0x2b00b4(this[_0x5f378f(0x1c4)],[[I]]);}[_0x3d115b(0x223)](){const _0x4ab7eb=_0x3d115b;_0x2b00b4(this[_0x4ab7eb(0x1c4)],[[m]]);}};B(b,_0x3d115b(0x1f1),_0x3088b9['UNIVER_UNKNOWN']),B(b,_0x3d115b(0x1b8),Ye),b=We([_0x3cc453(_0x545bb7),F(0x1,_0x577b1e(_0x4e118f)),F(0x2,_0x332024)],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 _0x544e9e=_0x1f2d;(function(_0x2e449e,_0x33e76d){const _0x5654ee=_0x1f2d,_0x3753e8=_0x2e449e();while(!![]){try{const _0x2c6b55=parseInt(_0x5654ee(0x1b9))/0x1+parseInt(_0x5654ee(0x1b6))/0x2+-parseInt(_0x5654ee(0x187))/0x3+parseInt(_0x5654ee(0x185))/0x4*(parseInt(_0x5654ee(0x19e))/0x5)+-parseInt(_0x5654ee(0x16d))/0x6+-parseInt(_0x5654ee(0x14f))/0x7*(parseInt(_0x5654ee(0x158))/0x8)+parseInt(_0x5654ee(0x197))/0x9;if(_0x2c6b55===_0x33e76d)break;else _0x3753e8['push'](_0x3753e8['shift']());}catch(_0x273676){_0x3753e8['push'](_0x3753e8['shift']());}}}(_0x39bc,0x6d38e));var J=Object[_0x544e9e(0x1a7)],K=(_0x2926ab,_0x186520,_0x4eaa2d)=>_0x186520 in _0x2926ab?J(_0x2926ab,_0x186520,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4eaa2d}):_0x2926ab[_0x186520]=_0x4eaa2d,u=(_0x1250e4,_0xee87fe,_0x33cf16)=>K(_0x1250e4,typeof _0xee87fe!='symbol'?_0xee87fe+'':_0xee87fe,_0x33cf16);import{Disposable as _0x3dce28,toDisposable as _0x28496c,IUniverInstanceService as _0x1bb9e7,Inject as _0x1e336b,Injector as _0x267c92,IConfigService as _0x3a8011,ICommandService as _0x19c6ee,RxDisposable as _0x32d1ad,UniverInstanceType as _0x2352a5,DisposableCollection as _0x371ceb,CommandType as _0x55beed,DependentOn as _0x4ea2aa,Plugin as _0xd4af45,merge as _0x21916a,registerDependencies as _0x4a1a17,mergeOverrideWithDependencies as _0x3b4db0,touchDependencies as _0x3bcbb9}from'@univerjs/core';import{useDependency as _0x3188a9,useObservable as _0x4c9888,IUIPartsService as _0x1abdc4,BuiltInUIPart as _0x318ff3,connectInjector as _0x573a0a}from'@univerjs/ui';import{jsx as _0x158892,jsxs as _0x1c053d,Fragment as _0x2d0f7d}from'react/jsx-runtime';import{Dropdown as _0x4384ad,clsx as _0x57f05e,Button as _0x2d28cf}from'@univerjs/design';import{useRef as _0x3183ed,createElement as _0x17f992,forwardRef as _0x445412,useState as _0x551170,useEffect as _0x365eaf}from'react';import{CollaborationEvent as _0x5b5b48,parseProtocolChangeset as _0x3025fd}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1b8d5e,SessionStatus as _0x4dc649,UniverCollaborationClientPlugin as _0xec1ae4}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x56bf8c,SetWorksheetActiveOperation as _0x4754ab}from'@univerjs/sheets';import{BehaviorSubject as _0x4f1003,Subject as _0x3050f3}from'rxjs';import{takeUntil as _0x4147ac,throttleTime as _0x4a1338}from'rxjs/operators';import{SetZoomRatioOperation as _0x21a324,SetScrollOperation as _0x24df0e}from'@univerjs/sheets-ui';function k({ref:_0x2dc064,..._0x2ade3b}){const _0x3e5180=_0x544e9e,{icon:_0x26c7c2,id:_0x33009c,className:_0x1895ee,extend:_0x4f1b59,..._0x3b8929}=_0x2ade3b,_0x555c88=(_0x3e5180(0x17d)+_0x33009c+'\x20'+(_0x1895ee||''))[_0x3e5180(0x195)](),_0x4fe338=_0x3183ed('_'+Oe());return G(_0x26c7c2,''+_0x33009c,{'defIds':_0x26c7c2[_0x3e5180(0x13b)],'idSuffix':_0x4fe338['current']},{'ref':_0x2dc064,'className':_0x555c88,..._0x3b8929},_0x4f1b59);}function G(_0x10a10a,_0x579ae4,_0x1a4962,_0x505638,_0x546443){const _0x4a89cf=_0x544e9e;return _0x17f992(_0x10a10a[_0x4a89cf(0x190)],{'key':_0x579ae4,...be(_0x10a10a,_0x1a4962,_0x546443),..._0x505638},(Ee(_0x10a10a,_0x1a4962)[_0x4a89cf(0x131)]||[])['map']((_0x5186ff,_0x362a7f)=>G(_0x5186ff,_0x579ae4+'-'+_0x10a10a[_0x4a89cf(0x190)]+'-'+_0x362a7f,_0x1a4962,void 0x0,_0x546443)));}function be(_0x507104,_0x35d504,_0x192612){const _0x28d1b7=_0x544e9e,_0x8c97ce={..._0x507104[_0x28d1b7(0x175)]};_0x192612!=null&&_0x192612[_0x28d1b7(0x137)]&&_0x8c97ce[_0x28d1b7(0x19b)]===_0x28d1b7(0x137)&&(_0x8c97ce[_0x28d1b7(0x19b)]=_0x192612[_0x28d1b7(0x137)]),_0x507104[_0x28d1b7(0x190)]==='mask'&&_0x8c97ce['id']&&(_0x8c97ce['id']=_0x8c97ce['id']+_0x35d504[_0x28d1b7(0x1aa)]),Object[_0x28d1b7(0x13e)](_0x8c97ce)[_0x28d1b7(0x1a3)](([_0xd0caa,_0x3495c5])=>{const _0x37ddfc=_0x28d1b7;_0xd0caa===_0x37ddfc(0x167)&&typeof _0x3495c5==_0x37ddfc(0x189)&&(_0x8c97ce[_0xd0caa]=_0x3495c5[_0x37ddfc(0x1af)](/url\(#(.*)\)/,_0x37ddfc(0x139)+_0x35d504[_0x37ddfc(0x1aa)]+')'));});const {defIds:_0xc3ea13}=_0x35d504;return!_0xc3ea13||_0xc3ea13['length']===0x0||(_0x507104[_0x28d1b7(0x190)]===_0x28d1b7(0x188)&&_0x8c97ce[_0x28d1b7(0x1b1)]&&(_0x8c97ce[_0x28d1b7(0x1b1)]=_0x8c97ce['xlink:href']+_0x35d504['idSuffix']),Object[_0x28d1b7(0x13e)](_0x8c97ce)[_0x28d1b7(0x1a3)](([_0x2b82ce,_0x4f1618])=>{const _0x130d6f=_0x28d1b7;typeof _0x4f1618=='string'&&(_0x8c97ce[_0x2b82ce]=_0x4f1618[_0x130d6f(0x1af)](/url\(#(.*)\)/,_0x130d6f(0x139)+_0x35d504[_0x130d6f(0x1aa)]+')'));})),_0x8c97ce;}function Ee(_0xece95d,_0x4e128a){const _0x51fc09=_0x544e9e;var _0x59f594;const {defIds:_0x1ab232}=_0x4e128a;return!_0x1ab232||_0x1ab232['length']===0x0?_0xece95d:_0xece95d['tag']===_0x51fc09(0x17f)&&((_0x59f594=_0xece95d[_0x51fc09(0x131)])!=null&&_0x59f594[_0x51fc09(0x1b3)])?{..._0xece95d,'children':_0xece95d[_0x51fc09(0x131)][_0x51fc09(0x1ab)](_0x5ab715=>typeof _0x5ab715['attrs']['id']==_0x51fc09(0x189)&&_0x1ab232&&_0x1ab232[_0x51fc09(0x160)](_0x5ab715['attrs']['id'])?{..._0x5ab715,'attrs':{..._0x5ab715['attrs'],'id':_0x5ab715['attrs']['id']+_0x4e128a['idSuffix']}}:_0x5ab715)}:_0xece95d;}function Oe(){const _0x2cc90c=_0x544e9e;return Math[_0x2cc90c(0x177)]()[_0x2cc90c(0x1c4)](0x24)[_0x2cc90c(0x16a)](0x2,0x8);}k[_0x544e9e(0x12d)]=_0x544e9e(0x156);const we={'tag':_0x544e9e(0x184),'attrs':{'xmlns':_0x544e9e(0x198),'fill':'none','viewBox':_0x544e9e(0x16e),'width':_0x544e9e(0x135),'height':_0x544e9e(0x135)},'children':[{'tag':'path','attrs':{'fill':_0x544e9e(0x134),'d':_0x544e9e(0x15a)}},{'tag':_0x544e9e(0x12b),'attrs':{'fill':_0x544e9e(0x134),'d':_0x544e9e(0x1bb),'fillRule':_0x544e9e(0x166),'clipRule':_0x544e9e(0x166)}}]},W=_0x445412(function(_0x257aab,_0x12274c){const _0x1983cc=_0x544e9e;return _0x17f992(k,Object[_0x1983cc(0x133)]({},_0x257aab,{'id':_0x1983cc(0x194),'ref':_0x12274c,'icon':we}));});W[_0x544e9e(0x12d)]='LiveShareIcon';class L extends _0x3dce28{constructor(){const _0xe8f80c=_0x544e9e;super(...arguments),u(this,_0xe8f80c(0x1ba),new Set()),u(this,_0xe8f80c(0x1a9),new Set());}[_0x544e9e(0x18e)](_0x50c157){const _0xd11d2c=_0x544e9e;return this[_0xd11d2c(0x1ba)][_0xd11d2c(0x192)](_0x50c157),_0x28496c(()=>this[_0xd11d2c(0x1ba)]['delete'](_0x50c157));}[_0x544e9e(0x150)](_0x25b233){const _0x14f87d=_0x544e9e;return this[_0x14f87d(0x1a9)][_0x14f87d(0x192)](_0x25b233),_0x28496c(()=>this['_reporters']['delete'](_0x25b233));}[_0x544e9e(0x1be)](_0x4a7aee){const _0x4c88b3=_0x544e9e;return this[_0x4c88b3(0x1ba)]['has'](_0x4a7aee);}[_0x544e9e(0x1ae)](_0x142892){const _0x3d8f19=_0x544e9e;return Array['from'](this[_0x3d8f19(0x1a9)])['map'](_0x3f619a=>_0x3f619a(_0x142892));}}var Ne=Object[_0x544e9e(0x16b)],Y=(_0x56854e,_0x1028e9,_0x134516,_0x172aa0)=>{const _0x4e7c6c=_0x544e9e;for(var _0x2f73af=_0x172aa0>0x1?void 0x0:_0x172aa0?Ne(_0x1028e9,_0x134516):_0x1028e9,_0x30666d=_0x56854e[_0x4e7c6c(0x1b3)]-0x1,_0xf8be8a;_0x30666d>=0x0;_0x30666d--)(_0xf8be8a=_0x56854e[_0x30666d])&&(_0x2f73af=_0xf8be8a(_0x2f73af)||_0x2f73af);return _0x2f73af;},_=(_0x3f2449,_0x127208)=>(_0x52945f,_0x4d2f26)=>_0x127208(_0x52945f,_0x4d2f26,_0x3f2449);let S=class extends _0x32d1ad{constructor(_0x5b65ba,_0x44bf05,_0x2f1853){const _0x3afbd4=_0x544e9e;super(),u(this,'_entities',new Map()),(this[_0x3afbd4(0x163)]=_0x5b65ba,this[_0x3afbd4(0x148)]=_0x44bf05,this[_0x3afbd4(0x1c7)]=_0x2f1853,this[_0x3afbd4(0x1b0)]());}async[_0x544e9e(0x1bd)](_0x386a17){const _0x396357=_0x544e9e;return this['_entities'][_0x396357(0x183)](_0x386a17)||await this['_startLiveShareCoordinator'](_0x386a17),this[_0x396357(0x15d)][_0x396357(0x1b5)](_0x386a17);}[_0x544e9e(0x130)](_0x352bbd){const _0x4803af=_0x544e9e;var _0x11855d;return(_0x11855d=this[_0x4803af(0x15d)][_0x4803af(0x1b5)](_0x352bbd))!=null?_0x11855d:null;}['_init'](){const _0x21178f=_0x544e9e;this[_0x21178f(0x163)][_0x21178f(0x176)](_0x2352a5[_0x21178f(0x19d)])[_0x21178f(0x1c2)](_0x4147ac(this[_0x21178f(0x18b)]))['subscribe'](async _0x53e096=>{const _0x23a6b7=_0x21178f,_0x2fbf04=_0x53e096[_0x23a6b7(0x142)]();this[_0x23a6b7(0x15d)][_0x23a6b7(0x183)](_0x2fbf04)||this['_startLiveShareCoordinator'](_0x2fbf04);}),this[_0x21178f(0x163)][_0x21178f(0x164)](_0x2352a5[_0x21178f(0x19d)])[_0x21178f(0x1c2)](_0x4147ac(this[_0x21178f(0x18b)]))[_0x21178f(0x144)](_0x561234=>{const _0x55b23a=_0x21178f,_0x33b6c0=_0x561234[_0x55b23a(0x142)](),_0x4aa589=this[_0x55b23a(0x15d)][_0x55b23a(0x1b5)](_0x33b6c0);_0x4aa589==null||_0x4aa589['dispose']();});}async[_0x544e9e(0x169)](_0x27d017){const _0x30adc4=_0x544e9e,_0x46a53d=await this[_0x30adc4(0x1c7)]['requireSession'](_0x27d017),_0x583572=this[_0x30adc4(0x148)][_0x30adc4(0x1a5)](N,_0x27d017,_0x46a53d);return _0x583572[_0x30adc4(0x18c)](),this['_entities'][_0x30adc4(0x1a6)](_0x27d017,_0x583572),_0x583572;}};S=Y([_(0x0,_0x1bb9e7),_(0x1,_0x1e336b(_0x267c92)),_(0x2,_0x1e336b(_0x1b8d5e))],S);var c=(_0x74ebd5=>(_0x74ebd5[_0x544e9e(0x15b)]=_0x544e9e(0x152),_0x74ebd5[_0x544e9e(0x18a)]=_0x544e9e(0x181),_0x74ebd5[_0x544e9e(0x1c3)]=_0x544e9e(0x12a),_0x74ebd5[_0x544e9e(0x13d)]=_0x544e9e(0x145),_0x74ebd5['PRESENTING']=_0x544e9e(0x140),_0x74ebd5))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x32d1ad{constructor(_0xfc62af,_0x4269ff,_0x5e2e10,_0x5207fe,_0x469ab8){const _0x3747d7=_0x544e9e;super(),u(this,'_status$',new _0x4f1003('idle')),u(this,_0x3747d7(0x1ad),this[_0x3747d7(0x170)][_0x3747d7(0x159)]()),u(this,_0x3747d7(0x1b0),!0x1),u(this,_0x3747d7(0x1a2),null),u(this,_0x3747d7(0x182),null),(this[_0x3747d7(0x14e)]=_0xfc62af,this[_0x3747d7(0x1c5)]=_0x4269ff,this[_0x3747d7(0x1bf)]=_0x5e2e10,this[_0x3747d7(0x138)]=_0x5207fe,this[_0x3747d7(0x14c)]=_0x469ab8);}get[_0x544e9e(0x16f)](){const _0x4a30a6=_0x544e9e;return this[_0x4a30a6(0x170)]['getValue']();}['dispose'](){const _0x3b294=_0x544e9e;var _0x39dc95;(_0x39dc95=this[_0x3b294(0x1a2)])==null||_0x39dc95[_0x3b294(0x13a)](),this[_0x3b294(0x170)][_0x3b294(0x147)]('idle'),this[_0x3b294(0x170)]['complete']();}[_0x544e9e(0x132)](){const _0x46d235=_0x544e9e;return this[_0x46d235(0x16f)];}[_0x544e9e(0x18c)](){const _0x46ba01=_0x544e9e;this['_init']||(this['_init']=!0x0,this[_0x46ba01(0x1c5)][_0x46ba01(0x146)][_0x46ba01(0x1c2)](_0x4147ac(this[_0x46ba01(0x18b)]))[_0x46ba01(0x144)](_0xb016d0=>{const _0x4e1c77=_0x46ba01;switch(_0xb016d0){case _0x4dc649['OFFLINE']:this[_0x4e1c77(0x1ac)]();break;case _0x4dc649[_0x4e1c77(0x155)]:this[_0x4e1c77(0x1c1)]();break;}}),this[_0x46ba01(0x1c5)][_0x46ba01(0x1c8)][_0x46ba01(0x1c2)](_0x4147ac(this[_0x46ba01(0x18b)]))['subscribe'](_0x5619a8=>{const _0x542e9a=_0x46ba01,{eventID:_0x51c10b}=_0x5619a8;switch(_0x51c10b){case _0x5b5b48['LIVESHARE_NEW_HOST']:this[_0x542e9a(0x168)](_0x5619a8);break;case _0x5b5b48[_0x542e9a(0x1bc)]:this['_handleOperation'](_0x5619a8);break;case _0x5b5b48['LIVESHARE_TERMINATE']:this[_0x542e9a(0x199)]();break;case _0x5b5b48[_0x542e9a(0x15c)]:this['_handleNewChangeSets'](_0x5619a8);break;}}));}[_0x544e9e(0x19c)](){const _0x59e3a6=_0x544e9e;this[_0x59e3a6(0x1c5)][_0x59e3a6(0x19f)]({'eventID':_0x5b5b48['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession']['getMemberID']()}},this[_0x59e3a6(0x14e)]);}[_0x544e9e(0x136)](){const _0x326f84=_0x544e9e;this[_0x326f84(0x16f)]===_0x326f84(0x140)&&(this[_0x326f84(0x170)]['next'](_0x326f84(0x181)),this[_0x326f84(0x1c5)][_0x326f84(0x19f)]({'eventID':_0x5b5b48[_0x326f84(0x1a8)],'data':{'unitID':this[_0x326f84(0x14e)]}},this[_0x326f84(0x14e)]));}[_0x544e9e(0x13f)](){const _0x57279b=_0x544e9e;this[_0x57279b(0x16f)]==='not-following'&&(this[_0x57279b(0x170)]['next'](_0x57279b(0x12a)),this[_0x57279b(0x18f)]());}['stopFollowing'](){const _0x3d56e4=_0x544e9e;this[_0x3d56e4(0x16f)]==='following'&&this[_0x3d56e4(0x13c)]();}[_0x544e9e(0x168)](_0x2bd8ee){const _0x383cc8=_0x544e9e,{presenter:_0x1c4b5e}=_0x2bd8ee[_0x383cc8(0x151)],_0x20c060=this[_0x383cc8(0x1c5)]['getMemberID']();this['_presenter']=_0x1c4b5e,_0x1c4b5e===_0x20c060?(this[_0x383cc8(0x13c)](),this[_0x383cc8(0x1ca)]()):this[_0x383cc8(0x16f)]!==_0x383cc8(0x145)&&(this[_0x383cc8(0x15e)](),this['_startFollowing']());}[_0x544e9e(0x191)](){const _0x48ac1b=_0x544e9e,_0x3d82e2={'eventID':_0x5b5b48[_0x48ac1b(0x1b8)]};this['_collabSession']['send'](_0x3d82e2,this['_unitID']);}[_0x544e9e(0x199)](){const _0x5c8d35=_0x544e9e;this[_0x5c8d35(0x182)]=null,this[_0x5c8d35(0x16f)]!==_0x5c8d35(0x140)&&this['_beIdle']();}[_0x544e9e(0x180)](_0x3f47a5){const _0x30e791=_0x544e9e;if(this[_0x30e791(0x16f)]==='following'&&this[_0x30e791(0x182)]===_0x3f47a5[_0x30e791(0x151)]['memberID']){const _0x3dbd3f=_0x3025fd(_0x3f47a5['data'])['mutations'][_0x30e791(0x179)]()[_0x30e791(0x1c9)](_0x5b8b61=>_0x5b8b61['id']===_0x56bf8c['id']);if(_0x3dbd3f){const _0x2f3c94=_0x3dbd3f['params']['unitId'],_0x2f72f8=_0x3dbd3f[_0x30e791(0x186)][_0x30e791(0x162)]['id'];setTimeout(()=>{const _0x27d00f=_0x30e791;this[_0x27d00f(0x14c)][_0x27d00f(0x19a)](_0x4754ab['id'],{'unitId':_0x2f3c94,'subUnitId':_0x2f72f8},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x12576a=_0x544e9e;this[_0x12576a(0x170)][_0x12576a(0x147)]('presenting');const _0x20bdcf=new Map(),_0x44f9a8=this[_0x12576a(0x1a2)]=new _0x371ceb();_0x44f9a8[_0x12576a(0x192)](_0x28496c(()=>{const _0x5aab28=_0x12576a;_0x20bdcf['forEach'](_0x5a9530=>_0x5a9530['complete']()),_0x20bdcf[_0x5aab28(0x1b2)]();})),_0x44f9a8[_0x12576a(0x192)](this['_commandService'][_0x12576a(0x1c6)](_0x59d69c=>{const _0x32c7d7=_0x12576a;var _0x79f683;if(_0x59d69c['type']!==_0x55beed['OPERATION']||!this['_liveShareService'][_0x32c7d7(0x1be)](_0x59d69c['id']))return;const {id:_0x4ace84}=_0x59d69c;let _0xb7aa6;_0x20bdcf[_0x32c7d7(0x183)](_0x4ace84)?_0xb7aa6=_0x20bdcf[_0x32c7d7(0x1b5)](_0x4ace84):(_0xb7aa6=new _0x3050f3(),_0x20bdcf['set'](_0x4ace84,_0xb7aa6),_0xb7aa6['pipe'](_0x4a1338((_0x79f683=this[_0x32c7d7(0x1bf)][_0x32c7d7(0x12f)](Ce))!=null?_0x79f683:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x32c7d7(0x144)](_0x3d4b47=>{const _0x41325e=_0x32c7d7;this[_0x41325e(0x1c5)][_0x41325e(0x19f)]({'eventID':_0x5b5b48[_0x41325e(0x1bc)],'data':{'unitID':this[_0x41325e(0x14e)],'operations':{[_0x3d4b47['id']]:{'id':_0x3d4b47['id'],'params':JSON[_0x41325e(0x1c0)](_0x3d4b47[_0x41325e(0x186)])}}}},this['_unitID']);})),_0xb7aa6[_0x32c7d7(0x147)](_0x59d69c);})),this[_0x12576a(0x138)]['getInitialStates'](this[_0x12576a(0x14e)])[_0x12576a(0x1a3)](_0x33bfad=>this[_0x12576a(0x1c5)][_0x12576a(0x19f)]({'eventID':_0x5b5b48[_0x12576a(0x1bc)],'data':{'unitID':this[_0x12576a(0x14e)],'operations':{[_0x33bfad['id']]:{'id':_0x33bfad['id'],'params':JSON[_0x12576a(0x1c0)](_0x33bfad[_0x12576a(0x186)])}}}},this[_0x12576a(0x14e)]));}[_0x544e9e(0x15e)](){const _0x2860f1=_0x544e9e;var _0x58ca2a;this[_0x2860f1(0x170)][_0x2860f1(0x147)](_0x2860f1(0x181)),(_0x58ca2a=this['_commandDisposable'])==null||_0x58ca2a[_0x2860f1(0x13a)](),this[_0x2860f1(0x1a2)]=null;}['_startFollowing'](){const _0x3a38dd=_0x544e9e;var _0x15e469;(_0x15e469=this['_commandDisposable'])==null||_0x15e469[_0x3a38dd(0x13a)](),this[_0x3a38dd(0x170)][_0x3a38dd(0x147)](_0x3a38dd(0x12a));}['_beIdle'](){const _0x2f6d88=_0x544e9e;var _0x1ae790;this[_0x2f6d88(0x170)][_0x2f6d88(0x147)]('idle'),(_0x1ae790=this['_commandDisposable'])==null||_0x1ae790[_0x2f6d88(0x13a)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x5b3455=_0x544e9e;var _0x363a6f;this[_0x5b3455(0x170)][_0x5b3455(0x147)](_0x5b3455(0x145)),(_0x363a6f=this[_0x5b3455(0x1a2)])==null||_0x363a6f[_0x5b3455(0x13a)]();}[_0x544e9e(0x172)](_0x129085){const _0x32828=_0x544e9e;if([_0x32828(0x140),_0x32828(0x145),'offline']['includes'](this['_status'])||!_0x129085['data'][_0x32828(0x173)]||_0x129085[_0x32828(0x151)]['presenter']===this['_collabSession']['getMemberID']())return;this['_status']===_0x32828(0x181)&&this[_0x32828(0x18f)]();const _0x9f1b48=_0x129085[_0x32828(0x151)][_0x32828(0x153)];Object['values'](_0x9f1b48)[_0x32828(0x1a3)](_0xba0e90=>{const _0x2d1b9d=_0x32828;this[_0x2d1b9d(0x14c)][_0x2d1b9d(0x19a)](_0xba0e90['id'],_0xba0e90[_0x2d1b9d(0x186)]?JSON[_0x2d1b9d(0x141)](_0xba0e90[_0x2d1b9d(0x186)]):null,{'fromCollab':!0x0});});}[_0x544e9e(0x1ac)](){const _0x2f6614=_0x544e9e;var _0x59c869;this[_0x2f6614(0x170)]['next'](_0x2f6614(0x152)),(_0x59c869=this['_commandDisposable'])==null||_0x59c869[_0x2f6614(0x13a)]();}[_0x544e9e(0x1c1)](){const _0x59be4a=_0x544e9e;this[_0x59be4a(0x170)]['next'](_0x59be4a(0x181)),this[_0x59be4a(0x191)]();}};N=Y([_(0x2,_0x3a8011),_(0x3,_0x1e336b(L)),_(0x4,_0x19c6ee)],N);function Le(){const _0x2683cf=_0x544e9e,_0x56ca50=_0x3188a9(S),_0x3c1f55=_0x3188a9(_0x1bb9e7),_0x50bca7=_0x4c9888(()=>_0x3c1f55[_0x2683cf(0x129)](_0x2352a5[_0x2683cf(0x19d)]),void 0x0,!0x1,[]),[_0x5bc611,_0x436fe0]=_0x551170(null),[_0x38c47a,_0x125fe2]=_0x551170(c[_0x2683cf(0x18a)]),_0x48dd09=_0x3183ed(null);return _0x365eaf(()=>(_0x50bca7&&_0x56ca50[_0x2683cf(0x1bd)](_0x50bca7['getUnitId']())[_0x2683cf(0x15f)](_0x51b48e=>{const _0x24d390=_0x2683cf;_0x436fe0(_0x51b48e),_0x48dd09[_0x24d390(0x17c)]=_0x51b48e[_0x24d390(0x1ad)][_0x24d390(0x144)](_0x58bb3a=>{_0x125fe2(_0x58bb3a);});}),()=>{const _0x1b3f7d=_0x2683cf;var _0x3b9415;(_0x3b9415=_0x48dd09[_0x1b3f7d(0x17c)])==null||_0x3b9415[_0x1b3f7d(0x1a4)](),_0x48dd09[_0x1b3f7d(0x17c)]=null;}),[_0x50bca7,_0x56ca50]),_0x5bc611?_0x158892(_0x4384ad,{'align':'end','disabled':_0x38c47a===c['OFFLINE'],'className':'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','overlay':_0x158892(Re,{'status':_0x38c47a,'coordinator':_0x5bc611}),'children':_0x158892('button',{'className':_0x57f05e(_0x2683cf(0x17b),{'univer-cursor-not-allowed':_0x38c47a===c[_0x2683cf(0x15b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x38c47a!==c['OFFLINE']}),'type':'button','children':_0x158892(W,{'className':_0x2683cf(0x1b7)})})}):null;}function Re(_0x405eb7){const _0x1a6c44=_0x544e9e,{status:_0x52f23e,coordinator:_0x52aac7}=_0x405eb7;switch(_0x52f23e){case c[_0x1a6c44(0x18a)]:return _0x158892($e,{'coordinator':_0x52aac7});case c[_0x1a6c44(0x1c3)]:return _0x158892(xe,{'coordinator':_0x52aac7});case c['NOT_FOLLOWING']:return _0x158892(Pe,{'coordinator':_0x52aac7});case c[_0x1a6c44(0x15b)]:return _0x158892(Te,{});case c['PRESENTING']:return _0x158892(Ae,{'coordinator':_0x52aac7});default:return null;}}function $e(_0x457661){const _0x537e6e=_0x544e9e,{coordinator:_0x40984e}=_0x457661;return _0x1c053d(_0x2d0f7d,{'children':[_0x158892(_0x537e6e(0x193),{'className':_0x537e6e(0x18d),'children':'Present\x20this\x20document'}),_0x158892(_0x2d28cf,{'onClick':()=>_0x40984e['tryStartPresenting'](),'children':_0x537e6e(0x1b4)})]});}function xe(_0x317529){const _0x3ca834=_0x544e9e,{coordinator:_0x1b57ab}=_0x317529;return _0x1c053d(_0x2d0f7d,{'children':[_0x158892(_0x3ca834(0x193),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3ca834(0x17a)}),_0x158892(_0x2d28cf,{'onClick':()=>_0x1b57ab[_0x3ca834(0x14d)](),'children':_0x3ca834(0x154)})]});}function Pe(_0xb59395){const _0x93f7a8=_0x544e9e,{coordinator:_0x301bbd}=_0xb59395;return _0x1c053d(_0x2d0f7d,{'children':[_0x158892(_0x93f7a8(0x193),{'className':_0x93f7a8(0x18d),'children':_0x93f7a8(0x12e)}),_0x158892(_0x2d28cf,{'variant':_0x93f7a8(0x17e),'onClick':()=>_0x301bbd[_0x93f7a8(0x13f)](),'children':'Start\x20following'})]});}function Ae(_0x25fde0){const _0x12a075=_0x544e9e,{coordinator:_0x1ff7fe}=_0x25fde0;return _0x1c053d(_0x2d0f7d,{'children':[_0x158892(_0x12a075(0x193),{'className':_0x12a075(0x18d),'children':_0x12a075(0x128)}),_0x158892(_0x2d28cf,{'variant':_0x12a075(0x174),'onClick':()=>_0x1ff7fe[_0x12a075(0x136)](),'children':_0x12a075(0x14b)})]});}function Te(){const _0x34a6ab=_0x544e9e;return _0x158892(_0x2d0f7d,{'children':_0x34a6ab(0x143)});}var Fe=Object[_0x544e9e(0x16b)],He=(_0x505ece,_0x163387,_0x6913b8,_0x207676)=>{for(var _0x56fb8b=_0x207676>0x1?void 0x0:_0x207676?Fe(_0x163387,_0x6913b8):_0x163387,_0x539255=_0x505ece['length']-0x1,_0x273356;_0x539255>=0x0;_0x539255--)(_0x273356=_0x505ece[_0x539255])&&(_0x56fb8b=_0x273356(_0x56fb8b)||_0x56fb8b);return _0x56fb8b;},A=(_0x593ba2,_0x57f439)=>(_0x5cc590,_0x27342f)=>_0x57f439(_0x5cc590,_0x27342f,_0x593ba2);let m=class extends _0x3dce28{constructor(_0x65567,_0x2ef8de){super(),this['_injector']=_0x65567,this['_uiPartsService']=_0x2ef8de,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x2de4d5=_0x544e9e;this['disposeWithMe'](this[_0x2de4d5(0x165)][_0x2de4d5(0x12c)](_0x318ff3['HEADER_MENU'],()=>_0x573a0a(Le,this[_0x2de4d5(0x148)])));}};m=He([A(0x0,_0x1e336b(_0x267c92)),A(0x1,_0x1abdc4)],m);function _0x1f2d(_0x18f93f,_0x41af8f){_0x18f93f=_0x18f93f-0x128;const _0x39bc88=_0x39bc();let _0x1f2df8=_0x39bc88[_0x18f93f];return _0x1f2df8;}const ye=_0x544e9e(0x1a0),T={};var Ue=Object[_0x544e9e(0x16b)],Ve=(_0x1d89f4,_0x3d4c8a,_0x296ca9,_0x419b91)=>{const _0x25563c=_0x544e9e;for(var _0x9ac241=_0x419b91>0x1?void 0x0:_0x419b91?Ue(_0x3d4c8a,_0x296ca9):_0x3d4c8a,_0x223331=_0x1d89f4[_0x25563c(0x1b3)]-0x1,_0x720049;_0x223331>=0x0;_0x223331--)(_0x720049=_0x1d89f4[_0x223331])&&(_0x9ac241=_0x720049(_0x9ac241)||_0x9ac241);return _0x9ac241;},je=(_0x36b7d3,_0x2c6208)=>(_0x17ad42,_0x3f3d27)=>_0x2c6208(_0x17ad42,_0x3f3d27,_0x36b7d3);let I=class extends _0x3dce28{constructor(_0x114e29){const _0x225e93=_0x544e9e;super(),this[_0x225e93(0x138)]=_0x114e29,this['_init']();}[_0x544e9e(0x1b0)](){const _0x4ca90f=_0x544e9e;[_0x21a324['id'],_0x24df0e['id'],_0x4754ab['id']][_0x4ca90f(0x1a3)](_0x557701=>{const _0x2d89a9=_0x4ca90f;this['disposeWithMe'](this[_0x2d89a9(0x138)]['registerSharedOperation'](_0x557701));});}};I=Ve([je(0x0,_0x1e336b(L))],I);var Me=Object[_0x544e9e(0x1a7)],ke=Object[_0x544e9e(0x16b)],Ge=(_0x1eb444,_0x47a481,_0x1c85fb)=>_0x47a481 in _0x1eb444?Me(_0x1eb444,_0x47a481,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c85fb}):_0x1eb444[_0x47a481]=_0x1c85fb,We=(_0x34781e,_0x2a257e,_0x530e33,_0x141db3)=>{for(var _0x14d2d6=_0x141db3>0x1?void 0x0:_0x141db3?ke(_0x2a257e,_0x530e33):_0x2a257e,_0xf5fc87=_0x34781e['length']-0x1,_0x2705fa;_0xf5fc87>=0x0;_0xf5fc87--)(_0x2705fa=_0x34781e[_0xf5fc87])&&(_0x14d2d6=_0x2705fa(_0x14d2d6)||_0x14d2d6);return _0x14d2d6;},F=(_0x17a250,_0x3045d7)=>(_0x50c160,_0x2f7f43)=>_0x3045d7(_0x50c160,_0x2f7f43,_0x17a250),B=(_0x218ae8,_0x121b3f,_0x22dea3)=>Ge(_0x218ae8,typeof _0x121b3f!=_0x544e9e(0x16c)?_0x121b3f+'':_0x121b3f,_0x22dea3);const Ye='UNIVER_LIVE_SHARE_PLUGIN';function _0x39bc(){const _0x3bf1f2=['dispose$','init','univer-mb-3\x20univer-w-full\x20univer-text-sm','registerSharedOperation','_startFollowing','tag','_fetchOperations','add','div','live-share-icon','trim','UNIVER_UNKNOWN','998433PefZyu','http://www.w3.org/2000/svg','_handleTerminate','executeCommand','fill','tryStartPresenting','UNIVER_SHEET','2063885HmChwa','send','live-share.config','override','_commandDisposable','forEach','unsubscribe','createInstance','set','defineProperty','LIVESHARE_TERMINATE','_reporters','idSuffix','map','_handleOffline','status$','getInitialStates','replace','_init','xlink:href','clear','length','Start','get','359912aROIGW','univer-size-4','LIVESHARE_FETCH_OPERATIONS','782837jnHCYm','_sharedOperations','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','LIVESHARE_OPERATION','getLiveShareCoordinator','shouldShareOperation','_configService','stringify','_handleOnline','pipe','FOLLOWING','toString','_collabSession','onCommandExecuted','_collabSessionService','event$','find','_startPresenting','You\x27re\x20presenting\x20the\x20document','getCurrentTypeOfUnit$','following','path','registerComponent','displayName','You\x27re\x20not\x20following\x20the\x20presenter','getConfig','getLiveShareCoordinatorSync','children','getStatus','assign','currentColor','1em','stopPresenting','colorChannel1','_liveShareService','url(#$1','dispose','defIds','_stopFollowing','NOT_FOLLOWING','entries','startFollowing','presenting','parse','getUnitId','You\x27are\x20offline.','subscribe','not-following','sessionStatus$','next','_injector','_config','pluginName','Stop\x20presenting','_commandService','stopFollowing','_unitID','91483LTVVZe','registerInitialStateReporter','data','offline','operations','Stop\x20following','ONLINE','UniverIcon','type','232DkhmHr','asObservable','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','OFFLINE','NEW_CHANGESETS','_entities','_stopPresenting','then','includes','onStarting','sheet','_univerInstanceService','getTypeOfUnitDisposed$','_uiPartsService','evenodd','mask','_handleNewHost','_startLiveShareCoordinator','substring','getOwnPropertyDescriptor','symbol','1666470TXGxBt','0\x200\x2017\x2017','_status','_status$','onRendered','_handleOperation','presenter','default','attrs','getTypeOfUnitAdded$','random','setConfig','reverse','You\x27re\x20following\x20the\x20presenter','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','current','univerjs-icon\x20univerjs-icon-','text','defs','_handleNewChangeSets','idle','_presenter','has','svg','4bbBnXN','params','1147161Ycujuu','use','string','IDLE'];_0x39bc=function(){return _0x3bf1f2;};return _0x39bc();}let b=class extends _0xd4af45{constructor(_0x53fcf5=T,_0x360611,_0x11e07a){const _0x33e909=_0x544e9e;super(),this[_0x33e909(0x149)]=_0x53fcf5,this[_0x33e909(0x148)]=_0x360611,this['_configService']=_0x11e07a;const {..._0x11c246}=_0x21916a({},T,this[_0x33e909(0x149)]);this['_configService'][_0x33e909(0x178)](ye,_0x11c246);}[_0x544e9e(0x161)](){const _0x26d2aa=_0x544e9e;_0x4a1a17(this[_0x26d2aa(0x148)],_0x3b4db0([[L],[S],[I],[m]],this['_config'][_0x26d2aa(0x1a1)])),_0x3bcbb9(this[_0x26d2aa(0x148)],[[I]]);}[_0x544e9e(0x171)](){const _0x1d9f5c=_0x544e9e;_0x3bcbb9(this[_0x1d9f5c(0x148)],[[m]]);}};B(b,_0x544e9e(0x157),_0x2352a5[_0x544e9e(0x196)]),B(b,_0x544e9e(0x14a),Ye),b=We([_0x4ea2aa(_0xec1ae4),F(0x1,_0x1e336b(_0x267c92)),F(0x2,_0x3a8011)],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
- const _0x30a585=_0x1a2f;(function(_0x2ba1d7,_0x42ae8e){const _0x2cf796=_0x1a2f,_0x176f68=_0x2ba1d7();while(!![]){try{const _0x41a298=parseInt(_0x2cf796(0x1d5))/0x1*(parseInt(_0x2cf796(0x1c5))/0x2)+-parseInt(_0x2cf796(0x1d4))/0x3+-parseInt(_0x2cf796(0x1da))/0x4+-parseInt(_0x2cf796(0x1ca))/0x5+parseInt(_0x2cf796(0x1cf))/0x6+parseInt(_0x2cf796(0x1c7))/0x7*(parseInt(_0x2cf796(0x1be))/0x8)+parseInt(_0x2cf796(0x1d2))/0x9;if(_0x41a298===_0x42ae8e)break;else _0x176f68['push'](_0x176f68['shift']());}catch(_0x4e5b26){_0x176f68['push'](_0x176f68['shift']());}}}(_0xa7aa,0xe6b2e));import{LiveShareController as _0x1b0e5a,LiveShareStatus as _0x3c5ca6}from'@univerjs-pro/live-share';function _0x1a2f(_0x48b678,_0x40a9ec){_0x48b678=_0x48b678-0x1be;const _0xa7aa98=_0xa7aa();let _0x1a2f84=_0xa7aa98[_0x48b678];return _0x1a2f84;}import{IRenderManagerService as _0xe3c4aa}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x42229a}from'@univerjs/sheets';import{SetScrollOperation as _0xad1144}from'@univerjs/sheets-ui';import{FRange as _0x34e1c5}from'@univerjs/sheets/facade';import{FUniver as _0x51335c,FEnum as _0x53e57c}from'@univerjs/core/facade';class I extends _0x34e1c5{[_0x30a585(0x1dc)](_0x25b83b,_0x7dcd5e,_0x45f3ac,_0x3acdd8,_0x231b74){const _0x1fdcab=_0x30a585,_0x15ab42=_0x25b83b[_0x1fdcab(0x1c0)](_0x1b0e5a),_0x4d7876=_0x25b83b[_0x1fdcab(0x1c0)](_0xe3c4aa),_0x390b69=_0x7dcd5e[_0x1fdcab(0x1c6)](),_0x5c01dd=_0x7dcd5e[_0x1fdcab(0x1cb)](),_0x402fa4=_0x15ab42[_0x1fdcab(0x1c2)](_0x390b69);(_0x402fa4==null?void 0x0:_0x402fa4['getStatus']())!==_0x3c5ca6[_0x1fdcab(0x1ce)]||(_0x45f3ac[_0x1fdcab(0x1cd)]()!==_0x5c01dd['getSheetId']()&&this[_0x1fdcab(0x1bf)][_0x1fdcab(0x1d8)](_0x42229a['id'],{'unitId':_0x390b69,'subUnitId':_0x45f3ac[_0x1fdcab(0x1cd)]()}),!_0x4d7876[_0x1fdcab(0x1c1)](_0x390b69))||_0x231b74[_0x1fdcab(0x1c9)](_0xad1144['id'],{'unitId':_0x7dcd5e[_0x1fdcab(0x1c6)](),'sheetId':_0x45f3ac['getSheetId'](),'sheetViewStartRow':_0x3acdd8[_0x1fdcab(0x1c4)],'sheetViewStartColumn':_0x3acdd8['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x34e1c5[_0x30a585(0x1d1)](I);function _0xa7aa(){const _0x32722d=['getLiveShareCoordinatorSync','tryStartPresenting','startRow','200958Uzmbin','getUnitId','1496299FJlsJD','getActiveWorkbook','syncExecuteCommand','3460205TcoOsc','getActiveSheet','getId','getSheetId','PRESENTING','2767572vyAkgi','startFollowing','extend','17955369NutIBc','IDLE','5666760MGgkOa','2uvvuSW','getLiveShareStatus','No\x20active\x20workbook\x20found.','executeCommand','stopFollowing','2510628YxSyiB','_injector','_initialize','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','56QVydMm','_commandService','get','getRenderById'];_0xa7aa=function(){return _0x32722d;};return _0xa7aa();}class m extends _0x51335c{[_0x30a585(0x1d6)](){const _0x3fa364=_0x30a585;var _0x266652,_0x298c5a;const _0x2fdf19=this['_injector'][_0x3fa364(0x1c0)](_0x1b0e5a),_0x5ef7ba=(_0x266652=this['getActiveWorkbook']())==null?void 0x0:_0x266652[_0x3fa364(0x1cc)]();if(!_0x5ef7ba)throw new Error(_0x3fa364(0x1d7));const _0x3ff71b=_0x2fdf19[_0x3fa364(0x1c2)](_0x5ef7ba);return(_0x298c5a=_0x3ff71b==null?void 0x0:_0x3ff71b['getStatus']())!=null?_0x298c5a:_0x3c5ca6[_0x3fa364(0x1d3)];}[_0x30a585(0x1d0)](){const _0x50fa10=_0x30a585;var _0x1932b6;const _0x55edcd=this[_0x50fa10(0x1db)][_0x50fa10(0x1c0)](_0x1b0e5a),_0xbaf4e4=(_0x1932b6=this[_0x50fa10(0x1c8)]())==null?void 0x0:_0x1932b6[_0x50fa10(0x1cc)]();if(!_0xbaf4e4)throw new Error(_0x50fa10(0x1d7));const _0xed849f=_0x55edcd[_0x50fa10(0x1c2)](_0xbaf4e4);if(!_0xed849f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xed849f[_0x50fa10(0x1d0)]();}[_0x30a585(0x1d9)](){const _0x1ba9d9=_0x30a585;var _0x4a8691;const _0x3d0350=this[_0x1ba9d9(0x1db)][_0x1ba9d9(0x1c0)](_0x1b0e5a),_0x401c6f=(_0x4a8691=this[_0x1ba9d9(0x1c8)]())==null?void 0x0:_0x4a8691[_0x1ba9d9(0x1cc)]();if(!_0x401c6f)throw new Error(_0x1ba9d9(0x1d7));const _0xf4ff0d=_0x3d0350[_0x1ba9d9(0x1c2)](_0x401c6f);if(!_0xf4ff0d)throw new Error(_0x1ba9d9(0x1dd));_0xf4ff0d['stopFollowing']();}['startPresenting'](){const _0x1208e4=_0x30a585;var _0x34fb8d;const _0x508514=this[_0x1208e4(0x1db)][_0x1208e4(0x1c0)](_0x1b0e5a),_0xb16a14=(_0x34fb8d=this[_0x1208e4(0x1c8)]())==null?void 0x0:_0x34fb8d['getId']();if(!_0xb16a14)throw new Error('No\x20active\x20workbook\x20found.');const _0x47955f=_0x508514[_0x1208e4(0x1c2)](_0xb16a14);if(!_0x47955f)throw new Error(_0x1208e4(0x1dd));_0x47955f[_0x1208e4(0x1c3)]();}['stopPresenting'](){const _0x3cac34=_0x30a585;var _0x2227da;const _0x456943=this[_0x3cac34(0x1db)][_0x3cac34(0x1c0)](_0x1b0e5a),_0x4bafad=(_0x2227da=this[_0x3cac34(0x1c8)]())==null?void 0x0:_0x2227da[_0x3cac34(0x1cc)]();if(!_0x4bafad)throw new Error('No\x20active\x20workbook\x20found.');const _0x170742=_0x456943[_0x3cac34(0x1c2)](_0x4bafad);if(!_0x170742)throw new Error(_0x3cac34(0x1dd));_0x170742['stopPresenting']();}}_0x51335c[_0x30a585(0x1d1)](m);class C extends _0x53e57c{get['LiveShareStatusEnum'](){return _0x3c5ca6;}}_0x53e57c[_0x30a585(0x1d1)](C);
1
+ const _0x426154=_0x8a89;(function(_0x116d59,_0x4b69ff){const _0x11a702=_0x8a89,_0x1f659f=_0x116d59();while(!![]){try{const _0x3bd634=-parseInt(_0x11a702(0x107))/0x1+-parseInt(_0x11a702(0xf7))/0x2*(parseInt(_0x11a702(0xee))/0x3)+-parseInt(_0x11a702(0x101))/0x4+-parseInt(_0x11a702(0xeb))/0x5*(parseInt(_0x11a702(0x105))/0x6)+parseInt(_0x11a702(0xec))/0x7+-parseInt(_0x11a702(0xf3))/0x8*(parseInt(_0x11a702(0xed))/0x9)+parseInt(_0x11a702(0x10a))/0xa;if(_0x3bd634===_0x4b69ff)break;else _0x1f659f['push'](_0x1f659f['shift']());}catch(_0x1129b9){_0x1f659f['push'](_0x1f659f['shift']());}}}(_0x9fc7,0xc9dd4));import{LiveShareController as _0x1b0bc7,LiveShareStatus as _0x4a414c}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x208de2}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x4fb1a4}from'@univerjs/sheets';import{SetScrollOperation as _0x5a4d9c}from'@univerjs/sheets-ui';import{FRange as _0x59a437}from'@univerjs/sheets/facade';import{FUniver as _0x5289b2,FEnum as _0x5e7752}from'@univerjs/core/facade';function _0x9fc7(){const _0x3b31d3=['stopFollowing','18055ODAiOQ','startRow','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','39928370yxDsSF','getLiveShareCoordinatorSync','No\x20active\x20workbook\x20found.','3786520hdFuaP','5557755xZeDbx','10359CWcros','33315KqItDy','startColumn','_injector','getActiveWorkbook','getActiveSheet','4872HafWPb','PRESENTING','executeCommand','LiveShareStatusEnum','104TOgvzp','getSheetId','getStatus','get','IDLE','getUnitId','syncExecuteCommand','tryStartPresenting','startFollowing','getId','4595536NdSFxI','_commandService','extend','getRenderById','12fvwmHi'];_0x9fc7=function(){return _0x3b31d3;};return _0x9fc7();}class I extends _0x59a437{['_initialize'](_0x101dc0,_0x4055a3,_0x1de88f,_0x2090f1,_0x17a018){const _0x1e27c8=_0x8a89,_0x2a7e19=_0x101dc0[_0x1e27c8(0xfa)](_0x1b0bc7),_0x9c2e36=_0x101dc0[_0x1e27c8(0xfa)](_0x208de2),_0x3deccb=_0x4055a3[_0x1e27c8(0xfc)](),_0x385007=_0x4055a3[_0x1e27c8(0xf2)](),_0x148b32=_0x2a7e19[_0x1e27c8(0x10b)](_0x3deccb);(_0x148b32==null?void 0x0:_0x148b32[_0x1e27c8(0xf9)]())!==_0x4a414c[_0x1e27c8(0xf4)]||(_0x1de88f[_0x1e27c8(0xf8)]()!==_0x385007[_0x1e27c8(0xf8)]()&&this[_0x1e27c8(0x102)][_0x1e27c8(0xf5)](_0x4fb1a4['id'],{'unitId':_0x3deccb,'subUnitId':_0x1de88f['getSheetId']()}),!_0x9c2e36[_0x1e27c8(0x104)](_0x3deccb))||_0x17a018[_0x1e27c8(0xfd)](_0x5a4d9c['id'],{'unitId':_0x4055a3[_0x1e27c8(0xfc)](),'sheetId':_0x1de88f[_0x1e27c8(0xf8)](),'sheetViewStartRow':_0x2090f1[_0x1e27c8(0x108)],'sheetViewStartColumn':_0x2090f1[_0x1e27c8(0xef)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x59a437[_0x426154(0x103)](I);class m extends _0x5289b2{['getLiveShareStatus'](){const _0x1fb26e=_0x426154;var _0xed5654,_0x52c2b4;const _0x1b6745=this[_0x1fb26e(0xf0)][_0x1fb26e(0xfa)](_0x1b0bc7),_0x469945=(_0xed5654=this[_0x1fb26e(0xf1)]())==null?void 0x0:_0xed5654[_0x1fb26e(0x100)]();if(!_0x469945)throw new Error(_0x1fb26e(0x10c));const _0x4bdae4=_0x1b6745['getLiveShareCoordinatorSync'](_0x469945);return(_0x52c2b4=_0x4bdae4==null?void 0x0:_0x4bdae4['getStatus']())!=null?_0x52c2b4:_0x4a414c[_0x1fb26e(0xfb)];}[_0x426154(0xff)](){const _0x47f8f1=_0x426154;var _0xc1e9bf;const _0x123bb8=this[_0x47f8f1(0xf0)][_0x47f8f1(0xfa)](_0x1b0bc7),_0x51a492=(_0xc1e9bf=this[_0x47f8f1(0xf1)]())==null?void 0x0:_0xc1e9bf[_0x47f8f1(0x100)]();if(!_0x51a492)throw new Error('No\x20active\x20workbook\x20found.');const _0x3064e0=_0x123bb8[_0x47f8f1(0x10b)](_0x51a492);if(!_0x3064e0)throw new Error(_0x47f8f1(0x109));_0x3064e0[_0x47f8f1(0xff)]();}[_0x426154(0x106)](){const _0x199c5f=_0x426154;var _0x1df549;const _0x2d8f5e=this[_0x199c5f(0xf0)]['get'](_0x1b0bc7),_0xf65f2e=(_0x1df549=this['getActiveWorkbook']())==null?void 0x0:_0x1df549[_0x199c5f(0x100)]();if(!_0xf65f2e)throw new Error(_0x199c5f(0x10c));const _0x48ee09=_0x2d8f5e[_0x199c5f(0x10b)](_0xf65f2e);if(!_0x48ee09)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x48ee09[_0x199c5f(0x106)]();}['startPresenting'](){const _0x3a1edb=_0x426154;var _0x235b79;const _0x20ebd6=this['_injector'][_0x3a1edb(0xfa)](_0x1b0bc7),_0x3e8bc2=(_0x235b79=this[_0x3a1edb(0xf1)]())==null?void 0x0:_0x235b79[_0x3a1edb(0x100)]();if(!_0x3e8bc2)throw new Error(_0x3a1edb(0x10c));const _0x426a99=_0x20ebd6[_0x3a1edb(0x10b)](_0x3e8bc2);if(!_0x426a99)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x426a99[_0x3a1edb(0xfe)]();}['stopPresenting'](){const _0x212719=_0x426154;var _0x41b88b;const _0x45e990=this[_0x212719(0xf0)]['get'](_0x1b0bc7),_0x4ae917=(_0x41b88b=this['getActiveWorkbook']())==null?void 0x0:_0x41b88b[_0x212719(0x100)]();if(!_0x4ae917)throw new Error(_0x212719(0x10c));const _0x5aaa49=_0x45e990[_0x212719(0x10b)](_0x4ae917);if(!_0x5aaa49)throw new Error(_0x212719(0x109));_0x5aaa49['stopPresenting']();}}_0x5289b2['extend'](m);class C extends _0x5e7752{get[_0x426154(0xf6)](){return _0x4a414c;}}function _0x8a89(_0x4d9246,_0x46d4b5){_0x4d9246=_0x4d9246-0xeb;const _0x9fc7e3=_0x9fc7();let _0x8a8918=_0x9fc7e3[_0x4d9246];return _0x8a8918;}_0x5e7752['extend'](C);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x3d115b=_0x2aa9;(function(_0x2765d0,_0x182ad0){const _0x88694a=_0x2aa9,_0x29f9b2=_0x2765d0();while(!![]){try{const _0x3f5a28=-parseInt(_0x88694a(0x1c7))/0x1+parseInt(_0x88694a(0x1fc))/0x2+parseInt(_0x88694a(0x1ef))/0x3*(parseInt(_0x88694a(0x1a1))/0x4)+parseInt(_0x88694a(0x1fa))/0x5*(-parseInt(_0x88694a(0x1d4))/0x6)+-parseInt(_0x88694a(0x207))/0x7*(parseInt(_0x88694a(0x200))/0x8)+parseInt(_0x88694a(0x1ac))/0x9+parseInt(_0x88694a(0x21a))/0xa*(parseInt(_0x88694a(0x19e))/0xb);if(_0x3f5a28===_0x182ad0)break;else _0x29f9b2['push'](_0x29f9b2['shift']());}catch(_0x3b6548){_0x29f9b2['push'](_0x29f9b2['shift']());}}}(_0x56b3,0x6b20a));var J=Object[_0x3d115b(0x1bf)],K=(_0x137beb,_0x2edb27,_0x120002)=>_0x2edb27 in _0x137beb?J(_0x137beb,_0x2edb27,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x120002}):_0x137beb[_0x2edb27]=_0x120002,u=(_0x4151d0,_0x402d2f,_0x3a11ad)=>K(_0x4151d0,typeof _0x402d2f!=_0x3d115b(0x1e8)?_0x402d2f+'':_0x402d2f,_0x3a11ad);import{Disposable as _0x87d3da,toDisposable as _0x2af3fb,IUniverInstanceService as _0x1d384b,Inject as _0x577b1e,Injector as _0x4e118f,IConfigService as _0x332024,ICommandService as _0x5b24bd,RxDisposable as _0x346b59,UniverInstanceType as _0x3088b9,DisposableCollection as _0x34f591,CommandType as _0x1b9ff0,DependentOn as _0x3cc453,Plugin as _0x4b1824,merge as _0x4a94f8,registerDependencies as _0x51b5fa,mergeOverrideWithDependencies as _0x215342,touchDependencies as _0x2b00b4}from'@univerjs/core';import{useDependency as _0x32938e,useObservable as _0x305896,IUIPartsService as _0x5c986b,BuiltInUIPart as _0x523e83,connectInjector as _0x32b998}from'@univerjs/ui';import{jsx as _0x567ad8,jsxs as _0x1873ad,Fragment as _0xaba553}from'react/jsx-runtime';import{Dropdown as _0x1d0e01,clsx as _0xc920a1,Button as _0x473b7d}from'@univerjs/design';import{useRef as _0x1df2a9,createElement as _0x267537,forwardRef as _0x2c3eb3,useState as _0x4d351d,useEffect as _0x463e26}from'react';import{CollaborationEvent as _0x993281,parseProtocolChangeset as _0xe3d24e}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x5b388b,SessionStatus as _0x5e3c97,UniverCollaborationClientPlugin as _0x545bb7}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4db54c,SetWorksheetActiveOperation as _0x871b64}from'@univerjs/sheets';function _0x2aa9(_0x390fb9,_0x13cd74){_0x390fb9=_0x390fb9-0x17f;const _0x56b3c6=_0x56b3();let _0x2aa949=_0x56b3c6[_0x390fb9];return _0x2aa949;}import{BehaviorSubject as _0x3dca77,Subject as _0x1bf23e}from'rxjs';import{takeUntil as _0x4ccafe,throttleTime as _0x10a81f}from'rxjs/operators';import{SetZoomRatioOperation as _0x2fe506,SetScrollOperation as _0x33c19d}from'@univerjs/sheets-ui';function k({ref:_0x9b34d2,..._0x2290a9}){const _0x306692=_0x3d115b,{icon:_0x2c2160,id:_0x459ded,className:_0x14210c,extend:_0x6c6fa3,..._0x48aaf8}=_0x2290a9,_0x17dc02=(_0x306692(0x1b4)+_0x459ded+'\x20'+(_0x14210c||''))[_0x306692(0x219)](),_0x36eccc=_0x1df2a9('_'+Oe());return G(_0x2c2160,''+_0x459ded,{'defIds':_0x2c2160[_0x306692(0x21d)],'idSuffix':_0x36eccc['current']},{'ref':_0x9b34d2,'className':_0x17dc02,..._0x48aaf8},_0x6c6fa3);}function G(_0xf3815b,_0x2c5615,_0x355677,_0x545477,_0x188599){const _0xdead6d=_0x3d115b;return _0x267537(_0xf3815b[_0xdead6d(0x201)],{'key':_0x2c5615,...be(_0xf3815b,_0x355677,_0x188599),..._0x545477},(Ee(_0xf3815b,_0x355677)[_0xdead6d(0x222)]||[])[_0xdead6d(0x20e)]((_0x3592a1,_0x57c104)=>G(_0x3592a1,_0x2c5615+'-'+_0xf3815b['tag']+'-'+_0x57c104,_0x355677,void 0x0,_0x188599)));}function be(_0x4158dd,_0x4e0612,_0x8fc515){const _0x4da175=_0x3d115b,_0x33f590={..._0x4158dd['attrs']};_0x8fc515!=null&&_0x8fc515['colorChannel1']&&_0x33f590[_0x4da175(0x1ca)]===_0x4da175(0x194)&&(_0x33f590[_0x4da175(0x1ca)]=_0x8fc515[_0x4da175(0x194)]),_0x4158dd['tag']===_0x4da175(0x203)&&_0x33f590['id']&&(_0x33f590['id']=_0x33f590['id']+_0x4e0612['idSuffix']),Object[_0x4da175(0x1a5)](_0x33f590)[_0x4da175(0x19b)](([_0x3d452f,_0x5ae30b])=>{const _0x56acb6=_0x4da175;_0x3d452f===_0x56acb6(0x203)&&typeof _0x5ae30b==_0x56acb6(0x1ee)&&(_0x33f590[_0x3d452f]=_0x5ae30b[_0x56acb6(0x1e2)](/url\(#(.*)\)/,'url(#$1'+_0x4e0612[_0x56acb6(0x1ea)]+')'));});const {defIds:_0x400008}=_0x4e0612;return!_0x400008||_0x400008[_0x4da175(0x19a)]===0x0||(_0x4158dd[_0x4da175(0x201)]===_0x4da175(0x220)&&_0x33f590['xlink:href']&&(_0x33f590['xlink:href']=_0x33f590[_0x4da175(0x18f)]+_0x4e0612[_0x4da175(0x1ea)]),Object[_0x4da175(0x1a5)](_0x33f590)[_0x4da175(0x19b)](([_0x37b09d,_0x4875d9])=>{const _0x1783e6=_0x4da175;typeof _0x4875d9=='string'&&(_0x33f590[_0x37b09d]=_0x4875d9[_0x1783e6(0x1e2)](/url\(#(.*)\)/,_0x1783e6(0x190)+_0x4e0612[_0x1783e6(0x1ea)]+')'));})),_0x33f590;}function Ee(_0xe8b5eb,_0x5c94b1){const _0x2c2c97=_0x3d115b;var _0x5035e3;const {defIds:_0x473d9f}=_0x5c94b1;return!_0x473d9f||_0x473d9f[_0x2c2c97(0x19a)]===0x0?_0xe8b5eb:_0xe8b5eb[_0x2c2c97(0x201)]==='defs'&&((_0x5035e3=_0xe8b5eb[_0x2c2c97(0x222)])!=null&&_0x5035e3['length'])?{..._0xe8b5eb,'children':_0xe8b5eb[_0x2c2c97(0x222)][_0x2c2c97(0x20e)](_0x2ba542=>typeof _0x2ba542[_0x2c2c97(0x202)]['id']==_0x2c2c97(0x1ee)&&_0x473d9f&&_0x473d9f[_0x2c2c97(0x204)](_0x2ba542[_0x2c2c97(0x202)]['id'])?{..._0x2ba542,'attrs':{..._0x2ba542[_0x2c2c97(0x202)],'id':_0x2ba542[_0x2c2c97(0x202)]['id']+_0x5c94b1['idSuffix']}}:_0x2ba542)}:_0xe8b5eb;}function Oe(){const _0x528b48=_0x3d115b;return Math['random']()['toString'](0x24)[_0x528b48(0x1ff)](0x2,0x8);}k[_0x3d115b(0x1e1)]='UniverIcon';const we={'tag':_0x3d115b(0x1a0),'attrs':{'xmlns':_0x3d115b(0x1be),'fill':'none','viewBox':_0x3d115b(0x1e5),'width':_0x3d115b(0x221),'height':'1em'},'children':[{'tag':_0x3d115b(0x18c),'attrs':{'fill':'currentColor','d':_0x3d115b(0x1c2)}},{'tag':_0x3d115b(0x18c),'attrs':{'fill':_0x3d115b(0x21e),'d':_0x3d115b(0x1e0),'fillRule':'evenodd','clipRule':_0x3d115b(0x216)}}]},W=_0x2c3eb3(function(_0x4a83c5,_0x589741){const _0x731f28=_0x3d115b;return _0x267537(k,Object['assign']({},_0x4a83c5,{'id':_0x731f28(0x1bb),'ref':_0x589741,'icon':we}));});W[_0x3d115b(0x1e1)]=_0x3d115b(0x1c1);class L extends _0x87d3da{constructor(){const _0x1fd972=_0x3d115b;super(...arguments),u(this,_0x1fd972(0x20c),new Set()),u(this,'_reporters',new Set());}[_0x3d115b(0x18a)](_0x2994cb){const _0x208654=_0x3d115b;return this[_0x208654(0x20c)][_0x208654(0x1f4)](_0x2994cb),_0x2af3fb(()=>this['_sharedOperations'][_0x208654(0x20a)](_0x2994cb));}[_0x3d115b(0x1c5)](_0x4f6963){const _0x20e902=_0x3d115b;return this[_0x20e902(0x1d3)][_0x20e902(0x1f4)](_0x4f6963),_0x2af3fb(()=>this['_reporters']['delete'](_0x4f6963));}[_0x3d115b(0x189)](_0x3aea5b){const _0x5156ad=_0x3d115b;return this[_0x5156ad(0x20c)]['has'](_0x3aea5b);}['getInitialStates'](_0xba6e91){const _0x2d429d=_0x3d115b;return Array[_0x2d429d(0x1d5)](this[_0x2d429d(0x1d3)])['map'](_0x3c9c27=>_0x3c9c27(_0xba6e91));}}var Ne=Object[_0x3d115b(0x184)],Y=(_0x41ce2c,_0x350d64,_0xf01484,_0x10de0f)=>{const _0x426fb4=_0x3d115b;for(var _0x5d0ea8=_0x10de0f>0x1?void 0x0:_0x10de0f?Ne(_0x350d64,_0xf01484):_0x350d64,_0x2eeacc=_0x41ce2c[_0x426fb4(0x19a)]-0x1,_0x175061;_0x2eeacc>=0x0;_0x2eeacc--)(_0x175061=_0x41ce2c[_0x2eeacc])&&(_0x5d0ea8=_0x175061(_0x5d0ea8)||_0x5d0ea8);return _0x5d0ea8;},_=(_0x1e0ee7,_0x1aa014)=>(_0x1e0e61,_0x95ab10)=>_0x1aa014(_0x1e0e61,_0x95ab10,_0x1e0ee7);let S=class extends _0x346b59{constructor(_0x102359,_0x4d4f06,_0x5e3862){const _0x481dba=_0x3d115b;super(),u(this,_0x481dba(0x18d),new Map()),(this[_0x481dba(0x1b5)]=_0x102359,this[_0x481dba(0x1c4)]=_0x4d4f06,this[_0x481dba(0x18b)]=_0x5e3862,this['_init']());}async[_0x3d115b(0x1b2)](_0x5c9d68){const _0x3d3c71=_0x3d115b;return this[_0x3d3c71(0x18d)][_0x3d3c71(0x1dd)](_0x5c9d68)||await this[_0x3d3c71(0x1aa)](_0x5c9d68),this[_0x3d3c71(0x18d)][_0x3d3c71(0x182)](_0x5c9d68);}[_0x3d115b(0x212)](_0x356585){const _0x408bcb=_0x3d115b;var _0x2664f7;return(_0x2664f7=this[_0x408bcb(0x18d)][_0x408bcb(0x182)](_0x356585))!=null?_0x2664f7:null;}[_0x3d115b(0x1da)](){const _0x21983f=_0x3d115b;this[_0x21983f(0x1b5)]['getTypeOfUnitAdded$'](_0x3088b9[_0x21983f(0x1d0)])[_0x21983f(0x191)](_0x4ccafe(this[_0x21983f(0x1a8)]))[_0x21983f(0x21f)](async _0x212792=>{const _0xd212cf=_0x21983f,_0x4f5acd=_0x212792[_0xd212cf(0x21c)]();this[_0xd212cf(0x18d)][_0xd212cf(0x1dd)](_0x4f5acd)||this['_startLiveShareCoordinator'](_0x4f5acd);}),this[_0x21983f(0x1b5)][_0x21983f(0x1db)](_0x3088b9[_0x21983f(0x1d0)])[_0x21983f(0x191)](_0x4ccafe(this['dispose$']))[_0x21983f(0x21f)](_0x1d5399=>{const _0x515aa3=_0x21983f,_0xcd8e77=_0x1d5399[_0x515aa3(0x21c)](),_0x43a71a=this[_0x515aa3(0x18d)][_0x515aa3(0x182)](_0xcd8e77);_0x43a71a==null||_0x43a71a[_0x515aa3(0x1eb)]();});}async[_0x3d115b(0x1aa)](_0x45bf60){const _0x4c98dd=_0x3d115b,_0x3dde04=await this[_0x4c98dd(0x18b)][_0x4c98dd(0x1a7)](_0x45bf60),_0x296ae7=this[_0x4c98dd(0x1c4)][_0x4c98dd(0x205)](N,_0x45bf60,_0x3dde04);return _0x296ae7[_0x4c98dd(0x218)](),this[_0x4c98dd(0x18d)]['set'](_0x45bf60,_0x296ae7),_0x296ae7;}};S=Y([_(0x0,_0x1d384b),_(0x1,_0x577b1e(_0x4e118f)),_(0x2,_0x577b1e(_0x5b388b))],S);var c=(_0x118b3b=>(_0x118b3b[_0x3d115b(0x217)]=_0x3d115b(0x210),_0x118b3b[_0x3d115b(0x1cc)]='idle',_0x118b3b[_0x3d115b(0x1f3)]=_0x3d115b(0x1f6),_0x118b3b[_0x3d115b(0x1c3)]='not-following',_0x118b3b[_0x3d115b(0x195)]=_0x3d115b(0x196),_0x118b3b))(c||{});const Ce=_0x3d115b(0x1f2),De=0xc8;let N=class extends _0x346b59{constructor(_0x4944fb,_0x298705,_0x6469cc,_0x422494,_0x938e0d){const _0x12af2e=_0x3d115b;super(),u(this,_0x12af2e(0x1fb),new _0x3dca77('idle')),u(this,_0x12af2e(0x17f),this[_0x12af2e(0x1fb)][_0x12af2e(0x1d6)]()),u(this,'_init',!0x1),u(this,'_commandDisposable',null),u(this,_0x12af2e(0x1df),null),(this[_0x12af2e(0x1d7)]=_0x4944fb,this['_collabSession']=_0x298705,this[_0x12af2e(0x1e7)]=_0x6469cc,this[_0x12af2e(0x1cb)]=_0x422494,this['_commandService']=_0x938e0d);}get[_0x3d115b(0x1f8)](){const _0x57172b=_0x3d115b;return this[_0x57172b(0x1fb)][_0x57172b(0x208)]();}['dispose'](){const _0x46155a=_0x3d115b;var _0x30e668;(_0x30e668=this[_0x46155a(0x20f)])==null||_0x30e668[_0x46155a(0x1eb)](),this['_status$'][_0x46155a(0x1b3)]('idle'),this[_0x46155a(0x1fb)][_0x46155a(0x213)]();}[_0x3d115b(0x1ab)](){const _0x3803e3=_0x3d115b;return this[_0x3803e3(0x1f8)];}[_0x3d115b(0x218)](){const _0x1fe957=_0x3d115b;this[_0x1fe957(0x1da)]||(this[_0x1fe957(0x1da)]=!0x0,this[_0x1fe957(0x1e6)]['sessionStatus$']['pipe'](_0x4ccafe(this[_0x1fe957(0x1a8)]))[_0x1fe957(0x21f)](_0x32a882=>{const _0x105a2a=_0x1fe957;switch(_0x32a882){case _0x5e3c97['OFFLINE']:this[_0x105a2a(0x1f9)]();break;case _0x5e3c97[_0x105a2a(0x215)]:this[_0x105a2a(0x1c0)]();break;}}),this[_0x1fe957(0x1e6)][_0x1fe957(0x1ce)]['pipe'](_0x4ccafe(this[_0x1fe957(0x1a8)]))[_0x1fe957(0x21f)](_0x2ceed5=>{const _0x29d180=_0x1fe957,{eventID:_0x4824e1}=_0x2ceed5;switch(_0x4824e1){case _0x993281[_0x29d180(0x1c8)]:this[_0x29d180(0x19d)](_0x2ceed5);break;case _0x993281[_0x29d180(0x1bd)]:this[_0x29d180(0x1e4)](_0x2ceed5);break;case _0x993281[_0x29d180(0x1b6)]:this[_0x29d180(0x1f0)]();break;case _0x993281[_0x29d180(0x1ec)]:this[_0x29d180(0x180)](_0x2ceed5);break;}}));}[_0x3d115b(0x1f5)](){const _0x3a62bd=_0x3d115b;this[_0x3a62bd(0x1e6)]['send']({'eventID':_0x993281['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3a62bd(0x1d7)],'userID':this['_collabSession'][_0x3a62bd(0x1d1)]()}},this[_0x3a62bd(0x1d7)]);}[_0x3d115b(0x192)](){const _0x4666a4=_0x3d115b;this[_0x4666a4(0x1f8)]===_0x4666a4(0x196)&&(this[_0x4666a4(0x1fb)][_0x4666a4(0x1b3)]('idle'),this[_0x4666a4(0x1e6)][_0x4666a4(0x1b1)]({'eventID':_0x993281[_0x4666a4(0x1b6)],'data':{'unitID':this[_0x4666a4(0x1d7)]}},this[_0x4666a4(0x1d7)]));}[_0x3d115b(0x1c9)](){const _0x27805c=_0x3d115b;this[_0x27805c(0x1f8)]===_0x27805c(0x20b)&&(this[_0x27805c(0x1fb)][_0x27805c(0x1b3)]('following'),this[_0x27805c(0x1a3)]());}[_0x3d115b(0x1a6)](){const _0x15df76=_0x3d115b;this[_0x15df76(0x1f8)]===_0x15df76(0x1f6)&&this[_0x15df76(0x226)]();}['_handleNewHost'](_0x1d7e2e){const _0x23de95=_0x3d115b,{presenter:_0x3a8cf2}=_0x1d7e2e[_0x23de95(0x185)],_0x532198=this['_collabSession']['getMemberID']();this[_0x23de95(0x1df)]=_0x3a8cf2,_0x3a8cf2===_0x532198?(this[_0x23de95(0x226)](),this[_0x23de95(0x186)]()):this[_0x23de95(0x1f8)]!==_0x23de95(0x20b)&&(this[_0x23de95(0x209)](),this['_startFollowing']());}['_fetchOperations'](){const _0x169708=_0x3d115b,_0x13b17d={'eventID':_0x993281['LIVESHARE_FETCH_OPERATIONS']};this[_0x169708(0x1e6)]['send'](_0x13b17d,this['_unitID']);}[_0x3d115b(0x1f0)](){const _0x2d0029=_0x3d115b;this[_0x2d0029(0x1df)]=null,this[_0x2d0029(0x1f8)]!==_0x2d0029(0x196)&&this[_0x2d0029(0x1d2)]();}[_0x3d115b(0x180)](_0x14b734){const _0x55fcd7=_0x3d115b;if(this[_0x55fcd7(0x1f8)]===_0x55fcd7(0x1f6)&&this[_0x55fcd7(0x1df)]===_0x14b734[_0x55fcd7(0x185)][_0x55fcd7(0x1de)]){const _0x2bb002=_0xe3d24e(_0x14b734['data'])['mutations'][_0x55fcd7(0x20d)]()[_0x55fcd7(0x1fd)](_0x5e096a=>_0x5e096a['id']===_0x4db54c['id']);if(_0x2bb002){const _0x2cacfb=_0x2bb002[_0x55fcd7(0x181)][_0x55fcd7(0x1e3)],_0x3b8183=_0x2bb002[_0x55fcd7(0x181)][_0x55fcd7(0x188)]['id'];setTimeout(()=>{const _0x2f25ca=_0x55fcd7;this[_0x2f25ca(0x211)]['executeCommand'](_0x871b64['id'],{'unitId':_0x2cacfb,'subUnitId':_0x3b8183},{'fromCollab':!0x0});});}}}[_0x3d115b(0x186)](){const _0x5b1d10=_0x3d115b;this[_0x5b1d10(0x1fb)][_0x5b1d10(0x1b3)](_0x5b1d10(0x196));const _0xf8d406=new Map(),_0x193879=this[_0x5b1d10(0x20f)]=new _0x34f591();_0x193879[_0x5b1d10(0x1f4)](_0x2af3fb(()=>{const _0x37b36e=_0x5b1d10;_0xf8d406[_0x37b36e(0x19b)](_0x46dd7f=>_0x46dd7f['complete']()),_0xf8d406[_0x37b36e(0x197)]();})),_0x193879[_0x5b1d10(0x1f4)](this['_commandService'][_0x5b1d10(0x1f7)](_0x5a7cc0=>{const _0x250f61=_0x5b1d10;var _0x2fb3ff;if(_0x5a7cc0[_0x250f61(0x1f1)]!==_0x1b9ff0['OPERATION']||!this[_0x250f61(0x1cb)]['shouldShareOperation'](_0x5a7cc0['id']))return;const {id:_0x3af4c3}=_0x5a7cc0;let _0x364744;_0xf8d406['has'](_0x3af4c3)?_0x364744=_0xf8d406[_0x250f61(0x182)](_0x3af4c3):(_0x364744=new _0x1bf23e(),_0xf8d406[_0x250f61(0x19c)](_0x3af4c3,_0x364744),_0x364744['pipe'](_0x10a81f((_0x2fb3ff=this[_0x250f61(0x1e7)][_0x250f61(0x1b0)](Ce))!=null?_0x2fb3ff:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x250f61(0x21f)](_0x189833=>{const _0x34f79c=_0x250f61;this['_collabSession'][_0x34f79c(0x1b1)]({'eventID':_0x993281[_0x34f79c(0x1bd)],'data':{'unitID':this[_0x34f79c(0x1d7)],'operations':{[_0x189833['id']]:{'id':_0x189833['id'],'params':JSON[_0x34f79c(0x1ad)](_0x189833['params'])}}}},this[_0x34f79c(0x1d7)]);})),_0x364744['next'](_0x5a7cc0);})),this[_0x5b1d10(0x1cb)][_0x5b1d10(0x183)](this[_0x5b1d10(0x1d7)])[_0x5b1d10(0x19b)](_0x524645=>this[_0x5b1d10(0x1e6)][_0x5b1d10(0x1b1)]({'eventID':_0x993281['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5b1d10(0x1d7)],'operations':{[_0x524645['id']]:{'id':_0x524645['id'],'params':JSON[_0x5b1d10(0x1ad)](_0x524645['params'])}}}},this[_0x5b1d10(0x1d7)]));}[_0x3d115b(0x209)](){const _0xdb6baa=_0x3d115b;var _0x54484d;this[_0xdb6baa(0x1fb)][_0xdb6baa(0x1b3)](_0xdb6baa(0x1b9)),(_0x54484d=this[_0xdb6baa(0x20f)])==null||_0x54484d[_0xdb6baa(0x1eb)](),this[_0xdb6baa(0x20f)]=null;}['_startFollowing'](){const _0x36917f=_0x3d115b;var _0x5f6e23;(_0x5f6e23=this[_0x36917f(0x20f)])==null||_0x5f6e23[_0x36917f(0x1eb)](),this['_status$'][_0x36917f(0x1b3)](_0x36917f(0x1f6));}[_0x3d115b(0x1d2)](){const _0x2daf33=_0x3d115b;var _0x49bf7b;this[_0x2daf33(0x1fb)][_0x2daf33(0x1b3)]('idle'),(_0x49bf7b=this['_commandDisposable'])==null||_0x49bf7b[_0x2daf33(0x1eb)](),this[_0x2daf33(0x20f)]=null;}[_0x3d115b(0x226)](){const _0x37ef58=_0x3d115b;var _0x5844c0;this[_0x37ef58(0x1fb)]['next']('not-following'),(_0x5844c0=this[_0x37ef58(0x20f)])==null||_0x5844c0[_0x37ef58(0x1eb)]();}[_0x3d115b(0x1e4)](_0x2c3190){const _0x3f0f03=_0x3d115b;if(['presenting','not-following',_0x3f0f03(0x210)][_0x3f0f03(0x204)](this['_status'])||!_0x2c3190[_0x3f0f03(0x185)][_0x3f0f03(0x227)]||_0x2c3190[_0x3f0f03(0x185)][_0x3f0f03(0x227)]===this[_0x3f0f03(0x1e6)][_0x3f0f03(0x1d1)]())return;this[_0x3f0f03(0x1f8)]===_0x3f0f03(0x1b9)&&this[_0x3f0f03(0x1a3)]();const _0xcfa6b=_0x2c3190[_0x3f0f03(0x185)][_0x3f0f03(0x1a9)];Object[_0x3f0f03(0x1af)](_0xcfa6b)['forEach'](_0x4ea591=>{const _0x2c8053=_0x3f0f03;this['_commandService'][_0x2c8053(0x193)](_0x4ea591['id'],_0x4ea591[_0x2c8053(0x181)]?JSON[_0x2c8053(0x229)](_0x4ea591[_0x2c8053(0x181)]):null,{'fromCollab':!0x0});});}[_0x3d115b(0x1f9)](){const _0x2b8b6e=_0x3d115b;var _0x377a42;this['_status$'][_0x2b8b6e(0x1b3)](_0x2b8b6e(0x210)),(_0x377a42=this[_0x2b8b6e(0x20f)])==null||_0x377a42[_0x2b8b6e(0x1eb)]();}[_0x3d115b(0x1c0)](){const _0x22ee67=_0x3d115b;this['_status$'][_0x22ee67(0x1b3)](_0x22ee67(0x1b9)),this['_fetchOperations']();}};N=Y([_(0x2,_0x332024),_(0x3,_0x577b1e(L)),_(0x4,_0x5b24bd)],N);function Le(){const _0xb61340=_0x3d115b,_0x330dd0=_0x32938e(S),_0xd0c67a=_0x32938e(_0x1d384b),_0x141823=_0x305896(()=>_0xd0c67a[_0xb61340(0x1b7)](_0x3088b9[_0xb61340(0x1d0)]),void 0x0,!0x1,[]),[_0x5ba85a,_0x407846]=_0x4d351d(null),[_0x2525d0,_0x4d3053]=_0x4d351d(c[_0xb61340(0x1cc)]),_0x128890=_0x1df2a9(null);return _0x463e26(()=>(_0x141823&&_0x330dd0[_0xb61340(0x1b2)](_0x141823[_0xb61340(0x21c)]())[_0xb61340(0x1dc)](_0x2cc010=>{const _0x118459=_0xb61340;_0x407846(_0x2cc010),_0x128890[_0x118459(0x18e)]=_0x2cc010[_0x118459(0x17f)][_0x118459(0x21f)](_0x34f406=>{_0x4d3053(_0x34f406);});}),()=>{const _0x50093f=_0xb61340;var _0x18af26;(_0x18af26=_0x128890[_0x50093f(0x18e)])==null||_0x18af26[_0x50093f(0x1d9)](),_0x128890['current']=null;}),[_0x141823,_0x330dd0]),_0x5ba85a?_0x567ad8(_0x1d0e01,{'align':'end','disabled':_0x2525d0===c[_0xb61340(0x217)],'className':_0xb61340(0x225),'overlay':_0x567ad8(Re,{'status':_0x2525d0,'coordinator':_0x5ba85a}),'children':_0x567ad8('button',{'className':_0xc920a1('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x2525d0===c[_0xb61340(0x217)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2525d0!==c[_0xb61340(0x217)]}),'type':'button','children':_0x567ad8(W,{'className':_0xb61340(0x1bc)})})}):null;}function Re(_0x1eccd1){const _0x433b21=_0x3d115b,{status:_0x49c1f1,coordinator:_0x21cc42}=_0x1eccd1;switch(_0x49c1f1){case c[_0x433b21(0x1cc)]:return _0x567ad8($e,{'coordinator':_0x21cc42});case c['FOLLOWING']:return _0x567ad8(xe,{'coordinator':_0x21cc42});case c['NOT_FOLLOWING']:return _0x567ad8(Pe,{'coordinator':_0x21cc42});case c[_0x433b21(0x217)]:return _0x567ad8(Te,{});case c[_0x433b21(0x195)]:return _0x567ad8(Ae,{'coordinator':_0x21cc42});default:return null;}}function $e(_0x574574){const _0x1121f8=_0x3d115b,{coordinator:_0x599f00}=_0x574574;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x1121f8(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1121f8(0x21b)}),_0x567ad8(_0x473b7d,{'onClick':()=>_0x599f00['tryStartPresenting'](),'children':_0x1121f8(0x1e9)})]});}function xe(_0x1591bc){const _0x421d86=_0x3d115b,{coordinator:_0x2eb1e7}=_0x1591bc;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x421d86(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x421d86(0x206)}),_0x567ad8(_0x473b7d,{'onClick':()=>_0x2eb1e7[_0x421d86(0x1a6)](),'children':_0x421d86(0x199)})]});}function Pe(_0x131f74){const _0x4fc2ef=_0x3d115b,{coordinator:_0x666fe9}=_0x131f74;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x4fc2ef(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4fc2ef(0x1ae)}),_0x567ad8(_0x473b7d,{'variant':'text','onClick':()=>_0x666fe9['startFollowing'](),'children':_0x4fc2ef(0x1c6)})]});}function Ae(_0x6f69ac){const _0x3cbddd=_0x3d115b,{coordinator:_0x233646}=_0x6f69ac;return _0x1873ad(_0xaba553,{'children':[_0x567ad8(_0x3cbddd(0x228),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3cbddd(0x1a2)}),_0x567ad8(_0x473b7d,{'variant':_0x3cbddd(0x1ed),'onClick':()=>_0x233646['stopPresenting'](),'children':_0x3cbddd(0x1fe)})]});}function Te(){const _0x3d9158=_0x3d115b;return _0x567ad8(_0xaba553,{'children':_0x3d9158(0x198)});}var Fe=Object[_0x3d115b(0x184)],He=(_0x5d8579,_0x47ab83,_0x494b5c,_0x23f112)=>{const _0x266b35=_0x3d115b;for(var _0x14b5a3=_0x23f112>0x1?void 0x0:_0x23f112?Fe(_0x47ab83,_0x494b5c):_0x47ab83,_0x17c2e0=_0x5d8579[_0x266b35(0x19a)]-0x1,_0x1f1eda;_0x17c2e0>=0x0;_0x17c2e0--)(_0x1f1eda=_0x5d8579[_0x17c2e0])&&(_0x14b5a3=_0x1f1eda(_0x14b5a3)||_0x14b5a3);return _0x14b5a3;},A=(_0x5a1819,_0xa51087)=>(_0x46bc5c,_0x1faa84)=>_0xa51087(_0x46bc5c,_0x1faa84,_0x5a1819);let m=class extends _0x87d3da{constructor(_0x3d9c8d,_0x5f0b87){const _0x3bc300=_0x3d115b;super(),this['_injector']=_0x3d9c8d,this['_uiPartsService']=_0x5f0b87,this[_0x3bc300(0x1cf)]();}[_0x3d115b(0x1cf)](){const _0x360c27=_0x3d115b;this[_0x360c27(0x1cd)](this[_0x360c27(0x1ba)][_0x360c27(0x19f)](_0x523e83['HEADER_MENU'],()=>_0x32b998(Le,this['_injector'])));}};m=He([A(0x0,_0x577b1e(_0x4e118f)),A(0x1,_0x5c986b)],m);const ye=_0x3d115b(0x1a4),T={};var Ue=Object['getOwnPropertyDescriptor'],Ve=(_0x269b8e,_0xd4ecde,_0x578c94,_0x463b65)=>{const _0xc50249=_0x3d115b;for(var _0x2b9198=_0x463b65>0x1?void 0x0:_0x463b65?Ue(_0xd4ecde,_0x578c94):_0xd4ecde,_0x54e774=_0x269b8e[_0xc50249(0x19a)]-0x1,_0x422c92;_0x54e774>=0x0;_0x54e774--)(_0x422c92=_0x269b8e[_0x54e774])&&(_0x2b9198=_0x422c92(_0x2b9198)||_0x2b9198);return _0x2b9198;},je=(_0x21f658,_0x2ce4ce)=>(_0xfd58e4,_0x2177fd)=>_0x2ce4ce(_0xfd58e4,_0x2177fd,_0x21f658);let I=class extends _0x87d3da{constructor(_0x1724f9){const _0x1f8772=_0x3d115b;super(),this['_liveShareService']=_0x1724f9,this[_0x1f8772(0x1da)]();}[_0x3d115b(0x1da)](){[_0x2fe506['id'],_0x33c19d['id'],_0x871b64['id']]['forEach'](_0x3eee4a=>{const _0x3aef92=_0x2aa9;this[_0x3aef92(0x1cd)](this[_0x3aef92(0x1cb)]['registerSharedOperation'](_0x3eee4a));});}};I=Ve([je(0x0,_0x577b1e(L))],I);var Me=Object[_0x3d115b(0x1bf)],ke=Object[_0x3d115b(0x184)],Ge=(_0x437603,_0x5b1b32,_0x308fc6)=>_0x5b1b32 in _0x437603?Me(_0x437603,_0x5b1b32,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x308fc6}):_0x437603[_0x5b1b32]=_0x308fc6,We=(_0x2db0e1,_0x451381,_0x4792fb,_0x28e983)=>{for(var _0x1878ec=_0x28e983>0x1?void 0x0:_0x28e983?ke(_0x451381,_0x4792fb):_0x451381,_0x42267e=_0x2db0e1['length']-0x1,_0x2ce274;_0x42267e>=0x0;_0x42267e--)(_0x2ce274=_0x2db0e1[_0x42267e])&&(_0x1878ec=_0x2ce274(_0x1878ec)||_0x1878ec);return _0x1878ec;},F=(_0x30df85,_0x4521d6)=>(_0x1bd40e,_0x8b67c6)=>_0x4521d6(_0x1bd40e,_0x8b67c6,_0x30df85),B=(_0x56b064,_0x58a088,_0x1b81e7)=>Ge(_0x56b064,typeof _0x58a088!=_0x3d115b(0x1e8)?_0x58a088+'':_0x58a088,_0x1b81e7);function _0x56b3(){const _0x16021c=['FOLLOWING','add','tryStartPresenting','following','onCommandExecuted','_status','_handleOffline','30IWDsgc','_status$','1330286KOVgwT','find','Stop\x20presenting','substring','1326976FsBVyf','tag','attrs','mask','includes','createInstance','You\x27re\x20following\x20the\x20presenter','7vBnCXi','getValue','_stopPresenting','delete','not-following','_sharedOperations','reverse','map','_commandDisposable','offline','_commandService','getLiveShareCoordinatorSync','complete','onStarting','ONLINE','evenodd','OFFLINE','init','trim','4610AWthPZ','Present\x20this\x20document','getUnitId','defIds','currentColor','subscribe','use','1em','children','onRendered','override','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','_stopFollowing','presenter','div','parse','status$','_handleNewChangeSets','params','get','getInitialStates','getOwnPropertyDescriptor','data','_startPresenting','UNIVER_LIVE_SHARE_PLUGIN','sheet','shouldShareOperation','registerSharedOperation','_collabSessionService','path','_entities','current','xlink:href','url(#$1','pipe','stopPresenting','executeCommand','colorChannel1','PRESENTING','presenting','clear','You\x27are\x20offline.','Stop\x20following','length','forEach','set','_handleNewHost','1507bijEMY','registerComponent','svg','4ZuuNYN','You\x27re\x20presenting\x20the\x20document','_startFollowing','live-share.config','entries','stopFollowing','requireSession','dispose$','operations','_startLiveShareCoordinator','getStatus','3322998PXjeIU','stringify','You\x27re\x20not\x20following\x20the\x20presenter','values','getConfig','send','getLiveShareCoordinator','next','univerjs-icon\x20univerjs-icon-','_univerInstanceService','LIVESHARE_TERMINATE','getCurrentTypeOfUnit$','pluginName','idle','_uiPartsService','live-share-icon','univer-size-4','LIVESHARE_OPERATION','http://www.w3.org/2000/svg','defineProperty','_handleOnline','LiveShareIcon','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','NOT_FOLLOWING','_injector','registerInitialStateReporter','Start\x20following','408527ZlXwYj','LIVESHARE_NEW_HOST','startFollowing','fill','_liveShareService','IDLE','disposeWithMe','event$','_mountLiveShare','UNIVER_SHEET','getMemberID','_beIdle','_reporters','873006YWFiyO','from','asObservable','_unitID','_config','unsubscribe','_init','getTypeOfUnitDisposed$','then','has','memberID','_presenter','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','displayName','replace','unitId','_handleOperation','0\x200\x2017\x2017','_collabSession','_configService','symbol','Start','idSuffix','dispose','NEW_CHANGESETS','default','string','2366031dwuqaE','_handleTerminate','type','SAME_OPERATION_SHARE_INTERVAL'];_0x56b3=function(){return _0x16021c;};return _0x56b3();}const Ye=_0x3d115b(0x187);let b=class extends _0x4b1824{constructor(_0xd518e7=T,_0x5f23f7,_0x5745af){const _0xec64b4=_0x3d115b;super(),this[_0xec64b4(0x1d8)]=_0xd518e7,this[_0xec64b4(0x1c4)]=_0x5f23f7,this['_configService']=_0x5745af;const {..._0x23af25}=_0x4a94f8({},T,this[_0xec64b4(0x1d8)]);this['_configService']['setConfig'](ye,_0x23af25);}[_0x3d115b(0x214)](){const _0x5f378f=_0x3d115b;_0x51b5fa(this[_0x5f378f(0x1c4)],_0x215342([[L],[S],[I],[m]],this[_0x5f378f(0x1d8)][_0x5f378f(0x224)])),_0x2b00b4(this[_0x5f378f(0x1c4)],[[I]]);}[_0x3d115b(0x223)](){const _0x4ab7eb=_0x3d115b;_0x2b00b4(this[_0x4ab7eb(0x1c4)],[[m]]);}};B(b,_0x3d115b(0x1f1),_0x3088b9['UNIVER_UNKNOWN']),B(b,_0x3d115b(0x1b8),Ye),b=We([_0x3cc453(_0x545bb7),F(0x1,_0x577b1e(_0x4e118f)),F(0x2,_0x332024)],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 _0x544e9e=_0x1f2d;(function(_0x2e449e,_0x33e76d){const _0x5654ee=_0x1f2d,_0x3753e8=_0x2e449e();while(!![]){try{const _0x2c6b55=parseInt(_0x5654ee(0x1b9))/0x1+parseInt(_0x5654ee(0x1b6))/0x2+-parseInt(_0x5654ee(0x187))/0x3+parseInt(_0x5654ee(0x185))/0x4*(parseInt(_0x5654ee(0x19e))/0x5)+-parseInt(_0x5654ee(0x16d))/0x6+-parseInt(_0x5654ee(0x14f))/0x7*(parseInt(_0x5654ee(0x158))/0x8)+parseInt(_0x5654ee(0x197))/0x9;if(_0x2c6b55===_0x33e76d)break;else _0x3753e8['push'](_0x3753e8['shift']());}catch(_0x273676){_0x3753e8['push'](_0x3753e8['shift']());}}}(_0x39bc,0x6d38e));var J=Object[_0x544e9e(0x1a7)],K=(_0x2926ab,_0x186520,_0x4eaa2d)=>_0x186520 in _0x2926ab?J(_0x2926ab,_0x186520,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4eaa2d}):_0x2926ab[_0x186520]=_0x4eaa2d,u=(_0x1250e4,_0xee87fe,_0x33cf16)=>K(_0x1250e4,typeof _0xee87fe!='symbol'?_0xee87fe+'':_0xee87fe,_0x33cf16);import{Disposable as _0x3dce28,toDisposable as _0x28496c,IUniverInstanceService as _0x1bb9e7,Inject as _0x1e336b,Injector as _0x267c92,IConfigService as _0x3a8011,ICommandService as _0x19c6ee,RxDisposable as _0x32d1ad,UniverInstanceType as _0x2352a5,DisposableCollection as _0x371ceb,CommandType as _0x55beed,DependentOn as _0x4ea2aa,Plugin as _0xd4af45,merge as _0x21916a,registerDependencies as _0x4a1a17,mergeOverrideWithDependencies as _0x3b4db0,touchDependencies as _0x3bcbb9}from'@univerjs/core';import{useDependency as _0x3188a9,useObservable as _0x4c9888,IUIPartsService as _0x1abdc4,BuiltInUIPart as _0x318ff3,connectInjector as _0x573a0a}from'@univerjs/ui';import{jsx as _0x158892,jsxs as _0x1c053d,Fragment as _0x2d0f7d}from'react/jsx-runtime';import{Dropdown as _0x4384ad,clsx as _0x57f05e,Button as _0x2d28cf}from'@univerjs/design';import{useRef as _0x3183ed,createElement as _0x17f992,forwardRef as _0x445412,useState as _0x551170,useEffect as _0x365eaf}from'react';import{CollaborationEvent as _0x5b5b48,parseProtocolChangeset as _0x3025fd}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1b8d5e,SessionStatus as _0x4dc649,UniverCollaborationClientPlugin as _0xec1ae4}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x56bf8c,SetWorksheetActiveOperation as _0x4754ab}from'@univerjs/sheets';import{BehaviorSubject as _0x4f1003,Subject as _0x3050f3}from'rxjs';import{takeUntil as _0x4147ac,throttleTime as _0x4a1338}from'rxjs/operators';import{SetZoomRatioOperation as _0x21a324,SetScrollOperation as _0x24df0e}from'@univerjs/sheets-ui';function k({ref:_0x2dc064,..._0x2ade3b}){const _0x3e5180=_0x544e9e,{icon:_0x26c7c2,id:_0x33009c,className:_0x1895ee,extend:_0x4f1b59,..._0x3b8929}=_0x2ade3b,_0x555c88=(_0x3e5180(0x17d)+_0x33009c+'\x20'+(_0x1895ee||''))[_0x3e5180(0x195)](),_0x4fe338=_0x3183ed('_'+Oe());return G(_0x26c7c2,''+_0x33009c,{'defIds':_0x26c7c2[_0x3e5180(0x13b)],'idSuffix':_0x4fe338['current']},{'ref':_0x2dc064,'className':_0x555c88,..._0x3b8929},_0x4f1b59);}function G(_0x10a10a,_0x579ae4,_0x1a4962,_0x505638,_0x546443){const _0x4a89cf=_0x544e9e;return _0x17f992(_0x10a10a[_0x4a89cf(0x190)],{'key':_0x579ae4,...be(_0x10a10a,_0x1a4962,_0x546443),..._0x505638},(Ee(_0x10a10a,_0x1a4962)[_0x4a89cf(0x131)]||[])['map']((_0x5186ff,_0x362a7f)=>G(_0x5186ff,_0x579ae4+'-'+_0x10a10a[_0x4a89cf(0x190)]+'-'+_0x362a7f,_0x1a4962,void 0x0,_0x546443)));}function be(_0x507104,_0x35d504,_0x192612){const _0x28d1b7=_0x544e9e,_0x8c97ce={..._0x507104[_0x28d1b7(0x175)]};_0x192612!=null&&_0x192612[_0x28d1b7(0x137)]&&_0x8c97ce[_0x28d1b7(0x19b)]===_0x28d1b7(0x137)&&(_0x8c97ce[_0x28d1b7(0x19b)]=_0x192612[_0x28d1b7(0x137)]),_0x507104[_0x28d1b7(0x190)]==='mask'&&_0x8c97ce['id']&&(_0x8c97ce['id']=_0x8c97ce['id']+_0x35d504[_0x28d1b7(0x1aa)]),Object[_0x28d1b7(0x13e)](_0x8c97ce)[_0x28d1b7(0x1a3)](([_0xd0caa,_0x3495c5])=>{const _0x37ddfc=_0x28d1b7;_0xd0caa===_0x37ddfc(0x167)&&typeof _0x3495c5==_0x37ddfc(0x189)&&(_0x8c97ce[_0xd0caa]=_0x3495c5[_0x37ddfc(0x1af)](/url\(#(.*)\)/,_0x37ddfc(0x139)+_0x35d504[_0x37ddfc(0x1aa)]+')'));});const {defIds:_0xc3ea13}=_0x35d504;return!_0xc3ea13||_0xc3ea13['length']===0x0||(_0x507104[_0x28d1b7(0x190)]===_0x28d1b7(0x188)&&_0x8c97ce[_0x28d1b7(0x1b1)]&&(_0x8c97ce[_0x28d1b7(0x1b1)]=_0x8c97ce['xlink:href']+_0x35d504['idSuffix']),Object[_0x28d1b7(0x13e)](_0x8c97ce)[_0x28d1b7(0x1a3)](([_0x2b82ce,_0x4f1618])=>{const _0x130d6f=_0x28d1b7;typeof _0x4f1618=='string'&&(_0x8c97ce[_0x2b82ce]=_0x4f1618[_0x130d6f(0x1af)](/url\(#(.*)\)/,_0x130d6f(0x139)+_0x35d504[_0x130d6f(0x1aa)]+')'));})),_0x8c97ce;}function Ee(_0xece95d,_0x4e128a){const _0x51fc09=_0x544e9e;var _0x59f594;const {defIds:_0x1ab232}=_0x4e128a;return!_0x1ab232||_0x1ab232['length']===0x0?_0xece95d:_0xece95d['tag']===_0x51fc09(0x17f)&&((_0x59f594=_0xece95d[_0x51fc09(0x131)])!=null&&_0x59f594[_0x51fc09(0x1b3)])?{..._0xece95d,'children':_0xece95d[_0x51fc09(0x131)][_0x51fc09(0x1ab)](_0x5ab715=>typeof _0x5ab715['attrs']['id']==_0x51fc09(0x189)&&_0x1ab232&&_0x1ab232[_0x51fc09(0x160)](_0x5ab715['attrs']['id'])?{..._0x5ab715,'attrs':{..._0x5ab715['attrs'],'id':_0x5ab715['attrs']['id']+_0x4e128a['idSuffix']}}:_0x5ab715)}:_0xece95d;}function Oe(){const _0x2cc90c=_0x544e9e;return Math[_0x2cc90c(0x177)]()[_0x2cc90c(0x1c4)](0x24)[_0x2cc90c(0x16a)](0x2,0x8);}k[_0x544e9e(0x12d)]=_0x544e9e(0x156);const we={'tag':_0x544e9e(0x184),'attrs':{'xmlns':_0x544e9e(0x198),'fill':'none','viewBox':_0x544e9e(0x16e),'width':_0x544e9e(0x135),'height':_0x544e9e(0x135)},'children':[{'tag':'path','attrs':{'fill':_0x544e9e(0x134),'d':_0x544e9e(0x15a)}},{'tag':_0x544e9e(0x12b),'attrs':{'fill':_0x544e9e(0x134),'d':_0x544e9e(0x1bb),'fillRule':_0x544e9e(0x166),'clipRule':_0x544e9e(0x166)}}]},W=_0x445412(function(_0x257aab,_0x12274c){const _0x1983cc=_0x544e9e;return _0x17f992(k,Object[_0x1983cc(0x133)]({},_0x257aab,{'id':_0x1983cc(0x194),'ref':_0x12274c,'icon':we}));});W[_0x544e9e(0x12d)]='LiveShareIcon';class L extends _0x3dce28{constructor(){const _0xe8f80c=_0x544e9e;super(...arguments),u(this,_0xe8f80c(0x1ba),new Set()),u(this,_0xe8f80c(0x1a9),new Set());}[_0x544e9e(0x18e)](_0x50c157){const _0xd11d2c=_0x544e9e;return this[_0xd11d2c(0x1ba)][_0xd11d2c(0x192)](_0x50c157),_0x28496c(()=>this[_0xd11d2c(0x1ba)]['delete'](_0x50c157));}[_0x544e9e(0x150)](_0x25b233){const _0x14f87d=_0x544e9e;return this[_0x14f87d(0x1a9)][_0x14f87d(0x192)](_0x25b233),_0x28496c(()=>this['_reporters']['delete'](_0x25b233));}[_0x544e9e(0x1be)](_0x4a7aee){const _0x4c88b3=_0x544e9e;return this[_0x4c88b3(0x1ba)]['has'](_0x4a7aee);}[_0x544e9e(0x1ae)](_0x142892){const _0x3d8f19=_0x544e9e;return Array['from'](this[_0x3d8f19(0x1a9)])['map'](_0x3f619a=>_0x3f619a(_0x142892));}}var Ne=Object[_0x544e9e(0x16b)],Y=(_0x56854e,_0x1028e9,_0x134516,_0x172aa0)=>{const _0x4e7c6c=_0x544e9e;for(var _0x2f73af=_0x172aa0>0x1?void 0x0:_0x172aa0?Ne(_0x1028e9,_0x134516):_0x1028e9,_0x30666d=_0x56854e[_0x4e7c6c(0x1b3)]-0x1,_0xf8be8a;_0x30666d>=0x0;_0x30666d--)(_0xf8be8a=_0x56854e[_0x30666d])&&(_0x2f73af=_0xf8be8a(_0x2f73af)||_0x2f73af);return _0x2f73af;},_=(_0x3f2449,_0x127208)=>(_0x52945f,_0x4d2f26)=>_0x127208(_0x52945f,_0x4d2f26,_0x3f2449);let S=class extends _0x32d1ad{constructor(_0x5b65ba,_0x44bf05,_0x2f1853){const _0x3afbd4=_0x544e9e;super(),u(this,'_entities',new Map()),(this[_0x3afbd4(0x163)]=_0x5b65ba,this[_0x3afbd4(0x148)]=_0x44bf05,this[_0x3afbd4(0x1c7)]=_0x2f1853,this[_0x3afbd4(0x1b0)]());}async[_0x544e9e(0x1bd)](_0x386a17){const _0x396357=_0x544e9e;return this['_entities'][_0x396357(0x183)](_0x386a17)||await this['_startLiveShareCoordinator'](_0x386a17),this[_0x396357(0x15d)][_0x396357(0x1b5)](_0x386a17);}[_0x544e9e(0x130)](_0x352bbd){const _0x4803af=_0x544e9e;var _0x11855d;return(_0x11855d=this[_0x4803af(0x15d)][_0x4803af(0x1b5)](_0x352bbd))!=null?_0x11855d:null;}['_init'](){const _0x21178f=_0x544e9e;this[_0x21178f(0x163)][_0x21178f(0x176)](_0x2352a5[_0x21178f(0x19d)])[_0x21178f(0x1c2)](_0x4147ac(this[_0x21178f(0x18b)]))['subscribe'](async _0x53e096=>{const _0x23a6b7=_0x21178f,_0x2fbf04=_0x53e096[_0x23a6b7(0x142)]();this[_0x23a6b7(0x15d)][_0x23a6b7(0x183)](_0x2fbf04)||this['_startLiveShareCoordinator'](_0x2fbf04);}),this[_0x21178f(0x163)][_0x21178f(0x164)](_0x2352a5[_0x21178f(0x19d)])[_0x21178f(0x1c2)](_0x4147ac(this[_0x21178f(0x18b)]))[_0x21178f(0x144)](_0x561234=>{const _0x55b23a=_0x21178f,_0x33b6c0=_0x561234[_0x55b23a(0x142)](),_0x4aa589=this[_0x55b23a(0x15d)][_0x55b23a(0x1b5)](_0x33b6c0);_0x4aa589==null||_0x4aa589['dispose']();});}async[_0x544e9e(0x169)](_0x27d017){const _0x30adc4=_0x544e9e,_0x46a53d=await this[_0x30adc4(0x1c7)]['requireSession'](_0x27d017),_0x583572=this[_0x30adc4(0x148)][_0x30adc4(0x1a5)](N,_0x27d017,_0x46a53d);return _0x583572[_0x30adc4(0x18c)](),this['_entities'][_0x30adc4(0x1a6)](_0x27d017,_0x583572),_0x583572;}};S=Y([_(0x0,_0x1bb9e7),_(0x1,_0x1e336b(_0x267c92)),_(0x2,_0x1e336b(_0x1b8d5e))],S);var c=(_0x74ebd5=>(_0x74ebd5[_0x544e9e(0x15b)]=_0x544e9e(0x152),_0x74ebd5[_0x544e9e(0x18a)]=_0x544e9e(0x181),_0x74ebd5[_0x544e9e(0x1c3)]=_0x544e9e(0x12a),_0x74ebd5[_0x544e9e(0x13d)]=_0x544e9e(0x145),_0x74ebd5['PRESENTING']=_0x544e9e(0x140),_0x74ebd5))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x32d1ad{constructor(_0xfc62af,_0x4269ff,_0x5e2e10,_0x5207fe,_0x469ab8){const _0x3747d7=_0x544e9e;super(),u(this,'_status$',new _0x4f1003('idle')),u(this,_0x3747d7(0x1ad),this[_0x3747d7(0x170)][_0x3747d7(0x159)]()),u(this,_0x3747d7(0x1b0),!0x1),u(this,_0x3747d7(0x1a2),null),u(this,_0x3747d7(0x182),null),(this[_0x3747d7(0x14e)]=_0xfc62af,this[_0x3747d7(0x1c5)]=_0x4269ff,this[_0x3747d7(0x1bf)]=_0x5e2e10,this[_0x3747d7(0x138)]=_0x5207fe,this[_0x3747d7(0x14c)]=_0x469ab8);}get[_0x544e9e(0x16f)](){const _0x4a30a6=_0x544e9e;return this[_0x4a30a6(0x170)]['getValue']();}['dispose'](){const _0x3b294=_0x544e9e;var _0x39dc95;(_0x39dc95=this[_0x3b294(0x1a2)])==null||_0x39dc95[_0x3b294(0x13a)](),this[_0x3b294(0x170)][_0x3b294(0x147)]('idle'),this[_0x3b294(0x170)]['complete']();}[_0x544e9e(0x132)](){const _0x46d235=_0x544e9e;return this[_0x46d235(0x16f)];}[_0x544e9e(0x18c)](){const _0x46ba01=_0x544e9e;this['_init']||(this['_init']=!0x0,this[_0x46ba01(0x1c5)][_0x46ba01(0x146)][_0x46ba01(0x1c2)](_0x4147ac(this[_0x46ba01(0x18b)]))[_0x46ba01(0x144)](_0xb016d0=>{const _0x4e1c77=_0x46ba01;switch(_0xb016d0){case _0x4dc649['OFFLINE']:this[_0x4e1c77(0x1ac)]();break;case _0x4dc649[_0x4e1c77(0x155)]:this[_0x4e1c77(0x1c1)]();break;}}),this[_0x46ba01(0x1c5)][_0x46ba01(0x1c8)][_0x46ba01(0x1c2)](_0x4147ac(this[_0x46ba01(0x18b)]))['subscribe'](_0x5619a8=>{const _0x542e9a=_0x46ba01,{eventID:_0x51c10b}=_0x5619a8;switch(_0x51c10b){case _0x5b5b48['LIVESHARE_NEW_HOST']:this[_0x542e9a(0x168)](_0x5619a8);break;case _0x5b5b48[_0x542e9a(0x1bc)]:this['_handleOperation'](_0x5619a8);break;case _0x5b5b48['LIVESHARE_TERMINATE']:this[_0x542e9a(0x199)]();break;case _0x5b5b48[_0x542e9a(0x15c)]:this['_handleNewChangeSets'](_0x5619a8);break;}}));}[_0x544e9e(0x19c)](){const _0x59e3a6=_0x544e9e;this[_0x59e3a6(0x1c5)][_0x59e3a6(0x19f)]({'eventID':_0x5b5b48['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession']['getMemberID']()}},this[_0x59e3a6(0x14e)]);}[_0x544e9e(0x136)](){const _0x326f84=_0x544e9e;this[_0x326f84(0x16f)]===_0x326f84(0x140)&&(this[_0x326f84(0x170)]['next'](_0x326f84(0x181)),this[_0x326f84(0x1c5)][_0x326f84(0x19f)]({'eventID':_0x5b5b48[_0x326f84(0x1a8)],'data':{'unitID':this[_0x326f84(0x14e)]}},this[_0x326f84(0x14e)]));}[_0x544e9e(0x13f)](){const _0x57279b=_0x544e9e;this[_0x57279b(0x16f)]==='not-following'&&(this[_0x57279b(0x170)]['next'](_0x57279b(0x12a)),this[_0x57279b(0x18f)]());}['stopFollowing'](){const _0x3d56e4=_0x544e9e;this[_0x3d56e4(0x16f)]==='following'&&this[_0x3d56e4(0x13c)]();}[_0x544e9e(0x168)](_0x2bd8ee){const _0x383cc8=_0x544e9e,{presenter:_0x1c4b5e}=_0x2bd8ee[_0x383cc8(0x151)],_0x20c060=this[_0x383cc8(0x1c5)]['getMemberID']();this['_presenter']=_0x1c4b5e,_0x1c4b5e===_0x20c060?(this[_0x383cc8(0x13c)](),this[_0x383cc8(0x1ca)]()):this[_0x383cc8(0x16f)]!==_0x383cc8(0x145)&&(this[_0x383cc8(0x15e)](),this['_startFollowing']());}[_0x544e9e(0x191)](){const _0x48ac1b=_0x544e9e,_0x3d82e2={'eventID':_0x5b5b48[_0x48ac1b(0x1b8)]};this['_collabSession']['send'](_0x3d82e2,this['_unitID']);}[_0x544e9e(0x199)](){const _0x5c8d35=_0x544e9e;this[_0x5c8d35(0x182)]=null,this[_0x5c8d35(0x16f)]!==_0x5c8d35(0x140)&&this['_beIdle']();}[_0x544e9e(0x180)](_0x3f47a5){const _0x30e791=_0x544e9e;if(this[_0x30e791(0x16f)]==='following'&&this[_0x30e791(0x182)]===_0x3f47a5[_0x30e791(0x151)]['memberID']){const _0x3dbd3f=_0x3025fd(_0x3f47a5['data'])['mutations'][_0x30e791(0x179)]()[_0x30e791(0x1c9)](_0x5b8b61=>_0x5b8b61['id']===_0x56bf8c['id']);if(_0x3dbd3f){const _0x2f3c94=_0x3dbd3f['params']['unitId'],_0x2f72f8=_0x3dbd3f[_0x30e791(0x186)][_0x30e791(0x162)]['id'];setTimeout(()=>{const _0x27d00f=_0x30e791;this[_0x27d00f(0x14c)][_0x27d00f(0x19a)](_0x4754ab['id'],{'unitId':_0x2f3c94,'subUnitId':_0x2f72f8},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x12576a=_0x544e9e;this[_0x12576a(0x170)][_0x12576a(0x147)]('presenting');const _0x20bdcf=new Map(),_0x44f9a8=this[_0x12576a(0x1a2)]=new _0x371ceb();_0x44f9a8[_0x12576a(0x192)](_0x28496c(()=>{const _0x5aab28=_0x12576a;_0x20bdcf['forEach'](_0x5a9530=>_0x5a9530['complete']()),_0x20bdcf[_0x5aab28(0x1b2)]();})),_0x44f9a8[_0x12576a(0x192)](this['_commandService'][_0x12576a(0x1c6)](_0x59d69c=>{const _0x32c7d7=_0x12576a;var _0x79f683;if(_0x59d69c['type']!==_0x55beed['OPERATION']||!this['_liveShareService'][_0x32c7d7(0x1be)](_0x59d69c['id']))return;const {id:_0x4ace84}=_0x59d69c;let _0xb7aa6;_0x20bdcf[_0x32c7d7(0x183)](_0x4ace84)?_0xb7aa6=_0x20bdcf[_0x32c7d7(0x1b5)](_0x4ace84):(_0xb7aa6=new _0x3050f3(),_0x20bdcf['set'](_0x4ace84,_0xb7aa6),_0xb7aa6['pipe'](_0x4a1338((_0x79f683=this[_0x32c7d7(0x1bf)][_0x32c7d7(0x12f)](Ce))!=null?_0x79f683:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x32c7d7(0x144)](_0x3d4b47=>{const _0x41325e=_0x32c7d7;this[_0x41325e(0x1c5)][_0x41325e(0x19f)]({'eventID':_0x5b5b48[_0x41325e(0x1bc)],'data':{'unitID':this[_0x41325e(0x14e)],'operations':{[_0x3d4b47['id']]:{'id':_0x3d4b47['id'],'params':JSON[_0x41325e(0x1c0)](_0x3d4b47[_0x41325e(0x186)])}}}},this['_unitID']);})),_0xb7aa6[_0x32c7d7(0x147)](_0x59d69c);})),this[_0x12576a(0x138)]['getInitialStates'](this[_0x12576a(0x14e)])[_0x12576a(0x1a3)](_0x33bfad=>this[_0x12576a(0x1c5)][_0x12576a(0x19f)]({'eventID':_0x5b5b48[_0x12576a(0x1bc)],'data':{'unitID':this[_0x12576a(0x14e)],'operations':{[_0x33bfad['id']]:{'id':_0x33bfad['id'],'params':JSON[_0x12576a(0x1c0)](_0x33bfad[_0x12576a(0x186)])}}}},this[_0x12576a(0x14e)]));}[_0x544e9e(0x15e)](){const _0x2860f1=_0x544e9e;var _0x58ca2a;this[_0x2860f1(0x170)][_0x2860f1(0x147)](_0x2860f1(0x181)),(_0x58ca2a=this['_commandDisposable'])==null||_0x58ca2a[_0x2860f1(0x13a)](),this[_0x2860f1(0x1a2)]=null;}['_startFollowing'](){const _0x3a38dd=_0x544e9e;var _0x15e469;(_0x15e469=this['_commandDisposable'])==null||_0x15e469[_0x3a38dd(0x13a)](),this[_0x3a38dd(0x170)][_0x3a38dd(0x147)](_0x3a38dd(0x12a));}['_beIdle'](){const _0x2f6d88=_0x544e9e;var _0x1ae790;this[_0x2f6d88(0x170)][_0x2f6d88(0x147)]('idle'),(_0x1ae790=this['_commandDisposable'])==null||_0x1ae790[_0x2f6d88(0x13a)](),this['_commandDisposable']=null;}['_stopFollowing'](){const _0x5b3455=_0x544e9e;var _0x363a6f;this[_0x5b3455(0x170)][_0x5b3455(0x147)](_0x5b3455(0x145)),(_0x363a6f=this[_0x5b3455(0x1a2)])==null||_0x363a6f[_0x5b3455(0x13a)]();}[_0x544e9e(0x172)](_0x129085){const _0x32828=_0x544e9e;if([_0x32828(0x140),_0x32828(0x145),'offline']['includes'](this['_status'])||!_0x129085['data'][_0x32828(0x173)]||_0x129085[_0x32828(0x151)]['presenter']===this['_collabSession']['getMemberID']())return;this['_status']===_0x32828(0x181)&&this[_0x32828(0x18f)]();const _0x9f1b48=_0x129085[_0x32828(0x151)][_0x32828(0x153)];Object['values'](_0x9f1b48)[_0x32828(0x1a3)](_0xba0e90=>{const _0x2d1b9d=_0x32828;this[_0x2d1b9d(0x14c)][_0x2d1b9d(0x19a)](_0xba0e90['id'],_0xba0e90[_0x2d1b9d(0x186)]?JSON[_0x2d1b9d(0x141)](_0xba0e90[_0x2d1b9d(0x186)]):null,{'fromCollab':!0x0});});}[_0x544e9e(0x1ac)](){const _0x2f6614=_0x544e9e;var _0x59c869;this[_0x2f6614(0x170)]['next'](_0x2f6614(0x152)),(_0x59c869=this['_commandDisposable'])==null||_0x59c869[_0x2f6614(0x13a)]();}[_0x544e9e(0x1c1)](){const _0x59be4a=_0x544e9e;this[_0x59be4a(0x170)]['next'](_0x59be4a(0x181)),this[_0x59be4a(0x191)]();}};N=Y([_(0x2,_0x3a8011),_(0x3,_0x1e336b(L)),_(0x4,_0x19c6ee)],N);function Le(){const _0x2683cf=_0x544e9e,_0x56ca50=_0x3188a9(S),_0x3c1f55=_0x3188a9(_0x1bb9e7),_0x50bca7=_0x4c9888(()=>_0x3c1f55[_0x2683cf(0x129)](_0x2352a5[_0x2683cf(0x19d)]),void 0x0,!0x1,[]),[_0x5bc611,_0x436fe0]=_0x551170(null),[_0x38c47a,_0x125fe2]=_0x551170(c[_0x2683cf(0x18a)]),_0x48dd09=_0x3183ed(null);return _0x365eaf(()=>(_0x50bca7&&_0x56ca50[_0x2683cf(0x1bd)](_0x50bca7['getUnitId']())[_0x2683cf(0x15f)](_0x51b48e=>{const _0x24d390=_0x2683cf;_0x436fe0(_0x51b48e),_0x48dd09[_0x24d390(0x17c)]=_0x51b48e[_0x24d390(0x1ad)][_0x24d390(0x144)](_0x58bb3a=>{_0x125fe2(_0x58bb3a);});}),()=>{const _0x1b3f7d=_0x2683cf;var _0x3b9415;(_0x3b9415=_0x48dd09[_0x1b3f7d(0x17c)])==null||_0x3b9415[_0x1b3f7d(0x1a4)](),_0x48dd09[_0x1b3f7d(0x17c)]=null;}),[_0x50bca7,_0x56ca50]),_0x5bc611?_0x158892(_0x4384ad,{'align':'end','disabled':_0x38c47a===c['OFFLINE'],'className':'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','overlay':_0x158892(Re,{'status':_0x38c47a,'coordinator':_0x5bc611}),'children':_0x158892('button',{'className':_0x57f05e(_0x2683cf(0x17b),{'univer-cursor-not-allowed':_0x38c47a===c[_0x2683cf(0x15b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x38c47a!==c['OFFLINE']}),'type':'button','children':_0x158892(W,{'className':_0x2683cf(0x1b7)})})}):null;}function Re(_0x405eb7){const _0x1a6c44=_0x544e9e,{status:_0x52f23e,coordinator:_0x52aac7}=_0x405eb7;switch(_0x52f23e){case c[_0x1a6c44(0x18a)]:return _0x158892($e,{'coordinator':_0x52aac7});case c[_0x1a6c44(0x1c3)]:return _0x158892(xe,{'coordinator':_0x52aac7});case c['NOT_FOLLOWING']:return _0x158892(Pe,{'coordinator':_0x52aac7});case c[_0x1a6c44(0x15b)]:return _0x158892(Te,{});case c['PRESENTING']:return _0x158892(Ae,{'coordinator':_0x52aac7});default:return null;}}function $e(_0x457661){const _0x537e6e=_0x544e9e,{coordinator:_0x40984e}=_0x457661;return _0x1c053d(_0x2d0f7d,{'children':[_0x158892(_0x537e6e(0x193),{'className':_0x537e6e(0x18d),'children':'Present\x20this\x20document'}),_0x158892(_0x2d28cf,{'onClick':()=>_0x40984e['tryStartPresenting'](),'children':_0x537e6e(0x1b4)})]});}function xe(_0x317529){const _0x3ca834=_0x544e9e,{coordinator:_0x1b57ab}=_0x317529;return _0x1c053d(_0x2d0f7d,{'children':[_0x158892(_0x3ca834(0x193),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3ca834(0x17a)}),_0x158892(_0x2d28cf,{'onClick':()=>_0x1b57ab[_0x3ca834(0x14d)](),'children':_0x3ca834(0x154)})]});}function Pe(_0xb59395){const _0x93f7a8=_0x544e9e,{coordinator:_0x301bbd}=_0xb59395;return _0x1c053d(_0x2d0f7d,{'children':[_0x158892(_0x93f7a8(0x193),{'className':_0x93f7a8(0x18d),'children':_0x93f7a8(0x12e)}),_0x158892(_0x2d28cf,{'variant':_0x93f7a8(0x17e),'onClick':()=>_0x301bbd[_0x93f7a8(0x13f)](),'children':'Start\x20following'})]});}function Ae(_0x25fde0){const _0x12a075=_0x544e9e,{coordinator:_0x1ff7fe}=_0x25fde0;return _0x1c053d(_0x2d0f7d,{'children':[_0x158892(_0x12a075(0x193),{'className':_0x12a075(0x18d),'children':_0x12a075(0x128)}),_0x158892(_0x2d28cf,{'variant':_0x12a075(0x174),'onClick':()=>_0x1ff7fe[_0x12a075(0x136)](),'children':_0x12a075(0x14b)})]});}function Te(){const _0x34a6ab=_0x544e9e;return _0x158892(_0x2d0f7d,{'children':_0x34a6ab(0x143)});}var Fe=Object[_0x544e9e(0x16b)],He=(_0x505ece,_0x163387,_0x6913b8,_0x207676)=>{for(var _0x56fb8b=_0x207676>0x1?void 0x0:_0x207676?Fe(_0x163387,_0x6913b8):_0x163387,_0x539255=_0x505ece['length']-0x1,_0x273356;_0x539255>=0x0;_0x539255--)(_0x273356=_0x505ece[_0x539255])&&(_0x56fb8b=_0x273356(_0x56fb8b)||_0x56fb8b);return _0x56fb8b;},A=(_0x593ba2,_0x57f439)=>(_0x5cc590,_0x27342f)=>_0x57f439(_0x5cc590,_0x27342f,_0x593ba2);let m=class extends _0x3dce28{constructor(_0x65567,_0x2ef8de){super(),this['_injector']=_0x65567,this['_uiPartsService']=_0x2ef8de,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x2de4d5=_0x544e9e;this['disposeWithMe'](this[_0x2de4d5(0x165)][_0x2de4d5(0x12c)](_0x318ff3['HEADER_MENU'],()=>_0x573a0a(Le,this[_0x2de4d5(0x148)])));}};m=He([A(0x0,_0x1e336b(_0x267c92)),A(0x1,_0x1abdc4)],m);function _0x1f2d(_0x18f93f,_0x41af8f){_0x18f93f=_0x18f93f-0x128;const _0x39bc88=_0x39bc();let _0x1f2df8=_0x39bc88[_0x18f93f];return _0x1f2df8;}const ye=_0x544e9e(0x1a0),T={};var Ue=Object[_0x544e9e(0x16b)],Ve=(_0x1d89f4,_0x3d4c8a,_0x296ca9,_0x419b91)=>{const _0x25563c=_0x544e9e;for(var _0x9ac241=_0x419b91>0x1?void 0x0:_0x419b91?Ue(_0x3d4c8a,_0x296ca9):_0x3d4c8a,_0x223331=_0x1d89f4[_0x25563c(0x1b3)]-0x1,_0x720049;_0x223331>=0x0;_0x223331--)(_0x720049=_0x1d89f4[_0x223331])&&(_0x9ac241=_0x720049(_0x9ac241)||_0x9ac241);return _0x9ac241;},je=(_0x36b7d3,_0x2c6208)=>(_0x17ad42,_0x3f3d27)=>_0x2c6208(_0x17ad42,_0x3f3d27,_0x36b7d3);let I=class extends _0x3dce28{constructor(_0x114e29){const _0x225e93=_0x544e9e;super(),this[_0x225e93(0x138)]=_0x114e29,this['_init']();}[_0x544e9e(0x1b0)](){const _0x4ca90f=_0x544e9e;[_0x21a324['id'],_0x24df0e['id'],_0x4754ab['id']][_0x4ca90f(0x1a3)](_0x557701=>{const _0x2d89a9=_0x4ca90f;this['disposeWithMe'](this[_0x2d89a9(0x138)]['registerSharedOperation'](_0x557701));});}};I=Ve([je(0x0,_0x1e336b(L))],I);var Me=Object[_0x544e9e(0x1a7)],ke=Object[_0x544e9e(0x16b)],Ge=(_0x1eb444,_0x47a481,_0x1c85fb)=>_0x47a481 in _0x1eb444?Me(_0x1eb444,_0x47a481,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c85fb}):_0x1eb444[_0x47a481]=_0x1c85fb,We=(_0x34781e,_0x2a257e,_0x530e33,_0x141db3)=>{for(var _0x14d2d6=_0x141db3>0x1?void 0x0:_0x141db3?ke(_0x2a257e,_0x530e33):_0x2a257e,_0xf5fc87=_0x34781e['length']-0x1,_0x2705fa;_0xf5fc87>=0x0;_0xf5fc87--)(_0x2705fa=_0x34781e[_0xf5fc87])&&(_0x14d2d6=_0x2705fa(_0x14d2d6)||_0x14d2d6);return _0x14d2d6;},F=(_0x17a250,_0x3045d7)=>(_0x50c160,_0x2f7f43)=>_0x3045d7(_0x50c160,_0x2f7f43,_0x17a250),B=(_0x218ae8,_0x121b3f,_0x22dea3)=>Ge(_0x218ae8,typeof _0x121b3f!=_0x544e9e(0x16c)?_0x121b3f+'':_0x121b3f,_0x22dea3);const Ye='UNIVER_LIVE_SHARE_PLUGIN';function _0x39bc(){const _0x3bf1f2=['dispose$','init','univer-mb-3\x20univer-w-full\x20univer-text-sm','registerSharedOperation','_startFollowing','tag','_fetchOperations','add','div','live-share-icon','trim','UNIVER_UNKNOWN','998433PefZyu','http://www.w3.org/2000/svg','_handleTerminate','executeCommand','fill','tryStartPresenting','UNIVER_SHEET','2063885HmChwa','send','live-share.config','override','_commandDisposable','forEach','unsubscribe','createInstance','set','defineProperty','LIVESHARE_TERMINATE','_reporters','idSuffix','map','_handleOffline','status$','getInitialStates','replace','_init','xlink:href','clear','length','Start','get','359912aROIGW','univer-size-4','LIVESHARE_FETCH_OPERATIONS','782837jnHCYm','_sharedOperations','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','LIVESHARE_OPERATION','getLiveShareCoordinator','shouldShareOperation','_configService','stringify','_handleOnline','pipe','FOLLOWING','toString','_collabSession','onCommandExecuted','_collabSessionService','event$','find','_startPresenting','You\x27re\x20presenting\x20the\x20document','getCurrentTypeOfUnit$','following','path','registerComponent','displayName','You\x27re\x20not\x20following\x20the\x20presenter','getConfig','getLiveShareCoordinatorSync','children','getStatus','assign','currentColor','1em','stopPresenting','colorChannel1','_liveShareService','url(#$1','dispose','defIds','_stopFollowing','NOT_FOLLOWING','entries','startFollowing','presenting','parse','getUnitId','You\x27are\x20offline.','subscribe','not-following','sessionStatus$','next','_injector','_config','pluginName','Stop\x20presenting','_commandService','stopFollowing','_unitID','91483LTVVZe','registerInitialStateReporter','data','offline','operations','Stop\x20following','ONLINE','UniverIcon','type','232DkhmHr','asObservable','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','OFFLINE','NEW_CHANGESETS','_entities','_stopPresenting','then','includes','onStarting','sheet','_univerInstanceService','getTypeOfUnitDisposed$','_uiPartsService','evenodd','mask','_handleNewHost','_startLiveShareCoordinator','substring','getOwnPropertyDescriptor','symbol','1666470TXGxBt','0\x200\x2017\x2017','_status','_status$','onRendered','_handleOperation','presenter','default','attrs','getTypeOfUnitAdded$','random','setConfig','reverse','You\x27re\x20following\x20the\x20presenter','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','current','univerjs-icon\x20univerjs-icon-','text','defs','_handleNewChangeSets','idle','_presenter','has','svg','4bbBnXN','params','1147161Ycujuu','use','string','IDLE'];_0x39bc=function(){return _0x3bf1f2;};return _0x39bc();}let b=class extends _0xd4af45{constructor(_0x53fcf5=T,_0x360611,_0x11e07a){const _0x33e909=_0x544e9e;super(),this[_0x33e909(0x149)]=_0x53fcf5,this[_0x33e909(0x148)]=_0x360611,this['_configService']=_0x11e07a;const {..._0x11c246}=_0x21916a({},T,this[_0x33e909(0x149)]);this['_configService'][_0x33e909(0x178)](ye,_0x11c246);}[_0x544e9e(0x161)](){const _0x26d2aa=_0x544e9e;_0x4a1a17(this[_0x26d2aa(0x148)],_0x3b4db0([[L],[S],[I],[m]],this['_config'][_0x26d2aa(0x1a1)])),_0x3bcbb9(this[_0x26d2aa(0x148)],[[I]]);}[_0x544e9e(0x171)](){const _0x1d9f5c=_0x544e9e;_0x3bcbb9(this[_0x1d9f5c(0x148)],[[m]]);}};B(b,_0x544e9e(0x157),_0x2352a5[_0x544e9e(0x196)]),B(b,_0x544e9e(0x14a),Ye),b=We([_0x4ea2aa(_0xec1ae4),F(0x1,_0x1e336b(_0x267c92)),F(0x2,_0x3a8011)],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(_0x4b7d6e,_0x53400c){const _0x433885=_0x53cd,_0x250ecd=_0x4b7d6e();while(!![]){try{const _0x54aefc=-parseInt(_0x433885(0x80))/0x1+parseInt(_0x433885(0x9b))/0x2+parseInt(_0x433885(0x73))/0x3*(-parseInt(_0x433885(0x7a))/0x4)+-parseInt(_0x433885(0x96))/0x5*(parseInt(_0x433885(0x7b))/0x6)+-parseInt(_0x433885(0x6c))/0x7*(-parseInt(_0x433885(0x84))/0x8)+-parseInt(_0x433885(0x78))/0x9*(-parseInt(_0x433885(0x8d))/0xa)+-parseInt(_0x433885(0x8b))/0xb;if(_0x54aefc===_0x53400c)break;else _0x250ecd['push'](_0x250ecd['shift']());}catch(_0x54960f){_0x250ecd['push'](_0x250ecd['shift']());}}}(_0x51b6,0x4221f),function(_0x493be2,_0x5a00a3){const _0x2ba48d=_0x53cd;typeof exports==_0x2ba48d(0x8c)&&typeof module<'u'?_0x5a00a3(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==_0x2ba48d(0x95)&&define[_0x2ba48d(0x7d)]?define([_0x2ba48d(0x8e),_0x2ba48d(0x89),_0x2ba48d(0x88),'@univerjs/sheets-ui',_0x2ba48d(0x90),_0x2ba48d(0x6f)],_0x5a00a3):(_0x493be2=typeof globalThis<'u'?globalThis:_0x493be2||self,_0x5a00a3(_0x493be2[_0x2ba48d(0x71)],_0x493be2[_0x2ba48d(0x8f)],_0x493be2[_0x2ba48d(0x68)],_0x493be2['UniverSheetsUi'],_0x493be2[_0x2ba48d(0x65)],_0x493be2[_0x2ba48d(0x99)]));}(this,function(_0x2a6d35,_0x1a94c1,_0x5829e5,_0x254a83,_0x5de0cf,_0x1b0429){'use strict';const _0x39a1a7=_0x53cd;class _0x18180d extends _0x5de0cf[_0x39a1a7(0x77)]{[_0x39a1a7(0x79)](_0x269a0f,_0x2e5321,_0x5998c0,_0x39985d,_0x241e7e){const _0xb2bd5a=_0x39a1a7,_0x5eece1=_0x269a0f['get'](_0x2a6d35['LiveShareController']),_0x1a55b7=_0x269a0f['get'](_0x1a94c1[_0xb2bd5a(0x66)]),_0x1facf3=_0x2e5321[_0xb2bd5a(0x72)](),_0x4241d8=_0x2e5321[_0xb2bd5a(0x9c)](),_0x2c7d33=_0x5eece1[_0xb2bd5a(0x82)](_0x1facf3);(_0x2c7d33==null?void 0x0:_0x2c7d33['getStatus']())!==_0x2a6d35[_0xb2bd5a(0x81)][_0xb2bd5a(0x91)]||(_0x5998c0['getSheetId']()!==_0x4241d8[_0xb2bd5a(0x76)]()&&this[_0xb2bd5a(0x7f)][_0xb2bd5a(0x87)](_0x5829e5[_0xb2bd5a(0x6e)]['id'],{'unitId':_0x1facf3,'subUnitId':_0x5998c0[_0xb2bd5a(0x76)]()}),!_0x1a55b7[_0xb2bd5a(0x7c)](_0x1facf3))||_0x241e7e[_0xb2bd5a(0x97)](_0x254a83[_0xb2bd5a(0x98)]['id'],{'unitId':_0x2e5321['getUnitId'](),'sheetId':_0x5998c0['getSheetId'](),'sheetViewStartRow':_0x39985d[_0xb2bd5a(0x69)],'sheetViewStartColumn':_0x39985d[_0xb2bd5a(0x74)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x5de0cf[_0x39a1a7(0x77)][_0x39a1a7(0x83)](_0x18180d);class _0x2ab3c7 extends _0x1b0429[_0x39a1a7(0x94)]{['getLiveShareStatus'](){const _0x247ce6=_0x39a1a7;var _0x3c3ec3,_0x120242;const _0x23d4cb=this[_0x247ce6(0x6d)][_0x247ce6(0x92)](_0x2a6d35[_0x247ce6(0x64)]),_0x275d29=(_0x3c3ec3=this[_0x247ce6(0x93)]())==null?void 0x0:_0x3c3ec3['getId']();if(!_0x275d29)throw new Error(_0x247ce6(0x6b));const _0x1cb456=_0x23d4cb[_0x247ce6(0x82)](_0x275d29);return(_0x120242=_0x1cb456==null?void 0x0:_0x1cb456[_0x247ce6(0x85)]())!=null?_0x120242:_0x2a6d35[_0x247ce6(0x81)][_0x247ce6(0x86)];}[_0x39a1a7(0x75)](){const _0x2a7423=_0x39a1a7;var _0x25c617;const _0x3562ef=this[_0x2a7423(0x6d)]['get'](_0x2a6d35[_0x2a7423(0x64)]),_0x3b665b=(_0x25c617=this[_0x2a7423(0x93)]())==null?void 0x0:_0x25c617[_0x2a7423(0x8a)]();if(!_0x3b665b)throw new Error(_0x2a7423(0x6b));const _0x13afe4=_0x3562ef[_0x2a7423(0x82)](_0x3b665b);if(!_0x13afe4)throw new Error(_0x2a7423(0x6a));_0x13afe4['startFollowing']();}[_0x39a1a7(0x7e)](){const _0xb7b84f=_0x39a1a7;var _0x121de4;const _0x4d7793=this[_0xb7b84f(0x6d)][_0xb7b84f(0x92)](_0x2a6d35[_0xb7b84f(0x64)]),_0x51bd10=(_0x121de4=this[_0xb7b84f(0x93)]())==null?void 0x0:_0x121de4['getId']();if(!_0x51bd10)throw new Error('No\x20active\x20workbook\x20found.');const _0x42907d=_0x4d7793[_0xb7b84f(0x82)](_0x51bd10);if(!_0x42907d)throw new Error(_0xb7b84f(0x6a));_0x42907d[_0xb7b84f(0x7e)]();}[_0x39a1a7(0x67)](){const _0xf5c575=_0x39a1a7;var _0x243ec6;const _0x401d20=this['_injector'][_0xf5c575(0x92)](_0x2a6d35[_0xf5c575(0x64)]),_0x4d1838=(_0x243ec6=this['getActiveWorkbook']())==null?void 0x0:_0x243ec6[_0xf5c575(0x8a)]();if(!_0x4d1838)throw new Error('No\x20active\x20workbook\x20found.');const _0x1786f0=_0x401d20[_0xf5c575(0x82)](_0x4d1838);if(!_0x1786f0)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x1786f0[_0xf5c575(0x70)]();}['stopPresenting'](){const _0x290448=_0x39a1a7;var _0x658dd5;const _0x235215=this[_0x290448(0x6d)][_0x290448(0x92)](_0x2a6d35[_0x290448(0x64)]),_0x48c3be=(_0x658dd5=this[_0x290448(0x93)]())==null?void 0x0:_0x658dd5[_0x290448(0x8a)]();if(!_0x48c3be)throw new Error(_0x290448(0x6b));const _0x298b3f=_0x235215[_0x290448(0x82)](_0x48c3be);if(!_0x298b3f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x298b3f['stopPresenting']();}}_0x1b0429['FUniver']['extend'](_0x2ab3c7);class _0x347a4e extends _0x1b0429[_0x39a1a7(0x9a)]{get['LiveShareStatusEnum'](){return _0x2a6d35['LiveShareStatus'];}}_0x1b0429[_0x39a1a7(0x9a)]['extend'](_0x347a4e);}));function _0x53cd(_0x4e4c01,_0x3c2104){_0x4e4c01=_0x4e4c01-0x64;const _0x51b69b=_0x51b6();let _0x53cd0b=_0x51b69b[_0x4e4c01];return _0x53cd0b;}function _0x51b6(){const _0x3398ca=['20920euTtrm','getStatus','IDLE','executeCommand','@univerjs/sheets','@univerjs/engine-render','getId','1764928frBCNp','object','2260790fkLwtx','@univerjs-pro/live-share','UniverEngineRender','@univerjs/sheets/facade','PRESENTING','get','getActiveWorkbook','FUniver','function','5emFzPn','syncExecuteCommand','SetScrollOperation','UniverCoreFacade','FEnum','1014104mpDHgi','getActiveSheet','LiveShareController','UniverSheetsFacade','IRenderManagerService','startPresenting','UniverSheets','startRow','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','No\x20active\x20workbook\x20found.','1057XQMaNI','_injector','SetWorksheetActiveOperation','@univerjs/core/facade','tryStartPresenting','UniverProLiveShare','getUnitId','759219mdaIxZ','startColumn','startFollowing','getSheetId','FRange','9gjBsoc','_initialize','4ZqwSXY','88800MlUwcO','getRenderById','amd','stopFollowing','_commandService','428796DdbeiI','LiveShareStatus','getLiveShareCoordinatorSync','extend'];_0x51b6=function(){return _0x3398ca;};return _0x51b6();}
1
+ function _0x2c64(_0x54559b,_0x5791e5){_0x54559b=_0x54559b-0x17a;const _0x4e8d90=_0x4e8d();let _0x2c64ce=_0x4e8d90[_0x54559b];return _0x2c64ce;}(function(_0xf4f7aa,_0x544431){const _0x2ad48e=_0x2c64,_0x518409=_0xf4f7aa();while(!![]){try{const _0x117b3f=parseInt(_0x2ad48e(0x190))/0x1+parseInt(_0x2ad48e(0x1a4))/0x2+parseInt(_0x2ad48e(0x18e))/0x3*(parseInt(_0x2ad48e(0x193))/0x4)+-parseInt(_0x2ad48e(0x180))/0x5+parseInt(_0x2ad48e(0x186))/0x6*(parseInt(_0x2ad48e(0x17e))/0x7)+parseInt(_0x2ad48e(0x196))/0x8+-parseInt(_0x2ad48e(0x1a6))/0x9*(parseInt(_0x2ad48e(0x1a0))/0xa);if(_0x117b3f===_0x544431)break;else _0x518409['push'](_0x518409['shift']());}catch(_0x32039b){_0x518409['push'](_0x518409['shift']());}}}(_0x4e8d,0xf35cb),function(_0x27d857,_0xe69867){const _0x47d9e5=_0x2c64;typeof exports==_0x47d9e5(0x18f)&&typeof module<'u'?_0xe69867(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==_0x47d9e5(0x19c)&&define['amd']?define(['@univerjs-pro/live-share',_0x47d9e5(0x19f),_0x47d9e5(0x1a2),_0x47d9e5(0x188),_0x47d9e5(0x191),'@univerjs/core/facade'],_0xe69867):(_0x27d857=typeof globalThis<'u'?globalThis:_0x27d857||self,_0xe69867(_0x27d857[_0x47d9e5(0x195)],_0x27d857[_0x47d9e5(0x17a)],_0x27d857['UniverSheets'],_0x27d857['UniverSheetsUi'],_0x27d857[_0x47d9e5(0x199)],_0x27d857['UniverCoreFacade']));}(this,function(_0x420aa1,_0x27ec49,_0x314fb7,_0x3bd001,_0x4b6094,_0x537348){'use strict';const _0x206ede=_0x2c64;class _0x1d9975 extends _0x4b6094[_0x206ede(0x194)]{[_0x206ede(0x1a3)](_0x3ab7be,_0x5a66da,_0x5e828a,_0x175a6f,_0x369e55){const _0x303856=_0x206ede,_0x3bcd1c=_0x3ab7be['get'](_0x420aa1[_0x303856(0x19d)]),_0x19a4f0=_0x3ab7be['get'](_0x27ec49['IRenderManagerService']),_0x24293f=_0x5a66da[_0x303856(0x19e)](),_0x18872d=_0x5a66da['getActiveSheet'](),_0x31a014=_0x3bcd1c[_0x303856(0x184)](_0x24293f);(_0x31a014==null?void 0x0:_0x31a014[_0x303856(0x192)]())!==_0x420aa1[_0x303856(0x18c)][_0x303856(0x17b)]||(_0x5e828a[_0x303856(0x183)]()!==_0x18872d[_0x303856(0x183)]()&&this[_0x303856(0x1a1)]['executeCommand'](_0x314fb7[_0x303856(0x197)]['id'],{'unitId':_0x24293f,'subUnitId':_0x5e828a[_0x303856(0x183)]()}),!_0x19a4f0[_0x303856(0x187)](_0x24293f))||_0x369e55[_0x303856(0x182)](_0x3bd001['SetScrollOperation']['id'],{'unitId':_0x5a66da[_0x303856(0x19e)](),'sheetId':_0x5e828a['getSheetId'](),'sheetViewStartRow':_0x175a6f[_0x303856(0x181)],'sheetViewStartColumn':_0x175a6f[_0x303856(0x17c)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4b6094[_0x206ede(0x194)][_0x206ede(0x198)](_0x1d9975);class _0x4c08bc extends _0x537348['FUniver']{[_0x206ede(0x18b)](){const _0x58c694=_0x206ede;var _0x2d3083,_0x520847;const _0x1e6679=this[_0x58c694(0x18a)][_0x58c694(0x17d)](_0x420aa1[_0x58c694(0x19d)]),_0x1b22bc=(_0x2d3083=this[_0x58c694(0x189)]())==null?void 0x0:_0x2d3083['getId']();if(!_0x1b22bc)throw new Error(_0x58c694(0x19b));const _0x1f6a43=_0x1e6679['getLiveShareCoordinatorSync'](_0x1b22bc);return(_0x520847=_0x1f6a43==null?void 0x0:_0x1f6a43['getStatus']())!=null?_0x520847:_0x420aa1[_0x58c694(0x18c)]['IDLE'];}['startFollowing'](){const _0x388041=_0x206ede;var _0x18a7ce;const _0x31f139=this['_injector'][_0x388041(0x17d)](_0x420aa1[_0x388041(0x19d)]),_0x39ec53=(_0x18a7ce=this[_0x388041(0x189)]())==null?void 0x0:_0x18a7ce[_0x388041(0x1a5)]();if(!_0x39ec53)throw new Error(_0x388041(0x19b));const _0x49c75b=_0x31f139['getLiveShareCoordinatorSync'](_0x39ec53);if(!_0x49c75b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x49c75b['startFollowing']();}[_0x206ede(0x19a)](){const _0x8a3c16=_0x206ede;var _0x1b1878;const _0x2b259f=this[_0x8a3c16(0x18a)][_0x8a3c16(0x17d)](_0x420aa1[_0x8a3c16(0x19d)]),_0x2f224a=(_0x1b1878=this[_0x8a3c16(0x189)]())==null?void 0x0:_0x1b1878[_0x8a3c16(0x1a5)]();if(!_0x2f224a)throw new Error(_0x8a3c16(0x19b));const _0x425b72=_0x2b259f[_0x8a3c16(0x184)](_0x2f224a);if(!_0x425b72)throw new Error(_0x8a3c16(0x185));_0x425b72[_0x8a3c16(0x19a)]();}['startPresenting'](){const _0x55ac3e=_0x206ede;var _0x366c33;const _0x525624=this[_0x55ac3e(0x18a)]['get'](_0x420aa1[_0x55ac3e(0x19d)]),_0x47969=(_0x366c33=this[_0x55ac3e(0x189)]())==null?void 0x0:_0x366c33[_0x55ac3e(0x1a5)]();if(!_0x47969)throw new Error(_0x55ac3e(0x19b));const _0xb120bb=_0x525624[_0x55ac3e(0x184)](_0x47969);if(!_0xb120bb)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xb120bb['tryStartPresenting']();}[_0x206ede(0x18d)](){const _0x107184=_0x206ede;var _0x15cd27;const _0x11f021=this[_0x107184(0x18a)]['get'](_0x420aa1[_0x107184(0x19d)]),_0xdae6c7=(_0x15cd27=this[_0x107184(0x189)]())==null?void 0x0:_0x15cd27[_0x107184(0x1a5)]();if(!_0xdae6c7)throw new Error(_0x107184(0x19b));const _0x5337a2=_0x11f021[_0x107184(0x184)](_0xdae6c7);if(!_0x5337a2)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5337a2[_0x107184(0x18d)]();}}_0x537348['FUniver'][_0x206ede(0x198)](_0x4c08bc);class _0x551a0d extends _0x537348['FEnum']{get['LiveShareStatusEnum'](){const _0x122a3d=_0x206ede;return _0x420aa1[_0x122a3d(0x18c)];}}_0x537348[_0x206ede(0x17f)]['extend'](_0x551a0d);}));function _0x4e8d(){const _0x3a30aa=['@univerjs/sheets-ui','getActiveWorkbook','_injector','getLiveShareStatus','LiveShareStatus','stopPresenting','69qwYoiC','object','859315zfdkef','@univerjs/sheets/facade','getStatus','92284KXIfIt','FRange','UniverProLiveShare','8147736Gkviqi','SetWorksheetActiveOperation','extend','UniverSheetsFacade','stopFollowing','No\x20active\x20workbook\x20found.','function','LiveShareController','getUnitId','@univerjs/engine-render','22145130tKdTxu','_commandService','@univerjs/sheets','_initialize','1741498nMmONs','getId','9MPLEBe','UniverEngineRender','PRESENTING','startColumn','get','175819kyrTCp','FEnum','1343880cFPiBv','startRow','syncExecuteCommand','getSheetId','getLiveShareCoordinatorSync','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','48eLwIoB','getRenderById'];_0x4e8d=function(){return _0x3a30aa;};return _0x4e8d();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0xac2f(_0x1b480b,_0x5eae69){_0x1b480b=_0x1b480b-0x1ae;const _0x4a3996=_0x4a39();let _0xac2f9e=_0x4a3996[_0x1b480b];return _0xac2f9e;}function _0x4a39(){const _0x28dc4d=['80oXgkZB','UniverDesign','LIVESHARE_NEW_HOST','_handleNewHost','useRef','has','unitId','Disposable','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','button','use','defs','react','fill','sheet','live-share.config','_startFollowing','length','operators','You\x27are\x20offline.','createElement','assign','useEffect','registerComponent','setConfig','SessionStatus','dispose','_mountLiveShare','UniverSheets','symbol','NOT_FOLLOWING','sessionStatus$','asObservable','LiveShareCoordinator','trim','presenting','LIVESHARE_OPERATION','text','SAME_OPERATION_SHARE_INTERVAL','@univerjs/sheets-ui','object','IUniverInstanceService','_unitID','UNIVER_LIVE_SHARE_PLUGIN','send','Injector','_handleOffline','Subject','univer-mb-3\x20univer-w-full\x20univer-text-sm','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','createInstance','idle','displayName','IUIPartsService','_config','params','tag','Module','_handleOperation','operations','InsertSheetMutation','62590HuEkfl','UNIVER_UNKNOWN','executeCommand','onCommandExecuted','onRendered','_collabSessionService','none','BuiltInUIPart','useObservable','http://www.w3.org/2000/svg','You\x27re\x20presenting\x20the\x20document','rxjs','string','registerDependencies','startFollowing','1em','Start','getStatus','_stopPresenting','UniverIcon','presenter','merge','getOwnPropertyDescriptor','default','not-following','jsx','unsubscribe','add','UniverLiveSharePlugin','SetWorksheetActiveOperation','svg','NEW_CHANGESETS','from','_stopFollowing','registerSharedOperation','UniverSheetsUi','_commandService','LIVESHARE_TERMINATE','path','stopFollowing','xlink:href','throttleTime','getCurrentTypeOfUnit$','delete','values','children','UniverUi','connectInjector','LIVESHARE_FETCH_OPERATIONS','1117389Ksakgm','map','SetScrollOperation','Button','getTypeOfUnitDisposed$','_init','touchDependencies','currentColor','subscribe','useDependency','LiveShareController','univerjs-icon\x20univerjs-icon-','_univerInstanceService','FOLLOWING','_handleNewChangeSets','shouldShareOperation','complete','status$','toDisposable','useState','forEach','Inject','_handleTerminate','@univerjs/sheets','getInitialStates','mask','idSuffix','init','IDLE','331590QmVXOp','RxDisposable','CommandType','offline','ICommandService','next','random','amd','disposeWithMe','Present\x20this\x20document','following','_startLiveShareCoordinator','_sharedOperations','1048884RnGGUm','136146BqwSxc','event$','registerInitialStateReporter','jsxs','_beIdle','@univerjs/core','get','HEADER_MENU','reverse','9TqfuuO','mutations','React','PRESENTING','7245820krwUJL','@univerjs/design','UNIVER_SHEET','getValue','react/jsx-runtime','_startPresenting','0\x200\x2017\x2017','UniverCore','DesktopLiveShareController','data','colorChannel1','Stop\x20following','requireSession','UniverProCollaboration','DisposableCollection','evenodd','_configService','_uiPartsService','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','_fetchOperations','defineProperty','dispose$','includes','pipe','exports','_commandDisposable','stopPresenting','Start\x20following','_liveShareService','div','DependentOn','stringify','_collabSession','substring','then','mergeOverrideWithDependencies','CollaborationEvent','LIVESHARE_REQUEST_HOST','univer-size-4','6KzxJLy','BehaviorSubject','getMemberID','You\x27re\x20following\x20the\x20presenter','_reporters','_entities','OFFLINE','current','getLiveShareCoordinatorSync','_status$','attrs','ONLINE','UniverCollaborationClientPlugin','replace','363400UouZbP','_presenter','_injector','toString','UniverInstanceType','_status','CollaborationSessionService','getUnitId','clsx','toStringTag','Fragment','IConfigService','takeUntil','find'];_0x4a39=function(){return _0x28dc4d;};return _0x4a39();}(function(_0x400650,_0x172601){const _0xacd9ac=_0xac2f,_0x576860=_0x400650();while(!![]){try{const _0x515a09=-parseInt(_0xacd9ac(0x217))/0x1*(-parseInt(_0xacd9ac(0x270))/0x2)+parseInt(_0xacd9ac(0x1d5))/0x3+-parseInt(_0xacd9ac(0x1e2))/0x4+-parseInt(_0xacd9ac(0x233))/0x5*(parseInt(_0xacd9ac(0x1e3))/0x6)+-parseInt(_0xacd9ac(0x1b8))/0x7+-parseInt(_0xacd9ac(0x225))/0x8*(parseInt(_0xacd9ac(0x1ec))/0x9)+parseInt(_0xacd9ac(0x1f0))/0xa;if(_0x515a09===_0x172601)break;else _0x576860['push'](_0x576860['shift']());}catch(_0x3dd518){_0x576860['push'](_0x576860['shift']());}}}(_0x4a39,0x2f029),function(_0x42ebb6,_0x181594){const _0x102e8d=_0xac2f;typeof exports==_0x102e8d(0x25b)&&typeof module<'u'?_0x181594(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=='function'&&define[_0x102e8d(0x1dc)]?define([_0x102e8d(0x208),_0x102e8d(0x1e8),'@univerjs/ui',_0x102e8d(0x1f4),_0x102e8d(0x1f1),_0x102e8d(0x23f),'@univerjs-pro/collaboration','@univerjs-pro/collaboration-client',_0x102e8d(0x1cf),_0x102e8d(0x27b),'rxjs/operators',_0x102e8d(0x25a)],_0x181594):(_0x42ebb6=typeof globalThis<'u'?globalThis:_0x42ebb6||self,_0x181594(_0x42ebb6['UniverProLiveShare']={},_0x42ebb6[_0x102e8d(0x1f7)],_0x42ebb6[_0x102e8d(0x1b5)],_0x42ebb6['React'],_0x42ebb6[_0x102e8d(0x234)],_0x42ebb6[_0x102e8d(0x1ee)],_0x42ebb6[_0x102e8d(0x1fd)],_0x42ebb6['UniverProCollaborationClient'],_0x42ebb6[_0x102e8d(0x24f)],_0x42ebb6[_0x102e8d(0x27b)],_0x42ebb6[_0x102e8d(0x27b)][_0x102e8d(0x245)],_0x42ebb6[_0x102e8d(0x293)]));}(this,function(_0x2c0109,_0x545d76,_0x1a8727,_0x20946c,_0x32ca4b,_0x28aa9a,_0x2352d3,_0x3f0a5f,_0x19e44f,_0x134f05,_0x13542d,_0x5696ca){'use strict';const _0x415a73=_0xac2f;var _0x26a658=Object[_0x415a73(0x204)],_0x452534=(_0x34291f,_0x16a403,_0x7f79e8)=>_0x16a403 in _0x34291f?_0x26a658(_0x34291f,_0x16a403,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7f79e8}):_0x34291f[_0x16a403]=_0x7f79e8,_0x44028a=(_0x2441f0,_0x31eea4,_0x969adf)=>_0x452534(_0x2441f0,typeof _0x31eea4!=_0x415a73(0x250)?_0x31eea4+'':_0x31eea4,_0x969adf);function _0x311f12({ref:_0x3d71a4,..._0x78efbf}){const _0x4d3cd8=_0x415a73,{icon:_0x5f1cba,id:_0x5e593a,className:_0xbcc6a1,extend:_0x534b8d,..._0x1a7293}=_0x78efbf,_0x1ee0c0=(_0x4d3cd8(0x1c3)+_0x5e593a+'\x20'+(_0xbcc6a1||''))[_0x4d3cd8(0x255)](),_0x4ab7d4=_0x28aa9a[_0x4d3cd8(0x237)]('_'+_0x38864b());return _0x16fee1(_0x5f1cba,''+_0x5e593a,{'defIds':_0x5f1cba['defIds'],'idSuffix':_0x4ab7d4['current']},{'ref':_0x3d71a4,'className':_0x1ee0c0,..._0x1a7293},_0x534b8d);}function _0x16fee1(_0x7cfb25,_0x2bfda2,_0x143e60,_0x3e7987,_0xf6e73c){const _0x597a08=_0x415a73;return _0x28aa9a['createElement'](_0x7cfb25[_0x597a08(0x26b)],{'key':_0x2bfda2,..._0x331047(_0x7cfb25,_0x143e60,_0xf6e73c),..._0x3e7987},(_0x25e68d(_0x7cfb25,_0x143e60)[_0x597a08(0x1b4)]||[])[_0x597a08(0x1b9)]((_0x570d57,_0x44e152)=>_0x16fee1(_0x570d57,_0x2bfda2+'-'+_0x7cfb25[_0x597a08(0x26b)]+'-'+_0x44e152,_0x143e60,void 0x0,_0xf6e73c)));}function _0x331047(_0x2d6867,_0x522b47,_0x40d96a){const _0x25e7c9=_0x415a73,_0x30087f={..._0x2d6867['attrs']};_0x40d96a!=null&&_0x40d96a[_0x25e7c9(0x1fa)]&&_0x30087f[_0x25e7c9(0x240)]===_0x25e7c9(0x1fa)&&(_0x30087f['fill']=_0x40d96a['colorChannel1']),_0x2d6867['tag']===_0x25e7c9(0x1d1)&&_0x30087f['id']&&(_0x30087f['id']=_0x30087f['id']+_0x522b47[_0x25e7c9(0x1d2)]),Object['entries'](_0x30087f)[_0x25e7c9(0x1cc)](([_0x3dcf2d,_0x191950])=>{const _0x78c768=_0x25e7c9;_0x3dcf2d===_0x78c768(0x1d1)&&typeof _0x191950==_0x78c768(0x27c)&&(_0x30087f[_0x3dcf2d]=_0x191950[_0x78c768(0x224)](/url\(#(.*)\)/,'url(#$1'+_0x522b47[_0x78c768(0x1d2)]+')'));});const {defIds:_0x2a86cf}=_0x522b47;return!_0x2a86cf||_0x2a86cf['length']===0x0||(_0x2d6867['tag']===_0x25e7c9(0x23d)&&_0x30087f['xlink:href']&&(_0x30087f[_0x25e7c9(0x1af)]=_0x30087f[_0x25e7c9(0x1af)]+_0x522b47[_0x25e7c9(0x1d2)]),Object['entries'](_0x30087f)[_0x25e7c9(0x1cc)](([_0x382210,_0x49401c])=>{const _0x306932=_0x25e7c9;typeof _0x49401c==_0x306932(0x27c)&&(_0x30087f[_0x382210]=_0x49401c[_0x306932(0x224)](/url\(#(.*)\)/,'url(#$1'+_0x522b47[_0x306932(0x1d2)]+')'));})),_0x30087f;}function _0x25e68d(_0x14457d,_0x551a91){const _0x1468ba=_0x415a73;var _0x2183c7;const {defIds:_0x46bf1a}=_0x551a91;return!_0x46bf1a||_0x46bf1a[_0x1468ba(0x244)]===0x0?_0x14457d:_0x14457d[_0x1468ba(0x26b)]===_0x1468ba(0x23e)&&((_0x2183c7=_0x14457d[_0x1468ba(0x1b4)])!=null&&_0x2183c7[_0x1468ba(0x244)])?{..._0x14457d,'children':_0x14457d[_0x1468ba(0x1b4)][_0x1468ba(0x1b9)](_0x150c43=>typeof _0x150c43[_0x1468ba(0x221)]['id']==_0x1468ba(0x27c)&&_0x46bf1a&&_0x46bf1a[_0x1468ba(0x206)](_0x150c43[_0x1468ba(0x221)]['id'])?{..._0x150c43,'attrs':{..._0x150c43[_0x1468ba(0x221)],'id':_0x150c43[_0x1468ba(0x221)]['id']+_0x551a91[_0x1468ba(0x1d2)]}}:_0x150c43)}:_0x14457d;}function _0x38864b(){const _0x5af02=_0x415a73;return Math[_0x5af02(0x1db)]()[_0x5af02(0x228)](0x24)[_0x5af02(0x211)](0x2,0x8);}_0x311f12['displayName']=_0x415a73(0x283);const _0x1e9035={'tag':_0x415a73(0x28e),'attrs':{'xmlns':_0x415a73(0x279),'fill':_0x415a73(0x276),'viewBox':_0x415a73(0x1f6),'width':_0x415a73(0x27f),'height':_0x415a73(0x27f)},'children':[{'tag':_0x415a73(0x296),'attrs':{'fill':_0x415a73(0x1bf),'d':_0x415a73(0x23b)}},{'tag':_0x415a73(0x296),'attrs':{'fill':_0x415a73(0x1bf),'d':_0x415a73(0x264),'fillRule':_0x415a73(0x1ff),'clipRule':_0x415a73(0x1ff)}}]},_0x5b6cad=_0x28aa9a['forwardRef'](function(_0x333c17,_0x34c239){const _0x4f8f02=_0x415a73;return _0x28aa9a[_0x4f8f02(0x247)](_0x311f12,Object[_0x4f8f02(0x248)]({},_0x333c17,{'id':'live-share-icon','ref':_0x34c239,'icon':_0x1e9035}));});_0x5b6cad[_0x415a73(0x267)]='LiveShareIcon';class _0x56aeba extends _0x545d76[_0x415a73(0x23a)]{constructor(){const _0x25781f=_0x415a73;super(...arguments),_0x44028a(this,_0x25781f(0x1e1),new Set()),_0x44028a(this,_0x25781f(0x21b),new Set());}[_0x415a73(0x292)](_0x7d7fb7){const _0x60a160=_0x415a73;return this[_0x60a160(0x1e1)][_0x60a160(0x28b)](_0x7d7fb7),_0x545d76['toDisposable'](()=>this[_0x60a160(0x1e1)][_0x60a160(0x1b2)](_0x7d7fb7));}[_0x415a73(0x1e5)](_0x1b5035){const _0x293ba1=_0x415a73;return this['_reporters'][_0x293ba1(0x28b)](_0x1b5035),_0x545d76[_0x293ba1(0x1ca)](()=>this[_0x293ba1(0x21b)]['delete'](_0x1b5035));}[_0x415a73(0x1c7)](_0x89eca8){const _0x20c834=_0x415a73;return this['_sharedOperations'][_0x20c834(0x238)](_0x89eca8);}[_0x415a73(0x1d0)](_0x5c16ab){const _0x2fa3e1=_0x415a73;return Array[_0x2fa3e1(0x290)](this[_0x2fa3e1(0x21b)])[_0x2fa3e1(0x1b9)](_0x213917=>_0x213917(_0x5c16ab));}}var _0x4122f9=Object[_0x415a73(0x286)],_0x56b12d=(_0x6a3ae5,_0x3bbe74,_0x42524d,_0x36e522)=>{const _0x4dff9a=_0x415a73;for(var _0x13b3b5=_0x36e522>0x1?void 0x0:_0x36e522?_0x4122f9(_0x3bbe74,_0x42524d):_0x3bbe74,_0x2304ea=_0x6a3ae5[_0x4dff9a(0x244)]-0x1,_0x2c3624;_0x2304ea>=0x0;_0x2304ea--)(_0x2c3624=_0x6a3ae5[_0x2304ea])&&(_0x13b3b5=_0x2c3624(_0x13b3b5)||_0x13b3b5);return _0x13b3b5;},_0x201fe6=(_0x218705,_0x3f2123)=>(_0x811bd6,_0xe75ef3)=>_0x3f2123(_0x811bd6,_0xe75ef3,_0x218705);_0x2c0109[_0x415a73(0x1c2)]=class extends _0x545d76[_0x415a73(0x1d6)]{constructor(_0x18ceac,_0x428287,_0x5dbf5f){const _0x2ab7cc=_0x415a73;super(),_0x44028a(this,_0x2ab7cc(0x21c),new Map()),(this[_0x2ab7cc(0x1c4)]=_0x18ceac,this[_0x2ab7cc(0x227)]=_0x428287,this[_0x2ab7cc(0x275)]=_0x5dbf5f,this[_0x2ab7cc(0x1bd)]());}async['getLiveShareCoordinator'](_0x5aa2d7){const _0x3c7bfe=_0x415a73;return this['_entities']['has'](_0x5aa2d7)||await this[_0x3c7bfe(0x1e0)](_0x5aa2d7),this[_0x3c7bfe(0x21c)][_0x3c7bfe(0x1e9)](_0x5aa2d7);}[_0x415a73(0x21f)](_0x54ebe3){const _0x406c83=_0x415a73;var _0x5c253f;return(_0x5c253f=this['_entities'][_0x406c83(0x1e9)](_0x54ebe3))!=null?_0x5c253f:null;}['_init'](){const _0x5a04a0=_0x415a73;this[_0x5a04a0(0x1c4)]['getTypeOfUnitAdded$'](_0x545d76[_0x5a04a0(0x229)]['UNIVER_SHEET'])[_0x5a04a0(0x207)](_0x13542d[_0x5a04a0(0x231)](this['dispose$']))[_0x5a04a0(0x1c0)](async _0x32a0d7=>{const _0x583975=_0x5a04a0,_0x4329df=_0x32a0d7[_0x583975(0x22c)]();this[_0x583975(0x21c)]['has'](_0x4329df)||this[_0x583975(0x1e0)](_0x4329df);}),this[_0x5a04a0(0x1c4)][_0x5a04a0(0x1bc)](_0x545d76[_0x5a04a0(0x229)]['UNIVER_SHEET'])[_0x5a04a0(0x207)](_0x13542d[_0x5a04a0(0x231)](this[_0x5a04a0(0x205)]))['subscribe'](_0x50ea83=>{const _0x3be3c9=_0x5a04a0,_0x1534e7=_0x50ea83['getUnitId'](),_0x13aace=this[_0x3be3c9(0x21c)][_0x3be3c9(0x1e9)](_0x1534e7);_0x13aace==null||_0x13aace[_0x3be3c9(0x24d)]();});}async[_0x415a73(0x1e0)](_0x19e26c){const _0x57cfeb=_0x415a73,_0x1bba39=await this['_collabSessionService'][_0x57cfeb(0x1fc)](_0x19e26c),_0x1d044a=this[_0x57cfeb(0x227)][_0x57cfeb(0x265)](_0x2c0109['LiveShareCoordinator'],_0x19e26c,_0x1bba39);return _0x1d044a['init'](),this[_0x57cfeb(0x21c)]['set'](_0x19e26c,_0x1d044a),_0x1d044a;}},_0x2c0109[_0x415a73(0x1c2)]=_0x56b12d([_0x201fe6(0x0,_0x545d76[_0x415a73(0x25c)]),_0x201fe6(0x1,_0x545d76[_0x415a73(0x1cd)](_0x545d76[_0x415a73(0x260)])),_0x201fe6(0x2,_0x545d76['Inject'](_0x3f0a5f[_0x415a73(0x22b)]))],_0x2c0109['LiveShareController']);var _0x1a6c0f=(_0x3b9ffb=>(_0x3b9ffb['OFFLINE']=_0x415a73(0x1d8),_0x3b9ffb['IDLE']=_0x415a73(0x266),_0x3b9ffb[_0x415a73(0x1c5)]=_0x415a73(0x1df),_0x3b9ffb[_0x415a73(0x251)]=_0x415a73(0x288),_0x3b9ffb[_0x415a73(0x1ef)]=_0x415a73(0x256),_0x3b9ffb))(_0x1a6c0f||{});const _0x740a88=_0x415a73(0x259),_0x1eb84c=0xc8;_0x2c0109[_0x415a73(0x254)]=class extends _0x545d76[_0x415a73(0x1d6)]{constructor(_0x27cdee,_0x463a0d,_0x4f5c1b,_0x20d987,_0x4ae9c8){const _0x1643f0=_0x415a73;super(),_0x44028a(this,_0x1643f0(0x220),new _0x134f05[(_0x1643f0(0x218))]('idle')),_0x44028a(this,_0x1643f0(0x1c9),this['_status$'][_0x1643f0(0x253)]()),_0x44028a(this,_0x1643f0(0x1bd),!0x1),_0x44028a(this,_0x1643f0(0x209),null),_0x44028a(this,'_presenter',null),(this[_0x1643f0(0x25d)]=_0x27cdee,this[_0x1643f0(0x210)]=_0x463a0d,this[_0x1643f0(0x200)]=_0x4f5c1b,this['_liveShareService']=_0x20d987,this[_0x1643f0(0x294)]=_0x4ae9c8);}get['_status'](){const _0x2b4b6b=_0x415a73;return this['_status$'][_0x2b4b6b(0x1f3)]();}['dispose'](){const _0x2d0233=_0x415a73;var _0x11b6b4;(_0x11b6b4=this[_0x2d0233(0x209)])==null||_0x11b6b4[_0x2d0233(0x24d)](),this[_0x2d0233(0x220)][_0x2d0233(0x1da)](_0x2d0233(0x266)),this[_0x2d0233(0x220)][_0x2d0233(0x1c8)]();}[_0x415a73(0x281)](){const _0x18e80e=_0x415a73;return this[_0x18e80e(0x22a)];}[_0x415a73(0x1d3)](){const _0x11abf0=_0x415a73;this[_0x11abf0(0x1bd)]||(this[_0x11abf0(0x1bd)]=!0x0,this[_0x11abf0(0x210)][_0x11abf0(0x252)]['pipe'](_0x13542d[_0x11abf0(0x231)](this[_0x11abf0(0x205)]))[_0x11abf0(0x1c0)](_0x4a358a=>{const _0x20d5cc=_0x11abf0;switch(_0x4a358a){case _0x3f0a5f[_0x20d5cc(0x24c)][_0x20d5cc(0x21d)]:this[_0x20d5cc(0x261)]();break;case _0x3f0a5f[_0x20d5cc(0x24c)][_0x20d5cc(0x222)]:this['_handleOnline']();break;}}),this[_0x11abf0(0x210)][_0x11abf0(0x1e4)][_0x11abf0(0x207)](_0x13542d[_0x11abf0(0x231)](this[_0x11abf0(0x205)]))[_0x11abf0(0x1c0)](_0x4a6a98=>{const _0x35b618=_0x11abf0,{eventID:_0x4cf6a7}=_0x4a6a98;switch(_0x4cf6a7){case _0x2352d3[_0x35b618(0x214)][_0x35b618(0x235)]:this[_0x35b618(0x236)](_0x4a6a98);break;case _0x2352d3[_0x35b618(0x214)][_0x35b618(0x257)]:this[_0x35b618(0x26d)](_0x4a6a98);break;case _0x2352d3[_0x35b618(0x214)]['LIVESHARE_TERMINATE']:this[_0x35b618(0x1ce)]();break;case _0x2352d3[_0x35b618(0x214)][_0x35b618(0x28f)]:this[_0x35b618(0x1c6)](_0x4a6a98);break;}}));}['tryStartPresenting'](){const _0x455721=_0x415a73;this['_collabSession'][_0x455721(0x25f)]({'eventID':_0x2352d3[_0x455721(0x214)][_0x455721(0x215)],'data':{'unitID':this[_0x455721(0x25d)],'userID':this[_0x455721(0x210)]['getMemberID']()}},this[_0x455721(0x25d)]);}[_0x415a73(0x20a)](){const _0x1ae1cb=_0x415a73;this[_0x1ae1cb(0x22a)]===_0x1ae1cb(0x256)&&(this[_0x1ae1cb(0x220)]['next']('idle'),this[_0x1ae1cb(0x210)][_0x1ae1cb(0x25f)]({'eventID':_0x2352d3['CollaborationEvent'][_0x1ae1cb(0x295)],'data':{'unitID':this[_0x1ae1cb(0x25d)]}},this[_0x1ae1cb(0x25d)]));}[_0x415a73(0x27e)](){const _0x11d4f6=_0x415a73;this['_status']==='not-following'&&(this[_0x11d4f6(0x220)]['next']('following'),this[_0x11d4f6(0x243)]());}['stopFollowing'](){const _0x4bc734=_0x415a73;this[_0x4bc734(0x22a)]===_0x4bc734(0x1df)&&this['_stopFollowing']();}[_0x415a73(0x236)](_0x1ae82b){const _0x2172df=_0x415a73,{presenter:_0x59450a}=_0x1ae82b['data'],_0x2deca2=this[_0x2172df(0x210)][_0x2172df(0x219)]();this[_0x2172df(0x226)]=_0x59450a,_0x59450a===_0x2deca2?(this['_stopFollowing'](),this[_0x2172df(0x1f5)]()):this[_0x2172df(0x22a)]!==_0x2172df(0x288)&&(this[_0x2172df(0x282)](),this['_startFollowing']());}[_0x415a73(0x203)](){const _0x3bd148=_0x415a73,_0xbd4bc9={'eventID':_0x2352d3[_0x3bd148(0x214)][_0x3bd148(0x1b7)]};this[_0x3bd148(0x210)]['send'](_0xbd4bc9,this[_0x3bd148(0x25d)]);}[_0x415a73(0x1ce)](){const _0x3c6bf5=_0x415a73;this[_0x3c6bf5(0x226)]=null,this[_0x3c6bf5(0x22a)]!==_0x3c6bf5(0x256)&&this[_0x3c6bf5(0x1e7)]();}[_0x415a73(0x1c6)](_0x235532){const _0x285482=_0x415a73;if(this['_status']===_0x285482(0x1df)&&this[_0x285482(0x226)]===_0x235532[_0x285482(0x1f9)]['memberID']){const _0x4e811c=_0x2352d3['parseProtocolChangeset'](_0x235532[_0x285482(0x1f9)])[_0x285482(0x1ed)][_0x285482(0x1eb)]()[_0x285482(0x232)](_0x33aead=>_0x33aead['id']===_0x19e44f[_0x285482(0x26f)]['id']);if(_0x4e811c){const _0x882937=_0x4e811c[_0x285482(0x26a)][_0x285482(0x239)],_0x3985c8=_0x4e811c[_0x285482(0x26a)][_0x285482(0x241)]['id'];setTimeout(()=>{const _0x2b0ae8=_0x285482;this[_0x2b0ae8(0x294)][_0x2b0ae8(0x272)](_0x19e44f[_0x2b0ae8(0x28d)]['id'],{'unitId':_0x882937,'subUnitId':_0x3985c8},{'fromCollab':!0x0});});}}}[_0x415a73(0x1f5)](){const _0x74239e=_0x415a73;this[_0x74239e(0x220)][_0x74239e(0x1da)](_0x74239e(0x256));const _0x299855=new Map(),_0x214a7a=this['_commandDisposable']=new _0x545d76[(_0x74239e(0x1fe))]();_0x214a7a[_0x74239e(0x28b)](_0x545d76[_0x74239e(0x1ca)](()=>{const _0x556ef8=_0x74239e;_0x299855[_0x556ef8(0x1cc)](_0xc6dbb1=>_0xc6dbb1[_0x556ef8(0x1c8)]()),_0x299855['clear']();})),_0x214a7a[_0x74239e(0x28b)](this[_0x74239e(0x294)][_0x74239e(0x273)](_0x35f4a2=>{const _0x48225d=_0x74239e;var _0x4f3b67;if(_0x35f4a2['type']!==_0x545d76[_0x48225d(0x1d7)]['OPERATION']||!this[_0x48225d(0x20c)]['shouldShareOperation'](_0x35f4a2['id']))return;const {id:_0x4722c1}=_0x35f4a2;let _0x180b3e;_0x299855[_0x48225d(0x238)](_0x4722c1)?_0x180b3e=_0x299855[_0x48225d(0x1e9)](_0x4722c1):(_0x180b3e=new _0x134f05[(_0x48225d(0x262))](),_0x299855['set'](_0x4722c1,_0x180b3e),_0x180b3e[_0x48225d(0x207)](_0x13542d[_0x48225d(0x1b0)]((_0x4f3b67=this[_0x48225d(0x200)]['getConfig'](_0x740a88))!=null?_0x4f3b67:_0x1eb84c,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x48225d(0x1c0)](_0x4ca3b2=>{const _0x54e341=_0x48225d;this['_collabSession']['send']({'eventID':_0x2352d3[_0x54e341(0x214)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x54e341(0x25d)],'operations':{[_0x4ca3b2['id']]:{'id':_0x4ca3b2['id'],'params':JSON[_0x54e341(0x20f)](_0x4ca3b2[_0x54e341(0x26a)])}}}},this['_unitID']);})),_0x180b3e[_0x48225d(0x1da)](_0x35f4a2);})),this[_0x74239e(0x20c)][_0x74239e(0x1d0)](this[_0x74239e(0x25d)])[_0x74239e(0x1cc)](_0x172709=>this[_0x74239e(0x210)]['send']({'eventID':_0x2352d3[_0x74239e(0x214)][_0x74239e(0x257)],'data':{'unitID':this[_0x74239e(0x25d)],'operations':{[_0x172709['id']]:{'id':_0x172709['id'],'params':JSON[_0x74239e(0x20f)](_0x172709[_0x74239e(0x26a)])}}}},this[_0x74239e(0x25d)]));}[_0x415a73(0x282)](){const _0x3b19f8=_0x415a73;var _0x6493b;this['_status$']['next'](_0x3b19f8(0x266)),(_0x6493b=this[_0x3b19f8(0x209)])==null||_0x6493b[_0x3b19f8(0x24d)](),this['_commandDisposable']=null;}[_0x415a73(0x243)](){const _0x3856e6=_0x415a73;var _0x36a302;(_0x36a302=this[_0x3856e6(0x209)])==null||_0x36a302[_0x3856e6(0x24d)](),this[_0x3856e6(0x220)][_0x3856e6(0x1da)](_0x3856e6(0x1df));}['_beIdle'](){const _0x3f955b=_0x415a73;var _0x25e5cd;this[_0x3f955b(0x220)][_0x3f955b(0x1da)]('idle'),(_0x25e5cd=this[_0x3f955b(0x209)])==null||_0x25e5cd['dispose'](),this['_commandDisposable']=null;}[_0x415a73(0x291)](){const _0xfbb5b=_0x415a73;var _0x347ae6;this['_status$'][_0xfbb5b(0x1da)](_0xfbb5b(0x288)),(_0x347ae6=this[_0xfbb5b(0x209)])==null||_0x347ae6[_0xfbb5b(0x24d)]();}[_0x415a73(0x26d)](_0x293a95){const _0x364d9f=_0x415a73;if([_0x364d9f(0x256),_0x364d9f(0x288),_0x364d9f(0x1d8)]['includes'](this[_0x364d9f(0x22a)])||!_0x293a95['data'][_0x364d9f(0x284)]||_0x293a95['data'][_0x364d9f(0x284)]===this[_0x364d9f(0x210)]['getMemberID']())return;this['_status']==='idle'&&this[_0x364d9f(0x243)]();const _0x2e1475=_0x293a95[_0x364d9f(0x1f9)][_0x364d9f(0x26e)];Object[_0x364d9f(0x1b3)](_0x2e1475)[_0x364d9f(0x1cc)](_0x1ed9e7=>{const _0x4cdba0=_0x364d9f;this[_0x4cdba0(0x294)][_0x4cdba0(0x272)](_0x1ed9e7['id'],_0x1ed9e7[_0x4cdba0(0x26a)]?JSON['parse'](_0x1ed9e7[_0x4cdba0(0x26a)]):null,{'fromCollab':!0x0});});}[_0x415a73(0x261)](){const _0x5ef5d9=_0x415a73;var _0x16ce6d;this[_0x5ef5d9(0x220)][_0x5ef5d9(0x1da)]('offline'),(_0x16ce6d=this[_0x5ef5d9(0x209)])==null||_0x16ce6d['dispose']();}['_handleOnline'](){const _0x201d3b=_0x415a73;this[_0x201d3b(0x220)][_0x201d3b(0x1da)](_0x201d3b(0x266)),this['_fetchOperations']();}},_0x2c0109[_0x415a73(0x254)]=_0x56b12d([_0x201fe6(0x2,_0x545d76[_0x415a73(0x230)]),_0x201fe6(0x3,_0x545d76[_0x415a73(0x1cd)](_0x56aeba)),_0x201fe6(0x4,_0x545d76[_0x415a73(0x1d9)])],_0x2c0109[_0x415a73(0x254)]);function _0x10c2b0(){const _0x443493=_0x415a73,_0xabe22=_0x1a8727[_0x443493(0x1c1)](_0x2c0109[_0x443493(0x1c2)]),_0x20e21c=_0x1a8727['useDependency'](_0x545d76[_0x443493(0x25c)]),_0x2dcd6a=_0x1a8727[_0x443493(0x278)](()=>_0x20e21c[_0x443493(0x1b1)](_0x545d76[_0x443493(0x229)][_0x443493(0x1f2)]),void 0x0,!0x1,[]),[_0x1f16bd,_0x1c71f7]=_0x28aa9a[_0x443493(0x1cb)](null),[_0x241a61,_0x21e108]=_0x28aa9a[_0x443493(0x1cb)](_0x1a6c0f['IDLE']),_0x8c752e=_0x28aa9a[_0x443493(0x237)](null);return _0x28aa9a[_0x443493(0x249)](()=>(_0x2dcd6a&&_0xabe22['getLiveShareCoordinator'](_0x2dcd6a[_0x443493(0x22c)]())[_0x443493(0x212)](_0x4e276d=>{const _0x1eebed=_0x443493;_0x1c71f7(_0x4e276d),_0x8c752e[_0x1eebed(0x21e)]=_0x4e276d[_0x1eebed(0x1c9)][_0x1eebed(0x1c0)](_0x4cc8a2=>{_0x21e108(_0x4cc8a2);});}),()=>{const _0x54ffe3=_0x443493;var _0x144d0f;(_0x144d0f=_0x8c752e[_0x54ffe3(0x21e)])==null||_0x144d0f[_0x54ffe3(0x28a)](),_0x8c752e[_0x54ffe3(0x21e)]=null;}),[_0x2dcd6a,_0xabe22]),_0x1f16bd?_0x20946c[_0x443493(0x289)](_0x32ca4b['Dropdown'],{'align':'end','disabled':_0x241a61===_0x1a6c0f['OFFLINE'],'className':_0x443493(0x202),'overlay':_0x20946c[_0x443493(0x289)](_0x3fc6db,{'status':_0x241a61,'coordinator':_0x1f16bd}),'children':_0x20946c[_0x443493(0x289)](_0x443493(0x23c),{'className':_0x32ca4b[_0x443493(0x22d)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x241a61===_0x1a6c0f[_0x443493(0x21d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x241a61!==_0x1a6c0f[_0x443493(0x21d)]}),'type':_0x443493(0x23c),'children':_0x20946c[_0x443493(0x289)](_0x5b6cad,{'className':_0x443493(0x216)})})}):null;}function _0x3fc6db(_0x2dfb51){const _0x5b59d4=_0x415a73,{status:_0x525163,coordinator:_0x41edca}=_0x2dfb51;switch(_0x525163){case _0x1a6c0f[_0x5b59d4(0x1d4)]:return _0x20946c['jsx'](_0x10ee18,{'coordinator':_0x41edca});case _0x1a6c0f[_0x5b59d4(0x1c5)]:return _0x20946c['jsx'](_0x53b861,{'coordinator':_0x41edca});case _0x1a6c0f[_0x5b59d4(0x251)]:return _0x20946c['jsx'](_0x1bf957,{'coordinator':_0x41edca});case _0x1a6c0f[_0x5b59d4(0x21d)]:return _0x20946c['jsx'](_0x29195f,{});case _0x1a6c0f[_0x5b59d4(0x1ef)]:return _0x20946c[_0x5b59d4(0x289)](_0x2d518d,{'coordinator':_0x41edca});default:return null;}}function _0x10ee18(_0x3345aa){const _0x1f66e0=_0x415a73,{coordinator:_0x3bed0b}=_0x3345aa;return _0x20946c[_0x1f66e0(0x1e6)](_0x20946c[_0x1f66e0(0x22f)],{'children':[_0x20946c[_0x1f66e0(0x289)](_0x1f66e0(0x20d),{'className':_0x1f66e0(0x263),'children':_0x1f66e0(0x1de)}),_0x20946c[_0x1f66e0(0x289)](_0x32ca4b[_0x1f66e0(0x1bb)],{'onClick':()=>_0x3bed0b['tryStartPresenting'](),'children':_0x1f66e0(0x280)})]});}function _0x53b861(_0x46b991){const _0x7165bf=_0x415a73,{coordinator:_0x46ed6c}=_0x46b991;return _0x20946c['jsxs'](_0x20946c[_0x7165bf(0x22f)],{'children':[_0x20946c[_0x7165bf(0x289)](_0x7165bf(0x20d),{'className':_0x7165bf(0x263),'children':_0x7165bf(0x21a)}),_0x20946c['jsx'](_0x32ca4b['Button'],{'onClick':()=>_0x46ed6c[_0x7165bf(0x1ae)](),'children':_0x7165bf(0x1fb)})]});}function _0x1bf957(_0x27d6fb){const _0x4cebda=_0x415a73,{coordinator:_0x44be3e}=_0x27d6fb;return _0x20946c[_0x4cebda(0x1e6)](_0x20946c[_0x4cebda(0x22f)],{'children':[_0x20946c['jsx'](_0x4cebda(0x20d),{'className':_0x4cebda(0x263),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x20946c['jsx'](_0x32ca4b[_0x4cebda(0x1bb)],{'variant':_0x4cebda(0x258),'onClick':()=>_0x44be3e['startFollowing'](),'children':_0x4cebda(0x20b)})]});}function _0x2d518d(_0x48a797){const _0x4c1fd7=_0x415a73,{coordinator:_0x4ea34f}=_0x48a797;return _0x20946c[_0x4c1fd7(0x1e6)](_0x20946c[_0x4c1fd7(0x22f)],{'children':[_0x20946c[_0x4c1fd7(0x289)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4c1fd7(0x27a)}),_0x20946c['jsx'](_0x32ca4b['Button'],{'variant':_0x4c1fd7(0x287),'onClick':()=>_0x4ea34f[_0x4c1fd7(0x20a)](),'children':'Stop\x20presenting'})]});}function _0x29195f(){const _0x22f3d9=_0x415a73;return _0x20946c[_0x22f3d9(0x289)](_0x20946c[_0x22f3d9(0x22f)],{'children':_0x22f3d9(0x246)});}var _0x3164f8=Object[_0x415a73(0x286)],_0x26000f=(_0x26802d,_0x1d7519,_0x34a259,_0x396641)=>{const _0x5ade82=_0x415a73;for(var _0x1f8c72=_0x396641>0x1?void 0x0:_0x396641?_0x3164f8(_0x1d7519,_0x34a259):_0x1d7519,_0x3cd0a3=_0x26802d[_0x5ade82(0x244)]-0x1,_0x33c449;_0x3cd0a3>=0x0;_0x3cd0a3--)(_0x33c449=_0x26802d[_0x3cd0a3])&&(_0x1f8c72=_0x33c449(_0x1f8c72)||_0x1f8c72);return _0x1f8c72;},_0x4a3cf8=(_0x4059e8,_0x423f8b)=>(_0x2ddbe9,_0x4fcd71)=>_0x423f8b(_0x2ddbe9,_0x4fcd71,_0x4059e8);_0x2c0109[_0x415a73(0x1f8)]=class extends _0x545d76['Disposable']{constructor(_0x285c7f,_0x5d908f){const _0xed06aa=_0x415a73;super(),this[_0xed06aa(0x227)]=_0x285c7f,this[_0xed06aa(0x201)]=_0x5d908f,this[_0xed06aa(0x24e)]();}[_0x415a73(0x24e)](){const _0x5a7671=_0x415a73;this[_0x5a7671(0x1dd)](this['_uiPartsService'][_0x5a7671(0x24a)](_0x1a8727[_0x5a7671(0x277)][_0x5a7671(0x1ea)],()=>_0x1a8727[_0x5a7671(0x1b6)](_0x10c2b0,this[_0x5a7671(0x227)])));}},_0x2c0109[_0x415a73(0x1f8)]=_0x26000f([_0x4a3cf8(0x0,_0x545d76[_0x415a73(0x1cd)](_0x545d76['Injector'])),_0x4a3cf8(0x1,_0x1a8727[_0x415a73(0x268)])],_0x2c0109['DesktopLiveShareController']);const _0x5a9f0c=_0x415a73(0x242),_0x19b59f={};var _0x5a81dc=Object[_0x415a73(0x286)],_0x3d72da=(_0x46068e,_0x56ca5e,_0xf4706f,_0x4eedc7)=>{const _0x53c5ac=_0x415a73;for(var _0x2d1b99=_0x4eedc7>0x1?void 0x0:_0x4eedc7?_0x5a81dc(_0x56ca5e,_0xf4706f):_0x56ca5e,_0xa5f72=_0x46068e[_0x53c5ac(0x244)]-0x1,_0x2644ed;_0xa5f72>=0x0;_0xa5f72--)(_0x2644ed=_0x46068e[_0xa5f72])&&(_0x2d1b99=_0x2644ed(_0x2d1b99)||_0x2d1b99);return _0x2d1b99;},_0x2fbd0e=(_0x52e06f,_0x4c26ad)=>(_0x1e771e,_0x3578f2)=>_0x4c26ad(_0x1e771e,_0x3578f2,_0x52e06f);let _0x194840=class extends _0x545d76['Disposable']{constructor(_0xa8933){const _0x58f92f=_0x415a73;super(),this['_liveShareService']=_0xa8933,this[_0x58f92f(0x1bd)]();}[_0x415a73(0x1bd)](){const _0xcde255=_0x415a73;[_0x5696ca['SetZoomRatioOperation']['id'],_0x5696ca[_0xcde255(0x1ba)]['id'],_0x19e44f['SetWorksheetActiveOperation']['id']]['forEach'](_0x4ef25b=>{const _0x85cd43=_0xcde255;this[_0x85cd43(0x1dd)](this[_0x85cd43(0x20c)][_0x85cd43(0x292)](_0x4ef25b));});}};_0x194840=_0x3d72da([_0x2fbd0e(0x0,_0x545d76[_0x415a73(0x1cd)](_0x56aeba))],_0x194840);var _0x441f69=Object[_0x415a73(0x204)],_0x5dc34c=Object[_0x415a73(0x286)],_0x2b7b61=(_0x1583fe,_0x324feb,_0x55c4e2)=>_0x324feb in _0x1583fe?_0x441f69(_0x1583fe,_0x324feb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55c4e2}):_0x1583fe[_0x324feb]=_0x55c4e2,_0x3f9665=(_0x1d6502,_0x45d90a,_0x7c2617,_0xd738ea)=>{const _0x1c08a5=_0x415a73;for(var _0x4afae9=_0xd738ea>0x1?void 0x0:_0xd738ea?_0x5dc34c(_0x45d90a,_0x7c2617):_0x45d90a,_0x522ba4=_0x1d6502[_0x1c08a5(0x244)]-0x1,_0x2a9c64;_0x522ba4>=0x0;_0x522ba4--)(_0x2a9c64=_0x1d6502[_0x522ba4])&&(_0x4afae9=_0x2a9c64(_0x4afae9)||_0x4afae9);return _0x4afae9;},_0x49a4e0=(_0x2ed793,_0x361f10)=>(_0x27c3ee,_0x230174)=>_0x361f10(_0x27c3ee,_0x230174,_0x2ed793),_0x2c8a99=(_0x3544bd,_0x498223,_0x51bb70)=>_0x2b7b61(_0x3544bd,typeof _0x498223!='symbol'?_0x498223+'':_0x498223,_0x51bb70);const _0x2e97d3=_0x415a73(0x25e);_0x2c0109[_0x415a73(0x28c)]=class extends _0x545d76['Plugin']{constructor(_0x5d27fa=_0x19b59f,_0x48655,_0x598257){const _0x4fb8e2=_0x415a73;super(),this['_config']=_0x5d27fa,this['_injector']=_0x48655,this[_0x4fb8e2(0x200)]=_0x598257;const {..._0x276a56}=_0x545d76[_0x4fb8e2(0x285)]({},_0x19b59f,this[_0x4fb8e2(0x269)]);this[_0x4fb8e2(0x200)][_0x4fb8e2(0x24b)](_0x5a9f0c,_0x276a56);}['onStarting'](){const _0x4c6223=_0x415a73;_0x545d76[_0x4c6223(0x27d)](this[_0x4c6223(0x227)],_0x545d76[_0x4c6223(0x213)]([[_0x56aeba],[_0x2c0109[_0x4c6223(0x1c2)]],[_0x194840],[_0x2c0109[_0x4c6223(0x1f8)]]],this[_0x4c6223(0x269)]['override'])),_0x545d76[_0x4c6223(0x1be)](this['_injector'],[[_0x194840]]);}[_0x415a73(0x274)](){const _0x292e43=_0x415a73;_0x545d76[_0x292e43(0x1be)](this['_injector'],[[_0x2c0109[_0x292e43(0x1f8)]]]);}},_0x2c8a99(_0x2c0109[_0x415a73(0x28c)],'type',_0x545d76[_0x415a73(0x229)][_0x415a73(0x271)]),_0x2c8a99(_0x2c0109[_0x415a73(0x28c)],'pluginName',_0x2e97d3),_0x2c0109[_0x415a73(0x28c)]=_0x3f9665([_0x545d76[_0x415a73(0x20e)](_0x3f0a5f[_0x415a73(0x223)]),_0x49a4e0(0x1,_0x545d76[_0x415a73(0x1cd)](_0x545d76[_0x415a73(0x260)])),_0x49a4e0(0x2,_0x545d76[_0x415a73(0x230)])],_0x2c0109[_0x415a73(0x28c)]),_0x2c0109['LiveShare']=_0x10c2b0,_0x2c0109['LiveShareService']=_0x56aeba,_0x2c0109['LiveShareStatus']=_0x1a6c0f,Object[_0x415a73(0x204)](_0x2c0109,Symbol[_0x415a73(0x22e)],{'value':_0x415a73(0x26c)});}));
1
+ function _0x28a5(_0x5df382,_0x5bc26b){_0x5df382=_0x5df382-0x16b;const _0x8b3b58=_0x8b3b();let _0x28a589=_0x8b3b58[_0x5df382];return _0x28a589;}(function(_0xb0e061,_0x158fae){const _0x538b04=_0x28a5,_0x293be2=_0xb0e061();while(!![]){try{const _0x3081e0=parseInt(_0x538b04(0x1c0))/0x1*(-parseInt(_0x538b04(0x1e7))/0x2)+-parseInt(_0x538b04(0x223))/0x3*(-parseInt(_0x538b04(0x190))/0x4)+parseInt(_0x538b04(0x1a0))/0x5+parseInt(_0x538b04(0x1e8))/0x6+parseInt(_0x538b04(0x1d3))/0x7+parseInt(_0x538b04(0x1ba))/0x8*(parseInt(_0x538b04(0x18d))/0x9)+-parseInt(_0x538b04(0x24d))/0xa*(parseInt(_0x538b04(0x184))/0xb);if(_0x3081e0===_0x158fae)break;else _0x293be2['push'](_0x293be2['shift']());}catch(_0x3b5798){_0x293be2['push'](_0x293be2['shift']());}}}(_0x8b3b,0x57b66),function(_0x3b4d85,_0x3ed05){const _0x57668c=_0x28a5;typeof exports==_0x57668c(0x1eb)&&typeof module<'u'?_0x3ed05(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==_0x57668c(0x207)&&define['amd']?define([_0x57668c(0x16d),_0x57668c(0x1f0),'@univerjs/ui',_0x57668c(0x215),_0x57668c(0x220),'react','@univerjs-pro/collaboration','@univerjs-pro/collaboration-client','@univerjs/sheets',_0x57668c(0x1a5),_0x57668c(0x1d8),'@univerjs/sheets-ui'],_0x3ed05):(_0x3b4d85=typeof globalThis<'u'?globalThis:_0x3b4d85||self,_0x3ed05(_0x3b4d85[_0x57668c(0x1f3)]={},_0x3b4d85[_0x57668c(0x178)],_0x3b4d85[_0x57668c(0x1be)],_0x3b4d85['React'],_0x3b4d85['UniverDesign'],_0x3b4d85[_0x57668c(0x20d)],_0x3b4d85[_0x57668c(0x193)],_0x3b4d85[_0x57668c(0x1d4)],_0x3b4d85['UniverSheets'],_0x3b4d85[_0x57668c(0x1a5)],_0x3b4d85[_0x57668c(0x1a5)]['operators'],_0x3b4d85[_0x57668c(0x23e)]));}(this,function(_0x14c3f4,_0x432f25,_0x237160,_0x5951c7,_0xce3b9a,_0x359f01,_0x13ea87,_0x5f3c56,_0x223188,_0x2720ac,_0x5336a2,_0x5e3f9f){'use strict';const _0x31cb31=_0x28a5;var _0x249667=Object[_0x31cb31(0x1cc)],_0x540ead=(_0x1d937f,_0x3de1fb,_0x37ab44)=>_0x3de1fb in _0x1d937f?_0x249667(_0x1d937f,_0x3de1fb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37ab44}):_0x1d937f[_0x3de1fb]=_0x37ab44,_0x81546b=(_0x22e12f,_0x55b192,_0x310401)=>_0x540ead(_0x22e12f,typeof _0x55b192!=_0x31cb31(0x1e2)?_0x55b192+'':_0x55b192,_0x310401);function _0x438302({ref:_0x4b9b1c,..._0x58a1c7}){const _0x4ba658=_0x31cb31,{icon:_0x3a3e42,id:_0x4db21e,className:_0x4d6b25,extend:_0x3af08e,..._0x1a452f}=_0x58a1c7,_0x2f4c5c=('univerjs-icon\x20univerjs-icon-'+_0x4db21e+'\x20'+(_0x4d6b25||''))['trim'](),_0x3c3469=_0x359f01[_0x4ba658(0x176)]('_'+_0x5cf54c());return _0x5a154c(_0x3a3e42,''+_0x4db21e,{'defIds':_0x3a3e42[_0x4ba658(0x17e)],'idSuffix':_0x3c3469[_0x4ba658(0x1e3)]},{'ref':_0x4b9b1c,'className':_0x2f4c5c,..._0x1a452f},_0x3af08e);}function _0x5a154c(_0xe2be86,_0x54f7a0,_0x24d6f5,_0x37f02b,_0x2b1687){const _0x3b219c=_0x31cb31;return _0x359f01['createElement'](_0xe2be86[_0x3b219c(0x228)],{'key':_0x54f7a0,..._0x12e3dc(_0xe2be86,_0x24d6f5,_0x2b1687),..._0x37f02b},(_0x2fbde7(_0xe2be86,_0x24d6f5)[_0x3b219c(0x1d5)]||[])[_0x3b219c(0x1b3)]((_0x3bf475,_0x1beb38)=>_0x5a154c(_0x3bf475,_0x54f7a0+'-'+_0xe2be86[_0x3b219c(0x228)]+'-'+_0x1beb38,_0x24d6f5,void 0x0,_0x2b1687)));}function _0x12e3dc(_0x32681f,_0x1b2f5f,_0x5d2d49){const _0x25211e=_0x31cb31,_0x30ea9d={..._0x32681f[_0x25211e(0x16e)]};_0x5d2d49!=null&&_0x5d2d49[_0x25211e(0x235)]&&_0x30ea9d[_0x25211e(0x1b1)]===_0x25211e(0x235)&&(_0x30ea9d[_0x25211e(0x1b1)]=_0x5d2d49[_0x25211e(0x235)]),_0x32681f['tag']===_0x25211e(0x1fd)&&_0x30ea9d['id']&&(_0x30ea9d['id']=_0x30ea9d['id']+_0x1b2f5f[_0x25211e(0x229)]),Object[_0x25211e(0x197)](_0x30ea9d)[_0x25211e(0x179)](([_0x9fd6e5,_0x3a223e])=>{const _0x382a4c=_0x25211e;_0x9fd6e5===_0x382a4c(0x1fd)&&typeof _0x3a223e==_0x382a4c(0x185)&&(_0x30ea9d[_0x9fd6e5]=_0x3a223e[_0x382a4c(0x1c5)](/url\(#(.*)\)/,_0x382a4c(0x194)+_0x1b2f5f[_0x382a4c(0x229)]+')'));});const {defIds:_0x2aa443}=_0x1b2f5f;return!_0x2aa443||_0x2aa443['length']===0x0||(_0x32681f['tag']===_0x25211e(0x1cd)&&_0x30ea9d['xlink:href']&&(_0x30ea9d[_0x25211e(0x1de)]=_0x30ea9d[_0x25211e(0x1de)]+_0x1b2f5f[_0x25211e(0x229)]),Object['entries'](_0x30ea9d)[_0x25211e(0x179)](([_0xf9ae90,_0x5940a9])=>{const _0x380354=_0x25211e;typeof _0x5940a9==_0x380354(0x185)&&(_0x30ea9d[_0xf9ae90]=_0x5940a9[_0x380354(0x1c5)](/url\(#(.*)\)/,_0x380354(0x194)+_0x1b2f5f[_0x380354(0x229)]+')'));})),_0x30ea9d;}function _0x2fbde7(_0x60896,_0x4b51cf){const _0x38482b=_0x31cb31;var _0x108f06;const {defIds:_0x5490f5}=_0x4b51cf;return!_0x5490f5||_0x5490f5['length']===0x0?_0x60896:_0x60896[_0x38482b(0x228)]==='defs'&&((_0x108f06=_0x60896['children'])!=null&&_0x108f06[_0x38482b(0x1bc)])?{..._0x60896,'children':_0x60896[_0x38482b(0x1d5)][_0x38482b(0x1b3)](_0xbfca54=>typeof _0xbfca54['attrs']['id']=='string'&&_0x5490f5&&_0x5490f5[_0x38482b(0x1b7)](_0xbfca54[_0x38482b(0x16e)]['id'])?{..._0xbfca54,'attrs':{..._0xbfca54['attrs'],'id':_0xbfca54['attrs']['id']+_0x4b51cf['idSuffix']}}:_0xbfca54)}:_0x60896;}function _0x5cf54c(){const _0x5dd348=_0x31cb31;return Math[_0x5dd348(0x187)]()[_0x5dd348(0x243)](0x24)[_0x5dd348(0x1e4)](0x2,0x8);}_0x438302[_0x31cb31(0x230)]=_0x31cb31(0x1fe);const _0x1d5b8={'tag':_0x31cb31(0x20c),'attrs':{'xmlns':_0x31cb31(0x1ea),'fill':_0x31cb31(0x231),'viewBox':_0x31cb31(0x199),'width':_0x31cb31(0x1a9),'height':_0x31cb31(0x1a9)},'children':[{'tag':_0x31cb31(0x1ee),'attrs':{'fill':_0x31cb31(0x246),'d':_0x31cb31(0x216)}},{'tag':_0x31cb31(0x1ee),'attrs':{'fill':_0x31cb31(0x246),'d':_0x31cb31(0x222),'fillRule':_0x31cb31(0x249),'clipRule':'evenodd'}}]},_0x160131=_0x359f01[_0x31cb31(0x1b4)](function(_0x3c74c1,_0x2925de){const _0xcb3d07=_0x31cb31;return _0x359f01[_0xcb3d07(0x240)](_0x438302,Object[_0xcb3d07(0x1a6)]({},_0x3c74c1,{'id':_0xcb3d07(0x214),'ref':_0x2925de,'icon':_0x1d5b8}));});_0x160131[_0x31cb31(0x230)]='LiveShareIcon';class _0x41c121 extends _0x432f25[_0x31cb31(0x23a)]{constructor(){const _0x4caada=_0x31cb31;super(...arguments),_0x81546b(this,_0x4caada(0x252),new Set()),_0x81546b(this,_0x4caada(0x1d9),new Set());}[_0x31cb31(0x19b)](_0x49353e){const _0x51aba9=_0x31cb31;return this['_sharedOperations'][_0x51aba9(0x1a2)](_0x49353e),_0x432f25[_0x51aba9(0x219)](()=>this[_0x51aba9(0x252)][_0x51aba9(0x1b6)](_0x49353e));}['registerInitialStateReporter'](_0x602c){const _0x109e5c=_0x31cb31;return this[_0x109e5c(0x1d9)]['add'](_0x602c),_0x432f25['toDisposable'](()=>this[_0x109e5c(0x1d9)][_0x109e5c(0x1b6)](_0x602c));}[_0x31cb31(0x1ac)](_0x8498c){const _0x4eb420=_0x31cb31;return this['_sharedOperations'][_0x4eb420(0x1bb)](_0x8498c);}[_0x31cb31(0x1f2)](_0x96fbbc){const _0x585b01=_0x31cb31;return Array[_0x585b01(0x202)](this[_0x585b01(0x1d9)])[_0x585b01(0x1b3)](_0x2cc936=>_0x2cc936(_0x96fbbc));}}var _0x214f29=Object['getOwnPropertyDescriptor'],_0x4ae8d1=(_0x38f36b,_0x26e0a4,_0x9e9b8,_0x68e938)=>{const _0x1d91b0=_0x31cb31;for(var _0x36cecb=_0x68e938>0x1?void 0x0:_0x68e938?_0x214f29(_0x26e0a4,_0x9e9b8):_0x26e0a4,_0x25ce7c=_0x38f36b[_0x1d91b0(0x1bc)]-0x1,_0x272379;_0x25ce7c>=0x0;_0x25ce7c--)(_0x272379=_0x38f36b[_0x25ce7c])&&(_0x36cecb=_0x272379(_0x36cecb)||_0x36cecb);return _0x36cecb;},_0x1c6253=(_0x5c8dcb,_0x4080c8)=>(_0x55c2cc,_0x29295f)=>_0x4080c8(_0x55c2cc,_0x29295f,_0x5c8dcb);_0x14c3f4[_0x31cb31(0x203)]=class extends _0x432f25['RxDisposable']{constructor(_0x1927ff,_0x591823,_0x592aba){const _0x40dff6=_0x31cb31;super(),_0x81546b(this,_0x40dff6(0x1ad),new Map()),(this[_0x40dff6(0x1f7)]=_0x1927ff,this['_injector']=_0x591823,this[_0x40dff6(0x1a7)]=_0x592aba,this[_0x40dff6(0x1f6)]());}async[_0x31cb31(0x1c9)](_0x583d41){const _0x5257fb=_0x31cb31;return this['_entities'][_0x5257fb(0x1bb)](_0x583d41)||await this[_0x5257fb(0x16c)](_0x583d41),this[_0x5257fb(0x1ad)][_0x5257fb(0x23d)](_0x583d41);}[_0x31cb31(0x1d1)](_0x543bad){const _0x26ca70=_0x31cb31;var _0x1d574c;return(_0x1d574c=this[_0x26ca70(0x1ad)][_0x26ca70(0x23d)](_0x543bad))!=null?_0x1d574c:null;}['_init'](){const _0x7400b7=_0x31cb31;this[_0x7400b7(0x1f7)]['getTypeOfUnitAdded$'](_0x432f25[_0x7400b7(0x1db)][_0x7400b7(0x182)])[_0x7400b7(0x1fa)](_0x5336a2[_0x7400b7(0x242)](this['dispose$']))['subscribe'](async _0x55b25c=>{const _0x3c8cd9=_0x7400b7,_0xd8af96=_0x55b25c['getUnitId']();this['_entities'][_0x3c8cd9(0x1bb)](_0xd8af96)||this['_startLiveShareCoordinator'](_0xd8af96);}),this[_0x7400b7(0x1f7)][_0x7400b7(0x1c2)](_0x432f25[_0x7400b7(0x1db)]['UNIVER_SHEET'])[_0x7400b7(0x1fa)](_0x5336a2[_0x7400b7(0x242)](this[_0x7400b7(0x211)]))[_0x7400b7(0x18e)](_0x5aae14=>{const _0x30b665=_0x7400b7,_0x88c842=_0x5aae14[_0x30b665(0x1c4)](),_0x3724c8=this[_0x30b665(0x1ad)][_0x30b665(0x23d)](_0x88c842);_0x3724c8==null||_0x3724c8[_0x30b665(0x175)]();});}async[_0x31cb31(0x16c)](_0x245831){const _0x4ae8e1=_0x31cb31,_0xe6acb4=await this[_0x4ae8e1(0x1a7)][_0x4ae8e1(0x206)](_0x245831),_0x4cd140=this[_0x4ae8e1(0x237)]['createInstance'](_0x14c3f4[_0x4ae8e1(0x205)],_0x245831,_0xe6acb4);return _0x4cd140[_0x4ae8e1(0x251)](),this['_entities']['set'](_0x245831,_0x4cd140),_0x4cd140;}},_0x14c3f4['LiveShareController']=_0x4ae8d1([_0x1c6253(0x0,_0x432f25[_0x31cb31(0x1da)]),_0x1c6253(0x1,_0x432f25['Inject'](_0x432f25['Injector'])),_0x1c6253(0x2,_0x432f25[_0x31cb31(0x1cb)](_0x5f3c56[_0x31cb31(0x201)]))],_0x14c3f4[_0x31cb31(0x203)]);var _0x190489=(_0x2ca579=>(_0x2ca579[_0x31cb31(0x1c1)]=_0x31cb31(0x209),_0x2ca579[_0x31cb31(0x241)]='idle',_0x2ca579[_0x31cb31(0x227)]=_0x31cb31(0x1e5),_0x2ca579[_0x31cb31(0x21c)]=_0x31cb31(0x218),_0x2ca579[_0x31cb31(0x18f)]=_0x31cb31(0x213),_0x2ca579))(_0x190489||{});const _0x49c2e3=_0x31cb31(0x1a1),_0x4aeabe=0xc8;_0x14c3f4['LiveShareCoordinator']=class extends _0x432f25[_0x31cb31(0x22d)]{constructor(_0x2a82cf,_0x13733f,_0x1a876c,_0x339496,_0x5dd912){const _0x3c9258=_0x31cb31;super(),_0x81546b(this,_0x3c9258(0x198),new _0x2720ac[(_0x3c9258(0x248))]('idle')),_0x81546b(this,'status$',this[_0x3c9258(0x198)]['asObservable']()),_0x81546b(this,_0x3c9258(0x1f6),!0x1),_0x81546b(this,_0x3c9258(0x186),null),_0x81546b(this,_0x3c9258(0x20e),null),(this[_0x3c9258(0x217)]=_0x2a82cf,this[_0x3c9258(0x21b)]=_0x13733f,this['_configService']=_0x1a876c,this['_liveShareService']=_0x339496,this[_0x3c9258(0x195)]=_0x5dd912);}get[_0x31cb31(0x1b8)](){const _0x198e7d=_0x31cb31;return this[_0x198e7d(0x198)][_0x198e7d(0x1ec)]();}[_0x31cb31(0x175)](){const _0x3cb92d=_0x31cb31;var _0x3237be;(_0x3237be=this['_commandDisposable'])==null||_0x3237be['dispose'](),this[_0x3cb92d(0x198)][_0x3cb92d(0x1c6)]('idle'),this[_0x3cb92d(0x198)][_0x3cb92d(0x1e1)]();}[_0x31cb31(0x1bd)](){const _0x187e0c=_0x31cb31;return this[_0x187e0c(0x1b8)];}[_0x31cb31(0x251)](){const _0x32fa2e=_0x31cb31;this[_0x32fa2e(0x1f6)]||(this[_0x32fa2e(0x1f6)]=!0x0,this['_collabSession']['sessionStatus$'][_0x32fa2e(0x1fa)](_0x5336a2['takeUntil'](this['dispose$']))[_0x32fa2e(0x18e)](_0x139e4b=>{const _0x359283=_0x32fa2e;switch(_0x139e4b){case _0x5f3c56[_0x359283(0x1ab)][_0x359283(0x1c1)]:this[_0x359283(0x174)]();break;case _0x5f3c56['SessionStatus'][_0x359283(0x17a)]:this['_handleOnline']();break;}}),this[_0x32fa2e(0x21b)]['event$'][_0x32fa2e(0x1fa)](_0x5336a2['takeUntil'](this['dispose$']))[_0x32fa2e(0x18e)](_0x17da6c=>{const _0x354283=_0x32fa2e,{eventID:_0x5e25cb}=_0x17da6c;switch(_0x5e25cb){case _0x13ea87[_0x354283(0x24a)][_0x354283(0x1df)]:this['_handleNewHost'](_0x17da6c);break;case _0x13ea87['CollaborationEvent'][_0x354283(0x1f8)]:this['_handleOperation'](_0x17da6c);break;case _0x13ea87[_0x354283(0x24a)][_0x354283(0x173)]:this[_0x354283(0x19a)]();break;case _0x13ea87['CollaborationEvent'][_0x354283(0x1ce)]:this['_handleNewChangeSets'](_0x17da6c);break;}}));}[_0x31cb31(0x21e)](){const _0x111f87=_0x31cb31;this[_0x111f87(0x21b)]['send']({'eventID':_0x13ea87['CollaborationEvent'][_0x111f87(0x180)],'data':{'unitID':this[_0x111f87(0x217)],'userID':this[_0x111f87(0x21b)][_0x111f87(0x17b)]()}},this['_unitID']);}[_0x31cb31(0x24f)](){const _0x4a4b9=_0x31cb31;this[_0x4a4b9(0x1b8)]===_0x4a4b9(0x213)&&(this[_0x4a4b9(0x198)][_0x4a4b9(0x1c6)](_0x4a4b9(0x22b)),this[_0x4a4b9(0x21b)][_0x4a4b9(0x17c)]({'eventID':_0x13ea87[_0x4a4b9(0x24a)][_0x4a4b9(0x173)],'data':{'unitID':this[_0x4a4b9(0x217)]}},this[_0x4a4b9(0x217)]));}[_0x31cb31(0x1e6)](){const _0x1e23c4=_0x31cb31;this[_0x1e23c4(0x1b8)]===_0x1e23c4(0x218)&&(this[_0x1e23c4(0x198)][_0x1e23c4(0x1c6)](_0x1e23c4(0x1e5)),this[_0x1e23c4(0x200)]());}[_0x31cb31(0x1f4)](){const _0x1e4f66=_0x31cb31;this[_0x1e4f66(0x1b8)]===_0x1e4f66(0x1e5)&&this[_0x1e4f66(0x1ed)]();}[_0x31cb31(0x22f)](_0x5a70c2){const _0x30dfca=_0x31cb31,{presenter:_0x21786e}=_0x5a70c2['data'],_0x92c471=this[_0x30dfca(0x21b)][_0x30dfca(0x17b)]();this[_0x30dfca(0x20e)]=_0x21786e,_0x21786e===_0x92c471?(this[_0x30dfca(0x1ed)](),this['_startPresenting']()):this['_status']!==_0x30dfca(0x218)&&(this[_0x30dfca(0x1b5)](),this[_0x30dfca(0x200)]());}[_0x31cb31(0x1a4)](){const _0x363952=_0x31cb31,_0x30cdce={'eventID':_0x13ea87[_0x363952(0x24a)][_0x363952(0x247)]};this[_0x363952(0x21b)]['send'](_0x30cdce,this[_0x363952(0x217)]);}[_0x31cb31(0x19a)](){const _0x192cee=_0x31cb31;this[_0x192cee(0x20e)]=null,this[_0x192cee(0x1b8)]!==_0x192cee(0x213)&&this['_beIdle']();}[_0x31cb31(0x181)](_0x321bc3){const _0xd24ce1=_0x31cb31;if(this['_status']===_0xd24ce1(0x1e5)&&this[_0xd24ce1(0x20e)]===_0x321bc3['data'][_0xd24ce1(0x23c)]){const _0x316bc8=_0x13ea87[_0xd24ce1(0x1ef)](_0x321bc3[_0xd24ce1(0x221)])['mutations']['reverse']()[_0xd24ce1(0x196)](_0x3ded11=>_0x3ded11['id']===_0x223188['InsertSheetMutation']['id']);if(_0x316bc8){const _0x39dd10=_0x316bc8[_0xd24ce1(0x23b)]['unitId'],_0x18a52a=_0x316bc8[_0xd24ce1(0x23b)][_0xd24ce1(0x19e)]['id'];setTimeout(()=>{const _0x514107=_0xd24ce1;this['_commandService'][_0x514107(0x1a8)](_0x223188[_0x514107(0x1ff)]['id'],{'unitId':_0x39dd10,'subUnitId':_0x18a52a},{'fromCollab':!0x0});});}}}[_0x31cb31(0x1c8)](){const _0x5830ac=_0x31cb31;this[_0x5830ac(0x198)][_0x5830ac(0x1c6)]('presenting');const _0x3a8f82=new Map(),_0x40a545=this['_commandDisposable']=new _0x432f25[(_0x5830ac(0x1aa))]();_0x40a545[_0x5830ac(0x1a2)](_0x432f25[_0x5830ac(0x219)](()=>{const _0x1ff5c7=_0x5830ac;_0x3a8f82[_0x1ff5c7(0x179)](_0x1c3e28=>_0x1c3e28[_0x1ff5c7(0x1e1)]()),_0x3a8f82[_0x1ff5c7(0x177)]();})),_0x40a545['add'](this[_0x5830ac(0x195)][_0x5830ac(0x189)](_0x46341b=>{const _0x592ba7=_0x5830ac;var _0x269979;if(_0x46341b[_0x592ba7(0x1c3)]!==_0x432f25[_0x592ba7(0x239)][_0x592ba7(0x1fb)]||!this['_liveShareService'][_0x592ba7(0x1ac)](_0x46341b['id']))return;const {id:_0x65887f}=_0x46341b;let _0x5e1031;_0x3a8f82['has'](_0x65887f)?_0x5e1031=_0x3a8f82['get'](_0x65887f):(_0x5e1031=new _0x2720ac['Subject'](),_0x3a8f82[_0x592ba7(0x21f)](_0x65887f,_0x5e1031),_0x5e1031['pipe'](_0x5336a2[_0x592ba7(0x24c)]((_0x269979=this['_configService'][_0x592ba7(0x22e)](_0x49c2e3))!=null?_0x269979:_0x4aeabe,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x592ba7(0x18e)](_0x7d81d8=>{const _0x3b30e5=_0x592ba7;this[_0x3b30e5(0x21b)]['send']({'eventID':_0x13ea87[_0x3b30e5(0x24a)][_0x3b30e5(0x1f8)],'data':{'unitID':this['_unitID'],'operations':{[_0x7d81d8['id']]:{'id':_0x7d81d8['id'],'params':JSON['stringify'](_0x7d81d8['params'])}}}},this['_unitID']);})),_0x5e1031['next'](_0x46341b);})),this['_liveShareService'][_0x5830ac(0x1f2)](this[_0x5830ac(0x217)])[_0x5830ac(0x179)](_0x57863e=>this[_0x5830ac(0x21b)][_0x5830ac(0x17c)]({'eventID':_0x13ea87[_0x5830ac(0x24a)][_0x5830ac(0x1f8)],'data':{'unitID':this['_unitID'],'operations':{[_0x57863e['id']]:{'id':_0x57863e['id'],'params':JSON[_0x5830ac(0x18b)](_0x57863e['params'])}}}},this['_unitID']));}['_stopPresenting'](){const _0x2c68ec=_0x31cb31;var _0x52c1f1;this[_0x2c68ec(0x198)]['next'](_0x2c68ec(0x22b)),(_0x52c1f1=this[_0x2c68ec(0x186)])==null||_0x52c1f1['dispose'](),this[_0x2c68ec(0x186)]=null;}[_0x31cb31(0x200)](){const _0x5eda44=_0x31cb31;var _0x1f033e;(_0x1f033e=this[_0x5eda44(0x186)])==null||_0x1f033e[_0x5eda44(0x175)](),this[_0x5eda44(0x198)]['next'](_0x5eda44(0x1e5));}['_beIdle'](){const _0x55367b=_0x31cb31;var _0x2976ac;this[_0x55367b(0x198)][_0x55367b(0x1c6)](_0x55367b(0x22b)),(_0x2976ac=this['_commandDisposable'])==null||_0x2976ac[_0x55367b(0x175)](),this[_0x55367b(0x186)]=null;}['_stopFollowing'](){const _0x4acb01=_0x31cb31;var _0x3f9ed5;this[_0x4acb01(0x198)][_0x4acb01(0x1c6)](_0x4acb01(0x218)),(_0x3f9ed5=this[_0x4acb01(0x186)])==null||_0x3f9ed5[_0x4acb01(0x175)]();}[_0x31cb31(0x1e9)](_0x469c49){const _0x3b050b=_0x31cb31;if([_0x3b050b(0x213),_0x3b050b(0x218),'offline'][_0x3b050b(0x1b7)](this[_0x3b050b(0x1b8)])||!_0x469c49[_0x3b050b(0x221)][_0x3b050b(0x1fc)]||_0x469c49['data'][_0x3b050b(0x1fc)]===this['_collabSession']['getMemberID']())return;this['_status']==='idle'&&this[_0x3b050b(0x200)]();const _0x408c0a=_0x469c49[_0x3b050b(0x221)]['operations'];Object[_0x3b050b(0x1ae)](_0x408c0a)[_0x3b050b(0x179)](_0x5f365c=>{const _0x5a21fa=_0x3b050b;this['_commandService'][_0x5a21fa(0x1a8)](_0x5f365c['id'],_0x5f365c[_0x5a21fa(0x23b)]?JSON[_0x5a21fa(0x1f5)](_0x5f365c[_0x5a21fa(0x23b)]):null,{'fromCollab':!0x0});});}[_0x31cb31(0x174)](){const _0x14ed51=_0x31cb31;var _0x1aeaa2;this[_0x14ed51(0x198)][_0x14ed51(0x1c6)](_0x14ed51(0x209)),(_0x1aeaa2=this[_0x14ed51(0x186)])==null||_0x1aeaa2[_0x14ed51(0x175)]();}[_0x31cb31(0x18a)](){const _0x40c44b=_0x31cb31;this[_0x40c44b(0x198)]['next'](_0x40c44b(0x22b)),this[_0x40c44b(0x1a4)]();}},_0x14c3f4[_0x31cb31(0x205)]=_0x4ae8d1([_0x1c6253(0x2,_0x432f25['IConfigService']),_0x1c6253(0x3,_0x432f25[_0x31cb31(0x1cb)](_0x41c121)),_0x1c6253(0x4,_0x432f25['ICommandService'])],_0x14c3f4[_0x31cb31(0x205)]);function _0x2b7a59(){const _0x1c1962=_0x31cb31,_0x2713ab=_0x237160[_0x1c1962(0x245)](_0x14c3f4[_0x1c1962(0x203)]),_0x420ca5=_0x237160[_0x1c1962(0x245)](_0x432f25[_0x1c1962(0x1da)]),_0x43dd8d=_0x237160[_0x1c1962(0x21d)](()=>_0x420ca5[_0x1c1962(0x19f)](_0x432f25[_0x1c1962(0x1db)][_0x1c1962(0x182)]),void 0x0,!0x1,[]),[_0x192a76,_0x309496]=_0x359f01[_0x1c1962(0x1dd)](null),[_0xfced89,_0x36daf7]=_0x359f01[_0x1c1962(0x1dd)](_0x190489[_0x1c1962(0x241)]),_0xe69654=_0x359f01[_0x1c1962(0x176)](null);return _0x359f01['useEffect'](()=>(_0x43dd8d&&_0x2713ab[_0x1c1962(0x1c9)](_0x43dd8d[_0x1c1962(0x1c4)]())['then'](_0xfc8184=>{const _0x33f733=_0x1c1962;_0x309496(_0xfc8184),_0xe69654[_0x33f733(0x1e3)]=_0xfc8184[_0x33f733(0x1d2)]['subscribe'](_0x8128c0=>{_0x36daf7(_0x8128c0);});}),()=>{const _0x306789=_0x1c1962;var _0x267c6c;(_0x267c6c=_0xe69654['current'])==null||_0x267c6c[_0x306789(0x212)](),_0xe69654[_0x306789(0x1e3)]=null;}),[_0x43dd8d,_0x2713ab]),_0x192a76?_0x5951c7[_0x1c1962(0x233)](_0xce3b9a['Dropdown'],{'align':_0x1c1962(0x192),'disabled':_0xfced89===_0x190489[_0x1c1962(0x1c1)],'className':_0x1c1962(0x1bf),'overlay':_0x5951c7[_0x1c1962(0x233)](_0x395141,{'status':_0xfced89,'coordinator':_0x192a76}),'children':_0x5951c7['jsx'](_0x1c1962(0x172),{'className':_0xce3b9a[_0x1c1962(0x1a3)](_0x1c1962(0x23f),{'univer-cursor-not-allowed':_0xfced89===_0x190489['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xfced89!==_0x190489['OFFLINE']}),'type':_0x1c1962(0x172),'children':_0x5951c7[_0x1c1962(0x233)](_0x160131,{'className':_0x1c1962(0x232)})})}):null;}function _0x395141(_0x30a6a6){const _0x5886f0=_0x31cb31,{status:_0x3a68f2,coordinator:_0x3f5eee}=_0x30a6a6;switch(_0x3a68f2){case _0x190489[_0x5886f0(0x241)]:return _0x5951c7['jsx'](_0x555f68,{'coordinator':_0x3f5eee});case _0x190489[_0x5886f0(0x227)]:return _0x5951c7[_0x5886f0(0x233)](_0x445169,{'coordinator':_0x3f5eee});case _0x190489[_0x5886f0(0x21c)]:return _0x5951c7[_0x5886f0(0x233)](_0xcf09ce,{'coordinator':_0x3f5eee});case _0x190489[_0x5886f0(0x1c1)]:return _0x5951c7['jsx'](_0x3bbd8f,{});case _0x190489[_0x5886f0(0x18f)]:return _0x5951c7[_0x5886f0(0x233)](_0x26a33a,{'coordinator':_0x3f5eee});default:return null;}}function _0x555f68(_0x4d7f90){const _0xa45834=_0x31cb31,{coordinator:_0x19d5a3}=_0x4d7f90;return _0x5951c7[_0xa45834(0x16f)](_0x5951c7[_0xa45834(0x170)],{'children':[_0x5951c7['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xa45834(0x225)}),_0x5951c7[_0xa45834(0x233)](_0xce3b9a[_0xa45834(0x210)],{'onClick':()=>_0x19d5a3[_0xa45834(0x21e)](),'children':_0xa45834(0x183)})]});}function _0x445169(_0x5b0841){const _0x55c95c=_0x31cb31,{coordinator:_0x220b69}=_0x5b0841;return _0x5951c7[_0x55c95c(0x16f)](_0x5951c7[_0x55c95c(0x170)],{'children':[_0x5951c7[_0x55c95c(0x233)]('div',{'className':_0x55c95c(0x226),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x5951c7[_0x55c95c(0x233)](_0xce3b9a['Button'],{'onClick':()=>_0x220b69[_0x55c95c(0x1f4)](),'children':_0x55c95c(0x24e)})]});}function _0xcf09ce(_0x4e1101){const _0x1e6a5e=_0x31cb31,{coordinator:_0x57023e}=_0x4e1101;return _0x5951c7['jsxs'](_0x5951c7[_0x1e6a5e(0x170)],{'children':[_0x5951c7[_0x1e6a5e(0x233)](_0x1e6a5e(0x171),{'className':_0x1e6a5e(0x226),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x5951c7[_0x1e6a5e(0x233)](_0xce3b9a[_0x1e6a5e(0x210)],{'variant':_0x1e6a5e(0x188),'onClick':()=>_0x57023e[_0x1e6a5e(0x1e6)](),'children':_0x1e6a5e(0x204)})]});}function _0x26a33a(_0x560051){const _0x174c08=_0x31cb31,{coordinator:_0x27f1d5}=_0x560051;return _0x5951c7[_0x174c08(0x16f)](_0x5951c7[_0x174c08(0x170)],{'children':[_0x5951c7[_0x174c08(0x233)](_0x174c08(0x171),{'className':_0x174c08(0x226),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x5951c7[_0x174c08(0x233)](_0xce3b9a[_0x174c08(0x210)],{'variant':_0x174c08(0x19d),'onClick':()=>_0x27f1d5['stopPresenting'](),'children':_0x174c08(0x19c)})]});}function _0x3bbd8f(){const _0x5e3059=_0x31cb31;return _0x5951c7[_0x5e3059(0x233)](_0x5951c7['Fragment'],{'children':'You\x27are\x20offline.'});}var _0x2a207e=Object['getOwnPropertyDescriptor'],_0x23220a=(_0x51a2d7,_0x300600,_0x1220a7,_0x3e1447)=>{const _0x30c329=_0x31cb31;for(var _0x14baf9=_0x3e1447>0x1?void 0x0:_0x3e1447?_0x2a207e(_0x300600,_0x1220a7):_0x300600,_0x50f94d=_0x51a2d7[_0x30c329(0x1bc)]-0x1,_0x3c7edc;_0x50f94d>=0x0;_0x50f94d--)(_0x3c7edc=_0x51a2d7[_0x50f94d])&&(_0x14baf9=_0x3c7edc(_0x14baf9)||_0x14baf9);return _0x14baf9;},_0x3721f9=(_0x5864a1,_0x263b67)=>(_0x4a6c2f,_0x639e96)=>_0x263b67(_0x4a6c2f,_0x639e96,_0x5864a1);_0x14c3f4[_0x31cb31(0x22a)]=class extends _0x432f25[_0x31cb31(0x23a)]{constructor(_0x5dda42,_0x3cda8b){const _0x31a3a3=_0x31cb31;super(),this[_0x31a3a3(0x237)]=_0x5dda42,this[_0x31a3a3(0x1ca)]=_0x3cda8b,this[_0x31a3a3(0x22c)]();}['_mountLiveShare'](){const _0x243fd0=_0x31cb31;this[_0x243fd0(0x1b9)](this[_0x243fd0(0x1ca)][_0x243fd0(0x18c)](_0x237160[_0x243fd0(0x21a)]['HEADER_MENU'],()=>_0x237160['connectInjector'](_0x2b7a59,this[_0x243fd0(0x237)])));}},_0x14c3f4[_0x31cb31(0x22a)]=_0x23220a([_0x3721f9(0x0,_0x432f25[_0x31cb31(0x1cb)](_0x432f25['Injector'])),_0x3721f9(0x1,_0x237160[_0x31cb31(0x236)])],_0x14c3f4[_0x31cb31(0x22a)]);const _0x3e80ce=_0x31cb31(0x17f),_0x3a8519={};var _0x4c7f49=Object['getOwnPropertyDescriptor'],_0x478cd6=(_0x498ef3,_0x4d1ba3,_0x3f47d7,_0x51052a)=>{const _0x845a32=_0x31cb31;for(var _0x44ed8d=_0x51052a>0x1?void 0x0:_0x51052a?_0x4c7f49(_0x4d1ba3,_0x3f47d7):_0x4d1ba3,_0x7a8365=_0x498ef3[_0x845a32(0x1bc)]-0x1,_0xf6e2e2;_0x7a8365>=0x0;_0x7a8365--)(_0xf6e2e2=_0x498ef3[_0x7a8365])&&(_0x44ed8d=_0xf6e2e2(_0x44ed8d)||_0x44ed8d);return _0x44ed8d;},_0x106e52=(_0x127e12,_0x4bf7b4)=>(_0x421d01,_0x13a6f1)=>_0x4bf7b4(_0x421d01,_0x13a6f1,_0x127e12);let _0x545b3b=class extends _0x432f25[_0x31cb31(0x23a)]{constructor(_0x17f3ae){const _0x2bff4f=_0x31cb31;super(),this['_liveShareService']=_0x17f3ae,this[_0x2bff4f(0x1f6)]();}[_0x31cb31(0x1f6)](){const _0x11ec22=_0x31cb31;[_0x5e3f9f[_0x11ec22(0x238)]['id'],_0x5e3f9f[_0x11ec22(0x191)]['id'],_0x223188[_0x11ec22(0x1ff)]['id']][_0x11ec22(0x179)](_0x1e750a=>{const _0x3acb4c=_0x11ec22;this[_0x3acb4c(0x1b9)](this[_0x3acb4c(0x1d7)][_0x3acb4c(0x19b)](_0x1e750a));});}};_0x545b3b=_0x478cd6([_0x106e52(0x0,_0x432f25['Inject'](_0x41c121))],_0x545b3b);var _0x179c34=Object[_0x31cb31(0x1cc)],_0x206cd7=Object[_0x31cb31(0x224)],_0x39dc12=(_0x4fdd84,_0x251bb3,_0x484ee1)=>_0x251bb3 in _0x4fdd84?_0x179c34(_0x4fdd84,_0x251bb3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x484ee1}):_0x4fdd84[_0x251bb3]=_0x484ee1,_0x1bc743=(_0x5bed7b,_0x34b149,_0x3a2dff,_0x4df51c)=>{const _0x2d4e84=_0x31cb31;for(var _0x7f2936=_0x4df51c>0x1?void 0x0:_0x4df51c?_0x206cd7(_0x34b149,_0x3a2dff):_0x34b149,_0x4e28fb=_0x5bed7b[_0x2d4e84(0x1bc)]-0x1,_0x2b4b11;_0x4e28fb>=0x0;_0x4e28fb--)(_0x2b4b11=_0x5bed7b[_0x4e28fb])&&(_0x7f2936=_0x2b4b11(_0x7f2936)||_0x7f2936);return _0x7f2936;},_0x25d717=(_0x277470,_0x44c99a)=>(_0x68525a,_0x3433de)=>_0x44c99a(_0x68525a,_0x3433de,_0x277470),_0x5e1915=(_0x41c07a,_0x4f9daa,_0x567e54)=>_0x39dc12(_0x41c07a,typeof _0x4f9daa!=_0x31cb31(0x1e2)?_0x4f9daa+'':_0x4f9daa,_0x567e54);const _0x25ddc2=_0x31cb31(0x1d0);_0x14c3f4[_0x31cb31(0x208)]=class extends _0x432f25[_0x31cb31(0x20f)]{constructor(_0x41186e=_0x3a8519,_0x4ee827,_0x23c72c){const _0x67f0b0=_0x31cb31;super(),this[_0x67f0b0(0x1dc)]=_0x41186e,this['_injector']=_0x4ee827,this[_0x67f0b0(0x1af)]=_0x23c72c;const {..._0x184605}=_0x432f25[_0x67f0b0(0x20b)]({},_0x3a8519,this[_0x67f0b0(0x1dc)]);this[_0x67f0b0(0x1af)][_0x67f0b0(0x1f1)](_0x3e80ce,_0x184605);}[_0x31cb31(0x1d6)](){const _0x16d636=_0x31cb31;_0x432f25[_0x16d636(0x234)](this[_0x16d636(0x237)],_0x432f25[_0x16d636(0x1f9)]([[_0x41c121],[_0x14c3f4['LiveShareController']],[_0x545b3b],[_0x14c3f4[_0x16d636(0x22a)]]],this[_0x16d636(0x1dc)]['override'])),_0x432f25['touchDependencies'](this[_0x16d636(0x237)],[[_0x545b3b]]);}[_0x31cb31(0x24b)](){const _0x3f7962=_0x31cb31;_0x432f25['touchDependencies'](this['_injector'],[[_0x14c3f4[_0x3f7962(0x22a)]]]);}},_0x5e1915(_0x14c3f4[_0x31cb31(0x208)],_0x31cb31(0x1c3),_0x432f25[_0x31cb31(0x1db)][_0x31cb31(0x1cf)]),_0x5e1915(_0x14c3f4['UniverLiveSharePlugin'],_0x31cb31(0x1b0),_0x25ddc2),_0x14c3f4[_0x31cb31(0x208)]=_0x1bc743([_0x432f25['DependentOn'](_0x5f3c56[_0x31cb31(0x250)]),_0x25d717(0x1,_0x432f25['Inject'](_0x432f25[_0x31cb31(0x1c7)])),_0x25d717(0x2,_0x432f25[_0x31cb31(0x1b2)])],_0x14c3f4['UniverLiveSharePlugin']),_0x14c3f4[_0x31cb31(0x20a)]=_0x2b7a59,_0x14c3f4[_0x31cb31(0x1e0)]=_0x41c121,_0x14c3f4[_0x31cb31(0x16b)]=_0x190489,Object[_0x31cb31(0x1cc)](_0x14c3f4,Symbol[_0x31cb31(0x17d)],{'value':_0x31cb31(0x244)});}));function _0x8b3b(){const _0x505945=['getLiveShareCoordinator','_uiPartsService','Inject','defineProperty','use','NEW_CHANGESETS','UNIVER_UNKNOWN','UNIVER_LIVE_SHARE_PLUGIN','getLiveShareCoordinatorSync','status$','169260rUtehu','UniverProCollaborationClient','children','onStarting','_liveShareService','rxjs/operators','_reporters','IUniverInstanceService','UniverInstanceType','_config','useState','xlink:href','LIVESHARE_NEW_HOST','LiveShareService','complete','symbol','current','substring','following','startFollowing','4nmaoiA','561054ESwPsn','_handleOperation','http://www.w3.org/2000/svg','object','getValue','_stopFollowing','path','parseProtocolChangeset','@univerjs/core','setConfig','getInitialStates','UniverProLiveShare','stopFollowing','parse','_init','_univerInstanceService','LIVESHARE_OPERATION','mergeOverrideWithDependencies','pipe','OPERATION','presenter','mask','UniverIcon','SetWorksheetActiveOperation','_startFollowing','CollaborationSessionService','from','LiveShareController','Start\x20following','LiveShareCoordinator','requireSession','function','UniverLiveSharePlugin','offline','LiveShare','merge','svg','React','_presenter','Plugin','Button','dispose$','unsubscribe','presenting','live-share-icon','react/jsx-runtime','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','_unitID','not-following','toDisposable','BuiltInUIPart','_collabSession','NOT_FOLLOWING','useObservable','tryStartPresenting','set','@univerjs/design','data','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','3xahlvy','getOwnPropertyDescriptor','Present\x20this\x20document','univer-mb-3\x20univer-w-full\x20univer-text-sm','FOLLOWING','tag','idSuffix','DesktopLiveShareController','idle','_mountLiveShare','RxDisposable','getConfig','_handleNewHost','displayName','none','univer-size-4','jsx','registerDependencies','colorChannel1','IUIPartsService','_injector','SetZoomRatioOperation','CommandType','Disposable','params','memberID','get','UniverSheetsUi','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','createElement','IDLE','takeUntil','toString','Module','useDependency','currentColor','LIVESHARE_FETCH_OPERATIONS','BehaviorSubject','evenodd','CollaborationEvent','onRendered','throttleTime','30ljoMJX','Stop\x20following','stopPresenting','UniverCollaborationClientPlugin','init','_sharedOperations','LiveShareStatus','_startLiveShareCoordinator','exports','attrs','jsxs','Fragment','div','button','LIVESHARE_TERMINATE','_handleOffline','dispose','useRef','clear','UniverCore','forEach','ONLINE','getMemberID','send','toStringTag','defIds','live-share.config','LIVESHARE_REQUEST_HOST','_handleNewChangeSets','UNIVER_SHEET','Start','999394Rgydfm','string','_commandDisposable','random','text','onCommandExecuted','_handleOnline','stringify','registerComponent','64989VCRmGp','subscribe','PRESENTING','2398780WsZblS','SetScrollOperation','end','UniverProCollaboration','url(#$1','_commandService','find','entries','_status$','0\x200\x2017\x2017','_handleTerminate','registerSharedOperation','Stop\x20presenting','default','sheet','getCurrentTypeOfUnit$','61215EdUJOF','SAME_OPERATION_SHARE_INTERVAL','add','clsx','_fetchOperations','rxjs','assign','_collabSessionService','executeCommand','1em','DisposableCollection','SessionStatus','shouldShareOperation','_entities','values','_configService','pluginName','fill','IConfigService','map','forwardRef','_stopPresenting','delete','includes','_status','disposeWithMe','184ncaYma','has','length','getStatus','UniverUi','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','131939TCIhLU','OFFLINE','getTypeOfUnitDisposed$','type','getUnitId','replace','next','Injector','_startPresenting'];_0x8b3b=function(){return _0x505945;};return _0x8b3b();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.15.0-insiders.20260107-3d1cfdf",
3
+ "version": "0.15.0-insiders.20260108-7b9120d",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -56,15 +56,15 @@
56
56
  "rxjs": ">=7.0.0"
57
57
  },
58
58
  "dependencies": {
59
- "@univerjs/icons": "^1.1.0",
60
- "@univerjs-pro/collaboration": "0.15.0-insiders.20260107-3d1cfdf",
61
- "@univerjs/core": "0.15.0-insiders.20260107-3d1cfdf",
62
- "@univerjs-pro/collaboration-client": "0.15.0-insiders.20260107-3d1cfdf",
63
- "@univerjs/design": "0.15.0-insiders.20260107-3d1cfdf",
64
- "@univerjs/engine-render": "0.15.0-insiders.20260107-3d1cfdf",
65
- "@univerjs/sheets": "0.15.0-insiders.20260107-3d1cfdf",
66
- "@univerjs/ui": "0.15.0-insiders.20260107-3d1cfdf",
67
- "@univerjs/sheets-ui": "0.15.0-insiders.20260107-3d1cfdf"
59
+ "@univerjs/icons": "^1.1.1",
60
+ "@univerjs-pro/collaboration": "0.15.0-insiders.20260108-7b9120d",
61
+ "@univerjs-pro/collaboration-client": "0.15.0-insiders.20260108-7b9120d",
62
+ "@univerjs/design": "0.15.0-insiders.20260108-7b9120d",
63
+ "@univerjs/core": "0.15.0-insiders.20260108-7b9120d",
64
+ "@univerjs/engine-render": "0.15.0-insiders.20260108-7b9120d",
65
+ "@univerjs/sheets": "0.15.0-insiders.20260108-7b9120d",
66
+ "@univerjs/sheets-ui": "0.15.0-insiders.20260108-7b9120d",
67
+ "@univerjs/ui": "0.15.0-insiders.20260108-7b9120d"
68
68
  },
69
69
  "devDependencies": {
70
70
  "postcss": "^8.5.6",
@@ -72,7 +72,7 @@
72
72
  "rxjs": "7.8.2",
73
73
  "tailwindcss": "^3.4.17",
74
74
  "typescript": "^5.9.3",
75
- "vite": "^7.3.0",
75
+ "vite": "^7.3.1",
76
76
  "vitest": "^4.0.16",
77
77
  "@univerjs-infra/shared": "0.15.0",
78
78
  "@univerjs/protocol": "0.1.48"