@univerjs-pro/live-share 0.7.0-nightly.202505191607 → 0.7.0-nightly.202505201607
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 +8 -8
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x1547f4=_0x2486;(function(_0x50cd28,_0x3d01d7){var _0x5d137e=_0x2486,_0x500033=_0x50cd28();while(!![]){try{var _0x403c91=-parseInt(_0x5d137e(0xaf))/0x1+-parseInt(_0x5d137e(0x129))/0x2+parseInt(_0x5d137e(0x104))/0x3*(parseInt(_0x5d137e(0x93))/0x4)+-parseInt(_0x5d137e(0xa9))/0x5*(-parseInt(_0x5d137e(0x114))/0x6)+parseInt(_0x5d137e(0xe9))/0x7+parseInt(_0x5d137e(0xd1))/0x8+-parseInt(_0x5d137e(0x86))/0x9;if(_0x403c91===_0x3d01d7)break;else _0x500033['push'](_0x500033['shift']());}catch(_0x4b17a1){_0x500033['push'](_0x500033['shift']());}}}(_0xf182,0x39930));var U=Object[_0x1547f4(0x77)],F=(_0x5b1b8e,_0x3445f1,_0x240c2e)=>_0x3445f1 in _0x5b1b8e?U(_0x5b1b8e,_0x3445f1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x240c2e}):_0x5b1b8e[_0x3445f1]=_0x240c2e,v=(_0x7be775,_0x4f5948,_0x55b783)=>F(_0x7be775,typeof _0x4f5948!=_0x1547f4(0xd3)?_0x4f5948+'':_0x4f5948,_0x55b783);Object[_0x1547f4(0x77)](exports,Symbol[_0x1547f4(0xce)],{'value':'Module'});const m=require(_0x1547f4(0xe7)),o=require(_0x1547f4(0x161)),C=require(_0x1547f4(0x163)),D=require(_0x1547f4(0xe5)),p=require(_0x1547f4(0x144)),l=require(_0x1547f4(0x15b)),g=require(_0x1547f4(0xd6)),f=require(_0x1547f4(0x11b)),_=require('@univerjs-pro/collaboration'),x=require('rxjs'),b=require(_0x1547f4(0x9c)),$=_0x1547f4(0xb8),L={};class E extends o[_0x1547f4(0x15a)]{constructor(){var _0x17100a=_0x1547f4;super(...arguments),v(this,_0x17100a(0x145),new Set()),v(this,_0x17100a(0xa7),new Set());}[_0x1547f4(0xa6)](_0x251240){var _0xd35eee=_0x1547f4;return this['_sharedOperations'][_0xd35eee(0xf5)](_0x251240),o[_0xd35eee(0xb2)](()=>this[_0xd35eee(0x145)]['delete'](_0x251240));}[_0x1547f4(0xc4)](_0x72c97f){var _0x124eb2=_0x1547f4;return this[_0x124eb2(0xa7)][_0x124eb2(0xf5)](_0x72c97f),o[_0x124eb2(0xb2)](()=>this['_reporters'][_0x124eb2(0x13d)](_0x72c97f));}['shouldShareOperation'](_0x1d1bc8){var _0x239a14=_0x1547f4;return this['_sharedOperations'][_0x239a14(0x139)](_0x1d1bc8);}[_0x1547f4(0x138)](_0x33d17f){var _0x2b18c9=_0x1547f4;return Array[_0x2b18c9(0xd5)](this[_0x2b18c9(0xa7)])[_0x2b18c9(0xc6)](_0x2ff9a1=>_0x2ff9a1(_0x33d17f));}}function _0xf182(){var _0x3591fc=['Stop\x20following','BuiltInUIPart','useRef','Fragment','_handleTerminate','url(#$1','attrs','then','_startLiveShareCoordinator','startFollowing','event$','add','getValue','current','SAME_OPERATION_SHARE_INTERVAL','type','Plugin','mask','DesktopLiveShareController','sessionStatus$','_fetchOperations','useObservable','fill','length','unsubscribe','onCommandExecuted','116322dZdFES','values','NOT_FOLLOWING','className','IUniverInstanceService','unitId','disposeWithMe','trim','_config','_unitID','UNIVER_LIVE_SHARE_PLUGIN','stringify','following','dispose','_entities','SetWorksheetActiveOperation','6PgVcfa','getMemberID','You\x27are\x20offline.','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','univerjs-icon\x20univerjs-icon-','none','RxDisposable','react','IDLE','idle','text','offline','SessionStatus','complete','presenting','UniverIcon','UniverInstanceType','UniverLiveSharePlugin','path','set','throttleTime','195534LgSpAd','idSuffix','LiveShareSingle','UNIVER_SHEET','children','concat','LiveShareStatus','ICommandService','div','end','call','DisposableCollection','CollaborationSessionService','pipe','dispose$','getInitialStates','has','includes','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','Button','delete','_status$','CollaborationEvent','You\x27re\x20presenting\x20the\x20document','touchDependencies','_injector','_collabSession','@univerjs/ui','_sharedOperations','getOwnPropertyDescriptor','requireSession','_stopPresenting','getTypeOfUnitAdded$','You\x27re\x20following\x20the\x20presenter','_handleOnline','Injector','CommandType','presenter','forEach','toString','BehaviorSubject','LIVESHARE_TERMINATE','1em','defs','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','FOLLOWING','next','OFFLINE','useState','Disposable','react/jsx-runtime','extend','icon','tag','operations','random','@univerjs/core','_handleNewHost','@univerjs/sheets','_handleOffline','subscribe','svg','defineProperty','_status','_startFollowing','status$','Inject','NEW_CHANGESETS','asObservable','Present\x20this\x20document','registerDependencies','find','jsxs','defIds','_univerInstanceService','PRESENTING','_handleOperation','8917659mbRSAh','UniverCollaborationClientPlugin','_configService','indexOf','You\x27re\x20not\x20following\x20the\x20presenter','tryStartPresenting','currentColor','params','assign','_uiPartsService','UNIVER_UNKNOWN','_collabSessionService','data','48FWbwnr','mutations','_liveShareService','registerComponent','createElement','parse','mergeOverrideWithDependencies','getUnitId','0\x200\x2016\x2016','rxjs/operators','connectInjector','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','_commandDisposable','xlink:href','OPERATION','getCurrentTypeOfUnit$','use','onRendered','_presenter','registerSharedOperation','_reporters','Subject','1558195OVTMCc','clear','_mountLiveShare','colorChannel1','clsx','univer-w-full\x20univer-mb-3\x20univer-text-sm','54996ItpdEP','_init','getOwnPropertySymbols','toDisposable','univer-size-4','LiveShare','IConfigService','prototype','jsx','live-share.config','get','LiveShareService','hasOwnProperty','button','_startPresenting','shouldShareOperation','Dropdown','useEffect','DependentOn','ONLINE','string','registerInitialStateReporter','merge','map','forwardRef','_beIdle','replace','reverse','LiveShareCoordinator','stopFollowing','Start','toStringTag','LIVESHARE_FETCH_OPERATIONS','takeUntil','2684648eaYJic','LIVESHARE_OPERATION','symbol','getLiveShareCoordinator','from','@univerjs/design','send','not-following','evenodd','sheet','HEADER_MENU','LiveShareController','executeCommand','substring','_commandService','_stopFollowing','init','LIVESHARE_NEW_HOST','setConfig','stopPresenting','@univerjs/sheets-ui','_handleNewChangeSets','@univerjs-pro/collaboration-client','displayName','1868510nztwDY'];_0xf182=function(){return _0x3591fc;};return _0xf182();}var H=Object['getOwnPropertyDescriptor'],V=(_0x111b40,_0x5159f7,_0x5254b0,_0x5d4bf8)=>{for(var _0x10f70f=_0x5d4bf8>0x1?void 0x0:_0x5d4bf8?H(_0x5159f7,_0x5254b0):_0x5159f7,_0x5d63c0=_0x111b40['length']-0x1,_0x32f91b;_0x5d63c0>=0x0;_0x5d63c0--)(_0x32f91b=_0x111b40[_0x5d63c0])&&(_0x10f70f=_0x32f91b(_0x10f70f)||_0x10f70f);return _0x10f70f;},k=(_0x11e535,_0x24fb26)=>(_0x243590,_0x1e6671)=>_0x24fb26(_0x243590,_0x1e6671,_0x11e535);let O=class extends o[_0x1547f4(0x15a)]{constructor(_0x5da795){var _0x6e59d8=_0x1547f4;super(),this[_0x6e59d8(0x95)]=_0x5da795,this['_init']();}[_0x1547f4(0xb0)](){var _0x141dc1=_0x1547f4;[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C[_0x141dc1(0x113)]['id']][_0x141dc1(0x14f)](_0x50fdac=>{var _0x3faafa=_0x141dc1;this[_0x3faafa(0x10a)](this[_0x3faafa(0x95)][_0x3faafa(0xa6)](_0x50fdac));});}};O=V([k(0x0,o[_0x1547f4(0x7b)](E))],O);var u=function(){var _0x190e90=_0x1547f4;return u=Object[_0x190e90(0x8e)]||function(_0x230912){var _0x623807=_0x190e90;for(var _0x1ac5d8,_0x6992f6=0x1,_0x249a63=arguments[_0x623807(0x101)];_0x6992f6<_0x249a63;_0x6992f6++){_0x1ac5d8=arguments[_0x6992f6];for(var _0x4d4d5c in _0x1ac5d8)Object[_0x623807(0xb6)][_0x623807(0xbb)]['call'](_0x1ac5d8,_0x4d4d5c)&&(_0x230912[_0x4d4d5c]=_0x1ac5d8[_0x4d4d5c]);}return _0x230912;},u['apply'](this,arguments);},M=function(_0x45bdaf,_0x161e6c){var _0x55c5e3=_0x1547f4,_0x2b910b={};for(var _0xe1f8d7 in _0x45bdaf)Object[_0x55c5e3(0xb6)][_0x55c5e3(0xbb)][_0x55c5e3(0x133)](_0x45bdaf,_0xe1f8d7)&&_0x161e6c[_0x55c5e3(0x89)](_0xe1f8d7)<0x0&&(_0x2b910b[_0xe1f8d7]=_0x45bdaf[_0xe1f8d7]);if(_0x45bdaf!=null&&typeof Object[_0x55c5e3(0xb1)]=='function'){for(var _0x2bb0b3=0x0,_0xe1f8d7=Object[_0x55c5e3(0xb1)](_0x45bdaf);_0x2bb0b3<_0xe1f8d7[_0x55c5e3(0x101)];_0x2bb0b3++)_0x161e6c[_0x55c5e3(0x89)](_0xe1f8d7[_0x2bb0b3])<0x0&&Object[_0x55c5e3(0xb6)]['propertyIsEnumerable'][_0x55c5e3(0x133)](_0x45bdaf,_0xe1f8d7[_0x2bb0b3])&&(_0x2b910b[_0xe1f8d7[_0x2bb0b3]]=_0x45bdaf[_0xe1f8d7[_0x2bb0b3]]);}return _0x2b910b;},j=f[_0x1547f4(0xc7)](function(_0x1ecb56,_0x12d332){var _0x1a0bca=_0x1547f4,_0x842eea=_0x1ecb56[_0x1a0bca(0x15d)],_0xcec080=_0x1ecb56['id'],_0x258241=_0x1ecb56[_0x1a0bca(0x107)],_0x4d4784=_0x1ecb56[_0x1a0bca(0x15c)],_0x25058f=M(_0x1ecb56,[_0x1a0bca(0x15d),'id','className','extend']),_0x5a59f4=_0x1a0bca(0x118)[_0x1a0bca(0x12e)](_0xcec080,'\x20')[_0x1a0bca(0x12e)](_0x258241||'')[_0x1a0bca(0x10b)](),_0x20a0cb=f[_0x1a0bca(0xec)]('_'['concat'](G()));return y(_0x842eea,''[_0x1a0bca(0x12e)](_0xcec080),{'defIds':_0x842eea[_0x1a0bca(0x82)],'idSuffix':_0x20a0cb[_0x1a0bca(0xf7)]},u({'ref':_0x12d332,'className':_0x5a59f4},_0x25058f),_0x4d4784);});function y(_0x2027d6,_0x40fdb4,_0xbbe5a7,_0x27e3fb,_0x1e7d12){var _0x2ee55c=_0x1547f4;return f['createElement'](_0x2027d6[_0x2ee55c(0x15e)],u(u({'key':_0x40fdb4},q(_0x2027d6,_0xbbe5a7,_0x1e7d12)),_0x27e3fb),(W(_0x2027d6,_0xbbe5a7)[_0x2ee55c(0x12d)]||[])[_0x2ee55c(0xc6)](function(_0x53a997,_0x351553){var _0x312c17=_0x2ee55c;return y(_0x53a997,''[_0x312c17(0x12e)](_0x40fdb4,'-')[_0x312c17(0x12e)](_0x2027d6[_0x312c17(0x15e)],'-')[_0x312c17(0x12e)](_0x351553),_0xbbe5a7,void 0x0,_0x1e7d12);}));}function _0x2486(_0x33f825,_0x4ea699){var _0xf182ed=_0xf182();return _0x2486=function(_0x2486ac,_0x1dbf7d){_0x2486ac=_0x2486ac-0x75;var _0x197bd5=_0xf182ed[_0x2486ac];return _0x197bd5;},_0x2486(_0x33f825,_0x4ea699);}function q(_0x39ef52,_0xf8684d,_0x1258b5){var _0x1d78b3=_0x1547f4,_0x41570e=u({},_0x39ef52['attrs']);_0x1258b5!=null&&_0x1258b5[_0x1d78b3(0xac)]&&_0x41570e[_0x1d78b3(0x100)]==='colorChannel1'&&(_0x41570e[_0x1d78b3(0x100)]=_0x1258b5[_0x1d78b3(0xac)]),_0x39ef52['tag']===_0x1d78b3(0xfb)&&_0x41570e['id']&&(_0x41570e['id']=_0x41570e['id']+_0xf8684d['idSuffix']),Object['entries'](_0x41570e)['forEach'](function(_0x10eb6f){var _0x17447c=_0x1d78b3,_0x12831a=_0x10eb6f[0x0],_0x5ca966=_0x10eb6f[0x1];_0x12831a===_0x17447c(0xfb)&&typeof _0x5ca966==_0x17447c(0xc3)&&(_0x41570e[_0x12831a]=_0x5ca966[_0x17447c(0xc9)](/url\(#(.*)\)/,'url(#$1'[_0x17447c(0x12e)](_0xf8684d['idSuffix'],')')));});var _0x11fc54=_0xf8684d[_0x1d78b3(0x82)];return!_0x11fc54||_0x11fc54['length']===0x0||(_0x39ef52[_0x1d78b3(0x15e)]===_0x1d78b3(0xa3)&&_0x41570e['xlink:href']&&(_0x41570e[_0x1d78b3(0xa0)]=_0x41570e[_0x1d78b3(0xa0)]+_0xf8684d[_0x1d78b3(0x12a)]),Object['entries'](_0x41570e)[_0x1d78b3(0x14f)](function(_0x5291e3){var _0x5e2b8e=_0x1d78b3,_0x23a28b=_0x5291e3[0x0],_0x4df4b5=_0x5291e3[0x1];typeof _0x4df4b5==_0x5e2b8e(0xc3)&&(_0x41570e[_0x23a28b]=_0x4df4b5[_0x5e2b8e(0xc9)](/url\(#(.*)\)/,_0x5e2b8e(0xef)['concat'](_0xf8684d[_0x5e2b8e(0x12a)],')')));})),_0x41570e;}function W(_0x103ca2,_0x210796){var _0x25128b=_0x1547f4,_0x31ad55,_0xfb9514=_0x210796[_0x25128b(0x82)];return!_0xfb9514||_0xfb9514[_0x25128b(0x101)]===0x0?_0x103ca2:_0x103ca2[_0x25128b(0x15e)]===_0x25128b(0x154)&&(!((_0x31ad55=_0x103ca2[_0x25128b(0x12d)])===null||_0x31ad55===void 0x0)&&_0x31ad55[_0x25128b(0x101)])?u(u({},_0x103ca2),{'children':_0x103ca2[_0x25128b(0x12d)][_0x25128b(0xc6)](function(_0x560a29){var _0x4a257e=_0x25128b;return typeof _0x560a29[_0x4a257e(0xf0)]['id']==_0x4a257e(0xc3)&&_0xfb9514&&_0xfb9514[_0x4a257e(0x89)](_0x560a29[_0x4a257e(0xf0)]['id'])>-0x1?u(u({},_0x560a29),{'attrs':u(u({},_0x560a29['attrs']),{'id':_0x560a29[_0x4a257e(0xf0)]['id']+_0x210796[_0x4a257e(0x12a)]})}):_0x560a29;})}):_0x103ca2;}function G(){var _0x156011=_0x1547f4;return Math[_0x156011(0x160)]()[_0x156011(0x150)](0x24)[_0x156011(0xde)](0x2,0x8);}j['displayName']=_0x1547f4(0x123);var B={'tag':_0x1547f4(0x76),'attrs':{'fill':_0x1547f4(0x119),'viewBox':_0x1547f4(0x9b),'width':_0x1547f4(0x153),'height':_0x1547f4(0x153)},'children':[{'tag':_0x1547f4(0x126),'attrs':{'fill':_0x1547f4(0x8c),'d':_0x1547f4(0x117)}},{'tag':_0x1547f4(0x126),'attrs':{'fill':_0x1547f4(0x8c),'d':_0x1547f4(0x9e),'fillRule':_0x1547f4(0xd9),'clipRule':'evenodd'}}]},P=f['forwardRef'](function(_0x123d94,_0x1149bc){var _0x1033a5=_0x1547f4;return f[_0x1033a5(0x97)](j,Object[_0x1033a5(0x8e)]({},_0x123d94,{'id':'live-share-single','ref':_0x1149bc,'icon':B}));});P[_0x1547f4(0xe8)]=_0x1547f4(0x12b);var Y=Object[_0x1547f4(0x146)],R=(_0x4e1959,_0x34266c,_0x440532,_0x17563c)=>{var _0x4ca75e=_0x1547f4;for(var _0xa285ed=_0x17563c>0x1?void 0x0:_0x17563c?Y(_0x34266c,_0x440532):_0x34266c,_0x5c56c6=_0x4e1959[_0x4ca75e(0x101)]-0x1,_0x12369a;_0x5c56c6>=0x0;_0x5c56c6--)(_0x12369a=_0x4e1959[_0x5c56c6])&&(_0xa285ed=_0x12369a(_0xa285ed)||_0xa285ed);return _0xa285ed;},S=(_0x26dac4,_0x39fcab)=>(_0xab06d7,_0x508d28)=>_0x39fcab(_0xab06d7,_0x508d28,_0x26dac4);exports[_0x1547f4(0xdc)]=class extends o[_0x1547f4(0x11a)]{constructor(_0x5281cd,_0x4bcae5,_0x50982c){var _0x18c73f=_0x1547f4;super(),v(this,'_entities',new Map()),(this[_0x18c73f(0x83)]=_0x5281cd,this['_injector']=_0x4bcae5,this[_0x18c73f(0x91)]=_0x50982c,this[_0x18c73f(0xb0)]());}async[_0x1547f4(0xd4)](_0x618b38){var _0x342d65=_0x1547f4;return this['_entities']['has'](_0x618b38)||await this[_0x342d65(0xf2)](_0x618b38),this['_entities'][_0x342d65(0xb9)](_0x618b38);}[_0x1547f4(0xb0)](){var _0x1f8e50=_0x1547f4;this['_univerInstanceService'][_0x1f8e50(0x149)](o[_0x1f8e50(0x124)][_0x1f8e50(0x12c)])['pipe'](b['takeUntil'](this[_0x1f8e50(0x137)]))[_0x1f8e50(0x75)](async _0x290288=>{var _0x5a018e=_0x1f8e50;const _0x53c11a=_0x290288['getUnitId']();this['_entities'][_0x5a018e(0x139)](_0x53c11a)||this[_0x5a018e(0xf2)](_0x53c11a);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](o[_0x1f8e50(0x124)]['UNIVER_SHEET'])[_0x1f8e50(0x136)](b[_0x1f8e50(0xd0)](this[_0x1f8e50(0x137)]))[_0x1f8e50(0x75)](_0xaf0fdb=>{var _0x29a3cf=_0x1f8e50;const _0x25910e=_0xaf0fdb['getUnitId'](),_0xeb8f6a=this[_0x29a3cf(0x112)]['get'](_0x25910e);_0xeb8f6a==null||_0xeb8f6a['dispose']();});}async[_0x1547f4(0xf2)](_0x2c381f){var _0x268651=_0x1547f4;const _0x1a3b23=await this[_0x268651(0x91)][_0x268651(0x147)](_0x2c381f),_0x2b1630=this[_0x268651(0x142)]['createInstance'](exports[_0x268651(0xcb)],_0x2c381f,_0x1a3b23);return _0x2b1630['init'](),this[_0x268651(0x112)][_0x268651(0x127)](_0x2c381f,_0x2b1630),_0x2b1630;}},exports['LiveShareController']=R([S(0x0,o[_0x1547f4(0x108)]),S(0x1,o[_0x1547f4(0x7b)](o[_0x1547f4(0x14c)])),S(0x2,o[_0x1547f4(0x7b)](m[_0x1547f4(0x135)]))],exports[_0x1547f4(0xdc)]);var h=(_0x16efbf=>(_0x16efbf[_0x1547f4(0x158)]='offline',_0x16efbf[_0x1547f4(0x11c)]=_0x1547f4(0x11d),_0x16efbf[_0x1547f4(0x156)]=_0x1547f4(0x110),_0x16efbf[_0x1547f4(0x106)]='not-following',_0x16efbf[_0x1547f4(0x84)]=_0x1547f4(0x122),_0x16efbf))(h||{});const Z=_0x1547f4(0xf8),J=0xc8;exports['LiveShareCoordinator']=class extends o[_0x1547f4(0x11a)]{constructor(_0x10c192,_0xc5645d,_0xfba2e8,_0x46a4be,_0x1e2ae0){var _0x925d4f=_0x1547f4;super(),v(this,_0x925d4f(0x13e),new x[(_0x925d4f(0x151))](_0x925d4f(0x11d))),v(this,_0x925d4f(0x7a),this[_0x925d4f(0x13e)][_0x925d4f(0x7d)]()),v(this,_0x925d4f(0xb0),!0x1),v(this,_0x925d4f(0x9f),null),v(this,_0x925d4f(0xa5),null),(this[_0x925d4f(0x10d)]=_0x10c192,this['_collabSession']=_0xc5645d,this['_configService']=_0xfba2e8,this[_0x925d4f(0x95)]=_0x46a4be,this['_commandService']=_0x1e2ae0);}get['_status'](){var _0x33f871=_0x1547f4;return this[_0x33f871(0x13e)][_0x33f871(0xf6)]();}[_0x1547f4(0x111)](){var _0x5c81a3=_0x1547f4,_0x444dc2;(_0x444dc2=this[_0x5c81a3(0x9f)])==null||_0x444dc2[_0x5c81a3(0x111)](),this[_0x5c81a3(0x13e)][_0x5c81a3(0x157)](_0x5c81a3(0x11d)),this['_status$'][_0x5c81a3(0x121)]();}[_0x1547f4(0xe1)](){var _0x47c0a8=_0x1547f4;this[_0x47c0a8(0xb0)]||(this[_0x47c0a8(0xb0)]=!0x0,this[_0x47c0a8(0x143)][_0x47c0a8(0xfd)][_0x47c0a8(0x136)](b[_0x47c0a8(0xd0)](this[_0x47c0a8(0x137)]))['subscribe'](_0x1cc18c=>{var _0x3643fc=_0x47c0a8;switch(_0x1cc18c){case m[_0x3643fc(0x120)]['OFFLINE']:this[_0x3643fc(0x164)]();break;case m[_0x3643fc(0x120)][_0x3643fc(0xc2)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x47c0a8(0xf4)][_0x47c0a8(0x136)](b[_0x47c0a8(0xd0)](this['dispose$']))[_0x47c0a8(0x75)](_0x58b101=>{var _0x8839ed=_0x47c0a8;const {eventID:_0x322a93}=_0x58b101;switch(_0x322a93){case _[_0x8839ed(0x13f)][_0x8839ed(0xe2)]:this[_0x8839ed(0x162)](_0x58b101);break;case _[_0x8839ed(0x13f)]['LIVESHARE_OPERATION']:this[_0x8839ed(0x85)](_0x58b101);break;case _[_0x8839ed(0x13f)][_0x8839ed(0x152)]:this[_0x8839ed(0xee)]();break;case _[_0x8839ed(0x13f)][_0x8839ed(0x7c)]:this[_0x8839ed(0xe6)](_0x58b101);break;}}));}[_0x1547f4(0x8b)](){var _0xf54ede=_0x1547f4;this[_0xf54ede(0x143)][_0xf54ede(0xd7)]({'eventID':_[_0xf54ede(0x13f)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0xf54ede(0x10d)],'userID':this[_0xf54ede(0x143)][_0xf54ede(0x115)]()}},this['_unitID']);}['stopPresenting'](){var _0x3f258f=_0x1547f4;this['_status']==='presenting'&&(this['_status$'][_0x3f258f(0x157)](_0x3f258f(0x11d)),this[_0x3f258f(0x143)]['send']({'eventID':_['CollaborationEvent'][_0x3f258f(0x152)],'data':{'unitID':this[_0x3f258f(0x10d)]}},this[_0x3f258f(0x10d)]));}[_0x1547f4(0xf3)](){var _0x59a38c=_0x1547f4;this[_0x59a38c(0x78)]===_0x59a38c(0xd8)&&(this[_0x59a38c(0x13e)]['next'](_0x59a38c(0x110)),this[_0x59a38c(0x79)]());}[_0x1547f4(0xcc)](){var _0x514c36=_0x1547f4;this[_0x514c36(0x78)]===_0x514c36(0x110)&&this[_0x514c36(0xe0)]();}[_0x1547f4(0x162)](_0x21c1ed){var _0x132222=_0x1547f4;const {presenter:_0xf55c6b}=_0x21c1ed[_0x132222(0x92)],_0x4945c8=this['_collabSession'][_0x132222(0x115)]();this['_presenter']=_0xf55c6b,_0xf55c6b===_0x4945c8?(this[_0x132222(0xe0)](),this['_startPresenting']()):this[_0x132222(0x78)]!==_0x132222(0xd8)&&(this['_stopPresenting'](),this[_0x132222(0x79)]());}[_0x1547f4(0xfe)](){var _0x4950f0=_0x1547f4;const _0x519650={'eventID':_['CollaborationEvent'][_0x4950f0(0xcf)]};this['_collabSession'][_0x4950f0(0xd7)](_0x519650,this[_0x4950f0(0x10d)]);}['_handleTerminate'](){var _0x31ea07=_0x1547f4;this['_presenter']=null,this[_0x31ea07(0x78)]!==_0x31ea07(0x122)&&this[_0x31ea07(0xc8)]();}[_0x1547f4(0xe6)](_0x29dc77){var _0x257eef=_0x1547f4;if(this[_0x257eef(0x78)]==='following'&&this[_0x257eef(0xa5)]===_0x29dc77[_0x257eef(0x92)]['memberID']){const _0x17d849=_['parseProtocolChangeset'](_0x29dc77[_0x257eef(0x92)])[_0x257eef(0x94)][_0x257eef(0xca)]()[_0x257eef(0x80)](_0xd181fd=>_0xd181fd['id']===C['InsertSheetMutation']['id']);if(_0x17d849){const _0x5220da=_0x17d849[_0x257eef(0x8d)][_0x257eef(0x109)],_0x20a2c5=_0x17d849['params'][_0x257eef(0xda)]['id'];setTimeout(()=>{var _0x576f74=_0x257eef;this[_0x576f74(0xdf)][_0x576f74(0xdd)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x5220da,'subUnitId':_0x20a2c5},{'fromCollab':!0x0});});}}}[_0x1547f4(0xbd)](){var _0x2adcd5=_0x1547f4;this[_0x2adcd5(0x13e)][_0x2adcd5(0x157)](_0x2adcd5(0x122));const _0x440ad6=new Map(),_0x13a527=this['_commandDisposable']=new o[(_0x2adcd5(0x134))]();_0x13a527['add'](o[_0x2adcd5(0xb2)](()=>{var _0x17d99c=_0x2adcd5;_0x440ad6[_0x17d99c(0x14f)](_0x42a6b7=>_0x42a6b7[_0x17d99c(0x121)]()),_0x440ad6[_0x17d99c(0xaa)]();})),_0x13a527[_0x2adcd5(0xf5)](this[_0x2adcd5(0xdf)][_0x2adcd5(0x103)](_0x39e492=>{var _0x24e54f=_0x2adcd5,_0x4f5830;if(_0x39e492[_0x24e54f(0xf9)]!==o[_0x24e54f(0x14d)][_0x24e54f(0xa1)]||!this['_liveShareService'][_0x24e54f(0xbe)](_0x39e492['id']))return;const {id:_0x222fcf}=_0x39e492;let _0xa01d6e;_0x440ad6[_0x24e54f(0x139)](_0x222fcf)?_0xa01d6e=_0x440ad6[_0x24e54f(0xb9)](_0x222fcf):(_0xa01d6e=new x[(_0x24e54f(0xa8))](),_0x440ad6[_0x24e54f(0x127)](_0x222fcf,_0xa01d6e),_0xa01d6e[_0x24e54f(0x136)](b[_0x24e54f(0x128)]((_0x4f5830=this[_0x24e54f(0x88)]['getConfig'](Z))!=null?_0x4f5830:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x24e54f(0x75)](_0x269f28=>{var _0x37b525=_0x24e54f;this['_collabSession'][_0x37b525(0xd7)]({'eventID':_['CollaborationEvent'][_0x37b525(0xd2)],'data':{'unitID':this['_unitID'],'operations':{[_0x269f28['id']]:{'id':_0x269f28['id'],'params':JSON['stringify'](_0x269f28[_0x37b525(0x8d)])}}}},this[_0x37b525(0x10d)]);})),_0xa01d6e[_0x24e54f(0x157)](_0x39e492);})),this[_0x2adcd5(0x95)][_0x2adcd5(0x138)](this[_0x2adcd5(0x10d)])[_0x2adcd5(0x14f)](_0x3ca9d7=>this['_collabSession'][_0x2adcd5(0xd7)]({'eventID':_[_0x2adcd5(0x13f)][_0x2adcd5(0xd2)],'data':{'unitID':this['_unitID'],'operations':{[_0x3ca9d7['id']]:{'id':_0x3ca9d7['id'],'params':JSON[_0x2adcd5(0x10f)](_0x3ca9d7['params'])}}}},this[_0x2adcd5(0x10d)]));}[_0x1547f4(0x148)](){var _0x23b0a8=_0x1547f4,_0x45e92c;this['_status$'][_0x23b0a8(0x157)](_0x23b0a8(0x11d)),(_0x45e92c=this[_0x23b0a8(0x9f)])==null||_0x45e92c[_0x23b0a8(0x111)](),this[_0x23b0a8(0x9f)]=null;}['_startFollowing'](){var _0x5c9f69=_0x1547f4,_0x514889;(_0x514889=this[_0x5c9f69(0x9f)])==null||_0x514889[_0x5c9f69(0x111)](),this[_0x5c9f69(0x13e)][_0x5c9f69(0x157)](_0x5c9f69(0x110));}[_0x1547f4(0xc8)](){var _0x400660=_0x1547f4,_0x559aff;this[_0x400660(0x13e)][_0x400660(0x157)](_0x400660(0x11d)),(_0x559aff=this[_0x400660(0x9f)])==null||_0x559aff[_0x400660(0x111)](),this[_0x400660(0x9f)]=null;}[_0x1547f4(0xe0)](){var _0x44b435=_0x1547f4,_0x2d1c45;this[_0x44b435(0x13e)]['next'](_0x44b435(0xd8)),(_0x2d1c45=this[_0x44b435(0x9f)])==null||_0x2d1c45[_0x44b435(0x111)]();}[_0x1547f4(0x85)](_0x262659){var _0xf1c6a9=_0x1547f4;if([_0xf1c6a9(0x122),_0xf1c6a9(0xd8),_0xf1c6a9(0x11f)][_0xf1c6a9(0x13a)](this[_0xf1c6a9(0x78)])||!_0x262659[_0xf1c6a9(0x92)][_0xf1c6a9(0x14e)]||_0x262659[_0xf1c6a9(0x92)][_0xf1c6a9(0x14e)]===this['_collabSession'][_0xf1c6a9(0x115)]())return;this['_status']===_0xf1c6a9(0x11d)&&this[_0xf1c6a9(0x79)]();const _0x22ba4c=_0x262659[_0xf1c6a9(0x92)][_0xf1c6a9(0x15f)];Object[_0xf1c6a9(0x105)](_0x22ba4c)[_0xf1c6a9(0x14f)](_0x3b4e9c=>{var _0x3f0975=_0xf1c6a9;this[_0x3f0975(0xdf)][_0x3f0975(0xdd)](_0x3b4e9c['id'],_0x3b4e9c[_0x3f0975(0x8d)]?JSON[_0x3f0975(0x98)](_0x3b4e9c[_0x3f0975(0x8d)]):null,{'fromCollab':!0x0});});}[_0x1547f4(0x164)](){var _0x20272c=_0x1547f4,_0x2eece4;this[_0x20272c(0x13e)][_0x20272c(0x157)](_0x20272c(0x11f)),(_0x2eece4=this[_0x20272c(0x9f)])==null||_0x2eece4['dispose']();}[_0x1547f4(0x14b)](){var _0x57f0b0=_0x1547f4;this[_0x57f0b0(0x13e)][_0x57f0b0(0x157)]('idle'),this[_0x57f0b0(0xfe)]();}},exports[_0x1547f4(0xcb)]=R([S(0x2,o['IConfigService']),S(0x3,o['Inject'](E)),S(0x4,o[_0x1547f4(0x130)])],exports[_0x1547f4(0xcb)]);function A(){var _0x172766=_0x1547f4;const _0x3d4285=p['useDependency'](exports[_0x172766(0xdc)]),_0x429595=p['useDependency'](o['IUniverInstanceService']),_0x2cdc79=p[_0x172766(0xff)](()=>_0x429595[_0x172766(0xa2)](o[_0x172766(0x124)][_0x172766(0x12c)]),void 0x0,!0x1,[]),[_0x481c7e,_0x36c122]=f[_0x172766(0x159)](null),[_0x206a8c,_0x2233ca]=f[_0x172766(0x159)](h[_0x172766(0x11c)]),_0x2d96c4=f[_0x172766(0xec)](null);return f[_0x172766(0xc0)](()=>(_0x2cdc79&&_0x3d4285[_0x172766(0xd4)](_0x2cdc79[_0x172766(0x9a)]())[_0x172766(0xf1)](_0x23d922=>{var _0x351419=_0x172766;_0x36c122(_0x23d922),_0x2d96c4[_0x351419(0xf7)]=_0x23d922[_0x351419(0x7a)][_0x351419(0x75)](_0x5743fe=>{_0x2233ca(_0x5743fe);});}),()=>{var _0x2adf32=_0x172766,_0x5076f0;(_0x5076f0=_0x2d96c4['current'])==null||_0x5076f0[_0x2adf32(0x102)](),_0x2d96c4[_0x2adf32(0xf7)]=null;}),[_0x2cdc79,_0x3d4285]),_0x481c7e?l[_0x172766(0xb7)](g[_0x172766(0xbf)],{'align':_0x172766(0x132),'disabled':_0x206a8c===h[_0x172766(0x158)],'className':_0x172766(0x13b),'overlay':l[_0x172766(0xb7)](K,{'status':_0x206a8c,'coordinator':_0x481c7e}),'children':l[_0x172766(0xb7)](_0x172766(0xbc),{'className':g[_0x172766(0xad)](_0x172766(0x155),{'univer-cursor-not-allowed':_0x206a8c===h[_0x172766(0x158)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x206a8c!==h['OFFLINE']}),'type':_0x172766(0xbc),'children':l['jsx'](P,{'className':_0x172766(0xb3)})})}):null;}function K(_0x51dd2a){var _0x4d697e=_0x1547f4;const {status:_0x3238bd,coordinator:_0x40e760}=_0x51dd2a;switch(_0x3238bd){case h['IDLE']:return l['jsx'](z,{'coordinator':_0x40e760});case h[_0x4d697e(0x156)]:return l[_0x4d697e(0xb7)](Q,{'coordinator':_0x40e760});case h[_0x4d697e(0x106)]:return l['jsx'](X,{'coordinator':_0x40e760});case h['OFFLINE']:return l['jsx'](te,{});case h[_0x4d697e(0x84)]:return l[_0x4d697e(0xb7)](ee,{'coordinator':_0x40e760});default:return null;}}function z(_0xe57ab0){var _0x3ab516=_0x1547f4;const {coordinator:_0xf4ff35}=_0xe57ab0;return l[_0x3ab516(0x81)](l[_0x3ab516(0xed)],{'children':[l['jsx']('div',{'className':_0x3ab516(0xae),'children':_0x3ab516(0x7e)}),l['jsx'](g[_0x3ab516(0x13c)],{'onClick':()=>_0xf4ff35['tryStartPresenting'](),'children':_0x3ab516(0xcd)})]});}function Q(_0x47a0a2){var _0x2a4b5d=_0x1547f4;const {coordinator:_0x1f7701}=_0x47a0a2;return l[_0x2a4b5d(0x81)](l[_0x2a4b5d(0xed)],{'children':[l[_0x2a4b5d(0xb7)](_0x2a4b5d(0x131),{'className':_0x2a4b5d(0xae),'children':_0x2a4b5d(0x14a)}),l['jsx'](g[_0x2a4b5d(0x13c)],{'onClick':()=>_0x1f7701[_0x2a4b5d(0xcc)](),'children':_0x2a4b5d(0xea)})]});}function X(_0x400662){var _0x46b37d=_0x1547f4;const {coordinator:_0x114fb3}=_0x400662;return l['jsxs'](l['Fragment'],{'children':[l[_0x46b37d(0xb7)](_0x46b37d(0x131),{'className':_0x46b37d(0xae),'children':_0x46b37d(0x8a)}),l['jsx'](g[_0x46b37d(0x13c)],{'variant':_0x46b37d(0x11e),'onClick':()=>_0x114fb3['startFollowing'](),'children':'Start\x20following'})]});}function ee(_0x2cecde){var _0x260439=_0x1547f4;const {coordinator:_0x13f2e0}=_0x2cecde;return l['jsxs'](l[_0x260439(0xed)],{'children':[l[_0x260439(0xb7)](_0x260439(0x131),{'className':_0x260439(0xae),'children':_0x260439(0x140)}),l[_0x260439(0xb7)](g[_0x260439(0x13c)],{'variant':'default','onClick':()=>_0x13f2e0[_0x260439(0xe4)](),'children':'Stop\x20presenting'})]});}function te(){var _0x281b51=_0x1547f4;return l[_0x281b51(0xb7)](l[_0x281b51(0xed)],{'children':_0x281b51(0x116)});}var ie=Object[_0x1547f4(0x146)],ne=(_0x233f9c,_0x1dcccc,_0x22870a,_0x33c64b)=>{var _0xfeebf9=_0x1547f4;for(var _0x156512=_0x33c64b>0x1?void 0x0:_0x33c64b?ie(_0x1dcccc,_0x22870a):_0x1dcccc,_0xca84cc=_0x233f9c[_0xfeebf9(0x101)]-0x1,_0x44436a;_0xca84cc>=0x0;_0xca84cc--)(_0x44436a=_0x233f9c[_0xca84cc])&&(_0x156512=_0x44436a(_0x156512)||_0x156512);return _0x156512;},N=(_0x372a4d,_0x1fdde2)=>(_0x10a9d3,_0x337f34)=>_0x1fdde2(_0x10a9d3,_0x337f34,_0x372a4d);exports[_0x1547f4(0xfc)]=class extends o[_0x1547f4(0x15a)]{constructor(_0x232ea0,_0x5e5fd2){var _0xd48302=_0x1547f4;super(),this[_0xd48302(0x142)]=_0x232ea0,this[_0xd48302(0x8f)]=_0x5e5fd2,this['_mountLiveShare']();}[_0x1547f4(0xab)](){var _0x3e5521=_0x1547f4;this[_0x3e5521(0x10a)](this[_0x3e5521(0x8f)][_0x3e5521(0x96)](p[_0x3e5521(0xeb)][_0x3e5521(0xdb)],()=>p[_0x3e5521(0x9d)](A,this['_injector'])));}},exports[_0x1547f4(0xfc)]=ne([N(0x0,o[_0x1547f4(0x7b)](o[_0x1547f4(0x14c)])),N(0x1,p['IUIPartsService'])],exports[_0x1547f4(0xfc)]);var re=Object[_0x1547f4(0x77)],se=Object['getOwnPropertyDescriptor'],oe=(_0x31a135,_0x4e7b1c,_0x8a3d91)=>_0x4e7b1c in _0x31a135?re(_0x31a135,_0x4e7b1c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x8a3d91}):_0x31a135[_0x4e7b1c]=_0x8a3d91,ae=(_0x1e5e9e,_0x5244f5,_0x3d78da,_0x4bad33)=>{var _0x344f1e=_0x1547f4;for(var _0x16f62f=_0x4bad33>0x1?void 0x0:_0x4bad33?se(_0x5244f5,_0x3d78da):_0x5244f5,_0x3ae66e=_0x1e5e9e[_0x344f1e(0x101)]-0x1,_0x3e290f;_0x3ae66e>=0x0;_0x3ae66e--)(_0x3e290f=_0x1e5e9e[_0x3ae66e])&&(_0x16f62f=_0x3e290f(_0x16f62f)||_0x16f62f);return _0x16f62f;},w=(_0x583928,_0x4b1b46)=>(_0x100a20,_0x2d5ba9)=>_0x4b1b46(_0x100a20,_0x2d5ba9,_0x583928),T=(_0x2cfe82,_0x4b5100,_0x55bbf6)=>oe(_0x2cfe82,typeof _0x4b5100!=_0x1547f4(0xd3)?_0x4b5100+'':_0x4b5100,_0x55bbf6);const le=_0x1547f4(0x10e);exports[_0x1547f4(0x125)]=class extends o[_0x1547f4(0xfa)]{constructor(_0x287a36=L,_0x2f6ce7,_0x17bfe6){var _0x3e7cd4=_0x1547f4;super(),this[_0x3e7cd4(0x10c)]=_0x287a36,this['_injector']=_0x2f6ce7,this[_0x3e7cd4(0x88)]=_0x17bfe6;const {..._0x1d4fe2}=o[_0x3e7cd4(0xc5)]({},L,this[_0x3e7cd4(0x10c)]);this[_0x3e7cd4(0x88)][_0x3e7cd4(0xe3)]($,_0x1d4fe2);}['onStarting'](){var _0x4695aa=_0x1547f4;o[_0x4695aa(0x7f)](this['_injector'],o[_0x4695aa(0x99)]([[E],[exports[_0x4695aa(0xdc)]],[O],[exports[_0x4695aa(0xfc)]]],this['_config']['override'])),o[_0x4695aa(0x141)](this[_0x4695aa(0x142)],[[O]]);}[_0x1547f4(0xa4)](){var _0x1269a0=_0x1547f4;o[_0x1269a0(0x141)](this[_0x1269a0(0x142)],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x1547f4(0x125)],_0x1547f4(0xf9),o[_0x1547f4(0x124)][_0x1547f4(0x90)]),T(exports[_0x1547f4(0x125)],'pluginName',le),exports['UniverLiveSharePlugin']=ae([o[_0x1547f4(0xc1)](m[_0x1547f4(0x87)]),w(0x1,o['Inject'](o[_0x1547f4(0x14c)])),w(0x2,o[_0x1547f4(0xb5)])],exports['UniverLiveSharePlugin']),exports[_0x1547f4(0xb4)]=A,exports[_0x1547f4(0xba)]=E,exports[_0x1547f4(0x12f)]=h;
|
|
1
|
+
'use strict';var _0x577bce=_0x4d8b;(function(_0x34f480,_0x3ccf1d){var _0x34204a=_0x4d8b,_0x224633=_0x34f480();while(!![]){try{var _0x5ea4b2=-parseInt(_0x34204a(0x24c))/0x1*(parseInt(_0x34204a(0x258))/0x2)+parseInt(_0x34204a(0x1e0))/0x3*(-parseInt(_0x34204a(0x2ae))/0x4)+-parseInt(_0x34204a(0x29a))/0x5+parseInt(_0x34204a(0x1f2))/0x6+parseInt(_0x34204a(0x2a8))/0x7*(parseInt(_0x34204a(0x233))/0x8)+parseInt(_0x34204a(0x261))/0x9*(-parseInt(_0x34204a(0x1db))/0xa)+parseInt(_0x34204a(0x280))/0xb;if(_0x5ea4b2===_0x3ccf1d)break;else _0x224633['push'](_0x224633['shift']());}catch(_0x17c728){_0x224633['push'](_0x224633['shift']());}}}(_0x1c40,0x96e69));var U=Object[_0x577bce(0x29f)],F=(_0x384dfc,_0x1b312a,_0x27d067)=>_0x1b312a in _0x384dfc?U(_0x384dfc,_0x1b312a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27d067}):_0x384dfc[_0x1b312a]=_0x27d067,v=(_0x22cb18,_0x3f5da1,_0x33c823)=>F(_0x22cb18,typeof _0x3f5da1!='symbol'?_0x3f5da1+'':_0x3f5da1,_0x33c823);Object[_0x577bce(0x29f)](exports,Symbol['toStringTag'],{'value':_0x577bce(0x28c)});function _0x1c40(){var _0x25eeb7=['LIVESHARE_TERMINATE','1929893VSLKzp','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','hasOwnProperty','IUniverInstanceService','has','_collabSessionService','92QDMtha','ICommandService','next','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','You\x27re\x20not\x20following\x20the\x20presenter','_mountLiveShare','status$','sessionStatus$','ONLINE','init','SetScrollOperation','@univerjs-pro/collaboration-client','type','_startFollowing','executeCommand','concat','3830XPbvNV','_config','throttleTime','LiveShareController','pluginName','79773UboNKm','getUnitId','stopPresenting','clear','_handleOffline','xlink:href','_presenter','registerSharedOperation','path','clsx','RxDisposable','PRESENTING','fill','getConfig','takeUntil','getLiveShareCoordinator','_sharedOperations','IConfigService','4110222oWYrlw','toString','add','LiveShareCoordinator','trim','dispose$','Fragment','presenter','assign','SessionStatus','live-share.config','params','rxjs','url(#$1','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','getMemberID','CommandType','setConfig','useState','includes','shouldShareOperation','stringify','Present\x20this\x20document','OFFLINE','onRendered','_status','stopFollowing','IDLE','_handleOperation','touchDependencies','evenodd','univer-size-4','LiveShareStatus','operations','parse','LIVESHARE_REQUEST_HOST','DisposableCollection','getTypeOfUnitDisposed$','event$','pipe','not-following','Button','length','icon','UniverInstanceType','_injector','get','CollaborationSessionService','jsx','symbol','_reporters','UNIVER_LIVE_SHARE_PLUGIN','dispose','displayName','mask','Disposable','find','disposeWithMe','useDependency','apply','defs','You\x27are\x20offline.','registerDependencies','NEW_CHANGESETS','offline','8BBtjDX','SetWorksheetActiveOperation','_configService','Inject','_liveShareService','jsxs','parseProtocolChangeset','values','_stopPresenting','DependentOn','data','tag','UniverCollaborationClientPlugin','Injector','presenting','tryStartPresenting','_handleNewHost','entries','InsertSheetMutation','unsubscribe','indexOf','_status$','toDisposable','call','LiveShare','1IQAYwI','_beIdle','_startLiveShareCoordinator','replace','currentColor','react','getInitialStates','_fetchOperations','CollaborationEvent','attrs','delete','set','980862otohut','idSuffix','unitId','LiveShareSingle','Subject','map','complete','mergeOverrideWithDependencies','onCommandExecuted','9567ErqfqT','univer-w-full\x20univer-mb-3\x20univer-text-sm','getCurrentTypeOfUnit$','colorChannel1','_uiPartsService','button','forEach','@univerjs-pro/collaboration','UniverLiveSharePlugin','string','defIds','_univerInstanceService','1em','BehaviorSubject','extend','subscribe','You\x27re\x20presenting\x20the\x20document','className','UniverIcon','children','@univerjs/sheets-ui','Dropdown','current','_handleNewChangeSets','createElement','_stopFollowing','following','sheet','IUIPartsService','prototype','from','22365684sqFmSA','_entities','send','DesktopLiveShareController','random','registerComponent','onStarting','OPERATION','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','text','_collabSession','idle','Module','forwardRef','_init','getOwnPropertyDescriptor','getOwnPropertySymbols','override','useRef','LIVESHARE_OPERATION','_handleOnline','startFollowing','LIVESHARE_FETCH_OPERATIONS','use','@univerjs/design','_unitID','4333690xJivdM','UNIVER_SHEET','getValue','div','LiveShareService','defineProperty','LIVESHARE_NEW_HOST','FOLLOWING','_commandDisposable','You\x27re\x20following\x20the\x20presenter','_startPresenting','_commandService','Start\x20following'];_0x1c40=function(){return _0x25eeb7;};return _0x1c40();}const m=require(_0x577bce(0x1d6)),o=require('@univerjs/core'),C=require('@univerjs/sheets'),D=require(_0x577bce(0x275)),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require(_0x577bce(0x298)),f=require(_0x577bce(0x251)),_=require(_0x577bce(0x268)),x=require(_0x577bce(0x1fe)),b=require('rxjs/operators'),$=_0x577bce(0x1fc),L={};function _0x4d8b(_0x50f57c,_0x309bb7){var _0x1c404b=_0x1c40();return _0x4d8b=function(_0x4d8b3e,_0x1c2450){_0x4d8b3e=_0x4d8b3e-0x1d6;var _0x25d448=_0x1c404b[_0x4d8b3e];return _0x25d448;},_0x4d8b(_0x50f57c,_0x309bb7);}class E extends o[_0x577bce(0x229)]{constructor(){var _0x29e8f8=_0x577bce;super(...arguments),v(this,'_sharedOperations',new Set()),v(this,_0x29e8f8(0x224),new Set());}[_0x577bce(0x1e7)](_0x1916f7){var _0x2ad752=_0x577bce;return this['_sharedOperations'][_0x2ad752(0x1f4)](_0x1916f7),o[_0x2ad752(0x249)](()=>this['_sharedOperations'][_0x2ad752(0x256)](_0x1916f7));}['registerInitialStateReporter'](_0x594aba){var _0x1a59d9=_0x577bce;return this[_0x1a59d9(0x224)][_0x1a59d9(0x1f4)](_0x594aba),o[_0x1a59d9(0x249)](()=>this[_0x1a59d9(0x224)][_0x1a59d9(0x256)](_0x594aba));}[_0x577bce(0x206)](_0x2f3d5b){var _0x4ed7b6=_0x577bce;return this[_0x4ed7b6(0x1f0)]['has'](_0x2f3d5b);}[_0x577bce(0x252)](_0x2fd8d7){var _0x3f2457=_0x577bce;return Array[_0x3f2457(0x27f)](this[_0x3f2457(0x224)])[_0x3f2457(0x25d)](_0x24e5c0=>_0x24e5c0(_0x2fd8d7));}}var H=Object[_0x577bce(0x28f)],V=(_0x6d9ef8,_0x3eb8ca,_0x2dbd6d,_0x21f0d5)=>{for(var _0x56d5ed=_0x21f0d5>0x1?void 0x0:_0x21f0d5?H(_0x3eb8ca,_0x2dbd6d):_0x3eb8ca,_0x3177d6=_0x6d9ef8['length']-0x1,_0x4bbde3;_0x3177d6>=0x0;_0x3177d6--)(_0x4bbde3=_0x6d9ef8[_0x3177d6])&&(_0x56d5ed=_0x4bbde3(_0x56d5ed)||_0x56d5ed);return _0x56d5ed;},k=(_0x1f1d26,_0x1f1bee)=>(_0x14ff41,_0x199493)=>_0x1f1bee(_0x14ff41,_0x199493,_0x1f1d26);let O=class extends o[_0x577bce(0x229)]{constructor(_0x1a7d09){var _0x51926d=_0x577bce;super(),this['_liveShareService']=_0x1a7d09,this[_0x51926d(0x28e)]();}[_0x577bce(0x28e)](){var _0x521230=_0x577bce;[D['SetZoomRatioOperation']['id'],D[_0x521230(0x2b8)]['id'],C[_0x521230(0x234)]['id']][_0x521230(0x267)](_0x591df5=>{var _0x1d2d0d=_0x521230;this[_0x1d2d0d(0x22b)](this[_0x1d2d0d(0x237)][_0x1d2d0d(0x1e7)](_0x591df5));});}};O=V([k(0x0,o[_0x577bce(0x236)](E))],O);var u=function(){var _0x1cd308=_0x577bce;return u=Object[_0x1cd308(0x1fa)]||function(_0x53b154){var _0xd5c743=_0x1cd308;for(var _0x3db778,_0x1c7ff7=0x1,_0x5cf502=arguments[_0xd5c743(0x21c)];_0x1c7ff7<_0x5cf502;_0x1c7ff7++){_0x3db778=arguments[_0x1c7ff7];for(var _0xef8ffa in _0x3db778)Object[_0xd5c743(0x27e)]['hasOwnProperty']['call'](_0x3db778,_0xef8ffa)&&(_0x53b154[_0xef8ffa]=_0x3db778[_0xef8ffa]);}return _0x53b154;},u[_0x1cd308(0x22d)](this,arguments);},M=function(_0x25dfe3,_0x13d443){var _0x1c8dc2=_0x577bce,_0x255887={};for(var _0x4574ad in _0x25dfe3)Object[_0x1c8dc2(0x27e)][_0x1c8dc2(0x2aa)][_0x1c8dc2(0x24a)](_0x25dfe3,_0x4574ad)&&_0x13d443[_0x1c8dc2(0x247)](_0x4574ad)<0x0&&(_0x255887[_0x4574ad]=_0x25dfe3[_0x4574ad]);if(_0x25dfe3!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x36b1e3=0x0,_0x4574ad=Object[_0x1c8dc2(0x290)](_0x25dfe3);_0x36b1e3<_0x4574ad[_0x1c8dc2(0x21c)];_0x36b1e3++)_0x13d443[_0x1c8dc2(0x247)](_0x4574ad[_0x36b1e3])<0x0&&Object[_0x1c8dc2(0x27e)]['propertyIsEnumerable']['call'](_0x25dfe3,_0x4574ad[_0x36b1e3])&&(_0x255887[_0x4574ad[_0x36b1e3]]=_0x25dfe3[_0x4574ad[_0x36b1e3]]);}return _0x255887;},j=f[_0x577bce(0x28d)](function(_0x3a49d4,_0xee68d7){var _0x57a759=_0x577bce,_0x533dfa=_0x3a49d4[_0x57a759(0x21d)],_0x280a12=_0x3a49d4['id'],_0x399c92=_0x3a49d4[_0x57a759(0x272)],_0xe7914a=_0x3a49d4[_0x57a759(0x26f)],_0x3a1a79=M(_0x3a49d4,[_0x57a759(0x21d),'id',_0x57a759(0x272),_0x57a759(0x26f)]),_0x14e062='univerjs-icon\x20univerjs-icon-'[_0x57a759(0x1da)](_0x280a12,'\x20')[_0x57a759(0x1da)](_0x399c92||'')[_0x57a759(0x1f6)](),_0x1a4bfa=f[_0x57a759(0x292)]('_'['concat'](G()));return y(_0x533dfa,''[_0x57a759(0x1da)](_0x280a12),{'defIds':_0x533dfa[_0x57a759(0x26b)],'idSuffix':_0x1a4bfa[_0x57a759(0x277)]},u({'ref':_0xee68d7,'className':_0x14e062},_0x3a1a79),_0xe7914a);});function y(_0x358d45,_0x503663,_0x3ef27e,_0x50c80f,_0x22d74f){var _0x1f928c=_0x577bce;return f[_0x1f928c(0x279)](_0x358d45[_0x1f928c(0x23e)],u(u({'key':_0x503663},q(_0x358d45,_0x3ef27e,_0x22d74f)),_0x50c80f),(W(_0x358d45,_0x3ef27e)[_0x1f928c(0x274)]||[])['map'](function(_0x1da7d6,_0x199497){var _0x1abcb2=_0x1f928c;return y(_0x1da7d6,''[_0x1abcb2(0x1da)](_0x503663,'-')['concat'](_0x358d45['tag'],'-')[_0x1abcb2(0x1da)](_0x199497),_0x3ef27e,void 0x0,_0x22d74f);}));}function q(_0x21daa4,_0x4bd056,_0xc4d16b){var _0x377c68=_0x577bce,_0x17be9a=u({},_0x21daa4[_0x377c68(0x255)]);_0xc4d16b!=null&&_0xc4d16b[_0x377c68(0x264)]&&_0x17be9a[_0x377c68(0x1ec)]===_0x377c68(0x264)&&(_0x17be9a['fill']=_0xc4d16b[_0x377c68(0x264)]),_0x21daa4[_0x377c68(0x23e)]===_0x377c68(0x228)&&_0x17be9a['id']&&(_0x17be9a['id']=_0x17be9a['id']+_0x4bd056['idSuffix']),Object[_0x377c68(0x244)](_0x17be9a)['forEach'](function(_0x4edf01){var _0x21402a=_0x377c68,_0x4e2398=_0x4edf01[0x0],_0x37227b=_0x4edf01[0x1];_0x4e2398===_0x21402a(0x228)&&typeof _0x37227b==_0x21402a(0x26a)&&(_0x17be9a[_0x4e2398]=_0x37227b[_0x21402a(0x24f)](/url\(#(.*)\)/,_0x21402a(0x1ff)['concat'](_0x4bd056['idSuffix'],')')));});var _0xb2fdc=_0x4bd056[_0x377c68(0x26b)];return!_0xb2fdc||_0xb2fdc[_0x377c68(0x21c)]===0x0||(_0x21daa4[_0x377c68(0x23e)]===_0x377c68(0x297)&&_0x17be9a['xlink:href']&&(_0x17be9a[_0x377c68(0x1e5)]=_0x17be9a[_0x377c68(0x1e5)]+_0x4bd056[_0x377c68(0x259)]),Object[_0x377c68(0x244)](_0x17be9a)[_0x377c68(0x267)](function(_0x45663a){var _0x5113bc=_0x377c68,_0x9e47da=_0x45663a[0x0],_0x45181a=_0x45663a[0x1];typeof _0x45181a=='string'&&(_0x17be9a[_0x9e47da]=_0x45181a['replace'](/url\(#(.*)\)/,_0x5113bc(0x1ff)[_0x5113bc(0x1da)](_0x4bd056[_0x5113bc(0x259)],')')));})),_0x17be9a;}function W(_0x1ce4db,_0x2669fc){var _0x57b232=_0x577bce,_0x46508b,_0x3faa32=_0x2669fc[_0x57b232(0x26b)];return!_0x3faa32||_0x3faa32[_0x57b232(0x21c)]===0x0?_0x1ce4db:_0x1ce4db[_0x57b232(0x23e)]===_0x57b232(0x22e)&&(!((_0x46508b=_0x1ce4db[_0x57b232(0x274)])===null||_0x46508b===void 0x0)&&_0x46508b[_0x57b232(0x21c)])?u(u({},_0x1ce4db),{'children':_0x1ce4db[_0x57b232(0x274)]['map'](function(_0x1c63ba){var _0x2c1fe3=_0x57b232;return typeof _0x1c63ba[_0x2c1fe3(0x255)]['id']==_0x2c1fe3(0x26a)&&_0x3faa32&&_0x3faa32[_0x2c1fe3(0x247)](_0x1c63ba[_0x2c1fe3(0x255)]['id'])>-0x1?u(u({},_0x1c63ba),{'attrs':u(u({},_0x1c63ba['attrs']),{'id':_0x1c63ba[_0x2c1fe3(0x255)]['id']+_0x2669fc[_0x2c1fe3(0x259)]})}):_0x1c63ba;})}):_0x1ce4db;}function G(){var _0xeaa0b0=_0x577bce;return Math[_0xeaa0b0(0x284)]()[_0xeaa0b0(0x1f3)](0x24)['substring'](0x2,0x8);}j[_0x577bce(0x227)]=_0x577bce(0x273);var B={'tag':'svg','attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x577bce(0x26d),'height':_0x577bce(0x26d)},'children':[{'tag':'path','attrs':{'fill':_0x577bce(0x250),'d':_0x577bce(0x288)}},{'tag':_0x577bce(0x1e8),'attrs':{'fill':_0x577bce(0x250),'d':_0x577bce(0x2b1),'fillRule':_0x577bce(0x210),'clipRule':_0x577bce(0x210)}}]},P=f[_0x577bce(0x28d)](function(_0x1c14e3,_0x45379a){return f['createElement'](j,Object['assign']({},_0x1c14e3,{'id':'live-share-single','ref':_0x45379a,'icon':B}));});P['displayName']=_0x577bce(0x25b);var Y=Object[_0x577bce(0x28f)],R=(_0x454271,_0x4df6f6,_0x7b6bc,_0xebcbd1)=>{for(var _0x241819=_0xebcbd1>0x1?void 0x0:_0xebcbd1?Y(_0x4df6f6,_0x7b6bc):_0x4df6f6,_0x2ef97b=_0x454271['length']-0x1,_0x4e029f;_0x2ef97b>=0x0;_0x2ef97b--)(_0x4e029f=_0x454271[_0x2ef97b])&&(_0x241819=_0x4e029f(_0x241819)||_0x241819);return _0x241819;},S=(_0x2114be,_0x32bfa6)=>(_0x4d2628,_0x41875c)=>_0x32bfa6(_0x4d2628,_0x41875c,_0x2114be);exports[_0x577bce(0x1de)]=class extends o[_0x577bce(0x1ea)]{constructor(_0x1abfd8,_0x19874e,_0x17eb78){var _0xa96862=_0x577bce;super(),v(this,_0xa96862(0x281),new Map()),(this[_0xa96862(0x26c)]=_0x1abfd8,this[_0xa96862(0x21f)]=_0x19874e,this[_0xa96862(0x2ad)]=_0x17eb78,this[_0xa96862(0x28e)]());}async[_0x577bce(0x1ef)](_0x3d74ba){var _0x32d3f9=_0x577bce;return this[_0x32d3f9(0x281)][_0x32d3f9(0x2ac)](_0x3d74ba)||await this[_0x32d3f9(0x24e)](_0x3d74ba),this[_0x32d3f9(0x281)][_0x32d3f9(0x220)](_0x3d74ba);}[_0x577bce(0x28e)](){var _0x1cb265=_0x577bce;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x1cb265(0x21e)]['UNIVER_SHEET'])[_0x1cb265(0x219)](b['takeUntil'](this[_0x1cb265(0x1f7)]))['subscribe'](async _0x45f602=>{var _0x449743=_0x1cb265;const _0x445749=_0x45f602[_0x449743(0x1e1)]();this['_entities'][_0x449743(0x2ac)](_0x445749)||this[_0x449743(0x24e)](_0x445749);}),this['_univerInstanceService'][_0x1cb265(0x217)](o[_0x1cb265(0x21e)][_0x1cb265(0x29b)])[_0x1cb265(0x219)](b[_0x1cb265(0x1ee)](this[_0x1cb265(0x1f7)]))[_0x1cb265(0x270)](_0x224fe7=>{var _0x21720c=_0x1cb265;const _0x55e58e=_0x224fe7['getUnitId'](),_0x4b0463=this[_0x21720c(0x281)]['get'](_0x55e58e);_0x4b0463==null||_0x4b0463[_0x21720c(0x226)]();});}async[_0x577bce(0x24e)](_0x3b114f){var _0x42282c=_0x577bce;const _0x4e55c8=await this['_collabSessionService']['requireSession'](_0x3b114f),_0x549204=this[_0x42282c(0x21f)]['createInstance'](exports[_0x42282c(0x1f5)],_0x3b114f,_0x4e55c8);return _0x549204['init'](),this['_entities'][_0x42282c(0x257)](_0x3b114f,_0x549204),_0x549204;}},exports[_0x577bce(0x1de)]=R([S(0x0,o[_0x577bce(0x2ab)]),S(0x1,o['Inject'](o[_0x577bce(0x240)])),S(0x2,o[_0x577bce(0x236)](m[_0x577bce(0x221)]))],exports[_0x577bce(0x1de)]);var h=(_0x3842be=>(_0x3842be[_0x577bce(0x209)]=_0x577bce(0x232),_0x3842be[_0x577bce(0x20d)]=_0x577bce(0x28b),_0x3842be[_0x577bce(0x2a1)]=_0x577bce(0x27b),_0x3842be['NOT_FOLLOWING']='not-following',_0x3842be['PRESENTING']=_0x577bce(0x241),_0x3842be))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports[_0x577bce(0x1f5)]=class extends o[_0x577bce(0x1ea)]{constructor(_0x4c8df6,_0x5dc6e1,_0x516759,_0x473ea8,_0x9d0ec4){var _0x58bada=_0x577bce;super(),v(this,_0x58bada(0x248),new x[(_0x58bada(0x26e))](_0x58bada(0x28b))),v(this,_0x58bada(0x2b4),this['_status$']['asObservable']()),v(this,_0x58bada(0x28e),!0x1),v(this,_0x58bada(0x2a2),null),v(this,'_presenter',null),(this['_unitID']=_0x4c8df6,this['_collabSession']=_0x5dc6e1,this['_configService']=_0x516759,this[_0x58bada(0x237)]=_0x473ea8,this[_0x58bada(0x2a5)]=_0x9d0ec4);}get[_0x577bce(0x20b)](){var _0xf88061=_0x577bce;return this[_0xf88061(0x248)][_0xf88061(0x29c)]();}[_0x577bce(0x226)](){var _0x213fec=_0x577bce,_0x515543;(_0x515543=this[_0x213fec(0x2a2)])==null||_0x515543[_0x213fec(0x226)](),this[_0x213fec(0x248)][_0x213fec(0x2b0)]('idle'),this['_status$'][_0x213fec(0x25e)]();}[_0x577bce(0x2b7)](){var _0x433522=_0x577bce;this['_init']||(this['_init']=!0x0,this[_0x433522(0x28a)][_0x433522(0x2b5)][_0x433522(0x219)](b[_0x433522(0x1ee)](this['dispose$']))[_0x433522(0x270)](_0x519ef9=>{var _0x36473a=_0x433522;switch(_0x519ef9){case m['SessionStatus'][_0x36473a(0x209)]:this[_0x36473a(0x1e4)]();break;case m[_0x36473a(0x1fb)][_0x36473a(0x2b6)]:this[_0x36473a(0x294)]();break;}}),this['_collabSession'][_0x433522(0x218)][_0x433522(0x219)](b[_0x433522(0x1ee)](this['dispose$']))[_0x433522(0x270)](_0x54ec97=>{var _0x3f42ea=_0x433522;const {eventID:_0x4b04be}=_0x54ec97;switch(_0x4b04be){case _[_0x3f42ea(0x254)][_0x3f42ea(0x2a0)]:this[_0x3f42ea(0x243)](_0x54ec97);break;case _[_0x3f42ea(0x254)][_0x3f42ea(0x293)]:this[_0x3f42ea(0x20e)](_0x54ec97);break;case _[_0x3f42ea(0x254)][_0x3f42ea(0x2a7)]:this['_handleTerminate']();break;case _[_0x3f42ea(0x254)][_0x3f42ea(0x231)]:this[_0x3f42ea(0x278)](_0x54ec97);break;}}));}[_0x577bce(0x242)](){var _0x34a645=_0x577bce;this[_0x34a645(0x28a)][_0x34a645(0x282)]({'eventID':_[_0x34a645(0x254)][_0x34a645(0x215)],'data':{'unitID':this[_0x34a645(0x299)],'userID':this[_0x34a645(0x28a)][_0x34a645(0x201)]()}},this[_0x34a645(0x299)]);}['stopPresenting'](){var _0x38dca1=_0x577bce;this[_0x38dca1(0x20b)]==='presenting'&&(this[_0x38dca1(0x248)]['next']('idle'),this[_0x38dca1(0x28a)][_0x38dca1(0x282)]({'eventID':_[_0x38dca1(0x254)][_0x38dca1(0x2a7)],'data':{'unitID':this[_0x38dca1(0x299)]}},this['_unitID']));}[_0x577bce(0x295)](){var _0x3594ff=_0x577bce;this['_status']===_0x3594ff(0x21a)&&(this[_0x3594ff(0x248)][_0x3594ff(0x2b0)]('following'),this['_startFollowing']());}['stopFollowing'](){var _0x291c13=_0x577bce;this[_0x291c13(0x20b)]==='following'&&this[_0x291c13(0x27a)]();}[_0x577bce(0x243)](_0x2c7182){var _0x518cde=_0x577bce;const {presenter:_0x2d1262}=_0x2c7182['data'],_0x2ee3c5=this[_0x518cde(0x28a)][_0x518cde(0x201)]();this[_0x518cde(0x1e6)]=_0x2d1262,_0x2d1262===_0x2ee3c5?(this[_0x518cde(0x27a)](),this['_startPresenting']()):this[_0x518cde(0x20b)]!==_0x518cde(0x21a)&&(this[_0x518cde(0x23b)](),this[_0x518cde(0x1d8)]());}[_0x577bce(0x253)](){var _0x15beea=_0x577bce;const _0x4d5a76={'eventID':_[_0x15beea(0x254)][_0x15beea(0x296)]};this[_0x15beea(0x28a)][_0x15beea(0x282)](_0x4d5a76,this[_0x15beea(0x299)]);}['_handleTerminate'](){var _0xe0d27c=_0x577bce;this[_0xe0d27c(0x1e6)]=null,this[_0xe0d27c(0x20b)]!==_0xe0d27c(0x241)&&this[_0xe0d27c(0x24d)]();}[_0x577bce(0x278)](_0x2eb435){var _0x5af4f5=_0x577bce;if(this['_status']===_0x5af4f5(0x27b)&&this[_0x5af4f5(0x1e6)]===_0x2eb435[_0x5af4f5(0x23d)]['memberID']){const _0x21f31f=_[_0x5af4f5(0x239)](_0x2eb435['data'])['mutations']['reverse']()[_0x5af4f5(0x22a)](_0x29d43e=>_0x29d43e['id']===C[_0x5af4f5(0x245)]['id']);if(_0x21f31f){const _0x4cedc3=_0x21f31f[_0x5af4f5(0x1fd)][_0x5af4f5(0x25a)],_0x195651=_0x21f31f['params'][_0x5af4f5(0x27c)]['id'];setTimeout(()=>{var _0x26e3bf=_0x5af4f5;this[_0x26e3bf(0x2a5)][_0x26e3bf(0x1d9)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x4cedc3,'subUnitId':_0x195651},{'fromCollab':!0x0});});}}}[_0x577bce(0x2a4)](){var _0x173da4=_0x577bce;this['_status$'][_0x173da4(0x2b0)](_0x173da4(0x241));const _0x24f0d0=new Map(),_0x324e5b=this[_0x173da4(0x2a2)]=new o[(_0x173da4(0x216))]();_0x324e5b[_0x173da4(0x1f4)](o[_0x173da4(0x249)](()=>{var _0x28f2ba=_0x173da4;_0x24f0d0[_0x28f2ba(0x267)](_0x1857a0=>_0x1857a0[_0x28f2ba(0x25e)]()),_0x24f0d0[_0x28f2ba(0x1e3)]();})),_0x324e5b[_0x173da4(0x1f4)](this[_0x173da4(0x2a5)][_0x173da4(0x260)](_0x294ff9=>{var _0x59d178=_0x173da4,_0x3b00f5;if(_0x294ff9[_0x59d178(0x1d7)]!==o[_0x59d178(0x202)][_0x59d178(0x287)]||!this['_liveShareService'][_0x59d178(0x206)](_0x294ff9['id']))return;const {id:_0x1cacab}=_0x294ff9;let _0x4f667f;_0x24f0d0[_0x59d178(0x2ac)](_0x1cacab)?_0x4f667f=_0x24f0d0[_0x59d178(0x220)](_0x1cacab):(_0x4f667f=new x[(_0x59d178(0x25c))](),_0x24f0d0[_0x59d178(0x257)](_0x1cacab,_0x4f667f),_0x4f667f[_0x59d178(0x219)](b[_0x59d178(0x1dd)]((_0x3b00f5=this[_0x59d178(0x235)][_0x59d178(0x1ed)](Z))!=null?_0x3b00f5:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2d483d=>{var _0x45c18a=_0x59d178;this[_0x45c18a(0x28a)][_0x45c18a(0x282)]({'eventID':_[_0x45c18a(0x254)][_0x45c18a(0x293)],'data':{'unitID':this[_0x45c18a(0x299)],'operations':{[_0x2d483d['id']]:{'id':_0x2d483d['id'],'params':JSON[_0x45c18a(0x207)](_0x2d483d[_0x45c18a(0x1fd)])}}}},this[_0x45c18a(0x299)]);})),_0x4f667f[_0x59d178(0x2b0)](_0x294ff9);})),this[_0x173da4(0x237)][_0x173da4(0x252)](this[_0x173da4(0x299)])[_0x173da4(0x267)](_0x105af3=>this[_0x173da4(0x28a)][_0x173da4(0x282)]({'eventID':_[_0x173da4(0x254)][_0x173da4(0x293)],'data':{'unitID':this[_0x173da4(0x299)],'operations':{[_0x105af3['id']]:{'id':_0x105af3['id'],'params':JSON[_0x173da4(0x207)](_0x105af3[_0x173da4(0x1fd)])}}}},this[_0x173da4(0x299)]));}[_0x577bce(0x23b)](){var _0x14f293=_0x577bce,_0x230956;this[_0x14f293(0x248)][_0x14f293(0x2b0)]('idle'),(_0x230956=this['_commandDisposable'])==null||_0x230956[_0x14f293(0x226)](),this[_0x14f293(0x2a2)]=null;}[_0x577bce(0x1d8)](){var _0x5efbc7=_0x577bce,_0x14db7b;(_0x14db7b=this[_0x5efbc7(0x2a2)])==null||_0x14db7b[_0x5efbc7(0x226)](),this[_0x5efbc7(0x248)]['next'](_0x5efbc7(0x27b));}['_beIdle'](){var _0xaa08a0=_0x577bce,_0x499aeb;this[_0xaa08a0(0x248)]['next'](_0xaa08a0(0x28b)),(_0x499aeb=this['_commandDisposable'])==null||_0x499aeb['dispose'](),this[_0xaa08a0(0x2a2)]=null;}[_0x577bce(0x27a)](){var _0x3e4d92=_0x577bce,_0x3b3b0b;this[_0x3e4d92(0x248)][_0x3e4d92(0x2b0)](_0x3e4d92(0x21a)),(_0x3b3b0b=this[_0x3e4d92(0x2a2)])==null||_0x3b3b0b[_0x3e4d92(0x226)]();}[_0x577bce(0x20e)](_0x22e533){var _0x4a4bbe=_0x577bce;if([_0x4a4bbe(0x241),_0x4a4bbe(0x21a),_0x4a4bbe(0x232)][_0x4a4bbe(0x205)](this[_0x4a4bbe(0x20b)])||!_0x22e533['data']['presenter']||_0x22e533[_0x4a4bbe(0x23d)][_0x4a4bbe(0x1f9)]===this[_0x4a4bbe(0x28a)]['getMemberID']())return;this['_status']===_0x4a4bbe(0x28b)&&this[_0x4a4bbe(0x1d8)]();const _0x4c0387=_0x22e533[_0x4a4bbe(0x23d)][_0x4a4bbe(0x213)];Object[_0x4a4bbe(0x23a)](_0x4c0387)['forEach'](_0x5e1ceb=>{var _0x17e142=_0x4a4bbe;this[_0x17e142(0x2a5)]['executeCommand'](_0x5e1ceb['id'],_0x5e1ceb[_0x17e142(0x1fd)]?JSON[_0x17e142(0x214)](_0x5e1ceb['params']):null,{'fromCollab':!0x0});});}[_0x577bce(0x1e4)](){var _0x22c98f=_0x577bce,_0x266a13;this[_0x22c98f(0x248)]['next'](_0x22c98f(0x232)),(_0x266a13=this[_0x22c98f(0x2a2)])==null||_0x266a13[_0x22c98f(0x226)]();}[_0x577bce(0x294)](){var _0x2ae22f=_0x577bce;this[_0x2ae22f(0x248)]['next'](_0x2ae22f(0x28b)),this[_0x2ae22f(0x253)]();}},exports[_0x577bce(0x1f5)]=R([S(0x2,o[_0x577bce(0x1f1)]),S(0x3,o[_0x577bce(0x236)](E)),S(0x4,o[_0x577bce(0x2af)])],exports[_0x577bce(0x1f5)]);function A(){var _0x36db84=_0x577bce;const _0x3bfcf3=p[_0x36db84(0x22c)](exports[_0x36db84(0x1de)]),_0x5bd4a3=p['useDependency'](o['IUniverInstanceService']),_0xdf70c1=p['useObservable'](()=>_0x5bd4a3[_0x36db84(0x263)](o[_0x36db84(0x21e)][_0x36db84(0x29b)]),void 0x0,!0x1,[]),[_0x262def,_0x5ca774]=f['useState'](null),[_0x5c34f2,_0x28e20a]=f[_0x36db84(0x204)](h['IDLE']),_0x448019=f['useRef'](null);return f['useEffect'](()=>(_0xdf70c1&&_0x3bfcf3['getLiveShareCoordinator'](_0xdf70c1[_0x36db84(0x1e1)]())['then'](_0x2acaaa=>{var _0x17a8ea=_0x36db84;_0x5ca774(_0x2acaaa),_0x448019[_0x17a8ea(0x277)]=_0x2acaaa['status$']['subscribe'](_0x5512d5=>{_0x28e20a(_0x5512d5);});}),()=>{var _0xf68cae=_0x36db84,_0x5d6abc;(_0x5d6abc=_0x448019[_0xf68cae(0x277)])==null||_0x5d6abc[_0xf68cae(0x246)](),_0x448019[_0xf68cae(0x277)]=null;}),[_0xdf70c1,_0x3bfcf3]),_0x262def?l['jsx'](g[_0x36db84(0x276)],{'align':'end','disabled':_0x5c34f2===h['OFFLINE'],'className':_0x36db84(0x2a9),'overlay':l[_0x36db84(0x222)](K,{'status':_0x5c34f2,'coordinator':_0x262def}),'children':l['jsx']('button',{'className':g[_0x36db84(0x1e9)](_0x36db84(0x200),{'univer-cursor-not-allowed':_0x5c34f2===h[_0x36db84(0x209)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5c34f2!==h[_0x36db84(0x209)]}),'type':_0x36db84(0x266),'children':l['jsx'](P,{'className':_0x36db84(0x211)})})}):null;}function K(_0x17ee7f){var _0x458108=_0x577bce;const {status:_0x154333,coordinator:_0x42557b}=_0x17ee7f;switch(_0x154333){case h[_0x458108(0x20d)]:return l[_0x458108(0x222)](z,{'coordinator':_0x42557b});case h['FOLLOWING']:return l[_0x458108(0x222)](Q,{'coordinator':_0x42557b});case h['NOT_FOLLOWING']:return l[_0x458108(0x222)](X,{'coordinator':_0x42557b});case h[_0x458108(0x209)]:return l[_0x458108(0x222)](te,{});case h[_0x458108(0x1eb)]:return l['jsx'](ee,{'coordinator':_0x42557b});default:return null;}}function z(_0xf53260){var _0x53fe1d=_0x577bce;const {coordinator:_0x172836}=_0xf53260;return l[_0x53fe1d(0x238)](l[_0x53fe1d(0x1f8)],{'children':[l[_0x53fe1d(0x222)](_0x53fe1d(0x29d),{'className':_0x53fe1d(0x262),'children':_0x53fe1d(0x208)}),l[_0x53fe1d(0x222)](g['Button'],{'onClick':()=>_0x172836[_0x53fe1d(0x242)](),'children':'Start'})]});}function Q(_0x484992){var _0x113280=_0x577bce;const {coordinator:_0x3614ba}=_0x484992;return l[_0x113280(0x238)](l[_0x113280(0x1f8)],{'children':[l[_0x113280(0x222)]('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x113280(0x2a3)}),l[_0x113280(0x222)](g[_0x113280(0x21b)],{'onClick':()=>_0x3614ba[_0x113280(0x20c)](),'children':'Stop\x20following'})]});}function X(_0x26775c){var _0x6b70a7=_0x577bce;const {coordinator:_0x370bff}=_0x26775c;return l[_0x6b70a7(0x238)](l[_0x6b70a7(0x1f8)],{'children':[l[_0x6b70a7(0x222)]('div',{'className':_0x6b70a7(0x262),'children':_0x6b70a7(0x2b2)}),l[_0x6b70a7(0x222)](g[_0x6b70a7(0x21b)],{'variant':_0x6b70a7(0x289),'onClick':()=>_0x370bff[_0x6b70a7(0x295)](),'children':_0x6b70a7(0x2a6)})]});}function ee(_0x19b6e9){var _0x458f66=_0x577bce;const {coordinator:_0xc908e}=_0x19b6e9;return l[_0x458f66(0x238)](l[_0x458f66(0x1f8)],{'children':[l[_0x458f66(0x222)]('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x458f66(0x271)}),l[_0x458f66(0x222)](g[_0x458f66(0x21b)],{'variant':'default','onClick':()=>_0xc908e[_0x458f66(0x1e2)](),'children':'Stop\x20presenting'})]});}function te(){var _0x7e7546=_0x577bce;return l[_0x7e7546(0x222)](l[_0x7e7546(0x1f8)],{'children':_0x7e7546(0x22f)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x48428b,_0x50b3bf,_0x3581b1,_0x49689f)=>{var _0x27dc9c=_0x577bce;for(var _0x51d825=_0x49689f>0x1?void 0x0:_0x49689f?ie(_0x50b3bf,_0x3581b1):_0x50b3bf,_0x2ef7d1=_0x48428b[_0x27dc9c(0x21c)]-0x1,_0x2060be;_0x2ef7d1>=0x0;_0x2ef7d1--)(_0x2060be=_0x48428b[_0x2ef7d1])&&(_0x51d825=_0x2060be(_0x51d825)||_0x51d825);return _0x51d825;},N=(_0x4ca091,_0x698f3e)=>(_0x4d86a6,_0x500aa3)=>_0x698f3e(_0x4d86a6,_0x500aa3,_0x4ca091);exports[_0x577bce(0x283)]=class extends o[_0x577bce(0x229)]{constructor(_0x5ec964,_0x12fc34){var _0x142d89=_0x577bce;super(),this[_0x142d89(0x21f)]=_0x5ec964,this['_uiPartsService']=_0x12fc34,this[_0x142d89(0x2b3)]();}[_0x577bce(0x2b3)](){var _0x26966c=_0x577bce;this['disposeWithMe'](this[_0x26966c(0x265)][_0x26966c(0x285)](p['BuiltInUIPart']['HEADER_MENU'],()=>p['connectInjector'](A,this['_injector'])));}},exports['DesktopLiveShareController']=ne([N(0x0,o[_0x577bce(0x236)](o[_0x577bce(0x240)])),N(0x1,p[_0x577bce(0x27d)])],exports[_0x577bce(0x283)]);var re=Object[_0x577bce(0x29f)],se=Object[_0x577bce(0x28f)],oe=(_0x4c40ad,_0x1b9acc,_0x4b0f45)=>_0x1b9acc in _0x4c40ad?re(_0x4c40ad,_0x1b9acc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b0f45}):_0x4c40ad[_0x1b9acc]=_0x4b0f45,ae=(_0x4b795c,_0xb3edb1,_0x523893,_0x4e8c)=>{var _0x454fc9=_0x577bce;for(var _0x2d55f5=_0x4e8c>0x1?void 0x0:_0x4e8c?se(_0xb3edb1,_0x523893):_0xb3edb1,_0x59b3b0=_0x4b795c[_0x454fc9(0x21c)]-0x1,_0x4860d2;_0x59b3b0>=0x0;_0x59b3b0--)(_0x4860d2=_0x4b795c[_0x59b3b0])&&(_0x2d55f5=_0x4860d2(_0x2d55f5)||_0x2d55f5);return _0x2d55f5;},w=(_0x3f4dd5,_0x32ab6b)=>(_0x5c4ee2,_0x2546bc)=>_0x32ab6b(_0x5c4ee2,_0x2546bc,_0x3f4dd5),T=(_0x43d395,_0x125084,_0x256768)=>oe(_0x43d395,typeof _0x125084!=_0x577bce(0x223)?_0x125084+'':_0x125084,_0x256768);const le=_0x577bce(0x225);exports[_0x577bce(0x269)]=class extends o['Plugin']{constructor(_0x2d8723=L,_0x56e9ac,_0x5c3f95){var _0x596476=_0x577bce;super(),this['_config']=_0x2d8723,this[_0x596476(0x21f)]=_0x56e9ac,this[_0x596476(0x235)]=_0x5c3f95;const {..._0x142baa}=o['merge']({},L,this['_config']);this[_0x596476(0x235)][_0x596476(0x203)]($,_0x142baa);}[_0x577bce(0x286)](){var _0x47cc01=_0x577bce;o[_0x47cc01(0x230)](this[_0x47cc01(0x21f)],o[_0x47cc01(0x25f)]([[E],[exports[_0x47cc01(0x1de)]],[O],[exports[_0x47cc01(0x283)]]],this[_0x47cc01(0x1dc)][_0x47cc01(0x291)])),o[_0x47cc01(0x20f)](this[_0x47cc01(0x21f)],[[O]]);}[_0x577bce(0x20a)](){var _0x3d8d64=_0x577bce;o[_0x3d8d64(0x20f)](this[_0x3d8d64(0x21f)],[[exports[_0x3d8d64(0x283)]]]);}},T(exports[_0x577bce(0x269)],_0x577bce(0x1d7),o['UniverInstanceType']['UNIVER_UNKNOWN']),T(exports[_0x577bce(0x269)],_0x577bce(0x1df),le),exports['UniverLiveSharePlugin']=ae([o[_0x577bce(0x23c)](m[_0x577bce(0x23f)]),w(0x1,o['Inject'](o[_0x577bce(0x240)])),w(0x2,o[_0x577bce(0x1f1)])],exports['UniverLiveSharePlugin']),exports[_0x577bce(0x24b)]=A,exports[_0x577bce(0x29e)]=E,exports[_0x577bce(0x212)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x3fcdaf=_0x25a1;(function(_0x4d672a,_0x24fba6){var _0x54399d=_0x25a1,_0x4e63b9=_0x4d672a();while(!![]){try{var _0x22af4f=parseInt(_0x54399d(0x1de))/0x1+-parseInt(_0x54399d(0x1fa))/0x2+-parseInt(_0x54399d(0x1c9))/0x3+-parseInt(_0x54399d(0x1c3))/0x4*(parseInt(_0x54399d(0x207))/0x5)+-parseInt(_0x54399d(0x1ed))/0x6*(parseInt(_0x54399d(0x1f0))/0x7)+-parseInt(_0x54399d(0x203))/0x8*(parseInt(_0x54399d(0x1bd))/0x9)+parseInt(_0x54399d(0x1b3))/0xa;if(_0x22af4f===_0x24fba6)break;else _0x4e63b9['push'](_0x4e63b9['shift']());}catch(_0x87228){_0x4e63b9['push'](_0x4e63b9['shift']());}}}(_0x11ac,0x5b937));var q=Object[_0x3fcdaf(0x1c6)],z=(_0x33f732,_0x12f0fb,_0x4db4b3)=>_0x12f0fb in _0x33f732?q(_0x33f732,_0x12f0fb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4db4b3}):_0x33f732[_0x12f0fb]=_0x4db4b3,d=(_0x14626c,_0x3e7667,_0x3d3703)=>z(_0x14626c,typeof _0x3e7667!=_0x3fcdaf(0x1a5)?_0x3e7667+'':_0x3e7667,_0x3d3703);import{CollaborationSessionService as _0x1c88e5,SessionStatus as _0x39743e,UniverCollaborationClientPlugin as _0x1df655}from'@univerjs-pro/collaboration-client';import{Disposable as _0x44f2cd,toDisposable as _0x318a6b,Inject as _0x9a82ee,IUniverInstanceService as _0x222400,Injector as _0xc9b6d3,IConfigService as _0x3de5df,ICommandService as _0x571f4b,RxDisposable as _0x167f70,UniverInstanceType as _0x507f24,DisposableCollection as _0x3b22fb,CommandType as _0x1728f8,DependentOn as _0x3730da,Plugin as _0x411b9e,merge as _0x596cea,registerDependencies as _0x5b4edf,mergeOverrideWithDependencies as _0x44214c,touchDependencies as _0x5e1ba2}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3cfc48,InsertSheetMutation as _0x4c632e}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x48f814,SetScrollOperation as _0xd2cb88}from'@univerjs/sheets-ui';import{useDependency as _0x53df57,useObservable as _0xd11abe,IUIPartsService as _0x4bf856,BuiltInUIPart as _0x896a64,connectInjector as _0x50a59d}from'@univerjs/ui';function _0x11ac(){var _0x474cac=['_uiPartsService','getValue','_collabSession','includes','UNIVER_UNKNOWN','live-share.config','idSuffix','following','11742620mlcEsg','icon','default','parse','getTypeOfUnitAdded$','operations','UNIVER_SHEET','data','_collabSessionService','path','10971mUnxHq','getInitialStates','getUnitId','mutations','NOT_FOLLOWING','requireSession','660124wPrugS','find','from','defineProperty','assign','subscribe','2128998QFzEcv','trim','_handleOffline','unitId','You\x27re\x20not\x20following\x20the\x20presenter','_fetchOperations','_startFollowing','_handleOperation','UNIVER_LIVE_SHARE_PLUGIN','_handleNewHost','stopPresenting','clear','presenting','getMemberID','LIVESHARE_OPERATION','prototype','indexOf','presenter','call','IDLE','_config','540273Zfscqk','registerInitialStateReporter','extend','dispose$','end','HEADER_MENU','registerSharedOperation','random','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','getOwnPropertyDescriptor','ONLINE','propertyIsEnumerable','1em','sessionStatus$','function','1256982ZsAdbq','_startLiveShareCoordinator','_status','7ysKeoD','div','You\x27are\x20offline.','_stopFollowing','onRendered','univer-w-full\x20univer-mb-3\x20univer-text-sm','set','getLiveShareCoordinator','dispose','pluginName','7332NsFQrH','unsubscribe','FOLLOWING','has','delete','replace','status$','_startPresenting','attrs','568cblJYZ','entries','Start','evenodd','10ZhqOgs','createInstance','length','sheet','_init','_entities','shouldShareOperation','not-following','_handleTerminate','defIds','use','LIVESHARE_REQUEST_HOST','override','Present\x20this\x20document','setConfig','init','complete','event$','LIVESHARE_FETCH_OPERATIONS','xlink:href','_commandDisposable','colorChannel1','children','string','disposeWithMe','type','mask','_univerInstanceService','get','reverse','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','stopFollowing','OFFLINE','getOwnPropertySymbols','_beIdle','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','url(#$1','text','current','concat','tag','getCurrentTypeOfUnit$','_injector','button','forEach','displayName','asObservable','getTypeOfUnitDisposed$','UniverIcon','univerjs-icon\x20univerjs-icon-','add','0\x200\x2016\x2016','stringify','then','_handleNewChangeSets','hasOwnProperty','Start\x20following','_configService','_handleOnline','tryStartPresenting','svg','params','offline','idle','LIVESHARE_NEW_HOST','values','Stop\x20presenting','_commandService','className','executeCommand','_presenter','onCommandExecuted','_liveShareService','_reporters','map','_sharedOperations','none','pipe','memberID','live-share-single','_status$','currentColor','send','Stop\x20following','substring','symbol','_mountLiveShare','univer-size-4','next','_unitID','fill'];_0x11ac=function(){return _0x474cac;};return _0x11ac();}import{jsx as _0xa1dd95,jsxs as _0x22e12f,Fragment as _0x1222e5}from'react/jsx-runtime';import{Dropdown as _0x12643e,clsx as _0x3635fb,Button as _0x3522ab}from'@univerjs/design';import{forwardRef as _0xd2827d,useRef as _0xb9fd4a,createElement as _0x5f3ba9,useState as _0x53fc5a,useEffect as _0x57fba0}from'react';import{CollaborationEvent as _0x35f1b9,parseProtocolChangeset as _0x30cec3}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x37a185,Subject as _0x33a2b2}from'rxjs';import{takeUntil as _0x580f25,throttleTime as _0x260576}from'rxjs/operators';const Oe=_0x3fcdaf(0x1b0),T={};class L extends _0x44f2cd{constructor(){var _0x555f04=_0x3fcdaf;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x555f04(0x250),new Set());}[_0x3fcdaf(0x1e4)](_0x39a294){var _0x323e5d=_0x3fcdaf;return this[_0x323e5d(0x252)][_0x323e5d(0x239)](_0x39a294),_0x318a6b(()=>this[_0x323e5d(0x252)][_0x323e5d(0x1fe)](_0x39a294));}[_0x3fcdaf(0x1df)](_0x334679){var _0x3fe2c1=_0x3fcdaf;return this[_0x3fe2c1(0x250)][_0x3fe2c1(0x239)](_0x334679),_0x318a6b(()=>this[_0x3fe2c1(0x250)][_0x3fe2c1(0x1fe)](_0x334679));}[_0x3fcdaf(0x20d)](_0x1b9cbe){var _0x5d2e6f=_0x3fcdaf;return this[_0x5d2e6f(0x252)]['has'](_0x1b9cbe);}['getInitialStates'](_0x481169){var _0x4bec6f=_0x3fcdaf;return Array[_0x4bec6f(0x1c5)](this[_0x4bec6f(0x250)])[_0x4bec6f(0x251)](_0x15427a=>_0x15427a(_0x481169));}}var Ee=Object['getOwnPropertyDescriptor'],Ce=(_0x31f9a7,_0xa56a10,_0x2eb30a,_0x5d6360)=>{var _0x599783=_0x3fcdaf;for(var _0x3465c2=_0x5d6360>0x1?void 0x0:_0x5d6360?Ee(_0xa56a10,_0x2eb30a):_0xa56a10,_0x58dc3b=_0x31f9a7[_0x599783(0x209)]-0x1,_0x4bcae8;_0x58dc3b>=0x0;_0x58dc3b--)(_0x4bcae8=_0x31f9a7[_0x58dc3b])&&(_0x3465c2=_0x4bcae8(_0x3465c2)||_0x3465c2);return _0x3465c2;},Ne=(_0x42b3e9,_0x3fcda2)=>(_0x2f7470,_0x2898b3)=>_0x3fcda2(_0x2f7470,_0x2898b3,_0x42b3e9);let m=class extends _0x44f2cd{constructor(_0x564d7c){var _0x18906f=_0x3fcdaf;super(),this[_0x18906f(0x24f)]=_0x564d7c,this['_init']();}[_0x3fcdaf(0x20b)](){[_0x48f814['id'],_0xd2cb88['id'],_0x3cfc48['id']]['forEach'](_0x4da95a=>{var _0x1f9a54=_0x25a1;this[_0x1f9a54(0x21f)](this['_liveShareService']['registerSharedOperation'](_0x4da95a));});}};function _0x25a1(_0xd0958f,_0x235a84){var _0x11ac7c=_0x11ac();return _0x25a1=function(_0x25a1b7,_0x1aff91){_0x25a1b7=_0x25a1b7-0x19c;var _0x307b62=_0x11ac7c[_0x25a1b7];return _0x307b62;},_0x25a1(_0xd0958f,_0x235a84);}m=Ce([Ne(0x0,_0x9a82ee(L))],m);var c=function(){var _0x11068e=_0x3fcdaf;return c=Object[_0x11068e(0x1c7)]||function(_0x59b78b){var _0x27081e=_0x11068e;for(var _0x28375a,_0x52f566=0x1,_0x4159a8=arguments[_0x27081e(0x209)];_0x52f566<_0x4159a8;_0x52f566++){_0x28375a=arguments[_0x52f566];for(var _0x3a0c75 in _0x28375a)Object['prototype'][_0x27081e(0x23e)][_0x27081e(0x1db)](_0x28375a,_0x3a0c75)&&(_0x59b78b[_0x3a0c75]=_0x28375a[_0x3a0c75]);}return _0x59b78b;},c['apply'](this,arguments);},we=function(_0x53dd1c,_0x2edcec){var _0x1fcc17=_0x3fcdaf,_0x43028c={};for(var _0x46fd07 in _0x53dd1c)Object[_0x1fcc17(0x1d8)][_0x1fcc17(0x23e)][_0x1fcc17(0x1db)](_0x53dd1c,_0x46fd07)&&_0x2edcec[_0x1fcc17(0x1d9)](_0x46fd07)<0x0&&(_0x43028c[_0x46fd07]=_0x53dd1c[_0x46fd07]);if(_0x53dd1c!=null&&typeof Object[_0x1fcc17(0x228)]==_0x1fcc17(0x1ec)){for(var _0x9957cd=0x0,_0x46fd07=Object['getOwnPropertySymbols'](_0x53dd1c);_0x9957cd<_0x46fd07[_0x1fcc17(0x209)];_0x9957cd++)_0x2edcec[_0x1fcc17(0x1d9)](_0x46fd07[_0x9957cd])<0x0&&Object[_0x1fcc17(0x1d8)][_0x1fcc17(0x1e9)]['call'](_0x53dd1c,_0x46fd07[_0x9957cd])&&(_0x43028c[_0x46fd07[_0x9957cd]]=_0x53dd1c[_0x46fd07[_0x9957cd]]);}return _0x43028c;},W=_0xd2827d(function(_0x296c6f,_0x3cca77){var _0x70f763=_0x3fcdaf,_0x11238e=_0x296c6f['icon'],_0x4ecc26=_0x296c6f['id'],_0x5d01f6=_0x296c6f[_0x70f763(0x24b)],_0x27ef29=_0x296c6f[_0x70f763(0x1e0)],_0x987b2=we(_0x296c6f,[_0x70f763(0x1b4),'id',_0x70f763(0x24b),_0x70f763(0x1e0)]),_0x5f4786=_0x70f763(0x238)[_0x70f763(0x22e)](_0x4ecc26,'\x20')[_0x70f763(0x22e)](_0x5d01f6||'')[_0x70f763(0x1ca)](),_0x16033f=_0xb9fd4a('_'[_0x70f763(0x22e)](Le()));return Y(_0x11238e,''[_0x70f763(0x22e)](_0x4ecc26),{'defIds':_0x11238e[_0x70f763(0x210)],'idSuffix':_0x16033f[_0x70f763(0x22d)]},c({'ref':_0x3cca77,'className':_0x5f4786},_0x987b2),_0x27ef29);});function Y(_0x1d1f2c,_0x35921f,_0x68b126,_0x4fe24e,_0x60810){var _0x2ffa4a=_0x3fcdaf;return _0x5f3ba9(_0x1d1f2c[_0x2ffa4a(0x22f)],c(c({'key':_0x35921f},De(_0x1d1f2c,_0x68b126,_0x60810)),_0x4fe24e),(xe(_0x1d1f2c,_0x68b126)[_0x2ffa4a(0x21d)]||[])[_0x2ffa4a(0x251)](function(_0x2d5738,_0x22c398){var _0x40e06b=_0x2ffa4a;return Y(_0x2d5738,''[_0x40e06b(0x22e)](_0x35921f,'-')[_0x40e06b(0x22e)](_0x1d1f2c[_0x40e06b(0x22f)],'-')[_0x40e06b(0x22e)](_0x22c398),_0x68b126,void 0x0,_0x60810);}));}function De(_0x294896,_0x45d42e,_0x19166b){var _0x47c556=_0x3fcdaf,_0x28a6d7=c({},_0x294896[_0x47c556(0x202)]);_0x19166b!=null&&_0x19166b[_0x47c556(0x21c)]&&_0x28a6d7['fill']==='colorChannel1'&&(_0x28a6d7[_0x47c556(0x1aa)]=_0x19166b['colorChannel1']),_0x294896['tag']===_0x47c556(0x221)&&_0x28a6d7['id']&&(_0x28a6d7['id']=_0x28a6d7['id']+_0x45d42e[_0x47c556(0x1b1)]),Object[_0x47c556(0x204)](_0x28a6d7)[_0x47c556(0x233)](function(_0x131a15){var _0x545d48=_0x47c556,_0xe27b47=_0x131a15[0x0],_0x497ec8=_0x131a15[0x1];_0xe27b47===_0x545d48(0x221)&&typeof _0x497ec8==_0x545d48(0x21e)&&(_0x28a6d7[_0xe27b47]=_0x497ec8[_0x545d48(0x1ff)](/url\(#(.*)\)/,_0x545d48(0x22b)['concat'](_0x45d42e[_0x545d48(0x1b1)],')')));});var _0x514f6e=_0x45d42e['defIds'];return!_0x514f6e||_0x514f6e[_0x47c556(0x209)]===0x0||(_0x294896['tag']===_0x47c556(0x211)&&_0x28a6d7[_0x47c556(0x21a)]&&(_0x28a6d7[_0x47c556(0x21a)]=_0x28a6d7[_0x47c556(0x21a)]+_0x45d42e[_0x47c556(0x1b1)]),Object[_0x47c556(0x204)](_0x28a6d7)[_0x47c556(0x233)](function(_0x25c8eb){var _0x21c936=_0x47c556,_0x94db30=_0x25c8eb[0x0],_0x3d829c=_0x25c8eb[0x1];typeof _0x3d829c==_0x21c936(0x21e)&&(_0x28a6d7[_0x94db30]=_0x3d829c[_0x21c936(0x1ff)](/url\(#(.*)\)/,_0x21c936(0x22b)['concat'](_0x45d42e[_0x21c936(0x1b1)],')')));})),_0x28a6d7;}function xe(_0x1ea667,_0x4949dd){var _0x4a562e=_0x3fcdaf,_0x37cdaf,_0x3f1b2d=_0x4949dd[_0x4a562e(0x210)];return!_0x3f1b2d||_0x3f1b2d[_0x4a562e(0x209)]===0x0?_0x1ea667:_0x1ea667['tag']==='defs'&&(!((_0x37cdaf=_0x1ea667[_0x4a562e(0x21d)])===null||_0x37cdaf===void 0x0)&&_0x37cdaf[_0x4a562e(0x209)])?c(c({},_0x1ea667),{'children':_0x1ea667[_0x4a562e(0x21d)][_0x4a562e(0x251)](function(_0x559945){var _0x55ad47=_0x4a562e;return typeof _0x559945[_0x55ad47(0x202)]['id']=='string'&&_0x3f1b2d&&_0x3f1b2d[_0x55ad47(0x1d9)](_0x559945[_0x55ad47(0x202)]['id'])>-0x1?c(c({},_0x559945),{'attrs':c(c({},_0x559945[_0x55ad47(0x202)]),{'id':_0x559945['attrs']['id']+_0x4949dd[_0x55ad47(0x1b1)]})}):_0x559945;})}):_0x1ea667;}function Le(){var _0xee673=_0x3fcdaf;return Math[_0xee673(0x1e5)]()['toString'](0x24)[_0xee673(0x1a4)](0x2,0x8);}W[_0x3fcdaf(0x234)]=_0x3fcdaf(0x237);var ye={'tag':_0x3fcdaf(0x243),'attrs':{'fill':_0x3fcdaf(0x19c),'viewBox':_0x3fcdaf(0x23a),'width':_0x3fcdaf(0x1ea),'height':_0x3fcdaf(0x1ea)},'children':[{'tag':_0x3fcdaf(0x1bc),'attrs':{'fill':'currentColor','d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':'path','attrs':{'fill':_0x3fcdaf(0x1a1),'d':_0x3fcdaf(0x1e6),'fillRule':_0x3fcdaf(0x206),'clipRule':'evenodd'}}]},B=_0xd2827d(function(_0x23b342,_0x5560b2){var _0x25772b=_0x3fcdaf;return _0x5f3ba9(W,Object[_0x25772b(0x1c7)]({},_0x23b342,{'id':_0x25772b(0x19f),'ref':_0x5560b2,'icon':ye}));});B[_0x3fcdaf(0x234)]='LiveShareSingle';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x48fc33,_0x55b7c5,_0x3d88e6,_0x14d1dc)=>{var _0x1022df=_0x3fcdaf;for(var _0x1f9625=_0x14d1dc>0x1?void 0x0:_0x14d1dc?Re(_0x55b7c5,_0x3d88e6):_0x55b7c5,_0x5a3b77=_0x48fc33[_0x1022df(0x209)]-0x1,_0x3bf937;_0x5a3b77>=0x0;_0x5a3b77--)(_0x3bf937=_0x48fc33[_0x5a3b77])&&(_0x1f9625=_0x3bf937(_0x1f9625)||_0x1f9625);return _0x1f9625;},f=(_0x336dd7,_0x201335)=>(_0x3c4363,_0xbc233f)=>_0x201335(_0x3c4363,_0xbc233f,_0x336dd7);let I=class extends _0x167f70{constructor(_0x4160b6,_0x136d08,_0x12ea06){var _0x2d397c=_0x3fcdaf;super(),d(this,_0x2d397c(0x20c),new Map()),(this['_univerInstanceService']=_0x4160b6,this[_0x2d397c(0x231)]=_0x136d08,this['_collabSessionService']=_0x12ea06,this[_0x2d397c(0x20b)]());}async[_0x3fcdaf(0x1f7)](_0x376baa){var _0x46cded=_0x3fcdaf;return this['_entities'][_0x46cded(0x1fd)](_0x376baa)||await this['_startLiveShareCoordinator'](_0x376baa),this['_entities'][_0x46cded(0x223)](_0x376baa);}[_0x3fcdaf(0x20b)](){var _0x504844=_0x3fcdaf;this[_0x504844(0x222)][_0x504844(0x1b7)](_0x507f24['UNIVER_SHEET'])['pipe'](_0x580f25(this[_0x504844(0x1e1)]))['subscribe'](async _0x1f0bf2=>{var _0x437acf=_0x504844;const _0xb93c37=_0x1f0bf2[_0x437acf(0x1bf)]();this[_0x437acf(0x20c)][_0x437acf(0x1fd)](_0xb93c37)||this[_0x437acf(0x1ee)](_0xb93c37);}),this[_0x504844(0x222)][_0x504844(0x236)](_0x507f24[_0x504844(0x1b9)])[_0x504844(0x19d)](_0x580f25(this[_0x504844(0x1e1)]))[_0x504844(0x1c8)](_0x5effe9=>{var _0x39f8dc=_0x504844;const _0x4d6694=_0x5effe9[_0x39f8dc(0x1bf)](),_0x1d16b5=this[_0x39f8dc(0x20c)][_0x39f8dc(0x223)](_0x4d6694);_0x1d16b5==null||_0x1d16b5[_0x39f8dc(0x1f8)]();});}async[_0x3fcdaf(0x1ee)](_0x404b98){var _0x1782ba=_0x3fcdaf;const _0x28d9ce=await this[_0x1782ba(0x1bb)][_0x1782ba(0x1c2)](_0x404b98),_0x248af2=this[_0x1782ba(0x231)][_0x1782ba(0x208)](w,_0x404b98,_0x28d9ce);return _0x248af2[_0x1782ba(0x216)](),this[_0x1782ba(0x20c)][_0x1782ba(0x1f6)](_0x404b98,_0x248af2),_0x248af2;}};I=Z([f(0x0,_0x222400),f(0x1,_0x9a82ee(_0xc9b6d3)),f(0x2,_0x9a82ee(_0x1c88e5))],I);var h=(_0x214d2f=>(_0x214d2f[_0x3fcdaf(0x227)]=_0x3fcdaf(0x245),_0x214d2f[_0x3fcdaf(0x1dc)]='idle',_0x214d2f[_0x3fcdaf(0x1fc)]=_0x3fcdaf(0x1b2),_0x214d2f['NOT_FOLLOWING']=_0x3fcdaf(0x20e),_0x214d2f['PRESENTING']=_0x3fcdaf(0x1d5),_0x214d2f))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let w=class extends _0x167f70{constructor(_0x4581dd,_0x5bdbf6,_0x3dd595,_0x48883b,_0x175870){var _0xc16918=_0x3fcdaf;super(),d(this,_0xc16918(0x1a0),new _0x37a185(_0xc16918(0x246))),d(this,_0xc16918(0x200),this[_0xc16918(0x1a0)][_0xc16918(0x235)]()),d(this,_0xc16918(0x20b),!0x1),d(this,_0xc16918(0x21b),null),d(this,_0xc16918(0x24d),null),(this['_unitID']=_0x4581dd,this[_0xc16918(0x1ad)]=_0x5bdbf6,this[_0xc16918(0x240)]=_0x3dd595,this[_0xc16918(0x24f)]=_0x48883b,this[_0xc16918(0x24a)]=_0x175870);}get[_0x3fcdaf(0x1ef)](){var _0x1a34f9=_0x3fcdaf;return this[_0x1a34f9(0x1a0)][_0x1a34f9(0x1ac)]();}[_0x3fcdaf(0x1f8)](){var _0x2d5834=_0x3fcdaf,_0x219e6d;(_0x219e6d=this[_0x2d5834(0x21b)])==null||_0x219e6d['dispose'](),this[_0x2d5834(0x1a0)][_0x2d5834(0x1a8)](_0x2d5834(0x246)),this[_0x2d5834(0x1a0)][_0x2d5834(0x217)]();}['init'](){var _0x2f6781=_0x3fcdaf;this['_init']||(this[_0x2f6781(0x20b)]=!0x0,this['_collabSession'][_0x2f6781(0x1eb)][_0x2f6781(0x19d)](_0x580f25(this[_0x2f6781(0x1e1)]))[_0x2f6781(0x1c8)](_0x4452b4=>{var _0x389b7f=_0x2f6781;switch(_0x4452b4){case _0x39743e['OFFLINE']:this[_0x389b7f(0x1cb)]();break;case _0x39743e[_0x389b7f(0x1e8)]:this[_0x389b7f(0x241)]();break;}}),this[_0x2f6781(0x1ad)][_0x2f6781(0x218)]['pipe'](_0x580f25(this['dispose$']))['subscribe'](_0x10a473=>{var _0x1cbc4a=_0x2f6781;const {eventID:_0x2a13a2}=_0x10a473;switch(_0x2a13a2){case _0x35f1b9[_0x1cbc4a(0x247)]:this[_0x1cbc4a(0x1d2)](_0x10a473);break;case _0x35f1b9[_0x1cbc4a(0x1d7)]:this[_0x1cbc4a(0x1d0)](_0x10a473);break;case _0x35f1b9['LIVESHARE_TERMINATE']:this[_0x1cbc4a(0x20f)]();break;case _0x35f1b9['NEW_CHANGESETS']:this[_0x1cbc4a(0x23d)](_0x10a473);break;}}));}['tryStartPresenting'](){var _0x2de7d0=_0x3fcdaf;this['_collabSession'][_0x2de7d0(0x1a2)]({'eventID':_0x35f1b9[_0x2de7d0(0x212)],'data':{'unitID':this[_0x2de7d0(0x1a9)],'userID':this[_0x2de7d0(0x1ad)][_0x2de7d0(0x1d6)]()}},this[_0x2de7d0(0x1a9)]);}[_0x3fcdaf(0x1d3)](){var _0x17a85f=_0x3fcdaf;this[_0x17a85f(0x1ef)]==='presenting'&&(this[_0x17a85f(0x1a0)][_0x17a85f(0x1a8)]('idle'),this[_0x17a85f(0x1ad)]['send']({'eventID':_0x35f1b9['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x17a85f(0x1a9)]}},this['_unitID']));}['startFollowing'](){var _0x496f13=_0x3fcdaf;this['_status']==='not-following'&&(this[_0x496f13(0x1a0)][_0x496f13(0x1a8)](_0x496f13(0x1b2)),this[_0x496f13(0x1cf)]());}[_0x3fcdaf(0x226)](){var _0x34671e=_0x3fcdaf;this[_0x34671e(0x1ef)]===_0x34671e(0x1b2)&&this[_0x34671e(0x1f3)]();}[_0x3fcdaf(0x1d2)](_0x2d1647){var _0x526b85=_0x3fcdaf;const {presenter:_0x3bb3d9}=_0x2d1647[_0x526b85(0x1ba)],_0x1fd0f1=this['_collabSession'][_0x526b85(0x1d6)]();this['_presenter']=_0x3bb3d9,_0x3bb3d9===_0x1fd0f1?(this[_0x526b85(0x1f3)](),this[_0x526b85(0x201)]()):this['_status']!==_0x526b85(0x20e)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x3fcdaf(0x1ce)](){var _0x51cf6e=_0x3fcdaf;const _0x46eae3={'eventID':_0x35f1b9[_0x51cf6e(0x219)]};this[_0x51cf6e(0x1ad)][_0x51cf6e(0x1a2)](_0x46eae3,this[_0x51cf6e(0x1a9)]);}[_0x3fcdaf(0x20f)](){var _0x545a57=_0x3fcdaf;this[_0x545a57(0x24d)]=null,this[_0x545a57(0x1ef)]!==_0x545a57(0x1d5)&&this[_0x545a57(0x229)]();}[_0x3fcdaf(0x23d)](_0x2f810c){var _0x4b7a1b=_0x3fcdaf;if(this[_0x4b7a1b(0x1ef)]==='following'&&this[_0x4b7a1b(0x24d)]===_0x2f810c[_0x4b7a1b(0x1ba)][_0x4b7a1b(0x19e)]){const _0x36aded=_0x30cec3(_0x2f810c['data'])[_0x4b7a1b(0x1c0)][_0x4b7a1b(0x224)]()[_0x4b7a1b(0x1c4)](_0x23eb5c=>_0x23eb5c['id']===_0x4c632e['id']);if(_0x36aded){const _0x4d8aa4=_0x36aded[_0x4b7a1b(0x244)][_0x4b7a1b(0x1cc)],_0x52fd49=_0x36aded[_0x4b7a1b(0x244)][_0x4b7a1b(0x20a)]['id'];setTimeout(()=>{var _0x2a7224=_0x4b7a1b;this[_0x2a7224(0x24a)][_0x2a7224(0x24c)](_0x3cfc48['id'],{'unitId':_0x4d8aa4,'subUnitId':_0x52fd49},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x50be08=_0x3fcdaf;this[_0x50be08(0x1a0)][_0x50be08(0x1a8)](_0x50be08(0x1d5));const _0x3f3612=new Map(),_0x10e7c0=this[_0x50be08(0x21b)]=new _0x3b22fb();_0x10e7c0[_0x50be08(0x239)](_0x318a6b(()=>{var _0x276870=_0x50be08;_0x3f3612[_0x276870(0x233)](_0x942135=>_0x942135[_0x276870(0x217)]()),_0x3f3612[_0x276870(0x1d4)]();})),_0x10e7c0[_0x50be08(0x239)](this[_0x50be08(0x24a)][_0x50be08(0x24e)](_0x189d22=>{var _0x406964=_0x50be08,_0x5a848a;if(_0x189d22[_0x406964(0x220)]!==_0x1728f8['OPERATION']||!this['_liveShareService'][_0x406964(0x20d)](_0x189d22['id']))return;const {id:_0xa41699}=_0x189d22;let _0x369cb9;_0x3f3612[_0x406964(0x1fd)](_0xa41699)?_0x369cb9=_0x3f3612[_0x406964(0x223)](_0xa41699):(_0x369cb9=new _0x33a2b2(),_0x3f3612[_0x406964(0x1f6)](_0xa41699,_0x369cb9),_0x369cb9[_0x406964(0x19d)](_0x260576((_0x5a848a=this[_0x406964(0x240)]['getConfig'](Pe))!=null?_0x5a848a:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x406964(0x1c8)](_0x16ccce=>{var _0x2ae079=_0x406964;this[_0x2ae079(0x1ad)][_0x2ae079(0x1a2)]({'eventID':_0x35f1b9['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2ae079(0x1a9)],'operations':{[_0x16ccce['id']]:{'id':_0x16ccce['id'],'params':JSON['stringify'](_0x16ccce[_0x2ae079(0x244)])}}}},this[_0x2ae079(0x1a9)]);})),_0x369cb9[_0x406964(0x1a8)](_0x189d22);})),this[_0x50be08(0x24f)][_0x50be08(0x1be)](this[_0x50be08(0x1a9)])[_0x50be08(0x233)](_0x3964d1=>this['_collabSession'][_0x50be08(0x1a2)]({'eventID':_0x35f1b9['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x50be08(0x1a9)],'operations':{[_0x3964d1['id']]:{'id':_0x3964d1['id'],'params':JSON[_0x50be08(0x23b)](_0x3964d1[_0x50be08(0x244)])}}}},this[_0x50be08(0x1a9)]));}['_stopPresenting'](){var _0x599ed3=_0x3fcdaf,_0x39a4cb;this[_0x599ed3(0x1a0)][_0x599ed3(0x1a8)]('idle'),(_0x39a4cb=this['_commandDisposable'])==null||_0x39a4cb[_0x599ed3(0x1f8)](),this['_commandDisposable']=null;}[_0x3fcdaf(0x1cf)](){var _0x447255=_0x3fcdaf,_0x3c0687;(_0x3c0687=this[_0x447255(0x21b)])==null||_0x3c0687[_0x447255(0x1f8)](),this['_status$']['next'](_0x447255(0x1b2));}[_0x3fcdaf(0x229)](){var _0x48be09=_0x3fcdaf,_0x1a77e1;this['_status$'][_0x48be09(0x1a8)](_0x48be09(0x246)),(_0x1a77e1=this[_0x48be09(0x21b)])==null||_0x1a77e1['dispose'](),this[_0x48be09(0x21b)]=null;}[_0x3fcdaf(0x1f3)](){var _0x1e9324=_0x3fcdaf,_0x576ed2;this['_status$'][_0x1e9324(0x1a8)](_0x1e9324(0x20e)),(_0x576ed2=this['_commandDisposable'])==null||_0x576ed2[_0x1e9324(0x1f8)]();}['_handleOperation'](_0x10eeb3){var _0x1e9120=_0x3fcdaf;if([_0x1e9120(0x1d5),_0x1e9120(0x20e),'offline'][_0x1e9120(0x1ae)](this[_0x1e9120(0x1ef)])||!_0x10eeb3['data']['presenter']||_0x10eeb3[_0x1e9120(0x1ba)][_0x1e9120(0x1da)]===this[_0x1e9120(0x1ad)]['getMemberID']())return;this[_0x1e9120(0x1ef)]===_0x1e9120(0x246)&&this[_0x1e9120(0x1cf)]();const _0x331e42=_0x10eeb3[_0x1e9120(0x1ba)][_0x1e9120(0x1b8)];Object[_0x1e9120(0x248)](_0x331e42)[_0x1e9120(0x233)](_0x2cd5a9=>{var _0x2491c3=_0x1e9120;this['_commandService'][_0x2491c3(0x24c)](_0x2cd5a9['id'],_0x2cd5a9[_0x2491c3(0x244)]?JSON[_0x2491c3(0x1b6)](_0x2cd5a9[_0x2491c3(0x244)]):null,{'fromCollab':!0x0});});}[_0x3fcdaf(0x1cb)](){var _0x17d1d7=_0x3fcdaf,_0x2d8cbb;this['_status$'][_0x17d1d7(0x1a8)]('offline'),(_0x2d8cbb=this['_commandDisposable'])==null||_0x2d8cbb[_0x17d1d7(0x1f8)]();}[_0x3fcdaf(0x241)](){var _0x4aac38=_0x3fcdaf;this['_status$'][_0x4aac38(0x1a8)](_0x4aac38(0x246)),this['_fetchOperations']();}};w=Z([f(0x2,_0x3de5df),f(0x3,_0x9a82ee(L)),f(0x4,_0x571f4b)],w);function Te(){var _0x499cb8=_0x3fcdaf;const _0x3c0926=_0x53df57(I),_0x1d4b0c=_0x53df57(_0x222400),_0x10a34d=_0xd11abe(()=>_0x1d4b0c[_0x499cb8(0x230)](_0x507f24['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x40d8af,_0x28a66]=_0x53fc5a(null),[_0x2b48e9,_0x42a832]=_0x53fc5a(h[_0x499cb8(0x1dc)]),_0x63460b=_0xb9fd4a(null);return _0x57fba0(()=>(_0x10a34d&&_0x3c0926['getLiveShareCoordinator'](_0x10a34d['getUnitId']())[_0x499cb8(0x23c)](_0x35c78a=>{var _0x3cd00e=_0x499cb8;_0x28a66(_0x35c78a),_0x63460b[_0x3cd00e(0x22d)]=_0x35c78a[_0x3cd00e(0x200)][_0x3cd00e(0x1c8)](_0x104b6b=>{_0x42a832(_0x104b6b);});}),()=>{var _0x317dd4=_0x499cb8,_0xf34370;(_0xf34370=_0x63460b[_0x317dd4(0x22d)])==null||_0xf34370[_0x317dd4(0x1fb)](),_0x63460b['current']=null;}),[_0x10a34d,_0x3c0926]),_0x40d8af?_0xa1dd95(_0x12643e,{'align':_0x499cb8(0x1e2),'disabled':_0x2b48e9===h[_0x499cb8(0x227)],'className':_0x499cb8(0x22a),'overlay':_0xa1dd95($e,{'status':_0x2b48e9,'coordinator':_0x40d8af}),'children':_0xa1dd95(_0x499cb8(0x232),{'className':_0x3635fb(_0x499cb8(0x225),{'univer-cursor-not-allowed':_0x2b48e9===h[_0x499cb8(0x227)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2b48e9!==h[_0x499cb8(0x227)]}),'type':'button','children':_0xa1dd95(B,{'className':_0x499cb8(0x1a7)})})}):null;}function $e(_0x37362c){var _0x595c9f=_0x3fcdaf;const {status:_0x3c4dc8,coordinator:_0x61d20b}=_0x37362c;switch(_0x3c4dc8){case h[_0x595c9f(0x1dc)]:return _0xa1dd95(Fe,{'coordinator':_0x61d20b});case h[_0x595c9f(0x1fc)]:return _0xa1dd95(He,{'coordinator':_0x61d20b});case h[_0x595c9f(0x1c1)]:return _0xa1dd95(je,{'coordinator':_0x61d20b});case h['OFFLINE']:return _0xa1dd95(Ve,{});case h['PRESENTING']:return _0xa1dd95(Ue,{'coordinator':_0x61d20b});default:return null;}}function Fe(_0x5e28fb){var _0x3d3a9d=_0x3fcdaf;const {coordinator:_0x458ff7}=_0x5e28fb;return _0x22e12f(_0x1222e5,{'children':[_0xa1dd95(_0x3d3a9d(0x1f1),{'className':_0x3d3a9d(0x1f5),'children':_0x3d3a9d(0x214)}),_0xa1dd95(_0x3522ab,{'onClick':()=>_0x458ff7[_0x3d3a9d(0x242)](),'children':_0x3d3a9d(0x205)})]});}function He(_0x48fba7){var _0x544036=_0x3fcdaf;const {coordinator:_0x40ac6f}=_0x48fba7;return _0x22e12f(_0x1222e5,{'children':[_0xa1dd95(_0x544036(0x1f1),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0xa1dd95(_0x3522ab,{'onClick':()=>_0x40ac6f[_0x544036(0x226)](),'children':_0x544036(0x1a3)})]});}function je(_0x4e471d){var _0x3494eb=_0x3fcdaf;const {coordinator:_0x21f659}=_0x4e471d;return _0x22e12f(_0x1222e5,{'children':[_0xa1dd95('div',{'className':_0x3494eb(0x1f5),'children':_0x3494eb(0x1cd)}),_0xa1dd95(_0x3522ab,{'variant':_0x3494eb(0x22c),'onClick':()=>_0x21f659['startFollowing'](),'children':_0x3494eb(0x23f)})]});}function Ue(_0xa94eaa){var _0x2835e2=_0x3fcdaf;const {coordinator:_0xb7a7c5}=_0xa94eaa;return _0x22e12f(_0x1222e5,{'children':[_0xa1dd95(_0x2835e2(0x1f1),{'className':_0x2835e2(0x1f5),'children':'You\x27re\x20presenting\x20the\x20document'}),_0xa1dd95(_0x3522ab,{'variant':_0x2835e2(0x1b5),'onClick':()=>_0xb7a7c5[_0x2835e2(0x1d3)](),'children':_0x2835e2(0x249)})]});}function Ve(){var _0x1389b4=_0x3fcdaf;return _0xa1dd95(_0x1222e5,{'children':_0x1389b4(0x1f2)});}var Me=Object[_0x3fcdaf(0x1e7)],ke=(_0x4309a6,_0x29e199,_0x4bf8bf,_0x2cba3c)=>{var _0x388cad=_0x3fcdaf;for(var _0x1adc6d=_0x2cba3c>0x1?void 0x0:_0x2cba3c?Me(_0x29e199,_0x4bf8bf):_0x29e199,_0x617904=_0x4309a6[_0x388cad(0x209)]-0x1,_0x26d74a;_0x617904>=0x0;_0x617904--)(_0x26d74a=_0x4309a6[_0x617904])&&(_0x1adc6d=_0x26d74a(_0x1adc6d)||_0x1adc6d);return _0x1adc6d;},$=(_0x26d02e,_0x1c2de6)=>(_0x345e23,_0x53562f)=>_0x1c2de6(_0x345e23,_0x53562f,_0x26d02e);let b=class extends _0x44f2cd{constructor(_0x5c34fd,_0x363429){var _0x3fed96=_0x3fcdaf;super(),this[_0x3fed96(0x231)]=_0x5c34fd,this['_uiPartsService']=_0x363429,this[_0x3fed96(0x1a6)]();}['_mountLiveShare'](){var _0x45e6e7=_0x3fcdaf;this[_0x45e6e7(0x21f)](this[_0x45e6e7(0x1ab)]['registerComponent'](_0x896a64[_0x45e6e7(0x1e3)],()=>_0x50a59d(Te,this[_0x45e6e7(0x231)])));}};b=ke([$(0x0,_0x9a82ee(_0xc9b6d3)),$(0x1,_0x4bf856)],b);var Ge=Object[_0x3fcdaf(0x1c6)],We=Object[_0x3fcdaf(0x1e7)],Ye=(_0x381340,_0x4a5134,_0x156510)=>_0x4a5134 in _0x381340?Ge(_0x381340,_0x4a5134,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x156510}):_0x381340[_0x4a5134]=_0x156510,Be=(_0xeed9e1,_0x5a38e7,_0x43061b,_0x230b68)=>{var _0x174969=_0x3fcdaf;for(var _0x3f8fdd=_0x230b68>0x1?void 0x0:_0x230b68?We(_0x5a38e7,_0x43061b):_0x5a38e7,_0x53e739=_0xeed9e1[_0x174969(0x209)]-0x1,_0x45bdd3;_0x53e739>=0x0;_0x53e739--)(_0x45bdd3=_0xeed9e1[_0x53e739])&&(_0x3f8fdd=_0x45bdd3(_0x3f8fdd)||_0x3f8fdd);return _0x3f8fdd;},F=(_0x8f27ac,_0x1eb7ca)=>(_0x5cb735,_0x542c8b)=>_0x1eb7ca(_0x5cb735,_0x542c8b,_0x8f27ac),J=(_0x5080c3,_0x189a8d,_0x3f3ab0)=>Ye(_0x5080c3,typeof _0x189a8d!=_0x3fcdaf(0x1a5)?_0x189a8d+'':_0x189a8d,_0x3f3ab0);const Ze=_0x3fcdaf(0x1d1);let O=class extends _0x411b9e{constructor(_0x114a4a=T,_0x151afe,_0x3c9d7e){var _0x335c3c=_0x3fcdaf;super(),this[_0x335c3c(0x1dd)]=_0x114a4a,this[_0x335c3c(0x231)]=_0x151afe,this[_0x335c3c(0x240)]=_0x3c9d7e;const {..._0x8a2894}=_0x596cea({},T,this[_0x335c3c(0x1dd)]);this['_configService'][_0x335c3c(0x215)](Oe,_0x8a2894);}['onStarting'](){var _0x3250fd=_0x3fcdaf;_0x5b4edf(this[_0x3250fd(0x231)],_0x44214c([[L],[I],[m],[b]],this[_0x3250fd(0x1dd)][_0x3250fd(0x213)])),_0x5e1ba2(this[_0x3250fd(0x231)],[[m]]);}[_0x3fcdaf(0x1f4)](){_0x5e1ba2(this['_injector'],[[b]]);}};J(O,_0x3fcdaf(0x220),_0x507f24[_0x3fcdaf(0x1af)]),J(O,_0x3fcdaf(0x1f9),Ze),O=Be([_0x3730da(_0x1df655),F(0x1,_0x9a82ee(_0xc9b6d3)),F(0x2,_0x3de5df)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x2a0f2a=_0x1c4f;(function(_0x5f0a4e,_0xddb148){var _0x469746=_0x1c4f,_0x1bfa3d=_0x5f0a4e();while(!![]){try{var _0x88fdf4=-parseInt(_0x469746(0x186))/0x1+parseInt(_0x469746(0x223))/0x2+parseInt(_0x469746(0x1bc))/0x3+-parseInt(_0x469746(0x216))/0x4+parseInt(_0x469746(0x21c))/0x5*(-parseInt(_0x469746(0x178))/0x6)+parseInt(_0x469746(0x1ce))/0x7+parseInt(_0x469746(0x1fb))/0x8;if(_0x88fdf4===_0xddb148)break;else _0x1bfa3d['push'](_0x1bfa3d['shift']());}catch(_0x1ab257){_0x1bfa3d['push'](_0x1bfa3d['shift']());}}}(_0x2677,0x9e744));var q=Object['defineProperty'],z=(_0x71726f,_0x613047,_0x47626e)=>_0x613047 in _0x71726f?q(_0x71726f,_0x613047,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x47626e}):_0x71726f[_0x613047]=_0x47626e,d=(_0x35722d,_0x3eb878,_0x405534)=>z(_0x35722d,typeof _0x3eb878!=_0x2a0f2a(0x1e6)?_0x3eb878+'':_0x3eb878,_0x405534);import{CollaborationSessionService as _0x139eaf,SessionStatus as _0x511ef6,UniverCollaborationClientPlugin as _0x2cf583}from'@univerjs-pro/collaboration-client';import{Disposable as _0x56d91a,toDisposable as _0x3ea5b0,Inject as _0x459502,IUniverInstanceService as _0x560e40,Injector as _0x511763,IConfigService as _0x2e77bf,ICommandService as _0x22ff36,RxDisposable as _0x2773af,UniverInstanceType as _0x43f478,DisposableCollection as _0x31b05b,CommandType as _0x53a8fc,DependentOn as _0x2ecbb5,Plugin as _0x36cf9c,merge as _0x2a8c98,registerDependencies as _0x123d95,mergeOverrideWithDependencies as _0x4f628e,touchDependencies as _0x2d4a9e}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x56cadf,InsertSheetMutation as _0x18edf1}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x236b5e,SetScrollOperation as _0x4e40a1}from'@univerjs/sheets-ui';import{useDependency as _0x3e135f,useObservable as _0x1d56b5,IUIPartsService as _0xf8ae92,BuiltInUIPart as _0xba4be9,connectInjector as _0x57f19d}from'@univerjs/ui';import{jsx as _0x430726,jsxs as _0x2b0221,Fragment as _0x114633}from'react/jsx-runtime';import{Dropdown as _0x1f1fbe,clsx as _0x285d7d,Button as _0x46f48e}from'@univerjs/design';import{forwardRef as _0x4e0fc8,useRef as _0xba99eb,createElement as _0x216e9d,useState as _0x216df8,useEffect as _0x245dda}from'react';import{CollaborationEvent as _0x4c2295,parseProtocolChangeset as _0x5217ed}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x4f5984,Subject as _0x5ef0c0}from'rxjs';import{takeUntil as _0x31d1f6,throttleTime as _0x2ea41b}from'rxjs/operators';const Oe=_0x2a0f2a(0x205),T={};class L extends _0x56d91a{constructor(){var _0x33d36e=_0x2a0f2a;super(...arguments),d(this,_0x33d36e(0x184),new Set()),d(this,_0x33d36e(0x187),new Set());}[_0x2a0f2a(0x1ed)](_0x215604){var _0x356f00=_0x2a0f2a;return this[_0x356f00(0x184)][_0x356f00(0x196)](_0x215604),_0x3ea5b0(()=>this['_sharedOperations'][_0x356f00(0x1ad)](_0x215604));}['registerInitialStateReporter'](_0x2b751f){return this['_reporters']['add'](_0x2b751f),_0x3ea5b0(()=>this['_reporters']['delete'](_0x2b751f));}[_0x2a0f2a(0x1b9)](_0x53b27c){var _0x4a3a32=_0x2a0f2a;return this[_0x4a3a32(0x184)][_0x4a3a32(0x18b)](_0x53b27c);}['getInitialStates'](_0x4d27f3){var _0x3ad593=_0x2a0f2a;return Array[_0x3ad593(0x183)](this['_reporters'])['map'](_0x5477ac=>_0x5477ac(_0x4d27f3));}}var Ee=Object[_0x2a0f2a(0x1ef)],Ce=(_0x4001dd,_0x42eb55,_0x1eebd0,_0xf7aeeb)=>{var _0x17af7b=_0x2a0f2a;for(var _0x2f99d4=_0xf7aeeb>0x1?void 0x0:_0xf7aeeb?Ee(_0x42eb55,_0x1eebd0):_0x42eb55,_0x3a22af=_0x4001dd[_0x17af7b(0x1e2)]-0x1,_0x490658;_0x3a22af>=0x0;_0x3a22af--)(_0x490658=_0x4001dd[_0x3a22af])&&(_0x2f99d4=_0x490658(_0x2f99d4)||_0x2f99d4);return _0x2f99d4;},Ne=(_0xf5d60e,_0x20bce6)=>(_0x1d54fa,_0x230642)=>_0x20bce6(_0x1d54fa,_0x230642,_0xf5d60e);let m=class extends _0x56d91a{constructor(_0x2e9499){var _0x71e7e5=_0x2a0f2a;super(),this['_liveShareService']=_0x2e9499,this[_0x71e7e5(0x1b6)]();}[_0x2a0f2a(0x1b6)](){[_0x236b5e['id'],_0x4e40a1['id'],_0x56cadf['id']]['forEach'](_0x39d97e=>{var _0x16ebaf=_0x1c4f;this['disposeWithMe'](this[_0x16ebaf(0x19f)][_0x16ebaf(0x1ed)](_0x39d97e));});}};m=Ce([Ne(0x0,_0x459502(L))],m);var c=function(){var _0x691001=_0x2a0f2a;return c=Object[_0x691001(0x21d)]||function(_0x5e32e4){var _0x4cdf4a=_0x691001;for(var _0xdaa6f3,_0x1caf9d=0x1,_0x59d549=arguments[_0x4cdf4a(0x1e2)];_0x1caf9d<_0x59d549;_0x1caf9d++){_0xdaa6f3=arguments[_0x1caf9d];for(var _0x189455 in _0xdaa6f3)Object[_0x4cdf4a(0x1a0)]['hasOwnProperty'][_0x4cdf4a(0x175)](_0xdaa6f3,_0x189455)&&(_0x5e32e4[_0x189455]=_0xdaa6f3[_0x189455]);}return _0x5e32e4;},c[_0x691001(0x1e8)](this,arguments);},we=function(_0x10c2c8,_0x3f7e1a){var _0x437ecd=_0x2a0f2a,_0x39fc14={};for(var _0x4720c3 in _0x10c2c8)Object[_0x437ecd(0x1a0)][_0x437ecd(0x18d)][_0x437ecd(0x175)](_0x10c2c8,_0x4720c3)&&_0x3f7e1a[_0x437ecd(0x18a)](_0x4720c3)<0x0&&(_0x39fc14[_0x4720c3]=_0x10c2c8[_0x4720c3]);if(_0x10c2c8!=null&&typeof Object[_0x437ecd(0x1cb)]=='function'){for(var _0x134b13=0x0,_0x4720c3=Object['getOwnPropertySymbols'](_0x10c2c8);_0x134b13<_0x4720c3[_0x437ecd(0x1e2)];_0x134b13++)_0x3f7e1a[_0x437ecd(0x18a)](_0x4720c3[_0x134b13])<0x0&&Object[_0x437ecd(0x1a0)][_0x437ecd(0x1e9)][_0x437ecd(0x175)](_0x10c2c8,_0x4720c3[_0x134b13])&&(_0x39fc14[_0x4720c3[_0x134b13]]=_0x10c2c8[_0x4720c3[_0x134b13]]);}return _0x39fc14;},W=_0x4e0fc8(function(_0x380565,_0x224b02){var _0x394fb5=_0x2a0f2a,_0x40daa6=_0x380565[_0x394fb5(0x1ec)],_0x243046=_0x380565['id'],_0x31ed57=_0x380565[_0x394fb5(0x1dc)],_0x2211ab=_0x380565[_0x394fb5(0x1f8)],_0x17b0db=we(_0x380565,[_0x394fb5(0x1ec),'id',_0x394fb5(0x1dc),_0x394fb5(0x1f8)]),_0x203233=_0x394fb5(0x1d9)[_0x394fb5(0x208)](_0x243046,'\x20')[_0x394fb5(0x208)](_0x31ed57||'')[_0x394fb5(0x17a)](),_0x366822=_0xba99eb('_'[_0x394fb5(0x208)](Le()));return Y(_0x40daa6,''[_0x394fb5(0x208)](_0x243046),{'defIds':_0x40daa6[_0x394fb5(0x20d)],'idSuffix':_0x366822['current']},c({'ref':_0x224b02,'className':_0x203233},_0x17b0db),_0x2211ab);});function Y(_0x4e3849,_0xc6506,_0x5da265,_0x187970,_0x4deec8){var _0x327db8=_0x2a0f2a;return _0x216e9d(_0x4e3849[_0x327db8(0x1a8)],c(c({'key':_0xc6506},De(_0x4e3849,_0x5da265,_0x4deec8)),_0x187970),(xe(_0x4e3849,_0x5da265)[_0x327db8(0x1b0)]||[])['map'](function(_0x1372b5,_0x48514a){var _0x119d1e=_0x327db8;return Y(_0x1372b5,''[_0x119d1e(0x208)](_0xc6506,'-')[_0x119d1e(0x208)](_0x4e3849['tag'],'-')[_0x119d1e(0x208)](_0x48514a),_0x5da265,void 0x0,_0x4deec8);}));}function De(_0x4f6fa1,_0x1dbbfd,_0x4cab33){var _0x5a51bf=_0x2a0f2a,_0x3f8a37=c({},_0x4f6fa1[_0x5a51bf(0x1b4)]);_0x4cab33!=null&&_0x4cab33[_0x5a51bf(0x1d3)]&&_0x3f8a37[_0x5a51bf(0x218)]===_0x5a51bf(0x1d3)&&(_0x3f8a37[_0x5a51bf(0x218)]=_0x4cab33[_0x5a51bf(0x1d3)]),_0x4f6fa1['tag']===_0x5a51bf(0x181)&&_0x3f8a37['id']&&(_0x3f8a37['id']=_0x3f8a37['id']+_0x1dbbfd[_0x5a51bf(0x1b1)]),Object[_0x5a51bf(0x1a3)](_0x3f8a37)[_0x5a51bf(0x20f)](function(_0x23d6ee){var _0x5c8e7b=_0x5a51bf,_0x1a0220=_0x23d6ee[0x0],_0x489556=_0x23d6ee[0x1];_0x1a0220===_0x5c8e7b(0x181)&&typeof _0x489556=='string'&&(_0x3f8a37[_0x1a0220]=_0x489556[_0x5c8e7b(0x1f4)](/url\(#(.*)\)/,'url(#$1'[_0x5c8e7b(0x208)](_0x1dbbfd[_0x5c8e7b(0x1b1)],')')));});var _0x23c14=_0x1dbbfd[_0x5a51bf(0x20d)];return!_0x23c14||_0x23c14['length']===0x0||(_0x4f6fa1[_0x5a51bf(0x1a8)]===_0x5a51bf(0x174)&&_0x3f8a37['xlink:href']&&(_0x3f8a37['xlink:href']=_0x3f8a37[_0x5a51bf(0x1a5)]+_0x1dbbfd[_0x5a51bf(0x1b1)]),Object[_0x5a51bf(0x1a3)](_0x3f8a37)[_0x5a51bf(0x20f)](function(_0x4aeb54){var _0x12b600=_0x5a51bf,_0x2543d2=_0x4aeb54[0x0],_0x43488c=_0x4aeb54[0x1];typeof _0x43488c==_0x12b600(0x1dd)&&(_0x3f8a37[_0x2543d2]=_0x43488c[_0x12b600(0x1f4)](/url\(#(.*)\)/,_0x12b600(0x1b5)[_0x12b600(0x208)](_0x1dbbfd[_0x12b600(0x1b1)],')')));})),_0x3f8a37;}function xe(_0x29a139,_0x5052f5){var _0x3e8e57=_0x2a0f2a,_0x17b817,_0x46a30d=_0x5052f5[_0x3e8e57(0x20d)];return!_0x46a30d||_0x46a30d[_0x3e8e57(0x1e2)]===0x0?_0x29a139:_0x29a139[_0x3e8e57(0x1a8)]===_0x3e8e57(0x18c)&&(!((_0x17b817=_0x29a139[_0x3e8e57(0x1b0)])===null||_0x17b817===void 0x0)&&_0x17b817['length'])?c(c({},_0x29a139),{'children':_0x29a139[_0x3e8e57(0x1b0)]['map'](function(_0xce47ed){var _0x3a2a29=_0x3e8e57;return typeof _0xce47ed[_0x3a2a29(0x1b4)]['id']==_0x3a2a29(0x1dd)&&_0x46a30d&&_0x46a30d[_0x3a2a29(0x18a)](_0xce47ed[_0x3a2a29(0x1b4)]['id'])>-0x1?c(c({},_0xce47ed),{'attrs':c(c({},_0xce47ed[_0x3a2a29(0x1b4)]),{'id':_0xce47ed[_0x3a2a29(0x1b4)]['id']+_0x5052f5[_0x3a2a29(0x1b1)]})}):_0xce47ed;})}):_0x29a139;}function Le(){var _0x2a9c00=_0x2a0f2a;return Math[_0x2a9c00(0x1ac)]()[_0x2a9c00(0x1d4)](0x24)[_0x2a9c00(0x215)](0x2,0x8);}W[_0x2a0f2a(0x1e4)]=_0x2a0f2a(0x1d1);var ye={'tag':_0x2a0f2a(0x1d6),'attrs':{'fill':_0x2a0f2a(0x1e0),'viewBox':_0x2a0f2a(0x1c3),'width':'1em','height':_0x2a0f2a(0x190)},'children':[{'tag':_0x2a0f2a(0x1cc),'attrs':{'fill':_0x2a0f2a(0x1f9),'d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':'path','attrs':{'fill':_0x2a0f2a(0x1f9),'d':_0x2a0f2a(0x189),'fillRule':_0x2a0f2a(0x21f),'clipRule':_0x2a0f2a(0x21f)}}]},B=_0x4e0fc8(function(_0x1d6b22,_0x193f10){var _0x43ac9d=_0x2a0f2a;return _0x216e9d(W,Object[_0x43ac9d(0x21d)]({},_0x1d6b22,{'id':_0x43ac9d(0x1ff),'ref':_0x193f10,'icon':ye}));});B['displayName']='LiveShareSingle';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x4ebed0,_0x2a5db7,_0x138018,_0x1605d5)=>{var _0x39caec=_0x2a0f2a;for(var _0x3dbed8=_0x1605d5>0x1?void 0x0:_0x1605d5?Re(_0x2a5db7,_0x138018):_0x2a5db7,_0x1af66d=_0x4ebed0[_0x39caec(0x1e2)]-0x1,_0x3a2c18;_0x1af66d>=0x0;_0x1af66d--)(_0x3a2c18=_0x4ebed0[_0x1af66d])&&(_0x3dbed8=_0x3a2c18(_0x3dbed8)||_0x3dbed8);return _0x3dbed8;},f=(_0x4d06cc,_0x46eae0)=>(_0x4206a4,_0x2e663b)=>_0x46eae0(_0x4206a4,_0x2e663b,_0x4d06cc);let I=class extends _0x2773af{constructor(_0x3270dd,_0x433c2b,_0x3ab648){var _0x5ca8be=_0x2a0f2a;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x3270dd,this[_0x5ca8be(0x201)]=_0x433c2b,this[_0x5ca8be(0x1fc)]=_0x3ab648,this[_0x5ca8be(0x1b6)]());}async['getLiveShareCoordinator'](_0x41c42d){var _0x40a477=_0x2a0f2a;return this[_0x40a477(0x192)][_0x40a477(0x18b)](_0x41c42d)||await this[_0x40a477(0x1fd)](_0x41c42d),this[_0x40a477(0x192)][_0x40a477(0x222)](_0x41c42d);}[_0x2a0f2a(0x1b6)](){var _0x2423a0=_0x2a0f2a;this[_0x2423a0(0x191)][_0x2423a0(0x1d5)](_0x43f478[_0x2423a0(0x1a9)])[_0x2423a0(0x204)](_0x31d1f6(this[_0x2423a0(0x1d0)]))['subscribe'](async _0x115fc8=>{var _0x1a6f31=_0x2423a0;const _0x1c1e12=_0x115fc8[_0x1a6f31(0x176)]();this[_0x1a6f31(0x192)]['has'](_0x1c1e12)||this[_0x1a6f31(0x1fd)](_0x1c1e12);}),this['_univerInstanceService'][_0x2423a0(0x1e5)](_0x43f478[_0x2423a0(0x1a9)])['pipe'](_0x31d1f6(this[_0x2423a0(0x1d0)]))[_0x2423a0(0x1c8)](_0x41085c=>{var _0xb336f2=_0x2423a0;const _0x104a96=_0x41085c['getUnitId'](),_0x829d45=this[_0xb336f2(0x192)][_0xb336f2(0x222)](_0x104a96);_0x829d45==null||_0x829d45[_0xb336f2(0x17c)]();});}async[_0x2a0f2a(0x1fd)](_0x527381){var _0x3705c8=_0x2a0f2a;const _0x5b53a0=await this['_collabSessionService']['requireSession'](_0x527381),_0x125e20=this[_0x3705c8(0x201)]['createInstance'](w,_0x527381,_0x5b53a0);return _0x125e20[_0x3705c8(0x1c5)](),this['_entities'][_0x3705c8(0x20c)](_0x527381,_0x125e20),_0x125e20;}};I=Z([f(0x0,_0x560e40),f(0x1,_0x459502(_0x511763)),f(0x2,_0x459502(_0x139eaf))],I);var h=(_0x108c59=>(_0x108c59[_0x2a0f2a(0x1bb)]=_0x2a0f2a(0x180),_0x108c59['IDLE']=_0x2a0f2a(0x1a1),_0x108c59[_0x2a0f2a(0x1be)]=_0x2a0f2a(0x1ba),_0x108c59['NOT_FOLLOWING']=_0x2a0f2a(0x1b7),_0x108c59[_0x2a0f2a(0x1ee)]=_0x2a0f2a(0x1f5),_0x108c59))(h||{});const Pe=_0x2a0f2a(0x18f),Ae=0xc8;let w=class extends _0x2773af{constructor(_0x4a70b2,_0x1cd2d6,_0x38f627,_0x6747b9,_0x42f5a5){var _0x356b61=_0x2a0f2a;super(),d(this,_0x356b61(0x224),new _0x4f5984(_0x356b61(0x1a1))),d(this,'status$',this['_status$'][_0x356b61(0x193)]()),d(this,_0x356b61(0x1b6),!0x1),d(this,'_commandDisposable',null),d(this,_0x356b61(0x19b),null),(this['_unitID']=_0x4a70b2,this['_collabSession']=_0x1cd2d6,this['_configService']=_0x38f627,this[_0x356b61(0x19f)]=_0x6747b9,this[_0x356b61(0x1c0)]=_0x42f5a5);}get[_0x2a0f2a(0x203)](){var _0x367dca=_0x2a0f2a;return this[_0x367dca(0x224)][_0x367dca(0x1da)]();}[_0x2a0f2a(0x17c)](){var _0x55fdf5=_0x2a0f2a,_0x55b3c9;(_0x55b3c9=this[_0x55fdf5(0x1cf)])==null||_0x55b3c9[_0x55fdf5(0x17c)](),this[_0x55fdf5(0x224)]['next']('idle'),this[_0x55fdf5(0x224)][_0x55fdf5(0x1fa)]();}['init'](){var _0x15d87a=_0x2a0f2a;this['_init']||(this[_0x15d87a(0x1b6)]=!0x0,this[_0x15d87a(0x1cd)][_0x15d87a(0x17e)][_0x15d87a(0x204)](_0x31d1f6(this[_0x15d87a(0x1d0)]))['subscribe'](_0x305799=>{var _0x166441=_0x15d87a;switch(_0x305799){case _0x511ef6[_0x166441(0x1bb)]:this[_0x166441(0x188)]();break;case _0x511ef6['ONLINE']:this[_0x166441(0x1af)]();break;}}),this['_collabSession'][_0x15d87a(0x195)][_0x15d87a(0x204)](_0x31d1f6(this[_0x15d87a(0x1d0)]))[_0x15d87a(0x1c8)](_0x2fc1f7=>{var _0x2a22b7=_0x15d87a;const {eventID:_0x3517c0}=_0x2fc1f7;switch(_0x3517c0){case _0x4c2295[_0x2a22b7(0x182)]:this[_0x2a22b7(0x212)](_0x2fc1f7);break;case _0x4c2295['LIVESHARE_OPERATION']:this[_0x2a22b7(0x1c7)](_0x2fc1f7);break;case _0x4c2295['LIVESHARE_TERMINATE']:this[_0x2a22b7(0x1a7)]();break;case _0x4c2295[_0x2a22b7(0x21e)]:this[_0x2a22b7(0x185)](_0x2fc1f7);break;}}));}[_0x2a0f2a(0x19a)](){var _0x1ed016=_0x2a0f2a;this['_collabSession'][_0x1ed016(0x173)]({'eventID':_0x4c2295[_0x1ed016(0x19e)],'data':{'unitID':this[_0x1ed016(0x179)],'userID':this[_0x1ed016(0x1cd)][_0x1ed016(0x17b)]()}},this[_0x1ed016(0x179)]);}[_0x2a0f2a(0x20e)](){var _0x480d6b=_0x2a0f2a;this[_0x480d6b(0x203)]==='presenting'&&(this[_0x480d6b(0x224)][_0x480d6b(0x1a2)](_0x480d6b(0x1a1)),this[_0x480d6b(0x1cd)]['send']({'eventID':_0x4c2295[_0x480d6b(0x1e3)],'data':{'unitID':this[_0x480d6b(0x179)]}},this['_unitID']));}[_0x2a0f2a(0x199)](){var _0x18b58d=_0x2a0f2a;this['_status']===_0x18b58d(0x1b7)&&(this[_0x18b58d(0x224)][_0x18b58d(0x1a2)](_0x18b58d(0x1ba)),this[_0x18b58d(0x1c1)]());}[_0x2a0f2a(0x210)](){var _0x346a6f=_0x2a0f2a;this[_0x346a6f(0x203)]===_0x346a6f(0x1ba)&&this[_0x346a6f(0x1f0)]();}[_0x2a0f2a(0x212)](_0xdec379){var _0x52bea8=_0x2a0f2a;const {presenter:_0x4608f7}=_0xdec379[_0x52bea8(0x1f1)],_0x430298=this[_0x52bea8(0x1cd)][_0x52bea8(0x17b)]();this[_0x52bea8(0x19b)]=_0x4608f7,_0x4608f7===_0x430298?(this['_stopFollowing'](),this[_0x52bea8(0x18e)]()):this[_0x52bea8(0x203)]!==_0x52bea8(0x1b7)&&(this[_0x52bea8(0x21a)](),this[_0x52bea8(0x1c1)]());}[_0x2a0f2a(0x209)](){var _0x21296b=_0x2a0f2a;const _0x10e00c={'eventID':_0x4c2295[_0x21296b(0x1d8)]};this[_0x21296b(0x1cd)][_0x21296b(0x173)](_0x10e00c,this[_0x21296b(0x179)]);}['_handleTerminate'](){var _0x4002fa=_0x2a0f2a;this[_0x4002fa(0x19b)]=null,this[_0x4002fa(0x203)]!==_0x4002fa(0x1f5)&&this['_beIdle']();}[_0x2a0f2a(0x185)](_0x3af917){var _0x34fd8a=_0x2a0f2a;if(this[_0x34fd8a(0x203)]===_0x34fd8a(0x1ba)&&this[_0x34fd8a(0x19b)]===_0x3af917[_0x34fd8a(0x1f1)][_0x34fd8a(0x17d)]){const _0x3e82f9=_0x5217ed(_0x3af917[_0x34fd8a(0x1f1)])[_0x34fd8a(0x206)][_0x34fd8a(0x219)]()[_0x34fd8a(0x1df)](_0x321758=>_0x321758['id']===_0x18edf1['id']);if(_0x3e82f9){const _0x48c6ad=_0x3e82f9[_0x34fd8a(0x221)][_0x34fd8a(0x1b2)],_0x139d7e=_0x3e82f9[_0x34fd8a(0x221)][_0x34fd8a(0x1b3)]['id'];setTimeout(()=>{var _0x490019=_0x34fd8a;this[_0x490019(0x1c0)]['executeCommand'](_0x56cadf['id'],{'unitId':_0x48c6ad,'subUnitId':_0x139d7e},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x36e74f=_0x2a0f2a;this[_0x36e74f(0x224)][_0x36e74f(0x1a2)](_0x36e74f(0x1f5));const _0xd51831=new Map(),_0x2cd56=this[_0x36e74f(0x1cf)]=new _0x31b05b();_0x2cd56[_0x36e74f(0x196)](_0x3ea5b0(()=>{var _0x4bf972=_0x36e74f;_0xd51831['forEach'](_0x423f73=>_0x423f73['complete']()),_0xd51831[_0x4bf972(0x1e7)]();})),_0x2cd56[_0x36e74f(0x196)](this[_0x36e74f(0x1c0)][_0x36e74f(0x1ea)](_0x98a794=>{var _0x2ecaf6=_0x36e74f,_0x2907b4;if(_0x98a794[_0x2ecaf6(0x1c2)]!==_0x53a8fc[_0x2ecaf6(0x213)]||!this[_0x2ecaf6(0x19f)][_0x2ecaf6(0x1b9)](_0x98a794['id']))return;const {id:_0x5419d3}=_0x98a794;let _0x26991d;_0xd51831['has'](_0x5419d3)?_0x26991d=_0xd51831[_0x2ecaf6(0x222)](_0x5419d3):(_0x26991d=new _0x5ef0c0(),_0xd51831['set'](_0x5419d3,_0x26991d),_0x26991d[_0x2ecaf6(0x204)](_0x2ea41b((_0x2907b4=this['_configService'][_0x2ecaf6(0x1ca)](Pe))!=null?_0x2907b4:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2ecaf6(0x1c8)](_0x2cc61e=>{var _0x241d8d=_0x2ecaf6;this[_0x241d8d(0x1cd)][_0x241d8d(0x173)]({'eventID':_0x4c2295['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x2cc61e['id']]:{'id':_0x2cc61e['id'],'params':JSON['stringify'](_0x2cc61e['params'])}}}},this['_unitID']);})),_0x26991d[_0x2ecaf6(0x1a2)](_0x98a794);})),this[_0x36e74f(0x19f)]['getInitialStates'](this[_0x36e74f(0x179)])['forEach'](_0x55d07e=>this[_0x36e74f(0x1cd)][_0x36e74f(0x173)]({'eventID':_0x4c2295['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x36e74f(0x179)],'operations':{[_0x55d07e['id']]:{'id':_0x55d07e['id'],'params':JSON[_0x36e74f(0x200)](_0x55d07e[_0x36e74f(0x221)])}}}},this[_0x36e74f(0x179)]));}['_stopPresenting'](){var _0x4cba9d=_0x2a0f2a,_0x16510d;this[_0x4cba9d(0x224)]['next']('idle'),(_0x16510d=this['_commandDisposable'])==null||_0x16510d[_0x4cba9d(0x17c)](),this[_0x4cba9d(0x1cf)]=null;}[_0x2a0f2a(0x1c1)](){var _0x578337=_0x2a0f2a,_0x404f1b;(_0x404f1b=this[_0x578337(0x1cf)])==null||_0x404f1b[_0x578337(0x17c)](),this['_status$'][_0x578337(0x1a2)]('following');}[_0x2a0f2a(0x1ab)](){var _0x576e7e=_0x2a0f2a,_0x36a142;this[_0x576e7e(0x224)][_0x576e7e(0x1a2)](_0x576e7e(0x1a1)),(_0x36a142=this['_commandDisposable'])==null||_0x36a142[_0x576e7e(0x17c)](),this[_0x576e7e(0x1cf)]=null;}[_0x2a0f2a(0x1f0)](){var _0x384008=_0x2a0f2a,_0x22abe2;this[_0x384008(0x224)][_0x384008(0x1a2)](_0x384008(0x1b7)),(_0x22abe2=this[_0x384008(0x1cf)])==null||_0x22abe2['dispose']();}[_0x2a0f2a(0x1c7)](_0x4aceee){var _0x4d2112=_0x2a0f2a;if([_0x4d2112(0x1f5),'not-following',_0x4d2112(0x180)][_0x4d2112(0x211)](this['_status'])||!_0x4aceee['data'][_0x4d2112(0x220)]||_0x4aceee['data'][_0x4d2112(0x220)]===this['_collabSession'][_0x4d2112(0x17b)]())return;this[_0x4d2112(0x203)]===_0x4d2112(0x1a1)&&this[_0x4d2112(0x1c1)]();const _0x3e813a=_0x4aceee['data'][_0x4d2112(0x198)];Object[_0x4d2112(0x1f7)](_0x3e813a)[_0x4d2112(0x20f)](_0x235fe2=>{var _0x2caec8=_0x4d2112;this[_0x2caec8(0x1c0)][_0x2caec8(0x1e1)](_0x235fe2['id'],_0x235fe2[_0x2caec8(0x221)]?JSON[_0x2caec8(0x1de)](_0x235fe2[_0x2caec8(0x221)]):null,{'fromCollab':!0x0});});}[_0x2a0f2a(0x188)](){var _0x16eb4c=_0x2a0f2a,_0x37d952;this[_0x16eb4c(0x224)][_0x16eb4c(0x1a2)](_0x16eb4c(0x180)),(_0x37d952=this['_commandDisposable'])==null||_0x37d952[_0x16eb4c(0x17c)]();}['_handleOnline'](){var _0x1c46b4=_0x2a0f2a;this['_status$'][_0x1c46b4(0x1a2)](_0x1c46b4(0x1a1)),this[_0x1c46b4(0x209)]();}};w=Z([f(0x2,_0x2e77bf),f(0x3,_0x459502(L)),f(0x4,_0x22ff36)],w);function Te(){var _0x3c223e=_0x2a0f2a;const _0x1b5ea0=_0x3e135f(I),_0x30e351=_0x3e135f(_0x560e40),_0x1afbe5=_0x1d56b5(()=>_0x30e351[_0x3c223e(0x217)](_0x43f478[_0x3c223e(0x1a9)]),void 0x0,!0x1,[]),[_0x64641,_0x2f18dd]=_0x216df8(null),[_0x51f2ae,_0x390ba0]=_0x216df8(h[_0x3c223e(0x1b8)]),_0x4cbef8=_0xba99eb(null);return _0x245dda(()=>(_0x1afbe5&&_0x1b5ea0[_0x3c223e(0x1f3)](_0x1afbe5[_0x3c223e(0x176)]())['then'](_0x427b54=>{var _0x5a4541=_0x3c223e;_0x2f18dd(_0x427b54),_0x4cbef8[_0x5a4541(0x202)]=_0x427b54[_0x5a4541(0x19d)]['subscribe'](_0x495bfe=>{_0x390ba0(_0x495bfe);});}),()=>{var _0x30de99=_0x3c223e,_0x31c493;(_0x31c493=_0x4cbef8[_0x30de99(0x202)])==null||_0x31c493[_0x30de99(0x1db)](),_0x4cbef8['current']=null;}),[_0x1afbe5,_0x1b5ea0]),_0x64641?_0x430726(_0x1f1fbe,{'align':_0x3c223e(0x1f2),'disabled':_0x51f2ae===h[_0x3c223e(0x1bb)],'className':_0x3c223e(0x20a),'overlay':_0x430726($e,{'status':_0x51f2ae,'coordinator':_0x64641}),'children':_0x430726(_0x3c223e(0x1fe),{'className':_0x285d7d('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x51f2ae===h[_0x3c223e(0x1bb)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x51f2ae!==h[_0x3c223e(0x1bb)]}),'type':_0x3c223e(0x1fe),'children':_0x430726(B,{'className':'univer-size-4'})})}):null;}function $e(_0xde28d2){var _0xbd4cbf=_0x2a0f2a;const {status:_0x41ec08,coordinator:_0x331241}=_0xde28d2;switch(_0x41ec08){case h[_0xbd4cbf(0x1b8)]:return _0x430726(Fe,{'coordinator':_0x331241});case h[_0xbd4cbf(0x1be)]:return _0x430726(He,{'coordinator':_0x331241});case h[_0xbd4cbf(0x1eb)]:return _0x430726(je,{'coordinator':_0x331241});case h['OFFLINE']:return _0x430726(Ve,{});case h[_0xbd4cbf(0x1ee)]:return _0x430726(Ue,{'coordinator':_0x331241});default:return null;}}function Fe(_0xbe1a3a){var _0x5cea33=_0x2a0f2a;const {coordinator:_0x341f93}=_0xbe1a3a;return _0x2b0221(_0x114633,{'children':[_0x430726(_0x5cea33(0x1ae),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5cea33(0x1f6)}),_0x430726(_0x46f48e,{'onClick':()=>_0x341f93[_0x5cea33(0x19a)](),'children':'Start'})]});}function _0x2677(){var _0x28e176=['subscribe','UNIVER_LIVE_SHARE_PLUGIN','getConfig','getOwnPropertySymbols','path','_collabSession','8756034LhQmzS','_commandDisposable','dispose$','UniverIcon','disposeWithMe','colorChannel1','toString','getTypeOfUnitAdded$','svg','univer-w-full\x20univer-mb-3\x20univer-text-sm','LIVESHARE_FETCH_OPERATIONS','univerjs-icon\x20univerjs-icon-','getValue','unsubscribe','className','string','parse','find','none','executeCommand','length','LIVESHARE_TERMINATE','displayName','getTypeOfUnitDisposed$','symbol','clear','apply','propertyIsEnumerable','onCommandExecuted','NOT_FOLLOWING','icon','registerSharedOperation','PRESENTING','getOwnPropertyDescriptor','_stopFollowing','data','end','getLiveShareCoordinator','replace','presenting','Present\x20this\x20document','values','extend','currentColor','complete','8362632WbMHtM','_collabSessionService','_startLiveShareCoordinator','button','live-share-single','stringify','_injector','current','_status','pipe','live-share.config','mutations','_mountLiveShare','concat','_fetchOperations','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','_config','set','defIds','stopPresenting','forEach','stopFollowing','includes','_handleNewHost','OPERATION','Stop\x20following','substring','3412748hbhvVq','getCurrentTypeOfUnit$','fill','reverse','_stopPresenting','UNIVER_UNKNOWN','995orkHYv','assign','NEW_CHANGESETS','evenodd','presenter','params','get','1101588NTzCoG','_status$','send','use','call','getUnitId','_configService','33738wltFtl','_unitID','trim','getMemberID','dispose','memberID','sessionStatus$','Start\x20following','offline','mask','LIVESHARE_NEW_HOST','from','_sharedOperations','_handleNewChangeSets','1011316hVYsZR','_reporters','_handleOffline','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','indexOf','has','defs','hasOwnProperty','_startPresenting','SAME_OPERATION_SHARE_INTERVAL','1em','_univerInstanceService','_entities','asObservable','You\x27re\x20following\x20the\x20presenter','event$','add','pluginName','operations','startFollowing','tryStartPresenting','_presenter','You\x27re\x20not\x20following\x20the\x20presenter','status$','LIVESHARE_REQUEST_HOST','_liveShareService','prototype','idle','next','entries','You\x27are\x20offline.','xlink:href','default','_handleTerminate','tag','UNIVER_SHEET','_uiPartsService','_beIdle','random','delete','div','_handleOnline','children','idSuffix','unitId','sheet','attrs','url(#$1','_init','not-following','IDLE','shouldShareOperation','following','OFFLINE','2356569zMlhsi','HEADER_MENU','FOLLOWING','override','_commandService','_startFollowing','type','0\x200\x2016\x2016','text','init','setConfig','_handleOperation'];_0x2677=function(){return _0x28e176;};return _0x2677();}function He(_0x51eb33){var _0x259bf8=_0x2a0f2a;const {coordinator:_0x1875cb}=_0x51eb33;return _0x2b0221(_0x114633,{'children':[_0x430726(_0x259bf8(0x1ae),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x259bf8(0x194)}),_0x430726(_0x46f48e,{'onClick':()=>_0x1875cb['stopFollowing'](),'children':_0x259bf8(0x214)})]});}function je(_0x39db73){var _0x2ba218=_0x2a0f2a;const {coordinator:_0x434681}=_0x39db73;return _0x2b0221(_0x114633,{'children':[_0x430726('div',{'className':_0x2ba218(0x1d7),'children':_0x2ba218(0x19c)}),_0x430726(_0x46f48e,{'variant':_0x2ba218(0x1c4),'onClick':()=>_0x434681[_0x2ba218(0x199)](),'children':_0x2ba218(0x17f)})]});}function Ue(_0x832789){var _0x40306e=_0x2a0f2a;const {coordinator:_0x14dfd1}=_0x832789;return _0x2b0221(_0x114633,{'children':[_0x430726(_0x40306e(0x1ae),{'className':_0x40306e(0x1d7),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x430726(_0x46f48e,{'variant':_0x40306e(0x1a6),'onClick':()=>_0x14dfd1['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x51e6c5=_0x2a0f2a;return _0x430726(_0x114633,{'children':_0x51e6c5(0x1a4)});}var Me=Object[_0x2a0f2a(0x1ef)],ke=(_0x1434f2,_0x4b0a39,_0x26271d,_0x113b22)=>{for(var _0x105e87=_0x113b22>0x1?void 0x0:_0x113b22?Me(_0x4b0a39,_0x26271d):_0x4b0a39,_0x5ad90c=_0x1434f2['length']-0x1,_0x39c6d1;_0x5ad90c>=0x0;_0x5ad90c--)(_0x39c6d1=_0x1434f2[_0x5ad90c])&&(_0x105e87=_0x39c6d1(_0x105e87)||_0x105e87);return _0x105e87;},$=(_0x56b26b,_0x15ecb3)=>(_0x45b54a,_0x27e27a)=>_0x15ecb3(_0x45b54a,_0x27e27a,_0x56b26b);let b=class extends _0x56d91a{constructor(_0x40ac16,_0x5cb5dd){var _0x14ee55=_0x2a0f2a;super(),this[_0x14ee55(0x201)]=_0x40ac16,this[_0x14ee55(0x1aa)]=_0x5cb5dd,this[_0x14ee55(0x207)]();}[_0x2a0f2a(0x207)](){var _0x401241=_0x2a0f2a;this[_0x401241(0x1d2)](this[_0x401241(0x1aa)]['registerComponent'](_0xba4be9[_0x401241(0x1bd)],()=>_0x57f19d(Te,this[_0x401241(0x201)])));}};b=ke([$(0x0,_0x459502(_0x511763)),$(0x1,_0xf8ae92)],b);var Ge=Object['defineProperty'],We=Object[_0x2a0f2a(0x1ef)],Ye=(_0x2b00db,_0x172369,_0xb421e9)=>_0x172369 in _0x2b00db?Ge(_0x2b00db,_0x172369,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb421e9}):_0x2b00db[_0x172369]=_0xb421e9,Be=(_0x32396a,_0x44fdda,_0x1b23c6,_0x118ac6)=>{var _0x40967b=_0x2a0f2a;for(var _0x18ecfe=_0x118ac6>0x1?void 0x0:_0x118ac6?We(_0x44fdda,_0x1b23c6):_0x44fdda,_0x290d5f=_0x32396a[_0x40967b(0x1e2)]-0x1,_0x4cc370;_0x290d5f>=0x0;_0x290d5f--)(_0x4cc370=_0x32396a[_0x290d5f])&&(_0x18ecfe=_0x4cc370(_0x18ecfe)||_0x18ecfe);return _0x18ecfe;},F=(_0x9e9494,_0x220691)=>(_0x6fcd4f,_0x2d5f9e)=>_0x220691(_0x6fcd4f,_0x2d5f9e,_0x9e9494),J=(_0x55a3c7,_0x3b81b2,_0x271a14)=>Ye(_0x55a3c7,typeof _0x3b81b2!='symbol'?_0x3b81b2+'':_0x3b81b2,_0x271a14);const Ze=_0x2a0f2a(0x1c9);let O=class extends _0x36cf9c{constructor(_0x1aca0a=T,_0x18593a,_0x2a6639){var _0x4aecc2=_0x2a0f2a;super(),this['_config']=_0x1aca0a,this[_0x4aecc2(0x201)]=_0x18593a,this[_0x4aecc2(0x177)]=_0x2a6639;const {..._0x5e8262}=_0x2a8c98({},T,this[_0x4aecc2(0x20b)]);this[_0x4aecc2(0x177)][_0x4aecc2(0x1c6)](Oe,_0x5e8262);}['onStarting'](){var _0x4a30a5=_0x2a0f2a;_0x123d95(this[_0x4a30a5(0x201)],_0x4f628e([[L],[I],[m],[b]],this[_0x4a30a5(0x20b)][_0x4a30a5(0x1bf)])),_0x2d4a9e(this[_0x4a30a5(0x201)],[[m]]);}['onRendered'](){var _0x1760ce=_0x2a0f2a;_0x2d4a9e(this[_0x1760ce(0x201)],[[b]]);}};function _0x1c4f(_0x412eea,_0x465a20){var _0x2677ee=_0x2677();return _0x1c4f=function(_0x1c4fa5,_0x1769d9){_0x1c4fa5=_0x1c4fa5-0x173;var _0x458a08=_0x2677ee[_0x1c4fa5];return _0x458a08;},_0x1c4f(_0x412eea,_0x465a20);}J(O,_0x2a0f2a(0x1c2),_0x43f478[_0x2a0f2a(0x21b)]),J(O,_0x2a0f2a(0x197),Ze),O=Be([_0x2ecbb5(_0x2cf583),F(0x1,_0x459502(_0x511763)),F(0x2,_0x2e77bf)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x3fcdaf=_0x25a1;(function(_0x4d672a,_0x24fba6){var _0x54399d=_0x25a1,_0x4e63b9=_0x4d672a();while(!![]){try{var _0x22af4f=parseInt(_0x54399d(0x1de))/0x1+-parseInt(_0x54399d(0x1fa))/0x2+-parseInt(_0x54399d(0x1c9))/0x3+-parseInt(_0x54399d(0x1c3))/0x4*(parseInt(_0x54399d(0x207))/0x5)+-parseInt(_0x54399d(0x1ed))/0x6*(parseInt(_0x54399d(0x1f0))/0x7)+-parseInt(_0x54399d(0x203))/0x8*(parseInt(_0x54399d(0x1bd))/0x9)+parseInt(_0x54399d(0x1b3))/0xa;if(_0x22af4f===_0x24fba6)break;else _0x4e63b9['push'](_0x4e63b9['shift']());}catch(_0x87228){_0x4e63b9['push'](_0x4e63b9['shift']());}}}(_0x11ac,0x5b937));var q=Object[_0x3fcdaf(0x1c6)],z=(_0x33f732,_0x12f0fb,_0x4db4b3)=>_0x12f0fb in _0x33f732?q(_0x33f732,_0x12f0fb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4db4b3}):_0x33f732[_0x12f0fb]=_0x4db4b3,d=(_0x14626c,_0x3e7667,_0x3d3703)=>z(_0x14626c,typeof _0x3e7667!=_0x3fcdaf(0x1a5)?_0x3e7667+'':_0x3e7667,_0x3d3703);import{CollaborationSessionService as _0x1c88e5,SessionStatus as _0x39743e,UniverCollaborationClientPlugin as _0x1df655}from'@univerjs-pro/collaboration-client';import{Disposable as _0x44f2cd,toDisposable as _0x318a6b,Inject as _0x9a82ee,IUniverInstanceService as _0x222400,Injector as _0xc9b6d3,IConfigService as _0x3de5df,ICommandService as _0x571f4b,RxDisposable as _0x167f70,UniverInstanceType as _0x507f24,DisposableCollection as _0x3b22fb,CommandType as _0x1728f8,DependentOn as _0x3730da,Plugin as _0x411b9e,merge as _0x596cea,registerDependencies as _0x5b4edf,mergeOverrideWithDependencies as _0x44214c,touchDependencies as _0x5e1ba2}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3cfc48,InsertSheetMutation as _0x4c632e}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x48f814,SetScrollOperation as _0xd2cb88}from'@univerjs/sheets-ui';import{useDependency as _0x53df57,useObservable as _0xd11abe,IUIPartsService as _0x4bf856,BuiltInUIPart as _0x896a64,connectInjector as _0x50a59d}from'@univerjs/ui';function _0x11ac(){var _0x474cac=['_uiPartsService','getValue','_collabSession','includes','UNIVER_UNKNOWN','live-share.config','idSuffix','following','11742620mlcEsg','icon','default','parse','getTypeOfUnitAdded$','operations','UNIVER_SHEET','data','_collabSessionService','path','10971mUnxHq','getInitialStates','getUnitId','mutations','NOT_FOLLOWING','requireSession','660124wPrugS','find','from','defineProperty','assign','subscribe','2128998QFzEcv','trim','_handleOffline','unitId','You\x27re\x20not\x20following\x20the\x20presenter','_fetchOperations','_startFollowing','_handleOperation','UNIVER_LIVE_SHARE_PLUGIN','_handleNewHost','stopPresenting','clear','presenting','getMemberID','LIVESHARE_OPERATION','prototype','indexOf','presenter','call','IDLE','_config','540273Zfscqk','registerInitialStateReporter','extend','dispose$','end','HEADER_MENU','registerSharedOperation','random','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','getOwnPropertyDescriptor','ONLINE','propertyIsEnumerable','1em','sessionStatus$','function','1256982ZsAdbq','_startLiveShareCoordinator','_status','7ysKeoD','div','You\x27are\x20offline.','_stopFollowing','onRendered','univer-w-full\x20univer-mb-3\x20univer-text-sm','set','getLiveShareCoordinator','dispose','pluginName','7332NsFQrH','unsubscribe','FOLLOWING','has','delete','replace','status$','_startPresenting','attrs','568cblJYZ','entries','Start','evenodd','10ZhqOgs','createInstance','length','sheet','_init','_entities','shouldShareOperation','not-following','_handleTerminate','defIds','use','LIVESHARE_REQUEST_HOST','override','Present\x20this\x20document','setConfig','init','complete','event$','LIVESHARE_FETCH_OPERATIONS','xlink:href','_commandDisposable','colorChannel1','children','string','disposeWithMe','type','mask','_univerInstanceService','get','reverse','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','stopFollowing','OFFLINE','getOwnPropertySymbols','_beIdle','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','url(#$1','text','current','concat','tag','getCurrentTypeOfUnit$','_injector','button','forEach','displayName','asObservable','getTypeOfUnitDisposed$','UniverIcon','univerjs-icon\x20univerjs-icon-','add','0\x200\x2016\x2016','stringify','then','_handleNewChangeSets','hasOwnProperty','Start\x20following','_configService','_handleOnline','tryStartPresenting','svg','params','offline','idle','LIVESHARE_NEW_HOST','values','Stop\x20presenting','_commandService','className','executeCommand','_presenter','onCommandExecuted','_liveShareService','_reporters','map','_sharedOperations','none','pipe','memberID','live-share-single','_status$','currentColor','send','Stop\x20following','substring','symbol','_mountLiveShare','univer-size-4','next','_unitID','fill'];_0x11ac=function(){return _0x474cac;};return _0x11ac();}import{jsx as _0xa1dd95,jsxs as _0x22e12f,Fragment as _0x1222e5}from'react/jsx-runtime';import{Dropdown as _0x12643e,clsx as _0x3635fb,Button as _0x3522ab}from'@univerjs/design';import{forwardRef as _0xd2827d,useRef as _0xb9fd4a,createElement as _0x5f3ba9,useState as _0x53fc5a,useEffect as _0x57fba0}from'react';import{CollaborationEvent as _0x35f1b9,parseProtocolChangeset as _0x30cec3}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x37a185,Subject as _0x33a2b2}from'rxjs';import{takeUntil as _0x580f25,throttleTime as _0x260576}from'rxjs/operators';const Oe=_0x3fcdaf(0x1b0),T={};class L extends _0x44f2cd{constructor(){var _0x555f04=_0x3fcdaf;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x555f04(0x250),new Set());}[_0x3fcdaf(0x1e4)](_0x39a294){var _0x323e5d=_0x3fcdaf;return this[_0x323e5d(0x252)][_0x323e5d(0x239)](_0x39a294),_0x318a6b(()=>this[_0x323e5d(0x252)][_0x323e5d(0x1fe)](_0x39a294));}[_0x3fcdaf(0x1df)](_0x334679){var _0x3fe2c1=_0x3fcdaf;return this[_0x3fe2c1(0x250)][_0x3fe2c1(0x239)](_0x334679),_0x318a6b(()=>this[_0x3fe2c1(0x250)][_0x3fe2c1(0x1fe)](_0x334679));}[_0x3fcdaf(0x20d)](_0x1b9cbe){var _0x5d2e6f=_0x3fcdaf;return this[_0x5d2e6f(0x252)]['has'](_0x1b9cbe);}['getInitialStates'](_0x481169){var _0x4bec6f=_0x3fcdaf;return Array[_0x4bec6f(0x1c5)](this[_0x4bec6f(0x250)])[_0x4bec6f(0x251)](_0x15427a=>_0x15427a(_0x481169));}}var Ee=Object['getOwnPropertyDescriptor'],Ce=(_0x31f9a7,_0xa56a10,_0x2eb30a,_0x5d6360)=>{var _0x599783=_0x3fcdaf;for(var _0x3465c2=_0x5d6360>0x1?void 0x0:_0x5d6360?Ee(_0xa56a10,_0x2eb30a):_0xa56a10,_0x58dc3b=_0x31f9a7[_0x599783(0x209)]-0x1,_0x4bcae8;_0x58dc3b>=0x0;_0x58dc3b--)(_0x4bcae8=_0x31f9a7[_0x58dc3b])&&(_0x3465c2=_0x4bcae8(_0x3465c2)||_0x3465c2);return _0x3465c2;},Ne=(_0x42b3e9,_0x3fcda2)=>(_0x2f7470,_0x2898b3)=>_0x3fcda2(_0x2f7470,_0x2898b3,_0x42b3e9);let m=class extends _0x44f2cd{constructor(_0x564d7c){var _0x18906f=_0x3fcdaf;super(),this[_0x18906f(0x24f)]=_0x564d7c,this['_init']();}[_0x3fcdaf(0x20b)](){[_0x48f814['id'],_0xd2cb88['id'],_0x3cfc48['id']]['forEach'](_0x4da95a=>{var _0x1f9a54=_0x25a1;this[_0x1f9a54(0x21f)](this['_liveShareService']['registerSharedOperation'](_0x4da95a));});}};function _0x25a1(_0xd0958f,_0x235a84){var _0x11ac7c=_0x11ac();return _0x25a1=function(_0x25a1b7,_0x1aff91){_0x25a1b7=_0x25a1b7-0x19c;var _0x307b62=_0x11ac7c[_0x25a1b7];return _0x307b62;},_0x25a1(_0xd0958f,_0x235a84);}m=Ce([Ne(0x0,_0x9a82ee(L))],m);var c=function(){var _0x11068e=_0x3fcdaf;return c=Object[_0x11068e(0x1c7)]||function(_0x59b78b){var _0x27081e=_0x11068e;for(var _0x28375a,_0x52f566=0x1,_0x4159a8=arguments[_0x27081e(0x209)];_0x52f566<_0x4159a8;_0x52f566++){_0x28375a=arguments[_0x52f566];for(var _0x3a0c75 in _0x28375a)Object['prototype'][_0x27081e(0x23e)][_0x27081e(0x1db)](_0x28375a,_0x3a0c75)&&(_0x59b78b[_0x3a0c75]=_0x28375a[_0x3a0c75]);}return _0x59b78b;},c['apply'](this,arguments);},we=function(_0x53dd1c,_0x2edcec){var _0x1fcc17=_0x3fcdaf,_0x43028c={};for(var _0x46fd07 in _0x53dd1c)Object[_0x1fcc17(0x1d8)][_0x1fcc17(0x23e)][_0x1fcc17(0x1db)](_0x53dd1c,_0x46fd07)&&_0x2edcec[_0x1fcc17(0x1d9)](_0x46fd07)<0x0&&(_0x43028c[_0x46fd07]=_0x53dd1c[_0x46fd07]);if(_0x53dd1c!=null&&typeof Object[_0x1fcc17(0x228)]==_0x1fcc17(0x1ec)){for(var _0x9957cd=0x0,_0x46fd07=Object['getOwnPropertySymbols'](_0x53dd1c);_0x9957cd<_0x46fd07[_0x1fcc17(0x209)];_0x9957cd++)_0x2edcec[_0x1fcc17(0x1d9)](_0x46fd07[_0x9957cd])<0x0&&Object[_0x1fcc17(0x1d8)][_0x1fcc17(0x1e9)]['call'](_0x53dd1c,_0x46fd07[_0x9957cd])&&(_0x43028c[_0x46fd07[_0x9957cd]]=_0x53dd1c[_0x46fd07[_0x9957cd]]);}return _0x43028c;},W=_0xd2827d(function(_0x296c6f,_0x3cca77){var _0x70f763=_0x3fcdaf,_0x11238e=_0x296c6f['icon'],_0x4ecc26=_0x296c6f['id'],_0x5d01f6=_0x296c6f[_0x70f763(0x24b)],_0x27ef29=_0x296c6f[_0x70f763(0x1e0)],_0x987b2=we(_0x296c6f,[_0x70f763(0x1b4),'id',_0x70f763(0x24b),_0x70f763(0x1e0)]),_0x5f4786=_0x70f763(0x238)[_0x70f763(0x22e)](_0x4ecc26,'\x20')[_0x70f763(0x22e)](_0x5d01f6||'')[_0x70f763(0x1ca)](),_0x16033f=_0xb9fd4a('_'[_0x70f763(0x22e)](Le()));return Y(_0x11238e,''[_0x70f763(0x22e)](_0x4ecc26),{'defIds':_0x11238e[_0x70f763(0x210)],'idSuffix':_0x16033f[_0x70f763(0x22d)]},c({'ref':_0x3cca77,'className':_0x5f4786},_0x987b2),_0x27ef29);});function Y(_0x1d1f2c,_0x35921f,_0x68b126,_0x4fe24e,_0x60810){var _0x2ffa4a=_0x3fcdaf;return _0x5f3ba9(_0x1d1f2c[_0x2ffa4a(0x22f)],c(c({'key':_0x35921f},De(_0x1d1f2c,_0x68b126,_0x60810)),_0x4fe24e),(xe(_0x1d1f2c,_0x68b126)[_0x2ffa4a(0x21d)]||[])[_0x2ffa4a(0x251)](function(_0x2d5738,_0x22c398){var _0x40e06b=_0x2ffa4a;return Y(_0x2d5738,''[_0x40e06b(0x22e)](_0x35921f,'-')[_0x40e06b(0x22e)](_0x1d1f2c[_0x40e06b(0x22f)],'-')[_0x40e06b(0x22e)](_0x22c398),_0x68b126,void 0x0,_0x60810);}));}function De(_0x294896,_0x45d42e,_0x19166b){var _0x47c556=_0x3fcdaf,_0x28a6d7=c({},_0x294896[_0x47c556(0x202)]);_0x19166b!=null&&_0x19166b[_0x47c556(0x21c)]&&_0x28a6d7['fill']==='colorChannel1'&&(_0x28a6d7[_0x47c556(0x1aa)]=_0x19166b['colorChannel1']),_0x294896['tag']===_0x47c556(0x221)&&_0x28a6d7['id']&&(_0x28a6d7['id']=_0x28a6d7['id']+_0x45d42e[_0x47c556(0x1b1)]),Object[_0x47c556(0x204)](_0x28a6d7)[_0x47c556(0x233)](function(_0x131a15){var _0x545d48=_0x47c556,_0xe27b47=_0x131a15[0x0],_0x497ec8=_0x131a15[0x1];_0xe27b47===_0x545d48(0x221)&&typeof _0x497ec8==_0x545d48(0x21e)&&(_0x28a6d7[_0xe27b47]=_0x497ec8[_0x545d48(0x1ff)](/url\(#(.*)\)/,_0x545d48(0x22b)['concat'](_0x45d42e[_0x545d48(0x1b1)],')')));});var _0x514f6e=_0x45d42e['defIds'];return!_0x514f6e||_0x514f6e[_0x47c556(0x209)]===0x0||(_0x294896['tag']===_0x47c556(0x211)&&_0x28a6d7[_0x47c556(0x21a)]&&(_0x28a6d7[_0x47c556(0x21a)]=_0x28a6d7[_0x47c556(0x21a)]+_0x45d42e[_0x47c556(0x1b1)]),Object[_0x47c556(0x204)](_0x28a6d7)[_0x47c556(0x233)](function(_0x25c8eb){var _0x21c936=_0x47c556,_0x94db30=_0x25c8eb[0x0],_0x3d829c=_0x25c8eb[0x1];typeof _0x3d829c==_0x21c936(0x21e)&&(_0x28a6d7[_0x94db30]=_0x3d829c[_0x21c936(0x1ff)](/url\(#(.*)\)/,_0x21c936(0x22b)['concat'](_0x45d42e[_0x21c936(0x1b1)],')')));})),_0x28a6d7;}function xe(_0x1ea667,_0x4949dd){var _0x4a562e=_0x3fcdaf,_0x37cdaf,_0x3f1b2d=_0x4949dd[_0x4a562e(0x210)];return!_0x3f1b2d||_0x3f1b2d[_0x4a562e(0x209)]===0x0?_0x1ea667:_0x1ea667['tag']==='defs'&&(!((_0x37cdaf=_0x1ea667[_0x4a562e(0x21d)])===null||_0x37cdaf===void 0x0)&&_0x37cdaf[_0x4a562e(0x209)])?c(c({},_0x1ea667),{'children':_0x1ea667[_0x4a562e(0x21d)][_0x4a562e(0x251)](function(_0x559945){var _0x55ad47=_0x4a562e;return typeof _0x559945[_0x55ad47(0x202)]['id']=='string'&&_0x3f1b2d&&_0x3f1b2d[_0x55ad47(0x1d9)](_0x559945[_0x55ad47(0x202)]['id'])>-0x1?c(c({},_0x559945),{'attrs':c(c({},_0x559945[_0x55ad47(0x202)]),{'id':_0x559945['attrs']['id']+_0x4949dd[_0x55ad47(0x1b1)]})}):_0x559945;})}):_0x1ea667;}function Le(){var _0xee673=_0x3fcdaf;return Math[_0xee673(0x1e5)]()['toString'](0x24)[_0xee673(0x1a4)](0x2,0x8);}W[_0x3fcdaf(0x234)]=_0x3fcdaf(0x237);var ye={'tag':_0x3fcdaf(0x243),'attrs':{'fill':_0x3fcdaf(0x19c),'viewBox':_0x3fcdaf(0x23a),'width':_0x3fcdaf(0x1ea),'height':_0x3fcdaf(0x1ea)},'children':[{'tag':_0x3fcdaf(0x1bc),'attrs':{'fill':'currentColor','d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':'path','attrs':{'fill':_0x3fcdaf(0x1a1),'d':_0x3fcdaf(0x1e6),'fillRule':_0x3fcdaf(0x206),'clipRule':'evenodd'}}]},B=_0xd2827d(function(_0x23b342,_0x5560b2){var _0x25772b=_0x3fcdaf;return _0x5f3ba9(W,Object[_0x25772b(0x1c7)]({},_0x23b342,{'id':_0x25772b(0x19f),'ref':_0x5560b2,'icon':ye}));});B[_0x3fcdaf(0x234)]='LiveShareSingle';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x48fc33,_0x55b7c5,_0x3d88e6,_0x14d1dc)=>{var _0x1022df=_0x3fcdaf;for(var _0x1f9625=_0x14d1dc>0x1?void 0x0:_0x14d1dc?Re(_0x55b7c5,_0x3d88e6):_0x55b7c5,_0x5a3b77=_0x48fc33[_0x1022df(0x209)]-0x1,_0x3bf937;_0x5a3b77>=0x0;_0x5a3b77--)(_0x3bf937=_0x48fc33[_0x5a3b77])&&(_0x1f9625=_0x3bf937(_0x1f9625)||_0x1f9625);return _0x1f9625;},f=(_0x336dd7,_0x201335)=>(_0x3c4363,_0xbc233f)=>_0x201335(_0x3c4363,_0xbc233f,_0x336dd7);let I=class extends _0x167f70{constructor(_0x4160b6,_0x136d08,_0x12ea06){var _0x2d397c=_0x3fcdaf;super(),d(this,_0x2d397c(0x20c),new Map()),(this['_univerInstanceService']=_0x4160b6,this[_0x2d397c(0x231)]=_0x136d08,this['_collabSessionService']=_0x12ea06,this[_0x2d397c(0x20b)]());}async[_0x3fcdaf(0x1f7)](_0x376baa){var _0x46cded=_0x3fcdaf;return this['_entities'][_0x46cded(0x1fd)](_0x376baa)||await this['_startLiveShareCoordinator'](_0x376baa),this['_entities'][_0x46cded(0x223)](_0x376baa);}[_0x3fcdaf(0x20b)](){var _0x504844=_0x3fcdaf;this[_0x504844(0x222)][_0x504844(0x1b7)](_0x507f24['UNIVER_SHEET'])['pipe'](_0x580f25(this[_0x504844(0x1e1)]))['subscribe'](async _0x1f0bf2=>{var _0x437acf=_0x504844;const _0xb93c37=_0x1f0bf2[_0x437acf(0x1bf)]();this[_0x437acf(0x20c)][_0x437acf(0x1fd)](_0xb93c37)||this[_0x437acf(0x1ee)](_0xb93c37);}),this[_0x504844(0x222)][_0x504844(0x236)](_0x507f24[_0x504844(0x1b9)])[_0x504844(0x19d)](_0x580f25(this[_0x504844(0x1e1)]))[_0x504844(0x1c8)](_0x5effe9=>{var _0x39f8dc=_0x504844;const _0x4d6694=_0x5effe9[_0x39f8dc(0x1bf)](),_0x1d16b5=this[_0x39f8dc(0x20c)][_0x39f8dc(0x223)](_0x4d6694);_0x1d16b5==null||_0x1d16b5[_0x39f8dc(0x1f8)]();});}async[_0x3fcdaf(0x1ee)](_0x404b98){var _0x1782ba=_0x3fcdaf;const _0x28d9ce=await this[_0x1782ba(0x1bb)][_0x1782ba(0x1c2)](_0x404b98),_0x248af2=this[_0x1782ba(0x231)][_0x1782ba(0x208)](w,_0x404b98,_0x28d9ce);return _0x248af2[_0x1782ba(0x216)](),this[_0x1782ba(0x20c)][_0x1782ba(0x1f6)](_0x404b98,_0x248af2),_0x248af2;}};I=Z([f(0x0,_0x222400),f(0x1,_0x9a82ee(_0xc9b6d3)),f(0x2,_0x9a82ee(_0x1c88e5))],I);var h=(_0x214d2f=>(_0x214d2f[_0x3fcdaf(0x227)]=_0x3fcdaf(0x245),_0x214d2f[_0x3fcdaf(0x1dc)]='idle',_0x214d2f[_0x3fcdaf(0x1fc)]=_0x3fcdaf(0x1b2),_0x214d2f['NOT_FOLLOWING']=_0x3fcdaf(0x20e),_0x214d2f['PRESENTING']=_0x3fcdaf(0x1d5),_0x214d2f))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let w=class extends _0x167f70{constructor(_0x4581dd,_0x5bdbf6,_0x3dd595,_0x48883b,_0x175870){var _0xc16918=_0x3fcdaf;super(),d(this,_0xc16918(0x1a0),new _0x37a185(_0xc16918(0x246))),d(this,_0xc16918(0x200),this[_0xc16918(0x1a0)][_0xc16918(0x235)]()),d(this,_0xc16918(0x20b),!0x1),d(this,_0xc16918(0x21b),null),d(this,_0xc16918(0x24d),null),(this['_unitID']=_0x4581dd,this[_0xc16918(0x1ad)]=_0x5bdbf6,this[_0xc16918(0x240)]=_0x3dd595,this[_0xc16918(0x24f)]=_0x48883b,this[_0xc16918(0x24a)]=_0x175870);}get[_0x3fcdaf(0x1ef)](){var _0x1a34f9=_0x3fcdaf;return this[_0x1a34f9(0x1a0)][_0x1a34f9(0x1ac)]();}[_0x3fcdaf(0x1f8)](){var _0x2d5834=_0x3fcdaf,_0x219e6d;(_0x219e6d=this[_0x2d5834(0x21b)])==null||_0x219e6d['dispose'](),this[_0x2d5834(0x1a0)][_0x2d5834(0x1a8)](_0x2d5834(0x246)),this[_0x2d5834(0x1a0)][_0x2d5834(0x217)]();}['init'](){var _0x2f6781=_0x3fcdaf;this['_init']||(this[_0x2f6781(0x20b)]=!0x0,this['_collabSession'][_0x2f6781(0x1eb)][_0x2f6781(0x19d)](_0x580f25(this[_0x2f6781(0x1e1)]))[_0x2f6781(0x1c8)](_0x4452b4=>{var _0x389b7f=_0x2f6781;switch(_0x4452b4){case _0x39743e['OFFLINE']:this[_0x389b7f(0x1cb)]();break;case _0x39743e[_0x389b7f(0x1e8)]:this[_0x389b7f(0x241)]();break;}}),this[_0x2f6781(0x1ad)][_0x2f6781(0x218)]['pipe'](_0x580f25(this['dispose$']))['subscribe'](_0x10a473=>{var _0x1cbc4a=_0x2f6781;const {eventID:_0x2a13a2}=_0x10a473;switch(_0x2a13a2){case _0x35f1b9[_0x1cbc4a(0x247)]:this[_0x1cbc4a(0x1d2)](_0x10a473);break;case _0x35f1b9[_0x1cbc4a(0x1d7)]:this[_0x1cbc4a(0x1d0)](_0x10a473);break;case _0x35f1b9['LIVESHARE_TERMINATE']:this[_0x1cbc4a(0x20f)]();break;case _0x35f1b9['NEW_CHANGESETS']:this[_0x1cbc4a(0x23d)](_0x10a473);break;}}));}['tryStartPresenting'](){var _0x2de7d0=_0x3fcdaf;this['_collabSession'][_0x2de7d0(0x1a2)]({'eventID':_0x35f1b9[_0x2de7d0(0x212)],'data':{'unitID':this[_0x2de7d0(0x1a9)],'userID':this[_0x2de7d0(0x1ad)][_0x2de7d0(0x1d6)]()}},this[_0x2de7d0(0x1a9)]);}[_0x3fcdaf(0x1d3)](){var _0x17a85f=_0x3fcdaf;this[_0x17a85f(0x1ef)]==='presenting'&&(this[_0x17a85f(0x1a0)][_0x17a85f(0x1a8)]('idle'),this[_0x17a85f(0x1ad)]['send']({'eventID':_0x35f1b9['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x17a85f(0x1a9)]}},this['_unitID']));}['startFollowing'](){var _0x496f13=_0x3fcdaf;this['_status']==='not-following'&&(this[_0x496f13(0x1a0)][_0x496f13(0x1a8)](_0x496f13(0x1b2)),this[_0x496f13(0x1cf)]());}[_0x3fcdaf(0x226)](){var _0x34671e=_0x3fcdaf;this[_0x34671e(0x1ef)]===_0x34671e(0x1b2)&&this[_0x34671e(0x1f3)]();}[_0x3fcdaf(0x1d2)](_0x2d1647){var _0x526b85=_0x3fcdaf;const {presenter:_0x3bb3d9}=_0x2d1647[_0x526b85(0x1ba)],_0x1fd0f1=this['_collabSession'][_0x526b85(0x1d6)]();this['_presenter']=_0x3bb3d9,_0x3bb3d9===_0x1fd0f1?(this[_0x526b85(0x1f3)](),this[_0x526b85(0x201)]()):this['_status']!==_0x526b85(0x20e)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x3fcdaf(0x1ce)](){var _0x51cf6e=_0x3fcdaf;const _0x46eae3={'eventID':_0x35f1b9[_0x51cf6e(0x219)]};this[_0x51cf6e(0x1ad)][_0x51cf6e(0x1a2)](_0x46eae3,this[_0x51cf6e(0x1a9)]);}[_0x3fcdaf(0x20f)](){var _0x545a57=_0x3fcdaf;this[_0x545a57(0x24d)]=null,this[_0x545a57(0x1ef)]!==_0x545a57(0x1d5)&&this[_0x545a57(0x229)]();}[_0x3fcdaf(0x23d)](_0x2f810c){var _0x4b7a1b=_0x3fcdaf;if(this[_0x4b7a1b(0x1ef)]==='following'&&this[_0x4b7a1b(0x24d)]===_0x2f810c[_0x4b7a1b(0x1ba)][_0x4b7a1b(0x19e)]){const _0x36aded=_0x30cec3(_0x2f810c['data'])[_0x4b7a1b(0x1c0)][_0x4b7a1b(0x224)]()[_0x4b7a1b(0x1c4)](_0x23eb5c=>_0x23eb5c['id']===_0x4c632e['id']);if(_0x36aded){const _0x4d8aa4=_0x36aded[_0x4b7a1b(0x244)][_0x4b7a1b(0x1cc)],_0x52fd49=_0x36aded[_0x4b7a1b(0x244)][_0x4b7a1b(0x20a)]['id'];setTimeout(()=>{var _0x2a7224=_0x4b7a1b;this[_0x2a7224(0x24a)][_0x2a7224(0x24c)](_0x3cfc48['id'],{'unitId':_0x4d8aa4,'subUnitId':_0x52fd49},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x50be08=_0x3fcdaf;this[_0x50be08(0x1a0)][_0x50be08(0x1a8)](_0x50be08(0x1d5));const _0x3f3612=new Map(),_0x10e7c0=this[_0x50be08(0x21b)]=new _0x3b22fb();_0x10e7c0[_0x50be08(0x239)](_0x318a6b(()=>{var _0x276870=_0x50be08;_0x3f3612[_0x276870(0x233)](_0x942135=>_0x942135[_0x276870(0x217)]()),_0x3f3612[_0x276870(0x1d4)]();})),_0x10e7c0[_0x50be08(0x239)](this[_0x50be08(0x24a)][_0x50be08(0x24e)](_0x189d22=>{var _0x406964=_0x50be08,_0x5a848a;if(_0x189d22[_0x406964(0x220)]!==_0x1728f8['OPERATION']||!this['_liveShareService'][_0x406964(0x20d)](_0x189d22['id']))return;const {id:_0xa41699}=_0x189d22;let _0x369cb9;_0x3f3612[_0x406964(0x1fd)](_0xa41699)?_0x369cb9=_0x3f3612[_0x406964(0x223)](_0xa41699):(_0x369cb9=new _0x33a2b2(),_0x3f3612[_0x406964(0x1f6)](_0xa41699,_0x369cb9),_0x369cb9[_0x406964(0x19d)](_0x260576((_0x5a848a=this[_0x406964(0x240)]['getConfig'](Pe))!=null?_0x5a848a:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x406964(0x1c8)](_0x16ccce=>{var _0x2ae079=_0x406964;this[_0x2ae079(0x1ad)][_0x2ae079(0x1a2)]({'eventID':_0x35f1b9['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2ae079(0x1a9)],'operations':{[_0x16ccce['id']]:{'id':_0x16ccce['id'],'params':JSON['stringify'](_0x16ccce[_0x2ae079(0x244)])}}}},this[_0x2ae079(0x1a9)]);})),_0x369cb9[_0x406964(0x1a8)](_0x189d22);})),this[_0x50be08(0x24f)][_0x50be08(0x1be)](this[_0x50be08(0x1a9)])[_0x50be08(0x233)](_0x3964d1=>this['_collabSession'][_0x50be08(0x1a2)]({'eventID':_0x35f1b9['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x50be08(0x1a9)],'operations':{[_0x3964d1['id']]:{'id':_0x3964d1['id'],'params':JSON[_0x50be08(0x23b)](_0x3964d1[_0x50be08(0x244)])}}}},this[_0x50be08(0x1a9)]));}['_stopPresenting'](){var _0x599ed3=_0x3fcdaf,_0x39a4cb;this[_0x599ed3(0x1a0)][_0x599ed3(0x1a8)]('idle'),(_0x39a4cb=this['_commandDisposable'])==null||_0x39a4cb[_0x599ed3(0x1f8)](),this['_commandDisposable']=null;}[_0x3fcdaf(0x1cf)](){var _0x447255=_0x3fcdaf,_0x3c0687;(_0x3c0687=this[_0x447255(0x21b)])==null||_0x3c0687[_0x447255(0x1f8)](),this['_status$']['next'](_0x447255(0x1b2));}[_0x3fcdaf(0x229)](){var _0x48be09=_0x3fcdaf,_0x1a77e1;this['_status$'][_0x48be09(0x1a8)](_0x48be09(0x246)),(_0x1a77e1=this[_0x48be09(0x21b)])==null||_0x1a77e1['dispose'](),this[_0x48be09(0x21b)]=null;}[_0x3fcdaf(0x1f3)](){var _0x1e9324=_0x3fcdaf,_0x576ed2;this['_status$'][_0x1e9324(0x1a8)](_0x1e9324(0x20e)),(_0x576ed2=this['_commandDisposable'])==null||_0x576ed2[_0x1e9324(0x1f8)]();}['_handleOperation'](_0x10eeb3){var _0x1e9120=_0x3fcdaf;if([_0x1e9120(0x1d5),_0x1e9120(0x20e),'offline'][_0x1e9120(0x1ae)](this[_0x1e9120(0x1ef)])||!_0x10eeb3['data']['presenter']||_0x10eeb3[_0x1e9120(0x1ba)][_0x1e9120(0x1da)]===this[_0x1e9120(0x1ad)]['getMemberID']())return;this[_0x1e9120(0x1ef)]===_0x1e9120(0x246)&&this[_0x1e9120(0x1cf)]();const _0x331e42=_0x10eeb3[_0x1e9120(0x1ba)][_0x1e9120(0x1b8)];Object[_0x1e9120(0x248)](_0x331e42)[_0x1e9120(0x233)](_0x2cd5a9=>{var _0x2491c3=_0x1e9120;this['_commandService'][_0x2491c3(0x24c)](_0x2cd5a9['id'],_0x2cd5a9[_0x2491c3(0x244)]?JSON[_0x2491c3(0x1b6)](_0x2cd5a9[_0x2491c3(0x244)]):null,{'fromCollab':!0x0});});}[_0x3fcdaf(0x1cb)](){var _0x17d1d7=_0x3fcdaf,_0x2d8cbb;this['_status$'][_0x17d1d7(0x1a8)]('offline'),(_0x2d8cbb=this['_commandDisposable'])==null||_0x2d8cbb[_0x17d1d7(0x1f8)]();}[_0x3fcdaf(0x241)](){var _0x4aac38=_0x3fcdaf;this['_status$'][_0x4aac38(0x1a8)](_0x4aac38(0x246)),this['_fetchOperations']();}};w=Z([f(0x2,_0x3de5df),f(0x3,_0x9a82ee(L)),f(0x4,_0x571f4b)],w);function Te(){var _0x499cb8=_0x3fcdaf;const _0x3c0926=_0x53df57(I),_0x1d4b0c=_0x53df57(_0x222400),_0x10a34d=_0xd11abe(()=>_0x1d4b0c[_0x499cb8(0x230)](_0x507f24['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x40d8af,_0x28a66]=_0x53fc5a(null),[_0x2b48e9,_0x42a832]=_0x53fc5a(h[_0x499cb8(0x1dc)]),_0x63460b=_0xb9fd4a(null);return _0x57fba0(()=>(_0x10a34d&&_0x3c0926['getLiveShareCoordinator'](_0x10a34d['getUnitId']())[_0x499cb8(0x23c)](_0x35c78a=>{var _0x3cd00e=_0x499cb8;_0x28a66(_0x35c78a),_0x63460b[_0x3cd00e(0x22d)]=_0x35c78a[_0x3cd00e(0x200)][_0x3cd00e(0x1c8)](_0x104b6b=>{_0x42a832(_0x104b6b);});}),()=>{var _0x317dd4=_0x499cb8,_0xf34370;(_0xf34370=_0x63460b[_0x317dd4(0x22d)])==null||_0xf34370[_0x317dd4(0x1fb)](),_0x63460b['current']=null;}),[_0x10a34d,_0x3c0926]),_0x40d8af?_0xa1dd95(_0x12643e,{'align':_0x499cb8(0x1e2),'disabled':_0x2b48e9===h[_0x499cb8(0x227)],'className':_0x499cb8(0x22a),'overlay':_0xa1dd95($e,{'status':_0x2b48e9,'coordinator':_0x40d8af}),'children':_0xa1dd95(_0x499cb8(0x232),{'className':_0x3635fb(_0x499cb8(0x225),{'univer-cursor-not-allowed':_0x2b48e9===h[_0x499cb8(0x227)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2b48e9!==h[_0x499cb8(0x227)]}),'type':'button','children':_0xa1dd95(B,{'className':_0x499cb8(0x1a7)})})}):null;}function $e(_0x37362c){var _0x595c9f=_0x3fcdaf;const {status:_0x3c4dc8,coordinator:_0x61d20b}=_0x37362c;switch(_0x3c4dc8){case h[_0x595c9f(0x1dc)]:return _0xa1dd95(Fe,{'coordinator':_0x61d20b});case h[_0x595c9f(0x1fc)]:return _0xa1dd95(He,{'coordinator':_0x61d20b});case h[_0x595c9f(0x1c1)]:return _0xa1dd95(je,{'coordinator':_0x61d20b});case h['OFFLINE']:return _0xa1dd95(Ve,{});case h['PRESENTING']:return _0xa1dd95(Ue,{'coordinator':_0x61d20b});default:return null;}}function Fe(_0x5e28fb){var _0x3d3a9d=_0x3fcdaf;const {coordinator:_0x458ff7}=_0x5e28fb;return _0x22e12f(_0x1222e5,{'children':[_0xa1dd95(_0x3d3a9d(0x1f1),{'className':_0x3d3a9d(0x1f5),'children':_0x3d3a9d(0x214)}),_0xa1dd95(_0x3522ab,{'onClick':()=>_0x458ff7[_0x3d3a9d(0x242)](),'children':_0x3d3a9d(0x205)})]});}function He(_0x48fba7){var _0x544036=_0x3fcdaf;const {coordinator:_0x40ac6f}=_0x48fba7;return _0x22e12f(_0x1222e5,{'children':[_0xa1dd95(_0x544036(0x1f1),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0xa1dd95(_0x3522ab,{'onClick':()=>_0x40ac6f[_0x544036(0x226)](),'children':_0x544036(0x1a3)})]});}function je(_0x4e471d){var _0x3494eb=_0x3fcdaf;const {coordinator:_0x21f659}=_0x4e471d;return _0x22e12f(_0x1222e5,{'children':[_0xa1dd95('div',{'className':_0x3494eb(0x1f5),'children':_0x3494eb(0x1cd)}),_0xa1dd95(_0x3522ab,{'variant':_0x3494eb(0x22c),'onClick':()=>_0x21f659['startFollowing'](),'children':_0x3494eb(0x23f)})]});}function Ue(_0xa94eaa){var _0x2835e2=_0x3fcdaf;const {coordinator:_0xb7a7c5}=_0xa94eaa;return _0x22e12f(_0x1222e5,{'children':[_0xa1dd95(_0x2835e2(0x1f1),{'className':_0x2835e2(0x1f5),'children':'You\x27re\x20presenting\x20the\x20document'}),_0xa1dd95(_0x3522ab,{'variant':_0x2835e2(0x1b5),'onClick':()=>_0xb7a7c5[_0x2835e2(0x1d3)](),'children':_0x2835e2(0x249)})]});}function Ve(){var _0x1389b4=_0x3fcdaf;return _0xa1dd95(_0x1222e5,{'children':_0x1389b4(0x1f2)});}var Me=Object[_0x3fcdaf(0x1e7)],ke=(_0x4309a6,_0x29e199,_0x4bf8bf,_0x2cba3c)=>{var _0x388cad=_0x3fcdaf;for(var _0x1adc6d=_0x2cba3c>0x1?void 0x0:_0x2cba3c?Me(_0x29e199,_0x4bf8bf):_0x29e199,_0x617904=_0x4309a6[_0x388cad(0x209)]-0x1,_0x26d74a;_0x617904>=0x0;_0x617904--)(_0x26d74a=_0x4309a6[_0x617904])&&(_0x1adc6d=_0x26d74a(_0x1adc6d)||_0x1adc6d);return _0x1adc6d;},$=(_0x26d02e,_0x1c2de6)=>(_0x345e23,_0x53562f)=>_0x1c2de6(_0x345e23,_0x53562f,_0x26d02e);let b=class extends _0x44f2cd{constructor(_0x5c34fd,_0x363429){var _0x3fed96=_0x3fcdaf;super(),this[_0x3fed96(0x231)]=_0x5c34fd,this['_uiPartsService']=_0x363429,this[_0x3fed96(0x1a6)]();}['_mountLiveShare'](){var _0x45e6e7=_0x3fcdaf;this[_0x45e6e7(0x21f)](this[_0x45e6e7(0x1ab)]['registerComponent'](_0x896a64[_0x45e6e7(0x1e3)],()=>_0x50a59d(Te,this[_0x45e6e7(0x231)])));}};b=ke([$(0x0,_0x9a82ee(_0xc9b6d3)),$(0x1,_0x4bf856)],b);var Ge=Object[_0x3fcdaf(0x1c6)],We=Object[_0x3fcdaf(0x1e7)],Ye=(_0x381340,_0x4a5134,_0x156510)=>_0x4a5134 in _0x381340?Ge(_0x381340,_0x4a5134,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x156510}):_0x381340[_0x4a5134]=_0x156510,Be=(_0xeed9e1,_0x5a38e7,_0x43061b,_0x230b68)=>{var _0x174969=_0x3fcdaf;for(var _0x3f8fdd=_0x230b68>0x1?void 0x0:_0x230b68?We(_0x5a38e7,_0x43061b):_0x5a38e7,_0x53e739=_0xeed9e1[_0x174969(0x209)]-0x1,_0x45bdd3;_0x53e739>=0x0;_0x53e739--)(_0x45bdd3=_0xeed9e1[_0x53e739])&&(_0x3f8fdd=_0x45bdd3(_0x3f8fdd)||_0x3f8fdd);return _0x3f8fdd;},F=(_0x8f27ac,_0x1eb7ca)=>(_0x5cb735,_0x542c8b)=>_0x1eb7ca(_0x5cb735,_0x542c8b,_0x8f27ac),J=(_0x5080c3,_0x189a8d,_0x3f3ab0)=>Ye(_0x5080c3,typeof _0x189a8d!=_0x3fcdaf(0x1a5)?_0x189a8d+'':_0x189a8d,_0x3f3ab0);const Ze=_0x3fcdaf(0x1d1);let O=class extends _0x411b9e{constructor(_0x114a4a=T,_0x151afe,_0x3c9d7e){var _0x335c3c=_0x3fcdaf;super(),this[_0x335c3c(0x1dd)]=_0x114a4a,this[_0x335c3c(0x231)]=_0x151afe,this[_0x335c3c(0x240)]=_0x3c9d7e;const {..._0x8a2894}=_0x596cea({},T,this[_0x335c3c(0x1dd)]);this['_configService'][_0x335c3c(0x215)](Oe,_0x8a2894);}['onStarting'](){var _0x3250fd=_0x3fcdaf;_0x5b4edf(this[_0x3250fd(0x231)],_0x44214c([[L],[I],[m],[b]],this[_0x3250fd(0x1dd)][_0x3250fd(0x213)])),_0x5e1ba2(this[_0x3250fd(0x231)],[[m]]);}[_0x3fcdaf(0x1f4)](){_0x5e1ba2(this['_injector'],[[b]]);}};J(O,_0x3fcdaf(0x220),_0x507f24[_0x3fcdaf(0x1af)]),J(O,_0x3fcdaf(0x1f9),Ze),O=Be([_0x3730da(_0x1df655),F(0x1,_0x9a82ee(_0xc9b6d3)),F(0x2,_0x3de5df)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x2a0f2a=_0x1c4f;(function(_0x5f0a4e,_0xddb148){var _0x469746=_0x1c4f,_0x1bfa3d=_0x5f0a4e();while(!![]){try{var _0x88fdf4=-parseInt(_0x469746(0x186))/0x1+parseInt(_0x469746(0x223))/0x2+parseInt(_0x469746(0x1bc))/0x3+-parseInt(_0x469746(0x216))/0x4+parseInt(_0x469746(0x21c))/0x5*(-parseInt(_0x469746(0x178))/0x6)+parseInt(_0x469746(0x1ce))/0x7+parseInt(_0x469746(0x1fb))/0x8;if(_0x88fdf4===_0xddb148)break;else _0x1bfa3d['push'](_0x1bfa3d['shift']());}catch(_0x1ab257){_0x1bfa3d['push'](_0x1bfa3d['shift']());}}}(_0x2677,0x9e744));var q=Object['defineProperty'],z=(_0x71726f,_0x613047,_0x47626e)=>_0x613047 in _0x71726f?q(_0x71726f,_0x613047,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x47626e}):_0x71726f[_0x613047]=_0x47626e,d=(_0x35722d,_0x3eb878,_0x405534)=>z(_0x35722d,typeof _0x3eb878!=_0x2a0f2a(0x1e6)?_0x3eb878+'':_0x3eb878,_0x405534);import{CollaborationSessionService as _0x139eaf,SessionStatus as _0x511ef6,UniverCollaborationClientPlugin as _0x2cf583}from'@univerjs-pro/collaboration-client';import{Disposable as _0x56d91a,toDisposable as _0x3ea5b0,Inject as _0x459502,IUniverInstanceService as _0x560e40,Injector as _0x511763,IConfigService as _0x2e77bf,ICommandService as _0x22ff36,RxDisposable as _0x2773af,UniverInstanceType as _0x43f478,DisposableCollection as _0x31b05b,CommandType as _0x53a8fc,DependentOn as _0x2ecbb5,Plugin as _0x36cf9c,merge as _0x2a8c98,registerDependencies as _0x123d95,mergeOverrideWithDependencies as _0x4f628e,touchDependencies as _0x2d4a9e}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x56cadf,InsertSheetMutation as _0x18edf1}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x236b5e,SetScrollOperation as _0x4e40a1}from'@univerjs/sheets-ui';import{useDependency as _0x3e135f,useObservable as _0x1d56b5,IUIPartsService as _0xf8ae92,BuiltInUIPart as _0xba4be9,connectInjector as _0x57f19d}from'@univerjs/ui';import{jsx as _0x430726,jsxs as _0x2b0221,Fragment as _0x114633}from'react/jsx-runtime';import{Dropdown as _0x1f1fbe,clsx as _0x285d7d,Button as _0x46f48e}from'@univerjs/design';import{forwardRef as _0x4e0fc8,useRef as _0xba99eb,createElement as _0x216e9d,useState as _0x216df8,useEffect as _0x245dda}from'react';import{CollaborationEvent as _0x4c2295,parseProtocolChangeset as _0x5217ed}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x4f5984,Subject as _0x5ef0c0}from'rxjs';import{takeUntil as _0x31d1f6,throttleTime as _0x2ea41b}from'rxjs/operators';const Oe=_0x2a0f2a(0x205),T={};class L extends _0x56d91a{constructor(){var _0x33d36e=_0x2a0f2a;super(...arguments),d(this,_0x33d36e(0x184),new Set()),d(this,_0x33d36e(0x187),new Set());}[_0x2a0f2a(0x1ed)](_0x215604){var _0x356f00=_0x2a0f2a;return this[_0x356f00(0x184)][_0x356f00(0x196)](_0x215604),_0x3ea5b0(()=>this['_sharedOperations'][_0x356f00(0x1ad)](_0x215604));}['registerInitialStateReporter'](_0x2b751f){return this['_reporters']['add'](_0x2b751f),_0x3ea5b0(()=>this['_reporters']['delete'](_0x2b751f));}[_0x2a0f2a(0x1b9)](_0x53b27c){var _0x4a3a32=_0x2a0f2a;return this[_0x4a3a32(0x184)][_0x4a3a32(0x18b)](_0x53b27c);}['getInitialStates'](_0x4d27f3){var _0x3ad593=_0x2a0f2a;return Array[_0x3ad593(0x183)](this['_reporters'])['map'](_0x5477ac=>_0x5477ac(_0x4d27f3));}}var Ee=Object[_0x2a0f2a(0x1ef)],Ce=(_0x4001dd,_0x42eb55,_0x1eebd0,_0xf7aeeb)=>{var _0x17af7b=_0x2a0f2a;for(var _0x2f99d4=_0xf7aeeb>0x1?void 0x0:_0xf7aeeb?Ee(_0x42eb55,_0x1eebd0):_0x42eb55,_0x3a22af=_0x4001dd[_0x17af7b(0x1e2)]-0x1,_0x490658;_0x3a22af>=0x0;_0x3a22af--)(_0x490658=_0x4001dd[_0x3a22af])&&(_0x2f99d4=_0x490658(_0x2f99d4)||_0x2f99d4);return _0x2f99d4;},Ne=(_0xf5d60e,_0x20bce6)=>(_0x1d54fa,_0x230642)=>_0x20bce6(_0x1d54fa,_0x230642,_0xf5d60e);let m=class extends _0x56d91a{constructor(_0x2e9499){var _0x71e7e5=_0x2a0f2a;super(),this['_liveShareService']=_0x2e9499,this[_0x71e7e5(0x1b6)]();}[_0x2a0f2a(0x1b6)](){[_0x236b5e['id'],_0x4e40a1['id'],_0x56cadf['id']]['forEach'](_0x39d97e=>{var _0x16ebaf=_0x1c4f;this['disposeWithMe'](this[_0x16ebaf(0x19f)][_0x16ebaf(0x1ed)](_0x39d97e));});}};m=Ce([Ne(0x0,_0x459502(L))],m);var c=function(){var _0x691001=_0x2a0f2a;return c=Object[_0x691001(0x21d)]||function(_0x5e32e4){var _0x4cdf4a=_0x691001;for(var _0xdaa6f3,_0x1caf9d=0x1,_0x59d549=arguments[_0x4cdf4a(0x1e2)];_0x1caf9d<_0x59d549;_0x1caf9d++){_0xdaa6f3=arguments[_0x1caf9d];for(var _0x189455 in _0xdaa6f3)Object[_0x4cdf4a(0x1a0)]['hasOwnProperty'][_0x4cdf4a(0x175)](_0xdaa6f3,_0x189455)&&(_0x5e32e4[_0x189455]=_0xdaa6f3[_0x189455]);}return _0x5e32e4;},c[_0x691001(0x1e8)](this,arguments);},we=function(_0x10c2c8,_0x3f7e1a){var _0x437ecd=_0x2a0f2a,_0x39fc14={};for(var _0x4720c3 in _0x10c2c8)Object[_0x437ecd(0x1a0)][_0x437ecd(0x18d)][_0x437ecd(0x175)](_0x10c2c8,_0x4720c3)&&_0x3f7e1a[_0x437ecd(0x18a)](_0x4720c3)<0x0&&(_0x39fc14[_0x4720c3]=_0x10c2c8[_0x4720c3]);if(_0x10c2c8!=null&&typeof Object[_0x437ecd(0x1cb)]=='function'){for(var _0x134b13=0x0,_0x4720c3=Object['getOwnPropertySymbols'](_0x10c2c8);_0x134b13<_0x4720c3[_0x437ecd(0x1e2)];_0x134b13++)_0x3f7e1a[_0x437ecd(0x18a)](_0x4720c3[_0x134b13])<0x0&&Object[_0x437ecd(0x1a0)][_0x437ecd(0x1e9)][_0x437ecd(0x175)](_0x10c2c8,_0x4720c3[_0x134b13])&&(_0x39fc14[_0x4720c3[_0x134b13]]=_0x10c2c8[_0x4720c3[_0x134b13]]);}return _0x39fc14;},W=_0x4e0fc8(function(_0x380565,_0x224b02){var _0x394fb5=_0x2a0f2a,_0x40daa6=_0x380565[_0x394fb5(0x1ec)],_0x243046=_0x380565['id'],_0x31ed57=_0x380565[_0x394fb5(0x1dc)],_0x2211ab=_0x380565[_0x394fb5(0x1f8)],_0x17b0db=we(_0x380565,[_0x394fb5(0x1ec),'id',_0x394fb5(0x1dc),_0x394fb5(0x1f8)]),_0x203233=_0x394fb5(0x1d9)[_0x394fb5(0x208)](_0x243046,'\x20')[_0x394fb5(0x208)](_0x31ed57||'')[_0x394fb5(0x17a)](),_0x366822=_0xba99eb('_'[_0x394fb5(0x208)](Le()));return Y(_0x40daa6,''[_0x394fb5(0x208)](_0x243046),{'defIds':_0x40daa6[_0x394fb5(0x20d)],'idSuffix':_0x366822['current']},c({'ref':_0x224b02,'className':_0x203233},_0x17b0db),_0x2211ab);});function Y(_0x4e3849,_0xc6506,_0x5da265,_0x187970,_0x4deec8){var _0x327db8=_0x2a0f2a;return _0x216e9d(_0x4e3849[_0x327db8(0x1a8)],c(c({'key':_0xc6506},De(_0x4e3849,_0x5da265,_0x4deec8)),_0x187970),(xe(_0x4e3849,_0x5da265)[_0x327db8(0x1b0)]||[])['map'](function(_0x1372b5,_0x48514a){var _0x119d1e=_0x327db8;return Y(_0x1372b5,''[_0x119d1e(0x208)](_0xc6506,'-')[_0x119d1e(0x208)](_0x4e3849['tag'],'-')[_0x119d1e(0x208)](_0x48514a),_0x5da265,void 0x0,_0x4deec8);}));}function De(_0x4f6fa1,_0x1dbbfd,_0x4cab33){var _0x5a51bf=_0x2a0f2a,_0x3f8a37=c({},_0x4f6fa1[_0x5a51bf(0x1b4)]);_0x4cab33!=null&&_0x4cab33[_0x5a51bf(0x1d3)]&&_0x3f8a37[_0x5a51bf(0x218)]===_0x5a51bf(0x1d3)&&(_0x3f8a37[_0x5a51bf(0x218)]=_0x4cab33[_0x5a51bf(0x1d3)]),_0x4f6fa1['tag']===_0x5a51bf(0x181)&&_0x3f8a37['id']&&(_0x3f8a37['id']=_0x3f8a37['id']+_0x1dbbfd[_0x5a51bf(0x1b1)]),Object[_0x5a51bf(0x1a3)](_0x3f8a37)[_0x5a51bf(0x20f)](function(_0x23d6ee){var _0x5c8e7b=_0x5a51bf,_0x1a0220=_0x23d6ee[0x0],_0x489556=_0x23d6ee[0x1];_0x1a0220===_0x5c8e7b(0x181)&&typeof _0x489556=='string'&&(_0x3f8a37[_0x1a0220]=_0x489556[_0x5c8e7b(0x1f4)](/url\(#(.*)\)/,'url(#$1'[_0x5c8e7b(0x208)](_0x1dbbfd[_0x5c8e7b(0x1b1)],')')));});var _0x23c14=_0x1dbbfd[_0x5a51bf(0x20d)];return!_0x23c14||_0x23c14['length']===0x0||(_0x4f6fa1[_0x5a51bf(0x1a8)]===_0x5a51bf(0x174)&&_0x3f8a37['xlink:href']&&(_0x3f8a37['xlink:href']=_0x3f8a37[_0x5a51bf(0x1a5)]+_0x1dbbfd[_0x5a51bf(0x1b1)]),Object[_0x5a51bf(0x1a3)](_0x3f8a37)[_0x5a51bf(0x20f)](function(_0x4aeb54){var _0x12b600=_0x5a51bf,_0x2543d2=_0x4aeb54[0x0],_0x43488c=_0x4aeb54[0x1];typeof _0x43488c==_0x12b600(0x1dd)&&(_0x3f8a37[_0x2543d2]=_0x43488c[_0x12b600(0x1f4)](/url\(#(.*)\)/,_0x12b600(0x1b5)[_0x12b600(0x208)](_0x1dbbfd[_0x12b600(0x1b1)],')')));})),_0x3f8a37;}function xe(_0x29a139,_0x5052f5){var _0x3e8e57=_0x2a0f2a,_0x17b817,_0x46a30d=_0x5052f5[_0x3e8e57(0x20d)];return!_0x46a30d||_0x46a30d[_0x3e8e57(0x1e2)]===0x0?_0x29a139:_0x29a139[_0x3e8e57(0x1a8)]===_0x3e8e57(0x18c)&&(!((_0x17b817=_0x29a139[_0x3e8e57(0x1b0)])===null||_0x17b817===void 0x0)&&_0x17b817['length'])?c(c({},_0x29a139),{'children':_0x29a139[_0x3e8e57(0x1b0)]['map'](function(_0xce47ed){var _0x3a2a29=_0x3e8e57;return typeof _0xce47ed[_0x3a2a29(0x1b4)]['id']==_0x3a2a29(0x1dd)&&_0x46a30d&&_0x46a30d[_0x3a2a29(0x18a)](_0xce47ed[_0x3a2a29(0x1b4)]['id'])>-0x1?c(c({},_0xce47ed),{'attrs':c(c({},_0xce47ed[_0x3a2a29(0x1b4)]),{'id':_0xce47ed[_0x3a2a29(0x1b4)]['id']+_0x5052f5[_0x3a2a29(0x1b1)]})}):_0xce47ed;})}):_0x29a139;}function Le(){var _0x2a9c00=_0x2a0f2a;return Math[_0x2a9c00(0x1ac)]()[_0x2a9c00(0x1d4)](0x24)[_0x2a9c00(0x215)](0x2,0x8);}W[_0x2a0f2a(0x1e4)]=_0x2a0f2a(0x1d1);var ye={'tag':_0x2a0f2a(0x1d6),'attrs':{'fill':_0x2a0f2a(0x1e0),'viewBox':_0x2a0f2a(0x1c3),'width':'1em','height':_0x2a0f2a(0x190)},'children':[{'tag':_0x2a0f2a(0x1cc),'attrs':{'fill':_0x2a0f2a(0x1f9),'d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':'path','attrs':{'fill':_0x2a0f2a(0x1f9),'d':_0x2a0f2a(0x189),'fillRule':_0x2a0f2a(0x21f),'clipRule':_0x2a0f2a(0x21f)}}]},B=_0x4e0fc8(function(_0x1d6b22,_0x193f10){var _0x43ac9d=_0x2a0f2a;return _0x216e9d(W,Object[_0x43ac9d(0x21d)]({},_0x1d6b22,{'id':_0x43ac9d(0x1ff),'ref':_0x193f10,'icon':ye}));});B['displayName']='LiveShareSingle';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x4ebed0,_0x2a5db7,_0x138018,_0x1605d5)=>{var _0x39caec=_0x2a0f2a;for(var _0x3dbed8=_0x1605d5>0x1?void 0x0:_0x1605d5?Re(_0x2a5db7,_0x138018):_0x2a5db7,_0x1af66d=_0x4ebed0[_0x39caec(0x1e2)]-0x1,_0x3a2c18;_0x1af66d>=0x0;_0x1af66d--)(_0x3a2c18=_0x4ebed0[_0x1af66d])&&(_0x3dbed8=_0x3a2c18(_0x3dbed8)||_0x3dbed8);return _0x3dbed8;},f=(_0x4d06cc,_0x46eae0)=>(_0x4206a4,_0x2e663b)=>_0x46eae0(_0x4206a4,_0x2e663b,_0x4d06cc);let I=class extends _0x2773af{constructor(_0x3270dd,_0x433c2b,_0x3ab648){var _0x5ca8be=_0x2a0f2a;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x3270dd,this[_0x5ca8be(0x201)]=_0x433c2b,this[_0x5ca8be(0x1fc)]=_0x3ab648,this[_0x5ca8be(0x1b6)]());}async['getLiveShareCoordinator'](_0x41c42d){var _0x40a477=_0x2a0f2a;return this[_0x40a477(0x192)][_0x40a477(0x18b)](_0x41c42d)||await this[_0x40a477(0x1fd)](_0x41c42d),this[_0x40a477(0x192)][_0x40a477(0x222)](_0x41c42d);}[_0x2a0f2a(0x1b6)](){var _0x2423a0=_0x2a0f2a;this[_0x2423a0(0x191)][_0x2423a0(0x1d5)](_0x43f478[_0x2423a0(0x1a9)])[_0x2423a0(0x204)](_0x31d1f6(this[_0x2423a0(0x1d0)]))['subscribe'](async _0x115fc8=>{var _0x1a6f31=_0x2423a0;const _0x1c1e12=_0x115fc8[_0x1a6f31(0x176)]();this[_0x1a6f31(0x192)]['has'](_0x1c1e12)||this[_0x1a6f31(0x1fd)](_0x1c1e12);}),this['_univerInstanceService'][_0x2423a0(0x1e5)](_0x43f478[_0x2423a0(0x1a9)])['pipe'](_0x31d1f6(this[_0x2423a0(0x1d0)]))[_0x2423a0(0x1c8)](_0x41085c=>{var _0xb336f2=_0x2423a0;const _0x104a96=_0x41085c['getUnitId'](),_0x829d45=this[_0xb336f2(0x192)][_0xb336f2(0x222)](_0x104a96);_0x829d45==null||_0x829d45[_0xb336f2(0x17c)]();});}async[_0x2a0f2a(0x1fd)](_0x527381){var _0x3705c8=_0x2a0f2a;const _0x5b53a0=await this['_collabSessionService']['requireSession'](_0x527381),_0x125e20=this[_0x3705c8(0x201)]['createInstance'](w,_0x527381,_0x5b53a0);return _0x125e20[_0x3705c8(0x1c5)](),this['_entities'][_0x3705c8(0x20c)](_0x527381,_0x125e20),_0x125e20;}};I=Z([f(0x0,_0x560e40),f(0x1,_0x459502(_0x511763)),f(0x2,_0x459502(_0x139eaf))],I);var h=(_0x108c59=>(_0x108c59[_0x2a0f2a(0x1bb)]=_0x2a0f2a(0x180),_0x108c59['IDLE']=_0x2a0f2a(0x1a1),_0x108c59[_0x2a0f2a(0x1be)]=_0x2a0f2a(0x1ba),_0x108c59['NOT_FOLLOWING']=_0x2a0f2a(0x1b7),_0x108c59[_0x2a0f2a(0x1ee)]=_0x2a0f2a(0x1f5),_0x108c59))(h||{});const Pe=_0x2a0f2a(0x18f),Ae=0xc8;let w=class extends _0x2773af{constructor(_0x4a70b2,_0x1cd2d6,_0x38f627,_0x6747b9,_0x42f5a5){var _0x356b61=_0x2a0f2a;super(),d(this,_0x356b61(0x224),new _0x4f5984(_0x356b61(0x1a1))),d(this,'status$',this['_status$'][_0x356b61(0x193)]()),d(this,_0x356b61(0x1b6),!0x1),d(this,'_commandDisposable',null),d(this,_0x356b61(0x19b),null),(this['_unitID']=_0x4a70b2,this['_collabSession']=_0x1cd2d6,this['_configService']=_0x38f627,this[_0x356b61(0x19f)]=_0x6747b9,this[_0x356b61(0x1c0)]=_0x42f5a5);}get[_0x2a0f2a(0x203)](){var _0x367dca=_0x2a0f2a;return this[_0x367dca(0x224)][_0x367dca(0x1da)]();}[_0x2a0f2a(0x17c)](){var _0x55fdf5=_0x2a0f2a,_0x55b3c9;(_0x55b3c9=this[_0x55fdf5(0x1cf)])==null||_0x55b3c9[_0x55fdf5(0x17c)](),this[_0x55fdf5(0x224)]['next']('idle'),this[_0x55fdf5(0x224)][_0x55fdf5(0x1fa)]();}['init'](){var _0x15d87a=_0x2a0f2a;this['_init']||(this[_0x15d87a(0x1b6)]=!0x0,this[_0x15d87a(0x1cd)][_0x15d87a(0x17e)][_0x15d87a(0x204)](_0x31d1f6(this[_0x15d87a(0x1d0)]))['subscribe'](_0x305799=>{var _0x166441=_0x15d87a;switch(_0x305799){case _0x511ef6[_0x166441(0x1bb)]:this[_0x166441(0x188)]();break;case _0x511ef6['ONLINE']:this[_0x166441(0x1af)]();break;}}),this['_collabSession'][_0x15d87a(0x195)][_0x15d87a(0x204)](_0x31d1f6(this[_0x15d87a(0x1d0)]))[_0x15d87a(0x1c8)](_0x2fc1f7=>{var _0x2a22b7=_0x15d87a;const {eventID:_0x3517c0}=_0x2fc1f7;switch(_0x3517c0){case _0x4c2295[_0x2a22b7(0x182)]:this[_0x2a22b7(0x212)](_0x2fc1f7);break;case _0x4c2295['LIVESHARE_OPERATION']:this[_0x2a22b7(0x1c7)](_0x2fc1f7);break;case _0x4c2295['LIVESHARE_TERMINATE']:this[_0x2a22b7(0x1a7)]();break;case _0x4c2295[_0x2a22b7(0x21e)]:this[_0x2a22b7(0x185)](_0x2fc1f7);break;}}));}[_0x2a0f2a(0x19a)](){var _0x1ed016=_0x2a0f2a;this['_collabSession'][_0x1ed016(0x173)]({'eventID':_0x4c2295[_0x1ed016(0x19e)],'data':{'unitID':this[_0x1ed016(0x179)],'userID':this[_0x1ed016(0x1cd)][_0x1ed016(0x17b)]()}},this[_0x1ed016(0x179)]);}[_0x2a0f2a(0x20e)](){var _0x480d6b=_0x2a0f2a;this[_0x480d6b(0x203)]==='presenting'&&(this[_0x480d6b(0x224)][_0x480d6b(0x1a2)](_0x480d6b(0x1a1)),this[_0x480d6b(0x1cd)]['send']({'eventID':_0x4c2295[_0x480d6b(0x1e3)],'data':{'unitID':this[_0x480d6b(0x179)]}},this['_unitID']));}[_0x2a0f2a(0x199)](){var _0x18b58d=_0x2a0f2a;this['_status']===_0x18b58d(0x1b7)&&(this[_0x18b58d(0x224)][_0x18b58d(0x1a2)](_0x18b58d(0x1ba)),this[_0x18b58d(0x1c1)]());}[_0x2a0f2a(0x210)](){var _0x346a6f=_0x2a0f2a;this[_0x346a6f(0x203)]===_0x346a6f(0x1ba)&&this[_0x346a6f(0x1f0)]();}[_0x2a0f2a(0x212)](_0xdec379){var _0x52bea8=_0x2a0f2a;const {presenter:_0x4608f7}=_0xdec379[_0x52bea8(0x1f1)],_0x430298=this[_0x52bea8(0x1cd)][_0x52bea8(0x17b)]();this[_0x52bea8(0x19b)]=_0x4608f7,_0x4608f7===_0x430298?(this['_stopFollowing'](),this[_0x52bea8(0x18e)]()):this[_0x52bea8(0x203)]!==_0x52bea8(0x1b7)&&(this[_0x52bea8(0x21a)](),this[_0x52bea8(0x1c1)]());}[_0x2a0f2a(0x209)](){var _0x21296b=_0x2a0f2a;const _0x10e00c={'eventID':_0x4c2295[_0x21296b(0x1d8)]};this[_0x21296b(0x1cd)][_0x21296b(0x173)](_0x10e00c,this[_0x21296b(0x179)]);}['_handleTerminate'](){var _0x4002fa=_0x2a0f2a;this[_0x4002fa(0x19b)]=null,this[_0x4002fa(0x203)]!==_0x4002fa(0x1f5)&&this['_beIdle']();}[_0x2a0f2a(0x185)](_0x3af917){var _0x34fd8a=_0x2a0f2a;if(this[_0x34fd8a(0x203)]===_0x34fd8a(0x1ba)&&this[_0x34fd8a(0x19b)]===_0x3af917[_0x34fd8a(0x1f1)][_0x34fd8a(0x17d)]){const _0x3e82f9=_0x5217ed(_0x3af917[_0x34fd8a(0x1f1)])[_0x34fd8a(0x206)][_0x34fd8a(0x219)]()[_0x34fd8a(0x1df)](_0x321758=>_0x321758['id']===_0x18edf1['id']);if(_0x3e82f9){const _0x48c6ad=_0x3e82f9[_0x34fd8a(0x221)][_0x34fd8a(0x1b2)],_0x139d7e=_0x3e82f9[_0x34fd8a(0x221)][_0x34fd8a(0x1b3)]['id'];setTimeout(()=>{var _0x490019=_0x34fd8a;this[_0x490019(0x1c0)]['executeCommand'](_0x56cadf['id'],{'unitId':_0x48c6ad,'subUnitId':_0x139d7e},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x36e74f=_0x2a0f2a;this[_0x36e74f(0x224)][_0x36e74f(0x1a2)](_0x36e74f(0x1f5));const _0xd51831=new Map(),_0x2cd56=this[_0x36e74f(0x1cf)]=new _0x31b05b();_0x2cd56[_0x36e74f(0x196)](_0x3ea5b0(()=>{var _0x4bf972=_0x36e74f;_0xd51831['forEach'](_0x423f73=>_0x423f73['complete']()),_0xd51831[_0x4bf972(0x1e7)]();})),_0x2cd56[_0x36e74f(0x196)](this[_0x36e74f(0x1c0)][_0x36e74f(0x1ea)](_0x98a794=>{var _0x2ecaf6=_0x36e74f,_0x2907b4;if(_0x98a794[_0x2ecaf6(0x1c2)]!==_0x53a8fc[_0x2ecaf6(0x213)]||!this[_0x2ecaf6(0x19f)][_0x2ecaf6(0x1b9)](_0x98a794['id']))return;const {id:_0x5419d3}=_0x98a794;let _0x26991d;_0xd51831['has'](_0x5419d3)?_0x26991d=_0xd51831[_0x2ecaf6(0x222)](_0x5419d3):(_0x26991d=new _0x5ef0c0(),_0xd51831['set'](_0x5419d3,_0x26991d),_0x26991d[_0x2ecaf6(0x204)](_0x2ea41b((_0x2907b4=this['_configService'][_0x2ecaf6(0x1ca)](Pe))!=null?_0x2907b4:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2ecaf6(0x1c8)](_0x2cc61e=>{var _0x241d8d=_0x2ecaf6;this[_0x241d8d(0x1cd)][_0x241d8d(0x173)]({'eventID':_0x4c2295['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x2cc61e['id']]:{'id':_0x2cc61e['id'],'params':JSON['stringify'](_0x2cc61e['params'])}}}},this['_unitID']);})),_0x26991d[_0x2ecaf6(0x1a2)](_0x98a794);})),this[_0x36e74f(0x19f)]['getInitialStates'](this[_0x36e74f(0x179)])['forEach'](_0x55d07e=>this[_0x36e74f(0x1cd)][_0x36e74f(0x173)]({'eventID':_0x4c2295['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x36e74f(0x179)],'operations':{[_0x55d07e['id']]:{'id':_0x55d07e['id'],'params':JSON[_0x36e74f(0x200)](_0x55d07e[_0x36e74f(0x221)])}}}},this[_0x36e74f(0x179)]));}['_stopPresenting'](){var _0x4cba9d=_0x2a0f2a,_0x16510d;this[_0x4cba9d(0x224)]['next']('idle'),(_0x16510d=this['_commandDisposable'])==null||_0x16510d[_0x4cba9d(0x17c)](),this[_0x4cba9d(0x1cf)]=null;}[_0x2a0f2a(0x1c1)](){var _0x578337=_0x2a0f2a,_0x404f1b;(_0x404f1b=this[_0x578337(0x1cf)])==null||_0x404f1b[_0x578337(0x17c)](),this['_status$'][_0x578337(0x1a2)]('following');}[_0x2a0f2a(0x1ab)](){var _0x576e7e=_0x2a0f2a,_0x36a142;this[_0x576e7e(0x224)][_0x576e7e(0x1a2)](_0x576e7e(0x1a1)),(_0x36a142=this['_commandDisposable'])==null||_0x36a142[_0x576e7e(0x17c)](),this[_0x576e7e(0x1cf)]=null;}[_0x2a0f2a(0x1f0)](){var _0x384008=_0x2a0f2a,_0x22abe2;this[_0x384008(0x224)][_0x384008(0x1a2)](_0x384008(0x1b7)),(_0x22abe2=this[_0x384008(0x1cf)])==null||_0x22abe2['dispose']();}[_0x2a0f2a(0x1c7)](_0x4aceee){var _0x4d2112=_0x2a0f2a;if([_0x4d2112(0x1f5),'not-following',_0x4d2112(0x180)][_0x4d2112(0x211)](this['_status'])||!_0x4aceee['data'][_0x4d2112(0x220)]||_0x4aceee['data'][_0x4d2112(0x220)]===this['_collabSession'][_0x4d2112(0x17b)]())return;this[_0x4d2112(0x203)]===_0x4d2112(0x1a1)&&this[_0x4d2112(0x1c1)]();const _0x3e813a=_0x4aceee['data'][_0x4d2112(0x198)];Object[_0x4d2112(0x1f7)](_0x3e813a)[_0x4d2112(0x20f)](_0x235fe2=>{var _0x2caec8=_0x4d2112;this[_0x2caec8(0x1c0)][_0x2caec8(0x1e1)](_0x235fe2['id'],_0x235fe2[_0x2caec8(0x221)]?JSON[_0x2caec8(0x1de)](_0x235fe2[_0x2caec8(0x221)]):null,{'fromCollab':!0x0});});}[_0x2a0f2a(0x188)](){var _0x16eb4c=_0x2a0f2a,_0x37d952;this[_0x16eb4c(0x224)][_0x16eb4c(0x1a2)](_0x16eb4c(0x180)),(_0x37d952=this['_commandDisposable'])==null||_0x37d952[_0x16eb4c(0x17c)]();}['_handleOnline'](){var _0x1c46b4=_0x2a0f2a;this['_status$'][_0x1c46b4(0x1a2)](_0x1c46b4(0x1a1)),this[_0x1c46b4(0x209)]();}};w=Z([f(0x2,_0x2e77bf),f(0x3,_0x459502(L)),f(0x4,_0x22ff36)],w);function Te(){var _0x3c223e=_0x2a0f2a;const _0x1b5ea0=_0x3e135f(I),_0x30e351=_0x3e135f(_0x560e40),_0x1afbe5=_0x1d56b5(()=>_0x30e351[_0x3c223e(0x217)](_0x43f478[_0x3c223e(0x1a9)]),void 0x0,!0x1,[]),[_0x64641,_0x2f18dd]=_0x216df8(null),[_0x51f2ae,_0x390ba0]=_0x216df8(h[_0x3c223e(0x1b8)]),_0x4cbef8=_0xba99eb(null);return _0x245dda(()=>(_0x1afbe5&&_0x1b5ea0[_0x3c223e(0x1f3)](_0x1afbe5[_0x3c223e(0x176)]())['then'](_0x427b54=>{var _0x5a4541=_0x3c223e;_0x2f18dd(_0x427b54),_0x4cbef8[_0x5a4541(0x202)]=_0x427b54[_0x5a4541(0x19d)]['subscribe'](_0x495bfe=>{_0x390ba0(_0x495bfe);});}),()=>{var _0x30de99=_0x3c223e,_0x31c493;(_0x31c493=_0x4cbef8[_0x30de99(0x202)])==null||_0x31c493[_0x30de99(0x1db)](),_0x4cbef8['current']=null;}),[_0x1afbe5,_0x1b5ea0]),_0x64641?_0x430726(_0x1f1fbe,{'align':_0x3c223e(0x1f2),'disabled':_0x51f2ae===h[_0x3c223e(0x1bb)],'className':_0x3c223e(0x20a),'overlay':_0x430726($e,{'status':_0x51f2ae,'coordinator':_0x64641}),'children':_0x430726(_0x3c223e(0x1fe),{'className':_0x285d7d('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x51f2ae===h[_0x3c223e(0x1bb)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x51f2ae!==h[_0x3c223e(0x1bb)]}),'type':_0x3c223e(0x1fe),'children':_0x430726(B,{'className':'univer-size-4'})})}):null;}function $e(_0xde28d2){var _0xbd4cbf=_0x2a0f2a;const {status:_0x41ec08,coordinator:_0x331241}=_0xde28d2;switch(_0x41ec08){case h[_0xbd4cbf(0x1b8)]:return _0x430726(Fe,{'coordinator':_0x331241});case h[_0xbd4cbf(0x1be)]:return _0x430726(He,{'coordinator':_0x331241});case h[_0xbd4cbf(0x1eb)]:return _0x430726(je,{'coordinator':_0x331241});case h['OFFLINE']:return _0x430726(Ve,{});case h[_0xbd4cbf(0x1ee)]:return _0x430726(Ue,{'coordinator':_0x331241});default:return null;}}function Fe(_0xbe1a3a){var _0x5cea33=_0x2a0f2a;const {coordinator:_0x341f93}=_0xbe1a3a;return _0x2b0221(_0x114633,{'children':[_0x430726(_0x5cea33(0x1ae),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5cea33(0x1f6)}),_0x430726(_0x46f48e,{'onClick':()=>_0x341f93[_0x5cea33(0x19a)](),'children':'Start'})]});}function _0x2677(){var _0x28e176=['subscribe','UNIVER_LIVE_SHARE_PLUGIN','getConfig','getOwnPropertySymbols','path','_collabSession','8756034LhQmzS','_commandDisposable','dispose$','UniverIcon','disposeWithMe','colorChannel1','toString','getTypeOfUnitAdded$','svg','univer-w-full\x20univer-mb-3\x20univer-text-sm','LIVESHARE_FETCH_OPERATIONS','univerjs-icon\x20univerjs-icon-','getValue','unsubscribe','className','string','parse','find','none','executeCommand','length','LIVESHARE_TERMINATE','displayName','getTypeOfUnitDisposed$','symbol','clear','apply','propertyIsEnumerable','onCommandExecuted','NOT_FOLLOWING','icon','registerSharedOperation','PRESENTING','getOwnPropertyDescriptor','_stopFollowing','data','end','getLiveShareCoordinator','replace','presenting','Present\x20this\x20document','values','extend','currentColor','complete','8362632WbMHtM','_collabSessionService','_startLiveShareCoordinator','button','live-share-single','stringify','_injector','current','_status','pipe','live-share.config','mutations','_mountLiveShare','concat','_fetchOperations','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','_config','set','defIds','stopPresenting','forEach','stopFollowing','includes','_handleNewHost','OPERATION','Stop\x20following','substring','3412748hbhvVq','getCurrentTypeOfUnit$','fill','reverse','_stopPresenting','UNIVER_UNKNOWN','995orkHYv','assign','NEW_CHANGESETS','evenodd','presenter','params','get','1101588NTzCoG','_status$','send','use','call','getUnitId','_configService','33738wltFtl','_unitID','trim','getMemberID','dispose','memberID','sessionStatus$','Start\x20following','offline','mask','LIVESHARE_NEW_HOST','from','_sharedOperations','_handleNewChangeSets','1011316hVYsZR','_reporters','_handleOffline','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','indexOf','has','defs','hasOwnProperty','_startPresenting','SAME_OPERATION_SHARE_INTERVAL','1em','_univerInstanceService','_entities','asObservable','You\x27re\x20following\x20the\x20presenter','event$','add','pluginName','operations','startFollowing','tryStartPresenting','_presenter','You\x27re\x20not\x20following\x20the\x20presenter','status$','LIVESHARE_REQUEST_HOST','_liveShareService','prototype','idle','next','entries','You\x27are\x20offline.','xlink:href','default','_handleTerminate','tag','UNIVER_SHEET','_uiPartsService','_beIdle','random','delete','div','_handleOnline','children','idSuffix','unitId','sheet','attrs','url(#$1','_init','not-following','IDLE','shouldShareOperation','following','OFFLINE','2356569zMlhsi','HEADER_MENU','FOLLOWING','override','_commandService','_startFollowing','type','0\x200\x2016\x2016','text','init','setConfig','_handleOperation'];_0x2677=function(){return _0x28e176;};return _0x2677();}function He(_0x51eb33){var _0x259bf8=_0x2a0f2a;const {coordinator:_0x1875cb}=_0x51eb33;return _0x2b0221(_0x114633,{'children':[_0x430726(_0x259bf8(0x1ae),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x259bf8(0x194)}),_0x430726(_0x46f48e,{'onClick':()=>_0x1875cb['stopFollowing'](),'children':_0x259bf8(0x214)})]});}function je(_0x39db73){var _0x2ba218=_0x2a0f2a;const {coordinator:_0x434681}=_0x39db73;return _0x2b0221(_0x114633,{'children':[_0x430726('div',{'className':_0x2ba218(0x1d7),'children':_0x2ba218(0x19c)}),_0x430726(_0x46f48e,{'variant':_0x2ba218(0x1c4),'onClick':()=>_0x434681[_0x2ba218(0x199)](),'children':_0x2ba218(0x17f)})]});}function Ue(_0x832789){var _0x40306e=_0x2a0f2a;const {coordinator:_0x14dfd1}=_0x832789;return _0x2b0221(_0x114633,{'children':[_0x430726(_0x40306e(0x1ae),{'className':_0x40306e(0x1d7),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x430726(_0x46f48e,{'variant':_0x40306e(0x1a6),'onClick':()=>_0x14dfd1['stopPresenting'](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x51e6c5=_0x2a0f2a;return _0x430726(_0x114633,{'children':_0x51e6c5(0x1a4)});}var Me=Object[_0x2a0f2a(0x1ef)],ke=(_0x1434f2,_0x4b0a39,_0x26271d,_0x113b22)=>{for(var _0x105e87=_0x113b22>0x1?void 0x0:_0x113b22?Me(_0x4b0a39,_0x26271d):_0x4b0a39,_0x5ad90c=_0x1434f2['length']-0x1,_0x39c6d1;_0x5ad90c>=0x0;_0x5ad90c--)(_0x39c6d1=_0x1434f2[_0x5ad90c])&&(_0x105e87=_0x39c6d1(_0x105e87)||_0x105e87);return _0x105e87;},$=(_0x56b26b,_0x15ecb3)=>(_0x45b54a,_0x27e27a)=>_0x15ecb3(_0x45b54a,_0x27e27a,_0x56b26b);let b=class extends _0x56d91a{constructor(_0x40ac16,_0x5cb5dd){var _0x14ee55=_0x2a0f2a;super(),this[_0x14ee55(0x201)]=_0x40ac16,this[_0x14ee55(0x1aa)]=_0x5cb5dd,this[_0x14ee55(0x207)]();}[_0x2a0f2a(0x207)](){var _0x401241=_0x2a0f2a;this[_0x401241(0x1d2)](this[_0x401241(0x1aa)]['registerComponent'](_0xba4be9[_0x401241(0x1bd)],()=>_0x57f19d(Te,this[_0x401241(0x201)])));}};b=ke([$(0x0,_0x459502(_0x511763)),$(0x1,_0xf8ae92)],b);var Ge=Object['defineProperty'],We=Object[_0x2a0f2a(0x1ef)],Ye=(_0x2b00db,_0x172369,_0xb421e9)=>_0x172369 in _0x2b00db?Ge(_0x2b00db,_0x172369,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xb421e9}):_0x2b00db[_0x172369]=_0xb421e9,Be=(_0x32396a,_0x44fdda,_0x1b23c6,_0x118ac6)=>{var _0x40967b=_0x2a0f2a;for(var _0x18ecfe=_0x118ac6>0x1?void 0x0:_0x118ac6?We(_0x44fdda,_0x1b23c6):_0x44fdda,_0x290d5f=_0x32396a[_0x40967b(0x1e2)]-0x1,_0x4cc370;_0x290d5f>=0x0;_0x290d5f--)(_0x4cc370=_0x32396a[_0x290d5f])&&(_0x18ecfe=_0x4cc370(_0x18ecfe)||_0x18ecfe);return _0x18ecfe;},F=(_0x9e9494,_0x220691)=>(_0x6fcd4f,_0x2d5f9e)=>_0x220691(_0x6fcd4f,_0x2d5f9e,_0x9e9494),J=(_0x55a3c7,_0x3b81b2,_0x271a14)=>Ye(_0x55a3c7,typeof _0x3b81b2!='symbol'?_0x3b81b2+'':_0x3b81b2,_0x271a14);const Ze=_0x2a0f2a(0x1c9);let O=class extends _0x36cf9c{constructor(_0x1aca0a=T,_0x18593a,_0x2a6639){var _0x4aecc2=_0x2a0f2a;super(),this['_config']=_0x1aca0a,this[_0x4aecc2(0x201)]=_0x18593a,this[_0x4aecc2(0x177)]=_0x2a6639;const {..._0x5e8262}=_0x2a8c98({},T,this[_0x4aecc2(0x20b)]);this[_0x4aecc2(0x177)][_0x4aecc2(0x1c6)](Oe,_0x5e8262);}['onStarting'](){var _0x4a30a5=_0x2a0f2a;_0x123d95(this[_0x4a30a5(0x201)],_0x4f628e([[L],[I],[m],[b]],this[_0x4a30a5(0x20b)][_0x4a30a5(0x1bf)])),_0x2d4a9e(this[_0x4a30a5(0x201)],[[m]]);}['onRendered'](){var _0x1760ce=_0x2a0f2a;_0x2d4a9e(this[_0x1760ce(0x201)],[[b]]);}};function _0x1c4f(_0x412eea,_0x465a20){var _0x2677ee=_0x2677();return _0x1c4f=function(_0x1c4fa5,_0x1769d9){_0x1c4fa5=_0x1c4fa5-0x173;var _0x458a08=_0x2677ee[_0x1c4fa5];return _0x458a08;},_0x1c4f(_0x412eea,_0x465a20);}J(O,_0x2a0f2a(0x1c2),_0x43f478[_0x2a0f2a(0x21b)]),J(O,_0x2a0f2a(0x197),Ze),O=Be([_0x2ecbb5(_0x2cf583),F(0x1,_0x459502(_0x511763)),F(0x2,_0x2e77bf)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x24a7(){var _0x49970e=['_stopPresenting','registerComponent','99IkKCLZ','_commandDisposable','reverse','defineProperty','attrs','forEach','registerSharedOperation','children','send','UniverIcon','data','IUIPartsService','NOT_FOLLOWING','UniverProCollaboration','offline','exports','parse','useObservable','_startPresenting','_unitID','current','concat','symbol','registerDependencies','UniverInstanceType','asObservable','_mountLiveShare','string','createElement','stringify','evenodd','You\x27are\x20offline.','_sharedOperations','toDisposable','Start\x20following','UniverCollaborationClientPlugin','UniverUi','find','LiveShareController','presenting','presenter','getInitialStates','throttleTime','status$','assign','params','type','11560nqlDCt','rxjs/operators','React','jsxs','operators','NEW_CHANGESETS','useState','has','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','LiveShareSingle','defIds','div','getMemberID','DependentOn','_collabSessionService','forwardRef','_stopFollowing','text','BuiltInUIPart','default','_injector','_startFollowing','extend','indexOf','_startLiveShareCoordinator','IDLE','_entities','_status','override','subscribe','getTypeOfUnitDisposed$','shouldShareOperation','rxjs','Stop\x20following','HEADER_MENU','colorChannel1','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fill','RxDisposable','UniverLiveSharePlugin','_config','2564933wcvTBE','996006sKCxCb','get','BehaviorSubject','LIVESHARE_FETCH_OPERATIONS','executeCommand','getUnitId','_init','@univerjs/design','univer-w-full\x20univer-mb-3\x20univer-text-sm','_handleNewHost','icon','apply','dispose$','trim','Fragment','idSuffix','OFFLINE','mutations','amd','_handleOnline','Disposable','Module','_fetchOperations','_beIdle','Inject','LIVESHARE_NEW_HOST','hasOwnProperty','LIVESHARE_REQUEST_HOST','xlink:href','20hEicqh','mask','init','LiveShareService','LIVESHARE_TERMINATE','getConfig','_handleOffline','UniverSheetsUi','pipe','currentColor','_handleTerminate','@univerjs/sheets-ui','UNIVER_UNKNOWN','getLiveShareCoordinator','Dropdown','LIVESHARE_OPERATION','DesktopLiveShareController','_uiPartsService','onRendered','@univerjs/sheets','startFollowing','operations','toString','SessionStatus','map','CollaborationEvent','Stop\x20presenting','@univerjs-pro/collaboration-client','not-following','replace','clsx','630120wuNEjd','8811obRncs','stopPresenting','pluginName','_configService','getOwnPropertySymbols','22707AQbVsp','_univerInstanceService','_presenter','8utPewU','unitId','UniverProLiveShare','472552immFEz','SetWorksheetActiveOperation','url(#$1','_handleNewChangeSets','SAME_OPERATION_SHARE_INTERVAL','sheet','@univerjs/ui','SetZoomRatioOperation','complete','defs','InsertSheetMutation','Button','_handleOperation','substring','end','entries','add','IUniverInstanceService','tag','_commandService','dispose','_collabSession','next','_reporters','LiveShareCoordinator','Start','PRESENTING','jsx','@univerjs/core','svg','Injector','object','requireSession','path','className','mergeOverrideWithDependencies','0\x200\x2016\x2016','You\x27re\x20presenting\x20the\x20document','UniverProCollaborationClient','_liveShareService','onStarting','UniverSheets','event$','ICommandService','takeUntil','useRef','DisposableCollection','LiveShareStatus','button','getValue','call','CollaborationSessionService','random','following','connectInjector','1em','Subject','useDependency','registerInitialStateReporter','SetScrollOperation','getTypeOfUnitAdded$','live-share.config','_status$','clear','UNIVER_SHEET','length','58414NCqhHx','getOwnPropertyDescriptor','react/jsx-runtime','prototype','getCurrentTypeOfUnit$','@univerjs-pro/collaboration','displayName','LiveShare','idle','univer-size-4'];_0x24a7=function(){return _0x49970e;};return _0x24a7();}function _0x4f41(_0x296c8f,_0x5380fe){var _0x24a7c9=_0x24a7();return _0x4f41=function(_0x4f41f4,_0x85e947){_0x4f41f4=_0x4f41f4-0x1f2;var _0x30b9ec=_0x24a7c9[_0x4f41f4];return _0x30b9ec;},_0x4f41(_0x296c8f,_0x5380fe);}(function(_0x5da506,_0x27ff28){var _0x59224d=_0x4f41,_0x515daa=_0x5da506();while(!![]){try{var _0xc31a1f=parseInt(_0x59224d(0x2d0))/0x1+-parseInt(_0x59224d(0x282))/0x2+parseInt(_0x59224d(0x288))/0x3*(parseInt(_0x59224d(0x28b))/0x4)+parseInt(_0x59224d(0x263))/0x5*(parseInt(_0x59224d(0x246))/0x6)+parseInt(_0x59224d(0x245))/0x7+parseInt(_0x59224d(0x28e))/0x8*(parseInt(_0x59224d(0x2dc))/0x9)+parseInt(_0x59224d(0x21c))/0xa*(-parseInt(_0x59224d(0x283))/0xb);if(_0xc31a1f===_0x27ff28)break;else _0x515daa['push'](_0x515daa['shift']());}catch(_0x1728eb){_0x515daa['push'](_0x515daa['shift']());}}}(_0x24a7,0x7d2ce),function(_0x2884de,_0x47bf95){var _0x54d2d3=_0x4f41;typeof exports==_0x54d2d3(0x2ad)&&typeof module<'u'?_0x47bf95(exports,require(_0x54d2d3(0x27e)),require(_0x54d2d3(0x2aa)),require(_0x54d2d3(0x276)),require(_0x54d2d3(0x26e)),require(_0x54d2d3(0x294)),require(_0x54d2d3(0x2d2)),require(_0x54d2d3(0x24d)),require('react'),require('@univerjs-pro/collaboration'),require(_0x54d2d3(0x23c)),require('rxjs/operators')):typeof define=='function'&&define[_0x54d2d3(0x258)]?define([_0x54d2d3(0x1fc),_0x54d2d3(0x27e),_0x54d2d3(0x2aa),_0x54d2d3(0x276),_0x54d2d3(0x26e),_0x54d2d3(0x294),_0x54d2d3(0x2d2),_0x54d2d3(0x24d),'react',_0x54d2d3(0x2d5),_0x54d2d3(0x23c),_0x54d2d3(0x21d)],_0x47bf95):(_0x2884de=typeof globalThis<'u'?globalThis:_0x2884de||self,_0x47bf95(_0x2884de[_0x54d2d3(0x28d)]={},_0x2884de[_0x54d2d3(0x2b4)],_0x2884de['UniverCore'],_0x2884de[_0x54d2d3(0x2b7)],_0x2884de[_0x54d2d3(0x26a)],_0x2884de[_0x54d2d3(0x211)],_0x2884de[_0x54d2d3(0x21e)],_0x2884de['UniverDesign'],_0x2884de[_0x54d2d3(0x21e)],_0x2884de[_0x54d2d3(0x1fa)],_0x2884de[_0x54d2d3(0x23c)],_0x2884de[_0x54d2d3(0x23c)][_0x54d2d3(0x220)]));}(this,function(_0xaf9644,_0x10d7f6,_0x26f4c5,_0x5a62f0,_0x4bcce3,_0x26cb04,_0x4feff4,_0x345dec,_0x3496e8,_0x1446b3,_0x718415,_0x4353d7){'use strict';var _0x5126f4=_0x4f41;var _0x5214d9=Object['defineProperty'],_0x147cc1=(_0x47b860,_0x854c8f,_0x3473e1)=>_0x854c8f in _0x47b860?_0x5214d9(_0x47b860,_0x854c8f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3473e1}):_0x47b860[_0x854c8f]=_0x3473e1,_0x5fb210=(_0x4fdc23,_0x45f7a1,_0xb26016)=>_0x147cc1(_0x4fdc23,typeof _0x45f7a1!='symbol'?_0x45f7a1+'':_0x45f7a1,_0xb26016);const _0x475dfe=_0x5126f4(0x2cb),_0x15dc4e={};class _0x2130be extends _0x26f4c5[_0x5126f4(0x25a)]{constructor(){var _0x568901=_0x5126f4;super(...arguments),_0x5fb210(this,_0x568901(0x20d),new Set()),_0x5fb210(this,_0x568901(0x2a5),new Set());}[_0x5126f4(0x1f3)](_0x25c0b7){var _0x11d809=_0x5126f4;return this['_sharedOperations'][_0x11d809(0x29e)](_0x25c0b7),_0x26f4c5[_0x11d809(0x20e)](()=>this[_0x11d809(0x20d)]['delete'](_0x25c0b7));}[_0x5126f4(0x2c8)](_0x131c94){var _0x1babf3=_0x5126f4;return this[_0x1babf3(0x2a5)]['add'](_0x131c94),_0x26f4c5[_0x1babf3(0x20e)](()=>this[_0x1babf3(0x2a5)]['delete'](_0x131c94));}[_0x5126f4(0x23b)](_0x9b9b3b){var _0x379eb5=_0x5126f4;return this[_0x379eb5(0x20d)][_0x379eb5(0x223)](_0x9b9b3b);}[_0x5126f4(0x216)](_0x55c8b7){var _0x1e2ae6=_0x5126f4;return Array['from'](this['_reporters'])[_0x1e2ae6(0x27b)](_0x41830b=>_0x41830b(_0x55c8b7));}}var _0xe5d8e9=Object[_0x5126f4(0x2d1)],_0x1e8b79=(_0x44bc4d,_0x56fc8a,_0x5826d6,_0x2c02b8)=>{var _0x2214d1=_0x5126f4;for(var _0x531249=_0x2c02b8>0x1?void 0x0:_0x2c02b8?_0xe5d8e9(_0x56fc8a,_0x5826d6):_0x56fc8a,_0x1d4e47=_0x44bc4d[_0x2214d1(0x2cf)]-0x1,_0x400d34;_0x1d4e47>=0x0;_0x1d4e47--)(_0x400d34=_0x44bc4d[_0x1d4e47])&&(_0x531249=_0x400d34(_0x531249)||_0x531249);return _0x531249;},_0x223ff5=(_0x12c362,_0xcfe5e5)=>(_0x3bf46e,_0x5a9387)=>_0xcfe5e5(_0x3bf46e,_0x5a9387,_0x12c362);let _0x1c41a8=class extends _0x26f4c5['Disposable']{constructor(_0x26acfa){var _0x29d24c=_0x5126f4;super(),this[_0x29d24c(0x2b5)]=_0x26acfa,this['_init']();}['_init'](){var _0x16c351=_0x5126f4;[_0x4bcce3[_0x16c351(0x295)]['id'],_0x4bcce3[_0x16c351(0x2c9)]['id'],_0x5a62f0['SetWorksheetActiveOperation']['id']][_0x16c351(0x1f2)](_0x36a734=>{var _0x1fc8ca=_0x16c351;this['disposeWithMe'](this[_0x1fc8ca(0x2b5)][_0x1fc8ca(0x1f3)](_0x36a734));});}};_0x1c41a8=_0x1e8b79([_0x223ff5(0x0,_0x26f4c5['Inject'](_0x2130be))],_0x1c41a8);var _0xd9be62=function(){var _0x3fa45=_0x5126f4;return _0xd9be62=Object[_0x3fa45(0x219)]||function(_0xb710c0){var _0x126e94=_0x3fa45;for(var _0x1e4057,_0x533104=0x1,_0x5660bf=arguments['length'];_0x533104<_0x5660bf;_0x533104++){_0x1e4057=arguments[_0x533104];for(var _0x2c49c2 in _0x1e4057)Object['prototype']['hasOwnProperty'][_0x126e94(0x2c0)](_0x1e4057,_0x2c49c2)&&(_0xb710c0[_0x2c49c2]=_0x1e4057[_0x2c49c2]);}return _0xb710c0;},_0xd9be62[_0x3fa45(0x251)](this,arguments);},_0x328d71=function(_0x4553d0,_0x79bf4){var _0x12c8eb=_0x5126f4,_0x1b7ddc={};for(var _0x2572a6 in _0x4553d0)Object[_0x12c8eb(0x2d3)][_0x12c8eb(0x260)][_0x12c8eb(0x2c0)](_0x4553d0,_0x2572a6)&&_0x79bf4[_0x12c8eb(0x233)](_0x2572a6)<0x0&&(_0x1b7ddc[_0x2572a6]=_0x4553d0[_0x2572a6]);if(_0x4553d0!=null&&typeof Object[_0x12c8eb(0x287)]=='function'){for(var _0x4374db=0x0,_0x2572a6=Object[_0x12c8eb(0x287)](_0x4553d0);_0x4374db<_0x2572a6[_0x12c8eb(0x2cf)];_0x4374db++)_0x79bf4[_0x12c8eb(0x233)](_0x2572a6[_0x4374db])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x4553d0,_0x2572a6[_0x4374db])&&(_0x1b7ddc[_0x2572a6[_0x4374db]]=_0x4553d0[_0x2572a6[_0x4374db]]);}return _0x1b7ddc;},_0x117f26=_0x3496e8[_0x5126f4(0x22b)](function(_0x40e1fb,_0x4ed2e6){var _0xbb0bef=_0x5126f4,_0x39d007=_0x40e1fb[_0xbb0bef(0x250)],_0x474004=_0x40e1fb['id'],_0x50a75b=_0x40e1fb[_0xbb0bef(0x2b0)],_0x203cc0=_0x40e1fb[_0xbb0bef(0x232)],_0x4e63da=_0x328d71(_0x40e1fb,[_0xbb0bef(0x250),'id',_0xbb0bef(0x2b0),_0xbb0bef(0x232)]),_0x29c009='univerjs-icon\x20univerjs-icon-'[_0xbb0bef(0x202)](_0x474004,'\x20')['concat'](_0x50a75b||'')[_0xbb0bef(0x253)](),_0x490c6d=_0x3496e8[_0xbb0bef(0x2bb)]('_'[_0xbb0bef(0x202)](_0x42a3ae()));return _0x161d98(_0x39d007,''[_0xbb0bef(0x202)](_0x474004),{'defIds':_0x39d007[_0xbb0bef(0x226)],'idSuffix':_0x490c6d[_0xbb0bef(0x201)]},_0xd9be62({'ref':_0x4ed2e6,'className':_0x29c009},_0x4e63da),_0x203cc0);});function _0x161d98(_0x1f5889,_0x5b96f9,_0x412dc6,_0x387364,_0x3f9e2f){var _0x2e9419=_0x5126f4;return _0x3496e8[_0x2e9419(0x209)](_0x1f5889[_0x2e9419(0x2a0)],_0xd9be62(_0xd9be62({'key':_0x5b96f9},_0x28bbde(_0x1f5889,_0x412dc6,_0x3f9e2f)),_0x387364),(_0x28f56a(_0x1f5889,_0x412dc6)['children']||[])[_0x2e9419(0x27b)](function(_0x28e525,_0x554c0c){var _0x191008=_0x2e9419;return _0x161d98(_0x28e525,''['concat'](_0x5b96f9,'-')['concat'](_0x1f5889[_0x191008(0x2a0)],'-')[_0x191008(0x202)](_0x554c0c),_0x412dc6,void 0x0,_0x3f9e2f);}));}function _0x28bbde(_0x3a2db0,_0x566d14,_0x2d0773){var _0x24a0da=_0x5126f4,_0x3fac62=_0xd9be62({},_0x3a2db0[_0x24a0da(0x2e0)]);_0x2d0773!=null&&_0x2d0773[_0x24a0da(0x23f)]&&_0x3fac62[_0x24a0da(0x241)]===_0x24a0da(0x23f)&&(_0x3fac62['fill']=_0x2d0773[_0x24a0da(0x23f)]),_0x3a2db0[_0x24a0da(0x2a0)]===_0x24a0da(0x264)&&_0x3fac62['id']&&(_0x3fac62['id']=_0x3fac62['id']+_0x566d14[_0x24a0da(0x255)]),Object[_0x24a0da(0x29d)](_0x3fac62)[_0x24a0da(0x1f2)](function(_0xd629c3){var _0x47e81a=_0x24a0da,_0x310374=_0xd629c3[0x0],_0x36a018=_0xd629c3[0x1];_0x310374===_0x47e81a(0x264)&&typeof _0x36a018==_0x47e81a(0x208)&&(_0x3fac62[_0x310374]=_0x36a018[_0x47e81a(0x280)](/url\(#(.*)\)/,'url(#$1'[_0x47e81a(0x202)](_0x566d14[_0x47e81a(0x255)],')')));});var _0x1f9469=_0x566d14[_0x24a0da(0x226)];return!_0x1f9469||_0x1f9469[_0x24a0da(0x2cf)]===0x0||(_0x3a2db0[_0x24a0da(0x2a0)]==='use'&&_0x3fac62[_0x24a0da(0x262)]&&(_0x3fac62['xlink:href']=_0x3fac62[_0x24a0da(0x262)]+_0x566d14[_0x24a0da(0x255)]),Object['entries'](_0x3fac62)['forEach'](function(_0x33f747){var _0x3ee3a8=_0x24a0da,_0xa5d173=_0x33f747[0x0],_0x16b50b=_0x33f747[0x1];typeof _0x16b50b=='string'&&(_0x3fac62[_0xa5d173]=_0x16b50b['replace'](/url\(#(.*)\)/,_0x3ee3a8(0x290)[_0x3ee3a8(0x202)](_0x566d14['idSuffix'],')')));})),_0x3fac62;}function _0x28f56a(_0x58782d,_0x40531b){var _0x179b9a=_0x5126f4,_0x4c3f61,_0x597ef8=_0x40531b[_0x179b9a(0x226)];return!_0x597ef8||_0x597ef8[_0x179b9a(0x2cf)]===0x0?_0x58782d:_0x58782d[_0x179b9a(0x2a0)]===_0x179b9a(0x297)&&(!((_0x4c3f61=_0x58782d[_0x179b9a(0x1f4)])===null||_0x4c3f61===void 0x0)&&_0x4c3f61[_0x179b9a(0x2cf)])?_0xd9be62(_0xd9be62({},_0x58782d),{'children':_0x58782d[_0x179b9a(0x1f4)]['map'](function(_0x4a3587){var _0x57bb10=_0x179b9a;return typeof _0x4a3587[_0x57bb10(0x2e0)]['id']==_0x57bb10(0x208)&&_0x597ef8&&_0x597ef8[_0x57bb10(0x233)](_0x4a3587[_0x57bb10(0x2e0)]['id'])>-0x1?_0xd9be62(_0xd9be62({},_0x4a3587),{'attrs':_0xd9be62(_0xd9be62({},_0x4a3587[_0x57bb10(0x2e0)]),{'id':_0x4a3587[_0x57bb10(0x2e0)]['id']+_0x40531b['idSuffix']})}):_0x4a3587;})}):_0x58782d;}function _0x42a3ae(){var _0x178ae5=_0x5126f4;return Math[_0x178ae5(0x2c2)]()[_0x178ae5(0x279)](0x24)[_0x178ae5(0x29b)](0x2,0x8);}_0x117f26[_0x5126f4(0x2d6)]=_0x5126f4(0x1f6);var _0x573a8e={'tag':_0x5126f4(0x2ab),'attrs':{'fill':'none','viewBox':_0x5126f4(0x2b2),'width':_0x5126f4(0x2c5),'height':_0x5126f4(0x2c5)},'children':[{'tag':_0x5126f4(0x2af),'attrs':{'fill':'currentColor','d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':_0x5126f4(0x2af),'attrs':{'fill':_0x5126f4(0x26c),'d':_0x5126f4(0x240),'fillRule':_0x5126f4(0x20b),'clipRule':'evenodd'}}]},_0x2d038f=_0x3496e8[_0x5126f4(0x22b)](function(_0x19dffc,_0x3dcffb){var _0x2cea5f=_0x5126f4;return _0x3496e8[_0x2cea5f(0x209)](_0x117f26,Object['assign']({},_0x19dffc,{'id':'live-share-single','ref':_0x3dcffb,'icon':_0x573a8e}));});_0x2d038f[_0x5126f4(0x2d6)]=_0x5126f4(0x225);var _0x5b277f=Object[_0x5126f4(0x2d1)],_0x55f792=(_0x3e5880,_0x501614,_0xbe6c2b,_0x493eed)=>{for(var _0x247df3=_0x493eed>0x1?void 0x0:_0x493eed?_0x5b277f(_0x501614,_0xbe6c2b):_0x501614,_0x261131=_0x3e5880['length']-0x1,_0xe275f9;_0x261131>=0x0;_0x261131--)(_0xe275f9=_0x3e5880[_0x261131])&&(_0x247df3=_0xe275f9(_0x247df3)||_0x247df3);return _0x247df3;},_0x54ef66=(_0x2f5aed,_0x697193)=>(_0x1e134d,_0x582f72)=>_0x697193(_0x1e134d,_0x582f72,_0x2f5aed);_0xaf9644[_0x5126f4(0x213)]=class extends _0x26f4c5[_0x5126f4(0x242)]{constructor(_0x6e86b1,_0x24398c,_0x5cee79){var _0x55467f=_0x5126f4;super(),_0x5fb210(this,_0x55467f(0x236),new Map()),(this[_0x55467f(0x289)]=_0x6e86b1,this[_0x55467f(0x230)]=_0x24398c,this['_collabSessionService']=_0x5cee79,this['_init']());}async[_0x5126f4(0x270)](_0x263bce){var _0x2a96d9=_0x5126f4;return this[_0x2a96d9(0x236)]['has'](_0x263bce)||await this[_0x2a96d9(0x234)](_0x263bce),this[_0x2a96d9(0x236)][_0x2a96d9(0x247)](_0x263bce);}[_0x5126f4(0x24c)](){var _0x3db04c=_0x5126f4;this[_0x3db04c(0x289)][_0x3db04c(0x2ca)](_0x26f4c5[_0x3db04c(0x205)][_0x3db04c(0x2ce)])[_0x3db04c(0x26b)](_0x4353d7[_0x3db04c(0x2ba)](this[_0x3db04c(0x252)]))[_0x3db04c(0x239)](async _0x19277f=>{var _0x9bce07=_0x3db04c;const _0x13722e=_0x19277f[_0x9bce07(0x24b)]();this[_0x9bce07(0x236)]['has'](_0x13722e)||this[_0x9bce07(0x234)](_0x13722e);}),this['_univerInstanceService'][_0x3db04c(0x23a)](_0x26f4c5[_0x3db04c(0x205)][_0x3db04c(0x2ce)])[_0x3db04c(0x26b)](_0x4353d7[_0x3db04c(0x2ba)](this[_0x3db04c(0x252)]))[_0x3db04c(0x239)](_0x23ff66=>{var _0x2368bd=_0x3db04c;const _0x5183b0=_0x23ff66[_0x2368bd(0x24b)](),_0x13da1c=this[_0x2368bd(0x236)][_0x2368bd(0x247)](_0x5183b0);_0x13da1c==null||_0x13da1c['dispose']();});}async['_startLiveShareCoordinator'](_0x1c72e9){var _0xdf634a=_0x5126f4;const _0x4621e7=await this[_0xdf634a(0x22a)][_0xdf634a(0x2ae)](_0x1c72e9),_0x276f1e=this['_injector']['createInstance'](_0xaf9644[_0xdf634a(0x2a6)],_0x1c72e9,_0x4621e7);return _0x276f1e[_0xdf634a(0x265)](),this[_0xdf634a(0x236)]['set'](_0x1c72e9,_0x276f1e),_0x276f1e;}},_0xaf9644[_0x5126f4(0x213)]=_0x55f792([_0x54ef66(0x0,_0x26f4c5[_0x5126f4(0x29f)]),_0x54ef66(0x1,_0x26f4c5[_0x5126f4(0x25e)](_0x26f4c5[_0x5126f4(0x2ac)])),_0x54ef66(0x2,_0x26f4c5[_0x5126f4(0x25e)](_0x10d7f6[_0x5126f4(0x2c1)]))],_0xaf9644[_0x5126f4(0x213)]);var _0x2fa56f=(_0x3eacc0=>(_0x3eacc0[_0x5126f4(0x256)]='offline',_0x3eacc0[_0x5126f4(0x235)]=_0x5126f4(0x2d8),_0x3eacc0['FOLLOWING']=_0x5126f4(0x2c3),_0x3eacc0[_0x5126f4(0x1f9)]=_0x5126f4(0x27f),_0x3eacc0[_0x5126f4(0x2a8)]=_0x5126f4(0x214),_0x3eacc0))(_0x2fa56f||{});const _0x22144d=_0x5126f4(0x292),_0x5de814=0xc8;_0xaf9644[_0x5126f4(0x2a6)]=class extends _0x26f4c5[_0x5126f4(0x242)]{constructor(_0x300054,_0x3ac2a1,_0x11acca,_0x8ae16a,_0x35143d){var _0x401ee8=_0x5126f4;super(),_0x5fb210(this,'_status$',new _0x718415[(_0x401ee8(0x248))](_0x401ee8(0x2d8))),_0x5fb210(this,_0x401ee8(0x218),this[_0x401ee8(0x2cc)][_0x401ee8(0x206)]()),_0x5fb210(this,_0x401ee8(0x24c),!0x1),_0x5fb210(this,'_commandDisposable',null),_0x5fb210(this,_0x401ee8(0x28a),null),(this[_0x401ee8(0x200)]=_0x300054,this[_0x401ee8(0x2a3)]=_0x3ac2a1,this[_0x401ee8(0x286)]=_0x11acca,this['_liveShareService']=_0x8ae16a,this[_0x401ee8(0x2a1)]=_0x35143d);}get[_0x5126f4(0x237)](){var _0x36d953=_0x5126f4;return this[_0x36d953(0x2cc)][_0x36d953(0x2bf)]();}[_0x5126f4(0x2a2)](){var _0x388d05=_0x5126f4,_0x4c3b7c;(_0x4c3b7c=this[_0x388d05(0x2dd)])==null||_0x4c3b7c[_0x388d05(0x2a2)](),this[_0x388d05(0x2cc)][_0x388d05(0x2a4)](_0x388d05(0x2d8)),this['_status$'][_0x388d05(0x296)]();}['init'](){var _0x20df91=_0x5126f4;this['_init']||(this[_0x20df91(0x24c)]=!0x0,this[_0x20df91(0x2a3)]['sessionStatus$'][_0x20df91(0x26b)](_0x4353d7['takeUntil'](this['dispose$']))['subscribe'](_0x27f186=>{var _0x7d1f03=_0x20df91;switch(_0x27f186){case _0x10d7f6[_0x7d1f03(0x27a)]['OFFLINE']:this[_0x7d1f03(0x269)]();break;case _0x10d7f6['SessionStatus']['ONLINE']:this[_0x7d1f03(0x259)]();break;}}),this[_0x20df91(0x2a3)][_0x20df91(0x2b8)][_0x20df91(0x26b)](_0x4353d7['takeUntil'](this['dispose$']))['subscribe'](_0xfb7719=>{var _0x179d72=_0x20df91;const {eventID:_0x1d667e}=_0xfb7719;switch(_0x1d667e){case _0x1446b3['CollaborationEvent'][_0x179d72(0x25f)]:this[_0x179d72(0x24f)](_0xfb7719);break;case _0x1446b3[_0x179d72(0x27c)][_0x179d72(0x272)]:this[_0x179d72(0x29a)](_0xfb7719);break;case _0x1446b3['CollaborationEvent'][_0x179d72(0x267)]:this[_0x179d72(0x26d)]();break;case _0x1446b3[_0x179d72(0x27c)][_0x179d72(0x221)]:this[_0x179d72(0x291)](_0xfb7719);break;}}));}['tryStartPresenting'](){var _0xa549b5=_0x5126f4;this[_0xa549b5(0x2a3)][_0xa549b5(0x1f5)]({'eventID':_0x1446b3[_0xa549b5(0x27c)][_0xa549b5(0x261)],'data':{'unitID':this[_0xa549b5(0x200)],'userID':this[_0xa549b5(0x2a3)]['getMemberID']()}},this[_0xa549b5(0x200)]);}[_0x5126f4(0x284)](){var _0x1bc747=_0x5126f4;this[_0x1bc747(0x237)]===_0x1bc747(0x214)&&(this[_0x1bc747(0x2cc)][_0x1bc747(0x2a4)]('idle'),this['_collabSession']['send']({'eventID':_0x1446b3[_0x1bc747(0x27c)][_0x1bc747(0x267)],'data':{'unitID':this['_unitID']}},this['_unitID']));}['startFollowing'](){var _0x3b3128=_0x5126f4;this[_0x3b3128(0x237)]==='not-following'&&(this[_0x3b3128(0x2cc)][_0x3b3128(0x2a4)](_0x3b3128(0x2c3)),this[_0x3b3128(0x231)]());}['stopFollowing'](){var _0x4c2270=_0x5126f4;this['_status']===_0x4c2270(0x2c3)&&this[_0x4c2270(0x22c)]();}[_0x5126f4(0x24f)](_0x5bae7f){var _0x26f2c6=_0x5126f4;const {presenter:_0x250498}=_0x5bae7f[_0x26f2c6(0x1f7)],_0x63af27=this['_collabSession']['getMemberID']();this['_presenter']=_0x250498,_0x250498===_0x63af27?(this[_0x26f2c6(0x22c)](),this[_0x26f2c6(0x1ff)]()):this['_status']!==_0x26f2c6(0x27f)&&(this[_0x26f2c6(0x2da)](),this['_startFollowing']());}[_0x5126f4(0x25c)](){var _0x10ace6=_0x5126f4;const _0x321374={'eventID':_0x1446b3['CollaborationEvent'][_0x10ace6(0x249)]};this[_0x10ace6(0x2a3)][_0x10ace6(0x1f5)](_0x321374,this[_0x10ace6(0x200)]);}[_0x5126f4(0x26d)](){var _0x4e0e9a=_0x5126f4;this[_0x4e0e9a(0x28a)]=null,this[_0x4e0e9a(0x237)]!==_0x4e0e9a(0x214)&&this[_0x4e0e9a(0x25d)]();}[_0x5126f4(0x291)](_0x2fa44d){var _0x1cac65=_0x5126f4;if(this[_0x1cac65(0x237)]===_0x1cac65(0x2c3)&&this[_0x1cac65(0x28a)]===_0x2fa44d[_0x1cac65(0x1f7)]['memberID']){const _0x83a48d=_0x1446b3['parseProtocolChangeset'](_0x2fa44d[_0x1cac65(0x1f7)])[_0x1cac65(0x257)][_0x1cac65(0x2de)]()[_0x1cac65(0x212)](_0xa8415b=>_0xa8415b['id']===_0x5a62f0[_0x1cac65(0x298)]['id']);if(_0x83a48d){const _0x33404c=_0x83a48d[_0x1cac65(0x21a)][_0x1cac65(0x28c)],_0xf42309=_0x83a48d[_0x1cac65(0x21a)][_0x1cac65(0x293)]['id'];setTimeout(()=>{var _0x22d371=_0x1cac65;this[_0x22d371(0x2a1)][_0x22d371(0x24a)](_0x5a62f0[_0x22d371(0x28f)]['id'],{'unitId':_0x33404c,'subUnitId':_0xf42309},{'fromCollab':!0x0});});}}}[_0x5126f4(0x1ff)](){var _0xc95e6b=_0x5126f4;this[_0xc95e6b(0x2cc)][_0xc95e6b(0x2a4)](_0xc95e6b(0x214));const _0x5ac82d=new Map(),_0x37393c=this['_commandDisposable']=new _0x26f4c5[(_0xc95e6b(0x2bc))]();_0x37393c[_0xc95e6b(0x29e)](_0x26f4c5[_0xc95e6b(0x20e)](()=>{var _0x303e00=_0xc95e6b;_0x5ac82d['forEach'](_0x12c2a2=>_0x12c2a2[_0x303e00(0x296)]()),_0x5ac82d[_0x303e00(0x2cd)]();})),_0x37393c[_0xc95e6b(0x29e)](this['_commandService']['onCommandExecuted'](_0x23219f=>{var _0x4281d2=_0xc95e6b,_0x3dcc18;if(_0x23219f[_0x4281d2(0x21b)]!==_0x26f4c5['CommandType']['OPERATION']||!this[_0x4281d2(0x2b5)][_0x4281d2(0x23b)](_0x23219f['id']))return;const {id:_0x5953be}=_0x23219f;let _0x36eaff;_0x5ac82d[_0x4281d2(0x223)](_0x5953be)?_0x36eaff=_0x5ac82d[_0x4281d2(0x247)](_0x5953be):(_0x36eaff=new _0x718415[(_0x4281d2(0x2c6))](),_0x5ac82d['set'](_0x5953be,_0x36eaff),_0x36eaff['pipe'](_0x4353d7[_0x4281d2(0x217)]((_0x3dcc18=this['_configService'][_0x4281d2(0x268)](_0x22144d))!=null?_0x3dcc18:_0x5de814,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4281d2(0x239)](_0x3fdf0a=>{var _0x3bd1f1=_0x4281d2;this['_collabSession'][_0x3bd1f1(0x1f5)]({'eventID':_0x1446b3[_0x3bd1f1(0x27c)][_0x3bd1f1(0x272)],'data':{'unitID':this[_0x3bd1f1(0x200)],'operations':{[_0x3fdf0a['id']]:{'id':_0x3fdf0a['id'],'params':JSON[_0x3bd1f1(0x20a)](_0x3fdf0a[_0x3bd1f1(0x21a)])}}}},this['_unitID']);})),_0x36eaff['next'](_0x23219f);})),this[_0xc95e6b(0x2b5)][_0xc95e6b(0x216)](this[_0xc95e6b(0x200)])[_0xc95e6b(0x1f2)](_0x2d5b77=>this['_collabSession'][_0xc95e6b(0x1f5)]({'eventID':_0x1446b3[_0xc95e6b(0x27c)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x2d5b77['id']]:{'id':_0x2d5b77['id'],'params':JSON['stringify'](_0x2d5b77[_0xc95e6b(0x21a)])}}}},this[_0xc95e6b(0x200)]));}['_stopPresenting'](){var _0x155017=_0x5126f4,_0x4bc1c2;this[_0x155017(0x2cc)][_0x155017(0x2a4)](_0x155017(0x2d8)),(_0x4bc1c2=this[_0x155017(0x2dd)])==null||_0x4bc1c2[_0x155017(0x2a2)](),this['_commandDisposable']=null;}[_0x5126f4(0x231)](){var _0x4827ba=_0x5126f4,_0x2be5b2;(_0x2be5b2=this[_0x4827ba(0x2dd)])==null||_0x2be5b2[_0x4827ba(0x2a2)](),this[_0x4827ba(0x2cc)][_0x4827ba(0x2a4)](_0x4827ba(0x2c3));}[_0x5126f4(0x25d)](){var _0x14dbd8=_0x5126f4,_0x15c888;this[_0x14dbd8(0x2cc)]['next'](_0x14dbd8(0x2d8)),(_0x15c888=this[_0x14dbd8(0x2dd)])==null||_0x15c888[_0x14dbd8(0x2a2)](),this[_0x14dbd8(0x2dd)]=null;}[_0x5126f4(0x22c)](){var _0x417f71=_0x5126f4,_0x48b58f;this[_0x417f71(0x2cc)][_0x417f71(0x2a4)](_0x417f71(0x27f)),(_0x48b58f=this[_0x417f71(0x2dd)])==null||_0x48b58f[_0x417f71(0x2a2)]();}['_handleOperation'](_0x14304c){var _0x456aa9=_0x5126f4;if(['presenting',_0x456aa9(0x27f),_0x456aa9(0x1fb)]['includes'](this[_0x456aa9(0x237)])||!_0x14304c[_0x456aa9(0x1f7)][_0x456aa9(0x215)]||_0x14304c[_0x456aa9(0x1f7)][_0x456aa9(0x215)]===this[_0x456aa9(0x2a3)][_0x456aa9(0x228)]())return;this[_0x456aa9(0x237)]===_0x456aa9(0x2d8)&&this[_0x456aa9(0x231)]();const _0x48e1f4=_0x14304c['data'][_0x456aa9(0x278)];Object['values'](_0x48e1f4)[_0x456aa9(0x1f2)](_0x201f94=>{var _0x3a1e73=_0x456aa9;this['_commandService']['executeCommand'](_0x201f94['id'],_0x201f94[_0x3a1e73(0x21a)]?JSON[_0x3a1e73(0x1fd)](_0x201f94[_0x3a1e73(0x21a)]):null,{'fromCollab':!0x0});});}[_0x5126f4(0x269)](){var _0x4d9eba=_0x5126f4,_0x2d1835;this['_status$'][_0x4d9eba(0x2a4)](_0x4d9eba(0x1fb)),(_0x2d1835=this[_0x4d9eba(0x2dd)])==null||_0x2d1835[_0x4d9eba(0x2a2)]();}[_0x5126f4(0x259)](){var _0x312530=_0x5126f4;this[_0x312530(0x2cc)][_0x312530(0x2a4)]('idle'),this[_0x312530(0x25c)]();}},_0xaf9644[_0x5126f4(0x2a6)]=_0x55f792([_0x54ef66(0x2,_0x26f4c5['IConfigService']),_0x54ef66(0x3,_0x26f4c5['Inject'](_0x2130be)),_0x54ef66(0x4,_0x26f4c5[_0x5126f4(0x2b9)])],_0xaf9644[_0x5126f4(0x2a6)]);function _0x164295(){var _0x477093=_0x5126f4;const _0x114586=_0x26cb04[_0x477093(0x2c7)](_0xaf9644[_0x477093(0x213)]),_0x22cecd=_0x26cb04[_0x477093(0x2c7)](_0x26f4c5['IUniverInstanceService']),_0xc53f58=_0x26cb04[_0x477093(0x1fe)](()=>_0x22cecd[_0x477093(0x2d4)](_0x26f4c5[_0x477093(0x205)][_0x477093(0x2ce)]),void 0x0,!0x1,[]),[_0x4d6ef0,_0x1526af]=_0x3496e8['useState'](null),[_0x2d3cd2,_0x3c38a3]=_0x3496e8[_0x477093(0x222)](_0x2fa56f['IDLE']),_0x13e22f=_0x3496e8[_0x477093(0x2bb)](null);return _0x3496e8['useEffect'](()=>(_0xc53f58&&_0x114586[_0x477093(0x270)](_0xc53f58[_0x477093(0x24b)]())['then'](_0x3ec67a=>{var _0xf57860=_0x477093;_0x1526af(_0x3ec67a),_0x13e22f[_0xf57860(0x201)]=_0x3ec67a['status$']['subscribe'](_0x10f24c=>{_0x3c38a3(_0x10f24c);});}),()=>{var _0x2b414d=_0x477093,_0x403ba6;(_0x403ba6=_0x13e22f[_0x2b414d(0x201)])==null||_0x403ba6['unsubscribe'](),_0x13e22f['current']=null;}),[_0xc53f58,_0x114586]),_0x4d6ef0?_0x4feff4[_0x477093(0x2a9)](_0x345dec[_0x477093(0x271)],{'align':_0x477093(0x29c),'disabled':_0x2d3cd2===_0x2fa56f[_0x477093(0x256)],'className':_0x477093(0x224),'overlay':_0x4feff4['jsx'](_0x4da1f7,{'status':_0x2d3cd2,'coordinator':_0x4d6ef0}),'children':_0x4feff4[_0x477093(0x2a9)](_0x477093(0x2be),{'className':_0x345dec[_0x477093(0x281)]('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x2d3cd2===_0x2fa56f[_0x477093(0x256)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2d3cd2!==_0x2fa56f[_0x477093(0x256)]}),'type':_0x477093(0x2be),'children':_0x4feff4[_0x477093(0x2a9)](_0x2d038f,{'className':_0x477093(0x2d9)})})}):null;}function _0x4da1f7(_0x335fda){var _0xc6a8cb=_0x5126f4;const {status:_0x4b80ca,coordinator:_0x1f053a}=_0x335fda;switch(_0x4b80ca){case _0x2fa56f[_0xc6a8cb(0x235)]:return _0x4feff4['jsx'](_0x2ba7fa,{'coordinator':_0x1f053a});case _0x2fa56f['FOLLOWING']:return _0x4feff4[_0xc6a8cb(0x2a9)](_0x5e1bf1,{'coordinator':_0x1f053a});case _0x2fa56f['NOT_FOLLOWING']:return _0x4feff4[_0xc6a8cb(0x2a9)](_0x547f65,{'coordinator':_0x1f053a});case _0x2fa56f['OFFLINE']:return _0x4feff4['jsx'](_0x53c601,{});case _0x2fa56f['PRESENTING']:return _0x4feff4[_0xc6a8cb(0x2a9)](_0x59fc9f,{'coordinator':_0x1f053a});default:return null;}}function _0x2ba7fa(_0x1007c7){var _0x301571=_0x5126f4;const {coordinator:_0x4c3430}=_0x1007c7;return _0x4feff4[_0x301571(0x21f)](_0x4feff4[_0x301571(0x254)],{'children':[_0x4feff4['jsx'](_0x301571(0x227),{'className':_0x301571(0x24e),'children':'Present\x20this\x20document'}),_0x4feff4[_0x301571(0x2a9)](_0x345dec[_0x301571(0x299)],{'onClick':()=>_0x4c3430['tryStartPresenting'](),'children':_0x301571(0x2a7)})]});}function _0x5e1bf1(_0xe83374){var _0x14149c=_0x5126f4;const {coordinator:_0x22f704}=_0xe83374;return _0x4feff4[_0x14149c(0x21f)](_0x4feff4[_0x14149c(0x254)],{'children':[_0x4feff4[_0x14149c(0x2a9)](_0x14149c(0x227),{'className':_0x14149c(0x24e),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4feff4[_0x14149c(0x2a9)](_0x345dec[_0x14149c(0x299)],{'onClick':()=>_0x22f704['stopFollowing'](),'children':_0x14149c(0x23d)})]});}function _0x547f65(_0x15ca2e){var _0x430032=_0x5126f4;const {coordinator:_0x2b7216}=_0x15ca2e;return _0x4feff4[_0x430032(0x21f)](_0x4feff4[_0x430032(0x254)],{'children':[_0x4feff4['jsx'](_0x430032(0x227),{'className':_0x430032(0x24e),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4feff4[_0x430032(0x2a9)](_0x345dec[_0x430032(0x299)],{'variant':_0x430032(0x22d),'onClick':()=>_0x2b7216[_0x430032(0x277)](),'children':_0x430032(0x20f)})]});}function _0x59fc9f(_0x570c3f){var _0x3cdb3c=_0x5126f4;const {coordinator:_0x342087}=_0x570c3f;return _0x4feff4[_0x3cdb3c(0x21f)](_0x4feff4[_0x3cdb3c(0x254)],{'children':[_0x4feff4[_0x3cdb3c(0x2a9)]('div',{'className':_0x3cdb3c(0x24e),'children':_0x3cdb3c(0x2b3)}),_0x4feff4[_0x3cdb3c(0x2a9)](_0x345dec['Button'],{'variant':_0x3cdb3c(0x22f),'onClick':()=>_0x342087[_0x3cdb3c(0x284)](),'children':_0x3cdb3c(0x27d)})]});}function _0x53c601(){var _0x559122=_0x5126f4;return _0x4feff4['jsx'](_0x4feff4[_0x559122(0x254)],{'children':_0x559122(0x20c)});}var _0x2a0c0f=Object[_0x5126f4(0x2d1)],_0x56d9f6=(_0x43cbb4,_0xa77e31,_0x90130a,_0x1c98de)=>{for(var _0x2bde2a=_0x1c98de>0x1?void 0x0:_0x1c98de?_0x2a0c0f(_0xa77e31,_0x90130a):_0xa77e31,_0x385842=_0x43cbb4['length']-0x1,_0x2ea1fd;_0x385842>=0x0;_0x385842--)(_0x2ea1fd=_0x43cbb4[_0x385842])&&(_0x2bde2a=_0x2ea1fd(_0x2bde2a)||_0x2bde2a);return _0x2bde2a;},_0x382e9d=(_0x44b88a,_0x55cf69)=>(_0x3d78a2,_0x4a14a9)=>_0x55cf69(_0x3d78a2,_0x4a14a9,_0x44b88a);_0xaf9644[_0x5126f4(0x273)]=class extends _0x26f4c5[_0x5126f4(0x25a)]{constructor(_0x3a8935,_0x30e31b){var _0x5e736e=_0x5126f4;super(),this['_injector']=_0x3a8935,this[_0x5e736e(0x274)]=_0x30e31b,this[_0x5e736e(0x207)]();}['_mountLiveShare'](){var _0x38016f=_0x5126f4;this['disposeWithMe'](this[_0x38016f(0x274)][_0x38016f(0x2db)](_0x26cb04[_0x38016f(0x22e)][_0x38016f(0x23e)],()=>_0x26cb04[_0x38016f(0x2c4)](_0x164295,this[_0x38016f(0x230)])));}},_0xaf9644[_0x5126f4(0x273)]=_0x56d9f6([_0x382e9d(0x0,_0x26f4c5[_0x5126f4(0x25e)](_0x26f4c5[_0x5126f4(0x2ac)])),_0x382e9d(0x1,_0x26cb04[_0x5126f4(0x1f8)])],_0xaf9644[_0x5126f4(0x273)]);var _0x25bb9a=Object['defineProperty'],_0x2a5dca=Object[_0x5126f4(0x2d1)],_0x530277=(_0x245294,_0x139a3,_0x5591e5)=>_0x139a3 in _0x245294?_0x25bb9a(_0x245294,_0x139a3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5591e5}):_0x245294[_0x139a3]=_0x5591e5,_0xf1a1d0=(_0x264bbb,_0x4919dc,_0x168abb,_0x3ec787)=>{for(var _0x5792a1=_0x3ec787>0x1?void 0x0:_0x3ec787?_0x2a5dca(_0x4919dc,_0x168abb):_0x4919dc,_0x244246=_0x264bbb['length']-0x1,_0x361a0d;_0x244246>=0x0;_0x244246--)(_0x361a0d=_0x264bbb[_0x244246])&&(_0x5792a1=_0x361a0d(_0x5792a1)||_0x5792a1);return _0x5792a1;},_0x2c4b9f=(_0x21a66b,_0x1c5fa6)=>(_0x97d82d,_0x34b1d7)=>_0x1c5fa6(_0x97d82d,_0x34b1d7,_0x21a66b),_0x50d000=(_0x1c1ba1,_0x3091d3,_0x119063)=>_0x530277(_0x1c1ba1,typeof _0x3091d3!=_0x5126f4(0x203)?_0x3091d3+'':_0x3091d3,_0x119063);const _0x215955='UNIVER_LIVE_SHARE_PLUGIN';_0xaf9644['UniverLiveSharePlugin']=class extends _0x26f4c5['Plugin']{constructor(_0x45491c=_0x15dc4e,_0x119c8d,_0x16d6fe){var _0x4bfc01=_0x5126f4;super(),this[_0x4bfc01(0x244)]=_0x45491c,this[_0x4bfc01(0x230)]=_0x119c8d,this[_0x4bfc01(0x286)]=_0x16d6fe;const {..._0x2ce33e}=_0x26f4c5['merge']({},_0x15dc4e,this[_0x4bfc01(0x244)]);this[_0x4bfc01(0x286)]['setConfig'](_0x475dfe,_0x2ce33e);}[_0x5126f4(0x2b6)](){var _0x2c215e=_0x5126f4;_0x26f4c5[_0x2c215e(0x204)](this[_0x2c215e(0x230)],_0x26f4c5[_0x2c215e(0x2b1)]([[_0x2130be],[_0xaf9644['LiveShareController']],[_0x1c41a8],[_0xaf9644[_0x2c215e(0x273)]]],this[_0x2c215e(0x244)][_0x2c215e(0x238)])),_0x26f4c5['touchDependencies'](this[_0x2c215e(0x230)],[[_0x1c41a8]]);}[_0x5126f4(0x275)](){_0x26f4c5['touchDependencies'](this['_injector'],[[_0xaf9644['DesktopLiveShareController']]]);}},_0x50d000(_0xaf9644[_0x5126f4(0x243)],_0x5126f4(0x21b),_0x26f4c5[_0x5126f4(0x205)][_0x5126f4(0x26f)]),_0x50d000(_0xaf9644[_0x5126f4(0x243)],_0x5126f4(0x285),_0x215955),_0xaf9644[_0x5126f4(0x243)]=_0xf1a1d0([_0x26f4c5[_0x5126f4(0x229)](_0x10d7f6[_0x5126f4(0x210)]),_0x2c4b9f(0x1,_0x26f4c5[_0x5126f4(0x25e)](_0x26f4c5[_0x5126f4(0x2ac)])),_0x2c4b9f(0x2,_0x26f4c5['IConfigService'])],_0xaf9644[_0x5126f4(0x243)]),_0xaf9644[_0x5126f4(0x2d7)]=_0x164295,_0xaf9644[_0x5126f4(0x266)]=_0x2130be,_0xaf9644[_0x5126f4(0x2bd)]=_0x2fa56f,Object[_0x5126f4(0x2df)](_0xaf9644,Symbol['toStringTag'],{'value':_0x5126f4(0x25b)});}));
|
|
1
|
+
function _0x4b3d(_0x207e4c,_0x2f8751){var _0x947700=_0x9477();return _0x4b3d=function(_0x4b3d61,_0x39827f){_0x4b3d61=_0x4b3d61-0x9f;var _0xa25ec2=_0x947700[_0x4b3d61];return _0xa25ec2;},_0x4b3d(_0x207e4c,_0x2f8751);}function _0x9477(){var _0x1f24f5=['BuiltInUIPart','@univerjs-pro/collaboration','_startLiveShareCoordinator','694062rCwfPf','indexOf','_configService','following','2124342fVzQyL','_presenter','text','unitId','_handleTerminate','You\x27re\x20not\x20following\x20the\x20presenter','LIVESHARE_REQUEST_HOST','@univerjs/sheets-ui','displayName','getUnitId','10736495XmToAX','LIVESHARE_TERMINATE','none','not-following','connectInjector','_univerInstanceService','symbol','ONLINE','_sharedOperations','jsx','@univerjs/design','Stop\x20presenting','NEW_CHANGESETS','replace','defineProperty','10580096sCtkJy','attrs','pipe','_handleOperation','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','Start\x20following','795464ancgBq','Plugin','IDLE','next','LIVESHARE_FETCH_OPERATIONS','CollaborationEvent','button','_unitID','_handleOffline','_startFollowing','_stopPresenting','live-share-single','forEach','UniverProCollaborationClient','has','Button','sheet','apply','idSuffix','_status','url(#$1','className','startFollowing','_commandDisposable','SetScrollOperation','getInitialStates','onCommandExecuted','@univerjs/ui','values','DisposableCollection','clsx','div','OFFLINE','disposeWithMe','_mountLiveShare','CollaborationSessionService','LIVESHARE_OPERATION','forwardRef','current','getOwnPropertyDescriptor','colorChannel1','shouldShareOperation','1em','You\x27re\x20following\x20the\x20presenter','fill','jsxs','takeUntil','registerComponent','LiveShareStatus','type','from','SetZoomRatioOperation','@univerjs/core','random','children','_status$','substring','useRef','You\x27re\x20presenting\x20the\x20document','react','includes','offline','Injector','PRESENTING','getLiveShareCoordinator','@univerjs-pro/collaboration-client','useObservable','defs','presenting','requireSession','LiveShareService','mutations','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','_handleNewChangeSets','LIVESHARE_NEW_HOST','xlink:href','RxDisposable','map','memberID','You\x27are\x20offline.','useDependency','use','trim','dispose$','DesktopLiveShareController','_reporters','currentColor','_entities','UniverIcon','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','HEADER_MENU','react/jsx-runtime','string','_init','add','toString','reverse','send','OPERATION','5nDuesv','_collabSession','tryStartPresenting','toStringTag','Dropdown','LiveShare','53294lodbxL','Start','init','registerDependencies','rxjs','createInstance','default','_liveShareService','parseProtocolChangeset','getMemberID','call','useEffect','then','@univerjs/sheets','univer-w-full\x20univer-mb-3\x20univer-text-sm','SessionStatus','univerjs-icon\x20univerjs-icon-','operators','concat','_handleOnline','UniverSheetsUi','stopFollowing','object','idle','SetWorksheetActiveOperation','_injector','UNIVER_SHEET','assign','length','evenodd','entries','event$','UniverLiveSharePlugin','5662492JSMftS','unsubscribe','onStarting','_config','mergeOverrideWithDependencies','UniverCollaborationClientPlugin','path','UNIVER_LIVE_SHARE_PLUGIN','84FGYflQ','_fetchOperations','hasOwnProperty','Inject','UniverInstanceType','prototype','set','touchDependencies','end','NOT_FOLLOWING','data','_startPresenting','_uiPartsService','getTypeOfUnitAdded$','delete','90VSOsVI','_stopFollowing','parse','clear','function','extend','UniverCore','subscribe','toDisposable','createElement','_collabSessionService','defIds','get','sessionStatus$','stringify','LiveShareSingle','useState','asObservable','dispose','_handleNewHost','React','UniverDesign','Stop\x20following','Fragment','FOLLOWING','LiveShareController','IUniverInstanceService','merge','tag','Disposable','Present\x20this\x20document','propertyIsEnumerable','icon','Module','presenter','registerSharedOperation','complete','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','getValue','IUIPartsService','LiveShareCoordinator','live-share.config','mask','setConfig','params','getOwnPropertySymbols','_commandService','IConfigService'];_0x9477=function(){return _0x1f24f5;};return _0x9477();}(function(_0x300f04,_0x5352bc){var _0x188c18=_0x4b3d,_0x21a0f7=_0x300f04();while(!![]){try{var _0x46925b=parseInt(_0x188c18(0x16a))/0x1+-parseInt(_0x188c18(0xdc))/0x2*(-parseInt(_0x188c18(0x105))/0x3)+-parseInt(_0x188c18(0xfd))/0x4*(-parseInt(_0x188c18(0xd6))/0x5)+-parseInt(_0x188c18(0x147))/0x6+parseInt(_0x188c18(0x155))/0x7+-parseInt(_0x188c18(0x164))/0x8+-parseInt(_0x188c18(0x14b))/0x9*(parseInt(_0x188c18(0x114))/0xa);if(_0x46925b===_0x5352bc)break;else _0x21a0f7['push'](_0x21a0f7['shift']());}catch(_0x38f89b){_0x21a0f7['push'](_0x21a0f7['shift']());}}}(_0x9477,0xe2ac9),function(_0x3e8ce5,_0xc8e03){var _0x4573b5=_0x4b3d;typeof exports==_0x4573b5(0xf2)&&typeof module<'u'?_0xc8e03(exports,require(_0x4573b5(0xb4)),require(_0x4573b5(0xa7)),require('@univerjs/sheets'),require(_0x4573b5(0x152)),require(_0x4573b5(0x185)),require(_0x4573b5(0xce)),require(_0x4573b5(0x15f)),require(_0x4573b5(0xae)),require(_0x4573b5(0x145)),require('rxjs'),require('rxjs/operators')):typeof define=='function'&&define['amd']?define(['exports','@univerjs-pro/collaboration-client',_0x4573b5(0xa7),_0x4573b5(0xe9),_0x4573b5(0x152),_0x4573b5(0x185),'react/jsx-runtime',_0x4573b5(0x15f),_0x4573b5(0xae),'@univerjs-pro/collaboration',_0x4573b5(0xe0),'rxjs/operators'],_0xc8e03):(_0x3e8ce5=typeof globalThis<'u'?globalThis:_0x3e8ce5||self,_0xc8e03(_0x3e8ce5['UniverProLiveShare']={},_0x3e8ce5[_0x4573b5(0x177)],_0x3e8ce5[_0x4573b5(0x11a)],_0x3e8ce5['UniverSheets'],_0x3e8ce5[_0x4573b5(0xf0)],_0x3e8ce5['UniverUi'],_0x3e8ce5[_0x4573b5(0x128)],_0x3e8ce5[_0x4573b5(0x129)],_0x3e8ce5[_0x4573b5(0x128)],_0x3e8ce5['UniverProCollaboration'],_0x3e8ce5['rxjs'],_0x3e8ce5[_0x4573b5(0xe0)][_0x4573b5(0xed)]));}(this,function(_0x2ae9b9,_0x4803b3,_0x2b474e,_0x285408,_0x2423f0,_0x29bae6,_0x5ed8ab,_0x449b7f,_0x19c262,_0x1217f8,_0x3538d5,_0x46520d){'use strict';var _0x450e7f=_0x4b3d;var _0xbc0f2e=Object[_0x450e7f(0x163)],_0x5030d0=(_0x419a06,_0x1df04e,_0x2bd897)=>_0x1df04e in _0x419a06?_0xbc0f2e(_0x419a06,_0x1df04e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2bd897}):_0x419a06[_0x1df04e]=_0x2bd897,_0x2f1d3f=(_0x150ac2,_0x3f6a53,_0x1a2550)=>_0x5030d0(_0x150ac2,typeof _0x3f6a53!=_0x450e7f(0x15b)?_0x3f6a53+'':_0x3f6a53,_0x1a2550);const _0x27a9a8=_0x450e7f(0x13d),_0x5152d0={};class _0x187d0d extends _0x2b474e[_0x450e7f(0x131)]{constructor(){var _0x331449=_0x450e7f;super(...arguments),_0x2f1d3f(this,_0x331449(0x15d),new Set()),_0x2f1d3f(this,_0x331449(0xc8),new Set());}[_0x450e7f(0x137)](_0x51079c){var _0x3617c4=_0x450e7f;return this['_sharedOperations'][_0x3617c4(0xd1)](_0x51079c),_0x2b474e['toDisposable'](()=>this[_0x3617c4(0x15d)][_0x3617c4(0x113)](_0x51079c));}['registerInitialStateReporter'](_0xaa3c67){var _0x2d3af8=_0x450e7f;return this['_reporters']['add'](_0xaa3c67),_0x2b474e[_0x2d3af8(0x11c)](()=>this[_0x2d3af8(0xc8)][_0x2d3af8(0x113)](_0xaa3c67));}[_0x450e7f(0x193)](_0x57227e){var _0x517595=_0x450e7f;return this[_0x517595(0x15d)]['has'](_0x57227e);}[_0x450e7f(0x183)](_0x549d3b){var _0x30d58f=_0x450e7f;return Array[_0x30d58f(0xa5)](this[_0x30d58f(0xc8)])[_0x30d58f(0xc0)](_0x2ca742=>_0x2ca742(_0x549d3b));}}var _0x2d25c0=Object[_0x450e7f(0x191)],_0x3569bf=(_0x149640,_0x4d8cae,_0x2c613b,_0x32e8c5)=>{for(var _0x2e35c0=_0x32e8c5>0x1?void 0x0:_0x32e8c5?_0x2d25c0(_0x4d8cae,_0x2c613b):_0x4d8cae,_0x52a05e=_0x149640['length']-0x1,_0xb6e40b;_0x52a05e>=0x0;_0x52a05e--)(_0xb6e40b=_0x149640[_0x52a05e])&&(_0x2e35c0=_0xb6e40b(_0x2e35c0)||_0x2e35c0);return _0x2e35c0;},_0x39b313=(_0x218d0e,_0x4e7f9e)=>(_0x2d4479,_0x320fc2)=>_0x4e7f9e(_0x2d4479,_0x320fc2,_0x218d0e);let _0x8375be=class extends _0x2b474e[_0x450e7f(0x131)]{constructor(_0x44ef8c){var _0x44de9f=_0x450e7f;super(),this[_0x44de9f(0xe3)]=_0x44ef8c,this[_0x44de9f(0xd0)]();}[_0x450e7f(0xd0)](){var _0x37d097=_0x450e7f;[_0x2423f0[_0x37d097(0xa6)]['id'],_0x2423f0[_0x37d097(0x182)]['id'],_0x285408[_0x37d097(0xf4)]['id']][_0x37d097(0x176)](_0x21fea6=>{var _0x168dbc=_0x37d097;this[_0x168dbc(0x18b)](this[_0x168dbc(0xe3)]['registerSharedOperation'](_0x21fea6));});}};_0x8375be=_0x3569bf([_0x39b313(0x0,_0x2b474e[_0x450e7f(0x108)](_0x187d0d))],_0x8375be);var _0x5ab71f=function(){var _0x2cf2f5=_0x450e7f;return _0x5ab71f=Object[_0x2cf2f5(0xf7)]||function(_0x3a3cb0){var _0x2a527d=_0x2cf2f5;for(var _0x503849,_0x5aa1d7=0x1,_0x1b224f=arguments[_0x2a527d(0xf8)];_0x5aa1d7<_0x1b224f;_0x5aa1d7++){_0x503849=arguments[_0x5aa1d7];for(var _0x40db21 in _0x503849)Object['prototype'][_0x2a527d(0x107)]['call'](_0x503849,_0x40db21)&&(_0x3a3cb0[_0x40db21]=_0x503849[_0x40db21]);}return _0x3a3cb0;},_0x5ab71f[_0x2cf2f5(0x17b)](this,arguments);},_0x5cbf8e=function(_0x335876,_0x26775e){var _0x1fd1db=_0x450e7f,_0x31a6c0={};for(var _0x4ef873 in _0x335876)Object['prototype'][_0x1fd1db(0x107)][_0x1fd1db(0xe6)](_0x335876,_0x4ef873)&&_0x26775e[_0x1fd1db(0x148)](_0x4ef873)<0x0&&(_0x31a6c0[_0x4ef873]=_0x335876[_0x4ef873]);if(_0x335876!=null&&typeof Object[_0x1fd1db(0x141)]==_0x1fd1db(0x118)){for(var _0x3bade3=0x0,_0x4ef873=Object['getOwnPropertySymbols'](_0x335876);_0x3bade3<_0x4ef873[_0x1fd1db(0xf8)];_0x3bade3++)_0x26775e[_0x1fd1db(0x148)](_0x4ef873[_0x3bade3])<0x0&&Object[_0x1fd1db(0x10a)][_0x1fd1db(0x133)][_0x1fd1db(0xe6)](_0x335876,_0x4ef873[_0x3bade3])&&(_0x31a6c0[_0x4ef873[_0x3bade3]]=_0x335876[_0x4ef873[_0x3bade3]]);}return _0x31a6c0;},_0x5ad3db=_0x19c262[_0x450e7f(0x18f)](function(_0x5e5b39,_0x2ac208){var _0x5a421f=_0x450e7f,_0xf0647a=_0x5e5b39[_0x5a421f(0x134)],_0x40d326=_0x5e5b39['id'],_0x1ed54c=_0x5e5b39['className'],_0x2f697f=_0x5e5b39['extend'],_0x4ce6cf=_0x5cbf8e(_0x5e5b39,[_0x5a421f(0x134),'id',_0x5a421f(0x17f),_0x5a421f(0x119)]),_0x52fe11=_0x5a421f(0xec)['concat'](_0x40d326,'\x20')[_0x5a421f(0xee)](_0x1ed54c||'')[_0x5a421f(0xc5)](),_0x7103e9=_0x19c262[_0x5a421f(0xac)]('_'[_0x5a421f(0xee)](_0x28e09b()));return _0xfe1fa8(_0xf0647a,''['concat'](_0x40d326),{'defIds':_0xf0647a[_0x5a421f(0x11f)],'idSuffix':_0x7103e9[_0x5a421f(0x190)]},_0x5ab71f({'ref':_0x2ac208,'className':_0x52fe11},_0x4ce6cf),_0x2f697f);});function _0xfe1fa8(_0x2b6682,_0x1b4c77,_0x3569c6,_0x400205,_0x3104ff){var _0x4d11c7=_0x450e7f;return _0x19c262[_0x4d11c7(0x11d)](_0x2b6682[_0x4d11c7(0x130)],_0x5ab71f(_0x5ab71f({'key':_0x1b4c77},_0xf1a62a(_0x2b6682,_0x3569c6,_0x3104ff)),_0x400205),(_0x58e61a(_0x2b6682,_0x3569c6)[_0x4d11c7(0xa9)]||[])[_0x4d11c7(0xc0)](function(_0x51208f,_0x20f499){var _0x36263a=_0x4d11c7;return _0xfe1fa8(_0x51208f,''[_0x36263a(0xee)](_0x1b4c77,'-')['concat'](_0x2b6682['tag'],'-')['concat'](_0x20f499),_0x3569c6,void 0x0,_0x3104ff);}));}function _0xf1a62a(_0x598e95,_0x6b9569,_0x39ab8f){var _0x288a1f=_0x450e7f,_0x18f1fc=_0x5ab71f({},_0x598e95[_0x288a1f(0x165)]);_0x39ab8f!=null&&_0x39ab8f[_0x288a1f(0x192)]&&_0x18f1fc['fill']===_0x288a1f(0x192)&&(_0x18f1fc[_0x288a1f(0x9f)]=_0x39ab8f[_0x288a1f(0x192)]),_0x598e95[_0x288a1f(0x130)]===_0x288a1f(0x13e)&&_0x18f1fc['id']&&(_0x18f1fc['id']=_0x18f1fc['id']+_0x6b9569['idSuffix']),Object['entries'](_0x18f1fc)['forEach'](function(_0x5e5a29){var _0xcbb3f4=_0x288a1f,_0x38ea9c=_0x5e5a29[0x0],_0x505bf3=_0x5e5a29[0x1];_0x38ea9c===_0xcbb3f4(0x13e)&&typeof _0x505bf3==_0xcbb3f4(0xcf)&&(_0x18f1fc[_0x38ea9c]=_0x505bf3[_0xcbb3f4(0x162)](/url\(#(.*)\)/,_0xcbb3f4(0x17e)[_0xcbb3f4(0xee)](_0x6b9569[_0xcbb3f4(0x17c)],')')));});var _0x11c748=_0x6b9569['defIds'];return!_0x11c748||_0x11c748[_0x288a1f(0xf8)]===0x0||(_0x598e95['tag']===_0x288a1f(0xc4)&&_0x18f1fc[_0x288a1f(0xbe)]&&(_0x18f1fc[_0x288a1f(0xbe)]=_0x18f1fc['xlink:href']+_0x6b9569['idSuffix']),Object[_0x288a1f(0xfa)](_0x18f1fc)[_0x288a1f(0x176)](function(_0x6f4f94){var _0x39bffa=_0x288a1f,_0x37f42a=_0x6f4f94[0x0],_0x21d0b7=_0x6f4f94[0x1];typeof _0x21d0b7=='string'&&(_0x18f1fc[_0x37f42a]=_0x21d0b7[_0x39bffa(0x162)](/url\(#(.*)\)/,'url(#$1'[_0x39bffa(0xee)](_0x6b9569[_0x39bffa(0x17c)],')')));})),_0x18f1fc;}function _0x58e61a(_0x1b8769,_0x5916e2){var _0x1649e3=_0x450e7f,_0x3bd955,_0x634e9b=_0x5916e2[_0x1649e3(0x11f)];return!_0x634e9b||_0x634e9b[_0x1649e3(0xf8)]===0x0?_0x1b8769:_0x1b8769[_0x1649e3(0x130)]===_0x1649e3(0xb6)&&(!((_0x3bd955=_0x1b8769[_0x1649e3(0xa9)])===null||_0x3bd955===void 0x0)&&_0x3bd955[_0x1649e3(0xf8)])?_0x5ab71f(_0x5ab71f({},_0x1b8769),{'children':_0x1b8769['children'][_0x1649e3(0xc0)](function(_0x496367){var _0x566316=_0x1649e3;return typeof _0x496367[_0x566316(0x165)]['id']==_0x566316(0xcf)&&_0x634e9b&&_0x634e9b[_0x566316(0x148)](_0x496367['attrs']['id'])>-0x1?_0x5ab71f(_0x5ab71f({},_0x496367),{'attrs':_0x5ab71f(_0x5ab71f({},_0x496367[_0x566316(0x165)]),{'id':_0x496367[_0x566316(0x165)]['id']+_0x5916e2['idSuffix']})}):_0x496367;})}):_0x1b8769;}function _0x28e09b(){var _0x2b5933=_0x450e7f;return Math[_0x2b5933(0xa8)]()[_0x2b5933(0xd2)](0x24)[_0x2b5933(0xab)](0x2,0x8);}_0x5ad3db[_0x450e7f(0x153)]=_0x450e7f(0xcb);var _0x295281={'tag':'svg','attrs':{'fill':_0x450e7f(0x157),'viewBox':'0\x200\x2016\x2016','width':_0x450e7f(0x194),'height':_0x450e7f(0x194)},'children':[{'tag':_0x450e7f(0x103),'attrs':{'fill':_0x450e7f(0xc9),'d':_0x450e7f(0x168)}},{'tag':_0x450e7f(0x103),'attrs':{'fill':_0x450e7f(0xc9),'d':_0x450e7f(0x139),'fillRule':'evenodd','clipRule':_0x450e7f(0xf9)}}]},_0x34a692=_0x19c262[_0x450e7f(0x18f)](function(_0x46f50c,_0x1c6c2e){var _0x3fbefc=_0x450e7f;return _0x19c262[_0x3fbefc(0x11d)](_0x5ad3db,Object[_0x3fbefc(0xf7)]({},_0x46f50c,{'id':_0x3fbefc(0x175),'ref':_0x1c6c2e,'icon':_0x295281}));});_0x34a692[_0x450e7f(0x153)]=_0x450e7f(0x123);var _0xcd29b1=Object['getOwnPropertyDescriptor'],_0x57028e=(_0x21d8bf,_0x56b872,_0x50b974,_0x3f4d76)=>{for(var _0x1b999c=_0x3f4d76>0x1?void 0x0:_0x3f4d76?_0xcd29b1(_0x56b872,_0x50b974):_0x56b872,_0x11c668=_0x21d8bf['length']-0x1,_0x4ee7e1;_0x11c668>=0x0;_0x11c668--)(_0x4ee7e1=_0x21d8bf[_0x11c668])&&(_0x1b999c=_0x4ee7e1(_0x1b999c)||_0x1b999c);return _0x1b999c;},_0x5a2b3c=(_0x1e887d,_0x30bf87)=>(_0x36e5ac,_0x35a3d3)=>_0x30bf87(_0x36e5ac,_0x35a3d3,_0x1e887d);_0x2ae9b9[_0x450e7f(0x12d)]=class extends _0x2b474e[_0x450e7f(0xbf)]{constructor(_0x5ec05b,_0x1ac046,_0xe345dc){var _0x30985d=_0x450e7f;super(),_0x2f1d3f(this,_0x30985d(0xca),new Map()),(this['_univerInstanceService']=_0x5ec05b,this[_0x30985d(0xf5)]=_0x1ac046,this[_0x30985d(0x11e)]=_0xe345dc,this[_0x30985d(0xd0)]());}async['getLiveShareCoordinator'](_0x38278c){var _0x1609a3=_0x450e7f;return this['_entities']['has'](_0x38278c)||await this[_0x1609a3(0x146)](_0x38278c),this['_entities'][_0x1609a3(0x120)](_0x38278c);}['_init'](){var _0x473ec7=_0x450e7f;this[_0x473ec7(0x15a)][_0x473ec7(0x112)](_0x2b474e['UniverInstanceType'][_0x473ec7(0xf6)])[_0x473ec7(0x166)](_0x46520d['takeUntil'](this['dispose$']))[_0x473ec7(0x11b)](async _0x3b1185=>{var _0x548020=_0x473ec7;const _0x46fc93=_0x3b1185[_0x548020(0x154)]();this[_0x548020(0xca)][_0x548020(0x178)](_0x46fc93)||this[_0x548020(0x146)](_0x46fc93);}),this[_0x473ec7(0x15a)]['getTypeOfUnitDisposed$'](_0x2b474e[_0x473ec7(0x109)][_0x473ec7(0xf6)])[_0x473ec7(0x166)](_0x46520d['takeUntil'](this['dispose$']))['subscribe'](_0x2a1aac=>{var _0x28ffbd=_0x473ec7;const _0x42a374=_0x2a1aac['getUnitId'](),_0x1db863=this['_entities'][_0x28ffbd(0x120)](_0x42a374);_0x1db863==null||_0x1db863[_0x28ffbd(0x126)]();});}async['_startLiveShareCoordinator'](_0x2a36af){var _0x3d2486=_0x450e7f;const _0x410f17=await this[_0x3d2486(0x11e)][_0x3d2486(0xb8)](_0x2a36af),_0x54b293=this[_0x3d2486(0xf5)][_0x3d2486(0xe1)](_0x2ae9b9[_0x3d2486(0x13c)],_0x2a36af,_0x410f17);return _0x54b293[_0x3d2486(0xde)](),this['_entities'][_0x3d2486(0x10b)](_0x2a36af,_0x54b293),_0x54b293;}},_0x2ae9b9['LiveShareController']=_0x57028e([_0x5a2b3c(0x0,_0x2b474e[_0x450e7f(0x12e)]),_0x5a2b3c(0x1,_0x2b474e[_0x450e7f(0x108)](_0x2b474e[_0x450e7f(0xb1)])),_0x5a2b3c(0x2,_0x2b474e[_0x450e7f(0x108)](_0x4803b3[_0x450e7f(0x18d)]))],_0x2ae9b9[_0x450e7f(0x12d)]);var _0x4c1ccf=(_0x2b7c37=>(_0x2b7c37[_0x450e7f(0x18a)]=_0x450e7f(0xb0),_0x2b7c37[_0x450e7f(0x16c)]=_0x450e7f(0xf3),_0x2b7c37['FOLLOWING']=_0x450e7f(0x14a),_0x2b7c37[_0x450e7f(0x10e)]=_0x450e7f(0x158),_0x2b7c37[_0x450e7f(0xb2)]=_0x450e7f(0xb7),_0x2b7c37))(_0x4c1ccf||{});const _0x53108e='SAME_OPERATION_SHARE_INTERVAL',_0x2d12cd=0xc8;_0x2ae9b9[_0x450e7f(0x13c)]=class extends _0x2b474e[_0x450e7f(0xbf)]{constructor(_0x5a433b,_0x84b14f,_0x1c0831,_0x548d4d,_0x18513c){var _0xb1690b=_0x450e7f;super(),_0x2f1d3f(this,_0xb1690b(0xaa),new _0x3538d5['BehaviorSubject'](_0xb1690b(0xf3))),_0x2f1d3f(this,'status$',this[_0xb1690b(0xaa)][_0xb1690b(0x125)]()),_0x2f1d3f(this,_0xb1690b(0xd0),!0x1),_0x2f1d3f(this,_0xb1690b(0x181),null),_0x2f1d3f(this,_0xb1690b(0x14c),null),(this[_0xb1690b(0x171)]=_0x5a433b,this[_0xb1690b(0xd7)]=_0x84b14f,this[_0xb1690b(0x149)]=_0x1c0831,this['_liveShareService']=_0x548d4d,this[_0xb1690b(0x142)]=_0x18513c);}get[_0x450e7f(0x17d)](){var _0x25a494=_0x450e7f;return this[_0x25a494(0xaa)][_0x25a494(0x13a)]();}[_0x450e7f(0x126)](){var _0xdf8322=_0x450e7f,_0xe2d57;(_0xe2d57=this['_commandDisposable'])==null||_0xe2d57[_0xdf8322(0x126)](),this['_status$'][_0xdf8322(0x16d)]('idle'),this[_0xdf8322(0xaa)][_0xdf8322(0x138)]();}['init'](){var _0x4a8470=_0x450e7f;this['_init']||(this[_0x4a8470(0xd0)]=!0x0,this[_0x4a8470(0xd7)][_0x4a8470(0x121)][_0x4a8470(0x166)](_0x46520d[_0x4a8470(0xa1)](this[_0x4a8470(0xc6)]))['subscribe'](_0x2b3bf8=>{var _0x166677=_0x4a8470;switch(_0x2b3bf8){case _0x4803b3['SessionStatus']['OFFLINE']:this['_handleOffline']();break;case _0x4803b3[_0x166677(0xeb)][_0x166677(0x15c)]:this[_0x166677(0xef)]();break;}}),this[_0x4a8470(0xd7)][_0x4a8470(0xfb)][_0x4a8470(0x166)](_0x46520d[_0x4a8470(0xa1)](this[_0x4a8470(0xc6)]))['subscribe'](_0x20bdf4=>{var _0xd9dfd1=_0x4a8470;const {eventID:_0x1f8759}=_0x20bdf4;switch(_0x1f8759){case _0x1217f8['CollaborationEvent'][_0xd9dfd1(0xbd)]:this[_0xd9dfd1(0x127)](_0x20bdf4);break;case _0x1217f8[_0xd9dfd1(0x16f)][_0xd9dfd1(0x18e)]:this[_0xd9dfd1(0x167)](_0x20bdf4);break;case _0x1217f8[_0xd9dfd1(0x16f)][_0xd9dfd1(0x156)]:this['_handleTerminate']();break;case _0x1217f8[_0xd9dfd1(0x16f)][_0xd9dfd1(0x161)]:this[_0xd9dfd1(0xbc)](_0x20bdf4);break;}}));}['tryStartPresenting'](){var _0xcba22a=_0x450e7f;this[_0xcba22a(0xd7)][_0xcba22a(0xd4)]({'eventID':_0x1217f8[_0xcba22a(0x16f)][_0xcba22a(0x151)],'data':{'unitID':this[_0xcba22a(0x171)],'userID':this['_collabSession'][_0xcba22a(0xe5)]()}},this[_0xcba22a(0x171)]);}['stopPresenting'](){var _0x2175b4=_0x450e7f;this[_0x2175b4(0x17d)]==='presenting'&&(this[_0x2175b4(0xaa)][_0x2175b4(0x16d)](_0x2175b4(0xf3)),this[_0x2175b4(0xd7)][_0x2175b4(0xd4)]({'eventID':_0x1217f8['CollaborationEvent'][_0x2175b4(0x156)],'data':{'unitID':this[_0x2175b4(0x171)]}},this[_0x2175b4(0x171)]));}[_0x450e7f(0x180)](){var _0x14bd58=_0x450e7f;this['_status']==='not-following'&&(this[_0x14bd58(0xaa)][_0x14bd58(0x16d)](_0x14bd58(0x14a)),this[_0x14bd58(0x173)]());}[_0x450e7f(0xf1)](){var _0x1cb848=_0x450e7f;this[_0x1cb848(0x17d)]===_0x1cb848(0x14a)&&this[_0x1cb848(0x115)]();}['_handleNewHost'](_0x646e25){var _0x583c5c=_0x450e7f;const {presenter:_0x2d971b}=_0x646e25[_0x583c5c(0x10f)],_0x1f0f46=this[_0x583c5c(0xd7)][_0x583c5c(0xe5)]();this[_0x583c5c(0x14c)]=_0x2d971b,_0x2d971b===_0x1f0f46?(this[_0x583c5c(0x115)](),this['_startPresenting']()):this[_0x583c5c(0x17d)]!==_0x583c5c(0x158)&&(this['_stopPresenting'](),this[_0x583c5c(0x173)]());}[_0x450e7f(0x106)](){var _0x1825a7=_0x450e7f;const _0x364c1e={'eventID':_0x1217f8['CollaborationEvent'][_0x1825a7(0x16e)]};this['_collabSession'][_0x1825a7(0xd4)](_0x364c1e,this['_unitID']);}[_0x450e7f(0x14f)](){var _0x46d6e2=_0x450e7f;this[_0x46d6e2(0x14c)]=null,this[_0x46d6e2(0x17d)]!==_0x46d6e2(0xb7)&&this['_beIdle']();}[_0x450e7f(0xbc)](_0x207a52){var _0x420f41=_0x450e7f;if(this[_0x420f41(0x17d)]==='following'&&this[_0x420f41(0x14c)]===_0x207a52['data'][_0x420f41(0xc1)]){const _0x49f6b1=_0x1217f8[_0x420f41(0xe4)](_0x207a52[_0x420f41(0x10f)])[_0x420f41(0xba)][_0x420f41(0xd3)]()['find'](_0x184a2=>_0x184a2['id']===_0x285408['InsertSheetMutation']['id']);if(_0x49f6b1){const _0x31c881=_0x49f6b1[_0x420f41(0x140)][_0x420f41(0x14e)],_0x1d24b0=_0x49f6b1[_0x420f41(0x140)][_0x420f41(0x17a)]['id'];setTimeout(()=>{var _0x91498e=_0x420f41;this[_0x91498e(0x142)]['executeCommand'](_0x285408[_0x91498e(0xf4)]['id'],{'unitId':_0x31c881,'subUnitId':_0x1d24b0},{'fromCollab':!0x0});});}}}[_0x450e7f(0x110)](){var _0x545ef5=_0x450e7f;this[_0x545ef5(0xaa)][_0x545ef5(0x16d)](_0x545ef5(0xb7));const _0x1bb7e0=new Map(),_0x4dac13=this[_0x545ef5(0x181)]=new _0x2b474e[(_0x545ef5(0x187))]();_0x4dac13['add'](_0x2b474e[_0x545ef5(0x11c)](()=>{var _0x1f102e=_0x545ef5;_0x1bb7e0[_0x1f102e(0x176)](_0x56e5b6=>_0x56e5b6[_0x1f102e(0x138)]()),_0x1bb7e0[_0x1f102e(0x117)]();})),_0x4dac13['add'](this['_commandService'][_0x545ef5(0x184)](_0x4d2f44=>{var _0x180f40=_0x545ef5,_0x4754d8;if(_0x4d2f44[_0x180f40(0xa4)]!==_0x2b474e['CommandType'][_0x180f40(0xd5)]||!this[_0x180f40(0xe3)][_0x180f40(0x193)](_0x4d2f44['id']))return;const {id:_0x14a8d0}=_0x4d2f44;let _0x37bd49;_0x1bb7e0[_0x180f40(0x178)](_0x14a8d0)?_0x37bd49=_0x1bb7e0[_0x180f40(0x120)](_0x14a8d0):(_0x37bd49=new _0x3538d5['Subject'](),_0x1bb7e0[_0x180f40(0x10b)](_0x14a8d0,_0x37bd49),_0x37bd49['pipe'](_0x46520d['throttleTime']((_0x4754d8=this[_0x180f40(0x149)]['getConfig'](_0x53108e))!=null?_0x4754d8:_0x2d12cd,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x180f40(0x11b)](_0x589c06=>{var _0x5bf7e1=_0x180f40;this[_0x5bf7e1(0xd7)]['send']({'eventID':_0x1217f8[_0x5bf7e1(0x16f)][_0x5bf7e1(0x18e)],'data':{'unitID':this[_0x5bf7e1(0x171)],'operations':{[_0x589c06['id']]:{'id':_0x589c06['id'],'params':JSON[_0x5bf7e1(0x122)](_0x589c06['params'])}}}},this[_0x5bf7e1(0x171)]);})),_0x37bd49['next'](_0x4d2f44);})),this[_0x545ef5(0xe3)][_0x545ef5(0x183)](this['_unitID'])['forEach'](_0x44873f=>this[_0x545ef5(0xd7)][_0x545ef5(0xd4)]({'eventID':_0x1217f8[_0x545ef5(0x16f)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x44873f['id']]:{'id':_0x44873f['id'],'params':JSON[_0x545ef5(0x122)](_0x44873f[_0x545ef5(0x140)])}}}},this[_0x545ef5(0x171)]));}[_0x450e7f(0x174)](){var _0x3e8d93=_0x450e7f,_0x39efad;this[_0x3e8d93(0xaa)][_0x3e8d93(0x16d)]('idle'),(_0x39efad=this[_0x3e8d93(0x181)])==null||_0x39efad[_0x3e8d93(0x126)](),this['_commandDisposable']=null;}['_startFollowing'](){var _0xc7ca0b=_0x450e7f,_0x4fff19;(_0x4fff19=this['_commandDisposable'])==null||_0x4fff19[_0xc7ca0b(0x126)](),this[_0xc7ca0b(0xaa)][_0xc7ca0b(0x16d)]('following');}['_beIdle'](){var _0x781dfa=_0x450e7f,_0x491906;this['_status$'][_0x781dfa(0x16d)](_0x781dfa(0xf3)),(_0x491906=this[_0x781dfa(0x181)])==null||_0x491906[_0x781dfa(0x126)](),this[_0x781dfa(0x181)]=null;}[_0x450e7f(0x115)](){var _0x35069b=_0x450e7f,_0x2ee7b2;this[_0x35069b(0xaa)][_0x35069b(0x16d)](_0x35069b(0x158)),(_0x2ee7b2=this[_0x35069b(0x181)])==null||_0x2ee7b2[_0x35069b(0x126)]();}[_0x450e7f(0x167)](_0x4b948c){var _0x444a08=_0x450e7f;if([_0x444a08(0xb7),_0x444a08(0x158),_0x444a08(0xb0)][_0x444a08(0xaf)](this[_0x444a08(0x17d)])||!_0x4b948c['data'][_0x444a08(0x136)]||_0x4b948c['data'][_0x444a08(0x136)]===this[_0x444a08(0xd7)][_0x444a08(0xe5)]())return;this[_0x444a08(0x17d)]===_0x444a08(0xf3)&&this[_0x444a08(0x173)]();const _0x16ce21=_0x4b948c['data']['operations'];Object[_0x444a08(0x186)](_0x16ce21)[_0x444a08(0x176)](_0x2e87c4=>{var _0x1f3aa4=_0x444a08;this[_0x1f3aa4(0x142)]['executeCommand'](_0x2e87c4['id'],_0x2e87c4[_0x1f3aa4(0x140)]?JSON[_0x1f3aa4(0x116)](_0x2e87c4['params']):null,{'fromCollab':!0x0});});}[_0x450e7f(0x172)](){var _0x1c2506=_0x450e7f,_0x215e93;this[_0x1c2506(0xaa)][_0x1c2506(0x16d)](_0x1c2506(0xb0)),(_0x215e93=this[_0x1c2506(0x181)])==null||_0x215e93[_0x1c2506(0x126)]();}[_0x450e7f(0xef)](){var _0x514512=_0x450e7f;this[_0x514512(0xaa)][_0x514512(0x16d)](_0x514512(0xf3)),this[_0x514512(0x106)]();}},_0x2ae9b9[_0x450e7f(0x13c)]=_0x57028e([_0x5a2b3c(0x2,_0x2b474e['IConfigService']),_0x5a2b3c(0x3,_0x2b474e['Inject'](_0x187d0d)),_0x5a2b3c(0x4,_0x2b474e['ICommandService'])],_0x2ae9b9[_0x450e7f(0x13c)]);function _0x44e069(){var _0x46e100=_0x450e7f;const _0x297d98=_0x29bae6[_0x46e100(0xc3)](_0x2ae9b9['LiveShareController']),_0x15bfb3=_0x29bae6['useDependency'](_0x2b474e[_0x46e100(0x12e)]),_0x6ed1f7=_0x29bae6[_0x46e100(0xb5)](()=>_0x15bfb3['getCurrentTypeOfUnit$'](_0x2b474e[_0x46e100(0x109)][_0x46e100(0xf6)]),void 0x0,!0x1,[]),[_0xfd3e92,_0x82de6f]=_0x19c262[_0x46e100(0x124)](null),[_0x4130dc,_0x3907c5]=_0x19c262[_0x46e100(0x124)](_0x4c1ccf[_0x46e100(0x16c)]),_0xfbdf8c=_0x19c262[_0x46e100(0xac)](null);return _0x19c262[_0x46e100(0xe7)](()=>(_0x6ed1f7&&_0x297d98[_0x46e100(0xb3)](_0x6ed1f7['getUnitId']())[_0x46e100(0xe8)](_0x2c1f0a=>{var _0x469814=_0x46e100;_0x82de6f(_0x2c1f0a),_0xfbdf8c[_0x469814(0x190)]=_0x2c1f0a['status$'][_0x469814(0x11b)](_0x19299=>{_0x3907c5(_0x19299);});}),()=>{var _0xacecb4=_0x46e100,_0x395575;(_0x395575=_0xfbdf8c[_0xacecb4(0x190)])==null||_0x395575[_0xacecb4(0xfe)](),_0xfbdf8c[_0xacecb4(0x190)]=null;}),[_0x6ed1f7,_0x297d98]),_0xfd3e92?_0x5ed8ab[_0x46e100(0x15e)](_0x449b7f[_0x46e100(0xda)],{'align':_0x46e100(0x10d),'disabled':_0x4130dc===_0x4c1ccf[_0x46e100(0x18a)],'className':_0x46e100(0xcc),'overlay':_0x5ed8ab[_0x46e100(0x15e)](_0x13e213,{'status':_0x4130dc,'coordinator':_0xfd3e92}),'children':_0x5ed8ab[_0x46e100(0x15e)](_0x46e100(0x170),{'className':_0x449b7f[_0x46e100(0x188)](_0x46e100(0xbb),{'univer-cursor-not-allowed':_0x4130dc===_0x4c1ccf['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4130dc!==_0x4c1ccf[_0x46e100(0x18a)]}),'type':_0x46e100(0x170),'children':_0x5ed8ab[_0x46e100(0x15e)](_0x34a692,{'className':'univer-size-4'})})}):null;}function _0x13e213(_0x8f24b5){var _0x5a3727=_0x450e7f;const {status:_0x400e66,coordinator:_0x4ad583}=_0x8f24b5;switch(_0x400e66){case _0x4c1ccf[_0x5a3727(0x16c)]:return _0x5ed8ab[_0x5a3727(0x15e)](_0x71451f,{'coordinator':_0x4ad583});case _0x4c1ccf[_0x5a3727(0x12c)]:return _0x5ed8ab['jsx'](_0x2a5fc6,{'coordinator':_0x4ad583});case _0x4c1ccf['NOT_FOLLOWING']:return _0x5ed8ab[_0x5a3727(0x15e)](_0x33f422,{'coordinator':_0x4ad583});case _0x4c1ccf[_0x5a3727(0x18a)]:return _0x5ed8ab['jsx'](_0x360507,{});case _0x4c1ccf['PRESENTING']:return _0x5ed8ab['jsx'](_0x103003,{'coordinator':_0x4ad583});default:return null;}}function _0x71451f(_0x35470e){var _0x1adf61=_0x450e7f;const {coordinator:_0xad3020}=_0x35470e;return _0x5ed8ab['jsxs'](_0x5ed8ab[_0x1adf61(0x12b)],{'children':[_0x5ed8ab[_0x1adf61(0x15e)](_0x1adf61(0x189),{'className':_0x1adf61(0xea),'children':_0x1adf61(0x132)}),_0x5ed8ab['jsx'](_0x449b7f[_0x1adf61(0x179)],{'onClick':()=>_0xad3020[_0x1adf61(0xd8)](),'children':_0x1adf61(0xdd)})]});}function _0x2a5fc6(_0x3ae576){var _0x16f713=_0x450e7f;const {coordinator:_0x17ce6f}=_0x3ae576;return _0x5ed8ab[_0x16f713(0xa0)](_0x5ed8ab[_0x16f713(0x12b)],{'children':[_0x5ed8ab[_0x16f713(0x15e)](_0x16f713(0x189),{'className':_0x16f713(0xea),'children':_0x16f713(0x195)}),_0x5ed8ab[_0x16f713(0x15e)](_0x449b7f[_0x16f713(0x179)],{'onClick':()=>_0x17ce6f[_0x16f713(0xf1)](),'children':_0x16f713(0x12a)})]});}function _0x33f422(_0x3ca8e5){var _0x4bd3c2=_0x450e7f;const {coordinator:_0x592aca}=_0x3ca8e5;return _0x5ed8ab[_0x4bd3c2(0xa0)](_0x5ed8ab[_0x4bd3c2(0x12b)],{'children':[_0x5ed8ab['jsx'](_0x4bd3c2(0x189),{'className':_0x4bd3c2(0xea),'children':_0x4bd3c2(0x150)}),_0x5ed8ab[_0x4bd3c2(0x15e)](_0x449b7f[_0x4bd3c2(0x179)],{'variant':_0x4bd3c2(0x14d),'onClick':()=>_0x592aca[_0x4bd3c2(0x180)](),'children':_0x4bd3c2(0x169)})]});}function _0x103003(_0xa73907){var _0x41e2d4=_0x450e7f;const {coordinator:_0x4f3843}=_0xa73907;return _0x5ed8ab[_0x41e2d4(0xa0)](_0x5ed8ab[_0x41e2d4(0x12b)],{'children':[_0x5ed8ab['jsx'](_0x41e2d4(0x189),{'className':_0x41e2d4(0xea),'children':_0x41e2d4(0xad)}),_0x5ed8ab[_0x41e2d4(0x15e)](_0x449b7f[_0x41e2d4(0x179)],{'variant':_0x41e2d4(0xe2),'onClick':()=>_0x4f3843['stopPresenting'](),'children':_0x41e2d4(0x160)})]});}function _0x360507(){var _0x32c106=_0x450e7f;return _0x5ed8ab['jsx'](_0x5ed8ab[_0x32c106(0x12b)],{'children':_0x32c106(0xc2)});}var _0x192d5a=Object[_0x450e7f(0x191)],_0xcab7d9=(_0x129da8,_0x1666be,_0x37e49d,_0xe7728d)=>{var _0x545c00=_0x450e7f;for(var _0x1d444e=_0xe7728d>0x1?void 0x0:_0xe7728d?_0x192d5a(_0x1666be,_0x37e49d):_0x1666be,_0x47eed6=_0x129da8[_0x545c00(0xf8)]-0x1,_0x3bc2fa;_0x47eed6>=0x0;_0x47eed6--)(_0x3bc2fa=_0x129da8[_0x47eed6])&&(_0x1d444e=_0x3bc2fa(_0x1d444e)||_0x1d444e);return _0x1d444e;},_0x38ccc4=(_0x185960,_0x19eb32)=>(_0x45a578,_0x1325b9)=>_0x19eb32(_0x45a578,_0x1325b9,_0x185960);_0x2ae9b9['DesktopLiveShareController']=class extends _0x2b474e[_0x450e7f(0x131)]{constructor(_0x510547,_0x19d7fe){var _0xe48a11=_0x450e7f;super(),this['_injector']=_0x510547,this[_0xe48a11(0x111)]=_0x19d7fe,this[_0xe48a11(0x18c)]();}[_0x450e7f(0x18c)](){var _0x37e00d=_0x450e7f;this[_0x37e00d(0x18b)](this['_uiPartsService'][_0x37e00d(0xa2)](_0x29bae6[_0x37e00d(0x144)][_0x37e00d(0xcd)],()=>_0x29bae6[_0x37e00d(0x159)](_0x44e069,this[_0x37e00d(0xf5)])));}},_0x2ae9b9[_0x450e7f(0xc7)]=_0xcab7d9([_0x38ccc4(0x0,_0x2b474e[_0x450e7f(0x108)](_0x2b474e[_0x450e7f(0xb1)])),_0x38ccc4(0x1,_0x29bae6[_0x450e7f(0x13b)])],_0x2ae9b9['DesktopLiveShareController']);var _0x101e53=Object[_0x450e7f(0x163)],_0x4265a8=Object[_0x450e7f(0x191)],_0x14de8b=(_0x2b6bd2,_0x3bd292,_0x327b53)=>_0x3bd292 in _0x2b6bd2?_0x101e53(_0x2b6bd2,_0x3bd292,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x327b53}):_0x2b6bd2[_0x3bd292]=_0x327b53,_0xe653d4=(_0x1576aa,_0x7fcffa,_0x596565,_0x114869)=>{var _0x80369b=_0x450e7f;for(var _0x2bc716=_0x114869>0x1?void 0x0:_0x114869?_0x4265a8(_0x7fcffa,_0x596565):_0x7fcffa,_0x5eea43=_0x1576aa[_0x80369b(0xf8)]-0x1,_0x2767d2;_0x5eea43>=0x0;_0x5eea43--)(_0x2767d2=_0x1576aa[_0x5eea43])&&(_0x2bc716=_0x2767d2(_0x2bc716)||_0x2bc716);return _0x2bc716;},_0x5f1a60=(_0x28f1e8,_0x2c80d5)=>(_0x22b764,_0x2e7b1e)=>_0x2c80d5(_0x22b764,_0x2e7b1e,_0x28f1e8),_0x3c8614=(_0x4dc510,_0x518946,_0x24fefb)=>_0x14de8b(_0x4dc510,typeof _0x518946!=_0x450e7f(0x15b)?_0x518946+'':_0x518946,_0x24fefb);const _0xbb4d77=_0x450e7f(0x104);_0x2ae9b9[_0x450e7f(0xfc)]=class extends _0x2b474e[_0x450e7f(0x16b)]{constructor(_0x5c7bef=_0x5152d0,_0x299436,_0xf8747){var _0x3873b9=_0x450e7f;super(),this[_0x3873b9(0x100)]=_0x5c7bef,this[_0x3873b9(0xf5)]=_0x299436,this[_0x3873b9(0x149)]=_0xf8747;const {..._0x1c157c}=_0x2b474e[_0x3873b9(0x12f)]({},_0x5152d0,this['_config']);this[_0x3873b9(0x149)][_0x3873b9(0x13f)](_0x27a9a8,_0x1c157c);}[_0x450e7f(0xff)](){var _0x5a3239=_0x450e7f;_0x2b474e[_0x5a3239(0xdf)](this['_injector'],_0x2b474e[_0x5a3239(0x101)]([[_0x187d0d],[_0x2ae9b9['LiveShareController']],[_0x8375be],[_0x2ae9b9[_0x5a3239(0xc7)]]],this[_0x5a3239(0x100)]['override'])),_0x2b474e[_0x5a3239(0x10c)](this[_0x5a3239(0xf5)],[[_0x8375be]]);}['onRendered'](){var _0x7958f0=_0x450e7f;_0x2b474e[_0x7958f0(0x10c)](this[_0x7958f0(0xf5)],[[_0x2ae9b9[_0x7958f0(0xc7)]]]);}},_0x3c8614(_0x2ae9b9['UniverLiveSharePlugin'],'type',_0x2b474e['UniverInstanceType']['UNIVER_UNKNOWN']),_0x3c8614(_0x2ae9b9[_0x450e7f(0xfc)],'pluginName',_0xbb4d77),_0x2ae9b9['UniverLiveSharePlugin']=_0xe653d4([_0x2b474e['DependentOn'](_0x4803b3[_0x450e7f(0x102)]),_0x5f1a60(0x1,_0x2b474e[_0x450e7f(0x108)](_0x2b474e[_0x450e7f(0xb1)])),_0x5f1a60(0x2,_0x2b474e[_0x450e7f(0x143)])],_0x2ae9b9[_0x450e7f(0xfc)]),_0x2ae9b9[_0x450e7f(0xdb)]=_0x44e069,_0x2ae9b9[_0x450e7f(0xb9)]=_0x187d0d,_0x2ae9b9[_0x450e7f(0xa3)]=_0x4c1ccf,Object[_0x450e7f(0x163)](_0x2ae9b9,Symbol[_0x450e7f(0xd9)],{'value':_0x450e7f(0x135)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.7.0-nightly.
|
|
3
|
+
"version": "0.7.0-nightly.202505201607",
|
|
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.3.24",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.7.0-nightly.
|
|
51
|
-
"@univerjs/
|
|
52
|
-
"@univerjs
|
|
53
|
-
"@univerjs/sheets": "0.7.0-nightly.
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/
|
|
50
|
+
"@univerjs-pro/collaboration": "0.7.0-nightly.202505201607",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.7.0-nightly.202505201607",
|
|
52
|
+
"@univerjs/core": "0.7.0-nightly.202505201607",
|
|
53
|
+
"@univerjs/sheets": "0.7.0-nightly.202505201607",
|
|
54
|
+
"@univerjs/sheets-ui": "0.7.0-nightly.202505201607",
|
|
55
|
+
"@univerjs/ui": "0.7.0-nightly.202505201607",
|
|
56
|
+
"@univerjs/design": "0.7.0-nightly.202505201607"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.3",
|