@univerjs-pro/live-share 0.10.1 → 0.10.2-nightly.202508071209
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/types/index.d.ts +4 -4
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x4a59a4=_0x5534;(function(_0x338b35,_0x636af6){var _0x5a611a=_0x5534,_0x508d97=_0x338b35();while(!![]){try{var _0x58e108=-parseInt(_0x5a611a(0x1e8))/0x1*(-parseInt(_0x5a611a(0x147))/0x2)+parseInt(_0x5a611a(0x192))/0x3*(-parseInt(_0x5a611a(0x1f1))/0x4)+-parseInt(_0x5a611a(0x1c9))/0x5*(parseInt(_0x5a611a(0x1be))/0x6)+parseInt(_0x5a611a(0x189))/0x7*(-parseInt(_0x5a611a(0x1dc))/0x8)+-parseInt(_0x5a611a(0x185))/0x9*(parseInt(_0x5a611a(0x14e))/0xa)+-parseInt(_0x5a611a(0x1c5))/0xb*(-parseInt(_0x5a611a(0x142))/0xc)+parseInt(_0x5a611a(0x12f))/0xd*(parseInt(_0x5a611a(0x196))/0xe);if(_0x58e108===_0x636af6)break;else _0x508d97['push'](_0x508d97['shift']());}catch(_0xd8dc17){_0x508d97['push'](_0x508d97['shift']());}}}(_0x5802,0x51d85));var U=Object[_0x4a59a4(0x1f3)],F=(_0x518d6e,_0x4a1806,_0x5d8df3)=>_0x4a1806 in _0x518d6e?U(_0x518d6e,_0x4a1806,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d8df3}):_0x518d6e[_0x4a1806]=_0x5d8df3,v=(_0x3a470d,_0x5ea6f8,_0x38ddd1)=>F(_0x3a470d,typeof _0x5ea6f8!='symbol'?_0x5ea6f8+'':_0x5ea6f8,_0x38ddd1);Object[_0x4a59a4(0x1f3)](exports,Symbol[_0x4a59a4(0x14c)],{'value':_0x4a59a4(0x145)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$=_0x4a59a4(0x144),x={};class O extends o[_0x4a59a4(0x1c6)]{constructor(){var _0x46e5e9=_0x4a59a4;super(...arguments),v(this,_0x46e5e9(0x1d6),new Set()),v(this,_0x46e5e9(0x1cb),new Set());}['registerSharedOperation'](_0x31ea92){var _0x15969b=_0x4a59a4;return this[_0x15969b(0x1d6)][_0x15969b(0x1fb)](_0x31ea92),o['toDisposable'](()=>this[_0x15969b(0x1d6)][_0x15969b(0x140)](_0x31ea92));}[_0x4a59a4(0x14d)](_0x3dac4d){var _0x46220d=_0x4a59a4;return this[_0x46220d(0x1cb)][_0x46220d(0x1fb)](_0x3dac4d),o[_0x46220d(0x1a1)](()=>this[_0x46220d(0x1cb)]['delete'](_0x3dac4d));}[_0x4a59a4(0x148)](_0xd02f17){var _0x31987d=_0x4a59a4;return this[_0x31987d(0x1d6)][_0x31987d(0x181)](_0xd02f17);}['getInitialStates'](_0x575d2c){var _0x23c737=_0x4a59a4;return Array[_0x23c737(0x11b)](this[_0x23c737(0x1cb)])['map'](_0xd56ab0=>_0xd56ab0(_0x575d2c));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x4128ea,_0x6645cd,_0x2b8809,_0x4c46e8)=>{var _0x4a97a4=_0x4a59a4;for(var _0x5b1868=_0x4c46e8>0x1?void 0x0:_0x4c46e8?H(_0x6645cd,_0x2b8809):_0x6645cd,_0xd70c8e=_0x4128ea[_0x4a97a4(0x1ca)]-0x1,_0x4e6232;_0xd70c8e>=0x0;_0xd70c8e--)(_0x4e6232=_0x4128ea[_0xd70c8e])&&(_0x5b1868=_0x4e6232(_0x5b1868)||_0x5b1868);return _0x5b1868;},k=(_0x4b5047,_0x461a25)=>(_0x1fd908,_0x8e34e5)=>_0x461a25(_0x1fd908,_0x8e34e5,_0x4b5047);let E=class extends o[_0x4a59a4(0x1c6)]{constructor(_0x5cadde){var _0x4f722e=_0x4a59a4;super(),this['_liveShareService']=_0x5cadde,this[_0x4f722e(0x13b)]();}[_0x4a59a4(0x13b)](){var _0x44d32b=_0x4a59a4;[w['SetZoomRatioOperation']['id'],w[_0x44d32b(0x152)]['id'],C[_0x44d32b(0x15d)]['id']][_0x44d32b(0x1dd)](_0x191c6a=>{var _0x36ca7a=_0x44d32b;this[_0x36ca7a(0x19f)](this[_0x36ca7a(0x1eb)][_0x36ca7a(0x124)](_0x191c6a));});}};function _0x5802(){var _0xb8c1e5=['createElement','data','_config','Button','set','not-following','_init','random','LiveShareService','You\x27re\x20following\x20the\x20presenter','button','delete','dispose','5533308aMlcSR','registerComponent','live-share.config','Module','call','257794TPCmlh','shouldShareOperation','_collabSessionService','PRESENTING','unitId','toStringTag','registerInitialStateReporter','76390WygSyW','operations','_handleOperation','LIVESHARE_FETCH_OPERATIONS','SetScrollOperation','path','useEffect','_mountLiveShare','LIVESHARE_TERMINATE','sessionStatus$','url(#$1','then','_handleTerminate','onStarting','className','SetWorksheetActiveOperation','_status','UniverInstanceType','_unitID','univer-mb-3\x20univer-w-full\x20univer-text-sm','_beIdle','RxDisposable','_stopFollowing','icon','jsx','find','OFFLINE','send','attrs','LiveShareCoordinator','BuiltInUIPart','Plugin','div','pipe','BehaviorSubject','text','jsxs','UniverLiveSharePlugin','getOwnPropertySymbols','mergeOverrideWithDependencies','univer-size-4','subscribe','LiveShareStatus','setConfig','get','registerDependencies','event$','_fetchOperations','_startFollowing','_handleOffline','parseProtocolChangeset','has','parse','xlink:href','sheet','333OdAwek','_univerInstanceService','getOwnPropertyDescriptor','Present\x20this\x20document','840EnVdqA','_uiPartsService','You\x27re\x20presenting\x20the\x20document','SAME_OPERATION_SHARE_INTERVAL','You\x27are\x20offline.','tryStartPresenting','indexOf','CollaborationSessionService','getMemberID','507TfhmkZ','getUnitId','DisposableCollection','requireSession','574FjNKqh','LiveShareController','DesktopLiveShareController','params','toString','_handleNewHost','ICommandService','getCurrentTypeOfUnit$','_stopPresenting','disposeWithMe','merge','toDisposable','_commandDisposable','_handleOnline','LIVESHARE_OPERATION','symbol','forwardRef','Inject','getInitialStates','dispose$','InsertSheetMutation','throttleTime','Dropdown','getLiveShareCoordinator','_injector','useDependency','ONLINE','IConfigService','OPERATION','defIds','SessionStatus','useObservable','LIVESHARE_REQUEST_HOST','memberID','_startLiveShareCoordinator','HEADER_MENU','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','useRef','presenting','Injector','372NrOXmo','function','http://www.w3.org/2000/svg','LIVESHARE_NEW_HOST','offline','children','_configService','11KQmBRb','Disposable','CollaborationEvent','_entities','13855DnrdjP','length','_reporters','NOT_FOLLOWING','stringify','UNIVER_UNKNOWN','use','next','getValue','includes','NEW_CHANGESETS','IUniverInstanceService','_handleNewChangeSets','_sharedOperations','prototype','_status$','_commandService','executeCommand','Fragment','18376BqqNIz','forEach','extend','LiveShareIcon','0\x200\x2017\x2017','defs','FOLLOWING','touchDependencies','_presenter','type','tag','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','2choiWt','_collabSession','getConfig','_liveShareService','useState','createInstance','end','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','asObservable','13768QZwYus','Start','defineProperty','concat','Stop\x20following','startFollowing','svg','CommandType','You\x27re\x20not\x20following\x20the\x20presenter','default','add','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','idle','presenter','replace','from','getTypeOfUnitAdded$','displayName','assign','unsubscribe','IDLE','following','onCommandExecuted','colorChannel1','registerSharedOperation','LiveShare','fill','takeUntil','trim','stopFollowing','current','currentColor','string','stopPresenting','UNIVER_SHEET','294281kRMsfh','status$','1em','reverse','mask','idSuffix'];_0x5802=function(){return _0xb8c1e5;};return _0x5802();}E=V([k(0x0,o['Inject'](O))],E);var u=function(){var _0x4369b6=_0x4a59a4;return u=Object[_0x4369b6(0x11e)]||function(_0x4294b8){var _0x350090=_0x4369b6;for(var _0x1964a6,_0x2a18ca=0x1,_0xc47089=arguments[_0x350090(0x1ca)];_0x2a18ca<_0xc47089;_0x2a18ca++){_0x1964a6=arguments[_0x2a18ca];for(var _0x4d949a in _0x1964a6)Object[_0x350090(0x1d7)]['hasOwnProperty']['call'](_0x1964a6,_0x4d949a)&&(_0x4294b8[_0x4d949a]=_0x1964a6[_0x4d949a]);}return _0x4294b8;},u['apply'](this,arguments);},M=function(_0x257140,_0x2c9a5b){var _0x50c03d=_0x4a59a4,_0xf1c67f={};for(var _0xe1fa86 in _0x257140)Object[_0x50c03d(0x1d7)]['hasOwnProperty']['call'](_0x257140,_0xe1fa86)&&_0x2c9a5b[_0x50c03d(0x18f)](_0xe1fa86)<0x0&&(_0xf1c67f[_0xe1fa86]=_0x257140[_0xe1fa86]);if(_0x257140!=null&&typeof Object[_0x50c03d(0x174)]==_0x50c03d(0x1bf)){for(var _0x52d51d=0x0,_0xe1fa86=Object[_0x50c03d(0x174)](_0x257140);_0x52d51d<_0xe1fa86['length'];_0x52d51d++)_0x2c9a5b['indexOf'](_0xe1fa86[_0x52d51d])<0x0&&Object[_0x50c03d(0x1d7)]['propertyIsEnumerable'][_0x50c03d(0x146)](_0x257140,_0xe1fa86[_0x52d51d])&&(_0xf1c67f[_0xe1fa86[_0x52d51d]]=_0x257140[_0xe1fa86[_0x52d51d]]);}return _0xf1c67f;},j=f[_0x4a59a4(0x1a6)](function(_0x5a4d2f,_0x3d7e0f){var _0x27e5e3=_0x4a59a4,_0x54b0d8=_0x5a4d2f[_0x27e5e3(0x165)],_0x540f6f=_0x5a4d2f['id'],_0x506950=_0x5a4d2f[_0x27e5e3(0x15c)],_0x4b8a2c=_0x5a4d2f[_0x27e5e3(0x1de)],_0x3e3128=M(_0x5a4d2f,[_0x27e5e3(0x165),'id',_0x27e5e3(0x15c),'extend']),_0x16ca0d='univerjs-icon\x20univerjs-icon-'[_0x27e5e3(0x1f4)](_0x540f6f,'\x20')[_0x27e5e3(0x1f4)](_0x506950||'')[_0x27e5e3(0x128)](),_0x130e3a=f[_0x27e5e3(0x1bb)]('_'[_0x27e5e3(0x1f4)](G()));return y(_0x54b0d8,''['concat'](_0x540f6f),{'defIds':_0x54b0d8['defIds'],'idSuffix':_0x130e3a[_0x27e5e3(0x12a)]},u({'ref':_0x3d7e0f,'className':_0x16ca0d},_0x3e3128),_0x4b8a2c);});function _0x5534(_0x2addad,_0x23755c){var _0x5802d4=_0x5802();return _0x5534=function(_0x553449,_0x93a08f){_0x553449=_0x553449-0x119;var _0x5a227a=_0x5802d4[_0x553449];return _0x5a227a;},_0x5534(_0x2addad,_0x23755c);}function y(_0x587adc,_0x345684,_0x13bff6,_0xeb8b6c,_0x1136ef){var _0x231f08=_0x4a59a4;return f[_0x231f08(0x135)](_0x587adc[_0x231f08(0x1e6)],u(u({'key':_0x345684},q(_0x587adc,_0x13bff6,_0x1136ef)),_0xeb8b6c),(W(_0x587adc,_0x13bff6)[_0x231f08(0x1c3)]||[])['map'](function(_0x1d0adf,_0x265655){var _0x398416=_0x231f08;return y(_0x1d0adf,''[_0x398416(0x1f4)](_0x345684,'-')['concat'](_0x587adc['tag'],'-')[_0x398416(0x1f4)](_0x265655),_0x13bff6,void 0x0,_0x1136ef);}));}function q(_0x505aba,_0x251b28,_0xb5cc8){var _0x17a567=_0x4a59a4,_0x48c82f=u({},_0x505aba[_0x17a567(0x16a)]);_0xb5cc8!=null&&_0xb5cc8['colorChannel1']&&_0x48c82f[_0x17a567(0x126)]===_0x17a567(0x123)&&(_0x48c82f['fill']=_0xb5cc8['colorChannel1']),_0x505aba['tag']===_0x17a567(0x133)&&_0x48c82f['id']&&(_0x48c82f['id']=_0x48c82f['id']+_0x251b28['idSuffix']),Object['entries'](_0x48c82f)[_0x17a567(0x1dd)](function(_0x51cba4){var _0x5a9012=_0x17a567,_0x88d197=_0x51cba4[0x0],_0x40a4b7=_0x51cba4[0x1];_0x88d197===_0x5a9012(0x133)&&typeof _0x40a4b7==_0x5a9012(0x12c)&&(_0x48c82f[_0x88d197]=_0x40a4b7['replace'](/url\(#(.*)\)/,_0x5a9012(0x158)[_0x5a9012(0x1f4)](_0x251b28['idSuffix'],')')));});var _0x40d303=_0x251b28[_0x17a567(0x1b3)];return!_0x40d303||_0x40d303[_0x17a567(0x1ca)]===0x0||(_0x505aba[_0x17a567(0x1e6)]===_0x17a567(0x1cf)&&_0x48c82f[_0x17a567(0x183)]&&(_0x48c82f[_0x17a567(0x183)]=_0x48c82f[_0x17a567(0x183)]+_0x251b28[_0x17a567(0x134)]),Object['entries'](_0x48c82f)[_0x17a567(0x1dd)](function(_0x4188a9){var _0x203c26=_0x17a567,_0x1e989e=_0x4188a9[0x0],_0x1e3ebf=_0x4188a9[0x1];typeof _0x1e3ebf==_0x203c26(0x12c)&&(_0x48c82f[_0x1e989e]=_0x1e3ebf[_0x203c26(0x11a)](/url\(#(.*)\)/,'url(#$1'[_0x203c26(0x1f4)](_0x251b28[_0x203c26(0x134)],')')));})),_0x48c82f;}function W(_0x456c4c,_0x3a4e04){var _0x229519=_0x4a59a4,_0x477cda,_0x2ddd6d=_0x3a4e04[_0x229519(0x1b3)];return!_0x2ddd6d||_0x2ddd6d[_0x229519(0x1ca)]===0x0?_0x456c4c:_0x456c4c['tag']===_0x229519(0x1e1)&&(!((_0x477cda=_0x456c4c[_0x229519(0x1c3)])===null||_0x477cda===void 0x0)&&_0x477cda[_0x229519(0x1ca)])?u(u({},_0x456c4c),{'children':_0x456c4c[_0x229519(0x1c3)]['map'](function(_0x19c7f0){var _0x3f59ff=_0x229519;return typeof _0x19c7f0[_0x3f59ff(0x16a)]['id']==_0x3f59ff(0x12c)&&_0x2ddd6d&&_0x2ddd6d['includes'](_0x19c7f0[_0x3f59ff(0x16a)]['id'])?u(u({},_0x19c7f0),{'attrs':u(u({},_0x19c7f0[_0x3f59ff(0x16a)]),{'id':_0x19c7f0['attrs']['id']+_0x3a4e04[_0x3f59ff(0x134)]})}):_0x19c7f0;})}):_0x456c4c;}function G(){var _0x47711d=_0x4a59a4;return Math[_0x47711d(0x13c)]()[_0x47711d(0x19a)](0x24)['substring'](0x2,0x8);}j['displayName']='UniverIcon';var B={'tag':_0x4a59a4(0x1f7),'attrs':{'xmlns':_0x4a59a4(0x1c0),'fill':'none','viewBox':_0x4a59a4(0x1e0),'width':_0x4a59a4(0x131),'height':'1em'},'children':[{'tag':_0x4a59a4(0x153),'attrs':{'fill':_0x4a59a4(0x12b),'d':_0x4a59a4(0x1ef)}},{'tag':'path','attrs':{'fill':_0x4a59a4(0x12b),'d':_0x4a59a4(0x1e7),'fillRule':'evenodd','clipRule':'evenodd'}}]},P=f[_0x4a59a4(0x1a6)](function(_0x2064df,_0x408dc4){var _0x24fc06=_0x4a59a4;return f['createElement'](j,Object[_0x24fc06(0x11e)]({},_0x2064df,{'id':'live-share-icon','ref':_0x408dc4,'icon':B}));});P[_0x4a59a4(0x11d)]=_0x4a59a4(0x1df);var Y=Object['getOwnPropertyDescriptor'],R=(_0xfc3e94,_0x4ad4dd,_0x42e429,_0x481bef)=>{var _0x359158=_0x4a59a4;for(var _0x32f145=_0x481bef>0x1?void 0x0:_0x481bef?Y(_0x4ad4dd,_0x42e429):_0x4ad4dd,_0xd94337=_0xfc3e94[_0x359158(0x1ca)]-0x1,_0xbeac3e;_0xd94337>=0x0;_0xd94337--)(_0xbeac3e=_0xfc3e94[_0xd94337])&&(_0x32f145=_0xbeac3e(_0x32f145)||_0x32f145);return _0x32f145;},S=(_0x47f5e5,_0x1d2956)=>(_0x3a725c,_0x4a6548)=>_0x1d2956(_0x3a725c,_0x4a6548,_0x47f5e5);exports['LiveShareController']=class extends o[_0x4a59a4(0x163)]{constructor(_0x48bac8,_0x33698b,_0x8b846c){var _0xed1788=_0x4a59a4;super(),v(this,_0xed1788(0x1c8),new Map()),(this['_univerInstanceService']=_0x48bac8,this[_0xed1788(0x1ae)]=_0x33698b,this[_0xed1788(0x149)]=_0x8b846c,this[_0xed1788(0x13b)]());}async[_0x4a59a4(0x1ad)](_0xb67247){var _0x40da87=_0x4a59a4;return this[_0x40da87(0x1c8)][_0x40da87(0x181)](_0xb67247)||await this[_0x40da87(0x1b8)](_0xb67247),this[_0x40da87(0x1c8)]['get'](_0xb67247);}[_0x4a59a4(0x13b)](){var _0xf4474=_0x4a59a4;this[_0xf4474(0x186)][_0xf4474(0x11c)](o[_0xf4474(0x15f)][_0xf4474(0x12e)])[_0xf4474(0x16f)](b[_0xf4474(0x127)](this['dispose$']))[_0xf4474(0x177)](async _0x53cc9e=>{var _0x32d6dd=_0xf4474;const _0x567ae3=_0x53cc9e[_0x32d6dd(0x193)]();this[_0x32d6dd(0x1c8)][_0x32d6dd(0x181)](_0x567ae3)||this['_startLiveShareCoordinator'](_0x567ae3);}),this[_0xf4474(0x186)]['getTypeOfUnitDisposed$'](o['UniverInstanceType'][_0xf4474(0x12e)])[_0xf4474(0x16f)](b['takeUntil'](this['dispose$']))['subscribe'](_0xedb1d6=>{var _0x155e87=_0xf4474;const _0x3801a5=_0xedb1d6[_0x155e87(0x193)](),_0x226ddf=this[_0x155e87(0x1c8)][_0x155e87(0x17a)](_0x3801a5);_0x226ddf==null||_0x226ddf[_0x155e87(0x141)]();});}async['_startLiveShareCoordinator'](_0x5733ef){var _0x2c7768=_0x4a59a4;const _0x7c8472=await this[_0x2c7768(0x149)][_0x2c7768(0x195)](_0x5733ef),_0x5eb13d=this[_0x2c7768(0x1ae)][_0x2c7768(0x1ed)](exports['LiveShareCoordinator'],_0x5733ef,_0x7c8472);return _0x5eb13d['init'](),this[_0x2c7768(0x1c8)][_0x2c7768(0x139)](_0x5733ef,_0x5eb13d),_0x5eb13d;}},exports['LiveShareController']=R([S(0x0,o[_0x4a59a4(0x1d4)]),S(0x1,o[_0x4a59a4(0x1a7)](o['Injector'])),S(0x2,o[_0x4a59a4(0x1a7)](m[_0x4a59a4(0x190)]))],exports[_0x4a59a4(0x197)]);var h=(_0x13da1e=>(_0x13da1e[_0x4a59a4(0x168)]=_0x4a59a4(0x1c2),_0x13da1e[_0x4a59a4(0x120)]=_0x4a59a4(0x1fd),_0x13da1e[_0x4a59a4(0x1e2)]=_0x4a59a4(0x121),_0x13da1e[_0x4a59a4(0x1cc)]=_0x4a59a4(0x13a),_0x13da1e[_0x4a59a4(0x14a)]='presenting',_0x13da1e))(h||{});const Z=_0x4a59a4(0x18c),J=0xc8;exports[_0x4a59a4(0x16b)]=class extends o['RxDisposable']{constructor(_0x2682e0,_0x2ca744,_0x419df5,_0x3761e4,_0xe1ff27){var _0x4f0b04=_0x4a59a4;super(),v(this,_0x4f0b04(0x1d8),new D[(_0x4f0b04(0x170))]('idle')),v(this,'status$',this[_0x4f0b04(0x1d8)][_0x4f0b04(0x1f0)]()),v(this,_0x4f0b04(0x13b),!0x1),v(this,_0x4f0b04(0x1a2),null),v(this,'_presenter',null),(this['_unitID']=_0x2682e0,this[_0x4f0b04(0x1e9)]=_0x2ca744,this[_0x4f0b04(0x1c4)]=_0x419df5,this['_liveShareService']=_0x3761e4,this['_commandService']=_0xe1ff27);}get[_0x4a59a4(0x15e)](){var _0x56a35e=_0x4a59a4;return this[_0x56a35e(0x1d8)][_0x56a35e(0x1d1)]();}['dispose'](){var _0x3894ce=_0x4a59a4,_0x45d74b;(_0x45d74b=this[_0x3894ce(0x1a2)])==null||_0x45d74b[_0x3894ce(0x141)](),this[_0x3894ce(0x1d8)][_0x3894ce(0x1d0)](_0x3894ce(0x1fd)),this['_status$']['complete']();}['init'](){var _0x59754e=_0x4a59a4;this['_init']||(this[_0x59754e(0x13b)]=!0x0,this[_0x59754e(0x1e9)][_0x59754e(0x157)][_0x59754e(0x16f)](b[_0x59754e(0x127)](this[_0x59754e(0x1a9)]))[_0x59754e(0x177)](_0x3c8a7b=>{var _0x18bb94=_0x59754e;switch(_0x3c8a7b){case m[_0x18bb94(0x1b4)][_0x18bb94(0x168)]:this[_0x18bb94(0x17f)]();break;case m[_0x18bb94(0x1b4)][_0x18bb94(0x1b0)]:this[_0x18bb94(0x1a3)]();break;}}),this[_0x59754e(0x1e9)][_0x59754e(0x17c)]['pipe'](b[_0x59754e(0x127)](this['dispose$']))[_0x59754e(0x177)](_0x171833=>{var _0x3a3dab=_0x59754e;const {eventID:_0x3f6da6}=_0x171833;switch(_0x3f6da6){case _[_0x3a3dab(0x1c7)][_0x3a3dab(0x1c1)]:this['_handleNewHost'](_0x171833);break;case _[_0x3a3dab(0x1c7)][_0x3a3dab(0x1a4)]:this[_0x3a3dab(0x150)](_0x171833);break;case _[_0x3a3dab(0x1c7)]['LIVESHARE_TERMINATE']:this[_0x3a3dab(0x15a)]();break;case _['CollaborationEvent'][_0x3a3dab(0x1d3)]:this[_0x3a3dab(0x1d5)](_0x171833);break;}}));}[_0x4a59a4(0x18e)](){var _0x1c4da3=_0x4a59a4;this[_0x1c4da3(0x1e9)][_0x1c4da3(0x169)]({'eventID':_[_0x1c4da3(0x1c7)][_0x1c4da3(0x1b6)],'data':{'unitID':this[_0x1c4da3(0x160)],'userID':this[_0x1c4da3(0x1e9)][_0x1c4da3(0x191)]()}},this[_0x1c4da3(0x160)]);}[_0x4a59a4(0x12d)](){var _0x20629f=_0x4a59a4;this[_0x20629f(0x15e)]===_0x20629f(0x1bc)&&(this[_0x20629f(0x1d8)][_0x20629f(0x1d0)](_0x20629f(0x1fd)),this[_0x20629f(0x1e9)]['send']({'eventID':_[_0x20629f(0x1c7)][_0x20629f(0x156)],'data':{'unitID':this[_0x20629f(0x160)]}},this[_0x20629f(0x160)]));}['startFollowing'](){var _0x441b38=_0x4a59a4;this['_status']===_0x441b38(0x13a)&&(this[_0x441b38(0x1d8)]['next'](_0x441b38(0x121)),this[_0x441b38(0x17e)]());}['stopFollowing'](){var _0x5a33ad=_0x4a59a4;this[_0x5a33ad(0x15e)]===_0x5a33ad(0x121)&&this['_stopFollowing']();}[_0x4a59a4(0x19b)](_0x3b9f6b){var _0x278295=_0x4a59a4;const {presenter:_0x37bd38}=_0x3b9f6b[_0x278295(0x136)],_0x4e1cee=this[_0x278295(0x1e9)][_0x278295(0x191)]();this[_0x278295(0x1e4)]=_0x37bd38,_0x37bd38===_0x4e1cee?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x278295(0x15e)]!==_0x278295(0x13a)&&(this[_0x278295(0x19e)](),this[_0x278295(0x17e)]());}[_0x4a59a4(0x17d)](){var _0x284d07=_0x4a59a4;const _0x2bea52={'eventID':_[_0x284d07(0x1c7)][_0x284d07(0x151)]};this['_collabSession'][_0x284d07(0x169)](_0x2bea52,this[_0x284d07(0x160)]);}[_0x4a59a4(0x15a)](){var _0x169b7a=_0x4a59a4;this[_0x169b7a(0x1e4)]=null,this[_0x169b7a(0x15e)]!==_0x169b7a(0x1bc)&&this[_0x169b7a(0x162)]();}[_0x4a59a4(0x1d5)](_0x43c97c){var _0x2df342=_0x4a59a4;if(this[_0x2df342(0x15e)]===_0x2df342(0x121)&&this[_0x2df342(0x1e4)]===_0x43c97c[_0x2df342(0x136)][_0x2df342(0x1b7)]){const _0x250b59=_[_0x2df342(0x180)](_0x43c97c['data'])['mutations'][_0x2df342(0x132)]()[_0x2df342(0x167)](_0x1c460e=>_0x1c460e['id']===C[_0x2df342(0x1aa)]['id']);if(_0x250b59){const _0x30dc99=_0x250b59[_0x2df342(0x199)][_0x2df342(0x14b)],_0x573eff=_0x250b59[_0x2df342(0x199)][_0x2df342(0x184)]['id'];setTimeout(()=>{var _0x29602f=_0x2df342;this[_0x29602f(0x1d9)][_0x29602f(0x1da)](C[_0x29602f(0x15d)]['id'],{'unitId':_0x30dc99,'subUnitId':_0x573eff},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x2652bf=_0x4a59a4;this[_0x2652bf(0x1d8)][_0x2652bf(0x1d0)](_0x2652bf(0x1bc));const _0x1ef6d9=new Map(),_0x38a042=this[_0x2652bf(0x1a2)]=new o[(_0x2652bf(0x194))]();_0x38a042[_0x2652bf(0x1fb)](o[_0x2652bf(0x1a1)](()=>{_0x1ef6d9['forEach'](_0xca93e4=>_0xca93e4['complete']()),_0x1ef6d9['clear']();})),_0x38a042[_0x2652bf(0x1fb)](this[_0x2652bf(0x1d9)][_0x2652bf(0x122)](_0x180d51=>{var _0x1b9fcc=_0x2652bf,_0x36289b;if(_0x180d51[_0x1b9fcc(0x1e5)]!==o[_0x1b9fcc(0x1f8)][_0x1b9fcc(0x1b2)]||!this[_0x1b9fcc(0x1eb)][_0x1b9fcc(0x148)](_0x180d51['id']))return;const {id:_0x516612}=_0x180d51;let _0x268984;_0x1ef6d9[_0x1b9fcc(0x181)](_0x516612)?_0x268984=_0x1ef6d9[_0x1b9fcc(0x17a)](_0x516612):(_0x268984=new D['Subject'](),_0x1ef6d9['set'](_0x516612,_0x268984),_0x268984[_0x1b9fcc(0x16f)](b[_0x1b9fcc(0x1ab)]((_0x36289b=this[_0x1b9fcc(0x1c4)][_0x1b9fcc(0x1ea)](Z))!=null?_0x36289b:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1b9fcc(0x177)](_0x4061cc=>{var _0xb9c453=_0x1b9fcc;this[_0xb9c453(0x1e9)][_0xb9c453(0x169)]({'eventID':_[_0xb9c453(0x1c7)][_0xb9c453(0x1a4)],'data':{'unitID':this[_0xb9c453(0x160)],'operations':{[_0x4061cc['id']]:{'id':_0x4061cc['id'],'params':JSON[_0xb9c453(0x1cd)](_0x4061cc[_0xb9c453(0x199)])}}}},this['_unitID']);})),_0x268984['next'](_0x180d51);})),this['_liveShareService'][_0x2652bf(0x1a8)](this[_0x2652bf(0x160)])[_0x2652bf(0x1dd)](_0x2b1158=>this[_0x2652bf(0x1e9)][_0x2652bf(0x169)]({'eventID':_[_0x2652bf(0x1c7)][_0x2652bf(0x1a4)],'data':{'unitID':this[_0x2652bf(0x160)],'operations':{[_0x2b1158['id']]:{'id':_0x2b1158['id'],'params':JSON['stringify'](_0x2b1158[_0x2652bf(0x199)])}}}},this[_0x2652bf(0x160)]));}[_0x4a59a4(0x19e)](){var _0x2a5ffb=_0x4a59a4,_0x38f94b;this[_0x2a5ffb(0x1d8)]['next']('idle'),(_0x38f94b=this[_0x2a5ffb(0x1a2)])==null||_0x38f94b[_0x2a5ffb(0x141)](),this[_0x2a5ffb(0x1a2)]=null;}['_startFollowing'](){var _0xc03aac=_0x4a59a4,_0x5402c8;(_0x5402c8=this['_commandDisposable'])==null||_0x5402c8['dispose'](),this[_0xc03aac(0x1d8)][_0xc03aac(0x1d0)]('following');}['_beIdle'](){var _0x5c446c=_0x4a59a4,_0x2b1c3e;this[_0x5c446c(0x1d8)][_0x5c446c(0x1d0)](_0x5c446c(0x1fd)),(_0x2b1c3e=this['_commandDisposable'])==null||_0x2b1c3e[_0x5c446c(0x141)](),this[_0x5c446c(0x1a2)]=null;}[_0x4a59a4(0x164)](){var _0xa3cdc8=_0x4a59a4,_0x34f5de;this[_0xa3cdc8(0x1d8)][_0xa3cdc8(0x1d0)](_0xa3cdc8(0x13a)),(_0x34f5de=this[_0xa3cdc8(0x1a2)])==null||_0x34f5de[_0xa3cdc8(0x141)]();}[_0x4a59a4(0x150)](_0x5256a1){var _0x18c130=_0x4a59a4;if(['presenting',_0x18c130(0x13a),_0x18c130(0x1c2)][_0x18c130(0x1d2)](this[_0x18c130(0x15e)])||!_0x5256a1['data']['presenter']||_0x5256a1[_0x18c130(0x136)][_0x18c130(0x119)]===this[_0x18c130(0x1e9)][_0x18c130(0x191)]())return;this[_0x18c130(0x15e)]==='idle'&&this[_0x18c130(0x17e)]();const _0x5156ed=_0x5256a1[_0x18c130(0x136)][_0x18c130(0x14f)];Object['values'](_0x5156ed)[_0x18c130(0x1dd)](_0xd19eab=>{var _0x191895=_0x18c130;this[_0x191895(0x1d9)][_0x191895(0x1da)](_0xd19eab['id'],_0xd19eab[_0x191895(0x199)]?JSON[_0x191895(0x182)](_0xd19eab[_0x191895(0x199)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x202086=_0x4a59a4,_0x50552b;this[_0x202086(0x1d8)][_0x202086(0x1d0)](_0x202086(0x1c2)),(_0x50552b=this['_commandDisposable'])==null||_0x50552b['dispose']();}[_0x4a59a4(0x1a3)](){var _0x21f376=_0x4a59a4;this['_status$']['next']('idle'),this[_0x21f376(0x17d)]();}},exports[_0x4a59a4(0x16b)]=R([S(0x2,o[_0x4a59a4(0x1b1)]),S(0x3,o['Inject'](O)),S(0x4,o[_0x4a59a4(0x19c)])],exports['LiveShareCoordinator']);function A(){var _0x3ae1bd=_0x4a59a4;const _0x34c07a=p[_0x3ae1bd(0x1af)](exports[_0x3ae1bd(0x197)]),_0xfd9640=p[_0x3ae1bd(0x1af)](o[_0x3ae1bd(0x1d4)]),_0x4e72ea=p[_0x3ae1bd(0x1b5)](()=>_0xfd9640[_0x3ae1bd(0x19d)](o[_0x3ae1bd(0x15f)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x4b5b33,_0x407d53]=f[_0x3ae1bd(0x1ec)](null),[_0x973195,_0x2332c0]=f[_0x3ae1bd(0x1ec)](h[_0x3ae1bd(0x120)]),_0xd3f00=f[_0x3ae1bd(0x1bb)](null);return f[_0x3ae1bd(0x154)](()=>(_0x4e72ea&&_0x34c07a[_0x3ae1bd(0x1ad)](_0x4e72ea[_0x3ae1bd(0x193)]())[_0x3ae1bd(0x159)](_0x429aef=>{var _0x300b36=_0x3ae1bd;_0x407d53(_0x429aef),_0xd3f00[_0x300b36(0x12a)]=_0x429aef[_0x300b36(0x130)][_0x300b36(0x177)](_0x42d916=>{_0x2332c0(_0x42d916);});}),()=>{var _0x2a56c3=_0x3ae1bd,_0x593f9c;(_0x593f9c=_0xd3f00['current'])==null||_0x593f9c[_0x2a56c3(0x11f)](),_0xd3f00[_0x2a56c3(0x12a)]=null;}),[_0x4e72ea,_0x34c07a]),_0x4b5b33?l['jsx'](g[_0x3ae1bd(0x1ac)],{'align':_0x3ae1bd(0x1ee),'disabled':_0x973195===h['OFFLINE'],'className':_0x3ae1bd(0x1ba),'overlay':l[_0x3ae1bd(0x166)](K,{'status':_0x973195,'coordinator':_0x4b5b33}),'children':l['jsx'](_0x3ae1bd(0x13f),{'className':g['clsx'](_0x3ae1bd(0x1fc),{'univer-cursor-not-allowed':_0x973195===h[_0x3ae1bd(0x168)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x973195!==h[_0x3ae1bd(0x168)]}),'type':_0x3ae1bd(0x13f),'children':l[_0x3ae1bd(0x166)](P,{'className':_0x3ae1bd(0x176)})})}):null;}function K(_0xbdcaae){var _0x3a7e39=_0x4a59a4;const {status:_0x115000,coordinator:_0x334762}=_0xbdcaae;switch(_0x115000){case h[_0x3a7e39(0x120)]:return l[_0x3a7e39(0x166)](z,{'coordinator':_0x334762});case h[_0x3a7e39(0x1e2)]:return l[_0x3a7e39(0x166)](Q,{'coordinator':_0x334762});case h['NOT_FOLLOWING']:return l[_0x3a7e39(0x166)](X,{'coordinator':_0x334762});case h[_0x3a7e39(0x168)]:return l['jsx'](te,{});case h['PRESENTING']:return l['jsx'](ee,{'coordinator':_0x334762});default:return null;}}function z(_0x1e73a0){var _0x2ccdad=_0x4a59a4;const {coordinator:_0x2ae7f6}=_0x1e73a0;return l[_0x2ccdad(0x172)](l[_0x2ccdad(0x1db)],{'children':[l[_0x2ccdad(0x166)](_0x2ccdad(0x16e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2ccdad(0x188)}),l['jsx'](g[_0x2ccdad(0x138)],{'onClick':()=>_0x2ae7f6[_0x2ccdad(0x18e)](),'children':_0x2ccdad(0x1f2)})]});}function Q(_0x1248be){var _0x178e89=_0x4a59a4;const {coordinator:_0x41b7be}=_0x1248be;return l[_0x178e89(0x172)](l[_0x178e89(0x1db)],{'children':[l[_0x178e89(0x166)](_0x178e89(0x16e),{'className':_0x178e89(0x161),'children':_0x178e89(0x13e)}),l['jsx'](g['Button'],{'onClick':()=>_0x41b7be[_0x178e89(0x129)](),'children':_0x178e89(0x1f5)})]});}function X(_0x293fc1){var _0x275aff=_0x4a59a4;const {coordinator:_0x1e7906}=_0x293fc1;return l[_0x275aff(0x172)](l['Fragment'],{'children':[l[_0x275aff(0x166)](_0x275aff(0x16e),{'className':_0x275aff(0x161),'children':_0x275aff(0x1f9)}),l['jsx'](g['Button'],{'variant':_0x275aff(0x171),'onClick':()=>_0x1e7906[_0x275aff(0x1f6)](),'children':'Start\x20following'})]});}function ee(_0x337541){var _0x39691d=_0x4a59a4;const {coordinator:_0x3506cc}=_0x337541;return l['jsxs'](l[_0x39691d(0x1db)],{'children':[l['jsx'](_0x39691d(0x16e),{'className':_0x39691d(0x161),'children':_0x39691d(0x18b)}),l['jsx'](g[_0x39691d(0x138)],{'variant':_0x39691d(0x1fa),'onClick':()=>_0x3506cc[_0x39691d(0x12d)](),'children':'Stop\x20presenting'})]});}function te(){var _0xbad970=_0x4a59a4;return l[_0xbad970(0x166)](l['Fragment'],{'children':_0xbad970(0x18d)});}var ie=Object[_0x4a59a4(0x187)],ne=(_0x460fbd,_0x873788,_0x4b226e,_0x1a5d33)=>{for(var _0x1ccf86=_0x1a5d33>0x1?void 0x0:_0x1a5d33?ie(_0x873788,_0x4b226e):_0x873788,_0x2048d6=_0x460fbd['length']-0x1,_0x53c73f;_0x2048d6>=0x0;_0x2048d6--)(_0x53c73f=_0x460fbd[_0x2048d6])&&(_0x1ccf86=_0x53c73f(_0x1ccf86)||_0x1ccf86);return _0x1ccf86;},L=(_0x62ab9e,_0x38b7e9)=>(_0x471175,_0x2466e9)=>_0x38b7e9(_0x471175,_0x2466e9,_0x62ab9e);exports[_0x4a59a4(0x198)]=class extends o['Disposable']{constructor(_0x481eab,_0x55f049){var _0x40e8e7=_0x4a59a4;super(),this[_0x40e8e7(0x1ae)]=_0x481eab,this[_0x40e8e7(0x18a)]=_0x55f049,this[_0x40e8e7(0x155)]();}[_0x4a59a4(0x155)](){var _0x21d1f0=_0x4a59a4;this[_0x21d1f0(0x19f)](this[_0x21d1f0(0x18a)][_0x21d1f0(0x143)](p[_0x21d1f0(0x16c)][_0x21d1f0(0x1b9)],()=>p['connectInjector'](A,this[_0x21d1f0(0x1ae)])));}},exports[_0x4a59a4(0x198)]=ne([L(0x0,o[_0x4a59a4(0x1a7)](o[_0x4a59a4(0x1bd)])),L(0x1,p['IUIPartsService'])],exports[_0x4a59a4(0x198)]);var re=Object[_0x4a59a4(0x1f3)],se=Object[_0x4a59a4(0x187)],oe=(_0x360a04,_0x4b85a4,_0x4072be)=>_0x4b85a4 in _0x360a04?re(_0x360a04,_0x4b85a4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4072be}):_0x360a04[_0x4b85a4]=_0x4072be,ae=(_0x186be6,_0x4ef9e5,_0x3d17f8,_0xb48892)=>{for(var _0x5b5336=_0xb48892>0x1?void 0x0:_0xb48892?se(_0x4ef9e5,_0x3d17f8):_0x4ef9e5,_0xac6562=_0x186be6['length']-0x1,_0x380243;_0xac6562>=0x0;_0xac6562--)(_0x380243=_0x186be6[_0xac6562])&&(_0x5b5336=_0x380243(_0x5b5336)||_0x5b5336);return _0x5b5336;},N=(_0x1f2eef,_0x59121b)=>(_0x24002e,_0x49d088)=>_0x59121b(_0x24002e,_0x49d088,_0x1f2eef),T=(_0x107929,_0x565d85,_0x322a98)=>oe(_0x107929,typeof _0x565d85!=_0x4a59a4(0x1a5)?_0x565d85+'':_0x565d85,_0x322a98);const le='UNIVER_LIVE_SHARE_PLUGIN';exports['UniverLiveSharePlugin']=class extends o[_0x4a59a4(0x16d)]{constructor(_0x4cd7ea=x,_0x4c369b,_0x33d633){var _0xb98633=_0x4a59a4;super(),this[_0xb98633(0x137)]=_0x4cd7ea,this[_0xb98633(0x1ae)]=_0x4c369b,this[_0xb98633(0x1c4)]=_0x33d633;const {..._0x18f62f}=o[_0xb98633(0x1a0)]({},x,this['_config']);this[_0xb98633(0x1c4)][_0xb98633(0x179)]($,_0x18f62f);}[_0x4a59a4(0x15b)](){var _0x1643de=_0x4a59a4;o[_0x1643de(0x17b)](this[_0x1643de(0x1ae)],o[_0x1643de(0x175)]([[O],[exports[_0x1643de(0x197)]],[E],[exports[_0x1643de(0x198)]]],this[_0x1643de(0x137)]['override'])),o[_0x1643de(0x1e3)](this[_0x1643de(0x1ae)],[[E]]);}['onRendered'](){o['touchDependencies'](this['_injector'],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x4a59a4(0x173)],_0x4a59a4(0x1e5),o[_0x4a59a4(0x15f)][_0x4a59a4(0x1ce)]),T(exports[_0x4a59a4(0x173)],'pluginName',le),exports[_0x4a59a4(0x173)]=ae([o['DependentOn'](m['UniverCollaborationClientPlugin']),N(0x1,o['Inject'](o['Injector'])),N(0x2,o[_0x4a59a4(0x1b1)])],exports['UniverLiveSharePlugin']),exports[_0x4a59a4(0x125)]=A,exports[_0x4a59a4(0x13d)]=O,exports[_0x4a59a4(0x178)]=h;
|
|
1
|
+
'use strict';function _0x170a(_0x31eacd,_0x1ebfcb){var _0x29fa99=_0x29fa();return _0x170a=function(_0x170af5,_0x548881){_0x170af5=_0x170af5-0x95;var _0xd09e6d=_0x29fa99[_0x170af5];return _0xd09e6d;},_0x170a(_0x31eacd,_0x1ebfcb);}var _0x16da90=_0x170a;(function(_0x20759c,_0x9d7179){var _0x418070=_0x170a,_0x3b409d=_0x20759c();while(!![]){try{var _0x4f3b83=-parseInt(_0x418070(0xdc))/0x1*(parseInt(_0x418070(0x14b))/0x2)+-parseInt(_0x418070(0xec))/0x3*(-parseInt(_0x418070(0xd9))/0x4)+-parseInt(_0x418070(0xe6))/0x5*(-parseInt(_0x418070(0x152))/0x6)+parseInt(_0x418070(0xf9))/0x7+-parseInt(_0x418070(0x133))/0x8*(parseInt(_0x418070(0xc2))/0x9)+-parseInt(_0x418070(0xeb))/0xa*(-parseInt(_0x418070(0xbf))/0xb)+parseInt(_0x418070(0x167))/0xc*(-parseInt(_0x418070(0x110))/0xd);if(_0x4f3b83===_0x9d7179)break;else _0x3b409d['push'](_0x3b409d['shift']());}catch(_0x35dbb2){_0x3b409d['push'](_0x3b409d['shift']());}}}(_0x29fa,0x66166));var U=Object['defineProperty'],F=(_0x882ed0,_0x50a72b,_0x4916eb)=>_0x50a72b in _0x882ed0?U(_0x882ed0,_0x50a72b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4916eb}):_0x882ed0[_0x50a72b]=_0x4916eb,v=(_0x11e64c,_0x33ec45,_0x25d2ce)=>F(_0x11e64c,typeof _0x33ec45!=_0x16da90(0x16c)?_0x33ec45+'':_0x33ec45,_0x25d2ce);Object[_0x16da90(0x12f)](exports,Symbol[_0x16da90(0x148)],{'value':_0x16da90(0x150)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0x40bcb7=_0x16da90;return u=Object['assign']||function(_0x1feaeb){var _0x18bcdc=_0x170a;for(var _0x411692,_0x5fb292=0x1,_0x4b4cd4=arguments[_0x18bcdc(0xcc)];_0x5fb292<_0x4b4cd4;_0x5fb292++){_0x411692=arguments[_0x5fb292];for(var _0x4b6c46 in _0x411692)Object[_0x18bcdc(0xbe)][_0x18bcdc(0xf2)][_0x18bcdc(0x117)](_0x411692,_0x4b6c46)&&(_0x1feaeb[_0x4b6c46]=_0x411692[_0x4b6c46]);}return _0x1feaeb;},u[_0x40bcb7(0xfb)](this,arguments);},$=function(_0x3619b7,_0x2b8c3a){var _0x3033b6=_0x16da90,_0x307a33={};for(var _0x2b825a in _0x3619b7)Object[_0x3033b6(0xbe)]['hasOwnProperty'][_0x3033b6(0x117)](_0x3619b7,_0x2b825a)&&_0x2b8c3a[_0x3033b6(0x129)](_0x2b825a)<0x0&&(_0x307a33[_0x2b825a]=_0x3619b7[_0x2b825a]);if(_0x3619b7!=null&&typeof Object['getOwnPropertySymbols']==_0x3033b6(0xf5)){for(var _0xb52250=0x0,_0x2b825a=Object[_0x3033b6(0x108)](_0x3619b7);_0xb52250<_0x2b825a[_0x3033b6(0xcc)];_0xb52250++)_0x2b8c3a[_0x3033b6(0x129)](_0x2b825a[_0xb52250])<0x0&&Object[_0x3033b6(0xbe)][_0x3033b6(0x14e)][_0x3033b6(0x117)](_0x3619b7,_0x2b825a[_0xb52250])&&(_0x307a33[_0x2b825a[_0xb52250]]=_0x3619b7[_0x2b825a[_0xb52250]]);}return _0x307a33;},j=f[_0x16da90(0xee)](function(_0x4b4e93,_0x165b7d){var _0xb18d5b=_0x16da90,_0x4d142e=_0x4b4e93[_0xb18d5b(0x134)],_0x2ec1b0=_0x4b4e93['id'],_0x36a5b4=_0x4b4e93[_0xb18d5b(0x158)],_0x470736=_0x4b4e93[_0xb18d5b(0xad)],_0x136f94=$(_0x4b4e93,['icon','id',_0xb18d5b(0x158),_0xb18d5b(0xad)]),_0x507503=_0xb18d5b(0x101)[_0xb18d5b(0x151)](_0x2ec1b0,'\x20')[_0xb18d5b(0x151)](_0x36a5b4||'')[_0xb18d5b(0xd6)](),_0x7229f6=f['useRef']('_'[_0xb18d5b(0x151)](k()));return y(_0x4d142e,''[_0xb18d5b(0x151)](_0x2ec1b0),{'defIds':_0x4d142e[_0xb18d5b(0xda)],'idSuffix':_0x7229f6[_0xb18d5b(0xd4)]},u({'ref':_0x165b7d,'className':_0x507503},_0x136f94),_0x470736);});function y(_0x4c983a,_0x88765b,_0xff6d8d,_0x48b0c5,_0x24f059){var _0x1ce97a=_0x16da90;return f[_0x1ce97a(0x15f)](_0x4c983a[_0x1ce97a(0x9a)],u(u({'key':_0x88765b},H(_0x4c983a,_0xff6d8d,_0x24f059)),_0x48b0c5),(V(_0x4c983a,_0xff6d8d)['children']||[])[_0x1ce97a(0x16e)](function(_0x45deb7,_0x4f962d){var _0x60d4af=_0x1ce97a;return y(_0x45deb7,''[_0x60d4af(0x151)](_0x88765b,'-')[_0x60d4af(0x151)](_0x4c983a['tag'],'-')[_0x60d4af(0x151)](_0x4f962d),_0xff6d8d,void 0x0,_0x24f059);}));}function _0x29fa(){var _0x90cdba=['event$','Module','concat','6aWdPnD','includes','Disposable','_startFollowing','div','PRESENTING','className','throttleTime','getTypeOfUnitDisposed$','Stop\x20presenting','getInitialStates','subscribe','UNIVER_UNKNOWN','createElement','registerDependencies','sheet','CommandType','parse','getMemberID','_beIdle','NOT_FOLLOWING','820884sPZDvx','HEADER_MENU','_configService','text','following','symbol','has','map','pluginName','_handleNewChangeSets','unitId','from','useRef','requireSession','idle','Inject','LIVESHARE_OPERATION','UniverInstanceType','SetScrollOperation','evenodd','OFFLINE','getValue','tag','onCommandExecuted','_stopFollowing','_status','set','operations','override','Injector','params','none','add','values','startFollowing','_handleOffline','init','You\x27re\x20presenting\x20the\x20document','executeCommand','_collabSessionService','mask','extend','_entities','currentColor','registerInitialStateReporter','NEW_CHANGESETS','registerSharedOperation','idSuffix','live-share-icon','_startPresenting','stopFollowing','children','parseProtocolChangeset','then','getCurrentTypeOfUnit$','_commandService','xlink:href','default','prototype','6765FIuKQC','_injector','Fragment','99VFyAcp','get','mutations','DisposableCollection','displayName','send','stringify','CollaborationEvent','IUIPartsService','_sharedOperations','length','IConfigService','attrs','_handleOnline','data','url(#$1','IDLE','LIVESHARE_FETCH_OPERATIONS','current','end','trim','_liveShareService','_init','12436QNCpMJ','defIds','useObservable','8882XMIdfI','not-following','fill','jsxs','http://www.w3.org/2000/svg','forEach','ONLINE','unsubscribe','UNIVER_SHEET','dispose','2766845ZhGLIB','RxDisposable','touchDependencies','univer-mb-3\x20univer-w-full\x20univer-text-sm','SetWorksheetActiveOperation','9150WEOoek','417nuLuLW','_uiPartsService','forwardRef','useState','disposeWithMe','_unitID','hasOwnProperty','merge','LiveShareIcon','function','_config','complete','delete','5341259ATYkuh','use','apply','LIVESHARE_NEW_HOST','dispose$','string','_univerInstanceService','tryStartPresenting','univerjs-icon\x20univerjs-icon-','useEffect','toDisposable','DesktopLiveShareController','LIVESHARE_TERMINATE','asObservable','FOLLOWING','getOwnPropertySymbols','UniverCollaborationClientPlugin','getOwnPropertyDescriptor','shouldShareOperation','replace','UniverLiveSharePlugin','onRendered','takeUntil','143YLfEfc','toString','Plugin','Stop\x20following','_stopPresenting','pipe','jsx','call','You\x27are\x20offline.','offline','_mountLiveShare','substring','assign','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Button','SetZoomRatioOperation','_status$','live-share.config','_collabSession','Present\x20this\x20document','InsertSheetMutation','_handleOperation','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','next','LiveShareController','indexOf','mergeOverrideWithDependencies','UNIVER_LIVE_SHARE_PLUGIN','Start\x20following','getConfig','OPERATION','defineProperty','button','LiveShareCoordinator','_presenter','319256zzqZrB','icon','getUnitId','BuiltInUIPart','status$','IUniverInstanceService','1em','SessionStatus','You\x27re\x20following\x20the\x20presenter','type','setConfig','LiveShare','path','_startLiveShareCoordinator','_handleNewHost','useDependency','_reporters','presenting','_commandDisposable','univer-size-4','getLiveShareCoordinator','toStringTag','clear','stopPresenting','158DXOmFs','_fetchOperations','colorChannel1','propertyIsEnumerable'];_0x29fa=function(){return _0x90cdba;};return _0x29fa();}function H(_0x154e8e,_0x30f8bb,_0x255033){var _0x5d957a=_0x16da90,_0x1d669c=u({},_0x154e8e[_0x5d957a(0xce)]);_0x255033!=null&&_0x255033[_0x5d957a(0x14d)]&&_0x1d669c[_0x5d957a(0xde)]===_0x5d957a(0x14d)&&(_0x1d669c[_0x5d957a(0xde)]=_0x255033[_0x5d957a(0x14d)]),_0x154e8e['tag']==='mask'&&_0x1d669c['id']&&(_0x1d669c['id']=_0x1d669c['id']+_0x30f8bb['idSuffix']),Object['entries'](_0x1d669c)[_0x5d957a(0xe1)](function(_0x55b560){var _0x3d50d5=_0x5d957a,_0x1bf86c=_0x55b560[0x0],_0x504b92=_0x55b560[0x1];_0x1bf86c===_0x3d50d5(0xac)&&typeof _0x504b92=='string'&&(_0x1d669c[_0x1bf86c]=_0x504b92['replace'](/url\(#(.*)\)/,_0x3d50d5(0xd1)[_0x3d50d5(0x151)](_0x30f8bb[_0x3d50d5(0xb3)],')')));});var _0x3bd5fa=_0x30f8bb[_0x5d957a(0xda)];return!_0x3bd5fa||_0x3bd5fa[_0x5d957a(0xcc)]===0x0||(_0x154e8e['tag']===_0x5d957a(0xfa)&&_0x1d669c[_0x5d957a(0xbc)]&&(_0x1d669c[_0x5d957a(0xbc)]=_0x1d669c[_0x5d957a(0xbc)]+_0x30f8bb[_0x5d957a(0xb3)]),Object['entries'](_0x1d669c)['forEach'](function(_0x25a1fb){var _0x278e5b=_0x5d957a,_0x56e56c=_0x25a1fb[0x0],_0x3e7699=_0x25a1fb[0x1];typeof _0x3e7699==_0x278e5b(0xfe)&&(_0x1d669c[_0x56e56c]=_0x3e7699[_0x278e5b(0x10c)](/url\(#(.*)\)/,'url(#$1'[_0x278e5b(0x151)](_0x30f8bb[_0x278e5b(0xb3)],')')));})),_0x1d669c;}function V(_0xcf30af,_0x4c80b6){var _0x1aa7ab=_0x16da90,_0x3d4a57,_0x2cc96d=_0x4c80b6['defIds'];return!_0x2cc96d||_0x2cc96d[_0x1aa7ab(0xcc)]===0x0?_0xcf30af:_0xcf30af[_0x1aa7ab(0x9a)]==='defs'&&(!((_0x3d4a57=_0xcf30af[_0x1aa7ab(0xb7)])===null||_0x3d4a57===void 0x0)&&_0x3d4a57[_0x1aa7ab(0xcc)])?u(u({},_0xcf30af),{'children':_0xcf30af['children']['map'](function(_0x25209f){var _0x2d6634=_0x1aa7ab;return typeof _0x25209f[_0x2d6634(0xce)]['id']==_0x2d6634(0xfe)&&_0x2cc96d&&_0x2cc96d[_0x2d6634(0x153)](_0x25209f['attrs']['id'])?u(u({},_0x25209f),{'attrs':u(u({},_0x25209f[_0x2d6634(0xce)]),{'id':_0x25209f['attrs']['id']+_0x4c80b6[_0x2d6634(0xb3)]})}):_0x25209f;})}):_0xcf30af;}function k(){var _0x436bd9=_0x16da90;return Math['random']()[_0x436bd9(0x111)](0x24)[_0x436bd9(0x11b)](0x2,0x8);}j[_0x16da90(0xc6)]='UniverIcon';var M={'tag':'svg','attrs':{'xmlns':_0x16da90(0xe0),'fill':_0x16da90(0xa3),'viewBox':'0\x200\x2017\x2017','width':_0x16da90(0x139),'height':_0x16da90(0x139)},'children':[{'tag':_0x16da90(0x13f),'attrs':{'fill':_0x16da90(0xaf),'d':_0x16da90(0x126)}},{'tag':_0x16da90(0x13f),'attrs':{'fill':_0x16da90(0xaf),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x16da90(0x97),'clipRule':'evenodd'}}]},P=f[_0x16da90(0xee)](function(_0x4d584f,_0x497a17){var _0x4aa9bc=_0x16da90;return f['createElement'](j,Object[_0x4aa9bc(0x11c)]({},_0x4d584f,{'id':_0x4aa9bc(0xb4),'ref':_0x497a17,'icon':M}));});P[_0x16da90(0xc6)]=_0x16da90(0xf4);class O extends o[_0x16da90(0x154)]{constructor(){var _0x41e160=_0x16da90;super(...arguments),v(this,_0x41e160(0xcb),new Set()),v(this,_0x41e160(0x143),new Set());}[_0x16da90(0xb2)](_0x5f7136){var _0x3b590d=_0x16da90;return this['_sharedOperations']['add'](_0x5f7136),o['toDisposable'](()=>this[_0x3b590d(0xcb)][_0x3b590d(0xf8)](_0x5f7136));}[_0x16da90(0xb0)](_0x35ab2c){var _0x53b9f5=_0x16da90;return this[_0x53b9f5(0x143)][_0x53b9f5(0xa4)](_0x35ab2c),o['toDisposable'](()=>this['_reporters'][_0x53b9f5(0xf8)](_0x35ab2c));}[_0x16da90(0x10b)](_0x22e90c){var _0x4e431c=_0x16da90;return this[_0x4e431c(0xcb)][_0x4e431c(0x16d)](_0x22e90c);}['getInitialStates'](_0x46e15d){var _0x1f9cce=_0x16da90;return Array[_0x1f9cce(0x172)](this['_reporters'])[_0x1f9cce(0x16e)](_0x3330a3=>_0x3330a3(_0x46e15d));}}var q=Object[_0x16da90(0x10a)],R=(_0x153412,_0x1c0dad,_0x382994,_0x571a79)=>{var _0x1218f5=_0x16da90;for(var _0x35aeb0=_0x571a79>0x1?void 0x0:_0x571a79?q(_0x1c0dad,_0x382994):_0x1c0dad,_0x16d5da=_0x153412[_0x1218f5(0xcc)]-0x1,_0xffd128;_0x16d5da>=0x0;_0x16d5da--)(_0xffd128=_0x153412[_0x16d5da])&&(_0x35aeb0=_0xffd128(_0x35aeb0)||_0x35aeb0);return _0x35aeb0;},S=(_0x2983e7,_0x33736f)=>(_0xf4aaeb,_0x102854)=>_0x33736f(_0xf4aaeb,_0x102854,_0x2983e7);exports[_0x16da90(0x128)]=class extends o[_0x16da90(0xe7)]{constructor(_0x257de0,_0x1981f0,_0x50b6b7){var _0x3392fc=_0x16da90;super(),v(this,_0x3392fc(0xae),new Map()),(this[_0x3392fc(0xff)]=_0x257de0,this[_0x3392fc(0xc0)]=_0x1981f0,this[_0x3392fc(0xab)]=_0x50b6b7,this[_0x3392fc(0xd8)]());}async[_0x16da90(0x147)](_0x588503){var _0x1abd45=_0x16da90;return this[_0x1abd45(0xae)]['has'](_0x588503)||await this[_0x1abd45(0x140)](_0x588503),this['_entities'][_0x1abd45(0xc3)](_0x588503);}[_0x16da90(0xd8)](){var _0x292589=_0x16da90;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x292589(0x95)]['UNIVER_SHEET'])[_0x292589(0x115)](b['takeUntil'](this[_0x292589(0xfd)]))['subscribe'](async _0x439956=>{var _0x4a4956=_0x292589;const _0x1f4426=_0x439956[_0x4a4956(0x135)]();this[_0x4a4956(0xae)]['has'](_0x1f4426)||this[_0x4a4956(0x140)](_0x1f4426);}),this['_univerInstanceService'][_0x292589(0x15a)](o['UniverInstanceType'][_0x292589(0xe4)])['pipe'](b['takeUntil'](this[_0x292589(0xfd)]))[_0x292589(0x15d)](_0x2026b5=>{var _0x579f8a=_0x292589;const _0x3a3b69=_0x2026b5['getUnitId'](),_0x3d8785=this['_entities']['get'](_0x3a3b69);_0x3d8785==null||_0x3d8785[_0x579f8a(0xe5)]();});}async[_0x16da90(0x140)](_0xf7685e){var _0x8db7f7=_0x16da90;const _0x443eb9=await this['_collabSessionService'][_0x8db7f7(0x174)](_0xf7685e),_0x259bd8=this[_0x8db7f7(0xc0)]['createInstance'](exports['LiveShareCoordinator'],_0xf7685e,_0x443eb9);return _0x259bd8[_0x8db7f7(0xa8)](),this[_0x8db7f7(0xae)][_0x8db7f7(0x9e)](_0xf7685e,_0x259bd8),_0x259bd8;}},exports[_0x16da90(0x128)]=R([S(0x0,o[_0x16da90(0x138)]),S(0x1,o['Inject'](o[_0x16da90(0xa1)])),S(0x2,o[_0x16da90(0x176)](m['CollaborationSessionService']))],exports[_0x16da90(0x128)]);var h=(_0x150dfd=>(_0x150dfd[_0x16da90(0x98)]=_0x16da90(0x119),_0x150dfd[_0x16da90(0xd2)]=_0x16da90(0x175),_0x150dfd['FOLLOWING']=_0x16da90(0x16b),_0x150dfd[_0x16da90(0x166)]=_0x16da90(0xdd),_0x150dfd['PRESENTING']=_0x16da90(0x144),_0x150dfd))(h||{});const W='SAME_OPERATION_SHARE_INTERVAL',G=0xc8;exports[_0x16da90(0x131)]=class extends o[_0x16da90(0xe7)]{constructor(_0x529d63,_0x1cf0f1,_0x4fc0df,_0x2528a7,_0x460670){var _0x389f1f=_0x16da90;super(),v(this,_0x389f1f(0x120),new w['BehaviorSubject'](_0x389f1f(0x175))),v(this,_0x389f1f(0x137),this[_0x389f1f(0x120)][_0x389f1f(0x106)]()),v(this,_0x389f1f(0xd8),!0x1),v(this,_0x389f1f(0x145),null),v(this,_0x389f1f(0x132),null),(this[_0x389f1f(0xf1)]=_0x529d63,this[_0x389f1f(0x122)]=_0x1cf0f1,this['_configService']=_0x4fc0df,this[_0x389f1f(0xd7)]=_0x2528a7,this[_0x389f1f(0xbb)]=_0x460670);}get[_0x16da90(0x9d)](){var _0x38751e=_0x16da90;return this[_0x38751e(0x120)][_0x38751e(0x99)]();}[_0x16da90(0xe5)](){var _0x557de8=_0x16da90,_0x34adc3;(_0x34adc3=this[_0x557de8(0x145)])==null||_0x34adc3['dispose'](),this[_0x557de8(0x120)][_0x557de8(0x127)]('idle'),this[_0x557de8(0x120)][_0x557de8(0xf7)]();}['init'](){var _0xae3d5=_0x16da90;this[_0xae3d5(0xd8)]||(this['_init']=!0x0,this[_0xae3d5(0x122)]['sessionStatus$'][_0xae3d5(0x115)](b[_0xae3d5(0x10f)](this[_0xae3d5(0xfd)]))[_0xae3d5(0x15d)](_0x4b0b95=>{var _0x417b81=_0xae3d5;switch(_0x4b0b95){case m['SessionStatus'][_0x417b81(0x98)]:this[_0x417b81(0xa7)]();break;case m[_0x417b81(0x13a)][_0x417b81(0xe2)]:this[_0x417b81(0xcf)]();break;}}),this[_0xae3d5(0x122)][_0xae3d5(0x14f)][_0xae3d5(0x115)](b[_0xae3d5(0x10f)](this[_0xae3d5(0xfd)]))[_0xae3d5(0x15d)](_0x260b36=>{var _0x3c6e21=_0xae3d5;const {eventID:_0x23f2ee}=_0x260b36;switch(_0x23f2ee){case _['CollaborationEvent'][_0x3c6e21(0xfc)]:this[_0x3c6e21(0x141)](_0x260b36);break;case _[_0x3c6e21(0xc9)][_0x3c6e21(0x177)]:this[_0x3c6e21(0x125)](_0x260b36);break;case _[_0x3c6e21(0xc9)][_0x3c6e21(0x105)]:this['_handleTerminate']();break;case _[_0x3c6e21(0xc9)][_0x3c6e21(0xb1)]:this[_0x3c6e21(0x170)](_0x260b36);break;}}));}[_0x16da90(0x100)](){var _0x1ead22=_0x16da90;this[_0x1ead22(0x122)][_0x1ead22(0xc7)]({'eventID':_[_0x1ead22(0xc9)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1ead22(0xf1)],'userID':this[_0x1ead22(0x122)][_0x1ead22(0x164)]()}},this[_0x1ead22(0xf1)]);}[_0x16da90(0x14a)](){var _0x25eefd=_0x16da90;this[_0x25eefd(0x9d)]==='presenting'&&(this[_0x25eefd(0x120)][_0x25eefd(0x127)](_0x25eefd(0x175)),this[_0x25eefd(0x122)][_0x25eefd(0xc7)]({'eventID':_[_0x25eefd(0xc9)][_0x25eefd(0x105)],'data':{'unitID':this['_unitID']}},this[_0x25eefd(0xf1)]));}[_0x16da90(0xa6)](){var _0x23ca8b=_0x16da90;this[_0x23ca8b(0x9d)]==='not-following'&&(this['_status$'][_0x23ca8b(0x127)](_0x23ca8b(0x16b)),this[_0x23ca8b(0x155)]());}[_0x16da90(0xb6)](){var _0xfda49b=_0x16da90;this['_status']===_0xfda49b(0x16b)&&this['_stopFollowing']();}[_0x16da90(0x141)](_0x43fe12){var _0x4a700c=_0x16da90;const {presenter:_0x37913a}=_0x43fe12[_0x4a700c(0xd0)],_0x3bff34=this[_0x4a700c(0x122)][_0x4a700c(0x164)]();this[_0x4a700c(0x132)]=_0x37913a,_0x37913a===_0x3bff34?(this['_stopFollowing'](),this[_0x4a700c(0xb5)]()):this[_0x4a700c(0x9d)]!==_0x4a700c(0xdd)&&(this[_0x4a700c(0x114)](),this[_0x4a700c(0x155)]());}[_0x16da90(0x14c)](){var _0x387e83=_0x16da90;const _0x2dd92c={'eventID':_[_0x387e83(0xc9)][_0x387e83(0xd3)]};this[_0x387e83(0x122)][_0x387e83(0xc7)](_0x2dd92c,this[_0x387e83(0xf1)]);}['_handleTerminate'](){var _0x51a231=_0x16da90;this[_0x51a231(0x132)]=null,this[_0x51a231(0x9d)]!==_0x51a231(0x144)&&this[_0x51a231(0x165)]();}[_0x16da90(0x170)](_0xc59aeb){var _0x435cc9=_0x16da90;if(this['_status']===_0x435cc9(0x16b)&&this[_0x435cc9(0x132)]===_0xc59aeb['data']['memberID']){const _0xe078e7=_[_0x435cc9(0xb8)](_0xc59aeb['data'])[_0x435cc9(0xc4)]['reverse']()['find'](_0x4fedbb=>_0x4fedbb['id']===C[_0x435cc9(0x124)]['id']);if(_0xe078e7){const _0x362d8=_0xe078e7[_0x435cc9(0xa2)][_0x435cc9(0x171)],_0x2fa7ce=_0xe078e7[_0x435cc9(0xa2)][_0x435cc9(0x161)]['id'];setTimeout(()=>{var _0x2f943c=_0x435cc9;this['_commandService'][_0x2f943c(0xaa)](C[_0x2f943c(0xea)]['id'],{'unitId':_0x362d8,'subUnitId':_0x2fa7ce},{'fromCollab':!0x0});});}}}[_0x16da90(0xb5)](){var _0x4f1080=_0x16da90;this[_0x4f1080(0x120)][_0x4f1080(0x127)]('presenting');const _0x6a0106=new Map(),_0x14ee7e=this['_commandDisposable']=new o[(_0x4f1080(0xc5))]();_0x14ee7e[_0x4f1080(0xa4)](o[_0x4f1080(0x103)](()=>{var _0x3204ed=_0x4f1080;_0x6a0106[_0x3204ed(0xe1)](_0x293e43=>_0x293e43[_0x3204ed(0xf7)]()),_0x6a0106[_0x3204ed(0x149)]();})),_0x14ee7e['add'](this[_0x4f1080(0xbb)][_0x4f1080(0x9b)](_0x217870=>{var _0x25fb08=_0x4f1080,_0x2bde80;if(_0x217870[_0x25fb08(0x13c)]!==o[_0x25fb08(0x162)][_0x25fb08(0x12e)]||!this[_0x25fb08(0xd7)][_0x25fb08(0x10b)](_0x217870['id']))return;const {id:_0x4a6f94}=_0x217870;let _0x5de429;_0x6a0106[_0x25fb08(0x16d)](_0x4a6f94)?_0x5de429=_0x6a0106[_0x25fb08(0xc3)](_0x4a6f94):(_0x5de429=new w['Subject'](),_0x6a0106[_0x25fb08(0x9e)](_0x4a6f94,_0x5de429),_0x5de429[_0x25fb08(0x115)](b[_0x25fb08(0x159)]((_0x2bde80=this[_0x25fb08(0x169)][_0x25fb08(0x12d)](W))!=null?_0x2bde80:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x25fb08(0x15d)](_0x326143=>{var _0x6ed330=_0x25fb08;this[_0x6ed330(0x122)][_0x6ed330(0xc7)]({'eventID':_[_0x6ed330(0xc9)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x6ed330(0xf1)],'operations':{[_0x326143['id']]:{'id':_0x326143['id'],'params':JSON[_0x6ed330(0xc8)](_0x326143['params'])}}}},this[_0x6ed330(0xf1)]);})),_0x5de429[_0x25fb08(0x127)](_0x217870);})),this[_0x4f1080(0xd7)][_0x4f1080(0x15c)](this[_0x4f1080(0xf1)])[_0x4f1080(0xe1)](_0x2ae9b6=>this['_collabSession']['send']({'eventID':_[_0x4f1080(0xc9)][_0x4f1080(0x177)],'data':{'unitID':this[_0x4f1080(0xf1)],'operations':{[_0x2ae9b6['id']]:{'id':_0x2ae9b6['id'],'params':JSON[_0x4f1080(0xc8)](_0x2ae9b6[_0x4f1080(0xa2)])}}}},this['_unitID']));}[_0x16da90(0x114)](){var _0x2bdecc=_0x16da90,_0x46f4c9;this[_0x2bdecc(0x120)][_0x2bdecc(0x127)](_0x2bdecc(0x175)),(_0x46f4c9=this[_0x2bdecc(0x145)])==null||_0x46f4c9[_0x2bdecc(0xe5)](),this[_0x2bdecc(0x145)]=null;}[_0x16da90(0x155)](){var _0x3d6d5d=_0x16da90,_0x1dc09d;(_0x1dc09d=this['_commandDisposable'])==null||_0x1dc09d[_0x3d6d5d(0xe5)](),this[_0x3d6d5d(0x120)]['next'](_0x3d6d5d(0x16b));}['_beIdle'](){var _0xe9cef8=_0x16da90,_0x44ee4f;this[_0xe9cef8(0x120)][_0xe9cef8(0x127)](_0xe9cef8(0x175)),(_0x44ee4f=this[_0xe9cef8(0x145)])==null||_0x44ee4f[_0xe9cef8(0xe5)](),this[_0xe9cef8(0x145)]=null;}[_0x16da90(0x9c)](){var _0x16132f=_0x16da90,_0x56da22;this[_0x16132f(0x120)][_0x16132f(0x127)](_0x16132f(0xdd)),(_0x56da22=this[_0x16132f(0x145)])==null||_0x56da22[_0x16132f(0xe5)]();}[_0x16da90(0x125)](_0x538031){var _0x4cb0c3=_0x16da90;if([_0x4cb0c3(0x144),_0x4cb0c3(0xdd),_0x4cb0c3(0x119)]['includes'](this['_status'])||!_0x538031[_0x4cb0c3(0xd0)]['presenter']||_0x538031[_0x4cb0c3(0xd0)]['presenter']===this[_0x4cb0c3(0x122)][_0x4cb0c3(0x164)]())return;this[_0x4cb0c3(0x9d)]==='idle'&&this[_0x4cb0c3(0x155)]();const _0x7f796f=_0x538031[_0x4cb0c3(0xd0)][_0x4cb0c3(0x9f)];Object[_0x4cb0c3(0xa5)](_0x7f796f)['forEach'](_0x5f906d=>{var _0x442f23=_0x4cb0c3;this['_commandService'][_0x442f23(0xaa)](_0x5f906d['id'],_0x5f906d[_0x442f23(0xa2)]?JSON[_0x442f23(0x163)](_0x5f906d[_0x442f23(0xa2)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x4d82dc=_0x16da90,_0x28f7fb;this['_status$'][_0x4d82dc(0x127)](_0x4d82dc(0x119)),(_0x28f7fb=this[_0x4d82dc(0x145)])==null||_0x28f7fb[_0x4d82dc(0xe5)]();}['_handleOnline'](){var _0x386396=_0x16da90;this[_0x386396(0x120)][_0x386396(0x127)](_0x386396(0x175)),this[_0x386396(0x14c)]();}},exports[_0x16da90(0x131)]=R([S(0x2,o[_0x16da90(0xcd)]),S(0x3,o[_0x16da90(0x176)](O)),S(0x4,o['ICommandService'])],exports[_0x16da90(0x131)]);function A(){var _0x9225a0=_0x16da90;const _0x2b43da=p[_0x9225a0(0x142)](exports['LiveShareController']),_0x227263=p[_0x9225a0(0x142)](o[_0x9225a0(0x138)]),_0x454a63=p[_0x9225a0(0xdb)](()=>_0x227263[_0x9225a0(0xba)](o[_0x9225a0(0x95)][_0x9225a0(0xe4)]),void 0x0,!0x1,[]),[_0x33782c,_0xa1dd4c]=f[_0x9225a0(0xef)](null),[_0x4c3f66,_0x2a041e]=f['useState'](h[_0x9225a0(0xd2)]),_0x407976=f[_0x9225a0(0x173)](null);return f[_0x9225a0(0x102)](()=>(_0x454a63&&_0x2b43da[_0x9225a0(0x147)](_0x454a63[_0x9225a0(0x135)]())[_0x9225a0(0xb9)](_0x339edc=>{var _0x47c705=_0x9225a0;_0xa1dd4c(_0x339edc),_0x407976[_0x47c705(0xd4)]=_0x339edc['status$'][_0x47c705(0x15d)](_0x58694c=>{_0x2a041e(_0x58694c);});}),()=>{var _0x4c62f1=_0x9225a0,_0x282985;(_0x282985=_0x407976[_0x4c62f1(0xd4)])==null||_0x282985[_0x4c62f1(0xe3)](),_0x407976['current']=null;}),[_0x454a63,_0x2b43da]),_0x33782c?l[_0x9225a0(0x116)](g['Dropdown'],{'align':_0x9225a0(0xd5),'disabled':_0x4c3f66===h[_0x9225a0(0x98)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l['jsx'](B,{'status':_0x4c3f66,'coordinator':_0x33782c}),'children':l[_0x9225a0(0x116)]('button',{'className':g['clsx'](_0x9225a0(0x11d),{'univer-cursor-not-allowed':_0x4c3f66===h[_0x9225a0(0x98)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4c3f66!==h[_0x9225a0(0x98)]}),'type':_0x9225a0(0x130),'children':l[_0x9225a0(0x116)](P,{'className':_0x9225a0(0x146)})})}):null;}function B(_0x1108d8){var _0xaa98e7=_0x16da90;const {status:_0x335f9d,coordinator:_0x3c231e}=_0x1108d8;switch(_0x335f9d){case h[_0xaa98e7(0xd2)]:return l['jsx'](Y,{'coordinator':_0x3c231e});case h[_0xaa98e7(0x107)]:return l[_0xaa98e7(0x116)](Z,{'coordinator':_0x3c231e});case h['NOT_FOLLOWING']:return l['jsx'](J,{'coordinator':_0x3c231e});case h[_0xaa98e7(0x98)]:return l[_0xaa98e7(0x116)](z,{});case h[_0xaa98e7(0x157)]:return l[_0xaa98e7(0x116)](K,{'coordinator':_0x3c231e});default:return null;}}function Y(_0x580d3a){var _0x243d08=_0x16da90;const {coordinator:_0x13295e}=_0x580d3a;return l[_0x243d08(0xdf)](l[_0x243d08(0xc1)],{'children':[l[_0x243d08(0x116)](_0x243d08(0x156),{'className':_0x243d08(0xe9),'children':_0x243d08(0x123)}),l[_0x243d08(0x116)](g['Button'],{'onClick':()=>_0x13295e[_0x243d08(0x100)](),'children':'Start'})]});}function Z(_0x20f472){var _0x248afb=_0x16da90;const {coordinator:_0x59ae46}=_0x20f472;return l['jsxs'](l[_0x248afb(0xc1)],{'children':[l['jsx'](_0x248afb(0x156),{'className':_0x248afb(0xe9),'children':_0x248afb(0x13b)}),l['jsx'](g[_0x248afb(0x11e)],{'onClick':()=>_0x59ae46['stopFollowing'](),'children':_0x248afb(0x113)})]});}function J(_0x418b87){var _0x40263e=_0x16da90;const {coordinator:_0x473159}=_0x418b87;return l[_0x40263e(0xdf)](l[_0x40263e(0xc1)],{'children':[l[_0x40263e(0x116)]('div',{'className':_0x40263e(0xe9),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x40263e(0x116)](g[_0x40263e(0x11e)],{'variant':_0x40263e(0x16a),'onClick':()=>_0x473159[_0x40263e(0xa6)](),'children':_0x40263e(0x12c)})]});}function K(_0x28c6e4){var _0x37ee1b=_0x16da90;const {coordinator:_0x5bddef}=_0x28c6e4;return l[_0x37ee1b(0xdf)](l[_0x37ee1b(0xc1)],{'children':[l[_0x37ee1b(0x116)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x37ee1b(0xa9)}),l[_0x37ee1b(0x116)](g[_0x37ee1b(0x11e)],{'variant':_0x37ee1b(0xbd),'onClick':()=>_0x5bddef[_0x37ee1b(0x14a)](),'children':_0x37ee1b(0x15b)})]});}function z(){var _0x4f0ca7=_0x16da90;return l[_0x4f0ca7(0x116)](l[_0x4f0ca7(0xc1)],{'children':_0x4f0ca7(0x118)});}var Q=Object['getOwnPropertyDescriptor'],X=(_0x580053,_0x20a198,_0x2255e7,_0x503fc8)=>{var _0x35e166=_0x16da90;for(var _0x1924eb=_0x503fc8>0x1?void 0x0:_0x503fc8?Q(_0x20a198,_0x2255e7):_0x20a198,_0x364fe1=_0x580053[_0x35e166(0xcc)]-0x1,_0xb7f2c3;_0x364fe1>=0x0;_0x364fe1--)(_0xb7f2c3=_0x580053[_0x364fe1])&&(_0x1924eb=_0xb7f2c3(_0x1924eb)||_0x1924eb);return _0x1924eb;},x=(_0x584415,_0x143aa3)=>(_0x237ed6,_0x44411b)=>_0x143aa3(_0x237ed6,_0x44411b,_0x584415);exports[_0x16da90(0x104)]=class extends o[_0x16da90(0x154)]{constructor(_0x181a35,_0x5ccebf){var _0x307d20=_0x16da90;super(),this[_0x307d20(0xc0)]=_0x181a35,this[_0x307d20(0xed)]=_0x5ccebf,this['_mountLiveShare']();}[_0x16da90(0x11a)](){var _0x2a9cd9=_0x16da90;this[_0x2a9cd9(0xf0)](this[_0x2a9cd9(0xed)]['registerComponent'](p[_0x2a9cd9(0x136)][_0x2a9cd9(0x168)],()=>p['connectInjector'](A,this['_injector'])));}},exports[_0x16da90(0x104)]=X([x(0x0,o[_0x16da90(0x176)](o[_0x16da90(0xa1)])),x(0x1,p[_0x16da90(0xca)])],exports[_0x16da90(0x104)]);const ee=_0x16da90(0x121),L={};var te=Object[_0x16da90(0x10a)],ie=(_0x1b1667,_0x27e7d0,_0x2c9029,_0x16c9dd)=>{var _0x4c37fd=_0x16da90;for(var _0x590302=_0x16c9dd>0x1?void 0x0:_0x16c9dd?te(_0x27e7d0,_0x2c9029):_0x27e7d0,_0x50a353=_0x1b1667[_0x4c37fd(0xcc)]-0x1,_0x35ec04;_0x50a353>=0x0;_0x50a353--)(_0x35ec04=_0x1b1667[_0x50a353])&&(_0x590302=_0x35ec04(_0x590302)||_0x590302);return _0x590302;},ne=(_0x260f9e,_0x3c18b0)=>(_0x39c007,_0x15b473)=>_0x3c18b0(_0x39c007,_0x15b473,_0x260f9e);let E=class extends o[_0x16da90(0x154)]{constructor(_0x1b1996){var _0x1edb30=_0x16da90;super(),this[_0x1edb30(0xd7)]=_0x1b1996,this[_0x1edb30(0xd8)]();}[_0x16da90(0xd8)](){var _0x5a6d7c=_0x16da90;[D[_0x5a6d7c(0x11f)]['id'],D[_0x5a6d7c(0x96)]['id'],C['SetWorksheetActiveOperation']['id']][_0x5a6d7c(0xe1)](_0x5806d3=>{var _0x310317=_0x5a6d7c;this[_0x310317(0xf0)](this[_0x310317(0xd7)][_0x310317(0xb2)](_0x5806d3));});}};E=ie([ne(0x0,o['Inject'](O))],E);var re=Object[_0x16da90(0x12f)],se=Object[_0x16da90(0x10a)],oe=(_0x3dd234,_0x4234c4,_0x3f9652)=>_0x4234c4 in _0x3dd234?re(_0x3dd234,_0x4234c4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3f9652}):_0x3dd234[_0x4234c4]=_0x3f9652,ae=(_0x4009b2,_0x25acaa,_0x4a3e07,_0x2c0864)=>{var _0x4dff4b=_0x16da90;for(var _0x594878=_0x2c0864>0x1?void 0x0:_0x2c0864?se(_0x25acaa,_0x4a3e07):_0x25acaa,_0x5d97b6=_0x4009b2[_0x4dff4b(0xcc)]-0x1,_0x35ec83;_0x5d97b6>=0x0;_0x5d97b6--)(_0x35ec83=_0x4009b2[_0x5d97b6])&&(_0x594878=_0x35ec83(_0x594878)||_0x594878);return _0x594878;},N=(_0x544bc0,_0x3cd6d8)=>(_0xdb4866,_0x20f054)=>_0x3cd6d8(_0xdb4866,_0x20f054,_0x544bc0),T=(_0x3ab24a,_0xb7ede0,_0x50423b)=>oe(_0x3ab24a,typeof _0xb7ede0!=_0x16da90(0x16c)?_0xb7ede0+'':_0xb7ede0,_0x50423b);const le=_0x16da90(0x12b);exports[_0x16da90(0x10d)]=class extends o[_0x16da90(0x112)]{constructor(_0xe2a302=L,_0x253ada,_0xbf3cb2){var _0x23969f=_0x16da90;super(),this[_0x23969f(0xf6)]=_0xe2a302,this['_injector']=_0x253ada,this[_0x23969f(0x169)]=_0xbf3cb2;const {..._0x86a02f}=o[_0x23969f(0xf3)]({},L,this[_0x23969f(0xf6)]);this[_0x23969f(0x169)][_0x23969f(0x13d)](ee,_0x86a02f);}['onStarting'](){var _0x1a863d=_0x16da90;o[_0x1a863d(0x160)](this[_0x1a863d(0xc0)],o[_0x1a863d(0x12a)]([[O],[exports[_0x1a863d(0x128)]],[E],[exports['DesktopLiveShareController']]],this['_config'][_0x1a863d(0xa0)])),o[_0x1a863d(0xe8)](this[_0x1a863d(0xc0)],[[E]]);}[_0x16da90(0x10e)](){var _0x243253=_0x16da90;o['touchDependencies'](this[_0x243253(0xc0)],[[exports[_0x243253(0x104)]]]);}},T(exports[_0x16da90(0x10d)],_0x16da90(0x13c),o[_0x16da90(0x95)][_0x16da90(0x15e)]),T(exports[_0x16da90(0x10d)],_0x16da90(0x16f),le),exports[_0x16da90(0x10d)]=ae([o['DependentOn'](m[_0x16da90(0x109)]),N(0x1,o[_0x16da90(0x176)](o[_0x16da90(0xa1)])),N(0x2,o[_0x16da90(0xcd)])],exports[_0x16da90(0x10d)]),exports[_0x16da90(0x13e)]=A,exports['LiveShareService']=O,exports['LiveShareStatus']=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x32ae50=_0x5755;(function(_0x8ce006,_0x1c35e7){var _0x2e1d33=_0x5755,_0x57c114=_0x8ce006();while(!![]){try{var _0x1c80ae=-parseInt(_0x2e1d33(0x1c1))/0x1*(parseInt(_0x2e1d33(0x1c4))/0x2)+parseInt(_0x2e1d33(0x142))/0x3*(parseInt(_0x2e1d33(0x159))/0x4)+parseInt(_0x2e1d33(0x1a9))/0x5+parseInt(_0x2e1d33(0x173))/0x6+parseInt(_0x2e1d33(0x1cd))/0x7+-parseInt(_0x2e1d33(0x158))/0x8*(parseInt(_0x2e1d33(0x13e))/0x9)+-parseInt(_0x2e1d33(0x1cc))/0xa*(parseInt(_0x2e1d33(0x156))/0xb);if(_0x1c80ae===_0x1c35e7)break;else _0x57c114['push'](_0x57c114['shift']());}catch(_0x1c0d08){_0x57c114['push'](_0x57c114['shift']());}}}(_0x5c24,0xe2c70));var q=Object['defineProperty'],z=(_0xf2509f,_0x3f768f,_0x3b2295)=>_0x3f768f in _0xf2509f?q(_0xf2509f,_0x3f768f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b2295}):_0xf2509f[_0x3f768f]=_0x3b2295,d=(_0x1bb21f,_0x5653f9,_0x2cde75)=>z(_0x1bb21f,typeof _0x5653f9!=_0x32ae50(0x1c0)?_0x5653f9+'':_0x5653f9,_0x2cde75);import{CollaborationSessionService as _0x2f0736,SessionStatus as _0x5cfaf0,UniverCollaborationClientPlugin as _0x8aa761}from'@univerjs-pro/collaboration-client';import{Disposable as _0x5b5872,toDisposable as _0x3136f3,Inject as _0x41bb1b,IUniverInstanceService as _0xd4edc0,Injector as _0x699545,IConfigService as _0x2a6249,ICommandService as _0x20d4d5,RxDisposable as _0x1193ec,UniverInstanceType as _0x42912a,DisposableCollection as _0x486259,CommandType as _0x3a85bf,DependentOn as _0x4c2423,Plugin as _0xa7a041,merge as _0x370c55,registerDependencies as _0x2e052c,mergeOverrideWithDependencies as _0x55d9f8,touchDependencies as _0x8ed971}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x556f0f,InsertSheetMutation as _0x47ea3c}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x1c6404,SetScrollOperation as _0x39ce24}from'@univerjs/sheets-ui';import{useDependency as _0x156a0a,useObservable as _0x33d8c6,IUIPartsService as _0x56d8c4,BuiltInUIPart as _0x242435,connectInjector as _0x3c7be2}from'@univerjs/ui';import{jsx as _0x562dfe,jsxs as _0x45bad6,Fragment as _0x51e910}from'react/jsx-runtime';import{Dropdown as _0x12d524,clsx as _0x15915a,Button as _0x6f90c7}from'@univerjs/design';import{forwardRef as _0x3aa4c6,useRef as _0xdada33,createElement as _0xe34dc0,useState as _0x4a8222,useEffect as _0x42fc52}from'react';import{CollaborationEvent as _0x59c816,parseProtocolChangeset as _0xe3adee}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x3e5eba,Subject as _0x866c38}from'rxjs';import{takeUntil as _0x2eb9a2,throttleTime as _0x487f7d}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x5b5872{constructor(){var _0x2113f6=_0x32ae50;super(...arguments),d(this,_0x2113f6(0x195),new Set()),d(this,_0x2113f6(0x192),new Set());}[_0x32ae50(0x1b1)](_0x1ea5e2){var _0x4a44b4=_0x32ae50;return this[_0x4a44b4(0x195)][_0x4a44b4(0x14f)](_0x1ea5e2),_0x3136f3(()=>this['_sharedOperations'][_0x4a44b4(0x1be)](_0x1ea5e2));}['registerInitialStateReporter'](_0xea9cc8){var _0x577583=_0x32ae50;return this[_0x577583(0x192)][_0x577583(0x14f)](_0xea9cc8),_0x3136f3(()=>this[_0x577583(0x192)]['delete'](_0xea9cc8));}['shouldShareOperation'](_0x3db482){var _0x1e015c=_0x32ae50;return this[_0x1e015c(0x195)][_0x1e015c(0x1c2)](_0x3db482);}['getInitialStates'](_0x2082d7){var _0x422d4a=_0x32ae50;return Array[_0x422d4a(0x1ec)](this['_reporters'])[_0x422d4a(0x141)](_0x3f2b52=>_0x3f2b52(_0x2082d7));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x37c372,_0xa0f671,_0x5e3d90,_0x3c1115)=>{var _0x5e0fff=_0x32ae50;for(var _0x5b214f=_0x3c1115>0x1?void 0x0:_0x3c1115?Ee(_0xa0f671,_0x5e3d90):_0xa0f671,_0x7ea82d=_0x37c372[_0x5e0fff(0x1a7)]-0x1,_0x1c7312;_0x7ea82d>=0x0;_0x7ea82d--)(_0x1c7312=_0x37c372[_0x7ea82d])&&(_0x5b214f=_0x1c7312(_0x5b214f)||_0x5b214f);return _0x5b214f;},Ne=(_0x4ce89e,_0x5dcbb1)=>(_0x286e4a,_0x1a116e)=>_0x5dcbb1(_0x286e4a,_0x1a116e,_0x4ce89e);let m=class extends _0x5b5872{constructor(_0x57f8e7){var _0x2e3d91=_0x32ae50;super(),this[_0x2e3d91(0x15b)]=_0x57f8e7,this[_0x2e3d91(0x188)]();}[_0x32ae50(0x188)](){[_0x1c6404['id'],_0x39ce24['id'],_0x556f0f['id']]['forEach'](_0x20d061=>{var _0x1feccf=_0x5755;this['disposeWithMe'](this['_liveShareService'][_0x1feccf(0x1b1)](_0x20d061));});}};m=we([Ne(0x0,_0x41bb1b(L))],m);var c=function(){var _0x1491ea=_0x32ae50;return c=Object[_0x1491ea(0x1ce)]||function(_0x12c76e){var _0x49ddd7=_0x1491ea;for(var _0x2214de,_0x54f82d=0x1,_0x14ecde=arguments[_0x49ddd7(0x1a7)];_0x54f82d<_0x14ecde;_0x54f82d++){_0x2214de=arguments[_0x54f82d];for(var _0x3362d1 in _0x2214de)Object[_0x49ddd7(0x1d3)][_0x49ddd7(0x1d1)]['call'](_0x2214de,_0x3362d1)&&(_0x12c76e[_0x3362d1]=_0x2214de[_0x3362d1]);}return _0x12c76e;},c['apply'](this,arguments);},Ce=function(_0xebf120,_0x332644){var _0xf5d1a0=_0x32ae50,_0x38f929={};for(var _0x189b45 in _0xebf120)Object[_0xf5d1a0(0x1d3)][_0xf5d1a0(0x1d1)][_0xf5d1a0(0x13b)](_0xebf120,_0x189b45)&&_0x332644[_0xf5d1a0(0x1cf)](_0x189b45)<0x0&&(_0x38f929[_0x189b45]=_0xebf120[_0x189b45]);if(_0xebf120!=null&&typeof Object[_0xf5d1a0(0x1da)]=='function'){for(var _0x28e99b=0x0,_0x189b45=Object[_0xf5d1a0(0x1da)](_0xebf120);_0x28e99b<_0x189b45[_0xf5d1a0(0x1a7)];_0x28e99b++)_0x332644[_0xf5d1a0(0x1cf)](_0x189b45[_0x28e99b])<0x0&&Object[_0xf5d1a0(0x1d3)]['propertyIsEnumerable'][_0xf5d1a0(0x13b)](_0xebf120,_0x189b45[_0x28e99b])&&(_0x38f929[_0x189b45[_0x28e99b]]=_0xebf120[_0x189b45[_0x28e99b]]);}return _0x38f929;},W=_0x3aa4c6(function(_0x104781,_0x48a931){var _0x183a70=_0x32ae50,_0x100506=_0x104781[_0x183a70(0x181)],_0x220a69=_0x104781['id'],_0x3d232b=_0x104781[_0x183a70(0x14d)],_0x45b96c=_0x104781[_0x183a70(0x1a5)],_0x2bf3ee=Ce(_0x104781,[_0x183a70(0x181),'id',_0x183a70(0x14d),'extend']),_0x1b8213=_0x183a70(0x14a)['concat'](_0x220a69,'\x20')[_0x183a70(0x1a6)](_0x3d232b||'')['trim'](),_0x38984e=_0xdada33('_'[_0x183a70(0x1a6)](Le()));return Y(_0x100506,''[_0x183a70(0x1a6)](_0x220a69),{'defIds':_0x100506[_0x183a70(0x164)],'idSuffix':_0x38984e[_0x183a70(0x157)]},c({'ref':_0x48a931,'className':_0x1b8213},_0x2bf3ee),_0x45b96c);});function Y(_0x32a514,_0x4fd550,_0x3a2ff1,_0x5b60d2,_0x504443){var _0x3a6cee=_0x32ae50;return _0xe34dc0(_0x32a514[_0x3a6cee(0x1b6)],c(c({'key':_0x4fd550},De(_0x32a514,_0x3a2ff1,_0x504443)),_0x5b60d2),(xe(_0x32a514,_0x3a2ff1)[_0x3a6cee(0x19c)]||[])['map'](function(_0x1bcc38,_0x4db660){var _0xfa7910=_0x3a6cee;return Y(_0x1bcc38,''[_0xfa7910(0x1a6)](_0x4fd550,'-')['concat'](_0x32a514[_0xfa7910(0x1b6)],'-')[_0xfa7910(0x1a6)](_0x4db660),_0x3a2ff1,void 0x0,_0x504443);}));}function De(_0x5d7ff5,_0x128069,_0x3d76b9){var _0x16647f=_0x32ae50,_0x192051=c({},_0x5d7ff5[_0x16647f(0x1a0)]);_0x3d76b9!=null&&_0x3d76b9[_0x16647f(0x174)]&&_0x192051['fill']===_0x16647f(0x174)&&(_0x192051[_0x16647f(0x1d8)]=_0x3d76b9[_0x16647f(0x174)]),_0x5d7ff5[_0x16647f(0x1b6)]===_0x16647f(0x1c7)&&_0x192051['id']&&(_0x192051['id']=_0x192051['id']+_0x128069[_0x16647f(0x14b)]),Object[_0x16647f(0x1b9)](_0x192051)[_0x16647f(0x1bd)](function(_0x4c11d0){var _0x1fab36=_0x16647f,_0x497a13=_0x4c11d0[0x0],_0x1c03ed=_0x4c11d0[0x1];_0x497a13==='mask'&&typeof _0x1c03ed==_0x1fab36(0x1ac)&&(_0x192051[_0x497a13]=_0x1c03ed[_0x1fab36(0x1a2)](/url\(#(.*)\)/,_0x1fab36(0x171)[_0x1fab36(0x1a6)](_0x128069[_0x1fab36(0x14b)],')')));});var _0x53efab=_0x128069[_0x16647f(0x164)];return!_0x53efab||_0x53efab[_0x16647f(0x1a7)]===0x0||(_0x5d7ff5[_0x16647f(0x1b6)]===_0x16647f(0x193)&&_0x192051[_0x16647f(0x18a)]&&(_0x192051['xlink:href']=_0x192051[_0x16647f(0x18a)]+_0x128069[_0x16647f(0x14b)]),Object['entries'](_0x192051)[_0x16647f(0x1bd)](function(_0x22fc0c){var _0x1b5e97=_0x16647f,_0x3439c9=_0x22fc0c[0x0],_0x11db37=_0x22fc0c[0x1];typeof _0x11db37=='string'&&(_0x192051[_0x3439c9]=_0x11db37['replace'](/url\(#(.*)\)/,_0x1b5e97(0x171)[_0x1b5e97(0x1a6)](_0x128069[_0x1b5e97(0x14b)],')')));})),_0x192051;}function xe(_0x4d0af7,_0x35fc31){var _0x1f91fb=_0x32ae50,_0x380690,_0x393217=_0x35fc31[_0x1f91fb(0x164)];return!_0x393217||_0x393217[_0x1f91fb(0x1a7)]===0x0?_0x4d0af7:_0x4d0af7[_0x1f91fb(0x1b6)]===_0x1f91fb(0x1a1)&&(!((_0x380690=_0x4d0af7[_0x1f91fb(0x19c)])===null||_0x380690===void 0x0)&&_0x380690[_0x1f91fb(0x1a7)])?c(c({},_0x4d0af7),{'children':_0x4d0af7[_0x1f91fb(0x19c)][_0x1f91fb(0x141)](function(_0x15f251){var _0x336d31=_0x1f91fb;return typeof _0x15f251[_0x336d31(0x1a0)]['id']==_0x336d31(0x1ac)&&_0x393217&&_0x393217[_0x336d31(0x18c)](_0x15f251['attrs']['id'])?c(c({},_0x15f251),{'attrs':c(c({},_0x15f251['attrs']),{'id':_0x15f251['attrs']['id']+_0x35fc31['idSuffix']})}):_0x15f251;})}):_0x4d0af7;}function Le(){var _0x1acd77=_0x32ae50;return Math[_0x1acd77(0x153)]()[_0x1acd77(0x1df)](0x24)[_0x1acd77(0x144)](0x2,0x8);}W['displayName']=_0x32ae50(0x16b);var ye={'tag':_0x32ae50(0x1ea),'attrs':{'xmlns':_0x32ae50(0x1ad),'fill':_0x32ae50(0x1e5),'viewBox':_0x32ae50(0x16d),'width':'1em','height':_0x32ae50(0x1d0)},'children':[{'tag':_0x32ae50(0x1b2),'attrs':{'fill':_0x32ae50(0x163),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x32ae50(0x1b2),'attrs':{'fill':_0x32ae50(0x163),'d':_0x32ae50(0x197),'fillRule':_0x32ae50(0x182),'clipRule':_0x32ae50(0x182)}}]},B=_0x3aa4c6(function(_0x844720,_0x27c2bd){return _0xe34dc0(W,Object['assign']({},_0x844720,{'id':'live-share-icon','ref':_0x27c2bd,'icon':ye}));});B[_0x32ae50(0x19b)]=_0x32ae50(0x1e1);function _0x5755(_0x44141c,_0x2d9484){var _0x5c248c=_0x5c24();return _0x5755=function(_0x5755ec,_0x3327fc){_0x5755ec=_0x5755ec-0x136;var _0x15b150=_0x5c248c[_0x5755ec];return _0x15b150;},_0x5755(_0x44141c,_0x2d9484);}var Re=Object[_0x32ae50(0x1b7)],Z=(_0x151416,_0x149f00,_0x5dc97b,_0x7ea06a)=>{var _0xd43e8f=_0x32ae50;for(var _0x2f8bcc=_0x7ea06a>0x1?void 0x0:_0x7ea06a?Re(_0x149f00,_0x5dc97b):_0x149f00,_0x5b7a26=_0x151416[_0xd43e8f(0x1a7)]-0x1,_0x534e0a;_0x5b7a26>=0x0;_0x5b7a26--)(_0x534e0a=_0x151416[_0x5b7a26])&&(_0x2f8bcc=_0x534e0a(_0x2f8bcc)||_0x2f8bcc);return _0x2f8bcc;},f=(_0x55b9cc,_0x489921)=>(_0xafcc7f,_0x4836f0)=>_0x489921(_0xafcc7f,_0x4836f0,_0x55b9cc);let I=class extends _0x1193ec{constructor(_0x36581d,_0x3bc261,_0x53965a){var _0x2b2f11=_0x32ae50;super(),d(this,_0x2b2f11(0x15f),new Map()),(this['_univerInstanceService']=_0x36581d,this['_injector']=_0x3bc261,this[_0x2b2f11(0x1bb)]=_0x53965a,this[_0x2b2f11(0x188)]());}async[_0x32ae50(0x176)](_0x35681c){var _0xe67912=_0x32ae50;return this[_0xe67912(0x15f)][_0xe67912(0x1c2)](_0x35681c)||await this['_startLiveShareCoordinator'](_0x35681c),this[_0xe67912(0x15f)][_0xe67912(0x17c)](_0x35681c);}[_0x32ae50(0x188)](){var _0x161d49=_0x32ae50;this[_0x161d49(0x1ae)][_0x161d49(0x14c)](_0x42912a[_0x161d49(0x190)])[_0x161d49(0x1d6)](_0x2eb9a2(this[_0x161d49(0x1dd)]))[_0x161d49(0x19d)](async _0x44229c=>{var _0x6d4b7a=_0x161d49;const _0x2c46b5=_0x44229c[_0x6d4b7a(0x169)]();this[_0x6d4b7a(0x15f)][_0x6d4b7a(0x1c2)](_0x2c46b5)||this[_0x6d4b7a(0x1b4)](_0x2c46b5);}),this[_0x161d49(0x1ae)][_0x161d49(0x1dc)](_0x42912a['UNIVER_SHEET'])[_0x161d49(0x1d6)](_0x2eb9a2(this['dispose$']))['subscribe'](_0xbe83cd=>{var _0x161974=_0x161d49;const _0x5503c4=_0xbe83cd[_0x161974(0x169)](),_0x23cf07=this[_0x161974(0x15f)][_0x161974(0x17c)](_0x5503c4);_0x23cf07==null||_0x23cf07[_0x161974(0x175)]();});}async[_0x32ae50(0x1b4)](_0x16570c){var _0xfaffc6=_0x32ae50;const _0xf9ff8f=await this[_0xfaffc6(0x1bb)][_0xfaffc6(0x18b)](_0x16570c),_0xeae2c1=this[_0xfaffc6(0x1c8)]['createInstance'](C,_0x16570c,_0xf9ff8f);return _0xeae2c1[_0xfaffc6(0x183)](),this[_0xfaffc6(0x15f)][_0xfaffc6(0x1e6)](_0x16570c,_0xeae2c1),_0xeae2c1;}};I=Z([f(0x0,_0xd4edc0),f(0x1,_0x41bb1b(_0x699545)),f(0x2,_0x41bb1b(_0x2f0736))],I);var h=(_0x43ab39=>(_0x43ab39[_0x32ae50(0x19a)]=_0x32ae50(0x1cb),_0x43ab39[_0x32ae50(0x1e4)]=_0x32ae50(0x1e9),_0x43ab39[_0x32ae50(0x1d4)]=_0x32ae50(0x19f),_0x43ab39['NOT_FOLLOWING']=_0x32ae50(0x160),_0x43ab39[_0x32ae50(0x1e3)]='presenting',_0x43ab39))(h||{});const Pe=_0x32ae50(0x177),Ae=0xc8;let C=class extends _0x1193ec{constructor(_0x5df433,_0x54ee2b,_0x4a950c,_0x4a1d9d,_0xba94cd){var _0x397b5b=_0x32ae50;super(),d(this,'_status$',new _0x3e5eba('idle')),d(this,_0x397b5b(0x191),this[_0x397b5b(0x1a8)][_0x397b5b(0x13c)]()),d(this,_0x397b5b(0x188),!0x1),d(this,'_commandDisposable',null),d(this,_0x397b5b(0x1c5),null),(this['_unitID']=_0x5df433,this[_0x397b5b(0x155)]=_0x54ee2b,this[_0x397b5b(0x186)]=_0x4a950c,this[_0x397b5b(0x15b)]=_0x4a1d9d,this[_0x397b5b(0x162)]=_0xba94cd);}get[_0x32ae50(0x15a)](){var _0x2dfee5=_0x32ae50;return this[_0x2dfee5(0x1a8)][_0x2dfee5(0x19e)]();}[_0x32ae50(0x175)](){var _0x2be03c=_0x32ae50,_0x311b6d;(_0x311b6d=this['_commandDisposable'])==null||_0x311b6d[_0x2be03c(0x175)](),this[_0x2be03c(0x1a8)]['next'](_0x2be03c(0x1e9)),this[_0x2be03c(0x1a8)][_0x2be03c(0x1d5)]();}['init'](){var _0x149d38=_0x32ae50;this[_0x149d38(0x188)]||(this[_0x149d38(0x188)]=!0x0,this['_collabSession'][_0x149d38(0x1a3)][_0x149d38(0x1d6)](_0x2eb9a2(this[_0x149d38(0x1dd)]))['subscribe'](_0x367267=>{var _0x5162a7=_0x149d38;switch(_0x367267){case _0x5cfaf0[_0x5162a7(0x19a)]:this[_0x5162a7(0x1eb)]();break;case _0x5cfaf0[_0x5162a7(0x172)]:this[_0x5162a7(0x1ab)]();break;}}),this['_collabSession'][_0x149d38(0x17f)][_0x149d38(0x1d6)](_0x2eb9a2(this[_0x149d38(0x1dd)]))[_0x149d38(0x19d)](_0x59a657=>{var _0x16b2eb=_0x149d38;const {eventID:_0x28eb1b}=_0x59a657;switch(_0x28eb1b){case _0x59c816[_0x16b2eb(0x1b8)]:this['_handleNewHost'](_0x59a657);break;case _0x59c816[_0x16b2eb(0x16a)]:this[_0x16b2eb(0x184)](_0x59a657);break;case _0x59c816[_0x16b2eb(0x161)]:this['_handleTerminate']();break;case _0x59c816[_0x16b2eb(0x1aa)]:this[_0x16b2eb(0x1c9)](_0x59a657);break;}}));}[_0x32ae50(0x170)](){var _0xf4b5e5=_0x32ae50;this['_collabSession']['send']({'eventID':_0x59c816['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0xf4b5e5(0x155)][_0xf4b5e5(0x13f)]()}},this[_0xf4b5e5(0x1e8)]);}[_0x32ae50(0x187)](){var _0x337dfe=_0x32ae50;this['_status']===_0x337dfe(0x1d9)&&(this['_status$'][_0x337dfe(0x154)](_0x337dfe(0x1e9)),this[_0x337dfe(0x155)][_0x337dfe(0x13d)]({'eventID':_0x59c816[_0x337dfe(0x161)],'data':{'unitID':this[_0x337dfe(0x1e8)]}},this[_0x337dfe(0x1e8)]));}['startFollowing'](){var _0x5be2bf=_0x32ae50;this[_0x5be2bf(0x15a)]==='not-following'&&(this[_0x5be2bf(0x1a8)]['next'](_0x5be2bf(0x19f)),this[_0x5be2bf(0x137)]());}[_0x32ae50(0x15e)](){var _0xfc4178=_0x32ae50;this[_0xfc4178(0x15a)]==='following'&&this[_0xfc4178(0x189)]();}[_0x32ae50(0x166)](_0x3edbd3){var _0x3c7726=_0x32ae50;const {presenter:_0x1f1d9e}=_0x3edbd3[_0x3c7726(0x1a4)],_0x1f12be=this[_0x3c7726(0x155)][_0x3c7726(0x13f)]();this[_0x3c7726(0x1c5)]=_0x1f1d9e,_0x1f1d9e===_0x1f12be?(this[_0x3c7726(0x189)](),this[_0x3c7726(0x179)]()):this['_status']!==_0x3c7726(0x160)&&(this[_0x3c7726(0x1af)](),this['_startFollowing']());}[_0x32ae50(0x148)](){var _0x3fa08f=_0x32ae50;const _0x58be42={'eventID':_0x59c816[_0x3fa08f(0x136)]};this[_0x3fa08f(0x155)][_0x3fa08f(0x13d)](_0x58be42,this['_unitID']);}[_0x32ae50(0x180)](){var _0x24d51f=_0x32ae50;this['_presenter']=null,this['_status']!==_0x24d51f(0x1d9)&&this[_0x24d51f(0x13a)]();}[_0x32ae50(0x1c9)](_0x2a856a){var _0x292b80=_0x32ae50;if(this[_0x292b80(0x15a)]==='following'&&this[_0x292b80(0x1c5)]===_0x2a856a[_0x292b80(0x1a4)][_0x292b80(0x199)]){const _0x12ba99=_0xe3adee(_0x2a856a[_0x292b80(0x1a4)])[_0x292b80(0x185)][_0x292b80(0x198)]()[_0x292b80(0x1e2)](_0x3f9f80=>_0x3f9f80['id']===_0x47ea3c['id']);if(_0x12ba99){const _0x436ec1=_0x12ba99[_0x292b80(0x1b0)][_0x292b80(0x194)],_0x3798b1=_0x12ba99[_0x292b80(0x1b0)][_0x292b80(0x165)]['id'];setTimeout(()=>{var _0x5e833e=_0x292b80;this[_0x5e833e(0x162)][_0x5e833e(0x151)](_0x556f0f['id'],{'unitId':_0x436ec1,'subUnitId':_0x3798b1},{'fromCollab':!0x0});});}}}[_0x32ae50(0x179)](){var _0x4ed13f=_0x32ae50;this['_status$'][_0x4ed13f(0x154)](_0x4ed13f(0x1d9));const _0x50e751=new Map(),_0x6a423c=this['_commandDisposable']=new _0x486259();_0x6a423c['add'](_0x3136f3(()=>{var _0x3f5abc=_0x4ed13f;_0x50e751[_0x3f5abc(0x1bd)](_0xf7ae9b=>_0xf7ae9b['complete']()),_0x50e751['clear']();})),_0x6a423c[_0x4ed13f(0x14f)](this[_0x4ed13f(0x162)][_0x4ed13f(0x149)](_0x39b618=>{var _0x330a13=_0x4ed13f,_0x2f1fbf;if(_0x39b618[_0x330a13(0x1d2)]!==_0x3a85bf['OPERATION']||!this[_0x330a13(0x15b)][_0x330a13(0x1bf)](_0x39b618['id']))return;const {id:_0x46c762}=_0x39b618;let _0x53ae1c;_0x50e751[_0x330a13(0x1c2)](_0x46c762)?_0x53ae1c=_0x50e751[_0x330a13(0x17c)](_0x46c762):(_0x53ae1c=new _0x866c38(),_0x50e751['set'](_0x46c762,_0x53ae1c),_0x53ae1c[_0x330a13(0x1d6)](_0x487f7d((_0x2f1fbf=this[_0x330a13(0x186)][_0x330a13(0x168)](Pe))!=null?_0x2f1fbf:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x330a13(0x19d)](_0x2ea5dc=>{var _0xcc4d22=_0x330a13;this[_0xcc4d22(0x155)][_0xcc4d22(0x13d)]({'eventID':_0x59c816[_0xcc4d22(0x16a)],'data':{'unitID':this[_0xcc4d22(0x1e8)],'operations':{[_0x2ea5dc['id']]:{'id':_0x2ea5dc['id'],'params':JSON[_0xcc4d22(0x1e0)](_0x2ea5dc['params'])}}}},this['_unitID']);})),_0x53ae1c[_0x330a13(0x154)](_0x39b618);})),this['_liveShareService'][_0x4ed13f(0x1ca)](this[_0x4ed13f(0x1e8)])[_0x4ed13f(0x1bd)](_0x27404c=>this[_0x4ed13f(0x155)]['send']({'eventID':_0x59c816[_0x4ed13f(0x16a)],'data':{'unitID':this[_0x4ed13f(0x1e8)],'operations':{[_0x27404c['id']]:{'id':_0x27404c['id'],'params':JSON[_0x4ed13f(0x1e0)](_0x27404c[_0x4ed13f(0x1b0)])}}}},this['_unitID']));}[_0x32ae50(0x1af)](){var _0x5db53c=_0x32ae50,_0x527b34;this[_0x5db53c(0x1a8)]['next']('idle'),(_0x527b34=this[_0x5db53c(0x1bc)])==null||_0x527b34['dispose'](),this[_0x5db53c(0x1bc)]=null;}[_0x32ae50(0x137)](){var _0x5a7887=_0x32ae50,_0x1ed7d0;(_0x1ed7d0=this[_0x5a7887(0x1bc)])==null||_0x1ed7d0[_0x5a7887(0x175)](),this[_0x5a7887(0x1a8)][_0x5a7887(0x154)](_0x5a7887(0x19f));}['_beIdle'](){var _0x45424d=_0x32ae50,_0x24ad61;this[_0x45424d(0x1a8)][_0x45424d(0x154)]('idle'),(_0x24ad61=this[_0x45424d(0x1bc)])==null||_0x24ad61['dispose'](),this[_0x45424d(0x1bc)]=null;}[_0x32ae50(0x189)](){var _0x30b65d=_0x32ae50,_0x4c5092;this['_status$'][_0x30b65d(0x154)](_0x30b65d(0x160)),(_0x4c5092=this[_0x30b65d(0x1bc)])==null||_0x4c5092['dispose']();}[_0x32ae50(0x184)](_0x1dece2){var _0x108663=_0x32ae50;if([_0x108663(0x1d9),_0x108663(0x160),'offline'][_0x108663(0x18c)](this['_status'])||!_0x1dece2[_0x108663(0x1a4)][_0x108663(0x15c)]||_0x1dece2[_0x108663(0x1a4)][_0x108663(0x15c)]===this[_0x108663(0x155)][_0x108663(0x13f)]())return;this[_0x108663(0x15a)]===_0x108663(0x1e9)&&this['_startFollowing']();const _0x196d2b=_0x1dece2['data'][_0x108663(0x152)];Object[_0x108663(0x17e)](_0x196d2b)[_0x108663(0x1bd)](_0x3e8839=>{var _0x1a9b8c=_0x108663;this[_0x1a9b8c(0x162)][_0x1a9b8c(0x151)](_0x3e8839['id'],_0x3e8839[_0x1a9b8c(0x1b0)]?JSON[_0x1a9b8c(0x16f)](_0x3e8839['params']):null,{'fromCollab':!0x0});});}[_0x32ae50(0x1eb)](){var _0x577a0e=_0x32ae50,_0x2c677f;this[_0x577a0e(0x1a8)][_0x577a0e(0x154)](_0x577a0e(0x1cb)),(_0x2c677f=this[_0x577a0e(0x1bc)])==null||_0x2c677f[_0x577a0e(0x175)]();}[_0x32ae50(0x1ab)](){var _0x8c966e=_0x32ae50;this[_0x8c966e(0x1a8)][_0x8c966e(0x154)](_0x8c966e(0x1e9)),this[_0x8c966e(0x148)]();}};function _0x5c24(){var _0x3337d2=['memberID','OFFLINE','displayName','children','subscribe','getValue','following','attrs','defs','replace','sessionStatus$','data','extend','concat','length','_status$','2445885lIzKkt','NEW_CHANGESETS','_handleOnline','string','http://www.w3.org/2000/svg','_univerInstanceService','_stopPresenting','params','registerSharedOperation','path','univer-size-4','_startLiveShareCoordinator','You\x27are\x20offline.','tag','getOwnPropertyDescriptor','LIVESHARE_NEW_HOST','entries','onRendered','_collabSessionService','_commandDisposable','forEach','delete','shouldShareOperation','symbol','46787hxepmc','has','Stop\x20following','34XsPisL','_presenter','end','mask','_injector','_handleNewChangeSets','getInitialStates','offline','25762570luceBV','12162087VUCAFK','assign','indexOf','1em','hasOwnProperty','type','prototype','FOLLOWING','complete','pipe','You\x27re\x20not\x20following\x20the\x20presenter','fill','presenting','getOwnPropertySymbols','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','getTypeOfUnitDisposed$','dispose$','univer-mb-3\x20univer-w-full\x20univer-text-sm','toString','stringify','LiveShareIcon','find','PRESENTING','IDLE','none','set','defineProperty','_unitID','idle','svg','_handleOffline','from','NOT_FOLLOWING','LIVESHARE_FETCH_OPERATIONS','_startFollowing','disposeWithMe','onStarting','_beIdle','call','asObservable','send','63kBIoGv','getMemberID','setConfig','map','3lTcani','startFollowing','substring','HEADER_MENU','UNIVER_LIVE_SHARE_PLUGIN','_uiPartsService','_fetchOperations','onCommandExecuted','univerjs-icon\x20univerjs-icon-','idSuffix','getTypeOfUnitAdded$','className','unsubscribe','add','Start','executeCommand','operations','random','next','_collabSession','11MICyxO','current','1051960ZXOMnb','5540092TqFazT','_status','_liveShareService','presenter','You\x27re\x20presenting\x20the\x20document','stopFollowing','_entities','not-following','LIVESHARE_TERMINATE','_commandService','currentColor','defIds','sheet','_handleNewHost','then','getConfig','getUnitId','LIVESHARE_OPERATION','UniverIcon','Start\x20following','0\x200\x2017\x2017','_mountLiveShare','parse','tryStartPresenting','url(#$1','ONLINE','9656040BmjXrn','colorChannel1','dispose','getLiveShareCoordinator','SAME_OPERATION_SHARE_INTERVAL','UNIVER_UNKNOWN','_startPresenting','Present\x20this\x20document','Stop\x20presenting','get','registerComponent','values','event$','_handleTerminate','icon','evenodd','init','_handleOperation','mutations','_configService','stopPresenting','_init','_stopFollowing','xlink:href','requireSession','includes','default','_config','text','UNIVER_SHEET','status$','_reporters','use','unitId','_sharedOperations','div','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','reverse'];_0x5c24=function(){return _0x3337d2;};return _0x5c24();}C=Z([f(0x2,_0x2a6249),f(0x3,_0x41bb1b(L)),f(0x4,_0x20d4d5)],C);function Te(){var _0x4b86ca=_0x32ae50;const _0x1ab6d7=_0x156a0a(I),_0x82657b=_0x156a0a(_0xd4edc0),_0x5b4e0c=_0x33d8c6(()=>_0x82657b['getCurrentTypeOfUnit$'](_0x42912a['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x542196,_0x5d0bbd]=_0x4a8222(null),[_0x123c4f,_0x3a26cd]=_0x4a8222(h[_0x4b86ca(0x1e4)]),_0x46154d=_0xdada33(null);return _0x42fc52(()=>(_0x5b4e0c&&_0x1ab6d7[_0x4b86ca(0x176)](_0x5b4e0c[_0x4b86ca(0x169)]())[_0x4b86ca(0x167)](_0x43c9b1=>{var _0x512253=_0x4b86ca;_0x5d0bbd(_0x43c9b1),_0x46154d['current']=_0x43c9b1['status$'][_0x512253(0x19d)](_0x4cc2a6=>{_0x3a26cd(_0x4cc2a6);});}),()=>{var _0x37c192=_0x4b86ca,_0x1f7582;(_0x1f7582=_0x46154d['current'])==null||_0x1f7582[_0x37c192(0x14e)](),_0x46154d[_0x37c192(0x157)]=null;}),[_0x5b4e0c,_0x1ab6d7]),_0x542196?_0x562dfe(_0x12d524,{'align':_0x4b86ca(0x1c6),'disabled':_0x123c4f===h[_0x4b86ca(0x19a)],'className':_0x4b86ca(0x1db),'overlay':_0x562dfe($e,{'status':_0x123c4f,'coordinator':_0x542196}),'children':_0x562dfe('button',{'className':_0x15915a('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x123c4f===h[_0x4b86ca(0x19a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x123c4f!==h[_0x4b86ca(0x19a)]}),'type':'button','children':_0x562dfe(B,{'className':_0x4b86ca(0x1b3)})})}):null;}function $e(_0x572960){var _0x4f1c32=_0x32ae50;const {status:_0x570d6e,coordinator:_0x52b7b2}=_0x572960;switch(_0x570d6e){case h[_0x4f1c32(0x1e4)]:return _0x562dfe(Fe,{'coordinator':_0x52b7b2});case h[_0x4f1c32(0x1d4)]:return _0x562dfe(He,{'coordinator':_0x52b7b2});case h[_0x4f1c32(0x1ed)]:return _0x562dfe(je,{'coordinator':_0x52b7b2});case h[_0x4f1c32(0x19a)]:return _0x562dfe(Ve,{});case h['PRESENTING']:return _0x562dfe(Ue,{'coordinator':_0x52b7b2});default:return null;}}function Fe(_0x2411c7){var _0x19f015=_0x32ae50;const {coordinator:_0x3f2624}=_0x2411c7;return _0x45bad6(_0x51e910,{'children':[_0x562dfe(_0x19f015(0x196),{'className':_0x19f015(0x1de),'children':_0x19f015(0x17a)}),_0x562dfe(_0x6f90c7,{'onClick':()=>_0x3f2624['tryStartPresenting'](),'children':_0x19f015(0x150)})]});}function He(_0xd3e692){var _0x56c8eb=_0x32ae50;const {coordinator:_0x461d7b}=_0xd3e692;return _0x45bad6(_0x51e910,{'children':[_0x562dfe(_0x56c8eb(0x196),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x562dfe(_0x6f90c7,{'onClick':()=>_0x461d7b[_0x56c8eb(0x15e)](),'children':_0x56c8eb(0x1c3)})]});}function je(_0x4dd421){var _0x44458e=_0x32ae50;const {coordinator:_0x1ab757}=_0x4dd421;return _0x45bad6(_0x51e910,{'children':[_0x562dfe(_0x44458e(0x196),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x44458e(0x1d7)}),_0x562dfe(_0x6f90c7,{'variant':_0x44458e(0x18f),'onClick':()=>_0x1ab757[_0x44458e(0x143)](),'children':_0x44458e(0x16c)})]});}function Ue(_0x3ed01b){var _0x298919=_0x32ae50;const {coordinator:_0x320f33}=_0x3ed01b;return _0x45bad6(_0x51e910,{'children':[_0x562dfe(_0x298919(0x196),{'className':_0x298919(0x1de),'children':_0x298919(0x15d)}),_0x562dfe(_0x6f90c7,{'variant':_0x298919(0x18d),'onClick':()=>_0x320f33[_0x298919(0x187)](),'children':_0x298919(0x17b)})]});}function Ve(){var _0x6285a6=_0x32ae50;return _0x562dfe(_0x51e910,{'children':_0x6285a6(0x1b5)});}var Me=Object[_0x32ae50(0x1b7)],ke=(_0x1e832f,_0x18b8b9,_0x3fb7a5,_0x27f886)=>{for(var _0x57651e=_0x27f886>0x1?void 0x0:_0x27f886?Me(_0x18b8b9,_0x3fb7a5):_0x18b8b9,_0x18889d=_0x1e832f['length']-0x1,_0x2810f7;_0x18889d>=0x0;_0x18889d--)(_0x2810f7=_0x1e832f[_0x18889d])&&(_0x57651e=_0x2810f7(_0x57651e)||_0x57651e);return _0x57651e;},$=(_0x31877b,_0x48c2f2)=>(_0x417543,_0x1eb655)=>_0x48c2f2(_0x417543,_0x1eb655,_0x31877b);let b=class extends _0x5b5872{constructor(_0x1e469b,_0x560b32){var _0xd76bf=_0x32ae50;super(),this[_0xd76bf(0x1c8)]=_0x1e469b,this[_0xd76bf(0x147)]=_0x560b32,this[_0xd76bf(0x16e)]();}['_mountLiveShare'](){var _0x48ff97=_0x32ae50;this[_0x48ff97(0x138)](this[_0x48ff97(0x147)][_0x48ff97(0x17d)](_0x242435[_0x48ff97(0x145)],()=>_0x3c7be2(Te,this[_0x48ff97(0x1c8)])));}};b=ke([$(0x0,_0x41bb1b(_0x699545)),$(0x1,_0x56d8c4)],b);var Ge=Object[_0x32ae50(0x1e7)],We=Object[_0x32ae50(0x1b7)],Ye=(_0x17d43d,_0x11375d,_0x12f215)=>_0x11375d in _0x17d43d?Ge(_0x17d43d,_0x11375d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x12f215}):_0x17d43d[_0x11375d]=_0x12f215,Be=(_0x53edfd,_0x4afa6b,_0x455a2,_0x8fe4d5)=>{var _0x567b6e=_0x32ae50;for(var _0x70c504=_0x8fe4d5>0x1?void 0x0:_0x8fe4d5?We(_0x4afa6b,_0x455a2):_0x4afa6b,_0x3e3c52=_0x53edfd[_0x567b6e(0x1a7)]-0x1,_0x7d7e18;_0x3e3c52>=0x0;_0x3e3c52--)(_0x7d7e18=_0x53edfd[_0x3e3c52])&&(_0x70c504=_0x7d7e18(_0x70c504)||_0x70c504);return _0x70c504;},F=(_0x393c59,_0x149428)=>(_0x368eda,_0x116cd1)=>_0x149428(_0x368eda,_0x116cd1,_0x393c59),J=(_0x1ae86a,_0xb89836,_0x16d43e)=>Ye(_0x1ae86a,typeof _0xb89836!=_0x32ae50(0x1c0)?_0xb89836+'':_0xb89836,_0x16d43e);const Ze=_0x32ae50(0x146);let O=class extends _0xa7a041{constructor(_0x493437=T,_0x1cfad2,_0x3e0297){var _0x2ab581=_0x32ae50;super(),this['_config']=_0x493437,this[_0x2ab581(0x1c8)]=_0x1cfad2,this['_configService']=_0x3e0297;const {..._0x59a0e0}=_0x370c55({},T,this['_config']);this['_configService'][_0x2ab581(0x140)](Oe,_0x59a0e0);}[_0x32ae50(0x139)](){var _0x5a4bd8=_0x32ae50;_0x2e052c(this[_0x5a4bd8(0x1c8)],_0x55d9f8([[L],[I],[m],[b]],this[_0x5a4bd8(0x18e)]['override'])),_0x8ed971(this[_0x5a4bd8(0x1c8)],[[m]]);}[_0x32ae50(0x1ba)](){_0x8ed971(this['_injector'],[[b]]);}};J(O,_0x32ae50(0x1d2),_0x42912a[_0x32ae50(0x178)]),J(O,'pluginName',Ze),O=Be([_0x4c2423(_0x8aa761),F(0x1,_0x41bb1b(_0x699545)),F(0x2,_0x2a6249)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x4c35df=_0x7bc6;(function(_0x41046a,_0x10f0d7){var _0x527b83=_0x7bc6,_0x16462c=_0x41046a();while(!![]){try{var _0x13eb75=parseInt(_0x527b83(0x163))/0x1+-parseInt(_0x527b83(0x13e))/0x2*(parseInt(_0x527b83(0x115))/0x3)+parseInt(_0x527b83(0x116))/0x4+parseInt(_0x527b83(0x131))/0x5+-parseInt(_0x527b83(0xc5))/0x6+-parseInt(_0x527b83(0x128))/0x7*(parseInt(_0x527b83(0x151))/0x8)+parseInt(_0x527b83(0x13b))/0x9*(parseInt(_0x527b83(0xb7))/0xa);if(_0x13eb75===_0x10f0d7)break;else _0x16462c['push'](_0x16462c['shift']());}catch(_0x3860bb){_0x16462c['push'](_0x16462c['shift']());}}}(_0x4cc9,0xecbf0));var q=Object[_0x4c35df(0x146)],z=(_0x32da0d,_0x20d3a4,_0xdfeb22)=>_0x20d3a4 in _0x32da0d?q(_0x32da0d,_0x20d3a4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xdfeb22}):_0x32da0d[_0x20d3a4]=_0xdfeb22,d=(_0x177f51,_0x40a53c,_0x948a31)=>z(_0x177f51,typeof _0x40a53c!=_0x4c35df(0x141)?_0x40a53c+'':_0x40a53c,_0x948a31);import{Disposable as _0x1f1ed5,toDisposable as _0x5cf8b6,IUniverInstanceService as _0x9ee18,Inject as _0x214de5,Injector as _0x55d5e8,IConfigService as _0x596770,ICommandService as _0x49ea3a,RxDisposable as _0x49bb96,UniverInstanceType as _0x5d5736,DisposableCollection as _0x457240,CommandType as _0x4dd41a,DependentOn as _0x13c7bc,Plugin as _0xca36d6,merge as _0x49df5f,registerDependencies as _0x161788,mergeOverrideWithDependencies as _0x265c97,touchDependencies as _0x58f08e}from'@univerjs/core';import{useDependency as _0x595204,useObservable as _0xc95284,IUIPartsService as _0x868a60,BuiltInUIPart as _0x38120b,connectInjector as _0x5368f4}from'@univerjs/ui';function _0x7bc6(_0x57c73a,_0x338fb7){var _0x4cc9b4=_0x4cc9();return _0x7bc6=function(_0x7bc6cd,_0x2c20a8){_0x7bc6cd=_0x7bc6cd-0xb1;var _0x1a9931=_0x4cc9b4[_0x7bc6cd];return _0x1a9931;},_0x7bc6(_0x57c73a,_0x338fb7);}import{jsx as _0x29fd32,jsxs as _0x3cea35,Fragment as _0x187468}from'react/jsx-runtime';import{Dropdown as _0x380dce,clsx as _0x1613e6,Button as _0x5c5ef5}from'@univerjs/design';import{forwardRef as _0x173ab3,useRef as _0x266191,createElement as _0x1ebd79,useState as _0xbbc3fb,useEffect as _0x13fae4}from'react';import{CollaborationEvent as _0x586cf6,parseProtocolChangeset as _0xb08ef}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xa24487,SessionStatus as _0x2facc0,UniverCollaborationClientPlugin as _0x5f57c7}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5b4069,SetWorksheetActiveOperation as _0x5b6936}from'@univerjs/sheets';import{BehaviorSubject as _0x2822eb,Subject as _0x5d5dbf}from'rxjs';import{takeUntil as _0x5d7190,throttleTime as _0xc2d5a7}from'rxjs/operators';import{SetZoomRatioOperation as _0x548d0f,SetScrollOperation as _0x50482e}from'@univerjs/sheets-ui';function _0x4cc9(){var _0x5f45f1=['init','idSuffix','not-following','override','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','hasOwnProperty','add','getUnitId','offline','_status','UNIVER_LIVE_SHARE_PLUGIN','_beIdle','OPERATION','_collabSessionService','getTypeOfUnitDisposed$','attrs','_status$','onCommandExecuted','getValue','_mountLiveShare','has','OFFLINE','executeCommand','stopFollowing','_commandDisposable','status$','102630JIVxLq','1110904qLyiBY','_config','pluginName','SAME_OPERATION_SHARE_INTERVAL','pipe','_startFollowing','_handleOffline','Start\x20following','IDLE','stopPresenting','presenting','propertyIsEnumerable','memberID','unitId','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','values','_univerInstanceService','mutations','6595463aoLgqH','children','complete','fill','replace','LIVESHARE_REQUEST_HOST','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_configService','_unitID','6879555JimmOC','icon','delete','subscribe','forEach','presenter','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','random','includes','_stopPresenting','21655350mfEzvs','call','univer-mb-3\x20univer-w-full\x20univer-text-sm','100buTWWn','stringify','end','symbol','UNIVER_SHEET','prototype','LIVESHARE_OPERATION','_sharedOperations','defineProperty','div','length','idle','button','_injector','then','getMemberID','registerComponent','text','data','8AmGrbb','url(#$1','getOwnPropertyDescriptor','apply','trim','indexOf','map','You\x27re\x20not\x20following\x20the\x20presenter','getInitialStates','entries','dispose','univer-size-4','none','className','setConfig','_commandService','Present\x20this\x20document','onRendered','1219867YZhopN','_handleNewChangeSets','next','registerSharedOperation','LIVESHARE_FETCH_OPERATIONS','onStarting','_presenter','_startPresenting','FOLLOWING','type','_handleNewHost','_init','10RnWiRH','registerInitialStateReporter','You\x27re\x20following\x20the\x20presenter','displayName','LIVESHARE_TERMINATE','Stop\x20presenting','You\x27are\x20offline.','sessionStatus$','send','HEADER_MENU','disposeWithMe','dispose$','Start','string','9943398gsEJNU','requireSession','get','shouldShareOperation','getConfig','set','reverse','_handleOnline','xlink:href','colorChannel1','tag','defs','event$','startFollowing','live-share.config','_startLiveShareCoordinator','NOT_FOLLOWING','LiveShareIcon','params','_liveShareService','You\x27re\x20presenting\x20the\x20document','assign','Stop\x20following','1em','concat','NEW_CHANGESETS','live-share-icon','tryStartPresenting','unsubscribe','toString','defIds','getTypeOfUnitAdded$','extend','_reporters','evenodd','getCurrentTypeOfUnit$','_uiPartsService','_handleTerminate','_fetchOperations','current','mask','0\x200\x2017\x2017','getLiveShareCoordinator','UniverIcon','use','_collabSession','path','_stopFollowing','operations','following','sheet','parse','_entities','default'];_0x4cc9=function(){return _0x5f45f1;};return _0x4cc9();}var c=function(){var _0x370feb=_0x4c35df;return c=Object[_0x370feb(0xda)]||function(_0x3d6542){var _0x47c5b4=_0x370feb;for(var _0x14d2d4,_0x2149bd=0x1,_0x19e90c=arguments[_0x47c5b4(0x148)];_0x2149bd<_0x19e90c;_0x2149bd++){_0x14d2d4=arguments[_0x2149bd];for(var _0xf03e78 in _0x14d2d4)Object[_0x47c5b4(0x143)][_0x47c5b4(0x100)][_0x47c5b4(0x13c)](_0x14d2d4,_0xf03e78)&&(_0x3d6542[_0xf03e78]=_0x14d2d4[_0xf03e78]);}return _0x3d6542;},c[_0x370feb(0x154)](this,arguments);},Oe=function(_0x25f212,_0x179dc4){var _0x2a5047=_0x4c35df,_0x521a10={};for(var _0x42acd7 in _0x25f212)Object['prototype'][_0x2a5047(0x100)]['call'](_0x25f212,_0x42acd7)&&_0x179dc4['indexOf'](_0x42acd7)<0x0&&(_0x521a10[_0x42acd7]=_0x25f212[_0x42acd7]);if(_0x25f212!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x6e7662=0x0,_0x42acd7=Object['getOwnPropertySymbols'](_0x25f212);_0x6e7662<_0x42acd7[_0x2a5047(0x148)];_0x6e7662++)_0x179dc4[_0x2a5047(0x156)](_0x42acd7[_0x6e7662])<0x0&&Object[_0x2a5047(0x143)][_0x2a5047(0x121)][_0x2a5047(0x13c)](_0x25f212,_0x42acd7[_0x6e7662])&&(_0x521a10[_0x42acd7[_0x6e7662]]=_0x25f212[_0x42acd7[_0x6e7662]]);}return _0x521a10;},W=_0x173ab3(function(_0x410a9d,_0x47159c){var _0x66e5fa=_0x4c35df,_0x34e866=_0x410a9d[_0x66e5fa(0x132)],_0x5ab8e4=_0x410a9d['id'],_0x490bba=_0x410a9d[_0x66e5fa(0x15e)],_0x509ee6=_0x410a9d[_0x66e5fa(0xe5)],_0x22298d=Oe(_0x410a9d,[_0x66e5fa(0x132),'id','className',_0x66e5fa(0xe5)]),_0x9e4b0c='univerjs-icon\x20univerjs-icon-'[_0x66e5fa(0xdd)](_0x5ab8e4,'\x20')[_0x66e5fa(0xdd)](_0x490bba||'')[_0x66e5fa(0x155)](),_0x156718=_0x266191('_'['concat'](Ne()));return Y(_0x34e866,''['concat'](_0x5ab8e4),{'defIds':_0x34e866[_0x66e5fa(0xe3)],'idSuffix':_0x156718[_0x66e5fa(0xec)]},c({'ref':_0x47159c,'className':_0x9e4b0c},_0x22298d),_0x509ee6);});function Y(_0x19fca1,_0x5477b9,_0xb53783,_0x34dac9,_0x3fa232){var _0x4017bb=_0x4c35df;return _0x1ebd79(_0x19fca1['tag'],c(c({'key':_0x5477b9},Ee(_0x19fca1,_0xb53783,_0x3fa232)),_0x34dac9),(we(_0x19fca1,_0xb53783)[_0x4017bb(0x129)]||[])[_0x4017bb(0x157)](function(_0x57b884,_0x11408a){var _0x2c80ac=_0x4017bb;return Y(_0x57b884,''[_0x2c80ac(0xdd)](_0x5477b9,'-')['concat'](_0x19fca1[_0x2c80ac(0xcf)],'-')[_0x2c80ac(0xdd)](_0x11408a),_0xb53783,void 0x0,_0x3fa232);}));}function Ee(_0x1fcceb,_0x30a19c,_0x19a1ca){var _0x2c8e65=_0x4c35df,_0x5a23f9=c({},_0x1fcceb['attrs']);_0x19a1ca!=null&&_0x19a1ca[_0x2c8e65(0xce)]&&_0x5a23f9['fill']===_0x2c8e65(0xce)&&(_0x5a23f9[_0x2c8e65(0x12b)]=_0x19a1ca[_0x2c8e65(0xce)]),_0x1fcceb[_0x2c8e65(0xcf)]===_0x2c8e65(0xed)&&_0x5a23f9['id']&&(_0x5a23f9['id']=_0x5a23f9['id']+_0x30a19c['idSuffix']),Object[_0x2c8e65(0x15a)](_0x5a23f9)[_0x2c8e65(0x135)](function(_0x1b205c){var _0x4357c9=_0x2c8e65,_0x4680c4=_0x1b205c[0x0],_0x8db7e8=_0x1b205c[0x1];_0x4680c4===_0x4357c9(0xed)&&typeof _0x8db7e8==_0x4357c9(0xc4)&&(_0x5a23f9[_0x4680c4]=_0x8db7e8[_0x4357c9(0x12c)](/url\(#(.*)\)/,_0x4357c9(0x152)[_0x4357c9(0xdd)](_0x30a19c[_0x4357c9(0xfc)],')')));});var _0x567f42=_0x30a19c[_0x2c8e65(0xe3)];return!_0x567f42||_0x567f42[_0x2c8e65(0x148)]===0x0||(_0x1fcceb[_0x2c8e65(0xcf)]===_0x2c8e65(0xf1)&&_0x5a23f9[_0x2c8e65(0xcd)]&&(_0x5a23f9['xlink:href']=_0x5a23f9[_0x2c8e65(0xcd)]+_0x30a19c[_0x2c8e65(0xfc)]),Object[_0x2c8e65(0x15a)](_0x5a23f9)['forEach'](function(_0x82365e){var _0x1c5a09=_0x2c8e65,_0xee7e3e=_0x82365e[0x0],_0x211957=_0x82365e[0x1];typeof _0x211957=='string'&&(_0x5a23f9[_0xee7e3e]=_0x211957[_0x1c5a09(0x12c)](/url\(#(.*)\)/,_0x1c5a09(0x152)[_0x1c5a09(0xdd)](_0x30a19c[_0x1c5a09(0xfc)],')')));})),_0x5a23f9;}function we(_0x382331,_0x837ab){var _0x259267=_0x4c35df,_0x4b406f,_0x5715a6=_0x837ab[_0x259267(0xe3)];return!_0x5715a6||_0x5715a6['length']===0x0?_0x382331:_0x382331[_0x259267(0xcf)]===_0x259267(0xd0)&&(!((_0x4b406f=_0x382331[_0x259267(0x129)])===null||_0x4b406f===void 0x0)&&_0x4b406f[_0x259267(0x148)])?c(c({},_0x382331),{'children':_0x382331[_0x259267(0x129)]['map'](function(_0x730ed4){var _0x43cdce=_0x259267;return typeof _0x730ed4[_0x43cdce(0x10a)]['id']==_0x43cdce(0xc4)&&_0x5715a6&&_0x5715a6['includes'](_0x730ed4['attrs']['id'])?c(c({},_0x730ed4),{'attrs':c(c({},_0x730ed4[_0x43cdce(0x10a)]),{'id':_0x730ed4[_0x43cdce(0x10a)]['id']+_0x837ab[_0x43cdce(0xfc)]})}):_0x730ed4;})}):_0x382331;}function Ne(){var _0x2829c7=_0x4c35df;return Math[_0x2829c7(0x138)]()[_0x2829c7(0xe2)](0x24)['substring'](0x2,0x8);}W[_0x4c35df(0xba)]=_0x4c35df(0xf0);var Ce={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4c35df(0x15d),'viewBox':_0x4c35df(0xee),'width':_0x4c35df(0xdc),'height':_0x4c35df(0xdc)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x4c35df(0xff)}},{'tag':_0x4c35df(0xf3),'attrs':{'fill':'currentColor','d':_0x4c35df(0x12e),'fillRule':'evenodd','clipRule':_0x4c35df(0xe7)}}]},B=_0x173ab3(function(_0x3e1a82,_0x34fbe8){var _0x49c871=_0x4c35df;return _0x1ebd79(W,Object[_0x49c871(0xda)]({},_0x3e1a82,{'id':_0x49c871(0xdf),'ref':_0x34fbe8,'icon':Ce}));});B[_0x4c35df(0xba)]=_0x4c35df(0xd6);class L extends _0x1f1ed5{constructor(){var _0xf6aab3=_0x4c35df;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0xf6aab3(0xe6),new Set());}[_0x4c35df(0x166)](_0x45c34e){var _0x2708e4=_0x4c35df;return this[_0x2708e4(0x145)][_0x2708e4(0x101)](_0x45c34e),_0x5cf8b6(()=>this[_0x2708e4(0x145)]['delete'](_0x45c34e));}[_0x4c35df(0xb8)](_0x420d58){var _0x2a1407=_0x4c35df;return this['_reporters']['add'](_0x420d58),_0x5cf8b6(()=>this[_0x2a1407(0xe6)][_0x2a1407(0x133)](_0x420d58));}['shouldShareOperation'](_0x1d51c0){var _0x407502=_0x4c35df;return this['_sharedOperations'][_0x407502(0x10f)](_0x1d51c0);}[_0x4c35df(0x159)](_0x4cfa81){var _0x1961dc=_0x4c35df;return Array['from'](this[_0x1961dc(0xe6)])[_0x1961dc(0x157)](_0x24771b=>_0x24771b(_0x4cfa81));}}var De=Object[_0x4c35df(0x153)],Z=(_0x17857d,_0x10c588,_0x5a6e8a,_0x2246b9)=>{for(var _0x33b7ca=_0x2246b9>0x1?void 0x0:_0x2246b9?De(_0x10c588,_0x5a6e8a):_0x10c588,_0x37f6fa=_0x17857d['length']-0x1,_0x4e1acc;_0x37f6fa>=0x0;_0x37f6fa--)(_0x4e1acc=_0x17857d[_0x37f6fa])&&(_0x33b7ca=_0x4e1acc(_0x33b7ca)||_0x33b7ca);return _0x33b7ca;},f=(_0x2979ae,_0x4fcce1)=>(_0x31ba67,_0x24f360)=>_0x4fcce1(_0x31ba67,_0x24f360,_0x2979ae);let m=class extends _0x49bb96{constructor(_0x51a3d7,_0x8c50fc,_0x5b6956){var _0x51f3fb=_0x4c35df;super(),d(this,'_entities',new Map()),(this[_0x51f3fb(0x126)]=_0x51a3d7,this['_injector']=_0x8c50fc,this[_0x51f3fb(0x108)]=_0x5b6956,this[_0x51f3fb(0xb6)]());}async[_0x4c35df(0xef)](_0x2f4ce4){var _0x50d374=_0x4c35df;return this[_0x50d374(0xf9)][_0x50d374(0x10f)](_0x2f4ce4)||await this[_0x50d374(0xd4)](_0x2f4ce4),this['_entities'][_0x50d374(0xc7)](_0x2f4ce4);}['_init'](){var _0x2a6de9=_0x4c35df;this[_0x2a6de9(0x126)][_0x2a6de9(0xe4)](_0x5d5736[_0x2a6de9(0x142)])[_0x2a6de9(0x11a)](_0x5d7190(this[_0x2a6de9(0xc2)]))[_0x2a6de9(0x134)](async _0x1c9a00=>{var _0x47621c=_0x2a6de9;const _0x1fa4c6=_0x1c9a00[_0x47621c(0x102)]();this[_0x47621c(0xf9)][_0x47621c(0x10f)](_0x1fa4c6)||this[_0x47621c(0xd4)](_0x1fa4c6);}),this[_0x2a6de9(0x126)][_0x2a6de9(0x109)](_0x5d5736[_0x2a6de9(0x142)])[_0x2a6de9(0x11a)](_0x5d7190(this['dispose$']))[_0x2a6de9(0x134)](_0x2d3a5f=>{var _0x2ddec3=_0x2a6de9;const _0x528735=_0x2d3a5f[_0x2ddec3(0x102)](),_0x67b325=this[_0x2ddec3(0xf9)][_0x2ddec3(0xc7)](_0x528735);_0x67b325==null||_0x67b325[_0x2ddec3(0x15b)]();});}async[_0x4c35df(0xd4)](_0x21a59f){var _0x17cc3b=_0x4c35df;const _0x586d2a=await this[_0x17cc3b(0x108)][_0x17cc3b(0xc6)](_0x21a59f),_0x224ef1=this[_0x17cc3b(0x14b)]['createInstance'](C,_0x21a59f,_0x586d2a);return _0x224ef1[_0x17cc3b(0xfb)](),this[_0x17cc3b(0xf9)][_0x17cc3b(0xca)](_0x21a59f,_0x224ef1),_0x224ef1;}};m=Z([f(0x0,_0x9ee18),f(0x1,_0x214de5(_0x55d5e8)),f(0x2,_0x214de5(_0xa24487))],m);var h=(_0x26ca3=>(_0x26ca3['OFFLINE']='offline',_0x26ca3[_0x4c35df(0x11e)]=_0x4c35df(0x149),_0x26ca3['FOLLOWING']='following',_0x26ca3[_0x4c35df(0xd5)]=_0x4c35df(0xfd),_0x26ca3['PRESENTING']='presenting',_0x26ca3))(h||{});const xe=_0x4c35df(0x119),Le=0xc8;let C=class extends _0x49bb96{constructor(_0x1586d2,_0x44434f,_0x5291e9,_0x113f43,_0x10941e){var _0xa13121=_0x4c35df;super(),d(this,_0xa13121(0x10b),new _0x2822eb('idle')),d(this,_0xa13121(0x114),this[_0xa13121(0x10b)]['asObservable']()),d(this,_0xa13121(0xb6),!0x1),d(this,_0xa13121(0x113),null),d(this,_0xa13121(0xb1),null),(this[_0xa13121(0x130)]=_0x1586d2,this[_0xa13121(0xf2)]=_0x44434f,this['_configService']=_0x5291e9,this['_liveShareService']=_0x113f43,this[_0xa13121(0x160)]=_0x10941e);}get[_0x4c35df(0x104)](){var _0x35ff11=_0x4c35df;return this[_0x35ff11(0x10b)][_0x35ff11(0x10d)]();}[_0x4c35df(0x15b)](){var _0x4e4167=_0x4c35df,_0x10a54d;(_0x10a54d=this[_0x4e4167(0x113)])==null||_0x10a54d[_0x4e4167(0x15b)](),this['_status$'][_0x4e4167(0x165)]('idle'),this['_status$'][_0x4e4167(0x12a)]();}[_0x4c35df(0xfb)](){var _0x43ead5=_0x4c35df;this[_0x43ead5(0xb6)]||(this[_0x43ead5(0xb6)]=!0x0,this['_collabSession'][_0x43ead5(0xbe)][_0x43ead5(0x11a)](_0x5d7190(this[_0x43ead5(0xc2)]))[_0x43ead5(0x134)](_0x2890e6=>{var _0x18592e=_0x43ead5;switch(_0x2890e6){case _0x2facc0['OFFLINE']:this[_0x18592e(0x11c)]();break;case _0x2facc0['ONLINE']:this[_0x18592e(0xcc)]();break;}}),this[_0x43ead5(0xf2)][_0x43ead5(0xd1)][_0x43ead5(0x11a)](_0x5d7190(this[_0x43ead5(0xc2)]))[_0x43ead5(0x134)](_0x35cd43=>{var _0x442da9=_0x43ead5;const {eventID:_0x3151ae}=_0x35cd43;switch(_0x3151ae){case _0x586cf6['LIVESHARE_NEW_HOST']:this[_0x442da9(0xb5)](_0x35cd43);break;case _0x586cf6['LIVESHARE_OPERATION']:this['_handleOperation'](_0x35cd43);break;case _0x586cf6[_0x442da9(0xbb)]:this['_handleTerminate']();break;case _0x586cf6[_0x442da9(0xde)]:this[_0x442da9(0x164)](_0x35cd43);break;}}));}[_0x4c35df(0xe0)](){var _0x2a04fe=_0x4c35df;this[_0x2a04fe(0xf2)][_0x2a04fe(0xbf)]({'eventID':_0x586cf6[_0x2a04fe(0x12d)],'data':{'unitID':this[_0x2a04fe(0x130)],'userID':this[_0x2a04fe(0xf2)][_0x2a04fe(0x14d)]()}},this['_unitID']);}['stopPresenting'](){var _0x350a84=_0x4c35df;this[_0x350a84(0x104)]==='presenting'&&(this['_status$'][_0x350a84(0x165)](_0x350a84(0x149)),this[_0x350a84(0xf2)][_0x350a84(0xbf)]({'eventID':_0x586cf6[_0x350a84(0xbb)],'data':{'unitID':this[_0x350a84(0x130)]}},this['_unitID']));}[_0x4c35df(0xd2)](){var _0x4a8c49=_0x4c35df;this[_0x4a8c49(0x104)]==='not-following'&&(this['_status$'][_0x4a8c49(0x165)]('following'),this[_0x4a8c49(0x11b)]());}[_0x4c35df(0x112)](){var _0x3a7c5e=_0x4c35df;this[_0x3a7c5e(0x104)]===_0x3a7c5e(0xf6)&&this['_stopFollowing']();}[_0x4c35df(0xb5)](_0x117ea7){var _0x3ecd09=_0x4c35df;const {presenter:_0x22d416}=_0x117ea7[_0x3ecd09(0x150)],_0x1b88d8=this['_collabSession'][_0x3ecd09(0x14d)]();this[_0x3ecd09(0xb1)]=_0x22d416,_0x22d416===_0x1b88d8?(this[_0x3ecd09(0xf4)](),this[_0x3ecd09(0xb2)]()):this[_0x3ecd09(0x104)]!==_0x3ecd09(0xfd)&&(this['_stopPresenting'](),this[_0x3ecd09(0x11b)]());}[_0x4c35df(0xeb)](){var _0x205b5a=_0x4c35df;const _0x336264={'eventID':_0x586cf6[_0x205b5a(0x167)]};this[_0x205b5a(0xf2)][_0x205b5a(0xbf)](_0x336264,this['_unitID']);}[_0x4c35df(0xea)](){var _0x1d47d5=_0x4c35df;this[_0x1d47d5(0xb1)]=null,this[_0x1d47d5(0x104)]!==_0x1d47d5(0x120)&&this[_0x1d47d5(0x106)]();}['_handleNewChangeSets'](_0x341474){var _0x5a213b=_0x4c35df;if(this[_0x5a213b(0x104)]===_0x5a213b(0xf6)&&this['_presenter']===_0x341474[_0x5a213b(0x150)][_0x5a213b(0x122)]){const _0x35bf03=_0xb08ef(_0x341474[_0x5a213b(0x150)])[_0x5a213b(0x127)][_0x5a213b(0xcb)]()['find'](_0x5b75cb=>_0x5b75cb['id']===_0x5b4069['id']);if(_0x35bf03){const _0x2236e6=_0x35bf03[_0x5a213b(0xd7)][_0x5a213b(0x123)],_0x409bd5=_0x35bf03[_0x5a213b(0xd7)][_0x5a213b(0xf7)]['id'];setTimeout(()=>{var _0x3e05fc=_0x5a213b;this['_commandService'][_0x3e05fc(0x111)](_0x5b6936['id'],{'unitId':_0x2236e6,'subUnitId':_0x409bd5},{'fromCollab':!0x0});});}}}[_0x4c35df(0xb2)](){var _0x5e1871=_0x4c35df;this[_0x5e1871(0x10b)][_0x5e1871(0x165)]('presenting');const _0x397318=new Map(),_0x3a632b=this[_0x5e1871(0x113)]=new _0x457240();_0x3a632b[_0x5e1871(0x101)](_0x5cf8b6(()=>{var _0x4d8969=_0x5e1871;_0x397318['forEach'](_0x2ba3aa=>_0x2ba3aa[_0x4d8969(0x12a)]()),_0x397318['clear']();})),_0x3a632b[_0x5e1871(0x101)](this[_0x5e1871(0x160)][_0x5e1871(0x10c)](_0x191951=>{var _0x4dec3e=_0x5e1871,_0x48c14e;if(_0x191951[_0x4dec3e(0xb4)]!==_0x4dd41a[_0x4dec3e(0x107)]||!this[_0x4dec3e(0xd8)][_0x4dec3e(0xc8)](_0x191951['id']))return;const {id:_0x5d75ce}=_0x191951;let _0x4f901e;_0x397318[_0x4dec3e(0x10f)](_0x5d75ce)?_0x4f901e=_0x397318[_0x4dec3e(0xc7)](_0x5d75ce):(_0x4f901e=new _0x5d5dbf(),_0x397318[_0x4dec3e(0xca)](_0x5d75ce,_0x4f901e),_0x4f901e[_0x4dec3e(0x11a)](_0xc2d5a7((_0x48c14e=this[_0x4dec3e(0x12f)][_0x4dec3e(0xc9)](xe))!=null?_0x48c14e:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4dec3e(0x134)](_0x5364a9=>{var _0x19a7c8=_0x4dec3e;this['_collabSession'][_0x19a7c8(0xbf)]({'eventID':_0x586cf6[_0x19a7c8(0x144)],'data':{'unitID':this[_0x19a7c8(0x130)],'operations':{[_0x5364a9['id']]:{'id':_0x5364a9['id'],'params':JSON[_0x19a7c8(0x13f)](_0x5364a9[_0x19a7c8(0xd7)])}}}},this[_0x19a7c8(0x130)]);})),_0x4f901e['next'](_0x191951);})),this[_0x5e1871(0xd8)][_0x5e1871(0x159)](this['_unitID'])['forEach'](_0x19cd53=>this[_0x5e1871(0xf2)][_0x5e1871(0xbf)]({'eventID':_0x586cf6[_0x5e1871(0x144)],'data':{'unitID':this[_0x5e1871(0x130)],'operations':{[_0x19cd53['id']]:{'id':_0x19cd53['id'],'params':JSON['stringify'](_0x19cd53[_0x5e1871(0xd7)])}}}},this['_unitID']));}[_0x4c35df(0x13a)](){var _0x1deb5d=_0x4c35df,_0x4ab702;this['_status$'][_0x1deb5d(0x165)](_0x1deb5d(0x149)),(_0x4ab702=this[_0x1deb5d(0x113)])==null||_0x4ab702[_0x1deb5d(0x15b)](),this[_0x1deb5d(0x113)]=null;}['_startFollowing'](){var _0xb858ed=_0x4c35df,_0x1c5f32;(_0x1c5f32=this[_0xb858ed(0x113)])==null||_0x1c5f32['dispose'](),this[_0xb858ed(0x10b)][_0xb858ed(0x165)](_0xb858ed(0xf6));}[_0x4c35df(0x106)](){var _0x4185ee=_0x4c35df,_0x5e3069;this[_0x4185ee(0x10b)][_0x4185ee(0x165)](_0x4185ee(0x149)),(_0x5e3069=this[_0x4185ee(0x113)])==null||_0x5e3069['dispose'](),this[_0x4185ee(0x113)]=null;}[_0x4c35df(0xf4)](){var _0x3ae03d=_0x4c35df,_0x267ee9;this[_0x3ae03d(0x10b)][_0x3ae03d(0x165)](_0x3ae03d(0xfd)),(_0x267ee9=this[_0x3ae03d(0x113)])==null||_0x267ee9['dispose']();}['_handleOperation'](_0x58878c){var _0x2cefc9=_0x4c35df;if([_0x2cefc9(0x120),'not-following',_0x2cefc9(0x103)][_0x2cefc9(0x139)](this[_0x2cefc9(0x104)])||!_0x58878c['data'][_0x2cefc9(0x136)]||_0x58878c[_0x2cefc9(0x150)][_0x2cefc9(0x136)]===this[_0x2cefc9(0xf2)]['getMemberID']())return;this[_0x2cefc9(0x104)]==='idle'&&this[_0x2cefc9(0x11b)]();const _0x3ccfb9=_0x58878c['data'][_0x2cefc9(0xf5)];Object[_0x2cefc9(0x125)](_0x3ccfb9)[_0x2cefc9(0x135)](_0x445746=>{var _0xd34acf=_0x2cefc9;this[_0xd34acf(0x160)][_0xd34acf(0x111)](_0x445746['id'],_0x445746[_0xd34acf(0xd7)]?JSON[_0xd34acf(0xf8)](_0x445746[_0xd34acf(0xd7)]):null,{'fromCollab':!0x0});});}[_0x4c35df(0x11c)](){var _0x78934a=_0x4c35df,_0x154627;this[_0x78934a(0x10b)][_0x78934a(0x165)](_0x78934a(0x103)),(_0x154627=this[_0x78934a(0x113)])==null||_0x154627['dispose']();}[_0x4c35df(0xcc)](){var _0x53759b=_0x4c35df;this[_0x53759b(0x10b)][_0x53759b(0x165)](_0x53759b(0x149)),this['_fetchOperations']();}};C=Z([f(0x2,_0x596770),f(0x3,_0x214de5(L)),f(0x4,_0x49ea3a)],C);function ye(){var _0x557853=_0x4c35df;const _0x567677=_0x595204(m),_0x337a72=_0x595204(_0x9ee18),_0x46d938=_0xc95284(()=>_0x337a72[_0x557853(0xe8)](_0x5d5736[_0x557853(0x142)]),void 0x0,!0x1,[]),[_0x1086c1,_0x562109]=_0xbbc3fb(null),[_0x327e3b,_0x296b5d]=_0xbbc3fb(h[_0x557853(0x11e)]),_0x393962=_0x266191(null);return _0x13fae4(()=>(_0x46d938&&_0x567677[_0x557853(0xef)](_0x46d938['getUnitId']())[_0x557853(0x14c)](_0x182736=>{var _0x7fba0a=_0x557853;_0x562109(_0x182736),_0x393962[_0x7fba0a(0xec)]=_0x182736['status$'][_0x7fba0a(0x134)](_0x330193=>{_0x296b5d(_0x330193);});}),()=>{var _0x726587=_0x557853,_0x1ba210;(_0x1ba210=_0x393962[_0x726587(0xec)])==null||_0x1ba210[_0x726587(0xe1)](),_0x393962[_0x726587(0xec)]=null;}),[_0x46d938,_0x567677]),_0x1086c1?_0x29fd32(_0x380dce,{'align':_0x557853(0x140),'disabled':_0x327e3b===h[_0x557853(0x110)],'className':_0x557853(0x137),'overlay':_0x29fd32(Re,{'status':_0x327e3b,'coordinator':_0x1086c1}),'children':_0x29fd32('button',{'className':_0x1613e6(_0x557853(0x124),{'univer-cursor-not-allowed':_0x327e3b===h[_0x557853(0x110)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x327e3b!==h[_0x557853(0x110)]}),'type':_0x557853(0x14a),'children':_0x29fd32(B,{'className':_0x557853(0x15c)})})}):null;}function Re(_0x18e12d){var _0x2483cf=_0x4c35df;const {status:_0x2058e7,coordinator:_0x1e5028}=_0x18e12d;switch(_0x2058e7){case h[_0x2483cf(0x11e)]:return _0x29fd32(Pe,{'coordinator':_0x1e5028});case h[_0x2483cf(0xb3)]:return _0x29fd32(Ae,{'coordinator':_0x1e5028});case h[_0x2483cf(0xd5)]:return _0x29fd32(Te,{'coordinator':_0x1e5028});case h[_0x2483cf(0x110)]:return _0x29fd32(Fe,{});case h['PRESENTING']:return _0x29fd32($e,{'coordinator':_0x1e5028});default:return null;}}function Pe(_0x121a9a){var _0x3d3729=_0x4c35df;const {coordinator:_0x544c28}=_0x121a9a;return _0x3cea35(_0x187468,{'children':[_0x29fd32(_0x3d3729(0x147),{'className':_0x3d3729(0x13d),'children':_0x3d3729(0x161)}),_0x29fd32(_0x5c5ef5,{'onClick':()=>_0x544c28[_0x3d3729(0xe0)](),'children':_0x3d3729(0xc3)})]});}function Ae(_0x594e23){var _0x27031a=_0x4c35df;const {coordinator:_0x4518de}=_0x594e23;return _0x3cea35(_0x187468,{'children':[_0x29fd32(_0x27031a(0x147),{'className':_0x27031a(0x13d),'children':_0x27031a(0xb9)}),_0x29fd32(_0x5c5ef5,{'onClick':()=>_0x4518de['stopFollowing'](),'children':_0x27031a(0xdb)})]});}function Te(_0xbb026d){var _0x49b7e5=_0x4c35df;const {coordinator:_0x5034de}=_0xbb026d;return _0x3cea35(_0x187468,{'children':[_0x29fd32(_0x49b7e5(0x147),{'className':_0x49b7e5(0x13d),'children':_0x49b7e5(0x158)}),_0x29fd32(_0x5c5ef5,{'variant':_0x49b7e5(0x14f),'onClick':()=>_0x5034de[_0x49b7e5(0xd2)](),'children':_0x49b7e5(0x11d)})]});}function $e(_0x4c0556){var _0x2bf205=_0x4c35df;const {coordinator:_0x467e22}=_0x4c0556;return _0x3cea35(_0x187468,{'children':[_0x29fd32(_0x2bf205(0x147),{'className':_0x2bf205(0x13d),'children':_0x2bf205(0xd9)}),_0x29fd32(_0x5c5ef5,{'variant':_0x2bf205(0xfa),'onClick':()=>_0x467e22[_0x2bf205(0x11f)](),'children':_0x2bf205(0xbc)})]});}function Fe(){var _0x2a1718=_0x4c35df;return _0x29fd32(_0x187468,{'children':_0x2a1718(0xbd)});}var He=Object[_0x4c35df(0x153)],je=(_0x5150ca,_0x919795,_0x12ba96,_0x14d82c)=>{var _0x1daf1a=_0x4c35df;for(var _0x41faa1=_0x14d82c>0x1?void 0x0:_0x14d82c?He(_0x919795,_0x12ba96):_0x919795,_0x4fab83=_0x5150ca[_0x1daf1a(0x148)]-0x1,_0x16607a;_0x4fab83>=0x0;_0x4fab83--)(_0x16607a=_0x5150ca[_0x4fab83])&&(_0x41faa1=_0x16607a(_0x41faa1)||_0x41faa1);return _0x41faa1;},T=(_0x26802a,_0x3b6b41)=>(_0x5d294e,_0x32e091)=>_0x3b6b41(_0x5d294e,_0x32e091,_0x26802a);let I=class extends _0x1f1ed5{constructor(_0xbb31d4,_0x487fbb){var _0x2e276f=_0x4c35df;super(),this['_injector']=_0xbb31d4,this[_0x2e276f(0xe9)]=_0x487fbb,this[_0x2e276f(0x10e)]();}[_0x4c35df(0x10e)](){var _0x523820=_0x4c35df;this[_0x523820(0xc1)](this['_uiPartsService'][_0x523820(0x14e)](_0x38120b[_0x523820(0xc0)],()=>_0x5368f4(ye,this[_0x523820(0x14b)])));}};I=je([T(0x0,_0x214de5(_0x55d5e8)),T(0x1,_0x868a60)],I);const Ue=_0x4c35df(0xd3),$={};var Ve=Object[_0x4c35df(0x153)],Me=(_0x452522,_0xc1f363,_0xb0bd29,_0x39ac42)=>{var _0x4f48a9=_0x4c35df;for(var _0x1b8f96=_0x39ac42>0x1?void 0x0:_0x39ac42?Ve(_0xc1f363,_0xb0bd29):_0xc1f363,_0x3a52ed=_0x452522[_0x4f48a9(0x148)]-0x1,_0x1e3042;_0x3a52ed>=0x0;_0x3a52ed--)(_0x1e3042=_0x452522[_0x3a52ed])&&(_0x1b8f96=_0x1e3042(_0x1b8f96)||_0x1b8f96);return _0x1b8f96;},ke=(_0x3a84d9,_0x5d6826)=>(_0x41a159,_0x8f3c4f)=>_0x5d6826(_0x41a159,_0x8f3c4f,_0x3a84d9);let b=class extends _0x1f1ed5{constructor(_0x1ec0da){var _0x396fe5=_0x4c35df;super(),this[_0x396fe5(0xd8)]=_0x1ec0da,this[_0x396fe5(0xb6)]();}[_0x4c35df(0xb6)](){var _0x4d4aac=_0x4c35df;[_0x548d0f['id'],_0x50482e['id'],_0x5b6936['id']][_0x4d4aac(0x135)](_0x36521d=>{var _0x2625d2=_0x4d4aac;this[_0x2625d2(0xc1)](this[_0x2625d2(0xd8)][_0x2625d2(0x166)](_0x36521d));});}};b=Me([ke(0x0,_0x214de5(L))],b);var Ge=Object['defineProperty'],We=Object[_0x4c35df(0x153)],Ye=(_0x384ebc,_0x41cf71,_0x5932ed)=>_0x41cf71 in _0x384ebc?Ge(_0x384ebc,_0x41cf71,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5932ed}):_0x384ebc[_0x41cf71]=_0x5932ed,Be=(_0x4079c4,_0x3507b1,_0x519a82,_0x327d81)=>{for(var _0x28207c=_0x327d81>0x1?void 0x0:_0x327d81?We(_0x3507b1,_0x519a82):_0x3507b1,_0x355ff8=_0x4079c4['length']-0x1,_0x1d68b3;_0x355ff8>=0x0;_0x355ff8--)(_0x1d68b3=_0x4079c4[_0x355ff8])&&(_0x28207c=_0x1d68b3(_0x28207c)||_0x28207c);return _0x28207c;},F=(_0x4cf3c2,_0x1db7c1)=>(_0x3dd3d8,_0x46c2b9)=>_0x1db7c1(_0x3dd3d8,_0x46c2b9,_0x4cf3c2),J=(_0x510819,_0x2c86c5,_0x1edac1)=>Ye(_0x510819,typeof _0x2c86c5!=_0x4c35df(0x141)?_0x2c86c5+'':_0x2c86c5,_0x1edac1);const Ze=_0x4c35df(0x105);let O=class extends _0xca36d6{constructor(_0x405d03=$,_0x45b987,_0x15fe92){var _0x5a7562=_0x4c35df;super(),this[_0x5a7562(0x117)]=_0x405d03,this[_0x5a7562(0x14b)]=_0x45b987,this[_0x5a7562(0x12f)]=_0x15fe92;const {..._0xa87cec}=_0x49df5f({},$,this[_0x5a7562(0x117)]);this[_0x5a7562(0x12f)][_0x5a7562(0x15f)](Ue,_0xa87cec);}[_0x4c35df(0x168)](){var _0x40c698=_0x4c35df;_0x161788(this[_0x40c698(0x14b)],_0x265c97([[L],[m],[b],[I]],this[_0x40c698(0x117)][_0x40c698(0xfe)])),_0x58f08e(this[_0x40c698(0x14b)],[[b]]);}[_0x4c35df(0x162)](){var _0x559feb=_0x4c35df;_0x58f08e(this[_0x559feb(0x14b)],[[I]]);}};J(O,_0x4c35df(0xb4),_0x5d5736['UNIVER_UNKNOWN']),J(O,_0x4c35df(0x118),Ze),O=Be([_0x13c7bc(_0x5f57c7),F(0x1,_0x214de5(_0x55d5e8)),F(0x2,_0x596770)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x32ae50=_0x5755;(function(_0x8ce006,_0x1c35e7){var _0x2e1d33=_0x5755,_0x57c114=_0x8ce006();while(!![]){try{var _0x1c80ae=-parseInt(_0x2e1d33(0x1c1))/0x1*(parseInt(_0x2e1d33(0x1c4))/0x2)+parseInt(_0x2e1d33(0x142))/0x3*(parseInt(_0x2e1d33(0x159))/0x4)+parseInt(_0x2e1d33(0x1a9))/0x5+parseInt(_0x2e1d33(0x173))/0x6+parseInt(_0x2e1d33(0x1cd))/0x7+-parseInt(_0x2e1d33(0x158))/0x8*(parseInt(_0x2e1d33(0x13e))/0x9)+-parseInt(_0x2e1d33(0x1cc))/0xa*(parseInt(_0x2e1d33(0x156))/0xb);if(_0x1c80ae===_0x1c35e7)break;else _0x57c114['push'](_0x57c114['shift']());}catch(_0x1c0d08){_0x57c114['push'](_0x57c114['shift']());}}}(_0x5c24,0xe2c70));var q=Object['defineProperty'],z=(_0xf2509f,_0x3f768f,_0x3b2295)=>_0x3f768f in _0xf2509f?q(_0xf2509f,_0x3f768f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b2295}):_0xf2509f[_0x3f768f]=_0x3b2295,d=(_0x1bb21f,_0x5653f9,_0x2cde75)=>z(_0x1bb21f,typeof _0x5653f9!=_0x32ae50(0x1c0)?_0x5653f9+'':_0x5653f9,_0x2cde75);import{CollaborationSessionService as _0x2f0736,SessionStatus as _0x5cfaf0,UniverCollaborationClientPlugin as _0x8aa761}from'@univerjs-pro/collaboration-client';import{Disposable as _0x5b5872,toDisposable as _0x3136f3,Inject as _0x41bb1b,IUniverInstanceService as _0xd4edc0,Injector as _0x699545,IConfigService as _0x2a6249,ICommandService as _0x20d4d5,RxDisposable as _0x1193ec,UniverInstanceType as _0x42912a,DisposableCollection as _0x486259,CommandType as _0x3a85bf,DependentOn as _0x4c2423,Plugin as _0xa7a041,merge as _0x370c55,registerDependencies as _0x2e052c,mergeOverrideWithDependencies as _0x55d9f8,touchDependencies as _0x8ed971}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x556f0f,InsertSheetMutation as _0x47ea3c}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x1c6404,SetScrollOperation as _0x39ce24}from'@univerjs/sheets-ui';import{useDependency as _0x156a0a,useObservable as _0x33d8c6,IUIPartsService as _0x56d8c4,BuiltInUIPart as _0x242435,connectInjector as _0x3c7be2}from'@univerjs/ui';import{jsx as _0x562dfe,jsxs as _0x45bad6,Fragment as _0x51e910}from'react/jsx-runtime';import{Dropdown as _0x12d524,clsx as _0x15915a,Button as _0x6f90c7}from'@univerjs/design';import{forwardRef as _0x3aa4c6,useRef as _0xdada33,createElement as _0xe34dc0,useState as _0x4a8222,useEffect as _0x42fc52}from'react';import{CollaborationEvent as _0x59c816,parseProtocolChangeset as _0xe3adee}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x3e5eba,Subject as _0x866c38}from'rxjs';import{takeUntil as _0x2eb9a2,throttleTime as _0x487f7d}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x5b5872{constructor(){var _0x2113f6=_0x32ae50;super(...arguments),d(this,_0x2113f6(0x195),new Set()),d(this,_0x2113f6(0x192),new Set());}[_0x32ae50(0x1b1)](_0x1ea5e2){var _0x4a44b4=_0x32ae50;return this[_0x4a44b4(0x195)][_0x4a44b4(0x14f)](_0x1ea5e2),_0x3136f3(()=>this['_sharedOperations'][_0x4a44b4(0x1be)](_0x1ea5e2));}['registerInitialStateReporter'](_0xea9cc8){var _0x577583=_0x32ae50;return this[_0x577583(0x192)][_0x577583(0x14f)](_0xea9cc8),_0x3136f3(()=>this[_0x577583(0x192)]['delete'](_0xea9cc8));}['shouldShareOperation'](_0x3db482){var _0x1e015c=_0x32ae50;return this[_0x1e015c(0x195)][_0x1e015c(0x1c2)](_0x3db482);}['getInitialStates'](_0x2082d7){var _0x422d4a=_0x32ae50;return Array[_0x422d4a(0x1ec)](this['_reporters'])[_0x422d4a(0x141)](_0x3f2b52=>_0x3f2b52(_0x2082d7));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x37c372,_0xa0f671,_0x5e3d90,_0x3c1115)=>{var _0x5e0fff=_0x32ae50;for(var _0x5b214f=_0x3c1115>0x1?void 0x0:_0x3c1115?Ee(_0xa0f671,_0x5e3d90):_0xa0f671,_0x7ea82d=_0x37c372[_0x5e0fff(0x1a7)]-0x1,_0x1c7312;_0x7ea82d>=0x0;_0x7ea82d--)(_0x1c7312=_0x37c372[_0x7ea82d])&&(_0x5b214f=_0x1c7312(_0x5b214f)||_0x5b214f);return _0x5b214f;},Ne=(_0x4ce89e,_0x5dcbb1)=>(_0x286e4a,_0x1a116e)=>_0x5dcbb1(_0x286e4a,_0x1a116e,_0x4ce89e);let m=class extends _0x5b5872{constructor(_0x57f8e7){var _0x2e3d91=_0x32ae50;super(),this[_0x2e3d91(0x15b)]=_0x57f8e7,this[_0x2e3d91(0x188)]();}[_0x32ae50(0x188)](){[_0x1c6404['id'],_0x39ce24['id'],_0x556f0f['id']]['forEach'](_0x20d061=>{var _0x1feccf=_0x5755;this['disposeWithMe'](this['_liveShareService'][_0x1feccf(0x1b1)](_0x20d061));});}};m=we([Ne(0x0,_0x41bb1b(L))],m);var c=function(){var _0x1491ea=_0x32ae50;return c=Object[_0x1491ea(0x1ce)]||function(_0x12c76e){var _0x49ddd7=_0x1491ea;for(var _0x2214de,_0x54f82d=0x1,_0x14ecde=arguments[_0x49ddd7(0x1a7)];_0x54f82d<_0x14ecde;_0x54f82d++){_0x2214de=arguments[_0x54f82d];for(var _0x3362d1 in _0x2214de)Object[_0x49ddd7(0x1d3)][_0x49ddd7(0x1d1)]['call'](_0x2214de,_0x3362d1)&&(_0x12c76e[_0x3362d1]=_0x2214de[_0x3362d1]);}return _0x12c76e;},c['apply'](this,arguments);},Ce=function(_0xebf120,_0x332644){var _0xf5d1a0=_0x32ae50,_0x38f929={};for(var _0x189b45 in _0xebf120)Object[_0xf5d1a0(0x1d3)][_0xf5d1a0(0x1d1)][_0xf5d1a0(0x13b)](_0xebf120,_0x189b45)&&_0x332644[_0xf5d1a0(0x1cf)](_0x189b45)<0x0&&(_0x38f929[_0x189b45]=_0xebf120[_0x189b45]);if(_0xebf120!=null&&typeof Object[_0xf5d1a0(0x1da)]=='function'){for(var _0x28e99b=0x0,_0x189b45=Object[_0xf5d1a0(0x1da)](_0xebf120);_0x28e99b<_0x189b45[_0xf5d1a0(0x1a7)];_0x28e99b++)_0x332644[_0xf5d1a0(0x1cf)](_0x189b45[_0x28e99b])<0x0&&Object[_0xf5d1a0(0x1d3)]['propertyIsEnumerable'][_0xf5d1a0(0x13b)](_0xebf120,_0x189b45[_0x28e99b])&&(_0x38f929[_0x189b45[_0x28e99b]]=_0xebf120[_0x189b45[_0x28e99b]]);}return _0x38f929;},W=_0x3aa4c6(function(_0x104781,_0x48a931){var _0x183a70=_0x32ae50,_0x100506=_0x104781[_0x183a70(0x181)],_0x220a69=_0x104781['id'],_0x3d232b=_0x104781[_0x183a70(0x14d)],_0x45b96c=_0x104781[_0x183a70(0x1a5)],_0x2bf3ee=Ce(_0x104781,[_0x183a70(0x181),'id',_0x183a70(0x14d),'extend']),_0x1b8213=_0x183a70(0x14a)['concat'](_0x220a69,'\x20')[_0x183a70(0x1a6)](_0x3d232b||'')['trim'](),_0x38984e=_0xdada33('_'[_0x183a70(0x1a6)](Le()));return Y(_0x100506,''[_0x183a70(0x1a6)](_0x220a69),{'defIds':_0x100506[_0x183a70(0x164)],'idSuffix':_0x38984e[_0x183a70(0x157)]},c({'ref':_0x48a931,'className':_0x1b8213},_0x2bf3ee),_0x45b96c);});function Y(_0x32a514,_0x4fd550,_0x3a2ff1,_0x5b60d2,_0x504443){var _0x3a6cee=_0x32ae50;return _0xe34dc0(_0x32a514[_0x3a6cee(0x1b6)],c(c({'key':_0x4fd550},De(_0x32a514,_0x3a2ff1,_0x504443)),_0x5b60d2),(xe(_0x32a514,_0x3a2ff1)[_0x3a6cee(0x19c)]||[])['map'](function(_0x1bcc38,_0x4db660){var _0xfa7910=_0x3a6cee;return Y(_0x1bcc38,''[_0xfa7910(0x1a6)](_0x4fd550,'-')['concat'](_0x32a514[_0xfa7910(0x1b6)],'-')[_0xfa7910(0x1a6)](_0x4db660),_0x3a2ff1,void 0x0,_0x504443);}));}function De(_0x5d7ff5,_0x128069,_0x3d76b9){var _0x16647f=_0x32ae50,_0x192051=c({},_0x5d7ff5[_0x16647f(0x1a0)]);_0x3d76b9!=null&&_0x3d76b9[_0x16647f(0x174)]&&_0x192051['fill']===_0x16647f(0x174)&&(_0x192051[_0x16647f(0x1d8)]=_0x3d76b9[_0x16647f(0x174)]),_0x5d7ff5[_0x16647f(0x1b6)]===_0x16647f(0x1c7)&&_0x192051['id']&&(_0x192051['id']=_0x192051['id']+_0x128069[_0x16647f(0x14b)]),Object[_0x16647f(0x1b9)](_0x192051)[_0x16647f(0x1bd)](function(_0x4c11d0){var _0x1fab36=_0x16647f,_0x497a13=_0x4c11d0[0x0],_0x1c03ed=_0x4c11d0[0x1];_0x497a13==='mask'&&typeof _0x1c03ed==_0x1fab36(0x1ac)&&(_0x192051[_0x497a13]=_0x1c03ed[_0x1fab36(0x1a2)](/url\(#(.*)\)/,_0x1fab36(0x171)[_0x1fab36(0x1a6)](_0x128069[_0x1fab36(0x14b)],')')));});var _0x53efab=_0x128069[_0x16647f(0x164)];return!_0x53efab||_0x53efab[_0x16647f(0x1a7)]===0x0||(_0x5d7ff5[_0x16647f(0x1b6)]===_0x16647f(0x193)&&_0x192051[_0x16647f(0x18a)]&&(_0x192051['xlink:href']=_0x192051[_0x16647f(0x18a)]+_0x128069[_0x16647f(0x14b)]),Object['entries'](_0x192051)[_0x16647f(0x1bd)](function(_0x22fc0c){var _0x1b5e97=_0x16647f,_0x3439c9=_0x22fc0c[0x0],_0x11db37=_0x22fc0c[0x1];typeof _0x11db37=='string'&&(_0x192051[_0x3439c9]=_0x11db37['replace'](/url\(#(.*)\)/,_0x1b5e97(0x171)[_0x1b5e97(0x1a6)](_0x128069[_0x1b5e97(0x14b)],')')));})),_0x192051;}function xe(_0x4d0af7,_0x35fc31){var _0x1f91fb=_0x32ae50,_0x380690,_0x393217=_0x35fc31[_0x1f91fb(0x164)];return!_0x393217||_0x393217[_0x1f91fb(0x1a7)]===0x0?_0x4d0af7:_0x4d0af7[_0x1f91fb(0x1b6)]===_0x1f91fb(0x1a1)&&(!((_0x380690=_0x4d0af7[_0x1f91fb(0x19c)])===null||_0x380690===void 0x0)&&_0x380690[_0x1f91fb(0x1a7)])?c(c({},_0x4d0af7),{'children':_0x4d0af7[_0x1f91fb(0x19c)][_0x1f91fb(0x141)](function(_0x15f251){var _0x336d31=_0x1f91fb;return typeof _0x15f251[_0x336d31(0x1a0)]['id']==_0x336d31(0x1ac)&&_0x393217&&_0x393217[_0x336d31(0x18c)](_0x15f251['attrs']['id'])?c(c({},_0x15f251),{'attrs':c(c({},_0x15f251['attrs']),{'id':_0x15f251['attrs']['id']+_0x35fc31['idSuffix']})}):_0x15f251;})}):_0x4d0af7;}function Le(){var _0x1acd77=_0x32ae50;return Math[_0x1acd77(0x153)]()[_0x1acd77(0x1df)](0x24)[_0x1acd77(0x144)](0x2,0x8);}W['displayName']=_0x32ae50(0x16b);var ye={'tag':_0x32ae50(0x1ea),'attrs':{'xmlns':_0x32ae50(0x1ad),'fill':_0x32ae50(0x1e5),'viewBox':_0x32ae50(0x16d),'width':'1em','height':_0x32ae50(0x1d0)},'children':[{'tag':_0x32ae50(0x1b2),'attrs':{'fill':_0x32ae50(0x163),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x32ae50(0x1b2),'attrs':{'fill':_0x32ae50(0x163),'d':_0x32ae50(0x197),'fillRule':_0x32ae50(0x182),'clipRule':_0x32ae50(0x182)}}]},B=_0x3aa4c6(function(_0x844720,_0x27c2bd){return _0xe34dc0(W,Object['assign']({},_0x844720,{'id':'live-share-icon','ref':_0x27c2bd,'icon':ye}));});B[_0x32ae50(0x19b)]=_0x32ae50(0x1e1);function _0x5755(_0x44141c,_0x2d9484){var _0x5c248c=_0x5c24();return _0x5755=function(_0x5755ec,_0x3327fc){_0x5755ec=_0x5755ec-0x136;var _0x15b150=_0x5c248c[_0x5755ec];return _0x15b150;},_0x5755(_0x44141c,_0x2d9484);}var Re=Object[_0x32ae50(0x1b7)],Z=(_0x151416,_0x149f00,_0x5dc97b,_0x7ea06a)=>{var _0xd43e8f=_0x32ae50;for(var _0x2f8bcc=_0x7ea06a>0x1?void 0x0:_0x7ea06a?Re(_0x149f00,_0x5dc97b):_0x149f00,_0x5b7a26=_0x151416[_0xd43e8f(0x1a7)]-0x1,_0x534e0a;_0x5b7a26>=0x0;_0x5b7a26--)(_0x534e0a=_0x151416[_0x5b7a26])&&(_0x2f8bcc=_0x534e0a(_0x2f8bcc)||_0x2f8bcc);return _0x2f8bcc;},f=(_0x55b9cc,_0x489921)=>(_0xafcc7f,_0x4836f0)=>_0x489921(_0xafcc7f,_0x4836f0,_0x55b9cc);let I=class extends _0x1193ec{constructor(_0x36581d,_0x3bc261,_0x53965a){var _0x2b2f11=_0x32ae50;super(),d(this,_0x2b2f11(0x15f),new Map()),(this['_univerInstanceService']=_0x36581d,this['_injector']=_0x3bc261,this[_0x2b2f11(0x1bb)]=_0x53965a,this[_0x2b2f11(0x188)]());}async[_0x32ae50(0x176)](_0x35681c){var _0xe67912=_0x32ae50;return this[_0xe67912(0x15f)][_0xe67912(0x1c2)](_0x35681c)||await this['_startLiveShareCoordinator'](_0x35681c),this[_0xe67912(0x15f)][_0xe67912(0x17c)](_0x35681c);}[_0x32ae50(0x188)](){var _0x161d49=_0x32ae50;this[_0x161d49(0x1ae)][_0x161d49(0x14c)](_0x42912a[_0x161d49(0x190)])[_0x161d49(0x1d6)](_0x2eb9a2(this[_0x161d49(0x1dd)]))[_0x161d49(0x19d)](async _0x44229c=>{var _0x6d4b7a=_0x161d49;const _0x2c46b5=_0x44229c[_0x6d4b7a(0x169)]();this[_0x6d4b7a(0x15f)][_0x6d4b7a(0x1c2)](_0x2c46b5)||this[_0x6d4b7a(0x1b4)](_0x2c46b5);}),this[_0x161d49(0x1ae)][_0x161d49(0x1dc)](_0x42912a['UNIVER_SHEET'])[_0x161d49(0x1d6)](_0x2eb9a2(this['dispose$']))['subscribe'](_0xbe83cd=>{var _0x161974=_0x161d49;const _0x5503c4=_0xbe83cd[_0x161974(0x169)](),_0x23cf07=this[_0x161974(0x15f)][_0x161974(0x17c)](_0x5503c4);_0x23cf07==null||_0x23cf07[_0x161974(0x175)]();});}async[_0x32ae50(0x1b4)](_0x16570c){var _0xfaffc6=_0x32ae50;const _0xf9ff8f=await this[_0xfaffc6(0x1bb)][_0xfaffc6(0x18b)](_0x16570c),_0xeae2c1=this[_0xfaffc6(0x1c8)]['createInstance'](C,_0x16570c,_0xf9ff8f);return _0xeae2c1[_0xfaffc6(0x183)](),this[_0xfaffc6(0x15f)][_0xfaffc6(0x1e6)](_0x16570c,_0xeae2c1),_0xeae2c1;}};I=Z([f(0x0,_0xd4edc0),f(0x1,_0x41bb1b(_0x699545)),f(0x2,_0x41bb1b(_0x2f0736))],I);var h=(_0x43ab39=>(_0x43ab39[_0x32ae50(0x19a)]=_0x32ae50(0x1cb),_0x43ab39[_0x32ae50(0x1e4)]=_0x32ae50(0x1e9),_0x43ab39[_0x32ae50(0x1d4)]=_0x32ae50(0x19f),_0x43ab39['NOT_FOLLOWING']=_0x32ae50(0x160),_0x43ab39[_0x32ae50(0x1e3)]='presenting',_0x43ab39))(h||{});const Pe=_0x32ae50(0x177),Ae=0xc8;let C=class extends _0x1193ec{constructor(_0x5df433,_0x54ee2b,_0x4a950c,_0x4a1d9d,_0xba94cd){var _0x397b5b=_0x32ae50;super(),d(this,'_status$',new _0x3e5eba('idle')),d(this,_0x397b5b(0x191),this[_0x397b5b(0x1a8)][_0x397b5b(0x13c)]()),d(this,_0x397b5b(0x188),!0x1),d(this,'_commandDisposable',null),d(this,_0x397b5b(0x1c5),null),(this['_unitID']=_0x5df433,this[_0x397b5b(0x155)]=_0x54ee2b,this[_0x397b5b(0x186)]=_0x4a950c,this[_0x397b5b(0x15b)]=_0x4a1d9d,this[_0x397b5b(0x162)]=_0xba94cd);}get[_0x32ae50(0x15a)](){var _0x2dfee5=_0x32ae50;return this[_0x2dfee5(0x1a8)][_0x2dfee5(0x19e)]();}[_0x32ae50(0x175)](){var _0x2be03c=_0x32ae50,_0x311b6d;(_0x311b6d=this['_commandDisposable'])==null||_0x311b6d[_0x2be03c(0x175)](),this[_0x2be03c(0x1a8)]['next'](_0x2be03c(0x1e9)),this[_0x2be03c(0x1a8)][_0x2be03c(0x1d5)]();}['init'](){var _0x149d38=_0x32ae50;this[_0x149d38(0x188)]||(this[_0x149d38(0x188)]=!0x0,this['_collabSession'][_0x149d38(0x1a3)][_0x149d38(0x1d6)](_0x2eb9a2(this[_0x149d38(0x1dd)]))['subscribe'](_0x367267=>{var _0x5162a7=_0x149d38;switch(_0x367267){case _0x5cfaf0[_0x5162a7(0x19a)]:this[_0x5162a7(0x1eb)]();break;case _0x5cfaf0[_0x5162a7(0x172)]:this[_0x5162a7(0x1ab)]();break;}}),this['_collabSession'][_0x149d38(0x17f)][_0x149d38(0x1d6)](_0x2eb9a2(this[_0x149d38(0x1dd)]))[_0x149d38(0x19d)](_0x59a657=>{var _0x16b2eb=_0x149d38;const {eventID:_0x28eb1b}=_0x59a657;switch(_0x28eb1b){case _0x59c816[_0x16b2eb(0x1b8)]:this['_handleNewHost'](_0x59a657);break;case _0x59c816[_0x16b2eb(0x16a)]:this[_0x16b2eb(0x184)](_0x59a657);break;case _0x59c816[_0x16b2eb(0x161)]:this['_handleTerminate']();break;case _0x59c816[_0x16b2eb(0x1aa)]:this[_0x16b2eb(0x1c9)](_0x59a657);break;}}));}[_0x32ae50(0x170)](){var _0xf4b5e5=_0x32ae50;this['_collabSession']['send']({'eventID':_0x59c816['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0xf4b5e5(0x155)][_0xf4b5e5(0x13f)]()}},this[_0xf4b5e5(0x1e8)]);}[_0x32ae50(0x187)](){var _0x337dfe=_0x32ae50;this['_status']===_0x337dfe(0x1d9)&&(this['_status$'][_0x337dfe(0x154)](_0x337dfe(0x1e9)),this[_0x337dfe(0x155)][_0x337dfe(0x13d)]({'eventID':_0x59c816[_0x337dfe(0x161)],'data':{'unitID':this[_0x337dfe(0x1e8)]}},this[_0x337dfe(0x1e8)]));}['startFollowing'](){var _0x5be2bf=_0x32ae50;this[_0x5be2bf(0x15a)]==='not-following'&&(this[_0x5be2bf(0x1a8)]['next'](_0x5be2bf(0x19f)),this[_0x5be2bf(0x137)]());}[_0x32ae50(0x15e)](){var _0xfc4178=_0x32ae50;this[_0xfc4178(0x15a)]==='following'&&this[_0xfc4178(0x189)]();}[_0x32ae50(0x166)](_0x3edbd3){var _0x3c7726=_0x32ae50;const {presenter:_0x1f1d9e}=_0x3edbd3[_0x3c7726(0x1a4)],_0x1f12be=this[_0x3c7726(0x155)][_0x3c7726(0x13f)]();this[_0x3c7726(0x1c5)]=_0x1f1d9e,_0x1f1d9e===_0x1f12be?(this[_0x3c7726(0x189)](),this[_0x3c7726(0x179)]()):this['_status']!==_0x3c7726(0x160)&&(this[_0x3c7726(0x1af)](),this['_startFollowing']());}[_0x32ae50(0x148)](){var _0x3fa08f=_0x32ae50;const _0x58be42={'eventID':_0x59c816[_0x3fa08f(0x136)]};this[_0x3fa08f(0x155)][_0x3fa08f(0x13d)](_0x58be42,this['_unitID']);}[_0x32ae50(0x180)](){var _0x24d51f=_0x32ae50;this['_presenter']=null,this['_status']!==_0x24d51f(0x1d9)&&this[_0x24d51f(0x13a)]();}[_0x32ae50(0x1c9)](_0x2a856a){var _0x292b80=_0x32ae50;if(this[_0x292b80(0x15a)]==='following'&&this[_0x292b80(0x1c5)]===_0x2a856a[_0x292b80(0x1a4)][_0x292b80(0x199)]){const _0x12ba99=_0xe3adee(_0x2a856a[_0x292b80(0x1a4)])[_0x292b80(0x185)][_0x292b80(0x198)]()[_0x292b80(0x1e2)](_0x3f9f80=>_0x3f9f80['id']===_0x47ea3c['id']);if(_0x12ba99){const _0x436ec1=_0x12ba99[_0x292b80(0x1b0)][_0x292b80(0x194)],_0x3798b1=_0x12ba99[_0x292b80(0x1b0)][_0x292b80(0x165)]['id'];setTimeout(()=>{var _0x5e833e=_0x292b80;this[_0x5e833e(0x162)][_0x5e833e(0x151)](_0x556f0f['id'],{'unitId':_0x436ec1,'subUnitId':_0x3798b1},{'fromCollab':!0x0});});}}}[_0x32ae50(0x179)](){var _0x4ed13f=_0x32ae50;this['_status$'][_0x4ed13f(0x154)](_0x4ed13f(0x1d9));const _0x50e751=new Map(),_0x6a423c=this['_commandDisposable']=new _0x486259();_0x6a423c['add'](_0x3136f3(()=>{var _0x3f5abc=_0x4ed13f;_0x50e751[_0x3f5abc(0x1bd)](_0xf7ae9b=>_0xf7ae9b['complete']()),_0x50e751['clear']();})),_0x6a423c[_0x4ed13f(0x14f)](this[_0x4ed13f(0x162)][_0x4ed13f(0x149)](_0x39b618=>{var _0x330a13=_0x4ed13f,_0x2f1fbf;if(_0x39b618[_0x330a13(0x1d2)]!==_0x3a85bf['OPERATION']||!this[_0x330a13(0x15b)][_0x330a13(0x1bf)](_0x39b618['id']))return;const {id:_0x46c762}=_0x39b618;let _0x53ae1c;_0x50e751[_0x330a13(0x1c2)](_0x46c762)?_0x53ae1c=_0x50e751[_0x330a13(0x17c)](_0x46c762):(_0x53ae1c=new _0x866c38(),_0x50e751['set'](_0x46c762,_0x53ae1c),_0x53ae1c[_0x330a13(0x1d6)](_0x487f7d((_0x2f1fbf=this[_0x330a13(0x186)][_0x330a13(0x168)](Pe))!=null?_0x2f1fbf:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x330a13(0x19d)](_0x2ea5dc=>{var _0xcc4d22=_0x330a13;this[_0xcc4d22(0x155)][_0xcc4d22(0x13d)]({'eventID':_0x59c816[_0xcc4d22(0x16a)],'data':{'unitID':this[_0xcc4d22(0x1e8)],'operations':{[_0x2ea5dc['id']]:{'id':_0x2ea5dc['id'],'params':JSON[_0xcc4d22(0x1e0)](_0x2ea5dc['params'])}}}},this['_unitID']);})),_0x53ae1c[_0x330a13(0x154)](_0x39b618);})),this['_liveShareService'][_0x4ed13f(0x1ca)](this[_0x4ed13f(0x1e8)])[_0x4ed13f(0x1bd)](_0x27404c=>this[_0x4ed13f(0x155)]['send']({'eventID':_0x59c816[_0x4ed13f(0x16a)],'data':{'unitID':this[_0x4ed13f(0x1e8)],'operations':{[_0x27404c['id']]:{'id':_0x27404c['id'],'params':JSON[_0x4ed13f(0x1e0)](_0x27404c[_0x4ed13f(0x1b0)])}}}},this['_unitID']));}[_0x32ae50(0x1af)](){var _0x5db53c=_0x32ae50,_0x527b34;this[_0x5db53c(0x1a8)]['next']('idle'),(_0x527b34=this[_0x5db53c(0x1bc)])==null||_0x527b34['dispose'](),this[_0x5db53c(0x1bc)]=null;}[_0x32ae50(0x137)](){var _0x5a7887=_0x32ae50,_0x1ed7d0;(_0x1ed7d0=this[_0x5a7887(0x1bc)])==null||_0x1ed7d0[_0x5a7887(0x175)](),this[_0x5a7887(0x1a8)][_0x5a7887(0x154)](_0x5a7887(0x19f));}['_beIdle'](){var _0x45424d=_0x32ae50,_0x24ad61;this[_0x45424d(0x1a8)][_0x45424d(0x154)]('idle'),(_0x24ad61=this[_0x45424d(0x1bc)])==null||_0x24ad61['dispose'](),this[_0x45424d(0x1bc)]=null;}[_0x32ae50(0x189)](){var _0x30b65d=_0x32ae50,_0x4c5092;this['_status$'][_0x30b65d(0x154)](_0x30b65d(0x160)),(_0x4c5092=this[_0x30b65d(0x1bc)])==null||_0x4c5092['dispose']();}[_0x32ae50(0x184)](_0x1dece2){var _0x108663=_0x32ae50;if([_0x108663(0x1d9),_0x108663(0x160),'offline'][_0x108663(0x18c)](this['_status'])||!_0x1dece2[_0x108663(0x1a4)][_0x108663(0x15c)]||_0x1dece2[_0x108663(0x1a4)][_0x108663(0x15c)]===this[_0x108663(0x155)][_0x108663(0x13f)]())return;this[_0x108663(0x15a)]===_0x108663(0x1e9)&&this['_startFollowing']();const _0x196d2b=_0x1dece2['data'][_0x108663(0x152)];Object[_0x108663(0x17e)](_0x196d2b)[_0x108663(0x1bd)](_0x3e8839=>{var _0x1a9b8c=_0x108663;this[_0x1a9b8c(0x162)][_0x1a9b8c(0x151)](_0x3e8839['id'],_0x3e8839[_0x1a9b8c(0x1b0)]?JSON[_0x1a9b8c(0x16f)](_0x3e8839['params']):null,{'fromCollab':!0x0});});}[_0x32ae50(0x1eb)](){var _0x577a0e=_0x32ae50,_0x2c677f;this[_0x577a0e(0x1a8)][_0x577a0e(0x154)](_0x577a0e(0x1cb)),(_0x2c677f=this[_0x577a0e(0x1bc)])==null||_0x2c677f[_0x577a0e(0x175)]();}[_0x32ae50(0x1ab)](){var _0x8c966e=_0x32ae50;this[_0x8c966e(0x1a8)][_0x8c966e(0x154)](_0x8c966e(0x1e9)),this[_0x8c966e(0x148)]();}};function _0x5c24(){var _0x3337d2=['memberID','OFFLINE','displayName','children','subscribe','getValue','following','attrs','defs','replace','sessionStatus$','data','extend','concat','length','_status$','2445885lIzKkt','NEW_CHANGESETS','_handleOnline','string','http://www.w3.org/2000/svg','_univerInstanceService','_stopPresenting','params','registerSharedOperation','path','univer-size-4','_startLiveShareCoordinator','You\x27are\x20offline.','tag','getOwnPropertyDescriptor','LIVESHARE_NEW_HOST','entries','onRendered','_collabSessionService','_commandDisposable','forEach','delete','shouldShareOperation','symbol','46787hxepmc','has','Stop\x20following','34XsPisL','_presenter','end','mask','_injector','_handleNewChangeSets','getInitialStates','offline','25762570luceBV','12162087VUCAFK','assign','indexOf','1em','hasOwnProperty','type','prototype','FOLLOWING','complete','pipe','You\x27re\x20not\x20following\x20the\x20presenter','fill','presenting','getOwnPropertySymbols','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','getTypeOfUnitDisposed$','dispose$','univer-mb-3\x20univer-w-full\x20univer-text-sm','toString','stringify','LiveShareIcon','find','PRESENTING','IDLE','none','set','defineProperty','_unitID','idle','svg','_handleOffline','from','NOT_FOLLOWING','LIVESHARE_FETCH_OPERATIONS','_startFollowing','disposeWithMe','onStarting','_beIdle','call','asObservable','send','63kBIoGv','getMemberID','setConfig','map','3lTcani','startFollowing','substring','HEADER_MENU','UNIVER_LIVE_SHARE_PLUGIN','_uiPartsService','_fetchOperations','onCommandExecuted','univerjs-icon\x20univerjs-icon-','idSuffix','getTypeOfUnitAdded$','className','unsubscribe','add','Start','executeCommand','operations','random','next','_collabSession','11MICyxO','current','1051960ZXOMnb','5540092TqFazT','_status','_liveShareService','presenter','You\x27re\x20presenting\x20the\x20document','stopFollowing','_entities','not-following','LIVESHARE_TERMINATE','_commandService','currentColor','defIds','sheet','_handleNewHost','then','getConfig','getUnitId','LIVESHARE_OPERATION','UniverIcon','Start\x20following','0\x200\x2017\x2017','_mountLiveShare','parse','tryStartPresenting','url(#$1','ONLINE','9656040BmjXrn','colorChannel1','dispose','getLiveShareCoordinator','SAME_OPERATION_SHARE_INTERVAL','UNIVER_UNKNOWN','_startPresenting','Present\x20this\x20document','Stop\x20presenting','get','registerComponent','values','event$','_handleTerminate','icon','evenodd','init','_handleOperation','mutations','_configService','stopPresenting','_init','_stopFollowing','xlink:href','requireSession','includes','default','_config','text','UNIVER_SHEET','status$','_reporters','use','unitId','_sharedOperations','div','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','reverse'];_0x5c24=function(){return _0x3337d2;};return _0x5c24();}C=Z([f(0x2,_0x2a6249),f(0x3,_0x41bb1b(L)),f(0x4,_0x20d4d5)],C);function Te(){var _0x4b86ca=_0x32ae50;const _0x1ab6d7=_0x156a0a(I),_0x82657b=_0x156a0a(_0xd4edc0),_0x5b4e0c=_0x33d8c6(()=>_0x82657b['getCurrentTypeOfUnit$'](_0x42912a['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x542196,_0x5d0bbd]=_0x4a8222(null),[_0x123c4f,_0x3a26cd]=_0x4a8222(h[_0x4b86ca(0x1e4)]),_0x46154d=_0xdada33(null);return _0x42fc52(()=>(_0x5b4e0c&&_0x1ab6d7[_0x4b86ca(0x176)](_0x5b4e0c[_0x4b86ca(0x169)]())[_0x4b86ca(0x167)](_0x43c9b1=>{var _0x512253=_0x4b86ca;_0x5d0bbd(_0x43c9b1),_0x46154d['current']=_0x43c9b1['status$'][_0x512253(0x19d)](_0x4cc2a6=>{_0x3a26cd(_0x4cc2a6);});}),()=>{var _0x37c192=_0x4b86ca,_0x1f7582;(_0x1f7582=_0x46154d['current'])==null||_0x1f7582[_0x37c192(0x14e)](),_0x46154d[_0x37c192(0x157)]=null;}),[_0x5b4e0c,_0x1ab6d7]),_0x542196?_0x562dfe(_0x12d524,{'align':_0x4b86ca(0x1c6),'disabled':_0x123c4f===h[_0x4b86ca(0x19a)],'className':_0x4b86ca(0x1db),'overlay':_0x562dfe($e,{'status':_0x123c4f,'coordinator':_0x542196}),'children':_0x562dfe('button',{'className':_0x15915a('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x123c4f===h[_0x4b86ca(0x19a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x123c4f!==h[_0x4b86ca(0x19a)]}),'type':'button','children':_0x562dfe(B,{'className':_0x4b86ca(0x1b3)})})}):null;}function $e(_0x572960){var _0x4f1c32=_0x32ae50;const {status:_0x570d6e,coordinator:_0x52b7b2}=_0x572960;switch(_0x570d6e){case h[_0x4f1c32(0x1e4)]:return _0x562dfe(Fe,{'coordinator':_0x52b7b2});case h[_0x4f1c32(0x1d4)]:return _0x562dfe(He,{'coordinator':_0x52b7b2});case h[_0x4f1c32(0x1ed)]:return _0x562dfe(je,{'coordinator':_0x52b7b2});case h[_0x4f1c32(0x19a)]:return _0x562dfe(Ve,{});case h['PRESENTING']:return _0x562dfe(Ue,{'coordinator':_0x52b7b2});default:return null;}}function Fe(_0x2411c7){var _0x19f015=_0x32ae50;const {coordinator:_0x3f2624}=_0x2411c7;return _0x45bad6(_0x51e910,{'children':[_0x562dfe(_0x19f015(0x196),{'className':_0x19f015(0x1de),'children':_0x19f015(0x17a)}),_0x562dfe(_0x6f90c7,{'onClick':()=>_0x3f2624['tryStartPresenting'](),'children':_0x19f015(0x150)})]});}function He(_0xd3e692){var _0x56c8eb=_0x32ae50;const {coordinator:_0x461d7b}=_0xd3e692;return _0x45bad6(_0x51e910,{'children':[_0x562dfe(_0x56c8eb(0x196),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),_0x562dfe(_0x6f90c7,{'onClick':()=>_0x461d7b[_0x56c8eb(0x15e)](),'children':_0x56c8eb(0x1c3)})]});}function je(_0x4dd421){var _0x44458e=_0x32ae50;const {coordinator:_0x1ab757}=_0x4dd421;return _0x45bad6(_0x51e910,{'children':[_0x562dfe(_0x44458e(0x196),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x44458e(0x1d7)}),_0x562dfe(_0x6f90c7,{'variant':_0x44458e(0x18f),'onClick':()=>_0x1ab757[_0x44458e(0x143)](),'children':_0x44458e(0x16c)})]});}function Ue(_0x3ed01b){var _0x298919=_0x32ae50;const {coordinator:_0x320f33}=_0x3ed01b;return _0x45bad6(_0x51e910,{'children':[_0x562dfe(_0x298919(0x196),{'className':_0x298919(0x1de),'children':_0x298919(0x15d)}),_0x562dfe(_0x6f90c7,{'variant':_0x298919(0x18d),'onClick':()=>_0x320f33[_0x298919(0x187)](),'children':_0x298919(0x17b)})]});}function Ve(){var _0x6285a6=_0x32ae50;return _0x562dfe(_0x51e910,{'children':_0x6285a6(0x1b5)});}var Me=Object[_0x32ae50(0x1b7)],ke=(_0x1e832f,_0x18b8b9,_0x3fb7a5,_0x27f886)=>{for(var _0x57651e=_0x27f886>0x1?void 0x0:_0x27f886?Me(_0x18b8b9,_0x3fb7a5):_0x18b8b9,_0x18889d=_0x1e832f['length']-0x1,_0x2810f7;_0x18889d>=0x0;_0x18889d--)(_0x2810f7=_0x1e832f[_0x18889d])&&(_0x57651e=_0x2810f7(_0x57651e)||_0x57651e);return _0x57651e;},$=(_0x31877b,_0x48c2f2)=>(_0x417543,_0x1eb655)=>_0x48c2f2(_0x417543,_0x1eb655,_0x31877b);let b=class extends _0x5b5872{constructor(_0x1e469b,_0x560b32){var _0xd76bf=_0x32ae50;super(),this[_0xd76bf(0x1c8)]=_0x1e469b,this[_0xd76bf(0x147)]=_0x560b32,this[_0xd76bf(0x16e)]();}['_mountLiveShare'](){var _0x48ff97=_0x32ae50;this[_0x48ff97(0x138)](this[_0x48ff97(0x147)][_0x48ff97(0x17d)](_0x242435[_0x48ff97(0x145)],()=>_0x3c7be2(Te,this[_0x48ff97(0x1c8)])));}};b=ke([$(0x0,_0x41bb1b(_0x699545)),$(0x1,_0x56d8c4)],b);var Ge=Object[_0x32ae50(0x1e7)],We=Object[_0x32ae50(0x1b7)],Ye=(_0x17d43d,_0x11375d,_0x12f215)=>_0x11375d in _0x17d43d?Ge(_0x17d43d,_0x11375d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x12f215}):_0x17d43d[_0x11375d]=_0x12f215,Be=(_0x53edfd,_0x4afa6b,_0x455a2,_0x8fe4d5)=>{var _0x567b6e=_0x32ae50;for(var _0x70c504=_0x8fe4d5>0x1?void 0x0:_0x8fe4d5?We(_0x4afa6b,_0x455a2):_0x4afa6b,_0x3e3c52=_0x53edfd[_0x567b6e(0x1a7)]-0x1,_0x7d7e18;_0x3e3c52>=0x0;_0x3e3c52--)(_0x7d7e18=_0x53edfd[_0x3e3c52])&&(_0x70c504=_0x7d7e18(_0x70c504)||_0x70c504);return _0x70c504;},F=(_0x393c59,_0x149428)=>(_0x368eda,_0x116cd1)=>_0x149428(_0x368eda,_0x116cd1,_0x393c59),J=(_0x1ae86a,_0xb89836,_0x16d43e)=>Ye(_0x1ae86a,typeof _0xb89836!=_0x32ae50(0x1c0)?_0xb89836+'':_0xb89836,_0x16d43e);const Ze=_0x32ae50(0x146);let O=class extends _0xa7a041{constructor(_0x493437=T,_0x1cfad2,_0x3e0297){var _0x2ab581=_0x32ae50;super(),this['_config']=_0x493437,this[_0x2ab581(0x1c8)]=_0x1cfad2,this['_configService']=_0x3e0297;const {..._0x59a0e0}=_0x370c55({},T,this['_config']);this['_configService'][_0x2ab581(0x140)](Oe,_0x59a0e0);}[_0x32ae50(0x139)](){var _0x5a4bd8=_0x32ae50;_0x2e052c(this[_0x5a4bd8(0x1c8)],_0x55d9f8([[L],[I],[m],[b]],this[_0x5a4bd8(0x18e)]['override'])),_0x8ed971(this[_0x5a4bd8(0x1c8)],[[m]]);}[_0x32ae50(0x1ba)](){_0x8ed971(this['_injector'],[[b]]);}};J(O,_0x32ae50(0x1d2),_0x42912a[_0x32ae50(0x178)]),J(O,'pluginName',Ze),O=Be([_0x4c2423(_0x8aa761),F(0x1,_0x41bb1b(_0x699545)),F(0x2,_0x2a6249)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x4c35df=_0x7bc6;(function(_0x41046a,_0x10f0d7){var _0x527b83=_0x7bc6,_0x16462c=_0x41046a();while(!![]){try{var _0x13eb75=parseInt(_0x527b83(0x163))/0x1+-parseInt(_0x527b83(0x13e))/0x2*(parseInt(_0x527b83(0x115))/0x3)+parseInt(_0x527b83(0x116))/0x4+parseInt(_0x527b83(0x131))/0x5+-parseInt(_0x527b83(0xc5))/0x6+-parseInt(_0x527b83(0x128))/0x7*(parseInt(_0x527b83(0x151))/0x8)+parseInt(_0x527b83(0x13b))/0x9*(parseInt(_0x527b83(0xb7))/0xa);if(_0x13eb75===_0x10f0d7)break;else _0x16462c['push'](_0x16462c['shift']());}catch(_0x3860bb){_0x16462c['push'](_0x16462c['shift']());}}}(_0x4cc9,0xecbf0));var q=Object[_0x4c35df(0x146)],z=(_0x32da0d,_0x20d3a4,_0xdfeb22)=>_0x20d3a4 in _0x32da0d?q(_0x32da0d,_0x20d3a4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xdfeb22}):_0x32da0d[_0x20d3a4]=_0xdfeb22,d=(_0x177f51,_0x40a53c,_0x948a31)=>z(_0x177f51,typeof _0x40a53c!=_0x4c35df(0x141)?_0x40a53c+'':_0x40a53c,_0x948a31);import{Disposable as _0x1f1ed5,toDisposable as _0x5cf8b6,IUniverInstanceService as _0x9ee18,Inject as _0x214de5,Injector as _0x55d5e8,IConfigService as _0x596770,ICommandService as _0x49ea3a,RxDisposable as _0x49bb96,UniverInstanceType as _0x5d5736,DisposableCollection as _0x457240,CommandType as _0x4dd41a,DependentOn as _0x13c7bc,Plugin as _0xca36d6,merge as _0x49df5f,registerDependencies as _0x161788,mergeOverrideWithDependencies as _0x265c97,touchDependencies as _0x58f08e}from'@univerjs/core';import{useDependency as _0x595204,useObservable as _0xc95284,IUIPartsService as _0x868a60,BuiltInUIPart as _0x38120b,connectInjector as _0x5368f4}from'@univerjs/ui';function _0x7bc6(_0x57c73a,_0x338fb7){var _0x4cc9b4=_0x4cc9();return _0x7bc6=function(_0x7bc6cd,_0x2c20a8){_0x7bc6cd=_0x7bc6cd-0xb1;var _0x1a9931=_0x4cc9b4[_0x7bc6cd];return _0x1a9931;},_0x7bc6(_0x57c73a,_0x338fb7);}import{jsx as _0x29fd32,jsxs as _0x3cea35,Fragment as _0x187468}from'react/jsx-runtime';import{Dropdown as _0x380dce,clsx as _0x1613e6,Button as _0x5c5ef5}from'@univerjs/design';import{forwardRef as _0x173ab3,useRef as _0x266191,createElement as _0x1ebd79,useState as _0xbbc3fb,useEffect as _0x13fae4}from'react';import{CollaborationEvent as _0x586cf6,parseProtocolChangeset as _0xb08ef}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xa24487,SessionStatus as _0x2facc0,UniverCollaborationClientPlugin as _0x5f57c7}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5b4069,SetWorksheetActiveOperation as _0x5b6936}from'@univerjs/sheets';import{BehaviorSubject as _0x2822eb,Subject as _0x5d5dbf}from'rxjs';import{takeUntil as _0x5d7190,throttleTime as _0xc2d5a7}from'rxjs/operators';import{SetZoomRatioOperation as _0x548d0f,SetScrollOperation as _0x50482e}from'@univerjs/sheets-ui';function _0x4cc9(){var _0x5f45f1=['init','idSuffix','not-following','override','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','hasOwnProperty','add','getUnitId','offline','_status','UNIVER_LIVE_SHARE_PLUGIN','_beIdle','OPERATION','_collabSessionService','getTypeOfUnitDisposed$','attrs','_status$','onCommandExecuted','getValue','_mountLiveShare','has','OFFLINE','executeCommand','stopFollowing','_commandDisposable','status$','102630JIVxLq','1110904qLyiBY','_config','pluginName','SAME_OPERATION_SHARE_INTERVAL','pipe','_startFollowing','_handleOffline','Start\x20following','IDLE','stopPresenting','presenting','propertyIsEnumerable','memberID','unitId','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','values','_univerInstanceService','mutations','6595463aoLgqH','children','complete','fill','replace','LIVESHARE_REQUEST_HOST','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_configService','_unitID','6879555JimmOC','icon','delete','subscribe','forEach','presenter','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','random','includes','_stopPresenting','21655350mfEzvs','call','univer-mb-3\x20univer-w-full\x20univer-text-sm','100buTWWn','stringify','end','symbol','UNIVER_SHEET','prototype','LIVESHARE_OPERATION','_sharedOperations','defineProperty','div','length','idle','button','_injector','then','getMemberID','registerComponent','text','data','8AmGrbb','url(#$1','getOwnPropertyDescriptor','apply','trim','indexOf','map','You\x27re\x20not\x20following\x20the\x20presenter','getInitialStates','entries','dispose','univer-size-4','none','className','setConfig','_commandService','Present\x20this\x20document','onRendered','1219867YZhopN','_handleNewChangeSets','next','registerSharedOperation','LIVESHARE_FETCH_OPERATIONS','onStarting','_presenter','_startPresenting','FOLLOWING','type','_handleNewHost','_init','10RnWiRH','registerInitialStateReporter','You\x27re\x20following\x20the\x20presenter','displayName','LIVESHARE_TERMINATE','Stop\x20presenting','You\x27are\x20offline.','sessionStatus$','send','HEADER_MENU','disposeWithMe','dispose$','Start','string','9943398gsEJNU','requireSession','get','shouldShareOperation','getConfig','set','reverse','_handleOnline','xlink:href','colorChannel1','tag','defs','event$','startFollowing','live-share.config','_startLiveShareCoordinator','NOT_FOLLOWING','LiveShareIcon','params','_liveShareService','You\x27re\x20presenting\x20the\x20document','assign','Stop\x20following','1em','concat','NEW_CHANGESETS','live-share-icon','tryStartPresenting','unsubscribe','toString','defIds','getTypeOfUnitAdded$','extend','_reporters','evenodd','getCurrentTypeOfUnit$','_uiPartsService','_handleTerminate','_fetchOperations','current','mask','0\x200\x2017\x2017','getLiveShareCoordinator','UniverIcon','use','_collabSession','path','_stopFollowing','operations','following','sheet','parse','_entities','default'];_0x4cc9=function(){return _0x5f45f1;};return _0x4cc9();}var c=function(){var _0x370feb=_0x4c35df;return c=Object[_0x370feb(0xda)]||function(_0x3d6542){var _0x47c5b4=_0x370feb;for(var _0x14d2d4,_0x2149bd=0x1,_0x19e90c=arguments[_0x47c5b4(0x148)];_0x2149bd<_0x19e90c;_0x2149bd++){_0x14d2d4=arguments[_0x2149bd];for(var _0xf03e78 in _0x14d2d4)Object[_0x47c5b4(0x143)][_0x47c5b4(0x100)][_0x47c5b4(0x13c)](_0x14d2d4,_0xf03e78)&&(_0x3d6542[_0xf03e78]=_0x14d2d4[_0xf03e78]);}return _0x3d6542;},c[_0x370feb(0x154)](this,arguments);},Oe=function(_0x25f212,_0x179dc4){var _0x2a5047=_0x4c35df,_0x521a10={};for(var _0x42acd7 in _0x25f212)Object['prototype'][_0x2a5047(0x100)]['call'](_0x25f212,_0x42acd7)&&_0x179dc4['indexOf'](_0x42acd7)<0x0&&(_0x521a10[_0x42acd7]=_0x25f212[_0x42acd7]);if(_0x25f212!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x6e7662=0x0,_0x42acd7=Object['getOwnPropertySymbols'](_0x25f212);_0x6e7662<_0x42acd7[_0x2a5047(0x148)];_0x6e7662++)_0x179dc4[_0x2a5047(0x156)](_0x42acd7[_0x6e7662])<0x0&&Object[_0x2a5047(0x143)][_0x2a5047(0x121)][_0x2a5047(0x13c)](_0x25f212,_0x42acd7[_0x6e7662])&&(_0x521a10[_0x42acd7[_0x6e7662]]=_0x25f212[_0x42acd7[_0x6e7662]]);}return _0x521a10;},W=_0x173ab3(function(_0x410a9d,_0x47159c){var _0x66e5fa=_0x4c35df,_0x34e866=_0x410a9d[_0x66e5fa(0x132)],_0x5ab8e4=_0x410a9d['id'],_0x490bba=_0x410a9d[_0x66e5fa(0x15e)],_0x509ee6=_0x410a9d[_0x66e5fa(0xe5)],_0x22298d=Oe(_0x410a9d,[_0x66e5fa(0x132),'id','className',_0x66e5fa(0xe5)]),_0x9e4b0c='univerjs-icon\x20univerjs-icon-'[_0x66e5fa(0xdd)](_0x5ab8e4,'\x20')[_0x66e5fa(0xdd)](_0x490bba||'')[_0x66e5fa(0x155)](),_0x156718=_0x266191('_'['concat'](Ne()));return Y(_0x34e866,''['concat'](_0x5ab8e4),{'defIds':_0x34e866[_0x66e5fa(0xe3)],'idSuffix':_0x156718[_0x66e5fa(0xec)]},c({'ref':_0x47159c,'className':_0x9e4b0c},_0x22298d),_0x509ee6);});function Y(_0x19fca1,_0x5477b9,_0xb53783,_0x34dac9,_0x3fa232){var _0x4017bb=_0x4c35df;return _0x1ebd79(_0x19fca1['tag'],c(c({'key':_0x5477b9},Ee(_0x19fca1,_0xb53783,_0x3fa232)),_0x34dac9),(we(_0x19fca1,_0xb53783)[_0x4017bb(0x129)]||[])[_0x4017bb(0x157)](function(_0x57b884,_0x11408a){var _0x2c80ac=_0x4017bb;return Y(_0x57b884,''[_0x2c80ac(0xdd)](_0x5477b9,'-')['concat'](_0x19fca1[_0x2c80ac(0xcf)],'-')[_0x2c80ac(0xdd)](_0x11408a),_0xb53783,void 0x0,_0x3fa232);}));}function Ee(_0x1fcceb,_0x30a19c,_0x19a1ca){var _0x2c8e65=_0x4c35df,_0x5a23f9=c({},_0x1fcceb['attrs']);_0x19a1ca!=null&&_0x19a1ca[_0x2c8e65(0xce)]&&_0x5a23f9['fill']===_0x2c8e65(0xce)&&(_0x5a23f9[_0x2c8e65(0x12b)]=_0x19a1ca[_0x2c8e65(0xce)]),_0x1fcceb[_0x2c8e65(0xcf)]===_0x2c8e65(0xed)&&_0x5a23f9['id']&&(_0x5a23f9['id']=_0x5a23f9['id']+_0x30a19c['idSuffix']),Object[_0x2c8e65(0x15a)](_0x5a23f9)[_0x2c8e65(0x135)](function(_0x1b205c){var _0x4357c9=_0x2c8e65,_0x4680c4=_0x1b205c[0x0],_0x8db7e8=_0x1b205c[0x1];_0x4680c4===_0x4357c9(0xed)&&typeof _0x8db7e8==_0x4357c9(0xc4)&&(_0x5a23f9[_0x4680c4]=_0x8db7e8[_0x4357c9(0x12c)](/url\(#(.*)\)/,_0x4357c9(0x152)[_0x4357c9(0xdd)](_0x30a19c[_0x4357c9(0xfc)],')')));});var _0x567f42=_0x30a19c[_0x2c8e65(0xe3)];return!_0x567f42||_0x567f42[_0x2c8e65(0x148)]===0x0||(_0x1fcceb[_0x2c8e65(0xcf)]===_0x2c8e65(0xf1)&&_0x5a23f9[_0x2c8e65(0xcd)]&&(_0x5a23f9['xlink:href']=_0x5a23f9[_0x2c8e65(0xcd)]+_0x30a19c[_0x2c8e65(0xfc)]),Object[_0x2c8e65(0x15a)](_0x5a23f9)['forEach'](function(_0x82365e){var _0x1c5a09=_0x2c8e65,_0xee7e3e=_0x82365e[0x0],_0x211957=_0x82365e[0x1];typeof _0x211957=='string'&&(_0x5a23f9[_0xee7e3e]=_0x211957[_0x1c5a09(0x12c)](/url\(#(.*)\)/,_0x1c5a09(0x152)[_0x1c5a09(0xdd)](_0x30a19c[_0x1c5a09(0xfc)],')')));})),_0x5a23f9;}function we(_0x382331,_0x837ab){var _0x259267=_0x4c35df,_0x4b406f,_0x5715a6=_0x837ab[_0x259267(0xe3)];return!_0x5715a6||_0x5715a6['length']===0x0?_0x382331:_0x382331[_0x259267(0xcf)]===_0x259267(0xd0)&&(!((_0x4b406f=_0x382331[_0x259267(0x129)])===null||_0x4b406f===void 0x0)&&_0x4b406f[_0x259267(0x148)])?c(c({},_0x382331),{'children':_0x382331[_0x259267(0x129)]['map'](function(_0x730ed4){var _0x43cdce=_0x259267;return typeof _0x730ed4[_0x43cdce(0x10a)]['id']==_0x43cdce(0xc4)&&_0x5715a6&&_0x5715a6['includes'](_0x730ed4['attrs']['id'])?c(c({},_0x730ed4),{'attrs':c(c({},_0x730ed4[_0x43cdce(0x10a)]),{'id':_0x730ed4[_0x43cdce(0x10a)]['id']+_0x837ab[_0x43cdce(0xfc)]})}):_0x730ed4;})}):_0x382331;}function Ne(){var _0x2829c7=_0x4c35df;return Math[_0x2829c7(0x138)]()[_0x2829c7(0xe2)](0x24)['substring'](0x2,0x8);}W[_0x4c35df(0xba)]=_0x4c35df(0xf0);var Ce={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4c35df(0x15d),'viewBox':_0x4c35df(0xee),'width':_0x4c35df(0xdc),'height':_0x4c35df(0xdc)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x4c35df(0xff)}},{'tag':_0x4c35df(0xf3),'attrs':{'fill':'currentColor','d':_0x4c35df(0x12e),'fillRule':'evenodd','clipRule':_0x4c35df(0xe7)}}]},B=_0x173ab3(function(_0x3e1a82,_0x34fbe8){var _0x49c871=_0x4c35df;return _0x1ebd79(W,Object[_0x49c871(0xda)]({},_0x3e1a82,{'id':_0x49c871(0xdf),'ref':_0x34fbe8,'icon':Ce}));});B[_0x4c35df(0xba)]=_0x4c35df(0xd6);class L extends _0x1f1ed5{constructor(){var _0xf6aab3=_0x4c35df;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0xf6aab3(0xe6),new Set());}[_0x4c35df(0x166)](_0x45c34e){var _0x2708e4=_0x4c35df;return this[_0x2708e4(0x145)][_0x2708e4(0x101)](_0x45c34e),_0x5cf8b6(()=>this[_0x2708e4(0x145)]['delete'](_0x45c34e));}[_0x4c35df(0xb8)](_0x420d58){var _0x2a1407=_0x4c35df;return this['_reporters']['add'](_0x420d58),_0x5cf8b6(()=>this[_0x2a1407(0xe6)][_0x2a1407(0x133)](_0x420d58));}['shouldShareOperation'](_0x1d51c0){var _0x407502=_0x4c35df;return this['_sharedOperations'][_0x407502(0x10f)](_0x1d51c0);}[_0x4c35df(0x159)](_0x4cfa81){var _0x1961dc=_0x4c35df;return Array['from'](this[_0x1961dc(0xe6)])[_0x1961dc(0x157)](_0x24771b=>_0x24771b(_0x4cfa81));}}var De=Object[_0x4c35df(0x153)],Z=(_0x17857d,_0x10c588,_0x5a6e8a,_0x2246b9)=>{for(var _0x33b7ca=_0x2246b9>0x1?void 0x0:_0x2246b9?De(_0x10c588,_0x5a6e8a):_0x10c588,_0x37f6fa=_0x17857d['length']-0x1,_0x4e1acc;_0x37f6fa>=0x0;_0x37f6fa--)(_0x4e1acc=_0x17857d[_0x37f6fa])&&(_0x33b7ca=_0x4e1acc(_0x33b7ca)||_0x33b7ca);return _0x33b7ca;},f=(_0x2979ae,_0x4fcce1)=>(_0x31ba67,_0x24f360)=>_0x4fcce1(_0x31ba67,_0x24f360,_0x2979ae);let m=class extends _0x49bb96{constructor(_0x51a3d7,_0x8c50fc,_0x5b6956){var _0x51f3fb=_0x4c35df;super(),d(this,'_entities',new Map()),(this[_0x51f3fb(0x126)]=_0x51a3d7,this['_injector']=_0x8c50fc,this[_0x51f3fb(0x108)]=_0x5b6956,this[_0x51f3fb(0xb6)]());}async[_0x4c35df(0xef)](_0x2f4ce4){var _0x50d374=_0x4c35df;return this[_0x50d374(0xf9)][_0x50d374(0x10f)](_0x2f4ce4)||await this[_0x50d374(0xd4)](_0x2f4ce4),this['_entities'][_0x50d374(0xc7)](_0x2f4ce4);}['_init'](){var _0x2a6de9=_0x4c35df;this[_0x2a6de9(0x126)][_0x2a6de9(0xe4)](_0x5d5736[_0x2a6de9(0x142)])[_0x2a6de9(0x11a)](_0x5d7190(this[_0x2a6de9(0xc2)]))[_0x2a6de9(0x134)](async _0x1c9a00=>{var _0x47621c=_0x2a6de9;const _0x1fa4c6=_0x1c9a00[_0x47621c(0x102)]();this[_0x47621c(0xf9)][_0x47621c(0x10f)](_0x1fa4c6)||this[_0x47621c(0xd4)](_0x1fa4c6);}),this[_0x2a6de9(0x126)][_0x2a6de9(0x109)](_0x5d5736[_0x2a6de9(0x142)])[_0x2a6de9(0x11a)](_0x5d7190(this['dispose$']))[_0x2a6de9(0x134)](_0x2d3a5f=>{var _0x2ddec3=_0x2a6de9;const _0x528735=_0x2d3a5f[_0x2ddec3(0x102)](),_0x67b325=this[_0x2ddec3(0xf9)][_0x2ddec3(0xc7)](_0x528735);_0x67b325==null||_0x67b325[_0x2ddec3(0x15b)]();});}async[_0x4c35df(0xd4)](_0x21a59f){var _0x17cc3b=_0x4c35df;const _0x586d2a=await this[_0x17cc3b(0x108)][_0x17cc3b(0xc6)](_0x21a59f),_0x224ef1=this[_0x17cc3b(0x14b)]['createInstance'](C,_0x21a59f,_0x586d2a);return _0x224ef1[_0x17cc3b(0xfb)](),this[_0x17cc3b(0xf9)][_0x17cc3b(0xca)](_0x21a59f,_0x224ef1),_0x224ef1;}};m=Z([f(0x0,_0x9ee18),f(0x1,_0x214de5(_0x55d5e8)),f(0x2,_0x214de5(_0xa24487))],m);var h=(_0x26ca3=>(_0x26ca3['OFFLINE']='offline',_0x26ca3[_0x4c35df(0x11e)]=_0x4c35df(0x149),_0x26ca3['FOLLOWING']='following',_0x26ca3[_0x4c35df(0xd5)]=_0x4c35df(0xfd),_0x26ca3['PRESENTING']='presenting',_0x26ca3))(h||{});const xe=_0x4c35df(0x119),Le=0xc8;let C=class extends _0x49bb96{constructor(_0x1586d2,_0x44434f,_0x5291e9,_0x113f43,_0x10941e){var _0xa13121=_0x4c35df;super(),d(this,_0xa13121(0x10b),new _0x2822eb('idle')),d(this,_0xa13121(0x114),this[_0xa13121(0x10b)]['asObservable']()),d(this,_0xa13121(0xb6),!0x1),d(this,_0xa13121(0x113),null),d(this,_0xa13121(0xb1),null),(this[_0xa13121(0x130)]=_0x1586d2,this[_0xa13121(0xf2)]=_0x44434f,this['_configService']=_0x5291e9,this['_liveShareService']=_0x113f43,this[_0xa13121(0x160)]=_0x10941e);}get[_0x4c35df(0x104)](){var _0x35ff11=_0x4c35df;return this[_0x35ff11(0x10b)][_0x35ff11(0x10d)]();}[_0x4c35df(0x15b)](){var _0x4e4167=_0x4c35df,_0x10a54d;(_0x10a54d=this[_0x4e4167(0x113)])==null||_0x10a54d[_0x4e4167(0x15b)](),this['_status$'][_0x4e4167(0x165)]('idle'),this['_status$'][_0x4e4167(0x12a)]();}[_0x4c35df(0xfb)](){var _0x43ead5=_0x4c35df;this[_0x43ead5(0xb6)]||(this[_0x43ead5(0xb6)]=!0x0,this['_collabSession'][_0x43ead5(0xbe)][_0x43ead5(0x11a)](_0x5d7190(this[_0x43ead5(0xc2)]))[_0x43ead5(0x134)](_0x2890e6=>{var _0x18592e=_0x43ead5;switch(_0x2890e6){case _0x2facc0['OFFLINE']:this[_0x18592e(0x11c)]();break;case _0x2facc0['ONLINE']:this[_0x18592e(0xcc)]();break;}}),this[_0x43ead5(0xf2)][_0x43ead5(0xd1)][_0x43ead5(0x11a)](_0x5d7190(this[_0x43ead5(0xc2)]))[_0x43ead5(0x134)](_0x35cd43=>{var _0x442da9=_0x43ead5;const {eventID:_0x3151ae}=_0x35cd43;switch(_0x3151ae){case _0x586cf6['LIVESHARE_NEW_HOST']:this[_0x442da9(0xb5)](_0x35cd43);break;case _0x586cf6['LIVESHARE_OPERATION']:this['_handleOperation'](_0x35cd43);break;case _0x586cf6[_0x442da9(0xbb)]:this['_handleTerminate']();break;case _0x586cf6[_0x442da9(0xde)]:this[_0x442da9(0x164)](_0x35cd43);break;}}));}[_0x4c35df(0xe0)](){var _0x2a04fe=_0x4c35df;this[_0x2a04fe(0xf2)][_0x2a04fe(0xbf)]({'eventID':_0x586cf6[_0x2a04fe(0x12d)],'data':{'unitID':this[_0x2a04fe(0x130)],'userID':this[_0x2a04fe(0xf2)][_0x2a04fe(0x14d)]()}},this['_unitID']);}['stopPresenting'](){var _0x350a84=_0x4c35df;this[_0x350a84(0x104)]==='presenting'&&(this['_status$'][_0x350a84(0x165)](_0x350a84(0x149)),this[_0x350a84(0xf2)][_0x350a84(0xbf)]({'eventID':_0x586cf6[_0x350a84(0xbb)],'data':{'unitID':this[_0x350a84(0x130)]}},this['_unitID']));}[_0x4c35df(0xd2)](){var _0x4a8c49=_0x4c35df;this[_0x4a8c49(0x104)]==='not-following'&&(this['_status$'][_0x4a8c49(0x165)]('following'),this[_0x4a8c49(0x11b)]());}[_0x4c35df(0x112)](){var _0x3a7c5e=_0x4c35df;this[_0x3a7c5e(0x104)]===_0x3a7c5e(0xf6)&&this['_stopFollowing']();}[_0x4c35df(0xb5)](_0x117ea7){var _0x3ecd09=_0x4c35df;const {presenter:_0x22d416}=_0x117ea7[_0x3ecd09(0x150)],_0x1b88d8=this['_collabSession'][_0x3ecd09(0x14d)]();this[_0x3ecd09(0xb1)]=_0x22d416,_0x22d416===_0x1b88d8?(this[_0x3ecd09(0xf4)](),this[_0x3ecd09(0xb2)]()):this[_0x3ecd09(0x104)]!==_0x3ecd09(0xfd)&&(this['_stopPresenting'](),this[_0x3ecd09(0x11b)]());}[_0x4c35df(0xeb)](){var _0x205b5a=_0x4c35df;const _0x336264={'eventID':_0x586cf6[_0x205b5a(0x167)]};this[_0x205b5a(0xf2)][_0x205b5a(0xbf)](_0x336264,this['_unitID']);}[_0x4c35df(0xea)](){var _0x1d47d5=_0x4c35df;this[_0x1d47d5(0xb1)]=null,this[_0x1d47d5(0x104)]!==_0x1d47d5(0x120)&&this[_0x1d47d5(0x106)]();}['_handleNewChangeSets'](_0x341474){var _0x5a213b=_0x4c35df;if(this[_0x5a213b(0x104)]===_0x5a213b(0xf6)&&this['_presenter']===_0x341474[_0x5a213b(0x150)][_0x5a213b(0x122)]){const _0x35bf03=_0xb08ef(_0x341474[_0x5a213b(0x150)])[_0x5a213b(0x127)][_0x5a213b(0xcb)]()['find'](_0x5b75cb=>_0x5b75cb['id']===_0x5b4069['id']);if(_0x35bf03){const _0x2236e6=_0x35bf03[_0x5a213b(0xd7)][_0x5a213b(0x123)],_0x409bd5=_0x35bf03[_0x5a213b(0xd7)][_0x5a213b(0xf7)]['id'];setTimeout(()=>{var _0x3e05fc=_0x5a213b;this['_commandService'][_0x3e05fc(0x111)](_0x5b6936['id'],{'unitId':_0x2236e6,'subUnitId':_0x409bd5},{'fromCollab':!0x0});});}}}[_0x4c35df(0xb2)](){var _0x5e1871=_0x4c35df;this[_0x5e1871(0x10b)][_0x5e1871(0x165)]('presenting');const _0x397318=new Map(),_0x3a632b=this[_0x5e1871(0x113)]=new _0x457240();_0x3a632b[_0x5e1871(0x101)](_0x5cf8b6(()=>{var _0x4d8969=_0x5e1871;_0x397318['forEach'](_0x2ba3aa=>_0x2ba3aa[_0x4d8969(0x12a)]()),_0x397318['clear']();})),_0x3a632b[_0x5e1871(0x101)](this[_0x5e1871(0x160)][_0x5e1871(0x10c)](_0x191951=>{var _0x4dec3e=_0x5e1871,_0x48c14e;if(_0x191951[_0x4dec3e(0xb4)]!==_0x4dd41a[_0x4dec3e(0x107)]||!this[_0x4dec3e(0xd8)][_0x4dec3e(0xc8)](_0x191951['id']))return;const {id:_0x5d75ce}=_0x191951;let _0x4f901e;_0x397318[_0x4dec3e(0x10f)](_0x5d75ce)?_0x4f901e=_0x397318[_0x4dec3e(0xc7)](_0x5d75ce):(_0x4f901e=new _0x5d5dbf(),_0x397318[_0x4dec3e(0xca)](_0x5d75ce,_0x4f901e),_0x4f901e[_0x4dec3e(0x11a)](_0xc2d5a7((_0x48c14e=this[_0x4dec3e(0x12f)][_0x4dec3e(0xc9)](xe))!=null?_0x48c14e:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4dec3e(0x134)](_0x5364a9=>{var _0x19a7c8=_0x4dec3e;this['_collabSession'][_0x19a7c8(0xbf)]({'eventID':_0x586cf6[_0x19a7c8(0x144)],'data':{'unitID':this[_0x19a7c8(0x130)],'operations':{[_0x5364a9['id']]:{'id':_0x5364a9['id'],'params':JSON[_0x19a7c8(0x13f)](_0x5364a9[_0x19a7c8(0xd7)])}}}},this[_0x19a7c8(0x130)]);})),_0x4f901e['next'](_0x191951);})),this[_0x5e1871(0xd8)][_0x5e1871(0x159)](this['_unitID'])['forEach'](_0x19cd53=>this[_0x5e1871(0xf2)][_0x5e1871(0xbf)]({'eventID':_0x586cf6[_0x5e1871(0x144)],'data':{'unitID':this[_0x5e1871(0x130)],'operations':{[_0x19cd53['id']]:{'id':_0x19cd53['id'],'params':JSON['stringify'](_0x19cd53[_0x5e1871(0xd7)])}}}},this['_unitID']));}[_0x4c35df(0x13a)](){var _0x1deb5d=_0x4c35df,_0x4ab702;this['_status$'][_0x1deb5d(0x165)](_0x1deb5d(0x149)),(_0x4ab702=this[_0x1deb5d(0x113)])==null||_0x4ab702[_0x1deb5d(0x15b)](),this[_0x1deb5d(0x113)]=null;}['_startFollowing'](){var _0xb858ed=_0x4c35df,_0x1c5f32;(_0x1c5f32=this[_0xb858ed(0x113)])==null||_0x1c5f32['dispose'](),this[_0xb858ed(0x10b)][_0xb858ed(0x165)](_0xb858ed(0xf6));}[_0x4c35df(0x106)](){var _0x4185ee=_0x4c35df,_0x5e3069;this[_0x4185ee(0x10b)][_0x4185ee(0x165)](_0x4185ee(0x149)),(_0x5e3069=this[_0x4185ee(0x113)])==null||_0x5e3069['dispose'](),this[_0x4185ee(0x113)]=null;}[_0x4c35df(0xf4)](){var _0x3ae03d=_0x4c35df,_0x267ee9;this[_0x3ae03d(0x10b)][_0x3ae03d(0x165)](_0x3ae03d(0xfd)),(_0x267ee9=this[_0x3ae03d(0x113)])==null||_0x267ee9['dispose']();}['_handleOperation'](_0x58878c){var _0x2cefc9=_0x4c35df;if([_0x2cefc9(0x120),'not-following',_0x2cefc9(0x103)][_0x2cefc9(0x139)](this[_0x2cefc9(0x104)])||!_0x58878c['data'][_0x2cefc9(0x136)]||_0x58878c[_0x2cefc9(0x150)][_0x2cefc9(0x136)]===this[_0x2cefc9(0xf2)]['getMemberID']())return;this[_0x2cefc9(0x104)]==='idle'&&this[_0x2cefc9(0x11b)]();const _0x3ccfb9=_0x58878c['data'][_0x2cefc9(0xf5)];Object[_0x2cefc9(0x125)](_0x3ccfb9)[_0x2cefc9(0x135)](_0x445746=>{var _0xd34acf=_0x2cefc9;this[_0xd34acf(0x160)][_0xd34acf(0x111)](_0x445746['id'],_0x445746[_0xd34acf(0xd7)]?JSON[_0xd34acf(0xf8)](_0x445746[_0xd34acf(0xd7)]):null,{'fromCollab':!0x0});});}[_0x4c35df(0x11c)](){var _0x78934a=_0x4c35df,_0x154627;this[_0x78934a(0x10b)][_0x78934a(0x165)](_0x78934a(0x103)),(_0x154627=this[_0x78934a(0x113)])==null||_0x154627['dispose']();}[_0x4c35df(0xcc)](){var _0x53759b=_0x4c35df;this[_0x53759b(0x10b)][_0x53759b(0x165)](_0x53759b(0x149)),this['_fetchOperations']();}};C=Z([f(0x2,_0x596770),f(0x3,_0x214de5(L)),f(0x4,_0x49ea3a)],C);function ye(){var _0x557853=_0x4c35df;const _0x567677=_0x595204(m),_0x337a72=_0x595204(_0x9ee18),_0x46d938=_0xc95284(()=>_0x337a72[_0x557853(0xe8)](_0x5d5736[_0x557853(0x142)]),void 0x0,!0x1,[]),[_0x1086c1,_0x562109]=_0xbbc3fb(null),[_0x327e3b,_0x296b5d]=_0xbbc3fb(h[_0x557853(0x11e)]),_0x393962=_0x266191(null);return _0x13fae4(()=>(_0x46d938&&_0x567677[_0x557853(0xef)](_0x46d938['getUnitId']())[_0x557853(0x14c)](_0x182736=>{var _0x7fba0a=_0x557853;_0x562109(_0x182736),_0x393962[_0x7fba0a(0xec)]=_0x182736['status$'][_0x7fba0a(0x134)](_0x330193=>{_0x296b5d(_0x330193);});}),()=>{var _0x726587=_0x557853,_0x1ba210;(_0x1ba210=_0x393962[_0x726587(0xec)])==null||_0x1ba210[_0x726587(0xe1)](),_0x393962[_0x726587(0xec)]=null;}),[_0x46d938,_0x567677]),_0x1086c1?_0x29fd32(_0x380dce,{'align':_0x557853(0x140),'disabled':_0x327e3b===h[_0x557853(0x110)],'className':_0x557853(0x137),'overlay':_0x29fd32(Re,{'status':_0x327e3b,'coordinator':_0x1086c1}),'children':_0x29fd32('button',{'className':_0x1613e6(_0x557853(0x124),{'univer-cursor-not-allowed':_0x327e3b===h[_0x557853(0x110)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x327e3b!==h[_0x557853(0x110)]}),'type':_0x557853(0x14a),'children':_0x29fd32(B,{'className':_0x557853(0x15c)})})}):null;}function Re(_0x18e12d){var _0x2483cf=_0x4c35df;const {status:_0x2058e7,coordinator:_0x1e5028}=_0x18e12d;switch(_0x2058e7){case h[_0x2483cf(0x11e)]:return _0x29fd32(Pe,{'coordinator':_0x1e5028});case h[_0x2483cf(0xb3)]:return _0x29fd32(Ae,{'coordinator':_0x1e5028});case h[_0x2483cf(0xd5)]:return _0x29fd32(Te,{'coordinator':_0x1e5028});case h[_0x2483cf(0x110)]:return _0x29fd32(Fe,{});case h['PRESENTING']:return _0x29fd32($e,{'coordinator':_0x1e5028});default:return null;}}function Pe(_0x121a9a){var _0x3d3729=_0x4c35df;const {coordinator:_0x544c28}=_0x121a9a;return _0x3cea35(_0x187468,{'children':[_0x29fd32(_0x3d3729(0x147),{'className':_0x3d3729(0x13d),'children':_0x3d3729(0x161)}),_0x29fd32(_0x5c5ef5,{'onClick':()=>_0x544c28[_0x3d3729(0xe0)](),'children':_0x3d3729(0xc3)})]});}function Ae(_0x594e23){var _0x27031a=_0x4c35df;const {coordinator:_0x4518de}=_0x594e23;return _0x3cea35(_0x187468,{'children':[_0x29fd32(_0x27031a(0x147),{'className':_0x27031a(0x13d),'children':_0x27031a(0xb9)}),_0x29fd32(_0x5c5ef5,{'onClick':()=>_0x4518de['stopFollowing'](),'children':_0x27031a(0xdb)})]});}function Te(_0xbb026d){var _0x49b7e5=_0x4c35df;const {coordinator:_0x5034de}=_0xbb026d;return _0x3cea35(_0x187468,{'children':[_0x29fd32(_0x49b7e5(0x147),{'className':_0x49b7e5(0x13d),'children':_0x49b7e5(0x158)}),_0x29fd32(_0x5c5ef5,{'variant':_0x49b7e5(0x14f),'onClick':()=>_0x5034de[_0x49b7e5(0xd2)](),'children':_0x49b7e5(0x11d)})]});}function $e(_0x4c0556){var _0x2bf205=_0x4c35df;const {coordinator:_0x467e22}=_0x4c0556;return _0x3cea35(_0x187468,{'children':[_0x29fd32(_0x2bf205(0x147),{'className':_0x2bf205(0x13d),'children':_0x2bf205(0xd9)}),_0x29fd32(_0x5c5ef5,{'variant':_0x2bf205(0xfa),'onClick':()=>_0x467e22[_0x2bf205(0x11f)](),'children':_0x2bf205(0xbc)})]});}function Fe(){var _0x2a1718=_0x4c35df;return _0x29fd32(_0x187468,{'children':_0x2a1718(0xbd)});}var He=Object[_0x4c35df(0x153)],je=(_0x5150ca,_0x919795,_0x12ba96,_0x14d82c)=>{var _0x1daf1a=_0x4c35df;for(var _0x41faa1=_0x14d82c>0x1?void 0x0:_0x14d82c?He(_0x919795,_0x12ba96):_0x919795,_0x4fab83=_0x5150ca[_0x1daf1a(0x148)]-0x1,_0x16607a;_0x4fab83>=0x0;_0x4fab83--)(_0x16607a=_0x5150ca[_0x4fab83])&&(_0x41faa1=_0x16607a(_0x41faa1)||_0x41faa1);return _0x41faa1;},T=(_0x26802a,_0x3b6b41)=>(_0x5d294e,_0x32e091)=>_0x3b6b41(_0x5d294e,_0x32e091,_0x26802a);let I=class extends _0x1f1ed5{constructor(_0xbb31d4,_0x487fbb){var _0x2e276f=_0x4c35df;super(),this['_injector']=_0xbb31d4,this[_0x2e276f(0xe9)]=_0x487fbb,this[_0x2e276f(0x10e)]();}[_0x4c35df(0x10e)](){var _0x523820=_0x4c35df;this[_0x523820(0xc1)](this['_uiPartsService'][_0x523820(0x14e)](_0x38120b[_0x523820(0xc0)],()=>_0x5368f4(ye,this[_0x523820(0x14b)])));}};I=je([T(0x0,_0x214de5(_0x55d5e8)),T(0x1,_0x868a60)],I);const Ue=_0x4c35df(0xd3),$={};var Ve=Object[_0x4c35df(0x153)],Me=(_0x452522,_0xc1f363,_0xb0bd29,_0x39ac42)=>{var _0x4f48a9=_0x4c35df;for(var _0x1b8f96=_0x39ac42>0x1?void 0x0:_0x39ac42?Ve(_0xc1f363,_0xb0bd29):_0xc1f363,_0x3a52ed=_0x452522[_0x4f48a9(0x148)]-0x1,_0x1e3042;_0x3a52ed>=0x0;_0x3a52ed--)(_0x1e3042=_0x452522[_0x3a52ed])&&(_0x1b8f96=_0x1e3042(_0x1b8f96)||_0x1b8f96);return _0x1b8f96;},ke=(_0x3a84d9,_0x5d6826)=>(_0x41a159,_0x8f3c4f)=>_0x5d6826(_0x41a159,_0x8f3c4f,_0x3a84d9);let b=class extends _0x1f1ed5{constructor(_0x1ec0da){var _0x396fe5=_0x4c35df;super(),this[_0x396fe5(0xd8)]=_0x1ec0da,this[_0x396fe5(0xb6)]();}[_0x4c35df(0xb6)](){var _0x4d4aac=_0x4c35df;[_0x548d0f['id'],_0x50482e['id'],_0x5b6936['id']][_0x4d4aac(0x135)](_0x36521d=>{var _0x2625d2=_0x4d4aac;this[_0x2625d2(0xc1)](this[_0x2625d2(0xd8)][_0x2625d2(0x166)](_0x36521d));});}};b=Me([ke(0x0,_0x214de5(L))],b);var Ge=Object['defineProperty'],We=Object[_0x4c35df(0x153)],Ye=(_0x384ebc,_0x41cf71,_0x5932ed)=>_0x41cf71 in _0x384ebc?Ge(_0x384ebc,_0x41cf71,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5932ed}):_0x384ebc[_0x41cf71]=_0x5932ed,Be=(_0x4079c4,_0x3507b1,_0x519a82,_0x327d81)=>{for(var _0x28207c=_0x327d81>0x1?void 0x0:_0x327d81?We(_0x3507b1,_0x519a82):_0x3507b1,_0x355ff8=_0x4079c4['length']-0x1,_0x1d68b3;_0x355ff8>=0x0;_0x355ff8--)(_0x1d68b3=_0x4079c4[_0x355ff8])&&(_0x28207c=_0x1d68b3(_0x28207c)||_0x28207c);return _0x28207c;},F=(_0x4cf3c2,_0x1db7c1)=>(_0x3dd3d8,_0x46c2b9)=>_0x1db7c1(_0x3dd3d8,_0x46c2b9,_0x4cf3c2),J=(_0x510819,_0x2c86c5,_0x1edac1)=>Ye(_0x510819,typeof _0x2c86c5!=_0x4c35df(0x141)?_0x2c86c5+'':_0x2c86c5,_0x1edac1);const Ze=_0x4c35df(0x105);let O=class extends _0xca36d6{constructor(_0x405d03=$,_0x45b987,_0x15fe92){var _0x5a7562=_0x4c35df;super(),this[_0x5a7562(0x117)]=_0x405d03,this[_0x5a7562(0x14b)]=_0x45b987,this[_0x5a7562(0x12f)]=_0x15fe92;const {..._0xa87cec}=_0x49df5f({},$,this[_0x5a7562(0x117)]);this[_0x5a7562(0x12f)][_0x5a7562(0x15f)](Ue,_0xa87cec);}[_0x4c35df(0x168)](){var _0x40c698=_0x4c35df;_0x161788(this[_0x40c698(0x14b)],_0x265c97([[L],[m],[b],[I]],this[_0x40c698(0x117)][_0x40c698(0xfe)])),_0x58f08e(this[_0x40c698(0x14b)],[[b]]);}[_0x4c35df(0x162)](){var _0x559feb=_0x4c35df;_0x58f08e(this[_0x559feb(0x14b)],[[I]]);}};J(O,_0x4c35df(0xb4),_0x5d5736['UNIVER_UNKNOWN']),J(O,_0x4c35df(0x118),Ze),O=Be([_0x13c7bc(_0x5f57c7),F(0x1,_0x214de5(_0x55d5e8)),F(0x2,_0x596770)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './global.css';
|
|
2
|
+
export type { IUniverLiveShareConfig } from './controllers/config.schema';
|
|
3
|
+
export { DesktopLiveShareController } from './controllers/live-share/live-share-ui.controller';
|
|
4
|
+
export { LiveShareController, LiveShareCoordinator, LiveShareStatus } from './controllers/live-share/live-share.controller';
|
|
2
5
|
export { UniverLiveSharePlugin } from './plugin';
|
|
3
|
-
export { LiveShare } from './views/components/LiveShare';
|
|
4
6
|
export { LiveShareService } from './services/live-share.service';
|
|
5
|
-
export {
|
|
6
|
-
export { DesktopLiveShareController } from './controllers/live-share/live-share-ui.controller';
|
|
7
|
-
export type { IUniverLiveShareConfig } from './controllers/config.schema';
|
|
7
|
+
export { LiveShare } from './views/components/LiveShare';
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x2335(_0x5bd2f1,_0x36fa44){var _0xb59e8=_0xb59e();return _0x2335=function(_0x233586,_0x20536e){_0x233586=_0x233586-0x11b;var _0x5355e1=_0xb59e8[_0x233586];return _0x5355e1;},_0x2335(_0x5bd2f1,_0x36fa44);}function _0xb59e(){var _0x5d0e12=['init','LiveShareService','defIds','_beIdle','getLiveShareCoordinator','override','map','_collabSession','text','object','startFollowing','_startFollowing','stopPresenting','react/jsx-runtime','You\x27are\x20offline.','includes','_status$','forEach','2090TSZyBC','idSuffix','975807GqxOqI','LiveShareCoordinator','Subject','xlink:href','assign','extend','IUIPartsService','children','useRef','univer-mb-3\x20univer-w-full\x20univer-text-sm','unitId','_stopPresenting','createInstance','find','SessionStatus','string','getOwnPropertyDescriptor','useObservable','setConfig','defineProperty','event$','_handleTerminate','Dropdown','Present\x20this\x20document','onCommandExecuted','useDependency','rxjs/operators','Plugin','117hdjeCS','toStringTag','_handleNewChangeSets','next','_presenter','reverse','@univerjs/design','SetScrollOperation','_handleOnline','UniverCollaborationClientPlugin','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Button','colorChannel1','concat','@univerjs/sheets-ui','getOwnPropertySymbols','_handleNewHost','substring','presenting','UNIVER_LIVE_SHARE_PLUGIN','createElement','BuiltInUIPart','NOT_FOLLOWING','UniverLiveSharePlugin','mutations','currentColor','has','live-share-icon','takeUntil','rxjs','_sharedOperations','connectInjector','Fragment','_unitID','jsx','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','propertyIsEnumerable','toString','UniverProCollaboration','_handleOperation','status$','LiveShareIcon','pipe','clsx','complete','pluginName','merge','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','fill','27220yyrrXZ','You\x27re\x20presenting\x20the\x20document','sheet','memberID','UNIVER_UNKNOWN','Inject','icon','_mountLiveShare','OPERATION','SAME_OPERATION_SHARE_INTERVAL','CollaborationEvent','@univerjs/core','then','registerDependencies','SetZoomRatioOperation','registerInitialStateReporter','presenter','_univerInstanceService','url(#$1','RxDisposable','_injector','add','set','disposeWithMe','touchDependencies','delete','unsubscribe','LiveShareStatus','registerSharedOperation','@univerjs-pro/collaboration-client','not-following','IConfigService','mask','toDisposable','displayName','ONLINE','_reporters','Injector','IUniverInstanceService','attrs','_commandService','random','evenodd','UniverProCollaborationClient','DisposableCollection','Stop\x20presenting','SetWorksheetActiveOperation','forwardRef','call','tag','shouldShareOperation','_config','hasOwnProperty','IDLE','_handleOffline','path','subscribe','4384376BnnkoH','LIVESHARE_FETCH_OPERATIONS','UNIVER_SHEET','use','UniverUi','defs','type','executeCommand','button','univerjs-icon\x20univerjs-icon-','getValue','BehaviorSubject','getMemberID','Stop\x20following','registerComponent','UniverInstanceType','getConfig','symbol','_uiPartsService','_entities','entries','parseProtocolChangeset','dispose$','LIVESHARE_NEW_HOST','8QEFvLM','dispose','2678165ACKlvD','sessionStatus$','amd','following','offline','1em','PRESENTING','prototype','_commandDisposable','div','current','_collabSessionService','_status','_fetchOperations','_stopFollowing','values','idle','FOLLOWING','getTypeOfUnitAdded$','You\x27re\x20not\x20following\x20the\x20presenter','LiveShareController','apply','useState','LIVESHARE_TERMINATE','_init','_startLiveShareCoordinator','http://www.w3.org/2000/svg','tryStartPresenting','392891diJIAP','trim','send','React','DesktopLiveShareController','@univerjs/ui','univer-size-4','LiveShare','replace','params','You\x27re\x20following\x20the\x20presenter','44658NUaaKd','@univerjs-pro/collaboration','operations','asObservable','data','LIVESHARE_OPERATION','Disposable','className','jsxs','get','47202uMpsdj','InsertSheetMutation','function','getCurrentTypeOfUnit$','stringify','_configService','UniverSheetsUi','onStarting','ICommandService','343MOrbYA','length','LIVESHARE_REQUEST_HOST','live-share.config','UniverProLiveShare','throttleTime','OFFLINE','_liveShareService'];_0xb59e=function(){return _0x5d0e12;};return _0xb59e();}(function(_0x466ef3,_0x183025){var _0x52d29c=_0x2335,_0x94ff28=_0x466ef3();while(!![]){try{var _0x436994=-parseInt(_0x52d29c(0x16c))/0x1+parseInt(_0x52d29c(0x177))/0x2*(-parseInt(_0x52d29c(0x1c2))/0x3)+-parseInt(_0x52d29c(0x14e))/0x4*(-parseInt(_0x52d29c(0x150))/0x5)+-parseInt(_0x52d29c(0x181))/0x6*(parseInt(_0x52d29c(0x18a))/0x7)+parseInt(_0x52d29c(0x136))/0x8+parseInt(_0x52d29c(0x1a6))/0x9+parseInt(_0x52d29c(0x1f3))/0xa*(parseInt(_0x52d29c(0x1a4))/0xb);if(_0x436994===_0x183025)break;else _0x94ff28['push'](_0x94ff28['shift']());}catch(_0x3e9e0f){_0x94ff28['push'](_0x94ff28['shift']());}}}(_0xb59e,0x916ff),function(_0x365aef,_0x34e5af){var _0x5a7168=_0x2335;typeof exports==_0x5a7168(0x19b)&&typeof module<'u'?_0x34e5af(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define==_0x5a7168(0x183)&&define[_0x5a7168(0x152)]?define(['exports',_0x5a7168(0x210),_0x5a7168(0x1fe),'@univerjs/sheets',_0x5a7168(0x1d0),_0x5a7168(0x171),_0x5a7168(0x19f),_0x5a7168(0x1c8),'react',_0x5a7168(0x178),_0x5a7168(0x1df),_0x5a7168(0x1c0)],_0x34e5af):(_0x365aef=typeof globalThis<'u'?globalThis:_0x365aef||self,_0x34e5af(_0x365aef[_0x5a7168(0x18e)]={},_0x365aef[_0x5a7168(0x128)],_0x365aef['UniverCore'],_0x365aef['UniverSheets'],_0x365aef[_0x5a7168(0x187)],_0x365aef[_0x5a7168(0x13a)],_0x365aef[_0x5a7168(0x16f)],_0x365aef['UniverDesign'],_0x365aef['React'],_0x365aef[_0x5a7168(0x1e8)],_0x365aef[_0x5a7168(0x1df)],_0x365aef[_0x5a7168(0x1df)]['operators']));}(this,function(_0x57a06e,_0x180c67,_0x203973,_0x27b1d2,_0x3bf227,_0x48a874,_0x252fa8,_0x142032,_0x4a9864,_0x54a5dc,_0x44f20f,_0x11441f){'use strict';var _0xb81aa0=_0x2335;var _0x1c199d=Object['defineProperty'],_0x5a56bc=(_0x22ea0c,_0x44f78f,_0x13f158)=>_0x44f78f in _0x22ea0c?_0x1c199d(_0x22ea0c,_0x44f78f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x13f158}):_0x22ea0c[_0x44f78f]=_0x13f158,_0x11e1bc=(_0x17a841,_0x2c9564,_0x56f067)=>_0x5a56bc(_0x17a841,typeof _0x2c9564!=_0xb81aa0(0x147)?_0x2c9564+'':_0x2c9564,_0x56f067);const _0x59c19f=_0xb81aa0(0x18d),_0x1ca956={};class _0x24d79e extends _0x203973[_0xb81aa0(0x17d)]{constructor(){var _0x529647=_0xb81aa0;super(...arguments),_0x11e1bc(this,_0x529647(0x1e0),new Set()),_0x11e1bc(this,'_reporters',new Set());}[_0xb81aa0(0x20f)](_0x56b719){var _0x46e8a4=_0xb81aa0;return this[_0x46e8a4(0x1e0)][_0x46e8a4(0x208)](_0x56b719),_0x203973[_0x46e8a4(0x11e)](()=>this[_0x46e8a4(0x1e0)]['delete'](_0x56b719));}[_0xb81aa0(0x202)](_0x17bd8b){var _0x1643cb=_0xb81aa0;return this[_0x1643cb(0x121)][_0x1643cb(0x208)](_0x17bd8b),_0x203973[_0x1643cb(0x11e)](()=>this[_0x1643cb(0x121)][_0x1643cb(0x20c)](_0x17bd8b));}[_0xb81aa0(0x12f)](_0x275338){var _0x3db59d=_0xb81aa0;return this[_0x3db59d(0x1e0)][_0x3db59d(0x1dc)](_0x275338);}['getInitialStates'](_0x1aeb47){var _0x564a3a=_0xb81aa0;return Array['from'](this[_0x564a3a(0x121)])[_0x564a3a(0x198)](_0x3d17ae=>_0x3d17ae(_0x1aeb47));}}var _0x1310c8=Object['getOwnPropertyDescriptor'],_0x13bc1a=(_0x7fef8b,_0xac373a,_0x5a4e81,_0x3e3538)=>{var _0x559e3d=_0xb81aa0;for(var _0x5c7f46=_0x3e3538>0x1?void 0x0:_0x3e3538?_0x1310c8(_0xac373a,_0x5a4e81):_0xac373a,_0x347a2b=_0x7fef8b[_0x559e3d(0x18b)]-0x1,_0x4151b1;_0x347a2b>=0x0;_0x347a2b--)(_0x4151b1=_0x7fef8b[_0x347a2b])&&(_0x5c7f46=_0x4151b1(_0x5c7f46)||_0x5c7f46);return _0x5c7f46;},_0x4cfeb9=(_0x2b22fc,_0x1903dd)=>(_0xb48069,_0x35b2d0)=>_0x1903dd(_0xb48069,_0x35b2d0,_0x2b22fc);let _0x45c59c=class extends _0x203973['Disposable']{constructor(_0x544b34){var _0x3bdb5b=_0xb81aa0;super(),this[_0x3bdb5b(0x191)]=_0x544b34,this[_0x3bdb5b(0x168)]();}[_0xb81aa0(0x168)](){var _0x12f877=_0xb81aa0;[_0x3bf227[_0x12f877(0x201)]['id'],_0x3bf227[_0x12f877(0x1c9)]['id'],_0x27b1d2[_0x12f877(0x12b)]['id']][_0x12f877(0x1a3)](_0xa99958=>{var _0x557112=_0x12f877;this['disposeWithMe'](this[_0x557112(0x191)][_0x557112(0x20f)](_0xa99958));});}};_0x45c59c=_0x13bc1a([_0x4cfeb9(0x0,_0x203973[_0xb81aa0(0x1f8)](_0x24d79e))],_0x45c59c);var _0x4f2a58=function(){var _0x40cbad=_0xb81aa0;return _0x4f2a58=Object[_0x40cbad(0x1aa)]||function(_0x308ce6){var _0x5c8d1e=_0x40cbad;for(var _0x5627f0,_0x30f735=0x1,_0x15b519=arguments[_0x5c8d1e(0x18b)];_0x30f735<_0x15b519;_0x30f735++){_0x5627f0=arguments[_0x30f735];for(var _0x5562ba in _0x5627f0)Object[_0x5c8d1e(0x157)][_0x5c8d1e(0x131)][_0x5c8d1e(0x12d)](_0x5627f0,_0x5562ba)&&(_0x308ce6[_0x5562ba]=_0x5627f0[_0x5562ba]);}return _0x308ce6;},_0x4f2a58[_0x40cbad(0x165)](this,arguments);},_0x12d696=function(_0x3b4e16,_0x39bdfa){var _0x18c665=_0xb81aa0,_0x513cbd={};for(var _0x32f590 in _0x3b4e16)Object[_0x18c665(0x157)][_0x18c665(0x131)][_0x18c665(0x12d)](_0x3b4e16,_0x32f590)&&_0x39bdfa['indexOf'](_0x32f590)<0x0&&(_0x513cbd[_0x32f590]=_0x3b4e16[_0x32f590]);if(_0x3b4e16!=null&&typeof Object[_0x18c665(0x1d1)]==_0x18c665(0x183)){for(var _0x337459=0x0,_0x32f590=Object[_0x18c665(0x1d1)](_0x3b4e16);_0x337459<_0x32f590[_0x18c665(0x18b)];_0x337459++)_0x39bdfa['indexOf'](_0x32f590[_0x337459])<0x0&&Object[_0x18c665(0x157)][_0x18c665(0x1e6)][_0x18c665(0x12d)](_0x3b4e16,_0x32f590[_0x337459])&&(_0x513cbd[_0x32f590[_0x337459]]=_0x3b4e16[_0x32f590[_0x337459]]);}return _0x513cbd;},_0xb70039=_0x4a9864[_0xb81aa0(0x12c)](function(_0x5d8e9d,_0x1e9d74){var _0x35a604=_0xb81aa0,_0xc2280f=_0x5d8e9d[_0x35a604(0x1f9)],_0x264958=_0x5d8e9d['id'],_0x3a6424=_0x5d8e9d[_0x35a604(0x17e)],_0x4c51ad=_0x5d8e9d[_0x35a604(0x1ab)],_0x53b52e=_0x12d696(_0x5d8e9d,[_0x35a604(0x1f9),'id','className',_0x35a604(0x1ab)]),_0x1d3b76=_0x35a604(0x13f)['concat'](_0x264958,'\x20')['concat'](_0x3a6424||'')[_0x35a604(0x16d)](),_0x4501a1=_0x4a9864['useRef']('_'[_0x35a604(0x1cf)](_0x406168()));return _0x54e110(_0xc2280f,''[_0x35a604(0x1cf)](_0x264958),{'defIds':_0xc2280f[_0x35a604(0x194)],'idSuffix':_0x4501a1[_0x35a604(0x15a)]},_0x4f2a58({'ref':_0x1e9d74,'className':_0x1d3b76},_0x53b52e),_0x4c51ad);});function _0x54e110(_0x4b5fad,_0x5ed4a7,_0x448166,_0x1fbaa2,_0x43c170){var _0x1e28d2=_0xb81aa0;return _0x4a9864[_0x1e28d2(0x1d6)](_0x4b5fad[_0x1e28d2(0x12e)],_0x4f2a58(_0x4f2a58({'key':_0x5ed4a7},_0x15c4e1(_0x4b5fad,_0x448166,_0x43c170)),_0x1fbaa2),(_0x34a109(_0x4b5fad,_0x448166)[_0x1e28d2(0x1ad)]||[])[_0x1e28d2(0x198)](function(_0x17f694,_0x2c7a2e){var _0x3b80dc=_0x1e28d2;return _0x54e110(_0x17f694,''[_0x3b80dc(0x1cf)](_0x5ed4a7,'-')['concat'](_0x4b5fad[_0x3b80dc(0x12e)],'-')[_0x3b80dc(0x1cf)](_0x2c7a2e),_0x448166,void 0x0,_0x43c170);}));}function _0x15c4e1(_0x57a96b,_0x287ef0,_0x3e2213){var _0x471830=_0xb81aa0,_0xc048a8=_0x4f2a58({},_0x57a96b[_0x471830(0x124)]);_0x3e2213!=null&&_0x3e2213[_0x471830(0x1ce)]&&_0xc048a8[_0x471830(0x1f2)]==='colorChannel1'&&(_0xc048a8[_0x471830(0x1f2)]=_0x3e2213[_0x471830(0x1ce)]),_0x57a96b[_0x471830(0x12e)]==='mask'&&_0xc048a8['id']&&(_0xc048a8['id']=_0xc048a8['id']+_0x287ef0['idSuffix']),Object[_0x471830(0x14a)](_0xc048a8)[_0x471830(0x1a3)](function(_0x12cf61){var _0x3d49c8=_0x471830,_0x589dd5=_0x12cf61[0x0],_0x30a06a=_0x12cf61[0x1];_0x589dd5===_0x3d49c8(0x11d)&&typeof _0x30a06a==_0x3d49c8(0x1b5)&&(_0xc048a8[_0x589dd5]=_0x30a06a['replace'](/url\(#(.*)\)/,_0x3d49c8(0x205)[_0x3d49c8(0x1cf)](_0x287ef0[_0x3d49c8(0x1a5)],')')));});var _0x5019c8=_0x287ef0[_0x471830(0x194)];return!_0x5019c8||_0x5019c8[_0x471830(0x18b)]===0x0||(_0x57a96b['tag']===_0x471830(0x139)&&_0xc048a8[_0x471830(0x1a9)]&&(_0xc048a8['xlink:href']=_0xc048a8['xlink:href']+_0x287ef0[_0x471830(0x1a5)]),Object['entries'](_0xc048a8)[_0x471830(0x1a3)](function(_0x4cc7f6){var _0x3c2e35=_0x471830,_0x58e910=_0x4cc7f6[0x0],_0x16cbef=_0x4cc7f6[0x1];typeof _0x16cbef==_0x3c2e35(0x1b5)&&(_0xc048a8[_0x58e910]=_0x16cbef[_0x3c2e35(0x174)](/url\(#(.*)\)/,_0x3c2e35(0x205)[_0x3c2e35(0x1cf)](_0x287ef0['idSuffix'],')')));})),_0xc048a8;}function _0x34a109(_0x4a770f,_0x1da7cc){var _0x31ec09=_0xb81aa0,_0x58521e,_0xad940c=_0x1da7cc['defIds'];return!_0xad940c||_0xad940c['length']===0x0?_0x4a770f:_0x4a770f[_0x31ec09(0x12e)]===_0x31ec09(0x13b)&&(!((_0x58521e=_0x4a770f['children'])===null||_0x58521e===void 0x0)&&_0x58521e[_0x31ec09(0x18b)])?_0x4f2a58(_0x4f2a58({},_0x4a770f),{'children':_0x4a770f[_0x31ec09(0x1ad)][_0x31ec09(0x198)](function(_0x428864){var _0x2e7d74=_0x31ec09;return typeof _0x428864[_0x2e7d74(0x124)]['id']==_0x2e7d74(0x1b5)&&_0xad940c&&_0xad940c[_0x2e7d74(0x1a1)](_0x428864['attrs']['id'])?_0x4f2a58(_0x4f2a58({},_0x428864),{'attrs':_0x4f2a58(_0x4f2a58({},_0x428864[_0x2e7d74(0x124)]),{'id':_0x428864[_0x2e7d74(0x124)]['id']+_0x1da7cc[_0x2e7d74(0x1a5)]})}):_0x428864;})}):_0x4a770f;}function _0x406168(){var _0x4cc4a2=_0xb81aa0;return Math[_0x4cc4a2(0x126)]()[_0x4cc4a2(0x1e7)](0x24)[_0x4cc4a2(0x1d3)](0x2,0x8);}_0xb70039['displayName']='UniverIcon';var _0x4a5ac4={'tag':'svg','attrs':{'xmlns':_0xb81aa0(0x16a),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0xb81aa0(0x155),'height':_0xb81aa0(0x155)},'children':[{'tag':'path','attrs':{'fill':_0xb81aa0(0x1db),'d':_0xb81aa0(0x1e5)}},{'tag':_0xb81aa0(0x134),'attrs':{'fill':_0xb81aa0(0x1db),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0xb81aa0(0x127)}}]},_0x51a3a5=_0x4a9864[_0xb81aa0(0x12c)](function(_0xf5693d,_0x1e96a9){var _0x5a7dda=_0xb81aa0;return _0x4a9864[_0x5a7dda(0x1d6)](_0xb70039,Object[_0x5a7dda(0x1aa)]({},_0xf5693d,{'id':_0x5a7dda(0x1dd),'ref':_0x1e96a9,'icon':_0x4a5ac4}));});_0x51a3a5[_0xb81aa0(0x11f)]=_0xb81aa0(0x1eb);var _0x4f0fc3=Object[_0xb81aa0(0x1b6)],_0x375978=(_0x5102f1,_0x19631b,_0x3ea9d2,_0x4fbbc1)=>{var _0x233cfa=_0xb81aa0;for(var _0x41f3a3=_0x4fbbc1>0x1?void 0x0:_0x4fbbc1?_0x4f0fc3(_0x19631b,_0x3ea9d2):_0x19631b,_0x5a989e=_0x5102f1[_0x233cfa(0x18b)]-0x1,_0x4fd285;_0x5a989e>=0x0;_0x5a989e--)(_0x4fd285=_0x5102f1[_0x5a989e])&&(_0x41f3a3=_0x4fd285(_0x41f3a3)||_0x41f3a3);return _0x41f3a3;},_0x45c1be=(_0x53f9e1,_0x433289)=>(_0x468e3e,_0x5cb3dd)=>_0x433289(_0x468e3e,_0x5cb3dd,_0x53f9e1);_0x57a06e[_0xb81aa0(0x164)]=class extends _0x203973[_0xb81aa0(0x206)]{constructor(_0x156b9f,_0x212bd2,_0x19cfb7){var _0x25cfb8=_0xb81aa0;super(),_0x11e1bc(this,_0x25cfb8(0x149),new Map()),(this[_0x25cfb8(0x204)]=_0x156b9f,this[_0x25cfb8(0x207)]=_0x212bd2,this[_0x25cfb8(0x15b)]=_0x19cfb7,this[_0x25cfb8(0x168)]());}async[_0xb81aa0(0x196)](_0x3d40b5){var _0x227bcd=_0xb81aa0;return this['_entities'][_0x227bcd(0x1dc)](_0x3d40b5)||await this['_startLiveShareCoordinator'](_0x3d40b5),this[_0x227bcd(0x149)][_0x227bcd(0x180)](_0x3d40b5);}['_init'](){var _0x55282c=_0xb81aa0;this[_0x55282c(0x204)][_0x55282c(0x162)](_0x203973[_0x55282c(0x145)][_0x55282c(0x138)])[_0x55282c(0x1ec)](_0x11441f['takeUntil'](this['dispose$']))[_0x55282c(0x135)](async _0x4facca=>{var _0x14d33d=_0x55282c;const _0x53aa3e=_0x4facca['getUnitId']();this[_0x14d33d(0x149)][_0x14d33d(0x1dc)](_0x53aa3e)||this[_0x14d33d(0x169)](_0x53aa3e);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x203973[_0x55282c(0x145)][_0x55282c(0x138)])['pipe'](_0x11441f[_0x55282c(0x1de)](this[_0x55282c(0x14c)]))[_0x55282c(0x135)](_0x4dac12=>{var _0x50582a=_0x55282c;const _0x3f348f=_0x4dac12['getUnitId'](),_0x1e6984=this['_entities']['get'](_0x3f348f);_0x1e6984==null||_0x1e6984[_0x50582a(0x14f)]();});}async[_0xb81aa0(0x169)](_0x50c5de){var _0x434f6f=_0xb81aa0;const _0xfc432=await this[_0x434f6f(0x15b)]['requireSession'](_0x50c5de),_0x4b6943=this[_0x434f6f(0x207)][_0x434f6f(0x1b2)](_0x57a06e[_0x434f6f(0x1a7)],_0x50c5de,_0xfc432);return _0x4b6943[_0x434f6f(0x192)](),this['_entities'][_0x434f6f(0x209)](_0x50c5de,_0x4b6943),_0x4b6943;}},_0x57a06e[_0xb81aa0(0x164)]=_0x375978([_0x45c1be(0x0,_0x203973['IUniverInstanceService']),_0x45c1be(0x1,_0x203973[_0xb81aa0(0x1f8)](_0x203973[_0xb81aa0(0x122)])),_0x45c1be(0x2,_0x203973[_0xb81aa0(0x1f8)](_0x180c67['CollaborationSessionService']))],_0x57a06e[_0xb81aa0(0x164)]);var _0x5808d3=(_0x1c5552=>(_0x1c5552[_0xb81aa0(0x190)]=_0xb81aa0(0x154),_0x1c5552[_0xb81aa0(0x132)]=_0xb81aa0(0x160),_0x1c5552[_0xb81aa0(0x161)]=_0xb81aa0(0x153),_0x1c5552[_0xb81aa0(0x1d8)]=_0xb81aa0(0x11b),_0x1c5552[_0xb81aa0(0x156)]=_0xb81aa0(0x1d4),_0x1c5552))(_0x5808d3||{});const _0x8abd17=_0xb81aa0(0x1fc),_0x2043f1=0xc8;_0x57a06e['LiveShareCoordinator']=class extends _0x203973[_0xb81aa0(0x206)]{constructor(_0x1808c4,_0x238d05,_0x2aacdd,_0x187304,_0x4ac592){var _0x20886e=_0xb81aa0;super(),_0x11e1bc(this,'_status$',new _0x44f20f[(_0x20886e(0x141))]('idle')),_0x11e1bc(this,_0x20886e(0x1ea),this[_0x20886e(0x1a2)][_0x20886e(0x17a)]()),_0x11e1bc(this,'_init',!0x1),_0x11e1bc(this,_0x20886e(0x158),null),_0x11e1bc(this,_0x20886e(0x1c6),null),(this[_0x20886e(0x1e3)]=_0x1808c4,this[_0x20886e(0x199)]=_0x238d05,this[_0x20886e(0x186)]=_0x2aacdd,this[_0x20886e(0x191)]=_0x187304,this[_0x20886e(0x125)]=_0x4ac592);}get['_status'](){var _0x3cb573=_0xb81aa0;return this[_0x3cb573(0x1a2)][_0x3cb573(0x140)]();}['dispose'](){var _0x124574=_0xb81aa0,_0x288b44;(_0x288b44=this['_commandDisposable'])==null||_0x288b44['dispose'](),this[_0x124574(0x1a2)][_0x124574(0x1c5)](_0x124574(0x160)),this[_0x124574(0x1a2)]['complete']();}['init'](){var _0x1a300c=_0xb81aa0;this[_0x1a300c(0x168)]||(this[_0x1a300c(0x168)]=!0x0,this[_0x1a300c(0x199)][_0x1a300c(0x151)][_0x1a300c(0x1ec)](_0x11441f[_0x1a300c(0x1de)](this['dispose$']))['subscribe'](_0x47285f=>{var _0x479047=_0x1a300c;switch(_0x47285f){case _0x180c67[_0x479047(0x1b4)][_0x479047(0x190)]:this[_0x479047(0x133)]();break;case _0x180c67[_0x479047(0x1b4)][_0x479047(0x120)]:this['_handleOnline']();break;}}),this[_0x1a300c(0x199)][_0x1a300c(0x1ba)][_0x1a300c(0x1ec)](_0x11441f[_0x1a300c(0x1de)](this[_0x1a300c(0x14c)]))[_0x1a300c(0x135)](_0x5c50bf=>{var _0x39ca46=_0x1a300c;const {eventID:_0x3f1dc6}=_0x5c50bf;switch(_0x3f1dc6){case _0x54a5dc[_0x39ca46(0x1fd)][_0x39ca46(0x14d)]:this[_0x39ca46(0x1d2)](_0x5c50bf);break;case _0x54a5dc['CollaborationEvent'][_0x39ca46(0x17c)]:this[_0x39ca46(0x1e9)](_0x5c50bf);break;case _0x54a5dc['CollaborationEvent'][_0x39ca46(0x167)]:this[_0x39ca46(0x1bb)]();break;case _0x54a5dc['CollaborationEvent']['NEW_CHANGESETS']:this[_0x39ca46(0x1c4)](_0x5c50bf);break;}}));}[_0xb81aa0(0x16b)](){var _0x2bb416=_0xb81aa0;this['_collabSession']['send']({'eventID':_0x54a5dc['CollaborationEvent'][_0x2bb416(0x18c)],'data':{'unitID':this[_0x2bb416(0x1e3)],'userID':this[_0x2bb416(0x199)][_0x2bb416(0x142)]()}},this[_0x2bb416(0x1e3)]);}['stopPresenting'](){var _0x357e35=_0xb81aa0;this[_0x357e35(0x15c)]===_0x357e35(0x1d4)&&(this['_status$'][_0x357e35(0x1c5)](_0x357e35(0x160)),this[_0x357e35(0x199)][_0x357e35(0x16e)]({'eventID':_0x54a5dc[_0x357e35(0x1fd)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x357e35(0x1e3)]));}[_0xb81aa0(0x19c)](){var _0x2d09ff=_0xb81aa0;this[_0x2d09ff(0x15c)]===_0x2d09ff(0x11b)&&(this['_status$']['next']('following'),this['_startFollowing']());}['stopFollowing'](){var _0x2e60d6=_0xb81aa0;this[_0x2e60d6(0x15c)]==='following'&&this['_stopFollowing']();}[_0xb81aa0(0x1d2)](_0x25c309){var _0x41a743=_0xb81aa0;const {presenter:_0x288f42}=_0x25c309[_0x41a743(0x17b)],_0x4a2356=this['_collabSession']['getMemberID']();this['_presenter']=_0x288f42,_0x288f42===_0x4a2356?(this[_0x41a743(0x15e)](),this['_startPresenting']()):this['_status']!==_0x41a743(0x11b)&&(this[_0x41a743(0x1b1)](),this[_0x41a743(0x19d)]());}[_0xb81aa0(0x15d)](){var _0xce81af=_0xb81aa0;const _0x119f97={'eventID':_0x54a5dc[_0xce81af(0x1fd)][_0xce81af(0x137)]};this[_0xce81af(0x199)][_0xce81af(0x16e)](_0x119f97,this[_0xce81af(0x1e3)]);}[_0xb81aa0(0x1bb)](){var _0x43e116=_0xb81aa0;this['_presenter']=null,this['_status']!==_0x43e116(0x1d4)&&this[_0x43e116(0x195)]();}[_0xb81aa0(0x1c4)](_0xad01b7){var _0x5c2a5d=_0xb81aa0;if(this[_0x5c2a5d(0x15c)]===_0x5c2a5d(0x153)&&this[_0x5c2a5d(0x1c6)]===_0xad01b7['data'][_0x5c2a5d(0x1f6)]){const _0x1395a7=_0x54a5dc[_0x5c2a5d(0x14b)](_0xad01b7['data'])[_0x5c2a5d(0x1da)][_0x5c2a5d(0x1c7)]()[_0x5c2a5d(0x1b3)](_0x5848e4=>_0x5848e4['id']===_0x27b1d2[_0x5c2a5d(0x182)]['id']);if(_0x1395a7){const _0x5b278d=_0x1395a7['params'][_0x5c2a5d(0x1b0)],_0x462144=_0x1395a7[_0x5c2a5d(0x175)][_0x5c2a5d(0x1f5)]['id'];setTimeout(()=>{var _0x4136fe=_0x5c2a5d;this[_0x4136fe(0x125)][_0x4136fe(0x13d)](_0x27b1d2['SetWorksheetActiveOperation']['id'],{'unitId':_0x5b278d,'subUnitId':_0x462144},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x39e6ae=_0xb81aa0;this['_status$'][_0x39e6ae(0x1c5)]('presenting');const _0x379cde=new Map(),_0x3a9ffb=this['_commandDisposable']=new _0x203973[(_0x39e6ae(0x129))]();_0x3a9ffb[_0x39e6ae(0x208)](_0x203973[_0x39e6ae(0x11e)](()=>{var _0x1fdcde=_0x39e6ae;_0x379cde[_0x1fdcde(0x1a3)](_0x41bdfe=>_0x41bdfe[_0x1fdcde(0x1ee)]()),_0x379cde['clear']();})),_0x3a9ffb[_0x39e6ae(0x208)](this[_0x39e6ae(0x125)][_0x39e6ae(0x1be)](_0x4c11ca=>{var _0x49f37b=_0x39e6ae,_0x3c5a34;if(_0x4c11ca[_0x49f37b(0x13c)]!==_0x203973['CommandType'][_0x49f37b(0x1fb)]||!this[_0x49f37b(0x191)][_0x49f37b(0x12f)](_0x4c11ca['id']))return;const {id:_0xc1b21f}=_0x4c11ca;let _0x4365e5;_0x379cde[_0x49f37b(0x1dc)](_0xc1b21f)?_0x4365e5=_0x379cde[_0x49f37b(0x180)](_0xc1b21f):(_0x4365e5=new _0x44f20f[(_0x49f37b(0x1a8))](),_0x379cde[_0x49f37b(0x209)](_0xc1b21f,_0x4365e5),_0x4365e5['pipe'](_0x11441f[_0x49f37b(0x18f)]((_0x3c5a34=this[_0x49f37b(0x186)][_0x49f37b(0x146)](_0x8abd17))!=null?_0x3c5a34:_0x2043f1,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x201cb1=>{var _0x145bd5=_0x49f37b;this[_0x145bd5(0x199)][_0x145bd5(0x16e)]({'eventID':_0x54a5dc[_0x145bd5(0x1fd)][_0x145bd5(0x17c)],'data':{'unitID':this['_unitID'],'operations':{[_0x201cb1['id']]:{'id':_0x201cb1['id'],'params':JSON[_0x145bd5(0x185)](_0x201cb1[_0x145bd5(0x175)])}}}},this[_0x145bd5(0x1e3)]);})),_0x4365e5[_0x49f37b(0x1c5)](_0x4c11ca);})),this[_0x39e6ae(0x191)]['getInitialStates'](this[_0x39e6ae(0x1e3)])['forEach'](_0x52b6a3=>this[_0x39e6ae(0x199)][_0x39e6ae(0x16e)]({'eventID':_0x54a5dc[_0x39e6ae(0x1fd)][_0x39e6ae(0x17c)],'data':{'unitID':this[_0x39e6ae(0x1e3)],'operations':{[_0x52b6a3['id']]:{'id':_0x52b6a3['id'],'params':JSON[_0x39e6ae(0x185)](_0x52b6a3[_0x39e6ae(0x175)])}}}},this[_0x39e6ae(0x1e3)]));}[_0xb81aa0(0x1b1)](){var _0x45af1e=_0xb81aa0,_0x37e913;this['_status$'][_0x45af1e(0x1c5)](_0x45af1e(0x160)),(_0x37e913=this[_0x45af1e(0x158)])==null||_0x37e913['dispose'](),this[_0x45af1e(0x158)]=null;}[_0xb81aa0(0x19d)](){var _0x59cabb=_0xb81aa0,_0x24c431;(_0x24c431=this[_0x59cabb(0x158)])==null||_0x24c431[_0x59cabb(0x14f)](),this['_status$']['next'](_0x59cabb(0x153));}[_0xb81aa0(0x195)](){var _0x1dc8c5=_0xb81aa0,_0x549b6f;this[_0x1dc8c5(0x1a2)][_0x1dc8c5(0x1c5)](_0x1dc8c5(0x160)),(_0x549b6f=this['_commandDisposable'])==null||_0x549b6f['dispose'](),this[_0x1dc8c5(0x158)]=null;}[_0xb81aa0(0x15e)](){var _0x54474e=_0xb81aa0,_0x220bce;this[_0x54474e(0x1a2)][_0x54474e(0x1c5)](_0x54474e(0x11b)),(_0x220bce=this[_0x54474e(0x158)])==null||_0x220bce[_0x54474e(0x14f)]();}['_handleOperation'](_0xa6a107){var _0x2c1746=_0xb81aa0;if(['presenting',_0x2c1746(0x11b),'offline']['includes'](this['_status'])||!_0xa6a107[_0x2c1746(0x17b)][_0x2c1746(0x203)]||_0xa6a107[_0x2c1746(0x17b)][_0x2c1746(0x203)]===this['_collabSession'][_0x2c1746(0x142)]())return;this[_0x2c1746(0x15c)]===_0x2c1746(0x160)&&this['_startFollowing']();const _0x2f9cb0=_0xa6a107[_0x2c1746(0x17b)][_0x2c1746(0x179)];Object[_0x2c1746(0x15f)](_0x2f9cb0)[_0x2c1746(0x1a3)](_0x7e16f=>{var _0x16f238=_0x2c1746;this[_0x16f238(0x125)][_0x16f238(0x13d)](_0x7e16f['id'],_0x7e16f[_0x16f238(0x175)]?JSON['parse'](_0x7e16f['params']):null,{'fromCollab':!0x0});});}[_0xb81aa0(0x133)](){var _0x3fc963=_0xb81aa0,_0x5c92f6;this[_0x3fc963(0x1a2)]['next'](_0x3fc963(0x154)),(_0x5c92f6=this[_0x3fc963(0x158)])==null||_0x5c92f6[_0x3fc963(0x14f)]();}[_0xb81aa0(0x1ca)](){var _0x582b22=_0xb81aa0;this['_status$']['next'](_0x582b22(0x160)),this[_0x582b22(0x15d)]();}},_0x57a06e[_0xb81aa0(0x1a7)]=_0x375978([_0x45c1be(0x2,_0x203973['IConfigService']),_0x45c1be(0x3,_0x203973[_0xb81aa0(0x1f8)](_0x24d79e)),_0x45c1be(0x4,_0x203973[_0xb81aa0(0x189)])],_0x57a06e[_0xb81aa0(0x1a7)]);function _0x2db2a6(){var _0x5cbd64=_0xb81aa0;const _0x59e4bd=_0x48a874[_0x5cbd64(0x1bf)](_0x57a06e[_0x5cbd64(0x164)]),_0x1abc59=_0x48a874[_0x5cbd64(0x1bf)](_0x203973[_0x5cbd64(0x123)]),_0x543536=_0x48a874[_0x5cbd64(0x1b7)](()=>_0x1abc59[_0x5cbd64(0x184)](_0x203973[_0x5cbd64(0x145)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x2ff6d3,_0x129d7c]=_0x4a9864[_0x5cbd64(0x166)](null),[_0x389a87,_0x3ff922]=_0x4a9864[_0x5cbd64(0x166)](_0x5808d3['IDLE']),_0x7edd14=_0x4a9864[_0x5cbd64(0x1ae)](null);return _0x4a9864['useEffect'](()=>(_0x543536&&_0x59e4bd['getLiveShareCoordinator'](_0x543536['getUnitId']())[_0x5cbd64(0x1ff)](_0x3a59ab=>{var _0x4ceeca=_0x5cbd64;_0x129d7c(_0x3a59ab),_0x7edd14[_0x4ceeca(0x15a)]=_0x3a59ab[_0x4ceeca(0x1ea)][_0x4ceeca(0x135)](_0x2a2ee5=>{_0x3ff922(_0x2a2ee5);});}),()=>{var _0x19494d=_0x5cbd64,_0x15b5ec;(_0x15b5ec=_0x7edd14[_0x19494d(0x15a)])==null||_0x15b5ec[_0x19494d(0x20d)](),_0x7edd14[_0x19494d(0x15a)]=null;}),[_0x543536,_0x59e4bd]),_0x2ff6d3?_0x252fa8[_0x5cbd64(0x1e4)](_0x142032[_0x5cbd64(0x1bc)],{'align':'end','disabled':_0x389a87===_0x5808d3['OFFLINE'],'className':_0x5cbd64(0x1f1),'overlay':_0x252fa8[_0x5cbd64(0x1e4)](_0x147e5a,{'status':_0x389a87,'coordinator':_0x2ff6d3}),'children':_0x252fa8[_0x5cbd64(0x1e4)](_0x5cbd64(0x13e),{'className':_0x142032[_0x5cbd64(0x1ed)](_0x5cbd64(0x1cc),{'univer-cursor-not-allowed':_0x389a87===_0x5808d3['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x389a87!==_0x5808d3[_0x5cbd64(0x190)]}),'type':_0x5cbd64(0x13e),'children':_0x252fa8[_0x5cbd64(0x1e4)](_0x51a3a5,{'className':_0x5cbd64(0x172)})})}):null;}function _0x147e5a(_0xc3664a){var _0x47b4a3=_0xb81aa0;const {status:_0x527774,coordinator:_0x294c75}=_0xc3664a;switch(_0x527774){case _0x5808d3[_0x47b4a3(0x132)]:return _0x252fa8[_0x47b4a3(0x1e4)](_0x399e66,{'coordinator':_0x294c75});case _0x5808d3['FOLLOWING']:return _0x252fa8[_0x47b4a3(0x1e4)](_0x1391e0,{'coordinator':_0x294c75});case _0x5808d3[_0x47b4a3(0x1d8)]:return _0x252fa8[_0x47b4a3(0x1e4)](_0x24df7d,{'coordinator':_0x294c75});case _0x5808d3['OFFLINE']:return _0x252fa8[_0x47b4a3(0x1e4)](_0x4d0a8a,{});case _0x5808d3[_0x47b4a3(0x156)]:return _0x252fa8[_0x47b4a3(0x1e4)](_0x5b4285,{'coordinator':_0x294c75});default:return null;}}function _0x399e66(_0x4bbc0a){var _0x15f58b=_0xb81aa0;const {coordinator:_0xa96d12}=_0x4bbc0a;return _0x252fa8[_0x15f58b(0x17f)](_0x252fa8[_0x15f58b(0x1e2)],{'children':[_0x252fa8['jsx']('div',{'className':_0x15f58b(0x1af),'children':_0x15f58b(0x1bd)}),_0x252fa8[_0x15f58b(0x1e4)](_0x142032[_0x15f58b(0x1cd)],{'onClick':()=>_0xa96d12['tryStartPresenting'](),'children':'Start'})]});}function _0x1391e0(_0x69978d){var _0x59eb3f=_0xb81aa0;const {coordinator:_0x163d32}=_0x69978d;return _0x252fa8[_0x59eb3f(0x17f)](_0x252fa8[_0x59eb3f(0x1e2)],{'children':[_0x252fa8[_0x59eb3f(0x1e4)](_0x59eb3f(0x159),{'className':_0x59eb3f(0x1af),'children':_0x59eb3f(0x176)}),_0x252fa8['jsx'](_0x142032[_0x59eb3f(0x1cd)],{'onClick':()=>_0x163d32['stopFollowing'](),'children':_0x59eb3f(0x143)})]});}function _0x24df7d(_0x277e1f){var _0x3783ff=_0xb81aa0;const {coordinator:_0x413a4a}=_0x277e1f;return _0x252fa8[_0x3783ff(0x17f)](_0x252fa8[_0x3783ff(0x1e2)],{'children':[_0x252fa8[_0x3783ff(0x1e4)]('div',{'className':_0x3783ff(0x1af),'children':_0x3783ff(0x163)}),_0x252fa8['jsx'](_0x142032[_0x3783ff(0x1cd)],{'variant':_0x3783ff(0x19a),'onClick':()=>_0x413a4a[_0x3783ff(0x19c)](),'children':'Start\x20following'})]});}function _0x5b4285(_0x4d1db5){var _0x279dc1=_0xb81aa0;const {coordinator:_0x5187d1}=_0x4d1db5;return _0x252fa8[_0x279dc1(0x17f)](_0x252fa8[_0x279dc1(0x1e2)],{'children':[_0x252fa8[_0x279dc1(0x1e4)](_0x279dc1(0x159),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x279dc1(0x1f4)}),_0x252fa8[_0x279dc1(0x1e4)](_0x142032[_0x279dc1(0x1cd)],{'variant':'default','onClick':()=>_0x5187d1[_0x279dc1(0x19e)](),'children':_0x279dc1(0x12a)})]});}function _0x4d0a8a(){var _0x137468=_0xb81aa0;return _0x252fa8['jsx'](_0x252fa8[_0x137468(0x1e2)],{'children':_0x137468(0x1a0)});}var _0x203e6e=Object[_0xb81aa0(0x1b6)],_0x339314=(_0x37f7c9,_0x5acf86,_0x2f8baf,_0x55f7a3)=>{var _0x803275=_0xb81aa0;for(var _0x4923a6=_0x55f7a3>0x1?void 0x0:_0x55f7a3?_0x203e6e(_0x5acf86,_0x2f8baf):_0x5acf86,_0x190188=_0x37f7c9[_0x803275(0x18b)]-0x1,_0x17d666;_0x190188>=0x0;_0x190188--)(_0x17d666=_0x37f7c9[_0x190188])&&(_0x4923a6=_0x17d666(_0x4923a6)||_0x4923a6);return _0x4923a6;},_0x45cabf=(_0x5da8c6,_0x5de1b9)=>(_0x13c09f,_0x5631b1)=>_0x5de1b9(_0x13c09f,_0x5631b1,_0x5da8c6);_0x57a06e[_0xb81aa0(0x170)]=class extends _0x203973['Disposable']{constructor(_0x52faf1,_0x17231c){var _0xcd44a5=_0xb81aa0;super(),this[_0xcd44a5(0x207)]=_0x52faf1,this[_0xcd44a5(0x148)]=_0x17231c,this[_0xcd44a5(0x1fa)]();}[_0xb81aa0(0x1fa)](){var _0x79ad59=_0xb81aa0;this[_0x79ad59(0x20a)](this[_0x79ad59(0x148)][_0x79ad59(0x144)](_0x48a874[_0x79ad59(0x1d7)]['HEADER_MENU'],()=>_0x48a874[_0x79ad59(0x1e1)](_0x2db2a6,this[_0x79ad59(0x207)])));}},_0x57a06e['DesktopLiveShareController']=_0x339314([_0x45cabf(0x0,_0x203973['Inject'](_0x203973[_0xb81aa0(0x122)])),_0x45cabf(0x1,_0x48a874[_0xb81aa0(0x1ac)])],_0x57a06e[_0xb81aa0(0x170)]);var _0x32752e=Object[_0xb81aa0(0x1b9)],_0x5e84e4=Object['getOwnPropertyDescriptor'],_0x515463=(_0x26e545,_0x5ee678,_0x53b3b2)=>_0x5ee678 in _0x26e545?_0x32752e(_0x26e545,_0x5ee678,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53b3b2}):_0x26e545[_0x5ee678]=_0x53b3b2,_0x54dd8f=(_0x44e8f4,_0x377c0e,_0x52e2dc,_0x5c94b2)=>{var _0x1c4081=_0xb81aa0;for(var _0xe5563e=_0x5c94b2>0x1?void 0x0:_0x5c94b2?_0x5e84e4(_0x377c0e,_0x52e2dc):_0x377c0e,_0x491bb8=_0x44e8f4[_0x1c4081(0x18b)]-0x1,_0xb634c3;_0x491bb8>=0x0;_0x491bb8--)(_0xb634c3=_0x44e8f4[_0x491bb8])&&(_0xe5563e=_0xb634c3(_0xe5563e)||_0xe5563e);return _0xe5563e;},_0x44ba67=(_0x56f189,_0x1efa97)=>(_0x5c28d6,_0x1d9b2b)=>_0x1efa97(_0x5c28d6,_0x1d9b2b,_0x56f189),_0x1d02c8=(_0x32e81b,_0x28230e,_0x5e8b6f)=>_0x515463(_0x32e81b,typeof _0x28230e!='symbol'?_0x28230e+'':_0x28230e,_0x5e8b6f);const _0x6aa690=_0xb81aa0(0x1d5);_0x57a06e[_0xb81aa0(0x1d9)]=class extends _0x203973[_0xb81aa0(0x1c1)]{constructor(_0x31ee39=_0x1ca956,_0x397e42,_0x59a181){var _0x545949=_0xb81aa0;super(),this['_config']=_0x31ee39,this['_injector']=_0x397e42,this['_configService']=_0x59a181;const {..._0x48f138}=_0x203973[_0x545949(0x1f0)]({},_0x1ca956,this[_0x545949(0x130)]);this[_0x545949(0x186)][_0x545949(0x1b8)](_0x59c19f,_0x48f138);}[_0xb81aa0(0x188)](){var _0x68ea0b=_0xb81aa0;_0x203973[_0x68ea0b(0x200)](this['_injector'],_0x203973['mergeOverrideWithDependencies']([[_0x24d79e],[_0x57a06e['LiveShareController']],[_0x45c59c],[_0x57a06e['DesktopLiveShareController']]],this[_0x68ea0b(0x130)][_0x68ea0b(0x197)])),_0x203973[_0x68ea0b(0x20b)](this[_0x68ea0b(0x207)],[[_0x45c59c]]);}['onRendered'](){var _0x2f3faa=_0xb81aa0;_0x203973['touchDependencies'](this[_0x2f3faa(0x207)],[[_0x57a06e[_0x2f3faa(0x170)]]]);}},_0x1d02c8(_0x57a06e[_0xb81aa0(0x1d9)],_0xb81aa0(0x13c),_0x203973[_0xb81aa0(0x145)][_0xb81aa0(0x1f7)]),_0x1d02c8(_0x57a06e[_0xb81aa0(0x1d9)],_0xb81aa0(0x1ef),_0x6aa690),_0x57a06e[_0xb81aa0(0x1d9)]=_0x54dd8f([_0x203973['DependentOn'](_0x180c67[_0xb81aa0(0x1cb)]),_0x44ba67(0x1,_0x203973['Inject'](_0x203973['Injector'])),_0x44ba67(0x2,_0x203973[_0xb81aa0(0x11c)])],_0x57a06e[_0xb81aa0(0x1d9)]),_0x57a06e[_0xb81aa0(0x173)]=_0x2db2a6,_0x57a06e[_0xb81aa0(0x193)]=_0x24d79e,_0x57a06e[_0xb81aa0(0x20e)]=_0x5808d3,Object[_0xb81aa0(0x1b9)](_0x57a06e,Symbol[_0xb81aa0(0x1c3)],{'value':'Module'});}));
|
|
1
|
+
function _0x4ca0(){var _0x422011=['3872XvFaQd','none','type','_startPresenting','replace','init','jsxs','216XMjFos','concat','set','registerSharedOperation','_beIdle','string','merge','Button','defIds','LIVESHARE_OPERATION','idSuffix','unsubscribe','assign','button','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','override','takeUntil','_handleOnline','UniverUi','subscribe','mutations','className','_liveShareService','getOwnPropertySymbols','UniverCollaborationClientPlugin','_commandDisposable','_uiPartsService','LIVESHARE_NEW_HOST','data','jsx','xlink:href','_reporters','LiveShareController','getValue','useEffect','requireSession','substring','end','get','extend','function','mask','parseProtocolChangeset','getTypeOfUnitAdded$','length','live-share-icon','UNIVER_UNKNOWN','_injector','object','operators','div','not-following','from','BehaviorSubject','delete','getCurrentTypeOfUnit$','UniverDesign','disposeWithMe','text','rxjs','OFFLINE','IDLE','useDependency','You\x27are\x20offline.','_collabSessionService','@univerjs-pro/collaboration-client','DisposableCollection','28XgYlzE','_init','evenodd','apply','@univerjs-pro/collaboration','BuiltInUIPart','toStringTag','CommandType','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getConfig','SessionStatus','SetWorksheetActiveOperation','@univerjs/design','reverse','RxDisposable','@univerjs/core','useState','displayName','includes','Disposable','createInstance','UNIVER_SHEET','Start','LiveShareService','amd','getTypeOfUnitDisposed$','_collabSession','7627sJIbxy','_entities','registerComponent','toDisposable','35HIQuUG','entries','forEach','icon','getLiveShareCoordinator','stringify','_univerInstanceService','@univerjs/sheets-ui','currentColor','createElement','LiveShareIcon','UniverSheetsUi','following','current','1482VUfUuX','_status$','url(#$1','IUniverInstanceService','throttleTime','_fetchOperations','InsertSheetMutation','_mountLiveShare','38635vsFMjj','29307694djxppv','path','defs','_status','call','dispose$','@univerjs/ui','use','event$','memberID','next','trim','FOLLOWING','_sharedOperations','ONLINE','814990yoPpqL','add','pluginName','stopPresenting','You\x27re\x20not\x20following\x20the\x20presenter','_config','default','react','onStarting','prototype','React','tag','react/jsx-runtime','_commandService','LiveShareStatus','stopFollowing','LIVESHARE_FETCH_OPERATIONS','ICommandService','Inject','Start\x20following','UniverProLiveShare','You\x27re\x20presenting\x20the\x20document','univer-mb-3\x20univer-w-full\x20univer-text-sm','pipe','LIVESHARE_REQUEST_HOST','presenting','4182VNbqHd','colorChannel1','rxjs/operators','10hbJJaJ','_handleTerminate','_handleNewHost','status$','indexOf','_presenter','UniverProCollaborationClient','UniverIcon','0\x200\x2017\x2017','_startFollowing','2880711WmGPtq','1697992OwLITn','defineProperty','sheet','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','idle','mergeOverrideWithDependencies','Injector','UniverProCollaboration','CollaborationEvent','NOT_FOLLOWING','tryStartPresenting','toString','useRef','You\x27re\x20following\x20the\x20presenter','send','has','propertyIsEnumerable','presenter','useObservable','shouldShareOperation','_configService','HEADER_MENU','_stopFollowing','sessionStatus$','UniverSheets','_handleNewChangeSets','dispose','symbol','fill','1em','UniverCore','PRESENTING','getOwnPropertyDescriptor','params','forwardRef','clear','NEW_CHANGESETS','SAME_OPERATION_SHARE_INTERVAL','getInitialStates','random','registerInitialStateReporter','_handleOperation','attrs','_unitID','parse','map','children','Dropdown','onCommandExecuted','getUnitId','find','UniverInstanceType','LiveShare','DesktopLiveShareController','LiveShareCoordinator','@univerjs/sheets','_stopPresenting','hasOwnProperty','touchDependencies','LIVESHARE_TERMINATE','asObservable','complete','_handleOffline','IConfigService','executeCommand','UniverLiveSharePlugin'];_0x4ca0=function(){return _0x422011;};return _0x4ca0();}function _0x3c54(_0x43d5cc,_0x4a9709){var _0x4ca09f=_0x4ca0();return _0x3c54=function(_0x3c5470,_0x2aad37){_0x3c5470=_0x3c5470-0x17a;var _0x2357e5=_0x4ca09f[_0x3c5470];return _0x2357e5;},_0x3c54(_0x43d5cc,_0x4a9709);}(function(_0x1593e8,_0x796518){var _0x45a6f3=_0x3c54,_0x591038=_0x1593e8();while(!![]){try{var _0x412758=parseInt(_0x45a6f3(0x205))/0x1*(-parseInt(_0x45a6f3(0x1ea))/0x2)+-parseInt(_0x45a6f3(0x249))/0x3*(parseInt(_0x45a6f3(0x1a0))/0x4)+-parseInt(_0x45a6f3(0x21f))/0x5*(parseInt(_0x45a6f3(0x217))/0x6)+parseInt(_0x45a6f3(0x209))/0x7*(parseInt(_0x45a6f3(0x257))/0x8)+-parseInt(_0x45a6f3(0x256))/0x9*(parseInt(_0x45a6f3(0x24c))/0xa)+parseInt(_0x45a6f3(0x22f))/0xb*(parseInt(_0x45a6f3(0x1a7))/0xc)+parseInt(_0x45a6f3(0x220))/0xd;if(_0x412758===_0x796518)break;else _0x591038['push'](_0x591038['shift']());}catch(_0x2d076d){_0x591038['push'](_0x591038['shift']());}}}(_0x4ca0,0xeb785),function(_0x5906ec,_0x17289e){var _0x505b39=_0x3c54;typeof exports==_0x505b39(0x1d7)&&typeof module<'u'?_0x17289e(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x505b39(0x202)]?define(['exports',_0x505b39(0x1f9),_0x505b39(0x226),_0x505b39(0x23b),_0x505b39(0x1f6),_0x505b39(0x236),_0x505b39(0x1ee),_0x505b39(0x1e8),_0x505b39(0x195),'rxjs',_0x505b39(0x24b),_0x505b39(0x210)],_0x17289e):(_0x5906ec=typeof globalThis<'u'?globalThis:_0x5906ec||self,_0x17289e(_0x5906ec[_0x505b39(0x243)]={},_0x5906ec[_0x505b39(0x17c)],_0x5906ec[_0x505b39(0x1b9)],_0x5906ec['React'],_0x5906ec[_0x505b39(0x1df)],_0x5906ec[_0x505b39(0x239)],_0x5906ec[_0x505b39(0x25e)],_0x5906ec[_0x505b39(0x252)],_0x5906ec[_0x505b39(0x26f)],_0x5906ec[_0x505b39(0x1e2)],_0x5906ec['rxjs'][_0x505b39(0x1d8)],_0x5906ec[_0x505b39(0x214)]));}(this,function(_0x482a46,_0x211bdc,_0x291554,_0x1de521,_0x222549,_0x20f459,_0x4d84ad,_0x3f8726,_0x44862f,_0x40138b,_0x4d74bf,_0x593c0b){'use strict';var _0x17d40a=_0x3c54;var _0x1878bf=Object[_0x17d40a(0x258)],_0x594409=(_0x98742e,_0x2b08b6,_0xe87f24)=>_0x2b08b6 in _0x98742e?_0x1878bf(_0x98742e,_0x2b08b6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe87f24}):_0x98742e[_0x2b08b6]=_0xe87f24,_0x1c6732=(_0x79b06f,_0x2ad597,_0xb4fcbc)=>_0x594409(_0x79b06f,typeof _0x2ad597!='symbol'?_0x2ad597+'':_0x2ad597,_0xb4fcbc),_0xa306b7=function(){var _0x4528e9=_0x17d40a;return _0xa306b7=Object[_0x4528e9(0x1b3)]||function(_0x4d8c3b){var _0x239909=_0x4528e9;for(var _0x3c9fed,_0x15a67e=0x1,_0x1bdb20=arguments[_0x239909(0x1d3)];_0x15a67e<_0x1bdb20;_0x15a67e++){_0x3c9fed=arguments[_0x15a67e];for(var _0x221121 in _0x3c9fed)Object[_0x239909(0x238)][_0x239909(0x197)][_0x239909(0x224)](_0x3c9fed,_0x221121)&&(_0x4d8c3b[_0x221121]=_0x3c9fed[_0x221121]);}return _0x4d8c3b;},_0xa306b7[_0x4528e9(0x1ed)](this,arguments);},_0x45c12f=function(_0x32f8e0,_0x595976){var _0x2ac883=_0x17d40a,_0x42f328={};for(var _0x5612e2 in _0x32f8e0)Object['prototype'][_0x2ac883(0x197)][_0x2ac883(0x224)](_0x32f8e0,_0x5612e2)&&_0x595976[_0x2ac883(0x250)](_0x5612e2)<0x0&&(_0x42f328[_0x5612e2]=_0x32f8e0[_0x5612e2]);if(_0x32f8e0!=null&&typeof Object[_0x2ac883(0x1be)]==_0x2ac883(0x1cf)){for(var _0x4f591e=0x0,_0x5612e2=Object[_0x2ac883(0x1be)](_0x32f8e0);_0x4f591e<_0x5612e2[_0x2ac883(0x1d3)];_0x4f591e++)_0x595976[_0x2ac883(0x250)](_0x5612e2[_0x4f591e])<0x0&&Object[_0x2ac883(0x238)][_0x2ac883(0x267)][_0x2ac883(0x224)](_0x32f8e0,_0x5612e2[_0x4f591e])&&(_0x42f328[_0x5612e2[_0x4f591e]]=_0x32f8e0[_0x5612e2[_0x4f591e]]);}return _0x42f328;},_0x2f58c6=_0x20f459[_0x17d40a(0x180)](function(_0x806632,_0x262f61){var _0x1c0ed4=_0x17d40a,_0x2aab8d=_0x806632[_0x1c0ed4(0x20c)],_0x3e69d3=_0x806632['id'],_0x3536a6=_0x806632[_0x1c0ed4(0x1bc)],_0xdb495b=_0x806632[_0x1c0ed4(0x1ce)],_0x4f2247=_0x45c12f(_0x806632,['icon','id','className',_0x1c0ed4(0x1ce)]),_0x563379='univerjs-icon\x20univerjs-icon-'[_0x1c0ed4(0x1a8)](_0x3e69d3,'\x20')[_0x1c0ed4(0x1a8)](_0x3536a6||'')[_0x1c0ed4(0x22b)](),_0x4e12e6=_0x20f459[_0x1c0ed4(0x263)]('_'[_0x1c0ed4(0x1a8)](_0x486771()));return _0x5e5172(_0x2aab8d,''['concat'](_0x3e69d3),{'defIds':_0x2aab8d['defIds'],'idSuffix':_0x4e12e6['current']},_0xa306b7({'ref':_0x262f61,'className':_0x563379},_0x4f2247),_0xdb495b);});function _0x5e5172(_0xb789c7,_0xe3e060,_0x3dceb4,_0x3456a2,_0x18f00f){var _0x2d5724=_0x17d40a;return _0x20f459[_0x2d5724(0x212)](_0xb789c7['tag'],_0xa306b7(_0xa306b7({'key':_0xe3e060},_0x46ecce(_0xb789c7,_0x3dceb4,_0x18f00f)),_0x3456a2),(_0x3706c8(_0xb789c7,_0x3dceb4)[_0x2d5724(0x18c)]||[])['map'](function(_0x166485,_0x3f7e03){var _0x3760da=_0x2d5724;return _0x5e5172(_0x166485,''[_0x3760da(0x1a8)](_0xe3e060,'-')[_0x3760da(0x1a8)](_0xb789c7['tag'],'-')['concat'](_0x3f7e03),_0x3dceb4,void 0x0,_0x18f00f);}));}function _0x46ecce(_0x1d8fbd,_0x4a68c8,_0x48d61b){var _0x8ae92a=_0x17d40a,_0x2a6ad4=_0xa306b7({},_0x1d8fbd['attrs']);_0x48d61b!=null&&_0x48d61b[_0x8ae92a(0x24a)]&&_0x2a6ad4[_0x8ae92a(0x17a)]===_0x8ae92a(0x24a)&&(_0x2a6ad4['fill']=_0x48d61b[_0x8ae92a(0x24a)]),_0x1d8fbd[_0x8ae92a(0x23a)]==='mask'&&_0x2a6ad4['id']&&(_0x2a6ad4['id']=_0x2a6ad4['id']+_0x4a68c8[_0x8ae92a(0x1b1)]),Object[_0x8ae92a(0x20a)](_0x2a6ad4)[_0x8ae92a(0x20b)](function(_0x49fac3){var _0x547b39=_0x8ae92a,_0x1d1ac6=_0x49fac3[0x0],_0x3ea35a=_0x49fac3[0x1];_0x1d1ac6===_0x547b39(0x1d0)&&typeof _0x3ea35a=='string'&&(_0x2a6ad4[_0x1d1ac6]=_0x3ea35a['replace'](/url\(#(.*)\)/,_0x547b39(0x219)[_0x547b39(0x1a8)](_0x4a68c8['idSuffix'],')')));});var _0x3a1ad0=_0x4a68c8[_0x8ae92a(0x1af)];return!_0x3a1ad0||_0x3a1ad0[_0x8ae92a(0x1d3)]===0x0||(_0x1d8fbd['tag']===_0x8ae92a(0x227)&&_0x2a6ad4[_0x8ae92a(0x1c5)]&&(_0x2a6ad4[_0x8ae92a(0x1c5)]=_0x2a6ad4[_0x8ae92a(0x1c5)]+_0x4a68c8['idSuffix']),Object[_0x8ae92a(0x20a)](_0x2a6ad4)[_0x8ae92a(0x20b)](function(_0x24f83c){var _0x4c9653=_0x8ae92a,_0xae7da6=_0x24f83c[0x0],_0x277f99=_0x24f83c[0x1];typeof _0x277f99==_0x4c9653(0x1ac)&&(_0x2a6ad4[_0xae7da6]=_0x277f99[_0x4c9653(0x1a4)](/url\(#(.*)\)/,_0x4c9653(0x219)['concat'](_0x4a68c8[_0x4c9653(0x1b1)],')')));})),_0x2a6ad4;}function _0x3706c8(_0x237b2d,_0x173d95){var _0x31651e=_0x17d40a,_0x3044eb,_0x5605fe=_0x173d95['defIds'];return!_0x5605fe||_0x5605fe['length']===0x0?_0x237b2d:_0x237b2d['tag']===_0x31651e(0x222)&&(!((_0x3044eb=_0x237b2d['children'])===null||_0x3044eb===void 0x0)&&_0x3044eb[_0x31651e(0x1d3)])?_0xa306b7(_0xa306b7({},_0x237b2d),{'children':_0x237b2d[_0x31651e(0x18c)][_0x31651e(0x18b)](function(_0x4b45af){var _0x2d2088=_0x31651e;return typeof _0x4b45af['attrs']['id']==_0x2d2088(0x1ac)&&_0x5605fe&&_0x5605fe[_0x2d2088(0x1fc)](_0x4b45af[_0x2d2088(0x188)]['id'])?_0xa306b7(_0xa306b7({},_0x4b45af),{'attrs':_0xa306b7(_0xa306b7({},_0x4b45af[_0x2d2088(0x188)]),{'id':_0x4b45af[_0x2d2088(0x188)]['id']+_0x173d95['idSuffix']})}):_0x4b45af;})}):_0x237b2d;}function _0x486771(){var _0x16fc16=_0x17d40a;return Math[_0x16fc16(0x185)]()[_0x16fc16(0x262)](0x24)[_0x16fc16(0x1cb)](0x2,0x8);}_0x2f58c6[_0x17d40a(0x1fb)]=_0x17d40a(0x253);var _0x2a9b4a={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x17d40a(0x1a1),'viewBox':_0x17d40a(0x254),'width':'1em','height':_0x17d40a(0x17b)},'children':[{'tag':_0x17d40a(0x221),'attrs':{'fill':_0x17d40a(0x211),'d':_0x17d40a(0x1b5)}},{'tag':_0x17d40a(0x221),'attrs':{'fill':_0x17d40a(0x211),'d':_0x17d40a(0x25a),'fillRule':_0x17d40a(0x1ec),'clipRule':_0x17d40a(0x1ec)}}]},_0x3a6396=_0x20f459[_0x17d40a(0x180)](function(_0x3f6662,_0x67d1d4){var _0x13b25f=_0x17d40a;return _0x20f459[_0x13b25f(0x212)](_0x2f58c6,Object[_0x13b25f(0x1b3)]({},_0x3f6662,{'id':_0x13b25f(0x1d4),'ref':_0x67d1d4,'icon':_0x2a9b4a}));});_0x3a6396['displayName']=_0x17d40a(0x213);class _0x6b369a extends _0x211bdc['Disposable']{constructor(){var _0x21904b=_0x17d40a;super(...arguments),_0x1c6732(this,_0x21904b(0x22d),new Set()),_0x1c6732(this,'_reporters',new Set());}[_0x17d40a(0x1aa)](_0x482ad2){var _0x57bc17=_0x17d40a;return this[_0x57bc17(0x22d)][_0x57bc17(0x230)](_0x482ad2),_0x211bdc[_0x57bc17(0x208)](()=>this[_0x57bc17(0x22d)][_0x57bc17(0x1dd)](_0x482ad2));}[_0x17d40a(0x186)](_0x1a1ca9){var _0x118ca3=_0x17d40a;return this[_0x118ca3(0x1c6)][_0x118ca3(0x230)](_0x1a1ca9),_0x211bdc[_0x118ca3(0x208)](()=>this[_0x118ca3(0x1c6)][_0x118ca3(0x1dd)](_0x1a1ca9));}['shouldShareOperation'](_0x13fa61){var _0x2f8d7a=_0x17d40a;return this[_0x2f8d7a(0x22d)][_0x2f8d7a(0x266)](_0x13fa61);}[_0x17d40a(0x184)](_0x1a5990){var _0x2acd90=_0x17d40a;return Array[_0x2acd90(0x1db)](this[_0x2acd90(0x1c6)])[_0x2acd90(0x18b)](_0x3de5ef=>_0x3de5ef(_0x1a5990));}}var _0x8ac7b=Object[_0x17d40a(0x17e)],_0xe8ca5a=(_0x5c5663,_0x12fbc1,_0x59f03b,_0x529f89)=>{for(var _0x24c2e9=_0x529f89>0x1?void 0x0:_0x529f89?_0x8ac7b(_0x12fbc1,_0x59f03b):_0x12fbc1,_0x3adc93=_0x5c5663['length']-0x1,_0x2ccf33;_0x3adc93>=0x0;_0x3adc93--)(_0x2ccf33=_0x5c5663[_0x3adc93])&&(_0x24c2e9=_0x2ccf33(_0x24c2e9)||_0x24c2e9);return _0x24c2e9;},_0x4eb9e8=(_0x181db8,_0x451ad6)=>(_0x431903,_0x7d5a0b)=>_0x451ad6(_0x431903,_0x7d5a0b,_0x181db8);_0x482a46[_0x17d40a(0x1c7)]=class extends _0x211bdc[_0x17d40a(0x1f8)]{constructor(_0x245aa4,_0x44dad7,_0x4c1c17){var _0x17131d=_0x17d40a;super(),_0x1c6732(this,_0x17131d(0x206),new Map()),(this[_0x17131d(0x20f)]=_0x245aa4,this['_injector']=_0x44dad7,this[_0x17131d(0x1e7)]=_0x4c1c17,this[_0x17131d(0x1eb)]());}async[_0x17d40a(0x20d)](_0x34162a){var _0x42972a=_0x17d40a;return this[_0x42972a(0x206)]['has'](_0x34162a)||await this['_startLiveShareCoordinator'](_0x34162a),this[_0x42972a(0x206)]['get'](_0x34162a);}['_init'](){var _0xd8829c=_0x17d40a;this['_univerInstanceService'][_0xd8829c(0x1d2)](_0x211bdc[_0xd8829c(0x191)]['UNIVER_SHEET'])[_0xd8829c(0x246)](_0x4d74bf[_0xd8829c(0x1b7)](this[_0xd8829c(0x225)]))[_0xd8829c(0x1ba)](async _0xc7ee3a=>{var _0x217a5b=_0xd8829c;const _0xbe3f71=_0xc7ee3a[_0x217a5b(0x18f)]();this['_entities'][_0x217a5b(0x266)](_0xbe3f71)||this['_startLiveShareCoordinator'](_0xbe3f71);}),this[_0xd8829c(0x20f)][_0xd8829c(0x203)](_0x211bdc['UniverInstanceType'][_0xd8829c(0x1ff)])[_0xd8829c(0x246)](_0x4d74bf[_0xd8829c(0x1b7)](this[_0xd8829c(0x225)]))[_0xd8829c(0x1ba)](_0x4223bb=>{var _0x4c2ad5=_0xd8829c;const _0x512dac=_0x4223bb[_0x4c2ad5(0x18f)](),_0x51c8a5=this[_0x4c2ad5(0x206)]['get'](_0x512dac);_0x51c8a5==null||_0x51c8a5['dispose']();});}async['_startLiveShareCoordinator'](_0x114fbc){var _0x279cb7=_0x17d40a;const _0x1170b0=await this[_0x279cb7(0x1e7)][_0x279cb7(0x1ca)](_0x114fbc),_0x483b55=this[_0x279cb7(0x1d6)][_0x279cb7(0x1fe)](_0x482a46[_0x279cb7(0x194)],_0x114fbc,_0x1170b0);return _0x483b55[_0x279cb7(0x1a5)](),this[_0x279cb7(0x206)][_0x279cb7(0x1a9)](_0x114fbc,_0x483b55),_0x483b55;}},_0x482a46[_0x17d40a(0x1c7)]=_0xe8ca5a([_0x4eb9e8(0x0,_0x211bdc['IUniverInstanceService']),_0x4eb9e8(0x1,_0x211bdc[_0x17d40a(0x241)](_0x211bdc[_0x17d40a(0x25d)])),_0x4eb9e8(0x2,_0x211bdc[_0x17d40a(0x241)](_0x3f8726['CollaborationSessionService']))],_0x482a46[_0x17d40a(0x1c7)]);var _0x22b009=(_0x328aa0=>(_0x328aa0[_0x17d40a(0x1e3)]='offline',_0x328aa0[_0x17d40a(0x1e4)]='idle',_0x328aa0[_0x17d40a(0x22c)]=_0x17d40a(0x215),_0x328aa0[_0x17d40a(0x260)]='not-following',_0x328aa0['PRESENTING']=_0x17d40a(0x248),_0x328aa0))(_0x22b009||{});const _0x1944f8=_0x17d40a(0x183),_0xdbfc56=0xc8;_0x482a46[_0x17d40a(0x194)]=class extends _0x211bdc[_0x17d40a(0x1f8)]{constructor(_0x3ffe6f,_0x1c85b8,_0x358285,_0x5566e7,_0x51c66c){var _0x5eba2a=_0x17d40a;super(),_0x1c6732(this,'_status$',new _0x40138b[(_0x5eba2a(0x1dc))](_0x5eba2a(0x25b))),_0x1c6732(this,_0x5eba2a(0x24f),this[_0x5eba2a(0x218)][_0x5eba2a(0x19a)]()),_0x1c6732(this,_0x5eba2a(0x1eb),!0x1),_0x1c6732(this,_0x5eba2a(0x1c0),null),_0x1c6732(this,_0x5eba2a(0x251),null),(this[_0x5eba2a(0x189)]=_0x3ffe6f,this[_0x5eba2a(0x204)]=_0x1c85b8,this[_0x5eba2a(0x26b)]=_0x358285,this[_0x5eba2a(0x1bd)]=_0x5566e7,this[_0x5eba2a(0x23c)]=_0x51c66c);}get[_0x17d40a(0x223)](){var _0x14ae7b=_0x17d40a;return this[_0x14ae7b(0x218)][_0x14ae7b(0x1c8)]();}['dispose'](){var _0x4c7dd4=_0x17d40a,_0x1ff213;(_0x1ff213=this[_0x4c7dd4(0x1c0)])==null||_0x1ff213[_0x4c7dd4(0x271)](),this[_0x4c7dd4(0x218)][_0x4c7dd4(0x22a)](_0x4c7dd4(0x25b)),this[_0x4c7dd4(0x218)][_0x4c7dd4(0x19b)]();}[_0x17d40a(0x1a5)](){var _0x394e9c=_0x17d40a;this[_0x394e9c(0x1eb)]||(this[_0x394e9c(0x1eb)]=!0x0,this[_0x394e9c(0x204)][_0x394e9c(0x26e)][_0x394e9c(0x246)](_0x4d74bf[_0x394e9c(0x1b7)](this['dispose$']))['subscribe'](_0x4adb42=>{var _0x3911eb=_0x394e9c;switch(_0x4adb42){case _0x3f8726[_0x3911eb(0x1f4)][_0x3911eb(0x1e3)]:this['_handleOffline']();break;case _0x3f8726[_0x3911eb(0x1f4)][_0x3911eb(0x22e)]:this[_0x3911eb(0x1b8)]();break;}}),this[_0x394e9c(0x204)][_0x394e9c(0x228)][_0x394e9c(0x246)](_0x4d74bf['takeUntil'](this[_0x394e9c(0x225)]))[_0x394e9c(0x1ba)](_0x4121e3=>{var _0x35960a=_0x394e9c;const {eventID:_0x270406}=_0x4121e3;switch(_0x270406){case _0x4d84ad[_0x35960a(0x25f)][_0x35960a(0x1c2)]:this[_0x35960a(0x24e)](_0x4121e3);break;case _0x4d84ad[_0x35960a(0x25f)][_0x35960a(0x1b0)]:this[_0x35960a(0x187)](_0x4121e3);break;case _0x4d84ad[_0x35960a(0x25f)][_0x35960a(0x199)]:this[_0x35960a(0x24d)]();break;case _0x4d84ad['CollaborationEvent'][_0x35960a(0x182)]:this[_0x35960a(0x270)](_0x4121e3);break;}}));}[_0x17d40a(0x261)](){var _0x22d873=_0x17d40a;this[_0x22d873(0x204)][_0x22d873(0x265)]({'eventID':_0x4d84ad[_0x22d873(0x25f)][_0x22d873(0x247)],'data':{'unitID':this[_0x22d873(0x189)],'userID':this[_0x22d873(0x204)]['getMemberID']()}},this[_0x22d873(0x189)]);}[_0x17d40a(0x232)](){var _0x345bc2=_0x17d40a;this[_0x345bc2(0x223)]===_0x345bc2(0x248)&&(this[_0x345bc2(0x218)]['next']('idle'),this[_0x345bc2(0x204)][_0x345bc2(0x265)]({'eventID':_0x4d84ad[_0x345bc2(0x25f)][_0x345bc2(0x199)],'data':{'unitID':this[_0x345bc2(0x189)]}},this[_0x345bc2(0x189)]));}['startFollowing'](){var _0x1b3ec1=_0x17d40a;this[_0x1b3ec1(0x223)]===_0x1b3ec1(0x1da)&&(this[_0x1b3ec1(0x218)][_0x1b3ec1(0x22a)](_0x1b3ec1(0x215)),this[_0x1b3ec1(0x255)]());}[_0x17d40a(0x23e)](){var _0x17f5cb=_0x17d40a;this[_0x17f5cb(0x223)]===_0x17f5cb(0x215)&&this[_0x17f5cb(0x26d)]();}[_0x17d40a(0x24e)](_0x4ebec1){var _0x537001=_0x17d40a;const {presenter:_0x4c9fce}=_0x4ebec1[_0x537001(0x1c3)],_0x1ffcfb=this['_collabSession']['getMemberID']();this[_0x537001(0x251)]=_0x4c9fce,_0x4c9fce===_0x1ffcfb?(this[_0x537001(0x26d)](),this['_startPresenting']()):this[_0x537001(0x223)]!==_0x537001(0x1da)&&(this[_0x537001(0x196)](),this[_0x537001(0x255)]());}[_0x17d40a(0x21c)](){var _0x5a526f=_0x17d40a;const _0x42694a={'eventID':_0x4d84ad[_0x5a526f(0x25f)][_0x5a526f(0x23f)]};this[_0x5a526f(0x204)][_0x5a526f(0x265)](_0x42694a,this[_0x5a526f(0x189)]);}['_handleTerminate'](){var _0x553157=_0x17d40a;this[_0x553157(0x251)]=null,this[_0x553157(0x223)]!=='presenting'&&this[_0x553157(0x1ab)]();}[_0x17d40a(0x270)](_0x11f818){var _0xcbac9a=_0x17d40a;if(this[_0xcbac9a(0x223)]==='following'&&this[_0xcbac9a(0x251)]===_0x11f818[_0xcbac9a(0x1c3)][_0xcbac9a(0x229)]){const _0xbfe262=_0x4d84ad[_0xcbac9a(0x1d1)](_0x11f818[_0xcbac9a(0x1c3)])[_0xcbac9a(0x1bb)][_0xcbac9a(0x1f7)]()[_0xcbac9a(0x190)](_0x26f156=>_0x26f156['id']===_0x44862f[_0xcbac9a(0x21d)]['id']);if(_0xbfe262){const _0x431a91=_0xbfe262[_0xcbac9a(0x17f)]['unitId'],_0x352a59=_0xbfe262[_0xcbac9a(0x17f)][_0xcbac9a(0x259)]['id'];setTimeout(()=>{var _0x3334a8=_0xcbac9a;this[_0x3334a8(0x23c)][_0x3334a8(0x19e)](_0x44862f['SetWorksheetActiveOperation']['id'],{'unitId':_0x431a91,'subUnitId':_0x352a59},{'fromCollab':!0x0});});}}}[_0x17d40a(0x1a3)](){var _0x2ac4cf=_0x17d40a;this[_0x2ac4cf(0x218)]['next']('presenting');const _0x2e77e3=new Map(),_0x4521f4=this[_0x2ac4cf(0x1c0)]=new _0x211bdc[(_0x2ac4cf(0x1e9))]();_0x4521f4[_0x2ac4cf(0x230)](_0x211bdc[_0x2ac4cf(0x208)](()=>{var _0x4d1fc2=_0x2ac4cf;_0x2e77e3[_0x4d1fc2(0x20b)](_0x34c039=>_0x34c039[_0x4d1fc2(0x19b)]()),_0x2e77e3[_0x4d1fc2(0x181)]();})),_0x4521f4[_0x2ac4cf(0x230)](this[_0x2ac4cf(0x23c)][_0x2ac4cf(0x18e)](_0x4a82c0=>{var _0x1aa00b=_0x2ac4cf,_0x1f66d5;if(_0x4a82c0[_0x1aa00b(0x1a2)]!==_0x211bdc[_0x1aa00b(0x1f1)]['OPERATION']||!this[_0x1aa00b(0x1bd)][_0x1aa00b(0x26a)](_0x4a82c0['id']))return;const {id:_0xdabd58}=_0x4a82c0;let _0x3b7537;_0x2e77e3['has'](_0xdabd58)?_0x3b7537=_0x2e77e3[_0x1aa00b(0x1cd)](_0xdabd58):(_0x3b7537=new _0x40138b['Subject'](),_0x2e77e3[_0x1aa00b(0x1a9)](_0xdabd58,_0x3b7537),_0x3b7537[_0x1aa00b(0x246)](_0x4d74bf[_0x1aa00b(0x21b)]((_0x1f66d5=this[_0x1aa00b(0x26b)][_0x1aa00b(0x1f3)](_0x1944f8))!=null?_0x1f66d5:_0xdbfc56,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1aa00b(0x1ba)](_0x3315ed=>{var _0x247d93=_0x1aa00b;this[_0x247d93(0x204)][_0x247d93(0x265)]({'eventID':_0x4d84ad[_0x247d93(0x25f)][_0x247d93(0x1b0)],'data':{'unitID':this[_0x247d93(0x189)],'operations':{[_0x3315ed['id']]:{'id':_0x3315ed['id'],'params':JSON[_0x247d93(0x20e)](_0x3315ed[_0x247d93(0x17f)])}}}},this['_unitID']);})),_0x3b7537[_0x1aa00b(0x22a)](_0x4a82c0);})),this[_0x2ac4cf(0x1bd)][_0x2ac4cf(0x184)](this[_0x2ac4cf(0x189)])[_0x2ac4cf(0x20b)](_0x5c5db2=>this['_collabSession'][_0x2ac4cf(0x265)]({'eventID':_0x4d84ad[_0x2ac4cf(0x25f)][_0x2ac4cf(0x1b0)],'data':{'unitID':this[_0x2ac4cf(0x189)],'operations':{[_0x5c5db2['id']]:{'id':_0x5c5db2['id'],'params':JSON[_0x2ac4cf(0x20e)](_0x5c5db2[_0x2ac4cf(0x17f)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x764156=_0x17d40a,_0x2eafc2;this[_0x764156(0x218)][_0x764156(0x22a)]('idle'),(_0x2eafc2=this['_commandDisposable'])==null||_0x2eafc2['dispose'](),this[_0x764156(0x1c0)]=null;}[_0x17d40a(0x255)](){var _0x3c5257=_0x17d40a,_0xa8a972;(_0xa8a972=this[_0x3c5257(0x1c0)])==null||_0xa8a972[_0x3c5257(0x271)](),this['_status$'][_0x3c5257(0x22a)](_0x3c5257(0x215));}['_beIdle'](){var _0x283008=_0x17d40a,_0x12aa3b;this['_status$'][_0x283008(0x22a)](_0x283008(0x25b)),(_0x12aa3b=this['_commandDisposable'])==null||_0x12aa3b[_0x283008(0x271)](),this[_0x283008(0x1c0)]=null;}['_stopFollowing'](){var _0x13097c=_0x17d40a,_0x1c5a77;this[_0x13097c(0x218)][_0x13097c(0x22a)]('not-following'),(_0x1c5a77=this['_commandDisposable'])==null||_0x1c5a77[_0x13097c(0x271)]();}[_0x17d40a(0x187)](_0x4f9103){var _0x1ad4ea=_0x17d40a;if([_0x1ad4ea(0x248),_0x1ad4ea(0x1da),'offline'][_0x1ad4ea(0x1fc)](this[_0x1ad4ea(0x223)])||!_0x4f9103[_0x1ad4ea(0x1c3)][_0x1ad4ea(0x268)]||_0x4f9103[_0x1ad4ea(0x1c3)]['presenter']===this[_0x1ad4ea(0x204)]['getMemberID']())return;this['_status']===_0x1ad4ea(0x25b)&&this[_0x1ad4ea(0x255)]();const _0x2b835b=_0x4f9103[_0x1ad4ea(0x1c3)]['operations'];Object['values'](_0x2b835b)[_0x1ad4ea(0x20b)](_0xd56b8c=>{var _0x300861=_0x1ad4ea;this[_0x300861(0x23c)][_0x300861(0x19e)](_0xd56b8c['id'],_0xd56b8c[_0x300861(0x17f)]?JSON[_0x300861(0x18a)](_0xd56b8c[_0x300861(0x17f)]):null,{'fromCollab':!0x0});});}[_0x17d40a(0x19c)](){var _0x10df52=_0x17d40a,_0x37b2b3;this[_0x10df52(0x218)][_0x10df52(0x22a)]('offline'),(_0x37b2b3=this['_commandDisposable'])==null||_0x37b2b3[_0x10df52(0x271)]();}[_0x17d40a(0x1b8)](){var _0x469b70=_0x17d40a;this[_0x469b70(0x218)][_0x469b70(0x22a)](_0x469b70(0x25b)),this[_0x469b70(0x21c)]();}},_0x482a46['LiveShareCoordinator']=_0xe8ca5a([_0x4eb9e8(0x2,_0x211bdc[_0x17d40a(0x19d)]),_0x4eb9e8(0x3,_0x211bdc[_0x17d40a(0x241)](_0x6b369a)),_0x4eb9e8(0x4,_0x211bdc[_0x17d40a(0x240)])],_0x482a46['LiveShareCoordinator']);function _0x334daa(){var _0x262536=_0x17d40a;const _0x49dc3a=_0x291554['useDependency'](_0x482a46[_0x262536(0x1c7)]),_0x46b9c3=_0x291554[_0x262536(0x1e5)](_0x211bdc[_0x262536(0x21a)]),_0x43bd57=_0x291554[_0x262536(0x269)](()=>_0x46b9c3[_0x262536(0x1de)](_0x211bdc[_0x262536(0x191)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0xed459a,_0x242e1d]=_0x20f459[_0x262536(0x1fa)](null),[_0x1cf52d,_0x5eab63]=_0x20f459['useState'](_0x22b009[_0x262536(0x1e4)]),_0x3cb157=_0x20f459[_0x262536(0x263)](null);return _0x20f459[_0x262536(0x1c9)](()=>(_0x43bd57&&_0x49dc3a['getLiveShareCoordinator'](_0x43bd57['getUnitId']())['then'](_0x3d5ec3=>{var _0x183f29=_0x262536;_0x242e1d(_0x3d5ec3),_0x3cb157[_0x183f29(0x216)]=_0x3d5ec3[_0x183f29(0x24f)]['subscribe'](_0x5175eb=>{_0x5eab63(_0x5175eb);});}),()=>{var _0x35730e=_0x262536,_0x1cbc9d;(_0x1cbc9d=_0x3cb157[_0x35730e(0x216)])==null||_0x1cbc9d[_0x35730e(0x1b2)](),_0x3cb157[_0x35730e(0x216)]=null;}),[_0x43bd57,_0x49dc3a]),_0xed459a?_0x1de521[_0x262536(0x1c4)](_0x222549[_0x262536(0x18d)],{'align':_0x262536(0x1cc),'disabled':_0x1cf52d===_0x22b009[_0x262536(0x1e3)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x1de521['jsx'](_0x31e1e9,{'status':_0x1cf52d,'coordinator':_0xed459a}),'children':_0x1de521[_0x262536(0x1c4)](_0x262536(0x1b4),{'className':_0x222549['clsx'](_0x262536(0x1f2),{'univer-cursor-not-allowed':_0x1cf52d===_0x22b009['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1cf52d!==_0x22b009[_0x262536(0x1e3)]}),'type':_0x262536(0x1b4),'children':_0x1de521[_0x262536(0x1c4)](_0x3a6396,{'className':'univer-size-4'})})}):null;}function _0x31e1e9(_0x3a3434){var _0x290777=_0x17d40a;const {status:_0x3b57e0,coordinator:_0x3da66a}=_0x3a3434;switch(_0x3b57e0){case _0x22b009[_0x290777(0x1e4)]:return _0x1de521['jsx'](_0x31cd34,{'coordinator':_0x3da66a});case _0x22b009['FOLLOWING']:return _0x1de521[_0x290777(0x1c4)](_0x596cfa,{'coordinator':_0x3da66a});case _0x22b009[_0x290777(0x260)]:return _0x1de521[_0x290777(0x1c4)](_0x5dd5bd,{'coordinator':_0x3da66a});case _0x22b009[_0x290777(0x1e3)]:return _0x1de521[_0x290777(0x1c4)](_0x5ee499,{});case _0x22b009[_0x290777(0x17d)]:return _0x1de521[_0x290777(0x1c4)](_0x3d55fa,{'coordinator':_0x3da66a});default:return null;}}function _0x31cd34(_0x3bd16e){var _0x658d6e=_0x17d40a;const {coordinator:_0x18ddf5}=_0x3bd16e;return _0x1de521[_0x658d6e(0x1a6)](_0x1de521['Fragment'],{'children':[_0x1de521['jsx'](_0x658d6e(0x1d9),{'className':_0x658d6e(0x245),'children':'Present\x20this\x20document'}),_0x1de521[_0x658d6e(0x1c4)](_0x222549[_0x658d6e(0x1ae)],{'onClick':()=>_0x18ddf5['tryStartPresenting'](),'children':_0x658d6e(0x200)})]});}function _0x596cfa(_0x754535){var _0x49377a=_0x17d40a;const {coordinator:_0x49e026}=_0x754535;return _0x1de521[_0x49377a(0x1a6)](_0x1de521['Fragment'],{'children':[_0x1de521[_0x49377a(0x1c4)](_0x49377a(0x1d9),{'className':_0x49377a(0x245),'children':_0x49377a(0x264)}),_0x1de521[_0x49377a(0x1c4)](_0x222549[_0x49377a(0x1ae)],{'onClick':()=>_0x49e026['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x5dd5bd(_0x35d0c9){var _0x26077a=_0x17d40a;const {coordinator:_0x4cf6ae}=_0x35d0c9;return _0x1de521['jsxs'](_0x1de521['Fragment'],{'children':[_0x1de521[_0x26077a(0x1c4)](_0x26077a(0x1d9),{'className':_0x26077a(0x245),'children':_0x26077a(0x233)}),_0x1de521[_0x26077a(0x1c4)](_0x222549['Button'],{'variant':_0x26077a(0x1e1),'onClick':()=>_0x4cf6ae['startFollowing'](),'children':_0x26077a(0x242)})]});}function _0x3d55fa(_0x4dc2eb){var _0x298f01=_0x17d40a;const {coordinator:_0x480f96}=_0x4dc2eb;return _0x1de521[_0x298f01(0x1a6)](_0x1de521['Fragment'],{'children':[_0x1de521[_0x298f01(0x1c4)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x298f01(0x244)}),_0x1de521[_0x298f01(0x1c4)](_0x222549[_0x298f01(0x1ae)],{'variant':_0x298f01(0x235),'onClick':()=>_0x480f96[_0x298f01(0x232)](),'children':'Stop\x20presenting'})]});}function _0x5ee499(){var _0x4a2e16=_0x17d40a;return _0x1de521['jsx'](_0x1de521['Fragment'],{'children':_0x4a2e16(0x1e6)});}var _0x550f06=Object['getOwnPropertyDescriptor'],_0x15482c=(_0x54dbc9,_0x570ea5,_0x25f246,_0x1cacd9)=>{var _0x1e3a2a=_0x17d40a;for(var _0x4cb9e4=_0x1cacd9>0x1?void 0x0:_0x1cacd9?_0x550f06(_0x570ea5,_0x25f246):_0x570ea5,_0x5633cc=_0x54dbc9[_0x1e3a2a(0x1d3)]-0x1,_0x19fd88;_0x5633cc>=0x0;_0x5633cc--)(_0x19fd88=_0x54dbc9[_0x5633cc])&&(_0x4cb9e4=_0x19fd88(_0x4cb9e4)||_0x4cb9e4);return _0x4cb9e4;},_0x1bf52c=(_0x53a763,_0x4384cc)=>(_0x20e2bf,_0x39b439)=>_0x4384cc(_0x20e2bf,_0x39b439,_0x53a763);_0x482a46[_0x17d40a(0x193)]=class extends _0x211bdc[_0x17d40a(0x1fd)]{constructor(_0x56a9f6,_0x603175){var _0x4900fd=_0x17d40a;super(),this[_0x4900fd(0x1d6)]=_0x56a9f6,this[_0x4900fd(0x1c1)]=_0x603175,this[_0x4900fd(0x21e)]();}[_0x17d40a(0x21e)](){var _0x17f4a8=_0x17d40a;this[_0x17f4a8(0x1e0)](this[_0x17f4a8(0x1c1)][_0x17f4a8(0x207)](_0x291554[_0x17f4a8(0x1ef)][_0x17f4a8(0x26c)],()=>_0x291554['connectInjector'](_0x334daa,this[_0x17f4a8(0x1d6)])));}},_0x482a46[_0x17d40a(0x193)]=_0x15482c([_0x1bf52c(0x0,_0x211bdc[_0x17d40a(0x241)](_0x211bdc[_0x17d40a(0x25d)])),_0x1bf52c(0x1,_0x291554['IUIPartsService'])],_0x482a46[_0x17d40a(0x193)]);const _0x19ec70='live-share.config',_0x51d6e6={};var _0x2e8fe4=Object[_0x17d40a(0x17e)],_0x2d5da4=(_0x348185,_0x3bce6,_0x14d475,_0x1439ab)=>{var _0x41e9d1=_0x17d40a;for(var _0x5bc1c5=_0x1439ab>0x1?void 0x0:_0x1439ab?_0x2e8fe4(_0x3bce6,_0x14d475):_0x3bce6,_0xb07b90=_0x348185[_0x41e9d1(0x1d3)]-0x1,_0x5f1f75;_0xb07b90>=0x0;_0xb07b90--)(_0x5f1f75=_0x348185[_0xb07b90])&&(_0x5bc1c5=_0x5f1f75(_0x5bc1c5)||_0x5bc1c5);return _0x5bc1c5;},_0x201c9f=(_0x19c4d8,_0x148b02)=>(_0x3873da,_0x4e2be8)=>_0x148b02(_0x3873da,_0x4e2be8,_0x19c4d8);let _0x3d9a46=class extends _0x211bdc[_0x17d40a(0x1fd)]{constructor(_0x2575bb){var _0x3f5797=_0x17d40a;super(),this[_0x3f5797(0x1bd)]=_0x2575bb,this['_init']();}[_0x17d40a(0x1eb)](){var _0x257674=_0x17d40a;[_0x593c0b['SetZoomRatioOperation']['id'],_0x593c0b['SetScrollOperation']['id'],_0x44862f[_0x257674(0x1f5)]['id']]['forEach'](_0x5d0720=>{var _0x3dbff0=_0x257674;this['disposeWithMe'](this[_0x3dbff0(0x1bd)]['registerSharedOperation'](_0x5d0720));});}};_0x3d9a46=_0x2d5da4([_0x201c9f(0x0,_0x211bdc['Inject'](_0x6b369a))],_0x3d9a46);var _0x45c74c=Object['defineProperty'],_0x46390a=Object['getOwnPropertyDescriptor'],_0x3d21a1=(_0x43a183,_0xf5b775,_0xbac843)=>_0xf5b775 in _0x43a183?_0x45c74c(_0x43a183,_0xf5b775,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xbac843}):_0x43a183[_0xf5b775]=_0xbac843,_0x482a84=(_0x22d752,_0x1ff632,_0x4942d3,_0x4b4028)=>{var _0x178f49=_0x17d40a;for(var _0xf13c7d=_0x4b4028>0x1?void 0x0:_0x4b4028?_0x46390a(_0x1ff632,_0x4942d3):_0x1ff632,_0x2759bd=_0x22d752[_0x178f49(0x1d3)]-0x1,_0x54ef81;_0x2759bd>=0x0;_0x2759bd--)(_0x54ef81=_0x22d752[_0x2759bd])&&(_0xf13c7d=_0x54ef81(_0xf13c7d)||_0xf13c7d);return _0xf13c7d;},_0x1c5b71=(_0x25d974,_0x47a027)=>(_0x164776,_0x12bc68)=>_0x47a027(_0x164776,_0x12bc68,_0x25d974),_0x3b8ba6=(_0x39f558,_0x4c4945,_0x3e051e)=>_0x3d21a1(_0x39f558,typeof _0x4c4945!=_0x17d40a(0x272)?_0x4c4945+'':_0x4c4945,_0x3e051e);const _0x2df867='UNIVER_LIVE_SHARE_PLUGIN';_0x482a46[_0x17d40a(0x19f)]=class extends _0x211bdc['Plugin']{constructor(_0x299c8d=_0x51d6e6,_0x286a3b,_0x58b6fd){var _0x492282=_0x17d40a;super(),this[_0x492282(0x234)]=_0x299c8d,this[_0x492282(0x1d6)]=_0x286a3b,this[_0x492282(0x26b)]=_0x58b6fd;const {..._0x31e37e}=_0x211bdc[_0x492282(0x1ad)]({},_0x51d6e6,this[_0x492282(0x234)]);this[_0x492282(0x26b)]['setConfig'](_0x19ec70,_0x31e37e);}[_0x17d40a(0x237)](){var _0x819efe=_0x17d40a;_0x211bdc['registerDependencies'](this[_0x819efe(0x1d6)],_0x211bdc[_0x819efe(0x25c)]([[_0x6b369a],[_0x482a46[_0x819efe(0x1c7)]],[_0x3d9a46],[_0x482a46[_0x819efe(0x193)]]],this[_0x819efe(0x234)][_0x819efe(0x1b6)])),_0x211bdc[_0x819efe(0x198)](this[_0x819efe(0x1d6)],[[_0x3d9a46]]);}['onRendered'](){var _0x554be5=_0x17d40a;_0x211bdc[_0x554be5(0x198)](this['_injector'],[[_0x482a46[_0x554be5(0x193)]]]);}},_0x3b8ba6(_0x482a46[_0x17d40a(0x19f)],'type',_0x211bdc[_0x17d40a(0x191)][_0x17d40a(0x1d5)]),_0x3b8ba6(_0x482a46[_0x17d40a(0x19f)],_0x17d40a(0x231),_0x2df867),_0x482a46[_0x17d40a(0x19f)]=_0x482a84([_0x211bdc['DependentOn'](_0x3f8726[_0x17d40a(0x1bf)]),_0x1c5b71(0x1,_0x211bdc[_0x17d40a(0x241)](_0x211bdc['Injector'])),_0x1c5b71(0x2,_0x211bdc['IConfigService'])],_0x482a46[_0x17d40a(0x19f)]),_0x482a46[_0x17d40a(0x192)]=_0x334daa,_0x482a46[_0x17d40a(0x201)]=_0x6b369a,_0x482a46[_0x17d40a(0x23d)]=_0x22b009,Object[_0x17d40a(0x258)](_0x482a46,Symbol[_0x17d40a(0x1f0)],{'value':'Module'});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2-nightly.202508071209",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.4.6",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.10.
|
|
51
|
-
"@univerjs/core": "0.10.
|
|
52
|
-
"@univerjs
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/sheets": "0.10.
|
|
55
|
-
"@univerjs/sheets-ui": "0.10.
|
|
56
|
-
"@univerjs/ui": "0.10.
|
|
50
|
+
"@univerjs-pro/collaboration": "0.10.2-nightly.202508071209",
|
|
51
|
+
"@univerjs/core": "0.10.2-nightly.202508071209",
|
|
52
|
+
"@univerjs/design": "0.10.2-nightly.202508071209",
|
|
53
|
+
"@univerjs-pro/collaboration-client": "0.10.2-nightly.202508071209",
|
|
54
|
+
"@univerjs/sheets": "0.10.2-nightly.202508071209",
|
|
55
|
+
"@univerjs/sheets-ui": "0.10.2-nightly.202508071209",
|
|
56
|
+
"@univerjs/ui": "0.10.2-nightly.202508071209"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
64
|
"vite": "^7.0.6",
|
|
65
65
|
"vitest": "^3.2.4",
|
|
66
|
-
"@univerjs-infra/shared": "0.10.
|
|
66
|
+
"@univerjs-infra/shared": "0.10.2",
|
|
67
67
|
"@univerjs/protocol": "0.1.47-alpha.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|