@univerjs-pro/live-share 0.12.3-experimental.20251205-e439e48 → 0.12.3-experimental.20251205-71d07c3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/facade.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/cjs/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const
|
|
1
|
+
'use strict';const _0x205466=_0x380e;function _0x2ee4(){const _0x370ef9=['_commandService','startPresenting','LiveShareController','2905528dtPtqz','1348376wSyKjl','PRESENTING','2313168JPJUkt','FEnum','IRenderManagerService','85ejwmcE','125806JTHhuA','10qCItch','FUniver','getId','getLiveShareCoordinatorSync','startFollowing','get','tryStartPresenting','42DsRXss','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','getSheetId','stopPresenting','SetScrollOperation','getActiveWorkbook','LiveShareStatus','40TeobeQ','SetWorksheetActiveOperation','extend','1924224FBTpij','startColumn','startRow','FRange','_injector','No\x20active\x20workbook\x20found.','_initialize','getStatus','284226uyiYHH','getUnitId','LiveShareStatusEnum','getActiveSheet','1288179TDRQlZ','getRenderById','stopFollowing','syncExecuteCommand'];_0x2ee4=function(){return _0x370ef9;};return _0x2ee4();}function _0x380e(_0x181de8,_0x135d52){_0x181de8=_0x181de8-0x13a;const _0x2ee49a=_0x2ee4();let _0x380e2b=_0x2ee49a[_0x181de8];return _0x380e2b;}(function(_0x2e7555,_0x45a9cc){const _0x275714=_0x380e,_0x31236e=_0x2e7555();while(!![]){try{const _0x509253=parseInt(_0x275714(0x161))/0x1*(-parseInt(_0x275714(0x162))/0x2)+parseInt(_0x275714(0x147))/0x3+parseInt(_0x275714(0x15a))/0x4+-parseInt(_0x275714(0x160))/0x5*(parseInt(_0x275714(0x14f))/0x6)+parseInt(_0x275714(0x13d))/0x7*(parseInt(_0x275714(0x15b))/0x8)+-parseInt(_0x275714(0x153))/0x9*(parseInt(_0x275714(0x144))/0xa)+parseInt(_0x275714(0x15d))/0xb;if(_0x509253===_0x45a9cc)break;else _0x31236e['push'](_0x31236e['shift']());}catch(_0x152141){_0x31236e['push'](_0x31236e['shift']());}}}(_0x2ee4,0x8e363));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[_0x205466(0x14a)]{[_0x205466(0x14d)](_0x12b2ac,_0x46858f,_0x3cc9aa,_0x53e1a8,_0x8dabbb){const _0x1adb32=_0x205466,_0x2e3322=_0x12b2ac['get'](n['LiveShareController']),_0x17e0a3=_0x12b2ac['get'](g[_0x1adb32(0x15f)]),_0x1327f3=_0x46858f[_0x1adb32(0x150)](),_0x24cb78=_0x46858f[_0x1adb32(0x152)](),_0x13e398=_0x2e3322[_0x1adb32(0x165)](_0x1327f3);(_0x13e398==null?void 0x0:_0x13e398[_0x1adb32(0x14e)]())!==n[_0x1adb32(0x143)][_0x1adb32(0x15c)]||(_0x3cc9aa['getSheetId']()!==_0x24cb78[_0x1adb32(0x13f)]()&&this[_0x1adb32(0x157)]['executeCommand'](u[_0x1adb32(0x145)]['id'],{'unitId':_0x1327f3,'subUnitId':_0x3cc9aa[_0x1adb32(0x13f)]()}),!_0x17e0a3[_0x1adb32(0x154)](_0x1327f3))||_0x8dabbb[_0x1adb32(0x156)](f[_0x1adb32(0x141)]['id'],{'unitId':_0x46858f[_0x1adb32(0x150)](),'sheetId':_0x3cc9aa['getSheetId'](),'sheetViewStartRow':_0x53e1a8[_0x1adb32(0x149)],'sheetViewStartColumn':_0x53e1a8[_0x1adb32(0x148)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}d[_0x205466(0x14a)][_0x205466(0x146)](w);class C extends a['FUniver']{['getLiveShareStatus'](){const _0x2acb49=_0x205466;var _0xf07d67,_0x50750c;const _0x3f4b9d=this[_0x2acb49(0x14b)][_0x2acb49(0x13b)](n['LiveShareController']),_0x806935=(_0xf07d67=this[_0x2acb49(0x142)]())==null?void 0x0:_0xf07d67[_0x2acb49(0x164)]();if(!_0x806935)throw new Error(_0x2acb49(0x14c));const _0x511131=_0x3f4b9d[_0x2acb49(0x165)](_0x806935);return(_0x50750c=_0x511131==null?void 0x0:_0x511131[_0x2acb49(0x14e)]())!=null?_0x50750c:n[_0x2acb49(0x143)]['IDLE'];}['startFollowing'](){const _0x1c41ef=_0x205466;var _0xc3a365;const _0x3cac47=this[_0x1c41ef(0x14b)]['get'](n[_0x1c41ef(0x159)]),_0x3aaa15=(_0xc3a365=this[_0x1c41ef(0x142)]())==null?void 0x0:_0xc3a365[_0x1c41ef(0x164)]();if(!_0x3aaa15)throw new Error(_0x1c41ef(0x14c));const _0x411ff5=_0x3cac47['getLiveShareCoordinatorSync'](_0x3aaa15);if(!_0x411ff5)throw new Error(_0x1c41ef(0x13e));_0x411ff5[_0x1c41ef(0x13a)]();}[_0x205466(0x155)](){const _0x4dfa5c=_0x205466;var _0xad0ad8;const _0x12f0b1=this[_0x4dfa5c(0x14b)][_0x4dfa5c(0x13b)](n[_0x4dfa5c(0x159)]),_0x197fd9=(_0xad0ad8=this[_0x4dfa5c(0x142)]())==null?void 0x0:_0xad0ad8[_0x4dfa5c(0x164)]();if(!_0x197fd9)throw new Error(_0x4dfa5c(0x14c));const _0x399a3b=_0x12f0b1[_0x4dfa5c(0x165)](_0x197fd9);if(!_0x399a3b)throw new Error(_0x4dfa5c(0x13e));_0x399a3b['stopFollowing']();}[_0x205466(0x158)](){const _0x1c4b5d=_0x205466;var _0x454dfb;const _0x472768=this[_0x1c4b5d(0x14b)][_0x1c4b5d(0x13b)](n['LiveShareController']),_0xaafb92=(_0x454dfb=this[_0x1c4b5d(0x142)]())==null?void 0x0:_0x454dfb[_0x1c4b5d(0x164)]();if(!_0xaafb92)throw new Error(_0x1c4b5d(0x14c));const _0x20f332=_0x472768['getLiveShareCoordinatorSync'](_0xaafb92);if(!_0x20f332)throw new Error(_0x1c4b5d(0x13e));_0x20f332[_0x1c4b5d(0x13c)]();}[_0x205466(0x140)](){const _0x4f39df=_0x205466;var _0x1139e8;const _0x225384=this[_0x4f39df(0x14b)][_0x4f39df(0x13b)](n[_0x4f39df(0x159)]),_0x37fb70=(_0x1139e8=this[_0x4f39df(0x142)]())==null?void 0x0:_0x1139e8[_0x4f39df(0x164)]();if(!_0x37fb70)throw new Error(_0x4f39df(0x14c));const _0x15cfb5=_0x225384[_0x4f39df(0x165)](_0x37fb70);if(!_0x15cfb5)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x15cfb5[_0x4f39df(0x140)]();}}a[_0x205466(0x163)]['extend'](C);class L extends a[_0x205466(0x15e)]{get[_0x205466(0x151)](){const _0x572874=_0x205466;return n[_0x572874(0x143)];}}a[_0x205466(0x15e)][_0x205466(0x146)](L);
|
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';const _0x5374fb=_0x167c;(function(_0x5e4bd3,_0x3a57a3){const _0x559e65=_0x167c,_0x462d99=_0x5e4bd3();while(!![]){try{const _0x1c25b0=-parseInt(_0x559e65(0x2a9))/0x1*(parseInt(_0x559e65(0x240))/0x2)+-parseInt(_0x559e65(0x2af))/0x3*(parseInt(_0x559e65(0x20f))/0x4)+-parseInt(_0x559e65(0x21b))/0x5*(-parseInt(_0x559e65(0x1ea))/0x6)+-parseInt(_0x559e65(0x29c))/0x7+-parseInt(_0x559e65(0x1ee))/0x8*(parseInt(_0x559e65(0x2bc))/0x9)+parseInt(_0x559e65(0x298))/0xa*(parseInt(_0x559e65(0x28e))/0xb)+parseInt(_0x559e65(0x232))/0xc;if(_0x1c25b0===_0x3a57a3)break;else _0x462d99['push'](_0x462d99['shift']());}catch(_0x11797c){_0x462d99['push'](_0x462d99['shift']());}}}(_0x3263,0xab004));var T=Object[_0x5374fb(0x1e9)],U=(_0x33bc01,_0x193297,_0x44ba37)=>_0x193297 in _0x33bc01?T(_0x33bc01,_0x193297,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x44ba37}):_0x33bc01[_0x193297]=_0x44ba37,_=(_0x4f62f6,_0x2eeee7,_0x2937e2)=>U(_0x4f62f6,typeof _0x2eeee7!=_0x5374fb(0x1f9)?_0x2eeee7+'':_0x2eeee7,_0x2937e2);function _0x3263(){const _0x43d2b7=['_uiPartsService','length','executeCommand','registerInitialStateReporter','tag','parse','onStarting','useState','_entities','1337188Wwlurv','DependentOn','UniverLiveSharePlugin','set','override','SetScrollOperation','_handleTerminate','LIVESHARE_TERMINATE','Plugin','dispose','text','Module','2592545MWcXWT','_univerInstanceService','UNIVER_SHEET','useObservable','init','colorChannel1','getValue','xlink:href','pipe','CollaborationSessionService','toStringTag','NEW_CHANGESETS','entries','presenting','send','event$','div','_handleOffline','_handleOnline','OFFLINE','Subject','IDLE','_startLiveShareCoordinator','21666252gMMbzT','getUnitId','parseProtocolChangeset','get','disposeWithMe','univer-mb-3\x20univer-w-full\x20univer-text-sm','complete','status$','getMemberID','svg','SAME_OPERATION_SHARE_INTERVAL','path','_beIdle','throttleTime','19932rgXrGA','FOLLOWING','PRESENTING','idSuffix','none','RxDisposable','getInitialStates','_liveShareService','subscribe','idle','startFollowing','IConfigService','jsxs','_configService','next','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','pluginName','end','jsx','_collabSessionService','getLiveShareCoordinator','Dropdown','attrs','from','type','HEADER_MENU','CommandType','Inject','toString','following','tryStartPresenting','IUniverInstanceService','getOwnPropertyDescriptor','You\x27re\x20presenting\x20the\x20document','CollaborationEvent','Stop\x20presenting','forEach','params','_mountLiveShare','offline','stopPresenting','forwardRef','data','_status$','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','LiveShareStatus','unsubscribe','SetZoomRatioOperation','useDependency','BuiltInUIPart','SetWorksheetActiveOperation','Button','defs','currentColor','Start\x20following','operations','dispose$','_startFollowing','requireSession','use','_commandService','shouldShareOperation','LIVESHARE_OPERATION','sheet','random','LiveShare','stopFollowing','0\x200\x2017\x2017','LIVESHARE_REQUEST_HOST','registerSharedOperation','assign','LiveShareService','Injector','getCurrentTypeOfUnit$','current','registerComponent','has','_stopFollowing','121ULRbTf','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','evenodd','LiveShareCoordinator','_handleNewChangeSets','NOT_FOLLOWING','toDisposable','LiveShareIcon','1em','createElement','279950hwXIUw','IUIPartsService','sessionStatus$','_collabSession','3031448KEgYMK','setConfig','mask','getTypeOfUnitDisposed$','includes','connectInjector','asObservable','SessionStatus','not-following','onRendered','useRef','_unitID','_presenter','13qDxjiw','string','url(#$1','InsertSheetMutation','_status','map','9YSgLNa','getTypeOfUnitAdded$','live-share.config','Fragment','_config','clear','defIds','UniverInstanceType','live-share-icon','children','You\x27re\x20following\x20the\x20presenter','_commandDisposable','http://www.w3.org/2000/svg','1647189exbxxY','then','stringify','You\x27re\x20not\x20following\x20the\x20presenter','add','_startPresenting','createInstance','delete','LiveShareController','defineProperty','6IDzGDd','_handleOperation','OPERATION','univerjs-icon\x20univerjs-icon-','16ZwlwSq','_injector','button','_init','univer-size-4','_fetchOperations','_stopPresenting','UniverCollaborationClientPlugin','DisposableCollection','LIVESHARE_FETCH_OPERATIONS','DesktopLiveShareController','symbol','presenter','onCommandExecuted','mergeOverrideWithDependencies','_handleNewHost','displayName','replace','touchDependencies','_reporters','_sharedOperations','takeUntil','UNIVER_UNKNOWN','Disposable'];_0x3263=function(){return _0x43d2b7;};return _0x3263();}Object[_0x5374fb(0x1e9)](exports,Symbol[_0x5374fb(0x225)],{'value':_0x5374fb(0x21a)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x1d44d4,..._0x4d3c23}){const _0x175839=_0x5374fb,{icon:_0x3f29f0,id:_0xafd0d5,className:_0x15fef4,extend:_0x4c4d59,..._0x2e3d20}=_0x4d3c23,_0x5652f1=(_0x175839(0x1ed)+_0xafd0d5+'\x20'+(_0x15fef4||''))['trim'](),_0x8fc57b=v[_0x175839(0x2a6)]('_'+H());return j(_0x3f29f0,''+_0xafd0d5,{'defIds':_0x3f29f0[_0x175839(0x2b5)],'idSuffix':_0x8fc57b[_0x175839(0x28a)]},{'ref':_0x1d44d4,'className':_0x5652f1,..._0x2e3d20},_0x4c4d59);}function j(_0x5dd6f0,_0x540cbd,_0x76778a,_0x25baa6,_0x4e5794){const _0x427670=_0x5374fb;return v[_0x427670(0x297)](_0x5dd6f0['tag'],{'key':_0x540cbd,...y(_0x5dd6f0,_0x76778a,_0x4e5794),..._0x25baa6},(F(_0x5dd6f0,_0x76778a)[_0x427670(0x2b8)]||[])[_0x427670(0x2ae)]((_0x310710,_0x46ea7f)=>j(_0x310710,_0x540cbd+'-'+_0x5dd6f0[_0x427670(0x20a)]+'-'+_0x46ea7f,_0x76778a,void 0x0,_0x4e5794)));}function y(_0x160fb6,_0x43e3b7,_0x54e4f9){const _0x3a4ee2=_0x5374fb,_0x2a279f={..._0x160fb6[_0x3a4ee2(0x256)]};_0x54e4f9!=null&&_0x54e4f9[_0x3a4ee2(0x220)]&&_0x2a279f['fill']===_0x3a4ee2(0x220)&&(_0x2a279f['fill']=_0x54e4f9['colorChannel1']),_0x160fb6[_0x3a4ee2(0x20a)]===_0x3a4ee2(0x29e)&&_0x2a279f['id']&&(_0x2a279f['id']=_0x2a279f['id']+_0x43e3b7[_0x3a4ee2(0x243)]),Object[_0x3a4ee2(0x227)](_0x2a279f)[_0x3a4ee2(0x264)](([_0x3f927f,_0x51c057])=>{const _0x4e080c=_0x3a4ee2;_0x3f927f===_0x4e080c(0x29e)&&typeof _0x51c057=='string'&&(_0x2a279f[_0x3f927f]=_0x51c057[_0x4e080c(0x1ff)](/url\(#(.*)\)/,_0x4e080c(0x2ab)+_0x43e3b7['idSuffix']+')'));});const {defIds:_0x15f9fb}=_0x43e3b7;return!_0x15f9fb||_0x15f9fb[_0x3a4ee2(0x207)]===0x0||(_0x160fb6['tag']===_0x3a4ee2(0x27b)&&_0x2a279f['xlink:href']&&(_0x2a279f[_0x3a4ee2(0x222)]=_0x2a279f['xlink:href']+_0x43e3b7[_0x3a4ee2(0x243)]),Object[_0x3a4ee2(0x227)](_0x2a279f)[_0x3a4ee2(0x264)](([_0x1faa38,_0x5dedae])=>{const _0x35f593=_0x3a4ee2;typeof _0x5dedae==_0x35f593(0x2aa)&&(_0x2a279f[_0x1faa38]=_0x5dedae[_0x35f593(0x1ff)](/url\(#(.*)\)/,_0x35f593(0x2ab)+_0x43e3b7[_0x35f593(0x243)]+')'));})),_0x2a279f;}function F(_0x42b811,_0x379009){const _0x564df0=_0x5374fb;var _0x558caf;const {defIds:_0x5a5816}=_0x379009;return!_0x5a5816||_0x5a5816[_0x564df0(0x207)]===0x0?_0x42b811:_0x42b811[_0x564df0(0x20a)]===_0x564df0(0x274)&&((_0x558caf=_0x42b811['children'])!=null&&_0x558caf['length'])?{..._0x42b811,'children':_0x42b811['children'][_0x564df0(0x2ae)](_0x1d2334=>typeof _0x1d2334[_0x564df0(0x256)]['id']==_0x564df0(0x2aa)&&_0x5a5816&&_0x5a5816[_0x564df0(0x2a0)](_0x1d2334[_0x564df0(0x256)]['id'])?{..._0x1d2334,'attrs':{..._0x1d2334['attrs'],'id':_0x1d2334[_0x564df0(0x256)]['id']+_0x379009[_0x564df0(0x243)]}}:_0x1d2334)}:_0x42b811;}function H(){const _0x43d225=_0x5374fb;return Math[_0x43d225(0x280)]()[_0x43d225(0x25c)](0x24)['substring'](0x2,0x8);}x[_0x5374fb(0x1fe)]='UniverIcon';const V={'tag':_0x5374fb(0x23b),'attrs':{'xmlns':_0x5374fb(0x2bb),'fill':_0x5374fb(0x244),'viewBox':_0x5374fb(0x283),'width':'1em','height':_0x5374fb(0x296)},'children':[{'tag':_0x5374fb(0x23d),'attrs':{'fill':_0x5374fb(0x275),'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':_0x5374fb(0x23d),'attrs':{'fill':_0x5374fb(0x275),'d':_0x5374fb(0x24f),'fillRule':_0x5374fb(0x290),'clipRule':'evenodd'}}]},R=v[_0x5374fb(0x269)](function(_0x403669,_0x4c4ea1){const _0x1cf6da=_0x5374fb;return v[_0x1cf6da(0x297)](x,Object[_0x1cf6da(0x286)]({},_0x403669,{'id':_0x1cf6da(0x2b7),'ref':_0x4c4ea1,'icon':V}));});R[_0x5374fb(0x1fe)]=_0x5374fb(0x295);class E extends o[_0x5374fb(0x205)]{constructor(){const _0x264842=_0x5374fb;super(...arguments),_(this,_0x264842(0x202),new Set()),_(this,_0x264842(0x201),new Set());}[_0x5374fb(0x285)](_0x25f17e){const _0x587b3e=_0x5374fb;return this['_sharedOperations'][_0x587b3e(0x2c0)](_0x25f17e),o[_0x587b3e(0x294)](()=>this[_0x587b3e(0x202)][_0x587b3e(0x1e7)](_0x25f17e));}[_0x5374fb(0x209)](_0x281a06){const _0x241b7f=_0x5374fb;return this[_0x241b7f(0x201)][_0x241b7f(0x2c0)](_0x281a06),o[_0x241b7f(0x294)](()=>this[_0x241b7f(0x201)]['delete'](_0x281a06));}['shouldShareOperation'](_0x40ecef){const _0x19c303=_0x5374fb;return this[_0x19c303(0x202)]['has'](_0x40ecef);}[_0x5374fb(0x246)](_0x5c83e5){const _0x127bc0=_0x5374fb;return Array[_0x127bc0(0x257)](this[_0x127bc0(0x201)])[_0x127bc0(0x2ae)](_0x306a9b=>_0x306a9b(_0x5c83e5));}}var M=Object[_0x5374fb(0x260)],P=(_0x39069b,_0x11f9d4,_0x5b92e2,_0x1600a0)=>{const _0x1fa69f=_0x5374fb;for(var _0x3b7e77=_0x1600a0>0x1?void 0x0:_0x1600a0?M(_0x11f9d4,_0x5b92e2):_0x11f9d4,_0x22dc14=_0x39069b[_0x1fa69f(0x207)]-0x1,_0x7c4ae7;_0x22dc14>=0x0;_0x22dc14--)(_0x7c4ae7=_0x39069b[_0x22dc14])&&(_0x3b7e77=_0x7c4ae7(_0x3b7e77)||_0x3b7e77);return _0x3b7e77;},S=(_0x4f9a82,_0x49caee)=>(_0x5a5ef2,_0x21bf1d)=>_0x49caee(_0x5a5ef2,_0x21bf1d,_0x4f9a82);exports[_0x5374fb(0x1e8)]=class extends o[_0x5374fb(0x245)]{constructor(_0x1a27c1,_0x4dad97,_0x393a49){const _0x29409a=_0x5374fb;super(),_(this,_0x29409a(0x20e),new Map()),(this[_0x29409a(0x21c)]=_0x1a27c1,this['_injector']=_0x4dad97,this[_0x29409a(0x253)]=_0x393a49,this['_init']());}async[_0x5374fb(0x254)](_0x32694e){const _0xbf5660=_0x5374fb;return this[_0xbf5660(0x20e)]['has'](_0x32694e)||await this['_startLiveShareCoordinator'](_0x32694e),this[_0xbf5660(0x20e)][_0xbf5660(0x235)](_0x32694e);}['getLiveShareCoordinatorSync'](_0x315e4e){const _0x45b828=_0x5374fb;var _0x28f146;return(_0x28f146=this[_0x45b828(0x20e)][_0x45b828(0x235)](_0x315e4e))!=null?_0x28f146:null;}[_0x5374fb(0x1f1)](){const _0xaf73e6=_0x5374fb;this[_0xaf73e6(0x21c)][_0xaf73e6(0x2b0)](o[_0xaf73e6(0x2b6)][_0xaf73e6(0x21d)])[_0xaf73e6(0x223)](I[_0xaf73e6(0x203)](this[_0xaf73e6(0x278)]))[_0xaf73e6(0x248)](async _0x1b037f=>{const _0x4a0023=_0xaf73e6,_0xbc9c0f=_0x1b037f[_0x4a0023(0x233)]();this[_0x4a0023(0x20e)]['has'](_0xbc9c0f)||this['_startLiveShareCoordinator'](_0xbc9c0f);}),this[_0xaf73e6(0x21c)][_0xaf73e6(0x29f)](o[_0xaf73e6(0x2b6)][_0xaf73e6(0x21d)])['pipe'](I[_0xaf73e6(0x203)](this[_0xaf73e6(0x278)]))['subscribe'](_0x405a6d=>{const _0x12b2e3=_0xaf73e6,_0x4c439e=_0x405a6d[_0x12b2e3(0x233)](),_0x258a0d=this[_0x12b2e3(0x20e)][_0x12b2e3(0x235)](_0x4c439e);_0x258a0d==null||_0x258a0d[_0x12b2e3(0x218)]();});}async[_0x5374fb(0x231)](_0x2bc13b){const _0x1fcc1f=_0x5374fb,_0xe46b9a=await this[_0x1fcc1f(0x253)][_0x1fcc1f(0x27a)](_0x2bc13b),_0x5d866d=this['_injector'][_0x1fcc1f(0x1e6)](exports['LiveShareCoordinator'],_0x2bc13b,_0xe46b9a);return _0x5d866d[_0x1fcc1f(0x21f)](),this[_0x1fcc1f(0x20e)][_0x1fcc1f(0x212)](_0x2bc13b,_0x5d866d),_0x5d866d;}},exports[_0x5374fb(0x1e8)]=P([S(0x0,o[_0x5374fb(0x25f)]),S(0x1,o[_0x5374fb(0x25b)](o['Injector'])),S(0x2,o[_0x5374fb(0x25b)](b[_0x5374fb(0x224)]))],exports['LiveShareController']);var u=(_0x519ccc=>(_0x519ccc['OFFLINE']=_0x5374fb(0x267),_0x519ccc[_0x5374fb(0x230)]='idle',_0x519ccc[_0x5374fb(0x241)]=_0x5374fb(0x25d),_0x519ccc[_0x5374fb(0x293)]='not-following',_0x519ccc[_0x5374fb(0x242)]=_0x5374fb(0x228),_0x519ccc))(u||{});const k=_0x5374fb(0x23c),q=0xc8;exports[_0x5374fb(0x291)]=class extends o[_0x5374fb(0x245)]{constructor(_0x3e285a,_0xa028cb,_0x2f97b2,_0x579c5a,_0x140d11){const _0x225d0f=_0x5374fb;super(),_(this,_0x225d0f(0x26b),new O['BehaviorSubject'](_0x225d0f(0x249))),_(this,_0x225d0f(0x239),this[_0x225d0f(0x26b)][_0x225d0f(0x2a2)]()),_(this,_0x225d0f(0x1f1),!0x1),_(this,_0x225d0f(0x2ba),null),_(this,'_presenter',null),(this['_unitID']=_0x3e285a,this[_0x225d0f(0x29b)]=_0xa028cb,this['_configService']=_0x2f97b2,this[_0x225d0f(0x247)]=_0x579c5a,this['_commandService']=_0x140d11);}get[_0x5374fb(0x2ad)](){const _0x33ffc1=_0x5374fb;return this[_0x33ffc1(0x26b)][_0x33ffc1(0x221)]();}[_0x5374fb(0x218)](){const _0x4528f9=_0x5374fb;var _0x3cfb8d;(_0x3cfb8d=this[_0x4528f9(0x2ba)])==null||_0x3cfb8d['dispose'](),this[_0x4528f9(0x26b)][_0x4528f9(0x24e)](_0x4528f9(0x249)),this[_0x4528f9(0x26b)][_0x4528f9(0x238)]();}['getStatus'](){const _0x344594=_0x5374fb;return this[_0x344594(0x2ad)];}[_0x5374fb(0x21f)](){const _0x1dab39=_0x5374fb;this['_init']||(this[_0x1dab39(0x1f1)]=!0x0,this['_collabSession'][_0x1dab39(0x29a)][_0x1dab39(0x223)](I[_0x1dab39(0x203)](this['dispose$']))[_0x1dab39(0x248)](_0x4d9d4e=>{const _0x39e000=_0x1dab39;switch(_0x4d9d4e){case b[_0x39e000(0x2a3)][_0x39e000(0x22e)]:this[_0x39e000(0x22c)]();break;case b[_0x39e000(0x2a3)]['ONLINE']:this['_handleOnline']();break;}}),this['_collabSession'][_0x1dab39(0x22a)][_0x1dab39(0x223)](I['takeUntil'](this[_0x1dab39(0x278)]))[_0x1dab39(0x248)](_0xe11919=>{const _0x3efddc=_0x1dab39,{eventID:_0x181c97}=_0xe11919;switch(_0x181c97){case d[_0x3efddc(0x262)]['LIVESHARE_NEW_HOST']:this[_0x3efddc(0x1fd)](_0xe11919);break;case d[_0x3efddc(0x262)][_0x3efddc(0x27e)]:this[_0x3efddc(0x1eb)](_0xe11919);break;case d['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x3efddc(0x215)]();break;case d[_0x3efddc(0x262)][_0x3efddc(0x226)]:this[_0x3efddc(0x292)](_0xe11919);break;}}));}['tryStartPresenting'](){const _0x559e4a=_0x5374fb;this['_collabSession'][_0x559e4a(0x229)]({'eventID':d[_0x559e4a(0x262)][_0x559e4a(0x284)],'data':{'unitID':this['_unitID'],'userID':this[_0x559e4a(0x29b)]['getMemberID']()}},this['_unitID']);}['stopPresenting'](){const _0x577533=_0x5374fb;this['_status']==='presenting'&&(this[_0x577533(0x26b)]['next']('idle'),this[_0x577533(0x29b)][_0x577533(0x229)]({'eventID':d[_0x577533(0x262)][_0x577533(0x216)],'data':{'unitID':this['_unitID']}},this[_0x577533(0x2a7)]));}[_0x5374fb(0x24a)](){const _0x346ea6=_0x5374fb;this['_status']===_0x346ea6(0x2a4)&&(this['_status$'][_0x346ea6(0x24e)]('following'),this[_0x346ea6(0x279)]());}[_0x5374fb(0x282)](){const _0x30f267=_0x5374fb;this[_0x30f267(0x2ad)]==='following'&&this[_0x30f267(0x28d)]();}[_0x5374fb(0x1fd)](_0x44fda5){const _0x48bf58=_0x5374fb,{presenter:_0x908021}=_0x44fda5['data'],_0x328e95=this[_0x48bf58(0x29b)][_0x48bf58(0x23a)]();this[_0x48bf58(0x2a8)]=_0x908021,_0x908021===_0x328e95?(this[_0x48bf58(0x28d)](),this[_0x48bf58(0x1e5)]()):this['_status']!==_0x48bf58(0x2a4)&&(this[_0x48bf58(0x1f4)](),this[_0x48bf58(0x279)]());}[_0x5374fb(0x1f3)](){const _0x493990=_0x5374fb,_0x41f1cc={'eventID':d['CollaborationEvent'][_0x493990(0x1f7)]};this[_0x493990(0x29b)][_0x493990(0x229)](_0x41f1cc,this[_0x493990(0x2a7)]);}[_0x5374fb(0x215)](){const _0x1fd4a4=_0x5374fb;this['_presenter']=null,this['_status']!=='presenting'&&this[_0x1fd4a4(0x23e)]();}[_0x5374fb(0x292)](_0x24f8f1){const _0x3231ea=_0x5374fb;if(this['_status']===_0x3231ea(0x25d)&&this['_presenter']===_0x24f8f1['data']['memberID']){const _0x1443a8=d[_0x3231ea(0x234)](_0x24f8f1[_0x3231ea(0x26a)])['mutations']['reverse']()['find'](_0x1dc626=>_0x1dc626['id']===C[_0x3231ea(0x2ac)]['id']);if(_0x1443a8){const _0x33f4f3=_0x1443a8[_0x3231ea(0x265)]['unitId'],_0x179316=_0x1443a8['params'][_0x3231ea(0x27f)]['id'];setTimeout(()=>{const _0x4169ed=_0x3231ea;this[_0x4169ed(0x27c)][_0x4169ed(0x208)](C[_0x4169ed(0x272)]['id'],{'unitId':_0x33f4f3,'subUnitId':_0x179316},{'fromCollab':!0x0});});}}}[_0x5374fb(0x1e5)](){const _0x1bcbaf=_0x5374fb;this[_0x1bcbaf(0x26b)][_0x1bcbaf(0x24e)]('presenting');const _0x16a058=new Map(),_0x4c0be9=this['_commandDisposable']=new o[(_0x1bcbaf(0x1f6))]();_0x4c0be9[_0x1bcbaf(0x2c0)](o[_0x1bcbaf(0x294)](()=>{const _0x439079=_0x1bcbaf;_0x16a058[_0x439079(0x264)](_0x16e22c=>_0x16e22c[_0x439079(0x238)]()),_0x16a058[_0x439079(0x2b4)]();})),_0x4c0be9['add'](this[_0x1bcbaf(0x27c)][_0x1bcbaf(0x1fb)](_0x5b2fdf=>{const _0x1bda68=_0x1bcbaf;var _0x41145a;if(_0x5b2fdf[_0x1bda68(0x258)]!==o[_0x1bda68(0x25a)][_0x1bda68(0x1ec)]||!this[_0x1bda68(0x247)][_0x1bda68(0x27d)](_0x5b2fdf['id']))return;const {id:_0x16eacc}=_0x5b2fdf;let _0x113aa1;_0x16a058[_0x1bda68(0x28c)](_0x16eacc)?_0x113aa1=_0x16a058[_0x1bda68(0x235)](_0x16eacc):(_0x113aa1=new O[(_0x1bda68(0x22f))](),_0x16a058[_0x1bda68(0x212)](_0x16eacc,_0x113aa1),_0x113aa1[_0x1bda68(0x223)](I[_0x1bda68(0x23f)]((_0x41145a=this[_0x1bda68(0x24d)]['getConfig'](k))!=null?_0x41145a:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4ee529=>{const _0x290f2d=_0x1bda68;this['_collabSession']['send']({'eventID':d[_0x290f2d(0x262)][_0x290f2d(0x27e)],'data':{'unitID':this[_0x290f2d(0x2a7)],'operations':{[_0x4ee529['id']]:{'id':_0x4ee529['id'],'params':JSON[_0x290f2d(0x2be)](_0x4ee529['params'])}}}},this[_0x290f2d(0x2a7)]);})),_0x113aa1[_0x1bda68(0x24e)](_0x5b2fdf);})),this[_0x1bcbaf(0x247)]['getInitialStates'](this[_0x1bcbaf(0x2a7)])[_0x1bcbaf(0x264)](_0x31b7cb=>this[_0x1bcbaf(0x29b)]['send']({'eventID':d['CollaborationEvent'][_0x1bcbaf(0x27e)],'data':{'unitID':this[_0x1bcbaf(0x2a7)],'operations':{[_0x31b7cb['id']]:{'id':_0x31b7cb['id'],'params':JSON[_0x1bcbaf(0x2be)](_0x31b7cb[_0x1bcbaf(0x265)])}}}},this[_0x1bcbaf(0x2a7)]));}[_0x5374fb(0x1f4)](){const _0x444d5a=_0x5374fb;var _0x175ef2;this[_0x444d5a(0x26b)][_0x444d5a(0x24e)](_0x444d5a(0x249)),(_0x175ef2=this[_0x444d5a(0x2ba)])==null||_0x175ef2[_0x444d5a(0x218)](),this['_commandDisposable']=null;}[_0x5374fb(0x279)](){const _0x3a17e1=_0x5374fb;var _0x3d2b02;(_0x3d2b02=this[_0x3a17e1(0x2ba)])==null||_0x3d2b02['dispose'](),this[_0x3a17e1(0x26b)][_0x3a17e1(0x24e)](_0x3a17e1(0x25d));}[_0x5374fb(0x23e)](){const _0x1e5079=_0x5374fb;var _0x51e1a4;this[_0x1e5079(0x26b)][_0x1e5079(0x24e)](_0x1e5079(0x249)),(_0x51e1a4=this[_0x1e5079(0x2ba)])==null||_0x51e1a4[_0x1e5079(0x218)](),this[_0x1e5079(0x2ba)]=null;}[_0x5374fb(0x28d)](){const _0x2bdc01=_0x5374fb;var _0x2fefe0;this['_status$'][_0x2bdc01(0x24e)]('not-following'),(_0x2fefe0=this[_0x2bdc01(0x2ba)])==null||_0x2fefe0[_0x2bdc01(0x218)]();}[_0x5374fb(0x1eb)](_0x79687d){const _0x26ad55=_0x5374fb;if([_0x26ad55(0x228),_0x26ad55(0x2a4),_0x26ad55(0x267)]['includes'](this[_0x26ad55(0x2ad)])||!_0x79687d[_0x26ad55(0x26a)][_0x26ad55(0x1fa)]||_0x79687d['data'][_0x26ad55(0x1fa)]===this[_0x26ad55(0x29b)][_0x26ad55(0x23a)]())return;this[_0x26ad55(0x2ad)]===_0x26ad55(0x249)&&this['_startFollowing']();const _0x521c6e=_0x79687d['data'][_0x26ad55(0x277)];Object['values'](_0x521c6e)['forEach'](_0x246eb0=>{const _0x4dbe63=_0x26ad55;this[_0x4dbe63(0x27c)][_0x4dbe63(0x208)](_0x246eb0['id'],_0x246eb0['params']?JSON[_0x4dbe63(0x20b)](_0x246eb0[_0x4dbe63(0x265)]):null,{'fromCollab':!0x0});});}[_0x5374fb(0x22c)](){const _0x335218=_0x5374fb;var _0x2554a7;this['_status$']['next'](_0x335218(0x267)),(_0x2554a7=this[_0x335218(0x2ba)])==null||_0x2554a7[_0x335218(0x218)]();}[_0x5374fb(0x22d)](){const _0x19116b=_0x5374fb;this[_0x19116b(0x26b)][_0x19116b(0x24e)](_0x19116b(0x249)),this[_0x19116b(0x1f3)]();}},exports[_0x5374fb(0x291)]=P([S(0x2,o['IConfigService']),S(0x3,o['Inject'](E)),S(0x4,o['ICommandService'])],exports[_0x5374fb(0x291)]);function $(){const _0xf4123d=_0x5374fb,_0x203c81=p[_0xf4123d(0x270)](exports[_0xf4123d(0x1e8)]),_0x1a82e3=p[_0xf4123d(0x270)](o[_0xf4123d(0x25f)]),_0x25f3ac=p[_0xf4123d(0x21e)](()=>_0x1a82e3[_0xf4123d(0x289)](o[_0xf4123d(0x2b6)][_0xf4123d(0x21d)]),void 0x0,!0x1,[]),[_0x13343b,_0x4d0297]=v[_0xf4123d(0x20d)](null),[_0x132db0,_0x5958b0]=v[_0xf4123d(0x20d)](u[_0xf4123d(0x230)]),_0x56b83b=v[_0xf4123d(0x2a6)](null);return v['useEffect'](()=>(_0x25f3ac&&_0x203c81[_0xf4123d(0x254)](_0x25f3ac[_0xf4123d(0x233)]())[_0xf4123d(0x2bd)](_0x120da4=>{const _0x550eb7=_0xf4123d;_0x4d0297(_0x120da4),_0x56b83b[_0x550eb7(0x28a)]=_0x120da4['status$'][_0x550eb7(0x248)](_0x922684=>{_0x5958b0(_0x922684);});}),()=>{const _0x481d1e=_0xf4123d;var _0x4234ce;(_0x4234ce=_0x56b83b[_0x481d1e(0x28a)])==null||_0x4234ce[_0x481d1e(0x26e)](),_0x56b83b['current']=null;}),[_0x25f3ac,_0x203c81]),_0x13343b?l[_0xf4123d(0x252)](f[_0xf4123d(0x255)],{'align':_0xf4123d(0x251),'disabled':_0x132db0===u[_0xf4123d(0x22e)],'className':_0xf4123d(0x26c),'overlay':l[_0xf4123d(0x252)](W,{'status':_0x132db0,'coordinator':_0x13343b}),'children':l[_0xf4123d(0x252)](_0xf4123d(0x1f0),{'className':f['clsx'](_0xf4123d(0x28f),{'univer-cursor-not-allowed':_0x132db0===u[_0xf4123d(0x22e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x132db0!==u[_0xf4123d(0x22e)]}),'type':_0xf4123d(0x1f0),'children':l[_0xf4123d(0x252)](R,{'className':_0xf4123d(0x1f2)})})}):null;}function W(_0xf1af40){const _0x4d3424=_0x5374fb,{status:_0x5e6c5b,coordinator:_0x21b9cd}=_0xf1af40;switch(_0x5e6c5b){case u[_0x4d3424(0x230)]:return l[_0x4d3424(0x252)](G,{'coordinator':_0x21b9cd});case u[_0x4d3424(0x241)]:return l[_0x4d3424(0x252)](B,{'coordinator':_0x21b9cd});case u[_0x4d3424(0x293)]:return l[_0x4d3424(0x252)](Y,{'coordinator':_0x21b9cd});case u['OFFLINE']:return l[_0x4d3424(0x252)](J,{});case u[_0x4d3424(0x242)]:return l[_0x4d3424(0x252)](Z,{'coordinator':_0x21b9cd});default:return null;}}function G(_0x1386aa){const _0x142a5c=_0x5374fb,{coordinator:_0x278ce4}=_0x1386aa;return l[_0x142a5c(0x24c)](l[_0x142a5c(0x2b2)],{'children':[l[_0x142a5c(0x252)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),l[_0x142a5c(0x252)](f['Button'],{'onClick':()=>_0x278ce4[_0x142a5c(0x25e)](),'children':'Start'})]});}function B(_0x26c126){const _0x154f3c=_0x5374fb,{coordinator:_0x3519a0}=_0x26c126;return l['jsxs'](l['Fragment'],{'children':[l[_0x154f3c(0x252)](_0x154f3c(0x22b),{'className':_0x154f3c(0x237),'children':_0x154f3c(0x2b9)}),l[_0x154f3c(0x252)](f[_0x154f3c(0x273)],{'onClick':()=>_0x3519a0['stopFollowing'](),'children':'Stop\x20following'})]});}function Y(_0x4e6c35){const _0x35e077=_0x5374fb,{coordinator:_0x19f978}=_0x4e6c35;return l[_0x35e077(0x24c)](l[_0x35e077(0x2b2)],{'children':[l[_0x35e077(0x252)](_0x35e077(0x22b),{'className':_0x35e077(0x237),'children':_0x35e077(0x2bf)}),l[_0x35e077(0x252)](f[_0x35e077(0x273)],{'variant':_0x35e077(0x219),'onClick':()=>_0x19f978[_0x35e077(0x24a)](),'children':_0x35e077(0x276)})]});}function _0x167c(_0x49f489,_0x3c90ec){_0x49f489=_0x49f489-0x1e5;const _0x326338=_0x3263();let _0x167c85=_0x326338[_0x49f489];return _0x167c85;}function Z(_0xf5d959){const _0x675be3=_0x5374fb,{coordinator:_0xf2d920}=_0xf5d959;return l[_0x675be3(0x24c)](l[_0x675be3(0x2b2)],{'children':[l[_0x675be3(0x252)](_0x675be3(0x22b),{'className':_0x675be3(0x237),'children':_0x675be3(0x261)}),l[_0x675be3(0x252)](f[_0x675be3(0x273)],{'variant':'default','onClick':()=>_0xf2d920[_0x675be3(0x268)](),'children':_0x675be3(0x263)})]});}function J(){const _0x33c408=_0x5374fb;return l[_0x33c408(0x252)](l[_0x33c408(0x2b2)],{'children':'You\x27are\x20offline.'});}var K=Object[_0x5374fb(0x260)],z=(_0x2a64aa,_0x47a788,_0x285c54,_0x504216)=>{const _0x54a12d=_0x5374fb;for(var _0x14e9ed=_0x504216>0x1?void 0x0:_0x504216?K(_0x47a788,_0x285c54):_0x47a788,_0x2403cb=_0x2a64aa[_0x54a12d(0x207)]-0x1,_0x13de52;_0x2403cb>=0x0;_0x2403cb--)(_0x13de52=_0x2a64aa[_0x2403cb])&&(_0x14e9ed=_0x13de52(_0x14e9ed)||_0x14e9ed);return _0x14e9ed;},L=(_0x58ee89,_0x26df82)=>(_0x8a6898,_0x392dcd)=>_0x26df82(_0x8a6898,_0x392dcd,_0x58ee89);exports['DesktopLiveShareController']=class extends o[_0x5374fb(0x205)]{constructor(_0x12de5a,_0x29cf79){const _0x16bf40=_0x5374fb;super(),this[_0x16bf40(0x1ef)]=_0x12de5a,this[_0x16bf40(0x206)]=_0x29cf79,this['_mountLiveShare']();}[_0x5374fb(0x266)](){const _0x18485b=_0x5374fb;this[_0x18485b(0x236)](this[_0x18485b(0x206)][_0x18485b(0x28b)](p[_0x18485b(0x271)][_0x18485b(0x259)],()=>p[_0x18485b(0x2a1)]($,this['_injector'])));}},exports[_0x5374fb(0x1f8)]=z([L(0x0,o[_0x5374fb(0x25b)](o[_0x5374fb(0x288)])),L(0x1,p[_0x5374fb(0x299)])],exports[_0x5374fb(0x1f8)]);const Q=_0x5374fb(0x2b1),w={};var X=Object[_0x5374fb(0x260)],ee=(_0xf6a834,_0x5d4444,_0x1086b4,_0x1cce99)=>{for(var _0x34a058=_0x1cce99>0x1?void 0x0:_0x1cce99?X(_0x5d4444,_0x1086b4):_0x5d4444,_0x444c40=_0xf6a834['length']-0x1,_0x98a359;_0x444c40>=0x0;_0x444c40--)(_0x98a359=_0xf6a834[_0x444c40])&&(_0x34a058=_0x98a359(_0x34a058)||_0x34a058);return _0x34a058;},te=(_0xc3473b,_0x4cb935)=>(_0x55c920,_0x3c563f)=>_0x4cb935(_0x55c920,_0x3c563f,_0xc3473b);let m=class extends o[_0x5374fb(0x205)]{constructor(_0x525a58){const _0x31c310=_0x5374fb;super(),this[_0x31c310(0x247)]=_0x525a58,this[_0x31c310(0x1f1)]();}[_0x5374fb(0x1f1)](){const _0x6b6531=_0x5374fb;[D[_0x6b6531(0x26f)]['id'],D[_0x6b6531(0x214)]['id'],C[_0x6b6531(0x272)]['id']][_0x6b6531(0x264)](_0x1bbc57=>{const _0xf9cd1c=_0x6b6531;this[_0xf9cd1c(0x236)](this[_0xf9cd1c(0x247)][_0xf9cd1c(0x285)](_0x1bbc57));});}};m=ee([te(0x0,o['Inject'](E))],m);var ie=Object[_0x5374fb(0x1e9)],se=Object['getOwnPropertyDescriptor'],ne=(_0x36be4a,_0x109ddc,_0x56a259)=>_0x109ddc in _0x36be4a?ie(_0x36be4a,_0x109ddc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56a259}):_0x36be4a[_0x109ddc]=_0x56a259,re=(_0x5ba389,_0x4f5a6a,_0x3a780c,_0x28559e)=>{for(var _0x135825=_0x28559e>0x1?void 0x0:_0x28559e?se(_0x4f5a6a,_0x3a780c):_0x4f5a6a,_0x29ea34=_0x5ba389['length']-0x1,_0x156b9f;_0x29ea34>=0x0;_0x29ea34--)(_0x156b9f=_0x5ba389[_0x29ea34])&&(_0x135825=_0x156b9f(_0x135825)||_0x135825);return _0x135825;},N=(_0x53e38a,_0x4f3870)=>(_0x2c4596,_0x45453a)=>_0x4f3870(_0x2c4596,_0x45453a,_0x53e38a),A=(_0x2bcb58,_0x35bd75,_0x27a055)=>ne(_0x2bcb58,typeof _0x35bd75!=_0x5374fb(0x1f9)?_0x35bd75+'':_0x35bd75,_0x27a055);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports['UniverLiveSharePlugin']=class extends o[_0x5374fb(0x217)]{constructor(_0x415732=w,_0x41550f,_0x33eca2){const _0x4fa630=_0x5374fb;super(),this[_0x4fa630(0x2b3)]=_0x415732,this[_0x4fa630(0x1ef)]=_0x41550f,this[_0x4fa630(0x24d)]=_0x33eca2;const {..._0x4e3afb}=o['merge']({},w,this[_0x4fa630(0x2b3)]);this[_0x4fa630(0x24d)][_0x4fa630(0x29d)](Q,_0x4e3afb);}[_0x5374fb(0x20c)](){const _0x3ebec3=_0x5374fb;o['registerDependencies'](this['_injector'],o[_0x3ebec3(0x1fc)]([[E],[exports[_0x3ebec3(0x1e8)]],[m],[exports[_0x3ebec3(0x1f8)]]],this[_0x3ebec3(0x2b3)][_0x3ebec3(0x213)])),o[_0x3ebec3(0x200)](this[_0x3ebec3(0x1ef)],[[m]]);}[_0x5374fb(0x2a5)](){const _0x4157ce=_0x5374fb;o[_0x4157ce(0x200)](this[_0x4157ce(0x1ef)],[[exports[_0x4157ce(0x1f8)]]]);}},A(exports[_0x5374fb(0x211)],_0x5374fb(0x258),o[_0x5374fb(0x2b6)][_0x5374fb(0x204)]),A(exports[_0x5374fb(0x211)],_0x5374fb(0x250),oe),exports[_0x5374fb(0x211)]=re([o[_0x5374fb(0x210)](b[_0x5374fb(0x1f5)]),N(0x1,o[_0x5374fb(0x25b)](o[_0x5374fb(0x288)])),N(0x2,o[_0x5374fb(0x24b)])],exports[_0x5374fb(0x211)]),exports[_0x5374fb(0x281)]=$,exports[_0x5374fb(0x287)]=E,exports[_0x5374fb(0x26d)]=u;
|
|
1
|
+
'use strict';const _0x4be423=_0x450d;(function(_0x82fca6,_0x3e8544){const _0x7f8a23=_0x450d,_0x18e795=_0x82fca6();while(!![]){try{const _0x39e475=-parseInt(_0x7f8a23(0x1df))/0x1*(-parseInt(_0x7f8a23(0x1f1))/0x2)+parseInt(_0x7f8a23(0x20f))/0x3*(-parseInt(_0x7f8a23(0x259))/0x4)+-parseInt(_0x7f8a23(0x1ea))/0x5+parseInt(_0x7f8a23(0x25b))/0x6+-parseInt(_0x7f8a23(0x235))/0x7*(-parseInt(_0x7f8a23(0x285))/0x8)+parseInt(_0x7f8a23(0x205))/0x9+-parseInt(_0x7f8a23(0x29a))/0xa;if(_0x39e475===_0x3e8544)break;else _0x18e795['push'](_0x18e795['shift']());}catch(_0x380fbd){_0x18e795['push'](_0x18e795['shift']());}}}(_0x3da3,0x99e86));var T=Object[_0x4be423(0x1e6)],U=(_0x5e1c7b,_0x1c72ac,_0x1a5b8b)=>_0x1c72ac in _0x5e1c7b?T(_0x5e1c7b,_0x1c72ac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a5b8b}):_0x5e1c7b[_0x1c72ac]=_0x1a5b8b,_=(_0x125212,_0x4e1d01,_0x29d45a)=>U(_0x125212,typeof _0x4e1d01!=_0x4be423(0x20d)?_0x4e1d01+'':_0x4e1d01,_0x29d45a);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':'Module'});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),f=require('@univerjs/design'),v=require('react'),d=require('@univerjs-pro/collaboration'),b=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),O=require('rxjs'),I=require('rxjs/operators'),D=require('@univerjs/sheets-ui');function x({ref:_0x15ef4b,..._0xd8dd28}){const _0x2f1562=_0x4be423,{icon:_0x1f4c94,id:_0x3b20fe,className:_0x3ab96e,extend:_0xe1c0e,..._0x1d9f6c}=_0xd8dd28,_0x58ca9a=(_0x2f1562(0x231)+_0x3b20fe+'\x20'+(_0x3ab96e||''))[_0x2f1562(0x20c)](),_0x1b68d8=v[_0x2f1562(0x223)]('_'+H());return j(_0x1f4c94,''+_0x3b20fe,{'defIds':_0x1f4c94[_0x2f1562(0x203)],'idSuffix':_0x1b68d8[_0x2f1562(0x1fe)]},{'ref':_0x15ef4b,'className':_0x58ca9a,..._0x1d9f6c},_0xe1c0e);}function j(_0x23b856,_0x3375e1,_0x586863,_0x490f9e,_0x5683f8){const _0x91b70e=_0x4be423;return v[_0x91b70e(0x265)](_0x23b856[_0x91b70e(0x201)],{'key':_0x3375e1,...y(_0x23b856,_0x586863,_0x5683f8),..._0x490f9e},(F(_0x23b856,_0x586863)['children']||[])['map']((_0x7109e9,_0x3a2b5d)=>j(_0x7109e9,_0x3375e1+'-'+_0x23b856[_0x91b70e(0x201)]+'-'+_0x3a2b5d,_0x586863,void 0x0,_0x5683f8)));}function y(_0x592cb6,_0x3a9449,_0x5d3616){const _0x42836b=_0x4be423,_0x597506={..._0x592cb6[_0x42836b(0x21c)]};_0x5d3616!=null&&_0x5d3616[_0x42836b(0x1e9)]&&_0x597506[_0x42836b(0x28f)]==='colorChannel1'&&(_0x597506[_0x42836b(0x28f)]=_0x5d3616[_0x42836b(0x1e9)]),_0x592cb6[_0x42836b(0x201)]===_0x42836b(0x22d)&&_0x597506['id']&&(_0x597506['id']=_0x597506['id']+_0x3a9449[_0x42836b(0x228)]),Object['entries'](_0x597506)[_0x42836b(0x1ec)](([_0x38d3b5,_0x335674])=>{const _0x232f31=_0x42836b;_0x38d3b5===_0x232f31(0x22d)&&typeof _0x335674==_0x232f31(0x1f8)&&(_0x597506[_0x38d3b5]=_0x335674['replace'](/url\(#(.*)\)/,_0x232f31(0x2a7)+_0x3a9449[_0x232f31(0x228)]+')'));});const {defIds:_0x586d8c}=_0x3a9449;return!_0x586d8c||_0x586d8c[_0x42836b(0x25f)]===0x0||(_0x592cb6[_0x42836b(0x201)]==='use'&&_0x597506[_0x42836b(0x21a)]&&(_0x597506[_0x42836b(0x21a)]=_0x597506[_0x42836b(0x21a)]+_0x3a9449[_0x42836b(0x228)]),Object[_0x42836b(0x283)](_0x597506)[_0x42836b(0x1ec)](([_0x1dab79,_0xd5703c])=>{const _0x413ae3=_0x42836b;typeof _0xd5703c==_0x413ae3(0x1f8)&&(_0x597506[_0x1dab79]=_0xd5703c[_0x413ae3(0x21d)](/url\(#(.*)\)/,'url(#$1'+_0x3a9449['idSuffix']+')'));})),_0x597506;}function F(_0x5a7bc1,_0x3e80c1){const _0x4a98f8=_0x4be423;var _0x43515d;const {defIds:_0x40e3d3}=_0x3e80c1;return!_0x40e3d3||_0x40e3d3[_0x4a98f8(0x25f)]===0x0?_0x5a7bc1:_0x5a7bc1[_0x4a98f8(0x201)]==='defs'&&((_0x43515d=_0x5a7bc1['children'])!=null&&_0x43515d[_0x4a98f8(0x25f)])?{..._0x5a7bc1,'children':_0x5a7bc1[_0x4a98f8(0x240)][_0x4a98f8(0x2a4)](_0x401d1c=>typeof _0x401d1c['attrs']['id']==_0x4a98f8(0x1f8)&&_0x40e3d3&&_0x40e3d3[_0x4a98f8(0x270)](_0x401d1c['attrs']['id'])?{..._0x401d1c,'attrs':{..._0x401d1c[_0x4a98f8(0x21c)],'id':_0x401d1c[_0x4a98f8(0x21c)]['id']+_0x3e80c1[_0x4a98f8(0x228)]}}:_0x401d1c)}:_0x5a7bc1;}function H(){const _0xaa1f9a=_0x4be423;return Math[_0xaa1f9a(0x1dc)]()['toString'](0x24)[_0xaa1f9a(0x2ab)](0x2,0x8);}x[_0x4be423(0x28a)]=_0x4be423(0x242);const V={'tag':_0x4be423(0x29b),'attrs':{'xmlns':_0x4be423(0x22b),'fill':_0x4be423(0x293),'viewBox':_0x4be423(0x218),'width':_0x4be423(0x239),'height':_0x4be423(0x239)},'children':[{'tag':_0x4be423(0x2ae),'attrs':{'fill':_0x4be423(0x210),'d':_0x4be423(0x262)}},{'tag':_0x4be423(0x2ae),'attrs':{'fill':'currentColor','d':_0x4be423(0x20b),'fillRule':'evenodd','clipRule':_0x4be423(0x296)}}]},R=v[_0x4be423(0x2ad)](function(_0x1fb323,_0x59ed43){const _0x550f2f=_0x4be423;return v[_0x550f2f(0x265)](x,Object[_0x550f2f(0x2a3)]({},_0x1fb323,{'id':_0x550f2f(0x206),'ref':_0x59ed43,'icon':V}));});R[_0x4be423(0x28a)]='LiveShareIcon';class E extends o[_0x4be423(0x27d)]{constructor(){super(...arguments),_(this,'_sharedOperations',new Set()),_(this,'_reporters',new Set());}[_0x4be423(0x222)](_0x423393){const _0x56c641=_0x4be423;return this[_0x56c641(0x200)][_0x56c641(0x212)](_0x423393),o['toDisposable'](()=>this['_sharedOperations']['delete'](_0x423393));}[_0x4be423(0x294)](_0x88dcd0){const _0x1cef71=_0x4be423;return this[_0x1cef71(0x267)]['add'](_0x88dcd0),o[_0x1cef71(0x251)](()=>this[_0x1cef71(0x267)][_0x1cef71(0x27a)](_0x88dcd0));}[_0x4be423(0x215)](_0x378805){const _0x31fc3b=_0x4be423;return this[_0x31fc3b(0x200)]['has'](_0x378805);}[_0x4be423(0x250)](_0x61efae){const _0x5d1fb0=_0x4be423;return Array[_0x5d1fb0(0x23d)](this['_reporters'])['map'](_0x56f4a3=>_0x56f4a3(_0x61efae));}}function _0x3da3(){const _0x221f9f=['UniverIcon','get','_stopPresenting','LIVESHARE_NEW_HOST','subscribe','IUniverInstanceService','send','data','_startPresenting','getTypeOfUnitDisposed$','CollaborationSessionService','Plugin','getOwnPropertyDescriptor','_configService','getInitialStates','toDisposable','BuiltInUIPart','SetZoomRatioOperation','status$','_status$','clsx','_init','LIVESHARE_TERMINATE','1820452FvWCHB','jsx','66432yQuVDa','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','next','NOT_FOLLOWING','length','takeUntil','params','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','_collabSessionService','_mountLiveShare','createElement','jsxs','_reporters','Dropdown','OPERATION','sheet','stopPresenting','getValue','_handleNewHost','RxDisposable','init','includes','memberID','You\x27are\x20offline.','pipe','_presenter','then','presenting','UniverCollaborationClientPlugin','LiveShareController','getLiveShareCoordinator','delete','UniverLiveSharePlugin','onRendered','Disposable','values','SetWorksheetActiveOperation','LiveShare','IUIPartsService','DesktopLiveShareController','entries','throttleTime','952uymwtI','You\x27re\x20presenting\x20the\x20document','_startFollowing','InsertSheetMutation','IConfigService','displayName','_uiPartsService','univer-size-4','getUnitId','onCommandExecuted','fill','useDependency','ONLINE','unsubscribe','none','registerInitialStateReporter','unitId','evenodd','_collabSession','useState','requireSession','5204290GfSyIS','svg','asObservable','_beIdle','has','_startLiveShareCoordinator','offline','Inject','_univerInstanceService','assign','map','Subject','onStarting','url(#$1','disposeWithMe','idle','getLiveShareCoordinatorSync','substring','getConfig','forwardRef','path','LIVESHARE_FETCH_OPERATIONS','_handleOperation','parseProtocolChangeset','ICommandService','UNIVER_UNKNOWN','clear','set','mergeOverrideWithDependencies','_fetchOperations','UniverInstanceType','random','default','Injector','807203FvAtBS','Start','dispose$','CollaborationEvent','OFFLINE','not-following','connectInjector','defineProperty','DisposableCollection','getTypeOfUnitAdded$','colorChannel1','5765240iOINSH','pluginName','forEach','registerDependencies','IDLE','operations','You\x27re\x20not\x20following\x20the\x20presenter','2ttFwrI','Start\x20following','LiveShareCoordinator','live-share.config','_entities','LiveShareService','_handleTerminate','string','_liveShareService','getMemberID','startFollowing','CommandType','NEW_CHANGESETS','current','LIVESHARE_OPERATION','_sharedOperations','tag','_handleNewChangeSets','defIds','_injector','8505432eYDnNu','live-share-icon','_config','mutations','getStatus','tryStartPresenting','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','trim','symbol','merge','3UdRpxt','currentColor','complete','add','button','_unitID','shouldShareOperation','_status','univer-mb-3\x20univer-w-full\x20univer-text-sm','0\x200\x2017\x2017','type','xlink:href','_commandService','attrs','replace','Button','_commandDisposable','LiveShareStatus','Fragment','registerSharedOperation','useRef','_handleOnline','executeCommand','SessionStatus','dispose','idSuffix','FOLLOWING','presenter','http://www.w3.org/2000/svg','LIVESHARE_REQUEST_HOST','mask','sessionStatus$','stringify','div','univerjs-icon\x20univerjs-icon-','text','setConfig','HEADER_MENU','58569zIodap','parse','Stop\x20presenting','event$','1em','_stopFollowing','stopFollowing','following','from','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','UNIVER_SHEET','children','useEffect'];_0x3da3=function(){return _0x221f9f;};return _0x3da3();}var M=Object['getOwnPropertyDescriptor'],P=(_0x56c834,_0x56f694,_0x2bf435,_0x119e9b)=>{const _0xcae18c=_0x4be423;for(var _0x461e37=_0x119e9b>0x1?void 0x0:_0x119e9b?M(_0x56f694,_0x2bf435):_0x56f694,_0x3e6cfb=_0x56c834[_0xcae18c(0x25f)]-0x1,_0x5e6262;_0x3e6cfb>=0x0;_0x3e6cfb--)(_0x5e6262=_0x56c834[_0x3e6cfb])&&(_0x461e37=_0x5e6262(_0x461e37)||_0x461e37);return _0x461e37;},S=(_0xa0b1b3,_0x14ed5f)=>(_0x3b5fea,_0x976c2d)=>_0x14ed5f(_0x3b5fea,_0x976c2d,_0xa0b1b3);exports[_0x4be423(0x278)]=class extends o[_0x4be423(0x26e)]{constructor(_0x4f90b3,_0x2d4867,_0x24dc7e){const _0x10e0ae=_0x4be423;super(),_(this,_0x10e0ae(0x1f5),new Map()),(this[_0x10e0ae(0x2a2)]=_0x4f90b3,this[_0x10e0ae(0x204)]=_0x2d4867,this[_0x10e0ae(0x263)]=_0x24dc7e,this[_0x10e0ae(0x257)]());}async[_0x4be423(0x279)](_0x536e1e){const _0x5b58f4=_0x4be423;return this[_0x5b58f4(0x1f5)][_0x5b58f4(0x29e)](_0x536e1e)||await this['_startLiveShareCoordinator'](_0x536e1e),this[_0x5b58f4(0x1f5)][_0x5b58f4(0x243)](_0x536e1e);}[_0x4be423(0x2aa)](_0x42bcdb){const _0x311b96=_0x4be423;var _0x191037;return(_0x191037=this['_entities'][_0x311b96(0x243)](_0x42bcdb))!=null?_0x191037:null;}[_0x4be423(0x257)](){const _0x1332f2=_0x4be423;this[_0x1332f2(0x2a2)][_0x1332f2(0x1e8)](o[_0x1332f2(0x1db)][_0x1332f2(0x23f)])['pipe'](I[_0x1332f2(0x260)](this['dispose$']))[_0x1332f2(0x246)](async _0x282664=>{const _0x447eea=_0x1332f2,_0x5746a8=_0x282664['getUnitId']();this[_0x447eea(0x1f5)][_0x447eea(0x29e)](_0x5746a8)||this['_startLiveShareCoordinator'](_0x5746a8);}),this[_0x1332f2(0x2a2)][_0x1332f2(0x24b)](o[_0x1332f2(0x1db)][_0x1332f2(0x23f)])[_0x1332f2(0x273)](I[_0x1332f2(0x260)](this['dispose$']))[_0x1332f2(0x246)](_0x1d168a=>{const _0x42742f=_0x1332f2,_0x18c131=_0x1d168a[_0x42742f(0x28d)](),_0x433f91=this[_0x42742f(0x1f5)]['get'](_0x18c131);_0x433f91==null||_0x433f91[_0x42742f(0x227)]();});}async[_0x4be423(0x29f)](_0x50984b){const _0x428515=_0x4be423,_0x49521a=await this[_0x428515(0x263)][_0x428515(0x299)](_0x50984b),_0x46e198=this[_0x428515(0x204)]['createInstance'](exports['LiveShareCoordinator'],_0x50984b,_0x49521a);return _0x46e198[_0x428515(0x26f)](),this['_entities']['set'](_0x50984b,_0x46e198),_0x46e198;}},exports['LiveShareController']=P([S(0x0,o[_0x4be423(0x247)]),S(0x1,o['Inject'](o['Injector'])),S(0x2,o['Inject'](b[_0x4be423(0x24c)]))],exports[_0x4be423(0x278)]);var u=(_0x528efa=>(_0x528efa[_0x4be423(0x1e3)]='offline',_0x528efa[_0x4be423(0x1ee)]=_0x4be423(0x2a9),_0x528efa[_0x4be423(0x229)]='following',_0x528efa[_0x4be423(0x25e)]=_0x4be423(0x1e4),_0x528efa['PRESENTING']=_0x4be423(0x276),_0x528efa))(u||{});const k='SAME_OPERATION_SHARE_INTERVAL',q=0xc8;exports[_0x4be423(0x1f3)]=class extends o['RxDisposable']{constructor(_0x1205bd,_0xa3cae2,_0x5a67f3,_0x1f8d75,_0x17f242){const _0x5a20f5=_0x4be423;super(),_(this,_0x5a20f5(0x255),new O['BehaviorSubject'](_0x5a20f5(0x2a9))),_(this,_0x5a20f5(0x254),this['_status$'][_0x5a20f5(0x29c)]()),_(this,_0x5a20f5(0x257),!0x1),_(this,'_commandDisposable',null),_(this,_0x5a20f5(0x274),null),(this[_0x5a20f5(0x214)]=_0x1205bd,this[_0x5a20f5(0x297)]=_0xa3cae2,this[_0x5a20f5(0x24f)]=_0x5a67f3,this[_0x5a20f5(0x1f9)]=_0x1f8d75,this[_0x5a20f5(0x21b)]=_0x17f242);}get[_0x4be423(0x216)](){const _0x183ff4=_0x4be423;return this[_0x183ff4(0x255)][_0x183ff4(0x26c)]();}[_0x4be423(0x227)](){const _0x5a10e6=_0x4be423;var _0x2d68e0;(_0x2d68e0=this[_0x5a10e6(0x21f)])==null||_0x2d68e0['dispose'](),this[_0x5a10e6(0x255)][_0x5a10e6(0x25d)](_0x5a10e6(0x2a9)),this[_0x5a10e6(0x255)][_0x5a10e6(0x211)]();}[_0x4be423(0x209)](){const _0x98e44a=_0x4be423;return this[_0x98e44a(0x216)];}['init'](){const _0x19e100=_0x4be423;this['_init']||(this[_0x19e100(0x257)]=!0x0,this['_collabSession'][_0x19e100(0x22e)]['pipe'](I[_0x19e100(0x260)](this[_0x19e100(0x1e1)]))['subscribe'](_0x170e8f=>{const _0x8524c6=_0x19e100;switch(_0x170e8f){case b[_0x8524c6(0x226)]['OFFLINE']:this['_handleOffline']();break;case b[_0x8524c6(0x226)][_0x8524c6(0x291)]:this[_0x8524c6(0x224)]();break;}}),this['_collabSession'][_0x19e100(0x238)][_0x19e100(0x273)](I['takeUntil'](this[_0x19e100(0x1e1)]))[_0x19e100(0x246)](_0x1b24ab=>{const _0xf21c22=_0x19e100,{eventID:_0x1fbc31}=_0x1b24ab;switch(_0x1fbc31){case d['CollaborationEvent'][_0xf21c22(0x245)]:this[_0xf21c22(0x26d)](_0x1b24ab);break;case d[_0xf21c22(0x1e2)][_0xf21c22(0x1ff)]:this[_0xf21c22(0x2b0)](_0x1b24ab);break;case d['CollaborationEvent'][_0xf21c22(0x258)]:this[_0xf21c22(0x1f7)]();break;case d[_0xf21c22(0x1e2)][_0xf21c22(0x1fd)]:this[_0xf21c22(0x202)](_0x1b24ab);break;}}));}['tryStartPresenting'](){const _0x4340f6=_0x4be423;this[_0x4340f6(0x297)][_0x4340f6(0x248)]({'eventID':d[_0x4340f6(0x1e2)][_0x4340f6(0x22c)],'data':{'unitID':this[_0x4340f6(0x214)],'userID':this[_0x4340f6(0x297)]['getMemberID']()}},this['_unitID']);}[_0x4be423(0x26b)](){const _0x479369=_0x4be423;this['_status']===_0x479369(0x276)&&(this['_status$']['next'](_0x479369(0x2a9)),this[_0x479369(0x297)][_0x479369(0x248)]({'eventID':d[_0x479369(0x1e2)][_0x479369(0x258)],'data':{'unitID':this[_0x479369(0x214)]}},this[_0x479369(0x214)]));}['startFollowing'](){const _0x1536f2=_0x4be423;this[_0x1536f2(0x216)]===_0x1536f2(0x1e4)&&(this[_0x1536f2(0x255)][_0x1536f2(0x25d)](_0x1536f2(0x23c)),this[_0x1536f2(0x287)]());}[_0x4be423(0x23b)](){const _0x48d0f2=_0x4be423;this[_0x48d0f2(0x216)]===_0x48d0f2(0x23c)&&this[_0x48d0f2(0x23a)]();}['_handleNewHost'](_0x8a813c){const _0x16587d=_0x4be423,{presenter:_0x28091b}=_0x8a813c['data'],_0x5e9c1c=this[_0x16587d(0x297)][_0x16587d(0x1fa)]();this[_0x16587d(0x274)]=_0x28091b,_0x28091b===_0x5e9c1c?(this['_stopFollowing'](),this['_startPresenting']()):this['_status']!==_0x16587d(0x1e4)&&(this[_0x16587d(0x244)](),this[_0x16587d(0x287)]());}[_0x4be423(0x1da)](){const _0x270a6f=_0x4be423,_0x1316fd={'eventID':d['CollaborationEvent'][_0x270a6f(0x2af)]};this[_0x270a6f(0x297)]['send'](_0x1316fd,this['_unitID']);}['_handleTerminate'](){const _0x2b7279=_0x4be423;this['_presenter']=null,this[_0x2b7279(0x216)]!==_0x2b7279(0x276)&&this[_0x2b7279(0x29d)]();}[_0x4be423(0x202)](_0x44403c){const _0x516854=_0x4be423;if(this[_0x516854(0x216)]===_0x516854(0x23c)&&this[_0x516854(0x274)]===_0x44403c[_0x516854(0x249)][_0x516854(0x271)]){const _0x43d2ec=d[_0x516854(0x1d4)](_0x44403c[_0x516854(0x249)])[_0x516854(0x208)]['reverse']()['find'](_0x9bec5c=>_0x9bec5c['id']===C[_0x516854(0x288)]['id']);if(_0x43d2ec){const _0x1b8272=_0x43d2ec['params'][_0x516854(0x295)],_0x517762=_0x43d2ec[_0x516854(0x261)][_0x516854(0x26a)]['id'];setTimeout(()=>{const _0x343a8a=_0x516854;this[_0x343a8a(0x21b)][_0x343a8a(0x225)](C[_0x343a8a(0x27f)]['id'],{'unitId':_0x1b8272,'subUnitId':_0x517762},{'fromCollab':!0x0});});}}}[_0x4be423(0x24a)](){const _0x5debdc=_0x4be423;this[_0x5debdc(0x255)][_0x5debdc(0x25d)](_0x5debdc(0x276));const _0x1b4ebb=new Map(),_0x15a954=this[_0x5debdc(0x21f)]=new o[(_0x5debdc(0x1e7))]();_0x15a954[_0x5debdc(0x212)](o[_0x5debdc(0x251)](()=>{const _0x3e749d=_0x5debdc;_0x1b4ebb[_0x3e749d(0x1ec)](_0x21e699=>_0x21e699[_0x3e749d(0x211)]()),_0x1b4ebb[_0x3e749d(0x1d7)]();})),_0x15a954[_0x5debdc(0x212)](this[_0x5debdc(0x21b)][_0x5debdc(0x28e)](_0x235597=>{const _0x2f5fe0=_0x5debdc;var _0x37851a;if(_0x235597['type']!==o[_0x2f5fe0(0x1fc)][_0x2f5fe0(0x269)]||!this[_0x2f5fe0(0x1f9)][_0x2f5fe0(0x215)](_0x235597['id']))return;const {id:_0xbcb9bc}=_0x235597;let _0x388da3;_0x1b4ebb['has'](_0xbcb9bc)?_0x388da3=_0x1b4ebb[_0x2f5fe0(0x243)](_0xbcb9bc):(_0x388da3=new O[(_0x2f5fe0(0x2a5))](),_0x1b4ebb[_0x2f5fe0(0x1d8)](_0xbcb9bc,_0x388da3),_0x388da3[_0x2f5fe0(0x273)](I[_0x2f5fe0(0x284)]((_0x37851a=this[_0x2f5fe0(0x24f)][_0x2f5fe0(0x2ac)](k))!=null?_0x37851a:q,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1497a6=>{const _0x3710b3=_0x2f5fe0;this[_0x3710b3(0x297)][_0x3710b3(0x248)]({'eventID':d[_0x3710b3(0x1e2)][_0x3710b3(0x1ff)],'data':{'unitID':this[_0x3710b3(0x214)],'operations':{[_0x1497a6['id']]:{'id':_0x1497a6['id'],'params':JSON['stringify'](_0x1497a6[_0x3710b3(0x261)])}}}},this[_0x3710b3(0x214)]);})),_0x388da3['next'](_0x235597);})),this[_0x5debdc(0x1f9)]['getInitialStates'](this[_0x5debdc(0x214)])[_0x5debdc(0x1ec)](_0x43bb53=>this['_collabSession']['send']({'eventID':d[_0x5debdc(0x1e2)][_0x5debdc(0x1ff)],'data':{'unitID':this['_unitID'],'operations':{[_0x43bb53['id']]:{'id':_0x43bb53['id'],'params':JSON[_0x5debdc(0x22f)](_0x43bb53[_0x5debdc(0x261)])}}}},this[_0x5debdc(0x214)]));}[_0x4be423(0x244)](){const _0x12a7c3=_0x4be423;var _0x88643;this[_0x12a7c3(0x255)][_0x12a7c3(0x25d)](_0x12a7c3(0x2a9)),(_0x88643=this[_0x12a7c3(0x21f)])==null||_0x88643['dispose'](),this[_0x12a7c3(0x21f)]=null;}[_0x4be423(0x287)](){const _0x2c41cf=_0x4be423;var _0x4ae386;(_0x4ae386=this[_0x2c41cf(0x21f)])==null||_0x4ae386[_0x2c41cf(0x227)](),this[_0x2c41cf(0x255)][_0x2c41cf(0x25d)](_0x2c41cf(0x23c));}[_0x4be423(0x29d)](){const _0xbc3d64=_0x4be423;var _0x356186;this[_0xbc3d64(0x255)]['next'](_0xbc3d64(0x2a9)),(_0x356186=this['_commandDisposable'])==null||_0x356186[_0xbc3d64(0x227)](),this[_0xbc3d64(0x21f)]=null;}['_stopFollowing'](){const _0x5e60d4=_0x4be423;var _0x2e4d6c;this[_0x5e60d4(0x255)][_0x5e60d4(0x25d)](_0x5e60d4(0x1e4)),(_0x2e4d6c=this[_0x5e60d4(0x21f)])==null||_0x2e4d6c[_0x5e60d4(0x227)]();}[_0x4be423(0x2b0)](_0x3ab948){const _0xc05936=_0x4be423;if([_0xc05936(0x276),_0xc05936(0x1e4),_0xc05936(0x2a0)]['includes'](this[_0xc05936(0x216)])||!_0x3ab948['data']['presenter']||_0x3ab948[_0xc05936(0x249)][_0xc05936(0x22a)]===this[_0xc05936(0x297)][_0xc05936(0x1fa)]())return;this[_0xc05936(0x216)]===_0xc05936(0x2a9)&&this['_startFollowing']();const _0x2bc742=_0x3ab948[_0xc05936(0x249)][_0xc05936(0x1ef)];Object[_0xc05936(0x27e)](_0x2bc742)['forEach'](_0x77c444=>{const _0x3537cc=_0xc05936;this[_0x3537cc(0x21b)]['executeCommand'](_0x77c444['id'],_0x77c444[_0x3537cc(0x261)]?JSON[_0x3537cc(0x236)](_0x77c444[_0x3537cc(0x261)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){const _0x408f99=_0x4be423;var _0x1ea941;this[_0x408f99(0x255)][_0x408f99(0x25d)]('offline'),(_0x1ea941=this['_commandDisposable'])==null||_0x1ea941[_0x408f99(0x227)]();}[_0x4be423(0x224)](){const _0x4870a7=_0x4be423;this[_0x4870a7(0x255)][_0x4870a7(0x25d)](_0x4870a7(0x2a9)),this['_fetchOperations']();}},exports[_0x4be423(0x1f3)]=P([S(0x2,o[_0x4be423(0x289)]),S(0x3,o['Inject'](E)),S(0x4,o[_0x4be423(0x1d5)])],exports['LiveShareCoordinator']);function $(){const _0x2b1e30=_0x4be423,_0x1772b5=p['useDependency'](exports['LiveShareController']),_0x2fcafc=p[_0x2b1e30(0x290)](o[_0x2b1e30(0x247)]),_0x46b5a7=p['useObservable'](()=>_0x2fcafc['getCurrentTypeOfUnit$'](o[_0x2b1e30(0x1db)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x264b1d,_0x283085]=v[_0x2b1e30(0x298)](null),[_0x5be250,_0x162ba3]=v[_0x2b1e30(0x298)](u['IDLE']),_0x5af2ff=v[_0x2b1e30(0x223)](null);return v[_0x2b1e30(0x241)](()=>(_0x46b5a7&&_0x1772b5['getLiveShareCoordinator'](_0x46b5a7[_0x2b1e30(0x28d)]())[_0x2b1e30(0x275)](_0x1954cc=>{const _0x843dc0=_0x2b1e30;_0x283085(_0x1954cc),_0x5af2ff[_0x843dc0(0x1fe)]=_0x1954cc[_0x843dc0(0x254)][_0x843dc0(0x246)](_0xb307b3=>{_0x162ba3(_0xb307b3);});}),()=>{const _0x1a88f0=_0x2b1e30;var _0x34d334;(_0x34d334=_0x5af2ff[_0x1a88f0(0x1fe)])==null||_0x34d334[_0x1a88f0(0x292)](),_0x5af2ff[_0x1a88f0(0x1fe)]=null;}),[_0x46b5a7,_0x1772b5]),_0x264b1d?l['jsx'](f[_0x2b1e30(0x268)],{'align':'end','disabled':_0x5be250===u['OFFLINE'],'className':_0x2b1e30(0x23e),'overlay':l[_0x2b1e30(0x25a)](W,{'status':_0x5be250,'coordinator':_0x264b1d}),'children':l['jsx'](_0x2b1e30(0x213),{'className':f[_0x2b1e30(0x256)](_0x2b1e30(0x25c),{'univer-cursor-not-allowed':_0x5be250===u['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5be250!==u['OFFLINE']}),'type':'button','children':l[_0x2b1e30(0x25a)](R,{'className':_0x2b1e30(0x28c)})})}):null;}function W(_0x3e96e1){const _0x59a675=_0x4be423,{status:_0x5617d8,coordinator:_0x1424e8}=_0x3e96e1;switch(_0x5617d8){case u[_0x59a675(0x1ee)]:return l[_0x59a675(0x25a)](G,{'coordinator':_0x1424e8});case u[_0x59a675(0x229)]:return l['jsx'](B,{'coordinator':_0x1424e8});case u[_0x59a675(0x25e)]:return l[_0x59a675(0x25a)](Y,{'coordinator':_0x1424e8});case u[_0x59a675(0x1e3)]:return l[_0x59a675(0x25a)](J,{});case u['PRESENTING']:return l['jsx'](Z,{'coordinator':_0x1424e8});default:return null;}}function G(_0x2ed693){const _0x448ea0=_0x4be423,{coordinator:_0xeef429}=_0x2ed693;return l[_0x448ea0(0x266)](l[_0x448ea0(0x221)],{'children':[l[_0x448ea0(0x25a)](_0x448ea0(0x230),{'className':_0x448ea0(0x217),'children':'Present\x20this\x20document'}),l[_0x448ea0(0x25a)](f[_0x448ea0(0x21e)],{'onClick':()=>_0xeef429[_0x448ea0(0x20a)](),'children':_0x448ea0(0x1e0)})]});}function B(_0x5e4ab0){const _0x5c7595=_0x4be423,{coordinator:_0xcb303f}=_0x5e4ab0;return l['jsxs'](l[_0x5c7595(0x221)],{'children':[l[_0x5c7595(0x25a)]('div',{'className':_0x5c7595(0x217),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x5c7595(0x25a)](f[_0x5c7595(0x21e)],{'onClick':()=>_0xcb303f[_0x5c7595(0x23b)](),'children':'Stop\x20following'})]});}function Y(_0x205783){const _0x3de7b8=_0x4be423,{coordinator:_0x350ea1}=_0x205783;return l[_0x3de7b8(0x266)](l['Fragment'],{'children':[l[_0x3de7b8(0x25a)]('div',{'className':_0x3de7b8(0x217),'children':_0x3de7b8(0x1f0)}),l['jsx'](f[_0x3de7b8(0x21e)],{'variant':_0x3de7b8(0x232),'onClick':()=>_0x350ea1[_0x3de7b8(0x1fb)](),'children':_0x3de7b8(0x1f2)})]});}function Z(_0x333a97){const _0x3a3480=_0x4be423,{coordinator:_0x4f42e9}=_0x333a97;return l['jsxs'](l[_0x3a3480(0x221)],{'children':[l['jsx'](_0x3a3480(0x230),{'className':_0x3a3480(0x217),'children':_0x3a3480(0x286)}),l[_0x3a3480(0x25a)](f[_0x3a3480(0x21e)],{'variant':_0x3a3480(0x1dd),'onClick':()=>_0x4f42e9[_0x3a3480(0x26b)](),'children':_0x3a3480(0x237)})]});}function J(){const _0x17b7ad=_0x4be423;return l[_0x17b7ad(0x25a)](l[_0x17b7ad(0x221)],{'children':_0x17b7ad(0x272)});}var K=Object[_0x4be423(0x24e)],z=(_0x1a7772,_0x1d0111,_0x127d5b,_0xe49e22)=>{const _0x5dc11d=_0x4be423;for(var _0x3f0a2e=_0xe49e22>0x1?void 0x0:_0xe49e22?K(_0x1d0111,_0x127d5b):_0x1d0111,_0xb7c75d=_0x1a7772[_0x5dc11d(0x25f)]-0x1,_0x30d7c6;_0xb7c75d>=0x0;_0xb7c75d--)(_0x30d7c6=_0x1a7772[_0xb7c75d])&&(_0x3f0a2e=_0x30d7c6(_0x3f0a2e)||_0x3f0a2e);return _0x3f0a2e;},L=(_0x327b37,_0x107132)=>(_0x53b8f4,_0x1028be)=>_0x107132(_0x53b8f4,_0x1028be,_0x327b37);exports['DesktopLiveShareController']=class extends o[_0x4be423(0x27d)]{constructor(_0x5ec29f,_0x295404){const _0x2eb87b=_0x4be423;super(),this[_0x2eb87b(0x204)]=_0x5ec29f,this[_0x2eb87b(0x28b)]=_0x295404,this[_0x2eb87b(0x264)]();}[_0x4be423(0x264)](){const _0x162653=_0x4be423;this[_0x162653(0x2a8)](this[_0x162653(0x28b)]['registerComponent'](p[_0x162653(0x252)][_0x162653(0x234)],()=>p[_0x162653(0x1e5)]($,this['_injector'])));}},exports['DesktopLiveShareController']=z([L(0x0,o[_0x4be423(0x2a1)](o[_0x4be423(0x1de)])),L(0x1,p[_0x4be423(0x281)])],exports[_0x4be423(0x282)]);function _0x450d(_0x51d301,_0x187dd9){_0x51d301=_0x51d301-0x1d4;const _0x3da352=_0x3da3();let _0x450d1c=_0x3da352[_0x51d301];return _0x450d1c;}const Q=_0x4be423(0x1f4),w={};var X=Object[_0x4be423(0x24e)],ee=(_0x3dbe96,_0x2f89a9,_0x577b0b,_0xd98f59)=>{const _0x29243e=_0x4be423;for(var _0x5e9322=_0xd98f59>0x1?void 0x0:_0xd98f59?X(_0x2f89a9,_0x577b0b):_0x2f89a9,_0x20f02a=_0x3dbe96[_0x29243e(0x25f)]-0x1,_0x52829d;_0x20f02a>=0x0;_0x20f02a--)(_0x52829d=_0x3dbe96[_0x20f02a])&&(_0x5e9322=_0x52829d(_0x5e9322)||_0x5e9322);return _0x5e9322;},te=(_0x2486f5,_0x5189a2)=>(_0x6f854b,_0x166132)=>_0x5189a2(_0x6f854b,_0x166132,_0x2486f5);let m=class extends o[_0x4be423(0x27d)]{constructor(_0x5ea533){const _0x4b9d77=_0x4be423;super(),this[_0x4b9d77(0x1f9)]=_0x5ea533,this['_init']();}[_0x4be423(0x257)](){const _0x29d4b4=_0x4be423;[D[_0x29d4b4(0x253)]['id'],D['SetScrollOperation']['id'],C[_0x29d4b4(0x27f)]['id']][_0x29d4b4(0x1ec)](_0x1a71ba=>{const _0xd8d932=_0x29d4b4;this[_0xd8d932(0x2a8)](this[_0xd8d932(0x1f9)]['registerSharedOperation'](_0x1a71ba));});}};m=ee([te(0x0,o[_0x4be423(0x2a1)](E))],m);var ie=Object[_0x4be423(0x1e6)],se=Object['getOwnPropertyDescriptor'],ne=(_0x2f486f,_0x584e67,_0x59721f)=>_0x584e67 in _0x2f486f?ie(_0x2f486f,_0x584e67,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59721f}):_0x2f486f[_0x584e67]=_0x59721f,re=(_0x44a17c,_0xb06693,_0x2bd87f,_0x39b6ed)=>{const _0x5ea464=_0x4be423;for(var _0x1ea0f9=_0x39b6ed>0x1?void 0x0:_0x39b6ed?se(_0xb06693,_0x2bd87f):_0xb06693,_0x1f2238=_0x44a17c[_0x5ea464(0x25f)]-0x1,_0x2e9ea9;_0x1f2238>=0x0;_0x1f2238--)(_0x2e9ea9=_0x44a17c[_0x1f2238])&&(_0x1ea0f9=_0x2e9ea9(_0x1ea0f9)||_0x1ea0f9);return _0x1ea0f9;},N=(_0x380908,_0x21d5fc)=>(_0xd564ac,_0x2ffd90)=>_0x21d5fc(_0xd564ac,_0x2ffd90,_0x380908),A=(_0x2644dd,_0x5848c4,_0x3e2a8a)=>ne(_0x2644dd,typeof _0x5848c4!=_0x4be423(0x20d)?_0x5848c4+'':_0x5848c4,_0x3e2a8a);const oe='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x4be423(0x27b)]=class extends o[_0x4be423(0x24d)]{constructor(_0x195689=w,_0x310b5f,_0x479868){const _0x2da8e5=_0x4be423;super(),this['_config']=_0x195689,this[_0x2da8e5(0x204)]=_0x310b5f,this['_configService']=_0x479868;const {..._0x1444af}=o[_0x2da8e5(0x20e)]({},w,this[_0x2da8e5(0x207)]);this['_configService'][_0x2da8e5(0x233)](Q,_0x1444af);}[_0x4be423(0x2a6)](){const _0x157f23=_0x4be423;o[_0x157f23(0x1ed)](this['_injector'],o[_0x157f23(0x1d9)]([[E],[exports[_0x157f23(0x278)]],[m],[exports[_0x157f23(0x282)]]],this[_0x157f23(0x207)]['override'])),o['touchDependencies'](this[_0x157f23(0x204)],[[m]]);}[_0x4be423(0x27c)](){const _0x3cebca=_0x4be423;o['touchDependencies'](this[_0x3cebca(0x204)],[[exports[_0x3cebca(0x282)]]]);}},A(exports[_0x4be423(0x27b)],_0x4be423(0x219),o[_0x4be423(0x1db)][_0x4be423(0x1d6)]),A(exports[_0x4be423(0x27b)],_0x4be423(0x1eb),oe),exports['UniverLiveSharePlugin']=re([o['DependentOn'](b[_0x4be423(0x277)]),N(0x1,o[_0x4be423(0x2a1)](o[_0x4be423(0x1de)])),N(0x2,o[_0x4be423(0x289)])],exports[_0x4be423(0x27b)]),exports[_0x4be423(0x280)]=$,exports[_0x4be423(0x1f6)]=E,exports[_0x4be423(0x220)]=u;
|
package/lib/es/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const _0x510e92=_0x4f85;(function(_0x34ba85,_0x4522a6){const _0x36ae73=_0x4f85,_0xabf814=_0x34ba85();while(!![]){try{const _0x35b24a=-parseInt(_0x36ae73(0xfc))/0x1*(-parseInt(_0x36ae73(0xf6))/0x2)+parseInt(_0x36ae73(0x103))/0x3+-parseInt(_0x36ae73(0xed))/0x4*(parseInt(_0x36ae73(0xf7))/0x5)+parseInt(_0x36ae73(0xfb))/0x6*(parseInt(_0x36ae73(0xf2))/0x7)+parseInt(_0x36ae73(0xff))/0x8+parseInt(_0x36ae73(0x106))/0x9*(parseInt(_0x36ae73(0xf0))/0xa)+-parseInt(_0x36ae73(0xe7))/0xb;if(_0x35b24a===_0x4522a6)break;else _0xabf814['push'](_0xabf814['shift']());}catch(_0x560b08){_0xabf814['push'](_0xabf814['shift']());}}}(_0x575f,0xaca61));import{LiveShareController as _0x1ca6a4,LiveShareStatus as _0x2cb366}from'@univerjs-pro/live-share';function _0x575f(){const _0x35db40=['startFollowing','syncExecuteCommand','getId','2YTzTXe','5637365VZURxs','stopFollowing','LiveShareStatusEnum','stopPresenting','1146RODFUM','399613SUCqoA','_initialize','getActiveSheet','7274448tgxnIi','get','_commandService','getLiveShareCoordinatorSync','1928124qQePgA','startRow','getLiveShareStatus','6525SGuobw','startPresenting','IDLE','extend','_injector','tryStartPresenting','11124069TCcraZ','executeCommand','No\x20active\x20workbook\x20found.','getStatus','getUnitId','getActiveWorkbook','4wGlfTW','startColumn','getSheetId','5330srhhtM','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','18613iSnbqI'];_0x575f=function(){return _0x35db40;};return _0x575f();}import{IRenderManagerService as _0x3cd943}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x3495bd}from'@univerjs/sheets';import{SetScrollOperation as _0x40f6af}from'@univerjs/sheets-ui';import{FRange as _0x459a39}from'@univerjs/sheets/facade';import{FUniver as _0x89d62c,FEnum as _0x478e8a}from'@univerjs/core/facade';class I extends _0x459a39{[_0x510e92(0xfd)](_0x548c86,_0x294ade,_0x595d7d,_0x212bca,_0x116be4){const _0x94740=_0x510e92,_0x1dadf6=_0x548c86[_0x94740(0x100)](_0x1ca6a4),_0x2f8afe=_0x548c86[_0x94740(0x100)](_0x3cd943),_0x2473cb=_0x294ade[_0x94740(0xeb)](),_0xd69fe8=_0x294ade[_0x94740(0xfe)](),_0x2b2da9=_0x1dadf6['getLiveShareCoordinatorSync'](_0x2473cb);(_0x2b2da9==null?void 0x0:_0x2b2da9[_0x94740(0xea)]())!==_0x2cb366['PRESENTING']||(_0x595d7d['getSheetId']()!==_0xd69fe8[_0x94740(0xef)]()&&this[_0x94740(0x101)][_0x94740(0xe8)](_0x3495bd['id'],{'unitId':_0x2473cb,'subUnitId':_0x595d7d[_0x94740(0xef)]()}),!_0x2f8afe['getRenderById'](_0x2473cb))||_0x116be4[_0x94740(0xf4)](_0x40f6af['id'],{'unitId':_0x294ade[_0x94740(0xeb)](),'sheetId':_0x595d7d['getSheetId'](),'sheetViewStartRow':_0x212bca[_0x94740(0x104)],'sheetViewStartColumn':_0x212bca[_0x94740(0xee)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x459a39[_0x510e92(0x109)](I);class m extends _0x89d62c{[_0x510e92(0x105)](){const _0x2225bb=_0x510e92;var _0x2b90fa,_0x2ac7a7;const _0x1eacb4=this[_0x2225bb(0xe5)]['get'](_0x1ca6a4),_0x377ac0=(_0x2b90fa=this[_0x2225bb(0xec)]())==null?void 0x0:_0x2b90fa[_0x2225bb(0xf5)]();if(!_0x377ac0)throw new Error(_0x2225bb(0xe9));const _0x3b0f94=_0x1eacb4[_0x2225bb(0x102)](_0x377ac0);return(_0x2ac7a7=_0x3b0f94==null?void 0x0:_0x3b0f94[_0x2225bb(0xea)]())!=null?_0x2ac7a7:_0x2cb366[_0x2225bb(0x108)];}[_0x510e92(0xf3)](){const _0x29687c=_0x510e92;var _0x326131;const _0x3eb30b=this[_0x29687c(0xe5)][_0x29687c(0x100)](_0x1ca6a4),_0x168946=(_0x326131=this[_0x29687c(0xec)]())==null?void 0x0:_0x326131[_0x29687c(0xf5)]();if(!_0x168946)throw new Error(_0x29687c(0xe9));const _0x160636=_0x3eb30b[_0x29687c(0x102)](_0x168946);if(!_0x160636)throw new Error(_0x29687c(0xf1));_0x160636[_0x29687c(0xf3)]();}[_0x510e92(0xf8)](){const _0x530c57=_0x510e92;var _0x1b2a7b;const _0xd0e19f=this[_0x530c57(0xe5)][_0x530c57(0x100)](_0x1ca6a4),_0x5f3ecd=(_0x1b2a7b=this[_0x530c57(0xec)]())==null?void 0x0:_0x1b2a7b['getId']();if(!_0x5f3ecd)throw new Error('No\x20active\x20workbook\x20found.');const _0x657c61=_0xd0e19f['getLiveShareCoordinatorSync'](_0x5f3ecd);if(!_0x657c61)throw new Error(_0x530c57(0xf1));_0x657c61['stopFollowing']();}[_0x510e92(0x107)](){const _0x467974=_0x510e92;var _0xeb20c1;const _0xfe8bbd=this['_injector'][_0x467974(0x100)](_0x1ca6a4),_0x3075de=(_0xeb20c1=this['getActiveWorkbook']())==null?void 0x0:_0xeb20c1['getId']();if(!_0x3075de)throw new Error(_0x467974(0xe9));const _0x15fe1c=_0xfe8bbd[_0x467974(0x102)](_0x3075de);if(!_0x15fe1c)throw new Error(_0x467974(0xf1));_0x15fe1c[_0x467974(0xe6)]();}[_0x510e92(0xfa)](){const _0x4e9f75=_0x510e92;var _0x2d81be;const _0x4e9abb=this[_0x4e9f75(0xe5)]['get'](_0x1ca6a4),_0x221c4e=(_0x2d81be=this[_0x4e9f75(0xec)]())==null?void 0x0:_0x2d81be[_0x4e9f75(0xf5)]();if(!_0x221c4e)throw new Error(_0x4e9f75(0xe9));const _0x3de30c=_0x4e9abb['getLiveShareCoordinatorSync'](_0x221c4e);if(!_0x3de30c)throw new Error(_0x4e9f75(0xf1));_0x3de30c[_0x4e9f75(0xfa)]();}}_0x89d62c[_0x510e92(0x109)](m);class C extends _0x478e8a{get[_0x510e92(0xf9)](){return _0x2cb366;}}function _0x4f85(_0x22962c,_0x4998ca){_0x22962c=_0x22962c-0xe5;const _0x575fec=_0x575f();let _0x4f8578=_0x575fec[_0x22962c];return _0x4f8578;}_0x478e8a[_0x510e92(0x109)](C);
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x562b47=_0x465d;(function(_0x4cd1ab,_0x3b9ac4){const _0x231961=_0x465d,_0x2b535b=_0x4cd1ab();while(!![]){try{const _0x54b116=parseInt(_0x231961(0x145))/0x1*(-parseInt(_0x231961(0x164))/0x2)+parseInt(_0x231961(0xeb))/0x3*(-parseInt(_0x231961(0x128))/0x4)+parseInt(_0x231961(0x136))/0x5*(parseInt(_0x231961(0xd1))/0x6)+parseInt(_0x231961(0x148))/0x7*(parseInt(_0x231961(0x14c))/0x8)+parseInt(_0x231961(0x12a))/0x9+-parseInt(_0x231961(0x152))/0xa+parseInt(_0x231961(0x15c))/0xb;if(_0x54b116===_0x3b9ac4)break;else _0x2b535b['push'](_0x2b535b['shift']());}catch(_0x21dbd4){_0x2b535b['push'](_0x2b535b['shift']());}}}(_0xad37,0x605b1));var J=Object['defineProperty'],K=(_0x2e0408,_0x7c337c,_0x2c8bdc)=>_0x7c337c in _0x2e0408?J(_0x2e0408,_0x7c337c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c8bdc}):_0x2e0408[_0x7c337c]=_0x2c8bdc,u=(_0x97d849,_0x181dd3,_0x145323)=>K(_0x97d849,typeof _0x181dd3!=_0x562b47(0x10f)?_0x181dd3+'':_0x181dd3,_0x145323);import{Disposable as _0x2e50d0,toDisposable as _0x4271be,IUniverInstanceService as _0x187255,Inject as _0x264acd,Injector as _0x126a5b,IConfigService as _0x974748,ICommandService as _0x105090,RxDisposable as _0x51a549,UniverInstanceType as _0x51802f,DisposableCollection as _0x43222f,CommandType as _0x33f042,DependentOn as _0x411c47,Plugin as _0x1130c7,merge as _0xb0c13e,registerDependencies as _0x333ef5,mergeOverrideWithDependencies as _0x3d1a15,touchDependencies as _0x1c3957}from'@univerjs/core';import{useDependency as _0x38dad9,useObservable as _0x14a93c,IUIPartsService as _0x28a6aa,BuiltInUIPart as _0x2de438,connectInjector as _0x183c2b}from'@univerjs/ui';import{jsx as _0x33bb7b,jsxs as _0x4dcdb8,Fragment as _0x967f7f}from'react/jsx-runtime';import{Dropdown as _0x5079de,clsx as _0x54f579,Button as _0x468343}from'@univerjs/design';import{useRef as _0x2dba5e,createElement as _0x4a7a97,forwardRef as _0x424bb6,useState as _0x555c58,useEffect as _0x22e887}from'react';import{CollaborationEvent as _0x301d58,parseProtocolChangeset as _0x19d1a6}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4baae7,SessionStatus as _0x50ed84,UniverCollaborationClientPlugin as _0x4e7d3f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x34d039,SetWorksheetActiveOperation as _0x56bd43}from'@univerjs/sheets';import{BehaviorSubject as _0x5af6da,Subject as _0x8db225}from'rxjs';import{takeUntil as _0x37e8e1,throttleTime as _0x225f90}from'rxjs/operators';function _0xad37(){const _0x57a4e1=['_handleTerminate','3958aGpPZD','_handleOnline','requireSession','values','colorChannel1','UNIVER_LIVE_SHARE_PLUGIN','_univerInstanceService','getUnitId','_commandService','replace','mask','Stop\x20presenting','onStarting','init','disposeWithMe','getLiveShareCoordinator','evenodd','LIVESHARE_OPERATION','add','_stopFollowing','6JIlaZT','xlink:href','offline','stopFollowing','_startFollowing','stringify','UniverIcon','has','reverse','UNIVER_SHEET','_startLiveShareCoordinator','children','LiveShareIcon','_unitID','_configService','_collabSessionService','trim','current','get','_sharedOperations','OFFLINE','getInitialStates','executeCommand','getOwnPropertyDescriptor','defineProperty','shouldShareOperation','659898jeDCxf','subscribe','NOT_FOLLOWING','entries','getMemberID','length','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','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','includes','_beIdle','presenter','currentColor','send','_fetchOperations','assign','onRendered','univerjs-icon\x20univerjs-icon-','_presenter','Present\x20this\x20document','operations','status$','asObservable','presenting','type','_injector','default','forEach','registerComponent','You\x27re\x20not\x20following\x20the\x20presenter','_handleOffline','defs','1em','attrs','registerSharedOperation','unsubscribe','startFollowing','symbol','end','toString','onCommandExecuted','tag','_status$','_reporters','text','IDLE','registerInitialStateReporter','sessionStatus$','univer-mb-3\x20univer-w-full\x20univer-text-sm','params','div','_commandDisposable','from','getTypeOfUnitAdded$','LIVESHARE_TERMINATE','string','_status','You\x27re\x20following\x20the\x20presenter','not-following','live-share-icon','override','_startPresenting','4AjjRIw','dispose','2359764EWOZQb','getCurrentTypeOfUnit$','getTypeOfUnitDisposed$','getConfig','delete','parse','next','_uiPartsService','http://www.w3.org/2000/svg','following','univer-size-4','data','77225JfVLKv','pipe','OPERATION','fill','_init','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','_liveShareService','substring','NEW_CHANGESETS','0\x200\x2017\x2017','idSuffix','PRESENTING','set','then','LIVESHARE_NEW_HOST','7rkUwWw','tryStartPresenting','_handleNewChangeSets','7XjjDKe','path','idle','_handleOperation','759048idyRNb','stopPresenting','_config','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','complete','7433730tQoJZL','ONLINE','_collabSession','defIds','none','You\x27are\x20offline.','_entities','dispose$','url(#$1','button','10992773hcrZbG','UNIVER_UNKNOWN','find','_stopPresenting','FOLLOWING','_handleNewHost','getLiveShareCoordinatorSync'];_0xad37=function(){return _0x57a4e1;};return _0xad37();}import{SetZoomRatioOperation as _0x4e0176,SetScrollOperation as _0xdcd218}from'@univerjs/sheets-ui';function k({ref:_0x4c54a8,..._0x5c0e74}){const _0x5e6d46=_0x562b47,{icon:_0x314ce7,id:_0x1a5b04,className:_0x2acdf6,extend:_0x5503e6,..._0x2067cf}=_0x5c0e74,_0x1e4a05=(_0x5e6d46(0xfb)+_0x1a5b04+'\x20'+(_0x2acdf6||''))[_0x5e6d46(0xe1)](),_0x50da95=_0x2dba5e('_'+Oe());return G(_0x314ce7,''+_0x1a5b04,{'defIds':_0x314ce7[_0x5e6d46(0x155)],'idSuffix':_0x50da95[_0x5e6d46(0xe2)]},{'ref':_0x4c54a8,'className':_0x1e4a05,..._0x2067cf},_0x5503e6);}function G(_0xac6eaa,_0x11c44e,_0x27b2d0,_0x1b95cf,_0x527ef1){const _0x2eafa7=_0x562b47;return _0x4a7a97(_0xac6eaa[_0x2eafa7(0x113)],{'key':_0x11c44e,...be(_0xac6eaa,_0x27b2d0,_0x527ef1),..._0x1b95cf},(Ee(_0xac6eaa,_0x27b2d0)[_0x2eafa7(0xdc)]||[])['map']((_0x30a889,_0x30cb91)=>G(_0x30a889,_0x11c44e+'-'+_0xac6eaa[_0x2eafa7(0x113)]+'-'+_0x30cb91,_0x27b2d0,void 0x0,_0x527ef1)));}function be(_0x885004,_0x615c6f,_0x51715f){const _0x10a47a=_0x562b47,_0x54ec7e={..._0x885004[_0x10a47a(0x10b)]};_0x51715f!=null&&_0x51715f[_0x10a47a(0xc1)]&&_0x54ec7e[_0x10a47a(0x139)]==='colorChannel1'&&(_0x54ec7e[_0x10a47a(0x139)]=_0x51715f[_0x10a47a(0xc1)]),_0x885004[_0x10a47a(0x113)]===_0x10a47a(0xc7)&&_0x54ec7e['id']&&(_0x54ec7e['id']=_0x54ec7e['id']+_0x615c6f[_0x10a47a(0x140)]),Object[_0x10a47a(0xee)](_0x54ec7e)['forEach'](([_0x2d0e81,_0x558183])=>{const _0x192f8d=_0x10a47a;_0x2d0e81===_0x192f8d(0xc7)&&typeof _0x558183==_0x192f8d(0x121)&&(_0x54ec7e[_0x2d0e81]=_0x558183[_0x192f8d(0xc6)](/url\(#(.*)\)/,'url(#$1'+_0x615c6f[_0x192f8d(0x140)]+')'));});const {defIds:_0x5d471e}=_0x615c6f;return!_0x5d471e||_0x5d471e[_0x10a47a(0xf0)]===0x0||(_0x885004['tag']==='use'&&_0x54ec7e[_0x10a47a(0xd2)]&&(_0x54ec7e[_0x10a47a(0xd2)]=_0x54ec7e[_0x10a47a(0xd2)]+_0x615c6f[_0x10a47a(0x140)]),Object[_0x10a47a(0xee)](_0x54ec7e)[_0x10a47a(0x105)](([_0x302d90,_0x37e392])=>{const _0x1a58ef=_0x10a47a;typeof _0x37e392==_0x1a58ef(0x121)&&(_0x54ec7e[_0x302d90]=_0x37e392[_0x1a58ef(0xc6)](/url\(#(.*)\)/,_0x1a58ef(0x15a)+_0x615c6f[_0x1a58ef(0x140)]+')'));})),_0x54ec7e;}function Ee(_0x30635a,_0x12daad){const _0x5c683c=_0x562b47;var _0x512872;const {defIds:_0x1c6c91}=_0x12daad;return!_0x1c6c91||_0x1c6c91[_0x5c683c(0xf0)]===0x0?_0x30635a:_0x30635a['tag']===_0x5c683c(0x109)&&((_0x512872=_0x30635a[_0x5c683c(0xdc)])!=null&&_0x512872[_0x5c683c(0xf0)])?{..._0x30635a,'children':_0x30635a[_0x5c683c(0xdc)]['map'](_0x587fc7=>typeof _0x587fc7[_0x5c683c(0x10b)]['id']==_0x5c683c(0x121)&&_0x1c6c91&&_0x1c6c91[_0x5c683c(0xf3)](_0x587fc7[_0x5c683c(0x10b)]['id'])?{..._0x587fc7,'attrs':{..._0x587fc7[_0x5c683c(0x10b)],'id':_0x587fc7[_0x5c683c(0x10b)]['id']+_0x12daad[_0x5c683c(0x140)]}}:_0x587fc7)}:_0x30635a;}function Oe(){const _0xe371e=_0x562b47;return Math['random']()[_0xe371e(0x111)](0x24)[_0xe371e(0x13d)](0x2,0x8);}k['displayName']=_0x562b47(0xd7);const we={'tag':'svg','attrs':{'xmlns':_0x562b47(0x132),'fill':_0x562b47(0x156),'viewBox':_0x562b47(0x13f),'width':_0x562b47(0x10a),'height':'1em'},'children':[{'tag':_0x562b47(0x149),'attrs':{'fill':_0x562b47(0xf6),'d':_0x562b47(0x13b)}},{'tag':'path','attrs':{'fill':_0x562b47(0xf6),'d':_0x562b47(0x150),'fillRule':'evenodd','clipRule':_0x562b47(0xcd)}}]},W=_0x424bb6(function(_0x2bcc6a,_0x58b487){const _0x2f598f=_0x562b47;return _0x4a7a97(k,Object[_0x2f598f(0xf9)]({},_0x2bcc6a,{'id':_0x2f598f(0x125),'ref':_0x58b487,'icon':we}));});W['displayName']=_0x562b47(0xdd);class L extends _0x2e50d0{constructor(){const _0x562679=_0x562b47;super(...arguments),u(this,_0x562679(0xe4),new Set()),u(this,_0x562679(0x115),new Set());}[_0x562b47(0x10c)](_0x2c2786){const _0x2f1f1b=_0x562b47;return this[_0x2f1f1b(0xe4)]['add'](_0x2c2786),_0x4271be(()=>this[_0x2f1f1b(0xe4)][_0x2f1f1b(0x12e)](_0x2c2786));}[_0x562b47(0x118)](_0x490737){const _0x33b0af=_0x562b47;return this[_0x33b0af(0x115)]['add'](_0x490737),_0x4271be(()=>this['_reporters'][_0x33b0af(0x12e)](_0x490737));}[_0x562b47(0xea)](_0x16195f){const _0x3ebe52=_0x562b47;return this[_0x3ebe52(0xe4)][_0x3ebe52(0xd8)](_0x16195f);}['getInitialStates'](_0x239faf){const _0x31ba11=_0x562b47;return Array[_0x31ba11(0x11e)](this[_0x31ba11(0x115)])['map'](_0x2e959e=>_0x2e959e(_0x239faf));}}var Ne=Object[_0x562b47(0xe8)],Y=(_0x447188,_0x169ee5,_0x1f6a5a,_0x138d9c)=>{const _0x48dd42=_0x562b47;for(var _0x5f0651=_0x138d9c>0x1?void 0x0:_0x138d9c?Ne(_0x169ee5,_0x1f6a5a):_0x169ee5,_0x539646=_0x447188[_0x48dd42(0xf0)]-0x1,_0x1854e1;_0x539646>=0x0;_0x539646--)(_0x1854e1=_0x447188[_0x539646])&&(_0x5f0651=_0x1854e1(_0x5f0651)||_0x5f0651);return _0x5f0651;},_=(_0x443ad9,_0x3b2c40)=>(_0x47b132,_0x14aaa2)=>_0x3b2c40(_0x47b132,_0x14aaa2,_0x443ad9);let S=class extends _0x51a549{constructor(_0x562fae,_0x541c70,_0x2ce976){const _0x1633b0=_0x562b47;super(),u(this,_0x1633b0(0x158),new Map()),(this[_0x1633b0(0xc3)]=_0x562fae,this[_0x1633b0(0x103)]=_0x541c70,this[_0x1633b0(0xe0)]=_0x2ce976,this[_0x1633b0(0x13a)]());}async[_0x562b47(0xcc)](_0x36b81f){const _0x4e84d8=_0x562b47;return this[_0x4e84d8(0x158)][_0x4e84d8(0xd8)](_0x36b81f)||await this['_startLiveShareCoordinator'](_0x36b81f),this['_entities'][_0x4e84d8(0xe3)](_0x36b81f);}[_0x562b47(0x162)](_0x46eade){const _0x3f0b84=_0x562b47;var _0x2c8302;return(_0x2c8302=this[_0x3f0b84(0x158)]['get'](_0x46eade))!=null?_0x2c8302:null;}[_0x562b47(0x13a)](){const _0x240901=_0x562b47;this[_0x240901(0xc3)][_0x240901(0x11f)](_0x51802f[_0x240901(0xda)])[_0x240901(0x137)](_0x37e8e1(this['dispose$']))[_0x240901(0xec)](async _0x1813e4=>{const _0x1bce96=_0x240901,_0x49fdf0=_0x1813e4[_0x1bce96(0xc4)]();this[_0x1bce96(0x158)]['has'](_0x49fdf0)||this[_0x1bce96(0xdb)](_0x49fdf0);}),this[_0x240901(0xc3)][_0x240901(0x12c)](_0x51802f[_0x240901(0xda)])[_0x240901(0x137)](_0x37e8e1(this[_0x240901(0x159)]))[_0x240901(0xec)](_0x29d9f4=>{const _0x18e5ab=_0x240901,_0x31bdcb=_0x29d9f4[_0x18e5ab(0xc4)](),_0x151a8c=this[_0x18e5ab(0x158)][_0x18e5ab(0xe3)](_0x31bdcb);_0x151a8c==null||_0x151a8c[_0x18e5ab(0x129)]();});}async[_0x562b47(0xdb)](_0x208b9b){const _0x1af5d8=_0x562b47,_0x2166f3=await this['_collabSessionService'][_0x1af5d8(0x166)](_0x208b9b),_0x70e399=this[_0x1af5d8(0x103)]['createInstance'](N,_0x208b9b,_0x2166f3);return _0x70e399[_0x1af5d8(0xca)](),this[_0x1af5d8(0x158)][_0x1af5d8(0x142)](_0x208b9b,_0x70e399),_0x70e399;}};S=Y([_(0x0,_0x187255),_(0x1,_0x264acd(_0x126a5b)),_(0x2,_0x264acd(_0x4baae7))],S);var c=(_0x51fd21=>(_0x51fd21[_0x562b47(0xe5)]=_0x562b47(0xd3),_0x51fd21[_0x562b47(0x117)]=_0x562b47(0x14a),_0x51fd21['FOLLOWING']='following',_0x51fd21['NOT_FOLLOWING']='not-following',_0x51fd21[_0x562b47(0x141)]=_0x562b47(0x101),_0x51fd21))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x51a549{constructor(_0x4335c1,_0x880e61,_0x33e4d2,_0x3837f7,_0x2a4e6f){const _0x5f297d=_0x562b47;super(),u(this,'_status$',new _0x5af6da(_0x5f297d(0x14a))),u(this,_0x5f297d(0xff),this[_0x5f297d(0x114)][_0x5f297d(0x100)]()),u(this,_0x5f297d(0x13a),!0x1),u(this,_0x5f297d(0x11d),null),u(this,_0x5f297d(0xfc),null),(this['_unitID']=_0x4335c1,this[_0x5f297d(0x154)]=_0x880e61,this[_0x5f297d(0xdf)]=_0x33e4d2,this[_0x5f297d(0x13c)]=_0x3837f7,this[_0x5f297d(0xc5)]=_0x2a4e6f);}get[_0x562b47(0x122)](){const _0x513979=_0x562b47;return this[_0x513979(0x114)][_0x513979(0x14f)]();}[_0x562b47(0x129)](){const _0x485651=_0x562b47;var _0x527930;(_0x527930=this['_commandDisposable'])==null||_0x527930[_0x485651(0x129)](),this[_0x485651(0x114)][_0x485651(0x130)](_0x485651(0x14a)),this['_status$'][_0x485651(0x151)]();}['getStatus'](){return this['_status'];}[_0x562b47(0xca)](){const _0x567d7e=_0x562b47;this[_0x567d7e(0x13a)]||(this['_init']=!0x0,this[_0x567d7e(0x154)][_0x567d7e(0x119)]['pipe'](_0x37e8e1(this[_0x567d7e(0x159)]))[_0x567d7e(0xec)](_0x20fbf8=>{const _0x41e774=_0x567d7e;switch(_0x20fbf8){case _0x50ed84[_0x41e774(0xe5)]:this[_0x41e774(0x108)]();break;case _0x50ed84[_0x41e774(0x153)]:this['_handleOnline']();break;}}),this[_0x567d7e(0x154)]['event$'][_0x567d7e(0x137)](_0x37e8e1(this[_0x567d7e(0x159)]))[_0x567d7e(0xec)](_0x29231e=>{const _0x3b50fa=_0x567d7e,{eventID:_0x3e0843}=_0x29231e;switch(_0x3e0843){case _0x301d58[_0x3b50fa(0x144)]:this[_0x3b50fa(0x161)](_0x29231e);break;case _0x301d58[_0x3b50fa(0xce)]:this[_0x3b50fa(0x14b)](_0x29231e);break;case _0x301d58[_0x3b50fa(0x120)]:this[_0x3b50fa(0x163)]();break;case _0x301d58[_0x3b50fa(0x13e)]:this['_handleNewChangeSets'](_0x29231e);break;}}));}[_0x562b47(0x146)](){const _0x525b0f=_0x562b47;this[_0x525b0f(0x154)][_0x525b0f(0xf7)]({'eventID':_0x301d58['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x525b0f(0xde)],'userID':this[_0x525b0f(0x154)][_0x525b0f(0xef)]()}},this[_0x525b0f(0xde)]);}[_0x562b47(0x14d)](){const _0xa82d6f=_0x562b47;this[_0xa82d6f(0x122)]===_0xa82d6f(0x101)&&(this['_status$']['next']('idle'),this[_0xa82d6f(0x154)]['send']({'eventID':_0x301d58['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0xa82d6f(0xde)]}},this[_0xa82d6f(0xde)]));}[_0x562b47(0x10e)](){const _0x1c3b84=_0x562b47;this['_status']===_0x1c3b84(0x124)&&(this['_status$']['next'](_0x1c3b84(0x133)),this['_startFollowing']());}['stopFollowing'](){const _0x5bb57a=_0x562b47;this[_0x5bb57a(0x122)]==='following'&&this[_0x5bb57a(0xd0)]();}['_handleNewHost'](_0x4b55fc){const _0x5b0860=_0x562b47,{presenter:_0x1290a9}=_0x4b55fc[_0x5b0860(0x135)],_0x140afc=this[_0x5b0860(0x154)][_0x5b0860(0xef)]();this[_0x5b0860(0xfc)]=_0x1290a9,_0x1290a9===_0x140afc?(this[_0x5b0860(0xd0)](),this[_0x5b0860(0x127)]()):this[_0x5b0860(0x122)]!==_0x5b0860(0x124)&&(this[_0x5b0860(0x15f)](),this['_startFollowing']());}['_fetchOperations'](){const _0x16bd35=_0x562b47,_0x5da9bb={'eventID':_0x301d58['LIVESHARE_FETCH_OPERATIONS']};this[_0x16bd35(0x154)]['send'](_0x5da9bb,this['_unitID']);}[_0x562b47(0x163)](){const _0x5acf28=_0x562b47;this[_0x5acf28(0xfc)]=null,this[_0x5acf28(0x122)]!=='presenting'&&this['_beIdle']();}[_0x562b47(0x147)](_0x1adea4){const _0x906164=_0x562b47;if(this[_0x906164(0x122)]===_0x906164(0x133)&&this[_0x906164(0xfc)]===_0x1adea4[_0x906164(0x135)]['memberID']){const _0x56ad84=_0x19d1a6(_0x1adea4[_0x906164(0x135)])['mutations'][_0x906164(0xd9)]()[_0x906164(0x15e)](_0x2c6158=>_0x2c6158['id']===_0x34d039['id']);if(_0x56ad84){const _0x1cef96=_0x56ad84['params']['unitId'],_0x1b8c4e=_0x56ad84[_0x906164(0x11b)]['sheet']['id'];setTimeout(()=>{const _0x56a571=_0x906164;this[_0x56a571(0xc5)][_0x56a571(0xe7)](_0x56bd43['id'],{'unitId':_0x1cef96,'subUnitId':_0x1b8c4e},{'fromCollab':!0x0});});}}}[_0x562b47(0x127)](){const _0x4d569f=_0x562b47;this[_0x4d569f(0x114)][_0x4d569f(0x130)](_0x4d569f(0x101));const _0x5925f2=new Map(),_0x3eac62=this[_0x4d569f(0x11d)]=new _0x43222f();_0x3eac62[_0x4d569f(0xcf)](_0x4271be(()=>{const _0x3d6ec6=_0x4d569f;_0x5925f2[_0x3d6ec6(0x105)](_0x47fc61=>_0x47fc61['complete']()),_0x5925f2['clear']();})),_0x3eac62[_0x4d569f(0xcf)](this['_commandService'][_0x4d569f(0x112)](_0x4f10df=>{const _0x37b9e2=_0x4d569f;var _0x367a07;if(_0x4f10df[_0x37b9e2(0x102)]!==_0x33f042[_0x37b9e2(0x138)]||!this[_0x37b9e2(0x13c)][_0x37b9e2(0xea)](_0x4f10df['id']))return;const {id:_0x112488}=_0x4f10df;let _0x22c586;_0x5925f2[_0x37b9e2(0xd8)](_0x112488)?_0x22c586=_0x5925f2[_0x37b9e2(0xe3)](_0x112488):(_0x22c586=new _0x8db225(),_0x5925f2[_0x37b9e2(0x142)](_0x112488,_0x22c586),_0x22c586[_0x37b9e2(0x137)](_0x225f90((_0x367a07=this[_0x37b9e2(0xdf)][_0x37b9e2(0x12d)](Ce))!=null?_0x367a07:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x37b9e2(0xec)](_0x4d333a=>{const _0x4d27f1=_0x37b9e2;this[_0x4d27f1(0x154)]['send']({'eventID':_0x301d58[_0x4d27f1(0xce)],'data':{'unitID':this[_0x4d27f1(0xde)],'operations':{[_0x4d333a['id']]:{'id':_0x4d333a['id'],'params':JSON[_0x4d27f1(0xd6)](_0x4d333a['params'])}}}},this[_0x4d27f1(0xde)]);})),_0x22c586[_0x37b9e2(0x130)](_0x4f10df);})),this[_0x4d569f(0x13c)][_0x4d569f(0xe6)](this['_unitID'])['forEach'](_0x323d5a=>this[_0x4d569f(0x154)][_0x4d569f(0xf7)]({'eventID':_0x301d58[_0x4d569f(0xce)],'data':{'unitID':this[_0x4d569f(0xde)],'operations':{[_0x323d5a['id']]:{'id':_0x323d5a['id'],'params':JSON[_0x4d569f(0xd6)](_0x323d5a[_0x4d569f(0x11b)])}}}},this[_0x4d569f(0xde)]));}['_stopPresenting'](){const _0x36c595=_0x562b47;var _0x43ce6d;this[_0x36c595(0x114)]['next']('idle'),(_0x43ce6d=this['_commandDisposable'])==null||_0x43ce6d[_0x36c595(0x129)](),this['_commandDisposable']=null;}[_0x562b47(0xd5)](){const _0x4748b7=_0x562b47;var _0x376b01;(_0x376b01=this[_0x4748b7(0x11d)])==null||_0x376b01[_0x4748b7(0x129)](),this['_status$'][_0x4748b7(0x130)](_0x4748b7(0x133));}[_0x562b47(0xf4)](){const _0x4c49c9=_0x562b47;var _0xa33ed8;this['_status$'][_0x4c49c9(0x130)]('idle'),(_0xa33ed8=this[_0x4c49c9(0x11d)])==null||_0xa33ed8[_0x4c49c9(0x129)](),this[_0x4c49c9(0x11d)]=null;}[_0x562b47(0xd0)](){const _0x356afa=_0x562b47;var _0x3b0322;this[_0x356afa(0x114)][_0x356afa(0x130)]('not-following'),(_0x3b0322=this[_0x356afa(0x11d)])==null||_0x3b0322[_0x356afa(0x129)]();}[_0x562b47(0x14b)](_0x1eaf46){const _0x1bf23c=_0x562b47;if([_0x1bf23c(0x101),_0x1bf23c(0x124),_0x1bf23c(0xd3)][_0x1bf23c(0xf3)](this[_0x1bf23c(0x122)])||!_0x1eaf46[_0x1bf23c(0x135)][_0x1bf23c(0xf5)]||_0x1eaf46[_0x1bf23c(0x135)][_0x1bf23c(0xf5)]===this['_collabSession']['getMemberID']())return;this[_0x1bf23c(0x122)]===_0x1bf23c(0x14a)&&this[_0x1bf23c(0xd5)]();const _0x3e2d4e=_0x1eaf46[_0x1bf23c(0x135)][_0x1bf23c(0xfe)];Object[_0x1bf23c(0x167)](_0x3e2d4e)[_0x1bf23c(0x105)](_0x367c4c=>{const _0x5111c2=_0x1bf23c;this['_commandService'][_0x5111c2(0xe7)](_0x367c4c['id'],_0x367c4c['params']?JSON[_0x5111c2(0x12f)](_0x367c4c[_0x5111c2(0x11b)]):null,{'fromCollab':!0x0});});}[_0x562b47(0x108)](){const _0x3fb4bc=_0x562b47;var _0x25d51f;this[_0x3fb4bc(0x114)][_0x3fb4bc(0x130)](_0x3fb4bc(0xd3)),(_0x25d51f=this['_commandDisposable'])==null||_0x25d51f[_0x3fb4bc(0x129)]();}[_0x562b47(0x165)](){const _0x2125bc=_0x562b47;this[_0x2125bc(0x114)][_0x2125bc(0x130)](_0x2125bc(0x14a)),this[_0x2125bc(0xf8)]();}};N=Y([_(0x2,_0x974748),_(0x3,_0x264acd(L)),_(0x4,_0x105090)],N);function Le(){const _0x4a6c4b=_0x562b47,_0x46f034=_0x38dad9(S),_0x4b5495=_0x38dad9(_0x187255),_0x357f80=_0x14a93c(()=>_0x4b5495[_0x4a6c4b(0x12b)](_0x51802f[_0x4a6c4b(0xda)]),void 0x0,!0x1,[]),[_0x321261,_0x2b483d]=_0x555c58(null),[_0x39da3e,_0x487c08]=_0x555c58(c[_0x4a6c4b(0x117)]),_0x5c9aba=_0x2dba5e(null);return _0x22e887(()=>(_0x357f80&&_0x46f034[_0x4a6c4b(0xcc)](_0x357f80[_0x4a6c4b(0xc4)]())[_0x4a6c4b(0x143)](_0x58b38f=>{const _0x41f29a=_0x4a6c4b;_0x2b483d(_0x58b38f),_0x5c9aba['current']=_0x58b38f[_0x41f29a(0xff)][_0x41f29a(0xec)](_0x3a5734=>{_0x487c08(_0x3a5734);});}),()=>{const _0x5053c7=_0x4a6c4b;var _0x4e470b;(_0x4e470b=_0x5c9aba[_0x5053c7(0xe2)])==null||_0x4e470b[_0x5053c7(0x10d)](),_0x5c9aba['current']=null;}),[_0x357f80,_0x46f034]),_0x321261?_0x33bb7b(_0x5079de,{'align':_0x4a6c4b(0x110),'disabled':_0x39da3e===c[_0x4a6c4b(0xe5)],'className':_0x4a6c4b(0xf1),'overlay':_0x33bb7b(Re,{'status':_0x39da3e,'coordinator':_0x321261}),'children':_0x33bb7b(_0x4a6c4b(0x15b),{'className':_0x54f579(_0x4a6c4b(0xf2),{'univer-cursor-not-allowed':_0x39da3e===c[_0x4a6c4b(0xe5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x39da3e!==c[_0x4a6c4b(0xe5)]}),'type':_0x4a6c4b(0x15b),'children':_0x33bb7b(W,{'className':_0x4a6c4b(0x134)})})}):null;}function Re(_0xcd5400){const _0x5cb8f9=_0x562b47,{status:_0xf6ff60,coordinator:_0x103430}=_0xcd5400;switch(_0xf6ff60){case c[_0x5cb8f9(0x117)]:return _0x33bb7b($e,{'coordinator':_0x103430});case c[_0x5cb8f9(0x160)]:return _0x33bb7b(xe,{'coordinator':_0x103430});case c[_0x5cb8f9(0xed)]:return _0x33bb7b(Pe,{'coordinator':_0x103430});case c[_0x5cb8f9(0xe5)]:return _0x33bb7b(Te,{});case c[_0x5cb8f9(0x141)]:return _0x33bb7b(Ae,{'coordinator':_0x103430});default:return null;}}function $e(_0xfe284e){const _0x49706d=_0x562b47,{coordinator:_0x41fae0}=_0xfe284e;return _0x4dcdb8(_0x967f7f,{'children':[_0x33bb7b(_0x49706d(0x11c),{'className':_0x49706d(0x11a),'children':_0x49706d(0xfd)}),_0x33bb7b(_0x468343,{'onClick':()=>_0x41fae0[_0x49706d(0x146)](),'children':'Start'})]});}function xe(_0xea0781){const _0x59e65e=_0x562b47,{coordinator:_0x3077cf}=_0xea0781;return _0x4dcdb8(_0x967f7f,{'children':[_0x33bb7b(_0x59e65e(0x11c),{'className':_0x59e65e(0x11a),'children':_0x59e65e(0x123)}),_0x33bb7b(_0x468343,{'onClick':()=>_0x3077cf[_0x59e65e(0xd4)](),'children':'Stop\x20following'})]});}function Pe(_0x17c015){const _0x173e7b=_0x562b47,{coordinator:_0x5e2ed2}=_0x17c015;return _0x4dcdb8(_0x967f7f,{'children':[_0x33bb7b('div',{'className':_0x173e7b(0x11a),'children':_0x173e7b(0x107)}),_0x33bb7b(_0x468343,{'variant':_0x173e7b(0x116),'onClick':()=>_0x5e2ed2[_0x173e7b(0x10e)](),'children':'Start\x20following'})]});}function _0x465d(_0x3d6d8f,_0x39997c){_0x3d6d8f=_0x3d6d8f-0xc1;const _0xad37bf=_0xad37();let _0x465d9f=_0xad37bf[_0x3d6d8f];return _0x465d9f;}function Ae(_0x338c7b){const _0xca71c4=_0x562b47,{coordinator:_0x1aef68}=_0x338c7b;return _0x4dcdb8(_0x967f7f,{'children':[_0x33bb7b(_0xca71c4(0x11c),{'className':_0xca71c4(0x11a),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x33bb7b(_0x468343,{'variant':_0xca71c4(0x104),'onClick':()=>_0x1aef68[_0xca71c4(0x14d)](),'children':_0xca71c4(0xc8)})]});}function Te(){const _0x371d4c=_0x562b47;return _0x33bb7b(_0x967f7f,{'children':_0x371d4c(0x157)});}var Fe=Object[_0x562b47(0xe8)],He=(_0x3efd5d,_0x30871a,_0x33d905,_0x4119a7)=>{for(var _0x47ffec=_0x4119a7>0x1?void 0x0:_0x4119a7?Fe(_0x30871a,_0x33d905):_0x30871a,_0x1b80fe=_0x3efd5d['length']-0x1,_0x213264;_0x1b80fe>=0x0;_0x1b80fe--)(_0x213264=_0x3efd5d[_0x1b80fe])&&(_0x47ffec=_0x213264(_0x47ffec)||_0x47ffec);return _0x47ffec;},A=(_0x4c9b00,_0x3defb5)=>(_0x434d3a,_0x582c0c)=>_0x3defb5(_0x434d3a,_0x582c0c,_0x4c9b00);let m=class extends _0x2e50d0{constructor(_0x33f367,_0x44a88a){const _0x4b3204=_0x562b47;super(),this[_0x4b3204(0x103)]=_0x33f367,this[_0x4b3204(0x131)]=_0x44a88a,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x4db92a=_0x562b47;this[_0x4db92a(0xcb)](this[_0x4db92a(0x131)][_0x4db92a(0x106)](_0x2de438['HEADER_MENU'],()=>_0x183c2b(Le,this[_0x4db92a(0x103)])));}};m=He([A(0x0,_0x264acd(_0x126a5b)),A(0x1,_0x28a6aa)],m);const ye='live-share.config',T={};var Ue=Object[_0x562b47(0xe8)],Ve=(_0x5ca6a7,_0x2b3f17,_0x496a25,_0x405d8c)=>{const _0x56bbb8=_0x562b47;for(var _0x5a0f03=_0x405d8c>0x1?void 0x0:_0x405d8c?Ue(_0x2b3f17,_0x496a25):_0x2b3f17,_0x33f87f=_0x5ca6a7[_0x56bbb8(0xf0)]-0x1,_0x110241;_0x33f87f>=0x0;_0x33f87f--)(_0x110241=_0x5ca6a7[_0x33f87f])&&(_0x5a0f03=_0x110241(_0x5a0f03)||_0x5a0f03);return _0x5a0f03;},je=(_0x368bdf,_0x5f58f2)=>(_0x4901b3,_0x4bfac9)=>_0x5f58f2(_0x4901b3,_0x4bfac9,_0x368bdf);let I=class extends _0x2e50d0{constructor(_0xf15733){const _0x3e77f3=_0x562b47;super(),this[_0x3e77f3(0x13c)]=_0xf15733,this[_0x3e77f3(0x13a)]();}['_init'](){const _0x29fecc=_0x562b47;[_0x4e0176['id'],_0xdcd218['id'],_0x56bd43['id']][_0x29fecc(0x105)](_0x9f8534=>{const _0x15a010=_0x29fecc;this[_0x15a010(0xcb)](this[_0x15a010(0x13c)][_0x15a010(0x10c)](_0x9f8534));});}};I=Ve([je(0x0,_0x264acd(L))],I);var Me=Object[_0x562b47(0xe9)],ke=Object[_0x562b47(0xe8)],Ge=(_0x478195,_0x55241a,_0x3a2b8a)=>_0x55241a in _0x478195?Me(_0x478195,_0x55241a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a2b8a}):_0x478195[_0x55241a]=_0x3a2b8a,We=(_0x35fe86,_0x39fabc,_0x1c7658,_0x12c030)=>{const _0x23fed1=_0x562b47;for(var _0x46c4ee=_0x12c030>0x1?void 0x0:_0x12c030?ke(_0x39fabc,_0x1c7658):_0x39fabc,_0x425e53=_0x35fe86[_0x23fed1(0xf0)]-0x1,_0xcbbbcc;_0x425e53>=0x0;_0x425e53--)(_0xcbbbcc=_0x35fe86[_0x425e53])&&(_0x46c4ee=_0xcbbbcc(_0x46c4ee)||_0x46c4ee);return _0x46c4ee;},F=(_0xf7d262,_0x5c51ae)=>(_0x37ffa7,_0x22314d)=>_0x5c51ae(_0x37ffa7,_0x22314d,_0xf7d262),B=(_0x281cd1,_0x57b597,_0x5bc9c6)=>Ge(_0x281cd1,typeof _0x57b597!=_0x562b47(0x10f)?_0x57b597+'':_0x57b597,_0x5bc9c6);const Ye=_0x562b47(0xc2);let b=class extends _0x1130c7{constructor(_0x32209a=T,_0x3c6ecf,_0x4cae29){const _0x579846=_0x562b47;super(),this[_0x579846(0x14e)]=_0x32209a,this['_injector']=_0x3c6ecf,this[_0x579846(0xdf)]=_0x4cae29;const {..._0x1bd3dc}=_0xb0c13e({},T,this[_0x579846(0x14e)]);this[_0x579846(0xdf)]['setConfig'](ye,_0x1bd3dc);}[_0x562b47(0xc9)](){const _0x5c9daf=_0x562b47;_0x333ef5(this['_injector'],_0x3d1a15([[L],[S],[I],[m]],this['_config'][_0x5c9daf(0x126)])),_0x1c3957(this[_0x5c9daf(0x103)],[[I]]);}[_0x562b47(0xfa)](){const _0xbd4a61=_0x562b47;_0x1c3957(this[_0xbd4a61(0x103)],[[m]]);}};B(b,_0x562b47(0x102),_0x51802f[_0x562b47(0x15d)]),B(b,'pluginName',Ye),b=We([_0x411c47(_0x4e7d3f),F(0x1,_0x264acd(_0x126a5b)),F(0x2,_0x974748)],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 _0x203051=_0x467a;(function(_0x528687,_0xc4d998){const _0x1b4ca4=_0x467a,_0x2cd89c=_0x528687();while(!![]){try{const _0x48f0d0=parseInt(_0x1b4ca4(0x20d))/0x1*(-parseInt(_0x1b4ca4(0x27e))/0x2)+-parseInt(_0x1b4ca4(0x253))/0x3+parseInt(_0x1b4ca4(0x23e))/0x4*(-parseInt(_0x1b4ca4(0x240))/0x5)+parseInt(_0x1b4ca4(0x238))/0x6+-parseInt(_0x1b4ca4(0x1e1))/0x7+parseInt(_0x1b4ca4(0x1e7))/0x8+-parseInt(_0x1b4ca4(0x24e))/0x9*(-parseInt(_0x1b4ca4(0x227))/0xa);if(_0x48f0d0===_0xc4d998)break;else _0x2cd89c['push'](_0x2cd89c['shift']());}catch(_0x4534cd){_0x2cd89c['push'](_0x2cd89c['shift']());}}}(_0x53e2,0x6fbbb));var J=Object[_0x203051(0x1ed)],K=(_0x3a4f01,_0xc9536b,_0x6cd13a)=>_0xc9536b in _0x3a4f01?J(_0x3a4f01,_0xc9536b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x6cd13a}):_0x3a4f01[_0xc9536b]=_0x6cd13a,u=(_0x3a0c7a,_0x4b7de3,_0x4d807c)=>K(_0x3a0c7a,typeof _0x4b7de3!=_0x203051(0x203)?_0x4b7de3+'':_0x4b7de3,_0x4d807c);import{Disposable as _0x2fa88b,toDisposable as _0x4d0dd4,IUniverInstanceService as _0xfb97b7,Inject as _0x41344e,Injector as _0x247233,IConfigService as _0x59bacf,ICommandService as _0x16bfa6,RxDisposable as _0x319545,UniverInstanceType as _0xf4b6a6,DisposableCollection as _0x32a659,CommandType as _0x37b1fc,DependentOn as _0x352a09,Plugin as _0x2461be,merge as _0xbbecdb,registerDependencies as _0x3077e0,mergeOverrideWithDependencies as _0x1e8f39,touchDependencies as _0x207751}from'@univerjs/core';import{useDependency as _0x445413,useObservable as _0x3f7cfd,IUIPartsService as _0x1f7073,BuiltInUIPart as _0x2bf13e,connectInjector as _0x2b9143}from'@univerjs/ui';import{jsx as _0x4cbb7b,jsxs as _0xbc9c89,Fragment as _0x5c324a}from'react/jsx-runtime';import{Dropdown as _0x356893,clsx as _0x350e56,Button as _0x1aa64c}from'@univerjs/design';import{useRef as _0x518592,createElement as _0x54dd1c,forwardRef as _0x3d1652,useState as _0x1d0405,useEffect as _0x558e55}from'react';import{CollaborationEvent as _0x378720,parseProtocolChangeset as _0xb845cb}from'@univerjs-pro/collaboration';function _0x467a(_0x26cba8,_0x572d7e){_0x26cba8=_0x26cba8-0x1e0;const _0x53e246=_0x53e2();let _0x467a51=_0x53e246[_0x26cba8];return _0x467a51;}import{CollaborationSessionService as _0x202fa1,SessionStatus as _0x61eb11,UniverCollaborationClientPlugin as _0x5c1f28}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x126909,SetWorksheetActiveOperation as _0x38d630}from'@univerjs/sheets';import{BehaviorSubject as _0xf60712,Subject as _0x3f6d0b}from'rxjs';import{takeUntil as _0xccce48,throttleTime as _0x471bc5}from'rxjs/operators';import{SetZoomRatioOperation as _0x4a5670,SetScrollOperation as _0x23916f}from'@univerjs/sheets-ui';function k({ref:_0x39378a,..._0xbc3b37}){const _0xb74e72=_0x203051,{icon:_0x107141,id:_0x154d72,className:_0x9e8f43,extend:_0x3d2e92,..._0xe4afc6}=_0xbc3b37,_0x1cb7a3=(_0xb74e72(0x26f)+_0x154d72+'\x20'+(_0x9e8f43||''))[_0xb74e72(0x24c)](),_0x42c5b3=_0x518592('_'+Oe());return G(_0x107141,''+_0x154d72,{'defIds':_0x107141[_0xb74e72(0x1f8)],'idSuffix':_0x42c5b3[_0xb74e72(0x246)]},{'ref':_0x39378a,'className':_0x1cb7a3,..._0xe4afc6},_0x3d2e92);}function G(_0x2ef2d0,_0x16e97f,_0x2cd959,_0x506b97,_0x3d1f9f){const _0x4597f1=_0x203051;return _0x54dd1c(_0x2ef2d0[_0x4597f1(0x201)],{'key':_0x16e97f,...be(_0x2ef2d0,_0x2cd959,_0x3d1f9f),..._0x506b97},(Ee(_0x2ef2d0,_0x2cd959)[_0x4597f1(0x1e4)]||[])[_0x4597f1(0x226)]((_0x1e44a6,_0x37d13d)=>G(_0x1e44a6,_0x16e97f+'-'+_0x2ef2d0[_0x4597f1(0x201)]+'-'+_0x37d13d,_0x2cd959,void 0x0,_0x3d1f9f)));}function be(_0x52aa23,_0x4ef3a7,_0x421fcb){const _0x56d54a=_0x203051,_0x157aff={..._0x52aa23[_0x56d54a(0x243)]};_0x421fcb!=null&&_0x421fcb[_0x56d54a(0x1ee)]&&_0x157aff[_0x56d54a(0x279)]==='colorChannel1'&&(_0x157aff[_0x56d54a(0x279)]=_0x421fcb[_0x56d54a(0x1ee)]),_0x52aa23[_0x56d54a(0x201)]===_0x56d54a(0x24f)&&_0x157aff['id']&&(_0x157aff['id']=_0x157aff['id']+_0x4ef3a7[_0x56d54a(0x22d)]),Object[_0x56d54a(0x1e3)](_0x157aff)['forEach'](([_0x140d42,_0x255006])=>{const _0x1806c9=_0x56d54a;_0x140d42===_0x1806c9(0x24f)&&typeof _0x255006=='string'&&(_0x157aff[_0x140d42]=_0x255006[_0x1806c9(0x202)](/url\(#(.*)\)/,_0x1806c9(0x25b)+_0x4ef3a7[_0x1806c9(0x22d)]+')'));});const {defIds:_0x1e5e20}=_0x4ef3a7;return!_0x1e5e20||_0x1e5e20['length']===0x0||(_0x52aa23[_0x56d54a(0x201)]==='use'&&_0x157aff[_0x56d54a(0x266)]&&(_0x157aff[_0x56d54a(0x266)]=_0x157aff[_0x56d54a(0x266)]+_0x4ef3a7['idSuffix']),Object[_0x56d54a(0x1e3)](_0x157aff)[_0x56d54a(0x242)](([_0x23d416,_0x564ed0])=>{const _0x4da982=_0x56d54a;typeof _0x564ed0==_0x4da982(0x1ec)&&(_0x157aff[_0x23d416]=_0x564ed0[_0x4da982(0x202)](/url\(#(.*)\)/,'url(#$1'+_0x4ef3a7[_0x4da982(0x22d)]+')'));})),_0x157aff;}function Ee(_0x1b288a,_0x508e17){const _0x251593=_0x203051;var _0x58dc02;const {defIds:_0x5a739c}=_0x508e17;return!_0x5a739c||_0x5a739c['length']===0x0?_0x1b288a:_0x1b288a[_0x251593(0x201)]===_0x251593(0x284)&&((_0x58dc02=_0x1b288a[_0x251593(0x1e4)])!=null&&_0x58dc02[_0x251593(0x270)])?{..._0x1b288a,'children':_0x1b288a[_0x251593(0x1e4)]['map'](_0x148afb=>typeof _0x148afb[_0x251593(0x243)]['id']=='string'&&_0x5a739c&&_0x5a739c[_0x251593(0x20f)](_0x148afb['attrs']['id'])?{..._0x148afb,'attrs':{..._0x148afb[_0x251593(0x243)],'id':_0x148afb['attrs']['id']+_0x508e17['idSuffix']}}:_0x148afb)}:_0x1b288a;}function Oe(){const _0x406498=_0x203051;return Math[_0x406498(0x21d)]()[_0x406498(0x206)](0x24)[_0x406498(0x21b)](0x2,0x8);}k[_0x203051(0x21e)]=_0x203051(0x21a);const we={'tag':_0x203051(0x249),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x203051(0x248),'width':_0x203051(0x274),'height':_0x203051(0x274)},'children':[{'tag':_0x203051(0x20b),'attrs':{'fill':_0x203051(0x23c),'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':'path','attrs':{'fill':'currentColor','d':_0x203051(0x258),'fillRule':_0x203051(0x26e),'clipRule':_0x203051(0x26e)}}]},W=_0x3d1652(function(_0x502405,_0x2620af){const _0x516cd2=_0x203051;return _0x54dd1c(k,Object[_0x516cd2(0x1f2)]({},_0x502405,{'id':'live-share-icon','ref':_0x2620af,'icon':we}));});W['displayName']=_0x203051(0x26c);class L extends _0x2fa88b{constructor(){const _0x1fc9fc=_0x203051;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x1fc9fc(0x22f),new Set());}[_0x203051(0x22a)](_0x580794){const _0x5ad8f0=_0x203051;return this[_0x5ad8f0(0x200)][_0x5ad8f0(0x263)](_0x580794),_0x4d0dd4(()=>this[_0x5ad8f0(0x200)][_0x5ad8f0(0x20a)](_0x580794));}[_0x203051(0x1f7)](_0x4ec929){const _0x554514=_0x203051;return this[_0x554514(0x22f)][_0x554514(0x263)](_0x4ec929),_0x4d0dd4(()=>this['_reporters'][_0x554514(0x20a)](_0x4ec929));}[_0x203051(0x256)](_0x54561d){const _0x21a75b=_0x203051;return this[_0x21a75b(0x200)][_0x21a75b(0x1f1)](_0x54561d);}[_0x203051(0x239)](_0xab4032){const _0x371423=_0x203051;return Array[_0x371423(0x236)](this[_0x371423(0x22f)])[_0x371423(0x226)](_0x589ba1=>_0x589ba1(_0xab4032));}}var Ne=Object[_0x203051(0x20e)],Y=(_0x34ef8c,_0x257cf9,_0x21e8ad,_0x21b265)=>{const _0x51a789=_0x203051;for(var _0x113753=_0x21b265>0x1?void 0x0:_0x21b265?Ne(_0x257cf9,_0x21e8ad):_0x257cf9,_0x41a0f7=_0x34ef8c[_0x51a789(0x270)]-0x1,_0x4508e4;_0x41a0f7>=0x0;_0x41a0f7--)(_0x4508e4=_0x34ef8c[_0x41a0f7])&&(_0x113753=_0x4508e4(_0x113753)||_0x113753);return _0x113753;},_=(_0x2b58e9,_0x44395f)=>(_0x49f7a9,_0x473407)=>_0x44395f(_0x49f7a9,_0x473407,_0x2b58e9);let S=class extends _0x319545{constructor(_0x3592b0,_0x5818e1,_0x5ddd67){const _0x1eaa54=_0x203051;super(),u(this,_0x1eaa54(0x1fe),new Map()),(this[_0x1eaa54(0x276)]=_0x3592b0,this[_0x1eaa54(0x27b)]=_0x5818e1,this[_0x1eaa54(0x1f5)]=_0x5ddd67,this[_0x1eaa54(0x280)]());}async[_0x203051(0x250)](_0x99b3e4){const _0x3f66d5=_0x203051;return this[_0x3f66d5(0x1fe)][_0x3f66d5(0x1f1)](_0x99b3e4)||await this['_startLiveShareCoordinator'](_0x99b3e4),this['_entities']['get'](_0x99b3e4);}[_0x203051(0x24d)](_0x4e428e){const _0x507789=_0x203051;var _0x23a415;return(_0x23a415=this[_0x507789(0x1fe)][_0x507789(0x1e0)](_0x4e428e))!=null?_0x23a415:null;}[_0x203051(0x280)](){const _0x204735=_0x203051;this[_0x204735(0x276)][_0x204735(0x283)](_0xf4b6a6[_0x204735(0x229)])[_0x204735(0x232)](_0xccce48(this[_0x204735(0x233)]))[_0x204735(0x1f4)](async _0x213e95=>{const _0x1851cf=_0x204735,_0x23f607=_0x213e95[_0x1851cf(0x25c)]();this[_0x1851cf(0x1fe)][_0x1851cf(0x1f1)](_0x23f607)||this[_0x1851cf(0x27c)](_0x23f607);}),this[_0x204735(0x276)][_0x204735(0x221)](_0xf4b6a6[_0x204735(0x229)])[_0x204735(0x232)](_0xccce48(this[_0x204735(0x233)]))[_0x204735(0x1f4)](_0x4eeff4=>{const _0x46231c=_0x204735,_0x3edf6c=_0x4eeff4['getUnitId'](),_0x1c1059=this[_0x46231c(0x1fe)]['get'](_0x3edf6c);_0x1c1059==null||_0x1c1059[_0x46231c(0x269)]();});}async[_0x203051(0x27c)](_0x35c2c7){const _0x2465fd=_0x203051,_0x2787e8=await this[_0x2465fd(0x1f5)][_0x2465fd(0x23f)](_0x35c2c7),_0x5b41a0=this['_injector']['createInstance'](N,_0x35c2c7,_0x2787e8);return _0x5b41a0[_0x2465fd(0x1eb)](),this[_0x2465fd(0x1fe)]['set'](_0x35c2c7,_0x5b41a0),_0x5b41a0;}};S=Y([_(0x0,_0xfb97b7),_(0x1,_0x41344e(_0x247233)),_(0x2,_0x41344e(_0x202fa1))],S);var c=(_0x3217b2=>(_0x3217b2['OFFLINE']=_0x203051(0x218),_0x3217b2[_0x203051(0x21f)]='idle',_0x3217b2[_0x203051(0x215)]=_0x203051(0x228),_0x3217b2[_0x203051(0x223)]=_0x203051(0x1ef),_0x3217b2[_0x203051(0x235)]='presenting',_0x3217b2))(c||{});const Ce=_0x203051(0x219),De=0xc8;let N=class extends _0x319545{constructor(_0x6c032f,_0x3f0c65,_0x52bbb6,_0x1d34dd,_0x57be91){const _0x20dfd0=_0x203051;super(),u(this,_0x20dfd0(0x1fb),new _0xf60712(_0x20dfd0(0x210))),u(this,_0x20dfd0(0x22b),this['_status$']['asObservable']()),u(this,_0x20dfd0(0x280),!0x1),u(this,_0x20dfd0(0x23b),null),u(this,_0x20dfd0(0x289),null),(this[_0x20dfd0(0x1f3)]=_0x6c032f,this[_0x20dfd0(0x212)]=_0x3f0c65,this[_0x20dfd0(0x264)]=_0x52bbb6,this[_0x20dfd0(0x222)]=_0x1d34dd,this['_commandService']=_0x57be91);}get['_status'](){const _0x519881=_0x203051;return this[_0x519881(0x1fb)][_0x519881(0x255)]();}[_0x203051(0x269)](){const _0x1d33cb=_0x203051;var _0x264949;(_0x264949=this[_0x1d33cb(0x23b)])==null||_0x264949['dispose'](),this[_0x1d33cb(0x1fb)][_0x1d33cb(0x26d)](_0x1d33cb(0x210)),this[_0x1d33cb(0x1fb)][_0x1d33cb(0x27d)]();}[_0x203051(0x27f)](){const _0x35b211=_0x203051;return this[_0x35b211(0x271)];}[_0x203051(0x1eb)](){const _0x997e05=_0x203051;this[_0x997e05(0x280)]||(this[_0x997e05(0x280)]=!0x0,this[_0x997e05(0x212)]['sessionStatus$'][_0x997e05(0x232)](_0xccce48(this[_0x997e05(0x233)]))['subscribe'](_0x4d3cda=>{const _0x2ccb1b=_0x997e05;switch(_0x4d3cda){case _0x61eb11[_0x2ccb1b(0x267)]:this[_0x2ccb1b(0x1fd)]();break;case _0x61eb11[_0x2ccb1b(0x241)]:this[_0x2ccb1b(0x251)]();break;}}),this[_0x997e05(0x212)][_0x997e05(0x23a)][_0x997e05(0x232)](_0xccce48(this[_0x997e05(0x233)]))[_0x997e05(0x1f4)](_0x18fd1f=>{const _0x31a252=_0x997e05,{eventID:_0x4a630f}=_0x18fd1f;switch(_0x4a630f){case _0x378720[_0x31a252(0x213)]:this[_0x31a252(0x245)](_0x18fd1f);break;case _0x378720[_0x31a252(0x287)]:this['_handleOperation'](_0x18fd1f);break;case _0x378720[_0x31a252(0x1e9)]:this[_0x31a252(0x1f9)]();break;case _0x378720['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x18fd1f);break;}}));}[_0x203051(0x252)](){const _0xdf0b86=_0x203051;this[_0xdf0b86(0x212)][_0xdf0b86(0x254)]({'eventID':_0x378720[_0xdf0b86(0x25e)],'data':{'unitID':this['_unitID'],'userID':this[_0xdf0b86(0x212)][_0xdf0b86(0x272)]()}},this['_unitID']);}[_0x203051(0x260)](){const _0x46223d=_0x203051;this[_0x46223d(0x271)]===_0x46223d(0x1e8)&&(this[_0x46223d(0x1fb)][_0x46223d(0x26d)]('idle'),this['_collabSession']['send']({'eventID':_0x378720[_0x46223d(0x1e9)],'data':{'unitID':this[_0x46223d(0x1f3)]}},this[_0x46223d(0x1f3)]));}[_0x203051(0x21c)](){const _0x3b6006=_0x203051;this[_0x3b6006(0x271)]===_0x3b6006(0x1ef)&&(this[_0x3b6006(0x1fb)][_0x3b6006(0x26d)]('following'),this[_0x3b6006(0x282)]());}[_0x203051(0x268)](){const _0xd742dc=_0x203051;this[_0xd742dc(0x271)]===_0xd742dc(0x228)&&this['_stopFollowing']();}[_0x203051(0x245)](_0x2f3ca8){const _0x5ad48f=_0x203051,{presenter:_0x5aba50}=_0x2f3ca8[_0x5ad48f(0x1ea)],_0x3ccae5=this[_0x5ad48f(0x212)]['getMemberID']();this[_0x5ad48f(0x289)]=_0x5aba50,_0x5aba50===_0x3ccae5?(this['_stopFollowing'](),this[_0x5ad48f(0x209)]()):this[_0x5ad48f(0x271)]!=='not-following'&&(this[_0x5ad48f(0x247)](),this[_0x5ad48f(0x282)]());}[_0x203051(0x224)](){const _0x5646a3=_0x203051,_0x3597b5={'eventID':_0x378720['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x5646a3(0x254)](_0x3597b5,this['_unitID']);}[_0x203051(0x1f9)](){const _0x5cfc49=_0x203051;this['_presenter']=null,this[_0x5cfc49(0x271)]!==_0x5cfc49(0x1e8)&&this['_beIdle']();}[_0x203051(0x277)](_0x3c2b7c){const _0x118e45=_0x203051;if(this[_0x118e45(0x271)]===_0x118e45(0x228)&&this[_0x118e45(0x289)]===_0x3c2b7c[_0x118e45(0x1ea)]['memberID']){const _0x55dad7=_0xb845cb(_0x3c2b7c['data'])[_0x118e45(0x204)][_0x118e45(0x261)]()[_0x118e45(0x27a)](_0x54e9c5=>_0x54e9c5['id']===_0x126909['id']);if(_0x55dad7){const _0x175866=_0x55dad7['params'][_0x118e45(0x262)],_0x3ba3cb=_0x55dad7[_0x118e45(0x265)][_0x118e45(0x275)]['id'];setTimeout(()=>{const _0x179aeb=_0x118e45;this['_commandService'][_0x179aeb(0x26a)](_0x38d630['id'],{'unitId':_0x175866,'subUnitId':_0x3ba3cb},{'fromCollab':!0x0});});}}}[_0x203051(0x209)](){const _0x5e8233=_0x203051;this[_0x5e8233(0x1fb)][_0x5e8233(0x26d)](_0x5e8233(0x1e8));const _0x107da6=new Map(),_0x1d477e=this['_commandDisposable']=new _0x32a659();_0x1d477e[_0x5e8233(0x263)](_0x4d0dd4(()=>{const _0x528587=_0x5e8233;_0x107da6[_0x528587(0x242)](_0x280608=>_0x280608[_0x528587(0x27d)]()),_0x107da6[_0x528587(0x230)]();})),_0x1d477e[_0x5e8233(0x263)](this[_0x5e8233(0x220)]['onCommandExecuted'](_0x5f1579=>{const _0x18529e=_0x5e8233;var _0x5806e0;if(_0x5f1579['type']!==_0x37b1fc[_0x18529e(0x20c)]||!this[_0x18529e(0x222)][_0x18529e(0x256)](_0x5f1579['id']))return;const {id:_0x41c47f}=_0x5f1579;let _0x22d9ef;_0x107da6[_0x18529e(0x1f1)](_0x41c47f)?_0x22d9ef=_0x107da6[_0x18529e(0x1e0)](_0x41c47f):(_0x22d9ef=new _0x3f6d0b(),_0x107da6[_0x18529e(0x237)](_0x41c47f,_0x22d9ef),_0x22d9ef[_0x18529e(0x232)](_0x471bc5((_0x5806e0=this[_0x18529e(0x264)][_0x18529e(0x1f0)](Ce))!=null?_0x5806e0:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x18529e(0x1f4)](_0x2b4d06=>{const _0xd1771e=_0x18529e;this[_0xd1771e(0x212)]['send']({'eventID':_0x378720[_0xd1771e(0x287)],'data':{'unitID':this[_0xd1771e(0x1f3)],'operations':{[_0x2b4d06['id']]:{'id':_0x2b4d06['id'],'params':JSON['stringify'](_0x2b4d06[_0xd1771e(0x265)])}}}},this[_0xd1771e(0x1f3)]);})),_0x22d9ef[_0x18529e(0x26d)](_0x5f1579);})),this[_0x5e8233(0x222)]['getInitialStates'](this[_0x5e8233(0x1f3)])[_0x5e8233(0x242)](_0x467fe4=>this[_0x5e8233(0x212)][_0x5e8233(0x254)]({'eventID':_0x378720[_0x5e8233(0x287)],'data':{'unitID':this[_0x5e8233(0x1f3)],'operations':{[_0x467fe4['id']]:{'id':_0x467fe4['id'],'params':JSON['stringify'](_0x467fe4[_0x5e8233(0x265)])}}}},this[_0x5e8233(0x1f3)]));}['_stopPresenting'](){const _0x2b7f69=_0x203051;var _0x5ed851;this[_0x2b7f69(0x1fb)][_0x2b7f69(0x26d)](_0x2b7f69(0x210)),(_0x5ed851=this[_0x2b7f69(0x23b)])==null||_0x5ed851[_0x2b7f69(0x269)](),this[_0x2b7f69(0x23b)]=null;}[_0x203051(0x282)](){const _0x15dee8=_0x203051;var _0x453604;(_0x453604=this[_0x15dee8(0x23b)])==null||_0x453604[_0x15dee8(0x269)](),this['_status$'][_0x15dee8(0x26d)](_0x15dee8(0x228));}[_0x203051(0x1ff)](){const _0x505683=_0x203051;var _0x382546;this[_0x505683(0x1fb)][_0x505683(0x26d)](_0x505683(0x210)),(_0x382546=this[_0x505683(0x23b)])==null||_0x382546['dispose'](),this['_commandDisposable']=null;}[_0x203051(0x26b)](){const _0x23b79a=_0x203051;var _0x290b16;this[_0x23b79a(0x1fb)]['next']('not-following'),(_0x290b16=this[_0x23b79a(0x23b)])==null||_0x290b16[_0x23b79a(0x269)]();}[_0x203051(0x207)](_0x2e5815){const _0x4cb2f9=_0x203051;if(['presenting',_0x4cb2f9(0x1ef),_0x4cb2f9(0x218)][_0x4cb2f9(0x20f)](this[_0x4cb2f9(0x271)])||!_0x2e5815[_0x4cb2f9(0x1ea)][_0x4cb2f9(0x273)]||_0x2e5815[_0x4cb2f9(0x1ea)][_0x4cb2f9(0x273)]===this[_0x4cb2f9(0x212)][_0x4cb2f9(0x272)]())return;this[_0x4cb2f9(0x271)]===_0x4cb2f9(0x210)&&this['_startFollowing']();const _0x49f5c1=_0x2e5815[_0x4cb2f9(0x1ea)][_0x4cb2f9(0x24a)];Object['values'](_0x49f5c1)[_0x4cb2f9(0x242)](_0x1daf99=>{const _0x5e07e0=_0x4cb2f9;this['_commandService'][_0x5e07e0(0x26a)](_0x1daf99['id'],_0x1daf99[_0x5e07e0(0x265)]?JSON['parse'](_0x1daf99[_0x5e07e0(0x265)]):null,{'fromCollab':!0x0});});}[_0x203051(0x1fd)](){const _0x594f46=_0x203051;var _0x527ba4;this['_status$'][_0x594f46(0x26d)](_0x594f46(0x218)),(_0x527ba4=this[_0x594f46(0x23b)])==null||_0x527ba4['dispose']();}[_0x203051(0x251)](){const _0x509c0f=_0x203051;this[_0x509c0f(0x1fb)][_0x509c0f(0x26d)]('idle'),this[_0x509c0f(0x224)]();}};N=Y([_(0x2,_0x59bacf),_(0x3,_0x41344e(L)),_(0x4,_0x16bfa6)],N);function Le(){const _0x5e929c=_0x203051,_0xe3db9f=_0x445413(S),_0x40b288=_0x445413(_0xfb97b7),_0xcfee85=_0x3f7cfd(()=>_0x40b288[_0x5e929c(0x205)](_0xf4b6a6[_0x5e929c(0x229)]),void 0x0,!0x1,[]),[_0x257578,_0x495be0]=_0x1d0405(null),[_0x3c3b08,_0x466324]=_0x1d0405(c[_0x5e929c(0x21f)]),_0x2815dd=_0x518592(null);return _0x558e55(()=>(_0xcfee85&&_0xe3db9f[_0x5e929c(0x250)](_0xcfee85['getUnitId']())[_0x5e929c(0x1e5)](_0x5f178b=>{const _0x2c2033=_0x5e929c;_0x495be0(_0x5f178b),_0x2815dd[_0x2c2033(0x246)]=_0x5f178b['status$'][_0x2c2033(0x1f4)](_0xc0edfc=>{_0x466324(_0xc0edfc);});}),()=>{const _0x5b481b=_0x5e929c;var _0x550bda;(_0x550bda=_0x2815dd[_0x5b481b(0x246)])==null||_0x550bda[_0x5b481b(0x288)](),_0x2815dd[_0x5b481b(0x246)]=null;}),[_0xcfee85,_0xe3db9f]),_0x257578?_0x4cbb7b(_0x356893,{'align':_0x5e929c(0x214),'disabled':_0x3c3b08===c[_0x5e929c(0x267)],'className':_0x5e929c(0x286),'overlay':_0x4cbb7b(Re,{'status':_0x3c3b08,'coordinator':_0x257578}),'children':_0x4cbb7b(_0x5e929c(0x234),{'className':_0x350e56('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3c3b08===c[_0x5e929c(0x267)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3c3b08!==c[_0x5e929c(0x267)]}),'type':_0x5e929c(0x234),'children':_0x4cbb7b(W,{'className':_0x5e929c(0x25d)})})}):null;}function Re(_0x37143f){const _0x4d440f=_0x203051,{status:_0x38a54f,coordinator:_0x15a64f}=_0x37143f;switch(_0x38a54f){case c[_0x4d440f(0x21f)]:return _0x4cbb7b($e,{'coordinator':_0x15a64f});case c[_0x4d440f(0x215)]:return _0x4cbb7b(xe,{'coordinator':_0x15a64f});case c[_0x4d440f(0x223)]:return _0x4cbb7b(Pe,{'coordinator':_0x15a64f});case c[_0x4d440f(0x267)]:return _0x4cbb7b(Te,{});case c[_0x4d440f(0x235)]:return _0x4cbb7b(Ae,{'coordinator':_0x15a64f});default:return null;}}function $e(_0x399c82){const _0x36fac6=_0x203051,{coordinator:_0x3f9790}=_0x399c82;return _0xbc9c89(_0x5c324a,{'children':[_0x4cbb7b(_0x36fac6(0x25a),{'className':_0x36fac6(0x28a),'children':_0x36fac6(0x208)}),_0x4cbb7b(_0x1aa64c,{'onClick':()=>_0x3f9790[_0x36fac6(0x252)](),'children':_0x36fac6(0x22e)})]});}function xe(_0x5df9e2){const _0x5f0ef1=_0x203051,{coordinator:_0x3c3964}=_0x5df9e2;return _0xbc9c89(_0x5c324a,{'children':[_0x4cbb7b(_0x5f0ef1(0x25a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5f0ef1(0x1e6)}),_0x4cbb7b(_0x1aa64c,{'onClick':()=>_0x3c3964['stopFollowing'](),'children':_0x5f0ef1(0x278)})]});}function Pe(_0x352b59){const _0x7ea9e1=_0x203051,{coordinator:_0x47fa63}=_0x352b59;return _0xbc9c89(_0x5c324a,{'children':[_0x4cbb7b(_0x7ea9e1(0x25a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x7ea9e1(0x231)}),_0x4cbb7b(_0x1aa64c,{'variant':'text','onClick':()=>_0x47fa63[_0x7ea9e1(0x21c)](),'children':_0x7ea9e1(0x244)})]});}function Ae(_0x204052){const _0x29c4fe=_0x203051,{coordinator:_0xedf115}=_0x204052;return _0xbc9c89(_0x5c324a,{'children':[_0x4cbb7b(_0x29c4fe(0x25a),{'className':_0x29c4fe(0x28a),'children':_0x29c4fe(0x259)}),_0x4cbb7b(_0x1aa64c,{'variant':_0x29c4fe(0x217),'onClick':()=>_0xedf115['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Te(){const _0x3d89a4=_0x203051;return _0x4cbb7b(_0x5c324a,{'children':_0x3d89a4(0x24b)});}function _0x53e2(){const _0x58b76e=['toString','_handleOperation','Present\x20this\x20document','_startPresenting','delete','path','OPERATION','455683FXjrbQ','getOwnPropertyDescriptor','includes','idle','live-share.config','_collabSession','LIVESHARE_NEW_HOST','end','FOLLOWING','_config','default','offline','SAME_OPERATION_SHARE_INTERVAL','UniverIcon','substring','startFollowing','random','displayName','IDLE','_commandService','getTypeOfUnitDisposed$','_liveShareService','NOT_FOLLOWING','_fetchOperations','registerComponent','map','27481390cFRNNj','following','UNIVER_SHEET','registerSharedOperation','status$','UNIVER_UNKNOWN','idSuffix','Start','_reporters','clear','You\x27re\x20not\x20following\x20the\x20presenter','pipe','dispose$','button','PRESENTING','from','set','1793424tIizvy','getInitialStates','event$','_commandDisposable','currentColor','_mountLiveShare','232AWrXli','requireSession','57170NILJfT','ONLINE','forEach','attrs','Start\x20following','_handleNewHost','current','_stopPresenting','0\x200\x2017\x2017','svg','operations','You\x27are\x20offline.','trim','getLiveShareCoordinatorSync','9iRoSHI','mask','getLiveShareCoordinator','_handleOnline','tryStartPresenting','1710696OFCKpS','send','getValue','shouldShareOperation','_uiPartsService','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','You\x27re\x20presenting\x20the\x20document','div','url(#$1','getUnitId','univer-size-4','LIVESHARE_REQUEST_HOST','setConfig','stopPresenting','reverse','unitId','add','_configService','params','xlink:href','OFFLINE','stopFollowing','dispose','executeCommand','_stopFollowing','LiveShareIcon','next','evenodd','univerjs-icon\x20univerjs-icon-','length','_status','getMemberID','presenter','1em','sheet','_univerInstanceService','_handleNewChangeSets','Stop\x20following','fill','find','_injector','_startLiveShareCoordinator','complete','4yViPbm','getStatus','_init','disposeWithMe','_startFollowing','getTypeOfUnitAdded$','defs','override','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','LIVESHARE_OPERATION','unsubscribe','_presenter','univer-mb-3\x20univer-w-full\x20univer-text-sm','get','3139297DbuYkz','HEADER_MENU','entries','children','then','You\x27re\x20following\x20the\x20presenter','30856kdxcZX','presenting','LIVESHARE_TERMINATE','data','init','string','defineProperty','colorChannel1','not-following','getConfig','has','assign','_unitID','subscribe','_collabSessionService','UNIVER_LIVE_SHARE_PLUGIN','registerInitialStateReporter','defIds','_handleTerminate','type','_status$','onStarting','_handleOffline','_entities','_beIdle','_sharedOperations','tag','replace','symbol','mutations','getCurrentTypeOfUnit$'];_0x53e2=function(){return _0x58b76e;};return _0x53e2();}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x3aa46f,_0x19b0ba,_0x2a37f0,_0x39bc96)=>{for(var _0x4f4575=_0x39bc96>0x1?void 0x0:_0x39bc96?Fe(_0x19b0ba,_0x2a37f0):_0x19b0ba,_0x1bb5f1=_0x3aa46f['length']-0x1,_0x221e07;_0x1bb5f1>=0x0;_0x1bb5f1--)(_0x221e07=_0x3aa46f[_0x1bb5f1])&&(_0x4f4575=_0x221e07(_0x4f4575)||_0x4f4575);return _0x4f4575;},A=(_0x58065c,_0x19e361)=>(_0x3f7948,_0x250d24)=>_0x19e361(_0x3f7948,_0x250d24,_0x58065c);let m=class extends _0x2fa88b{constructor(_0x299cc2,_0x416853){const _0x27ef35=_0x203051;super(),this[_0x27ef35(0x27b)]=_0x299cc2,this[_0x27ef35(0x257)]=_0x416853,this[_0x27ef35(0x23d)]();}[_0x203051(0x23d)](){const _0x346257=_0x203051;this[_0x346257(0x281)](this[_0x346257(0x257)][_0x346257(0x225)](_0x2bf13e[_0x346257(0x1e2)],()=>_0x2b9143(Le,this[_0x346257(0x27b)])));}};m=He([A(0x0,_0x41344e(_0x247233)),A(0x1,_0x1f7073)],m);const ye=_0x203051(0x211),T={};var Ue=Object[_0x203051(0x20e)],Ve=(_0x5e1d89,_0x5d6f96,_0x620112,_0x3c3f11)=>{for(var _0x4d8e9d=_0x3c3f11>0x1?void 0x0:_0x3c3f11?Ue(_0x5d6f96,_0x620112):_0x5d6f96,_0x9d08d8=_0x5e1d89['length']-0x1,_0x6e0186;_0x9d08d8>=0x0;_0x9d08d8--)(_0x6e0186=_0x5e1d89[_0x9d08d8])&&(_0x4d8e9d=_0x6e0186(_0x4d8e9d)||_0x4d8e9d);return _0x4d8e9d;},je=(_0x426fe1,_0x1a648a)=>(_0xb03e87,_0x4f56b7)=>_0x1a648a(_0xb03e87,_0x4f56b7,_0x426fe1);let I=class extends _0x2fa88b{constructor(_0x31fdbe){const _0x3c732f=_0x203051;super(),this[_0x3c732f(0x222)]=_0x31fdbe,this[_0x3c732f(0x280)]();}[_0x203051(0x280)](){[_0x4a5670['id'],_0x23916f['id'],_0x38d630['id']]['forEach'](_0x3f5c30=>{const _0x4046f0=_0x467a;this['disposeWithMe'](this['_liveShareService'][_0x4046f0(0x22a)](_0x3f5c30));});}};I=Ve([je(0x0,_0x41344e(L))],I);var Me=Object[_0x203051(0x1ed)],ke=Object[_0x203051(0x20e)],Ge=(_0x14d5a0,_0x1e4a02,_0x55a88d)=>_0x1e4a02 in _0x14d5a0?Me(_0x14d5a0,_0x1e4a02,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55a88d}):_0x14d5a0[_0x1e4a02]=_0x55a88d,We=(_0x203698,_0xe0342b,_0x173f45,_0x1e0285)=>{for(var _0x3035e0=_0x1e0285>0x1?void 0x0:_0x1e0285?ke(_0xe0342b,_0x173f45):_0xe0342b,_0x4d4f5e=_0x203698['length']-0x1,_0x42fb1a;_0x4d4f5e>=0x0;_0x4d4f5e--)(_0x42fb1a=_0x203698[_0x4d4f5e])&&(_0x3035e0=_0x42fb1a(_0x3035e0)||_0x3035e0);return _0x3035e0;},F=(_0x4a60cb,_0x281b58)=>(_0x46b207,_0x5ec506)=>_0x281b58(_0x46b207,_0x5ec506,_0x4a60cb),B=(_0x4b3bc4,_0x4df8ed,_0x1e631a)=>Ge(_0x4b3bc4,typeof _0x4df8ed!=_0x203051(0x203)?_0x4df8ed+'':_0x4df8ed,_0x1e631a);const Ye=_0x203051(0x1f6);let b=class extends _0x2461be{constructor(_0x23a960=T,_0xcc65bf,_0x3f4f40){const _0x1474aa=_0x203051;super(),this[_0x1474aa(0x216)]=_0x23a960,this[_0x1474aa(0x27b)]=_0xcc65bf,this[_0x1474aa(0x264)]=_0x3f4f40;const {..._0x3bc066}=_0xbbecdb({},T,this['_config']);this[_0x1474aa(0x264)][_0x1474aa(0x25f)](ye,_0x3bc066);}[_0x203051(0x1fc)](){const _0x5e3202=_0x203051;_0x3077e0(this[_0x5e3202(0x27b)],_0x1e8f39([[L],[S],[I],[m]],this[_0x5e3202(0x216)][_0x5e3202(0x285)])),_0x207751(this[_0x5e3202(0x27b)],[[I]]);}['onRendered'](){const _0xe6b90a=_0x203051;_0x207751(this[_0xe6b90a(0x27b)],[[m]]);}};B(b,_0x203051(0x1fa),_0xf4b6a6[_0x203051(0x22c)]),B(b,'pluginName',Ye),b=We([_0x352a09(_0x5c1f28),F(0x1,_0x41344e(_0x247233)),F(0x2,_0x59bacf)],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
|
|
1
|
+
const _0x510e92=_0x4f85;(function(_0x34ba85,_0x4522a6){const _0x36ae73=_0x4f85,_0xabf814=_0x34ba85();while(!![]){try{const _0x35b24a=-parseInt(_0x36ae73(0xfc))/0x1*(-parseInt(_0x36ae73(0xf6))/0x2)+parseInt(_0x36ae73(0x103))/0x3+-parseInt(_0x36ae73(0xed))/0x4*(parseInt(_0x36ae73(0xf7))/0x5)+parseInt(_0x36ae73(0xfb))/0x6*(parseInt(_0x36ae73(0xf2))/0x7)+parseInt(_0x36ae73(0xff))/0x8+parseInt(_0x36ae73(0x106))/0x9*(parseInt(_0x36ae73(0xf0))/0xa)+-parseInt(_0x36ae73(0xe7))/0xb;if(_0x35b24a===_0x4522a6)break;else _0xabf814['push'](_0xabf814['shift']());}catch(_0x560b08){_0xabf814['push'](_0xabf814['shift']());}}}(_0x575f,0xaca61));import{LiveShareController as _0x1ca6a4,LiveShareStatus as _0x2cb366}from'@univerjs-pro/live-share';function _0x575f(){const _0x35db40=['startFollowing','syncExecuteCommand','getId','2YTzTXe','5637365VZURxs','stopFollowing','LiveShareStatusEnum','stopPresenting','1146RODFUM','399613SUCqoA','_initialize','getActiveSheet','7274448tgxnIi','get','_commandService','getLiveShareCoordinatorSync','1928124qQePgA','startRow','getLiveShareStatus','6525SGuobw','startPresenting','IDLE','extend','_injector','tryStartPresenting','11124069TCcraZ','executeCommand','No\x20active\x20workbook\x20found.','getStatus','getUnitId','getActiveWorkbook','4wGlfTW','startColumn','getSheetId','5330srhhtM','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','18613iSnbqI'];_0x575f=function(){return _0x35db40;};return _0x575f();}import{IRenderManagerService as _0x3cd943}from'@univerjs/engine-render';import{SetWorksheetActiveOperation as _0x3495bd}from'@univerjs/sheets';import{SetScrollOperation as _0x40f6af}from'@univerjs/sheets-ui';import{FRange as _0x459a39}from'@univerjs/sheets/facade';import{FUniver as _0x89d62c,FEnum as _0x478e8a}from'@univerjs/core/facade';class I extends _0x459a39{[_0x510e92(0xfd)](_0x548c86,_0x294ade,_0x595d7d,_0x212bca,_0x116be4){const _0x94740=_0x510e92,_0x1dadf6=_0x548c86[_0x94740(0x100)](_0x1ca6a4),_0x2f8afe=_0x548c86[_0x94740(0x100)](_0x3cd943),_0x2473cb=_0x294ade[_0x94740(0xeb)](),_0xd69fe8=_0x294ade[_0x94740(0xfe)](),_0x2b2da9=_0x1dadf6['getLiveShareCoordinatorSync'](_0x2473cb);(_0x2b2da9==null?void 0x0:_0x2b2da9[_0x94740(0xea)]())!==_0x2cb366['PRESENTING']||(_0x595d7d['getSheetId']()!==_0xd69fe8[_0x94740(0xef)]()&&this[_0x94740(0x101)][_0x94740(0xe8)](_0x3495bd['id'],{'unitId':_0x2473cb,'subUnitId':_0x595d7d[_0x94740(0xef)]()}),!_0x2f8afe['getRenderById'](_0x2473cb))||_0x116be4[_0x94740(0xf4)](_0x40f6af['id'],{'unitId':_0x294ade[_0x94740(0xeb)](),'sheetId':_0x595d7d['getSheetId'](),'sheetViewStartRow':_0x212bca[_0x94740(0x104)],'sheetViewStartColumn':_0x212bca[_0x94740(0xee)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0x459a39[_0x510e92(0x109)](I);class m extends _0x89d62c{[_0x510e92(0x105)](){const _0x2225bb=_0x510e92;var _0x2b90fa,_0x2ac7a7;const _0x1eacb4=this[_0x2225bb(0xe5)]['get'](_0x1ca6a4),_0x377ac0=(_0x2b90fa=this[_0x2225bb(0xec)]())==null?void 0x0:_0x2b90fa[_0x2225bb(0xf5)]();if(!_0x377ac0)throw new Error(_0x2225bb(0xe9));const _0x3b0f94=_0x1eacb4[_0x2225bb(0x102)](_0x377ac0);return(_0x2ac7a7=_0x3b0f94==null?void 0x0:_0x3b0f94[_0x2225bb(0xea)]())!=null?_0x2ac7a7:_0x2cb366[_0x2225bb(0x108)];}[_0x510e92(0xf3)](){const _0x29687c=_0x510e92;var _0x326131;const _0x3eb30b=this[_0x29687c(0xe5)][_0x29687c(0x100)](_0x1ca6a4),_0x168946=(_0x326131=this[_0x29687c(0xec)]())==null?void 0x0:_0x326131[_0x29687c(0xf5)]();if(!_0x168946)throw new Error(_0x29687c(0xe9));const _0x160636=_0x3eb30b[_0x29687c(0x102)](_0x168946);if(!_0x160636)throw new Error(_0x29687c(0xf1));_0x160636[_0x29687c(0xf3)]();}[_0x510e92(0xf8)](){const _0x530c57=_0x510e92;var _0x1b2a7b;const _0xd0e19f=this[_0x530c57(0xe5)][_0x530c57(0x100)](_0x1ca6a4),_0x5f3ecd=(_0x1b2a7b=this[_0x530c57(0xec)]())==null?void 0x0:_0x1b2a7b['getId']();if(!_0x5f3ecd)throw new Error('No\x20active\x20workbook\x20found.');const _0x657c61=_0xd0e19f['getLiveShareCoordinatorSync'](_0x5f3ecd);if(!_0x657c61)throw new Error(_0x530c57(0xf1));_0x657c61['stopFollowing']();}[_0x510e92(0x107)](){const _0x467974=_0x510e92;var _0xeb20c1;const _0xfe8bbd=this['_injector'][_0x467974(0x100)](_0x1ca6a4),_0x3075de=(_0xeb20c1=this['getActiveWorkbook']())==null?void 0x0:_0xeb20c1['getId']();if(!_0x3075de)throw new Error(_0x467974(0xe9));const _0x15fe1c=_0xfe8bbd[_0x467974(0x102)](_0x3075de);if(!_0x15fe1c)throw new Error(_0x467974(0xf1));_0x15fe1c[_0x467974(0xe6)]();}[_0x510e92(0xfa)](){const _0x4e9f75=_0x510e92;var _0x2d81be;const _0x4e9abb=this[_0x4e9f75(0xe5)]['get'](_0x1ca6a4),_0x221c4e=(_0x2d81be=this[_0x4e9f75(0xec)]())==null?void 0x0:_0x2d81be[_0x4e9f75(0xf5)]();if(!_0x221c4e)throw new Error(_0x4e9f75(0xe9));const _0x3de30c=_0x4e9abb['getLiveShareCoordinatorSync'](_0x221c4e);if(!_0x3de30c)throw new Error(_0x4e9f75(0xf1));_0x3de30c[_0x4e9f75(0xfa)]();}}_0x89d62c[_0x510e92(0x109)](m);class C extends _0x478e8a{get[_0x510e92(0xf9)](){return _0x2cb366;}}function _0x4f85(_0x22962c,_0x4998ca){_0x22962c=_0x22962c-0xe5;const _0x575fec=_0x575f();let _0x4f8578=_0x575fec[_0x22962c];return _0x4f8578;}_0x478e8a[_0x510e92(0x109)](C);
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const _0x562b47=_0x465d;(function(_0x4cd1ab,_0x3b9ac4){const _0x231961=_0x465d,_0x2b535b=_0x4cd1ab();while(!![]){try{const _0x54b116=parseInt(_0x231961(0x145))/0x1*(-parseInt(_0x231961(0x164))/0x2)+parseInt(_0x231961(0xeb))/0x3*(-parseInt(_0x231961(0x128))/0x4)+parseInt(_0x231961(0x136))/0x5*(parseInt(_0x231961(0xd1))/0x6)+parseInt(_0x231961(0x148))/0x7*(parseInt(_0x231961(0x14c))/0x8)+parseInt(_0x231961(0x12a))/0x9+-parseInt(_0x231961(0x152))/0xa+parseInt(_0x231961(0x15c))/0xb;if(_0x54b116===_0x3b9ac4)break;else _0x2b535b['push'](_0x2b535b['shift']());}catch(_0x21dbd4){_0x2b535b['push'](_0x2b535b['shift']());}}}(_0xad37,0x605b1));var J=Object['defineProperty'],K=(_0x2e0408,_0x7c337c,_0x2c8bdc)=>_0x7c337c in _0x2e0408?J(_0x2e0408,_0x7c337c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c8bdc}):_0x2e0408[_0x7c337c]=_0x2c8bdc,u=(_0x97d849,_0x181dd3,_0x145323)=>K(_0x97d849,typeof _0x181dd3!=_0x562b47(0x10f)?_0x181dd3+'':_0x181dd3,_0x145323);import{Disposable as _0x2e50d0,toDisposable as _0x4271be,IUniverInstanceService as _0x187255,Inject as _0x264acd,Injector as _0x126a5b,IConfigService as _0x974748,ICommandService as _0x105090,RxDisposable as _0x51a549,UniverInstanceType as _0x51802f,DisposableCollection as _0x43222f,CommandType as _0x33f042,DependentOn as _0x411c47,Plugin as _0x1130c7,merge as _0xb0c13e,registerDependencies as _0x333ef5,mergeOverrideWithDependencies as _0x3d1a15,touchDependencies as _0x1c3957}from'@univerjs/core';import{useDependency as _0x38dad9,useObservable as _0x14a93c,IUIPartsService as _0x28a6aa,BuiltInUIPart as _0x2de438,connectInjector as _0x183c2b}from'@univerjs/ui';import{jsx as _0x33bb7b,jsxs as _0x4dcdb8,Fragment as _0x967f7f}from'react/jsx-runtime';import{Dropdown as _0x5079de,clsx as _0x54f579,Button as _0x468343}from'@univerjs/design';import{useRef as _0x2dba5e,createElement as _0x4a7a97,forwardRef as _0x424bb6,useState as _0x555c58,useEffect as _0x22e887}from'react';import{CollaborationEvent as _0x301d58,parseProtocolChangeset as _0x19d1a6}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0x4baae7,SessionStatus as _0x50ed84,UniverCollaborationClientPlugin as _0x4e7d3f}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x34d039,SetWorksheetActiveOperation as _0x56bd43}from'@univerjs/sheets';import{BehaviorSubject as _0x5af6da,Subject as _0x8db225}from'rxjs';import{takeUntil as _0x37e8e1,throttleTime as _0x225f90}from'rxjs/operators';function _0xad37(){const _0x57a4e1=['_handleTerminate','3958aGpPZD','_handleOnline','requireSession','values','colorChannel1','UNIVER_LIVE_SHARE_PLUGIN','_univerInstanceService','getUnitId','_commandService','replace','mask','Stop\x20presenting','onStarting','init','disposeWithMe','getLiveShareCoordinator','evenodd','LIVESHARE_OPERATION','add','_stopFollowing','6JIlaZT','xlink:href','offline','stopFollowing','_startFollowing','stringify','UniverIcon','has','reverse','UNIVER_SHEET','_startLiveShareCoordinator','children','LiveShareIcon','_unitID','_configService','_collabSessionService','trim','current','get','_sharedOperations','OFFLINE','getInitialStates','executeCommand','getOwnPropertyDescriptor','defineProperty','shouldShareOperation','659898jeDCxf','subscribe','NOT_FOLLOWING','entries','getMemberID','length','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','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','includes','_beIdle','presenter','currentColor','send','_fetchOperations','assign','onRendered','univerjs-icon\x20univerjs-icon-','_presenter','Present\x20this\x20document','operations','status$','asObservable','presenting','type','_injector','default','forEach','registerComponent','You\x27re\x20not\x20following\x20the\x20presenter','_handleOffline','defs','1em','attrs','registerSharedOperation','unsubscribe','startFollowing','symbol','end','toString','onCommandExecuted','tag','_status$','_reporters','text','IDLE','registerInitialStateReporter','sessionStatus$','univer-mb-3\x20univer-w-full\x20univer-text-sm','params','div','_commandDisposable','from','getTypeOfUnitAdded$','LIVESHARE_TERMINATE','string','_status','You\x27re\x20following\x20the\x20presenter','not-following','live-share-icon','override','_startPresenting','4AjjRIw','dispose','2359764EWOZQb','getCurrentTypeOfUnit$','getTypeOfUnitDisposed$','getConfig','delete','parse','next','_uiPartsService','http://www.w3.org/2000/svg','following','univer-size-4','data','77225JfVLKv','pipe','OPERATION','fill','_init','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','_liveShareService','substring','NEW_CHANGESETS','0\x200\x2017\x2017','idSuffix','PRESENTING','set','then','LIVESHARE_NEW_HOST','7rkUwWw','tryStartPresenting','_handleNewChangeSets','7XjjDKe','path','idle','_handleOperation','759048idyRNb','stopPresenting','_config','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','complete','7433730tQoJZL','ONLINE','_collabSession','defIds','none','You\x27are\x20offline.','_entities','dispose$','url(#$1','button','10992773hcrZbG','UNIVER_UNKNOWN','find','_stopPresenting','FOLLOWING','_handleNewHost','getLiveShareCoordinatorSync'];_0xad37=function(){return _0x57a4e1;};return _0xad37();}import{SetZoomRatioOperation as _0x4e0176,SetScrollOperation as _0xdcd218}from'@univerjs/sheets-ui';function k({ref:_0x4c54a8,..._0x5c0e74}){const _0x5e6d46=_0x562b47,{icon:_0x314ce7,id:_0x1a5b04,className:_0x2acdf6,extend:_0x5503e6,..._0x2067cf}=_0x5c0e74,_0x1e4a05=(_0x5e6d46(0xfb)+_0x1a5b04+'\x20'+(_0x2acdf6||''))[_0x5e6d46(0xe1)](),_0x50da95=_0x2dba5e('_'+Oe());return G(_0x314ce7,''+_0x1a5b04,{'defIds':_0x314ce7[_0x5e6d46(0x155)],'idSuffix':_0x50da95[_0x5e6d46(0xe2)]},{'ref':_0x4c54a8,'className':_0x1e4a05,..._0x2067cf},_0x5503e6);}function G(_0xac6eaa,_0x11c44e,_0x27b2d0,_0x1b95cf,_0x527ef1){const _0x2eafa7=_0x562b47;return _0x4a7a97(_0xac6eaa[_0x2eafa7(0x113)],{'key':_0x11c44e,...be(_0xac6eaa,_0x27b2d0,_0x527ef1),..._0x1b95cf},(Ee(_0xac6eaa,_0x27b2d0)[_0x2eafa7(0xdc)]||[])['map']((_0x30a889,_0x30cb91)=>G(_0x30a889,_0x11c44e+'-'+_0xac6eaa[_0x2eafa7(0x113)]+'-'+_0x30cb91,_0x27b2d0,void 0x0,_0x527ef1)));}function be(_0x885004,_0x615c6f,_0x51715f){const _0x10a47a=_0x562b47,_0x54ec7e={..._0x885004[_0x10a47a(0x10b)]};_0x51715f!=null&&_0x51715f[_0x10a47a(0xc1)]&&_0x54ec7e[_0x10a47a(0x139)]==='colorChannel1'&&(_0x54ec7e[_0x10a47a(0x139)]=_0x51715f[_0x10a47a(0xc1)]),_0x885004[_0x10a47a(0x113)]===_0x10a47a(0xc7)&&_0x54ec7e['id']&&(_0x54ec7e['id']=_0x54ec7e['id']+_0x615c6f[_0x10a47a(0x140)]),Object[_0x10a47a(0xee)](_0x54ec7e)['forEach'](([_0x2d0e81,_0x558183])=>{const _0x192f8d=_0x10a47a;_0x2d0e81===_0x192f8d(0xc7)&&typeof _0x558183==_0x192f8d(0x121)&&(_0x54ec7e[_0x2d0e81]=_0x558183[_0x192f8d(0xc6)](/url\(#(.*)\)/,'url(#$1'+_0x615c6f[_0x192f8d(0x140)]+')'));});const {defIds:_0x5d471e}=_0x615c6f;return!_0x5d471e||_0x5d471e[_0x10a47a(0xf0)]===0x0||(_0x885004['tag']==='use'&&_0x54ec7e[_0x10a47a(0xd2)]&&(_0x54ec7e[_0x10a47a(0xd2)]=_0x54ec7e[_0x10a47a(0xd2)]+_0x615c6f[_0x10a47a(0x140)]),Object[_0x10a47a(0xee)](_0x54ec7e)[_0x10a47a(0x105)](([_0x302d90,_0x37e392])=>{const _0x1a58ef=_0x10a47a;typeof _0x37e392==_0x1a58ef(0x121)&&(_0x54ec7e[_0x302d90]=_0x37e392[_0x1a58ef(0xc6)](/url\(#(.*)\)/,_0x1a58ef(0x15a)+_0x615c6f[_0x1a58ef(0x140)]+')'));})),_0x54ec7e;}function Ee(_0x30635a,_0x12daad){const _0x5c683c=_0x562b47;var _0x512872;const {defIds:_0x1c6c91}=_0x12daad;return!_0x1c6c91||_0x1c6c91[_0x5c683c(0xf0)]===0x0?_0x30635a:_0x30635a['tag']===_0x5c683c(0x109)&&((_0x512872=_0x30635a[_0x5c683c(0xdc)])!=null&&_0x512872[_0x5c683c(0xf0)])?{..._0x30635a,'children':_0x30635a[_0x5c683c(0xdc)]['map'](_0x587fc7=>typeof _0x587fc7[_0x5c683c(0x10b)]['id']==_0x5c683c(0x121)&&_0x1c6c91&&_0x1c6c91[_0x5c683c(0xf3)](_0x587fc7[_0x5c683c(0x10b)]['id'])?{..._0x587fc7,'attrs':{..._0x587fc7[_0x5c683c(0x10b)],'id':_0x587fc7[_0x5c683c(0x10b)]['id']+_0x12daad[_0x5c683c(0x140)]}}:_0x587fc7)}:_0x30635a;}function Oe(){const _0xe371e=_0x562b47;return Math['random']()[_0xe371e(0x111)](0x24)[_0xe371e(0x13d)](0x2,0x8);}k['displayName']=_0x562b47(0xd7);const we={'tag':'svg','attrs':{'xmlns':_0x562b47(0x132),'fill':_0x562b47(0x156),'viewBox':_0x562b47(0x13f),'width':_0x562b47(0x10a),'height':'1em'},'children':[{'tag':_0x562b47(0x149),'attrs':{'fill':_0x562b47(0xf6),'d':_0x562b47(0x13b)}},{'tag':'path','attrs':{'fill':_0x562b47(0xf6),'d':_0x562b47(0x150),'fillRule':'evenodd','clipRule':_0x562b47(0xcd)}}]},W=_0x424bb6(function(_0x2bcc6a,_0x58b487){const _0x2f598f=_0x562b47;return _0x4a7a97(k,Object[_0x2f598f(0xf9)]({},_0x2bcc6a,{'id':_0x2f598f(0x125),'ref':_0x58b487,'icon':we}));});W['displayName']=_0x562b47(0xdd);class L extends _0x2e50d0{constructor(){const _0x562679=_0x562b47;super(...arguments),u(this,_0x562679(0xe4),new Set()),u(this,_0x562679(0x115),new Set());}[_0x562b47(0x10c)](_0x2c2786){const _0x2f1f1b=_0x562b47;return this[_0x2f1f1b(0xe4)]['add'](_0x2c2786),_0x4271be(()=>this[_0x2f1f1b(0xe4)][_0x2f1f1b(0x12e)](_0x2c2786));}[_0x562b47(0x118)](_0x490737){const _0x33b0af=_0x562b47;return this[_0x33b0af(0x115)]['add'](_0x490737),_0x4271be(()=>this['_reporters'][_0x33b0af(0x12e)](_0x490737));}[_0x562b47(0xea)](_0x16195f){const _0x3ebe52=_0x562b47;return this[_0x3ebe52(0xe4)][_0x3ebe52(0xd8)](_0x16195f);}['getInitialStates'](_0x239faf){const _0x31ba11=_0x562b47;return Array[_0x31ba11(0x11e)](this[_0x31ba11(0x115)])['map'](_0x2e959e=>_0x2e959e(_0x239faf));}}var Ne=Object[_0x562b47(0xe8)],Y=(_0x447188,_0x169ee5,_0x1f6a5a,_0x138d9c)=>{const _0x48dd42=_0x562b47;for(var _0x5f0651=_0x138d9c>0x1?void 0x0:_0x138d9c?Ne(_0x169ee5,_0x1f6a5a):_0x169ee5,_0x539646=_0x447188[_0x48dd42(0xf0)]-0x1,_0x1854e1;_0x539646>=0x0;_0x539646--)(_0x1854e1=_0x447188[_0x539646])&&(_0x5f0651=_0x1854e1(_0x5f0651)||_0x5f0651);return _0x5f0651;},_=(_0x443ad9,_0x3b2c40)=>(_0x47b132,_0x14aaa2)=>_0x3b2c40(_0x47b132,_0x14aaa2,_0x443ad9);let S=class extends _0x51a549{constructor(_0x562fae,_0x541c70,_0x2ce976){const _0x1633b0=_0x562b47;super(),u(this,_0x1633b0(0x158),new Map()),(this[_0x1633b0(0xc3)]=_0x562fae,this[_0x1633b0(0x103)]=_0x541c70,this[_0x1633b0(0xe0)]=_0x2ce976,this[_0x1633b0(0x13a)]());}async[_0x562b47(0xcc)](_0x36b81f){const _0x4e84d8=_0x562b47;return this[_0x4e84d8(0x158)][_0x4e84d8(0xd8)](_0x36b81f)||await this['_startLiveShareCoordinator'](_0x36b81f),this['_entities'][_0x4e84d8(0xe3)](_0x36b81f);}[_0x562b47(0x162)](_0x46eade){const _0x3f0b84=_0x562b47;var _0x2c8302;return(_0x2c8302=this[_0x3f0b84(0x158)]['get'](_0x46eade))!=null?_0x2c8302:null;}[_0x562b47(0x13a)](){const _0x240901=_0x562b47;this[_0x240901(0xc3)][_0x240901(0x11f)](_0x51802f[_0x240901(0xda)])[_0x240901(0x137)](_0x37e8e1(this['dispose$']))[_0x240901(0xec)](async _0x1813e4=>{const _0x1bce96=_0x240901,_0x49fdf0=_0x1813e4[_0x1bce96(0xc4)]();this[_0x1bce96(0x158)]['has'](_0x49fdf0)||this[_0x1bce96(0xdb)](_0x49fdf0);}),this[_0x240901(0xc3)][_0x240901(0x12c)](_0x51802f[_0x240901(0xda)])[_0x240901(0x137)](_0x37e8e1(this[_0x240901(0x159)]))[_0x240901(0xec)](_0x29d9f4=>{const _0x18e5ab=_0x240901,_0x31bdcb=_0x29d9f4[_0x18e5ab(0xc4)](),_0x151a8c=this[_0x18e5ab(0x158)][_0x18e5ab(0xe3)](_0x31bdcb);_0x151a8c==null||_0x151a8c[_0x18e5ab(0x129)]();});}async[_0x562b47(0xdb)](_0x208b9b){const _0x1af5d8=_0x562b47,_0x2166f3=await this['_collabSessionService'][_0x1af5d8(0x166)](_0x208b9b),_0x70e399=this[_0x1af5d8(0x103)]['createInstance'](N,_0x208b9b,_0x2166f3);return _0x70e399[_0x1af5d8(0xca)](),this[_0x1af5d8(0x158)][_0x1af5d8(0x142)](_0x208b9b,_0x70e399),_0x70e399;}};S=Y([_(0x0,_0x187255),_(0x1,_0x264acd(_0x126a5b)),_(0x2,_0x264acd(_0x4baae7))],S);var c=(_0x51fd21=>(_0x51fd21[_0x562b47(0xe5)]=_0x562b47(0xd3),_0x51fd21[_0x562b47(0x117)]=_0x562b47(0x14a),_0x51fd21['FOLLOWING']='following',_0x51fd21['NOT_FOLLOWING']='not-following',_0x51fd21[_0x562b47(0x141)]=_0x562b47(0x101),_0x51fd21))(c||{});const Ce='SAME_OPERATION_SHARE_INTERVAL',De=0xc8;let N=class extends _0x51a549{constructor(_0x4335c1,_0x880e61,_0x33e4d2,_0x3837f7,_0x2a4e6f){const _0x5f297d=_0x562b47;super(),u(this,'_status$',new _0x5af6da(_0x5f297d(0x14a))),u(this,_0x5f297d(0xff),this[_0x5f297d(0x114)][_0x5f297d(0x100)]()),u(this,_0x5f297d(0x13a),!0x1),u(this,_0x5f297d(0x11d),null),u(this,_0x5f297d(0xfc),null),(this['_unitID']=_0x4335c1,this[_0x5f297d(0x154)]=_0x880e61,this[_0x5f297d(0xdf)]=_0x33e4d2,this[_0x5f297d(0x13c)]=_0x3837f7,this[_0x5f297d(0xc5)]=_0x2a4e6f);}get[_0x562b47(0x122)](){const _0x513979=_0x562b47;return this[_0x513979(0x114)][_0x513979(0x14f)]();}[_0x562b47(0x129)](){const _0x485651=_0x562b47;var _0x527930;(_0x527930=this['_commandDisposable'])==null||_0x527930[_0x485651(0x129)](),this[_0x485651(0x114)][_0x485651(0x130)](_0x485651(0x14a)),this['_status$'][_0x485651(0x151)]();}['getStatus'](){return this['_status'];}[_0x562b47(0xca)](){const _0x567d7e=_0x562b47;this[_0x567d7e(0x13a)]||(this['_init']=!0x0,this[_0x567d7e(0x154)][_0x567d7e(0x119)]['pipe'](_0x37e8e1(this[_0x567d7e(0x159)]))[_0x567d7e(0xec)](_0x20fbf8=>{const _0x41e774=_0x567d7e;switch(_0x20fbf8){case _0x50ed84[_0x41e774(0xe5)]:this[_0x41e774(0x108)]();break;case _0x50ed84[_0x41e774(0x153)]:this['_handleOnline']();break;}}),this[_0x567d7e(0x154)]['event$'][_0x567d7e(0x137)](_0x37e8e1(this[_0x567d7e(0x159)]))[_0x567d7e(0xec)](_0x29231e=>{const _0x3b50fa=_0x567d7e,{eventID:_0x3e0843}=_0x29231e;switch(_0x3e0843){case _0x301d58[_0x3b50fa(0x144)]:this[_0x3b50fa(0x161)](_0x29231e);break;case _0x301d58[_0x3b50fa(0xce)]:this[_0x3b50fa(0x14b)](_0x29231e);break;case _0x301d58[_0x3b50fa(0x120)]:this[_0x3b50fa(0x163)]();break;case _0x301d58[_0x3b50fa(0x13e)]:this['_handleNewChangeSets'](_0x29231e);break;}}));}[_0x562b47(0x146)](){const _0x525b0f=_0x562b47;this[_0x525b0f(0x154)][_0x525b0f(0xf7)]({'eventID':_0x301d58['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x525b0f(0xde)],'userID':this[_0x525b0f(0x154)][_0x525b0f(0xef)]()}},this[_0x525b0f(0xde)]);}[_0x562b47(0x14d)](){const _0xa82d6f=_0x562b47;this[_0xa82d6f(0x122)]===_0xa82d6f(0x101)&&(this['_status$']['next']('idle'),this[_0xa82d6f(0x154)]['send']({'eventID':_0x301d58['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0xa82d6f(0xde)]}},this[_0xa82d6f(0xde)]));}[_0x562b47(0x10e)](){const _0x1c3b84=_0x562b47;this['_status']===_0x1c3b84(0x124)&&(this['_status$']['next'](_0x1c3b84(0x133)),this['_startFollowing']());}['stopFollowing'](){const _0x5bb57a=_0x562b47;this[_0x5bb57a(0x122)]==='following'&&this[_0x5bb57a(0xd0)]();}['_handleNewHost'](_0x4b55fc){const _0x5b0860=_0x562b47,{presenter:_0x1290a9}=_0x4b55fc[_0x5b0860(0x135)],_0x140afc=this[_0x5b0860(0x154)][_0x5b0860(0xef)]();this[_0x5b0860(0xfc)]=_0x1290a9,_0x1290a9===_0x140afc?(this[_0x5b0860(0xd0)](),this[_0x5b0860(0x127)]()):this[_0x5b0860(0x122)]!==_0x5b0860(0x124)&&(this[_0x5b0860(0x15f)](),this['_startFollowing']());}['_fetchOperations'](){const _0x16bd35=_0x562b47,_0x5da9bb={'eventID':_0x301d58['LIVESHARE_FETCH_OPERATIONS']};this[_0x16bd35(0x154)]['send'](_0x5da9bb,this['_unitID']);}[_0x562b47(0x163)](){const _0x5acf28=_0x562b47;this[_0x5acf28(0xfc)]=null,this[_0x5acf28(0x122)]!=='presenting'&&this['_beIdle']();}[_0x562b47(0x147)](_0x1adea4){const _0x906164=_0x562b47;if(this[_0x906164(0x122)]===_0x906164(0x133)&&this[_0x906164(0xfc)]===_0x1adea4[_0x906164(0x135)]['memberID']){const _0x56ad84=_0x19d1a6(_0x1adea4[_0x906164(0x135)])['mutations'][_0x906164(0xd9)]()[_0x906164(0x15e)](_0x2c6158=>_0x2c6158['id']===_0x34d039['id']);if(_0x56ad84){const _0x1cef96=_0x56ad84['params']['unitId'],_0x1b8c4e=_0x56ad84[_0x906164(0x11b)]['sheet']['id'];setTimeout(()=>{const _0x56a571=_0x906164;this[_0x56a571(0xc5)][_0x56a571(0xe7)](_0x56bd43['id'],{'unitId':_0x1cef96,'subUnitId':_0x1b8c4e},{'fromCollab':!0x0});});}}}[_0x562b47(0x127)](){const _0x4d569f=_0x562b47;this[_0x4d569f(0x114)][_0x4d569f(0x130)](_0x4d569f(0x101));const _0x5925f2=new Map(),_0x3eac62=this[_0x4d569f(0x11d)]=new _0x43222f();_0x3eac62[_0x4d569f(0xcf)](_0x4271be(()=>{const _0x3d6ec6=_0x4d569f;_0x5925f2[_0x3d6ec6(0x105)](_0x47fc61=>_0x47fc61['complete']()),_0x5925f2['clear']();})),_0x3eac62[_0x4d569f(0xcf)](this['_commandService'][_0x4d569f(0x112)](_0x4f10df=>{const _0x37b9e2=_0x4d569f;var _0x367a07;if(_0x4f10df[_0x37b9e2(0x102)]!==_0x33f042[_0x37b9e2(0x138)]||!this[_0x37b9e2(0x13c)][_0x37b9e2(0xea)](_0x4f10df['id']))return;const {id:_0x112488}=_0x4f10df;let _0x22c586;_0x5925f2[_0x37b9e2(0xd8)](_0x112488)?_0x22c586=_0x5925f2[_0x37b9e2(0xe3)](_0x112488):(_0x22c586=new _0x8db225(),_0x5925f2[_0x37b9e2(0x142)](_0x112488,_0x22c586),_0x22c586[_0x37b9e2(0x137)](_0x225f90((_0x367a07=this[_0x37b9e2(0xdf)][_0x37b9e2(0x12d)](Ce))!=null?_0x367a07:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x37b9e2(0xec)](_0x4d333a=>{const _0x4d27f1=_0x37b9e2;this[_0x4d27f1(0x154)]['send']({'eventID':_0x301d58[_0x4d27f1(0xce)],'data':{'unitID':this[_0x4d27f1(0xde)],'operations':{[_0x4d333a['id']]:{'id':_0x4d333a['id'],'params':JSON[_0x4d27f1(0xd6)](_0x4d333a['params'])}}}},this[_0x4d27f1(0xde)]);})),_0x22c586[_0x37b9e2(0x130)](_0x4f10df);})),this[_0x4d569f(0x13c)][_0x4d569f(0xe6)](this['_unitID'])['forEach'](_0x323d5a=>this[_0x4d569f(0x154)][_0x4d569f(0xf7)]({'eventID':_0x301d58[_0x4d569f(0xce)],'data':{'unitID':this[_0x4d569f(0xde)],'operations':{[_0x323d5a['id']]:{'id':_0x323d5a['id'],'params':JSON[_0x4d569f(0xd6)](_0x323d5a[_0x4d569f(0x11b)])}}}},this[_0x4d569f(0xde)]));}['_stopPresenting'](){const _0x36c595=_0x562b47;var _0x43ce6d;this[_0x36c595(0x114)]['next']('idle'),(_0x43ce6d=this['_commandDisposable'])==null||_0x43ce6d[_0x36c595(0x129)](),this['_commandDisposable']=null;}[_0x562b47(0xd5)](){const _0x4748b7=_0x562b47;var _0x376b01;(_0x376b01=this[_0x4748b7(0x11d)])==null||_0x376b01[_0x4748b7(0x129)](),this['_status$'][_0x4748b7(0x130)](_0x4748b7(0x133));}[_0x562b47(0xf4)](){const _0x4c49c9=_0x562b47;var _0xa33ed8;this['_status$'][_0x4c49c9(0x130)]('idle'),(_0xa33ed8=this[_0x4c49c9(0x11d)])==null||_0xa33ed8[_0x4c49c9(0x129)](),this[_0x4c49c9(0x11d)]=null;}[_0x562b47(0xd0)](){const _0x356afa=_0x562b47;var _0x3b0322;this[_0x356afa(0x114)][_0x356afa(0x130)]('not-following'),(_0x3b0322=this[_0x356afa(0x11d)])==null||_0x3b0322[_0x356afa(0x129)]();}[_0x562b47(0x14b)](_0x1eaf46){const _0x1bf23c=_0x562b47;if([_0x1bf23c(0x101),_0x1bf23c(0x124),_0x1bf23c(0xd3)][_0x1bf23c(0xf3)](this[_0x1bf23c(0x122)])||!_0x1eaf46[_0x1bf23c(0x135)][_0x1bf23c(0xf5)]||_0x1eaf46[_0x1bf23c(0x135)][_0x1bf23c(0xf5)]===this['_collabSession']['getMemberID']())return;this[_0x1bf23c(0x122)]===_0x1bf23c(0x14a)&&this[_0x1bf23c(0xd5)]();const _0x3e2d4e=_0x1eaf46[_0x1bf23c(0x135)][_0x1bf23c(0xfe)];Object[_0x1bf23c(0x167)](_0x3e2d4e)[_0x1bf23c(0x105)](_0x367c4c=>{const _0x5111c2=_0x1bf23c;this['_commandService'][_0x5111c2(0xe7)](_0x367c4c['id'],_0x367c4c['params']?JSON[_0x5111c2(0x12f)](_0x367c4c[_0x5111c2(0x11b)]):null,{'fromCollab':!0x0});});}[_0x562b47(0x108)](){const _0x3fb4bc=_0x562b47;var _0x25d51f;this[_0x3fb4bc(0x114)][_0x3fb4bc(0x130)](_0x3fb4bc(0xd3)),(_0x25d51f=this['_commandDisposable'])==null||_0x25d51f[_0x3fb4bc(0x129)]();}[_0x562b47(0x165)](){const _0x2125bc=_0x562b47;this[_0x2125bc(0x114)][_0x2125bc(0x130)](_0x2125bc(0x14a)),this[_0x2125bc(0xf8)]();}};N=Y([_(0x2,_0x974748),_(0x3,_0x264acd(L)),_(0x4,_0x105090)],N);function Le(){const _0x4a6c4b=_0x562b47,_0x46f034=_0x38dad9(S),_0x4b5495=_0x38dad9(_0x187255),_0x357f80=_0x14a93c(()=>_0x4b5495[_0x4a6c4b(0x12b)](_0x51802f[_0x4a6c4b(0xda)]),void 0x0,!0x1,[]),[_0x321261,_0x2b483d]=_0x555c58(null),[_0x39da3e,_0x487c08]=_0x555c58(c[_0x4a6c4b(0x117)]),_0x5c9aba=_0x2dba5e(null);return _0x22e887(()=>(_0x357f80&&_0x46f034[_0x4a6c4b(0xcc)](_0x357f80[_0x4a6c4b(0xc4)]())[_0x4a6c4b(0x143)](_0x58b38f=>{const _0x41f29a=_0x4a6c4b;_0x2b483d(_0x58b38f),_0x5c9aba['current']=_0x58b38f[_0x41f29a(0xff)][_0x41f29a(0xec)](_0x3a5734=>{_0x487c08(_0x3a5734);});}),()=>{const _0x5053c7=_0x4a6c4b;var _0x4e470b;(_0x4e470b=_0x5c9aba[_0x5053c7(0xe2)])==null||_0x4e470b[_0x5053c7(0x10d)](),_0x5c9aba['current']=null;}),[_0x357f80,_0x46f034]),_0x321261?_0x33bb7b(_0x5079de,{'align':_0x4a6c4b(0x110),'disabled':_0x39da3e===c[_0x4a6c4b(0xe5)],'className':_0x4a6c4b(0xf1),'overlay':_0x33bb7b(Re,{'status':_0x39da3e,'coordinator':_0x321261}),'children':_0x33bb7b(_0x4a6c4b(0x15b),{'className':_0x54f579(_0x4a6c4b(0xf2),{'univer-cursor-not-allowed':_0x39da3e===c[_0x4a6c4b(0xe5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x39da3e!==c[_0x4a6c4b(0xe5)]}),'type':_0x4a6c4b(0x15b),'children':_0x33bb7b(W,{'className':_0x4a6c4b(0x134)})})}):null;}function Re(_0xcd5400){const _0x5cb8f9=_0x562b47,{status:_0xf6ff60,coordinator:_0x103430}=_0xcd5400;switch(_0xf6ff60){case c[_0x5cb8f9(0x117)]:return _0x33bb7b($e,{'coordinator':_0x103430});case c[_0x5cb8f9(0x160)]:return _0x33bb7b(xe,{'coordinator':_0x103430});case c[_0x5cb8f9(0xed)]:return _0x33bb7b(Pe,{'coordinator':_0x103430});case c[_0x5cb8f9(0xe5)]:return _0x33bb7b(Te,{});case c[_0x5cb8f9(0x141)]:return _0x33bb7b(Ae,{'coordinator':_0x103430});default:return null;}}function $e(_0xfe284e){const _0x49706d=_0x562b47,{coordinator:_0x41fae0}=_0xfe284e;return _0x4dcdb8(_0x967f7f,{'children':[_0x33bb7b(_0x49706d(0x11c),{'className':_0x49706d(0x11a),'children':_0x49706d(0xfd)}),_0x33bb7b(_0x468343,{'onClick':()=>_0x41fae0[_0x49706d(0x146)](),'children':'Start'})]});}function xe(_0xea0781){const _0x59e65e=_0x562b47,{coordinator:_0x3077cf}=_0xea0781;return _0x4dcdb8(_0x967f7f,{'children':[_0x33bb7b(_0x59e65e(0x11c),{'className':_0x59e65e(0x11a),'children':_0x59e65e(0x123)}),_0x33bb7b(_0x468343,{'onClick':()=>_0x3077cf[_0x59e65e(0xd4)](),'children':'Stop\x20following'})]});}function Pe(_0x17c015){const _0x173e7b=_0x562b47,{coordinator:_0x5e2ed2}=_0x17c015;return _0x4dcdb8(_0x967f7f,{'children':[_0x33bb7b('div',{'className':_0x173e7b(0x11a),'children':_0x173e7b(0x107)}),_0x33bb7b(_0x468343,{'variant':_0x173e7b(0x116),'onClick':()=>_0x5e2ed2[_0x173e7b(0x10e)](),'children':'Start\x20following'})]});}function _0x465d(_0x3d6d8f,_0x39997c){_0x3d6d8f=_0x3d6d8f-0xc1;const _0xad37bf=_0xad37();let _0x465d9f=_0xad37bf[_0x3d6d8f];return _0x465d9f;}function Ae(_0x338c7b){const _0xca71c4=_0x562b47,{coordinator:_0x1aef68}=_0x338c7b;return _0x4dcdb8(_0x967f7f,{'children':[_0x33bb7b(_0xca71c4(0x11c),{'className':_0xca71c4(0x11a),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x33bb7b(_0x468343,{'variant':_0xca71c4(0x104),'onClick':()=>_0x1aef68[_0xca71c4(0x14d)](),'children':_0xca71c4(0xc8)})]});}function Te(){const _0x371d4c=_0x562b47;return _0x33bb7b(_0x967f7f,{'children':_0x371d4c(0x157)});}var Fe=Object[_0x562b47(0xe8)],He=(_0x3efd5d,_0x30871a,_0x33d905,_0x4119a7)=>{for(var _0x47ffec=_0x4119a7>0x1?void 0x0:_0x4119a7?Fe(_0x30871a,_0x33d905):_0x30871a,_0x1b80fe=_0x3efd5d['length']-0x1,_0x213264;_0x1b80fe>=0x0;_0x1b80fe--)(_0x213264=_0x3efd5d[_0x1b80fe])&&(_0x47ffec=_0x213264(_0x47ffec)||_0x47ffec);return _0x47ffec;},A=(_0x4c9b00,_0x3defb5)=>(_0x434d3a,_0x582c0c)=>_0x3defb5(_0x434d3a,_0x582c0c,_0x4c9b00);let m=class extends _0x2e50d0{constructor(_0x33f367,_0x44a88a){const _0x4b3204=_0x562b47;super(),this[_0x4b3204(0x103)]=_0x33f367,this[_0x4b3204(0x131)]=_0x44a88a,this['_mountLiveShare']();}['_mountLiveShare'](){const _0x4db92a=_0x562b47;this[_0x4db92a(0xcb)](this[_0x4db92a(0x131)][_0x4db92a(0x106)](_0x2de438['HEADER_MENU'],()=>_0x183c2b(Le,this[_0x4db92a(0x103)])));}};m=He([A(0x0,_0x264acd(_0x126a5b)),A(0x1,_0x28a6aa)],m);const ye='live-share.config',T={};var Ue=Object[_0x562b47(0xe8)],Ve=(_0x5ca6a7,_0x2b3f17,_0x496a25,_0x405d8c)=>{const _0x56bbb8=_0x562b47;for(var _0x5a0f03=_0x405d8c>0x1?void 0x0:_0x405d8c?Ue(_0x2b3f17,_0x496a25):_0x2b3f17,_0x33f87f=_0x5ca6a7[_0x56bbb8(0xf0)]-0x1,_0x110241;_0x33f87f>=0x0;_0x33f87f--)(_0x110241=_0x5ca6a7[_0x33f87f])&&(_0x5a0f03=_0x110241(_0x5a0f03)||_0x5a0f03);return _0x5a0f03;},je=(_0x368bdf,_0x5f58f2)=>(_0x4901b3,_0x4bfac9)=>_0x5f58f2(_0x4901b3,_0x4bfac9,_0x368bdf);let I=class extends _0x2e50d0{constructor(_0xf15733){const _0x3e77f3=_0x562b47;super(),this[_0x3e77f3(0x13c)]=_0xf15733,this[_0x3e77f3(0x13a)]();}['_init'](){const _0x29fecc=_0x562b47;[_0x4e0176['id'],_0xdcd218['id'],_0x56bd43['id']][_0x29fecc(0x105)](_0x9f8534=>{const _0x15a010=_0x29fecc;this[_0x15a010(0xcb)](this[_0x15a010(0x13c)][_0x15a010(0x10c)](_0x9f8534));});}};I=Ve([je(0x0,_0x264acd(L))],I);var Me=Object[_0x562b47(0xe9)],ke=Object[_0x562b47(0xe8)],Ge=(_0x478195,_0x55241a,_0x3a2b8a)=>_0x55241a in _0x478195?Me(_0x478195,_0x55241a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a2b8a}):_0x478195[_0x55241a]=_0x3a2b8a,We=(_0x35fe86,_0x39fabc,_0x1c7658,_0x12c030)=>{const _0x23fed1=_0x562b47;for(var _0x46c4ee=_0x12c030>0x1?void 0x0:_0x12c030?ke(_0x39fabc,_0x1c7658):_0x39fabc,_0x425e53=_0x35fe86[_0x23fed1(0xf0)]-0x1,_0xcbbbcc;_0x425e53>=0x0;_0x425e53--)(_0xcbbbcc=_0x35fe86[_0x425e53])&&(_0x46c4ee=_0xcbbbcc(_0x46c4ee)||_0x46c4ee);return _0x46c4ee;},F=(_0xf7d262,_0x5c51ae)=>(_0x37ffa7,_0x22314d)=>_0x5c51ae(_0x37ffa7,_0x22314d,_0xf7d262),B=(_0x281cd1,_0x57b597,_0x5bc9c6)=>Ge(_0x281cd1,typeof _0x57b597!=_0x562b47(0x10f)?_0x57b597+'':_0x57b597,_0x5bc9c6);const Ye=_0x562b47(0xc2);let b=class extends _0x1130c7{constructor(_0x32209a=T,_0x3c6ecf,_0x4cae29){const _0x579846=_0x562b47;super(),this[_0x579846(0x14e)]=_0x32209a,this['_injector']=_0x3c6ecf,this[_0x579846(0xdf)]=_0x4cae29;const {..._0x1bd3dc}=_0xb0c13e({},T,this[_0x579846(0x14e)]);this[_0x579846(0xdf)]['setConfig'](ye,_0x1bd3dc);}[_0x562b47(0xc9)](){const _0x5c9daf=_0x562b47;_0x333ef5(this['_injector'],_0x3d1a15([[L],[S],[I],[m]],this['_config'][_0x5c9daf(0x126)])),_0x1c3957(this[_0x5c9daf(0x103)],[[I]]);}[_0x562b47(0xfa)](){const _0xbd4a61=_0x562b47;_0x1c3957(this[_0xbd4a61(0x103)],[[m]]);}};B(b,_0x562b47(0x102),_0x51802f[_0x562b47(0x15d)]),B(b,'pluginName',Ye),b=We([_0x411c47(_0x4e7d3f),F(0x1,_0x264acd(_0x126a5b)),F(0x2,_0x974748)],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 _0x203051=_0x467a;(function(_0x528687,_0xc4d998){const _0x1b4ca4=_0x467a,_0x2cd89c=_0x528687();while(!![]){try{const _0x48f0d0=parseInt(_0x1b4ca4(0x20d))/0x1*(-parseInt(_0x1b4ca4(0x27e))/0x2)+-parseInt(_0x1b4ca4(0x253))/0x3+parseInt(_0x1b4ca4(0x23e))/0x4*(-parseInt(_0x1b4ca4(0x240))/0x5)+parseInt(_0x1b4ca4(0x238))/0x6+-parseInt(_0x1b4ca4(0x1e1))/0x7+parseInt(_0x1b4ca4(0x1e7))/0x8+-parseInt(_0x1b4ca4(0x24e))/0x9*(-parseInt(_0x1b4ca4(0x227))/0xa);if(_0x48f0d0===_0xc4d998)break;else _0x2cd89c['push'](_0x2cd89c['shift']());}catch(_0x4534cd){_0x2cd89c['push'](_0x2cd89c['shift']());}}}(_0x53e2,0x6fbbb));var J=Object[_0x203051(0x1ed)],K=(_0x3a4f01,_0xc9536b,_0x6cd13a)=>_0xc9536b in _0x3a4f01?J(_0x3a4f01,_0xc9536b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x6cd13a}):_0x3a4f01[_0xc9536b]=_0x6cd13a,u=(_0x3a0c7a,_0x4b7de3,_0x4d807c)=>K(_0x3a0c7a,typeof _0x4b7de3!=_0x203051(0x203)?_0x4b7de3+'':_0x4b7de3,_0x4d807c);import{Disposable as _0x2fa88b,toDisposable as _0x4d0dd4,IUniverInstanceService as _0xfb97b7,Inject as _0x41344e,Injector as _0x247233,IConfigService as _0x59bacf,ICommandService as _0x16bfa6,RxDisposable as _0x319545,UniverInstanceType as _0xf4b6a6,DisposableCollection as _0x32a659,CommandType as _0x37b1fc,DependentOn as _0x352a09,Plugin as _0x2461be,merge as _0xbbecdb,registerDependencies as _0x3077e0,mergeOverrideWithDependencies as _0x1e8f39,touchDependencies as _0x207751}from'@univerjs/core';import{useDependency as _0x445413,useObservable as _0x3f7cfd,IUIPartsService as _0x1f7073,BuiltInUIPart as _0x2bf13e,connectInjector as _0x2b9143}from'@univerjs/ui';import{jsx as _0x4cbb7b,jsxs as _0xbc9c89,Fragment as _0x5c324a}from'react/jsx-runtime';import{Dropdown as _0x356893,clsx as _0x350e56,Button as _0x1aa64c}from'@univerjs/design';import{useRef as _0x518592,createElement as _0x54dd1c,forwardRef as _0x3d1652,useState as _0x1d0405,useEffect as _0x558e55}from'react';import{CollaborationEvent as _0x378720,parseProtocolChangeset as _0xb845cb}from'@univerjs-pro/collaboration';function _0x467a(_0x26cba8,_0x572d7e){_0x26cba8=_0x26cba8-0x1e0;const _0x53e246=_0x53e2();let _0x467a51=_0x53e246[_0x26cba8];return _0x467a51;}import{CollaborationSessionService as _0x202fa1,SessionStatus as _0x61eb11,UniverCollaborationClientPlugin as _0x5c1f28}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x126909,SetWorksheetActiveOperation as _0x38d630}from'@univerjs/sheets';import{BehaviorSubject as _0xf60712,Subject as _0x3f6d0b}from'rxjs';import{takeUntil as _0xccce48,throttleTime as _0x471bc5}from'rxjs/operators';import{SetZoomRatioOperation as _0x4a5670,SetScrollOperation as _0x23916f}from'@univerjs/sheets-ui';function k({ref:_0x39378a,..._0xbc3b37}){const _0xb74e72=_0x203051,{icon:_0x107141,id:_0x154d72,className:_0x9e8f43,extend:_0x3d2e92,..._0xe4afc6}=_0xbc3b37,_0x1cb7a3=(_0xb74e72(0x26f)+_0x154d72+'\x20'+(_0x9e8f43||''))[_0xb74e72(0x24c)](),_0x42c5b3=_0x518592('_'+Oe());return G(_0x107141,''+_0x154d72,{'defIds':_0x107141[_0xb74e72(0x1f8)],'idSuffix':_0x42c5b3[_0xb74e72(0x246)]},{'ref':_0x39378a,'className':_0x1cb7a3,..._0xe4afc6},_0x3d2e92);}function G(_0x2ef2d0,_0x16e97f,_0x2cd959,_0x506b97,_0x3d1f9f){const _0x4597f1=_0x203051;return _0x54dd1c(_0x2ef2d0[_0x4597f1(0x201)],{'key':_0x16e97f,...be(_0x2ef2d0,_0x2cd959,_0x3d1f9f),..._0x506b97},(Ee(_0x2ef2d0,_0x2cd959)[_0x4597f1(0x1e4)]||[])[_0x4597f1(0x226)]((_0x1e44a6,_0x37d13d)=>G(_0x1e44a6,_0x16e97f+'-'+_0x2ef2d0[_0x4597f1(0x201)]+'-'+_0x37d13d,_0x2cd959,void 0x0,_0x3d1f9f)));}function be(_0x52aa23,_0x4ef3a7,_0x421fcb){const _0x56d54a=_0x203051,_0x157aff={..._0x52aa23[_0x56d54a(0x243)]};_0x421fcb!=null&&_0x421fcb[_0x56d54a(0x1ee)]&&_0x157aff[_0x56d54a(0x279)]==='colorChannel1'&&(_0x157aff[_0x56d54a(0x279)]=_0x421fcb[_0x56d54a(0x1ee)]),_0x52aa23[_0x56d54a(0x201)]===_0x56d54a(0x24f)&&_0x157aff['id']&&(_0x157aff['id']=_0x157aff['id']+_0x4ef3a7[_0x56d54a(0x22d)]),Object[_0x56d54a(0x1e3)](_0x157aff)['forEach'](([_0x140d42,_0x255006])=>{const _0x1806c9=_0x56d54a;_0x140d42===_0x1806c9(0x24f)&&typeof _0x255006=='string'&&(_0x157aff[_0x140d42]=_0x255006[_0x1806c9(0x202)](/url\(#(.*)\)/,_0x1806c9(0x25b)+_0x4ef3a7[_0x1806c9(0x22d)]+')'));});const {defIds:_0x1e5e20}=_0x4ef3a7;return!_0x1e5e20||_0x1e5e20['length']===0x0||(_0x52aa23[_0x56d54a(0x201)]==='use'&&_0x157aff[_0x56d54a(0x266)]&&(_0x157aff[_0x56d54a(0x266)]=_0x157aff[_0x56d54a(0x266)]+_0x4ef3a7['idSuffix']),Object[_0x56d54a(0x1e3)](_0x157aff)[_0x56d54a(0x242)](([_0x23d416,_0x564ed0])=>{const _0x4da982=_0x56d54a;typeof _0x564ed0==_0x4da982(0x1ec)&&(_0x157aff[_0x23d416]=_0x564ed0[_0x4da982(0x202)](/url\(#(.*)\)/,'url(#$1'+_0x4ef3a7[_0x4da982(0x22d)]+')'));})),_0x157aff;}function Ee(_0x1b288a,_0x508e17){const _0x251593=_0x203051;var _0x58dc02;const {defIds:_0x5a739c}=_0x508e17;return!_0x5a739c||_0x5a739c['length']===0x0?_0x1b288a:_0x1b288a[_0x251593(0x201)]===_0x251593(0x284)&&((_0x58dc02=_0x1b288a[_0x251593(0x1e4)])!=null&&_0x58dc02[_0x251593(0x270)])?{..._0x1b288a,'children':_0x1b288a[_0x251593(0x1e4)]['map'](_0x148afb=>typeof _0x148afb[_0x251593(0x243)]['id']=='string'&&_0x5a739c&&_0x5a739c[_0x251593(0x20f)](_0x148afb['attrs']['id'])?{..._0x148afb,'attrs':{..._0x148afb[_0x251593(0x243)],'id':_0x148afb['attrs']['id']+_0x508e17['idSuffix']}}:_0x148afb)}:_0x1b288a;}function Oe(){const _0x406498=_0x203051;return Math[_0x406498(0x21d)]()[_0x406498(0x206)](0x24)[_0x406498(0x21b)](0x2,0x8);}k[_0x203051(0x21e)]=_0x203051(0x21a);const we={'tag':_0x203051(0x249),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x203051(0x248),'width':_0x203051(0x274),'height':_0x203051(0x274)},'children':[{'tag':_0x203051(0x20b),'attrs':{'fill':_0x203051(0x23c),'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':'path','attrs':{'fill':'currentColor','d':_0x203051(0x258),'fillRule':_0x203051(0x26e),'clipRule':_0x203051(0x26e)}}]},W=_0x3d1652(function(_0x502405,_0x2620af){const _0x516cd2=_0x203051;return _0x54dd1c(k,Object[_0x516cd2(0x1f2)]({},_0x502405,{'id':'live-share-icon','ref':_0x2620af,'icon':we}));});W['displayName']=_0x203051(0x26c);class L extends _0x2fa88b{constructor(){const _0x1fc9fc=_0x203051;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x1fc9fc(0x22f),new Set());}[_0x203051(0x22a)](_0x580794){const _0x5ad8f0=_0x203051;return this[_0x5ad8f0(0x200)][_0x5ad8f0(0x263)](_0x580794),_0x4d0dd4(()=>this[_0x5ad8f0(0x200)][_0x5ad8f0(0x20a)](_0x580794));}[_0x203051(0x1f7)](_0x4ec929){const _0x554514=_0x203051;return this[_0x554514(0x22f)][_0x554514(0x263)](_0x4ec929),_0x4d0dd4(()=>this['_reporters'][_0x554514(0x20a)](_0x4ec929));}[_0x203051(0x256)](_0x54561d){const _0x21a75b=_0x203051;return this[_0x21a75b(0x200)][_0x21a75b(0x1f1)](_0x54561d);}[_0x203051(0x239)](_0xab4032){const _0x371423=_0x203051;return Array[_0x371423(0x236)](this[_0x371423(0x22f)])[_0x371423(0x226)](_0x589ba1=>_0x589ba1(_0xab4032));}}var Ne=Object[_0x203051(0x20e)],Y=(_0x34ef8c,_0x257cf9,_0x21e8ad,_0x21b265)=>{const _0x51a789=_0x203051;for(var _0x113753=_0x21b265>0x1?void 0x0:_0x21b265?Ne(_0x257cf9,_0x21e8ad):_0x257cf9,_0x41a0f7=_0x34ef8c[_0x51a789(0x270)]-0x1,_0x4508e4;_0x41a0f7>=0x0;_0x41a0f7--)(_0x4508e4=_0x34ef8c[_0x41a0f7])&&(_0x113753=_0x4508e4(_0x113753)||_0x113753);return _0x113753;},_=(_0x2b58e9,_0x44395f)=>(_0x49f7a9,_0x473407)=>_0x44395f(_0x49f7a9,_0x473407,_0x2b58e9);let S=class extends _0x319545{constructor(_0x3592b0,_0x5818e1,_0x5ddd67){const _0x1eaa54=_0x203051;super(),u(this,_0x1eaa54(0x1fe),new Map()),(this[_0x1eaa54(0x276)]=_0x3592b0,this[_0x1eaa54(0x27b)]=_0x5818e1,this[_0x1eaa54(0x1f5)]=_0x5ddd67,this[_0x1eaa54(0x280)]());}async[_0x203051(0x250)](_0x99b3e4){const _0x3f66d5=_0x203051;return this[_0x3f66d5(0x1fe)][_0x3f66d5(0x1f1)](_0x99b3e4)||await this['_startLiveShareCoordinator'](_0x99b3e4),this['_entities']['get'](_0x99b3e4);}[_0x203051(0x24d)](_0x4e428e){const _0x507789=_0x203051;var _0x23a415;return(_0x23a415=this[_0x507789(0x1fe)][_0x507789(0x1e0)](_0x4e428e))!=null?_0x23a415:null;}[_0x203051(0x280)](){const _0x204735=_0x203051;this[_0x204735(0x276)][_0x204735(0x283)](_0xf4b6a6[_0x204735(0x229)])[_0x204735(0x232)](_0xccce48(this[_0x204735(0x233)]))[_0x204735(0x1f4)](async _0x213e95=>{const _0x1851cf=_0x204735,_0x23f607=_0x213e95[_0x1851cf(0x25c)]();this[_0x1851cf(0x1fe)][_0x1851cf(0x1f1)](_0x23f607)||this[_0x1851cf(0x27c)](_0x23f607);}),this[_0x204735(0x276)][_0x204735(0x221)](_0xf4b6a6[_0x204735(0x229)])[_0x204735(0x232)](_0xccce48(this[_0x204735(0x233)]))[_0x204735(0x1f4)](_0x4eeff4=>{const _0x46231c=_0x204735,_0x3edf6c=_0x4eeff4['getUnitId'](),_0x1c1059=this[_0x46231c(0x1fe)]['get'](_0x3edf6c);_0x1c1059==null||_0x1c1059[_0x46231c(0x269)]();});}async[_0x203051(0x27c)](_0x35c2c7){const _0x2465fd=_0x203051,_0x2787e8=await this[_0x2465fd(0x1f5)][_0x2465fd(0x23f)](_0x35c2c7),_0x5b41a0=this['_injector']['createInstance'](N,_0x35c2c7,_0x2787e8);return _0x5b41a0[_0x2465fd(0x1eb)](),this[_0x2465fd(0x1fe)]['set'](_0x35c2c7,_0x5b41a0),_0x5b41a0;}};S=Y([_(0x0,_0xfb97b7),_(0x1,_0x41344e(_0x247233)),_(0x2,_0x41344e(_0x202fa1))],S);var c=(_0x3217b2=>(_0x3217b2['OFFLINE']=_0x203051(0x218),_0x3217b2[_0x203051(0x21f)]='idle',_0x3217b2[_0x203051(0x215)]=_0x203051(0x228),_0x3217b2[_0x203051(0x223)]=_0x203051(0x1ef),_0x3217b2[_0x203051(0x235)]='presenting',_0x3217b2))(c||{});const Ce=_0x203051(0x219),De=0xc8;let N=class extends _0x319545{constructor(_0x6c032f,_0x3f0c65,_0x52bbb6,_0x1d34dd,_0x57be91){const _0x20dfd0=_0x203051;super(),u(this,_0x20dfd0(0x1fb),new _0xf60712(_0x20dfd0(0x210))),u(this,_0x20dfd0(0x22b),this['_status$']['asObservable']()),u(this,_0x20dfd0(0x280),!0x1),u(this,_0x20dfd0(0x23b),null),u(this,_0x20dfd0(0x289),null),(this[_0x20dfd0(0x1f3)]=_0x6c032f,this[_0x20dfd0(0x212)]=_0x3f0c65,this[_0x20dfd0(0x264)]=_0x52bbb6,this[_0x20dfd0(0x222)]=_0x1d34dd,this['_commandService']=_0x57be91);}get['_status'](){const _0x519881=_0x203051;return this[_0x519881(0x1fb)][_0x519881(0x255)]();}[_0x203051(0x269)](){const _0x1d33cb=_0x203051;var _0x264949;(_0x264949=this[_0x1d33cb(0x23b)])==null||_0x264949['dispose'](),this[_0x1d33cb(0x1fb)][_0x1d33cb(0x26d)](_0x1d33cb(0x210)),this[_0x1d33cb(0x1fb)][_0x1d33cb(0x27d)]();}[_0x203051(0x27f)](){const _0x35b211=_0x203051;return this[_0x35b211(0x271)];}[_0x203051(0x1eb)](){const _0x997e05=_0x203051;this[_0x997e05(0x280)]||(this[_0x997e05(0x280)]=!0x0,this[_0x997e05(0x212)]['sessionStatus$'][_0x997e05(0x232)](_0xccce48(this[_0x997e05(0x233)]))['subscribe'](_0x4d3cda=>{const _0x2ccb1b=_0x997e05;switch(_0x4d3cda){case _0x61eb11[_0x2ccb1b(0x267)]:this[_0x2ccb1b(0x1fd)]();break;case _0x61eb11[_0x2ccb1b(0x241)]:this[_0x2ccb1b(0x251)]();break;}}),this[_0x997e05(0x212)][_0x997e05(0x23a)][_0x997e05(0x232)](_0xccce48(this[_0x997e05(0x233)]))[_0x997e05(0x1f4)](_0x18fd1f=>{const _0x31a252=_0x997e05,{eventID:_0x4a630f}=_0x18fd1f;switch(_0x4a630f){case _0x378720[_0x31a252(0x213)]:this[_0x31a252(0x245)](_0x18fd1f);break;case _0x378720[_0x31a252(0x287)]:this['_handleOperation'](_0x18fd1f);break;case _0x378720[_0x31a252(0x1e9)]:this[_0x31a252(0x1f9)]();break;case _0x378720['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x18fd1f);break;}}));}[_0x203051(0x252)](){const _0xdf0b86=_0x203051;this[_0xdf0b86(0x212)][_0xdf0b86(0x254)]({'eventID':_0x378720[_0xdf0b86(0x25e)],'data':{'unitID':this['_unitID'],'userID':this[_0xdf0b86(0x212)][_0xdf0b86(0x272)]()}},this['_unitID']);}[_0x203051(0x260)](){const _0x46223d=_0x203051;this[_0x46223d(0x271)]===_0x46223d(0x1e8)&&(this[_0x46223d(0x1fb)][_0x46223d(0x26d)]('idle'),this['_collabSession']['send']({'eventID':_0x378720[_0x46223d(0x1e9)],'data':{'unitID':this[_0x46223d(0x1f3)]}},this[_0x46223d(0x1f3)]));}[_0x203051(0x21c)](){const _0x3b6006=_0x203051;this[_0x3b6006(0x271)]===_0x3b6006(0x1ef)&&(this[_0x3b6006(0x1fb)][_0x3b6006(0x26d)]('following'),this[_0x3b6006(0x282)]());}[_0x203051(0x268)](){const _0xd742dc=_0x203051;this[_0xd742dc(0x271)]===_0xd742dc(0x228)&&this['_stopFollowing']();}[_0x203051(0x245)](_0x2f3ca8){const _0x5ad48f=_0x203051,{presenter:_0x5aba50}=_0x2f3ca8[_0x5ad48f(0x1ea)],_0x3ccae5=this[_0x5ad48f(0x212)]['getMemberID']();this[_0x5ad48f(0x289)]=_0x5aba50,_0x5aba50===_0x3ccae5?(this['_stopFollowing'](),this[_0x5ad48f(0x209)]()):this[_0x5ad48f(0x271)]!=='not-following'&&(this[_0x5ad48f(0x247)](),this[_0x5ad48f(0x282)]());}[_0x203051(0x224)](){const _0x5646a3=_0x203051,_0x3597b5={'eventID':_0x378720['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x5646a3(0x254)](_0x3597b5,this['_unitID']);}[_0x203051(0x1f9)](){const _0x5cfc49=_0x203051;this['_presenter']=null,this[_0x5cfc49(0x271)]!==_0x5cfc49(0x1e8)&&this['_beIdle']();}[_0x203051(0x277)](_0x3c2b7c){const _0x118e45=_0x203051;if(this[_0x118e45(0x271)]===_0x118e45(0x228)&&this[_0x118e45(0x289)]===_0x3c2b7c[_0x118e45(0x1ea)]['memberID']){const _0x55dad7=_0xb845cb(_0x3c2b7c['data'])[_0x118e45(0x204)][_0x118e45(0x261)]()[_0x118e45(0x27a)](_0x54e9c5=>_0x54e9c5['id']===_0x126909['id']);if(_0x55dad7){const _0x175866=_0x55dad7['params'][_0x118e45(0x262)],_0x3ba3cb=_0x55dad7[_0x118e45(0x265)][_0x118e45(0x275)]['id'];setTimeout(()=>{const _0x179aeb=_0x118e45;this['_commandService'][_0x179aeb(0x26a)](_0x38d630['id'],{'unitId':_0x175866,'subUnitId':_0x3ba3cb},{'fromCollab':!0x0});});}}}[_0x203051(0x209)](){const _0x5e8233=_0x203051;this[_0x5e8233(0x1fb)][_0x5e8233(0x26d)](_0x5e8233(0x1e8));const _0x107da6=new Map(),_0x1d477e=this['_commandDisposable']=new _0x32a659();_0x1d477e[_0x5e8233(0x263)](_0x4d0dd4(()=>{const _0x528587=_0x5e8233;_0x107da6[_0x528587(0x242)](_0x280608=>_0x280608[_0x528587(0x27d)]()),_0x107da6[_0x528587(0x230)]();})),_0x1d477e[_0x5e8233(0x263)](this[_0x5e8233(0x220)]['onCommandExecuted'](_0x5f1579=>{const _0x18529e=_0x5e8233;var _0x5806e0;if(_0x5f1579['type']!==_0x37b1fc[_0x18529e(0x20c)]||!this[_0x18529e(0x222)][_0x18529e(0x256)](_0x5f1579['id']))return;const {id:_0x41c47f}=_0x5f1579;let _0x22d9ef;_0x107da6[_0x18529e(0x1f1)](_0x41c47f)?_0x22d9ef=_0x107da6[_0x18529e(0x1e0)](_0x41c47f):(_0x22d9ef=new _0x3f6d0b(),_0x107da6[_0x18529e(0x237)](_0x41c47f,_0x22d9ef),_0x22d9ef[_0x18529e(0x232)](_0x471bc5((_0x5806e0=this[_0x18529e(0x264)][_0x18529e(0x1f0)](Ce))!=null?_0x5806e0:De,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x18529e(0x1f4)](_0x2b4d06=>{const _0xd1771e=_0x18529e;this[_0xd1771e(0x212)]['send']({'eventID':_0x378720[_0xd1771e(0x287)],'data':{'unitID':this[_0xd1771e(0x1f3)],'operations':{[_0x2b4d06['id']]:{'id':_0x2b4d06['id'],'params':JSON['stringify'](_0x2b4d06[_0xd1771e(0x265)])}}}},this[_0xd1771e(0x1f3)]);})),_0x22d9ef[_0x18529e(0x26d)](_0x5f1579);})),this[_0x5e8233(0x222)]['getInitialStates'](this[_0x5e8233(0x1f3)])[_0x5e8233(0x242)](_0x467fe4=>this[_0x5e8233(0x212)][_0x5e8233(0x254)]({'eventID':_0x378720[_0x5e8233(0x287)],'data':{'unitID':this[_0x5e8233(0x1f3)],'operations':{[_0x467fe4['id']]:{'id':_0x467fe4['id'],'params':JSON['stringify'](_0x467fe4[_0x5e8233(0x265)])}}}},this[_0x5e8233(0x1f3)]));}['_stopPresenting'](){const _0x2b7f69=_0x203051;var _0x5ed851;this[_0x2b7f69(0x1fb)][_0x2b7f69(0x26d)](_0x2b7f69(0x210)),(_0x5ed851=this[_0x2b7f69(0x23b)])==null||_0x5ed851[_0x2b7f69(0x269)](),this[_0x2b7f69(0x23b)]=null;}[_0x203051(0x282)](){const _0x15dee8=_0x203051;var _0x453604;(_0x453604=this[_0x15dee8(0x23b)])==null||_0x453604[_0x15dee8(0x269)](),this['_status$'][_0x15dee8(0x26d)](_0x15dee8(0x228));}[_0x203051(0x1ff)](){const _0x505683=_0x203051;var _0x382546;this[_0x505683(0x1fb)][_0x505683(0x26d)](_0x505683(0x210)),(_0x382546=this[_0x505683(0x23b)])==null||_0x382546['dispose'](),this['_commandDisposable']=null;}[_0x203051(0x26b)](){const _0x23b79a=_0x203051;var _0x290b16;this[_0x23b79a(0x1fb)]['next']('not-following'),(_0x290b16=this[_0x23b79a(0x23b)])==null||_0x290b16[_0x23b79a(0x269)]();}[_0x203051(0x207)](_0x2e5815){const _0x4cb2f9=_0x203051;if(['presenting',_0x4cb2f9(0x1ef),_0x4cb2f9(0x218)][_0x4cb2f9(0x20f)](this[_0x4cb2f9(0x271)])||!_0x2e5815[_0x4cb2f9(0x1ea)][_0x4cb2f9(0x273)]||_0x2e5815[_0x4cb2f9(0x1ea)][_0x4cb2f9(0x273)]===this[_0x4cb2f9(0x212)][_0x4cb2f9(0x272)]())return;this[_0x4cb2f9(0x271)]===_0x4cb2f9(0x210)&&this['_startFollowing']();const _0x49f5c1=_0x2e5815[_0x4cb2f9(0x1ea)][_0x4cb2f9(0x24a)];Object['values'](_0x49f5c1)[_0x4cb2f9(0x242)](_0x1daf99=>{const _0x5e07e0=_0x4cb2f9;this['_commandService'][_0x5e07e0(0x26a)](_0x1daf99['id'],_0x1daf99[_0x5e07e0(0x265)]?JSON['parse'](_0x1daf99[_0x5e07e0(0x265)]):null,{'fromCollab':!0x0});});}[_0x203051(0x1fd)](){const _0x594f46=_0x203051;var _0x527ba4;this['_status$'][_0x594f46(0x26d)](_0x594f46(0x218)),(_0x527ba4=this[_0x594f46(0x23b)])==null||_0x527ba4['dispose']();}[_0x203051(0x251)](){const _0x509c0f=_0x203051;this[_0x509c0f(0x1fb)][_0x509c0f(0x26d)]('idle'),this[_0x509c0f(0x224)]();}};N=Y([_(0x2,_0x59bacf),_(0x3,_0x41344e(L)),_(0x4,_0x16bfa6)],N);function Le(){const _0x5e929c=_0x203051,_0xe3db9f=_0x445413(S),_0x40b288=_0x445413(_0xfb97b7),_0xcfee85=_0x3f7cfd(()=>_0x40b288[_0x5e929c(0x205)](_0xf4b6a6[_0x5e929c(0x229)]),void 0x0,!0x1,[]),[_0x257578,_0x495be0]=_0x1d0405(null),[_0x3c3b08,_0x466324]=_0x1d0405(c[_0x5e929c(0x21f)]),_0x2815dd=_0x518592(null);return _0x558e55(()=>(_0xcfee85&&_0xe3db9f[_0x5e929c(0x250)](_0xcfee85['getUnitId']())[_0x5e929c(0x1e5)](_0x5f178b=>{const _0x2c2033=_0x5e929c;_0x495be0(_0x5f178b),_0x2815dd[_0x2c2033(0x246)]=_0x5f178b['status$'][_0x2c2033(0x1f4)](_0xc0edfc=>{_0x466324(_0xc0edfc);});}),()=>{const _0x5b481b=_0x5e929c;var _0x550bda;(_0x550bda=_0x2815dd[_0x5b481b(0x246)])==null||_0x550bda[_0x5b481b(0x288)](),_0x2815dd[_0x5b481b(0x246)]=null;}),[_0xcfee85,_0xe3db9f]),_0x257578?_0x4cbb7b(_0x356893,{'align':_0x5e929c(0x214),'disabled':_0x3c3b08===c[_0x5e929c(0x267)],'className':_0x5e929c(0x286),'overlay':_0x4cbb7b(Re,{'status':_0x3c3b08,'coordinator':_0x257578}),'children':_0x4cbb7b(_0x5e929c(0x234),{'className':_0x350e56('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3c3b08===c[_0x5e929c(0x267)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3c3b08!==c[_0x5e929c(0x267)]}),'type':_0x5e929c(0x234),'children':_0x4cbb7b(W,{'className':_0x5e929c(0x25d)})})}):null;}function Re(_0x37143f){const _0x4d440f=_0x203051,{status:_0x38a54f,coordinator:_0x15a64f}=_0x37143f;switch(_0x38a54f){case c[_0x4d440f(0x21f)]:return _0x4cbb7b($e,{'coordinator':_0x15a64f});case c[_0x4d440f(0x215)]:return _0x4cbb7b(xe,{'coordinator':_0x15a64f});case c[_0x4d440f(0x223)]:return _0x4cbb7b(Pe,{'coordinator':_0x15a64f});case c[_0x4d440f(0x267)]:return _0x4cbb7b(Te,{});case c[_0x4d440f(0x235)]:return _0x4cbb7b(Ae,{'coordinator':_0x15a64f});default:return null;}}function $e(_0x399c82){const _0x36fac6=_0x203051,{coordinator:_0x3f9790}=_0x399c82;return _0xbc9c89(_0x5c324a,{'children':[_0x4cbb7b(_0x36fac6(0x25a),{'className':_0x36fac6(0x28a),'children':_0x36fac6(0x208)}),_0x4cbb7b(_0x1aa64c,{'onClick':()=>_0x3f9790[_0x36fac6(0x252)](),'children':_0x36fac6(0x22e)})]});}function xe(_0x5df9e2){const _0x5f0ef1=_0x203051,{coordinator:_0x3c3964}=_0x5df9e2;return _0xbc9c89(_0x5c324a,{'children':[_0x4cbb7b(_0x5f0ef1(0x25a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5f0ef1(0x1e6)}),_0x4cbb7b(_0x1aa64c,{'onClick':()=>_0x3c3964['stopFollowing'](),'children':_0x5f0ef1(0x278)})]});}function Pe(_0x352b59){const _0x7ea9e1=_0x203051,{coordinator:_0x47fa63}=_0x352b59;return _0xbc9c89(_0x5c324a,{'children':[_0x4cbb7b(_0x7ea9e1(0x25a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x7ea9e1(0x231)}),_0x4cbb7b(_0x1aa64c,{'variant':'text','onClick':()=>_0x47fa63[_0x7ea9e1(0x21c)](),'children':_0x7ea9e1(0x244)})]});}function Ae(_0x204052){const _0x29c4fe=_0x203051,{coordinator:_0xedf115}=_0x204052;return _0xbc9c89(_0x5c324a,{'children':[_0x4cbb7b(_0x29c4fe(0x25a),{'className':_0x29c4fe(0x28a),'children':_0x29c4fe(0x259)}),_0x4cbb7b(_0x1aa64c,{'variant':_0x29c4fe(0x217),'onClick':()=>_0xedf115['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Te(){const _0x3d89a4=_0x203051;return _0x4cbb7b(_0x5c324a,{'children':_0x3d89a4(0x24b)});}function _0x53e2(){const _0x58b76e=['toString','_handleOperation','Present\x20this\x20document','_startPresenting','delete','path','OPERATION','455683FXjrbQ','getOwnPropertyDescriptor','includes','idle','live-share.config','_collabSession','LIVESHARE_NEW_HOST','end','FOLLOWING','_config','default','offline','SAME_OPERATION_SHARE_INTERVAL','UniverIcon','substring','startFollowing','random','displayName','IDLE','_commandService','getTypeOfUnitDisposed$','_liveShareService','NOT_FOLLOWING','_fetchOperations','registerComponent','map','27481390cFRNNj','following','UNIVER_SHEET','registerSharedOperation','status$','UNIVER_UNKNOWN','idSuffix','Start','_reporters','clear','You\x27re\x20not\x20following\x20the\x20presenter','pipe','dispose$','button','PRESENTING','from','set','1793424tIizvy','getInitialStates','event$','_commandDisposable','currentColor','_mountLiveShare','232AWrXli','requireSession','57170NILJfT','ONLINE','forEach','attrs','Start\x20following','_handleNewHost','current','_stopPresenting','0\x200\x2017\x2017','svg','operations','You\x27are\x20offline.','trim','getLiveShareCoordinatorSync','9iRoSHI','mask','getLiveShareCoordinator','_handleOnline','tryStartPresenting','1710696OFCKpS','send','getValue','shouldShareOperation','_uiPartsService','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','You\x27re\x20presenting\x20the\x20document','div','url(#$1','getUnitId','univer-size-4','LIVESHARE_REQUEST_HOST','setConfig','stopPresenting','reverse','unitId','add','_configService','params','xlink:href','OFFLINE','stopFollowing','dispose','executeCommand','_stopFollowing','LiveShareIcon','next','evenodd','univerjs-icon\x20univerjs-icon-','length','_status','getMemberID','presenter','1em','sheet','_univerInstanceService','_handleNewChangeSets','Stop\x20following','fill','find','_injector','_startLiveShareCoordinator','complete','4yViPbm','getStatus','_init','disposeWithMe','_startFollowing','getTypeOfUnitAdded$','defs','override','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','LIVESHARE_OPERATION','unsubscribe','_presenter','univer-mb-3\x20univer-w-full\x20univer-text-sm','get','3139297DbuYkz','HEADER_MENU','entries','children','then','You\x27re\x20following\x20the\x20presenter','30856kdxcZX','presenting','LIVESHARE_TERMINATE','data','init','string','defineProperty','colorChannel1','not-following','getConfig','has','assign','_unitID','subscribe','_collabSessionService','UNIVER_LIVE_SHARE_PLUGIN','registerInitialStateReporter','defIds','_handleTerminate','type','_status$','onStarting','_handleOffline','_entities','_beIdle','_sharedOperations','tag','replace','symbol','mutations','getCurrentTypeOfUnit$'];_0x53e2=function(){return _0x58b76e;};return _0x53e2();}var Fe=Object['getOwnPropertyDescriptor'],He=(_0x3aa46f,_0x19b0ba,_0x2a37f0,_0x39bc96)=>{for(var _0x4f4575=_0x39bc96>0x1?void 0x0:_0x39bc96?Fe(_0x19b0ba,_0x2a37f0):_0x19b0ba,_0x1bb5f1=_0x3aa46f['length']-0x1,_0x221e07;_0x1bb5f1>=0x0;_0x1bb5f1--)(_0x221e07=_0x3aa46f[_0x1bb5f1])&&(_0x4f4575=_0x221e07(_0x4f4575)||_0x4f4575);return _0x4f4575;},A=(_0x58065c,_0x19e361)=>(_0x3f7948,_0x250d24)=>_0x19e361(_0x3f7948,_0x250d24,_0x58065c);let m=class extends _0x2fa88b{constructor(_0x299cc2,_0x416853){const _0x27ef35=_0x203051;super(),this[_0x27ef35(0x27b)]=_0x299cc2,this[_0x27ef35(0x257)]=_0x416853,this[_0x27ef35(0x23d)]();}[_0x203051(0x23d)](){const _0x346257=_0x203051;this[_0x346257(0x281)](this[_0x346257(0x257)][_0x346257(0x225)](_0x2bf13e[_0x346257(0x1e2)],()=>_0x2b9143(Le,this[_0x346257(0x27b)])));}};m=He([A(0x0,_0x41344e(_0x247233)),A(0x1,_0x1f7073)],m);const ye=_0x203051(0x211),T={};var Ue=Object[_0x203051(0x20e)],Ve=(_0x5e1d89,_0x5d6f96,_0x620112,_0x3c3f11)=>{for(var _0x4d8e9d=_0x3c3f11>0x1?void 0x0:_0x3c3f11?Ue(_0x5d6f96,_0x620112):_0x5d6f96,_0x9d08d8=_0x5e1d89['length']-0x1,_0x6e0186;_0x9d08d8>=0x0;_0x9d08d8--)(_0x6e0186=_0x5e1d89[_0x9d08d8])&&(_0x4d8e9d=_0x6e0186(_0x4d8e9d)||_0x4d8e9d);return _0x4d8e9d;},je=(_0x426fe1,_0x1a648a)=>(_0xb03e87,_0x4f56b7)=>_0x1a648a(_0xb03e87,_0x4f56b7,_0x426fe1);let I=class extends _0x2fa88b{constructor(_0x31fdbe){const _0x3c732f=_0x203051;super(),this[_0x3c732f(0x222)]=_0x31fdbe,this[_0x3c732f(0x280)]();}[_0x203051(0x280)](){[_0x4a5670['id'],_0x23916f['id'],_0x38d630['id']]['forEach'](_0x3f5c30=>{const _0x4046f0=_0x467a;this['disposeWithMe'](this['_liveShareService'][_0x4046f0(0x22a)](_0x3f5c30));});}};I=Ve([je(0x0,_0x41344e(L))],I);var Me=Object[_0x203051(0x1ed)],ke=Object[_0x203051(0x20e)],Ge=(_0x14d5a0,_0x1e4a02,_0x55a88d)=>_0x1e4a02 in _0x14d5a0?Me(_0x14d5a0,_0x1e4a02,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55a88d}):_0x14d5a0[_0x1e4a02]=_0x55a88d,We=(_0x203698,_0xe0342b,_0x173f45,_0x1e0285)=>{for(var _0x3035e0=_0x1e0285>0x1?void 0x0:_0x1e0285?ke(_0xe0342b,_0x173f45):_0xe0342b,_0x4d4f5e=_0x203698['length']-0x1,_0x42fb1a;_0x4d4f5e>=0x0;_0x4d4f5e--)(_0x42fb1a=_0x203698[_0x4d4f5e])&&(_0x3035e0=_0x42fb1a(_0x3035e0)||_0x3035e0);return _0x3035e0;},F=(_0x4a60cb,_0x281b58)=>(_0x46b207,_0x5ec506)=>_0x281b58(_0x46b207,_0x5ec506,_0x4a60cb),B=(_0x4b3bc4,_0x4df8ed,_0x1e631a)=>Ge(_0x4b3bc4,typeof _0x4df8ed!=_0x203051(0x203)?_0x4df8ed+'':_0x4df8ed,_0x1e631a);const Ye=_0x203051(0x1f6);let b=class extends _0x2461be{constructor(_0x23a960=T,_0xcc65bf,_0x3f4f40){const _0x1474aa=_0x203051;super(),this[_0x1474aa(0x216)]=_0x23a960,this[_0x1474aa(0x27b)]=_0xcc65bf,this[_0x1474aa(0x264)]=_0x3f4f40;const {..._0x3bc066}=_0xbbecdb({},T,this['_config']);this[_0x1474aa(0x264)][_0x1474aa(0x25f)](ye,_0x3bc066);}[_0x203051(0x1fc)](){const _0x5e3202=_0x203051;_0x3077e0(this[_0x5e3202(0x27b)],_0x1e8f39([[L],[S],[I],[m]],this[_0x5e3202(0x216)][_0x5e3202(0x285)])),_0x207751(this[_0x5e3202(0x27b)],[[I]]);}['onRendered'](){const _0xe6b90a=_0x203051;_0x207751(this[_0xe6b90a(0x27b)],[[m]]);}};B(b,_0x203051(0x1fa),_0xf4b6a6[_0x203051(0x22c)]),B(b,'pluginName',Ye),b=We([_0x352a09(_0x5c1f28),F(0x1,_0x41344e(_0x247233)),F(0x2,_0x59bacf)],b);export{m as DesktopLiveShareController,Le as LiveShare,S as LiveShareController,N as LiveShareCoordinator,L as LiveShareService,c as LiveShareStatus,b as UniverLiveSharePlugin};
|
package/lib/umd/facade.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x296770,_0x5af249){const _0x989ad3=_0x400b,_0x2bf817=_0x296770();while(!![]){try{const _0x636666=parseInt(_0x989ad3(0x171))/0x1*(parseInt(_0x989ad3(0x16c))/0x2)+parseInt(_0x989ad3(0x16a))/0x3+-parseInt(_0x989ad3(0x156))/0x4+parseInt(_0x989ad3(0x15a))/0x5*(parseInt(_0x989ad3(0x149))/0x6)+-parseInt(_0x989ad3(0x146))/0x7+parseInt(_0x989ad3(0x157))/0x8*(-parseInt(_0x989ad3(0x16f))/0x9)+parseInt(_0x989ad3(0x145))/0xa*(parseInt(_0x989ad3(0x150))/0xb);if(_0x636666===_0x5af249)break;else _0x2bf817['push'](_0x2bf817['shift']());}catch(_0x4d0a36){_0x2bf817['push'](_0x2bf817['shift']());}}}(_0x3156,0x99609),function(_0x5671fb,_0x49869f){const _0x49e637=_0x400b;typeof exports=='object'&&typeof module<'u'?_0x49869f(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==_0x49e637(0x142)&&define[_0x49e637(0x147)]?define(['@univerjs-pro/live-share','@univerjs/engine-render',_0x49e637(0x16b),_0x49e637(0x16d),'@univerjs/sheets/facade',_0x49e637(0x144)],_0x49869f):(_0x5671fb=typeof globalThis<'u'?globalThis:_0x5671fb||self,_0x49869f(_0x5671fb[_0x49e637(0x154)],_0x5671fb[_0x49e637(0x14c)],_0x5671fb[_0x49e637(0x141)],_0x5671fb[_0x49e637(0x165)],_0x5671fb['UniverSheetsFacade'],_0x5671fb[_0x49e637(0x163)]));}(this,function(_0x407bf3,_0x5a5255,_0x3b5cde,_0x281adf,_0xe56487,_0x3115d6){'use strict';const _0x1199a5=_0x400b;class _0x34007f extends _0xe56487[_0x1199a5(0x169)]{['_initialize'](_0x529dc9,_0x35446c,_0x598e46,_0x3f0a1b,_0x9be206){const _0x3ca73a=_0x1199a5,_0xf84d19=_0x529dc9['get'](_0x407bf3[_0x3ca73a(0x14a)]),_0x499360=_0x529dc9[_0x3ca73a(0x155)](_0x5a5255[_0x3ca73a(0x151)]),_0x16b4a5=_0x35446c[_0x3ca73a(0x160)](),_0x359e2f=_0x35446c[_0x3ca73a(0x143)](),_0x59e871=_0xf84d19[_0x3ca73a(0x148)](_0x16b4a5);(_0x59e871==null?void 0x0:_0x59e871['getStatus']())!==_0x407bf3[_0x3ca73a(0x15d)]['PRESENTING']||(_0x598e46['getSheetId']()!==_0x359e2f[_0x3ca73a(0x15e)]()&&this[_0x3ca73a(0x159)][_0x3ca73a(0x167)](_0x3b5cde['SetWorksheetActiveOperation']['id'],{'unitId':_0x16b4a5,'subUnitId':_0x598e46[_0x3ca73a(0x15e)]()}),!_0x499360['getRenderById'](_0x16b4a5))||_0x9be206[_0x3ca73a(0x162)](_0x281adf['SetScrollOperation']['id'],{'unitId':_0x35446c['getUnitId'](),'sheetId':_0x598e46[_0x3ca73a(0x15e)](),'sheetViewStartRow':_0x3f0a1b['startRow'],'sheetViewStartColumn':_0x3f0a1b[_0x3ca73a(0x166)],'offsetX':0x0,'offsetY':0x0,'screenRatioX':-0x1/0x3,'screenRatioY':-0x1/0x3,'duration':0x12c});}}_0xe56487[_0x1199a5(0x169)][_0x1199a5(0x14d)](_0x34007f);class _0x487806 extends _0x3115d6[_0x1199a5(0x14b)]{[_0x1199a5(0x152)](){const _0x4c58f2=_0x1199a5;var _0xe7d635,_0x2fe92e;const _0x5d7184=this['_injector'][_0x4c58f2(0x155)](_0x407bf3[_0x4c58f2(0x14a)]),_0x4fee1c=(_0xe7d635=this[_0x4c58f2(0x161)]())==null?void 0x0:_0xe7d635[_0x4c58f2(0x153)]();if(!_0x4fee1c)throw new Error(_0x4c58f2(0x158));const _0x4b5403=_0x5d7184[_0x4c58f2(0x148)](_0x4fee1c);return(_0x2fe92e=_0x4b5403==null?void 0x0:_0x4b5403[_0x4c58f2(0x170)]())!=null?_0x2fe92e:_0x407bf3['LiveShareStatus']['IDLE'];}[_0x1199a5(0x15f)](){const _0x3d408d=_0x1199a5;var _0x24b0a7;const _0x2296b2=this['_injector'][_0x3d408d(0x155)](_0x407bf3['LiveShareController']),_0x2a8011=(_0x24b0a7=this[_0x3d408d(0x161)]())==null?void 0x0:_0x24b0a7[_0x3d408d(0x153)]();if(!_0x2a8011)throw new Error(_0x3d408d(0x158));const _0xc52703=_0x2296b2[_0x3d408d(0x148)](_0x2a8011);if(!_0xc52703)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0xc52703[_0x3d408d(0x15f)]();}[_0x1199a5(0x164)](){const _0x664961=_0x1199a5;var _0x32291f;const _0x4ee144=this[_0x664961(0x15c)][_0x664961(0x155)](_0x407bf3[_0x664961(0x14a)]),_0x314d17=(_0x32291f=this['getActiveWorkbook']())==null?void 0x0:_0x32291f[_0x664961(0x153)]();if(!_0x314d17)throw new Error('No\x20active\x20workbook\x20found.');const _0x58ce75=_0x4ee144[_0x664961(0x148)](_0x314d17);if(!_0x58ce75)throw new Error('No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.');_0x58ce75[_0x664961(0x164)]();}['startPresenting'](){const _0x205743=_0x1199a5;var _0x85032;const _0x4569a8=this[_0x205743(0x15c)][_0x205743(0x155)](_0x407bf3[_0x205743(0x14a)]),_0x5c384d=(_0x85032=this[_0x205743(0x161)]())==null?void 0x0:_0x85032[_0x205743(0x153)]();if(!_0x5c384d)throw new Error(_0x205743(0x158));const _0x35b4fd=_0x4569a8[_0x205743(0x148)](_0x5c384d);if(!_0x35b4fd)throw new Error(_0x205743(0x168));_0x35b4fd[_0x205743(0x15b)]();}[_0x1199a5(0x14e)](){const _0x5a51fc=_0x1199a5;var _0x308795;const _0x125dcc=this[_0x5a51fc(0x15c)][_0x5a51fc(0x155)](_0x407bf3[_0x5a51fc(0x14a)]),_0x442bac=(_0x308795=this[_0x5a51fc(0x161)]())==null?void 0x0:_0x308795['getId']();if(!_0x442bac)throw new Error(_0x5a51fc(0x158));const _0x3bff66=_0x125dcc[_0x5a51fc(0x148)](_0x442bac);if(!_0x3bff66)throw new Error(_0x5a51fc(0x168));_0x3bff66['stopPresenting']();}}_0x3115d6[_0x1199a5(0x14b)][_0x1199a5(0x14d)](_0x487806);class _0x53a80f extends _0x3115d6['FEnum']{get[_0x1199a5(0x16e)](){const _0x41a8b6=_0x1199a5;return _0x407bf3[_0x41a8b6(0x15d)];}}_0x3115d6[_0x1199a5(0x14f)]['extend'](_0x53a80f);}));function _0x400b(_0x3ba6de,_0x23edf6){_0x3ba6de=_0x3ba6de-0x141;const _0x3156c9=_0x3156();let _0x400b0d=_0x3156c9[_0x3ba6de];return _0x400b0d;}function _0x3156(){const _0x3d60d8=['UniverCoreFacade','stopFollowing','UniverSheetsUi','startColumn','executeCommand','No\x20LiveShareCoordinator\x20found\x20for\x20the\x20active\x20workbook.','FRange','2778723WyVuNN','@univerjs/sheets','19718vuSTON','@univerjs/sheets-ui','LiveShareStatusEnum','522qXvaKm','getStatus','67LYBqbb','UniverSheets','function','getActiveSheet','@univerjs/core/facade','10038390oIZbHe','5765669nvmtEi','amd','getLiveShareCoordinatorSync','34908FAEydJ','LiveShareController','FUniver','UniverEngineRender','extend','stopPresenting','FEnum','11IFzuXP','IRenderManagerService','getLiveShareStatus','getId','UniverProLiveShare','get','3511084aDGcvG','71304XWFHpq','No\x20active\x20workbook\x20found.','_commandService','220dWfaBe','tryStartPresenting','_injector','LiveShareStatus','getSheetId','startFollowing','getUnitId','getActiveWorkbook','syncExecuteCommand'];_0x3156=function(){return _0x3d60d8;};return _0x3156();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x4eeb(){const _0x8e3d07=['substring','DisposableCollection','map','OPERATION','length','IDLE','UniverProCollaboration','defineProperty','xlink:href','@univerjs/sheets-ui','subscribe','NOT_FOLLOWING','_fetchOperations','offline','string','LIVESHARE_NEW_HOST','from','getUnitId','_handleNewChangeSets','UniverInstanceType','not-following','Present\x20this\x20document','univer-mb-3\x20univer-w-full\x20univer-text-sm','pipe','registerInitialStateReporter','parseProtocolChangeset','shouldShareOperation','Disposable','useRef','idSuffix','DesktopLiveShareController','@univerjs-pro/collaboration-client','LiveShare','unsubscribe','4421329foYroQ','UniverIcon','button','You\x27re\x20presenting\x20the\x20document','_status','InsertSheetMutation','presenter','getOwnPropertyDescriptor','76bpVoEM','getStatus','getTypeOfUnitDisposed$','LiveShareCoordinator','Button','includes','UniverCore','live-share-icon','194991akDldB','univer-size-4','reverse','jsxs','registerComponent','touchDependencies','@univerjs-pro/collaboration','stringify','PRESENTING','getInitialStates','_handleOperation','RxDisposable','238862coyoMj','You\x27are\x20offline.','UniverSheets','_reporters','registerSharedOperation','live-share.config','_init','operators','_univerInstanceService','text','BehaviorSubject','CollaborationEvent','UNIVER_LIVE_SHARE_PLUGIN','mutations','clsx','asObservable','send','Module','complete','SetWorksheetActiveOperation','amd','idle','attrs','OFFLINE','current','_configService','SetZoomRatioOperation','_handleOnline','assign','replace','forEach','useState','object','UniverCollaborationClientPlugin','path','FOLLOWING','_sharedOperations','_entities','symbol','add','currentColor','NEW_CHANGESETS','rxjs/operators','UniverDesign','mask','createElement','SessionStatus','_status$','@univerjs/design','http://www.w3.org/2000/svg','function','none','useEffect','has','_startFollowing','7OZPmPD','_handleNewHost','_startLiveShareCoordinator','toString','react','Injector','next','defs','parse','_injector','rxjs','Plugin','find','trim','Inject','1OSPQCC','params','type','873108IRkXAY','ONLINE','connectInjector','@univerjs/sheets','merge','Start','executeCommand','8SSZhAE','random','UniverSheetsUi','getCurrentTypeOfUnit$','getMemberID','useObservable','IUniverInstanceService','You\x27re\x20following\x20the\x20presenter','throttleTime','sessionStatus$','getLiveShareCoordinator','disposeWithMe','1em','DependentOn','_handleOffline','tag','stopPresenting','getTypeOfUnitAdded$','Fragment','UNIVER_UNKNOWN','_presenter','following','_collabSession','init','Stop\x20following','onRendered','createInstance','end','UniverProLiveShare','status$','SetScrollOperation','delete','get','use','values','getConfig','colorChannel1','_commandDisposable','dispose$','React','mergeOverrideWithDependencies','stopFollowing','presenting','UniverProCollaborationClient','UniverUi','UniverLiveSharePlugin','UNIVER_SHEET','_beIdle','evenodd','unitId','getLiveShareCoordinatorSync','_commandService','fill','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_handleTerminate','_uiPartsService','tryStartPresenting','6492465Gvhhos','_mountLiveShare','_collabSessionService','_startPresenting','_liveShareService','Dropdown','_unitID','LiveShareService','clear','LIVESHARE_REQUEST_HOST','div','setConfig','forwardRef','entries','@univerjs/core','children','10AIMMaA','LIVESHARE_FETCH_OPERATIONS','0\x200\x2017\x2017','data','Start\x20following','LiveShareController','override','pluginName','LiveShareStatus','3794015oEGRXC','_config','7964562WAFFcv','getValue','useDependency','toDisposable','dispose','default','_stopFollowing','takeUntil','jsx','HEADER_MENU','IConfigService','SAME_OPERATION_SHARE_INTERVAL','displayName','LIVESHARE_TERMINATE','set','1164hYUzYw','LIVESHARE_OPERATION'];_0x4eeb=function(){return _0x8e3d07;};return _0x4eeb();}function _0x9466(_0x24ef7d,_0x20bf8b){_0x24ef7d=_0x24ef7d-0x1b0;const _0x4eeb35=_0x4eeb();let _0x94668f=_0x4eeb35[_0x24ef7d];return _0x94668f;}(function(_0x539bc8,_0x4efac1){const _0x5ba5ee=_0x9466,_0x35733f=_0x539bc8();while(!![]){try{const _0x2023a5=-parseInt(_0x5ba5ee(0x1b2))/0x1*(parseInt(_0x5ba5ee(0x1b5))/0x2)+-parseInt(_0x5ba5ee(0x253))/0x3*(parseInt(_0x5ba5ee(0x24b))/0x4)+parseInt(_0x5ba5ee(0x20e))/0x5+parseInt(_0x5ba5ee(0x210))/0x6*(-parseInt(_0x5ba5ee(0x296))/0x7)+parseInt(_0x5ba5ee(0x1bc))/0x8*(parseInt(_0x5ba5ee(0x1f5))/0x9)+parseInt(_0x5ba5ee(0x205))/0xa*(parseInt(_0x5ba5ee(0x243))/0xb)+-parseInt(_0x5ba5ee(0x21f))/0xc*(-parseInt(_0x5ba5ee(0x25f))/0xd);if(_0x2023a5===_0x4efac1)break;else _0x35733f['push'](_0x35733f['shift']());}catch(_0x1ef597){_0x35733f['push'](_0x35733f['shift']());}}}(_0x4eeb,0xa2789),function(_0x21b15b,_0x441864){const _0x9d5a37=_0x9466;typeof exports==_0x9d5a37(0x27f)&&typeof module<'u'?_0x441864(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==_0x9d5a37(0x291)&&define[_0x9d5a37(0x273)]?define(['exports',_0x9d5a37(0x203),'@univerjs/ui','react/jsx-runtime',_0x9d5a37(0x28f),_0x9d5a37(0x29a),_0x9d5a37(0x259),_0x9d5a37(0x240),_0x9d5a37(0x1b8),_0x9d5a37(0x2a0),_0x9d5a37(0x289),_0x9d5a37(0x22a)],_0x441864):(_0x21b15b=typeof globalThis<'u'?globalThis:_0x21b15b||self,_0x441864(_0x21b15b[_0x9d5a37(0x1d8)]={},_0x21b15b[_0x9d5a37(0x251)],_0x21b15b[_0x9d5a37(0x1e8)],_0x21b15b[_0x9d5a37(0x1e3)],_0x21b15b[_0x9d5a37(0x28a)],_0x21b15b[_0x9d5a37(0x1e3)],_0x21b15b[_0x9d5a37(0x227)],_0x21b15b[_0x9d5a37(0x1e7)],_0x21b15b[_0x9d5a37(0x261)],_0x21b15b[_0x9d5a37(0x2a0)],_0x21b15b[_0x9d5a37(0x2a0)][_0x9d5a37(0x266)],_0x21b15b[_0x9d5a37(0x1be)]));}(this,function(_0x1b7f31,_0x1d89bd,_0x522fca,_0x49a6a2,_0x1cc4fc,_0x4ec959,_0x1c2e2c,_0x1c0277,_0x2de1a3,_0x2f9214,_0x612458,_0x513987){'use strict';const _0x4082bc=_0x9466;var _0x4ba8e9=Object[_0x4082bc(0x228)],_0x222177=(_0x43cbfe,_0x575528,_0x2d296c)=>_0x575528 in _0x43cbfe?_0x4ba8e9(_0x43cbfe,_0x575528,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d296c}):_0x43cbfe[_0x575528]=_0x2d296c,_0x264440=(_0x5d6f6a,_0x42231b,_0x295176)=>_0x222177(_0x5d6f6a,typeof _0x42231b!=_0x4082bc(0x285)?_0x42231b+'':_0x42231b,_0x295176);function _0x28b166({ref:_0x40d37d,..._0x20dd9b}){const _0x234504=_0x4082bc,{icon:_0x52e161,id:_0xe50e33,className:_0x1a64ab,extend:_0x238bba,..._0x1c034a}=_0x20dd9b,_0x5776b6=('univerjs-icon\x20univerjs-icon-'+_0xe50e33+'\x20'+(_0x1a64ab||''))[_0x234504(0x1b0)](),_0x5cfbc4=_0x4ec959[_0x234504(0x23d)]('_'+_0x5f0b56());return _0x2bdf44(_0x52e161,''+_0xe50e33,{'defIds':_0x52e161['defIds'],'idSuffix':_0x5cfbc4[_0x234504(0x277)]},{'ref':_0x40d37d,'className':_0x5776b6,..._0x1c034a},_0x238bba);}function _0x2bdf44(_0x5439d0,_0x5869ee,_0x1894d7,_0x22ec7c,_0x1fb352){const _0x1dbd4a=_0x4082bc;return _0x4ec959[_0x1dbd4a(0x28c)](_0x5439d0[_0x1dbd4a(0x1cb)],{'key':_0x5869ee,..._0x5bda3b(_0x5439d0,_0x1894d7,_0x1fb352),..._0x22ec7c},(_0x34ff82(_0x5439d0,_0x1894d7)[_0x1dbd4a(0x204)]||[])['map']((_0x34f1e0,_0x28fca2)=>_0x2bdf44(_0x34f1e0,_0x5869ee+'-'+_0x5439d0[_0x1dbd4a(0x1cb)]+'-'+_0x28fca2,_0x1894d7,void 0x0,_0x1fb352)));}function _0x5bda3b(_0x2b72fc,_0x496061,_0x1da2ee){const _0x593428=_0x4082bc,_0x558a3e={..._0x2b72fc[_0x593428(0x275)]};_0x1da2ee!=null&&_0x1da2ee[_0x593428(0x1e0)]&&_0x558a3e['fill']===_0x593428(0x1e0)&&(_0x558a3e[_0x593428(0x1f0)]=_0x1da2ee[_0x593428(0x1e0)]),_0x2b72fc[_0x593428(0x1cb)]==='mask'&&_0x558a3e['id']&&(_0x558a3e['id']=_0x558a3e['id']+_0x496061[_0x593428(0x23e)]),Object[_0x593428(0x202)](_0x558a3e)[_0x593428(0x27d)](([_0x5aee9e,_0x465425])=>{const _0xe8744f=_0x593428;_0x5aee9e===_0xe8744f(0x28b)&&typeof _0x465425==_0xe8744f(0x22f)&&(_0x558a3e[_0x5aee9e]=_0x465425[_0xe8744f(0x27c)](/url\(#(.*)\)/,'url(#$1'+_0x496061[_0xe8744f(0x23e)]+')'));});const {defIds:_0x4d07b6}=_0x496061;return!_0x4d07b6||_0x4d07b6[_0x593428(0x225)]===0x0||(_0x2b72fc[_0x593428(0x1cb)]===_0x593428(0x1dd)&&_0x558a3e[_0x593428(0x229)]&&(_0x558a3e[_0x593428(0x229)]=_0x558a3e[_0x593428(0x229)]+_0x496061[_0x593428(0x23e)]),Object[_0x593428(0x202)](_0x558a3e)[_0x593428(0x27d)](([_0x549424,_0x26d30a])=>{const _0x1c6f33=_0x593428;typeof _0x26d30a=='string'&&(_0x558a3e[_0x549424]=_0x26d30a[_0x1c6f33(0x27c)](/url\(#(.*)\)/,'url(#$1'+_0x496061['idSuffix']+')'));})),_0x558a3e;}function _0x34ff82(_0x439d41,_0x4a719d){const _0x2af4d5=_0x4082bc;var _0x5911c6;const {defIds:_0x450b50}=_0x4a719d;return!_0x450b50||_0x450b50[_0x2af4d5(0x225)]===0x0?_0x439d41:_0x439d41['tag']===_0x2af4d5(0x29d)&&((_0x5911c6=_0x439d41[_0x2af4d5(0x204)])!=null&&_0x5911c6[_0x2af4d5(0x225)])?{..._0x439d41,'children':_0x439d41['children'][_0x2af4d5(0x223)](_0x590f84=>typeof _0x590f84[_0x2af4d5(0x275)]['id']=='string'&&_0x450b50&&_0x450b50['includes'](_0x590f84[_0x2af4d5(0x275)]['id'])?{..._0x590f84,'attrs':{..._0x590f84[_0x2af4d5(0x275)],'id':_0x590f84[_0x2af4d5(0x275)]['id']+_0x4a719d['idSuffix']}}:_0x590f84)}:_0x439d41;}function _0x5f0b56(){const _0x2a3f4c=_0x4082bc;return Math[_0x2a3f4c(0x1bd)]()[_0x2a3f4c(0x299)](0x24)[_0x2a3f4c(0x221)](0x2,0x8);}_0x28b166[_0x4082bc(0x21c)]=_0x4082bc(0x244);const _0x2bab71={'tag':'svg','attrs':{'xmlns':_0x4082bc(0x290),'fill':_0x4082bc(0x292),'viewBox':_0x4082bc(0x207),'width':_0x4082bc(0x1c8),'height':_0x4082bc(0x1c8)},'children':[{'tag':'path','attrs':{'fill':_0x4082bc(0x287),'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':_0x4082bc(0x281),'attrs':{'fill':_0x4082bc(0x287),'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':_0x4082bc(0x1ec),'clipRule':'evenodd'}}]},_0x46ac41=_0x4ec959[_0x4082bc(0x201)](function(_0x3d84e6,_0x5b9aa8){const _0x29f424=_0x4082bc;return _0x4ec959[_0x29f424(0x28c)](_0x28b166,Object[_0x29f424(0x27b)]({},_0x3d84e6,{'id':_0x29f424(0x252),'ref':_0x5b9aa8,'icon':_0x2bab71}));});_0x46ac41[_0x4082bc(0x21c)]='LiveShareIcon';class _0x52e43b extends _0x1d89bd['Disposable']{constructor(){const _0x51e330=_0x4082bc;super(...arguments),_0x264440(this,'_sharedOperations',new Set()),_0x264440(this,_0x51e330(0x262),new Set());}[_0x4082bc(0x263)](_0x53a236){const _0x2c34f9=_0x4082bc;return this[_0x2c34f9(0x283)][_0x2c34f9(0x286)](_0x53a236),_0x1d89bd['toDisposable'](()=>this[_0x2c34f9(0x283)][_0x2c34f9(0x1db)](_0x53a236));}[_0x4082bc(0x239)](_0xc02853){const _0xfe0cc3=_0x4082bc;return this['_reporters'][_0xfe0cc3(0x286)](_0xc02853),_0x1d89bd[_0xfe0cc3(0x213)](()=>this['_reporters'][_0xfe0cc3(0x1db)](_0xc02853));}[_0x4082bc(0x23b)](_0x254db0){const _0x44bc18=_0x4082bc;return this[_0x44bc18(0x283)][_0x44bc18(0x294)](_0x254db0);}['getInitialStates'](_0x303b21){const _0x323d8f=_0x4082bc;return Array[_0x323d8f(0x231)](this[_0x323d8f(0x262)])['map'](_0x562ba0=>_0x562ba0(_0x303b21));}}var _0x3b12d9=Object['getOwnPropertyDescriptor'],_0x5bf3d4=(_0x53a60c,_0x555f0a,_0x322b78,_0x2e60e4)=>{for(var _0x5a71ee=_0x2e60e4>0x1?void 0x0:_0x2e60e4?_0x3b12d9(_0x555f0a,_0x322b78):_0x555f0a,_0x28eb9d=_0x53a60c['length']-0x1,_0x5e383f;_0x28eb9d>=0x0;_0x28eb9d--)(_0x5e383f=_0x53a60c[_0x28eb9d])&&(_0x5a71ee=_0x5e383f(_0x5a71ee)||_0x5a71ee);return _0x5a71ee;},_0x4529da=(_0x494aaa,_0x1af81e)=>(_0x497ca5,_0x38e488)=>_0x1af81e(_0x497ca5,_0x38e488,_0x494aaa);_0x1b7f31['LiveShareController']=class extends _0x1d89bd[_0x4082bc(0x25e)]{constructor(_0x507618,_0x42d5fd,_0x43e31c){const _0x3145ee=_0x4082bc;super(),_0x264440(this,'_entities',new Map()),(this['_univerInstanceService']=_0x507618,this[_0x3145ee(0x29f)]=_0x42d5fd,this[_0x3145ee(0x1f7)]=_0x43e31c,this[_0x3145ee(0x265)]());}async[_0x4082bc(0x1c6)](_0xe4ba09){const _0x384dcb=_0x4082bc;return this[_0x384dcb(0x284)][_0x384dcb(0x294)](_0xe4ba09)||await this['_startLiveShareCoordinator'](_0xe4ba09),this[_0x384dcb(0x284)][_0x384dcb(0x1dc)](_0xe4ba09);}[_0x4082bc(0x1ee)](_0x55b13c){const _0x2755fb=_0x4082bc;var _0x125d45;return(_0x125d45=this[_0x2755fb(0x284)]['get'](_0x55b13c))!=null?_0x125d45:null;}['_init'](){const _0x480056=_0x4082bc;this[_0x480056(0x267)][_0x480056(0x1cd)](_0x1d89bd[_0x480056(0x234)][_0x480056(0x1ea)])[_0x480056(0x238)](_0x612458[_0x480056(0x217)](this['dispose$']))['subscribe'](async _0x40a48a=>{const _0x47e6b5=_0x480056,_0x46d600=_0x40a48a[_0x47e6b5(0x232)]();this[_0x47e6b5(0x284)][_0x47e6b5(0x294)](_0x46d600)||this[_0x47e6b5(0x298)](_0x46d600);}),this[_0x480056(0x267)][_0x480056(0x24d)](_0x1d89bd['UniverInstanceType'][_0x480056(0x1ea)])['pipe'](_0x612458[_0x480056(0x217)](this['dispose$']))[_0x480056(0x22b)](_0x1cd968=>{const _0x27975d=_0x480056,_0x2b3792=_0x1cd968[_0x27975d(0x232)](),_0x5c3534=this['_entities'][_0x27975d(0x1dc)](_0x2b3792);_0x5c3534==null||_0x5c3534[_0x27975d(0x214)]();});}async[_0x4082bc(0x298)](_0x58e70c){const _0x284e91=_0x4082bc,_0x5c362f=await this[_0x284e91(0x1f7)]['requireSession'](_0x58e70c),_0x545687=this['_injector'][_0x284e91(0x1d6)](_0x1b7f31['LiveShareCoordinator'],_0x58e70c,_0x5c362f);return _0x545687[_0x284e91(0x1d3)](),this[_0x284e91(0x284)][_0x284e91(0x21e)](_0x58e70c,_0x545687),_0x545687;}},_0x1b7f31[_0x4082bc(0x20a)]=_0x5bf3d4([_0x4529da(0x0,_0x1d89bd[_0x4082bc(0x1c2)]),_0x4529da(0x1,_0x1d89bd['Inject'](_0x1d89bd[_0x4082bc(0x29b)])),_0x4529da(0x2,_0x1d89bd['Inject'](_0x1c0277['CollaborationSessionService']))],_0x1b7f31[_0x4082bc(0x20a)]);var _0x1ea7a1=(_0x444fc0=>(_0x444fc0[_0x4082bc(0x276)]=_0x4082bc(0x22e),_0x444fc0[_0x4082bc(0x226)]='idle',_0x444fc0['FOLLOWING']=_0x4082bc(0x1d1),_0x444fc0[_0x4082bc(0x22c)]=_0x4082bc(0x235),_0x444fc0[_0x4082bc(0x25b)]=_0x4082bc(0x1e6),_0x444fc0))(_0x1ea7a1||{});const _0x2dc144=_0x4082bc(0x21b),_0x5b96e3=0xc8;_0x1b7f31[_0x4082bc(0x24e)]=class extends _0x1d89bd['RxDisposable']{constructor(_0x497fc6,_0xd59201,_0xfc76b2,_0x2ab34a,_0x29f69c){const _0x278f7b=_0x4082bc;super(),_0x264440(this,_0x278f7b(0x28e),new _0x2f9214[(_0x278f7b(0x269))](_0x278f7b(0x274))),_0x264440(this,_0x278f7b(0x1d9),this['_status$'][_0x278f7b(0x26e)]()),_0x264440(this,_0x278f7b(0x265),!0x1),_0x264440(this,_0x278f7b(0x1e1),null),_0x264440(this,_0x278f7b(0x1d0),null),(this[_0x278f7b(0x1fb)]=_0x497fc6,this[_0x278f7b(0x1d2)]=_0xd59201,this['_configService']=_0xfc76b2,this[_0x278f7b(0x1f9)]=_0x2ab34a,this[_0x278f7b(0x1ef)]=_0x29f69c);}get[_0x4082bc(0x247)](){const _0xb9c8a1=_0x4082bc;return this['_status$'][_0xb9c8a1(0x211)]();}['dispose'](){const _0xd5872b=_0x4082bc;var _0x528c92;(_0x528c92=this[_0xd5872b(0x1e1)])==null||_0x528c92[_0xd5872b(0x214)](),this['_status$'][_0xd5872b(0x29c)](_0xd5872b(0x274)),this[_0xd5872b(0x28e)][_0xd5872b(0x271)]();}[_0x4082bc(0x24c)](){const _0x3e3015=_0x4082bc;return this[_0x3e3015(0x247)];}[_0x4082bc(0x1d3)](){const _0xc5e25a=_0x4082bc;this['_init']||(this[_0xc5e25a(0x265)]=!0x0,this[_0xc5e25a(0x1d2)][_0xc5e25a(0x1c5)][_0xc5e25a(0x238)](_0x612458['takeUntil'](this[_0xc5e25a(0x1e2)]))[_0xc5e25a(0x22b)](_0x5e46c8=>{const _0x52f416=_0xc5e25a;switch(_0x5e46c8){case _0x1c0277[_0x52f416(0x28d)][_0x52f416(0x276)]:this[_0x52f416(0x1ca)]();break;case _0x1c0277[_0x52f416(0x28d)][_0x52f416(0x1b6)]:this['_handleOnline']();break;}}),this[_0xc5e25a(0x1d2)]['event$'][_0xc5e25a(0x238)](_0x612458[_0xc5e25a(0x217)](this[_0xc5e25a(0x1e2)]))['subscribe'](_0x1916bf=>{const _0x1b4acd=_0xc5e25a,{eventID:_0x28df5f}=_0x1916bf;switch(_0x28df5f){case _0x1c2e2c[_0x1b4acd(0x26a)][_0x1b4acd(0x230)]:this[_0x1b4acd(0x297)](_0x1916bf);break;case _0x1c2e2c[_0x1b4acd(0x26a)]['LIVESHARE_OPERATION']:this[_0x1b4acd(0x25d)](_0x1916bf);break;case _0x1c2e2c[_0x1b4acd(0x26a)][_0x1b4acd(0x21d)]:this[_0x1b4acd(0x1f2)]();break;case _0x1c2e2c[_0x1b4acd(0x26a)][_0x1b4acd(0x288)]:this[_0x1b4acd(0x233)](_0x1916bf);break;}}));}[_0x4082bc(0x1f4)](){const _0x54e909=_0x4082bc;this[_0x54e909(0x1d2)]['send']({'eventID':_0x1c2e2c[_0x54e909(0x26a)][_0x54e909(0x1fe)],'data':{'unitID':this[_0x54e909(0x1fb)],'userID':this[_0x54e909(0x1d2)][_0x54e909(0x1c0)]()}},this[_0x54e909(0x1fb)]);}[_0x4082bc(0x1cc)](){const _0x456a19=_0x4082bc;this[_0x456a19(0x247)]===_0x456a19(0x1e6)&&(this['_status$'][_0x456a19(0x29c)](_0x456a19(0x274)),this['_collabSession']['send']({'eventID':_0x1c2e2c[_0x456a19(0x26a)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x456a19(0x1fb)]}},this[_0x456a19(0x1fb)]));}['startFollowing'](){const _0x5c8c54=_0x4082bc;this['_status']===_0x5c8c54(0x235)&&(this['_status$']['next'](_0x5c8c54(0x1d1)),this['_startFollowing']());}[_0x4082bc(0x1e5)](){const _0x517308=_0x4082bc;this['_status']===_0x517308(0x1d1)&&this[_0x517308(0x216)]();}[_0x4082bc(0x297)](_0x36fa22){const _0x99a665=_0x4082bc,{presenter:_0x35b315}=_0x36fa22[_0x99a665(0x208)],_0x3a209d=this['_collabSession'][_0x99a665(0x1c0)]();this[_0x99a665(0x1d0)]=_0x35b315,_0x35b315===_0x3a209d?(this[_0x99a665(0x216)](),this['_startPresenting']()):this['_status']!==_0x99a665(0x235)&&(this['_stopPresenting'](),this[_0x99a665(0x295)]());}[_0x4082bc(0x22d)](){const _0x2c0712=_0x4082bc,_0x15699b={'eventID':_0x1c2e2c[_0x2c0712(0x26a)][_0x2c0712(0x206)]};this[_0x2c0712(0x1d2)]['send'](_0x15699b,this[_0x2c0712(0x1fb)]);}[_0x4082bc(0x1f2)](){const _0x265724=_0x4082bc;this[_0x265724(0x1d0)]=null,this[_0x265724(0x247)]!=='presenting'&&this[_0x265724(0x1eb)]();}['_handleNewChangeSets'](_0x1d7ea9){const _0x18029d=_0x4082bc;if(this['_status']===_0x18029d(0x1d1)&&this[_0x18029d(0x1d0)]===_0x1d7ea9['data']['memberID']){const _0x4b7a58=_0x1c2e2c[_0x18029d(0x23a)](_0x1d7ea9['data'])[_0x18029d(0x26c)][_0x18029d(0x255)]()[_0x18029d(0x2a2)](_0x471b90=>_0x471b90['id']===_0x2de1a3[_0x18029d(0x248)]['id']);if(_0x4b7a58){const _0x2c856d=_0x4b7a58[_0x18029d(0x1b3)][_0x18029d(0x1ed)],_0x53176c=_0x4b7a58[_0x18029d(0x1b3)]['sheet']['id'];setTimeout(()=>{const _0x136b15=_0x18029d;this[_0x136b15(0x1ef)][_0x136b15(0x1bb)](_0x2de1a3[_0x136b15(0x272)]['id'],{'unitId':_0x2c856d,'subUnitId':_0x53176c},{'fromCollab':!0x0});});}}}[_0x4082bc(0x1f8)](){const _0x4e81a7=_0x4082bc;this[_0x4e81a7(0x28e)][_0x4e81a7(0x29c)](_0x4e81a7(0x1e6));const _0x23343c=new Map(),_0x1761b3=this[_0x4e81a7(0x1e1)]=new _0x1d89bd[(_0x4e81a7(0x222))]();_0x1761b3[_0x4e81a7(0x286)](_0x1d89bd[_0x4e81a7(0x213)](()=>{const _0x409684=_0x4e81a7;_0x23343c[_0x409684(0x27d)](_0x48fd1a=>_0x48fd1a[_0x409684(0x271)]()),_0x23343c[_0x409684(0x1fd)]();})),_0x1761b3['add'](this['_commandService']['onCommandExecuted'](_0x45ef91=>{const _0x5df0c0=_0x4e81a7;var _0xad815a;if(_0x45ef91[_0x5df0c0(0x1b4)]!==_0x1d89bd['CommandType'][_0x5df0c0(0x224)]||!this[_0x5df0c0(0x1f9)][_0x5df0c0(0x23b)](_0x45ef91['id']))return;const {id:_0x45e941}=_0x45ef91;let _0x2c1aa8;_0x23343c[_0x5df0c0(0x294)](_0x45e941)?_0x2c1aa8=_0x23343c[_0x5df0c0(0x1dc)](_0x45e941):(_0x2c1aa8=new _0x2f9214['Subject'](),_0x23343c[_0x5df0c0(0x21e)](_0x45e941,_0x2c1aa8),_0x2c1aa8[_0x5df0c0(0x238)](_0x612458[_0x5df0c0(0x1c4)]((_0xad815a=this['_configService'][_0x5df0c0(0x1df)](_0x2dc144))!=null?_0xad815a:_0x5b96e3,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5df0c0(0x22b)](_0x24f8a3=>{const _0x101e3b=_0x5df0c0;this[_0x101e3b(0x1d2)][_0x101e3b(0x26f)]({'eventID':_0x1c2e2c[_0x101e3b(0x26a)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x101e3b(0x1fb)],'operations':{[_0x24f8a3['id']]:{'id':_0x24f8a3['id'],'params':JSON[_0x101e3b(0x25a)](_0x24f8a3['params'])}}}},this[_0x101e3b(0x1fb)]);})),_0x2c1aa8[_0x5df0c0(0x29c)](_0x45ef91);})),this[_0x4e81a7(0x1f9)][_0x4e81a7(0x25c)](this[_0x4e81a7(0x1fb)])[_0x4e81a7(0x27d)](_0x102d1b=>this[_0x4e81a7(0x1d2)][_0x4e81a7(0x26f)]({'eventID':_0x1c2e2c['CollaborationEvent'][_0x4e81a7(0x220)],'data':{'unitID':this[_0x4e81a7(0x1fb)],'operations':{[_0x102d1b['id']]:{'id':_0x102d1b['id'],'params':JSON[_0x4e81a7(0x25a)](_0x102d1b['params'])}}}},this[_0x4e81a7(0x1fb)]));}['_stopPresenting'](){const _0x62da4=_0x4082bc;var _0x3de3e4;this[_0x62da4(0x28e)][_0x62da4(0x29c)](_0x62da4(0x274)),(_0x3de3e4=this[_0x62da4(0x1e1)])==null||_0x3de3e4[_0x62da4(0x214)](),this[_0x62da4(0x1e1)]=null;}[_0x4082bc(0x295)](){const _0x5bf827=_0x4082bc;var _0x537d49;(_0x537d49=this[_0x5bf827(0x1e1)])==null||_0x537d49['dispose'](),this[_0x5bf827(0x28e)][_0x5bf827(0x29c)]('following');}[_0x4082bc(0x1eb)](){const _0x110b23=_0x4082bc;var _0x188f99;this[_0x110b23(0x28e)]['next'](_0x110b23(0x274)),(_0x188f99=this[_0x110b23(0x1e1)])==null||_0x188f99[_0x110b23(0x214)](),this['_commandDisposable']=null;}[_0x4082bc(0x216)](){const _0x464f00=_0x4082bc;var _0x3f3f3d;this[_0x464f00(0x28e)][_0x464f00(0x29c)](_0x464f00(0x235)),(_0x3f3f3d=this[_0x464f00(0x1e1)])==null||_0x3f3f3d['dispose']();}[_0x4082bc(0x25d)](_0x18e589){const _0x1831d1=_0x4082bc;if(['presenting',_0x1831d1(0x235),_0x1831d1(0x22e)][_0x1831d1(0x250)](this[_0x1831d1(0x247)])||!_0x18e589[_0x1831d1(0x208)]['presenter']||_0x18e589[_0x1831d1(0x208)][_0x1831d1(0x249)]===this[_0x1831d1(0x1d2)][_0x1831d1(0x1c0)]())return;this['_status']===_0x1831d1(0x274)&&this['_startFollowing']();const _0x4203b1=_0x18e589['data']['operations'];Object[_0x1831d1(0x1de)](_0x4203b1)[_0x1831d1(0x27d)](_0x54e7fd=>{const _0x397a65=_0x1831d1;this['_commandService'][_0x397a65(0x1bb)](_0x54e7fd['id'],_0x54e7fd[_0x397a65(0x1b3)]?JSON[_0x397a65(0x29e)](_0x54e7fd[_0x397a65(0x1b3)]):null,{'fromCollab':!0x0});});}[_0x4082bc(0x1ca)](){const _0x19bdca=_0x4082bc;var _0x3bd6c4;this['_status$'][_0x19bdca(0x29c)]('offline'),(_0x3bd6c4=this[_0x19bdca(0x1e1)])==null||_0x3bd6c4[_0x19bdca(0x214)]();}[_0x4082bc(0x27a)](){const _0x47709f=_0x4082bc;this[_0x47709f(0x28e)][_0x47709f(0x29c)]('idle'),this['_fetchOperations']();}},_0x1b7f31[_0x4082bc(0x24e)]=_0x5bf3d4([_0x4529da(0x2,_0x1d89bd[_0x4082bc(0x21a)]),_0x4529da(0x3,_0x1d89bd[_0x4082bc(0x1b1)](_0x52e43b)),_0x4529da(0x4,_0x1d89bd['ICommandService'])],_0x1b7f31[_0x4082bc(0x24e)]);function _0x5da910(){const _0x366da5=_0x4082bc,_0x2b34eb=_0x522fca[_0x366da5(0x212)](_0x1b7f31['LiveShareController']),_0x210911=_0x522fca[_0x366da5(0x212)](_0x1d89bd[_0x366da5(0x1c2)]),_0x553f22=_0x522fca[_0x366da5(0x1c1)](()=>_0x210911[_0x366da5(0x1bf)](_0x1d89bd[_0x366da5(0x234)][_0x366da5(0x1ea)]),void 0x0,!0x1,[]),[_0x28fdad,_0x3e388c]=_0x4ec959[_0x366da5(0x27e)](null),[_0x54a385,_0x33315d]=_0x4ec959['useState'](_0x1ea7a1[_0x366da5(0x226)]),_0x22ef4e=_0x4ec959[_0x366da5(0x23d)](null);return _0x4ec959[_0x366da5(0x293)](()=>(_0x553f22&&_0x2b34eb[_0x366da5(0x1c6)](_0x553f22['getUnitId']())['then'](_0x7d6366=>{const _0x52ac8a=_0x366da5;_0x3e388c(_0x7d6366),_0x22ef4e[_0x52ac8a(0x277)]=_0x7d6366[_0x52ac8a(0x1d9)]['subscribe'](_0x2d5166=>{_0x33315d(_0x2d5166);});}),()=>{const _0x59a528=_0x366da5;var _0x303d83;(_0x303d83=_0x22ef4e['current'])==null||_0x303d83[_0x59a528(0x242)](),_0x22ef4e['current']=null;}),[_0x553f22,_0x2b34eb]),_0x28fdad?_0x49a6a2['jsx'](_0x1cc4fc[_0x366da5(0x1fa)],{'align':_0x366da5(0x1d7),'disabled':_0x54a385===_0x1ea7a1[_0x366da5(0x276)],'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':_0x49a6a2['jsx'](_0x2a1f00,{'status':_0x54a385,'coordinator':_0x28fdad}),'children':_0x49a6a2[_0x366da5(0x218)](_0x366da5(0x245),{'className':_0x1cc4fc[_0x366da5(0x26d)](_0x366da5(0x1f1),{'univer-cursor-not-allowed':_0x54a385===_0x1ea7a1['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x54a385!==_0x1ea7a1[_0x366da5(0x276)]}),'type':_0x366da5(0x245),'children':_0x49a6a2[_0x366da5(0x218)](_0x46ac41,{'className':_0x366da5(0x254)})})}):null;}function _0x2a1f00(_0x274cce){const _0x2535ae=_0x4082bc,{status:_0x34cfaf,coordinator:_0x2782c3}=_0x274cce;switch(_0x34cfaf){case _0x1ea7a1[_0x2535ae(0x226)]:return _0x49a6a2[_0x2535ae(0x218)](_0x22f64e,{'coordinator':_0x2782c3});case _0x1ea7a1[_0x2535ae(0x282)]:return _0x49a6a2['jsx'](_0x269dd2,{'coordinator':_0x2782c3});case _0x1ea7a1[_0x2535ae(0x22c)]:return _0x49a6a2[_0x2535ae(0x218)](_0x3ffcc3,{'coordinator':_0x2782c3});case _0x1ea7a1['OFFLINE']:return _0x49a6a2[_0x2535ae(0x218)](_0x3c0486,{});case _0x1ea7a1[_0x2535ae(0x25b)]:return _0x49a6a2[_0x2535ae(0x218)](_0x11807b,{'coordinator':_0x2782c3});default:return null;}}function _0x22f64e(_0x40e859){const _0x5ab1df=_0x4082bc,{coordinator:_0x1b16f5}=_0x40e859;return _0x49a6a2['jsxs'](_0x49a6a2['Fragment'],{'children':[_0x49a6a2[_0x5ab1df(0x218)](_0x5ab1df(0x1ff),{'className':_0x5ab1df(0x237),'children':_0x5ab1df(0x236)}),_0x49a6a2[_0x5ab1df(0x218)](_0x1cc4fc[_0x5ab1df(0x24f)],{'onClick':()=>_0x1b16f5[_0x5ab1df(0x1f4)](),'children':_0x5ab1df(0x1ba)})]});}function _0x269dd2(_0x304a7f){const _0x4e4188=_0x4082bc,{coordinator:_0x3992e9}=_0x304a7f;return _0x49a6a2[_0x4e4188(0x256)](_0x49a6a2['Fragment'],{'children':[_0x49a6a2['jsx'](_0x4e4188(0x1ff),{'className':_0x4e4188(0x237),'children':_0x4e4188(0x1c3)}),_0x49a6a2[_0x4e4188(0x218)](_0x1cc4fc['Button'],{'onClick':()=>_0x3992e9[_0x4e4188(0x1e5)](),'children':_0x4e4188(0x1d4)})]});}function _0x3ffcc3(_0x153f20){const _0x1d2414=_0x4082bc,{coordinator:_0x3eea45}=_0x153f20;return _0x49a6a2[_0x1d2414(0x256)](_0x49a6a2[_0x1d2414(0x1ce)],{'children':[_0x49a6a2[_0x1d2414(0x218)]('div',{'className':_0x1d2414(0x237),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x49a6a2[_0x1d2414(0x218)](_0x1cc4fc[_0x1d2414(0x24f)],{'variant':_0x1d2414(0x268),'onClick':()=>_0x3eea45['startFollowing'](),'children':_0x1d2414(0x209)})]});}function _0x11807b(_0x3d240b){const _0x5e5ff3=_0x4082bc,{coordinator:_0xfe7425}=_0x3d240b;return _0x49a6a2[_0x5e5ff3(0x256)](_0x49a6a2['Fragment'],{'children':[_0x49a6a2[_0x5e5ff3(0x218)](_0x5e5ff3(0x1ff),{'className':_0x5e5ff3(0x237),'children':_0x5e5ff3(0x246)}),_0x49a6a2[_0x5e5ff3(0x218)](_0x1cc4fc['Button'],{'variant':_0x5e5ff3(0x215),'onClick':()=>_0xfe7425[_0x5e5ff3(0x1cc)](),'children':'Stop\x20presenting'})]});}function _0x3c0486(){const _0x128f44=_0x4082bc;return _0x49a6a2[_0x128f44(0x218)](_0x49a6a2[_0x128f44(0x1ce)],{'children':_0x128f44(0x260)});}var _0x209a30=Object[_0x4082bc(0x24a)],_0x330dd9=(_0x3dfb11,_0x46c204,_0x94293f,_0x595b19)=>{const _0x273f70=_0x4082bc;for(var _0x2b36df=_0x595b19>0x1?void 0x0:_0x595b19?_0x209a30(_0x46c204,_0x94293f):_0x46c204,_0x13124b=_0x3dfb11[_0x273f70(0x225)]-0x1,_0x32131d;_0x13124b>=0x0;_0x13124b--)(_0x32131d=_0x3dfb11[_0x13124b])&&(_0x2b36df=_0x32131d(_0x2b36df)||_0x2b36df);return _0x2b36df;},_0x58e169=(_0x566cf9,_0x29dab3)=>(_0xbae49e,_0x34748d)=>_0x29dab3(_0xbae49e,_0x34748d,_0x566cf9);_0x1b7f31['DesktopLiveShareController']=class extends _0x1d89bd[_0x4082bc(0x23c)]{constructor(_0x89b4a4,_0x226012){const _0x294112=_0x4082bc;super(),this['_injector']=_0x89b4a4,this[_0x294112(0x1f3)]=_0x226012,this['_mountLiveShare']();}[_0x4082bc(0x1f6)](){const _0x2df672=_0x4082bc;this[_0x2df672(0x1c7)](this[_0x2df672(0x1f3)][_0x2df672(0x257)](_0x522fca['BuiltInUIPart'][_0x2df672(0x219)],()=>_0x522fca[_0x2df672(0x1b7)](_0x5da910,this[_0x2df672(0x29f)])));}},_0x1b7f31[_0x4082bc(0x23f)]=_0x330dd9([_0x58e169(0x0,_0x1d89bd[_0x4082bc(0x1b1)](_0x1d89bd[_0x4082bc(0x29b)])),_0x58e169(0x1,_0x522fca['IUIPartsService'])],_0x1b7f31['DesktopLiveShareController']);const _0x186f17=_0x4082bc(0x264),_0x2bee52={};var _0xd3a432=Object[_0x4082bc(0x24a)],_0x47f4f7=(_0x33443a,_0x5634ba,_0x25e6f3,_0x277242)=>{const _0x44d0ba=_0x4082bc;for(var _0xb580ca=_0x277242>0x1?void 0x0:_0x277242?_0xd3a432(_0x5634ba,_0x25e6f3):_0x5634ba,_0xcd2464=_0x33443a[_0x44d0ba(0x225)]-0x1,_0xf1479b;_0xcd2464>=0x0;_0xcd2464--)(_0xf1479b=_0x33443a[_0xcd2464])&&(_0xb580ca=_0xf1479b(_0xb580ca)||_0xb580ca);return _0xb580ca;},_0x1f8374=(_0x2c2669,_0x21fb6e)=>(_0x1f1081,_0x4fce36)=>_0x21fb6e(_0x1f1081,_0x4fce36,_0x2c2669);let _0x38bef9=class extends _0x1d89bd[_0x4082bc(0x23c)]{constructor(_0x5f1904){const _0x5d1997=_0x4082bc;super(),this[_0x5d1997(0x1f9)]=_0x5f1904,this['_init']();}[_0x4082bc(0x265)](){const _0x181ab6=_0x4082bc;[_0x513987[_0x181ab6(0x279)]['id'],_0x513987[_0x181ab6(0x1da)]['id'],_0x2de1a3[_0x181ab6(0x272)]['id']][_0x181ab6(0x27d)](_0x48c2f8=>{const _0x1be00a=_0x181ab6;this[_0x1be00a(0x1c7)](this['_liveShareService']['registerSharedOperation'](_0x48c2f8));});}};_0x38bef9=_0x47f4f7([_0x1f8374(0x0,_0x1d89bd[_0x4082bc(0x1b1)](_0x52e43b))],_0x38bef9);var _0xf0642f=Object[_0x4082bc(0x228)],_0x6976e3=Object['getOwnPropertyDescriptor'],_0x5ad3c8=(_0x350db9,_0x10b2e9,_0x7c185)=>_0x10b2e9 in _0x350db9?_0xf0642f(_0x350db9,_0x10b2e9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x7c185}):_0x350db9[_0x10b2e9]=_0x7c185,_0x308901=(_0x28cd3e,_0x566b8c,_0x4fce20,_0x3b9d20)=>{for(var _0x19afbe=_0x3b9d20>0x1?void 0x0:_0x3b9d20?_0x6976e3(_0x566b8c,_0x4fce20):_0x566b8c,_0x543852=_0x28cd3e['length']-0x1,_0x1b72a8;_0x543852>=0x0;_0x543852--)(_0x1b72a8=_0x28cd3e[_0x543852])&&(_0x19afbe=_0x1b72a8(_0x19afbe)||_0x19afbe);return _0x19afbe;},_0x35d6ad=(_0x25752e,_0x202e01)=>(_0x5c5d92,_0x80498)=>_0x202e01(_0x5c5d92,_0x80498,_0x25752e),_0x5e6f20=(_0x10fec8,_0xbd16d3,_0x20a609)=>_0x5ad3c8(_0x10fec8,typeof _0xbd16d3!=_0x4082bc(0x285)?_0xbd16d3+'':_0xbd16d3,_0x20a609);const _0x291965=_0x4082bc(0x26b);_0x1b7f31[_0x4082bc(0x1e9)]=class extends _0x1d89bd[_0x4082bc(0x2a1)]{constructor(_0xc80c2a=_0x2bee52,_0x2ba5a2,_0x364268){const _0x123dd6=_0x4082bc;super(),this[_0x123dd6(0x20f)]=_0xc80c2a,this[_0x123dd6(0x29f)]=_0x2ba5a2,this[_0x123dd6(0x278)]=_0x364268;const {..._0x236713}=_0x1d89bd[_0x123dd6(0x1b9)]({},_0x2bee52,this[_0x123dd6(0x20f)]);this[_0x123dd6(0x278)][_0x123dd6(0x200)](_0x186f17,_0x236713);}['onStarting'](){const _0x3ed0bf=_0x4082bc;_0x1d89bd['registerDependencies'](this[_0x3ed0bf(0x29f)],_0x1d89bd[_0x3ed0bf(0x1e4)]([[_0x52e43b],[_0x1b7f31['LiveShareController']],[_0x38bef9],[_0x1b7f31[_0x3ed0bf(0x23f)]]],this[_0x3ed0bf(0x20f)][_0x3ed0bf(0x20b)])),_0x1d89bd['touchDependencies'](this[_0x3ed0bf(0x29f)],[[_0x38bef9]]);}[_0x4082bc(0x1d5)](){const _0x4351e2=_0x4082bc;_0x1d89bd[_0x4351e2(0x258)](this[_0x4351e2(0x29f)],[[_0x1b7f31[_0x4351e2(0x23f)]]]);}},_0x5e6f20(_0x1b7f31[_0x4082bc(0x1e9)],_0x4082bc(0x1b4),_0x1d89bd['UniverInstanceType'][_0x4082bc(0x1cf)]),_0x5e6f20(_0x1b7f31[_0x4082bc(0x1e9)],_0x4082bc(0x20c),_0x291965),_0x1b7f31[_0x4082bc(0x1e9)]=_0x308901([_0x1d89bd[_0x4082bc(0x1c9)](_0x1c0277[_0x4082bc(0x280)]),_0x35d6ad(0x1,_0x1d89bd[_0x4082bc(0x1b1)](_0x1d89bd[_0x4082bc(0x29b)])),_0x35d6ad(0x2,_0x1d89bd[_0x4082bc(0x21a)])],_0x1b7f31[_0x4082bc(0x1e9)]),_0x1b7f31[_0x4082bc(0x241)]=_0x5da910,_0x1b7f31[_0x4082bc(0x1fc)]=_0x52e43b,_0x1b7f31[_0x4082bc(0x20d)]=_0x1ea7a1,Object['defineProperty'](_0x1b7f31,Symbol['toStringTag'],{'value':_0x4082bc(0x270)});}));
|
|
1
|
+
(function(_0x36beaf,_0x16720b){const _0x60c671=_0x3b31,_0x48a949=_0x36beaf();while(!![]){try{const _0x37f0fd=-parseInt(_0x60c671(0x141))/0x1*(parseInt(_0x60c671(0x14a))/0x2)+parseInt(_0x60c671(0x158))/0x3+parseInt(_0x60c671(0x1f6))/0x4*(-parseInt(_0x60c671(0x1ea))/0x5)+parseInt(_0x60c671(0x1e7))/0x6+-parseInt(_0x60c671(0x173))/0x7+parseInt(_0x60c671(0x184))/0x8*(-parseInt(_0x60c671(0x1c0))/0x9)+parseInt(_0x60c671(0x171))/0xa;if(_0x37f0fd===_0x16720b)break;else _0x48a949['push'](_0x48a949['shift']());}catch(_0xc3be35){_0x48a949['push'](_0x48a949['shift']());}}}(_0x49f8,0xc4911),function(_0xc37c26,_0x12da8e){const _0x3033f0=_0x3b31;typeof exports==_0x3033f0(0x202)&&typeof module<'u'?_0x12da8e(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==_0x3033f0(0x1a0)&&define[_0x3033f0(0x1ec)]?define([_0x3033f0(0x163),_0x3033f0(0x1fd),_0x3033f0(0x14f),_0x3033f0(0x1c8),_0x3033f0(0x19b),_0x3033f0(0x12f),'@univerjs-pro/collaboration','@univerjs-pro/collaboration-client',_0x3033f0(0x1eb),_0x3033f0(0x15c),'rxjs/operators',_0x3033f0(0x119)],_0x12da8e):(_0xc37c26=typeof globalThis<'u'?globalThis:_0xc37c26||self,_0x12da8e(_0xc37c26[_0x3033f0(0x13f)]={},_0xc37c26[_0x3033f0(0x195)],_0xc37c26[_0x3033f0(0x1ab)],_0xc37c26[_0x3033f0(0x157)],_0xc37c26[_0x3033f0(0x1b8)],_0xc37c26[_0x3033f0(0x157)],_0xc37c26[_0x3033f0(0x1a6)],_0xc37c26['UniverProCollaborationClient'],_0xc37c26['UniverSheets'],_0xc37c26['rxjs'],_0xc37c26[_0x3033f0(0x15c)][_0x3033f0(0x138)],_0xc37c26[_0x3033f0(0x1b5)]));}(this,function(_0x3ff051,_0x4ea4da,_0x129c97,_0x53bcf5,_0x261788,_0x1c0b58,_0x296f5d,_0x225879,_0x5878f8,_0x4b1e04,_0x120056,_0xd4b36e){'use strict';const _0x1e8697=_0x3b31;var _0x24d5d8=Object['defineProperty'],_0x48f77d=(_0x203591,_0x419ace,_0x10021f)=>_0x419ace in _0x203591?_0x24d5d8(_0x203591,_0x419ace,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x10021f}):_0x203591[_0x419ace]=_0x10021f,_0x207c01=(_0x1d3416,_0x337cd5,_0x58853d)=>_0x48f77d(_0x1d3416,typeof _0x337cd5!='symbol'?_0x337cd5+'':_0x337cd5,_0x58853d);function _0x30672e({ref:_0x426b89,..._0x195e27}){const _0x5d8d85=_0x3b31,{icon:_0xfc4e57,id:_0x5a7aa8,className:_0x26a87a,extend:_0x39522d,..._0x4e1050}=_0x195e27,_0x33d40b=(_0x5d8d85(0x1b1)+_0x5a7aa8+'\x20'+(_0x26a87a||''))[_0x5d8d85(0x1df)](),_0x818312=_0x1c0b58[_0x5d8d85(0x11a)]('_'+_0x5c3b2a());return _0x5f3ecb(_0xfc4e57,''+_0x5a7aa8,{'defIds':_0xfc4e57[_0x5d8d85(0x1c7)],'idSuffix':_0x818312['current']},{'ref':_0x426b89,'className':_0x33d40b,..._0x4e1050},_0x39522d);}function _0x5f3ecb(_0x53e14c,_0x56ce7e,_0x58144f,_0x2f4f4f,_0x8a715e){const _0x46bc8d=_0x3b31;return _0x1c0b58['createElement'](_0x53e14c[_0x46bc8d(0x16e)],{'key':_0x56ce7e,..._0x37b495(_0x53e14c,_0x58144f,_0x8a715e),..._0x2f4f4f},(_0x59fb3d(_0x53e14c,_0x58144f)[_0x46bc8d(0x114)]||[])['map']((_0x2ea141,_0x233e1f)=>_0x5f3ecb(_0x2ea141,_0x56ce7e+'-'+_0x53e14c['tag']+'-'+_0x233e1f,_0x58144f,void 0x0,_0x8a715e)));}function _0x37b495(_0x2a26f2,_0x15e176,_0x4e6771){const _0x17068a=_0x3b31,_0x13304c={..._0x2a26f2['attrs']};_0x4e6771!=null&&_0x4e6771['colorChannel1']&&_0x13304c[_0x17068a(0x155)]===_0x17068a(0x197)&&(_0x13304c[_0x17068a(0x155)]=_0x4e6771[_0x17068a(0x197)]),_0x2a26f2[_0x17068a(0x16e)]===_0x17068a(0x1b2)&&_0x13304c['id']&&(_0x13304c['id']=_0x13304c['id']+_0x15e176[_0x17068a(0x16a)]),Object['entries'](_0x13304c)[_0x17068a(0x137)](([_0x2df48a,_0x2f47ec])=>{const _0x34b5c5=_0x17068a;_0x2df48a===_0x34b5c5(0x1b2)&&typeof _0x2f47ec==_0x34b5c5(0x17f)&&(_0x13304c[_0x2df48a]=_0x2f47ec[_0x34b5c5(0x1c2)](/url\(#(.*)\)/,'url(#$1'+_0x15e176[_0x34b5c5(0x16a)]+')'));});const {defIds:_0x589211}=_0x15e176;return!_0x589211||_0x589211[_0x17068a(0x196)]===0x0||(_0x2a26f2[_0x17068a(0x16e)]===_0x17068a(0x145)&&_0x13304c[_0x17068a(0x130)]&&(_0x13304c[_0x17068a(0x130)]=_0x13304c[_0x17068a(0x130)]+_0x15e176[_0x17068a(0x16a)]),Object[_0x17068a(0x18e)](_0x13304c)[_0x17068a(0x137)](([_0x5dbbed,_0x38d37b])=>{const _0x45133e=_0x17068a;typeof _0x38d37b==_0x45133e(0x17f)&&(_0x13304c[_0x5dbbed]=_0x38d37b[_0x45133e(0x1c2)](/url\(#(.*)\)/,'url(#$1'+_0x15e176['idSuffix']+')'));})),_0x13304c;}function _0x59fb3d(_0x367491,_0xc90421){const _0x1ccbc4=_0x3b31;var _0x29ef28;const {defIds:_0xe5c4a9}=_0xc90421;return!_0xe5c4a9||_0xe5c4a9[_0x1ccbc4(0x196)]===0x0?_0x367491:_0x367491[_0x1ccbc4(0x16e)]===_0x1ccbc4(0x135)&&((_0x29ef28=_0x367491[_0x1ccbc4(0x114)])!=null&&_0x29ef28[_0x1ccbc4(0x196)])?{..._0x367491,'children':_0x367491['children'][_0x1ccbc4(0x140)](_0x30296d=>typeof _0x30296d[_0x1ccbc4(0x13a)]['id']==_0x1ccbc4(0x17f)&&_0xe5c4a9&&_0xe5c4a9[_0x1ccbc4(0x1e3)](_0x30296d[_0x1ccbc4(0x13a)]['id'])?{..._0x30296d,'attrs':{..._0x30296d[_0x1ccbc4(0x13a)],'id':_0x30296d[_0x1ccbc4(0x13a)]['id']+_0xc90421[_0x1ccbc4(0x16a)]}}:_0x30296d)}:_0x367491;}function _0x5c3b2a(){const _0x5b5592=_0x3b31;return Math[_0x5b5592(0x128)]()[_0x5b5592(0x13d)](0x24)[_0x5b5592(0x1d6)](0x2,0x8);}_0x30672e[_0x1e8697(0x160)]=_0x1e8697(0x1be);const _0x3c6088={'tag':_0x1e8697(0x1d9),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1e8697(0x1e8),'viewBox':_0x1e8697(0x177),'width':_0x1e8697(0x161),'height':_0x1e8697(0x161)},'children':[{'tag':_0x1e8697(0x16b),'attrs':{'fill':_0x1e8697(0x15a),'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':_0x1e8697(0x16b),'attrs':{'fill':_0x1e8697(0x15a),'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':_0x1e8697(0x13e),'clipRule':_0x1e8697(0x13e)}}]},_0x438626=_0x1c0b58[_0x1e8697(0x139)](function(_0x5b7455,_0x52e532){const _0x12b28f=_0x1e8697;return _0x1c0b58[_0x12b28f(0x203)](_0x30672e,Object['assign']({},_0x5b7455,{'id':_0x12b28f(0x142),'ref':_0x52e532,'icon':_0x3c6088}));});_0x438626['displayName']=_0x1e8697(0x117);class _0x1c4fcf extends _0x4ea4da[_0x1e8697(0x13c)]{constructor(){const _0x4b7811=_0x1e8697;super(...arguments),_0x207c01(this,_0x4b7811(0x194),new Set()),_0x207c01(this,'_reporters',new Set());}[_0x1e8697(0x1cc)](_0x2e0c9e){const _0x2c6b45=_0x1e8697;return this['_sharedOperations'][_0x2c6b45(0x1bb)](_0x2e0c9e),_0x4ea4da['toDisposable'](()=>this['_sharedOperations'][_0x2c6b45(0x17d)](_0x2e0c9e));}['registerInitialStateReporter'](_0x491e6d){const _0x490c72=_0x1e8697;return this['_reporters']['add'](_0x491e6d),_0x4ea4da[_0x490c72(0x19d)](()=>this[_0x490c72(0x11c)][_0x490c72(0x17d)](_0x491e6d));}[_0x1e8697(0x1e1)](_0x5db473){const _0x4f4ead=_0x1e8697;return this['_sharedOperations'][_0x4f4ead(0x18c)](_0x5db473);}[_0x1e8697(0x204)](_0x3ec7bf){const _0x1fb05a=_0x1e8697;return Array[_0x1fb05a(0x18b)](this[_0x1fb05a(0x11c)])['map'](_0x4d3c2c=>_0x4d3c2c(_0x3ec7bf));}}var _0x548c6a=Object[_0x1e8697(0x14c)],_0x4cd045=(_0x316088,_0x5a8a45,_0x3824cd,_0x2746c1)=>{const _0x577cbb=_0x1e8697;for(var _0x37a392=_0x2746c1>0x1?void 0x0:_0x2746c1?_0x548c6a(_0x5a8a45,_0x3824cd):_0x5a8a45,_0x3b7700=_0x316088[_0x577cbb(0x196)]-0x1,_0x304928;_0x3b7700>=0x0;_0x3b7700--)(_0x304928=_0x316088[_0x3b7700])&&(_0x37a392=_0x304928(_0x37a392)||_0x37a392);return _0x37a392;},_0x180174=(_0x46afd5,_0x2b8a9d)=>(_0x47c4df,_0x28afae)=>_0x2b8a9d(_0x47c4df,_0x28afae,_0x46afd5);_0x3ff051['LiveShareController']=class extends _0x4ea4da[_0x1e8697(0x1bd)]{constructor(_0x3ab210,_0x5c2fd4,_0x576703){const _0x412fea=_0x1e8697;super(),_0x207c01(this,_0x412fea(0x1f8),new Map()),(this[_0x412fea(0x17e)]=_0x3ab210,this[_0x412fea(0x17a)]=_0x5c2fd4,this[_0x412fea(0x178)]=_0x576703,this[_0x412fea(0x1cf)]());}async[_0x1e8697(0x127)](_0x2f1ed5){const _0x550864=_0x1e8697;return this[_0x550864(0x1f8)][_0x550864(0x18c)](_0x2f1ed5)||await this[_0x550864(0x1fc)](_0x2f1ed5),this[_0x550864(0x1f8)][_0x550864(0x1a8)](_0x2f1ed5);}['getLiveShareCoordinatorSync'](_0x1d278f){const _0x19987b=_0x1e8697;var _0x314941;return(_0x314941=this[_0x19987b(0x1f8)][_0x19987b(0x1a8)](_0x1d278f))!=null?_0x314941:null;}[_0x1e8697(0x1cf)](){const _0x19a94f=_0x1e8697;this[_0x19a94f(0x17e)][_0x19a94f(0x129)](_0x4ea4da[_0x19a94f(0x1a2)]['UNIVER_SHEET'])[_0x19a94f(0x14d)](_0x120056[_0x19a94f(0x16c)](this['dispose$']))[_0x19a94f(0x18f)](async _0x41f081=>{const _0x432d3a=_0x19a94f,_0xa29e68=_0x41f081[_0x432d3a(0x15b)]();this['_entities']['has'](_0xa29e68)||this[_0x432d3a(0x1fc)](_0xa29e68);}),this['_univerInstanceService'][_0x19a94f(0x1d7)](_0x4ea4da[_0x19a94f(0x1a2)][_0x19a94f(0x187)])[_0x19a94f(0x14d)](_0x120056['takeUntil'](this['dispose$']))[_0x19a94f(0x18f)](_0x23a377=>{const _0x4c285a=_0x19a94f,_0x54b1a2=_0x23a377['getUnitId'](),_0x4da872=this[_0x4c285a(0x1f8)]['get'](_0x54b1a2);_0x4da872==null||_0x4da872[_0x4c285a(0x1f9)]();});}async[_0x1e8697(0x1fc)](_0x3d8669){const _0x24728a=_0x1e8697,_0x5072ca=await this['_collabSessionService'][_0x24728a(0x136)](_0x3d8669),_0x5ef203=this[_0x24728a(0x17a)][_0x24728a(0x13b)](_0x3ff051[_0x24728a(0x115)],_0x3d8669,_0x5072ca);return _0x5ef203[_0x24728a(0x12a)](),this[_0x24728a(0x1f8)]['set'](_0x3d8669,_0x5ef203),_0x5ef203;}},_0x3ff051[_0x1e8697(0x1db)]=_0x4cd045([_0x180174(0x0,_0x4ea4da[_0x1e8697(0x185)]),_0x180174(0x1,_0x4ea4da[_0x1e8697(0x1ac)](_0x4ea4da[_0x1e8697(0x1d4)])),_0x180174(0x2,_0x4ea4da['Inject'](_0x225879[_0x1e8697(0x144)]))],_0x3ff051['LiveShareController']);var _0x4d7256=(_0x363b31=>(_0x363b31[_0x1e8697(0x169)]=_0x1e8697(0x1ed),_0x363b31[_0x1e8697(0x14b)]=_0x1e8697(0x1e9),_0x363b31['FOLLOWING']=_0x1e8697(0x170),_0x363b31[_0x1e8697(0x1e2)]=_0x1e8697(0x17b),_0x363b31[_0x1e8697(0x1c6)]='presenting',_0x363b31))(_0x4d7256||{});const _0x4c90ac='SAME_OPERATION_SHARE_INTERVAL',_0xe3bdac=0xc8;_0x3ff051['LiveShareCoordinator']=class extends _0x4ea4da[_0x1e8697(0x1bd)]{constructor(_0x5bd76b,_0x4b4b7e,_0x5a1e33,_0x312bb3,_0x6d7ebc){const _0x1b0a5c=_0x1e8697;super(),_0x207c01(this,_0x1b0a5c(0x151),new _0x4b1e04[(_0x1b0a5c(0x12b))](_0x1b0a5c(0x1e9))),_0x207c01(this,_0x1b0a5c(0x166),this['_status$'][_0x1b0a5c(0x131)]()),_0x207c01(this,_0x1b0a5c(0x1cf),!0x1),_0x207c01(this,_0x1b0a5c(0x188),null),_0x207c01(this,_0x1b0a5c(0x1af),null),(this[_0x1b0a5c(0x14e)]=_0x5bd76b,this[_0x1b0a5c(0x1f7)]=_0x4b4b7e,this[_0x1b0a5c(0x121)]=_0x5a1e33,this[_0x1b0a5c(0x189)]=_0x312bb3,this[_0x1b0a5c(0x1cb)]=_0x6d7ebc);}get[_0x1e8697(0x1c1)](){const _0x17d661=_0x1e8697;return this[_0x17d661(0x151)]['getValue']();}['dispose'](){const _0x326b01=_0x1e8697;var _0x4801a7;(_0x4801a7=this['_commandDisposable'])==null||_0x4801a7[_0x326b01(0x1f9)](),this[_0x326b01(0x151)][_0x326b01(0x133)](_0x326b01(0x1e9)),this[_0x326b01(0x151)][_0x326b01(0x1ad)]();}[_0x1e8697(0x11e)](){return this['_status'];}['init'](){const _0x3629ef=_0x1e8697;this[_0x3629ef(0x1cf)]||(this[_0x3629ef(0x1cf)]=!0x0,this[_0x3629ef(0x1f7)][_0x3629ef(0x1e4)]['pipe'](_0x120056[_0x3629ef(0x16c)](this[_0x3629ef(0x122)]))['subscribe'](_0x56f4e7=>{const _0x148ec9=_0x3629ef;switch(_0x56f4e7){case _0x225879[_0x148ec9(0x134)][_0x148ec9(0x169)]:this['_handleOffline']();break;case _0x225879[_0x148ec9(0x134)]['ONLINE']:this[_0x148ec9(0x1ca)]();break;}}),this[_0x3629ef(0x1f7)][_0x3629ef(0x12e)][_0x3629ef(0x14d)](_0x120056[_0x3629ef(0x16c)](this[_0x3629ef(0x122)]))[_0x3629ef(0x18f)](_0x327a5b=>{const _0x1d33ed=_0x3629ef,{eventID:_0x4e5e14}=_0x327a5b;switch(_0x4e5e14){case _0x296f5d[_0x1d33ed(0x1ce)]['LIVESHARE_NEW_HOST']:this[_0x1d33ed(0x1f4)](_0x327a5b);break;case _0x296f5d[_0x1d33ed(0x1ce)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x327a5b);break;case _0x296f5d[_0x1d33ed(0x1ce)][_0x1d33ed(0x1fe)]:this[_0x1d33ed(0x147)]();break;case _0x296f5d[_0x1d33ed(0x1ce)]['NEW_CHANGESETS']:this[_0x1d33ed(0x183)](_0x327a5b);break;}}));}[_0x1e8697(0x1ee)](){const _0x556e9d=_0x1e8697;this[_0x556e9d(0x1f7)][_0x556e9d(0x1b3)]({'eventID':_0x296f5d[_0x556e9d(0x1ce)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x556e9d(0x14e)],'userID':this['_collabSession'][_0x556e9d(0x1ae)]()}},this['_unitID']);}['stopPresenting'](){const _0x4dadf=_0x1e8697;this['_status']===_0x4dadf(0x1f3)&&(this[_0x4dadf(0x151)][_0x4dadf(0x133)](_0x4dadf(0x1e9)),this[_0x4dadf(0x1f7)][_0x4dadf(0x1b3)]({'eventID':_0x296f5d[_0x4dadf(0x1ce)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x4dadf(0x14e)]}},this[_0x4dadf(0x14e)]));}[_0x1e8697(0x124)](){const _0x10b5c7=_0x1e8697;this['_status']===_0x10b5c7(0x17b)&&(this[_0x10b5c7(0x151)][_0x10b5c7(0x133)]('following'),this[_0x10b5c7(0x193)]());}[_0x1e8697(0x125)](){const _0xd94eed=_0x1e8697;this[_0xd94eed(0x1c1)]===_0xd94eed(0x170)&&this['_stopFollowing']();}['_handleNewHost'](_0x335bba){const _0xcfd286=_0x1e8697,{presenter:_0x1a7f09}=_0x335bba[_0xcfd286(0x15e)],_0x12234e=this[_0xcfd286(0x1f7)][_0xcfd286(0x1ae)]();this['_presenter']=_0x1a7f09,_0x1a7f09===_0x12234e?(this[_0xcfd286(0x1e6)](),this['_startPresenting']()):this[_0xcfd286(0x1c1)]!==_0xcfd286(0x17b)&&(this[_0xcfd286(0x180)](),this[_0xcfd286(0x193)]());}[_0x1e8697(0x186)](){const _0x120e89=_0x1e8697,_0x5e5d04={'eventID':_0x296f5d[_0x120e89(0x1ce)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x120e89(0x1f7)]['send'](_0x5e5d04,this['_unitID']);}[_0x1e8697(0x147)](){const _0x5c8918=_0x1e8697;this[_0x5c8918(0x1af)]=null,this[_0x5c8918(0x1c1)]!==_0x5c8918(0x1f3)&&this[_0x5c8918(0x201)]();}[_0x1e8697(0x183)](_0x180552){const _0x4a00aa=_0x1e8697;if(this[_0x4a00aa(0x1c1)]===_0x4a00aa(0x170)&&this[_0x4a00aa(0x1af)]===_0x180552[_0x4a00aa(0x15e)][_0x4a00aa(0x1a4)]){const _0x110420=_0x296f5d[_0x4a00aa(0x12d)](_0x180552[_0x4a00aa(0x15e)])[_0x4a00aa(0x152)][_0x4a00aa(0x1bc)]()[_0x4a00aa(0x1fb)](_0x3925c1=>_0x3925c1['id']===_0x5878f8[_0x4a00aa(0x1dd)]['id']);if(_0x110420){const _0x530b2f=_0x110420[_0x4a00aa(0x116)][_0x4a00aa(0x11b)],_0x4b9356=_0x110420[_0x4a00aa(0x116)]['sheet']['id'];setTimeout(()=>{const _0x67b8a2=_0x4a00aa;this[_0x67b8a2(0x1cb)][_0x67b8a2(0x19a)](_0x5878f8['SetWorksheetActiveOperation']['id'],{'unitId':_0x530b2f,'subUnitId':_0x4b9356},{'fromCollab':!0x0});});}}}[_0x1e8697(0x1c9)](){const _0x487871=_0x1e8697;this[_0x487871(0x151)][_0x487871(0x133)](_0x487871(0x1f3));const _0x3dace6=new Map(),_0x18960f=this[_0x487871(0x188)]=new _0x4ea4da[(_0x487871(0x1b4))]();_0x18960f['add'](_0x4ea4da[_0x487871(0x19d)](()=>{const _0x14ad8e=_0x487871;_0x3dace6[_0x14ad8e(0x137)](_0x115275=>_0x115275['complete']()),_0x3dace6[_0x14ad8e(0x174)]();})),_0x18960f['add'](this[_0x487871(0x1cb)][_0x487871(0x1de)](_0x1dfeb9=>{const _0x1579ca=_0x487871;var _0xb092f3;if(_0x1dfeb9[_0x1579ca(0x1d3)]!==_0x4ea4da[_0x1579ca(0x172)][_0x1579ca(0x199)]||!this[_0x1579ca(0x189)][_0x1579ca(0x1e1)](_0x1dfeb9['id']))return;const {id:_0x31f935}=_0x1dfeb9;let _0x4628b0;_0x3dace6[_0x1579ca(0x18c)](_0x31f935)?_0x4628b0=_0x3dace6['get'](_0x31f935):(_0x4628b0=new _0x4b1e04[(_0x1579ca(0x132))](),_0x3dace6[_0x1579ca(0x18a)](_0x31f935,_0x4628b0),_0x4628b0['pipe'](_0x120056[_0x1579ca(0x1dc)]((_0xb092f3=this[_0x1579ca(0x121)][_0x1579ca(0x1f0)](_0x4c90ac))!=null?_0xb092f3:_0xe3bdac,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1579ca(0x18f)](_0x1fe29a=>{const _0x430bc5=_0x1579ca;this[_0x430bc5(0x1f7)][_0x430bc5(0x1b3)]({'eventID':_0x296f5d[_0x430bc5(0x1ce)][_0x430bc5(0x1c4)],'data':{'unitID':this['_unitID'],'operations':{[_0x1fe29a['id']]:{'id':_0x1fe29a['id'],'params':JSON[_0x430bc5(0x150)](_0x1fe29a[_0x430bc5(0x116)])}}}},this['_unitID']);})),_0x4628b0[_0x1579ca(0x133)](_0x1dfeb9);})),this[_0x487871(0x189)][_0x487871(0x204)](this[_0x487871(0x14e)])['forEach'](_0x1e076a=>this[_0x487871(0x1f7)][_0x487871(0x1b3)]({'eventID':_0x296f5d['CollaborationEvent'][_0x487871(0x1c4)],'data':{'unitID':this[_0x487871(0x14e)],'operations':{[_0x1e076a['id']]:{'id':_0x1e076a['id'],'params':JSON[_0x487871(0x150)](_0x1e076a[_0x487871(0x116)])}}}},this['_unitID']));}[_0x1e8697(0x180)](){const _0x90e8af=_0x1e8697;var _0x51b689;this[_0x90e8af(0x151)]['next'](_0x90e8af(0x1e9)),(_0x51b689=this['_commandDisposable'])==null||_0x51b689[_0x90e8af(0x1f9)](),this[_0x90e8af(0x188)]=null;}[_0x1e8697(0x193)](){const _0x47a2ff=_0x1e8697;var _0x5ecce6;(_0x5ecce6=this[_0x47a2ff(0x188)])==null||_0x5ecce6[_0x47a2ff(0x1f9)](),this['_status$']['next'](_0x47a2ff(0x170));}['_beIdle'](){const _0x2531c2=_0x1e8697;var _0xd52c7f;this[_0x2531c2(0x151)][_0x2531c2(0x133)](_0x2531c2(0x1e9)),(_0xd52c7f=this[_0x2531c2(0x188)])==null||_0xd52c7f[_0x2531c2(0x1f9)](),this[_0x2531c2(0x188)]=null;}[_0x1e8697(0x1e6)](){const _0x3bd8d7=_0x1e8697;var _0x3dc3ee;this[_0x3bd8d7(0x151)][_0x3bd8d7(0x133)](_0x3bd8d7(0x17b)),(_0x3dc3ee=this[_0x3bd8d7(0x188)])==null||_0x3dc3ee['dispose']();}[_0x1e8697(0x19f)](_0x2af8f4){const _0x5f06b2=_0x1e8697;if([_0x5f06b2(0x1f3),'not-following',_0x5f06b2(0x1ed)][_0x5f06b2(0x1e3)](this[_0x5f06b2(0x1c1)])||!_0x2af8f4[_0x5f06b2(0x15e)][_0x5f06b2(0x1a5)]||_0x2af8f4['data'][_0x5f06b2(0x1a5)]===this['_collabSession'][_0x5f06b2(0x1ae)]())return;this[_0x5f06b2(0x1c1)]===_0x5f06b2(0x1e9)&&this['_startFollowing']();const _0x181f15=_0x2af8f4[_0x5f06b2(0x15e)][_0x5f06b2(0x182)];Object[_0x5f06b2(0x1e0)](_0x181f15)[_0x5f06b2(0x137)](_0x556113=>{const _0x331159=_0x5f06b2;this[_0x331159(0x1cb)][_0x331159(0x19a)](_0x556113['id'],_0x556113[_0x331159(0x116)]?JSON[_0x331159(0x192)](_0x556113[_0x331159(0x116)]):null,{'fromCollab':!0x0});});}[_0x1e8697(0x1b0)](){const _0x6f2c5d=_0x1e8697;var _0x4609ef;this['_status$'][_0x6f2c5d(0x133)](_0x6f2c5d(0x1ed)),(_0x4609ef=this[_0x6f2c5d(0x188)])==null||_0x4609ef[_0x6f2c5d(0x1f9)]();}[_0x1e8697(0x1ca)](){const _0x163644=_0x1e8697;this['_status$'][_0x163644(0x133)](_0x163644(0x1e9)),this[_0x163644(0x186)]();}},_0x3ff051[_0x1e8697(0x115)]=_0x4cd045([_0x180174(0x2,_0x4ea4da[_0x1e8697(0x181)]),_0x180174(0x3,_0x4ea4da[_0x1e8697(0x1ac)](_0x1c4fcf)),_0x180174(0x4,_0x4ea4da[_0x1e8697(0x175)])],_0x3ff051['LiveShareCoordinator']);function _0x2e9f9f(){const _0x5b114f=_0x1e8697,_0x37a584=_0x129c97['useDependency'](_0x3ff051[_0x5b114f(0x1db)]),_0x19b75a=_0x129c97[_0x5b114f(0x1cd)](_0x4ea4da[_0x5b114f(0x185)]),_0x12596a=_0x129c97[_0x5b114f(0x19e)](()=>_0x19b75a[_0x5b114f(0x1c5)](_0x4ea4da[_0x5b114f(0x1a2)][_0x5b114f(0x187)]),void 0x0,!0x1,[]),[_0x3b7c7b,_0x49ddd9]=_0x1c0b58[_0x5b114f(0x143)](null),[_0xb4de3,_0x138299]=_0x1c0b58[_0x5b114f(0x143)](_0x4d7256['IDLE']),_0x12c36a=_0x1c0b58['useRef'](null);return _0x1c0b58[_0x5b114f(0x113)](()=>(_0x12596a&&_0x37a584['getLiveShareCoordinator'](_0x12596a[_0x5b114f(0x15b)]())[_0x5b114f(0x120)](_0x26ee11=>{const _0x1b625f=_0x5b114f;_0x49ddd9(_0x26ee11),_0x12c36a[_0x1b625f(0x1a3)]=_0x26ee11['status$'][_0x1b625f(0x18f)](_0x139d86=>{_0x138299(_0x139d86);});}),()=>{const _0x3dcd57=_0x5b114f;var _0xcee751;(_0xcee751=_0x12c36a[_0x3dcd57(0x1a3)])==null||_0xcee751[_0x3dcd57(0x1a9)](),_0x12c36a[_0x3dcd57(0x1a3)]=null;}),[_0x12596a,_0x37a584]),_0x3b7c7b?_0x53bcf5[_0x5b114f(0x126)](_0x261788[_0x5b114f(0x149)],{'align':_0x5b114f(0x123),'disabled':_0xb4de3===_0x4d7256['OFFLINE'],'className':_0x5b114f(0x165),'overlay':_0x53bcf5[_0x5b114f(0x126)](_0x3807cb,{'status':_0xb4de3,'coordinator':_0x3b7c7b}),'children':_0x53bcf5[_0x5b114f(0x126)](_0x5b114f(0x164),{'className':_0x261788[_0x5b114f(0x167)](_0x5b114f(0x1e5),{'univer-cursor-not-allowed':_0xb4de3===_0x4d7256[_0x5b114f(0x169)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xb4de3!==_0x4d7256[_0x5b114f(0x169)]}),'type':'button','children':_0x53bcf5['jsx'](_0x438626,{'className':_0x5b114f(0x198)})})}):null;}function _0x3807cb(_0x341f8b){const _0x1b4b91=_0x1e8697,{status:_0x228f42,coordinator:_0x3a07ad}=_0x341f8b;switch(_0x228f42){case _0x4d7256[_0x1b4b91(0x14b)]:return _0x53bcf5[_0x1b4b91(0x126)](_0x311147,{'coordinator':_0x3a07ad});case _0x4d7256[_0x1b4b91(0x11d)]:return _0x53bcf5[_0x1b4b91(0x126)](_0x50f9b6,{'coordinator':_0x3a07ad});case _0x4d7256[_0x1b4b91(0x1e2)]:return _0x53bcf5[_0x1b4b91(0x126)](_0x27705d,{'coordinator':_0x3a07ad});case _0x4d7256[_0x1b4b91(0x169)]:return _0x53bcf5[_0x1b4b91(0x126)](_0xf88de6,{});case _0x4d7256['PRESENTING']:return _0x53bcf5[_0x1b4b91(0x126)](_0x4357ca,{'coordinator':_0x3a07ad});default:return null;}}function _0x311147(_0x26fb9e){const _0x27367a=_0x1e8697,{coordinator:_0x9b8ceb}=_0x26fb9e;return _0x53bcf5[_0x27367a(0x153)](_0x53bcf5[_0x27367a(0x1f2)],{'children':[_0x53bcf5[_0x27367a(0x126)](_0x27367a(0x18d),{'className':_0x27367a(0x1ba),'children':_0x27367a(0x154)}),_0x53bcf5[_0x27367a(0x126)](_0x261788['Button'],{'onClick':()=>_0x9b8ceb[_0x27367a(0x1ee)](),'children':_0x27367a(0x148)})]});}function _0x50f9b6(_0x93be78){const _0x48fe33=_0x1e8697,{coordinator:_0x523447}=_0x93be78;return _0x53bcf5[_0x48fe33(0x153)](_0x53bcf5[_0x48fe33(0x1f2)],{'children':[_0x53bcf5[_0x48fe33(0x126)](_0x48fe33(0x18d),{'className':_0x48fe33(0x1ba),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x53bcf5[_0x48fe33(0x126)](_0x261788[_0x48fe33(0x200)],{'onClick':()=>_0x523447[_0x48fe33(0x125)](),'children':_0x48fe33(0x1d1)})]});}function _0x27705d(_0x25482a){const _0x1b1303=_0x1e8697,{coordinator:_0x586ddd}=_0x25482a;return _0x53bcf5[_0x1b1303(0x153)](_0x53bcf5['Fragment'],{'children':[_0x53bcf5[_0x1b1303(0x126)](_0x1b1303(0x18d),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1b1303(0x1f5)}),_0x53bcf5[_0x1b1303(0x126)](_0x261788[_0x1b1303(0x200)],{'variant':_0x1b1303(0x1d2),'onClick':()=>_0x586ddd[_0x1b1303(0x124)](),'children':'Start\x20following'})]});}function _0x4357ca(_0x9c2d71){const _0x1c372e=_0x1e8697,{coordinator:_0x410064}=_0x9c2d71;return _0x53bcf5['jsxs'](_0x53bcf5['Fragment'],{'children':[_0x53bcf5[_0x1c372e(0x126)](_0x1c372e(0x18d),{'className':_0x1c372e(0x1ba),'children':_0x1c372e(0x156)}),_0x53bcf5[_0x1c372e(0x126)](_0x261788[_0x1c372e(0x200)],{'variant':'default','onClick':()=>_0x410064[_0x1c372e(0x17c)](),'children':_0x1c372e(0x179)})]});}function _0xf88de6(){const _0x46f02b=_0x1e8697;return _0x53bcf5[_0x46f02b(0x126)](_0x53bcf5[_0x46f02b(0x1f2)],{'children':_0x46f02b(0x1f1)});}var _0x2681c6=Object[_0x1e8697(0x14c)],_0x2fa101=(_0x3fae11,_0x222364,_0x4b0b94,_0x1a8ed6)=>{const _0x38dadd=_0x1e8697;for(var _0x2c1124=_0x1a8ed6>0x1?void 0x0:_0x1a8ed6?_0x2681c6(_0x222364,_0x4b0b94):_0x222364,_0x4f32fe=_0x3fae11[_0x38dadd(0x196)]-0x1,_0x4f4d54;_0x4f32fe>=0x0;_0x4f32fe--)(_0x4f4d54=_0x3fae11[_0x4f32fe])&&(_0x2c1124=_0x4f4d54(_0x2c1124)||_0x2c1124);return _0x2c1124;},_0x1903ef=(_0x1f9c8e,_0x5ddd22)=>(_0x3d4deb,_0x31b2f7)=>_0x5ddd22(_0x3d4deb,_0x31b2f7,_0x1f9c8e);_0x3ff051[_0x1e8697(0x146)]=class extends _0x4ea4da[_0x1e8697(0x13c)]{constructor(_0x42608e,_0x3aa395){const _0x341154=_0x1e8697;super(),this['_injector']=_0x42608e,this[_0x341154(0x1d5)]=_0x3aa395,this[_0x341154(0x1da)]();}[_0x1e8697(0x1da)](){const _0x59cb3f=_0x1e8697;this[_0x59cb3f(0x162)](this[_0x59cb3f(0x1d5)][_0x59cb3f(0x1b9)](_0x129c97[_0x59cb3f(0x118)][_0x59cb3f(0x15f)],()=>_0x129c97[_0x59cb3f(0x1c3)](_0x2e9f9f,this[_0x59cb3f(0x17a)])));}},_0x3ff051[_0x1e8697(0x146)]=_0x2fa101([_0x1903ef(0x0,_0x4ea4da[_0x1e8697(0x1ac)](_0x4ea4da['Injector'])),_0x1903ef(0x1,_0x129c97[_0x1e8697(0x168)])],_0x3ff051[_0x1e8697(0x146)]);const _0x428506=_0x1e8697(0x176),_0x37bf3b={};var _0x3fb9fa=Object['getOwnPropertyDescriptor'],_0x3a25f6=(_0x532250,_0x4d1b96,_0x3478cb,_0x388f85)=>{const _0x44bf3c=_0x1e8697;for(var _0x1aeb2c=_0x388f85>0x1?void 0x0:_0x388f85?_0x3fb9fa(_0x4d1b96,_0x3478cb):_0x4d1b96,_0x578197=_0x532250[_0x44bf3c(0x196)]-0x1,_0x533149;_0x578197>=0x0;_0x578197--)(_0x533149=_0x532250[_0x578197])&&(_0x1aeb2c=_0x533149(_0x1aeb2c)||_0x1aeb2c);return _0x1aeb2c;},_0x2ed6d8=(_0xdcc604,_0x107f54)=>(_0x12f12f,_0x24937a)=>_0x107f54(_0x12f12f,_0x24937a,_0xdcc604);let _0x466bea=class extends _0x4ea4da[_0x1e8697(0x13c)]{constructor(_0x4b5bfb){const _0x19931f=_0x1e8697;super(),this[_0x19931f(0x189)]=_0x4b5bfb,this[_0x19931f(0x1cf)]();}[_0x1e8697(0x1cf)](){const _0x58496e=_0x1e8697;[_0xd4b36e[_0x58496e(0x16d)]['id'],_0xd4b36e[_0x58496e(0x1a1)]['id'],_0x5878f8[_0x58496e(0x1b6)]['id']][_0x58496e(0x137)](_0x3d7977=>{const _0x2069bc=_0x58496e;this['disposeWithMe'](this[_0x2069bc(0x189)][_0x2069bc(0x1cc)](_0x3d7977));});}};_0x466bea=_0x3a25f6([_0x2ed6d8(0x0,_0x4ea4da[_0x1e8697(0x1ac)](_0x1c4fcf))],_0x466bea);var _0x4c61ac=Object[_0x1e8697(0x11f)],_0x50aba2=Object[_0x1e8697(0x14c)],_0x2431cd=(_0x46ccc0,_0x1c07d7,_0x344041)=>_0x1c07d7 in _0x46ccc0?_0x4c61ac(_0x46ccc0,_0x1c07d7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x344041}):_0x46ccc0[_0x1c07d7]=_0x344041,_0x7addbd=(_0x251502,_0x44a028,_0x50371a,_0x219ea3)=>{for(var _0x5a58eb=_0x219ea3>0x1?void 0x0:_0x219ea3?_0x50aba2(_0x44a028,_0x50371a):_0x44a028,_0x381c22=_0x251502['length']-0x1,_0x2ecde6;_0x381c22>=0x0;_0x381c22--)(_0x2ecde6=_0x251502[_0x381c22])&&(_0x5a58eb=_0x2ecde6(_0x5a58eb)||_0x5a58eb);return _0x5a58eb;},_0x3d7c9a=(_0x32693c,_0x4d2bc9)=>(_0x28242d,_0x432162)=>_0x4d2bc9(_0x28242d,_0x432162,_0x32693c),_0x39ec2c=(_0x2976ea,_0xdef04c,_0x5f435d)=>_0x2431cd(_0x2976ea,typeof _0xdef04c!=_0x1e8697(0x15d)?_0xdef04c+'':_0xdef04c,_0x5f435d);const _0x3a4c2d=_0x1e8697(0x1aa);_0x3ff051['UniverLiveSharePlugin']=class extends _0x4ea4da[_0x1e8697(0x16f)]{constructor(_0x1e56e6=_0x37bf3b,_0x298cab,_0x4ab64d){const _0x44aa19=_0x1e8697;super(),this[_0x44aa19(0x1fa)]=_0x1e56e6,this[_0x44aa19(0x17a)]=_0x298cab,this['_configService']=_0x4ab64d;const {..._0x15be3c}=_0x4ea4da[_0x44aa19(0x191)]({},_0x37bf3b,this[_0x44aa19(0x1fa)]);this[_0x44aa19(0x121)]['setConfig'](_0x428506,_0x15be3c);}[_0x1e8697(0x1ef)](){const _0x4f9bda=_0x1e8697;_0x4ea4da[_0x4f9bda(0x1d0)](this[_0x4f9bda(0x17a)],_0x4ea4da[_0x4f9bda(0x1d8)]([[_0x1c4fcf],[_0x3ff051[_0x4f9bda(0x1db)]],[_0x466bea],[_0x3ff051[_0x4f9bda(0x146)]]],this[_0x4f9bda(0x1fa)]['override'])),_0x4ea4da[_0x4f9bda(0x1b7)](this[_0x4f9bda(0x17a)],[[_0x466bea]]);}['onRendered'](){const _0x5742a5=_0x1e8697;_0x4ea4da[_0x5742a5(0x1b7)](this[_0x5742a5(0x17a)],[[_0x3ff051['DesktopLiveShareController']]]);}},_0x39ec2c(_0x3ff051[_0x1e8697(0x12c)],_0x1e8697(0x1d3),_0x4ea4da[_0x1e8697(0x1a2)][_0x1e8697(0x190)]),_0x39ec2c(_0x3ff051[_0x1e8697(0x12c)],'pluginName',_0x3a4c2d),_0x3ff051[_0x1e8697(0x12c)]=_0x7addbd([_0x4ea4da['DependentOn'](_0x225879[_0x1e8697(0x1ff)]),_0x3d7c9a(0x1,_0x4ea4da['Inject'](_0x4ea4da[_0x1e8697(0x1d4)])),_0x3d7c9a(0x2,_0x4ea4da[_0x1e8697(0x181)])],_0x3ff051[_0x1e8697(0x12c)]),_0x3ff051['LiveShare']=_0x2e9f9f,_0x3ff051[_0x1e8697(0x1bf)]=_0x1c4fcf,_0x3ff051[_0x1e8697(0x19c)]=_0x4d7256,Object[_0x1e8697(0x11f)](_0x3ff051,Symbol[_0x1e8697(0x159)],{'value':_0x1e8697(0x1a7)});}));function _0x3b31(_0x4386de,_0x16d86e){_0x4386de=_0x4386de-0x113;const _0x49f886=_0x49f8();let _0x3b3164=_0x49f886[_0x4386de];return _0x3b3164;}function _0x49f8(){const _0x1d0695=['delete','_univerInstanceService','string','_stopPresenting','IConfigService','operations','_handleNewChangeSets','104FUlBcP','IUniverInstanceService','_fetchOperations','UNIVER_SHEET','_commandDisposable','_liveShareService','set','from','has','div','entries','subscribe','UNIVER_UNKNOWN','merge','parse','_startFollowing','_sharedOperations','UniverCore','length','colorChannel1','univer-size-4','OPERATION','executeCommand','@univerjs/design','LiveShareStatus','toDisposable','useObservable','_handleOperation','function','SetScrollOperation','UniverInstanceType','current','memberID','presenter','UniverProCollaboration','Module','get','unsubscribe','UNIVER_LIVE_SHARE_PLUGIN','UniverUi','Inject','complete','getMemberID','_presenter','_handleOffline','univerjs-icon\x20univerjs-icon-','mask','send','DisposableCollection','UniverSheetsUi','SetWorksheetActiveOperation','touchDependencies','UniverDesign','registerComponent','univer-mb-3\x20univer-w-full\x20univer-text-sm','add','reverse','RxDisposable','UniverIcon','LiveShareService','893763qSYWug','_status','replace','connectInjector','LIVESHARE_OPERATION','getCurrentTypeOfUnit$','PRESENTING','defIds','react/jsx-runtime','_startPresenting','_handleOnline','_commandService','registerSharedOperation','useDependency','CollaborationEvent','_init','registerDependencies','Stop\x20following','text','type','Injector','_uiPartsService','substring','getTypeOfUnitDisposed$','mergeOverrideWithDependencies','svg','_mountLiveShare','LiveShareController','throttleTime','InsertSheetMutation','onCommandExecuted','trim','values','shouldShareOperation','NOT_FOLLOWING','includes','sessionStatus$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_stopFollowing','2249502OtYtyM','none','idle','222620ORxWlK','@univerjs/sheets','amd','offline','tryStartPresenting','onStarting','getConfig','You\x27are\x20offline.','Fragment','presenting','_handleNewHost','You\x27re\x20not\x20following\x20the\x20presenter','20sOUpGd','_collabSession','_entities','dispose','_config','find','_startLiveShareCoordinator','@univerjs/core','LIVESHARE_TERMINATE','UniverCollaborationClientPlugin','Button','_beIdle','object','createElement','getInitialStates','useEffect','children','LiveShareCoordinator','params','LiveShareIcon','BuiltInUIPart','@univerjs/sheets-ui','useRef','unitId','_reporters','FOLLOWING','getStatus','defineProperty','then','_configService','dispose$','end','startFollowing','stopFollowing','jsx','getLiveShareCoordinator','random','getTypeOfUnitAdded$','init','BehaviorSubject','UniverLiveSharePlugin','parseProtocolChangeset','event$','react','xlink:href','asObservable','Subject','next','SessionStatus','defs','requireSession','forEach','operators','forwardRef','attrs','createInstance','Disposable','toString','evenodd','UniverProLiveShare','map','20464uZpOmg','live-share-icon','useState','CollaborationSessionService','use','DesktopLiveShareController','_handleTerminate','Start','Dropdown','4iGXSxT','IDLE','getOwnPropertyDescriptor','pipe','_unitID','@univerjs/ui','stringify','_status$','mutations','jsxs','Present\x20this\x20document','fill','You\x27re\x20presenting\x20the\x20document','React','2152563DWPzmI','toStringTag','currentColor','getUnitId','rxjs','symbol','data','HEADER_MENU','displayName','1em','disposeWithMe','exports','button','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','status$','clsx','IUIPartsService','OFFLINE','idSuffix','path','takeUntil','SetZoomRatioOperation','tag','Plugin','following','19119580vPNNaq','CommandType','4513040DqLBqP','clear','ICommandService','live-share.config','0\x200\x2017\x2017','_collabSessionService','Stop\x20presenting','_injector','not-following','stopPresenting'];_0x49f8=function(){return _0x1d0695;};return _0x49f8();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.12.3-experimental.20251205-
|
|
3
|
+
"version": "0.12.3-experimental.20251205-71d07c3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -57,14 +57,14 @@
|
|
|
57
57
|
},
|
|
58
58
|
"dependencies": {
|
|
59
59
|
"@univerjs/icons": "^1.0.2",
|
|
60
|
-
"@univerjs-pro/collaboration": "0.12.3-experimental.20251205-
|
|
61
|
-
"@univerjs
|
|
62
|
-
"@univerjs/
|
|
63
|
-
"@univerjs/
|
|
64
|
-
"@univerjs/
|
|
65
|
-
"@univerjs/
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs/ui": "0.12.3-experimental.20251205-
|
|
60
|
+
"@univerjs-pro/collaboration": "0.12.3-experimental.20251205-71d07c3",
|
|
61
|
+
"@univerjs/core": "0.12.3-experimental.20251205-71d07c3",
|
|
62
|
+
"@univerjs-pro/collaboration-client": "0.12.3-experimental.20251205-71d07c3",
|
|
63
|
+
"@univerjs/design": "0.12.3-experimental.20251205-71d07c3",
|
|
64
|
+
"@univerjs/engine-render": "0.12.3-experimental.20251205-71d07c3",
|
|
65
|
+
"@univerjs/ui": "0.12.3-experimental.20251205-71d07c3",
|
|
66
|
+
"@univerjs/sheets": "0.12.3-experimental.20251205-71d07c3",
|
|
67
|
+
"@univerjs/sheets-ui": "0.12.3-experimental.20251205-71d07c3"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
70
|
"postcss": "^8.5.6",
|