@univerjs-pro/live-share 0.8.0 → 0.8.1-nightly.202506131607
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 +11 -11
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0xb39da1=_0x52a9;(function(_0x3f99cd,_0x2b93ac){var _0x4bcd7f=_0x52a9,_0x22677e=_0x3f99cd();while(!![]){try{var _0x4854c0=-parseInt(_0x4bcd7f(0x1e3))/0x1*(-parseInt(_0x4bcd7f(0x22b))/0x2)+parseInt(_0x4bcd7f(0x203))/0x3*(-parseInt(_0x4bcd7f(0x1f6))/0x4)+parseInt(_0x4bcd7f(0x222))/0x5+parseInt(_0x4bcd7f(0x1dc))/0x6*(parseInt(_0x4bcd7f(0x19a))/0x7)+parseInt(_0x4bcd7f(0x234))/0x8*(parseInt(_0x4bcd7f(0x194))/0x9)+parseInt(_0x4bcd7f(0x25b))/0xa*(parseInt(_0x4bcd7f(0x25a))/0xb)+-parseInt(_0x4bcd7f(0x1cc))/0xc;if(_0x4854c0===_0x2b93ac)break;else _0x22677e['push'](_0x22677e['shift']());}catch(_0x36b310){_0x22677e['push'](_0x22677e['shift']());}}}(_0xf609,0x1dcd3));var U=Object[_0xb39da1(0x23e)],F=(_0x4fe75e,_0x4b1a39,_0x48ef63)=>_0x4b1a39 in _0x4fe75e?U(_0x4fe75e,_0x4b1a39,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48ef63}):_0x4fe75e[_0x4b1a39]=_0x48ef63,v=(_0x238fd0,_0x17a53b,_0xaac03f)=>F(_0x238fd0,typeof _0x17a53b!=_0xb39da1(0x24b)?_0x17a53b+'':_0x17a53b,_0xaac03f);Object[_0xb39da1(0x23e)](exports,Symbol['toStringTag'],{'value':_0xb39da1(0x1bd)});const m=require(_0xb39da1(0x1d4)),o=require('@univerjs/core'),C=require(_0xb39da1(0x204)),w=require(_0xb39da1(0x1a2)),p=require(_0xb39da1(0x243)),l=require(_0xb39da1(0x191)),g=require(_0xb39da1(0x1ce)),f=require('react'),_=require(_0xb39da1(0x202)),D=require(_0xb39da1(0x18d)),b=require(_0xb39da1(0x18c)),$=_0xb39da1(0x237),x={};class O extends o[_0xb39da1(0x196)]{constructor(){var _0x299a65=_0xb39da1;super(...arguments),v(this,'_sharedOperations',new Set()),v(this,_0x299a65(0x23d),new Set());}['registerSharedOperation'](_0x247f98){var _0x19ac22=_0xb39da1;return this[_0x19ac22(0x26f)][_0x19ac22(0x1ac)](_0x247f98),o['toDisposable'](()=>this[_0x19ac22(0x26f)]['delete'](_0x247f98));}[_0xb39da1(0x1ca)](_0x1ae4f7){var _0x3ceb0e=_0xb39da1;return this[_0x3ceb0e(0x23d)][_0x3ceb0e(0x1ac)](_0x1ae4f7),o['toDisposable'](()=>this['_reporters'][_0x3ceb0e(0x1af)](_0x1ae4f7));}[_0xb39da1(0x1d6)](_0x413c72){var _0x55c24c=_0xb39da1;return this[_0x55c24c(0x26f)][_0x55c24c(0x258)](_0x413c72);}[_0xb39da1(0x1d5)](_0x1a1c3e){var _0xa5a6a0=_0xb39da1;return Array[_0xa5a6a0(0x248)](this[_0xa5a6a0(0x23d)])[_0xa5a6a0(0x229)](_0x4757a2=>_0x4757a2(_0x1a1c3e));}}var H=Object[_0xb39da1(0x235)],V=(_0x6f48d2,_0x4b1b94,_0x2550bf,_0x2f933a)=>{var _0x226fb3=_0xb39da1;for(var _0x3d58b1=_0x2f933a>0x1?void 0x0:_0x2f933a?H(_0x4b1b94,_0x2550bf):_0x4b1b94,_0x1ec2f5=_0x6f48d2[_0x226fb3(0x1f4)]-0x1,_0x2add78;_0x1ec2f5>=0x0;_0x1ec2f5--)(_0x2add78=_0x6f48d2[_0x1ec2f5])&&(_0x3d58b1=_0x2add78(_0x3d58b1)||_0x3d58b1);return _0x3d58b1;},k=(_0x1d759a,_0x1c91fd)=>(_0x3b9aeb,_0x17a2df)=>_0x1c91fd(_0x3b9aeb,_0x17a2df,_0x1d759a);let E=class extends o[_0xb39da1(0x196)]{constructor(_0x1c9142){var _0x11bc46=_0xb39da1;super(),this[_0x11bc46(0x253)]=_0x1c9142,this[_0x11bc46(0x1be)]();}[_0xb39da1(0x1be)](){var _0xcf620e=_0xb39da1;[w[_0xcf620e(0x263)]['id'],w['SetScrollOperation']['id'],C[_0xcf620e(0x1fb)]['id']][_0xcf620e(0x1cd)](_0x728bd2=>{var _0x427e42=_0xcf620e;this[_0x427e42(0x195)](this[_0x427e42(0x253)]['registerSharedOperation'](_0x728bd2));});}};E=V([k(0x0,o[_0xb39da1(0x209)](O))],E);var u=function(){var _0x41907d=_0xb39da1;return u=Object[_0x41907d(0x1c8)]||function(_0x56084f){var _0x2e798a=_0x41907d;for(var _0x37f8b8,_0x3cfb18=0x1,_0x1f14d4=arguments[_0x2e798a(0x1f4)];_0x3cfb18<_0x1f14d4;_0x3cfb18++){_0x37f8b8=arguments[_0x3cfb18];for(var _0x3096f1 in _0x37f8b8)Object[_0x2e798a(0x19d)][_0x2e798a(0x21d)][_0x2e798a(0x1e7)](_0x37f8b8,_0x3096f1)&&(_0x56084f[_0x3096f1]=_0x37f8b8[_0x3096f1]);}return _0x56084f;},u[_0x41907d(0x26d)](this,arguments);},M=function(_0x2dbb43,_0x3b4591){var _0x2cdacf=_0xb39da1,_0x2eacce={};for(var _0xc731dd in _0x2dbb43)Object[_0x2cdacf(0x19d)][_0x2cdacf(0x21d)]['call'](_0x2dbb43,_0xc731dd)&&_0x3b4591[_0x2cdacf(0x1c1)](_0xc731dd)<0x0&&(_0x2eacce[_0xc731dd]=_0x2dbb43[_0xc731dd]);if(_0x2dbb43!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x1d6405=0x0,_0xc731dd=Object['getOwnPropertySymbols'](_0x2dbb43);_0x1d6405<_0xc731dd['length'];_0x1d6405++)_0x3b4591[_0x2cdacf(0x1c1)](_0xc731dd[_0x1d6405])<0x0&&Object[_0x2cdacf(0x19d)]['propertyIsEnumerable'][_0x2cdacf(0x1e7)](_0x2dbb43,_0xc731dd[_0x1d6405])&&(_0x2eacce[_0xc731dd[_0x1d6405]]=_0x2dbb43[_0xc731dd[_0x1d6405]]);}return _0x2eacce;},j=f[_0xb39da1(0x22d)](function(_0x132bbd,_0x3bd96f){var _0x2bc72e=_0xb39da1,_0x3d7d94=_0x132bbd[_0x2bc72e(0x1ba)],_0x5c8734=_0x132bbd['id'],_0x1672c4=_0x132bbd['className'],_0xfe52c=_0x132bbd[_0x2bc72e(0x22e)],_0x6935ab=M(_0x132bbd,[_0x2bc72e(0x1ba),'id',_0x2bc72e(0x1b7),'extend']),_0x1c4141=_0x2bc72e(0x1c2)[_0x2bc72e(0x1b0)](_0x5c8734,'\x20')['concat'](_0x1672c4||'')[_0x2bc72e(0x1a6)](),_0x4e88e2=f['useRef']('_'[_0x2bc72e(0x1b0)](G()));return y(_0x3d7d94,''['concat'](_0x5c8734),{'defIds':_0x3d7d94[_0x2bc72e(0x1d8)],'idSuffix':_0x4e88e2[_0x2bc72e(0x1bb)]},u({'ref':_0x3bd96f,'className':_0x1c4141},_0x6935ab),_0xfe52c);});function _0x52a9(_0x49813f,_0x698636){var _0xf6096d=_0xf609();return _0x52a9=function(_0x52a967,_0x4862f3){_0x52a967=_0x52a967-0x18b;var _0x1ac890=_0xf6096d[_0x52a967];return _0x1ac890;},_0x52a9(_0x49813f,_0x698636);}function _0xf609(){var _0x435e57=['You\x27re\x20following\x20the\x20presenter','IUniverInstanceService','use','@univerjs-pro/collaboration','3hsvpBN','@univerjs/sheets','_fetchOperations','find','OFFLINE','init','Inject','_configService','useObservable','Stop\x20presenting','_commandDisposable','dispose$','set','idle','LIVESHARE_TERMINATE','mutations','UniverLiveSharePlugin','LiveShareIcon','subscribe','get','data','button','reverse','_stopFollowing','LiveShareService','OPERATION','hasOwnProperty','_startLiveShareCoordinator','live-share-icon','registerDependencies','LIVESHARE_OPERATION','589270XhSBRG','stopPresenting','_commandService','UNIVER_LIVE_SHARE_PLUGIN','presenter','_unitID','getConfig','map','unitId','474686fBiIra','_collabSessionService','forwardRef','extend','sheet','merge','throttleTime','string','params','33944SnKNEl','getOwnPropertyDescriptor','IConfigService','live-share.config','registerComponent','useEffect','xlink:href','path','getCurrentTypeOfUnit$','_reporters','defineProperty','toDisposable','_beIdle','LIVESHARE_REQUEST_HOST','CollaborationEvent','@univerjs/ui','presenting','FOLLOWING','asObservable','_handleOffline','from','_handleNewChangeSets','replace','symbol','UniverInstanceType','_handleOnline','_stopPresenting','_entities','send','displayName','connectInjector','_liveShareService','Fragment','DesktopLiveShareController','defs','not-following','has','_univerInstanceService','286CabFXk','49370dAGiGI','_injector','useState','ICommandService','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','values','CollaborationSessionService','SAME_OPERATION_SHARE_INTERVAL','SetZoomRatioOperation','entries','executeCommand','event$','clsx','colorChannel1','toString','dispose','LIVESHARE_FETCH_OPERATIONS','_status$','apply','memberID','_sharedOperations','0\x200\x2017\x2017','getTypeOfUnitDisposed$','next','status$','rxjs/operators','rxjs','LIVESHARE_NEW_HOST','pipe','mask','react/jsx-runtime','following','random','396XlkaYF','disposeWithMe','Disposable','createInstance','touchDependencies','startFollowing','153363dHugLX','includes','Injector','prototype','_config','UniverCollaborationClientPlugin','jsx','evenodd','@univerjs/sheets-ui','1em','SessionStatus','ONLINE','trim','setConfig','IDLE','svg','_handleTerminate','LiveShareCoordinator','add','stopFollowing','getLiveShareCoordinator','delete','concat','override','_startFollowing','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','onStarting','fill','sessionStatus$','className','UNIVER_SHEET','attrs','icon','current','DependentOn','Module','_init','takeUntil','idSuffix','indexOf','univerjs-icon\x20univerjs-icon-','requireSession','Stop\x20following','univer-w-full\x20univer-mb-3\x20univer-text-sm','LiveShareController','parse','assign','NOT_FOLLOWING','registerInitialStateReporter','jsxs','6293304pkHaOi','forEach','@univerjs/design','Button','offline','div','DisposableCollection','BehaviorSubject','@univerjs-pro/collaboration-client','getInitialStates','shouldShareOperation','_mountLiveShare','defIds','getUnitId','tryStartPresenting','getMemberID','48otjEsL','currentColor','url(#$1','Start\x20following','unsubscribe','_handleNewHost','tag','1JruJiI','parseProtocolChangeset','_status','_handleOperation','call','end','Plugin','IUIPartsService','_uiPartsService','Subject','UNIVER_UNKNOWN','You\x27re\x20presenting\x20the\x20document','onCommandExecuted','Present\x20this\x20document','none','RxDisposable','children','length','_startPresenting','796056mZOhiI','UniverIcon','default','then','getValue','SetWorksheetActiveOperation','complete','_presenter','_collabSession'];_0xf609=function(){return _0x435e57;};return _0xf609();}function y(_0xe2192f,_0x27e8db,_0x112ad7,_0x19f867,_0x5a1d40){var _0x423766=_0xb39da1;return f['createElement'](_0xe2192f[_0x423766(0x1e2)],u(u({'key':_0x27e8db},q(_0xe2192f,_0x112ad7,_0x5a1d40)),_0x19f867),(W(_0xe2192f,_0x112ad7)[_0x423766(0x1f3)]||[])['map'](function(_0x31e4f5,_0x11f045){var _0x256323=_0x423766;return y(_0x31e4f5,''[_0x256323(0x1b0)](_0x27e8db,'-')[_0x256323(0x1b0)](_0xe2192f[_0x256323(0x1e2)],'-')[_0x256323(0x1b0)](_0x11f045),_0x112ad7,void 0x0,_0x5a1d40);}));}function q(_0x2a1f3e,_0x4d610c,_0x4a3be5){var _0x5b127d=_0xb39da1,_0x32c066=u({},_0x2a1f3e[_0x5b127d(0x1b9)]);_0x4a3be5!=null&&_0x4a3be5['colorChannel1']&&_0x32c066[_0x5b127d(0x1b5)]==='colorChannel1'&&(_0x32c066[_0x5b127d(0x1b5)]=_0x4a3be5[_0x5b127d(0x268)]),_0x2a1f3e[_0x5b127d(0x1e2)]===_0x5b127d(0x190)&&_0x32c066['id']&&(_0x32c066['id']=_0x32c066['id']+_0x4d610c[_0x5b127d(0x1c0)]),Object[_0x5b127d(0x264)](_0x32c066)[_0x5b127d(0x1cd)](function(_0x374579){var _0x33ac95=_0x5b127d,_0x3f2200=_0x374579[0x0],_0x2e2dce=_0x374579[0x1];_0x3f2200===_0x33ac95(0x190)&&typeof _0x2e2dce=='string'&&(_0x32c066[_0x3f2200]=_0x2e2dce[_0x33ac95(0x24a)](/url\(#(.*)\)/,_0x33ac95(0x1de)[_0x33ac95(0x1b0)](_0x4d610c[_0x33ac95(0x1c0)],')')));});var _0x1fe1c6=_0x4d610c[_0x5b127d(0x1d8)];return!_0x1fe1c6||_0x1fe1c6[_0x5b127d(0x1f4)]===0x0||(_0x2a1f3e[_0x5b127d(0x1e2)]===_0x5b127d(0x201)&&_0x32c066[_0x5b127d(0x23a)]&&(_0x32c066[_0x5b127d(0x23a)]=_0x32c066[_0x5b127d(0x23a)]+_0x4d610c[_0x5b127d(0x1c0)]),Object[_0x5b127d(0x264)](_0x32c066)[_0x5b127d(0x1cd)](function(_0x24651f){var _0x4d84a3=_0x5b127d,_0x3c4a66=_0x24651f[0x0],_0x4c49a3=_0x24651f[0x1];typeof _0x4c49a3==_0x4d84a3(0x232)&&(_0x32c066[_0x3c4a66]=_0x4c49a3[_0x4d84a3(0x24a)](/url\(#(.*)\)/,'url(#$1'[_0x4d84a3(0x1b0)](_0x4d610c[_0x4d84a3(0x1c0)],')')));})),_0x32c066;}function W(_0x16c26b,_0x3118d0){var _0x5367dc=_0xb39da1,_0x16a130,_0x104f41=_0x3118d0[_0x5367dc(0x1d8)];return!_0x104f41||_0x104f41[_0x5367dc(0x1f4)]===0x0?_0x16c26b:_0x16c26b[_0x5367dc(0x1e2)]===_0x5367dc(0x256)&&(!((_0x16a130=_0x16c26b[_0x5367dc(0x1f3)])===null||_0x16a130===void 0x0)&&_0x16a130[_0x5367dc(0x1f4)])?u(u({},_0x16c26b),{'children':_0x16c26b['children'][_0x5367dc(0x229)](function(_0x505280){var _0x50c275=_0x5367dc;return typeof _0x505280['attrs']['id']==_0x50c275(0x232)&&_0x104f41&&_0x104f41[_0x50c275(0x19b)](_0x505280[_0x50c275(0x1b9)]['id'])?u(u({},_0x505280),{'attrs':u(u({},_0x505280[_0x50c275(0x1b9)]),{'id':_0x505280[_0x50c275(0x1b9)]['id']+_0x3118d0[_0x50c275(0x1c0)]})}):_0x505280;})}):_0x16c26b;}function G(){var _0x7ea756=_0xb39da1;return Math[_0x7ea756(0x193)]()[_0x7ea756(0x269)](0x24)['substring'](0x2,0x8);}j[_0xb39da1(0x251)]=_0xb39da1(0x1f7);var B={'tag':_0xb39da1(0x1a9),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xb39da1(0x1f1),'viewBox':_0xb39da1(0x270),'width':'1em','height':_0xb39da1(0x1a3)},'children':[{'tag':_0xb39da1(0x23b),'attrs':{'fill':_0xb39da1(0x1dd),'d':_0xb39da1(0x25f)}},{'tag':_0xb39da1(0x23b),'attrs':{'fill':_0xb39da1(0x1dd),'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':_0xb39da1(0x1a1),'clipRule':_0xb39da1(0x1a1)}}]},P=f[_0xb39da1(0x22d)](function(_0x39cf12,_0x111093){var _0x2f5a0c=_0xb39da1;return f['createElement'](j,Object[_0x2f5a0c(0x1c8)]({},_0x39cf12,{'id':_0x2f5a0c(0x21f),'ref':_0x111093,'icon':B}));});P[_0xb39da1(0x251)]=_0xb39da1(0x214);var Y=Object[_0xb39da1(0x235)],R=(_0x5acabf,_0x19e6fd,_0x12f97d,_0xcfc1cf)=>{for(var _0x39ee0e=_0xcfc1cf>0x1?void 0x0:_0xcfc1cf?Y(_0x19e6fd,_0x12f97d):_0x19e6fd,_0x361557=_0x5acabf['length']-0x1,_0x3296ae;_0x361557>=0x0;_0x361557--)(_0x3296ae=_0x5acabf[_0x361557])&&(_0x39ee0e=_0x3296ae(_0x39ee0e)||_0x39ee0e);return _0x39ee0e;},S=(_0x16cdcb,_0x3e0406)=>(_0x5be149,_0x4de946)=>_0x3e0406(_0x5be149,_0x4de946,_0x16cdcb);exports[_0xb39da1(0x1c6)]=class extends o['RxDisposable']{constructor(_0x1fd163,_0x54634f,_0x5a6cbf){var _0x1a5d41=_0xb39da1;super(),v(this,'_entities',new Map()),(this[_0x1a5d41(0x259)]=_0x1fd163,this[_0x1a5d41(0x25c)]=_0x54634f,this['_collabSessionService']=_0x5a6cbf,this['_init']());}async['getLiveShareCoordinator'](_0x2f4618){var _0x47fe37=_0xb39da1;return this[_0x47fe37(0x24f)][_0x47fe37(0x258)](_0x2f4618)||await this[_0x47fe37(0x21e)](_0x2f4618),this[_0x47fe37(0x24f)][_0x47fe37(0x216)](_0x2f4618);}['_init'](){var _0x9ae764=_0xb39da1;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x9ae764(0x24c)][_0x9ae764(0x1b8)])[_0x9ae764(0x18f)](b[_0x9ae764(0x1bf)](this[_0x9ae764(0x20e)]))[_0x9ae764(0x215)](async _0x1e0f9c=>{var _0x179627=_0x9ae764;const _0x2aaf7d=_0x1e0f9c[_0x179627(0x1d9)]();this[_0x179627(0x24f)][_0x179627(0x258)](_0x2aaf7d)||this[_0x179627(0x21e)](_0x2aaf7d);}),this[_0x9ae764(0x259)][_0x9ae764(0x271)](o['UniverInstanceType']['UNIVER_SHEET'])[_0x9ae764(0x18f)](b[_0x9ae764(0x1bf)](this[_0x9ae764(0x20e)]))['subscribe'](_0x480240=>{var _0x47a17c=_0x9ae764;const _0x120876=_0x480240[_0x47a17c(0x1d9)](),_0x2c1c1d=this['_entities'][_0x47a17c(0x216)](_0x120876);_0x2c1c1d==null||_0x2c1c1d[_0x47a17c(0x26a)]();});}async['_startLiveShareCoordinator'](_0x47ef39){var _0x4270a4=_0xb39da1;const _0x4bf744=await this[_0x4270a4(0x22c)][_0x4270a4(0x1c3)](_0x47ef39),_0x2b9732=this[_0x4270a4(0x25c)][_0x4270a4(0x197)](exports[_0x4270a4(0x1ab)],_0x47ef39,_0x4bf744);return _0x2b9732[_0x4270a4(0x208)](),this[_0x4270a4(0x24f)][_0x4270a4(0x20f)](_0x47ef39,_0x2b9732),_0x2b9732;}},exports['LiveShareController']=R([S(0x0,o[_0xb39da1(0x200)]),S(0x1,o[_0xb39da1(0x209)](o['Injector'])),S(0x2,o['Inject'](m[_0xb39da1(0x261)]))],exports[_0xb39da1(0x1c6)]);var h=(_0x402b64=>(_0x402b64['OFFLINE']=_0xb39da1(0x1d0),_0x402b64[_0xb39da1(0x1a8)]=_0xb39da1(0x210),_0x402b64['FOLLOWING']=_0xb39da1(0x192),_0x402b64[_0xb39da1(0x1c9)]=_0xb39da1(0x257),_0x402b64['PRESENTING']=_0xb39da1(0x244),_0x402b64))(h||{});const Z=_0xb39da1(0x262),J=0xc8;exports[_0xb39da1(0x1ab)]=class extends o[_0xb39da1(0x1f2)]{constructor(_0x59c4d5,_0x2dd9f7,_0x3a0d59,_0x1f1b61,_0x588fd4){var _0x46080e=_0xb39da1;super(),v(this,_0x46080e(0x26c),new D[(_0x46080e(0x1d3))](_0x46080e(0x210))),v(this,_0x46080e(0x18b),this[_0x46080e(0x26c)][_0x46080e(0x246)]()),v(this,'_init',!0x1),v(this,_0x46080e(0x20d),null),v(this,_0x46080e(0x1fd),null),(this[_0x46080e(0x227)]=_0x59c4d5,this['_collabSession']=_0x2dd9f7,this[_0x46080e(0x20a)]=_0x3a0d59,this[_0x46080e(0x253)]=_0x1f1b61,this['_commandService']=_0x588fd4);}get[_0xb39da1(0x1e5)](){var _0x3a12a3=_0xb39da1;return this[_0x3a12a3(0x26c)][_0x3a12a3(0x1fa)]();}[_0xb39da1(0x26a)](){var _0x37cc62=_0xb39da1,_0x3bc66c;(_0x3bc66c=this[_0x37cc62(0x20d)])==null||_0x3bc66c[_0x37cc62(0x26a)](),this[_0x37cc62(0x26c)]['next']('idle'),this['_status$'][_0x37cc62(0x1fc)]();}[_0xb39da1(0x208)](){var _0x421d45=_0xb39da1;this[_0x421d45(0x1be)]||(this['_init']=!0x0,this['_collabSession'][_0x421d45(0x1b6)]['pipe'](b[_0x421d45(0x1bf)](this['dispose$']))[_0x421d45(0x215)](_0x48b0ea=>{var _0x9c3953=_0x421d45;switch(_0x48b0ea){case m[_0x9c3953(0x1a4)][_0x9c3953(0x207)]:this[_0x9c3953(0x247)]();break;case m[_0x9c3953(0x1a4)][_0x9c3953(0x1a5)]:this[_0x9c3953(0x24d)]();break;}}),this[_0x421d45(0x1fe)][_0x421d45(0x266)][_0x421d45(0x18f)](b['takeUntil'](this[_0x421d45(0x20e)]))[_0x421d45(0x215)](_0x14c89b=>{var _0x3787cc=_0x421d45;const {eventID:_0x307a9b}=_0x14c89b;switch(_0x307a9b){case _[_0x3787cc(0x242)][_0x3787cc(0x18e)]:this[_0x3787cc(0x1e1)](_0x14c89b);break;case _['CollaborationEvent'][_0x3787cc(0x221)]:this[_0x3787cc(0x1e6)](_0x14c89b);break;case _[_0x3787cc(0x242)][_0x3787cc(0x211)]:this['_handleTerminate']();break;case _[_0x3787cc(0x242)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x14c89b);break;}}));}[_0xb39da1(0x1da)](){var _0x4840fb=_0xb39da1;this['_collabSession'][_0x4840fb(0x250)]({'eventID':_[_0x4840fb(0x242)][_0x4840fb(0x241)],'data':{'unitID':this['_unitID'],'userID':this[_0x4840fb(0x1fe)][_0x4840fb(0x1db)]()}},this[_0x4840fb(0x227)]);}[_0xb39da1(0x223)](){var _0x3d102c=_0xb39da1;this[_0x3d102c(0x1e5)]===_0x3d102c(0x244)&&(this[_0x3d102c(0x26c)][_0x3d102c(0x272)]('idle'),this['_collabSession']['send']({'eventID':_['CollaborationEvent'][_0x3d102c(0x211)],'data':{'unitID':this[_0x3d102c(0x227)]}},this[_0x3d102c(0x227)]));}[_0xb39da1(0x199)](){var _0x29657a=_0xb39da1;this[_0x29657a(0x1e5)]===_0x29657a(0x257)&&(this[_0x29657a(0x26c)][_0x29657a(0x272)](_0x29657a(0x192)),this[_0x29657a(0x1b2)]());}['stopFollowing'](){var _0xe783bc=_0xb39da1;this['_status']==='following'&&this[_0xe783bc(0x21a)]();}[_0xb39da1(0x1e1)](_0x1a5094){var _0x1dc58f=_0xb39da1;const {presenter:_0x584155}=_0x1a5094[_0x1dc58f(0x217)],_0x394890=this[_0x1dc58f(0x1fe)][_0x1dc58f(0x1db)]();this['_presenter']=_0x584155,_0x584155===_0x394890?(this[_0x1dc58f(0x21a)](),this[_0x1dc58f(0x1f5)]()):this[_0x1dc58f(0x1e5)]!==_0x1dc58f(0x257)&&(this[_0x1dc58f(0x24e)](),this[_0x1dc58f(0x1b2)]());}[_0xb39da1(0x205)](){var _0x51e623=_0xb39da1;const _0x3e30d3={'eventID':_[_0x51e623(0x242)][_0x51e623(0x26b)]};this[_0x51e623(0x1fe)]['send'](_0x3e30d3,this[_0x51e623(0x227)]);}[_0xb39da1(0x1aa)](){var _0x38e487=_0xb39da1;this[_0x38e487(0x1fd)]=null,this[_0x38e487(0x1e5)]!=='presenting'&&this[_0x38e487(0x240)]();}[_0xb39da1(0x249)](_0x378930){var _0x237bd2=_0xb39da1;if(this[_0x237bd2(0x1e5)]==='following'&&this[_0x237bd2(0x1fd)]===_0x378930[_0x237bd2(0x217)][_0x237bd2(0x26e)]){const _0xe68432=_[_0x237bd2(0x1e4)](_0x378930[_0x237bd2(0x217)])[_0x237bd2(0x212)][_0x237bd2(0x219)]()[_0x237bd2(0x206)](_0x213a3a=>_0x213a3a['id']===C['InsertSheetMutation']['id']);if(_0xe68432){const _0x405938=_0xe68432['params'][_0x237bd2(0x22a)],_0x34fcd1=_0xe68432[_0x237bd2(0x233)][_0x237bd2(0x22f)]['id'];setTimeout(()=>{var _0x24401a=_0x237bd2;this[_0x24401a(0x224)][_0x24401a(0x265)](C[_0x24401a(0x1fb)]['id'],{'unitId':_0x405938,'subUnitId':_0x34fcd1},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x57ea1a=_0xb39da1;this[_0x57ea1a(0x26c)][_0x57ea1a(0x272)](_0x57ea1a(0x244));const _0x4c86ce=new Map(),_0x1ae277=this[_0x57ea1a(0x20d)]=new o[(_0x57ea1a(0x1d2))]();_0x1ae277[_0x57ea1a(0x1ac)](o[_0x57ea1a(0x23f)](()=>{var _0x4829dc=_0x57ea1a;_0x4c86ce[_0x4829dc(0x1cd)](_0x5702d7=>_0x5702d7[_0x4829dc(0x1fc)]()),_0x4c86ce['clear']();})),_0x1ae277[_0x57ea1a(0x1ac)](this[_0x57ea1a(0x224)][_0x57ea1a(0x1ef)](_0x4fb79c=>{var _0x5a7719=_0x57ea1a,_0x54cfc3;if(_0x4fb79c['type']!==o['CommandType'][_0x5a7719(0x21c)]||!this['_liveShareService'][_0x5a7719(0x1d6)](_0x4fb79c['id']))return;const {id:_0x5143ce}=_0x4fb79c;let _0xe5d37a;_0x4c86ce[_0x5a7719(0x258)](_0x5143ce)?_0xe5d37a=_0x4c86ce[_0x5a7719(0x216)](_0x5143ce):(_0xe5d37a=new D[(_0x5a7719(0x1ec))](),_0x4c86ce[_0x5a7719(0x20f)](_0x5143ce,_0xe5d37a),_0xe5d37a['pipe'](b[_0x5a7719(0x231)]((_0x54cfc3=this[_0x5a7719(0x20a)][_0x5a7719(0x228)](Z))!=null?_0x54cfc3:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5a7719(0x215)](_0x3715c7=>{var _0x59e4d1=_0x5a7719;this[_0x59e4d1(0x1fe)][_0x59e4d1(0x250)]({'eventID':_[_0x59e4d1(0x242)][_0x59e4d1(0x221)],'data':{'unitID':this[_0x59e4d1(0x227)],'operations':{[_0x3715c7['id']]:{'id':_0x3715c7['id'],'params':JSON['stringify'](_0x3715c7[_0x59e4d1(0x233)])}}}},this[_0x59e4d1(0x227)]);})),_0xe5d37a[_0x5a7719(0x272)](_0x4fb79c);})),this[_0x57ea1a(0x253)][_0x57ea1a(0x1d5)](this['_unitID'])[_0x57ea1a(0x1cd)](_0x1efb54=>this[_0x57ea1a(0x1fe)][_0x57ea1a(0x250)]({'eventID':_[_0x57ea1a(0x242)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x57ea1a(0x227)],'operations':{[_0x1efb54['id']]:{'id':_0x1efb54['id'],'params':JSON['stringify'](_0x1efb54[_0x57ea1a(0x233)])}}}},this[_0x57ea1a(0x227)]));}['_stopPresenting'](){var _0x2bc273=_0xb39da1,_0x1b427a;this['_status$'][_0x2bc273(0x272)](_0x2bc273(0x210)),(_0x1b427a=this[_0x2bc273(0x20d)])==null||_0x1b427a[_0x2bc273(0x26a)](),this[_0x2bc273(0x20d)]=null;}[_0xb39da1(0x1b2)](){var _0x1cfeaa=_0xb39da1,_0x5f4435;(_0x5f4435=this['_commandDisposable'])==null||_0x5f4435[_0x1cfeaa(0x26a)](),this[_0x1cfeaa(0x26c)][_0x1cfeaa(0x272)](_0x1cfeaa(0x192));}[_0xb39da1(0x240)](){var _0x33ce9a=_0xb39da1,_0x5b39ba;this['_status$'][_0x33ce9a(0x272)](_0x33ce9a(0x210)),(_0x5b39ba=this['_commandDisposable'])==null||_0x5b39ba['dispose'](),this[_0x33ce9a(0x20d)]=null;}[_0xb39da1(0x21a)](){var _0x423f52=_0xb39da1,_0x4a55dd;this[_0x423f52(0x26c)][_0x423f52(0x272)](_0x423f52(0x257)),(_0x4a55dd=this[_0x423f52(0x20d)])==null||_0x4a55dd[_0x423f52(0x26a)]();}[_0xb39da1(0x1e6)](_0x30dee8){var _0x16eb8b=_0xb39da1;if([_0x16eb8b(0x244),'not-following','offline'][_0x16eb8b(0x19b)](this[_0x16eb8b(0x1e5)])||!_0x30dee8[_0x16eb8b(0x217)][_0x16eb8b(0x226)]||_0x30dee8['data'][_0x16eb8b(0x226)]===this[_0x16eb8b(0x1fe)][_0x16eb8b(0x1db)]())return;this[_0x16eb8b(0x1e5)]===_0x16eb8b(0x210)&&this['_startFollowing']();const _0x570ef3=_0x30dee8['data']['operations'];Object[_0x16eb8b(0x260)](_0x570ef3)['forEach'](_0x326486=>{var _0x5acc1f=_0x16eb8b;this['_commandService'][_0x5acc1f(0x265)](_0x326486['id'],_0x326486[_0x5acc1f(0x233)]?JSON[_0x5acc1f(0x1c7)](_0x326486[_0x5acc1f(0x233)]):null,{'fromCollab':!0x0});});}[_0xb39da1(0x247)](){var _0x473841=_0xb39da1,_0x69d24;this[_0x473841(0x26c)][_0x473841(0x272)](_0x473841(0x1d0)),(_0x69d24=this[_0x473841(0x20d)])==null||_0x69d24[_0x473841(0x26a)]();}[_0xb39da1(0x24d)](){var _0x163bf0=_0xb39da1;this['_status$']['next'](_0x163bf0(0x210)),this[_0x163bf0(0x205)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0xb39da1(0x236)]),S(0x3,o[_0xb39da1(0x209)](O)),S(0x4,o[_0xb39da1(0x25e)])],exports[_0xb39da1(0x1ab)]);function A(){var _0x2b6440=_0xb39da1;const _0x3ee3f8=p['useDependency'](exports[_0x2b6440(0x1c6)]),_0x5399f0=p['useDependency'](o[_0x2b6440(0x200)]),_0xec0f9a=p[_0x2b6440(0x20b)](()=>_0x5399f0[_0x2b6440(0x23c)](o[_0x2b6440(0x24c)][_0x2b6440(0x1b8)]),void 0x0,!0x1,[]),[_0x4ec4c1,_0x5c5c1e]=f[_0x2b6440(0x25d)](null),[_0x50e085,_0x4a8595]=f['useState'](h[_0x2b6440(0x1a8)]),_0x3ca9b7=f['useRef'](null);return f[_0x2b6440(0x239)](()=>(_0xec0f9a&&_0x3ee3f8[_0x2b6440(0x1ae)](_0xec0f9a['getUnitId']())[_0x2b6440(0x1f9)](_0x3ec1f9=>{var _0x5c962a=_0x2b6440;_0x5c5c1e(_0x3ec1f9),_0x3ca9b7[_0x5c962a(0x1bb)]=_0x3ec1f9['status$'][_0x5c962a(0x215)](_0x175538=>{_0x4a8595(_0x175538);});}),()=>{var _0x2de03c=_0x2b6440,_0x49f1ed;(_0x49f1ed=_0x3ca9b7[_0x2de03c(0x1bb)])==null||_0x49f1ed[_0x2de03c(0x1e0)](),_0x3ca9b7[_0x2de03c(0x1bb)]=null;}),[_0xec0f9a,_0x3ee3f8]),_0x4ec4c1?l['jsx'](g['Dropdown'],{'align':_0x2b6440(0x1e8),'disabled':_0x50e085===h['OFFLINE'],'className':_0x2b6440(0x1b3),'overlay':l[_0x2b6440(0x1a0)](K,{'status':_0x50e085,'coordinator':_0x4ec4c1}),'children':l['jsx'](_0x2b6440(0x218),{'className':g[_0x2b6440(0x267)]('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x50e085===h[_0x2b6440(0x207)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x50e085!==h[_0x2b6440(0x207)]}),'type':_0x2b6440(0x218),'children':l[_0x2b6440(0x1a0)](P,{'className':'univer-size-4'})})}):null;}function K(_0x2aadff){var _0x119466=_0xb39da1;const {status:_0x18685,coordinator:_0x43e12d}=_0x2aadff;switch(_0x18685){case h[_0x119466(0x1a8)]:return l['jsx'](z,{'coordinator':_0x43e12d});case h[_0x119466(0x245)]:return l[_0x119466(0x1a0)](Q,{'coordinator':_0x43e12d});case h[_0x119466(0x1c9)]:return l[_0x119466(0x1a0)](X,{'coordinator':_0x43e12d});case h[_0x119466(0x207)]:return l[_0x119466(0x1a0)](te,{});case h['PRESENTING']:return l[_0x119466(0x1a0)](ee,{'coordinator':_0x43e12d});default:return null;}}function z(_0x184a53){var _0x34b5c9=_0xb39da1;const {coordinator:_0x47fad4}=_0x184a53;return l['jsxs'](l[_0x34b5c9(0x254)],{'children':[l[_0x34b5c9(0x1a0)]('div',{'className':_0x34b5c9(0x1c5),'children':_0x34b5c9(0x1f0)}),l['jsx'](g['Button'],{'onClick':()=>_0x47fad4[_0x34b5c9(0x1da)](),'children':'Start'})]});}function Q(_0x3303cf){var _0x407658=_0xb39da1;const {coordinator:_0x3cca6c}=_0x3303cf;return l[_0x407658(0x1cb)](l[_0x407658(0x254)],{'children':[l[_0x407658(0x1a0)](_0x407658(0x1d1),{'className':_0x407658(0x1c5),'children':_0x407658(0x1ff)}),l[_0x407658(0x1a0)](g[_0x407658(0x1cf)],{'onClick':()=>_0x3cca6c[_0x407658(0x1ad)](),'children':_0x407658(0x1c4)})]});}function X(_0x1e9f12){var _0x3be18c=_0xb39da1;const {coordinator:_0x34193b}=_0x1e9f12;return l['jsxs'](l[_0x3be18c(0x254)],{'children':[l['jsx'](_0x3be18c(0x1d1),{'className':_0x3be18c(0x1c5),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x3be18c(0x1a0)](g['Button'],{'variant':'text','onClick':()=>_0x34193b[_0x3be18c(0x199)](),'children':_0x3be18c(0x1df)})]});}function ee(_0x2f57f7){var _0x1f45ae=_0xb39da1;const {coordinator:_0x56c615}=_0x2f57f7;return l[_0x1f45ae(0x1cb)](l[_0x1f45ae(0x254)],{'children':[l['jsx']('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x1f45ae(0x1ee)}),l['jsx'](g[_0x1f45ae(0x1cf)],{'variant':_0x1f45ae(0x1f8),'onClick':()=>_0x56c615[_0x1f45ae(0x223)](),'children':_0x1f45ae(0x20c)})]});}function te(){var _0x47af10=_0xb39da1;return l[_0x47af10(0x1a0)](l[_0x47af10(0x254)],{'children':'You\x27are\x20offline.'});}var ie=Object[_0xb39da1(0x235)],ne=(_0x49834e,_0x576617,_0x234c9a,_0x4f3137)=>{var _0x29c4c9=_0xb39da1;for(var _0x18fdde=_0x4f3137>0x1?void 0x0:_0x4f3137?ie(_0x576617,_0x234c9a):_0x576617,_0x25a18a=_0x49834e[_0x29c4c9(0x1f4)]-0x1,_0x5550ae;_0x25a18a>=0x0;_0x25a18a--)(_0x5550ae=_0x49834e[_0x25a18a])&&(_0x18fdde=_0x5550ae(_0x18fdde)||_0x18fdde);return _0x18fdde;},L=(_0x550651,_0x421829)=>(_0x2a504a,_0x1e24fc)=>_0x421829(_0x2a504a,_0x1e24fc,_0x550651);exports[_0xb39da1(0x255)]=class extends o[_0xb39da1(0x196)]{constructor(_0x44790f,_0x1078d6){var _0x4d0795=_0xb39da1;super(),this['_injector']=_0x44790f,this[_0x4d0795(0x1eb)]=_0x1078d6,this[_0x4d0795(0x1d7)]();}[_0xb39da1(0x1d7)](){var _0x1e9073=_0xb39da1;this[_0x1e9073(0x195)](this['_uiPartsService'][_0x1e9073(0x238)](p['BuiltInUIPart']['HEADER_MENU'],()=>p[_0x1e9073(0x252)](A,this['_injector'])));}},exports[_0xb39da1(0x255)]=ne([L(0x0,o[_0xb39da1(0x209)](o['Injector'])),L(0x1,p[_0xb39da1(0x1ea)])],exports[_0xb39da1(0x255)]);var re=Object[_0xb39da1(0x23e)],se=Object[_0xb39da1(0x235)],oe=(_0x524bdc,_0x4f24d5,_0x8fefc9)=>_0x4f24d5 in _0x524bdc?re(_0x524bdc,_0x4f24d5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x8fefc9}):_0x524bdc[_0x4f24d5]=_0x8fefc9,ae=(_0x560ecc,_0x45129b,_0x3483d1,_0x4ecbc3)=>{var _0xc5385c=_0xb39da1;for(var _0x3841b6=_0x4ecbc3>0x1?void 0x0:_0x4ecbc3?se(_0x45129b,_0x3483d1):_0x45129b,_0x2c0fe1=_0x560ecc[_0xc5385c(0x1f4)]-0x1,_0x32cc67;_0x2c0fe1>=0x0;_0x2c0fe1--)(_0x32cc67=_0x560ecc[_0x2c0fe1])&&(_0x3841b6=_0x32cc67(_0x3841b6)||_0x3841b6);return _0x3841b6;},N=(_0x15c216,_0x25f1e0)=>(_0x434fcf,_0x160e9a)=>_0x25f1e0(_0x434fcf,_0x160e9a,_0x15c216),T=(_0x2d5b76,_0x31b630,_0x1811d7)=>oe(_0x2d5b76,typeof _0x31b630!=_0xb39da1(0x24b)?_0x31b630+'':_0x31b630,_0x1811d7);const le=_0xb39da1(0x225);exports['UniverLiveSharePlugin']=class extends o[_0xb39da1(0x1e9)]{constructor(_0x54d86c=x,_0x5497be,_0x5bc1f3){var _0x289801=_0xb39da1;super(),this['_config']=_0x54d86c,this[_0x289801(0x25c)]=_0x5497be,this['_configService']=_0x5bc1f3;const {..._0x557f9f}=o[_0x289801(0x230)]({},x,this[_0x289801(0x19e)]);this[_0x289801(0x20a)][_0x289801(0x1a7)]($,_0x557f9f);}[_0xb39da1(0x1b4)](){var _0x1e76e9=_0xb39da1;o[_0x1e76e9(0x220)](this[_0x1e76e9(0x25c)],o['mergeOverrideWithDependencies']([[O],[exports['LiveShareController']],[E],[exports[_0x1e76e9(0x255)]]],this[_0x1e76e9(0x19e)][_0x1e76e9(0x1b1)])),o['touchDependencies'](this[_0x1e76e9(0x25c)],[[E]]);}['onRendered'](){var _0x1658e4=_0xb39da1;o[_0x1658e4(0x198)](this[_0x1658e4(0x25c)],[[exports[_0x1658e4(0x255)]]]);}},T(exports['UniverLiveSharePlugin'],'type',o[_0xb39da1(0x24c)][_0xb39da1(0x1ed)]),T(exports[_0xb39da1(0x213)],'pluginName',le),exports[_0xb39da1(0x213)]=ae([o[_0xb39da1(0x1bc)](m[_0xb39da1(0x19f)]),N(0x1,o[_0xb39da1(0x209)](o[_0xb39da1(0x19c)])),N(0x2,o[_0xb39da1(0x236)])],exports['UniverLiveSharePlugin']),exports['LiveShare']=A,exports[_0xb39da1(0x21b)]=O,exports['LiveShareStatus']=h;
|
|
1
|
+
'use strict';var _0x5d91eb=_0x16ed;(function(_0x22f5eb,_0x2bf584){var _0x4fcc56=_0x16ed,_0x20b417=_0x22f5eb();while(!![]){try{var _0x47cf80=parseInt(_0x4fcc56(0x143))/0x1*(-parseInt(_0x4fcc56(0xf1))/0x2)+parseInt(_0x4fcc56(0x6b))/0x3+parseInt(_0x4fcc56(0x13f))/0x4+-parseInt(_0x4fcc56(0x115))/0x5+parseInt(_0x4fcc56(0x122))/0x6*(-parseInt(_0x4fcc56(0x11c))/0x7)+parseInt(_0x4fcc56(0x140))/0x8+-parseInt(_0x4fcc56(0xeb))/0x9*(-parseInt(_0x4fcc56(0x105))/0xa);if(_0x47cf80===_0x2bf584)break;else _0x20b417['push'](_0x20b417['shift']());}catch(_0x50665e){_0x20b417['push'](_0x20b417['shift']());}}}(_0x7435,0x3b818));var U=Object[_0x5d91eb(0x83)],F=(_0x3ed78f,_0x560951,_0x56b971)=>_0x560951 in _0x3ed78f?U(_0x3ed78f,_0x560951,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x56b971}):_0x3ed78f[_0x560951]=_0x56b971,v=(_0x316538,_0x10cdf5,_0x117b10)=>F(_0x316538,typeof _0x10cdf5!=_0x5d91eb(0x10b)?_0x10cdf5+'':_0x10cdf5,_0x117b10);Object[_0x5d91eb(0x83)](exports,Symbol[_0x5d91eb(0x101)],{'value':_0x5d91eb(0xc1)});const m=require(_0x5d91eb(0x6e)),o=require(_0x5d91eb(0x132)),C=require(_0x5d91eb(0xa8)),w=require(_0x5d91eb(0xe7)),p=require(_0x5d91eb(0x98)),l=require(_0x5d91eb(0x144)),g=require(_0x5d91eb(0x8e)),f=require(_0x5d91eb(0x141)),_=require(_0x5d91eb(0x82)),D=require(_0x5d91eb(0x8f)),b=require(_0x5d91eb(0xcd)),$=_0x5d91eb(0xf5),x={};function _0x16ed(_0x4f5276,_0x290f54){var _0x74358f=_0x7435();return _0x16ed=function(_0x16edea,_0x515d6c){_0x16edea=_0x16edea-0x68;var _0x25c265=_0x74358f[_0x16edea];return _0x25c265;},_0x16ed(_0x4f5276,_0x290f54);}class O extends o[_0x5d91eb(0x6c)]{constructor(){var _0x30e6e5=_0x5d91eb;super(...arguments),v(this,_0x30e6e5(0x6f),new Set()),v(this,_0x30e6e5(0x124),new Set());}[_0x5d91eb(0x81)](_0x491b5b){var _0x5f3370=_0x5d91eb;return this[_0x5f3370(0x6f)][_0x5f3370(0x142)](_0x491b5b),o[_0x5f3370(0xd0)](()=>this[_0x5f3370(0x6f)][_0x5f3370(0x13e)](_0x491b5b));}['registerInitialStateReporter'](_0x465190){var _0x93db6e=_0x5d91eb;return this[_0x93db6e(0x124)][_0x93db6e(0x142)](_0x465190),o[_0x93db6e(0xd0)](()=>this[_0x93db6e(0x124)][_0x93db6e(0x13e)](_0x465190));}[_0x5d91eb(0x10c)](_0x1fac58){var _0x595ee5=_0x5d91eb;return this[_0x595ee5(0x6f)][_0x595ee5(0x94)](_0x1fac58);}[_0x5d91eb(0xe3)](_0x4871ad){var _0x466df4=_0x5d91eb;return Array[_0x466df4(0x10f)](this['_reporters'])['map'](_0x442478=>_0x442478(_0x4871ad));}}var H=Object[_0x5d91eb(0x12f)],V=(_0x3aaca1,_0x37a755,_0x16cd4a,_0x40ebd7)=>{var _0x478ea1=_0x5d91eb;for(var _0x5efcf4=_0x40ebd7>0x1?void 0x0:_0x40ebd7?H(_0x37a755,_0x16cd4a):_0x37a755,_0x41388d=_0x3aaca1[_0x478ea1(0x93)]-0x1,_0xec6539;_0x41388d>=0x0;_0x41388d--)(_0xec6539=_0x3aaca1[_0x41388d])&&(_0x5efcf4=_0xec6539(_0x5efcf4)||_0x5efcf4);return _0x5efcf4;},k=(_0x15ff69,_0x3d76a3)=>(_0x3dd179,_0x2fddc2)=>_0x3d76a3(_0x3dd179,_0x2fddc2,_0x15ff69);let E=class extends o[_0x5d91eb(0x6c)]{constructor(_0x7b8f12){var _0x57f3f2=_0x5d91eb;super(),this[_0x57f3f2(0xec)]=_0x7b8f12,this[_0x57f3f2(0x7c)]();}[_0x5d91eb(0x7c)](){var _0x71a5a1=_0x5d91eb;[w[_0x71a5a1(0x125)]['id'],w['SetScrollOperation']['id'],C[_0x71a5a1(0x106)]['id']][_0x71a5a1(0xbf)](_0x442091=>{var _0x346d44=_0x71a5a1;this['disposeWithMe'](this['_liveShareService'][_0x346d44(0x81)](_0x442091));});}};E=V([k(0x0,o[_0x5d91eb(0xb4)](O))],E);var u=function(){var _0x479864=_0x5d91eb;return u=Object[_0x479864(0xf8)]||function(_0x59bda1){var _0x50b5c5=_0x479864;for(var _0xa91245,_0x3cca13=0x1,_0x59f680=arguments['length'];_0x3cca13<_0x59f680;_0x3cca13++){_0xa91245=arguments[_0x3cca13];for(var _0x3c3f29 in _0xa91245)Object[_0x50b5c5(0x113)][_0x50b5c5(0xc4)][_0x50b5c5(0xff)](_0xa91245,_0x3c3f29)&&(_0x59bda1[_0x3c3f29]=_0xa91245[_0x3c3f29]);}return _0x59bda1;},u[_0x479864(0x11d)](this,arguments);},M=function(_0x35bebf,_0x5697e3){var _0x154009=_0x5d91eb,_0x49460c={};for(var _0x11106f in _0x35bebf)Object[_0x154009(0x113)][_0x154009(0xc4)][_0x154009(0xff)](_0x35bebf,_0x11106f)&&_0x5697e3['indexOf'](_0x11106f)<0x0&&(_0x49460c[_0x11106f]=_0x35bebf[_0x11106f]);if(_0x35bebf!=null&&typeof Object[_0x154009(0xf2)]==_0x154009(0x79)){for(var _0x14eeb3=0x0,_0x11106f=Object[_0x154009(0xf2)](_0x35bebf);_0x14eeb3<_0x11106f[_0x154009(0x93)];_0x14eeb3++)_0x5697e3[_0x154009(0xc7)](_0x11106f[_0x14eeb3])<0x0&&Object[_0x154009(0x113)][_0x154009(0x9f)][_0x154009(0xff)](_0x35bebf,_0x11106f[_0x14eeb3])&&(_0x49460c[_0x11106f[_0x14eeb3]]=_0x35bebf[_0x11106f[_0x14eeb3]]);}return _0x49460c;},j=f[_0x5d91eb(0xa5)](function(_0x555f62,_0xc50de7){var _0x4b56cd=_0x5d91eb,_0x4b016f=_0x555f62[_0x4b56cd(0xe2)],_0x53a094=_0x555f62['id'],_0x10c4f4=_0x555f62[_0x4b56cd(0x91)],_0x365751=_0x555f62[_0x4b56cd(0xef)],_0x107260=M(_0x555f62,[_0x4b56cd(0xe2),'id',_0x4b56cd(0x91),_0x4b56cd(0xef)]),_0x1e0b6d=_0x4b56cd(0xc5)[_0x4b56cd(0xba)](_0x53a094,'\x20')[_0x4b56cd(0xba)](_0x10c4f4||'')[_0x4b56cd(0x148)](),_0x1e702c=f['useRef']('_'[_0x4b56cd(0xba)](G()));return y(_0x4b016f,''['concat'](_0x53a094),{'defIds':_0x4b016f[_0x4b56cd(0x128)],'idSuffix':_0x1e702c[_0x4b56cd(0x8c)]},u({'ref':_0xc50de7,'className':_0x1e0b6d},_0x107260),_0x365751);});function y(_0x4dac0c,_0x39fe63,_0x509923,_0x4d094d,_0x461afe){var _0x1f7120=_0x5d91eb;return f[_0x1f7120(0xdc)](_0x4dac0c[_0x1f7120(0xd1)],u(u({'key':_0x39fe63},q(_0x4dac0c,_0x509923,_0x461afe)),_0x4d094d),(W(_0x4dac0c,_0x509923)['children']||[])[_0x1f7120(0xac)](function(_0x19ebfe,_0x6e36c9){var _0x2e52b2=_0x1f7120;return y(_0x19ebfe,''[_0x2e52b2(0xba)](_0x39fe63,'-')[_0x2e52b2(0xba)](_0x4dac0c[_0x2e52b2(0xd1)],'-')[_0x2e52b2(0xba)](_0x6e36c9),_0x509923,void 0x0,_0x461afe);}));}function q(_0x3647ec,_0x4fcb74,_0x4efc53){var _0xb18c0d=_0x5d91eb,_0x29a004=u({},_0x3647ec[_0xb18c0d(0xcb)]);_0x4efc53!=null&&_0x4efc53[_0xb18c0d(0xee)]&&_0x29a004[_0xb18c0d(0x90)]==='colorChannel1'&&(_0x29a004['fill']=_0x4efc53[_0xb18c0d(0xee)]),_0x3647ec[_0xb18c0d(0xd1)]===_0xb18c0d(0x102)&&_0x29a004['id']&&(_0x29a004['id']=_0x29a004['id']+_0x4fcb74[_0xb18c0d(0x120)]),Object['entries'](_0x29a004)[_0xb18c0d(0xbf)](function(_0x1a4703){var _0x4e3e1f=_0xb18c0d,_0x57cbf8=_0x1a4703[0x0],_0x1099f6=_0x1a4703[0x1];_0x57cbf8===_0x4e3e1f(0x102)&&typeof _0x1099f6==_0x4e3e1f(0xaf)&&(_0x29a004[_0x57cbf8]=_0x1099f6[_0x4e3e1f(0xa0)](/url\(#(.*)\)/,_0x4e3e1f(0xa9)['concat'](_0x4fcb74['idSuffix'],')')));});var _0x12b76e=_0x4fcb74['defIds'];return!_0x12b76e||_0x12b76e[_0xb18c0d(0x93)]===0x0||(_0x3647ec[_0xb18c0d(0xd1)]===_0xb18c0d(0xa1)&&_0x29a004['xlink:href']&&(_0x29a004['xlink:href']=_0x29a004['xlink:href']+_0x4fcb74[_0xb18c0d(0x120)]),Object[_0xb18c0d(0xf3)](_0x29a004)['forEach'](function(_0x1395f7){var _0x49b2da=_0xb18c0d,_0x38f7eb=_0x1395f7[0x0],_0x1c53fc=_0x1395f7[0x1];typeof _0x1c53fc=='string'&&(_0x29a004[_0x38f7eb]=_0x1c53fc[_0x49b2da(0xa0)](/url\(#(.*)\)/,_0x49b2da(0xa9)[_0x49b2da(0xba)](_0x4fcb74[_0x49b2da(0x120)],')')));})),_0x29a004;}function W(_0x1ac903,_0x44cb51){var _0x6366a5=_0x5d91eb,_0x2b67c6,_0x1bef9d=_0x44cb51[_0x6366a5(0x128)];return!_0x1bef9d||_0x1bef9d[_0x6366a5(0x93)]===0x0?_0x1ac903:_0x1ac903[_0x6366a5(0xd1)]===_0x6366a5(0xbc)&&(!((_0x2b67c6=_0x1ac903[_0x6366a5(0x13a)])===null||_0x2b67c6===void 0x0)&&_0x2b67c6[_0x6366a5(0x93)])?u(u({},_0x1ac903),{'children':_0x1ac903[_0x6366a5(0x13a)]['map'](function(_0x50888f){var _0x2505d7=_0x6366a5;return typeof _0x50888f[_0x2505d7(0xcb)]['id']==_0x2505d7(0xaf)&&_0x1bef9d&&_0x1bef9d['includes'](_0x50888f[_0x2505d7(0xcb)]['id'])?u(u({},_0x50888f),{'attrs':u(u({},_0x50888f[_0x2505d7(0xcb)]),{'id':_0x50888f[_0x2505d7(0xcb)]['id']+_0x44cb51['idSuffix']})}):_0x50888f;})}):_0x1ac903;}function G(){var _0x23c2c3=_0x5d91eb;return Math[_0x23c2c3(0xf6)]()[_0x23c2c3(0xb3)](0x24)[_0x23c2c3(0x12c)](0x2,0x8);}j['displayName']=_0x5d91eb(0x13c);var B={'tag':_0x5d91eb(0x121),'attrs':{'xmlns':_0x5d91eb(0x110),'fill':_0x5d91eb(0x11a),'viewBox':'0\x200\x2017\x2017','width':_0x5d91eb(0x12a),'height':'1em'},'children':[{'tag':_0x5d91eb(0xe4),'attrs':{'fill':_0x5d91eb(0x129),'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':_0x5d91eb(0xe4),'attrs':{'fill':_0x5d91eb(0x129),'d':_0x5d91eb(0xe5),'fillRule':_0x5d91eb(0x13b),'clipRule':_0x5d91eb(0x13b)}}]},P=f[_0x5d91eb(0xa5)](function(_0x919603,_0x7a6f51){var _0x1efee1=_0x5d91eb;return f['createElement'](j,Object['assign']({},_0x919603,{'id':_0x1efee1(0x7d),'ref':_0x7a6f51,'icon':B}));});P[_0x5d91eb(0xfc)]='LiveShareIcon';var Y=Object[_0x5d91eb(0x12f)],R=(_0x11aaa2,_0x30051c,_0x459f7e,_0x53186f)=>{var _0x247707=_0x5d91eb;for(var _0x17d683=_0x53186f>0x1?void 0x0:_0x53186f?Y(_0x30051c,_0x459f7e):_0x30051c,_0x11378c=_0x11aaa2[_0x247707(0x93)]-0x1,_0x275e60;_0x11378c>=0x0;_0x11378c--)(_0x275e60=_0x11aaa2[_0x11378c])&&(_0x17d683=_0x275e60(_0x17d683)||_0x17d683);return _0x17d683;},S=(_0x165ed3,_0x2a4f29)=>(_0x918b75,_0xf53b4e)=>_0x2a4f29(_0x918b75,_0xf53b4e,_0x165ed3);exports[_0x5d91eb(0x80)]=class extends o['RxDisposable']{constructor(_0x596c9e,_0x49502b,_0x443461){var _0x1fb585=_0x5d91eb;super(),v(this,'_entities',new Map()),(this[_0x1fb585(0x89)]=_0x596c9e,this[_0x1fb585(0x12e)]=_0x49502b,this[_0x1fb585(0x77)]=_0x443461,this[_0x1fb585(0x7c)]());}async[_0x5d91eb(0xd9)](_0x200688){var _0x29fb29=_0x5d91eb;return this[_0x29fb29(0x6d)][_0x29fb29(0x94)](_0x200688)||await this[_0x29fb29(0xfb)](_0x200688),this['_entities'][_0x29fb29(0xab)](_0x200688);}['_init'](){var _0x5d5818=_0x5d91eb;this[_0x5d5818(0x89)][_0x5d5818(0x123)](o['UniverInstanceType'][_0x5d5818(0x139)])[_0x5d5818(0xb0)](b[_0x5d5818(0x75)](this['dispose$']))[_0x5d5818(0xa6)](async _0x2180bb=>{var _0x336226=_0x5d5818;const _0x20a843=_0x2180bb[_0x336226(0xcc)]();this[_0x336226(0x6d)][_0x336226(0x94)](_0x20a843)||this[_0x336226(0xfb)](_0x20a843);}),this[_0x5d5818(0x89)]['getTypeOfUnitDisposed$'](o['UniverInstanceType'][_0x5d5818(0x139)])[_0x5d5818(0xb0)](b['takeUntil'](this['dispose$']))[_0x5d5818(0xa6)](_0x5ed424=>{var _0x4a1f03=_0x5d5818;const _0x23557a=_0x5ed424['getUnitId'](),_0x93c8c8=this['_entities']['get'](_0x23557a);_0x93c8c8==null||_0x93c8c8[_0x4a1f03(0x127)]();});}async[_0x5d91eb(0xfb)](_0x443721){var _0x5aa010=_0x5d91eb;const _0x2e6207=await this['_collabSessionService'][_0x5aa010(0x6a)](_0x443721),_0x512e0a=this[_0x5aa010(0x12e)][_0x5aa010(0xc6)](exports[_0x5aa010(0xcf)],_0x443721,_0x2e6207);return _0x512e0a['init'](),this['_entities'][_0x5aa010(0x73)](_0x443721,_0x512e0a),_0x512e0a;}},exports[_0x5d91eb(0x80)]=R([S(0x0,o[_0x5d91eb(0xc0)]),S(0x1,o['Inject'](o[_0x5d91eb(0x7e)])),S(0x2,o[_0x5d91eb(0xb4)](m[_0x5d91eb(0x137)]))],exports[_0x5d91eb(0x80)]);function _0x7435(){var _0x3c9f65=['10OcGOqE','SetWorksheetActiveOperation','_handleTerminate','You\x27are\x20offline.','parseProtocolChangeset','stopPresenting','symbol','shouldShareOperation','event$','SessionStatus','from','http://www.w3.org/2000/svg','OPERATION','_configService','prototype','_stopFollowing','2100585xiXHqH','RxDisposable','getMemberID','OFFLINE','NEW_CHANGESETS','none','PRESENTING','49nrzjrF','apply','type','jsx','idSuffix','svg','80814JhVvrh','getTypeOfUnitAdded$','_reporters','SetZoomRatioOperation','useEffect','dispose','defIds','currentColor','1em','stringify','substring','_status$','_injector','getOwnPropertyDescriptor','registerDependencies','useObservable','@univerjs/core','_commandDisposable','_beIdle','CollaborationEvent','_startPresenting','CollaborationSessionService','throttleTime','UNIVER_SHEET','children','evenodd','UniverIcon','tryStartPresenting','delete','386864ZMCmCQ','2260608HvTOYl','react','add','311998ShHbIR','react/jsx-runtime','_startFollowing','values','BehaviorSubject','trim','unsubscribe','_handleNewChangeSets','text','FOLLOWING','useDependency','following','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','requireSession','1302069FHrGkh','Disposable','_entities','@univerjs-pro/collaboration-client','_sharedOperations','_commandService','HEADER_MENU','idle','set','then','takeUntil','init','_collabSessionService','asObservable','function','stopFollowing','data','_init','live-share-icon','Injector','Plugin','LiveShareController','registerSharedOperation','@univerjs-pro/collaboration','defineProperty','useState','Stop\x20following','status$','_collabSession','ICommandService','_univerInstanceService','memberID','_presenter','current','Start','@univerjs/design','rxjs','fill','className','sheet','length','has','IUIPartsService','UniverLiveSharePlugin','connectInjector','@univerjs/ui','InsertSheetMutation','send','clsx','UniverCollaborationClientPlugin','next','UNIVER_UNKNOWN','propertyIsEnumerable','replace','use','_handleOffline','onCommandExecuted','univer-size-4','forwardRef','subscribe','setConfig','@univerjs/sheets','url(#$1','presenting','get','map','startFollowing','registerComponent','string','pipe','touchDependencies','LiveShare','toString','Inject','LIVESHARE_REQUEST_HOST','_status','_mountLiveShare','NOT_FOLLOWING','Start\x20following','concat','_handleOnline','defs','LIVESHARE_FETCH_OPERATIONS','not-following','forEach','IUniverInstanceService','Module','getCurrentTypeOfUnit$','IConfigService','hasOwnProperty','univerjs-icon\x20univerjs-icon-','createInstance','indexOf','complete','IDLE','div','attrs','getUnitId','rxjs/operators','executeCommand','LiveShareCoordinator','toDisposable','tag','clear','onRendered','LIVESHARE_OPERATION','SAME_OPERATION_SHARE_INTERVAL','offline','_handleOperation','_handleNewHost','getLiveShareCoordinator','_uiPartsService','unitId','createElement','You\x27re\x20presenting\x20the\x20document','DesktopLiveShareController','dispose$','Fragment','button','icon','getInitialStates','path','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','@univerjs/sheets-ui','_unitID','univer-mb-3\x20univer-w-full\x20univer-text-sm','Button','2311371rnRwif','_liveShareService','sessionStatus$','colorChannel1','extend','end','2kLcrRw','getOwnPropertySymbols','entries','CommandType','live-share.config','random','DependentOn','assign','presenter','BuiltInUIPart','_startLiveShareCoordinator','displayName','_fetchOperations','UniverInstanceType','call','params','toStringTag','mask','jsxs','_stopPresenting'];_0x7435=function(){return _0x3c9f65;};return _0x7435();}var h=(_0x4a06c7=>(_0x4a06c7[_0x5d91eb(0x118)]=_0x5d91eb(0xd6),_0x4a06c7['IDLE']=_0x5d91eb(0x72),_0x4a06c7[_0x5d91eb(0x14c)]=_0x5d91eb(0x68),_0x4a06c7[_0x5d91eb(0xb8)]=_0x5d91eb(0xbe),_0x4a06c7[_0x5d91eb(0x11b)]='presenting',_0x4a06c7))(h||{});const Z=_0x5d91eb(0xd5),J=0xc8;exports[_0x5d91eb(0xcf)]=class extends o[_0x5d91eb(0x116)]{constructor(_0x3aafc9,_0xee4120,_0x7520ca,_0x5e5a96,_0x23d0e5){var _0x333edc=_0x5d91eb;super(),v(this,_0x333edc(0x12d),new D[(_0x333edc(0x147))](_0x333edc(0x72))),v(this,_0x333edc(0x86),this['_status$'][_0x333edc(0x78)]()),v(this,_0x333edc(0x7c),!0x1),v(this,'_commandDisposable',null),v(this,_0x333edc(0x8b),null),(this[_0x333edc(0xe8)]=_0x3aafc9,this[_0x333edc(0x87)]=_0xee4120,this[_0x333edc(0x112)]=_0x7520ca,this['_liveShareService']=_0x5e5a96,this['_commandService']=_0x23d0e5);}get[_0x5d91eb(0xb6)](){var _0x126d93=_0x5d91eb;return this[_0x126d93(0x12d)]['getValue']();}['dispose'](){var _0x5e024c=_0x5d91eb,_0x2e6a4b;(_0x2e6a4b=this[_0x5e024c(0x133)])==null||_0x2e6a4b['dispose'](),this[_0x5e024c(0x12d)]['next'](_0x5e024c(0x72)),this[_0x5e024c(0x12d)][_0x5e024c(0xc8)]();}[_0x5d91eb(0x76)](){var _0x47eae8=_0x5d91eb;this[_0x47eae8(0x7c)]||(this[_0x47eae8(0x7c)]=!0x0,this[_0x47eae8(0x87)][_0x47eae8(0xed)][_0x47eae8(0xb0)](b['takeUntil'](this[_0x47eae8(0xdf)]))[_0x47eae8(0xa6)](_0x45065f=>{var _0x1c41aa=_0x47eae8;switch(_0x45065f){case m[_0x1c41aa(0x10e)][_0x1c41aa(0x118)]:this['_handleOffline']();break;case m[_0x1c41aa(0x10e)]['ONLINE']:this[_0x1c41aa(0xbb)]();break;}}),this[_0x47eae8(0x87)][_0x47eae8(0x10d)][_0x47eae8(0xb0)](b[_0x47eae8(0x75)](this[_0x47eae8(0xdf)]))[_0x47eae8(0xa6)](_0x51ac34=>{var _0x2bd442=_0x47eae8;const {eventID:_0x3f84d5}=_0x51ac34;switch(_0x3f84d5){case _[_0x2bd442(0x135)]['LIVESHARE_NEW_HOST']:this[_0x2bd442(0xd8)](_0x51ac34);break;case _['CollaborationEvent'][_0x2bd442(0xd4)]:this[_0x2bd442(0xd7)](_0x51ac34);break;case _['CollaborationEvent']['LIVESHARE_TERMINATE']:this[_0x2bd442(0x107)]();break;case _[_0x2bd442(0x135)][_0x2bd442(0x119)]:this['_handleNewChangeSets'](_0x51ac34);break;}}));}[_0x5d91eb(0x13d)](){var _0x470493=_0x5d91eb;this[_0x470493(0x87)][_0x470493(0x9a)]({'eventID':_[_0x470493(0x135)][_0x470493(0xb5)],'data':{'unitID':this[_0x470493(0xe8)],'userID':this[_0x470493(0x87)][_0x470493(0x117)]()}},this[_0x470493(0xe8)]);}[_0x5d91eb(0x10a)](){var _0x1a5467=_0x5d91eb;this[_0x1a5467(0xb6)]===_0x1a5467(0xaa)&&(this[_0x1a5467(0x12d)]['next'](_0x1a5467(0x72)),this[_0x1a5467(0x87)]['send']({'eventID':_['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x5d91eb(0xad)](){var _0x52e42c=_0x5d91eb;this['_status']===_0x52e42c(0xbe)&&(this[_0x52e42c(0x12d)][_0x52e42c(0x9d)](_0x52e42c(0x68)),this[_0x52e42c(0x145)]());}[_0x5d91eb(0x7a)](){var _0x26d380=_0x5d91eb;this[_0x26d380(0xb6)]===_0x26d380(0x68)&&this['_stopFollowing']();}[_0x5d91eb(0xd8)](_0x4b3a0d){var _0x2db759=_0x5d91eb;const {presenter:_0x2bf8ef}=_0x4b3a0d[_0x2db759(0x7b)],_0x2e3cab=this[_0x2db759(0x87)]['getMemberID']();this['_presenter']=_0x2bf8ef,_0x2bf8ef===_0x2e3cab?(this[_0x2db759(0x114)](),this[_0x2db759(0x136)]()):this[_0x2db759(0xb6)]!=='not-following'&&(this[_0x2db759(0x104)](),this[_0x2db759(0x145)]());}[_0x5d91eb(0xfd)](){var _0x107dca=_0x5d91eb;const _0x2d71c3={'eventID':_[_0x107dca(0x135)][_0x107dca(0xbd)]};this[_0x107dca(0x87)][_0x107dca(0x9a)](_0x2d71c3,this[_0x107dca(0xe8)]);}['_handleTerminate'](){var _0x31eb68=_0x5d91eb;this['_presenter']=null,this[_0x31eb68(0xb6)]!=='presenting'&&this[_0x31eb68(0x134)]();}[_0x5d91eb(0x14a)](_0x5d8493){var _0x4514df=_0x5d91eb;if(this[_0x4514df(0xb6)]===_0x4514df(0x68)&&this[_0x4514df(0x8b)]===_0x5d8493['data'][_0x4514df(0x8a)]){const _0x19027e=_[_0x4514df(0x109)](_0x5d8493[_0x4514df(0x7b)])['mutations']['reverse']()['find'](_0x95f20f=>_0x95f20f['id']===C[_0x4514df(0x99)]['id']);if(_0x19027e){const _0x2d2a85=_0x19027e[_0x4514df(0x100)][_0x4514df(0xdb)],_0x58e228=_0x19027e[_0x4514df(0x100)][_0x4514df(0x92)]['id'];setTimeout(()=>{var _0x2f4e89=_0x4514df;this[_0x2f4e89(0x70)][_0x2f4e89(0xce)](C[_0x2f4e89(0x106)]['id'],{'unitId':_0x2d2a85,'subUnitId':_0x58e228},{'fromCollab':!0x0});});}}}[_0x5d91eb(0x136)](){var _0x32ba11=_0x5d91eb;this['_status$'][_0x32ba11(0x9d)](_0x32ba11(0xaa));const _0x156049=new Map(),_0x31daa6=this[_0x32ba11(0x133)]=new o['DisposableCollection']();_0x31daa6['add'](o[_0x32ba11(0xd0)](()=>{var _0x1571d7=_0x32ba11;_0x156049['forEach'](_0x55fe77=>_0x55fe77[_0x1571d7(0xc8)]()),_0x156049[_0x1571d7(0xd2)]();})),_0x31daa6[_0x32ba11(0x142)](this[_0x32ba11(0x70)][_0x32ba11(0xa3)](_0x431ce3=>{var _0x3924f0=_0x32ba11,_0x28b526;if(_0x431ce3[_0x3924f0(0x11e)]!==o[_0x3924f0(0xf4)][_0x3924f0(0x111)]||!this[_0x3924f0(0xec)][_0x3924f0(0x10c)](_0x431ce3['id']))return;const {id:_0x3b874a}=_0x431ce3;let _0x26b2f9;_0x156049[_0x3924f0(0x94)](_0x3b874a)?_0x26b2f9=_0x156049[_0x3924f0(0xab)](_0x3b874a):(_0x26b2f9=new D['Subject'](),_0x156049[_0x3924f0(0x73)](_0x3b874a,_0x26b2f9),_0x26b2f9['pipe'](b[_0x3924f0(0x138)]((_0x28b526=this[_0x3924f0(0x112)]['getConfig'](Z))!=null?_0x28b526:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3924f0(0xa6)](_0x322f47=>{var _0x4edc7e=_0x3924f0;this['_collabSession'][_0x4edc7e(0x9a)]({'eventID':_[_0x4edc7e(0x135)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4edc7e(0xe8)],'operations':{[_0x322f47['id']]:{'id':_0x322f47['id'],'params':JSON['stringify'](_0x322f47[_0x4edc7e(0x100)])}}}},this['_unitID']);})),_0x26b2f9['next'](_0x431ce3);})),this[_0x32ba11(0xec)]['getInitialStates'](this[_0x32ba11(0xe8)])[_0x32ba11(0xbf)](_0x105f7b=>this['_collabSession']['send']({'eventID':_[_0x32ba11(0x135)][_0x32ba11(0xd4)],'data':{'unitID':this['_unitID'],'operations':{[_0x105f7b['id']]:{'id':_0x105f7b['id'],'params':JSON[_0x32ba11(0x12b)](_0x105f7b[_0x32ba11(0x100)])}}}},this[_0x32ba11(0xe8)]));}[_0x5d91eb(0x104)](){var _0x4d6967=_0x5d91eb,_0x14c264;this[_0x4d6967(0x12d)][_0x4d6967(0x9d)]('idle'),(_0x14c264=this[_0x4d6967(0x133)])==null||_0x14c264['dispose'](),this[_0x4d6967(0x133)]=null;}['_startFollowing'](){var _0x4647c0=_0x5d91eb,_0x2eeaf2;(_0x2eeaf2=this['_commandDisposable'])==null||_0x2eeaf2['dispose'](),this[_0x4647c0(0x12d)][_0x4647c0(0x9d)](_0x4647c0(0x68));}[_0x5d91eb(0x134)](){var _0x23fef2=_0x5d91eb,_0x53475b;this[_0x23fef2(0x12d)]['next']('idle'),(_0x53475b=this[_0x23fef2(0x133)])==null||_0x53475b[_0x23fef2(0x127)](),this[_0x23fef2(0x133)]=null;}['_stopFollowing'](){var _0x238fde=_0x5d91eb,_0x4355fc;this['_status$'][_0x238fde(0x9d)](_0x238fde(0xbe)),(_0x4355fc=this[_0x238fde(0x133)])==null||_0x4355fc[_0x238fde(0x127)]();}[_0x5d91eb(0xd7)](_0x30c6af){var _0x1a6442=_0x5d91eb;if([_0x1a6442(0xaa),_0x1a6442(0xbe),'offline']['includes'](this[_0x1a6442(0xb6)])||!_0x30c6af[_0x1a6442(0x7b)][_0x1a6442(0xf9)]||_0x30c6af[_0x1a6442(0x7b)][_0x1a6442(0xf9)]===this[_0x1a6442(0x87)][_0x1a6442(0x117)]())return;this[_0x1a6442(0xb6)]===_0x1a6442(0x72)&&this[_0x1a6442(0x145)]();const _0x21293a=_0x30c6af['data']['operations'];Object[_0x1a6442(0x146)](_0x21293a)['forEach'](_0x24e3ed=>{var _0x2322a5=_0x1a6442;this[_0x2322a5(0x70)][_0x2322a5(0xce)](_0x24e3ed['id'],_0x24e3ed['params']?JSON['parse'](_0x24e3ed[_0x2322a5(0x100)]):null,{'fromCollab':!0x0});});}[_0x5d91eb(0xa2)](){var _0x37f308=_0x5d91eb,_0x1c7027;this[_0x37f308(0x12d)][_0x37f308(0x9d)](_0x37f308(0xd6)),(_0x1c7027=this[_0x37f308(0x133)])==null||_0x1c7027[_0x37f308(0x127)]();}[_0x5d91eb(0xbb)](){var _0x10e6ad=_0x5d91eb;this['_status$'][_0x10e6ad(0x9d)]('idle'),this[_0x10e6ad(0xfd)]();}},exports[_0x5d91eb(0xcf)]=R([S(0x2,o[_0x5d91eb(0xc3)]),S(0x3,o[_0x5d91eb(0xb4)](O)),S(0x4,o[_0x5d91eb(0x88)])],exports[_0x5d91eb(0xcf)]);function A(){var _0x4a4a77=_0x5d91eb;const _0x5e1362=p[_0x4a4a77(0x14d)](exports[_0x4a4a77(0x80)]),_0x186322=p[_0x4a4a77(0x14d)](o['IUniverInstanceService']),_0x1d0d2f=p[_0x4a4a77(0x131)](()=>_0x186322[_0x4a4a77(0xc2)](o[_0x4a4a77(0xfe)][_0x4a4a77(0x139)]),void 0x0,!0x1,[]),[_0x53fc96,_0x3bbc79]=f[_0x4a4a77(0x84)](null),[_0x1151e5,_0x1167eb]=f[_0x4a4a77(0x84)](h[_0x4a4a77(0xc9)]),_0x12bc4e=f['useRef'](null);return f[_0x4a4a77(0x126)](()=>(_0x1d0d2f&&_0x5e1362['getLiveShareCoordinator'](_0x1d0d2f[_0x4a4a77(0xcc)]())[_0x4a4a77(0x74)](_0x33df82=>{var _0x38437b=_0x4a4a77;_0x3bbc79(_0x33df82),_0x12bc4e['current']=_0x33df82[_0x38437b(0x86)][_0x38437b(0xa6)](_0x465404=>{_0x1167eb(_0x465404);});}),()=>{var _0x5b5c9f=_0x4a4a77,_0x4ce5af;(_0x4ce5af=_0x12bc4e['current'])==null||_0x4ce5af[_0x5b5c9f(0x149)](),_0x12bc4e['current']=null;}),[_0x1d0d2f,_0x5e1362]),_0x53fc96?l[_0x4a4a77(0x11f)](g['Dropdown'],{'align':_0x4a4a77(0xf0),'disabled':_0x1151e5===h[_0x4a4a77(0x118)],'className':_0x4a4a77(0x69),'overlay':l[_0x4a4a77(0x11f)](K,{'status':_0x1151e5,'coordinator':_0x53fc96}),'children':l['jsx'](_0x4a4a77(0xe1),{'className':g[_0x4a4a77(0x9b)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x1151e5===h[_0x4a4a77(0x118)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1151e5!==h['OFFLINE']}),'type':_0x4a4a77(0xe1),'children':l[_0x4a4a77(0x11f)](P,{'className':_0x4a4a77(0xa4)})})}):null;}function K(_0x6986cb){var _0x2fce94=_0x5d91eb;const {status:_0xa621e2,coordinator:_0x3396d2}=_0x6986cb;switch(_0xa621e2){case h[_0x2fce94(0xc9)]:return l[_0x2fce94(0x11f)](z,{'coordinator':_0x3396d2});case h['FOLLOWING']:return l[_0x2fce94(0x11f)](Q,{'coordinator':_0x3396d2});case h['NOT_FOLLOWING']:return l[_0x2fce94(0x11f)](X,{'coordinator':_0x3396d2});case h[_0x2fce94(0x118)]:return l['jsx'](te,{});case h[_0x2fce94(0x11b)]:return l[_0x2fce94(0x11f)](ee,{'coordinator':_0x3396d2});default:return null;}}function z(_0x5dee36){var _0xe3153f=_0x5d91eb;const {coordinator:_0x1476fb}=_0x5dee36;return l[_0xe3153f(0x103)](l[_0xe3153f(0xe0)],{'children':[l['jsx']('div',{'className':_0xe3153f(0xe9),'children':'Present\x20this\x20document'}),l[_0xe3153f(0x11f)](g[_0xe3153f(0xea)],{'onClick':()=>_0x1476fb[_0xe3153f(0x13d)](),'children':_0xe3153f(0x8d)})]});}function Q(_0x531d58){var _0x1baa3c=_0x5d91eb;const {coordinator:_0x1a2e7f}=_0x531d58;return l[_0x1baa3c(0x103)](l[_0x1baa3c(0xe0)],{'children':[l[_0x1baa3c(0x11f)](_0x1baa3c(0xca),{'className':_0x1baa3c(0xe9),'children':'You\x27re\x20following\x20the\x20presenter'}),l['jsx'](g[_0x1baa3c(0xea)],{'onClick':()=>_0x1a2e7f[_0x1baa3c(0x7a)](),'children':_0x1baa3c(0x85)})]});}function X(_0x233f23){var _0x57f6a7=_0x5d91eb;const {coordinator:_0x32aba4}=_0x233f23;return l[_0x57f6a7(0x103)](l[_0x57f6a7(0xe0)],{'children':[l[_0x57f6a7(0x11f)]('div',{'className':_0x57f6a7(0xe9),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x57f6a7(0x11f)](g[_0x57f6a7(0xea)],{'variant':_0x57f6a7(0x14b),'onClick':()=>_0x32aba4[_0x57f6a7(0xad)](),'children':_0x57f6a7(0xb9)})]});}function ee(_0x41dc52){var _0x1e73fc=_0x5d91eb;const {coordinator:_0xc3bc57}=_0x41dc52;return l[_0x1e73fc(0x103)](l['Fragment'],{'children':[l[_0x1e73fc(0x11f)]('div',{'className':_0x1e73fc(0xe9),'children':_0x1e73fc(0xdd)}),l[_0x1e73fc(0x11f)](g[_0x1e73fc(0xea)],{'variant':'default','onClick':()=>_0xc3bc57[_0x1e73fc(0x10a)](),'children':'Stop\x20presenting'})]});}function te(){var _0x3922fc=_0x5d91eb;return l[_0x3922fc(0x11f)](l[_0x3922fc(0xe0)],{'children':_0x3922fc(0x108)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x8b931b,_0x44de02,_0xa3d99a,_0x373e2c)=>{var _0x35f66d=_0x5d91eb;for(var _0x1cf186=_0x373e2c>0x1?void 0x0:_0x373e2c?ie(_0x44de02,_0xa3d99a):_0x44de02,_0x1eaea4=_0x8b931b[_0x35f66d(0x93)]-0x1,_0x32b8fb;_0x1eaea4>=0x0;_0x1eaea4--)(_0x32b8fb=_0x8b931b[_0x1eaea4])&&(_0x1cf186=_0x32b8fb(_0x1cf186)||_0x1cf186);return _0x1cf186;},L=(_0x4ca149,_0x481568)=>(_0x33589e,_0x29bda8)=>_0x481568(_0x33589e,_0x29bda8,_0x4ca149);exports[_0x5d91eb(0xde)]=class extends o['Disposable']{constructor(_0x387906,_0x5e25b2){var _0x3553ce=_0x5d91eb;super(),this['_injector']=_0x387906,this[_0x3553ce(0xda)]=_0x5e25b2,this[_0x3553ce(0xb7)]();}['_mountLiveShare'](){var _0x4579fd=_0x5d91eb;this['disposeWithMe'](this['_uiPartsService'][_0x4579fd(0xae)](p[_0x4579fd(0xfa)][_0x4579fd(0x71)],()=>p[_0x4579fd(0x97)](A,this[_0x4579fd(0x12e)])));}},exports['DesktopLiveShareController']=ne([L(0x0,o[_0x5d91eb(0xb4)](o[_0x5d91eb(0x7e)])),L(0x1,p[_0x5d91eb(0x95)])],exports[_0x5d91eb(0xde)]);var re=Object[_0x5d91eb(0x83)],se=Object[_0x5d91eb(0x12f)],oe=(_0x2d4b88,_0x38872a,_0x1cd899)=>_0x38872a in _0x2d4b88?re(_0x2d4b88,_0x38872a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1cd899}):_0x2d4b88[_0x38872a]=_0x1cd899,ae=(_0x303ceb,_0x1b9c57,_0x28ec3b,_0x3bb646)=>{var _0x41344a=_0x5d91eb;for(var _0x150821=_0x3bb646>0x1?void 0x0:_0x3bb646?se(_0x1b9c57,_0x28ec3b):_0x1b9c57,_0x500249=_0x303ceb[_0x41344a(0x93)]-0x1,_0x37a5c8;_0x500249>=0x0;_0x500249--)(_0x37a5c8=_0x303ceb[_0x500249])&&(_0x150821=_0x37a5c8(_0x150821)||_0x150821);return _0x150821;},N=(_0x31312d,_0x59ea60)=>(_0x171d8a,_0x42f2a2)=>_0x59ea60(_0x171d8a,_0x42f2a2,_0x31312d),T=(_0xb0086,_0x2d0990,_0x39f086)=>oe(_0xb0086,typeof _0x2d0990!=_0x5d91eb(0x10b)?_0x2d0990+'':_0x2d0990,_0x39f086);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x5d91eb(0x96)]=class extends o[_0x5d91eb(0x7f)]{constructor(_0x6e2dd1=x,_0x30bfd0,_0x1e950f){var _0x326b1d=_0x5d91eb;super(),this[_0x326b1d(0xe6)]=_0x6e2dd1,this['_injector']=_0x30bfd0,this[_0x326b1d(0x112)]=_0x1e950f;const {..._0x10aea8}=o['merge']({},x,this[_0x326b1d(0xe6)]);this[_0x326b1d(0x112)][_0x326b1d(0xa7)]($,_0x10aea8);}['onStarting'](){var _0x278c0f=_0x5d91eb;o[_0x278c0f(0x130)](this[_0x278c0f(0x12e)],o['mergeOverrideWithDependencies']([[O],[exports[_0x278c0f(0x80)]],[E],[exports[_0x278c0f(0xde)]]],this[_0x278c0f(0xe6)]['override'])),o[_0x278c0f(0xb1)](this[_0x278c0f(0x12e)],[[E]]);}[_0x5d91eb(0xd3)](){var _0x23bade=_0x5d91eb;o[_0x23bade(0xb1)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},T(exports['UniverLiveSharePlugin'],_0x5d91eb(0x11e),o[_0x5d91eb(0xfe)][_0x5d91eb(0x9e)]),T(exports[_0x5d91eb(0x96)],'pluginName',le),exports[_0x5d91eb(0x96)]=ae([o[_0x5d91eb(0xf7)](m[_0x5d91eb(0x9c)]),N(0x1,o[_0x5d91eb(0xb4)](o[_0x5d91eb(0x7e)])),N(0x2,o['IConfigService'])],exports[_0x5d91eb(0x96)]),exports[_0x5d91eb(0xb2)]=A,exports['LiveShareService']=O,exports['LiveShareStatus']=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x2ae16c=_0x2506;(function(_0x3fd78d,_0x29fb1c){var _0x2fcd18=_0x2506,_0x26cd98=_0x3fd78d();while(!![]){try{var _0x4e9bd7=parseInt(_0x2fcd18(0x1bf))/0x1+parseInt(_0x2fcd18(0x190))/0x2+-parseInt(_0x2fcd18(0x1b6))/0x3+parseInt(_0x2fcd18(0x1b2))/0x4+-parseInt(_0x2fcd18(0x1e4))/0x5*(parseInt(_0x2fcd18(0x1d6))/0x6)+-parseInt(_0x2fcd18(0x1bc))/0x7+parseInt(_0x2fcd18(0x1fb))/0x8*(parseInt(_0x2fcd18(0x21f))/0x9);if(_0x4e9bd7===_0x29fb1c)break;else _0x26cd98['push'](_0x26cd98['shift']());}catch(_0x1f489d){_0x26cd98['push'](_0x26cd98['shift']());}}}(_0x5400,0x51358));var q=Object[_0x2ae16c(0x1a6)],z=(_0x22255e,_0x548d99,_0x376ca9)=>_0x548d99 in _0x22255e?q(_0x22255e,_0x548d99,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x376ca9}):_0x22255e[_0x548d99]=_0x376ca9,d=(_0x4467b5,_0x5b9072,_0x4fd19f)=>z(_0x4467b5,typeof _0x5b9072!='symbol'?_0x5b9072+'':_0x5b9072,_0x4fd19f);import{CollaborationSessionService as _0x4f5af2,SessionStatus as _0x4d71b3,UniverCollaborationClientPlugin as _0x27f278}from'@univerjs-pro/collaboration-client';import{Disposable as _0x2ccbb9,toDisposable as _0x38901e,Inject as _0x593737,IUniverInstanceService as _0x1a7ea1,Injector as _0xe7680d,IConfigService as _0x1ad72f,ICommandService as _0x560e7e,RxDisposable as _0x55e2fc,UniverInstanceType as _0x42ee76,DisposableCollection as _0x2221d0,CommandType as _0x25c528,DependentOn as _0x46cf58,Plugin as _0x463199,merge as _0x54fc87,registerDependencies as _0x3f2cd6,mergeOverrideWithDependencies as _0x43b81e,touchDependencies as _0x5144c9}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x156019,InsertSheetMutation as _0x2adb2e}from'@univerjs/sheets';import{SetZoomRatioOperation as _0xc12c9e,SetScrollOperation as _0x21e91d}from'@univerjs/sheets-ui';import{useDependency as _0x1d89de,useObservable as _0x19ab69,IUIPartsService as _0x5f57dd,BuiltInUIPart as _0x596006,connectInjector as _0x9eed15}from'@univerjs/ui';import{jsx as _0xa8e486,jsxs as _0x1f8228,Fragment as _0xa79dd}from'react/jsx-runtime';import{Dropdown as _0x524d08,clsx as _0x4589dc,Button as _0x2cd243}from'@univerjs/design';import{forwardRef as _0x53f5e8,useRef as _0x19b438,createElement as _0x43b2f6,useState as _0x2c2ba0,useEffect as _0x5d5c39}from'react';import{CollaborationEvent as _0x3d2fa7,parseProtocolChangeset as _0x5e0ea2}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x1f3e9c,Subject as _0x26d562}from'rxjs';import{takeUntil as _0x4dbea4,throttleTime as _0xa3d9ff}from'rxjs/operators';const Oe=_0x2ae16c(0x1c3),T={};class L extends _0x2ccbb9{constructor(){var _0x21b4b5=_0x2ae16c;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x21b4b5(0x1ea),new Set());}[_0x2ae16c(0x222)](_0x3cb7f1){var _0x296ce5=_0x2ae16c;return this[_0x296ce5(0x218)][_0x296ce5(0x1cb)](_0x3cb7f1),_0x38901e(()=>this['_sharedOperations'][_0x296ce5(0x1d0)](_0x3cb7f1));}['registerInitialStateReporter'](_0x3dd980){var _0x51358e=_0x2ae16c;return this[_0x51358e(0x1ea)][_0x51358e(0x1cb)](_0x3dd980),_0x38901e(()=>this[_0x51358e(0x1ea)]['delete'](_0x3dd980));}['shouldShareOperation'](_0x1d4a24){var _0x1d4501=_0x2ae16c;return this[_0x1d4501(0x218)][_0x1d4501(0x19b)](_0x1d4a24);}[_0x2ae16c(0x1c9)](_0x266566){var _0x264bc4=_0x2ae16c;return Array[_0x264bc4(0x229)](this[_0x264bc4(0x1ea)])[_0x264bc4(0x214)](_0x3989aa=>_0x3989aa(_0x266566));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x1426e2,_0x488f93,_0x415448,_0x58260e)=>{var _0x32aac6=_0x2ae16c;for(var _0x2a9642=_0x58260e>0x1?void 0x0:_0x58260e?Ee(_0x488f93,_0x415448):_0x488f93,_0xe27a18=_0x1426e2[_0x32aac6(0x1d1)]-0x1,_0x1ab13d;_0xe27a18>=0x0;_0xe27a18--)(_0x1ab13d=_0x1426e2[_0xe27a18])&&(_0x2a9642=_0x1ab13d(_0x2a9642)||_0x2a9642);return _0x2a9642;},Ne=(_0x4d4418,_0x4ed351)=>(_0x52cc34,_0x4dd922)=>_0x4ed351(_0x52cc34,_0x4dd922,_0x4d4418);let m=class extends _0x2ccbb9{constructor(_0x40181d){var _0x35a70b=_0x2ae16c;super(),this['_liveShareService']=_0x40181d,this[_0x35a70b(0x22e)]();}['_init'](){var _0x20d9e0=_0x2ae16c;[_0xc12c9e['id'],_0x21e91d['id'],_0x156019['id']][_0x20d9e0(0x226)](_0x3209c5=>{var _0x145342=_0x20d9e0;this[_0x145342(0x199)](this['_liveShareService'][_0x145342(0x222)](_0x3209c5));});}};m=we([Ne(0x0,_0x593737(L))],m);var c=function(){var _0x1e67d5=_0x2ae16c;return c=Object[_0x1e67d5(0x1fd)]||function(_0x3e3853){var _0x242cbe=_0x1e67d5;for(var _0x7c648f,_0x4588ea=0x1,_0x4de5de=arguments['length'];_0x4588ea<_0x4de5de;_0x4588ea++){_0x7c648f=arguments[_0x4588ea];for(var _0x1cf573 in _0x7c648f)Object[_0x242cbe(0x1c4)][_0x242cbe(0x1a7)][_0x242cbe(0x1dc)](_0x7c648f,_0x1cf573)&&(_0x3e3853[_0x1cf573]=_0x7c648f[_0x1cf573]);}return _0x3e3853;},c[_0x1e67d5(0x1b1)](this,arguments);},Ce=function(_0x43a552,_0x593e36){var _0x31a51e=_0x2ae16c,_0x18593e={};for(var _0x58f84e in _0x43a552)Object['prototype']['hasOwnProperty']['call'](_0x43a552,_0x58f84e)&&_0x593e36[_0x31a51e(0x211)](_0x58f84e)<0x0&&(_0x18593e[_0x58f84e]=_0x43a552[_0x58f84e]);if(_0x43a552!=null&&typeof Object['getOwnPropertySymbols']==_0x31a51e(0x1ad)){for(var _0x2c35f2=0x0,_0x58f84e=Object[_0x31a51e(0x1ba)](_0x43a552);_0x2c35f2<_0x58f84e[_0x31a51e(0x1d1)];_0x2c35f2++)_0x593e36[_0x31a51e(0x211)](_0x58f84e[_0x2c35f2])<0x0&&Object[_0x31a51e(0x1c4)][_0x31a51e(0x198)][_0x31a51e(0x1dc)](_0x43a552,_0x58f84e[_0x2c35f2])&&(_0x18593e[_0x58f84e[_0x2c35f2]]=_0x43a552[_0x58f84e[_0x2c35f2]]);}return _0x18593e;},W=_0x53f5e8(function(_0x3fda35,_0x380b7){var _0x59fc05=_0x2ae16c,_0x29aab6=_0x3fda35[_0x59fc05(0x1bb)],_0x57cb8b=_0x3fda35['id'],_0x3f393e=_0x3fda35[_0x59fc05(0x20c)],_0x3abd3a=_0x3fda35[_0x59fc05(0x232)],_0x5a9bc8=Ce(_0x3fda35,['icon','id',_0x59fc05(0x20c),_0x59fc05(0x232)]),_0x1b4bc5=_0x59fc05(0x1b9)[_0x59fc05(0x1f6)](_0x57cb8b,'\x20')['concat'](_0x3f393e||'')['trim'](),_0x2aa5bd=_0x19b438('_'[_0x59fc05(0x1f6)](Le()));return Y(_0x29aab6,''[_0x59fc05(0x1f6)](_0x57cb8b),{'defIds':_0x29aab6[_0x59fc05(0x20a)],'idSuffix':_0x2aa5bd[_0x59fc05(0x1d7)]},c({'ref':_0x380b7,'className':_0x1b4bc5},_0x5a9bc8),_0x3abd3a);});function Y(_0x15273c,_0x1bd5a4,_0x3baaa2,_0x1ff2ef,_0x1b03a8){var _0x3232e5=_0x2ae16c;return _0x43b2f6(_0x15273c[_0x3232e5(0x21e)],c(c({'key':_0x1bd5a4},De(_0x15273c,_0x3baaa2,_0x1b03a8)),_0x1ff2ef),(xe(_0x15273c,_0x3baaa2)[_0x3232e5(0x1d5)]||[])[_0x3232e5(0x214)](function(_0x3846c5,_0x3f7044){var _0x328c22=_0x3232e5;return Y(_0x3846c5,''[_0x328c22(0x1f6)](_0x1bd5a4,'-')[_0x328c22(0x1f6)](_0x15273c['tag'],'-')[_0x328c22(0x1f6)](_0x3f7044),_0x3baaa2,void 0x0,_0x1b03a8);}));}function De(_0x4f1345,_0x57b3b9,_0x22f553){var _0x3bb106=_0x2ae16c,_0x3a70f2=c({},_0x4f1345[_0x3bb106(0x213)]);_0x22f553!=null&&_0x22f553[_0x3bb106(0x212)]&&_0x3a70f2[_0x3bb106(0x1c2)]==='colorChannel1'&&(_0x3a70f2[_0x3bb106(0x1c2)]=_0x22f553['colorChannel1']),_0x4f1345[_0x3bb106(0x21e)]===_0x3bb106(0x1db)&&_0x3a70f2['id']&&(_0x3a70f2['id']=_0x3a70f2['id']+_0x57b3b9['idSuffix']),Object['entries'](_0x3a70f2)[_0x3bb106(0x226)](function(_0x4cd719){var _0x2399f3=_0x3bb106,_0x263fd5=_0x4cd719[0x0],_0xee1a3f=_0x4cd719[0x1];_0x263fd5==='mask'&&typeof _0xee1a3f==_0x2399f3(0x1d9)&&(_0x3a70f2[_0x263fd5]=_0xee1a3f[_0x2399f3(0x1ae)](/url\(#(.*)\)/,_0x2399f3(0x1c0)[_0x2399f3(0x1f6)](_0x57b3b9[_0x2399f3(0x1e0)],')')));});var _0x51b928=_0x57b3b9[_0x3bb106(0x20a)];return!_0x51b928||_0x51b928[_0x3bb106(0x1d1)]===0x0||(_0x4f1345['tag']===_0x3bb106(0x223)&&_0x3a70f2[_0x3bb106(0x239)]&&(_0x3a70f2[_0x3bb106(0x239)]=_0x3a70f2['xlink:href']+_0x57b3b9['idSuffix']),Object[_0x3bb106(0x19a)](_0x3a70f2)[_0x3bb106(0x226)](function(_0xf98fa5){var _0x203526=_0x3bb106,_0x5e486b=_0xf98fa5[0x0],_0x3ec3fe=_0xf98fa5[0x1];typeof _0x3ec3fe=='string'&&(_0x3a70f2[_0x5e486b]=_0x3ec3fe[_0x203526(0x1ae)](/url\(#(.*)\)/,_0x203526(0x1c0)[_0x203526(0x1f6)](_0x57b3b9[_0x203526(0x1e0)],')')));})),_0x3a70f2;}function xe(_0x41ab13,_0xf1e4e8){var _0x47adb4=_0x2ae16c,_0x53cdf0,_0x2a08b4=_0xf1e4e8[_0x47adb4(0x20a)];return!_0x2a08b4||_0x2a08b4['length']===0x0?_0x41ab13:_0x41ab13[_0x47adb4(0x21e)]==='defs'&&(!((_0x53cdf0=_0x41ab13['children'])===null||_0x53cdf0===void 0x0)&&_0x53cdf0[_0x47adb4(0x1d1)])?c(c({},_0x41ab13),{'children':_0x41ab13[_0x47adb4(0x1d5)]['map'](function(_0x5d5dff){var _0x241b32=_0x47adb4;return typeof _0x5d5dff[_0x241b32(0x213)]['id']==_0x241b32(0x1d9)&&_0x2a08b4&&_0x2a08b4[_0x241b32(0x1b3)](_0x5d5dff[_0x241b32(0x213)]['id'])?c(c({},_0x5d5dff),{'attrs':c(c({},_0x5d5dff[_0x241b32(0x213)]),{'id':_0x5d5dff['attrs']['id']+_0xf1e4e8['idSuffix']})}):_0x5d5dff;})}):_0x41ab13;}function _0x2506(_0xa70875,_0x1422bf){var _0x5400d7=_0x5400();return _0x2506=function(_0x250617,_0x3e3126){_0x250617=_0x250617-0x188;var _0x5bf819=_0x5400d7[_0x250617];return _0x5bf819;},_0x2506(_0xa70875,_0x1422bf);}function Le(){var _0x273f1b=_0x2ae16c;return Math['random']()[_0x273f1b(0x1e7)](0x24)[_0x273f1b(0x231)](0x2,0x8);}W[_0x2ae16c(0x1ce)]='UniverIcon';var ye={'tag':'svg','attrs':{'xmlns':_0x2ae16c(0x1cc),'fill':_0x2ae16c(0x236),'viewBox':_0x2ae16c(0x1e3),'width':_0x2ae16c(0x1e8),'height':_0x2ae16c(0x1e8)},'children':[{'tag':_0x2ae16c(0x1e1),'attrs':{'fill':'currentColor','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':_0x2ae16c(0x1e1),'attrs':{'fill':_0x2ae16c(0x234),'d':_0x2ae16c(0x1a1),'fillRule':'evenodd','clipRule':_0x2ae16c(0x20f)}}]},B=_0x53f5e8(function(_0x1c22f7,_0x31c8ef){var _0x3f488a=_0x2ae16c;return _0x43b2f6(W,Object[_0x3f488a(0x1fd)]({},_0x1c22f7,{'id':_0x3f488a(0x1fc),'ref':_0x31c8ef,'icon':ye}));});B[_0x2ae16c(0x1ce)]=_0x2ae16c(0x1fa);var Re=Object[_0x2ae16c(0x1c7)],Z=(_0x12f08a,_0x3517cf,_0x227c81,_0x48dac0)=>{var _0x3e37b1=_0x2ae16c;for(var _0x1ac48a=_0x48dac0>0x1?void 0x0:_0x48dac0?Re(_0x3517cf,_0x227c81):_0x3517cf,_0x299efa=_0x12f08a[_0x3e37b1(0x1d1)]-0x1,_0x162a83;_0x299efa>=0x0;_0x299efa--)(_0x162a83=_0x12f08a[_0x299efa])&&(_0x1ac48a=_0x162a83(_0x1ac48a)||_0x1ac48a);return _0x1ac48a;},f=(_0x310962,_0x2a6a15)=>(_0x3fc43e,_0x225e2e)=>_0x2a6a15(_0x3fc43e,_0x225e2e,_0x310962);let I=class extends _0x55e2fc{constructor(_0x5a4353,_0x442e13,_0x5c0453){var _0x1c2fbd=_0x2ae16c;super(),d(this,_0x1c2fbd(0x18f),new Map()),(this[_0x1c2fbd(0x18a)]=_0x5a4353,this[_0x1c2fbd(0x23a)]=_0x442e13,this[_0x1c2fbd(0x1f7)]=_0x5c0453,this[_0x1c2fbd(0x22e)]());}async[_0x2ae16c(0x1a3)](_0x4d6da2){var _0x3011ca=_0x2ae16c;return this[_0x3011ca(0x18f)][_0x3011ca(0x19b)](_0x4d6da2)||await this[_0x3011ca(0x1af)](_0x4d6da2),this[_0x3011ca(0x18f)][_0x3011ca(0x1eb)](_0x4d6da2);}[_0x2ae16c(0x22e)](){var _0x931116=_0x2ae16c;this[_0x931116(0x18a)][_0x931116(0x20e)](_0x42ee76[_0x931116(0x18b)])[_0x931116(0x200)](_0x4dbea4(this[_0x931116(0x227)]))[_0x931116(0x1a9)](async _0x3b7f34=>{var _0x7d3742=_0x931116;const _0x3afd5b=_0x3b7f34[_0x7d3742(0x1f9)]();this[_0x7d3742(0x18f)][_0x7d3742(0x19b)](_0x3afd5b)||this[_0x7d3742(0x1af)](_0x3afd5b);}),this[_0x931116(0x18a)][_0x931116(0x1dd)](_0x42ee76[_0x931116(0x18b)])[_0x931116(0x200)](_0x4dbea4(this[_0x931116(0x227)]))[_0x931116(0x1a9)](_0xb1d7d1=>{var _0xebfefe=_0x931116;const _0x3b6c80=_0xb1d7d1[_0xebfefe(0x1f9)](),_0x168387=this['_entities'][_0xebfefe(0x1eb)](_0x3b6c80);_0x168387==null||_0x168387[_0xebfefe(0x1b8)]();});}async[_0x2ae16c(0x1af)](_0xf9367b){var _0x51af54=_0x2ae16c;const _0x320c63=await this[_0x51af54(0x1f7)][_0x51af54(0x237)](_0xf9367b),_0x3addea=this[_0x51af54(0x23a)][_0x51af54(0x195)](C,_0xf9367b,_0x320c63);return _0x3addea[_0x51af54(0x1b0)](),this['_entities'][_0x51af54(0x202)](_0xf9367b,_0x3addea),_0x3addea;}};I=Z([f(0x0,_0x1a7ea1),f(0x1,_0x593737(_0xe7680d)),f(0x2,_0x593737(_0x4f5af2))],I);var h=(_0x34d445=>(_0x34d445[_0x2ae16c(0x1f1)]='offline',_0x34d445[_0x2ae16c(0x1de)]=_0x2ae16c(0x1df),_0x34d445[_0x2ae16c(0x1c1)]=_0x2ae16c(0x1bd),_0x34d445[_0x2ae16c(0x1d4)]=_0x2ae16c(0x225),_0x34d445[_0x2ae16c(0x19e)]=_0x2ae16c(0x220),_0x34d445))(h||{});const Pe=_0x2ae16c(0x217),Ae=0xc8;let C=class extends _0x55e2fc{constructor(_0xe7ff09,_0xbef96,_0x4fe943,_0x4827c4,_0x16b26d){var _0x2d0e2c=_0x2ae16c;super(),d(this,_0x2d0e2c(0x1f0),new _0x1f3e9c(_0x2d0e2c(0x1df))),d(this,_0x2d0e2c(0x18d),this['_status$'][_0x2d0e2c(0x1a0)]()),d(this,_0x2d0e2c(0x22e),!0x1),d(this,_0x2d0e2c(0x1be),null),d(this,_0x2d0e2c(0x1d8),null),(this[_0x2d0e2c(0x191)]=_0xe7ff09,this['_collabSession']=_0xbef96,this[_0x2d0e2c(0x205)]=_0x4fe943,this[_0x2d0e2c(0x1f2)]=_0x4827c4,this[_0x2d0e2c(0x1ca)]=_0x16b26d);}get[_0x2ae16c(0x189)](){var _0x246a13=_0x2ae16c;return this[_0x246a13(0x1f0)]['getValue']();}[_0x2ae16c(0x1b8)](){var _0x44b047=_0x2ae16c,_0x4fd831;(_0x4fd831=this[_0x44b047(0x1be)])==null||_0x4fd831[_0x44b047(0x1b8)](),this[_0x44b047(0x1f0)][_0x44b047(0x228)](_0x44b047(0x1df)),this[_0x44b047(0x1f0)][_0x44b047(0x235)]();}[_0x2ae16c(0x1b0)](){var _0x1ba29d=_0x2ae16c;this[_0x1ba29d(0x22e)]||(this[_0x1ba29d(0x22e)]=!0x0,this['_collabSession'][_0x1ba29d(0x19c)]['pipe'](_0x4dbea4(this['dispose$']))[_0x1ba29d(0x1a9)](_0x468637=>{var _0x1351be=_0x1ba29d;switch(_0x468637){case _0x4d71b3[_0x1351be(0x1f1)]:this[_0x1351be(0x1da)]();break;case _0x4d71b3['ONLINE']:this[_0x1351be(0x21b)]();break;}}),this[_0x1ba29d(0x208)][_0x1ba29d(0x209)][_0x1ba29d(0x200)](_0x4dbea4(this[_0x1ba29d(0x227)]))[_0x1ba29d(0x1a9)](_0x15ff75=>{var _0x30dc3a=_0x1ba29d;const {eventID:_0x3da848}=_0x15ff75;switch(_0x3da848){case _0x3d2fa7[_0x30dc3a(0x188)]:this[_0x30dc3a(0x192)](_0x15ff75);break;case _0x3d2fa7[_0x30dc3a(0x20b)]:this[_0x30dc3a(0x1ee)](_0x15ff75);break;case _0x3d2fa7[_0x30dc3a(0x193)]:this[_0x30dc3a(0x1f3)]();break;case _0x3d2fa7[_0x30dc3a(0x1c6)]:this[_0x30dc3a(0x203)](_0x15ff75);break;}}));}[_0x2ae16c(0x1c5)](){var _0x4f4765=_0x2ae16c;this['_collabSession'][_0x4f4765(0x196)]({'eventID':_0x3d2fa7['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4f4765(0x191)],'userID':this['_collabSession'][_0x4f4765(0x215)]()}},this[_0x4f4765(0x191)]);}[_0x2ae16c(0x201)](){var _0x13fdf9=_0x2ae16c;this['_status']===_0x13fdf9(0x220)&&(this[_0x13fdf9(0x1f0)][_0x13fdf9(0x228)](_0x13fdf9(0x1df)),this[_0x13fdf9(0x208)][_0x13fdf9(0x196)]({'eventID':_0x3d2fa7[_0x13fdf9(0x193)],'data':{'unitID':this[_0x13fdf9(0x191)]}},this['_unitID']));}[_0x2ae16c(0x1ec)](){var _0x21d8c5=_0x2ae16c;this[_0x21d8c5(0x189)]===_0x21d8c5(0x225)&&(this[_0x21d8c5(0x1f0)]['next'](_0x21d8c5(0x1bd)),this[_0x21d8c5(0x1e9)]());}[_0x2ae16c(0x230)](){var _0x3914cf=_0x2ae16c;this[_0x3914cf(0x189)]==='following'&&this[_0x3914cf(0x1aa)]();}[_0x2ae16c(0x192)](_0x6ebcf2){var _0xcb5cc6=_0x2ae16c;const {presenter:_0x546c64}=_0x6ebcf2['data'],_0x2eaf73=this[_0xcb5cc6(0x208)][_0xcb5cc6(0x215)]();this[_0xcb5cc6(0x1d8)]=_0x546c64,_0x546c64===_0x2eaf73?(this['_stopFollowing'](),this[_0xcb5cc6(0x1e5)]()):this[_0xcb5cc6(0x189)]!==_0xcb5cc6(0x225)&&(this[_0xcb5cc6(0x18e)](),this[_0xcb5cc6(0x1e9)]());}[_0x2ae16c(0x1e6)](){var _0x1258b2=_0x2ae16c;const _0x4a09e8={'eventID':_0x3d2fa7[_0x1258b2(0x1d3)]};this['_collabSession'][_0x1258b2(0x196)](_0x4a09e8,this[_0x1258b2(0x191)]);}[_0x2ae16c(0x1f3)](){var _0x17ceee=_0x2ae16c;this['_presenter']=null,this['_status']!==_0x17ceee(0x220)&&this['_beIdle']();}['_handleNewChangeSets'](_0x597ce8){var _0x451583=_0x2ae16c;if(this[_0x451583(0x189)]===_0x451583(0x1bd)&&this[_0x451583(0x1d8)]===_0x597ce8[_0x451583(0x1f5)]['memberID']){const _0x508eea=_0x5e0ea2(_0x597ce8[_0x451583(0x1f5)])['mutations'][_0x451583(0x197)]()[_0x451583(0x1f4)](_0x39dbb9=>_0x39dbb9['id']===_0x2adb2e['id']);if(_0x508eea){const _0xb111ea=_0x508eea[_0x451583(0x224)][_0x451583(0x219)],_0x107f59=_0x508eea[_0x451583(0x224)]['sheet']['id'];setTimeout(()=>{var _0x3fb99e=_0x451583;this['_commandService'][_0x3fb99e(0x18c)](_0x156019['id'],{'unitId':_0xb111ea,'subUnitId':_0x107f59},{'fromCollab':!0x0});});}}}[_0x2ae16c(0x1e5)](){var _0x2bae0c=_0x2ae16c;this['_status$'][_0x2bae0c(0x228)]('presenting');const _0x8158f=new Map(),_0x49a61b=this[_0x2bae0c(0x1be)]=new _0x2221d0();_0x49a61b['add'](_0x38901e(()=>{var _0x2217bb=_0x2bae0c;_0x8158f[_0x2217bb(0x226)](_0xf9f025=>_0xf9f025[_0x2217bb(0x235)]()),_0x8158f[_0x2217bb(0x20d)]();})),_0x49a61b['add'](this[_0x2bae0c(0x1ca)][_0x2bae0c(0x22c)](_0x340898=>{var _0xcc711e=_0x2bae0c,_0xa3aac9;if(_0x340898['type']!==_0x25c528[_0xcc711e(0x1a2)]||!this[_0xcc711e(0x1f2)][_0xcc711e(0x1a8)](_0x340898['id']))return;const {id:_0x1aeed9}=_0x340898;let _0x749247;_0x8158f[_0xcc711e(0x19b)](_0x1aeed9)?_0x749247=_0x8158f[_0xcc711e(0x1eb)](_0x1aeed9):(_0x749247=new _0x26d562(),_0x8158f[_0xcc711e(0x202)](_0x1aeed9,_0x749247),_0x749247[_0xcc711e(0x200)](_0xa3d9ff((_0xa3aac9=this[_0xcc711e(0x205)][_0xcc711e(0x1cf)](Pe))!=null?_0xa3aac9:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x37d15e=>{var _0x5be08d=_0xcc711e;this['_collabSession'][_0x5be08d(0x196)]({'eventID':_0x3d2fa7['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5be08d(0x191)],'operations':{[_0x37d15e['id']]:{'id':_0x37d15e['id'],'params':JSON['stringify'](_0x37d15e['params'])}}}},this['_unitID']);})),_0x749247[_0xcc711e(0x228)](_0x340898);})),this['_liveShareService'][_0x2bae0c(0x1c9)](this[_0x2bae0c(0x191)])[_0x2bae0c(0x226)](_0x79848b=>this[_0x2bae0c(0x208)][_0x2bae0c(0x196)]({'eventID':_0x3d2fa7[_0x2bae0c(0x20b)],'data':{'unitID':this[_0x2bae0c(0x191)],'operations':{[_0x79848b['id']]:{'id':_0x79848b['id'],'params':JSON['stringify'](_0x79848b[_0x2bae0c(0x224)])}}}},this[_0x2bae0c(0x191)]));}[_0x2ae16c(0x18e)](){var _0x2b9b0a=_0x2ae16c,_0x5472d0;this[_0x2b9b0a(0x1f0)]['next'](_0x2b9b0a(0x1df)),(_0x5472d0=this[_0x2b9b0a(0x1be)])==null||_0x5472d0['dispose'](),this[_0x2b9b0a(0x1be)]=null;}[_0x2ae16c(0x1e9)](){var _0x5e1154=_0x2ae16c,_0x3b39ce;(_0x3b39ce=this[_0x5e1154(0x1be)])==null||_0x3b39ce[_0x5e1154(0x1b8)](),this[_0x5e1154(0x1f0)][_0x5e1154(0x228)]('following');}[_0x2ae16c(0x1d2)](){var _0x344364=_0x2ae16c,_0x3afb1c;this['_status$'][_0x344364(0x228)]('idle'),(_0x3afb1c=this['_commandDisposable'])==null||_0x3afb1c[_0x344364(0x1b8)](),this[_0x344364(0x1be)]=null;}[_0x2ae16c(0x1aa)](){var _0x133a84=_0x2ae16c,_0xcf13b2;this[_0x133a84(0x1f0)][_0x133a84(0x228)](_0x133a84(0x225)),(_0xcf13b2=this[_0x133a84(0x1be)])==null||_0xcf13b2[_0x133a84(0x1b8)]();}[_0x2ae16c(0x1ee)](_0x31dd84){var _0x280522=_0x2ae16c;if([_0x280522(0x220),'not-following',_0x280522(0x233)][_0x280522(0x1b3)](this[_0x280522(0x189)])||!_0x31dd84[_0x280522(0x1f5)][_0x280522(0x21d)]||_0x31dd84['data']['presenter']===this['_collabSession'][_0x280522(0x215)]())return;this['_status']===_0x280522(0x1df)&&this[_0x280522(0x1e9)]();const _0x1c588e=_0x31dd84[_0x280522(0x1f5)][_0x280522(0x1ac)];Object[_0x280522(0x1ff)](_0x1c588e)[_0x280522(0x226)](_0x4bad81=>{var _0x27d4e6=_0x280522;this['_commandService'][_0x27d4e6(0x18c)](_0x4bad81['id'],_0x4bad81['params']?JSON['parse'](_0x4bad81[_0x27d4e6(0x224)]):null,{'fromCollab':!0x0});});}[_0x2ae16c(0x1da)](){var _0x38479d=_0x2ae16c,_0x5827fc;this[_0x38479d(0x1f0)][_0x38479d(0x228)](_0x38479d(0x233)),(_0x5827fc=this[_0x38479d(0x1be)])==null||_0x5827fc[_0x38479d(0x1b8)]();}['_handleOnline'](){var _0x4ef888=_0x2ae16c;this['_status$'][_0x4ef888(0x228)](_0x4ef888(0x1df)),this['_fetchOperations']();}};C=Z([f(0x2,_0x1ad72f),f(0x3,_0x593737(L)),f(0x4,_0x560e7e)],C);function Te(){var _0x270f9c=_0x2ae16c;const _0x366ceb=_0x1d89de(I),_0x1db121=_0x1d89de(_0x1a7ea1),_0x111726=_0x19ab69(()=>_0x1db121[_0x270f9c(0x21c)](_0x42ee76[_0x270f9c(0x18b)]),void 0x0,!0x1,[]),[_0x1a154d,_0x27e377]=_0x2c2ba0(null),[_0x32735b,_0x4a9be2]=_0x2c2ba0(h[_0x270f9c(0x1de)]),_0x473a86=_0x19b438(null);return _0x5d5c39(()=>(_0x111726&&_0x366ceb[_0x270f9c(0x1a3)](_0x111726[_0x270f9c(0x1f9)]())[_0x270f9c(0x206)](_0x4c87e0=>{var _0x510372=_0x270f9c;_0x27e377(_0x4c87e0),_0x473a86[_0x510372(0x1d7)]=_0x4c87e0[_0x510372(0x18d)][_0x510372(0x1a9)](_0x5bbbcc=>{_0x4a9be2(_0x5bbbcc);});}),()=>{var _0x12611d=_0x270f9c,_0x382f64;(_0x382f64=_0x473a86['current'])==null||_0x382f64[_0x12611d(0x1ed)](),_0x473a86[_0x12611d(0x1d7)]=null;}),[_0x111726,_0x366ceb]),_0x1a154d?_0xa8e486(_0x524d08,{'align':_0x270f9c(0x1cd),'disabled':_0x32735b===h[_0x270f9c(0x1f1)],'className':_0x270f9c(0x1a5),'overlay':_0xa8e486($e,{'status':_0x32735b,'coordinator':_0x1a154d}),'children':_0xa8e486(_0x270f9c(0x1fe),{'className':_0x4589dc(_0x270f9c(0x216),{'univer-cursor-not-allowed':_0x32735b===h[_0x270f9c(0x1f1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x32735b!==h['OFFLINE']}),'type':_0x270f9c(0x1fe),'children':_0xa8e486(B,{'className':'univer-size-4'})})}):null;}function $e(_0x4361de){var _0x188f47=_0x2ae16c;const {status:_0xe43e89,coordinator:_0x415664}=_0x4361de;switch(_0xe43e89){case h[_0x188f47(0x1de)]:return _0xa8e486(Fe,{'coordinator':_0x415664});case h['FOLLOWING']:return _0xa8e486(He,{'coordinator':_0x415664});case h[_0x188f47(0x1d4)]:return _0xa8e486(je,{'coordinator':_0x415664});case h['OFFLINE']:return _0xa8e486(Ve,{});case h[_0x188f47(0x19e)]:return _0xa8e486(Ue,{'coordinator':_0x415664});default:return null;}}function Fe(_0x1e3967){var _0x3be6d6=_0x2ae16c;const {coordinator:_0x32f419}=_0x1e3967;return _0x1f8228(_0xa79dd,{'children':[_0xa8e486(_0x3be6d6(0x238),{'className':_0x3be6d6(0x210),'children':'Present\x20this\x20document'}),_0xa8e486(_0x2cd243,{'onClick':()=>_0x32f419[_0x3be6d6(0x1c5)](),'children':_0x3be6d6(0x22a)})]});}function He(_0x1b6d8c){var _0x24e68c=_0x2ae16c;const {coordinator:_0x3eadb2}=_0x1b6d8c;return _0x1f8228(_0xa79dd,{'children':[_0xa8e486('div',{'className':_0x24e68c(0x210),'children':_0x24e68c(0x22f)}),_0xa8e486(_0x2cd243,{'onClick':()=>_0x3eadb2[_0x24e68c(0x230)](),'children':_0x24e68c(0x19f)})]});}function je(_0x18c8d3){var _0x25dade=_0x2ae16c;const {coordinator:_0x543bc4}=_0x18c8d3;return _0x1f8228(_0xa79dd,{'children':[_0xa8e486(_0x25dade(0x238),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0xa8e486(_0x2cd243,{'variant':_0x25dade(0x1f8),'onClick':()=>_0x543bc4[_0x25dade(0x1ec)](),'children':_0x25dade(0x221)})]});}function Ue(_0x278160){var _0x35ca53=_0x2ae16c;const {coordinator:_0xb102b2}=_0x278160;return _0x1f8228(_0xa79dd,{'children':[_0xa8e486(_0x35ca53(0x238),{'className':_0x35ca53(0x210),'children':'You\x27re\x20presenting\x20the\x20document'}),_0xa8e486(_0x2cd243,{'variant':_0x35ca53(0x1b7),'onClick':()=>_0xb102b2['stopPresenting'](),'children':_0x35ca53(0x204)})]});}function Ve(){var _0x6db873=_0x2ae16c;return _0xa8e486(_0xa79dd,{'children':_0x6db873(0x1ef)});}var Me=Object[_0x2ae16c(0x1c7)],ke=(_0x578e67,_0x32fb8a,_0x4671da,_0x255013)=>{var _0x4a4485=_0x2ae16c;for(var _0xb9955f=_0x255013>0x1?void 0x0:_0x255013?Me(_0x32fb8a,_0x4671da):_0x32fb8a,_0x2ecdd8=_0x578e67[_0x4a4485(0x1d1)]-0x1,_0x266d4a;_0x2ecdd8>=0x0;_0x2ecdd8--)(_0x266d4a=_0x578e67[_0x2ecdd8])&&(_0xb9955f=_0x266d4a(_0xb9955f)||_0xb9955f);return _0xb9955f;},$=(_0x464c7c,_0x3518fd)=>(_0xe7439e,_0x5b6234)=>_0x3518fd(_0xe7439e,_0x5b6234,_0x464c7c);let b=class extends _0x2ccbb9{constructor(_0x2ef606,_0x397593){var _0x28636e=_0x2ae16c;super(),this['_injector']=_0x2ef606,this['_uiPartsService']=_0x397593,this[_0x28636e(0x1e2)]();}[_0x2ae16c(0x1e2)](){var _0x2cfd3e=_0x2ae16c;this[_0x2cfd3e(0x199)](this[_0x2cfd3e(0x1b5)][_0x2cfd3e(0x207)](_0x596006['HEADER_MENU'],()=>_0x9eed15(Te,this[_0x2cfd3e(0x23a)])));}};b=ke([$(0x0,_0x593737(_0xe7680d)),$(0x1,_0x5f57dd)],b);var Ge=Object[_0x2ae16c(0x1a6)],We=Object[_0x2ae16c(0x1c7)],Ye=(_0x166beb,_0x3e1a19,_0x166ed0)=>_0x3e1a19 in _0x166beb?Ge(_0x166beb,_0x3e1a19,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x166ed0}):_0x166beb[_0x3e1a19]=_0x166ed0,Be=(_0x4c07a7,_0x294604,_0x57ddd7,_0x4cf621)=>{var _0x3adfa0=_0x2ae16c;for(var _0x2fcda0=_0x4cf621>0x1?void 0x0:_0x4cf621?We(_0x294604,_0x57ddd7):_0x294604,_0x4fd524=_0x4c07a7[_0x3adfa0(0x1d1)]-0x1,_0x5d60c9;_0x4fd524>=0x0;_0x4fd524--)(_0x5d60c9=_0x4c07a7[_0x4fd524])&&(_0x2fcda0=_0x5d60c9(_0x2fcda0)||_0x2fcda0);return _0x2fcda0;},F=(_0x10f85c,_0x4f97cd)=>(_0x2035bb,_0x50b9d2)=>_0x4f97cd(_0x2035bb,_0x50b9d2,_0x10f85c),J=(_0xfc3a84,_0x4ec3e0,_0x1b3036)=>Ye(_0xfc3a84,typeof _0x4ec3e0!=_0x2ae16c(0x1b4)?_0x4ec3e0+'':_0x4ec3e0,_0x1b3036);const Ze=_0x2ae16c(0x194);let O=class extends _0x463199{constructor(_0xf2db2d=T,_0x1daa97,_0x4f9231){var _0x3b06d9=_0x2ae16c;super(),this[_0x3b06d9(0x22d)]=_0xf2db2d,this[_0x3b06d9(0x23a)]=_0x1daa97,this[_0x3b06d9(0x205)]=_0x4f9231;const {..._0x47819c}=_0x54fc87({},T,this[_0x3b06d9(0x22d)]);this['_configService'][_0x3b06d9(0x19d)](Oe,_0x47819c);}[_0x2ae16c(0x22b)](){var _0x446671=_0x2ae16c;_0x3f2cd6(this['_injector'],_0x43b81e([[L],[I],[m],[b]],this['_config'][_0x446671(0x1a4)])),_0x5144c9(this[_0x446671(0x23a)],[[m]]);}[_0x2ae16c(0x21a)](){var _0x49194e=_0x2ae16c;_0x5144c9(this[_0x49194e(0x23a)],[[b]]);}};J(O,'type',_0x42ee76[_0x2ae16c(0x1c8)]),J(O,_0x2ae16c(0x1ab),Ze),O=Be([_0x46cf58(_0x27f278),F(0x1,_0x593737(_0xe7680d)),F(0x2,_0x1ad72f)],O);function _0x5400(){var _0x307fac=['live-share-icon','assign','button','values','pipe','stopPresenting','set','_handleNewChangeSets','Stop\x20presenting','_configService','then','registerComponent','_collabSession','event$','defIds','LIVESHARE_OPERATION','className','clear','getTypeOfUnitAdded$','evenodd','univer-w-full\x20univer-mb-3\x20univer-text-sm','indexOf','colorChannel1','attrs','map','getMemberID','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','SAME_OPERATION_SHARE_INTERVAL','_sharedOperations','unitId','onRendered','_handleOnline','getCurrentTypeOfUnit$','presenter','tag','700092xupCNK','presenting','Start\x20following','registerSharedOperation','use','params','not-following','forEach','dispose$','next','from','Start','onStarting','onCommandExecuted','_config','_init','You\x27re\x20following\x20the\x20presenter','stopFollowing','substring','extend','offline','currentColor','complete','none','requireSession','div','xlink:href','_injector','LIVESHARE_NEW_HOST','_status','_univerInstanceService','UNIVER_SHEET','executeCommand','status$','_stopPresenting','_entities','1128128xROgEQ','_unitID','_handleNewHost','LIVESHARE_TERMINATE','UNIVER_LIVE_SHARE_PLUGIN','createInstance','send','reverse','propertyIsEnumerable','disposeWithMe','entries','has','sessionStatus$','setConfig','PRESENTING','Stop\x20following','asObservable','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','OPERATION','getLiveShareCoordinator','override','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','defineProperty','hasOwnProperty','shouldShareOperation','subscribe','_stopFollowing','pluginName','operations','function','replace','_startLiveShareCoordinator','init','apply','834608QrcUCx','includes','symbol','_uiPartsService','1512696knbjby','default','dispose','univerjs-icon\x20univerjs-icon-','getOwnPropertySymbols','icon','156177zJwaFO','following','_commandDisposable','128567tMYgxT','url(#$1','FOLLOWING','fill','live-share.config','prototype','tryStartPresenting','NEW_CHANGESETS','getOwnPropertyDescriptor','UNIVER_UNKNOWN','getInitialStates','_commandService','add','http://www.w3.org/2000/svg','end','displayName','getConfig','delete','length','_beIdle','LIVESHARE_FETCH_OPERATIONS','NOT_FOLLOWING','children','109992AXBiPy','current','_presenter','string','_handleOffline','mask','call','getTypeOfUnitDisposed$','IDLE','idle','idSuffix','path','_mountLiveShare','0\x200\x2017\x2017','160qfxzIe','_startPresenting','_fetchOperations','toString','1em','_startFollowing','_reporters','get','startFollowing','unsubscribe','_handleOperation','You\x27are\x20offline.','_status$','OFFLINE','_liveShareService','_handleTerminate','find','data','concat','_collabSessionService','text','getUnitId','LiveShareIcon','56RRufVu'];_0x5400=function(){return _0x307fac;};return _0x5400();}export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x44a38e=_0x5210;(function(_0x2bd1fc,_0x57525d){var _0xd6ff57=_0x5210,_0x1796cc=_0x2bd1fc();while(!![]){try{var _0x2260d1=parseInt(_0xd6ff57(0x22f))/0x1+parseInt(_0xd6ff57(0x1df))/0x2*(-parseInt(_0xd6ff57(0x219))/0x3)+parseInt(_0xd6ff57(0x21a))/0x4+parseInt(_0xd6ff57(0x202))/0x5*(-parseInt(_0xd6ff57(0x1c3))/0x6)+parseInt(_0xd6ff57(0x222))/0x7*(-parseInt(_0xd6ff57(0x20f))/0x8)+-parseInt(_0xd6ff57(0x1f8))/0x9+-parseInt(_0xd6ff57(0x1d2))/0xa*(-parseInt(_0xd6ff57(0x234))/0xb);if(_0x2260d1===_0x57525d)break;else _0x1796cc['push'](_0x1796cc['shift']());}catch(_0x465936){_0x1796cc['push'](_0x1796cc['shift']());}}}(_0x1d92,0x46b95));var q=Object['defineProperty'],z=(_0x12ccf7,_0x531d25,_0x55546a)=>_0x531d25 in _0x12ccf7?q(_0x12ccf7,_0x531d25,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55546a}):_0x12ccf7[_0x531d25]=_0x55546a,d=(_0x2fdc7b,_0x1e603e,_0x10d911)=>z(_0x2fdc7b,typeof _0x1e603e!=_0x44a38e(0x225)?_0x1e603e+'':_0x1e603e,_0x10d911);import{CollaborationSessionService as _0x4332dd,SessionStatus as _0x5cd0d9,UniverCollaborationClientPlugin as _0x590024}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4588cf,toDisposable as _0x542c96,Inject as _0x402fd8,IUniverInstanceService as _0x38e063,Injector as _0x35ad8c,IConfigService as _0xf56aa6,ICommandService as _0xbc9001,RxDisposable as _0x1a4ef2,UniverInstanceType as _0x352077,DisposableCollection as _0x31be81,CommandType as _0x587d99,DependentOn as _0x432e83,Plugin as _0x3f708e,merge as _0x48ee6f,registerDependencies as _0x1e03e5,mergeOverrideWithDependencies as _0x4114d9,touchDependencies as _0x5794c1}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x5d195d,InsertSheetMutation as _0x2e6231}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x51a6c1,SetScrollOperation as _0x5988dd}from'@univerjs/sheets-ui';import{useDependency as _0x6987fc,useObservable as _0x33556f,IUIPartsService as _0x5df520,BuiltInUIPart as _0x251823,connectInjector as _0x219119}from'@univerjs/ui';import{jsx as _0x5abe92,jsxs as _0x3d9b98,Fragment as _0x1cc7ae}from'react/jsx-runtime';import{Dropdown as _0xa0c5fc,clsx as _0x146803,Button as _0x5bb26b}from'@univerjs/design';import{forwardRef as _0x5d9349,useRef as _0x352723,createElement as _0x33097c,useState as _0x9bb103,useEffect as _0x1fb546}from'react';import{CollaborationEvent as _0x39d58c,parseProtocolChangeset as _0x5b9873}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x3e6bed,Subject as _0x468373}from'rxjs';import{takeUntil as _0x26dabd,throttleTime as _0x2477f4}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x4588cf{constructor(){var _0x450436=_0x44a38e;super(...arguments),d(this,_0x450436(0x1f3),new Set()),d(this,_0x450436(0x19a),new Set());}['registerSharedOperation'](_0x12f9a3){var _0x2ffef7=_0x44a38e;return this['_sharedOperations'][_0x2ffef7(0x1e2)](_0x12f9a3),_0x542c96(()=>this[_0x2ffef7(0x1f3)][_0x2ffef7(0x1ad)](_0x12f9a3));}[_0x44a38e(0x19b)](_0x3ed1b1){var _0x32dda4=_0x44a38e;return this[_0x32dda4(0x19a)][_0x32dda4(0x1e2)](_0x3ed1b1),_0x542c96(()=>this[_0x32dda4(0x19a)][_0x32dda4(0x1ad)](_0x3ed1b1));}[_0x44a38e(0x1fb)](_0x47fccd){var _0x33ebb6=_0x44a38e;return this[_0x33ebb6(0x1f3)][_0x33ebb6(0x229)](_0x47fccd);}[_0x44a38e(0x1ac)](_0x109724){var _0x59f628=_0x44a38e;return Array[_0x59f628(0x1f2)](this[_0x59f628(0x19a)])[_0x59f628(0x238)](_0x27c608=>_0x27c608(_0x109724));}}var Ee=Object[_0x44a38e(0x1ee)],we=(_0x29dcd8,_0x40918b,_0x3263ce,_0x2cdb0d)=>{var _0x3562e8=_0x44a38e;for(var _0x3ec048=_0x2cdb0d>0x1?void 0x0:_0x2cdb0d?Ee(_0x40918b,_0x3263ce):_0x40918b,_0x2f8e46=_0x29dcd8[_0x3562e8(0x1b0)]-0x1,_0x3a9e36;_0x2f8e46>=0x0;_0x2f8e46--)(_0x3a9e36=_0x29dcd8[_0x2f8e46])&&(_0x3ec048=_0x3a9e36(_0x3ec048)||_0x3ec048);return _0x3ec048;},Ne=(_0xfead09,_0x47db38)=>(_0x1dbe58,_0x3c9508)=>_0x47db38(_0x1dbe58,_0x3c9508,_0xfead09);let m=class extends _0x4588cf{constructor(_0x564efd){var _0x73fbb5=_0x44a38e;super(),this[_0x73fbb5(0x1c9)]=_0x564efd,this[_0x73fbb5(0x1e7)]();}[_0x44a38e(0x1e7)](){var _0x3bbdc6=_0x44a38e;[_0x51a6c1['id'],_0x5988dd['id'],_0x5d195d['id']][_0x3bbdc6(0x1aa)](_0x33afda=>{var _0x5c99d8=_0x3bbdc6;this[_0x5c99d8(0x1a9)](this[_0x5c99d8(0x1c9)][_0x5c99d8(0x227)](_0x33afda));});}};function _0x1d92(){var _0x2edc4a=['Present\x20this\x20document','2292246itAuwo','UNIVER_UNKNOWN','SAME_OPERATION_SHARE_INTERVAL','shouldShareOperation','getUnitId','includes','sheet','setConfig','getOwnPropertySymbols','_config','5vXogKa','pluginName','_handleNewHost','random','_commandDisposable','OPERATION','_uiPartsService','registerComponent','icon','_stopPresenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','_presenter','path','32PsTQaQ','call','init','_collabSession','assign','set','fill','pipe','Stop\x20following','indexOf','25014BwPgwH','1916088cRluSv','stringify','getValue','xlink:href','complete','parse','subscribe','evenodd','762986khUtMI','apply','propertyIsEnumerable','symbol','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','registerSharedOperation','_configService','has','use','concat','attrs','status$','onRendered','485461QIXcod','_startPresenting','_injector','asObservable','dispose$','145156hGaBVM','className','onStarting','_startFollowing','map','getMemberID','operations','button','send','_handleNewChangeSets','UNIVER_LIVE_SHARE_PLUGIN','currentColor','LIVESHARE_OPERATION','substring','url(#$1','LiveShareIcon','_status','univerjs-icon\x20univerjs-icon-','_handleOffline','toString','You\x27re\x20following\x20the\x20presenter','OFFLINE','stopFollowing','_status$','IDLE','idSuffix','startFollowing','memberID','end','_reporters','registerInitialStateReporter','entries','colorChannel1','replace','NEW_CHANGESETS','defs','hasOwnProperty','NOT_FOLLOWING','text','LIVESHARE_FETCH_OPERATIONS','trim','idle','getCurrentTypeOfUnit$','_entities','disposeWithMe','forEach','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','getInitialStates','delete','FOLLOWING','prototype','length','none','PRESENTING','not-following','_mountLiveShare','function','presenter','current','getConfig','mask','_stopFollowing','HEADER_MENU','executeCommand','_handleTerminate','next','string','data','You\x27are\x20offline.','Stop\x20presenting','2366556nZlceb','get','extend','stopPresenting','UNIVER_SHEET','div','_liveShareService','_unitID','type','params','values','find','_commandService','getTypeOfUnitDisposed$','unitId','570tNtSxZ','UniverIcon','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','dispose','_fetchOperations','then','default','_handleOperation','LIVESHARE_NEW_HOST','LIVESHARE_TERMINATE','displayName','mutations','event$','82ijhUkU','tag','defIds','add','offline','presenting','children','_beIdle','_init','1em','ONLINE','svg','tryStartPresenting','getTypeOfUnitAdded$','_univerInstanceService','getOwnPropertyDescriptor','0\x200\x2017\x2017','_startLiveShareCoordinator','reverse','from','_sharedOperations','_handleOnline','following','_collabSessionService'];_0x1d92=function(){return _0x2edc4a;};return _0x1d92();}m=we([Ne(0x0,_0x402fd8(L))],m);function _0x5210(_0x49b6a6,_0x14a8f4){var _0x1d92af=_0x1d92();return _0x5210=function(_0x5210eb,_0x431c83){_0x5210eb=_0x5210eb-0x185;var _0x5c2e7e=_0x1d92af[_0x5210eb];return _0x5c2e7e;},_0x5210(_0x49b6a6,_0x14a8f4);}var c=function(){var _0x1c18b3=_0x44a38e;return c=Object['assign']||function(_0x1d0786){var _0x3fdaa1=_0x5210;for(var _0x4c249c,_0x2de348=0x1,_0x19afdf=arguments['length'];_0x2de348<_0x19afdf;_0x2de348++){_0x4c249c=arguments[_0x2de348];for(var _0x10c50a in _0x4c249c)Object[_0x3fdaa1(0x1af)][_0x3fdaa1(0x1a1)][_0x3fdaa1(0x210)](_0x4c249c,_0x10c50a)&&(_0x1d0786[_0x10c50a]=_0x4c249c[_0x10c50a]);}return _0x1d0786;},c[_0x1c18b3(0x223)](this,arguments);},Ce=function(_0x1ce49c,_0x22ca65){var _0x3c3017=_0x44a38e,_0x2d564f={};for(var _0x1d3fe9 in _0x1ce49c)Object[_0x3c3017(0x1af)][_0x3c3017(0x1a1)][_0x3c3017(0x210)](_0x1ce49c,_0x1d3fe9)&&_0x22ca65[_0x3c3017(0x218)](_0x1d3fe9)<0x0&&(_0x2d564f[_0x1d3fe9]=_0x1ce49c[_0x1d3fe9]);if(_0x1ce49c!=null&&typeof Object[_0x3c3017(0x200)]==_0x3c3017(0x1b5)){for(var _0x295c17=0x0,_0x1d3fe9=Object['getOwnPropertySymbols'](_0x1ce49c);_0x295c17<_0x1d3fe9['length'];_0x295c17++)_0x22ca65['indexOf'](_0x1d3fe9[_0x295c17])<0x0&&Object['prototype'][_0x3c3017(0x224)][_0x3c3017(0x210)](_0x1ce49c,_0x1d3fe9[_0x295c17])&&(_0x2d564f[_0x1d3fe9[_0x295c17]]=_0x1ce49c[_0x1d3fe9[_0x295c17]]);}return _0x2d564f;},W=_0x5d9349(function(_0x4e88d8,_0xbc55f){var _0x34be58=_0x44a38e,_0x4f5415=_0x4e88d8[_0x34be58(0x20a)],_0x27aff9=_0x4e88d8['id'],_0x1d2e80=_0x4e88d8[_0x34be58(0x235)],_0x26197c=_0x4e88d8[_0x34be58(0x1c5)],_0x88facc=Ce(_0x4e88d8,[_0x34be58(0x20a),'id',_0x34be58(0x235),'extend']),_0x55ca52=_0x34be58(0x18e)['concat'](_0x27aff9,'\x20')[_0x34be58(0x22b)](_0x1d2e80||'')[_0x34be58(0x1a5)](),_0x31a178=_0x352723('_'['concat'](Le()));return Y(_0x4f5415,''['concat'](_0x27aff9),{'defIds':_0x4f5415[_0x34be58(0x1e1)],'idSuffix':_0x31a178['current']},c({'ref':_0xbc55f,'className':_0x55ca52},_0x88facc),_0x26197c);});function Y(_0x2ff156,_0x43bb65,_0x485058,_0x53861c,_0x4bf2f4){var _0x158f74=_0x44a38e;return _0x33097c(_0x2ff156[_0x158f74(0x1e0)],c(c({'key':_0x43bb65},De(_0x2ff156,_0x485058,_0x4bf2f4)),_0x53861c),(xe(_0x2ff156,_0x485058)[_0x158f74(0x1e5)]||[])[_0x158f74(0x238)](function(_0x35caec,_0xf61440){var _0x23da1d=_0x158f74;return Y(_0x35caec,''[_0x23da1d(0x22b)](_0x43bb65,'-')[_0x23da1d(0x22b)](_0x2ff156[_0x23da1d(0x1e0)],'-')[_0x23da1d(0x22b)](_0xf61440),_0x485058,void 0x0,_0x4bf2f4);}));}function De(_0x5e1f5c,_0x277573,_0x3fbb34){var _0x5c0e12=_0x44a38e,_0x10f77c=c({},_0x5e1f5c[_0x5c0e12(0x22c)]);_0x3fbb34!=null&&_0x3fbb34[_0x5c0e12(0x19d)]&&_0x10f77c[_0x5c0e12(0x215)]==='colorChannel1'&&(_0x10f77c[_0x5c0e12(0x215)]=_0x3fbb34['colorChannel1']),_0x5e1f5c[_0x5c0e12(0x1e0)]===_0x5c0e12(0x1b9)&&_0x10f77c['id']&&(_0x10f77c['id']=_0x10f77c['id']+_0x277573[_0x5c0e12(0x196)]),Object[_0x5c0e12(0x19c)](_0x10f77c)[_0x5c0e12(0x1aa)](function(_0x101e5c){var _0x3dc3dd=_0x5c0e12,_0x14500d=_0x101e5c[0x0],_0x13391e=_0x101e5c[0x1];_0x14500d===_0x3dc3dd(0x1b9)&&typeof _0x13391e==_0x3dc3dd(0x1bf)&&(_0x10f77c[_0x14500d]=_0x13391e[_0x3dc3dd(0x19e)](/url\(#(.*)\)/,'url(#$1'[_0x3dc3dd(0x22b)](_0x277573[_0x3dc3dd(0x196)],')')));});var _0x2adcd1=_0x277573[_0x5c0e12(0x1e1)];return!_0x2adcd1||_0x2adcd1[_0x5c0e12(0x1b0)]===0x0||(_0x5e1f5c[_0x5c0e12(0x1e0)]===_0x5c0e12(0x22a)&&_0x10f77c[_0x5c0e12(0x21d)]&&(_0x10f77c['xlink:href']=_0x10f77c[_0x5c0e12(0x21d)]+_0x277573[_0x5c0e12(0x196)]),Object['entries'](_0x10f77c)[_0x5c0e12(0x1aa)](function(_0x27c93a){var _0x4915ee=_0x5c0e12,_0x16c555=_0x27c93a[0x0],_0x4436ba=_0x27c93a[0x1];typeof _0x4436ba==_0x4915ee(0x1bf)&&(_0x10f77c[_0x16c555]=_0x4436ba[_0x4915ee(0x19e)](/url\(#(.*)\)/,_0x4915ee(0x18b)[_0x4915ee(0x22b)](_0x277573[_0x4915ee(0x196)],')')));})),_0x10f77c;}function xe(_0x129935,_0x298d1d){var _0x1126a7=_0x44a38e,_0xceda42,_0xae3267=_0x298d1d[_0x1126a7(0x1e1)];return!_0xae3267||_0xae3267[_0x1126a7(0x1b0)]===0x0?_0x129935:_0x129935[_0x1126a7(0x1e0)]===_0x1126a7(0x1a0)&&(!((_0xceda42=_0x129935[_0x1126a7(0x1e5)])===null||_0xceda42===void 0x0)&&_0xceda42[_0x1126a7(0x1b0)])?c(c({},_0x129935),{'children':_0x129935[_0x1126a7(0x1e5)]['map'](function(_0x4c640b){var _0x97e184=_0x1126a7;return typeof _0x4c640b[_0x97e184(0x22c)]['id']=='string'&&_0xae3267&&_0xae3267[_0x97e184(0x1fd)](_0x4c640b[_0x97e184(0x22c)]['id'])?c(c({},_0x4c640b),{'attrs':c(c({},_0x4c640b[_0x97e184(0x22c)]),{'id':_0x4c640b[_0x97e184(0x22c)]['id']+_0x298d1d[_0x97e184(0x196)]})}):_0x4c640b;})}):_0x129935;}function Le(){var _0x1201c7=_0x44a38e;return Math[_0x1201c7(0x205)]()[_0x1201c7(0x190)](0x24)[_0x1201c7(0x18a)](0x2,0x8);}W[_0x44a38e(0x1dc)]=_0x44a38e(0x1d3);var ye={'tag':_0x44a38e(0x1ea),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x44a38e(0x1b1),'viewBox':_0x44a38e(0x1ef),'width':_0x44a38e(0x1e8),'height':_0x44a38e(0x1e8)},'children':[{'tag':_0x44a38e(0x20e),'attrs':{'fill':'currentColor','d':_0x44a38e(0x1ab)}},{'tag':'path','attrs':{'fill':_0x44a38e(0x188),'d':_0x44a38e(0x226),'fillRule':_0x44a38e(0x221),'clipRule':_0x44a38e(0x221)}}]},B=_0x5d9349(function(_0x548cdd,_0x441e0e){var _0x41f1c6=_0x44a38e;return _0x33097c(W,Object[_0x41f1c6(0x213)]({},_0x548cdd,{'id':'live-share-icon','ref':_0x441e0e,'icon':ye}));});B[_0x44a38e(0x1dc)]=_0x44a38e(0x18c);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x1013d8,_0x72f2f0,_0x4e0931,_0x418dcb)=>{for(var _0x5bb2d4=_0x418dcb>0x1?void 0x0:_0x418dcb?Re(_0x72f2f0,_0x4e0931):_0x72f2f0,_0x1ec6ac=_0x1013d8['length']-0x1,_0x532abb;_0x1ec6ac>=0x0;_0x1ec6ac--)(_0x532abb=_0x1013d8[_0x1ec6ac])&&(_0x5bb2d4=_0x532abb(_0x5bb2d4)||_0x5bb2d4);return _0x5bb2d4;},f=(_0x3532e5,_0x7db54f)=>(_0x269797,_0x2b0256)=>_0x7db54f(_0x269797,_0x2b0256,_0x3532e5);let I=class extends _0x1a4ef2{constructor(_0x4e5069,_0x434b81,_0x4496ad){var _0x27dd97=_0x44a38e;super(),d(this,_0x27dd97(0x1a8),new Map()),(this[_0x27dd97(0x1ed)]=_0x4e5069,this[_0x27dd97(0x231)]=_0x434b81,this['_collabSessionService']=_0x4496ad,this[_0x27dd97(0x1e7)]());}async['getLiveShareCoordinator'](_0x285a93){var _0x3df7cb=_0x44a38e;return this[_0x3df7cb(0x1a8)][_0x3df7cb(0x229)](_0x285a93)||await this[_0x3df7cb(0x1f0)](_0x285a93),this[_0x3df7cb(0x1a8)][_0x3df7cb(0x1c4)](_0x285a93);}['_init'](){var _0x47eff5=_0x44a38e;this[_0x47eff5(0x1ed)][_0x47eff5(0x1ec)](_0x352077[_0x47eff5(0x1c7)])[_0x47eff5(0x216)](_0x26dabd(this[_0x47eff5(0x233)]))[_0x47eff5(0x220)](async _0x28b6f4=>{var _0x10cb82=_0x47eff5;const _0x489cc1=_0x28b6f4[_0x10cb82(0x1fc)]();this[_0x10cb82(0x1a8)]['has'](_0x489cc1)||this['_startLiveShareCoordinator'](_0x489cc1);}),this[_0x47eff5(0x1ed)][_0x47eff5(0x1d0)](_0x352077[_0x47eff5(0x1c7)])['pipe'](_0x26dabd(this['dispose$']))['subscribe'](_0x3bb172=>{var _0x48f94f=_0x47eff5;const _0x15f6e3=_0x3bb172[_0x48f94f(0x1fc)](),_0x3f7c32=this[_0x48f94f(0x1a8)]['get'](_0x15f6e3);_0x3f7c32==null||_0x3f7c32['dispose']();});}async[_0x44a38e(0x1f0)](_0x3ea219){var _0x20f261=_0x44a38e;const _0x1ca947=await this[_0x20f261(0x1f6)]['requireSession'](_0x3ea219),_0x3aa915=this[_0x20f261(0x231)]['createInstance'](C,_0x3ea219,_0x1ca947);return _0x3aa915[_0x20f261(0x211)](),this[_0x20f261(0x1a8)]['set'](_0x3ea219,_0x3aa915),_0x3aa915;}};I=Z([f(0x0,_0x38e063),f(0x1,_0x402fd8(_0x35ad8c)),f(0x2,_0x402fd8(_0x4332dd))],I);var h=(_0x475651=>(_0x475651[_0x44a38e(0x192)]=_0x44a38e(0x1e3),_0x475651[_0x44a38e(0x195)]=_0x44a38e(0x1a6),_0x475651[_0x44a38e(0x1ae)]=_0x44a38e(0x1f5),_0x475651['NOT_FOLLOWING']=_0x44a38e(0x1b3),_0x475651[_0x44a38e(0x1b2)]=_0x44a38e(0x1e4),_0x475651))(h||{});const Pe=_0x44a38e(0x1fa),Ae=0xc8;let C=class extends _0x1a4ef2{constructor(_0x308ca7,_0x3c30a1,_0x210b27,_0x229886,_0x5a9045){var _0x1b864e=_0x44a38e;super(),d(this,_0x1b864e(0x194),new _0x3e6bed('idle')),d(this,_0x1b864e(0x22d),this[_0x1b864e(0x194)][_0x1b864e(0x232)]()),d(this,_0x1b864e(0x1e7),!0x1),d(this,'_commandDisposable',null),d(this,_0x1b864e(0x20d),null),(this[_0x1b864e(0x1ca)]=_0x308ca7,this[_0x1b864e(0x212)]=_0x3c30a1,this[_0x1b864e(0x228)]=_0x210b27,this[_0x1b864e(0x1c9)]=_0x229886,this[_0x1b864e(0x1cf)]=_0x5a9045);}get[_0x44a38e(0x18d)](){var _0x26d5a6=_0x44a38e;return this['_status$'][_0x26d5a6(0x21c)]();}[_0x44a38e(0x1d5)](){var _0x220952=_0x44a38e,_0x56f64b;(_0x56f64b=this['_commandDisposable'])==null||_0x56f64b[_0x220952(0x1d5)](),this[_0x220952(0x194)][_0x220952(0x1be)](_0x220952(0x1a6)),this[_0x220952(0x194)][_0x220952(0x21e)]();}[_0x44a38e(0x211)](){var _0x35d660=_0x44a38e;this[_0x35d660(0x1e7)]||(this[_0x35d660(0x1e7)]=!0x0,this['_collabSession']['sessionStatus$'][_0x35d660(0x216)](_0x26dabd(this['dispose$']))['subscribe'](_0x56b4ed=>{var _0x1b417b=_0x35d660;switch(_0x56b4ed){case _0x5cd0d9[_0x1b417b(0x192)]:this[_0x1b417b(0x18f)]();break;case _0x5cd0d9[_0x1b417b(0x1e9)]:this[_0x1b417b(0x1f4)]();break;}}),this['_collabSession'][_0x35d660(0x1de)][_0x35d660(0x216)](_0x26dabd(this[_0x35d660(0x233)]))[_0x35d660(0x220)](_0x262533=>{var _0x29a345=_0x35d660;const {eventID:_0x47bddd}=_0x262533;switch(_0x47bddd){case _0x39d58c[_0x29a345(0x1da)]:this[_0x29a345(0x204)](_0x262533);break;case _0x39d58c[_0x29a345(0x189)]:this[_0x29a345(0x1d9)](_0x262533);break;case _0x39d58c[_0x29a345(0x1db)]:this[_0x29a345(0x1bd)]();break;case _0x39d58c[_0x29a345(0x19f)]:this['_handleNewChangeSets'](_0x262533);break;}}));}[_0x44a38e(0x1eb)](){var _0x15ee09=_0x44a38e;this[_0x15ee09(0x212)][_0x15ee09(0x185)]({'eventID':_0x39d58c['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x15ee09(0x212)][_0x15ee09(0x239)]()}},this['_unitID']);}[_0x44a38e(0x1c6)](){var _0x38d041=_0x44a38e;this['_status']==='presenting'&&(this[_0x38d041(0x194)]['next'](_0x38d041(0x1a6)),this[_0x38d041(0x212)]['send']({'eventID':_0x39d58c[_0x38d041(0x1db)],'data':{'unitID':this['_unitID']}},this[_0x38d041(0x1ca)]));}[_0x44a38e(0x197)](){var _0x133dc3=_0x44a38e;this[_0x133dc3(0x18d)]===_0x133dc3(0x1b3)&&(this[_0x133dc3(0x194)][_0x133dc3(0x1be)](_0x133dc3(0x1f5)),this[_0x133dc3(0x237)]());}['stopFollowing'](){var _0x33201f=_0x44a38e;this[_0x33201f(0x18d)]===_0x33201f(0x1f5)&&this[_0x33201f(0x1ba)]();}[_0x44a38e(0x204)](_0x5a54e0){var _0x577911=_0x44a38e;const {presenter:_0xf66e76}=_0x5a54e0[_0x577911(0x1c0)],_0x5bd6d6=this['_collabSession'][_0x577911(0x239)]();this['_presenter']=_0xf66e76,_0xf66e76===_0x5bd6d6?(this[_0x577911(0x1ba)](),this[_0x577911(0x230)]()):this[_0x577911(0x18d)]!==_0x577911(0x1b3)&&(this[_0x577911(0x20b)](),this[_0x577911(0x237)]());}[_0x44a38e(0x1d6)](){var _0x573faf=_0x44a38e;const _0x44ff34={'eventID':_0x39d58c[_0x573faf(0x1a4)]};this[_0x573faf(0x212)][_0x573faf(0x185)](_0x44ff34,this[_0x573faf(0x1ca)]);}[_0x44a38e(0x1bd)](){var _0x4ee27a=_0x44a38e;this[_0x4ee27a(0x20d)]=null,this[_0x4ee27a(0x18d)]!==_0x4ee27a(0x1e4)&&this[_0x4ee27a(0x1e6)]();}[_0x44a38e(0x186)](_0x4716bd){var _0x3e9534=_0x44a38e;if(this['_status']==='following'&&this[_0x3e9534(0x20d)]===_0x4716bd['data'][_0x3e9534(0x198)]){const _0x14ab9f=_0x5b9873(_0x4716bd['data'])[_0x3e9534(0x1dd)][_0x3e9534(0x1f1)]()[_0x3e9534(0x1ce)](_0x2f8d75=>_0x2f8d75['id']===_0x2e6231['id']);if(_0x14ab9f){const _0x31de57=_0x14ab9f['params'][_0x3e9534(0x1d1)],_0x3b7d42=_0x14ab9f[_0x3e9534(0x1cc)][_0x3e9534(0x1fe)]['id'];setTimeout(()=>{var _0x2131e7=_0x3e9534;this['_commandService'][_0x2131e7(0x1bc)](_0x5d195d['id'],{'unitId':_0x31de57,'subUnitId':_0x3b7d42},{'fromCollab':!0x0});});}}}[_0x44a38e(0x230)](){var _0x7ceb25=_0x44a38e;this[_0x7ceb25(0x194)][_0x7ceb25(0x1be)]('presenting');const _0x174c2a=new Map(),_0x4825c4=this[_0x7ceb25(0x206)]=new _0x31be81();_0x4825c4[_0x7ceb25(0x1e2)](_0x542c96(()=>{var _0x3e5ce1=_0x7ceb25;_0x174c2a[_0x3e5ce1(0x1aa)](_0x482e26=>_0x482e26[_0x3e5ce1(0x21e)]()),_0x174c2a['clear']();})),_0x4825c4[_0x7ceb25(0x1e2)](this[_0x7ceb25(0x1cf)]['onCommandExecuted'](_0x26cc41=>{var _0x25d1ec=_0x7ceb25,_0x598cdc;if(_0x26cc41[_0x25d1ec(0x1cb)]!==_0x587d99[_0x25d1ec(0x207)]||!this[_0x25d1ec(0x1c9)]['shouldShareOperation'](_0x26cc41['id']))return;const {id:_0x53b5d5}=_0x26cc41;let _0x4bdd9f;_0x174c2a['has'](_0x53b5d5)?_0x4bdd9f=_0x174c2a['get'](_0x53b5d5):(_0x4bdd9f=new _0x468373(),_0x174c2a[_0x25d1ec(0x214)](_0x53b5d5,_0x4bdd9f),_0x4bdd9f['pipe'](_0x2477f4((_0x598cdc=this[_0x25d1ec(0x228)][_0x25d1ec(0x1b8)](Pe))!=null?_0x598cdc:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x25d1ec(0x220)](_0x3483e1=>{var _0x5411b9=_0x25d1ec;this[_0x5411b9(0x212)][_0x5411b9(0x185)]({'eventID':_0x39d58c[_0x5411b9(0x189)],'data':{'unitID':this['_unitID'],'operations':{[_0x3483e1['id']]:{'id':_0x3483e1['id'],'params':JSON[_0x5411b9(0x21b)](_0x3483e1['params'])}}}},this[_0x5411b9(0x1ca)]);})),_0x4bdd9f['next'](_0x26cc41);})),this[_0x7ceb25(0x1c9)][_0x7ceb25(0x1ac)](this[_0x7ceb25(0x1ca)])[_0x7ceb25(0x1aa)](_0x246aea=>this[_0x7ceb25(0x212)][_0x7ceb25(0x185)]({'eventID':_0x39d58c[_0x7ceb25(0x189)],'data':{'unitID':this['_unitID'],'operations':{[_0x246aea['id']]:{'id':_0x246aea['id'],'params':JSON[_0x7ceb25(0x21b)](_0x246aea[_0x7ceb25(0x1cc)])}}}},this['_unitID']));}[_0x44a38e(0x20b)](){var _0x68e1bc=_0x44a38e,_0x52847b;this[_0x68e1bc(0x194)][_0x68e1bc(0x1be)](_0x68e1bc(0x1a6)),(_0x52847b=this[_0x68e1bc(0x206)])==null||_0x52847b[_0x68e1bc(0x1d5)](),this[_0x68e1bc(0x206)]=null;}['_startFollowing'](){var _0x28d344=_0x44a38e,_0x5e6d26;(_0x5e6d26=this[_0x28d344(0x206)])==null||_0x5e6d26[_0x28d344(0x1d5)](),this[_0x28d344(0x194)][_0x28d344(0x1be)](_0x28d344(0x1f5));}[_0x44a38e(0x1e6)](){var _0x27e1d0=_0x44a38e,_0x26c9fd;this[_0x27e1d0(0x194)][_0x27e1d0(0x1be)](_0x27e1d0(0x1a6)),(_0x26c9fd=this['_commandDisposable'])==null||_0x26c9fd[_0x27e1d0(0x1d5)](),this[_0x27e1d0(0x206)]=null;}[_0x44a38e(0x1ba)](){var _0x1bd870=_0x44a38e,_0xddb5de;this[_0x1bd870(0x194)][_0x1bd870(0x1be)](_0x1bd870(0x1b3)),(_0xddb5de=this[_0x1bd870(0x206)])==null||_0xddb5de[_0x1bd870(0x1d5)]();}[_0x44a38e(0x1d9)](_0x1f60a0){var _0x534b15=_0x44a38e;if([_0x534b15(0x1e4),_0x534b15(0x1b3),'offline'][_0x534b15(0x1fd)](this[_0x534b15(0x18d)])||!_0x1f60a0[_0x534b15(0x1c0)][_0x534b15(0x1b6)]||_0x1f60a0['data'][_0x534b15(0x1b6)]===this['_collabSession'][_0x534b15(0x239)]())return;this['_status']===_0x534b15(0x1a6)&&this[_0x534b15(0x237)]();const _0x24dd1e=_0x1f60a0[_0x534b15(0x1c0)][_0x534b15(0x23a)];Object[_0x534b15(0x1cd)](_0x24dd1e)[_0x534b15(0x1aa)](_0x260759=>{var _0x71d385=_0x534b15;this[_0x71d385(0x1cf)][_0x71d385(0x1bc)](_0x260759['id'],_0x260759[_0x71d385(0x1cc)]?JSON[_0x71d385(0x21f)](_0x260759[_0x71d385(0x1cc)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x4a0f90=_0x44a38e,_0x1dcd2f;this['_status$']['next']('offline'),(_0x1dcd2f=this[_0x4a0f90(0x206)])==null||_0x1dcd2f['dispose']();}['_handleOnline'](){var _0x55045a=_0x44a38e;this[_0x55045a(0x194)][_0x55045a(0x1be)](_0x55045a(0x1a6)),this[_0x55045a(0x1d6)]();}};C=Z([f(0x2,_0xf56aa6),f(0x3,_0x402fd8(L)),f(0x4,_0xbc9001)],C);function Te(){var _0x29df0b=_0x44a38e;const _0x59cbe8=_0x6987fc(I),_0xbbdd08=_0x6987fc(_0x38e063),_0x5a59a3=_0x33556f(()=>_0xbbdd08[_0x29df0b(0x1a7)](_0x352077['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5b82ac,_0x3d32c4]=_0x9bb103(null),[_0xb6e78e,_0x4165c4]=_0x9bb103(h[_0x29df0b(0x195)]),_0x5e93c0=_0x352723(null);return _0x1fb546(()=>(_0x5a59a3&&_0x59cbe8['getLiveShareCoordinator'](_0x5a59a3['getUnitId']())[_0x29df0b(0x1d7)](_0x507889=>{var _0x3d3036=_0x29df0b;_0x3d32c4(_0x507889),_0x5e93c0[_0x3d3036(0x1b7)]=_0x507889[_0x3d3036(0x22d)][_0x3d3036(0x220)](_0x485362=>{_0x4165c4(_0x485362);});}),()=>{var _0x5704e3=_0x29df0b,_0x337213;(_0x337213=_0x5e93c0[_0x5704e3(0x1b7)])==null||_0x337213['unsubscribe'](),_0x5e93c0[_0x5704e3(0x1b7)]=null;}),[_0x5a59a3,_0x59cbe8]),_0x5b82ac?_0x5abe92(_0xa0c5fc,{'align':_0x29df0b(0x199),'disabled':_0xb6e78e===h[_0x29df0b(0x192)],'className':_0x29df0b(0x1d4),'overlay':_0x5abe92($e,{'status':_0xb6e78e,'coordinator':_0x5b82ac}),'children':_0x5abe92(_0x29df0b(0x23b),{'className':_0x146803('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xb6e78e===h[_0x29df0b(0x192)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xb6e78e!==h['OFFLINE']}),'type':'button','children':_0x5abe92(B,{'className':'univer-size-4'})})}):null;}function $e(_0x49cd04){var _0x2c9cc4=_0x44a38e;const {status:_0x448af2,coordinator:_0x149938}=_0x49cd04;switch(_0x448af2){case h[_0x2c9cc4(0x195)]:return _0x5abe92(Fe,{'coordinator':_0x149938});case h[_0x2c9cc4(0x1ae)]:return _0x5abe92(He,{'coordinator':_0x149938});case h[_0x2c9cc4(0x1a2)]:return _0x5abe92(je,{'coordinator':_0x149938});case h['OFFLINE']:return _0x5abe92(Ve,{});case h[_0x2c9cc4(0x1b2)]:return _0x5abe92(Ue,{'coordinator':_0x149938});default:return null;}}function Fe(_0x7c5272){var _0x4024a8=_0x44a38e;const {coordinator:_0xca0a87}=_0x7c5272;return _0x3d9b98(_0x1cc7ae,{'children':[_0x5abe92(_0x4024a8(0x1c8),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4024a8(0x1f7)}),_0x5abe92(_0x5bb26b,{'onClick':()=>_0xca0a87[_0x4024a8(0x1eb)](),'children':'Start'})]});}function He(_0x54a1d2){var _0x47a8ee=_0x44a38e;const {coordinator:_0x214383}=_0x54a1d2;return _0x3d9b98(_0x1cc7ae,{'children':[_0x5abe92(_0x47a8ee(0x1c8),{'className':_0x47a8ee(0x20c),'children':_0x47a8ee(0x191)}),_0x5abe92(_0x5bb26b,{'onClick':()=>_0x214383[_0x47a8ee(0x193)](),'children':_0x47a8ee(0x217)})]});}function je(_0x445b08){var _0x394eef=_0x44a38e;const {coordinator:_0x29d768}=_0x445b08;return _0x3d9b98(_0x1cc7ae,{'children':[_0x5abe92(_0x394eef(0x1c8),{'className':_0x394eef(0x20c),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x5abe92(_0x5bb26b,{'variant':_0x394eef(0x1a3),'onClick':()=>_0x29d768[_0x394eef(0x197)](),'children':'Start\x20following'})]});}function Ue(_0x24945f){var _0x26c0a0=_0x44a38e;const {coordinator:_0x488e2c}=_0x24945f;return _0x3d9b98(_0x1cc7ae,{'children':[_0x5abe92(_0x26c0a0(0x1c8),{'className':_0x26c0a0(0x20c),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x5abe92(_0x5bb26b,{'variant':_0x26c0a0(0x1d8),'onClick':()=>_0x488e2c[_0x26c0a0(0x1c6)](),'children':_0x26c0a0(0x1c2)})]});}function Ve(){var _0x2e51e3=_0x44a38e;return _0x5abe92(_0x1cc7ae,{'children':_0x2e51e3(0x1c1)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0xd8229e,_0x5407c1,_0x8bb264,_0x3be9d3)=>{var _0x455487=_0x44a38e;for(var _0x56202c=_0x3be9d3>0x1?void 0x0:_0x3be9d3?Me(_0x5407c1,_0x8bb264):_0x5407c1,_0x44e844=_0xd8229e[_0x455487(0x1b0)]-0x1,_0x597069;_0x44e844>=0x0;_0x44e844--)(_0x597069=_0xd8229e[_0x44e844])&&(_0x56202c=_0x597069(_0x56202c)||_0x56202c);return _0x56202c;},$=(_0xd44207,_0xb8f80c)=>(_0x158d6b,_0x5ab871)=>_0xb8f80c(_0x158d6b,_0x5ab871,_0xd44207);let b=class extends _0x4588cf{constructor(_0x93c70a,_0x4da27a){var _0x429ae6=_0x44a38e;super(),this[_0x429ae6(0x231)]=_0x93c70a,this[_0x429ae6(0x208)]=_0x4da27a,this[_0x429ae6(0x1b4)]();}[_0x44a38e(0x1b4)](){var _0x1b3e56=_0x44a38e;this[_0x1b3e56(0x1a9)](this[_0x1b3e56(0x208)][_0x1b3e56(0x209)](_0x251823[_0x1b3e56(0x1bb)],()=>_0x219119(Te,this[_0x1b3e56(0x231)])));}};b=ke([$(0x0,_0x402fd8(_0x35ad8c)),$(0x1,_0x5df520)],b);var Ge=Object['defineProperty'],We=Object[_0x44a38e(0x1ee)],Ye=(_0x5ea31d,_0x5bc31d,_0x3d5123)=>_0x5bc31d in _0x5ea31d?Ge(_0x5ea31d,_0x5bc31d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d5123}):_0x5ea31d[_0x5bc31d]=_0x3d5123,Be=(_0x2aac03,_0x3902e1,_0x3e69de,_0x5efb8a)=>{var _0x2f0578=_0x44a38e;for(var _0x3b9e02=_0x5efb8a>0x1?void 0x0:_0x5efb8a?We(_0x3902e1,_0x3e69de):_0x3902e1,_0x464b04=_0x2aac03[_0x2f0578(0x1b0)]-0x1,_0x450567;_0x464b04>=0x0;_0x464b04--)(_0x450567=_0x2aac03[_0x464b04])&&(_0x3b9e02=_0x450567(_0x3b9e02)||_0x3b9e02);return _0x3b9e02;},F=(_0x54abc4,_0x3dc981)=>(_0x394c76,_0x28cbc6)=>_0x3dc981(_0x394c76,_0x28cbc6,_0x54abc4),J=(_0x342dc0,_0x5cd429,_0x2333d5)=>Ye(_0x342dc0,typeof _0x5cd429!='symbol'?_0x5cd429+'':_0x5cd429,_0x2333d5);const Ze=_0x44a38e(0x187);let O=class extends _0x3f708e{constructor(_0x2927c4=T,_0x1eb9ee,_0x371722){var _0x3fdd5b=_0x44a38e;super(),this[_0x3fdd5b(0x201)]=_0x2927c4,this['_injector']=_0x1eb9ee,this[_0x3fdd5b(0x228)]=_0x371722;const {..._0x864e3e}=_0x48ee6f({},T,this[_0x3fdd5b(0x201)]);this[_0x3fdd5b(0x228)][_0x3fdd5b(0x1ff)](Oe,_0x864e3e);}[_0x44a38e(0x236)](){var _0x5b494f=_0x44a38e;_0x1e03e5(this[_0x5b494f(0x231)],_0x4114d9([[L],[I],[m],[b]],this[_0x5b494f(0x201)]['override'])),_0x5794c1(this[_0x5b494f(0x231)],[[m]]);}[_0x44a38e(0x22e)](){var _0x4e5e02=_0x44a38e;_0x5794c1(this[_0x4e5e02(0x231)],[[b]]);}};J(O,'type',_0x352077[_0x44a38e(0x1f9)]),J(O,_0x44a38e(0x203),Ze),O=Be([_0x432e83(_0x590024),F(0x1,_0x402fd8(_0x35ad8c)),F(0x2,_0xf56aa6)],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 _0x2ae16c=_0x2506;(function(_0x3fd78d,_0x29fb1c){var _0x2fcd18=_0x2506,_0x26cd98=_0x3fd78d();while(!![]){try{var _0x4e9bd7=parseInt(_0x2fcd18(0x1bf))/0x1+parseInt(_0x2fcd18(0x190))/0x2+-parseInt(_0x2fcd18(0x1b6))/0x3+parseInt(_0x2fcd18(0x1b2))/0x4+-parseInt(_0x2fcd18(0x1e4))/0x5*(parseInt(_0x2fcd18(0x1d6))/0x6)+-parseInt(_0x2fcd18(0x1bc))/0x7+parseInt(_0x2fcd18(0x1fb))/0x8*(parseInt(_0x2fcd18(0x21f))/0x9);if(_0x4e9bd7===_0x29fb1c)break;else _0x26cd98['push'](_0x26cd98['shift']());}catch(_0x1f489d){_0x26cd98['push'](_0x26cd98['shift']());}}}(_0x5400,0x51358));var q=Object[_0x2ae16c(0x1a6)],z=(_0x22255e,_0x548d99,_0x376ca9)=>_0x548d99 in _0x22255e?q(_0x22255e,_0x548d99,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x376ca9}):_0x22255e[_0x548d99]=_0x376ca9,d=(_0x4467b5,_0x5b9072,_0x4fd19f)=>z(_0x4467b5,typeof _0x5b9072!='symbol'?_0x5b9072+'':_0x5b9072,_0x4fd19f);import{CollaborationSessionService as _0x4f5af2,SessionStatus as _0x4d71b3,UniverCollaborationClientPlugin as _0x27f278}from'@univerjs-pro/collaboration-client';import{Disposable as _0x2ccbb9,toDisposable as _0x38901e,Inject as _0x593737,IUniverInstanceService as _0x1a7ea1,Injector as _0xe7680d,IConfigService as _0x1ad72f,ICommandService as _0x560e7e,RxDisposable as _0x55e2fc,UniverInstanceType as _0x42ee76,DisposableCollection as _0x2221d0,CommandType as _0x25c528,DependentOn as _0x46cf58,Plugin as _0x463199,merge as _0x54fc87,registerDependencies as _0x3f2cd6,mergeOverrideWithDependencies as _0x43b81e,touchDependencies as _0x5144c9}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x156019,InsertSheetMutation as _0x2adb2e}from'@univerjs/sheets';import{SetZoomRatioOperation as _0xc12c9e,SetScrollOperation as _0x21e91d}from'@univerjs/sheets-ui';import{useDependency as _0x1d89de,useObservable as _0x19ab69,IUIPartsService as _0x5f57dd,BuiltInUIPart as _0x596006,connectInjector as _0x9eed15}from'@univerjs/ui';import{jsx as _0xa8e486,jsxs as _0x1f8228,Fragment as _0xa79dd}from'react/jsx-runtime';import{Dropdown as _0x524d08,clsx as _0x4589dc,Button as _0x2cd243}from'@univerjs/design';import{forwardRef as _0x53f5e8,useRef as _0x19b438,createElement as _0x43b2f6,useState as _0x2c2ba0,useEffect as _0x5d5c39}from'react';import{CollaborationEvent as _0x3d2fa7,parseProtocolChangeset as _0x5e0ea2}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x1f3e9c,Subject as _0x26d562}from'rxjs';import{takeUntil as _0x4dbea4,throttleTime as _0xa3d9ff}from'rxjs/operators';const Oe=_0x2ae16c(0x1c3),T={};class L extends _0x2ccbb9{constructor(){var _0x21b4b5=_0x2ae16c;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x21b4b5(0x1ea),new Set());}[_0x2ae16c(0x222)](_0x3cb7f1){var _0x296ce5=_0x2ae16c;return this[_0x296ce5(0x218)][_0x296ce5(0x1cb)](_0x3cb7f1),_0x38901e(()=>this['_sharedOperations'][_0x296ce5(0x1d0)](_0x3cb7f1));}['registerInitialStateReporter'](_0x3dd980){var _0x51358e=_0x2ae16c;return this[_0x51358e(0x1ea)][_0x51358e(0x1cb)](_0x3dd980),_0x38901e(()=>this[_0x51358e(0x1ea)]['delete'](_0x3dd980));}['shouldShareOperation'](_0x1d4a24){var _0x1d4501=_0x2ae16c;return this[_0x1d4501(0x218)][_0x1d4501(0x19b)](_0x1d4a24);}[_0x2ae16c(0x1c9)](_0x266566){var _0x264bc4=_0x2ae16c;return Array[_0x264bc4(0x229)](this[_0x264bc4(0x1ea)])[_0x264bc4(0x214)](_0x3989aa=>_0x3989aa(_0x266566));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x1426e2,_0x488f93,_0x415448,_0x58260e)=>{var _0x32aac6=_0x2ae16c;for(var _0x2a9642=_0x58260e>0x1?void 0x0:_0x58260e?Ee(_0x488f93,_0x415448):_0x488f93,_0xe27a18=_0x1426e2[_0x32aac6(0x1d1)]-0x1,_0x1ab13d;_0xe27a18>=0x0;_0xe27a18--)(_0x1ab13d=_0x1426e2[_0xe27a18])&&(_0x2a9642=_0x1ab13d(_0x2a9642)||_0x2a9642);return _0x2a9642;},Ne=(_0x4d4418,_0x4ed351)=>(_0x52cc34,_0x4dd922)=>_0x4ed351(_0x52cc34,_0x4dd922,_0x4d4418);let m=class extends _0x2ccbb9{constructor(_0x40181d){var _0x35a70b=_0x2ae16c;super(),this['_liveShareService']=_0x40181d,this[_0x35a70b(0x22e)]();}['_init'](){var _0x20d9e0=_0x2ae16c;[_0xc12c9e['id'],_0x21e91d['id'],_0x156019['id']][_0x20d9e0(0x226)](_0x3209c5=>{var _0x145342=_0x20d9e0;this[_0x145342(0x199)](this['_liveShareService'][_0x145342(0x222)](_0x3209c5));});}};m=we([Ne(0x0,_0x593737(L))],m);var c=function(){var _0x1e67d5=_0x2ae16c;return c=Object[_0x1e67d5(0x1fd)]||function(_0x3e3853){var _0x242cbe=_0x1e67d5;for(var _0x7c648f,_0x4588ea=0x1,_0x4de5de=arguments['length'];_0x4588ea<_0x4de5de;_0x4588ea++){_0x7c648f=arguments[_0x4588ea];for(var _0x1cf573 in _0x7c648f)Object[_0x242cbe(0x1c4)][_0x242cbe(0x1a7)][_0x242cbe(0x1dc)](_0x7c648f,_0x1cf573)&&(_0x3e3853[_0x1cf573]=_0x7c648f[_0x1cf573]);}return _0x3e3853;},c[_0x1e67d5(0x1b1)](this,arguments);},Ce=function(_0x43a552,_0x593e36){var _0x31a51e=_0x2ae16c,_0x18593e={};for(var _0x58f84e in _0x43a552)Object['prototype']['hasOwnProperty']['call'](_0x43a552,_0x58f84e)&&_0x593e36[_0x31a51e(0x211)](_0x58f84e)<0x0&&(_0x18593e[_0x58f84e]=_0x43a552[_0x58f84e]);if(_0x43a552!=null&&typeof Object['getOwnPropertySymbols']==_0x31a51e(0x1ad)){for(var _0x2c35f2=0x0,_0x58f84e=Object[_0x31a51e(0x1ba)](_0x43a552);_0x2c35f2<_0x58f84e[_0x31a51e(0x1d1)];_0x2c35f2++)_0x593e36[_0x31a51e(0x211)](_0x58f84e[_0x2c35f2])<0x0&&Object[_0x31a51e(0x1c4)][_0x31a51e(0x198)][_0x31a51e(0x1dc)](_0x43a552,_0x58f84e[_0x2c35f2])&&(_0x18593e[_0x58f84e[_0x2c35f2]]=_0x43a552[_0x58f84e[_0x2c35f2]]);}return _0x18593e;},W=_0x53f5e8(function(_0x3fda35,_0x380b7){var _0x59fc05=_0x2ae16c,_0x29aab6=_0x3fda35[_0x59fc05(0x1bb)],_0x57cb8b=_0x3fda35['id'],_0x3f393e=_0x3fda35[_0x59fc05(0x20c)],_0x3abd3a=_0x3fda35[_0x59fc05(0x232)],_0x5a9bc8=Ce(_0x3fda35,['icon','id',_0x59fc05(0x20c),_0x59fc05(0x232)]),_0x1b4bc5=_0x59fc05(0x1b9)[_0x59fc05(0x1f6)](_0x57cb8b,'\x20')['concat'](_0x3f393e||'')['trim'](),_0x2aa5bd=_0x19b438('_'[_0x59fc05(0x1f6)](Le()));return Y(_0x29aab6,''[_0x59fc05(0x1f6)](_0x57cb8b),{'defIds':_0x29aab6[_0x59fc05(0x20a)],'idSuffix':_0x2aa5bd[_0x59fc05(0x1d7)]},c({'ref':_0x380b7,'className':_0x1b4bc5},_0x5a9bc8),_0x3abd3a);});function Y(_0x15273c,_0x1bd5a4,_0x3baaa2,_0x1ff2ef,_0x1b03a8){var _0x3232e5=_0x2ae16c;return _0x43b2f6(_0x15273c[_0x3232e5(0x21e)],c(c({'key':_0x1bd5a4},De(_0x15273c,_0x3baaa2,_0x1b03a8)),_0x1ff2ef),(xe(_0x15273c,_0x3baaa2)[_0x3232e5(0x1d5)]||[])[_0x3232e5(0x214)](function(_0x3846c5,_0x3f7044){var _0x328c22=_0x3232e5;return Y(_0x3846c5,''[_0x328c22(0x1f6)](_0x1bd5a4,'-')[_0x328c22(0x1f6)](_0x15273c['tag'],'-')[_0x328c22(0x1f6)](_0x3f7044),_0x3baaa2,void 0x0,_0x1b03a8);}));}function De(_0x4f1345,_0x57b3b9,_0x22f553){var _0x3bb106=_0x2ae16c,_0x3a70f2=c({},_0x4f1345[_0x3bb106(0x213)]);_0x22f553!=null&&_0x22f553[_0x3bb106(0x212)]&&_0x3a70f2[_0x3bb106(0x1c2)]==='colorChannel1'&&(_0x3a70f2[_0x3bb106(0x1c2)]=_0x22f553['colorChannel1']),_0x4f1345[_0x3bb106(0x21e)]===_0x3bb106(0x1db)&&_0x3a70f2['id']&&(_0x3a70f2['id']=_0x3a70f2['id']+_0x57b3b9['idSuffix']),Object['entries'](_0x3a70f2)[_0x3bb106(0x226)](function(_0x4cd719){var _0x2399f3=_0x3bb106,_0x263fd5=_0x4cd719[0x0],_0xee1a3f=_0x4cd719[0x1];_0x263fd5==='mask'&&typeof _0xee1a3f==_0x2399f3(0x1d9)&&(_0x3a70f2[_0x263fd5]=_0xee1a3f[_0x2399f3(0x1ae)](/url\(#(.*)\)/,_0x2399f3(0x1c0)[_0x2399f3(0x1f6)](_0x57b3b9[_0x2399f3(0x1e0)],')')));});var _0x51b928=_0x57b3b9[_0x3bb106(0x20a)];return!_0x51b928||_0x51b928[_0x3bb106(0x1d1)]===0x0||(_0x4f1345['tag']===_0x3bb106(0x223)&&_0x3a70f2[_0x3bb106(0x239)]&&(_0x3a70f2[_0x3bb106(0x239)]=_0x3a70f2['xlink:href']+_0x57b3b9['idSuffix']),Object[_0x3bb106(0x19a)](_0x3a70f2)[_0x3bb106(0x226)](function(_0xf98fa5){var _0x203526=_0x3bb106,_0x5e486b=_0xf98fa5[0x0],_0x3ec3fe=_0xf98fa5[0x1];typeof _0x3ec3fe=='string'&&(_0x3a70f2[_0x5e486b]=_0x3ec3fe[_0x203526(0x1ae)](/url\(#(.*)\)/,_0x203526(0x1c0)[_0x203526(0x1f6)](_0x57b3b9[_0x203526(0x1e0)],')')));})),_0x3a70f2;}function xe(_0x41ab13,_0xf1e4e8){var _0x47adb4=_0x2ae16c,_0x53cdf0,_0x2a08b4=_0xf1e4e8[_0x47adb4(0x20a)];return!_0x2a08b4||_0x2a08b4['length']===0x0?_0x41ab13:_0x41ab13[_0x47adb4(0x21e)]==='defs'&&(!((_0x53cdf0=_0x41ab13['children'])===null||_0x53cdf0===void 0x0)&&_0x53cdf0[_0x47adb4(0x1d1)])?c(c({},_0x41ab13),{'children':_0x41ab13[_0x47adb4(0x1d5)]['map'](function(_0x5d5dff){var _0x241b32=_0x47adb4;return typeof _0x5d5dff[_0x241b32(0x213)]['id']==_0x241b32(0x1d9)&&_0x2a08b4&&_0x2a08b4[_0x241b32(0x1b3)](_0x5d5dff[_0x241b32(0x213)]['id'])?c(c({},_0x5d5dff),{'attrs':c(c({},_0x5d5dff[_0x241b32(0x213)]),{'id':_0x5d5dff['attrs']['id']+_0xf1e4e8['idSuffix']})}):_0x5d5dff;})}):_0x41ab13;}function _0x2506(_0xa70875,_0x1422bf){var _0x5400d7=_0x5400();return _0x2506=function(_0x250617,_0x3e3126){_0x250617=_0x250617-0x188;var _0x5bf819=_0x5400d7[_0x250617];return _0x5bf819;},_0x2506(_0xa70875,_0x1422bf);}function Le(){var _0x273f1b=_0x2ae16c;return Math['random']()[_0x273f1b(0x1e7)](0x24)[_0x273f1b(0x231)](0x2,0x8);}W[_0x2ae16c(0x1ce)]='UniverIcon';var ye={'tag':'svg','attrs':{'xmlns':_0x2ae16c(0x1cc),'fill':_0x2ae16c(0x236),'viewBox':_0x2ae16c(0x1e3),'width':_0x2ae16c(0x1e8),'height':_0x2ae16c(0x1e8)},'children':[{'tag':_0x2ae16c(0x1e1),'attrs':{'fill':'currentColor','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':_0x2ae16c(0x1e1),'attrs':{'fill':_0x2ae16c(0x234),'d':_0x2ae16c(0x1a1),'fillRule':'evenodd','clipRule':_0x2ae16c(0x20f)}}]},B=_0x53f5e8(function(_0x1c22f7,_0x31c8ef){var _0x3f488a=_0x2ae16c;return _0x43b2f6(W,Object[_0x3f488a(0x1fd)]({},_0x1c22f7,{'id':_0x3f488a(0x1fc),'ref':_0x31c8ef,'icon':ye}));});B[_0x2ae16c(0x1ce)]=_0x2ae16c(0x1fa);var Re=Object[_0x2ae16c(0x1c7)],Z=(_0x12f08a,_0x3517cf,_0x227c81,_0x48dac0)=>{var _0x3e37b1=_0x2ae16c;for(var _0x1ac48a=_0x48dac0>0x1?void 0x0:_0x48dac0?Re(_0x3517cf,_0x227c81):_0x3517cf,_0x299efa=_0x12f08a[_0x3e37b1(0x1d1)]-0x1,_0x162a83;_0x299efa>=0x0;_0x299efa--)(_0x162a83=_0x12f08a[_0x299efa])&&(_0x1ac48a=_0x162a83(_0x1ac48a)||_0x1ac48a);return _0x1ac48a;},f=(_0x310962,_0x2a6a15)=>(_0x3fc43e,_0x225e2e)=>_0x2a6a15(_0x3fc43e,_0x225e2e,_0x310962);let I=class extends _0x55e2fc{constructor(_0x5a4353,_0x442e13,_0x5c0453){var _0x1c2fbd=_0x2ae16c;super(),d(this,_0x1c2fbd(0x18f),new Map()),(this[_0x1c2fbd(0x18a)]=_0x5a4353,this[_0x1c2fbd(0x23a)]=_0x442e13,this[_0x1c2fbd(0x1f7)]=_0x5c0453,this[_0x1c2fbd(0x22e)]());}async[_0x2ae16c(0x1a3)](_0x4d6da2){var _0x3011ca=_0x2ae16c;return this[_0x3011ca(0x18f)][_0x3011ca(0x19b)](_0x4d6da2)||await this[_0x3011ca(0x1af)](_0x4d6da2),this[_0x3011ca(0x18f)][_0x3011ca(0x1eb)](_0x4d6da2);}[_0x2ae16c(0x22e)](){var _0x931116=_0x2ae16c;this[_0x931116(0x18a)][_0x931116(0x20e)](_0x42ee76[_0x931116(0x18b)])[_0x931116(0x200)](_0x4dbea4(this[_0x931116(0x227)]))[_0x931116(0x1a9)](async _0x3b7f34=>{var _0x7d3742=_0x931116;const _0x3afd5b=_0x3b7f34[_0x7d3742(0x1f9)]();this[_0x7d3742(0x18f)][_0x7d3742(0x19b)](_0x3afd5b)||this[_0x7d3742(0x1af)](_0x3afd5b);}),this[_0x931116(0x18a)][_0x931116(0x1dd)](_0x42ee76[_0x931116(0x18b)])[_0x931116(0x200)](_0x4dbea4(this[_0x931116(0x227)]))[_0x931116(0x1a9)](_0xb1d7d1=>{var _0xebfefe=_0x931116;const _0x3b6c80=_0xb1d7d1[_0xebfefe(0x1f9)](),_0x168387=this['_entities'][_0xebfefe(0x1eb)](_0x3b6c80);_0x168387==null||_0x168387[_0xebfefe(0x1b8)]();});}async[_0x2ae16c(0x1af)](_0xf9367b){var _0x51af54=_0x2ae16c;const _0x320c63=await this[_0x51af54(0x1f7)][_0x51af54(0x237)](_0xf9367b),_0x3addea=this[_0x51af54(0x23a)][_0x51af54(0x195)](C,_0xf9367b,_0x320c63);return _0x3addea[_0x51af54(0x1b0)](),this['_entities'][_0x51af54(0x202)](_0xf9367b,_0x3addea),_0x3addea;}};I=Z([f(0x0,_0x1a7ea1),f(0x1,_0x593737(_0xe7680d)),f(0x2,_0x593737(_0x4f5af2))],I);var h=(_0x34d445=>(_0x34d445[_0x2ae16c(0x1f1)]='offline',_0x34d445[_0x2ae16c(0x1de)]=_0x2ae16c(0x1df),_0x34d445[_0x2ae16c(0x1c1)]=_0x2ae16c(0x1bd),_0x34d445[_0x2ae16c(0x1d4)]=_0x2ae16c(0x225),_0x34d445[_0x2ae16c(0x19e)]=_0x2ae16c(0x220),_0x34d445))(h||{});const Pe=_0x2ae16c(0x217),Ae=0xc8;let C=class extends _0x55e2fc{constructor(_0xe7ff09,_0xbef96,_0x4fe943,_0x4827c4,_0x16b26d){var _0x2d0e2c=_0x2ae16c;super(),d(this,_0x2d0e2c(0x1f0),new _0x1f3e9c(_0x2d0e2c(0x1df))),d(this,_0x2d0e2c(0x18d),this['_status$'][_0x2d0e2c(0x1a0)]()),d(this,_0x2d0e2c(0x22e),!0x1),d(this,_0x2d0e2c(0x1be),null),d(this,_0x2d0e2c(0x1d8),null),(this[_0x2d0e2c(0x191)]=_0xe7ff09,this['_collabSession']=_0xbef96,this[_0x2d0e2c(0x205)]=_0x4fe943,this[_0x2d0e2c(0x1f2)]=_0x4827c4,this[_0x2d0e2c(0x1ca)]=_0x16b26d);}get[_0x2ae16c(0x189)](){var _0x246a13=_0x2ae16c;return this[_0x246a13(0x1f0)]['getValue']();}[_0x2ae16c(0x1b8)](){var _0x44b047=_0x2ae16c,_0x4fd831;(_0x4fd831=this[_0x44b047(0x1be)])==null||_0x4fd831[_0x44b047(0x1b8)](),this[_0x44b047(0x1f0)][_0x44b047(0x228)](_0x44b047(0x1df)),this[_0x44b047(0x1f0)][_0x44b047(0x235)]();}[_0x2ae16c(0x1b0)](){var _0x1ba29d=_0x2ae16c;this[_0x1ba29d(0x22e)]||(this[_0x1ba29d(0x22e)]=!0x0,this['_collabSession'][_0x1ba29d(0x19c)]['pipe'](_0x4dbea4(this['dispose$']))[_0x1ba29d(0x1a9)](_0x468637=>{var _0x1351be=_0x1ba29d;switch(_0x468637){case _0x4d71b3[_0x1351be(0x1f1)]:this[_0x1351be(0x1da)]();break;case _0x4d71b3['ONLINE']:this[_0x1351be(0x21b)]();break;}}),this[_0x1ba29d(0x208)][_0x1ba29d(0x209)][_0x1ba29d(0x200)](_0x4dbea4(this[_0x1ba29d(0x227)]))[_0x1ba29d(0x1a9)](_0x15ff75=>{var _0x30dc3a=_0x1ba29d;const {eventID:_0x3da848}=_0x15ff75;switch(_0x3da848){case _0x3d2fa7[_0x30dc3a(0x188)]:this[_0x30dc3a(0x192)](_0x15ff75);break;case _0x3d2fa7[_0x30dc3a(0x20b)]:this[_0x30dc3a(0x1ee)](_0x15ff75);break;case _0x3d2fa7[_0x30dc3a(0x193)]:this[_0x30dc3a(0x1f3)]();break;case _0x3d2fa7[_0x30dc3a(0x1c6)]:this[_0x30dc3a(0x203)](_0x15ff75);break;}}));}[_0x2ae16c(0x1c5)](){var _0x4f4765=_0x2ae16c;this['_collabSession'][_0x4f4765(0x196)]({'eventID':_0x3d2fa7['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x4f4765(0x191)],'userID':this['_collabSession'][_0x4f4765(0x215)]()}},this[_0x4f4765(0x191)]);}[_0x2ae16c(0x201)](){var _0x13fdf9=_0x2ae16c;this['_status']===_0x13fdf9(0x220)&&(this[_0x13fdf9(0x1f0)][_0x13fdf9(0x228)](_0x13fdf9(0x1df)),this[_0x13fdf9(0x208)][_0x13fdf9(0x196)]({'eventID':_0x3d2fa7[_0x13fdf9(0x193)],'data':{'unitID':this[_0x13fdf9(0x191)]}},this['_unitID']));}[_0x2ae16c(0x1ec)](){var _0x21d8c5=_0x2ae16c;this[_0x21d8c5(0x189)]===_0x21d8c5(0x225)&&(this[_0x21d8c5(0x1f0)]['next'](_0x21d8c5(0x1bd)),this[_0x21d8c5(0x1e9)]());}[_0x2ae16c(0x230)](){var _0x3914cf=_0x2ae16c;this[_0x3914cf(0x189)]==='following'&&this[_0x3914cf(0x1aa)]();}[_0x2ae16c(0x192)](_0x6ebcf2){var _0xcb5cc6=_0x2ae16c;const {presenter:_0x546c64}=_0x6ebcf2['data'],_0x2eaf73=this[_0xcb5cc6(0x208)][_0xcb5cc6(0x215)]();this[_0xcb5cc6(0x1d8)]=_0x546c64,_0x546c64===_0x2eaf73?(this['_stopFollowing'](),this[_0xcb5cc6(0x1e5)]()):this[_0xcb5cc6(0x189)]!==_0xcb5cc6(0x225)&&(this[_0xcb5cc6(0x18e)](),this[_0xcb5cc6(0x1e9)]());}[_0x2ae16c(0x1e6)](){var _0x1258b2=_0x2ae16c;const _0x4a09e8={'eventID':_0x3d2fa7[_0x1258b2(0x1d3)]};this['_collabSession'][_0x1258b2(0x196)](_0x4a09e8,this[_0x1258b2(0x191)]);}[_0x2ae16c(0x1f3)](){var _0x17ceee=_0x2ae16c;this['_presenter']=null,this['_status']!==_0x17ceee(0x220)&&this['_beIdle']();}['_handleNewChangeSets'](_0x597ce8){var _0x451583=_0x2ae16c;if(this[_0x451583(0x189)]===_0x451583(0x1bd)&&this[_0x451583(0x1d8)]===_0x597ce8[_0x451583(0x1f5)]['memberID']){const _0x508eea=_0x5e0ea2(_0x597ce8[_0x451583(0x1f5)])['mutations'][_0x451583(0x197)]()[_0x451583(0x1f4)](_0x39dbb9=>_0x39dbb9['id']===_0x2adb2e['id']);if(_0x508eea){const _0xb111ea=_0x508eea[_0x451583(0x224)][_0x451583(0x219)],_0x107f59=_0x508eea[_0x451583(0x224)]['sheet']['id'];setTimeout(()=>{var _0x3fb99e=_0x451583;this['_commandService'][_0x3fb99e(0x18c)](_0x156019['id'],{'unitId':_0xb111ea,'subUnitId':_0x107f59},{'fromCollab':!0x0});});}}}[_0x2ae16c(0x1e5)](){var _0x2bae0c=_0x2ae16c;this['_status$'][_0x2bae0c(0x228)]('presenting');const _0x8158f=new Map(),_0x49a61b=this[_0x2bae0c(0x1be)]=new _0x2221d0();_0x49a61b['add'](_0x38901e(()=>{var _0x2217bb=_0x2bae0c;_0x8158f[_0x2217bb(0x226)](_0xf9f025=>_0xf9f025[_0x2217bb(0x235)]()),_0x8158f[_0x2217bb(0x20d)]();})),_0x49a61b['add'](this[_0x2bae0c(0x1ca)][_0x2bae0c(0x22c)](_0x340898=>{var _0xcc711e=_0x2bae0c,_0xa3aac9;if(_0x340898['type']!==_0x25c528[_0xcc711e(0x1a2)]||!this[_0xcc711e(0x1f2)][_0xcc711e(0x1a8)](_0x340898['id']))return;const {id:_0x1aeed9}=_0x340898;let _0x749247;_0x8158f[_0xcc711e(0x19b)](_0x1aeed9)?_0x749247=_0x8158f[_0xcc711e(0x1eb)](_0x1aeed9):(_0x749247=new _0x26d562(),_0x8158f[_0xcc711e(0x202)](_0x1aeed9,_0x749247),_0x749247[_0xcc711e(0x200)](_0xa3d9ff((_0xa3aac9=this[_0xcc711e(0x205)][_0xcc711e(0x1cf)](Pe))!=null?_0xa3aac9:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x37d15e=>{var _0x5be08d=_0xcc711e;this['_collabSession'][_0x5be08d(0x196)]({'eventID':_0x3d2fa7['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5be08d(0x191)],'operations':{[_0x37d15e['id']]:{'id':_0x37d15e['id'],'params':JSON['stringify'](_0x37d15e['params'])}}}},this['_unitID']);})),_0x749247[_0xcc711e(0x228)](_0x340898);})),this['_liveShareService'][_0x2bae0c(0x1c9)](this[_0x2bae0c(0x191)])[_0x2bae0c(0x226)](_0x79848b=>this[_0x2bae0c(0x208)][_0x2bae0c(0x196)]({'eventID':_0x3d2fa7[_0x2bae0c(0x20b)],'data':{'unitID':this[_0x2bae0c(0x191)],'operations':{[_0x79848b['id']]:{'id':_0x79848b['id'],'params':JSON['stringify'](_0x79848b[_0x2bae0c(0x224)])}}}},this[_0x2bae0c(0x191)]));}[_0x2ae16c(0x18e)](){var _0x2b9b0a=_0x2ae16c,_0x5472d0;this[_0x2b9b0a(0x1f0)]['next'](_0x2b9b0a(0x1df)),(_0x5472d0=this[_0x2b9b0a(0x1be)])==null||_0x5472d0['dispose'](),this[_0x2b9b0a(0x1be)]=null;}[_0x2ae16c(0x1e9)](){var _0x5e1154=_0x2ae16c,_0x3b39ce;(_0x3b39ce=this[_0x5e1154(0x1be)])==null||_0x3b39ce[_0x5e1154(0x1b8)](),this[_0x5e1154(0x1f0)][_0x5e1154(0x228)]('following');}[_0x2ae16c(0x1d2)](){var _0x344364=_0x2ae16c,_0x3afb1c;this['_status$'][_0x344364(0x228)]('idle'),(_0x3afb1c=this['_commandDisposable'])==null||_0x3afb1c[_0x344364(0x1b8)](),this[_0x344364(0x1be)]=null;}[_0x2ae16c(0x1aa)](){var _0x133a84=_0x2ae16c,_0xcf13b2;this[_0x133a84(0x1f0)][_0x133a84(0x228)](_0x133a84(0x225)),(_0xcf13b2=this[_0x133a84(0x1be)])==null||_0xcf13b2[_0x133a84(0x1b8)]();}[_0x2ae16c(0x1ee)](_0x31dd84){var _0x280522=_0x2ae16c;if([_0x280522(0x220),'not-following',_0x280522(0x233)][_0x280522(0x1b3)](this[_0x280522(0x189)])||!_0x31dd84[_0x280522(0x1f5)][_0x280522(0x21d)]||_0x31dd84['data']['presenter']===this['_collabSession'][_0x280522(0x215)]())return;this['_status']===_0x280522(0x1df)&&this[_0x280522(0x1e9)]();const _0x1c588e=_0x31dd84[_0x280522(0x1f5)][_0x280522(0x1ac)];Object[_0x280522(0x1ff)](_0x1c588e)[_0x280522(0x226)](_0x4bad81=>{var _0x27d4e6=_0x280522;this['_commandService'][_0x27d4e6(0x18c)](_0x4bad81['id'],_0x4bad81['params']?JSON['parse'](_0x4bad81[_0x27d4e6(0x224)]):null,{'fromCollab':!0x0});});}[_0x2ae16c(0x1da)](){var _0x38479d=_0x2ae16c,_0x5827fc;this[_0x38479d(0x1f0)][_0x38479d(0x228)](_0x38479d(0x233)),(_0x5827fc=this[_0x38479d(0x1be)])==null||_0x5827fc[_0x38479d(0x1b8)]();}['_handleOnline'](){var _0x4ef888=_0x2ae16c;this['_status$'][_0x4ef888(0x228)](_0x4ef888(0x1df)),this['_fetchOperations']();}};C=Z([f(0x2,_0x1ad72f),f(0x3,_0x593737(L)),f(0x4,_0x560e7e)],C);function Te(){var _0x270f9c=_0x2ae16c;const _0x366ceb=_0x1d89de(I),_0x1db121=_0x1d89de(_0x1a7ea1),_0x111726=_0x19ab69(()=>_0x1db121[_0x270f9c(0x21c)](_0x42ee76[_0x270f9c(0x18b)]),void 0x0,!0x1,[]),[_0x1a154d,_0x27e377]=_0x2c2ba0(null),[_0x32735b,_0x4a9be2]=_0x2c2ba0(h[_0x270f9c(0x1de)]),_0x473a86=_0x19b438(null);return _0x5d5c39(()=>(_0x111726&&_0x366ceb[_0x270f9c(0x1a3)](_0x111726[_0x270f9c(0x1f9)]())[_0x270f9c(0x206)](_0x4c87e0=>{var _0x510372=_0x270f9c;_0x27e377(_0x4c87e0),_0x473a86[_0x510372(0x1d7)]=_0x4c87e0[_0x510372(0x18d)][_0x510372(0x1a9)](_0x5bbbcc=>{_0x4a9be2(_0x5bbbcc);});}),()=>{var _0x12611d=_0x270f9c,_0x382f64;(_0x382f64=_0x473a86['current'])==null||_0x382f64[_0x12611d(0x1ed)](),_0x473a86[_0x12611d(0x1d7)]=null;}),[_0x111726,_0x366ceb]),_0x1a154d?_0xa8e486(_0x524d08,{'align':_0x270f9c(0x1cd),'disabled':_0x32735b===h[_0x270f9c(0x1f1)],'className':_0x270f9c(0x1a5),'overlay':_0xa8e486($e,{'status':_0x32735b,'coordinator':_0x1a154d}),'children':_0xa8e486(_0x270f9c(0x1fe),{'className':_0x4589dc(_0x270f9c(0x216),{'univer-cursor-not-allowed':_0x32735b===h[_0x270f9c(0x1f1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x32735b!==h['OFFLINE']}),'type':_0x270f9c(0x1fe),'children':_0xa8e486(B,{'className':'univer-size-4'})})}):null;}function $e(_0x4361de){var _0x188f47=_0x2ae16c;const {status:_0xe43e89,coordinator:_0x415664}=_0x4361de;switch(_0xe43e89){case h[_0x188f47(0x1de)]:return _0xa8e486(Fe,{'coordinator':_0x415664});case h['FOLLOWING']:return _0xa8e486(He,{'coordinator':_0x415664});case h[_0x188f47(0x1d4)]:return _0xa8e486(je,{'coordinator':_0x415664});case h['OFFLINE']:return _0xa8e486(Ve,{});case h[_0x188f47(0x19e)]:return _0xa8e486(Ue,{'coordinator':_0x415664});default:return null;}}function Fe(_0x1e3967){var _0x3be6d6=_0x2ae16c;const {coordinator:_0x32f419}=_0x1e3967;return _0x1f8228(_0xa79dd,{'children':[_0xa8e486(_0x3be6d6(0x238),{'className':_0x3be6d6(0x210),'children':'Present\x20this\x20document'}),_0xa8e486(_0x2cd243,{'onClick':()=>_0x32f419[_0x3be6d6(0x1c5)](),'children':_0x3be6d6(0x22a)})]});}function He(_0x1b6d8c){var _0x24e68c=_0x2ae16c;const {coordinator:_0x3eadb2}=_0x1b6d8c;return _0x1f8228(_0xa79dd,{'children':[_0xa8e486('div',{'className':_0x24e68c(0x210),'children':_0x24e68c(0x22f)}),_0xa8e486(_0x2cd243,{'onClick':()=>_0x3eadb2[_0x24e68c(0x230)](),'children':_0x24e68c(0x19f)})]});}function je(_0x18c8d3){var _0x25dade=_0x2ae16c;const {coordinator:_0x543bc4}=_0x18c8d3;return _0x1f8228(_0xa79dd,{'children':[_0xa8e486(_0x25dade(0x238),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0xa8e486(_0x2cd243,{'variant':_0x25dade(0x1f8),'onClick':()=>_0x543bc4[_0x25dade(0x1ec)](),'children':_0x25dade(0x221)})]});}function Ue(_0x278160){var _0x35ca53=_0x2ae16c;const {coordinator:_0xb102b2}=_0x278160;return _0x1f8228(_0xa79dd,{'children':[_0xa8e486(_0x35ca53(0x238),{'className':_0x35ca53(0x210),'children':'You\x27re\x20presenting\x20the\x20document'}),_0xa8e486(_0x2cd243,{'variant':_0x35ca53(0x1b7),'onClick':()=>_0xb102b2['stopPresenting'](),'children':_0x35ca53(0x204)})]});}function Ve(){var _0x6db873=_0x2ae16c;return _0xa8e486(_0xa79dd,{'children':_0x6db873(0x1ef)});}var Me=Object[_0x2ae16c(0x1c7)],ke=(_0x578e67,_0x32fb8a,_0x4671da,_0x255013)=>{var _0x4a4485=_0x2ae16c;for(var _0xb9955f=_0x255013>0x1?void 0x0:_0x255013?Me(_0x32fb8a,_0x4671da):_0x32fb8a,_0x2ecdd8=_0x578e67[_0x4a4485(0x1d1)]-0x1,_0x266d4a;_0x2ecdd8>=0x0;_0x2ecdd8--)(_0x266d4a=_0x578e67[_0x2ecdd8])&&(_0xb9955f=_0x266d4a(_0xb9955f)||_0xb9955f);return _0xb9955f;},$=(_0x464c7c,_0x3518fd)=>(_0xe7439e,_0x5b6234)=>_0x3518fd(_0xe7439e,_0x5b6234,_0x464c7c);let b=class extends _0x2ccbb9{constructor(_0x2ef606,_0x397593){var _0x28636e=_0x2ae16c;super(),this['_injector']=_0x2ef606,this['_uiPartsService']=_0x397593,this[_0x28636e(0x1e2)]();}[_0x2ae16c(0x1e2)](){var _0x2cfd3e=_0x2ae16c;this[_0x2cfd3e(0x199)](this[_0x2cfd3e(0x1b5)][_0x2cfd3e(0x207)](_0x596006['HEADER_MENU'],()=>_0x9eed15(Te,this[_0x2cfd3e(0x23a)])));}};b=ke([$(0x0,_0x593737(_0xe7680d)),$(0x1,_0x5f57dd)],b);var Ge=Object[_0x2ae16c(0x1a6)],We=Object[_0x2ae16c(0x1c7)],Ye=(_0x166beb,_0x3e1a19,_0x166ed0)=>_0x3e1a19 in _0x166beb?Ge(_0x166beb,_0x3e1a19,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x166ed0}):_0x166beb[_0x3e1a19]=_0x166ed0,Be=(_0x4c07a7,_0x294604,_0x57ddd7,_0x4cf621)=>{var _0x3adfa0=_0x2ae16c;for(var _0x2fcda0=_0x4cf621>0x1?void 0x0:_0x4cf621?We(_0x294604,_0x57ddd7):_0x294604,_0x4fd524=_0x4c07a7[_0x3adfa0(0x1d1)]-0x1,_0x5d60c9;_0x4fd524>=0x0;_0x4fd524--)(_0x5d60c9=_0x4c07a7[_0x4fd524])&&(_0x2fcda0=_0x5d60c9(_0x2fcda0)||_0x2fcda0);return _0x2fcda0;},F=(_0x10f85c,_0x4f97cd)=>(_0x2035bb,_0x50b9d2)=>_0x4f97cd(_0x2035bb,_0x50b9d2,_0x10f85c),J=(_0xfc3a84,_0x4ec3e0,_0x1b3036)=>Ye(_0xfc3a84,typeof _0x4ec3e0!=_0x2ae16c(0x1b4)?_0x4ec3e0+'':_0x4ec3e0,_0x1b3036);const Ze=_0x2ae16c(0x194);let O=class extends _0x463199{constructor(_0xf2db2d=T,_0x1daa97,_0x4f9231){var _0x3b06d9=_0x2ae16c;super(),this[_0x3b06d9(0x22d)]=_0xf2db2d,this[_0x3b06d9(0x23a)]=_0x1daa97,this[_0x3b06d9(0x205)]=_0x4f9231;const {..._0x47819c}=_0x54fc87({},T,this[_0x3b06d9(0x22d)]);this['_configService'][_0x3b06d9(0x19d)](Oe,_0x47819c);}[_0x2ae16c(0x22b)](){var _0x446671=_0x2ae16c;_0x3f2cd6(this['_injector'],_0x43b81e([[L],[I],[m],[b]],this['_config'][_0x446671(0x1a4)])),_0x5144c9(this[_0x446671(0x23a)],[[m]]);}[_0x2ae16c(0x21a)](){var _0x49194e=_0x2ae16c;_0x5144c9(this[_0x49194e(0x23a)],[[b]]);}};J(O,'type',_0x42ee76[_0x2ae16c(0x1c8)]),J(O,_0x2ae16c(0x1ab),Ze),O=Be([_0x46cf58(_0x27f278),F(0x1,_0x593737(_0xe7680d)),F(0x2,_0x1ad72f)],O);function _0x5400(){var _0x307fac=['live-share-icon','assign','button','values','pipe','stopPresenting','set','_handleNewChangeSets','Stop\x20presenting','_configService','then','registerComponent','_collabSession','event$','defIds','LIVESHARE_OPERATION','className','clear','getTypeOfUnitAdded$','evenodd','univer-w-full\x20univer-mb-3\x20univer-text-sm','indexOf','colorChannel1','attrs','map','getMemberID','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','SAME_OPERATION_SHARE_INTERVAL','_sharedOperations','unitId','onRendered','_handleOnline','getCurrentTypeOfUnit$','presenter','tag','700092xupCNK','presenting','Start\x20following','registerSharedOperation','use','params','not-following','forEach','dispose$','next','from','Start','onStarting','onCommandExecuted','_config','_init','You\x27re\x20following\x20the\x20presenter','stopFollowing','substring','extend','offline','currentColor','complete','none','requireSession','div','xlink:href','_injector','LIVESHARE_NEW_HOST','_status','_univerInstanceService','UNIVER_SHEET','executeCommand','status$','_stopPresenting','_entities','1128128xROgEQ','_unitID','_handleNewHost','LIVESHARE_TERMINATE','UNIVER_LIVE_SHARE_PLUGIN','createInstance','send','reverse','propertyIsEnumerable','disposeWithMe','entries','has','sessionStatus$','setConfig','PRESENTING','Stop\x20following','asObservable','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','OPERATION','getLiveShareCoordinator','override','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','defineProperty','hasOwnProperty','shouldShareOperation','subscribe','_stopFollowing','pluginName','operations','function','replace','_startLiveShareCoordinator','init','apply','834608QrcUCx','includes','symbol','_uiPartsService','1512696knbjby','default','dispose','univerjs-icon\x20univerjs-icon-','getOwnPropertySymbols','icon','156177zJwaFO','following','_commandDisposable','128567tMYgxT','url(#$1','FOLLOWING','fill','live-share.config','prototype','tryStartPresenting','NEW_CHANGESETS','getOwnPropertyDescriptor','UNIVER_UNKNOWN','getInitialStates','_commandService','add','http://www.w3.org/2000/svg','end','displayName','getConfig','delete','length','_beIdle','LIVESHARE_FETCH_OPERATIONS','NOT_FOLLOWING','children','109992AXBiPy','current','_presenter','string','_handleOffline','mask','call','getTypeOfUnitDisposed$','IDLE','idle','idSuffix','path','_mountLiveShare','0\x200\x2017\x2017','160qfxzIe','_startPresenting','_fetchOperations','toString','1em','_startFollowing','_reporters','get','startFollowing','unsubscribe','_handleOperation','You\x27are\x20offline.','_status$','OFFLINE','_liveShareService','_handleTerminate','find','data','concat','_collabSessionService','text','getUnitId','LiveShareIcon','56RRufVu'];_0x5400=function(){return _0x307fac;};return _0x5400();}export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x44a38e=_0x5210;(function(_0x2bd1fc,_0x57525d){var _0xd6ff57=_0x5210,_0x1796cc=_0x2bd1fc();while(!![]){try{var _0x2260d1=parseInt(_0xd6ff57(0x22f))/0x1+parseInt(_0xd6ff57(0x1df))/0x2*(-parseInt(_0xd6ff57(0x219))/0x3)+parseInt(_0xd6ff57(0x21a))/0x4+parseInt(_0xd6ff57(0x202))/0x5*(-parseInt(_0xd6ff57(0x1c3))/0x6)+parseInt(_0xd6ff57(0x222))/0x7*(-parseInt(_0xd6ff57(0x20f))/0x8)+-parseInt(_0xd6ff57(0x1f8))/0x9+-parseInt(_0xd6ff57(0x1d2))/0xa*(-parseInt(_0xd6ff57(0x234))/0xb);if(_0x2260d1===_0x57525d)break;else _0x1796cc['push'](_0x1796cc['shift']());}catch(_0x465936){_0x1796cc['push'](_0x1796cc['shift']());}}}(_0x1d92,0x46b95));var q=Object['defineProperty'],z=(_0x12ccf7,_0x531d25,_0x55546a)=>_0x531d25 in _0x12ccf7?q(_0x12ccf7,_0x531d25,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55546a}):_0x12ccf7[_0x531d25]=_0x55546a,d=(_0x2fdc7b,_0x1e603e,_0x10d911)=>z(_0x2fdc7b,typeof _0x1e603e!=_0x44a38e(0x225)?_0x1e603e+'':_0x1e603e,_0x10d911);import{CollaborationSessionService as _0x4332dd,SessionStatus as _0x5cd0d9,UniverCollaborationClientPlugin as _0x590024}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4588cf,toDisposable as _0x542c96,Inject as _0x402fd8,IUniverInstanceService as _0x38e063,Injector as _0x35ad8c,IConfigService as _0xf56aa6,ICommandService as _0xbc9001,RxDisposable as _0x1a4ef2,UniverInstanceType as _0x352077,DisposableCollection as _0x31be81,CommandType as _0x587d99,DependentOn as _0x432e83,Plugin as _0x3f708e,merge as _0x48ee6f,registerDependencies as _0x1e03e5,mergeOverrideWithDependencies as _0x4114d9,touchDependencies as _0x5794c1}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x5d195d,InsertSheetMutation as _0x2e6231}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x51a6c1,SetScrollOperation as _0x5988dd}from'@univerjs/sheets-ui';import{useDependency as _0x6987fc,useObservable as _0x33556f,IUIPartsService as _0x5df520,BuiltInUIPart as _0x251823,connectInjector as _0x219119}from'@univerjs/ui';import{jsx as _0x5abe92,jsxs as _0x3d9b98,Fragment as _0x1cc7ae}from'react/jsx-runtime';import{Dropdown as _0xa0c5fc,clsx as _0x146803,Button as _0x5bb26b}from'@univerjs/design';import{forwardRef as _0x5d9349,useRef as _0x352723,createElement as _0x33097c,useState as _0x9bb103,useEffect as _0x1fb546}from'react';import{CollaborationEvent as _0x39d58c,parseProtocolChangeset as _0x5b9873}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x3e6bed,Subject as _0x468373}from'rxjs';import{takeUntil as _0x26dabd,throttleTime as _0x2477f4}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x4588cf{constructor(){var _0x450436=_0x44a38e;super(...arguments),d(this,_0x450436(0x1f3),new Set()),d(this,_0x450436(0x19a),new Set());}['registerSharedOperation'](_0x12f9a3){var _0x2ffef7=_0x44a38e;return this['_sharedOperations'][_0x2ffef7(0x1e2)](_0x12f9a3),_0x542c96(()=>this[_0x2ffef7(0x1f3)][_0x2ffef7(0x1ad)](_0x12f9a3));}[_0x44a38e(0x19b)](_0x3ed1b1){var _0x32dda4=_0x44a38e;return this[_0x32dda4(0x19a)][_0x32dda4(0x1e2)](_0x3ed1b1),_0x542c96(()=>this[_0x32dda4(0x19a)][_0x32dda4(0x1ad)](_0x3ed1b1));}[_0x44a38e(0x1fb)](_0x47fccd){var _0x33ebb6=_0x44a38e;return this[_0x33ebb6(0x1f3)][_0x33ebb6(0x229)](_0x47fccd);}[_0x44a38e(0x1ac)](_0x109724){var _0x59f628=_0x44a38e;return Array[_0x59f628(0x1f2)](this[_0x59f628(0x19a)])[_0x59f628(0x238)](_0x27c608=>_0x27c608(_0x109724));}}var Ee=Object[_0x44a38e(0x1ee)],we=(_0x29dcd8,_0x40918b,_0x3263ce,_0x2cdb0d)=>{var _0x3562e8=_0x44a38e;for(var _0x3ec048=_0x2cdb0d>0x1?void 0x0:_0x2cdb0d?Ee(_0x40918b,_0x3263ce):_0x40918b,_0x2f8e46=_0x29dcd8[_0x3562e8(0x1b0)]-0x1,_0x3a9e36;_0x2f8e46>=0x0;_0x2f8e46--)(_0x3a9e36=_0x29dcd8[_0x2f8e46])&&(_0x3ec048=_0x3a9e36(_0x3ec048)||_0x3ec048);return _0x3ec048;},Ne=(_0xfead09,_0x47db38)=>(_0x1dbe58,_0x3c9508)=>_0x47db38(_0x1dbe58,_0x3c9508,_0xfead09);let m=class extends _0x4588cf{constructor(_0x564efd){var _0x73fbb5=_0x44a38e;super(),this[_0x73fbb5(0x1c9)]=_0x564efd,this[_0x73fbb5(0x1e7)]();}[_0x44a38e(0x1e7)](){var _0x3bbdc6=_0x44a38e;[_0x51a6c1['id'],_0x5988dd['id'],_0x5d195d['id']][_0x3bbdc6(0x1aa)](_0x33afda=>{var _0x5c99d8=_0x3bbdc6;this[_0x5c99d8(0x1a9)](this[_0x5c99d8(0x1c9)][_0x5c99d8(0x227)](_0x33afda));});}};function _0x1d92(){var _0x2edc4a=['Present\x20this\x20document','2292246itAuwo','UNIVER_UNKNOWN','SAME_OPERATION_SHARE_INTERVAL','shouldShareOperation','getUnitId','includes','sheet','setConfig','getOwnPropertySymbols','_config','5vXogKa','pluginName','_handleNewHost','random','_commandDisposable','OPERATION','_uiPartsService','registerComponent','icon','_stopPresenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','_presenter','path','32PsTQaQ','call','init','_collabSession','assign','set','fill','pipe','Stop\x20following','indexOf','25014BwPgwH','1916088cRluSv','stringify','getValue','xlink:href','complete','parse','subscribe','evenodd','762986khUtMI','apply','propertyIsEnumerable','symbol','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','registerSharedOperation','_configService','has','use','concat','attrs','status$','onRendered','485461QIXcod','_startPresenting','_injector','asObservable','dispose$','145156hGaBVM','className','onStarting','_startFollowing','map','getMemberID','operations','button','send','_handleNewChangeSets','UNIVER_LIVE_SHARE_PLUGIN','currentColor','LIVESHARE_OPERATION','substring','url(#$1','LiveShareIcon','_status','univerjs-icon\x20univerjs-icon-','_handleOffline','toString','You\x27re\x20following\x20the\x20presenter','OFFLINE','stopFollowing','_status$','IDLE','idSuffix','startFollowing','memberID','end','_reporters','registerInitialStateReporter','entries','colorChannel1','replace','NEW_CHANGESETS','defs','hasOwnProperty','NOT_FOLLOWING','text','LIVESHARE_FETCH_OPERATIONS','trim','idle','getCurrentTypeOfUnit$','_entities','disposeWithMe','forEach','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','getInitialStates','delete','FOLLOWING','prototype','length','none','PRESENTING','not-following','_mountLiveShare','function','presenter','current','getConfig','mask','_stopFollowing','HEADER_MENU','executeCommand','_handleTerminate','next','string','data','You\x27are\x20offline.','Stop\x20presenting','2366556nZlceb','get','extend','stopPresenting','UNIVER_SHEET','div','_liveShareService','_unitID','type','params','values','find','_commandService','getTypeOfUnitDisposed$','unitId','570tNtSxZ','UniverIcon','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','dispose','_fetchOperations','then','default','_handleOperation','LIVESHARE_NEW_HOST','LIVESHARE_TERMINATE','displayName','mutations','event$','82ijhUkU','tag','defIds','add','offline','presenting','children','_beIdle','_init','1em','ONLINE','svg','tryStartPresenting','getTypeOfUnitAdded$','_univerInstanceService','getOwnPropertyDescriptor','0\x200\x2017\x2017','_startLiveShareCoordinator','reverse','from','_sharedOperations','_handleOnline','following','_collabSessionService'];_0x1d92=function(){return _0x2edc4a;};return _0x1d92();}m=we([Ne(0x0,_0x402fd8(L))],m);function _0x5210(_0x49b6a6,_0x14a8f4){var _0x1d92af=_0x1d92();return _0x5210=function(_0x5210eb,_0x431c83){_0x5210eb=_0x5210eb-0x185;var _0x5c2e7e=_0x1d92af[_0x5210eb];return _0x5c2e7e;},_0x5210(_0x49b6a6,_0x14a8f4);}var c=function(){var _0x1c18b3=_0x44a38e;return c=Object['assign']||function(_0x1d0786){var _0x3fdaa1=_0x5210;for(var _0x4c249c,_0x2de348=0x1,_0x19afdf=arguments['length'];_0x2de348<_0x19afdf;_0x2de348++){_0x4c249c=arguments[_0x2de348];for(var _0x10c50a in _0x4c249c)Object[_0x3fdaa1(0x1af)][_0x3fdaa1(0x1a1)][_0x3fdaa1(0x210)](_0x4c249c,_0x10c50a)&&(_0x1d0786[_0x10c50a]=_0x4c249c[_0x10c50a]);}return _0x1d0786;},c[_0x1c18b3(0x223)](this,arguments);},Ce=function(_0x1ce49c,_0x22ca65){var _0x3c3017=_0x44a38e,_0x2d564f={};for(var _0x1d3fe9 in _0x1ce49c)Object[_0x3c3017(0x1af)][_0x3c3017(0x1a1)][_0x3c3017(0x210)](_0x1ce49c,_0x1d3fe9)&&_0x22ca65[_0x3c3017(0x218)](_0x1d3fe9)<0x0&&(_0x2d564f[_0x1d3fe9]=_0x1ce49c[_0x1d3fe9]);if(_0x1ce49c!=null&&typeof Object[_0x3c3017(0x200)]==_0x3c3017(0x1b5)){for(var _0x295c17=0x0,_0x1d3fe9=Object['getOwnPropertySymbols'](_0x1ce49c);_0x295c17<_0x1d3fe9['length'];_0x295c17++)_0x22ca65['indexOf'](_0x1d3fe9[_0x295c17])<0x0&&Object['prototype'][_0x3c3017(0x224)][_0x3c3017(0x210)](_0x1ce49c,_0x1d3fe9[_0x295c17])&&(_0x2d564f[_0x1d3fe9[_0x295c17]]=_0x1ce49c[_0x1d3fe9[_0x295c17]]);}return _0x2d564f;},W=_0x5d9349(function(_0x4e88d8,_0xbc55f){var _0x34be58=_0x44a38e,_0x4f5415=_0x4e88d8[_0x34be58(0x20a)],_0x27aff9=_0x4e88d8['id'],_0x1d2e80=_0x4e88d8[_0x34be58(0x235)],_0x26197c=_0x4e88d8[_0x34be58(0x1c5)],_0x88facc=Ce(_0x4e88d8,[_0x34be58(0x20a),'id',_0x34be58(0x235),'extend']),_0x55ca52=_0x34be58(0x18e)['concat'](_0x27aff9,'\x20')[_0x34be58(0x22b)](_0x1d2e80||'')[_0x34be58(0x1a5)](),_0x31a178=_0x352723('_'['concat'](Le()));return Y(_0x4f5415,''['concat'](_0x27aff9),{'defIds':_0x4f5415[_0x34be58(0x1e1)],'idSuffix':_0x31a178['current']},c({'ref':_0xbc55f,'className':_0x55ca52},_0x88facc),_0x26197c);});function Y(_0x2ff156,_0x43bb65,_0x485058,_0x53861c,_0x4bf2f4){var _0x158f74=_0x44a38e;return _0x33097c(_0x2ff156[_0x158f74(0x1e0)],c(c({'key':_0x43bb65},De(_0x2ff156,_0x485058,_0x4bf2f4)),_0x53861c),(xe(_0x2ff156,_0x485058)[_0x158f74(0x1e5)]||[])[_0x158f74(0x238)](function(_0x35caec,_0xf61440){var _0x23da1d=_0x158f74;return Y(_0x35caec,''[_0x23da1d(0x22b)](_0x43bb65,'-')[_0x23da1d(0x22b)](_0x2ff156[_0x23da1d(0x1e0)],'-')[_0x23da1d(0x22b)](_0xf61440),_0x485058,void 0x0,_0x4bf2f4);}));}function De(_0x5e1f5c,_0x277573,_0x3fbb34){var _0x5c0e12=_0x44a38e,_0x10f77c=c({},_0x5e1f5c[_0x5c0e12(0x22c)]);_0x3fbb34!=null&&_0x3fbb34[_0x5c0e12(0x19d)]&&_0x10f77c[_0x5c0e12(0x215)]==='colorChannel1'&&(_0x10f77c[_0x5c0e12(0x215)]=_0x3fbb34['colorChannel1']),_0x5e1f5c[_0x5c0e12(0x1e0)]===_0x5c0e12(0x1b9)&&_0x10f77c['id']&&(_0x10f77c['id']=_0x10f77c['id']+_0x277573[_0x5c0e12(0x196)]),Object[_0x5c0e12(0x19c)](_0x10f77c)[_0x5c0e12(0x1aa)](function(_0x101e5c){var _0x3dc3dd=_0x5c0e12,_0x14500d=_0x101e5c[0x0],_0x13391e=_0x101e5c[0x1];_0x14500d===_0x3dc3dd(0x1b9)&&typeof _0x13391e==_0x3dc3dd(0x1bf)&&(_0x10f77c[_0x14500d]=_0x13391e[_0x3dc3dd(0x19e)](/url\(#(.*)\)/,'url(#$1'[_0x3dc3dd(0x22b)](_0x277573[_0x3dc3dd(0x196)],')')));});var _0x2adcd1=_0x277573[_0x5c0e12(0x1e1)];return!_0x2adcd1||_0x2adcd1[_0x5c0e12(0x1b0)]===0x0||(_0x5e1f5c[_0x5c0e12(0x1e0)]===_0x5c0e12(0x22a)&&_0x10f77c[_0x5c0e12(0x21d)]&&(_0x10f77c['xlink:href']=_0x10f77c[_0x5c0e12(0x21d)]+_0x277573[_0x5c0e12(0x196)]),Object['entries'](_0x10f77c)[_0x5c0e12(0x1aa)](function(_0x27c93a){var _0x4915ee=_0x5c0e12,_0x16c555=_0x27c93a[0x0],_0x4436ba=_0x27c93a[0x1];typeof _0x4436ba==_0x4915ee(0x1bf)&&(_0x10f77c[_0x16c555]=_0x4436ba[_0x4915ee(0x19e)](/url\(#(.*)\)/,_0x4915ee(0x18b)[_0x4915ee(0x22b)](_0x277573[_0x4915ee(0x196)],')')));})),_0x10f77c;}function xe(_0x129935,_0x298d1d){var _0x1126a7=_0x44a38e,_0xceda42,_0xae3267=_0x298d1d[_0x1126a7(0x1e1)];return!_0xae3267||_0xae3267[_0x1126a7(0x1b0)]===0x0?_0x129935:_0x129935[_0x1126a7(0x1e0)]===_0x1126a7(0x1a0)&&(!((_0xceda42=_0x129935[_0x1126a7(0x1e5)])===null||_0xceda42===void 0x0)&&_0xceda42[_0x1126a7(0x1b0)])?c(c({},_0x129935),{'children':_0x129935[_0x1126a7(0x1e5)]['map'](function(_0x4c640b){var _0x97e184=_0x1126a7;return typeof _0x4c640b[_0x97e184(0x22c)]['id']=='string'&&_0xae3267&&_0xae3267[_0x97e184(0x1fd)](_0x4c640b[_0x97e184(0x22c)]['id'])?c(c({},_0x4c640b),{'attrs':c(c({},_0x4c640b[_0x97e184(0x22c)]),{'id':_0x4c640b[_0x97e184(0x22c)]['id']+_0x298d1d[_0x97e184(0x196)]})}):_0x4c640b;})}):_0x129935;}function Le(){var _0x1201c7=_0x44a38e;return Math[_0x1201c7(0x205)]()[_0x1201c7(0x190)](0x24)[_0x1201c7(0x18a)](0x2,0x8);}W[_0x44a38e(0x1dc)]=_0x44a38e(0x1d3);var ye={'tag':_0x44a38e(0x1ea),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x44a38e(0x1b1),'viewBox':_0x44a38e(0x1ef),'width':_0x44a38e(0x1e8),'height':_0x44a38e(0x1e8)},'children':[{'tag':_0x44a38e(0x20e),'attrs':{'fill':'currentColor','d':_0x44a38e(0x1ab)}},{'tag':'path','attrs':{'fill':_0x44a38e(0x188),'d':_0x44a38e(0x226),'fillRule':_0x44a38e(0x221),'clipRule':_0x44a38e(0x221)}}]},B=_0x5d9349(function(_0x548cdd,_0x441e0e){var _0x41f1c6=_0x44a38e;return _0x33097c(W,Object[_0x41f1c6(0x213)]({},_0x548cdd,{'id':'live-share-icon','ref':_0x441e0e,'icon':ye}));});B[_0x44a38e(0x1dc)]=_0x44a38e(0x18c);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x1013d8,_0x72f2f0,_0x4e0931,_0x418dcb)=>{for(var _0x5bb2d4=_0x418dcb>0x1?void 0x0:_0x418dcb?Re(_0x72f2f0,_0x4e0931):_0x72f2f0,_0x1ec6ac=_0x1013d8['length']-0x1,_0x532abb;_0x1ec6ac>=0x0;_0x1ec6ac--)(_0x532abb=_0x1013d8[_0x1ec6ac])&&(_0x5bb2d4=_0x532abb(_0x5bb2d4)||_0x5bb2d4);return _0x5bb2d4;},f=(_0x3532e5,_0x7db54f)=>(_0x269797,_0x2b0256)=>_0x7db54f(_0x269797,_0x2b0256,_0x3532e5);let I=class extends _0x1a4ef2{constructor(_0x4e5069,_0x434b81,_0x4496ad){var _0x27dd97=_0x44a38e;super(),d(this,_0x27dd97(0x1a8),new Map()),(this[_0x27dd97(0x1ed)]=_0x4e5069,this[_0x27dd97(0x231)]=_0x434b81,this['_collabSessionService']=_0x4496ad,this[_0x27dd97(0x1e7)]());}async['getLiveShareCoordinator'](_0x285a93){var _0x3df7cb=_0x44a38e;return this[_0x3df7cb(0x1a8)][_0x3df7cb(0x229)](_0x285a93)||await this[_0x3df7cb(0x1f0)](_0x285a93),this[_0x3df7cb(0x1a8)][_0x3df7cb(0x1c4)](_0x285a93);}['_init'](){var _0x47eff5=_0x44a38e;this[_0x47eff5(0x1ed)][_0x47eff5(0x1ec)](_0x352077[_0x47eff5(0x1c7)])[_0x47eff5(0x216)](_0x26dabd(this[_0x47eff5(0x233)]))[_0x47eff5(0x220)](async _0x28b6f4=>{var _0x10cb82=_0x47eff5;const _0x489cc1=_0x28b6f4[_0x10cb82(0x1fc)]();this[_0x10cb82(0x1a8)]['has'](_0x489cc1)||this['_startLiveShareCoordinator'](_0x489cc1);}),this[_0x47eff5(0x1ed)][_0x47eff5(0x1d0)](_0x352077[_0x47eff5(0x1c7)])['pipe'](_0x26dabd(this['dispose$']))['subscribe'](_0x3bb172=>{var _0x48f94f=_0x47eff5;const _0x15f6e3=_0x3bb172[_0x48f94f(0x1fc)](),_0x3f7c32=this[_0x48f94f(0x1a8)]['get'](_0x15f6e3);_0x3f7c32==null||_0x3f7c32['dispose']();});}async[_0x44a38e(0x1f0)](_0x3ea219){var _0x20f261=_0x44a38e;const _0x1ca947=await this[_0x20f261(0x1f6)]['requireSession'](_0x3ea219),_0x3aa915=this[_0x20f261(0x231)]['createInstance'](C,_0x3ea219,_0x1ca947);return _0x3aa915[_0x20f261(0x211)](),this[_0x20f261(0x1a8)]['set'](_0x3ea219,_0x3aa915),_0x3aa915;}};I=Z([f(0x0,_0x38e063),f(0x1,_0x402fd8(_0x35ad8c)),f(0x2,_0x402fd8(_0x4332dd))],I);var h=(_0x475651=>(_0x475651[_0x44a38e(0x192)]=_0x44a38e(0x1e3),_0x475651[_0x44a38e(0x195)]=_0x44a38e(0x1a6),_0x475651[_0x44a38e(0x1ae)]=_0x44a38e(0x1f5),_0x475651['NOT_FOLLOWING']=_0x44a38e(0x1b3),_0x475651[_0x44a38e(0x1b2)]=_0x44a38e(0x1e4),_0x475651))(h||{});const Pe=_0x44a38e(0x1fa),Ae=0xc8;let C=class extends _0x1a4ef2{constructor(_0x308ca7,_0x3c30a1,_0x210b27,_0x229886,_0x5a9045){var _0x1b864e=_0x44a38e;super(),d(this,_0x1b864e(0x194),new _0x3e6bed('idle')),d(this,_0x1b864e(0x22d),this[_0x1b864e(0x194)][_0x1b864e(0x232)]()),d(this,_0x1b864e(0x1e7),!0x1),d(this,'_commandDisposable',null),d(this,_0x1b864e(0x20d),null),(this[_0x1b864e(0x1ca)]=_0x308ca7,this[_0x1b864e(0x212)]=_0x3c30a1,this[_0x1b864e(0x228)]=_0x210b27,this[_0x1b864e(0x1c9)]=_0x229886,this[_0x1b864e(0x1cf)]=_0x5a9045);}get[_0x44a38e(0x18d)](){var _0x26d5a6=_0x44a38e;return this['_status$'][_0x26d5a6(0x21c)]();}[_0x44a38e(0x1d5)](){var _0x220952=_0x44a38e,_0x56f64b;(_0x56f64b=this['_commandDisposable'])==null||_0x56f64b[_0x220952(0x1d5)](),this[_0x220952(0x194)][_0x220952(0x1be)](_0x220952(0x1a6)),this[_0x220952(0x194)][_0x220952(0x21e)]();}[_0x44a38e(0x211)](){var _0x35d660=_0x44a38e;this[_0x35d660(0x1e7)]||(this[_0x35d660(0x1e7)]=!0x0,this['_collabSession']['sessionStatus$'][_0x35d660(0x216)](_0x26dabd(this['dispose$']))['subscribe'](_0x56b4ed=>{var _0x1b417b=_0x35d660;switch(_0x56b4ed){case _0x5cd0d9[_0x1b417b(0x192)]:this[_0x1b417b(0x18f)]();break;case _0x5cd0d9[_0x1b417b(0x1e9)]:this[_0x1b417b(0x1f4)]();break;}}),this['_collabSession'][_0x35d660(0x1de)][_0x35d660(0x216)](_0x26dabd(this[_0x35d660(0x233)]))[_0x35d660(0x220)](_0x262533=>{var _0x29a345=_0x35d660;const {eventID:_0x47bddd}=_0x262533;switch(_0x47bddd){case _0x39d58c[_0x29a345(0x1da)]:this[_0x29a345(0x204)](_0x262533);break;case _0x39d58c[_0x29a345(0x189)]:this[_0x29a345(0x1d9)](_0x262533);break;case _0x39d58c[_0x29a345(0x1db)]:this[_0x29a345(0x1bd)]();break;case _0x39d58c[_0x29a345(0x19f)]:this['_handleNewChangeSets'](_0x262533);break;}}));}[_0x44a38e(0x1eb)](){var _0x15ee09=_0x44a38e;this[_0x15ee09(0x212)][_0x15ee09(0x185)]({'eventID':_0x39d58c['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x15ee09(0x212)][_0x15ee09(0x239)]()}},this['_unitID']);}[_0x44a38e(0x1c6)](){var _0x38d041=_0x44a38e;this['_status']==='presenting'&&(this[_0x38d041(0x194)]['next'](_0x38d041(0x1a6)),this[_0x38d041(0x212)]['send']({'eventID':_0x39d58c[_0x38d041(0x1db)],'data':{'unitID':this['_unitID']}},this[_0x38d041(0x1ca)]));}[_0x44a38e(0x197)](){var _0x133dc3=_0x44a38e;this[_0x133dc3(0x18d)]===_0x133dc3(0x1b3)&&(this[_0x133dc3(0x194)][_0x133dc3(0x1be)](_0x133dc3(0x1f5)),this[_0x133dc3(0x237)]());}['stopFollowing'](){var _0x33201f=_0x44a38e;this[_0x33201f(0x18d)]===_0x33201f(0x1f5)&&this[_0x33201f(0x1ba)]();}[_0x44a38e(0x204)](_0x5a54e0){var _0x577911=_0x44a38e;const {presenter:_0xf66e76}=_0x5a54e0[_0x577911(0x1c0)],_0x5bd6d6=this['_collabSession'][_0x577911(0x239)]();this['_presenter']=_0xf66e76,_0xf66e76===_0x5bd6d6?(this[_0x577911(0x1ba)](),this[_0x577911(0x230)]()):this[_0x577911(0x18d)]!==_0x577911(0x1b3)&&(this[_0x577911(0x20b)](),this[_0x577911(0x237)]());}[_0x44a38e(0x1d6)](){var _0x573faf=_0x44a38e;const _0x44ff34={'eventID':_0x39d58c[_0x573faf(0x1a4)]};this[_0x573faf(0x212)][_0x573faf(0x185)](_0x44ff34,this[_0x573faf(0x1ca)]);}[_0x44a38e(0x1bd)](){var _0x4ee27a=_0x44a38e;this[_0x4ee27a(0x20d)]=null,this[_0x4ee27a(0x18d)]!==_0x4ee27a(0x1e4)&&this[_0x4ee27a(0x1e6)]();}[_0x44a38e(0x186)](_0x4716bd){var _0x3e9534=_0x44a38e;if(this['_status']==='following'&&this[_0x3e9534(0x20d)]===_0x4716bd['data'][_0x3e9534(0x198)]){const _0x14ab9f=_0x5b9873(_0x4716bd['data'])[_0x3e9534(0x1dd)][_0x3e9534(0x1f1)]()[_0x3e9534(0x1ce)](_0x2f8d75=>_0x2f8d75['id']===_0x2e6231['id']);if(_0x14ab9f){const _0x31de57=_0x14ab9f['params'][_0x3e9534(0x1d1)],_0x3b7d42=_0x14ab9f[_0x3e9534(0x1cc)][_0x3e9534(0x1fe)]['id'];setTimeout(()=>{var _0x2131e7=_0x3e9534;this['_commandService'][_0x2131e7(0x1bc)](_0x5d195d['id'],{'unitId':_0x31de57,'subUnitId':_0x3b7d42},{'fromCollab':!0x0});});}}}[_0x44a38e(0x230)](){var _0x7ceb25=_0x44a38e;this[_0x7ceb25(0x194)][_0x7ceb25(0x1be)]('presenting');const _0x174c2a=new Map(),_0x4825c4=this[_0x7ceb25(0x206)]=new _0x31be81();_0x4825c4[_0x7ceb25(0x1e2)](_0x542c96(()=>{var _0x3e5ce1=_0x7ceb25;_0x174c2a[_0x3e5ce1(0x1aa)](_0x482e26=>_0x482e26[_0x3e5ce1(0x21e)]()),_0x174c2a['clear']();})),_0x4825c4[_0x7ceb25(0x1e2)](this[_0x7ceb25(0x1cf)]['onCommandExecuted'](_0x26cc41=>{var _0x25d1ec=_0x7ceb25,_0x598cdc;if(_0x26cc41[_0x25d1ec(0x1cb)]!==_0x587d99[_0x25d1ec(0x207)]||!this[_0x25d1ec(0x1c9)]['shouldShareOperation'](_0x26cc41['id']))return;const {id:_0x53b5d5}=_0x26cc41;let _0x4bdd9f;_0x174c2a['has'](_0x53b5d5)?_0x4bdd9f=_0x174c2a['get'](_0x53b5d5):(_0x4bdd9f=new _0x468373(),_0x174c2a[_0x25d1ec(0x214)](_0x53b5d5,_0x4bdd9f),_0x4bdd9f['pipe'](_0x2477f4((_0x598cdc=this[_0x25d1ec(0x228)][_0x25d1ec(0x1b8)](Pe))!=null?_0x598cdc:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x25d1ec(0x220)](_0x3483e1=>{var _0x5411b9=_0x25d1ec;this[_0x5411b9(0x212)][_0x5411b9(0x185)]({'eventID':_0x39d58c[_0x5411b9(0x189)],'data':{'unitID':this['_unitID'],'operations':{[_0x3483e1['id']]:{'id':_0x3483e1['id'],'params':JSON[_0x5411b9(0x21b)](_0x3483e1['params'])}}}},this[_0x5411b9(0x1ca)]);})),_0x4bdd9f['next'](_0x26cc41);})),this[_0x7ceb25(0x1c9)][_0x7ceb25(0x1ac)](this[_0x7ceb25(0x1ca)])[_0x7ceb25(0x1aa)](_0x246aea=>this[_0x7ceb25(0x212)][_0x7ceb25(0x185)]({'eventID':_0x39d58c[_0x7ceb25(0x189)],'data':{'unitID':this['_unitID'],'operations':{[_0x246aea['id']]:{'id':_0x246aea['id'],'params':JSON[_0x7ceb25(0x21b)](_0x246aea[_0x7ceb25(0x1cc)])}}}},this['_unitID']));}[_0x44a38e(0x20b)](){var _0x68e1bc=_0x44a38e,_0x52847b;this[_0x68e1bc(0x194)][_0x68e1bc(0x1be)](_0x68e1bc(0x1a6)),(_0x52847b=this[_0x68e1bc(0x206)])==null||_0x52847b[_0x68e1bc(0x1d5)](),this[_0x68e1bc(0x206)]=null;}['_startFollowing'](){var _0x28d344=_0x44a38e,_0x5e6d26;(_0x5e6d26=this[_0x28d344(0x206)])==null||_0x5e6d26[_0x28d344(0x1d5)](),this[_0x28d344(0x194)][_0x28d344(0x1be)](_0x28d344(0x1f5));}[_0x44a38e(0x1e6)](){var _0x27e1d0=_0x44a38e,_0x26c9fd;this[_0x27e1d0(0x194)][_0x27e1d0(0x1be)](_0x27e1d0(0x1a6)),(_0x26c9fd=this['_commandDisposable'])==null||_0x26c9fd[_0x27e1d0(0x1d5)](),this[_0x27e1d0(0x206)]=null;}[_0x44a38e(0x1ba)](){var _0x1bd870=_0x44a38e,_0xddb5de;this[_0x1bd870(0x194)][_0x1bd870(0x1be)](_0x1bd870(0x1b3)),(_0xddb5de=this[_0x1bd870(0x206)])==null||_0xddb5de[_0x1bd870(0x1d5)]();}[_0x44a38e(0x1d9)](_0x1f60a0){var _0x534b15=_0x44a38e;if([_0x534b15(0x1e4),_0x534b15(0x1b3),'offline'][_0x534b15(0x1fd)](this[_0x534b15(0x18d)])||!_0x1f60a0[_0x534b15(0x1c0)][_0x534b15(0x1b6)]||_0x1f60a0['data'][_0x534b15(0x1b6)]===this['_collabSession'][_0x534b15(0x239)]())return;this['_status']===_0x534b15(0x1a6)&&this[_0x534b15(0x237)]();const _0x24dd1e=_0x1f60a0[_0x534b15(0x1c0)][_0x534b15(0x23a)];Object[_0x534b15(0x1cd)](_0x24dd1e)[_0x534b15(0x1aa)](_0x260759=>{var _0x71d385=_0x534b15;this[_0x71d385(0x1cf)][_0x71d385(0x1bc)](_0x260759['id'],_0x260759[_0x71d385(0x1cc)]?JSON[_0x71d385(0x21f)](_0x260759[_0x71d385(0x1cc)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x4a0f90=_0x44a38e,_0x1dcd2f;this['_status$']['next']('offline'),(_0x1dcd2f=this[_0x4a0f90(0x206)])==null||_0x1dcd2f['dispose']();}['_handleOnline'](){var _0x55045a=_0x44a38e;this[_0x55045a(0x194)][_0x55045a(0x1be)](_0x55045a(0x1a6)),this[_0x55045a(0x1d6)]();}};C=Z([f(0x2,_0xf56aa6),f(0x3,_0x402fd8(L)),f(0x4,_0xbc9001)],C);function Te(){var _0x29df0b=_0x44a38e;const _0x59cbe8=_0x6987fc(I),_0xbbdd08=_0x6987fc(_0x38e063),_0x5a59a3=_0x33556f(()=>_0xbbdd08[_0x29df0b(0x1a7)](_0x352077['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5b82ac,_0x3d32c4]=_0x9bb103(null),[_0xb6e78e,_0x4165c4]=_0x9bb103(h[_0x29df0b(0x195)]),_0x5e93c0=_0x352723(null);return _0x1fb546(()=>(_0x5a59a3&&_0x59cbe8['getLiveShareCoordinator'](_0x5a59a3['getUnitId']())[_0x29df0b(0x1d7)](_0x507889=>{var _0x3d3036=_0x29df0b;_0x3d32c4(_0x507889),_0x5e93c0[_0x3d3036(0x1b7)]=_0x507889[_0x3d3036(0x22d)][_0x3d3036(0x220)](_0x485362=>{_0x4165c4(_0x485362);});}),()=>{var _0x5704e3=_0x29df0b,_0x337213;(_0x337213=_0x5e93c0[_0x5704e3(0x1b7)])==null||_0x337213['unsubscribe'](),_0x5e93c0[_0x5704e3(0x1b7)]=null;}),[_0x5a59a3,_0x59cbe8]),_0x5b82ac?_0x5abe92(_0xa0c5fc,{'align':_0x29df0b(0x199),'disabled':_0xb6e78e===h[_0x29df0b(0x192)],'className':_0x29df0b(0x1d4),'overlay':_0x5abe92($e,{'status':_0xb6e78e,'coordinator':_0x5b82ac}),'children':_0x5abe92(_0x29df0b(0x23b),{'className':_0x146803('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xb6e78e===h[_0x29df0b(0x192)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xb6e78e!==h['OFFLINE']}),'type':'button','children':_0x5abe92(B,{'className':'univer-size-4'})})}):null;}function $e(_0x49cd04){var _0x2c9cc4=_0x44a38e;const {status:_0x448af2,coordinator:_0x149938}=_0x49cd04;switch(_0x448af2){case h[_0x2c9cc4(0x195)]:return _0x5abe92(Fe,{'coordinator':_0x149938});case h[_0x2c9cc4(0x1ae)]:return _0x5abe92(He,{'coordinator':_0x149938});case h[_0x2c9cc4(0x1a2)]:return _0x5abe92(je,{'coordinator':_0x149938});case h['OFFLINE']:return _0x5abe92(Ve,{});case h[_0x2c9cc4(0x1b2)]:return _0x5abe92(Ue,{'coordinator':_0x149938});default:return null;}}function Fe(_0x7c5272){var _0x4024a8=_0x44a38e;const {coordinator:_0xca0a87}=_0x7c5272;return _0x3d9b98(_0x1cc7ae,{'children':[_0x5abe92(_0x4024a8(0x1c8),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x4024a8(0x1f7)}),_0x5abe92(_0x5bb26b,{'onClick':()=>_0xca0a87[_0x4024a8(0x1eb)](),'children':'Start'})]});}function He(_0x54a1d2){var _0x47a8ee=_0x44a38e;const {coordinator:_0x214383}=_0x54a1d2;return _0x3d9b98(_0x1cc7ae,{'children':[_0x5abe92(_0x47a8ee(0x1c8),{'className':_0x47a8ee(0x20c),'children':_0x47a8ee(0x191)}),_0x5abe92(_0x5bb26b,{'onClick':()=>_0x214383[_0x47a8ee(0x193)](),'children':_0x47a8ee(0x217)})]});}function je(_0x445b08){var _0x394eef=_0x44a38e;const {coordinator:_0x29d768}=_0x445b08;return _0x3d9b98(_0x1cc7ae,{'children':[_0x5abe92(_0x394eef(0x1c8),{'className':_0x394eef(0x20c),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x5abe92(_0x5bb26b,{'variant':_0x394eef(0x1a3),'onClick':()=>_0x29d768[_0x394eef(0x197)](),'children':'Start\x20following'})]});}function Ue(_0x24945f){var _0x26c0a0=_0x44a38e;const {coordinator:_0x488e2c}=_0x24945f;return _0x3d9b98(_0x1cc7ae,{'children':[_0x5abe92(_0x26c0a0(0x1c8),{'className':_0x26c0a0(0x20c),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x5abe92(_0x5bb26b,{'variant':_0x26c0a0(0x1d8),'onClick':()=>_0x488e2c[_0x26c0a0(0x1c6)](),'children':_0x26c0a0(0x1c2)})]});}function Ve(){var _0x2e51e3=_0x44a38e;return _0x5abe92(_0x1cc7ae,{'children':_0x2e51e3(0x1c1)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0xd8229e,_0x5407c1,_0x8bb264,_0x3be9d3)=>{var _0x455487=_0x44a38e;for(var _0x56202c=_0x3be9d3>0x1?void 0x0:_0x3be9d3?Me(_0x5407c1,_0x8bb264):_0x5407c1,_0x44e844=_0xd8229e[_0x455487(0x1b0)]-0x1,_0x597069;_0x44e844>=0x0;_0x44e844--)(_0x597069=_0xd8229e[_0x44e844])&&(_0x56202c=_0x597069(_0x56202c)||_0x56202c);return _0x56202c;},$=(_0xd44207,_0xb8f80c)=>(_0x158d6b,_0x5ab871)=>_0xb8f80c(_0x158d6b,_0x5ab871,_0xd44207);let b=class extends _0x4588cf{constructor(_0x93c70a,_0x4da27a){var _0x429ae6=_0x44a38e;super(),this[_0x429ae6(0x231)]=_0x93c70a,this[_0x429ae6(0x208)]=_0x4da27a,this[_0x429ae6(0x1b4)]();}[_0x44a38e(0x1b4)](){var _0x1b3e56=_0x44a38e;this[_0x1b3e56(0x1a9)](this[_0x1b3e56(0x208)][_0x1b3e56(0x209)](_0x251823[_0x1b3e56(0x1bb)],()=>_0x219119(Te,this[_0x1b3e56(0x231)])));}};b=ke([$(0x0,_0x402fd8(_0x35ad8c)),$(0x1,_0x5df520)],b);var Ge=Object['defineProperty'],We=Object[_0x44a38e(0x1ee)],Ye=(_0x5ea31d,_0x5bc31d,_0x3d5123)=>_0x5bc31d in _0x5ea31d?Ge(_0x5ea31d,_0x5bc31d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3d5123}):_0x5ea31d[_0x5bc31d]=_0x3d5123,Be=(_0x2aac03,_0x3902e1,_0x3e69de,_0x5efb8a)=>{var _0x2f0578=_0x44a38e;for(var _0x3b9e02=_0x5efb8a>0x1?void 0x0:_0x5efb8a?We(_0x3902e1,_0x3e69de):_0x3902e1,_0x464b04=_0x2aac03[_0x2f0578(0x1b0)]-0x1,_0x450567;_0x464b04>=0x0;_0x464b04--)(_0x450567=_0x2aac03[_0x464b04])&&(_0x3b9e02=_0x450567(_0x3b9e02)||_0x3b9e02);return _0x3b9e02;},F=(_0x54abc4,_0x3dc981)=>(_0x394c76,_0x28cbc6)=>_0x3dc981(_0x394c76,_0x28cbc6,_0x54abc4),J=(_0x342dc0,_0x5cd429,_0x2333d5)=>Ye(_0x342dc0,typeof _0x5cd429!='symbol'?_0x5cd429+'':_0x5cd429,_0x2333d5);const Ze=_0x44a38e(0x187);let O=class extends _0x3f708e{constructor(_0x2927c4=T,_0x1eb9ee,_0x371722){var _0x3fdd5b=_0x44a38e;super(),this[_0x3fdd5b(0x201)]=_0x2927c4,this['_injector']=_0x1eb9ee,this[_0x3fdd5b(0x228)]=_0x371722;const {..._0x864e3e}=_0x48ee6f({},T,this[_0x3fdd5b(0x201)]);this[_0x3fdd5b(0x228)][_0x3fdd5b(0x1ff)](Oe,_0x864e3e);}[_0x44a38e(0x236)](){var _0x5b494f=_0x44a38e;_0x1e03e5(this[_0x5b494f(0x231)],_0x4114d9([[L],[I],[m],[b]],this[_0x5b494f(0x201)]['override'])),_0x5794c1(this[_0x5b494f(0x231)],[[m]]);}[_0x44a38e(0x22e)](){var _0x4e5e02=_0x44a38e;_0x5794c1(this[_0x4e5e02(0x231)],[[b]]);}};J(O,'type',_0x352077[_0x44a38e(0x1f9)]),J(O,_0x44a38e(0x203),Ze),O=Be([_0x432e83(_0x590024),F(0x1,_0x402fd8(_0x35ad8c)),F(0x2,_0xf56aa6)],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 _0x1156(_0x47a9d7,_0x47a509){var _0x3f69c8=_0x3f69();return _0x1156=function(_0x1156c0,_0x2e217f){_0x1156c0=_0x1156c0-0x1e1;var _0x40b0f5=_0x3f69c8[_0x1156c0];return _0x40b0f5;},_0x1156(_0x47a9d7,_0x47a509);}function _0x3f69(){var _0x17c4d9=['requireSession','ONLINE','UniverCollaborationClientPlugin','Start\x20following','useRef','Inject','You\x27re\x20presenting\x20the\x20document','asObservable','_startLiveShareCoordinator','stopPresenting','univer-size-4','NEW_CHANGESETS','createInstance','offline','_commandService','UniverCore','NOT_FOLLOWING','parseProtocolChangeset','useEffect','_collabSessionService','unitId','Start','getInitialStates','url(#$1','init','rxjs/operators','SessionStatus','defs','mutations','useDependency','DesktopLiveShareController','Plugin','LIVESHARE_NEW_HOST','live-share-icon','call','HEADER_MENU','extend','params','2217582KtOoRM','_stopPresenting','univerjs-icon\x20univerjs-icon-','clsx','current','356senjOD','dispose','rxjs','forEach','7543249oOAwnQ','UniverProLiveShare','tryStartPresenting','then','LiveShareCoordinator','React','1152QcXzXN','mergeOverrideWithDependencies','getOwnPropertySymbols','FOLLOWING','stopFollowing','_handleNewHost','jsxs','LiveShareIcon','_injector','_mountLiveShare','amd','IUniverInstanceService','_fetchOperations','Dropdown','@univerjs/sheets-ui','xlink:href','LIVESHARE_OPERATION','6231985dVJmaN','LiveShare','pluginName','add','sheet','_uiPartsService','_startPresenting','length','useObservable','getLiveShareCoordinator','substring','1765520rRfyKB','delete','status$','getUnitId','toString','@univerjs/design','univer-w-full\x20univer-mb-3\x20univer-text-sm','_liveShareService','UniverInstanceType','318HpNcID','toStringTag','indexOf','UniverProCollaborationClient','propertyIsEnumerable','div','children','LiveShareService','getTypeOfUnitDisposed$','_handleOnline','prototype','complete','tag','function','startFollowing','getMemberID','_commandDisposable','getOwnPropertyDescriptor','getConfig','type','end','Injector','executeCommand','reverse','_status$','registerSharedOperation','symbol','_stopFollowing','map','string','presenter','_configService','_univerInstanceService','idSuffix','PRESENTING','memberID','react','next','@univerjs-pro/collaboration-client','UNIVER_LIVE_SHARE_PLUGIN','_config','InsertSheetMutation','CommandType','pipe','none','exports','toDisposable','SetWorksheetActiveOperation','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','forwardRef','useState','data','@univerjs/core','operations','random','use','OPERATION','_reporters','_startFollowing','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','setConfig','getCurrentTypeOfUnit$','icon','defIds','takeUntil','onCommandExecuted','currentColor','presenting','Subject','LIVESHARE_TERMINATE','LIVESHARE_FETCH_OPERATIONS','shouldShareOperation','UniverLiveSharePlugin','hasOwnProperty','_presenter','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','Module','not-following','SAME_OPERATION_SHARE_INTERVAL','colorChannel1','touchDependencies','replace','path','56268Otvuzg','Stop\x20following','Button','idle','default','CollaborationSessionService','concat','react/jsx-runtime','LiveShareController','dispose$','BehaviorSubject','jsx','set','UNIVER_SHEET','UniverProCollaboration','object','IDLE','assign','svg','UNIVER_UNKNOWN','defineProperty','entries','has','OFFLINE','getTypeOfUnitAdded$','registerInitialStateReporter','registerDependencies','operators','UniverSheetsUi','828333nuwJrs','stringify','unsubscribe','RxDisposable','merge','You\x27are\x20offline.','CollaborationEvent','_sharedOperations','disposeWithMe','connectInjector','Fragment','sessionStatus$','fill','Stop\x20presenting','send','clear','0\x200\x2017\x2017','Disposable','displayName','_status','subscribe','_init','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','1em','@univerjs/sheets','UniverDesign','get','ICommandService','registerComponent','live-share.config','LIVESHARE_REQUEST_HOST','BuiltInUIPart','onStarting','UniverSheets','@univerjs-pro/collaboration','className','following','@univerjs/ui','_entities','attrs','DependentOn','_handleTerminate','_collabSession','from','getValue','createElement','_beIdle','_unitID','override','_handleOffline','_handleOperation'];_0x3f69=function(){return _0x17c4d9;};return _0x3f69();}(function(_0x485388,_0x31a5b5){var _0x3f14e0=_0x1156,_0x4e2704=_0x485388();while(!![]){try{var _0x4e963d=parseInt(_0x3f14e0(0x2bc))/0x1+parseInt(_0x3f14e0(0x243))/0x2+-parseInt(_0x3f14e0(0x24c))/0x3*(parseInt(_0x3f14e0(0x21d))/0x4)+-parseInt(_0x3f14e0(0x238))/0x5+parseInt(_0x3f14e0(0x218))/0x6+-parseInt(_0x3f14e0(0x221))/0x7+-parseInt(_0x3f14e0(0x227))/0x8*(-parseInt(_0x3f14e0(0x29f))/0x9);if(_0x4e963d===_0x31a5b5)break;else _0x4e2704['push'](_0x4e2704['shift']());}catch(_0x1b72d5){_0x4e2704['push'](_0x4e2704['shift']());}}}(_0x3f69,0x9e174),function(_0x3449bd,_0x27be52){var _0x544972=_0x1156;typeof exports==_0x544972(0x2ae)&&typeof module<'u'?_0x27be52(exports,require(_0x544972(0x272)),require('@univerjs/core'),require('@univerjs/sheets'),require(_0x544972(0x235)),require(_0x544972(0x1e4)),require(_0x544972(0x2a6)),require(_0x544972(0x248)),require(_0x544972(0x270)),require(_0x544972(0x1e1)),require(_0x544972(0x21f)),require(_0x544972(0x20b))):typeof define==_0x544972(0x259)&&define[_0x544972(0x231)]?define([_0x544972(0x279),'@univerjs-pro/collaboration-client',_0x544972(0x280),_0x544972(0x2d4),_0x544972(0x235),_0x544972(0x1e4),_0x544972(0x2a6),'@univerjs/design','react',_0x544972(0x1e1),_0x544972(0x21f),_0x544972(0x20b)],_0x27be52):(_0x3449bd=typeof globalThis<'u'?globalThis:_0x3449bd||self,_0x27be52(_0x3449bd[_0x544972(0x222)]={},_0x3449bd[_0x544972(0x24f)],_0x3449bd[_0x544972(0x201)],_0x3449bd[_0x544972(0x2dd)],_0x3449bd[_0x544972(0x2bb)],_0x3449bd['UniverUi'],_0x3449bd['React'],_0x3449bd[_0x544972(0x2d5)],_0x3449bd[_0x544972(0x226)],_0x3449bd[_0x544972(0x2ad)],_0x3449bd[_0x544972(0x21f)],_0x3449bd[_0x544972(0x21f)][_0x544972(0x2ba)]));}(this,function(_0x3922ba,_0x4b448c,_0x51fddc,_0x330718,_0xce2c7b,_0x1e0431,_0x49be1,_0xa1bc07,_0x5eeba2,_0x5aeed6,_0x151af6,_0x2e3af3){'use strict';var _0xa030a2=_0x1156;var _0x41db5c=Object[_0xa030a2(0x2b3)],_0x1a7c00=(_0x1c892a,_0x4392ee,_0x1ff203)=>_0x4392ee in _0x1c892a?_0x41db5c(_0x1c892a,_0x4392ee,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ff203}):_0x1c892a[_0x4392ee]=_0x1ff203,_0x1b5e5f=(_0x64b7d0,_0xf1e7cc,_0x4d0e69)=>_0x1a7c00(_0x64b7d0,typeof _0xf1e7cc!=_0xa030a2(0x266)?_0xf1e7cc+'':_0xf1e7cc,_0x4d0e69);const _0x138e46=_0xa030a2(0x2d9),_0x30e877={};class _0x3c4b2c extends _0x51fddc['Disposable']{constructor(){var _0x123a58=_0xa030a2;super(...arguments),_0x1b5e5f(this,_0x123a58(0x2c3),new Set()),_0x1b5e5f(this,_0x123a58(0x285),new Set());}['registerSharedOperation'](_0x585d89){var _0x1174f8=_0xa030a2;return this[_0x1174f8(0x2c3)][_0x1174f8(0x23b)](_0x585d89),_0x51fddc[_0x1174f8(0x27a)](()=>this[_0x1174f8(0x2c3)][_0x1174f8(0x244)](_0x585d89));}[_0xa030a2(0x2b8)](_0x36a28c){var _0x1106a7=_0xa030a2;return this[_0x1106a7(0x285)]['add'](_0x36a28c),_0x51fddc['toDisposable'](()=>this[_0x1106a7(0x285)][_0x1106a7(0x244)](_0x36a28c));}[_0xa030a2(0x293)](_0x47d65d){var _0x971239=_0xa030a2;return this[_0x971239(0x2c3)]['has'](_0x47d65d);}[_0xa030a2(0x208)](_0x434908){var _0x34a085=_0xa030a2;return Array[_0x34a085(0x1ea)](this[_0x34a085(0x285)])[_0x34a085(0x268)](_0x3d5077=>_0x3d5077(_0x434908));}}var _0x44a93f=Object[_0xa030a2(0x25d)],_0xed1ad7=(_0x37cb14,_0xbcdc88,_0x3199f4,_0xddcb29)=>{var _0x2cf455=_0xa030a2;for(var _0x21c32c=_0xddcb29>0x1?void 0x0:_0xddcb29?_0x44a93f(_0xbcdc88,_0x3199f4):_0xbcdc88,_0x340094=_0x37cb14[_0x2cf455(0x23f)]-0x1,_0x1bb236;_0x340094>=0x0;_0x340094--)(_0x1bb236=_0x37cb14[_0x340094])&&(_0x21c32c=_0x1bb236(_0x21c32c)||_0x21c32c);return _0x21c32c;},_0x19217f=(_0x14c5e8,_0x41bb88)=>(_0x248d9e,_0x5bf18f)=>_0x41bb88(_0x248d9e,_0x5bf18f,_0x14c5e8);let _0x522c4f=class extends _0x51fddc[_0xa030a2(0x2cd)]{constructor(_0xf5d92b){super(),this['_liveShareService']=_0xf5d92b,this['_init']();}[_0xa030a2(0x2d1)](){var _0x35f7f6=_0xa030a2;[_0xce2c7b['SetZoomRatioOperation']['id'],_0xce2c7b['SetScrollOperation']['id'],_0x330718[_0x35f7f6(0x27b)]['id']][_0x35f7f6(0x220)](_0x26dd1a=>{var _0xdb92b3=_0x35f7f6;this[_0xdb92b3(0x2c4)](this['_liveShareService'][_0xdb92b3(0x265)](_0x26dd1a));});}};_0x522c4f=_0xed1ad7([_0x19217f(0x0,_0x51fddc[_0xa030a2(0x1f7)](_0x3c4b2c))],_0x522c4f);var _0x43b018=function(){return _0x43b018=Object['assign']||function(_0x4d71c6){var _0x1ca64f=_0x1156;for(var _0xa6a44c,_0xb7e31a=0x1,_0x570756=arguments[_0x1ca64f(0x23f)];_0xb7e31a<_0x570756;_0xb7e31a++){_0xa6a44c=arguments[_0xb7e31a];for(var _0x5a9e1d in _0xa6a44c)Object[_0x1ca64f(0x256)][_0x1ca64f(0x295)][_0x1ca64f(0x214)](_0xa6a44c,_0x5a9e1d)&&(_0x4d71c6[_0x5a9e1d]=_0xa6a44c[_0x5a9e1d]);}return _0x4d71c6;},_0x43b018['apply'](this,arguments);},_0x21f2ea=function(_0xf4c7c8,_0xafab29){var _0x21fbbe=_0xa030a2,_0x47c386={};for(var _0x77c6f2 in _0xf4c7c8)Object['prototype'][_0x21fbbe(0x295)][_0x21fbbe(0x214)](_0xf4c7c8,_0x77c6f2)&&_0xafab29[_0x21fbbe(0x24e)](_0x77c6f2)<0x0&&(_0x47c386[_0x77c6f2]=_0xf4c7c8[_0x77c6f2]);if(_0xf4c7c8!=null&&typeof Object['getOwnPropertySymbols']==_0x21fbbe(0x259)){for(var _0x594d5d=0x0,_0x77c6f2=Object[_0x21fbbe(0x229)](_0xf4c7c8);_0x594d5d<_0x77c6f2['length'];_0x594d5d++)_0xafab29['indexOf'](_0x77c6f2[_0x594d5d])<0x0&&Object[_0x21fbbe(0x256)][_0x21fbbe(0x250)]['call'](_0xf4c7c8,_0x77c6f2[_0x594d5d])&&(_0x47c386[_0x77c6f2[_0x594d5d]]=_0xf4c7c8[_0x77c6f2[_0x594d5d]]);}return _0x47c386;},_0x3f56b3=_0x5eeba2[_0xa030a2(0x27d)](function(_0x1666a6,_0x4a6128){var _0x3d8ddd=_0xa030a2,_0x16c1ce=_0x1666a6['icon'],_0x350af2=_0x1666a6['id'],_0x3f3064=_0x1666a6['className'],_0x367b60=_0x1666a6[_0x3d8ddd(0x216)],_0x554c73=_0x21f2ea(_0x1666a6,[_0x3d8ddd(0x28a),'id',_0x3d8ddd(0x1e2),_0x3d8ddd(0x216)]),_0x49d4f9=_0x3d8ddd(0x21a)['concat'](_0x350af2,'\x20')[_0x3d8ddd(0x2a5)](_0x3f3064||'')['trim'](),_0x24364d=_0x5eeba2['useRef']('_'['concat'](_0xab142d()));return _0x161fd3(_0x16c1ce,''[_0x3d8ddd(0x2a5)](_0x350af2),{'defIds':_0x16c1ce['defIds'],'idSuffix':_0x24364d[_0x3d8ddd(0x21c)]},_0x43b018({'ref':_0x4a6128,'className':_0x49d4f9},_0x554c73),_0x367b60);});function _0x161fd3(_0x42d35e,_0x2ac973,_0x5e7169,_0x4eecb6,_0x51af8f){var _0x1dc5da=_0xa030a2;return _0x5eeba2[_0x1dc5da(0x1ec)](_0x42d35e[_0x1dc5da(0x258)],_0x43b018(_0x43b018({'key':_0x2ac973},_0x524264(_0x42d35e,_0x5e7169,_0x51af8f)),_0x4eecb6),(_0x14b769(_0x42d35e,_0x5e7169)['children']||[])['map'](function(_0x53472b,_0x5809a8){var _0x1a9083=_0x1dc5da;return _0x161fd3(_0x53472b,''[_0x1a9083(0x2a5)](_0x2ac973,'-')['concat'](_0x42d35e['tag'],'-')[_0x1a9083(0x2a5)](_0x5809a8),_0x5e7169,void 0x0,_0x51af8f);}));}function _0x524264(_0x272a2f,_0x103df8,_0x117338){var _0x8e4a6b=_0xa030a2,_0x172bd7=_0x43b018({},_0x272a2f[_0x8e4a6b(0x1e6)]);_0x117338!=null&&_0x117338[_0x8e4a6b(0x29b)]&&_0x172bd7['fill']===_0x8e4a6b(0x29b)&&(_0x172bd7[_0x8e4a6b(0x2c8)]=_0x117338['colorChannel1']),_0x272a2f[_0x8e4a6b(0x258)]==='mask'&&_0x172bd7['id']&&(_0x172bd7['id']=_0x172bd7['id']+_0x103df8[_0x8e4a6b(0x26d)]),Object[_0x8e4a6b(0x2b4)](_0x172bd7)['forEach'](function(_0x3dda15){var _0x391f0a=_0x8e4a6b,_0x5931af=_0x3dda15[0x0],_0x527577=_0x3dda15[0x1];_0x5931af==='mask'&&typeof _0x527577==_0x391f0a(0x269)&&(_0x172bd7[_0x5931af]=_0x527577[_0x391f0a(0x29d)](/url\(#(.*)\)/,_0x391f0a(0x209)['concat'](_0x103df8[_0x391f0a(0x26d)],')')));});var _0xd3c40c=_0x103df8[_0x8e4a6b(0x28b)];return!_0xd3c40c||_0xd3c40c[_0x8e4a6b(0x23f)]===0x0||(_0x272a2f[_0x8e4a6b(0x258)]===_0x8e4a6b(0x283)&&_0x172bd7[_0x8e4a6b(0x236)]&&(_0x172bd7['xlink:href']=_0x172bd7[_0x8e4a6b(0x236)]+_0x103df8[_0x8e4a6b(0x26d)]),Object[_0x8e4a6b(0x2b4)](_0x172bd7)[_0x8e4a6b(0x220)](function(_0x5250f7){var _0x2941bd=_0x8e4a6b,_0x5adadd=_0x5250f7[0x0],_0x483009=_0x5250f7[0x1];typeof _0x483009==_0x2941bd(0x269)&&(_0x172bd7[_0x5adadd]=_0x483009[_0x2941bd(0x29d)](/url\(#(.*)\)/,_0x2941bd(0x209)[_0x2941bd(0x2a5)](_0x103df8[_0x2941bd(0x26d)],')')));})),_0x172bd7;}function _0x14b769(_0x384daa,_0x1f0dd5){var _0x59dea4=_0xa030a2,_0xbbcfdd,_0x2d8082=_0x1f0dd5[_0x59dea4(0x28b)];return!_0x2d8082||_0x2d8082[_0x59dea4(0x23f)]===0x0?_0x384daa:_0x384daa[_0x59dea4(0x258)]===_0x59dea4(0x20d)&&(!((_0xbbcfdd=_0x384daa['children'])===null||_0xbbcfdd===void 0x0)&&_0xbbcfdd[_0x59dea4(0x23f)])?_0x43b018(_0x43b018({},_0x384daa),{'children':_0x384daa[_0x59dea4(0x252)][_0x59dea4(0x268)](function(_0x4852b0){var _0x55ba3d=_0x59dea4;return typeof _0x4852b0['attrs']['id']==_0x55ba3d(0x269)&&_0x2d8082&&_0x2d8082['includes'](_0x4852b0[_0x55ba3d(0x1e6)]['id'])?_0x43b018(_0x43b018({},_0x4852b0),{'attrs':_0x43b018(_0x43b018({},_0x4852b0[_0x55ba3d(0x1e6)]),{'id':_0x4852b0[_0x55ba3d(0x1e6)]['id']+_0x1f0dd5[_0x55ba3d(0x26d)]})}):_0x4852b0;})}):_0x384daa;}function _0xab142d(){var _0x22fa4d=_0xa030a2;return Math[_0x22fa4d(0x282)]()[_0x22fa4d(0x247)](0x24)[_0x22fa4d(0x242)](0x2,0x8);}_0x3f56b3[_0xa030a2(0x2ce)]='UniverIcon';var _0x1c1999={'tag':_0xa030a2(0x2b1),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xa030a2(0x278),'viewBox':_0xa030a2(0x2cc),'width':_0xa030a2(0x2d3),'height':'1em'},'children':[{'tag':_0xa030a2(0x29e),'attrs':{'fill':_0xa030a2(0x28e),'d':_0xa030a2(0x2d2)}},{'tag':'path','attrs':{'fill':_0xa030a2(0x28e),'d':_0xa030a2(0x27c),'fillRule':'evenodd','clipRule':'evenodd'}}]},_0x24a436=_0x5eeba2[_0xa030a2(0x27d)](function(_0x8e0dc0,_0x4fc6b1){var _0x268428=_0xa030a2;return _0x5eeba2[_0x268428(0x1ec)](_0x3f56b3,Object[_0x268428(0x2b0)]({},_0x8e0dc0,{'id':_0x268428(0x213),'ref':_0x4fc6b1,'icon':_0x1c1999}));});_0x24a436[_0xa030a2(0x2ce)]=_0xa030a2(0x22e);var _0x1c9444=Object[_0xa030a2(0x25d)],_0x17d714=(_0x2919a5,_0x2ef8e6,_0x93d052,_0x3682b2)=>{var _0x4ff075=_0xa030a2;for(var _0x2e806c=_0x3682b2>0x1?void 0x0:_0x3682b2?_0x1c9444(_0x2ef8e6,_0x93d052):_0x2ef8e6,_0x2824cb=_0x2919a5[_0x4ff075(0x23f)]-0x1,_0x5bf966;_0x2824cb>=0x0;_0x2824cb--)(_0x5bf966=_0x2919a5[_0x2824cb])&&(_0x2e806c=_0x5bf966(_0x2e806c)||_0x2e806c);return _0x2e806c;},_0xb36e7b=(_0x3e8a67,_0x3bc130)=>(_0x3b7bea,_0x26a137)=>_0x3bc130(_0x3b7bea,_0x26a137,_0x3e8a67);_0x3922ba[_0xa030a2(0x2a7)]=class extends _0x51fddc['RxDisposable']{constructor(_0x3552f3,_0x566749,_0x12ff12){var _0x41145e=_0xa030a2;super(),_0x1b5e5f(this,'_entities',new Map()),(this[_0x41145e(0x26c)]=_0x3552f3,this[_0x41145e(0x22f)]=_0x566749,this[_0x41145e(0x205)]=_0x12ff12,this[_0x41145e(0x2d1)]());}async['getLiveShareCoordinator'](_0x145668){var _0x275cd7=_0xa030a2;return this[_0x275cd7(0x1e5)][_0x275cd7(0x2b5)](_0x145668)||await this[_0x275cd7(0x1fa)](_0x145668),this['_entities'][_0x275cd7(0x2d6)](_0x145668);}['_init'](){var _0x5292c2=_0xa030a2;this[_0x5292c2(0x26c)][_0x5292c2(0x2b7)](_0x51fddc['UniverInstanceType'][_0x5292c2(0x2ac)])[_0x5292c2(0x277)](_0x2e3af3[_0x5292c2(0x28c)](this[_0x5292c2(0x2a8)]))[_0x5292c2(0x2d0)](async _0x29e8e9=>{var _0x20a383=_0x5292c2;const _0x23c5e8=_0x29e8e9['getUnitId']();this[_0x20a383(0x1e5)][_0x20a383(0x2b5)](_0x23c5e8)||this[_0x20a383(0x1fa)](_0x23c5e8);}),this[_0x5292c2(0x26c)][_0x5292c2(0x254)](_0x51fddc[_0x5292c2(0x24b)][_0x5292c2(0x2ac)])[_0x5292c2(0x277)](_0x2e3af3[_0x5292c2(0x28c)](this[_0x5292c2(0x2a8)]))['subscribe'](_0x2e70e6=>{var _0x4003ac=_0x5292c2;const _0x946aca=_0x2e70e6['getUnitId'](),_0x4c961f=this[_0x4003ac(0x1e5)][_0x4003ac(0x2d6)](_0x946aca);_0x4c961f==null||_0x4c961f[_0x4003ac(0x21e)]();});}async[_0xa030a2(0x1fa)](_0xf86e4e){var _0x29c05e=_0xa030a2;const _0x55ff31=await this['_collabSessionService'][_0x29c05e(0x1f2)](_0xf86e4e),_0x40c505=this['_injector'][_0x29c05e(0x1fe)](_0x3922ba[_0x29c05e(0x225)],_0xf86e4e,_0x55ff31);return _0x40c505['init'](),this[_0x29c05e(0x1e5)][_0x29c05e(0x2ab)](_0xf86e4e,_0x40c505),_0x40c505;}},_0x3922ba[_0xa030a2(0x2a7)]=_0x17d714([_0xb36e7b(0x0,_0x51fddc[_0xa030a2(0x232)]),_0xb36e7b(0x1,_0x51fddc[_0xa030a2(0x1f7)](_0x51fddc[_0xa030a2(0x261)])),_0xb36e7b(0x2,_0x51fddc[_0xa030a2(0x1f7)](_0x4b448c[_0xa030a2(0x2a4)]))],_0x3922ba[_0xa030a2(0x2a7)]);var _0x46fa93=(_0x266c86=>(_0x266c86[_0xa030a2(0x2b6)]='offline',_0x266c86[_0xa030a2(0x2af)]=_0xa030a2(0x2a2),_0x266c86[_0xa030a2(0x22a)]=_0xa030a2(0x1e3),_0x266c86[_0xa030a2(0x202)]='not-following',_0x266c86['PRESENTING']='presenting',_0x266c86))(_0x46fa93||{});const _0x21e3af=_0xa030a2(0x29a),_0x2cb8f8=0xc8;_0x3922ba[_0xa030a2(0x225)]=class extends _0x51fddc[_0xa030a2(0x2bf)]{constructor(_0x2d5aff,_0x5a4b11,_0x3e09db,_0xce1dba,_0x1b3a5c){var _0x18a866=_0xa030a2;super(),_0x1b5e5f(this,_0x18a866(0x264),new _0x151af6[(_0x18a866(0x2a9))](_0x18a866(0x2a2))),_0x1b5e5f(this,_0x18a866(0x245),this['_status$'][_0x18a866(0x1f9)]()),_0x1b5e5f(this,_0x18a866(0x2d1),!0x1),_0x1b5e5f(this,_0x18a866(0x25c),null),_0x1b5e5f(this,_0x18a866(0x296),null),(this[_0x18a866(0x1ee)]=_0x2d5aff,this['_collabSession']=_0x5a4b11,this['_configService']=_0x3e09db,this[_0x18a866(0x24a)]=_0xce1dba,this[_0x18a866(0x200)]=_0x1b3a5c);}get[_0xa030a2(0x2cf)](){var _0x3c72f7=_0xa030a2;return this[_0x3c72f7(0x264)][_0x3c72f7(0x1eb)]();}[_0xa030a2(0x21e)](){var _0x55e57c=_0xa030a2,_0x498fc8;(_0x498fc8=this[_0x55e57c(0x25c)])==null||_0x498fc8['dispose'](),this[_0x55e57c(0x264)][_0x55e57c(0x271)](_0x55e57c(0x2a2)),this[_0x55e57c(0x264)][_0x55e57c(0x257)]();}[_0xa030a2(0x20a)](){var _0x1a513c=_0xa030a2;this[_0x1a513c(0x2d1)]||(this[_0x1a513c(0x2d1)]=!0x0,this[_0x1a513c(0x1e9)][_0x1a513c(0x2c7)][_0x1a513c(0x277)](_0x2e3af3['takeUntil'](this['dispose$']))[_0x1a513c(0x2d0)](_0x31e3ce=>{var _0x426762=_0x1a513c;switch(_0x31e3ce){case _0x4b448c[_0x426762(0x20c)][_0x426762(0x2b6)]:this[_0x426762(0x1f0)]();break;case _0x4b448c['SessionStatus'][_0x426762(0x1f3)]:this[_0x426762(0x255)]();break;}}),this[_0x1a513c(0x1e9)]['event$'][_0x1a513c(0x277)](_0x2e3af3[_0x1a513c(0x28c)](this['dispose$']))[_0x1a513c(0x2d0)](_0x1ee22c=>{var _0x5543f6=_0x1a513c;const {eventID:_0x2cb058}=_0x1ee22c;switch(_0x2cb058){case _0x5aeed6['CollaborationEvent'][_0x5543f6(0x212)]:this[_0x5543f6(0x22c)](_0x1ee22c);break;case _0x5aeed6[_0x5543f6(0x2c2)][_0x5543f6(0x237)]:this['_handleOperation'](_0x1ee22c);break;case _0x5aeed6[_0x5543f6(0x2c2)][_0x5543f6(0x291)]:this[_0x5543f6(0x1e8)]();break;case _0x5aeed6['CollaborationEvent'][_0x5543f6(0x1fd)]:this['_handleNewChangeSets'](_0x1ee22c);break;}}));}[_0xa030a2(0x223)](){var _0x1e2c01=_0xa030a2;this[_0x1e2c01(0x1e9)]['send']({'eventID':_0x5aeed6[_0x1e2c01(0x2c2)][_0x1e2c01(0x2da)],'data':{'unitID':this[_0x1e2c01(0x1ee)],'userID':this[_0x1e2c01(0x1e9)][_0x1e2c01(0x25b)]()}},this['_unitID']);}['stopPresenting'](){var _0x480c0b=_0xa030a2;this['_status']===_0x480c0b(0x28f)&&(this[_0x480c0b(0x264)][_0x480c0b(0x271)](_0x480c0b(0x2a2)),this[_0x480c0b(0x1e9)]['send']({'eventID':_0x5aeed6[_0x480c0b(0x2c2)][_0x480c0b(0x291)],'data':{'unitID':this[_0x480c0b(0x1ee)]}},this[_0x480c0b(0x1ee)]));}['startFollowing'](){var _0x2083a7=_0xa030a2;this[_0x2083a7(0x2cf)]==='not-following'&&(this['_status$'][_0x2083a7(0x271)](_0x2083a7(0x1e3)),this['_startFollowing']());}['stopFollowing'](){var _0x4fba23=_0xa030a2;this[_0x4fba23(0x2cf)]===_0x4fba23(0x1e3)&&this['_stopFollowing']();}['_handleNewHost'](_0x3962a3){var _0x3ce82a=_0xa030a2;const {presenter:_0x2105fe}=_0x3962a3[_0x3ce82a(0x27f)],_0xd78d71=this[_0x3ce82a(0x1e9)][_0x3ce82a(0x25b)]();this['_presenter']=_0x2105fe,_0x2105fe===_0xd78d71?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x3ce82a(0x2cf)]!==_0x3ce82a(0x299)&&(this[_0x3ce82a(0x219)](),this[_0x3ce82a(0x286)]());}[_0xa030a2(0x233)](){var _0x4fda41=_0xa030a2;const _0x259e6d={'eventID':_0x5aeed6[_0x4fda41(0x2c2)][_0x4fda41(0x292)]};this[_0x4fda41(0x1e9)][_0x4fda41(0x2ca)](_0x259e6d,this[_0x4fda41(0x1ee)]);}[_0xa030a2(0x1e8)](){var _0x471564=_0xa030a2;this['_presenter']=null,this[_0x471564(0x2cf)]!==_0x471564(0x28f)&&this['_beIdle']();}['_handleNewChangeSets'](_0x4ba616){var _0x5e740b=_0xa030a2;if(this[_0x5e740b(0x2cf)]===_0x5e740b(0x1e3)&&this[_0x5e740b(0x296)]===_0x4ba616[_0x5e740b(0x27f)][_0x5e740b(0x26f)]){const _0x2d5205=_0x5aeed6[_0x5e740b(0x203)](_0x4ba616[_0x5e740b(0x27f)])[_0x5e740b(0x20e)][_0x5e740b(0x263)]()['find'](_0x4f9bff=>_0x4f9bff['id']===_0x330718[_0x5e740b(0x275)]['id']);if(_0x2d5205){const _0x269407=_0x2d5205[_0x5e740b(0x217)][_0x5e740b(0x206)],_0x24753b=_0x2d5205['params'][_0x5e740b(0x23c)]['id'];setTimeout(()=>{var _0x6ca938=_0x5e740b;this[_0x6ca938(0x200)][_0x6ca938(0x262)](_0x330718[_0x6ca938(0x27b)]['id'],{'unitId':_0x269407,'subUnitId':_0x24753b},{'fromCollab':!0x0});});}}}[_0xa030a2(0x23e)](){var _0x193dfd=_0xa030a2;this[_0x193dfd(0x264)][_0x193dfd(0x271)](_0x193dfd(0x28f));const _0x470063=new Map(),_0x255f49=this['_commandDisposable']=new _0x51fddc['DisposableCollection']();_0x255f49[_0x193dfd(0x23b)](_0x51fddc[_0x193dfd(0x27a)](()=>{var _0x352ad6=_0x193dfd;_0x470063['forEach'](_0x5bd713=>_0x5bd713['complete']()),_0x470063[_0x352ad6(0x2cb)]();})),_0x255f49[_0x193dfd(0x23b)](this[_0x193dfd(0x200)][_0x193dfd(0x28d)](_0x420756=>{var _0x4c2302=_0x193dfd,_0x23c88d;if(_0x420756['type']!==_0x51fddc[_0x4c2302(0x276)][_0x4c2302(0x284)]||!this[_0x4c2302(0x24a)]['shouldShareOperation'](_0x420756['id']))return;const {id:_0x48766d}=_0x420756;let _0x1fdb66;_0x470063['has'](_0x48766d)?_0x1fdb66=_0x470063[_0x4c2302(0x2d6)](_0x48766d):(_0x1fdb66=new _0x151af6[(_0x4c2302(0x290))](),_0x470063[_0x4c2302(0x2ab)](_0x48766d,_0x1fdb66),_0x1fdb66[_0x4c2302(0x277)](_0x2e3af3['throttleTime']((_0x23c88d=this[_0x4c2302(0x26b)][_0x4c2302(0x25e)](_0x21e3af))!=null?_0x23c88d:_0x2cb8f8,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4c2302(0x2d0)](_0x1d25df=>{var _0x1e78ec=_0x4c2302;this['_collabSession'][_0x1e78ec(0x2ca)]({'eventID':_0x5aeed6[_0x1e78ec(0x2c2)][_0x1e78ec(0x237)],'data':{'unitID':this[_0x1e78ec(0x1ee)],'operations':{[_0x1d25df['id']]:{'id':_0x1d25df['id'],'params':JSON[_0x1e78ec(0x2bd)](_0x1d25df[_0x1e78ec(0x217)])}}}},this[_0x1e78ec(0x1ee)]);})),_0x1fdb66[_0x4c2302(0x271)](_0x420756);})),this['_liveShareService'][_0x193dfd(0x208)](this[_0x193dfd(0x1ee)])[_0x193dfd(0x220)](_0x15e8da=>this['_collabSession'][_0x193dfd(0x2ca)]({'eventID':_0x5aeed6[_0x193dfd(0x2c2)][_0x193dfd(0x237)],'data':{'unitID':this[_0x193dfd(0x1ee)],'operations':{[_0x15e8da['id']]:{'id':_0x15e8da['id'],'params':JSON['stringify'](_0x15e8da[_0x193dfd(0x217)])}}}},this[_0x193dfd(0x1ee)]));}[_0xa030a2(0x219)](){var _0x3676f2=_0xa030a2,_0x81dbc7;this['_status$']['next'](_0x3676f2(0x2a2)),(_0x81dbc7=this[_0x3676f2(0x25c)])==null||_0x81dbc7['dispose'](),this[_0x3676f2(0x25c)]=null;}[_0xa030a2(0x286)](){var _0x12daae=_0xa030a2,_0x55a393;(_0x55a393=this[_0x12daae(0x25c)])==null||_0x55a393[_0x12daae(0x21e)](),this[_0x12daae(0x264)][_0x12daae(0x271)](_0x12daae(0x1e3));}[_0xa030a2(0x1ed)](){var _0x379c03=_0xa030a2,_0x24e18a;this[_0x379c03(0x264)]['next'](_0x379c03(0x2a2)),(_0x24e18a=this[_0x379c03(0x25c)])==null||_0x24e18a[_0x379c03(0x21e)](),this['_commandDisposable']=null;}[_0xa030a2(0x267)](){var _0xc5b6a1=_0xa030a2,_0x4928b8;this['_status$'][_0xc5b6a1(0x271)](_0xc5b6a1(0x299)),(_0x4928b8=this[_0xc5b6a1(0x25c)])==null||_0x4928b8[_0xc5b6a1(0x21e)]();}[_0xa030a2(0x1f1)](_0x5aa5b3){var _0x4cf27b=_0xa030a2;if(['presenting','not-following',_0x4cf27b(0x1ff)]['includes'](this['_status'])||!_0x5aa5b3[_0x4cf27b(0x27f)][_0x4cf27b(0x26a)]||_0x5aa5b3['data'][_0x4cf27b(0x26a)]===this[_0x4cf27b(0x1e9)]['getMemberID']())return;this['_status']==='idle'&&this[_0x4cf27b(0x286)]();const _0x46875c=_0x5aa5b3[_0x4cf27b(0x27f)][_0x4cf27b(0x281)];Object['values'](_0x46875c)[_0x4cf27b(0x220)](_0x405c08=>{var _0x4f3437=_0x4cf27b;this[_0x4f3437(0x200)]['executeCommand'](_0x405c08['id'],_0x405c08[_0x4f3437(0x217)]?JSON['parse'](_0x405c08[_0x4f3437(0x217)]):null,{'fromCollab':!0x0});});}[_0xa030a2(0x1f0)](){var _0x15d9e0=_0xa030a2,_0x3fb92b;this[_0x15d9e0(0x264)][_0x15d9e0(0x271)](_0x15d9e0(0x1ff)),(_0x3fb92b=this[_0x15d9e0(0x25c)])==null||_0x3fb92b[_0x15d9e0(0x21e)]();}[_0xa030a2(0x255)](){var _0xddb4be=_0xa030a2;this[_0xddb4be(0x264)][_0xddb4be(0x271)](_0xddb4be(0x2a2)),this['_fetchOperations']();}},_0x3922ba[_0xa030a2(0x225)]=_0x17d714([_0xb36e7b(0x2,_0x51fddc['IConfigService']),_0xb36e7b(0x3,_0x51fddc[_0xa030a2(0x1f7)](_0x3c4b2c)),_0xb36e7b(0x4,_0x51fddc[_0xa030a2(0x2d7)])],_0x3922ba[_0xa030a2(0x225)]);function _0x23e6a7(){var _0x24f505=_0xa030a2;const _0x9f062c=_0x1e0431[_0x24f505(0x20f)](_0x3922ba[_0x24f505(0x2a7)]),_0x47bf3d=_0x1e0431[_0x24f505(0x20f)](_0x51fddc[_0x24f505(0x232)]),_0x43f56b=_0x1e0431[_0x24f505(0x240)](()=>_0x47bf3d[_0x24f505(0x289)](_0x51fddc[_0x24f505(0x24b)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x118166,_0x3aba9d]=_0x5eeba2['useState'](null),[_0xce011a,_0x31fefe]=_0x5eeba2[_0x24f505(0x27e)](_0x46fa93[_0x24f505(0x2af)]),_0x237c51=_0x5eeba2[_0x24f505(0x1f6)](null);return _0x5eeba2[_0x24f505(0x204)](()=>(_0x43f56b&&_0x9f062c[_0x24f505(0x241)](_0x43f56b[_0x24f505(0x246)]())[_0x24f505(0x224)](_0x30973c=>{var _0x2fcabf=_0x24f505;_0x3aba9d(_0x30973c),_0x237c51['current']=_0x30973c[_0x2fcabf(0x245)][_0x2fcabf(0x2d0)](_0x3cbe7e=>{_0x31fefe(_0x3cbe7e);});}),()=>{var _0x1fa6e9=_0x24f505,_0xe32a93;(_0xe32a93=_0x237c51[_0x1fa6e9(0x21c)])==null||_0xe32a93[_0x1fa6e9(0x2be)](),_0x237c51[_0x1fa6e9(0x21c)]=null;}),[_0x43f56b,_0x9f062c]),_0x118166?_0x49be1[_0x24f505(0x2aa)](_0xa1bc07[_0x24f505(0x234)],{'align':_0x24f505(0x260),'disabled':_0xce011a===_0x46fa93[_0x24f505(0x2b6)],'className':_0x24f505(0x297),'overlay':_0x49be1[_0x24f505(0x2aa)](_0x3b10ef,{'status':_0xce011a,'coordinator':_0x118166}),'children':_0x49be1[_0x24f505(0x2aa)]('button',{'className':_0xa1bc07[_0x24f505(0x21b)](_0x24f505(0x287),{'univer-cursor-not-allowed':_0xce011a===_0x46fa93['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xce011a!==_0x46fa93[_0x24f505(0x2b6)]}),'type':'button','children':_0x49be1[_0x24f505(0x2aa)](_0x24a436,{'className':_0x24f505(0x1fc)})})}):null;}function _0x3b10ef(_0x507818){var _0x335538=_0xa030a2;const {status:_0x1d5dc6,coordinator:_0xee4631}=_0x507818;switch(_0x1d5dc6){case _0x46fa93[_0x335538(0x2af)]:return _0x49be1[_0x335538(0x2aa)](_0x5bdb0a,{'coordinator':_0xee4631});case _0x46fa93[_0x335538(0x22a)]:return _0x49be1[_0x335538(0x2aa)](_0x54b6a8,{'coordinator':_0xee4631});case _0x46fa93[_0x335538(0x202)]:return _0x49be1[_0x335538(0x2aa)](_0x56388e,{'coordinator':_0xee4631});case _0x46fa93[_0x335538(0x2b6)]:return _0x49be1[_0x335538(0x2aa)](_0x15ea7f,{});case _0x46fa93[_0x335538(0x26e)]:return _0x49be1[_0x335538(0x2aa)](_0x58e22a,{'coordinator':_0xee4631});default:return null;}}function _0x5bdb0a(_0x3024a9){var _0x1047d5=_0xa030a2;const {coordinator:_0x295e58}=_0x3024a9;return _0x49be1[_0x1047d5(0x22d)](_0x49be1[_0x1047d5(0x2c6)],{'children':[_0x49be1[_0x1047d5(0x2aa)](_0x1047d5(0x251),{'className':_0x1047d5(0x249),'children':'Present\x20this\x20document'}),_0x49be1[_0x1047d5(0x2aa)](_0xa1bc07[_0x1047d5(0x2a1)],{'onClick':()=>_0x295e58[_0x1047d5(0x223)](),'children':_0x1047d5(0x207)})]});}function _0x54b6a8(_0x4d3c20){var _0x1a3044=_0xa030a2;const {coordinator:_0x467ec5}=_0x4d3c20;return _0x49be1[_0x1a3044(0x22d)](_0x49be1['Fragment'],{'children':[_0x49be1[_0x1a3044(0x2aa)](_0x1a3044(0x251),{'className':_0x1a3044(0x249),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x49be1[_0x1a3044(0x2aa)](_0xa1bc07[_0x1a3044(0x2a1)],{'onClick':()=>_0x467ec5[_0x1a3044(0x22b)](),'children':_0x1a3044(0x2a0)})]});}function _0x56388e(_0x37ec7a){var _0x38bc96=_0xa030a2;const {coordinator:_0x484944}=_0x37ec7a;return _0x49be1[_0x38bc96(0x22d)](_0x49be1['Fragment'],{'children':[_0x49be1[_0x38bc96(0x2aa)](_0x38bc96(0x251),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x49be1[_0x38bc96(0x2aa)](_0xa1bc07[_0x38bc96(0x2a1)],{'variant':'text','onClick':()=>_0x484944[_0x38bc96(0x25a)](),'children':_0x38bc96(0x1f5)})]});}function _0x58e22a(_0x195b2f){var _0x2e25c2=_0xa030a2;const {coordinator:_0xfd6f3c}=_0x195b2f;return _0x49be1['jsxs'](_0x49be1['Fragment'],{'children':[_0x49be1[_0x2e25c2(0x2aa)](_0x2e25c2(0x251),{'className':_0x2e25c2(0x249),'children':_0x2e25c2(0x1f8)}),_0x49be1[_0x2e25c2(0x2aa)](_0xa1bc07[_0x2e25c2(0x2a1)],{'variant':_0x2e25c2(0x2a3),'onClick':()=>_0xfd6f3c[_0x2e25c2(0x1fb)](),'children':_0x2e25c2(0x2c9)})]});}function _0x15ea7f(){var _0x3c3f49=_0xa030a2;return _0x49be1[_0x3c3f49(0x2aa)](_0x49be1[_0x3c3f49(0x2c6)],{'children':_0x3c3f49(0x2c1)});}var _0x2e2326=Object[_0xa030a2(0x25d)],_0x21254d=(_0x505582,_0x158bc6,_0x47568c,_0x1589b6)=>{var _0x5db27b=_0xa030a2;for(var _0x339b6a=_0x1589b6>0x1?void 0x0:_0x1589b6?_0x2e2326(_0x158bc6,_0x47568c):_0x158bc6,_0x171ef2=_0x505582[_0x5db27b(0x23f)]-0x1,_0x4a0668;_0x171ef2>=0x0;_0x171ef2--)(_0x4a0668=_0x505582[_0x171ef2])&&(_0x339b6a=_0x4a0668(_0x339b6a)||_0x339b6a);return _0x339b6a;},_0x2ce1a0=(_0x42162f,_0x51d228)=>(_0x4f92ce,_0x1535d0)=>_0x51d228(_0x4f92ce,_0x1535d0,_0x42162f);_0x3922ba[_0xa030a2(0x210)]=class extends _0x51fddc['Disposable']{constructor(_0x58d3b0,_0x100d16){var _0x1611a9=_0xa030a2;super(),this[_0x1611a9(0x22f)]=_0x58d3b0,this[_0x1611a9(0x23d)]=_0x100d16,this[_0x1611a9(0x230)]();}['_mountLiveShare'](){var _0x9d2f85=_0xa030a2;this[_0x9d2f85(0x2c4)](this[_0x9d2f85(0x23d)][_0x9d2f85(0x2d8)](_0x1e0431[_0x9d2f85(0x2db)][_0x9d2f85(0x215)],()=>_0x1e0431[_0x9d2f85(0x2c5)](_0x23e6a7,this[_0x9d2f85(0x22f)])));}},_0x3922ba[_0xa030a2(0x210)]=_0x21254d([_0x2ce1a0(0x0,_0x51fddc[_0xa030a2(0x1f7)](_0x51fddc['Injector'])),_0x2ce1a0(0x1,_0x1e0431['IUIPartsService'])],_0x3922ba[_0xa030a2(0x210)]);var _0x12c798=Object[_0xa030a2(0x2b3)],_0x4e1f41=Object[_0xa030a2(0x25d)],_0x5ce1a6=(_0x31a056,_0x317fd6,_0x36d02f)=>_0x317fd6 in _0x31a056?_0x12c798(_0x31a056,_0x317fd6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x36d02f}):_0x31a056[_0x317fd6]=_0x36d02f,_0x5bfc1d=(_0x4c1f48,_0x2e1ebd,_0x19f599,_0x558a27)=>{var _0x3c9ad2=_0xa030a2;for(var _0x2fa8e6=_0x558a27>0x1?void 0x0:_0x558a27?_0x4e1f41(_0x2e1ebd,_0x19f599):_0x2e1ebd,_0x25d2a6=_0x4c1f48[_0x3c9ad2(0x23f)]-0x1,_0x526ec8;_0x25d2a6>=0x0;_0x25d2a6--)(_0x526ec8=_0x4c1f48[_0x25d2a6])&&(_0x2fa8e6=_0x526ec8(_0x2fa8e6)||_0x2fa8e6);return _0x2fa8e6;},_0x16329f=(_0x3c465b,_0x179904)=>(_0x8bf296,_0x1de457)=>_0x179904(_0x8bf296,_0x1de457,_0x3c465b),_0x4a1db3=(_0x26b489,_0x5c5a89,_0x3b6ff2)=>_0x5ce1a6(_0x26b489,typeof _0x5c5a89!='symbol'?_0x5c5a89+'':_0x5c5a89,_0x3b6ff2);const _0x3e9a91=_0xa030a2(0x273);_0x3922ba['UniverLiveSharePlugin']=class extends _0x51fddc[_0xa030a2(0x211)]{constructor(_0x2514c3=_0x30e877,_0x3fc502,_0x37dfe4){var _0x3cad14=_0xa030a2;super(),this[_0x3cad14(0x274)]=_0x2514c3,this[_0x3cad14(0x22f)]=_0x3fc502,this[_0x3cad14(0x26b)]=_0x37dfe4;const {..._0x26c62f}=_0x51fddc[_0x3cad14(0x2c0)]({},_0x30e877,this['_config']);this[_0x3cad14(0x26b)][_0x3cad14(0x288)](_0x138e46,_0x26c62f);}[_0xa030a2(0x2dc)](){var _0x204082=_0xa030a2;_0x51fddc[_0x204082(0x2b9)](this[_0x204082(0x22f)],_0x51fddc[_0x204082(0x228)]([[_0x3c4b2c],[_0x3922ba[_0x204082(0x2a7)]],[_0x522c4f],[_0x3922ba[_0x204082(0x210)]]],this[_0x204082(0x274)][_0x204082(0x1ef)])),_0x51fddc[_0x204082(0x29c)](this[_0x204082(0x22f)],[[_0x522c4f]]);}['onRendered'](){var _0x15ecc9=_0xa030a2;_0x51fddc[_0x15ecc9(0x29c)](this[_0x15ecc9(0x22f)],[[_0x3922ba[_0x15ecc9(0x210)]]]);}},_0x4a1db3(_0x3922ba['UniverLiveSharePlugin'],_0xa030a2(0x25f),_0x51fddc[_0xa030a2(0x24b)][_0xa030a2(0x2b2)]),_0x4a1db3(_0x3922ba[_0xa030a2(0x294)],_0xa030a2(0x23a),_0x3e9a91),_0x3922ba['UniverLiveSharePlugin']=_0x5bfc1d([_0x51fddc[_0xa030a2(0x1e7)](_0x4b448c[_0xa030a2(0x1f4)]),_0x16329f(0x1,_0x51fddc[_0xa030a2(0x1f7)](_0x51fddc[_0xa030a2(0x261)])),_0x16329f(0x2,_0x51fddc['IConfigService'])],_0x3922ba[_0xa030a2(0x294)]),_0x3922ba[_0xa030a2(0x239)]=_0x23e6a7,_0x3922ba[_0xa030a2(0x253)]=_0x3c4b2c,_0x3922ba['LiveShareStatus']=_0x46fa93,Object[_0xa030a2(0x2b3)](_0x3922ba,Symbol[_0xa030a2(0x24d)],{'value':_0xa030a2(0x298)});}));
|
|
1
|
+
(function(_0x3b5f76,_0x23d04e){var _0x5be39b=_0x1f09,_0xfa9b6e=_0x3b5f76();while(!![]){try{var _0x593a28=parseInt(_0x5be39b(0x180))/0x1+-parseInt(_0x5be39b(0x150))/0x2*(parseInt(_0x5be39b(0x197))/0x3)+-parseInt(_0x5be39b(0x14f))/0x4*(-parseInt(_0x5be39b(0x156))/0x5)+parseInt(_0x5be39b(0x162))/0x6*(-parseInt(_0x5be39b(0xd1))/0x7)+-parseInt(_0x5be39b(0x18a))/0x8*(-parseInt(_0x5be39b(0x140))/0x9)+parseInt(_0x5be39b(0x161))/0xa+parseInt(_0x5be39b(0x15d))/0xb;if(_0x593a28===_0x23d04e)break;else _0xfa9b6e['push'](_0xfa9b6e['shift']());}catch(_0x33829e){_0xfa9b6e['push'](_0xfa9b6e['shift']());}}}(_0x23b3,0x8efc7),function(_0x353576,_0x26045f){var _0xbfb5b4=_0x1f09;typeof exports==_0xbfb5b4(0xea)&&typeof module<'u'?_0x26045f(exports,require(_0xbfb5b4(0x11f)),require(_0xbfb5b4(0x101)),require(_0xbfb5b4(0x125)),require(_0xbfb5b4(0x187)),require(_0xbfb5b4(0xa9)),require(_0xbfb5b4(0xa1)),require(_0xbfb5b4(0xc2)),require(_0xbfb5b4(0x15e)),require(_0xbfb5b4(0x17e)),require(_0xbfb5b4(0xf3)),require(_0xbfb5b4(0xc1))):typeof define==_0xbfb5b4(0xe5)&&define[_0xbfb5b4(0xbe)]?define([_0xbfb5b4(0x126),_0xbfb5b4(0x11f),_0xbfb5b4(0x101),_0xbfb5b4(0x125),_0xbfb5b4(0x187),_0xbfb5b4(0xa9),_0xbfb5b4(0xa1),'@univerjs/design',_0xbfb5b4(0x15e),'@univerjs-pro/collaboration',_0xbfb5b4(0xf3),_0xbfb5b4(0xc1)],_0x26045f):(_0x353576=typeof globalThis<'u'?globalThis:_0x353576||self,_0x26045f(_0x353576['UniverProLiveShare']={},_0x353576['UniverProCollaborationClient'],_0x353576[_0xbfb5b4(0x113)],_0x353576[_0xbfb5b4(0x14b)],_0x353576[_0xbfb5b4(0xf0)],_0x353576[_0xbfb5b4(0xe3)],_0x353576[_0xbfb5b4(0x127)],_0x353576[_0xbfb5b4(0x136)],_0x353576['React'],_0x353576['UniverProCollaboration'],_0x353576['rxjs'],_0x353576['rxjs'][_0xbfb5b4(0x15b)]));}(this,function(_0x59a356,_0x351a80,_0x2a0bb8,_0x890fbe,_0x1f6218,_0x4c5dc0,_0x57989b,_0x2f6b04,_0x35a39c,_0x512fab,_0xa212b9,_0x1a236f){'use strict';var _0x14b33a=_0x1f09;var _0x446e73=Object[_0x14b33a(0xd5)],_0x435649=(_0x1cb1d9,_0x2af865,_0x4ea337)=>_0x2af865 in _0x1cb1d9?_0x446e73(_0x1cb1d9,_0x2af865,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ea337}):_0x1cb1d9[_0x2af865]=_0x4ea337,_0x4d8c4c=(_0x2eecb8,_0x1e4eae,_0x43c89f)=>_0x435649(_0x2eecb8,typeof _0x1e4eae!=_0x14b33a(0xa4)?_0x1e4eae+'':_0x1e4eae,_0x43c89f);const _0x4be7ef=_0x14b33a(0x123),_0x1cd0aa={};class _0x41183a extends _0x2a0bb8['Disposable']{constructor(){var _0x9c94c0=_0x14b33a;super(...arguments),_0x4d8c4c(this,_0x9c94c0(0x154),new Set()),_0x4d8c4c(this,_0x9c94c0(0x167),new Set());}[_0x14b33a(0x14a)](_0x18cc1b){var _0x4898ea=_0x14b33a;return this[_0x4898ea(0x154)][_0x4898ea(0x116)](_0x18cc1b),_0x2a0bb8[_0x4898ea(0xf2)](()=>this[_0x4898ea(0x154)][_0x4898ea(0x122)](_0x18cc1b));}['registerInitialStateReporter'](_0x51d101){var _0xbffbea=_0x14b33a;return this[_0xbffbea(0x167)]['add'](_0x51d101),_0x2a0bb8[_0xbffbea(0xf2)](()=>this[_0xbffbea(0x167)]['delete'](_0x51d101));}[_0x14b33a(0x13a)](_0x5a6f2b){var _0x5ecde5=_0x14b33a;return this['_sharedOperations'][_0x5ecde5(0x135)](_0x5a6f2b);}[_0x14b33a(0x12a)](_0x55ee8c){var _0x218c73=_0x14b33a;return Array[_0x218c73(0x194)](this['_reporters'])[_0x218c73(0xbb)](_0x18fd0b=>_0x18fd0b(_0x55ee8c));}}var _0x3e4018=Object[_0x14b33a(0xa7)],_0x296b88=(_0x2b9694,_0x1d36a8,_0x7ee1a2,_0x3b3fbc)=>{for(var _0x3c2a68=_0x3b3fbc>0x1?void 0x0:_0x3b3fbc?_0x3e4018(_0x1d36a8,_0x7ee1a2):_0x1d36a8,_0x27298f=_0x2b9694['length']-0x1,_0x2425c2;_0x27298f>=0x0;_0x27298f--)(_0x2425c2=_0x2b9694[_0x27298f])&&(_0x3c2a68=_0x2425c2(_0x3c2a68)||_0x3c2a68);return _0x3c2a68;},_0x19fc0e=(_0x5de7dd,_0x156b8a)=>(_0x21e07,_0x252d9f)=>_0x156b8a(_0x21e07,_0x252d9f,_0x5de7dd);let _0x4ab8bc=class extends _0x2a0bb8[_0x14b33a(0x171)]{constructor(_0xe87c1e){var _0x3525b3=_0x14b33a;super(),this[_0x3525b3(0x112)]=_0xe87c1e,this[_0x3525b3(0xba)]();}[_0x14b33a(0xba)](){var _0x4f26fa=_0x14b33a;[_0x1f6218[_0x4f26fa(0xab)]['id'],_0x1f6218['SetScrollOperation']['id'],_0x890fbe[_0x4f26fa(0xd2)]['id']][_0x4f26fa(0x142)](_0x8fec5d=>{var _0x17b1e7=_0x4f26fa;this['disposeWithMe'](this[_0x17b1e7(0x112)]['registerSharedOperation'](_0x8fec5d));});}};_0x4ab8bc=_0x296b88([_0x19fc0e(0x0,_0x2a0bb8[_0x14b33a(0x109)](_0x41183a))],_0x4ab8bc);var _0x4edb62=function(){var _0xa53ac2=_0x14b33a;return _0x4edb62=Object[_0xa53ac2(0xa8)]||function(_0x31386e){var _0x21efce=_0xa53ac2;for(var _0x18712d,_0x2dfd95=0x1,_0xd7df3f=arguments[_0x21efce(0x11c)];_0x2dfd95<_0xd7df3f;_0x2dfd95++){_0x18712d=arguments[_0x2dfd95];for(var _0x5abce1 in _0x18712d)Object['prototype'][_0x21efce(0x17d)]['call'](_0x18712d,_0x5abce1)&&(_0x31386e[_0x5abce1]=_0x18712d[_0x5abce1]);}return _0x31386e;},_0x4edb62[_0xa53ac2(0x199)](this,arguments);},_0x3c32a5=function(_0x41604e,_0x7db4f2){var _0xc6b45c=_0x14b33a,_0x4e1d73={};for(var _0x45bed0 in _0x41604e)Object[_0xc6b45c(0xf1)][_0xc6b45c(0x17d)][_0xc6b45c(0xe0)](_0x41604e,_0x45bed0)&&_0x7db4f2[_0xc6b45c(0xf9)](_0x45bed0)<0x0&&(_0x4e1d73[_0x45bed0]=_0x41604e[_0x45bed0]);if(_0x41604e!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0xcfcd8c=0x0,_0x45bed0=Object[_0xc6b45c(0x169)](_0x41604e);_0xcfcd8c<_0x45bed0[_0xc6b45c(0x11c)];_0xcfcd8c++)_0x7db4f2['indexOf'](_0x45bed0[_0xcfcd8c])<0x0&&Object[_0xc6b45c(0xf1)][_0xc6b45c(0xd9)][_0xc6b45c(0xe0)](_0x41604e,_0x45bed0[_0xcfcd8c])&&(_0x4e1d73[_0x45bed0[_0xcfcd8c]]=_0x41604e[_0x45bed0[_0xcfcd8c]]);}return _0x4e1d73;},_0x55c9e2=_0x35a39c[_0x14b33a(0xd0)](function(_0xc5c1db,_0x1c5a3f){var _0x573c5b=_0x14b33a,_0x1718db=_0xc5c1db[_0x573c5b(0x129)],_0x473057=_0xc5c1db['id'],_0xd29ca2=_0xc5c1db[_0x573c5b(0x103)],_0x1bdefa=_0xc5c1db[_0x573c5b(0x17b)],_0x29ea60=_0x3c32a5(_0xc5c1db,[_0x573c5b(0x129),'id',_0x573c5b(0x103),_0x573c5b(0x17b)]),_0x217fd1='univerjs-icon\x20univerjs-icon-'[_0x573c5b(0x146)](_0x473057,'\x20')['concat'](_0xd29ca2||'')[_0x573c5b(0x120)](),_0x33b484=_0x35a39c[_0x573c5b(0xde)]('_'[_0x573c5b(0x146)](_0x47adf0()));return _0x440357(_0x1718db,''[_0x573c5b(0x146)](_0x473057),{'defIds':_0x1718db[_0x573c5b(0x182)],'idSuffix':_0x33b484[_0x573c5b(0xd8)]},_0x4edb62({'ref':_0x1c5a3f,'className':_0x217fd1},_0x29ea60),_0x1bdefa);});function _0x440357(_0x20feed,_0x2a196f,_0x42408e,_0x2b8ad0,_0x1b1639){var _0x58e3ee=_0x14b33a;return _0x35a39c[_0x58e3ee(0xf7)](_0x20feed[_0x58e3ee(0xeb)],_0x4edb62(_0x4edb62({'key':_0x2a196f},_0x3a908c(_0x20feed,_0x42408e,_0x1b1639)),_0x2b8ad0),(_0x152c80(_0x20feed,_0x42408e)[_0x58e3ee(0x177)]||[])['map'](function(_0x26dfc6,_0x357dcd){var _0x33afa7=_0x58e3ee;return _0x440357(_0x26dfc6,''['concat'](_0x2a196f,'-')[_0x33afa7(0x146)](_0x20feed[_0x33afa7(0xeb)],'-')['concat'](_0x357dcd),_0x42408e,void 0x0,_0x1b1639);}));}function _0x3a908c(_0x5aebad,_0x29b18c,_0x192a3f){var _0x1dd1d6=_0x14b33a,_0x4804dd=_0x4edb62({},_0x5aebad[_0x1dd1d6(0xe2)]);_0x192a3f!=null&&_0x192a3f[_0x1dd1d6(0x118)]&&_0x4804dd[_0x1dd1d6(0x102)]===_0x1dd1d6(0x118)&&(_0x4804dd[_0x1dd1d6(0x102)]=_0x192a3f[_0x1dd1d6(0x118)]),_0x5aebad[_0x1dd1d6(0xeb)]===_0x1dd1d6(0xc9)&&_0x4804dd['id']&&(_0x4804dd['id']=_0x4804dd['id']+_0x29b18c[_0x1dd1d6(0x10a)]),Object[_0x1dd1d6(0x108)](_0x4804dd)['forEach'](function(_0x4be8a7){var _0x4408e0=_0x1dd1d6,_0x55ddf0=_0x4be8a7[0x0],_0x5ec576=_0x4be8a7[0x1];_0x55ddf0===_0x4408e0(0xc9)&&typeof _0x5ec576==_0x4408e0(0x16e)&&(_0x4804dd[_0x55ddf0]=_0x5ec576[_0x4408e0(0x19a)](/url\(#(.*)\)/,_0x4408e0(0xca)['concat'](_0x29b18c['idSuffix'],')')));});var _0x56518f=_0x29b18c[_0x1dd1d6(0x182)];return!_0x56518f||_0x56518f[_0x1dd1d6(0x11c)]===0x0||(_0x5aebad[_0x1dd1d6(0xeb)]===_0x1dd1d6(0x10f)&&_0x4804dd['xlink:href']&&(_0x4804dd[_0x1dd1d6(0x10b)]=_0x4804dd['xlink:href']+_0x29b18c['idSuffix']),Object[_0x1dd1d6(0x108)](_0x4804dd)[_0x1dd1d6(0x142)](function(_0x4c1915){var _0x52af31=_0x1dd1d6,_0x350f33=_0x4c1915[0x0],_0x1c2b72=_0x4c1915[0x1];typeof _0x1c2b72=='string'&&(_0x4804dd[_0x350f33]=_0x1c2b72['replace'](/url\(#(.*)\)/,_0x52af31(0xca)[_0x52af31(0x146)](_0x29b18c[_0x52af31(0x10a)],')')));})),_0x4804dd;}function _0x152c80(_0x321892,_0x4374c7){var _0x9a29d=_0x14b33a,_0x51d384,_0x412e43=_0x4374c7[_0x9a29d(0x182)];return!_0x412e43||_0x412e43[_0x9a29d(0x11c)]===0x0?_0x321892:_0x321892[_0x9a29d(0xeb)]===_0x9a29d(0x18b)&&(!((_0x51d384=_0x321892[_0x9a29d(0x177)])===null||_0x51d384===void 0x0)&&_0x51d384[_0x9a29d(0x11c)])?_0x4edb62(_0x4edb62({},_0x321892),{'children':_0x321892[_0x9a29d(0x177)]['map'](function(_0x5ad12f){var _0x5966d7=_0x9a29d;return typeof _0x5ad12f[_0x5966d7(0xe2)]['id']==_0x5966d7(0x16e)&&_0x412e43&&_0x412e43[_0x5966d7(0x106)](_0x5ad12f[_0x5966d7(0xe2)]['id'])?_0x4edb62(_0x4edb62({},_0x5ad12f),{'attrs':_0x4edb62(_0x4edb62({},_0x5ad12f[_0x5966d7(0xe2)]),{'id':_0x5ad12f[_0x5966d7(0xe2)]['id']+_0x4374c7['idSuffix']})}):_0x5ad12f;})}):_0x321892;}function _0x47adf0(){var _0x526a4d=_0x14b33a;return Math[_0x526a4d(0x158)]()[_0x526a4d(0x110)](0x24)[_0x526a4d(0x16a)](0x2,0x8);}_0x55c9e2[_0x14b33a(0x107)]=_0x14b33a(0x176);var _0x267a19={'tag':_0x14b33a(0x18e),'attrs':{'xmlns':_0x14b33a(0xb6),'fill':_0x14b33a(0xcc),'viewBox':_0x14b33a(0x168),'width':_0x14b33a(0xdc),'height':_0x14b33a(0xdc)},'children':[{'tag':_0x14b33a(0x189),'attrs':{'fill':_0x14b33a(0xa2),'d':_0x14b33a(0x141)}},{'tag':_0x14b33a(0x189),'attrs':{'fill':_0x14b33a(0xa2),'d':_0x14b33a(0xb0),'fillRule':_0x14b33a(0x159),'clipRule':_0x14b33a(0x159)}}]},_0x1b263c=_0x35a39c['forwardRef'](function(_0x18a278,_0x19989a){var _0x5bc6e1=_0x14b33a;return _0x35a39c[_0x5bc6e1(0xf7)](_0x55c9e2,Object[_0x5bc6e1(0xa8)]({},_0x18a278,{'id':_0x5bc6e1(0x117),'ref':_0x19989a,'icon':_0x267a19}));});_0x1b263c[_0x14b33a(0x107)]='LiveShareIcon';var _0x1938b8=Object[_0x14b33a(0xa7)],_0x3db0f2=(_0x58d5e2,_0x424505,_0x221aa7,_0x3d92ab)=>{for(var _0x2eb125=_0x3d92ab>0x1?void 0x0:_0x3d92ab?_0x1938b8(_0x424505,_0x221aa7):_0x424505,_0x25b6de=_0x58d5e2['length']-0x1,_0x1ff611;_0x25b6de>=0x0;_0x25b6de--)(_0x1ff611=_0x58d5e2[_0x25b6de])&&(_0x2eb125=_0x1ff611(_0x2eb125)||_0x2eb125);return _0x2eb125;},_0x50a6aa=(_0x3b763b,_0x5d3f5d)=>(_0xd03243,_0x1bf611)=>_0x5d3f5d(_0xd03243,_0x1bf611,_0x3b763b);_0x59a356[_0x14b33a(0x172)]=class extends _0x2a0bb8['RxDisposable']{constructor(_0x2b2d34,_0x4c2bee,_0x3dc878){var _0x4eeeff=_0x14b33a;super(),_0x4d8c4c(this,'_entities',new Map()),(this[_0x4eeeff(0x14d)]=_0x2b2d34,this['_injector']=_0x4c2bee,this[_0x4eeeff(0xac)]=_0x3dc878,this['_init']());}async['getLiveShareCoordinator'](_0x2c3619){var _0x74a10a=_0x14b33a;return this[_0x74a10a(0x119)][_0x74a10a(0x135)](_0x2c3619)||await this[_0x74a10a(0x16f)](_0x2c3619),this[_0x74a10a(0x119)][_0x74a10a(0x184)](_0x2c3619);}['_init'](){var _0x58e896=_0x14b33a;this[_0x58e896(0x14d)][_0x58e896(0xfb)](_0x2a0bb8[_0x58e896(0x179)]['UNIVER_SHEET'])[_0x58e896(0xb8)](_0x1a236f['takeUntil'](this[_0x58e896(0x14c)]))[_0x58e896(0xc7)](async _0x10dcaa=>{var _0x347c47=_0x58e896;const _0x201241=_0x10dcaa[_0x347c47(0xcf)]();this[_0x347c47(0x119)]['has'](_0x201241)||this[_0x347c47(0x16f)](_0x201241);}),this[_0x58e896(0x14d)][_0x58e896(0xe9)](_0x2a0bb8[_0x58e896(0x179)]['UNIVER_SHEET'])['pipe'](_0x1a236f[_0x58e896(0xb9)](this[_0x58e896(0x14c)]))[_0x58e896(0xc7)](_0x32848f=>{var _0x449a5b=_0x58e896;const _0x4ab8c0=_0x32848f[_0x449a5b(0xcf)](),_0x116399=this['_entities']['get'](_0x4ab8c0);_0x116399==null||_0x116399[_0x449a5b(0xec)]();});}async[_0x14b33a(0x16f)](_0x471953){var _0x2e514e=_0x14b33a;const _0x5f2170=await this[_0x2e514e(0xac)][_0x2e514e(0xf6)](_0x471953),_0x319547=this[_0x2e514e(0xee)]['createInstance'](_0x59a356[_0x2e514e(0x143)],_0x471953,_0x5f2170);return _0x319547[_0x2e514e(0xb1)](),this[_0x2e514e(0x119)][_0x2e514e(0x155)](_0x471953,_0x319547),_0x319547;}},_0x59a356[_0x14b33a(0x172)]=_0x3db0f2([_0x50a6aa(0x0,_0x2a0bb8[_0x14b33a(0x17c)]),_0x50a6aa(0x1,_0x2a0bb8[_0x14b33a(0x109)](_0x2a0bb8[_0x14b33a(0xda)])),_0x50a6aa(0x2,_0x2a0bb8[_0x14b33a(0x109)](_0x351a80['CollaborationSessionService']))],_0x59a356['LiveShareController']);var _0x583609=(_0x1563db=>(_0x1563db[_0x14b33a(0x15c)]=_0x14b33a(0xcd),_0x1563db[_0x14b33a(0x15f)]=_0x14b33a(0x105),_0x1563db[_0x14b33a(0x13e)]='following',_0x1563db[_0x14b33a(0x149)]='not-following',_0x1563db['PRESENTING']=_0x14b33a(0x11a),_0x1563db))(_0x583609||{});const _0x1be183=_0x14b33a(0xaa),_0x392d13=0xc8;_0x59a356[_0x14b33a(0x143)]=class extends _0x2a0bb8[_0x14b33a(0xdd)]{constructor(_0x27fc3a,_0x3cbca3,_0x1fc6ea,_0x4b61c5,_0x350908){var _0x100678=_0x14b33a;super(),_0x4d8c4c(this,'_status$',new _0xa212b9[(_0x100678(0xc4))](_0x100678(0x105))),_0x4d8c4c(this,'status$',this[_0x100678(0x12f)]['asObservable']()),_0x4d8c4c(this,'_init',!0x1),_0x4d8c4c(this,'_commandDisposable',null),_0x4d8c4c(this,_0x100678(0x186),null),(this['_unitID']=_0x27fc3a,this[_0x100678(0x12d)]=_0x3cbca3,this[_0x100678(0xe6)]=_0x1fc6ea,this[_0x100678(0x112)]=_0x4b61c5,this[_0x100678(0xce)]=_0x350908);}get['_status'](){var _0x19fcd0=_0x14b33a;return this[_0x19fcd0(0x12f)][_0x19fcd0(0x139)]();}[_0x14b33a(0xec)](){var _0x167b21=_0x14b33a,_0x2c4ff3;(_0x2c4ff3=this['_commandDisposable'])==null||_0x2c4ff3[_0x167b21(0xec)](),this['_status$'][_0x167b21(0x12e)](_0x167b21(0x105)),this[_0x167b21(0x12f)][_0x167b21(0x196)]();}[_0x14b33a(0xb1)](){var _0x32f06c=_0x14b33a;this[_0x32f06c(0xba)]||(this[_0x32f06c(0xba)]=!0x0,this[_0x32f06c(0x12d)][_0x32f06c(0x14e)]['pipe'](_0x1a236f[_0x32f06c(0xb9)](this[_0x32f06c(0x14c)]))[_0x32f06c(0xc7)](_0x75722b=>{var _0x4fda81=_0x32f06c;switch(_0x75722b){case _0x351a80[_0x4fda81(0xc6)][_0x4fda81(0x15c)]:this[_0x4fda81(0x11e)]();break;case _0x351a80[_0x4fda81(0xc6)][_0x4fda81(0x16b)]:this[_0x4fda81(0x178)]();break;}}),this[_0x32f06c(0x12d)][_0x32f06c(0xa5)][_0x32f06c(0xb8)](_0x1a236f[_0x32f06c(0xb9)](this[_0x32f06c(0x14c)]))[_0x32f06c(0xc7)](_0x90acd5=>{var _0x36a1dc=_0x32f06c;const {eventID:_0x50e436}=_0x90acd5;switch(_0x50e436){case _0x512fab[_0x36a1dc(0x163)][_0x36a1dc(0x188)]:this['_handleNewHost'](_0x90acd5);break;case _0x512fab[_0x36a1dc(0x163)][_0x36a1dc(0x132)]:this[_0x36a1dc(0x164)](_0x90acd5);break;case _0x512fab[_0x36a1dc(0x163)][_0x36a1dc(0x181)]:this[_0x36a1dc(0x170)]();break;case _0x512fab[_0x36a1dc(0x163)][_0x36a1dc(0x17a)]:this['_handleNewChangeSets'](_0x90acd5);break;}}));}[_0x14b33a(0x16c)](){var _0x2e7127=_0x14b33a;this['_collabSession'][_0x2e7127(0x100)]({'eventID':_0x512fab[_0x2e7127(0x163)][_0x2e7127(0x10c)],'data':{'unitID':this[_0x2e7127(0xdf)],'userID':this[_0x2e7127(0x12d)]['getMemberID']()}},this[_0x2e7127(0xdf)]);}[_0x14b33a(0x114)](){var _0x3ffc7a=_0x14b33a;this['_status']===_0x3ffc7a(0x11a)&&(this[_0x3ffc7a(0x12f)][_0x3ffc7a(0x12e)](_0x3ffc7a(0x105)),this['_collabSession'][_0x3ffc7a(0x100)]({'eventID':_0x512fab[_0x3ffc7a(0x163)][_0x3ffc7a(0x181)],'data':{'unitID':this[_0x3ffc7a(0xdf)]}},this[_0x3ffc7a(0xdf)]));}[_0x14b33a(0x175)](){var _0xfda590=_0x14b33a;this[_0xfda590(0x13b)]==='not-following'&&(this[_0xfda590(0x12f)][_0xfda590(0x12e)](_0xfda590(0xf5)),this[_0xfda590(0xe4)]());}[_0x14b33a(0xdb)](){var _0x3d57e2=_0x14b33a;this['_status']===_0x3d57e2(0xf5)&&this[_0x3d57e2(0x10d)]();}['_handleNewHost'](_0x11c9c8){var _0x171d42=_0x14b33a;const {presenter:_0x3123eb}=_0x11c9c8['data'],_0x2c71cd=this[_0x171d42(0x12d)][_0x171d42(0x15a)]();this[_0x171d42(0x186)]=_0x3123eb,_0x3123eb===_0x2c71cd?(this['_stopFollowing'](),this[_0x171d42(0x190)]()):this[_0x171d42(0x13b)]!==_0x171d42(0x115)&&(this[_0x171d42(0x13c)](),this[_0x171d42(0xe4)]());}[_0x14b33a(0x166)](){var _0x168d5a=_0x14b33a;const _0x407233={'eventID':_0x512fab[_0x168d5a(0x163)][_0x168d5a(0x131)]};this['_collabSession'][_0x168d5a(0x100)](_0x407233,this[_0x168d5a(0xdf)]);}['_handleTerminate'](){var _0x289c68=_0x14b33a;this[_0x289c68(0x186)]=null,this['_status']!=='presenting'&&this['_beIdle']();}['_handleNewChangeSets'](_0x3c9b73){var _0x198a44=_0x14b33a;if(this['_status']==='following'&&this[_0x198a44(0x186)]===_0x3c9b73[_0x198a44(0xf8)]['memberID']){const _0xab7b7c=_0x512fab[_0x198a44(0x134)](_0x3c9b73[_0x198a44(0xf8)])[_0x198a44(0x133)]['reverse']()['find'](_0x195e07=>_0x195e07['id']===_0x890fbe[_0x198a44(0xb2)]['id']);if(_0xab7b7c){const _0x3f4871=_0xab7b7c[_0x198a44(0x152)]['unitId'],_0x528075=_0xab7b7c[_0x198a44(0x152)][_0x198a44(0xa3)]['id'];setTimeout(()=>{var _0xb8a76d=_0x198a44;this[_0xb8a76d(0xce)][_0xb8a76d(0xe7)](_0x890fbe[_0xb8a76d(0xd2)]['id'],{'unitId':_0x3f4871,'subUnitId':_0x528075},{'fromCollab':!0x0});});}}}[_0x14b33a(0x190)](){var _0x36735f=_0x14b33a;this[_0x36735f(0x12f)][_0x36735f(0x12e)](_0x36735f(0x11a));const _0x21e277=new Map(),_0x26dcf8=this[_0x36735f(0x130)]=new _0x2a0bb8[(_0x36735f(0x19b))]();_0x26dcf8['add'](_0x2a0bb8[_0x36735f(0xf2)](()=>{var _0x560bf3=_0x36735f;_0x21e277[_0x560bf3(0x142)](_0x18a668=>_0x18a668['complete']()),_0x21e277['clear']();})),_0x26dcf8[_0x36735f(0x116)](this[_0x36735f(0xce)][_0x36735f(0x174)](_0x7d45c9=>{var _0x4c46c2=_0x36735f,_0x2e4d0b;if(_0x7d45c9[_0x4c46c2(0xfa)]!==_0x2a0bb8['CommandType']['OPERATION']||!this[_0x4c46c2(0x112)]['shouldShareOperation'](_0x7d45c9['id']))return;const {id:_0x296c53}=_0x7d45c9;let _0x1551bb;_0x21e277[_0x4c46c2(0x135)](_0x296c53)?_0x1551bb=_0x21e277[_0x4c46c2(0x184)](_0x296c53):(_0x1551bb=new _0xa212b9[(_0x4c46c2(0x151))](),_0x21e277['set'](_0x296c53,_0x1551bb),_0x1551bb['pipe'](_0x1a236f[_0x4c46c2(0xad)]((_0x2e4d0b=this[_0x4c46c2(0xe6)][_0x4c46c2(0x192)](_0x1be183))!=null?_0x2e4d0b:_0x392d13,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4c46c2(0xc7)](_0xf1a0a2=>{var _0x419575=_0x4c46c2;this['_collabSession'][_0x419575(0x100)]({'eventID':_0x512fab['CollaborationEvent'][_0x419575(0x132)],'data':{'unitID':this[_0x419575(0xdf)],'operations':{[_0xf1a0a2['id']]:{'id':_0xf1a0a2['id'],'params':JSON[_0x419575(0xc5)](_0xf1a0a2[_0x419575(0x152)])}}}},this[_0x419575(0xdf)]);})),_0x1551bb[_0x4c46c2(0x12e)](_0x7d45c9);})),this[_0x36735f(0x112)]['getInitialStates'](this[_0x36735f(0xdf)])['forEach'](_0x2c0ecd=>this[_0x36735f(0x12d)][_0x36735f(0x100)]({'eventID':_0x512fab['CollaborationEvent'][_0x36735f(0x132)],'data':{'unitID':this[_0x36735f(0xdf)],'operations':{[_0x2c0ecd['id']]:{'id':_0x2c0ecd['id'],'params':JSON[_0x36735f(0xc5)](_0x2c0ecd['params'])}}}},this[_0x36735f(0xdf)]));}[_0x14b33a(0x13c)](){var _0x370ad9=_0x14b33a,_0x402ccd;this[_0x370ad9(0x12f)][_0x370ad9(0x12e)](_0x370ad9(0x105)),(_0x402ccd=this['_commandDisposable'])==null||_0x402ccd[_0x370ad9(0xec)](),this['_commandDisposable']=null;}[_0x14b33a(0xe4)](){var _0x290ed9=_0x14b33a,_0x2cdc3b;(_0x2cdc3b=this[_0x290ed9(0x130)])==null||_0x2cdc3b[_0x290ed9(0xec)](),this[_0x290ed9(0x12f)][_0x290ed9(0x12e)](_0x290ed9(0xf5));}[_0x14b33a(0x13f)](){var _0x283a3a=_0x14b33a,_0x167c22;this[_0x283a3a(0x12f)]['next'](_0x283a3a(0x105)),(_0x167c22=this[_0x283a3a(0x130)])==null||_0x167c22[_0x283a3a(0xec)](),this[_0x283a3a(0x130)]=null;}[_0x14b33a(0x10d)](){var _0x25cf19=_0x14b33a,_0x37aca7;this['_status$'][_0x25cf19(0x12e)](_0x25cf19(0x115)),(_0x37aca7=this[_0x25cf19(0x130)])==null||_0x37aca7[_0x25cf19(0xec)]();}['_handleOperation'](_0x2d30a9){var _0x44fda8=_0x14b33a;if([_0x44fda8(0x11a),'not-following',_0x44fda8(0xcd)][_0x44fda8(0x106)](this[_0x44fda8(0x13b)])||!_0x2d30a9[_0x44fda8(0xf8)][_0x44fda8(0x11d)]||_0x2d30a9[_0x44fda8(0xf8)][_0x44fda8(0x11d)]===this[_0x44fda8(0x12d)][_0x44fda8(0x15a)]())return;this[_0x44fda8(0x13b)]==='idle'&&this[_0x44fda8(0xe4)]();const _0xebaeae=_0x2d30a9[_0x44fda8(0xf8)][_0x44fda8(0x111)];Object['values'](_0xebaeae)[_0x44fda8(0x142)](_0x3ad01a=>{var _0x428691=_0x44fda8;this['_commandService'][_0x428691(0xe7)](_0x3ad01a['id'],_0x3ad01a[_0x428691(0x152)]?JSON[_0x428691(0xc8)](_0x3ad01a[_0x428691(0x152)]):null,{'fromCollab':!0x0});});}[_0x14b33a(0x11e)](){var _0x299246=_0x14b33a,_0xccd307;this[_0x299246(0x12f)][_0x299246(0x12e)](_0x299246(0xcd)),(_0xccd307=this['_commandDisposable'])==null||_0xccd307['dispose']();}['_handleOnline'](){var _0x4daf3b=_0x14b33a;this[_0x4daf3b(0x12f)]['next'](_0x4daf3b(0x105)),this['_fetchOperations']();}},_0x59a356['LiveShareCoordinator']=_0x3db0f2([_0x50a6aa(0x2,_0x2a0bb8['IConfigService']),_0x50a6aa(0x3,_0x2a0bb8[_0x14b33a(0x109)](_0x41183a)),_0x50a6aa(0x4,_0x2a0bb8[_0x14b33a(0xc3)])],_0x59a356[_0x14b33a(0x143)]);function _0x34a6b7(){var _0x29d2fe=_0x14b33a;const _0x550b50=_0x4c5dc0[_0x29d2fe(0xa6)](_0x59a356[_0x29d2fe(0x172)]),_0x5d9d83=_0x4c5dc0[_0x29d2fe(0xa6)](_0x2a0bb8['IUniverInstanceService']),_0x251dc7=_0x4c5dc0[_0x29d2fe(0xbc)](()=>_0x5d9d83[_0x29d2fe(0xb5)](_0x2a0bb8[_0x29d2fe(0x179)][_0x29d2fe(0xae)]),void 0x0,!0x1,[]),[_0x31e829,_0x1f60c2]=_0x35a39c[_0x29d2fe(0x12c)](null),[_0x1dd6bb,_0x4d0095]=_0x35a39c[_0x29d2fe(0x12c)](_0x583609['IDLE']),_0x54c0e3=_0x35a39c['useRef'](null);return _0x35a39c['useEffect'](()=>(_0x251dc7&&_0x550b50[_0x29d2fe(0x145)](_0x251dc7[_0x29d2fe(0xcf)]())[_0x29d2fe(0x183)](_0x41c6bb=>{var _0x1412a5=_0x29d2fe;_0x1f60c2(_0x41c6bb),_0x54c0e3[_0x1412a5(0xd8)]=_0x41c6bb['status$'][_0x1412a5(0xc7)](_0x20910a=>{_0x4d0095(_0x20910a);});}),()=>{var _0x1b1648=_0x29d2fe,_0x104a91;(_0x104a91=_0x54c0e3['current'])==null||_0x104a91[_0x1b1648(0xaf)](),_0x54c0e3[_0x1b1648(0xd8)]=null;}),[_0x251dc7,_0x550b50]),_0x31e829?_0x57989b[_0x29d2fe(0x104)](_0x2f6b04[_0x29d2fe(0xbd)],{'align':_0x29d2fe(0xd3),'disabled':_0x1dd6bb===_0x583609[_0x29d2fe(0x15c)],'className':_0x29d2fe(0xff),'overlay':_0x57989b[_0x29d2fe(0x104)](_0x585572,{'status':_0x1dd6bb,'coordinator':_0x31e829}),'children':_0x57989b['jsx']('button',{'className':_0x2f6b04['clsx'](_0x29d2fe(0x11b),{'univer-cursor-not-allowed':_0x1dd6bb===_0x583609[_0x29d2fe(0x15c)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1dd6bb!==_0x583609[_0x29d2fe(0x15c)]}),'type':_0x29d2fe(0x138),'children':_0x57989b[_0x29d2fe(0x104)](_0x1b263c,{'className':_0x29d2fe(0xf4)})})}):null;}function _0x585572(_0x5593b5){var _0x5be842=_0x14b33a;const {status:_0x5a7302,coordinator:_0x25b294}=_0x5593b5;switch(_0x5a7302){case _0x583609[_0x5be842(0x15f)]:return _0x57989b[_0x5be842(0x104)](_0x2f678d,{'coordinator':_0x25b294});case _0x583609[_0x5be842(0x13e)]:return _0x57989b['jsx'](_0x4e38d6,{'coordinator':_0x25b294});case _0x583609[_0x5be842(0x149)]:return _0x57989b['jsx'](_0x5ba73d,{'coordinator':_0x25b294});case _0x583609[_0x5be842(0x15c)]:return _0x57989b[_0x5be842(0x104)](_0x15412f,{});case _0x583609[_0x5be842(0xbf)]:return _0x57989b[_0x5be842(0x104)](_0x5c606a,{'coordinator':_0x25b294});default:return null;}}function _0x2f678d(_0xb3fcf3){var _0x1f83cd=_0x14b33a;const {coordinator:_0x48a2dc}=_0xb3fcf3;return _0x57989b[_0x1f83cd(0x144)](_0x57989b['Fragment'],{'children':[_0x57989b[_0x1f83cd(0x104)](_0x1f83cd(0x195),{'className':_0x1f83cd(0x18f),'children':'Present\x20this\x20document'}),_0x57989b[_0x1f83cd(0x104)](_0x2f6b04['Button'],{'onClick':()=>_0x48a2dc['tryStartPresenting'](),'children':_0x1f83cd(0xc0)})]});}function _0x4e38d6(_0x532b01){var _0xc48b63=_0x14b33a;const {coordinator:_0x509240}=_0x532b01;return _0x57989b[_0xc48b63(0x144)](_0x57989b[_0xc48b63(0xe8)],{'children':[_0x57989b[_0xc48b63(0x104)](_0xc48b63(0x195),{'className':_0xc48b63(0x18f),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x57989b[_0xc48b63(0x104)](_0x2f6b04['Button'],{'onClick':()=>_0x509240['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x5ba73d(_0xc1ae85){var _0x30d3cb=_0x14b33a;const {coordinator:_0x39a04d}=_0xc1ae85;return _0x57989b[_0x30d3cb(0x144)](_0x57989b['Fragment'],{'children':[_0x57989b[_0x30d3cb(0x104)]('div',{'className':_0x30d3cb(0x18f),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x57989b[_0x30d3cb(0x104)](_0x2f6b04[_0x30d3cb(0xa0)],{'variant':_0x30d3cb(0x128),'onClick':()=>_0x39a04d[_0x30d3cb(0x175)](),'children':_0x30d3cb(0x157)})]});}function _0x5c606a(_0x383690){var _0x38b23e=_0x14b33a;const {coordinator:_0x34ee83}=_0x383690;return _0x57989b[_0x38b23e(0x144)](_0x57989b[_0x38b23e(0xe8)],{'children':[_0x57989b[_0x38b23e(0x104)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x38b23e(0x17f)}),_0x57989b[_0x38b23e(0x104)](_0x2f6b04[_0x38b23e(0xa0)],{'variant':'default','onClick':()=>_0x34ee83[_0x38b23e(0x114)](),'children':_0x38b23e(0x18c)})]});}function _0x15412f(){var _0x127ae6=_0x14b33a;return _0x57989b[_0x127ae6(0x104)](_0x57989b[_0x127ae6(0xe8)],{'children':_0x127ae6(0xb7)});}var _0x444a72=Object[_0x14b33a(0xa7)],_0x2a7fca=(_0x11f35c,_0x59c7d9,_0x25fa4e,_0x93b796)=>{var _0x185ce4=_0x14b33a;for(var _0x21b57e=_0x93b796>0x1?void 0x0:_0x93b796?_0x444a72(_0x59c7d9,_0x25fa4e):_0x59c7d9,_0x37daff=_0x11f35c[_0x185ce4(0x11c)]-0x1,_0x3a3207;_0x37daff>=0x0;_0x37daff--)(_0x3a3207=_0x11f35c[_0x37daff])&&(_0x21b57e=_0x3a3207(_0x21b57e)||_0x21b57e);return _0x21b57e;},_0x47e123=(_0x399434,_0x21e0b9)=>(_0x2e7d02,_0x40a175)=>_0x21e0b9(_0x2e7d02,_0x40a175,_0x399434);_0x59a356[_0x14b33a(0x18d)]=class extends _0x2a0bb8[_0x14b33a(0x171)]{constructor(_0x20b19c,_0x150e46){var _0xbca891=_0x14b33a;super(),this[_0xbca891(0xee)]=_0x20b19c,this[_0xbca891(0xef)]=_0x150e46,this['_mountLiveShare']();}[_0x14b33a(0x147)](){var _0x572772=_0x14b33a;this[_0x572772(0x13d)](this[_0x572772(0xef)][_0x572772(0x124)](_0x4c5dc0[_0x572772(0x153)][_0x572772(0x10e)],()=>_0x4c5dc0[_0x572772(0xfc)](_0x34a6b7,this[_0x572772(0xee)])));}},_0x59a356[_0x14b33a(0x18d)]=_0x2a7fca([_0x47e123(0x0,_0x2a0bb8['Inject'](_0x2a0bb8[_0x14b33a(0xda)])),_0x47e123(0x1,_0x4c5dc0[_0x14b33a(0x160)])],_0x59a356['DesktopLiveShareController']);var _0x105a6c=Object[_0x14b33a(0xd5)],_0x14cbeb=Object['getOwnPropertyDescriptor'],_0xcb51d=(_0x2bc5b5,_0x3df11b,_0x4532bf)=>_0x3df11b in _0x2bc5b5?_0x105a6c(_0x2bc5b5,_0x3df11b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4532bf}):_0x2bc5b5[_0x3df11b]=_0x4532bf,_0x16de6a=(_0x2809ae,_0x368970,_0x245fe8,_0x380754)=>{for(var _0x5bb56e=_0x380754>0x1?void 0x0:_0x380754?_0x14cbeb(_0x368970,_0x245fe8):_0x368970,_0x5e55e6=_0x2809ae['length']-0x1,_0x52e694;_0x5e55e6>=0x0;_0x5e55e6--)(_0x52e694=_0x2809ae[_0x5e55e6])&&(_0x5bb56e=_0x52e694(_0x5bb56e)||_0x5bb56e);return _0x5bb56e;},_0x25f583=(_0x35afad,_0x16ec51)=>(_0x2e9628,_0x2de00d)=>_0x16ec51(_0x2e9628,_0x2de00d,_0x35afad),_0x5cf1b0=(_0x2718d4,_0xab41d3,_0x4e2174)=>_0xcb51d(_0x2718d4,typeof _0xab41d3!=_0x14b33a(0xa4)?_0xab41d3+'':_0xab41d3,_0x4e2174);const _0x2fab34=_0x14b33a(0xcb);_0x59a356[_0x14b33a(0xed)]=class extends _0x2a0bb8[_0x14b33a(0xd4)]{constructor(_0x1322a7=_0x1cd0aa,_0xd23ffd,_0x2c1fbb){var _0x41e9fa=_0x14b33a;super(),this[_0x41e9fa(0xb4)]=_0x1322a7,this[_0x41e9fa(0xee)]=_0xd23ffd,this[_0x41e9fa(0xe6)]=_0x2c1fbb;const {..._0x1d2f65}=_0x2a0bb8[_0x41e9fa(0x173)]({},_0x1cd0aa,this[_0x41e9fa(0xb4)]);this[_0x41e9fa(0xe6)][_0x41e9fa(0x148)](_0x4be7ef,_0x1d2f65);}[_0x14b33a(0x121)](){var _0xb37a02=_0x14b33a;_0x2a0bb8[_0xb37a02(0x193)](this[_0xb37a02(0xee)],_0x2a0bb8[_0xb37a02(0xe1)]([[_0x41183a],[_0x59a356[_0xb37a02(0x172)]],[_0x4ab8bc],[_0x59a356[_0xb37a02(0x18d)]]],this['_config'][_0xb37a02(0xfe)])),_0x2a0bb8[_0xb37a02(0xd7)](this[_0xb37a02(0xee)],[[_0x4ab8bc]]);}[_0x14b33a(0x198)](){_0x2a0bb8['touchDependencies'](this['_injector'],[[_0x59a356['DesktopLiveShareController']]]);}},_0x5cf1b0(_0x59a356[_0x14b33a(0xed)],_0x14b33a(0xfa),_0x2a0bb8[_0x14b33a(0x179)][_0x14b33a(0xfd)]),_0x5cf1b0(_0x59a356[_0x14b33a(0xed)],_0x14b33a(0x12b),_0x2fab34),_0x59a356[_0x14b33a(0xed)]=_0x16de6a([_0x2a0bb8[_0x14b33a(0xd6)](_0x351a80[_0x14b33a(0x16d)]),_0x25f583(0x1,_0x2a0bb8[_0x14b33a(0x109)](_0x2a0bb8['Injector'])),_0x25f583(0x2,_0x2a0bb8[_0x14b33a(0x185)])],_0x59a356[_0x14b33a(0xed)]),_0x59a356['LiveShare']=_0x34a6b7,_0x59a356[_0x14b33a(0x165)]=_0x41183a,_0x59a356[_0x14b33a(0x137)]=_0x583609,Object['defineProperty'](_0x59a356,Symbol[_0x14b33a(0xb3)],{'value':_0x14b33a(0x191)});}));function _0x1f09(_0x4dd304,_0x129e3f){var _0x23b319=_0x23b3();return _0x1f09=function(_0x1f096d,_0x23244e){_0x1f096d=_0x1f096d-0xa0;var _0x40d878=_0x23b319[_0x1f096d];return _0x40d878;},_0x1f09(_0x4dd304,_0x129e3f);}function _0x23b3(){var _0x115860=['defIds','then','get','IConfigService','_presenter','@univerjs/sheets-ui','LIVESHARE_NEW_HOST','path','56LmdZGk','defs','Stop\x20presenting','DesktopLiveShareController','svg','univer-mb-3\x20univer-w-full\x20univer-text-sm','_startPresenting','Module','getConfig','registerDependencies','from','div','complete','3453063dZHlVZ','onRendered','apply','replace','DisposableCollection','Button','react/jsx-runtime','currentColor','sheet','symbol','event$','useDependency','getOwnPropertyDescriptor','assign','@univerjs/ui','SAME_OPERATION_SHARE_INTERVAL','SetZoomRatioOperation','_collabSessionService','throttleTime','UNIVER_SHEET','unsubscribe','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','init','InsertSheetMutation','toStringTag','_config','getCurrentTypeOfUnit$','http://www.w3.org/2000/svg','You\x27are\x20offline.','pipe','takeUntil','_init','map','useObservable','Dropdown','amd','PRESENTING','Start','rxjs/operators','@univerjs/design','ICommandService','BehaviorSubject','stringify','SessionStatus','subscribe','parse','mask','url(#$1','UNIVER_LIVE_SHARE_PLUGIN','none','offline','_commandService','getUnitId','forwardRef','2416183XbWYMQ','SetWorksheetActiveOperation','end','Plugin','defineProperty','DependentOn','touchDependencies','current','propertyIsEnumerable','Injector','stopFollowing','1em','RxDisposable','useRef','_unitID','call','mergeOverrideWithDependencies','attrs','UniverUi','_startFollowing','function','_configService','executeCommand','Fragment','getTypeOfUnitDisposed$','object','tag','dispose','UniverLiveSharePlugin','_injector','_uiPartsService','UniverSheetsUi','prototype','toDisposable','rxjs','univer-size-4','following','requireSession','createElement','data','indexOf','type','getTypeOfUnitAdded$','connectInjector','UNIVER_UNKNOWN','override','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','send','@univerjs/core','fill','className','jsx','idle','includes','displayName','entries','Inject','idSuffix','xlink:href','LIVESHARE_REQUEST_HOST','_stopFollowing','HEADER_MENU','use','toString','operations','_liveShareService','UniverCore','stopPresenting','not-following','add','live-share-icon','colorChannel1','_entities','presenting','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','length','presenter','_handleOffline','@univerjs-pro/collaboration-client','trim','onStarting','delete','live-share.config','registerComponent','@univerjs/sheets','exports','React','text','icon','getInitialStates','pluginName','useState','_collabSession','next','_status$','_commandDisposable','LIVESHARE_FETCH_OPERATIONS','LIVESHARE_OPERATION','mutations','parseProtocolChangeset','has','UniverDesign','LiveShareStatus','button','getValue','shouldShareOperation','_status','_stopPresenting','disposeWithMe','FOLLOWING','_beIdle','801585ZpXEDW','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','forEach','LiveShareCoordinator','jsxs','getLiveShareCoordinator','concat','_mountLiveShare','setConfig','NOT_FOLLOWING','registerSharedOperation','UniverSheets','dispose$','_univerInstanceService','sessionStatus$','177532rftXLB','2aEeDfo','Subject','params','BuiltInUIPart','_sharedOperations','set','5jjQefD','Start\x20following','random','evenodd','getMemberID','operators','OFFLINE','5787364QZbXOW','react','IDLE','IUIPartsService','7612400LKHxip','6VERZhL','CollaborationEvent','_handleOperation','LiveShareService','_fetchOperations','_reporters','0\x200\x2017\x2017','getOwnPropertySymbols','substring','ONLINE','tryStartPresenting','UniverCollaborationClientPlugin','string','_startLiveShareCoordinator','_handleTerminate','Disposable','LiveShareController','merge','onCommandExecuted','startFollowing','UniverIcon','children','_handleOnline','UniverInstanceType','NEW_CHANGESETS','extend','IUniverInstanceService','hasOwnProperty','@univerjs-pro/collaboration','You\x27re\x20presenting\x20the\x20document','126659pQVfyU','LIVESHARE_TERMINATE'];_0x23b3=function(){return _0x115860;};return _0x23b3();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1-nightly.202506131607",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,23 +47,23 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.4.4",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.8.
|
|
51
|
-
"@univerjs-pro/collaboration-client": "0.8.
|
|
52
|
-
"@univerjs/core": "0.8.
|
|
53
|
-
"@univerjs/sheets": "0.8.
|
|
54
|
-
"@univerjs/sheets-ui": "0.8.
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/
|
|
50
|
+
"@univerjs-pro/collaboration": "0.8.1-nightly.202506131607",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.8.1-nightly.202506131607",
|
|
52
|
+
"@univerjs/core": "0.8.1-nightly.202506131607",
|
|
53
|
+
"@univerjs/sheets": "0.8.1-nightly.202506131607",
|
|
54
|
+
"@univerjs/sheets-ui": "0.8.1-nightly.202506131607",
|
|
55
|
+
"@univerjs/design": "0.8.1-nightly.202506131607",
|
|
56
|
+
"@univerjs/ui": "0.8.1-nightly.202506131607"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"postcss": "^8.5.
|
|
59
|
+
"postcss": "^8.5.5",
|
|
60
60
|
"react": "18.3.1",
|
|
61
61
|
"rxjs": "7.8.2",
|
|
62
62
|
"tailwindcss": "^3.4.17",
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
64
|
"vite": "^6.3.5",
|
|
65
|
-
"vitest": "^3.2.
|
|
66
|
-
"@univerjs-infra/shared": "0.8.
|
|
65
|
+
"vitest": "^3.2.3",
|
|
66
|
+
"@univerjs-infra/shared": "0.8.1",
|
|
67
67
|
"@univerjs/protocol": "0.1.47-alpha.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|