@univerjs-pro/live-share 0.14.0-insiders.20251227-b250a8d → 0.15.0-insiders.20251227-dafc157

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 _0x528172=_0x23f0;(function(_0x352f1c,_0x5bae7f){const _0x2b22c6=_0x23f0,_0x521a93=_0x352f1c();while(!![]){try{const _0x647de9=parseInt(_0x2b22c6(0x110))/0x1+-parseInt(_0x2b22c6(0x104))/0x2*(-parseInt(_0x2b22c6(0x112))/0x3)+-parseInt(_0x2b22c6(0x117))/0x4+-parseInt(_0x2b22c6(0x119))/0x5*(parseInt(_0x2b22c6(0x113))/0x6)+-parseInt(_0x2b22c6(0xf9))/0x7*(parseInt(_0x2b22c6(0x11c))/0x8)+-parseInt(_0x2b22c6(0x118))/0x9+parseInt(_0x2b22c6(0x10e))/0xa*(parseInt(_0x2b22c6(0x11a))/0xb);if(_0x647de9===_0x5bae7f)break;else _0x521a93['push'](_0x521a93['shift']());}catch(_0x1f08c9){_0x521a93['push'](_0x521a93['shift']());}}}(_0x2a0a,0x9a311));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');function _0x23f0(_0x5ddb34,_0x2b643b){_0x5ddb34=_0x5ddb34-0xf5;const _0x2a0a94=_0x2a0a();let _0x23f075=_0x2a0a94[_0x5ddb34];return _0x23f075;}function _0x2a0a(){const _0x32467c=['SetScrollOperation','getSheetId','startFollowing','LiveShareStatus','106270qdmrYc','SetWorksheetActiveOperation','_injector','getActiveWorkbook','getUnitId','PRESENTING','getLiveShareCoordinatorSync','FUniver','get','stopPresenting','7902650aBUGRL','LiveShareStatusEnum','931271bPLBvG','startColumn','45KruUzz','138YYLAUS','stopFollowing','executeCommand','getActiveSheet','1122072LJzWPa','7872777GoHhGd','134390fuxoZS','11zpCNIn','LiveShareController','856nuirZN','IRenderManagerService','FRange','_commandService','extend','getId','No\x20active\x20workbook\x20found.','7427hxXecV','getRenderById','_initialize','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','FEnum','getStatus','syncExecuteCommand'];_0x2a0a=function(){return _0x32467c;};return _0x2a0a();}class w extends d[_0x528172(0x11e)]{[_0x528172(0xfb)](_0xb57574,_0x97815d,_0x522e5b,_0x30219f,_0x12eacb){const _0x58fdfd=_0x528172,_0x426a63=_0xb57574[_0x58fdfd(0x10c)](n[_0x58fdfd(0x11b)]),_0x2eb494=_0xb57574[_0x58fdfd(0x10c)](g[_0x58fdfd(0x11d)]),_0x3d8bee=_0x97815d['getUnitId'](),_0x48edf5=_0x97815d[_0x58fdfd(0x116)](),_0x1d970b=_0x426a63[_0x58fdfd(0x10a)](_0x3d8bee);(_0x1d970b==null?void 0x0:_0x1d970b[_0x58fdfd(0xfe)]())!==n[_0x58fdfd(0x103)][_0x58fdfd(0x109)]||(_0x522e5b[_0x58fdfd(0x101)]()!==_0x48edf5[_0x58fdfd(0x101)]()&&this[_0x58fdfd(0xf5)][_0x58fdfd(0x115)](u[_0x58fdfd(0x105)]['id'],{'unitId':_0x3d8bee,'subUnitId':_0x522e5b[_0x58fdfd(0x101)]()}),!_0x2eb494[_0x58fdfd(0xfa)](_0x3d8bee))||_0x12eacb[_0x58fdfd(0xff)](f[_0x58fdfd(0x100)]['id'],{'unitId':_0x97815d[_0x58fdfd(0x108)](),'sheetId':_0x522e5b[_0x58fdfd(0x101)](),'sheetViewStartRow':_0x30219f['startRow'],'sheetViewStartColumn':_0x30219f[_0x58fdfd(0x111)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x528172(0x11e)][_0x528172(0xf6)](w);class C extends a[_0x528172(0x10b)]{['getLiveShareStatus'](){const _0x41e14d=_0x528172;var _0x28b627,_0x416f87;const _0x48fe6c=this['_injector'][_0x41e14d(0x10c)](n['LiveShareController']),_0x7536cd=(_0x28b627=this[_0x41e14d(0x107)]())==null?void 0x0:_0x28b627[_0x41e14d(0xf7)]();if(!_0x7536cd)throw new Error(_0x41e14d(0xf8));const _0x4c5c53=_0x48fe6c['getLiveShareCoordinatorSync'](_0x7536cd);return(_0x416f87=_0x4c5c53==null?void 0x0:_0x4c5c53['getStatus']())!=null?_0x416f87:n[_0x41e14d(0x103)]['IDLE'];}[_0x528172(0x102)](){const _0x16add9=_0x528172;var _0x139bf4;const _0x3648e4=this[_0x16add9(0x106)][_0x16add9(0x10c)](n[_0x16add9(0x11b)]),_0x231d85=(_0x139bf4=this[_0x16add9(0x107)]())==null?void 0x0:_0x139bf4[_0x16add9(0xf7)]();if(!_0x231d85)throw new Error('No\x20active\x20workbook\x20found.');const _0x388337=_0x3648e4['getLiveShareCoordinatorSync'](_0x231d85);if(!_0x388337)throw new Error(_0x16add9(0xfc));_0x388337[_0x16add9(0x102)]();}[_0x528172(0x114)](){const _0x1174cb=_0x528172;var _0x399735;const _0x17ae8f=this[_0x1174cb(0x106)]['get'](n[_0x1174cb(0x11b)]),_0x589a69=(_0x399735=this[_0x1174cb(0x107)]())==null?void 0x0:_0x399735['getId']();if(!_0x589a69)throw new Error('No\x20active\x20workbook\x20found.');const _0x2426bb=_0x17ae8f['getLiveShareCoordinatorSync'](_0x589a69);if(!_0x2426bb)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x2426bb[_0x1174cb(0x114)]();}['startPresenting'](){const _0x44f314=_0x528172;var _0x476a4f;const _0x4ab1dd=this[_0x44f314(0x106)]['get'](n['LiveShareController']),_0x346f89=(_0x476a4f=this[_0x44f314(0x107)]())==null?void 0x0:_0x476a4f[_0x44f314(0xf7)]();if(!_0x346f89)throw new Error('No\x20active\x20workbook\x20found.');const _0x478842=_0x4ab1dd[_0x44f314(0x10a)](_0x346f89);if(!_0x478842)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x478842['tryStartPresenting']();}[_0x528172(0x10d)](){const _0x1abf5e=_0x528172;var _0x3169f9;const _0x871971=this[_0x1abf5e(0x106)][_0x1abf5e(0x10c)](n[_0x1abf5e(0x11b)]),_0x2b6e23=(_0x3169f9=this['getActiveWorkbook']())==null?void 0x0:_0x3169f9['getId']();if(!_0x2b6e23)throw new Error(_0x1abf5e(0xf8));const _0x2fd5f8=_0x871971[_0x1abf5e(0x10a)](_0x2b6e23);if(!_0x2fd5f8)throw new Error(_0x1abf5e(0xfc));_0x2fd5f8[_0x1abf5e(0x10d)]();}}a['FUniver']['extend'](C);class L extends a[_0x528172(0xfd)]{get[_0x528172(0x10f)](){return n['LiveShareStatus'];}}a['FEnum'][_0x528172(0xf6)](L);
1
+ 'use strict';const _0x9db36d=_0x286e;(function(_0x310d71,_0x15b12d){const _0x24e3cf=_0x286e,_0x2a7668=_0x310d71();while(!![]){try{const _0x37bc39=parseInt(_0x24e3cf(0xc9))/0x1*(parseInt(_0x24e3cf(0xc6))/0x2)+-parseInt(_0x24e3cf(0xc7))/0x3*(-parseInt(_0x24e3cf(0xe0))/0x4)+parseInt(_0x24e3cf(0xd4))/0x5*(parseInt(_0x24e3cf(0xbc))/0x6)+-parseInt(_0x24e3cf(0xdb))/0x7*(parseInt(_0x24e3cf(0xdd))/0x8)+-parseInt(_0x24e3cf(0xcd))/0x9+parseInt(_0x24e3cf(0xc4))/0xa*(parseInt(_0x24e3cf(0xd0))/0xb)+-parseInt(_0x24e3cf(0xd7))/0xc;if(_0x37bc39===_0x15b12d)break;else _0x2a7668['push'](_0x2a7668['shift']());}catch(_0x440669){_0x2a7668['push'](_0x2a7668['shift']());}}}(_0x29c9,0x6dca9));function _0x286e(_0x3dfc00,_0x2f41bc){_0x3dfc00=_0x3dfc00-0xb9;const _0x29c96d=_0x29c9();let _0x286eca=_0x29c96d[_0x3dfc00];return _0x286eca;}function _0x29c9(){const _0x3b99e2=['stopFollowing','964601zwCUby','getStatus','_injector','LiveShareController','3579535cGGFAy','getId','PRESENTING','18730584SCEeKB','IRenderManagerService','FRange','getSheetId','217sOgqTV','tryStartPresenting','33256eygDQj','SetWorksheetActiveOperation','getActiveSheet','4lwdsRk','startPresenting','getLiveShareStatus','_commandService','stopPresenting','executeCommand','LiveShareStatus','LiveShareStatusEnum','extend','6YzyxaE','startFollowing','FEnum','FUniver','getLiveShareCoordinatorSync','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','SetScrollOperation','getActiveWorkbook','40iAVXHh','syncExecuteCommand','43702IgUROh','2505381YhUHNB','getUnitId','13NXBdYz','_initialize','get','startColumn','417663KGjgxj','No\x20active\x20workbook\x20found.'];_0x29c9=function(){return _0x3b99e2;};return _0x29c9();}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']{[_0x9db36d(0xca)](_0x348b06,_0x3044cc,_0x293928,_0x1640d5,_0x2af9c1){const _0x4364b3=_0x9db36d,_0x114814=_0x348b06[_0x4364b3(0xcb)](n[_0x4364b3(0xd3)]),_0x3f6cf5=_0x348b06[_0x4364b3(0xcb)](g[_0x4364b3(0xd8)]),_0x51effb=_0x3044cc['getUnitId'](),_0x42e1a6=_0x3044cc[_0x4364b3(0xdf)](),_0x95a353=_0x114814[_0x4364b3(0xc0)](_0x51effb);(_0x95a353==null?void 0x0:_0x95a353[_0x4364b3(0xd1)]())!==n['LiveShareStatus'][_0x4364b3(0xd6)]||(_0x293928['getSheetId']()!==_0x42e1a6[_0x4364b3(0xda)]()&&this[_0x4364b3(0xe3)][_0x4364b3(0xe5)](u[_0x4364b3(0xde)]['id'],{'unitId':_0x51effb,'subUnitId':_0x293928[_0x4364b3(0xda)]()}),!_0x3f6cf5['getRenderById'](_0x51effb))||_0x2af9c1[_0x4364b3(0xc5)](f[_0x4364b3(0xc2)]['id'],{'unitId':_0x3044cc[_0x4364b3(0xc8)](),'sheetId':_0x293928[_0x4364b3(0xda)](),'sheetViewStartRow':_0x1640d5['startRow'],'sheetViewStartColumn':_0x1640d5[_0x4364b3(0xcc)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x9db36d(0xd9)][_0x9db36d(0xbb)](w);class C extends a[_0x9db36d(0xbf)]{[_0x9db36d(0xe2)](){const _0x4e5ec5=_0x9db36d;var _0x2765cd,_0x1d19b9;const _0x44e759=this[_0x4e5ec5(0xd2)]['get'](n[_0x4e5ec5(0xd3)]),_0x4de1ba=(_0x2765cd=this[_0x4e5ec5(0xc3)]())==null?void 0x0:_0x2765cd[_0x4e5ec5(0xd5)]();if(!_0x4de1ba)throw new Error(_0x4e5ec5(0xce));const _0x1641a8=_0x44e759[_0x4e5ec5(0xc0)](_0x4de1ba);return(_0x1d19b9=_0x1641a8==null?void 0x0:_0x1641a8[_0x4e5ec5(0xd1)]())!=null?_0x1d19b9:n['LiveShareStatus']['IDLE'];}[_0x9db36d(0xbd)](){const _0x18a348=_0x9db36d;var _0xe9c00a;const _0x589ec0=this[_0x18a348(0xd2)][_0x18a348(0xcb)](n[_0x18a348(0xd3)]),_0x503680=(_0xe9c00a=this['getActiveWorkbook']())==null?void 0x0:_0xe9c00a[_0x18a348(0xd5)]();if(!_0x503680)throw new Error(_0x18a348(0xce));const _0x41bf9b=_0x589ec0['getLiveShareCoordinatorSync'](_0x503680);if(!_0x41bf9b)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x41bf9b[_0x18a348(0xbd)]();}[_0x9db36d(0xcf)](){const _0x221c09=_0x9db36d;var _0x1bbec4;const _0x112a95=this[_0x221c09(0xd2)][_0x221c09(0xcb)](n[_0x221c09(0xd3)]),_0x5cc55e=(_0x1bbec4=this['getActiveWorkbook']())==null?void 0x0:_0x1bbec4[_0x221c09(0xd5)]();if(!_0x5cc55e)throw new Error(_0x221c09(0xce));const _0x3f41e1=_0x112a95[_0x221c09(0xc0)](_0x5cc55e);if(!_0x3f41e1)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3f41e1[_0x221c09(0xcf)]();}[_0x9db36d(0xe1)](){const _0x305a59=_0x9db36d;var _0x13706f;const _0x59c561=this[_0x305a59(0xd2)][_0x305a59(0xcb)](n[_0x305a59(0xd3)]),_0x4b1fba=(_0x13706f=this[_0x305a59(0xc3)]())==null?void 0x0:_0x13706f[_0x305a59(0xd5)]();if(!_0x4b1fba)throw new Error(_0x305a59(0xce));const _0x44a1d6=_0x59c561[_0x305a59(0xc0)](_0x4b1fba);if(!_0x44a1d6)throw new Error(_0x305a59(0xc1));_0x44a1d6[_0x305a59(0xdc)]();}[_0x9db36d(0xe4)](){const _0x118d47=_0x9db36d;var _0x3a8380;const _0x56f1f8=this['_injector'][_0x118d47(0xcb)](n['LiveShareController']),_0x5c17b1=(_0x3a8380=this[_0x118d47(0xc3)]())==null?void 0x0:_0x3a8380['getId']();if(!_0x5c17b1)throw new Error(_0x118d47(0xce));const _0x1dc03c=_0x56f1f8[_0x118d47(0xc0)](_0x5c17b1);if(!_0x1dc03c)throw new Error(_0x118d47(0xc1));_0x1dc03c['stopPresenting']();}}a['FUniver'][_0x9db36d(0xbb)](C);class L extends a[_0x9db36d(0xbe)]{get[_0x9db36d(0xba)](){const _0x8fe0b8=_0x9db36d;return n[_0x8fe0b8(0xb9)];}}a['FEnum'][_0x9db36d(0xbb)](L);
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';const _0x4c144d=_0x38ba;(function(_0x52f6af,_0x490b91){const _0x18de77=_0x38ba,_0x40b1e5=_0x52f6af();while(!![]){try{const _0x139fbb=parseInt(_0x18de77(0x28b))/0x1*(-parseInt(_0x18de77(0x224))/0x2)+parseInt(_0x18de77(0x1bb))/0x3+-parseInt(_0x18de77(0x23c))/0x4*(-parseInt(_0x18de77(0x1da))/0x5)+-parseInt(_0x18de77(0x254))/0x6*(parseInt(_0x18de77(0x24c))/0x7)+parseInt(_0x18de77(0x206))/0x8*(parseInt(_0x18de77(0x1c5))/0x9)+-parseInt(_0x18de77(0x1df))/0xa*(-parseInt(_0x18de77(0x1bc))/0xb)+parseInt(_0x18de77(0x255))/0xc*(-parseInt(_0x18de77(0x283))/0xd);if(_0x139fbb===_0x490b91)break;else _0x40b1e5['push'](_0x40b1e5['shift']());}catch(_0x40ebb8){_0x40b1e5['push'](_0x40b1e5['shift']());}}}(_0x334a,0x9bb2e));var T=Object['defineProperty'],U=(_0x372489,_0x1b5dac,_0x3834bb)=>_0x1b5dac in _0x372489?T(_0x372489,_0x1b5dac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3834bb}):_0x372489[_0x1b5dac]=_0x3834bb,_=(_0x339d8b,_0x5b6779,_0x4ca0f5)=>U(_0x339d8b,typeof _0x5b6779!=_0x4c144d(0x286)?_0x5b6779+'':_0x5b6779,_0x4ca0f5);Object['defineProperty'](exports,Symbol[_0x4c144d(0x208)],{'value':_0x4c144d(0x22e)});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 _0x38ba(_0x330d13,_0x28213c){_0x330d13=_0x330d13-0x1b8;const _0x334a5f=_0x334a();let _0x38ba48=_0x334a5f[_0x330d13];return _0x38ba48;}function x({ref:_0x350f7f,..._0x34316c}){const _0x23ef38=_0x4c144d,{icon:_0x1ff6ec,id:_0x1ac6fd,className:_0x2bf88e,extend:_0x3e98fe,..._0x45d2f8}=_0x34316c,_0x490e88=(_0x23ef38(0x268)+_0x1ac6fd+'\x20'+(_0x2bf88e||''))['trim'](),_0x51be12=v[_0x23ef38(0x205)]('_'+H());return j(_0x1ff6ec,''+_0x1ac6fd,{'defIds':_0x1ff6ec[_0x23ef38(0x235)],'idSuffix':_0x51be12['current']},{'ref':_0x350f7f,'className':_0x490e88,..._0x45d2f8},_0x3e98fe);}function j(_0x1b877d,_0x1508d5,_0x258bbb,_0x93af81,_0xe0ff8c){const _0x62c8f0=_0x4c144d;return v[_0x62c8f0(0x253)](_0x1b877d[_0x62c8f0(0x26a)],{'key':_0x1508d5,...y(_0x1b877d,_0x258bbb,_0xe0ff8c),..._0x93af81},(F(_0x1b877d,_0x258bbb)[_0x62c8f0(0x25e)]||[])['map']((_0x355630,_0x4abbea)=>j(_0x355630,_0x1508d5+'-'+_0x1b877d['tag']+'-'+_0x4abbea,_0x258bbb,void 0x0,_0xe0ff8c)));}function y(_0x3e81dc,_0xbacff4,_0x59d18b){const _0x1ff4fc=_0x4c144d,_0x160918={..._0x3e81dc[_0x1ff4fc(0x271)]};_0x59d18b!=null&&_0x59d18b['colorChannel1']&&_0x160918[_0x1ff4fc(0x1c4)]==='colorChannel1'&&(_0x160918[_0x1ff4fc(0x1c4)]=_0x59d18b['colorChannel1']),_0x3e81dc[_0x1ff4fc(0x26a)]===_0x1ff4fc(0x1b8)&&_0x160918['id']&&(_0x160918['id']=_0x160918['id']+_0xbacff4['idSuffix']),Object[_0x1ff4fc(0x1e9)](_0x160918)[_0x1ff4fc(0x1c3)](([_0x6e33ef,_0x25fef3])=>{const _0x1a4dd4=_0x1ff4fc;_0x6e33ef===_0x1a4dd4(0x1b8)&&typeof _0x25fef3==_0x1a4dd4(0x1ba)&&(_0x160918[_0x6e33ef]=_0x25fef3[_0x1a4dd4(0x1ec)](/url\(#(.*)\)/,'url(#$1'+_0xbacff4[_0x1a4dd4(0x204)]+')'));});const {defIds:_0x2f19b5}=_0xbacff4;return!_0x2f19b5||_0x2f19b5[_0x1ff4fc(0x232)]===0x0||(_0x3e81dc[_0x1ff4fc(0x26a)]===_0x1ff4fc(0x284)&&_0x160918[_0x1ff4fc(0x1db)]&&(_0x160918[_0x1ff4fc(0x1db)]=_0x160918[_0x1ff4fc(0x1db)]+_0xbacff4[_0x1ff4fc(0x204)]),Object['entries'](_0x160918)[_0x1ff4fc(0x1c3)](([_0x3abaf5,_0x32284a])=>{const _0x5a5cb5=_0x1ff4fc;typeof _0x32284a==_0x5a5cb5(0x1ba)&&(_0x160918[_0x3abaf5]=_0x32284a[_0x5a5cb5(0x1ec)](/url\(#(.*)\)/,_0x5a5cb5(0x1d6)+_0xbacff4[_0x5a5cb5(0x204)]+')'));})),_0x160918;}function F(_0x497c5e,_0x29fc4a){const _0x480671=_0x4c144d;var _0x3c9486;const {defIds:_0x4039a6}=_0x29fc4a;return!_0x4039a6||_0x4039a6['length']===0x0?_0x497c5e:_0x497c5e['tag']===_0x480671(0x233)&&((_0x3c9486=_0x497c5e[_0x480671(0x25e)])!=null&&_0x3c9486[_0x480671(0x232)])?{..._0x497c5e,'children':_0x497c5e[_0x480671(0x25e)][_0x480671(0x223)](_0x5a01a0=>typeof _0x5a01a0[_0x480671(0x271)]['id']==_0x480671(0x1ba)&&_0x4039a6&&_0x4039a6['includes'](_0x5a01a0['attrs']['id'])?{..._0x5a01a0,'attrs':{..._0x5a01a0[_0x480671(0x271)],'id':_0x5a01a0[_0x480671(0x271)]['id']+_0x29fc4a[_0x480671(0x204)]}}:_0x5a01a0)}:_0x497c5e;}function H(){const _0x3162c5=_0x4c144d;return Math[_0x3162c5(0x277)]()[_0x3162c5(0x218)](0x24)['substring'](0x2,0x8);}x[_0x4c144d(0x1dd)]=_0x4c144d(0x203);const V={'tag':_0x4c144d(0x26d),'attrs':{'xmlns':_0x4c144d(0x231),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x4c144d(0x1d8),'height':_0x4c144d(0x1d8)},'children':[{'tag':_0x4c144d(0x1f3),'attrs':{'fill':_0x4c144d(0x1d3),'d':_0x4c144d(0x1de)}},{'tag':_0x4c144d(0x1f3),'attrs':{'fill':_0x4c144d(0x1d3),'d':_0x4c144d(0x276),'fillRule':_0x4c144d(0x1fa),'clipRule':_0x4c144d(0x1fa)}}]},R=v[_0x4c144d(0x260)](function(_0x28c5f0,_0x435be3){const _0x2871e2=_0x4c144d;return v[_0x2871e2(0x253)](x,Object['assign']({},_0x28c5f0,{'id':_0x2871e2(0x211),'ref':_0x435be3,'icon':V}));});R['displayName']=_0x4c144d(0x1c7);class E extends o[_0x4c144d(0x27c)]{constructor(){const _0x5d114b=_0x4c144d;super(...arguments),_(this,_0x5d114b(0x213),new Set()),_(this,_0x5d114b(0x269),new Set());}['registerSharedOperation'](_0x31a16b){const _0x4016a5=_0x4c144d;return this[_0x4016a5(0x213)][_0x4016a5(0x282)](_0x31a16b),o['toDisposable'](()=>this[_0x4016a5(0x213)][_0x4016a5(0x28c)](_0x31a16b));}[_0x4c144d(0x244)](_0x1f0a0c){const _0xadb2f=_0x4c144d;return this[_0xadb2f(0x269)]['add'](_0x1f0a0c),o[_0xadb2f(0x1d1)](()=>this['_reporters']['delete'](_0x1f0a0c));}[_0x4c144d(0x1e0)](_0x3cefdb){const _0x318d1d=_0x4c144d;return this[_0x318d1d(0x213)][_0x318d1d(0x201)](_0x3cefdb);}[_0x4c144d(0x262)](_0x924b49){const _0x1d151b=_0x4c144d;return Array[_0x1d151b(0x1f0)](this[_0x1d151b(0x269)])[_0x1d151b(0x223)](_0x6837c0=>_0x6837c0(_0x924b49));}}var M=Object[_0x4c144d(0x285)],P=(_0x2d4688,_0x2dd462,_0x5167d1,_0x4a09f4)=>{const _0x2cd18c=_0x4c144d;for(var _0x5372db=_0x4a09f4>0x1?void 0x0:_0x4a09f4?M(_0x2dd462,_0x5167d1):_0x2dd462,_0xeb3719=_0x2d4688[_0x2cd18c(0x232)]-0x1,_0x5dedbc;_0xeb3719>=0x0;_0xeb3719--)(_0x5dedbc=_0x2d4688[_0xeb3719])&&(_0x5372db=_0x5dedbc(_0x5372db)||_0x5372db);return _0x5372db;},S=(_0x1b7351,_0x236383)=>(_0x333325,_0x24cda1)=>_0x236383(_0x333325,_0x24cda1,_0x1b7351);exports[_0x4c144d(0x26b)]=class extends o[_0x4c144d(0x26e)]{constructor(_0x9f02fa,_0x12cd2b,_0x38dad1){const _0x31dd78=_0x4c144d;super(),_(this,_0x31dd78(0x1d4),new Map()),(this['_univerInstanceService']=_0x9f02fa,this[_0x31dd78(0x24e)]=_0x12cd2b,this[_0x31dd78(0x1f4)]=_0x38dad1,this[_0x31dd78(0x24d)]());}async[_0x4c144d(0x1d2)](_0x47061c){const _0x1f6d08=_0x4c144d;return this[_0x1f6d08(0x1d4)]['has'](_0x47061c)||await this[_0x1f6d08(0x292)](_0x47061c),this[_0x1f6d08(0x1d4)][_0x1f6d08(0x22f)](_0x47061c);}[_0x4c144d(0x27d)](_0x11c86a){const _0x10e560=_0x4c144d;var _0xb9176b;return(_0xb9176b=this[_0x10e560(0x1d4)][_0x10e560(0x22f)](_0x11c86a))!=null?_0xb9176b:null;}[_0x4c144d(0x24d)](){const _0x2981fb=_0x4c144d;this[_0x2981fb(0x273)][_0x2981fb(0x27a)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x2981fb(0x21f)](I[_0x2981fb(0x291)](this[_0x2981fb(0x1d5)]))[_0x2981fb(0x21c)](async _0x401da0=>{const _0x292c2e=_0x2981fb,_0x34c65a=_0x401da0[_0x292c2e(0x216)]();this[_0x292c2e(0x1d4)]['has'](_0x34c65a)||this['_startLiveShareCoordinator'](_0x34c65a);}),this[_0x2981fb(0x273)][_0x2981fb(0x281)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x2981fb(0x21f)](I[_0x2981fb(0x291)](this[_0x2981fb(0x1d5)]))[_0x2981fb(0x21c)](_0xc44b5d=>{const _0x472469=_0x2981fb,_0x4a427a=_0xc44b5d[_0x472469(0x216)](),_0x17ea28=this[_0x472469(0x1d4)][_0x472469(0x22f)](_0x4a427a);_0x17ea28==null||_0x17ea28[_0x472469(0x1fd)]();});}async[_0x4c144d(0x292)](_0x27992b){const _0x4869f6=_0x4c144d,_0x3f1878=await this[_0x4869f6(0x1f4)][_0x4869f6(0x1f1)](_0x27992b),_0x519923=this[_0x4869f6(0x24e)][_0x4869f6(0x290)](exports[_0x4869f6(0x245)],_0x27992b,_0x3f1878);return _0x519923[_0x4869f6(0x289)](),this[_0x4869f6(0x1d4)][_0x4869f6(0x234)](_0x27992b,_0x519923),_0x519923;}},exports['LiveShareController']=P([S(0x0,o[_0x4c144d(0x25a)]),S(0x1,o['Inject'](o[_0x4c144d(0x1fe)])),S(0x2,o['Inject'](b[_0x4c144d(0x1c2)]))],exports['LiveShareController']);var u=(_0x410785=>(_0x410785[_0x4c144d(0x256)]='offline',_0x410785[_0x4c144d(0x1eb)]=_0x4c144d(0x1ed),_0x410785[_0x4c144d(0x251)]=_0x4c144d(0x25f),_0x410785[_0x4c144d(0x1e2)]='not-following',_0x410785[_0x4c144d(0x1c1)]=_0x4c144d(0x1e4),_0x410785))(u||{});const k=_0x4c144d(0x270),q=0xc8;exports[_0x4c144d(0x245)]=class extends o['RxDisposable']{constructor(_0x539f62,_0x25d8cf,_0x49d7d0,_0x1bd4bf,_0x2b55ef){const _0x110f7a=_0x4c144d;super(),_(this,_0x110f7a(0x226),new O[(_0x110f7a(0x22c))](_0x110f7a(0x1ed))),_(this,'status$',this[_0x110f7a(0x226)][_0x110f7a(0x225)]()),_(this,'_init',!0x1),_(this,_0x110f7a(0x28f),null),_(this,_0x110f7a(0x222),null),(this['_unitID']=_0x539f62,this[_0x110f7a(0x21a)]=_0x25d8cf,this[_0x110f7a(0x248)]=_0x49d7d0,this[_0x110f7a(0x219)]=_0x1bd4bf,this[_0x110f7a(0x1bf)]=_0x2b55ef);}get[_0x4c144d(0x27b)](){const _0x1ea73e=_0x4c144d;return this[_0x1ea73e(0x226)][_0x1ea73e(0x266)]();}[_0x4c144d(0x1fd)](){const _0x3d92da=_0x4c144d;var _0x1f095d;(_0x1f095d=this[_0x3d92da(0x28f)])==null||_0x1f095d[_0x3d92da(0x1fd)](),this[_0x3d92da(0x226)][_0x3d92da(0x250)](_0x3d92da(0x1ed)),this[_0x3d92da(0x226)][_0x3d92da(0x267)]();}['getStatus'](){const _0x1b1c21=_0x4c144d;return this[_0x1b1c21(0x27b)];}[_0x4c144d(0x289)](){const _0x4644e2=_0x4c144d;this[_0x4644e2(0x24d)]||(this[_0x4644e2(0x24d)]=!0x0,this['_collabSession']['sessionStatus$']['pipe'](I[_0x4644e2(0x291)](this[_0x4644e2(0x1d5)]))[_0x4644e2(0x21c)](_0xd89f59=>{const _0x2942f4=_0x4644e2;switch(_0xd89f59){case b[_0x2942f4(0x1e1)]['OFFLINE']:this['_handleOffline']();break;case b[_0x2942f4(0x1e1)][_0x2942f4(0x1ca)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x4644e2(0x20e)]['pipe'](I[_0x4644e2(0x291)](this[_0x4644e2(0x1d5)]))['subscribe'](_0xb8652f=>{const _0xfc8ac7=_0x4644e2,{eventID:_0x8c790e}=_0xb8652f;switch(_0x8c790e){case d[_0xfc8ac7(0x1f6)][_0xfc8ac7(0x1f2)]:this['_handleNewHost'](_0xb8652f);break;case d[_0xfc8ac7(0x1f6)][_0xfc8ac7(0x200)]:this[_0xfc8ac7(0x23b)](_0xb8652f);break;case d['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0xfc8ac7(0x1e7)]();break;case d[_0xfc8ac7(0x1f6)]['NEW_CHANGESETS']:this[_0xfc8ac7(0x1c0)](_0xb8652f);break;}}));}[_0x4c144d(0x239)](){const _0x16db17=_0x4c144d;this[_0x16db17(0x21a)][_0x16db17(0x258)]({'eventID':d[_0x16db17(0x1f6)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x16db17(0x1e3)],'userID':this[_0x16db17(0x21a)]['getMemberID']()}},this['_unitID']);}[_0x4c144d(0x207)](){const _0x16e935=_0x4c144d;this[_0x16e935(0x27b)]==='presenting'&&(this[_0x16e935(0x226)]['next'](_0x16e935(0x1ed)),this[_0x16e935(0x21a)][_0x16e935(0x258)]({'eventID':d['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x16e935(0x1e3)]}},this[_0x16e935(0x1e3)]));}['startFollowing'](){const _0x4198c1=_0x4c144d;this[_0x4198c1(0x27b)]===_0x4198c1(0x24a)&&(this[_0x4198c1(0x226)]['next'](_0x4198c1(0x25f)),this[_0x4198c1(0x23f)]());}[_0x4c144d(0x287)](){const _0x2ef4c9=_0x4c144d;this[_0x2ef4c9(0x27b)]===_0x2ef4c9(0x25f)&&this['_stopFollowing']();}[_0x4c144d(0x24f)](_0x41dae9){const _0x484f73=_0x4c144d,{presenter:_0x1f4bb8}=_0x41dae9[_0x484f73(0x1d9)],_0x2e985f=this[_0x484f73(0x21a)][_0x484f73(0x272)]();this[_0x484f73(0x222)]=_0x1f4bb8,_0x1f4bb8===_0x2e985f?(this['_stopFollowing'](),this[_0x484f73(0x228)]()):this[_0x484f73(0x27b)]!==_0x484f73(0x24a)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x4c144d(0x1ef)](){const _0x3f074f=_0x4c144d,_0x3e1c6e={'eventID':d['CollaborationEvent'][_0x3f074f(0x23d)]};this[_0x3f074f(0x21a)][_0x3f074f(0x258)](_0x3e1c6e,this[_0x3f074f(0x1e3)]);}[_0x4c144d(0x1e7)](){const _0x3ea90c=_0x4c144d;this[_0x3ea90c(0x222)]=null,this['_status']!==_0x3ea90c(0x1e4)&&this[_0x3ea90c(0x215)]();}['_handleNewChangeSets'](_0x1bba6a){const _0x143d01=_0x4c144d;if(this[_0x143d01(0x27b)]===_0x143d01(0x25f)&&this[_0x143d01(0x222)]===_0x1bba6a[_0x143d01(0x1d9)][_0x143d01(0x1f5)]){const _0x58b5ed=d[_0x143d01(0x263)](_0x1bba6a[_0x143d01(0x1d9)])['mutations']['reverse']()['find'](_0xcfffc0=>_0xcfffc0['id']===C[_0x143d01(0x20b)]['id']);if(_0x58b5ed){const _0x591aaa=_0x58b5ed[_0x143d01(0x1ea)][_0x143d01(0x1cd)],_0x5deec7=_0x58b5ed[_0x143d01(0x1ea)][_0x143d01(0x1c8)]['id'];setTimeout(()=>{const _0x4bee75=_0x143d01;this[_0x4bee75(0x1bf)]['executeCommand'](C[_0x4bee75(0x28d)]['id'],{'unitId':_0x591aaa,'subUnitId':_0x5deec7},{'fromCollab':!0x0});});}}}[_0x4c144d(0x228)](){const _0x4ec3dc=_0x4c144d;this[_0x4ec3dc(0x226)][_0x4ec3dc(0x250)](_0x4ec3dc(0x1e4));const _0x14ddd1=new Map(),_0x21487e=this[_0x4ec3dc(0x28f)]=new o[(_0x4ec3dc(0x243))]();_0x21487e[_0x4ec3dc(0x282)](o[_0x4ec3dc(0x1d1)](()=>{const _0x242042=_0x4ec3dc;_0x14ddd1[_0x242042(0x1c3)](_0x12d286=>_0x12d286[_0x242042(0x267)]()),_0x14ddd1['clear']();})),_0x21487e[_0x4ec3dc(0x282)](this[_0x4ec3dc(0x1bf)][_0x4ec3dc(0x1e5)](_0x3e9d22=>{const _0x18c4f=_0x4ec3dc;var _0x3289d1;if(_0x3e9d22[_0x18c4f(0x1b9)]!==o[_0x18c4f(0x252)]['OPERATION']||!this['_liveShareService'][_0x18c4f(0x1e0)](_0x3e9d22['id']))return;const {id:_0x24e05b}=_0x3e9d22;let _0x2d6673;_0x14ddd1['has'](_0x24e05b)?_0x2d6673=_0x14ddd1[_0x18c4f(0x22f)](_0x24e05b):(_0x2d6673=new O[(_0x18c4f(0x1cf))](),_0x14ddd1[_0x18c4f(0x234)](_0x24e05b,_0x2d6673),_0x2d6673['pipe'](I[_0x18c4f(0x1f7)]((_0x3289d1=this['_configService']['getConfig'](k))!=null?_0x3289d1:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x18c4f(0x21c)](_0x185ee4=>{const _0x17f02a=_0x18c4f;this[_0x17f02a(0x21a)][_0x17f02a(0x258)]({'eventID':d['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x17f02a(0x1e3)],'operations':{[_0x185ee4['id']]:{'id':_0x185ee4['id'],'params':JSON[_0x17f02a(0x220)](_0x185ee4[_0x17f02a(0x1ea)])}}}},this[_0x17f02a(0x1e3)]);})),_0x2d6673[_0x18c4f(0x250)](_0x3e9d22);})),this[_0x4ec3dc(0x219)][_0x4ec3dc(0x262)](this['_unitID'])[_0x4ec3dc(0x1c3)](_0x185b04=>this[_0x4ec3dc(0x21a)][_0x4ec3dc(0x258)]({'eventID':d['CollaborationEvent'][_0x4ec3dc(0x200)],'data':{'unitID':this['_unitID'],'operations':{[_0x185b04['id']]:{'id':_0x185b04['id'],'params':JSON[_0x4ec3dc(0x220)](_0x185b04[_0x4ec3dc(0x1ea)])}}}},this['_unitID']));}[_0x4c144d(0x264)](){const _0xa9a15e=_0x4c144d;var _0x500228;this[_0xa9a15e(0x226)][_0xa9a15e(0x250)]('idle'),(_0x500228=this['_commandDisposable'])==null||_0x500228[_0xa9a15e(0x1fd)](),this[_0xa9a15e(0x28f)]=null;}[_0x4c144d(0x23f)](){const _0xd4f219=_0x4c144d;var _0x380d72;(_0x380d72=this[_0xd4f219(0x28f)])==null||_0x380d72[_0xd4f219(0x1fd)](),this[_0xd4f219(0x226)][_0xd4f219(0x250)]('following');}[_0x4c144d(0x215)](){const _0x4e4175=_0x4c144d;var _0x1b3462;this[_0x4e4175(0x226)][_0x4e4175(0x250)](_0x4e4175(0x1ed)),(_0x1b3462=this[_0x4e4175(0x28f)])==null||_0x1b3462[_0x4e4175(0x1fd)](),this[_0x4e4175(0x28f)]=null;}[_0x4c144d(0x280)](){const _0x5657e8=_0x4c144d;var _0x401e3f;this['_status$']['next']('not-following'),(_0x401e3f=this[_0x5657e8(0x28f)])==null||_0x401e3f[_0x5657e8(0x1fd)]();}[_0x4c144d(0x23b)](_0x10dd1d){const _0x3a5d68=_0x4c144d;if(['presenting',_0x3a5d68(0x24a),_0x3a5d68(0x279)]['includes'](this[_0x3a5d68(0x27b)])||!_0x10dd1d['data']['presenter']||_0x10dd1d[_0x3a5d68(0x1d9)][_0x3a5d68(0x1f9)]===this['_collabSession'][_0x3a5d68(0x272)]())return;this[_0x3a5d68(0x27b)]==='idle'&&this[_0x3a5d68(0x23f)]();const _0xde96=_0x10dd1d[_0x3a5d68(0x1d9)][_0x3a5d68(0x293)];Object[_0x3a5d68(0x27f)](_0xde96)[_0x3a5d68(0x1c3)](_0x4dbf77=>{const _0x32b3a1=_0x3a5d68;this[_0x32b3a1(0x1bf)]['executeCommand'](_0x4dbf77['id'],_0x4dbf77[_0x32b3a1(0x1ea)]?JSON[_0x32b3a1(0x209)](_0x4dbf77['params']):null,{'fromCollab':!0x0});});}[_0x4c144d(0x28a)](){const _0x4f1956=_0x4c144d;var _0x2c97dc;this['_status$'][_0x4f1956(0x250)](_0x4f1956(0x279)),(_0x2c97dc=this['_commandDisposable'])==null||_0x2c97dc['dispose']();}['_handleOnline'](){const _0x51ff22=_0x4c144d;this[_0x51ff22(0x226)]['next'](_0x51ff22(0x1ed)),this[_0x51ff22(0x1ef)]();}},exports[_0x4c144d(0x245)]=P([S(0x2,o[_0x4c144d(0x25b)]),S(0x3,o[_0x4c144d(0x227)](E)),S(0x4,o['ICommandService'])],exports[_0x4c144d(0x245)]);function $(){const _0x36a172=_0x4c144d,_0xda734d=p[_0x36a172(0x240)](exports[_0x36a172(0x26b)]),_0x3489df=p[_0x36a172(0x240)](o[_0x36a172(0x25a)]),_0x1f3c39=p['useObservable'](()=>_0x3489df[_0x36a172(0x21d)](o['UniverInstanceType'][_0x36a172(0x238)]),void 0x0,!0x1,[]),[_0x3d685c,_0x3a1b27]=v[_0x36a172(0x259)](null),[_0x124f9c,_0x238eb0]=v['useState'](u[_0x36a172(0x1eb)]),_0x3fd033=v[_0x36a172(0x205)](null);return v[_0x36a172(0x22a)](()=>(_0x1f3c39&&_0xda734d[_0x36a172(0x1d2)](_0x1f3c39[_0x36a172(0x216)]())[_0x36a172(0x217)](_0x9b1d13=>{const _0x3fb383=_0x36a172;_0x3a1b27(_0x9b1d13),_0x3fd033[_0x3fb383(0x25c)]=_0x9b1d13[_0x3fb383(0x23a)][_0x3fb383(0x21c)](_0x3991f8=>{_0x238eb0(_0x3991f8);});}),()=>{const _0x10c1d7=_0x36a172;var _0xdfce41;(_0xdfce41=_0x3fd033['current'])==null||_0xdfce41[_0x10c1d7(0x1bd)](),_0x3fd033[_0x10c1d7(0x25c)]=null;}),[_0x1f3c39,_0xda734d]),_0x3d685c?l[_0x36a172(0x1d0)](f[_0x36a172(0x26f)],{'align':_0x36a172(0x20f),'disabled':_0x124f9c===u[_0x36a172(0x256)],'className':_0x36a172(0x20a),'overlay':l[_0x36a172(0x1d0)](W,{'status':_0x124f9c,'coordinator':_0x3d685c}),'children':l[_0x36a172(0x1d0)]('button',{'className':f[_0x36a172(0x21b)](_0x36a172(0x241),{'univer-cursor-not-allowed':_0x124f9c===u[_0x36a172(0x256)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x124f9c!==u[_0x36a172(0x256)]}),'type':_0x36a172(0x23e),'children':l['jsx'](R,{'className':_0x36a172(0x22d)})})}):null;}function W(_0x4f637b){const _0x166255=_0x4c144d,{status:_0x4656b2,coordinator:_0x135c0e}=_0x4f637b;switch(_0x4656b2){case u[_0x166255(0x1eb)]:return l[_0x166255(0x1d0)](G,{'coordinator':_0x135c0e});case u[_0x166255(0x251)]:return l[_0x166255(0x1d0)](B,{'coordinator':_0x135c0e});case u[_0x166255(0x1e2)]:return l[_0x166255(0x1d0)](Y,{'coordinator':_0x135c0e});case u[_0x166255(0x256)]:return l[_0x166255(0x1d0)](J,{});case u[_0x166255(0x1c1)]:return l['jsx'](Z,{'coordinator':_0x135c0e});default:return null;}}function G(_0x3534c6){const _0x50bbe7=_0x4c144d,{coordinator:_0x9a692a}=_0x3534c6;return l[_0x50bbe7(0x257)](l[_0x50bbe7(0x261)],{'children':[l[_0x50bbe7(0x1d0)](_0x50bbe7(0x21e),{'className':_0x50bbe7(0x249),'children':_0x50bbe7(0x278)}),l['jsx'](f[_0x50bbe7(0x275)],{'onClick':()=>_0x9a692a[_0x50bbe7(0x239)](),'children':_0x50bbe7(0x20c)})]});}function B(_0x5aa6e4){const _0xd0f59a=_0x4c144d,{coordinator:_0x4221c3}=_0x5aa6e4;return l[_0xd0f59a(0x257)](l[_0xd0f59a(0x261)],{'children':[l[_0xd0f59a(0x1d0)](_0xd0f59a(0x21e),{'className':_0xd0f59a(0x249),'children':_0xd0f59a(0x265)}),l[_0xd0f59a(0x1d0)](f[_0xd0f59a(0x275)],{'onClick':()=>_0x4221c3[_0xd0f59a(0x287)](),'children':_0xd0f59a(0x1e8)})]});}function Y(_0x4d5789){const _0x3d6b02=_0x4c144d,{coordinator:_0x1b9f1a}=_0x4d5789;return l[_0x3d6b02(0x257)](l['Fragment'],{'children':[l['jsx'](_0x3d6b02(0x21e),{'className':_0x3d6b02(0x249),'children':_0x3d6b02(0x24b)}),l[_0x3d6b02(0x1d0)](f[_0x3d6b02(0x275)],{'variant':_0x3d6b02(0x1ff),'onClick':()=>_0x1b9f1a[_0x3d6b02(0x242)](),'children':_0x3d6b02(0x1be)})]});}function Z(_0x1c500d){const _0x4f540c=_0x4c144d,{coordinator:_0x1324ff}=_0x1c500d;return l[_0x4f540c(0x257)](l[_0x4f540c(0x261)],{'children':[l[_0x4f540c(0x1d0)](_0x4f540c(0x21e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4f540c(0x288)}),l[_0x4f540c(0x1d0)](f[_0x4f540c(0x275)],{'variant':_0x4f540c(0x1fc),'onClick':()=>_0x1324ff[_0x4f540c(0x207)](),'children':_0x4f540c(0x1e6)})]});}function J(){const _0x4e308f=_0x4c144d;return l[_0x4e308f(0x1d0)](l[_0x4e308f(0x261)],{'children':_0x4e308f(0x1d7)});}var K=Object[_0x4c144d(0x285)],z=(_0x46edb0,_0x355f5c,_0x40a00b,_0x38da8a)=>{for(var _0x9b5c1b=_0x38da8a>0x1?void 0x0:_0x38da8a?K(_0x355f5c,_0x40a00b):_0x355f5c,_0x3cb7f3=_0x46edb0['length']-0x1,_0x71e2d6;_0x3cb7f3>=0x0;_0x3cb7f3--)(_0x71e2d6=_0x46edb0[_0x3cb7f3])&&(_0x9b5c1b=_0x71e2d6(_0x9b5c1b)||_0x9b5c1b);return _0x9b5c1b;},L=(_0x5b57bd,_0x14d082)=>(_0x4d8c6f,_0x4c5364)=>_0x14d082(_0x4d8c6f,_0x4c5364,_0x5b57bd);exports['DesktopLiveShareController']=class extends o[_0x4c144d(0x27c)]{constructor(_0x3d90f3,_0x3fbfdc){const _0x2083fa=_0x4c144d;super(),this[_0x2083fa(0x24e)]=_0x3d90f3,this['_uiPartsService']=_0x3fbfdc,this[_0x2083fa(0x28e)]();}['_mountLiveShare'](){const _0x28e058=_0x4c144d;this[_0x28e058(0x1fb)](this[_0x28e058(0x22b)][_0x28e058(0x1c9)](p[_0x28e058(0x221)][_0x28e058(0x230)],()=>p[_0x28e058(0x1f8)]($,this[_0x28e058(0x24e)])));}},exports[_0x4c144d(0x26c)]=z([L(0x0,o[_0x4c144d(0x227)](o['Injector'])),L(0x1,p[_0x4c144d(0x212)])],exports['DesktopLiveShareController']);const Q='live-share.config',w={};var X=Object[_0x4c144d(0x285)],ee=(_0x31a7b2,_0x5a17fc,_0x461218,_0xd5de99)=>{for(var _0x1fc141=_0xd5de99>0x1?void 0x0:_0xd5de99?X(_0x5a17fc,_0x461218):_0x5a17fc,_0x1580c0=_0x31a7b2['length']-0x1,_0x58fb93;_0x1580c0>=0x0;_0x1580c0--)(_0x58fb93=_0x31a7b2[_0x1580c0])&&(_0x1fc141=_0x58fb93(_0x1fc141)||_0x1fc141);return _0x1fc141;},te=(_0x21c6f3,_0x456839)=>(_0x10008d,_0x498dfe)=>_0x456839(_0x10008d,_0x498dfe,_0x21c6f3);let m=class extends o[_0x4c144d(0x27c)]{constructor(_0x563315){const _0xd1d517=_0x4c144d;super(),this[_0xd1d517(0x219)]=_0x563315,this[_0xd1d517(0x24d)]();}[_0x4c144d(0x24d)](){const _0x449ef6=_0x4c144d;[D[_0x449ef6(0x274)]['id'],D[_0x449ef6(0x202)]['id'],C[_0x449ef6(0x28d)]['id']]['forEach'](_0x4124da=>{const _0x34c2e6=_0x449ef6;this['disposeWithMe'](this[_0x34c2e6(0x219)][_0x34c2e6(0x237)](_0x4124da));});}};m=ee([te(0x0,o['Inject'](E))],m);function _0x334a(){const _0x132a44=['SessionStatus','NOT_FOLLOWING','_unitID','presenting','onCommandExecuted','Stop\x20presenting','_handleTerminate','Stop\x20following','entries','params','IDLE','replace','idle','onStarting','_fetchOperations','from','requireSession','LIVESHARE_NEW_HOST','path','_collabSessionService','memberID','CollaborationEvent','throttleTime','connectInjector','presenter','evenodd','disposeWithMe','default','dispose','Injector','text','LIVESHARE_OPERATION','has','SetScrollOperation','UniverIcon','idSuffix','useRef','1575712qlEHon','stopPresenting','toStringTag','parse','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','InsertSheetMutation','Start','UNIVER_LIVE_SHARE_PLUGIN','event$','end','_config','live-share-icon','IUIPartsService','_sharedOperations','LiveShareStatus','_beIdle','getUnitId','then','toString','_liveShareService','_collabSession','clsx','subscribe','getCurrentTypeOfUnit$','div','pipe','stringify','BuiltInUIPart','_presenter','map','31138Uuaoio','asObservable','_status$','Inject','_startPresenting','LiveShareService','useEffect','_uiPartsService','BehaviorSubject','univer-size-4','Module','get','HEADER_MENU','http://www.w3.org/2000/svg','length','defs','set','defIds','UniverInstanceType','registerSharedOperation','UNIVER_SHEET','tryStartPresenting','status$','_handleOperation','1340sRMPwk','LIVESHARE_FETCH_OPERATIONS','button','_startFollowing','useDependency','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','startFollowing','DisposableCollection','registerInitialStateReporter','LiveShareCoordinator','Plugin','defineProperty','_configService','univer-mb-3\x20univer-w-full\x20univer-text-sm','not-following','You\x27re\x20not\x20following\x20the\x20presenter','7mHYbbQ','_init','_injector','_handleNewHost','next','FOLLOWING','CommandType','createElement','2659110mICiKu','19860ytFWdQ','OFFLINE','jsxs','send','useState','IUniverInstanceService','IConfigService','current','merge','children','following','forwardRef','Fragment','getInitialStates','parseProtocolChangeset','_stopPresenting','You\x27re\x20following\x20the\x20presenter','getValue','complete','univerjs-icon\x20univerjs-icon-','_reporters','tag','LiveShareController','DesktopLiveShareController','svg','RxDisposable','Dropdown','SAME_OPERATION_SHARE_INTERVAL','attrs','getMemberID','_univerInstanceService','SetZoomRatioOperation','Button','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','random','Present\x20this\x20document','offline','getTypeOfUnitAdded$','_status','Disposable','getLiveShareCoordinatorSync','UniverLiveSharePlugin','values','_stopFollowing','getTypeOfUnitDisposed$','add','12545jQImRj','use','getOwnPropertyDescriptor','symbol','stopFollowing','You\x27re\x20presenting\x20the\x20document','init','_handleOffline','13YjPwzX','delete','SetWorksheetActiveOperation','_mountLiveShare','_commandDisposable','createInstance','takeUntil','_startLiveShareCoordinator','operations','mask','type','string','476652NGdFWb','1782gfVetS','unsubscribe','Start\x20following','_commandService','_handleNewChangeSets','PRESENTING','CollaborationSessionService','forEach','fill','45qDMZGZ','override','LiveShareIcon','sheet','registerComponent','ONLINE','pluginName','registerDependencies','unitId','touchDependencies','Subject','jsx','toDisposable','getLiveShareCoordinator','currentColor','_entities','dispose$','url(#$1','You\x27are\x20offline.','1em','data','11365HBMiFB','xlink:href','setConfig','displayName','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','60200dhAONP','shouldShareOperation'];_0x334a=function(){return _0x132a44;};return _0x334a();}var ie=Object[_0x4c144d(0x247)],se=Object[_0x4c144d(0x285)],ne=(_0x386038,_0x4ef535,_0x422ee8)=>_0x4ef535 in _0x386038?ie(_0x386038,_0x4ef535,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x422ee8}):_0x386038[_0x4ef535]=_0x422ee8,re=(_0x2013f5,_0x3d66d4,_0x23f418,_0x2fb3f9)=>{for(var _0x298176=_0x2fb3f9>0x1?void 0x0:_0x2fb3f9?se(_0x3d66d4,_0x23f418):_0x3d66d4,_0x4c3660=_0x2013f5['length']-0x1,_0x2bd513;_0x4c3660>=0x0;_0x4c3660--)(_0x2bd513=_0x2013f5[_0x4c3660])&&(_0x298176=_0x2bd513(_0x298176)||_0x298176);return _0x298176;},N=(_0x90897b,_0x49d488)=>(_0x347259,_0x5e25b4)=>_0x49d488(_0x347259,_0x5e25b4,_0x90897b),A=(_0x3b08e4,_0x1a596d,_0x39a5e7)=>ne(_0x3b08e4,typeof _0x1a596d!=_0x4c144d(0x286)?_0x1a596d+'':_0x1a596d,_0x39a5e7);const oe=_0x4c144d(0x20d);exports[_0x4c144d(0x27e)]=class extends o[_0x4c144d(0x246)]{constructor(_0x4c1c16=w,_0x357e80,_0x3a5ecc){const _0x5299d9=_0x4c144d;super(),this[_0x5299d9(0x210)]=_0x4c1c16,this[_0x5299d9(0x24e)]=_0x357e80,this[_0x5299d9(0x248)]=_0x3a5ecc;const {..._0x475569}=o[_0x5299d9(0x25d)]({},w,this['_config']);this[_0x5299d9(0x248)][_0x5299d9(0x1dc)](Q,_0x475569);}[_0x4c144d(0x1ee)](){const _0x5bfa51=_0x4c144d;o[_0x5bfa51(0x1cc)](this[_0x5bfa51(0x24e)],o['mergeOverrideWithDependencies']([[E],[exports[_0x5bfa51(0x26b)]],[m],[exports[_0x5bfa51(0x26c)]]],this['_config'][_0x5bfa51(0x1c6)])),o[_0x5bfa51(0x1ce)](this[_0x5bfa51(0x24e)],[[m]]);}['onRendered'](){const _0x5bb78e=_0x4c144d;o[_0x5bb78e(0x1ce)](this[_0x5bb78e(0x24e)],[[exports[_0x5bb78e(0x26c)]]]);}},A(exports[_0x4c144d(0x27e)],_0x4c144d(0x1b9),o[_0x4c144d(0x236)]['UNIVER_UNKNOWN']),A(exports[_0x4c144d(0x27e)],_0x4c144d(0x1cb),oe),exports[_0x4c144d(0x27e)]=re([o['DependentOn'](b['UniverCollaborationClientPlugin']),N(0x1,o['Inject'](o['Injector'])),N(0x2,o[_0x4c144d(0x25b)])],exports[_0x4c144d(0x27e)]),exports['LiveShare']=$,exports[_0x4c144d(0x229)]=E,exports[_0x4c144d(0x214)]=u;
1
+ 'use strict';const _0x18a17a=_0x30a1;(function(_0x350f13,_0x2b607a){const _0x20e132=_0x30a1,_0x2929d2=_0x350f13();while(!![]){try{const _0x3d3573=-parseInt(_0x20e132(0x1db))/0x1+parseInt(_0x20e132(0x1ee))/0x2*(-parseInt(_0x20e132(0x234))/0x3)+parseInt(_0x20e132(0x203))/0x4+-parseInt(_0x20e132(0x252))/0x5*(-parseInt(_0x20e132(0x21d))/0x6)+-parseInt(_0x20e132(0x232))/0x7+parseInt(_0x20e132(0x256))/0x8+parseInt(_0x20e132(0x276))/0x9;if(_0x3d3573===_0x2b607a)break;else _0x2929d2['push'](_0x2929d2['shift']());}catch(_0x54e2ee){_0x2929d2['push'](_0x2929d2['shift']());}}}(_0x3924,0x8eac9));var T=Object[_0x18a17a(0x201)],U=(_0x1a6d48,_0x560a8e,_0x5c8458)=>_0x560a8e in _0x1a6d48?T(_0x1a6d48,_0x560a8e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c8458}):_0x1a6d48[_0x560a8e]=_0x5c8458,_=(_0x207d88,_0x44659c,_0x4e0b9a)=>U(_0x207d88,typeof _0x44659c!=_0x18a17a(0x26e)?_0x44659c+'':_0x44659c,_0x4e0b9a);Object[_0x18a17a(0x201)](exports,Symbol[_0x18a17a(0x236)],{'value':_0x18a17a(0x1f1)});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 _0x3924(){const _0x500ca9=['UNIVER_LIVE_SHARE_PLUGIN','symbol','has','LIVESHARE_TERMINATE','NOT_FOLLOWING','getUnitId','UniverIcon','IUniverInstanceService','SAME_OPERATION_SHARE_INTERVAL','5559345FrLOqU','DesktopLiveShareController','Dropdown','parse','UniverInstanceType','takeUntil','then','LiveShareCoordinator','mutations','SessionStatus','UniverLiveSharePlugin','You\x27re\x20not\x20following\x20the\x20presenter','univerjs-icon\x20univerjs-icon-','next','LIVESHARE_NEW_HOST','attrs','shouldShareOperation','unsubscribe','_commandService','throttleTime','xlink:href','url(#$1','_collabSessionService','LiveShare','presenter','_startFollowing','clear','current','jsx','BehaviorSubject','_reporters','trim','SetWorksheetActiveOperation','_startLiveShareCoordinator','getCurrentTypeOfUnit$','onStarting','http://www.w3.org/2000/svg','evenodd','useObservable','getLiveShareCoordinator','getTypeOfUnitDisposed$','_collabSession','button','mergeOverrideWithDependencies','registerDependencies','0\x200\x2017\x2017','includes','set','parseProtocolChangeset','590073hEnGfV','_liveShareService','toDisposable','data','unitId','text','UNIVER_SHEET','_handleOnline','params','map','type','_handleNewHost','toString','getLiveShareCoordinatorSync','memberID','OPERATION','mask','div','_mountLiveShare','7082HEPlBs','jsxs','default','Module','get','Fragment','not-following','_unitID','LiveShareController','_startPresenting','_stopFollowing','_presenter','path','createInstance','getValue','find','getInitialStates','_handleNewChangeSets','_injector','defineProperty','substring','3925900ZeIuok','sheet','createElement','replace','CollaborationEvent','dispose','_fetchOperations','live-share.config','executeCommand','_handleOperation','_univerInstanceService','stringify','add','_config','OFFLINE','send','DependentOn','RxDisposable','IDLE','random','_handleOffline','registerComponent','presenting','LIVESHARE_OPERATION','currentColor','idle','6dlqZMB','defIds','_status','Start\x20following','following','_init','UNIVER_UNKNOWN','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','getMemberID','status$','operations','getOwnPropertyDescriptor','useRef','useDependency','startFollowing','length','offline','clsx','onRendered','Present\x20this\x20document','_commandDisposable','4990034tiUaZY','pipe','441CKTQoE','_uiPartsService','toStringTag','forwardRef','CommandType','asObservable','dispose$','HEADER_MENU','registerInitialStateReporter','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','entries','forEach','Button','FOLLOWING','none','_stopPresenting','_entities','ICommandService','_handleTerminate','registerSharedOperation','disposeWithMe','colorChannel1','IConfigService','touchDependencies','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27are\x20offline.','subscribe','univer-size-4','LIVESHARE_REQUEST_HOST','string','1159945eanLaP','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','displayName','tag','4613488tXYQWQ','LiveShareIcon','onCommandExecuted','requireSession','override','stopPresenting','Injector','idSuffix','1em','delete','InsertSheetMutation','PRESENTING','Inject','DisposableCollection','Disposable','assign','_sharedOperations','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_configService','SetZoomRatioOperation','reverse','_status$','useEffect'];_0x3924=function(){return _0x500ca9;};return _0x3924();}function x({ref:_0x497aad,..._0x40efc8}){const _0x14cbdf=_0x18a17a,{icon:_0x4c3781,id:_0x274e2e,className:_0x43c149,extend:_0x3a11ed,..._0x55acfc}=_0x40efc8,_0x2098b4=(_0x14cbdf(0x282)+_0x274e2e+'\x20'+(_0x43c149||''))[_0x14cbdf(0x295)](),_0x5f110c=v[_0x14cbdf(0x229)]('_'+H());return j(_0x4c3781,''+_0x274e2e,{'defIds':_0x4c3781[_0x14cbdf(0x21e)],'idSuffix':_0x5f110c['current']},{'ref':_0x497aad,'className':_0x2098b4,..._0x55acfc},_0x3a11ed);}function j(_0x6e4431,_0x1499d1,_0x495163,_0x100682,_0x349d5c){const _0x1032c9=_0x18a17a;return v[_0x1032c9(0x205)](_0x6e4431['tag'],{'key':_0x1499d1,...y(_0x6e4431,_0x495163,_0x349d5c),..._0x100682},(F(_0x6e4431,_0x495163)['children']||[])[_0x1032c9(0x1e4)]((_0x23c5b6,_0x2d0bb5)=>j(_0x23c5b6,_0x1499d1+'-'+_0x6e4431['tag']+'-'+_0x2d0bb5,_0x495163,void 0x0,_0x349d5c)));}function y(_0x2a4729,_0x1c01d6,_0x556956){const _0x3e42db=_0x18a17a,_0x4fec69={..._0x2a4729[_0x3e42db(0x285)]};_0x556956!=null&&_0x556956['colorChannel1']&&_0x4fec69['fill']==='colorChannel1'&&(_0x4fec69['fill']=_0x556956[_0x3e42db(0x249)]),_0x2a4729[_0x3e42db(0x255)]===_0x3e42db(0x1eb)&&_0x4fec69['id']&&(_0x4fec69['id']=_0x4fec69['id']+_0x1c01d6[_0x3e42db(0x25d)]),Object[_0x3e42db(0x23e)](_0x4fec69)['forEach'](([_0x4a8033,_0x509607])=>{const _0x18b44b=_0x3e42db;_0x4a8033==='mask'&&typeof _0x509607==_0x18b44b(0x251)&&(_0x4fec69[_0x4a8033]=_0x509607[_0x18b44b(0x206)](/url\(#(.*)\)/,_0x18b44b(0x28b)+_0x1c01d6[_0x18b44b(0x25d)]+')'));});const {defIds:_0x514aed}=_0x1c01d6;return!_0x514aed||_0x514aed['length']===0x0||(_0x2a4729[_0x3e42db(0x255)]==='use'&&_0x4fec69[_0x3e42db(0x28a)]&&(_0x4fec69[_0x3e42db(0x28a)]=_0x4fec69[_0x3e42db(0x28a)]+_0x1c01d6['idSuffix']),Object['entries'](_0x4fec69)[_0x3e42db(0x23f)](([_0x3c1d78,_0x69829d])=>{const _0x4aa7d8=_0x3e42db;typeof _0x69829d==_0x4aa7d8(0x251)&&(_0x4fec69[_0x3c1d78]=_0x69829d[_0x4aa7d8(0x206)](/url\(#(.*)\)/,_0x4aa7d8(0x28b)+_0x1c01d6[_0x4aa7d8(0x25d)]+')'));})),_0x4fec69;}function F(_0x584890,_0x26f526){const _0x630a02=_0x18a17a;var _0x203bc2;const {defIds:_0x319830}=_0x26f526;return!_0x319830||_0x319830[_0x630a02(0x22c)]===0x0?_0x584890:_0x584890['tag']==='defs'&&((_0x203bc2=_0x584890['children'])!=null&&_0x203bc2[_0x630a02(0x22c)])?{..._0x584890,'children':_0x584890['children'][_0x630a02(0x1e4)](_0x12f9ba=>typeof _0x12f9ba[_0x630a02(0x285)]['id']==_0x630a02(0x251)&&_0x319830&&_0x319830[_0x630a02(0x1d8)](_0x12f9ba['attrs']['id'])?{..._0x12f9ba,'attrs':{..._0x12f9ba[_0x630a02(0x285)],'id':_0x12f9ba[_0x630a02(0x285)]['id']+_0x26f526[_0x630a02(0x25d)]}}:_0x12f9ba)}:_0x584890;}function H(){const _0x5bf167=_0x18a17a;return Math[_0x5bf167(0x216)]()[_0x5bf167(0x1e7)](0x24)[_0x5bf167(0x202)](0x2,0x8);}x[_0x18a17a(0x254)]=_0x18a17a(0x273);const V={'tag':'svg','attrs':{'xmlns':_0x18a17a(0x1ce),'fill':_0x18a17a(0x242),'viewBox':_0x18a17a(0x1d7),'width':_0x18a17a(0x25e),'height':_0x18a17a(0x25e)},'children':[{'tag':_0x18a17a(0x1fa),'attrs':{'fill':_0x18a17a(0x21b),'d':_0x18a17a(0x253)}},{'tag':_0x18a17a(0x1fa),'attrs':{'fill':'currentColor','d':_0x18a17a(0x267),'fillRule':_0x18a17a(0x1cf),'clipRule':_0x18a17a(0x1cf)}}]},R=v[_0x18a17a(0x237)](function(_0x52079c,_0x1ad96){const _0x13e2c8=_0x18a17a;return v[_0x13e2c8(0x205)](x,Object[_0x13e2c8(0x265)]({},_0x52079c,{'id':'live-share-icon','ref':_0x1ad96,'icon':V}));});R[_0x18a17a(0x254)]=_0x18a17a(0x257);class E extends o[_0x18a17a(0x264)]{constructor(){const _0x5c8217=_0x18a17a;super(...arguments),_(this,'_sharedOperations',new Set()),_(this,_0x5c8217(0x294),new Set());}[_0x18a17a(0x247)](_0x18cc21){const _0x2eb57d=_0x18a17a;return this[_0x2eb57d(0x266)][_0x2eb57d(0x20f)](_0x18cc21),o[_0x2eb57d(0x1dd)](()=>this[_0x2eb57d(0x266)][_0x2eb57d(0x25f)](_0x18cc21));}[_0x18a17a(0x23c)](_0x1a712c){const _0x30127c=_0x18a17a;return this[_0x30127c(0x294)]['add'](_0x1a712c),o[_0x30127c(0x1dd)](()=>this['_reporters'][_0x30127c(0x25f)](_0x1a712c));}[_0x18a17a(0x286)](_0x2c3082){const _0x13651b=_0x18a17a;return this[_0x13651b(0x266)][_0x13651b(0x26f)](_0x2c3082);}[_0x18a17a(0x1fe)](_0x99324f){const _0x1158d2=_0x18a17a;return Array['from'](this[_0x1158d2(0x294)])[_0x1158d2(0x1e4)](_0x31128b=>_0x31128b(_0x99324f));}}var M=Object[_0x18a17a(0x228)],P=(_0xa45db1,_0x1a2541,_0x10a870,_0x11d6e9)=>{const _0x4d318c=_0x18a17a;for(var _0x9bcc96=_0x11d6e9>0x1?void 0x0:_0x11d6e9?M(_0x1a2541,_0x10a870):_0x1a2541,_0x230d07=_0xa45db1[_0x4d318c(0x22c)]-0x1,_0x39ce1c;_0x230d07>=0x0;_0x230d07--)(_0x39ce1c=_0xa45db1[_0x230d07])&&(_0x9bcc96=_0x39ce1c(_0x9bcc96)||_0x9bcc96);return _0x9bcc96;},S=(_0x11ebbb,_0x3c6bd1)=>(_0x4d156a,_0x2dc7a2)=>_0x3c6bd1(_0x4d156a,_0x2dc7a2,_0x11ebbb);exports[_0x18a17a(0x1f6)]=class extends o[_0x18a17a(0x214)]{constructor(_0x5b27f3,_0xc80117,_0x532892){const _0x2a3ea6=_0x18a17a;super(),_(this,_0x2a3ea6(0x244),new Map()),(this[_0x2a3ea6(0x20d)]=_0x5b27f3,this[_0x2a3ea6(0x200)]=_0xc80117,this['_collabSessionService']=_0x532892,this[_0x2a3ea6(0x222)]());}async['getLiveShareCoordinator'](_0x9fe6d9){const _0x16b564=_0x18a17a;return this[_0x16b564(0x244)][_0x16b564(0x26f)](_0x9fe6d9)||await this[_0x16b564(0x297)](_0x9fe6d9),this[_0x16b564(0x244)][_0x16b564(0x1f2)](_0x9fe6d9);}[_0x18a17a(0x1e8)](_0x2c0654){const _0x1cfa6d=_0x18a17a;var _0x2d6fb8;return(_0x2d6fb8=this[_0x1cfa6d(0x244)]['get'](_0x2c0654))!=null?_0x2d6fb8:null;}['_init'](){const _0xdaa5b3=_0x18a17a;this[_0xdaa5b3(0x20d)]['getTypeOfUnitAdded$'](o[_0xdaa5b3(0x27a)][_0xdaa5b3(0x1e1)])[_0xdaa5b3(0x233)](I[_0xdaa5b3(0x27b)](this[_0xdaa5b3(0x23a)]))['subscribe'](async _0x112160=>{const _0x495184=_0xdaa5b3,_0x23d84f=_0x112160[_0x495184(0x272)]();this[_0x495184(0x244)][_0x495184(0x26f)](_0x23d84f)||this[_0x495184(0x297)](_0x23d84f);}),this['_univerInstanceService'][_0xdaa5b3(0x1d2)](o[_0xdaa5b3(0x27a)]['UNIVER_SHEET'])[_0xdaa5b3(0x233)](I[_0xdaa5b3(0x27b)](this[_0xdaa5b3(0x23a)]))['subscribe'](_0x22bb36=>{const _0x420e4f=_0xdaa5b3,_0x26ae40=_0x22bb36[_0x420e4f(0x272)](),_0x1f7814=this[_0x420e4f(0x244)][_0x420e4f(0x1f2)](_0x26ae40);_0x1f7814==null||_0x1f7814[_0x420e4f(0x208)]();});}async['_startLiveShareCoordinator'](_0x43f0e5){const _0x423f91=_0x18a17a,_0x4d6bce=await this[_0x423f91(0x28c)][_0x423f91(0x259)](_0x43f0e5),_0x22c5a8=this[_0x423f91(0x200)][_0x423f91(0x1fb)](exports[_0x423f91(0x27d)],_0x43f0e5,_0x4d6bce);return _0x22c5a8['init'](),this[_0x423f91(0x244)][_0x423f91(0x1d9)](_0x43f0e5,_0x22c5a8),_0x22c5a8;}},exports[_0x18a17a(0x1f6)]=P([S(0x0,o[_0x18a17a(0x274)]),S(0x1,o[_0x18a17a(0x262)](o[_0x18a17a(0x25c)])),S(0x2,o[_0x18a17a(0x262)](b['CollaborationSessionService']))],exports['LiveShareController']);var u=(_0x4b30e0=>(_0x4b30e0['OFFLINE']='offline',_0x4b30e0['IDLE']='idle',_0x4b30e0[_0x18a17a(0x241)]='following',_0x4b30e0[_0x18a17a(0x271)]=_0x18a17a(0x1f4),_0x4b30e0['PRESENTING']='presenting',_0x4b30e0))(u||{});const k=_0x18a17a(0x275),q=0xc8;exports[_0x18a17a(0x27d)]=class extends o['RxDisposable']{constructor(_0x4777d0,_0x183570,_0x17ef49,_0xbaa282,_0x5a3a8f){const _0x4c0df8=_0x18a17a;super(),_(this,_0x4c0df8(0x26b),new O[(_0x4c0df8(0x293))](_0x4c0df8(0x21c))),_(this,_0x4c0df8(0x226),this[_0x4c0df8(0x26b)][_0x4c0df8(0x239)]()),_(this,_0x4c0df8(0x222),!0x1),_(this,'_commandDisposable',null),_(this,_0x4c0df8(0x1f9),null),(this['_unitID']=_0x4777d0,this['_collabSession']=_0x183570,this[_0x4c0df8(0x268)]=_0x17ef49,this[_0x4c0df8(0x1dc)]=_0xbaa282,this[_0x4c0df8(0x288)]=_0x5a3a8f);}get[_0x18a17a(0x21f)](){const _0x321f37=_0x18a17a;return this[_0x321f37(0x26b)][_0x321f37(0x1fc)]();}['dispose'](){const _0x47107b=_0x18a17a;var _0x50e904;(_0x50e904=this[_0x47107b(0x231)])==null||_0x50e904[_0x47107b(0x208)](),this[_0x47107b(0x26b)][_0x47107b(0x283)](_0x47107b(0x21c)),this[_0x47107b(0x26b)]['complete']();}['getStatus'](){const _0x59b087=_0x18a17a;return this[_0x59b087(0x21f)];}['init'](){const _0x55a7b8=_0x18a17a;this[_0x55a7b8(0x222)]||(this[_0x55a7b8(0x222)]=!0x0,this[_0x55a7b8(0x1d3)]['sessionStatus$']['pipe'](I[_0x55a7b8(0x27b)](this['dispose$']))[_0x55a7b8(0x24e)](_0x16d8b5=>{const _0x28afe1=_0x55a7b8;switch(_0x16d8b5){case b[_0x28afe1(0x27f)][_0x28afe1(0x211)]:this[_0x28afe1(0x217)]();break;case b['SessionStatus']['ONLINE']:this[_0x28afe1(0x1e2)]();break;}}),this[_0x55a7b8(0x1d3)]['event$'][_0x55a7b8(0x233)](I[_0x55a7b8(0x27b)](this['dispose$']))[_0x55a7b8(0x24e)](_0x2bd3c0=>{const _0x32c411=_0x55a7b8,{eventID:_0x2a730c}=_0x2bd3c0;switch(_0x2a730c){case d[_0x32c411(0x207)][_0x32c411(0x284)]:this[_0x32c411(0x1e6)](_0x2bd3c0);break;case d[_0x32c411(0x207)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x2bd3c0);break;case d[_0x32c411(0x207)][_0x32c411(0x270)]:this[_0x32c411(0x246)]();break;case d['CollaborationEvent']['NEW_CHANGESETS']:this[_0x32c411(0x1ff)](_0x2bd3c0);break;}}));}['tryStartPresenting'](){const _0x5740b2=_0x18a17a;this[_0x5740b2(0x1d3)][_0x5740b2(0x212)]({'eventID':d['CollaborationEvent'][_0x5740b2(0x250)],'data':{'unitID':this[_0x5740b2(0x1f5)],'userID':this['_collabSession'][_0x5740b2(0x225)]()}},this['_unitID']);}[_0x18a17a(0x25b)](){const _0x4fc597=_0x18a17a;this[_0x4fc597(0x21f)]===_0x4fc597(0x219)&&(this[_0x4fc597(0x26b)][_0x4fc597(0x283)](_0x4fc597(0x21c)),this[_0x4fc597(0x1d3)][_0x4fc597(0x212)]({'eventID':d[_0x4fc597(0x207)][_0x4fc597(0x270)],'data':{'unitID':this['_unitID']}},this[_0x4fc597(0x1f5)]));}[_0x18a17a(0x22b)](){const _0x73c41e=_0x18a17a;this[_0x73c41e(0x21f)]===_0x73c41e(0x1f4)&&(this[_0x73c41e(0x26b)][_0x73c41e(0x283)](_0x73c41e(0x221)),this['_startFollowing']());}['stopFollowing'](){const _0x3a29a5=_0x18a17a;this[_0x3a29a5(0x21f)]==='following'&&this[_0x3a29a5(0x1f8)]();}[_0x18a17a(0x1e6)](_0x84370){const _0x3eec30=_0x18a17a,{presenter:_0x187644}=_0x84370[_0x3eec30(0x1de)],_0x220933=this[_0x3eec30(0x1d3)]['getMemberID']();this[_0x3eec30(0x1f9)]=_0x187644,_0x187644===_0x220933?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x3eec30(0x21f)]!=='not-following'&&(this[_0x3eec30(0x243)](),this[_0x3eec30(0x28f)]());}[_0x18a17a(0x209)](){const _0x41b7ce=_0x18a17a,_0x594485={'eventID':d[_0x41b7ce(0x207)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x41b7ce(0x1d3)][_0x41b7ce(0x212)](_0x594485,this[_0x41b7ce(0x1f5)]);}[_0x18a17a(0x246)](){const _0x301b3d=_0x18a17a;this[_0x301b3d(0x1f9)]=null,this[_0x301b3d(0x21f)]!==_0x301b3d(0x219)&&this['_beIdle']();}[_0x18a17a(0x1ff)](_0x34b19f){const _0x5d5075=_0x18a17a;if(this['_status']===_0x5d5075(0x221)&&this['_presenter']===_0x34b19f[_0x5d5075(0x1de)][_0x5d5075(0x1e9)]){const _0x2d7a55=d[_0x5d5075(0x1da)](_0x34b19f[_0x5d5075(0x1de)])[_0x5d5075(0x27e)][_0x5d5075(0x26a)]()[_0x5d5075(0x1fd)](_0xcfcce4=>_0xcfcce4['id']===C[_0x5d5075(0x260)]['id']);if(_0x2d7a55){const _0x3f943c=_0x2d7a55[_0x5d5075(0x1e3)][_0x5d5075(0x1df)],_0x1a5c86=_0x2d7a55[_0x5d5075(0x1e3)][_0x5d5075(0x204)]['id'];setTimeout(()=>{const _0x5f38f9=_0x5d5075;this['_commandService'][_0x5f38f9(0x20b)](C[_0x5f38f9(0x296)]['id'],{'unitId':_0x3f943c,'subUnitId':_0x1a5c86},{'fromCollab':!0x0});});}}}[_0x18a17a(0x1f7)](){const _0x3b8599=_0x18a17a;this[_0x3b8599(0x26b)]['next'](_0x3b8599(0x219));const _0x55d884=new Map(),_0x128b8a=this[_0x3b8599(0x231)]=new o[(_0x3b8599(0x263))]();_0x128b8a[_0x3b8599(0x20f)](o[_0x3b8599(0x1dd)](()=>{const _0x25a0a5=_0x3b8599;_0x55d884[_0x25a0a5(0x23f)](_0x544dab=>_0x544dab['complete']()),_0x55d884[_0x25a0a5(0x290)]();})),_0x128b8a['add'](this[_0x3b8599(0x288)][_0x3b8599(0x258)](_0x5a335a=>{const _0x23fa1b=_0x3b8599;var _0x467492;if(_0x5a335a[_0x23fa1b(0x1e5)]!==o[_0x23fa1b(0x238)][_0x23fa1b(0x1ea)]||!this[_0x23fa1b(0x1dc)][_0x23fa1b(0x286)](_0x5a335a['id']))return;const {id:_0x176e1e}=_0x5a335a;let _0x573850;_0x55d884['has'](_0x176e1e)?_0x573850=_0x55d884['get'](_0x176e1e):(_0x573850=new O['Subject'](),_0x55d884['set'](_0x176e1e,_0x573850),_0x573850[_0x23fa1b(0x233)](I[_0x23fa1b(0x289)]((_0x467492=this['_configService']['getConfig'](k))!=null?_0x467492:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x23fa1b(0x24e)](_0x76cee3=>{const _0x57c117=_0x23fa1b;this[_0x57c117(0x1d3)][_0x57c117(0x212)]({'eventID':d[_0x57c117(0x207)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x57c117(0x1f5)],'operations':{[_0x76cee3['id']]:{'id':_0x76cee3['id'],'params':JSON[_0x57c117(0x20e)](_0x76cee3['params'])}}}},this[_0x57c117(0x1f5)]);})),_0x573850['next'](_0x5a335a);})),this[_0x3b8599(0x1dc)]['getInitialStates'](this[_0x3b8599(0x1f5)])[_0x3b8599(0x23f)](_0x923ee2=>this['_collabSession'][_0x3b8599(0x212)]({'eventID':d[_0x3b8599(0x207)][_0x3b8599(0x21a)],'data':{'unitID':this[_0x3b8599(0x1f5)],'operations':{[_0x923ee2['id']]:{'id':_0x923ee2['id'],'params':JSON[_0x3b8599(0x20e)](_0x923ee2[_0x3b8599(0x1e3)])}}}},this[_0x3b8599(0x1f5)]));}['_stopPresenting'](){const _0x4c3aba=_0x18a17a;var _0x4c8820;this[_0x4c3aba(0x26b)]['next'](_0x4c3aba(0x21c)),(_0x4c8820=this[_0x4c3aba(0x231)])==null||_0x4c8820[_0x4c3aba(0x208)](),this[_0x4c3aba(0x231)]=null;}[_0x18a17a(0x28f)](){const _0x28cf29=_0x18a17a;var _0x1a273a;(_0x1a273a=this['_commandDisposable'])==null||_0x1a273a[_0x28cf29(0x208)](),this[_0x28cf29(0x26b)][_0x28cf29(0x283)](_0x28cf29(0x221));}['_beIdle'](){const _0x3df62e=_0x18a17a;var _0x1f1730;this[_0x3df62e(0x26b)][_0x3df62e(0x283)](_0x3df62e(0x21c)),(_0x1f1730=this[_0x3df62e(0x231)])==null||_0x1f1730['dispose'](),this[_0x3df62e(0x231)]=null;}[_0x18a17a(0x1f8)](){const _0x18bce5=_0x18a17a;var _0x5d9ddc;this['_status$'][_0x18bce5(0x283)](_0x18bce5(0x1f4)),(_0x5d9ddc=this[_0x18bce5(0x231)])==null||_0x5d9ddc[_0x18bce5(0x208)]();}[_0x18a17a(0x20c)](_0x58d93b){const _0x46c098=_0x18a17a;if([_0x46c098(0x219),_0x46c098(0x1f4),'offline'][_0x46c098(0x1d8)](this[_0x46c098(0x21f)])||!_0x58d93b[_0x46c098(0x1de)][_0x46c098(0x28e)]||_0x58d93b[_0x46c098(0x1de)]['presenter']===this[_0x46c098(0x1d3)][_0x46c098(0x225)]())return;this[_0x46c098(0x21f)]===_0x46c098(0x21c)&&this['_startFollowing']();const _0x8787d5=_0x58d93b[_0x46c098(0x1de)][_0x46c098(0x227)];Object['values'](_0x8787d5)[_0x46c098(0x23f)](_0x55c3f9=>{const _0x39f918=_0x46c098;this[_0x39f918(0x288)][_0x39f918(0x20b)](_0x55c3f9['id'],_0x55c3f9[_0x39f918(0x1e3)]?JSON[_0x39f918(0x279)](_0x55c3f9['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x4cba50=_0x18a17a;var _0x30d793;this[_0x4cba50(0x26b)][_0x4cba50(0x283)](_0x4cba50(0x22d)),(_0x30d793=this[_0x4cba50(0x231)])==null||_0x30d793['dispose']();}['_handleOnline'](){const _0x417405=_0x18a17a;this['_status$'][_0x417405(0x283)](_0x417405(0x21c)),this[_0x417405(0x209)]();}},exports[_0x18a17a(0x27d)]=P([S(0x2,o[_0x18a17a(0x24a)]),S(0x3,o[_0x18a17a(0x262)](E)),S(0x4,o[_0x18a17a(0x245)])],exports[_0x18a17a(0x27d)]);function $(){const _0x47aa6d=_0x18a17a,_0x58d819=p[_0x47aa6d(0x22a)](exports[_0x47aa6d(0x1f6)]),_0x4301ac=p['useDependency'](o[_0x47aa6d(0x274)]),_0x4b10b6=p[_0x47aa6d(0x1d0)](()=>_0x4301ac[_0x47aa6d(0x298)](o[_0x47aa6d(0x27a)][_0x47aa6d(0x1e1)]),void 0x0,!0x1,[]),[_0x21868b,_0x1420bc]=v['useState'](null),[_0x5001a0,_0x4f6340]=v['useState'](u['IDLE']),_0x2611a3=v['useRef'](null);return v[_0x47aa6d(0x26c)](()=>(_0x4b10b6&&_0x58d819[_0x47aa6d(0x1d1)](_0x4b10b6[_0x47aa6d(0x272)]())[_0x47aa6d(0x27c)](_0x24282b=>{const _0x36611e=_0x47aa6d;_0x1420bc(_0x24282b),_0x2611a3[_0x36611e(0x291)]=_0x24282b[_0x36611e(0x226)]['subscribe'](_0x23d610=>{_0x4f6340(_0x23d610);});}),()=>{const _0x1dbee9=_0x47aa6d;var _0x4d7d0e;(_0x4d7d0e=_0x2611a3[_0x1dbee9(0x291)])==null||_0x4d7d0e[_0x1dbee9(0x287)](),_0x2611a3[_0x1dbee9(0x291)]=null;}),[_0x4b10b6,_0x58d819]),_0x21868b?l['jsx'](f[_0x47aa6d(0x278)],{'align':'end','disabled':_0x5001a0===u[_0x47aa6d(0x211)],'className':_0x47aa6d(0x224),'overlay':l[_0x47aa6d(0x292)](W,{'status':_0x5001a0,'coordinator':_0x21868b}),'children':l[_0x47aa6d(0x292)](_0x47aa6d(0x1d4),{'className':f[_0x47aa6d(0x22e)](_0x47aa6d(0x23d),{'univer-cursor-not-allowed':_0x5001a0===u[_0x47aa6d(0x211)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5001a0!==u[_0x47aa6d(0x211)]}),'type':_0x47aa6d(0x1d4),'children':l[_0x47aa6d(0x292)](R,{'className':_0x47aa6d(0x24f)})})}):null;}function W(_0x198fc2){const _0x50c9b1=_0x18a17a,{status:_0x2e90a8,coordinator:_0x471f0d}=_0x198fc2;switch(_0x2e90a8){case u[_0x50c9b1(0x215)]:return l['jsx'](G,{'coordinator':_0x471f0d});case u[_0x50c9b1(0x241)]:return l['jsx'](B,{'coordinator':_0x471f0d});case u[_0x50c9b1(0x271)]:return l[_0x50c9b1(0x292)](Y,{'coordinator':_0x471f0d});case u[_0x50c9b1(0x211)]:return l['jsx'](J,{});case u[_0x50c9b1(0x261)]:return l['jsx'](Z,{'coordinator':_0x471f0d});default:return null;}}function G(_0x4195f1){const _0x3b072a=_0x18a17a,{coordinator:_0x3487e3}=_0x4195f1;return l['jsxs'](l[_0x3b072a(0x1f3)],{'children':[l[_0x3b072a(0x292)]('div',{'className':_0x3b072a(0x24c),'children':_0x3b072a(0x230)}),l['jsx'](f[_0x3b072a(0x240)],{'onClick':()=>_0x3487e3['tryStartPresenting'](),'children':'Start'})]});}function B(_0x30eaf4){const _0x29df0c=_0x18a17a,{coordinator:_0x393c26}=_0x30eaf4;return l[_0x29df0c(0x1ef)](l['Fragment'],{'children':[l[_0x29df0c(0x292)](_0x29df0c(0x1ec),{'className':_0x29df0c(0x24c),'children':'You\x27re\x20following\x20the\x20presenter'}),l['jsx'](f['Button'],{'onClick':()=>_0x393c26['stopFollowing'](),'children':'Stop\x20following'})]});}function Y(_0x3c506c){const _0x23c03d=_0x18a17a,{coordinator:_0x5178a5}=_0x3c506c;return l[_0x23c03d(0x1ef)](l[_0x23c03d(0x1f3)],{'children':[l[_0x23c03d(0x292)](_0x23c03d(0x1ec),{'className':_0x23c03d(0x24c),'children':_0x23c03d(0x281)}),l[_0x23c03d(0x292)](f[_0x23c03d(0x240)],{'variant':_0x23c03d(0x1e0),'onClick':()=>_0x5178a5[_0x23c03d(0x22b)](),'children':_0x23c03d(0x220)})]});}function Z(_0xd0ee09){const _0x25d80f=_0x18a17a,{coordinator:_0x1ca3dc}=_0xd0ee09;return l[_0x25d80f(0x1ef)](l['Fragment'],{'children':[l['jsx']('div',{'className':_0x25d80f(0x24c),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x25d80f(0x292)](f[_0x25d80f(0x240)],{'variant':_0x25d80f(0x1f0),'onClick':()=>_0x1ca3dc[_0x25d80f(0x25b)](),'children':'Stop\x20presenting'})]});}function J(){const _0xbc9563=_0x18a17a;return l[_0xbc9563(0x292)](l[_0xbc9563(0x1f3)],{'children':_0xbc9563(0x24d)});}var K=Object['getOwnPropertyDescriptor'],z=(_0xc5cde3,_0x5504f2,_0x496c55,_0x4ef787)=>{const _0x394b36=_0x18a17a;for(var _0x1dbf0d=_0x4ef787>0x1?void 0x0:_0x4ef787?K(_0x5504f2,_0x496c55):_0x5504f2,_0x574a93=_0xc5cde3[_0x394b36(0x22c)]-0x1,_0x355c33;_0x574a93>=0x0;_0x574a93--)(_0x355c33=_0xc5cde3[_0x574a93])&&(_0x1dbf0d=_0x355c33(_0x1dbf0d)||_0x1dbf0d);return _0x1dbf0d;},L=(_0x5bb4aa,_0x2ffeac)=>(_0x2a97e6,_0x3c84d0)=>_0x2ffeac(_0x2a97e6,_0x3c84d0,_0x5bb4aa);exports[_0x18a17a(0x277)]=class extends o['Disposable']{constructor(_0x39af3e,_0x9abe82){const _0x91bc8e=_0x18a17a;super(),this[_0x91bc8e(0x200)]=_0x39af3e,this[_0x91bc8e(0x235)]=_0x9abe82,this[_0x91bc8e(0x1ed)]();}[_0x18a17a(0x1ed)](){const _0x5d7dff=_0x18a17a;this[_0x5d7dff(0x248)](this[_0x5d7dff(0x235)][_0x5d7dff(0x218)](p['BuiltInUIPart'][_0x5d7dff(0x23b)],()=>p['connectInjector']($,this[_0x5d7dff(0x200)])));}},exports[_0x18a17a(0x277)]=z([L(0x0,o[_0x18a17a(0x262)](o[_0x18a17a(0x25c)])),L(0x1,p['IUIPartsService'])],exports[_0x18a17a(0x277)]);const Q=_0x18a17a(0x20a),w={};function _0x30a1(_0x2000af,_0xde1def){_0x2000af=_0x2000af-0x1cd;const _0x3924bb=_0x3924();let _0x30a12d=_0x3924bb[_0x2000af];return _0x30a12d;}var X=Object[_0x18a17a(0x228)],ee=(_0x454018,_0x198549,_0x589cb1,_0x3ae3ef)=>{const _0x10df5a=_0x18a17a;for(var _0x24d679=_0x3ae3ef>0x1?void 0x0:_0x3ae3ef?X(_0x198549,_0x589cb1):_0x198549,_0x3652d6=_0x454018[_0x10df5a(0x22c)]-0x1,_0x188fbb;_0x3652d6>=0x0;_0x3652d6--)(_0x188fbb=_0x454018[_0x3652d6])&&(_0x24d679=_0x188fbb(_0x24d679)||_0x24d679);return _0x24d679;},te=(_0x253298,_0x3400ae)=>(_0x4a8326,_0x54eb61)=>_0x3400ae(_0x4a8326,_0x54eb61,_0x253298);let m=class extends o[_0x18a17a(0x264)]{constructor(_0x499803){const _0x1159fd=_0x18a17a;super(),this[_0x1159fd(0x1dc)]=_0x499803,this['_init']();}[_0x18a17a(0x222)](){const _0x2b4887=_0x18a17a;[D[_0x2b4887(0x269)]['id'],D['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']]['forEach'](_0x3cf2e4=>{const _0x197aee=_0x2b4887;this['disposeWithMe'](this[_0x197aee(0x1dc)][_0x197aee(0x247)](_0x3cf2e4));});}};m=ee([te(0x0,o[_0x18a17a(0x262)](E))],m);var ie=Object[_0x18a17a(0x201)],se=Object[_0x18a17a(0x228)],ne=(_0x29028a,_0xc9cba1,_0x235c5f)=>_0xc9cba1 in _0x29028a?ie(_0x29028a,_0xc9cba1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x235c5f}):_0x29028a[_0xc9cba1]=_0x235c5f,re=(_0x4dac1a,_0x13f5e8,_0x5869d9,_0x54293e)=>{for(var _0x42b00c=_0x54293e>0x1?void 0x0:_0x54293e?se(_0x13f5e8,_0x5869d9):_0x13f5e8,_0x34cc7e=_0x4dac1a['length']-0x1,_0x1beb8f;_0x34cc7e>=0x0;_0x34cc7e--)(_0x1beb8f=_0x4dac1a[_0x34cc7e])&&(_0x42b00c=_0x1beb8f(_0x42b00c)||_0x42b00c);return _0x42b00c;},N=(_0x17b3f8,_0x2bbc6b)=>(_0x4365f8,_0x25cd42)=>_0x2bbc6b(_0x4365f8,_0x25cd42,_0x17b3f8),A=(_0x315b32,_0x456dd8,_0x37299a)=>ne(_0x315b32,typeof _0x456dd8!='symbol'?_0x456dd8+'':_0x456dd8,_0x37299a);const oe=_0x18a17a(0x26d);exports['UniverLiveSharePlugin']=class extends o['Plugin']{constructor(_0x8c7657=w,_0x3da141,_0x29efdd){const _0x4144e5=_0x18a17a;super(),this[_0x4144e5(0x210)]=_0x8c7657,this[_0x4144e5(0x200)]=_0x3da141,this[_0x4144e5(0x268)]=_0x29efdd;const {..._0x3ccd57}=o['merge']({},w,this[_0x4144e5(0x210)]);this[_0x4144e5(0x268)]['setConfig'](Q,_0x3ccd57);}[_0x18a17a(0x1cd)](){const _0x3324dc=_0x18a17a;o[_0x3324dc(0x1d6)](this[_0x3324dc(0x200)],o[_0x3324dc(0x1d5)]([[E],[exports[_0x3324dc(0x1f6)]],[m],[exports[_0x3324dc(0x277)]]],this[_0x3324dc(0x210)][_0x3324dc(0x25a)])),o[_0x3324dc(0x24b)](this[_0x3324dc(0x200)],[[m]]);}[_0x18a17a(0x22f)](){const _0x2b08d1=_0x18a17a;o[_0x2b08d1(0x24b)](this[_0x2b08d1(0x200)],[[exports['DesktopLiveShareController']]]);}},A(exports[_0x18a17a(0x280)],'type',o['UniverInstanceType'][_0x18a17a(0x223)]),A(exports[_0x18a17a(0x280)],'pluginName',oe),exports['UniverLiveSharePlugin']=re([o[_0x18a17a(0x213)](b['UniverCollaborationClientPlugin']),N(0x1,o[_0x18a17a(0x262)](o[_0x18a17a(0x25c)])),N(0x2,o[_0x18a17a(0x24a)])],exports[_0x18a17a(0x280)]),exports[_0x18a17a(0x28d)]=$,exports['LiveShareService']=E,exports['LiveShareStatus']=u;
package/lib/es/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x1e8f1f=_0x1f0f;(function(_0x1b01e7,_0xa38448){const _0x5c530e=_0x1f0f,_0x387c55=_0x1b01e7();while(!![]){try{const _0x1fc632=parseInt(_0x5c530e(0x12e))/0x1*(parseInt(_0x5c530e(0x116))/0x2)+parseInt(_0x5c530e(0x113))/0x3*(-parseInt(_0x5c530e(0x11a))/0x4)+parseInt(_0x5c530e(0x123))/0x5*(parseInt(_0x5c530e(0x12c))/0x6)+parseInt(_0x5c530e(0x12a))/0x7*(-parseInt(_0x5c530e(0x11c))/0x8)+parseInt(_0x5c530e(0x122))/0x9+parseInt(_0x5c530e(0x127))/0xa+-parseInt(_0x5c530e(0x120))/0xb*(parseInt(_0x5c530e(0x12b))/0xc);if(_0x1fc632===_0xa38448)break;else _0x387c55['push'](_0x387c55['shift']());}catch(_0xa68b1e){_0x387c55['push'](_0x387c55['shift']());}}}(_0xe3a6,0x3a2dd));import{LiveShareController as _0x555575,LiveShareStatus as _0x509a3d}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x5ebb53}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x54b5cc}from'@univerjs/sheets';import{SetScrollOperation as _0x796c64}from'@univerjs/sheets-ui';import{FRange as _0xfd205b}from'@univerjs/sheets/facade';import{FUniver as _0x24e225,FEnum as _0x191941}from'@univerjs/core/facade';class I extends _0xfd205b{[_0x1e8f1f(0x125)](_0x318589,_0x16e4aa,_0x2cffa4,_0x576f9b,_0x4cfe96){const _0x10a500=_0x1e8f1f,_0x4248f7=_0x318589['get'](_0x555575),_0x4aada0=_0x318589[_0x10a500(0x11d)](_0x5ebb53),_0x2cb5cf=_0x16e4aa[_0x10a500(0x12d)](),_0x550d20=_0x16e4aa['getActiveSheet'](),_0x338b34=_0x4248f7[_0x10a500(0x10e)](_0x2cb5cf);(_0x338b34==null?void 0x0:_0x338b34[_0x10a500(0x129)]())!==_0x509a3d[_0x10a500(0x117)]||(_0x2cffa4[_0x10a500(0x11f)]()!==_0x550d20[_0x10a500(0x11f)]()&&this[_0x10a500(0x11b)][_0x10a500(0x121)](_0x54b5cc['id'],{'unitId':_0x2cb5cf,'subUnitId':_0x2cffa4[_0x10a500(0x11f)]()}),!_0x4aada0[_0x10a500(0x111)](_0x2cb5cf))||_0x4cfe96[_0x10a500(0x126)](_0x796c64['id'],{'unitId':_0x16e4aa[_0x10a500(0x12d)](),'sheetId':_0x2cffa4['getSheetId'](),'sheetViewStartRow':_0x576f9b['startRow'],'sheetViewStartColumn':_0x576f9b['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0xfd205b['extend'](I);function _0xe3a6(){const _0x3891c2=['149688NYbsyx','222rYmZqc','getUnitId','11hbhYjj','startPresenting','startFollowing','getLiveShareCoordinatorSync','getId','No\x20active\x20workbook\x20found.','getRenderById','IDLE','246717yBZhJQ','_injector','getActiveWorkbook','46376fuklhv','PRESENTING','stopFollowing','getLiveShareStatus','4AEQyix','_commandService','30968gBcOhA','get','extend','getSheetId','297hWxCjt','executeCommand','2373660NHmbtm','35115MDcUUd','stopPresenting','_initialize','syncExecuteCommand','2309400tblLVE','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','637dOPSFd'];_0xe3a6=function(){return _0x3891c2;};return _0xe3a6();}class m extends _0x24e225{[_0x1e8f1f(0x119)](){const _0x7dd01b=_0x1e8f1f;var _0x2ce2e,_0x5aeae4;const _0x51b3ac=this[_0x7dd01b(0x114)][_0x7dd01b(0x11d)](_0x555575),_0x16aa58=(_0x2ce2e=this[_0x7dd01b(0x115)]())==null?void 0x0:_0x2ce2e[_0x7dd01b(0x10f)]();if(!_0x16aa58)throw new Error('No\x20active\x20workbook\x20found.');const _0x199895=_0x51b3ac[_0x7dd01b(0x10e)](_0x16aa58);return(_0x5aeae4=_0x199895==null?void 0x0:_0x199895[_0x7dd01b(0x129)]())!=null?_0x5aeae4:_0x509a3d[_0x7dd01b(0x112)];}[_0x1e8f1f(0x10d)](){const _0x15db63=_0x1e8f1f;var _0x2321a4;const _0x4e1f99=this[_0x15db63(0x114)][_0x15db63(0x11d)](_0x555575),_0x3b887c=(_0x2321a4=this[_0x15db63(0x115)]())==null?void 0x0:_0x2321a4[_0x15db63(0x10f)]();if(!_0x3b887c)throw new Error(_0x15db63(0x110));const _0x28bc07=_0x4e1f99[_0x15db63(0x10e)](_0x3b887c);if(!_0x28bc07)throw new Error(_0x15db63(0x128));_0x28bc07['startFollowing']();}[_0x1e8f1f(0x118)](){const _0x288b23=_0x1e8f1f;var _0x1bc2e0;const _0x2cde7e=this[_0x288b23(0x114)][_0x288b23(0x11d)](_0x555575),_0x482946=(_0x1bc2e0=this[_0x288b23(0x115)]())==null?void 0x0:_0x1bc2e0['getId']();if(!_0x482946)throw new Error(_0x288b23(0x110));const _0x459cc4=_0x2cde7e[_0x288b23(0x10e)](_0x482946);if(!_0x459cc4)throw new Error(_0x288b23(0x128));_0x459cc4['stopFollowing']();}[_0x1e8f1f(0x12f)](){const _0x521abe=_0x1e8f1f;var _0x4e4f43;const _0x18d230=this[_0x521abe(0x114)][_0x521abe(0x11d)](_0x555575),_0x39c331=(_0x4e4f43=this[_0x521abe(0x115)]())==null?void 0x0:_0x4e4f43[_0x521abe(0x10f)]();if(!_0x39c331)throw new Error(_0x521abe(0x110));const _0x691d99=_0x18d230[_0x521abe(0x10e)](_0x39c331);if(!_0x691d99)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x691d99['tryStartPresenting']();}[_0x1e8f1f(0x124)](){const _0x3b412d=_0x1e8f1f;var _0x3b913e;const _0x4ae50f=this[_0x3b412d(0x114)][_0x3b412d(0x11d)](_0x555575),_0x4cadf7=(_0x3b913e=this['getActiveWorkbook']())==null?void 0x0:_0x3b913e['getId']();if(!_0x4cadf7)throw new Error(_0x3b412d(0x110));const _0x213eea=_0x4ae50f[_0x3b412d(0x10e)](_0x4cadf7);if(!_0x213eea)throw new Error(_0x3b412d(0x128));_0x213eea[_0x3b412d(0x124)]();}}_0x24e225[_0x1e8f1f(0x11e)](m);class C extends _0x191941{get['LiveShareStatusEnum'](){return _0x509a3d;}}function _0x1f0f(_0x32a3d7,_0x1d26bf){_0x32a3d7=_0x32a3d7-0x10d;const _0xe3a68d=_0xe3a6();let _0x1f0f1f=_0xe3a68d[_0x32a3d7];return _0x1f0f1f;}_0x191941[_0x1e8f1f(0x11e)](C);
1
+ const _0x1027aa=_0x1b5f;(function(_0x2c344f,_0x55c941){const _0x224af2=_0x1b5f,_0x252dd2=_0x2c344f();while(!![]){try{const _0x363858=-parseInt(_0x224af2(0x163))/0x1+parseInt(_0x224af2(0x16b))/0x2+parseInt(_0x224af2(0x180))/0x3+parseInt(_0x224af2(0x165))/0x4*(-parseInt(_0x224af2(0x177))/0x5)+-parseInt(_0x224af2(0x164))/0x6*(-parseInt(_0x224af2(0x167))/0x7)+-parseInt(_0x224af2(0x171))/0x8+parseInt(_0x224af2(0x17c))/0x9*(parseInt(_0x224af2(0x170))/0xa);if(_0x363858===_0x55c941)break;else _0x252dd2['push'](_0x252dd2['shift']());}catch(_0xaf707e){_0x252dd2['push'](_0x252dd2['shift']());}}}(_0x11f8,0x4ac18));import{LiveShareController as _0x17a5d7,LiveShareStatus as _0x4885e0}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x32f72f}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x333937}from'@univerjs/sheets';import{SetScrollOperation as _0x53cbbd}from'@univerjs/sheets-ui';import{FRange as _0x3fd1f8}from'@univerjs/sheets/facade';import{FUniver as _0x4dbf02,FEnum as _0x4cc463}from'@univerjs/core/facade';function _0x11f8(){const _0x52b2d4=['get','9837HmuBza','getActiveSheet','tryStartPresenting','getSheetId','690108TRgeFQ','No\x20active\x20workbook\x20found.','getUnitId','getActiveWorkbook','startFollowing','526985sQjLMX','53274FideDi','2100584pjhWnN','IDLE','105jowdjQ','getLiveShareStatus','executeCommand','startPresenting','556776ckgTye','startColumn','getLiveShareCoordinatorSync','syncExecuteCommand','PRESENTING','10390lvZGUZ','3351240wSDvcf','extend','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','stopPresenting','getId','5SXmsFF','_injector','_commandService','stopFollowing'];_0x11f8=function(){return _0x52b2d4;};return _0x11f8();}function _0x1b5f(_0x2d1d25,_0x1daacb){_0x2d1d25=_0x2d1d25-0x161;const _0x11f853=_0x11f8();let _0x1b5fa4=_0x11f853[_0x2d1d25];return _0x1b5fa4;}class I extends _0x3fd1f8{['_initialize'](_0x525a18,_0x46b4e2,_0x2ad70e,_0x258d04,_0x34308b){const _0x3de110=_0x1b5f,_0x450b2e=_0x525a18[_0x3de110(0x17b)](_0x17a5d7),_0x44c245=_0x525a18[_0x3de110(0x17b)](_0x32f72f),_0x196d66=_0x46b4e2[_0x3de110(0x182)](),_0x1b3f8c=_0x46b4e2[_0x3de110(0x17d)](),_0x344d67=_0x450b2e['getLiveShareCoordinatorSync'](_0x196d66);(_0x344d67==null?void 0x0:_0x344d67[_0x3de110(0x174)]())!==_0x4885e0[_0x3de110(0x16f)]||(_0x2ad70e['getSheetId']()!==_0x1b3f8c['getSheetId']()&&this[_0x3de110(0x179)][_0x3de110(0x169)](_0x333937['id'],{'unitId':_0x196d66,'subUnitId':_0x2ad70e[_0x3de110(0x17f)]()}),!_0x44c245['getRenderById'](_0x196d66))||_0x34308b[_0x3de110(0x16e)](_0x53cbbd['id'],{'unitId':_0x46b4e2[_0x3de110(0x182)](),'sheetId':_0x2ad70e[_0x3de110(0x17f)](),'sheetViewStartRow':_0x258d04['startRow'],'sheetViewStartColumn':_0x258d04[_0x3de110(0x16c)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x3fd1f8[_0x1027aa(0x172)](I);class m extends _0x4dbf02{[_0x1027aa(0x168)](){const _0x1148d9=_0x1027aa;var _0x37bc11,_0x570ae7;const _0x2bbbc0=this[_0x1148d9(0x178)][_0x1148d9(0x17b)](_0x17a5d7),_0x359409=(_0x37bc11=this['getActiveWorkbook']())==null?void 0x0:_0x37bc11[_0x1148d9(0x176)]();if(!_0x359409)throw new Error(_0x1148d9(0x181));const _0x598686=_0x2bbbc0[_0x1148d9(0x16d)](_0x359409);return(_0x570ae7=_0x598686==null?void 0x0:_0x598686['getStatus']())!=null?_0x570ae7:_0x4885e0[_0x1148d9(0x166)];}[_0x1027aa(0x162)](){const _0x12a948=_0x1027aa;var _0x290cf9;const _0x2ac59f=this[_0x12a948(0x178)]['get'](_0x17a5d7),_0x39766b=(_0x290cf9=this['getActiveWorkbook']())==null?void 0x0:_0x290cf9[_0x12a948(0x176)]();if(!_0x39766b)throw new Error('No\x20active\x20workbook\x20found.');const _0x336a77=_0x2ac59f[_0x12a948(0x16d)](_0x39766b);if(!_0x336a77)throw new Error(_0x12a948(0x173));_0x336a77[_0x12a948(0x162)]();}[_0x1027aa(0x17a)](){const _0x3f0e41=_0x1027aa;var _0x338119;const _0x424239=this[_0x3f0e41(0x178)][_0x3f0e41(0x17b)](_0x17a5d7),_0x3e7072=(_0x338119=this[_0x3f0e41(0x161)]())==null?void 0x0:_0x338119[_0x3f0e41(0x176)]();if(!_0x3e7072)throw new Error(_0x3f0e41(0x181));const _0x3e1c8d=_0x424239[_0x3f0e41(0x16d)](_0x3e7072);if(!_0x3e1c8d)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3e1c8d['stopFollowing']();}[_0x1027aa(0x16a)](){const _0x42ce70=_0x1027aa;var _0x145f91;const _0x3b3d81=this['_injector']['get'](_0x17a5d7),_0x188c68=(_0x145f91=this[_0x42ce70(0x161)]())==null?void 0x0:_0x145f91[_0x42ce70(0x176)]();if(!_0x188c68)throw new Error(_0x42ce70(0x181));const _0x182cef=_0x3b3d81[_0x42ce70(0x16d)](_0x188c68);if(!_0x182cef)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x182cef[_0x42ce70(0x17e)]();}['stopPresenting'](){const _0xf66334=_0x1027aa;var _0x185a81;const _0x3a6f35=this['_injector'][_0xf66334(0x17b)](_0x17a5d7),_0x6a770b=(_0x185a81=this[_0xf66334(0x161)]())==null?void 0x0:_0x185a81[_0xf66334(0x176)]();if(!_0x6a770b)throw new Error(_0xf66334(0x181));const _0x6c06f8=_0x3a6f35['getLiveShareCoordinatorSync'](_0x6a770b);if(!_0x6c06f8)throw new Error(_0xf66334(0x173));_0x6c06f8[_0xf66334(0x175)]();}}_0x4dbf02[_0x1027aa(0x172)](m);class C extends _0x4cc463{get['LiveShareStatusEnum'](){return _0x4885e0;}}_0x4cc463[_0x1027aa(0x172)](C);
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1c78e4=_0x4fc5;(function(_0x448a29,_0x121f2b){const _0x5dde8a=_0x4fc5,_0x357d8b=_0x448a29();while(!![]){try{const _0x38840e=parseInt(_0x5dde8a(0x15a))/0x1+-parseInt(_0x5dde8a(0x1df))/0x2*(-parseInt(_0x5dde8a(0x157))/0x3)+parseInt(_0x5dde8a(0x16c))/0x4*(parseInt(_0x5dde8a(0x19e))/0x5)+parseInt(_0x5dde8a(0x1d2))/0x6+-parseInt(_0x5dde8a(0x1dd))/0x7*(parseInt(_0x5dde8a(0x14d))/0x8)+-parseInt(_0x5dde8a(0x1a8))/0x9+-parseInt(_0x5dde8a(0x1c2))/0xa;if(_0x38840e===_0x121f2b)break;else _0x357d8b['push'](_0x357d8b['shift']());}catch(_0x3c3497){_0x357d8b['push'](_0x357d8b['shift']());}}}(_0x2bfa,0xcfd87));var J=Object[_0x1c78e4(0x143)],K=(_0x47b0a7,_0x9727de,_0x191def)=>_0x9727de in _0x47b0a7?J(_0x47b0a7,_0x9727de,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x191def}):_0x47b0a7[_0x9727de]=_0x191def,u=(_0x67648c,_0x17ae10,_0x49c1f0)=>K(_0x67648c,typeof _0x17ae10!=_0x1c78e4(0x1af)?_0x17ae10+'':_0x17ae10,_0x49c1f0);import{Disposable as _0x12154a,toDisposable as _0x5217c8,IUniverInstanceService as _0x5969d9,Inject as _0x1a6954,Injector as _0xdf7c04,IConfigService as _0x213343,ICommandService as _0xf26fa0,RxDisposable as _0x3f9973,UniverInstanceType as _0x8c38dc,DisposableCollection as _0x5309db,CommandType as _0x2b1f1c,DependentOn as _0x579b4c,Plugin as _0x32fdda,merge as _0x50f219,registerDependencies as _0x236b83,mergeOverrideWithDependencies as _0x4faafe,touchDependencies as _0x403cf0}from'@univerjs/core';import{useDependency as _0x12bce2,useObservable as _0x3246f2,IUIPartsService as _0x19d4b0,BuiltInUIPart as _0x4a91ef,connectInjector as _0x4d7dcf}from'@univerjs/ui';import{jsx as _0x1c423a,jsxs as _0x5c6e44,Fragment as _0x2cc6e1}from'react/jsx-runtime';import{Dropdown as _0x4e3f46,clsx as _0x25885e,Button as _0x595499}from'@univerjs/design';import{useRef as _0x1e6b39,createElement as _0x23e9b5,forwardRef as _0x4b44ea,useState as _0x3ec4cb,useEffect as _0x8b76d1}from'react';import{CollaborationEvent as _0x1ef809,parseProtocolChangeset as _0x399321}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x17ced7,SessionStatus as _0x4a028c,UniverCollaborationClientPlugin as _0x22ac1e}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x190abd,SetWorksheetActiveOperation as _0x35566a}from'@univerjs/sheets';import{BehaviorSubject as _0xc4cd4f,Subject as _0x1c6f6d}from'rxjs';import{takeUntil as _0x57326a,throttleTime as _0x2b868b}from'rxjs/operators';import{SetZoomRatioOperation as _0x2fa9e7,SetScrollOperation as _0x38d67b}from'@univerjs/sheets-ui';function k({ref:_0x5a1c23,..._0x70444a}){const _0x361a56=_0x1c78e4,{icon:_0x144016,id:_0x495a1f,className:_0x49b9e0,extend:_0x3e8568,..._0x546975}=_0x70444a,_0x2d12a5=('univerjs-icon\x20univerjs-icon-'+_0x495a1f+'\x20'+(_0x49b9e0||''))[_0x361a56(0x165)](),_0x4665c8=_0x1e6b39('_'+Oe());return G(_0x144016,''+_0x495a1f,{'defIds':_0x144016[_0x361a56(0x1e1)],'idSuffix':_0x4665c8['current']},{'ref':_0x5a1c23,'className':_0x2d12a5,..._0x546975},_0x3e8568);}function G(_0x23f191,_0x64e5dc,_0x1b2716,_0x4f08e5,_0x100598){const _0x1a5773=_0x1c78e4;return _0x23e9b5(_0x23f191[_0x1a5773(0x191)],{'key':_0x64e5dc,...be(_0x23f191,_0x1b2716,_0x100598),..._0x4f08e5},(Ee(_0x23f191,_0x1b2716)[_0x1a5773(0x1c3)]||[])[_0x1a5773(0x1bc)]((_0x16cac2,_0x486d48)=>G(_0x16cac2,_0x64e5dc+'-'+_0x23f191['tag']+'-'+_0x486d48,_0x1b2716,void 0x0,_0x100598)));}function be(_0x42aeaa,_0x7940e4,_0x2102e9){const _0x351d5d=_0x1c78e4,_0x58e5c1={..._0x42aeaa[_0x351d5d(0x1ad)]};_0x2102e9!=null&&_0x2102e9['colorChannel1']&&_0x58e5c1[_0x351d5d(0x1bd)]==='colorChannel1'&&(_0x58e5c1[_0x351d5d(0x1bd)]=_0x2102e9[_0x351d5d(0x1b8)]),_0x42aeaa[_0x351d5d(0x191)]===_0x351d5d(0x193)&&_0x58e5c1['id']&&(_0x58e5c1['id']=_0x58e5c1['id']+_0x7940e4['idSuffix']),Object['entries'](_0x58e5c1)[_0x351d5d(0x13f)](([_0x2fdc0d,_0x591549])=>{const _0x5035c9=_0x351d5d;_0x2fdc0d===_0x5035c9(0x193)&&typeof _0x591549==_0x5035c9(0x1dc)&&(_0x58e5c1[_0x2fdc0d]=_0x591549['replace'](/url\(#(.*)\)/,_0x5035c9(0x144)+_0x7940e4[_0x5035c9(0x160)]+')'));});const {defIds:_0x24f923}=_0x7940e4;return!_0x24f923||_0x24f923[_0x351d5d(0x195)]===0x0||(_0x42aeaa[_0x351d5d(0x191)]===_0x351d5d(0x183)&&_0x58e5c1[_0x351d5d(0x179)]&&(_0x58e5c1[_0x351d5d(0x179)]=_0x58e5c1[_0x351d5d(0x179)]+_0x7940e4[_0x351d5d(0x160)]),Object[_0x351d5d(0x13d)](_0x58e5c1)[_0x351d5d(0x13f)](([_0x507bdc,_0x1aa202])=>{const _0x103532=_0x351d5d;typeof _0x1aa202=='string'&&(_0x58e5c1[_0x507bdc]=_0x1aa202[_0x103532(0x177)](/url\(#(.*)\)/,'url(#$1'+_0x7940e4['idSuffix']+')'));})),_0x58e5c1;}function Ee(_0x33512f,_0x2fae61){const _0x3616b5=_0x1c78e4;var _0x16f4c3;const {defIds:_0x11d561}=_0x2fae61;return!_0x11d561||_0x11d561['length']===0x0?_0x33512f:_0x33512f[_0x3616b5(0x191)]===_0x3616b5(0x1c0)&&((_0x16f4c3=_0x33512f[_0x3616b5(0x1c3)])!=null&&_0x16f4c3[_0x3616b5(0x195)])?{..._0x33512f,'children':_0x33512f[_0x3616b5(0x1c3)][_0x3616b5(0x1bc)](_0x58d609=>typeof _0x58d609[_0x3616b5(0x1ad)]['id']==_0x3616b5(0x1dc)&&_0x11d561&&_0x11d561[_0x3616b5(0x198)](_0x58d609['attrs']['id'])?{..._0x58d609,'attrs':{..._0x58d609[_0x3616b5(0x1ad)],'id':_0x58d609[_0x3616b5(0x1ad)]['id']+_0x2fae61[_0x3616b5(0x160)]}}:_0x58d609)}:_0x33512f;}function Oe(){const _0x2c421c=_0x1c78e4;return Math[_0x2c421c(0x14e)]()['toString'](0x24)[_0x2c421c(0x14f)](0x2,0x8);}k[_0x1c78e4(0x150)]=_0x1c78e4(0x154);const we={'tag':_0x1c78e4(0x180),'attrs':{'xmlns':_0x1c78e4(0x1cb),'fill':_0x1c78e4(0x197),'viewBox':_0x1c78e4(0x1ca),'width':_0x1c78e4(0x1e0),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x1c78e4(0x16e),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x1c78e4(0x19f),'attrs':{'fill':'currentColor','d':_0x1c78e4(0x1b4),'fillRule':'evenodd','clipRule':'evenodd'}}]},W=_0x4b44ea(function(_0x161205,_0x250f9a){const _0x556268=_0x1c78e4;return _0x23e9b5(k,Object[_0x556268(0x184)]({},_0x161205,{'id':'live-share-icon','ref':_0x250f9a,'icon':we}));});function _0x4fc5(_0x3b03fa,_0x2e9b8a){_0x3b03fa=_0x3b03fa-0x138;const _0x2bfa18=_0x2bfa();let _0x4fc5b5=_0x2bfa18[_0x3b03fa];return _0x4fc5b5;}W['displayName']=_0x1c78e4(0x156);class L extends _0x12154a{constructor(){const _0x211312=_0x1c78e4;super(...arguments),u(this,_0x211312(0x1a5),new Set()),u(this,_0x211312(0x140),new Set());}[_0x1c78e4(0x187)](_0x3a13b6){const _0x1fd176=_0x1c78e4;return this['_sharedOperations']['add'](_0x3a13b6),_0x5217c8(()=>this[_0x1fd176(0x1a5)][_0x1fd176(0x1ba)](_0x3a13b6));}[_0x1c78e4(0x1db)](_0xf2db90){const _0x236595=_0x1c78e4;return this['_reporters'][_0x236595(0x17c)](_0xf2db90),_0x5217c8(()=>this[_0x236595(0x140)][_0x236595(0x1ba)](_0xf2db90));}[_0x1c78e4(0x155)](_0x519d11){const _0x16827f=_0x1c78e4;return this[_0x16827f(0x1a5)][_0x16827f(0x172)](_0x519d11);}[_0x1c78e4(0x1b9)](_0x2de91e){const _0x3ac88e=_0x1c78e4;return Array[_0x3ac88e(0x1bb)](this[_0x3ac88e(0x140)])[_0x3ac88e(0x1bc)](_0x17b801=>_0x17b801(_0x2de91e));}}var Ne=Object[_0x1c78e4(0x162)],Y=(_0x4c3679,_0x4e41b6,_0x3dec2a,_0x482c9a)=>{const _0x2e80e4=_0x1c78e4;for(var _0x4e29b6=_0x482c9a>0x1?void 0x0:_0x482c9a?Ne(_0x4e41b6,_0x3dec2a):_0x4e41b6,_0x380140=_0x4c3679[_0x2e80e4(0x195)]-0x1,_0xede0b4;_0x380140>=0x0;_0x380140--)(_0xede0b4=_0x4c3679[_0x380140])&&(_0x4e29b6=_0xede0b4(_0x4e29b6)||_0x4e29b6);return _0x4e29b6;},_=(_0x4d1d34,_0x2203b9)=>(_0x29b77e,_0x5936d4)=>_0x2203b9(_0x29b77e,_0x5936d4,_0x4d1d34);let S=class extends _0x3f9973{constructor(_0x278a7e,_0x31f189,_0x5de18e){const _0x2c68db=_0x1c78e4;super(),u(this,'_entities',new Map()),(this[_0x2c68db(0x188)]=_0x278a7e,this['_injector']=_0x31f189,this[_0x2c68db(0x138)]=_0x5de18e,this[_0x2c68db(0x1b6)]());}async[_0x1c78e4(0x192)](_0x59b214){const _0x21e1e9=_0x1c78e4;return this[_0x21e1e9(0x17b)]['has'](_0x59b214)||await this[_0x21e1e9(0x1b7)](_0x59b214),this[_0x21e1e9(0x17b)][_0x21e1e9(0x19d)](_0x59b214);}['getLiveShareCoordinatorSync'](_0x1ba538){const _0x47d766=_0x1c78e4;var _0x449c8f;return(_0x449c8f=this[_0x47d766(0x17b)][_0x47d766(0x19d)](_0x1ba538))!=null?_0x449c8f:null;}['_init'](){const _0x50eec1=_0x1c78e4;this[_0x50eec1(0x188)][_0x50eec1(0x18a)](_0x8c38dc[_0x50eec1(0x1b3)])[_0x50eec1(0x151)](_0x57326a(this[_0x50eec1(0x1a4)]))[_0x50eec1(0x1a0)](async _0x3fb8c2=>{const _0x39bf2c=_0x50eec1,_0x262d12=_0x3fb8c2[_0x39bf2c(0x1be)]();this[_0x39bf2c(0x17b)][_0x39bf2c(0x172)](_0x262d12)||this['_startLiveShareCoordinator'](_0x262d12);}),this[_0x50eec1(0x188)][_0x50eec1(0x186)](_0x8c38dc['UNIVER_SHEET'])[_0x50eec1(0x151)](_0x57326a(this['dispose$']))[_0x50eec1(0x1a0)](_0x32b22a=>{const _0x158b00=_0x50eec1,_0x151186=_0x32b22a[_0x158b00(0x1be)](),_0x1563d6=this['_entities']['get'](_0x151186);_0x1563d6==null||_0x1563d6['dispose']();});}async[_0x1c78e4(0x1b7)](_0x2d26ad){const _0x1b5fb9=_0x1c78e4,_0x2edda0=await this[_0x1b5fb9(0x138)][_0x1b5fb9(0x17d)](_0x2d26ad),_0x22586b=this[_0x1b5fb9(0x168)][_0x1b5fb9(0x164)](N,_0x2d26ad,_0x2edda0);return _0x22586b['init'](),this['_entities']['set'](_0x2d26ad,_0x22586b),_0x22586b;}};S=Y([_(0x0,_0x5969d9),_(0x1,_0x1a6954(_0xdf7c04)),_(0x2,_0x1a6954(_0x17ced7))],S);var c=(_0x24c783=>(_0x24c783[_0x1c78e4(0x16a)]=_0x1c78e4(0x15b),_0x24c783['IDLE']='idle',_0x24c783[_0x1c78e4(0x1ae)]=_0x1c78e4(0x18c),_0x24c783[_0x1c78e4(0x17a)]='not-following',_0x24c783[_0x1c78e4(0x1d1)]=_0x1c78e4(0x13b),_0x24c783))(c||{});const Ce=_0x1c78e4(0x139),De=0xc8;let N=class extends _0x3f9973{constructor(_0x554e2f,_0x23894f,_0x73cbda,_0x69594c,_0x4d668d){const _0x2fec80=_0x1c78e4;super(),u(this,_0x2fec80(0x1e2),new _0xc4cd4f(_0x2fec80(0x141))),u(this,_0x2fec80(0x1b5),this[_0x2fec80(0x1e2)][_0x2fec80(0x1a6)]()),u(this,_0x2fec80(0x1b6),!0x1),u(this,_0x2fec80(0x1bf),null),u(this,_0x2fec80(0x13c),null),(this['_unitID']=_0x554e2f,this[_0x2fec80(0x14b)]=_0x23894f,this['_configService']=_0x73cbda,this[_0x2fec80(0x15f)]=_0x69594c,this[_0x2fec80(0x14c)]=_0x4d668d);}get['_status'](){const _0x4a6811=_0x1c78e4;return this[_0x4a6811(0x1e2)][_0x4a6811(0x13e)]();}[_0x1c78e4(0x1d3)](){const _0x802d10=_0x1c78e4;var _0x3bd303;(_0x3bd303=this[_0x802d10(0x1bf)])==null||_0x3bd303[_0x802d10(0x1d3)](),this[_0x802d10(0x1e2)][_0x802d10(0x1b1)](_0x802d10(0x141)),this[_0x802d10(0x1e2)][_0x802d10(0x171)]();}[_0x1c78e4(0x153)](){const _0x403747=_0x1c78e4;return this[_0x403747(0x1a7)];}[_0x1c78e4(0x1d8)](){const _0x4c0aae=_0x1c78e4;this[_0x4c0aae(0x1b6)]||(this[_0x4c0aae(0x1b6)]=!0x0,this[_0x4c0aae(0x14b)][_0x4c0aae(0x185)][_0x4c0aae(0x151)](_0x57326a(this[_0x4c0aae(0x1a4)]))[_0x4c0aae(0x1a0)](_0x401383=>{const _0x4e72e6=_0x4c0aae;switch(_0x401383){case _0x4a028c[_0x4e72e6(0x16a)]:this['_handleOffline']();break;case _0x4a028c[_0x4e72e6(0x17f)]:this['_handleOnline']();break;}}),this[_0x4c0aae(0x14b)][_0x4c0aae(0x15c)][_0x4c0aae(0x151)](_0x57326a(this[_0x4c0aae(0x1a4)]))[_0x4c0aae(0x1a0)](_0x1e38a8=>{const _0x5e9c49=_0x4c0aae,{eventID:_0x14971b}=_0x1e38a8;switch(_0x14971b){case _0x1ef809[_0x5e9c49(0x15e)]:this['_handleNewHost'](_0x1e38a8);break;case _0x1ef809[_0x5e9c49(0x16d)]:this[_0x5e9c49(0x1c4)](_0x1e38a8);break;case _0x1ef809['LIVESHARE_TERMINATE']:this[_0x5e9c49(0x1e3)]();break;case _0x1ef809[_0x5e9c49(0x1c5)]:this[_0x5e9c49(0x1c6)](_0x1e38a8);break;}}));}[_0x1c78e4(0x1e5)](){const _0x41d1e1=_0x1c78e4;this[_0x41d1e1(0x14b)][_0x41d1e1(0x176)]({'eventID':_0x1ef809[_0x41d1e1(0x1a3)],'data':{'unitID':this[_0x41d1e1(0x181)],'userID':this[_0x41d1e1(0x14b)][_0x41d1e1(0x148)]()}},this[_0x41d1e1(0x181)]);}[_0x1c78e4(0x161)](){const _0x440abd=_0x1c78e4;this[_0x440abd(0x1a7)]==='presenting'&&(this[_0x440abd(0x1e2)][_0x440abd(0x1b1)](_0x440abd(0x141)),this['_collabSession']['send']({'eventID':_0x1ef809[_0x440abd(0x1c9)],'data':{'unitID':this[_0x440abd(0x181)]}},this['_unitID']));}['startFollowing'](){const _0x4ac97a=_0x1c78e4;this['_status']===_0x4ac97a(0x1da)&&(this['_status$']['next']('following'),this['_startFollowing']());}[_0x1c78e4(0x1d0)](){const _0x1231b1=_0x1c78e4;this['_status']===_0x1231b1(0x18c)&&this[_0x1231b1(0x1b0)]();}['_handleNewHost'](_0x34d387){const _0x3a99cb=_0x1c78e4,{presenter:_0xbc7752}=_0x34d387[_0x3a99cb(0x1d9)],_0x34ab7c=this[_0x3a99cb(0x14b)][_0x3a99cb(0x148)]();this[_0x3a99cb(0x13c)]=_0xbc7752,_0xbc7752===_0x34ab7c?(this[_0x3a99cb(0x1b0)](),this['_startPresenting']()):this['_status']!=='not-following'&&(this[_0x3a99cb(0x1d6)](),this[_0x3a99cb(0x1a2)]());}[_0x1c78e4(0x196)](){const _0x1b62b9=_0x1c78e4,_0x1ced9d={'eventID':_0x1ef809[_0x1b62b9(0x1c7)]};this[_0x1b62b9(0x14b)][_0x1b62b9(0x176)](_0x1ced9d,this[_0x1b62b9(0x181)]);}[_0x1c78e4(0x1e3)](){const _0x74be2e=_0x1c78e4;this[_0x74be2e(0x13c)]=null,this[_0x74be2e(0x1a7)]!==_0x74be2e(0x13b)&&this[_0x74be2e(0x174)]();}[_0x1c78e4(0x1c6)](_0x1807be){const _0x583e90=_0x1c78e4;if(this['_status']===_0x583e90(0x18c)&&this[_0x583e90(0x13c)]===_0x1807be[_0x583e90(0x1d9)]['memberID']){const _0x3ec2dc=_0x399321(_0x1807be[_0x583e90(0x1d9)])['mutations'][_0x583e90(0x169)]()[_0x583e90(0x1ac)](_0x5181ef=>_0x5181ef['id']===_0x190abd['id']);if(_0x3ec2dc){const _0x13b796=_0x3ec2dc['params'][_0x583e90(0x166)],_0x4c5ac6=_0x3ec2dc['params'][_0x583e90(0x1de)]['id'];setTimeout(()=>{const _0x594c2b=_0x583e90;this[_0x594c2b(0x14c)][_0x594c2b(0x145)](_0x35566a['id'],{'unitId':_0x13b796,'subUnitId':_0x4c5ac6},{'fromCollab':!0x0});});}}}[_0x1c78e4(0x175)](){const _0x4ec94f=_0x1c78e4;this[_0x4ec94f(0x1e2)][_0x4ec94f(0x1b1)](_0x4ec94f(0x13b));const _0xcec87d=new Map(),_0xc722bc=this[_0x4ec94f(0x1bf)]=new _0x5309db();_0xc722bc[_0x4ec94f(0x17c)](_0x5217c8(()=>{const _0x54956a=_0x4ec94f;_0xcec87d[_0x54956a(0x13f)](_0x17fbca=>_0x17fbca['complete']()),_0xcec87d[_0x54956a(0x194)]();})),_0xc722bc[_0x4ec94f(0x17c)](this['_commandService'][_0x4ec94f(0x149)](_0x25a6e6=>{const _0x5e4aed=_0x4ec94f;var _0x378225;if(_0x25a6e6[_0x5e4aed(0x15d)]!==_0x2b1f1c[_0x5e4aed(0x146)]||!this['_liveShareService'][_0x5e4aed(0x155)](_0x25a6e6['id']))return;const {id:_0x17b5db}=_0x25a6e6;let _0x2ce684;_0xcec87d['has'](_0x17b5db)?_0x2ce684=_0xcec87d[_0x5e4aed(0x19d)](_0x17b5db):(_0x2ce684=new _0x1c6f6d(),_0xcec87d['set'](_0x17b5db,_0x2ce684),_0x2ce684['pipe'](_0x2b868b((_0x378225=this[_0x5e4aed(0x1ce)][_0x5e4aed(0x170)](Ce))!=null?_0x378225:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5e4aed(0x1a0)](_0x5729a0=>{const _0x3ddaf6=_0x5e4aed;this[_0x3ddaf6(0x14b)][_0x3ddaf6(0x176)]({'eventID':_0x1ef809['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3ddaf6(0x181)],'operations':{[_0x5729a0['id']]:{'id':_0x5729a0['id'],'params':JSON['stringify'](_0x5729a0['params'])}}}},this[_0x3ddaf6(0x181)]);})),_0x2ce684[_0x5e4aed(0x1b1)](_0x25a6e6);})),this[_0x4ec94f(0x15f)][_0x4ec94f(0x1b9)](this[_0x4ec94f(0x181)])[_0x4ec94f(0x13f)](_0x57195f=>this[_0x4ec94f(0x14b)][_0x4ec94f(0x176)]({'eventID':_0x1ef809['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4ec94f(0x181)],'operations':{[_0x57195f['id']]:{'id':_0x57195f['id'],'params':JSON[_0x4ec94f(0x1a1)](_0x57195f['params'])}}}},this['_unitID']));}['_stopPresenting'](){const _0x42a533=_0x1c78e4;var _0x19cb53;this[_0x42a533(0x1e2)][_0x42a533(0x1b1)](_0x42a533(0x141)),(_0x19cb53=this[_0x42a533(0x1bf)])==null||_0x19cb53[_0x42a533(0x1d3)](),this[_0x42a533(0x1bf)]=null;}['_startFollowing'](){const _0x221382=_0x1c78e4;var _0x2b8b4d;(_0x2b8b4d=this[_0x221382(0x1bf)])==null||_0x2b8b4d[_0x221382(0x1d3)](),this[_0x221382(0x1e2)][_0x221382(0x1b1)](_0x221382(0x18c));}[_0x1c78e4(0x174)](){const _0x2bec49=_0x1c78e4;var _0x5b0238;this[_0x2bec49(0x1e2)][_0x2bec49(0x1b1)](_0x2bec49(0x141)),(_0x5b0238=this[_0x2bec49(0x1bf)])==null||_0x5b0238[_0x2bec49(0x1d3)](),this[_0x2bec49(0x1bf)]=null;}[_0x1c78e4(0x1b0)](){const _0x10cf32=_0x1c78e4;var _0x26e9dd;this[_0x10cf32(0x1e2)][_0x10cf32(0x1b1)](_0x10cf32(0x1da)),(_0x26e9dd=this[_0x10cf32(0x1bf)])==null||_0x26e9dd['dispose']();}[_0x1c78e4(0x1c4)](_0x475ce6){const _0x14355d=_0x1c78e4;if([_0x14355d(0x13b),_0x14355d(0x1da),'offline'][_0x14355d(0x198)](this[_0x14355d(0x1a7)])||!_0x475ce6[_0x14355d(0x1d9)][_0x14355d(0x1a9)]||_0x475ce6['data']['presenter']===this['_collabSession']['getMemberID']())return;this[_0x14355d(0x1a7)]==='idle'&&this[_0x14355d(0x1a2)]();const _0x3fa1a2=_0x475ce6[_0x14355d(0x1d9)][_0x14355d(0x17e)];Object[_0x14355d(0x173)](_0x3fa1a2)[_0x14355d(0x13f)](_0x3cf3a4=>{const _0x4b21ad=_0x14355d;this[_0x4b21ad(0x14c)][_0x4b21ad(0x145)](_0x3cf3a4['id'],_0x3cf3a4[_0x4b21ad(0x1ab)]?JSON[_0x4b21ad(0x167)](_0x3cf3a4[_0x4b21ad(0x1ab)]):null,{'fromCollab':!0x0});});}[_0x1c78e4(0x13a)](){const _0x21536c=_0x1c78e4;var _0x507040;this[_0x21536c(0x1e2)][_0x21536c(0x1b1)](_0x21536c(0x15b)),(_0x507040=this[_0x21536c(0x1bf)])==null||_0x507040['dispose']();}['_handleOnline'](){const _0x10188e=_0x1c78e4;this[_0x10188e(0x1e2)][_0x10188e(0x1b1)](_0x10188e(0x141)),this[_0x10188e(0x196)]();}};N=Y([_(0x2,_0x213343),_(0x3,_0x1a6954(L)),_(0x4,_0xf26fa0)],N);function Le(){const _0x391895=_0x1c78e4,_0x4a5b8e=_0x12bce2(S),_0xc55fef=_0x12bce2(_0x5969d9),_0x3a1c98=_0x3246f2(()=>_0xc55fef['getCurrentTypeOfUnit$'](_0x8c38dc[_0x391895(0x1b3)]),void 0x0,!0x1,[]),[_0x75fe52,_0x49d1b9]=_0x3ec4cb(null),[_0x393fbf,_0x5d5101]=_0x3ec4cb(c[_0x391895(0x152)]),_0x4f2d2b=_0x1e6b39(null);return _0x8b76d1(()=>(_0x3a1c98&&_0x4a5b8e[_0x391895(0x192)](_0x3a1c98[_0x391895(0x1be)]())['then'](_0x24a1fe=>{const _0x409186=_0x391895;_0x49d1b9(_0x24a1fe),_0x4f2d2b[_0x409186(0x18d)]=_0x24a1fe[_0x409186(0x1b5)][_0x409186(0x1a0)](_0x48c9da=>{_0x5d5101(_0x48c9da);});}),()=>{const _0x4045de=_0x391895;var _0x179886;(_0x179886=_0x4f2d2b[_0x4045de(0x18d)])==null||_0x179886['unsubscribe'](),_0x4f2d2b[_0x4045de(0x18d)]=null;}),[_0x3a1c98,_0x4a5b8e]),_0x75fe52?_0x1c423a(_0x4e3f46,{'align':_0x391895(0x1d5),'disabled':_0x393fbf===c[_0x391895(0x16a)],'className':_0x391895(0x16b),'overlay':_0x1c423a(Re,{'status':_0x393fbf,'coordinator':_0x75fe52}),'children':_0x1c423a(_0x391895(0x19c),{'className':_0x25885e(_0x391895(0x18b),{'univer-cursor-not-allowed':_0x393fbf===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x393fbf!==c[_0x391895(0x16a)]}),'type':_0x391895(0x19c),'children':_0x1c423a(W,{'className':_0x391895(0x1cf)})})}):null;}function Re(_0x154153){const _0x3a5a38=_0x1c78e4,{status:_0x32dde6,coordinator:_0x34d907}=_0x154153;switch(_0x32dde6){case c[_0x3a5a38(0x152)]:return _0x1c423a($e,{'coordinator':_0x34d907});case c[_0x3a5a38(0x1ae)]:return _0x1c423a(xe,{'coordinator':_0x34d907});case c[_0x3a5a38(0x17a)]:return _0x1c423a(Pe,{'coordinator':_0x34d907});case c[_0x3a5a38(0x16a)]:return _0x1c423a(Te,{});case c['PRESENTING']:return _0x1c423a(Ae,{'coordinator':_0x34d907});default:return null;}}function $e(_0x24e4e4){const _0x556cce=_0x1c78e4,{coordinator:_0x379b04}=_0x24e4e4;return _0x5c6e44(_0x2cc6e1,{'children':[_0x1c423a('div',{'className':_0x556cce(0x189),'children':_0x556cce(0x158)}),_0x1c423a(_0x595499,{'onClick':()=>_0x379b04[_0x556cce(0x1e5)](),'children':_0x556cce(0x1e4)})]});}function xe(_0x2b5853){const _0x532224=_0x1c78e4,{coordinator:_0x4024f0}=_0x2b5853;return _0x5c6e44(_0x2cc6e1,{'children':[_0x1c423a(_0x532224(0x18f),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x532224(0x1aa)}),_0x1c423a(_0x595499,{'onClick':()=>_0x4024f0['stopFollowing'](),'children':_0x532224(0x1cc)})]});}function Pe(_0x13bb1b){const _0x168073=_0x1c78e4,{coordinator:_0x2702bc}=_0x13bb1b;return _0x5c6e44(_0x2cc6e1,{'children':[_0x1c423a(_0x168073(0x18f),{'className':_0x168073(0x189),'children':_0x168073(0x142)}),_0x1c423a(_0x595499,{'variant':_0x168073(0x163),'onClick':()=>_0x2702bc[_0x168073(0x14a)](),'children':_0x168073(0x1d4)})]});}function Ae(_0xcb17c6){const _0x4507c9=_0x1c78e4,{coordinator:_0x5b1cea}=_0xcb17c6;return _0x5c6e44(_0x2cc6e1,{'children':[_0x1c423a(_0x4507c9(0x18f),{'className':_0x4507c9(0x189),'children':_0x4507c9(0x1c8)}),_0x1c423a(_0x595499,{'variant':_0x4507c9(0x1cd),'onClick':()=>_0x5b1cea[_0x4507c9(0x161)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x214012=_0x1c78e4;return _0x1c423a(_0x2cc6e1,{'children':_0x214012(0x159)});}var Fe=Object[_0x1c78e4(0x162)],He=(_0x2ebc94,_0x442f7f,_0x1c1963,_0xd3cf2f)=>{for(var _0x3d1d6a=_0xd3cf2f>0x1?void 0x0:_0xd3cf2f?Fe(_0x442f7f,_0x1c1963):_0x442f7f,_0x4b8eca=_0x2ebc94['length']-0x1,_0x276d55;_0x4b8eca>=0x0;_0x4b8eca--)(_0x276d55=_0x2ebc94[_0x4b8eca])&&(_0x3d1d6a=_0x276d55(_0x3d1d6a)||_0x3d1d6a);return _0x3d1d6a;},A=(_0x17c2fd,_0x3e797c)=>(_0x4baab4,_0x339145)=>_0x3e797c(_0x4baab4,_0x339145,_0x17c2fd);function _0x2bfa(){const _0x370629=['idle','You\x27re\x20not\x20following\x20the\x20presenter','defineProperty','url(#$1','executeCommand','OPERATION','disposeWithMe','getMemberID','onCommandExecuted','startFollowing','_collabSession','_commandService','207496ZURbAi','random','substring','displayName','pipe','IDLE','getStatus','UniverIcon','shouldShareOperation','LiveShareIcon','17259wDVNeA','Present\x20this\x20document','You\x27are\x20offline.','1285531LBdasw','offline','event$','type','LIVESHARE_NEW_HOST','_liveShareService','idSuffix','stopPresenting','getOwnPropertyDescriptor','text','createInstance','trim','unitId','parse','_injector','reverse','OFFLINE','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','6464536HkpCgx','LIVESHARE_OPERATION','currentColor','pluginName','getConfig','complete','has','values','_beIdle','_startPresenting','send','replace','live-share.config','xlink:href','NOT_FOLLOWING','_entities','add','requireSession','operations','ONLINE','svg','_unitID','override','use','assign','sessionStatus$','getTypeOfUnitDisposed$','registerSharedOperation','_univerInstanceService','univer-mb-3\x20univer-w-full\x20univer-text-sm','getTypeOfUnitAdded$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','following','current','onStarting','div','onRendered','tag','getLiveShareCoordinator','mask','clear','length','_fetchOperations','none','includes','_config','UNIVER_LIVE_SHARE_PLUGIN','_mountLiveShare','button','get','5kxPXWq','path','subscribe','stringify','_startFollowing','LIVESHARE_REQUEST_HOST','dispose$','_sharedOperations','asObservable','_status','15127407MCEYcO','presenter','You\x27re\x20following\x20the\x20presenter','params','find','attrs','FOLLOWING','symbol','_stopFollowing','next','_uiPartsService','UNIVER_SHEET','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$','_init','_startLiveShareCoordinator','colorChannel1','getInitialStates','delete','from','map','fill','getUnitId','_commandDisposable','defs','HEADER_MENU','2114950eozlqC','children','_handleOperation','NEW_CHANGESETS','_handleNewChangeSets','LIVESHARE_FETCH_OPERATIONS','You\x27re\x20presenting\x20the\x20document','LIVESHARE_TERMINATE','0\x200\x2017\x2017','http://www.w3.org/2000/svg','Stop\x20following','default','_configService','univer-size-4','stopFollowing','PRESENTING','1427760BDiPRp','dispose','Start\x20following','end','_stopPresenting','UNIVER_UNKNOWN','init','data','not-following','registerInitialStateReporter','string','273lqRkfB','sheet','214Mzqvwm','1em','defIds','_status$','_handleTerminate','Start','tryStartPresenting','_collabSessionService','SAME_OPERATION_SHARE_INTERVAL','_handleOffline','presenting','_presenter','entries','getValue','forEach','_reporters'];_0x2bfa=function(){return _0x370629;};return _0x2bfa();}let m=class extends _0x12154a{constructor(_0x50877c,_0x30f152){const _0x1a2274=_0x1c78e4;super(),this['_injector']=_0x50877c,this['_uiPartsService']=_0x30f152,this[_0x1a2274(0x19b)]();}[_0x1c78e4(0x19b)](){const _0x58be3b=_0x1c78e4;this['disposeWithMe'](this[_0x58be3b(0x1b2)]['registerComponent'](_0x4a91ef[_0x58be3b(0x1c1)],()=>_0x4d7dcf(Le,this['_injector'])));}};m=He([A(0x0,_0x1a6954(_0xdf7c04)),A(0x1,_0x19d4b0)],m);const ye=_0x1c78e4(0x178),T={};var Ue=Object[_0x1c78e4(0x162)],Ve=(_0x48481b,_0x1005d2,_0x4429fc,_0x301b1b)=>{for(var _0x40aa05=_0x301b1b>0x1?void 0x0:_0x301b1b?Ue(_0x1005d2,_0x4429fc):_0x1005d2,_0x5a9b64=_0x48481b['length']-0x1,_0x3028e2;_0x5a9b64>=0x0;_0x5a9b64--)(_0x3028e2=_0x48481b[_0x5a9b64])&&(_0x40aa05=_0x3028e2(_0x40aa05)||_0x40aa05);return _0x40aa05;},je=(_0x3d3d2b,_0x48bdc5)=>(_0x580a2e,_0x562905)=>_0x48bdc5(_0x580a2e,_0x562905,_0x3d3d2b);let I=class extends _0x12154a{constructor(_0x2845db){const _0x3d9eb2=_0x1c78e4;super(),this['_liveShareService']=_0x2845db,this[_0x3d9eb2(0x1b6)]();}[_0x1c78e4(0x1b6)](){const _0x325a55=_0x1c78e4;[_0x2fa9e7['id'],_0x38d67b['id'],_0x35566a['id']][_0x325a55(0x13f)](_0x37a2fc=>{const _0x5cf9f8=_0x325a55;this[_0x5cf9f8(0x147)](this['_liveShareService'][_0x5cf9f8(0x187)](_0x37a2fc));});}};I=Ve([je(0x0,_0x1a6954(L))],I);var Me=Object[_0x1c78e4(0x143)],ke=Object[_0x1c78e4(0x162)],Ge=(_0x15d15b,_0x219cce,_0x1a936c)=>_0x219cce in _0x15d15b?Me(_0x15d15b,_0x219cce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a936c}):_0x15d15b[_0x219cce]=_0x1a936c,We=(_0x592f3b,_0x12a3ce,_0x477efc,_0x38c3e7)=>{const _0x46c106=_0x1c78e4;for(var _0x36cafc=_0x38c3e7>0x1?void 0x0:_0x38c3e7?ke(_0x12a3ce,_0x477efc):_0x12a3ce,_0x57fef8=_0x592f3b[_0x46c106(0x195)]-0x1,_0x344ce0;_0x57fef8>=0x0;_0x57fef8--)(_0x344ce0=_0x592f3b[_0x57fef8])&&(_0x36cafc=_0x344ce0(_0x36cafc)||_0x36cafc);return _0x36cafc;},F=(_0x474f80,_0x3bb347)=>(_0x366c82,_0x38ecff)=>_0x3bb347(_0x366c82,_0x38ecff,_0x474f80),B=(_0x3f08d2,_0x4c24b8,_0x39b0ea)=>Ge(_0x3f08d2,typeof _0x4c24b8!=_0x1c78e4(0x1af)?_0x4c24b8+'':_0x4c24b8,_0x39b0ea);const Ye=_0x1c78e4(0x19a);let b=class extends _0x32fdda{constructor(_0xe8b187=T,_0x3ff09a,_0x158bc1){const _0x384b07=_0x1c78e4;super(),this[_0x384b07(0x199)]=_0xe8b187,this['_injector']=_0x3ff09a,this['_configService']=_0x158bc1;const {..._0x54217b}=_0x50f219({},T,this[_0x384b07(0x199)]);this[_0x384b07(0x1ce)]['setConfig'](ye,_0x54217b);}[_0x1c78e4(0x18e)](){const _0x57b16d=_0x1c78e4;_0x236b83(this[_0x57b16d(0x168)],_0x4faafe([[L],[S],[I],[m]],this[_0x57b16d(0x199)][_0x57b16d(0x182)])),_0x403cf0(this['_injector'],[[I]]);}[_0x1c78e4(0x190)](){const _0x4e069f=_0x1c78e4;_0x403cf0(this[_0x4e069f(0x168)],[[m]]);}};B(b,'type',_0x8c38dc[_0x1c78e4(0x1d7)]),B(b,_0x1c78e4(0x16f),Ye),b=We([_0x579b4c(_0x22ac1e),F(0x1,_0x1a6954(_0xdf7c04)),F(0x2,_0x213343)],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 _0x69f19a=_0x23b0;(function(_0x449052,_0x1cafcc){const _0x2a83a2=_0x23b0,_0x334225=_0x449052();while(!![]){try{const _0x1c7436=-parseInt(_0x2a83a2(0x110))/0x1+parseInt(_0x2a83a2(0x146))/0x2+-parseInt(_0x2a83a2(0xe7))/0x3*(parseInt(_0x2a83a2(0x114))/0x4)+parseInt(_0x2a83a2(0x11c))/0x5*(-parseInt(_0x2a83a2(0x121))/0x6)+parseInt(_0x2a83a2(0x134))/0x7*(parseInt(_0x2a83a2(0x11e))/0x8)+-parseInt(_0x2a83a2(0x106))/0x9*(-parseInt(_0x2a83a2(0x185))/0xa)+parseInt(_0x2a83a2(0x11f))/0xb;if(_0x1c7436===_0x1cafcc)break;else _0x334225['push'](_0x334225['shift']());}catch(_0x15e995){_0x334225['push'](_0x334225['shift']());}}}(_0x746c,0x59010));var J=Object[_0x69f19a(0xf3)],K=(_0x37370e,_0x211117,_0x432caf)=>_0x211117 in _0x37370e?J(_0x37370e,_0x211117,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x432caf}):_0x37370e[_0x211117]=_0x432caf,u=(_0x1890ae,_0x20cc9a,_0x243119)=>K(_0x1890ae,typeof _0x20cc9a!=_0x69f19a(0x139)?_0x20cc9a+'':_0x20cc9a,_0x243119);import{Disposable as _0x383352,toDisposable as _0x45a55e,IUniverInstanceService as _0x3bbb47,Inject as _0x1c9f93,Injector as _0x8f574c,IConfigService as _0x22f532,ICommandService as _0xc18e24,RxDisposable as _0x154636,UniverInstanceType as _0xa40585,DisposableCollection as _0x1cb6a6,CommandType as _0x2f2c29,DependentOn as _0x46d4a0,Plugin as _0x1673f7,merge as _0x5cc7d7,registerDependencies as _0x428d1a,mergeOverrideWithDependencies as _0x4279a3,touchDependencies as _0x8fcf17}from'@univerjs/core';import{useDependency as _0x4d80ad,useObservable as _0x588bad,IUIPartsService as _0x34783d,BuiltInUIPart as _0x3b52c9,connectInjector as _0x194ca5}from'@univerjs/ui';import{jsx as _0x2cb184,jsxs as _0x4b7b29,Fragment as _0x56b759}from'react/jsx-runtime';import{Dropdown as _0x64bd56,clsx as _0x3ff979,Button as _0x564805}from'@univerjs/design';import{useRef as _0x5e92a4,createElement as _0x10ac3f,forwardRef as _0x45ccb1,useState as _0x4b851f,useEffect as _0x6285d1}from'react';import{CollaborationEvent as _0x2c7ed0,parseProtocolChangeset as _0x599238}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x38a89b,SessionStatus as _0x460b5f,UniverCollaborationClientPlugin as _0x217f3d}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4a0d5c,SetWorksheetActiveOperation as _0x575e4f}from'@univerjs/sheets';import{BehaviorSubject as _0x465720,Subject as _0x9da62}from'rxjs';import{takeUntil as _0x86ec3b,throttleTime as _0x57236f}from'rxjs/operators';import{SetZoomRatioOperation as _0x2a0d2e,SetScrollOperation as _0x48fa06}from'@univerjs/sheets-ui';function k({ref:_0x5dbed0,..._0x2aed1c}){const _0x478926=_0x69f19a,{icon:_0x16c2e2,id:_0x4d43c0,className:_0x65fb83,extend:_0x36d604,..._0x152a86}=_0x2aed1c,_0x187461=(_0x478926(0xee)+_0x4d43c0+'\x20'+(_0x65fb83||''))[_0x478926(0x105)](),_0xc5431d=_0x5e92a4('_'+Oe());return G(_0x16c2e2,''+_0x4d43c0,{'defIds':_0x16c2e2['defIds'],'idSuffix':_0xc5431d[_0x478926(0x13c)]},{'ref':_0x5dbed0,'className':_0x187461,..._0x152a86},_0x36d604);}function G(_0x26c399,_0x3e3ddb,_0x56d54b,_0x5c35cb,_0x3529fb){const _0x2cbd9b=_0x69f19a;return _0x10ac3f(_0x26c399[_0x2cbd9b(0x133)],{'key':_0x3e3ddb,...be(_0x26c399,_0x56d54b,_0x3529fb),..._0x5c35cb},(Ee(_0x26c399,_0x56d54b)[_0x2cbd9b(0xf8)]||[])[_0x2cbd9b(0x149)]((_0x1e2713,_0x4a624a)=>G(_0x1e2713,_0x3e3ddb+'-'+_0x26c399[_0x2cbd9b(0x133)]+'-'+_0x4a624a,_0x56d54b,void 0x0,_0x3529fb)));}function be(_0x52602c,_0xce0656,_0x360095){const _0x3db388=_0x69f19a,_0x26b137={..._0x52602c[_0x3db388(0x126)]};_0x360095!=null&&_0x360095['colorChannel1']&&_0x26b137[_0x3db388(0x136)]===_0x3db388(0x18d)&&(_0x26b137[_0x3db388(0x136)]=_0x360095['colorChannel1']),_0x52602c[_0x3db388(0x133)]===_0x3db388(0x14c)&&_0x26b137['id']&&(_0x26b137['id']=_0x26b137['id']+_0xce0656[_0x3db388(0x112)]),Object['entries'](_0x26b137)[_0x3db388(0x12f)](([_0x2bf2b8,_0x84b42a])=>{const _0x4c6c42=_0x3db388;_0x2bf2b8===_0x4c6c42(0x14c)&&typeof _0x84b42a==_0x4c6c42(0x160)&&(_0x26b137[_0x2bf2b8]=_0x84b42a['replace'](/url\(#(.*)\)/,_0x4c6c42(0xfc)+_0xce0656[_0x4c6c42(0x112)]+')'));});const {defIds:_0x24a483}=_0xce0656;return!_0x24a483||_0x24a483[_0x3db388(0xfd)]===0x0||(_0x52602c['tag']===_0x3db388(0x10b)&&_0x26b137[_0x3db388(0x172)]&&(_0x26b137[_0x3db388(0x172)]=_0x26b137[_0x3db388(0x172)]+_0xce0656['idSuffix']),Object[_0x3db388(0x11a)](_0x26b137)[_0x3db388(0x12f)](([_0x343345,_0x2d48e0])=>{const _0x1ba7b1=_0x3db388;typeof _0x2d48e0==_0x1ba7b1(0x160)&&(_0x26b137[_0x343345]=_0x2d48e0[_0x1ba7b1(0x118)](/url\(#(.*)\)/,'url(#$1'+_0xce0656['idSuffix']+')'));})),_0x26b137;}function Ee(_0x157a05,_0x53619d){const _0x57333a=_0x69f19a;var _0x4c7cb4;const {defIds:_0x181577}=_0x53619d;return!_0x181577||_0x181577[_0x57333a(0xfd)]===0x0?_0x157a05:_0x157a05[_0x57333a(0x133)]===_0x57333a(0xf9)&&((_0x4c7cb4=_0x157a05[_0x57333a(0xf8)])!=null&&_0x4c7cb4[_0x57333a(0xfd)])?{..._0x157a05,'children':_0x157a05[_0x57333a(0xf8)][_0x57333a(0x149)](_0x1a75e1=>typeof _0x1a75e1[_0x57333a(0x126)]['id']==_0x57333a(0x160)&&_0x181577&&_0x181577['includes'](_0x1a75e1[_0x57333a(0x126)]['id'])?{..._0x1a75e1,'attrs':{..._0x1a75e1[_0x57333a(0x126)],'id':_0x1a75e1['attrs']['id']+_0x53619d['idSuffix']}}:_0x1a75e1)}:_0x157a05;}function _0x23b0(_0xc3319e,_0x38d039){_0xc3319e=_0xc3319e-0xe6;const _0x746c81=_0x746c();let _0x23b0b1=_0x746c81[_0xc3319e];return _0x23b0b1;}function Oe(){const _0x45400f=_0x69f19a;return Math['random']()[_0x45400f(0x174)](0x24)[_0x45400f(0x14f)](0x2,0x8);}k[_0x69f19a(0xff)]=_0x69f19a(0x14d);const we={'tag':_0x69f19a(0x16b),'attrs':{'xmlns':_0x69f19a(0xfa),'fill':_0x69f19a(0xf2),'viewBox':_0x69f19a(0x186),'width':_0x69f19a(0xe6),'height':_0x69f19a(0xe6)},'children':[{'tag':_0x69f19a(0x14b),'attrs':{'fill':'currentColor','d':_0x69f19a(0x188)}},{'tag':_0x69f19a(0x14b),'attrs':{'fill':_0x69f19a(0x187),'d':_0x69f19a(0x156),'fillRule':_0x69f19a(0x10d),'clipRule':_0x69f19a(0x10d)}}]},W=_0x45ccb1(function(_0x567e61,_0x15f6b){const _0x3141c9=_0x69f19a;return _0x10ac3f(k,Object[_0x3141c9(0x179)]({},_0x567e61,{'id':'live-share-icon','ref':_0x15f6b,'icon':we}));});W[_0x69f19a(0xff)]='LiveShareIcon';class L extends _0x383352{constructor(){const _0x4485bd=_0x69f19a;super(...arguments),u(this,_0x4485bd(0x16c),new Set()),u(this,_0x4485bd(0x171),new Set());}[_0x69f19a(0x162)](_0x29ecd7){const _0x27b05e=_0x69f19a;return this[_0x27b05e(0x16c)]['add'](_0x29ecd7),_0x45a55e(()=>this[_0x27b05e(0x16c)][_0x27b05e(0x16f)](_0x29ecd7));}[_0x69f19a(0x119)](_0x1b5b75){const _0x38b3c5=_0x69f19a;return this['_reporters']['add'](_0x1b5b75),_0x45a55e(()=>this[_0x38b3c5(0x171)][_0x38b3c5(0x16f)](_0x1b5b75));}[_0x69f19a(0x132)](_0x1ce5fc){const _0x1639fb=_0x69f19a;return this[_0x1639fb(0x16c)]['has'](_0x1ce5fc);}[_0x69f19a(0xec)](_0x3c51a6){const _0x51f8d2=_0x69f19a;return Array['from'](this[_0x51f8d2(0x171)])[_0x51f8d2(0x149)](_0x2ca8aa=>_0x2ca8aa(_0x3c51a6));}}var Ne=Object[_0x69f19a(0x165)],Y=(_0x2670b7,_0x15a58d,_0x803b22,_0x56e548)=>{const _0x3b0ee0=_0x69f19a;for(var _0x523864=_0x56e548>0x1?void 0x0:_0x56e548?Ne(_0x15a58d,_0x803b22):_0x15a58d,_0x3805a0=_0x2670b7[_0x3b0ee0(0xfd)]-0x1,_0x51e8d3;_0x3805a0>=0x0;_0x3805a0--)(_0x51e8d3=_0x2670b7[_0x3805a0])&&(_0x523864=_0x51e8d3(_0x523864)||_0x523864);return _0x523864;},_=(_0x2ae100,_0x54a0f6)=>(_0x57d4fe,_0x403f98)=>_0x54a0f6(_0x57d4fe,_0x403f98,_0x2ae100);let S=class extends _0x154636{constructor(_0x24807a,_0x3a9606,_0x1911dd){const _0x5615f2=_0x69f19a;super(),u(this,'_entities',new Map()),(this[_0x5615f2(0xea)]=_0x24807a,this[_0x5615f2(0x18e)]=_0x3a9606,this[_0x5615f2(0x17d)]=_0x1911dd,this['_init']());}async[_0x69f19a(0x17b)](_0x1e6c51){const _0x16fdbc=_0x69f19a;return this['_entities'][_0x16fdbc(0x13d)](_0x1e6c51)||await this[_0x16fdbc(0x163)](_0x1e6c51),this['_entities'][_0x16fdbc(0x123)](_0x1e6c51);}[_0x69f19a(0x152)](_0x214865){const _0xcc914a=_0x69f19a;var _0x396acc;return(_0x396acc=this[_0xcc914a(0xfe)][_0xcc914a(0x123)](_0x214865))!=null?_0x396acc:null;}[_0x69f19a(0x167)](){const _0x27ff5b=_0x69f19a;this[_0x27ff5b(0xea)][_0x27ff5b(0x18c)](_0xa40585[_0x27ff5b(0x13b)])['pipe'](_0x86ec3b(this[_0x27ff5b(0x129)]))[_0x27ff5b(0x100)](async _0x93accb=>{const _0x398a06=_0x27ff5b,_0x2e0bb9=_0x93accb[_0x398a06(0x137)]();this[_0x398a06(0xfe)]['has'](_0x2e0bb9)||this['_startLiveShareCoordinator'](_0x2e0bb9);}),this[_0x27ff5b(0xea)][_0x27ff5b(0x16a)](_0xa40585[_0x27ff5b(0x13b)])[_0x27ff5b(0x115)](_0x86ec3b(this[_0x27ff5b(0x129)]))['subscribe'](_0x88a091=>{const _0x104e7a=_0x27ff5b,_0x2ef3a6=_0x88a091[_0x104e7a(0x137)](),_0x3f744d=this[_0x104e7a(0xfe)][_0x104e7a(0x123)](_0x2ef3a6);_0x3f744d==null||_0x3f744d[_0x104e7a(0x111)]();});}async[_0x69f19a(0x163)](_0x5538a0){const _0xbfd342=_0x69f19a,_0x5edb23=await this[_0xbfd342(0x17d)][_0xbfd342(0x117)](_0x5538a0),_0x4422f8=this['_injector'][_0xbfd342(0xef)](N,_0x5538a0,_0x5edb23);return _0x4422f8[_0xbfd342(0x154)](),this[_0xbfd342(0xfe)][_0xbfd342(0x15d)](_0x5538a0,_0x4422f8),_0x4422f8;}};S=Y([_(0x0,_0x3bbb47),_(0x1,_0x1c9f93(_0x8f574c)),_(0x2,_0x1c9f93(_0x38a89b))],S);var c=(_0x54f463=>(_0x54f463['OFFLINE']='offline',_0x54f463[_0x69f19a(0xf5)]=_0x69f19a(0x124),_0x54f463[_0x69f19a(0x159)]=_0x69f19a(0x10f),_0x54f463[_0x69f19a(0x10e)]=_0x69f19a(0xf0),_0x54f463[_0x69f19a(0xe9)]=_0x69f19a(0xed),_0x54f463))(c||{});const Ce=_0x69f19a(0x166),De=0xc8;let N=class extends _0x154636{constructor(_0x341ec5,_0x1d3593,_0x440cdd,_0x4b26f7,_0x2fe2b8){const _0x5229c8=_0x69f19a;super(),u(this,_0x5229c8(0x189),new _0x465720(_0x5229c8(0x124))),u(this,'status$',this[_0x5229c8(0x189)][_0x5229c8(0x15e)]()),u(this,_0x5229c8(0x167),!0x1),u(this,'_commandDisposable',null),u(this,'_presenter',null),(this['_unitID']=_0x341ec5,this[_0x5229c8(0x103)]=_0x1d3593,this['_configService']=_0x440cdd,this['_liveShareService']=_0x4b26f7,this[_0x5229c8(0x128)]=_0x2fe2b8);}get['_status'](){const _0x2b6115=_0x69f19a;return this[_0x2b6115(0x189)][_0x2b6115(0x155)]();}[_0x69f19a(0x111)](){const _0x311cb5=_0x69f19a;var _0x1cec86;(_0x1cec86=this['_commandDisposable'])==null||_0x1cec86[_0x311cb5(0x111)](),this[_0x311cb5(0x189)][_0x311cb5(0x18f)]('idle'),this[_0x311cb5(0x189)][_0x311cb5(0x17e)]();}[_0x69f19a(0x16e)](){const _0x397a22=_0x69f19a;return this[_0x397a22(0x150)];}[_0x69f19a(0x154)](){const _0x250202=_0x69f19a;this[_0x250202(0x167)]||(this[_0x250202(0x167)]=!0x0,this[_0x250202(0x103)][_0x250202(0xf7)][_0x250202(0x115)](_0x86ec3b(this[_0x250202(0x129)]))[_0x250202(0x100)](_0x4e1e72=>{const _0x1b1b8e=_0x250202;switch(_0x4e1e72){case _0x460b5f[_0x1b1b8e(0x182)]:this[_0x1b1b8e(0x113)]();break;case _0x460b5f[_0x1b1b8e(0x12b)]:this[_0x1b1b8e(0x161)]();break;}}),this[_0x250202(0x103)]['event$'][_0x250202(0x115)](_0x86ec3b(this['dispose$']))[_0x250202(0x100)](_0x4f1f9e=>{const _0x1ac5ca=_0x250202,{eventID:_0x26d70a}=_0x4f1f9e;switch(_0x26d70a){case _0x2c7ed0[_0x1ac5ca(0x125)]:this[_0x1ac5ca(0x158)](_0x4f1f9e);break;case _0x2c7ed0[_0x1ac5ca(0x168)]:this[_0x1ac5ca(0x190)](_0x4f1f9e);break;case _0x2c7ed0['LIVESHARE_TERMINATE']:this[_0x1ac5ca(0x15b)]();break;case _0x2c7ed0['NEW_CHANGESETS']:this[_0x1ac5ca(0x109)](_0x4f1f9e);break;}}));}['tryStartPresenting'](){const _0x2db2fe=_0x69f19a;this[_0x2db2fe(0x103)][_0x2db2fe(0x12a)]({'eventID':_0x2c7ed0[_0x2db2fe(0x12e)],'data':{'unitID':this[_0x2db2fe(0x173)],'userID':this[_0x2db2fe(0x103)][_0x2db2fe(0x18a)]()}},this[_0x2db2fe(0x173)]);}[_0x69f19a(0x13e)](){const _0xc4888b=_0x69f19a;this['_status']===_0xc4888b(0xed)&&(this['_status$']['next'](_0xc4888b(0x124)),this[_0xc4888b(0x103)][_0xc4888b(0x12a)]({'eventID':_0x2c7ed0['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0xc4888b(0x173)]}},this['_unitID']));}[_0x69f19a(0x102)](){const _0x221571=_0x69f19a;this[_0x221571(0x150)]===_0x221571(0xf0)&&(this[_0x221571(0x189)]['next'](_0x221571(0x10f)),this[_0x221571(0x147)]());}[_0x69f19a(0x18b)](){const _0x1118a0=_0x69f19a;this[_0x1118a0(0x150)]===_0x1118a0(0x10f)&&this['_stopFollowing']();}['_handleNewHost'](_0xcd4112){const _0x469a93=_0x69f19a,{presenter:_0x3ae6ff}=_0xcd4112[_0x469a93(0x12d)],_0x380cfc=this['_collabSession'][_0x469a93(0x18a)]();this[_0x469a93(0x170)]=_0x3ae6ff,_0x3ae6ff===_0x380cfc?(this['_stopFollowing'](),this[_0x469a93(0x148)]()):this[_0x469a93(0x150)]!==_0x469a93(0xf0)&&(this[_0x469a93(0x127)](),this[_0x469a93(0x147)]());}[_0x69f19a(0x17a)](){const _0x3c807e=_0x69f19a,_0x126b03={'eventID':_0x2c7ed0[_0x3c807e(0x138)]};this[_0x3c807e(0x103)][_0x3c807e(0x12a)](_0x126b03,this[_0x3c807e(0x173)]);}[_0x69f19a(0x15b)](){const _0x26933a=_0x69f19a;this[_0x26933a(0x170)]=null,this[_0x26933a(0x150)]!=='presenting'&&this['_beIdle']();}[_0x69f19a(0x109)](_0x1e8a8b){const _0x1f8d96=_0x69f19a;if(this[_0x1f8d96(0x150)]===_0x1f8d96(0x10f)&&this[_0x1f8d96(0x170)]===_0x1e8a8b[_0x1f8d96(0x12d)][_0x1f8d96(0x122)]){const _0x22eaa0=_0x599238(_0x1e8a8b['data'])[_0x1f8d96(0x15a)][_0x1f8d96(0x15f)]()[_0x1f8d96(0x180)](_0x3966c2=>_0x3966c2['id']===_0x4a0d5c['id']);if(_0x22eaa0){const _0x12e1e0=_0x22eaa0[_0x1f8d96(0x142)][_0x1f8d96(0x15c)],_0x1eae15=_0x22eaa0['params']['sheet']['id'];setTimeout(()=>{const _0x936fb7=_0x1f8d96;this[_0x936fb7(0x128)][_0x936fb7(0x16d)](_0x575e4f['id'],{'unitId':_0x12e1e0,'subUnitId':_0x1eae15},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x44b1f1=_0x69f19a;this[_0x44b1f1(0x189)][_0x44b1f1(0x18f)](_0x44b1f1(0xed));const _0x35a9ec=new Map(),_0x1e09fe=this[_0x44b1f1(0x178)]=new _0x1cb6a6();_0x1e09fe['add'](_0x45a55e(()=>{const _0x553352=_0x44b1f1;_0x35a9ec[_0x553352(0x12f)](_0x4f1b7a=>_0x4f1b7a['complete']()),_0x35a9ec[_0x553352(0x143)]();})),_0x1e09fe['add'](this['_commandService'][_0x44b1f1(0x157)](_0x3c7346=>{const _0x375533=_0x44b1f1;var _0x3768d5;if(_0x3c7346[_0x375533(0x177)]!==_0x2f2c29['OPERATION']||!this[_0x375533(0x183)][_0x375533(0x132)](_0x3c7346['id']))return;const {id:_0x2cd200}=_0x3c7346;let _0x112a7e;_0x35a9ec[_0x375533(0x13d)](_0x2cd200)?_0x112a7e=_0x35a9ec[_0x375533(0x123)](_0x2cd200):(_0x112a7e=new _0x9da62(),_0x35a9ec['set'](_0x2cd200,_0x112a7e),_0x112a7e[_0x375533(0x115)](_0x57236f((_0x3768d5=this[_0x375533(0x116)]['getConfig'](Ce))!=null?_0x3768d5:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4dc21d=>{const _0x63820a=_0x375533;this[_0x63820a(0x103)][_0x63820a(0x12a)]({'eventID':_0x2c7ed0['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x4dc21d['id']]:{'id':_0x4dc21d['id'],'params':JSON[_0x63820a(0x108)](_0x4dc21d['params'])}}}},this[_0x63820a(0x173)]);})),_0x112a7e[_0x375533(0x18f)](_0x3c7346);})),this[_0x44b1f1(0x183)][_0x44b1f1(0xec)](this[_0x44b1f1(0x173)])[_0x44b1f1(0x12f)](_0x613c55=>this['_collabSession']['send']({'eventID':_0x2c7ed0[_0x44b1f1(0x168)],'data':{'unitID':this['_unitID'],'operations':{[_0x613c55['id']]:{'id':_0x613c55['id'],'params':JSON[_0x44b1f1(0x108)](_0x613c55[_0x44b1f1(0x142)])}}}},this[_0x44b1f1(0x173)]));}[_0x69f19a(0x127)](){const _0x81878a=_0x69f19a;var _0x3cd21f;this[_0x81878a(0x189)][_0x81878a(0x18f)]('idle'),(_0x3cd21f=this[_0x81878a(0x178)])==null||_0x3cd21f[_0x81878a(0x111)](),this[_0x81878a(0x178)]=null;}[_0x69f19a(0x147)](){const _0x59a1b8=_0x69f19a;var _0x527abe;(_0x527abe=this[_0x59a1b8(0x178)])==null||_0x527abe[_0x59a1b8(0x111)](),this[_0x59a1b8(0x189)]['next'](_0x59a1b8(0x10f));}[_0x69f19a(0x151)](){const _0x19f473=_0x69f19a;var _0x4a1cba;this[_0x19f473(0x189)][_0x19f473(0x18f)](_0x19f473(0x124)),(_0x4a1cba=this[_0x19f473(0x178)])==null||_0x4a1cba[_0x19f473(0x111)](),this['_commandDisposable']=null;}[_0x69f19a(0x120)](){const _0x102561=_0x69f19a;var _0x597f46;this[_0x102561(0x189)][_0x102561(0x18f)](_0x102561(0xf0)),(_0x597f46=this[_0x102561(0x178)])==null||_0x597f46['dispose']();}['_handleOperation'](_0x4ede3c){const _0x542359=_0x69f19a;if(['presenting',_0x542359(0xf0),_0x542359(0x107)][_0x542359(0x14a)](this[_0x542359(0x150)])||!_0x4ede3c['data'][_0x542359(0x101)]||_0x4ede3c[_0x542359(0x12d)][_0x542359(0x101)]===this[_0x542359(0x103)]['getMemberID']())return;this[_0x542359(0x150)]==='idle'&&this[_0x542359(0x147)]();const _0x2f640a=_0x4ede3c['data'][_0x542359(0x10a)];Object[_0x542359(0x104)](_0x2f640a)[_0x542359(0x12f)](_0x34c251=>{const _0x4e3c5a=_0x542359;this[_0x4e3c5a(0x128)][_0x4e3c5a(0x16d)](_0x34c251['id'],_0x34c251[_0x4e3c5a(0x142)]?JSON[_0x4e3c5a(0x14e)](_0x34c251[_0x4e3c5a(0x142)]):null,{'fromCollab':!0x0});});}[_0x69f19a(0x113)](){const _0x4b638e=_0x69f19a;var _0xb30595;this['_status$'][_0x4b638e(0x18f)](_0x4b638e(0x107)),(_0xb30595=this['_commandDisposable'])==null||_0xb30595['dispose']();}['_handleOnline'](){const _0x1de9b2=_0x69f19a;this[_0x1de9b2(0x189)][_0x1de9b2(0x18f)](_0x1de9b2(0x124)),this[_0x1de9b2(0x17a)]();}};N=Y([_(0x2,_0x22f532),_(0x3,_0x1c9f93(L)),_(0x4,_0xc18e24)],N);function Le(){const _0x3602e1=_0x69f19a,_0x4e6fa7=_0x4d80ad(S),_0x262241=_0x4d80ad(_0x3bbb47),_0x45ff6b=_0x588bad(()=>_0x262241[_0x3602e1(0x10c)](_0xa40585[_0x3602e1(0x13b)]),void 0x0,!0x1,[]),[_0x448b13,_0x2d9f95]=_0x4b851f(null),[_0x17d430,_0x39edc6]=_0x4b851f(c[_0x3602e1(0xf5)]),_0x51422c=_0x5e92a4(null);return _0x6285d1(()=>(_0x45ff6b&&_0x4e6fa7[_0x3602e1(0x17b)](_0x45ff6b['getUnitId']())[_0x3602e1(0x153)](_0x246eca=>{const _0x5dd2fb=_0x3602e1;_0x2d9f95(_0x246eca),_0x51422c[_0x5dd2fb(0x13c)]=_0x246eca[_0x5dd2fb(0xf4)][_0x5dd2fb(0x100)](_0x53f525=>{_0x39edc6(_0x53f525);});}),()=>{const _0x21d4ba=_0x3602e1;var _0x2ba7ba;(_0x2ba7ba=_0x51422c['current'])==null||_0x2ba7ba[_0x21d4ba(0x131)](),_0x51422c['current']=null;}),[_0x45ff6b,_0x4e6fa7]),_0x448b13?_0x2cb184(_0x64bd56,{'align':_0x3602e1(0x12c),'disabled':_0x17d430===c[_0x3602e1(0x182)],'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':_0x2cb184(Re,{'status':_0x17d430,'coordinator':_0x448b13}),'children':_0x2cb184(_0x3602e1(0x175),{'className':_0x3ff979('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x17d430===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x17d430!==c['OFFLINE']}),'type':'button','children':_0x2cb184(W,{'className':_0x3602e1(0x144)})})}):null;}function _0x746c(){const _0x381357=['pipe','_configService','requireSession','replace','registerInitialStateReporter','entries','default','12455bWVBBs','onStarting','8NepRDZ','5161200FbOwAP','_stopFollowing','66HpdvSh','memberID','get','idle','LIVESHARE_NEW_HOST','attrs','_stopPresenting','_commandService','dispose$','send','ONLINE','end','data','LIVESHARE_REQUEST_HOST','forEach','Stop\x20following','unsubscribe','shouldShareOperation','tag','4136923bxMrrr','Stop\x20presenting','fill','getUnitId','LIVESHARE_FETCH_OPERATIONS','symbol','setConfig','UNIVER_SHEET','current','has','stopPresenting','_uiPartsService','text','You\x27re\x20not\x20following\x20the\x20presenter','params','clear','univer-size-4','You\x27re\x20presenting\x20the\x20document','313052HBMFpp','_startFollowing','_startPresenting','map','includes','path','mask','UniverIcon','parse','substring','_status','_beIdle','getLiveShareCoordinatorSync','then','init','getValue','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','onCommandExecuted','_handleNewHost','FOLLOWING','mutations','_handleTerminate','unitId','set','asObservable','reverse','string','_handleOnline','registerSharedOperation','_startLiveShareCoordinator','_config','getOwnPropertyDescriptor','SAME_OPERATION_SHARE_INTERVAL','_init','LIVESHARE_OPERATION','_mountLiveShare','getTypeOfUnitDisposed$','svg','_sharedOperations','executeCommand','getStatus','delete','_presenter','_reporters','xlink:href','_unitID','toString','button','disposeWithMe','type','_commandDisposable','assign','_fetchOperations','getLiveShareCoordinator','tryStartPresenting','_collabSessionService','complete','You\x27are\x20offline.','find','UNIVER_UNKNOWN','OFFLINE','_liveShareService','univer-mb-3\x20univer-w-full\x20univer-text-sm','40ClaFeF','0\x200\x2017\x2017','currentColor','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','_status$','getMemberID','stopFollowing','getTypeOfUnitAdded$','colorChannel1','_injector','next','_handleOperation','live-share.config','1em','2529KSMIwG','onRendered','PRESENTING','_univerInstanceService','div','getInitialStates','presenting','univerjs-icon\x20univerjs-icon-','createInstance','not-following','pluginName','none','defineProperty','status$','IDLE','HEADER_MENU','sessionStatus$','children','defs','http://www.w3.org/2000/svg','override','url(#$1','length','_entities','displayName','subscribe','presenter','startFollowing','_collabSession','values','trim','535932ANTIPc','offline','stringify','_handleNewChangeSets','operations','use','getCurrentTypeOfUnit$','evenodd','NOT_FOLLOWING','following','391075jpOdlr','dispose','idSuffix','_handleOffline','3188FiWyui'];_0x746c=function(){return _0x381357;};return _0x746c();}function Re(_0x23ca7c){const _0x53ffc1=_0x69f19a,{status:_0x7c0457,coordinator:_0x2a0828}=_0x23ca7c;switch(_0x7c0457){case c[_0x53ffc1(0xf5)]:return _0x2cb184($e,{'coordinator':_0x2a0828});case c[_0x53ffc1(0x159)]:return _0x2cb184(xe,{'coordinator':_0x2a0828});case c['NOT_FOLLOWING']:return _0x2cb184(Pe,{'coordinator':_0x2a0828});case c['OFFLINE']:return _0x2cb184(Te,{});case c[_0x53ffc1(0xe9)]:return _0x2cb184(Ae,{'coordinator':_0x2a0828});default:return null;}}function $e(_0x571cd6){const _0x590e9e=_0x69f19a,{coordinator:_0x44344b}=_0x571cd6;return _0x4b7b29(_0x56b759,{'children':[_0x2cb184(_0x590e9e(0xeb),{'className':_0x590e9e(0x184),'children':'Present\x20this\x20document'}),_0x2cb184(_0x564805,{'onClick':()=>_0x44344b[_0x590e9e(0x17c)](),'children':'Start'})]});}function xe(_0x48069e){const _0x347d34=_0x69f19a,{coordinator:_0x596743}=_0x48069e;return _0x4b7b29(_0x56b759,{'children':[_0x2cb184('div',{'className':_0x347d34(0x184),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x2cb184(_0x564805,{'onClick':()=>_0x596743['stopFollowing'](),'children':_0x347d34(0x130)})]});}function Pe(_0x5b15f8){const _0x142551=_0x69f19a,{coordinator:_0x33d5c6}=_0x5b15f8;return _0x4b7b29(_0x56b759,{'children':[_0x2cb184(_0x142551(0xeb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x142551(0x141)}),_0x2cb184(_0x564805,{'variant':_0x142551(0x140),'onClick':()=>_0x33d5c6[_0x142551(0x102)](),'children':'Start\x20following'})]});}function Ae(_0x5761ea){const _0x4f3d63=_0x69f19a,{coordinator:_0x2684bc}=_0x5761ea;return _0x4b7b29(_0x56b759,{'children':[_0x2cb184(_0x4f3d63(0xeb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4f3d63(0x145)}),_0x2cb184(_0x564805,{'variant':_0x4f3d63(0x11b),'onClick':()=>_0x2684bc[_0x4f3d63(0x13e)](),'children':_0x4f3d63(0x135)})]});}function Te(){const _0x1ddb04=_0x69f19a;return _0x2cb184(_0x56b759,{'children':_0x1ddb04(0x17f)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x17f9fe,_0x273b91,_0x4640ec,_0x23ee29)=>{const _0x44a6fa=_0x69f19a;for(var _0x2ab8fe=_0x23ee29>0x1?void 0x0:_0x23ee29?Fe(_0x273b91,_0x4640ec):_0x273b91,_0x2dda7d=_0x17f9fe[_0x44a6fa(0xfd)]-0x1,_0x35ea7f;_0x2dda7d>=0x0;_0x2dda7d--)(_0x35ea7f=_0x17f9fe[_0x2dda7d])&&(_0x2ab8fe=_0x35ea7f(_0x2ab8fe)||_0x2ab8fe);return _0x2ab8fe;},A=(_0x1273f2,_0x2af210)=>(_0x1234b0,_0xf55a2a)=>_0x2af210(_0x1234b0,_0xf55a2a,_0x1273f2);let m=class extends _0x383352{constructor(_0xee9f9b,_0x119f6f){const _0x3b942e=_0x69f19a;super(),this['_injector']=_0xee9f9b,this[_0x3b942e(0x13f)]=_0x119f6f,this['_mountLiveShare']();}[_0x69f19a(0x169)](){const _0x45dc5b=_0x69f19a;this[_0x45dc5b(0x176)](this[_0x45dc5b(0x13f)]['registerComponent'](_0x3b52c9[_0x45dc5b(0xf6)],()=>_0x194ca5(Le,this['_injector'])));}};m=He([A(0x0,_0x1c9f93(_0x8f574c)),A(0x1,_0x34783d)],m);const ye=_0x69f19a(0x191),T={};var Ue=Object[_0x69f19a(0x165)],Ve=(_0x5e88a5,_0x3d6e0f,_0x31f320,_0x484b56)=>{for(var _0x3cb416=_0x484b56>0x1?void 0x0:_0x484b56?Ue(_0x3d6e0f,_0x31f320):_0x3d6e0f,_0x54aa22=_0x5e88a5['length']-0x1,_0x23092b;_0x54aa22>=0x0;_0x54aa22--)(_0x23092b=_0x5e88a5[_0x54aa22])&&(_0x3cb416=_0x23092b(_0x3cb416)||_0x3cb416);return _0x3cb416;},je=(_0x25fa89,_0x1fda57)=>(_0x4ebd21,_0x5d3c54)=>_0x1fda57(_0x4ebd21,_0x5d3c54,_0x25fa89);let I=class extends _0x383352{constructor(_0x8d6ace){const _0x18e9dd=_0x69f19a;super(),this[_0x18e9dd(0x183)]=_0x8d6ace,this[_0x18e9dd(0x167)]();}[_0x69f19a(0x167)](){const _0x326173=_0x69f19a;[_0x2a0d2e['id'],_0x48fa06['id'],_0x575e4f['id']][_0x326173(0x12f)](_0x13103b=>{const _0x464382=_0x326173;this[_0x464382(0x176)](this[_0x464382(0x183)]['registerSharedOperation'](_0x13103b));});}};I=Ve([je(0x0,_0x1c9f93(L))],I);var Me=Object[_0x69f19a(0xf3)],ke=Object[_0x69f19a(0x165)],Ge=(_0x14eb93,_0x2eeb4b,_0x5b99fd)=>_0x2eeb4b in _0x14eb93?Me(_0x14eb93,_0x2eeb4b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b99fd}):_0x14eb93[_0x2eeb4b]=_0x5b99fd,We=(_0x4e8dc2,_0x36abb5,_0x4af7dc,_0x3ff2b4)=>{const _0x5ca348=_0x69f19a;for(var _0x50eac7=_0x3ff2b4>0x1?void 0x0:_0x3ff2b4?ke(_0x36abb5,_0x4af7dc):_0x36abb5,_0x21f36c=_0x4e8dc2[_0x5ca348(0xfd)]-0x1,_0x530c4d;_0x21f36c>=0x0;_0x21f36c--)(_0x530c4d=_0x4e8dc2[_0x21f36c])&&(_0x50eac7=_0x530c4d(_0x50eac7)||_0x50eac7);return _0x50eac7;},F=(_0x46f490,_0x109363)=>(_0x641a85,_0x27d619)=>_0x109363(_0x641a85,_0x27d619,_0x46f490),B=(_0x2e9ef4,_0x2eb3af,_0x16f0e5)=>Ge(_0x2e9ef4,typeof _0x2eb3af!=_0x69f19a(0x139)?_0x2eb3af+'':_0x2eb3af,_0x16f0e5);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x1673f7{constructor(_0x128a69=T,_0x3a4ca0,_0x1378d6){const _0x1472b2=_0x69f19a;super(),this[_0x1472b2(0x164)]=_0x128a69,this[_0x1472b2(0x18e)]=_0x3a4ca0,this['_configService']=_0x1378d6;const {..._0x331e34}=_0x5cc7d7({},T,this[_0x1472b2(0x164)]);this['_configService'][_0x1472b2(0x13a)](ye,_0x331e34);}[_0x69f19a(0x11d)](){const _0x5d5eb6=_0x69f19a;_0x428d1a(this[_0x5d5eb6(0x18e)],_0x4279a3([[L],[S],[I],[m]],this[_0x5d5eb6(0x164)][_0x5d5eb6(0xfb)])),_0x8fcf17(this[_0x5d5eb6(0x18e)],[[I]]);}[_0x69f19a(0xe8)](){_0x8fcf17(this['_injector'],[[m]]);}};B(b,_0x69f19a(0x177),_0xa40585[_0x69f19a(0x181)]),B(b,_0x69f19a(0xf1),Ye),b=We([_0x46d4a0(_0x217f3d),F(0x1,_0x1c9f93(_0x8f574c)),F(0x2,_0x22f532)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
package/lib/facade.js CHANGED
@@ -1 +1 @@
1
- const _0x1e8f1f=_0x1f0f;(function(_0x1b01e7,_0xa38448){const _0x5c530e=_0x1f0f,_0x387c55=_0x1b01e7();while(!![]){try{const _0x1fc632=parseInt(_0x5c530e(0x12e))/0x1*(parseInt(_0x5c530e(0x116))/0x2)+parseInt(_0x5c530e(0x113))/0x3*(-parseInt(_0x5c530e(0x11a))/0x4)+parseInt(_0x5c530e(0x123))/0x5*(parseInt(_0x5c530e(0x12c))/0x6)+parseInt(_0x5c530e(0x12a))/0x7*(-parseInt(_0x5c530e(0x11c))/0x8)+parseInt(_0x5c530e(0x122))/0x9+parseInt(_0x5c530e(0x127))/0xa+-parseInt(_0x5c530e(0x120))/0xb*(parseInt(_0x5c530e(0x12b))/0xc);if(_0x1fc632===_0xa38448)break;else _0x387c55['push'](_0x387c55['shift']());}catch(_0xa68b1e){_0x387c55['push'](_0x387c55['shift']());}}}(_0xe3a6,0x3a2dd));import{LiveShareController as _0x555575,LiveShareStatus as _0x509a3d}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x5ebb53}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x54b5cc}from'@univerjs/sheets';import{SetScrollOperation as _0x796c64}from'@univerjs/sheets-ui';import{FRange as _0xfd205b}from'@univerjs/sheets/facade';import{FUniver as _0x24e225,FEnum as _0x191941}from'@univerjs/core/facade';class I extends _0xfd205b{[_0x1e8f1f(0x125)](_0x318589,_0x16e4aa,_0x2cffa4,_0x576f9b,_0x4cfe96){const _0x10a500=_0x1e8f1f,_0x4248f7=_0x318589['get'](_0x555575),_0x4aada0=_0x318589[_0x10a500(0x11d)](_0x5ebb53),_0x2cb5cf=_0x16e4aa[_0x10a500(0x12d)](),_0x550d20=_0x16e4aa['getActiveSheet'](),_0x338b34=_0x4248f7[_0x10a500(0x10e)](_0x2cb5cf);(_0x338b34==null?void 0x0:_0x338b34[_0x10a500(0x129)]())!==_0x509a3d[_0x10a500(0x117)]||(_0x2cffa4[_0x10a500(0x11f)]()!==_0x550d20[_0x10a500(0x11f)]()&&this[_0x10a500(0x11b)][_0x10a500(0x121)](_0x54b5cc['id'],{'unitId':_0x2cb5cf,'subUnitId':_0x2cffa4[_0x10a500(0x11f)]()}),!_0x4aada0[_0x10a500(0x111)](_0x2cb5cf))||_0x4cfe96[_0x10a500(0x126)](_0x796c64['id'],{'unitId':_0x16e4aa[_0x10a500(0x12d)](),'sheetId':_0x2cffa4['getSheetId'](),'sheetViewStartRow':_0x576f9b['startRow'],'sheetViewStartColumn':_0x576f9b['startColumn'],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0xfd205b['extend'](I);function _0xe3a6(){const _0x3891c2=['149688NYbsyx','222rYmZqc','getUnitId','11hbhYjj','startPresenting','startFollowing','getLiveShareCoordinatorSync','getId','No\x20active\x20workbook\x20found.','getRenderById','IDLE','246717yBZhJQ','_injector','getActiveWorkbook','46376fuklhv','PRESENTING','stopFollowing','getLiveShareStatus','4AEQyix','_commandService','30968gBcOhA','get','extend','getSheetId','297hWxCjt','executeCommand','2373660NHmbtm','35115MDcUUd','stopPresenting','_initialize','syncExecuteCommand','2309400tblLVE','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','637dOPSFd'];_0xe3a6=function(){return _0x3891c2;};return _0xe3a6();}class m extends _0x24e225{[_0x1e8f1f(0x119)](){const _0x7dd01b=_0x1e8f1f;var _0x2ce2e,_0x5aeae4;const _0x51b3ac=this[_0x7dd01b(0x114)][_0x7dd01b(0x11d)](_0x555575),_0x16aa58=(_0x2ce2e=this[_0x7dd01b(0x115)]())==null?void 0x0:_0x2ce2e[_0x7dd01b(0x10f)]();if(!_0x16aa58)throw new Error('No\x20active\x20workbook\x20found.');const _0x199895=_0x51b3ac[_0x7dd01b(0x10e)](_0x16aa58);return(_0x5aeae4=_0x199895==null?void 0x0:_0x199895[_0x7dd01b(0x129)]())!=null?_0x5aeae4:_0x509a3d[_0x7dd01b(0x112)];}[_0x1e8f1f(0x10d)](){const _0x15db63=_0x1e8f1f;var _0x2321a4;const _0x4e1f99=this[_0x15db63(0x114)][_0x15db63(0x11d)](_0x555575),_0x3b887c=(_0x2321a4=this[_0x15db63(0x115)]())==null?void 0x0:_0x2321a4[_0x15db63(0x10f)]();if(!_0x3b887c)throw new Error(_0x15db63(0x110));const _0x28bc07=_0x4e1f99[_0x15db63(0x10e)](_0x3b887c);if(!_0x28bc07)throw new Error(_0x15db63(0x128));_0x28bc07['startFollowing']();}[_0x1e8f1f(0x118)](){const _0x288b23=_0x1e8f1f;var _0x1bc2e0;const _0x2cde7e=this[_0x288b23(0x114)][_0x288b23(0x11d)](_0x555575),_0x482946=(_0x1bc2e0=this[_0x288b23(0x115)]())==null?void 0x0:_0x1bc2e0['getId']();if(!_0x482946)throw new Error(_0x288b23(0x110));const _0x459cc4=_0x2cde7e[_0x288b23(0x10e)](_0x482946);if(!_0x459cc4)throw new Error(_0x288b23(0x128));_0x459cc4['stopFollowing']();}[_0x1e8f1f(0x12f)](){const _0x521abe=_0x1e8f1f;var _0x4e4f43;const _0x18d230=this[_0x521abe(0x114)][_0x521abe(0x11d)](_0x555575),_0x39c331=(_0x4e4f43=this[_0x521abe(0x115)]())==null?void 0x0:_0x4e4f43[_0x521abe(0x10f)]();if(!_0x39c331)throw new Error(_0x521abe(0x110));const _0x691d99=_0x18d230[_0x521abe(0x10e)](_0x39c331);if(!_0x691d99)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x691d99['tryStartPresenting']();}[_0x1e8f1f(0x124)](){const _0x3b412d=_0x1e8f1f;var _0x3b913e;const _0x4ae50f=this[_0x3b412d(0x114)][_0x3b412d(0x11d)](_0x555575),_0x4cadf7=(_0x3b913e=this['getActiveWorkbook']())==null?void 0x0:_0x3b913e['getId']();if(!_0x4cadf7)throw new Error(_0x3b412d(0x110));const _0x213eea=_0x4ae50f[_0x3b412d(0x10e)](_0x4cadf7);if(!_0x213eea)throw new Error(_0x3b412d(0x128));_0x213eea[_0x3b412d(0x124)]();}}_0x24e225[_0x1e8f1f(0x11e)](m);class C extends _0x191941{get['LiveShareStatusEnum'](){return _0x509a3d;}}function _0x1f0f(_0x32a3d7,_0x1d26bf){_0x32a3d7=_0x32a3d7-0x10d;const _0xe3a68d=_0xe3a6();let _0x1f0f1f=_0xe3a68d[_0x32a3d7];return _0x1f0f1f;}_0x191941[_0x1e8f1f(0x11e)](C);
1
+ const _0x1027aa=_0x1b5f;(function(_0x2c344f,_0x55c941){const _0x224af2=_0x1b5f,_0x252dd2=_0x2c344f();while(!![]){try{const _0x363858=-parseInt(_0x224af2(0x163))/0x1+parseInt(_0x224af2(0x16b))/0x2+parseInt(_0x224af2(0x180))/0x3+parseInt(_0x224af2(0x165))/0x4*(-parseInt(_0x224af2(0x177))/0x5)+-parseInt(_0x224af2(0x164))/0x6*(-parseInt(_0x224af2(0x167))/0x7)+-parseInt(_0x224af2(0x171))/0x8+parseInt(_0x224af2(0x17c))/0x9*(parseInt(_0x224af2(0x170))/0xa);if(_0x363858===_0x55c941)break;else _0x252dd2['push'](_0x252dd2['shift']());}catch(_0xaf707e){_0x252dd2['push'](_0x252dd2['shift']());}}}(_0x11f8,0x4ac18));import{LiveShareController as _0x17a5d7,LiveShareStatus as _0x4885e0}from'@univerjs-pro/live-share';import{IRenderManagerService as _0x32f72f}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x333937}from'@univerjs/sheets';import{SetScrollOperation as _0x53cbbd}from'@univerjs/sheets-ui';import{FRange as _0x3fd1f8}from'@univerjs/sheets/facade';import{FUniver as _0x4dbf02,FEnum as _0x4cc463}from'@univerjs/core/facade';function _0x11f8(){const _0x52b2d4=['get','9837HmuBza','getActiveSheet','tryStartPresenting','getSheetId','690108TRgeFQ','No\x20active\x20workbook\x20found.','getUnitId','getActiveWorkbook','startFollowing','526985sQjLMX','53274FideDi','2100584pjhWnN','IDLE','105jowdjQ','getLiveShareStatus','executeCommand','startPresenting','556776ckgTye','startColumn','getLiveShareCoordinatorSync','syncExecuteCommand','PRESENTING','10390lvZGUZ','3351240wSDvcf','extend','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getStatus','stopPresenting','getId','5SXmsFF','_injector','_commandService','stopFollowing'];_0x11f8=function(){return _0x52b2d4;};return _0x11f8();}function _0x1b5f(_0x2d1d25,_0x1daacb){_0x2d1d25=_0x2d1d25-0x161;const _0x11f853=_0x11f8();let _0x1b5fa4=_0x11f853[_0x2d1d25];return _0x1b5fa4;}class I extends _0x3fd1f8{['_initialize'](_0x525a18,_0x46b4e2,_0x2ad70e,_0x258d04,_0x34308b){const _0x3de110=_0x1b5f,_0x450b2e=_0x525a18[_0x3de110(0x17b)](_0x17a5d7),_0x44c245=_0x525a18[_0x3de110(0x17b)](_0x32f72f),_0x196d66=_0x46b4e2[_0x3de110(0x182)](),_0x1b3f8c=_0x46b4e2[_0x3de110(0x17d)](),_0x344d67=_0x450b2e['getLiveShareCoordinatorSync'](_0x196d66);(_0x344d67==null?void 0x0:_0x344d67[_0x3de110(0x174)]())!==_0x4885e0[_0x3de110(0x16f)]||(_0x2ad70e['getSheetId']()!==_0x1b3f8c['getSheetId']()&&this[_0x3de110(0x179)][_0x3de110(0x169)](_0x333937['id'],{'unitId':_0x196d66,'subUnitId':_0x2ad70e[_0x3de110(0x17f)]()}),!_0x44c245['getRenderById'](_0x196d66))||_0x34308b[_0x3de110(0x16e)](_0x53cbbd['id'],{'unitId':_0x46b4e2[_0x3de110(0x182)](),'sheetId':_0x2ad70e[_0x3de110(0x17f)](),'sheetViewStartRow':_0x258d04['startRow'],'sheetViewStartColumn':_0x258d04[_0x3de110(0x16c)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x3fd1f8[_0x1027aa(0x172)](I);class m extends _0x4dbf02{[_0x1027aa(0x168)](){const _0x1148d9=_0x1027aa;var _0x37bc11,_0x570ae7;const _0x2bbbc0=this[_0x1148d9(0x178)][_0x1148d9(0x17b)](_0x17a5d7),_0x359409=(_0x37bc11=this['getActiveWorkbook']())==null?void 0x0:_0x37bc11[_0x1148d9(0x176)]();if(!_0x359409)throw new Error(_0x1148d9(0x181));const _0x598686=_0x2bbbc0[_0x1148d9(0x16d)](_0x359409);return(_0x570ae7=_0x598686==null?void 0x0:_0x598686['getStatus']())!=null?_0x570ae7:_0x4885e0[_0x1148d9(0x166)];}[_0x1027aa(0x162)](){const _0x12a948=_0x1027aa;var _0x290cf9;const _0x2ac59f=this[_0x12a948(0x178)]['get'](_0x17a5d7),_0x39766b=(_0x290cf9=this['getActiveWorkbook']())==null?void 0x0:_0x290cf9[_0x12a948(0x176)]();if(!_0x39766b)throw new Error('No\x20active\x20workbook\x20found.');const _0x336a77=_0x2ac59f[_0x12a948(0x16d)](_0x39766b);if(!_0x336a77)throw new Error(_0x12a948(0x173));_0x336a77[_0x12a948(0x162)]();}[_0x1027aa(0x17a)](){const _0x3f0e41=_0x1027aa;var _0x338119;const _0x424239=this[_0x3f0e41(0x178)][_0x3f0e41(0x17b)](_0x17a5d7),_0x3e7072=(_0x338119=this[_0x3f0e41(0x161)]())==null?void 0x0:_0x338119[_0x3f0e41(0x176)]();if(!_0x3e7072)throw new Error(_0x3f0e41(0x181));const _0x3e1c8d=_0x424239[_0x3f0e41(0x16d)](_0x3e7072);if(!_0x3e1c8d)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3e1c8d['stopFollowing']();}[_0x1027aa(0x16a)](){const _0x42ce70=_0x1027aa;var _0x145f91;const _0x3b3d81=this['_injector']['get'](_0x17a5d7),_0x188c68=(_0x145f91=this[_0x42ce70(0x161)]())==null?void 0x0:_0x145f91[_0x42ce70(0x176)]();if(!_0x188c68)throw new Error(_0x42ce70(0x181));const _0x182cef=_0x3b3d81[_0x42ce70(0x16d)](_0x188c68);if(!_0x182cef)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x182cef[_0x42ce70(0x17e)]();}['stopPresenting'](){const _0xf66334=_0x1027aa;var _0x185a81;const _0x3a6f35=this['_injector'][_0xf66334(0x17b)](_0x17a5d7),_0x6a770b=(_0x185a81=this[_0xf66334(0x161)]())==null?void 0x0:_0x185a81[_0xf66334(0x176)]();if(!_0x6a770b)throw new Error(_0xf66334(0x181));const _0x6c06f8=_0x3a6f35['getLiveShareCoordinatorSync'](_0x6a770b);if(!_0x6c06f8)throw new Error(_0xf66334(0x173));_0x6c06f8[_0xf66334(0x175)]();}}_0x4dbf02[_0x1027aa(0x172)](m);class C extends _0x4cc463{get['LiveShareStatusEnum'](){return _0x4885e0;}}_0x4cc463[_0x1027aa(0x172)](C);
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- const _0x1c78e4=_0x4fc5;(function(_0x448a29,_0x121f2b){const _0x5dde8a=_0x4fc5,_0x357d8b=_0x448a29();while(!![]){try{const _0x38840e=parseInt(_0x5dde8a(0x15a))/0x1+-parseInt(_0x5dde8a(0x1df))/0x2*(-parseInt(_0x5dde8a(0x157))/0x3)+parseInt(_0x5dde8a(0x16c))/0x4*(parseInt(_0x5dde8a(0x19e))/0x5)+parseInt(_0x5dde8a(0x1d2))/0x6+-parseInt(_0x5dde8a(0x1dd))/0x7*(parseInt(_0x5dde8a(0x14d))/0x8)+-parseInt(_0x5dde8a(0x1a8))/0x9+-parseInt(_0x5dde8a(0x1c2))/0xa;if(_0x38840e===_0x121f2b)break;else _0x357d8b['push'](_0x357d8b['shift']());}catch(_0x3c3497){_0x357d8b['push'](_0x357d8b['shift']());}}}(_0x2bfa,0xcfd87));var J=Object[_0x1c78e4(0x143)],K=(_0x47b0a7,_0x9727de,_0x191def)=>_0x9727de in _0x47b0a7?J(_0x47b0a7,_0x9727de,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x191def}):_0x47b0a7[_0x9727de]=_0x191def,u=(_0x67648c,_0x17ae10,_0x49c1f0)=>K(_0x67648c,typeof _0x17ae10!=_0x1c78e4(0x1af)?_0x17ae10+'':_0x17ae10,_0x49c1f0);import{Disposable as _0x12154a,toDisposable as _0x5217c8,IUniverInstanceService as _0x5969d9,Inject as _0x1a6954,Injector as _0xdf7c04,IConfigService as _0x213343,ICommandService as _0xf26fa0,RxDisposable as _0x3f9973,UniverInstanceType as _0x8c38dc,DisposableCollection as _0x5309db,CommandType as _0x2b1f1c,DependentOn as _0x579b4c,Plugin as _0x32fdda,merge as _0x50f219,registerDependencies as _0x236b83,mergeOverrideWithDependencies as _0x4faafe,touchDependencies as _0x403cf0}from'@univerjs/core';import{useDependency as _0x12bce2,useObservable as _0x3246f2,IUIPartsService as _0x19d4b0,BuiltInUIPart as _0x4a91ef,connectInjector as _0x4d7dcf}from'@univerjs/ui';import{jsx as _0x1c423a,jsxs as _0x5c6e44,Fragment as _0x2cc6e1}from'react/jsx-runtime';import{Dropdown as _0x4e3f46,clsx as _0x25885e,Button as _0x595499}from'@univerjs/design';import{useRef as _0x1e6b39,createElement as _0x23e9b5,forwardRef as _0x4b44ea,useState as _0x3ec4cb,useEffect as _0x8b76d1}from'react';import{CollaborationEvent as _0x1ef809,parseProtocolChangeset as _0x399321}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x17ced7,SessionStatus as _0x4a028c,UniverCollaborationClientPlugin as _0x22ac1e}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x190abd,SetWorksheetActiveOperation as _0x35566a}from'@univerjs/sheets';import{BehaviorSubject as _0xc4cd4f,Subject as _0x1c6f6d}from'rxjs';import{takeUntil as _0x57326a,throttleTime as _0x2b868b}from'rxjs/operators';import{SetZoomRatioOperation as _0x2fa9e7,SetScrollOperation as _0x38d67b}from'@univerjs/sheets-ui';function k({ref:_0x5a1c23,..._0x70444a}){const _0x361a56=_0x1c78e4,{icon:_0x144016,id:_0x495a1f,className:_0x49b9e0,extend:_0x3e8568,..._0x546975}=_0x70444a,_0x2d12a5=('univerjs-icon\x20univerjs-icon-'+_0x495a1f+'\x20'+(_0x49b9e0||''))[_0x361a56(0x165)](),_0x4665c8=_0x1e6b39('_'+Oe());return G(_0x144016,''+_0x495a1f,{'defIds':_0x144016[_0x361a56(0x1e1)],'idSuffix':_0x4665c8['current']},{'ref':_0x5a1c23,'className':_0x2d12a5,..._0x546975},_0x3e8568);}function G(_0x23f191,_0x64e5dc,_0x1b2716,_0x4f08e5,_0x100598){const _0x1a5773=_0x1c78e4;return _0x23e9b5(_0x23f191[_0x1a5773(0x191)],{'key':_0x64e5dc,...be(_0x23f191,_0x1b2716,_0x100598),..._0x4f08e5},(Ee(_0x23f191,_0x1b2716)[_0x1a5773(0x1c3)]||[])[_0x1a5773(0x1bc)]((_0x16cac2,_0x486d48)=>G(_0x16cac2,_0x64e5dc+'-'+_0x23f191['tag']+'-'+_0x486d48,_0x1b2716,void 0x0,_0x100598)));}function be(_0x42aeaa,_0x7940e4,_0x2102e9){const _0x351d5d=_0x1c78e4,_0x58e5c1={..._0x42aeaa[_0x351d5d(0x1ad)]};_0x2102e9!=null&&_0x2102e9['colorChannel1']&&_0x58e5c1[_0x351d5d(0x1bd)]==='colorChannel1'&&(_0x58e5c1[_0x351d5d(0x1bd)]=_0x2102e9[_0x351d5d(0x1b8)]),_0x42aeaa[_0x351d5d(0x191)]===_0x351d5d(0x193)&&_0x58e5c1['id']&&(_0x58e5c1['id']=_0x58e5c1['id']+_0x7940e4['idSuffix']),Object['entries'](_0x58e5c1)[_0x351d5d(0x13f)](([_0x2fdc0d,_0x591549])=>{const _0x5035c9=_0x351d5d;_0x2fdc0d===_0x5035c9(0x193)&&typeof _0x591549==_0x5035c9(0x1dc)&&(_0x58e5c1[_0x2fdc0d]=_0x591549['replace'](/url\(#(.*)\)/,_0x5035c9(0x144)+_0x7940e4[_0x5035c9(0x160)]+')'));});const {defIds:_0x24f923}=_0x7940e4;return!_0x24f923||_0x24f923[_0x351d5d(0x195)]===0x0||(_0x42aeaa[_0x351d5d(0x191)]===_0x351d5d(0x183)&&_0x58e5c1[_0x351d5d(0x179)]&&(_0x58e5c1[_0x351d5d(0x179)]=_0x58e5c1[_0x351d5d(0x179)]+_0x7940e4[_0x351d5d(0x160)]),Object[_0x351d5d(0x13d)](_0x58e5c1)[_0x351d5d(0x13f)](([_0x507bdc,_0x1aa202])=>{const _0x103532=_0x351d5d;typeof _0x1aa202=='string'&&(_0x58e5c1[_0x507bdc]=_0x1aa202[_0x103532(0x177)](/url\(#(.*)\)/,'url(#$1'+_0x7940e4['idSuffix']+')'));})),_0x58e5c1;}function Ee(_0x33512f,_0x2fae61){const _0x3616b5=_0x1c78e4;var _0x16f4c3;const {defIds:_0x11d561}=_0x2fae61;return!_0x11d561||_0x11d561['length']===0x0?_0x33512f:_0x33512f[_0x3616b5(0x191)]===_0x3616b5(0x1c0)&&((_0x16f4c3=_0x33512f[_0x3616b5(0x1c3)])!=null&&_0x16f4c3[_0x3616b5(0x195)])?{..._0x33512f,'children':_0x33512f[_0x3616b5(0x1c3)][_0x3616b5(0x1bc)](_0x58d609=>typeof _0x58d609[_0x3616b5(0x1ad)]['id']==_0x3616b5(0x1dc)&&_0x11d561&&_0x11d561[_0x3616b5(0x198)](_0x58d609['attrs']['id'])?{..._0x58d609,'attrs':{..._0x58d609[_0x3616b5(0x1ad)],'id':_0x58d609[_0x3616b5(0x1ad)]['id']+_0x2fae61[_0x3616b5(0x160)]}}:_0x58d609)}:_0x33512f;}function Oe(){const _0x2c421c=_0x1c78e4;return Math[_0x2c421c(0x14e)]()['toString'](0x24)[_0x2c421c(0x14f)](0x2,0x8);}k[_0x1c78e4(0x150)]=_0x1c78e4(0x154);const we={'tag':_0x1c78e4(0x180),'attrs':{'xmlns':_0x1c78e4(0x1cb),'fill':_0x1c78e4(0x197),'viewBox':_0x1c78e4(0x1ca),'width':_0x1c78e4(0x1e0),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x1c78e4(0x16e),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x1c78e4(0x19f),'attrs':{'fill':'currentColor','d':_0x1c78e4(0x1b4),'fillRule':'evenodd','clipRule':'evenodd'}}]},W=_0x4b44ea(function(_0x161205,_0x250f9a){const _0x556268=_0x1c78e4;return _0x23e9b5(k,Object[_0x556268(0x184)]({},_0x161205,{'id':'live-share-icon','ref':_0x250f9a,'icon':we}));});function _0x4fc5(_0x3b03fa,_0x2e9b8a){_0x3b03fa=_0x3b03fa-0x138;const _0x2bfa18=_0x2bfa();let _0x4fc5b5=_0x2bfa18[_0x3b03fa];return _0x4fc5b5;}W['displayName']=_0x1c78e4(0x156);class L extends _0x12154a{constructor(){const _0x211312=_0x1c78e4;super(...arguments),u(this,_0x211312(0x1a5),new Set()),u(this,_0x211312(0x140),new Set());}[_0x1c78e4(0x187)](_0x3a13b6){const _0x1fd176=_0x1c78e4;return this['_sharedOperations']['add'](_0x3a13b6),_0x5217c8(()=>this[_0x1fd176(0x1a5)][_0x1fd176(0x1ba)](_0x3a13b6));}[_0x1c78e4(0x1db)](_0xf2db90){const _0x236595=_0x1c78e4;return this['_reporters'][_0x236595(0x17c)](_0xf2db90),_0x5217c8(()=>this[_0x236595(0x140)][_0x236595(0x1ba)](_0xf2db90));}[_0x1c78e4(0x155)](_0x519d11){const _0x16827f=_0x1c78e4;return this[_0x16827f(0x1a5)][_0x16827f(0x172)](_0x519d11);}[_0x1c78e4(0x1b9)](_0x2de91e){const _0x3ac88e=_0x1c78e4;return Array[_0x3ac88e(0x1bb)](this[_0x3ac88e(0x140)])[_0x3ac88e(0x1bc)](_0x17b801=>_0x17b801(_0x2de91e));}}var Ne=Object[_0x1c78e4(0x162)],Y=(_0x4c3679,_0x4e41b6,_0x3dec2a,_0x482c9a)=>{const _0x2e80e4=_0x1c78e4;for(var _0x4e29b6=_0x482c9a>0x1?void 0x0:_0x482c9a?Ne(_0x4e41b6,_0x3dec2a):_0x4e41b6,_0x380140=_0x4c3679[_0x2e80e4(0x195)]-0x1,_0xede0b4;_0x380140>=0x0;_0x380140--)(_0xede0b4=_0x4c3679[_0x380140])&&(_0x4e29b6=_0xede0b4(_0x4e29b6)||_0x4e29b6);return _0x4e29b6;},_=(_0x4d1d34,_0x2203b9)=>(_0x29b77e,_0x5936d4)=>_0x2203b9(_0x29b77e,_0x5936d4,_0x4d1d34);let S=class extends _0x3f9973{constructor(_0x278a7e,_0x31f189,_0x5de18e){const _0x2c68db=_0x1c78e4;super(),u(this,'_entities',new Map()),(this[_0x2c68db(0x188)]=_0x278a7e,this['_injector']=_0x31f189,this[_0x2c68db(0x138)]=_0x5de18e,this[_0x2c68db(0x1b6)]());}async[_0x1c78e4(0x192)](_0x59b214){const _0x21e1e9=_0x1c78e4;return this[_0x21e1e9(0x17b)]['has'](_0x59b214)||await this[_0x21e1e9(0x1b7)](_0x59b214),this[_0x21e1e9(0x17b)][_0x21e1e9(0x19d)](_0x59b214);}['getLiveShareCoordinatorSync'](_0x1ba538){const _0x47d766=_0x1c78e4;var _0x449c8f;return(_0x449c8f=this[_0x47d766(0x17b)][_0x47d766(0x19d)](_0x1ba538))!=null?_0x449c8f:null;}['_init'](){const _0x50eec1=_0x1c78e4;this[_0x50eec1(0x188)][_0x50eec1(0x18a)](_0x8c38dc[_0x50eec1(0x1b3)])[_0x50eec1(0x151)](_0x57326a(this[_0x50eec1(0x1a4)]))[_0x50eec1(0x1a0)](async _0x3fb8c2=>{const _0x39bf2c=_0x50eec1,_0x262d12=_0x3fb8c2[_0x39bf2c(0x1be)]();this[_0x39bf2c(0x17b)][_0x39bf2c(0x172)](_0x262d12)||this['_startLiveShareCoordinator'](_0x262d12);}),this[_0x50eec1(0x188)][_0x50eec1(0x186)](_0x8c38dc['UNIVER_SHEET'])[_0x50eec1(0x151)](_0x57326a(this['dispose$']))[_0x50eec1(0x1a0)](_0x32b22a=>{const _0x158b00=_0x50eec1,_0x151186=_0x32b22a[_0x158b00(0x1be)](),_0x1563d6=this['_entities']['get'](_0x151186);_0x1563d6==null||_0x1563d6['dispose']();});}async[_0x1c78e4(0x1b7)](_0x2d26ad){const _0x1b5fb9=_0x1c78e4,_0x2edda0=await this[_0x1b5fb9(0x138)][_0x1b5fb9(0x17d)](_0x2d26ad),_0x22586b=this[_0x1b5fb9(0x168)][_0x1b5fb9(0x164)](N,_0x2d26ad,_0x2edda0);return _0x22586b['init'](),this['_entities']['set'](_0x2d26ad,_0x22586b),_0x22586b;}};S=Y([_(0x0,_0x5969d9),_(0x1,_0x1a6954(_0xdf7c04)),_(0x2,_0x1a6954(_0x17ced7))],S);var c=(_0x24c783=>(_0x24c783[_0x1c78e4(0x16a)]=_0x1c78e4(0x15b),_0x24c783['IDLE']='idle',_0x24c783[_0x1c78e4(0x1ae)]=_0x1c78e4(0x18c),_0x24c783[_0x1c78e4(0x17a)]='not-following',_0x24c783[_0x1c78e4(0x1d1)]=_0x1c78e4(0x13b),_0x24c783))(c||{});const Ce=_0x1c78e4(0x139),De=0xc8;let N=class extends _0x3f9973{constructor(_0x554e2f,_0x23894f,_0x73cbda,_0x69594c,_0x4d668d){const _0x2fec80=_0x1c78e4;super(),u(this,_0x2fec80(0x1e2),new _0xc4cd4f(_0x2fec80(0x141))),u(this,_0x2fec80(0x1b5),this[_0x2fec80(0x1e2)][_0x2fec80(0x1a6)]()),u(this,_0x2fec80(0x1b6),!0x1),u(this,_0x2fec80(0x1bf),null),u(this,_0x2fec80(0x13c),null),(this['_unitID']=_0x554e2f,this[_0x2fec80(0x14b)]=_0x23894f,this['_configService']=_0x73cbda,this[_0x2fec80(0x15f)]=_0x69594c,this[_0x2fec80(0x14c)]=_0x4d668d);}get['_status'](){const _0x4a6811=_0x1c78e4;return this[_0x4a6811(0x1e2)][_0x4a6811(0x13e)]();}[_0x1c78e4(0x1d3)](){const _0x802d10=_0x1c78e4;var _0x3bd303;(_0x3bd303=this[_0x802d10(0x1bf)])==null||_0x3bd303[_0x802d10(0x1d3)](),this[_0x802d10(0x1e2)][_0x802d10(0x1b1)](_0x802d10(0x141)),this[_0x802d10(0x1e2)][_0x802d10(0x171)]();}[_0x1c78e4(0x153)](){const _0x403747=_0x1c78e4;return this[_0x403747(0x1a7)];}[_0x1c78e4(0x1d8)](){const _0x4c0aae=_0x1c78e4;this[_0x4c0aae(0x1b6)]||(this[_0x4c0aae(0x1b6)]=!0x0,this[_0x4c0aae(0x14b)][_0x4c0aae(0x185)][_0x4c0aae(0x151)](_0x57326a(this[_0x4c0aae(0x1a4)]))[_0x4c0aae(0x1a0)](_0x401383=>{const _0x4e72e6=_0x4c0aae;switch(_0x401383){case _0x4a028c[_0x4e72e6(0x16a)]:this['_handleOffline']();break;case _0x4a028c[_0x4e72e6(0x17f)]:this['_handleOnline']();break;}}),this[_0x4c0aae(0x14b)][_0x4c0aae(0x15c)][_0x4c0aae(0x151)](_0x57326a(this[_0x4c0aae(0x1a4)]))[_0x4c0aae(0x1a0)](_0x1e38a8=>{const _0x5e9c49=_0x4c0aae,{eventID:_0x14971b}=_0x1e38a8;switch(_0x14971b){case _0x1ef809[_0x5e9c49(0x15e)]:this['_handleNewHost'](_0x1e38a8);break;case _0x1ef809[_0x5e9c49(0x16d)]:this[_0x5e9c49(0x1c4)](_0x1e38a8);break;case _0x1ef809['LIVESHARE_TERMINATE']:this[_0x5e9c49(0x1e3)]();break;case _0x1ef809[_0x5e9c49(0x1c5)]:this[_0x5e9c49(0x1c6)](_0x1e38a8);break;}}));}[_0x1c78e4(0x1e5)](){const _0x41d1e1=_0x1c78e4;this[_0x41d1e1(0x14b)][_0x41d1e1(0x176)]({'eventID':_0x1ef809[_0x41d1e1(0x1a3)],'data':{'unitID':this[_0x41d1e1(0x181)],'userID':this[_0x41d1e1(0x14b)][_0x41d1e1(0x148)]()}},this[_0x41d1e1(0x181)]);}[_0x1c78e4(0x161)](){const _0x440abd=_0x1c78e4;this[_0x440abd(0x1a7)]==='presenting'&&(this[_0x440abd(0x1e2)][_0x440abd(0x1b1)](_0x440abd(0x141)),this['_collabSession']['send']({'eventID':_0x1ef809[_0x440abd(0x1c9)],'data':{'unitID':this[_0x440abd(0x181)]}},this['_unitID']));}['startFollowing'](){const _0x4ac97a=_0x1c78e4;this['_status']===_0x4ac97a(0x1da)&&(this['_status$']['next']('following'),this['_startFollowing']());}[_0x1c78e4(0x1d0)](){const _0x1231b1=_0x1c78e4;this['_status']===_0x1231b1(0x18c)&&this[_0x1231b1(0x1b0)]();}['_handleNewHost'](_0x34d387){const _0x3a99cb=_0x1c78e4,{presenter:_0xbc7752}=_0x34d387[_0x3a99cb(0x1d9)],_0x34ab7c=this[_0x3a99cb(0x14b)][_0x3a99cb(0x148)]();this[_0x3a99cb(0x13c)]=_0xbc7752,_0xbc7752===_0x34ab7c?(this[_0x3a99cb(0x1b0)](),this['_startPresenting']()):this['_status']!=='not-following'&&(this[_0x3a99cb(0x1d6)](),this[_0x3a99cb(0x1a2)]());}[_0x1c78e4(0x196)](){const _0x1b62b9=_0x1c78e4,_0x1ced9d={'eventID':_0x1ef809[_0x1b62b9(0x1c7)]};this[_0x1b62b9(0x14b)][_0x1b62b9(0x176)](_0x1ced9d,this[_0x1b62b9(0x181)]);}[_0x1c78e4(0x1e3)](){const _0x74be2e=_0x1c78e4;this[_0x74be2e(0x13c)]=null,this[_0x74be2e(0x1a7)]!==_0x74be2e(0x13b)&&this[_0x74be2e(0x174)]();}[_0x1c78e4(0x1c6)](_0x1807be){const _0x583e90=_0x1c78e4;if(this['_status']===_0x583e90(0x18c)&&this[_0x583e90(0x13c)]===_0x1807be[_0x583e90(0x1d9)]['memberID']){const _0x3ec2dc=_0x399321(_0x1807be[_0x583e90(0x1d9)])['mutations'][_0x583e90(0x169)]()[_0x583e90(0x1ac)](_0x5181ef=>_0x5181ef['id']===_0x190abd['id']);if(_0x3ec2dc){const _0x13b796=_0x3ec2dc['params'][_0x583e90(0x166)],_0x4c5ac6=_0x3ec2dc['params'][_0x583e90(0x1de)]['id'];setTimeout(()=>{const _0x594c2b=_0x583e90;this[_0x594c2b(0x14c)][_0x594c2b(0x145)](_0x35566a['id'],{'unitId':_0x13b796,'subUnitId':_0x4c5ac6},{'fromCollab':!0x0});});}}}[_0x1c78e4(0x175)](){const _0x4ec94f=_0x1c78e4;this[_0x4ec94f(0x1e2)][_0x4ec94f(0x1b1)](_0x4ec94f(0x13b));const _0xcec87d=new Map(),_0xc722bc=this[_0x4ec94f(0x1bf)]=new _0x5309db();_0xc722bc[_0x4ec94f(0x17c)](_0x5217c8(()=>{const _0x54956a=_0x4ec94f;_0xcec87d[_0x54956a(0x13f)](_0x17fbca=>_0x17fbca['complete']()),_0xcec87d[_0x54956a(0x194)]();})),_0xc722bc[_0x4ec94f(0x17c)](this['_commandService'][_0x4ec94f(0x149)](_0x25a6e6=>{const _0x5e4aed=_0x4ec94f;var _0x378225;if(_0x25a6e6[_0x5e4aed(0x15d)]!==_0x2b1f1c[_0x5e4aed(0x146)]||!this['_liveShareService'][_0x5e4aed(0x155)](_0x25a6e6['id']))return;const {id:_0x17b5db}=_0x25a6e6;let _0x2ce684;_0xcec87d['has'](_0x17b5db)?_0x2ce684=_0xcec87d[_0x5e4aed(0x19d)](_0x17b5db):(_0x2ce684=new _0x1c6f6d(),_0xcec87d['set'](_0x17b5db,_0x2ce684),_0x2ce684['pipe'](_0x2b868b((_0x378225=this[_0x5e4aed(0x1ce)][_0x5e4aed(0x170)](Ce))!=null?_0x378225:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5e4aed(0x1a0)](_0x5729a0=>{const _0x3ddaf6=_0x5e4aed;this[_0x3ddaf6(0x14b)][_0x3ddaf6(0x176)]({'eventID':_0x1ef809['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x3ddaf6(0x181)],'operations':{[_0x5729a0['id']]:{'id':_0x5729a0['id'],'params':JSON['stringify'](_0x5729a0['params'])}}}},this[_0x3ddaf6(0x181)]);})),_0x2ce684[_0x5e4aed(0x1b1)](_0x25a6e6);})),this[_0x4ec94f(0x15f)][_0x4ec94f(0x1b9)](this[_0x4ec94f(0x181)])[_0x4ec94f(0x13f)](_0x57195f=>this[_0x4ec94f(0x14b)][_0x4ec94f(0x176)]({'eventID':_0x1ef809['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4ec94f(0x181)],'operations':{[_0x57195f['id']]:{'id':_0x57195f['id'],'params':JSON[_0x4ec94f(0x1a1)](_0x57195f['params'])}}}},this['_unitID']));}['_stopPresenting'](){const _0x42a533=_0x1c78e4;var _0x19cb53;this[_0x42a533(0x1e2)][_0x42a533(0x1b1)](_0x42a533(0x141)),(_0x19cb53=this[_0x42a533(0x1bf)])==null||_0x19cb53[_0x42a533(0x1d3)](),this[_0x42a533(0x1bf)]=null;}['_startFollowing'](){const _0x221382=_0x1c78e4;var _0x2b8b4d;(_0x2b8b4d=this[_0x221382(0x1bf)])==null||_0x2b8b4d[_0x221382(0x1d3)](),this[_0x221382(0x1e2)][_0x221382(0x1b1)](_0x221382(0x18c));}[_0x1c78e4(0x174)](){const _0x2bec49=_0x1c78e4;var _0x5b0238;this[_0x2bec49(0x1e2)][_0x2bec49(0x1b1)](_0x2bec49(0x141)),(_0x5b0238=this[_0x2bec49(0x1bf)])==null||_0x5b0238[_0x2bec49(0x1d3)](),this[_0x2bec49(0x1bf)]=null;}[_0x1c78e4(0x1b0)](){const _0x10cf32=_0x1c78e4;var _0x26e9dd;this[_0x10cf32(0x1e2)][_0x10cf32(0x1b1)](_0x10cf32(0x1da)),(_0x26e9dd=this[_0x10cf32(0x1bf)])==null||_0x26e9dd['dispose']();}[_0x1c78e4(0x1c4)](_0x475ce6){const _0x14355d=_0x1c78e4;if([_0x14355d(0x13b),_0x14355d(0x1da),'offline'][_0x14355d(0x198)](this[_0x14355d(0x1a7)])||!_0x475ce6[_0x14355d(0x1d9)][_0x14355d(0x1a9)]||_0x475ce6['data']['presenter']===this['_collabSession']['getMemberID']())return;this[_0x14355d(0x1a7)]==='idle'&&this[_0x14355d(0x1a2)]();const _0x3fa1a2=_0x475ce6[_0x14355d(0x1d9)][_0x14355d(0x17e)];Object[_0x14355d(0x173)](_0x3fa1a2)[_0x14355d(0x13f)](_0x3cf3a4=>{const _0x4b21ad=_0x14355d;this[_0x4b21ad(0x14c)][_0x4b21ad(0x145)](_0x3cf3a4['id'],_0x3cf3a4[_0x4b21ad(0x1ab)]?JSON[_0x4b21ad(0x167)](_0x3cf3a4[_0x4b21ad(0x1ab)]):null,{'fromCollab':!0x0});});}[_0x1c78e4(0x13a)](){const _0x21536c=_0x1c78e4;var _0x507040;this[_0x21536c(0x1e2)][_0x21536c(0x1b1)](_0x21536c(0x15b)),(_0x507040=this[_0x21536c(0x1bf)])==null||_0x507040['dispose']();}['_handleOnline'](){const _0x10188e=_0x1c78e4;this[_0x10188e(0x1e2)][_0x10188e(0x1b1)](_0x10188e(0x141)),this[_0x10188e(0x196)]();}};N=Y([_(0x2,_0x213343),_(0x3,_0x1a6954(L)),_(0x4,_0xf26fa0)],N);function Le(){const _0x391895=_0x1c78e4,_0x4a5b8e=_0x12bce2(S),_0xc55fef=_0x12bce2(_0x5969d9),_0x3a1c98=_0x3246f2(()=>_0xc55fef['getCurrentTypeOfUnit$'](_0x8c38dc[_0x391895(0x1b3)]),void 0x0,!0x1,[]),[_0x75fe52,_0x49d1b9]=_0x3ec4cb(null),[_0x393fbf,_0x5d5101]=_0x3ec4cb(c[_0x391895(0x152)]),_0x4f2d2b=_0x1e6b39(null);return _0x8b76d1(()=>(_0x3a1c98&&_0x4a5b8e[_0x391895(0x192)](_0x3a1c98[_0x391895(0x1be)]())['then'](_0x24a1fe=>{const _0x409186=_0x391895;_0x49d1b9(_0x24a1fe),_0x4f2d2b[_0x409186(0x18d)]=_0x24a1fe[_0x409186(0x1b5)][_0x409186(0x1a0)](_0x48c9da=>{_0x5d5101(_0x48c9da);});}),()=>{const _0x4045de=_0x391895;var _0x179886;(_0x179886=_0x4f2d2b[_0x4045de(0x18d)])==null||_0x179886['unsubscribe'](),_0x4f2d2b[_0x4045de(0x18d)]=null;}),[_0x3a1c98,_0x4a5b8e]),_0x75fe52?_0x1c423a(_0x4e3f46,{'align':_0x391895(0x1d5),'disabled':_0x393fbf===c[_0x391895(0x16a)],'className':_0x391895(0x16b),'overlay':_0x1c423a(Re,{'status':_0x393fbf,'coordinator':_0x75fe52}),'children':_0x1c423a(_0x391895(0x19c),{'className':_0x25885e(_0x391895(0x18b),{'univer-cursor-not-allowed':_0x393fbf===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x393fbf!==c[_0x391895(0x16a)]}),'type':_0x391895(0x19c),'children':_0x1c423a(W,{'className':_0x391895(0x1cf)})})}):null;}function Re(_0x154153){const _0x3a5a38=_0x1c78e4,{status:_0x32dde6,coordinator:_0x34d907}=_0x154153;switch(_0x32dde6){case c[_0x3a5a38(0x152)]:return _0x1c423a($e,{'coordinator':_0x34d907});case c[_0x3a5a38(0x1ae)]:return _0x1c423a(xe,{'coordinator':_0x34d907});case c[_0x3a5a38(0x17a)]:return _0x1c423a(Pe,{'coordinator':_0x34d907});case c[_0x3a5a38(0x16a)]:return _0x1c423a(Te,{});case c['PRESENTING']:return _0x1c423a(Ae,{'coordinator':_0x34d907});default:return null;}}function $e(_0x24e4e4){const _0x556cce=_0x1c78e4,{coordinator:_0x379b04}=_0x24e4e4;return _0x5c6e44(_0x2cc6e1,{'children':[_0x1c423a('div',{'className':_0x556cce(0x189),'children':_0x556cce(0x158)}),_0x1c423a(_0x595499,{'onClick':()=>_0x379b04[_0x556cce(0x1e5)](),'children':_0x556cce(0x1e4)})]});}function xe(_0x2b5853){const _0x532224=_0x1c78e4,{coordinator:_0x4024f0}=_0x2b5853;return _0x5c6e44(_0x2cc6e1,{'children':[_0x1c423a(_0x532224(0x18f),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x532224(0x1aa)}),_0x1c423a(_0x595499,{'onClick':()=>_0x4024f0['stopFollowing'](),'children':_0x532224(0x1cc)})]});}function Pe(_0x13bb1b){const _0x168073=_0x1c78e4,{coordinator:_0x2702bc}=_0x13bb1b;return _0x5c6e44(_0x2cc6e1,{'children':[_0x1c423a(_0x168073(0x18f),{'className':_0x168073(0x189),'children':_0x168073(0x142)}),_0x1c423a(_0x595499,{'variant':_0x168073(0x163),'onClick':()=>_0x2702bc[_0x168073(0x14a)](),'children':_0x168073(0x1d4)})]});}function Ae(_0xcb17c6){const _0x4507c9=_0x1c78e4,{coordinator:_0x5b1cea}=_0xcb17c6;return _0x5c6e44(_0x2cc6e1,{'children':[_0x1c423a(_0x4507c9(0x18f),{'className':_0x4507c9(0x189),'children':_0x4507c9(0x1c8)}),_0x1c423a(_0x595499,{'variant':_0x4507c9(0x1cd),'onClick':()=>_0x5b1cea[_0x4507c9(0x161)](),'children':'Stop\x20presenting'})]});}function Te(){const _0x214012=_0x1c78e4;return _0x1c423a(_0x2cc6e1,{'children':_0x214012(0x159)});}var Fe=Object[_0x1c78e4(0x162)],He=(_0x2ebc94,_0x442f7f,_0x1c1963,_0xd3cf2f)=>{for(var _0x3d1d6a=_0xd3cf2f>0x1?void 0x0:_0xd3cf2f?Fe(_0x442f7f,_0x1c1963):_0x442f7f,_0x4b8eca=_0x2ebc94['length']-0x1,_0x276d55;_0x4b8eca>=0x0;_0x4b8eca--)(_0x276d55=_0x2ebc94[_0x4b8eca])&&(_0x3d1d6a=_0x276d55(_0x3d1d6a)||_0x3d1d6a);return _0x3d1d6a;},A=(_0x17c2fd,_0x3e797c)=>(_0x4baab4,_0x339145)=>_0x3e797c(_0x4baab4,_0x339145,_0x17c2fd);function _0x2bfa(){const _0x370629=['idle','You\x27re\x20not\x20following\x20the\x20presenter','defineProperty','url(#$1','executeCommand','OPERATION','disposeWithMe','getMemberID','onCommandExecuted','startFollowing','_collabSession','_commandService','207496ZURbAi','random','substring','displayName','pipe','IDLE','getStatus','UniverIcon','shouldShareOperation','LiveShareIcon','17259wDVNeA','Present\x20this\x20document','You\x27are\x20offline.','1285531LBdasw','offline','event$','type','LIVESHARE_NEW_HOST','_liveShareService','idSuffix','stopPresenting','getOwnPropertyDescriptor','text','createInstance','trim','unitId','parse','_injector','reverse','OFFLINE','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','6464536HkpCgx','LIVESHARE_OPERATION','currentColor','pluginName','getConfig','complete','has','values','_beIdle','_startPresenting','send','replace','live-share.config','xlink:href','NOT_FOLLOWING','_entities','add','requireSession','operations','ONLINE','svg','_unitID','override','use','assign','sessionStatus$','getTypeOfUnitDisposed$','registerSharedOperation','_univerInstanceService','univer-mb-3\x20univer-w-full\x20univer-text-sm','getTypeOfUnitAdded$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','following','current','onStarting','div','onRendered','tag','getLiveShareCoordinator','mask','clear','length','_fetchOperations','none','includes','_config','UNIVER_LIVE_SHARE_PLUGIN','_mountLiveShare','button','get','5kxPXWq','path','subscribe','stringify','_startFollowing','LIVESHARE_REQUEST_HOST','dispose$','_sharedOperations','asObservable','_status','15127407MCEYcO','presenter','You\x27re\x20following\x20the\x20presenter','params','find','attrs','FOLLOWING','symbol','_stopFollowing','next','_uiPartsService','UNIVER_SHEET','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$','_init','_startLiveShareCoordinator','colorChannel1','getInitialStates','delete','from','map','fill','getUnitId','_commandDisposable','defs','HEADER_MENU','2114950eozlqC','children','_handleOperation','NEW_CHANGESETS','_handleNewChangeSets','LIVESHARE_FETCH_OPERATIONS','You\x27re\x20presenting\x20the\x20document','LIVESHARE_TERMINATE','0\x200\x2017\x2017','http://www.w3.org/2000/svg','Stop\x20following','default','_configService','univer-size-4','stopFollowing','PRESENTING','1427760BDiPRp','dispose','Start\x20following','end','_stopPresenting','UNIVER_UNKNOWN','init','data','not-following','registerInitialStateReporter','string','273lqRkfB','sheet','214Mzqvwm','1em','defIds','_status$','_handleTerminate','Start','tryStartPresenting','_collabSessionService','SAME_OPERATION_SHARE_INTERVAL','_handleOffline','presenting','_presenter','entries','getValue','forEach','_reporters'];_0x2bfa=function(){return _0x370629;};return _0x2bfa();}let m=class extends _0x12154a{constructor(_0x50877c,_0x30f152){const _0x1a2274=_0x1c78e4;super(),this['_injector']=_0x50877c,this['_uiPartsService']=_0x30f152,this[_0x1a2274(0x19b)]();}[_0x1c78e4(0x19b)](){const _0x58be3b=_0x1c78e4;this['disposeWithMe'](this[_0x58be3b(0x1b2)]['registerComponent'](_0x4a91ef[_0x58be3b(0x1c1)],()=>_0x4d7dcf(Le,this['_injector'])));}};m=He([A(0x0,_0x1a6954(_0xdf7c04)),A(0x1,_0x19d4b0)],m);const ye=_0x1c78e4(0x178),T={};var Ue=Object[_0x1c78e4(0x162)],Ve=(_0x48481b,_0x1005d2,_0x4429fc,_0x301b1b)=>{for(var _0x40aa05=_0x301b1b>0x1?void 0x0:_0x301b1b?Ue(_0x1005d2,_0x4429fc):_0x1005d2,_0x5a9b64=_0x48481b['length']-0x1,_0x3028e2;_0x5a9b64>=0x0;_0x5a9b64--)(_0x3028e2=_0x48481b[_0x5a9b64])&&(_0x40aa05=_0x3028e2(_0x40aa05)||_0x40aa05);return _0x40aa05;},je=(_0x3d3d2b,_0x48bdc5)=>(_0x580a2e,_0x562905)=>_0x48bdc5(_0x580a2e,_0x562905,_0x3d3d2b);let I=class extends _0x12154a{constructor(_0x2845db){const _0x3d9eb2=_0x1c78e4;super(),this['_liveShareService']=_0x2845db,this[_0x3d9eb2(0x1b6)]();}[_0x1c78e4(0x1b6)](){const _0x325a55=_0x1c78e4;[_0x2fa9e7['id'],_0x38d67b['id'],_0x35566a['id']][_0x325a55(0x13f)](_0x37a2fc=>{const _0x5cf9f8=_0x325a55;this[_0x5cf9f8(0x147)](this['_liveShareService'][_0x5cf9f8(0x187)](_0x37a2fc));});}};I=Ve([je(0x0,_0x1a6954(L))],I);var Me=Object[_0x1c78e4(0x143)],ke=Object[_0x1c78e4(0x162)],Ge=(_0x15d15b,_0x219cce,_0x1a936c)=>_0x219cce in _0x15d15b?Me(_0x15d15b,_0x219cce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a936c}):_0x15d15b[_0x219cce]=_0x1a936c,We=(_0x592f3b,_0x12a3ce,_0x477efc,_0x38c3e7)=>{const _0x46c106=_0x1c78e4;for(var _0x36cafc=_0x38c3e7>0x1?void 0x0:_0x38c3e7?ke(_0x12a3ce,_0x477efc):_0x12a3ce,_0x57fef8=_0x592f3b[_0x46c106(0x195)]-0x1,_0x344ce0;_0x57fef8>=0x0;_0x57fef8--)(_0x344ce0=_0x592f3b[_0x57fef8])&&(_0x36cafc=_0x344ce0(_0x36cafc)||_0x36cafc);return _0x36cafc;},F=(_0x474f80,_0x3bb347)=>(_0x366c82,_0x38ecff)=>_0x3bb347(_0x366c82,_0x38ecff,_0x474f80),B=(_0x3f08d2,_0x4c24b8,_0x39b0ea)=>Ge(_0x3f08d2,typeof _0x4c24b8!=_0x1c78e4(0x1af)?_0x4c24b8+'':_0x4c24b8,_0x39b0ea);const Ye=_0x1c78e4(0x19a);let b=class extends _0x32fdda{constructor(_0xe8b187=T,_0x3ff09a,_0x158bc1){const _0x384b07=_0x1c78e4;super(),this[_0x384b07(0x199)]=_0xe8b187,this['_injector']=_0x3ff09a,this['_configService']=_0x158bc1;const {..._0x54217b}=_0x50f219({},T,this[_0x384b07(0x199)]);this[_0x384b07(0x1ce)]['setConfig'](ye,_0x54217b);}[_0x1c78e4(0x18e)](){const _0x57b16d=_0x1c78e4;_0x236b83(this[_0x57b16d(0x168)],_0x4faafe([[L],[S],[I],[m]],this[_0x57b16d(0x199)][_0x57b16d(0x182)])),_0x403cf0(this['_injector'],[[I]]);}[_0x1c78e4(0x190)](){const _0x4e069f=_0x1c78e4;_0x403cf0(this[_0x4e069f(0x168)],[[m]]);}};B(b,'type',_0x8c38dc[_0x1c78e4(0x1d7)]),B(b,_0x1c78e4(0x16f),Ye),b=We([_0x579b4c(_0x22ac1e),F(0x1,_0x1a6954(_0xdf7c04)),F(0x2,_0x213343)],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 _0x69f19a=_0x23b0;(function(_0x449052,_0x1cafcc){const _0x2a83a2=_0x23b0,_0x334225=_0x449052();while(!![]){try{const _0x1c7436=-parseInt(_0x2a83a2(0x110))/0x1+parseInt(_0x2a83a2(0x146))/0x2+-parseInt(_0x2a83a2(0xe7))/0x3*(parseInt(_0x2a83a2(0x114))/0x4)+parseInt(_0x2a83a2(0x11c))/0x5*(-parseInt(_0x2a83a2(0x121))/0x6)+parseInt(_0x2a83a2(0x134))/0x7*(parseInt(_0x2a83a2(0x11e))/0x8)+-parseInt(_0x2a83a2(0x106))/0x9*(-parseInt(_0x2a83a2(0x185))/0xa)+parseInt(_0x2a83a2(0x11f))/0xb;if(_0x1c7436===_0x1cafcc)break;else _0x334225['push'](_0x334225['shift']());}catch(_0x15e995){_0x334225['push'](_0x334225['shift']());}}}(_0x746c,0x59010));var J=Object[_0x69f19a(0xf3)],K=(_0x37370e,_0x211117,_0x432caf)=>_0x211117 in _0x37370e?J(_0x37370e,_0x211117,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x432caf}):_0x37370e[_0x211117]=_0x432caf,u=(_0x1890ae,_0x20cc9a,_0x243119)=>K(_0x1890ae,typeof _0x20cc9a!=_0x69f19a(0x139)?_0x20cc9a+'':_0x20cc9a,_0x243119);import{Disposable as _0x383352,toDisposable as _0x45a55e,IUniverInstanceService as _0x3bbb47,Inject as _0x1c9f93,Injector as _0x8f574c,IConfigService as _0x22f532,ICommandService as _0xc18e24,RxDisposable as _0x154636,UniverInstanceType as _0xa40585,DisposableCollection as _0x1cb6a6,CommandType as _0x2f2c29,DependentOn as _0x46d4a0,Plugin as _0x1673f7,merge as _0x5cc7d7,registerDependencies as _0x428d1a,mergeOverrideWithDependencies as _0x4279a3,touchDependencies as _0x8fcf17}from'@univerjs/core';import{useDependency as _0x4d80ad,useObservable as _0x588bad,IUIPartsService as _0x34783d,BuiltInUIPart as _0x3b52c9,connectInjector as _0x194ca5}from'@univerjs/ui';import{jsx as _0x2cb184,jsxs as _0x4b7b29,Fragment as _0x56b759}from'react/jsx-runtime';import{Dropdown as _0x64bd56,clsx as _0x3ff979,Button as _0x564805}from'@univerjs/design';import{useRef as _0x5e92a4,createElement as _0x10ac3f,forwardRef as _0x45ccb1,useState as _0x4b851f,useEffect as _0x6285d1}from'react';import{CollaborationEvent as _0x2c7ed0,parseProtocolChangeset as _0x599238}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x38a89b,SessionStatus as _0x460b5f,UniverCollaborationClientPlugin as _0x217f3d}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x4a0d5c,SetWorksheetActiveOperation as _0x575e4f}from'@univerjs/sheets';import{BehaviorSubject as _0x465720,Subject as _0x9da62}from'rxjs';import{takeUntil as _0x86ec3b,throttleTime as _0x57236f}from'rxjs/operators';import{SetZoomRatioOperation as _0x2a0d2e,SetScrollOperation as _0x48fa06}from'@univerjs/sheets-ui';function k({ref:_0x5dbed0,..._0x2aed1c}){const _0x478926=_0x69f19a,{icon:_0x16c2e2,id:_0x4d43c0,className:_0x65fb83,extend:_0x36d604,..._0x152a86}=_0x2aed1c,_0x187461=(_0x478926(0xee)+_0x4d43c0+'\x20'+(_0x65fb83||''))[_0x478926(0x105)](),_0xc5431d=_0x5e92a4('_'+Oe());return G(_0x16c2e2,''+_0x4d43c0,{'defIds':_0x16c2e2['defIds'],'idSuffix':_0xc5431d[_0x478926(0x13c)]},{'ref':_0x5dbed0,'className':_0x187461,..._0x152a86},_0x36d604);}function G(_0x26c399,_0x3e3ddb,_0x56d54b,_0x5c35cb,_0x3529fb){const _0x2cbd9b=_0x69f19a;return _0x10ac3f(_0x26c399[_0x2cbd9b(0x133)],{'key':_0x3e3ddb,...be(_0x26c399,_0x56d54b,_0x3529fb),..._0x5c35cb},(Ee(_0x26c399,_0x56d54b)[_0x2cbd9b(0xf8)]||[])[_0x2cbd9b(0x149)]((_0x1e2713,_0x4a624a)=>G(_0x1e2713,_0x3e3ddb+'-'+_0x26c399[_0x2cbd9b(0x133)]+'-'+_0x4a624a,_0x56d54b,void 0x0,_0x3529fb)));}function be(_0x52602c,_0xce0656,_0x360095){const _0x3db388=_0x69f19a,_0x26b137={..._0x52602c[_0x3db388(0x126)]};_0x360095!=null&&_0x360095['colorChannel1']&&_0x26b137[_0x3db388(0x136)]===_0x3db388(0x18d)&&(_0x26b137[_0x3db388(0x136)]=_0x360095['colorChannel1']),_0x52602c[_0x3db388(0x133)]===_0x3db388(0x14c)&&_0x26b137['id']&&(_0x26b137['id']=_0x26b137['id']+_0xce0656[_0x3db388(0x112)]),Object['entries'](_0x26b137)[_0x3db388(0x12f)](([_0x2bf2b8,_0x84b42a])=>{const _0x4c6c42=_0x3db388;_0x2bf2b8===_0x4c6c42(0x14c)&&typeof _0x84b42a==_0x4c6c42(0x160)&&(_0x26b137[_0x2bf2b8]=_0x84b42a['replace'](/url\(#(.*)\)/,_0x4c6c42(0xfc)+_0xce0656[_0x4c6c42(0x112)]+')'));});const {defIds:_0x24a483}=_0xce0656;return!_0x24a483||_0x24a483[_0x3db388(0xfd)]===0x0||(_0x52602c['tag']===_0x3db388(0x10b)&&_0x26b137[_0x3db388(0x172)]&&(_0x26b137[_0x3db388(0x172)]=_0x26b137[_0x3db388(0x172)]+_0xce0656['idSuffix']),Object[_0x3db388(0x11a)](_0x26b137)[_0x3db388(0x12f)](([_0x343345,_0x2d48e0])=>{const _0x1ba7b1=_0x3db388;typeof _0x2d48e0==_0x1ba7b1(0x160)&&(_0x26b137[_0x343345]=_0x2d48e0[_0x1ba7b1(0x118)](/url\(#(.*)\)/,'url(#$1'+_0xce0656['idSuffix']+')'));})),_0x26b137;}function Ee(_0x157a05,_0x53619d){const _0x57333a=_0x69f19a;var _0x4c7cb4;const {defIds:_0x181577}=_0x53619d;return!_0x181577||_0x181577[_0x57333a(0xfd)]===0x0?_0x157a05:_0x157a05[_0x57333a(0x133)]===_0x57333a(0xf9)&&((_0x4c7cb4=_0x157a05[_0x57333a(0xf8)])!=null&&_0x4c7cb4[_0x57333a(0xfd)])?{..._0x157a05,'children':_0x157a05[_0x57333a(0xf8)][_0x57333a(0x149)](_0x1a75e1=>typeof _0x1a75e1[_0x57333a(0x126)]['id']==_0x57333a(0x160)&&_0x181577&&_0x181577['includes'](_0x1a75e1[_0x57333a(0x126)]['id'])?{..._0x1a75e1,'attrs':{..._0x1a75e1[_0x57333a(0x126)],'id':_0x1a75e1['attrs']['id']+_0x53619d['idSuffix']}}:_0x1a75e1)}:_0x157a05;}function _0x23b0(_0xc3319e,_0x38d039){_0xc3319e=_0xc3319e-0xe6;const _0x746c81=_0x746c();let _0x23b0b1=_0x746c81[_0xc3319e];return _0x23b0b1;}function Oe(){const _0x45400f=_0x69f19a;return Math['random']()[_0x45400f(0x174)](0x24)[_0x45400f(0x14f)](0x2,0x8);}k[_0x69f19a(0xff)]=_0x69f19a(0x14d);const we={'tag':_0x69f19a(0x16b),'attrs':{'xmlns':_0x69f19a(0xfa),'fill':_0x69f19a(0xf2),'viewBox':_0x69f19a(0x186),'width':_0x69f19a(0xe6),'height':_0x69f19a(0xe6)},'children':[{'tag':_0x69f19a(0x14b),'attrs':{'fill':'currentColor','d':_0x69f19a(0x188)}},{'tag':_0x69f19a(0x14b),'attrs':{'fill':_0x69f19a(0x187),'d':_0x69f19a(0x156),'fillRule':_0x69f19a(0x10d),'clipRule':_0x69f19a(0x10d)}}]},W=_0x45ccb1(function(_0x567e61,_0x15f6b){const _0x3141c9=_0x69f19a;return _0x10ac3f(k,Object[_0x3141c9(0x179)]({},_0x567e61,{'id':'live-share-icon','ref':_0x15f6b,'icon':we}));});W[_0x69f19a(0xff)]='LiveShareIcon';class L extends _0x383352{constructor(){const _0x4485bd=_0x69f19a;super(...arguments),u(this,_0x4485bd(0x16c),new Set()),u(this,_0x4485bd(0x171),new Set());}[_0x69f19a(0x162)](_0x29ecd7){const _0x27b05e=_0x69f19a;return this[_0x27b05e(0x16c)]['add'](_0x29ecd7),_0x45a55e(()=>this[_0x27b05e(0x16c)][_0x27b05e(0x16f)](_0x29ecd7));}[_0x69f19a(0x119)](_0x1b5b75){const _0x38b3c5=_0x69f19a;return this['_reporters']['add'](_0x1b5b75),_0x45a55e(()=>this[_0x38b3c5(0x171)][_0x38b3c5(0x16f)](_0x1b5b75));}[_0x69f19a(0x132)](_0x1ce5fc){const _0x1639fb=_0x69f19a;return this[_0x1639fb(0x16c)]['has'](_0x1ce5fc);}[_0x69f19a(0xec)](_0x3c51a6){const _0x51f8d2=_0x69f19a;return Array['from'](this[_0x51f8d2(0x171)])[_0x51f8d2(0x149)](_0x2ca8aa=>_0x2ca8aa(_0x3c51a6));}}var Ne=Object[_0x69f19a(0x165)],Y=(_0x2670b7,_0x15a58d,_0x803b22,_0x56e548)=>{const _0x3b0ee0=_0x69f19a;for(var _0x523864=_0x56e548>0x1?void 0x0:_0x56e548?Ne(_0x15a58d,_0x803b22):_0x15a58d,_0x3805a0=_0x2670b7[_0x3b0ee0(0xfd)]-0x1,_0x51e8d3;_0x3805a0>=0x0;_0x3805a0--)(_0x51e8d3=_0x2670b7[_0x3805a0])&&(_0x523864=_0x51e8d3(_0x523864)||_0x523864);return _0x523864;},_=(_0x2ae100,_0x54a0f6)=>(_0x57d4fe,_0x403f98)=>_0x54a0f6(_0x57d4fe,_0x403f98,_0x2ae100);let S=class extends _0x154636{constructor(_0x24807a,_0x3a9606,_0x1911dd){const _0x5615f2=_0x69f19a;super(),u(this,'_entities',new Map()),(this[_0x5615f2(0xea)]=_0x24807a,this[_0x5615f2(0x18e)]=_0x3a9606,this[_0x5615f2(0x17d)]=_0x1911dd,this['_init']());}async[_0x69f19a(0x17b)](_0x1e6c51){const _0x16fdbc=_0x69f19a;return this['_entities'][_0x16fdbc(0x13d)](_0x1e6c51)||await this[_0x16fdbc(0x163)](_0x1e6c51),this['_entities'][_0x16fdbc(0x123)](_0x1e6c51);}[_0x69f19a(0x152)](_0x214865){const _0xcc914a=_0x69f19a;var _0x396acc;return(_0x396acc=this[_0xcc914a(0xfe)][_0xcc914a(0x123)](_0x214865))!=null?_0x396acc:null;}[_0x69f19a(0x167)](){const _0x27ff5b=_0x69f19a;this[_0x27ff5b(0xea)][_0x27ff5b(0x18c)](_0xa40585[_0x27ff5b(0x13b)])['pipe'](_0x86ec3b(this[_0x27ff5b(0x129)]))[_0x27ff5b(0x100)](async _0x93accb=>{const _0x398a06=_0x27ff5b,_0x2e0bb9=_0x93accb[_0x398a06(0x137)]();this[_0x398a06(0xfe)]['has'](_0x2e0bb9)||this['_startLiveShareCoordinator'](_0x2e0bb9);}),this[_0x27ff5b(0xea)][_0x27ff5b(0x16a)](_0xa40585[_0x27ff5b(0x13b)])[_0x27ff5b(0x115)](_0x86ec3b(this[_0x27ff5b(0x129)]))['subscribe'](_0x88a091=>{const _0x104e7a=_0x27ff5b,_0x2ef3a6=_0x88a091[_0x104e7a(0x137)](),_0x3f744d=this[_0x104e7a(0xfe)][_0x104e7a(0x123)](_0x2ef3a6);_0x3f744d==null||_0x3f744d[_0x104e7a(0x111)]();});}async[_0x69f19a(0x163)](_0x5538a0){const _0xbfd342=_0x69f19a,_0x5edb23=await this[_0xbfd342(0x17d)][_0xbfd342(0x117)](_0x5538a0),_0x4422f8=this['_injector'][_0xbfd342(0xef)](N,_0x5538a0,_0x5edb23);return _0x4422f8[_0xbfd342(0x154)](),this[_0xbfd342(0xfe)][_0xbfd342(0x15d)](_0x5538a0,_0x4422f8),_0x4422f8;}};S=Y([_(0x0,_0x3bbb47),_(0x1,_0x1c9f93(_0x8f574c)),_(0x2,_0x1c9f93(_0x38a89b))],S);var c=(_0x54f463=>(_0x54f463['OFFLINE']='offline',_0x54f463[_0x69f19a(0xf5)]=_0x69f19a(0x124),_0x54f463[_0x69f19a(0x159)]=_0x69f19a(0x10f),_0x54f463[_0x69f19a(0x10e)]=_0x69f19a(0xf0),_0x54f463[_0x69f19a(0xe9)]=_0x69f19a(0xed),_0x54f463))(c||{});const Ce=_0x69f19a(0x166),De=0xc8;let N=class extends _0x154636{constructor(_0x341ec5,_0x1d3593,_0x440cdd,_0x4b26f7,_0x2fe2b8){const _0x5229c8=_0x69f19a;super(),u(this,_0x5229c8(0x189),new _0x465720(_0x5229c8(0x124))),u(this,'status$',this[_0x5229c8(0x189)][_0x5229c8(0x15e)]()),u(this,_0x5229c8(0x167),!0x1),u(this,'_commandDisposable',null),u(this,'_presenter',null),(this['_unitID']=_0x341ec5,this[_0x5229c8(0x103)]=_0x1d3593,this['_configService']=_0x440cdd,this['_liveShareService']=_0x4b26f7,this[_0x5229c8(0x128)]=_0x2fe2b8);}get['_status'](){const _0x2b6115=_0x69f19a;return this[_0x2b6115(0x189)][_0x2b6115(0x155)]();}[_0x69f19a(0x111)](){const _0x311cb5=_0x69f19a;var _0x1cec86;(_0x1cec86=this['_commandDisposable'])==null||_0x1cec86[_0x311cb5(0x111)](),this[_0x311cb5(0x189)][_0x311cb5(0x18f)]('idle'),this[_0x311cb5(0x189)][_0x311cb5(0x17e)]();}[_0x69f19a(0x16e)](){const _0x397a22=_0x69f19a;return this[_0x397a22(0x150)];}[_0x69f19a(0x154)](){const _0x250202=_0x69f19a;this[_0x250202(0x167)]||(this[_0x250202(0x167)]=!0x0,this[_0x250202(0x103)][_0x250202(0xf7)][_0x250202(0x115)](_0x86ec3b(this[_0x250202(0x129)]))[_0x250202(0x100)](_0x4e1e72=>{const _0x1b1b8e=_0x250202;switch(_0x4e1e72){case _0x460b5f[_0x1b1b8e(0x182)]:this[_0x1b1b8e(0x113)]();break;case _0x460b5f[_0x1b1b8e(0x12b)]:this[_0x1b1b8e(0x161)]();break;}}),this[_0x250202(0x103)]['event$'][_0x250202(0x115)](_0x86ec3b(this['dispose$']))[_0x250202(0x100)](_0x4f1f9e=>{const _0x1ac5ca=_0x250202,{eventID:_0x26d70a}=_0x4f1f9e;switch(_0x26d70a){case _0x2c7ed0[_0x1ac5ca(0x125)]:this[_0x1ac5ca(0x158)](_0x4f1f9e);break;case _0x2c7ed0[_0x1ac5ca(0x168)]:this[_0x1ac5ca(0x190)](_0x4f1f9e);break;case _0x2c7ed0['LIVESHARE_TERMINATE']:this[_0x1ac5ca(0x15b)]();break;case _0x2c7ed0['NEW_CHANGESETS']:this[_0x1ac5ca(0x109)](_0x4f1f9e);break;}}));}['tryStartPresenting'](){const _0x2db2fe=_0x69f19a;this[_0x2db2fe(0x103)][_0x2db2fe(0x12a)]({'eventID':_0x2c7ed0[_0x2db2fe(0x12e)],'data':{'unitID':this[_0x2db2fe(0x173)],'userID':this[_0x2db2fe(0x103)][_0x2db2fe(0x18a)]()}},this[_0x2db2fe(0x173)]);}[_0x69f19a(0x13e)](){const _0xc4888b=_0x69f19a;this['_status']===_0xc4888b(0xed)&&(this['_status$']['next'](_0xc4888b(0x124)),this[_0xc4888b(0x103)][_0xc4888b(0x12a)]({'eventID':_0x2c7ed0['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0xc4888b(0x173)]}},this['_unitID']));}[_0x69f19a(0x102)](){const _0x221571=_0x69f19a;this[_0x221571(0x150)]===_0x221571(0xf0)&&(this[_0x221571(0x189)]['next'](_0x221571(0x10f)),this[_0x221571(0x147)]());}[_0x69f19a(0x18b)](){const _0x1118a0=_0x69f19a;this[_0x1118a0(0x150)]===_0x1118a0(0x10f)&&this['_stopFollowing']();}['_handleNewHost'](_0xcd4112){const _0x469a93=_0x69f19a,{presenter:_0x3ae6ff}=_0xcd4112[_0x469a93(0x12d)],_0x380cfc=this['_collabSession'][_0x469a93(0x18a)]();this[_0x469a93(0x170)]=_0x3ae6ff,_0x3ae6ff===_0x380cfc?(this['_stopFollowing'](),this[_0x469a93(0x148)]()):this[_0x469a93(0x150)]!==_0x469a93(0xf0)&&(this[_0x469a93(0x127)](),this[_0x469a93(0x147)]());}[_0x69f19a(0x17a)](){const _0x3c807e=_0x69f19a,_0x126b03={'eventID':_0x2c7ed0[_0x3c807e(0x138)]};this[_0x3c807e(0x103)][_0x3c807e(0x12a)](_0x126b03,this[_0x3c807e(0x173)]);}[_0x69f19a(0x15b)](){const _0x26933a=_0x69f19a;this[_0x26933a(0x170)]=null,this[_0x26933a(0x150)]!=='presenting'&&this['_beIdle']();}[_0x69f19a(0x109)](_0x1e8a8b){const _0x1f8d96=_0x69f19a;if(this[_0x1f8d96(0x150)]===_0x1f8d96(0x10f)&&this[_0x1f8d96(0x170)]===_0x1e8a8b[_0x1f8d96(0x12d)][_0x1f8d96(0x122)]){const _0x22eaa0=_0x599238(_0x1e8a8b['data'])[_0x1f8d96(0x15a)][_0x1f8d96(0x15f)]()[_0x1f8d96(0x180)](_0x3966c2=>_0x3966c2['id']===_0x4a0d5c['id']);if(_0x22eaa0){const _0x12e1e0=_0x22eaa0[_0x1f8d96(0x142)][_0x1f8d96(0x15c)],_0x1eae15=_0x22eaa0['params']['sheet']['id'];setTimeout(()=>{const _0x936fb7=_0x1f8d96;this[_0x936fb7(0x128)][_0x936fb7(0x16d)](_0x575e4f['id'],{'unitId':_0x12e1e0,'subUnitId':_0x1eae15},{'fromCollab':!0x0});});}}}['_startPresenting'](){const _0x44b1f1=_0x69f19a;this[_0x44b1f1(0x189)][_0x44b1f1(0x18f)](_0x44b1f1(0xed));const _0x35a9ec=new Map(),_0x1e09fe=this[_0x44b1f1(0x178)]=new _0x1cb6a6();_0x1e09fe['add'](_0x45a55e(()=>{const _0x553352=_0x44b1f1;_0x35a9ec[_0x553352(0x12f)](_0x4f1b7a=>_0x4f1b7a['complete']()),_0x35a9ec[_0x553352(0x143)]();})),_0x1e09fe['add'](this['_commandService'][_0x44b1f1(0x157)](_0x3c7346=>{const _0x375533=_0x44b1f1;var _0x3768d5;if(_0x3c7346[_0x375533(0x177)]!==_0x2f2c29['OPERATION']||!this[_0x375533(0x183)][_0x375533(0x132)](_0x3c7346['id']))return;const {id:_0x2cd200}=_0x3c7346;let _0x112a7e;_0x35a9ec[_0x375533(0x13d)](_0x2cd200)?_0x112a7e=_0x35a9ec[_0x375533(0x123)](_0x2cd200):(_0x112a7e=new _0x9da62(),_0x35a9ec['set'](_0x2cd200,_0x112a7e),_0x112a7e[_0x375533(0x115)](_0x57236f((_0x3768d5=this[_0x375533(0x116)]['getConfig'](Ce))!=null?_0x3768d5:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4dc21d=>{const _0x63820a=_0x375533;this[_0x63820a(0x103)][_0x63820a(0x12a)]({'eventID':_0x2c7ed0['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x4dc21d['id']]:{'id':_0x4dc21d['id'],'params':JSON[_0x63820a(0x108)](_0x4dc21d['params'])}}}},this[_0x63820a(0x173)]);})),_0x112a7e[_0x375533(0x18f)](_0x3c7346);})),this[_0x44b1f1(0x183)][_0x44b1f1(0xec)](this[_0x44b1f1(0x173)])[_0x44b1f1(0x12f)](_0x613c55=>this['_collabSession']['send']({'eventID':_0x2c7ed0[_0x44b1f1(0x168)],'data':{'unitID':this['_unitID'],'operations':{[_0x613c55['id']]:{'id':_0x613c55['id'],'params':JSON[_0x44b1f1(0x108)](_0x613c55[_0x44b1f1(0x142)])}}}},this[_0x44b1f1(0x173)]));}[_0x69f19a(0x127)](){const _0x81878a=_0x69f19a;var _0x3cd21f;this[_0x81878a(0x189)][_0x81878a(0x18f)]('idle'),(_0x3cd21f=this[_0x81878a(0x178)])==null||_0x3cd21f[_0x81878a(0x111)](),this[_0x81878a(0x178)]=null;}[_0x69f19a(0x147)](){const _0x59a1b8=_0x69f19a;var _0x527abe;(_0x527abe=this[_0x59a1b8(0x178)])==null||_0x527abe[_0x59a1b8(0x111)](),this[_0x59a1b8(0x189)]['next'](_0x59a1b8(0x10f));}[_0x69f19a(0x151)](){const _0x19f473=_0x69f19a;var _0x4a1cba;this[_0x19f473(0x189)][_0x19f473(0x18f)](_0x19f473(0x124)),(_0x4a1cba=this[_0x19f473(0x178)])==null||_0x4a1cba[_0x19f473(0x111)](),this['_commandDisposable']=null;}[_0x69f19a(0x120)](){const _0x102561=_0x69f19a;var _0x597f46;this[_0x102561(0x189)][_0x102561(0x18f)](_0x102561(0xf0)),(_0x597f46=this[_0x102561(0x178)])==null||_0x597f46['dispose']();}['_handleOperation'](_0x4ede3c){const _0x542359=_0x69f19a;if(['presenting',_0x542359(0xf0),_0x542359(0x107)][_0x542359(0x14a)](this[_0x542359(0x150)])||!_0x4ede3c['data'][_0x542359(0x101)]||_0x4ede3c[_0x542359(0x12d)][_0x542359(0x101)]===this[_0x542359(0x103)]['getMemberID']())return;this[_0x542359(0x150)]==='idle'&&this[_0x542359(0x147)]();const _0x2f640a=_0x4ede3c['data'][_0x542359(0x10a)];Object[_0x542359(0x104)](_0x2f640a)[_0x542359(0x12f)](_0x34c251=>{const _0x4e3c5a=_0x542359;this[_0x4e3c5a(0x128)][_0x4e3c5a(0x16d)](_0x34c251['id'],_0x34c251[_0x4e3c5a(0x142)]?JSON[_0x4e3c5a(0x14e)](_0x34c251[_0x4e3c5a(0x142)]):null,{'fromCollab':!0x0});});}[_0x69f19a(0x113)](){const _0x4b638e=_0x69f19a;var _0xb30595;this['_status$'][_0x4b638e(0x18f)](_0x4b638e(0x107)),(_0xb30595=this['_commandDisposable'])==null||_0xb30595['dispose']();}['_handleOnline'](){const _0x1de9b2=_0x69f19a;this[_0x1de9b2(0x189)][_0x1de9b2(0x18f)](_0x1de9b2(0x124)),this[_0x1de9b2(0x17a)]();}};N=Y([_(0x2,_0x22f532),_(0x3,_0x1c9f93(L)),_(0x4,_0xc18e24)],N);function Le(){const _0x3602e1=_0x69f19a,_0x4e6fa7=_0x4d80ad(S),_0x262241=_0x4d80ad(_0x3bbb47),_0x45ff6b=_0x588bad(()=>_0x262241[_0x3602e1(0x10c)](_0xa40585[_0x3602e1(0x13b)]),void 0x0,!0x1,[]),[_0x448b13,_0x2d9f95]=_0x4b851f(null),[_0x17d430,_0x39edc6]=_0x4b851f(c[_0x3602e1(0xf5)]),_0x51422c=_0x5e92a4(null);return _0x6285d1(()=>(_0x45ff6b&&_0x4e6fa7[_0x3602e1(0x17b)](_0x45ff6b['getUnitId']())[_0x3602e1(0x153)](_0x246eca=>{const _0x5dd2fb=_0x3602e1;_0x2d9f95(_0x246eca),_0x51422c[_0x5dd2fb(0x13c)]=_0x246eca[_0x5dd2fb(0xf4)][_0x5dd2fb(0x100)](_0x53f525=>{_0x39edc6(_0x53f525);});}),()=>{const _0x21d4ba=_0x3602e1;var _0x2ba7ba;(_0x2ba7ba=_0x51422c['current'])==null||_0x2ba7ba[_0x21d4ba(0x131)](),_0x51422c['current']=null;}),[_0x45ff6b,_0x4e6fa7]),_0x448b13?_0x2cb184(_0x64bd56,{'align':_0x3602e1(0x12c),'disabled':_0x17d430===c[_0x3602e1(0x182)],'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':_0x2cb184(Re,{'status':_0x17d430,'coordinator':_0x448b13}),'children':_0x2cb184(_0x3602e1(0x175),{'className':_0x3ff979('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x17d430===c['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x17d430!==c['OFFLINE']}),'type':'button','children':_0x2cb184(W,{'className':_0x3602e1(0x144)})})}):null;}function _0x746c(){const _0x381357=['pipe','_configService','requireSession','replace','registerInitialStateReporter','entries','default','12455bWVBBs','onStarting','8NepRDZ','5161200FbOwAP','_stopFollowing','66HpdvSh','memberID','get','idle','LIVESHARE_NEW_HOST','attrs','_stopPresenting','_commandService','dispose$','send','ONLINE','end','data','LIVESHARE_REQUEST_HOST','forEach','Stop\x20following','unsubscribe','shouldShareOperation','tag','4136923bxMrrr','Stop\x20presenting','fill','getUnitId','LIVESHARE_FETCH_OPERATIONS','symbol','setConfig','UNIVER_SHEET','current','has','stopPresenting','_uiPartsService','text','You\x27re\x20not\x20following\x20the\x20presenter','params','clear','univer-size-4','You\x27re\x20presenting\x20the\x20document','313052HBMFpp','_startFollowing','_startPresenting','map','includes','path','mask','UniverIcon','parse','substring','_status','_beIdle','getLiveShareCoordinatorSync','then','init','getValue','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','onCommandExecuted','_handleNewHost','FOLLOWING','mutations','_handleTerminate','unitId','set','asObservable','reverse','string','_handleOnline','registerSharedOperation','_startLiveShareCoordinator','_config','getOwnPropertyDescriptor','SAME_OPERATION_SHARE_INTERVAL','_init','LIVESHARE_OPERATION','_mountLiveShare','getTypeOfUnitDisposed$','svg','_sharedOperations','executeCommand','getStatus','delete','_presenter','_reporters','xlink:href','_unitID','toString','button','disposeWithMe','type','_commandDisposable','assign','_fetchOperations','getLiveShareCoordinator','tryStartPresenting','_collabSessionService','complete','You\x27are\x20offline.','find','UNIVER_UNKNOWN','OFFLINE','_liveShareService','univer-mb-3\x20univer-w-full\x20univer-text-sm','40ClaFeF','0\x200\x2017\x2017','currentColor','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','_status$','getMemberID','stopFollowing','getTypeOfUnitAdded$','colorChannel1','_injector','next','_handleOperation','live-share.config','1em','2529KSMIwG','onRendered','PRESENTING','_univerInstanceService','div','getInitialStates','presenting','univerjs-icon\x20univerjs-icon-','createInstance','not-following','pluginName','none','defineProperty','status$','IDLE','HEADER_MENU','sessionStatus$','children','defs','http://www.w3.org/2000/svg','override','url(#$1','length','_entities','displayName','subscribe','presenter','startFollowing','_collabSession','values','trim','535932ANTIPc','offline','stringify','_handleNewChangeSets','operations','use','getCurrentTypeOfUnit$','evenodd','NOT_FOLLOWING','following','391075jpOdlr','dispose','idSuffix','_handleOffline','3188FiWyui'];_0x746c=function(){return _0x381357;};return _0x746c();}function Re(_0x23ca7c){const _0x53ffc1=_0x69f19a,{status:_0x7c0457,coordinator:_0x2a0828}=_0x23ca7c;switch(_0x7c0457){case c[_0x53ffc1(0xf5)]:return _0x2cb184($e,{'coordinator':_0x2a0828});case c[_0x53ffc1(0x159)]:return _0x2cb184(xe,{'coordinator':_0x2a0828});case c['NOT_FOLLOWING']:return _0x2cb184(Pe,{'coordinator':_0x2a0828});case c['OFFLINE']:return _0x2cb184(Te,{});case c[_0x53ffc1(0xe9)]:return _0x2cb184(Ae,{'coordinator':_0x2a0828});default:return null;}}function $e(_0x571cd6){const _0x590e9e=_0x69f19a,{coordinator:_0x44344b}=_0x571cd6;return _0x4b7b29(_0x56b759,{'children':[_0x2cb184(_0x590e9e(0xeb),{'className':_0x590e9e(0x184),'children':'Present\x20this\x20document'}),_0x2cb184(_0x564805,{'onClick':()=>_0x44344b[_0x590e9e(0x17c)](),'children':'Start'})]});}function xe(_0x48069e){const _0x347d34=_0x69f19a,{coordinator:_0x596743}=_0x48069e;return _0x4b7b29(_0x56b759,{'children':[_0x2cb184('div',{'className':_0x347d34(0x184),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x2cb184(_0x564805,{'onClick':()=>_0x596743['stopFollowing'](),'children':_0x347d34(0x130)})]});}function Pe(_0x5b15f8){const _0x142551=_0x69f19a,{coordinator:_0x33d5c6}=_0x5b15f8;return _0x4b7b29(_0x56b759,{'children':[_0x2cb184(_0x142551(0xeb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x142551(0x141)}),_0x2cb184(_0x564805,{'variant':_0x142551(0x140),'onClick':()=>_0x33d5c6[_0x142551(0x102)](),'children':'Start\x20following'})]});}function Ae(_0x5761ea){const _0x4f3d63=_0x69f19a,{coordinator:_0x2684bc}=_0x5761ea;return _0x4b7b29(_0x56b759,{'children':[_0x2cb184(_0x4f3d63(0xeb),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4f3d63(0x145)}),_0x2cb184(_0x564805,{'variant':_0x4f3d63(0x11b),'onClick':()=>_0x2684bc[_0x4f3d63(0x13e)](),'children':_0x4f3d63(0x135)})]});}function Te(){const _0x1ddb04=_0x69f19a;return _0x2cb184(_0x56b759,{'children':_0x1ddb04(0x17f)});}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x17f9fe,_0x273b91,_0x4640ec,_0x23ee29)=>{const _0x44a6fa=_0x69f19a;for(var _0x2ab8fe=_0x23ee29>0x1?void 0x0:_0x23ee29?Fe(_0x273b91,_0x4640ec):_0x273b91,_0x2dda7d=_0x17f9fe[_0x44a6fa(0xfd)]-0x1,_0x35ea7f;_0x2dda7d>=0x0;_0x2dda7d--)(_0x35ea7f=_0x17f9fe[_0x2dda7d])&&(_0x2ab8fe=_0x35ea7f(_0x2ab8fe)||_0x2ab8fe);return _0x2ab8fe;},A=(_0x1273f2,_0x2af210)=>(_0x1234b0,_0xf55a2a)=>_0x2af210(_0x1234b0,_0xf55a2a,_0x1273f2);let m=class extends _0x383352{constructor(_0xee9f9b,_0x119f6f){const _0x3b942e=_0x69f19a;super(),this['_injector']=_0xee9f9b,this[_0x3b942e(0x13f)]=_0x119f6f,this['_mountLiveShare']();}[_0x69f19a(0x169)](){const _0x45dc5b=_0x69f19a;this[_0x45dc5b(0x176)](this[_0x45dc5b(0x13f)]['registerComponent'](_0x3b52c9[_0x45dc5b(0xf6)],()=>_0x194ca5(Le,this['_injector'])));}};m=He([A(0x0,_0x1c9f93(_0x8f574c)),A(0x1,_0x34783d)],m);const ye=_0x69f19a(0x191),T={};var Ue=Object[_0x69f19a(0x165)],Ve=(_0x5e88a5,_0x3d6e0f,_0x31f320,_0x484b56)=>{for(var _0x3cb416=_0x484b56>0x1?void 0x0:_0x484b56?Ue(_0x3d6e0f,_0x31f320):_0x3d6e0f,_0x54aa22=_0x5e88a5['length']-0x1,_0x23092b;_0x54aa22>=0x0;_0x54aa22--)(_0x23092b=_0x5e88a5[_0x54aa22])&&(_0x3cb416=_0x23092b(_0x3cb416)||_0x3cb416);return _0x3cb416;},je=(_0x25fa89,_0x1fda57)=>(_0x4ebd21,_0x5d3c54)=>_0x1fda57(_0x4ebd21,_0x5d3c54,_0x25fa89);let I=class extends _0x383352{constructor(_0x8d6ace){const _0x18e9dd=_0x69f19a;super(),this[_0x18e9dd(0x183)]=_0x8d6ace,this[_0x18e9dd(0x167)]();}[_0x69f19a(0x167)](){const _0x326173=_0x69f19a;[_0x2a0d2e['id'],_0x48fa06['id'],_0x575e4f['id']][_0x326173(0x12f)](_0x13103b=>{const _0x464382=_0x326173;this[_0x464382(0x176)](this[_0x464382(0x183)]['registerSharedOperation'](_0x13103b));});}};I=Ve([je(0x0,_0x1c9f93(L))],I);var Me=Object[_0x69f19a(0xf3)],ke=Object[_0x69f19a(0x165)],Ge=(_0x14eb93,_0x2eeb4b,_0x5b99fd)=>_0x2eeb4b in _0x14eb93?Me(_0x14eb93,_0x2eeb4b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5b99fd}):_0x14eb93[_0x2eeb4b]=_0x5b99fd,We=(_0x4e8dc2,_0x36abb5,_0x4af7dc,_0x3ff2b4)=>{const _0x5ca348=_0x69f19a;for(var _0x50eac7=_0x3ff2b4>0x1?void 0x0:_0x3ff2b4?ke(_0x36abb5,_0x4af7dc):_0x36abb5,_0x21f36c=_0x4e8dc2[_0x5ca348(0xfd)]-0x1,_0x530c4d;_0x21f36c>=0x0;_0x21f36c--)(_0x530c4d=_0x4e8dc2[_0x21f36c])&&(_0x50eac7=_0x530c4d(_0x50eac7)||_0x50eac7);return _0x50eac7;},F=(_0x46f490,_0x109363)=>(_0x641a85,_0x27d619)=>_0x109363(_0x641a85,_0x27d619,_0x46f490),B=(_0x2e9ef4,_0x2eb3af,_0x16f0e5)=>Ge(_0x2e9ef4,typeof _0x2eb3af!=_0x69f19a(0x139)?_0x2eb3af+'':_0x2eb3af,_0x16f0e5);const Ye='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x1673f7{constructor(_0x128a69=T,_0x3a4ca0,_0x1378d6){const _0x1472b2=_0x69f19a;super(),this[_0x1472b2(0x164)]=_0x128a69,this[_0x1472b2(0x18e)]=_0x3a4ca0,this['_configService']=_0x1378d6;const {..._0x331e34}=_0x5cc7d7({},T,this[_0x1472b2(0x164)]);this['_configService'][_0x1472b2(0x13a)](ye,_0x331e34);}[_0x69f19a(0x11d)](){const _0x5d5eb6=_0x69f19a;_0x428d1a(this[_0x5d5eb6(0x18e)],_0x4279a3([[L],[S],[I],[m]],this[_0x5d5eb6(0x164)][_0x5d5eb6(0xfb)])),_0x8fcf17(this[_0x5d5eb6(0x18e)],[[I]]);}[_0x69f19a(0xe8)](){_0x8fcf17(this['_injector'],[[m]]);}};B(b,_0x69f19a(0x177),_0xa40585[_0x69f19a(0x181)]),B(b,_0x69f19a(0xf1),Ye),b=We([_0x46d4a0(_0x217f3d),F(0x1,_0x1c9f93(_0x8f574c)),F(0x2,_0x22f532)],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 _0xc92a(){const _0x4eed83=['UniverCoreFacade','getStatus','LiveShareStatus','FEnum','_initialize','getId','getLiveShareCoordinatorSync','getRenderById','IDLE','getActiveSheet','PRESENTING','get','executeCommand','_commandService','296120puQvnJ','2763628luEEuk','42yRfPdH','getActiveWorkbook','object','1871040Iqpejc','syncExecuteCommand','amd','@univerjs/core/facade','UniverSheetsUi','getUnitId','UniverSheets','extend','3779100OCtrXp','startColumn','stopPresenting','455516nMzvWH','UniverProLiveShare','FRange','15833384cNpInY','UniverSheetsFacade','tryStartPresenting','startRow','LiveShareController','No\x20active\x20workbook\x20found.','IRenderManagerService','_injector','startFollowing','SetWorksheetActiveOperation','@univerjs/sheets/facade','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','@univerjs/sheets-ui','270408CruNQx'];_0xc92a=function(){return _0x4eed83;};return _0xc92a();}function _0x2554(_0x5d6a1f,_0x3e2793){_0x5d6a1f=_0x5d6a1f-0x15c;const _0xc92af1=_0xc92a();let _0x255486=_0xc92af1[_0x5d6a1f];return _0x255486;}(function(_0x6d8e1e,_0x239493){const _0x11345b=_0x2554,_0x54c1f4=_0x6d8e1e();while(!![]){try{const _0x208e9b=parseInt(_0x11345b(0x17d))/0x1+-parseInt(_0x11345b(0x15e))/0x2+-parseInt(_0x11345b(0x17f))/0x3*(-parseInt(_0x11345b(0x16e))/0x4)+parseInt(_0x11345b(0x18a))/0x5+parseInt(_0x11345b(0x182))/0x6+parseInt(_0x11345b(0x17e))/0x7+-parseInt(_0x11345b(0x161))/0x8;if(_0x208e9b===_0x239493)break;else _0x54c1f4['push'](_0x54c1f4['shift']());}catch(_0x382e71){_0x54c1f4['push'](_0x54c1f4['shift']());}}}(_0xc92a,0x799a1),function(_0x53deaf,_0x4e8839){const _0x35f6f8=_0x2554;typeof exports==_0x35f6f8(0x181)&&typeof module<'u'?_0x4e8839(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=='function'&&define[_0x35f6f8(0x184)]?define(['@univerjs-pro/live-share','@univerjs/engine-render','@univerjs/sheets',_0x35f6f8(0x16d),_0x35f6f8(0x16b),_0x35f6f8(0x185)],_0x4e8839):(_0x53deaf=typeof globalThis<'u'?globalThis:_0x53deaf||self,_0x4e8839(_0x53deaf[_0x35f6f8(0x15f)],_0x53deaf['UniverEngineRender'],_0x53deaf[_0x35f6f8(0x188)],_0x53deaf[_0x35f6f8(0x186)],_0x53deaf[_0x35f6f8(0x162)],_0x53deaf[_0x35f6f8(0x16f)]));}(this,function(_0x2495a7,_0x1a48d2,_0x47e1f1,_0x47468d,_0x877b41,_0x450051){'use strict';const _0x26823c=_0x2554;class _0x43e02d extends _0x877b41[_0x26823c(0x160)]{[_0x26823c(0x173)](_0x109f83,_0x3aff0d,_0x234404,_0x55c5dc,_0x18e49f){const _0x17c8dc=_0x26823c,_0x263905=_0x109f83[_0x17c8dc(0x17a)](_0x2495a7[_0x17c8dc(0x165)]),_0x48a72d=_0x109f83[_0x17c8dc(0x17a)](_0x1a48d2[_0x17c8dc(0x167)]),_0x265b6c=_0x3aff0d[_0x17c8dc(0x187)](),_0x29a9de=_0x3aff0d[_0x17c8dc(0x178)](),_0x544dc1=_0x263905[_0x17c8dc(0x175)](_0x265b6c);(_0x544dc1==null?void 0x0:_0x544dc1[_0x17c8dc(0x170)]())!==_0x2495a7[_0x17c8dc(0x171)][_0x17c8dc(0x179)]||(_0x234404['getSheetId']()!==_0x29a9de['getSheetId']()&&this[_0x17c8dc(0x17c)][_0x17c8dc(0x17b)](_0x47e1f1[_0x17c8dc(0x16a)]['id'],{'unitId':_0x265b6c,'subUnitId':_0x234404['getSheetId']()}),!_0x48a72d[_0x17c8dc(0x176)](_0x265b6c))||_0x18e49f[_0x17c8dc(0x183)](_0x47468d['SetScrollOperation']['id'],{'unitId':_0x3aff0d[_0x17c8dc(0x187)](),'sheetId':_0x234404['getSheetId'](),'sheetViewStartRow':_0x55c5dc[_0x17c8dc(0x164)],'sheetViewStartColumn':_0x55c5dc[_0x17c8dc(0x15c)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x877b41['FRange']['extend'](_0x43e02d);class _0xe58e22 extends _0x450051['FUniver']{['getLiveShareStatus'](){const _0x496f32=_0x26823c;var _0x15730f,_0x9a1c55;const _0x3a730c=this[_0x496f32(0x168)][_0x496f32(0x17a)](_0x2495a7[_0x496f32(0x165)]),_0xc9e29b=(_0x15730f=this[_0x496f32(0x180)]())==null?void 0x0:_0x15730f[_0x496f32(0x174)]();if(!_0xc9e29b)throw new Error(_0x496f32(0x166));const _0x26ba42=_0x3a730c[_0x496f32(0x175)](_0xc9e29b);return(_0x9a1c55=_0x26ba42==null?void 0x0:_0x26ba42[_0x496f32(0x170)]())!=null?_0x9a1c55:_0x2495a7[_0x496f32(0x171)][_0x496f32(0x177)];}[_0x26823c(0x169)](){const _0x413ceb=_0x26823c;var _0x3360b8;const _0x4281e9=this[_0x413ceb(0x168)]['get'](_0x2495a7[_0x413ceb(0x165)]),_0x5cd369=(_0x3360b8=this[_0x413ceb(0x180)]())==null?void 0x0:_0x3360b8[_0x413ceb(0x174)]();if(!_0x5cd369)throw new Error('No\x20active\x20workbook\x20found.');const _0x3c154f=_0x4281e9[_0x413ceb(0x175)](_0x5cd369);if(!_0x3c154f)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x3c154f[_0x413ceb(0x169)]();}['stopFollowing'](){const _0x251e13=_0x26823c;var _0x8b50ec;const _0x2f78a8=this[_0x251e13(0x168)][_0x251e13(0x17a)](_0x2495a7['LiveShareController']),_0xe0ed2e=(_0x8b50ec=this['getActiveWorkbook']())==null?void 0x0:_0x8b50ec[_0x251e13(0x174)]();if(!_0xe0ed2e)throw new Error(_0x251e13(0x166));const _0xac30ed=_0x2f78a8[_0x251e13(0x175)](_0xe0ed2e);if(!_0xac30ed)throw new Error(_0x251e13(0x16c));_0xac30ed['stopFollowing']();}['startPresenting'](){const _0x3dc376=_0x26823c;var _0x4d9f6b;const _0x350369=this['_injector'][_0x3dc376(0x17a)](_0x2495a7[_0x3dc376(0x165)]),_0x5c6fb0=(_0x4d9f6b=this[_0x3dc376(0x180)]())==null?void 0x0:_0x4d9f6b[_0x3dc376(0x174)]();if(!_0x5c6fb0)throw new Error(_0x3dc376(0x166));const _0x545421=_0x350369['getLiveShareCoordinatorSync'](_0x5c6fb0);if(!_0x545421)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x545421[_0x3dc376(0x163)]();}['stopPresenting'](){const _0x2619d8=_0x26823c;var _0x2e1937;const _0x569481=this[_0x2619d8(0x168)][_0x2619d8(0x17a)](_0x2495a7['LiveShareController']),_0x1c9c09=(_0x2e1937=this[_0x2619d8(0x180)]())==null?void 0x0:_0x2e1937[_0x2619d8(0x174)]();if(!_0x1c9c09)throw new Error(_0x2619d8(0x166));const _0x31b080=_0x569481[_0x2619d8(0x175)](_0x1c9c09);if(!_0x31b080)throw new Error(_0x2619d8(0x16c));_0x31b080[_0x2619d8(0x15d)]();}}_0x450051['FUniver']['extend'](_0xe58e22);class _0xe02a8d extends _0x450051[_0x26823c(0x172)]{get['LiveShareStatusEnum'](){return _0x2495a7['LiveShareStatus'];}}_0x450051['FEnum'][_0x26823c(0x189)](_0xe02a8d);}));
1
+ function _0x1dc6(_0xfff34a,_0x32020e){_0xfff34a=_0xfff34a-0x99;const _0x56e2bc=_0x56e2();let _0x1dc673=_0x56e2bc[_0xfff34a];return _0x1dc673;}function _0x56e2(){const _0x4c84cf=['10FbduYT','UniverSheets','FUniver','LiveShareStatusEnum','UniverSheetsFacade','UniverSheetsUi','getLiveShareCoordinatorSync','stopPresenting','object','4663674vjeRzv','getSheetId','stopFollowing','getActiveWorkbook','startPresenting','_initialize','getUnitId','startColumn','5464824SnRKuh','getId','syncExecuteCommand','amd','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','29732CvwLlx','_injector','tryStartPresenting','@univerjs/sheets/facade','SetScrollOperation','@univerjs/sheets','UniverProLiveShare','getRenderById','PRESENTING','extend','getStatus','LiveShareStatus','SetWorksheetActiveOperation','getActiveSheet','IDLE','startFollowing','UniverEngineRender','UniverCoreFacade','get','IRenderManagerService','8169216tWHxGM','2446878gPAxnS','getLiveShareStatus','2769392jqEHCi','10CoIrnt','No\x20active\x20workbook\x20found.','LiveShareController','executeCommand','52RCbPgv','FRange','FEnum','656QVfcfi','function','47411GsPTls'];_0x56e2=function(){return _0x4c84cf;};return _0x56e2();}(function(_0x4d5009,_0x17443a){const _0x31e6e9=_0x1dc6,_0x1f14f3=_0x4d5009();while(!![]){try{const _0x2b6ee6=parseInt(_0x31e6e9(0xb0))/0x1*(-parseInt(_0x31e6e9(0xcc))/0x2)+-parseInt(_0x31e6e9(0xc5))/0x3+parseInt(_0x31e6e9(0xc7))/0x4*(parseInt(_0x31e6e9(0xc8))/0x5)+-parseInt(_0x31e6e9(0xab))/0x6+-parseInt(_0x31e6e9(0x99))/0x7*(-parseInt(_0x31e6e9(0xcf))/0x8)+-parseInt(_0x31e6e9(0xa3))/0x9*(-parseInt(_0x31e6e9(0x9a))/0xa)+parseInt(_0x31e6e9(0xc4))/0xb;if(_0x2b6ee6===_0x17443a)break;else _0x1f14f3['push'](_0x1f14f3['shift']());}catch(_0x1ed798){_0x1f14f3['push'](_0x1f14f3['shift']());}}}(_0x56e2,0xab416),function(_0x416118,_0x162f0b){const _0x4e1ba4=_0x1dc6;typeof exports==_0x4e1ba4(0xa2)&&typeof module<'u'?_0x162f0b(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==_0x4e1ba4(0xd0)&&define[_0x4e1ba4(0xae)]?define(['@univerjs-pro/live-share','@univerjs/engine-render',_0x4e1ba4(0xb5),'@univerjs/sheets-ui',_0x4e1ba4(0xb3),'@univerjs/core/facade'],_0x162f0b):(_0x416118=typeof globalThis<'u'?globalThis:_0x416118||self,_0x162f0b(_0x416118[_0x4e1ba4(0xb6)],_0x416118[_0x4e1ba4(0xc0)],_0x416118[_0x4e1ba4(0x9b)],_0x416118[_0x4e1ba4(0x9f)],_0x416118[_0x4e1ba4(0x9e)],_0x416118[_0x4e1ba4(0xc1)]));}(this,function(_0x47ffff,_0x14ea21,_0x453f82,_0x506f1d,_0xd12cf5,_0x1ef4c7){'use strict';const _0x2822e7=_0x1dc6;class _0x38a102 extends _0xd12cf5['FRange']{[_0x2822e7(0xa8)](_0x5ed598,_0x14420d,_0x584490,_0x2a8b65,_0x560874){const _0x1dd0c3=_0x2822e7,_0x4ec7e7=_0x5ed598['get'](_0x47ffff[_0x1dd0c3(0xca)]),_0x5d64f9=_0x5ed598[_0x1dd0c3(0xc2)](_0x14ea21[_0x1dd0c3(0xc3)]),_0x11b16c=_0x14420d[_0x1dd0c3(0xa9)](),_0x58c75c=_0x14420d[_0x1dd0c3(0xbd)](),_0xbbcaf7=_0x4ec7e7[_0x1dd0c3(0xa0)](_0x11b16c);(_0xbbcaf7==null?void 0x0:_0xbbcaf7['getStatus']())!==_0x47ffff[_0x1dd0c3(0xbb)][_0x1dd0c3(0xb8)]||(_0x584490[_0x1dd0c3(0xa4)]()!==_0x58c75c[_0x1dd0c3(0xa4)]()&&this['_commandService'][_0x1dd0c3(0xcb)](_0x453f82[_0x1dd0c3(0xbc)]['id'],{'unitId':_0x11b16c,'subUnitId':_0x584490[_0x1dd0c3(0xa4)]()}),!_0x5d64f9[_0x1dd0c3(0xb7)](_0x11b16c))||_0x560874[_0x1dd0c3(0xad)](_0x506f1d[_0x1dd0c3(0xb4)]['id'],{'unitId':_0x14420d[_0x1dd0c3(0xa9)](),'sheetId':_0x584490[_0x1dd0c3(0xa4)](),'sheetViewStartRow':_0x2a8b65['startRow'],'sheetViewStartColumn':_0x2a8b65[_0x1dd0c3(0xaa)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0xd12cf5[_0x2822e7(0xcd)][_0x2822e7(0xb9)](_0x38a102);class _0x112066 extends _0x1ef4c7[_0x2822e7(0x9c)]{[_0x2822e7(0xc6)](){const _0x1dad1a=_0x2822e7;var _0x1b6fa2,_0x256717;const _0x22d6ec=this[_0x1dad1a(0xb1)]['get'](_0x47ffff[_0x1dad1a(0xca)]),_0x4ddd08=(_0x1b6fa2=this[_0x1dad1a(0xa6)]())==null?void 0x0:_0x1b6fa2['getId']();if(!_0x4ddd08)throw new Error(_0x1dad1a(0xc9));const _0x827472=_0x22d6ec[_0x1dad1a(0xa0)](_0x4ddd08);return(_0x256717=_0x827472==null?void 0x0:_0x827472[_0x1dad1a(0xba)]())!=null?_0x256717:_0x47ffff[_0x1dad1a(0xbb)][_0x1dad1a(0xbe)];}[_0x2822e7(0xbf)](){const _0x19d7ce=_0x2822e7;var _0x29eb2a;const _0x19acd7=this['_injector']['get'](_0x47ffff[_0x19d7ce(0xca)]),_0x3130d4=(_0x29eb2a=this[_0x19d7ce(0xa6)]())==null?void 0x0:_0x29eb2a[_0x19d7ce(0xac)]();if(!_0x3130d4)throw new Error(_0x19d7ce(0xc9));const _0x532420=_0x19acd7['getLiveShareCoordinatorSync'](_0x3130d4);if(!_0x532420)throw new Error(_0x19d7ce(0xaf));_0x532420['startFollowing']();}[_0x2822e7(0xa5)](){const _0x44bb3a=_0x2822e7;var _0x1af09c;const _0x4f49bf=this['_injector'][_0x44bb3a(0xc2)](_0x47ffff[_0x44bb3a(0xca)]),_0x3a7f42=(_0x1af09c=this[_0x44bb3a(0xa6)]())==null?void 0x0:_0x1af09c[_0x44bb3a(0xac)]();if(!_0x3a7f42)throw new Error(_0x44bb3a(0xc9));const _0x4c85bb=_0x4f49bf['getLiveShareCoordinatorSync'](_0x3a7f42);if(!_0x4c85bb)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x4c85bb[_0x44bb3a(0xa5)]();}[_0x2822e7(0xa7)](){const _0x261bf9=_0x2822e7;var _0x1b6df0;const _0x11dd30=this[_0x261bf9(0xb1)][_0x261bf9(0xc2)](_0x47ffff[_0x261bf9(0xca)]),_0x75ef39=(_0x1b6df0=this[_0x261bf9(0xa6)]())==null?void 0x0:_0x1b6df0[_0x261bf9(0xac)]();if(!_0x75ef39)throw new Error(_0x261bf9(0xc9));const _0x3a20ad=_0x11dd30[_0x261bf9(0xa0)](_0x75ef39);if(!_0x3a20ad)throw new Error(_0x261bf9(0xaf));_0x3a20ad[_0x261bf9(0xb2)]();}[_0x2822e7(0xa1)](){const _0x280b98=_0x2822e7;var _0x34b898;const _0x37f3c2=this['_injector'][_0x280b98(0xc2)](_0x47ffff['LiveShareController']),_0x8353f2=(_0x34b898=this[_0x280b98(0xa6)]())==null?void 0x0:_0x34b898[_0x280b98(0xac)]();if(!_0x8353f2)throw new Error(_0x280b98(0xc9));const _0x509afe=_0x37f3c2[_0x280b98(0xa0)](_0x8353f2);if(!_0x509afe)throw new Error(_0x280b98(0xaf));_0x509afe['stopPresenting']();}}_0x1ef4c7['FUniver'][_0x2822e7(0xb9)](_0x112066);class _0x3b6ffe extends _0x1ef4c7[_0x2822e7(0xce)]{get[_0x2822e7(0x9d)](){const _0x3e9611=_0x2822e7;return _0x47ffff[_0x3e9611(0xbb)];}}_0x1ef4c7[_0x2822e7(0xce)]['extend'](_0x3b6ffe);}));
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x13a2(_0x2f5e06,_0xecaebb){_0x2f5e06=_0x2f5e06-0x1d3;const _0x593bf0=_0x593b();let _0x13a2d5=_0x593bf0[_0x2f5e06];return _0x13a2d5;}(function(_0x5cd13b,_0x5eefc0){const _0x38a70f=_0x13a2,_0x21ee61=_0x5cd13b();while(!![]){try{const _0x2f3c95=parseInt(_0x38a70f(0x28e))/0x1+parseInt(_0x38a70f(0x253))/0x2*(parseInt(_0x38a70f(0x250))/0x3)+-parseInt(_0x38a70f(0x258))/0x4*(-parseInt(_0x38a70f(0x24f))/0x5)+parseInt(_0x38a70f(0x23c))/0x6*(parseInt(_0x38a70f(0x26a))/0x7)+parseInt(_0x38a70f(0x211))/0x8+-parseInt(_0x38a70f(0x205))/0x9+-parseInt(_0x38a70f(0x2a1))/0xa*(parseInt(_0x38a70f(0x23b))/0xb);if(_0x2f3c95===_0x5eefc0)break;else _0x21ee61['push'](_0x21ee61['shift']());}catch(_0x2919d1){_0x21ee61['push'](_0x21ee61['shift']());}}}(_0x593b,0xf3dc5),function(_0x4d8847,_0x4b6ce1){const _0xb09b3c=_0x13a2;typeof exports==_0xb09b3c(0x20b)&&typeof module<'u'?_0x4b6ce1(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==_0xb09b3c(0x1d3)&&define[_0xb09b3c(0x2b4)]?define([_0xb09b3c(0x1f8),_0xb09b3c(0x28d),_0xb09b3c(0x286),'react/jsx-runtime',_0xb09b3c(0x230),'react',_0xb09b3c(0x21f),_0xb09b3c(0x25e),_0xb09b3c(0x23d),_0xb09b3c(0x22c),'rxjs/operators',_0xb09b3c(0x234)],_0x4b6ce1):(_0x4d8847=typeof globalThis<'u'?globalThis:_0x4d8847||self,_0x4b6ce1(_0x4d8847[_0xb09b3c(0x1fe)]={},_0x4d8847[_0xb09b3c(0x212)],_0x4d8847[_0xb09b3c(0x2b6)],_0x4d8847['React'],_0x4d8847['UniverDesign'],_0x4d8847[_0xb09b3c(0x29f)],_0x4d8847[_0xb09b3c(0x2ac)],_0x4d8847[_0xb09b3c(0x1e9)],_0x4d8847[_0xb09b3c(0x262)],_0x4d8847['rxjs'],_0x4d8847[_0xb09b3c(0x22c)][_0xb09b3c(0x264)],_0x4d8847['UniverSheetsUi']));}(this,function(_0x33b5a1,_0x5242d0,_0x8f5423,_0x5a0919,_0x105ed1,_0x10af90,_0x6323e2,_0x54c375,_0x5c53f2,_0x1d196e,_0x16dc5c,_0x16ca3d){'use strict';const _0x6f7a83=_0x13a2;var _0x19dd59=Object[_0x6f7a83(0x265)],_0x31a3f4=(_0x352a1b,_0x11d53c,_0x36e17c)=>_0x11d53c in _0x352a1b?_0x19dd59(_0x352a1b,_0x11d53c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x36e17c}):_0x352a1b[_0x11d53c]=_0x36e17c,_0x5c7a2b=(_0x512369,_0x503b6c,_0x29f0d7)=>_0x31a3f4(_0x512369,typeof _0x503b6c!=_0x6f7a83(0x243)?_0x503b6c+'':_0x503b6c,_0x29f0d7);function _0x522fde({ref:_0x19fd63,..._0x593b8a}){const _0xedf77e=_0x6f7a83,{icon:_0xe50f85,id:_0x517c01,className:_0x3850b5,extend:_0x29e3d3,..._0x4d1395}=_0x593b8a,_0x47526b=(_0xedf77e(0x27c)+_0x517c01+'\x20'+(_0x3850b5||''))[_0xedf77e(0x25d)](),_0xc2e4ad=_0x10af90[_0xedf77e(0x281)]('_'+_0x12a1f0());return _0x211b16(_0xe50f85,''+_0x517c01,{'defIds':_0xe50f85[_0xedf77e(0x245)],'idSuffix':_0xc2e4ad[_0xedf77e(0x216)]},{'ref':_0x19fd63,'className':_0x47526b,..._0x4d1395},_0x29e3d3);}function _0x211b16(_0x2446ff,_0x4ac7fc,_0x3e9bc0,_0x2bd6e1,_0xbcc832){const _0x2bc152=_0x6f7a83;return _0x10af90[_0x2bc152(0x229)](_0x2446ff[_0x2bc152(0x207)],{'key':_0x4ac7fc,..._0x4831ec(_0x2446ff,_0x3e9bc0,_0xbcc832),..._0x2bd6e1},(_0x56515c(_0x2446ff,_0x3e9bc0)['children']||[])[_0x2bc152(0x2a0)]((_0x437ffc,_0x11bbec)=>_0x211b16(_0x437ffc,_0x4ac7fc+'-'+_0x2446ff[_0x2bc152(0x207)]+'-'+_0x11bbec,_0x3e9bc0,void 0x0,_0xbcc832)));}function _0x4831ec(_0x146b5f,_0x325fb2,_0x5602ff){const _0x5a56e8=_0x6f7a83,_0x2d8300={..._0x146b5f['attrs']};_0x5602ff!=null&&_0x5602ff[_0x5a56e8(0x21b)]&&_0x2d8300[_0x5a56e8(0x2c1)]===_0x5a56e8(0x21b)&&(_0x2d8300[_0x5a56e8(0x2c1)]=_0x5602ff[_0x5a56e8(0x21b)]),_0x146b5f[_0x5a56e8(0x207)]===_0x5a56e8(0x288)&&_0x2d8300['id']&&(_0x2d8300['id']=_0x2d8300['id']+_0x325fb2['idSuffix']),Object[_0x5a56e8(0x1f5)](_0x2d8300)[_0x5a56e8(0x214)](([_0x578307,_0x2742e2])=>{const _0xc4b19f=_0x5a56e8;_0x578307==='mask'&&typeof _0x2742e2=='string'&&(_0x2d8300[_0x578307]=_0x2742e2[_0xc4b19f(0x21c)](/url\(#(.*)\)/,_0xc4b19f(0x206)+_0x325fb2[_0xc4b19f(0x1dd)]+')'));});const {defIds:_0x14e53d}=_0x325fb2;return!_0x14e53d||_0x14e53d['length']===0x0||(_0x146b5f[_0x5a56e8(0x207)]===_0x5a56e8(0x2a2)&&_0x2d8300[_0x5a56e8(0x24c)]&&(_0x2d8300[_0x5a56e8(0x24c)]=_0x2d8300['xlink:href']+_0x325fb2[_0x5a56e8(0x1dd)]),Object[_0x5a56e8(0x1f5)](_0x2d8300)[_0x5a56e8(0x214)](([_0x45f1ac,_0x2bc393])=>{const _0xfb79a4=_0x5a56e8;typeof _0x2bc393==_0xfb79a4(0x296)&&(_0x2d8300[_0x45f1ac]=_0x2bc393[_0xfb79a4(0x21c)](/url\(#(.*)\)/,_0xfb79a4(0x206)+_0x325fb2[_0xfb79a4(0x1dd)]+')'));})),_0x2d8300;}function _0x56515c(_0x2e1169,_0x345e61){const _0x211c26=_0x6f7a83;var _0x41f910;const {defIds:_0x5d9bfa}=_0x345e61;return!_0x5d9bfa||_0x5d9bfa['length']===0x0?_0x2e1169:_0x2e1169[_0x211c26(0x207)]===_0x211c26(0x2a4)&&((_0x41f910=_0x2e1169[_0x211c26(0x1dc)])!=null&&_0x41f910['length'])?{..._0x2e1169,'children':_0x2e1169[_0x211c26(0x1dc)]['map'](_0x404e62=>typeof _0x404e62['attrs']['id']=='string'&&_0x5d9bfa&&_0x5d9bfa[_0x211c26(0x20e)](_0x404e62['attrs']['id'])?{..._0x404e62,'attrs':{..._0x404e62[_0x211c26(0x22b)],'id':_0x404e62[_0x211c26(0x22b)]['id']+_0x345e61[_0x211c26(0x1dd)]}}:_0x404e62)}:_0x2e1169;}function _0x12a1f0(){const _0x249e3d=_0x6f7a83;return Math[_0x249e3d(0x20f)]()[_0x249e3d(0x1f9)](0x24)[_0x249e3d(0x27b)](0x2,0x8);}_0x522fde[_0x6f7a83(0x209)]='UniverIcon';const _0x1676e6={'tag':'svg','attrs':{'xmlns':_0x6f7a83(0x239),'fill':'none','viewBox':_0x6f7a83(0x247),'width':_0x6f7a83(0x248),'height':'1em'},'children':[{'tag':_0x6f7a83(0x24b),'attrs':{'fill':_0x6f7a83(0x252),'d':_0x6f7a83(0x1e4)}},{'tag':'path','attrs':{'fill':_0x6f7a83(0x252),'d':_0x6f7a83(0x1d4),'fillRule':_0x6f7a83(0x20d),'clipRule':_0x6f7a83(0x20d)}}]},_0x2b6e58=_0x10af90[_0x6f7a83(0x226)](function(_0x206641,_0x200b25){const _0x2a7a53=_0x6f7a83;return _0x10af90[_0x2a7a53(0x229)](_0x522fde,Object[_0x2a7a53(0x1f3)]({},_0x206641,{'id':_0x2a7a53(0x269),'ref':_0x200b25,'icon':_0x1676e6}));});_0x2b6e58['displayName']=_0x6f7a83(0x2ab);class _0x4fcb2d extends _0x5242d0[_0x6f7a83(0x259)]{constructor(){const _0x29b4a9=_0x6f7a83;super(...arguments),_0x5c7a2b(this,_0x29b4a9(0x267),new Set()),_0x5c7a2b(this,'_reporters',new Set());}[_0x6f7a83(0x2b3)](_0x3f1bd3){const _0xdc93a9=_0x6f7a83;return this[_0xdc93a9(0x267)][_0xdc93a9(0x290)](_0x3f1bd3),_0x5242d0[_0xdc93a9(0x2b5)](()=>this[_0xdc93a9(0x267)][_0xdc93a9(0x22f)](_0x3f1bd3));}[_0x6f7a83(0x293)](_0x35cb2e){const _0x514a3c=_0x6f7a83;return this['_reporters'][_0x514a3c(0x290)](_0x35cb2e),_0x5242d0['toDisposable'](()=>this[_0x514a3c(0x28b)][_0x514a3c(0x22f)](_0x35cb2e));}['shouldShareOperation'](_0x32b8aa){const _0xa11869=_0x6f7a83;return this[_0xa11869(0x267)][_0xa11869(0x276)](_0x32b8aa);}[_0x6f7a83(0x225)](_0x2c52a0){const _0xda7936=_0x6f7a83;return Array['from'](this[_0xda7936(0x28b)])[_0xda7936(0x2a0)](_0x30830e=>_0x30830e(_0x2c52a0));}}var _0x4aebbf=Object[_0x6f7a83(0x295)],_0xbcc4bb=(_0x30b274,_0x38dbae,_0x177f57,_0x5661d5)=>{const _0x360515=_0x6f7a83;for(var _0x1463af=_0x5661d5>0x1?void 0x0:_0x5661d5?_0x4aebbf(_0x38dbae,_0x177f57):_0x38dbae,_0x4fc2b3=_0x30b274[_0x360515(0x287)]-0x1,_0x2d405e;_0x4fc2b3>=0x0;_0x4fc2b3--)(_0x2d405e=_0x30b274[_0x4fc2b3])&&(_0x1463af=_0x2d405e(_0x1463af)||_0x1463af);return _0x1463af;},_0x1f6e37=(_0x4173ff,_0x23695d)=>(_0x3ed87a,_0x51d49c)=>_0x23695d(_0x3ed87a,_0x51d49c,_0x4173ff);_0x33b5a1['LiveShareController']=class extends _0x5242d0['RxDisposable']{constructor(_0xb6d598,_0x45bb8d,_0x4e3c3f){const _0xdd0dd=_0x6f7a83;super(),_0x5c7a2b(this,_0xdd0dd(0x1ea),new Map()),(this[_0xdd0dd(0x263)]=_0xb6d598,this[_0xdd0dd(0x21a)]=_0x45bb8d,this[_0xdd0dd(0x244)]=_0x4e3c3f,this[_0xdd0dd(0x1fd)]());}async[_0x6f7a83(0x2bd)](_0x3de806){const _0x1373c7=_0x6f7a83;return this[_0x1373c7(0x1ea)][_0x1373c7(0x276)](_0x3de806)||await this['_startLiveShareCoordinator'](_0x3de806),this['_entities'][_0x1373c7(0x21d)](_0x3de806);}[_0x6f7a83(0x232)](_0x297d60){const _0x33822a=_0x6f7a83;var _0x59b344;return(_0x59b344=this['_entities'][_0x33822a(0x21d)](_0x297d60))!=null?_0x59b344:null;}['_init'](){const _0x49387e=_0x6f7a83;this['_univerInstanceService'][_0x49387e(0x220)](_0x5242d0['UniverInstanceType'][_0x49387e(0x29b)])[_0x49387e(0x270)](_0x16dc5c[_0x49387e(0x2b0)](this[_0x49387e(0x29a)]))[_0x49387e(0x20a)](async _0x1c5bb3=>{const _0x54e560=_0x49387e,_0x5c7d2b=_0x1c5bb3['getUnitId']();this[_0x54e560(0x1ea)][_0x54e560(0x276)](_0x5c7d2b)||this['_startLiveShareCoordinator'](_0x5c7d2b);}),this[_0x49387e(0x263)][_0x49387e(0x26e)](_0x5242d0[_0x49387e(0x23e)]['UNIVER_SHEET'])[_0x49387e(0x270)](_0x16dc5c[_0x49387e(0x2b0)](this[_0x49387e(0x29a)]))['subscribe'](_0x4b1ba1=>{const _0x166450=_0x49387e,_0x327d97=_0x4b1ba1[_0x166450(0x1db)](),_0x5e08d2=this[_0x166450(0x1ea)][_0x166450(0x21d)](_0x327d97);_0x5e08d2==null||_0x5e08d2[_0x166450(0x25b)]();});}async[_0x6f7a83(0x224)](_0x18982a){const _0x3ffcb3=_0x6f7a83,_0x223e9b=await this['_collabSessionService'][_0x3ffcb3(0x271)](_0x18982a),_0x1de1a0=this[_0x3ffcb3(0x21a)][_0x3ffcb3(0x1e1)](_0x33b5a1[_0x3ffcb3(0x25a)],_0x18982a,_0x223e9b);return _0x1de1a0[_0x3ffcb3(0x1ed)](),this[_0x3ffcb3(0x1ea)][_0x3ffcb3(0x233)](_0x18982a,_0x1de1a0),_0x1de1a0;}},_0x33b5a1['LiveShareController']=_0xbcc4bb([_0x1f6e37(0x0,_0x5242d0[_0x6f7a83(0x238)]),_0x1f6e37(0x1,_0x5242d0[_0x6f7a83(0x2a8)](_0x5242d0[_0x6f7a83(0x2ae)])),_0x1f6e37(0x2,_0x5242d0['Inject'](_0x54c375[_0x6f7a83(0x1f4)]))],_0x33b5a1[_0x6f7a83(0x201)]);var _0x109ecb=(_0x58417c=>(_0x58417c[_0x6f7a83(0x2b9)]='offline',_0x58417c[_0x6f7a83(0x2c3)]=_0x6f7a83(0x222),_0x58417c['FOLLOWING']=_0x6f7a83(0x20c),_0x58417c[_0x6f7a83(0x219)]=_0x6f7a83(0x289),_0x58417c[_0x6f7a83(0x2bf)]=_0x6f7a83(0x1e8),_0x58417c))(_0x109ecb||{});const _0xb6d0f1=_0x6f7a83(0x272),_0x4e9dc5=0xc8;_0x33b5a1[_0x6f7a83(0x25a)]=class extends _0x5242d0[_0x6f7a83(0x1fb)]{constructor(_0x59e9b0,_0x3198ad,_0x44cf62,_0x24100b,_0x1b3af2){const _0x40c663=_0x6f7a83;super(),_0x5c7a2b(this,_0x40c663(0x277),new _0x1d196e['BehaviorSubject']('idle')),_0x5c7a2b(this,'status$',this['_status$'][_0x40c663(0x1fc)]()),_0x5c7a2b(this,_0x40c663(0x1fd),!0x1),_0x5c7a2b(this,_0x40c663(0x1ef),null),_0x5c7a2b(this,_0x40c663(0x210),null),(this['_unitID']=_0x59e9b0,this[_0x40c663(0x255)]=_0x3198ad,this[_0x40c663(0x2c5)]=_0x44cf62,this[_0x40c663(0x2c0)]=_0x24100b,this['_commandService']=_0x1b3af2);}get['_status'](){const _0x415b62=_0x6f7a83;return this[_0x415b62(0x277)][_0x415b62(0x1e7)]();}[_0x6f7a83(0x25b)](){const _0x65c0f6=_0x6f7a83;var _0x17771d;(_0x17771d=this[_0x65c0f6(0x1ef)])==null||_0x17771d[_0x65c0f6(0x25b)](),this[_0x65c0f6(0x277)]['next'](_0x65c0f6(0x222)),this[_0x65c0f6(0x277)][_0x65c0f6(0x2a9)]();}['getStatus'](){return this['_status'];}[_0x6f7a83(0x1ed)](){const _0x186ff5=_0x6f7a83;this[_0x186ff5(0x1fd)]||(this[_0x186ff5(0x1fd)]=!0x0,this['_collabSession'][_0x186ff5(0x266)][_0x186ff5(0x270)](_0x16dc5c[_0x186ff5(0x2b0)](this[_0x186ff5(0x29a)]))['subscribe'](_0x453542=>{const _0x1f3fc2=_0x186ff5;switch(_0x453542){case _0x54c375[_0x1f3fc2(0x29d)][_0x1f3fc2(0x2b9)]:this['_handleOffline']();break;case _0x54c375[_0x1f3fc2(0x29d)][_0x1f3fc2(0x2b8)]:this[_0x1f3fc2(0x251)]();break;}}),this['_collabSession'][_0x186ff5(0x228)][_0x186ff5(0x270)](_0x16dc5c[_0x186ff5(0x2b0)](this[_0x186ff5(0x29a)]))[_0x186ff5(0x20a)](_0x14ad3e=>{const _0x464027=_0x186ff5,{eventID:_0xd35df1}=_0x14ad3e;switch(_0xd35df1){case _0x6323e2['CollaborationEvent'][_0x464027(0x242)]:this[_0x464027(0x22e)](_0x14ad3e);break;case _0x6323e2[_0x464027(0x218)][_0x464027(0x29c)]:this['_handleOperation'](_0x14ad3e);break;case _0x6323e2[_0x464027(0x218)][_0x464027(0x2a5)]:this['_handleTerminate']();break;case _0x6323e2['CollaborationEvent'][_0x464027(0x237)]:this[_0x464027(0x1fa)](_0x14ad3e);break;}}));}[_0x6f7a83(0x26b)](){const _0x9dcdb1=_0x6f7a83;this['_collabSession'][_0x9dcdb1(0x1eb)]({'eventID':_0x6323e2[_0x9dcdb1(0x218)][_0x9dcdb1(0x1e5)],'data':{'unitID':this[_0x9dcdb1(0x282)],'userID':this[_0x9dcdb1(0x255)][_0x9dcdb1(0x292)]()}},this[_0x9dcdb1(0x282)]);}[_0x6f7a83(0x260)](){const _0x2b9422=_0x6f7a83;this[_0x2b9422(0x23a)]===_0x2b9422(0x1e8)&&(this[_0x2b9422(0x277)][_0x2b9422(0x2c2)](_0x2b9422(0x222)),this[_0x2b9422(0x255)][_0x2b9422(0x1eb)]({'eventID':_0x6323e2[_0x2b9422(0x218)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x2b9422(0x282)]}},this[_0x2b9422(0x282)]));}[_0x6f7a83(0x275)](){const _0x1bd4f9=_0x6f7a83;this[_0x1bd4f9(0x23a)]==='not-following'&&(this[_0x1bd4f9(0x277)][_0x1bd4f9(0x2c2)](_0x1bd4f9(0x20c)),this['_startFollowing']());}[_0x6f7a83(0x1e2)](){const _0x33b0cb=_0x6f7a83;this[_0x33b0cb(0x23a)]==='following'&&this[_0x33b0cb(0x1f1)]();}[_0x6f7a83(0x22e)](_0x148e16){const _0xafcc0d=_0x6f7a83,{presenter:_0x4fe95c}=_0x148e16[_0xafcc0d(0x2be)],_0x1f6d63=this['_collabSession']['getMemberID']();this[_0xafcc0d(0x210)]=_0x4fe95c,_0x4fe95c===_0x1f6d63?(this[_0xafcc0d(0x1f1)](),this[_0xafcc0d(0x25f)]()):this[_0xafcc0d(0x23a)]!==_0xafcc0d(0x289)&&(this[_0xafcc0d(0x2af)](),this[_0xafcc0d(0x23f)]());}[_0x6f7a83(0x278)](){const _0x318ddb=_0x6f7a83,_0x52e969={'eventID':_0x6323e2[_0x318ddb(0x218)][_0x318ddb(0x24d)]};this['_collabSession']['send'](_0x52e969,this['_unitID']);}['_handleTerminate'](){const _0x33e6e4=_0x6f7a83;this[_0x33e6e4(0x210)]=null,this[_0x33e6e4(0x23a)]!=='presenting'&&this[_0x33e6e4(0x22a)]();}['_handleNewChangeSets'](_0xcb25bd){const _0x49ccd5=_0x6f7a83;if(this['_status']===_0x49ccd5(0x20c)&&this[_0x49ccd5(0x210)]===_0xcb25bd[_0x49ccd5(0x2be)][_0x49ccd5(0x291)]){const _0x14b22e=_0x6323e2['parseProtocolChangeset'](_0xcb25bd[_0x49ccd5(0x2be)])[_0x49ccd5(0x280)]['reverse']()[_0x49ccd5(0x2ba)](_0x50c963=>_0x50c963['id']===_0x5c53f2[_0x49ccd5(0x2a6)]['id']);if(_0x14b22e){const _0xb351ba=_0x14b22e[_0x49ccd5(0x2aa)]['unitId'],_0x3c8fd2=_0x14b22e[_0x49ccd5(0x2aa)]['sheet']['id'];setTimeout(()=>{const _0xf2ceb9=_0x49ccd5;this['_commandService'][_0xf2ceb9(0x28a)](_0x5c53f2[_0xf2ceb9(0x2a3)]['id'],{'unitId':_0xb351ba,'subUnitId':_0x3c8fd2},{'fromCollab':!0x0});});}}}[_0x6f7a83(0x25f)](){const _0x3a6c98=_0x6f7a83;this[_0x3a6c98(0x277)][_0x3a6c98(0x2c2)](_0x3a6c98(0x1e8));const _0x27095b=new Map(),_0x319712=this[_0x3a6c98(0x1ef)]=new _0x5242d0[(_0x3a6c98(0x261))]();_0x319712[_0x3a6c98(0x290)](_0x5242d0[_0x3a6c98(0x2b5)](()=>{const _0x1946f0=_0x3a6c98;_0x27095b[_0x1946f0(0x214)](_0x13a0de=>_0x13a0de[_0x1946f0(0x2a9)]()),_0x27095b[_0x1946f0(0x217)]();})),_0x319712[_0x3a6c98(0x290)](this[_0x3a6c98(0x26f)]['onCommandExecuted'](_0x117644=>{const _0x15da2e=_0x3a6c98;var _0x2c293d;if(_0x117644[_0x15da2e(0x1df)]!==_0x5242d0['CommandType'][_0x15da2e(0x221)]||!this[_0x15da2e(0x2c0)][_0x15da2e(0x236)](_0x117644['id']))return;const {id:_0x6ed755}=_0x117644;let _0x1b676d;_0x27095b['has'](_0x6ed755)?_0x1b676d=_0x27095b[_0x15da2e(0x21d)](_0x6ed755):(_0x1b676d=new _0x1d196e[(_0x15da2e(0x26c))](),_0x27095b[_0x15da2e(0x233)](_0x6ed755,_0x1b676d),_0x1b676d[_0x15da2e(0x270)](_0x16dc5c[_0x15da2e(0x223)]((_0x2c293d=this[_0x15da2e(0x2c5)][_0x15da2e(0x1d6)](_0xb6d0f1))!=null?_0x2c293d:_0x4e9dc5,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x15da2e(0x20a)](_0x480085=>{const _0x275e4c=_0x15da2e;this[_0x275e4c(0x255)][_0x275e4c(0x1eb)]({'eventID':_0x6323e2[_0x275e4c(0x218)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x275e4c(0x282)],'operations':{[_0x480085['id']]:{'id':_0x480085['id'],'params':JSON['stringify'](_0x480085['params'])}}}},this['_unitID']);})),_0x1b676d['next'](_0x117644);})),this['_liveShareService'][_0x3a6c98(0x225)](this[_0x3a6c98(0x282)])[_0x3a6c98(0x214)](_0x30b1d7=>this['_collabSession'][_0x3a6c98(0x1eb)]({'eventID':_0x6323e2[_0x3a6c98(0x218)][_0x3a6c98(0x29c)],'data':{'unitID':this['_unitID'],'operations':{[_0x30b1d7['id']]:{'id':_0x30b1d7['id'],'params':JSON[_0x3a6c98(0x1ee)](_0x30b1d7[_0x3a6c98(0x2aa)])}}}},this[_0x3a6c98(0x282)]));}[_0x6f7a83(0x2af)](){const _0x588613=_0x6f7a83;var _0x5c19ac;this[_0x588613(0x277)]['next'](_0x588613(0x222)),(_0x5c19ac=this[_0x588613(0x1ef)])==null||_0x5c19ac[_0x588613(0x25b)](),this[_0x588613(0x1ef)]=null;}[_0x6f7a83(0x23f)](){const _0x4e0625=_0x6f7a83;var _0x3fbb5b;(_0x3fbb5b=this[_0x4e0625(0x1ef)])==null||_0x3fbb5b['dispose'](),this['_status$'][_0x4e0625(0x2c2)](_0x4e0625(0x20c));}[_0x6f7a83(0x22a)](){const _0x526f12=_0x6f7a83;var _0x55d127;this[_0x526f12(0x277)][_0x526f12(0x2c2)](_0x526f12(0x222)),(_0x55d127=this[_0x526f12(0x1ef)])==null||_0x55d127[_0x526f12(0x25b)](),this[_0x526f12(0x1ef)]=null;}[_0x6f7a83(0x1f1)](){const _0x4175cc=_0x6f7a83;var _0x4effc4;this[_0x4175cc(0x277)]['next']('not-following'),(_0x4effc4=this[_0x4175cc(0x1ef)])==null||_0x4effc4['dispose']();}[_0x6f7a83(0x1e0)](_0x445716){const _0x4ba95c=_0x6f7a83;if(['presenting',_0x4ba95c(0x289),_0x4ba95c(0x298)][_0x4ba95c(0x20e)](this[_0x4ba95c(0x23a)])||!_0x445716[_0x4ba95c(0x2be)]['presenter']||_0x445716[_0x4ba95c(0x2be)][_0x4ba95c(0x1f6)]===this[_0x4ba95c(0x255)]['getMemberID']())return;this[_0x4ba95c(0x23a)]===_0x4ba95c(0x222)&&this[_0x4ba95c(0x23f)]();const _0x46ce63=_0x445716[_0x4ba95c(0x2be)][_0x4ba95c(0x249)];Object['values'](_0x46ce63)['forEach'](_0x1c7b7f=>{const _0x3bb97c=_0x4ba95c;this[_0x3bb97c(0x26f)][_0x3bb97c(0x28a)](_0x1c7b7f['id'],_0x1c7b7f[_0x3bb97c(0x2aa)]?JSON['parse'](_0x1c7b7f[_0x3bb97c(0x2aa)]):null,{'fromCollab':!0x0});});}[_0x6f7a83(0x297)](){const _0x3a36dd=_0x6f7a83;var _0x474c08;this['_status$']['next'](_0x3a36dd(0x298)),(_0x474c08=this[_0x3a36dd(0x1ef)])==null||_0x474c08['dispose']();}[_0x6f7a83(0x251)](){const _0x5e612c=_0x6f7a83;this[_0x5e612c(0x277)][_0x5e612c(0x2c2)](_0x5e612c(0x222)),this[_0x5e612c(0x278)]();}},_0x33b5a1['LiveShareCoordinator']=_0xbcc4bb([_0x1f6e37(0x2,_0x5242d0[_0x6f7a83(0x28f)]),_0x1f6e37(0x3,_0x5242d0[_0x6f7a83(0x2a8)](_0x4fcb2d)),_0x1f6e37(0x4,_0x5242d0[_0x6f7a83(0x27a)])],_0x33b5a1['LiveShareCoordinator']);function _0x47175b(){const _0x1308d2=_0x6f7a83,_0x20920b=_0x8f5423[_0x1308d2(0x203)](_0x33b5a1['LiveShareController']),_0x2f416b=_0x8f5423['useDependency'](_0x5242d0[_0x1308d2(0x238)]),_0x28f27f=_0x8f5423[_0x1308d2(0x231)](()=>_0x2f416b[_0x1308d2(0x202)](_0x5242d0[_0x1308d2(0x23e)][_0x1308d2(0x29b)]),void 0x0,!0x1,[]),[_0xfbcf83,_0x5052b4]=_0x10af90['useState'](null),[_0x2c7e20,_0x1128c1]=_0x10af90[_0x1308d2(0x294)](_0x109ecb['IDLE']),_0x56f2fc=_0x10af90['useRef'](null);return _0x10af90['useEffect'](()=>(_0x28f27f&&_0x20920b[_0x1308d2(0x2bd)](_0x28f27f['getUnitId']())[_0x1308d2(0x1d7)](_0x2fd237=>{const _0x4dc50e=_0x1308d2;_0x5052b4(_0x2fd237),_0x56f2fc[_0x4dc50e(0x216)]=_0x2fd237['status$'][_0x4dc50e(0x20a)](_0x3f7148=>{_0x1128c1(_0x3f7148);});}),()=>{const _0x16999c=_0x1308d2;var _0x29ffbb;(_0x29ffbb=_0x56f2fc[_0x16999c(0x216)])==null||_0x29ffbb[_0x16999c(0x24e)](),_0x56f2fc[_0x16999c(0x216)]=null;}),[_0x28f27f,_0x20920b]),_0xfbcf83?_0x5a0919['jsx'](_0x105ed1[_0x1308d2(0x2c4)],{'align':'end','disabled':_0x2c7e20===_0x109ecb[_0x1308d2(0x2b9)],'className':_0x1308d2(0x2b2),'overlay':_0x5a0919['jsx'](_0x3e142f,{'status':_0x2c7e20,'coordinator':_0xfbcf83}),'children':_0x5a0919[_0x1308d2(0x257)](_0x1308d2(0x2a7),{'className':_0x105ed1[_0x1308d2(0x1e3)](_0x1308d2(0x21e),{'univer-cursor-not-allowed':_0x2c7e20===_0x109ecb['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2c7e20!==_0x109ecb[_0x1308d2(0x2b9)]}),'type':_0x1308d2(0x2a7),'children':_0x5a0919[_0x1308d2(0x257)](_0x2b6e58,{'className':_0x1308d2(0x273)})})}):null;}function _0x3e142f(_0x5d1b8c){const _0x2da750=_0x6f7a83,{status:_0x512f7d,coordinator:_0x5f5681}=_0x5d1b8c;switch(_0x512f7d){case _0x109ecb[_0x2da750(0x2c3)]:return _0x5a0919[_0x2da750(0x257)](_0x1a7521,{'coordinator':_0x5f5681});case _0x109ecb[_0x2da750(0x204)]:return _0x5a0919['jsx'](_0x30e04f,{'coordinator':_0x5f5681});case _0x109ecb[_0x2da750(0x219)]:return _0x5a0919[_0x2da750(0x257)](_0x5d39e3,{'coordinator':_0x5f5681});case _0x109ecb[_0x2da750(0x2b9)]:return _0x5a0919[_0x2da750(0x257)](_0xad3f0,{});case _0x109ecb[_0x2da750(0x2bf)]:return _0x5a0919[_0x2da750(0x257)](_0x4d3a35,{'coordinator':_0x5f5681});default:return null;}}function _0x1a7521(_0x16bb75){const _0x44a09c=_0x6f7a83,{coordinator:_0x49883b}=_0x16bb75;return _0x5a0919[_0x44a09c(0x29e)](_0x5a0919['Fragment'],{'children':[_0x5a0919['jsx']('div',{'className':_0x44a09c(0x1f2),'children':_0x44a09c(0x274)}),_0x5a0919[_0x44a09c(0x257)](_0x105ed1[_0x44a09c(0x26d)],{'onClick':()=>_0x49883b[_0x44a09c(0x26b)](),'children':_0x44a09c(0x254)})]});}function _0x30e04f(_0x2964ad){const _0x287cff=_0x6f7a83,{coordinator:_0x43ddfc}=_0x2964ad;return _0x5a0919[_0x287cff(0x29e)](_0x5a0919[_0x287cff(0x1da)],{'children':[_0x5a0919['jsx'](_0x287cff(0x208),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x287cff(0x1f0)}),_0x5a0919[_0x287cff(0x257)](_0x105ed1[_0x287cff(0x26d)],{'onClick':()=>_0x43ddfc[_0x287cff(0x1e2)](),'children':'Stop\x20following'})]});}function _0x5d39e3(_0x5109dc){const _0x1521a3=_0x6f7a83,{coordinator:_0x5fada0}=_0x5109dc;return _0x5a0919[_0x1521a3(0x29e)](_0x5a0919[_0x1521a3(0x1da)],{'children':[_0x5a0919['jsx'](_0x1521a3(0x208),{'className':_0x1521a3(0x1f2),'children':_0x1521a3(0x268)}),_0x5a0919[_0x1521a3(0x257)](_0x105ed1['Button'],{'variant':_0x1521a3(0x2bc),'onClick':()=>_0x5fada0[_0x1521a3(0x275)](),'children':_0x1521a3(0x27e)})]});}function _0x4d3a35(_0x51dd53){const _0x3f2ac2=_0x6f7a83,{coordinator:_0x272dc9}=_0x51dd53;return _0x5a0919['jsxs'](_0x5a0919['Fragment'],{'children':[_0x5a0919[_0x3f2ac2(0x257)](_0x3f2ac2(0x208),{'className':_0x3f2ac2(0x1f2),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x5a0919[_0x3f2ac2(0x257)](_0x105ed1['Button'],{'variant':'default','onClick':()=>_0x272dc9[_0x3f2ac2(0x260)](),'children':_0x3f2ac2(0x1de)})]});}function _0xad3f0(){const _0x2342c9=_0x6f7a83;return _0x5a0919[_0x2342c9(0x257)](_0x5a0919[_0x2342c9(0x1da)],{'children':_0x2342c9(0x2bb)});}var _0x416846=Object[_0x6f7a83(0x295)],_0x467172=(_0xb8febd,_0x2b9a64,_0x356c09,_0x5019d1)=>{const _0x38ad49=_0x6f7a83;for(var _0x1dc36e=_0x5019d1>0x1?void 0x0:_0x5019d1?_0x416846(_0x2b9a64,_0x356c09):_0x2b9a64,_0x2d0845=_0xb8febd[_0x38ad49(0x287)]-0x1,_0x5382f8;_0x2d0845>=0x0;_0x2d0845--)(_0x5382f8=_0xb8febd[_0x2d0845])&&(_0x1dc36e=_0x5382f8(_0x1dc36e)||_0x1dc36e);return _0x1dc36e;},_0x702670=(_0x4c45a9,_0xb48db0)=>(_0x3421ad,_0x13d7db)=>_0xb48db0(_0x3421ad,_0x13d7db,_0x4c45a9);_0x33b5a1['DesktopLiveShareController']=class extends _0x5242d0['Disposable']{constructor(_0x53289c,_0x232075){const _0x2e4033=_0x6f7a83;super(),this['_injector']=_0x53289c,this[_0x2e4033(0x285)]=_0x232075,this[_0x2e4033(0x27d)]();}['_mountLiveShare'](){const _0x35e63c=_0x6f7a83;this['disposeWithMe'](this['_uiPartsService']['registerComponent'](_0x8f5423[_0x35e63c(0x28c)][_0x35e63c(0x1d5)],()=>_0x8f5423[_0x35e63c(0x24a)](_0x47175b,this[_0x35e63c(0x21a)])));}},_0x33b5a1[_0x6f7a83(0x246)]=_0x467172([_0x702670(0x0,_0x5242d0[_0x6f7a83(0x2a8)](_0x5242d0['Injector'])),_0x702670(0x1,_0x8f5423[_0x6f7a83(0x27f)])],_0x33b5a1['DesktopLiveShareController']);const _0x50d14f=_0x6f7a83(0x1ec),_0x5e7809={};var _0x12a215=Object[_0x6f7a83(0x295)],_0x1c4fe1=(_0x22c59d,_0x1c9c27,_0x24aad8,_0x277f99)=>{const _0x3a1263=_0x6f7a83;for(var _0x426475=_0x277f99>0x1?void 0x0:_0x277f99?_0x12a215(_0x1c9c27,_0x24aad8):_0x1c9c27,_0x2735bf=_0x22c59d[_0x3a1263(0x287)]-0x1,_0x2a738c;_0x2735bf>=0x0;_0x2735bf--)(_0x2a738c=_0x22c59d[_0x2735bf])&&(_0x426475=_0x2a738c(_0x426475)||_0x426475);return _0x426475;},_0x45a4c7=(_0x2feb64,_0x423b99)=>(_0xb7965c,_0x2087ca)=>_0x423b99(_0xb7965c,_0x2087ca,_0x2feb64);let _0x429a58=class extends _0x5242d0[_0x6f7a83(0x259)]{constructor(_0x179819){const _0x2eba10=_0x6f7a83;super(),this[_0x2eba10(0x2c0)]=_0x179819,this['_init']();}[_0x6f7a83(0x1fd)](){const _0x363230=_0x6f7a83;[_0x16ca3d[_0x363230(0x2ad)]['id'],_0x16ca3d['SetScrollOperation']['id'],_0x5c53f2[_0x363230(0x2a3)]['id']][_0x363230(0x214)](_0x369148=>{const _0x3ca241=_0x363230;this[_0x3ca241(0x1f7)](this[_0x3ca241(0x2c0)][_0x3ca241(0x2b3)](_0x369148));});}};_0x429a58=_0x1c4fe1([_0x45a4c7(0x0,_0x5242d0[_0x6f7a83(0x2a8)](_0x4fcb2d))],_0x429a58);var _0x559f52=Object[_0x6f7a83(0x265)],_0x2420a4=Object[_0x6f7a83(0x295)],_0x1a9fb8=(_0x4d4c93,_0x25903e,_0x1d6343)=>_0x25903e in _0x4d4c93?_0x559f52(_0x4d4c93,_0x25903e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d6343}):_0x4d4c93[_0x25903e]=_0x1d6343,_0x48e543=(_0x5c9624,_0x581f8a,_0xeaf8ed,_0x4a5953)=>{for(var _0x198d3e=_0x4a5953>0x1?void 0x0:_0x4a5953?_0x2420a4(_0x581f8a,_0xeaf8ed):_0x581f8a,_0x269b3f=_0x5c9624['length']-0x1,_0x4ae2de;_0x269b3f>=0x0;_0x269b3f--)(_0x4ae2de=_0x5c9624[_0x269b3f])&&(_0x198d3e=_0x4ae2de(_0x198d3e)||_0x198d3e);return _0x198d3e;},_0x2dd713=(_0x41b0e0,_0x1be5fe)=>(_0x5c2ca1,_0x1720c3)=>_0x1be5fe(_0x5c2ca1,_0x1720c3,_0x41b0e0),_0x1d2e81=(_0x2e43e7,_0x47640a,_0x1c493a)=>_0x1a9fb8(_0x2e43e7,typeof _0x47640a!=_0x6f7a83(0x243)?_0x47640a+'':_0x47640a,_0x1c493a);const _0x284089=_0x6f7a83(0x1e6);_0x33b5a1[_0x6f7a83(0x22d)]=class extends _0x5242d0[_0x6f7a83(0x299)]{constructor(_0x452257=_0x5e7809,_0x2e081b,_0x30c6c6){const _0x578a51=_0x6f7a83;super(),this['_config']=_0x452257,this[_0x578a51(0x21a)]=_0x2e081b,this[_0x578a51(0x2c5)]=_0x30c6c6;const {..._0x52da88}=_0x5242d0[_0x578a51(0x2b1)]({},_0x5e7809,this['_config']);this[_0x578a51(0x2c5)][_0x578a51(0x279)](_0x50d14f,_0x52da88);}[_0x6f7a83(0x235)](){const _0x19a32f=_0x6f7a83;_0x5242d0[_0x19a32f(0x200)](this[_0x19a32f(0x21a)],_0x5242d0['mergeOverrideWithDependencies']([[_0x4fcb2d],[_0x33b5a1[_0x19a32f(0x201)]],[_0x429a58],[_0x33b5a1[_0x19a32f(0x246)]]],this[_0x19a32f(0x283)][_0x19a32f(0x227)])),_0x5242d0[_0x19a32f(0x1d8)](this['_injector'],[[_0x429a58]]);}[_0x6f7a83(0x284)](){const _0xf5cd19=_0x6f7a83;_0x5242d0[_0xf5cd19(0x1d8)](this[_0xf5cd19(0x21a)],[[_0x33b5a1[_0xf5cd19(0x246)]]]);}},_0x1d2e81(_0x33b5a1['UniverLiveSharePlugin'],_0x6f7a83(0x1df),_0x5242d0[_0x6f7a83(0x23e)][_0x6f7a83(0x1ff)]),_0x1d2e81(_0x33b5a1['UniverLiveSharePlugin'],_0x6f7a83(0x25c),_0x284089),_0x33b5a1[_0x6f7a83(0x22d)]=_0x48e543([_0x5242d0[_0x6f7a83(0x240)](_0x54c375[_0x6f7a83(0x213)]),_0x2dd713(0x1,_0x5242d0['Inject'](_0x5242d0['Injector'])),_0x2dd713(0x2,_0x5242d0[_0x6f7a83(0x28f)])],_0x33b5a1[_0x6f7a83(0x22d)]),_0x33b5a1[_0x6f7a83(0x215)]=_0x47175b,_0x33b5a1[_0x6f7a83(0x2b7)]=_0x4fcb2d,_0x33b5a1[_0x6f7a83(0x1d9)]=_0x109ecb,Object[_0x6f7a83(0x265)](_0x33b5a1,Symbol[_0x6f7a83(0x241)],{'value':_0x6f7a83(0x256)});}));function _0x593b(){const _0x89ce33=['complete','params','LiveShareIcon','UniverProCollaboration','SetZoomRatioOperation','Injector','_stopPresenting','takeUntil','merge','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','registerSharedOperation','amd','toDisposable','UniverUi','LiveShareService','ONLINE','OFFLINE','find','You\x27are\x20offline.','text','getLiveShareCoordinator','data','PRESENTING','_liveShareService','fill','next','IDLE','Dropdown','_configService','function','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','HEADER_MENU','getConfig','then','touchDependencies','LiveShareStatus','Fragment','getUnitId','children','idSuffix','Stop\x20presenting','type','_handleOperation','createInstance','stopFollowing','clsx','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','LIVESHARE_REQUEST_HOST','UNIVER_LIVE_SHARE_PLUGIN','getValue','presenting','UniverProCollaborationClient','_entities','send','live-share.config','init','stringify','_commandDisposable','You\x27re\x20following\x20the\x20presenter','_stopFollowing','univer-mb-3\x20univer-w-full\x20univer-text-sm','assign','CollaborationSessionService','entries','presenter','disposeWithMe','exports','toString','_handleNewChangeSets','RxDisposable','asObservable','_init','UniverProLiveShare','UNIVER_UNKNOWN','registerDependencies','LiveShareController','getCurrentTypeOfUnit$','useDependency','FOLLOWING','2663946OcjreK','url(#$1','tag','div','displayName','subscribe','object','following','evenodd','includes','random','_presenter','2224496EEqOal','UniverCore','UniverCollaborationClientPlugin','forEach','LiveShare','current','clear','CollaborationEvent','NOT_FOLLOWING','_injector','colorChannel1','replace','get','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','@univerjs-pro/collaboration','getTypeOfUnitAdded$','OPERATION','idle','throttleTime','_startLiveShareCoordinator','getInitialStates','forwardRef','override','event$','createElement','_beIdle','attrs','rxjs','UniverLiveSharePlugin','_handleNewHost','delete','@univerjs/design','useObservable','getLiveShareCoordinatorSync','set','@univerjs/sheets-ui','onStarting','shouldShareOperation','NEW_CHANGESETS','IUniverInstanceService','http://www.w3.org/2000/svg','_status','154OySAmq','703362XqQdDG','@univerjs/sheets','UniverInstanceType','_startFollowing','DependentOn','toStringTag','LIVESHARE_NEW_HOST','symbol','_collabSessionService','defIds','DesktopLiveShareController','0\x200\x2017\x2017','1em','operations','connectInjector','path','xlink:href','LIVESHARE_FETCH_OPERATIONS','unsubscribe','5DVVGrC','1282797BgCQSz','_handleOnline','currentColor','6auAtRc','Start','_collabSession','Module','jsx','6028068jWmPMC','Disposable','LiveShareCoordinator','dispose','pluginName','trim','@univerjs-pro/collaboration-client','_startPresenting','stopPresenting','DisposableCollection','UniverSheets','_univerInstanceService','operators','defineProperty','sessionStatus$','_sharedOperations','You\x27re\x20not\x20following\x20the\x20presenter','live-share-icon','42UhfaCH','tryStartPresenting','Subject','Button','getTypeOfUnitDisposed$','_commandService','pipe','requireSession','SAME_OPERATION_SHARE_INTERVAL','univer-size-4','Present\x20this\x20document','startFollowing','has','_status$','_fetchOperations','setConfig','ICommandService','substring','univerjs-icon\x20univerjs-icon-','_mountLiveShare','Start\x20following','IUIPartsService','mutations','useRef','_unitID','_config','onRendered','_uiPartsService','@univerjs/ui','length','mask','not-following','executeCommand','_reporters','BuiltInUIPart','@univerjs/core','1810017JKUHeI','IConfigService','add','memberID','getMemberID','registerInitialStateReporter','useState','getOwnPropertyDescriptor','string','_handleOffline','offline','Plugin','dispose$','UNIVER_SHEET','LIVESHARE_OPERATION','SessionStatus','jsxs','React','map','3061720zrguTE','use','SetWorksheetActiveOperation','defs','LIVESHARE_TERMINATE','InsertSheetMutation','button','Inject'];_0x593b=function(){return _0x89ce33;};return _0x593b();}
1
+ (function(_0x5c3af2,_0x29c394){const _0x40fe90=_0x1ad8,_0x3011f2=_0x5c3af2();while(!![]){try{const _0x2cc2e7=-parseInt(_0x40fe90(0x171))/0x1+parseInt(_0x40fe90(0x139))/0x2+-parseInt(_0x40fe90(0x1b5))/0x3+parseInt(_0x40fe90(0x1d1))/0x4+parseInt(_0x40fe90(0x1d3))/0x5+parseInt(_0x40fe90(0x1fa))/0x6+-parseInt(_0x40fe90(0x162))/0x7;if(_0x2cc2e7===_0x29c394)break;else _0x3011f2['push'](_0x3011f2['shift']());}catch(_0x5674a1){_0x3011f2['push'](_0x3011f2['shift']());}}}(_0x3c0b,0xa27b1),function(_0x4e189e,_0x429ba6){const _0x3cfb15=_0x1ad8;typeof exports==_0x3cfb15(0x1f8)&&typeof module<'u'?_0x429ba6(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==_0x3cfb15(0x1bb)&&define[_0x3cfb15(0x1b4)]?define([_0x3cfb15(0x12a),_0x3cfb15(0x19b),_0x3cfb15(0x13f),_0x3cfb15(0x1d4),_0x3cfb15(0x1a8),_0x3cfb15(0x1f5),_0x3cfb15(0x174),'@univerjs-pro/collaboration-client',_0x3cfb15(0x1ff),_0x3cfb15(0x19f),'rxjs/operators',_0x3cfb15(0x1d6)],_0x429ba6):(_0x4e189e=typeof globalThis<'u'?globalThis:_0x4e189e||self,_0x429ba6(_0x4e189e['UniverProLiveShare']={},_0x4e189e[_0x3cfb15(0x14a)],_0x4e189e['UniverUi'],_0x4e189e[_0x3cfb15(0x1d0)],_0x4e189e['UniverDesign'],_0x4e189e['React'],_0x4e189e['UniverProCollaboration'],_0x4e189e[_0x3cfb15(0x155)],_0x4e189e[_0x3cfb15(0x13c)],_0x4e189e[_0x3cfb15(0x19f)],_0x4e189e[_0x3cfb15(0x19f)][_0x3cfb15(0x1bd)],_0x4e189e[_0x3cfb15(0x1df)]));}(this,function(_0x18338e,_0x3ff989,_0x397850,_0x1726d5,_0x2d0b19,_0x2286f3,_0x9536be,_0x1b827d,_0x1bc695,_0x4e2f94,_0x25be1a,_0x466726){'use strict';const _0x58ab41=_0x1ad8;var _0x6f0577=Object[_0x58ab41(0x1a0)],_0x402e83=(_0xc11418,_0x38759c,_0x13dcf2)=>_0x38759c in _0xc11418?_0x6f0577(_0xc11418,_0x38759c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x13dcf2}):_0xc11418[_0x38759c]=_0x13dcf2,_0x2ca1b0=(_0x499898,_0x450217,_0x23966f)=>_0x402e83(_0x499898,typeof _0x450217!=_0x58ab41(0x129)?_0x450217+'':_0x450217,_0x23966f);function _0x18e04c({ref:_0xf5ba3e,..._0x4b981b}){const _0x49c4b6=_0x58ab41,{icon:_0x41f69a,id:_0x629fdf,className:_0x1d866a,extend:_0x26a266,..._0x27066e}=_0x4b981b,_0x1bc631=(_0x49c4b6(0x1ed)+_0x629fdf+'\x20'+(_0x1d866a||''))['trim'](),_0x23e72f=_0x2286f3[_0x49c4b6(0x185)]('_'+_0x4c38ae());return _0x5df3af(_0x41f69a,''+_0x629fdf,{'defIds':_0x41f69a[_0x49c4b6(0x1fb)],'idSuffix':_0x23e72f[_0x49c4b6(0x1a9)]},{'ref':_0xf5ba3e,'className':_0x1bc631,..._0x27066e},_0x26a266);}function _0x5df3af(_0xad4fa2,_0x1f3d0b,_0x58a660,_0x2575c9,_0xef2b52){const _0x4a80e2=_0x58ab41;return _0x2286f3['createElement'](_0xad4fa2['tag'],{'key':_0x1f3d0b,..._0x2c4195(_0xad4fa2,_0x58a660,_0xef2b52),..._0x2575c9},(_0x5db67c(_0xad4fa2,_0x58a660)[_0x4a80e2(0x191)]||[])[_0x4a80e2(0x136)]((_0x102096,_0x581ead)=>_0x5df3af(_0x102096,_0x1f3d0b+'-'+_0xad4fa2[_0x4a80e2(0x186)]+'-'+_0x581ead,_0x58a660,void 0x0,_0xef2b52)));}function _0x2c4195(_0x2093d0,_0x5dbfc2,_0x47ef25){const _0xf16f82=_0x58ab41,_0x292dbd={..._0x2093d0[_0xf16f82(0x14d)]};_0x47ef25!=null&&_0x47ef25[_0xf16f82(0x188)]&&_0x292dbd[_0xf16f82(0x1a5)]===_0xf16f82(0x188)&&(_0x292dbd[_0xf16f82(0x1a5)]=_0x47ef25['colorChannel1']),_0x2093d0[_0xf16f82(0x186)]==='mask'&&_0x292dbd['id']&&(_0x292dbd['id']=_0x292dbd['id']+_0x5dbfc2[_0xf16f82(0x1d8)]),Object[_0xf16f82(0x197)](_0x292dbd)['forEach'](([_0x5156ef,_0x1bc174])=>{const _0x2adfa2=_0xf16f82;_0x5156ef===_0x2adfa2(0x1ba)&&typeof _0x1bc174==_0x2adfa2(0x17c)&&(_0x292dbd[_0x5156ef]=_0x1bc174[_0x2adfa2(0x1b3)](/url\(#(.*)\)/,_0x2adfa2(0x1f1)+_0x5dbfc2['idSuffix']+')'));});const {defIds:_0x277692}=_0x5dbfc2;return!_0x277692||_0x277692[_0xf16f82(0x1ad)]===0x0||(_0x2093d0[_0xf16f82(0x186)]===_0xf16f82(0x131)&&_0x292dbd[_0xf16f82(0x183)]&&(_0x292dbd[_0xf16f82(0x183)]=_0x292dbd[_0xf16f82(0x183)]+_0x5dbfc2[_0xf16f82(0x1d8)]),Object[_0xf16f82(0x197)](_0x292dbd)[_0xf16f82(0x124)](([_0xf51020,_0xae0835])=>{const _0x4be15d=_0xf16f82;typeof _0xae0835==_0x4be15d(0x17c)&&(_0x292dbd[_0xf51020]=_0xae0835[_0x4be15d(0x1b3)](/url\(#(.*)\)/,'url(#$1'+_0x5dbfc2['idSuffix']+')'));})),_0x292dbd;}function _0x5db67c(_0x384d39,_0x50462a){const _0x1a5618=_0x58ab41;var _0x4a10e0;const {defIds:_0x3e27e5}=_0x50462a;return!_0x3e27e5||_0x3e27e5[_0x1a5618(0x1ad)]===0x0?_0x384d39:_0x384d39[_0x1a5618(0x186)]==='defs'&&((_0x4a10e0=_0x384d39[_0x1a5618(0x191)])!=null&&_0x4a10e0[_0x1a5618(0x1ad)])?{..._0x384d39,'children':_0x384d39['children'][_0x1a5618(0x136)](_0x5a6170=>typeof _0x5a6170[_0x1a5618(0x14d)]['id']==_0x1a5618(0x17c)&&_0x3e27e5&&_0x3e27e5['includes'](_0x5a6170[_0x1a5618(0x14d)]['id'])?{..._0x5a6170,'attrs':{..._0x5a6170[_0x1a5618(0x14d)],'id':_0x5a6170[_0x1a5618(0x14d)]['id']+_0x50462a[_0x1a5618(0x1d8)]}}:_0x5a6170)}:_0x384d39;}function _0x4c38ae(){const _0x575c51=_0x58ab41;return Math[_0x575c51(0x159)]()[_0x575c51(0x1f4)](0x24)[_0x575c51(0x1a1)](0x2,0x8);}_0x18e04c[_0x58ab41(0x1be)]='UniverIcon';const _0x43156b={'tag':_0x58ab41(0x15b),'attrs':{'xmlns':_0x58ab41(0x18b),'fill':'none','viewBox':_0x58ab41(0x1f6),'width':_0x58ab41(0x1f7),'height':_0x58ab41(0x1f7)},'children':[{'tag':_0x58ab41(0x1c2),'attrs':{'fill':'currentColor','d':_0x58ab41(0x160)}},{'tag':_0x58ab41(0x1c2),'attrs':{'fill':_0x58ab41(0x156),'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':_0x58ab41(0x13e),'clipRule':_0x58ab41(0x13e)}}]},_0x1a3c44=_0x2286f3[_0x58ab41(0x201)](function(_0x5185e2,_0x14a75f){const _0x55afac=_0x58ab41;return _0x2286f3[_0x55afac(0x137)](_0x18e04c,Object[_0x55afac(0x15f)]({},_0x5185e2,{'id':_0x55afac(0x16e),'ref':_0x14a75f,'icon':_0x43156b}));});_0x1a3c44['displayName']=_0x58ab41(0x1cb);class _0x32dc4e extends _0x3ff989[_0x58ab41(0x12e)]{constructor(){const _0x3f9844=_0x58ab41;super(...arguments),_0x2ca1b0(this,_0x3f9844(0x17d),new Set()),_0x2ca1b0(this,_0x3f9844(0x1fd),new Set());}[_0x58ab41(0x1c8)](_0x40d2e9){const _0x2f5818=_0x58ab41;return this[_0x2f5818(0x17d)][_0x2f5818(0x196)](_0x40d2e9),_0x3ff989[_0x2f5818(0x199)](()=>this[_0x2f5818(0x17d)]['delete'](_0x40d2e9));}[_0x58ab41(0x1f9)](_0x2978c4){const _0x4a0d9a=_0x58ab41;return this[_0x4a0d9a(0x1fd)][_0x4a0d9a(0x196)](_0x2978c4),_0x3ff989[_0x4a0d9a(0x199)](()=>this[_0x4a0d9a(0x1fd)][_0x4a0d9a(0x18f)](_0x2978c4));}[_0x58ab41(0x1ee)](_0x4037a6){const _0x14884a=_0x58ab41;return this['_sharedOperations'][_0x14884a(0x1c5)](_0x4037a6);}[_0x58ab41(0x13d)](_0x383f09){const _0x2e4d77=_0x58ab41;return Array[_0x2e4d77(0x178)](this[_0x2e4d77(0x1fd)])[_0x2e4d77(0x136)](_0xce8d13=>_0xce8d13(_0x383f09));}}var _0xed7e5b=Object[_0x58ab41(0x1bc)],_0x21f7cd=(_0x3c7717,_0x339cd1,_0x5a409a,_0x1fda7b)=>{const _0x578772=_0x58ab41;for(var _0x53905a=_0x1fda7b>0x1?void 0x0:_0x1fda7b?_0xed7e5b(_0x339cd1,_0x5a409a):_0x339cd1,_0x1eeb51=_0x3c7717[_0x578772(0x1ad)]-0x1,_0x320190;_0x1eeb51>=0x0;_0x1eeb51--)(_0x320190=_0x3c7717[_0x1eeb51])&&(_0x53905a=_0x320190(_0x53905a)||_0x53905a);return _0x53905a;},_0x351c46=(_0x2482bc,_0x519105)=>(_0xaeaac7,_0x43f2ec)=>_0x519105(_0xaeaac7,_0x43f2ec,_0x2482bc);_0x18338e[_0x58ab41(0x145)]=class extends _0x3ff989[_0x58ab41(0x146)]{constructor(_0x1141c0,_0x5ab2df,_0x5787be){const _0x52a6d5=_0x58ab41;super(),_0x2ca1b0(this,_0x52a6d5(0x1e6),new Map()),(this[_0x52a6d5(0x18e)]=_0x1141c0,this['_injector']=_0x5ab2df,this[_0x52a6d5(0x122)]=_0x5787be,this[_0x52a6d5(0x154)]());}async[_0x58ab41(0x193)](_0x4afa23){const _0x15e0c0=_0x58ab41;return this[_0x15e0c0(0x1e6)][_0x15e0c0(0x1c5)](_0x4afa23)||await this[_0x15e0c0(0x149)](_0x4afa23),this[_0x15e0c0(0x1e6)]['get'](_0x4afa23);}[_0x58ab41(0x1eb)](_0x512fa7){var _0x151a1a;return(_0x151a1a=this['_entities']['get'](_0x512fa7))!=null?_0x151a1a:null;}[_0x58ab41(0x154)](){const _0x43868b=_0x58ab41;this['_univerInstanceService'][_0x43868b(0x173)](_0x3ff989['UniverInstanceType'][_0x43868b(0x166)])['pipe'](_0x25be1a['takeUntil'](this[_0x43868b(0x123)]))[_0x43868b(0x1e3)](async _0x18a8fa=>{const _0xaa8ecc=_0x43868b,_0x43d42e=_0x18a8fa[_0xaa8ecc(0x1ab)]();this[_0xaa8ecc(0x1e6)][_0xaa8ecc(0x1c5)](_0x43d42e)||this[_0xaa8ecc(0x149)](_0x43d42e);}),this[_0x43868b(0x18e)][_0x43868b(0x1e5)](_0x3ff989[_0x43868b(0x148)][_0x43868b(0x166)])[_0x43868b(0x12b)](_0x25be1a['takeUntil'](this[_0x43868b(0x123)]))[_0x43868b(0x1e3)](_0x185313=>{const _0x3a8f94=_0x43868b,_0x4df22f=_0x185313['getUnitId'](),_0x51acd1=this[_0x3a8f94(0x1e6)][_0x3a8f94(0x1b1)](_0x4df22f);_0x51acd1==null||_0x51acd1['dispose']();});}async['_startLiveShareCoordinator'](_0x480e34){const _0x21f0e1=_0x58ab41,_0x179faa=await this[_0x21f0e1(0x122)][_0x21f0e1(0x1ce)](_0x480e34),_0x2c4d6b=this['_injector'][_0x21f0e1(0x1cf)](_0x18338e[_0x21f0e1(0x1cd)],_0x480e34,_0x179faa);return _0x2c4d6b[_0x21f0e1(0x190)](),this['_entities'][_0x21f0e1(0x1e0)](_0x480e34,_0x2c4d6b),_0x2c4d6b;}},_0x18338e[_0x58ab41(0x145)]=_0x21f7cd([_0x351c46(0x0,_0x3ff989[_0x58ab41(0x14f)]),_0x351c46(0x1,_0x3ff989[_0x58ab41(0x16d)](_0x3ff989[_0x58ab41(0x13b)])),_0x351c46(0x2,_0x3ff989[_0x58ab41(0x16d)](_0x1b827d[_0x58ab41(0x14c)]))],_0x18338e[_0x58ab41(0x145)]);var _0x14cbcf=(_0xa3bdf8=>(_0xa3bdf8[_0x58ab41(0x1da)]='offline',_0xa3bdf8[_0x58ab41(0x15e)]='idle',_0xa3bdf8['FOLLOWING']=_0x58ab41(0x198),_0xa3bdf8[_0x58ab41(0x16b)]=_0x58ab41(0x16a),_0xa3bdf8[_0x58ab41(0x1ea)]=_0x58ab41(0x1b6),_0xa3bdf8))(_0x14cbcf||{});const _0x253022='SAME_OPERATION_SHARE_INTERVAL',_0x44c30e=0xc8;_0x18338e[_0x58ab41(0x1cd)]=class extends _0x3ff989[_0x58ab41(0x146)]{constructor(_0x3371ff,_0x43226d,_0x4fd965,_0x25411e,_0x24d479){const _0x16e585=_0x58ab41;super(),_0x2ca1b0(this,_0x16e585(0x144),new _0x4e2f94[(_0x16e585(0x1d7))](_0x16e585(0x184))),_0x2ca1b0(this,'status$',this[_0x16e585(0x144)][_0x16e585(0x151)]()),_0x2ca1b0(this,_0x16e585(0x154),!0x1),_0x2ca1b0(this,_0x16e585(0x1bf),null),_0x2ca1b0(this,_0x16e585(0x1db),null),(this[_0x16e585(0x163)]=_0x3371ff,this[_0x16e585(0x1e8)]=_0x43226d,this[_0x16e585(0x1ac)]=_0x4fd965,this[_0x16e585(0x1b0)]=_0x25411e,this[_0x16e585(0x194)]=_0x24d479);}get[_0x58ab41(0x1dd)](){const _0x5c448a=_0x58ab41;return this[_0x5c448a(0x144)]['getValue']();}['dispose'](){const _0xc2725c=_0x58ab41;var _0x368f2a;(_0x368f2a=this['_commandDisposable'])==null||_0x368f2a[_0xc2725c(0x138)](),this[_0xc2725c(0x144)][_0xc2725c(0x161)](_0xc2725c(0x184)),this[_0xc2725c(0x144)]['complete']();}[_0x58ab41(0x14b)](){const _0x1b2795=_0x58ab41;return this[_0x1b2795(0x1dd)];}[_0x58ab41(0x190)](){const _0x379fbd=_0x58ab41;this[_0x379fbd(0x154)]||(this['_init']=!0x0,this[_0x379fbd(0x1e8)][_0x379fbd(0x17b)]['pipe'](_0x25be1a[_0x379fbd(0x1de)](this['dispose$']))['subscribe'](_0x2b2542=>{const _0x3a9aef=_0x379fbd;switch(_0x2b2542){case _0x1b827d[_0x3a9aef(0x16c)]['OFFLINE']:this[_0x3a9aef(0x1c9)]();break;case _0x1b827d[_0x3a9aef(0x16c)][_0x3a9aef(0x187)]:this[_0x3a9aef(0x1ae)]();break;}}),this[_0x379fbd(0x1e8)][_0x379fbd(0x1b9)][_0x379fbd(0x12b)](_0x25be1a[_0x379fbd(0x1de)](this[_0x379fbd(0x123)]))['subscribe'](_0xd94667=>{const _0x330088=_0x379fbd,{eventID:_0x263b49}=_0xd94667;switch(_0x263b49){case _0x9536be[_0x330088(0x12c)]['LIVESHARE_NEW_HOST']:this[_0x330088(0x1ca)](_0xd94667);break;case _0x9536be['CollaborationEvent'][_0x330088(0x140)]:this[_0x330088(0x170)](_0xd94667);break;case _0x9536be['CollaborationEvent'][_0x330088(0x14e)]:this[_0x330088(0x165)]();break;case _0x9536be[_0x330088(0x12c)][_0x330088(0x157)]:this[_0x330088(0x189)](_0xd94667);break;}}));}[_0x58ab41(0x18d)](){const _0x5b5495=_0x58ab41;this[_0x5b5495(0x1e8)][_0x5b5495(0x18a)]({'eventID':_0x9536be[_0x5b5495(0x12c)][_0x5b5495(0x1a2)],'data':{'unitID':this[_0x5b5495(0x163)],'userID':this[_0x5b5495(0x1e8)]['getMemberID']()}},this[_0x5b5495(0x163)]);}[_0x58ab41(0x1a3)](){const _0x557d1d=_0x58ab41;this[_0x557d1d(0x1dd)]==='presenting'&&(this[_0x557d1d(0x144)][_0x557d1d(0x161)](_0x557d1d(0x184)),this['_collabSession'][_0x557d1d(0x18a)]({'eventID':_0x9536be[_0x557d1d(0x12c)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x557d1d(0x163)]}},this[_0x557d1d(0x163)]));}[_0x58ab41(0x15d)](){const _0x2cb3e7=_0x58ab41;this['_status']===_0x2cb3e7(0x16a)&&(this[_0x2cb3e7(0x144)][_0x2cb3e7(0x161)](_0x2cb3e7(0x198)),this['_startFollowing']());}[_0x58ab41(0x18c)](){const _0x3e1c3e=_0x58ab41;this[_0x3e1c3e(0x1dd)]==='following'&&this['_stopFollowing']();}[_0x58ab41(0x1ca)](_0x22c277){const _0x334e4e=_0x58ab41,{presenter:_0x2830d7}=_0x22c277[_0x334e4e(0x17f)],_0x2b4d84=this[_0x334e4e(0x1e8)][_0x334e4e(0x164)]();this[_0x334e4e(0x1db)]=_0x2830d7,_0x2830d7===_0x2b4d84?(this[_0x334e4e(0x12d)](),this[_0x334e4e(0x195)]()):this['_status']!==_0x334e4e(0x16a)&&(this['_stopPresenting'](),this['_startFollowing']());}['_fetchOperations'](){const _0x2539a3=_0x58ab41,_0x2c75cb={'eventID':_0x9536be[_0x2539a3(0x12c)][_0x2539a3(0x19c)]};this[_0x2539a3(0x1e8)][_0x2539a3(0x18a)](_0x2c75cb,this[_0x2539a3(0x163)]);}[_0x58ab41(0x165)](){const _0x2536e2=_0x58ab41;this[_0x2536e2(0x1db)]=null,this[_0x2536e2(0x1dd)]!==_0x2536e2(0x1b6)&&this[_0x2536e2(0x130)]();}[_0x58ab41(0x189)](_0x30cca4){const _0x398f43=_0x58ab41;if(this['_status']===_0x398f43(0x198)&&this[_0x398f43(0x1db)]===_0x30cca4[_0x398f43(0x17f)]['memberID']){const _0x169f08=_0x9536be[_0x398f43(0x15a)](_0x30cca4[_0x398f43(0x17f)])[_0x398f43(0x142)]['reverse']()['find'](_0x2b73cc=>_0x2b73cc['id']===_0x1bc695[_0x398f43(0x1ef)]['id']);if(_0x169f08){const _0x585f92=_0x169f08[_0x398f43(0x158)]['unitId'],_0x118054=_0x169f08['params'][_0x398f43(0x132)]['id'];setTimeout(()=>{const _0x4aa64d=_0x398f43;this[_0x4aa64d(0x194)]['executeCommand'](_0x1bc695[_0x4aa64d(0x19d)]['id'],{'unitId':_0x585f92,'subUnitId':_0x118054},{'fromCollab':!0x0});});}}}[_0x58ab41(0x195)](){const _0x20403d=_0x58ab41;this['_status$']['next']('presenting');const _0x101fdf=new Map(),_0x361afe=this[_0x20403d(0x1bf)]=new _0x3ff989[(_0x20403d(0x134))]();_0x361afe[_0x20403d(0x196)](_0x3ff989[_0x20403d(0x199)](()=>{const _0x163ffe=_0x20403d;_0x101fdf[_0x163ffe(0x124)](_0xb6e06d=>_0xb6e06d['complete']()),_0x101fdf[_0x163ffe(0x1af)]();})),_0x361afe['add'](this['_commandService'][_0x20403d(0x121)](_0x2923a4=>{const _0x4b40e1=_0x20403d;var _0x594f3c;if(_0x2923a4[_0x4b40e1(0x1b2)]!==_0x3ff989[_0x4b40e1(0x13a)]['OPERATION']||!this[_0x4b40e1(0x1b0)][_0x4b40e1(0x1ee)](_0x2923a4['id']))return;const {id:_0x18d102}=_0x2923a4;let _0x94024a;_0x101fdf[_0x4b40e1(0x1c5)](_0x18d102)?_0x94024a=_0x101fdf[_0x4b40e1(0x1b1)](_0x18d102):(_0x94024a=new _0x4e2f94['Subject'](),_0x101fdf[_0x4b40e1(0x1e0)](_0x18d102,_0x94024a),_0x94024a[_0x4b40e1(0x12b)](_0x25be1a['throttleTime']((_0x594f3c=this[_0x4b40e1(0x1ac)][_0x4b40e1(0x1ec)](_0x253022))!=null?_0x594f3c:_0x44c30e,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0xa834ab=>{const _0x2eebba=_0x4b40e1;this[_0x2eebba(0x1e8)][_0x2eebba(0x18a)]({'eventID':_0x9536be[_0x2eebba(0x12c)][_0x2eebba(0x140)],'data':{'unitID':this[_0x2eebba(0x163)],'operations':{[_0xa834ab['id']]:{'id':_0xa834ab['id'],'params':JSON['stringify'](_0xa834ab[_0x2eebba(0x158)])}}}},this[_0x2eebba(0x163)]);})),_0x94024a[_0x4b40e1(0x161)](_0x2923a4);})),this[_0x20403d(0x1b0)][_0x20403d(0x13d)](this['_unitID'])[_0x20403d(0x124)](_0x49065f=>this[_0x20403d(0x1e8)][_0x20403d(0x18a)]({'eventID':_0x9536be[_0x20403d(0x12c)][_0x20403d(0x140)],'data':{'unitID':this[_0x20403d(0x163)],'operations':{[_0x49065f['id']]:{'id':_0x49065f['id'],'params':JSON[_0x20403d(0x192)](_0x49065f[_0x20403d(0x158)])}}}},this['_unitID']));}[_0x58ab41(0x141)](){const _0x54765d=_0x58ab41;var _0x45a230;this[_0x54765d(0x144)][_0x54765d(0x161)](_0x54765d(0x184)),(_0x45a230=this[_0x54765d(0x1bf)])==null||_0x45a230[_0x54765d(0x138)](),this[_0x54765d(0x1bf)]=null;}[_0x58ab41(0x1a4)](){const _0x573f46=_0x58ab41;var _0x3f71b5;(_0x3f71b5=this[_0x573f46(0x1bf)])==null||_0x3f71b5[_0x573f46(0x138)](),this['_status$'][_0x573f46(0x161)]('following');}[_0x58ab41(0x130)](){const _0x130b2d=_0x58ab41;var _0x12fd8e;this[_0x130b2d(0x144)][_0x130b2d(0x161)](_0x130b2d(0x184)),(_0x12fd8e=this[_0x130b2d(0x1bf)])==null||_0x12fd8e[_0x130b2d(0x138)](),this['_commandDisposable']=null;}[_0x58ab41(0x12d)](){const _0x32ec71=_0x58ab41;var _0x21be23;this['_status$'][_0x32ec71(0x161)]('not-following'),(_0x21be23=this[_0x32ec71(0x1bf)])==null||_0x21be23[_0x32ec71(0x138)]();}['_handleOperation'](_0x54f00e){const _0x49d2e5=_0x58ab41;if(['presenting',_0x49d2e5(0x16a),_0x49d2e5(0x1d2)]['includes'](this[_0x49d2e5(0x1dd)])||!_0x54f00e[_0x49d2e5(0x17f)][_0x49d2e5(0x182)]||_0x54f00e['data'][_0x49d2e5(0x182)]===this[_0x49d2e5(0x1e8)][_0x49d2e5(0x164)]())return;this[_0x49d2e5(0x1dd)]===_0x49d2e5(0x184)&&this['_startFollowing']();const _0x2d62f0=_0x54f00e[_0x49d2e5(0x17f)][_0x49d2e5(0x125)];Object[_0x49d2e5(0x180)](_0x2d62f0)[_0x49d2e5(0x124)](_0x624f4a=>{const _0x7c4711=_0x49d2e5;this[_0x7c4711(0x194)][_0x7c4711(0x16f)](_0x624f4a['id'],_0x624f4a[_0x7c4711(0x158)]?JSON['parse'](_0x624f4a['params']):null,{'fromCollab':!0x0});});}[_0x58ab41(0x1c9)](){const _0x2f70b5=_0x58ab41;var _0x2678f1;this[_0x2f70b5(0x144)][_0x2f70b5(0x161)](_0x2f70b5(0x1d2)),(_0x2678f1=this['_commandDisposable'])==null||_0x2678f1[_0x2f70b5(0x138)]();}['_handleOnline'](){const _0x2bcb21=_0x58ab41;this[_0x2bcb21(0x144)][_0x2bcb21(0x161)](_0x2bcb21(0x184)),this[_0x2bcb21(0x1d5)]();}},_0x18338e['LiveShareCoordinator']=_0x21f7cd([_0x351c46(0x2,_0x3ff989[_0x58ab41(0x1e2)]),_0x351c46(0x3,_0x3ff989[_0x58ab41(0x16d)](_0x32dc4e)),_0x351c46(0x4,_0x3ff989['ICommandService'])],_0x18338e['LiveShareCoordinator']);function _0x3a84e1(){const _0x572394=_0x58ab41,_0x56d7e6=_0x397850[_0x572394(0x1fe)](_0x18338e[_0x572394(0x145)]),_0x7855b1=_0x397850['useDependency'](_0x3ff989[_0x572394(0x14f)]),_0x14b9e3=_0x397850[_0x572394(0x1b7)](()=>_0x7855b1[_0x572394(0x1c7)](_0x3ff989[_0x572394(0x148)][_0x572394(0x166)]),void 0x0,!0x1,[]),[_0x1df578,_0x519b10]=_0x2286f3[_0x572394(0x120)](null),[_0x162630,_0x82aef5]=_0x2286f3[_0x572394(0x120)](_0x14cbcf['IDLE']),_0x34f7a4=_0x2286f3[_0x572394(0x185)](null);return _0x2286f3[_0x572394(0x177)](()=>(_0x14b9e3&&_0x56d7e6['getLiveShareCoordinator'](_0x14b9e3['getUnitId']())[_0x572394(0x172)](_0x391041=>{const _0x5eec5a=_0x572394;_0x519b10(_0x391041),_0x34f7a4[_0x5eec5a(0x1a9)]=_0x391041[_0x5eec5a(0x200)][_0x5eec5a(0x1e3)](_0x3276ee=>{_0x82aef5(_0x3276ee);});}),()=>{const _0x2afca0=_0x572394;var _0x45382e;(_0x45382e=_0x34f7a4[_0x2afca0(0x1a9)])==null||_0x45382e[_0x2afca0(0x1cc)](),_0x34f7a4[_0x2afca0(0x1a9)]=null;}),[_0x14b9e3,_0x56d7e6]),_0x1df578?_0x1726d5[_0x572394(0x1d9)](_0x2d0b19[_0x572394(0x150)],{'align':'end','disabled':_0x162630===_0x14cbcf['OFFLINE'],'className':_0x572394(0x127),'overlay':_0x1726d5[_0x572394(0x1d9)](_0x5c1665,{'status':_0x162630,'coordinator':_0x1df578}),'children':_0x1726d5[_0x572394(0x1d9)](_0x572394(0x128),{'className':_0x2d0b19[_0x572394(0x181)](_0x572394(0x1c3),{'univer-cursor-not-allowed':_0x162630===_0x14cbcf['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x162630!==_0x14cbcf[_0x572394(0x1da)]}),'type':_0x572394(0x128),'children':_0x1726d5[_0x572394(0x1d9)](_0x1a3c44,{'className':_0x572394(0x1dc)})})}):null;}function _0x5c1665(_0x47bcca){const _0x43f72f=_0x58ab41,{status:_0x363010,coordinator:_0x35783f}=_0x47bcca;switch(_0x363010){case _0x14cbcf[_0x43f72f(0x15e)]:return _0x1726d5['jsx'](_0x2b6dfb,{'coordinator':_0x35783f});case _0x14cbcf[_0x43f72f(0x167)]:return _0x1726d5[_0x43f72f(0x1d9)](_0x45a3c2,{'coordinator':_0x35783f});case _0x14cbcf['NOT_FOLLOWING']:return _0x1726d5[_0x43f72f(0x1d9)](_0x2ff7f5,{'coordinator':_0x35783f});case _0x14cbcf[_0x43f72f(0x1da)]:return _0x1726d5[_0x43f72f(0x1d9)](_0xfc082a,{});case _0x14cbcf[_0x43f72f(0x1ea)]:return _0x1726d5['jsx'](_0x22b1f7,{'coordinator':_0x35783f});default:return null;}}function _0x2b6dfb(_0x3604af){const _0x1d894e=_0x58ab41,{coordinator:_0x4e0b8b}=_0x3604af;return _0x1726d5['jsxs'](_0x1726d5['Fragment'],{'children':[_0x1726d5[_0x1d894e(0x1d9)](_0x1d894e(0x1e1),{'className':_0x1d894e(0x1c0),'children':_0x1d894e(0x15c)}),_0x1726d5[_0x1d894e(0x1d9)](_0x2d0b19[_0x1d894e(0x203)],{'onClick':()=>_0x4e0b8b[_0x1d894e(0x18d)](),'children':_0x1d894e(0x153)})]});}function _0x45a3c2(_0x1da88f){const _0x58f944=_0x58ab41,{coordinator:_0x37ad99}=_0x1da88f;return _0x1726d5[_0x58f944(0x202)](_0x1726d5['Fragment'],{'children':[_0x1726d5[_0x58f944(0x1d9)](_0x58f944(0x1e1),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x58f944(0x12f)}),_0x1726d5[_0x58f944(0x1d9)](_0x2d0b19[_0x58f944(0x203)],{'onClick':()=>_0x37ad99['stopFollowing'](),'children':_0x58f944(0x19e)})]});}function _0x2ff7f5(_0x36ab54){const _0xaf1cbe=_0x58ab41,{coordinator:_0x1e33b6}=_0x36ab54;return _0x1726d5[_0xaf1cbe(0x202)](_0x1726d5[_0xaf1cbe(0x143)],{'children':[_0x1726d5['jsx'](_0xaf1cbe(0x1e1),{'className':_0xaf1cbe(0x1c0),'children':_0xaf1cbe(0x17e)}),_0x1726d5[_0xaf1cbe(0x1d9)](_0x2d0b19['Button'],{'variant':_0xaf1cbe(0x1c4),'onClick':()=>_0x1e33b6[_0xaf1cbe(0x15d)](),'children':'Start\x20following'})]});}function _0x22b1f7(_0xa561dc){const _0x112b6f=_0x58ab41,{coordinator:_0x4b586f}=_0xa561dc;return _0x1726d5['jsxs'](_0x1726d5['Fragment'],{'children':[_0x1726d5[_0x112b6f(0x1d9)](_0x112b6f(0x1e1),{'className':_0x112b6f(0x1c0),'children':_0x112b6f(0x152)}),_0x1726d5[_0x112b6f(0x1d9)](_0x2d0b19['Button'],{'variant':_0x112b6f(0x1e9),'onClick':()=>_0x4b586f['stopPresenting'](),'children':_0x112b6f(0x147)})]});}function _0xfc082a(){const _0x1a5685=_0x58ab41;return _0x1726d5['jsx'](_0x1726d5[_0x1a5685(0x143)],{'children':'You\x27are\x20offline.'});}var _0x2a1075=Object[_0x58ab41(0x1bc)],_0x23a581=(_0x2e125e,_0x1f0282,_0x52b026,_0x37bbef)=>{const _0x3b4ff7=_0x58ab41;for(var _0x287614=_0x37bbef>0x1?void 0x0:_0x37bbef?_0x2a1075(_0x1f0282,_0x52b026):_0x1f0282,_0x37c39a=_0x2e125e[_0x3b4ff7(0x1ad)]-0x1,_0xd83500;_0x37c39a>=0x0;_0x37c39a--)(_0xd83500=_0x2e125e[_0x37c39a])&&(_0x287614=_0xd83500(_0x287614)||_0x287614);return _0x287614;},_0x7e0de3=(_0x1977d6,_0x38d3fd)=>(_0x51315a,_0x36ee5f)=>_0x38d3fd(_0x51315a,_0x36ee5f,_0x1977d6);_0x18338e[_0x58ab41(0x168)]=class extends _0x3ff989['Disposable']{constructor(_0x48483d,_0x5d5906){const _0x4a628d=_0x58ab41;super(),this[_0x4a628d(0x1e4)]=_0x48483d,this[_0x4a628d(0x1f3)]=_0x5d5906,this[_0x4a628d(0x135)]();}[_0x58ab41(0x135)](){const _0x294f2a=_0x58ab41;this[_0x294f2a(0x19a)](this[_0x294f2a(0x1f3)][_0x294f2a(0x1a7)](_0x397850[_0x294f2a(0x169)][_0x294f2a(0x1f2)],()=>_0x397850['connectInjector'](_0x3a84e1,this[_0x294f2a(0x1e4)])));}},_0x18338e[_0x58ab41(0x168)]=_0x23a581([_0x7e0de3(0x0,_0x3ff989[_0x58ab41(0x16d)](_0x3ff989[_0x58ab41(0x13b)])),_0x7e0de3(0x1,_0x397850['IUIPartsService'])],_0x18338e[_0x58ab41(0x168)]);const _0x20e4be=_0x58ab41(0x1c1),_0x3d9203={};var _0x4ccaa0=Object[_0x58ab41(0x1bc)],_0x454760=(_0x4b9c25,_0x56fac4,_0x4dfa55,_0x2e9477)=>{const _0x117a0a=_0x58ab41;for(var _0x15d1b7=_0x2e9477>0x1?void 0x0:_0x2e9477?_0x4ccaa0(_0x56fac4,_0x4dfa55):_0x56fac4,_0x27d926=_0x4b9c25[_0x117a0a(0x1ad)]-0x1,_0xa39249;_0x27d926>=0x0;_0x27d926--)(_0xa39249=_0x4b9c25[_0x27d926])&&(_0x15d1b7=_0xa39249(_0x15d1b7)||_0x15d1b7);return _0x15d1b7;},_0x44fb30=(_0x3108e6,_0x2e400a)=>(_0xfed815,_0x45942c)=>_0x2e400a(_0xfed815,_0x45942c,_0x3108e6);let _0x5ee616=class extends _0x3ff989[_0x58ab41(0x12e)]{constructor(_0x5d3380){const _0x56e30f=_0x58ab41;super(),this[_0x56e30f(0x1b0)]=_0x5d3380,this[_0x56e30f(0x154)]();}[_0x58ab41(0x154)](){const _0x2ef09e=_0x58ab41;[_0x466726[_0x2ef09e(0x1e7)]['id'],_0x466726[_0x2ef09e(0x17a)]['id'],_0x1bc695[_0x2ef09e(0x19d)]['id']][_0x2ef09e(0x124)](_0x29a33a=>{const _0x3b2676=_0x2ef09e;this[_0x3b2676(0x19a)](this[_0x3b2676(0x1b0)][_0x3b2676(0x1c8)](_0x29a33a));});}};_0x5ee616=_0x454760([_0x44fb30(0x0,_0x3ff989['Inject'](_0x32dc4e))],_0x5ee616);var _0x2f3603=Object[_0x58ab41(0x1a0)],_0x360962=Object[_0x58ab41(0x1bc)],_0xc80966=(_0x14506c,_0x5b484a,_0x3e0474)=>_0x5b484a in _0x14506c?_0x2f3603(_0x14506c,_0x5b484a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3e0474}):_0x14506c[_0x5b484a]=_0x3e0474,_0x4c92a6=(_0x16e5dc,_0x2efb3a,_0x330f8e,_0x365839)=>{const _0x48ca84=_0x58ab41;for(var _0x8d9df2=_0x365839>0x1?void 0x0:_0x365839?_0x360962(_0x2efb3a,_0x330f8e):_0x2efb3a,_0x57b8ec=_0x16e5dc[_0x48ca84(0x1ad)]-0x1,_0x10c01a;_0x57b8ec>=0x0;_0x57b8ec--)(_0x10c01a=_0x16e5dc[_0x57b8ec])&&(_0x8d9df2=_0x10c01a(_0x8d9df2)||_0x8d9df2);return _0x8d9df2;},_0x444dbd=(_0x72d79a,_0x1dcf2f)=>(_0x2a9c9a,_0x110267)=>_0x1dcf2f(_0x2a9c9a,_0x110267,_0x72d79a),_0x22033f=(_0x4d9820,_0x22adfa,_0xea8098)=>_0xc80966(_0x4d9820,typeof _0x22adfa!=_0x58ab41(0x129)?_0x22adfa+'':_0x22adfa,_0xea8098);const _0x4dd098=_0x58ab41(0x11f);_0x18338e['UniverLiveSharePlugin']=class extends _0x3ff989['Plugin']{constructor(_0x46a07d=_0x3d9203,_0x14f43e,_0x154ea2){const _0x1b9c2f=_0x58ab41;super(),this[_0x1b9c2f(0x1aa)]=_0x46a07d,this[_0x1b9c2f(0x1e4)]=_0x14f43e,this[_0x1b9c2f(0x1ac)]=_0x154ea2;const {..._0x2af603}=_0x3ff989['merge']({},_0x3d9203,this[_0x1b9c2f(0x1aa)]);this[_0x1b9c2f(0x1ac)]['setConfig'](_0x20e4be,_0x2af603);}[_0x58ab41(0x179)](){const _0x4a612e=_0x58ab41;_0x3ff989['registerDependencies'](this[_0x4a612e(0x1e4)],_0x3ff989['mergeOverrideWithDependencies']([[_0x32dc4e],[_0x18338e[_0x4a612e(0x145)]],[_0x5ee616],[_0x18338e[_0x4a612e(0x168)]]],this[_0x4a612e(0x1aa)]['override'])),_0x3ff989[_0x4a612e(0x1c6)](this['_injector'],[[_0x5ee616]]);}['onRendered'](){const _0x246953=_0x58ab41;_0x3ff989['touchDependencies'](this[_0x246953(0x1e4)],[[_0x18338e['DesktopLiveShareController']]]);}},_0x22033f(_0x18338e[_0x58ab41(0x175)],_0x58ab41(0x1b2),_0x3ff989[_0x58ab41(0x148)][_0x58ab41(0x1b8)]),_0x22033f(_0x18338e[_0x58ab41(0x175)],_0x58ab41(0x176),_0x4dd098),_0x18338e[_0x58ab41(0x175)]=_0x4c92a6([_0x3ff989[_0x58ab41(0x1a6)](_0x1b827d[_0x58ab41(0x1fc)]),_0x444dbd(0x1,_0x3ff989['Inject'](_0x3ff989[_0x58ab41(0x13b)])),_0x444dbd(0x2,_0x3ff989[_0x58ab41(0x1e2)])],_0x18338e['UniverLiveSharePlugin']),_0x18338e['LiveShare']=_0x3a84e1,_0x18338e['LiveShareService']=_0x32dc4e,_0x18338e[_0x58ab41(0x1f0)]=_0x14cbcf,Object['defineProperty'](_0x18338e,Symbol[_0x58ab41(0x126)],{'value':_0x58ab41(0x133)});}));function _0x1ad8(_0x395d6b,_0x376b5b){_0x395d6b=_0x395d6b-0x11f;const _0x3c0b60=_0x3c0b();let _0x1ad8cc=_0x3c0b60[_0x395d6b];return _0x1ad8cc;}function _0x3c0b(){const _0x3dc849=['stopPresenting','_startFollowing','fill','DependentOn','registerComponent','@univerjs/design','current','_config','getUnitId','_configService','length','_handleOnline','clear','_liveShareService','get','type','replace','amd','2129886ngvhcD','presenting','useObservable','UNIVER_UNKNOWN','event$','mask','function','getOwnPropertyDescriptor','operators','displayName','_commandDisposable','univer-mb-3\x20univer-w-full\x20univer-text-sm','live-share.config','path','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','text','has','touchDependencies','getCurrentTypeOfUnit$','registerSharedOperation','_handleOffline','_handleNewHost','LiveShareIcon','unsubscribe','LiveShareCoordinator','requireSession','createInstance','React','4223456uauPYP','offline','6214910DxzuYB','react/jsx-runtime','_fetchOperations','@univerjs/sheets-ui','BehaviorSubject','idSuffix','jsx','OFFLINE','_presenter','univer-size-4','_status','takeUntil','UniverSheetsUi','set','div','IConfigService','subscribe','_injector','getTypeOfUnitDisposed$','_entities','SetZoomRatioOperation','_collabSession','default','PRESENTING','getLiveShareCoordinatorSync','getConfig','univerjs-icon\x20univerjs-icon-','shouldShareOperation','InsertSheetMutation','LiveShareStatus','url(#$1','HEADER_MENU','_uiPartsService','toString','react','0\x200\x2017\x2017','1em','object','registerInitialStateReporter','4082172SRbBAD','defIds','UniverCollaborationClientPlugin','_reporters','useDependency','@univerjs/sheets','status$','forwardRef','jsxs','Button','UNIVER_LIVE_SHARE_PLUGIN','useState','onCommandExecuted','_collabSessionService','dispose$','forEach','operations','toStringTag','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','button','symbol','exports','pipe','CollaborationEvent','_stopFollowing','Disposable','You\x27re\x20following\x20the\x20presenter','_beIdle','use','sheet','Module','DisposableCollection','_mountLiveShare','map','createElement','dispose','251096LynaSa','CommandType','Injector','UniverSheets','getInitialStates','evenodd','@univerjs/ui','LIVESHARE_OPERATION','_stopPresenting','mutations','Fragment','_status$','LiveShareController','RxDisposable','Stop\x20presenting','UniverInstanceType','_startLiveShareCoordinator','UniverCore','getStatus','CollaborationSessionService','attrs','LIVESHARE_TERMINATE','IUniverInstanceService','Dropdown','asObservable','You\x27re\x20presenting\x20the\x20document','Start','_init','UniverProCollaborationClient','currentColor','NEW_CHANGESETS','params','random','parseProtocolChangeset','svg','Present\x20this\x20document','startFollowing','IDLE','assign','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','next','10969980DdTOtc','_unitID','getMemberID','_handleTerminate','UNIVER_SHEET','FOLLOWING','DesktopLiveShareController','BuiltInUIPart','not-following','NOT_FOLLOWING','SessionStatus','Inject','live-share-icon','executeCommand','_handleOperation','162133FMFTwI','then','getTypeOfUnitAdded$','@univerjs-pro/collaboration','UniverLiveSharePlugin','pluginName','useEffect','from','onStarting','SetScrollOperation','sessionStatus$','string','_sharedOperations','You\x27re\x20not\x20following\x20the\x20presenter','data','values','clsx','presenter','xlink:href','idle','useRef','tag','ONLINE','colorChannel1','_handleNewChangeSets','send','http://www.w3.org/2000/svg','stopFollowing','tryStartPresenting','_univerInstanceService','delete','init','children','stringify','getLiveShareCoordinator','_commandService','_startPresenting','add','entries','following','toDisposable','disposeWithMe','@univerjs/core','LIVESHARE_FETCH_OPERATIONS','SetWorksheetActiveOperation','Stop\x20following','rxjs','defineProperty','substring','LIVESHARE_REQUEST_HOST'];_0x3c0b=function(){return _0x3dc849;};return _0x3c0b();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.14.0-insiders.20251227-b250a8d",
3
+ "version": "0.15.0-insiders.20251227-dafc157",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -57,14 +57,14 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@univerjs/icons": "^1.1.0",
60
- "@univerjs-pro/collaboration": "0.14.0-insiders.20251227-b250a8d",
61
- "@univerjs-pro/collaboration-client": "0.14.0-insiders.20251227-b250a8d",
62
- "@univerjs/design": "0.14.0-insiders.20251227-b250a8d",
63
- "@univerjs/core": "0.14.0-insiders.20251227-b250a8d",
64
- "@univerjs/sheets": "0.14.0-insiders.20251227-b250a8d",
65
- "@univerjs/engine-render": "0.14.0-insiders.20251227-b250a8d",
66
- "@univerjs/ui": "0.14.0-insiders.20251227-b250a8d",
67
- "@univerjs/sheets-ui": "0.14.0-insiders.20251227-b250a8d"
60
+ "@univerjs-pro/collaboration": "0.15.0-insiders.20251227-dafc157",
61
+ "@univerjs-pro/collaboration-client": "0.15.0-insiders.20251227-dafc157",
62
+ "@univerjs/core": "0.15.0-insiders.20251227-dafc157",
63
+ "@univerjs/engine-render": "0.15.0-insiders.20251227-dafc157",
64
+ "@univerjs/sheets-ui": "0.15.0-insiders.20251227-dafc157",
65
+ "@univerjs/sheets": "0.15.0-insiders.20251227-dafc157",
66
+ "@univerjs/ui": "0.15.0-insiders.20251227-dafc157",
67
+ "@univerjs/design": "0.15.0-insiders.20251227-dafc157"
68
68
  },
69
69
  "devDependencies": {
70
70
  "postcss": "^8.5.6",
@@ -74,8 +74,8 @@
74
74
  "typescript": "^5.9.3",
75
75
  "vite": "^7.3.0",
76
76
  "vitest": "^4.0.16",
77
- "@univerjs/protocol": "0.1.48",
78
- "@univerjs-infra/shared": "0.14.0"
77
+ "@univerjs-infra/shared": "0.15.0",
78
+ "@univerjs/protocol": "0.1.48"
79
79
  },
80
80
  "scripts": {
81
81
  "test": "vitest run",