@univerjs-pro/live-share 0.8.3-nightly.202507031607 → 0.9.0
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/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x38e2ae=_0x48f8;(function(_0x3bbf6e,_0x4301f8){var _0x1b7cf7=_0x48f8,_0x18bbfb=_0x3bbf6e();while(!![]){try{var _0x1149be=-parseInt(_0x1b7cf7(0x253))/0x1*(parseInt(_0x1b7cf7(0x1e9))/0x2)+parseInt(_0x1b7cf7(0x200))/0x3+-parseInt(_0x1b7cf7(0x27c))/0x4+-parseInt(_0x1b7cf7(0x265))/0x5*(-parseInt(_0x1b7cf7(0x23b))/0x6)+-parseInt(_0x1b7cf7(0x1e4))/0x7*(parseInt(_0x1b7cf7(0x2b5))/0x8)+parseInt(_0x1b7cf7(0x2a6))/0x9+parseInt(_0x1b7cf7(0x28c))/0xa;if(_0x1149be===_0x4301f8)break;else _0x18bbfb['push'](_0x18bbfb['shift']());}catch(_0xc42097){_0x18bbfb['push'](_0x18bbfb['shift']());}}}(_0x541f,0x27b9b));var U=Object[_0x38e2ae(0x1e0)],F=(_0x21955b,_0x64e65c,_0x2f8deb)=>_0x64e65c in _0x21955b?U(_0x21955b,_0x64e65c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2f8deb}):_0x21955b[_0x64e65c]=_0x2f8deb,v=(_0x2ed5a2,_0x517e8a,_0x59e626)=>F(_0x2ed5a2,typeof _0x517e8a!=_0x38e2ae(0x1ee)?_0x517e8a+'':_0x517e8a,_0x59e626);Object['defineProperty'](exports,Symbol[_0x38e2ae(0x27e)],{'value':'Module'});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$=_0x38e2ae(0x284),x={};class O extends o['Disposable']{constructor(){var _0x41b57e=_0x38e2ae;super(...arguments),v(this,_0x41b57e(0x1ef),new Set()),v(this,_0x41b57e(0x244),new Set());}['registerSharedOperation'](_0x212ea6){var _0x8fb369=_0x38e2ae;return this[_0x8fb369(0x1ef)][_0x8fb369(0x23a)](_0x212ea6),o['toDisposable'](()=>this['_sharedOperations'][_0x8fb369(0x1f5)](_0x212ea6));}[_0x38e2ae(0x2b8)](_0x53b651){var _0x585148=_0x38e2ae;return this[_0x585148(0x244)]['add'](_0x53b651),o[_0x585148(0x1ed)](()=>this['_reporters'][_0x585148(0x1f5)](_0x53b651));}[_0x38e2ae(0x26e)](_0x2a7cdd){var _0x4ec0f0=_0x38e2ae;return this[_0x4ec0f0(0x1ef)][_0x4ec0f0(0x25d)](_0x2a7cdd);}[_0x38e2ae(0x2c0)](_0xfa32b7){var _0x53bb49=_0x38e2ae;return Array[_0x53bb49(0x1e1)](this['_reporters'])[_0x53bb49(0x214)](_0xed69f4=>_0xed69f4(_0xfa32b7));}}var H=Object[_0x38e2ae(0x247)],V=(_0xd0a0c0,_0x6db480,_0x5ef7d4,_0x2bbffe)=>{var _0xabc256=_0x38e2ae;for(var _0x455dd8=_0x2bbffe>0x1?void 0x0:_0x2bbffe?H(_0x6db480,_0x5ef7d4):_0x6db480,_0x3ad988=_0xd0a0c0[_0xabc256(0x21e)]-0x1,_0xbd0e0e;_0x3ad988>=0x0;_0x3ad988--)(_0xbd0e0e=_0xd0a0c0[_0x3ad988])&&(_0x455dd8=_0xbd0e0e(_0x455dd8)||_0x455dd8);return _0x455dd8;},k=(_0x64a189,_0x5e9f3d)=>(_0x150fc8,_0x3efd10)=>_0x5e9f3d(_0x150fc8,_0x3efd10,_0x64a189);let E=class extends o[_0x38e2ae(0x1eb)]{constructor(_0x3c608c){var _0x96c136=_0x38e2ae;super(),this[_0x96c136(0x263)]=_0x3c608c,this[_0x96c136(0x2b3)]();}['_init'](){var _0x3c5ac6=_0x38e2ae;[w[_0x3c5ac6(0x219)]['id'],w[_0x3c5ac6(0x20f)]['id'],C[_0x3c5ac6(0x29e)]['id']][_0x3c5ac6(0x2a0)](_0xbe8735=>{var _0x2429ce=_0x3c5ac6;this[_0x2429ce(0x215)](this['_liveShareService'][_0x2429ce(0x1f4)](_0xbe8735));});}};E=V([k(0x0,o['Inject'](O))],E);var u=function(){var _0x295a57=_0x38e2ae;return u=Object[_0x295a57(0x29c)]||function(_0x3d83a8){var _0x18306c=_0x295a57;for(var _0x62522,_0x5748c3=0x1,_0x39951a=arguments[_0x18306c(0x21e)];_0x5748c3<_0x39951a;_0x5748c3++){_0x62522=arguments[_0x5748c3];for(var _0x354362 in _0x62522)Object[_0x18306c(0x202)][_0x18306c(0x298)][_0x18306c(0x280)](_0x62522,_0x354362)&&(_0x3d83a8[_0x354362]=_0x62522[_0x354362]);}return _0x3d83a8;},u[_0x295a57(0x2a3)](this,arguments);},M=function(_0x4314d0,_0x50d146){var _0x837eb8=_0x38e2ae,_0x26faad={};for(var _0x1d7a71 in _0x4314d0)Object[_0x837eb8(0x202)][_0x837eb8(0x298)]['call'](_0x4314d0,_0x1d7a71)&&_0x50d146['indexOf'](_0x1d7a71)<0x0&&(_0x26faad[_0x1d7a71]=_0x4314d0[_0x1d7a71]);if(_0x4314d0!=null&&typeof Object[_0x837eb8(0x230)]==_0x837eb8(0x283)){for(var _0x3b0b07=0x0,_0x1d7a71=Object[_0x837eb8(0x230)](_0x4314d0);_0x3b0b07<_0x1d7a71[_0x837eb8(0x21e)];_0x3b0b07++)_0x50d146[_0x837eb8(0x255)](_0x1d7a71[_0x3b0b07])<0x0&&Object['prototype'][_0x837eb8(0x23f)][_0x837eb8(0x280)](_0x4314d0,_0x1d7a71[_0x3b0b07])&&(_0x26faad[_0x1d7a71[_0x3b0b07]]=_0x4314d0[_0x1d7a71[_0x3b0b07]]);}return _0x26faad;},j=f[_0x38e2ae(0x235)](function(_0x3dcd79,_0x4e73de){var _0xbccfec=_0x38e2ae,_0x27e056=_0x3dcd79['icon'],_0x5eed1e=_0x3dcd79['id'],_0x5864c3=_0x3dcd79[_0xbccfec(0x2ba)],_0x21792a=_0x3dcd79['extend'],_0xa9f0ca=M(_0x3dcd79,['icon','id','className',_0xbccfec(0x26b)]),_0x5f4394=_0xbccfec(0x295)[_0xbccfec(0x260)](_0x5eed1e,'\x20')[_0xbccfec(0x260)](_0x5864c3||'')[_0xbccfec(0x276)](),_0x91a117=f[_0xbccfec(0x27f)]('_'['concat'](G()));return y(_0x27e056,''['concat'](_0x5eed1e),{'defIds':_0x27e056[_0xbccfec(0x28a)],'idSuffix':_0x91a117[_0xbccfec(0x259)]},u({'ref':_0x4e73de,'className':_0x5f4394},_0xa9f0ca),_0x21792a);});function y(_0x53dbb4,_0x5a856c,_0x19b4fb,_0x3c2e90,_0x3d16f3){var _0x7de0b3=_0x38e2ae;return f[_0x7de0b3(0x229)](_0x53dbb4[_0x7de0b3(0x23d)],u(u({'key':_0x5a856c},q(_0x53dbb4,_0x19b4fb,_0x3d16f3)),_0x3c2e90),(W(_0x53dbb4,_0x19b4fb)[_0x7de0b3(0x218)]||[])[_0x7de0b3(0x214)](function(_0x5c83b3,_0x4f31f3){var _0xbe45f6=_0x7de0b3;return y(_0x5c83b3,''['concat'](_0x5a856c,'-')['concat'](_0x53dbb4[_0xbe45f6(0x23d)],'-')['concat'](_0x4f31f3),_0x19b4fb,void 0x0,_0x3d16f3);}));}function q(_0x1551af,_0x42506f,_0x193fee){var _0x1f2ee1=_0x38e2ae,_0x4265a2=u({},_0x1551af[_0x1f2ee1(0x1ea)]);_0x193fee!=null&&_0x193fee[_0x1f2ee1(0x24c)]&&_0x4265a2[_0x1f2ee1(0x1ec)]===_0x1f2ee1(0x24c)&&(_0x4265a2['fill']=_0x193fee['colorChannel1']),_0x1551af['tag']===_0x1f2ee1(0x26c)&&_0x4265a2['id']&&(_0x4265a2['id']=_0x4265a2['id']+_0x42506f[_0x1f2ee1(0x1f9)]),Object[_0x1f2ee1(0x275)](_0x4265a2)[_0x1f2ee1(0x2a0)](function(_0x274953){var _0x114ffc=_0x1f2ee1,_0x24af19=_0x274953[0x0],_0x577882=_0x274953[0x1];_0x24af19==='mask'&&typeof _0x577882==_0x114ffc(0x1f2)&&(_0x4265a2[_0x24af19]=_0x577882[_0x114ffc(0x22c)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x42506f[_0x114ffc(0x1f9)],')')));});var _0x59be45=_0x42506f[_0x1f2ee1(0x28a)];return!_0x59be45||_0x59be45[_0x1f2ee1(0x21e)]===0x0||(_0x1551af[_0x1f2ee1(0x23d)]===_0x1f2ee1(0x20b)&&_0x4265a2[_0x1f2ee1(0x2c2)]&&(_0x4265a2['xlink:href']=_0x4265a2[_0x1f2ee1(0x2c2)]+_0x42506f[_0x1f2ee1(0x1f9)]),Object[_0x1f2ee1(0x275)](_0x4265a2)['forEach'](function(_0x14554b){var _0x3cf784=_0x1f2ee1,_0x29e84b=_0x14554b[0x0],_0x1cd9cc=_0x14554b[0x1];typeof _0x1cd9cc=='string'&&(_0x4265a2[_0x29e84b]=_0x1cd9cc[_0x3cf784(0x22c)](/url\(#(.*)\)/,'url(#$1'[_0x3cf784(0x260)](_0x42506f['idSuffix'],')')));})),_0x4265a2;}function W(_0x55acb2,_0x4d30fc){var _0x2fd551=_0x38e2ae,_0x223ef1,_0x41d020=_0x4d30fc[_0x2fd551(0x28a)];return!_0x41d020||_0x41d020[_0x2fd551(0x21e)]===0x0?_0x55acb2:_0x55acb2[_0x2fd551(0x23d)]===_0x2fd551(0x29a)&&(!((_0x223ef1=_0x55acb2[_0x2fd551(0x218)])===null||_0x223ef1===void 0x0)&&_0x223ef1['length'])?u(u({},_0x55acb2),{'children':_0x55acb2['children'][_0x2fd551(0x214)](function(_0x4add29){var _0x310705=_0x2fd551;return typeof _0x4add29[_0x310705(0x1ea)]['id']==_0x310705(0x1f2)&&_0x41d020&&_0x41d020[_0x310705(0x231)](_0x4add29[_0x310705(0x1ea)]['id'])?u(u({},_0x4add29),{'attrs':u(u({},_0x4add29[_0x310705(0x1ea)]),{'id':_0x4add29[_0x310705(0x1ea)]['id']+_0x4d30fc[_0x310705(0x1f9)]})}):_0x4add29;})}):_0x55acb2;}function G(){var _0x5c0afd=_0x38e2ae;return Math[_0x5c0afd(0x21a)]()[_0x5c0afd(0x278)](0x24)['substring'](0x2,0x8);}j['displayName']=_0x38e2ae(0x264);var B={'tag':_0x38e2ae(0x2ab),'attrs':{'xmlns':_0x38e2ae(0x257),'fill':_0x38e2ae(0x28d),'viewBox':_0x38e2ae(0x22a),'width':'1em','height':'1em'},'children':[{'tag':_0x38e2ae(0x2ad),'attrs':{'fill':'currentColor','d':_0x38e2ae(0x20e)}},{'tag':'path','attrs':{'fill':_0x38e2ae(0x2bf),'d':_0x38e2ae(0x216),'fillRule':_0x38e2ae(0x25c),'clipRule':_0x38e2ae(0x25c)}}]},P=f[_0x38e2ae(0x235)](function(_0x291403,_0x261fcb){var _0x59c1c1=_0x38e2ae;return f['createElement'](j,Object[_0x59c1c1(0x29c)]({},_0x291403,{'id':'live-share-icon','ref':_0x261fcb,'icon':B}));});function _0x541f(){var _0x45eddd=['includes','subscribe','onCommandExecuted','univer-size-4','forwardRef','stringify','end','not-following','LiveShare','add','4344pkpJyJ','tryStartPresenting','tag','HEADER_MENU','propertyIsEnumerable','_beIdle','_univerInstanceService','Injector','_stopFollowing','_reporters','getValue','_fetchOperations','getOwnPropertyDescriptor','complete','_handleNewChangeSets','send','Dropdown','colorChannel1','_handleTerminate','get','IUIPartsService','SAME_OPERATION_SHARE_INTERVAL','touchDependencies','_startPresenting','241951doiksp','Present\x20this\x20document','indexOf','getConfig','http://www.w3.org/2000/svg','getLiveShareCoordinator','current','throttleTime','UniverInstanceType','evenodd','has','ONLINE','Start','concat','unitId','override','_liveShareService','UniverIcon','2140ROogDu','IDLE','ICommandService','dispose','parseProtocolChangeset','Button','extend','mask','IUniverInstanceService','shouldShareOperation','stopFollowing','_entities','startFollowing','useEffect','UNIVER_LIVE_SHARE_PLUGIN','div','entries','trim','pipe','toString','data','Fragment','SessionStatus','1196228IInmue','DesktopLiveShareController','toStringTag','useRef','call','You\x27re\x20not\x20following\x20the\x20presenter','connectInjector','function','live-share.config','LiveShareStatus','_mountLiveShare','_startLiveShareCoordinator','asObservable','following','defIds','_collabSession','1753270rEYlUi','none','useState','FOLLOWING','LiveShareController','CommandType','UniverLiveSharePlugin','_commandService','executeCommand','univerjs-icon\x20univerjs-icon-','OPERATION','offline','hasOwnProperty','NOT_FOLLOWING','defs','text','assign','registerDependencies','SetWorksheetActiveOperation','_injector','forEach','InsertSheetMutation','getTypeOfUnitAdded$','apply','OFFLINE','You\x27are\x20offline.','2432286ZczxHG','mutations','takeUntil','_presenter','memberID','svg','type','path','mergeOverrideWithDependencies','useObservable','PRESENTING','LiveShareIcon','createInstance','_init','parse','1248BBKjOa','_handleOnline','LiveShareCoordinator','registerInitialStateReporter','UNIVER_SHEET','className','jsxs','set','_startFollowing','getUnitId','currentColor','getInitialStates','NEW_CHANGESETS','xlink:href','displayName','Stop\x20presenting','UniverCollaborationClientPlugin','setConfig','requireSession','presenting','defineProperty','from','CollaborationEvent','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','10311ACUhTZ','merge','clsx','_status$','LIVESHARE_OPERATION','2TMUkJy','attrs','Disposable','fill','toDisposable','symbol','_sharedOperations','onStarting','next','string','params','registerSharedOperation','delete','_collabSessionService','_uiPartsService','sessionStatus$','idSuffix','find','LIVESHARE_REQUEST_HOST','getMemberID','registerComponent','stopPresenting','default','534174PiaUva','idle','prototype','_handleOffline','LIVESHARE_TERMINATE','_unitID','DisposableCollection','button','_commandDisposable','Inject','_configService','use','_handleNewHost','_handleOperation','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','SetScrollOperation','reverse','LiveShareService','getCurrentTypeOfUnit$','univer-mb-3\x20univer-w-full\x20univer-text-sm','map','disposeWithMe','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','children','SetZoomRatioOperation','random','dispose$','IConfigService','status$','length','unsubscribe','DependentOn','useDependency','_status','UNIVER_UNKNOWN','BehaviorSubject','values','BuiltInUIPart','init','jsx','createElement','0\x200\x2017\x2017','sheet','replace','RxDisposable','Subject','presenter','getOwnPropertySymbols'];_0x541f=function(){return _0x45eddd;};return _0x541f();}P[_0x38e2ae(0x2c3)]=_0x38e2ae(0x2b1);var Y=Object[_0x38e2ae(0x247)],R=(_0x10a538,_0x359703,_0x44dfeb,_0x40a385)=>{var _0x2510c9=_0x38e2ae;for(var _0x1f2b68=_0x40a385>0x1?void 0x0:_0x40a385?Y(_0x359703,_0x44dfeb):_0x359703,_0x526b74=_0x10a538[_0x2510c9(0x21e)]-0x1,_0x4a4e05;_0x526b74>=0x0;_0x526b74--)(_0x4a4e05=_0x10a538[_0x526b74])&&(_0x1f2b68=_0x4a4e05(_0x1f2b68)||_0x1f2b68);return _0x1f2b68;},S=(_0x4b7523,_0x11e54c)=>(_0xd3f183,_0x2943f0)=>_0x11e54c(_0xd3f183,_0x2943f0,_0x4b7523);exports[_0x38e2ae(0x290)]=class extends o['RxDisposable']{constructor(_0x1b9b73,_0x338d9b,_0x552d11){var _0x20df48=_0x38e2ae;super(),v(this,_0x20df48(0x270),new Map()),(this[_0x20df48(0x241)]=_0x1b9b73,this['_injector']=_0x338d9b,this[_0x20df48(0x1f6)]=_0x552d11,this[_0x20df48(0x2b3)]());}async[_0x38e2ae(0x258)](_0x206daa){var _0x22377c=_0x38e2ae;return this[_0x22377c(0x270)]['has'](_0x206daa)||await this['_startLiveShareCoordinator'](_0x206daa),this[_0x22377c(0x270)][_0x22377c(0x24e)](_0x206daa);}[_0x38e2ae(0x2b3)](){var _0x5f3993=_0x38e2ae;this[_0x5f3993(0x241)][_0x5f3993(0x2a2)](o[_0x5f3993(0x25b)][_0x5f3993(0x2b9)])[_0x5f3993(0x277)](b[_0x5f3993(0x2a8)](this[_0x5f3993(0x21b)]))[_0x5f3993(0x232)](async _0x39b36e=>{var _0x1ffaeb=_0x5f3993;const _0x5052fa=_0x39b36e[_0x1ffaeb(0x2be)]();this[_0x1ffaeb(0x270)][_0x1ffaeb(0x25d)](_0x5052fa)||this[_0x1ffaeb(0x287)](_0x5052fa);}),this[_0x5f3993(0x241)]['getTypeOfUnitDisposed$'](o[_0x5f3993(0x25b)]['UNIVER_SHEET'])[_0x5f3993(0x277)](b[_0x5f3993(0x2a8)](this[_0x5f3993(0x21b)]))['subscribe'](_0x52ee83=>{var _0x14bb7f=_0x5f3993;const _0x5a496d=_0x52ee83[_0x14bb7f(0x2be)](),_0x2c7d79=this[_0x14bb7f(0x270)][_0x14bb7f(0x24e)](_0x5a496d);_0x2c7d79==null||_0x2c7d79[_0x14bb7f(0x268)]();});}async[_0x38e2ae(0x287)](_0x204969){var _0x1a48c2=_0x38e2ae;const _0x192f5a=await this[_0x1a48c2(0x1f6)][_0x1a48c2(0x1de)](_0x204969),_0x337438=this['_injector'][_0x1a48c2(0x2b2)](exports[_0x1a48c2(0x2b7)],_0x204969,_0x192f5a);return _0x337438[_0x1a48c2(0x227)](),this[_0x1a48c2(0x270)][_0x1a48c2(0x2bc)](_0x204969,_0x337438),_0x337438;}},exports['LiveShareController']=R([S(0x0,o[_0x38e2ae(0x26d)]),S(0x1,o[_0x38e2ae(0x209)](o[_0x38e2ae(0x242)])),S(0x2,o[_0x38e2ae(0x209)](m['CollaborationSessionService']))],exports['LiveShareController']);var h=(_0x47d173=>(_0x47d173[_0x38e2ae(0x2a4)]=_0x38e2ae(0x297),_0x47d173[_0x38e2ae(0x266)]=_0x38e2ae(0x201),_0x47d173[_0x38e2ae(0x28f)]=_0x38e2ae(0x289),_0x47d173[_0x38e2ae(0x299)]='not-following',_0x47d173[_0x38e2ae(0x2b0)]=_0x38e2ae(0x1df),_0x47d173))(h||{});const Z=_0x38e2ae(0x250),J=0xc8;exports[_0x38e2ae(0x2b7)]=class extends o[_0x38e2ae(0x22d)]{constructor(_0x21cab3,_0x39b269,_0x1969e5,_0x51cb0a,_0x5b0e82){var _0x3d4544=_0x38e2ae;super(),v(this,_0x3d4544(0x1e7),new D[(_0x3d4544(0x224))](_0x3d4544(0x201))),v(this,_0x3d4544(0x21d),this[_0x3d4544(0x1e7)][_0x3d4544(0x288)]()),v(this,_0x3d4544(0x2b3),!0x1),v(this,_0x3d4544(0x208),null),v(this,'_presenter',null),(this[_0x3d4544(0x205)]=_0x21cab3,this[_0x3d4544(0x28b)]=_0x39b269,this[_0x3d4544(0x20a)]=_0x1969e5,this[_0x3d4544(0x263)]=_0x51cb0a,this['_commandService']=_0x5b0e82);}get['_status'](){var _0x5ebaab=_0x38e2ae;return this[_0x5ebaab(0x1e7)][_0x5ebaab(0x245)]();}[_0x38e2ae(0x268)](){var _0x1f27d6=_0x38e2ae,_0x4d6b9b;(_0x4d6b9b=this[_0x1f27d6(0x208)])==null||_0x4d6b9b[_0x1f27d6(0x268)](),this[_0x1f27d6(0x1e7)][_0x1f27d6(0x1f1)](_0x1f27d6(0x201)),this[_0x1f27d6(0x1e7)][_0x1f27d6(0x248)]();}[_0x38e2ae(0x227)](){var _0x437df2=_0x38e2ae;this[_0x437df2(0x2b3)]||(this[_0x437df2(0x2b3)]=!0x0,this[_0x437df2(0x28b)][_0x437df2(0x1f8)][_0x437df2(0x277)](b[_0x437df2(0x2a8)](this['dispose$']))[_0x437df2(0x232)](_0x250726=>{var _0x4e7f2d=_0x437df2;switch(_0x250726){case m[_0x4e7f2d(0x27b)]['OFFLINE']:this[_0x4e7f2d(0x203)]();break;case m['SessionStatus'][_0x4e7f2d(0x25e)]:this[_0x4e7f2d(0x2b6)]();break;}}),this[_0x437df2(0x28b)]['event$']['pipe'](b[_0x437df2(0x2a8)](this[_0x437df2(0x21b)]))[_0x437df2(0x232)](_0x16967e=>{var _0x18c956=_0x437df2;const {eventID:_0x2f09d3}=_0x16967e;switch(_0x2f09d3){case _[_0x18c956(0x1e2)]['LIVESHARE_NEW_HOST']:this[_0x18c956(0x20c)](_0x16967e);break;case _[_0x18c956(0x1e2)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x16967e);break;case _['CollaborationEvent'][_0x18c956(0x204)]:this['_handleTerminate']();break;case _[_0x18c956(0x1e2)][_0x18c956(0x2c1)]:this[_0x18c956(0x249)](_0x16967e);break;}}));}[_0x38e2ae(0x23c)](){var _0x3e2147=_0x38e2ae;this[_0x3e2147(0x28b)][_0x3e2147(0x24a)]({'eventID':_[_0x3e2147(0x1e2)][_0x3e2147(0x1fb)],'data':{'unitID':this[_0x3e2147(0x205)],'userID':this[_0x3e2147(0x28b)][_0x3e2147(0x1fc)]()}},this['_unitID']);}[_0x38e2ae(0x1fe)](){var _0x557b2c=_0x38e2ae;this[_0x557b2c(0x222)]===_0x557b2c(0x1df)&&(this[_0x557b2c(0x1e7)][_0x557b2c(0x1f1)](_0x557b2c(0x201)),this[_0x557b2c(0x28b)][_0x557b2c(0x24a)]({'eventID':_[_0x557b2c(0x1e2)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x557b2c(0x205)]}},this[_0x557b2c(0x205)]));}[_0x38e2ae(0x271)](){var _0x232533=_0x38e2ae;this[_0x232533(0x222)]===_0x232533(0x238)&&(this[_0x232533(0x1e7)][_0x232533(0x1f1)](_0x232533(0x289)),this[_0x232533(0x2bd)]());}['stopFollowing'](){var _0xf5613a=_0x38e2ae;this[_0xf5613a(0x222)]==='following'&&this[_0xf5613a(0x243)]();}[_0x38e2ae(0x20c)](_0x4e6ce8){var _0x1af9a2=_0x38e2ae;const {presenter:_0x541111}=_0x4e6ce8[_0x1af9a2(0x279)],_0x445001=this[_0x1af9a2(0x28b)]['getMemberID']();this[_0x1af9a2(0x2a9)]=_0x541111,_0x541111===_0x445001?(this[_0x1af9a2(0x243)](),this[_0x1af9a2(0x252)]()):this[_0x1af9a2(0x222)]!==_0x1af9a2(0x238)&&(this['_stopPresenting'](),this[_0x1af9a2(0x2bd)]());}[_0x38e2ae(0x246)](){var _0x38d5af=_0x38e2ae;const _0x5d3533={'eventID':_[_0x38d5af(0x1e2)]['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession']['send'](_0x5d3533,this['_unitID']);}[_0x38e2ae(0x24d)](){var _0x462d39=_0x38e2ae;this['_presenter']=null,this[_0x462d39(0x222)]!==_0x462d39(0x1df)&&this[_0x462d39(0x240)]();}['_handleNewChangeSets'](_0x1b2b17){var _0x4dc644=_0x38e2ae;if(this[_0x4dc644(0x222)]===_0x4dc644(0x289)&&this[_0x4dc644(0x2a9)]===_0x1b2b17[_0x4dc644(0x279)][_0x4dc644(0x2aa)]){const _0x256661=_[_0x4dc644(0x269)](_0x1b2b17[_0x4dc644(0x279)])[_0x4dc644(0x2a7)][_0x4dc644(0x210)]()[_0x4dc644(0x1fa)](_0x6c854=>_0x6c854['id']===C[_0x4dc644(0x2a1)]['id']);if(_0x256661){const _0x5dc058=_0x256661[_0x4dc644(0x1f3)][_0x4dc644(0x261)],_0x54143e=_0x256661[_0x4dc644(0x1f3)][_0x4dc644(0x22b)]['id'];setTimeout(()=>{var _0x1f84ca=_0x4dc644;this[_0x1f84ca(0x293)]['executeCommand'](C[_0x1f84ca(0x29e)]['id'],{'unitId':_0x5dc058,'subUnitId':_0x54143e},{'fromCollab':!0x0});});}}}[_0x38e2ae(0x252)](){var _0x176245=_0x38e2ae;this[_0x176245(0x1e7)]['next']('presenting');const _0x1e0607=new Map(),_0x3262fe=this[_0x176245(0x208)]=new o[(_0x176245(0x206))]();_0x3262fe[_0x176245(0x23a)](o[_0x176245(0x1ed)](()=>{var _0x2c8e15=_0x176245;_0x1e0607['forEach'](_0xdbd4fd=>_0xdbd4fd[_0x2c8e15(0x248)]()),_0x1e0607['clear']();})),_0x3262fe['add'](this[_0x176245(0x293)][_0x176245(0x233)](_0x3cf206=>{var _0x1019d5=_0x176245,_0x54f06a;if(_0x3cf206[_0x1019d5(0x2ac)]!==o[_0x1019d5(0x291)][_0x1019d5(0x296)]||!this[_0x1019d5(0x263)][_0x1019d5(0x26e)](_0x3cf206['id']))return;const {id:_0x26c301}=_0x3cf206;let _0x35bb03;_0x1e0607['has'](_0x26c301)?_0x35bb03=_0x1e0607[_0x1019d5(0x24e)](_0x26c301):(_0x35bb03=new D[(_0x1019d5(0x22e))](),_0x1e0607['set'](_0x26c301,_0x35bb03),_0x35bb03['pipe'](b[_0x1019d5(0x25a)]((_0x54f06a=this[_0x1019d5(0x20a)][_0x1019d5(0x256)](Z))!=null?_0x54f06a:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1019d5(0x232)](_0x250849=>{var _0x39652=_0x1019d5;this[_0x39652(0x28b)]['send']({'eventID':_[_0x39652(0x1e2)][_0x39652(0x1e8)],'data':{'unitID':this['_unitID'],'operations':{[_0x250849['id']]:{'id':_0x250849['id'],'params':JSON[_0x39652(0x236)](_0x250849[_0x39652(0x1f3)])}}}},this['_unitID']);})),_0x35bb03['next'](_0x3cf206);})),this['_liveShareService']['getInitialStates'](this[_0x176245(0x205)])['forEach'](_0x4dad99=>this[_0x176245(0x28b)][_0x176245(0x24a)]({'eventID':_[_0x176245(0x1e2)][_0x176245(0x1e8)],'data':{'unitID':this[_0x176245(0x205)],'operations':{[_0x4dad99['id']]:{'id':_0x4dad99['id'],'params':JSON[_0x176245(0x236)](_0x4dad99[_0x176245(0x1f3)])}}}},this[_0x176245(0x205)]));}['_stopPresenting'](){var _0x2b6b95=_0x38e2ae,_0x37683a;this['_status$']['next'](_0x2b6b95(0x201)),(_0x37683a=this[_0x2b6b95(0x208)])==null||_0x37683a[_0x2b6b95(0x268)](),this['_commandDisposable']=null;}[_0x38e2ae(0x2bd)](){var _0x31171b=_0x38e2ae,_0x58d151;(_0x58d151=this[_0x31171b(0x208)])==null||_0x58d151[_0x31171b(0x268)](),this[_0x31171b(0x1e7)][_0x31171b(0x1f1)]('following');}[_0x38e2ae(0x240)](){var _0x3c77eb=_0x38e2ae,_0x49ac43;this[_0x3c77eb(0x1e7)][_0x3c77eb(0x1f1)]('idle'),(_0x49ac43=this[_0x3c77eb(0x208)])==null||_0x49ac43[_0x3c77eb(0x268)](),this['_commandDisposable']=null;}[_0x38e2ae(0x243)](){var _0xd95f34=_0x38e2ae,_0x3ac751;this[_0xd95f34(0x1e7)]['next'](_0xd95f34(0x238)),(_0x3ac751=this[_0xd95f34(0x208)])==null||_0x3ac751[_0xd95f34(0x268)]();}[_0x38e2ae(0x20d)](_0x4b4bf7){var _0x254609=_0x38e2ae;if([_0x254609(0x1df),_0x254609(0x238),'offline']['includes'](this[_0x254609(0x222)])||!_0x4b4bf7[_0x254609(0x279)][_0x254609(0x22f)]||_0x4b4bf7[_0x254609(0x279)][_0x254609(0x22f)]===this['_collabSession'][_0x254609(0x1fc)]())return;this[_0x254609(0x222)]===_0x254609(0x201)&&this[_0x254609(0x2bd)]();const _0x5b3ccd=_0x4b4bf7[_0x254609(0x279)]['operations'];Object[_0x254609(0x225)](_0x5b3ccd)[_0x254609(0x2a0)](_0x10e851=>{var _0x8f973a=_0x254609;this['_commandService'][_0x8f973a(0x294)](_0x10e851['id'],_0x10e851[_0x8f973a(0x1f3)]?JSON[_0x8f973a(0x2b4)](_0x10e851['params']):null,{'fromCollab':!0x0});});}[_0x38e2ae(0x203)](){var _0x162498=_0x38e2ae,_0xb9342f;this['_status$'][_0x162498(0x1f1)]('offline'),(_0xb9342f=this[_0x162498(0x208)])==null||_0xb9342f['dispose']();}[_0x38e2ae(0x2b6)](){var _0x1ffc8d=_0x38e2ae;this['_status$'][_0x1ffc8d(0x1f1)](_0x1ffc8d(0x201)),this[_0x1ffc8d(0x246)]();}},exports[_0x38e2ae(0x2b7)]=R([S(0x2,o[_0x38e2ae(0x21c)]),S(0x3,o[_0x38e2ae(0x209)](O)),S(0x4,o[_0x38e2ae(0x267)])],exports[_0x38e2ae(0x2b7)]);function A(){var _0x4f65dc=_0x38e2ae;const _0x114879=p[_0x4f65dc(0x221)](exports[_0x4f65dc(0x290)]),_0x1b3bd7=p[_0x4f65dc(0x221)](o[_0x4f65dc(0x26d)]),_0x1b7ffd=p[_0x4f65dc(0x2af)](()=>_0x1b3bd7[_0x4f65dc(0x212)](o[_0x4f65dc(0x25b)][_0x4f65dc(0x2b9)]),void 0x0,!0x1,[]),[_0x337762,_0x33e23e]=f[_0x4f65dc(0x28e)](null),[_0x949ad7,_0x333d32]=f[_0x4f65dc(0x28e)](h[_0x4f65dc(0x266)]),_0x4f77ac=f[_0x4f65dc(0x27f)](null);return f[_0x4f65dc(0x272)](()=>(_0x1b7ffd&&_0x114879['getLiveShareCoordinator'](_0x1b7ffd['getUnitId']())['then'](_0x2e3d2a=>{var _0x25f820=_0x4f65dc;_0x33e23e(_0x2e3d2a),_0x4f77ac[_0x25f820(0x259)]=_0x2e3d2a[_0x25f820(0x21d)]['subscribe'](_0x544c3d=>{_0x333d32(_0x544c3d);});}),()=>{var _0x1cc1f9=_0x4f65dc,_0x280095;(_0x280095=_0x4f77ac[_0x1cc1f9(0x259)])==null||_0x280095[_0x1cc1f9(0x21f)](),_0x4f77ac[_0x1cc1f9(0x259)]=null;}),[_0x1b7ffd,_0x114879]),_0x337762?l[_0x4f65dc(0x228)](g[_0x4f65dc(0x24b)],{'align':_0x4f65dc(0x237),'disabled':_0x949ad7===h['OFFLINE'],'className':_0x4f65dc(0x1e3),'overlay':l['jsx'](K,{'status':_0x949ad7,'coordinator':_0x337762}),'children':l[_0x4f65dc(0x228)]('button',{'className':g[_0x4f65dc(0x1e6)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x949ad7===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x949ad7!==h['OFFLINE']}),'type':_0x4f65dc(0x207),'children':l[_0x4f65dc(0x228)](P,{'className':_0x4f65dc(0x234)})})}):null;}function K(_0x3b3d5f){var _0x129308=_0x38e2ae;const {status:_0xba2aac,coordinator:_0x570515}=_0x3b3d5f;switch(_0xba2aac){case h['IDLE']:return l[_0x129308(0x228)](z,{'coordinator':_0x570515});case h[_0x129308(0x28f)]:return l[_0x129308(0x228)](Q,{'coordinator':_0x570515});case h[_0x129308(0x299)]:return l[_0x129308(0x228)](X,{'coordinator':_0x570515});case h[_0x129308(0x2a4)]:return l[_0x129308(0x228)](te,{});case h[_0x129308(0x2b0)]:return l[_0x129308(0x228)](ee,{'coordinator':_0x570515});default:return null;}}function z(_0x2197a4){var _0xbcf598=_0x38e2ae;const {coordinator:_0x4d1df8}=_0x2197a4;return l[_0xbcf598(0x2bb)](l['Fragment'],{'children':[l['jsx'](_0xbcf598(0x274),{'className':_0xbcf598(0x213),'children':_0xbcf598(0x254)}),l['jsx'](g[_0xbcf598(0x26a)],{'onClick':()=>_0x4d1df8[_0xbcf598(0x23c)](),'children':_0xbcf598(0x25f)})]});}function Q(_0x5743c3){var _0x567beb=_0x38e2ae;const {coordinator:_0x5e7237}=_0x5743c3;return l[_0x567beb(0x2bb)](l[_0x567beb(0x27a)],{'children':[l[_0x567beb(0x228)](_0x567beb(0x274),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x567beb(0x228)](g[_0x567beb(0x26a)],{'onClick':()=>_0x5e7237[_0x567beb(0x26f)](),'children':'Stop\x20following'})]});}function X(_0x3b60f7){var _0x5255cf=_0x38e2ae;const {coordinator:_0x1d2a78}=_0x3b60f7;return l[_0x5255cf(0x2bb)](l['Fragment'],{'children':[l['jsx'](_0x5255cf(0x274),{'className':_0x5255cf(0x213),'children':_0x5255cf(0x281)}),l[_0x5255cf(0x228)](g[_0x5255cf(0x26a)],{'variant':_0x5255cf(0x29b),'onClick':()=>_0x1d2a78[_0x5255cf(0x271)](),'children':'Start\x20following'})]});}function ee(_0xe4031f){var _0x4dad74=_0x38e2ae;const {coordinator:_0x4943d4}=_0xe4031f;return l[_0x4dad74(0x2bb)](l[_0x4dad74(0x27a)],{'children':[l['jsx']('div',{'className':_0x4dad74(0x213),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x4dad74(0x228)](g[_0x4dad74(0x26a)],{'variant':_0x4dad74(0x1ff),'onClick':()=>_0x4943d4[_0x4dad74(0x1fe)](),'children':_0x4dad74(0x2c4)})]});}function _0x48f8(_0x4b5752,_0x84223a){var _0x541f6d=_0x541f();return _0x48f8=function(_0x48f859,_0xa7e0c1){_0x48f859=_0x48f859-0x1de;var _0x264320=_0x541f6d[_0x48f859];return _0x264320;},_0x48f8(_0x4b5752,_0x84223a);}function te(){var _0x13014f=_0x38e2ae;return l[_0x13014f(0x228)](l[_0x13014f(0x27a)],{'children':_0x13014f(0x2a5)});}var ie=Object[_0x38e2ae(0x247)],ne=(_0x1296d1,_0x76aa7d,_0x160e3a,_0x5378e7)=>{var _0x48506b=_0x38e2ae;for(var _0x316361=_0x5378e7>0x1?void 0x0:_0x5378e7?ie(_0x76aa7d,_0x160e3a):_0x76aa7d,_0x4a7010=_0x1296d1[_0x48506b(0x21e)]-0x1,_0x5cb3cf;_0x4a7010>=0x0;_0x4a7010--)(_0x5cb3cf=_0x1296d1[_0x4a7010])&&(_0x316361=_0x5cb3cf(_0x316361)||_0x316361);return _0x316361;},L=(_0x487439,_0x3e3db4)=>(_0x53e1a8,_0x19bbdc)=>_0x3e3db4(_0x53e1a8,_0x19bbdc,_0x487439);exports[_0x38e2ae(0x27d)]=class extends o[_0x38e2ae(0x1eb)]{constructor(_0x2ac710,_0x82d011){var _0x4e7f50=_0x38e2ae;super(),this[_0x4e7f50(0x29f)]=_0x2ac710,this[_0x4e7f50(0x1f7)]=_0x82d011,this['_mountLiveShare']();}[_0x38e2ae(0x286)](){var _0x3198a1=_0x38e2ae;this['disposeWithMe'](this[_0x3198a1(0x1f7)][_0x3198a1(0x1fd)](p[_0x3198a1(0x226)][_0x3198a1(0x23e)],()=>p[_0x3198a1(0x282)](A,this[_0x3198a1(0x29f)])));}},exports['DesktopLiveShareController']=ne([L(0x0,o[_0x38e2ae(0x209)](o[_0x38e2ae(0x242)])),L(0x1,p[_0x38e2ae(0x24f)])],exports[_0x38e2ae(0x27d)]);var re=Object[_0x38e2ae(0x1e0)],se=Object[_0x38e2ae(0x247)],oe=(_0x4af78e,_0x3cc6c4,_0x54737a)=>_0x3cc6c4 in _0x4af78e?re(_0x4af78e,_0x3cc6c4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54737a}):_0x4af78e[_0x3cc6c4]=_0x54737a,ae=(_0x21288d,_0x4baffd,_0x1b4949,_0x19fba6)=>{var _0x35cc44=_0x38e2ae;for(var _0x487d7d=_0x19fba6>0x1?void 0x0:_0x19fba6?se(_0x4baffd,_0x1b4949):_0x4baffd,_0x4ef564=_0x21288d[_0x35cc44(0x21e)]-0x1,_0x53a0c4;_0x4ef564>=0x0;_0x4ef564--)(_0x53a0c4=_0x21288d[_0x4ef564])&&(_0x487d7d=_0x53a0c4(_0x487d7d)||_0x487d7d);return _0x487d7d;},N=(_0x84a557,_0x484780)=>(_0x2307b0,_0x3c4fe5)=>_0x484780(_0x2307b0,_0x3c4fe5,_0x84a557),T=(_0x53b2c4,_0x5480d0,_0x29e859)=>oe(_0x53b2c4,typeof _0x5480d0!=_0x38e2ae(0x1ee)?_0x5480d0+'':_0x5480d0,_0x29e859);const le=_0x38e2ae(0x273);exports['UniverLiveSharePlugin']=class extends o['Plugin']{constructor(_0x31aa4e=x,_0x236664,_0x3c5d6a){var _0x1aa6f3=_0x38e2ae;super(),this['_config']=_0x31aa4e,this[_0x1aa6f3(0x29f)]=_0x236664,this[_0x1aa6f3(0x20a)]=_0x3c5d6a;const {..._0x5f4255}=o[_0x1aa6f3(0x1e5)]({},x,this['_config']);this[_0x1aa6f3(0x20a)][_0x1aa6f3(0x2c6)]($,_0x5f4255);}[_0x38e2ae(0x1f0)](){var _0x5a4f32=_0x38e2ae;o[_0x5a4f32(0x29d)](this['_injector'],o[_0x5a4f32(0x2ae)]([[O],[exports[_0x5a4f32(0x290)]],[E],[exports[_0x5a4f32(0x27d)]]],this['_config'][_0x5a4f32(0x262)])),o[_0x5a4f32(0x251)](this[_0x5a4f32(0x29f)],[[E]]);}['onRendered'](){var _0x4855a1=_0x38e2ae;o['touchDependencies'](this[_0x4855a1(0x29f)],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x38e2ae(0x292)],_0x38e2ae(0x2ac),o[_0x38e2ae(0x25b)][_0x38e2ae(0x223)]),T(exports[_0x38e2ae(0x292)],_0x38e2ae(0x217),le),exports['UniverLiveSharePlugin']=ae([o[_0x38e2ae(0x220)](m[_0x38e2ae(0x2c5)]),N(0x1,o[_0x38e2ae(0x209)](o['Injector'])),N(0x2,o['IConfigService'])],exports[_0x38e2ae(0x292)]),exports[_0x38e2ae(0x239)]=A,exports[_0x38e2ae(0x211)]=O,exports[_0x38e2ae(0x285)]=h;
|
|
1
|
+
'use strict';var _0x49571b=_0x40aa;(function(_0xa45f00,_0x15f3da){var _0x492124=_0x40aa,_0x4b814d=_0xa45f00();while(!![]){try{var _0x50d87f=parseInt(_0x492124(0x190))/0x1+parseInt(_0x492124(0x144))/0x2*(parseInt(_0x492124(0x11d))/0x3)+parseInt(_0x492124(0x1b2))/0x4+parseInt(_0x492124(0x103))/0x5+parseInt(_0x492124(0x192))/0x6*(parseInt(_0x492124(0x112))/0x7)+parseInt(_0x492124(0x193))/0x8+-parseInt(_0x492124(0x128))/0x9*(parseInt(_0x492124(0x105))/0xa);if(_0x50d87f===_0x15f3da)break;else _0x4b814d['push'](_0x4b814d['shift']());}catch(_0x2fbebb){_0x4b814d['push'](_0x4b814d['shift']());}}}(_0x12fb,0xd10ae));var U=Object[_0x49571b(0x17d)],F=(_0x395747,_0x5cbc22,_0x3f7a14)=>_0x5cbc22 in _0x395747?U(_0x395747,_0x5cbc22,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3f7a14}):_0x395747[_0x5cbc22]=_0x3f7a14,v=(_0x591d3c,_0xa4840c,_0x280889)=>F(_0x591d3c,typeof _0xa4840c!=_0x49571b(0x19d)?_0xa4840c+'':_0xa4840c,_0x280889);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x49571b(0x113)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$=_0x49571b(0x17c),x={};class O extends o[_0x49571b(0x117)]{constructor(){var _0x16f402=_0x49571b;super(...arguments),v(this,_0x16f402(0x123),new Set()),v(this,_0x16f402(0x108),new Set());}['registerSharedOperation'](_0xe768a3){var _0x2d895b=_0x49571b;return this[_0x2d895b(0x123)]['add'](_0xe768a3),o[_0x2d895b(0x121)](()=>this[_0x2d895b(0x123)][_0x2d895b(0x13d)](_0xe768a3));}[_0x49571b(0x16c)](_0x5c285b){var _0x1e0092=_0x49571b;return this[_0x1e0092(0x108)][_0x1e0092(0x186)](_0x5c285b),o[_0x1e0092(0x121)](()=>this[_0x1e0092(0x108)]['delete'](_0x5c285b));}[_0x49571b(0x14c)](_0x2b9ed7){var _0x289b6f=_0x49571b;return this[_0x289b6f(0x123)][_0x289b6f(0x178)](_0x2b9ed7);}[_0x49571b(0x159)](_0x270017){var _0x391501=_0x49571b;return Array[_0x391501(0x1c3)](this[_0x391501(0x108)])[_0x391501(0x127)](_0x2ba317=>_0x2ba317(_0x270017));}}var H=Object[_0x49571b(0x187)],V=(_0x20bfc6,_0x453f13,_0x5cf60e,_0x1071a7)=>{var _0x3d4f47=_0x49571b;for(var _0x55f319=_0x1071a7>0x1?void 0x0:_0x1071a7?H(_0x453f13,_0x5cf60e):_0x453f13,_0x5070a5=_0x20bfc6[_0x3d4f47(0x174)]-0x1,_0x2c828e;_0x5070a5>=0x0;_0x5070a5--)(_0x2c828e=_0x20bfc6[_0x5070a5])&&(_0x55f319=_0x2c828e(_0x55f319)||_0x55f319);return _0x55f319;},k=(_0x1517fd,_0x114dfd)=>(_0x87b7e,_0x3c121)=>_0x114dfd(_0x87b7e,_0x3c121,_0x1517fd);let E=class extends o[_0x49571b(0x117)]{constructor(_0x4eebd6){var _0x206b85=_0x49571b;super(),this[_0x206b85(0x15d)]=_0x4eebd6,this[_0x206b85(0x1be)]();}[_0x49571b(0x1be)](){var _0x3391c7=_0x49571b;[w['SetZoomRatioOperation']['id'],w['SetScrollOperation']['id'],C[_0x3391c7(0xfc)]['id']][_0x3391c7(0x185)](_0x3e8ca2=>{var _0x31a661=_0x3391c7;this[_0x31a661(0x163)](this[_0x31a661(0x15d)][_0x31a661(0x1b4)](_0x3e8ca2));});}};E=V([k(0x0,o[_0x49571b(0x1c6)](O))],E);var u=function(){var _0x5b41e2=_0x49571b;return u=Object['assign']||function(_0x5e346e){var _0x1b8af4=_0x40aa;for(var _0x3a8dee,_0x1ef525=0x1,_0x493cd0=arguments[_0x1b8af4(0x174)];_0x1ef525<_0x493cd0;_0x1ef525++){_0x3a8dee=arguments[_0x1ef525];for(var _0x57940a in _0x3a8dee)Object['prototype'][_0x1b8af4(0xfb)][_0x1b8af4(0x10b)](_0x3a8dee,_0x57940a)&&(_0x5e346e[_0x57940a]=_0x3a8dee[_0x57940a]);}return _0x5e346e;},u[_0x5b41e2(0x1ca)](this,arguments);},M=function(_0x54c2b2,_0xfe74a){var _0x44c9ae=_0x49571b,_0x3873ac={};for(var _0x59e880 in _0x54c2b2)Object[_0x44c9ae(0x150)]['hasOwnProperty'][_0x44c9ae(0x10b)](_0x54c2b2,_0x59e880)&&_0xfe74a[_0x44c9ae(0x157)](_0x59e880)<0x0&&(_0x3873ac[_0x59e880]=_0x54c2b2[_0x59e880]);if(_0x54c2b2!=null&&typeof Object[_0x44c9ae(0xfe)]==_0x44c9ae(0x10d)){for(var _0xefdfc0=0x0,_0x59e880=Object['getOwnPropertySymbols'](_0x54c2b2);_0xefdfc0<_0x59e880[_0x44c9ae(0x174)];_0xefdfc0++)_0xfe74a[_0x44c9ae(0x157)](_0x59e880[_0xefdfc0])<0x0&&Object[_0x44c9ae(0x150)][_0x44c9ae(0xf6)][_0x44c9ae(0x10b)](_0x54c2b2,_0x59e880[_0xefdfc0])&&(_0x3873ac[_0x59e880[_0xefdfc0]]=_0x54c2b2[_0x59e880[_0xefdfc0]]);}return _0x3873ac;},j=f[_0x49571b(0x17a)](function(_0x1381fb,_0x2611f0){var _0x3d5b91=_0x49571b,_0x1ce949=_0x1381fb['icon'],_0x51541a=_0x1381fb['id'],_0x4a5809=_0x1381fb[_0x3d5b91(0x1ac)],_0x3a088b=_0x1381fb['extend'],_0x5af535=M(_0x1381fb,['icon','id','className','extend']),_0x11303b=_0x3d5b91(0x161)['concat'](_0x51541a,'\x20')[_0x3d5b91(0x176)](_0x4a5809||'')['trim'](),_0x365d42=f['useRef']('_'['concat'](G()));return y(_0x1ce949,''[_0x3d5b91(0x176)](_0x51541a),{'defIds':_0x1ce949[_0x3d5b91(0xfa)],'idSuffix':_0x365d42[_0x3d5b91(0x143)]},u({'ref':_0x2611f0,'className':_0x11303b},_0x5af535),_0x3a088b);});function y(_0x390c57,_0x48576f,_0x5e0914,_0x4144d1,_0x59eefb){var _0x16cc94=_0x49571b;return f['createElement'](_0x390c57['tag'],u(u({'key':_0x48576f},q(_0x390c57,_0x5e0914,_0x59eefb)),_0x4144d1),(W(_0x390c57,_0x5e0914)[_0x16cc94(0x18c)]||[])[_0x16cc94(0x127)](function(_0x456686,_0x489fee){var _0x2be2b7=_0x16cc94;return y(_0x456686,''[_0x2be2b7(0x176)](_0x48576f,'-')['concat'](_0x390c57[_0x2be2b7(0x1c7)],'-')[_0x2be2b7(0x176)](_0x489fee),_0x5e0914,void 0x0,_0x59eefb);}));}function q(_0x1f3ad3,_0x478817,_0x1d5cff){var _0x4bba85=_0x49571b,_0x4ec816=u({},_0x1f3ad3[_0x4bba85(0x10a)]);_0x1d5cff!=null&&_0x1d5cff[_0x4bba85(0x13c)]&&_0x4ec816[_0x4bba85(0x1a2)]===_0x4bba85(0x13c)&&(_0x4ec816[_0x4bba85(0x1a2)]=_0x1d5cff[_0x4bba85(0x13c)]),_0x1f3ad3[_0x4bba85(0x1c7)]===_0x4bba85(0x151)&&_0x4ec816['id']&&(_0x4ec816['id']=_0x4ec816['id']+_0x478817[_0x4bba85(0x16b)]),Object[_0x4bba85(0x1bd)](_0x4ec816)['forEach'](function(_0x4d5850){var _0x15f1bb=_0x4bba85,_0x17b1d9=_0x4d5850[0x0],_0x3ff423=_0x4d5850[0x1];_0x17b1d9===_0x15f1bb(0x151)&&typeof _0x3ff423==_0x15f1bb(0x14e)&&(_0x4ec816[_0x17b1d9]=_0x3ff423[_0x15f1bb(0x154)](/url\(#(.*)\)/,_0x15f1bb(0x1ae)[_0x15f1bb(0x176)](_0x478817[_0x15f1bb(0x16b)],')')));});var _0xe5281e=_0x478817['defIds'];return!_0xe5281e||_0xe5281e['length']===0x0||(_0x1f3ad3[_0x4bba85(0x1c7)]===_0x4bba85(0x142)&&_0x4ec816[_0x4bba85(0xff)]&&(_0x4ec816['xlink:href']=_0x4ec816[_0x4bba85(0xff)]+_0x478817[_0x4bba85(0x16b)]),Object[_0x4bba85(0x1bd)](_0x4ec816)['forEach'](function(_0x134b6c){var _0x15bfc8=_0x4bba85,_0x32ecb2=_0x134b6c[0x0],_0x3a4926=_0x134b6c[0x1];typeof _0x3a4926==_0x15bfc8(0x14e)&&(_0x4ec816[_0x32ecb2]=_0x3a4926['replace'](/url\(#(.*)\)/,_0x15bfc8(0x1ae)[_0x15bfc8(0x176)](_0x478817[_0x15bfc8(0x16b)],')')));})),_0x4ec816;}function W(_0x5c0648,_0x3fafa6){var _0x8fddf1=_0x49571b,_0x1f1709,_0x33229f=_0x3fafa6[_0x8fddf1(0xfa)];return!_0x33229f||_0x33229f[_0x8fddf1(0x174)]===0x0?_0x5c0648:_0x5c0648[_0x8fddf1(0x1c7)]===_0x8fddf1(0x1c4)&&(!((_0x1f1709=_0x5c0648[_0x8fddf1(0x18c)])===null||_0x1f1709===void 0x0)&&_0x1f1709[_0x8fddf1(0x174)])?u(u({},_0x5c0648),{'children':_0x5c0648[_0x8fddf1(0x18c)][_0x8fddf1(0x127)](function(_0x520680){var _0x513bdf=_0x8fddf1;return typeof _0x520680['attrs']['id']==_0x513bdf(0x14e)&&_0x33229f&&_0x33229f[_0x513bdf(0x115)](_0x520680[_0x513bdf(0x10a)]['id'])?u(u({},_0x520680),{'attrs':u(u({},_0x520680[_0x513bdf(0x10a)]),{'id':_0x520680[_0x513bdf(0x10a)]['id']+_0x3fafa6['idSuffix']})}):_0x520680;})}):_0x5c0648;}function _0x12fb(){var _0x4cacf5=['7616525VCPMmA','jsxs','1310AtOKvt','_startPresenting','_status','_reporters','memberID','attrs','call','_uiPartsService','function','_beIdle','live-share-icon','assign','_startLiveShareCoordinator','504777sdxaOJ','Module','button','includes','random','Disposable','Dropdown','Stop\x20presenting','CollaborationSessionService','LIVESHARE_FETCH_OPERATIONS','useObservable','3mgeRdX','HEADER_MENU','DisposableCollection','executeCommand','toDisposable','evenodd','_sharedOperations','_stopPresenting','Start','_status$','map','283194vVkTUj','reverse','unsubscribe','getCurrentTypeOfUnit$','clsx','BehaviorSubject','getTypeOfUnitDisposed$','LiveShareService','_handleOperation','type','then','DependentOn','getLiveShareCoordinator','registerDependencies','data','_mountLiveShare','_presenter','currentColor','DesktopLiveShareController','Stop\x20following','colorChannel1','delete','set','Subject','UniverIcon','IUIPartsService','use','current','2002746xnzHwl','LiveShareCoordinator','stopPresenting','_configService','_commandService','override','univer-size-4','0\x200\x2017\x2017','shouldShareOperation','pluginName','string','tryStartPresenting','prototype','mask','IUniverInstanceService','Injector','replace','Present\x20this\x20document','You\x27re\x20presenting\x20the\x20document','indexOf','requireSession','getInitialStates','1em','complete','createInstance','_liveShareService','text','mergeOverrideWithDependencies','IDLE','univerjs-icon\x20univerjs-icon-','UNIVER_LIVE_SHARE_PLUGIN','disposeWithMe','throttleTime','_entities','_univerInstanceService','end','LiveShareController','path','getUnitId','idSuffix','registerInitialStateReporter','merge','You\x27re\x20not\x20following\x20the\x20presenter','ONLINE','startFollowing','LIVESHARE_NEW_HOST','following','touchDependencies','length','LIVESHARE_TERMINATE','concat','OPERATION','has','useState','forwardRef','_injector','live-share.config','defineProperty','stopFollowing','presenting','getMemberID','_stopFollowing','takeUntil','_handleNewChangeSets','dispose','forEach','add','getOwnPropertyDescriptor','onCommandExecuted','div','presenter','init','children','asObservable','Plugin','Start\x20following','515318UzLmnE','registerComponent','60IKsIRw','8225800Egjpvo','LIVESHARE_OPERATION','offline','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_unitID','clear','UniverLiveSharePlugin','OFFLINE','PRESENTING','UNIVER_SHEET','symbol','status$','sheet','subscribe','You\x27are\x20offline.','fill','UniverInstanceType','SAME_OPERATION_SHARE_INTERVAL','_handleOnline','RxDisposable','You\x27re\x20following\x20the\x20presenter','CollaborationEvent','sessionStatus$','jsx','LIVESHARE_REQUEST_HOST','className','_commandDisposable','url(#$1','dispose$','IConfigService','not-following','755812YTHOea','Button','registerSharedOperation','event$','FOLLOWING','ICommandService','_handleTerminate','default','unitId','useDependency','find','entries','_init','svg','pipe','getConfig','BuiltInUIPart','from','defs','LiveShareIcon','Inject','tag','_handleNewHost','operations','apply','_collabSessionService','univer-mb-3\x20univer-w-full\x20univer-text-sm','parseProtocolChangeset','http://www.w3.org/2000/svg','parse','_startFollowing','getTypeOfUnitAdded$','NOT_FOLLOWING','_config','stringify','displayName','get','_collabSession','send','Fragment','setConfig','propertyIsEnumerable','next','idle','onRendered','defIds','hasOwnProperty','SetWorksheetActiveOperation','_handleOffline','getOwnPropertySymbols','xlink:href','params','none','SessionStatus'];_0x12fb=function(){return _0x4cacf5;};return _0x12fb();}function G(){var _0x2ee79e=_0x49571b;return Math[_0x2ee79e(0x116)]()['toString'](0x24)['substring'](0x2,0x8);}j[_0x49571b(0xf0)]=_0x49571b(0x140);var B={'tag':_0x49571b(0x1bf),'attrs':{'xmlns':_0x49571b(0xe9),'fill':_0x49571b(0x101),'viewBox':_0x49571b(0x14b),'width':_0x49571b(0x15a),'height':'1em'},'children':[{'tag':_0x49571b(0x169),'attrs':{'fill':_0x49571b(0x139),'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':_0x49571b(0x169),'attrs':{'fill':_0x49571b(0x139),'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':_0x49571b(0x122),'clipRule':_0x49571b(0x122)}}]},P=f[_0x49571b(0x17a)](function(_0x2d1a76,_0x2ef2df){var _0x31ab4f=_0x49571b;return f['createElement'](j,Object[_0x31ab4f(0x110)]({},_0x2d1a76,{'id':_0x31ab4f(0x10f),'ref':_0x2ef2df,'icon':B}));});P[_0x49571b(0xf0)]=_0x49571b(0x1c5);var Y=Object[_0x49571b(0x187)],R=(_0x3314db,_0x482d11,_0x2c49ba,_0x31fdfa)=>{var _0x4bb5ec=_0x49571b;for(var _0x53d057=_0x31fdfa>0x1?void 0x0:_0x31fdfa?Y(_0x482d11,_0x2c49ba):_0x482d11,_0x233b08=_0x3314db[_0x4bb5ec(0x174)]-0x1,_0x6a182b;_0x233b08>=0x0;_0x233b08--)(_0x6a182b=_0x3314db[_0x233b08])&&(_0x53d057=_0x6a182b(_0x53d057)||_0x53d057);return _0x53d057;},S=(_0x3c1333,_0x108ba1)=>(_0xf51fd1,_0x350a47)=>_0x108ba1(_0xf51fd1,_0x350a47,_0x3c1333);exports[_0x49571b(0x168)]=class extends o[_0x49571b(0x1a6)]{constructor(_0x4abfc2,_0x46ade0,_0x1ba6c8){var _0x7817d9=_0x49571b;super(),v(this,_0x7817d9(0x165),new Map()),(this[_0x7817d9(0x166)]=_0x4abfc2,this['_injector']=_0x46ade0,this[_0x7817d9(0x1cb)]=_0x1ba6c8,this['_init']());}async[_0x49571b(0x134)](_0x1fbcca){var _0x403120=_0x49571b;return this[_0x403120(0x165)]['has'](_0x1fbcca)||await this[_0x403120(0x111)](_0x1fbcca),this[_0x403120(0x165)][_0x403120(0xf1)](_0x1fbcca);}[_0x49571b(0x1be)](){var _0x25e0e1=_0x49571b;this[_0x25e0e1(0x166)][_0x25e0e1(0xec)](o[_0x25e0e1(0x1a3)][_0x25e0e1(0x19c)])[_0x25e0e1(0x1c0)](b[_0x25e0e1(0x182)](this[_0x25e0e1(0x1af)]))['subscribe'](async _0x397444=>{var _0x5b85a4=_0x25e0e1;const _0xd62f0b=_0x397444[_0x5b85a4(0x16a)]();this[_0x5b85a4(0x165)]['has'](_0xd62f0b)||this[_0x5b85a4(0x111)](_0xd62f0b);}),this[_0x25e0e1(0x166)][_0x25e0e1(0x12e)](o[_0x25e0e1(0x1a3)][_0x25e0e1(0x19c)])[_0x25e0e1(0x1c0)](b[_0x25e0e1(0x182)](this['dispose$']))[_0x25e0e1(0x1a0)](_0x4edbf9=>{const _0x42d7d1=_0x4edbf9['getUnitId'](),_0x27fe56=this['_entities']['get'](_0x42d7d1);_0x27fe56==null||_0x27fe56['dispose']();});}async[_0x49571b(0x111)](_0x41b5eb){var _0x433685=_0x49571b;const _0x5c490b=await this[_0x433685(0x1cb)][_0x433685(0x158)](_0x41b5eb),_0x5f9589=this[_0x433685(0x17b)][_0x433685(0x15c)](exports[_0x433685(0x145)],_0x41b5eb,_0x5c490b);return _0x5f9589[_0x433685(0x18b)](),this[_0x433685(0x165)][_0x433685(0x13e)](_0x41b5eb,_0x5f9589),_0x5f9589;}},exports[_0x49571b(0x168)]=R([S(0x0,o[_0x49571b(0x152)]),S(0x1,o['Inject'](o[_0x49571b(0x153)])),S(0x2,o['Inject'](m[_0x49571b(0x11a)]))],exports['LiveShareController']);var h=(_0x2ea138=>(_0x2ea138[_0x49571b(0x19a)]=_0x49571b(0x195),_0x2ea138[_0x49571b(0x160)]=_0x49571b(0xf8),_0x2ea138[_0x49571b(0x1b6)]=_0x49571b(0x172),_0x2ea138['NOT_FOLLOWING']=_0x49571b(0x1b1),_0x2ea138[_0x49571b(0x19b)]=_0x49571b(0x17f),_0x2ea138))(h||{});function _0x40aa(_0x5c1645,_0x5119e4){var _0x12fb06=_0x12fb();return _0x40aa=function(_0x40aa06,_0x48980c){_0x40aa06=_0x40aa06-0xe9;var _0x5e5296=_0x12fb06[_0x40aa06];return _0x5e5296;},_0x40aa(_0x5c1645,_0x5119e4);}const Z=_0x49571b(0x1a4),J=0xc8;exports['LiveShareCoordinator']=class extends o[_0x49571b(0x1a6)]{constructor(_0x12747e,_0x310486,_0x5fa452,_0x26e37b,_0x26ddb6){var _0x41fc89=_0x49571b;super(),v(this,_0x41fc89(0x126),new D[(_0x41fc89(0x12d))]('idle')),v(this,_0x41fc89(0x19e),this['_status$'][_0x41fc89(0x18d)]()),v(this,_0x41fc89(0x1be),!0x1),v(this,_0x41fc89(0x1ad),null),v(this,_0x41fc89(0x138),null),(this[_0x41fc89(0x197)]=_0x12747e,this[_0x41fc89(0xf2)]=_0x310486,this[_0x41fc89(0x147)]=_0x5fa452,this[_0x41fc89(0x15d)]=_0x26e37b,this[_0x41fc89(0x148)]=_0x26ddb6);}get[_0x49571b(0x107)](){var _0x4fc266=_0x49571b;return this[_0x4fc266(0x126)]['getValue']();}[_0x49571b(0x184)](){var _0xa992=_0x49571b,_0x536450;(_0x536450=this['_commandDisposable'])==null||_0x536450[_0xa992(0x184)](),this[_0xa992(0x126)][_0xa992(0xf7)](_0xa992(0xf8)),this[_0xa992(0x126)][_0xa992(0x15b)]();}[_0x49571b(0x18b)](){var _0x4f6f8b=_0x49571b;this['_init']||(this[_0x4f6f8b(0x1be)]=!0x0,this[_0x4f6f8b(0xf2)][_0x4f6f8b(0x1a9)][_0x4f6f8b(0x1c0)](b[_0x4f6f8b(0x182)](this[_0x4f6f8b(0x1af)]))[_0x4f6f8b(0x1a0)](_0x1247f2=>{var _0x16b661=_0x4f6f8b;switch(_0x1247f2){case m[_0x16b661(0x102)]['OFFLINE']:this[_0x16b661(0xfd)]();break;case m[_0x16b661(0x102)][_0x16b661(0x16f)]:this[_0x16b661(0x1a5)]();break;}}),this[_0x4f6f8b(0xf2)][_0x4f6f8b(0x1b5)][_0x4f6f8b(0x1c0)](b['takeUntil'](this[_0x4f6f8b(0x1af)]))[_0x4f6f8b(0x1a0)](_0x1b368b=>{var _0x1a1b43=_0x4f6f8b;const {eventID:_0x795767}=_0x1b368b;switch(_0x795767){case _[_0x1a1b43(0x1a8)][_0x1a1b43(0x171)]:this[_0x1a1b43(0x1c8)](_0x1b368b);break;case _[_0x1a1b43(0x1a8)][_0x1a1b43(0x194)]:this[_0x1a1b43(0x130)](_0x1b368b);break;case _[_0x1a1b43(0x1a8)][_0x1a1b43(0x175)]:this[_0x1a1b43(0x1b8)]();break;case _[_0x1a1b43(0x1a8)]['NEW_CHANGESETS']:this[_0x1a1b43(0x183)](_0x1b368b);break;}}));}[_0x49571b(0x14f)](){var _0x399ac3=_0x49571b;this[_0x399ac3(0xf2)][_0x399ac3(0xf3)]({'eventID':_[_0x399ac3(0x1a8)][_0x399ac3(0x1ab)],'data':{'unitID':this[_0x399ac3(0x197)],'userID':this['_collabSession'][_0x399ac3(0x180)]()}},this['_unitID']);}[_0x49571b(0x146)](){var _0x4b695d=_0x49571b;this[_0x4b695d(0x107)]===_0x4b695d(0x17f)&&(this[_0x4b695d(0x126)][_0x4b695d(0xf7)]('idle'),this[_0x4b695d(0xf2)][_0x4b695d(0xf3)]({'eventID':_[_0x4b695d(0x1a8)][_0x4b695d(0x175)],'data':{'unitID':this['_unitID']}},this[_0x4b695d(0x197)]));}[_0x49571b(0x170)](){var _0x1f1c22=_0x49571b;this[_0x1f1c22(0x107)]==='not-following'&&(this[_0x1f1c22(0x126)][_0x1f1c22(0xf7)](_0x1f1c22(0x172)),this[_0x1f1c22(0xeb)]());}['stopFollowing'](){var _0x5c20be=_0x49571b;this[_0x5c20be(0x107)]===_0x5c20be(0x172)&&this['_stopFollowing']();}[_0x49571b(0x1c8)](_0x2e48e1){var _0x5b9183=_0x49571b;const {presenter:_0xad4cc5}=_0x2e48e1[_0x5b9183(0x136)],_0x1cd4a8=this[_0x5b9183(0xf2)][_0x5b9183(0x180)]();this[_0x5b9183(0x138)]=_0xad4cc5,_0xad4cc5===_0x1cd4a8?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x5b9183(0x107)]!==_0x5b9183(0x1b1)&&(this[_0x5b9183(0x124)](),this['_startFollowing']());}['_fetchOperations'](){var _0x33c117=_0x49571b;const _0x3273c4={'eventID':_[_0x33c117(0x1a8)][_0x33c117(0x11b)]};this['_collabSession']['send'](_0x3273c4,this[_0x33c117(0x197)]);}[_0x49571b(0x1b8)](){var _0x3c794b=_0x49571b;this[_0x3c794b(0x138)]=null,this['_status']!==_0x3c794b(0x17f)&&this[_0x3c794b(0x10e)]();}[_0x49571b(0x183)](_0x3aafa7){var _0x194309=_0x49571b;if(this['_status']===_0x194309(0x172)&&this[_0x194309(0x138)]===_0x3aafa7['data'][_0x194309(0x109)]){const _0x331ac0=_[_0x194309(0x1cd)](_0x3aafa7[_0x194309(0x136)])['mutations'][_0x194309(0x129)]()[_0x194309(0x1bc)](_0x4a82de=>_0x4a82de['id']===C['InsertSheetMutation']['id']);if(_0x331ac0){const _0x2eeee1=_0x331ac0['params'][_0x194309(0x1ba)],_0x155b7d=_0x331ac0['params'][_0x194309(0x19f)]['id'];setTimeout(()=>{var _0x3f8b78=_0x194309;this[_0x3f8b78(0x148)]['executeCommand'](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x2eeee1,'subUnitId':_0x155b7d},{'fromCollab':!0x0});});}}}[_0x49571b(0x106)](){var _0x14e37a=_0x49571b;this[_0x14e37a(0x126)][_0x14e37a(0xf7)](_0x14e37a(0x17f));const _0x5c524e=new Map(),_0x27e8e1=this[_0x14e37a(0x1ad)]=new o[(_0x14e37a(0x11f))]();_0x27e8e1[_0x14e37a(0x186)](o[_0x14e37a(0x121)](()=>{var _0x28a7a2=_0x14e37a;_0x5c524e[_0x28a7a2(0x185)](_0x53e2d8=>_0x53e2d8[_0x28a7a2(0x15b)]()),_0x5c524e[_0x28a7a2(0x198)]();})),_0x27e8e1[_0x14e37a(0x186)](this[_0x14e37a(0x148)][_0x14e37a(0x188)](_0x9402f6=>{var _0x56c9ee=_0x14e37a,_0x23f432;if(_0x9402f6['type']!==o['CommandType'][_0x56c9ee(0x177)]||!this[_0x56c9ee(0x15d)]['shouldShareOperation'](_0x9402f6['id']))return;const {id:_0x5123e7}=_0x9402f6;let _0x225b5e;_0x5c524e[_0x56c9ee(0x178)](_0x5123e7)?_0x225b5e=_0x5c524e[_0x56c9ee(0xf1)](_0x5123e7):(_0x225b5e=new D[(_0x56c9ee(0x13f))](),_0x5c524e['set'](_0x5123e7,_0x225b5e),_0x225b5e[_0x56c9ee(0x1c0)](b[_0x56c9ee(0x164)]((_0x23f432=this[_0x56c9ee(0x147)][_0x56c9ee(0x1c1)](Z))!=null?_0x23f432:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x56c9ee(0x1a0)](_0x55e57d=>{var _0x20e2d2=_0x56c9ee;this['_collabSession'][_0x20e2d2(0xf3)]({'eventID':_[_0x20e2d2(0x1a8)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x20e2d2(0x197)],'operations':{[_0x55e57d['id']]:{'id':_0x55e57d['id'],'params':JSON[_0x20e2d2(0xef)](_0x55e57d['params'])}}}},this[_0x20e2d2(0x197)]);})),_0x225b5e[_0x56c9ee(0xf7)](_0x9402f6);})),this[_0x14e37a(0x15d)][_0x14e37a(0x159)](this[_0x14e37a(0x197)])[_0x14e37a(0x185)](_0x24b95f=>this[_0x14e37a(0xf2)][_0x14e37a(0xf3)]({'eventID':_[_0x14e37a(0x1a8)][_0x14e37a(0x194)],'data':{'unitID':this[_0x14e37a(0x197)],'operations':{[_0x24b95f['id']]:{'id':_0x24b95f['id'],'params':JSON[_0x14e37a(0xef)](_0x24b95f[_0x14e37a(0x100)])}}}},this[_0x14e37a(0x197)]));}[_0x49571b(0x124)](){var _0x35838b=_0x49571b,_0x266dfc;this[_0x35838b(0x126)][_0x35838b(0xf7)]('idle'),(_0x266dfc=this[_0x35838b(0x1ad)])==null||_0x266dfc[_0x35838b(0x184)](),this['_commandDisposable']=null;}[_0x49571b(0xeb)](){var _0x53e05f=_0x49571b,_0x1a822d;(_0x1a822d=this['_commandDisposable'])==null||_0x1a822d[_0x53e05f(0x184)](),this[_0x53e05f(0x126)][_0x53e05f(0xf7)](_0x53e05f(0x172));}[_0x49571b(0x10e)](){var _0x333847=_0x49571b,_0x44d2cb;this['_status$']['next'](_0x333847(0xf8)),(_0x44d2cb=this[_0x333847(0x1ad)])==null||_0x44d2cb[_0x333847(0x184)](),this[_0x333847(0x1ad)]=null;}[_0x49571b(0x181)](){var _0xeab34c=_0x49571b,_0x796ba2;this[_0xeab34c(0x126)]['next']('not-following'),(_0x796ba2=this[_0xeab34c(0x1ad)])==null||_0x796ba2[_0xeab34c(0x184)]();}[_0x49571b(0x130)](_0x7bc037){var _0xd8fffa=_0x49571b;if([_0xd8fffa(0x17f),_0xd8fffa(0x1b1),'offline']['includes'](this['_status'])||!_0x7bc037[_0xd8fffa(0x136)][_0xd8fffa(0x18a)]||_0x7bc037['data'][_0xd8fffa(0x18a)]===this[_0xd8fffa(0xf2)]['getMemberID']())return;this[_0xd8fffa(0x107)]===_0xd8fffa(0xf8)&&this[_0xd8fffa(0xeb)]();const _0x4497ac=_0x7bc037[_0xd8fffa(0x136)][_0xd8fffa(0x1c9)];Object['values'](_0x4497ac)[_0xd8fffa(0x185)](_0x1b20e5=>{var _0x5930c7=_0xd8fffa;this['_commandService'][_0x5930c7(0x120)](_0x1b20e5['id'],_0x1b20e5['params']?JSON[_0x5930c7(0xea)](_0x1b20e5[_0x5930c7(0x100)]):null,{'fromCollab':!0x0});});}[_0x49571b(0xfd)](){var _0xeae92=_0x49571b,_0x3989ac;this[_0xeae92(0x126)][_0xeae92(0xf7)](_0xeae92(0x195)),(_0x3989ac=this[_0xeae92(0x1ad)])==null||_0x3989ac[_0xeae92(0x184)]();}[_0x49571b(0x1a5)](){var _0x55c859=_0x49571b;this['_status$'][_0x55c859(0xf7)](_0x55c859(0xf8)),this['_fetchOperations']();}},exports[_0x49571b(0x145)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0x49571b(0x1c6)](O)),S(0x4,o[_0x49571b(0x1b7)])],exports['LiveShareCoordinator']);function A(){var _0x598b13=_0x49571b;const _0x2c735b=p[_0x598b13(0x1bb)](exports[_0x598b13(0x168)]),_0x23186f=p[_0x598b13(0x1bb)](o[_0x598b13(0x152)]),_0x1c30f0=p[_0x598b13(0x11c)](()=>_0x23186f[_0x598b13(0x12b)](o[_0x598b13(0x1a3)][_0x598b13(0x19c)]),void 0x0,!0x1,[]),[_0x4bc813,_0x5d2f6d]=f[_0x598b13(0x179)](null),[_0x36c138,_0x209125]=f[_0x598b13(0x179)](h['IDLE']),_0x11eb65=f['useRef'](null);return f['useEffect'](()=>(_0x1c30f0&&_0x2c735b['getLiveShareCoordinator'](_0x1c30f0['getUnitId']())[_0x598b13(0x132)](_0x38731a=>{var _0x5725ec=_0x598b13;_0x5d2f6d(_0x38731a),_0x11eb65['current']=_0x38731a[_0x5725ec(0x19e)][_0x5725ec(0x1a0)](_0x1f09b6=>{_0x209125(_0x1f09b6);});}),()=>{var _0x3451bb=_0x598b13,_0x3fc939;(_0x3fc939=_0x11eb65['current'])==null||_0x3fc939[_0x3451bb(0x12a)](),_0x11eb65[_0x3451bb(0x143)]=null;}),[_0x1c30f0,_0x2c735b]),_0x4bc813?l[_0x598b13(0x1aa)](g[_0x598b13(0x118)],{'align':_0x598b13(0x167),'disabled':_0x36c138===h['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x598b13(0x1aa)](K,{'status':_0x36c138,'coordinator':_0x4bc813}),'children':l[_0x598b13(0x1aa)](_0x598b13(0x114),{'className':g[_0x598b13(0x12c)](_0x598b13(0x196),{'univer-cursor-not-allowed':_0x36c138===h[_0x598b13(0x19a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x36c138!==h[_0x598b13(0x19a)]}),'type':_0x598b13(0x114),'children':l['jsx'](P,{'className':_0x598b13(0x14a)})})}):null;}function K(_0x28c56d){var _0x17e81a=_0x49571b;const {status:_0x51ff6f,coordinator:_0x1eca62}=_0x28c56d;switch(_0x51ff6f){case h[_0x17e81a(0x160)]:return l[_0x17e81a(0x1aa)](z,{'coordinator':_0x1eca62});case h[_0x17e81a(0x1b6)]:return l[_0x17e81a(0x1aa)](Q,{'coordinator':_0x1eca62});case h[_0x17e81a(0xed)]:return l[_0x17e81a(0x1aa)](X,{'coordinator':_0x1eca62});case h[_0x17e81a(0x19a)]:return l[_0x17e81a(0x1aa)](te,{});case h[_0x17e81a(0x19b)]:return l['jsx'](ee,{'coordinator':_0x1eca62});default:return null;}}function z(_0x2c8b5e){var _0x2206c9=_0x49571b;const {coordinator:_0x5cc736}=_0x2c8b5e;return l[_0x2206c9(0x104)](l[_0x2206c9(0xf4)],{'children':[l[_0x2206c9(0x1aa)](_0x2206c9(0x189),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2206c9(0x155)}),l[_0x2206c9(0x1aa)](g['Button'],{'onClick':()=>_0x5cc736['tryStartPresenting'](),'children':_0x2206c9(0x125)})]});}function Q(_0x20f11c){var _0x130dcd=_0x49571b;const {coordinator:_0x2dafb6}=_0x20f11c;return l[_0x130dcd(0x104)](l[_0x130dcd(0xf4)],{'children':[l['jsx'](_0x130dcd(0x189),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x130dcd(0x1a7)}),l[_0x130dcd(0x1aa)](g[_0x130dcd(0x1b3)],{'onClick':()=>_0x2dafb6[_0x130dcd(0x17e)](),'children':_0x130dcd(0x13b)})]});}function X(_0x25c6ad){var _0x36a9d5=_0x49571b;const {coordinator:_0x170118}=_0x25c6ad;return l[_0x36a9d5(0x104)](l[_0x36a9d5(0xf4)],{'children':[l[_0x36a9d5(0x1aa)](_0x36a9d5(0x189),{'className':_0x36a9d5(0x1cc),'children':_0x36a9d5(0x16e)}),l[_0x36a9d5(0x1aa)](g[_0x36a9d5(0x1b3)],{'variant':_0x36a9d5(0x15e),'onClick':()=>_0x170118['startFollowing'](),'children':_0x36a9d5(0x18f)})]});}function ee(_0x2ba688){var _0x412916=_0x49571b;const {coordinator:_0x2d162d}=_0x2ba688;return l[_0x412916(0x104)](l['Fragment'],{'children':[l[_0x412916(0x1aa)](_0x412916(0x189),{'className':_0x412916(0x1cc),'children':_0x412916(0x156)}),l['jsx'](g[_0x412916(0x1b3)],{'variant':_0x412916(0x1b9),'onClick':()=>_0x2d162d[_0x412916(0x146)](),'children':_0x412916(0x119)})]});}function te(){var _0x17010=_0x49571b;return l[_0x17010(0x1aa)](l['Fragment'],{'children':_0x17010(0x1a1)});}var ie=Object[_0x49571b(0x187)],ne=(_0x4da942,_0x3d9f16,_0x366de5,_0x2b0ee1)=>{var _0x8bd180=_0x49571b;for(var _0x50edba=_0x2b0ee1>0x1?void 0x0:_0x2b0ee1?ie(_0x3d9f16,_0x366de5):_0x3d9f16,_0x1a1e39=_0x4da942[_0x8bd180(0x174)]-0x1,_0x15890d;_0x1a1e39>=0x0;_0x1a1e39--)(_0x15890d=_0x4da942[_0x1a1e39])&&(_0x50edba=_0x15890d(_0x50edba)||_0x50edba);return _0x50edba;},L=(_0x420f72,_0x202181)=>(_0x4492f1,_0x3c9dd4)=>_0x202181(_0x4492f1,_0x3c9dd4,_0x420f72);exports[_0x49571b(0x13a)]=class extends o[_0x49571b(0x117)]{constructor(_0x389a63,_0x1a4245){super(),this['_injector']=_0x389a63,this['_uiPartsService']=_0x1a4245,this['_mountLiveShare']();}[_0x49571b(0x137)](){var _0x18a399=_0x49571b;this[_0x18a399(0x163)](this[_0x18a399(0x10c)][_0x18a399(0x191)](p[_0x18a399(0x1c2)][_0x18a399(0x11e)],()=>p['connectInjector'](A,this[_0x18a399(0x17b)])));}},exports[_0x49571b(0x13a)]=ne([L(0x0,o['Inject'](o['Injector'])),L(0x1,p[_0x49571b(0x141)])],exports[_0x49571b(0x13a)]);var re=Object['defineProperty'],se=Object[_0x49571b(0x187)],oe=(_0x3240f7,_0x5f9f5a,_0x420f22)=>_0x5f9f5a in _0x3240f7?re(_0x3240f7,_0x5f9f5a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x420f22}):_0x3240f7[_0x5f9f5a]=_0x420f22,ae=(_0x1f8d7d,_0x3168e6,_0x132aaa,_0x522127)=>{var _0x4ca695=_0x49571b;for(var _0x378ccd=_0x522127>0x1?void 0x0:_0x522127?se(_0x3168e6,_0x132aaa):_0x3168e6,_0x297dc1=_0x1f8d7d[_0x4ca695(0x174)]-0x1,_0x322e42;_0x297dc1>=0x0;_0x297dc1--)(_0x322e42=_0x1f8d7d[_0x297dc1])&&(_0x378ccd=_0x322e42(_0x378ccd)||_0x378ccd);return _0x378ccd;},N=(_0x2411ea,_0x35f1f3)=>(_0x5e0e0d,_0x3866df)=>_0x35f1f3(_0x5e0e0d,_0x3866df,_0x2411ea),T=(_0x47b242,_0x5bbf71,_0x10efb3)=>oe(_0x47b242,typeof _0x5bbf71!=_0x49571b(0x19d)?_0x5bbf71+'':_0x5bbf71,_0x10efb3);const le=_0x49571b(0x162);exports[_0x49571b(0x199)]=class extends o[_0x49571b(0x18e)]{constructor(_0x59605c=x,_0x3910df,_0x5acf75){var _0x3dba5f=_0x49571b;super(),this[_0x3dba5f(0xee)]=_0x59605c,this[_0x3dba5f(0x17b)]=_0x3910df,this[_0x3dba5f(0x147)]=_0x5acf75;const {..._0x231ad6}=o[_0x3dba5f(0x16d)]({},x,this[_0x3dba5f(0xee)]);this[_0x3dba5f(0x147)][_0x3dba5f(0xf5)]($,_0x231ad6);}['onStarting'](){var _0x484a0c=_0x49571b;o[_0x484a0c(0x135)](this['_injector'],o[_0x484a0c(0x15f)]([[O],[exports['LiveShareController']],[E],[exports['DesktopLiveShareController']]],this[_0x484a0c(0xee)][_0x484a0c(0x149)])),o[_0x484a0c(0x173)](this['_injector'],[[E]]);}[_0x49571b(0xf9)](){var _0x5292f2=_0x49571b;o[_0x5292f2(0x173)](this[_0x5292f2(0x17b)],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x49571b(0x199)],_0x49571b(0x131),o['UniverInstanceType']['UNIVER_UNKNOWN']),T(exports['UniverLiveSharePlugin'],_0x49571b(0x14d),le),exports[_0x49571b(0x199)]=ae([o[_0x49571b(0x133)](m['UniverCollaborationClientPlugin']),N(0x1,o['Inject'](o[_0x49571b(0x153)])),N(0x2,o[_0x49571b(0x1b0)])],exports['UniverLiveSharePlugin']),exports['LiveShare']=A,exports[_0x49571b(0x12f)]=O,exports['LiveShareStatus']=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0xb5a573=_0xa6c5;(function(_0x35bbd9,_0x36c5d6){var _0x2078ed=_0xa6c5,_0x426d25=_0x35bbd9();while(!![]){try{var _0x361a7f=-parseInt(_0x2078ed(0xd0))/0x1+-parseInt(_0x2078ed(0x12e))/0x2+-parseInt(_0x2078ed(0x110))/0x3+-parseInt(_0x2078ed(0x147))/0x4+-parseInt(_0x2078ed(0xc0))/0x5+parseInt(_0x2078ed(0xb2))/0x6+-parseInt(_0x2078ed(0xf5))/0x7*(-parseInt(_0x2078ed(0xc8))/0x8);if(_0x361a7f===_0x36c5d6)break;else _0x426d25['push'](_0x426d25['shift']());}catch(_0x12954e){_0x426d25['push'](_0x426d25['shift']());}}}(_0xa808,0x63b57));var q=Object[_0xb5a573(0x123)],z=(_0x18188e,_0x265afc,_0xc056f9)=>_0x265afc in _0x18188e?q(_0x18188e,_0x265afc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc056f9}):_0x18188e[_0x265afc]=_0xc056f9,d=(_0x2e57e4,_0xf5a1d6,_0x1ac388)=>z(_0x2e57e4,typeof _0xf5a1d6!=_0xb5a573(0x10b)?_0xf5a1d6+'':_0xf5a1d6,_0x1ac388);import{CollaborationSessionService as _0x4060c7,SessionStatus as _0x56066c,UniverCollaborationClientPlugin as _0x4dd30b}from'@univerjs-pro/collaboration-client';import{Disposable as _0x250142,toDisposable as _0x48fd6a,Inject as _0x25c40d,IUniverInstanceService as _0x5844ca,Injector as _0x23997e,IConfigService as _0x94ff8f,ICommandService as _0x1cfa91,RxDisposable as _0x418f74,UniverInstanceType as _0x1101b5,DisposableCollection as _0x4833fc,CommandType as _0x56378a,DependentOn as _0x39b586,Plugin as _0x5e8534,merge as _0x2a990a,registerDependencies as _0x2e1b41,mergeOverrideWithDependencies as _0x502523,touchDependencies as _0x163c27}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x163e4d,InsertSheetMutation as _0xdd5f97}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x4cc003,SetScrollOperation as _0x49d044}from'@univerjs/sheets-ui';import{useDependency as _0x17f9c4,useObservable as _0x5e0586,IUIPartsService as _0x277d3f,BuiltInUIPart as _0x3e8244,connectInjector as _0x598d28}from'@univerjs/ui';import{jsx as _0x1500a3,jsxs as _0x41e94b,Fragment as _0x533264}from'react/jsx-runtime';import{Dropdown as _0xe6f284,clsx as _0x4aa598,Button as _0x589980}from'@univerjs/design';import{forwardRef as _0x421cb2,useRef as _0x2b7cde,createElement as _0x576f64,useState as _0x55d438,useEffect as _0x58a87a}from'react';import{CollaborationEvent as _0x3fac8b,parseProtocolChangeset as _0x1368e0}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0xb5b223,Subject as _0x11092e}from'rxjs';import{takeUntil as _0x5f0151,throttleTime as _0x285441}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x250142{constructor(){var _0x484680=_0xb5a573;super(...arguments),d(this,_0x484680(0xf8),new Set()),d(this,'_reporters',new Set());}[_0xb5a573(0x13c)](_0x173c29){var _0x211cfc=_0xb5a573;return this[_0x211cfc(0xf8)]['add'](_0x173c29),_0x48fd6a(()=>this[_0x211cfc(0xf8)][_0x211cfc(0xea)](_0x173c29));}[_0xb5a573(0x151)](_0x4a5345){var _0x738c4b=_0xb5a573;return this[_0x738c4b(0x114)][_0x738c4b(0x133)](_0x4a5345),_0x48fd6a(()=>this['_reporters'][_0x738c4b(0xea)](_0x4a5345));}[_0xb5a573(0x108)](_0x351785){var _0x56f678=_0xb5a573;return this[_0x56f678(0xf8)][_0x56f678(0x101)](_0x351785);}['getInitialStates'](_0x347fb2){var _0x2c94fb=_0xb5a573;return Array[_0x2c94fb(0xf1)](this[_0x2c94fb(0x114)])['map'](_0x497a73=>_0x497a73(_0x347fb2));}}var Ee=Object[_0xb5a573(0x117)],we=(_0x50ef32,_0x3b657f,_0x20797c,_0x4c0f10)=>{var _0x13e7d2=_0xb5a573;for(var _0x1162e8=_0x4c0f10>0x1?void 0x0:_0x4c0f10?Ee(_0x3b657f,_0x20797c):_0x3b657f,_0x3dfbc1=_0x50ef32[_0x13e7d2(0xe0)]-0x1,_0x142f0a;_0x3dfbc1>=0x0;_0x3dfbc1--)(_0x142f0a=_0x50ef32[_0x3dfbc1])&&(_0x1162e8=_0x142f0a(_0x1162e8)||_0x1162e8);return _0x1162e8;},Ne=(_0x12c63c,_0x4199f3)=>(_0x56921f,_0x39ffdf)=>_0x4199f3(_0x56921f,_0x39ffdf,_0x12c63c);let m=class extends _0x250142{constructor(_0x3308ff){var _0x221a12=_0xb5a573;super(),this[_0x221a12(0xb5)]=_0x3308ff,this['_init']();}[_0xb5a573(0xfb)](){var _0x490701=_0xb5a573;[_0x4cc003['id'],_0x49d044['id'],_0x163e4d['id']][_0x490701(0xb1)](_0x337d20=>{var _0xdc1fd3=_0x490701;this[_0xdc1fd3(0xcc)](this[_0xdc1fd3(0xb5)][_0xdc1fd3(0x13c)](_0x337d20));});}};m=we([Ne(0x0,_0x25c40d(L))],m);function _0xa808(){var _0x5807b0=['default','current','_startPresenting','operations','ONLINE','_commandService','from','_handleOffline','next','_config','47369nWhxvU','onCommandExecuted','attrs','_sharedOperations','evenodd','IDLE','_init','_commandDisposable','idle','_collabSessionService','Stop\x20presenting','getLiveShareCoordinator','has','idSuffix','UNIVER_LIVE_SHARE_PLUGIN','text','none','entries','send','shouldShareOperation','offline','set','symbol','find','replace','1em','xlink:href','1931262ZEyXhd','icon','getMemberID','_univerInstanceService','_reporters','stringify','_stopFollowing','getOwnPropertyDescriptor','Present\x20this\x20document','LIVESHARE_REQUEST_HOST','_beIdle','pluginName','sessionStatus$','getCurrentTypeOfUnit$','Start','SAME_OPERATION_SHARE_INTERVAL','tag','onRendered','currentColor','defineProperty','_unitID','NEW_CHANGESETS','LIVESHARE_TERMINATE','random','getUnitId','_presenter','init','LIVESHARE_OPERATION','className','getValue','1136474boFWxC','LIVESHARE_NEW_HOST','parse','LIVESHARE_FETCH_OPERATIONS','type','add','values','_status$','_handleOnline','path','_fetchOperations','clear','not-following','pipe','registerSharedOperation','stopPresenting','event$','apply','OFFLINE','status$','You\x27re\x20following\x20the\x20presenter','presenting','sheet','params','getOwnPropertySymbols','3038052QuuFwx','extend','_collabSession','indexOf','following','trim','url(#$1','_handleNewHost','subscribe','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','registerInitialStateReporter','You\x27re\x20not\x20following\x20the\x20presenter','stopFollowing','_injector','end','defIds','live-share-icon','createInstance','_startLiveShareCoordinator','forEach','4164768cHwCVy','getTypeOfUnitAdded$','univer-size-4','_liveShareService','NOT_FOLLOWING','_startFollowing','div','registerComponent','string','get','executeCommand','mask','PRESENTING','children','1496690xJmOrM','includes','startFollowing','colorChannel1','_mountLiveShare','override','dispose','hasOwnProperty','3272PNLoQa','UNIVER_SHEET','map','setConfig','disposeWithMe','dispose$','UniverIcon','LiveShareIcon','782582RjgPVS','UNIVER_UNKNOWN','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','univer-mb-3\x20univer-w-full\x20univer-text-sm','button','_handleTerminate','_configService','asObservable','complete','You\x27re\x20presenting\x20the\x20document','concat','substring','displayName','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','prototype','_uiPartsService','length','tryStartPresenting','presenter','data','fill','call','defs','_handleNewChangeSets','_entities','_status','delete'];_0xa808=function(){return _0x5807b0;};return _0xa808();}var c=function(){var _0x45c732=_0xb5a573;return c=Object['assign']||function(_0x480694){var _0x2c3130=_0xa6c5;for(var _0x46b696,_0x38c01f=0x1,_0x26edbb=arguments[_0x2c3130(0xe0)];_0x38c01f<_0x26edbb;_0x38c01f++){_0x46b696=arguments[_0x38c01f];for(var _0x7ad333 in _0x46b696)Object[_0x2c3130(0xde)][_0x2c3130(0xc7)]['call'](_0x46b696,_0x7ad333)&&(_0x480694[_0x7ad333]=_0x46b696[_0x7ad333]);}return _0x480694;},c[_0x45c732(0x13f)](this,arguments);},Ce=function(_0x1c87b2,_0x20656e){var _0x2de0ed=_0xb5a573,_0x229df9={};for(var _0x37ce6e in _0x1c87b2)Object[_0x2de0ed(0xde)][_0x2de0ed(0xc7)]['call'](_0x1c87b2,_0x37ce6e)&&_0x20656e['indexOf'](_0x37ce6e)<0x0&&(_0x229df9[_0x37ce6e]=_0x1c87b2[_0x37ce6e]);if(_0x1c87b2!=null&&typeof Object[_0x2de0ed(0x146)]=='function'){for(var _0x548796=0x0,_0x37ce6e=Object[_0x2de0ed(0x146)](_0x1c87b2);_0x548796<_0x37ce6e[_0x2de0ed(0xe0)];_0x548796++)_0x20656e[_0x2de0ed(0x14a)](_0x37ce6e[_0x548796])<0x0&&Object[_0x2de0ed(0xde)]['propertyIsEnumerable'][_0x2de0ed(0xe5)](_0x1c87b2,_0x37ce6e[_0x548796])&&(_0x229df9[_0x37ce6e[_0x548796]]=_0x1c87b2[_0x37ce6e[_0x548796]]);}return _0x229df9;},W=_0x421cb2(function(_0x315424,_0x4193e3){var _0x487faf=_0xb5a573,_0x292d6c=_0x315424[_0x487faf(0x111)],_0x5d4418=_0x315424['id'],_0x4327ba=_0x315424[_0x487faf(0x12c)],_0x129621=_0x315424['extend'],_0x2c3401=Ce(_0x315424,[_0x487faf(0x111),'id',_0x487faf(0x12c),_0x487faf(0x148)]),_0x12471='univerjs-icon\x20univerjs-icon-'[_0x487faf(0xda)](_0x5d4418,'\x20')[_0x487faf(0xda)](_0x4327ba||'')[_0x487faf(0x14c)](),_0x4037ca=_0x2b7cde('_'['concat'](Le()));return Y(_0x292d6c,''[_0x487faf(0xda)](_0x5d4418),{'defIds':_0x292d6c[_0x487faf(0x156)],'idSuffix':_0x4037ca['current']},c({'ref':_0x4193e3,'className':_0x12471},_0x2c3401),_0x129621);});function Y(_0x138ab5,_0x47a833,_0x5919ec,_0x19179b,_0x1941bd){var _0x1b0f16=_0xb5a573;return _0x576f64(_0x138ab5[_0x1b0f16(0x120)],c(c({'key':_0x47a833},De(_0x138ab5,_0x5919ec,_0x1941bd)),_0x19179b),(xe(_0x138ab5,_0x5919ec)[_0x1b0f16(0xbf)]||[])[_0x1b0f16(0xca)](function(_0x2c9d72,_0x2891c9){var _0x4a1a72=_0x1b0f16;return Y(_0x2c9d72,''[_0x4a1a72(0xda)](_0x47a833,'-')[_0x4a1a72(0xda)](_0x138ab5[_0x4a1a72(0x120)],'-')[_0x4a1a72(0xda)](_0x2891c9),_0x5919ec,void 0x0,_0x1941bd);}));}function De(_0x112fcb,_0x25272c,_0x179fa0){var _0x56f206=_0xb5a573,_0x2a40e8=c({},_0x112fcb[_0x56f206(0xf7)]);_0x179fa0!=null&&_0x179fa0['colorChannel1']&&_0x2a40e8[_0x56f206(0xe4)]==='colorChannel1'&&(_0x2a40e8[_0x56f206(0xe4)]=_0x179fa0[_0x56f206(0xc3)]),_0x112fcb[_0x56f206(0x120)]===_0x56f206(0xbd)&&_0x2a40e8['id']&&(_0x2a40e8['id']=_0x2a40e8['id']+_0x25272c[_0x56f206(0x102)]),Object['entries'](_0x2a40e8)[_0x56f206(0xb1)](function(_0x64d72c){var _0xa59c2f=_0x56f206,_0x47cd7e=_0x64d72c[0x0],_0x1175e8=_0x64d72c[0x1];_0x47cd7e===_0xa59c2f(0xbd)&&typeof _0x1175e8==_0xa59c2f(0xba)&&(_0x2a40e8[_0x47cd7e]=_0x1175e8[_0xa59c2f(0x10d)](/url\(#(.*)\)/,_0xa59c2f(0x14d)[_0xa59c2f(0xda)](_0x25272c[_0xa59c2f(0x102)],')')));});var _0x20cff2=_0x25272c[_0x56f206(0x156)];return!_0x20cff2||_0x20cff2[_0x56f206(0xe0)]===0x0||(_0x112fcb['tag']==='use'&&_0x2a40e8['xlink:href']&&(_0x2a40e8[_0x56f206(0x10f)]=_0x2a40e8['xlink:href']+_0x25272c[_0x56f206(0x102)]),Object[_0x56f206(0x106)](_0x2a40e8)[_0x56f206(0xb1)](function(_0x1b422a){var _0x1652ce=_0x56f206,_0x2bab6d=_0x1b422a[0x0],_0x1e03ca=_0x1b422a[0x1];typeof _0x1e03ca==_0x1652ce(0xba)&&(_0x2a40e8[_0x2bab6d]=_0x1e03ca['replace'](/url\(#(.*)\)/,_0x1652ce(0x14d)['concat'](_0x25272c['idSuffix'],')')));})),_0x2a40e8;}function xe(_0x171808,_0x1692ab){var _0x30d4bf=_0xb5a573,_0x3e7e91,_0xbe59f8=_0x1692ab[_0x30d4bf(0x156)];return!_0xbe59f8||_0xbe59f8[_0x30d4bf(0xe0)]===0x0?_0x171808:_0x171808[_0x30d4bf(0x120)]===_0x30d4bf(0xe6)&&(!((_0x3e7e91=_0x171808[_0x30d4bf(0xbf)])===null||_0x3e7e91===void 0x0)&&_0x3e7e91[_0x30d4bf(0xe0)])?c(c({},_0x171808),{'children':_0x171808[_0x30d4bf(0xbf)][_0x30d4bf(0xca)](function(_0x25032a){var _0x509706=_0x30d4bf;return typeof _0x25032a[_0x509706(0xf7)]['id']==_0x509706(0xba)&&_0xbe59f8&&_0xbe59f8[_0x509706(0xc1)](_0x25032a[_0x509706(0xf7)]['id'])?c(c({},_0x25032a),{'attrs':c(c({},_0x25032a[_0x509706(0xf7)]),{'id':_0x25032a[_0x509706(0xf7)]['id']+_0x1692ab['idSuffix']})}):_0x25032a;})}):_0x171808;}function Le(){var _0x37a888=_0xb5a573;return Math[_0x37a888(0x127)]()['toString'](0x24)[_0x37a888(0xdb)](0x2,0x8);}W['displayName']=_0xb5a573(0xce);var ye={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xb5a573(0x105),'viewBox':'0\x200\x2017\x2017','width':_0xb5a573(0x10e),'height':_0xb5a573(0x10e)},'children':[{'tag':'path','attrs':{'fill':_0xb5a573(0x122),'d':_0xb5a573(0xd2)}},{'tag':_0xb5a573(0x137),'attrs':{'fill':'currentColor','d':_0xb5a573(0x150),'fillRule':_0xb5a573(0xf9),'clipRule':'evenodd'}}]},B=_0x421cb2(function(_0xc9ad31,_0x2c6b35){var _0x17d831=_0xb5a573;return _0x576f64(W,Object['assign']({},_0xc9ad31,{'id':_0x17d831(0x157),'ref':_0x2c6b35,'icon':ye}));});B[_0xb5a573(0xdc)]=_0xb5a573(0xcf);var Re=Object[_0xb5a573(0x117)],Z=(_0x2110f3,_0x17c50c,_0x19e6ee,_0x2c7d89)=>{var _0x4e0b57=_0xb5a573;for(var _0x11a74c=_0x2c7d89>0x1?void 0x0:_0x2c7d89?Re(_0x17c50c,_0x19e6ee):_0x17c50c,_0x55be7c=_0x2110f3[_0x4e0b57(0xe0)]-0x1,_0x17a47a;_0x55be7c>=0x0;_0x55be7c--)(_0x17a47a=_0x2110f3[_0x55be7c])&&(_0x11a74c=_0x17a47a(_0x11a74c)||_0x11a74c);return _0x11a74c;},f=(_0x4ca70f,_0x13a830)=>(_0x2e22c4,_0x2df70b)=>_0x13a830(_0x2e22c4,_0x2df70b,_0x4ca70f);let I=class extends _0x418f74{constructor(_0x422f33,_0x5d774e,_0x3b7835){var _0x230507=_0xb5a573;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x422f33,this[_0x230507(0x154)]=_0x5d774e,this[_0x230507(0xfe)]=_0x3b7835,this[_0x230507(0xfb)]());}async[_0xb5a573(0x100)](_0x489896){var _0x39a0c9=_0xb5a573;return this['_entities'][_0x39a0c9(0x101)](_0x489896)||await this[_0x39a0c9(0xb0)](_0x489896),this['_entities'][_0x39a0c9(0xbb)](_0x489896);}[_0xb5a573(0xfb)](){var _0x5481a4=_0xb5a573;this['_univerInstanceService'][_0x5481a4(0xb3)](_0x1101b5[_0x5481a4(0xc9)])[_0x5481a4(0x13b)](_0x5f0151(this[_0x5481a4(0xcd)]))[_0x5481a4(0x14f)](async _0x4ded0a=>{var _0x36c111=_0x5481a4;const _0x3f8e70=_0x4ded0a[_0x36c111(0x128)]();this[_0x36c111(0xe8)][_0x36c111(0x101)](_0x3f8e70)||this['_startLiveShareCoordinator'](_0x3f8e70);}),this[_0x5481a4(0x113)]['getTypeOfUnitDisposed$'](_0x1101b5[_0x5481a4(0xc9)])[_0x5481a4(0x13b)](_0x5f0151(this['dispose$']))[_0x5481a4(0x14f)](_0x17a7ff=>{var _0x280141=_0x5481a4;const _0xc0747c=_0x17a7ff[_0x280141(0x128)](),_0x48fa78=this[_0x280141(0xe8)][_0x280141(0xbb)](_0xc0747c);_0x48fa78==null||_0x48fa78[_0x280141(0xc6)]();});}async[_0xb5a573(0xb0)](_0x593f94){var _0x578c24=_0xb5a573;const _0x58ae28=await this[_0x578c24(0xfe)]['requireSession'](_0x593f94),_0x406e20=this[_0x578c24(0x154)][_0x578c24(0x158)](C,_0x593f94,_0x58ae28);return _0x406e20[_0x578c24(0x12a)](),this[_0x578c24(0xe8)][_0x578c24(0x10a)](_0x593f94,_0x406e20),_0x406e20;}};I=Z([f(0x0,_0x5844ca),f(0x1,_0x25c40d(_0x23997e)),f(0x2,_0x25c40d(_0x4060c7))],I);var h=(_0x533652=>(_0x533652[_0xb5a573(0x140)]='offline',_0x533652[_0xb5a573(0xfa)]=_0xb5a573(0xfd),_0x533652['FOLLOWING']=_0xb5a573(0x14b),_0x533652[_0xb5a573(0xb6)]=_0xb5a573(0x13a),_0x533652[_0xb5a573(0xbe)]=_0xb5a573(0x143),_0x533652))(h||{});const Pe=_0xb5a573(0x11f),Ae=0xc8;let C=class extends _0x418f74{constructor(_0x3ba838,_0x52736f,_0x5448ed,_0x2c5746,_0x29206c){var _0x2f147f=_0xb5a573;super(),d(this,_0x2f147f(0x135),new _0xb5b223(_0x2f147f(0xfd))),d(this,_0x2f147f(0x141),this[_0x2f147f(0x135)][_0x2f147f(0xd7)]()),d(this,'_init',!0x1),d(this,_0x2f147f(0xfc),null),d(this,_0x2f147f(0x129),null),(this[_0x2f147f(0x124)]=_0x3ba838,this['_collabSession']=_0x52736f,this['_configService']=_0x5448ed,this[_0x2f147f(0xb5)]=_0x2c5746,this[_0x2f147f(0xf0)]=_0x29206c);}get[_0xb5a573(0xe9)](){var _0x53991b=_0xb5a573;return this[_0x53991b(0x135)][_0x53991b(0x12d)]();}['dispose'](){var _0x5b7d25=_0xb5a573,_0x3ae378;(_0x3ae378=this['_commandDisposable'])==null||_0x3ae378['dispose'](),this[_0x5b7d25(0x135)][_0x5b7d25(0xf3)](_0x5b7d25(0xfd)),this[_0x5b7d25(0x135)][_0x5b7d25(0xd8)]();}['init'](){var _0x2a58f1=_0xb5a573;this[_0x2a58f1(0xfb)]||(this[_0x2a58f1(0xfb)]=!0x0,this[_0x2a58f1(0x149)][_0x2a58f1(0x11c)]['pipe'](_0x5f0151(this[_0x2a58f1(0xcd)]))[_0x2a58f1(0x14f)](_0x131c71=>{var _0x38ad4c=_0x2a58f1;switch(_0x131c71){case _0x56066c['OFFLINE']:this[_0x38ad4c(0xf2)]();break;case _0x56066c[_0x38ad4c(0xef)]:this[_0x38ad4c(0x136)]();break;}}),this[_0x2a58f1(0x149)][_0x2a58f1(0x13e)]['pipe'](_0x5f0151(this['dispose$']))['subscribe'](_0x11ca74=>{var _0x1b2e5f=_0x2a58f1;const {eventID:_0x33b820}=_0x11ca74;switch(_0x33b820){case _0x3fac8b[_0x1b2e5f(0x12f)]:this[_0x1b2e5f(0x14e)](_0x11ca74);break;case _0x3fac8b[_0x1b2e5f(0x12b)]:this['_handleOperation'](_0x11ca74);break;case _0x3fac8b[_0x1b2e5f(0x126)]:this['_handleTerminate']();break;case _0x3fac8b[_0x1b2e5f(0x125)]:this[_0x1b2e5f(0xe7)](_0x11ca74);break;}}));}[_0xb5a573(0xe1)](){var _0x1ef7a0=_0xb5a573;this[_0x1ef7a0(0x149)][_0x1ef7a0(0x107)]({'eventID':_0x3fac8b[_0x1ef7a0(0x119)],'data':{'unitID':this[_0x1ef7a0(0x124)],'userID':this['_collabSession']['getMemberID']()}},this[_0x1ef7a0(0x124)]);}[_0xb5a573(0x13d)](){var _0x2fb3a2=_0xb5a573;this[_0x2fb3a2(0xe9)]==='presenting'&&(this['_status$'][_0x2fb3a2(0xf3)]('idle'),this['_collabSession'][_0x2fb3a2(0x107)]({'eventID':_0x3fac8b[_0x2fb3a2(0x126)],'data':{'unitID':this[_0x2fb3a2(0x124)]}},this[_0x2fb3a2(0x124)]));}[_0xb5a573(0xc2)](){var _0x1f290d=_0xb5a573;this[_0x1f290d(0xe9)]==='not-following'&&(this['_status$'][_0x1f290d(0xf3)](_0x1f290d(0x14b)),this['_startFollowing']());}[_0xb5a573(0x153)](){var _0x10b5ee=_0xb5a573;this[_0x10b5ee(0xe9)]==='following'&&this[_0x10b5ee(0x116)]();}[_0xb5a573(0x14e)](_0x1d5957){var _0x28289f=_0xb5a573;const {presenter:_0x262bba}=_0x1d5957[_0x28289f(0xe3)],_0x2ae66a=this[_0x28289f(0x149)][_0x28289f(0x112)]();this[_0x28289f(0x129)]=_0x262bba,_0x262bba===_0x2ae66a?(this['_stopFollowing'](),this[_0x28289f(0xed)]()):this[_0x28289f(0xe9)]!=='not-following'&&(this['_stopPresenting'](),this[_0x28289f(0xb7)]());}[_0xb5a573(0x138)](){var _0x38a8be=_0xb5a573;const _0xd07073={'eventID':_0x3fac8b[_0x38a8be(0x131)]};this[_0x38a8be(0x149)][_0x38a8be(0x107)](_0xd07073,this[_0x38a8be(0x124)]);}[_0xb5a573(0xd5)](){var _0x2c4196=_0xb5a573;this[_0x2c4196(0x129)]=null,this[_0x2c4196(0xe9)]!==_0x2c4196(0x143)&&this[_0x2c4196(0x11a)]();}[_0xb5a573(0xe7)](_0x427830){var _0x1d32f5=_0xb5a573;if(this[_0x1d32f5(0xe9)]===_0x1d32f5(0x14b)&&this['_presenter']===_0x427830[_0x1d32f5(0xe3)]['memberID']){const _0x3f249c=_0x1368e0(_0x427830[_0x1d32f5(0xe3)])['mutations']['reverse']()[_0x1d32f5(0x10c)](_0x15ea47=>_0x15ea47['id']===_0xdd5f97['id']);if(_0x3f249c){const _0x482123=_0x3f249c[_0x1d32f5(0x145)]['unitId'],_0x15e3b9=_0x3f249c['params'][_0x1d32f5(0x144)]['id'];setTimeout(()=>{var _0x10a453=_0x1d32f5;this[_0x10a453(0xf0)][_0x10a453(0xbc)](_0x163e4d['id'],{'unitId':_0x482123,'subUnitId':_0x15e3b9},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x47297=_0xb5a573;this['_status$'][_0x47297(0xf3)](_0x47297(0x143));const _0x254859=new Map(),_0x5a89fe=this['_commandDisposable']=new _0x4833fc();_0x5a89fe[_0x47297(0x133)](_0x48fd6a(()=>{var _0x2f52ca=_0x47297;_0x254859[_0x2f52ca(0xb1)](_0xc62ef6=>_0xc62ef6[_0x2f52ca(0xd8)]()),_0x254859[_0x2f52ca(0x139)]();})),_0x5a89fe['add'](this[_0x47297(0xf0)][_0x47297(0xf6)](_0x2cd2ec=>{var _0x4b51fd=_0x47297,_0x5c7147;if(_0x2cd2ec[_0x4b51fd(0x132)]!==_0x56378a['OPERATION']||!this[_0x4b51fd(0xb5)]['shouldShareOperation'](_0x2cd2ec['id']))return;const {id:_0x5b19d5}=_0x2cd2ec;let _0x395fc6;_0x254859[_0x4b51fd(0x101)](_0x5b19d5)?_0x395fc6=_0x254859[_0x4b51fd(0xbb)](_0x5b19d5):(_0x395fc6=new _0x11092e(),_0x254859['set'](_0x5b19d5,_0x395fc6),_0x395fc6['pipe'](_0x285441((_0x5c7147=this[_0x4b51fd(0xd6)]['getConfig'](Pe))!=null?_0x5c7147:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4b51fd(0x14f)](_0x28adf2=>{var _0x2881a3=_0x4b51fd;this[_0x2881a3(0x149)][_0x2881a3(0x107)]({'eventID':_0x3fac8b[_0x2881a3(0x12b)],'data':{'unitID':this[_0x2881a3(0x124)],'operations':{[_0x28adf2['id']]:{'id':_0x28adf2['id'],'params':JSON[_0x2881a3(0x115)](_0x28adf2[_0x2881a3(0x145)])}}}},this['_unitID']);})),_0x395fc6[_0x4b51fd(0xf3)](_0x2cd2ec);})),this[_0x47297(0xb5)]['getInitialStates'](this[_0x47297(0x124)])['forEach'](_0x2f6b1c=>this[_0x47297(0x149)]['send']({'eventID':_0x3fac8b[_0x47297(0x12b)],'data':{'unitID':this[_0x47297(0x124)],'operations':{[_0x2f6b1c['id']]:{'id':_0x2f6b1c['id'],'params':JSON[_0x47297(0x115)](_0x2f6b1c[_0x47297(0x145)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x3908e5=_0xb5a573,_0x1d428e;this['_status$']['next'](_0x3908e5(0xfd)),(_0x1d428e=this['_commandDisposable'])==null||_0x1d428e[_0x3908e5(0xc6)](),this['_commandDisposable']=null;}['_startFollowing'](){var _0x5588ba=_0xb5a573,_0x20508e;(_0x20508e=this[_0x5588ba(0xfc)])==null||_0x20508e[_0x5588ba(0xc6)](),this[_0x5588ba(0x135)][_0x5588ba(0xf3)](_0x5588ba(0x14b));}[_0xb5a573(0x11a)](){var _0x21562d=_0xb5a573,_0x4eb6cd;this[_0x21562d(0x135)][_0x21562d(0xf3)]('idle'),(_0x4eb6cd=this[_0x21562d(0xfc)])==null||_0x4eb6cd[_0x21562d(0xc6)](),this['_commandDisposable']=null;}[_0xb5a573(0x116)](){var _0x3de871=_0xb5a573,_0x34178f;this[_0x3de871(0x135)][_0x3de871(0xf3)](_0x3de871(0x13a)),(_0x34178f=this['_commandDisposable'])==null||_0x34178f[_0x3de871(0xc6)]();}['_handleOperation'](_0xcf7b58){var _0x1dab09=_0xb5a573;if([_0x1dab09(0x143),'not-following',_0x1dab09(0x109)][_0x1dab09(0xc1)](this[_0x1dab09(0xe9)])||!_0xcf7b58[_0x1dab09(0xe3)][_0x1dab09(0xe2)]||_0xcf7b58[_0x1dab09(0xe3)][_0x1dab09(0xe2)]===this[_0x1dab09(0x149)][_0x1dab09(0x112)]())return;this[_0x1dab09(0xe9)]===_0x1dab09(0xfd)&&this[_0x1dab09(0xb7)]();const _0x5b42c2=_0xcf7b58['data'][_0x1dab09(0xee)];Object[_0x1dab09(0x134)](_0x5b42c2)[_0x1dab09(0xb1)](_0xcba08a=>{var _0x23981e=_0x1dab09;this[_0x23981e(0xf0)][_0x23981e(0xbc)](_0xcba08a['id'],_0xcba08a['params']?JSON[_0x23981e(0x130)](_0xcba08a[_0x23981e(0x145)]):null,{'fromCollab':!0x0});});}[_0xb5a573(0xf2)](){var _0x406430=_0xb5a573,_0x4dfac2;this[_0x406430(0x135)][_0x406430(0xf3)](_0x406430(0x109)),(_0x4dfac2=this[_0x406430(0xfc)])==null||_0x4dfac2[_0x406430(0xc6)]();}[_0xb5a573(0x136)](){var _0x4206dc=_0xb5a573;this[_0x4206dc(0x135)]['next'](_0x4206dc(0xfd)),this[_0x4206dc(0x138)]();}};C=Z([f(0x2,_0x94ff8f),f(0x3,_0x25c40d(L)),f(0x4,_0x1cfa91)],C);function Te(){var _0x2a2980=_0xb5a573;const _0x4f2e31=_0x17f9c4(I),_0x55c8c4=_0x17f9c4(_0x5844ca),_0x3ebae7=_0x5e0586(()=>_0x55c8c4[_0x2a2980(0x11d)](_0x1101b5[_0x2a2980(0xc9)]),void 0x0,!0x1,[]),[_0x39f03c,_0xa87f14]=_0x55d438(null),[_0x12800f,_0x10407d]=_0x55d438(h[_0x2a2980(0xfa)]),_0x47e67f=_0x2b7cde(null);return _0x58a87a(()=>(_0x3ebae7&&_0x4f2e31['getLiveShareCoordinator'](_0x3ebae7[_0x2a2980(0x128)]())['then'](_0x4a59db=>{var _0x4d36fc=_0x2a2980;_0xa87f14(_0x4a59db),_0x47e67f[_0x4d36fc(0xec)]=_0x4a59db['status$'][_0x4d36fc(0x14f)](_0x181865=>{_0x10407d(_0x181865);});}),()=>{var _0x4d966e=_0x2a2980,_0x564f4e;(_0x564f4e=_0x47e67f[_0x4d966e(0xec)])==null||_0x564f4e['unsubscribe'](),_0x47e67f['current']=null;}),[_0x3ebae7,_0x4f2e31]),_0x39f03c?_0x1500a3(_0xe6f284,{'align':_0x2a2980(0x155),'disabled':_0x12800f===h[_0x2a2980(0x140)],'className':_0x2a2980(0xdd),'overlay':_0x1500a3($e,{'status':_0x12800f,'coordinator':_0x39f03c}),'children':_0x1500a3(_0x2a2980(0xd4),{'className':_0x4aa598('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x12800f===h[_0x2a2980(0x140)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x12800f!==h[_0x2a2980(0x140)]}),'type':_0x2a2980(0xd4),'children':_0x1500a3(B,{'className':_0x2a2980(0xb4)})})}):null;}function $e(_0xdfac62){var _0x1270cd=_0xb5a573;const {status:_0x183b45,coordinator:_0x21e06d}=_0xdfac62;switch(_0x183b45){case h[_0x1270cd(0xfa)]:return _0x1500a3(Fe,{'coordinator':_0x21e06d});case h['FOLLOWING']:return _0x1500a3(He,{'coordinator':_0x21e06d});case h[_0x1270cd(0xb6)]:return _0x1500a3(je,{'coordinator':_0x21e06d});case h[_0x1270cd(0x140)]:return _0x1500a3(Ve,{});case h[_0x1270cd(0xbe)]:return _0x1500a3(Ue,{'coordinator':_0x21e06d});default:return null;}}function Fe(_0x1bb859){var _0x1b9bf9=_0xb5a573;const {coordinator:_0x12c772}=_0x1bb859;return _0x41e94b(_0x533264,{'children':[_0x1500a3(_0x1b9bf9(0xb8),{'className':_0x1b9bf9(0xd3),'children':_0x1b9bf9(0x118)}),_0x1500a3(_0x589980,{'onClick':()=>_0x12c772[_0x1b9bf9(0xe1)](),'children':_0x1b9bf9(0x11e)})]});}function He(_0x540831){var _0x328b33=_0xb5a573;const {coordinator:_0x409294}=_0x540831;return _0x41e94b(_0x533264,{'children':[_0x1500a3('div',{'className':_0x328b33(0xd3),'children':_0x328b33(0x142)}),_0x1500a3(_0x589980,{'onClick':()=>_0x409294[_0x328b33(0x153)](),'children':'Stop\x20following'})]});}function je(_0x20f8a7){var _0x416e8e=_0xb5a573;const {coordinator:_0x59eb1f}=_0x20f8a7;return _0x41e94b(_0x533264,{'children':[_0x1500a3(_0x416e8e(0xb8),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x416e8e(0x152)}),_0x1500a3(_0x589980,{'variant':_0x416e8e(0x104),'onClick':()=>_0x59eb1f[_0x416e8e(0xc2)](),'children':'Start\x20following'})]});}function Ue(_0x4200df){var _0x1658af=_0xb5a573;const {coordinator:_0x14f67d}=_0x4200df;return _0x41e94b(_0x533264,{'children':[_0x1500a3(_0x1658af(0xb8),{'className':_0x1658af(0xd3),'children':_0x1658af(0xd9)}),_0x1500a3(_0x589980,{'variant':_0x1658af(0xeb),'onClick':()=>_0x14f67d['stopPresenting'](),'children':_0x1658af(0xff)})]});}function Ve(){return _0x1500a3(_0x533264,{'children':'You\x27are\x20offline.'});}function _0xa6c5(_0xe340b7,_0xbd862f){var _0xa8080=_0xa808();return _0xa6c5=function(_0xa6c50,_0x348220){_0xa6c50=_0xa6c50-0xb0;var _0x4aa674=_0xa8080[_0xa6c50];return _0x4aa674;},_0xa6c5(_0xe340b7,_0xbd862f);}var Me=Object[_0xb5a573(0x117)],ke=(_0x455b43,_0x27a19f,_0x58878e,_0x47bdef)=>{var _0x367a37=_0xb5a573;for(var _0xa558cb=_0x47bdef>0x1?void 0x0:_0x47bdef?Me(_0x27a19f,_0x58878e):_0x27a19f,_0x1c8da4=_0x455b43[_0x367a37(0xe0)]-0x1,_0x197c33;_0x1c8da4>=0x0;_0x1c8da4--)(_0x197c33=_0x455b43[_0x1c8da4])&&(_0xa558cb=_0x197c33(_0xa558cb)||_0xa558cb);return _0xa558cb;},$=(_0xa3c63d,_0x484f3f)=>(_0x306b7c,_0x5ddb55)=>_0x484f3f(_0x306b7c,_0x5ddb55,_0xa3c63d);let b=class extends _0x250142{constructor(_0x40b474,_0x2463aa){var _0x35f85e=_0xb5a573;super(),this[_0x35f85e(0x154)]=_0x40b474,this[_0x35f85e(0xdf)]=_0x2463aa,this[_0x35f85e(0xc4)]();}[_0xb5a573(0xc4)](){var _0x5c1b6e=_0xb5a573;this[_0x5c1b6e(0xcc)](this[_0x5c1b6e(0xdf)][_0x5c1b6e(0xb9)](_0x3e8244['HEADER_MENU'],()=>_0x598d28(Te,this[_0x5c1b6e(0x154)])));}};b=ke([$(0x0,_0x25c40d(_0x23997e)),$(0x1,_0x277d3f)],b);var Ge=Object[_0xb5a573(0x123)],We=Object[_0xb5a573(0x117)],Ye=(_0x2abda0,_0x2837ea,_0x316045)=>_0x2837ea in _0x2abda0?Ge(_0x2abda0,_0x2837ea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x316045}):_0x2abda0[_0x2837ea]=_0x316045,Be=(_0x240feb,_0x2ab6fe,_0x85d27a,_0x30f1ab)=>{var _0x4675b3=_0xb5a573;for(var _0x268cf6=_0x30f1ab>0x1?void 0x0:_0x30f1ab?We(_0x2ab6fe,_0x85d27a):_0x2ab6fe,_0x32311b=_0x240feb[_0x4675b3(0xe0)]-0x1,_0x497a86;_0x32311b>=0x0;_0x32311b--)(_0x497a86=_0x240feb[_0x32311b])&&(_0x268cf6=_0x497a86(_0x268cf6)||_0x268cf6);return _0x268cf6;},F=(_0x4c7355,_0x3671d8)=>(_0x2194b8,_0x216d0e)=>_0x3671d8(_0x2194b8,_0x216d0e,_0x4c7355),J=(_0x26648a,_0x5b1545,_0x4eb0f5)=>Ye(_0x26648a,typeof _0x5b1545!=_0xb5a573(0x10b)?_0x5b1545+'':_0x5b1545,_0x4eb0f5);const Ze=_0xb5a573(0x103);let O=class extends _0x5e8534{constructor(_0x159a96=T,_0xe2846f,_0x488191){var _0x1fbc4f=_0xb5a573;super(),this[_0x1fbc4f(0xf4)]=_0x159a96,this[_0x1fbc4f(0x154)]=_0xe2846f,this[_0x1fbc4f(0xd6)]=_0x488191;const {..._0x278b45}=_0x2a990a({},T,this[_0x1fbc4f(0xf4)]);this['_configService'][_0x1fbc4f(0xcb)](Oe,_0x278b45);}['onStarting'](){var _0x45c172=_0xb5a573;_0x2e1b41(this['_injector'],_0x502523([[L],[I],[m],[b]],this[_0x45c172(0xf4)][_0x45c172(0xc5)])),_0x163c27(this[_0x45c172(0x154)],[[m]]);}[_0xb5a573(0x121)](){var _0x262078=_0xb5a573;_0x163c27(this[_0x262078(0x154)],[[b]]);}};J(O,'type',_0x1101b5[_0xb5a573(0xd1)]),J(O,_0xb5a573(0x11b),Ze),O=Be([_0x39b586(_0x4dd30b),F(0x1,_0x25c40d(_0x23997e)),F(0x2,_0x94ff8f)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x2ccbc7=_0x380c;(function(_0x460a92,_0x50a99d){var _0x1ec21c=_0x380c,_0x169c67=_0x460a92();while(!![]){try{var _0x5ea1f0=-parseInt(_0x1ec21c(0x187))/0x1*(-parseInt(_0x1ec21c(0x114))/0x2)+parseInt(_0x1ec21c(0x110))/0x3+parseInt(_0x1ec21c(0x10a))/0x4+-parseInt(_0x1ec21c(0xec))/0x5+parseInt(_0x1ec21c(0x13f))/0x6+-parseInt(_0x1ec21c(0x121))/0x7*(parseInt(_0x1ec21c(0x199))/0x8)+parseInt(_0x1ec21c(0xf6))/0x9;if(_0x5ea1f0===_0x50a99d)break;else _0x169c67['push'](_0x169c67['shift']());}catch(_0x499b20){_0x169c67['push'](_0x169c67['shift']());}}}(_0x1df3,0x343b8));var q=Object[_0x2ccbc7(0x111)],z=(_0x5b4cc0,_0x1a05c0,_0x110ad9)=>_0x1a05c0 in _0x5b4cc0?q(_0x5b4cc0,_0x1a05c0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x110ad9}):_0x5b4cc0[_0x1a05c0]=_0x110ad9,d=(_0x45a902,_0x4e50b9,_0x4a66c4)=>z(_0x45a902,typeof _0x4e50b9!=_0x2ccbc7(0x17b)?_0x4e50b9+'':_0x4e50b9,_0x4a66c4);import{CollaborationSessionService as _0x2457df,SessionStatus as _0x39e8c4,UniverCollaborationClientPlugin as _0x1657ed}from'@univerjs-pro/collaboration-client';import{Disposable as _0x40e168,toDisposable as _0x2b35d3,Inject as _0x34da18,IUniverInstanceService as _0x155e60,Injector as _0xfe890,IConfigService as _0x1aa9f4,ICommandService as _0x2ffcc8,RxDisposable as _0x44f7bb,UniverInstanceType as _0x22216f,DisposableCollection as _0x155f28,CommandType as _0x134755,DependentOn as _0x114bdd,Plugin as _0x40f23b,merge as _0x48d0ce,registerDependencies as _0x1d98a0,mergeOverrideWithDependencies as _0x1a5f9d,touchDependencies as _0x9824aa}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x236b75,InsertSheetMutation as _0x3b5b47}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x5a39bc,SetScrollOperation as _0x1313c6}from'@univerjs/sheets-ui';function _0x1df3(){var _0xbac974=['apply','defIds','offline','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','registerInitialStateReporter','IDLE','currentColor','shouldShareOperation','getMemberID','getValue','createInstance','indexOf','status$','registerComponent','getOwnPropertySymbols','You\x27are\x20offline.','function','symbol','_startLiveShareCoordinator','presenter','length','dispose$','data','type','_beIdle','_liveShareService','next','startFollowing','fill','661BVcqQz','_mountLiveShare','_startFollowing','1em','Present\x20this\x20document','LIVESHARE_NEW_HOST','pipe','executeCommand','map','tryStartPresenting','attrs','asObservable','getUnitId','colorChannel1','not-following','find','includes','hasOwnProperty','1434472tqexCi','set','Start\x20following','onStarting','from','call','getTypeOfUnitDisposed$','_fetchOperations','stopPresenting','_entities','_handleOperation','1397360XkCRiu','UniverIcon','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','defs','icon','_handleOnline','_handleNewChangeSets','extend','text','NOT_FOLLOWING','2466711aJOuGM','tag','getOwnPropertyDescriptor','ONLINE','send','_sharedOperations','LIVESHARE_REQUEST_HOST','delete','_injector','UNIVER_UNKNOWN','propertyIsEnumerable','subscribe','FOLLOWING','Stop\x20presenting','className','complete','div','xlink:href','evenodd','parse','137960iCtKsx','LIVESHARE_OPERATION','0\x200\x2017\x2017','stringify','disposeWithMe','_config','3726rqibYE','defineProperty','univer-size-4','mutations','1012DiBQDB','_univerInstanceService','OPERATION','none','_commandDisposable','presenting','displayName','OFFLINE','UNIVER_LIVE_SHARE_PLUGIN','path','_status$','pluginName','getConfig','7eeKzVe','idSuffix','replace','assign','_init','use','_startPresenting','prototype','http://www.w3.org/2000/svg','add','You\x27re\x20presenting\x20the\x20document','init','unitId','_status','button','params','_presenter','operations','following','setConfig','entries','PRESENTING','LIVESHARE_FETCH_OPERATIONS','forEach','_uiPartsService','then','_reporters','_commandService','_collabSession','Stop\x20following','170688rnJDlA','live-share.config','has','sessionStatus$','current','clear','idle','memberID','univer-mb-3\x20univer-w-full\x20univer-text-sm','stopFollowing','url(#$1','string','_collabSessionService','LiveShareIcon','sheet','getInitialStates','_stopFollowing','reverse','_handleTerminate','SAME_OPERATION_SHARE_INTERVAL','dispose','end','get','concat','event$','_handleNewHost','registerSharedOperation','You\x27re\x20following\x20the\x20presenter','mask','LIVESHARE_TERMINATE','Start','onRendered','UNIVER_SHEET','trim','_configService','unsubscribe','values','_unitID','getLiveShareCoordinator','univerjs-icon\x20univerjs-icon-','getCurrentTypeOfUnit$','_handleOffline','_stopPresenting'];_0x1df3=function(){return _0xbac974;};return _0x1df3();}import{useDependency as _0x13e6ca,useObservable as _0x19063a,IUIPartsService as _0x4b756a,BuiltInUIPart as _0x4134cc,connectInjector as _0x47f45d}from'@univerjs/ui';import{jsx as _0x4098d8,jsxs as _0x20c3dd,Fragment as _0x4bb10c}from'react/jsx-runtime';import{Dropdown as _0x5316e1,clsx as _0x456e6f,Button as _0x294d6e}from'@univerjs/design';import{forwardRef as _0x4dfe25,useRef as _0x15a3d7,createElement as _0x50406f,useState as _0x14724e,useEffect as _0x41165e}from'react';import{CollaborationEvent as _0x13802b,parseProtocolChangeset as _0x457183}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x466e71,Subject as _0x2749a7}from'rxjs';import{takeUntil as _0x4faa25,throttleTime as _0x5f0de8}from'rxjs/operators';const Oe=_0x2ccbc7(0x140),T={};class L extends _0x40e168{constructor(){var _0x50ad51=_0x2ccbc7;super(...arguments),d(this,_0x50ad51(0xfb),new Set()),d(this,_0x50ad51(0x13b),new Set());}[_0x2ccbc7(0x159)](_0x2bc70e){var _0x58d2b9=_0x2ccbc7;return this[_0x58d2b9(0xfb)][_0x58d2b9(0x12a)](_0x2bc70e),_0x2b35d3(()=>this[_0x58d2b9(0xfb)][_0x58d2b9(0xfd)](_0x2bc70e));}[_0x2ccbc7(0x16e)](_0xe92d2e){var _0x156799=_0x2ccbc7;return this[_0x156799(0x13b)]['add'](_0xe92d2e),_0x2b35d3(()=>this['_reporters'][_0x156799(0xfd)](_0xe92d2e));}[_0x2ccbc7(0x171)](_0x20e901){var _0x4250d6=_0x2ccbc7;return this['_sharedOperations'][_0x4250d6(0x141)](_0x20e901);}[_0x2ccbc7(0x14e)](_0x4b7d60){var _0x552e70=_0x2ccbc7;return Array[_0x552e70(0x19d)](this[_0x552e70(0x13b)])[_0x552e70(0x18f)](_0x43e4ec=>_0x43e4ec(_0x4b7d60));}}var Ee=Object[_0x2ccbc7(0xf8)],we=(_0x20e8e4,_0x35f89a,_0x2d4186,_0x1cf2c1)=>{var _0x41139c=_0x2ccbc7;for(var _0x585f16=_0x1cf2c1>0x1?void 0x0:_0x1cf2c1?Ee(_0x35f89a,_0x2d4186):_0x35f89a,_0x18f040=_0x20e8e4[_0x41139c(0x17e)]-0x1,_0x3bfd30;_0x18f040>=0x0;_0x18f040--)(_0x3bfd30=_0x20e8e4[_0x18f040])&&(_0x585f16=_0x3bfd30(_0x585f16)||_0x585f16);return _0x585f16;},Ne=(_0x850252,_0x4203c3)=>(_0x2ac830,_0x1cbbcb)=>_0x4203c3(_0x2ac830,_0x1cbbcb,_0x850252);let m=class extends _0x40e168{constructor(_0x2a3ba6){var _0x11bc4a=_0x2ccbc7;super(),this[_0x11bc4a(0x183)]=_0x2a3ba6,this['_init']();}['_init'](){var _0x58e0f9=_0x2ccbc7;[_0x5a39bc['id'],_0x1313c6['id'],_0x236b75['id']][_0x58e0f9(0x138)](_0x195c1b=>{var _0x4f9e57=_0x58e0f9;this[_0x4f9e57(0x10e)](this[_0x4f9e57(0x183)][_0x4f9e57(0x159)](_0x195c1b));});}};m=we([Ne(0x0,_0x34da18(L))],m);var c=function(){var _0x2d731f=_0x2ccbc7;return c=Object[_0x2d731f(0x124)]||function(_0x15ea82){var _0x2c334c=_0x2d731f;for(var _0xf39e13,_0x3144a3=0x1,_0x4d70bb=arguments[_0x2c334c(0x17e)];_0x3144a3<_0x4d70bb;_0x3144a3++){_0xf39e13=arguments[_0x3144a3];for(var _0x20da40 in _0xf39e13)Object['prototype'][_0x2c334c(0x198)][_0x2c334c(0x19e)](_0xf39e13,_0x20da40)&&(_0x15ea82[_0x20da40]=_0xf39e13[_0x20da40]);}return _0x15ea82;},c[_0x2d731f(0x16a)](this,arguments);},Ce=function(_0x53d124,_0x513f8b){var _0x3b496f=_0x2ccbc7,_0x32fc47={};for(var _0x2d30d8 in _0x53d124)Object[_0x3b496f(0x128)][_0x3b496f(0x198)]['call'](_0x53d124,_0x2d30d8)&&_0x513f8b[_0x3b496f(0x175)](_0x2d30d8)<0x0&&(_0x32fc47[_0x2d30d8]=_0x53d124[_0x2d30d8]);if(_0x53d124!=null&&typeof Object[_0x3b496f(0x178)]==_0x3b496f(0x17a)){for(var _0x29935c=0x0,_0x2d30d8=Object[_0x3b496f(0x178)](_0x53d124);_0x29935c<_0x2d30d8[_0x3b496f(0x17e)];_0x29935c++)_0x513f8b[_0x3b496f(0x175)](_0x2d30d8[_0x29935c])<0x0&&Object[_0x3b496f(0x128)][_0x3b496f(0x100)][_0x3b496f(0x19e)](_0x53d124,_0x2d30d8[_0x29935c])&&(_0x32fc47[_0x2d30d8[_0x29935c]]=_0x53d124[_0x2d30d8[_0x29935c]]);}return _0x32fc47;},W=_0x4dfe25(function(_0x1e32bf,_0x1da583){var _0xeb043c=_0x2ccbc7,_0x56872c=_0x1e32bf[_0xeb043c(0xf0)],_0x1d7a50=_0x1e32bf['id'],_0xd146c4=_0x1e32bf[_0xeb043c(0x104)],_0x40a4e8=_0x1e32bf['extend'],_0x178114=Ce(_0x1e32bf,['icon','id',_0xeb043c(0x104),_0xeb043c(0xf3)]),_0x46cb92=_0xeb043c(0x166)[_0xeb043c(0x156)](_0x1d7a50,'\x20')[_0xeb043c(0x156)](_0xd146c4||'')[_0xeb043c(0x160)](),_0x5b8189=_0x15a3d7('_'[_0xeb043c(0x156)](Le()));return Y(_0x56872c,''[_0xeb043c(0x156)](_0x1d7a50),{'defIds':_0x56872c[_0xeb043c(0x16b)],'idSuffix':_0x5b8189[_0xeb043c(0x143)]},c({'ref':_0x1da583,'className':_0x46cb92},_0x178114),_0x40a4e8);});function Y(_0x2db4cb,_0x28e16f,_0x335335,_0x2913e6,_0x3d6f42){var _0xf89e31=_0x2ccbc7;return _0x50406f(_0x2db4cb[_0xf89e31(0xf7)],c(c({'key':_0x28e16f},De(_0x2db4cb,_0x335335,_0x3d6f42)),_0x2913e6),(xe(_0x2db4cb,_0x335335)['children']||[])[_0xf89e31(0x18f)](function(_0x29a9ce,_0x4a4ff7){var _0x51e3da=_0xf89e31;return Y(_0x29a9ce,''['concat'](_0x28e16f,'-')[_0x51e3da(0x156)](_0x2db4cb[_0x51e3da(0xf7)],'-')[_0x51e3da(0x156)](_0x4a4ff7),_0x335335,void 0x0,_0x3d6f42);}));}function De(_0x349d38,_0x38dfcd,_0x209c6a){var _0x56cc48=_0x2ccbc7,_0x5cebf6=c({},_0x349d38[_0x56cc48(0x191)]);_0x209c6a!=null&&_0x209c6a[_0x56cc48(0x194)]&&_0x5cebf6[_0x56cc48(0x186)]===_0x56cc48(0x194)&&(_0x5cebf6['fill']=_0x209c6a['colorChannel1']),_0x349d38[_0x56cc48(0xf7)]==='mask'&&_0x5cebf6['id']&&(_0x5cebf6['id']=_0x5cebf6['id']+_0x38dfcd[_0x56cc48(0x122)]),Object[_0x56cc48(0x135)](_0x5cebf6)[_0x56cc48(0x138)](function(_0x44888c){var _0x1cc609=_0x56cc48,_0x150af6=_0x44888c[0x0],_0x31598d=_0x44888c[0x1];_0x150af6===_0x1cc609(0x15b)&&typeof _0x31598d==_0x1cc609(0x14a)&&(_0x5cebf6[_0x150af6]=_0x31598d[_0x1cc609(0x123)](/url\(#(.*)\)/,_0x1cc609(0x149)[_0x1cc609(0x156)](_0x38dfcd[_0x1cc609(0x122)],')')));});var _0x3b590f=_0x38dfcd[_0x56cc48(0x16b)];return!_0x3b590f||_0x3b590f[_0x56cc48(0x17e)]===0x0||(_0x349d38[_0x56cc48(0xf7)]===_0x56cc48(0x126)&&_0x5cebf6[_0x56cc48(0x107)]&&(_0x5cebf6['xlink:href']=_0x5cebf6[_0x56cc48(0x107)]+_0x38dfcd[_0x56cc48(0x122)]),Object[_0x56cc48(0x135)](_0x5cebf6)[_0x56cc48(0x138)](function(_0x27bc27){var _0x13d077=_0x56cc48,_0x4fe692=_0x27bc27[0x0],_0x1a53bc=_0x27bc27[0x1];typeof _0x1a53bc==_0x13d077(0x14a)&&(_0x5cebf6[_0x4fe692]=_0x1a53bc[_0x13d077(0x123)](/url\(#(.*)\)/,_0x13d077(0x149)[_0x13d077(0x156)](_0x38dfcd[_0x13d077(0x122)],')')));})),_0x5cebf6;}function xe(_0x1b17e7,_0x38985d){var _0x1cdf5e=_0x2ccbc7,_0x180da4,_0x2da168=_0x38985d[_0x1cdf5e(0x16b)];return!_0x2da168||_0x2da168[_0x1cdf5e(0x17e)]===0x0?_0x1b17e7:_0x1b17e7[_0x1cdf5e(0xf7)]===_0x1cdf5e(0xef)&&(!((_0x180da4=_0x1b17e7['children'])===null||_0x180da4===void 0x0)&&_0x180da4[_0x1cdf5e(0x17e)])?c(c({},_0x1b17e7),{'children':_0x1b17e7['children'][_0x1cdf5e(0x18f)](function(_0x11c922){var _0x17ccf2=_0x1cdf5e;return typeof _0x11c922[_0x17ccf2(0x191)]['id']=='string'&&_0x2da168&&_0x2da168['includes'](_0x11c922[_0x17ccf2(0x191)]['id'])?c(c({},_0x11c922),{'attrs':c(c({},_0x11c922[_0x17ccf2(0x191)]),{'id':_0x11c922['attrs']['id']+_0x38985d['idSuffix']})}):_0x11c922;})}):_0x1b17e7;}function Le(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}W[_0x2ccbc7(0x11a)]=_0x2ccbc7(0xed);var ye={'tag':'svg','attrs':{'xmlns':_0x2ccbc7(0x129),'fill':_0x2ccbc7(0x117),'viewBox':_0x2ccbc7(0x10c),'width':'1em','height':_0x2ccbc7(0x18a)},'children':[{'tag':_0x2ccbc7(0x11d),'attrs':{'fill':'currentColor','d':_0x2ccbc7(0x16d)}},{'tag':_0x2ccbc7(0x11d),'attrs':{'fill':_0x2ccbc7(0x170),'d':_0x2ccbc7(0xee),'fillRule':_0x2ccbc7(0x108),'clipRule':_0x2ccbc7(0x108)}}]},B=_0x4dfe25(function(_0x54314d,_0x177c24){var _0x587365=_0x2ccbc7;return _0x50406f(W,Object[_0x587365(0x124)]({},_0x54314d,{'id':'live-share-icon','ref':_0x177c24,'icon':ye}));});B[_0x2ccbc7(0x11a)]=_0x2ccbc7(0x14c);var Re=Object[_0x2ccbc7(0xf8)],Z=(_0x117e06,_0x40e20,_0x4833e3,_0x166fb5)=>{for(var _0x1f1aac=_0x166fb5>0x1?void 0x0:_0x166fb5?Re(_0x40e20,_0x4833e3):_0x40e20,_0x3f0aec=_0x117e06['length']-0x1,_0x484763;_0x3f0aec>=0x0;_0x3f0aec--)(_0x484763=_0x117e06[_0x3f0aec])&&(_0x1f1aac=_0x484763(_0x1f1aac)||_0x1f1aac);return _0x1f1aac;},f=(_0x125ce1,_0x2e27a6)=>(_0x49a26e,_0xceb243)=>_0x2e27a6(_0x49a26e,_0xceb243,_0x125ce1);let I=class extends _0x44f7bb{constructor(_0x4f09bb,_0x2cf1da,_0x5cfca6){var _0x812b71=_0x2ccbc7;super(),d(this,_0x812b71(0xea),new Map()),(this[_0x812b71(0x115)]=_0x4f09bb,this[_0x812b71(0xfe)]=_0x2cf1da,this[_0x812b71(0x14b)]=_0x5cfca6,this[_0x812b71(0x125)]());}async[_0x2ccbc7(0x165)](_0x4f21f7){var _0x5f4d26=_0x2ccbc7;return this[_0x5f4d26(0xea)][_0x5f4d26(0x141)](_0x4f21f7)||await this[_0x5f4d26(0x17c)](_0x4f21f7),this[_0x5f4d26(0xea)][_0x5f4d26(0x155)](_0x4f21f7);}[_0x2ccbc7(0x125)](){var _0x537267=_0x2ccbc7;this[_0x537267(0x115)]['getTypeOfUnitAdded$'](_0x22216f[_0x537267(0x15f)])[_0x537267(0x18d)](_0x4faa25(this[_0x537267(0x17f)]))[_0x537267(0x101)](async _0x1980d4=>{var _0x5c7748=_0x537267;const _0xb60baf=_0x1980d4[_0x5c7748(0x193)]();this['_entities'][_0x5c7748(0x141)](_0xb60baf)||this[_0x5c7748(0x17c)](_0xb60baf);}),this[_0x537267(0x115)][_0x537267(0x19f)](_0x22216f[_0x537267(0x15f)])[_0x537267(0x18d)](_0x4faa25(this[_0x537267(0x17f)]))[_0x537267(0x101)](_0x23a1b7=>{var _0x38c897=_0x537267;const _0x3dbbc9=_0x23a1b7[_0x38c897(0x193)](),_0x3976b6=this['_entities'][_0x38c897(0x155)](_0x3dbbc9);_0x3976b6==null||_0x3976b6[_0x38c897(0x153)]();});}async[_0x2ccbc7(0x17c)](_0x256142){var _0x115f34=_0x2ccbc7;const _0x1b36c5=await this[_0x115f34(0x14b)]['requireSession'](_0x256142),_0x18e162=this[_0x115f34(0xfe)][_0x115f34(0x174)](C,_0x256142,_0x1b36c5);return _0x18e162[_0x115f34(0x12c)](),this[_0x115f34(0xea)]['set'](_0x256142,_0x18e162),_0x18e162;}};I=Z([f(0x0,_0x155e60),f(0x1,_0x34da18(_0xfe890)),f(0x2,_0x34da18(_0x2457df))],I);var h=(_0x374d9f=>(_0x374d9f[_0x2ccbc7(0x11b)]=_0x2ccbc7(0x16c),_0x374d9f['IDLE']='idle',_0x374d9f[_0x2ccbc7(0x102)]=_0x2ccbc7(0x133),_0x374d9f[_0x2ccbc7(0xf5)]=_0x2ccbc7(0x195),_0x374d9f[_0x2ccbc7(0x136)]=_0x2ccbc7(0x119),_0x374d9f))(h||{});const Pe=_0x2ccbc7(0x152),Ae=0xc8;let C=class extends _0x44f7bb{constructor(_0x44ca39,_0x36ada0,_0x108037,_0x4f2816,_0x4120d1){var _0x4c616f=_0x2ccbc7;super(),d(this,'_status$',new _0x466e71('idle')),d(this,_0x4c616f(0x176),this[_0x4c616f(0x11e)][_0x4c616f(0x192)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0x4c616f(0x131),null),(this['_unitID']=_0x44ca39,this[_0x4c616f(0x13d)]=_0x36ada0,this[_0x4c616f(0x161)]=_0x108037,this[_0x4c616f(0x183)]=_0x4f2816,this['_commandService']=_0x4120d1);}get[_0x2ccbc7(0x12e)](){var _0xee756=_0x2ccbc7;return this[_0xee756(0x11e)][_0xee756(0x173)]();}[_0x2ccbc7(0x153)](){var _0x248907=_0x2ccbc7,_0x33f05b;(_0x33f05b=this[_0x248907(0x118)])==null||_0x33f05b[_0x248907(0x153)](),this[_0x248907(0x11e)][_0x248907(0x184)]('idle'),this[_0x248907(0x11e)][_0x248907(0x105)]();}[_0x2ccbc7(0x12c)](){var _0x188429=_0x2ccbc7;this[_0x188429(0x125)]||(this['_init']=!0x0,this[_0x188429(0x13d)][_0x188429(0x142)]['pipe'](_0x4faa25(this[_0x188429(0x17f)]))[_0x188429(0x101)](_0x102c16=>{var _0x445037=_0x188429;switch(_0x102c16){case _0x39e8c4[_0x445037(0x11b)]:this[_0x445037(0x168)]();break;case _0x39e8c4[_0x445037(0xf9)]:this[_0x445037(0xf1)]();break;}}),this[_0x188429(0x13d)][_0x188429(0x157)][_0x188429(0x18d)](_0x4faa25(this['dispose$']))['subscribe'](_0x563ae9=>{var _0x4cfdd3=_0x188429;const {eventID:_0x4b7ae4}=_0x563ae9;switch(_0x4b7ae4){case _0x13802b[_0x4cfdd3(0x18c)]:this[_0x4cfdd3(0x158)](_0x563ae9);break;case _0x13802b['LIVESHARE_OPERATION']:this[_0x4cfdd3(0xeb)](_0x563ae9);break;case _0x13802b[_0x4cfdd3(0x15c)]:this[_0x4cfdd3(0x151)]();break;case _0x13802b['NEW_CHANGESETS']:this[_0x4cfdd3(0xf2)](_0x563ae9);break;}}));}[_0x2ccbc7(0x190)](){var _0x57d963=_0x2ccbc7;this['_collabSession'][_0x57d963(0xfa)]({'eventID':_0x13802b[_0x57d963(0xfc)],'data':{'unitID':this[_0x57d963(0x164)],'userID':this[_0x57d963(0x13d)][_0x57d963(0x172)]()}},this[_0x57d963(0x164)]);}[_0x2ccbc7(0xe9)](){var _0xce7ad2=_0x2ccbc7;this[_0xce7ad2(0x12e)]===_0xce7ad2(0x119)&&(this[_0xce7ad2(0x11e)]['next'](_0xce7ad2(0x145)),this['_collabSession'][_0xce7ad2(0xfa)]({'eventID':_0x13802b[_0xce7ad2(0x15c)],'data':{'unitID':this[_0xce7ad2(0x164)]}},this['_unitID']));}[_0x2ccbc7(0x185)](){var _0x26ac21=_0x2ccbc7;this['_status']===_0x26ac21(0x195)&&(this['_status$'][_0x26ac21(0x184)](_0x26ac21(0x133)),this['_startFollowing']());}[_0x2ccbc7(0x148)](){var _0x28c98a=_0x2ccbc7;this[_0x28c98a(0x12e)]==='following'&&this[_0x28c98a(0x14f)]();}['_handleNewHost'](_0x103589){var _0x217e05=_0x2ccbc7;const {presenter:_0x4a19ec}=_0x103589[_0x217e05(0x180)],_0x42662c=this[_0x217e05(0x13d)][_0x217e05(0x172)]();this[_0x217e05(0x131)]=_0x4a19ec,_0x4a19ec===_0x42662c?(this[_0x217e05(0x14f)](),this[_0x217e05(0x127)]()):this[_0x217e05(0x12e)]!==_0x217e05(0x195)&&(this[_0x217e05(0x169)](),this[_0x217e05(0x189)]());}['_fetchOperations'](){var _0x5bf387=_0x2ccbc7;const _0x5ef86f={'eventID':_0x13802b[_0x5bf387(0x137)]};this[_0x5bf387(0x13d)][_0x5bf387(0xfa)](_0x5ef86f,this['_unitID']);}[_0x2ccbc7(0x151)](){var _0x1e1f38=_0x2ccbc7;this[_0x1e1f38(0x131)]=null,this['_status']!=='presenting'&&this[_0x1e1f38(0x182)]();}[_0x2ccbc7(0xf2)](_0x592e9c){var _0x58a832=_0x2ccbc7;if(this[_0x58a832(0x12e)]==='following'&&this['_presenter']===_0x592e9c[_0x58a832(0x180)][_0x58a832(0x146)]){const _0x59be3d=_0x457183(_0x592e9c[_0x58a832(0x180)])[_0x58a832(0x113)][_0x58a832(0x150)]()[_0x58a832(0x196)](_0x55e871=>_0x55e871['id']===_0x3b5b47['id']);if(_0x59be3d){const _0x1a7694=_0x59be3d[_0x58a832(0x130)][_0x58a832(0x12d)],_0x4d3f1e=_0x59be3d[_0x58a832(0x130)][_0x58a832(0x14d)]['id'];setTimeout(()=>{var _0x51ce8f=_0x58a832;this[_0x51ce8f(0x13c)][_0x51ce8f(0x18e)](_0x236b75['id'],{'unitId':_0x1a7694,'subUnitId':_0x4d3f1e},{'fromCollab':!0x0});});}}}[_0x2ccbc7(0x127)](){var _0x2b62d4=_0x2ccbc7;this[_0x2b62d4(0x11e)][_0x2b62d4(0x184)](_0x2b62d4(0x119));const _0xddc5c9=new Map(),_0x4629ec=this[_0x2b62d4(0x118)]=new _0x155f28();_0x4629ec[_0x2b62d4(0x12a)](_0x2b35d3(()=>{var _0x29313c=_0x2b62d4;_0xddc5c9['forEach'](_0x75d251=>_0x75d251['complete']()),_0xddc5c9[_0x29313c(0x144)]();})),_0x4629ec[_0x2b62d4(0x12a)](this[_0x2b62d4(0x13c)]['onCommandExecuted'](_0x3f7f0e=>{var _0x5c8ca6=_0x2b62d4,_0x8e433a;if(_0x3f7f0e['type']!==_0x134755[_0x5c8ca6(0x116)]||!this[_0x5c8ca6(0x183)][_0x5c8ca6(0x171)](_0x3f7f0e['id']))return;const {id:_0x385bb1}=_0x3f7f0e;let _0x98bdd3;_0xddc5c9['has'](_0x385bb1)?_0x98bdd3=_0xddc5c9['get'](_0x385bb1):(_0x98bdd3=new _0x2749a7(),_0xddc5c9[_0x5c8ca6(0x19a)](_0x385bb1,_0x98bdd3),_0x98bdd3[_0x5c8ca6(0x18d)](_0x5f0de8((_0x8e433a=this[_0x5c8ca6(0x161)][_0x5c8ca6(0x120)](Pe))!=null?_0x8e433a:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x53c655=>{var _0x1a09bb=_0x5c8ca6;this['_collabSession'][_0x1a09bb(0xfa)]({'eventID':_0x13802b[_0x1a09bb(0x10b)],'data':{'unitID':this[_0x1a09bb(0x164)],'operations':{[_0x53c655['id']]:{'id':_0x53c655['id'],'params':JSON[_0x1a09bb(0x10d)](_0x53c655[_0x1a09bb(0x130)])}}}},this[_0x1a09bb(0x164)]);})),_0x98bdd3[_0x5c8ca6(0x184)](_0x3f7f0e);})),this[_0x2b62d4(0x183)][_0x2b62d4(0x14e)](this[_0x2b62d4(0x164)])['forEach'](_0x3a097e=>this[_0x2b62d4(0x13d)][_0x2b62d4(0xfa)]({'eventID':_0x13802b[_0x2b62d4(0x10b)],'data':{'unitID':this[_0x2b62d4(0x164)],'operations':{[_0x3a097e['id']]:{'id':_0x3a097e['id'],'params':JSON[_0x2b62d4(0x10d)](_0x3a097e[_0x2b62d4(0x130)])}}}},this[_0x2b62d4(0x164)]));}[_0x2ccbc7(0x169)](){var _0x38b173=_0x2ccbc7,_0x540aa8;this['_status$'][_0x38b173(0x184)](_0x38b173(0x145)),(_0x540aa8=this[_0x38b173(0x118)])==null||_0x540aa8['dispose'](),this[_0x38b173(0x118)]=null;}[_0x2ccbc7(0x189)](){var _0xdbfb7e=_0x2ccbc7,_0x471c46;(_0x471c46=this[_0xdbfb7e(0x118)])==null||_0x471c46[_0xdbfb7e(0x153)](),this[_0xdbfb7e(0x11e)]['next'](_0xdbfb7e(0x133));}['_beIdle'](){var _0x60dd83=_0x2ccbc7,_0xc8786c;this['_status$'][_0x60dd83(0x184)]('idle'),(_0xc8786c=this[_0x60dd83(0x118)])==null||_0xc8786c[_0x60dd83(0x153)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x542ffb=_0x2ccbc7,_0x5394cb;this[_0x542ffb(0x11e)][_0x542ffb(0x184)]('not-following'),(_0x5394cb=this['_commandDisposable'])==null||_0x5394cb[_0x542ffb(0x153)]();}['_handleOperation'](_0x2b28e0){var _0x8acb6f=_0x2ccbc7;if([_0x8acb6f(0x119),'not-following',_0x8acb6f(0x16c)][_0x8acb6f(0x197)](this[_0x8acb6f(0x12e)])||!_0x2b28e0[_0x8acb6f(0x180)]['presenter']||_0x2b28e0['data'][_0x8acb6f(0x17d)]===this[_0x8acb6f(0x13d)][_0x8acb6f(0x172)]())return;this[_0x8acb6f(0x12e)]==='idle'&&this[_0x8acb6f(0x189)]();const _0x527d68=_0x2b28e0['data'][_0x8acb6f(0x132)];Object[_0x8acb6f(0x163)](_0x527d68)['forEach'](_0x552dea=>{var _0x174ce9=_0x8acb6f;this[_0x174ce9(0x13c)]['executeCommand'](_0x552dea['id'],_0x552dea[_0x174ce9(0x130)]?JSON[_0x174ce9(0x109)](_0x552dea[_0x174ce9(0x130)]):null,{'fromCollab':!0x0});});}[_0x2ccbc7(0x168)](){var _0x8e3bfe=_0x2ccbc7,_0x225389;this[_0x8e3bfe(0x11e)][_0x8e3bfe(0x184)](_0x8e3bfe(0x16c)),(_0x225389=this[_0x8e3bfe(0x118)])==null||_0x225389[_0x8e3bfe(0x153)]();}[_0x2ccbc7(0xf1)](){var _0x88fc53=_0x2ccbc7;this[_0x88fc53(0x11e)][_0x88fc53(0x184)](_0x88fc53(0x145)),this[_0x88fc53(0xe8)]();}};function _0x380c(_0x59f3ac,_0x21c8b8){var _0x1df345=_0x1df3();return _0x380c=function(_0x380c15,_0x29d1e0){_0x380c15=_0x380c15-0xe8;var _0x3799e5=_0x1df345[_0x380c15];return _0x3799e5;},_0x380c(_0x59f3ac,_0x21c8b8);}C=Z([f(0x2,_0x1aa9f4),f(0x3,_0x34da18(L)),f(0x4,_0x2ffcc8)],C);function Te(){var _0x20f1e2=_0x2ccbc7;const _0xdeda02=_0x13e6ca(I),_0x36c655=_0x13e6ca(_0x155e60),_0xaf54e3=_0x19063a(()=>_0x36c655[_0x20f1e2(0x167)](_0x22216f[_0x20f1e2(0x15f)]),void 0x0,!0x1,[]),[_0xde8f39,_0xffd807]=_0x14724e(null),[_0x3d0337,_0x8c7187]=_0x14724e(h['IDLE']),_0x21c472=_0x15a3d7(null);return _0x41165e(()=>(_0xaf54e3&&_0xdeda02[_0x20f1e2(0x165)](_0xaf54e3['getUnitId']())[_0x20f1e2(0x13a)](_0x8c8243=>{var _0x312b05=_0x20f1e2;_0xffd807(_0x8c8243),_0x21c472[_0x312b05(0x143)]=_0x8c8243[_0x312b05(0x176)][_0x312b05(0x101)](_0x27b12f=>{_0x8c7187(_0x27b12f);});}),()=>{var _0x372d23=_0x20f1e2,_0x34f870;(_0x34f870=_0x21c472['current'])==null||_0x34f870[_0x372d23(0x162)](),_0x21c472[_0x372d23(0x143)]=null;}),[_0xaf54e3,_0xdeda02]),_0xde8f39?_0x4098d8(_0x5316e1,{'align':_0x20f1e2(0x154),'disabled':_0x3d0337===h['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x4098d8($e,{'status':_0x3d0337,'coordinator':_0xde8f39}),'children':_0x4098d8(_0x20f1e2(0x12f),{'className':_0x456e6f('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3d0337===h[_0x20f1e2(0x11b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3d0337!==h[_0x20f1e2(0x11b)]}),'type':_0x20f1e2(0x12f),'children':_0x4098d8(B,{'className':_0x20f1e2(0x112)})})}):null;}function $e(_0xb5bdb){var _0x724bc=_0x2ccbc7;const {status:_0x5b7d1c,coordinator:_0x2afb0a}=_0xb5bdb;switch(_0x5b7d1c){case h[_0x724bc(0x16f)]:return _0x4098d8(Fe,{'coordinator':_0x2afb0a});case h['FOLLOWING']:return _0x4098d8(He,{'coordinator':_0x2afb0a});case h[_0x724bc(0xf5)]:return _0x4098d8(je,{'coordinator':_0x2afb0a});case h[_0x724bc(0x11b)]:return _0x4098d8(Ve,{});case h[_0x724bc(0x136)]:return _0x4098d8(Ue,{'coordinator':_0x2afb0a});default:return null;}}function Fe(_0x372345){var _0x550087=_0x2ccbc7;const {coordinator:_0x2b5c3c}=_0x372345;return _0x20c3dd(_0x4bb10c,{'children':[_0x4098d8(_0x550087(0x106),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x550087(0x18b)}),_0x4098d8(_0x294d6e,{'onClick':()=>_0x2b5c3c[_0x550087(0x190)](),'children':_0x550087(0x15d)})]});}function He(_0x37c6d2){var _0x150998=_0x2ccbc7;const {coordinator:_0x2d0a82}=_0x37c6d2;return _0x20c3dd(_0x4bb10c,{'children':[_0x4098d8(_0x150998(0x106),{'className':_0x150998(0x147),'children':_0x150998(0x15a)}),_0x4098d8(_0x294d6e,{'onClick':()=>_0x2d0a82['stopFollowing'](),'children':_0x150998(0x13e)})]});}function je(_0x3ac030){var _0x136e89=_0x2ccbc7;const {coordinator:_0x12e4d5}=_0x3ac030;return _0x20c3dd(_0x4bb10c,{'children':[_0x4098d8(_0x136e89(0x106),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4098d8(_0x294d6e,{'variant':_0x136e89(0xf4),'onClick':()=>_0x12e4d5[_0x136e89(0x185)](),'children':_0x136e89(0x19b)})]});}function Ue(_0x32ec1d){var _0x1d5e70=_0x2ccbc7;const {coordinator:_0x413a7c}=_0x32ec1d;return _0x20c3dd(_0x4bb10c,{'children':[_0x4098d8(_0x1d5e70(0x106),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1d5e70(0x12b)}),_0x4098d8(_0x294d6e,{'variant':'default','onClick':()=>_0x413a7c[_0x1d5e70(0xe9)](),'children':_0x1d5e70(0x103)})]});}function Ve(){var _0x465adb=_0x2ccbc7;return _0x4098d8(_0x4bb10c,{'children':_0x465adb(0x179)});}var Me=Object[_0x2ccbc7(0xf8)],ke=(_0x45f9ee,_0x14f43d,_0x3492c4,_0x45d7ee)=>{var _0x3ea012=_0x2ccbc7;for(var _0x4578d6=_0x45d7ee>0x1?void 0x0:_0x45d7ee?Me(_0x14f43d,_0x3492c4):_0x14f43d,_0x4229d8=_0x45f9ee[_0x3ea012(0x17e)]-0x1,_0x341552;_0x4229d8>=0x0;_0x4229d8--)(_0x341552=_0x45f9ee[_0x4229d8])&&(_0x4578d6=_0x341552(_0x4578d6)||_0x4578d6);return _0x4578d6;},$=(_0x3e3381,_0x5e3401)=>(_0x6b3128,_0x3f5c9a)=>_0x5e3401(_0x6b3128,_0x3f5c9a,_0x3e3381);let b=class extends _0x40e168{constructor(_0x5c8491,_0x54a3ac){var _0x12e219=_0x2ccbc7;super(),this[_0x12e219(0xfe)]=_0x5c8491,this[_0x12e219(0x139)]=_0x54a3ac,this['_mountLiveShare']();}[_0x2ccbc7(0x188)](){var _0x5020e4=_0x2ccbc7;this['disposeWithMe'](this['_uiPartsService'][_0x5020e4(0x177)](_0x4134cc['HEADER_MENU'],()=>_0x47f45d(Te,this[_0x5020e4(0xfe)])));}};b=ke([$(0x0,_0x34da18(_0xfe890)),$(0x1,_0x4b756a)],b);var Ge=Object[_0x2ccbc7(0x111)],We=Object[_0x2ccbc7(0xf8)],Ye=(_0x18f0bc,_0x4960dc,_0x1e3c2c)=>_0x4960dc in _0x18f0bc?Ge(_0x18f0bc,_0x4960dc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e3c2c}):_0x18f0bc[_0x4960dc]=_0x1e3c2c,Be=(_0x40c816,_0x557fea,_0x230514,_0x43fc0a)=>{for(var _0x4aed33=_0x43fc0a>0x1?void 0x0:_0x43fc0a?We(_0x557fea,_0x230514):_0x557fea,_0x46fadc=_0x40c816['length']-0x1,_0x396fc7;_0x46fadc>=0x0;_0x46fadc--)(_0x396fc7=_0x40c816[_0x46fadc])&&(_0x4aed33=_0x396fc7(_0x4aed33)||_0x4aed33);return _0x4aed33;},F=(_0x2129bc,_0xd5af2)=>(_0x236f02,_0xa2428a)=>_0xd5af2(_0x236f02,_0xa2428a,_0x2129bc),J=(_0x5998eb,_0x4fff9a,_0x4bfa97)=>Ye(_0x5998eb,typeof _0x4fff9a!=_0x2ccbc7(0x17b)?_0x4fff9a+'':_0x4fff9a,_0x4bfa97);const Ze=_0x2ccbc7(0x11c);let O=class extends _0x40f23b{constructor(_0x16c1e0=T,_0x497d9f,_0xc36c16){var _0x1cd0f2=_0x2ccbc7;super(),this[_0x1cd0f2(0x10f)]=_0x16c1e0,this[_0x1cd0f2(0xfe)]=_0x497d9f,this[_0x1cd0f2(0x161)]=_0xc36c16;const {..._0x52637e}=_0x48d0ce({},T,this[_0x1cd0f2(0x10f)]);this[_0x1cd0f2(0x161)][_0x1cd0f2(0x134)](Oe,_0x52637e);}[_0x2ccbc7(0x19c)](){var _0x5644dd=_0x2ccbc7;_0x1d98a0(this[_0x5644dd(0xfe)],_0x1a5f9d([[L],[I],[m],[b]],this[_0x5644dd(0x10f)]['override'])),_0x9824aa(this[_0x5644dd(0xfe)],[[m]]);}[_0x2ccbc7(0x15e)](){var _0x14b2a8=_0x2ccbc7;_0x9824aa(this[_0x14b2a8(0xfe)],[[b]]);}};J(O,_0x2ccbc7(0x181),_0x22216f[_0x2ccbc7(0xff)]),J(O,_0x2ccbc7(0x11f),Ze),O=Be([_0x114bdd(_0x1657ed),F(0x1,_0x34da18(_0xfe890)),F(0x2,_0x1aa9f4)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0xb5a573=_0xa6c5;(function(_0x35bbd9,_0x36c5d6){var _0x2078ed=_0xa6c5,_0x426d25=_0x35bbd9();while(!![]){try{var _0x361a7f=-parseInt(_0x2078ed(0xd0))/0x1+-parseInt(_0x2078ed(0x12e))/0x2+-parseInt(_0x2078ed(0x110))/0x3+-parseInt(_0x2078ed(0x147))/0x4+-parseInt(_0x2078ed(0xc0))/0x5+parseInt(_0x2078ed(0xb2))/0x6+-parseInt(_0x2078ed(0xf5))/0x7*(-parseInt(_0x2078ed(0xc8))/0x8);if(_0x361a7f===_0x36c5d6)break;else _0x426d25['push'](_0x426d25['shift']());}catch(_0x12954e){_0x426d25['push'](_0x426d25['shift']());}}}(_0xa808,0x63b57));var q=Object[_0xb5a573(0x123)],z=(_0x18188e,_0x265afc,_0xc056f9)=>_0x265afc in _0x18188e?q(_0x18188e,_0x265afc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xc056f9}):_0x18188e[_0x265afc]=_0xc056f9,d=(_0x2e57e4,_0xf5a1d6,_0x1ac388)=>z(_0x2e57e4,typeof _0xf5a1d6!=_0xb5a573(0x10b)?_0xf5a1d6+'':_0xf5a1d6,_0x1ac388);import{CollaborationSessionService as _0x4060c7,SessionStatus as _0x56066c,UniverCollaborationClientPlugin as _0x4dd30b}from'@univerjs-pro/collaboration-client';import{Disposable as _0x250142,toDisposable as _0x48fd6a,Inject as _0x25c40d,IUniverInstanceService as _0x5844ca,Injector as _0x23997e,IConfigService as _0x94ff8f,ICommandService as _0x1cfa91,RxDisposable as _0x418f74,UniverInstanceType as _0x1101b5,DisposableCollection as _0x4833fc,CommandType as _0x56378a,DependentOn as _0x39b586,Plugin as _0x5e8534,merge as _0x2a990a,registerDependencies as _0x2e1b41,mergeOverrideWithDependencies as _0x502523,touchDependencies as _0x163c27}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x163e4d,InsertSheetMutation as _0xdd5f97}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x4cc003,SetScrollOperation as _0x49d044}from'@univerjs/sheets-ui';import{useDependency as _0x17f9c4,useObservable as _0x5e0586,IUIPartsService as _0x277d3f,BuiltInUIPart as _0x3e8244,connectInjector as _0x598d28}from'@univerjs/ui';import{jsx as _0x1500a3,jsxs as _0x41e94b,Fragment as _0x533264}from'react/jsx-runtime';import{Dropdown as _0xe6f284,clsx as _0x4aa598,Button as _0x589980}from'@univerjs/design';import{forwardRef as _0x421cb2,useRef as _0x2b7cde,createElement as _0x576f64,useState as _0x55d438,useEffect as _0x58a87a}from'react';import{CollaborationEvent as _0x3fac8b,parseProtocolChangeset as _0x1368e0}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0xb5b223,Subject as _0x11092e}from'rxjs';import{takeUntil as _0x5f0151,throttleTime as _0x285441}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x250142{constructor(){var _0x484680=_0xb5a573;super(...arguments),d(this,_0x484680(0xf8),new Set()),d(this,'_reporters',new Set());}[_0xb5a573(0x13c)](_0x173c29){var _0x211cfc=_0xb5a573;return this[_0x211cfc(0xf8)]['add'](_0x173c29),_0x48fd6a(()=>this[_0x211cfc(0xf8)][_0x211cfc(0xea)](_0x173c29));}[_0xb5a573(0x151)](_0x4a5345){var _0x738c4b=_0xb5a573;return this[_0x738c4b(0x114)][_0x738c4b(0x133)](_0x4a5345),_0x48fd6a(()=>this['_reporters'][_0x738c4b(0xea)](_0x4a5345));}[_0xb5a573(0x108)](_0x351785){var _0x56f678=_0xb5a573;return this[_0x56f678(0xf8)][_0x56f678(0x101)](_0x351785);}['getInitialStates'](_0x347fb2){var _0x2c94fb=_0xb5a573;return Array[_0x2c94fb(0xf1)](this[_0x2c94fb(0x114)])['map'](_0x497a73=>_0x497a73(_0x347fb2));}}var Ee=Object[_0xb5a573(0x117)],we=(_0x50ef32,_0x3b657f,_0x20797c,_0x4c0f10)=>{var _0x13e7d2=_0xb5a573;for(var _0x1162e8=_0x4c0f10>0x1?void 0x0:_0x4c0f10?Ee(_0x3b657f,_0x20797c):_0x3b657f,_0x3dfbc1=_0x50ef32[_0x13e7d2(0xe0)]-0x1,_0x142f0a;_0x3dfbc1>=0x0;_0x3dfbc1--)(_0x142f0a=_0x50ef32[_0x3dfbc1])&&(_0x1162e8=_0x142f0a(_0x1162e8)||_0x1162e8);return _0x1162e8;},Ne=(_0x12c63c,_0x4199f3)=>(_0x56921f,_0x39ffdf)=>_0x4199f3(_0x56921f,_0x39ffdf,_0x12c63c);let m=class extends _0x250142{constructor(_0x3308ff){var _0x221a12=_0xb5a573;super(),this[_0x221a12(0xb5)]=_0x3308ff,this['_init']();}[_0xb5a573(0xfb)](){var _0x490701=_0xb5a573;[_0x4cc003['id'],_0x49d044['id'],_0x163e4d['id']][_0x490701(0xb1)](_0x337d20=>{var _0xdc1fd3=_0x490701;this[_0xdc1fd3(0xcc)](this[_0xdc1fd3(0xb5)][_0xdc1fd3(0x13c)](_0x337d20));});}};m=we([Ne(0x0,_0x25c40d(L))],m);function _0xa808(){var _0x5807b0=['default','current','_startPresenting','operations','ONLINE','_commandService','from','_handleOffline','next','_config','47369nWhxvU','onCommandExecuted','attrs','_sharedOperations','evenodd','IDLE','_init','_commandDisposable','idle','_collabSessionService','Stop\x20presenting','getLiveShareCoordinator','has','idSuffix','UNIVER_LIVE_SHARE_PLUGIN','text','none','entries','send','shouldShareOperation','offline','set','symbol','find','replace','1em','xlink:href','1931262ZEyXhd','icon','getMemberID','_univerInstanceService','_reporters','stringify','_stopFollowing','getOwnPropertyDescriptor','Present\x20this\x20document','LIVESHARE_REQUEST_HOST','_beIdle','pluginName','sessionStatus$','getCurrentTypeOfUnit$','Start','SAME_OPERATION_SHARE_INTERVAL','tag','onRendered','currentColor','defineProperty','_unitID','NEW_CHANGESETS','LIVESHARE_TERMINATE','random','getUnitId','_presenter','init','LIVESHARE_OPERATION','className','getValue','1136474boFWxC','LIVESHARE_NEW_HOST','parse','LIVESHARE_FETCH_OPERATIONS','type','add','values','_status$','_handleOnline','path','_fetchOperations','clear','not-following','pipe','registerSharedOperation','stopPresenting','event$','apply','OFFLINE','status$','You\x27re\x20following\x20the\x20presenter','presenting','sheet','params','getOwnPropertySymbols','3038052QuuFwx','extend','_collabSession','indexOf','following','trim','url(#$1','_handleNewHost','subscribe','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','registerInitialStateReporter','You\x27re\x20not\x20following\x20the\x20presenter','stopFollowing','_injector','end','defIds','live-share-icon','createInstance','_startLiveShareCoordinator','forEach','4164768cHwCVy','getTypeOfUnitAdded$','univer-size-4','_liveShareService','NOT_FOLLOWING','_startFollowing','div','registerComponent','string','get','executeCommand','mask','PRESENTING','children','1496690xJmOrM','includes','startFollowing','colorChannel1','_mountLiveShare','override','dispose','hasOwnProperty','3272PNLoQa','UNIVER_SHEET','map','setConfig','disposeWithMe','dispose$','UniverIcon','LiveShareIcon','782582RjgPVS','UNIVER_UNKNOWN','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','univer-mb-3\x20univer-w-full\x20univer-text-sm','button','_handleTerminate','_configService','asObservable','complete','You\x27re\x20presenting\x20the\x20document','concat','substring','displayName','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','prototype','_uiPartsService','length','tryStartPresenting','presenter','data','fill','call','defs','_handleNewChangeSets','_entities','_status','delete'];_0xa808=function(){return _0x5807b0;};return _0xa808();}var c=function(){var _0x45c732=_0xb5a573;return c=Object['assign']||function(_0x480694){var _0x2c3130=_0xa6c5;for(var _0x46b696,_0x38c01f=0x1,_0x26edbb=arguments[_0x2c3130(0xe0)];_0x38c01f<_0x26edbb;_0x38c01f++){_0x46b696=arguments[_0x38c01f];for(var _0x7ad333 in _0x46b696)Object[_0x2c3130(0xde)][_0x2c3130(0xc7)]['call'](_0x46b696,_0x7ad333)&&(_0x480694[_0x7ad333]=_0x46b696[_0x7ad333]);}return _0x480694;},c[_0x45c732(0x13f)](this,arguments);},Ce=function(_0x1c87b2,_0x20656e){var _0x2de0ed=_0xb5a573,_0x229df9={};for(var _0x37ce6e in _0x1c87b2)Object[_0x2de0ed(0xde)][_0x2de0ed(0xc7)]['call'](_0x1c87b2,_0x37ce6e)&&_0x20656e['indexOf'](_0x37ce6e)<0x0&&(_0x229df9[_0x37ce6e]=_0x1c87b2[_0x37ce6e]);if(_0x1c87b2!=null&&typeof Object[_0x2de0ed(0x146)]=='function'){for(var _0x548796=0x0,_0x37ce6e=Object[_0x2de0ed(0x146)](_0x1c87b2);_0x548796<_0x37ce6e[_0x2de0ed(0xe0)];_0x548796++)_0x20656e[_0x2de0ed(0x14a)](_0x37ce6e[_0x548796])<0x0&&Object[_0x2de0ed(0xde)]['propertyIsEnumerable'][_0x2de0ed(0xe5)](_0x1c87b2,_0x37ce6e[_0x548796])&&(_0x229df9[_0x37ce6e[_0x548796]]=_0x1c87b2[_0x37ce6e[_0x548796]]);}return _0x229df9;},W=_0x421cb2(function(_0x315424,_0x4193e3){var _0x487faf=_0xb5a573,_0x292d6c=_0x315424[_0x487faf(0x111)],_0x5d4418=_0x315424['id'],_0x4327ba=_0x315424[_0x487faf(0x12c)],_0x129621=_0x315424['extend'],_0x2c3401=Ce(_0x315424,[_0x487faf(0x111),'id',_0x487faf(0x12c),_0x487faf(0x148)]),_0x12471='univerjs-icon\x20univerjs-icon-'[_0x487faf(0xda)](_0x5d4418,'\x20')[_0x487faf(0xda)](_0x4327ba||'')[_0x487faf(0x14c)](),_0x4037ca=_0x2b7cde('_'['concat'](Le()));return Y(_0x292d6c,''[_0x487faf(0xda)](_0x5d4418),{'defIds':_0x292d6c[_0x487faf(0x156)],'idSuffix':_0x4037ca['current']},c({'ref':_0x4193e3,'className':_0x12471},_0x2c3401),_0x129621);});function Y(_0x138ab5,_0x47a833,_0x5919ec,_0x19179b,_0x1941bd){var _0x1b0f16=_0xb5a573;return _0x576f64(_0x138ab5[_0x1b0f16(0x120)],c(c({'key':_0x47a833},De(_0x138ab5,_0x5919ec,_0x1941bd)),_0x19179b),(xe(_0x138ab5,_0x5919ec)[_0x1b0f16(0xbf)]||[])[_0x1b0f16(0xca)](function(_0x2c9d72,_0x2891c9){var _0x4a1a72=_0x1b0f16;return Y(_0x2c9d72,''[_0x4a1a72(0xda)](_0x47a833,'-')[_0x4a1a72(0xda)](_0x138ab5[_0x4a1a72(0x120)],'-')[_0x4a1a72(0xda)](_0x2891c9),_0x5919ec,void 0x0,_0x1941bd);}));}function De(_0x112fcb,_0x25272c,_0x179fa0){var _0x56f206=_0xb5a573,_0x2a40e8=c({},_0x112fcb[_0x56f206(0xf7)]);_0x179fa0!=null&&_0x179fa0['colorChannel1']&&_0x2a40e8[_0x56f206(0xe4)]==='colorChannel1'&&(_0x2a40e8[_0x56f206(0xe4)]=_0x179fa0[_0x56f206(0xc3)]),_0x112fcb[_0x56f206(0x120)]===_0x56f206(0xbd)&&_0x2a40e8['id']&&(_0x2a40e8['id']=_0x2a40e8['id']+_0x25272c[_0x56f206(0x102)]),Object['entries'](_0x2a40e8)[_0x56f206(0xb1)](function(_0x64d72c){var _0xa59c2f=_0x56f206,_0x47cd7e=_0x64d72c[0x0],_0x1175e8=_0x64d72c[0x1];_0x47cd7e===_0xa59c2f(0xbd)&&typeof _0x1175e8==_0xa59c2f(0xba)&&(_0x2a40e8[_0x47cd7e]=_0x1175e8[_0xa59c2f(0x10d)](/url\(#(.*)\)/,_0xa59c2f(0x14d)[_0xa59c2f(0xda)](_0x25272c[_0xa59c2f(0x102)],')')));});var _0x20cff2=_0x25272c[_0x56f206(0x156)];return!_0x20cff2||_0x20cff2[_0x56f206(0xe0)]===0x0||(_0x112fcb['tag']==='use'&&_0x2a40e8['xlink:href']&&(_0x2a40e8[_0x56f206(0x10f)]=_0x2a40e8['xlink:href']+_0x25272c[_0x56f206(0x102)]),Object[_0x56f206(0x106)](_0x2a40e8)[_0x56f206(0xb1)](function(_0x1b422a){var _0x1652ce=_0x56f206,_0x2bab6d=_0x1b422a[0x0],_0x1e03ca=_0x1b422a[0x1];typeof _0x1e03ca==_0x1652ce(0xba)&&(_0x2a40e8[_0x2bab6d]=_0x1e03ca['replace'](/url\(#(.*)\)/,_0x1652ce(0x14d)['concat'](_0x25272c['idSuffix'],')')));})),_0x2a40e8;}function xe(_0x171808,_0x1692ab){var _0x30d4bf=_0xb5a573,_0x3e7e91,_0xbe59f8=_0x1692ab[_0x30d4bf(0x156)];return!_0xbe59f8||_0xbe59f8[_0x30d4bf(0xe0)]===0x0?_0x171808:_0x171808[_0x30d4bf(0x120)]===_0x30d4bf(0xe6)&&(!((_0x3e7e91=_0x171808[_0x30d4bf(0xbf)])===null||_0x3e7e91===void 0x0)&&_0x3e7e91[_0x30d4bf(0xe0)])?c(c({},_0x171808),{'children':_0x171808[_0x30d4bf(0xbf)][_0x30d4bf(0xca)](function(_0x25032a){var _0x509706=_0x30d4bf;return typeof _0x25032a[_0x509706(0xf7)]['id']==_0x509706(0xba)&&_0xbe59f8&&_0xbe59f8[_0x509706(0xc1)](_0x25032a[_0x509706(0xf7)]['id'])?c(c({},_0x25032a),{'attrs':c(c({},_0x25032a[_0x509706(0xf7)]),{'id':_0x25032a[_0x509706(0xf7)]['id']+_0x1692ab['idSuffix']})}):_0x25032a;})}):_0x171808;}function Le(){var _0x37a888=_0xb5a573;return Math[_0x37a888(0x127)]()['toString'](0x24)[_0x37a888(0xdb)](0x2,0x8);}W['displayName']=_0xb5a573(0xce);var ye={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xb5a573(0x105),'viewBox':'0\x200\x2017\x2017','width':_0xb5a573(0x10e),'height':_0xb5a573(0x10e)},'children':[{'tag':'path','attrs':{'fill':_0xb5a573(0x122),'d':_0xb5a573(0xd2)}},{'tag':_0xb5a573(0x137),'attrs':{'fill':'currentColor','d':_0xb5a573(0x150),'fillRule':_0xb5a573(0xf9),'clipRule':'evenodd'}}]},B=_0x421cb2(function(_0xc9ad31,_0x2c6b35){var _0x17d831=_0xb5a573;return _0x576f64(W,Object['assign']({},_0xc9ad31,{'id':_0x17d831(0x157),'ref':_0x2c6b35,'icon':ye}));});B[_0xb5a573(0xdc)]=_0xb5a573(0xcf);var Re=Object[_0xb5a573(0x117)],Z=(_0x2110f3,_0x17c50c,_0x19e6ee,_0x2c7d89)=>{var _0x4e0b57=_0xb5a573;for(var _0x11a74c=_0x2c7d89>0x1?void 0x0:_0x2c7d89?Re(_0x17c50c,_0x19e6ee):_0x17c50c,_0x55be7c=_0x2110f3[_0x4e0b57(0xe0)]-0x1,_0x17a47a;_0x55be7c>=0x0;_0x55be7c--)(_0x17a47a=_0x2110f3[_0x55be7c])&&(_0x11a74c=_0x17a47a(_0x11a74c)||_0x11a74c);return _0x11a74c;},f=(_0x4ca70f,_0x13a830)=>(_0x2e22c4,_0x2df70b)=>_0x13a830(_0x2e22c4,_0x2df70b,_0x4ca70f);let I=class extends _0x418f74{constructor(_0x422f33,_0x5d774e,_0x3b7835){var _0x230507=_0xb5a573;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x422f33,this[_0x230507(0x154)]=_0x5d774e,this[_0x230507(0xfe)]=_0x3b7835,this[_0x230507(0xfb)]());}async[_0xb5a573(0x100)](_0x489896){var _0x39a0c9=_0xb5a573;return this['_entities'][_0x39a0c9(0x101)](_0x489896)||await this[_0x39a0c9(0xb0)](_0x489896),this['_entities'][_0x39a0c9(0xbb)](_0x489896);}[_0xb5a573(0xfb)](){var _0x5481a4=_0xb5a573;this['_univerInstanceService'][_0x5481a4(0xb3)](_0x1101b5[_0x5481a4(0xc9)])[_0x5481a4(0x13b)](_0x5f0151(this[_0x5481a4(0xcd)]))[_0x5481a4(0x14f)](async _0x4ded0a=>{var _0x36c111=_0x5481a4;const _0x3f8e70=_0x4ded0a[_0x36c111(0x128)]();this[_0x36c111(0xe8)][_0x36c111(0x101)](_0x3f8e70)||this['_startLiveShareCoordinator'](_0x3f8e70);}),this[_0x5481a4(0x113)]['getTypeOfUnitDisposed$'](_0x1101b5[_0x5481a4(0xc9)])[_0x5481a4(0x13b)](_0x5f0151(this['dispose$']))[_0x5481a4(0x14f)](_0x17a7ff=>{var _0x280141=_0x5481a4;const _0xc0747c=_0x17a7ff[_0x280141(0x128)](),_0x48fa78=this[_0x280141(0xe8)][_0x280141(0xbb)](_0xc0747c);_0x48fa78==null||_0x48fa78[_0x280141(0xc6)]();});}async[_0xb5a573(0xb0)](_0x593f94){var _0x578c24=_0xb5a573;const _0x58ae28=await this[_0x578c24(0xfe)]['requireSession'](_0x593f94),_0x406e20=this[_0x578c24(0x154)][_0x578c24(0x158)](C,_0x593f94,_0x58ae28);return _0x406e20[_0x578c24(0x12a)](),this[_0x578c24(0xe8)][_0x578c24(0x10a)](_0x593f94,_0x406e20),_0x406e20;}};I=Z([f(0x0,_0x5844ca),f(0x1,_0x25c40d(_0x23997e)),f(0x2,_0x25c40d(_0x4060c7))],I);var h=(_0x533652=>(_0x533652[_0xb5a573(0x140)]='offline',_0x533652[_0xb5a573(0xfa)]=_0xb5a573(0xfd),_0x533652['FOLLOWING']=_0xb5a573(0x14b),_0x533652[_0xb5a573(0xb6)]=_0xb5a573(0x13a),_0x533652[_0xb5a573(0xbe)]=_0xb5a573(0x143),_0x533652))(h||{});const Pe=_0xb5a573(0x11f),Ae=0xc8;let C=class extends _0x418f74{constructor(_0x3ba838,_0x52736f,_0x5448ed,_0x2c5746,_0x29206c){var _0x2f147f=_0xb5a573;super(),d(this,_0x2f147f(0x135),new _0xb5b223(_0x2f147f(0xfd))),d(this,_0x2f147f(0x141),this[_0x2f147f(0x135)][_0x2f147f(0xd7)]()),d(this,'_init',!0x1),d(this,_0x2f147f(0xfc),null),d(this,_0x2f147f(0x129),null),(this[_0x2f147f(0x124)]=_0x3ba838,this['_collabSession']=_0x52736f,this['_configService']=_0x5448ed,this[_0x2f147f(0xb5)]=_0x2c5746,this[_0x2f147f(0xf0)]=_0x29206c);}get[_0xb5a573(0xe9)](){var _0x53991b=_0xb5a573;return this[_0x53991b(0x135)][_0x53991b(0x12d)]();}['dispose'](){var _0x5b7d25=_0xb5a573,_0x3ae378;(_0x3ae378=this['_commandDisposable'])==null||_0x3ae378['dispose'](),this[_0x5b7d25(0x135)][_0x5b7d25(0xf3)](_0x5b7d25(0xfd)),this[_0x5b7d25(0x135)][_0x5b7d25(0xd8)]();}['init'](){var _0x2a58f1=_0xb5a573;this[_0x2a58f1(0xfb)]||(this[_0x2a58f1(0xfb)]=!0x0,this[_0x2a58f1(0x149)][_0x2a58f1(0x11c)]['pipe'](_0x5f0151(this[_0x2a58f1(0xcd)]))[_0x2a58f1(0x14f)](_0x131c71=>{var _0x38ad4c=_0x2a58f1;switch(_0x131c71){case _0x56066c['OFFLINE']:this[_0x38ad4c(0xf2)]();break;case _0x56066c[_0x38ad4c(0xef)]:this[_0x38ad4c(0x136)]();break;}}),this[_0x2a58f1(0x149)][_0x2a58f1(0x13e)]['pipe'](_0x5f0151(this['dispose$']))['subscribe'](_0x11ca74=>{var _0x1b2e5f=_0x2a58f1;const {eventID:_0x33b820}=_0x11ca74;switch(_0x33b820){case _0x3fac8b[_0x1b2e5f(0x12f)]:this[_0x1b2e5f(0x14e)](_0x11ca74);break;case _0x3fac8b[_0x1b2e5f(0x12b)]:this['_handleOperation'](_0x11ca74);break;case _0x3fac8b[_0x1b2e5f(0x126)]:this['_handleTerminate']();break;case _0x3fac8b[_0x1b2e5f(0x125)]:this[_0x1b2e5f(0xe7)](_0x11ca74);break;}}));}[_0xb5a573(0xe1)](){var _0x1ef7a0=_0xb5a573;this[_0x1ef7a0(0x149)][_0x1ef7a0(0x107)]({'eventID':_0x3fac8b[_0x1ef7a0(0x119)],'data':{'unitID':this[_0x1ef7a0(0x124)],'userID':this['_collabSession']['getMemberID']()}},this[_0x1ef7a0(0x124)]);}[_0xb5a573(0x13d)](){var _0x2fb3a2=_0xb5a573;this[_0x2fb3a2(0xe9)]==='presenting'&&(this['_status$'][_0x2fb3a2(0xf3)]('idle'),this['_collabSession'][_0x2fb3a2(0x107)]({'eventID':_0x3fac8b[_0x2fb3a2(0x126)],'data':{'unitID':this[_0x2fb3a2(0x124)]}},this[_0x2fb3a2(0x124)]));}[_0xb5a573(0xc2)](){var _0x1f290d=_0xb5a573;this[_0x1f290d(0xe9)]==='not-following'&&(this['_status$'][_0x1f290d(0xf3)](_0x1f290d(0x14b)),this['_startFollowing']());}[_0xb5a573(0x153)](){var _0x10b5ee=_0xb5a573;this[_0x10b5ee(0xe9)]==='following'&&this[_0x10b5ee(0x116)]();}[_0xb5a573(0x14e)](_0x1d5957){var _0x28289f=_0xb5a573;const {presenter:_0x262bba}=_0x1d5957[_0x28289f(0xe3)],_0x2ae66a=this[_0x28289f(0x149)][_0x28289f(0x112)]();this[_0x28289f(0x129)]=_0x262bba,_0x262bba===_0x2ae66a?(this['_stopFollowing'](),this[_0x28289f(0xed)]()):this[_0x28289f(0xe9)]!=='not-following'&&(this['_stopPresenting'](),this[_0x28289f(0xb7)]());}[_0xb5a573(0x138)](){var _0x38a8be=_0xb5a573;const _0xd07073={'eventID':_0x3fac8b[_0x38a8be(0x131)]};this[_0x38a8be(0x149)][_0x38a8be(0x107)](_0xd07073,this[_0x38a8be(0x124)]);}[_0xb5a573(0xd5)](){var _0x2c4196=_0xb5a573;this[_0x2c4196(0x129)]=null,this[_0x2c4196(0xe9)]!==_0x2c4196(0x143)&&this[_0x2c4196(0x11a)]();}[_0xb5a573(0xe7)](_0x427830){var _0x1d32f5=_0xb5a573;if(this[_0x1d32f5(0xe9)]===_0x1d32f5(0x14b)&&this['_presenter']===_0x427830[_0x1d32f5(0xe3)]['memberID']){const _0x3f249c=_0x1368e0(_0x427830[_0x1d32f5(0xe3)])['mutations']['reverse']()[_0x1d32f5(0x10c)](_0x15ea47=>_0x15ea47['id']===_0xdd5f97['id']);if(_0x3f249c){const _0x482123=_0x3f249c[_0x1d32f5(0x145)]['unitId'],_0x15e3b9=_0x3f249c['params'][_0x1d32f5(0x144)]['id'];setTimeout(()=>{var _0x10a453=_0x1d32f5;this[_0x10a453(0xf0)][_0x10a453(0xbc)](_0x163e4d['id'],{'unitId':_0x482123,'subUnitId':_0x15e3b9},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x47297=_0xb5a573;this['_status$'][_0x47297(0xf3)](_0x47297(0x143));const _0x254859=new Map(),_0x5a89fe=this['_commandDisposable']=new _0x4833fc();_0x5a89fe[_0x47297(0x133)](_0x48fd6a(()=>{var _0x2f52ca=_0x47297;_0x254859[_0x2f52ca(0xb1)](_0xc62ef6=>_0xc62ef6[_0x2f52ca(0xd8)]()),_0x254859[_0x2f52ca(0x139)]();})),_0x5a89fe['add'](this[_0x47297(0xf0)][_0x47297(0xf6)](_0x2cd2ec=>{var _0x4b51fd=_0x47297,_0x5c7147;if(_0x2cd2ec[_0x4b51fd(0x132)]!==_0x56378a['OPERATION']||!this[_0x4b51fd(0xb5)]['shouldShareOperation'](_0x2cd2ec['id']))return;const {id:_0x5b19d5}=_0x2cd2ec;let _0x395fc6;_0x254859[_0x4b51fd(0x101)](_0x5b19d5)?_0x395fc6=_0x254859[_0x4b51fd(0xbb)](_0x5b19d5):(_0x395fc6=new _0x11092e(),_0x254859['set'](_0x5b19d5,_0x395fc6),_0x395fc6['pipe'](_0x285441((_0x5c7147=this[_0x4b51fd(0xd6)]['getConfig'](Pe))!=null?_0x5c7147:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4b51fd(0x14f)](_0x28adf2=>{var _0x2881a3=_0x4b51fd;this[_0x2881a3(0x149)][_0x2881a3(0x107)]({'eventID':_0x3fac8b[_0x2881a3(0x12b)],'data':{'unitID':this[_0x2881a3(0x124)],'operations':{[_0x28adf2['id']]:{'id':_0x28adf2['id'],'params':JSON[_0x2881a3(0x115)](_0x28adf2[_0x2881a3(0x145)])}}}},this['_unitID']);})),_0x395fc6[_0x4b51fd(0xf3)](_0x2cd2ec);})),this[_0x47297(0xb5)]['getInitialStates'](this[_0x47297(0x124)])['forEach'](_0x2f6b1c=>this[_0x47297(0x149)]['send']({'eventID':_0x3fac8b[_0x47297(0x12b)],'data':{'unitID':this[_0x47297(0x124)],'operations':{[_0x2f6b1c['id']]:{'id':_0x2f6b1c['id'],'params':JSON[_0x47297(0x115)](_0x2f6b1c[_0x47297(0x145)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x3908e5=_0xb5a573,_0x1d428e;this['_status$']['next'](_0x3908e5(0xfd)),(_0x1d428e=this['_commandDisposable'])==null||_0x1d428e[_0x3908e5(0xc6)](),this['_commandDisposable']=null;}['_startFollowing'](){var _0x5588ba=_0xb5a573,_0x20508e;(_0x20508e=this[_0x5588ba(0xfc)])==null||_0x20508e[_0x5588ba(0xc6)](),this[_0x5588ba(0x135)][_0x5588ba(0xf3)](_0x5588ba(0x14b));}[_0xb5a573(0x11a)](){var _0x21562d=_0xb5a573,_0x4eb6cd;this[_0x21562d(0x135)][_0x21562d(0xf3)]('idle'),(_0x4eb6cd=this[_0x21562d(0xfc)])==null||_0x4eb6cd[_0x21562d(0xc6)](),this['_commandDisposable']=null;}[_0xb5a573(0x116)](){var _0x3de871=_0xb5a573,_0x34178f;this[_0x3de871(0x135)][_0x3de871(0xf3)](_0x3de871(0x13a)),(_0x34178f=this['_commandDisposable'])==null||_0x34178f[_0x3de871(0xc6)]();}['_handleOperation'](_0xcf7b58){var _0x1dab09=_0xb5a573;if([_0x1dab09(0x143),'not-following',_0x1dab09(0x109)][_0x1dab09(0xc1)](this[_0x1dab09(0xe9)])||!_0xcf7b58[_0x1dab09(0xe3)][_0x1dab09(0xe2)]||_0xcf7b58[_0x1dab09(0xe3)][_0x1dab09(0xe2)]===this[_0x1dab09(0x149)][_0x1dab09(0x112)]())return;this[_0x1dab09(0xe9)]===_0x1dab09(0xfd)&&this[_0x1dab09(0xb7)]();const _0x5b42c2=_0xcf7b58['data'][_0x1dab09(0xee)];Object[_0x1dab09(0x134)](_0x5b42c2)[_0x1dab09(0xb1)](_0xcba08a=>{var _0x23981e=_0x1dab09;this[_0x23981e(0xf0)][_0x23981e(0xbc)](_0xcba08a['id'],_0xcba08a['params']?JSON[_0x23981e(0x130)](_0xcba08a[_0x23981e(0x145)]):null,{'fromCollab':!0x0});});}[_0xb5a573(0xf2)](){var _0x406430=_0xb5a573,_0x4dfac2;this[_0x406430(0x135)][_0x406430(0xf3)](_0x406430(0x109)),(_0x4dfac2=this[_0x406430(0xfc)])==null||_0x4dfac2[_0x406430(0xc6)]();}[_0xb5a573(0x136)](){var _0x4206dc=_0xb5a573;this[_0x4206dc(0x135)]['next'](_0x4206dc(0xfd)),this[_0x4206dc(0x138)]();}};C=Z([f(0x2,_0x94ff8f),f(0x3,_0x25c40d(L)),f(0x4,_0x1cfa91)],C);function Te(){var _0x2a2980=_0xb5a573;const _0x4f2e31=_0x17f9c4(I),_0x55c8c4=_0x17f9c4(_0x5844ca),_0x3ebae7=_0x5e0586(()=>_0x55c8c4[_0x2a2980(0x11d)](_0x1101b5[_0x2a2980(0xc9)]),void 0x0,!0x1,[]),[_0x39f03c,_0xa87f14]=_0x55d438(null),[_0x12800f,_0x10407d]=_0x55d438(h[_0x2a2980(0xfa)]),_0x47e67f=_0x2b7cde(null);return _0x58a87a(()=>(_0x3ebae7&&_0x4f2e31['getLiveShareCoordinator'](_0x3ebae7[_0x2a2980(0x128)]())['then'](_0x4a59db=>{var _0x4d36fc=_0x2a2980;_0xa87f14(_0x4a59db),_0x47e67f[_0x4d36fc(0xec)]=_0x4a59db['status$'][_0x4d36fc(0x14f)](_0x181865=>{_0x10407d(_0x181865);});}),()=>{var _0x4d966e=_0x2a2980,_0x564f4e;(_0x564f4e=_0x47e67f[_0x4d966e(0xec)])==null||_0x564f4e['unsubscribe'](),_0x47e67f['current']=null;}),[_0x3ebae7,_0x4f2e31]),_0x39f03c?_0x1500a3(_0xe6f284,{'align':_0x2a2980(0x155),'disabled':_0x12800f===h[_0x2a2980(0x140)],'className':_0x2a2980(0xdd),'overlay':_0x1500a3($e,{'status':_0x12800f,'coordinator':_0x39f03c}),'children':_0x1500a3(_0x2a2980(0xd4),{'className':_0x4aa598('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x12800f===h[_0x2a2980(0x140)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x12800f!==h[_0x2a2980(0x140)]}),'type':_0x2a2980(0xd4),'children':_0x1500a3(B,{'className':_0x2a2980(0xb4)})})}):null;}function $e(_0xdfac62){var _0x1270cd=_0xb5a573;const {status:_0x183b45,coordinator:_0x21e06d}=_0xdfac62;switch(_0x183b45){case h[_0x1270cd(0xfa)]:return _0x1500a3(Fe,{'coordinator':_0x21e06d});case h['FOLLOWING']:return _0x1500a3(He,{'coordinator':_0x21e06d});case h[_0x1270cd(0xb6)]:return _0x1500a3(je,{'coordinator':_0x21e06d});case h[_0x1270cd(0x140)]:return _0x1500a3(Ve,{});case h[_0x1270cd(0xbe)]:return _0x1500a3(Ue,{'coordinator':_0x21e06d});default:return null;}}function Fe(_0x1bb859){var _0x1b9bf9=_0xb5a573;const {coordinator:_0x12c772}=_0x1bb859;return _0x41e94b(_0x533264,{'children':[_0x1500a3(_0x1b9bf9(0xb8),{'className':_0x1b9bf9(0xd3),'children':_0x1b9bf9(0x118)}),_0x1500a3(_0x589980,{'onClick':()=>_0x12c772[_0x1b9bf9(0xe1)](),'children':_0x1b9bf9(0x11e)})]});}function He(_0x540831){var _0x328b33=_0xb5a573;const {coordinator:_0x409294}=_0x540831;return _0x41e94b(_0x533264,{'children':[_0x1500a3('div',{'className':_0x328b33(0xd3),'children':_0x328b33(0x142)}),_0x1500a3(_0x589980,{'onClick':()=>_0x409294[_0x328b33(0x153)](),'children':'Stop\x20following'})]});}function je(_0x20f8a7){var _0x416e8e=_0xb5a573;const {coordinator:_0x59eb1f}=_0x20f8a7;return _0x41e94b(_0x533264,{'children':[_0x1500a3(_0x416e8e(0xb8),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x416e8e(0x152)}),_0x1500a3(_0x589980,{'variant':_0x416e8e(0x104),'onClick':()=>_0x59eb1f[_0x416e8e(0xc2)](),'children':'Start\x20following'})]});}function Ue(_0x4200df){var _0x1658af=_0xb5a573;const {coordinator:_0x14f67d}=_0x4200df;return _0x41e94b(_0x533264,{'children':[_0x1500a3(_0x1658af(0xb8),{'className':_0x1658af(0xd3),'children':_0x1658af(0xd9)}),_0x1500a3(_0x589980,{'variant':_0x1658af(0xeb),'onClick':()=>_0x14f67d['stopPresenting'](),'children':_0x1658af(0xff)})]});}function Ve(){return _0x1500a3(_0x533264,{'children':'You\x27are\x20offline.'});}function _0xa6c5(_0xe340b7,_0xbd862f){var _0xa8080=_0xa808();return _0xa6c5=function(_0xa6c50,_0x348220){_0xa6c50=_0xa6c50-0xb0;var _0x4aa674=_0xa8080[_0xa6c50];return _0x4aa674;},_0xa6c5(_0xe340b7,_0xbd862f);}var Me=Object[_0xb5a573(0x117)],ke=(_0x455b43,_0x27a19f,_0x58878e,_0x47bdef)=>{var _0x367a37=_0xb5a573;for(var _0xa558cb=_0x47bdef>0x1?void 0x0:_0x47bdef?Me(_0x27a19f,_0x58878e):_0x27a19f,_0x1c8da4=_0x455b43[_0x367a37(0xe0)]-0x1,_0x197c33;_0x1c8da4>=0x0;_0x1c8da4--)(_0x197c33=_0x455b43[_0x1c8da4])&&(_0xa558cb=_0x197c33(_0xa558cb)||_0xa558cb);return _0xa558cb;},$=(_0xa3c63d,_0x484f3f)=>(_0x306b7c,_0x5ddb55)=>_0x484f3f(_0x306b7c,_0x5ddb55,_0xa3c63d);let b=class extends _0x250142{constructor(_0x40b474,_0x2463aa){var _0x35f85e=_0xb5a573;super(),this[_0x35f85e(0x154)]=_0x40b474,this[_0x35f85e(0xdf)]=_0x2463aa,this[_0x35f85e(0xc4)]();}[_0xb5a573(0xc4)](){var _0x5c1b6e=_0xb5a573;this[_0x5c1b6e(0xcc)](this[_0x5c1b6e(0xdf)][_0x5c1b6e(0xb9)](_0x3e8244['HEADER_MENU'],()=>_0x598d28(Te,this[_0x5c1b6e(0x154)])));}};b=ke([$(0x0,_0x25c40d(_0x23997e)),$(0x1,_0x277d3f)],b);var Ge=Object[_0xb5a573(0x123)],We=Object[_0xb5a573(0x117)],Ye=(_0x2abda0,_0x2837ea,_0x316045)=>_0x2837ea in _0x2abda0?Ge(_0x2abda0,_0x2837ea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x316045}):_0x2abda0[_0x2837ea]=_0x316045,Be=(_0x240feb,_0x2ab6fe,_0x85d27a,_0x30f1ab)=>{var _0x4675b3=_0xb5a573;for(var _0x268cf6=_0x30f1ab>0x1?void 0x0:_0x30f1ab?We(_0x2ab6fe,_0x85d27a):_0x2ab6fe,_0x32311b=_0x240feb[_0x4675b3(0xe0)]-0x1,_0x497a86;_0x32311b>=0x0;_0x32311b--)(_0x497a86=_0x240feb[_0x32311b])&&(_0x268cf6=_0x497a86(_0x268cf6)||_0x268cf6);return _0x268cf6;},F=(_0x4c7355,_0x3671d8)=>(_0x2194b8,_0x216d0e)=>_0x3671d8(_0x2194b8,_0x216d0e,_0x4c7355),J=(_0x26648a,_0x5b1545,_0x4eb0f5)=>Ye(_0x26648a,typeof _0x5b1545!=_0xb5a573(0x10b)?_0x5b1545+'':_0x5b1545,_0x4eb0f5);const Ze=_0xb5a573(0x103);let O=class extends _0x5e8534{constructor(_0x159a96=T,_0xe2846f,_0x488191){var _0x1fbc4f=_0xb5a573;super(),this[_0x1fbc4f(0xf4)]=_0x159a96,this[_0x1fbc4f(0x154)]=_0xe2846f,this[_0x1fbc4f(0xd6)]=_0x488191;const {..._0x278b45}=_0x2a990a({},T,this[_0x1fbc4f(0xf4)]);this['_configService'][_0x1fbc4f(0xcb)](Oe,_0x278b45);}['onStarting'](){var _0x45c172=_0xb5a573;_0x2e1b41(this['_injector'],_0x502523([[L],[I],[m],[b]],this[_0x45c172(0xf4)][_0x45c172(0xc5)])),_0x163c27(this[_0x45c172(0x154)],[[m]]);}[_0xb5a573(0x121)](){var _0x262078=_0xb5a573;_0x163c27(this[_0x262078(0x154)],[[b]]);}};J(O,'type',_0x1101b5[_0xb5a573(0xd1)]),J(O,_0xb5a573(0x11b),Ze),O=Be([_0x39b586(_0x4dd30b),F(0x1,_0x25c40d(_0x23997e)),F(0x2,_0x94ff8f)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x2ccbc7=_0x380c;(function(_0x460a92,_0x50a99d){var _0x1ec21c=_0x380c,_0x169c67=_0x460a92();while(!![]){try{var _0x5ea1f0=-parseInt(_0x1ec21c(0x187))/0x1*(-parseInt(_0x1ec21c(0x114))/0x2)+parseInt(_0x1ec21c(0x110))/0x3+parseInt(_0x1ec21c(0x10a))/0x4+-parseInt(_0x1ec21c(0xec))/0x5+parseInt(_0x1ec21c(0x13f))/0x6+-parseInt(_0x1ec21c(0x121))/0x7*(parseInt(_0x1ec21c(0x199))/0x8)+parseInt(_0x1ec21c(0xf6))/0x9;if(_0x5ea1f0===_0x50a99d)break;else _0x169c67['push'](_0x169c67['shift']());}catch(_0x499b20){_0x169c67['push'](_0x169c67['shift']());}}}(_0x1df3,0x343b8));var q=Object[_0x2ccbc7(0x111)],z=(_0x5b4cc0,_0x1a05c0,_0x110ad9)=>_0x1a05c0 in _0x5b4cc0?q(_0x5b4cc0,_0x1a05c0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x110ad9}):_0x5b4cc0[_0x1a05c0]=_0x110ad9,d=(_0x45a902,_0x4e50b9,_0x4a66c4)=>z(_0x45a902,typeof _0x4e50b9!=_0x2ccbc7(0x17b)?_0x4e50b9+'':_0x4e50b9,_0x4a66c4);import{CollaborationSessionService as _0x2457df,SessionStatus as _0x39e8c4,UniverCollaborationClientPlugin as _0x1657ed}from'@univerjs-pro/collaboration-client';import{Disposable as _0x40e168,toDisposable as _0x2b35d3,Inject as _0x34da18,IUniverInstanceService as _0x155e60,Injector as _0xfe890,IConfigService as _0x1aa9f4,ICommandService as _0x2ffcc8,RxDisposable as _0x44f7bb,UniverInstanceType as _0x22216f,DisposableCollection as _0x155f28,CommandType as _0x134755,DependentOn as _0x114bdd,Plugin as _0x40f23b,merge as _0x48d0ce,registerDependencies as _0x1d98a0,mergeOverrideWithDependencies as _0x1a5f9d,touchDependencies as _0x9824aa}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x236b75,InsertSheetMutation as _0x3b5b47}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x5a39bc,SetScrollOperation as _0x1313c6}from'@univerjs/sheets-ui';function _0x1df3(){var _0xbac974=['apply','defIds','offline','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','registerInitialStateReporter','IDLE','currentColor','shouldShareOperation','getMemberID','getValue','createInstance','indexOf','status$','registerComponent','getOwnPropertySymbols','You\x27are\x20offline.','function','symbol','_startLiveShareCoordinator','presenter','length','dispose$','data','type','_beIdle','_liveShareService','next','startFollowing','fill','661BVcqQz','_mountLiveShare','_startFollowing','1em','Present\x20this\x20document','LIVESHARE_NEW_HOST','pipe','executeCommand','map','tryStartPresenting','attrs','asObservable','getUnitId','colorChannel1','not-following','find','includes','hasOwnProperty','1434472tqexCi','set','Start\x20following','onStarting','from','call','getTypeOfUnitDisposed$','_fetchOperations','stopPresenting','_entities','_handleOperation','1397360XkCRiu','UniverIcon','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','defs','icon','_handleOnline','_handleNewChangeSets','extend','text','NOT_FOLLOWING','2466711aJOuGM','tag','getOwnPropertyDescriptor','ONLINE','send','_sharedOperations','LIVESHARE_REQUEST_HOST','delete','_injector','UNIVER_UNKNOWN','propertyIsEnumerable','subscribe','FOLLOWING','Stop\x20presenting','className','complete','div','xlink:href','evenodd','parse','137960iCtKsx','LIVESHARE_OPERATION','0\x200\x2017\x2017','stringify','disposeWithMe','_config','3726rqibYE','defineProperty','univer-size-4','mutations','1012DiBQDB','_univerInstanceService','OPERATION','none','_commandDisposable','presenting','displayName','OFFLINE','UNIVER_LIVE_SHARE_PLUGIN','path','_status$','pluginName','getConfig','7eeKzVe','idSuffix','replace','assign','_init','use','_startPresenting','prototype','http://www.w3.org/2000/svg','add','You\x27re\x20presenting\x20the\x20document','init','unitId','_status','button','params','_presenter','operations','following','setConfig','entries','PRESENTING','LIVESHARE_FETCH_OPERATIONS','forEach','_uiPartsService','then','_reporters','_commandService','_collabSession','Stop\x20following','170688rnJDlA','live-share.config','has','sessionStatus$','current','clear','idle','memberID','univer-mb-3\x20univer-w-full\x20univer-text-sm','stopFollowing','url(#$1','string','_collabSessionService','LiveShareIcon','sheet','getInitialStates','_stopFollowing','reverse','_handleTerminate','SAME_OPERATION_SHARE_INTERVAL','dispose','end','get','concat','event$','_handleNewHost','registerSharedOperation','You\x27re\x20following\x20the\x20presenter','mask','LIVESHARE_TERMINATE','Start','onRendered','UNIVER_SHEET','trim','_configService','unsubscribe','values','_unitID','getLiveShareCoordinator','univerjs-icon\x20univerjs-icon-','getCurrentTypeOfUnit$','_handleOffline','_stopPresenting'];_0x1df3=function(){return _0xbac974;};return _0x1df3();}import{useDependency as _0x13e6ca,useObservable as _0x19063a,IUIPartsService as _0x4b756a,BuiltInUIPart as _0x4134cc,connectInjector as _0x47f45d}from'@univerjs/ui';import{jsx as _0x4098d8,jsxs as _0x20c3dd,Fragment as _0x4bb10c}from'react/jsx-runtime';import{Dropdown as _0x5316e1,clsx as _0x456e6f,Button as _0x294d6e}from'@univerjs/design';import{forwardRef as _0x4dfe25,useRef as _0x15a3d7,createElement as _0x50406f,useState as _0x14724e,useEffect as _0x41165e}from'react';import{CollaborationEvent as _0x13802b,parseProtocolChangeset as _0x457183}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x466e71,Subject as _0x2749a7}from'rxjs';import{takeUntil as _0x4faa25,throttleTime as _0x5f0de8}from'rxjs/operators';const Oe=_0x2ccbc7(0x140),T={};class L extends _0x40e168{constructor(){var _0x50ad51=_0x2ccbc7;super(...arguments),d(this,_0x50ad51(0xfb),new Set()),d(this,_0x50ad51(0x13b),new Set());}[_0x2ccbc7(0x159)](_0x2bc70e){var _0x58d2b9=_0x2ccbc7;return this[_0x58d2b9(0xfb)][_0x58d2b9(0x12a)](_0x2bc70e),_0x2b35d3(()=>this[_0x58d2b9(0xfb)][_0x58d2b9(0xfd)](_0x2bc70e));}[_0x2ccbc7(0x16e)](_0xe92d2e){var _0x156799=_0x2ccbc7;return this[_0x156799(0x13b)]['add'](_0xe92d2e),_0x2b35d3(()=>this['_reporters'][_0x156799(0xfd)](_0xe92d2e));}[_0x2ccbc7(0x171)](_0x20e901){var _0x4250d6=_0x2ccbc7;return this['_sharedOperations'][_0x4250d6(0x141)](_0x20e901);}[_0x2ccbc7(0x14e)](_0x4b7d60){var _0x552e70=_0x2ccbc7;return Array[_0x552e70(0x19d)](this[_0x552e70(0x13b)])[_0x552e70(0x18f)](_0x43e4ec=>_0x43e4ec(_0x4b7d60));}}var Ee=Object[_0x2ccbc7(0xf8)],we=(_0x20e8e4,_0x35f89a,_0x2d4186,_0x1cf2c1)=>{var _0x41139c=_0x2ccbc7;for(var _0x585f16=_0x1cf2c1>0x1?void 0x0:_0x1cf2c1?Ee(_0x35f89a,_0x2d4186):_0x35f89a,_0x18f040=_0x20e8e4[_0x41139c(0x17e)]-0x1,_0x3bfd30;_0x18f040>=0x0;_0x18f040--)(_0x3bfd30=_0x20e8e4[_0x18f040])&&(_0x585f16=_0x3bfd30(_0x585f16)||_0x585f16);return _0x585f16;},Ne=(_0x850252,_0x4203c3)=>(_0x2ac830,_0x1cbbcb)=>_0x4203c3(_0x2ac830,_0x1cbbcb,_0x850252);let m=class extends _0x40e168{constructor(_0x2a3ba6){var _0x11bc4a=_0x2ccbc7;super(),this[_0x11bc4a(0x183)]=_0x2a3ba6,this['_init']();}['_init'](){var _0x58e0f9=_0x2ccbc7;[_0x5a39bc['id'],_0x1313c6['id'],_0x236b75['id']][_0x58e0f9(0x138)](_0x195c1b=>{var _0x4f9e57=_0x58e0f9;this[_0x4f9e57(0x10e)](this[_0x4f9e57(0x183)][_0x4f9e57(0x159)](_0x195c1b));});}};m=we([Ne(0x0,_0x34da18(L))],m);var c=function(){var _0x2d731f=_0x2ccbc7;return c=Object[_0x2d731f(0x124)]||function(_0x15ea82){var _0x2c334c=_0x2d731f;for(var _0xf39e13,_0x3144a3=0x1,_0x4d70bb=arguments[_0x2c334c(0x17e)];_0x3144a3<_0x4d70bb;_0x3144a3++){_0xf39e13=arguments[_0x3144a3];for(var _0x20da40 in _0xf39e13)Object['prototype'][_0x2c334c(0x198)][_0x2c334c(0x19e)](_0xf39e13,_0x20da40)&&(_0x15ea82[_0x20da40]=_0xf39e13[_0x20da40]);}return _0x15ea82;},c[_0x2d731f(0x16a)](this,arguments);},Ce=function(_0x53d124,_0x513f8b){var _0x3b496f=_0x2ccbc7,_0x32fc47={};for(var _0x2d30d8 in _0x53d124)Object[_0x3b496f(0x128)][_0x3b496f(0x198)]['call'](_0x53d124,_0x2d30d8)&&_0x513f8b[_0x3b496f(0x175)](_0x2d30d8)<0x0&&(_0x32fc47[_0x2d30d8]=_0x53d124[_0x2d30d8]);if(_0x53d124!=null&&typeof Object[_0x3b496f(0x178)]==_0x3b496f(0x17a)){for(var _0x29935c=0x0,_0x2d30d8=Object[_0x3b496f(0x178)](_0x53d124);_0x29935c<_0x2d30d8[_0x3b496f(0x17e)];_0x29935c++)_0x513f8b[_0x3b496f(0x175)](_0x2d30d8[_0x29935c])<0x0&&Object[_0x3b496f(0x128)][_0x3b496f(0x100)][_0x3b496f(0x19e)](_0x53d124,_0x2d30d8[_0x29935c])&&(_0x32fc47[_0x2d30d8[_0x29935c]]=_0x53d124[_0x2d30d8[_0x29935c]]);}return _0x32fc47;},W=_0x4dfe25(function(_0x1e32bf,_0x1da583){var _0xeb043c=_0x2ccbc7,_0x56872c=_0x1e32bf[_0xeb043c(0xf0)],_0x1d7a50=_0x1e32bf['id'],_0xd146c4=_0x1e32bf[_0xeb043c(0x104)],_0x40a4e8=_0x1e32bf['extend'],_0x178114=Ce(_0x1e32bf,['icon','id',_0xeb043c(0x104),_0xeb043c(0xf3)]),_0x46cb92=_0xeb043c(0x166)[_0xeb043c(0x156)](_0x1d7a50,'\x20')[_0xeb043c(0x156)](_0xd146c4||'')[_0xeb043c(0x160)](),_0x5b8189=_0x15a3d7('_'[_0xeb043c(0x156)](Le()));return Y(_0x56872c,''[_0xeb043c(0x156)](_0x1d7a50),{'defIds':_0x56872c[_0xeb043c(0x16b)],'idSuffix':_0x5b8189[_0xeb043c(0x143)]},c({'ref':_0x1da583,'className':_0x46cb92},_0x178114),_0x40a4e8);});function Y(_0x2db4cb,_0x28e16f,_0x335335,_0x2913e6,_0x3d6f42){var _0xf89e31=_0x2ccbc7;return _0x50406f(_0x2db4cb[_0xf89e31(0xf7)],c(c({'key':_0x28e16f},De(_0x2db4cb,_0x335335,_0x3d6f42)),_0x2913e6),(xe(_0x2db4cb,_0x335335)['children']||[])[_0xf89e31(0x18f)](function(_0x29a9ce,_0x4a4ff7){var _0x51e3da=_0xf89e31;return Y(_0x29a9ce,''['concat'](_0x28e16f,'-')[_0x51e3da(0x156)](_0x2db4cb[_0x51e3da(0xf7)],'-')[_0x51e3da(0x156)](_0x4a4ff7),_0x335335,void 0x0,_0x3d6f42);}));}function De(_0x349d38,_0x38dfcd,_0x209c6a){var _0x56cc48=_0x2ccbc7,_0x5cebf6=c({},_0x349d38[_0x56cc48(0x191)]);_0x209c6a!=null&&_0x209c6a[_0x56cc48(0x194)]&&_0x5cebf6[_0x56cc48(0x186)]===_0x56cc48(0x194)&&(_0x5cebf6['fill']=_0x209c6a['colorChannel1']),_0x349d38[_0x56cc48(0xf7)]==='mask'&&_0x5cebf6['id']&&(_0x5cebf6['id']=_0x5cebf6['id']+_0x38dfcd[_0x56cc48(0x122)]),Object[_0x56cc48(0x135)](_0x5cebf6)[_0x56cc48(0x138)](function(_0x44888c){var _0x1cc609=_0x56cc48,_0x150af6=_0x44888c[0x0],_0x31598d=_0x44888c[0x1];_0x150af6===_0x1cc609(0x15b)&&typeof _0x31598d==_0x1cc609(0x14a)&&(_0x5cebf6[_0x150af6]=_0x31598d[_0x1cc609(0x123)](/url\(#(.*)\)/,_0x1cc609(0x149)[_0x1cc609(0x156)](_0x38dfcd[_0x1cc609(0x122)],')')));});var _0x3b590f=_0x38dfcd[_0x56cc48(0x16b)];return!_0x3b590f||_0x3b590f[_0x56cc48(0x17e)]===0x0||(_0x349d38[_0x56cc48(0xf7)]===_0x56cc48(0x126)&&_0x5cebf6[_0x56cc48(0x107)]&&(_0x5cebf6['xlink:href']=_0x5cebf6[_0x56cc48(0x107)]+_0x38dfcd[_0x56cc48(0x122)]),Object[_0x56cc48(0x135)](_0x5cebf6)[_0x56cc48(0x138)](function(_0x27bc27){var _0x13d077=_0x56cc48,_0x4fe692=_0x27bc27[0x0],_0x1a53bc=_0x27bc27[0x1];typeof _0x1a53bc==_0x13d077(0x14a)&&(_0x5cebf6[_0x4fe692]=_0x1a53bc[_0x13d077(0x123)](/url\(#(.*)\)/,_0x13d077(0x149)[_0x13d077(0x156)](_0x38dfcd[_0x13d077(0x122)],')')));})),_0x5cebf6;}function xe(_0x1b17e7,_0x38985d){var _0x1cdf5e=_0x2ccbc7,_0x180da4,_0x2da168=_0x38985d[_0x1cdf5e(0x16b)];return!_0x2da168||_0x2da168[_0x1cdf5e(0x17e)]===0x0?_0x1b17e7:_0x1b17e7[_0x1cdf5e(0xf7)]===_0x1cdf5e(0xef)&&(!((_0x180da4=_0x1b17e7['children'])===null||_0x180da4===void 0x0)&&_0x180da4[_0x1cdf5e(0x17e)])?c(c({},_0x1b17e7),{'children':_0x1b17e7['children'][_0x1cdf5e(0x18f)](function(_0x11c922){var _0x17ccf2=_0x1cdf5e;return typeof _0x11c922[_0x17ccf2(0x191)]['id']=='string'&&_0x2da168&&_0x2da168['includes'](_0x11c922[_0x17ccf2(0x191)]['id'])?c(c({},_0x11c922),{'attrs':c(c({},_0x11c922[_0x17ccf2(0x191)]),{'id':_0x11c922['attrs']['id']+_0x38985d['idSuffix']})}):_0x11c922;})}):_0x1b17e7;}function Le(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}W[_0x2ccbc7(0x11a)]=_0x2ccbc7(0xed);var ye={'tag':'svg','attrs':{'xmlns':_0x2ccbc7(0x129),'fill':_0x2ccbc7(0x117),'viewBox':_0x2ccbc7(0x10c),'width':'1em','height':_0x2ccbc7(0x18a)},'children':[{'tag':_0x2ccbc7(0x11d),'attrs':{'fill':'currentColor','d':_0x2ccbc7(0x16d)}},{'tag':_0x2ccbc7(0x11d),'attrs':{'fill':_0x2ccbc7(0x170),'d':_0x2ccbc7(0xee),'fillRule':_0x2ccbc7(0x108),'clipRule':_0x2ccbc7(0x108)}}]},B=_0x4dfe25(function(_0x54314d,_0x177c24){var _0x587365=_0x2ccbc7;return _0x50406f(W,Object[_0x587365(0x124)]({},_0x54314d,{'id':'live-share-icon','ref':_0x177c24,'icon':ye}));});B[_0x2ccbc7(0x11a)]=_0x2ccbc7(0x14c);var Re=Object[_0x2ccbc7(0xf8)],Z=(_0x117e06,_0x40e20,_0x4833e3,_0x166fb5)=>{for(var _0x1f1aac=_0x166fb5>0x1?void 0x0:_0x166fb5?Re(_0x40e20,_0x4833e3):_0x40e20,_0x3f0aec=_0x117e06['length']-0x1,_0x484763;_0x3f0aec>=0x0;_0x3f0aec--)(_0x484763=_0x117e06[_0x3f0aec])&&(_0x1f1aac=_0x484763(_0x1f1aac)||_0x1f1aac);return _0x1f1aac;},f=(_0x125ce1,_0x2e27a6)=>(_0x49a26e,_0xceb243)=>_0x2e27a6(_0x49a26e,_0xceb243,_0x125ce1);let I=class extends _0x44f7bb{constructor(_0x4f09bb,_0x2cf1da,_0x5cfca6){var _0x812b71=_0x2ccbc7;super(),d(this,_0x812b71(0xea),new Map()),(this[_0x812b71(0x115)]=_0x4f09bb,this[_0x812b71(0xfe)]=_0x2cf1da,this[_0x812b71(0x14b)]=_0x5cfca6,this[_0x812b71(0x125)]());}async[_0x2ccbc7(0x165)](_0x4f21f7){var _0x5f4d26=_0x2ccbc7;return this[_0x5f4d26(0xea)][_0x5f4d26(0x141)](_0x4f21f7)||await this[_0x5f4d26(0x17c)](_0x4f21f7),this[_0x5f4d26(0xea)][_0x5f4d26(0x155)](_0x4f21f7);}[_0x2ccbc7(0x125)](){var _0x537267=_0x2ccbc7;this[_0x537267(0x115)]['getTypeOfUnitAdded$'](_0x22216f[_0x537267(0x15f)])[_0x537267(0x18d)](_0x4faa25(this[_0x537267(0x17f)]))[_0x537267(0x101)](async _0x1980d4=>{var _0x5c7748=_0x537267;const _0xb60baf=_0x1980d4[_0x5c7748(0x193)]();this['_entities'][_0x5c7748(0x141)](_0xb60baf)||this[_0x5c7748(0x17c)](_0xb60baf);}),this[_0x537267(0x115)][_0x537267(0x19f)](_0x22216f[_0x537267(0x15f)])[_0x537267(0x18d)](_0x4faa25(this[_0x537267(0x17f)]))[_0x537267(0x101)](_0x23a1b7=>{var _0x38c897=_0x537267;const _0x3dbbc9=_0x23a1b7[_0x38c897(0x193)](),_0x3976b6=this['_entities'][_0x38c897(0x155)](_0x3dbbc9);_0x3976b6==null||_0x3976b6[_0x38c897(0x153)]();});}async[_0x2ccbc7(0x17c)](_0x256142){var _0x115f34=_0x2ccbc7;const _0x1b36c5=await this[_0x115f34(0x14b)]['requireSession'](_0x256142),_0x18e162=this[_0x115f34(0xfe)][_0x115f34(0x174)](C,_0x256142,_0x1b36c5);return _0x18e162[_0x115f34(0x12c)](),this[_0x115f34(0xea)]['set'](_0x256142,_0x18e162),_0x18e162;}};I=Z([f(0x0,_0x155e60),f(0x1,_0x34da18(_0xfe890)),f(0x2,_0x34da18(_0x2457df))],I);var h=(_0x374d9f=>(_0x374d9f[_0x2ccbc7(0x11b)]=_0x2ccbc7(0x16c),_0x374d9f['IDLE']='idle',_0x374d9f[_0x2ccbc7(0x102)]=_0x2ccbc7(0x133),_0x374d9f[_0x2ccbc7(0xf5)]=_0x2ccbc7(0x195),_0x374d9f[_0x2ccbc7(0x136)]=_0x2ccbc7(0x119),_0x374d9f))(h||{});const Pe=_0x2ccbc7(0x152),Ae=0xc8;let C=class extends _0x44f7bb{constructor(_0x44ca39,_0x36ada0,_0x108037,_0x4f2816,_0x4120d1){var _0x4c616f=_0x2ccbc7;super(),d(this,'_status$',new _0x466e71('idle')),d(this,_0x4c616f(0x176),this[_0x4c616f(0x11e)][_0x4c616f(0x192)]()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0x4c616f(0x131),null),(this['_unitID']=_0x44ca39,this[_0x4c616f(0x13d)]=_0x36ada0,this[_0x4c616f(0x161)]=_0x108037,this[_0x4c616f(0x183)]=_0x4f2816,this['_commandService']=_0x4120d1);}get[_0x2ccbc7(0x12e)](){var _0xee756=_0x2ccbc7;return this[_0xee756(0x11e)][_0xee756(0x173)]();}[_0x2ccbc7(0x153)](){var _0x248907=_0x2ccbc7,_0x33f05b;(_0x33f05b=this[_0x248907(0x118)])==null||_0x33f05b[_0x248907(0x153)](),this[_0x248907(0x11e)][_0x248907(0x184)]('idle'),this[_0x248907(0x11e)][_0x248907(0x105)]();}[_0x2ccbc7(0x12c)](){var _0x188429=_0x2ccbc7;this[_0x188429(0x125)]||(this['_init']=!0x0,this[_0x188429(0x13d)][_0x188429(0x142)]['pipe'](_0x4faa25(this[_0x188429(0x17f)]))[_0x188429(0x101)](_0x102c16=>{var _0x445037=_0x188429;switch(_0x102c16){case _0x39e8c4[_0x445037(0x11b)]:this[_0x445037(0x168)]();break;case _0x39e8c4[_0x445037(0xf9)]:this[_0x445037(0xf1)]();break;}}),this[_0x188429(0x13d)][_0x188429(0x157)][_0x188429(0x18d)](_0x4faa25(this['dispose$']))['subscribe'](_0x563ae9=>{var _0x4cfdd3=_0x188429;const {eventID:_0x4b7ae4}=_0x563ae9;switch(_0x4b7ae4){case _0x13802b[_0x4cfdd3(0x18c)]:this[_0x4cfdd3(0x158)](_0x563ae9);break;case _0x13802b['LIVESHARE_OPERATION']:this[_0x4cfdd3(0xeb)](_0x563ae9);break;case _0x13802b[_0x4cfdd3(0x15c)]:this[_0x4cfdd3(0x151)]();break;case _0x13802b['NEW_CHANGESETS']:this[_0x4cfdd3(0xf2)](_0x563ae9);break;}}));}[_0x2ccbc7(0x190)](){var _0x57d963=_0x2ccbc7;this['_collabSession'][_0x57d963(0xfa)]({'eventID':_0x13802b[_0x57d963(0xfc)],'data':{'unitID':this[_0x57d963(0x164)],'userID':this[_0x57d963(0x13d)][_0x57d963(0x172)]()}},this[_0x57d963(0x164)]);}[_0x2ccbc7(0xe9)](){var _0xce7ad2=_0x2ccbc7;this[_0xce7ad2(0x12e)]===_0xce7ad2(0x119)&&(this[_0xce7ad2(0x11e)]['next'](_0xce7ad2(0x145)),this['_collabSession'][_0xce7ad2(0xfa)]({'eventID':_0x13802b[_0xce7ad2(0x15c)],'data':{'unitID':this[_0xce7ad2(0x164)]}},this['_unitID']));}[_0x2ccbc7(0x185)](){var _0x26ac21=_0x2ccbc7;this['_status']===_0x26ac21(0x195)&&(this['_status$'][_0x26ac21(0x184)](_0x26ac21(0x133)),this['_startFollowing']());}[_0x2ccbc7(0x148)](){var _0x28c98a=_0x2ccbc7;this[_0x28c98a(0x12e)]==='following'&&this[_0x28c98a(0x14f)]();}['_handleNewHost'](_0x103589){var _0x217e05=_0x2ccbc7;const {presenter:_0x4a19ec}=_0x103589[_0x217e05(0x180)],_0x42662c=this[_0x217e05(0x13d)][_0x217e05(0x172)]();this[_0x217e05(0x131)]=_0x4a19ec,_0x4a19ec===_0x42662c?(this[_0x217e05(0x14f)](),this[_0x217e05(0x127)]()):this[_0x217e05(0x12e)]!==_0x217e05(0x195)&&(this[_0x217e05(0x169)](),this[_0x217e05(0x189)]());}['_fetchOperations'](){var _0x5bf387=_0x2ccbc7;const _0x5ef86f={'eventID':_0x13802b[_0x5bf387(0x137)]};this[_0x5bf387(0x13d)][_0x5bf387(0xfa)](_0x5ef86f,this['_unitID']);}[_0x2ccbc7(0x151)](){var _0x1e1f38=_0x2ccbc7;this[_0x1e1f38(0x131)]=null,this['_status']!=='presenting'&&this[_0x1e1f38(0x182)]();}[_0x2ccbc7(0xf2)](_0x592e9c){var _0x58a832=_0x2ccbc7;if(this[_0x58a832(0x12e)]==='following'&&this['_presenter']===_0x592e9c[_0x58a832(0x180)][_0x58a832(0x146)]){const _0x59be3d=_0x457183(_0x592e9c[_0x58a832(0x180)])[_0x58a832(0x113)][_0x58a832(0x150)]()[_0x58a832(0x196)](_0x55e871=>_0x55e871['id']===_0x3b5b47['id']);if(_0x59be3d){const _0x1a7694=_0x59be3d[_0x58a832(0x130)][_0x58a832(0x12d)],_0x4d3f1e=_0x59be3d[_0x58a832(0x130)][_0x58a832(0x14d)]['id'];setTimeout(()=>{var _0x51ce8f=_0x58a832;this[_0x51ce8f(0x13c)][_0x51ce8f(0x18e)](_0x236b75['id'],{'unitId':_0x1a7694,'subUnitId':_0x4d3f1e},{'fromCollab':!0x0});});}}}[_0x2ccbc7(0x127)](){var _0x2b62d4=_0x2ccbc7;this[_0x2b62d4(0x11e)][_0x2b62d4(0x184)](_0x2b62d4(0x119));const _0xddc5c9=new Map(),_0x4629ec=this[_0x2b62d4(0x118)]=new _0x155f28();_0x4629ec[_0x2b62d4(0x12a)](_0x2b35d3(()=>{var _0x29313c=_0x2b62d4;_0xddc5c9['forEach'](_0x75d251=>_0x75d251['complete']()),_0xddc5c9[_0x29313c(0x144)]();})),_0x4629ec[_0x2b62d4(0x12a)](this[_0x2b62d4(0x13c)]['onCommandExecuted'](_0x3f7f0e=>{var _0x5c8ca6=_0x2b62d4,_0x8e433a;if(_0x3f7f0e['type']!==_0x134755[_0x5c8ca6(0x116)]||!this[_0x5c8ca6(0x183)][_0x5c8ca6(0x171)](_0x3f7f0e['id']))return;const {id:_0x385bb1}=_0x3f7f0e;let _0x98bdd3;_0xddc5c9['has'](_0x385bb1)?_0x98bdd3=_0xddc5c9['get'](_0x385bb1):(_0x98bdd3=new _0x2749a7(),_0xddc5c9[_0x5c8ca6(0x19a)](_0x385bb1,_0x98bdd3),_0x98bdd3[_0x5c8ca6(0x18d)](_0x5f0de8((_0x8e433a=this[_0x5c8ca6(0x161)][_0x5c8ca6(0x120)](Pe))!=null?_0x8e433a:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x53c655=>{var _0x1a09bb=_0x5c8ca6;this['_collabSession'][_0x1a09bb(0xfa)]({'eventID':_0x13802b[_0x1a09bb(0x10b)],'data':{'unitID':this[_0x1a09bb(0x164)],'operations':{[_0x53c655['id']]:{'id':_0x53c655['id'],'params':JSON[_0x1a09bb(0x10d)](_0x53c655[_0x1a09bb(0x130)])}}}},this[_0x1a09bb(0x164)]);})),_0x98bdd3[_0x5c8ca6(0x184)](_0x3f7f0e);})),this[_0x2b62d4(0x183)][_0x2b62d4(0x14e)](this[_0x2b62d4(0x164)])['forEach'](_0x3a097e=>this[_0x2b62d4(0x13d)][_0x2b62d4(0xfa)]({'eventID':_0x13802b[_0x2b62d4(0x10b)],'data':{'unitID':this[_0x2b62d4(0x164)],'operations':{[_0x3a097e['id']]:{'id':_0x3a097e['id'],'params':JSON[_0x2b62d4(0x10d)](_0x3a097e[_0x2b62d4(0x130)])}}}},this[_0x2b62d4(0x164)]));}[_0x2ccbc7(0x169)](){var _0x38b173=_0x2ccbc7,_0x540aa8;this['_status$'][_0x38b173(0x184)](_0x38b173(0x145)),(_0x540aa8=this[_0x38b173(0x118)])==null||_0x540aa8['dispose'](),this[_0x38b173(0x118)]=null;}[_0x2ccbc7(0x189)](){var _0xdbfb7e=_0x2ccbc7,_0x471c46;(_0x471c46=this[_0xdbfb7e(0x118)])==null||_0x471c46[_0xdbfb7e(0x153)](),this[_0xdbfb7e(0x11e)]['next'](_0xdbfb7e(0x133));}['_beIdle'](){var _0x60dd83=_0x2ccbc7,_0xc8786c;this['_status$'][_0x60dd83(0x184)]('idle'),(_0xc8786c=this[_0x60dd83(0x118)])==null||_0xc8786c[_0x60dd83(0x153)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x542ffb=_0x2ccbc7,_0x5394cb;this[_0x542ffb(0x11e)][_0x542ffb(0x184)]('not-following'),(_0x5394cb=this['_commandDisposable'])==null||_0x5394cb[_0x542ffb(0x153)]();}['_handleOperation'](_0x2b28e0){var _0x8acb6f=_0x2ccbc7;if([_0x8acb6f(0x119),'not-following',_0x8acb6f(0x16c)][_0x8acb6f(0x197)](this[_0x8acb6f(0x12e)])||!_0x2b28e0[_0x8acb6f(0x180)]['presenter']||_0x2b28e0['data'][_0x8acb6f(0x17d)]===this[_0x8acb6f(0x13d)][_0x8acb6f(0x172)]())return;this[_0x8acb6f(0x12e)]==='idle'&&this[_0x8acb6f(0x189)]();const _0x527d68=_0x2b28e0['data'][_0x8acb6f(0x132)];Object[_0x8acb6f(0x163)](_0x527d68)['forEach'](_0x552dea=>{var _0x174ce9=_0x8acb6f;this[_0x174ce9(0x13c)]['executeCommand'](_0x552dea['id'],_0x552dea[_0x174ce9(0x130)]?JSON[_0x174ce9(0x109)](_0x552dea[_0x174ce9(0x130)]):null,{'fromCollab':!0x0});});}[_0x2ccbc7(0x168)](){var _0x8e3bfe=_0x2ccbc7,_0x225389;this[_0x8e3bfe(0x11e)][_0x8e3bfe(0x184)](_0x8e3bfe(0x16c)),(_0x225389=this[_0x8e3bfe(0x118)])==null||_0x225389[_0x8e3bfe(0x153)]();}[_0x2ccbc7(0xf1)](){var _0x88fc53=_0x2ccbc7;this[_0x88fc53(0x11e)][_0x88fc53(0x184)](_0x88fc53(0x145)),this[_0x88fc53(0xe8)]();}};function _0x380c(_0x59f3ac,_0x21c8b8){var _0x1df345=_0x1df3();return _0x380c=function(_0x380c15,_0x29d1e0){_0x380c15=_0x380c15-0xe8;var _0x3799e5=_0x1df345[_0x380c15];return _0x3799e5;},_0x380c(_0x59f3ac,_0x21c8b8);}C=Z([f(0x2,_0x1aa9f4),f(0x3,_0x34da18(L)),f(0x4,_0x2ffcc8)],C);function Te(){var _0x20f1e2=_0x2ccbc7;const _0xdeda02=_0x13e6ca(I),_0x36c655=_0x13e6ca(_0x155e60),_0xaf54e3=_0x19063a(()=>_0x36c655[_0x20f1e2(0x167)](_0x22216f[_0x20f1e2(0x15f)]),void 0x0,!0x1,[]),[_0xde8f39,_0xffd807]=_0x14724e(null),[_0x3d0337,_0x8c7187]=_0x14724e(h['IDLE']),_0x21c472=_0x15a3d7(null);return _0x41165e(()=>(_0xaf54e3&&_0xdeda02[_0x20f1e2(0x165)](_0xaf54e3['getUnitId']())[_0x20f1e2(0x13a)](_0x8c8243=>{var _0x312b05=_0x20f1e2;_0xffd807(_0x8c8243),_0x21c472[_0x312b05(0x143)]=_0x8c8243[_0x312b05(0x176)][_0x312b05(0x101)](_0x27b12f=>{_0x8c7187(_0x27b12f);});}),()=>{var _0x372d23=_0x20f1e2,_0x34f870;(_0x34f870=_0x21c472['current'])==null||_0x34f870[_0x372d23(0x162)](),_0x21c472[_0x372d23(0x143)]=null;}),[_0xaf54e3,_0xdeda02]),_0xde8f39?_0x4098d8(_0x5316e1,{'align':_0x20f1e2(0x154),'disabled':_0x3d0337===h['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x4098d8($e,{'status':_0x3d0337,'coordinator':_0xde8f39}),'children':_0x4098d8(_0x20f1e2(0x12f),{'className':_0x456e6f('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x3d0337===h[_0x20f1e2(0x11b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3d0337!==h[_0x20f1e2(0x11b)]}),'type':_0x20f1e2(0x12f),'children':_0x4098d8(B,{'className':_0x20f1e2(0x112)})})}):null;}function $e(_0xb5bdb){var _0x724bc=_0x2ccbc7;const {status:_0x5b7d1c,coordinator:_0x2afb0a}=_0xb5bdb;switch(_0x5b7d1c){case h[_0x724bc(0x16f)]:return _0x4098d8(Fe,{'coordinator':_0x2afb0a});case h['FOLLOWING']:return _0x4098d8(He,{'coordinator':_0x2afb0a});case h[_0x724bc(0xf5)]:return _0x4098d8(je,{'coordinator':_0x2afb0a});case h[_0x724bc(0x11b)]:return _0x4098d8(Ve,{});case h[_0x724bc(0x136)]:return _0x4098d8(Ue,{'coordinator':_0x2afb0a});default:return null;}}function Fe(_0x372345){var _0x550087=_0x2ccbc7;const {coordinator:_0x2b5c3c}=_0x372345;return _0x20c3dd(_0x4bb10c,{'children':[_0x4098d8(_0x550087(0x106),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x550087(0x18b)}),_0x4098d8(_0x294d6e,{'onClick':()=>_0x2b5c3c[_0x550087(0x190)](),'children':_0x550087(0x15d)})]});}function He(_0x37c6d2){var _0x150998=_0x2ccbc7;const {coordinator:_0x2d0a82}=_0x37c6d2;return _0x20c3dd(_0x4bb10c,{'children':[_0x4098d8(_0x150998(0x106),{'className':_0x150998(0x147),'children':_0x150998(0x15a)}),_0x4098d8(_0x294d6e,{'onClick':()=>_0x2d0a82['stopFollowing'](),'children':_0x150998(0x13e)})]});}function je(_0x3ac030){var _0x136e89=_0x2ccbc7;const {coordinator:_0x12e4d5}=_0x3ac030;return _0x20c3dd(_0x4bb10c,{'children':[_0x4098d8(_0x136e89(0x106),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4098d8(_0x294d6e,{'variant':_0x136e89(0xf4),'onClick':()=>_0x12e4d5[_0x136e89(0x185)](),'children':_0x136e89(0x19b)})]});}function Ue(_0x32ec1d){var _0x1d5e70=_0x2ccbc7;const {coordinator:_0x413a7c}=_0x32ec1d;return _0x20c3dd(_0x4bb10c,{'children':[_0x4098d8(_0x1d5e70(0x106),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1d5e70(0x12b)}),_0x4098d8(_0x294d6e,{'variant':'default','onClick':()=>_0x413a7c[_0x1d5e70(0xe9)](),'children':_0x1d5e70(0x103)})]});}function Ve(){var _0x465adb=_0x2ccbc7;return _0x4098d8(_0x4bb10c,{'children':_0x465adb(0x179)});}var Me=Object[_0x2ccbc7(0xf8)],ke=(_0x45f9ee,_0x14f43d,_0x3492c4,_0x45d7ee)=>{var _0x3ea012=_0x2ccbc7;for(var _0x4578d6=_0x45d7ee>0x1?void 0x0:_0x45d7ee?Me(_0x14f43d,_0x3492c4):_0x14f43d,_0x4229d8=_0x45f9ee[_0x3ea012(0x17e)]-0x1,_0x341552;_0x4229d8>=0x0;_0x4229d8--)(_0x341552=_0x45f9ee[_0x4229d8])&&(_0x4578d6=_0x341552(_0x4578d6)||_0x4578d6);return _0x4578d6;},$=(_0x3e3381,_0x5e3401)=>(_0x6b3128,_0x3f5c9a)=>_0x5e3401(_0x6b3128,_0x3f5c9a,_0x3e3381);let b=class extends _0x40e168{constructor(_0x5c8491,_0x54a3ac){var _0x12e219=_0x2ccbc7;super(),this[_0x12e219(0xfe)]=_0x5c8491,this[_0x12e219(0x139)]=_0x54a3ac,this['_mountLiveShare']();}[_0x2ccbc7(0x188)](){var _0x5020e4=_0x2ccbc7;this['disposeWithMe'](this['_uiPartsService'][_0x5020e4(0x177)](_0x4134cc['HEADER_MENU'],()=>_0x47f45d(Te,this[_0x5020e4(0xfe)])));}};b=ke([$(0x0,_0x34da18(_0xfe890)),$(0x1,_0x4b756a)],b);var Ge=Object[_0x2ccbc7(0x111)],We=Object[_0x2ccbc7(0xf8)],Ye=(_0x18f0bc,_0x4960dc,_0x1e3c2c)=>_0x4960dc in _0x18f0bc?Ge(_0x18f0bc,_0x4960dc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1e3c2c}):_0x18f0bc[_0x4960dc]=_0x1e3c2c,Be=(_0x40c816,_0x557fea,_0x230514,_0x43fc0a)=>{for(var _0x4aed33=_0x43fc0a>0x1?void 0x0:_0x43fc0a?We(_0x557fea,_0x230514):_0x557fea,_0x46fadc=_0x40c816['length']-0x1,_0x396fc7;_0x46fadc>=0x0;_0x46fadc--)(_0x396fc7=_0x40c816[_0x46fadc])&&(_0x4aed33=_0x396fc7(_0x4aed33)||_0x4aed33);return _0x4aed33;},F=(_0x2129bc,_0xd5af2)=>(_0x236f02,_0xa2428a)=>_0xd5af2(_0x236f02,_0xa2428a,_0x2129bc),J=(_0x5998eb,_0x4fff9a,_0x4bfa97)=>Ye(_0x5998eb,typeof _0x4fff9a!=_0x2ccbc7(0x17b)?_0x4fff9a+'':_0x4fff9a,_0x4bfa97);const Ze=_0x2ccbc7(0x11c);let O=class extends _0x40f23b{constructor(_0x16c1e0=T,_0x497d9f,_0xc36c16){var _0x1cd0f2=_0x2ccbc7;super(),this[_0x1cd0f2(0x10f)]=_0x16c1e0,this[_0x1cd0f2(0xfe)]=_0x497d9f,this[_0x1cd0f2(0x161)]=_0xc36c16;const {..._0x52637e}=_0x48d0ce({},T,this[_0x1cd0f2(0x10f)]);this[_0x1cd0f2(0x161)][_0x1cd0f2(0x134)](Oe,_0x52637e);}[_0x2ccbc7(0x19c)](){var _0x5644dd=_0x2ccbc7;_0x1d98a0(this[_0x5644dd(0xfe)],_0x1a5f9d([[L],[I],[m],[b]],this[_0x5644dd(0x10f)]['override'])),_0x9824aa(this[_0x5644dd(0xfe)],[[m]]);}[_0x2ccbc7(0x15e)](){var _0x14b2a8=_0x2ccbc7;_0x9824aa(this[_0x14b2a8(0xfe)],[[b]]);}};J(O,_0x2ccbc7(0x181),_0x22216f[_0x2ccbc7(0xff)]),J(O,_0x2ccbc7(0x11f),Ze),O=Be([_0x114bdd(_0x1657ed),F(0x1,_0x34da18(_0xfe890)),F(0x2,_0x1aa9f4)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x396a(){var _0x12f50c=['_handleOffline','following','createElement','UniverCollaborationClientPlugin','CollaborationSessionService','IUniverInstanceService','hasOwnProperty','UniverLiveSharePlugin','OPERATION','You\x27re\x20following\x20the\x20presenter','parse','univer-mb-3\x20univer-w-full\x20univer-text-sm','executeCommand','SetWorksheetActiveOperation','getTypeOfUnitDisposed$','NOT_FOLLOWING','has','random','init','assign','SetZoomRatioOperation','shouldShareOperation','SetScrollOperation','className','live-share.config','FOLLOWING','memberID','div','pluginName','replace','_handleTerminate','defineProperty','InsertSheetMutation','get','presenter','You\x27are\x20offline.','_injector','asObservable','Start\x20following','Stop\x20following','status$','UniverInstanceType','fill','concat','offline','children','send','add','_startLiveShareCoordinator','registerDependencies','Present\x20this\x20document','react/jsx-runtime','2317119FTbvtv','UniverSheets','_init','http://www.w3.org/2000/svg','tag','LiveShareService','Button','_liveShareService','SAME_OPERATION_SHARE_INTERVAL','useDependency','Injector','UniverIcon','sheet','colorChannel1','_reporters','icon','params','799252NsWkng','@univerjs/core','idle','use','_status','LiveShare','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','toDisposable','getInitialStates','clear','symbol','OFFLINE','UNIVER_SHEET','0\x200\x2017\x2017','throttleTime','parseProtocolChangeset','6300SxAIKt','Subject','29777uAtYsv','_collabSessionService','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','_config','_collabSession','getMemberID','idSuffix','12tyDbrK','stopFollowing','_commandService','_stopFollowing','getOwnPropertySymbols','find','_unitID','UNIVER_LIVE_SHARE_PLUGIN','getOwnPropertyDescriptor','object','@univerjs/sheets-ui','unitId','operators','Dropdown','complete','SessionStatus','ONLINE','_status$','xlink:href','LiveShareIcon','Fragment','createInstance','UniverCore','length','_presenter','React','data','1358QIUlYS','_beIdle','stringify','RxDisposable','dispose','mask','subscribe','_configService','react','touchDependencies','LiveShareStatus','live-share-icon','useState','univerjs-icon\x20univerjs-icon-','UniverDesign','jsx','IUIPartsService','DesktopLiveShareController','Stop\x20presenting','onRendered','string','_handleOnline','getLiveShareCoordinator','@univerjs/sheets','defIds','apply','entries','exports','getTypeOfUnitAdded$','path','You\x27re\x20presenting\x20the\x20document','8JWYEFL','delete','registerSharedOperation','@univerjs/ui','displayName','dispose$','clsx','3dBTAZt','HEADER_MENU','stopPresenting','UniverProCollaboration','url(#$1','Inject','_fetchOperations','mutations','current','prototype','LIVESHARE_NEW_HOST','values','@univerjs-pro/collaboration-client','CollaborationEvent','toString','ICommandService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','setConfig','UniverProCollaborationClient','115CZHvgA','UniverProLiveShare','_handleNewChangeSets','map','startFollowing','UniverSheetsUi','propertyIsEnumerable','_startPresenting','_sharedOperations','_entities','trim','pipe','takeUntil','defs','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','NEW_CHANGESETS','42858qAflmz','8VkcGfI','_handleOperation','presenting','connectInjector','UNIVER_UNKNOWN','button','LIVESHARE_OPERATION','override','128196hgzeIu','includes','substring','CommandType','unsubscribe','BehaviorSubject','currentColor','LiveShareController','merge','not-following','@univerjs/design','tryStartPresenting','IDLE','_startFollowing','call','from','_stopPresenting','forwardRef','set','jsxs','_univerInstanceService','operations','Plugin','svg','none','reverse','28782DxJrXm','_handleNewHost','DisposableCollection','13500cKuAtk','next','default','attrs','extend','Module','useRef','Disposable','_mountLiveShare','_commandDisposable','disposeWithMe','LiveShareCoordinator','type','@univerjs-pro/collaboration','evenodd','forEach','BuiltInUIPart','getUnitId','getValue','LIVESHARE_TERMINATE','registerInitialStateReporter'];_0x396a=function(){return _0x12f50c;};return _0x396a();}function _0x1feb(_0x1bacd8,_0x1ad923){var _0x396ac0=_0x396a();return _0x1feb=function(_0x1febcd,_0x2be2e3){_0x1febcd=_0x1febcd-0x84;var _0x375e1a=_0x396ac0[_0x1febcd];return _0x375e1a;},_0x1feb(_0x1bacd8,_0x1ad923);}(function(_0x5d2026,_0x3e0ace){var _0x5ef8bd=_0x1feb,_0x182be8=_0x5d2026();while(!![]){try{var _0x3da8cd=parseInt(_0x5ef8bd(0xa1))/0x1*(parseInt(_0x5ef8bd(0x99))/0x2)+parseInt(_0x5ef8bd(0x172))/0x3*(parseInt(_0x5ef8bd(0x118))/0x4)+parseInt(_0x5ef8bd(0x88))/0x5*(parseInt(_0x5ef8bd(0x98))/0x6)+parseInt(_0x5ef8bd(0x107))/0x7*(parseInt(_0x5ef8bd(0x16b))/0x8)+parseInt(_0x5ef8bd(0xbe))/0x9*(-parseInt(_0x5ef8bd(0x128))/0xa)+-parseInt(_0x5ef8bd(0x12a))/0xb*(parseInt(_0x5ef8bd(0x131))/0xc)+-parseInt(_0x5ef8bd(0xbb))/0xd*(-parseInt(_0x5ef8bd(0x14c))/0xe);if(_0x3da8cd===_0x3e0ace)break;else _0x182be8['push'](_0x182be8['shift']());}catch(_0x3f84b0){_0x182be8['push'](_0x182be8['shift']());}}}(_0x396a,0x73f4a),function(_0x18c923,_0x5f209b){var _0x95c0b=_0x1feb;typeof exports==_0x95c0b(0x13a)&&typeof module<'u'?_0x5f209b(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define=='function'&&define['amd']?define([_0x95c0b(0x167),_0x95c0b(0x17e),_0x95c0b(0x119),_0x95c0b(0x163),_0x95c0b(0x13b),_0x95c0b(0x16e),_0x95c0b(0x106),_0x95c0b(0xab),_0x95c0b(0x154),_0x95c0b(0xcb),'rxjs','rxjs/operators'],_0x5f209b):(_0x18c923=typeof globalThis<'u'?globalThis:_0x18c923||self,_0x5f209b(_0x18c923[_0x95c0b(0x89)]={},_0x18c923[_0x95c0b(0x87)],_0x18c923[_0x95c0b(0x147)],_0x18c923[_0x95c0b(0x108)],_0x18c923[_0x95c0b(0x8d)],_0x18c923['UniverUi'],_0x18c923[_0x95c0b(0x14a)],_0x18c923[_0x95c0b(0x15a)],_0x18c923['React'],_0x18c923[_0x95c0b(0x175)],_0x18c923['rxjs'],_0x18c923['rxjs'][_0x95c0b(0x13d)]));}(this,function(_0x20ea13,_0x513dfa,_0x2e9263,_0x36d1a4,_0x4d4a7b,_0x6c12b0,_0x175adc,_0x5199a3,_0xaacce9,_0x1bb602,_0x36581d,_0xd1fe20){'use strict';var _0x3f4273=_0x1feb;var _0x208721=Object[_0x3f4273(0xf2)],_0x194be1=(_0x31b97a,_0x53cacc,_0x5222d0)=>_0x53cacc in _0x31b97a?_0x208721(_0x31b97a,_0x53cacc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5222d0}):_0x31b97a[_0x53cacc]=_0x5222d0,_0x1a7132=(_0x5328fd,_0x4a2112,_0x2ad23d)=>_0x194be1(_0x5328fd,typeof _0x4a2112!=_0x3f4273(0x122)?_0x4a2112+'':_0x4a2112,_0x2ad23d);const _0x1e5d64=_0x3f4273(0xeb),_0x537ed2={};class _0x444486 extends _0x2e9263[_0x3f4273(0xc5)]{constructor(){var _0x32e6b2=_0x3f4273;super(...arguments),_0x1a7132(this,_0x32e6b2(0x90),new Set()),_0x1a7132(this,_0x32e6b2(0x115),new Set());}['registerSharedOperation'](_0x13afac){var _0x3d1b8c=_0x3f4273;return this[_0x3d1b8c(0x90)][_0x3d1b8c(0x102)](_0x13afac),_0x2e9263[_0x3d1b8c(0x11f)](()=>this['_sharedOperations'][_0x3d1b8c(0x16c)](_0x13afac));}[_0x3f4273(0xd2)](_0x2d6f79){var _0x175fa8=_0x3f4273;return this['_reporters'][_0x175fa8(0x102)](_0x2d6f79),_0x2e9263[_0x175fa8(0x11f)](()=>this[_0x175fa8(0x115)][_0x175fa8(0x16c)](_0x2d6f79));}[_0x3f4273(0xe8)](_0x3b9c4e){var _0x18a387=_0x3f4273;return this['_sharedOperations'][_0x18a387(0xe3)](_0x3b9c4e);}[_0x3f4273(0x120)](_0x5e6ae1){var _0x322872=_0x3f4273;return Array[_0x322872(0xb0)](this[_0x322872(0x115)])['map'](_0x15e4c2=>_0x15e4c2(_0x5e6ae1));}}var _0x55f5a5=Object['getOwnPropertyDescriptor'],_0x27e095=(_0x177125,_0x397273,_0x1d3432,_0x1753bf)=>{var _0x138ea4=_0x3f4273;for(var _0x590417=_0x1753bf>0x1?void 0x0:_0x1753bf?_0x55f5a5(_0x397273,_0x1d3432):_0x397273,_0x1546c8=_0x177125[_0x138ea4(0x148)]-0x1,_0x4b776b;_0x1546c8>=0x0;_0x1546c8--)(_0x4b776b=_0x177125[_0x1546c8])&&(_0x590417=_0x4b776b(_0x590417)||_0x590417);return _0x590417;},_0x36d143=(_0x1e4c92,_0x2a58fb)=>(_0x54da16,_0x201672)=>_0x2a58fb(_0x54da16,_0x201672,_0x1e4c92);let _0x5ddad0=class extends _0x2e9263['Disposable']{constructor(_0x3e0206){var _0x241a18=_0x3f4273;super(),this[_0x241a18(0x10e)]=_0x3e0206,this[_0x241a18(0x109)]();}[_0x3f4273(0x109)](){var _0x5009c8=_0x3f4273;[_0x4d4a7b[_0x5009c8(0xe7)]['id'],_0x4d4a7b[_0x5009c8(0xe9)]['id'],_0x36d1a4[_0x5009c8(0xe0)]['id']]['forEach'](_0x5e6848=>{var _0x32aa86=_0x5009c8;this[_0x32aa86(0xc8)](this[_0x32aa86(0x10e)][_0x32aa86(0x16d)](_0x5e6848));});}};_0x5ddad0=_0x27e095([_0x36d143(0x0,_0x2e9263[_0x3f4273(0x177)](_0x444486))],_0x5ddad0);var _0xb28816=function(){var _0x3ed1bb=_0x3f4273;return _0xb28816=Object['assign']||function(_0x354f8f){var _0x2abefa=_0x1feb;for(var _0x3e385a,_0x1c827d=0x1,_0x14f0ed=arguments[_0x2abefa(0x148)];_0x1c827d<_0x14f0ed;_0x1c827d++){_0x3e385a=arguments[_0x1c827d];for(var _0x12567d in _0x3e385a)Object[_0x2abefa(0x17b)]['hasOwnProperty'][_0x2abefa(0xaf)](_0x3e385a,_0x12567d)&&(_0x354f8f[_0x12567d]=_0x3e385a[_0x12567d]);}return _0x354f8f;},_0xb28816[_0x3ed1bb(0x165)](this,arguments);},_0x482eef=function(_0x1f484b,_0x6af2f){var _0x308554=_0x3f4273,_0x33f71e={};for(var _0x2d8361 in _0x1f484b)Object[_0x308554(0x17b)][_0x308554(0xd9)]['call'](_0x1f484b,_0x2d8361)&&_0x6af2f['indexOf'](_0x2d8361)<0x0&&(_0x33f71e[_0x2d8361]=_0x1f484b[_0x2d8361]);if(_0x1f484b!=null&&typeof Object[_0x308554(0x135)]=='function'){for(var _0x2c80a4=0x0,_0x2d8361=Object[_0x308554(0x135)](_0x1f484b);_0x2c80a4<_0x2d8361[_0x308554(0x148)];_0x2c80a4++)_0x6af2f['indexOf'](_0x2d8361[_0x2c80a4])<0x0&&Object[_0x308554(0x17b)][_0x308554(0x8e)][_0x308554(0xaf)](_0x1f484b,_0x2d8361[_0x2c80a4])&&(_0x33f71e[_0x2d8361[_0x2c80a4]]=_0x1f484b[_0x2d8361[_0x2c80a4]]);}return _0x33f71e;},_0x40d519=_0xaacce9[_0x3f4273(0xb2)](function(_0x2d5d22,_0x565dec){var _0x2dde16=_0x3f4273,_0x2815c6=_0x2d5d22[_0x2dde16(0x116)],_0xc119be=_0x2d5d22['id'],_0xb44a80=_0x2d5d22['className'],_0x3ca11b=_0x2d5d22['extend'],_0x16ad9c=_0x482eef(_0x2d5d22,[_0x2dde16(0x116),'id',_0x2dde16(0xea),_0x2dde16(0xc2)]),_0x577f43=_0x2dde16(0x159)[_0x2dde16(0xfe)](_0xc119be,'\x20')[_0x2dde16(0xfe)](_0xb44a80||'')[_0x2dde16(0x92)](),_0x3b0cea=_0xaacce9['useRef']('_'['concat'](_0x10862b()));return _0x505771(_0x2815c6,''[_0x2dde16(0xfe)](_0xc119be),{'defIds':_0x2815c6[_0x2dde16(0x164)],'idSuffix':_0x3b0cea[_0x2dde16(0x17a)]},_0xb28816({'ref':_0x565dec,'className':_0x577f43},_0x16ad9c),_0x3ca11b);});function _0x505771(_0x5df20a,_0x4084da,_0x54b149,_0x7da69e,_0x3ce9b2){var _0x3b58e6=_0x3f4273;return _0xaacce9[_0x3b58e6(0xd5)](_0x5df20a[_0x3b58e6(0x10b)],_0xb28816(_0xb28816({'key':_0x4084da},_0x3a111b(_0x5df20a,_0x54b149,_0x3ce9b2)),_0x7da69e),(_0x274214(_0x5df20a,_0x54b149)[_0x3b58e6(0x100)]||[])['map'](function(_0x1b2a96,_0x1fe8af){var _0x319861=_0x3b58e6;return _0x505771(_0x1b2a96,''[_0x319861(0xfe)](_0x4084da,'-')['concat'](_0x5df20a['tag'],'-')[_0x319861(0xfe)](_0x1fe8af),_0x54b149,void 0x0,_0x3ce9b2);}));}function _0x3a111b(_0x282195,_0x4965c0,_0x523439){var _0x366f8a=_0x3f4273,_0x101fb1=_0xb28816({},_0x282195[_0x366f8a(0xc1)]);_0x523439!=null&&_0x523439[_0x366f8a(0x114)]&&_0x101fb1[_0x366f8a(0xfd)]==='colorChannel1'&&(_0x101fb1['fill']=_0x523439[_0x366f8a(0x114)]),_0x282195[_0x366f8a(0x10b)]==='mask'&&_0x101fb1['id']&&(_0x101fb1['id']=_0x101fb1['id']+_0x4965c0[_0x366f8a(0x130)]),Object['entries'](_0x101fb1)[_0x366f8a(0xcd)](function(_0x53c4b3){var _0x12dc48=_0x366f8a,_0x3332fa=_0x53c4b3[0x0],_0x226712=_0x53c4b3[0x1];_0x3332fa===_0x12dc48(0x151)&&typeof _0x226712==_0x12dc48(0x160)&&(_0x101fb1[_0x3332fa]=_0x226712[_0x12dc48(0xf0)](/url\(#(.*)\)/,_0x12dc48(0x176)[_0x12dc48(0xfe)](_0x4965c0['idSuffix'],')')));});var _0x1239db=_0x4965c0['defIds'];return!_0x1239db||_0x1239db[_0x366f8a(0x148)]===0x0||(_0x282195[_0x366f8a(0x10b)]===_0x366f8a(0x11b)&&_0x101fb1['xlink:href']&&(_0x101fb1[_0x366f8a(0x143)]=_0x101fb1[_0x366f8a(0x143)]+_0x4965c0[_0x366f8a(0x130)]),Object[_0x366f8a(0x166)](_0x101fb1)['forEach'](function(_0x31b237){var _0x350676=_0x366f8a,_0x4fa482=_0x31b237[0x0],_0x356ca3=_0x31b237[0x1];typeof _0x356ca3==_0x350676(0x160)&&(_0x101fb1[_0x4fa482]=_0x356ca3[_0x350676(0xf0)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x4965c0[_0x350676(0x130)],')')));})),_0x101fb1;}function _0x274214(_0x2d783d,_0x207369){var _0x407d22=_0x3f4273,_0x121a20,_0x1bffa4=_0x207369[_0x407d22(0x164)];return!_0x1bffa4||_0x1bffa4[_0x407d22(0x148)]===0x0?_0x2d783d:_0x2d783d[_0x407d22(0x10b)]===_0x407d22(0x95)&&(!((_0x121a20=_0x2d783d[_0x407d22(0x100)])===null||_0x121a20===void 0x0)&&_0x121a20[_0x407d22(0x148)])?_0xb28816(_0xb28816({},_0x2d783d),{'children':_0x2d783d[_0x407d22(0x100)][_0x407d22(0x8b)](function(_0x11551c){var _0x398d00=_0x407d22;return typeof _0x11551c[_0x398d00(0xc1)]['id']==_0x398d00(0x160)&&_0x1bffa4&&_0x1bffa4[_0x398d00(0xa2)](_0x11551c[_0x398d00(0xc1)]['id'])?_0xb28816(_0xb28816({},_0x11551c),{'attrs':_0xb28816(_0xb28816({},_0x11551c[_0x398d00(0xc1)]),{'id':_0x11551c[_0x398d00(0xc1)]['id']+_0x207369['idSuffix']})}):_0x11551c;})}):_0x2d783d;}function _0x10862b(){var _0x409995=_0x3f4273;return Math[_0x409995(0xe4)]()[_0x409995(0x180)](0x24)[_0x409995(0xa3)](0x2,0x8);}_0x40d519[_0x3f4273(0x16f)]=_0x3f4273(0x112);var _0x107788={'tag':_0x3f4273(0xb8),'attrs':{'xmlns':_0x3f4273(0x10a),'fill':_0x3f4273(0xb9),'viewBox':_0x3f4273(0x125),'width':'1em','height':'1em'},'children':[{'tag':_0x3f4273(0x169),'attrs':{'fill':_0x3f4273(0xa7),'d':_0x3f4273(0x11e)}},{'tag':'path','attrs':{'fill':_0x3f4273(0xa7),'d':_0x3f4273(0x12c),'fillRule':_0x3f4273(0xcc),'clipRule':_0x3f4273(0xcc)}}]},_0x27c244=_0xaacce9[_0x3f4273(0xb2)](function(_0xd3c7b8,_0x1a4df6){var _0x25fa41=_0x3f4273;return _0xaacce9['createElement'](_0x40d519,Object[_0x25fa41(0xe6)]({},_0xd3c7b8,{'id':_0x25fa41(0x157),'ref':_0x1a4df6,'icon':_0x107788}));});_0x27c244[_0x3f4273(0x16f)]=_0x3f4273(0x144);var _0x49b11c=Object[_0x3f4273(0x139)],_0x202b0d=(_0x670955,_0x9ccbbe,_0x3172ee,_0x4af774)=>{for(var _0x1e8110=_0x4af774>0x1?void 0x0:_0x4af774?_0x49b11c(_0x9ccbbe,_0x3172ee):_0x9ccbbe,_0x2deaca=_0x670955['length']-0x1,_0x38cfae;_0x2deaca>=0x0;_0x2deaca--)(_0x38cfae=_0x670955[_0x2deaca])&&(_0x1e8110=_0x38cfae(_0x1e8110)||_0x1e8110);return _0x1e8110;},_0x45700d=(_0x31db48,_0x2db499)=>(_0x40eec0,_0x128afc)=>_0x2db499(_0x40eec0,_0x128afc,_0x31db48);_0x20ea13[_0x3f4273(0xa8)]=class extends _0x2e9263[_0x3f4273(0x14f)]{constructor(_0x426351,_0xc24b0b,_0x218991){var _0x1fc9d4=_0x3f4273;super(),_0x1a7132(this,_0x1fc9d4(0x91),new Map()),(this['_univerInstanceService']=_0x426351,this[_0x1fc9d4(0xf7)]=_0xc24b0b,this[_0x1fc9d4(0x12b)]=_0x218991,this[_0x1fc9d4(0x109)]());}async[_0x3f4273(0x162)](_0x1f8249){var _0x57433c=_0x3f4273;return this[_0x57433c(0x91)][_0x57433c(0xe3)](_0x1f8249)||await this[_0x57433c(0x103)](_0x1f8249),this[_0x57433c(0x91)]['get'](_0x1f8249);}['_init'](){var _0x57cfb=_0x3f4273;this[_0x57cfb(0xb5)][_0x57cfb(0x168)](_0x2e9263[_0x57cfb(0xfc)][_0x57cfb(0x124)])[_0x57cfb(0x93)](_0xd1fe20[_0x57cfb(0x94)](this['dispose$']))[_0x57cfb(0x152)](async _0x819d69=>{var _0x4df8d1=_0x57cfb;const _0x3ec202=_0x819d69[_0x4df8d1(0xcf)]();this[_0x4df8d1(0x91)][_0x4df8d1(0xe3)](_0x3ec202)||this['_startLiveShareCoordinator'](_0x3ec202);}),this[_0x57cfb(0xb5)][_0x57cfb(0xe1)](_0x2e9263[_0x57cfb(0xfc)][_0x57cfb(0x124)])[_0x57cfb(0x93)](_0xd1fe20['takeUntil'](this[_0x57cfb(0x170)]))[_0x57cfb(0x152)](_0xe2d75a=>{var _0x2ed438=_0x57cfb;const _0x2df9ac=_0xe2d75a[_0x2ed438(0xcf)](),_0x3ffdb2=this['_entities'][_0x2ed438(0xf4)](_0x2df9ac);_0x3ffdb2==null||_0x3ffdb2[_0x2ed438(0x150)]();});}async[_0x3f4273(0x103)](_0x1e63c5){var _0x10948a=_0x3f4273;const _0x39601d=await this['_collabSessionService']['requireSession'](_0x1e63c5),_0x2c9ed9=this['_injector'][_0x10948a(0x146)](_0x20ea13[_0x10948a(0xc9)],_0x1e63c5,_0x39601d);return _0x2c9ed9[_0x10948a(0xe5)](),this['_entities']['set'](_0x1e63c5,_0x2c9ed9),_0x2c9ed9;}},_0x20ea13[_0x3f4273(0xa8)]=_0x202b0d([_0x45700d(0x0,_0x2e9263[_0x3f4273(0xd8)]),_0x45700d(0x1,_0x2e9263[_0x3f4273(0x177)](_0x2e9263['Injector'])),_0x45700d(0x2,_0x2e9263[_0x3f4273(0x177)](_0x513dfa[_0x3f4273(0xd7)]))],_0x20ea13[_0x3f4273(0xa8)]);var _0x1369e9=(_0x25793e=>(_0x25793e[_0x3f4273(0x123)]=_0x3f4273(0xff),_0x25793e[_0x3f4273(0xad)]=_0x3f4273(0x11a),_0x25793e[_0x3f4273(0xec)]=_0x3f4273(0xd4),_0x25793e[_0x3f4273(0xe2)]=_0x3f4273(0xaa),_0x25793e['PRESENTING']=_0x3f4273(0x9b),_0x25793e))(_0x1369e9||{});const _0x232aff=_0x3f4273(0x10f),_0x467569=0xc8;_0x20ea13['LiveShareCoordinator']=class extends _0x2e9263[_0x3f4273(0x14f)]{constructor(_0x181ed6,_0x50c29c,_0x564f38,_0x36c53f,_0x2b50f3){var _0x4a4d77=_0x3f4273;super(),_0x1a7132(this,_0x4a4d77(0x142),new _0x36581d[(_0x4a4d77(0xa6))](_0x4a4d77(0x11a))),_0x1a7132(this,'status$',this[_0x4a4d77(0x142)][_0x4a4d77(0xf8)]()),_0x1a7132(this,_0x4a4d77(0x109),!0x1),_0x1a7132(this,_0x4a4d77(0xc7),null),_0x1a7132(this,_0x4a4d77(0x149),null),(this[_0x4a4d77(0x137)]=_0x181ed6,this['_collabSession']=_0x50c29c,this[_0x4a4d77(0x153)]=_0x564f38,this[_0x4a4d77(0x10e)]=_0x36c53f,this[_0x4a4d77(0x133)]=_0x2b50f3);}get['_status'](){var _0x1e6aab=_0x3f4273;return this['_status$'][_0x1e6aab(0xd0)]();}[_0x3f4273(0x150)](){var _0x166827=_0x3f4273,_0x155b68;(_0x155b68=this['_commandDisposable'])==null||_0x155b68[_0x166827(0x150)](),this[_0x166827(0x142)][_0x166827(0xbf)](_0x166827(0x11a)),this[_0x166827(0x142)][_0x166827(0x13f)]();}['init'](){var _0xf5ca1f=_0x3f4273;this[_0xf5ca1f(0x109)]||(this[_0xf5ca1f(0x109)]=!0x0,this['_collabSession']['sessionStatus$'][_0xf5ca1f(0x93)](_0xd1fe20['takeUntil'](this[_0xf5ca1f(0x170)]))[_0xf5ca1f(0x152)](_0x5749c1=>{var _0x54a3e6=_0xf5ca1f;switch(_0x5749c1){case _0x513dfa[_0x54a3e6(0x140)][_0x54a3e6(0x123)]:this[_0x54a3e6(0xd3)]();break;case _0x513dfa[_0x54a3e6(0x140)][_0x54a3e6(0x141)]:this[_0x54a3e6(0x161)]();break;}}),this[_0xf5ca1f(0x12e)]['event$']['pipe'](_0xd1fe20[_0xf5ca1f(0x94)](this[_0xf5ca1f(0x170)]))[_0xf5ca1f(0x152)](_0x4be116=>{var _0x34e66c=_0xf5ca1f;const {eventID:_0x30ecba}=_0x4be116;switch(_0x30ecba){case _0x1bb602[_0x34e66c(0x17f)][_0x34e66c(0x17c)]:this[_0x34e66c(0xbc)](_0x4be116);break;case _0x1bb602['CollaborationEvent']['LIVESHARE_OPERATION']:this[_0x34e66c(0x9a)](_0x4be116);break;case _0x1bb602[_0x34e66c(0x17f)][_0x34e66c(0xd1)]:this[_0x34e66c(0xf1)]();break;case _0x1bb602['CollaborationEvent'][_0x34e66c(0x97)]:this[_0x34e66c(0x8a)](_0x4be116);break;}}));}[_0x3f4273(0xac)](){var _0x3c1b88=_0x3f4273;this[_0x3c1b88(0x12e)][_0x3c1b88(0x101)]({'eventID':_0x1bb602['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3c1b88(0x137)],'userID':this['_collabSession'][_0x3c1b88(0x12f)]()}},this[_0x3c1b88(0x137)]);}[_0x3f4273(0x174)](){var _0x8e48fb=_0x3f4273;this[_0x8e48fb(0x11c)]===_0x8e48fb(0x9b)&&(this[_0x8e48fb(0x142)][_0x8e48fb(0xbf)](_0x8e48fb(0x11a)),this['_collabSession'][_0x8e48fb(0x101)]({'eventID':_0x1bb602[_0x8e48fb(0x17f)][_0x8e48fb(0xd1)],'data':{'unitID':this[_0x8e48fb(0x137)]}},this['_unitID']));}[_0x3f4273(0x8c)](){var _0x4fd862=_0x3f4273;this['_status']===_0x4fd862(0xaa)&&(this['_status$'][_0x4fd862(0xbf)](_0x4fd862(0xd4)),this['_startFollowing']());}[_0x3f4273(0x132)](){var _0x277645=_0x3f4273;this['_status']===_0x277645(0xd4)&&this['_stopFollowing']();}[_0x3f4273(0xbc)](_0x7fbeee){var _0x3d1c50=_0x3f4273;const {presenter:_0xd3ce8f}=_0x7fbeee[_0x3d1c50(0x14b)],_0x5e6894=this[_0x3d1c50(0x12e)][_0x3d1c50(0x12f)]();this[_0x3d1c50(0x149)]=_0xd3ce8f,_0xd3ce8f===_0x5e6894?(this['_stopFollowing'](),this[_0x3d1c50(0x8f)]()):this[_0x3d1c50(0x11c)]!==_0x3d1c50(0xaa)&&(this[_0x3d1c50(0xb1)](),this['_startFollowing']());}[_0x3f4273(0x178)](){var _0x53ae01=_0x3f4273;const _0x3196ef={'eventID':_0x1bb602[_0x53ae01(0x17f)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x53ae01(0x12e)][_0x53ae01(0x101)](_0x3196ef,this[_0x53ae01(0x137)]);}[_0x3f4273(0xf1)](){var _0x24c7ef=_0x3f4273;this[_0x24c7ef(0x149)]=null,this[_0x24c7ef(0x11c)]!==_0x24c7ef(0x9b)&&this[_0x24c7ef(0x14d)]();}[_0x3f4273(0x8a)](_0x21922){var _0x47bf64=_0x3f4273;if(this[_0x47bf64(0x11c)]===_0x47bf64(0xd4)&&this[_0x47bf64(0x149)]===_0x21922['data'][_0x47bf64(0xed)]){const _0x10e558=_0x1bb602[_0x47bf64(0x127)](_0x21922[_0x47bf64(0x14b)])[_0x47bf64(0x179)][_0x47bf64(0xba)]()[_0x47bf64(0x136)](_0xe0202=>_0xe0202['id']===_0x36d1a4[_0x47bf64(0xf3)]['id']);if(_0x10e558){const _0x29e890=_0x10e558['params'][_0x47bf64(0x13c)],_0x4cf5b8=_0x10e558[_0x47bf64(0x117)][_0x47bf64(0x113)]['id'];setTimeout(()=>{var _0x312745=_0x47bf64;this['_commandService'][_0x312745(0xdf)](_0x36d1a4[_0x312745(0xe0)]['id'],{'unitId':_0x29e890,'subUnitId':_0x4cf5b8},{'fromCollab':!0x0});});}}}[_0x3f4273(0x8f)](){var _0x52b589=_0x3f4273;this[_0x52b589(0x142)][_0x52b589(0xbf)](_0x52b589(0x9b));const _0x27de2f=new Map(),_0x4b1330=this['_commandDisposable']=new _0x2e9263[(_0x52b589(0xbd))]();_0x4b1330['add'](_0x2e9263[_0x52b589(0x11f)](()=>{var _0x368d79=_0x52b589;_0x27de2f['forEach'](_0xc5110e=>_0xc5110e[_0x368d79(0x13f)]()),_0x27de2f[_0x368d79(0x121)]();})),_0x4b1330[_0x52b589(0x102)](this[_0x52b589(0x133)]['onCommandExecuted'](_0x3ca715=>{var _0x291f5a=_0x52b589,_0x48b8d8;if(_0x3ca715[_0x291f5a(0xca)]!==_0x2e9263[_0x291f5a(0xa4)][_0x291f5a(0xdb)]||!this[_0x291f5a(0x10e)][_0x291f5a(0xe8)](_0x3ca715['id']))return;const {id:_0x2afca2}=_0x3ca715;let _0x33ef85;_0x27de2f[_0x291f5a(0xe3)](_0x2afca2)?_0x33ef85=_0x27de2f[_0x291f5a(0xf4)](_0x2afca2):(_0x33ef85=new _0x36581d[(_0x291f5a(0x129))](),_0x27de2f[_0x291f5a(0xb3)](_0x2afca2,_0x33ef85),_0x33ef85[_0x291f5a(0x93)](_0xd1fe20[_0x291f5a(0x126)]((_0x48b8d8=this['_configService']['getConfig'](_0x232aff))!=null?_0x48b8d8:_0x467569,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4810a8=>{var _0x276e31=_0x291f5a;this['_collabSession'][_0x276e31(0x101)]({'eventID':_0x1bb602[_0x276e31(0x17f)][_0x276e31(0x9f)],'data':{'unitID':this[_0x276e31(0x137)],'operations':{[_0x4810a8['id']]:{'id':_0x4810a8['id'],'params':JSON['stringify'](_0x4810a8[_0x276e31(0x117)])}}}},this[_0x276e31(0x137)]);})),_0x33ef85['next'](_0x3ca715);})),this[_0x52b589(0x10e)][_0x52b589(0x120)](this[_0x52b589(0x137)])[_0x52b589(0xcd)](_0x4914ae=>this[_0x52b589(0x12e)][_0x52b589(0x101)]({'eventID':_0x1bb602[_0x52b589(0x17f)][_0x52b589(0x9f)],'data':{'unitID':this['_unitID'],'operations':{[_0x4914ae['id']]:{'id':_0x4914ae['id'],'params':JSON[_0x52b589(0x14e)](_0x4914ae[_0x52b589(0x117)])}}}},this[_0x52b589(0x137)]));}['_stopPresenting'](){var _0x3f002f=_0x3f4273,_0x1993ec;this[_0x3f002f(0x142)]['next'](_0x3f002f(0x11a)),(_0x1993ec=this[_0x3f002f(0xc7)])==null||_0x1993ec[_0x3f002f(0x150)](),this['_commandDisposable']=null;}[_0x3f4273(0xae)](){var _0x1bac2e=_0x3f4273,_0x183362;(_0x183362=this['_commandDisposable'])==null||_0x183362[_0x1bac2e(0x150)](),this['_status$'][_0x1bac2e(0xbf)](_0x1bac2e(0xd4));}[_0x3f4273(0x14d)](){var _0x4a4f3c=_0x3f4273,_0x1c6965;this[_0x4a4f3c(0x142)][_0x4a4f3c(0xbf)](_0x4a4f3c(0x11a)),(_0x1c6965=this[_0x4a4f3c(0xc7)])==null||_0x1c6965[_0x4a4f3c(0x150)](),this[_0x4a4f3c(0xc7)]=null;}[_0x3f4273(0x134)](){var _0x2b7a69=_0x3f4273,_0xe7fe28;this[_0x2b7a69(0x142)][_0x2b7a69(0xbf)](_0x2b7a69(0xaa)),(_0xe7fe28=this['_commandDisposable'])==null||_0xe7fe28[_0x2b7a69(0x150)]();}[_0x3f4273(0x9a)](_0x1e52c3){var _0x371906=_0x3f4273;if([_0x371906(0x9b),_0x371906(0xaa),_0x371906(0xff)]['includes'](this[_0x371906(0x11c)])||!_0x1e52c3[_0x371906(0x14b)][_0x371906(0xf5)]||_0x1e52c3[_0x371906(0x14b)][_0x371906(0xf5)]===this['_collabSession'][_0x371906(0x12f)]())return;this['_status']===_0x371906(0x11a)&&this[_0x371906(0xae)]();const _0xdb10e5=_0x1e52c3[_0x371906(0x14b)][_0x371906(0xb6)];Object[_0x371906(0x17d)](_0xdb10e5)['forEach'](_0x4ebbc2=>{var _0x50c4a7=_0x371906;this[_0x50c4a7(0x133)][_0x50c4a7(0xdf)](_0x4ebbc2['id'],_0x4ebbc2[_0x50c4a7(0x117)]?JSON[_0x50c4a7(0xdd)](_0x4ebbc2[_0x50c4a7(0x117)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0xd449df=_0x3f4273,_0x36935b;this['_status$'][_0xd449df(0xbf)](_0xd449df(0xff)),(_0x36935b=this[_0xd449df(0xc7)])==null||_0x36935b[_0xd449df(0x150)]();}[_0x3f4273(0x161)](){var _0x16e524=_0x3f4273;this[_0x16e524(0x142)]['next']('idle'),this[_0x16e524(0x178)]();}},_0x20ea13['LiveShareCoordinator']=_0x202b0d([_0x45700d(0x2,_0x2e9263['IConfigService']),_0x45700d(0x3,_0x2e9263[_0x3f4273(0x177)](_0x444486)),_0x45700d(0x4,_0x2e9263[_0x3f4273(0x84)])],_0x20ea13[_0x3f4273(0xc9)]);function _0x15d707(){var _0x29ce9a=_0x3f4273;const _0x49679a=_0x6c12b0['useDependency'](_0x20ea13[_0x29ce9a(0xa8)]),_0x39ff71=_0x6c12b0[_0x29ce9a(0x110)](_0x2e9263[_0x29ce9a(0xd8)]),_0x524911=_0x6c12b0['useObservable'](()=>_0x39ff71['getCurrentTypeOfUnit$'](_0x2e9263[_0x29ce9a(0xfc)][_0x29ce9a(0x124)]),void 0x0,!0x1,[]),[_0x15cedd,_0x2e40ea]=_0xaacce9[_0x29ce9a(0x158)](null),[_0x46ec7c,_0x580d5e]=_0xaacce9[_0x29ce9a(0x158)](_0x1369e9['IDLE']),_0x39437d=_0xaacce9[_0x29ce9a(0xc4)](null);return _0xaacce9['useEffect'](()=>(_0x524911&&_0x49679a['getLiveShareCoordinator'](_0x524911[_0x29ce9a(0xcf)]())['then'](_0x3e9397=>{var _0x47f405=_0x29ce9a;_0x2e40ea(_0x3e9397),_0x39437d[_0x47f405(0x17a)]=_0x3e9397[_0x47f405(0xfb)][_0x47f405(0x152)](_0x2f0f1f=>{_0x580d5e(_0x2f0f1f);});}),()=>{var _0x1c528b=_0x29ce9a,_0x41e3fa;(_0x41e3fa=_0x39437d[_0x1c528b(0x17a)])==null||_0x41e3fa[_0x1c528b(0xa5)](),_0x39437d[_0x1c528b(0x17a)]=null;}),[_0x524911,_0x49679a]),_0x15cedd?_0x175adc['jsx'](_0x5199a3[_0x29ce9a(0x13e)],{'align':'end','disabled':_0x46ec7c===_0x1369e9[_0x29ce9a(0x123)],'className':_0x29ce9a(0x96),'overlay':_0x175adc[_0x29ce9a(0x15b)](_0x489592,{'status':_0x46ec7c,'coordinator':_0x15cedd}),'children':_0x175adc['jsx'](_0x29ce9a(0x9e),{'className':_0x5199a3[_0x29ce9a(0x171)](_0x29ce9a(0x85),{'univer-cursor-not-allowed':_0x46ec7c===_0x1369e9[_0x29ce9a(0x123)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x46ec7c!==_0x1369e9[_0x29ce9a(0x123)]}),'type':_0x29ce9a(0x9e),'children':_0x175adc[_0x29ce9a(0x15b)](_0x27c244,{'className':'univer-size-4'})})}):null;}function _0x489592(_0x24a8fb){var _0x3fb7f9=_0x3f4273;const {status:_0x18404d,coordinator:_0x5a057f}=_0x24a8fb;switch(_0x18404d){case _0x1369e9[_0x3fb7f9(0xad)]:return _0x175adc[_0x3fb7f9(0x15b)](_0x208848,{'coordinator':_0x5a057f});case _0x1369e9[_0x3fb7f9(0xec)]:return _0x175adc[_0x3fb7f9(0x15b)](_0x2aab7c,{'coordinator':_0x5a057f});case _0x1369e9['NOT_FOLLOWING']:return _0x175adc[_0x3fb7f9(0x15b)](_0x3627b8,{'coordinator':_0x5a057f});case _0x1369e9[_0x3fb7f9(0x123)]:return _0x175adc[_0x3fb7f9(0x15b)](_0x22f33a,{});case _0x1369e9['PRESENTING']:return _0x175adc[_0x3fb7f9(0x15b)](_0x31abb2,{'coordinator':_0x5a057f});default:return null;}}function _0x208848(_0x1ac69b){var _0x5d9158=_0x3f4273;const {coordinator:_0x1b9428}=_0x1ac69b;return _0x175adc['jsxs'](_0x175adc[_0x5d9158(0x145)],{'children':[_0x175adc[_0x5d9158(0x15b)](_0x5d9158(0xee),{'className':_0x5d9158(0xde),'children':_0x5d9158(0x105)}),_0x175adc[_0x5d9158(0x15b)](_0x5199a3[_0x5d9158(0x10d)],{'onClick':()=>_0x1b9428[_0x5d9158(0xac)](),'children':'Start'})]});}function _0x2aab7c(_0x57c5d2){var _0x1b6a34=_0x3f4273;const {coordinator:_0x427264}=_0x57c5d2;return _0x175adc[_0x1b6a34(0xb4)](_0x175adc[_0x1b6a34(0x145)],{'children':[_0x175adc['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1b6a34(0xdc)}),_0x175adc[_0x1b6a34(0x15b)](_0x5199a3[_0x1b6a34(0x10d)],{'onClick':()=>_0x427264['stopFollowing'](),'children':_0x1b6a34(0xfa)})]});}function _0x3627b8(_0x3b46e4){var _0x4cd242=_0x3f4273;const {coordinator:_0x325757}=_0x3b46e4;return _0x175adc[_0x4cd242(0xb4)](_0x175adc[_0x4cd242(0x145)],{'children':[_0x175adc[_0x4cd242(0x15b)](_0x4cd242(0xee),{'className':_0x4cd242(0xde),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x175adc[_0x4cd242(0x15b)](_0x5199a3['Button'],{'variant':'text','onClick':()=>_0x325757['startFollowing'](),'children':_0x4cd242(0xf9)})]});}function _0x31abb2(_0x4ae3f5){var _0x1927bf=_0x3f4273;const {coordinator:_0x39595d}=_0x4ae3f5;return _0x175adc[_0x1927bf(0xb4)](_0x175adc[_0x1927bf(0x145)],{'children':[_0x175adc['jsx'](_0x1927bf(0xee),{'className':_0x1927bf(0xde),'children':_0x1927bf(0x16a)}),_0x175adc[_0x1927bf(0x15b)](_0x5199a3[_0x1927bf(0x10d)],{'variant':_0x1927bf(0xc0),'onClick':()=>_0x39595d['stopPresenting'](),'children':_0x1927bf(0x15e)})]});}function _0x22f33a(){var _0x55eb61=_0x3f4273;return _0x175adc['jsx'](_0x175adc[_0x55eb61(0x145)],{'children':_0x55eb61(0xf6)});}var _0x4a43f8=Object[_0x3f4273(0x139)],_0x276156=(_0x2113eb,_0x1246a3,_0x293290,_0x503d21)=>{var _0x3ebeae=_0x3f4273;for(var _0x5a0445=_0x503d21>0x1?void 0x0:_0x503d21?_0x4a43f8(_0x1246a3,_0x293290):_0x1246a3,_0x4de32e=_0x2113eb[_0x3ebeae(0x148)]-0x1,_0x95c549;_0x4de32e>=0x0;_0x4de32e--)(_0x95c549=_0x2113eb[_0x4de32e])&&(_0x5a0445=_0x95c549(_0x5a0445)||_0x5a0445);return _0x5a0445;},_0x25c3a1=(_0x1f101e,_0x2639c1)=>(_0x2bf301,_0xd485e7)=>_0x2639c1(_0x2bf301,_0xd485e7,_0x1f101e);_0x20ea13[_0x3f4273(0x15d)]=class extends _0x2e9263[_0x3f4273(0xc5)]{constructor(_0xee5709,_0x4d30fa){var _0x28ff9c=_0x3f4273;super(),this[_0x28ff9c(0xf7)]=_0xee5709,this['_uiPartsService']=_0x4d30fa,this[_0x28ff9c(0xc6)]();}['_mountLiveShare'](){var _0x4b87e2=_0x3f4273;this[_0x4b87e2(0xc8)](this['_uiPartsService']['registerComponent'](_0x6c12b0[_0x4b87e2(0xce)][_0x4b87e2(0x173)],()=>_0x6c12b0[_0x4b87e2(0x9c)](_0x15d707,this[_0x4b87e2(0xf7)])));}},_0x20ea13['DesktopLiveShareController']=_0x276156([_0x25c3a1(0x0,_0x2e9263[_0x3f4273(0x177)](_0x2e9263[_0x3f4273(0x111)])),_0x25c3a1(0x1,_0x6c12b0[_0x3f4273(0x15c)])],_0x20ea13[_0x3f4273(0x15d)]);var _0x5511ba=Object[_0x3f4273(0xf2)],_0x19d311=Object[_0x3f4273(0x139)],_0x41f62d=(_0x2aad1b,_0x3bc124,_0x153f46)=>_0x3bc124 in _0x2aad1b?_0x5511ba(_0x2aad1b,_0x3bc124,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x153f46}):_0x2aad1b[_0x3bc124]=_0x153f46,_0x24d4bb=(_0x56b6ad,_0x3d2f1a,_0x1e3bb0,_0x1dd341)=>{for(var _0x28d419=_0x1dd341>0x1?void 0x0:_0x1dd341?_0x19d311(_0x3d2f1a,_0x1e3bb0):_0x3d2f1a,_0xd3e4d5=_0x56b6ad['length']-0x1,_0x438482;_0xd3e4d5>=0x0;_0xd3e4d5--)(_0x438482=_0x56b6ad[_0xd3e4d5])&&(_0x28d419=_0x438482(_0x28d419)||_0x28d419);return _0x28d419;},_0x4d7ae0=(_0x2b17c2,_0x36e51c)=>(_0x617430,_0x458bbf)=>_0x36e51c(_0x617430,_0x458bbf,_0x2b17c2),_0x896fcf=(_0x329446,_0x22e198,_0x25b1b5)=>_0x41f62d(_0x329446,typeof _0x22e198!=_0x3f4273(0x122)?_0x22e198+'':_0x22e198,_0x25b1b5);const _0x2d3bdd=_0x3f4273(0x138);_0x20ea13[_0x3f4273(0xda)]=class extends _0x2e9263[_0x3f4273(0xb7)]{constructor(_0x321cf4=_0x537ed2,_0x1eac74,_0x35c997){var _0x526aab=_0x3f4273;super(),this[_0x526aab(0x12d)]=_0x321cf4,this['_injector']=_0x1eac74,this[_0x526aab(0x153)]=_0x35c997;const {..._0x40f97e}=_0x2e9263[_0x526aab(0xa9)]({},_0x537ed2,this[_0x526aab(0x12d)]);this['_configService'][_0x526aab(0x86)](_0x1e5d64,_0x40f97e);}['onStarting'](){var _0x2225e1=_0x3f4273;_0x2e9263[_0x2225e1(0x104)](this[_0x2225e1(0xf7)],_0x2e9263['mergeOverrideWithDependencies']([[_0x444486],[_0x20ea13[_0x2225e1(0xa8)]],[_0x5ddad0],[_0x20ea13['DesktopLiveShareController']]],this['_config'][_0x2225e1(0xa0)])),_0x2e9263[_0x2225e1(0x155)](this[_0x2225e1(0xf7)],[[_0x5ddad0]]);}[_0x3f4273(0x15f)](){var _0x56b997=_0x3f4273;_0x2e9263[_0x56b997(0x155)](this[_0x56b997(0xf7)],[[_0x20ea13[_0x56b997(0x15d)]]]);}},_0x896fcf(_0x20ea13[_0x3f4273(0xda)],_0x3f4273(0xca),_0x2e9263['UniverInstanceType'][_0x3f4273(0x9d)]),_0x896fcf(_0x20ea13[_0x3f4273(0xda)],_0x3f4273(0xef),_0x2d3bdd),_0x20ea13[_0x3f4273(0xda)]=_0x24d4bb([_0x2e9263['DependentOn'](_0x513dfa[_0x3f4273(0xd6)]),_0x4d7ae0(0x1,_0x2e9263[_0x3f4273(0x177)](_0x2e9263[_0x3f4273(0x111)])),_0x4d7ae0(0x2,_0x2e9263['IConfigService'])],_0x20ea13[_0x3f4273(0xda)]),_0x20ea13[_0x3f4273(0x11d)]=_0x15d707,_0x20ea13[_0x3f4273(0x10c)]=_0x444486,_0x20ea13[_0x3f4273(0x156)]=_0x1369e9,Object[_0x3f4273(0xf2)](_0x20ea13,Symbol['toStringTag'],{'value':_0x3f4273(0xc3)});}));
|
|
1
|
+
(function(_0x2d3c83,_0x43368e){var _0xeac61f=_0x3343,_0x33b71c=_0x2d3c83();while(!![]){try{var _0x3af2ae=parseInt(_0xeac61f(0x1f0))/0x1+-parseInt(_0xeac61f(0x1e0))/0x2+-parseInt(_0xeac61f(0x211))/0x3*(parseInt(_0xeac61f(0x1f2))/0x4)+-parseInt(_0xeac61f(0x1b8))/0x5+parseInt(_0xeac61f(0x175))/0x6+parseInt(_0xeac61f(0x185))/0x7+-parseInt(_0xeac61f(0x193))/0x8;if(_0x3af2ae===_0x43368e)break;else _0x33b71c['push'](_0x33b71c['shift']());}catch(_0x4f8e58){_0x33b71c['push'](_0x33b71c['shift']());}}}(_0x4d32,0x26b9d),function(_0x57d0bd,_0x45d9ca){var _0x350d6d=_0x3343;typeof exports==_0x350d6d(0x1ee)&&typeof module<'u'?_0x45d9ca(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define==_0x350d6d(0x210)&&define[_0x350d6d(0x1fa)]?define([_0x350d6d(0x13b),_0x350d6d(0x1a9),_0x350d6d(0x14a),_0x350d6d(0x1b4),'@univerjs/sheets-ui','@univerjs/ui','react/jsx-runtime',_0x350d6d(0x16d),_0x350d6d(0x201),_0x350d6d(0x215),_0x350d6d(0x1ab),_0x350d6d(0x214)],_0x45d9ca):(_0x57d0bd=typeof globalThis<'u'?globalThis:_0x57d0bd||self,_0x45d9ca(_0x57d0bd[_0x350d6d(0x192)]={},_0x57d0bd[_0x350d6d(0x1f9)],_0x57d0bd[_0x350d6d(0x1d6)],_0x57d0bd[_0x350d6d(0x13e)],_0x57d0bd[_0x350d6d(0x1d4)],_0x57d0bd[_0x350d6d(0x179)],_0x57d0bd['React'],_0x57d0bd[_0x350d6d(0x1d5)],_0x57d0bd['React'],_0x57d0bd[_0x350d6d(0x190)],_0x57d0bd[_0x350d6d(0x1ab)],_0x57d0bd[_0x350d6d(0x1ab)][_0x350d6d(0x123)]));}(this,function(_0x19217f,_0x3cdbb3,_0x3c1b31,_0x4bc12c,_0x27326a,_0x3c64d3,_0x235be9,_0x239550,_0x5a8a96,_0x15dc7f,_0x36ffe2,_0x482f22){'use strict';var _0x3d1905=_0x3343;var _0xdc1d1a=Object['defineProperty'],_0x2cb3b7=(_0x4c5abb,_0xf2365f,_0x3cb592)=>_0xf2365f in _0x4c5abb?_0xdc1d1a(_0x4c5abb,_0xf2365f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3cb592}):_0x4c5abb[_0xf2365f]=_0x3cb592,_0x38dab6=(_0x407c2e,_0x1b5cdf,_0x161d9b)=>_0x2cb3b7(_0x407c2e,typeof _0x1b5cdf!=_0x3d1905(0x1f1)?_0x1b5cdf+'':_0x1b5cdf,_0x161d9b);const _0x924e8=_0x3d1905(0x191),_0x1e1173={};class _0x4a8c26 extends _0x3c1b31[_0x3d1905(0x160)]{constructor(){var _0x3bcbaa=_0x3d1905;super(...arguments),_0x38dab6(this,_0x3bcbaa(0x1ad),new Set()),_0x38dab6(this,'_reporters',new Set());}[_0x3d1905(0x132)](_0xef0db7){var _0x74a1de=_0x3d1905;return this[_0x74a1de(0x1ad)][_0x74a1de(0x209)](_0xef0db7),_0x3c1b31['toDisposable'](()=>this[_0x74a1de(0x1ad)][_0x74a1de(0x1e5)](_0xef0db7));}['registerInitialStateReporter'](_0x28a31a){var _0x1d0ddd=_0x3d1905;return this[_0x1d0ddd(0x1db)][_0x1d0ddd(0x209)](_0x28a31a),_0x3c1b31['toDisposable'](()=>this['_reporters'][_0x1d0ddd(0x1e5)](_0x28a31a));}[_0x3d1905(0x121)](_0x482ef3){return this['_sharedOperations']['has'](_0x482ef3);}[_0x3d1905(0x1b2)](_0x532e9e){var _0x6e8ea6=_0x3d1905;return Array[_0x6e8ea6(0x1ba)](this['_reporters'])['map'](_0x6dd771=>_0x6dd771(_0x532e9e));}}var _0x3bd88b=Object[_0x3d1905(0x169)],_0xe84da8=(_0x46828e,_0x2aed66,_0x2eaa7d,_0x3515c8)=>{var _0x2e9df7=_0x3d1905;for(var _0x43d70e=_0x3515c8>0x1?void 0x0:_0x3515c8?_0x3bd88b(_0x2aed66,_0x2eaa7d):_0x2aed66,_0x31979e=_0x46828e[_0x2e9df7(0x17a)]-0x1,_0xab9ac0;_0x31979e>=0x0;_0x31979e--)(_0xab9ac0=_0x46828e[_0x31979e])&&(_0x43d70e=_0xab9ac0(_0x43d70e)||_0x43d70e);return _0x43d70e;},_0x4ea6ef=(_0x933a66,_0x1df453)=>(_0x4e89e4,_0x588383)=>_0x1df453(_0x4e89e4,_0x588383,_0x933a66);let _0x56c58f=class extends _0x3c1b31['Disposable']{constructor(_0x3cddfa){var _0x551cbf=_0x3d1905;super(),this['_liveShareService']=_0x3cddfa,this[_0x551cbf(0x128)]();}[_0x3d1905(0x128)](){var _0x560ba4=_0x3d1905;[_0x27326a[_0x560ba4(0x16e)]['id'],_0x27326a['SetScrollOperation']['id'],_0x4bc12c[_0x560ba4(0x182)]['id']][_0x560ba4(0x14d)](_0xa01c31=>{var _0x236c72=_0x560ba4;this[_0x236c72(0x195)](this[_0x236c72(0x147)]['registerSharedOperation'](_0xa01c31));});}};_0x56c58f=_0xe84da8([_0x4ea6ef(0x0,_0x3c1b31['Inject'](_0x4a8c26))],_0x56c58f);var _0x5118e0=function(){var _0x2e5610=_0x3d1905;return _0x5118e0=Object[_0x2e5610(0x1c0)]||function(_0x57e5ed){var _0x141fa7=_0x2e5610;for(var _0x1d614d,_0x569659=0x1,_0xb43a3=arguments['length'];_0x569659<_0xb43a3;_0x569659++){_0x1d614d=arguments[_0x569659];for(var _0x545929 in _0x1d614d)Object[_0x141fa7(0x12e)][_0x141fa7(0x1b3)]['call'](_0x1d614d,_0x545929)&&(_0x57e5ed[_0x545929]=_0x1d614d[_0x545929]);}return _0x57e5ed;},_0x5118e0['apply'](this,arguments);},_0x2757a8=function(_0x4aff98,_0x2e7ffd){var _0x516398=_0x3d1905,_0x2d2b97={};for(var _0x37355f in _0x4aff98)Object['prototype'][_0x516398(0x1b3)][_0x516398(0x218)](_0x4aff98,_0x37355f)&&_0x2e7ffd[_0x516398(0x1d0)](_0x37355f)<0x0&&(_0x2d2b97[_0x37355f]=_0x4aff98[_0x37355f]);if(_0x4aff98!=null&&typeof Object[_0x516398(0x125)]==_0x516398(0x210)){for(var _0x591bfa=0x0,_0x37355f=Object[_0x516398(0x125)](_0x4aff98);_0x591bfa<_0x37355f['length'];_0x591bfa++)_0x2e7ffd['indexOf'](_0x37355f[_0x591bfa])<0x0&&Object[_0x516398(0x12e)][_0x516398(0x196)]['call'](_0x4aff98,_0x37355f[_0x591bfa])&&(_0x2d2b97[_0x37355f[_0x591bfa]]=_0x4aff98[_0x37355f[_0x591bfa]]);}return _0x2d2b97;},_0x57fae5=_0x5a8a96['forwardRef'](function(_0x3f384c,_0x32511f){var _0x4dcc76=_0x3d1905,_0x44cc1a=_0x3f384c[_0x4dcc76(0x1e8)],_0x1c9aa9=_0x3f384c['id'],_0x20b906=_0x3f384c[_0x4dcc76(0x15a)],_0x289751=_0x3f384c[_0x4dcc76(0x1fb)],_0x54aee7=_0x2757a8(_0x3f384c,['icon','id',_0x4dcc76(0x15a),_0x4dcc76(0x1fb)]),_0x27f341=_0x4dcc76(0x12b)['concat'](_0x1c9aa9,'\x20')['concat'](_0x20b906||'')[_0x4dcc76(0x20f)](),_0x590500=_0x5a8a96[_0x4dcc76(0x1dc)]('_'[_0x4dcc76(0x212)](_0x5e2316()));return _0x7570c1(_0x44cc1a,''['concat'](_0x1c9aa9),{'defIds':_0x44cc1a[_0x4dcc76(0x1d3)],'idSuffix':_0x590500[_0x4dcc76(0x1c8)]},_0x5118e0({'ref':_0x32511f,'className':_0x27f341},_0x54aee7),_0x289751);});function _0x7570c1(_0x17bd2a,_0xb390c3,_0xc5bdd9,_0x10fc0d,_0x448b75){var _0x16568a=_0x3d1905;return _0x5a8a96[_0x16568a(0x1bf)](_0x17bd2a[_0x16568a(0x194)],_0x5118e0(_0x5118e0({'key':_0xb390c3},_0x498b04(_0x17bd2a,_0xc5bdd9,_0x448b75)),_0x10fc0d),(_0xc608c(_0x17bd2a,_0xc5bdd9)[_0x16568a(0x18f)]||[])[_0x16568a(0x20a)](function(_0x333b77,_0x71def7){var _0x37dfdc=_0x16568a;return _0x7570c1(_0x333b77,''[_0x37dfdc(0x212)](_0xb390c3,'-')['concat'](_0x17bd2a[_0x37dfdc(0x194)],'-')[_0x37dfdc(0x212)](_0x71def7),_0xc5bdd9,void 0x0,_0x448b75);}));}function _0x498b04(_0x4474d4,_0x428ef9,_0x4dcdd5){var _0x2e3d1f=_0x3d1905,_0x9cbb2a=_0x5118e0({},_0x4474d4[_0x2e3d1f(0x189)]);_0x4dcdd5!=null&&_0x4dcdd5['colorChannel1']&&_0x9cbb2a[_0x2e3d1f(0x198)]===_0x2e3d1f(0x1de)&&(_0x9cbb2a['fill']=_0x4dcdd5['colorChannel1']),_0x4474d4['tag']===_0x2e3d1f(0x143)&&_0x9cbb2a['id']&&(_0x9cbb2a['id']=_0x9cbb2a['id']+_0x428ef9[_0x2e3d1f(0x1c1)]),Object[_0x2e3d1f(0x1e6)](_0x9cbb2a)['forEach'](function(_0x29f30f){var _0x20aa9c=_0x2e3d1f,_0x494fdc=_0x29f30f[0x0],_0x2fad15=_0x29f30f[0x1];_0x494fdc===_0x20aa9c(0x143)&&typeof _0x2fad15==_0x20aa9c(0x131)&&(_0x9cbb2a[_0x494fdc]=_0x2fad15[_0x20aa9c(0x1e3)](/url\(#(.*)\)/,_0x20aa9c(0x181)[_0x20aa9c(0x212)](_0x428ef9[_0x20aa9c(0x1c1)],')')));});var _0x27a6a2=_0x428ef9[_0x2e3d1f(0x1d3)];return!_0x27a6a2||_0x27a6a2[_0x2e3d1f(0x17a)]===0x0||(_0x4474d4['tag']===_0x2e3d1f(0x1a2)&&_0x9cbb2a[_0x2e3d1f(0x17d)]&&(_0x9cbb2a[_0x2e3d1f(0x17d)]=_0x9cbb2a['xlink:href']+_0x428ef9[_0x2e3d1f(0x1c1)]),Object[_0x2e3d1f(0x1e6)](_0x9cbb2a)[_0x2e3d1f(0x14d)](function(_0xa98d1a){var _0x6db4d4=_0x2e3d1f,_0x50f7d4=_0xa98d1a[0x0],_0x1782ce=_0xa98d1a[0x1];typeof _0x1782ce==_0x6db4d4(0x131)&&(_0x9cbb2a[_0x50f7d4]=_0x1782ce['replace'](/url\(#(.*)\)/,_0x6db4d4(0x181)[_0x6db4d4(0x212)](_0x428ef9[_0x6db4d4(0x1c1)],')')));})),_0x9cbb2a;}function _0xc608c(_0xb3b0af,_0x582862){var _0xd3477b=_0x3d1905,_0xac09cf,_0x1be20e=_0x582862['defIds'];return!_0x1be20e||_0x1be20e[_0xd3477b(0x17a)]===0x0?_0xb3b0af:_0xb3b0af['tag']===_0xd3477b(0x1a6)&&(!((_0xac09cf=_0xb3b0af[_0xd3477b(0x18f)])===null||_0xac09cf===void 0x0)&&_0xac09cf[_0xd3477b(0x17a)])?_0x5118e0(_0x5118e0({},_0xb3b0af),{'children':_0xb3b0af[_0xd3477b(0x18f)]['map'](function(_0x2de9b3){var _0x4e216b=_0xd3477b;return typeof _0x2de9b3['attrs']['id']==_0x4e216b(0x131)&&_0x1be20e&&_0x1be20e[_0x4e216b(0x12d)](_0x2de9b3['attrs']['id'])?_0x5118e0(_0x5118e0({},_0x2de9b3),{'attrs':_0x5118e0(_0x5118e0({},_0x2de9b3[_0x4e216b(0x189)]),{'id':_0x2de9b3[_0x4e216b(0x189)]['id']+_0x582862['idSuffix']})}):_0x2de9b3;})}):_0xb3b0af;}function _0x5e2316(){var _0x1d4dc2=_0x3d1905;return Math[_0x1d4dc2(0x1bd)]()[_0x1d4dc2(0x151)](0x24)[_0x1d4dc2(0x153)](0x2,0x8);}_0x57fae5[_0x3d1905(0x168)]=_0x3d1905(0x1c9);var _0x6672f4={'tag':_0x3d1905(0x17b),'attrs':{'xmlns':_0x3d1905(0x1cb),'fill':_0x3d1905(0x1ce),'viewBox':_0x3d1905(0x1b1),'width':_0x3d1905(0x217),'height':'1em'},'children':[{'tag':_0x3d1905(0x1a7),'attrs':{'fill':_0x3d1905(0x1eb),'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':_0x3d1905(0x1a7),'attrs':{'fill':_0x3d1905(0x1eb),'d':_0x3d1905(0x122),'fillRule':_0x3d1905(0x1e1),'clipRule':_0x3d1905(0x1e1)}}]},_0x1d0b8e=_0x5a8a96[_0x3d1905(0x1d8)](function(_0x52256f,_0x14a194){var _0x1d3dc6=_0x3d1905;return _0x5a8a96[_0x1d3dc6(0x1bf)](_0x57fae5,Object['assign']({},_0x52256f,{'id':_0x1d3dc6(0x1ed),'ref':_0x14a194,'icon':_0x6672f4}));});_0x1d0b8e['displayName']=_0x3d1905(0x19b);var _0x57ed4e=Object[_0x3d1905(0x169)],_0x4113c2=(_0x4777e0,_0xb694a1,_0x38a192,_0x4f7a96)=>{for(var _0xbf898e=_0x4f7a96>0x1?void 0x0:_0x4f7a96?_0x57ed4e(_0xb694a1,_0x38a192):_0xb694a1,_0x58d079=_0x4777e0['length']-0x1,_0x1445e9;_0x58d079>=0x0;_0x58d079--)(_0x1445e9=_0x4777e0[_0x58d079])&&(_0xbf898e=_0x1445e9(_0xbf898e)||_0xbf898e);return _0xbf898e;},_0x2a48d8=(_0x5c9544,_0x3749f8)=>(_0x2d5cbe,_0x2249d0)=>_0x3749f8(_0x2d5cbe,_0x2249d0,_0x5c9544);_0x19217f[_0x3d1905(0x126)]=class extends _0x3c1b31[_0x3d1905(0x14f)]{constructor(_0x38bebe,_0x356ff0,_0x34cee1){var _0x3c7f71=_0x3d1905;super(),_0x38dab6(this,_0x3c7f71(0x142),new Map()),(this[_0x3c7f71(0x1ec)]=_0x38bebe,this[_0x3c7f71(0x1b5)]=_0x356ff0,this[_0x3c7f71(0x1be)]=_0x34cee1,this[_0x3c7f71(0x128)]());}async[_0x3d1905(0x12a)](_0x24b40c){var _0x237a04=_0x3d1905;return this[_0x237a04(0x142)][_0x237a04(0x162)](_0x24b40c)||await this['_startLiveShareCoordinator'](_0x24b40c),this['_entities'][_0x237a04(0x1af)](_0x24b40c);}[_0x3d1905(0x128)](){var _0x43f035=_0x3d1905;this['_univerInstanceService'][_0x43f035(0x148)](_0x3c1b31[_0x43f035(0x136)][_0x43f035(0x1a8)])['pipe'](_0x482f22['takeUntil'](this[_0x43f035(0x19f)]))[_0x43f035(0x1ea)](async _0x33ee97=>{var _0x468594=_0x43f035;const _0x4e1a3a=_0x33ee97[_0x468594(0x16b)]();this[_0x468594(0x142)][_0x468594(0x162)](_0x4e1a3a)||this[_0x468594(0x19c)](_0x4e1a3a);}),this[_0x43f035(0x1ec)][_0x43f035(0x1e4)](_0x3c1b31[_0x43f035(0x136)]['UNIVER_SHEET'])['pipe'](_0x482f22[_0x43f035(0x14e)](this['dispose$']))[_0x43f035(0x1ea)](_0x8e0aa=>{var _0x210154=_0x43f035;const _0x1c268b=_0x8e0aa[_0x210154(0x16b)](),_0x553e81=this['_entities'][_0x210154(0x1af)](_0x1c268b);_0x553e81==null||_0x553e81[_0x210154(0x163)]();});}async[_0x3d1905(0x19c)](_0x563fd5){var _0x1c0395=_0x3d1905;const _0xa690a7=await this['_collabSessionService'][_0x1c0395(0x197)](_0x563fd5),_0x34c01b=this[_0x1c0395(0x1b5)][_0x1c0395(0x1f7)](_0x19217f[_0x1c0395(0x20d)],_0x563fd5,_0xa690a7);return _0x34c01b['init'](),this['_entities'][_0x1c0395(0x1a4)](_0x563fd5,_0x34c01b),_0x34c01b;}},_0x19217f[_0x3d1905(0x126)]=_0x4113c2([_0x2a48d8(0x0,_0x3c1b31[_0x3d1905(0x15d)]),_0x2a48d8(0x1,_0x3c1b31[_0x3d1905(0x1e2)](_0x3c1b31[_0x3d1905(0x200)])),_0x2a48d8(0x2,_0x3c1b31['Inject'](_0x3cdbb3[_0x3d1905(0x13d)]))],_0x19217f[_0x3d1905(0x126)]);var _0x47a4ea=(_0x3c5e80=>(_0x3c5e80[_0x3d1905(0x17e)]=_0x3d1905(0x152),_0x3c5e80[_0x3d1905(0x124)]=_0x3d1905(0x183),_0x3c5e80['FOLLOWING']=_0x3d1905(0x16f),_0x3c5e80[_0x3d1905(0x127)]=_0x3d1905(0x158),_0x3c5e80[_0x3d1905(0x13c)]='presenting',_0x3c5e80))(_0x47a4ea||{});const _0x27be26=_0x3d1905(0x1ca),_0x44f811=0xc8;_0x19217f['LiveShareCoordinator']=class extends _0x3c1b31[_0x3d1905(0x14f)]{constructor(_0x385fc6,_0x4ff7bd,_0x3759c7,_0x121b5f,_0x5b0835){var _0x5440d3=_0x3d1905;super(),_0x38dab6(this,_0x5440d3(0x154),new _0x36ffe2[(_0x5440d3(0x1f4))]('idle')),_0x38dab6(this,_0x5440d3(0x1e9),this[_0x5440d3(0x154)][_0x5440d3(0x1a1)]()),_0x38dab6(this,'_init',!0x1),_0x38dab6(this,_0x5440d3(0x12f),null),_0x38dab6(this,_0x5440d3(0x188),null),(this[_0x5440d3(0x133)]=_0x385fc6,this[_0x5440d3(0x1f3)]=_0x4ff7bd,this[_0x5440d3(0x1b9)]=_0x3759c7,this[_0x5440d3(0x147)]=_0x121b5f,this[_0x5440d3(0x15b)]=_0x5b0835);}get[_0x3d1905(0x140)](){var _0x3df3ed=_0x3d1905;return this['_status$'][_0x3df3ed(0x170)]();}[_0x3d1905(0x163)](){var _0x528e61=_0x3d1905,_0x17a2a0;(_0x17a2a0=this[_0x528e61(0x12f)])==null||_0x17a2a0[_0x528e61(0x163)](),this[_0x528e61(0x154)]['next'](_0x528e61(0x183)),this['_status$'][_0x528e61(0x1d7)]();}[_0x3d1905(0x1df)](){var _0x1fe8cb=_0x3d1905;this[_0x1fe8cb(0x128)]||(this[_0x1fe8cb(0x128)]=!0x0,this['_collabSession'][_0x1fe8cb(0x155)][_0x1fe8cb(0x17f)](_0x482f22[_0x1fe8cb(0x14e)](this['dispose$']))[_0x1fe8cb(0x1ea)](_0x152d04=>{var _0x366e87=_0x1fe8cb;switch(_0x152d04){case _0x3cdbb3[_0x366e87(0x1c3)][_0x366e87(0x17e)]:this[_0x366e87(0x1c7)]();break;case _0x3cdbb3[_0x366e87(0x1c3)][_0x366e87(0x205)]:this[_0x366e87(0x18e)]();break;}}),this['_collabSession']['event$'][_0x1fe8cb(0x17f)](_0x482f22[_0x1fe8cb(0x14e)](this[_0x1fe8cb(0x19f)]))['subscribe'](_0xe89bc0=>{var _0x3774e2=_0x1fe8cb;const {eventID:_0x51c43a}=_0xe89bc0;switch(_0x51c43a){case _0x15dc7f[_0x3774e2(0x1cc)][_0x3774e2(0x15f)]:this[_0x3774e2(0x1b7)](_0xe89bc0);break;case _0x15dc7f[_0x3774e2(0x1cc)][_0x3774e2(0x174)]:this['_handleOperation'](_0xe89bc0);break;case _0x15dc7f[_0x3774e2(0x1cc)][_0x3774e2(0x14b)]:this['_handleTerminate']();break;case _0x15dc7f[_0x3774e2(0x1cc)][_0x3774e2(0x177)]:this[_0x3774e2(0x16c)](_0xe89bc0);break;}}));}['tryStartPresenting'](){var _0x203c8d=_0x3d1905;this['_collabSession'][_0x203c8d(0x138)]({'eventID':_0x15dc7f[_0x203c8d(0x1cc)][_0x203c8d(0x1d1)],'data':{'unitID':this[_0x203c8d(0x133)],'userID':this[_0x203c8d(0x1f3)][_0x203c8d(0x137)]()}},this[_0x203c8d(0x133)]);}[_0x3d1905(0x1f5)](){var _0x36b997=_0x3d1905;this[_0x36b997(0x140)]===_0x36b997(0x20e)&&(this[_0x36b997(0x154)][_0x36b997(0x203)](_0x36b997(0x183)),this['_collabSession']['send']({'eventID':_0x15dc7f[_0x36b997(0x1cc)][_0x36b997(0x14b)],'data':{'unitID':this['_unitID']}},this[_0x36b997(0x133)]));}[_0x3d1905(0x1a3)](){var _0x5b6000=_0x3d1905;this[_0x5b6000(0x140)]===_0x5b6000(0x158)&&(this[_0x5b6000(0x154)][_0x5b6000(0x203)]('following'),this[_0x5b6000(0x20c)]());}[_0x3d1905(0x1d2)](){var _0x4a04f6=_0x3d1905;this['_status']===_0x4a04f6(0x16f)&&this[_0x4a04f6(0x1ef)]();}['_handleNewHost'](_0x2f0920){var _0x27e863=_0x3d1905;const {presenter:_0xf75f75}=_0x2f0920[_0x27e863(0x1cd)],_0x28f80f=this[_0x27e863(0x1f3)][_0x27e863(0x137)]();this[_0x27e863(0x188)]=_0xf75f75,_0xf75f75===_0x28f80f?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x27e863(0x140)]!==_0x27e863(0x158)&&(this[_0x27e863(0x18a)](),this[_0x27e863(0x20c)]());}[_0x3d1905(0x1f6)](){var _0x11c649=_0x3d1905;const _0x2d8d73={'eventID':_0x15dc7f[_0x11c649(0x1cc)][_0x11c649(0x1e7)]};this[_0x11c649(0x1f3)][_0x11c649(0x138)](_0x2d8d73,this[_0x11c649(0x133)]);}[_0x3d1905(0x144)](){var _0x5d76a7=_0x3d1905;this[_0x5d76a7(0x188)]=null,this[_0x5d76a7(0x140)]!==_0x5d76a7(0x20e)&&this[_0x5d76a7(0x18b)]();}[_0x3d1905(0x16c)](_0x2752f4){var _0x3432ac=_0x3d1905;if(this[_0x3432ac(0x140)]===_0x3432ac(0x16f)&&this[_0x3432ac(0x188)]===_0x2752f4['data']['memberID']){const _0xeb8252=_0x15dc7f[_0x3432ac(0x204)](_0x2752f4[_0x3432ac(0x1cd)])[_0x3432ac(0x1fd)][_0x3432ac(0x1cf)]()[_0x3432ac(0x1dd)](_0x3577cb=>_0x3577cb['id']===_0x4bc12c[_0x3432ac(0x17c)]['id']);if(_0xeb8252){const _0x544933=_0xeb8252[_0x3432ac(0x167)]['unitId'],_0x66b2c=_0xeb8252[_0x3432ac(0x167)][_0x3432ac(0x172)]['id'];setTimeout(()=>{var _0x2a6a9e=_0x3432ac;this[_0x2a6a9e(0x15b)][_0x2a6a9e(0x208)](_0x4bc12c[_0x2a6a9e(0x182)]['id'],{'unitId':_0x544933,'subUnitId':_0x66b2c},{'fromCollab':!0x0});});}}}[_0x3d1905(0x1c4)](){var _0xe5e538=_0x3d1905;this['_status$']['next'](_0xe5e538(0x20e));const _0x26d836=new Map(),_0x3051c5=this[_0xe5e538(0x12f)]=new _0x3c1b31[(_0xe5e538(0x13a))]();_0x3051c5[_0xe5e538(0x209)](_0x3c1b31[_0xe5e538(0x14c)](()=>{var _0x4548aa=_0xe5e538;_0x26d836[_0x4548aa(0x14d)](_0x3b95ec=>_0x3b95ec[_0x4548aa(0x1d7)]()),_0x26d836[_0x4548aa(0x134)]();})),_0x3051c5[_0xe5e538(0x209)](this[_0xe5e538(0x15b)][_0xe5e538(0x18c)](_0x497536=>{var _0xfe8eab=_0xe5e538,_0x37a921;if(_0x497536['type']!==_0x3c1b31[_0xfe8eab(0x19a)][_0xfe8eab(0x12c)]||!this[_0xfe8eab(0x147)][_0xfe8eab(0x121)](_0x497536['id']))return;const {id:_0x241a8d}=_0x497536;let _0x5855e4;_0x26d836[_0xfe8eab(0x162)](_0x241a8d)?_0x5855e4=_0x26d836[_0xfe8eab(0x1af)](_0x241a8d):(_0x5855e4=new _0x36ffe2['Subject'](),_0x26d836[_0xfe8eab(0x1a4)](_0x241a8d,_0x5855e4),_0x5855e4['pipe'](_0x482f22[_0xfe8eab(0x1f8)]((_0x37a921=this['_configService']['getConfig'](_0x27be26))!=null?_0x37a921:_0x44f811,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xfe8eab(0x1ea)](_0x5a2de8=>{var _0x9e7a2f=_0xfe8eab;this[_0x9e7a2f(0x1f3)][_0x9e7a2f(0x138)]({'eventID':_0x15dc7f[_0x9e7a2f(0x1cc)][_0x9e7a2f(0x174)],'data':{'unitID':this['_unitID'],'operations':{[_0x5a2de8['id']]:{'id':_0x5a2de8['id'],'params':JSON[_0x9e7a2f(0x1bb)](_0x5a2de8[_0x9e7a2f(0x167)])}}}},this[_0x9e7a2f(0x133)]);})),_0x5855e4[_0xfe8eab(0x203)](_0x497536);})),this[_0xe5e538(0x147)][_0xe5e538(0x1b2)](this[_0xe5e538(0x133)])['forEach'](_0x1264b5=>this['_collabSession'][_0xe5e538(0x138)]({'eventID':_0x15dc7f[_0xe5e538(0x1cc)][_0xe5e538(0x174)],'data':{'unitID':this[_0xe5e538(0x133)],'operations':{[_0x1264b5['id']]:{'id':_0x1264b5['id'],'params':JSON[_0xe5e538(0x1bb)](_0x1264b5[_0xe5e538(0x167)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x451f15=_0x3d1905,_0x690877;this[_0x451f15(0x154)][_0x451f15(0x203)]('idle'),(_0x690877=this['_commandDisposable'])==null||_0x690877['dispose'](),this[_0x451f15(0x12f)]=null;}['_startFollowing'](){var _0x497f84=_0x3d1905,_0x2c22de;(_0x2c22de=this[_0x497f84(0x12f)])==null||_0x2c22de['dispose'](),this[_0x497f84(0x154)][_0x497f84(0x203)](_0x497f84(0x16f));}[_0x3d1905(0x18b)](){var _0x1d6178=_0x3d1905,_0x3f4ee8;this[_0x1d6178(0x154)][_0x1d6178(0x203)]('idle'),(_0x3f4ee8=this['_commandDisposable'])==null||_0x3f4ee8[_0x1d6178(0x163)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x2437d5=_0x3d1905,_0x4a7544;this[_0x2437d5(0x154)][_0x2437d5(0x203)](_0x2437d5(0x158)),(_0x4a7544=this[_0x2437d5(0x12f)])==null||_0x4a7544['dispose']();}['_handleOperation'](_0x329dac){var _0x10822d=_0x3d1905;if([_0x10822d(0x20e),'not-following',_0x10822d(0x152)]['includes'](this['_status'])||!_0x329dac[_0x10822d(0x1cd)][_0x10822d(0x16a)]||_0x329dac[_0x10822d(0x1cd)][_0x10822d(0x16a)]===this[_0x10822d(0x1f3)][_0x10822d(0x137)]())return;this[_0x10822d(0x140)]===_0x10822d(0x183)&&this[_0x10822d(0x20c)]();const _0x3af52f=_0x329dac['data'][_0x10822d(0x206)];Object[_0x10822d(0x19e)](_0x3af52f)[_0x10822d(0x14d)](_0x258673=>{var _0x5d450d=_0x10822d;this[_0x5d450d(0x15b)][_0x5d450d(0x208)](_0x258673['id'],_0x258673[_0x5d450d(0x167)]?JSON[_0x5d450d(0x199)](_0x258673[_0x5d450d(0x167)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x468914=_0x3d1905,_0x2c0996;this[_0x468914(0x154)][_0x468914(0x203)]('offline'),(_0x2c0996=this[_0x468914(0x12f)])==null||_0x2c0996[_0x468914(0x163)]();}[_0x3d1905(0x18e)](){var _0x1a978e=_0x3d1905;this[_0x1a978e(0x154)][_0x1a978e(0x203)]('idle'),this[_0x1a978e(0x1f6)]();}},_0x19217f[_0x3d1905(0x20d)]=_0x4113c2([_0x2a48d8(0x2,_0x3c1b31[_0x3d1905(0x1fe)]),_0x2a48d8(0x3,_0x3c1b31[_0x3d1905(0x1e2)](_0x4a8c26)),_0x2a48d8(0x4,_0x3c1b31[_0x3d1905(0x1fc)])],_0x19217f[_0x3d1905(0x20d)]);function _0x136683(){var _0x45b7e9=_0x3d1905;const _0x1d4d4c=_0x3c64d3['useDependency'](_0x19217f[_0x45b7e9(0x126)]),_0x509c0=_0x3c64d3[_0x45b7e9(0x150)](_0x3c1b31['IUniverInstanceService']),_0x3adb7a=_0x3c64d3['useObservable'](()=>_0x509c0[_0x45b7e9(0x1aa)](_0x3c1b31[_0x45b7e9(0x136)][_0x45b7e9(0x1a8)]),void 0x0,!0x1,[]),[_0x3aacc2,_0x5002e2]=_0x5a8a96[_0x45b7e9(0x1d9)](null),[_0x40c518,_0xa0d0e9]=_0x5a8a96[_0x45b7e9(0x1d9)](_0x47a4ea['IDLE']),_0x5371f0=_0x5a8a96[_0x45b7e9(0x1dc)](null);return _0x5a8a96['useEffect'](()=>(_0x3adb7a&&_0x1d4d4c[_0x45b7e9(0x12a)](_0x3adb7a[_0x45b7e9(0x16b)]())[_0x45b7e9(0x18d)](_0x22be1b=>{var _0x332b89=_0x45b7e9;_0x5002e2(_0x22be1b),_0x5371f0[_0x332b89(0x1c8)]=_0x22be1b['status$']['subscribe'](_0x574715=>{_0xa0d0e9(_0x574715);});}),()=>{var _0x394fb4=_0x45b7e9,_0x51c524;(_0x51c524=_0x5371f0[_0x394fb4(0x1c8)])==null||_0x51c524[_0x394fb4(0x184)](),_0x5371f0[_0x394fb4(0x1c8)]=null;}),[_0x3adb7a,_0x1d4d4c]),_0x3aacc2?_0x235be9[_0x45b7e9(0x1a0)](_0x239550['Dropdown'],{'align':'end','disabled':_0x40c518===_0x47a4ea['OFFLINE'],'className':_0x45b7e9(0x1ae),'overlay':_0x235be9[_0x45b7e9(0x1a0)](_0x470957,{'status':_0x40c518,'coordinator':_0x3aacc2}),'children':_0x235be9['jsx'](_0x45b7e9(0x202),{'className':_0x239550[_0x45b7e9(0x1b0)](_0x45b7e9(0x139),{'univer-cursor-not-allowed':_0x40c518===_0x47a4ea[_0x45b7e9(0x17e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x40c518!==_0x47a4ea[_0x45b7e9(0x17e)]}),'type':'button','children':_0x235be9[_0x45b7e9(0x1a0)](_0x1d0b8e,{'className':_0x45b7e9(0x130)})})}):null;}function _0x470957(_0x32b851){var _0x3dd51f=_0x3d1905;const {status:_0x2712f6,coordinator:_0xb12a5d}=_0x32b851;switch(_0x2712f6){case _0x47a4ea[_0x3dd51f(0x124)]:return _0x235be9[_0x3dd51f(0x1a0)](_0x5a1c71,{'coordinator':_0xb12a5d});case _0x47a4ea[_0x3dd51f(0x141)]:return _0x235be9[_0x3dd51f(0x1a0)](_0x10bd26,{'coordinator':_0xb12a5d});case _0x47a4ea[_0x3dd51f(0x127)]:return _0x235be9['jsx'](_0x5d3da3,{'coordinator':_0xb12a5d});case _0x47a4ea[_0x3dd51f(0x17e)]:return _0x235be9[_0x3dd51f(0x1a0)](_0x449179,{});case _0x47a4ea[_0x3dd51f(0x13c)]:return _0x235be9['jsx'](_0x1337c9,{'coordinator':_0xb12a5d});default:return null;}}function _0x5a1c71(_0x5b2c5d){var _0x3035c3=_0x3d1905;const {coordinator:_0x781223}=_0x5b2c5d;return _0x235be9[_0x3035c3(0x120)](_0x235be9[_0x3035c3(0x15e)],{'children':[_0x235be9[_0x3035c3(0x1a0)](_0x3035c3(0x171),{'className':_0x3035c3(0x15c),'children':_0x3035c3(0x207)}),_0x235be9[_0x3035c3(0x1a0)](_0x239550[_0x3035c3(0x216)],{'onClick':()=>_0x781223[_0x3035c3(0x135)](),'children':'Start'})]});}function _0x10bd26(_0x1887d4){var _0x48df6d=_0x3d1905;const {coordinator:_0x2b7e13}=_0x1887d4;return _0x235be9[_0x48df6d(0x120)](_0x235be9[_0x48df6d(0x15e)],{'children':[_0x235be9[_0x48df6d(0x1a0)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x235be9[_0x48df6d(0x1a0)](_0x239550[_0x48df6d(0x216)],{'onClick':()=>_0x2b7e13[_0x48df6d(0x1d2)](),'children':_0x48df6d(0x176)})]});}function _0x5d3da3(_0x524aa8){var _0x5aebe0=_0x3d1905;const {coordinator:_0x285de9}=_0x524aa8;return _0x235be9[_0x5aebe0(0x120)](_0x235be9['Fragment'],{'children':[_0x235be9['jsx'](_0x5aebe0(0x171),{'className':_0x5aebe0(0x15c),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x235be9['jsx'](_0x239550['Button'],{'variant':_0x5aebe0(0x164),'onClick':()=>_0x285de9[_0x5aebe0(0x1a3)](),'children':_0x5aebe0(0x178)})]});}function _0x1337c9(_0x292914){var _0x26ec67=_0x3d1905;const {coordinator:_0x29a390}=_0x292914;return _0x235be9['jsxs'](_0x235be9[_0x26ec67(0x15e)],{'children':[_0x235be9[_0x26ec67(0x1a0)]('div',{'className':_0x26ec67(0x15c),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x235be9['jsx'](_0x239550[_0x26ec67(0x216)],{'variant':_0x26ec67(0x1c6),'onClick':()=>_0x29a390[_0x26ec67(0x1f5)](),'children':_0x26ec67(0x20b)})]});}function _0x449179(){var _0x4a4d96=_0x3d1905;return _0x235be9['jsx'](_0x235be9[_0x4a4d96(0x15e)],{'children':_0x4a4d96(0x213)});}var _0x57b4ef=Object['getOwnPropertyDescriptor'],_0x5c1f57=(_0x3d4388,_0x20f92f,_0x49060a,_0x1d48bd)=>{var _0x43e346=_0x3d1905;for(var _0x1fa1d9=_0x1d48bd>0x1?void 0x0:_0x1d48bd?_0x57b4ef(_0x20f92f,_0x49060a):_0x20f92f,_0x5c07a4=_0x3d4388[_0x43e346(0x17a)]-0x1,_0x2baf17;_0x5c07a4>=0x0;_0x5c07a4--)(_0x2baf17=_0x3d4388[_0x5c07a4])&&(_0x1fa1d9=_0x2baf17(_0x1fa1d9)||_0x1fa1d9);return _0x1fa1d9;},_0x3b1781=(_0x34554d,_0x4f66a3)=>(_0x5f033f,_0x462d06)=>_0x4f66a3(_0x5f033f,_0x462d06,_0x34554d);_0x19217f[_0x3d1905(0x129)]=class extends _0x3c1b31[_0x3d1905(0x160)]{constructor(_0x74443b,_0x59c884){var _0x5d3594=_0x3d1905;super(),this[_0x5d3594(0x1b5)]=_0x74443b,this['_uiPartsService']=_0x59c884,this[_0x5d3594(0x1a5)]();}[_0x3d1905(0x1a5)](){var _0x15bdde=_0x3d1905;this['disposeWithMe'](this[_0x15bdde(0x19d)][_0x15bdde(0x1ff)](_0x3c64d3[_0x15bdde(0x1bc)][_0x15bdde(0x161)],()=>_0x3c64d3['connectInjector'](_0x136683,this[_0x15bdde(0x1b5)])));}},_0x19217f['DesktopLiveShareController']=_0x5c1f57([_0x3b1781(0x0,_0x3c1b31['Inject'](_0x3c1b31[_0x3d1905(0x200)])),_0x3b1781(0x1,_0x3c64d3[_0x3d1905(0x13f)])],_0x19217f[_0x3d1905(0x129)]);var _0x228e29=Object['defineProperty'],_0x43a5cb=Object[_0x3d1905(0x169)],_0x2a95b5=(_0x68013c,_0x5ba5e8,_0x49f895)=>_0x5ba5e8 in _0x68013c?_0x228e29(_0x68013c,_0x5ba5e8,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49f895}):_0x68013c[_0x5ba5e8]=_0x49f895,_0x216342=(_0xf2377f,_0x13c083,_0x338e8d,_0x18d194)=>{var _0x6eedd9=_0x3d1905;for(var _0x28eb6d=_0x18d194>0x1?void 0x0:_0x18d194?_0x43a5cb(_0x13c083,_0x338e8d):_0x13c083,_0x287344=_0xf2377f[_0x6eedd9(0x17a)]-0x1,_0x360112;_0x287344>=0x0;_0x287344--)(_0x360112=_0xf2377f[_0x287344])&&(_0x28eb6d=_0x360112(_0x28eb6d)||_0x28eb6d);return _0x28eb6d;},_0x3b43da=(_0x3541f4,_0x43d0d1)=>(_0x452fc6,_0x3e8b19)=>_0x43d0d1(_0x452fc6,_0x3e8b19,_0x3541f4),_0x19f7bc=(_0x1236c0,_0xc97389,_0x47e1f1)=>_0x2a95b5(_0x1236c0,typeof _0xc97389!=_0x3d1905(0x1f1)?_0xc97389+'':_0xc97389,_0x47e1f1);const _0xa4c3fa=_0x3d1905(0x149);_0x19217f[_0x3d1905(0x1b6)]=class extends _0x3c1b31['Plugin']{constructor(_0x41dc35=_0x1e1173,_0xa2fdf9,_0x2bf700){var _0x45daa8=_0x3d1905;super(),this['_config']=_0x41dc35,this['_injector']=_0xa2fdf9,this[_0x45daa8(0x1b9)]=_0x2bf700;const {..._0x46670f}=_0x3c1b31[_0x45daa8(0x1da)]({},_0x1e1173,this['_config']);this['_configService'][_0x45daa8(0x1c5)](_0x924e8,_0x46670f);}[_0x3d1905(0x166)](){var _0x1fd685=_0x3d1905;_0x3c1b31[_0x1fd685(0x159)](this['_injector'],_0x3c1b31[_0x1fd685(0x187)]([[_0x4a8c26],[_0x19217f[_0x1fd685(0x126)]],[_0x56c58f],[_0x19217f[_0x1fd685(0x129)]]],this[_0x1fd685(0x156)]['override'])),_0x3c1b31['touchDependencies'](this['_injector'],[[_0x56c58f]]);}[_0x3d1905(0x1c2)](){var _0x34a305=_0x3d1905;_0x3c1b31[_0x34a305(0x1ac)](this['_injector'],[[_0x19217f['DesktopLiveShareController']]]);}},_0x19f7bc(_0x19217f[_0x3d1905(0x1b6)],_0x3d1905(0x173),_0x3c1b31[_0x3d1905(0x136)][_0x3d1905(0x157)]),_0x19f7bc(_0x19217f[_0x3d1905(0x1b6)],_0x3d1905(0x180),_0xa4c3fa),_0x19217f[_0x3d1905(0x1b6)]=_0x216342([_0x3c1b31[_0x3d1905(0x186)](_0x3cdbb3['UniverCollaborationClientPlugin']),_0x3b43da(0x1,_0x3c1b31[_0x3d1905(0x1e2)](_0x3c1b31[_0x3d1905(0x200)])),_0x3b43da(0x2,_0x3c1b31[_0x3d1905(0x1fe)])],_0x19217f['UniverLiveSharePlugin']),_0x19217f[_0x3d1905(0x145)]=_0x136683,_0x19217f[_0x3d1905(0x11f)]=_0x4a8c26,_0x19217f[_0x3d1905(0x165)]=_0x47a4ea,Object['defineProperty'](_0x19217f,Symbol[_0x3d1905(0x146)],{'value':'Module'});}));function _0x3343(_0x57b299,_0x3c8671){var _0x4d3238=_0x4d32();return _0x3343=function(_0x3343a4,_0x4bd0d5){_0x3343a4=_0x3343a4-0x11f;var _0x3e1a9e=_0x4d3238[_0x3343a4];return _0x3e1a9e;},_0x3343(_0x57b299,_0x3c8671);}function _0x4d32(){var _0x3c098e=['default','_handleOffline','current','UniverIcon','SAME_OPERATION_SHARE_INTERVAL','http://www.w3.org/2000/svg','CollaborationEvent','data','none','reverse','indexOf','LIVESHARE_REQUEST_HOST','stopFollowing','defIds','UniverSheetsUi','UniverDesign','UniverCore','complete','forwardRef','useState','merge','_reporters','useRef','find','colorChannel1','init','26126oDZnGa','evenodd','Inject','replace','getTypeOfUnitDisposed$','delete','entries','LIVESHARE_FETCH_OPERATIONS','icon','status$','subscribe','currentColor','_univerInstanceService','live-share-icon','object','_stopFollowing','248684jsgRdx','symbol','16468ufxGXc','_collabSession','BehaviorSubject','stopPresenting','_fetchOperations','createInstance','throttleTime','UniverProCollaborationClient','amd','extend','ICommandService','mutations','IConfigService','registerComponent','Injector','react','button','next','parseProtocolChangeset','ONLINE','operations','Present\x20this\x20document','executeCommand','add','map','Stop\x20presenting','_startFollowing','LiveShareCoordinator','presenting','trim','function','39JkyxKH','concat','You\x27are\x20offline.','rxjs/operators','@univerjs-pro/collaboration','Button','1em','call','LiveShareService','jsxs','shouldShareOperation','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','operators','IDLE','getOwnPropertySymbols','LiveShareController','NOT_FOLLOWING','_init','DesktopLiveShareController','getLiveShareCoordinator','univerjs-icon\x20univerjs-icon-','OPERATION','includes','prototype','_commandDisposable','univer-size-4','string','registerSharedOperation','_unitID','clear','tryStartPresenting','UniverInstanceType','getMemberID','send','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','DisposableCollection','exports','PRESENTING','CollaborationSessionService','UniverSheets','IUIPartsService','_status','FOLLOWING','_entities','mask','_handleTerminate','LiveShare','toStringTag','_liveShareService','getTypeOfUnitAdded$','UNIVER_LIVE_SHARE_PLUGIN','@univerjs/core','LIVESHARE_TERMINATE','toDisposable','forEach','takeUntil','RxDisposable','useDependency','toString','offline','substring','_status$','sessionStatus$','_config','UNIVER_UNKNOWN','not-following','registerDependencies','className','_commandService','univer-mb-3\x20univer-w-full\x20univer-text-sm','IUniverInstanceService','Fragment','LIVESHARE_NEW_HOST','Disposable','HEADER_MENU','has','dispose','text','LiveShareStatus','onStarting','params','displayName','getOwnPropertyDescriptor','presenter','getUnitId','_handleNewChangeSets','@univerjs/design','SetZoomRatioOperation','following','getValue','div','sheet','type','LIVESHARE_OPERATION','1859052fukmGD','Stop\x20following','NEW_CHANGESETS','Start\x20following','UniverUi','length','svg','InsertSheetMutation','xlink:href','OFFLINE','pipe','pluginName','url(#$1','SetWorksheetActiveOperation','idle','unsubscribe','1669857BsAvDy','DependentOn','mergeOverrideWithDependencies','_presenter','attrs','_stopPresenting','_beIdle','onCommandExecuted','then','_handleOnline','children','UniverProCollaboration','live-share.config','UniverProLiveShare','3167272YpVhUA','tag','disposeWithMe','propertyIsEnumerable','requireSession','fill','parse','CommandType','LiveShareIcon','_startLiveShareCoordinator','_uiPartsService','values','dispose$','jsx','asObservable','use','startFollowing','set','_mountLiveShare','defs','path','UNIVER_SHEET','@univerjs-pro/collaboration-client','getCurrentTypeOfUnit$','rxjs','touchDependencies','_sharedOperations','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','get','clsx','0\x200\x2017\x2017','getInitialStates','hasOwnProperty','@univerjs/sheets','_injector','UniverLiveSharePlugin','_handleNewHost','879815GNYDdg','_configService','from','stringify','BuiltInUIPart','random','_collabSessionService','createElement','assign','idSuffix','onRendered','SessionStatus','_startPresenting','setConfig'];_0x4d32=function(){return _0x3c098e;};return _0x4d32();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.4.4",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.
|
|
51
|
-
"@univerjs-pro/collaboration-client": "0.
|
|
52
|
-
"@univerjs/core": "0.
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/sheets
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/ui": "0.
|
|
50
|
+
"@univerjs-pro/collaboration": "0.9.0",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.9.0",
|
|
52
|
+
"@univerjs/core": "0.9.0",
|
|
53
|
+
"@univerjs/design": "0.9.0",
|
|
54
|
+
"@univerjs/sheets": "0.9.0",
|
|
55
|
+
"@univerjs/sheets-ui": "0.9.0",
|
|
56
|
+
"@univerjs/ui": "0.9.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
64
|
"vite": "^6.3.5",
|
|
65
65
|
"vitest": "^3.2.4",
|
|
66
|
-
"@univerjs-infra/shared": "0.
|
|
66
|
+
"@univerjs-infra/shared": "0.9.0",
|
|
67
67
|
"@univerjs/protocol": "0.1.47-alpha.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|