@univerjs-pro/live-share 0.12.4-experimental.20251210-d708bff → 0.12.4-experimental.20251210-29c379a

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 _0xef8b9b=_0x4774;function _0x4774(_0x2b2782,_0x16dd45){_0x2b2782=_0x2b2782-0x1ca;const _0x2aca21=_0x2aca();let _0x4774a7=_0x2aca21[_0x2b2782];return _0x4774a7;}(function(_0x5213eb,_0xbaf848){const _0x356476=_0x4774,_0x59955d=_0x5213eb();while(!![]){try{const _0x6e9458=parseInt(_0x356476(0x1ea))/0x1*(parseInt(_0x356476(0x1e5))/0x2)+-parseInt(_0x356476(0x1e4))/0x3+-parseInt(_0x356476(0x1d4))/0x4+parseInt(_0x356476(0x1db))/0x5+-parseInt(_0x356476(0x1d7))/0x6+parseInt(_0x356476(0x1f0))/0x7*(-parseInt(_0x356476(0x1cb))/0x8)+-parseInt(_0x356476(0x1e8))/0x9*(-parseInt(_0x356476(0x1d8))/0xa);if(_0x6e9458===_0xbaf848)break;else _0x59955d['push'](_0x59955d['shift']());}catch(_0x93996){_0x59955d['push'](_0x59955d['shift']());}}}(_0x2aca,0xbbcd9));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['FRange']{['_initialize'](_0x394863,_0x13400b,_0x45a3d5,_0x592125,_0x45dc8e){const _0x47a148=_0x4774,_0x113958=_0x394863[_0x47a148(0x1da)](n['LiveShareController']),_0x46d227=_0x394863['get'](g['IRenderManagerService']),_0x380483=_0x13400b['getUnitId'](),_0x48d99c=_0x13400b[_0x47a148(0x1e0)](),_0x4503b3=_0x113958[_0x47a148(0x1d9)](_0x380483);(_0x4503b3==null?void 0x0:_0x4503b3['getStatus']())!==n[_0x47a148(0x1ec)][_0x47a148(0x1e2)]||(_0x45a3d5['getSheetId']()!==_0x48d99c[_0x47a148(0x1e7)]()&&this[_0x47a148(0x1ee)][_0x47a148(0x1e6)](u['SetWorksheetActiveOperation']['id'],{'unitId':_0x380483,'subUnitId':_0x45a3d5['getSheetId']()}),!_0x46d227[_0x47a148(0x1ca)](_0x380483))||_0x45dc8e[_0x47a148(0x1ed)](f['SetScrollOperation']['id'],{'unitId':_0x13400b[_0x47a148(0x1dd)](),'sheetId':_0x45a3d5[_0x47a148(0x1e7)](),'sheetViewStartRow':_0x592125['startRow'],'sheetViewStartColumn':_0x592125[_0x47a148(0x1d1)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d['FRange'][_0xef8b9b(0x1cc)](w);function _0x2aca(){const _0x538221=['1659560tHIxZQ','FUniver','_injector','1332366NrFVVl','10TkTSNG','getLiveShareCoordinatorSync','get','5427625avkuTk','IDLE','getUnitId','No\x20active\x20workbook\x20found.','getId','getActiveSheet','stopPresenting','PRESENTING','tryStartPresenting','559578GgZLRa','451558jrsHFi','executeCommand','getSheetId','7171965lrnrrz','LiveShareStatusEnum','2FCgaVT','stopFollowing','LiveShareStatus','syncExecuteCommand','_commandService','FEnum','8750hEGMfQ','getRenderById','4744PGbhYA','extend','getActiveWorkbook','startPresenting','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','LiveShareController','startColumn','startFollowing','getLiveShareStatus'];_0x2aca=function(){return _0x538221;};return _0x2aca();}class C extends a[_0xef8b9b(0x1d5)]{[_0xef8b9b(0x1d3)](){const _0x3818bc=_0xef8b9b;var _0x4f7b5b,_0x3bb1f5;const _0x3c437a=this[_0x3818bc(0x1d6)][_0x3818bc(0x1da)](n[_0x3818bc(0x1d0)]),_0x1a849f=(_0x4f7b5b=this[_0x3818bc(0x1cd)]())==null?void 0x0:_0x4f7b5b[_0x3818bc(0x1df)]();if(!_0x1a849f)throw new Error(_0x3818bc(0x1de));const _0x49a0bf=_0x3c437a[_0x3818bc(0x1d9)](_0x1a849f);return(_0x3bb1f5=_0x49a0bf==null?void 0x0:_0x49a0bf['getStatus']())!=null?_0x3bb1f5:n[_0x3818bc(0x1ec)][_0x3818bc(0x1dc)];}[_0xef8b9b(0x1d2)](){const _0xa8e5d=_0xef8b9b;var _0xd3eac0;const _0x103bb9=this[_0xa8e5d(0x1d6)][_0xa8e5d(0x1da)](n[_0xa8e5d(0x1d0)]),_0x14c27c=(_0xd3eac0=this[_0xa8e5d(0x1cd)]())==null?void 0x0:_0xd3eac0[_0xa8e5d(0x1df)]();if(!_0x14c27c)throw new Error(_0xa8e5d(0x1de));const _0x46c0ee=_0x103bb9[_0xa8e5d(0x1d9)](_0x14c27c);if(!_0x46c0ee)throw new Error(_0xa8e5d(0x1cf));_0x46c0ee[_0xa8e5d(0x1d2)]();}[_0xef8b9b(0x1eb)](){const _0x579ac4=_0xef8b9b;var _0x43b97a;const _0x54e405=this[_0x579ac4(0x1d6)][_0x579ac4(0x1da)](n[_0x579ac4(0x1d0)]),_0x1f61f3=(_0x43b97a=this[_0x579ac4(0x1cd)]())==null?void 0x0:_0x43b97a['getId']();if(!_0x1f61f3)throw new Error(_0x579ac4(0x1de));const _0x90c330=_0x54e405[_0x579ac4(0x1d9)](_0x1f61f3);if(!_0x90c330)throw new Error(_0x579ac4(0x1cf));_0x90c330[_0x579ac4(0x1eb)]();}[_0xef8b9b(0x1ce)](){const _0x46b42f=_0xef8b9b;var _0x407734;const _0x446f00=this[_0x46b42f(0x1d6)][_0x46b42f(0x1da)](n['LiveShareController']),_0x81e3=(_0x407734=this[_0x46b42f(0x1cd)]())==null?void 0x0:_0x407734[_0x46b42f(0x1df)]();if(!_0x81e3)throw new Error(_0x46b42f(0x1de));const _0x5249fa=_0x446f00[_0x46b42f(0x1d9)](_0x81e3);if(!_0x5249fa)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5249fa[_0x46b42f(0x1e3)]();}[_0xef8b9b(0x1e1)](){const _0x2b3ead=_0xef8b9b;var _0x51f445;const _0x72e5ad=this[_0x2b3ead(0x1d6)][_0x2b3ead(0x1da)](n[_0x2b3ead(0x1d0)]),_0x22a030=(_0x51f445=this[_0x2b3ead(0x1cd)]())==null?void 0x0:_0x51f445[_0x2b3ead(0x1df)]();if(!_0x22a030)throw new Error('No\x20active\x20workbook\x20found.');const _0x4ae5d9=_0x72e5ad['getLiveShareCoordinatorSync'](_0x22a030);if(!_0x4ae5d9)throw new Error(_0x2b3ead(0x1cf));_0x4ae5d9[_0x2b3ead(0x1e1)]();}}a[_0xef8b9b(0x1d5)]['extend'](C);class L extends a['FEnum']{get[_0xef8b9b(0x1e9)](){const _0x589bed=_0xef8b9b;return n[_0x589bed(0x1ec)];}}a[_0xef8b9b(0x1ef)][_0xef8b9b(0x1cc)](L);
1
+ 'use strict';function _0x2f50(_0x524790,_0x2d9cb1){_0x524790=_0x524790-0x7a;const _0x32d1da=_0x32d1();let _0x2f50cf=_0x32d1da[_0x524790];return _0x2f50cf;}const _0x3c9bfb=_0x2f50;(function(_0x1e8493,_0x161d14){const _0x810c3e=_0x2f50,_0x206094=_0x1e8493();while(!![]){try{const _0x1e7c15=parseInt(_0x810c3e(0x92))/0x1*(parseInt(_0x810c3e(0x7b))/0x2)+parseInt(_0x810c3e(0xa4))/0x3+parseInt(_0x810c3e(0x9f))/0x4*(parseInt(_0x810c3e(0x7c))/0x5)+parseInt(_0x810c3e(0xa2))/0x6*(-parseInt(_0x810c3e(0x88))/0x7)+parseInt(_0x810c3e(0x89))/0x8*(-parseInt(_0x810c3e(0xa0))/0x9)+-parseInt(_0x810c3e(0x97))/0xa*(parseInt(_0x810c3e(0x81))/0xb)+parseInt(_0x810c3e(0x7f))/0xc*(parseInt(_0x810c3e(0x9d))/0xd);if(_0x1e7c15===_0x161d14)break;else _0x206094['push'](_0x206094['shift']());}catch(_0x38e28c){_0x206094['push'](_0x206094['shift']());}}}(_0x32d1,0x231d4));function _0x32d1(){const _0x3bb852=['getLiveShareStatus','652hzVepX','2075373UCfRIF','LiveShareStatus','2508fOlPUD','No\x20active\x20workbook\x20found.','6744mmXBAw','FEnum','LiveShareController','FUniver','PRESENTING','190iasbsl','7195aLavoP','SetWorksheetActiveOperation','getRenderById','1103052vjQNtz','get','11nzCeQf','startFollowing','_commandService','getStatus','syncExecuteCommand','getId','getUnitId','889zHvjSb','8RaiDmb','getLiveShareCoordinatorSync','startColumn','startPresenting','_initialize','stopPresenting','IRenderManagerService','getSheetId','getActiveWorkbook','2111IaAEdh','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getActiveSheet','_injector','extend','1936810opyxcJ','SetScrollOperation','tryStartPresenting','executeCommand','stopFollowing','FRange','26zgglLy'];_0x32d1=function(){return _0x3bb852;};return _0x32d1();}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[_0x3c9bfb(0x9c)]{[_0x3c9bfb(0x8d)](_0xab1d7b,_0x379cce,_0x24f7ae,_0x38773c,_0x58303d){const _0x1204fa=_0x3c9bfb,_0x5a74d7=_0xab1d7b['get'](n[_0x1204fa(0xa6)]),_0x1b2ed9=_0xab1d7b[_0x1204fa(0x80)](g[_0x1204fa(0x8f)]),_0x5d490a=_0x379cce[_0x1204fa(0x87)](),_0x2ee9cd=_0x379cce[_0x1204fa(0x94)](),_0x22bd15=_0x5a74d7[_0x1204fa(0x8a)](_0x5d490a);(_0x22bd15==null?void 0x0:_0x22bd15[_0x1204fa(0x84)]())!==n[_0x1204fa(0xa1)][_0x1204fa(0x7a)]||(_0x24f7ae[_0x1204fa(0x90)]()!==_0x2ee9cd[_0x1204fa(0x90)]()&&this[_0x1204fa(0x83)][_0x1204fa(0x9a)](u[_0x1204fa(0x7d)]['id'],{'unitId':_0x5d490a,'subUnitId':_0x24f7ae[_0x1204fa(0x90)]()}),!_0x1b2ed9[_0x1204fa(0x7e)](_0x5d490a))||_0x58303d[_0x1204fa(0x85)](f[_0x1204fa(0x98)]['id'],{'unitId':_0x379cce[_0x1204fa(0x87)](),'sheetId':_0x24f7ae[_0x1204fa(0x90)](),'sheetViewStartRow':_0x38773c['startRow'],'sheetViewStartColumn':_0x38773c[_0x1204fa(0x8b)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x3c9bfb(0x9c)]['extend'](w);class C extends a[_0x3c9bfb(0xa7)]{[_0x3c9bfb(0x9e)](){const _0x29906c=_0x3c9bfb;var _0x38a74b,_0x108487;const _0x298560=this[_0x29906c(0x95)][_0x29906c(0x80)](n['LiveShareController']),_0x3099db=(_0x38a74b=this[_0x29906c(0x91)]())==null?void 0x0:_0x38a74b[_0x29906c(0x86)]();if(!_0x3099db)throw new Error(_0x29906c(0xa3));const _0x12510f=_0x298560[_0x29906c(0x8a)](_0x3099db);return(_0x108487=_0x12510f==null?void 0x0:_0x12510f[_0x29906c(0x84)]())!=null?_0x108487:n['LiveShareStatus']['IDLE'];}[_0x3c9bfb(0x82)](){const _0x48a3ba=_0x3c9bfb;var _0x2ee746;const _0x1a2644=this['_injector'][_0x48a3ba(0x80)](n['LiveShareController']),_0x50355a=(_0x2ee746=this[_0x48a3ba(0x91)]())==null?void 0x0:_0x2ee746[_0x48a3ba(0x86)]();if(!_0x50355a)throw new Error('No\x20active\x20workbook\x20found.');const _0x5e181a=_0x1a2644[_0x48a3ba(0x8a)](_0x50355a);if(!_0x5e181a)throw new Error(_0x48a3ba(0x93));_0x5e181a[_0x48a3ba(0x82)]();}[_0x3c9bfb(0x9b)](){const _0x14b8d1=_0x3c9bfb;var _0x27e648;const _0x13f74b=this[_0x14b8d1(0x95)]['get'](n['LiveShareController']),_0x32809c=(_0x27e648=this[_0x14b8d1(0x91)]())==null?void 0x0:_0x27e648[_0x14b8d1(0x86)]();if(!_0x32809c)throw new Error(_0x14b8d1(0xa3));const _0x315560=_0x13f74b['getLiveShareCoordinatorSync'](_0x32809c);if(!_0x315560)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x315560[_0x14b8d1(0x9b)]();}[_0x3c9bfb(0x8c)](){const _0x56bb3d=_0x3c9bfb;var _0x1ebd27;const _0x1c0c53=this[_0x56bb3d(0x95)]['get'](n['LiveShareController']),_0x4483f6=(_0x1ebd27=this[_0x56bb3d(0x91)]())==null?void 0x0:_0x1ebd27['getId']();if(!_0x4483f6)throw new Error('No\x20active\x20workbook\x20found.');const _0xfc139a=_0x1c0c53[_0x56bb3d(0x8a)](_0x4483f6);if(!_0xfc139a)throw new Error(_0x56bb3d(0x93));_0xfc139a[_0x56bb3d(0x99)]();}[_0x3c9bfb(0x8e)](){const _0x286b1f=_0x3c9bfb;var _0x326dc8;const _0x24a8b9=this[_0x286b1f(0x95)]['get'](n[_0x286b1f(0xa6)]),_0x233ea6=(_0x326dc8=this[_0x286b1f(0x91)]())==null?void 0x0:_0x326dc8[_0x286b1f(0x86)]();if(!_0x233ea6)throw new Error(_0x286b1f(0xa3));const _0x4620c4=_0x24a8b9[_0x286b1f(0x8a)](_0x233ea6);if(!_0x4620c4)throw new Error(_0x286b1f(0x93));_0x4620c4[_0x286b1f(0x8e)]();}}a['FUniver'][_0x3c9bfb(0x96)](C);class L extends a[_0x3c9bfb(0xa5)]{get['LiveShareStatusEnum'](){const _0xcdfcc7=_0x3c9bfb;return n[_0xcdfcc7(0xa1)];}}a[_0x3c9bfb(0xa5)]['extend'](L);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0xcdd8a2=_0x247a;(function(_0x5ea1d5,_0x1f9fd6){const _0x1f804a=_0x247a,_0x3bb8e7=_0x5ea1d5();while(!![]){try{const _0x400fa3=-parseInt(_0x1f804a(0x248))/0x1*(-parseInt(_0x1f804a(0x19e))/0x2)+-parseInt(_0x1f804a(0x1e0))/0x3+parseInt(_0x1f804a(0x1e4))/0x4*(-parseInt(_0x1f804a(0x230))/0x5)+parseInt(_0x1f804a(0x1ed))/0x6+parseInt(_0x1f804a(0x1e3))/0x7*(parseInt(_0x1f804a(0x243))/0x8)+parseInt(_0x1f804a(0x1a9))/0x9+parseInt(_0x1f804a(0x182))/0xa;if(_0x400fa3===_0x1f9fd6)break;else _0x3bb8e7['push'](_0x3bb8e7['shift']());}catch(_0x3a4a57){_0x3bb8e7['push'](_0x3bb8e7['shift']());}}}(_0x10bb,0x22634));var T=Object[_0xcdd8a2(0x18c)],U=(_0xe6c5a8,_0x1ed970,_0x275f17)=>_0x1ed970 in _0xe6c5a8?T(_0xe6c5a8,_0x1ed970,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x275f17}):_0xe6c5a8[_0x1ed970]=_0x275f17,_=(_0x23a2b9,_0x2dfc89,_0x29141)=>U(_0x23a2b9,typeof _0x2dfc89!=_0xcdd8a2(0x200)?_0x2dfc89+'':_0x2dfc89,_0x29141);Object['defineProperty'](exports,Symbol[_0xcdd8a2(0x1fb)],{'value':_0xcdd8a2(0x1be)});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:_0x53dcdc,..._0x515846}){const _0x215431=_0xcdd8a2,{icon:_0x584cec,id:_0x4e67e2,className:_0x28f6f6,extend:_0x4b10dd,..._0x3bd2bf}=_0x515846,_0x31ab57=('univerjs-icon\x20univerjs-icon-'+_0x4e67e2+'\x20'+(_0x28f6f6||''))[_0x215431(0x228)](),_0x4373e2=v[_0x215431(0x1b2)]('_'+H());return j(_0x584cec,''+_0x4e67e2,{'defIds':_0x584cec[_0x215431(0x1ef)],'idSuffix':_0x4373e2[_0x215431(0x1ae)]},{'ref':_0x53dcdc,'className':_0x31ab57,..._0x3bd2bf},_0x4b10dd);}function j(_0x107e1a,_0x3eb67e,_0x47ec49,_0x1373fc,_0x555fcc){const _0x421a8c=_0xcdd8a2;return v[_0x421a8c(0x1d8)](_0x107e1a[_0x421a8c(0x1fd)],{'key':_0x3eb67e,...y(_0x107e1a,_0x47ec49,_0x555fcc),..._0x1373fc},(F(_0x107e1a,_0x47ec49)[_0x421a8c(0x1ba)]||[])[_0x421a8c(0x193)]((_0x31f4a6,_0x5a8b5f)=>j(_0x31f4a6,_0x3eb67e+'-'+_0x107e1a[_0x421a8c(0x1fd)]+'-'+_0x5a8b5f,_0x47ec49,void 0x0,_0x555fcc)));}function y(_0x357b12,_0x465567,_0x541af7){const _0x24bc55=_0xcdd8a2,_0x560390={..._0x357b12[_0x24bc55(0x1a8)]};_0x541af7!=null&&_0x541af7[_0x24bc55(0x185)]&&_0x560390[_0x24bc55(0x1d2)]==='colorChannel1'&&(_0x560390[_0x24bc55(0x1d2)]=_0x541af7[_0x24bc55(0x185)]),_0x357b12['tag']===_0x24bc55(0x1bb)&&_0x560390['id']&&(_0x560390['id']=_0x560390['id']+_0x465567[_0x24bc55(0x18f)]),Object[_0x24bc55(0x1ec)](_0x560390)[_0x24bc55(0x212)](([_0x2786ee,_0x3f30a2])=>{const _0x3f6fad=_0x24bc55;_0x2786ee===_0x3f6fad(0x1bb)&&typeof _0x3f30a2==_0x3f6fad(0x1b7)&&(_0x560390[_0x2786ee]=_0x3f30a2['replace'](/url\(#(.*)\)/,'url(#$1'+_0x465567['idSuffix']+')'));});const {defIds:_0x36f2d3}=_0x465567;return!_0x36f2d3||_0x36f2d3[_0x24bc55(0x231)]===0x0||(_0x357b12['tag']===_0x24bc55(0x197)&&_0x560390[_0x24bc55(0x17a)]&&(_0x560390[_0x24bc55(0x17a)]=_0x560390[_0x24bc55(0x17a)]+_0x465567[_0x24bc55(0x18f)]),Object[_0x24bc55(0x1ec)](_0x560390)['forEach'](([_0x4030ba,_0x47db79])=>{const _0x573457=_0x24bc55;typeof _0x47db79==_0x573457(0x1b7)&&(_0x560390[_0x4030ba]=_0x47db79[_0x573457(0x219)](/url\(#(.*)\)/,'url(#$1'+_0x465567[_0x573457(0x18f)]+')'));})),_0x560390;}function F(_0x41bb6e,_0x2f12b8){const _0x4cda9e=_0xcdd8a2;var _0x495719;const {defIds:_0x37ec4c}=_0x2f12b8;return!_0x37ec4c||_0x37ec4c[_0x4cda9e(0x231)]===0x0?_0x41bb6e:_0x41bb6e[_0x4cda9e(0x1fd)]===_0x4cda9e(0x23f)&&((_0x495719=_0x41bb6e[_0x4cda9e(0x1ba)])!=null&&_0x495719[_0x4cda9e(0x231)])?{..._0x41bb6e,'children':_0x41bb6e['children'][_0x4cda9e(0x193)](_0x44a7a3=>typeof _0x44a7a3[_0x4cda9e(0x1a8)]['id']==_0x4cda9e(0x1b7)&&_0x37ec4c&&_0x37ec4c[_0x4cda9e(0x232)](_0x44a7a3['attrs']['id'])?{..._0x44a7a3,'attrs':{..._0x44a7a3[_0x4cda9e(0x1a8)],'id':_0x44a7a3[_0x4cda9e(0x1a8)]['id']+_0x2f12b8[_0x4cda9e(0x18f)]}}:_0x44a7a3)}:_0x41bb6e;}function H(){const _0x3b505f=_0xcdd8a2;return Math[_0x3b505f(0x1ff)]()[_0x3b505f(0x21e)](0x24)[_0x3b505f(0x23e)](0x2,0x8);}x[_0xcdd8a2(0x1fa)]=_0xcdd8a2(0x20f);const V={'tag':_0xcdd8a2(0x22b),'attrs':{'xmlns':_0xcdd8a2(0x190),'fill':'none','viewBox':_0xcdd8a2(0x1db),'width':'1em','height':_0xcdd8a2(0x1b4)},'children':[{'tag':_0xcdd8a2(0x1a6),'attrs':{'fill':'currentColor','d':_0xcdd8a2(0x1d9)}},{'tag':_0xcdd8a2(0x1a6),'attrs':{'fill':_0xcdd8a2(0x1a2),'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':_0xcdd8a2(0x1a3),'clipRule':'evenodd'}}]},R=v[_0xcdd8a2(0x1f1)](function(_0x2a9354,_0x57b30c){const _0x84ae0d=_0xcdd8a2;return v[_0x84ae0d(0x1d8)](x,Object[_0x84ae0d(0x22c)]({},_0x2a9354,{'id':'live-share-icon','ref':_0x57b30c,'icon':V}));});R[_0xcdd8a2(0x1fa)]=_0xcdd8a2(0x21b);class E extends o[_0xcdd8a2(0x1ce)]{constructor(){const _0x47fec5=_0xcdd8a2;super(...arguments),_(this,_0x47fec5(0x196),new Set()),_(this,_0x47fec5(0x1b3),new Set());}['registerSharedOperation'](_0x3208f5){const _0x31ea1e=_0xcdd8a2;return this[_0x31ea1e(0x196)]['add'](_0x3208f5),o[_0x31ea1e(0x239)](()=>this['_sharedOperations']['delete'](_0x3208f5));}[_0xcdd8a2(0x1f3)](_0x342a4a){const _0x3b234c=_0xcdd8a2;return this[_0x3b234c(0x1b3)][_0x3b234c(0x23c)](_0x342a4a),o[_0x3b234c(0x239)](()=>this[_0x3b234c(0x1b3)][_0x3b234c(0x180)](_0x342a4a));}[_0xcdd8a2(0x1fc)](_0x59aac0){const _0x137809=_0xcdd8a2;return this['_sharedOperations'][_0x137809(0x233)](_0x59aac0);}[_0xcdd8a2(0x1f0)](_0x35c34d){const _0x403f17=_0xcdd8a2;return Array[_0x403f17(0x217)](this[_0x403f17(0x1b3)])['map'](_0x562be2=>_0x562be2(_0x35c34d));}}var M=Object[_0xcdd8a2(0x17c)],P=(_0x2a7ee3,_0x537412,_0x3c9a4d,_0x14cc6f)=>{const _0x19cefd=_0xcdd8a2;for(var _0x4961b3=_0x14cc6f>0x1?void 0x0:_0x14cc6f?M(_0x537412,_0x3c9a4d):_0x537412,_0x5ef4dc=_0x2a7ee3[_0x19cefd(0x231)]-0x1,_0x12a7fc;_0x5ef4dc>=0x0;_0x5ef4dc--)(_0x12a7fc=_0x2a7ee3[_0x5ef4dc])&&(_0x4961b3=_0x12a7fc(_0x4961b3)||_0x4961b3);return _0x4961b3;},S=(_0x52a1bf,_0x3ca314)=>(_0x4accb8,_0x543c64)=>_0x3ca314(_0x4accb8,_0x543c64,_0x52a1bf);exports[_0xcdd8a2(0x245)]=class extends o[_0xcdd8a2(0x1aa)]{constructor(_0x4e7ac7,_0x4ae347,_0x623e32){const _0x3558b7=_0xcdd8a2;super(),_(this,_0x3558b7(0x23d),new Map()),(this[_0x3558b7(0x207)]=_0x4e7ac7,this[_0x3558b7(0x1e2)]=_0x4ae347,this[_0x3558b7(0x216)]=_0x623e32,this['_init']());}async[_0xcdd8a2(0x17d)](_0xbc8110){const _0x31d992=_0xcdd8a2;return this[_0x31d992(0x23d)][_0x31d992(0x233)](_0xbc8110)||await this[_0x31d992(0x241)](_0xbc8110),this[_0x31d992(0x23d)]['get'](_0xbc8110);}[_0xcdd8a2(0x19c)](_0x4313b9){const _0x3299f9=_0xcdd8a2;var _0x3c3629;return(_0x3c3629=this[_0x3299f9(0x23d)][_0x3299f9(0x19f)](_0x4313b9))!=null?_0x3c3629:null;}[_0xcdd8a2(0x227)](){const _0x3bf809=_0xcdd8a2;this[_0x3bf809(0x207)]['getTypeOfUnitAdded$'](o[_0x3bf809(0x1a1)]['UNIVER_SHEET'])[_0x3bf809(0x208)](I[_0x3bf809(0x179)](this[_0x3bf809(0x205)]))['subscribe'](async _0x7b0aea=>{const _0x5d0087=_0x3bf809,_0x1c63e3=_0x7b0aea['getUnitId']();this[_0x5d0087(0x23d)][_0x5d0087(0x233)](_0x1c63e3)||this[_0x5d0087(0x241)](_0x1c63e3);}),this[_0x3bf809(0x207)][_0x3bf809(0x215)](o[_0x3bf809(0x1a1)][_0x3bf809(0x242)])[_0x3bf809(0x208)](I[_0x3bf809(0x179)](this[_0x3bf809(0x205)]))[_0x3bf809(0x240)](_0x23098c=>{const _0x5276dc=_0x3bf809,_0x25fa55=_0x23098c[_0x5276dc(0x1f7)](),_0x556ef0=this[_0x5276dc(0x23d)][_0x5276dc(0x19f)](_0x25fa55);_0x556ef0==null||_0x556ef0['dispose']();});}async[_0xcdd8a2(0x241)](_0x4c4d58){const _0x38e9f5=_0xcdd8a2,_0x246ad6=await this[_0x38e9f5(0x216)]['requireSession'](_0x4c4d58),_0x596623=this[_0x38e9f5(0x1e2)][_0x38e9f5(0x1e7)](exports[_0x38e9f5(0x20b)],_0x4c4d58,_0x246ad6);return _0x596623[_0x38e9f5(0x1b5)](),this['_entities'][_0x38e9f5(0x213)](_0x4c4d58,_0x596623),_0x596623;}},exports[_0xcdd8a2(0x245)]=P([S(0x0,o[_0xcdd8a2(0x18b)]),S(0x1,o[_0xcdd8a2(0x1c8)](o[_0xcdd8a2(0x1c5)])),S(0x2,o[_0xcdd8a2(0x1c8)](b[_0xcdd8a2(0x1a4)]))],exports[_0xcdd8a2(0x245)]);var u=(_0x29e93d=>(_0x29e93d['OFFLINE']=_0xcdd8a2(0x187),_0x29e93d['IDLE']=_0xcdd8a2(0x1c0),_0x29e93d[_0xcdd8a2(0x203)]='following',_0x29e93d['NOT_FOLLOWING']=_0xcdd8a2(0x210),_0x29e93d[_0xcdd8a2(0x1f6)]=_0xcdd8a2(0x188),_0x29e93d))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0xcdd8a2(0x20b)]=class extends o[_0xcdd8a2(0x1aa)]{constructor(_0x4b09f1,_0x1bedba,_0x219ece,_0x19f0b1,_0x2bbb84){const _0x790f96=_0xcdd8a2;super(),_(this,_0x790f96(0x238),new O[(_0x790f96(0x1ad))](_0x790f96(0x1c0))),_(this,_0x790f96(0x237),this['_status$'][_0x790f96(0x246)]()),_(this,_0x790f96(0x227),!0x1),_(this,_0x790f96(0x1bd),null),_(this,_0x790f96(0x22f),null),(this[_0x790f96(0x1ee)]=_0x4b09f1,this[_0x790f96(0x176)]=_0x1bedba,this[_0x790f96(0x1e6)]=_0x219ece,this['_liveShareService']=_0x19f0b1,this[_0x790f96(0x214)]=_0x2bbb84);}get[_0xcdd8a2(0x221)](){const _0x53ca4e=_0xcdd8a2;return this[_0x53ca4e(0x238)]['getValue']();}[_0xcdd8a2(0x1eb)](){const _0x2305ba=_0xcdd8a2;var _0x271ec4;(_0x271ec4=this['_commandDisposable'])==null||_0x271ec4[_0x2305ba(0x1eb)](),this[_0x2305ba(0x238)][_0x2305ba(0x22d)]('idle'),this[_0x2305ba(0x238)][_0x2305ba(0x206)]();}[_0xcdd8a2(0x1c6)](){const _0x453e4a=_0xcdd8a2;return this[_0x453e4a(0x221)];}[_0xcdd8a2(0x1b5)](){const _0x2805f0=_0xcdd8a2;this[_0x2805f0(0x227)]||(this[_0x2805f0(0x227)]=!0x0,this['_collabSession'][_0x2805f0(0x21c)][_0x2805f0(0x208)](I[_0x2805f0(0x179)](this[_0x2805f0(0x205)]))[_0x2805f0(0x240)](_0x709679=>{const _0x286e38=_0x2805f0;switch(_0x709679){case b[_0x286e38(0x20e)]['OFFLINE']:this[_0x286e38(0x175)]();break;case b[_0x286e38(0x20e)]['ONLINE']:this[_0x286e38(0x1e9)]();break;}}),this['_collabSession'][_0x2805f0(0x229)][_0x2805f0(0x208)](I[_0x2805f0(0x179)](this['dispose$']))[_0x2805f0(0x240)](_0x191481=>{const _0x1e589f=_0x2805f0,{eventID:_0x51aa9c}=_0x191481;switch(_0x51aa9c){case d['CollaborationEvent'][_0x1e589f(0x23a)]:this[_0x1e589f(0x199)](_0x191481);break;case d[_0x1e589f(0x1a7)][_0x1e589f(0x1f2)]:this[_0x1e589f(0x204)](_0x191481);break;case d['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x1e589f(0x225)]();break;case d[_0x1e589f(0x1a7)]['NEW_CHANGESETS']:this[_0x1e589f(0x18a)](_0x191481);break;}}));}[_0xcdd8a2(0x1c1)](){const _0x349814=_0xcdd8a2;this[_0x349814(0x176)][_0x349814(0x192)]({'eventID':d[_0x349814(0x1a7)][_0x349814(0x224)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession']['getMemberID']()}},this['_unitID']);}['stopPresenting'](){const _0x313393=_0xcdd8a2;this[_0x313393(0x221)]==='presenting'&&(this['_status$'][_0x313393(0x22d)](_0x313393(0x1c0)),this[_0x313393(0x176)][_0x313393(0x192)]({'eventID':d[_0x313393(0x1a7)][_0x313393(0x183)],'data':{'unitID':this['_unitID']}},this[_0x313393(0x1ee)]));}[_0xcdd8a2(0x1df)](){const _0x367438=_0xcdd8a2;this['_status']===_0x367438(0x210)&&(this[_0x367438(0x238)]['next'](_0x367438(0x20a)),this['_startFollowing']());}[_0xcdd8a2(0x1e8)](){const _0x2e7a51=_0xcdd8a2;this[_0x2e7a51(0x221)]===_0x2e7a51(0x20a)&&this[_0x2e7a51(0x1b9)]();}[_0xcdd8a2(0x199)](_0x496cbb){const _0x4b0d55=_0xcdd8a2,{presenter:_0x4c42bf}=_0x496cbb['data'],_0x4cafab=this['_collabSession'][_0x4b0d55(0x20c)]();this[_0x4b0d55(0x22f)]=_0x4c42bf,_0x4c42bf===_0x4cafab?(this[_0x4b0d55(0x1b9)](),this['_startPresenting']()):this[_0x4b0d55(0x221)]!==_0x4b0d55(0x210)&&(this[_0x4b0d55(0x1b1)](),this[_0x4b0d55(0x1c7)]());}[_0xcdd8a2(0x21a)](){const _0x201074=_0xcdd8a2,_0x3b62b9={'eventID':d[_0x201074(0x1a7)][_0x201074(0x198)]};this['_collabSession']['send'](_0x3b62b9,this['_unitID']);}[_0xcdd8a2(0x225)](){const _0x4f8620=_0xcdd8a2;this['_presenter']=null,this[_0x4f8620(0x221)]!==_0x4f8620(0x188)&&this[_0x4f8620(0x24c)]();}['_handleNewChangeSets'](_0x11c288){const _0x1bd34c=_0xcdd8a2;if(this[_0x1bd34c(0x221)]===_0x1bd34c(0x20a)&&this[_0x1bd34c(0x22f)]===_0x11c288[_0x1bd34c(0x19d)][_0x1bd34c(0x1d7)]){const _0x40b5cf=d[_0x1bd34c(0x195)](_0x11c288[_0x1bd34c(0x19d)])[_0x1bd34c(0x223)][_0x1bd34c(0x1d4)]()[_0x1bd34c(0x194)](_0x4982d1=>_0x4982d1['id']===C[_0x1bd34c(0x1e5)]['id']);if(_0x40b5cf){const _0x174d55=_0x40b5cf[_0x1bd34c(0x1b6)][_0x1bd34c(0x1bc)],_0x3c91f5=_0x40b5cf[_0x1bd34c(0x1b6)]['sheet']['id'];setTimeout(()=>{const _0x2b06a7=_0x1bd34c;this[_0x2b06a7(0x214)][_0x2b06a7(0x191)](C[_0x2b06a7(0x17b)]['id'],{'unitId':_0x174d55,'subUnitId':_0x3c91f5},{'fromCollab':!0x0});});}}}[_0xcdd8a2(0x19a)](){const _0x26097c=_0xcdd8a2;this[_0x26097c(0x238)][_0x26097c(0x22d)](_0x26097c(0x188));const _0xf3c9bb=new Map(),_0x5334c6=this[_0x26097c(0x1bd)]=new o['DisposableCollection']();_0x5334c6[_0x26097c(0x23c)](o[_0x26097c(0x239)](()=>{const _0x462b94=_0x26097c;_0xf3c9bb['forEach'](_0x1c93ca=>_0x1c93ca['complete']()),_0xf3c9bb[_0x462b94(0x1dd)]();})),_0x5334c6[_0x26097c(0x23c)](this['_commandService'][_0x26097c(0x218)](_0x3ac568=>{const _0x434714=_0x26097c;var _0x3f9b05;if(_0x3ac568[_0x434714(0x17f)]!==o['CommandType'][_0x434714(0x202)]||!this[_0x434714(0x236)]['shouldShareOperation'](_0x3ac568['id']))return;const {id:_0x40ef9b}=_0x3ac568;let _0xf365b5;_0xf3c9bb['has'](_0x40ef9b)?_0xf365b5=_0xf3c9bb[_0x434714(0x19f)](_0x40ef9b):(_0xf365b5=new O[(_0x434714(0x201))](),_0xf3c9bb[_0x434714(0x213)](_0x40ef9b,_0xf365b5),_0xf365b5[_0x434714(0x208)](I[_0x434714(0x24e)]((_0x3f9b05=this[_0x434714(0x1e6)]['getConfig'](k))!=null?_0x3f9b05:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x33ec6b=>{const _0x45b3f9=_0x434714;this['_collabSession']['send']({'eventID':d[_0x45b3f9(0x1a7)][_0x45b3f9(0x1f2)],'data':{'unitID':this[_0x45b3f9(0x1ee)],'operations':{[_0x33ec6b['id']]:{'id':_0x33ec6b['id'],'params':JSON[_0x45b3f9(0x1c2)](_0x33ec6b[_0x45b3f9(0x1b6)])}}}},this['_unitID']);})),_0xf365b5[_0x434714(0x22d)](_0x3ac568);})),this[_0x26097c(0x236)][_0x26097c(0x1f0)](this[_0x26097c(0x1ee)])['forEach'](_0x33d259=>this[_0x26097c(0x176)]['send']({'eventID':d[_0x26097c(0x1a7)][_0x26097c(0x1f2)],'data':{'unitID':this[_0x26097c(0x1ee)],'operations':{[_0x33d259['id']]:{'id':_0x33d259['id'],'params':JSON[_0x26097c(0x1c2)](_0x33d259[_0x26097c(0x1b6)])}}}},this[_0x26097c(0x1ee)]));}[_0xcdd8a2(0x1b1)](){const _0x12f673=_0xcdd8a2;var _0x3d7caa;this[_0x12f673(0x238)][_0x12f673(0x22d)](_0x12f673(0x1c0)),(_0x3d7caa=this['_commandDisposable'])==null||_0x3d7caa[_0x12f673(0x1eb)](),this['_commandDisposable']=null;}[_0xcdd8a2(0x1c7)](){const _0x5f4473=_0xcdd8a2;var _0x3882d7;(_0x3882d7=this[_0x5f4473(0x1bd)])==null||_0x3882d7[_0x5f4473(0x1eb)](),this['_status$'][_0x5f4473(0x22d)]('following');}[_0xcdd8a2(0x24c)](){const _0x39c24c=_0xcdd8a2;var _0x5cb60b;this[_0x39c24c(0x238)]['next'](_0x39c24c(0x1c0)),(_0x5cb60b=this['_commandDisposable'])==null||_0x5cb60b[_0x39c24c(0x1eb)](),this['_commandDisposable']=null;}[_0xcdd8a2(0x1b9)](){const _0x1b70fd=_0xcdd8a2;var _0x3abc2c;this[_0x1b70fd(0x238)][_0x1b70fd(0x22d)]('not-following'),(_0x3abc2c=this[_0x1b70fd(0x1bd)])==null||_0x3abc2c['dispose']();}['_handleOperation'](_0x36cb84){const _0x2a8764=_0xcdd8a2;if([_0x2a8764(0x188),_0x2a8764(0x210),_0x2a8764(0x187)]['includes'](this[_0x2a8764(0x221)])||!_0x36cb84['data'][_0x2a8764(0x247)]||_0x36cb84[_0x2a8764(0x19d)][_0x2a8764(0x247)]===this[_0x2a8764(0x176)][_0x2a8764(0x20c)]())return;this[_0x2a8764(0x221)]===_0x2a8764(0x1c0)&&this['_startFollowing']();const _0x2c3793=_0x36cb84[_0x2a8764(0x19d)]['operations'];Object[_0x2a8764(0x1a0)](_0x2c3793)[_0x2a8764(0x212)](_0x2be51c=>{const _0x53e01=_0x2a8764;this[_0x53e01(0x214)][_0x53e01(0x191)](_0x2be51c['id'],_0x2be51c[_0x53e01(0x1b6)]?JSON[_0x53e01(0x23b)](_0x2be51c[_0x53e01(0x1b6)]):null,{'fromCollab':!0x0});});}[_0xcdd8a2(0x175)](){const _0x5cd9cb=_0xcdd8a2;var _0x34f9b6;this[_0x5cd9cb(0x238)]['next'](_0x5cd9cb(0x187)),(_0x34f9b6=this[_0x5cd9cb(0x1bd)])==null||_0x34f9b6[_0x5cd9cb(0x1eb)]();}[_0xcdd8a2(0x1e9)](){const _0x2f3706=_0xcdd8a2;this[_0x2f3706(0x238)][_0x2f3706(0x22d)](_0x2f3706(0x1c0)),this[_0x2f3706(0x21a)]();}},exports[_0xcdd8a2(0x20b)]=P([S(0x2,o[_0xcdd8a2(0x1f9)]),S(0x3,o[_0xcdd8a2(0x1c8)](E)),S(0x4,o[_0xcdd8a2(0x249)])],exports['LiveShareCoordinator']);function $(){const _0x9c893b=_0xcdd8a2,_0x2de4d2=p[_0x9c893b(0x222)](exports['LiveShareController']),_0x159d34=p[_0x9c893b(0x222)](o[_0x9c893b(0x18b)]),_0x409099=p[_0x9c893b(0x1f5)](()=>_0x159d34[_0x9c893b(0x1c9)](o['UniverInstanceType'][_0x9c893b(0x242)]),void 0x0,!0x1,[]),[_0xcd012d,_0x1df929]=v[_0x9c893b(0x19b)](null),[_0x1b1b25,_0x3f00fa]=v[_0x9c893b(0x19b)](u['IDLE']),_0x2a95bb=v['useRef'](null);return v[_0x9c893b(0x1fe)](()=>(_0x409099&&_0x2de4d2[_0x9c893b(0x17d)](_0x409099[_0x9c893b(0x1f7)]())['then'](_0x4d2896=>{const _0x17348c=_0x9c893b;_0x1df929(_0x4d2896),_0x2a95bb[_0x17348c(0x1ae)]=_0x4d2896['status$']['subscribe'](_0x3091e9=>{_0x3f00fa(_0x3091e9);});}),()=>{const _0x4218c2=_0x9c893b;var _0x4ea2ce;(_0x4ea2ce=_0x2a95bb[_0x4218c2(0x1ae)])==null||_0x4ea2ce['unsubscribe'](),_0x2a95bb[_0x4218c2(0x1ae)]=null;}),[_0x409099,_0x2de4d2]),_0xcd012d?l[_0x9c893b(0x1bf)](f[_0x9c893b(0x1dc)],{'align':_0x9c893b(0x21d),'disabled':_0x1b1b25===u[_0x9c893b(0x1c3)],'className':_0x9c893b(0x17e),'overlay':l['jsx'](W,{'status':_0x1b1b25,'coordinator':_0xcd012d}),'children':l['jsx']('button',{'className':f['clsx'](_0x9c893b(0x1cf),{'univer-cursor-not-allowed':_0x1b1b25===u[_0x9c893b(0x1c3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1b1b25!==u[_0x9c893b(0x1c3)]}),'type':_0x9c893b(0x1ca),'children':l[_0x9c893b(0x1bf)](R,{'className':_0x9c893b(0x21f)})})}):null;}function W(_0x26d05d){const _0x520b4a=_0xcdd8a2,{status:_0x3f03a7,coordinator:_0x469855}=_0x26d05d;switch(_0x3f03a7){case u[_0x520b4a(0x178)]:return l[_0x520b4a(0x1bf)](G,{'coordinator':_0x469855});case u['FOLLOWING']:return l['jsx'](B,{'coordinator':_0x469855});case u[_0x520b4a(0x177)]:return l['jsx'](Y,{'coordinator':_0x469855});case u[_0x520b4a(0x1c3)]:return l[_0x520b4a(0x1bf)](J,{});case u[_0x520b4a(0x1f6)]:return l[_0x520b4a(0x1bf)](Z,{'coordinator':_0x469855});default:return null;}}function G(_0x362a07){const _0x39948f=_0xcdd8a2,{coordinator:_0x1247e}=_0x362a07;return l[_0x39948f(0x18d)](l['Fragment'],{'children':[l['jsx'](_0x39948f(0x1b8),{'className':_0x39948f(0x1c4),'children':'Present\x20this\x20document'}),l['jsx'](f[_0x39948f(0x1d0)],{'onClick':()=>_0x1247e['tryStartPresenting'](),'children':_0x39948f(0x244)})]});}function _0x247a(_0x1da54b,_0x390ce4){_0x1da54b=_0x1da54b-0x175;const _0x10bbcf=_0x10bb();let _0x247a1f=_0x10bbcf[_0x1da54b];return _0x247a1f;}function _0x10bb(){const _0x48ffa4=['defineProperty','jsxs','You\x27re\x20presenting\x20the\x20document','idSuffix','http://www.w3.org/2000/svg','executeCommand','send','map','find','parseProtocolChangeset','_sharedOperations','use','LIVESHARE_FETCH_OPERATIONS','_handleNewHost','_startPresenting','useState','getLiveShareCoordinatorSync','data','1424mHwNUd','get','values','UniverInstanceType','currentColor','evenodd','CollaborationSessionService','UNIVER_UNKNOWN','path','CollaborationEvent','attrs','114687SZAoGv','RxDisposable','Stop\x20following','_uiPartsService','BehaviorSubject','current','_config','pluginName','_stopPresenting','useRef','_reporters','1em','init','params','string','div','_stopFollowing','children','mask','unitId','_commandDisposable','Module','jsx','idle','tryStartPresenting','stringify','OFFLINE','univer-mb-3\x20univer-w-full\x20univer-text-sm','Injector','getStatus','_startFollowing','Inject','getCurrentTypeOfUnit$','button','BuiltInUIPart','override','IUIPartsService','Disposable','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Button','connectInjector','fill','DesktopLiveShareController','reverse','HEADER_MENU','disposeWithMe','memberID','createElement','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','UniverCollaborationClientPlugin','0\x200\x2017\x2017','Dropdown','clear','Start\x20following','startFollowing','429402VrPBiv','onRendered','_injector','1414UWAATi','4GNvuSl','InsertSheetMutation','_configService','createInstance','stopFollowing','_handleOnline','LiveShare','dispose','entries','360600atMUcl','_unitID','defIds','getInitialStates','forwardRef','LIVESHARE_OPERATION','registerInitialStateReporter','registerSharedOperation','useObservable','PRESENTING','getUnitId','merge','IConfigService','displayName','toStringTag','shouldShareOperation','tag','useEffect','random','symbol','Subject','OPERATION','FOLLOWING','_handleOperation','dispose$','complete','_univerInstanceService','pipe','touchDependencies','following','LiveShareCoordinator','getMemberID','_mountLiveShare','SessionStatus','UniverIcon','not-following','registerComponent','forEach','set','_commandService','getTypeOfUnitDisposed$','_collabSessionService','from','onCommandExecuted','replace','_fetchOperations','LiveShareIcon','sessionStatus$','end','toString','univer-size-4','UniverLiveSharePlugin','_status','useDependency','mutations','LIVESHARE_REQUEST_HOST','_handleTerminate','mergeOverrideWithDependencies','_init','trim','event$','You\x27re\x20not\x20following\x20the\x20presenter','svg','assign','next','Fragment','_presenter','828205IZveJU','length','includes','has','UNIVER_LIVE_SHARE_PLUGIN','default','_liveShareService','status$','_status$','toDisposable','LIVESHARE_NEW_HOST','parse','add','_entities','substring','defs','subscribe','_startLiveShareCoordinator','UNIVER_SHEET','3832jaUbik','Start','LiveShareController','asObservable','presenter','338obyhas','ICommandService','setConfig','You\x27re\x20following\x20the\x20presenter','_beIdle','DependentOn','throttleTime','_handleOffline','_collabSession','NOT_FOLLOWING','IDLE','takeUntil','xlink:href','SetWorksheetActiveOperation','getOwnPropertyDescriptor','getLiveShareCoordinator','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','type','delete','Plugin','393700GmzJRT','LIVESHARE_TERMINATE','registerDependencies','colorChannel1','LiveShareService','offline','presenting','SetZoomRatioOperation','_handleNewChangeSets','IUniverInstanceService'];_0x10bb=function(){return _0x48ffa4;};return _0x10bb();}function B(_0x9802bb){const _0x396968=_0xcdd8a2,{coordinator:_0x1d857d}=_0x9802bb;return l['jsxs'](l[_0x396968(0x22e)],{'children':[l['jsx'](_0x396968(0x1b8),{'className':_0x396968(0x1c4),'children':_0x396968(0x24b)}),l[_0x396968(0x1bf)](f['Button'],{'onClick':()=>_0x1d857d[_0x396968(0x1e8)](),'children':_0x396968(0x1ab)})]});}function Y(_0x3d8d1f){const _0x593a09=_0xcdd8a2,{coordinator:_0x1cf094}=_0x3d8d1f;return l['jsxs'](l[_0x593a09(0x22e)],{'children':[l[_0x593a09(0x1bf)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x593a09(0x22a)}),l[_0x593a09(0x1bf)](f[_0x593a09(0x1d0)],{'variant':'text','onClick':()=>_0x1cf094[_0x593a09(0x1df)](),'children':_0x593a09(0x1de)})]});}function Z(_0x4e4a70){const _0x4867a7=_0xcdd8a2,{coordinator:_0x13621a}=_0x4e4a70;return l['jsxs'](l[_0x4867a7(0x22e)],{'children':[l[_0x4867a7(0x1bf)](_0x4867a7(0x1b8),{'className':_0x4867a7(0x1c4),'children':_0x4867a7(0x18e)}),l[_0x4867a7(0x1bf)](f[_0x4867a7(0x1d0)],{'variant':_0x4867a7(0x235),'onClick':()=>_0x13621a['stopPresenting'](),'children':'Stop\x20presenting'})]});}function J(){const _0x4f376b=_0xcdd8a2;return l[_0x4f376b(0x1bf)](l[_0x4f376b(0x22e)],{'children':'You\x27are\x20offline.'});}var K=Object[_0xcdd8a2(0x17c)],z=(_0x48da8f,_0x4944d9,_0x2af6a2,_0x17efd6)=>{const _0x3bb2e2=_0xcdd8a2;for(var _0x10a9e7=_0x17efd6>0x1?void 0x0:_0x17efd6?K(_0x4944d9,_0x2af6a2):_0x4944d9,_0x12b581=_0x48da8f[_0x3bb2e2(0x231)]-0x1,_0x52152a;_0x12b581>=0x0;_0x12b581--)(_0x52152a=_0x48da8f[_0x12b581])&&(_0x10a9e7=_0x52152a(_0x10a9e7)||_0x10a9e7);return _0x10a9e7;},L=(_0x4d4274,_0xa4f9b2)=>(_0xf95da2,_0x5d2684)=>_0xa4f9b2(_0xf95da2,_0x5d2684,_0x4d4274);exports[_0xcdd8a2(0x1d3)]=class extends o[_0xcdd8a2(0x1ce)]{constructor(_0x2ed776,_0x5d211f){const _0x4cf390=_0xcdd8a2;super(),this[_0x4cf390(0x1e2)]=_0x2ed776,this[_0x4cf390(0x1ac)]=_0x5d211f,this[_0x4cf390(0x20d)]();}[_0xcdd8a2(0x20d)](){const _0x572833=_0xcdd8a2;this[_0x572833(0x1d6)](this[_0x572833(0x1ac)][_0x572833(0x211)](p[_0x572833(0x1cb)][_0x572833(0x1d5)],()=>p[_0x572833(0x1d1)]($,this[_0x572833(0x1e2)])));}},exports[_0xcdd8a2(0x1d3)]=z([L(0x0,o[_0xcdd8a2(0x1c8)](o[_0xcdd8a2(0x1c5)])),L(0x1,p[_0xcdd8a2(0x1cd)])],exports['DesktopLiveShareController']);const Q='live-share.config',w={};var X=Object['getOwnPropertyDescriptor'],ee=(_0x4f32c2,_0x44b434,_0x4e8a6d,_0x5d8b01)=>{const _0x4725f7=_0xcdd8a2;for(var _0x5191b5=_0x5d8b01>0x1?void 0x0:_0x5d8b01?X(_0x44b434,_0x4e8a6d):_0x44b434,_0x27bc2c=_0x4f32c2[_0x4725f7(0x231)]-0x1,_0x980afd;_0x27bc2c>=0x0;_0x27bc2c--)(_0x980afd=_0x4f32c2[_0x27bc2c])&&(_0x5191b5=_0x980afd(_0x5191b5)||_0x5191b5);return _0x5191b5;},te=(_0x76b548,_0x4afe5c)=>(_0x308fa3,_0x560b76)=>_0x4afe5c(_0x308fa3,_0x560b76,_0x76b548);let m=class extends o[_0xcdd8a2(0x1ce)]{constructor(_0x2a359d){const _0xeba375=_0xcdd8a2;super(),this[_0xeba375(0x236)]=_0x2a359d,this['_init']();}['_init'](){const _0x57a7c1=_0xcdd8a2;[D[_0x57a7c1(0x189)]['id'],D['SetScrollOperation']['id'],C[_0x57a7c1(0x17b)]['id']][_0x57a7c1(0x212)](_0x159fbb=>{const _0x3a6019=_0x57a7c1;this['disposeWithMe'](this[_0x3a6019(0x236)][_0x3a6019(0x1f4)](_0x159fbb));});}};m=ee([te(0x0,o[_0xcdd8a2(0x1c8)](E))],m);var ie=Object[_0xcdd8a2(0x18c)],se=Object[_0xcdd8a2(0x17c)],ne=(_0x56fe7f,_0x58a06e,_0x1d5f5d)=>_0x58a06e in _0x56fe7f?ie(_0x56fe7f,_0x58a06e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d5f5d}):_0x56fe7f[_0x58a06e]=_0x1d5f5d,re=(_0x3ab5c4,_0x41ef58,_0x35b8e5,_0x39c52f)=>{for(var _0x5a86ce=_0x39c52f>0x1?void 0x0:_0x39c52f?se(_0x41ef58,_0x35b8e5):_0x41ef58,_0x14dc44=_0x3ab5c4['length']-0x1,_0x4bbced;_0x14dc44>=0x0;_0x14dc44--)(_0x4bbced=_0x3ab5c4[_0x14dc44])&&(_0x5a86ce=_0x4bbced(_0x5a86ce)||_0x5a86ce);return _0x5a86ce;},N=(_0x161715,_0x1715a3)=>(_0x2a9893,_0x4997b8)=>_0x1715a3(_0x2a9893,_0x4997b8,_0x161715),A=(_0x36a0be,_0x40dbd0,_0x22c838)=>ne(_0x36a0be,typeof _0x40dbd0!='symbol'?_0x40dbd0+'':_0x40dbd0,_0x22c838);const oe=_0xcdd8a2(0x234);exports['UniverLiveSharePlugin']=class extends o[_0xcdd8a2(0x181)]{constructor(_0x4c9ff8=w,_0x367f4b,_0x17e011){const _0x3fbe4d=_0xcdd8a2;super(),this[_0x3fbe4d(0x1af)]=_0x4c9ff8,this[_0x3fbe4d(0x1e2)]=_0x367f4b,this[_0x3fbe4d(0x1e6)]=_0x17e011;const {..._0x3125c9}=o[_0x3fbe4d(0x1f8)]({},w,this[_0x3fbe4d(0x1af)]);this[_0x3fbe4d(0x1e6)][_0x3fbe4d(0x24a)](Q,_0x3125c9);}['onStarting'](){const _0x172014=_0xcdd8a2;o[_0x172014(0x184)](this[_0x172014(0x1e2)],o[_0x172014(0x226)]([[E],[exports['LiveShareController']],[m],[exports[_0x172014(0x1d3)]]],this[_0x172014(0x1af)][_0x172014(0x1cc)])),o['touchDependencies'](this[_0x172014(0x1e2)],[[m]]);}[_0xcdd8a2(0x1e1)](){const _0x513faa=_0xcdd8a2;o[_0x513faa(0x209)](this[_0x513faa(0x1e2)],[[exports[_0x513faa(0x1d3)]]]);}},A(exports[_0xcdd8a2(0x220)],'type',o[_0xcdd8a2(0x1a1)][_0xcdd8a2(0x1a5)]),A(exports[_0xcdd8a2(0x220)],_0xcdd8a2(0x1b0),oe),exports[_0xcdd8a2(0x220)]=re([o[_0xcdd8a2(0x24d)](b[_0xcdd8a2(0x1da)]),N(0x1,o[_0xcdd8a2(0x1c8)](o[_0xcdd8a2(0x1c5)])),N(0x2,o[_0xcdd8a2(0x1f9)])],exports[_0xcdd8a2(0x220)]),exports[_0xcdd8a2(0x1ea)]=$,exports[_0xcdd8a2(0x186)]=E,exports['LiveShareStatus']=u;
1
+ 'use strict';const _0x480436=_0x4c99;(function(_0x3ba62,_0x1705fc){const _0x51b51a=_0x4c99,_0x5b78ed=_0x3ba62();while(!![]){try{const _0x40eda3=-parseInt(_0x51b51a(0x25d))/0x1*(-parseInt(_0x51b51a(0x2b1))/0x2)+parseInt(_0x51b51a(0x28f))/0x3*(parseInt(_0x51b51a(0x1ed))/0x4)+-parseInt(_0x51b51a(0x213))/0x5*(-parseInt(_0x51b51a(0x2a5))/0x6)+-parseInt(_0x51b51a(0x234))/0x7+parseInt(_0x51b51a(0x20e))/0x8*(-parseInt(_0x51b51a(0x271))/0x9)+-parseInt(_0x51b51a(0x203))/0xa*(parseInt(_0x51b51a(0x211))/0xb)+parseInt(_0x51b51a(0x240))/0xc;if(_0x40eda3===_0x1705fc)break;else _0x5b78ed['push'](_0x5b78ed['shift']());}catch(_0x346aa2){_0x5b78ed['push'](_0x5b78ed['shift']());}}}(_0x2906,0xaf586));var T=Object['defineProperty'],U=(_0x366e1a,_0x4233b3,_0x311380)=>_0x4233b3 in _0x366e1a?T(_0x366e1a,_0x4233b3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x311380}):_0x366e1a[_0x4233b3]=_0x311380,_=(_0x5a3323,_0x3ed348,_0x3bcde7)=>U(_0x5a3323,typeof _0x3ed348!='symbol'?_0x3ed348+'':_0x3ed348,_0x3bcde7);Object[_0x480436(0x216)](exports,Symbol['toStringTag'],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x4609d9,..._0x2d055e}){const _0x3dd1ca=_0x480436,{icon:_0x35eab3,id:_0x5468ea,className:_0x38c087,extend:_0x10d6fd,..._0x4feef7}=_0x2d055e,_0x425a2b=(_0x3dd1ca(0x235)+_0x5468ea+'\x20'+(_0x38c087||''))[_0x3dd1ca(0x290)](),_0x168204=v[_0x3dd1ca(0x20c)]('_'+H());return j(_0x35eab3,''+_0x5468ea,{'defIds':_0x35eab3['defIds'],'idSuffix':_0x168204['current']},{'ref':_0x4609d9,'className':_0x425a2b,..._0x4feef7},_0x10d6fd);}function j(_0x114611,_0x5bf324,_0x28f602,_0x1d9e6a,_0x2e5242){const _0x5770b4=_0x480436;return v['createElement'](_0x114611['tag'],{'key':_0x5bf324,...y(_0x114611,_0x28f602,_0x2e5242),..._0x1d9e6a},(F(_0x114611,_0x28f602)[_0x5770b4(0x28a)]||[])['map']((_0x5de92f,_0x26b37e)=>j(_0x5de92f,_0x5bf324+'-'+_0x114611[_0x5770b4(0x229)]+'-'+_0x26b37e,_0x28f602,void 0x0,_0x2e5242)));}function y(_0x4da06c,_0x44f9b6,_0x292774){const _0x855dd7=_0x480436,_0x101a66={..._0x4da06c[_0x855dd7(0x22d)]};_0x292774!=null&&_0x292774[_0x855dd7(0x1f1)]&&_0x101a66[_0x855dd7(0x20d)]===_0x855dd7(0x1f1)&&(_0x101a66[_0x855dd7(0x20d)]=_0x292774['colorChannel1']),_0x4da06c[_0x855dd7(0x229)]===_0x855dd7(0x264)&&_0x101a66['id']&&(_0x101a66['id']=_0x101a66['id']+_0x44f9b6[_0x855dd7(0x1fe)]),Object['entries'](_0x101a66)[_0x855dd7(0x23d)](([_0x373fc5,_0x3d8ee1])=>{const _0x235128=_0x855dd7;_0x373fc5===_0x235128(0x264)&&typeof _0x3d8ee1==_0x235128(0x242)&&(_0x101a66[_0x373fc5]=_0x3d8ee1[_0x235128(0x228)](/url\(#(.*)\)/,_0x235128(0x1ec)+_0x44f9b6[_0x235128(0x1fe)]+')'));});const {defIds:_0x35506b}=_0x44f9b6;return!_0x35506b||_0x35506b['length']===0x0||(_0x4da06c['tag']==='use'&&_0x101a66[_0x855dd7(0x267)]&&(_0x101a66[_0x855dd7(0x267)]=_0x101a66[_0x855dd7(0x267)]+_0x44f9b6[_0x855dd7(0x1fe)]),Object[_0x855dd7(0x28c)](_0x101a66)[_0x855dd7(0x23d)](([_0x5f2418,_0x5de26a])=>{const _0x38d267=_0x855dd7;typeof _0x5de26a==_0x38d267(0x242)&&(_0x101a66[_0x5f2418]=_0x5de26a[_0x38d267(0x228)](/url\(#(.*)\)/,'url(#$1'+_0x44f9b6[_0x38d267(0x1fe)]+')'));})),_0x101a66;}function F(_0x28b192,_0x5ad15f){const _0x53a7f8=_0x480436;var _0x2ee943;const {defIds:_0x58bf3f}=_0x5ad15f;return!_0x58bf3f||_0x58bf3f['length']===0x0?_0x28b192:_0x28b192[_0x53a7f8(0x229)]===_0x53a7f8(0x258)&&((_0x2ee943=_0x28b192['children'])!=null&&_0x2ee943[_0x53a7f8(0x21b)])?{..._0x28b192,'children':_0x28b192[_0x53a7f8(0x28a)][_0x53a7f8(0x238)](_0x5b878c=>typeof _0x5b878c[_0x53a7f8(0x22d)]['id']==_0x53a7f8(0x242)&&_0x58bf3f&&_0x58bf3f[_0x53a7f8(0x1f4)](_0x5b878c[_0x53a7f8(0x22d)]['id'])?{..._0x5b878c,'attrs':{..._0x5b878c['attrs'],'id':_0x5b878c[_0x53a7f8(0x22d)]['id']+_0x5ad15f[_0x53a7f8(0x1fe)]}}:_0x5b878c)}:_0x28b192;}function H(){const _0x1d71ed=_0x480436;return Math[_0x1d71ed(0x269)]()[_0x1d71ed(0x25e)](0x24)['substring'](0x2,0x8);}x[_0x480436(0x1ef)]=_0x480436(0x2b3);const V={'tag':_0x480436(0x2ac),'attrs':{'xmlns':_0x480436(0x24c),'fill':_0x480436(0x270),'viewBox':_0x480436(0x21d),'width':_0x480436(0x20f),'height':_0x480436(0x20f)},'children':[{'tag':_0x480436(0x29b),'attrs':{'fill':_0x480436(0x296),'d':_0x480436(0x2ab)}},{'tag':'path','attrs':{'fill':_0x480436(0x296),'d':_0x480436(0x24f),'fillRule':_0x480436(0x1ff),'clipRule':_0x480436(0x1ff)}}]},R=v['forwardRef'](function(_0x9b7189,_0x2ef559){const _0x298f5a=_0x480436;return v[_0x298f5a(0x2b8)](x,Object[_0x298f5a(0x252)]({},_0x9b7189,{'id':_0x298f5a(0x1fb),'ref':_0x2ef559,'icon':V}));});R[_0x480436(0x1ef)]=_0x480436(0x2b5);class E extends o[_0x480436(0x230)]{constructor(){const _0x51c5a2=_0x480436;super(...arguments),_(this,_0x51c5a2(0x1fc),new Set()),_(this,_0x51c5a2(0x2bd),new Set());}[_0x480436(0x282)](_0xee8744){const _0x4d4a55=_0x480436;return this[_0x4d4a55(0x1fc)][_0x4d4a55(0x26f)](_0xee8744),o['toDisposable'](()=>this[_0x4d4a55(0x1fc)][_0x4d4a55(0x255)](_0xee8744));}[_0x480436(0x23c)](_0x49e5dd){const _0x49984c=_0x480436;return this[_0x49984c(0x2bd)][_0x49984c(0x26f)](_0x49e5dd),o['toDisposable'](()=>this['_reporters'][_0x49984c(0x255)](_0x49e5dd));}[_0x480436(0x28b)](_0x174917){const _0x392ac1=_0x480436;return this[_0x392ac1(0x1fc)]['has'](_0x174917);}['getInitialStates'](_0x64f60d){const _0x4a15c5=_0x480436;return Array[_0x4a15c5(0x263)](this[_0x4a15c5(0x2bd)])[_0x4a15c5(0x238)](_0x4515b3=>_0x4515b3(_0x64f60d));}}var M=Object['getOwnPropertyDescriptor'],P=(_0x189c14,_0x4a3027,_0x5c5c0f,_0x272a4f)=>{const _0x39e9b7=_0x480436;for(var _0x382e84=_0x272a4f>0x1?void 0x0:_0x272a4f?M(_0x4a3027,_0x5c5c0f):_0x4a3027,_0x4b56ff=_0x189c14[_0x39e9b7(0x21b)]-0x1,_0x5e0539;_0x4b56ff>=0x0;_0x4b56ff--)(_0x5e0539=_0x189c14[_0x4b56ff])&&(_0x382e84=_0x5e0539(_0x382e84)||_0x382e84);return _0x382e84;},S=(_0x49a39f,_0x2c48a2)=>(_0x1c0dc5,_0x25bbd5)=>_0x2c48a2(_0x1c0dc5,_0x25bbd5,_0x49a39f);exports[_0x480436(0x29a)]=class extends o['RxDisposable']{constructor(_0x1e2823,_0x1b2dfb,_0x155775){const _0xc523fe=_0x480436;super(),_(this,_0xc523fe(0x2b6),new Map()),(this[_0xc523fe(0x22f)]=_0x1e2823,this['_injector']=_0x1b2dfb,this[_0xc523fe(0x1f6)]=_0x155775,this[_0xc523fe(0x285)]());}async[_0x480436(0x253)](_0x2c5336){const _0x192fbd=_0x480436;return this['_entities'][_0x192fbd(0x25b)](_0x2c5336)||await this[_0x192fbd(0x23e)](_0x2c5336),this[_0x192fbd(0x2b6)][_0x192fbd(0x210)](_0x2c5336);}['getLiveShareCoordinatorSync'](_0x1aac15){const _0x46c9b5=_0x480436;var _0x3c828f;return(_0x3c828f=this[_0x46c9b5(0x2b6)][_0x46c9b5(0x210)](_0x1aac15))!=null?_0x3c828f:null;}['_init'](){const _0x1fffcb=_0x480436;this[_0x1fffcb(0x22f)]['getTypeOfUnitAdded$'](o[_0x1fffcb(0x208)][_0x1fffcb(0x221)])[_0x1fffcb(0x2a4)](I[_0x1fffcb(0x27b)](this['dispose$']))['subscribe'](async _0x2b4484=>{const _0x5d4966=_0x1fffcb,_0x339906=_0x2b4484['getUnitId']();this[_0x5d4966(0x2b6)][_0x5d4966(0x25b)](_0x339906)||this[_0x5d4966(0x23e)](_0x339906);}),this[_0x1fffcb(0x22f)][_0x1fffcb(0x2b2)](o[_0x1fffcb(0x208)][_0x1fffcb(0x221)])[_0x1fffcb(0x2a4)](I[_0x1fffcb(0x27b)](this[_0x1fffcb(0x1e6)]))[_0x1fffcb(0x27e)](_0x393840=>{const _0x5dadcc=_0x1fffcb,_0x99dd0=_0x393840['getUnitId'](),_0x54eb2e=this[_0x5dadcc(0x2b6)]['get'](_0x99dd0);_0x54eb2e==null||_0x54eb2e[_0x5dadcc(0x273)]();});}async['_startLiveShareCoordinator'](_0x192be4){const _0x18219c=_0x480436,_0x5cc0c8=await this[_0x18219c(0x1f6)][_0x18219c(0x2bc)](_0x192be4),_0x19877f=this['_injector'][_0x18219c(0x243)](exports[_0x18219c(0x219)],_0x192be4,_0x5cc0c8);return _0x19877f['init'](),this[_0x18219c(0x2b6)]['set'](_0x192be4,_0x19877f),_0x19877f;}},exports[_0x480436(0x29a)]=P([S(0x0,o[_0x480436(0x21a)]),S(0x1,o['Inject'](o['Injector'])),S(0x2,o['Inject'](b[_0x480436(0x2b9)]))],exports[_0x480436(0x29a)]);var u=(_0x5f55aa=>(_0x5f55aa[_0x480436(0x287)]=_0x480436(0x24a),_0x5f55aa[_0x480436(0x29f)]='idle',_0x5f55aa[_0x480436(0x297)]='following',_0x5f55aa['NOT_FOLLOWING']='not-following',_0x5f55aa['PRESENTING']=_0x480436(0x278),_0x5f55aa))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0x480436(0x219)]=class extends o[_0x480436(0x277)]{constructor(_0x3d77c7,_0x1bfcd6,_0x16174e,_0x551b33,_0x224a52){const _0xf3507e=_0x480436;super(),_(this,_0xf3507e(0x239),new O[(_0xf3507e(0x2a0))](_0xf3507e(0x1f5))),_(this,_0xf3507e(0x27c),this[_0xf3507e(0x239)][_0xf3507e(0x2b4)]()),_(this,'_init',!0x1),_(this,_0xf3507e(0x2aa),null),_(this,_0xf3507e(0x27f),null),(this[_0xf3507e(0x28e)]=_0x3d77c7,this[_0xf3507e(0x2bb)]=_0x1bfcd6,this[_0xf3507e(0x2ba)]=_0x16174e,this['_liveShareService']=_0x551b33,this['_commandService']=_0x224a52);}get[_0x480436(0x29d)](){const _0x5414a2=_0x480436;return this['_status$'][_0x5414a2(0x206)]();}[_0x480436(0x273)](){const _0x500e97=_0x480436;var _0x38eb2c;(_0x38eb2c=this[_0x500e97(0x2aa)])==null||_0x38eb2c[_0x500e97(0x273)](),this['_status$'][_0x500e97(0x217)]('idle'),this['_status$']['complete']();}['getStatus'](){const _0x1433e6=_0x480436;return this[_0x1433e6(0x29d)];}['init'](){const _0xb290c7=_0x480436;this[_0xb290c7(0x285)]||(this[_0xb290c7(0x285)]=!0x0,this[_0xb290c7(0x2bb)][_0xb290c7(0x1f3)][_0xb290c7(0x2a4)](I['takeUntil'](this[_0xb290c7(0x1e6)]))[_0xb290c7(0x27e)](_0x55525b=>{const _0x8a639b=_0xb290c7;switch(_0x55525b){case b[_0x8a639b(0x247)][_0x8a639b(0x287)]:this[_0x8a639b(0x28d)]();break;case b[_0x8a639b(0x247)]['ONLINE']:this[_0x8a639b(0x22e)]();break;}}),this[_0xb290c7(0x2bb)][_0xb290c7(0x222)]['pipe'](I[_0xb290c7(0x27b)](this[_0xb290c7(0x1e6)]))[_0xb290c7(0x27e)](_0x261ebc=>{const _0x175891=_0xb290c7,{eventID:_0x17dc23}=_0x261ebc;switch(_0x17dc23){case d['CollaborationEvent'][_0x175891(0x245)]:this[_0x175891(0x20b)](_0x261ebc);break;case d['CollaborationEvent'][_0x175891(0x21f)]:this['_handleOperation'](_0x261ebc);break;case d['CollaborationEvent'][_0x175891(0x200)]:this[_0x175891(0x232)]();break;case d['CollaborationEvent'][_0x175891(0x1f9)]:this[_0x175891(0x288)](_0x261ebc);break;}}));}[_0x480436(0x283)](){const _0x2be376=_0x480436;this[_0x2be376(0x2bb)][_0x2be376(0x260)]({'eventID':d['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x2be376(0x28e)],'userID':this[_0x2be376(0x2bb)][_0x2be376(0x261)]()}},this['_unitID']);}[_0x480436(0x227)](){const _0x37a0f3=_0x480436;this[_0x37a0f3(0x29d)]==='presenting'&&(this[_0x37a0f3(0x239)]['next'](_0x37a0f3(0x1f5)),this[_0x37a0f3(0x2bb)][_0x37a0f3(0x260)]({'eventID':d[_0x37a0f3(0x246)][_0x37a0f3(0x200)],'data':{'unitID':this['_unitID']}},this[_0x37a0f3(0x28e)]));}['startFollowing'](){const _0x227fa0=_0x480436;this[_0x227fa0(0x29d)]===_0x227fa0(0x233)&&(this[_0x227fa0(0x239)]['next']('following'),this[_0x227fa0(0x26b)]());}[_0x480436(0x268)](){const _0xaa0cd2=_0x480436;this[_0xaa0cd2(0x29d)]===_0xaa0cd2(0x2ad)&&this[_0xaa0cd2(0x27d)]();}['_handleNewHost'](_0x2961ed){const _0x26be98=_0x480436,{presenter:_0x4ad6ee}=_0x2961ed['data'],_0x485dc8=this[_0x26be98(0x2bb)]['getMemberID']();this[_0x26be98(0x27f)]=_0x4ad6ee,_0x4ad6ee===_0x485dc8?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x26be98(0x29d)]!=='not-following'&&(this[_0x26be98(0x201)](),this[_0x26be98(0x26b)]());}[_0x480436(0x1f0)](){const _0x518748=_0x480436,_0x429c6c={'eventID':d[_0x518748(0x246)][_0x518748(0x2af)]};this[_0x518748(0x2bb)]['send'](_0x429c6c,this['_unitID']);}[_0x480436(0x232)](){const _0x3e31f2=_0x480436;this[_0x3e31f2(0x27f)]=null,this['_status']!==_0x3e31f2(0x278)&&this[_0x3e31f2(0x212)]();}[_0x480436(0x288)](_0x29b603){const _0x3301e2=_0x480436;if(this[_0x3301e2(0x29d)]===_0x3301e2(0x2ad)&&this['_presenter']===_0x29b603[_0x3301e2(0x29c)][_0x3301e2(0x248)]){const _0xc07d77=d[_0x3301e2(0x251)](_0x29b603[_0x3301e2(0x29c)])['mutations'][_0x3301e2(0x256)]()[_0x3301e2(0x224)](_0x506ac4=>_0x506ac4['id']===C[_0x3301e2(0x207)]['id']);if(_0xc07d77){const _0x1e8270=_0xc07d77[_0x3301e2(0x249)][_0x3301e2(0x1f7)],_0xe193ef=_0xc07d77['params'][_0x3301e2(0x2a6)]['id'];setTimeout(()=>{const _0xb8c779=_0x3301e2;this[_0xb8c779(0x294)][_0xb8c779(0x281)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x1e8270,'subUnitId':_0xe193ef},{'fromCollab':!0x0});});}}}[_0x480436(0x24e)](){const _0x8cd83b=_0x480436;this[_0x8cd83b(0x239)][_0x8cd83b(0x217)]('presenting');const _0x52073f=new Map(),_0x3b1938=this['_commandDisposable']=new o[(_0x8cd83b(0x209))]();_0x3b1938['add'](o[_0x8cd83b(0x2b0)](()=>{const _0x5876d4=_0x8cd83b;_0x52073f[_0x5876d4(0x23d)](_0x1862f9=>_0x1862f9[_0x5876d4(0x291)]()),_0x52073f[_0x5876d4(0x231)]();})),_0x3b1938['add'](this[_0x8cd83b(0x294)][_0x8cd83b(0x25a)](_0x130d8c=>{const _0xc0ebd0=_0x8cd83b;var _0x2f46a8;if(_0x130d8c[_0xc0ebd0(0x279)]!==o[_0xc0ebd0(0x280)][_0xc0ebd0(0x236)]||!this[_0xc0ebd0(0x244)][_0xc0ebd0(0x28b)](_0x130d8c['id']))return;const {id:_0x336354}=_0x130d8c;let _0x353401;_0x52073f[_0xc0ebd0(0x25b)](_0x336354)?_0x353401=_0x52073f[_0xc0ebd0(0x210)](_0x336354):(_0x353401=new O['Subject'](),_0x52073f[_0xc0ebd0(0x1f2)](_0x336354,_0x353401),_0x353401['pipe'](I[_0xc0ebd0(0x22c)]((_0x2f46a8=this[_0xc0ebd0(0x2ba)]['getConfig'](k))!=null?_0x2f46a8:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xc0ebd0(0x27e)](_0x4551fc=>{const _0x150a0d=_0xc0ebd0;this[_0x150a0d(0x2bb)][_0x150a0d(0x260)]({'eventID':d[_0x150a0d(0x246)][_0x150a0d(0x21f)],'data':{'unitID':this[_0x150a0d(0x28e)],'operations':{[_0x4551fc['id']]:{'id':_0x4551fc['id'],'params':JSON[_0x150a0d(0x23f)](_0x4551fc[_0x150a0d(0x249)])}}}},this[_0x150a0d(0x28e)]);})),_0x353401[_0xc0ebd0(0x217)](_0x130d8c);})),this[_0x8cd83b(0x244)][_0x8cd83b(0x276)](this[_0x8cd83b(0x28e)])[_0x8cd83b(0x23d)](_0xf586a3=>this[_0x8cd83b(0x2bb)][_0x8cd83b(0x260)]({'eventID':d['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x8cd83b(0x28e)],'operations':{[_0xf586a3['id']]:{'id':_0xf586a3['id'],'params':JSON[_0x8cd83b(0x23f)](_0xf586a3[_0x8cd83b(0x249)])}}}},this[_0x8cd83b(0x28e)]));}[_0x480436(0x201)](){const _0x582bab=_0x480436;var _0xe8c3d;this[_0x582bab(0x239)]['next'](_0x582bab(0x1f5)),(_0xe8c3d=this[_0x582bab(0x2aa)])==null||_0xe8c3d['dispose'](),this[_0x582bab(0x2aa)]=null;}[_0x480436(0x26b)](){const _0x124149=_0x480436;var _0x10445f;(_0x10445f=this[_0x124149(0x2aa)])==null||_0x10445f[_0x124149(0x273)](),this['_status$'][_0x124149(0x217)](_0x124149(0x2ad));}[_0x480436(0x212)](){const _0x168baf=_0x480436;var _0xf50e0;this[_0x168baf(0x239)][_0x168baf(0x217)](_0x168baf(0x1f5)),(_0xf50e0=this[_0x168baf(0x2aa)])==null||_0xf50e0[_0x168baf(0x273)](),this[_0x168baf(0x2aa)]=null;}[_0x480436(0x27d)](){const _0x2289a1=_0x480436;var _0x1e1f38;this[_0x2289a1(0x239)][_0x2289a1(0x217)](_0x2289a1(0x233)),(_0x1e1f38=this['_commandDisposable'])==null||_0x1e1f38['dispose']();}[_0x480436(0x289)](_0x4315f5){const _0x489004=_0x480436;if([_0x489004(0x278),_0x489004(0x233),_0x489004(0x24a)][_0x489004(0x1f4)](this['_status'])||!_0x4315f5[_0x489004(0x29c)]['presenter']||_0x4315f5[_0x489004(0x29c)][_0x489004(0x20a)]===this[_0x489004(0x2bb)][_0x489004(0x261)]())return;this[_0x489004(0x29d)]==='idle'&&this[_0x489004(0x26b)]();const _0x1c33e1=_0x4315f5[_0x489004(0x29c)][_0x489004(0x205)];Object[_0x489004(0x1eb)](_0x1c33e1)[_0x489004(0x23d)](_0x701b52=>{const _0x5a75e3=_0x489004;this[_0x5a75e3(0x294)][_0x5a75e3(0x281)](_0x701b52['id'],_0x701b52[_0x5a75e3(0x249)]?JSON[_0x5a75e3(0x214)](_0x701b52[_0x5a75e3(0x249)]):null,{'fromCollab':!0x0});});}[_0x480436(0x28d)](){const _0x4ca5b5=_0x480436;var _0x54f6c9;this['_status$'][_0x4ca5b5(0x217)](_0x4ca5b5(0x24a)),(_0x54f6c9=this['_commandDisposable'])==null||_0x54f6c9[_0x4ca5b5(0x273)]();}['_handleOnline'](){const _0x292f9c=_0x480436;this[_0x292f9c(0x239)][_0x292f9c(0x217)]('idle'),this[_0x292f9c(0x1f0)]();}},exports[_0x480436(0x219)]=P([S(0x2,o['IConfigService']),S(0x3,o[_0x480436(0x215)](E)),S(0x4,o[_0x480436(0x1fa)])],exports[_0x480436(0x219)]);function $(){const _0x431cb8=_0x480436,_0x2aeca1=p[_0x431cb8(0x24d)](exports[_0x431cb8(0x29a)]),_0x22eb6c=p['useDependency'](o[_0x431cb8(0x21a)]),_0x165721=p[_0x431cb8(0x226)](()=>_0x22eb6c[_0x431cb8(0x22b)](o[_0x431cb8(0x208)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x4f3578,_0x43cb86]=v[_0x431cb8(0x1fd)](null),[_0xbe52f7,_0x216e29]=v[_0x431cb8(0x1fd)](u['IDLE']),_0x5cb6eb=v[_0x431cb8(0x20c)](null);return v['useEffect'](()=>(_0x165721&&_0x2aeca1[_0x431cb8(0x253)](_0x165721[_0x431cb8(0x25f)]())[_0x431cb8(0x286)](_0x50df66=>{const _0x2e2793=_0x431cb8;_0x43cb86(_0x50df66),_0x5cb6eb['current']=_0x50df66['status$'][_0x2e2793(0x27e)](_0x58de62=>{_0x216e29(_0x58de62);});}),()=>{const _0x1e1bb9=_0x431cb8;var _0x9b3964;(_0x9b3964=_0x5cb6eb[_0x1e1bb9(0x21c)])==null||_0x9b3964[_0x1e1bb9(0x275)](),_0x5cb6eb[_0x1e1bb9(0x21c)]=null;}),[_0x165721,_0x2aeca1]),_0x4f3578?l['jsx'](f[_0x431cb8(0x1ea)],{'align':_0x431cb8(0x259),'disabled':_0xbe52f7===u[_0x431cb8(0x287)],'className':_0x431cb8(0x295),'overlay':l[_0x431cb8(0x254)](W,{'status':_0xbe52f7,'coordinator':_0x4f3578}),'children':l[_0x431cb8(0x254)](_0x431cb8(0x265),{'className':f[_0x431cb8(0x1e7)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xbe52f7===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xbe52f7!==u['OFFLINE']}),'type':_0x431cb8(0x265),'children':l[_0x431cb8(0x254)](R,{'className':'univer-size-4'})})}):null;}function W(_0x407a63){const _0x593b57=_0x480436,{status:_0x163b5d,coordinator:_0x5eb326}=_0x407a63;switch(_0x163b5d){case u[_0x593b57(0x29f)]:return l[_0x593b57(0x254)](G,{'coordinator':_0x5eb326});case u[_0x593b57(0x297)]:return l[_0x593b57(0x254)](B,{'coordinator':_0x5eb326});case u['NOT_FOLLOWING']:return l[_0x593b57(0x254)](Y,{'coordinator':_0x5eb326});case u[_0x593b57(0x287)]:return l[_0x593b57(0x254)](J,{});case u[_0x593b57(0x2a8)]:return l[_0x593b57(0x254)](Z,{'coordinator':_0x5eb326});default:return null;}}function G(_0xc4586e){const _0x4ebfe3=_0x480436,{coordinator:_0x38c7c7}=_0xc4586e;return l[_0x4ebfe3(0x274)](l[_0x4ebfe3(0x1ee)],{'children':[l['jsx'](_0x4ebfe3(0x21e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4ebfe3(0x299)}),l[_0x4ebfe3(0x254)](f[_0x4ebfe3(0x26e)],{'onClick':()=>_0x38c7c7[_0x4ebfe3(0x283)](),'children':'Start'})]});}function _0x4c99(_0x368068,_0x29a3bf){_0x368068=_0x368068-0x1e6;const _0x2906b7=_0x2906();let _0x4c993a=_0x2906b7[_0x368068];return _0x4c993a;}function _0x2906(){const _0x471e2f=['executeCommand','registerSharedOperation','tryStartPresenting','SetScrollOperation','_init','then','OFFLINE','_handleNewChangeSets','_handleOperation','children','shouldShareOperation','entries','_handleOffline','_unitID','15TOEUzJ','trim','complete','Injector','IUIPartsService','_commandService','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','currentColor','FOLLOWING','pluginName','Present\x20this\x20document','LiveShareController','path','data','_status','merge','IDLE','BehaviorSubject','registerComponent','override','connectInjector','pipe','160032gRmaWp','sheet','You\x27re\x20following\x20the\x20presenter','PRESENTING','Stop\x20presenting','_commandDisposable','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','svg','following','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_FETCH_OPERATIONS','toDisposable','274308easLZv','getTypeOfUnitDisposed$','UniverIcon','asObservable','LiveShareIcon','_entities','default','createElement','CollaborationSessionService','_configService','_collabSession','requireSession','_reporters','dispose$','clsx','UniverCollaborationClientPlugin','onStarting','Dropdown','values','url(#$1','833396fLjXDs','Fragment','displayName','_fetchOperations','colorChannel1','set','sessionStatus$','includes','idle','_collabSessionService','unitId','LiveShare','NEW_CHANGESETS','ICommandService','live-share-icon','_sharedOperations','useState','idSuffix','evenodd','LIVESHARE_TERMINATE','_stopPresenting','text','40aUGNZl','Start\x20following','operations','getValue','InsertSheetMutation','UniverInstanceType','DisposableCollection','presenter','_handleNewHost','useRef','fill','112LniyJj','1em','get','3114221xkkHVg','_beIdle','65kwUsWF','parse','Inject','defineProperty','next','UniverLiveSharePlugin','LiveShareCoordinator','IUniverInstanceService','length','current','0\x200\x2017\x2017','div','LIVESHARE_OPERATION','DependentOn','UNIVER_SHEET','event$','DesktopLiveShareController','find','You\x27re\x20not\x20following\x20the\x20presenter','useObservable','stopPresenting','replace','tag','_mountLiveShare','getCurrentTypeOfUnit$','throttleTime','attrs','_handleOnline','_univerInstanceService','Disposable','clear','_handleTerminate','not-following','8175643MrFVIy','univerjs-icon\x20univerjs-icon-','OPERATION','symbol','map','_status$','Stop\x20following','onRendered','registerInitialStateReporter','forEach','_startLiveShareCoordinator','stringify','20270856GCCALK','touchDependencies','string','createInstance','_liveShareService','LIVESHARE_NEW_HOST','CollaborationEvent','SessionStatus','memberID','params','offline','registerDependencies','http://www.w3.org/2000/svg','useDependency','_startPresenting','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','univer-mb-3\x20univer-w-full\x20univer-text-sm','parseProtocolChangeset','assign','getLiveShareCoordinator','jsx','delete','reverse','UNIVER_UNKNOWN','defs','end','onCommandExecuted','has','_injector','1rMGWih','toString','getUnitId','send','getMemberID','BuiltInUIPart','from','mask','button','_uiPartsService','xlink:href','stopFollowing','random','getOwnPropertyDescriptor','_startFollowing','LiveShareService','_config','Button','add','none','126171LIOUXy','Plugin','dispose','jsxs','unsubscribe','getInitialStates','RxDisposable','presenting','type','disposeWithMe','takeUntil','status$','_stopFollowing','subscribe','_presenter','CommandType'];_0x2906=function(){return _0x471e2f;};return _0x2906();}function B(_0x19a128){const _0x26326a=_0x480436,{coordinator:_0x9bf3c}=_0x19a128;return l[_0x26326a(0x274)](l['Fragment'],{'children':[l[_0x26326a(0x254)](_0x26326a(0x21e),{'className':_0x26326a(0x250),'children':_0x26326a(0x2a7)}),l[_0x26326a(0x254)](f[_0x26326a(0x26e)],{'onClick':()=>_0x9bf3c['stopFollowing'](),'children':_0x26326a(0x23a)})]});}function Y(_0x406cba){const _0x41a206=_0x480436,{coordinator:_0x97b4b6}=_0x406cba;return l[_0x41a206(0x274)](l[_0x41a206(0x1ee)],{'children':[l[_0x41a206(0x254)](_0x41a206(0x21e),{'className':_0x41a206(0x250),'children':_0x41a206(0x225)}),l[_0x41a206(0x254)](f[_0x41a206(0x26e)],{'variant':_0x41a206(0x202),'onClick':()=>_0x97b4b6['startFollowing'](),'children':_0x41a206(0x204)})]});}function Z(_0x34c575){const _0x3ce4cf=_0x480436,{coordinator:_0x46608d}=_0x34c575;return l['jsxs'](l[_0x3ce4cf(0x1ee)],{'children':[l['jsx'](_0x3ce4cf(0x21e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x3ce4cf(0x254)](f[_0x3ce4cf(0x26e)],{'variant':_0x3ce4cf(0x2b7),'onClick':()=>_0x46608d[_0x3ce4cf(0x227)](),'children':_0x3ce4cf(0x2a9)})]});}function J(){const _0x229a2c=_0x480436;return l[_0x229a2c(0x254)](l['Fragment'],{'children':'You\x27are\x20offline.'});}var K=Object['getOwnPropertyDescriptor'],z=(_0x29fefc,_0x1eb802,_0x1d01c2,_0x2e3be4)=>{for(var _0x5dbde6=_0x2e3be4>0x1?void 0x0:_0x2e3be4?K(_0x1eb802,_0x1d01c2):_0x1eb802,_0x2522a2=_0x29fefc['length']-0x1,_0x43e08a;_0x2522a2>=0x0;_0x2522a2--)(_0x43e08a=_0x29fefc[_0x2522a2])&&(_0x5dbde6=_0x43e08a(_0x5dbde6)||_0x5dbde6);return _0x5dbde6;},L=(_0x565759,_0x512a0a)=>(_0x37bd0a,_0x57a810)=>_0x512a0a(_0x37bd0a,_0x57a810,_0x565759);exports[_0x480436(0x223)]=class extends o[_0x480436(0x230)]{constructor(_0x3d4a95,_0x433670){const _0x22ad4b=_0x480436;super(),this['_injector']=_0x3d4a95,this[_0x22ad4b(0x266)]=_0x433670,this[_0x22ad4b(0x22a)]();}[_0x480436(0x22a)](){const _0xab8a97=_0x480436;this[_0xab8a97(0x27a)](this[_0xab8a97(0x266)][_0xab8a97(0x2a1)](p[_0xab8a97(0x262)]['HEADER_MENU'],()=>p[_0xab8a97(0x2a3)]($,this['_injector'])));}},exports[_0x480436(0x223)]=z([L(0x0,o[_0x480436(0x215)](o[_0x480436(0x292)])),L(0x1,p[_0x480436(0x293)])],exports[_0x480436(0x223)]);const Q='live-share.config',w={};var X=Object[_0x480436(0x26a)],ee=(_0x5d0bcf,_0x5286e2,_0x3961c0,_0x245ac5)=>{for(var _0x36925b=_0x245ac5>0x1?void 0x0:_0x245ac5?X(_0x5286e2,_0x3961c0):_0x5286e2,_0x10a55c=_0x5d0bcf['length']-0x1,_0xf86b44;_0x10a55c>=0x0;_0x10a55c--)(_0xf86b44=_0x5d0bcf[_0x10a55c])&&(_0x36925b=_0xf86b44(_0x36925b)||_0x36925b);return _0x36925b;},te=(_0x5a4366,_0x3fc47b)=>(_0x2cc020,_0x53f254)=>_0x3fc47b(_0x2cc020,_0x53f254,_0x5a4366);let m=class extends o[_0x480436(0x230)]{constructor(_0x18e85e){const _0x1584ea=_0x480436;super(),this[_0x1584ea(0x244)]=_0x18e85e,this[_0x1584ea(0x285)]();}[_0x480436(0x285)](){const _0x1773d9=_0x480436;[D['SetZoomRatioOperation']['id'],D[_0x1773d9(0x284)]['id'],C['SetWorksheetActiveOperation']['id']][_0x1773d9(0x23d)](_0x3fcc1a=>{const _0x56046b=_0x1773d9;this['disposeWithMe'](this[_0x56046b(0x244)][_0x56046b(0x282)](_0x3fcc1a));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object[_0x480436(0x216)],se=Object['getOwnPropertyDescriptor'],ne=(_0x5ab78a,_0x3f8bbb,_0x344637)=>_0x3f8bbb in _0x5ab78a?ie(_0x5ab78a,_0x3f8bbb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x344637}):_0x5ab78a[_0x3f8bbb]=_0x344637,re=(_0xe350a2,_0x1ae402,_0x3cdaf5,_0x2b5a30)=>{const _0x4d3860=_0x480436;for(var _0x16d680=_0x2b5a30>0x1?void 0x0:_0x2b5a30?se(_0x1ae402,_0x3cdaf5):_0x1ae402,_0x6f9a02=_0xe350a2[_0x4d3860(0x21b)]-0x1,_0x1e37f1;_0x6f9a02>=0x0;_0x6f9a02--)(_0x1e37f1=_0xe350a2[_0x6f9a02])&&(_0x16d680=_0x1e37f1(_0x16d680)||_0x16d680);return _0x16d680;},N=(_0x727859,_0x49e53e)=>(_0x193b21,_0xa866ce)=>_0x49e53e(_0x193b21,_0xa866ce,_0x727859),A=(_0x55051d,_0x2c9690,_0x38da53)=>ne(_0x55051d,typeof _0x2c9690!=_0x480436(0x237)?_0x2c9690+'':_0x2c9690,_0x38da53);const oe=_0x480436(0x2ae);exports[_0x480436(0x218)]=class extends o[_0x480436(0x272)]{constructor(_0x40e758=w,_0x1bf925,_0x1021d9){const _0x119619=_0x480436;super(),this[_0x119619(0x26d)]=_0x40e758,this[_0x119619(0x25c)]=_0x1bf925,this[_0x119619(0x2ba)]=_0x1021d9;const {..._0x1842ad}=o[_0x119619(0x29e)]({},w,this[_0x119619(0x26d)]);this[_0x119619(0x2ba)]['setConfig'](Q,_0x1842ad);}[_0x480436(0x1e9)](){const _0x26eebb=_0x480436;o[_0x26eebb(0x24b)](this[_0x26eebb(0x25c)],o['mergeOverrideWithDependencies']([[E],[exports[_0x26eebb(0x29a)]],[m],[exports[_0x26eebb(0x223)]]],this[_0x26eebb(0x26d)][_0x26eebb(0x2a2)])),o[_0x26eebb(0x241)](this[_0x26eebb(0x25c)],[[m]]);}[_0x480436(0x23b)](){const _0x9599c3=_0x480436;o[_0x9599c3(0x241)](this[_0x9599c3(0x25c)],[[exports[_0x9599c3(0x223)]]]);}},A(exports['UniverLiveSharePlugin'],_0x480436(0x279),o[_0x480436(0x208)][_0x480436(0x257)]),A(exports[_0x480436(0x218)],_0x480436(0x298),oe),exports[_0x480436(0x218)]=re([o[_0x480436(0x220)](b[_0x480436(0x1e8)]),N(0x1,o[_0x480436(0x215)](o[_0x480436(0x292)])),N(0x2,o['IConfigService'])],exports[_0x480436(0x218)]),exports[_0x480436(0x1f8)]=$,exports[_0x480436(0x26c)]=E,exports['LiveShareStatus']=u;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- function _0x571f(){const _0x2fbe56=['No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','18SFLRUn','54qplNdb','extend','LiveShareStatusEnum','IDLE','tryStartPresenting','1910900EeGIkZ','stopFollowing','getActiveSheet','getStatus','startFollowing','2748163dgQCaB','PRESENTING','_injector','4673781HJElQr','executeCommand','getLiveShareCoordinatorSync','2974672RSYiYd','10JxqPkj','536622GrCFBV','getSheetId','startRow','getUnitId','8913336INbwqk','getId','_commandService','41692asRSlr','6ZNgyrA','stopPresenting','No\x20active\x20workbook\x20found.','startPresenting','get','2cKGIjO','getActiveWorkbook'];_0x571f=function(){return _0x2fbe56;};return _0x571f();}const _0x79a651=_0x53b0;(function(_0x4fcfdf,_0x31312f){const _0x5cebe7=_0x53b0,_0x4541f2=_0x4fcfdf();while(!![]){try{const _0x218c8f=-parseInt(_0x5cebe7(0x161))/0x1*(parseInt(_0x5cebe7(0x16e))/0x2)+-parseInt(_0x5cebe7(0x172))/0x3*(-parseInt(_0x5cebe7(0x168))/0x4)+parseInt(_0x5cebe7(0x154))/0x5*(parseInt(_0x5cebe7(0x169))/0x6)+parseInt(_0x5cebe7(0x15c))/0x7+-parseInt(_0x5cebe7(0x15f))/0x8*(parseInt(_0x5cebe7(0x171))/0x9)+parseInt(_0x5cebe7(0x160))/0xa*(-parseInt(_0x5cebe7(0x159))/0xb)+parseInt(_0x5cebe7(0x165))/0xc;if(_0x218c8f===_0x31312f)break;else _0x4541f2['push'](_0x4541f2['shift']());}catch(_0x37dcb2){_0x4541f2['push'](_0x4541f2['shift']());}}}(_0x571f,0x6de54));import{LiveShareController as _0x55af9f,LiveShareStatus as _0x3533f8}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x2a4873}from'@univerjs/engine-render';function _0x53b0(_0x2493f7,_0x3baac6){_0x2493f7=_0x2493f7-0x152;const _0x571fe5=_0x571f();let _0x53b086=_0x571fe5[_0x2493f7];return _0x53b086;}import{SetWorksheetActiveOperation as _0x5c83dd}from'@univerjs/sheets';import{SetScrollOperation as _0x40817b}from'@univerjs/sheets-ui';import{FRange as _0x4fa1a3}from'@univerjs/sheets/facade';import{FUniver as _0x5c5814,FEnum as _0x54a6aa}from'@univerjs/core/facade';class I extends _0x4fa1a3{['_initialize'](_0x1f6ef1,_0x1d53fd,_0x771944,_0x23b5b3,_0x4161d7){const _0x57c640=_0x53b0,_0x487400=_0x1f6ef1[_0x57c640(0x16d)](_0x55af9f),_0x1acfaa=_0x1f6ef1[_0x57c640(0x16d)](_0x2a4873),_0x1be079=_0x1d53fd[_0x57c640(0x164)](),_0x4279a5=_0x1d53fd[_0x57c640(0x156)](),_0x4ad478=_0x487400[_0x57c640(0x15e)](_0x1be079);(_0x4ad478==null?void 0x0:_0x4ad478[_0x57c640(0x157)]())!==_0x3533f8[_0x57c640(0x15a)]||(_0x771944[_0x57c640(0x162)]()!==_0x4279a5['getSheetId']()&&this[_0x57c640(0x167)][_0x57c640(0x15d)](_0x5c83dd['id'],{'unitId':_0x1be079,'subUnitId':_0x771944[_0x57c640(0x162)]()}),!_0x1acfaa['getRenderById'](_0x1be079))||_0x4161d7['syncExecuteCommand'](_0x40817b['id'],{'unitId':_0x1d53fd[_0x57c640(0x164)](),'sheetId':_0x771944[_0x57c640(0x162)](),'sheetViewStartRow':_0x23b5b3[_0x57c640(0x163)],'sheetViewStartColumn':_0x23b5b3['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4fa1a3['extend'](I);class m extends _0x5c5814{['getLiveShareStatus'](){const _0x25436d=_0x53b0;var _0x5b9f61,_0x30dcb6;const _0x31f781=this[_0x25436d(0x15b)]['get'](_0x55af9f),_0x1b4084=(_0x5b9f61=this[_0x25436d(0x16f)]())==null?void 0x0:_0x5b9f61[_0x25436d(0x166)]();if(!_0x1b4084)throw new Error(_0x25436d(0x16b));const _0x346099=_0x31f781[_0x25436d(0x15e)](_0x1b4084);return(_0x30dcb6=_0x346099==null?void 0x0:_0x346099[_0x25436d(0x157)]())!=null?_0x30dcb6:_0x3533f8[_0x25436d(0x152)];}[_0x79a651(0x158)](){const _0x2dead6=_0x79a651;var _0x58abe3;const _0x580abc=this[_0x2dead6(0x15b)]['get'](_0x55af9f),_0x580a2d=(_0x58abe3=this[_0x2dead6(0x16f)]())==null?void 0x0:_0x58abe3[_0x2dead6(0x166)]();if(!_0x580a2d)throw new Error(_0x2dead6(0x16b));const _0x33dc85=_0x580abc[_0x2dead6(0x15e)](_0x580a2d);if(!_0x33dc85)throw new Error(_0x2dead6(0x170));_0x33dc85['startFollowing']();}[_0x79a651(0x155)](){const _0x5b3232=_0x79a651;var _0x462738;const _0x36c356=this[_0x5b3232(0x15b)][_0x5b3232(0x16d)](_0x55af9f),_0x345d0a=(_0x462738=this[_0x5b3232(0x16f)]())==null?void 0x0:_0x462738[_0x5b3232(0x166)]();if(!_0x345d0a)throw new Error('No\x20active\x20workbook\x20found.');const _0x573141=_0x36c356[_0x5b3232(0x15e)](_0x345d0a);if(!_0x573141)throw new Error(_0x5b3232(0x170));_0x573141[_0x5b3232(0x155)]();}[_0x79a651(0x16c)](){const _0x5e04c5=_0x79a651;var _0x3df80f;const _0x468a35=this['_injector'][_0x5e04c5(0x16d)](_0x55af9f),_0x415646=(_0x3df80f=this['getActiveWorkbook']())==null?void 0x0:_0x3df80f[_0x5e04c5(0x166)]();if(!_0x415646)throw new Error(_0x5e04c5(0x16b));const _0x18f111=_0x468a35[_0x5e04c5(0x15e)](_0x415646);if(!_0x18f111)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x18f111[_0x5e04c5(0x153)]();}[_0x79a651(0x16a)](){const _0x5728cd=_0x79a651;var _0x19c8d6;const _0x5af450=this['_injector'][_0x5728cd(0x16d)](_0x55af9f),_0x281a79=(_0x19c8d6=this[_0x5728cd(0x16f)]())==null?void 0x0:_0x19c8d6[_0x5728cd(0x166)]();if(!_0x281a79)throw new Error('No\x20active\x20workbook\x20found.');const _0x111972=_0x5af450[_0x5728cd(0x15e)](_0x281a79);if(!_0x111972)throw new Error(_0x5728cd(0x170));_0x111972[_0x5728cd(0x16a)]();}}_0x5c5814['extend'](m);class C extends _0x54a6aa{get[_0x79a651(0x174)](){return _0x3533f8;}}_0x54a6aa[_0x79a651(0x173)](C);
1
+ const _0x20bcd6=_0x1f2a;(function(_0x2cc397,_0xa868fd){const _0x5ce6e4=_0x1f2a,_0x30e752=_0x2cc397();while(!![]){try{const _0x316838=-parseInt(_0x5ce6e4(0x1b2))/0x1+-parseInt(_0x5ce6e4(0x1c1))/0x2+-parseInt(_0x5ce6e4(0x1cf))/0x3*(parseInt(_0x5ce6e4(0x1bc))/0x4)+parseInt(_0x5ce6e4(0x1b6))/0x5*(-parseInt(_0x5ce6e4(0x1bb))/0x6)+-parseInt(_0x5ce6e4(0x1c3))/0x7+-parseInt(_0x5ce6e4(0x1ca))/0x8*(-parseInt(_0x5ce6e4(0x1b9))/0x9)+parseInt(_0x5ce6e4(0x1b8))/0xa*(parseInt(_0x5ce6e4(0x1c4))/0xb);if(_0x316838===_0xa868fd)break;else _0x30e752['push'](_0x30e752['shift']());}catch(_0x2d2c6a){_0x30e752['push'](_0x30e752['shift']());}}}(_0x57a3,0x36b7b));import{LiveShareController as _0x3bf062,LiveShareStatus as _0x4cb3db}from'@univerjs-pro/live-share';import{IRenderManagerService as _0xef1b8d}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x58c827}from'@univerjs/sheets';import{SetScrollOperation as _0x30b027}from'@univerjs/sheets-ui';function _0x1f2a(_0x3a0254,_0x4a2493){_0x3a0254=_0x3a0254-0x1b0;const _0x57a309=_0x57a3();let _0x1f2a0f=_0x57a309[_0x3a0254];return _0x1f2a0f;}import{FRange as _0xb31a5c}from'@univerjs/sheets/facade';import{FUniver as _0x2e1202,FEnum as _0x1ab120}from'@univerjs/core/facade';class I extends _0xb31a5c{[_0x20bcd6(0x1ce)](_0xe1b583,_0x450f9e,_0x244abf,_0x1e1683,_0x309eeb){const _0x297830=_0x20bcd6,_0x2e985e=_0xe1b583[_0x297830(0x1cc)](_0x3bf062),_0x264784=_0xe1b583['get'](_0xef1b8d),_0x1a3008=_0x450f9e['getUnitId'](),_0x2ea082=_0x450f9e[_0x297830(0x1c2)](),_0x47d389=_0x2e985e[_0x297830(0x1b3)](_0x1a3008);(_0x47d389==null?void 0x0:_0x47d389['getStatus']())!==_0x4cb3db['PRESENTING']||(_0x244abf['getSheetId']()!==_0x2ea082[_0x297830(0x1bd)]()&&this['_commandService'][_0x297830(0x1c7)](_0x58c827['id'],{'unitId':_0x1a3008,'subUnitId':_0x244abf[_0x297830(0x1bd)]()}),!_0x264784['getRenderById'](_0x1a3008))||_0x309eeb[_0x297830(0x1c6)](_0x30b027['id'],{'unitId':_0x450f9e[_0x297830(0x1cd)](),'sheetId':_0x244abf['getSheetId'](),'sheetViewStartRow':_0x1e1683[_0x297830(0x1c0)],'sheetViewStartColumn':_0x1e1683[_0x297830(0x1b0)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0xb31a5c[_0x20bcd6(0x1b5)](I);class m extends _0x2e1202{[_0x20bcd6(0x1bf)](){const _0x1f9573=_0x20bcd6;var _0x47f3ce,_0x53481c;const _0x5b5eb4=this[_0x1f9573(0x1c9)][_0x1f9573(0x1cc)](_0x3bf062),_0x28ec5c=(_0x47f3ce=this[_0x1f9573(0x1b7)]())==null?void 0x0:_0x47f3ce[_0x1f9573(0x1c5)]();if(!_0x28ec5c)throw new Error('No\x20active\x20workbook\x20found.');const _0x210ecf=_0x5b5eb4[_0x1f9573(0x1b3)](_0x28ec5c);return(_0x53481c=_0x210ecf==null?void 0x0:_0x210ecf['getStatus']())!=null?_0x53481c:_0x4cb3db['IDLE'];}[_0x20bcd6(0x1cb)](){const _0x5551a8=_0x20bcd6;var _0xb791fd;const _0x181773=this[_0x5551a8(0x1c9)][_0x5551a8(0x1cc)](_0x3bf062),_0x6aedf=(_0xb791fd=this[_0x5551a8(0x1b7)]())==null?void 0x0:_0xb791fd[_0x5551a8(0x1c5)]();if(!_0x6aedf)throw new Error(_0x5551a8(0x1b4));const _0x15953a=_0x181773[_0x5551a8(0x1b3)](_0x6aedf);if(!_0x15953a)throw new Error(_0x5551a8(0x1ba));_0x15953a['startFollowing']();}['stopFollowing'](){const _0x3aeda3=_0x20bcd6;var _0x134f64;const _0x1445db=this[_0x3aeda3(0x1c9)][_0x3aeda3(0x1cc)](_0x3bf062),_0x2b0fc1=(_0x134f64=this['getActiveWorkbook']())==null?void 0x0:_0x134f64[_0x3aeda3(0x1c5)]();if(!_0x2b0fc1)throw new Error(_0x3aeda3(0x1b4));const _0x18015e=_0x1445db[_0x3aeda3(0x1b3)](_0x2b0fc1);if(!_0x18015e)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x18015e['stopFollowing']();}[_0x20bcd6(0x1c8)](){const _0x311e7c=_0x20bcd6;var _0x265d3e;const _0x1301ff=this['_injector'][_0x311e7c(0x1cc)](_0x3bf062),_0x56c8cb=(_0x265d3e=this[_0x311e7c(0x1b7)]())==null?void 0x0:_0x265d3e['getId']();if(!_0x56c8cb)throw new Error('No\x20active\x20workbook\x20found.');const _0x54f848=_0x1301ff[_0x311e7c(0x1b3)](_0x56c8cb);if(!_0x54f848)throw new Error(_0x311e7c(0x1ba));_0x54f848[_0x311e7c(0x1be)]();}[_0x20bcd6(0x1b1)](){const _0x5a9912=_0x20bcd6;var _0x1677f7;const _0x4019be=this[_0x5a9912(0x1c9)][_0x5a9912(0x1cc)](_0x3bf062),_0xc740ef=(_0x1677f7=this[_0x5a9912(0x1b7)]())==null?void 0x0:_0x1677f7[_0x5a9912(0x1c5)]();if(!_0xc740ef)throw new Error(_0x5a9912(0x1b4));const _0x2b4f7e=_0x4019be[_0x5a9912(0x1b3)](_0xc740ef);if(!_0x2b4f7e)throw new Error(_0x5a9912(0x1ba));_0x2b4f7e[_0x5a9912(0x1b1)]();}}_0x2e1202['extend'](m);class C extends _0x1ab120{get['LiveShareStatusEnum'](){return _0x4cb3db;}}_0x1ab120[_0x20bcd6(0x1b5)](C);function _0x57a3(){const _0x56af26=['358242qERvIE','27652DYzynx','getSheetId','tryStartPresenting','getLiveShareStatus','startRow','459300lKKmEU','getActiveSheet','1434881kzuWIK','253tZThvD','getId','syncExecuteCommand','executeCommand','startPresenting','_injector','27368SRcajm','startFollowing','get','getUnitId','_initialize','24KLcDQP','startColumn','stopPresenting','86177JyfJgn','getLiveShareCoordinatorSync','No\x20active\x20workbook\x20found.','extend','20LZOxIK','getActiveWorkbook','450280IBbtRt','9jRQGbD','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.'];_0x57a3=function(){return _0x56af26;};return _0x57a3();}
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x258e06=_0x4c24;(function(_0x56ccd9,_0x4350db){const _0x25e6aa=_0x4c24,_0x271de4=_0x56ccd9();while(!![]){try{const _0x9219a1=-parseInt(_0x25e6aa(0x17c))/0x1+-parseInt(_0x25e6aa(0x15e))/0x2*(-parseInt(_0x25e6aa(0x1af))/0x3)+parseInt(_0x25e6aa(0x1a3))/0x4+parseInt(_0x25e6aa(0x1a7))/0x5+-parseInt(_0x25e6aa(0x11b))/0x6*(-parseInt(_0x25e6aa(0x1a6))/0x7)+parseInt(_0x25e6aa(0x122))/0x8*(-parseInt(_0x25e6aa(0x1a8))/0x9)+parseInt(_0x25e6aa(0x16e))/0xa;if(_0x9219a1===_0x4350db)break;else _0x271de4['push'](_0x271de4['shift']());}catch(_0x4cc069){_0x271de4['push'](_0x271de4['shift']());}}}(_0x3818,0xd6fbe));var J=Object[_0x258e06(0x1bf)],K=(_0xc91e88,_0x3e4973,_0x18c7aa)=>_0x3e4973 in _0xc91e88?J(_0xc91e88,_0x3e4973,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18c7aa}):_0xc91e88[_0x3e4973]=_0x18c7aa,u=(_0x3e5c39,_0x14aad4,_0x5269c2)=>K(_0x3e5c39,typeof _0x14aad4!=_0x258e06(0x12d)?_0x14aad4+'':_0x14aad4,_0x5269c2);import{Disposable as _0x324efe,toDisposable as _0x3a3481,IUniverInstanceService as _0x4da99a,Inject as _0x78ae44,Injector as _0x2d4c16,IConfigService as _0x5aa847,ICommandService as _0x4f1d1d,RxDisposable as _0x391391,UniverInstanceType as _0x35559f,DisposableCollection as _0x4d8c75,CommandType as _0x14d400,DependentOn as _0x42a005,Plugin as _0x3ffe0c,merge as _0x1fe50c,registerDependencies as _0x2fbe26,mergeOverrideWithDependencies as _0x23ef20,touchDependencies as _0x3e4dcd}from'@univerjs/core';import{useDependency as _0x37223d,useObservable as _0x5b2abe,IUIPartsService as _0x156e10,BuiltInUIPart as _0x28e9dd,connectInjector as _0x1af1ba}from'@univerjs/ui';import{jsx as _0x4ed4a5,jsxs as _0x3a3244,Fragment as _0x18389c}from'react/jsx-runtime';import{Dropdown as _0x35fe18,clsx as _0x5580d9,Button as _0x476c51}from'@univerjs/design';import{useRef as _0x2baf0a,createElement as _0x21c1d5,forwardRef as _0x4ad21f,useState as _0x4104d8,useEffect as _0x3cf0aa}from'react';import{CollaborationEvent as _0x479a15,parseProtocolChangeset as _0x278421}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x359579,SessionStatus as _0x256689,UniverCollaborationClientPlugin as _0x285791}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x34e958,SetWorksheetActiveOperation as _0x2b85d9}from'@univerjs/sheets';import{BehaviorSubject as _0x388f3e,Subject as _0x2c03bf}from'rxjs';import{takeUntil as _0x30a49e,throttleTime as _0x2b3990}from'rxjs/operators';import{SetZoomRatioOperation as _0x18b166,SetScrollOperation as _0x3e75bb}from'@univerjs/sheets-ui';function k({ref:_0x194218,..._0xbab5ab}){const _0x2b4f5e=_0x258e06,{icon:_0x3549d4,id:_0x5f28d1,className:_0x28db96,extend:_0x14eea9,..._0x2f71b9}=_0xbab5ab,_0x5a69ad=(_0x2b4f5e(0x189)+_0x5f28d1+'\x20'+(_0x28db96||''))['trim'](),_0x269383=_0x2baf0a('_'+Oe());return G(_0x3549d4,''+_0x5f28d1,{'defIds':_0x3549d4[_0x2b4f5e(0x19c)],'idSuffix':_0x269383[_0x2b4f5e(0x11c)]},{'ref':_0x194218,'className':_0x5a69ad,..._0x2f71b9},_0x14eea9);}function G(_0x118c4b,_0x2ff79e,_0x89e27,_0x4070fb,_0x24b5b0){const _0x134d41=_0x258e06;return _0x21c1d5(_0x118c4b['tag'],{'key':_0x2ff79e,...be(_0x118c4b,_0x89e27,_0x24b5b0),..._0x4070fb},(Ee(_0x118c4b,_0x89e27)[_0x134d41(0x14e)]||[])[_0x134d41(0x179)]((_0x4b3224,_0x219f4c)=>G(_0x4b3224,_0x2ff79e+'-'+_0x118c4b[_0x134d41(0x131)]+'-'+_0x219f4c,_0x89e27,void 0x0,_0x24b5b0)));}function be(_0x35238c,_0x6d2cd5,_0x116d26){const _0x176feb=_0x258e06,_0xa91998={..._0x35238c['attrs']};_0x116d26!=null&&_0x116d26['colorChannel1']&&_0xa91998[_0x176feb(0x18e)]===_0x176feb(0x18d)&&(_0xa91998[_0x176feb(0x18e)]=_0x116d26[_0x176feb(0x18d)]),_0x35238c['tag']==='mask'&&_0xa91998['id']&&(_0xa91998['id']=_0xa91998['id']+_0x6d2cd5[_0x176feb(0x126)]),Object[_0x176feb(0x135)](_0xa91998)[_0x176feb(0x155)](([_0x252b4c,_0x49c58a])=>{const _0x5e4949=_0x176feb;_0x252b4c==='mask'&&typeof _0x49c58a==_0x5e4949(0x12c)&&(_0xa91998[_0x252b4c]=_0x49c58a['replace'](/url\(#(.*)\)/,_0x5e4949(0x1ae)+_0x6d2cd5[_0x5e4949(0x126)]+')'));});const {defIds:_0x1a4097}=_0x6d2cd5;return!_0x1a4097||_0x1a4097['length']===0x0||(_0x35238c['tag']==='use'&&_0xa91998[_0x176feb(0x17d)]&&(_0xa91998['xlink:href']=_0xa91998[_0x176feb(0x17d)]+_0x6d2cd5['idSuffix']),Object[_0x176feb(0x135)](_0xa91998)[_0x176feb(0x155)](([_0x31f0aa,_0x418dc5])=>{const _0x4dd701=_0x176feb;typeof _0x418dc5=='string'&&(_0xa91998[_0x31f0aa]=_0x418dc5[_0x4dd701(0x183)](/url\(#(.*)\)/,_0x4dd701(0x1ae)+_0x6d2cd5['idSuffix']+')'));})),_0xa91998;}function Ee(_0x1913ff,_0x45d6ef){const _0xad8579=_0x258e06;var _0x47afbb;const {defIds:_0x40a61e}=_0x45d6ef;return!_0x40a61e||_0x40a61e['length']===0x0?_0x1913ff:_0x1913ff['tag']===_0xad8579(0x168)&&((_0x47afbb=_0x1913ff[_0xad8579(0x14e)])!=null&&_0x47afbb[_0xad8579(0x125)])?{..._0x1913ff,'children':_0x1913ff[_0xad8579(0x14e)]['map'](_0x1948a9=>typeof _0x1948a9[_0xad8579(0x147)]['id']=='string'&&_0x40a61e&&_0x40a61e[_0xad8579(0x1b4)](_0x1948a9[_0xad8579(0x147)]['id'])?{..._0x1948a9,'attrs':{..._0x1948a9['attrs'],'id':_0x1948a9[_0xad8579(0x147)]['id']+_0x45d6ef[_0xad8579(0x126)]}}:_0x1948a9)}:_0x1913ff;}function Oe(){const _0x3c6430=_0x258e06;return Math[_0x3c6430(0x1bd)]()[_0x3c6430(0x146)](0x24)[_0x3c6430(0x1be)](0x2,0x8);}k[_0x258e06(0x11a)]=_0x258e06(0x16b);const we={'tag':_0x258e06(0x1b5),'attrs':{'xmlns':_0x258e06(0x1ba),'fill':_0x258e06(0x17f),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x258e06(0x12f)},'children':[{'tag':'path','attrs':{'fill':_0x258e06(0x159),'d':_0x258e06(0x193)}},{'tag':_0x258e06(0x156),'attrs':{'fill':_0x258e06(0x159),'d':_0x258e06(0x14f),'fillRule':_0x258e06(0x1b8),'clipRule':_0x258e06(0x1b8)}}]},W=_0x4ad21f(function(_0x457ca2,_0x3d420c){const _0x293334=_0x258e06;return _0x21c1d5(k,Object[_0x293334(0x188)]({},_0x457ca2,{'id':_0x293334(0x1b2),'ref':_0x3d420c,'icon':we}));});W[_0x258e06(0x11a)]=_0x258e06(0x15f);class L extends _0x324efe{constructor(){const _0x36f6aa=_0x258e06;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x36f6aa(0x178),new Set());}['registerSharedOperation'](_0x506fde){const _0x1271ad=_0x258e06;return this[_0x1271ad(0x163)][_0x1271ad(0x182)](_0x506fde),_0x3a3481(()=>this[_0x1271ad(0x163)][_0x1271ad(0x15a)](_0x506fde));}['registerInitialStateReporter'](_0x250f62){const _0x27e833=_0x258e06;return this[_0x27e833(0x178)]['add'](_0x250f62),_0x3a3481(()=>this[_0x27e833(0x178)][_0x27e833(0x15a)](_0x250f62));}[_0x258e06(0x162)](_0x328b9e){const _0x4bbde7=_0x258e06;return this[_0x4bbde7(0x163)][_0x4bbde7(0x185)](_0x328b9e);}['getInitialStates'](_0x378ecb){const _0x8da5ff=_0x258e06;return Array[_0x8da5ff(0x148)](this['_reporters'])[_0x8da5ff(0x179)](_0x2dedc6=>_0x2dedc6(_0x378ecb));}}var Ne=Object[_0x258e06(0x13c)],Y=(_0x11b179,_0x235a01,_0x579745,_0x28082c)=>{for(var _0x46d98a=_0x28082c>0x1?void 0x0:_0x28082c?Ne(_0x235a01,_0x579745):_0x235a01,_0x304e2e=_0x11b179['length']-0x1,_0x722cfc;_0x304e2e>=0x0;_0x304e2e--)(_0x722cfc=_0x11b179[_0x304e2e])&&(_0x46d98a=_0x722cfc(_0x46d98a)||_0x46d98a);return _0x46d98a;},_=(_0x30ec16,_0x151809)=>(_0x35a5d3,_0x3da833)=>_0x151809(_0x35a5d3,_0x3da833,_0x30ec16);let S=class extends _0x391391{constructor(_0x591373,_0x1dd949,_0x53f9ae){const _0x305932=_0x258e06;super(),u(this,_0x305932(0x167),new Map()),(this[_0x305932(0x1a1)]=_0x591373,this['_injector']=_0x1dd949,this['_collabSessionService']=_0x53f9ae,this[_0x305932(0x13f)]());}async['getLiveShareCoordinator'](_0x3fdbc6){const _0x4eae70=_0x258e06;return this[_0x4eae70(0x167)]['has'](_0x3fdbc6)||await this['_startLiveShareCoordinator'](_0x3fdbc6),this['_entities'][_0x4eae70(0x18b)](_0x3fdbc6);}[_0x258e06(0x190)](_0x39d865){const _0x45f4cd=_0x258e06;var _0x389a92;return(_0x389a92=this[_0x45f4cd(0x167)][_0x45f4cd(0x18b)](_0x39d865))!=null?_0x389a92:null;}[_0x258e06(0x13f)](){const _0x3e59d2=_0x258e06;this[_0x3e59d2(0x1a1)][_0x3e59d2(0x11f)](_0x35559f[_0x3e59d2(0x120)])[_0x3e59d2(0x19f)](_0x30a49e(this[_0x3e59d2(0x1a9)]))['subscribe'](async _0x139e7f=>{const _0x3fc23c=_0x3e59d2,_0x5db3c9=_0x139e7f[_0x3fc23c(0x181)]();this[_0x3fc23c(0x167)][_0x3fc23c(0x185)](_0x5db3c9)||this['_startLiveShareCoordinator'](_0x5db3c9);}),this[_0x3e59d2(0x1a1)][_0x3e59d2(0x1a4)](_0x35559f[_0x3e59d2(0x120)])[_0x3e59d2(0x19f)](_0x30a49e(this[_0x3e59d2(0x1a9)]))['subscribe'](_0x2b0194=>{const _0x35ab1f=_0x3e59d2,_0x1aa086=_0x2b0194[_0x35ab1f(0x181)](),_0xe01af9=this[_0x35ab1f(0x167)][_0x35ab1f(0x18b)](_0x1aa086);_0xe01af9==null||_0xe01af9[_0x35ab1f(0x138)]();});}async['_startLiveShareCoordinator'](_0x4de79d){const _0x4c2287=_0x258e06,_0x20d921=await this[_0x4c2287(0x164)][_0x4c2287(0x14c)](_0x4de79d),_0x2885fe=this[_0x4c2287(0x19a)][_0x4c2287(0x195)](N,_0x4de79d,_0x20d921);return _0x2885fe['init'](),this[_0x4c2287(0x167)][_0x4c2287(0x11d)](_0x4de79d,_0x2885fe),_0x2885fe;}};S=Y([_(0x0,_0x4da99a),_(0x1,_0x78ae44(_0x2d4c16)),_(0x2,_0x78ae44(_0x359579))],S);var c=(_0x247749=>(_0x247749['OFFLINE']='offline',_0x247749[_0x258e06(0x118)]=_0x258e06(0x14b),_0x247749[_0x258e06(0x17a)]=_0x258e06(0x1a5),_0x247749[_0x258e06(0x1c1)]='not-following',_0x247749[_0x258e06(0x129)]='presenting',_0x247749))(c||{});function _0x3818(){const _0x27a5df=['_univerInstanceService','default','2823368CAqyld','getTypeOfUnitDisposed$','following','618422zHIsnP','8352335wJFcxz','324aYsDYR','dispose$','data','_stopPresenting','_handleOperation','getLiveShareCoordinator','url(#$1','283818lOtlXK','sheet','_fetchOperations','live-share-icon','registerSharedOperation','includes','svg','_configService','stringify','evenodd','text','http://www.w3.org/2000/svg','unitId','onStarting','random','substring','defineProperty','event$','NOT_FOLLOWING','_stopFollowing','pluginName','IDLE','NEW_CHANGESETS','displayName','30RwFeiS','current','set','init','getTypeOfUnitAdded$','UNIVER_SHEET','LIVESHARE_FETCH_OPERATIONS','234696RwjcNt','Start','_handleNewHost','length','idSuffix','_handleOnline','_liveShareService','PRESENTING','Present\x20this\x20document','_handleNewChangeSets','string','symbol','tryStartPresenting','1em','operations','tag','_commandDisposable','_status','mutations','entries','stopFollowing','parse','dispose','univer-size-4','sessionStatus$','next','getOwnPropertyDescriptor','_beIdle','_presenter','_init','_uiPartsService','You\x27are\x20offline.','Stop\x20presenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','getValue','LIVESHARE_REQUEST_HOST','toString','attrs','from','_config','reverse','idle','requireSession','presenting','children','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','_status$','stopPresenting','OFFLINE','Stop\x20following','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','forEach','path','LIVESHARE_TERMINATE','_unitID','currentColor','delete','You\x27re\x20presenting\x20the\x20document','_startFollowing','send','14oRwXzb','LiveShareIcon','_commandService','getMemberID','shouldShareOperation','_sharedOperations','_collabSessionService','offline','status$','_entities','defs','override','SAME_OPERATION_SHARE_INTERVAL','UniverIcon','You\x27re\x20following\x20the\x20presenter','_handleTerminate','1203280uVNcPa','setConfig','onCommandExecuted','unsubscribe','UNIVER_UNKNOWN','LIVESHARE_OPERATION','subscribe','getInitialStates','_mountLiveShare','registerComponent','_reporters','map','FOLLOWING','button','1663903WpOAKe','xlink:href','find','none','UNIVER_LIVE_SHARE_PLUGIN','getUnitId','add','replace','not-following','has','getConfig','presenter','assign','univerjs-icon\x20univerjs-icon-','complete','get','params','colorChannel1','fill','startFollowing','getLiveShareCoordinatorSync','disposeWithMe','Start\x20following','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','values','createInstance','div','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','type','_handleOffline','_injector','then','defIds','You\x27re\x20not\x20following\x20the\x20presenter','_collabSession','pipe','_startPresenting'];_0x3818=function(){return _0x27a5df;};return _0x3818();}function _0x4c24(_0xded936,_0x3e6056){_0xded936=_0xded936-0x116;const _0x381899=_0x3818();let _0x4c2442=_0x381899[_0xded936];return _0x4c2442;}const Ce=_0x258e06(0x16a),De=0xc8;let N=class extends _0x391391{constructor(_0x19d682,_0x4f8d4c,_0x962a59,_0x24d6a4,_0x4806f7){const _0x480b38=_0x258e06;super(),u(this,'_status$',new _0x388f3e(_0x480b38(0x14b))),u(this,_0x480b38(0x166),this[_0x480b38(0x150)]['asObservable']()),u(this,_0x480b38(0x13f),!0x1),u(this,_0x480b38(0x132),null),u(this,_0x480b38(0x13e),null),(this[_0x480b38(0x158)]=_0x19d682,this[_0x480b38(0x19e)]=_0x4f8d4c,this[_0x480b38(0x1b6)]=_0x962a59,this['_liveShareService']=_0x24d6a4,this[_0x480b38(0x160)]=_0x4806f7);}get['_status'](){const _0x302f2a=_0x258e06;return this[_0x302f2a(0x150)][_0x302f2a(0x144)]();}[_0x258e06(0x138)](){const _0x574c3c=_0x258e06;var _0x4d31e9;(_0x4d31e9=this[_0x574c3c(0x132)])==null||_0x4d31e9[_0x574c3c(0x138)](),this['_status$']['next'](_0x574c3c(0x14b)),this[_0x574c3c(0x150)][_0x574c3c(0x18a)]();}['getStatus'](){const _0x25df1b=_0x258e06;return this[_0x25df1b(0x133)];}[_0x258e06(0x11e)](){const _0x3cb334=_0x258e06;this[_0x3cb334(0x13f)]||(this[_0x3cb334(0x13f)]=!0x0,this[_0x3cb334(0x19e)][_0x3cb334(0x13a)][_0x3cb334(0x19f)](_0x30a49e(this[_0x3cb334(0x1a9)]))['subscribe'](_0x966ab2=>{const _0x2d9ac5=_0x3cb334;switch(_0x966ab2){case _0x256689['OFFLINE']:this[_0x2d9ac5(0x199)]();break;case _0x256689['ONLINE']:this[_0x2d9ac5(0x127)]();break;}}),this[_0x3cb334(0x19e)][_0x3cb334(0x1c0)][_0x3cb334(0x19f)](_0x30a49e(this['dispose$']))['subscribe'](_0x1aac34=>{const _0x561cbf=_0x3cb334,{eventID:_0x30b0f9}=_0x1aac34;switch(_0x30b0f9){case _0x479a15['LIVESHARE_NEW_HOST']:this[_0x561cbf(0x124)](_0x1aac34);break;case _0x479a15[_0x561cbf(0x173)]:this[_0x561cbf(0x1ac)](_0x1aac34);break;case _0x479a15[_0x561cbf(0x157)]:this[_0x561cbf(0x16d)]();break;case _0x479a15[_0x561cbf(0x119)]:this[_0x561cbf(0x12b)](_0x1aac34);break;}}));}[_0x258e06(0x12e)](){const _0x590cf2=_0x258e06;this[_0x590cf2(0x19e)][_0x590cf2(0x15d)]({'eventID':_0x479a15[_0x590cf2(0x145)],'data':{'unitID':this[_0x590cf2(0x158)],'userID':this[_0x590cf2(0x19e)][_0x590cf2(0x161)]()}},this[_0x590cf2(0x158)]);}[_0x258e06(0x151)](){const _0x45d9a0=_0x258e06;this[_0x45d9a0(0x133)]===_0x45d9a0(0x14d)&&(this[_0x45d9a0(0x150)][_0x45d9a0(0x13b)](_0x45d9a0(0x14b)),this[_0x45d9a0(0x19e)][_0x45d9a0(0x15d)]({'eventID':_0x479a15['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x45d9a0(0x158)]}},this[_0x45d9a0(0x158)]));}[_0x258e06(0x18f)](){const _0x2c2b92=_0x258e06;this[_0x2c2b92(0x133)]===_0x2c2b92(0x184)&&(this['_status$'][_0x2c2b92(0x13b)](_0x2c2b92(0x1a5)),this['_startFollowing']());}['stopFollowing'](){const _0x42a137=_0x258e06;this[_0x42a137(0x133)]===_0x42a137(0x1a5)&&this[_0x42a137(0x116)]();}[_0x258e06(0x124)](_0x44c2d8){const _0x3e768a=_0x258e06,{presenter:_0x48113b}=_0x44c2d8[_0x3e768a(0x1aa)],_0x263f97=this[_0x3e768a(0x19e)][_0x3e768a(0x161)]();this['_presenter']=_0x48113b,_0x48113b===_0x263f97?(this[_0x3e768a(0x116)](),this[_0x3e768a(0x1a0)]()):this[_0x3e768a(0x133)]!==_0x3e768a(0x184)&&(this[_0x3e768a(0x1ab)](),this['_startFollowing']());}['_fetchOperations'](){const _0x33dca4=_0x258e06,_0x53b06b={'eventID':_0x479a15[_0x33dca4(0x121)]};this[_0x33dca4(0x19e)][_0x33dca4(0x15d)](_0x53b06b,this[_0x33dca4(0x158)]);}['_handleTerminate'](){const _0x247c50=_0x258e06;this[_0x247c50(0x13e)]=null,this[_0x247c50(0x133)]!==_0x247c50(0x14d)&&this[_0x247c50(0x13d)]();}['_handleNewChangeSets'](_0x5e6e11){const _0x5e359c=_0x258e06;if(this[_0x5e359c(0x133)]===_0x5e359c(0x1a5)&&this[_0x5e359c(0x13e)]===_0x5e6e11['data']['memberID']){const _0x1eb865=_0x278421(_0x5e6e11['data'])[_0x5e359c(0x134)][_0x5e359c(0x14a)]()[_0x5e359c(0x17e)](_0x34a45a=>_0x34a45a['id']===_0x34e958['id']);if(_0x1eb865){const _0xf90fc=_0x1eb865[_0x5e359c(0x18c)][_0x5e359c(0x1bb)],_0x2dc432=_0x1eb865['params'][_0x5e359c(0x1b0)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x2b85d9['id'],{'unitId':_0xf90fc,'subUnitId':_0x2dc432},{'fromCollab':!0x0});});}}}[_0x258e06(0x1a0)](){const _0x21fe20=_0x258e06;this[_0x21fe20(0x150)][_0x21fe20(0x13b)](_0x21fe20(0x14d));const _0x1c6c0e=new Map(),_0x3d4be3=this[_0x21fe20(0x132)]=new _0x4d8c75();_0x3d4be3[_0x21fe20(0x182)](_0x3a3481(()=>{const _0x17fac7=_0x21fe20;_0x1c6c0e[_0x17fac7(0x155)](_0x24693d=>_0x24693d[_0x17fac7(0x18a)]()),_0x1c6c0e['clear']();})),_0x3d4be3[_0x21fe20(0x182)](this[_0x21fe20(0x160)][_0x21fe20(0x170)](_0x58b1f2=>{const _0xfe3f6d=_0x21fe20;var _0xc3c074;if(_0x58b1f2[_0xfe3f6d(0x198)]!==_0x14d400['OPERATION']||!this['_liveShareService'][_0xfe3f6d(0x162)](_0x58b1f2['id']))return;const {id:_0x7517de}=_0x58b1f2;let _0x405b5f;_0x1c6c0e[_0xfe3f6d(0x185)](_0x7517de)?_0x405b5f=_0x1c6c0e[_0xfe3f6d(0x18b)](_0x7517de):(_0x405b5f=new _0x2c03bf(),_0x1c6c0e[_0xfe3f6d(0x11d)](_0x7517de,_0x405b5f),_0x405b5f[_0xfe3f6d(0x19f)](_0x2b3990((_0xc3c074=this['_configService'][_0xfe3f6d(0x186)](Ce))!=null?_0xc3c074:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xfe3f6d(0x174)](_0x3835e6=>{const _0x1b0c84=_0xfe3f6d;this['_collabSession'][_0x1b0c84(0x15d)]({'eventID':_0x479a15[_0x1b0c84(0x173)],'data':{'unitID':this['_unitID'],'operations':{[_0x3835e6['id']]:{'id':_0x3835e6['id'],'params':JSON['stringify'](_0x3835e6['params'])}}}},this['_unitID']);})),_0x405b5f[_0xfe3f6d(0x13b)](_0x58b1f2);})),this[_0x21fe20(0x128)][_0x21fe20(0x175)](this[_0x21fe20(0x158)])[_0x21fe20(0x155)](_0x4ec61e=>this[_0x21fe20(0x19e)][_0x21fe20(0x15d)]({'eventID':_0x479a15[_0x21fe20(0x173)],'data':{'unitID':this['_unitID'],'operations':{[_0x4ec61e['id']]:{'id':_0x4ec61e['id'],'params':JSON[_0x21fe20(0x1b7)](_0x4ec61e['params'])}}}},this[_0x21fe20(0x158)]));}[_0x258e06(0x1ab)](){const _0x1ab4f2=_0x258e06;var _0xc8df19;this[_0x1ab4f2(0x150)][_0x1ab4f2(0x13b)](_0x1ab4f2(0x14b)),(_0xc8df19=this['_commandDisposable'])==null||_0xc8df19[_0x1ab4f2(0x138)](),this[_0x1ab4f2(0x132)]=null;}[_0x258e06(0x15c)](){const _0x1bdb8e=_0x258e06;var _0x11b3db;(_0x11b3db=this[_0x1bdb8e(0x132)])==null||_0x11b3db[_0x1bdb8e(0x138)](),this[_0x1bdb8e(0x150)]['next'](_0x1bdb8e(0x1a5));}[_0x258e06(0x13d)](){const _0x393895=_0x258e06;var _0x186282;this[_0x393895(0x150)][_0x393895(0x13b)]('idle'),(_0x186282=this[_0x393895(0x132)])==null||_0x186282[_0x393895(0x138)](),this['_commandDisposable']=null;}[_0x258e06(0x116)](){const _0x1e43df=_0x258e06;var _0x53dd80;this[_0x1e43df(0x150)][_0x1e43df(0x13b)](_0x1e43df(0x184)),(_0x53dd80=this[_0x1e43df(0x132)])==null||_0x53dd80[_0x1e43df(0x138)]();}[_0x258e06(0x1ac)](_0x38d883){const _0x17aba9=_0x258e06;if([_0x17aba9(0x14d),_0x17aba9(0x184),_0x17aba9(0x165)][_0x17aba9(0x1b4)](this[_0x17aba9(0x133)])||!_0x38d883['data'][_0x17aba9(0x187)]||_0x38d883[_0x17aba9(0x1aa)][_0x17aba9(0x187)]===this['_collabSession'][_0x17aba9(0x161)]())return;this[_0x17aba9(0x133)]===_0x17aba9(0x14b)&&this[_0x17aba9(0x15c)]();const _0x4a9ba6=_0x38d883[_0x17aba9(0x1aa)][_0x17aba9(0x130)];Object[_0x17aba9(0x194)](_0x4a9ba6)['forEach'](_0x3010cb=>{const _0xa39adf=_0x17aba9;this['_commandService']['executeCommand'](_0x3010cb['id'],_0x3010cb[_0xa39adf(0x18c)]?JSON[_0xa39adf(0x137)](_0x3010cb[_0xa39adf(0x18c)]):null,{'fromCollab':!0x0});});}[_0x258e06(0x199)](){const _0x5840c2=_0x258e06;var _0x3f9aa2;this[_0x5840c2(0x150)][_0x5840c2(0x13b)]('offline'),(_0x3f9aa2=this['_commandDisposable'])==null||_0x3f9aa2[_0x5840c2(0x138)]();}[_0x258e06(0x127)](){const _0x144381=_0x258e06;this[_0x144381(0x150)][_0x144381(0x13b)](_0x144381(0x14b)),this[_0x144381(0x1b1)]();}};N=Y([_(0x2,_0x5aa847),_(0x3,_0x78ae44(L)),_(0x4,_0x4f1d1d)],N);function Le(){const _0x244db9=_0x258e06,_0x4dbb9b=_0x37223d(S),_0x4dbb9e=_0x37223d(_0x4da99a),_0x2c20dc=_0x5b2abe(()=>_0x4dbb9e['getCurrentTypeOfUnit$'](_0x35559f[_0x244db9(0x120)]),void 0x0,!0x1,[]),[_0x38a103,_0x1e71d1]=_0x4104d8(null),[_0x568087,_0x59bcb3]=_0x4104d8(c[_0x244db9(0x118)]),_0x1ed7e9=_0x2baf0a(null);return _0x3cf0aa(()=>(_0x2c20dc&&_0x4dbb9b[_0x244db9(0x1ad)](_0x2c20dc['getUnitId']())[_0x244db9(0x19b)](_0x86b729=>{const _0x26b7a1=_0x244db9;_0x1e71d1(_0x86b729),_0x1ed7e9[_0x26b7a1(0x11c)]=_0x86b729['status$'][_0x26b7a1(0x174)](_0x424f76=>{_0x59bcb3(_0x424f76);});}),()=>{const _0x54e7dd=_0x244db9;var _0xdf335b;(_0xdf335b=_0x1ed7e9[_0x54e7dd(0x11c)])==null||_0xdf335b[_0x54e7dd(0x171)](),_0x1ed7e9[_0x54e7dd(0x11c)]=null;}),[_0x2c20dc,_0x4dbb9b]),_0x38a103?_0x4ed4a5(_0x35fe18,{'align':'end','disabled':_0x568087===c[_0x244db9(0x152)],'className':_0x244db9(0x197),'overlay':_0x4ed4a5(Re,{'status':_0x568087,'coordinator':_0x38a103}),'children':_0x4ed4a5(_0x244db9(0x17b),{'className':_0x5580d9(_0x244db9(0x154),{'univer-cursor-not-allowed':_0x568087===c[_0x244db9(0x152)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x568087!==c[_0x244db9(0x152)]}),'type':_0x244db9(0x17b),'children':_0x4ed4a5(W,{'className':_0x244db9(0x139)})})}):null;}function Re(_0x3cbef7){const _0x5fccac=_0x258e06,{status:_0x5a50f1,coordinator:_0x155c72}=_0x3cbef7;switch(_0x5a50f1){case c[_0x5fccac(0x118)]:return _0x4ed4a5($e,{'coordinator':_0x155c72});case c[_0x5fccac(0x17a)]:return _0x4ed4a5(xe,{'coordinator':_0x155c72});case c[_0x5fccac(0x1c1)]:return _0x4ed4a5(Pe,{'coordinator':_0x155c72});case c['OFFLINE']:return _0x4ed4a5(Te,{});case c[_0x5fccac(0x129)]:return _0x4ed4a5(Ae,{'coordinator':_0x155c72});default:return null;}}function $e(_0x191a72){const _0x3a0e02=_0x258e06,{coordinator:_0x4870cf}=_0x191a72;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5('div',{'className':_0x3a0e02(0x143),'children':_0x3a0e02(0x12a)}),_0x4ed4a5(_0x476c51,{'onClick':()=>_0x4870cf[_0x3a0e02(0x12e)](),'children':_0x3a0e02(0x123)})]});}function xe(_0x1163a7){const _0x2fbea5=_0x258e06,{coordinator:_0x54337d}=_0x1163a7;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5(_0x2fbea5(0x196),{'className':_0x2fbea5(0x143),'children':_0x2fbea5(0x16c)}),_0x4ed4a5(_0x476c51,{'onClick':()=>_0x54337d[_0x2fbea5(0x136)](),'children':_0x2fbea5(0x153)})]});}function Pe(_0x5f3b86){const _0x424596=_0x258e06,{coordinator:_0x2d277c}=_0x5f3b86;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5('div',{'className':_0x424596(0x143),'children':_0x424596(0x19d)}),_0x4ed4a5(_0x476c51,{'variant':_0x424596(0x1b9),'onClick':()=>_0x2d277c[_0x424596(0x18f)](),'children':_0x424596(0x192)})]});}function Ae(_0x2c9171){const _0x1c77c3=_0x258e06,{coordinator:_0x172f3a}=_0x2c9171;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5(_0x1c77c3(0x196),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1c77c3(0x15b)}),_0x4ed4a5(_0x476c51,{'variant':_0x1c77c3(0x1a2),'onClick':()=>_0x172f3a[_0x1c77c3(0x151)](),'children':_0x1c77c3(0x142)})]});}function Te(){const _0x32c34a=_0x258e06;return _0x4ed4a5(_0x18389c,{'children':_0x32c34a(0x141)});}var Fe=Object[_0x258e06(0x13c)],He=(_0x4bb4e6,_0x1e6350,_0x49bdb0,_0x5cd775)=>{for(var _0x4a7a59=_0x5cd775>0x1?void 0x0:_0x5cd775?Fe(_0x1e6350,_0x49bdb0):_0x1e6350,_0x549473=_0x4bb4e6['length']-0x1,_0x386e74;_0x549473>=0x0;_0x549473--)(_0x386e74=_0x4bb4e6[_0x549473])&&(_0x4a7a59=_0x386e74(_0x4a7a59)||_0x4a7a59);return _0x4a7a59;},A=(_0x46c54f,_0x3f7928)=>(_0x39a916,_0x44a92f)=>_0x3f7928(_0x39a916,_0x44a92f,_0x46c54f);let m=class extends _0x324efe{constructor(_0x4337ee,_0x25cfc8){const _0x14c837=_0x258e06;super(),this[_0x14c837(0x19a)]=_0x4337ee,this['_uiPartsService']=_0x25cfc8,this[_0x14c837(0x176)]();}['_mountLiveShare'](){const _0x4e1fed=_0x258e06;this[_0x4e1fed(0x191)](this[_0x4e1fed(0x140)][_0x4e1fed(0x177)](_0x28e9dd['HEADER_MENU'],()=>_0x1af1ba(Le,this[_0x4e1fed(0x19a)])));}};m=He([A(0x0,_0x78ae44(_0x2d4c16)),A(0x1,_0x156e10)],m);const ye='live-share.config',T={};var Ue=Object[_0x258e06(0x13c)],Ve=(_0x4eb4d5,_0x20d7b4,_0x1e97d4,_0x519589)=>{const _0x25aab6=_0x258e06;for(var _0xb77ca4=_0x519589>0x1?void 0x0:_0x519589?Ue(_0x20d7b4,_0x1e97d4):_0x20d7b4,_0x5e0473=_0x4eb4d5[_0x25aab6(0x125)]-0x1,_0x47aa4d;_0x5e0473>=0x0;_0x5e0473--)(_0x47aa4d=_0x4eb4d5[_0x5e0473])&&(_0xb77ca4=_0x47aa4d(_0xb77ca4)||_0xb77ca4);return _0xb77ca4;},je=(_0x46d100,_0x7266b1)=>(_0x2d2ab9,_0x51a24f)=>_0x7266b1(_0x2d2ab9,_0x51a24f,_0x46d100);let I=class extends _0x324efe{constructor(_0x5bfcc1){const _0xd97d64=_0x258e06;super(),this[_0xd97d64(0x128)]=_0x5bfcc1,this[_0xd97d64(0x13f)]();}[_0x258e06(0x13f)](){const _0x35b1fd=_0x258e06;[_0x18b166['id'],_0x3e75bb['id'],_0x2b85d9['id']][_0x35b1fd(0x155)](_0xde58c9=>{const _0x28dd78=_0x35b1fd;this[_0x28dd78(0x191)](this[_0x28dd78(0x128)][_0x28dd78(0x1b3)](_0xde58c9));});}};I=Ve([je(0x0,_0x78ae44(L))],I);var Me=Object[_0x258e06(0x1bf)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x41311e,_0x44da24,_0x568e56)=>_0x44da24 in _0x41311e?Me(_0x41311e,_0x44da24,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x568e56}):_0x41311e[_0x44da24]=_0x568e56,We=(_0x516bc3,_0x1efc64,_0x37be38,_0x3b3e61)=>{const _0x2e90a7=_0x258e06;for(var _0x256abc=_0x3b3e61>0x1?void 0x0:_0x3b3e61?ke(_0x1efc64,_0x37be38):_0x1efc64,_0x3a05e3=_0x516bc3[_0x2e90a7(0x125)]-0x1,_0x3e5ef9;_0x3a05e3>=0x0;_0x3a05e3--)(_0x3e5ef9=_0x516bc3[_0x3a05e3])&&(_0x256abc=_0x3e5ef9(_0x256abc)||_0x256abc);return _0x256abc;},F=(_0x3abf12,_0x293639)=>(_0x51ec38,_0xd30722)=>_0x293639(_0x51ec38,_0xd30722,_0x3abf12),B=(_0x446a75,_0x392a5a,_0x40b314)=>Ge(_0x446a75,typeof _0x392a5a!=_0x258e06(0x12d)?_0x392a5a+'':_0x392a5a,_0x40b314);const Ye=_0x258e06(0x180);let b=class extends _0x3ffe0c{constructor(_0x4e9c1d=T,_0x19abc6,_0x254dee){const _0x8b8188=_0x258e06;super(),this['_config']=_0x4e9c1d,this[_0x8b8188(0x19a)]=_0x19abc6,this[_0x8b8188(0x1b6)]=_0x254dee;const {..._0x5a654}=_0x1fe50c({},T,this[_0x8b8188(0x149)]);this['_configService'][_0x8b8188(0x16f)](ye,_0x5a654);}[_0x258e06(0x1bc)](){const _0xc28f58=_0x258e06;_0x2fbe26(this[_0xc28f58(0x19a)],_0x23ef20([[L],[S],[I],[m]],this[_0xc28f58(0x149)][_0xc28f58(0x169)])),_0x3e4dcd(this[_0xc28f58(0x19a)],[[I]]);}['onRendered'](){const _0x5da499=_0x258e06;_0x3e4dcd(this[_0x5da499(0x19a)],[[m]]);}};B(b,_0x258e06(0x198),_0x35559f[_0x258e06(0x172)]),B(b,_0x258e06(0x117),Ye),b=We([_0x42a005(_0x285791),F(0x1,_0x78ae44(_0x2d4c16)),F(0x2,_0x5aa847)],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 _0x5c891b=_0x3f41;(function(_0x5d1051,_0xfe1fe5){const _0x1c0d34=_0x3f41,_0x307f7c=_0x5d1051();while(!![]){try{const _0x1f14fa=parseInt(_0x1c0d34(0x16d))/0x1+parseInt(_0x1c0d34(0x132))/0x2*(-parseInt(_0x1c0d34(0x16b))/0x3)+parseInt(_0x1c0d34(0x125))/0x4+parseInt(_0x1c0d34(0x11b))/0x5*(parseInt(_0x1c0d34(0xe0))/0x6)+parseInt(_0x1c0d34(0xe7))/0x7*(-parseInt(_0x1c0d34(0x11f))/0x8)+parseInt(_0x1c0d34(0xed))/0x9+-parseInt(_0x1c0d34(0xe3))/0xa;if(_0x1f14fa===_0xfe1fe5)break;else _0x307f7c['push'](_0x307f7c['shift']());}catch(_0x1259e6){_0x307f7c['push'](_0x307f7c['shift']());}}}(_0x13cf,0xc9c7a));var J=Object[_0x5c891b(0x11c)],K=(_0x3d3763,_0x361fb1,_0x386156)=>_0x361fb1 in _0x3d3763?J(_0x3d3763,_0x361fb1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x386156}):_0x3d3763[_0x361fb1]=_0x386156,u=(_0x3be939,_0x82528e,_0x2ae74c)=>K(_0x3be939,typeof _0x82528e!=_0x5c891b(0x149)?_0x82528e+'':_0x82528e,_0x2ae74c);import{Disposable as _0x431729,toDisposable as _0x2a75a6,IUniverInstanceService as _0xb62e9f,Inject as _0x5c0b1a,Injector as _0x122406,IConfigService as _0x3ef321,ICommandService as _0x113a75,RxDisposable as _0x2994f4,UniverInstanceType as _0x4e9761,DisposableCollection as _0x35b926,CommandType as _0x419595,DependentOn as _0x42d09e,Plugin as _0x3414a0,merge as _0x13e6df,registerDependencies as _0x12f174,mergeOverrideWithDependencies as _0x3ea2c1,touchDependencies as _0x299450}from'@univerjs/core';import{useDependency as _0x59cba9,useObservable as _0x172d74,IUIPartsService as _0x150b13,BuiltInUIPart as _0x348417,connectInjector as _0x6df76e}from'@univerjs/ui';import{jsx as _0x22293e,jsxs as _0xc16c99,Fragment as _0x4ad7d5}from'react/jsx-runtime';import{Dropdown as _0x55a60a,clsx as _0x391744,Button as _0x5aedf4}from'@univerjs/design';import{useRef as _0x567279,createElement as _0x21df1f,forwardRef as _0x2542a7,useState as _0x8acbe5,useEffect as _0xb9123a}from'react';import{CollaborationEvent as _0x5b0c32,parseProtocolChangeset as _0x37c054}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1ee3d1,SessionStatus as _0x4b1079,UniverCollaborationClientPlugin as _0x5c81aa}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x36d1bf,SetWorksheetActiveOperation as _0x5564c8}from'@univerjs/sheets';import{BehaviorSubject as _0x5f2c0e,Subject as _0x4d0e55}from'rxjs';import{takeUntil as _0x2a74ec,throttleTime as _0x3d3727}from'rxjs/operators';function _0x3f41(_0x379308,_0x52df29){_0x379308=_0x379308-0xda;const _0x13cf10=_0x13cf();let _0x3f41af=_0x13cf10[_0x379308];return _0x3f41af;}import{SetZoomRatioOperation as _0x10142f,SetScrollOperation as _0x57bc22}from'@univerjs/sheets-ui';function k({ref:_0x8b6fec,..._0x5a2708}){const _0x79a618=_0x5c891b,{icon:_0x10bfca,id:_0xd3c020,className:_0x219571,extend:_0x1eb486,..._0x30e0fb}=_0x5a2708,_0x45676b=('univerjs-icon\x20univerjs-icon-'+_0xd3c020+'\x20'+(_0x219571||''))[_0x79a618(0x147)](),_0x4aab8e=_0x567279('_'+Oe());return G(_0x10bfca,''+_0xd3c020,{'defIds':_0x10bfca['defIds'],'idSuffix':_0x4aab8e[_0x79a618(0xf5)]},{'ref':_0x8b6fec,'className':_0x45676b,..._0x30e0fb},_0x1eb486);}function G(_0x5e72b2,_0x3a6d66,_0xe48b7f,_0x2c8be3,_0x36a5c3){const _0xc17b58=_0x5c891b;return _0x21df1f(_0x5e72b2[_0xc17b58(0x179)],{'key':_0x3a6d66,...be(_0x5e72b2,_0xe48b7f,_0x36a5c3),..._0x2c8be3},(Ee(_0x5e72b2,_0xe48b7f)[_0xc17b58(0x102)]||[])['map']((_0x11d941,_0x31303a)=>G(_0x11d941,_0x3a6d66+'-'+_0x5e72b2[_0xc17b58(0x179)]+'-'+_0x31303a,_0xe48b7f,void 0x0,_0x36a5c3)));}function be(_0x3025f5,_0x256acf,_0x4810c5){const _0x4d9352=_0x5c891b,_0x23a1da={..._0x3025f5[_0x4d9352(0x148)]};_0x4810c5!=null&&_0x4810c5['colorChannel1']&&_0x23a1da[_0x4d9352(0x154)]==='colorChannel1'&&(_0x23a1da[_0x4d9352(0x154)]=_0x4810c5['colorChannel1']),_0x3025f5[_0x4d9352(0x179)]===_0x4d9352(0xeb)&&_0x23a1da['id']&&(_0x23a1da['id']=_0x23a1da['id']+_0x256acf[_0x4d9352(0x14d)]),Object[_0x4d9352(0xf2)](_0x23a1da)[_0x4d9352(0x128)](([_0xc2c9b7,_0x26bd69])=>{const _0x3f7b6f=_0x4d9352;_0xc2c9b7===_0x3f7b6f(0xeb)&&typeof _0x26bd69=='string'&&(_0x23a1da[_0xc2c9b7]=_0x26bd69['replace'](/url\(#(.*)\)/,_0x3f7b6f(0xf1)+_0x256acf['idSuffix']+')'));});const {defIds:_0x8ee528}=_0x256acf;return!_0x8ee528||_0x8ee528['length']===0x0||(_0x3025f5[_0x4d9352(0x179)]==='use'&&_0x23a1da[_0x4d9352(0x12d)]&&(_0x23a1da[_0x4d9352(0x12d)]=_0x23a1da[_0x4d9352(0x12d)]+_0x256acf[_0x4d9352(0x14d)]),Object['entries'](_0x23a1da)[_0x4d9352(0x128)](([_0x321e28,_0x8e1dc3])=>{const _0x279893=_0x4d9352;typeof _0x8e1dc3==_0x279893(0x126)&&(_0x23a1da[_0x321e28]=_0x8e1dc3['replace'](/url\(#(.*)\)/,_0x279893(0xf1)+_0x256acf[_0x279893(0x14d)]+')'));})),_0x23a1da;}function Ee(_0x157426,_0x4cd462){const _0x820846=_0x5c891b;var _0xabca4d;const {defIds:_0x5c5024}=_0x4cd462;return!_0x5c5024||_0x5c5024[_0x820846(0x11e)]===0x0?_0x157426:_0x157426[_0x820846(0x179)]===_0x820846(0x150)&&((_0xabca4d=_0x157426['children'])!=null&&_0xabca4d[_0x820846(0x11e)])?{..._0x157426,'children':_0x157426['children'][_0x820846(0x171)](_0x24d80a=>typeof _0x24d80a[_0x820846(0x148)]['id']==_0x820846(0x126)&&_0x5c5024&&_0x5c5024[_0x820846(0x15d)](_0x24d80a['attrs']['id'])?{..._0x24d80a,'attrs':{..._0x24d80a[_0x820846(0x148)],'id':_0x24d80a[_0x820846(0x148)]['id']+_0x4cd462[_0x820846(0x14d)]}}:_0x24d80a)}:_0x157426;}function Oe(){const _0x3b67fd=_0x5c891b;return Math[_0x3b67fd(0x114)]()[_0x3b67fd(0x10c)](0x24)[_0x3b67fd(0xdf)](0x2,0x8);}k[_0x5c891b(0x12e)]=_0x5c891b(0xec);const we={'tag':'svg','attrs':{'xmlns':_0x5c891b(0x152),'fill':'none','viewBox':_0x5c891b(0x120),'width':_0x5c891b(0x134),'height':_0x5c891b(0x134)},'children':[{'tag':'path','attrs':{'fill':_0x5c891b(0xde),'d':_0x5c891b(0xee)}},{'tag':'path','attrs':{'fill':_0x5c891b(0xde),'d':_0x5c891b(0x17c),'fillRule':_0x5c891b(0x109),'clipRule':_0x5c891b(0x109)}}]},W=_0x2542a7(function(_0x38b9c4,_0x1007a9){const _0x55d74b=_0x5c891b;return _0x21df1f(k,Object[_0x55d74b(0x14f)]({},_0x38b9c4,{'id':_0x55d74b(0x121),'ref':_0x1007a9,'icon':we}));});W[_0x5c891b(0x12e)]=_0x5c891b(0x116);class L extends _0x431729{constructor(){const _0x4ac952=_0x5c891b;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x4ac952(0xf6),new Set());}['registerSharedOperation'](_0x20ac42){const _0x5c9715=_0x5c891b;return this[_0x5c9715(0x13c)][_0x5c9715(0x139)](_0x20ac42),_0x2a75a6(()=>this[_0x5c9715(0x13c)][_0x5c9715(0x135)](_0x20ac42));}[_0x5c891b(0x168)](_0x3fc39d){const _0x4383f1=_0x5c891b;return this[_0x4383f1(0xf6)][_0x4383f1(0x139)](_0x3fc39d),_0x2a75a6(()=>this[_0x4383f1(0xf6)]['delete'](_0x3fc39d));}['shouldShareOperation'](_0x49df9e){const _0x32be29=_0x5c891b;return this[_0x32be29(0x13c)][_0x32be29(0x166)](_0x49df9e);}['getInitialStates'](_0x3f85d0){const _0x1ff91f=_0x5c891b;return Array[_0x1ff91f(0x129)](this[_0x1ff91f(0xf6)])['map'](_0x25030f=>_0x25030f(_0x3f85d0));}}var Ne=Object[_0x5c891b(0x12a)],Y=(_0x364232,_0x59ffda,_0x4bc055,_0x1453d8)=>{const _0x396d74=_0x5c891b;for(var _0x4f0f3b=_0x1453d8>0x1?void 0x0:_0x1453d8?Ne(_0x59ffda,_0x4bc055):_0x59ffda,_0x371ee7=_0x364232[_0x396d74(0x11e)]-0x1,_0x26a79e;_0x371ee7>=0x0;_0x371ee7--)(_0x26a79e=_0x364232[_0x371ee7])&&(_0x4f0f3b=_0x26a79e(_0x4f0f3b)||_0x4f0f3b);return _0x4f0f3b;},_=(_0x3eec54,_0x2989b4)=>(_0x36ecad,_0x2d3a49)=>_0x2989b4(_0x36ecad,_0x2d3a49,_0x3eec54);let S=class extends _0x2994f4{constructor(_0x10ecb8,_0x274e6b,_0x7e5ae4){const _0x1de7a9=_0x5c891b;super(),u(this,_0x1de7a9(0x16e),new Map()),(this['_univerInstanceService']=_0x10ecb8,this[_0x1de7a9(0x15f)]=_0x274e6b,this[_0x1de7a9(0x10b)]=_0x7e5ae4,this[_0x1de7a9(0x142)]());}async['getLiveShareCoordinator'](_0x50c6ea){const _0x2f5d15=_0x5c891b;return this[_0x2f5d15(0x16e)][_0x2f5d15(0x166)](_0x50c6ea)||await this[_0x2f5d15(0xff)](_0x50c6ea),this[_0x2f5d15(0x16e)]['get'](_0x50c6ea);}[_0x5c891b(0x118)](_0x48b606){const _0x57ef09=_0x5c891b;var _0x38d21e;return(_0x38d21e=this[_0x57ef09(0x16e)][_0x57ef09(0xda)](_0x48b606))!=null?_0x38d21e:null;}[_0x5c891b(0x142)](){const _0x225e30=_0x5c891b;this['_univerInstanceService'][_0x225e30(0xe9)](_0x4e9761[_0x225e30(0xdb)])['pipe'](_0x2a74ec(this[_0x225e30(0x119)]))['subscribe'](async _0x4abc25=>{const _0x52a674=_0x225e30,_0x44d1de=_0x4abc25[_0x52a674(0x155)]();this[_0x52a674(0x16e)][_0x52a674(0x166)](_0x44d1de)||this['_startLiveShareCoordinator'](_0x44d1de);}),this[_0x225e30(0x173)][_0x225e30(0x146)](_0x4e9761[_0x225e30(0xdb)])['pipe'](_0x2a74ec(this[_0x225e30(0x119)]))['subscribe'](_0xdb90e7=>{const _0x5d5158=_0x225e30,_0x1991ba=_0xdb90e7[_0x5d5158(0x155)](),_0x3d1f6b=this[_0x5d5158(0x16e)][_0x5d5158(0xda)](_0x1991ba);_0x3d1f6b==null||_0x3d1f6b[_0x5d5158(0x15c)]();});}async['_startLiveShareCoordinator'](_0x550255){const _0x3ca347=_0x5c891b,_0x3e6164=await this['_collabSessionService'][_0x3ca347(0x10a)](_0x550255),_0x428235=this[_0x3ca347(0x15f)][_0x3ca347(0x156)](N,_0x550255,_0x3e6164);return _0x428235[_0x3ca347(0x11d)](),this['_entities'][_0x3ca347(0x13e)](_0x550255,_0x428235),_0x428235;}};S=Y([_(0x0,_0xb62e9f),_(0x1,_0x5c0b1a(_0x122406)),_(0x2,_0x5c0b1a(_0x1ee3d1))],S);var c=(_0x3621f8=>(_0x3621f8['OFFLINE']=_0x5c891b(0x14a),_0x3621f8[_0x5c891b(0x127)]=_0x5c891b(0x158),_0x3621f8[_0x5c891b(0x122)]=_0x5c891b(0x160),_0x3621f8[_0x5c891b(0x13f)]=_0x5c891b(0x111),_0x3621f8[_0x5c891b(0x13a)]=_0x5c891b(0xe8),_0x3621f8))(c||{});const Ce=_0x5c891b(0x107),De=0xc8;let N=class extends _0x2994f4{constructor(_0x145cd3,_0x59756e,_0x1daa51,_0xcd7384,_0x19eb6e){const _0x56fde6=_0x5c891b;super(),u(this,_0x56fde6(0xe5),new _0x5f2c0e(_0x56fde6(0x158))),u(this,_0x56fde6(0x174),this[_0x56fde6(0xe5)][_0x56fde6(0x104)]()),u(this,_0x56fde6(0x142),!0x1),u(this,'_commandDisposable',null),u(this,_0x56fde6(0x145),null),(this[_0x56fde6(0x16f)]=_0x145cd3,this[_0x56fde6(0x117)]=_0x59756e,this[_0x56fde6(0x14b)]=_0x1daa51,this[_0x56fde6(0x143)]=_0xcd7384,this[_0x56fde6(0x11a)]=_0x19eb6e);}get[_0x5c891b(0x101)](){const _0x3f6c9d=_0x5c891b;return this[_0x3f6c9d(0xe5)][_0x3f6c9d(0x15e)]();}[_0x5c891b(0x15c)](){const _0x35cd45=_0x5c891b;var _0x2c8268;(_0x2c8268=this['_commandDisposable'])==null||_0x2c8268[_0x35cd45(0x15c)](),this[_0x35cd45(0xe5)][_0x35cd45(0xf3)]('idle'),this[_0x35cd45(0xe5)][_0x35cd45(0xfe)]();}[_0x5c891b(0x10d)](){return this['_status'];}[_0x5c891b(0x11d)](){const _0x48eb97=_0x5c891b;this[_0x48eb97(0x142)]||(this[_0x48eb97(0x142)]=!0x0,this['_collabSession']['sessionStatus$'][_0x48eb97(0x167)](_0x2a74ec(this[_0x48eb97(0x119)]))[_0x48eb97(0x140)](_0x356bdd=>{const _0x459eb7=_0x48eb97;switch(_0x356bdd){case _0x4b1079[_0x459eb7(0x165)]:this['_handleOffline']();break;case _0x4b1079[_0x459eb7(0x133)]:this['_handleOnline']();break;}}),this[_0x48eb97(0x117)]['event$']['pipe'](_0x2a74ec(this[_0x48eb97(0x119)]))[_0x48eb97(0x140)](_0x3163d5=>{const _0x9b9a40=_0x48eb97,{eventID:_0x29ffc5}=_0x3163d5;switch(_0x29ffc5){case _0x5b0c32[_0x9b9a40(0x151)]:this[_0x9b9a40(0x10e)](_0x3163d5);break;case _0x5b0c32[_0x9b9a40(0x175)]:this['_handleOperation'](_0x3163d5);break;case _0x5b0c32[_0x9b9a40(0xea)]:this[_0x9b9a40(0xfb)]();break;case _0x5b0c32['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x3163d5);break;}}));}['tryStartPresenting'](){const _0x115a56=_0x5c891b;this[_0x115a56(0x117)][_0x115a56(0xfc)]({'eventID':_0x5b0c32[_0x115a56(0xdc)],'data':{'unitID':this['_unitID'],'userID':this[_0x115a56(0x117)][_0x115a56(0x13b)]()}},this[_0x115a56(0x16f)]);}[_0x5c891b(0x16a)](){const _0x3a4e92=_0x5c891b;this[_0x3a4e92(0x101)]===_0x3a4e92(0xe8)&&(this[_0x3a4e92(0xe5)][_0x3a4e92(0xf3)]('idle'),this[_0x3a4e92(0x117)][_0x3a4e92(0xfc)]({'eventID':_0x5b0c32['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x3a4e92(0x16f)]}},this[_0x3a4e92(0x16f)]));}[_0x5c891b(0xe1)](){const _0xae92a2=_0x5c891b;this[_0xae92a2(0x101)]===_0xae92a2(0x111)&&(this[_0xae92a2(0xe5)][_0xae92a2(0xf3)](_0xae92a2(0x160)),this[_0xae92a2(0x12c)]());}['stopFollowing'](){const _0x2d5d90=_0x5c891b;this['_status']===_0x2d5d90(0x160)&&this[_0x2d5d90(0xe4)]();}[_0x5c891b(0x10e)](_0x433812){const _0x17e494=_0x5c891b,{presenter:_0x40ddbf}=_0x433812[_0x17e494(0x17d)],_0x242d4a=this[_0x17e494(0x117)][_0x17e494(0x13b)]();this[_0x17e494(0x145)]=_0x40ddbf,_0x40ddbf===_0x242d4a?(this[_0x17e494(0xe4)](),this[_0x17e494(0x153)]()):this[_0x17e494(0x101)]!==_0x17e494(0x111)&&(this['_stopPresenting'](),this[_0x17e494(0x12c)]());}[_0x5c891b(0x12b)](){const _0x5a4cd1=_0x5c891b,_0x18ffe8={'eventID':_0x5b0c32['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x5a4cd1(0xfc)](_0x18ffe8,this[_0x5a4cd1(0x16f)]);}[_0x5c891b(0xfb)](){const _0xe4fbcc=_0x5c891b;this[_0xe4fbcc(0x145)]=null,this[_0xe4fbcc(0x101)]!=='presenting'&&this[_0xe4fbcc(0xf4)]();}[_0x5c891b(0xfd)](_0x38a7fc){const _0xcb3dce=_0x5c891b;if(this[_0xcb3dce(0x101)]===_0xcb3dce(0x160)&&this[_0xcb3dce(0x145)]===_0x38a7fc['data'][_0xcb3dce(0x115)]){const _0x35ce9f=_0x37c054(_0x38a7fc[_0xcb3dce(0x17d)])[_0xcb3dce(0x15a)]['reverse']()['find'](_0x53fda1=>_0x53fda1['id']===_0x36d1bf['id']);if(_0x35ce9f){const _0x2b5f3b=_0x35ce9f[_0xcb3dce(0x16c)][_0xcb3dce(0x162)],_0x4213be=_0x35ce9f[_0xcb3dce(0x16c)][_0xcb3dce(0x124)]['id'];setTimeout(()=>{const _0xf3faf9=_0xcb3dce;this['_commandService'][_0xf3faf9(0x161)](_0x5564c8['id'],{'unitId':_0x2b5f3b,'subUnitId':_0x4213be},{'fromCollab':!0x0});});}}}[_0x5c891b(0x153)](){const _0x392112=_0x5c891b;this[_0x392112(0xe5)]['next'](_0x392112(0xe8));const _0x76b929=new Map(),_0x207b17=this[_0x392112(0xf9)]=new _0x35b926();_0x207b17[_0x392112(0x139)](_0x2a75a6(()=>{const _0x425e0f=_0x392112;_0x76b929[_0x425e0f(0x128)](_0x47a59a=>_0x47a59a['complete']()),_0x76b929[_0x425e0f(0x17b)]();})),_0x207b17[_0x392112(0x139)](this[_0x392112(0x11a)][_0x392112(0x14c)](_0x35a3c8=>{const _0x4b7eee=_0x392112;var _0x1de7b7;if(_0x35a3c8[_0x4b7eee(0x163)]!==_0x419595[_0x4b7eee(0x178)]||!this[_0x4b7eee(0x143)]['shouldShareOperation'](_0x35a3c8['id']))return;const {id:_0x252f25}=_0x35a3c8;let _0x2fc419;_0x76b929[_0x4b7eee(0x166)](_0x252f25)?_0x2fc419=_0x76b929[_0x4b7eee(0xda)](_0x252f25):(_0x2fc419=new _0x4d0e55(),_0x76b929[_0x4b7eee(0x13e)](_0x252f25,_0x2fc419),_0x2fc419[_0x4b7eee(0x167)](_0x3d3727((_0x1de7b7=this['_configService'][_0x4b7eee(0x15b)](Ce))!=null?_0x1de7b7:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4b7eee(0x140)](_0x35a763=>{const _0x2a9baa=_0x4b7eee;this[_0x2a9baa(0x117)][_0x2a9baa(0xfc)]({'eventID':_0x5b0c32[_0x2a9baa(0x175)],'data':{'unitID':this[_0x2a9baa(0x16f)],'operations':{[_0x35a763['id']]:{'id':_0x35a763['id'],'params':JSON[_0x2a9baa(0x137)](_0x35a763['params'])}}}},this['_unitID']);})),_0x2fc419['next'](_0x35a3c8);})),this[_0x392112(0x143)][_0x392112(0x103)](this['_unitID'])['forEach'](_0x151742=>this[_0x392112(0x117)][_0x392112(0xfc)]({'eventID':_0x5b0c32[_0x392112(0x175)],'data':{'unitID':this['_unitID'],'operations':{[_0x151742['id']]:{'id':_0x151742['id'],'params':JSON[_0x392112(0x137)](_0x151742['params'])}}}},this[_0x392112(0x16f)]));}[_0x5c891b(0x172)](){const _0x399bee=_0x5c891b;var _0x278625;this[_0x399bee(0xe5)][_0x399bee(0xf3)](_0x399bee(0x158)),(_0x278625=this[_0x399bee(0xf9)])==null||_0x278625[_0x399bee(0x15c)](),this[_0x399bee(0xf9)]=null;}[_0x5c891b(0x12c)](){const _0xd0efcb=_0x5c891b;var _0x512c79;(_0x512c79=this[_0xd0efcb(0xf9)])==null||_0x512c79['dispose'](),this[_0xd0efcb(0xe5)][_0xd0efcb(0xf3)](_0xd0efcb(0x160));}[_0x5c891b(0xf4)](){const _0x3b9709=_0x5c891b;var _0xe1931b;this[_0x3b9709(0xe5)][_0x3b9709(0xf3)](_0x3b9709(0x158)),(_0xe1931b=this[_0x3b9709(0xf9)])==null||_0xe1931b[_0x3b9709(0x15c)](),this['_commandDisposable']=null;}[_0x5c891b(0xe4)](){const _0x2b35fc=_0x5c891b;var _0x88a924;this[_0x2b35fc(0xe5)][_0x2b35fc(0xf3)]('not-following'),(_0x88a924=this[_0x2b35fc(0xf9)])==null||_0x88a924[_0x2b35fc(0x15c)]();}[_0x5c891b(0xf7)](_0x537ffc){const _0x5a41e4=_0x5c891b;if(['presenting','not-following','offline'][_0x5a41e4(0x15d)](this[_0x5a41e4(0x101)])||!_0x537ffc[_0x5a41e4(0x17d)]['presenter']||_0x537ffc[_0x5a41e4(0x17d)][_0x5a41e4(0x157)]===this[_0x5a41e4(0x117)][_0x5a41e4(0x13b)]())return;this[_0x5a41e4(0x101)]===_0x5a41e4(0x158)&&this[_0x5a41e4(0x12c)]();const _0x358c8d=_0x537ffc[_0x5a41e4(0x17d)]['operations'];Object[_0x5a41e4(0xef)](_0x358c8d)['forEach'](_0x4b87d3=>{const _0x546da0=_0x5a41e4;this[_0x546da0(0x11a)][_0x546da0(0x161)](_0x4b87d3['id'],_0x4b87d3['params']?JSON[_0x546da0(0x164)](_0x4b87d3[_0x546da0(0x16c)]):null,{'fromCollab':!0x0});});}[_0x5c891b(0x112)](){const _0x7712fe=_0x5c891b;var _0x5e6997;this['_status$'][_0x7712fe(0xf3)](_0x7712fe(0x14a)),(_0x5e6997=this['_commandDisposable'])==null||_0x5e6997[_0x7712fe(0x15c)]();}[_0x5c891b(0x110)](){const _0x24ed7c=_0x5c891b;this[_0x24ed7c(0xe5)][_0x24ed7c(0xf3)]('idle'),this[_0x24ed7c(0x12b)]();}};N=Y([_(0x2,_0x3ef321),_(0x3,_0x5c0b1a(L)),_(0x4,_0x113a75)],N);function Le(){const _0x2e8662=_0x5c891b,_0x46846f=_0x59cba9(S),_0x29bfb9=_0x59cba9(_0xb62e9f),_0xb80694=_0x172d74(()=>_0x29bfb9[_0x2e8662(0x130)](_0x4e9761[_0x2e8662(0xdb)]),void 0x0,!0x1,[]),[_0x107360,_0x17d935]=_0x8acbe5(null),[_0x11ea72,_0x5b4511]=_0x8acbe5(c[_0x2e8662(0x127)]),_0x57db96=_0x567279(null);return _0xb9123a(()=>(_0xb80694&&_0x46846f[_0x2e8662(0x159)](_0xb80694[_0x2e8662(0x155)]())[_0x2e8662(0x144)](_0x27adf9=>{const _0x25b66e=_0x2e8662;_0x17d935(_0x27adf9),_0x57db96[_0x25b66e(0xf5)]=_0x27adf9[_0x25b66e(0x174)][_0x25b66e(0x140)](_0x299c41=>{_0x5b4511(_0x299c41);});}),()=>{const _0x370c58=_0x2e8662;var _0x41841c;(_0x41841c=_0x57db96[_0x370c58(0xf5)])==null||_0x41841c[_0x370c58(0x136)](),_0x57db96['current']=null;}),[_0xb80694,_0x46846f]),_0x107360?_0x22293e(_0x55a60a,{'align':'end','disabled':_0x11ea72===c[_0x2e8662(0x165)],'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':_0x22293e(Re,{'status':_0x11ea72,'coordinator':_0x107360}),'children':_0x22293e(_0x2e8662(0x12f),{'className':_0x391744(_0x2e8662(0x177),{'univer-cursor-not-allowed':_0x11ea72===c[_0x2e8662(0x165)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x11ea72!==c['OFFLINE']}),'type':_0x2e8662(0x12f),'children':_0x22293e(W,{'className':'univer-size-4'})})}):null;}function Re(_0xebe6b7){const _0x59a0ca=_0x5c891b,{status:_0x4adc9d,coordinator:_0x30e75e}=_0xebe6b7;switch(_0x4adc9d){case c['IDLE']:return _0x22293e($e,{'coordinator':_0x30e75e});case c[_0x59a0ca(0x122)]:return _0x22293e(xe,{'coordinator':_0x30e75e});case c['NOT_FOLLOWING']:return _0x22293e(Pe,{'coordinator':_0x30e75e});case c['OFFLINE']:return _0x22293e(Te,{});case c['PRESENTING']:return _0x22293e(Ae,{'coordinator':_0x30e75e});default:return null;}}function $e(_0x2c1586){const _0x311269=_0x5c891b,{coordinator:_0x326fa0}=_0x2c1586;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e(_0x311269(0x108),{'className':_0x311269(0xe6),'children':_0x311269(0x138)}),_0x22293e(_0x5aedf4,{'onClick':()=>_0x326fa0['tryStartPresenting'](),'children':_0x311269(0x13d)})]});}function xe(_0x2b5d49){const _0x397ca3=_0x5c891b,{coordinator:_0x3eaa1b}=_0x2b5d49;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e(_0x397ca3(0x108),{'className':_0x397ca3(0xe6),'children':_0x397ca3(0x123)}),_0x22293e(_0x5aedf4,{'onClick':()=>_0x3eaa1b['stopFollowing'](),'children':_0x397ca3(0x170)})]});}function Pe(_0x6ace70){const _0x2b278a=_0x5c891b,{coordinator:_0x5aeaf1}=_0x6ace70;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e('div',{'className':_0x2b278a(0xe6),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x22293e(_0x5aedf4,{'variant':_0x2b278a(0x100),'onClick':()=>_0x5aeaf1[_0x2b278a(0xe1)](),'children':_0x2b278a(0x141)})]});}function Ae(_0x3c7a47){const _0x2aabc7=_0x5c891b,{coordinator:_0x393d4d}=_0x3c7a47;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x22293e(_0x5aedf4,{'variant':_0x2aabc7(0xf0),'onClick':()=>_0x393d4d[_0x2aabc7(0x16a)](),'children':_0x2aabc7(0x17a)})]});}function Te(){return _0x22293e(_0x4ad7d5,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x5c891b(0x12a)],He=(_0xe70890,_0x1b3670,_0x59da49,_0x179e3e)=>{for(var _0x240718=_0x179e3e>0x1?void 0x0:_0x179e3e?Fe(_0x1b3670,_0x59da49):_0x1b3670,_0x7cdc85=_0xe70890['length']-0x1,_0x2723ac;_0x7cdc85>=0x0;_0x7cdc85--)(_0x2723ac=_0xe70890[_0x7cdc85])&&(_0x240718=_0x2723ac(_0x240718)||_0x240718);return _0x240718;},A=(_0x38e13f,_0x3bff8e)=>(_0x2e8fc0,_0x53adac)=>_0x3bff8e(_0x2e8fc0,_0x53adac,_0x38e13f);let m=class extends _0x431729{constructor(_0xd2e111,_0x308dba){const _0x4e99bd=_0x5c891b;super(),this[_0x4e99bd(0x15f)]=_0xd2e111,this[_0x4e99bd(0x176)]=_0x308dba,this[_0x4e99bd(0x131)]();}[_0x5c891b(0x131)](){const _0x2574bc=_0x5c891b;this[_0x2574bc(0xe2)](this['_uiPartsService']['registerComponent'](_0x348417[_0x2574bc(0x10f)],()=>_0x6df76e(Le,this[_0x2574bc(0x15f)])));}};m=He([A(0x0,_0x5c0b1a(_0x122406)),A(0x1,_0x150b13)],m);const ye=_0x5c891b(0x169),T={};var Ue=Object[_0x5c891b(0x12a)],Ve=(_0xc6d32e,_0x4f3166,_0x433df3,_0x349a72)=>{const _0x1c69eb=_0x5c891b;for(var _0x4fbdc7=_0x349a72>0x1?void 0x0:_0x349a72?Ue(_0x4f3166,_0x433df3):_0x4f3166,_0x1781d9=_0xc6d32e[_0x1c69eb(0x11e)]-0x1,_0x1c4824;_0x1781d9>=0x0;_0x1781d9--)(_0x1c4824=_0xc6d32e[_0x1781d9])&&(_0x4fbdc7=_0x1c4824(_0x4fbdc7)||_0x4fbdc7);return _0x4fbdc7;},je=(_0x529ed1,_0x185e52)=>(_0x46e878,_0x32c45e)=>_0x185e52(_0x46e878,_0x32c45e,_0x529ed1);function _0x13cf(){const _0x481ce6=['LIVESHARE_NEW_HOST','http://www.w3.org/2000/svg','_startPresenting','fill','getUnitId','createInstance','presenter','idle','getLiveShareCoordinator','mutations','getConfig','dispose','includes','getValue','_injector','following','executeCommand','unitId','type','parse','OFFLINE','has','pipe','registerInitialStateReporter','live-share.config','stopPresenting','722994BLrhHq','params','1523720ADbKLF','_entities','_unitID','Stop\x20following','map','_stopPresenting','_univerInstanceService','status$','LIVESHARE_OPERATION','_uiPartsService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','OPERATION','tag','Stop\x20presenting','clear','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','data','get','UNIVER_SHEET','LIVESHARE_REQUEST_HOST','onRendered','currentColor','substring','5046CHcPnD','startFollowing','disposeWithMe','16412740CkJGqN','_stopFollowing','_status$','univer-mb-3\x20univer-w-full\x20univer-text-sm','2831227ugnzHi','presenting','getTypeOfUnitAdded$','LIVESHARE_TERMINATE','mask','UniverIcon','4965129REChjX','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','values','default','url(#$1','entries','next','_beIdle','current','_reporters','_handleOperation','UNIVER_UNKNOWN','_commandDisposable','_config','_handleTerminate','send','_handleNewChangeSets','complete','_startLiveShareCoordinator','text','_status','children','getInitialStates','asObservable','pluginName','override','SAME_OPERATION_SHARE_INTERVAL','div','evenodd','requireSession','_collabSessionService','toString','getStatus','_handleNewHost','HEADER_MENU','_handleOnline','not-following','_handleOffline','registerSharedOperation','random','memberID','LiveShareIcon','_collabSession','getLiveShareCoordinatorSync','dispose$','_commandService','4985NQHVnM','defineProperty','init','length','16iaKIew','0\x200\x2017\x2017','live-share-icon','FOLLOWING','You\x27re\x20following\x20the\x20presenter','sheet','4343208HekjOn','string','IDLE','forEach','from','getOwnPropertyDescriptor','_fetchOperations','_startFollowing','xlink:href','displayName','button','getCurrentTypeOfUnit$','_mountLiveShare','6NMAWMA','ONLINE','1em','delete','unsubscribe','stringify','Present\x20this\x20document','add','PRESENTING','getMemberID','_sharedOperations','Start','set','NOT_FOLLOWING','subscribe','Start\x20following','_init','_liveShareService','then','_presenter','getTypeOfUnitDisposed$','trim','attrs','symbol','offline','_configService','onCommandExecuted','idSuffix','UNIVER_LIVE_SHARE_PLUGIN','assign','defs'];_0x13cf=function(){return _0x481ce6;};return _0x13cf();}let I=class extends _0x431729{constructor(_0xbe3fa){const _0x3c9f89=_0x5c891b;super(),this[_0x3c9f89(0x143)]=_0xbe3fa,this[_0x3c9f89(0x142)]();}['_init'](){[_0x10142f['id'],_0x57bc22['id'],_0x5564c8['id']]['forEach'](_0x3ce2d9=>{const _0x1b1c6f=_0x3f41;this[_0x1b1c6f(0xe2)](this['_liveShareService'][_0x1b1c6f(0x113)](_0x3ce2d9));});}};I=Ve([je(0x0,_0x5c0b1a(L))],I);var Me=Object[_0x5c891b(0x11c)],ke=Object[_0x5c891b(0x12a)],Ge=(_0x5d2e44,_0x275dde,_0x2f2818)=>_0x275dde in _0x5d2e44?Me(_0x5d2e44,_0x275dde,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f2818}):_0x5d2e44[_0x275dde]=_0x2f2818,We=(_0x2dfcb7,_0x454f5a,_0x2e9536,_0x3d1ffe)=>{const _0x2b6635=_0x5c891b;for(var _0x35aaa5=_0x3d1ffe>0x1?void 0x0:_0x3d1ffe?ke(_0x454f5a,_0x2e9536):_0x454f5a,_0x1f534c=_0x2dfcb7[_0x2b6635(0x11e)]-0x1,_0x49886c;_0x1f534c>=0x0;_0x1f534c--)(_0x49886c=_0x2dfcb7[_0x1f534c])&&(_0x35aaa5=_0x49886c(_0x35aaa5)||_0x35aaa5);return _0x35aaa5;},F=(_0x3c9d73,_0x483a82)=>(_0x2ff063,_0x1d551f)=>_0x483a82(_0x2ff063,_0x1d551f,_0x3c9d73),B=(_0x85ab9b,_0x27f8db,_0x157175)=>Ge(_0x85ab9b,typeof _0x27f8db!='symbol'?_0x27f8db+'':_0x27f8db,_0x157175);const Ye=_0x5c891b(0x14e);let b=class extends _0x3414a0{constructor(_0x4ee1fe=T,_0x3869cf,_0x1432a1){const _0x1f5ce2=_0x5c891b;super(),this[_0x1f5ce2(0xfa)]=_0x4ee1fe,this['_injector']=_0x3869cf,this[_0x1f5ce2(0x14b)]=_0x1432a1;const {..._0x2fd983}=_0x13e6df({},T,this[_0x1f5ce2(0xfa)]);this['_configService']['setConfig'](ye,_0x2fd983);}['onStarting'](){const _0x4b77d5=_0x5c891b;_0x12f174(this[_0x4b77d5(0x15f)],_0x3ea2c1([[L],[S],[I],[m]],this[_0x4b77d5(0xfa)][_0x4b77d5(0x106)])),_0x299450(this[_0x4b77d5(0x15f)],[[I]]);}[_0x5c891b(0xdd)](){const _0x58e9f7=_0x5c891b;_0x299450(this[_0x58e9f7(0x15f)],[[m]]);}};B(b,_0x5c891b(0x163),_0x4e9761[_0x5c891b(0xf8)]),B(b,_0x5c891b(0x105),Ye),b=We([_0x42d09e(_0x5c81aa),F(0x1,_0x5c0b1a(_0x122406)),F(0x2,_0x3ef321)],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
- function _0x571f(){const _0x2fbe56=['No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','18SFLRUn','54qplNdb','extend','LiveShareStatusEnum','IDLE','tryStartPresenting','1910900EeGIkZ','stopFollowing','getActiveSheet','getStatus','startFollowing','2748163dgQCaB','PRESENTING','_injector','4673781HJElQr','executeCommand','getLiveShareCoordinatorSync','2974672RSYiYd','10JxqPkj','536622GrCFBV','getSheetId','startRow','getUnitId','8913336INbwqk','getId','_commandService','41692asRSlr','6ZNgyrA','stopPresenting','No\x20active\x20workbook\x20found.','startPresenting','get','2cKGIjO','getActiveWorkbook'];_0x571f=function(){return _0x2fbe56;};return _0x571f();}const _0x79a651=_0x53b0;(function(_0x4fcfdf,_0x31312f){const _0x5cebe7=_0x53b0,_0x4541f2=_0x4fcfdf();while(!![]){try{const _0x218c8f=-parseInt(_0x5cebe7(0x161))/0x1*(parseInt(_0x5cebe7(0x16e))/0x2)+-parseInt(_0x5cebe7(0x172))/0x3*(-parseInt(_0x5cebe7(0x168))/0x4)+parseInt(_0x5cebe7(0x154))/0x5*(parseInt(_0x5cebe7(0x169))/0x6)+parseInt(_0x5cebe7(0x15c))/0x7+-parseInt(_0x5cebe7(0x15f))/0x8*(parseInt(_0x5cebe7(0x171))/0x9)+parseInt(_0x5cebe7(0x160))/0xa*(-parseInt(_0x5cebe7(0x159))/0xb)+parseInt(_0x5cebe7(0x165))/0xc;if(_0x218c8f===_0x31312f)break;else _0x4541f2['push'](_0x4541f2['shift']());}catch(_0x37dcb2){_0x4541f2['push'](_0x4541f2['shift']());}}}(_0x571f,0x6de54));import{LiveShareController as _0x55af9f,LiveShareStatus as _0x3533f8}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x2a4873}from'@univerjs/engine-render';function _0x53b0(_0x2493f7,_0x3baac6){_0x2493f7=_0x2493f7-0x152;const _0x571fe5=_0x571f();let _0x53b086=_0x571fe5[_0x2493f7];return _0x53b086;}import{SetWorksheetActiveOperation as _0x5c83dd}from'@univerjs/sheets';import{SetScrollOperation as _0x40817b}from'@univerjs/sheets-ui';import{FRange as _0x4fa1a3}from'@univerjs/sheets/facade';import{FUniver as _0x5c5814,FEnum as _0x54a6aa}from'@univerjs/core/facade';class I extends _0x4fa1a3{['_initialize'](_0x1f6ef1,_0x1d53fd,_0x771944,_0x23b5b3,_0x4161d7){const _0x57c640=_0x53b0,_0x487400=_0x1f6ef1[_0x57c640(0x16d)](_0x55af9f),_0x1acfaa=_0x1f6ef1[_0x57c640(0x16d)](_0x2a4873),_0x1be079=_0x1d53fd[_0x57c640(0x164)](),_0x4279a5=_0x1d53fd[_0x57c640(0x156)](),_0x4ad478=_0x487400[_0x57c640(0x15e)](_0x1be079);(_0x4ad478==null?void 0x0:_0x4ad478[_0x57c640(0x157)]())!==_0x3533f8[_0x57c640(0x15a)]||(_0x771944[_0x57c640(0x162)]()!==_0x4279a5['getSheetId']()&&this[_0x57c640(0x167)][_0x57c640(0x15d)](_0x5c83dd['id'],{'unitId':_0x1be079,'subUnitId':_0x771944[_0x57c640(0x162)]()}),!_0x1acfaa['getRenderById'](_0x1be079))||_0x4161d7['syncExecuteCommand'](_0x40817b['id'],{'unitId':_0x1d53fd[_0x57c640(0x164)](),'sheetId':_0x771944[_0x57c640(0x162)](),'sheetViewStartRow':_0x23b5b3[_0x57c640(0x163)],'sheetViewStartColumn':_0x23b5b3['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x4fa1a3['extend'](I);class m extends _0x5c5814{['getLiveShareStatus'](){const _0x25436d=_0x53b0;var _0x5b9f61,_0x30dcb6;const _0x31f781=this[_0x25436d(0x15b)]['get'](_0x55af9f),_0x1b4084=(_0x5b9f61=this[_0x25436d(0x16f)]())==null?void 0x0:_0x5b9f61[_0x25436d(0x166)]();if(!_0x1b4084)throw new Error(_0x25436d(0x16b));const _0x346099=_0x31f781[_0x25436d(0x15e)](_0x1b4084);return(_0x30dcb6=_0x346099==null?void 0x0:_0x346099[_0x25436d(0x157)]())!=null?_0x30dcb6:_0x3533f8[_0x25436d(0x152)];}[_0x79a651(0x158)](){const _0x2dead6=_0x79a651;var _0x58abe3;const _0x580abc=this[_0x2dead6(0x15b)]['get'](_0x55af9f),_0x580a2d=(_0x58abe3=this[_0x2dead6(0x16f)]())==null?void 0x0:_0x58abe3[_0x2dead6(0x166)]();if(!_0x580a2d)throw new Error(_0x2dead6(0x16b));const _0x33dc85=_0x580abc[_0x2dead6(0x15e)](_0x580a2d);if(!_0x33dc85)throw new Error(_0x2dead6(0x170));_0x33dc85['startFollowing']();}[_0x79a651(0x155)](){const _0x5b3232=_0x79a651;var _0x462738;const _0x36c356=this[_0x5b3232(0x15b)][_0x5b3232(0x16d)](_0x55af9f),_0x345d0a=(_0x462738=this[_0x5b3232(0x16f)]())==null?void 0x0:_0x462738[_0x5b3232(0x166)]();if(!_0x345d0a)throw new Error('No\x20active\x20workbook\x20found.');const _0x573141=_0x36c356[_0x5b3232(0x15e)](_0x345d0a);if(!_0x573141)throw new Error(_0x5b3232(0x170));_0x573141[_0x5b3232(0x155)]();}[_0x79a651(0x16c)](){const _0x5e04c5=_0x79a651;var _0x3df80f;const _0x468a35=this['_injector'][_0x5e04c5(0x16d)](_0x55af9f),_0x415646=(_0x3df80f=this['getActiveWorkbook']())==null?void 0x0:_0x3df80f[_0x5e04c5(0x166)]();if(!_0x415646)throw new Error(_0x5e04c5(0x16b));const _0x18f111=_0x468a35[_0x5e04c5(0x15e)](_0x415646);if(!_0x18f111)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x18f111[_0x5e04c5(0x153)]();}[_0x79a651(0x16a)](){const _0x5728cd=_0x79a651;var _0x19c8d6;const _0x5af450=this['_injector'][_0x5728cd(0x16d)](_0x55af9f),_0x281a79=(_0x19c8d6=this[_0x5728cd(0x16f)]())==null?void 0x0:_0x19c8d6[_0x5728cd(0x166)]();if(!_0x281a79)throw new Error('No\x20active\x20workbook\x20found.');const _0x111972=_0x5af450[_0x5728cd(0x15e)](_0x281a79);if(!_0x111972)throw new Error(_0x5728cd(0x170));_0x111972[_0x5728cd(0x16a)]();}}_0x5c5814['extend'](m);class C extends _0x54a6aa{get[_0x79a651(0x174)](){return _0x3533f8;}}_0x54a6aa[_0x79a651(0x173)](C);
1
+ const _0x20bcd6=_0x1f2a;(function(_0x2cc397,_0xa868fd){const _0x5ce6e4=_0x1f2a,_0x30e752=_0x2cc397();while(!![]){try{const _0x316838=-parseInt(_0x5ce6e4(0x1b2))/0x1+-parseInt(_0x5ce6e4(0x1c1))/0x2+-parseInt(_0x5ce6e4(0x1cf))/0x3*(parseInt(_0x5ce6e4(0x1bc))/0x4)+parseInt(_0x5ce6e4(0x1b6))/0x5*(-parseInt(_0x5ce6e4(0x1bb))/0x6)+-parseInt(_0x5ce6e4(0x1c3))/0x7+-parseInt(_0x5ce6e4(0x1ca))/0x8*(-parseInt(_0x5ce6e4(0x1b9))/0x9)+parseInt(_0x5ce6e4(0x1b8))/0xa*(parseInt(_0x5ce6e4(0x1c4))/0xb);if(_0x316838===_0xa868fd)break;else _0x30e752['push'](_0x30e752['shift']());}catch(_0x2d2c6a){_0x30e752['push'](_0x30e752['shift']());}}}(_0x57a3,0x36b7b));import{LiveShareController as _0x3bf062,LiveShareStatus as _0x4cb3db}from'@univerjs-pro/live-share';import{IRenderManagerService as _0xef1b8d}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x58c827}from'@univerjs/sheets';import{SetScrollOperation as _0x30b027}from'@univerjs/sheets-ui';function _0x1f2a(_0x3a0254,_0x4a2493){_0x3a0254=_0x3a0254-0x1b0;const _0x57a309=_0x57a3();let _0x1f2a0f=_0x57a309[_0x3a0254];return _0x1f2a0f;}import{FRange as _0xb31a5c}from'@univerjs/sheets/facade';import{FUniver as _0x2e1202,FEnum as _0x1ab120}from'@univerjs/core/facade';class I extends _0xb31a5c{[_0x20bcd6(0x1ce)](_0xe1b583,_0x450f9e,_0x244abf,_0x1e1683,_0x309eeb){const _0x297830=_0x20bcd6,_0x2e985e=_0xe1b583[_0x297830(0x1cc)](_0x3bf062),_0x264784=_0xe1b583['get'](_0xef1b8d),_0x1a3008=_0x450f9e['getUnitId'](),_0x2ea082=_0x450f9e[_0x297830(0x1c2)](),_0x47d389=_0x2e985e[_0x297830(0x1b3)](_0x1a3008);(_0x47d389==null?void 0x0:_0x47d389['getStatus']())!==_0x4cb3db['PRESENTING']||(_0x244abf['getSheetId']()!==_0x2ea082[_0x297830(0x1bd)]()&&this['_commandService'][_0x297830(0x1c7)](_0x58c827['id'],{'unitId':_0x1a3008,'subUnitId':_0x244abf[_0x297830(0x1bd)]()}),!_0x264784['getRenderById'](_0x1a3008))||_0x309eeb[_0x297830(0x1c6)](_0x30b027['id'],{'unitId':_0x450f9e[_0x297830(0x1cd)](),'sheetId':_0x244abf['getSheetId'](),'sheetViewStartRow':_0x1e1683[_0x297830(0x1c0)],'sheetViewStartColumn':_0x1e1683[_0x297830(0x1b0)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0xb31a5c[_0x20bcd6(0x1b5)](I);class m extends _0x2e1202{[_0x20bcd6(0x1bf)](){const _0x1f9573=_0x20bcd6;var _0x47f3ce,_0x53481c;const _0x5b5eb4=this[_0x1f9573(0x1c9)][_0x1f9573(0x1cc)](_0x3bf062),_0x28ec5c=(_0x47f3ce=this[_0x1f9573(0x1b7)]())==null?void 0x0:_0x47f3ce[_0x1f9573(0x1c5)]();if(!_0x28ec5c)throw new Error('No\x20active\x20workbook\x20found.');const _0x210ecf=_0x5b5eb4[_0x1f9573(0x1b3)](_0x28ec5c);return(_0x53481c=_0x210ecf==null?void 0x0:_0x210ecf['getStatus']())!=null?_0x53481c:_0x4cb3db['IDLE'];}[_0x20bcd6(0x1cb)](){const _0x5551a8=_0x20bcd6;var _0xb791fd;const _0x181773=this[_0x5551a8(0x1c9)][_0x5551a8(0x1cc)](_0x3bf062),_0x6aedf=(_0xb791fd=this[_0x5551a8(0x1b7)]())==null?void 0x0:_0xb791fd[_0x5551a8(0x1c5)]();if(!_0x6aedf)throw new Error(_0x5551a8(0x1b4));const _0x15953a=_0x181773[_0x5551a8(0x1b3)](_0x6aedf);if(!_0x15953a)throw new Error(_0x5551a8(0x1ba));_0x15953a['startFollowing']();}['stopFollowing'](){const _0x3aeda3=_0x20bcd6;var _0x134f64;const _0x1445db=this[_0x3aeda3(0x1c9)][_0x3aeda3(0x1cc)](_0x3bf062),_0x2b0fc1=(_0x134f64=this['getActiveWorkbook']())==null?void 0x0:_0x134f64[_0x3aeda3(0x1c5)]();if(!_0x2b0fc1)throw new Error(_0x3aeda3(0x1b4));const _0x18015e=_0x1445db[_0x3aeda3(0x1b3)](_0x2b0fc1);if(!_0x18015e)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x18015e['stopFollowing']();}[_0x20bcd6(0x1c8)](){const _0x311e7c=_0x20bcd6;var _0x265d3e;const _0x1301ff=this['_injector'][_0x311e7c(0x1cc)](_0x3bf062),_0x56c8cb=(_0x265d3e=this[_0x311e7c(0x1b7)]())==null?void 0x0:_0x265d3e['getId']();if(!_0x56c8cb)throw new Error('No\x20active\x20workbook\x20found.');const _0x54f848=_0x1301ff[_0x311e7c(0x1b3)](_0x56c8cb);if(!_0x54f848)throw new Error(_0x311e7c(0x1ba));_0x54f848[_0x311e7c(0x1be)]();}[_0x20bcd6(0x1b1)](){const _0x5a9912=_0x20bcd6;var _0x1677f7;const _0x4019be=this[_0x5a9912(0x1c9)][_0x5a9912(0x1cc)](_0x3bf062),_0xc740ef=(_0x1677f7=this[_0x5a9912(0x1b7)]())==null?void 0x0:_0x1677f7[_0x5a9912(0x1c5)]();if(!_0xc740ef)throw new Error(_0x5a9912(0x1b4));const _0x2b4f7e=_0x4019be[_0x5a9912(0x1b3)](_0xc740ef);if(!_0x2b4f7e)throw new Error(_0x5a9912(0x1ba));_0x2b4f7e[_0x5a9912(0x1b1)]();}}_0x2e1202['extend'](m);class C extends _0x1ab120{get['LiveShareStatusEnum'](){return _0x4cb3db;}}_0x1ab120[_0x20bcd6(0x1b5)](C);function _0x57a3(){const _0x56af26=['358242qERvIE','27652DYzynx','getSheetId','tryStartPresenting','getLiveShareStatus','startRow','459300lKKmEU','getActiveSheet','1434881kzuWIK','253tZThvD','getId','syncExecuteCommand','executeCommand','startPresenting','_injector','27368SRcajm','startFollowing','get','getUnitId','_initialize','24KLcDQP','startColumn','stopPresenting','86177JyfJgn','getLiveShareCoordinatorSync','No\x20active\x20workbook\x20found.','extend','20LZOxIK','getActiveWorkbook','450280IBbtRt','9jRQGbD','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.'];_0x57a3=function(){return _0x56af26;};return _0x57a3();}
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x258e06=_0x4c24;(function(_0x56ccd9,_0x4350db){const _0x25e6aa=_0x4c24,_0x271de4=_0x56ccd9();while(!![]){try{const _0x9219a1=-parseInt(_0x25e6aa(0x17c))/0x1+-parseInt(_0x25e6aa(0x15e))/0x2*(-parseInt(_0x25e6aa(0x1af))/0x3)+parseInt(_0x25e6aa(0x1a3))/0x4+parseInt(_0x25e6aa(0x1a7))/0x5+-parseInt(_0x25e6aa(0x11b))/0x6*(-parseInt(_0x25e6aa(0x1a6))/0x7)+parseInt(_0x25e6aa(0x122))/0x8*(-parseInt(_0x25e6aa(0x1a8))/0x9)+parseInt(_0x25e6aa(0x16e))/0xa;if(_0x9219a1===_0x4350db)break;else _0x271de4['push'](_0x271de4['shift']());}catch(_0x4cc069){_0x271de4['push'](_0x271de4['shift']());}}}(_0x3818,0xd6fbe));var J=Object[_0x258e06(0x1bf)],K=(_0xc91e88,_0x3e4973,_0x18c7aa)=>_0x3e4973 in _0xc91e88?J(_0xc91e88,_0x3e4973,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x18c7aa}):_0xc91e88[_0x3e4973]=_0x18c7aa,u=(_0x3e5c39,_0x14aad4,_0x5269c2)=>K(_0x3e5c39,typeof _0x14aad4!=_0x258e06(0x12d)?_0x14aad4+'':_0x14aad4,_0x5269c2);import{Disposable as _0x324efe,toDisposable as _0x3a3481,IUniverInstanceService as _0x4da99a,Inject as _0x78ae44,Injector as _0x2d4c16,IConfigService as _0x5aa847,ICommandService as _0x4f1d1d,RxDisposable as _0x391391,UniverInstanceType as _0x35559f,DisposableCollection as _0x4d8c75,CommandType as _0x14d400,DependentOn as _0x42a005,Plugin as _0x3ffe0c,merge as _0x1fe50c,registerDependencies as _0x2fbe26,mergeOverrideWithDependencies as _0x23ef20,touchDependencies as _0x3e4dcd}from'@univerjs/core';import{useDependency as _0x37223d,useObservable as _0x5b2abe,IUIPartsService as _0x156e10,BuiltInUIPart as _0x28e9dd,connectInjector as _0x1af1ba}from'@univerjs/ui';import{jsx as _0x4ed4a5,jsxs as _0x3a3244,Fragment as _0x18389c}from'react/jsx-runtime';import{Dropdown as _0x35fe18,clsx as _0x5580d9,Button as _0x476c51}from'@univerjs/design';import{useRef as _0x2baf0a,createElement as _0x21c1d5,forwardRef as _0x4ad21f,useState as _0x4104d8,useEffect as _0x3cf0aa}from'react';import{CollaborationEvent as _0x479a15,parseProtocolChangeset as _0x278421}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x359579,SessionStatus as _0x256689,UniverCollaborationClientPlugin as _0x285791}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x34e958,SetWorksheetActiveOperation as _0x2b85d9}from'@univerjs/sheets';import{BehaviorSubject as _0x388f3e,Subject as _0x2c03bf}from'rxjs';import{takeUntil as _0x30a49e,throttleTime as _0x2b3990}from'rxjs/operators';import{SetZoomRatioOperation as _0x18b166,SetScrollOperation as _0x3e75bb}from'@univerjs/sheets-ui';function k({ref:_0x194218,..._0xbab5ab}){const _0x2b4f5e=_0x258e06,{icon:_0x3549d4,id:_0x5f28d1,className:_0x28db96,extend:_0x14eea9,..._0x2f71b9}=_0xbab5ab,_0x5a69ad=(_0x2b4f5e(0x189)+_0x5f28d1+'\x20'+(_0x28db96||''))['trim'](),_0x269383=_0x2baf0a('_'+Oe());return G(_0x3549d4,''+_0x5f28d1,{'defIds':_0x3549d4[_0x2b4f5e(0x19c)],'idSuffix':_0x269383[_0x2b4f5e(0x11c)]},{'ref':_0x194218,'className':_0x5a69ad,..._0x2f71b9},_0x14eea9);}function G(_0x118c4b,_0x2ff79e,_0x89e27,_0x4070fb,_0x24b5b0){const _0x134d41=_0x258e06;return _0x21c1d5(_0x118c4b['tag'],{'key':_0x2ff79e,...be(_0x118c4b,_0x89e27,_0x24b5b0),..._0x4070fb},(Ee(_0x118c4b,_0x89e27)[_0x134d41(0x14e)]||[])[_0x134d41(0x179)]((_0x4b3224,_0x219f4c)=>G(_0x4b3224,_0x2ff79e+'-'+_0x118c4b[_0x134d41(0x131)]+'-'+_0x219f4c,_0x89e27,void 0x0,_0x24b5b0)));}function be(_0x35238c,_0x6d2cd5,_0x116d26){const _0x176feb=_0x258e06,_0xa91998={..._0x35238c['attrs']};_0x116d26!=null&&_0x116d26['colorChannel1']&&_0xa91998[_0x176feb(0x18e)]===_0x176feb(0x18d)&&(_0xa91998[_0x176feb(0x18e)]=_0x116d26[_0x176feb(0x18d)]),_0x35238c['tag']==='mask'&&_0xa91998['id']&&(_0xa91998['id']=_0xa91998['id']+_0x6d2cd5[_0x176feb(0x126)]),Object[_0x176feb(0x135)](_0xa91998)[_0x176feb(0x155)](([_0x252b4c,_0x49c58a])=>{const _0x5e4949=_0x176feb;_0x252b4c==='mask'&&typeof _0x49c58a==_0x5e4949(0x12c)&&(_0xa91998[_0x252b4c]=_0x49c58a['replace'](/url\(#(.*)\)/,_0x5e4949(0x1ae)+_0x6d2cd5[_0x5e4949(0x126)]+')'));});const {defIds:_0x1a4097}=_0x6d2cd5;return!_0x1a4097||_0x1a4097['length']===0x0||(_0x35238c['tag']==='use'&&_0xa91998[_0x176feb(0x17d)]&&(_0xa91998['xlink:href']=_0xa91998[_0x176feb(0x17d)]+_0x6d2cd5['idSuffix']),Object[_0x176feb(0x135)](_0xa91998)[_0x176feb(0x155)](([_0x31f0aa,_0x418dc5])=>{const _0x4dd701=_0x176feb;typeof _0x418dc5=='string'&&(_0xa91998[_0x31f0aa]=_0x418dc5[_0x4dd701(0x183)](/url\(#(.*)\)/,_0x4dd701(0x1ae)+_0x6d2cd5['idSuffix']+')'));})),_0xa91998;}function Ee(_0x1913ff,_0x45d6ef){const _0xad8579=_0x258e06;var _0x47afbb;const {defIds:_0x40a61e}=_0x45d6ef;return!_0x40a61e||_0x40a61e['length']===0x0?_0x1913ff:_0x1913ff['tag']===_0xad8579(0x168)&&((_0x47afbb=_0x1913ff[_0xad8579(0x14e)])!=null&&_0x47afbb[_0xad8579(0x125)])?{..._0x1913ff,'children':_0x1913ff[_0xad8579(0x14e)]['map'](_0x1948a9=>typeof _0x1948a9[_0xad8579(0x147)]['id']=='string'&&_0x40a61e&&_0x40a61e[_0xad8579(0x1b4)](_0x1948a9[_0xad8579(0x147)]['id'])?{..._0x1948a9,'attrs':{..._0x1948a9['attrs'],'id':_0x1948a9[_0xad8579(0x147)]['id']+_0x45d6ef[_0xad8579(0x126)]}}:_0x1948a9)}:_0x1913ff;}function Oe(){const _0x3c6430=_0x258e06;return Math[_0x3c6430(0x1bd)]()[_0x3c6430(0x146)](0x24)[_0x3c6430(0x1be)](0x2,0x8);}k[_0x258e06(0x11a)]=_0x258e06(0x16b);const we={'tag':_0x258e06(0x1b5),'attrs':{'xmlns':_0x258e06(0x1ba),'fill':_0x258e06(0x17f),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x258e06(0x12f)},'children':[{'tag':'path','attrs':{'fill':_0x258e06(0x159),'d':_0x258e06(0x193)}},{'tag':_0x258e06(0x156),'attrs':{'fill':_0x258e06(0x159),'d':_0x258e06(0x14f),'fillRule':_0x258e06(0x1b8),'clipRule':_0x258e06(0x1b8)}}]},W=_0x4ad21f(function(_0x457ca2,_0x3d420c){const _0x293334=_0x258e06;return _0x21c1d5(k,Object[_0x293334(0x188)]({},_0x457ca2,{'id':_0x293334(0x1b2),'ref':_0x3d420c,'icon':we}));});W[_0x258e06(0x11a)]=_0x258e06(0x15f);class L extends _0x324efe{constructor(){const _0x36f6aa=_0x258e06;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x36f6aa(0x178),new Set());}['registerSharedOperation'](_0x506fde){const _0x1271ad=_0x258e06;return this[_0x1271ad(0x163)][_0x1271ad(0x182)](_0x506fde),_0x3a3481(()=>this[_0x1271ad(0x163)][_0x1271ad(0x15a)](_0x506fde));}['registerInitialStateReporter'](_0x250f62){const _0x27e833=_0x258e06;return this[_0x27e833(0x178)]['add'](_0x250f62),_0x3a3481(()=>this[_0x27e833(0x178)][_0x27e833(0x15a)](_0x250f62));}[_0x258e06(0x162)](_0x328b9e){const _0x4bbde7=_0x258e06;return this[_0x4bbde7(0x163)][_0x4bbde7(0x185)](_0x328b9e);}['getInitialStates'](_0x378ecb){const _0x8da5ff=_0x258e06;return Array[_0x8da5ff(0x148)](this['_reporters'])[_0x8da5ff(0x179)](_0x2dedc6=>_0x2dedc6(_0x378ecb));}}var Ne=Object[_0x258e06(0x13c)],Y=(_0x11b179,_0x235a01,_0x579745,_0x28082c)=>{for(var _0x46d98a=_0x28082c>0x1?void 0x0:_0x28082c?Ne(_0x235a01,_0x579745):_0x235a01,_0x304e2e=_0x11b179['length']-0x1,_0x722cfc;_0x304e2e>=0x0;_0x304e2e--)(_0x722cfc=_0x11b179[_0x304e2e])&&(_0x46d98a=_0x722cfc(_0x46d98a)||_0x46d98a);return _0x46d98a;},_=(_0x30ec16,_0x151809)=>(_0x35a5d3,_0x3da833)=>_0x151809(_0x35a5d3,_0x3da833,_0x30ec16);let S=class extends _0x391391{constructor(_0x591373,_0x1dd949,_0x53f9ae){const _0x305932=_0x258e06;super(),u(this,_0x305932(0x167),new Map()),(this[_0x305932(0x1a1)]=_0x591373,this['_injector']=_0x1dd949,this['_collabSessionService']=_0x53f9ae,this[_0x305932(0x13f)]());}async['getLiveShareCoordinator'](_0x3fdbc6){const _0x4eae70=_0x258e06;return this[_0x4eae70(0x167)]['has'](_0x3fdbc6)||await this['_startLiveShareCoordinator'](_0x3fdbc6),this['_entities'][_0x4eae70(0x18b)](_0x3fdbc6);}[_0x258e06(0x190)](_0x39d865){const _0x45f4cd=_0x258e06;var _0x389a92;return(_0x389a92=this[_0x45f4cd(0x167)][_0x45f4cd(0x18b)](_0x39d865))!=null?_0x389a92:null;}[_0x258e06(0x13f)](){const _0x3e59d2=_0x258e06;this[_0x3e59d2(0x1a1)][_0x3e59d2(0x11f)](_0x35559f[_0x3e59d2(0x120)])[_0x3e59d2(0x19f)](_0x30a49e(this[_0x3e59d2(0x1a9)]))['subscribe'](async _0x139e7f=>{const _0x3fc23c=_0x3e59d2,_0x5db3c9=_0x139e7f[_0x3fc23c(0x181)]();this[_0x3fc23c(0x167)][_0x3fc23c(0x185)](_0x5db3c9)||this['_startLiveShareCoordinator'](_0x5db3c9);}),this[_0x3e59d2(0x1a1)][_0x3e59d2(0x1a4)](_0x35559f[_0x3e59d2(0x120)])[_0x3e59d2(0x19f)](_0x30a49e(this[_0x3e59d2(0x1a9)]))['subscribe'](_0x2b0194=>{const _0x35ab1f=_0x3e59d2,_0x1aa086=_0x2b0194[_0x35ab1f(0x181)](),_0xe01af9=this[_0x35ab1f(0x167)][_0x35ab1f(0x18b)](_0x1aa086);_0xe01af9==null||_0xe01af9[_0x35ab1f(0x138)]();});}async['_startLiveShareCoordinator'](_0x4de79d){const _0x4c2287=_0x258e06,_0x20d921=await this[_0x4c2287(0x164)][_0x4c2287(0x14c)](_0x4de79d),_0x2885fe=this[_0x4c2287(0x19a)][_0x4c2287(0x195)](N,_0x4de79d,_0x20d921);return _0x2885fe['init'](),this[_0x4c2287(0x167)][_0x4c2287(0x11d)](_0x4de79d,_0x2885fe),_0x2885fe;}};S=Y([_(0x0,_0x4da99a),_(0x1,_0x78ae44(_0x2d4c16)),_(0x2,_0x78ae44(_0x359579))],S);var c=(_0x247749=>(_0x247749['OFFLINE']='offline',_0x247749[_0x258e06(0x118)]=_0x258e06(0x14b),_0x247749[_0x258e06(0x17a)]=_0x258e06(0x1a5),_0x247749[_0x258e06(0x1c1)]='not-following',_0x247749[_0x258e06(0x129)]='presenting',_0x247749))(c||{});function _0x3818(){const _0x27a5df=['_univerInstanceService','default','2823368CAqyld','getTypeOfUnitDisposed$','following','618422zHIsnP','8352335wJFcxz','324aYsDYR','dispose$','data','_stopPresenting','_handleOperation','getLiveShareCoordinator','url(#$1','283818lOtlXK','sheet','_fetchOperations','live-share-icon','registerSharedOperation','includes','svg','_configService','stringify','evenodd','text','http://www.w3.org/2000/svg','unitId','onStarting','random','substring','defineProperty','event$','NOT_FOLLOWING','_stopFollowing','pluginName','IDLE','NEW_CHANGESETS','displayName','30RwFeiS','current','set','init','getTypeOfUnitAdded$','UNIVER_SHEET','LIVESHARE_FETCH_OPERATIONS','234696RwjcNt','Start','_handleNewHost','length','idSuffix','_handleOnline','_liveShareService','PRESENTING','Present\x20this\x20document','_handleNewChangeSets','string','symbol','tryStartPresenting','1em','operations','tag','_commandDisposable','_status','mutations','entries','stopFollowing','parse','dispose','univer-size-4','sessionStatus$','next','getOwnPropertyDescriptor','_beIdle','_presenter','_init','_uiPartsService','You\x27are\x20offline.','Stop\x20presenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','getValue','LIVESHARE_REQUEST_HOST','toString','attrs','from','_config','reverse','idle','requireSession','presenting','children','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','_status$','stopPresenting','OFFLINE','Stop\x20following','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','forEach','path','LIVESHARE_TERMINATE','_unitID','currentColor','delete','You\x27re\x20presenting\x20the\x20document','_startFollowing','send','14oRwXzb','LiveShareIcon','_commandService','getMemberID','shouldShareOperation','_sharedOperations','_collabSessionService','offline','status$','_entities','defs','override','SAME_OPERATION_SHARE_INTERVAL','UniverIcon','You\x27re\x20following\x20the\x20presenter','_handleTerminate','1203280uVNcPa','setConfig','onCommandExecuted','unsubscribe','UNIVER_UNKNOWN','LIVESHARE_OPERATION','subscribe','getInitialStates','_mountLiveShare','registerComponent','_reporters','map','FOLLOWING','button','1663903WpOAKe','xlink:href','find','none','UNIVER_LIVE_SHARE_PLUGIN','getUnitId','add','replace','not-following','has','getConfig','presenter','assign','univerjs-icon\x20univerjs-icon-','complete','get','params','colorChannel1','fill','startFollowing','getLiveShareCoordinatorSync','disposeWithMe','Start\x20following','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','values','createInstance','div','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','type','_handleOffline','_injector','then','defIds','You\x27re\x20not\x20following\x20the\x20presenter','_collabSession','pipe','_startPresenting'];_0x3818=function(){return _0x27a5df;};return _0x3818();}function _0x4c24(_0xded936,_0x3e6056){_0xded936=_0xded936-0x116;const _0x381899=_0x3818();let _0x4c2442=_0x381899[_0xded936];return _0x4c2442;}const Ce=_0x258e06(0x16a),De=0xc8;let N=class extends _0x391391{constructor(_0x19d682,_0x4f8d4c,_0x962a59,_0x24d6a4,_0x4806f7){const _0x480b38=_0x258e06;super(),u(this,'_status$',new _0x388f3e(_0x480b38(0x14b))),u(this,_0x480b38(0x166),this[_0x480b38(0x150)]['asObservable']()),u(this,_0x480b38(0x13f),!0x1),u(this,_0x480b38(0x132),null),u(this,_0x480b38(0x13e),null),(this[_0x480b38(0x158)]=_0x19d682,this[_0x480b38(0x19e)]=_0x4f8d4c,this[_0x480b38(0x1b6)]=_0x962a59,this['_liveShareService']=_0x24d6a4,this[_0x480b38(0x160)]=_0x4806f7);}get['_status'](){const _0x302f2a=_0x258e06;return this[_0x302f2a(0x150)][_0x302f2a(0x144)]();}[_0x258e06(0x138)](){const _0x574c3c=_0x258e06;var _0x4d31e9;(_0x4d31e9=this[_0x574c3c(0x132)])==null||_0x4d31e9[_0x574c3c(0x138)](),this['_status$']['next'](_0x574c3c(0x14b)),this[_0x574c3c(0x150)][_0x574c3c(0x18a)]();}['getStatus'](){const _0x25df1b=_0x258e06;return this[_0x25df1b(0x133)];}[_0x258e06(0x11e)](){const _0x3cb334=_0x258e06;this[_0x3cb334(0x13f)]||(this[_0x3cb334(0x13f)]=!0x0,this[_0x3cb334(0x19e)][_0x3cb334(0x13a)][_0x3cb334(0x19f)](_0x30a49e(this[_0x3cb334(0x1a9)]))['subscribe'](_0x966ab2=>{const _0x2d9ac5=_0x3cb334;switch(_0x966ab2){case _0x256689['OFFLINE']:this[_0x2d9ac5(0x199)]();break;case _0x256689['ONLINE']:this[_0x2d9ac5(0x127)]();break;}}),this[_0x3cb334(0x19e)][_0x3cb334(0x1c0)][_0x3cb334(0x19f)](_0x30a49e(this['dispose$']))['subscribe'](_0x1aac34=>{const _0x561cbf=_0x3cb334,{eventID:_0x30b0f9}=_0x1aac34;switch(_0x30b0f9){case _0x479a15['LIVESHARE_NEW_HOST']:this[_0x561cbf(0x124)](_0x1aac34);break;case _0x479a15[_0x561cbf(0x173)]:this[_0x561cbf(0x1ac)](_0x1aac34);break;case _0x479a15[_0x561cbf(0x157)]:this[_0x561cbf(0x16d)]();break;case _0x479a15[_0x561cbf(0x119)]:this[_0x561cbf(0x12b)](_0x1aac34);break;}}));}[_0x258e06(0x12e)](){const _0x590cf2=_0x258e06;this[_0x590cf2(0x19e)][_0x590cf2(0x15d)]({'eventID':_0x479a15[_0x590cf2(0x145)],'data':{'unitID':this[_0x590cf2(0x158)],'userID':this[_0x590cf2(0x19e)][_0x590cf2(0x161)]()}},this[_0x590cf2(0x158)]);}[_0x258e06(0x151)](){const _0x45d9a0=_0x258e06;this[_0x45d9a0(0x133)]===_0x45d9a0(0x14d)&&(this[_0x45d9a0(0x150)][_0x45d9a0(0x13b)](_0x45d9a0(0x14b)),this[_0x45d9a0(0x19e)][_0x45d9a0(0x15d)]({'eventID':_0x479a15['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x45d9a0(0x158)]}},this[_0x45d9a0(0x158)]));}[_0x258e06(0x18f)](){const _0x2c2b92=_0x258e06;this[_0x2c2b92(0x133)]===_0x2c2b92(0x184)&&(this['_status$'][_0x2c2b92(0x13b)](_0x2c2b92(0x1a5)),this['_startFollowing']());}['stopFollowing'](){const _0x42a137=_0x258e06;this[_0x42a137(0x133)]===_0x42a137(0x1a5)&&this[_0x42a137(0x116)]();}[_0x258e06(0x124)](_0x44c2d8){const _0x3e768a=_0x258e06,{presenter:_0x48113b}=_0x44c2d8[_0x3e768a(0x1aa)],_0x263f97=this[_0x3e768a(0x19e)][_0x3e768a(0x161)]();this['_presenter']=_0x48113b,_0x48113b===_0x263f97?(this[_0x3e768a(0x116)](),this[_0x3e768a(0x1a0)]()):this[_0x3e768a(0x133)]!==_0x3e768a(0x184)&&(this[_0x3e768a(0x1ab)](),this['_startFollowing']());}['_fetchOperations'](){const _0x33dca4=_0x258e06,_0x53b06b={'eventID':_0x479a15[_0x33dca4(0x121)]};this[_0x33dca4(0x19e)][_0x33dca4(0x15d)](_0x53b06b,this[_0x33dca4(0x158)]);}['_handleTerminate'](){const _0x247c50=_0x258e06;this[_0x247c50(0x13e)]=null,this[_0x247c50(0x133)]!==_0x247c50(0x14d)&&this[_0x247c50(0x13d)]();}['_handleNewChangeSets'](_0x5e6e11){const _0x5e359c=_0x258e06;if(this[_0x5e359c(0x133)]===_0x5e359c(0x1a5)&&this[_0x5e359c(0x13e)]===_0x5e6e11['data']['memberID']){const _0x1eb865=_0x278421(_0x5e6e11['data'])[_0x5e359c(0x134)][_0x5e359c(0x14a)]()[_0x5e359c(0x17e)](_0x34a45a=>_0x34a45a['id']===_0x34e958['id']);if(_0x1eb865){const _0xf90fc=_0x1eb865[_0x5e359c(0x18c)][_0x5e359c(0x1bb)],_0x2dc432=_0x1eb865['params'][_0x5e359c(0x1b0)]['id'];setTimeout(()=>{this['_commandService']['executeCommand'](_0x2b85d9['id'],{'unitId':_0xf90fc,'subUnitId':_0x2dc432},{'fromCollab':!0x0});});}}}[_0x258e06(0x1a0)](){const _0x21fe20=_0x258e06;this[_0x21fe20(0x150)][_0x21fe20(0x13b)](_0x21fe20(0x14d));const _0x1c6c0e=new Map(),_0x3d4be3=this[_0x21fe20(0x132)]=new _0x4d8c75();_0x3d4be3[_0x21fe20(0x182)](_0x3a3481(()=>{const _0x17fac7=_0x21fe20;_0x1c6c0e[_0x17fac7(0x155)](_0x24693d=>_0x24693d[_0x17fac7(0x18a)]()),_0x1c6c0e['clear']();})),_0x3d4be3[_0x21fe20(0x182)](this[_0x21fe20(0x160)][_0x21fe20(0x170)](_0x58b1f2=>{const _0xfe3f6d=_0x21fe20;var _0xc3c074;if(_0x58b1f2[_0xfe3f6d(0x198)]!==_0x14d400['OPERATION']||!this['_liveShareService'][_0xfe3f6d(0x162)](_0x58b1f2['id']))return;const {id:_0x7517de}=_0x58b1f2;let _0x405b5f;_0x1c6c0e[_0xfe3f6d(0x185)](_0x7517de)?_0x405b5f=_0x1c6c0e[_0xfe3f6d(0x18b)](_0x7517de):(_0x405b5f=new _0x2c03bf(),_0x1c6c0e[_0xfe3f6d(0x11d)](_0x7517de,_0x405b5f),_0x405b5f[_0xfe3f6d(0x19f)](_0x2b3990((_0xc3c074=this['_configService'][_0xfe3f6d(0x186)](Ce))!=null?_0xc3c074:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xfe3f6d(0x174)](_0x3835e6=>{const _0x1b0c84=_0xfe3f6d;this['_collabSession'][_0x1b0c84(0x15d)]({'eventID':_0x479a15[_0x1b0c84(0x173)],'data':{'unitID':this['_unitID'],'operations':{[_0x3835e6['id']]:{'id':_0x3835e6['id'],'params':JSON['stringify'](_0x3835e6['params'])}}}},this['_unitID']);})),_0x405b5f[_0xfe3f6d(0x13b)](_0x58b1f2);})),this[_0x21fe20(0x128)][_0x21fe20(0x175)](this[_0x21fe20(0x158)])[_0x21fe20(0x155)](_0x4ec61e=>this[_0x21fe20(0x19e)][_0x21fe20(0x15d)]({'eventID':_0x479a15[_0x21fe20(0x173)],'data':{'unitID':this['_unitID'],'operations':{[_0x4ec61e['id']]:{'id':_0x4ec61e['id'],'params':JSON[_0x21fe20(0x1b7)](_0x4ec61e['params'])}}}},this[_0x21fe20(0x158)]));}[_0x258e06(0x1ab)](){const _0x1ab4f2=_0x258e06;var _0xc8df19;this[_0x1ab4f2(0x150)][_0x1ab4f2(0x13b)](_0x1ab4f2(0x14b)),(_0xc8df19=this['_commandDisposable'])==null||_0xc8df19[_0x1ab4f2(0x138)](),this[_0x1ab4f2(0x132)]=null;}[_0x258e06(0x15c)](){const _0x1bdb8e=_0x258e06;var _0x11b3db;(_0x11b3db=this[_0x1bdb8e(0x132)])==null||_0x11b3db[_0x1bdb8e(0x138)](),this[_0x1bdb8e(0x150)]['next'](_0x1bdb8e(0x1a5));}[_0x258e06(0x13d)](){const _0x393895=_0x258e06;var _0x186282;this[_0x393895(0x150)][_0x393895(0x13b)]('idle'),(_0x186282=this[_0x393895(0x132)])==null||_0x186282[_0x393895(0x138)](),this['_commandDisposable']=null;}[_0x258e06(0x116)](){const _0x1e43df=_0x258e06;var _0x53dd80;this[_0x1e43df(0x150)][_0x1e43df(0x13b)](_0x1e43df(0x184)),(_0x53dd80=this[_0x1e43df(0x132)])==null||_0x53dd80[_0x1e43df(0x138)]();}[_0x258e06(0x1ac)](_0x38d883){const _0x17aba9=_0x258e06;if([_0x17aba9(0x14d),_0x17aba9(0x184),_0x17aba9(0x165)][_0x17aba9(0x1b4)](this[_0x17aba9(0x133)])||!_0x38d883['data'][_0x17aba9(0x187)]||_0x38d883[_0x17aba9(0x1aa)][_0x17aba9(0x187)]===this['_collabSession'][_0x17aba9(0x161)]())return;this[_0x17aba9(0x133)]===_0x17aba9(0x14b)&&this[_0x17aba9(0x15c)]();const _0x4a9ba6=_0x38d883[_0x17aba9(0x1aa)][_0x17aba9(0x130)];Object[_0x17aba9(0x194)](_0x4a9ba6)['forEach'](_0x3010cb=>{const _0xa39adf=_0x17aba9;this['_commandService']['executeCommand'](_0x3010cb['id'],_0x3010cb[_0xa39adf(0x18c)]?JSON[_0xa39adf(0x137)](_0x3010cb[_0xa39adf(0x18c)]):null,{'fromCollab':!0x0});});}[_0x258e06(0x199)](){const _0x5840c2=_0x258e06;var _0x3f9aa2;this[_0x5840c2(0x150)][_0x5840c2(0x13b)]('offline'),(_0x3f9aa2=this['_commandDisposable'])==null||_0x3f9aa2[_0x5840c2(0x138)]();}[_0x258e06(0x127)](){const _0x144381=_0x258e06;this[_0x144381(0x150)][_0x144381(0x13b)](_0x144381(0x14b)),this[_0x144381(0x1b1)]();}};N=Y([_(0x2,_0x5aa847),_(0x3,_0x78ae44(L)),_(0x4,_0x4f1d1d)],N);function Le(){const _0x244db9=_0x258e06,_0x4dbb9b=_0x37223d(S),_0x4dbb9e=_0x37223d(_0x4da99a),_0x2c20dc=_0x5b2abe(()=>_0x4dbb9e['getCurrentTypeOfUnit$'](_0x35559f[_0x244db9(0x120)]),void 0x0,!0x1,[]),[_0x38a103,_0x1e71d1]=_0x4104d8(null),[_0x568087,_0x59bcb3]=_0x4104d8(c[_0x244db9(0x118)]),_0x1ed7e9=_0x2baf0a(null);return _0x3cf0aa(()=>(_0x2c20dc&&_0x4dbb9b[_0x244db9(0x1ad)](_0x2c20dc['getUnitId']())[_0x244db9(0x19b)](_0x86b729=>{const _0x26b7a1=_0x244db9;_0x1e71d1(_0x86b729),_0x1ed7e9[_0x26b7a1(0x11c)]=_0x86b729['status$'][_0x26b7a1(0x174)](_0x424f76=>{_0x59bcb3(_0x424f76);});}),()=>{const _0x54e7dd=_0x244db9;var _0xdf335b;(_0xdf335b=_0x1ed7e9[_0x54e7dd(0x11c)])==null||_0xdf335b[_0x54e7dd(0x171)](),_0x1ed7e9[_0x54e7dd(0x11c)]=null;}),[_0x2c20dc,_0x4dbb9b]),_0x38a103?_0x4ed4a5(_0x35fe18,{'align':'end','disabled':_0x568087===c[_0x244db9(0x152)],'className':_0x244db9(0x197),'overlay':_0x4ed4a5(Re,{'status':_0x568087,'coordinator':_0x38a103}),'children':_0x4ed4a5(_0x244db9(0x17b),{'className':_0x5580d9(_0x244db9(0x154),{'univer-cursor-not-allowed':_0x568087===c[_0x244db9(0x152)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x568087!==c[_0x244db9(0x152)]}),'type':_0x244db9(0x17b),'children':_0x4ed4a5(W,{'className':_0x244db9(0x139)})})}):null;}function Re(_0x3cbef7){const _0x5fccac=_0x258e06,{status:_0x5a50f1,coordinator:_0x155c72}=_0x3cbef7;switch(_0x5a50f1){case c[_0x5fccac(0x118)]:return _0x4ed4a5($e,{'coordinator':_0x155c72});case c[_0x5fccac(0x17a)]:return _0x4ed4a5(xe,{'coordinator':_0x155c72});case c[_0x5fccac(0x1c1)]:return _0x4ed4a5(Pe,{'coordinator':_0x155c72});case c['OFFLINE']:return _0x4ed4a5(Te,{});case c[_0x5fccac(0x129)]:return _0x4ed4a5(Ae,{'coordinator':_0x155c72});default:return null;}}function $e(_0x191a72){const _0x3a0e02=_0x258e06,{coordinator:_0x4870cf}=_0x191a72;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5('div',{'className':_0x3a0e02(0x143),'children':_0x3a0e02(0x12a)}),_0x4ed4a5(_0x476c51,{'onClick':()=>_0x4870cf[_0x3a0e02(0x12e)](),'children':_0x3a0e02(0x123)})]});}function xe(_0x1163a7){const _0x2fbea5=_0x258e06,{coordinator:_0x54337d}=_0x1163a7;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5(_0x2fbea5(0x196),{'className':_0x2fbea5(0x143),'children':_0x2fbea5(0x16c)}),_0x4ed4a5(_0x476c51,{'onClick':()=>_0x54337d[_0x2fbea5(0x136)](),'children':_0x2fbea5(0x153)})]});}function Pe(_0x5f3b86){const _0x424596=_0x258e06,{coordinator:_0x2d277c}=_0x5f3b86;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5('div',{'className':_0x424596(0x143),'children':_0x424596(0x19d)}),_0x4ed4a5(_0x476c51,{'variant':_0x424596(0x1b9),'onClick':()=>_0x2d277c[_0x424596(0x18f)](),'children':_0x424596(0x192)})]});}function Ae(_0x2c9171){const _0x1c77c3=_0x258e06,{coordinator:_0x172f3a}=_0x2c9171;return _0x3a3244(_0x18389c,{'children':[_0x4ed4a5(_0x1c77c3(0x196),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1c77c3(0x15b)}),_0x4ed4a5(_0x476c51,{'variant':_0x1c77c3(0x1a2),'onClick':()=>_0x172f3a[_0x1c77c3(0x151)](),'children':_0x1c77c3(0x142)})]});}function Te(){const _0x32c34a=_0x258e06;return _0x4ed4a5(_0x18389c,{'children':_0x32c34a(0x141)});}var Fe=Object[_0x258e06(0x13c)],He=(_0x4bb4e6,_0x1e6350,_0x49bdb0,_0x5cd775)=>{for(var _0x4a7a59=_0x5cd775>0x1?void 0x0:_0x5cd775?Fe(_0x1e6350,_0x49bdb0):_0x1e6350,_0x549473=_0x4bb4e6['length']-0x1,_0x386e74;_0x549473>=0x0;_0x549473--)(_0x386e74=_0x4bb4e6[_0x549473])&&(_0x4a7a59=_0x386e74(_0x4a7a59)||_0x4a7a59);return _0x4a7a59;},A=(_0x46c54f,_0x3f7928)=>(_0x39a916,_0x44a92f)=>_0x3f7928(_0x39a916,_0x44a92f,_0x46c54f);let m=class extends _0x324efe{constructor(_0x4337ee,_0x25cfc8){const _0x14c837=_0x258e06;super(),this[_0x14c837(0x19a)]=_0x4337ee,this['_uiPartsService']=_0x25cfc8,this[_0x14c837(0x176)]();}['_mountLiveShare'](){const _0x4e1fed=_0x258e06;this[_0x4e1fed(0x191)](this[_0x4e1fed(0x140)][_0x4e1fed(0x177)](_0x28e9dd['HEADER_MENU'],()=>_0x1af1ba(Le,this[_0x4e1fed(0x19a)])));}};m=He([A(0x0,_0x78ae44(_0x2d4c16)),A(0x1,_0x156e10)],m);const ye='live-share.config',T={};var Ue=Object[_0x258e06(0x13c)],Ve=(_0x4eb4d5,_0x20d7b4,_0x1e97d4,_0x519589)=>{const _0x25aab6=_0x258e06;for(var _0xb77ca4=_0x519589>0x1?void 0x0:_0x519589?Ue(_0x20d7b4,_0x1e97d4):_0x20d7b4,_0x5e0473=_0x4eb4d5[_0x25aab6(0x125)]-0x1,_0x47aa4d;_0x5e0473>=0x0;_0x5e0473--)(_0x47aa4d=_0x4eb4d5[_0x5e0473])&&(_0xb77ca4=_0x47aa4d(_0xb77ca4)||_0xb77ca4);return _0xb77ca4;},je=(_0x46d100,_0x7266b1)=>(_0x2d2ab9,_0x51a24f)=>_0x7266b1(_0x2d2ab9,_0x51a24f,_0x46d100);let I=class extends _0x324efe{constructor(_0x5bfcc1){const _0xd97d64=_0x258e06;super(),this[_0xd97d64(0x128)]=_0x5bfcc1,this[_0xd97d64(0x13f)]();}[_0x258e06(0x13f)](){const _0x35b1fd=_0x258e06;[_0x18b166['id'],_0x3e75bb['id'],_0x2b85d9['id']][_0x35b1fd(0x155)](_0xde58c9=>{const _0x28dd78=_0x35b1fd;this[_0x28dd78(0x191)](this[_0x28dd78(0x128)][_0x28dd78(0x1b3)](_0xde58c9));});}};I=Ve([je(0x0,_0x78ae44(L))],I);var Me=Object[_0x258e06(0x1bf)],ke=Object['getOwnPropertyDescriptor'],Ge=(_0x41311e,_0x44da24,_0x568e56)=>_0x44da24 in _0x41311e?Me(_0x41311e,_0x44da24,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x568e56}):_0x41311e[_0x44da24]=_0x568e56,We=(_0x516bc3,_0x1efc64,_0x37be38,_0x3b3e61)=>{const _0x2e90a7=_0x258e06;for(var _0x256abc=_0x3b3e61>0x1?void 0x0:_0x3b3e61?ke(_0x1efc64,_0x37be38):_0x1efc64,_0x3a05e3=_0x516bc3[_0x2e90a7(0x125)]-0x1,_0x3e5ef9;_0x3a05e3>=0x0;_0x3a05e3--)(_0x3e5ef9=_0x516bc3[_0x3a05e3])&&(_0x256abc=_0x3e5ef9(_0x256abc)||_0x256abc);return _0x256abc;},F=(_0x3abf12,_0x293639)=>(_0x51ec38,_0xd30722)=>_0x293639(_0x51ec38,_0xd30722,_0x3abf12),B=(_0x446a75,_0x392a5a,_0x40b314)=>Ge(_0x446a75,typeof _0x392a5a!=_0x258e06(0x12d)?_0x392a5a+'':_0x392a5a,_0x40b314);const Ye=_0x258e06(0x180);let b=class extends _0x3ffe0c{constructor(_0x4e9c1d=T,_0x19abc6,_0x254dee){const _0x8b8188=_0x258e06;super(),this['_config']=_0x4e9c1d,this[_0x8b8188(0x19a)]=_0x19abc6,this[_0x8b8188(0x1b6)]=_0x254dee;const {..._0x5a654}=_0x1fe50c({},T,this[_0x8b8188(0x149)]);this['_configService'][_0x8b8188(0x16f)](ye,_0x5a654);}[_0x258e06(0x1bc)](){const _0xc28f58=_0x258e06;_0x2fbe26(this[_0xc28f58(0x19a)],_0x23ef20([[L],[S],[I],[m]],this[_0xc28f58(0x149)][_0xc28f58(0x169)])),_0x3e4dcd(this[_0xc28f58(0x19a)],[[I]]);}['onRendered'](){const _0x5da499=_0x258e06;_0x3e4dcd(this[_0x5da499(0x19a)],[[m]]);}};B(b,_0x258e06(0x198),_0x35559f[_0x258e06(0x172)]),B(b,_0x258e06(0x117),Ye),b=We([_0x42a005(_0x285791),F(0x1,_0x78ae44(_0x2d4c16)),F(0x2,_0x5aa847)],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 _0x5c891b=_0x3f41;(function(_0x5d1051,_0xfe1fe5){const _0x1c0d34=_0x3f41,_0x307f7c=_0x5d1051();while(!![]){try{const _0x1f14fa=parseInt(_0x1c0d34(0x16d))/0x1+parseInt(_0x1c0d34(0x132))/0x2*(-parseInt(_0x1c0d34(0x16b))/0x3)+parseInt(_0x1c0d34(0x125))/0x4+parseInt(_0x1c0d34(0x11b))/0x5*(parseInt(_0x1c0d34(0xe0))/0x6)+parseInt(_0x1c0d34(0xe7))/0x7*(-parseInt(_0x1c0d34(0x11f))/0x8)+parseInt(_0x1c0d34(0xed))/0x9+-parseInt(_0x1c0d34(0xe3))/0xa;if(_0x1f14fa===_0xfe1fe5)break;else _0x307f7c['push'](_0x307f7c['shift']());}catch(_0x1259e6){_0x307f7c['push'](_0x307f7c['shift']());}}}(_0x13cf,0xc9c7a));var J=Object[_0x5c891b(0x11c)],K=(_0x3d3763,_0x361fb1,_0x386156)=>_0x361fb1 in _0x3d3763?J(_0x3d3763,_0x361fb1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x386156}):_0x3d3763[_0x361fb1]=_0x386156,u=(_0x3be939,_0x82528e,_0x2ae74c)=>K(_0x3be939,typeof _0x82528e!=_0x5c891b(0x149)?_0x82528e+'':_0x82528e,_0x2ae74c);import{Disposable as _0x431729,toDisposable as _0x2a75a6,IUniverInstanceService as _0xb62e9f,Inject as _0x5c0b1a,Injector as _0x122406,IConfigService as _0x3ef321,ICommandService as _0x113a75,RxDisposable as _0x2994f4,UniverInstanceType as _0x4e9761,DisposableCollection as _0x35b926,CommandType as _0x419595,DependentOn as _0x42d09e,Plugin as _0x3414a0,merge as _0x13e6df,registerDependencies as _0x12f174,mergeOverrideWithDependencies as _0x3ea2c1,touchDependencies as _0x299450}from'@univerjs/core';import{useDependency as _0x59cba9,useObservable as _0x172d74,IUIPartsService as _0x150b13,BuiltInUIPart as _0x348417,connectInjector as _0x6df76e}from'@univerjs/ui';import{jsx as _0x22293e,jsxs as _0xc16c99,Fragment as _0x4ad7d5}from'react/jsx-runtime';import{Dropdown as _0x55a60a,clsx as _0x391744,Button as _0x5aedf4}from'@univerjs/design';import{useRef as _0x567279,createElement as _0x21df1f,forwardRef as _0x2542a7,useState as _0x8acbe5,useEffect as _0xb9123a}from'react';import{CollaborationEvent as _0x5b0c32,parseProtocolChangeset as _0x37c054}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x1ee3d1,SessionStatus as _0x4b1079,UniverCollaborationClientPlugin as _0x5c81aa}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x36d1bf,SetWorksheetActiveOperation as _0x5564c8}from'@univerjs/sheets';import{BehaviorSubject as _0x5f2c0e,Subject as _0x4d0e55}from'rxjs';import{takeUntil as _0x2a74ec,throttleTime as _0x3d3727}from'rxjs/operators';function _0x3f41(_0x379308,_0x52df29){_0x379308=_0x379308-0xda;const _0x13cf10=_0x13cf();let _0x3f41af=_0x13cf10[_0x379308];return _0x3f41af;}import{SetZoomRatioOperation as _0x10142f,SetScrollOperation as _0x57bc22}from'@univerjs/sheets-ui';function k({ref:_0x8b6fec,..._0x5a2708}){const _0x79a618=_0x5c891b,{icon:_0x10bfca,id:_0xd3c020,className:_0x219571,extend:_0x1eb486,..._0x30e0fb}=_0x5a2708,_0x45676b=('univerjs-icon\x20univerjs-icon-'+_0xd3c020+'\x20'+(_0x219571||''))[_0x79a618(0x147)](),_0x4aab8e=_0x567279('_'+Oe());return G(_0x10bfca,''+_0xd3c020,{'defIds':_0x10bfca['defIds'],'idSuffix':_0x4aab8e[_0x79a618(0xf5)]},{'ref':_0x8b6fec,'className':_0x45676b,..._0x30e0fb},_0x1eb486);}function G(_0x5e72b2,_0x3a6d66,_0xe48b7f,_0x2c8be3,_0x36a5c3){const _0xc17b58=_0x5c891b;return _0x21df1f(_0x5e72b2[_0xc17b58(0x179)],{'key':_0x3a6d66,...be(_0x5e72b2,_0xe48b7f,_0x36a5c3),..._0x2c8be3},(Ee(_0x5e72b2,_0xe48b7f)[_0xc17b58(0x102)]||[])['map']((_0x11d941,_0x31303a)=>G(_0x11d941,_0x3a6d66+'-'+_0x5e72b2[_0xc17b58(0x179)]+'-'+_0x31303a,_0xe48b7f,void 0x0,_0x36a5c3)));}function be(_0x3025f5,_0x256acf,_0x4810c5){const _0x4d9352=_0x5c891b,_0x23a1da={..._0x3025f5[_0x4d9352(0x148)]};_0x4810c5!=null&&_0x4810c5['colorChannel1']&&_0x23a1da[_0x4d9352(0x154)]==='colorChannel1'&&(_0x23a1da[_0x4d9352(0x154)]=_0x4810c5['colorChannel1']),_0x3025f5[_0x4d9352(0x179)]===_0x4d9352(0xeb)&&_0x23a1da['id']&&(_0x23a1da['id']=_0x23a1da['id']+_0x256acf[_0x4d9352(0x14d)]),Object[_0x4d9352(0xf2)](_0x23a1da)[_0x4d9352(0x128)](([_0xc2c9b7,_0x26bd69])=>{const _0x3f7b6f=_0x4d9352;_0xc2c9b7===_0x3f7b6f(0xeb)&&typeof _0x26bd69=='string'&&(_0x23a1da[_0xc2c9b7]=_0x26bd69['replace'](/url\(#(.*)\)/,_0x3f7b6f(0xf1)+_0x256acf['idSuffix']+')'));});const {defIds:_0x8ee528}=_0x256acf;return!_0x8ee528||_0x8ee528['length']===0x0||(_0x3025f5[_0x4d9352(0x179)]==='use'&&_0x23a1da[_0x4d9352(0x12d)]&&(_0x23a1da[_0x4d9352(0x12d)]=_0x23a1da[_0x4d9352(0x12d)]+_0x256acf[_0x4d9352(0x14d)]),Object['entries'](_0x23a1da)[_0x4d9352(0x128)](([_0x321e28,_0x8e1dc3])=>{const _0x279893=_0x4d9352;typeof _0x8e1dc3==_0x279893(0x126)&&(_0x23a1da[_0x321e28]=_0x8e1dc3['replace'](/url\(#(.*)\)/,_0x279893(0xf1)+_0x256acf[_0x279893(0x14d)]+')'));})),_0x23a1da;}function Ee(_0x157426,_0x4cd462){const _0x820846=_0x5c891b;var _0xabca4d;const {defIds:_0x5c5024}=_0x4cd462;return!_0x5c5024||_0x5c5024[_0x820846(0x11e)]===0x0?_0x157426:_0x157426[_0x820846(0x179)]===_0x820846(0x150)&&((_0xabca4d=_0x157426['children'])!=null&&_0xabca4d[_0x820846(0x11e)])?{..._0x157426,'children':_0x157426['children'][_0x820846(0x171)](_0x24d80a=>typeof _0x24d80a[_0x820846(0x148)]['id']==_0x820846(0x126)&&_0x5c5024&&_0x5c5024[_0x820846(0x15d)](_0x24d80a['attrs']['id'])?{..._0x24d80a,'attrs':{..._0x24d80a[_0x820846(0x148)],'id':_0x24d80a[_0x820846(0x148)]['id']+_0x4cd462[_0x820846(0x14d)]}}:_0x24d80a)}:_0x157426;}function Oe(){const _0x3b67fd=_0x5c891b;return Math[_0x3b67fd(0x114)]()[_0x3b67fd(0x10c)](0x24)[_0x3b67fd(0xdf)](0x2,0x8);}k[_0x5c891b(0x12e)]=_0x5c891b(0xec);const we={'tag':'svg','attrs':{'xmlns':_0x5c891b(0x152),'fill':'none','viewBox':_0x5c891b(0x120),'width':_0x5c891b(0x134),'height':_0x5c891b(0x134)},'children':[{'tag':'path','attrs':{'fill':_0x5c891b(0xde),'d':_0x5c891b(0xee)}},{'tag':'path','attrs':{'fill':_0x5c891b(0xde),'d':_0x5c891b(0x17c),'fillRule':_0x5c891b(0x109),'clipRule':_0x5c891b(0x109)}}]},W=_0x2542a7(function(_0x38b9c4,_0x1007a9){const _0x55d74b=_0x5c891b;return _0x21df1f(k,Object[_0x55d74b(0x14f)]({},_0x38b9c4,{'id':_0x55d74b(0x121),'ref':_0x1007a9,'icon':we}));});W[_0x5c891b(0x12e)]=_0x5c891b(0x116);class L extends _0x431729{constructor(){const _0x4ac952=_0x5c891b;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x4ac952(0xf6),new Set());}['registerSharedOperation'](_0x20ac42){const _0x5c9715=_0x5c891b;return this[_0x5c9715(0x13c)][_0x5c9715(0x139)](_0x20ac42),_0x2a75a6(()=>this[_0x5c9715(0x13c)][_0x5c9715(0x135)](_0x20ac42));}[_0x5c891b(0x168)](_0x3fc39d){const _0x4383f1=_0x5c891b;return this[_0x4383f1(0xf6)][_0x4383f1(0x139)](_0x3fc39d),_0x2a75a6(()=>this[_0x4383f1(0xf6)]['delete'](_0x3fc39d));}['shouldShareOperation'](_0x49df9e){const _0x32be29=_0x5c891b;return this[_0x32be29(0x13c)][_0x32be29(0x166)](_0x49df9e);}['getInitialStates'](_0x3f85d0){const _0x1ff91f=_0x5c891b;return Array[_0x1ff91f(0x129)](this[_0x1ff91f(0xf6)])['map'](_0x25030f=>_0x25030f(_0x3f85d0));}}var Ne=Object[_0x5c891b(0x12a)],Y=(_0x364232,_0x59ffda,_0x4bc055,_0x1453d8)=>{const _0x396d74=_0x5c891b;for(var _0x4f0f3b=_0x1453d8>0x1?void 0x0:_0x1453d8?Ne(_0x59ffda,_0x4bc055):_0x59ffda,_0x371ee7=_0x364232[_0x396d74(0x11e)]-0x1,_0x26a79e;_0x371ee7>=0x0;_0x371ee7--)(_0x26a79e=_0x364232[_0x371ee7])&&(_0x4f0f3b=_0x26a79e(_0x4f0f3b)||_0x4f0f3b);return _0x4f0f3b;},_=(_0x3eec54,_0x2989b4)=>(_0x36ecad,_0x2d3a49)=>_0x2989b4(_0x36ecad,_0x2d3a49,_0x3eec54);let S=class extends _0x2994f4{constructor(_0x10ecb8,_0x274e6b,_0x7e5ae4){const _0x1de7a9=_0x5c891b;super(),u(this,_0x1de7a9(0x16e),new Map()),(this['_univerInstanceService']=_0x10ecb8,this[_0x1de7a9(0x15f)]=_0x274e6b,this[_0x1de7a9(0x10b)]=_0x7e5ae4,this[_0x1de7a9(0x142)]());}async['getLiveShareCoordinator'](_0x50c6ea){const _0x2f5d15=_0x5c891b;return this[_0x2f5d15(0x16e)][_0x2f5d15(0x166)](_0x50c6ea)||await this[_0x2f5d15(0xff)](_0x50c6ea),this[_0x2f5d15(0x16e)]['get'](_0x50c6ea);}[_0x5c891b(0x118)](_0x48b606){const _0x57ef09=_0x5c891b;var _0x38d21e;return(_0x38d21e=this[_0x57ef09(0x16e)][_0x57ef09(0xda)](_0x48b606))!=null?_0x38d21e:null;}[_0x5c891b(0x142)](){const _0x225e30=_0x5c891b;this['_univerInstanceService'][_0x225e30(0xe9)](_0x4e9761[_0x225e30(0xdb)])['pipe'](_0x2a74ec(this[_0x225e30(0x119)]))['subscribe'](async _0x4abc25=>{const _0x52a674=_0x225e30,_0x44d1de=_0x4abc25[_0x52a674(0x155)]();this[_0x52a674(0x16e)][_0x52a674(0x166)](_0x44d1de)||this['_startLiveShareCoordinator'](_0x44d1de);}),this[_0x225e30(0x173)][_0x225e30(0x146)](_0x4e9761[_0x225e30(0xdb)])['pipe'](_0x2a74ec(this[_0x225e30(0x119)]))['subscribe'](_0xdb90e7=>{const _0x5d5158=_0x225e30,_0x1991ba=_0xdb90e7[_0x5d5158(0x155)](),_0x3d1f6b=this[_0x5d5158(0x16e)][_0x5d5158(0xda)](_0x1991ba);_0x3d1f6b==null||_0x3d1f6b[_0x5d5158(0x15c)]();});}async['_startLiveShareCoordinator'](_0x550255){const _0x3ca347=_0x5c891b,_0x3e6164=await this['_collabSessionService'][_0x3ca347(0x10a)](_0x550255),_0x428235=this[_0x3ca347(0x15f)][_0x3ca347(0x156)](N,_0x550255,_0x3e6164);return _0x428235[_0x3ca347(0x11d)](),this['_entities'][_0x3ca347(0x13e)](_0x550255,_0x428235),_0x428235;}};S=Y([_(0x0,_0xb62e9f),_(0x1,_0x5c0b1a(_0x122406)),_(0x2,_0x5c0b1a(_0x1ee3d1))],S);var c=(_0x3621f8=>(_0x3621f8['OFFLINE']=_0x5c891b(0x14a),_0x3621f8[_0x5c891b(0x127)]=_0x5c891b(0x158),_0x3621f8[_0x5c891b(0x122)]=_0x5c891b(0x160),_0x3621f8[_0x5c891b(0x13f)]=_0x5c891b(0x111),_0x3621f8[_0x5c891b(0x13a)]=_0x5c891b(0xe8),_0x3621f8))(c||{});const Ce=_0x5c891b(0x107),De=0xc8;let N=class extends _0x2994f4{constructor(_0x145cd3,_0x59756e,_0x1daa51,_0xcd7384,_0x19eb6e){const _0x56fde6=_0x5c891b;super(),u(this,_0x56fde6(0xe5),new _0x5f2c0e(_0x56fde6(0x158))),u(this,_0x56fde6(0x174),this[_0x56fde6(0xe5)][_0x56fde6(0x104)]()),u(this,_0x56fde6(0x142),!0x1),u(this,'_commandDisposable',null),u(this,_0x56fde6(0x145),null),(this[_0x56fde6(0x16f)]=_0x145cd3,this[_0x56fde6(0x117)]=_0x59756e,this[_0x56fde6(0x14b)]=_0x1daa51,this[_0x56fde6(0x143)]=_0xcd7384,this[_0x56fde6(0x11a)]=_0x19eb6e);}get[_0x5c891b(0x101)](){const _0x3f6c9d=_0x5c891b;return this[_0x3f6c9d(0xe5)][_0x3f6c9d(0x15e)]();}[_0x5c891b(0x15c)](){const _0x35cd45=_0x5c891b;var _0x2c8268;(_0x2c8268=this['_commandDisposable'])==null||_0x2c8268[_0x35cd45(0x15c)](),this[_0x35cd45(0xe5)][_0x35cd45(0xf3)]('idle'),this[_0x35cd45(0xe5)][_0x35cd45(0xfe)]();}[_0x5c891b(0x10d)](){return this['_status'];}[_0x5c891b(0x11d)](){const _0x48eb97=_0x5c891b;this[_0x48eb97(0x142)]||(this[_0x48eb97(0x142)]=!0x0,this['_collabSession']['sessionStatus$'][_0x48eb97(0x167)](_0x2a74ec(this[_0x48eb97(0x119)]))[_0x48eb97(0x140)](_0x356bdd=>{const _0x459eb7=_0x48eb97;switch(_0x356bdd){case _0x4b1079[_0x459eb7(0x165)]:this['_handleOffline']();break;case _0x4b1079[_0x459eb7(0x133)]:this['_handleOnline']();break;}}),this[_0x48eb97(0x117)]['event$']['pipe'](_0x2a74ec(this[_0x48eb97(0x119)]))[_0x48eb97(0x140)](_0x3163d5=>{const _0x9b9a40=_0x48eb97,{eventID:_0x29ffc5}=_0x3163d5;switch(_0x29ffc5){case _0x5b0c32[_0x9b9a40(0x151)]:this[_0x9b9a40(0x10e)](_0x3163d5);break;case _0x5b0c32[_0x9b9a40(0x175)]:this['_handleOperation'](_0x3163d5);break;case _0x5b0c32[_0x9b9a40(0xea)]:this[_0x9b9a40(0xfb)]();break;case _0x5b0c32['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x3163d5);break;}}));}['tryStartPresenting'](){const _0x115a56=_0x5c891b;this[_0x115a56(0x117)][_0x115a56(0xfc)]({'eventID':_0x5b0c32[_0x115a56(0xdc)],'data':{'unitID':this['_unitID'],'userID':this[_0x115a56(0x117)][_0x115a56(0x13b)]()}},this[_0x115a56(0x16f)]);}[_0x5c891b(0x16a)](){const _0x3a4e92=_0x5c891b;this[_0x3a4e92(0x101)]===_0x3a4e92(0xe8)&&(this[_0x3a4e92(0xe5)][_0x3a4e92(0xf3)]('idle'),this[_0x3a4e92(0x117)][_0x3a4e92(0xfc)]({'eventID':_0x5b0c32['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x3a4e92(0x16f)]}},this[_0x3a4e92(0x16f)]));}[_0x5c891b(0xe1)](){const _0xae92a2=_0x5c891b;this[_0xae92a2(0x101)]===_0xae92a2(0x111)&&(this[_0xae92a2(0xe5)][_0xae92a2(0xf3)](_0xae92a2(0x160)),this[_0xae92a2(0x12c)]());}['stopFollowing'](){const _0x2d5d90=_0x5c891b;this['_status']===_0x2d5d90(0x160)&&this[_0x2d5d90(0xe4)]();}[_0x5c891b(0x10e)](_0x433812){const _0x17e494=_0x5c891b,{presenter:_0x40ddbf}=_0x433812[_0x17e494(0x17d)],_0x242d4a=this[_0x17e494(0x117)][_0x17e494(0x13b)]();this[_0x17e494(0x145)]=_0x40ddbf,_0x40ddbf===_0x242d4a?(this[_0x17e494(0xe4)](),this[_0x17e494(0x153)]()):this[_0x17e494(0x101)]!==_0x17e494(0x111)&&(this['_stopPresenting'](),this[_0x17e494(0x12c)]());}[_0x5c891b(0x12b)](){const _0x5a4cd1=_0x5c891b,_0x18ffe8={'eventID':_0x5b0c32['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x5a4cd1(0xfc)](_0x18ffe8,this[_0x5a4cd1(0x16f)]);}[_0x5c891b(0xfb)](){const _0xe4fbcc=_0x5c891b;this[_0xe4fbcc(0x145)]=null,this[_0xe4fbcc(0x101)]!=='presenting'&&this[_0xe4fbcc(0xf4)]();}[_0x5c891b(0xfd)](_0x38a7fc){const _0xcb3dce=_0x5c891b;if(this[_0xcb3dce(0x101)]===_0xcb3dce(0x160)&&this[_0xcb3dce(0x145)]===_0x38a7fc['data'][_0xcb3dce(0x115)]){const _0x35ce9f=_0x37c054(_0x38a7fc[_0xcb3dce(0x17d)])[_0xcb3dce(0x15a)]['reverse']()['find'](_0x53fda1=>_0x53fda1['id']===_0x36d1bf['id']);if(_0x35ce9f){const _0x2b5f3b=_0x35ce9f[_0xcb3dce(0x16c)][_0xcb3dce(0x162)],_0x4213be=_0x35ce9f[_0xcb3dce(0x16c)][_0xcb3dce(0x124)]['id'];setTimeout(()=>{const _0xf3faf9=_0xcb3dce;this['_commandService'][_0xf3faf9(0x161)](_0x5564c8['id'],{'unitId':_0x2b5f3b,'subUnitId':_0x4213be},{'fromCollab':!0x0});});}}}[_0x5c891b(0x153)](){const _0x392112=_0x5c891b;this[_0x392112(0xe5)]['next'](_0x392112(0xe8));const _0x76b929=new Map(),_0x207b17=this[_0x392112(0xf9)]=new _0x35b926();_0x207b17[_0x392112(0x139)](_0x2a75a6(()=>{const _0x425e0f=_0x392112;_0x76b929[_0x425e0f(0x128)](_0x47a59a=>_0x47a59a['complete']()),_0x76b929[_0x425e0f(0x17b)]();})),_0x207b17[_0x392112(0x139)](this[_0x392112(0x11a)][_0x392112(0x14c)](_0x35a3c8=>{const _0x4b7eee=_0x392112;var _0x1de7b7;if(_0x35a3c8[_0x4b7eee(0x163)]!==_0x419595[_0x4b7eee(0x178)]||!this[_0x4b7eee(0x143)]['shouldShareOperation'](_0x35a3c8['id']))return;const {id:_0x252f25}=_0x35a3c8;let _0x2fc419;_0x76b929[_0x4b7eee(0x166)](_0x252f25)?_0x2fc419=_0x76b929[_0x4b7eee(0xda)](_0x252f25):(_0x2fc419=new _0x4d0e55(),_0x76b929[_0x4b7eee(0x13e)](_0x252f25,_0x2fc419),_0x2fc419[_0x4b7eee(0x167)](_0x3d3727((_0x1de7b7=this['_configService'][_0x4b7eee(0x15b)](Ce))!=null?_0x1de7b7:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4b7eee(0x140)](_0x35a763=>{const _0x2a9baa=_0x4b7eee;this[_0x2a9baa(0x117)][_0x2a9baa(0xfc)]({'eventID':_0x5b0c32[_0x2a9baa(0x175)],'data':{'unitID':this[_0x2a9baa(0x16f)],'operations':{[_0x35a763['id']]:{'id':_0x35a763['id'],'params':JSON[_0x2a9baa(0x137)](_0x35a763['params'])}}}},this['_unitID']);})),_0x2fc419['next'](_0x35a3c8);})),this[_0x392112(0x143)][_0x392112(0x103)](this['_unitID'])['forEach'](_0x151742=>this[_0x392112(0x117)][_0x392112(0xfc)]({'eventID':_0x5b0c32[_0x392112(0x175)],'data':{'unitID':this['_unitID'],'operations':{[_0x151742['id']]:{'id':_0x151742['id'],'params':JSON[_0x392112(0x137)](_0x151742['params'])}}}},this[_0x392112(0x16f)]));}[_0x5c891b(0x172)](){const _0x399bee=_0x5c891b;var _0x278625;this[_0x399bee(0xe5)][_0x399bee(0xf3)](_0x399bee(0x158)),(_0x278625=this[_0x399bee(0xf9)])==null||_0x278625[_0x399bee(0x15c)](),this[_0x399bee(0xf9)]=null;}[_0x5c891b(0x12c)](){const _0xd0efcb=_0x5c891b;var _0x512c79;(_0x512c79=this[_0xd0efcb(0xf9)])==null||_0x512c79['dispose'](),this[_0xd0efcb(0xe5)][_0xd0efcb(0xf3)](_0xd0efcb(0x160));}[_0x5c891b(0xf4)](){const _0x3b9709=_0x5c891b;var _0xe1931b;this[_0x3b9709(0xe5)][_0x3b9709(0xf3)](_0x3b9709(0x158)),(_0xe1931b=this[_0x3b9709(0xf9)])==null||_0xe1931b[_0x3b9709(0x15c)](),this['_commandDisposable']=null;}[_0x5c891b(0xe4)](){const _0x2b35fc=_0x5c891b;var _0x88a924;this[_0x2b35fc(0xe5)][_0x2b35fc(0xf3)]('not-following'),(_0x88a924=this[_0x2b35fc(0xf9)])==null||_0x88a924[_0x2b35fc(0x15c)]();}[_0x5c891b(0xf7)](_0x537ffc){const _0x5a41e4=_0x5c891b;if(['presenting','not-following','offline'][_0x5a41e4(0x15d)](this[_0x5a41e4(0x101)])||!_0x537ffc[_0x5a41e4(0x17d)]['presenter']||_0x537ffc[_0x5a41e4(0x17d)][_0x5a41e4(0x157)]===this[_0x5a41e4(0x117)][_0x5a41e4(0x13b)]())return;this[_0x5a41e4(0x101)]===_0x5a41e4(0x158)&&this[_0x5a41e4(0x12c)]();const _0x358c8d=_0x537ffc[_0x5a41e4(0x17d)]['operations'];Object[_0x5a41e4(0xef)](_0x358c8d)['forEach'](_0x4b87d3=>{const _0x546da0=_0x5a41e4;this[_0x546da0(0x11a)][_0x546da0(0x161)](_0x4b87d3['id'],_0x4b87d3['params']?JSON[_0x546da0(0x164)](_0x4b87d3[_0x546da0(0x16c)]):null,{'fromCollab':!0x0});});}[_0x5c891b(0x112)](){const _0x7712fe=_0x5c891b;var _0x5e6997;this['_status$'][_0x7712fe(0xf3)](_0x7712fe(0x14a)),(_0x5e6997=this['_commandDisposable'])==null||_0x5e6997[_0x7712fe(0x15c)]();}[_0x5c891b(0x110)](){const _0x24ed7c=_0x5c891b;this[_0x24ed7c(0xe5)][_0x24ed7c(0xf3)]('idle'),this[_0x24ed7c(0x12b)]();}};N=Y([_(0x2,_0x3ef321),_(0x3,_0x5c0b1a(L)),_(0x4,_0x113a75)],N);function Le(){const _0x2e8662=_0x5c891b,_0x46846f=_0x59cba9(S),_0x29bfb9=_0x59cba9(_0xb62e9f),_0xb80694=_0x172d74(()=>_0x29bfb9[_0x2e8662(0x130)](_0x4e9761[_0x2e8662(0xdb)]),void 0x0,!0x1,[]),[_0x107360,_0x17d935]=_0x8acbe5(null),[_0x11ea72,_0x5b4511]=_0x8acbe5(c[_0x2e8662(0x127)]),_0x57db96=_0x567279(null);return _0xb9123a(()=>(_0xb80694&&_0x46846f[_0x2e8662(0x159)](_0xb80694[_0x2e8662(0x155)]())[_0x2e8662(0x144)](_0x27adf9=>{const _0x25b66e=_0x2e8662;_0x17d935(_0x27adf9),_0x57db96[_0x25b66e(0xf5)]=_0x27adf9[_0x25b66e(0x174)][_0x25b66e(0x140)](_0x299c41=>{_0x5b4511(_0x299c41);});}),()=>{const _0x370c58=_0x2e8662;var _0x41841c;(_0x41841c=_0x57db96[_0x370c58(0xf5)])==null||_0x41841c[_0x370c58(0x136)](),_0x57db96['current']=null;}),[_0xb80694,_0x46846f]),_0x107360?_0x22293e(_0x55a60a,{'align':'end','disabled':_0x11ea72===c[_0x2e8662(0x165)],'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':_0x22293e(Re,{'status':_0x11ea72,'coordinator':_0x107360}),'children':_0x22293e(_0x2e8662(0x12f),{'className':_0x391744(_0x2e8662(0x177),{'univer-cursor-not-allowed':_0x11ea72===c[_0x2e8662(0x165)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x11ea72!==c['OFFLINE']}),'type':_0x2e8662(0x12f),'children':_0x22293e(W,{'className':'univer-size-4'})})}):null;}function Re(_0xebe6b7){const _0x59a0ca=_0x5c891b,{status:_0x4adc9d,coordinator:_0x30e75e}=_0xebe6b7;switch(_0x4adc9d){case c['IDLE']:return _0x22293e($e,{'coordinator':_0x30e75e});case c[_0x59a0ca(0x122)]:return _0x22293e(xe,{'coordinator':_0x30e75e});case c['NOT_FOLLOWING']:return _0x22293e(Pe,{'coordinator':_0x30e75e});case c['OFFLINE']:return _0x22293e(Te,{});case c['PRESENTING']:return _0x22293e(Ae,{'coordinator':_0x30e75e});default:return null;}}function $e(_0x2c1586){const _0x311269=_0x5c891b,{coordinator:_0x326fa0}=_0x2c1586;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e(_0x311269(0x108),{'className':_0x311269(0xe6),'children':_0x311269(0x138)}),_0x22293e(_0x5aedf4,{'onClick':()=>_0x326fa0['tryStartPresenting'](),'children':_0x311269(0x13d)})]});}function xe(_0x2b5d49){const _0x397ca3=_0x5c891b,{coordinator:_0x3eaa1b}=_0x2b5d49;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e(_0x397ca3(0x108),{'className':_0x397ca3(0xe6),'children':_0x397ca3(0x123)}),_0x22293e(_0x5aedf4,{'onClick':()=>_0x3eaa1b['stopFollowing'](),'children':_0x397ca3(0x170)})]});}function Pe(_0x6ace70){const _0x2b278a=_0x5c891b,{coordinator:_0x5aeaf1}=_0x6ace70;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e('div',{'className':_0x2b278a(0xe6),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x22293e(_0x5aedf4,{'variant':_0x2b278a(0x100),'onClick':()=>_0x5aeaf1[_0x2b278a(0xe1)](),'children':_0x2b278a(0x141)})]});}function Ae(_0x3c7a47){const _0x2aabc7=_0x5c891b,{coordinator:_0x393d4d}=_0x3c7a47;return _0xc16c99(_0x4ad7d5,{'children':[_0x22293e('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x22293e(_0x5aedf4,{'variant':_0x2aabc7(0xf0),'onClick':()=>_0x393d4d[_0x2aabc7(0x16a)](),'children':_0x2aabc7(0x17a)})]});}function Te(){return _0x22293e(_0x4ad7d5,{'children':'You\x27are\x20offline.'});}var Fe=Object[_0x5c891b(0x12a)],He=(_0xe70890,_0x1b3670,_0x59da49,_0x179e3e)=>{for(var _0x240718=_0x179e3e>0x1?void 0x0:_0x179e3e?Fe(_0x1b3670,_0x59da49):_0x1b3670,_0x7cdc85=_0xe70890['length']-0x1,_0x2723ac;_0x7cdc85>=0x0;_0x7cdc85--)(_0x2723ac=_0xe70890[_0x7cdc85])&&(_0x240718=_0x2723ac(_0x240718)||_0x240718);return _0x240718;},A=(_0x38e13f,_0x3bff8e)=>(_0x2e8fc0,_0x53adac)=>_0x3bff8e(_0x2e8fc0,_0x53adac,_0x38e13f);let m=class extends _0x431729{constructor(_0xd2e111,_0x308dba){const _0x4e99bd=_0x5c891b;super(),this[_0x4e99bd(0x15f)]=_0xd2e111,this[_0x4e99bd(0x176)]=_0x308dba,this[_0x4e99bd(0x131)]();}[_0x5c891b(0x131)](){const _0x2574bc=_0x5c891b;this[_0x2574bc(0xe2)](this['_uiPartsService']['registerComponent'](_0x348417[_0x2574bc(0x10f)],()=>_0x6df76e(Le,this[_0x2574bc(0x15f)])));}};m=He([A(0x0,_0x5c0b1a(_0x122406)),A(0x1,_0x150b13)],m);const ye=_0x5c891b(0x169),T={};var Ue=Object[_0x5c891b(0x12a)],Ve=(_0xc6d32e,_0x4f3166,_0x433df3,_0x349a72)=>{const _0x1c69eb=_0x5c891b;for(var _0x4fbdc7=_0x349a72>0x1?void 0x0:_0x349a72?Ue(_0x4f3166,_0x433df3):_0x4f3166,_0x1781d9=_0xc6d32e[_0x1c69eb(0x11e)]-0x1,_0x1c4824;_0x1781d9>=0x0;_0x1781d9--)(_0x1c4824=_0xc6d32e[_0x1781d9])&&(_0x4fbdc7=_0x1c4824(_0x4fbdc7)||_0x4fbdc7);return _0x4fbdc7;},je=(_0x529ed1,_0x185e52)=>(_0x46e878,_0x32c45e)=>_0x185e52(_0x46e878,_0x32c45e,_0x529ed1);function _0x13cf(){const _0x481ce6=['LIVESHARE_NEW_HOST','http://www.w3.org/2000/svg','_startPresenting','fill','getUnitId','createInstance','presenter','idle','getLiveShareCoordinator','mutations','getConfig','dispose','includes','getValue','_injector','following','executeCommand','unitId','type','parse','OFFLINE','has','pipe','registerInitialStateReporter','live-share.config','stopPresenting','722994BLrhHq','params','1523720ADbKLF','_entities','_unitID','Stop\x20following','map','_stopPresenting','_univerInstanceService','status$','LIVESHARE_OPERATION','_uiPartsService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','OPERATION','tag','Stop\x20presenting','clear','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','data','get','UNIVER_SHEET','LIVESHARE_REQUEST_HOST','onRendered','currentColor','substring','5046CHcPnD','startFollowing','disposeWithMe','16412740CkJGqN','_stopFollowing','_status$','univer-mb-3\x20univer-w-full\x20univer-text-sm','2831227ugnzHi','presenting','getTypeOfUnitAdded$','LIVESHARE_TERMINATE','mask','UniverIcon','4965129REChjX','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','values','default','url(#$1','entries','next','_beIdle','current','_reporters','_handleOperation','UNIVER_UNKNOWN','_commandDisposable','_config','_handleTerminate','send','_handleNewChangeSets','complete','_startLiveShareCoordinator','text','_status','children','getInitialStates','asObservable','pluginName','override','SAME_OPERATION_SHARE_INTERVAL','div','evenodd','requireSession','_collabSessionService','toString','getStatus','_handleNewHost','HEADER_MENU','_handleOnline','not-following','_handleOffline','registerSharedOperation','random','memberID','LiveShareIcon','_collabSession','getLiveShareCoordinatorSync','dispose$','_commandService','4985NQHVnM','defineProperty','init','length','16iaKIew','0\x200\x2017\x2017','live-share-icon','FOLLOWING','You\x27re\x20following\x20the\x20presenter','sheet','4343208HekjOn','string','IDLE','forEach','from','getOwnPropertyDescriptor','_fetchOperations','_startFollowing','xlink:href','displayName','button','getCurrentTypeOfUnit$','_mountLiveShare','6NMAWMA','ONLINE','1em','delete','unsubscribe','stringify','Present\x20this\x20document','add','PRESENTING','getMemberID','_sharedOperations','Start','set','NOT_FOLLOWING','subscribe','Start\x20following','_init','_liveShareService','then','_presenter','getTypeOfUnitDisposed$','trim','attrs','symbol','offline','_configService','onCommandExecuted','idSuffix','UNIVER_LIVE_SHARE_PLUGIN','assign','defs'];_0x13cf=function(){return _0x481ce6;};return _0x13cf();}let I=class extends _0x431729{constructor(_0xbe3fa){const _0x3c9f89=_0x5c891b;super(),this[_0x3c9f89(0x143)]=_0xbe3fa,this[_0x3c9f89(0x142)]();}['_init'](){[_0x10142f['id'],_0x57bc22['id'],_0x5564c8['id']]['forEach'](_0x3ce2d9=>{const _0x1b1c6f=_0x3f41;this[_0x1b1c6f(0xe2)](this['_liveShareService'][_0x1b1c6f(0x113)](_0x3ce2d9));});}};I=Ve([je(0x0,_0x5c0b1a(L))],I);var Me=Object[_0x5c891b(0x11c)],ke=Object[_0x5c891b(0x12a)],Ge=(_0x5d2e44,_0x275dde,_0x2f2818)=>_0x275dde in _0x5d2e44?Me(_0x5d2e44,_0x275dde,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f2818}):_0x5d2e44[_0x275dde]=_0x2f2818,We=(_0x2dfcb7,_0x454f5a,_0x2e9536,_0x3d1ffe)=>{const _0x2b6635=_0x5c891b;for(var _0x35aaa5=_0x3d1ffe>0x1?void 0x0:_0x3d1ffe?ke(_0x454f5a,_0x2e9536):_0x454f5a,_0x1f534c=_0x2dfcb7[_0x2b6635(0x11e)]-0x1,_0x49886c;_0x1f534c>=0x0;_0x1f534c--)(_0x49886c=_0x2dfcb7[_0x1f534c])&&(_0x35aaa5=_0x49886c(_0x35aaa5)||_0x35aaa5);return _0x35aaa5;},F=(_0x3c9d73,_0x483a82)=>(_0x2ff063,_0x1d551f)=>_0x483a82(_0x2ff063,_0x1d551f,_0x3c9d73),B=(_0x85ab9b,_0x27f8db,_0x157175)=>Ge(_0x85ab9b,typeof _0x27f8db!='symbol'?_0x27f8db+'':_0x27f8db,_0x157175);const Ye=_0x5c891b(0x14e);let b=class extends _0x3414a0{constructor(_0x4ee1fe=T,_0x3869cf,_0x1432a1){const _0x1f5ce2=_0x5c891b;super(),this[_0x1f5ce2(0xfa)]=_0x4ee1fe,this['_injector']=_0x3869cf,this[_0x1f5ce2(0x14b)]=_0x1432a1;const {..._0x2fd983}=_0x13e6df({},T,this[_0x1f5ce2(0xfa)]);this['_configService']['setConfig'](ye,_0x2fd983);}['onStarting'](){const _0x4b77d5=_0x5c891b;_0x12f174(this[_0x4b77d5(0x15f)],_0x3ea2c1([[L],[S],[I],[m]],this[_0x4b77d5(0xfa)][_0x4b77d5(0x106)])),_0x299450(this[_0x4b77d5(0x15f)],[[I]]);}[_0x5c891b(0xdd)](){const _0x58e9f7=_0x5c891b;_0x299450(this[_0x58e9f7(0x15f)],[[m]]);}};B(b,_0x5c891b(0x163),_0x4e9761[_0x5c891b(0xf8)]),B(b,_0x5c891b(0x105),Ye),b=We([_0x42d09e(_0x5c81aa),F(0x1,_0x5c0b1a(_0x122406)),F(0x2,_0x3ef321)],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 _0x4e27(_0x42c8d4,_0x1602b6){_0x42c8d4=_0x42c8d4-0x12e;const _0x42f9e8=_0x42f9();let _0x4e2766=_0x42f9e8[_0x42c8d4];return _0x4e2766;}function _0x42f9(){const _0x20a766=['function','getLiveShareStatus','getUnitId','@univerjs-pro/live-share','UniverProLiveShare','executeCommand','startColumn','@univerjs/core/facade','40MJOVdK','LiveShareStatus','getSheetId','LiveShareStatusEnum','tryStartPresenting','IRenderManagerService','UniverSheetsFacade','getRenderById','515629ksfXFw','get','No\x20active\x20workbook\x20found.','SetWorksheetActiveOperation','extend','getLiveShareCoordinatorSync','@univerjs/sheets-ui','2686734eJXRoH','FUniver','3041365ODtuAo','27PokXDy','LiveShareController','startFollowing','getActiveWorkbook','FRange','UniverSheets','stopFollowing','196371tIzael','_injector','getId','PRESENTING','1570694VUpMJt','UniverSheetsUi','120412GlQbRY','FEnum','stopPresenting','object','@univerjs/engine-render','UniverCoreFacade','UniverEngineRender','3584875MDppUq','@univerjs/sheets/facade','amd','_initialize','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','syncExecuteCommand','@univerjs/sheets','startPresenting'];_0x42f9=function(){return _0x20a766;};return _0x42f9();}(function(_0x36a965,_0x220549){const _0x1b77f8=_0x4e27,_0x16778d=_0x36a965();while(!![]){try{const _0x2d5990=parseInt(_0x1b77f8(0x159))/0x1+-parseInt(_0x1b77f8(0x137))/0x2+-parseInt(_0x1b77f8(0x163))/0x3*(-parseInt(_0x1b77f8(0x139))/0x4)+parseInt(_0x1b77f8(0x162))/0x5+parseInt(_0x1b77f8(0x160))/0x6+-parseInt(_0x1b77f8(0x140))/0x7+-parseInt(_0x1b77f8(0x151))/0x8*(parseInt(_0x1b77f8(0x133))/0x9);if(_0x2d5990===_0x220549)break;else _0x16778d['push'](_0x16778d['shift']());}catch(_0x24a93f){_0x16778d['push'](_0x16778d['shift']());}}}(_0x42f9,0x6a753),function(_0x160fb5,_0x3936b5){const _0x149c70=_0x4e27;typeof exports==_0x149c70(0x13c)&&typeof module<'u'?_0x3936b5(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==_0x149c70(0x149)&&define[_0x149c70(0x142)]?define([_0x149c70(0x14c),_0x149c70(0x13d),_0x149c70(0x147),_0x149c70(0x15f),_0x149c70(0x141),_0x149c70(0x150)],_0x3936b5):(_0x160fb5=typeof globalThis<'u'?globalThis:_0x160fb5||self,_0x3936b5(_0x160fb5[_0x149c70(0x14d)],_0x160fb5[_0x149c70(0x13f)],_0x160fb5[_0x149c70(0x131)],_0x160fb5[_0x149c70(0x138)],_0x160fb5[_0x149c70(0x157)],_0x160fb5[_0x149c70(0x13e)]));}(this,function(_0x2be22e,_0x119279,_0x52bbe3,_0x68c553,_0x35bd5f,_0x3bc277){'use strict';const _0x5878f3=_0x4e27;class _0x41dd81 extends _0x35bd5f[_0x5878f3(0x130)]{[_0x5878f3(0x143)](_0x49ef69,_0x10b1a6,_0x5897fb,_0x5480d8,_0x8e22f5){const _0xa74ebf=_0x5878f3,_0x22a6e2=_0x49ef69['get'](_0x2be22e[_0xa74ebf(0x164)]),_0x48d3dd=_0x49ef69[_0xa74ebf(0x15a)](_0x119279[_0xa74ebf(0x156)]),_0x57431d=_0x10b1a6[_0xa74ebf(0x14b)](),_0x310ee5=_0x10b1a6['getActiveSheet'](),_0x5efc99=_0x22a6e2[_0xa74ebf(0x15e)](_0x57431d);(_0x5efc99==null?void 0x0:_0x5efc99[_0xa74ebf(0x145)]())!==_0x2be22e['LiveShareStatus'][_0xa74ebf(0x136)]||(_0x5897fb[_0xa74ebf(0x153)]()!==_0x310ee5[_0xa74ebf(0x153)]()&&this['_commandService'][_0xa74ebf(0x14e)](_0x52bbe3[_0xa74ebf(0x15c)]['id'],{'unitId':_0x57431d,'subUnitId':_0x5897fb[_0xa74ebf(0x153)]()}),!_0x48d3dd[_0xa74ebf(0x158)](_0x57431d))||_0x8e22f5[_0xa74ebf(0x146)](_0x68c553['SetScrollOperation']['id'],{'unitId':_0x10b1a6[_0xa74ebf(0x14b)](),'sheetId':_0x5897fb[_0xa74ebf(0x153)](),'sheetViewStartRow':_0x5480d8['startRow'],'sheetViewStartColumn':_0x5480d8[_0xa74ebf(0x14f)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x35bd5f['FRange'][_0x5878f3(0x15d)](_0x41dd81);class _0x523dbe extends _0x3bc277[_0x5878f3(0x161)]{[_0x5878f3(0x14a)](){const _0x45d4d5=_0x5878f3;var _0x555238,_0x12dcd3;const _0x3faf1d=this[_0x45d4d5(0x134)][_0x45d4d5(0x15a)](_0x2be22e[_0x45d4d5(0x164)]),_0xed7d90=(_0x555238=this[_0x45d4d5(0x12f)]())==null?void 0x0:_0x555238['getId']();if(!_0xed7d90)throw new Error(_0x45d4d5(0x15b));const _0x78d8f8=_0x3faf1d[_0x45d4d5(0x15e)](_0xed7d90);return(_0x12dcd3=_0x78d8f8==null?void 0x0:_0x78d8f8['getStatus']())!=null?_0x12dcd3:_0x2be22e[_0x45d4d5(0x152)]['IDLE'];}[_0x5878f3(0x12e)](){const _0x591c66=_0x5878f3;var _0x4feca5;const _0x3ea656=this['_injector'][_0x591c66(0x15a)](_0x2be22e[_0x591c66(0x164)]),_0x1778d3=(_0x4feca5=this[_0x591c66(0x12f)]())==null?void 0x0:_0x4feca5[_0x591c66(0x135)]();if(!_0x1778d3)throw new Error('No\x20active\x20workbook\x20found.');const _0x26155d=_0x3ea656[_0x591c66(0x15e)](_0x1778d3);if(!_0x26155d)throw new Error(_0x591c66(0x144));_0x26155d['startFollowing']();}['stopFollowing'](){const _0x1fdaa4=_0x5878f3;var _0x3ed54f;const _0x226465=this['_injector'][_0x1fdaa4(0x15a)](_0x2be22e[_0x1fdaa4(0x164)]),_0x41b0f9=(_0x3ed54f=this[_0x1fdaa4(0x12f)]())==null?void 0x0:_0x3ed54f[_0x1fdaa4(0x135)]();if(!_0x41b0f9)throw new Error('No\x20active\x20workbook\x20found.');const _0x571f5d=_0x226465['getLiveShareCoordinatorSync'](_0x41b0f9);if(!_0x571f5d)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x571f5d[_0x1fdaa4(0x132)]();}[_0x5878f3(0x148)](){const _0xdb7722=_0x5878f3;var _0x1b6c8e;const _0x1845cc=this[_0xdb7722(0x134)][_0xdb7722(0x15a)](_0x2be22e[_0xdb7722(0x164)]),_0x3b5151=(_0x1b6c8e=this[_0xdb7722(0x12f)]())==null?void 0x0:_0x1b6c8e[_0xdb7722(0x135)]();if(!_0x3b5151)throw new Error(_0xdb7722(0x15b));const _0x527e61=_0x1845cc[_0xdb7722(0x15e)](_0x3b5151);if(!_0x527e61)throw new Error(_0xdb7722(0x144));_0x527e61[_0xdb7722(0x155)]();}[_0x5878f3(0x13b)](){const _0xd8460f=_0x5878f3;var _0xf4881c;const _0x2f2cee=this[_0xd8460f(0x134)][_0xd8460f(0x15a)](_0x2be22e[_0xd8460f(0x164)]),_0x2c9020=(_0xf4881c=this['getActiveWorkbook']())==null?void 0x0:_0xf4881c[_0xd8460f(0x135)]();if(!_0x2c9020)throw new Error('No\x20active\x20workbook\x20found.');const _0xcf894d=_0x2f2cee['getLiveShareCoordinatorSync'](_0x2c9020);if(!_0xcf894d)throw new Error(_0xd8460f(0x144));_0xcf894d[_0xd8460f(0x13b)]();}}_0x3bc277['FUniver'][_0x5878f3(0x15d)](_0x523dbe);class _0x2b1ea0 extends _0x3bc277[_0x5878f3(0x13a)]{get[_0x5878f3(0x154)](){const _0x258345=_0x5878f3;return _0x2be22e[_0x258345(0x152)];}}_0x3bc277[_0x5878f3(0x13a)]['extend'](_0x2b1ea0);}));
1
+ (function(_0x2e90fc,_0x19e8a8){const _0x35e946=_0x3fbc,_0x4950de=_0x2e90fc();while(!![]){try{const _0x1b9d9d=parseInt(_0x35e946(0x103))/0x1+-parseInt(_0x35e946(0x106))/0x2*(-parseInt(_0x35e946(0x11b))/0x3)+parseInt(_0x35e946(0x100))/0x4*(parseInt(_0x35e946(0x109))/0x5)+-parseInt(_0x35e946(0xf9))/0x6*(-parseInt(_0x35e946(0x10f))/0x7)+parseInt(_0x35e946(0xef))/0x8*(parseInt(_0x35e946(0x110))/0x9)+-parseInt(_0x35e946(0x119))/0xa+parseInt(_0x35e946(0x11c))/0xb*(-parseInt(_0x35e946(0xfd))/0xc);if(_0x1b9d9d===_0x19e8a8)break;else _0x4950de['push'](_0x4950de['shift']());}catch(_0x330b23){_0x4950de['push'](_0x4950de['shift']());}}}(_0x1398,0x85082),function(_0x53c492,_0x4a8019){const _0x5b6c39=_0x3fbc;typeof exports==_0x5b6c39(0x11a)&&typeof module<'u'?_0x4a8019(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==_0x5b6c39(0xfc)&&define[_0x5b6c39(0x11d)]?define([_0x5b6c39(0x105),_0x5b6c39(0x114),_0x5b6c39(0x112),'@univerjs/sheets-ui','@univerjs/sheets/facade',_0x5b6c39(0x115)],_0x4a8019):(_0x53c492=typeof globalThis<'u'?globalThis:_0x53c492||self,_0x4a8019(_0x53c492['UniverProLiveShare'],_0x53c492[_0x5b6c39(0xf4)],_0x53c492[_0x5b6c39(0x10a)],_0x53c492[_0x5b6c39(0xfb)],_0x53c492[_0x5b6c39(0xf6)],_0x53c492['UniverCoreFacade']));}(this,function(_0x518b79,_0x20ca34,_0x4540d5,_0x4d8163,_0x2f62ef,_0x1f3491){'use strict';const _0x4196d9=_0x3fbc;class _0x241ac3 extends _0x2f62ef['FRange']{[_0x4196d9(0x10c)](_0x20b4a8,_0x560968,_0x35c420,_0x127d72,_0x3dcaba){const _0x53a9ec=_0x4196d9,_0x3deb09=_0x20b4a8[_0x53a9ec(0x101)](_0x518b79['LiveShareController']),_0x47c45f=_0x20b4a8[_0x53a9ec(0x101)](_0x20ca34['IRenderManagerService']),_0x322d64=_0x560968[_0x53a9ec(0xf8)](),_0x1abf3c=_0x560968['getActiveSheet'](),_0x544d56=_0x3deb09[_0x53a9ec(0x11f)](_0x322d64);(_0x544d56==null?void 0x0:_0x544d56[_0x53a9ec(0xfe)]())!==_0x518b79[_0x53a9ec(0x121)][_0x53a9ec(0x10b)]||(_0x35c420[_0x53a9ec(0x120)]()!==_0x1abf3c[_0x53a9ec(0x120)]()&&this['_commandService'][_0x53a9ec(0x10e)](_0x4540d5[_0x53a9ec(0x11e)]['id'],{'unitId':_0x322d64,'subUnitId':_0x35c420['getSheetId']()}),!_0x47c45f[_0x53a9ec(0x111)](_0x322d64))||_0x3dcaba[_0x53a9ec(0x104)](_0x4d8163['SetScrollOperation']['id'],{'unitId':_0x560968[_0x53a9ec(0xf8)](),'sheetId':_0x35c420[_0x53a9ec(0x120)](),'sheetViewStartRow':_0x127d72[_0x53a9ec(0x10d)],'sheetViewStartColumn':_0x127d72[_0x53a9ec(0x117)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x2f62ef['FRange']['extend'](_0x241ac3);class _0x11cfd7 extends _0x1f3491[_0x4196d9(0x116)]{[_0x4196d9(0xf2)](){const _0xc0ba28=_0x4196d9;var _0xf86ee2,_0x45ed93;const _0x5208f7=this[_0xc0ba28(0xff)]['get'](_0x518b79[_0xc0ba28(0x108)]),_0x555980=(_0xf86ee2=this[_0xc0ba28(0xf1)]())==null?void 0x0:_0xf86ee2[_0xc0ba28(0xf7)]();if(!_0x555980)throw new Error('No\x20active\x20workbook\x20found.');const _0x314018=_0x5208f7[_0xc0ba28(0x11f)](_0x555980);return(_0x45ed93=_0x314018==null?void 0x0:_0x314018[_0xc0ba28(0xfe)]())!=null?_0x45ed93:_0x518b79[_0xc0ba28(0x121)][_0xc0ba28(0xf0)];}[_0x4196d9(0x102)](){const _0x19a611=_0x4196d9;var _0x37e413;const _0x5c2c6e=this['_injector']['get'](_0x518b79[_0x19a611(0x108)]),_0x25a6c6=(_0x37e413=this[_0x19a611(0xf1)]())==null?void 0x0:_0x37e413[_0x19a611(0xf7)]();if(!_0x25a6c6)throw new Error('No\x20active\x20workbook\x20found.');const _0x2f4b0f=_0x5c2c6e[_0x19a611(0x11f)](_0x25a6c6);if(!_0x2f4b0f)throw new Error(_0x19a611(0x113));_0x2f4b0f[_0x19a611(0x102)]();}['stopFollowing'](){const _0x4d48ea=_0x4196d9;var _0x5e246d;const _0x1ad9a1=this['_injector'][_0x4d48ea(0x101)](_0x518b79[_0x4d48ea(0x108)]),_0x277dc7=(_0x5e246d=this[_0x4d48ea(0xf1)]())==null?void 0x0:_0x5e246d[_0x4d48ea(0xf7)]();if(!_0x277dc7)throw new Error(_0x4d48ea(0xf3));const _0x295d0f=_0x1ad9a1['getLiveShareCoordinatorSync'](_0x277dc7);if(!_0x295d0f)throw new Error(_0x4d48ea(0x113));_0x295d0f['stopFollowing']();}[_0x4196d9(0xfa)](){const _0x3e8a3c=_0x4196d9;var _0x307bf4;const _0x245c7f=this[_0x3e8a3c(0xff)][_0x3e8a3c(0x101)](_0x518b79['LiveShareController']),_0x47bd3e=(_0x307bf4=this[_0x3e8a3c(0xf1)]())==null?void 0x0:_0x307bf4['getId']();if(!_0x47bd3e)throw new Error(_0x3e8a3c(0xf3));const _0x3b326a=_0x245c7f[_0x3e8a3c(0x11f)](_0x47bd3e);if(!_0x3b326a)throw new Error(_0x3e8a3c(0x113));_0x3b326a['tryStartPresenting']();}['stopPresenting'](){const _0x11ee8f=_0x4196d9;var _0xb3ed51;const _0x5188b4=this['_injector']['get'](_0x518b79['LiveShareController']),_0x555490=(_0xb3ed51=this['getActiveWorkbook']())==null?void 0x0:_0xb3ed51['getId']();if(!_0x555490)throw new Error('No\x20active\x20workbook\x20found.');const _0x5ee789=_0x5188b4[_0x11ee8f(0x11f)](_0x555490);if(!_0x5ee789)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x5ee789[_0x11ee8f(0xf5)]();}}_0x1f3491[_0x4196d9(0x116)][_0x4196d9(0x107)](_0x11cfd7);class _0x12dccb extends _0x1f3491[_0x4196d9(0x118)]{get['LiveShareStatusEnum'](){const _0x4fbbe4=_0x4196d9;return _0x518b79[_0x4fbbe4(0x121)];}}_0x1f3491[_0x4196d9(0x118)][_0x4196d9(0x107)](_0x12dccb);}));function _0x3fbc(_0x1a6881,_0x3d7a71){_0x1a6881=_0x1a6881-0xef;const _0x1398ab=_0x1398();let _0x3fbc7f=_0x1398ab[_0x1a6881];return _0x3fbc7f;}function _0x1398(){const _0x2f2bde=['No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','@univerjs/engine-render','@univerjs/core/facade','FUniver','startColumn','FEnum','311820REIhsS','object','3ifjUpL','1507TcmlKe','amd','SetWorksheetActiveOperation','getLiveShareCoordinatorSync','getSheetId','LiveShareStatus','5752OsUxEA','IDLE','getActiveWorkbook','getLiveShareStatus','No\x20active\x20workbook\x20found.','UniverEngineRender','stopPresenting','UniverSheetsFacade','getId','getUnitId','6CMBiwd','startPresenting','UniverSheetsUi','function','95964AOMmSR','getStatus','_injector','4hRyYAT','get','startFollowing','405421vAsIPY','syncExecuteCommand','@univerjs-pro/live-share','1303482sVNqpE','extend','LiveShareController','1853905KbXlVA','UniverSheets','PRESENTING','_initialize','startRow','executeCommand','654185Yojprh','1881TDvLOG','getRenderById','@univerjs/sheets'];_0x1398=function(){return _0x2f2bde;};return _0x1398();}
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x1659(_0x326b71,_0x3f19be){_0x326b71=_0x326b71-0x151;const _0x5f012e=_0x5f01();let _0x1659f1=_0x5f012e[_0x326b71];return _0x1659f1;}(function(_0x1fbaf3,_0x16bad7){const _0x246ab1=_0x1659,_0x4a5478=_0x1fbaf3();while(!![]){try{const _0x446009=parseInt(_0x246ab1(0x17a))/0x1+-parseInt(_0x246ab1(0x206))/0x2+-parseInt(_0x246ab1(0x1da))/0x3*(parseInt(_0x246ab1(0x17e))/0x4)+-parseInt(_0x246ab1(0x232))/0x5*(-parseInt(_0x246ab1(0x1df))/0x6)+parseInt(_0x246ab1(0x1ac))/0x7+parseInt(_0x246ab1(0x1af))/0x8*(-parseInt(_0x246ab1(0x17c))/0x9)+-parseInt(_0x246ab1(0x15b))/0xa*(-parseInt(_0x246ab1(0x18f))/0xb);if(_0x446009===_0x16bad7)break;else _0x4a5478['push'](_0x4a5478['shift']());}catch(_0x30ca97){_0x4a5478['push'](_0x4a5478['shift']());}}}(_0x5f01,0xd2bbc),function(_0x29e3cb,_0xd606d9){const _0x3ce164=_0x1659;typeof exports==_0x3ce164(0x1ee)&&typeof module<'u'?_0xd606d9(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==_0x3ce164(0x172)&&define['amd']?define([_0x3ce164(0x191),_0x3ce164(0x18a),_0x3ce164(0x20b),'react/jsx-runtime',_0x3ce164(0x15c),_0x3ce164(0x1b4),_0x3ce164(0x218),_0x3ce164(0x176),_0x3ce164(0x17b),_0x3ce164(0x169),_0x3ce164(0x19e),'@univerjs/sheets-ui'],_0xd606d9):(_0x29e3cb=typeof globalThis<'u'?globalThis:_0x29e3cb||self,_0xd606d9(_0x29e3cb[_0x3ce164(0x1d6)]={},_0x29e3cb['UniverCore'],_0x29e3cb['UniverUi'],_0x29e3cb[_0x3ce164(0x178)],_0x29e3cb['UniverDesign'],_0x29e3cb[_0x3ce164(0x178)],_0x29e3cb[_0x3ce164(0x158)],_0x29e3cb[_0x3ce164(0x1e9)],_0x29e3cb[_0x3ce164(0x1e6)],_0x29e3cb[_0x3ce164(0x169)],_0x29e3cb[_0x3ce164(0x169)][_0x3ce164(0x1b6)],_0x29e3cb[_0x3ce164(0x210)]));}(this,function(_0x3c7f27,_0x1a4663,_0x445c44,_0x48b374,_0x4bbbf8,_0x1a8c05,_0xad8d23,_0x483082,_0x54971f,_0x5cb817,_0x42de0b,_0x1b8ea2){'use strict';const _0x1f790e=_0x1659;var _0x1a2a6c=Object['defineProperty'],_0x4c18ef=(_0x125bcc,_0x5421cf,_0x330b2c)=>_0x5421cf in _0x125bcc?_0x1a2a6c(_0x125bcc,_0x5421cf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x330b2c}):_0x125bcc[_0x5421cf]=_0x330b2c,_0x505340=(_0x3e05d3,_0x2fe4f3,_0x325d3f)=>_0x4c18ef(_0x3e05d3,typeof _0x2fe4f3!='symbol'?_0x2fe4f3+'':_0x2fe4f3,_0x325d3f);function _0x405622({ref:_0x57fe4f,..._0x1563b2}){const _0x40c969=_0x1659,{icon:_0x5f0984,id:_0x497b9a,className:_0x34767c,extend:_0x3e817c,..._0x47f4e4}=_0x1563b2,_0x3865ca=(_0x40c969(0x153)+_0x497b9a+'\x20'+(_0x34767c||''))[_0x40c969(0x21e)](),_0xaf393a=_0x1a8c05[_0x40c969(0x180)]('_'+_0x20c3f7());return _0xfb1f8d(_0x5f0984,''+_0x497b9a,{'defIds':_0x5f0984[_0x40c969(0x1ca)],'idSuffix':_0xaf393a['current']},{'ref':_0x57fe4f,'className':_0x3865ca,..._0x47f4e4},_0x3e817c);}function _0xfb1f8d(_0x389e39,_0x362f55,_0x51e016,_0x3f3a98,_0x5da228){const _0x4819e8=_0x1659;return _0x1a8c05['createElement'](_0x389e39['tag'],{'key':_0x362f55,..._0x419a3a(_0x389e39,_0x51e016,_0x5da228),..._0x3f3a98},(_0x394acd(_0x389e39,_0x51e016)[_0x4819e8(0x201)]||[])[_0x4819e8(0x1b9)]((_0x3401c3,_0x33a575)=>_0xfb1f8d(_0x3401c3,_0x362f55+'-'+_0x389e39['tag']+'-'+_0x33a575,_0x51e016,void 0x0,_0x5da228)));}function _0x419a3a(_0xf0237f,_0x376f52,_0x308cf3){const _0x186ba6=_0x1659,_0x2791ca={..._0xf0237f[_0x186ba6(0x1a7)]};_0x308cf3!=null&&_0x308cf3[_0x186ba6(0x1fe)]&&_0x2791ca[_0x186ba6(0x194)]==='colorChannel1'&&(_0x2791ca['fill']=_0x308cf3[_0x186ba6(0x1fe)]),_0xf0237f[_0x186ba6(0x193)]===_0x186ba6(0x155)&&_0x2791ca['id']&&(_0x2791ca['id']=_0x2791ca['id']+_0x376f52[_0x186ba6(0x1a5)]),Object['entries'](_0x2791ca)[_0x186ba6(0x18d)](([_0x2d5621,_0x386a94])=>{const _0x1e91da=_0x186ba6;_0x2d5621===_0x1e91da(0x155)&&typeof _0x386a94=='string'&&(_0x2791ca[_0x2d5621]=_0x386a94['replace'](/url\(#(.*)\)/,'url(#$1'+_0x376f52[_0x1e91da(0x1a5)]+')'));});const {defIds:_0x3bb6e6}=_0x376f52;return!_0x3bb6e6||_0x3bb6e6[_0x186ba6(0x209)]===0x0||(_0xf0237f[_0x186ba6(0x193)]===_0x186ba6(0x1f2)&&_0x2791ca[_0x186ba6(0x1fd)]&&(_0x2791ca['xlink:href']=_0x2791ca[_0x186ba6(0x1fd)]+_0x376f52['idSuffix']),Object[_0x186ba6(0x231)](_0x2791ca)[_0x186ba6(0x18d)](([_0x6a476f,_0x5322ed])=>{const _0x24e223=_0x186ba6;typeof _0x5322ed==_0x24e223(0x16d)&&(_0x2791ca[_0x6a476f]=_0x5322ed['replace'](/url\(#(.*)\)/,_0x24e223(0x183)+_0x376f52[_0x24e223(0x1a5)]+')'));})),_0x2791ca;}function _0x394acd(_0x44d58d,_0x41ee2a){const _0x5a1ec7=_0x1659;var _0x4b3730;const {defIds:_0x2c3788}=_0x41ee2a;return!_0x2c3788||_0x2c3788[_0x5a1ec7(0x209)]===0x0?_0x44d58d:_0x44d58d[_0x5a1ec7(0x193)]===_0x5a1ec7(0x1db)&&((_0x4b3730=_0x44d58d[_0x5a1ec7(0x201)])!=null&&_0x4b3730['length'])?{..._0x44d58d,'children':_0x44d58d['children'][_0x5a1ec7(0x1b9)](_0x47a4e9=>typeof _0x47a4e9[_0x5a1ec7(0x1a7)]['id']=='string'&&_0x2c3788&&_0x2c3788[_0x5a1ec7(0x181)](_0x47a4e9[_0x5a1ec7(0x1a7)]['id'])?{..._0x47a4e9,'attrs':{..._0x47a4e9[_0x5a1ec7(0x1a7)],'id':_0x47a4e9[_0x5a1ec7(0x1a7)]['id']+_0x41ee2a[_0x5a1ec7(0x1a5)]}}:_0x47a4e9)}:_0x44d58d;}function _0x20c3f7(){const _0x25f53c=_0x1659;return Math[_0x25f53c(0x1d0)]()['toString'](0x24)['substring'](0x2,0x8);}_0x405622[_0x1f790e(0x1fc)]=_0x1f790e(0x20f);const _0x537131={'tag':_0x1f790e(0x1c9),'attrs':{'xmlns':_0x1f790e(0x22d),'fill':_0x1f790e(0x219),'viewBox':_0x1f790e(0x1be),'width':_0x1f790e(0x212),'height':_0x1f790e(0x212)},'children':[{'tag':_0x1f790e(0x229),'attrs':{'fill':_0x1f790e(0x174),'d':_0x1f790e(0x220)}},{'tag':_0x1f790e(0x229),'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':_0x1f790e(0x1d2),'clipRule':_0x1f790e(0x1d2)}}]},_0xe9087a=_0x1a8c05[_0x1f790e(0x1a8)](function(_0x53234b,_0x1fc664){const _0x29cba2=_0x1f790e;return _0x1a8c05[_0x29cba2(0x1e8)](_0x405622,Object[_0x29cba2(0x15f)]({},_0x53234b,{'id':_0x29cba2(0x157),'ref':_0x1fc664,'icon':_0x537131}));});_0xe9087a['displayName']=_0x1f790e(0x16a);class _0x2c6fcf extends _0x1a4663[_0x1f790e(0x223)]{constructor(){const _0xe9d0c3=_0x1f790e;super(...arguments),_0x505340(this,_0xe9d0c3(0x1bc),new Set()),_0x505340(this,_0xe9d0c3(0x199),new Set());}['registerSharedOperation'](_0x18dc93){const _0x19ed23=_0x1f790e;return this[_0x19ed23(0x1bc)][_0x19ed23(0x20c)](_0x18dc93),_0x1a4663[_0x19ed23(0x17f)](()=>this['_sharedOperations']['delete'](_0x18dc93));}['registerInitialStateReporter'](_0x152291){const _0xd707d8=_0x1f790e;return this[_0xd707d8(0x199)][_0xd707d8(0x20c)](_0x152291),_0x1a4663[_0xd707d8(0x17f)](()=>this[_0xd707d8(0x199)][_0xd707d8(0x164)](_0x152291));}[_0x1f790e(0x1c6)](_0x312296){const _0x2bfd41=_0x1f790e;return this[_0x2bfd41(0x1bc)][_0x2bfd41(0x22a)](_0x312296);}[_0x1f790e(0x173)](_0x4e12e4){const _0x6b1169=_0x1f790e;return Array['from'](this[_0x6b1169(0x199)])[_0x6b1169(0x1b9)](_0x5c52a9=>_0x5c52a9(_0x4e12e4));}}var _0x3f005b=Object[_0x1f790e(0x1b2)],_0x6be2a1=(_0x588298,_0x29cdb5,_0x23349a,_0x5af2fe)=>{for(var _0x4edfa9=_0x5af2fe>0x1?void 0x0:_0x5af2fe?_0x3f005b(_0x29cdb5,_0x23349a):_0x29cdb5,_0x783e76=_0x588298['length']-0x1,_0x3f8b9c;_0x783e76>=0x0;_0x783e76--)(_0x3f8b9c=_0x588298[_0x783e76])&&(_0x4edfa9=_0x3f8b9c(_0x4edfa9)||_0x4edfa9);return _0x4edfa9;},_0x8a54fb=(_0x3b9294,_0x12ee7a)=>(_0x2addb3,_0x600f83)=>_0x12ee7a(_0x2addb3,_0x600f83,_0x3b9294);_0x3c7f27[_0x1f790e(0x205)]=class extends _0x1a4663['RxDisposable']{constructor(_0x33e4cc,_0x3be6be,_0x451d6a){const _0x51bc14=_0x1f790e;super(),_0x505340(this,_0x51bc14(0x1bb),new Map()),(this['_univerInstanceService']=_0x33e4cc,this[_0x51bc14(0x162)]=_0x3be6be,this[_0x51bc14(0x1f4)]=_0x451d6a,this[_0x51bc14(0x21c)]());}async['getLiveShareCoordinator'](_0x5b91dc){const _0x5c0675=_0x1f790e;return this[_0x5c0675(0x1bb)][_0x5c0675(0x22a)](_0x5b91dc)||await this[_0x5c0675(0x156)](_0x5b91dc),this[_0x5c0675(0x1bb)][_0x5c0675(0x15d)](_0x5b91dc);}[_0x1f790e(0x1bf)](_0x410c52){const _0x491c17=_0x1f790e;var _0x1fd150;return(_0x1fd150=this[_0x491c17(0x1bb)][_0x491c17(0x15d)](_0x410c52))!=null?_0x1fd150:null;}[_0x1f790e(0x21c)](){const _0x27e7bc=_0x1f790e;this[_0x27e7bc(0x1f1)]['getTypeOfUnitAdded$'](_0x1a4663[_0x27e7bc(0x1c4)]['UNIVER_SHEET'])[_0x27e7bc(0x1b3)](_0x42de0b[_0x27e7bc(0x1ed)](this[_0x27e7bc(0x16e)]))[_0x27e7bc(0x1ef)](async _0xee8270=>{const _0x56ae93=_0x27e7bc,_0x2787ad=_0xee8270[_0x56ae93(0x1c2)]();this['_entities'][_0x56ae93(0x22a)](_0x2787ad)||this[_0x56ae93(0x156)](_0x2787ad);}),this[_0x27e7bc(0x1f1)][_0x27e7bc(0x1f7)](_0x1a4663[_0x27e7bc(0x1c4)]['UNIVER_SHEET'])['pipe'](_0x42de0b['takeUntil'](this[_0x27e7bc(0x16e)]))[_0x27e7bc(0x1ef)](_0x33ebd5=>{const _0x1cb029=_0x27e7bc,_0x1a370c=_0x33ebd5[_0x1cb029(0x1c2)](),_0x391c03=this[_0x1cb029(0x1bb)]['get'](_0x1a370c);_0x391c03==null||_0x391c03[_0x1cb029(0x1c7)]();});}async[_0x1f790e(0x156)](_0x44d170){const _0xb2bb46=_0x1f790e,_0x4a3e5c=await this['_collabSessionService']['requireSession'](_0x44d170),_0xd088fd=this[_0xb2bb46(0x162)][_0xb2bb46(0x15e)](_0x3c7f27[_0xb2bb46(0x1cc)],_0x44d170,_0x4a3e5c);return _0xd088fd[_0xb2bb46(0x1c8)](),this['_entities']['set'](_0x44d170,_0xd088fd),_0xd088fd;}},_0x3c7f27[_0x1f790e(0x205)]=_0x6be2a1([_0x8a54fb(0x0,_0x1a4663['IUniverInstanceService']),_0x8a54fb(0x1,_0x1a4663[_0x1f790e(0x192)](_0x1a4663[_0x1f790e(0x1dc)])),_0x8a54fb(0x2,_0x1a4663[_0x1f790e(0x192)](_0x483082[_0x1f790e(0x189)]))],_0x3c7f27[_0x1f790e(0x205)]);var _0x300ce0=(_0x91f8ba=>(_0x91f8ba[_0x1f790e(0x1d9)]=_0x1f790e(0x165),_0x91f8ba['IDLE']=_0x1f790e(0x1e4),_0x91f8ba[_0x1f790e(0x1ce)]=_0x1f790e(0x196),_0x91f8ba[_0x1f790e(0x1b5)]=_0x1f790e(0x1f3),_0x91f8ba[_0x1f790e(0x1d4)]=_0x1f790e(0x1c1),_0x91f8ba))(_0x300ce0||{});const _0xcca361='SAME_OPERATION_SHARE_INTERVAL',_0x176be4=0xc8;_0x3c7f27['LiveShareCoordinator']=class extends _0x1a4663[_0x1f790e(0x21a)]{constructor(_0x26ce50,_0x4bb066,_0x499011,_0x4a30c8,_0x5f4418){const _0xc0e48d=_0x1f790e;super(),_0x505340(this,_0xc0e48d(0x1e2),new _0x5cb817[(_0xc0e48d(0x1b0))](_0xc0e48d(0x1e4))),_0x505340(this,'status$',this[_0xc0e48d(0x1e2)][_0xc0e48d(0x1f8)]()),_0x505340(this,_0xc0e48d(0x21c),!0x1),_0x505340(this,_0xc0e48d(0x1ec),null),_0x505340(this,_0xc0e48d(0x1f6),null),(this[_0xc0e48d(0x1aa)]=_0x26ce50,this[_0xc0e48d(0x1f5)]=_0x4bb066,this['_configService']=_0x499011,this[_0xc0e48d(0x1b8)]=_0x4a30c8,this[_0xc0e48d(0x19a)]=_0x5f4418);}get[_0x1f790e(0x19f)](){const _0x13f469=_0x1f790e;return this[_0x13f469(0x1e2)]['getValue']();}[_0x1f790e(0x1c7)](){const _0x3b2d3e=_0x1f790e;var _0x1815af;(_0x1815af=this[_0x3b2d3e(0x1ec)])==null||_0x1815af['dispose'](),this[_0x3b2d3e(0x1e2)][_0x3b2d3e(0x1a3)](_0x3b2d3e(0x1e4)),this['_status$'][_0x3b2d3e(0x167)]();}['getStatus'](){const _0x49bdc5=_0x1f790e;return this[_0x49bdc5(0x19f)];}[_0x1f790e(0x1c8)](){const _0x3a6ebe=_0x1f790e;this['_init']||(this[_0x3a6ebe(0x21c)]=!0x0,this[_0x3a6ebe(0x1f5)][_0x3a6ebe(0x20a)][_0x3a6ebe(0x1b3)](_0x42de0b[_0x3a6ebe(0x1ed)](this[_0x3a6ebe(0x16e)]))[_0x3a6ebe(0x1ef)](_0x3c2136=>{const _0x3f4c2a=_0x3a6ebe;switch(_0x3c2136){case _0x483082['SessionStatus'][_0x3f4c2a(0x1d9)]:this[_0x3f4c2a(0x21b)]();break;case _0x483082[_0x3f4c2a(0x208)]['ONLINE']:this[_0x3f4c2a(0x1fb)]();break;}}),this['_collabSession'][_0x3a6ebe(0x198)]['pipe'](_0x42de0b[_0x3a6ebe(0x1ed)](this[_0x3a6ebe(0x16e)]))[_0x3a6ebe(0x1ef)](_0x20b624=>{const _0x4a5b11=_0x3a6ebe,{eventID:_0x5853ea}=_0x20b624;switch(_0x5853ea){case _0xad8d23['CollaborationEvent'][_0x4a5b11(0x1de)]:this[_0x4a5b11(0x19c)](_0x20b624);break;case _0xad8d23['CollaborationEvent'][_0x4a5b11(0x16f)]:this[_0x4a5b11(0x1d7)](_0x20b624);break;case _0xad8d23['CollaborationEvent'][_0x4a5b11(0x222)]:this[_0x4a5b11(0x21f)]();break;case _0xad8d23['CollaborationEvent']['NEW_CHANGESETS']:this[_0x4a5b11(0x226)](_0x20b624);break;}}));}['tryStartPresenting'](){const _0x2a4807=_0x1f790e;this[_0x2a4807(0x1f5)][_0x2a4807(0x1a9)]({'eventID':_0xad8d23[_0x2a4807(0x166)][_0x2a4807(0x1ff)],'data':{'unitID':this[_0x2a4807(0x1aa)],'userID':this['_collabSession'][_0x2a4807(0x204)]()}},this[_0x2a4807(0x1aa)]);}['stopPresenting'](){const _0x246920=_0x1f790e;this[_0x246920(0x19f)]===_0x246920(0x1c1)&&(this['_status$']['next']('idle'),this[_0x246920(0x1f5)][_0x246920(0x1a9)]({'eventID':_0xad8d23[_0x246920(0x166)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x246920(0x1aa)]}},this[_0x246920(0x1aa)]));}[_0x1f790e(0x1b7)](){const _0x382d9b=_0x1f790e;this[_0x382d9b(0x19f)]===_0x382d9b(0x1f3)&&(this[_0x382d9b(0x1e2)][_0x382d9b(0x1a3)](_0x382d9b(0x196)),this[_0x382d9b(0x21d)]());}[_0x1f790e(0x151)](){const _0x4204fe=_0x1f790e;this[_0x4204fe(0x19f)]===_0x4204fe(0x196)&&this[_0x4204fe(0x1f0)]();}[_0x1f790e(0x19c)](_0x3006cb){const _0x21d6c8=_0x1f790e,{presenter:_0xcca7ee}=_0x3006cb[_0x21d6c8(0x168)],_0x34f000=this[_0x21d6c8(0x1f5)][_0x21d6c8(0x204)]();this['_presenter']=_0xcca7ee,_0xcca7ee===_0x34f000?(this[_0x21d6c8(0x1f0)](),this[_0x21d6c8(0x1cd)]()):this[_0x21d6c8(0x19f)]!==_0x21d6c8(0x1f3)&&(this[_0x21d6c8(0x234)](),this[_0x21d6c8(0x21d)]());}['_fetchOperations'](){const _0x3c3b47=_0x1f790e,_0x5e5cd7={'eventID':_0xad8d23['CollaborationEvent'][_0x3c3b47(0x1e3)]};this['_collabSession'][_0x3c3b47(0x1a9)](_0x5e5cd7,this[_0x3c3b47(0x1aa)]);}['_handleTerminate'](){const _0x4357a3=_0x1f790e;this['_presenter']=null,this['_status']!==_0x4357a3(0x1c1)&&this[_0x4357a3(0x211)]();}['_handleNewChangeSets'](_0x50118d){const _0x3aea89=_0x1f790e;if(this[_0x3aea89(0x19f)]===_0x3aea89(0x196)&&this['_presenter']===_0x50118d[_0x3aea89(0x168)][_0x3aea89(0x1c5)]){const _0x4fd97f=_0xad8d23[_0x3aea89(0x20d)](_0x50118d['data'])[_0x3aea89(0x200)]['reverse']()[_0x3aea89(0x177)](_0x516e06=>_0x516e06['id']===_0x54971f['InsertSheetMutation']['id']);if(_0x4fd97f){const _0x5f4f51=_0x4fd97f[_0x3aea89(0x1b1)]['unitId'],_0x56103e=_0x4fd97f[_0x3aea89(0x1b1)][_0x3aea89(0x163)]['id'];setTimeout(()=>{const _0x588e12=_0x3aea89;this['_commandService'][_0x588e12(0x170)](_0x54971f[_0x588e12(0x1e0)]['id'],{'unitId':_0x5f4f51,'subUnitId':_0x56103e},{'fromCollab':!0x0});});}}}[_0x1f790e(0x1cd)](){const _0x3868b8=_0x1f790e;this[_0x3868b8(0x1e2)][_0x3868b8(0x1a3)]('presenting');const _0x519fc2=new Map(),_0x2293ac=this['_commandDisposable']=new _0x1a4663['DisposableCollection']();_0x2293ac['add'](_0x1a4663[_0x3868b8(0x17f)](()=>{const _0x15f912=_0x3868b8;_0x519fc2[_0x15f912(0x18d)](_0x50e334=>_0x50e334['complete']()),_0x519fc2['clear']();})),_0x2293ac[_0x3868b8(0x20c)](this['_commandService'][_0x3868b8(0x161)](_0x44c686=>{const _0x575817=_0x3868b8;var _0x5c609b;if(_0x44c686[_0x575817(0x16b)]!==_0x1a4663[_0x575817(0x1ad)]['OPERATION']||!this[_0x575817(0x1b8)][_0x575817(0x1c6)](_0x44c686['id']))return;const {id:_0x1dcf50}=_0x44c686;let _0x780014;_0x519fc2[_0x575817(0x22a)](_0x1dcf50)?_0x780014=_0x519fc2[_0x575817(0x15d)](_0x1dcf50):(_0x780014=new _0x5cb817[(_0x575817(0x1e5))](),_0x519fc2['set'](_0x1dcf50,_0x780014),_0x780014[_0x575817(0x1b3)](_0x42de0b[_0x575817(0x187)]((_0x5c609b=this[_0x575817(0x207)][_0x575817(0x186)](_0xcca361))!=null?_0x5c609b:_0x176be4,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x3c605f=>{const _0x368998=_0x575817;this[_0x368998(0x1f5)]['send']({'eventID':_0xad8d23[_0x368998(0x166)][_0x368998(0x16f)],'data':{'unitID':this[_0x368998(0x1aa)],'operations':{[_0x3c605f['id']]:{'id':_0x3c605f['id'],'params':JSON[_0x368998(0x1ba)](_0x3c605f['params'])}}}},this[_0x368998(0x1aa)]);})),_0x780014[_0x575817(0x1a3)](_0x44c686);})),this[_0x3868b8(0x1b8)]['getInitialStates'](this[_0x3868b8(0x1aa)])[_0x3868b8(0x18d)](_0x1e860b=>this['_collabSession'][_0x3868b8(0x1a9)]({'eventID':_0xad8d23[_0x3868b8(0x166)][_0x3868b8(0x16f)],'data':{'unitID':this[_0x3868b8(0x1aa)],'operations':{[_0x1e860b['id']]:{'id':_0x1e860b['id'],'params':JSON[_0x3868b8(0x1ba)](_0x1e860b[_0x3868b8(0x1b1)])}}}},this[_0x3868b8(0x1aa)]));}[_0x1f790e(0x234)](){const _0x24b2f1=_0x1f790e;var _0x2ca0fa;this[_0x24b2f1(0x1e2)]['next'](_0x24b2f1(0x1e4)),(_0x2ca0fa=this[_0x24b2f1(0x1ec)])==null||_0x2ca0fa[_0x24b2f1(0x1c7)](),this[_0x24b2f1(0x1ec)]=null;}[_0x1f790e(0x21d)](){const _0x4075b4=_0x1f790e;var _0x2f30ff;(_0x2f30ff=this[_0x4075b4(0x1ec)])==null||_0x2f30ff[_0x4075b4(0x1c7)](),this[_0x4075b4(0x1e2)]['next'](_0x4075b4(0x196));}[_0x1f790e(0x211)](){const _0x1b3759=_0x1f790e;var _0x26d420;this[_0x1b3759(0x1e2)][_0x1b3759(0x1a3)](_0x1b3759(0x1e4)),(_0x26d420=this['_commandDisposable'])==null||_0x26d420[_0x1b3759(0x1c7)](),this[_0x1b3759(0x1ec)]=null;}['_stopFollowing'](){const _0x23dccd=_0x1f790e;var _0x3be70c;this['_status$'][_0x23dccd(0x1a3)](_0x23dccd(0x1f3)),(_0x3be70c=this['_commandDisposable'])==null||_0x3be70c[_0x23dccd(0x1c7)]();}[_0x1f790e(0x1d7)](_0x308a17){const _0x2b74f7=_0x1f790e;if([_0x2b74f7(0x1c1),_0x2b74f7(0x1f3),_0x2b74f7(0x165)][_0x2b74f7(0x181)](this[_0x2b74f7(0x19f)])||!_0x308a17[_0x2b74f7(0x168)]['presenter']||_0x308a17['data'][_0x2b74f7(0x1a4)]===this[_0x2b74f7(0x1f5)][_0x2b74f7(0x204)]())return;this[_0x2b74f7(0x19f)]==='idle'&&this[_0x2b74f7(0x21d)]();const _0x2b9070=_0x308a17['data']['operations'];Object[_0x2b74f7(0x215)](_0x2b9070)[_0x2b74f7(0x18d)](_0x13e5e6=>{const _0xf32a8a=_0x2b74f7;this[_0xf32a8a(0x19a)][_0xf32a8a(0x170)](_0x13e5e6['id'],_0x13e5e6[_0xf32a8a(0x1b1)]?JSON[_0xf32a8a(0x18c)](_0x13e5e6['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x3c9521=_0x1f790e;var _0x393a38;this['_status$'][_0x3c9521(0x1a3)](_0x3c9521(0x165)),(_0x393a38=this[_0x3c9521(0x1ec)])==null||_0x393a38[_0x3c9521(0x1c7)]();}['_handleOnline'](){const _0x2e9346=_0x1f790e;this[_0x2e9346(0x1e2)][_0x2e9346(0x1a3)](_0x2e9346(0x1e4)),this[_0x2e9346(0x1d1)]();}},_0x3c7f27[_0x1f790e(0x1cc)]=_0x6be2a1([_0x8a54fb(0x2,_0x1a4663[_0x1f790e(0x188)]),_0x8a54fb(0x3,_0x1a4663[_0x1f790e(0x192)](_0x2c6fcf)),_0x8a54fb(0x4,_0x1a4663[_0x1f790e(0x1fa)])],_0x3c7f27['LiveShareCoordinator']);function _0x42013c(){const _0x3db89a=_0x1f790e,_0x1eb1b9=_0x445c44[_0x3db89a(0x19d)](_0x3c7f27[_0x3db89a(0x205)]),_0x4c4b11=_0x445c44[_0x3db89a(0x19d)](_0x1a4663[_0x3db89a(0x213)]),_0x462320=_0x445c44[_0x3db89a(0x216)](()=>_0x4c4b11['getCurrentTypeOfUnit$'](_0x1a4663[_0x3db89a(0x1c4)][_0x3db89a(0x1bd)]),void 0x0,!0x1,[]),[_0x29e59c,_0x4c5d82]=_0x1a8c05[_0x3db89a(0x227)](null),[_0x1d782a,_0xa510b7]=_0x1a8c05[_0x3db89a(0x227)](_0x300ce0[_0x3db89a(0x197)]),_0x3067da=_0x1a8c05['useRef'](null);return _0x1a8c05[_0x3db89a(0x154)](()=>(_0x462320&&_0x1eb1b9['getLiveShareCoordinator'](_0x462320[_0x3db89a(0x1c2)]())[_0x3db89a(0x1c0)](_0x13b0d5=>{const _0x3bf740=_0x3db89a;_0x4c5d82(_0x13b0d5),_0x3067da[_0x3bf740(0x1e7)]=_0x13b0d5[_0x3bf740(0x184)][_0x3bf740(0x1ef)](_0x1e7b32=>{_0xa510b7(_0x1e7b32);});}),()=>{const _0x28009a=_0x3db89a;var _0x5ad8fb;(_0x5ad8fb=_0x3067da['current'])==null||_0x5ad8fb['unsubscribe'](),_0x3067da[_0x28009a(0x1e7)]=null;}),[_0x462320,_0x1eb1b9]),_0x29e59c?_0x48b374[_0x3db89a(0x15a)](_0x4bbbf8[_0x3db89a(0x203)],{'align':_0x3db89a(0x233),'disabled':_0x1d782a===_0x300ce0[_0x3db89a(0x1d9)],'className':_0x3db89a(0x1a1),'overlay':_0x48b374[_0x3db89a(0x15a)](_0x341beb,{'status':_0x1d782a,'coordinator':_0x29e59c}),'children':_0x48b374[_0x3db89a(0x15a)]('button',{'className':_0x4bbbf8['clsx'](_0x3db89a(0x221),{'univer-cursor-not-allowed':_0x1d782a===_0x300ce0[_0x3db89a(0x1d9)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1d782a!==_0x300ce0[_0x3db89a(0x1d9)]}),'type':_0x3db89a(0x214),'children':_0x48b374[_0x3db89a(0x15a)](_0xe9087a,{'className':_0x3db89a(0x224)})})}):null;}function _0x341beb(_0x283774){const _0x382217=_0x1f790e,{status:_0x31271e,coordinator:_0x42972a}=_0x283774;switch(_0x31271e){case _0x300ce0['IDLE']:return _0x48b374['jsx'](_0x27dc2a,{'coordinator':_0x42972a});case _0x300ce0[_0x382217(0x1ce)]:return _0x48b374[_0x382217(0x15a)](_0x6425fd,{'coordinator':_0x42972a});case _0x300ce0[_0x382217(0x1b5)]:return _0x48b374[_0x382217(0x15a)](_0x37ffb1,{'coordinator':_0x42972a});case _0x300ce0[_0x382217(0x1d9)]:return _0x48b374[_0x382217(0x15a)](_0x532a13,{});case _0x300ce0[_0x382217(0x1d4)]:return _0x48b374[_0x382217(0x15a)](_0x80a528,{'coordinator':_0x42972a});default:return null;}}function _0x27dc2a(_0x4370d8){const _0x51fe1f=_0x1f790e,{coordinator:_0x2271a8}=_0x4370d8;return _0x48b374['jsxs'](_0x48b374[_0x51fe1f(0x18b)],{'children':[_0x48b374[_0x51fe1f(0x15a)](_0x51fe1f(0x1eb),{'className':_0x51fe1f(0x1d5),'children':'Present\x20this\x20document'}),_0x48b374[_0x51fe1f(0x15a)](_0x4bbbf8[_0x51fe1f(0x160)],{'onClick':()=>_0x2271a8[_0x51fe1f(0x22f)](),'children':'Start'})]});}function _0x6425fd(_0x4f7c55){const _0x377817=_0x1f790e,{coordinator:_0x4e6348}=_0x4f7c55;return _0x48b374[_0x377817(0x217)](_0x48b374[_0x377817(0x18b)],{'children':[_0x48b374[_0x377817(0x15a)](_0x377817(0x1eb),{'className':_0x377817(0x1d5),'children':_0x377817(0x18e)}),_0x48b374[_0x377817(0x15a)](_0x4bbbf8[_0x377817(0x160)],{'onClick':()=>_0x4e6348[_0x377817(0x151)](),'children':_0x377817(0x179)})]});}function _0x37ffb1(_0x54848b){const _0x5b66f0=_0x1f790e,{coordinator:_0x592c51}=_0x54848b;return _0x48b374[_0x5b66f0(0x217)](_0x48b374['Fragment'],{'children':[_0x48b374[_0x5b66f0(0x15a)]('div',{'className':_0x5b66f0(0x1d5),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x48b374[_0x5b66f0(0x15a)](_0x4bbbf8[_0x5b66f0(0x160)],{'variant':_0x5b66f0(0x195),'onClick':()=>_0x592c51[_0x5b66f0(0x1b7)](),'children':_0x5b66f0(0x1ab)})]});}function _0x80a528(_0x468b7b){const _0x4a19e0=_0x1f790e,{coordinator:_0x4e8b37}=_0x468b7b;return _0x48b374[_0x4a19e0(0x217)](_0x48b374['Fragment'],{'children':[_0x48b374[_0x4a19e0(0x15a)](_0x4a19e0(0x1eb),{'className':_0x4a19e0(0x1d5),'children':_0x4a19e0(0x17d)}),_0x48b374[_0x4a19e0(0x15a)](_0x4bbbf8['Button'],{'variant':_0x4a19e0(0x171),'onClick':()=>_0x4e8b37['stopPresenting'](),'children':_0x4a19e0(0x1f9)})]});}function _0x532a13(){const _0x5f0b1f=_0x1f790e;return _0x48b374['jsx'](_0x48b374[_0x5f0b1f(0x18b)],{'children':_0x5f0b1f(0x1a2)});}var _0x446c92=Object[_0x1f790e(0x1b2)],_0x4ba76e=(_0x200332,_0x50c69a,_0x115d14,_0x3ad292)=>{for(var _0xd4809c=_0x3ad292>0x1?void 0x0:_0x3ad292?_0x446c92(_0x50c69a,_0x115d14):_0x50c69a,_0x6082d7=_0x200332['length']-0x1,_0x2aa02d;_0x6082d7>=0x0;_0x6082d7--)(_0x2aa02d=_0x200332[_0x6082d7])&&(_0xd4809c=_0x2aa02d(_0xd4809c)||_0xd4809c);return _0xd4809c;},_0x2e0bfa=(_0x5928c7,_0x2f9f59)=>(_0x18d1bc,_0x3633ad)=>_0x2f9f59(_0x18d1bc,_0x3633ad,_0x5928c7);_0x3c7f27[_0x1f790e(0x1a0)]=class extends _0x1a4663[_0x1f790e(0x223)]{constructor(_0x44b9a0,_0x4700e4){const _0x162f22=_0x1f790e;super(),this[_0x162f22(0x162)]=_0x44b9a0,this['_uiPartsService']=_0x4700e4,this[_0x162f22(0x1dd)]();}[_0x1f790e(0x1dd)](){const _0xc01f4e=_0x1f790e;this[_0xc01f4e(0x1ae)](this[_0xc01f4e(0x22c)]['registerComponent'](_0x445c44[_0xc01f4e(0x228)][_0xc01f4e(0x175)],()=>_0x445c44[_0xc01f4e(0x182)](_0x42013c,this[_0xc01f4e(0x162)])));}},_0x3c7f27['DesktopLiveShareController']=_0x4ba76e([_0x2e0bfa(0x0,_0x1a4663[_0x1f790e(0x192)](_0x1a4663['Injector'])),_0x2e0bfa(0x1,_0x445c44[_0x1f790e(0x225)])],_0x3c7f27['DesktopLiveShareController']);const _0x2684fe=_0x1f790e(0x1e1),_0x266a45={};var _0x2a1f24=Object[_0x1f790e(0x1b2)],_0x26d1aa=(_0x1ade5b,_0x592ba4,_0x319e01,_0x528f1b)=>{const _0x254fea=_0x1f790e;for(var _0x61bbca=_0x528f1b>0x1?void 0x0:_0x528f1b?_0x2a1f24(_0x592ba4,_0x319e01):_0x592ba4,_0x4dd1a3=_0x1ade5b[_0x254fea(0x209)]-0x1,_0x1abec9;_0x4dd1a3>=0x0;_0x4dd1a3--)(_0x1abec9=_0x1ade5b[_0x4dd1a3])&&(_0x61bbca=_0x1abec9(_0x61bbca)||_0x61bbca);return _0x61bbca;},_0x465881=(_0x314408,_0x45280c)=>(_0x491ab3,_0x2ecf6f)=>_0x45280c(_0x491ab3,_0x2ecf6f,_0x314408);let _0x3719dd=class extends _0x1a4663[_0x1f790e(0x223)]{constructor(_0x3e4077){const _0x18c901=_0x1f790e;super(),this[_0x18c901(0x1b8)]=_0x3e4077,this[_0x18c901(0x21c)]();}[_0x1f790e(0x21c)](){const _0x2bc22c=_0x1f790e;[_0x1b8ea2[_0x2bc22c(0x19b)]['id'],_0x1b8ea2['SetScrollOperation']['id'],_0x54971f['SetWorksheetActiveOperation']['id']]['forEach'](_0xbc4d6a=>{const _0x2f67bc=_0x2bc22c;this[_0x2f67bc(0x1ae)](this[_0x2f67bc(0x1b8)]['registerSharedOperation'](_0xbc4d6a));});}};_0x3719dd=_0x26d1aa([_0x465881(0x0,_0x1a4663[_0x1f790e(0x192)](_0x2c6fcf))],_0x3719dd);var _0x361f76=Object[_0x1f790e(0x185)],_0xd473f5=Object['getOwnPropertyDescriptor'],_0x4670d8=(_0x1bbb8b,_0x24449e,_0x55b798)=>_0x24449e in _0x1bbb8b?_0x361f76(_0x1bbb8b,_0x24449e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55b798}):_0x1bbb8b[_0x24449e]=_0x55b798,_0x27634a=(_0x57a3f1,_0x4671fc,_0x2d5293,_0x53e0f9)=>{const _0x3572f4=_0x1f790e;for(var _0x234dc0=_0x53e0f9>0x1?void 0x0:_0x53e0f9?_0xd473f5(_0x4671fc,_0x2d5293):_0x4671fc,_0xdafc8e=_0x57a3f1[_0x3572f4(0x209)]-0x1,_0x53d422;_0xdafc8e>=0x0;_0xdafc8e--)(_0x53d422=_0x57a3f1[_0xdafc8e])&&(_0x234dc0=_0x53d422(_0x234dc0)||_0x234dc0);return _0x234dc0;},_0x21dc64=(_0xb43bc6,_0x56c38b)=>(_0x1db581,_0x106a74)=>_0x56c38b(_0x1db581,_0x106a74,_0xb43bc6),_0xc6f876=(_0x125876,_0x1e285a,_0x20a720)=>_0x4670d8(_0x125876,typeof _0x1e285a!=_0x1f790e(0x1cf)?_0x1e285a+'':_0x1e285a,_0x20a720);const _0x486d01='UNIVER_LIVE_SHARE_PLUGIN';_0x3c7f27[_0x1f790e(0x1d8)]=class extends _0x1a4663['Plugin']{constructor(_0x7d2640=_0x266a45,_0x24025c,_0x8a3a9a){const _0x9ec025=_0x1f790e;super(),this['_config']=_0x7d2640,this[_0x9ec025(0x162)]=_0x24025c,this[_0x9ec025(0x207)]=_0x8a3a9a;const {..._0x1772ce}=_0x1a4663[_0x9ec025(0x1cb)]({},_0x266a45,this[_0x9ec025(0x1a6)]);this['_configService'][_0x9ec025(0x1ea)](_0x2684fe,_0x1772ce);}['onStarting'](){const _0x4c1ef5=_0x1f790e;_0x1a4663[_0x4c1ef5(0x22b)](this[_0x4c1ef5(0x162)],_0x1a4663[_0x4c1ef5(0x159)]([[_0x2c6fcf],[_0x3c7f27[_0x4c1ef5(0x205)]],[_0x3719dd],[_0x3c7f27[_0x4c1ef5(0x1a0)]]],this[_0x4c1ef5(0x1a6)][_0x4c1ef5(0x20e)])),_0x1a4663['touchDependencies'](this[_0x4c1ef5(0x162)],[[_0x3719dd]]);}[_0x1f790e(0x22e)](){_0x1a4663['touchDependencies'](this['_injector'],[[_0x3c7f27['DesktopLiveShareController']]]);}},_0xc6f876(_0x3c7f27[_0x1f790e(0x1d8)],_0x1f790e(0x16b),_0x1a4663['UniverInstanceType'][_0x1f790e(0x1c3)]),_0xc6f876(_0x3c7f27[_0x1f790e(0x1d8)],'pluginName',_0x486d01),_0x3c7f27[_0x1f790e(0x1d8)]=_0x27634a([_0x1a4663[_0x1f790e(0x1d3)](_0x483082[_0x1f790e(0x202)]),_0x21dc64(0x1,_0x1a4663[_0x1f790e(0x192)](_0x1a4663['Injector'])),_0x21dc64(0x2,_0x1a4663[_0x1f790e(0x188)])],_0x3c7f27[_0x1f790e(0x1d8)]),_0x3c7f27[_0x1f790e(0x190)]=_0x42013c,_0x3c7f27[_0x1f790e(0x16c)]=_0x2c6fcf,_0x3c7f27[_0x1f790e(0x152)]=_0x300ce0,Object[_0x1f790e(0x185)](_0x3c7f27,Symbol[_0x1f790e(0x230)],{'value':'Module'});}));function _0x5f01(){const _0x11f503=['getLiveShareCoordinatorSync','then','presenting','getUnitId','UNIVER_UNKNOWN','UniverInstanceType','memberID','shouldShareOperation','dispose','init','svg','defIds','merge','LiveShareCoordinator','_startPresenting','FOLLOWING','symbol','random','_fetchOperations','evenodd','DependentOn','PRESENTING','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverProLiveShare','_handleOperation','UniverLiveSharePlugin','OFFLINE','25119LkQURm','defs','Injector','_mountLiveShare','LIVESHARE_NEW_HOST','1107528vFSpkO','SetWorksheetActiveOperation','live-share.config','_status$','LIVESHARE_FETCH_OPERATIONS','idle','Subject','UniverSheets','current','createElement','UniverProCollaborationClient','setConfig','div','_commandDisposable','takeUntil','object','subscribe','_stopFollowing','_univerInstanceService','use','not-following','_collabSessionService','_collabSession','_presenter','getTypeOfUnitDisposed$','asObservable','Stop\x20presenting','ICommandService','_handleOnline','displayName','xlink:href','colorChannel1','LIVESHARE_REQUEST_HOST','mutations','children','UniverCollaborationClientPlugin','Dropdown','getMemberID','LiveShareController','264604ClObtu','_configService','SessionStatus','length','sessionStatus$','@univerjs/ui','add','parseProtocolChangeset','override','UniverIcon','UniverSheetsUi','_beIdle','1em','IUniverInstanceService','button','values','useObservable','jsxs','@univerjs-pro/collaboration','none','RxDisposable','_handleOffline','_init','_startFollowing','trim','_handleTerminate','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','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LIVESHARE_TERMINATE','Disposable','univer-size-4','IUIPartsService','_handleNewChangeSets','useState','BuiltInUIPart','path','has','registerDependencies','_uiPartsService','http://www.w3.org/2000/svg','onRendered','tryStartPresenting','toStringTag','entries','15FBjNRT','end','_stopPresenting','stopFollowing','LiveShareStatus','univerjs-icon\x20univerjs-icon-','useEffect','mask','_startLiveShareCoordinator','live-share-icon','UniverProCollaboration','mergeOverrideWithDependencies','jsx','12255690DXNGBf','@univerjs/design','get','createInstance','assign','Button','onCommandExecuted','_injector','sheet','delete','offline','CollaborationEvent','complete','data','rxjs','LiveShareIcon','type','LiveShareService','string','dispose$','LIVESHARE_OPERATION','executeCommand','default','function','getInitialStates','currentColor','HEADER_MENU','@univerjs-pro/collaboration-client','find','React','Stop\x20following','456037ovlrsK','@univerjs/sheets','11227311JtsVcd','You\x27re\x20presenting\x20the\x20document','556oSZfEy','toDisposable','useRef','includes','connectInjector','url(#$1','status$','defineProperty','getConfig','throttleTime','IConfigService','CollaborationSessionService','@univerjs/core','Fragment','parse','forEach','You\x27re\x20following\x20the\x20presenter','11cRzeoe','LiveShare','exports','Inject','tag','fill','text','following','IDLE','event$','_reporters','_commandService','SetZoomRatioOperation','_handleNewHost','useDependency','rxjs/operators','_status','DesktopLiveShareController','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','You\x27are\x20offline.','next','presenter','idSuffix','_config','attrs','forwardRef','send','_unitID','Start\x20following','8199954oymIRl','CommandType','disposeWithMe','8pUaISG','BehaviorSubject','params','getOwnPropertyDescriptor','pipe','react','NOT_FOLLOWING','operators','startFollowing','_liveShareService','map','stringify','_entities','_sharedOperations','UNIVER_SHEET','0\x200\x2017\x2017'];_0x5f01=function(){return _0x11f503;};return _0x5f01();}
1
+ function _0x24c2(_0xff1e91,_0x2dbe21){_0xff1e91=_0xff1e91-0x75;const _0xe5a62b=_0xe5a6();let _0x24c2d7=_0xe5a62b[_0xff1e91];return _0x24c2d7;}(function(_0x1df038,_0x1441f4){const _0x5a2158=_0x24c2,_0x1c4ad7=_0x1df038();while(!![]){try{const _0x38b80b=-parseInt(_0x5a2158(0x87))/0x1*(-parseInt(_0x5a2158(0xa5))/0x2)+parseInt(_0x5a2158(0x141))/0x3*(-parseInt(_0x5a2158(0xbe))/0x4)+-parseInt(_0x5a2158(0x160))/0x5+parseInt(_0x5a2158(0x93))/0x6*(parseInt(_0x5a2158(0x14c))/0x7)+-parseInt(_0x5a2158(0x99))/0x8*(parseInt(_0x5a2158(0x13c))/0x9)+-parseInt(_0x5a2158(0xe3))/0xa+parseInt(_0x5a2158(0xb4))/0xb;if(_0x38b80b===_0x1441f4)break;else _0x1c4ad7['push'](_0x1c4ad7['shift']());}catch(_0xfc58a0){_0x1c4ad7['push'](_0x1c4ad7['shift']());}}}(_0xe5a6,0x30ebf),function(_0x5a0afb,_0x414369){const _0x219e91=_0x24c2;typeof exports==_0x219e91(0xf6)&&typeof module<'u'?_0x414369(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==_0x219e91(0xdc)&&define[_0x219e91(0x111)]?define([_0x219e91(0x118),_0x219e91(0x162),_0x219e91(0xa8),_0x219e91(0x15d),_0x219e91(0x121),_0x219e91(0x116),_0x219e91(0x8d),_0x219e91(0x131),'@univerjs/sheets',_0x219e91(0xc2),_0x219e91(0xeb),_0x219e91(0x140)],_0x414369):(_0x5a0afb=typeof globalThis<'u'?globalThis:_0x5a0afb||self,_0x414369(_0x5a0afb[_0x219e91(0x78)]={},_0x5a0afb[_0x219e91(0x11f)],_0x5a0afb[_0x219e91(0x132)],_0x5a0afb[_0x219e91(0x7a)],_0x5a0afb[_0x219e91(0xf7)],_0x5a0afb['React'],_0x5a0afb[_0x219e91(0xd1)],_0x5a0afb[_0x219e91(0x158)],_0x5a0afb[_0x219e91(0xd8)],_0x5a0afb[_0x219e91(0xc2)],_0x5a0afb[_0x219e91(0xc2)][_0x219e91(0x8a)],_0x5a0afb[_0x219e91(0x137)]));}(this,function(_0x3d5254,_0x1383de,_0x47bd3b,_0x561cf3,_0x47ac77,_0xeb3c95,_0x332357,_0x435296,_0x504be1,_0x1520bf,_0x4263b7,_0x256bc6){'use strict';const _0x10fbf1=_0x24c2;var _0x3c369a=Object[_0x10fbf1(0x85)],_0x17473d=(_0x3d4628,_0x4dbc57,_0x53382c)=>_0x4dbc57 in _0x3d4628?_0x3c369a(_0x3d4628,_0x4dbc57,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53382c}):_0x3d4628[_0x4dbc57]=_0x53382c,_0x6b6d25=(_0x2ca5e3,_0x3db082,_0xe3e363)=>_0x17473d(_0x2ca5e3,typeof _0x3db082!=_0x10fbf1(0x105)?_0x3db082+'':_0x3db082,_0xe3e363);function _0x455f6b({ref:_0x1eef72,..._0x4cae7e}){const _0x765ec2=_0x10fbf1,{icon:_0x2be092,id:_0x3f18c2,className:_0x1f2328,extend:_0x56ecbe,..._0x457111}=_0x4cae7e,_0x26cc07=('univerjs-icon\x20univerjs-icon-'+_0x3f18c2+'\x20'+(_0x1f2328||''))['trim'](),_0x52259b=_0xeb3c95[_0x765ec2(0x11d)]('_'+_0x26db05());return _0x371763(_0x2be092,''+_0x3f18c2,{'defIds':_0x2be092[_0x765ec2(0x81)],'idSuffix':_0x52259b[_0x765ec2(0xe4)]},{'ref':_0x1eef72,'className':_0x26cc07,..._0x457111},_0x56ecbe);}function _0x371763(_0x3529fd,_0x4cbf33,_0x51982b,_0x21e744,_0x12ca7e){const _0x16081d=_0x10fbf1;return _0xeb3c95[_0x16081d(0x9d)](_0x3529fd['tag'],{'key':_0x4cbf33,..._0x20e07d(_0x3529fd,_0x51982b,_0x12ca7e),..._0x21e744},(_0x483ff5(_0x3529fd,_0x51982b)[_0x16081d(0xf5)]||[])['map']((_0x254227,_0x472efa)=>_0x371763(_0x254227,_0x4cbf33+'-'+_0x3529fd[_0x16081d(0x129)]+'-'+_0x472efa,_0x51982b,void 0x0,_0x12ca7e)));}function _0x20e07d(_0x4909bc,_0x48c10e,_0x15592c){const _0x344875=_0x10fbf1,_0x30fdde={..._0x4909bc['attrs']};_0x15592c!=null&&_0x15592c[_0x344875(0x125)]&&_0x30fdde[_0x344875(0x112)]==='colorChannel1'&&(_0x30fdde[_0x344875(0x112)]=_0x15592c[_0x344875(0x125)]),_0x4909bc[_0x344875(0x129)]===_0x344875(0x126)&&_0x30fdde['id']&&(_0x30fdde['id']=_0x30fdde['id']+_0x48c10e[_0x344875(0xf4)]),Object[_0x344875(0x9b)](_0x30fdde)[_0x344875(0x90)](([_0x406fc5,_0xc9f6c6])=>{const _0x55147d=_0x344875;_0x406fc5===_0x55147d(0x126)&&typeof _0xc9f6c6==_0x55147d(0xe1)&&(_0x30fdde[_0x406fc5]=_0xc9f6c6[_0x55147d(0x103)](/url\(#(.*)\)/,_0x55147d(0x152)+_0x48c10e['idSuffix']+')'));});const {defIds:_0x31941c}=_0x48c10e;return!_0x31941c||_0x31941c[_0x344875(0x143)]===0x0||(_0x4909bc['tag']==='use'&&_0x30fdde[_0x344875(0x80)]&&(_0x30fdde[_0x344875(0x80)]=_0x30fdde[_0x344875(0x80)]+_0x48c10e[_0x344875(0xf4)]),Object['entries'](_0x30fdde)[_0x344875(0x90)](([_0x4d2320,_0xcceb91])=>{const _0x5b312d=_0x344875;typeof _0xcceb91==_0x5b312d(0xe1)&&(_0x30fdde[_0x4d2320]=_0xcceb91[_0x5b312d(0x103)](/url\(#(.*)\)/,_0x5b312d(0x152)+_0x48c10e[_0x5b312d(0xf4)]+')'));})),_0x30fdde;}function _0x483ff5(_0x396101,_0x254fe7){const _0x4703e1=_0x10fbf1;var _0x5b4bd8;const {defIds:_0x366c9f}=_0x254fe7;return!_0x366c9f||_0x366c9f[_0x4703e1(0x143)]===0x0?_0x396101:_0x396101['tag']===_0x4703e1(0x130)&&((_0x5b4bd8=_0x396101[_0x4703e1(0xf5)])!=null&&_0x5b4bd8[_0x4703e1(0x143)])?{..._0x396101,'children':_0x396101[_0x4703e1(0xf5)]['map'](_0xc3efcf=>typeof _0xc3efcf[_0x4703e1(0x96)]['id']==_0x4703e1(0xe1)&&_0x366c9f&&_0x366c9f[_0x4703e1(0x146)](_0xc3efcf[_0x4703e1(0x96)]['id'])?{..._0xc3efcf,'attrs':{..._0xc3efcf['attrs'],'id':_0xc3efcf[_0x4703e1(0x96)]['id']+_0x254fe7['idSuffix']}}:_0xc3efcf)}:_0x396101;}function _0x26db05(){const _0xd53aec=_0x10fbf1;return Math[_0xd53aec(0x9a)]()[_0xd53aec(0x14d)](0x24)[_0xd53aec(0x9e)](0x2,0x8);}_0x455f6b[_0x10fbf1(0xd7)]=_0x10fbf1(0x10a);const _0x2a3266={'tag':_0x10fbf1(0x79),'attrs':{'xmlns':_0x10fbf1(0x7f),'fill':_0x10fbf1(0xe9),'viewBox':_0x10fbf1(0xba),'width':'1em','height':_0x10fbf1(0xce)},'children':[{'tag':_0x10fbf1(0x11c),'attrs':{'fill':_0x10fbf1(0xc9),'d':_0x10fbf1(0xc5)}},{'tag':_0x10fbf1(0x11c),'attrs':{'fill':_0x10fbf1(0xc9),'d':_0x10fbf1(0x88),'fillRule':_0x10fbf1(0xbc),'clipRule':_0x10fbf1(0xbc)}}]},_0x2ad1f1=_0xeb3c95[_0x10fbf1(0x100)](function(_0x128338,_0x36543a){const _0x2f34be=_0x10fbf1;return _0xeb3c95[_0x2f34be(0x9d)](_0x455f6b,Object[_0x2f34be(0x13b)]({},_0x128338,{'id':'live-share-icon','ref':_0x36543a,'icon':_0x2a3266}));});_0x2ad1f1[_0x10fbf1(0xd7)]=_0x10fbf1(0xd6);class _0x37da54 extends _0x1383de[_0x10fbf1(0x104)]{constructor(){const _0x32d5d7=_0x10fbf1;super(...arguments),_0x6b6d25(this,_0x32d5d7(0x8b),new Set()),_0x6b6d25(this,'_reporters',new Set());}['registerSharedOperation'](_0x4bac15){const _0xb409bb=_0x10fbf1;return this[_0xb409bb(0x8b)][_0xb409bb(0x163)](_0x4bac15),_0x1383de['toDisposable'](()=>this[_0xb409bb(0x8b)][_0xb409bb(0x7d)](_0x4bac15));}['registerInitialStateReporter'](_0x3e1a81){const _0x3d73e7=_0x10fbf1;return this[_0x3d73e7(0xdd)][_0x3d73e7(0x163)](_0x3e1a81),_0x1383de[_0x3d73e7(0x12c)](()=>this[_0x3d73e7(0xdd)][_0x3d73e7(0x7d)](_0x3e1a81));}[_0x10fbf1(0xfd)](_0x36e9fe){const _0x535a6a=_0x10fbf1;return this[_0x535a6a(0x8b)][_0x535a6a(0xa3)](_0x36e9fe);}[_0x10fbf1(0x156)](_0xeb5b77){const _0x27438c=_0x10fbf1;return Array['from'](this[_0x27438c(0xdd)])[_0x27438c(0xe7)](_0x491077=>_0x491077(_0xeb5b77));}}var _0x47f808=Object['getOwnPropertyDescriptor'],_0xccc100=(_0x5c1b24,_0xff65ac,_0x15593b,_0x43352d)=>{const _0x4a8063=_0x10fbf1;for(var _0x2b88c7=_0x43352d>0x1?void 0x0:_0x43352d?_0x47f808(_0xff65ac,_0x15593b):_0xff65ac,_0x21841f=_0x5c1b24[_0x4a8063(0x143)]-0x1,_0x190616;_0x21841f>=0x0;_0x21841f--)(_0x190616=_0x5c1b24[_0x21841f])&&(_0x2b88c7=_0x190616(_0x2b88c7)||_0x2b88c7);return _0x2b88c7;},_0x338e90=(_0x1acd69,_0x39f337)=>(_0xcfd42b,_0x299478)=>_0x39f337(_0xcfd42b,_0x299478,_0x1acd69);_0x3d5254[_0x10fbf1(0x84)]=class extends _0x1383de[_0x10fbf1(0x13f)]{constructor(_0xe6694f,_0x430605,_0x8df159){const _0x3558f0=_0x10fbf1;super(),_0x6b6d25(this,'_entities',new Map()),(this['_univerInstanceService']=_0xe6694f,this['_injector']=_0x430605,this[_0x3558f0(0xc3)]=_0x8df159,this[_0x3558f0(0x12b)]());}async[_0x10fbf1(0x12d)](_0x15729f){const _0x2171fc=_0x10fbf1;return this[_0x2171fc(0x110)][_0x2171fc(0xa3)](_0x15729f)||await this[_0x2171fc(0x13a)](_0x15729f),this[_0x2171fc(0x110)][_0x2171fc(0x133)](_0x15729f);}['getLiveShareCoordinatorSync'](_0x361963){const _0x206a11=_0x10fbf1;var _0x3f2d1e;return(_0x3f2d1e=this[_0x206a11(0x110)]['get'](_0x361963))!=null?_0x3f2d1e:null;}[_0x10fbf1(0x12b)](){const _0x56849e=_0x10fbf1;this[_0x56849e(0x75)][_0x56849e(0x108)](_0x1383de['UniverInstanceType'][_0x56849e(0xd3)])[_0x56849e(0xb9)](_0x4263b7[_0x56849e(0xb7)](this[_0x56849e(0x15c)]))['subscribe'](async _0x29539d=>{const _0x669f41=_0x56849e,_0xdc2b3c=_0x29539d['getUnitId']();this[_0x669f41(0x110)][_0x669f41(0xa3)](_0xdc2b3c)||this['_startLiveShareCoordinator'](_0xdc2b3c);}),this[_0x56849e(0x75)]['getTypeOfUnitDisposed$'](_0x1383de['UniverInstanceType'][_0x56849e(0xd3)])[_0x56849e(0xb9)](_0x4263b7[_0x56849e(0xb7)](this[_0x56849e(0x15c)]))['subscribe'](_0x4d1ba6=>{const _0x498ec9=_0x56849e,_0x1048d8=_0x4d1ba6[_0x498ec9(0xa2)](),_0x3deede=this[_0x498ec9(0x110)][_0x498ec9(0x133)](_0x1048d8);_0x3deede==null||_0x3deede[_0x498ec9(0xaa)]();});}async[_0x10fbf1(0x13a)](_0x379446){const _0x3aab8f=_0x10fbf1,_0x596ccf=await this[_0x3aab8f(0xc3)][_0x3aab8f(0xbd)](_0x379446),_0x1b4598=this[_0x3aab8f(0xf3)][_0x3aab8f(0xb5)](_0x3d5254[_0x3aab8f(0xfc)],_0x379446,_0x596ccf);return _0x1b4598[_0x3aab8f(0x136)](),this['_entities'][_0x3aab8f(0x10d)](_0x379446,_0x1b4598),_0x1b4598;}},_0x3d5254[_0x10fbf1(0x84)]=_0xccc100([_0x338e90(0x0,_0x1383de['IUniverInstanceService']),_0x338e90(0x1,_0x1383de[_0x10fbf1(0x82)](_0x1383de[_0x10fbf1(0xda)])),_0x338e90(0x2,_0x1383de[_0x10fbf1(0x82)](_0x435296['CollaborationSessionService']))],_0x3d5254[_0x10fbf1(0x84)]);var _0x4e654a=(_0x260ba0=>(_0x260ba0['OFFLINE']=_0x10fbf1(0x101),_0x260ba0['IDLE']=_0x10fbf1(0xa7),_0x260ba0['FOLLOWING']=_0x10fbf1(0x120),_0x260ba0[_0x10fbf1(0x12f)]=_0x10fbf1(0x11b),_0x260ba0['PRESENTING']='presenting',_0x260ba0))(_0x4e654a||{});const _0xfe396a=_0x10fbf1(0x149),_0xc048b4=0xc8;_0x3d5254[_0x10fbf1(0xfc)]=class extends _0x1383de[_0x10fbf1(0x13f)]{constructor(_0x2c29a8,_0xf6461c,_0x27cba0,_0x185de9,_0x13dbd9){const _0x371803=_0x10fbf1;super(),_0x6b6d25(this,_0x371803(0x145),new _0x1520bf[(_0x371803(0x154))](_0x371803(0xa7))),_0x6b6d25(this,'status$',this[_0x371803(0x145)][_0x371803(0xa6)]()),_0x6b6d25(this,_0x371803(0x12b),!0x1),_0x6b6d25(this,_0x371803(0xab),null),_0x6b6d25(this,_0x371803(0x8f),null),(this[_0x371803(0x94)]=_0x2c29a8,this[_0x371803(0x14a)]=_0xf6461c,this['_configService']=_0x27cba0,this[_0x371803(0xe2)]=_0x185de9,this[_0x371803(0xb1)]=_0x13dbd9);}get[_0x10fbf1(0x7b)](){const _0x114d5b=_0x10fbf1;return this[_0x114d5b(0x145)][_0x114d5b(0x83)]();}[_0x10fbf1(0xaa)](){const _0x5ebace=_0x10fbf1;var _0x2331ec;(_0x2331ec=this['_commandDisposable'])==null||_0x2331ec[_0x5ebace(0xaa)](),this[_0x5ebace(0x145)][_0x5ebace(0x128)](_0x5ebace(0xa7)),this[_0x5ebace(0x145)][_0x5ebace(0xd5)]();}[_0x10fbf1(0xea)](){return this['_status'];}[_0x10fbf1(0x136)](){const _0x10ab22=_0x10fbf1;this[_0x10ab22(0x12b)]||(this['_init']=!0x0,this['_collabSession'][_0x10ab22(0xbb)][_0x10ab22(0xb9)](_0x4263b7[_0x10ab22(0xb7)](this[_0x10ab22(0x15c)]))['subscribe'](_0x2bf4a2=>{const _0x5326e1=_0x10ab22;switch(_0x2bf4a2){case _0x435296[_0x5326e1(0x155)][_0x5326e1(0x76)]:this[_0x5326e1(0xc7)]();break;case _0x435296[_0x5326e1(0x155)]['ONLINE']:this[_0x5326e1(0x119)]();break;}}),this[_0x10ab22(0x14a)][_0x10ab22(0x151)]['pipe'](_0x4263b7[_0x10ab22(0xb7)](this[_0x10ab22(0x15c)]))['subscribe'](_0xc57a24=>{const _0x561188=_0x10ab22,{eventID:_0xf31e45}=_0xc57a24;switch(_0xf31e45){case _0x332357[_0x561188(0xd0)][_0x561188(0xa1)]:this['_handleNewHost'](_0xc57a24);break;case _0x332357['CollaborationEvent'][_0x561188(0x122)]:this[_0x561188(0x107)](_0xc57a24);break;case _0x332357['CollaborationEvent'][_0x561188(0x92)]:this[_0x561188(0x9f)]();break;case _0x332357[_0x561188(0xd0)]['NEW_CHANGESETS']:this[_0x561188(0x14f)](_0xc57a24);break;}}));}[_0x10fbf1(0x7c)](){const _0x5a7fbb=_0x10fbf1;this[_0x5a7fbb(0x14a)]['send']({'eventID':_0x332357[_0x5a7fbb(0xd0)][_0x5a7fbb(0x138)],'data':{'unitID':this[_0x5a7fbb(0x94)],'userID':this[_0x5a7fbb(0x14a)][_0x5a7fbb(0x157)]()}},this[_0x5a7fbb(0x94)]);}[_0x10fbf1(0xd2)](){const _0x5a23d7=_0x10fbf1;this['_status']===_0x5a23d7(0x115)&&(this[_0x5a23d7(0x145)][_0x5a23d7(0x128)](_0x5a23d7(0xa7)),this[_0x5a23d7(0x14a)][_0x5a23d7(0xae)]({'eventID':_0x332357[_0x5a23d7(0xd0)][_0x5a23d7(0x92)],'data':{'unitID':this[_0x5a23d7(0x94)]}},this[_0x5a23d7(0x94)]));}['startFollowing'](){const _0x4d27f7=_0x10fbf1;this[_0x4d27f7(0x7b)]===_0x4d27f7(0x11b)&&(this[_0x4d27f7(0x145)][_0x4d27f7(0x128)]('following'),this[_0x4d27f7(0x15f)]());}['stopFollowing'](){const _0x3ac408=_0x10fbf1;this[_0x3ac408(0x7b)]==='following'&&this[_0x3ac408(0x123)]();}[_0x10fbf1(0xbf)](_0x36b0b2){const _0x14d97d=_0x10fbf1,{presenter:_0x3fad88}=_0x36b0b2[_0x14d97d(0x11e)],_0x3b0229=this[_0x14d97d(0x14a)][_0x14d97d(0x157)]();this['_presenter']=_0x3fad88,_0x3fad88===_0x3b0229?(this[_0x14d97d(0x123)](),this['_startPresenting']()):this[_0x14d97d(0x7b)]!=='not-following'&&(this[_0x14d97d(0x12a)](),this[_0x14d97d(0x15f)]());}[_0x10fbf1(0xaf)](){const _0xd3d68d=_0x10fbf1,_0x44a6fc={'eventID':_0x332357[_0xd3d68d(0xd0)][_0xd3d68d(0x91)]};this[_0xd3d68d(0x14a)][_0xd3d68d(0xae)](_0x44a6fc,this[_0xd3d68d(0x94)]);}[_0x10fbf1(0x9f)](){const _0x117e33=_0x10fbf1;this[_0x117e33(0x8f)]=null,this['_status']!==_0x117e33(0x115)&&this[_0x117e33(0xc0)]();}['_handleNewChangeSets'](_0x16f481){const _0x128ce4=_0x10fbf1;if(this[_0x128ce4(0x7b)]===_0x128ce4(0x120)&&this['_presenter']===_0x16f481['data'][_0x128ce4(0xdf)]){const _0x3773f1=_0x332357[_0x128ce4(0x135)](_0x16f481[_0x128ce4(0x11e)])[_0x128ce4(0xfb)][_0x128ce4(0x144)]()[_0x128ce4(0x12e)](_0x1268d7=>_0x1268d7['id']===_0x504be1['InsertSheetMutation']['id']);if(_0x3773f1){const _0x4ee5d7=_0x3773f1[_0x128ce4(0x13e)]['unitId'],_0x1e74cd=_0x3773f1[_0x128ce4(0x13e)]['sheet']['id'];setTimeout(()=>{const _0x2c0a2d=_0x128ce4;this[_0x2c0a2d(0xb1)][_0x2c0a2d(0xe8)](_0x504be1[_0x2c0a2d(0x13d)]['id'],{'unitId':_0x4ee5d7,'subUnitId':_0x1e74cd},{'fromCollab':!0x0});});}}}[_0x10fbf1(0xb8)](){const _0x29341d=_0x10fbf1;this[_0x29341d(0x145)][_0x29341d(0x128)]('presenting');const _0x28a418=new Map(),_0x30142d=this[_0x29341d(0xab)]=new _0x1383de[(_0x29341d(0xa0))]();_0x30142d['add'](_0x1383de['toDisposable'](()=>{const _0x2b05fa=_0x29341d;_0x28a418[_0x2b05fa(0x90)](_0x6a5a5a=>_0x6a5a5a[_0x2b05fa(0xd5)]()),_0x28a418[_0x2b05fa(0xac)]();})),_0x30142d[_0x29341d(0x163)](this[_0x29341d(0xb1)]['onCommandExecuted'](_0x1b05c6=>{const _0x4a3bf8=_0x29341d;var _0x24e682;if(_0x1b05c6[_0x4a3bf8(0xee)]!==_0x1383de[_0x4a3bf8(0x147)]['OPERATION']||!this['_liveShareService'][_0x4a3bf8(0xfd)](_0x1b05c6['id']))return;const {id:_0x1f62c6}=_0x1b05c6;let _0x33ada1;_0x28a418[_0x4a3bf8(0xa3)](_0x1f62c6)?_0x33ada1=_0x28a418['get'](_0x1f62c6):(_0x33ada1=new _0x1520bf[(_0x4a3bf8(0x161))](),_0x28a418[_0x4a3bf8(0x10d)](_0x1f62c6,_0x33ada1),_0x33ada1[_0x4a3bf8(0xb9)](_0x4263b7['throttleTime']((_0x24e682=this[_0x4a3bf8(0xf1)][_0x4a3bf8(0x89)](_0xfe396a))!=null?_0x24e682:_0xc048b4,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x286a8b=>{const _0x5d5314=_0x4a3bf8;this[_0x5d5314(0x14a)][_0x5d5314(0xae)]({'eventID':_0x332357[_0x5d5314(0xd0)][_0x5d5314(0x122)],'data':{'unitID':this['_unitID'],'operations':{[_0x286a8b['id']]:{'id':_0x286a8b['id'],'params':JSON[_0x5d5314(0x106)](_0x286a8b['params'])}}}},this[_0x5d5314(0x94)]);})),_0x33ada1[_0x4a3bf8(0x128)](_0x1b05c6);})),this[_0x29341d(0xe2)]['getInitialStates'](this[_0x29341d(0x94)])[_0x29341d(0x90)](_0x407d6b=>this[_0x29341d(0x14a)][_0x29341d(0xae)]({'eventID':_0x332357[_0x29341d(0xd0)][_0x29341d(0x122)],'data':{'unitID':this[_0x29341d(0x94)],'operations':{[_0x407d6b['id']]:{'id':_0x407d6b['id'],'params':JSON[_0x29341d(0x106)](_0x407d6b[_0x29341d(0x13e)])}}}},this[_0x29341d(0x94)]));}[_0x10fbf1(0x12a)](){const _0x54d788=_0x10fbf1;var _0x5eaa7c;this[_0x54d788(0x145)]['next'](_0x54d788(0xa7)),(_0x5eaa7c=this[_0x54d788(0xab)])==null||_0x5eaa7c[_0x54d788(0xaa)](),this[_0x54d788(0xab)]=null;}[_0x10fbf1(0x15f)](){const _0xb59898=_0x10fbf1;var _0x26edb2;(_0x26edb2=this['_commandDisposable'])==null||_0x26edb2[_0xb59898(0xaa)](),this[_0xb59898(0x145)][_0xb59898(0x128)](_0xb59898(0x120));}[_0x10fbf1(0xc0)](){const _0x1bbf6e=_0x10fbf1;var _0x5d706f;this['_status$']['next'](_0x1bbf6e(0xa7)),(_0x5d706f=this['_commandDisposable'])==null||_0x5d706f[_0x1bbf6e(0xaa)](),this[_0x1bbf6e(0xab)]=null;}[_0x10fbf1(0x123)](){const _0x3ef57b=_0x10fbf1;var _0xbe5bdc;this['_status$']['next'](_0x3ef57b(0x11b)),(_0xbe5bdc=this['_commandDisposable'])==null||_0xbe5bdc[_0x3ef57b(0xaa)]();}['_handleOperation'](_0x556878){const _0x55f743=_0x10fbf1;if([_0x55f743(0x115),'not-following',_0x55f743(0x101)]['includes'](this[_0x55f743(0x7b)])||!_0x556878[_0x55f743(0x11e)][_0x55f743(0xca)]||_0x556878['data'][_0x55f743(0xca)]===this[_0x55f743(0x14a)]['getMemberID']())return;this[_0x55f743(0x7b)]===_0x55f743(0xa7)&&this[_0x55f743(0x15f)]();const _0x56fd5d=_0x556878['data'][_0x55f743(0x15b)];Object[_0x55f743(0x95)](_0x56fd5d)['forEach'](_0x51e1ed=>{const _0x13e501=_0x55f743;this[_0x13e501(0xb1)]['executeCommand'](_0x51e1ed['id'],_0x51e1ed[_0x13e501(0x13e)]?JSON[_0x13e501(0xef)](_0x51e1ed[_0x13e501(0x13e)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x2a73b1=_0x10fbf1;var _0x5970b6;this[_0x2a73b1(0x145)]['next']('offline'),(_0x5970b6=this[_0x2a73b1(0xab)])==null||_0x5970b6[_0x2a73b1(0xaa)]();}[_0x10fbf1(0x119)](){this['_status$']['next']('idle'),this['_fetchOperations']();}},_0x3d5254[_0x10fbf1(0xfc)]=_0xccc100([_0x338e90(0x2,_0x1383de['IConfigService']),_0x338e90(0x3,_0x1383de[_0x10fbf1(0x82)](_0x37da54)),_0x338e90(0x4,_0x1383de['ICommandService'])],_0x3d5254[_0x10fbf1(0xfc)]);function _0x6a3888(){const _0x3971cb=_0x10fbf1,_0x3f34e1=_0x47bd3b[_0x3971cb(0x114)](_0x3d5254[_0x3971cb(0x84)]),_0x11d539=_0x47bd3b[_0x3971cb(0x114)](_0x1383de[_0x3971cb(0x9c)]),_0x5d47ca=_0x47bd3b[_0x3971cb(0xe6)](()=>_0x11d539[_0x3971cb(0x11a)](_0x1383de['UniverInstanceType'][_0x3971cb(0xd3)]),void 0x0,!0x1,[]),[_0x17078b,_0x9f9d75]=_0xeb3c95['useState'](null),[_0x11568e,_0x33a63a]=_0xeb3c95[_0x3971cb(0x109)](_0x4e654a[_0x3971cb(0xcd)]),_0xb35f19=_0xeb3c95[_0x3971cb(0x11d)](null);return _0xeb3c95[_0x3971cb(0xa4)](()=>(_0x5d47ca&&_0x3f34e1[_0x3971cb(0x12d)](_0x5d47ca[_0x3971cb(0xa2)]())[_0x3971cb(0x10b)](_0xe88a01=>{const _0x559fc8=_0x3971cb;_0x9f9d75(_0xe88a01),_0xb35f19[_0x559fc8(0xe4)]=_0xe88a01['status$'][_0x559fc8(0xf8)](_0x53e9a1=>{_0x33a63a(_0x53e9a1);});}),()=>{const _0x370d0c=_0x3971cb;var _0x7bde8e;(_0x7bde8e=_0xb35f19[_0x370d0c(0xe4)])==null||_0x7bde8e[_0x370d0c(0x153)](),_0xb35f19[_0x370d0c(0xe4)]=null;}),[_0x5d47ca,_0x3f34e1]),_0x17078b?_0x561cf3['jsx'](_0x47ac77[_0x3971cb(0xec)],{'align':_0x3971cb(0xc1),'disabled':_0x11568e===_0x4e654a[_0x3971cb(0x76)],'className':_0x3971cb(0x139),'overlay':_0x561cf3['jsx'](_0x1c3ed5,{'status':_0x11568e,'coordinator':_0x17078b}),'children':_0x561cf3[_0x3971cb(0x127)](_0x3971cb(0xdb),{'className':_0x47ac77[_0x3971cb(0xff)](_0x3971cb(0xd9),{'univer-cursor-not-allowed':_0x11568e===_0x4e654a[_0x3971cb(0x76)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x11568e!==_0x4e654a[_0x3971cb(0x76)]}),'type':_0x3971cb(0xdb),'children':_0x561cf3[_0x3971cb(0x127)](_0x2ad1f1,{'className':_0x3971cb(0x124)})})}):null;}function _0x1c3ed5(_0x384fa2){const _0x38db66=_0x10fbf1,{status:_0x571363,coordinator:_0x324110}=_0x384fa2;switch(_0x571363){case _0x4e654a[_0x38db66(0xcd)]:return _0x561cf3[_0x38db66(0x127)](_0x4e09ec,{'coordinator':_0x324110});case _0x4e654a[_0x38db66(0x14e)]:return _0x561cf3['jsx'](_0xd1b2fd,{'coordinator':_0x324110});case _0x4e654a[_0x38db66(0x12f)]:return _0x561cf3[_0x38db66(0x127)](_0x157a33,{'coordinator':_0x324110});case _0x4e654a[_0x38db66(0x76)]:return _0x561cf3[_0x38db66(0x127)](_0x288bdb,{});case _0x4e654a[_0x38db66(0xc8)]:return _0x561cf3[_0x38db66(0x127)](_0x129eee,{'coordinator':_0x324110});default:return null;}}function _0x4e09ec(_0x121565){const _0x66e1b7=_0x10fbf1,{coordinator:_0x4dea3d}=_0x121565;return _0x561cf3[_0x66e1b7(0xf0)](_0x561cf3[_0x66e1b7(0xcc)],{'children':[_0x561cf3[_0x66e1b7(0x127)]('div',{'className':_0x66e1b7(0x15e),'children':_0x66e1b7(0xfe)}),_0x561cf3[_0x66e1b7(0x127)](_0x47ac77[_0x66e1b7(0x159)],{'onClick':()=>_0x4dea3d[_0x66e1b7(0x7c)](),'children':_0x66e1b7(0xed)})]});}function _0xd1b2fd(_0x389539){const _0x28a682=_0x10fbf1,{coordinator:_0x2266da}=_0x389539;return _0x561cf3[_0x28a682(0xf0)](_0x561cf3['Fragment'],{'children':[_0x561cf3[_0x28a682(0x127)](_0x28a682(0x148),{'className':_0x28a682(0x15e),'children':_0x28a682(0x86)}),_0x561cf3[_0x28a682(0x127)](_0x47ac77[_0x28a682(0x159)],{'onClick':()=>_0x2266da[_0x28a682(0x8e)](),'children':_0x28a682(0xe0)})]});}function _0x157a33(_0x10be12){const _0x5b58a1=_0x10fbf1,{coordinator:_0x2260c2}=_0x10be12;return _0x561cf3[_0x5b58a1(0xf0)](_0x561cf3[_0x5b58a1(0xcc)],{'children':[_0x561cf3[_0x5b58a1(0x127)](_0x5b58a1(0x148),{'className':_0x5b58a1(0x15e),'children':_0x5b58a1(0xde)}),_0x561cf3['jsx'](_0x47ac77[_0x5b58a1(0x159)],{'variant':'text','onClick':()=>_0x2260c2[_0x5b58a1(0x102)](),'children':_0x5b58a1(0xf2)})]});}function _0x129eee(_0x43ee50){const _0xe48db6=_0x10fbf1,{coordinator:_0x8812a7}=_0x43ee50;return _0x561cf3['jsxs'](_0x561cf3[_0xe48db6(0xcc)],{'children':[_0x561cf3['jsx']('div',{'className':_0xe48db6(0x15e),'children':_0xe48db6(0xcb)}),_0x561cf3['jsx'](_0x47ac77[_0xe48db6(0x159)],{'variant':_0xe48db6(0x164),'onClick':()=>_0x8812a7[_0xe48db6(0xd2)](),'children':_0xe48db6(0x8c)})]});}function _0x288bdb(){const _0x48d0cb=_0x10fbf1;return _0x561cf3['jsx'](_0x561cf3[_0x48d0cb(0xcc)],{'children':_0x48d0cb(0x134)});}var _0x263357=Object['getOwnPropertyDescriptor'],_0x42b12b=(_0xa0f798,_0x36b549,_0x54b497,_0x137d58)=>{const _0x4e83a0=_0x10fbf1;for(var _0x504a48=_0x137d58>0x1?void 0x0:_0x137d58?_0x263357(_0x36b549,_0x54b497):_0x36b549,_0x47bff6=_0xa0f798[_0x4e83a0(0x143)]-0x1,_0x36c24e;_0x47bff6>=0x0;_0x47bff6--)(_0x36c24e=_0xa0f798[_0x47bff6])&&(_0x504a48=_0x36c24e(_0x504a48)||_0x504a48);return _0x504a48;},_0x4a4cea=(_0xbd7568,_0x2ddc60)=>(_0x3731e0,_0x312d33)=>_0x2ddc60(_0x3731e0,_0x312d33,_0xbd7568);_0x3d5254['DesktopLiveShareController']=class extends _0x1383de[_0x10fbf1(0x104)]{constructor(_0x1fef07,_0x53e8af){const _0x3c3d1f=_0x10fbf1;super(),this[_0x3c3d1f(0xf3)]=_0x1fef07,this[_0x3c3d1f(0xb3)]=_0x53e8af,this[_0x3c3d1f(0xd4)]();}['_mountLiveShare'](){const _0x560b77=_0x10fbf1;this['disposeWithMe'](this[_0x560b77(0xb3)][_0x560b77(0xb2)](_0x47bd3b[_0x560b77(0xb0)]['HEADER_MENU'],()=>_0x47bd3b[_0x560b77(0x117)](_0x6a3888,this[_0x560b77(0xf3)])));}},_0x3d5254[_0x10fbf1(0xad)]=_0x42b12b([_0x4a4cea(0x0,_0x1383de[_0x10fbf1(0x82)](_0x1383de[_0x10fbf1(0xda)])),_0x4a4cea(0x1,_0x47bd3b[_0x10fbf1(0x10f)])],_0x3d5254[_0x10fbf1(0xad)]);const _0xc3ce09=_0x10fbf1(0x10c),_0xaad317={};var _0x4f2e8d=Object[_0x10fbf1(0xc6)],_0x174a59=(_0x5d3281,_0x5c2a6e,_0x592081,_0x1ea5c0)=>{for(var _0x37850d=_0x1ea5c0>0x1?void 0x0:_0x1ea5c0?_0x4f2e8d(_0x5c2a6e,_0x592081):_0x5c2a6e,_0x57cb5b=_0x5d3281['length']-0x1,_0x3371da;_0x57cb5b>=0x0;_0x57cb5b--)(_0x3371da=_0x5d3281[_0x57cb5b])&&(_0x37850d=_0x3371da(_0x37850d)||_0x37850d);return _0x37850d;},_0x27dbee=(_0x475cd4,_0x55cb05)=>(_0x3fc119,_0x507a09)=>_0x55cb05(_0x3fc119,_0x507a09,_0x475cd4);let _0x131f24=class extends _0x1383de[_0x10fbf1(0x104)]{constructor(_0x442e8c){const _0x4cfab9=_0x10fbf1;super(),this[_0x4cfab9(0xe2)]=_0x442e8c,this[_0x4cfab9(0x12b)]();}['_init'](){const _0x4f043a=_0x10fbf1;[_0x256bc6['SetZoomRatioOperation']['id'],_0x256bc6[_0x4f043a(0x77)]['id'],_0x504be1[_0x4f043a(0x13d)]['id']][_0x4f043a(0x90)](_0x5d25ca=>{const _0xdb5534=_0x4f043a;this[_0xdb5534(0xc4)](this[_0xdb5534(0xe2)][_0xdb5534(0xb6)](_0x5d25ca));});}};_0x131f24=_0x174a59([_0x27dbee(0x0,_0x1383de[_0x10fbf1(0x82)](_0x37da54))],_0x131f24);var _0x403cb2=Object[_0x10fbf1(0x85)],_0x557c18=Object['getOwnPropertyDescriptor'],_0x14edd4=(_0x24ee40,_0x1eee8b,_0x23d19d)=>_0x1eee8b in _0x24ee40?_0x403cb2(_0x24ee40,_0x1eee8b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23d19d}):_0x24ee40[_0x1eee8b]=_0x23d19d,_0x14153d=(_0x57334e,_0x12f2a0,_0x23ab9d,_0x2c8a43)=>{for(var _0xb036f5=_0x2c8a43>0x1?void 0x0:_0x2c8a43?_0x557c18(_0x12f2a0,_0x23ab9d):_0x12f2a0,_0x3f716a=_0x57334e['length']-0x1,_0x370d3e;_0x3f716a>=0x0;_0x3f716a--)(_0x370d3e=_0x57334e[_0x3f716a])&&(_0xb036f5=_0x370d3e(_0xb036f5)||_0xb036f5);return _0xb036f5;},_0x422854=(_0x5f5b0f,_0x38983a)=>(_0x105904,_0x5413e5)=>_0x38983a(_0x105904,_0x5413e5,_0x5f5b0f),_0x5d00d3=(_0x30736d,_0xbf716a,_0x47b962)=>_0x14edd4(_0x30736d,typeof _0xbf716a!=_0x10fbf1(0x105)?_0xbf716a+'':_0xbf716a,_0x47b962);const _0xc63d4e=_0x10fbf1(0xf9);_0x3d5254[_0x10fbf1(0x150)]=class extends _0x1383de['Plugin']{constructor(_0x26091b=_0xaad317,_0x2aae26,_0x4ee9a8){const _0x560ab9=_0x10fbf1;super(),this['_config']=_0x26091b,this[_0x560ab9(0xf3)]=_0x2aae26,this[_0x560ab9(0xf1)]=_0x4ee9a8;const {..._0xd75433}=_0x1383de[_0x560ab9(0x113)]({},_0xaad317,this[_0x560ab9(0xe5)]);this[_0x560ab9(0xf1)][_0x560ab9(0xfa)](_0xc3ce09,_0xd75433);}[_0x10fbf1(0x10e)](){const _0x4491=_0x10fbf1;_0x1383de['registerDependencies'](this['_injector'],_0x1383de[_0x4491(0x15a)]([[_0x37da54],[_0x3d5254['LiveShareController']],[_0x131f24],[_0x3d5254['DesktopLiveShareController']]],this[_0x4491(0xe5)]['override'])),_0x1383de[_0x4491(0x98)](this[_0x4491(0xf3)],[[_0x131f24]]);}['onRendered'](){const _0x580f8b=_0x10fbf1;_0x1383de['touchDependencies'](this[_0x580f8b(0xf3)],[[_0x3d5254[_0x580f8b(0xad)]]]);}},_0x5d00d3(_0x3d5254[_0x10fbf1(0x150)],_0x10fbf1(0xee),_0x1383de[_0x10fbf1(0xa9)][_0x10fbf1(0x7e)]),_0x5d00d3(_0x3d5254['UniverLiveSharePlugin'],'pluginName',_0xc63d4e),_0x3d5254['UniverLiveSharePlugin']=_0x14153d([_0x1383de['DependentOn'](_0x435296['UniverCollaborationClientPlugin']),_0x422854(0x1,_0x1383de[_0x10fbf1(0x82)](_0x1383de[_0x10fbf1(0xda)])),_0x422854(0x2,_0x1383de[_0x10fbf1(0x142)])],_0x3d5254[_0x10fbf1(0x150)]),_0x3d5254[_0x10fbf1(0x14b)]=_0x6a3888,_0x3d5254[_0x10fbf1(0x97)]=_0x37da54,_0x3d5254['LiveShareStatus']=_0x4e654a,Object[_0x10fbf1(0x85)](_0x3d5254,Symbol[_0x10fbf1(0xcf)],{'value':'Module'});}));function _0xe5a6(){const _0x2f85ac=['_config','useObservable','map','executeCommand','none','getStatus','rxjs/operators','Dropdown','Start','type','parse','jsxs','_configService','Start\x20following','_injector','idSuffix','children','object','UniverDesign','subscribe','UNIVER_LIVE_SHARE_PLUGIN','setConfig','mutations','LiveShareCoordinator','shouldShareOperation','Present\x20this\x20document','clsx','forwardRef','offline','startFollowing','replace','Disposable','symbol','stringify','_handleOperation','getTypeOfUnitAdded$','useState','UniverIcon','then','live-share.config','set','onStarting','IUIPartsService','_entities','amd','fill','merge','useDependency','presenting','react','connectInjector','exports','_handleOnline','getCurrentTypeOfUnit$','not-following','path','useRef','data','UniverCore','following','@univerjs/design','LIVESHARE_OPERATION','_stopFollowing','univer-size-4','colorChannel1','mask','jsx','next','tag','_stopPresenting','_init','toDisposable','getLiveShareCoordinator','find','NOT_FOLLOWING','defs','@univerjs-pro/collaboration-client','UniverUi','get','You\x27are\x20offline.','parseProtocolChangeset','init','UniverSheetsUi','LIVESHARE_REQUEST_HOST','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','_startLiveShareCoordinator','assign','99BtUDvH','SetWorksheetActiveOperation','params','RxDisposable','@univerjs/sheets-ui','30azyaxO','IConfigService','length','reverse','_status$','includes','CommandType','div','SAME_OPERATION_SHARE_INTERVAL','_collabSession','LiveShare','21OZAsUy','toString','FOLLOWING','_handleNewChangeSets','UniverLiveSharePlugin','event$','url(#$1','unsubscribe','BehaviorSubject','SessionStatus','getInitialStates','getMemberID','UniverProCollaborationClient','Button','mergeOverrideWithDependencies','operations','dispose$','react/jsx-runtime','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startFollowing','657975LYrvpg','Subject','@univerjs/core','add','default','_univerInstanceService','OFFLINE','SetScrollOperation','UniverProLiveShare','svg','React','_status','tryStartPresenting','delete','UNIVER_UNKNOWN','http://www.w3.org/2000/svg','xlink:href','defIds','Inject','getValue','LiveShareController','defineProperty','You\x27re\x20following\x20the\x20presenter','1EmDFFA','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','getConfig','operators','_sharedOperations','Stop\x20presenting','@univerjs-pro/collaboration','stopFollowing','_presenter','forEach','LIVESHARE_FETCH_OPERATIONS','LIVESHARE_TERMINATE','48570ojrGjz','_unitID','values','attrs','LiveShareService','touchDependencies','219160hrOBms','random','entries','IUniverInstanceService','createElement','substring','_handleTerminate','DisposableCollection','LIVESHARE_NEW_HOST','getUnitId','has','useEffect','87730ADQPNX','asObservable','idle','@univerjs/ui','UniverInstanceType','dispose','_commandDisposable','clear','DesktopLiveShareController','send','_fetchOperations','BuiltInUIPart','_commandService','registerComponent','_uiPartsService','9429156SIJoFH','createInstance','registerSharedOperation','takeUntil','_startPresenting','pipe','0\x200\x2017\x2017','sessionStatus$','evenodd','requireSession','72272widTdw','_handleNewHost','_beIdle','end','rxjs','_collabSessionService','disposeWithMe','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','getOwnPropertyDescriptor','_handleOffline','PRESENTING','currentColor','presenter','You\x27re\x20presenting\x20the\x20document','Fragment','IDLE','1em','toStringTag','CollaborationEvent','UniverProCollaboration','stopPresenting','UNIVER_SHEET','_mountLiveShare','complete','LiveShareIcon','displayName','UniverSheets','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Injector','button','function','_reporters','You\x27re\x20not\x20following\x20the\x20presenter','memberID','Stop\x20following','string','_liveShareService','1113430FQIxXc','current'];_0xe5a6=function(){return _0x2f85ac;};return _0xe5a6();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.12.4-experimental.20251210-d708bff",
3
+ "version": "0.12.4-experimental.20251210-29c379a",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -57,14 +57,14 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@univerjs/icons": "^1.0.2",
60
- "@univerjs-pro/collaboration": "0.12.4-experimental.20251210-d708bff",
61
- "@univerjs-pro/collaboration-client": "0.12.4-experimental.20251210-d708bff",
62
- "@univerjs/design": "0.12.4-experimental.20251210-d708bff",
63
- "@univerjs/core": "0.12.4-experimental.20251210-d708bff",
64
- "@univerjs/sheets-ui": "0.12.4-experimental.20251210-d708bff",
65
- "@univerjs/sheets": "0.12.4-experimental.20251210-d708bff",
66
- "@univerjs/ui": "0.12.4-experimental.20251210-d708bff",
67
- "@univerjs/engine-render": "0.12.4-experimental.20251210-d708bff"
60
+ "@univerjs-pro/collaboration": "0.12.4-experimental.20251210-29c379a",
61
+ "@univerjs/design": "0.12.4-experimental.20251210-29c379a",
62
+ "@univerjs-pro/collaboration-client": "0.12.4-experimental.20251210-29c379a",
63
+ "@univerjs/sheets-ui": "0.12.4-experimental.20251210-29c379a",
64
+ "@univerjs/core": "0.12.4-experimental.20251210-29c379a",
65
+ "@univerjs/engine-render": "0.12.4-experimental.20251210-29c379a",
66
+ "@univerjs/ui": "0.12.4-experimental.20251210-29c379a",
67
+ "@univerjs/sheets": "0.12.4-experimental.20251210-29c379a"
68
68
  },
69
69
  "devDependencies": {
70
70
  "postcss": "^8.5.6",