@univerjs-pro/live-share 0.8.0 → 0.8.1-nightly.202506121607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _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 _0x82621=_0x123a;(function(_0x30ed67,_0x3b200a){var _0x2fd9be=_0x123a,_0x3c0cf8=_0x30ed67();while(!![]){try{var _0x16ee94=-parseInt(_0x2fd9be(0xff))/0x1+parseInt(_0x2fd9be(0x102))/0x2*(parseInt(_0x2fd9be(0x118))/0x3)+-parseInt(_0x2fd9be(0x134))/0x4+parseInt(_0x2fd9be(0xb1))/0x5+-parseInt(_0x2fd9be(0x10f))/0x6+parseInt(_0x2fd9be(0xa3))/0x7*(parseInt(_0x2fd9be(0x10e))/0x8)+parseInt(_0x2fd9be(0xe6))/0x9;if(_0x16ee94===_0x3b200a)break;else _0x3c0cf8['push'](_0x3c0cf8['shift']());}catch(_0x337851){_0x3c0cf8['push'](_0x3c0cf8['shift']());}}}(_0x1392,0x686cd));var U=Object[_0x82621(0xd1)],F=(_0x2a5944,_0x27b13d,_0x40e04d)=>_0x27b13d in _0x2a5944?U(_0x2a5944,_0x27b13d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x40e04d}):_0x2a5944[_0x27b13d]=_0x40e04d,v=(_0x7eecb0,_0x31d989,_0x53e0a4)=>F(_0x7eecb0,typeof _0x31d989!=_0x82621(0x94)?_0x31d989+'':_0x31d989,_0x53e0a4);Object[_0x82621(0xd1)](exports,Symbol[_0x82621(0x125)],{'value':_0x82621(0xf3)});const m=require(_0x82621(0xc1)),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require(_0x82621(0x89)),p=require(_0x82621(0xb2)),l=require('react/jsx-runtime'),g=require(_0x82621(0xa9)),f=require('react'),_=require(_0x82621(0x157)),D=require('rxjs'),b=require(_0x82621(0x10d)),$=_0x82621(0x8a),x={};class O extends o[_0x82621(0x146)]{constructor(){var _0xd2a5e0=_0x82621;super(...arguments),v(this,_0xd2a5e0(0x119),new Set()),v(this,_0xd2a5e0(0xc7),new Set());}[_0x82621(0x11a)](_0x29f5de){var _0x4f119a=_0x82621;return this[_0x4f119a(0x119)][_0x4f119a(0xd3)](_0x29f5de),o[_0x4f119a(0xc9)](()=>this[_0x4f119a(0x119)][_0x4f119a(0x103)](_0x29f5de));}[_0x82621(0x13b)](_0x5ad70e){var _0x129557=_0x82621;return this[_0x129557(0xc7)]['add'](_0x5ad70e),o[_0x129557(0xc9)](()=>this[_0x129557(0xc7)][_0x129557(0x103)](_0x5ad70e));}[_0x82621(0x131)](_0x2f6807){var _0x4199eb=_0x82621;return this[_0x4199eb(0x119)][_0x4199eb(0x15c)](_0x2f6807);}[_0x82621(0x111)](_0x1c3b1d){var _0x164ea4=_0x82621;return Array[_0x164ea4(0xb8)](this[_0x164ea4(0xc7)])[_0x164ea4(0xbc)](_0x142a02=>_0x142a02(_0x1c3b1d));}}var H=Object[_0x82621(0xbd)],V=(_0xa923f5,_0x4577d3,_0x231496,_0x26c922)=>{var _0xcf4c09=_0x82621;for(var _0x46903e=_0x26c922>0x1?void 0x0:_0x26c922?H(_0x4577d3,_0x231496):_0x4577d3,_0x5e96fb=_0xa923f5[_0xcf4c09(0x14c)]-0x1,_0xa51acf;_0x5e96fb>=0x0;_0x5e96fb--)(_0xa51acf=_0xa923f5[_0x5e96fb])&&(_0x46903e=_0xa51acf(_0x46903e)||_0x46903e);return _0x46903e;},k=(_0x27a0dd,_0x234544)=>(_0x5bfb6c,_0x5931c3)=>_0x234544(_0x5bfb6c,_0x5931c3,_0x27a0dd);let E=class extends o[_0x82621(0x146)]{constructor(_0x537420){super(),this['_liveShareService']=_0x537420,this['_init']();}[_0x82621(0x14f)](){var _0x4a671e=_0x82621;[w['SetZoomRatioOperation']['id'],w[_0x4a671e(0xe7)]['id'],C[_0x4a671e(0xdb)]['id']][_0x4a671e(0x10a)](_0x3c53c5=>{var _0x51f17a=_0x4a671e;this[_0x51f17a(0xf1)](this[_0x51f17a(0xcf)]['registerSharedOperation'](_0x3c53c5));});}};E=V([k(0x0,o[_0x82621(0xa7)](O))],E);var u=function(){var _0x122630=_0x82621;return u=Object['assign']||function(_0xf064d2){var _0x13b2c5=_0x123a;for(var _0x43c08c,_0x259927=0x1,_0x1d14eb=arguments[_0x13b2c5(0x14c)];_0x259927<_0x1d14eb;_0x259927++){_0x43c08c=arguments[_0x259927];for(var _0x395c8e in _0x43c08c)Object[_0x13b2c5(0x11b)][_0x13b2c5(0xe5)]['call'](_0x43c08c,_0x395c8e)&&(_0xf064d2[_0x395c8e]=_0x43c08c[_0x395c8e]);}return _0xf064d2;},u[_0x122630(0xec)](this,arguments);},M=function(_0x387218,_0x3795ae){var _0x2bda0b=_0x82621,_0x6942a8={};for(var _0x19ad33 in _0x387218)Object[_0x2bda0b(0x11b)]['hasOwnProperty']['call'](_0x387218,_0x19ad33)&&_0x3795ae[_0x2bda0b(0xd8)](_0x19ad33)<0x0&&(_0x6942a8[_0x19ad33]=_0x387218[_0x19ad33]);if(_0x387218!=null&&typeof Object['getOwnPropertySymbols']==_0x2bda0b(0xc6)){for(var _0x3ef627=0x0,_0x19ad33=Object['getOwnPropertySymbols'](_0x387218);_0x3ef627<_0x19ad33[_0x2bda0b(0x14c)];_0x3ef627++)_0x3795ae[_0x2bda0b(0xd8)](_0x19ad33[_0x3ef627])<0x0&&Object[_0x2bda0b(0x11b)]['propertyIsEnumerable']['call'](_0x387218,_0x19ad33[_0x3ef627])&&(_0x6942a8[_0x19ad33[_0x3ef627]]=_0x387218[_0x19ad33[_0x3ef627]]);}return _0x6942a8;},j=f[_0x82621(0x16c)](function(_0x3c67a1,_0x198fd9){var _0x5edaf9=_0x82621,_0x54308e=_0x3c67a1[_0x5edaf9(0xce)],_0x4727b1=_0x3c67a1['id'],_0x46d4bf=_0x3c67a1[_0x5edaf9(0xf6)],_0x45992a=_0x3c67a1[_0x5edaf9(0x11e)],_0x5f1c46=M(_0x3c67a1,[_0x5edaf9(0xce),'id',_0x5edaf9(0xf6),_0x5edaf9(0x11e)]),_0x44db73=_0x5edaf9(0x15b)[_0x5edaf9(0x104)](_0x4727b1,'\x20')[_0x5edaf9(0x104)](_0x46d4bf||'')[_0x5edaf9(0x101)](),_0xdcb8fa=f[_0x5edaf9(0x12a)]('_'[_0x5edaf9(0x104)](G()));return y(_0x54308e,''['concat'](_0x4727b1),{'defIds':_0x54308e[_0x5edaf9(0xc2)],'idSuffix':_0xdcb8fa[_0x5edaf9(0x12d)]},u({'ref':_0x198fd9,'className':_0x44db73},_0x5f1c46),_0x45992a);});function y(_0x440525,_0x4c1f3e,_0x542913,_0x106d89,_0x27db6a){var _0x18a18e=_0x82621;return f[_0x18a18e(0xbe)](_0x440525[_0x18a18e(0xba)],u(u({'key':_0x4c1f3e},q(_0x440525,_0x542913,_0x27db6a)),_0x106d89),(W(_0x440525,_0x542913)['children']||[])[_0x18a18e(0xbc)](function(_0x523ac4,_0x8e10b9){var _0x5927dc=_0x18a18e;return y(_0x523ac4,''[_0x5927dc(0x104)](_0x4c1f3e,'-')[_0x5927dc(0x104)](_0x440525[_0x5927dc(0xba)],'-')[_0x5927dc(0x104)](_0x8e10b9),_0x542913,void 0x0,_0x27db6a);}));}function _0x123a(_0x189a99,_0x3fef79){var _0x139215=_0x1392();return _0x123a=function(_0x123aaf,_0x40c89c){_0x123aaf=_0x123aaf-0x88;var _0x148235=_0x139215[_0x123aaf];return _0x148235;},_0x123a(_0x189a99,_0x3fef79);}function q(_0x3a44e7,_0x570845,_0xdf0614){var _0x4a061a=_0x82621,_0x7e6605=u({},_0x3a44e7[_0x4a061a(0x163)]);_0xdf0614!=null&&_0xdf0614[_0x4a061a(0x8b)]&&_0x7e6605[_0x4a061a(0x11f)]===_0x4a061a(0x8b)&&(_0x7e6605[_0x4a061a(0x11f)]=_0xdf0614['colorChannel1']),_0x3a44e7[_0x4a061a(0xba)]==='mask'&&_0x7e6605['id']&&(_0x7e6605['id']=_0x7e6605['id']+_0x570845[_0x4a061a(0x13e)]),Object[_0x4a061a(0xfd)](_0x7e6605)[_0x4a061a(0x10a)](function(_0x5e58bb){var _0x591653=_0x4a061a,_0x527a66=_0x5e58bb[0x0],_0x1c7e3c=_0x5e58bb[0x1];_0x527a66===_0x591653(0x16b)&&typeof _0x1c7e3c==_0x591653(0x108)&&(_0x7e6605[_0x527a66]=_0x1c7e3c[_0x591653(0x9a)](/url\(#(.*)\)/,_0x591653(0xb0)[_0x591653(0x104)](_0x570845[_0x591653(0x13e)],')')));});var _0x3a6eee=_0x570845[_0x4a061a(0xc2)];return!_0x3a6eee||_0x3a6eee[_0x4a061a(0x14c)]===0x0||(_0x3a44e7[_0x4a061a(0xba)]===_0x4a061a(0x90)&&_0x7e6605[_0x4a061a(0xea)]&&(_0x7e6605[_0x4a061a(0xea)]=_0x7e6605[_0x4a061a(0xea)]+_0x570845[_0x4a061a(0x13e)]),Object[_0x4a061a(0xfd)](_0x7e6605)['forEach'](function(_0xae70aa){var _0x3bef11=_0x4a061a,_0x11c8bc=_0xae70aa[0x0],_0x224c42=_0xae70aa[0x1];typeof _0x224c42==_0x3bef11(0x108)&&(_0x7e6605[_0x11c8bc]=_0x224c42[_0x3bef11(0x9a)](/url\(#(.*)\)/,_0x3bef11(0xb0)[_0x3bef11(0x104)](_0x570845[_0x3bef11(0x13e)],')')));})),_0x7e6605;}function W(_0x2eb6fb,_0x348b91){var _0x151ecc=_0x82621,_0x10e133,_0x3aff9b=_0x348b91['defIds'];return!_0x3aff9b||_0x3aff9b[_0x151ecc(0x14c)]===0x0?_0x2eb6fb:_0x2eb6fb[_0x151ecc(0xba)]==='defs'&&(!((_0x10e133=_0x2eb6fb[_0x151ecc(0x153)])===null||_0x10e133===void 0x0)&&_0x10e133['length'])?u(u({},_0x2eb6fb),{'children':_0x2eb6fb[_0x151ecc(0x153)][_0x151ecc(0xbc)](function(_0x39a092){var _0x143a07=_0x151ecc;return typeof _0x39a092[_0x143a07(0x163)]['id']==_0x143a07(0x108)&&_0x3aff9b&&_0x3aff9b[_0x143a07(0x121)](_0x39a092[_0x143a07(0x163)]['id'])?u(u({},_0x39a092),{'attrs':u(u({},_0x39a092[_0x143a07(0x163)]),{'id':_0x39a092[_0x143a07(0x163)]['id']+_0x348b91[_0x143a07(0x13e)]})}):_0x39a092;})}):_0x2eb6fb;}function G(){var _0x51da23=_0x82621;return Math[_0x51da23(0xd4)]()[_0x51da23(0x154)](0x24)['substring'](0x2,0x8);}j[_0x82621(0x130)]='UniverIcon';var B={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x82621(0x9e),'viewBox':_0x82621(0x12c),'width':'1em','height':_0x82621(0x13f)},'children':[{'tag':_0x82621(0x14d),'attrs':{'fill':_0x82621(0xfe),'d':_0x82621(0x161)}},{'tag':_0x82621(0x14d),'attrs':{'fill':'currentColor','d':_0x82621(0x88),'fillRule':'evenodd','clipRule':'evenodd'}}]},P=f[_0x82621(0x16c)](function(_0x3b9e5f,_0x393a42){var _0x549227=_0x82621;return f[_0x549227(0xbe)](j,Object[_0x549227(0x14a)]({},_0x3b9e5f,{'id':_0x549227(0x8d),'ref':_0x393a42,'icon':B}));});P['displayName']=_0x82621(0x144);var Y=Object[_0x82621(0xbd)],R=(_0x2ff270,_0x537d59,_0x164de6,_0x593360)=>{var _0x3328e9=_0x82621;for(var _0x2230b6=_0x593360>0x1?void 0x0:_0x593360?Y(_0x537d59,_0x164de6):_0x537d59,_0x35be23=_0x2ff270[_0x3328e9(0x14c)]-0x1,_0x412dca;_0x35be23>=0x0;_0x35be23--)(_0x412dca=_0x2ff270[_0x35be23])&&(_0x2230b6=_0x412dca(_0x2230b6)||_0x2230b6);return _0x2230b6;},S=(_0x62e088,_0x20c9e0)=>(_0x37d3eb,_0x3ff8ca)=>_0x20c9e0(_0x37d3eb,_0x3ff8ca,_0x62e088);exports[_0x82621(0xd5)]=class extends o[_0x82621(0x142)]{constructor(_0x2cca50,_0x3e7295,_0x19b4f0){var _0x3d54b2=_0x82621;super(),v(this,_0x3d54b2(0x124),new Map()),(this[_0x3d54b2(0x9d)]=_0x2cca50,this[_0x3d54b2(0xa4)]=_0x3e7295,this['_collabSessionService']=_0x19b4f0,this['_init']());}async[_0x82621(0xc4)](_0x23f6ab){var _0x3e5f73=_0x82621;return this[_0x3e5f73(0x124)][_0x3e5f73(0x15c)](_0x23f6ab)||await this[_0x3e5f73(0x145)](_0x23f6ab),this['_entities'][_0x3e5f73(0xde)](_0x23f6ab);}[_0x82621(0x14f)](){var _0x2b3dfa=_0x82621;this['_univerInstanceService'][_0x2b3dfa(0x10b)](o[_0x2b3dfa(0xfb)][_0x2b3dfa(0x15a)])['pipe'](b[_0x2b3dfa(0x167)](this[_0x2b3dfa(0xdd)]))[_0x2b3dfa(0x99)](async _0x117c47=>{var _0x521631=_0x2b3dfa;const _0x4e01c5=_0x117c47[_0x521631(0xab)]();this[_0x521631(0x124)][_0x521631(0x15c)](_0x4e01c5)||this[_0x521631(0x145)](_0x4e01c5);}),this['_univerInstanceService'][_0x2b3dfa(0xcc)](o[_0x2b3dfa(0xfb)][_0x2b3dfa(0x15a)])['pipe'](b[_0x2b3dfa(0x167)](this[_0x2b3dfa(0xdd)]))['subscribe'](_0x29c103=>{var _0x1d93c8=_0x2b3dfa;const _0x492983=_0x29c103[_0x1d93c8(0xab)](),_0x105e40=this[_0x1d93c8(0x124)][_0x1d93c8(0xde)](_0x492983);_0x105e40==null||_0x105e40[_0x1d93c8(0x15f)]();});}async[_0x82621(0x145)](_0x2c0d0f){var _0x1378ca=_0x82621;const _0x153000=await this['_collabSessionService'][_0x1378ca(0x105)](_0x2c0d0f),_0x4bbbf1=this[_0x1378ca(0xa4)][_0x1378ca(0x122)](exports[_0x1378ca(0xd2)],_0x2c0d0f,_0x153000);return _0x4bbbf1[_0x1378ca(0x12e)](),this[_0x1378ca(0x124)][_0x1378ca(0xd9)](_0x2c0d0f,_0x4bbbf1),_0x4bbbf1;}},exports[_0x82621(0xd5)]=R([S(0x0,o[_0x82621(0xad)]),S(0x1,o[_0x82621(0xa7)](o[_0x82621(0x115)])),S(0x2,o[_0x82621(0xa7)](m[_0x82621(0x156)]))],exports['LiveShareController']);var h=(_0x327600=>(_0x327600[_0x82621(0x158)]=_0x82621(0x9b),_0x327600[_0x82621(0x95)]=_0x82621(0xeb),_0x327600[_0x82621(0xb9)]=_0x82621(0x120),_0x327600[_0x82621(0x13c)]=_0x82621(0x139),_0x327600[_0x82621(0x160)]=_0x82621(0x126),_0x327600))(h||{});const Z=_0x82621(0xc3),J=0xc8;exports[_0x82621(0xd2)]=class extends o[_0x82621(0x142)]{constructor(_0x5e21cb,_0x4c35a8,_0x2ef228,_0x2142c0,_0x15181f){var _0x1604ec=_0x82621;super(),v(this,'_status$',new D[(_0x1604ec(0xe2))](_0x1604ec(0xeb))),v(this,_0x1604ec(0xd0),this[_0x1604ec(0xe4)][_0x1604ec(0x169)]()),v(this,_0x1604ec(0x14f),!0x1),v(this,_0x1604ec(0x16a),null),v(this,_0x1604ec(0x112),null),(this[_0x1604ec(0x14e)]=_0x5e21cb,this[_0x1604ec(0x9c)]=_0x4c35a8,this[_0x1604ec(0x133)]=_0x2ef228,this['_liveShareService']=_0x2142c0,this[_0x1604ec(0xee)]=_0x15181f);}get[_0x82621(0x15d)](){var _0x15dc0f=_0x82621;return this[_0x15dc0f(0xe4)][_0x15dc0f(0x162)]();}[_0x82621(0x15f)](){var _0x4f8ffd=_0x82621,_0x348138;(_0x348138=this[_0x4f8ffd(0x16a)])==null||_0x348138['dispose'](),this[_0x4f8ffd(0xe4)]['next'](_0x4f8ffd(0xeb)),this[_0x4f8ffd(0xe4)][_0x4f8ffd(0x8f)]();}[_0x82621(0x12e)](){var _0x111437=_0x82621;this[_0x111437(0x14f)]||(this[_0x111437(0x14f)]=!0x0,this[_0x111437(0x9c)][_0x111437(0x135)][_0x111437(0xd7)](b['takeUntil'](this[_0x111437(0xdd)]))[_0x111437(0x99)](_0x35686e=>{var _0x4f297c=_0x111437;switch(_0x35686e){case m[_0x4f297c(0xcd)][_0x4f297c(0x158)]:this[_0x4f297c(0x10c)]();break;case m['SessionStatus']['ONLINE']:this[_0x4f297c(0x164)]();break;}}),this[_0x111437(0x9c)]['event$'][_0x111437(0xd7)](b[_0x111437(0x167)](this[_0x111437(0xdd)]))[_0x111437(0x99)](_0x20824f=>{var _0x141995=_0x111437;const {eventID:_0x3b30c5}=_0x20824f;switch(_0x3b30c5){case _[_0x141995(0xb4)][_0x141995(0xdf)]:this[_0x141995(0xda)](_0x20824f);break;case _[_0x141995(0xb4)][_0x141995(0xf5)]:this[_0x141995(0xf2)](_0x20824f);break;case _['CollaborationEvent'][_0x141995(0x9f)]:this[_0x141995(0xaf)]();break;case _[_0x141995(0xb4)][_0x141995(0xe1)]:this[_0x141995(0x165)](_0x20824f);break;}}));}['tryStartPresenting'](){var _0x24b53e=_0x82621;this[_0x24b53e(0x9c)][_0x24b53e(0xf0)]({'eventID':_['CollaborationEvent'][_0x24b53e(0x109)],'data':{'unitID':this[_0x24b53e(0x14e)],'userID':this[_0x24b53e(0x9c)][_0x24b53e(0xcb)]()}},this[_0x24b53e(0x14e)]);}[_0x82621(0x100)](){var _0x27a176=_0x82621;this[_0x27a176(0x15d)]===_0x27a176(0x126)&&(this[_0x27a176(0xe4)]['next'](_0x27a176(0xeb)),this[_0x27a176(0x9c)][_0x27a176(0xf0)]({'eventID':_[_0x27a176(0xb4)][_0x27a176(0x9f)],'data':{'unitID':this['_unitID']}},this['_unitID']));}['startFollowing'](){var _0x4bf30=_0x82621;this['_status']===_0x4bf30(0x139)&&(this[_0x4bf30(0xe4)][_0x4bf30(0x96)](_0x4bf30(0x120)),this[_0x4bf30(0x11c)]());}[_0x82621(0x150)](){var _0x47319b=_0x82621;this[_0x47319b(0x15d)]===_0x47319b(0x120)&&this['_stopFollowing']();}[_0x82621(0xda)](_0x23fc4e){var _0x1f1eb3=_0x82621;const {presenter:_0x37eec3}=_0x23fc4e[_0x1f1eb3(0xe3)],_0x351c88=this[_0x1f1eb3(0x9c)][_0x1f1eb3(0xcb)]();this[_0x1f1eb3(0x112)]=_0x37eec3,_0x37eec3===_0x351c88?(this[_0x1f1eb3(0xe8)](),this[_0x1f1eb3(0x137)]()):this['_status']!==_0x1f1eb3(0x139)&&(this[_0x1f1eb3(0xb3)](),this[_0x1f1eb3(0x11c)]());}[_0x82621(0xf7)](){var _0x1300e4=_0x82621;const _0x25097a={'eventID':_[_0x1300e4(0xb4)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x1300e4(0x9c)][_0x1300e4(0xf0)](_0x25097a,this[_0x1300e4(0x14e)]);}[_0x82621(0xaf)](){var _0x26a352=_0x82621;this[_0x26a352(0x112)]=null,this[_0x26a352(0x15d)]!==_0x26a352(0x126)&&this[_0x26a352(0xa8)]();}[_0x82621(0x165)](_0x31efbb){var _0x5407ae=_0x82621;if(this[_0x5407ae(0x15d)]===_0x5407ae(0x120)&&this['_presenter']===_0x31efbb[_0x5407ae(0xe3)]['memberID']){const _0x477b1d=_[_0x5407ae(0xa5)](_0x31efbb[_0x5407ae(0xe3)])['mutations'][_0x5407ae(0x127)]()[_0x5407ae(0x14b)](_0x114b04=>_0x114b04['id']===C['InsertSheetMutation']['id']);if(_0x477b1d){const _0x2bb82b=_0x477b1d[_0x5407ae(0x113)][_0x5407ae(0xe9)],_0x4de91f=_0x477b1d[_0x5407ae(0x113)]['sheet']['id'];setTimeout(()=>{var _0xa3273c=_0x5407ae;this['_commandService'][_0xa3273c(0x12f)](C[_0xa3273c(0xdb)]['id'],{'unitId':_0x2bb82b,'subUnitId':_0x4de91f},{'fromCollab':!0x0});});}}}[_0x82621(0x137)](){var _0xa04a47=_0x82621;this[_0xa04a47(0xe4)][_0xa04a47(0x96)](_0xa04a47(0x126));const _0xfd2679=new Map(),_0x232dc7=this['_commandDisposable']=new o['DisposableCollection']();_0x232dc7['add'](o[_0xa04a47(0xc9)](()=>{var _0x3803d3=_0xa04a47;_0xfd2679[_0x3803d3(0x10a)](_0x11d0dc=>_0x11d0dc[_0x3803d3(0x8f)]()),_0xfd2679[_0x3803d3(0x166)]();})),_0x232dc7[_0xa04a47(0xd3)](this['_commandService'][_0xa04a47(0xaa)](_0xa6d11a=>{var _0x172a48=_0xa04a47,_0x1967d8;if(_0xa6d11a['type']!==o[_0x172a48(0x92)][_0x172a48(0x15e)]||!this[_0x172a48(0xcf)][_0x172a48(0x131)](_0xa6d11a['id']))return;const {id:_0x3762c8}=_0xa6d11a;let _0x4241c8;_0xfd2679[_0x172a48(0x15c)](_0x3762c8)?_0x4241c8=_0xfd2679[_0x172a48(0xde)](_0x3762c8):(_0x4241c8=new D[(_0x172a48(0x147))](),_0xfd2679[_0x172a48(0xd9)](_0x3762c8,_0x4241c8),_0x4241c8['pipe'](b[_0x172a48(0xfc)]((_0x1967d8=this[_0x172a48(0x133)][_0x172a48(0xf9)](Z))!=null?_0x1967d8:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2696c5=>{var _0x3dc48d=_0x172a48;this['_collabSession'][_0x3dc48d(0xf0)]({'eventID':_['CollaborationEvent'][_0x3dc48d(0xf5)],'data':{'unitID':this[_0x3dc48d(0x14e)],'operations':{[_0x2696c5['id']]:{'id':_0x2696c5['id'],'params':JSON[_0x3dc48d(0xb6)](_0x2696c5['params'])}}}},this[_0x3dc48d(0x14e)]);})),_0x4241c8['next'](_0xa6d11a);})),this['_liveShareService'][_0xa04a47(0x111)](this[_0xa04a47(0x14e)])[_0xa04a47(0x10a)](_0x515976=>this[_0xa04a47(0x9c)][_0xa04a47(0xf0)]({'eventID':_[_0xa04a47(0xb4)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xa04a47(0x14e)],'operations':{[_0x515976['id']]:{'id':_0x515976['id'],'params':JSON[_0xa04a47(0xb6)](_0x515976['params'])}}}},this['_unitID']));}[_0x82621(0xb3)](){var _0xc405d=_0x82621,_0x530107;this['_status$'][_0xc405d(0x96)](_0xc405d(0xeb)),(_0x530107=this[_0xc405d(0x16a)])==null||_0x530107[_0xc405d(0x15f)](),this[_0xc405d(0x16a)]=null;}[_0x82621(0x11c)](){var _0x1b240e=_0x82621,_0x1e581d;(_0x1e581d=this[_0x1b240e(0x16a)])==null||_0x1e581d[_0x1b240e(0x15f)](),this['_status$']['next'](_0x1b240e(0x120));}[_0x82621(0xa8)](){var _0x22d0fe=_0x82621,_0x20e536;this[_0x22d0fe(0xe4)]['next'](_0x22d0fe(0xeb)),(_0x20e536=this[_0x22d0fe(0x16a)])==null||_0x20e536[_0x22d0fe(0x15f)](),this['_commandDisposable']=null;}[_0x82621(0xe8)](){var _0x5cdaac=_0x82621,_0x5ab927;this['_status$'][_0x5cdaac(0x96)](_0x5cdaac(0x139)),(_0x5ab927=this[_0x5cdaac(0x16a)])==null||_0x5ab927['dispose']();}[_0x82621(0xf2)](_0x5bdf7b){var _0x14e2f2=_0x82621;if([_0x14e2f2(0x126),_0x14e2f2(0x139),'offline']['includes'](this['_status'])||!_0x5bdf7b[_0x14e2f2(0xe3)][_0x14e2f2(0xe0)]||_0x5bdf7b[_0x14e2f2(0xe3)][_0x14e2f2(0xe0)]===this['_collabSession'][_0x14e2f2(0xcb)]())return;this[_0x14e2f2(0x15d)]===_0x14e2f2(0xeb)&&this[_0x14e2f2(0x11c)]();const _0x2e83a0=_0x5bdf7b[_0x14e2f2(0xe3)][_0x14e2f2(0x110)];Object[_0x14e2f2(0x148)](_0x2e83a0)[_0x14e2f2(0x10a)](_0x1bea2c=>{var _0x4f7d53=_0x14e2f2;this[_0x4f7d53(0xee)]['executeCommand'](_0x1bea2c['id'],_0x1bea2c[_0x4f7d53(0x113)]?JSON['parse'](_0x1bea2c[_0x4f7d53(0x113)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x54a60b=_0x82621,_0xdbd172;this[_0x54a60b(0xe4)][_0x54a60b(0x96)](_0x54a60b(0x9b)),(_0xdbd172=this[_0x54a60b(0x16a)])==null||_0xdbd172['dispose']();}[_0x82621(0x164)](){var _0x5774f3=_0x82621;this[_0x5774f3(0xe4)][_0x5774f3(0x96)](_0x5774f3(0xeb)),this[_0x5774f3(0xf7)]();}},exports[_0x82621(0xd2)]=R([S(0x2,o[_0x82621(0x91)]),S(0x3,o[_0x82621(0xa7)](O)),S(0x4,o[_0x82621(0x152)])],exports[_0x82621(0xd2)]);function A(){var _0x9999fb=_0x82621;const _0x5ed723=p['useDependency'](exports[_0x9999fb(0xd5)]),_0x28230e=p[_0x9999fb(0xa6)](o[_0x9999fb(0xad)]),_0x53c4b0=p[_0x9999fb(0x11d)](()=>_0x28230e['getCurrentTypeOfUnit$'](o[_0x9999fb(0xfb)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x2f51b3,_0x2a7eb1]=f[_0x9999fb(0x106)](null),[_0x10fe99,_0x286af8]=f['useState'](h[_0x9999fb(0x95)]),_0x2d65f1=f['useRef'](null);return f[_0x9999fb(0x151)](()=>(_0x53c4b0&&_0x5ed723[_0x9999fb(0xc4)](_0x53c4b0['getUnitId']())[_0x9999fb(0x16d)](_0x59cdc2=>{var _0x1fed68=_0x9999fb;_0x2a7eb1(_0x59cdc2),_0x2d65f1[_0x1fed68(0x12d)]=_0x59cdc2[_0x1fed68(0xd0)][_0x1fed68(0x99)](_0x2a15d3=>{_0x286af8(_0x2a15d3);});}),()=>{var _0x2f1eef=_0x9999fb,_0x5762b7;(_0x5762b7=_0x2d65f1[_0x2f1eef(0x12d)])==null||_0x5762b7[_0x2f1eef(0x132)](),_0x2d65f1[_0x2f1eef(0x12d)]=null;}),[_0x53c4b0,_0x5ed723]),_0x2f51b3?l['jsx'](g[_0x9999fb(0x141)],{'align':_0x9999fb(0x107),'disabled':_0x10fe99===h[_0x9999fb(0x158)],'className':_0x9999fb(0x93),'overlay':l[_0x9999fb(0x138)](K,{'status':_0x10fe99,'coordinator':_0x2f51b3}),'children':l['jsx'](_0x9999fb(0x129),{'className':g[_0x9999fb(0xca)](_0x9999fb(0xb5),{'univer-cursor-not-allowed':_0x10fe99===h[_0x9999fb(0x158)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x10fe99!==h[_0x9999fb(0x158)]}),'type':_0x9999fb(0x129),'children':l[_0x9999fb(0x138)](P,{'className':_0x9999fb(0xc8)})})}):null;}function _0x1392(){var _0x256620=['SetScrollOperation','_stopFollowing','unitId','xlink:href','idle','apply','You\x27are\x20offline.','_commandService','startFollowing','send','disposeWithMe','_handleOperation','Module','DependentOn','LIVESHARE_OPERATION','className','_fetchOperations','onRendered','getConfig','type','UniverInstanceType','throttleTime','entries','currentColor','77384xgESwE','stopPresenting','trim','234548rYhBmp','delete','concat','requireSession','useState','end','string','LIVESHARE_REQUEST_HOST','forEach','getTypeOfUnitAdded$','_handleOffline','rxjs/operators','32vFxbqA','4028940CNTqbt','operations','getInitialStates','_presenter','params','_uiPartsService','Injector','BuiltInUIPart','touchDependencies','12IDWTab','_sharedOperations','registerSharedOperation','prototype','_startFollowing','useObservable','extend','fill','following','includes','createInstance','DesktopLiveShareController','_entities','toStringTag','presenting','reverse','Start\x20following','button','useRef','div','0\x200\x2017\x2017','current','init','executeCommand','displayName','shouldShareOperation','unsubscribe','_configService','2336952GnROqb','sessionStatus$','_config','_startPresenting','jsx','not-following','IUIPartsService','registerInitialStateReporter','NOT_FOLLOWING','Stop\x20following','idSuffix','1em','text','Dropdown','RxDisposable','UniverLiveSharePlugin','LiveShareIcon','_startLiveShareCoordinator','Disposable','Subject','values','HEADER_MENU','assign','find','length','path','_unitID','_init','stopFollowing','useEffect','ICommandService','children','toString','override','CollaborationSessionService','@univerjs-pro/collaboration','OFFLINE','UniverCollaborationClientPlugin','UNIVER_SHEET','univerjs-icon\x20univerjs-icon-','has','_status','OPERATION','dispose','PRESENTING','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','getValue','attrs','_handleOnline','_handleNewChangeSets','clear','takeUntil','registerDependencies','asObservable','_commandDisposable','mask','forwardRef','then','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','@univerjs/sheets-ui','live-share.config','colorChannel1','setConfig','live-share-icon','merge','complete','use','IConfigService','CommandType','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','symbol','IDLE','next','_mountLiveShare','default','subscribe','replace','offline','_collabSession','_univerInstanceService','none','LIVESHARE_TERMINATE','Stop\x20presenting','univer-mb-3\x20univer-w-full\x20univer-text-sm','Plugin','16891hYgwsZ','_injector','parseProtocolChangeset','useDependency','Inject','_beIdle','@univerjs/design','onCommandExecuted','getUnitId','Fragment','IUniverInstanceService','You\x27re\x20presenting\x20the\x20document','_handleTerminate','url(#$1','175425QGUxHL','@univerjs/ui','_stopPresenting','CollaborationEvent','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','stringify','Button','from','FOLLOWING','tag','jsxs','map','getOwnPropertyDescriptor','createElement','pluginName','mergeOverrideWithDependencies','@univerjs-pro/collaboration-client','defIds','SAME_OPERATION_SHARE_INTERVAL','getLiveShareCoordinator','You\x27re\x20following\x20the\x20presenter','function','_reporters','univer-size-4','toDisposable','clsx','getMemberID','getTypeOfUnitDisposed$','SessionStatus','icon','_liveShareService','status$','defineProperty','LiveShareCoordinator','add','random','LiveShareController','LiveShare','pipe','indexOf','set','_handleNewHost','SetWorksheetActiveOperation','LiveShareService','dispose$','get','LIVESHARE_NEW_HOST','presenter','NEW_CHANGESETS','BehaviorSubject','data','_status$','hasOwnProperty','11223036vsrmhl'];_0x1392=function(){return _0x256620;};return _0x1392();}function K(_0x33771e){var _0x2d5cf5=_0x82621;const {status:_0x5efd91,coordinator:_0x206829}=_0x33771e;switch(_0x5efd91){case h['IDLE']:return l[_0x2d5cf5(0x138)](z,{'coordinator':_0x206829});case h[_0x2d5cf5(0xb9)]:return l[_0x2d5cf5(0x138)](Q,{'coordinator':_0x206829});case h[_0x2d5cf5(0x13c)]:return l[_0x2d5cf5(0x138)](X,{'coordinator':_0x206829});case h[_0x2d5cf5(0x158)]:return l[_0x2d5cf5(0x138)](te,{});case h[_0x2d5cf5(0x160)]:return l[_0x2d5cf5(0x138)](ee,{'coordinator':_0x206829});default:return null;}}function z(_0x275b90){var _0x1d5481=_0x82621;const {coordinator:_0xc31190}=_0x275b90;return l['jsxs'](l[_0x1d5481(0xac)],{'children':[l['jsx'](_0x1d5481(0x12b),{'className':_0x1d5481(0xa1),'children':'Present\x20this\x20document'}),l['jsx'](g[_0x1d5481(0xb7)],{'onClick':()=>_0xc31190['tryStartPresenting'](),'children':'Start'})]});}function Q(_0x58d8f2){var _0xabbd97=_0x82621;const {coordinator:_0x48a2e9}=_0x58d8f2;return l[_0xabbd97(0xbb)](l[_0xabbd97(0xac)],{'children':[l['jsx']('div',{'className':_0xabbd97(0xa1),'children':_0xabbd97(0xc5)}),l[_0xabbd97(0x138)](g[_0xabbd97(0xb7)],{'onClick':()=>_0x48a2e9[_0xabbd97(0x150)](),'children':_0xabbd97(0x13d)})]});}function X(_0x2f3d61){var _0x82e40a=_0x82621;const {coordinator:_0x14af81}=_0x2f3d61;return l[_0x82e40a(0xbb)](l['Fragment'],{'children':[l[_0x82e40a(0x138)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x82e40a(0x138)](g[_0x82e40a(0xb7)],{'variant':_0x82e40a(0x140),'onClick':()=>_0x14af81[_0x82e40a(0xef)](),'children':_0x82e40a(0x128)})]});}function ee(_0x385ef9){var _0x5f5244=_0x82621;const {coordinator:_0x143508}=_0x385ef9;return l[_0x5f5244(0xbb)](l['Fragment'],{'children':[l[_0x5f5244(0x138)](_0x5f5244(0x12b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5f5244(0xae)}),l[_0x5f5244(0x138)](g['Button'],{'variant':_0x5f5244(0x98),'onClick':()=>_0x143508[_0x5f5244(0x100)](),'children':_0x5f5244(0xa0)})]});}function te(){var _0x1e2c12=_0x82621;return l[_0x1e2c12(0x138)](l['Fragment'],{'children':_0x1e2c12(0xed)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x3580ff,_0x96b643,_0x19442b,_0x111763)=>{var _0x503c2e=_0x82621;for(var _0x4ea384=_0x111763>0x1?void 0x0:_0x111763?ie(_0x96b643,_0x19442b):_0x96b643,_0x254947=_0x3580ff[_0x503c2e(0x14c)]-0x1,_0x5bf518;_0x254947>=0x0;_0x254947--)(_0x5bf518=_0x3580ff[_0x254947])&&(_0x4ea384=_0x5bf518(_0x4ea384)||_0x4ea384);return _0x4ea384;},L=(_0x63c2a8,_0x3afa14)=>(_0x33abc9,_0x557a1a)=>_0x3afa14(_0x33abc9,_0x557a1a,_0x63c2a8);exports[_0x82621(0x123)]=class extends o[_0x82621(0x146)]{constructor(_0x53b154,_0x56d33a){var _0x3a4af4=_0x82621;super(),this[_0x3a4af4(0xa4)]=_0x53b154,this[_0x3a4af4(0x114)]=_0x56d33a,this[_0x3a4af4(0x97)]();}[_0x82621(0x97)](){var _0x1cf7f=_0x82621;this[_0x1cf7f(0xf1)](this['_uiPartsService']['registerComponent'](p[_0x1cf7f(0x116)][_0x1cf7f(0x149)],()=>p['connectInjector'](A,this[_0x1cf7f(0xa4)])));}},exports[_0x82621(0x123)]=ne([L(0x0,o[_0x82621(0xa7)](o[_0x82621(0x115)])),L(0x1,p[_0x82621(0x13a)])],exports['DesktopLiveShareController']);var re=Object[_0x82621(0xd1)],se=Object[_0x82621(0xbd)],oe=(_0x340f65,_0x1d8b9d,_0x1c7926)=>_0x1d8b9d in _0x340f65?re(_0x340f65,_0x1d8b9d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1c7926}):_0x340f65[_0x1d8b9d]=_0x1c7926,ae=(_0x4a3c98,_0x356547,_0x1063af,_0x516c8c)=>{for(var _0x531979=_0x516c8c>0x1?void 0x0:_0x516c8c?se(_0x356547,_0x1063af):_0x356547,_0x5351a7=_0x4a3c98['length']-0x1,_0x4ddc85;_0x5351a7>=0x0;_0x5351a7--)(_0x4ddc85=_0x4a3c98[_0x5351a7])&&(_0x531979=_0x4ddc85(_0x531979)||_0x531979);return _0x531979;},N=(_0xdd6ec3,_0x4c7618)=>(_0x5116a9,_0x59bbe0)=>_0x4c7618(_0x5116a9,_0x59bbe0,_0xdd6ec3),T=(_0x354338,_0x18dfd4,_0x5110cf)=>oe(_0x354338,typeof _0x18dfd4!='symbol'?_0x18dfd4+'':_0x18dfd4,_0x5110cf);const le='UNIVER_LIVE_SHARE_PLUGIN';exports['UniverLiveSharePlugin']=class extends o[_0x82621(0xa2)]{constructor(_0x16e0f5=x,_0x51c585,_0x32ca22){var _0x5a661b=_0x82621;super(),this[_0x5a661b(0x136)]=_0x16e0f5,this['_injector']=_0x51c585,this['_configService']=_0x32ca22;const {..._0x5207f9}=o[_0x5a661b(0x8e)]({},x,this[_0x5a661b(0x136)]);this[_0x5a661b(0x133)][_0x5a661b(0x8c)]($,_0x5207f9);}['onStarting'](){var _0x5718b6=_0x82621;o[_0x5718b6(0x168)](this[_0x5718b6(0xa4)],o[_0x5718b6(0xc0)]([[O],[exports[_0x5718b6(0xd5)]],[E],[exports['DesktopLiveShareController']]],this['_config'][_0x5718b6(0x155)])),o[_0x5718b6(0x117)](this[_0x5718b6(0xa4)],[[E]]);}[_0x82621(0xf8)](){var _0x3d3416=_0x82621;o['touchDependencies'](this[_0x3d3416(0xa4)],[[exports[_0x3d3416(0x123)]]]);}},T(exports[_0x82621(0x143)],_0x82621(0xfa),o['UniverInstanceType']['UNIVER_UNKNOWN']),T(exports[_0x82621(0x143)],_0x82621(0xbf),le),exports['UniverLiveSharePlugin']=ae([o[_0x82621(0xf4)](m[_0x82621(0x159)]),N(0x1,o[_0x82621(0xa7)](o['Injector'])),N(0x2,o[_0x82621(0x91)])],exports[_0x82621(0x143)]),exports[_0x82621(0xd6)]=A,exports[_0x82621(0xdc)]=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 _0x1d8b53=_0x4a93;(function(_0x1c412a,_0x4721e1){var _0x48051f=_0x4a93,_0x5ebf7c=_0x1c412a();while(!![]){try{var _0x2cc816=-parseInt(_0x48051f(0x1e8))/0x1+-parseInt(_0x48051f(0x1d5))/0x2*(parseInt(_0x48051f(0x204))/0x3)+parseInt(_0x48051f(0x20d))/0x4+parseInt(_0x48051f(0x1c4))/0x5*(-parseInt(_0x48051f(0x220))/0x6)+parseInt(_0x48051f(0x21c))/0x7+-parseInt(_0x48051f(0x1a9))/0x8+parseInt(_0x48051f(0x1ef))/0x9;if(_0x2cc816===_0x4721e1)break;else _0x5ebf7c['push'](_0x5ebf7c['shift']());}catch(_0x47f457){_0x5ebf7c['push'](_0x5ebf7c['shift']());}}}(_0x3bc7,0xb2c5d));var q=Object[_0x1d8b53(0x1be)],z=(_0x1b8315,_0x9c876a,_0x1ad484)=>_0x9c876a in _0x1b8315?q(_0x1b8315,_0x9c876a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ad484}):_0x1b8315[_0x9c876a]=_0x1ad484,d=(_0xe4ee69,_0x20184e,_0x1dcd7d)=>z(_0xe4ee69,typeof _0x20184e!=_0x1d8b53(0x1a7)?_0x20184e+'':_0x20184e,_0x1dcd7d);import{CollaborationSessionService as _0x4cef2c,SessionStatus as _0x5cfa23,UniverCollaborationClientPlugin as _0x4073ea}from'@univerjs-pro/collaboration-client';import{Disposable as _0xea3d2e,toDisposable as _0x172916,Inject as _0x239a44,IUniverInstanceService as _0xe4611b,Injector as _0x192d3b,IConfigService as _0x558741,ICommandService as _0x584762,RxDisposable as _0x260b45,UniverInstanceType as _0x33fb10,DisposableCollection as _0x211483,CommandType as _0x5e8cc6,DependentOn as _0x98ddff,Plugin as _0x587f09,merge as _0xa177d7,registerDependencies as _0x174d4e,mergeOverrideWithDependencies as _0x27a061,touchDependencies as _0x49be97}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x286b47,InsertSheetMutation as _0x331837}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x158b6e,SetScrollOperation as _0x4d2280}from'@univerjs/sheets-ui';import{useDependency as _0x14ae59,useObservable as _0xe07f56,IUIPartsService as _0x241906,BuiltInUIPart as _0x1217a7,connectInjector as _0x5143ac}from'@univerjs/ui';import{jsx as _0x2f0961,jsxs as _0x2dbab2,Fragment as _0x12f368}from'react/jsx-runtime';import{Dropdown as _0x46ea1d,clsx as _0x39a291,Button as _0x226687}from'@univerjs/design';import{forwardRef as _0x15ec25,useRef as _0x3ecb29,createElement as _0x16e93a,useState as _0x48688c,useEffect as _0x22643b}from'react';import{CollaborationEvent as _0x30c7bc,parseProtocolChangeset as _0x1495b0}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x3cc28c,Subject as _0x4fab24}from'rxjs';import{takeUntil as _0x1ced03,throttleTime as _0x32385e}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0xea3d2e{constructor(){var _0x258f43=_0x1d8b53;super(...arguments),d(this,_0x258f43(0x217),new Set()),d(this,_0x258f43(0x1ed),new Set());}[_0x1d8b53(0x21d)](_0x4cbe8a){var _0x4c88d8=_0x1d8b53;return this['_sharedOperations']['add'](_0x4cbe8a),_0x172916(()=>this[_0x4c88d8(0x217)][_0x4c88d8(0x20e)](_0x4cbe8a));}[_0x1d8b53(0x1bf)](_0xceda9c){var _0x27f845=_0x1d8b53;return this[_0x27f845(0x1ed)][_0x27f845(0x1c1)](_0xceda9c),_0x172916(()=>this[_0x27f845(0x1ed)][_0x27f845(0x20e)](_0xceda9c));}['shouldShareOperation'](_0x3c2446){var _0x489af5=_0x1d8b53;return this[_0x489af5(0x217)][_0x489af5(0x19b)](_0x3c2446);}['getInitialStates'](_0x185644){var _0x5662c7=_0x1d8b53;return Array[_0x5662c7(0x174)](this['_reporters'])[_0x5662c7(0x1b8)](_0x3c81ab=>_0x3c81ab(_0x185644));}}var Ee=Object[_0x1d8b53(0x1e2)],we=(_0x1a142e,_0x249868,_0x25d5e9,_0x3699e1)=>{for(var _0x32749e=_0x3699e1>0x1?void 0x0:_0x3699e1?Ee(_0x249868,_0x25d5e9):_0x249868,_0x14af68=_0x1a142e['length']-0x1,_0x4a9ed9;_0x14af68>=0x0;_0x14af68--)(_0x4a9ed9=_0x1a142e[_0x14af68])&&(_0x32749e=_0x4a9ed9(_0x32749e)||_0x32749e);return _0x32749e;},Ne=(_0x207cb9,_0x46b086)=>(_0x561061,_0xf87905)=>_0x46b086(_0x561061,_0xf87905,_0x207cb9);let m=class extends _0xea3d2e{constructor(_0x7300ec){var _0x108b47=_0x1d8b53;super(),this['_liveShareService']=_0x7300ec,this[_0x108b47(0x1f8)]();}[_0x1d8b53(0x1f8)](){var _0x47120d=_0x1d8b53;[_0x158b6e['id'],_0x4d2280['id'],_0x286b47['id']][_0x47120d(0x194)](_0x5b528d=>{var _0x4f00fb=_0x47120d;this[_0x4f00fb(0x219)](this[_0x4f00fb(0x180)][_0x4f00fb(0x21d)](_0x5b528d));});}};m=we([Ne(0x0,_0x239a44(L))],m);function _0x4a93(_0x2fd27e,_0x12a581){var _0x3bc7b3=_0x3bc7();return _0x4a93=function(_0x4a939b,_0x4f5d24){_0x4a939b=_0x4a939b-0x16c;var _0x1c49ee=_0x3bc7b3[_0x4a939b];return _0x1c49ee;},_0x4a93(_0x2fd27e,_0x12a581);}var c=function(){var _0x26a520=_0x1d8b53;return c=Object[_0x26a520(0x198)]||function(_0xbf9792){var _0x1ef818=_0x26a520;for(var _0x2e00f4,_0x45a39e=0x1,_0x22e0e0=arguments[_0x1ef818(0x188)];_0x45a39e<_0x22e0e0;_0x45a39e++){_0x2e00f4=arguments[_0x45a39e];for(var _0x53003f in _0x2e00f4)Object[_0x1ef818(0x1dd)]['hasOwnProperty'][_0x1ef818(0x175)](_0x2e00f4,_0x53003f)&&(_0xbf9792[_0x53003f]=_0x2e00f4[_0x53003f]);}return _0xbf9792;},c[_0x26a520(0x1c0)](this,arguments);},Ce=function(_0x1e0df3,_0x18ad15){var _0x59a2e4=_0x1d8b53,_0x244a8b={};for(var _0x3ad7aa in _0x1e0df3)Object['prototype']['hasOwnProperty'][_0x59a2e4(0x175)](_0x1e0df3,_0x3ad7aa)&&_0x18ad15[_0x59a2e4(0x191)](_0x3ad7aa)<0x0&&(_0x244a8b[_0x3ad7aa]=_0x1e0df3[_0x3ad7aa]);if(_0x1e0df3!=null&&typeof Object['getOwnPropertySymbols']==_0x59a2e4(0x170)){for(var _0x19eba5=0x0,_0x3ad7aa=Object[_0x59a2e4(0x209)](_0x1e0df3);_0x19eba5<_0x3ad7aa[_0x59a2e4(0x188)];_0x19eba5++)_0x18ad15[_0x59a2e4(0x191)](_0x3ad7aa[_0x19eba5])<0x0&&Object[_0x59a2e4(0x1dd)]['propertyIsEnumerable'][_0x59a2e4(0x175)](_0x1e0df3,_0x3ad7aa[_0x19eba5])&&(_0x244a8b[_0x3ad7aa[_0x19eba5]]=_0x1e0df3[_0x3ad7aa[_0x19eba5]]);}return _0x244a8b;},W=_0x15ec25(function(_0x22a4f9,_0x18b145){var _0x22c426=_0x1d8b53,_0x74fc5b=_0x22a4f9[_0x22c426(0x1b7)],_0x546ff6=_0x22a4f9['id'],_0x3c29e4=_0x22a4f9[_0x22c426(0x16f)],_0x40e04e=_0x22a4f9['extend'],_0x245f9d=Ce(_0x22a4f9,['icon','id',_0x22c426(0x16f),_0x22c426(0x171)]),_0x2de780=_0x22c426(0x1fc)[_0x22c426(0x1c8)](_0x546ff6,'\x20')[_0x22c426(0x1c8)](_0x3c29e4||'')[_0x22c426(0x16c)](),_0x34ecf4=_0x3ecb29('_'['concat'](Le()));return Y(_0x74fc5b,''['concat'](_0x546ff6),{'defIds':_0x74fc5b[_0x22c426(0x1a6)],'idSuffix':_0x34ecf4[_0x22c426(0x197)]},c({'ref':_0x18b145,'className':_0x2de780},_0x245f9d),_0x40e04e);});function Y(_0x357dcc,_0xd13a72,_0x51a57e,_0x174d64,_0x12fe0e){var _0x59fb1b=_0x1d8b53;return _0x16e93a(_0x357dcc['tag'],c(c({'key':_0xd13a72},De(_0x357dcc,_0x51a57e,_0x12fe0e)),_0x174d64),(xe(_0x357dcc,_0x51a57e)[_0x59fb1b(0x1a8)]||[])[_0x59fb1b(0x1b8)](function(_0x215130,_0x2954ea){var _0xe4ba90=_0x59fb1b;return Y(_0x215130,''[_0xe4ba90(0x1c8)](_0xd13a72,'-')[_0xe4ba90(0x1c8)](_0x357dcc[_0xe4ba90(0x1fe)],'-')['concat'](_0x2954ea),_0x51a57e,void 0x0,_0x12fe0e);}));}function De(_0x4fb37a,_0x17e4ae,_0x140622){var _0x4c57ec=_0x1d8b53,_0x575c2e=c({},_0x4fb37a[_0x4c57ec(0x218)]);_0x140622!=null&&_0x140622['colorChannel1']&&_0x575c2e[_0x4c57ec(0x19d)]===_0x4c57ec(0x19e)&&(_0x575c2e[_0x4c57ec(0x19d)]=_0x140622[_0x4c57ec(0x19e)]),_0x4fb37a[_0x4c57ec(0x1fe)]===_0x4c57ec(0x1d6)&&_0x575c2e['id']&&(_0x575c2e['id']=_0x575c2e['id']+_0x17e4ae[_0x4c57ec(0x1af)]),Object[_0x4c57ec(0x1f3)](_0x575c2e)[_0x4c57ec(0x194)](function(_0x1392e8){var _0x1d9695=_0x4c57ec,_0x4f189c=_0x1392e8[0x0],_0x5cc21c=_0x1392e8[0x1];_0x4f189c==='mask'&&typeof _0x5cc21c=='string'&&(_0x575c2e[_0x4f189c]=_0x5cc21c[_0x1d9695(0x1ee)](/url\(#(.*)\)/,_0x1d9695(0x1b9)[_0x1d9695(0x1c8)](_0x17e4ae[_0x1d9695(0x1af)],')')));});var _0x5f3a5c=_0x17e4ae[_0x4c57ec(0x1a6)];return!_0x5f3a5c||_0x5f3a5c['length']===0x0||(_0x4fb37a[_0x4c57ec(0x1fe)]==='use'&&_0x575c2e[_0x4c57ec(0x214)]&&(_0x575c2e[_0x4c57ec(0x214)]=_0x575c2e[_0x4c57ec(0x214)]+_0x17e4ae[_0x4c57ec(0x1af)]),Object[_0x4c57ec(0x1f3)](_0x575c2e)[_0x4c57ec(0x194)](function(_0x367307){var _0x380aba=_0x4c57ec,_0x3fb3f5=_0x367307[0x0],_0xd9c0dc=_0x367307[0x1];typeof _0xd9c0dc==_0x380aba(0x196)&&(_0x575c2e[_0x3fb3f5]=_0xd9c0dc['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x17e4ae[_0x380aba(0x1af)],')')));})),_0x575c2e;}function xe(_0x12ba6e,_0x4b1536){var _0x160606=_0x1d8b53,_0x17c74b,_0x156cd4=_0x4b1536[_0x160606(0x1a6)];return!_0x156cd4||_0x156cd4['length']===0x0?_0x12ba6e:_0x12ba6e[_0x160606(0x1fe)]===_0x160606(0x208)&&(!((_0x17c74b=_0x12ba6e['children'])===null||_0x17c74b===void 0x0)&&_0x17c74b[_0x160606(0x188)])?c(c({},_0x12ba6e),{'children':_0x12ba6e[_0x160606(0x1a8)][_0x160606(0x1b8)](function(_0x5a92f0){var _0x4c7f0f=_0x160606;return typeof _0x5a92f0[_0x4c7f0f(0x218)]['id']==_0x4c7f0f(0x196)&&_0x156cd4&&_0x156cd4['includes'](_0x5a92f0['attrs']['id'])?c(c({},_0x5a92f0),{'attrs':c(c({},_0x5a92f0[_0x4c7f0f(0x218)]),{'id':_0x5a92f0[_0x4c7f0f(0x218)]['id']+_0x4b1536['idSuffix']})}):_0x5a92f0;})}):_0x12ba6e;}function Le(){var _0x5e8c8=_0x1d8b53;return Math[_0x5e8c8(0x1dc)]()[_0x5e8c8(0x21f)](0x24)[_0x5e8c8(0x206)](0x2,0x8);}W['displayName']=_0x1d8b53(0x1b4);var ye={'tag':'svg','attrs':{'xmlns':_0x1d8b53(0x19f),'fill':_0x1d8b53(0x17f),'viewBox':'0\x200\x2017\x2017','width':_0x1d8b53(0x1f4),'height':_0x1d8b53(0x1f4)},'children':[{'tag':_0x1d8b53(0x1f2),'attrs':{'fill':_0x1d8b53(0x1f9),'d':_0x1d8b53(0x179)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x1d8b53(0x215),'fillRule':_0x1d8b53(0x1cd),'clipRule':'evenodd'}}]},B=_0x15ec25(function(_0x5a2619,_0x143821){var _0xc16824=_0x1d8b53;return _0x16e93a(W,Object['assign']({},_0x5a2619,{'id':_0xc16824(0x1bd),'ref':_0x143821,'icon':ye}));});B[_0x1d8b53(0x1e6)]=_0x1d8b53(0x18f);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x40c314,_0x3a0ec6,_0x2bc05e,_0x2a5976)=>{var _0x3f37c1=_0x1d8b53;for(var _0x17dbc5=_0x2a5976>0x1?void 0x0:_0x2a5976?Re(_0x3a0ec6,_0x2bc05e):_0x3a0ec6,_0x313424=_0x40c314[_0x3f37c1(0x188)]-0x1,_0x187c97;_0x313424>=0x0;_0x313424--)(_0x187c97=_0x40c314[_0x313424])&&(_0x17dbc5=_0x187c97(_0x17dbc5)||_0x17dbc5);return _0x17dbc5;},f=(_0x86ef21,_0x1eb35f)=>(_0x231bb1,_0x4f3bf4)=>_0x1eb35f(_0x231bb1,_0x4f3bf4,_0x86ef21);let I=class extends _0x260b45{constructor(_0x5f6d2b,_0x9ca862,_0x49c362){var _0x4fbbf4=_0x1d8b53;super(),d(this,_0x4fbbf4(0x17d),new Map()),(this[_0x4fbbf4(0x17c)]=_0x5f6d2b,this[_0x4fbbf4(0x1ca)]=_0x9ca862,this[_0x4fbbf4(0x1c5)]=_0x49c362,this[_0x4fbbf4(0x1f8)]());}async[_0x1d8b53(0x1d4)](_0xe3a0e4){var _0x46da20=_0x1d8b53;return this[_0x46da20(0x17d)][_0x46da20(0x19b)](_0xe3a0e4)||await this[_0x46da20(0x16e)](_0xe3a0e4),this[_0x46da20(0x17d)][_0x46da20(0x20a)](_0xe3a0e4);}[_0x1d8b53(0x1f8)](){var _0x2d063f=_0x1d8b53;this[_0x2d063f(0x17c)][_0x2d063f(0x1f0)](_0x33fb10[_0x2d063f(0x221)])[_0x2d063f(0x193)](_0x1ced03(this[_0x2d063f(0x1d0)]))[_0x2d063f(0x182)](async _0x5af0db=>{var _0x33ea4a=_0x2d063f;const _0xf8fe09=_0x5af0db[_0x33ea4a(0x207)]();this[_0x33ea4a(0x17d)]['has'](_0xf8fe09)||this[_0x33ea4a(0x16e)](_0xf8fe09);}),this[_0x2d063f(0x17c)][_0x2d063f(0x1ea)](_0x33fb10[_0x2d063f(0x221)])[_0x2d063f(0x193)](_0x1ced03(this[_0x2d063f(0x1d0)]))['subscribe'](_0x5f4a45=>{var _0x12a431=_0x2d063f;const _0x7539de=_0x5f4a45[_0x12a431(0x207)](),_0x48abca=this[_0x12a431(0x17d)][_0x12a431(0x20a)](_0x7539de);_0x48abca==null||_0x48abca[_0x12a431(0x189)]();});}async[_0x1d8b53(0x16e)](_0x267c9e){var _0x33374b=_0x1d8b53;const _0x3af11c=await this[_0x33374b(0x1c5)][_0x33374b(0x1c7)](_0x267c9e),_0x1a2adb=this[_0x33374b(0x1ca)]['createInstance'](C,_0x267c9e,_0x3af11c);return _0x1a2adb['init'](),this[_0x33374b(0x17d)][_0x33374b(0x213)](_0x267c9e,_0x1a2adb),_0x1a2adb;}};I=Z([f(0x0,_0xe4611b),f(0x1,_0x239a44(_0x192d3b)),f(0x2,_0x239a44(_0x4cef2c))],I);var h=(_0x1121fa=>(_0x1121fa['OFFLINE']=_0x1d8b53(0x1ad),_0x1121fa[_0x1d8b53(0x18a)]=_0x1d8b53(0x173),_0x1121fa['FOLLOWING']='following',_0x1121fa[_0x1d8b53(0x1de)]=_0x1d8b53(0x20b),_0x1121fa[_0x1d8b53(0x21b)]=_0x1d8b53(0x1c9),_0x1121fa))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x260b45{constructor(_0x36254e,_0x29780f,_0x29f97e,_0xb9965a,_0x8dbfab){var _0x39fda8=_0x1d8b53;super(),d(this,_0x39fda8(0x1df),new _0x3cc28c(_0x39fda8(0x173))),d(this,_0x39fda8(0x1b3),this[_0x39fda8(0x1df)][_0x39fda8(0x212)]()),d(this,'_init',!0x1),d(this,_0x39fda8(0x177),null),d(this,_0x39fda8(0x1e0),null),(this['_unitID']=_0x36254e,this[_0x39fda8(0x205)]=_0x29780f,this['_configService']=_0x29f97e,this[_0x39fda8(0x180)]=_0xb9965a,this[_0x39fda8(0x185)]=_0x8dbfab);}get[_0x1d8b53(0x1a4)](){var _0x5da06c=_0x1d8b53;return this['_status$'][_0x5da06c(0x1d8)]();}[_0x1d8b53(0x189)](){var _0xe3b2c9=_0x1d8b53,_0x3b64a4;(_0x3b64a4=this[_0xe3b2c9(0x177)])==null||_0x3b64a4[_0xe3b2c9(0x189)](),this[_0xe3b2c9(0x1df)][_0xe3b2c9(0x1e5)](_0xe3b2c9(0x173)),this[_0xe3b2c9(0x1df)][_0xe3b2c9(0x1da)]();}[_0x1d8b53(0x1e7)](){var _0x14ad78=_0x1d8b53;this[_0x14ad78(0x1f8)]||(this[_0x14ad78(0x1f8)]=!0x0,this['_collabSession'][_0x14ad78(0x1ec)][_0x14ad78(0x193)](_0x1ced03(this[_0x14ad78(0x1d0)]))[_0x14ad78(0x182)](_0x59bf7a=>{var _0x1840d9=_0x14ad78;switch(_0x59bf7a){case _0x5cfa23[_0x1840d9(0x1aa)]:this[_0x1840d9(0x1ae)]();break;case _0x5cfa23[_0x1840d9(0x18e)]:this[_0x1840d9(0x1a5)]();break;}}),this[_0x14ad78(0x205)]['event$'][_0x14ad78(0x193)](_0x1ced03(this[_0x14ad78(0x1d0)]))[_0x14ad78(0x182)](_0x43904e=>{var _0xb170c3=_0x14ad78;const {eventID:_0x58bec8}=_0x43904e;switch(_0x58bec8){case _0x30c7bc[_0xb170c3(0x19a)]:this[_0xb170c3(0x1fd)](_0x43904e);break;case _0x30c7bc[_0xb170c3(0x195)]:this[_0xb170c3(0x1e9)](_0x43904e);break;case _0x30c7bc[_0xb170c3(0x201)]:this[_0xb170c3(0x21a)]();break;case _0x30c7bc[_0xb170c3(0x1d7)]:this[_0xb170c3(0x1fb)](_0x43904e);break;}}));}['tryStartPresenting'](){var _0x1db995=_0x1d8b53;this['_collabSession'][_0x1db995(0x1c6)]({'eventID':_0x30c7bc[_0x1db995(0x16d)],'data':{'unitID':this[_0x1db995(0x17e)],'userID':this[_0x1db995(0x205)]['getMemberID']()}},this[_0x1db995(0x17e)]);}[_0x1d8b53(0x203)](){var _0x5d6f76=_0x1d8b53;this[_0x5d6f76(0x1a4)]===_0x5d6f76(0x1c9)&&(this[_0x5d6f76(0x1df)][_0x5d6f76(0x1e5)]('idle'),this['_collabSession']['send']({'eventID':_0x30c7bc['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x5d6f76(0x17e)]}},this[_0x5d6f76(0x17e)]));}[_0x1d8b53(0x1cb)](){var _0x4106f2=_0x1d8b53;this[_0x4106f2(0x1a4)]===_0x4106f2(0x20b)&&(this[_0x4106f2(0x1df)][_0x4106f2(0x1e5)](_0x4106f2(0x1bc)),this[_0x4106f2(0x1ff)]());}['stopFollowing'](){var _0x1ec1c7=_0x1d8b53;this[_0x1ec1c7(0x1a4)]==='following'&&this[_0x1ec1c7(0x1f6)]();}['_handleNewHost'](_0x4b3227){var _0x11d74b=_0x1d8b53;const {presenter:_0x5b616d}=_0x4b3227[_0x11d74b(0x210)],_0x4eaaad=this[_0x11d74b(0x205)]['getMemberID']();this['_presenter']=_0x5b616d,_0x5b616d===_0x4eaaad?(this['_stopFollowing'](),this[_0x11d74b(0x18d)]()):this['_status']!==_0x11d74b(0x20b)&&(this[_0x11d74b(0x20f)](),this[_0x11d74b(0x1ff)]());}[_0x1d8b53(0x1a2)](){var _0x440bab=_0x1d8b53;const _0x4d8bf5={'eventID':_0x30c7bc[_0x440bab(0x1bb)]};this[_0x440bab(0x205)][_0x440bab(0x1c6)](_0x4d8bf5,this['_unitID']);}[_0x1d8b53(0x21a)](){var _0x52478d=_0x1d8b53;this[_0x52478d(0x1e0)]=null,this[_0x52478d(0x1a4)]!==_0x52478d(0x1c9)&&this[_0x52478d(0x1b1)]();}[_0x1d8b53(0x1fb)](_0x57ed1a){var _0xea3bc6=_0x1d8b53;if(this['_status']==='following'&&this[_0xea3bc6(0x1e0)]===_0x57ed1a[_0xea3bc6(0x210)][_0xea3bc6(0x1cc)]){const _0x4006f0=_0x1495b0(_0x57ed1a['data'])[_0xea3bc6(0x1db)][_0xea3bc6(0x183)]()[_0xea3bc6(0x19c)](_0x4aad10=>_0x4aad10['id']===_0x331837['id']);if(_0x4006f0){const _0x3d832b=_0x4006f0[_0xea3bc6(0x1b5)][_0xea3bc6(0x1f7)],_0xb20378=_0x4006f0[_0xea3bc6(0x1b5)][_0xea3bc6(0x1ba)]['id'];setTimeout(()=>{var _0x1fce3e=_0xea3bc6;this[_0x1fce3e(0x185)][_0x1fce3e(0x1cf)](_0x286b47['id'],{'unitId':_0x3d832b,'subUnitId':_0xb20378},{'fromCollab':!0x0});});}}}[_0x1d8b53(0x18d)](){var _0x53e7da=_0x1d8b53;this['_status$']['next'](_0x53e7da(0x1c9));const _0x4ac352=new Map(),_0x28dcc5=this['_commandDisposable']=new _0x211483();_0x28dcc5['add'](_0x172916(()=>{var _0x143db0=_0x53e7da;_0x4ac352[_0x143db0(0x194)](_0xaff821=>_0xaff821[_0x143db0(0x1da)]()),_0x4ac352[_0x143db0(0x1f5)]();})),_0x28dcc5['add'](this[_0x53e7da(0x185)][_0x53e7da(0x1a1)](_0x1235b7=>{var _0x339098=_0x53e7da,_0x2da055;if(_0x1235b7['type']!==_0x5e8cc6[_0x339098(0x199)]||!this[_0x339098(0x180)]['shouldShareOperation'](_0x1235b7['id']))return;const {id:_0x1b78e2}=_0x1235b7;let _0x511d48;_0x4ac352[_0x339098(0x19b)](_0x1b78e2)?_0x511d48=_0x4ac352[_0x339098(0x20a)](_0x1b78e2):(_0x511d48=new _0x4fab24(),_0x4ac352[_0x339098(0x213)](_0x1b78e2,_0x511d48),_0x511d48[_0x339098(0x193)](_0x32385e((_0x2da055=this[_0x339098(0x192)][_0x339098(0x1eb)](Pe))!=null?_0x2da055:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x339098(0x182)](_0x5cff80=>{var _0x131167=_0x339098;this['_collabSession'][_0x131167(0x1c6)]({'eventID':_0x30c7bc['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x5cff80['id']]:{'id':_0x5cff80['id'],'params':JSON['stringify'](_0x5cff80[_0x131167(0x1b5)])}}}},this['_unitID']);})),_0x511d48[_0x339098(0x1e5)](_0x1235b7);})),this[_0x53e7da(0x180)][_0x53e7da(0x1d1)](this[_0x53e7da(0x17e)])['forEach'](_0x25938e=>this[_0x53e7da(0x205)]['send']({'eventID':_0x30c7bc['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x53e7da(0x17e)],'operations':{[_0x25938e['id']]:{'id':_0x25938e['id'],'params':JSON[_0x53e7da(0x190)](_0x25938e['params'])}}}},this[_0x53e7da(0x17e)]));}[_0x1d8b53(0x20f)](){var _0x5622a0=_0x1d8b53,_0x1c9957;this[_0x5622a0(0x1df)][_0x5622a0(0x1e5)]('idle'),(_0x1c9957=this[_0x5622a0(0x177)])==null||_0x1c9957[_0x5622a0(0x189)](),this[_0x5622a0(0x177)]=null;}[_0x1d8b53(0x1ff)](){var _0x1c7d57=_0x1d8b53,_0x293426;(_0x293426=this['_commandDisposable'])==null||_0x293426['dispose'](),this[_0x1c7d57(0x1df)][_0x1c7d57(0x1e5)](_0x1c7d57(0x1bc));}[_0x1d8b53(0x1b1)](){var _0x29782e=_0x1d8b53,_0x114f3f;this[_0x29782e(0x1df)][_0x29782e(0x1e5)](_0x29782e(0x173)),(_0x114f3f=this[_0x29782e(0x177)])==null||_0x114f3f[_0x29782e(0x189)](),this[_0x29782e(0x177)]=null;}[_0x1d8b53(0x1f6)](){var _0x3f3989=_0x1d8b53,_0xa5d20d;this[_0x3f3989(0x1df)][_0x3f3989(0x1e5)](_0x3f3989(0x20b)),(_0xa5d20d=this['_commandDisposable'])==null||_0xa5d20d['dispose']();}[_0x1d8b53(0x1e9)](_0x29ee44){var _0x14243a=_0x1d8b53;if([_0x14243a(0x1c9),_0x14243a(0x20b),_0x14243a(0x1ad)][_0x14243a(0x1f1)](this[_0x14243a(0x1a4)])||!_0x29ee44[_0x14243a(0x210)][_0x14243a(0x17b)]||_0x29ee44['data'][_0x14243a(0x17b)]===this[_0x14243a(0x205)][_0x14243a(0x216)]())return;this[_0x14243a(0x1a4)]===_0x14243a(0x173)&&this[_0x14243a(0x1ff)]();const _0x12b7d3=_0x29ee44['data'][_0x14243a(0x1d2)];Object['values'](_0x12b7d3)[_0x14243a(0x194)](_0x3e84d9=>{var _0x416310=_0x14243a;this[_0x416310(0x185)][_0x416310(0x1cf)](_0x3e84d9['id'],_0x3e84d9[_0x416310(0x1b5)]?JSON[_0x416310(0x1e3)](_0x3e84d9[_0x416310(0x1b5)]):null,{'fromCollab':!0x0});});}[_0x1d8b53(0x1ae)](){var _0x1243a3=_0x1d8b53,_0x322e14;this[_0x1243a3(0x1df)][_0x1243a3(0x1e5)]('offline'),(_0x322e14=this['_commandDisposable'])==null||_0x322e14['dispose']();}[_0x1d8b53(0x1a5)](){var _0x5e4c7e=_0x1d8b53;this[_0x5e4c7e(0x1df)][_0x5e4c7e(0x1e5)](_0x5e4c7e(0x173)),this[_0x5e4c7e(0x1a2)]();}};C=Z([f(0x2,_0x558741),f(0x3,_0x239a44(L)),f(0x4,_0x584762)],C);function Te(){var _0xe3a83d=_0x1d8b53;const _0x1bc609=_0x14ae59(I),_0x1e5726=_0x14ae59(_0xe4611b),_0x1ba9de=_0xe07f56(()=>_0x1e5726[_0xe3a83d(0x17a)](_0x33fb10[_0xe3a83d(0x221)]),void 0x0,!0x1,[]),[_0x1fba3a,_0x4232ef]=_0x48688c(null),[_0x17c024,_0x19feac]=_0x48688c(h[_0xe3a83d(0x18a)]),_0x28b61e=_0x3ecb29(null);return _0x22643b(()=>(_0x1ba9de&&_0x1bc609['getLiveShareCoordinator'](_0x1ba9de[_0xe3a83d(0x207)]())[_0xe3a83d(0x1ce)](_0x2c8aa5=>{var _0xdc5ecc=_0xe3a83d;_0x4232ef(_0x2c8aa5),_0x28b61e['current']=_0x2c8aa5[_0xdc5ecc(0x1b3)][_0xdc5ecc(0x182)](_0xb71cd0=>{_0x19feac(_0xb71cd0);});}),()=>{var _0x49eb77=_0xe3a83d,_0x5ae364;(_0x5ae364=_0x28b61e[_0x49eb77(0x197)])==null||_0x5ae364[_0x49eb77(0x18c)](),_0x28b61e[_0x49eb77(0x197)]=null;}),[_0x1ba9de,_0x1bc609]),_0x1fba3a?_0x2f0961(_0x46ea1d,{'align':'end','disabled':_0x17c024===h[_0xe3a83d(0x1aa)],'className':_0xe3a83d(0x202),'overlay':_0x2f0961($e,{'status':_0x17c024,'coordinator':_0x1fba3a}),'children':_0x2f0961(_0xe3a83d(0x1b0),{'className':_0x39a291(_0xe3a83d(0x176),{'univer-cursor-not-allowed':_0x17c024===h[_0xe3a83d(0x1aa)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x17c024!==h[_0xe3a83d(0x1aa)]}),'type':'button','children':_0x2f0961(B,{'className':_0xe3a83d(0x1c3)})})}):null;}function $e(_0x5c5ffa){var _0x12f431=_0x1d8b53;const {status:_0x2e8476,coordinator:_0x155618}=_0x5c5ffa;switch(_0x2e8476){case h['IDLE']:return _0x2f0961(Fe,{'coordinator':_0x155618});case h[_0x12f431(0x186)]:return _0x2f0961(He,{'coordinator':_0x155618});case h['NOT_FOLLOWING']:return _0x2f0961(je,{'coordinator':_0x155618});case h[_0x12f431(0x1aa)]:return _0x2f0961(Ve,{});case h[_0x12f431(0x21b)]:return _0x2f0961(Ue,{'coordinator':_0x155618});default:return null;}}function Fe(_0xf4ece9){var _0x3f55bc=_0x1d8b53;const {coordinator:_0x17275a}=_0xf4ece9;return _0x2dbab2(_0x12f368,{'children':[_0x2f0961(_0x3f55bc(0x1b2),{'className':_0x3f55bc(0x1b6),'children':_0x3f55bc(0x200)}),_0x2f0961(_0x226687,{'onClick':()=>_0x17275a['tryStartPresenting'](),'children':_0x3f55bc(0x21e)})]});}function He(_0x25a0b9){var _0x321832=_0x1d8b53;const {coordinator:_0x3d2ca7}=_0x25a0b9;return _0x2dbab2(_0x12f368,{'children':[_0x2f0961(_0x321832(0x1b2),{'className':_0x321832(0x1b6),'children':_0x321832(0x222)}),_0x2f0961(_0x226687,{'onClick':()=>_0x3d2ca7[_0x321832(0x1fa)](),'children':_0x321832(0x1c2)})]});}function je(_0x4844c4){var _0x1f2650=_0x1d8b53;const {coordinator:_0x161fb8}=_0x4844c4;return _0x2dbab2(_0x12f368,{'children':[_0x2f0961(_0x1f2650(0x1b2),{'className':_0x1f2650(0x1b6),'children':_0x1f2650(0x1ab)}),_0x2f0961(_0x226687,{'variant':_0x1f2650(0x1a3),'onClick':()=>_0x161fb8['startFollowing'](),'children':'Start\x20following'})]});}function Ue(_0x2a1062){var _0x3284b0=_0x1d8b53;const {coordinator:_0x394e66}=_0x2a1062;return _0x2dbab2(_0x12f368,{'children':[_0x2f0961(_0x3284b0(0x1b2),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3284b0(0x1e1)}),_0x2f0961(_0x226687,{'variant':_0x3284b0(0x178),'onClick':()=>_0x394e66[_0x3284b0(0x203)](),'children':'Stop\x20presenting'})]});}function Ve(){return _0x2f0961(_0x12f368,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x1d8b53(0x1e2)],ke=(_0x7123c9,_0x540667,_0x25ddae,_0xe8ad5a)=>{for(var _0x3b45e5=_0xe8ad5a>0x1?void 0x0:_0xe8ad5a?Me(_0x540667,_0x25ddae):_0x540667,_0x184b4a=_0x7123c9['length']-0x1,_0x4df781;_0x184b4a>=0x0;_0x184b4a--)(_0x4df781=_0x7123c9[_0x184b4a])&&(_0x3b45e5=_0x4df781(_0x3b45e5)||_0x3b45e5);return _0x3b45e5;},$=(_0x239d77,_0x1be1f5)=>(_0x42470d,_0x4b0316)=>_0x1be1f5(_0x42470d,_0x4b0316,_0x239d77);let b=class extends _0xea3d2e{constructor(_0x37729d,_0x1e1b1a){var _0x1baec1=_0x1d8b53;super(),this[_0x1baec1(0x1ca)]=_0x37729d,this[_0x1baec1(0x172)]=_0x1e1b1a,this[_0x1baec1(0x181)]();}[_0x1d8b53(0x181)](){var _0x33301f=_0x1d8b53;this[_0x33301f(0x219)](this['_uiPartsService'][_0x33301f(0x187)](_0x1217a7['HEADER_MENU'],()=>_0x5143ac(Te,this[_0x33301f(0x1ca)])));}};b=ke([$(0x0,_0x239a44(_0x192d3b)),$(0x1,_0x241906)],b);var Ge=Object['defineProperty'],We=Object[_0x1d8b53(0x1e2)],Ye=(_0x2707be,_0x5ec934,_0x104535)=>_0x5ec934 in _0x2707be?Ge(_0x2707be,_0x5ec934,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x104535}):_0x2707be[_0x5ec934]=_0x104535,Be=(_0x437d4d,_0x3544ba,_0x1be1cf,_0x202747)=>{var _0x116cb5=_0x1d8b53;for(var _0x39bad7=_0x202747>0x1?void 0x0:_0x202747?We(_0x3544ba,_0x1be1cf):_0x3544ba,_0x597aba=_0x437d4d[_0x116cb5(0x188)]-0x1,_0x211365;_0x597aba>=0x0;_0x597aba--)(_0x211365=_0x437d4d[_0x597aba])&&(_0x39bad7=_0x211365(_0x39bad7)||_0x39bad7);return _0x39bad7;},F=(_0x150923,_0x45834a)=>(_0xbb135f,_0x28d233)=>_0x45834a(_0xbb135f,_0x28d233,_0x150923),J=(_0x302fa7,_0x3c5270,_0xa67b06)=>Ye(_0x302fa7,typeof _0x3c5270!=_0x1d8b53(0x1a7)?_0x3c5270+'':_0x3c5270,_0xa67b06);function _0x3bc7(){var _0x46974d=['idSuffix','button','_beIdle','div','status$','UniverIcon','params','univer-mb-3\x20univer-w-full\x20univer-text-sm','icon','map','url(#$1','sheet','LIVESHARE_FETCH_OPERATIONS','following','live-share-icon','defineProperty','registerInitialStateReporter','apply','add','Stop\x20following','univer-size-4','161795fsSAun','_collabSessionService','send','requireSession','concat','presenting','_injector','startFollowing','memberID','evenodd','then','executeCommand','dispose$','getInitialStates','operations','UNIVER_LIVE_SHARE_PLUGIN','getLiveShareCoordinator','2mdHYkt','mask','NEW_CHANGESETS','getValue','onStarting','complete','mutations','random','prototype','NOT_FOLLOWING','_status$','_presenter','You\x27re\x20presenting\x20the\x20document','getOwnPropertyDescriptor','parse','onRendered','next','displayName','init','642928HNEwYN','_handleOperation','getTypeOfUnitDisposed$','getConfig','sessionStatus$','_reporters','replace','23040747ntBToN','getTypeOfUnitAdded$','includes','path','entries','1em','clear','_stopFollowing','unitId','_init','currentColor','stopFollowing','_handleNewChangeSets','univerjs-icon\x20univerjs-icon-','_handleNewHost','tag','_startFollowing','Present\x20this\x20document','LIVESHARE_TERMINATE','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','stopPresenting','2534781ybidcH','_collabSession','substring','getUnitId','defs','getOwnPropertySymbols','get','not-following','override','3180276UfaCjV','delete','_stopPresenting','data','UNIVER_UNKNOWN','asObservable','set','xlink:href','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','getMemberID','_sharedOperations','attrs','disposeWithMe','_handleTerminate','PRESENTING','6303717rzJBYO','registerSharedOperation','Start','toString','138ufAhsK','UNIVER_SHEET','You\x27re\x20following\x20the\x20presenter','trim','LIVESHARE_REQUEST_HOST','_startLiveShareCoordinator','className','function','extend','_uiPartsService','idle','from','call','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_commandDisposable','default','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','getCurrentTypeOfUnit$','presenter','_univerInstanceService','_entities','_unitID','none','_liveShareService','_mountLiveShare','subscribe','reverse','_config','_commandService','FOLLOWING','registerComponent','length','dispose','IDLE','pluginName','unsubscribe','_startPresenting','ONLINE','LiveShareIcon','stringify','indexOf','_configService','pipe','forEach','LIVESHARE_OPERATION','string','current','assign','OPERATION','LIVESHARE_NEW_HOST','has','find','fill','colorChannel1','http://www.w3.org/2000/svg','setConfig','onCommandExecuted','_fetchOperations','text','_status','_handleOnline','defIds','symbol','children','10330544BTrdHs','OFFLINE','You\x27re\x20not\x20following\x20the\x20presenter','type','offline','_handleOffline'];_0x3bc7=function(){return _0x46974d;};return _0x3bc7();}const Ze=_0x1d8b53(0x1d3);let O=class extends _0x587f09{constructor(_0x4c3fd6=T,_0x162f54,_0x1a5871){var _0x237978=_0x1d8b53;super(),this[_0x237978(0x184)]=_0x4c3fd6,this[_0x237978(0x1ca)]=_0x162f54,this[_0x237978(0x192)]=_0x1a5871;const {..._0x1dfa6c}=_0xa177d7({},T,this['_config']);this[_0x237978(0x192)][_0x237978(0x1a0)](Oe,_0x1dfa6c);}[_0x1d8b53(0x1d9)](){var _0x2870a0=_0x1d8b53;_0x174d4e(this[_0x2870a0(0x1ca)],_0x27a061([[L],[I],[m],[b]],this[_0x2870a0(0x184)][_0x2870a0(0x20c)])),_0x49be97(this[_0x2870a0(0x1ca)],[[m]]);}[_0x1d8b53(0x1e4)](){var _0x1afc44=_0x1d8b53;_0x49be97(this[_0x1afc44(0x1ca)],[[b]]);}};J(O,_0x1d8b53(0x1ac),_0x33fb10[_0x1d8b53(0x211)]),J(O,_0x1d8b53(0x18b),Ze),O=Be([_0x98ddff(_0x4073ea),F(0x1,_0x239a44(_0x192d3b)),F(0x2,_0x558741)],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 _0x1d8b53=_0x4a93;(function(_0x1c412a,_0x4721e1){var _0x48051f=_0x4a93,_0x5ebf7c=_0x1c412a();while(!![]){try{var _0x2cc816=-parseInt(_0x48051f(0x1e8))/0x1+-parseInt(_0x48051f(0x1d5))/0x2*(parseInt(_0x48051f(0x204))/0x3)+parseInt(_0x48051f(0x20d))/0x4+parseInt(_0x48051f(0x1c4))/0x5*(-parseInt(_0x48051f(0x220))/0x6)+parseInt(_0x48051f(0x21c))/0x7+-parseInt(_0x48051f(0x1a9))/0x8+parseInt(_0x48051f(0x1ef))/0x9;if(_0x2cc816===_0x4721e1)break;else _0x5ebf7c['push'](_0x5ebf7c['shift']());}catch(_0x47f457){_0x5ebf7c['push'](_0x5ebf7c['shift']());}}}(_0x3bc7,0xb2c5d));var q=Object[_0x1d8b53(0x1be)],z=(_0x1b8315,_0x9c876a,_0x1ad484)=>_0x9c876a in _0x1b8315?q(_0x1b8315,_0x9c876a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1ad484}):_0x1b8315[_0x9c876a]=_0x1ad484,d=(_0xe4ee69,_0x20184e,_0x1dcd7d)=>z(_0xe4ee69,typeof _0x20184e!=_0x1d8b53(0x1a7)?_0x20184e+'':_0x20184e,_0x1dcd7d);import{CollaborationSessionService as _0x4cef2c,SessionStatus as _0x5cfa23,UniverCollaborationClientPlugin as _0x4073ea}from'@univerjs-pro/collaboration-client';import{Disposable as _0xea3d2e,toDisposable as _0x172916,Inject as _0x239a44,IUniverInstanceService as _0xe4611b,Injector as _0x192d3b,IConfigService as _0x558741,ICommandService as _0x584762,RxDisposable as _0x260b45,UniverInstanceType as _0x33fb10,DisposableCollection as _0x211483,CommandType as _0x5e8cc6,DependentOn as _0x98ddff,Plugin as _0x587f09,merge as _0xa177d7,registerDependencies as _0x174d4e,mergeOverrideWithDependencies as _0x27a061,touchDependencies as _0x49be97}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x286b47,InsertSheetMutation as _0x331837}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x158b6e,SetScrollOperation as _0x4d2280}from'@univerjs/sheets-ui';import{useDependency as _0x14ae59,useObservable as _0xe07f56,IUIPartsService as _0x241906,BuiltInUIPart as _0x1217a7,connectInjector as _0x5143ac}from'@univerjs/ui';import{jsx as _0x2f0961,jsxs as _0x2dbab2,Fragment as _0x12f368}from'react/jsx-runtime';import{Dropdown as _0x46ea1d,clsx as _0x39a291,Button as _0x226687}from'@univerjs/design';import{forwardRef as _0x15ec25,useRef as _0x3ecb29,createElement as _0x16e93a,useState as _0x48688c,useEffect as _0x22643b}from'react';import{CollaborationEvent as _0x30c7bc,parseProtocolChangeset as _0x1495b0}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x3cc28c,Subject as _0x4fab24}from'rxjs';import{takeUntil as _0x1ced03,throttleTime as _0x32385e}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0xea3d2e{constructor(){var _0x258f43=_0x1d8b53;super(...arguments),d(this,_0x258f43(0x217),new Set()),d(this,_0x258f43(0x1ed),new Set());}[_0x1d8b53(0x21d)](_0x4cbe8a){var _0x4c88d8=_0x1d8b53;return this['_sharedOperations']['add'](_0x4cbe8a),_0x172916(()=>this[_0x4c88d8(0x217)][_0x4c88d8(0x20e)](_0x4cbe8a));}[_0x1d8b53(0x1bf)](_0xceda9c){var _0x27f845=_0x1d8b53;return this[_0x27f845(0x1ed)][_0x27f845(0x1c1)](_0xceda9c),_0x172916(()=>this[_0x27f845(0x1ed)][_0x27f845(0x20e)](_0xceda9c));}['shouldShareOperation'](_0x3c2446){var _0x489af5=_0x1d8b53;return this[_0x489af5(0x217)][_0x489af5(0x19b)](_0x3c2446);}['getInitialStates'](_0x185644){var _0x5662c7=_0x1d8b53;return Array[_0x5662c7(0x174)](this['_reporters'])[_0x5662c7(0x1b8)](_0x3c81ab=>_0x3c81ab(_0x185644));}}var Ee=Object[_0x1d8b53(0x1e2)],we=(_0x1a142e,_0x249868,_0x25d5e9,_0x3699e1)=>{for(var _0x32749e=_0x3699e1>0x1?void 0x0:_0x3699e1?Ee(_0x249868,_0x25d5e9):_0x249868,_0x14af68=_0x1a142e['length']-0x1,_0x4a9ed9;_0x14af68>=0x0;_0x14af68--)(_0x4a9ed9=_0x1a142e[_0x14af68])&&(_0x32749e=_0x4a9ed9(_0x32749e)||_0x32749e);return _0x32749e;},Ne=(_0x207cb9,_0x46b086)=>(_0x561061,_0xf87905)=>_0x46b086(_0x561061,_0xf87905,_0x207cb9);let m=class extends _0xea3d2e{constructor(_0x7300ec){var _0x108b47=_0x1d8b53;super(),this['_liveShareService']=_0x7300ec,this[_0x108b47(0x1f8)]();}[_0x1d8b53(0x1f8)](){var _0x47120d=_0x1d8b53;[_0x158b6e['id'],_0x4d2280['id'],_0x286b47['id']][_0x47120d(0x194)](_0x5b528d=>{var _0x4f00fb=_0x47120d;this[_0x4f00fb(0x219)](this[_0x4f00fb(0x180)][_0x4f00fb(0x21d)](_0x5b528d));});}};m=we([Ne(0x0,_0x239a44(L))],m);function _0x4a93(_0x2fd27e,_0x12a581){var _0x3bc7b3=_0x3bc7();return _0x4a93=function(_0x4a939b,_0x4f5d24){_0x4a939b=_0x4a939b-0x16c;var _0x1c49ee=_0x3bc7b3[_0x4a939b];return _0x1c49ee;},_0x4a93(_0x2fd27e,_0x12a581);}var c=function(){var _0x26a520=_0x1d8b53;return c=Object[_0x26a520(0x198)]||function(_0xbf9792){var _0x1ef818=_0x26a520;for(var _0x2e00f4,_0x45a39e=0x1,_0x22e0e0=arguments[_0x1ef818(0x188)];_0x45a39e<_0x22e0e0;_0x45a39e++){_0x2e00f4=arguments[_0x45a39e];for(var _0x53003f in _0x2e00f4)Object[_0x1ef818(0x1dd)]['hasOwnProperty'][_0x1ef818(0x175)](_0x2e00f4,_0x53003f)&&(_0xbf9792[_0x53003f]=_0x2e00f4[_0x53003f]);}return _0xbf9792;},c[_0x26a520(0x1c0)](this,arguments);},Ce=function(_0x1e0df3,_0x18ad15){var _0x59a2e4=_0x1d8b53,_0x244a8b={};for(var _0x3ad7aa in _0x1e0df3)Object['prototype']['hasOwnProperty'][_0x59a2e4(0x175)](_0x1e0df3,_0x3ad7aa)&&_0x18ad15[_0x59a2e4(0x191)](_0x3ad7aa)<0x0&&(_0x244a8b[_0x3ad7aa]=_0x1e0df3[_0x3ad7aa]);if(_0x1e0df3!=null&&typeof Object['getOwnPropertySymbols']==_0x59a2e4(0x170)){for(var _0x19eba5=0x0,_0x3ad7aa=Object[_0x59a2e4(0x209)](_0x1e0df3);_0x19eba5<_0x3ad7aa[_0x59a2e4(0x188)];_0x19eba5++)_0x18ad15[_0x59a2e4(0x191)](_0x3ad7aa[_0x19eba5])<0x0&&Object[_0x59a2e4(0x1dd)]['propertyIsEnumerable'][_0x59a2e4(0x175)](_0x1e0df3,_0x3ad7aa[_0x19eba5])&&(_0x244a8b[_0x3ad7aa[_0x19eba5]]=_0x1e0df3[_0x3ad7aa[_0x19eba5]]);}return _0x244a8b;},W=_0x15ec25(function(_0x22a4f9,_0x18b145){var _0x22c426=_0x1d8b53,_0x74fc5b=_0x22a4f9[_0x22c426(0x1b7)],_0x546ff6=_0x22a4f9['id'],_0x3c29e4=_0x22a4f9[_0x22c426(0x16f)],_0x40e04e=_0x22a4f9['extend'],_0x245f9d=Ce(_0x22a4f9,['icon','id',_0x22c426(0x16f),_0x22c426(0x171)]),_0x2de780=_0x22c426(0x1fc)[_0x22c426(0x1c8)](_0x546ff6,'\x20')[_0x22c426(0x1c8)](_0x3c29e4||'')[_0x22c426(0x16c)](),_0x34ecf4=_0x3ecb29('_'['concat'](Le()));return Y(_0x74fc5b,''['concat'](_0x546ff6),{'defIds':_0x74fc5b[_0x22c426(0x1a6)],'idSuffix':_0x34ecf4[_0x22c426(0x197)]},c({'ref':_0x18b145,'className':_0x2de780},_0x245f9d),_0x40e04e);});function Y(_0x357dcc,_0xd13a72,_0x51a57e,_0x174d64,_0x12fe0e){var _0x59fb1b=_0x1d8b53;return _0x16e93a(_0x357dcc['tag'],c(c({'key':_0xd13a72},De(_0x357dcc,_0x51a57e,_0x12fe0e)),_0x174d64),(xe(_0x357dcc,_0x51a57e)[_0x59fb1b(0x1a8)]||[])[_0x59fb1b(0x1b8)](function(_0x215130,_0x2954ea){var _0xe4ba90=_0x59fb1b;return Y(_0x215130,''[_0xe4ba90(0x1c8)](_0xd13a72,'-')[_0xe4ba90(0x1c8)](_0x357dcc[_0xe4ba90(0x1fe)],'-')['concat'](_0x2954ea),_0x51a57e,void 0x0,_0x12fe0e);}));}function De(_0x4fb37a,_0x17e4ae,_0x140622){var _0x4c57ec=_0x1d8b53,_0x575c2e=c({},_0x4fb37a[_0x4c57ec(0x218)]);_0x140622!=null&&_0x140622['colorChannel1']&&_0x575c2e[_0x4c57ec(0x19d)]===_0x4c57ec(0x19e)&&(_0x575c2e[_0x4c57ec(0x19d)]=_0x140622[_0x4c57ec(0x19e)]),_0x4fb37a[_0x4c57ec(0x1fe)]===_0x4c57ec(0x1d6)&&_0x575c2e['id']&&(_0x575c2e['id']=_0x575c2e['id']+_0x17e4ae[_0x4c57ec(0x1af)]),Object[_0x4c57ec(0x1f3)](_0x575c2e)[_0x4c57ec(0x194)](function(_0x1392e8){var _0x1d9695=_0x4c57ec,_0x4f189c=_0x1392e8[0x0],_0x5cc21c=_0x1392e8[0x1];_0x4f189c==='mask'&&typeof _0x5cc21c=='string'&&(_0x575c2e[_0x4f189c]=_0x5cc21c[_0x1d9695(0x1ee)](/url\(#(.*)\)/,_0x1d9695(0x1b9)[_0x1d9695(0x1c8)](_0x17e4ae[_0x1d9695(0x1af)],')')));});var _0x5f3a5c=_0x17e4ae[_0x4c57ec(0x1a6)];return!_0x5f3a5c||_0x5f3a5c['length']===0x0||(_0x4fb37a[_0x4c57ec(0x1fe)]==='use'&&_0x575c2e[_0x4c57ec(0x214)]&&(_0x575c2e[_0x4c57ec(0x214)]=_0x575c2e[_0x4c57ec(0x214)]+_0x17e4ae[_0x4c57ec(0x1af)]),Object[_0x4c57ec(0x1f3)](_0x575c2e)[_0x4c57ec(0x194)](function(_0x367307){var _0x380aba=_0x4c57ec,_0x3fb3f5=_0x367307[0x0],_0xd9c0dc=_0x367307[0x1];typeof _0xd9c0dc==_0x380aba(0x196)&&(_0x575c2e[_0x3fb3f5]=_0xd9c0dc['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x17e4ae[_0x380aba(0x1af)],')')));})),_0x575c2e;}function xe(_0x12ba6e,_0x4b1536){var _0x160606=_0x1d8b53,_0x17c74b,_0x156cd4=_0x4b1536[_0x160606(0x1a6)];return!_0x156cd4||_0x156cd4['length']===0x0?_0x12ba6e:_0x12ba6e[_0x160606(0x1fe)]===_0x160606(0x208)&&(!((_0x17c74b=_0x12ba6e['children'])===null||_0x17c74b===void 0x0)&&_0x17c74b[_0x160606(0x188)])?c(c({},_0x12ba6e),{'children':_0x12ba6e[_0x160606(0x1a8)][_0x160606(0x1b8)](function(_0x5a92f0){var _0x4c7f0f=_0x160606;return typeof _0x5a92f0[_0x4c7f0f(0x218)]['id']==_0x4c7f0f(0x196)&&_0x156cd4&&_0x156cd4['includes'](_0x5a92f0['attrs']['id'])?c(c({},_0x5a92f0),{'attrs':c(c({},_0x5a92f0[_0x4c7f0f(0x218)]),{'id':_0x5a92f0[_0x4c7f0f(0x218)]['id']+_0x4b1536['idSuffix']})}):_0x5a92f0;})}):_0x12ba6e;}function Le(){var _0x5e8c8=_0x1d8b53;return Math[_0x5e8c8(0x1dc)]()[_0x5e8c8(0x21f)](0x24)[_0x5e8c8(0x206)](0x2,0x8);}W['displayName']=_0x1d8b53(0x1b4);var ye={'tag':'svg','attrs':{'xmlns':_0x1d8b53(0x19f),'fill':_0x1d8b53(0x17f),'viewBox':'0\x200\x2017\x2017','width':_0x1d8b53(0x1f4),'height':_0x1d8b53(0x1f4)},'children':[{'tag':_0x1d8b53(0x1f2),'attrs':{'fill':_0x1d8b53(0x1f9),'d':_0x1d8b53(0x179)}},{'tag':'path','attrs':{'fill':'currentColor','d':_0x1d8b53(0x215),'fillRule':_0x1d8b53(0x1cd),'clipRule':'evenodd'}}]},B=_0x15ec25(function(_0x5a2619,_0x143821){var _0xc16824=_0x1d8b53;return _0x16e93a(W,Object['assign']({},_0x5a2619,{'id':_0xc16824(0x1bd),'ref':_0x143821,'icon':ye}));});B[_0x1d8b53(0x1e6)]=_0x1d8b53(0x18f);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x40c314,_0x3a0ec6,_0x2bc05e,_0x2a5976)=>{var _0x3f37c1=_0x1d8b53;for(var _0x17dbc5=_0x2a5976>0x1?void 0x0:_0x2a5976?Re(_0x3a0ec6,_0x2bc05e):_0x3a0ec6,_0x313424=_0x40c314[_0x3f37c1(0x188)]-0x1,_0x187c97;_0x313424>=0x0;_0x313424--)(_0x187c97=_0x40c314[_0x313424])&&(_0x17dbc5=_0x187c97(_0x17dbc5)||_0x17dbc5);return _0x17dbc5;},f=(_0x86ef21,_0x1eb35f)=>(_0x231bb1,_0x4f3bf4)=>_0x1eb35f(_0x231bb1,_0x4f3bf4,_0x86ef21);let I=class extends _0x260b45{constructor(_0x5f6d2b,_0x9ca862,_0x49c362){var _0x4fbbf4=_0x1d8b53;super(),d(this,_0x4fbbf4(0x17d),new Map()),(this[_0x4fbbf4(0x17c)]=_0x5f6d2b,this[_0x4fbbf4(0x1ca)]=_0x9ca862,this[_0x4fbbf4(0x1c5)]=_0x49c362,this[_0x4fbbf4(0x1f8)]());}async[_0x1d8b53(0x1d4)](_0xe3a0e4){var _0x46da20=_0x1d8b53;return this[_0x46da20(0x17d)][_0x46da20(0x19b)](_0xe3a0e4)||await this[_0x46da20(0x16e)](_0xe3a0e4),this[_0x46da20(0x17d)][_0x46da20(0x20a)](_0xe3a0e4);}[_0x1d8b53(0x1f8)](){var _0x2d063f=_0x1d8b53;this[_0x2d063f(0x17c)][_0x2d063f(0x1f0)](_0x33fb10[_0x2d063f(0x221)])[_0x2d063f(0x193)](_0x1ced03(this[_0x2d063f(0x1d0)]))[_0x2d063f(0x182)](async _0x5af0db=>{var _0x33ea4a=_0x2d063f;const _0xf8fe09=_0x5af0db[_0x33ea4a(0x207)]();this[_0x33ea4a(0x17d)]['has'](_0xf8fe09)||this[_0x33ea4a(0x16e)](_0xf8fe09);}),this[_0x2d063f(0x17c)][_0x2d063f(0x1ea)](_0x33fb10[_0x2d063f(0x221)])[_0x2d063f(0x193)](_0x1ced03(this[_0x2d063f(0x1d0)]))['subscribe'](_0x5f4a45=>{var _0x12a431=_0x2d063f;const _0x7539de=_0x5f4a45[_0x12a431(0x207)](),_0x48abca=this[_0x12a431(0x17d)][_0x12a431(0x20a)](_0x7539de);_0x48abca==null||_0x48abca[_0x12a431(0x189)]();});}async[_0x1d8b53(0x16e)](_0x267c9e){var _0x33374b=_0x1d8b53;const _0x3af11c=await this[_0x33374b(0x1c5)][_0x33374b(0x1c7)](_0x267c9e),_0x1a2adb=this[_0x33374b(0x1ca)]['createInstance'](C,_0x267c9e,_0x3af11c);return _0x1a2adb['init'](),this[_0x33374b(0x17d)][_0x33374b(0x213)](_0x267c9e,_0x1a2adb),_0x1a2adb;}};I=Z([f(0x0,_0xe4611b),f(0x1,_0x239a44(_0x192d3b)),f(0x2,_0x239a44(_0x4cef2c))],I);var h=(_0x1121fa=>(_0x1121fa['OFFLINE']=_0x1d8b53(0x1ad),_0x1121fa[_0x1d8b53(0x18a)]=_0x1d8b53(0x173),_0x1121fa['FOLLOWING']='following',_0x1121fa[_0x1d8b53(0x1de)]=_0x1d8b53(0x20b),_0x1121fa[_0x1d8b53(0x21b)]=_0x1d8b53(0x1c9),_0x1121fa))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x260b45{constructor(_0x36254e,_0x29780f,_0x29f97e,_0xb9965a,_0x8dbfab){var _0x39fda8=_0x1d8b53;super(),d(this,_0x39fda8(0x1df),new _0x3cc28c(_0x39fda8(0x173))),d(this,_0x39fda8(0x1b3),this[_0x39fda8(0x1df)][_0x39fda8(0x212)]()),d(this,'_init',!0x1),d(this,_0x39fda8(0x177),null),d(this,_0x39fda8(0x1e0),null),(this['_unitID']=_0x36254e,this[_0x39fda8(0x205)]=_0x29780f,this['_configService']=_0x29f97e,this[_0x39fda8(0x180)]=_0xb9965a,this[_0x39fda8(0x185)]=_0x8dbfab);}get[_0x1d8b53(0x1a4)](){var _0x5da06c=_0x1d8b53;return this['_status$'][_0x5da06c(0x1d8)]();}[_0x1d8b53(0x189)](){var _0xe3b2c9=_0x1d8b53,_0x3b64a4;(_0x3b64a4=this[_0xe3b2c9(0x177)])==null||_0x3b64a4[_0xe3b2c9(0x189)](),this[_0xe3b2c9(0x1df)][_0xe3b2c9(0x1e5)](_0xe3b2c9(0x173)),this[_0xe3b2c9(0x1df)][_0xe3b2c9(0x1da)]();}[_0x1d8b53(0x1e7)](){var _0x14ad78=_0x1d8b53;this[_0x14ad78(0x1f8)]||(this[_0x14ad78(0x1f8)]=!0x0,this['_collabSession'][_0x14ad78(0x1ec)][_0x14ad78(0x193)](_0x1ced03(this[_0x14ad78(0x1d0)]))[_0x14ad78(0x182)](_0x59bf7a=>{var _0x1840d9=_0x14ad78;switch(_0x59bf7a){case _0x5cfa23[_0x1840d9(0x1aa)]:this[_0x1840d9(0x1ae)]();break;case _0x5cfa23[_0x1840d9(0x18e)]:this[_0x1840d9(0x1a5)]();break;}}),this[_0x14ad78(0x205)]['event$'][_0x14ad78(0x193)](_0x1ced03(this[_0x14ad78(0x1d0)]))[_0x14ad78(0x182)](_0x43904e=>{var _0xb170c3=_0x14ad78;const {eventID:_0x58bec8}=_0x43904e;switch(_0x58bec8){case _0x30c7bc[_0xb170c3(0x19a)]:this[_0xb170c3(0x1fd)](_0x43904e);break;case _0x30c7bc[_0xb170c3(0x195)]:this[_0xb170c3(0x1e9)](_0x43904e);break;case _0x30c7bc[_0xb170c3(0x201)]:this[_0xb170c3(0x21a)]();break;case _0x30c7bc[_0xb170c3(0x1d7)]:this[_0xb170c3(0x1fb)](_0x43904e);break;}}));}['tryStartPresenting'](){var _0x1db995=_0x1d8b53;this['_collabSession'][_0x1db995(0x1c6)]({'eventID':_0x30c7bc[_0x1db995(0x16d)],'data':{'unitID':this[_0x1db995(0x17e)],'userID':this[_0x1db995(0x205)]['getMemberID']()}},this[_0x1db995(0x17e)]);}[_0x1d8b53(0x203)](){var _0x5d6f76=_0x1d8b53;this[_0x5d6f76(0x1a4)]===_0x5d6f76(0x1c9)&&(this[_0x5d6f76(0x1df)][_0x5d6f76(0x1e5)]('idle'),this['_collabSession']['send']({'eventID':_0x30c7bc['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x5d6f76(0x17e)]}},this[_0x5d6f76(0x17e)]));}[_0x1d8b53(0x1cb)](){var _0x4106f2=_0x1d8b53;this[_0x4106f2(0x1a4)]===_0x4106f2(0x20b)&&(this[_0x4106f2(0x1df)][_0x4106f2(0x1e5)](_0x4106f2(0x1bc)),this[_0x4106f2(0x1ff)]());}['stopFollowing'](){var _0x1ec1c7=_0x1d8b53;this[_0x1ec1c7(0x1a4)]==='following'&&this[_0x1ec1c7(0x1f6)]();}['_handleNewHost'](_0x4b3227){var _0x11d74b=_0x1d8b53;const {presenter:_0x5b616d}=_0x4b3227[_0x11d74b(0x210)],_0x4eaaad=this[_0x11d74b(0x205)]['getMemberID']();this['_presenter']=_0x5b616d,_0x5b616d===_0x4eaaad?(this['_stopFollowing'](),this[_0x11d74b(0x18d)]()):this['_status']!==_0x11d74b(0x20b)&&(this[_0x11d74b(0x20f)](),this[_0x11d74b(0x1ff)]());}[_0x1d8b53(0x1a2)](){var _0x440bab=_0x1d8b53;const _0x4d8bf5={'eventID':_0x30c7bc[_0x440bab(0x1bb)]};this[_0x440bab(0x205)][_0x440bab(0x1c6)](_0x4d8bf5,this['_unitID']);}[_0x1d8b53(0x21a)](){var _0x52478d=_0x1d8b53;this[_0x52478d(0x1e0)]=null,this[_0x52478d(0x1a4)]!==_0x52478d(0x1c9)&&this[_0x52478d(0x1b1)]();}[_0x1d8b53(0x1fb)](_0x57ed1a){var _0xea3bc6=_0x1d8b53;if(this['_status']==='following'&&this[_0xea3bc6(0x1e0)]===_0x57ed1a[_0xea3bc6(0x210)][_0xea3bc6(0x1cc)]){const _0x4006f0=_0x1495b0(_0x57ed1a['data'])[_0xea3bc6(0x1db)][_0xea3bc6(0x183)]()[_0xea3bc6(0x19c)](_0x4aad10=>_0x4aad10['id']===_0x331837['id']);if(_0x4006f0){const _0x3d832b=_0x4006f0[_0xea3bc6(0x1b5)][_0xea3bc6(0x1f7)],_0xb20378=_0x4006f0[_0xea3bc6(0x1b5)][_0xea3bc6(0x1ba)]['id'];setTimeout(()=>{var _0x1fce3e=_0xea3bc6;this[_0x1fce3e(0x185)][_0x1fce3e(0x1cf)](_0x286b47['id'],{'unitId':_0x3d832b,'subUnitId':_0xb20378},{'fromCollab':!0x0});});}}}[_0x1d8b53(0x18d)](){var _0x53e7da=_0x1d8b53;this['_status$']['next'](_0x53e7da(0x1c9));const _0x4ac352=new Map(),_0x28dcc5=this['_commandDisposable']=new _0x211483();_0x28dcc5['add'](_0x172916(()=>{var _0x143db0=_0x53e7da;_0x4ac352[_0x143db0(0x194)](_0xaff821=>_0xaff821[_0x143db0(0x1da)]()),_0x4ac352[_0x143db0(0x1f5)]();})),_0x28dcc5['add'](this[_0x53e7da(0x185)][_0x53e7da(0x1a1)](_0x1235b7=>{var _0x339098=_0x53e7da,_0x2da055;if(_0x1235b7['type']!==_0x5e8cc6[_0x339098(0x199)]||!this[_0x339098(0x180)]['shouldShareOperation'](_0x1235b7['id']))return;const {id:_0x1b78e2}=_0x1235b7;let _0x511d48;_0x4ac352[_0x339098(0x19b)](_0x1b78e2)?_0x511d48=_0x4ac352[_0x339098(0x20a)](_0x1b78e2):(_0x511d48=new _0x4fab24(),_0x4ac352[_0x339098(0x213)](_0x1b78e2,_0x511d48),_0x511d48[_0x339098(0x193)](_0x32385e((_0x2da055=this[_0x339098(0x192)][_0x339098(0x1eb)](Pe))!=null?_0x2da055:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x339098(0x182)](_0x5cff80=>{var _0x131167=_0x339098;this['_collabSession'][_0x131167(0x1c6)]({'eventID':_0x30c7bc['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x5cff80['id']]:{'id':_0x5cff80['id'],'params':JSON['stringify'](_0x5cff80[_0x131167(0x1b5)])}}}},this['_unitID']);})),_0x511d48[_0x339098(0x1e5)](_0x1235b7);})),this[_0x53e7da(0x180)][_0x53e7da(0x1d1)](this[_0x53e7da(0x17e)])['forEach'](_0x25938e=>this[_0x53e7da(0x205)]['send']({'eventID':_0x30c7bc['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x53e7da(0x17e)],'operations':{[_0x25938e['id']]:{'id':_0x25938e['id'],'params':JSON[_0x53e7da(0x190)](_0x25938e['params'])}}}},this[_0x53e7da(0x17e)]));}[_0x1d8b53(0x20f)](){var _0x5622a0=_0x1d8b53,_0x1c9957;this[_0x5622a0(0x1df)][_0x5622a0(0x1e5)]('idle'),(_0x1c9957=this[_0x5622a0(0x177)])==null||_0x1c9957[_0x5622a0(0x189)](),this[_0x5622a0(0x177)]=null;}[_0x1d8b53(0x1ff)](){var _0x1c7d57=_0x1d8b53,_0x293426;(_0x293426=this['_commandDisposable'])==null||_0x293426['dispose'](),this[_0x1c7d57(0x1df)][_0x1c7d57(0x1e5)](_0x1c7d57(0x1bc));}[_0x1d8b53(0x1b1)](){var _0x29782e=_0x1d8b53,_0x114f3f;this[_0x29782e(0x1df)][_0x29782e(0x1e5)](_0x29782e(0x173)),(_0x114f3f=this[_0x29782e(0x177)])==null||_0x114f3f[_0x29782e(0x189)](),this[_0x29782e(0x177)]=null;}[_0x1d8b53(0x1f6)](){var _0x3f3989=_0x1d8b53,_0xa5d20d;this[_0x3f3989(0x1df)][_0x3f3989(0x1e5)](_0x3f3989(0x20b)),(_0xa5d20d=this['_commandDisposable'])==null||_0xa5d20d['dispose']();}[_0x1d8b53(0x1e9)](_0x29ee44){var _0x14243a=_0x1d8b53;if([_0x14243a(0x1c9),_0x14243a(0x20b),_0x14243a(0x1ad)][_0x14243a(0x1f1)](this[_0x14243a(0x1a4)])||!_0x29ee44[_0x14243a(0x210)][_0x14243a(0x17b)]||_0x29ee44['data'][_0x14243a(0x17b)]===this[_0x14243a(0x205)][_0x14243a(0x216)]())return;this[_0x14243a(0x1a4)]===_0x14243a(0x173)&&this[_0x14243a(0x1ff)]();const _0x12b7d3=_0x29ee44['data'][_0x14243a(0x1d2)];Object['values'](_0x12b7d3)[_0x14243a(0x194)](_0x3e84d9=>{var _0x416310=_0x14243a;this[_0x416310(0x185)][_0x416310(0x1cf)](_0x3e84d9['id'],_0x3e84d9[_0x416310(0x1b5)]?JSON[_0x416310(0x1e3)](_0x3e84d9[_0x416310(0x1b5)]):null,{'fromCollab':!0x0});});}[_0x1d8b53(0x1ae)](){var _0x1243a3=_0x1d8b53,_0x322e14;this[_0x1243a3(0x1df)][_0x1243a3(0x1e5)]('offline'),(_0x322e14=this['_commandDisposable'])==null||_0x322e14['dispose']();}[_0x1d8b53(0x1a5)](){var _0x5e4c7e=_0x1d8b53;this[_0x5e4c7e(0x1df)][_0x5e4c7e(0x1e5)](_0x5e4c7e(0x173)),this[_0x5e4c7e(0x1a2)]();}};C=Z([f(0x2,_0x558741),f(0x3,_0x239a44(L)),f(0x4,_0x584762)],C);function Te(){var _0xe3a83d=_0x1d8b53;const _0x1bc609=_0x14ae59(I),_0x1e5726=_0x14ae59(_0xe4611b),_0x1ba9de=_0xe07f56(()=>_0x1e5726[_0xe3a83d(0x17a)](_0x33fb10[_0xe3a83d(0x221)]),void 0x0,!0x1,[]),[_0x1fba3a,_0x4232ef]=_0x48688c(null),[_0x17c024,_0x19feac]=_0x48688c(h[_0xe3a83d(0x18a)]),_0x28b61e=_0x3ecb29(null);return _0x22643b(()=>(_0x1ba9de&&_0x1bc609['getLiveShareCoordinator'](_0x1ba9de[_0xe3a83d(0x207)]())[_0xe3a83d(0x1ce)](_0x2c8aa5=>{var _0xdc5ecc=_0xe3a83d;_0x4232ef(_0x2c8aa5),_0x28b61e['current']=_0x2c8aa5[_0xdc5ecc(0x1b3)][_0xdc5ecc(0x182)](_0xb71cd0=>{_0x19feac(_0xb71cd0);});}),()=>{var _0x49eb77=_0xe3a83d,_0x5ae364;(_0x5ae364=_0x28b61e[_0x49eb77(0x197)])==null||_0x5ae364[_0x49eb77(0x18c)](),_0x28b61e[_0x49eb77(0x197)]=null;}),[_0x1ba9de,_0x1bc609]),_0x1fba3a?_0x2f0961(_0x46ea1d,{'align':'end','disabled':_0x17c024===h[_0xe3a83d(0x1aa)],'className':_0xe3a83d(0x202),'overlay':_0x2f0961($e,{'status':_0x17c024,'coordinator':_0x1fba3a}),'children':_0x2f0961(_0xe3a83d(0x1b0),{'className':_0x39a291(_0xe3a83d(0x176),{'univer-cursor-not-allowed':_0x17c024===h[_0xe3a83d(0x1aa)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x17c024!==h[_0xe3a83d(0x1aa)]}),'type':'button','children':_0x2f0961(B,{'className':_0xe3a83d(0x1c3)})})}):null;}function $e(_0x5c5ffa){var _0x12f431=_0x1d8b53;const {status:_0x2e8476,coordinator:_0x155618}=_0x5c5ffa;switch(_0x2e8476){case h['IDLE']:return _0x2f0961(Fe,{'coordinator':_0x155618});case h[_0x12f431(0x186)]:return _0x2f0961(He,{'coordinator':_0x155618});case h['NOT_FOLLOWING']:return _0x2f0961(je,{'coordinator':_0x155618});case h[_0x12f431(0x1aa)]:return _0x2f0961(Ve,{});case h[_0x12f431(0x21b)]:return _0x2f0961(Ue,{'coordinator':_0x155618});default:return null;}}function Fe(_0xf4ece9){var _0x3f55bc=_0x1d8b53;const {coordinator:_0x17275a}=_0xf4ece9;return _0x2dbab2(_0x12f368,{'children':[_0x2f0961(_0x3f55bc(0x1b2),{'className':_0x3f55bc(0x1b6),'children':_0x3f55bc(0x200)}),_0x2f0961(_0x226687,{'onClick':()=>_0x17275a['tryStartPresenting'](),'children':_0x3f55bc(0x21e)})]});}function He(_0x25a0b9){var _0x321832=_0x1d8b53;const {coordinator:_0x3d2ca7}=_0x25a0b9;return _0x2dbab2(_0x12f368,{'children':[_0x2f0961(_0x321832(0x1b2),{'className':_0x321832(0x1b6),'children':_0x321832(0x222)}),_0x2f0961(_0x226687,{'onClick':()=>_0x3d2ca7[_0x321832(0x1fa)](),'children':_0x321832(0x1c2)})]});}function je(_0x4844c4){var _0x1f2650=_0x1d8b53;const {coordinator:_0x161fb8}=_0x4844c4;return _0x2dbab2(_0x12f368,{'children':[_0x2f0961(_0x1f2650(0x1b2),{'className':_0x1f2650(0x1b6),'children':_0x1f2650(0x1ab)}),_0x2f0961(_0x226687,{'variant':_0x1f2650(0x1a3),'onClick':()=>_0x161fb8['startFollowing'](),'children':'Start\x20following'})]});}function Ue(_0x2a1062){var _0x3284b0=_0x1d8b53;const {coordinator:_0x394e66}=_0x2a1062;return _0x2dbab2(_0x12f368,{'children':[_0x2f0961(_0x3284b0(0x1b2),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x3284b0(0x1e1)}),_0x2f0961(_0x226687,{'variant':_0x3284b0(0x178),'onClick':()=>_0x394e66[_0x3284b0(0x203)](),'children':'Stop\x20presenting'})]});}function Ve(){return _0x2f0961(_0x12f368,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x1d8b53(0x1e2)],ke=(_0x7123c9,_0x540667,_0x25ddae,_0xe8ad5a)=>{for(var _0x3b45e5=_0xe8ad5a>0x1?void 0x0:_0xe8ad5a?Me(_0x540667,_0x25ddae):_0x540667,_0x184b4a=_0x7123c9['length']-0x1,_0x4df781;_0x184b4a>=0x0;_0x184b4a--)(_0x4df781=_0x7123c9[_0x184b4a])&&(_0x3b45e5=_0x4df781(_0x3b45e5)||_0x3b45e5);return _0x3b45e5;},$=(_0x239d77,_0x1be1f5)=>(_0x42470d,_0x4b0316)=>_0x1be1f5(_0x42470d,_0x4b0316,_0x239d77);let b=class extends _0xea3d2e{constructor(_0x37729d,_0x1e1b1a){var _0x1baec1=_0x1d8b53;super(),this[_0x1baec1(0x1ca)]=_0x37729d,this[_0x1baec1(0x172)]=_0x1e1b1a,this[_0x1baec1(0x181)]();}[_0x1d8b53(0x181)](){var _0x33301f=_0x1d8b53;this[_0x33301f(0x219)](this['_uiPartsService'][_0x33301f(0x187)](_0x1217a7['HEADER_MENU'],()=>_0x5143ac(Te,this[_0x33301f(0x1ca)])));}};b=ke([$(0x0,_0x239a44(_0x192d3b)),$(0x1,_0x241906)],b);var Ge=Object['defineProperty'],We=Object[_0x1d8b53(0x1e2)],Ye=(_0x2707be,_0x5ec934,_0x104535)=>_0x5ec934 in _0x2707be?Ge(_0x2707be,_0x5ec934,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x104535}):_0x2707be[_0x5ec934]=_0x104535,Be=(_0x437d4d,_0x3544ba,_0x1be1cf,_0x202747)=>{var _0x116cb5=_0x1d8b53;for(var _0x39bad7=_0x202747>0x1?void 0x0:_0x202747?We(_0x3544ba,_0x1be1cf):_0x3544ba,_0x597aba=_0x437d4d[_0x116cb5(0x188)]-0x1,_0x211365;_0x597aba>=0x0;_0x597aba--)(_0x211365=_0x437d4d[_0x597aba])&&(_0x39bad7=_0x211365(_0x39bad7)||_0x39bad7);return _0x39bad7;},F=(_0x150923,_0x45834a)=>(_0xbb135f,_0x28d233)=>_0x45834a(_0xbb135f,_0x28d233,_0x150923),J=(_0x302fa7,_0x3c5270,_0xa67b06)=>Ye(_0x302fa7,typeof _0x3c5270!=_0x1d8b53(0x1a7)?_0x3c5270+'':_0x3c5270,_0xa67b06);function _0x3bc7(){var _0x46974d=['idSuffix','button','_beIdle','div','status$','UniverIcon','params','univer-mb-3\x20univer-w-full\x20univer-text-sm','icon','map','url(#$1','sheet','LIVESHARE_FETCH_OPERATIONS','following','live-share-icon','defineProperty','registerInitialStateReporter','apply','add','Stop\x20following','univer-size-4','161795fsSAun','_collabSessionService','send','requireSession','concat','presenting','_injector','startFollowing','memberID','evenodd','then','executeCommand','dispose$','getInitialStates','operations','UNIVER_LIVE_SHARE_PLUGIN','getLiveShareCoordinator','2mdHYkt','mask','NEW_CHANGESETS','getValue','onStarting','complete','mutations','random','prototype','NOT_FOLLOWING','_status$','_presenter','You\x27re\x20presenting\x20the\x20document','getOwnPropertyDescriptor','parse','onRendered','next','displayName','init','642928HNEwYN','_handleOperation','getTypeOfUnitDisposed$','getConfig','sessionStatus$','_reporters','replace','23040747ntBToN','getTypeOfUnitAdded$','includes','path','entries','1em','clear','_stopFollowing','unitId','_init','currentColor','stopFollowing','_handleNewChangeSets','univerjs-icon\x20univerjs-icon-','_handleNewHost','tag','_startFollowing','Present\x20this\x20document','LIVESHARE_TERMINATE','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','stopPresenting','2534781ybidcH','_collabSession','substring','getUnitId','defs','getOwnPropertySymbols','get','not-following','override','3180276UfaCjV','delete','_stopPresenting','data','UNIVER_UNKNOWN','asObservable','set','xlink:href','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','getMemberID','_sharedOperations','attrs','disposeWithMe','_handleTerminate','PRESENTING','6303717rzJBYO','registerSharedOperation','Start','toString','138ufAhsK','UNIVER_SHEET','You\x27re\x20following\x20the\x20presenter','trim','LIVESHARE_REQUEST_HOST','_startLiveShareCoordinator','className','function','extend','_uiPartsService','idle','from','call','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_commandDisposable','default','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','getCurrentTypeOfUnit$','presenter','_univerInstanceService','_entities','_unitID','none','_liveShareService','_mountLiveShare','subscribe','reverse','_config','_commandService','FOLLOWING','registerComponent','length','dispose','IDLE','pluginName','unsubscribe','_startPresenting','ONLINE','LiveShareIcon','stringify','indexOf','_configService','pipe','forEach','LIVESHARE_OPERATION','string','current','assign','OPERATION','LIVESHARE_NEW_HOST','has','find','fill','colorChannel1','http://www.w3.org/2000/svg','setConfig','onCommandExecuted','_fetchOperations','text','_status','_handleOnline','defIds','symbol','children','10330544BTrdHs','OFFLINE','You\x27re\x20not\x20following\x20the\x20presenter','type','offline','_handleOffline'];_0x3bc7=function(){return _0x46974d;};return _0x3bc7();}const Ze=_0x1d8b53(0x1d3);let O=class extends _0x587f09{constructor(_0x4c3fd6=T,_0x162f54,_0x1a5871){var _0x237978=_0x1d8b53;super(),this[_0x237978(0x184)]=_0x4c3fd6,this[_0x237978(0x1ca)]=_0x162f54,this[_0x237978(0x192)]=_0x1a5871;const {..._0x1dfa6c}=_0xa177d7({},T,this['_config']);this[_0x237978(0x192)][_0x237978(0x1a0)](Oe,_0x1dfa6c);}[_0x1d8b53(0x1d9)](){var _0x2870a0=_0x1d8b53;_0x174d4e(this[_0x2870a0(0x1ca)],_0x27a061([[L],[I],[m],[b]],this[_0x2870a0(0x184)][_0x2870a0(0x20c)])),_0x49be97(this[_0x2870a0(0x1ca)],[[m]]);}[_0x1d8b53(0x1e4)](){var _0x1afc44=_0x1d8b53;_0x49be97(this[_0x1afc44(0x1ca)],[[b]]);}};J(O,_0x1d8b53(0x1ac),_0x33fb10[_0x1d8b53(0x211)]),J(O,_0x1d8b53(0x18b),Ze),O=Be([_0x98ddff(_0x4073ea),F(0x1,_0x239a44(_0x192d3b)),F(0x2,_0x558741)],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 _0x3394(_0x1e9046,_0x2c6d51){var _0x153c07=_0x153c();return _0x3394=function(_0x33944c,_0x5229a4){_0x33944c=_0x33944c-0xc9;var _0x46f2a9=_0x153c07[_0x33944c];return _0x46f2a9;},_0x3394(_0x1e9046,_0x2c6d51);}(function(_0x529dec,_0xaac5fc){var _0x2776c6=_0x3394,_0x3bb475=_0x529dec();while(!![]){try{var _0xe39c22=-parseInt(_0x2776c6(0x1b1))/0x1*(parseInt(_0x2776c6(0x1a5))/0x2)+-parseInt(_0x2776c6(0x12d))/0x3+parseInt(_0x2776c6(0xea))/0x4*(parseInt(_0x2776c6(0x173))/0x5)+parseInt(_0x2776c6(0xcf))/0x6+-parseInt(_0x2776c6(0x1b7))/0x7+parseInt(_0x2776c6(0xf6))/0x8*(-parseInt(_0x2776c6(0x1ac))/0x9)+parseInt(_0x2776c6(0xca))/0xa*(parseInt(_0x2776c6(0x1bd))/0xb);if(_0xe39c22===_0xaac5fc)break;else _0x3bb475['push'](_0x3bb475['shift']());}catch(_0x3ed20c){_0x3bb475['push'](_0x3bb475['shift']());}}}(_0x153c,0xd1d90),function(_0x17bed8,_0x232923){var _0x4b4152=_0x3394;typeof exports==_0x4b4152(0x1c2)&&typeof module<'u'?_0x232923(exports,require(_0x4b4152(0xff)),require('@univerjs/core'),require(_0x4b4152(0x126)),require(_0x4b4152(0x124)),require(_0x4b4152(0x196)),require('react/jsx-runtime'),require(_0x4b4152(0x122)),require(_0x4b4152(0x118)),require(_0x4b4152(0x145)),require(_0x4b4152(0xd9)),require(_0x4b4152(0x149))):typeof define==_0x4b4152(0x19a)&&define[_0x4b4152(0xd7)]?define([_0x4b4152(0x10d),_0x4b4152(0xff),'@univerjs/core',_0x4b4152(0x126),'@univerjs/sheets-ui',_0x4b4152(0x196),_0x4b4152(0x165),_0x4b4152(0x122),_0x4b4152(0x118),_0x4b4152(0x145),_0x4b4152(0xd9),_0x4b4152(0x149)],_0x232923):(_0x17bed8=typeof globalThis<'u'?globalThis:_0x17bed8||self,_0x232923(_0x17bed8[_0x4b4152(0x172)]={},_0x17bed8[_0x4b4152(0x168)],_0x17bed8['UniverCore'],_0x17bed8[_0x4b4152(0x14a)],_0x17bed8['UniverSheetsUi'],_0x17bed8[_0x4b4152(0x1af)],_0x17bed8[_0x4b4152(0x13f)],_0x17bed8['UniverDesign'],_0x17bed8[_0x4b4152(0x13f)],_0x17bed8[_0x4b4152(0x1a6)],_0x17bed8['rxjs'],_0x17bed8['rxjs'][_0x4b4152(0x17a)]));}(this,function(_0x9d65a9,_0x86b772,_0x316aa6,_0x1e2386,_0x22fe0a,_0x3dd8a2,_0x4ada9b,_0x47873f,_0x1a47e4,_0x282f28,_0xc3d7ef,_0x546085){'use strict';var _0x5c1d3b=_0x3394;var _0x1703f3=Object['defineProperty'],_0x45186c=(_0x12f8b9,_0xccc00c,_0x164d8f)=>_0xccc00c in _0x12f8b9?_0x1703f3(_0x12f8b9,_0xccc00c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x164d8f}):_0x12f8b9[_0xccc00c]=_0x164d8f,_0x114bd5=(_0x3e1d63,_0x2aed11,_0x1e7b31)=>_0x45186c(_0x3e1d63,typeof _0x2aed11!=_0x5c1d3b(0x1b5)?_0x2aed11+'':_0x2aed11,_0x1e7b31);const _0x4de99d=_0x5c1d3b(0x130),_0x4bd88c={};class _0x5baadc extends _0x316aa6[_0x5c1d3b(0xe2)]{constructor(){var _0x448aed=_0x5c1d3b;super(...arguments),_0x114bd5(this,_0x448aed(0x129),new Set()),_0x114bd5(this,_0x448aed(0x137),new Set());}[_0x5c1d3b(0x141)](_0x195f53){var _0x49b8bb=_0x5c1d3b;return this[_0x49b8bb(0x129)][_0x49b8bb(0x17c)](_0x195f53),_0x316aa6[_0x49b8bb(0x179)](()=>this[_0x49b8bb(0x129)][_0x49b8bb(0x1bf)](_0x195f53));}[_0x5c1d3b(0xf7)](_0x47d323){var _0x589e9c=_0x5c1d3b;return this[_0x589e9c(0x137)][_0x589e9c(0x17c)](_0x47d323),_0x316aa6['toDisposable'](()=>this[_0x589e9c(0x137)][_0x589e9c(0x1bf)](_0x47d323));}['shouldShareOperation'](_0x29cab0){var _0x11f00c=_0x5c1d3b;return this[_0x11f00c(0x129)][_0x11f00c(0x156)](_0x29cab0);}[_0x5c1d3b(0xe0)](_0x5307d0){var _0x26c055=_0x5c1d3b;return Array[_0x26c055(0xdd)](this['_reporters'])['map'](_0x95d92f=>_0x95d92f(_0x5307d0));}}var _0x23e466=Object[_0x5c1d3b(0x146)],_0x3a41a9=(_0x5e1eba,_0x279218,_0xc758dd,_0x5b08ab)=>{var _0x20a0e8=_0x5c1d3b;for(var _0x55d357=_0x5b08ab>0x1?void 0x0:_0x5b08ab?_0x23e466(_0x279218,_0xc758dd):_0x279218,_0x4f9cf0=_0x5e1eba[_0x20a0e8(0x1a4)]-0x1,_0x528af3;_0x4f9cf0>=0x0;_0x4f9cf0--)(_0x528af3=_0x5e1eba[_0x4f9cf0])&&(_0x55d357=_0x528af3(_0x55d357)||_0x55d357);return _0x55d357;},_0x5d657f=(_0x513181,_0x59865d)=>(_0x2b456c,_0x3a31a0)=>_0x59865d(_0x2b456c,_0x3a31a0,_0x513181);let _0x57d48f=class extends _0x316aa6['Disposable']{constructor(_0x477f7e){var _0x1c181e=_0x5c1d3b;super(),this[_0x1c181e(0x15e)]=_0x477f7e,this[_0x1c181e(0x128)]();}[_0x5c1d3b(0x128)](){var _0x35c376=_0x5c1d3b;[_0x22fe0a[_0x35c376(0x12c)]['id'],_0x22fe0a[_0x35c376(0xce)]['id'],_0x1e2386[_0x35c376(0xef)]['id']][_0x35c376(0x1bb)](_0x39c3a9=>{var _0x452eff=_0x35c376;this[_0x452eff(0x110)](this[_0x452eff(0x15e)]['registerSharedOperation'](_0x39c3a9));});}};_0x57d48f=_0x3a41a9([_0x5d657f(0x0,_0x316aa6[_0x5c1d3b(0x187)](_0x5baadc))],_0x57d48f);var _0x127126=function(){var _0xab64cf=_0x5c1d3b;return _0x127126=Object['assign']||function(_0x493dab){var _0x2a670f=_0x3394;for(var _0x23917c,_0x5843aa=0x1,_0x192a88=arguments[_0x2a670f(0x1a4)];_0x5843aa<_0x192a88;_0x5843aa++){_0x23917c=arguments[_0x5843aa];for(var _0x4a1caf in _0x23917c)Object[_0x2a670f(0x111)][_0x2a670f(0x158)][_0x2a670f(0x133)](_0x23917c,_0x4a1caf)&&(_0x493dab[_0x4a1caf]=_0x23917c[_0x4a1caf]);}return _0x493dab;},_0x127126[_0xab64cf(0xf0)](this,arguments);},_0x48e15f=function(_0x1d0a03,_0x35be50){var _0x37082c=_0x5c1d3b,_0x534f61={};for(var _0x24fbc0 in _0x1d0a03)Object[_0x37082c(0x111)][_0x37082c(0x158)][_0x37082c(0x133)](_0x1d0a03,_0x24fbc0)&&_0x35be50[_0x37082c(0x10f)](_0x24fbc0)<0x0&&(_0x534f61[_0x24fbc0]=_0x1d0a03[_0x24fbc0]);if(_0x1d0a03!=null&&typeof Object[_0x37082c(0x1b9)]==_0x37082c(0x19a)){for(var _0x29f182=0x0,_0x24fbc0=Object[_0x37082c(0x1b9)](_0x1d0a03);_0x29f182<_0x24fbc0[_0x37082c(0x1a4)];_0x29f182++)_0x35be50['indexOf'](_0x24fbc0[_0x29f182])<0x0&&Object[_0x37082c(0x111)][_0x37082c(0xe3)]['call'](_0x1d0a03,_0x24fbc0[_0x29f182])&&(_0x534f61[_0x24fbc0[_0x29f182]]=_0x1d0a03[_0x24fbc0[_0x29f182]]);}return _0x534f61;},_0x46ab69=_0x1a47e4['forwardRef'](function(_0x59c714,_0x459695){var _0x2fd4ea=_0x5c1d3b,_0x1a5ea0=_0x59c714[_0x2fd4ea(0x178)],_0x13dc18=_0x59c714['id'],_0x1cbfa7=_0x59c714[_0x2fd4ea(0x134)],_0x1525d0=_0x59c714[_0x2fd4ea(0x188)],_0x523fec=_0x48e15f(_0x59c714,[_0x2fd4ea(0x178),'id',_0x2fd4ea(0x134),_0x2fd4ea(0x188)]),_0x489684=_0x2fd4ea(0x197)[_0x2fd4ea(0x153)](_0x13dc18,'\x20')[_0x2fd4ea(0x153)](_0x1cbfa7||'')[_0x2fd4ea(0x116)](),_0x46ed0e=_0x1a47e4[_0x2fd4ea(0x15f)]('_'[_0x2fd4ea(0x153)](_0x2a2ba0()));return _0x4940cd(_0x1a5ea0,''[_0x2fd4ea(0x153)](_0x13dc18),{'defIds':_0x1a5ea0[_0x2fd4ea(0x193)],'idSuffix':_0x46ed0e[_0x2fd4ea(0xf1)]},_0x127126({'ref':_0x459695,'className':_0x489684},_0x523fec),_0x1525d0);});function _0x4940cd(_0x3e8a66,_0x506e48,_0xf68342,_0x146673,_0x883ea8){var _0x3a9c79=_0x5c1d3b;return _0x1a47e4[_0x3a9c79(0x162)](_0x3e8a66[_0x3a9c79(0x199)],_0x127126(_0x127126({'key':_0x506e48},_0x553663(_0x3e8a66,_0xf68342,_0x883ea8)),_0x146673),(_0x2acc33(_0x3e8a66,_0xf68342)['children']||[])['map'](function(_0x2f88a5,_0x47ea11){var _0x1b598a=_0x3a9c79;return _0x4940cd(_0x2f88a5,''[_0x1b598a(0x153)](_0x506e48,'-')['concat'](_0x3e8a66[_0x1b598a(0x199)],'-')[_0x1b598a(0x153)](_0x47ea11),_0xf68342,void 0x0,_0x883ea8);}));}function _0x553663(_0x51e834,_0x4b2038,_0x42fbb3){var _0x17426a=_0x5c1d3b,_0x113d8c=_0x127126({},_0x51e834[_0x17426a(0x1a1)]);_0x42fbb3!=null&&_0x42fbb3[_0x17426a(0x12e)]&&_0x113d8c[_0x17426a(0xcb)]==='colorChannel1'&&(_0x113d8c[_0x17426a(0xcb)]=_0x42fbb3['colorChannel1']),_0x51e834[_0x17426a(0x199)]===_0x17426a(0x18e)&&_0x113d8c['id']&&(_0x113d8c['id']=_0x113d8c['id']+_0x4b2038[_0x17426a(0x177)]),Object[_0x17426a(0x1a9)](_0x113d8c)[_0x17426a(0x1bb)](function(_0x22b455){var _0x3ef4da=_0x17426a,_0x3fd6bd=_0x22b455[0x0],_0x4d34f5=_0x22b455[0x1];_0x3fd6bd===_0x3ef4da(0x18e)&&typeof _0x4d34f5==_0x3ef4da(0x131)&&(_0x113d8c[_0x3fd6bd]=_0x4d34f5[_0x3ef4da(0xec)](/url\(#(.*)\)/,_0x3ef4da(0xd4)[_0x3ef4da(0x153)](_0x4b2038[_0x3ef4da(0x177)],')')));});var _0x7a34bf=_0x4b2038[_0x17426a(0x193)];return!_0x7a34bf||_0x7a34bf[_0x17426a(0x1a4)]===0x0||(_0x51e834[_0x17426a(0x199)]===_0x17426a(0x112)&&_0x113d8c[_0x17426a(0x147)]&&(_0x113d8c[_0x17426a(0x147)]=_0x113d8c[_0x17426a(0x147)]+_0x4b2038[_0x17426a(0x177)]),Object['entries'](_0x113d8c)[_0x17426a(0x1bb)](function(_0x5a6595){var _0x25883e=_0x17426a,_0xfd0f40=_0x5a6595[0x0],_0x5803e8=_0x5a6595[0x1];typeof _0x5803e8==_0x25883e(0x131)&&(_0x113d8c[_0xfd0f40]=_0x5803e8[_0x25883e(0xec)](/url\(#(.*)\)/,_0x25883e(0xd4)[_0x25883e(0x153)](_0x4b2038['idSuffix'],')')));})),_0x113d8c;}function _0x2acc33(_0x45cdb7,_0x3ba615){var _0x2d2363=_0x5c1d3b,_0x6d2228,_0x789492=_0x3ba615[_0x2d2363(0x193)];return!_0x789492||_0x789492[_0x2d2363(0x1a4)]===0x0?_0x45cdb7:_0x45cdb7[_0x2d2363(0x199)]===_0x2d2363(0xfe)&&(!((_0x6d2228=_0x45cdb7[_0x2d2363(0x11b)])===null||_0x6d2228===void 0x0)&&_0x6d2228[_0x2d2363(0x1a4)])?_0x127126(_0x127126({},_0x45cdb7),{'children':_0x45cdb7['children'][_0x2d2363(0x182)](function(_0x5dd6d1){var _0x22b15f=_0x2d2363;return typeof _0x5dd6d1['attrs']['id']==_0x22b15f(0x131)&&_0x789492&&_0x789492[_0x22b15f(0x16d)](_0x5dd6d1[_0x22b15f(0x1a1)]['id'])?_0x127126(_0x127126({},_0x5dd6d1),{'attrs':_0x127126(_0x127126({},_0x5dd6d1[_0x22b15f(0x1a1)]),{'id':_0x5dd6d1[_0x22b15f(0x1a1)]['id']+_0x3ba615['idSuffix']})}):_0x5dd6d1;})}):_0x45cdb7;}function _0x2a2ba0(){var _0x6012e9=_0x5c1d3b;return Math[_0x6012e9(0x1be)]()[_0x6012e9(0x14d)](0x24)['substring'](0x2,0x8);}_0x46ab69[_0x5c1d3b(0x11a)]=_0x5c1d3b(0x16c);var _0x15adc1={'tag':_0x5c1d3b(0x100),'attrs':{'xmlns':_0x5c1d3b(0x16f),'fill':_0x5c1d3b(0x18c),'viewBox':_0x5c1d3b(0x109),'width':_0x5c1d3b(0x10c),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x5c1d3b(0x148),'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':_0x5c1d3b(0xe9),'attrs':{'fill':_0x5c1d3b(0x148),'d':_0x5c1d3b(0x144),'fillRule':_0x5c1d3b(0x104),'clipRule':_0x5c1d3b(0x104)}}]},_0x4c6420=_0x1a47e4[_0x5c1d3b(0x16e)](function(_0x120e61,_0x47d8b1){var _0x415c33=_0x5c1d3b;return _0x1a47e4['createElement'](_0x46ab69,Object[_0x415c33(0x119)]({},_0x120e61,{'id':_0x415c33(0xd8),'ref':_0x47d8b1,'icon':_0x15adc1}));});_0x4c6420[_0x5c1d3b(0x11a)]=_0x5c1d3b(0xdb);var _0x462ccf=Object[_0x5c1d3b(0x146)],_0x2d5a8a=(_0x39f160,_0x2d8e3b,_0x234d79,_0x28330d)=>{var _0x1d8531=_0x5c1d3b;for(var _0x316688=_0x28330d>0x1?void 0x0:_0x28330d?_0x462ccf(_0x2d8e3b,_0x234d79):_0x2d8e3b,_0x1ca03c=_0x39f160[_0x1d8531(0x1a4)]-0x1,_0x1bfe5b;_0x1ca03c>=0x0;_0x1ca03c--)(_0x1bfe5b=_0x39f160[_0x1ca03c])&&(_0x316688=_0x1bfe5b(_0x316688)||_0x316688);return _0x316688;},_0x7f39df=(_0x6d7da4,_0x506c19)=>(_0xdce870,_0x944f32)=>_0x506c19(_0xdce870,_0x944f32,_0x6d7da4);_0x9d65a9[_0x5c1d3b(0x12b)]=class extends _0x316aa6[_0x5c1d3b(0x171)]{constructor(_0x58d228,_0x31152c,_0xd3acac){var _0x461fd0=_0x5c1d3b;super(),_0x114bd5(this,_0x461fd0(0x19e),new Map()),(this[_0x461fd0(0x198)]=_0x58d228,this['_injector']=_0x31152c,this[_0x461fd0(0x159)]=_0xd3acac,this['_init']());}async[_0x5c1d3b(0xf5)](_0x5d3d0f){var _0x3b9059=_0x5c1d3b;return this[_0x3b9059(0x19e)]['has'](_0x5d3d0f)||await this[_0x3b9059(0x155)](_0x5d3d0f),this[_0x3b9059(0x19e)][_0x3b9059(0x108)](_0x5d3d0f);}[_0x5c1d3b(0x128)](){var _0x1126a1=_0x5c1d3b;this[_0x1126a1(0x198)]['getTypeOfUnitAdded$'](_0x316aa6['UniverInstanceType']['UNIVER_SHEET'])[_0x1126a1(0x192)](_0x546085[_0x1126a1(0x14e)](this['dispose$']))[_0x1126a1(0xd1)](async _0x4fd9c9=>{var _0x562ad2=_0x1126a1;const _0x5c5f19=_0x4fd9c9['getUnitId']();this['_entities'][_0x562ad2(0x156)](_0x5c5f19)||this[_0x562ad2(0x155)](_0x5c5f19);}),this[_0x1126a1(0x198)]['getTypeOfUnitDisposed$'](_0x316aa6[_0x1126a1(0x151)][_0x1126a1(0x17f)])[_0x1126a1(0x192)](_0x546085[_0x1126a1(0x14e)](this['dispose$']))[_0x1126a1(0xd1)](_0x175969=>{var _0x1575ad=_0x1126a1;const _0x277a0f=_0x175969[_0x1575ad(0x1a7)](),_0x588093=this[_0x1575ad(0x19e)]['get'](_0x277a0f);_0x588093==null||_0x588093['dispose']();});}async[_0x5c1d3b(0x155)](_0x3f866a){var _0x11b43f=_0x5c1d3b;const _0x445ad3=await this[_0x11b43f(0x159)][_0x11b43f(0x170)](_0x3f866a),_0x2b2937=this[_0x11b43f(0x13e)][_0x11b43f(0x180)](_0x9d65a9[_0x11b43f(0x169)],_0x3f866a,_0x445ad3);return _0x2b2937[_0x11b43f(0x138)](),this[_0x11b43f(0x19e)][_0x11b43f(0x14b)](_0x3f866a,_0x2b2937),_0x2b2937;}},_0x9d65a9['LiveShareController']=_0x2d5a8a([_0x7f39df(0x0,_0x316aa6['IUniverInstanceService']),_0x7f39df(0x1,_0x316aa6[_0x5c1d3b(0x187)](_0x316aa6[_0x5c1d3b(0xcd)])),_0x7f39df(0x2,_0x316aa6[_0x5c1d3b(0x187)](_0x86b772['CollaborationSessionService']))],_0x9d65a9[_0x5c1d3b(0x12b)]);var _0x38e00d=(_0x365640=>(_0x365640[_0x5c1d3b(0x113)]=_0x5c1d3b(0x120),_0x365640[_0x5c1d3b(0x17b)]=_0x5c1d3b(0xfc),_0x365640[_0x5c1d3b(0x1c0)]=_0x5c1d3b(0x15c),_0x365640[_0x5c1d3b(0x15b)]='not-following',_0x365640[_0x5c1d3b(0x1b8)]='presenting',_0x365640))(_0x38e00d||{});const _0x4ae4f7=_0x5c1d3b(0x19c),_0x55dfbc=0xc8;_0x9d65a9[_0x5c1d3b(0x169)]=class extends _0x316aa6[_0x5c1d3b(0x171)]{constructor(_0x389dcd,_0x2ff69b,_0x5abef3,_0x918d3,_0x4bc630){var _0x587da0=_0x5c1d3b;super(),_0x114bd5(this,_0x587da0(0x136),new _0xc3d7ef['BehaviorSubject'](_0x587da0(0xfc))),_0x114bd5(this,_0x587da0(0x176),this[_0x587da0(0x136)]['asObservable']()),_0x114bd5(this,_0x587da0(0x128),!0x1),_0x114bd5(this,'_commandDisposable',null),_0x114bd5(this,_0x587da0(0x1b0),null),(this[_0x587da0(0x121)]=_0x389dcd,this[_0x587da0(0x1a3)]=_0x2ff69b,this['_configService']=_0x5abef3,this[_0x587da0(0x15e)]=_0x918d3,this[_0x587da0(0xfa)]=_0x4bc630);}get[_0x5c1d3b(0x186)](){var _0xefce6f=_0x5c1d3b;return this[_0xefce6f(0x136)][_0xefce6f(0xfd)]();}[_0x5c1d3b(0x125)](){var _0x2cb2cb=_0x5c1d3b,_0x29f1d5;(_0x29f1d5=this[_0x2cb2cb(0x191)])==null||_0x29f1d5[_0x2cb2cb(0x125)](),this[_0x2cb2cb(0x136)][_0x2cb2cb(0x184)]('idle'),this['_status$'][_0x2cb2cb(0x106)]();}['init'](){var _0x4271b6=_0x5c1d3b;this[_0x4271b6(0x128)]||(this[_0x4271b6(0x128)]=!0x0,this[_0x4271b6(0x1a3)][_0x4271b6(0xd5)][_0x4271b6(0x192)](_0x546085[_0x4271b6(0x14e)](this[_0x4271b6(0x190)]))[_0x4271b6(0xd1)](_0xfdaec8=>{var _0xefdb64=_0x4271b6;switch(_0xfdaec8){case _0x86b772[_0xefdb64(0x13a)][_0xefdb64(0x113)]:this[_0xefdb64(0x15a)]();break;case _0x86b772[_0xefdb64(0x13a)]['ONLINE']:this[_0xefdb64(0xfb)]();break;}}),this['_collabSession'][_0x4271b6(0x175)][_0x4271b6(0x192)](_0x546085[_0x4271b6(0x14e)](this[_0x4271b6(0x190)]))[_0x4271b6(0xd1)](_0x4eb542=>{var _0x538281=_0x4271b6;const {eventID:_0x6027e9}=_0x4eb542;switch(_0x6027e9){case _0x282f28['CollaborationEvent'][_0x538281(0x1aa)]:this[_0x538281(0x19b)](_0x4eb542);break;case _0x282f28[_0x538281(0x11e)][_0x538281(0xd2)]:this[_0x538281(0x115)](_0x4eb542);break;case _0x282f28[_0x538281(0x11e)][_0x538281(0x13d)]:this[_0x538281(0x161)]();break;case _0x282f28['CollaborationEvent'][_0x538281(0x135)]:this[_0x538281(0x195)](_0x4eb542);break;}}));}['tryStartPresenting'](){var _0x23593e=_0x5c1d3b;this[_0x23593e(0x1a3)][_0x23593e(0xe8)]({'eventID':_0x282f28[_0x23593e(0x11e)][_0x23593e(0x1ab)],'data':{'unitID':this[_0x23593e(0x121)],'userID':this[_0x23593e(0x1a3)][_0x23593e(0x1ae)]()}},this[_0x23593e(0x121)]);}[_0x5c1d3b(0x18d)](){var _0x3be14d=_0x5c1d3b;this[_0x3be14d(0x186)]===_0x3be14d(0x1b3)&&(this['_status$'][_0x3be14d(0x184)]('idle'),this[_0x3be14d(0x1a3)][_0x3be14d(0xe8)]({'eventID':_0x282f28[_0x3be14d(0x11e)][_0x3be14d(0x13d)],'data':{'unitID':this[_0x3be14d(0x121)]}},this[_0x3be14d(0x121)]));}['startFollowing'](){var _0x34bd9a=_0x5c1d3b;this[_0x34bd9a(0x186)]===_0x34bd9a(0x1b6)&&(this[_0x34bd9a(0x136)][_0x34bd9a(0x184)](_0x34bd9a(0x15c)),this['_startFollowing']());}[_0x5c1d3b(0x1ba)](){var _0x547995=_0x5c1d3b;this[_0x547995(0x186)]===_0x547995(0x15c)&&this[_0x547995(0x154)]();}[_0x5c1d3b(0x19b)](_0x5e0e64){var _0xda48cc=_0x5c1d3b;const {presenter:_0x591a61}=_0x5e0e64[_0xda48cc(0x142)],_0x1de12c=this[_0xda48cc(0x1a3)][_0xda48cc(0x1ae)]();this[_0xda48cc(0x1b0)]=_0x591a61,_0x591a61===_0x1de12c?(this[_0xda48cc(0x154)](),this[_0xda48cc(0x152)]()):this[_0xda48cc(0x186)]!==_0xda48cc(0x1b6)&&(this[_0xda48cc(0x1ad)](),this[_0xda48cc(0x163)]());}['_fetchOperations'](){var _0x4abcb0=_0x5c1d3b;const _0x4d179={'eventID':_0x282f28[_0x4abcb0(0x11e)][_0x4abcb0(0x183)]};this[_0x4abcb0(0x1a3)][_0x4abcb0(0xe8)](_0x4d179,this['_unitID']);}[_0x5c1d3b(0x161)](){var _0x480a68=_0x5c1d3b;this[_0x480a68(0x1b0)]=null,this[_0x480a68(0x186)]!==_0x480a68(0x1b3)&&this[_0x480a68(0x19d)]();}['_handleNewChangeSets'](_0x4eda82){var _0x2270b1=_0x5c1d3b;if(this['_status']===_0x2270b1(0x15c)&&this[_0x2270b1(0x1b0)]===_0x4eda82[_0x2270b1(0x142)][_0x2270b1(0x10b)]){const _0x48a574=_0x282f28[_0x2270b1(0xd0)](_0x4eda82['data'])[_0x2270b1(0x123)][_0x2270b1(0x17e)]()[_0x2270b1(0xd3)](_0x7d3a60=>_0x7d3a60['id']===_0x1e2386[_0x2270b1(0x11d)]['id']);if(_0x48a574){const _0x56197b=_0x48a574[_0x2270b1(0x10a)][_0x2270b1(0x132)],_0x2acbd0=_0x48a574[_0x2270b1(0x10a)][_0x2270b1(0x157)]['id'];setTimeout(()=>{var _0x5b514b=_0x2270b1;this['_commandService'][_0x5b514b(0x150)](_0x1e2386[_0x5b514b(0xef)]['id'],{'unitId':_0x56197b,'subUnitId':_0x2acbd0},{'fromCollab':!0x0});});}}}[_0x5c1d3b(0x152)](){var _0x32c24a=_0x5c1d3b;this[_0x32c24a(0x136)][_0x32c24a(0x184)](_0x32c24a(0x1b3));const _0xd05577=new Map(),_0x1c5586=this['_commandDisposable']=new _0x316aa6[(_0x32c24a(0xdc))]();_0x1c5586[_0x32c24a(0x17c)](_0x316aa6[_0x32c24a(0x179)](()=>{var _0x515376=_0x32c24a;_0xd05577[_0x515376(0x1bb)](_0x19098f=>_0x19098f[_0x515376(0x106)]()),_0xd05577['clear']();})),_0x1c5586[_0x32c24a(0x17c)](this[_0x32c24a(0xfa)][_0x32c24a(0x14c)](_0x523049=>{var _0x59aa1f=_0x32c24a,_0x59b961;if(_0x523049[_0x59aa1f(0xeb)]!==_0x316aa6[_0x59aa1f(0xe4)][_0x59aa1f(0x18f)]||!this['_liveShareService']['shouldShareOperation'](_0x523049['id']))return;const {id:_0x699924}=_0x523049;let _0x558f62;_0xd05577['has'](_0x699924)?_0x558f62=_0xd05577[_0x59aa1f(0x108)](_0x699924):(_0x558f62=new _0xc3d7ef['Subject'](),_0xd05577[_0x59aa1f(0x14b)](_0x699924,_0x558f62),_0x558f62[_0x59aa1f(0x192)](_0x546085['throttleTime']((_0x59b961=this[_0x59aa1f(0x15d)][_0x59aa1f(0x1a0)](_0x4ae4f7))!=null?_0x59b961:_0x55dfbc,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x59aa1f(0xd1)](_0x98ff3e=>{var _0x530374=_0x59aa1f;this[_0x530374(0x1a3)][_0x530374(0xe8)]({'eventID':_0x282f28[_0x530374(0x11e)][_0x530374(0xd2)],'data':{'unitID':this[_0x530374(0x121)],'operations':{[_0x98ff3e['id']]:{'id':_0x98ff3e['id'],'params':JSON[_0x530374(0x139)](_0x98ff3e[_0x530374(0x10a)])}}}},this[_0x530374(0x121)]);})),_0x558f62[_0x59aa1f(0x184)](_0x523049);})),this[_0x32c24a(0x15e)]['getInitialStates'](this[_0x32c24a(0x121)])['forEach'](_0x369e4b=>this['_collabSession'][_0x32c24a(0xe8)]({'eventID':_0x282f28['CollaborationEvent'][_0x32c24a(0xd2)],'data':{'unitID':this['_unitID'],'operations':{[_0x369e4b['id']]:{'id':_0x369e4b['id'],'params':JSON[_0x32c24a(0x139)](_0x369e4b[_0x32c24a(0x10a)])}}}},this['_unitID']));}[_0x5c1d3b(0x1ad)](){var _0x10bdf8=_0x5c1d3b,_0x4b1df0;this[_0x10bdf8(0x136)][_0x10bdf8(0x184)]('idle'),(_0x4b1df0=this['_commandDisposable'])==null||_0x4b1df0[_0x10bdf8(0x125)](),this[_0x10bdf8(0x191)]=null;}[_0x5c1d3b(0x163)](){var _0x412d19=_0x5c1d3b,_0x3dcc11;(_0x3dcc11=this[_0x412d19(0x191)])==null||_0x3dcc11[_0x412d19(0x125)](),this[_0x412d19(0x136)]['next'](_0x412d19(0x15c));}['_beIdle'](){var _0xd4d42b=_0x5c1d3b,_0x13f36;this['_status$'][_0xd4d42b(0x184)]('idle'),(_0x13f36=this[_0xd4d42b(0x191)])==null||_0x13f36[_0xd4d42b(0x125)](),this[_0xd4d42b(0x191)]=null;}['_stopFollowing'](){var _0x52930b=_0x5c1d3b,_0x29efc9;this[_0x52930b(0x136)][_0x52930b(0x184)](_0x52930b(0x1b6)),(_0x29efc9=this['_commandDisposable'])==null||_0x29efc9[_0x52930b(0x125)]();}[_0x5c1d3b(0x115)](_0x5c39ef){var _0x23f844=_0x5c1d3b;if([_0x23f844(0x1b3),_0x23f844(0x1b6),_0x23f844(0x120)][_0x23f844(0x16d)](this[_0x23f844(0x186)])||!_0x5c39ef['data'][_0x23f844(0x105)]||_0x5c39ef[_0x23f844(0x142)][_0x23f844(0x105)]===this[_0x23f844(0x1a3)][_0x23f844(0x1ae)]())return;this['_status']===_0x23f844(0xfc)&&this[_0x23f844(0x163)]();const _0x582305=_0x5c39ef[_0x23f844(0x142)][_0x23f844(0xee)];Object[_0x23f844(0x164)](_0x582305)['forEach'](_0x20db9c=>{var _0x50163a=_0x23f844;this[_0x50163a(0xfa)][_0x50163a(0x150)](_0x20db9c['id'],_0x20db9c[_0x50163a(0x10a)]?JSON[_0x50163a(0x14f)](_0x20db9c[_0x50163a(0x10a)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x2cab58=_0x5c1d3b,_0x2e57ca;this[_0x2cab58(0x136)][_0x2cab58(0x184)](_0x2cab58(0x120)),(_0x2e57ca=this['_commandDisposable'])==null||_0x2e57ca[_0x2cab58(0x125)]();}[_0x5c1d3b(0xfb)](){var _0x5a3298=_0x5c1d3b;this[_0x5a3298(0x136)][_0x5a3298(0x184)](_0x5a3298(0xfc)),this[_0x5a3298(0x140)]();}},_0x9d65a9['LiveShareCoordinator']=_0x2d5a8a([_0x7f39df(0x2,_0x316aa6[_0x5c1d3b(0x12f)]),_0x7f39df(0x3,_0x316aa6[_0x5c1d3b(0x187)](_0x5baadc)),_0x7f39df(0x4,_0x316aa6['ICommandService'])],_0x9d65a9[_0x5c1d3b(0x169)]);function _0x4400d0(){var _0x235692=_0x5c1d3b;const _0x2ff5de=_0x3dd8a2['useDependency'](_0x9d65a9[_0x235692(0x12b)]),_0x284a88=_0x3dd8a2[_0x235692(0x1b4)](_0x316aa6[_0x235692(0x160)]),_0xed7c08=_0x3dd8a2['useObservable'](()=>_0x284a88[_0x235692(0x127)](_0x316aa6['UniverInstanceType'][_0x235692(0x17f)]),void 0x0,!0x1,[]),[_0x431cf8,_0x236d3a]=_0x1a47e4[_0x235692(0xf8)](null),[_0x403828,_0x27c204]=_0x1a47e4[_0x235692(0xf8)](_0x38e00d[_0x235692(0x17b)]),_0x55c451=_0x1a47e4[_0x235692(0x15f)](null);return _0x1a47e4[_0x235692(0xe1)](()=>(_0xed7c08&&_0x2ff5de[_0x235692(0xf5)](_0xed7c08[_0x235692(0x1a7)]())[_0x235692(0x13b)](_0x2570e6=>{var _0x5536c8=_0x235692;_0x236d3a(_0x2570e6),_0x55c451['current']=_0x2570e6[_0x5536c8(0x176)][_0x5536c8(0xd1)](_0x117d86=>{_0x27c204(_0x117d86);});}),()=>{var _0x285cfd=_0x235692,_0x4b63e2;(_0x4b63e2=_0x55c451[_0x285cfd(0xf1)])==null||_0x4b63e2[_0x285cfd(0x12a)](),_0x55c451['current']=null;}),[_0xed7c08,_0x2ff5de]),_0x431cf8?_0x4ada9b[_0x235692(0xdf)](_0x47873f[_0x235692(0xf4)],{'align':_0x235692(0x103),'disabled':_0x403828===_0x38e00d[_0x235692(0x113)],'className':_0x235692(0x181),'overlay':_0x4ada9b[_0x235692(0xdf)](_0x40051e,{'status':_0x403828,'coordinator':_0x431cf8}),'children':_0x4ada9b[_0x235692(0xdf)](_0x235692(0x189),{'className':_0x47873f[_0x235692(0x11c)](_0x235692(0xf3),{'univer-cursor-not-allowed':_0x403828===_0x38e00d[_0x235692(0x113)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x403828!==_0x38e00d[_0x235692(0x113)]}),'type':_0x235692(0x189),'children':_0x4ada9b['jsx'](_0x4c6420,{'className':_0x235692(0x11f)})})}):null;}function _0x40051e(_0x4ebbd4){var _0x22b721=_0x5c1d3b;const {status:_0x184de8,coordinator:_0x37a48a}=_0x4ebbd4;switch(_0x184de8){case _0x38e00d['IDLE']:return _0x4ada9b[_0x22b721(0xdf)](_0x3f302c,{'coordinator':_0x37a48a});case _0x38e00d[_0x22b721(0x1c0)]:return _0x4ada9b[_0x22b721(0xdf)](_0x3bfef9,{'coordinator':_0x37a48a});case _0x38e00d[_0x22b721(0x15b)]:return _0x4ada9b[_0x22b721(0xdf)](_0x264b1b,{'coordinator':_0x37a48a});case _0x38e00d[_0x22b721(0x113)]:return _0x4ada9b[_0x22b721(0xdf)](_0x40c5ea,{});case _0x38e00d['PRESENTING']:return _0x4ada9b[_0x22b721(0xdf)](_0x1efcb9,{'coordinator':_0x37a48a});default:return null;}}function _0x3f302c(_0x44b591){var _0x13ede0=_0x5c1d3b;const {coordinator:_0x411bb6}=_0x44b591;return _0x4ada9b[_0x13ede0(0x19f)](_0x4ada9b['Fragment'],{'children':[_0x4ada9b[_0x13ede0(0xdf)](_0x13ede0(0x101),{'className':_0x13ede0(0x17d),'children':'Present\x20this\x20document'}),_0x4ada9b['jsx'](_0x47873f[_0x13ede0(0x166)],{'onClick':()=>_0x411bb6['tryStartPresenting'](),'children':_0x13ede0(0x174)})]});}function _0x3bfef9(_0x28c9cf){var _0x10f961=_0x5c1d3b;const {coordinator:_0x4fc1cd}=_0x28c9cf;return _0x4ada9b['jsxs'](_0x4ada9b[_0x10f961(0xde)],{'children':[_0x4ada9b[_0x10f961(0xdf)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x10f961(0x16a)}),_0x4ada9b[_0x10f961(0xdf)](_0x47873f['Button'],{'onClick':()=>_0x4fc1cd[_0x10f961(0x1ba)](),'children':_0x10f961(0x13c)})]});}function _0x264b1b(_0x503b86){var _0x17b31f=_0x5c1d3b;const {coordinator:_0x31a9ed}=_0x503b86;return _0x4ada9b['jsxs'](_0x4ada9b[_0x17b31f(0xde)],{'children':[_0x4ada9b[_0x17b31f(0xdf)]('div',{'className':_0x17b31f(0x17d),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4ada9b[_0x17b31f(0xdf)](_0x47873f[_0x17b31f(0x166)],{'variant':'text','onClick':()=>_0x31a9ed[_0x17b31f(0xc9)](),'children':_0x17b31f(0x117)})]});}function _0x1efcb9(_0x56f54b){var _0x191c3d=_0x5c1d3b;const {coordinator:_0x1f8a97}=_0x56f54b;return _0x4ada9b[_0x191c3d(0x19f)](_0x4ada9b['Fragment'],{'children':[_0x4ada9b['jsx'](_0x191c3d(0x101),{'className':_0x191c3d(0x17d),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4ada9b[_0x191c3d(0xdf)](_0x47873f[_0x191c3d(0x166)],{'variant':_0x191c3d(0xd6),'onClick':()=>_0x1f8a97[_0x191c3d(0x18d)](),'children':_0x191c3d(0x1a2)})]});}function _0x40c5ea(){var _0x2c990d=_0x5c1d3b;return _0x4ada9b[_0x2c990d(0xdf)](_0x4ada9b['Fragment'],{'children':'You\x27are\x20offline.'});}var _0x824deb=Object['getOwnPropertyDescriptor'],_0x4a001b=(_0x69ceb5,_0x6977e2,_0x5791ae,_0xd3850)=>{for(var _0x32de74=_0xd3850>0x1?void 0x0:_0xd3850?_0x824deb(_0x6977e2,_0x5791ae):_0x6977e2,_0x898f6=_0x69ceb5['length']-0x1,_0x51fedf;_0x898f6>=0x0;_0x898f6--)(_0x51fedf=_0x69ceb5[_0x898f6])&&(_0x32de74=_0x51fedf(_0x32de74)||_0x32de74);return _0x32de74;},_0x325caf=(_0x57977f,_0x35cd39)=>(_0x229bec,_0x3060e1)=>_0x35cd39(_0x229bec,_0x3060e1,_0x57977f);_0x9d65a9[_0x5c1d3b(0xda)]=class extends _0x316aa6['Disposable']{constructor(_0x2b5dca,_0x552281){var _0x1e5be3=_0x5c1d3b;super(),this[_0x1e5be3(0x13e)]=_0x2b5dca,this[_0x1e5be3(0x18a)]=_0x552281,this[_0x1e5be3(0x143)]();}[_0x5c1d3b(0x143)](){var _0x46b636=_0x5c1d3b;this[_0x46b636(0x110)](this[_0x46b636(0x18a)][_0x46b636(0x16b)](_0x3dd8a2[_0x46b636(0x1a8)][_0x46b636(0x1bc)],()=>_0x3dd8a2[_0x46b636(0x10e)](_0x4400d0,this[_0x46b636(0x13e)])));}},_0x9d65a9[_0x5c1d3b(0xda)]=_0x4a001b([_0x325caf(0x0,_0x316aa6['Inject'](_0x316aa6[_0x5c1d3b(0xcd)])),_0x325caf(0x1,_0x3dd8a2['IUIPartsService'])],_0x9d65a9[_0x5c1d3b(0xda)]);var _0x51f9a9=Object[_0x5c1d3b(0xe6)],_0x1722e0=Object['getOwnPropertyDescriptor'],_0x2d519c=(_0x54ca43,_0xc7c6b4,_0xbd63c8)=>_0xc7c6b4 in _0x54ca43?_0x51f9a9(_0x54ca43,_0xc7c6b4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xbd63c8}):_0x54ca43[_0xc7c6b4]=_0xbd63c8,_0x19f6db=(_0x3e387a,_0x11ed07,_0x1ab967,_0x28b852)=>{var _0x38be7d=_0x5c1d3b;for(var _0x231291=_0x28b852>0x1?void 0x0:_0x28b852?_0x1722e0(_0x11ed07,_0x1ab967):_0x11ed07,_0x1a85ae=_0x3e387a[_0x38be7d(0x1a4)]-0x1,_0x101fcc;_0x1a85ae>=0x0;_0x1a85ae--)(_0x101fcc=_0x3e387a[_0x1a85ae])&&(_0x231291=_0x101fcc(_0x231291)||_0x231291);return _0x231291;},_0x34a180=(_0x30f5b3,_0x4b6a22)=>(_0x22ec79,_0x499a02)=>_0x4b6a22(_0x22ec79,_0x499a02,_0x30f5b3),_0x64ea99=(_0x4fed24,_0x1413a8,_0x55b08c)=>_0x2d519c(_0x4fed24,typeof _0x1413a8!=_0x5c1d3b(0x1b5)?_0x1413a8+'':_0x1413a8,_0x55b08c);const _0x28a12f='UNIVER_LIVE_SHARE_PLUGIN';_0x9d65a9[_0x5c1d3b(0x102)]=class extends _0x316aa6[_0x5c1d3b(0x167)]{constructor(_0x4aca74=_0x4bd88c,_0x5c9ea4,_0x4e70dc){var _0x3132b6=_0x5c1d3b;super(),this['_config']=_0x4aca74,this['_injector']=_0x5c9ea4,this[_0x3132b6(0x15d)]=_0x4e70dc;const {..._0x53886b}=_0x316aa6[_0x3132b6(0x1c1)]({},_0x4bd88c,this[_0x3132b6(0x18b)]);this[_0x3132b6(0x15d)][_0x3132b6(0xe7)](_0x4de99d,_0x53886b);}['onStarting'](){var _0x71b70c=_0x5c1d3b;_0x316aa6['registerDependencies'](this[_0x71b70c(0x13e)],_0x316aa6[_0x71b70c(0x107)]([[_0x5baadc],[_0x9d65a9[_0x71b70c(0x12b)]],[_0x57d48f],[_0x9d65a9[_0x71b70c(0xda)]]],this[_0x71b70c(0x18b)][_0x71b70c(0xed)])),_0x316aa6['touchDependencies'](this[_0x71b70c(0x13e)],[[_0x57d48f]]);}[_0x5c1d3b(0xe5)](){var _0x39dcd4=_0x5c1d3b;_0x316aa6[_0x39dcd4(0xcc)](this[_0x39dcd4(0x13e)],[[_0x9d65a9[_0x39dcd4(0xda)]]]);}},_0x64ea99(_0x9d65a9['UniverLiveSharePlugin'],_0x5c1d3b(0xeb),_0x316aa6['UniverInstanceType']['UNIVER_UNKNOWN']),_0x64ea99(_0x9d65a9[_0x5c1d3b(0x102)],'pluginName',_0x28a12f),_0x9d65a9[_0x5c1d3b(0x102)]=_0x19f6db([_0x316aa6[_0x5c1d3b(0xf2)](_0x86b772[_0x5c1d3b(0x185)]),_0x34a180(0x1,_0x316aa6[_0x5c1d3b(0x187)](_0x316aa6[_0x5c1d3b(0xcd)])),_0x34a180(0x2,_0x316aa6[_0x5c1d3b(0x12f)])],_0x9d65a9['UniverLiveSharePlugin']),_0x9d65a9['LiveShare']=_0x4400d0,_0x9d65a9[_0x5c1d3b(0xf9)]=_0x5baadc,_0x9d65a9[_0x5c1d3b(0x1b2)]=_0x38e00d,Object[_0x5c1d3b(0xe6)](_0x9d65a9,Symbol[_0x5c1d3b(0x114)],{'value':_0x5c1d3b(0x194)});}));function _0x153c(){var _0x25be8f=['0\x200\x2017\x2017','params','memberID','1em','exports','connectInjector','indexOf','disposeWithMe','prototype','use','OFFLINE','toStringTag','_handleOperation','trim','Start\x20following','react','assign','displayName','children','clsx','InsertSheetMutation','CollaborationEvent','univer-size-4','offline','_unitID','@univerjs/design','mutations','@univerjs/sheets-ui','dispose','@univerjs/sheets','getCurrentTypeOfUnit$','_init','_sharedOperations','unsubscribe','LiveShareController','SetZoomRatioOperation','4443444DwdBWY','colorChannel1','IConfigService','live-share.config','string','unitId','call','className','NEW_CHANGESETS','_status$','_reporters','init','stringify','SessionStatus','then','Stop\x20following','LIVESHARE_TERMINATE','_injector','React','_fetchOperations','registerSharedOperation','data','_mountLiveShare','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','@univerjs-pro/collaboration','getOwnPropertyDescriptor','xlink:href','currentColor','rxjs/operators','UniverSheets','set','onCommandExecuted','toString','takeUntil','parse','executeCommand','UniverInstanceType','_startPresenting','concat','_stopFollowing','_startLiveShareCoordinator','has','sheet','hasOwnProperty','_collabSessionService','_handleOffline','NOT_FOLLOWING','following','_configService','_liveShareService','useRef','IUniverInstanceService','_handleTerminate','createElement','_startFollowing','values','react/jsx-runtime','Button','Plugin','UniverProCollaborationClient','LiveShareCoordinator','You\x27re\x20following\x20the\x20presenter','registerComponent','UniverIcon','includes','forwardRef','http://www.w3.org/2000/svg','requireSession','RxDisposable','UniverProLiveShare','2768210VUpvYu','Start','event$','status$','idSuffix','icon','toDisposable','operators','IDLE','add','univer-mb-3\x20univer-w-full\x20univer-text-sm','reverse','UNIVER_SHEET','createInstance','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','map','LIVESHARE_FETCH_OPERATIONS','next','UniverCollaborationClientPlugin','_status','Inject','extend','button','_uiPartsService','_config','none','stopPresenting','mask','OPERATION','dispose$','_commandDisposable','pipe','defIds','Module','_handleNewChangeSets','@univerjs/ui','univerjs-icon\x20univerjs-icon-','_univerInstanceService','tag','function','_handleNewHost','SAME_OPERATION_SHARE_INTERVAL','_beIdle','_entities','jsxs','getConfig','attrs','Stop\x20presenting','_collabSession','length','1609842hcnUID','UniverProCollaboration','getUnitId','BuiltInUIPart','entries','LIVESHARE_NEW_HOST','LIVESHARE_REQUEST_HOST','26577NCiThO','_stopPresenting','getMemberID','UniverUi','_presenter','2gEFUYQ','LiveShareStatus','presenting','useDependency','symbol','not-following','5900629fXkdzW','PRESENTING','getOwnPropertySymbols','stopFollowing','forEach','HEADER_MENU','583rtrjpU','random','delete','FOLLOWING','merge','object','startFollowing','909010ZRfEJa','fill','touchDependencies','Injector','SetScrollOperation','660762OGxICg','parseProtocolChangeset','subscribe','LIVESHARE_OPERATION','find','url(#$1','sessionStatus$','default','amd','live-share-icon','rxjs','DesktopLiveShareController','LiveShareIcon','DisposableCollection','from','Fragment','jsx','getInitialStates','useEffect','Disposable','propertyIsEnumerable','CommandType','onRendered','defineProperty','setConfig','send','path','4mWTalu','type','replace','override','operations','SetWorksheetActiveOperation','apply','current','DependentOn','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Dropdown','getLiveShareCoordinator','1864MWYuza','registerInitialStateReporter','useState','LiveShareService','_commandService','_handleOnline','idle','getValue','defs','@univerjs-pro/collaboration-client','svg','div','UniverLiveSharePlugin','end','evenodd','presenter','complete','mergeOverrideWithDependencies','get'];_0x153c=function(){return _0x25be8f;};return _0x153c();}
|
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.202506121607",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.4.4",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.8.
|
|
51
|
-
"@univerjs-pro/collaboration-client": "0.8.
|
|
52
|
-
"@univerjs/core": "0.8.
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/sheets-ui": "0.8.
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/
|
|
50
|
+
"@univerjs-pro/collaboration": "0.8.1-nightly.202506121607",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.8.1-nightly.202506121607",
|
|
52
|
+
"@univerjs/core": "0.8.1-nightly.202506121607",
|
|
53
|
+
"@univerjs/design": "0.8.1-nightly.202506121607",
|
|
54
|
+
"@univerjs/sheets-ui": "0.8.1-nightly.202506121607",
|
|
55
|
+
"@univerjs/sheets": "0.8.1-nightly.202506121607",
|
|
56
|
+
"@univerjs/ui": "0.8.1-nightly.202506121607"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.4",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
64
|
"vite": "^6.3.5",
|
|
65
65
|
"vitest": "^3.2.0",
|
|
66
|
-
"@univerjs-infra/shared": "0.8.
|
|
66
|
+
"@univerjs-infra/shared": "0.8.1",
|
|
67
67
|
"@univerjs/protocol": "0.1.47-alpha.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|