@univerjs-pro/live-share 0.10.0-nightly.202507310307 → 0.10.1-nightly.202508020912

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 CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x4beac9=_0x348d;(function(_0x223bc6,_0x308307){var _0x32a875=_0x348d,_0x4b20d4=_0x223bc6();while(!![]){try{var _0x29ae71=parseInt(_0x32a875(0x249))/0x1*(-parseInt(_0x32a875(0x271))/0x2)+-parseInt(_0x32a875(0x22e))/0x3+parseInt(_0x32a875(0x234))/0x4+-parseInt(_0x32a875(0x1ba))/0x5+-parseInt(_0x32a875(0x1e6))/0x6*(-parseInt(_0x32a875(0x1f6))/0x7)+parseInt(_0x32a875(0x1d7))/0x8*(parseInt(_0x32a875(0x259))/0x9)+parseInt(_0x32a875(0x229))/0xa*(parseInt(_0x32a875(0x21e))/0xb);if(_0x29ae71===_0x308307)break;else _0x4b20d4['push'](_0x4b20d4['shift']());}catch(_0x2fe864){_0x4b20d4['push'](_0x4b20d4['shift']());}}}(_0x59a8,0x2142b));var U=Object[_0x4beac9(0x213)],F=(_0x47c449,_0x16cc9a,_0x3124c0)=>_0x16cc9a in _0x47c449?U(_0x47c449,_0x16cc9a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3124c0}):_0x47c449[_0x16cc9a]=_0x3124c0,v=(_0x11a127,_0x464061,_0x3fc39c)=>F(_0x11a127,typeof _0x464061!=_0x4beac9(0x1f7)?_0x464061+'':_0x464061,_0x3fc39c);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x4beac9(0x1c1)});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'),$=_0x4beac9(0x244),x={};class O extends o[_0x4beac9(0x239)]{constructor(){var _0x51b265=_0x4beac9;super(...arguments),v(this,_0x51b265(0x1f2),new Set()),v(this,'_reporters',new Set());}[_0x4beac9(0x276)](_0x4c35ad){var _0x352866=_0x4beac9;return this[_0x352866(0x1f2)]['add'](_0x4c35ad),o['toDisposable'](()=>this[_0x352866(0x1f2)][_0x352866(0x24a)](_0x4c35ad));}[_0x4beac9(0x1e4)](_0x3f8442){var _0x2d81a6=_0x4beac9;return this[_0x2d81a6(0x242)][_0x2d81a6(0x1d5)](_0x3f8442),o['toDisposable'](()=>this[_0x2d81a6(0x242)][_0x2d81a6(0x24a)](_0x3f8442));}['shouldShareOperation'](_0x5dbf2d){return this['_sharedOperations']['has'](_0x5dbf2d);}[_0x4beac9(0x1c5)](_0x6175ed){var _0x20c7b1=_0x4beac9;return Array[_0x20c7b1(0x247)](this['_reporters'])[_0x20c7b1(0x21d)](_0x5c98c2=>_0x5c98c2(_0x6175ed));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x491c10,_0x725e8f,_0x28a34d,_0x3b9ec1)=>{var _0x4b6034=_0x4beac9;for(var _0x5ca5ba=_0x3b9ec1>0x1?void 0x0:_0x3b9ec1?H(_0x725e8f,_0x28a34d):_0x725e8f,_0x359cf5=_0x491c10[_0x4b6034(0x288)]-0x1,_0x524f90;_0x359cf5>=0x0;_0x359cf5--)(_0x524f90=_0x491c10[_0x359cf5])&&(_0x5ca5ba=_0x524f90(_0x5ca5ba)||_0x5ca5ba);return _0x5ca5ba;},k=(_0x1d3217,_0xadea19)=>(_0x30833c,_0x5117e3)=>_0xadea19(_0x30833c,_0x5117e3,_0x1d3217);let E=class extends o['Disposable']{constructor(_0x543134){var _0x566eab=_0x4beac9;super(),this[_0x566eab(0x26d)]=_0x543134,this['_init']();}[_0x4beac9(0x240)](){var _0x4b5ea0=_0x4beac9;[w[_0x4b5ea0(0x28a)]['id'],w[_0x4b5ea0(0x24c)]['id'],C[_0x4b5ea0(0x219)]['id']][_0x4b5ea0(0x203)](_0x573d43=>{var _0x4bc755=_0x4b5ea0;this[_0x4bc755(0x293)](this[_0x4bc755(0x26d)][_0x4bc755(0x276)](_0x573d43));});}};E=V([k(0x0,o[_0x4beac9(0x1ee)](O))],E);var u=function(){var _0x179a46=_0x4beac9;return u=Object[_0x179a46(0x237)]||function(_0x550fc4){var _0x223298=_0x179a46;for(var _0xdcafc2,_0x4c4b45=0x1,_0x226a6e=arguments[_0x223298(0x288)];_0x4c4b45<_0x226a6e;_0x4c4b45++){_0xdcafc2=arguments[_0x4c4b45];for(var _0x2ef093 in _0xdcafc2)Object[_0x223298(0x205)][_0x223298(0x24f)][_0x223298(0x235)](_0xdcafc2,_0x2ef093)&&(_0x550fc4[_0x2ef093]=_0xdcafc2[_0x2ef093]);}return _0x550fc4;},u['apply'](this,arguments);},M=function(_0x54f1a5,_0x3c8c41){var _0x5b9f72=_0x4beac9,_0x596875={};for(var _0x5afa49 in _0x54f1a5)Object['prototype'][_0x5b9f72(0x24f)][_0x5b9f72(0x235)](_0x54f1a5,_0x5afa49)&&_0x3c8c41[_0x5b9f72(0x246)](_0x5afa49)<0x0&&(_0x596875[_0x5afa49]=_0x54f1a5[_0x5afa49]);if(_0x54f1a5!=null&&typeof Object['getOwnPropertySymbols']==_0x5b9f72(0x1f0)){for(var _0x5e9d3d=0x0,_0x5afa49=Object[_0x5b9f72(0x1d2)](_0x54f1a5);_0x5e9d3d<_0x5afa49[_0x5b9f72(0x288)];_0x5e9d3d++)_0x3c8c41['indexOf'](_0x5afa49[_0x5e9d3d])<0x0&&Object[_0x5b9f72(0x205)][_0x5b9f72(0x25b)][_0x5b9f72(0x235)](_0x54f1a5,_0x5afa49[_0x5e9d3d])&&(_0x596875[_0x5afa49[_0x5e9d3d]]=_0x54f1a5[_0x5afa49[_0x5e9d3d]]);}return _0x596875;},j=f['forwardRef'](function(_0x100543,_0x1a0c5d){var _0x2d73cc=_0x4beac9,_0x4385df=_0x100543[_0x2d73cc(0x215)],_0x2bd903=_0x100543['id'],_0x1e7890=_0x100543[_0x2d73cc(0x207)],_0x2cc234=_0x100543[_0x2d73cc(0x1ef)],_0x2b7839=M(_0x100543,[_0x2d73cc(0x215),'id','className',_0x2d73cc(0x1ef)]),_0x175aaf='univerjs-icon\x20univerjs-icon-'[_0x2d73cc(0x27b)](_0x2bd903,'\x20')['concat'](_0x1e7890||'')[_0x2d73cc(0x245)](),_0x20180b=f['useRef']('_'[_0x2d73cc(0x27b)](G()));return y(_0x4385df,''['concat'](_0x2bd903),{'defIds':_0x4385df[_0x2d73cc(0x290)],'idSuffix':_0x20180b[_0x2d73cc(0x1e3)]},u({'ref':_0x1a0c5d,'className':_0x175aaf},_0x2b7839),_0x2cc234);});function y(_0x2bb57a,_0x2d293a,_0x1f6c35,_0x4dc49d,_0x328556){var _0x513f7d=_0x4beac9;return f[_0x513f7d(0x1e1)](_0x2bb57a['tag'],u(u({'key':_0x2d293a},q(_0x2bb57a,_0x1f6c35,_0x328556)),_0x4dc49d),(W(_0x2bb57a,_0x1f6c35)[_0x513f7d(0x1ff)]||[])[_0x513f7d(0x21d)](function(_0x354906,_0x5cf377){var _0x3416d5=_0x513f7d;return y(_0x354906,''[_0x3416d5(0x27b)](_0x2d293a,'-')[_0x3416d5(0x27b)](_0x2bb57a['tag'],'-')[_0x3416d5(0x27b)](_0x5cf377),_0x1f6c35,void 0x0,_0x328556);}));}function q(_0x3c1004,_0x1884d5,_0x332f0a){var _0x17f7d5=_0x4beac9,_0x2a8fe7=u({},_0x3c1004[_0x17f7d5(0x20f)]);_0x332f0a!=null&&_0x332f0a[_0x17f7d5(0x1cc)]&&_0x2a8fe7[_0x17f7d5(0x220)]===_0x17f7d5(0x1cc)&&(_0x2a8fe7[_0x17f7d5(0x220)]=_0x332f0a[_0x17f7d5(0x1cc)]),_0x3c1004['tag']===_0x17f7d5(0x25a)&&_0x2a8fe7['id']&&(_0x2a8fe7['id']=_0x2a8fe7['id']+_0x1884d5[_0x17f7d5(0x230)]),Object[_0x17f7d5(0x1f9)](_0x2a8fe7)['forEach'](function(_0x1af306){var _0x587047=_0x17f7d5,_0x51bfac=_0x1af306[0x0],_0x59ae0c=_0x1af306[0x1];_0x51bfac===_0x587047(0x25a)&&typeof _0x59ae0c=='string'&&(_0x2a8fe7[_0x51bfac]=_0x59ae0c[_0x587047(0x1c0)](/url\(#(.*)\)/,_0x587047(0x26f)[_0x587047(0x27b)](_0x1884d5['idSuffix'],')')));});var _0x1066f1=_0x1884d5[_0x17f7d5(0x290)];return!_0x1066f1||_0x1066f1['length']===0x0||(_0x3c1004['tag']===_0x17f7d5(0x22b)&&_0x2a8fe7[_0x17f7d5(0x265)]&&(_0x2a8fe7[_0x17f7d5(0x265)]=_0x2a8fe7[_0x17f7d5(0x265)]+_0x1884d5[_0x17f7d5(0x230)]),Object[_0x17f7d5(0x1f9)](_0x2a8fe7)[_0x17f7d5(0x203)](function(_0x3da9c4){var _0x344944=_0x17f7d5,_0x391cb2=_0x3da9c4[0x0],_0x1e762c=_0x3da9c4[0x1];typeof _0x1e762c=='string'&&(_0x2a8fe7[_0x391cb2]=_0x1e762c[_0x344944(0x1c0)](/url\(#(.*)\)/,'url(#$1'[_0x344944(0x27b)](_0x1884d5[_0x344944(0x230)],')')));})),_0x2a8fe7;}function W(_0x36d016,_0x2f0247){var _0x3a8687=_0x4beac9,_0xaad4d8,_0x217d08=_0x2f0247['defIds'];return!_0x217d08||_0x217d08[_0x3a8687(0x288)]===0x0?_0x36d016:_0x36d016[_0x3a8687(0x212)]===_0x3a8687(0x1bf)&&(!((_0xaad4d8=_0x36d016[_0x3a8687(0x1ff)])===null||_0xaad4d8===void 0x0)&&_0xaad4d8[_0x3a8687(0x288)])?u(u({},_0x36d016),{'children':_0x36d016[_0x3a8687(0x1ff)][_0x3a8687(0x21d)](function(_0x1587d2){var _0x118f10=_0x3a8687;return typeof _0x1587d2[_0x118f10(0x20f)]['id']==_0x118f10(0x260)&&_0x217d08&&_0x217d08['includes'](_0x1587d2[_0x118f10(0x20f)]['id'])?u(u({},_0x1587d2),{'attrs':u(u({},_0x1587d2[_0x118f10(0x20f)]),{'id':_0x1587d2[_0x118f10(0x20f)]['id']+_0x2f0247[_0x118f10(0x230)]})}):_0x1587d2;})}):_0x36d016;}function G(){var _0x2bc5a4=_0x4beac9;return Math[_0x2bc5a4(0x1ca)]()[_0x2bc5a4(0x1dd)](0x24)[_0x2bc5a4(0x222)](0x2,0x8);}j[_0x4beac9(0x264)]='UniverIcon';var B={'tag':'svg','attrs':{'xmlns':_0x4beac9(0x1dc),'fill':_0x4beac9(0x23c),'viewBox':_0x4beac9(0x241),'width':_0x4beac9(0x258),'height':_0x4beac9(0x258)},'children':[{'tag':_0x4beac9(0x277),'attrs':{'fill':_0x4beac9(0x1d6),'d':_0x4beac9(0x211)}},{'tag':'path','attrs':{'fill':_0x4beac9(0x1d6),'d':_0x4beac9(0x286),'fillRule':_0x4beac9(0x25e),'clipRule':'evenodd'}}]},P=f['forwardRef'](function(_0x7607d8,_0x1f6f06){var _0x5eafec=_0x4beac9;return f[_0x5eafec(0x1e1)](j,Object['assign']({},_0x7607d8,{'id':_0x5eafec(0x20c),'ref':_0x1f6f06,'icon':B}));});P[_0x4beac9(0x264)]='LiveShareIcon';var Y=Object[_0x4beac9(0x210)],R=(_0x24fdac,_0x1ced5e,_0x5ab55b,_0x4dbe39)=>{var _0x41a8e6=_0x4beac9;for(var _0x462d7d=_0x4dbe39>0x1?void 0x0:_0x4dbe39?Y(_0x1ced5e,_0x5ab55b):_0x1ced5e,_0x36bcd7=_0x24fdac[_0x41a8e6(0x288)]-0x1,_0x3abd12;_0x36bcd7>=0x0;_0x36bcd7--)(_0x3abd12=_0x24fdac[_0x36bcd7])&&(_0x462d7d=_0x3abd12(_0x462d7d)||_0x462d7d);return _0x462d7d;},S=(_0x2c7efc,_0x34d718)=>(_0x4d9243,_0x947ae6)=>_0x34d718(_0x4d9243,_0x947ae6,_0x2c7efc);exports[_0x4beac9(0x262)]=class extends o[_0x4beac9(0x27c)]{constructor(_0x4885ec,_0x2adeb5,_0x363847){var _0x1a2bab=_0x4beac9;super(),v(this,_0x1a2bab(0x291),new Map()),(this['_univerInstanceService']=_0x4885ec,this[_0x1a2bab(0x27f)]=_0x2adeb5,this[_0x1a2bab(0x238)]=_0x363847,this[_0x1a2bab(0x240)]());}async[_0x4beac9(0x1b7)](_0x182c94){var _0x39a2a2=_0x4beac9;return this[_0x39a2a2(0x291)][_0x39a2a2(0x25f)](_0x182c94)||await this['_startLiveShareCoordinator'](_0x182c94),this[_0x39a2a2(0x291)]['get'](_0x182c94);}['_init'](){var _0x31c254=_0x4beac9;this[_0x31c254(0x1c8)]['getTypeOfUnitAdded$'](o[_0x31c254(0x1be)][_0x31c254(0x1df)])[_0x31c254(0x1e2)](b[_0x31c254(0x204)](this[_0x31c254(0x25d)]))[_0x31c254(0x1bb)](async _0x1ce1c5=>{var _0x396bdd=_0x31c254;const _0x9ae162=_0x1ce1c5[_0x396bdd(0x248)]();this[_0x396bdd(0x291)]['has'](_0x9ae162)||this[_0x396bdd(0x273)](_0x9ae162);}),this[_0x31c254(0x1c8)][_0x31c254(0x1bc)](o[_0x31c254(0x1be)][_0x31c254(0x1df)])[_0x31c254(0x1e2)](b[_0x31c254(0x204)](this[_0x31c254(0x25d)]))['subscribe'](_0x140dc5=>{var _0x5accd3=_0x31c254;const _0x4aa710=_0x140dc5['getUnitId'](),_0x587861=this['_entities'][_0x5accd3(0x263)](_0x4aa710);_0x587861==null||_0x587861[_0x5accd3(0x251)]();});}async['_startLiveShareCoordinator'](_0x275e3d){var _0x12df1b=_0x4beac9;const _0x245423=await this['_collabSessionService'][_0x12df1b(0x1bd)](_0x275e3d),_0x568d9c=this[_0x12df1b(0x27f)]['createInstance'](exports['LiveShareCoordinator'],_0x275e3d,_0x245423);return _0x568d9c[_0x12df1b(0x208)](),this[_0x12df1b(0x291)]['set'](_0x275e3d,_0x568d9c),_0x568d9c;}},exports[_0x4beac9(0x262)]=R([S(0x0,o[_0x4beac9(0x1e7)]),S(0x1,o[_0x4beac9(0x1ee)](o[_0x4beac9(0x22f)])),S(0x2,o[_0x4beac9(0x1ee)](m[_0x4beac9(0x275)]))],exports[_0x4beac9(0x262)]);var h=(_0x19973d=>(_0x19973d['OFFLINE']=_0x4beac9(0x22a),_0x19973d['IDLE']=_0x4beac9(0x1f3),_0x19973d[_0x4beac9(0x250)]=_0x4beac9(0x24e),_0x19973d[_0x4beac9(0x27a)]=_0x4beac9(0x1b9),_0x19973d[_0x4beac9(0x1c4)]='presenting',_0x19973d))(h||{});function _0x59a8(){var _0x43d0d3=['NOT_FOLLOWING','concat','RxDisposable','LIVESHARE_FETCH_OPERATIONS','sheet','_injector','You\x27re\x20following\x20the\x20presenter','Stop\x20presenting','useRef','SessionStatus','unitId','_stopPresenting','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','_handleNewHost','length','shouldShareOperation','SetZoomRatioOperation','setConfig','_unitID','DesktopLiveShareController','Start\x20following','clear','defIds','_entities','_beIdle','disposeWithMe','_uiPartsService','LiveShareCoordinator','Fragment','values','getLiveShareCoordinator','set','not-following','1250955ynNuSw','subscribe','getTypeOfUnitDisposed$','requireSession','UniverInstanceType','defs','replace','Module','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','send','PRESENTING','getInitialStates','data','LIVESHARE_NEW_HOST','_univerInstanceService','executeCommand','random','_handleTerminate','colorChannel1','includes','merge','BehaviorSubject','_status','_mountLiveShare','getOwnPropertySymbols','_configService','_presenter','add','currentColor','892720cUFHRl','_fetchOperations','jsx','CollaborationEvent','override','http://www.w3.org/2000/svg','toString','stopFollowing','UNIVER_SHEET','_config','createElement','pipe','current','registerInitialStateReporter','Present\x20this\x20document','594eFFjHJ','IUniverInstanceService','button','IDLE','_stopFollowing','getConfig','event$','end','Inject','extend','function','connectInjector','_sharedOperations','idle','useDependency','next','16282nPnOIt','symbol','Stop\x20following','entries','_handleOnline','presenting','LiveShareService','univer-mb-3\x20univer-w-full\x20univer-text-sm','ONLINE','children','_startPresenting','_collabSession','_handleOffline','forEach','takeUntil','prototype','then','className','init','getValue','useState','params','live-share-icon','OPERATION','operations','attrs','getOwnPropertyDescriptor','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','defineProperty','onRendered','icon','_commandDisposable','asObservable','BuiltInUIPart','SetWorksheetActiveOperation','_startFollowing','You\x27re\x20presenting\x20the\x20document','IConfigService','map','110BffAmU','InsertSheetMutation','fill','_status$','substring','mutations','LiveShareStatus','_commandService','type','sessionStatus$','registerComponent','169620Ocwjod','offline','use','startFollowing','stopPresenting','314406wDDlYy','Injector','idSuffix','stringify','clsx','ICommandService','251388TZTgOS','call','unsubscribe','assign','_collabSessionService','Disposable','memberID','pluginName','none','LIVESHARE_REQUEST_HOST','Button','find','_init','0\x200\x2017\x2017','_reporters','jsxs','live-share.config','trim','indexOf','from','getUnitId','3VjwCWe','delete','throttleTime','SetScrollOperation','IUIPartsService','following','hasOwnProperty','FOLLOWING','dispose','You\x27are\x20offline.','useEffect','status$','DisposableCollection','You\x27re\x20not\x20following\x20the\x20presenter','LIVESHARE_OPERATION','1em','9WztNuK','mask','propertyIsEnumerable','div','dispose$','evenodd','has','string','text','LiveShareController','get','displayName','xlink:href','onStarting','LIVESHARE_TERMINATE','complete','OFFLINE','Subject','UniverCollaborationClientPlugin','touchDependencies','_liveShareService','getMemberID','url(#$1','parse','55402qAYHjN','UniverLiveSharePlugin','_startLiveShareCoordinator','_handleOperation','CollaborationSessionService','registerSharedOperation','path','presenter','parseProtocolChangeset'];_0x59a8=function(){return _0x43d0d3;};return _0x59a8();}const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports[_0x4beac9(0x1b4)]=class extends o[_0x4beac9(0x27c)]{constructor(_0x2cddc7,_0x3c71ac,_0x536a3b,_0x20415b,_0x2dfbb5){var _0x193b5b=_0x4beac9;super(),v(this,_0x193b5b(0x221),new D[(_0x193b5b(0x1cf))](_0x193b5b(0x1f3))),v(this,_0x193b5b(0x254),this[_0x193b5b(0x221)][_0x193b5b(0x217)]()),v(this,_0x193b5b(0x240),!0x1),v(this,_0x193b5b(0x216),null),v(this,_0x193b5b(0x1d4),null),(this[_0x193b5b(0x28c)]=_0x2cddc7,this[_0x193b5b(0x201)]=_0x3c71ac,this['_configService']=_0x536a3b,this['_liveShareService']=_0x20415b,this[_0x193b5b(0x225)]=_0x2dfbb5);}get[_0x4beac9(0x1d0)](){var _0x41761f=_0x4beac9;return this[_0x41761f(0x221)][_0x41761f(0x209)]();}[_0x4beac9(0x251)](){var _0x8d928=_0x4beac9,_0x3eb4b8;(_0x3eb4b8=this[_0x8d928(0x216)])==null||_0x3eb4b8[_0x8d928(0x251)](),this[_0x8d928(0x221)][_0x8d928(0x1f5)](_0x8d928(0x1f3)),this['_status$'][_0x8d928(0x268)]();}[_0x4beac9(0x208)](){var _0x34bb0c=_0x4beac9;this['_init']||(this[_0x34bb0c(0x240)]=!0x0,this[_0x34bb0c(0x201)][_0x34bb0c(0x227)][_0x34bb0c(0x1e2)](b['takeUntil'](this[_0x34bb0c(0x25d)]))[_0x34bb0c(0x1bb)](_0x38f4c3=>{var _0x92af2c=_0x34bb0c;switch(_0x38f4c3){case m['SessionStatus'][_0x92af2c(0x269)]:this[_0x92af2c(0x202)]();break;case m[_0x92af2c(0x283)][_0x92af2c(0x1fe)]:this[_0x92af2c(0x1fa)]();break;}}),this[_0x34bb0c(0x201)][_0x34bb0c(0x1ec)][_0x34bb0c(0x1e2)](b[_0x34bb0c(0x204)](this['dispose$']))[_0x34bb0c(0x1bb)](_0x5bf542=>{var _0x878116=_0x34bb0c;const {eventID:_0x476a4d}=_0x5bf542;switch(_0x476a4d){case _[_0x878116(0x1da)][_0x878116(0x1c7)]:this[_0x878116(0x287)](_0x5bf542);break;case _[_0x878116(0x1da)][_0x878116(0x257)]:this[_0x878116(0x274)](_0x5bf542);break;case _[_0x878116(0x1da)][_0x878116(0x267)]:this[_0x878116(0x1cb)]();break;case _['CollaborationEvent']['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x5bf542);break;}}));}['tryStartPresenting'](){var _0x2a5000=_0x4beac9;this['_collabSession'][_0x2a5000(0x1c3)]({'eventID':_[_0x2a5000(0x1da)][_0x2a5000(0x23d)],'data':{'unitID':this[_0x2a5000(0x28c)],'userID':this[_0x2a5000(0x201)][_0x2a5000(0x26e)]()}},this[_0x2a5000(0x28c)]);}[_0x4beac9(0x22d)](){var _0x12ff04=_0x4beac9;this[_0x12ff04(0x1d0)]===_0x12ff04(0x1fb)&&(this['_status$']['next'](_0x12ff04(0x1f3)),this[_0x12ff04(0x201)]['send']({'eventID':_['CollaborationEvent'][_0x12ff04(0x267)],'data':{'unitID':this[_0x12ff04(0x28c)]}},this[_0x12ff04(0x28c)]));}['startFollowing'](){var _0x297f6b=_0x4beac9;this[_0x297f6b(0x1d0)]===_0x297f6b(0x1b9)&&(this[_0x297f6b(0x221)][_0x297f6b(0x1f5)](_0x297f6b(0x24e)),this['_startFollowing']());}[_0x4beac9(0x1de)](){var _0x14eb8e=_0x4beac9;this['_status']===_0x14eb8e(0x24e)&&this[_0x14eb8e(0x1ea)]();}[_0x4beac9(0x287)](_0x186205){var _0x32808d=_0x4beac9;const {presenter:_0x351433}=_0x186205[_0x32808d(0x1c6)],_0x23fabc=this[_0x32808d(0x201)][_0x32808d(0x26e)]();this[_0x32808d(0x1d4)]=_0x351433,_0x351433===_0x23fabc?(this[_0x32808d(0x1ea)](),this[_0x32808d(0x200)]()):this['_status']!==_0x32808d(0x1b9)&&(this[_0x32808d(0x285)](),this['_startFollowing']());}[_0x4beac9(0x1d8)](){var _0xe06d43=_0x4beac9;const _0x369f00={'eventID':_[_0xe06d43(0x1da)][_0xe06d43(0x27d)]};this[_0xe06d43(0x201)][_0xe06d43(0x1c3)](_0x369f00,this[_0xe06d43(0x28c)]);}[_0x4beac9(0x1cb)](){var _0xef8780=_0x4beac9;this[_0xef8780(0x1d4)]=null,this[_0xef8780(0x1d0)]!==_0xef8780(0x1fb)&&this['_beIdle']();}['_handleNewChangeSets'](_0x30f2f7){var _0x422eaf=_0x4beac9;if(this[_0x422eaf(0x1d0)]===_0x422eaf(0x24e)&&this[_0x422eaf(0x1d4)]===_0x30f2f7[_0x422eaf(0x1c6)][_0x422eaf(0x23a)]){const _0x817587=_[_0x422eaf(0x279)](_0x30f2f7[_0x422eaf(0x1c6)])[_0x422eaf(0x223)]['reverse']()[_0x422eaf(0x23f)](_0x49b3a4=>_0x49b3a4['id']===C[_0x422eaf(0x21f)]['id']);if(_0x817587){const _0x489901=_0x817587[_0x422eaf(0x20b)][_0x422eaf(0x284)],_0x2b7105=_0x817587[_0x422eaf(0x20b)][_0x422eaf(0x27e)]['id'];setTimeout(()=>{var _0x2560e0=_0x422eaf;this[_0x2560e0(0x225)][_0x2560e0(0x1c9)](C[_0x2560e0(0x219)]['id'],{'unitId':_0x489901,'subUnitId':_0x2b7105},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x1945ea=_0x4beac9;this[_0x1945ea(0x221)][_0x1945ea(0x1f5)](_0x1945ea(0x1fb));const _0xe82fcd=new Map(),_0xbc9bc5=this['_commandDisposable']=new o[(_0x1945ea(0x255))]();_0xbc9bc5['add'](o['toDisposable'](()=>{var _0xfb0ea2=_0x1945ea;_0xe82fcd[_0xfb0ea2(0x203)](_0xa54fb6=>_0xa54fb6[_0xfb0ea2(0x268)]()),_0xe82fcd[_0xfb0ea2(0x28f)]();})),_0xbc9bc5['add'](this[_0x1945ea(0x225)]['onCommandExecuted'](_0x3505d1=>{var _0x147b0b=_0x1945ea,_0x25261f;if(_0x3505d1['type']!==o['CommandType'][_0x147b0b(0x20d)]||!this[_0x147b0b(0x26d)][_0x147b0b(0x289)](_0x3505d1['id']))return;const {id:_0x3b8572}=_0x3505d1;let _0x358d24;_0xe82fcd[_0x147b0b(0x25f)](_0x3b8572)?_0x358d24=_0xe82fcd[_0x147b0b(0x263)](_0x3b8572):(_0x358d24=new D[(_0x147b0b(0x26a))](),_0xe82fcd[_0x147b0b(0x1b8)](_0x3b8572,_0x358d24),_0x358d24[_0x147b0b(0x1e2)](b[_0x147b0b(0x24b)]((_0x25261f=this['_configService'][_0x147b0b(0x1eb)](Z))!=null?_0x25261f:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x147b0b(0x1bb)](_0x2057a1=>{var _0x25d06d=_0x147b0b;this[_0x25d06d(0x201)][_0x25d06d(0x1c3)]({'eventID':_[_0x25d06d(0x1da)][_0x25d06d(0x257)],'data':{'unitID':this['_unitID'],'operations':{[_0x2057a1['id']]:{'id':_0x2057a1['id'],'params':JSON[_0x25d06d(0x231)](_0x2057a1[_0x25d06d(0x20b)])}}}},this[_0x25d06d(0x28c)]);})),_0x358d24[_0x147b0b(0x1f5)](_0x3505d1);})),this[_0x1945ea(0x26d)][_0x1945ea(0x1c5)](this[_0x1945ea(0x28c)])[_0x1945ea(0x203)](_0x59a695=>this[_0x1945ea(0x201)][_0x1945ea(0x1c3)]({'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1945ea(0x28c)],'operations':{[_0x59a695['id']]:{'id':_0x59a695['id'],'params':JSON[_0x1945ea(0x231)](_0x59a695[_0x1945ea(0x20b)])}}}},this[_0x1945ea(0x28c)]));}[_0x4beac9(0x285)](){var _0x4cb248=_0x4beac9,_0x2c7b8b;this[_0x4cb248(0x221)][_0x4cb248(0x1f5)](_0x4cb248(0x1f3)),(_0x2c7b8b=this[_0x4cb248(0x216)])==null||_0x2c7b8b['dispose'](),this[_0x4cb248(0x216)]=null;}[_0x4beac9(0x21a)](){var _0x113cf1=_0x4beac9,_0x416e1a;(_0x416e1a=this[_0x113cf1(0x216)])==null||_0x416e1a[_0x113cf1(0x251)](),this[_0x113cf1(0x221)]['next'](_0x113cf1(0x24e));}[_0x4beac9(0x292)](){var _0x74e2f=_0x4beac9,_0xfe310c;this['_status$'][_0x74e2f(0x1f5)]('idle'),(_0xfe310c=this[_0x74e2f(0x216)])==null||_0xfe310c[_0x74e2f(0x251)](),this[_0x74e2f(0x216)]=null;}[_0x4beac9(0x1ea)](){var _0x6ecef=_0x4beac9,_0x3f5d6a;this['_status$'][_0x6ecef(0x1f5)](_0x6ecef(0x1b9)),(_0x3f5d6a=this['_commandDisposable'])==null||_0x3f5d6a[_0x6ecef(0x251)]();}[_0x4beac9(0x274)](_0x32ba6a){var _0x5efe86=_0x4beac9;if(['presenting',_0x5efe86(0x1b9),'offline'][_0x5efe86(0x1cd)](this[_0x5efe86(0x1d0)])||!_0x32ba6a[_0x5efe86(0x1c6)][_0x5efe86(0x278)]||_0x32ba6a['data'][_0x5efe86(0x278)]===this[_0x5efe86(0x201)]['getMemberID']())return;this[_0x5efe86(0x1d0)]==='idle'&&this[_0x5efe86(0x21a)]();const _0x3ae4ca=_0x32ba6a[_0x5efe86(0x1c6)][_0x5efe86(0x20e)];Object[_0x5efe86(0x1b6)](_0x3ae4ca)[_0x5efe86(0x203)](_0x596983=>{var _0x274d2f=_0x5efe86;this[_0x274d2f(0x225)][_0x274d2f(0x1c9)](_0x596983['id'],_0x596983[_0x274d2f(0x20b)]?JSON[_0x274d2f(0x270)](_0x596983[_0x274d2f(0x20b)]):null,{'fromCollab':!0x0});});}[_0x4beac9(0x202)](){var _0x57ea6a=_0x4beac9,_0x248446;this['_status$'][_0x57ea6a(0x1f5)](_0x57ea6a(0x22a)),(_0x248446=this[_0x57ea6a(0x216)])==null||_0x248446[_0x57ea6a(0x251)]();}[_0x4beac9(0x1fa)](){var _0x2ec37b=_0x4beac9;this[_0x2ec37b(0x221)][_0x2ec37b(0x1f5)](_0x2ec37b(0x1f3)),this[_0x2ec37b(0x1d8)]();}},exports[_0x4beac9(0x1b4)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0x4beac9(0x1ee)](O)),S(0x4,o[_0x4beac9(0x233)])],exports[_0x4beac9(0x1b4)]);function A(){var _0x109b16=_0x4beac9;const _0x464ea6=p[_0x109b16(0x1f4)](exports[_0x109b16(0x262)]),_0x24966e=p[_0x109b16(0x1f4)](o[_0x109b16(0x1e7)]),_0x199273=p['useObservable'](()=>_0x24966e['getCurrentTypeOfUnit$'](o[_0x109b16(0x1be)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x17b2ea,_0x4e3f79]=f['useState'](null),[_0xadc9c0,_0x322f26]=f[_0x109b16(0x20a)](h['IDLE']),_0x5a4930=f[_0x109b16(0x282)](null);return f[_0x109b16(0x253)](()=>(_0x199273&&_0x464ea6['getLiveShareCoordinator'](_0x199273['getUnitId']())[_0x109b16(0x206)](_0x40efee=>{var _0x334e1a=_0x109b16;_0x4e3f79(_0x40efee),_0x5a4930[_0x334e1a(0x1e3)]=_0x40efee['status$']['subscribe'](_0x3786d4=>{_0x322f26(_0x3786d4);});}),()=>{var _0x44f574=_0x109b16,_0x1cf8c5;(_0x1cf8c5=_0x5a4930[_0x44f574(0x1e3)])==null||_0x1cf8c5[_0x44f574(0x236)](),_0x5a4930[_0x44f574(0x1e3)]=null;}),[_0x199273,_0x464ea6]),_0x17b2ea?l[_0x109b16(0x1d9)](g['Dropdown'],{'align':_0x109b16(0x1ed),'disabled':_0xadc9c0===h[_0x109b16(0x269)],'className':_0x109b16(0x1c2),'overlay':l[_0x109b16(0x1d9)](K,{'status':_0xadc9c0,'coordinator':_0x17b2ea}),'children':l[_0x109b16(0x1d9)]('button',{'className':g[_0x109b16(0x232)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0xadc9c0===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xadc9c0!==h[_0x109b16(0x269)]}),'type':_0x109b16(0x1e8),'children':l[_0x109b16(0x1d9)](P,{'className':'univer-size-4'})})}):null;}function K(_0x2bf374){var _0x46edbb=_0x4beac9;const {status:_0x2b7856,coordinator:_0x173b48}=_0x2bf374;switch(_0x2b7856){case h[_0x46edbb(0x1e9)]:return l[_0x46edbb(0x1d9)](z,{'coordinator':_0x173b48});case h[_0x46edbb(0x250)]:return l['jsx'](Q,{'coordinator':_0x173b48});case h['NOT_FOLLOWING']:return l[_0x46edbb(0x1d9)](X,{'coordinator':_0x173b48});case h[_0x46edbb(0x269)]:return l[_0x46edbb(0x1d9)](te,{});case h[_0x46edbb(0x1c4)]:return l['jsx'](ee,{'coordinator':_0x173b48});default:return null;}}function z(_0x5be5c8){var _0x7b30c8=_0x4beac9;const {coordinator:_0x5cb462}=_0x5be5c8;return l[_0x7b30c8(0x243)](l['Fragment'],{'children':[l['jsx']('div',{'className':_0x7b30c8(0x1fd),'children':_0x7b30c8(0x1e5)}),l[_0x7b30c8(0x1d9)](g[_0x7b30c8(0x23e)],{'onClick':()=>_0x5cb462['tryStartPresenting'](),'children':'Start'})]});}function _0x348d(_0x22b89c,_0x39bdc7){var _0x59a8c0=_0x59a8();return _0x348d=function(_0x348dba,_0x366faf){_0x348dba=_0x348dba-0x1b3;var _0x545067=_0x59a8c0[_0x348dba];return _0x545067;},_0x348d(_0x22b89c,_0x39bdc7);}function Q(_0x44591d){var _0x2b33db=_0x4beac9;const {coordinator:_0x4c26f7}=_0x44591d;return l['jsxs'](l[_0x2b33db(0x1b5)],{'children':[l['jsx'](_0x2b33db(0x25c),{'className':_0x2b33db(0x1fd),'children':_0x2b33db(0x280)}),l[_0x2b33db(0x1d9)](g[_0x2b33db(0x23e)],{'onClick':()=>_0x4c26f7['stopFollowing'](),'children':_0x2b33db(0x1f8)})]});}function X(_0x530b7a){var _0x556292=_0x4beac9;const {coordinator:_0x1bb384}=_0x530b7a;return l[_0x556292(0x243)](l[_0x556292(0x1b5)],{'children':[l[_0x556292(0x1d9)]('div',{'className':_0x556292(0x1fd),'children':_0x556292(0x256)}),l[_0x556292(0x1d9)](g[_0x556292(0x23e)],{'variant':_0x556292(0x261),'onClick':()=>_0x1bb384[_0x556292(0x22c)](),'children':_0x556292(0x28e)})]});}function ee(_0x34cefc){var _0xb147ba=_0x4beac9;const {coordinator:_0x129c07}=_0x34cefc;return l[_0xb147ba(0x243)](l[_0xb147ba(0x1b5)],{'children':[l['jsx']('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xb147ba(0x21b)}),l[_0xb147ba(0x1d9)](g['Button'],{'variant':'default','onClick':()=>_0x129c07[_0xb147ba(0x22d)](),'children':_0xb147ba(0x281)})]});}function te(){var _0x15347f=_0x4beac9;return l['jsx'](l[_0x15347f(0x1b5)],{'children':_0x15347f(0x252)});}var ie=Object[_0x4beac9(0x210)],ne=(_0x3d8578,_0x235090,_0x460a86,_0x4af550)=>{for(var _0x73020c=_0x4af550>0x1?void 0x0:_0x4af550?ie(_0x235090,_0x460a86):_0x235090,_0x48c042=_0x3d8578['length']-0x1,_0x30e680;_0x48c042>=0x0;_0x48c042--)(_0x30e680=_0x3d8578[_0x48c042])&&(_0x73020c=_0x30e680(_0x73020c)||_0x73020c);return _0x73020c;},L=(_0x54f727,_0x1dd36f)=>(_0x3945f2,_0x5c1a88)=>_0x1dd36f(_0x3945f2,_0x5c1a88,_0x54f727);exports['DesktopLiveShareController']=class extends o[_0x4beac9(0x239)]{constructor(_0x694240,_0x303d63){var _0x398904=_0x4beac9;super(),this['_injector']=_0x694240,this['_uiPartsService']=_0x303d63,this[_0x398904(0x1d1)]();}['_mountLiveShare'](){var _0x5f2a2a=_0x4beac9;this[_0x5f2a2a(0x293)](this[_0x5f2a2a(0x1b3)][_0x5f2a2a(0x228)](p[_0x5f2a2a(0x218)]['HEADER_MENU'],()=>p[_0x5f2a2a(0x1f1)](A,this[_0x5f2a2a(0x27f)])));}},exports['DesktopLiveShareController']=ne([L(0x0,o[_0x4beac9(0x1ee)](o['Injector'])),L(0x1,p[_0x4beac9(0x24d)])],exports[_0x4beac9(0x28d)]);var re=Object[_0x4beac9(0x213)],se=Object[_0x4beac9(0x210)],oe=(_0x4dde4b,_0x58fac5,_0x336d7b)=>_0x58fac5 in _0x4dde4b?re(_0x4dde4b,_0x58fac5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x336d7b}):_0x4dde4b[_0x58fac5]=_0x336d7b,ae=(_0x3f19eb,_0x20bdba,_0x47495e,_0x17aa7f)=>{for(var _0x55ae11=_0x17aa7f>0x1?void 0x0:_0x17aa7f?se(_0x20bdba,_0x47495e):_0x20bdba,_0x361b37=_0x3f19eb['length']-0x1,_0x5a56d4;_0x361b37>=0x0;_0x361b37--)(_0x5a56d4=_0x3f19eb[_0x361b37])&&(_0x55ae11=_0x5a56d4(_0x55ae11)||_0x55ae11);return _0x55ae11;},N=(_0x404a80,_0x4a381b)=>(_0x3ed1ba,_0x240e34)=>_0x4a381b(_0x3ed1ba,_0x240e34,_0x404a80),T=(_0x576e96,_0x2fb4ee,_0x42938a)=>oe(_0x576e96,typeof _0x2fb4ee!=_0x4beac9(0x1f7)?_0x2fb4ee+'':_0x2fb4ee,_0x42938a);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x4beac9(0x272)]=class extends o['Plugin']{constructor(_0x9d127c=x,_0xdd152,_0x2544eb){var _0x1bb82b=_0x4beac9;super(),this['_config']=_0x9d127c,this['_injector']=_0xdd152,this['_configService']=_0x2544eb;const {..._0x32c448}=o[_0x1bb82b(0x1ce)]({},x,this[_0x1bb82b(0x1e0)]);this[_0x1bb82b(0x1d3)][_0x1bb82b(0x28b)]($,_0x32c448);}[_0x4beac9(0x266)](){var _0x1c96b7=_0x4beac9;o['registerDependencies'](this[_0x1c96b7(0x27f)],o['mergeOverrideWithDependencies']([[O],[exports[_0x1c96b7(0x262)]],[E],[exports[_0x1c96b7(0x28d)]]],this[_0x1c96b7(0x1e0)][_0x1c96b7(0x1db)])),o[_0x1c96b7(0x26c)](this[_0x1c96b7(0x27f)],[[E]]);}[_0x4beac9(0x214)](){var _0x29c387=_0x4beac9;o[_0x29c387(0x26c)](this[_0x29c387(0x27f)],[[exports['DesktopLiveShareController']]]);}},T(exports['UniverLiveSharePlugin'],_0x4beac9(0x226),o['UniverInstanceType']['UNIVER_UNKNOWN']),T(exports[_0x4beac9(0x272)],_0x4beac9(0x23b),le),exports[_0x4beac9(0x272)]=ae([o['DependentOn'](m[_0x4beac9(0x26b)]),N(0x1,o[_0x4beac9(0x1ee)](o['Injector'])),N(0x2,o[_0x4beac9(0x21c)])],exports[_0x4beac9(0x272)]),exports['LiveShare']=A,exports[_0x4beac9(0x1fc)]=O,exports[_0x4beac9(0x224)]=h;
1
+ 'use strict';var _0x339c3f=_0x211c;(function(_0x297557,_0x2578d4){var _0x5068ae=_0x211c,_0xe2217d=_0x297557();while(!![]){try{var _0x34ca4d=-parseInt(_0x5068ae(0x1d0))/0x1*(parseInt(_0x5068ae(0x1ae))/0x2)+parseInt(_0x5068ae(0x1b7))/0x3+parseInt(_0x5068ae(0x1ac))/0x4*(parseInt(_0x5068ae(0x164))/0x5)+parseInt(_0x5068ae(0x21a))/0x6+-parseInt(_0x5068ae(0x18d))/0x7*(-parseInt(_0x5068ae(0x210))/0x8)+-parseInt(_0x5068ae(0x1f0))/0x9+-parseInt(_0x5068ae(0x1d6))/0xa;if(_0x34ca4d===_0x2578d4)break;else _0xe2217d['push'](_0xe2217d['shift']());}catch(_0x22de40){_0xe2217d['push'](_0xe2217d['shift']());}}}(_0x4e7b,0x5996f));var U=Object[_0x339c3f(0x15d)],F=(_0x41eeb3,_0x216451,_0xad74a0)=>_0x216451 in _0x41eeb3?U(_0x41eeb3,_0x216451,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xad74a0}):_0x41eeb3[_0x216451]=_0xad74a0,v=(_0x3bb207,_0x2a9f5c,_0x515105)=>F(_0x3bb207,typeof _0x2a9f5c!='symbol'?_0x2a9f5c+'':_0x2a9f5c,_0x515105);Object['defineProperty'](exports,Symbol[_0x339c3f(0x16f)],{'value':'Module'});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$=_0x339c3f(0x1b8),x={};class O extends o[_0x339c3f(0x229)]{constructor(){var _0x3c0666=_0x339c3f;super(...arguments),v(this,_0x3c0666(0x177),new Set()),v(this,_0x3c0666(0x1d7),new Set());}[_0x339c3f(0x168)](_0x581cd6){var _0xf18cea=_0x339c3f;return this['_sharedOperations'][_0xf18cea(0x178)](_0x581cd6),o['toDisposable'](()=>this[_0xf18cea(0x177)][_0xf18cea(0x154)](_0x581cd6));}['registerInitialStateReporter'](_0x78b851){var _0x2cd467=_0x339c3f;return this[_0x2cd467(0x1d7)][_0x2cd467(0x178)](_0x78b851),o['toDisposable'](()=>this['_reporters'][_0x2cd467(0x154)](_0x78b851));}[_0x339c3f(0x1d4)](_0x1a43b4){var _0x4e8c73=_0x339c3f;return this[_0x4e8c73(0x177)][_0x4e8c73(0x221)](_0x1a43b4);}['getInitialStates'](_0x9e543d){var _0x380b86=_0x339c3f;return Array[_0x380b86(0x157)](this[_0x380b86(0x1d7)])[_0x380b86(0x174)](_0x5ad603=>_0x5ad603(_0x9e543d));}}var H=Object[_0x339c3f(0x172)],V=(_0x188b0d,_0xf9b720,_0x3e44f7,_0x3aa48d)=>{var _0x1f314f=_0x339c3f;for(var _0x558662=_0x3aa48d>0x1?void 0x0:_0x3aa48d?H(_0xf9b720,_0x3e44f7):_0xf9b720,_0x27632f=_0x188b0d[_0x1f314f(0x1ce)]-0x1,_0xc8c83a;_0x27632f>=0x0;_0x27632f--)(_0xc8c83a=_0x188b0d[_0x27632f])&&(_0x558662=_0xc8c83a(_0x558662)||_0x558662);return _0x558662;},k=(_0xd20d99,_0x241f70)=>(_0x425454,_0x257c34)=>_0x241f70(_0x425454,_0x257c34,_0xd20d99);let E=class extends o['Disposable']{constructor(_0x637303){var _0x426b0e=_0x339c3f;super(),this[_0x426b0e(0x1fd)]=_0x637303,this[_0x426b0e(0x18b)]();}['_init'](){var _0x1584d3=_0x339c3f;[w[_0x1584d3(0x167)]['id'],w['SetScrollOperation']['id'],C[_0x1584d3(0x16e)]['id']]['forEach'](_0x5ed1d5=>{var _0x3b7455=_0x1584d3;this[_0x3b7455(0x1d8)](this[_0x3b7455(0x1fd)]['registerSharedOperation'](_0x5ed1d5));});}};E=V([k(0x0,o['Inject'](O))],E);var u=function(){var _0x6d4a45=_0x339c3f;return u=Object[_0x6d4a45(0x202)]||function(_0x18a0c7){var _0x1201b9=_0x6d4a45;for(var _0x4e3cc9,_0x41eb37=0x1,_0x2899bc=arguments['length'];_0x41eb37<_0x2899bc;_0x41eb37++){_0x4e3cc9=arguments[_0x41eb37];for(var _0xe900a8 in _0x4e3cc9)Object[_0x1201b9(0x1a4)][_0x1201b9(0x188)][_0x1201b9(0x1c5)](_0x4e3cc9,_0xe900a8)&&(_0x18a0c7[_0xe900a8]=_0x4e3cc9[_0xe900a8]);}return _0x18a0c7;},u[_0x6d4a45(0x213)](this,arguments);},M=function(_0x14c627,_0x579aa9){var _0x21f731=_0x339c3f,_0x1377e5={};for(var _0x40d3bf in _0x14c627)Object['prototype'][_0x21f731(0x188)][_0x21f731(0x1c5)](_0x14c627,_0x40d3bf)&&_0x579aa9['indexOf'](_0x40d3bf)<0x0&&(_0x1377e5[_0x40d3bf]=_0x14c627[_0x40d3bf]);if(_0x14c627!=null&&typeof Object['getOwnPropertySymbols']==_0x21f731(0x22c)){for(var _0x5948a9=0x0,_0x40d3bf=Object['getOwnPropertySymbols'](_0x14c627);_0x5948a9<_0x40d3bf[_0x21f731(0x1ce)];_0x5948a9++)_0x579aa9[_0x21f731(0x1b5)](_0x40d3bf[_0x5948a9])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x21f731(0x1c5)](_0x14c627,_0x40d3bf[_0x5948a9])&&(_0x1377e5[_0x40d3bf[_0x5948a9]]=_0x14c627[_0x40d3bf[_0x5948a9]]);}return _0x1377e5;},j=f[_0x339c3f(0x1a0)](function(_0x43a67f,_0x24a86c){var _0x413460=_0x339c3f,_0x3d2506=_0x43a67f['icon'],_0x1d7a66=_0x43a67f['id'],_0x3450ad=_0x43a67f[_0x413460(0x1ff)],_0x2b564e=_0x43a67f[_0x413460(0x16b)],_0x63b83c=M(_0x43a67f,['icon','id','className',_0x413460(0x16b)]),_0x312c64=_0x413460(0x19f)[_0x413460(0x1eb)](_0x1d7a66,'\x20')[_0x413460(0x1eb)](_0x3450ad||'')[_0x413460(0x16d)](),_0x547381=f[_0x413460(0x195)]('_'[_0x413460(0x1eb)](G()));return y(_0x3d2506,''[_0x413460(0x1eb)](_0x1d7a66),{'defIds':_0x3d2506[_0x413460(0x155)],'idSuffix':_0x547381[_0x413460(0x18a)]},u({'ref':_0x24a86c,'className':_0x312c64},_0x63b83c),_0x2b564e);});function y(_0x22b378,_0x498891,_0x275996,_0x1028cb,_0x474aa9){var _0x490fd2=_0x339c3f;return f['createElement'](_0x22b378[_0x490fd2(0x192)],u(u({'key':_0x498891},q(_0x22b378,_0x275996,_0x474aa9)),_0x1028cb),(W(_0x22b378,_0x275996)[_0x490fd2(0x1c7)]||[])['map'](function(_0x31abb1,_0xd21b1b){var _0x31989a=_0x490fd2;return y(_0x31abb1,''[_0x31989a(0x1eb)](_0x498891,'-')['concat'](_0x22b378[_0x31989a(0x192)],'-')['concat'](_0xd21b1b),_0x275996,void 0x0,_0x474aa9);}));}function q(_0x352fb4,_0x6971b,_0x30e896){var _0x4bf23a=_0x339c3f,_0x4e0c52=u({},_0x352fb4[_0x4bf23a(0x17a)]);_0x30e896!=null&&_0x30e896[_0x4bf23a(0x187)]&&_0x4e0c52[_0x4bf23a(0x20a)]==='colorChannel1'&&(_0x4e0c52[_0x4bf23a(0x20a)]=_0x30e896[_0x4bf23a(0x187)]),_0x352fb4[_0x4bf23a(0x192)]===_0x4bf23a(0x1e7)&&_0x4e0c52['id']&&(_0x4e0c52['id']=_0x4e0c52['id']+_0x6971b['idSuffix']),Object['entries'](_0x4e0c52)[_0x4bf23a(0x160)](function(_0x4cdf84){var _0x322b08=_0x4bf23a,_0x4e3059=_0x4cdf84[0x0],_0x5053ad=_0x4cdf84[0x1];_0x4e3059===_0x322b08(0x1e7)&&typeof _0x5053ad==_0x322b08(0x22a)&&(_0x4e0c52[_0x4e3059]=_0x5053ad[_0x322b08(0x1b9)](/url\(#(.*)\)/,_0x322b08(0x22e)['concat'](_0x6971b[_0x322b08(0x1a3)],')')));});var _0x1c6f66=_0x6971b[_0x4bf23a(0x155)];return!_0x1c6f66||_0x1c6f66[_0x4bf23a(0x1ce)]===0x0||(_0x352fb4['tag']===_0x4bf23a(0x1b3)&&_0x4e0c52['xlink:href']&&(_0x4e0c52['xlink:href']=_0x4e0c52['xlink:href']+_0x6971b[_0x4bf23a(0x1a3)]),Object[_0x4bf23a(0x216)](_0x4e0c52)['forEach'](function(_0x17fb38){var _0x29a010=_0x4bf23a,_0x36060e=_0x17fb38[0x0],_0x5e9d62=_0x17fb38[0x1];typeof _0x5e9d62==_0x29a010(0x22a)&&(_0x4e0c52[_0x36060e]=_0x5e9d62[_0x29a010(0x1b9)](/url\(#(.*)\)/,_0x29a010(0x22e)[_0x29a010(0x1eb)](_0x6971b['idSuffix'],')')));})),_0x4e0c52;}function W(_0x58e5ad,_0x49d250){var _0x57b68f=_0x339c3f,_0x43b94f,_0x101c36=_0x49d250[_0x57b68f(0x155)];return!_0x101c36||_0x101c36['length']===0x0?_0x58e5ad:_0x58e5ad['tag']===_0x57b68f(0x1b1)&&(!((_0x43b94f=_0x58e5ad[_0x57b68f(0x1c7)])===null||_0x43b94f===void 0x0)&&_0x43b94f[_0x57b68f(0x1ce)])?u(u({},_0x58e5ad),{'children':_0x58e5ad[_0x57b68f(0x1c7)][_0x57b68f(0x174)](function(_0x38ba60){var _0x38bc0f=_0x57b68f;return typeof _0x38ba60[_0x38bc0f(0x17a)]['id']=='string'&&_0x101c36&&_0x101c36[_0x38bc0f(0x1a1)](_0x38ba60[_0x38bc0f(0x17a)]['id'])?u(u({},_0x38ba60),{'attrs':u(u({},_0x38ba60[_0x38bc0f(0x17a)]),{'id':_0x38ba60[_0x38bc0f(0x17a)]['id']+_0x49d250[_0x38bc0f(0x1a3)]})}):_0x38ba60;})}):_0x58e5ad;}function G(){var _0xe132cb=_0x339c3f;return Math[_0xe132cb(0x18e)]()['toString'](0x24)[_0xe132cb(0x20c)](0x2,0x8);}j['displayName']=_0x339c3f(0x226);var B={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x339c3f(0x1e1),'width':'1em','height':_0x339c3f(0x18f)},'children':[{'tag':_0x339c3f(0x163),'attrs':{'fill':_0x339c3f(0x199),'d':_0x339c3f(0x1db)}},{'tag':'path','attrs':{'fill':_0x339c3f(0x199),'d':_0x339c3f(0x1f8),'fillRule':_0x339c3f(0x20f),'clipRule':_0x339c3f(0x20f)}}]},P=f['forwardRef'](function(_0x5538aa,_0x59a227){var _0x52e926=_0x339c3f;return f[_0x52e926(0x1e4)](j,Object[_0x52e926(0x202)]({},_0x5538aa,{'id':_0x52e926(0x21b),'ref':_0x59a227,'icon':B}));});P[_0x339c3f(0x207)]='LiveShareIcon';var Y=Object[_0x339c3f(0x172)],R=(_0x178c24,_0x5ad262,_0x56dcab,_0xbedd69)=>{var _0x243aeb=_0x339c3f;for(var _0x371d74=_0xbedd69>0x1?void 0x0:_0xbedd69?Y(_0x5ad262,_0x56dcab):_0x5ad262,_0x2d314d=_0x178c24[_0x243aeb(0x1ce)]-0x1,_0x1f7960;_0x2d314d>=0x0;_0x2d314d--)(_0x1f7960=_0x178c24[_0x2d314d])&&(_0x371d74=_0x1f7960(_0x371d74)||_0x371d74);return _0x371d74;},S=(_0x5b6a92,_0x2baa19)=>(_0x4a2123,_0x254a77)=>_0x2baa19(_0x4a2123,_0x254a77,_0x5b6a92);exports[_0x339c3f(0x1bc)]=class extends o[_0x339c3f(0x19c)]{constructor(_0x26ee41,_0x598dad,_0x3acd66){var _0x1a79b4=_0x339c3f;super(),v(this,_0x1a79b4(0x223),new Map()),(this['_univerInstanceService']=_0x26ee41,this['_injector']=_0x598dad,this[_0x1a79b4(0x152)]=_0x3acd66,this[_0x1a79b4(0x18b)]());}async[_0x339c3f(0x1b2)](_0x4e2176){var _0x48284d=_0x339c3f;return this[_0x48284d(0x223)][_0x48284d(0x221)](_0x4e2176)||await this[_0x48284d(0x1cd)](_0x4e2176),this[_0x48284d(0x223)][_0x48284d(0x1dd)](_0x4e2176);}[_0x339c3f(0x18b)](){var _0x3a8d44=_0x339c3f;this[_0x3a8d44(0x225)][_0x3a8d44(0x1bf)](o[_0x3a8d44(0x179)][_0x3a8d44(0x1c3)])[_0x3a8d44(0x206)](b[_0x3a8d44(0x15b)](this[_0x3a8d44(0x20b)]))['subscribe'](async _0x4c949a=>{var _0x88f08e=_0x3a8d44;const _0x485fc8=_0x4c949a[_0x88f08e(0x190)]();this[_0x88f08e(0x223)][_0x88f08e(0x221)](_0x485fc8)||this[_0x88f08e(0x1cd)](_0x485fc8);}),this['_univerInstanceService'][_0x3a8d44(0x22b)](o[_0x3a8d44(0x179)][_0x3a8d44(0x1c3)])['pipe'](b[_0x3a8d44(0x15b)](this[_0x3a8d44(0x20b)]))['subscribe'](_0x30702b=>{var _0x4c024c=_0x3a8d44;const _0x11954e=_0x30702b['getUnitId'](),_0x44beea=this['_entities'][_0x4c024c(0x1dd)](_0x11954e);_0x44beea==null||_0x44beea[_0x4c024c(0x1cf)]();});}async[_0x339c3f(0x1cd)](_0x356991){var _0x5b8156=_0x339c3f;const _0x4ba038=await this[_0x5b8156(0x152)]['requireSession'](_0x356991),_0x120b65=this[_0x5b8156(0x191)]['createInstance'](exports[_0x5b8156(0x1e8)],_0x356991,_0x4ba038);return _0x120b65['init'](),this[_0x5b8156(0x223)][_0x5b8156(0x17b)](_0x356991,_0x120b65),_0x120b65;}},exports[_0x339c3f(0x1bc)]=R([S(0x0,o[_0x339c3f(0x193)]),S(0x1,o[_0x339c3f(0x198)](o[_0x339c3f(0x224)])),S(0x2,o[_0x339c3f(0x198)](m[_0x339c3f(0x1df)]))],exports[_0x339c3f(0x1bc)]);var h=(_0x12c71b=>(_0x12c71b['OFFLINE']='offline',_0x12c71b[_0x339c3f(0x184)]=_0x339c3f(0x1c2),_0x12c71b[_0x339c3f(0x1fe)]=_0x339c3f(0x185),_0x12c71b[_0x339c3f(0x1c1)]='not-following',_0x12c71b['PRESENTING']=_0x339c3f(0x1cc),_0x12c71b))(h||{});const Z=_0x339c3f(0x158),J=0xc8;exports['LiveShareCoordinator']=class extends o[_0x339c3f(0x19c)]{constructor(_0x1555d4,_0x22c869,_0x57d816,_0x4ee842,_0x3da0f4){var _0x177c27=_0x339c3f;super(),v(this,_0x177c27(0x219),new D['BehaviorSubject']('idle')),v(this,'status$',this[_0x177c27(0x219)][_0x177c27(0x1a9)]()),v(this,'_init',!0x1),v(this,_0x177c27(0x1f4),null),v(this,_0x177c27(0x214),null),(this[_0x177c27(0x212)]=_0x1555d4,this[_0x177c27(0x1de)]=_0x22c869,this['_configService']=_0x57d816,this['_liveShareService']=_0x4ee842,this['_commandService']=_0x3da0f4);}get[_0x339c3f(0x15c)](){var _0x257af1=_0x339c3f;return this[_0x257af1(0x219)]['getValue']();}[_0x339c3f(0x1cf)](){var _0x5f2d5f=_0x339c3f,_0x57f1a4;(_0x57f1a4=this['_commandDisposable'])==null||_0x57f1a4['dispose'](),this[_0x5f2d5f(0x219)][_0x5f2d5f(0x176)](_0x5f2d5f(0x1c2)),this[_0x5f2d5f(0x219)][_0x5f2d5f(0x197)]();}[_0x339c3f(0x181)](){var _0x27bc20=_0x339c3f;this[_0x27bc20(0x18b)]||(this[_0x27bc20(0x18b)]=!0x0,this[_0x27bc20(0x1de)][_0x27bc20(0x189)][_0x27bc20(0x206)](b['takeUntil'](this[_0x27bc20(0x20b)]))[_0x27bc20(0x165)](_0x8f6421=>{var _0x2b90c6=_0x27bc20;switch(_0x8f6421){case m[_0x2b90c6(0x1fb)][_0x2b90c6(0x194)]:this[_0x2b90c6(0x15e)]();break;case m[_0x2b90c6(0x1fb)][_0x2b90c6(0x209)]:this[_0x2b90c6(0x183)]();break;}}),this['_collabSession'][_0x27bc20(0x220)][_0x27bc20(0x206)](b[_0x27bc20(0x15b)](this['dispose$']))[_0x27bc20(0x165)](_0x3bf0f9=>{var _0x515d4f=_0x27bc20;const {eventID:_0x13be47}=_0x3bf0f9;switch(_0x13be47){case _['CollaborationEvent'][_0x515d4f(0x19e)]:this[_0x515d4f(0x1a7)](_0x3bf0f9);break;case _[_0x515d4f(0x1ea)][_0x515d4f(0x1dc)]:this[_0x515d4f(0x1b0)](_0x3bf0f9);break;case _[_0x515d4f(0x1ea)]['LIVESHARE_TERMINATE']:this[_0x515d4f(0x186)]();break;case _[_0x515d4f(0x1ea)][_0x515d4f(0x217)]:this[_0x515d4f(0x180)](_0x3bf0f9);break;}}));}[_0x339c3f(0x1b6)](){var _0x40f560=_0x339c3f;this['_collabSession'][_0x40f560(0x169)]({'eventID':_[_0x40f560(0x1ea)][_0x40f560(0x21d)],'data':{'unitID':this['_unitID'],'userID':this[_0x40f560(0x1de)][_0x40f560(0x1d9)]()}},this[_0x40f560(0x212)]);}['stopPresenting'](){var _0x5d5392=_0x339c3f;this[_0x5d5392(0x15c)]===_0x5d5392(0x1cc)&&(this[_0x5d5392(0x219)][_0x5d5392(0x176)](_0x5d5392(0x1c2)),this['_collabSession'][_0x5d5392(0x169)]({'eventID':_['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x5d5392(0x212)]}},this['_unitID']));}[_0x339c3f(0x205)](){var _0x5fcab6=_0x339c3f;this[_0x5fcab6(0x15c)]===_0x5fcab6(0x1cb)&&(this[_0x5fcab6(0x219)][_0x5fcab6(0x176)](_0x5fcab6(0x185)),this['_startFollowing']());}[_0x339c3f(0x1c6)](){var _0xc233f6=_0x339c3f;this['_status']===_0xc233f6(0x185)&&this[_0xc233f6(0x1ab)]();}[_0x339c3f(0x1a7)](_0x27126c){var _0x1ea659=_0x339c3f;const {presenter:_0x593fca}=_0x27126c['data'],_0x493694=this['_collabSession']['getMemberID']();this[_0x1ea659(0x214)]=_0x593fca,_0x593fca===_0x493694?(this[_0x1ea659(0x1ab)](),this[_0x1ea659(0x1f3)]()):this['_status']!==_0x1ea659(0x1cb)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x339c3f(0x21e)](){var _0x319903=_0x339c3f;const _0x4d86cf={'eventID':_[_0x319903(0x1ea)][_0x319903(0x1be)]};this['_collabSession'][_0x319903(0x169)](_0x4d86cf,this['_unitID']);}[_0x339c3f(0x186)](){var _0x5eed1a=_0x339c3f;this[_0x5eed1a(0x214)]=null,this['_status']!==_0x5eed1a(0x1cc)&&this[_0x5eed1a(0x1f7)]();}['_handleNewChangeSets'](_0x8fd01a){var _0x924308=_0x339c3f;if(this[_0x924308(0x15c)]===_0x924308(0x185)&&this[_0x924308(0x214)]===_0x8fd01a[_0x924308(0x1ca)]['memberID']){const _0xc4506=_['parseProtocolChangeset'](_0x8fd01a[_0x924308(0x1ca)])[_0x924308(0x1c0)][_0x924308(0x159)]()[_0x924308(0x215)](_0x4e697d=>_0x4e697d['id']===C['InsertSheetMutation']['id']);if(_0xc4506){const _0x3d93a7=_0xc4506[_0x924308(0x16c)][_0x924308(0x156)],_0x8fc694=_0xc4506['params']['sheet']['id'];setTimeout(()=>{var _0x441369=_0x924308;this[_0x441369(0x1c9)][_0x441369(0x1e9)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x3d93a7,'subUnitId':_0x8fc694},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x537036=_0x339c3f;this[_0x537036(0x219)][_0x537036(0x176)](_0x537036(0x1cc));const _0x59d3e3=new Map(),_0x3b05ff=this[_0x537036(0x1f4)]=new o[(_0x537036(0x1a6))]();_0x3b05ff[_0x537036(0x178)](o[_0x537036(0x1a5)](()=>{var _0x5a6009=_0x537036;_0x59d3e3[_0x5a6009(0x160)](_0x522a7b=>_0x522a7b[_0x5a6009(0x197)]()),_0x59d3e3[_0x5a6009(0x1f5)]();})),_0x3b05ff[_0x537036(0x178)](this['_commandService'][_0x537036(0x15f)](_0x2ab981=>{var _0x3b9bea=_0x537036,_0x421aa9;if(_0x2ab981['type']!==o['CommandType'][_0x3b9bea(0x21f)]||!this[_0x3b9bea(0x1fd)][_0x3b9bea(0x1d4)](_0x2ab981['id']))return;const {id:_0x2ad85e}=_0x2ab981;let _0x53af1a;_0x59d3e3[_0x3b9bea(0x221)](_0x2ad85e)?_0x53af1a=_0x59d3e3[_0x3b9bea(0x1dd)](_0x2ad85e):(_0x53af1a=new D[(_0x3b9bea(0x227))](),_0x59d3e3[_0x3b9bea(0x17b)](_0x2ad85e,_0x53af1a),_0x53af1a['pipe'](b[_0x3b9bea(0x1af)]((_0x421aa9=this[_0x3b9bea(0x1a2)][_0x3b9bea(0x16a)](Z))!=null?_0x421aa9:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x22d27=>{var _0x215c65=_0x3b9bea;this[_0x215c65(0x1de)][_0x215c65(0x169)]({'eventID':_['CollaborationEvent'][_0x215c65(0x1dc)],'data':{'unitID':this[_0x215c65(0x212)],'operations':{[_0x22d27['id']]:{'id':_0x22d27['id'],'params':JSON[_0x215c65(0x170)](_0x22d27[_0x215c65(0x16c)])}}}},this['_unitID']);})),_0x53af1a['next'](_0x2ab981);})),this[_0x537036(0x1fd)]['getInitialStates'](this[_0x537036(0x212)])[_0x537036(0x160)](_0x28de16=>this[_0x537036(0x1de)][_0x537036(0x169)]({'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x537036(0x212)],'operations':{[_0x28de16['id']]:{'id':_0x28de16['id'],'params':JSON[_0x537036(0x170)](_0x28de16[_0x537036(0x16c)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x1ef00f=_0x339c3f,_0x3d594b;this[_0x1ef00f(0x219)][_0x1ef00f(0x176)](_0x1ef00f(0x1c2)),(_0x3d594b=this[_0x1ef00f(0x1f4)])==null||_0x3d594b['dispose'](),this['_commandDisposable']=null;}[_0x339c3f(0x175)](){var _0x1200b3=_0x339c3f,_0x26190a;(_0x26190a=this[_0x1200b3(0x1f4)])==null||_0x26190a[_0x1200b3(0x1cf)](),this[_0x1200b3(0x219)][_0x1200b3(0x176)]('following');}['_beIdle'](){var _0x4b2597=_0x339c3f,_0x198c76;this['_status$'][_0x4b2597(0x176)](_0x4b2597(0x1c2)),(_0x198c76=this[_0x4b2597(0x1f4)])==null||_0x198c76[_0x4b2597(0x1cf)](),this[_0x4b2597(0x1f4)]=null;}[_0x339c3f(0x1ab)](){var _0x40e0af=_0x339c3f,_0x2135df;this[_0x40e0af(0x219)]['next']('not-following'),(_0x2135df=this[_0x40e0af(0x1f4)])==null||_0x2135df[_0x40e0af(0x1cf)]();}['_handleOperation'](_0x5ddb01){var _0x5a2bf6=_0x339c3f;if([_0x5a2bf6(0x1cc),_0x5a2bf6(0x1cb),'offline']['includes'](this['_status'])||!_0x5ddb01[_0x5a2bf6(0x1ca)]['presenter']||_0x5ddb01['data'][_0x5a2bf6(0x1ba)]===this[_0x5a2bf6(0x1de)][_0x5a2bf6(0x1d9)]())return;this['_status']===_0x5a2bf6(0x1c2)&&this[_0x5a2bf6(0x175)]();const _0x5ce559=_0x5ddb01[_0x5a2bf6(0x1ca)][_0x5a2bf6(0x1f1)];Object[_0x5a2bf6(0x20e)](_0x5ce559)[_0x5a2bf6(0x160)](_0x41b5d0=>{var _0x538231=_0x5a2bf6;this[_0x538231(0x1c9)][_0x538231(0x1e9)](_0x41b5d0['id'],_0x41b5d0['params']?JSON[_0x538231(0x1ad)](_0x41b5d0['params']):null,{'fromCollab':!0x0});});}[_0x339c3f(0x15e)](){var _0x2864a2=_0x339c3f,_0x101a88;this[_0x2864a2(0x219)][_0x2864a2(0x176)](_0x2864a2(0x1ec)),(_0x101a88=this[_0x2864a2(0x1f4)])==null||_0x101a88['dispose']();}[_0x339c3f(0x183)](){var _0xde31b=_0x339c3f;this[_0xde31b(0x219)]['next'](_0xde31b(0x1c2)),this[_0xde31b(0x21e)]();}},exports[_0x339c3f(0x1e8)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0x339c3f(0x198)](O)),S(0x4,o[_0x339c3f(0x1ef)])],exports[_0x339c3f(0x1e8)]);function A(){var _0x1834a2=_0x339c3f;const _0x4e2e9e=p[_0x1834a2(0x1fa)](exports[_0x1834a2(0x1bc)]),_0x4fb306=p[_0x1834a2(0x1fa)](o[_0x1834a2(0x193)]),_0x5085ba=p['useObservable'](()=>_0x4fb306[_0x1834a2(0x18c)](o[_0x1834a2(0x179)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x10e3ae,_0x1f302f]=f[_0x1834a2(0x1f2)](null),[_0x5f5303,_0x8fa068]=f[_0x1834a2(0x1f2)](h[_0x1834a2(0x184)]),_0x5335b0=f['useRef'](null);return f[_0x1834a2(0x173)](()=>(_0x5085ba&&_0x4e2e9e[_0x1834a2(0x1b2)](_0x5085ba[_0x1834a2(0x190)]())[_0x1834a2(0x182)](_0x2ef7a2=>{var _0x3ce9e5=_0x1834a2;_0x1f302f(_0x2ef7a2),_0x5335b0[_0x3ce9e5(0x18a)]=_0x2ef7a2[_0x3ce9e5(0x1da)][_0x3ce9e5(0x165)](_0x876968=>{_0x8fa068(_0x876968);});}),()=>{var _0x392ee4=_0x1834a2,_0x49934c;(_0x49934c=_0x5335b0[_0x392ee4(0x18a)])==null||_0x49934c[_0x392ee4(0x19a)](),_0x5335b0[_0x392ee4(0x18a)]=null;}),[_0x5085ba,_0x4e2e9e]),_0x10e3ae?l['jsx'](g[_0x1834a2(0x19b)],{'align':_0x1834a2(0x200),'disabled':_0x5f5303===h['OFFLINE'],'className':_0x1834a2(0x196),'overlay':l['jsx'](K,{'status':_0x5f5303,'coordinator':_0x10e3ae}),'children':l[_0x1834a2(0x218)](_0x1834a2(0x171),{'className':g[_0x1834a2(0x162)](_0x1834a2(0x1b4),{'univer-cursor-not-allowed':_0x5f5303===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5f5303!==h[_0x1834a2(0x194)]}),'type':_0x1834a2(0x171),'children':l[_0x1834a2(0x218)](P,{'className':'univer-size-4'})})}):null;}function K(_0x24992b){var _0x99943e=_0x339c3f;const {status:_0x188d89,coordinator:_0x297131}=_0x24992b;switch(_0x188d89){case h[_0x99943e(0x184)]:return l[_0x99943e(0x218)](z,{'coordinator':_0x297131});case h[_0x99943e(0x1fe)]:return l[_0x99943e(0x218)](Q,{'coordinator':_0x297131});case h[_0x99943e(0x1c1)]:return l[_0x99943e(0x218)](X,{'coordinator':_0x297131});case h['OFFLINE']:return l[_0x99943e(0x218)](te,{});case h[_0x99943e(0x203)]:return l[_0x99943e(0x218)](ee,{'coordinator':_0x297131});default:return null;}}function z(_0xb35e77){var _0x33de3b=_0x339c3f;const {coordinator:_0x4cf29b}=_0xb35e77;return l[_0x33de3b(0x201)](l[_0x33de3b(0x228)],{'children':[l[_0x33de3b(0x218)](_0x33de3b(0x17f),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x33de3b(0x1f6)}),l[_0x33de3b(0x218)](g[_0x33de3b(0x1ed)],{'onClick':()=>_0x4cf29b[_0x33de3b(0x1b6)](),'children':'Start'})]});}function Q(_0x163f39){var _0x5463a2=_0x339c3f;const {coordinator:_0x4ab3c5}=_0x163f39;return l[_0x5463a2(0x201)](l[_0x5463a2(0x228)],{'children':[l[_0x5463a2(0x218)](_0x5463a2(0x17f),{'className':_0x5463a2(0x1d1),'children':'You\x27re\x20following\x20the\x20presenter'}),l['jsx'](g['Button'],{'onClick':()=>_0x4ab3c5[_0x5463a2(0x1c6)](),'children':_0x5463a2(0x15a)})]});}function X(_0x58d572){var _0x119201=_0x339c3f;const {coordinator:_0xa21a60}=_0x58d572;return l[_0x119201(0x201)](l['Fragment'],{'children':[l[_0x119201(0x218)](_0x119201(0x17f),{'className':_0x119201(0x1d1),'children':_0x119201(0x17e)}),l[_0x119201(0x218)](g['Button'],{'variant':_0x119201(0x166),'onClick':()=>_0xa21a60[_0x119201(0x205)](),'children':_0x119201(0x22d)})]});}function _0x211c(_0x81dbd,_0x2f064c){var _0x4e7bb7=_0x4e7b();return _0x211c=function(_0x211c43,_0x20497f){_0x211c43=_0x211c43-0x152;var _0x3e2a82=_0x4e7bb7[_0x211c43];return _0x3e2a82;},_0x211c(_0x81dbd,_0x2f064c);}function ee(_0x1d9cd0){var _0x727704=_0x339c3f;const {coordinator:_0x1df20c}=_0x1d9cd0;return l[_0x727704(0x201)](l[_0x727704(0x228)],{'children':[l[_0x727704(0x218)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x727704(0x1e3)}),l[_0x727704(0x218)](g[_0x727704(0x1ed)],{'variant':'default','onClick':()=>_0x1df20c[_0x727704(0x1d3)](),'children':_0x727704(0x1f9)})]});}function te(){var _0xa2017a=_0x339c3f;return l[_0xa2017a(0x218)](l['Fragment'],{'children':_0xa2017a(0x208)});}var ie=Object[_0x339c3f(0x172)],ne=(_0x20bdc1,_0x362782,_0x51393f,_0x4f207c)=>{var _0x500632=_0x339c3f;for(var _0x1c7842=_0x4f207c>0x1?void 0x0:_0x4f207c?ie(_0x362782,_0x51393f):_0x362782,_0x503dcb=_0x20bdc1[_0x500632(0x1ce)]-0x1,_0x5b72f2;_0x503dcb>=0x0;_0x503dcb--)(_0x5b72f2=_0x20bdc1[_0x503dcb])&&(_0x1c7842=_0x5b72f2(_0x1c7842)||_0x1c7842);return _0x1c7842;},L=(_0x252717,_0x2e66da)=>(_0x3267bd,_0x59fb24)=>_0x2e66da(_0x3267bd,_0x59fb24,_0x252717);exports['DesktopLiveShareController']=class extends o[_0x339c3f(0x229)]{constructor(_0x4e4670,_0x2a7529){var _0x4c2466=_0x339c3f;super(),this[_0x4c2466(0x191)]=_0x4e4670,this[_0x4c2466(0x1e0)]=_0x2a7529,this[_0x4c2466(0x1fc)]();}[_0x339c3f(0x1fc)](){var _0xddafec=_0x339c3f;this[_0xddafec(0x1d8)](this['_uiPartsService'][_0xddafec(0x1d2)](p[_0xddafec(0x1ee)][_0xddafec(0x211)],()=>p[_0xddafec(0x1bb)](A,this[_0xddafec(0x191)])));}},exports[_0x339c3f(0x161)]=ne([L(0x0,o['Inject'](o[_0x339c3f(0x224)])),L(0x1,p['IUIPartsService'])],exports[_0x339c3f(0x161)]);var re=Object[_0x339c3f(0x15d)],se=Object[_0x339c3f(0x172)],oe=(_0x1338f1,_0x33792c,_0x3c40b7)=>_0x33792c in _0x1338f1?re(_0x1338f1,_0x33792c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c40b7}):_0x1338f1[_0x33792c]=_0x3c40b7,ae=(_0x522183,_0x3e93f6,_0x573d20,_0x166ad9)=>{var _0x389b62=_0x339c3f;for(var _0x2b1e04=_0x166ad9>0x1?void 0x0:_0x166ad9?se(_0x3e93f6,_0x573d20):_0x3e93f6,_0x43eabc=_0x522183[_0x389b62(0x1ce)]-0x1,_0x1dcf23;_0x43eabc>=0x0;_0x43eabc--)(_0x1dcf23=_0x522183[_0x43eabc])&&(_0x2b1e04=_0x1dcf23(_0x2b1e04)||_0x2b1e04);return _0x2b1e04;},N=(_0x5273db,_0x30d916)=>(_0x2e00ea,_0x334870)=>_0x30d916(_0x2e00ea,_0x334870,_0x5273db),T=(_0x4fb334,_0x3e21d8,_0x29258c)=>oe(_0x4fb334,typeof _0x3e21d8!='symbol'?_0x3e21d8+'':_0x3e21d8,_0x29258c);function _0x4e7b(){var _0x3603a7=['LIVESHARE_NEW_HOST','univerjs-icon\x20univerjs-icon-','forwardRef','includes','_configService','idSuffix','prototype','toDisposable','DisposableCollection','_handleNewHost','mergeOverrideWithDependencies','asObservable','override','_stopFollowing','134132sxfSHg','parse','2NdhMMA','throttleTime','_handleOperation','defs','getLiveShareCoordinator','use','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','indexOf','tryStartPresenting','1695714omgXPZ','live-share.config','replace','presenter','connectInjector','LiveShareController','LiveShareStatus','LIVESHARE_FETCH_OPERATIONS','getTypeOfUnitAdded$','mutations','NOT_FOLLOWING','idle','UNIVER_SHEET','UNIVER_LIVE_SHARE_PLUGIN','call','stopFollowing','children','touchDependencies','_commandService','data','not-following','presenting','_startLiveShareCoordinator','length','dispose','287UBdvbW','univer-mb-3\x20univer-w-full\x20univer-text-sm','registerComponent','stopPresenting','shouldShareOperation','Plugin','9925990FZTgvm','_reporters','disposeWithMe','getMemberID','status$','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','LIVESHARE_OPERATION','get','_collabSession','CollaborationSessionService','_uiPartsService','0\x200\x2017\x2017','UniverCollaborationClientPlugin','You\x27re\x20presenting\x20the\x20document','createElement','LiveShare','registerDependencies','mask','LiveShareCoordinator','executeCommand','CollaborationEvent','concat','offline','Button','BuiltInUIPart','ICommandService','3647322qCEgEb','operations','useState','_startPresenting','_commandDisposable','clear','Present\x20this\x20document','_beIdle','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','Stop\x20presenting','useDependency','SessionStatus','_mountLiveShare','_liveShareService','FOLLOWING','className','end','jsxs','assign','PRESENTING','onRendered','startFollowing','pipe','displayName','You\x27are\x20offline.','ONLINE','fill','dispose$','substring','UniverLiveSharePlugin','values','evenodd','21968VMZvYO','HEADER_MENU','_unitID','apply','_presenter','find','entries','NEW_CHANGESETS','jsx','_status$','2166708PJjkZJ','live-share-icon','_config','LIVESHARE_REQUEST_HOST','_fetchOperations','OPERATION','event$','has','merge','_entities','Injector','_univerInstanceService','UniverIcon','Subject','Fragment','Disposable','string','getTypeOfUnitDisposed$','function','Start\x20following','url(#$1','_collabSessionService','pluginName','delete','defIds','unitId','from','SAME_OPERATION_SHARE_INTERVAL','reverse','Stop\x20following','takeUntil','_status','defineProperty','_handleOffline','onCommandExecuted','forEach','DesktopLiveShareController','clsx','path','105pABEhY','subscribe','text','SetZoomRatioOperation','registerSharedOperation','send','getConfig','extend','params','trim','SetWorksheetActiveOperation','toStringTag','stringify','button','getOwnPropertyDescriptor','useEffect','map','_startFollowing','next','_sharedOperations','add','UniverInstanceType','attrs','set','IConfigService','UNIVER_UNKNOWN','You\x27re\x20not\x20following\x20the\x20presenter','div','_handleNewChangeSets','init','then','_handleOnline','IDLE','following','_handleTerminate','colorChannel1','hasOwnProperty','sessionStatus$','current','_init','getCurrentTypeOfUnit$','343wgjqPJ','random','1em','getUnitId','_injector','tag','IUniverInstanceService','OFFLINE','useRef','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','complete','Inject','currentColor','unsubscribe','Dropdown','RxDisposable','onStarting'];_0x4e7b=function(){return _0x3603a7;};return _0x4e7b();}const le=_0x339c3f(0x1c4);exports[_0x339c3f(0x20d)]=class extends o[_0x339c3f(0x1d5)]{constructor(_0x4478c2=x,_0x32f26d,_0x2c524a){var _0x3f02e1=_0x339c3f;super(),this[_0x3f02e1(0x21c)]=_0x4478c2,this[_0x3f02e1(0x191)]=_0x32f26d,this[_0x3f02e1(0x1a2)]=_0x2c524a;const {..._0x10ffe2}=o[_0x3f02e1(0x222)]({},x,this[_0x3f02e1(0x21c)]);this['_configService']['setConfig']($,_0x10ffe2);}[_0x339c3f(0x19d)](){var _0x5ee2ec=_0x339c3f;o[_0x5ee2ec(0x1e6)](this[_0x5ee2ec(0x191)],o[_0x5ee2ec(0x1a8)]([[O],[exports[_0x5ee2ec(0x1bc)]],[E],[exports[_0x5ee2ec(0x161)]]],this[_0x5ee2ec(0x21c)][_0x5ee2ec(0x1aa)])),o['touchDependencies'](this['_injector'],[[E]]);}[_0x339c3f(0x204)](){var _0x3823ec=_0x339c3f;o[_0x3823ec(0x1c8)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x339c3f(0x20d)],'type',o['UniverInstanceType'][_0x339c3f(0x17d)]),T(exports['UniverLiveSharePlugin'],_0x339c3f(0x153),le),exports['UniverLiveSharePlugin']=ae([o['DependentOn'](m[_0x339c3f(0x1e2)]),N(0x1,o[_0x339c3f(0x198)](o[_0x339c3f(0x224)])),N(0x2,o[_0x339c3f(0x17c)])],exports[_0x339c3f(0x20d)]),exports[_0x339c3f(0x1e5)]=A,exports['LiveShareService']=O,exports[_0x339c3f(0x1bd)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x21acba=_0x24fa;(function(_0x578e56,_0x2e56d8){var _0x342182=_0x24fa,_0x74f752=_0x578e56();while(!![]){try{var _0x39ca79=-parseInt(_0x342182(0x130))/0x1*(-parseInt(_0x342182(0xf5))/0x2)+parseInt(_0x342182(0xbe))/0x3+parseInt(_0x342182(0x126))/0x4*(parseInt(_0x342182(0x156))/0x5)+-parseInt(_0x342182(0xcc))/0x6*(parseInt(_0x342182(0xf9))/0x7)+parseInt(_0x342182(0xde))/0x8*(parseInt(_0x342182(0x13b))/0x9)+-parseInt(_0x342182(0x131))/0xa+-parseInt(_0x342182(0x12e))/0xb;if(_0x39ca79===_0x2e56d8)break;else _0x74f752['push'](_0x74f752['shift']());}catch(_0x5aab02){_0x74f752['push'](_0x74f752['shift']());}}}(_0x56c5,0x6aaa7));var q=Object['defineProperty'],z=(_0x3eca6b,_0x2640c9,_0x3696f1)=>_0x2640c9 in _0x3eca6b?q(_0x3eca6b,_0x2640c9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3696f1}):_0x3eca6b[_0x2640c9]=_0x3696f1,d=(_0x1e8983,_0x347574,_0x41f41f)=>z(_0x1e8983,typeof _0x347574!=_0x21acba(0xbd)?_0x347574+'':_0x347574,_0x41f41f);import{CollaborationSessionService as _0x418e8c,SessionStatus as _0x4c8836,UniverCollaborationClientPlugin as _0x2380c4}from'@univerjs-pro/collaboration-client';import{Disposable as _0x49ef90,toDisposable as _0x52738f,Inject as _0x45e3a0,IUniverInstanceService as _0x3bd673,Injector as _0x3944a4,IConfigService as _0x56c18f,ICommandService as _0x40b986,RxDisposable as _0x42375c,UniverInstanceType as _0x2636cb,DisposableCollection as _0x240d80,CommandType as _0x2b26cd,DependentOn as _0x49227d,Plugin as _0xec22e2,merge as _0x47242e,registerDependencies as _0x26645d,mergeOverrideWithDependencies as _0x508f67,touchDependencies as _0x34849a}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x394a08,InsertSheetMutation as _0x587516}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x406fa2,SetScrollOperation as _0x3b0e8e}from'@univerjs/sheets-ui';import{useDependency as _0x192779,useObservable as _0x17612b,IUIPartsService as _0x257d82,BuiltInUIPart as _0x5a30be,connectInjector as _0x3350ba}from'@univerjs/ui';import{jsx as _0xc206b,jsxs as _0x10d624,Fragment as _0x58a9cf}from'react/jsx-runtime';import{Dropdown as _0x5b29ed,clsx as _0x1dfccb,Button as _0xff20a5}from'@univerjs/design';import{forwardRef as _0x58e026,useRef as _0x15fff5,createElement as _0x1ce21c,useState as _0x153009,useEffect as _0x1fea22}from'react';import{CollaborationEvent as _0x2a9a59,parseProtocolChangeset as _0x555882}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x5c8398,Subject as _0x4b30d1}from'rxjs';import{takeUntil as _0x370249,throttleTime as _0xcd833b}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x49ef90{constructor(){var _0x418b81=_0x21acba;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x418b81(0x15e),new Set());}['registerSharedOperation'](_0x56eb73){var _0x2e68e0=_0x21acba;return this[_0x2e68e0(0xf6)][_0x2e68e0(0x121)](_0x56eb73),_0x52738f(()=>this[_0x2e68e0(0xf6)]['delete'](_0x56eb73));}[_0x21acba(0xcb)](_0x23d462){var _0x1db8c8=_0x21acba;return this['_reporters']['add'](_0x23d462),_0x52738f(()=>this[_0x1db8c8(0x15e)][_0x1db8c8(0xd4)](_0x23d462));}['shouldShareOperation'](_0x367cbb){var _0x552963=_0x21acba;return this[_0x552963(0xf6)][_0x552963(0x101)](_0x367cbb);}['getInitialStates'](_0x5d1a27){var _0x307f14=_0x21acba;return Array[_0x307f14(0x106)](this[_0x307f14(0x15e)])[_0x307f14(0x11b)](_0xe104bc=>_0xe104bc(_0x5d1a27));}}var Ee=Object[_0x21acba(0x111)],we=(_0x4eeed7,_0x49d6d4,_0x21d7f5,_0x2d8035)=>{var _0x142041=_0x21acba;for(var _0x917484=_0x2d8035>0x1?void 0x0:_0x2d8035?Ee(_0x49d6d4,_0x21d7f5):_0x49d6d4,_0x30a42a=_0x4eeed7[_0x142041(0x13e)]-0x1,_0x3c9ddc;_0x30a42a>=0x0;_0x30a42a--)(_0x3c9ddc=_0x4eeed7[_0x30a42a])&&(_0x917484=_0x3c9ddc(_0x917484)||_0x917484);return _0x917484;},Ne=(_0x380c88,_0x1e8e0c)=>(_0x113b80,_0x457b83)=>_0x1e8e0c(_0x113b80,_0x457b83,_0x380c88);let m=class extends _0x49ef90{constructor(_0x3eddf2){var _0xfdd21d=_0x21acba;super(),this[_0xfdd21d(0x128)]=_0x3eddf2,this[_0xfdd21d(0x14b)]();}[_0x21acba(0x14b)](){var _0x46ac6e=_0x21acba;[_0x406fa2['id'],_0x3b0e8e['id'],_0x394a08['id']][_0x46ac6e(0xec)](_0x52dc6c=>{var _0x5d9a7a=_0x46ac6e;this[_0x5d9a7a(0xd3)](this[_0x5d9a7a(0x128)][_0x5d9a7a(0x12d)](_0x52dc6c));});}};m=we([Ne(0x0,_0x45e3a0(L))],m);var c=function(){var _0xc60124=_0x21acba;return c=Object[_0xc60124(0x12f)]||function(_0x4df1fb){var _0x352269=_0xc60124;for(var _0x437f98,_0x3129c4=0x1,_0x1133f8=arguments['length'];_0x3129c4<_0x1133f8;_0x3129c4++){_0x437f98=arguments[_0x3129c4];for(var _0xb08396 in _0x437f98)Object[_0x352269(0xb1)][_0x352269(0x138)][_0x352269(0xe0)](_0x437f98,_0xb08396)&&(_0x4df1fb[_0xb08396]=_0x437f98[_0xb08396]);}return _0x4df1fb;},c[_0xc60124(0xc5)](this,arguments);},Ce=function(_0x24bffb,_0x4890b5){var _0x30244d=_0x21acba,_0x31aa66={};for(var _0xb3dd66 in _0x24bffb)Object['prototype'][_0x30244d(0x138)][_0x30244d(0xe0)](_0x24bffb,_0xb3dd66)&&_0x4890b5[_0x30244d(0x109)](_0xb3dd66)<0x0&&(_0x31aa66[_0xb3dd66]=_0x24bffb[_0xb3dd66]);if(_0x24bffb!=null&&typeof Object[_0x30244d(0xb5)]==_0x30244d(0x123)){for(var _0x354035=0x0,_0xb3dd66=Object[_0x30244d(0xb5)](_0x24bffb);_0x354035<_0xb3dd66['length'];_0x354035++)_0x4890b5['indexOf'](_0xb3dd66[_0x354035])<0x0&&Object[_0x30244d(0xb1)][_0x30244d(0xe4)][_0x30244d(0xe0)](_0x24bffb,_0xb3dd66[_0x354035])&&(_0x31aa66[_0xb3dd66[_0x354035]]=_0x24bffb[_0xb3dd66[_0x354035]]);}return _0x31aa66;},W=_0x58e026(function(_0x4e811,_0xaf7f92){var _0x2913de=_0x21acba,_0x5d36aa=_0x4e811[_0x2913de(0x134)],_0x5c9086=_0x4e811['id'],_0x256015=_0x4e811[_0x2913de(0x124)],_0x189783=_0x4e811[_0x2913de(0x117)],_0x1b5e7e=Ce(_0x4e811,[_0x2913de(0x134),'id',_0x2913de(0x124),'extend']),_0x55a6b5=_0x2913de(0xe8)[_0x2913de(0x15b)](_0x5c9086,'\x20')[_0x2913de(0x15b)](_0x256015||'')[_0x2913de(0x10e)](),_0xf89af3=_0x15fff5('_'[_0x2913de(0x15b)](Le()));return Y(_0x5d36aa,''[_0x2913de(0x15b)](_0x5c9086),{'defIds':_0x5d36aa['defIds'],'idSuffix':_0xf89af3[_0x2913de(0x120)]},c({'ref':_0xaf7f92,'className':_0x55a6b5},_0x1b5e7e),_0x189783);});function Y(_0x5725b1,_0x4c07f8,_0x587561,_0x11f703,_0x46f580){var _0x5466b7=_0x21acba;return _0x1ce21c(_0x5725b1[_0x5466b7(0x104)],c(c({'key':_0x4c07f8},De(_0x5725b1,_0x587561,_0x46f580)),_0x11f703),(xe(_0x5725b1,_0x587561)['children']||[])[_0x5466b7(0x11b)](function(_0x236cea,_0x2296d4){var _0x4de01a=_0x5466b7;return Y(_0x236cea,''['concat'](_0x4c07f8,'-')[_0x4de01a(0x15b)](_0x5725b1[_0x4de01a(0x104)],'-')[_0x4de01a(0x15b)](_0x2296d4),_0x587561,void 0x0,_0x46f580);}));}function De(_0x20645a,_0xaef010,_0x74fda){var _0x326e1b=_0x21acba,_0xca9673=c({},_0x20645a[_0x326e1b(0xed)]);_0x74fda!=null&&_0x74fda['colorChannel1']&&_0xca9673['fill']===_0x326e1b(0xb2)&&(_0xca9673[_0x326e1b(0xca)]=_0x74fda[_0x326e1b(0xb2)]),_0x20645a[_0x326e1b(0x104)]===_0x326e1b(0xd5)&&_0xca9673['id']&&(_0xca9673['id']=_0xca9673['id']+_0xaef010[_0x326e1b(0xe5)]),Object[_0x326e1b(0xee)](_0xca9673)[_0x326e1b(0xec)](function(_0x8b58be){var _0xde5e3b=_0x326e1b,_0xc553fc=_0x8b58be[0x0],_0x2b8dd3=_0x8b58be[0x1];_0xc553fc==='mask'&&typeof _0x2b8dd3=='string'&&(_0xca9673[_0xc553fc]=_0x2b8dd3['replace'](/url\(#(.*)\)/,'url(#$1'[_0xde5e3b(0x15b)](_0xaef010[_0xde5e3b(0xe5)],')')));});var _0x8aa200=_0xaef010['defIds'];return!_0x8aa200||_0x8aa200[_0x326e1b(0x13e)]===0x0||(_0x20645a[_0x326e1b(0x104)]===_0x326e1b(0xf4)&&_0xca9673[_0x326e1b(0xd7)]&&(_0xca9673['xlink:href']=_0xca9673['xlink:href']+_0xaef010[_0x326e1b(0xe5)]),Object[_0x326e1b(0xee)](_0xca9673)[_0x326e1b(0xec)](function(_0x3ee18f){var _0x2fe06b=_0x326e1b,_0x5d7b96=_0x3ee18f[0x0],_0x57cc7f=_0x3ee18f[0x1];typeof _0x57cc7f==_0x2fe06b(0xc0)&&(_0xca9673[_0x5d7b96]=_0x57cc7f[_0x2fe06b(0xc2)](/url\(#(.*)\)/,'url(#$1'['concat'](_0xaef010[_0x2fe06b(0xe5)],')')));})),_0xca9673;}function xe(_0x5ce56c,_0x2a5030){var _0x202836=_0x21acba,_0x206975,_0x36f756=_0x2a5030[_0x202836(0xe2)];return!_0x36f756||_0x36f756[_0x202836(0x13e)]===0x0?_0x5ce56c:_0x5ce56c['tag']===_0x202836(0x122)&&(!((_0x206975=_0x5ce56c[_0x202836(0xd6)])===null||_0x206975===void 0x0)&&_0x206975[_0x202836(0x13e)])?c(c({},_0x5ce56c),{'children':_0x5ce56c[_0x202836(0xd6)][_0x202836(0x11b)](function(_0x42470e){var _0x513362=_0x202836;return typeof _0x42470e[_0x513362(0xed)]['id']==_0x513362(0xc0)&&_0x36f756&&_0x36f756['includes'](_0x42470e[_0x513362(0xed)]['id'])?c(c({},_0x42470e),{'attrs':c(c({},_0x42470e['attrs']),{'id':_0x42470e[_0x513362(0xed)]['id']+_0x2a5030[_0x513362(0xe5)]})}):_0x42470e;})}):_0x5ce56c;}function Le(){var _0x365759=_0x21acba;return Math[_0x365759(0xd9)]()[_0x365759(0x12c)](0x24)[_0x365759(0xae)](0x2,0x8);}W['displayName']=_0x21acba(0xdb);var ye={'tag':_0x21acba(0xcf),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x21acba(0x15a),'viewBox':_0x21acba(0x135),'width':'1em','height':_0x21acba(0xfd)},'children':[{'tag':_0x21acba(0xb6),'attrs':{'fill':_0x21acba(0x140),'d':_0x21acba(0x144)}},{'tag':_0x21acba(0xb6),'attrs':{'fill':'currentColor','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':_0x21acba(0x10a),'clipRule':_0x21acba(0x10a)}}]},B=_0x58e026(function(_0x386693,_0x5a0fe5){var _0x282107=_0x21acba;return _0x1ce21c(W,Object['assign']({},_0x386693,{'id':_0x282107(0xac),'ref':_0x5a0fe5,'icon':ye}));});B[_0x21acba(0xf3)]=_0x21acba(0xf1);var Re=Object[_0x21acba(0x111)],Z=(_0x3f4a7f,_0x54afd3,_0x34f612,_0x45a95a)=>{for(var _0x2a935e=_0x45a95a>0x1?void 0x0:_0x45a95a?Re(_0x54afd3,_0x34f612):_0x54afd3,_0x50c49b=_0x3f4a7f['length']-0x1,_0x298675;_0x50c49b>=0x0;_0x50c49b--)(_0x298675=_0x3f4a7f[_0x50c49b])&&(_0x2a935e=_0x298675(_0x2a935e)||_0x2a935e);return _0x2a935e;},f=(_0x2e2ac9,_0x3bc973)=>(_0x47eae1,_0x2dedc3)=>_0x3bc973(_0x47eae1,_0x2dedc3,_0x2e2ac9);let I=class extends _0x42375c{constructor(_0x42c7b1,_0x257f66,_0x12c234){var _0x572291=_0x21acba;super(),d(this,'_entities',new Map()),(this[_0x572291(0xfa)]=_0x42c7b1,this[_0x572291(0x142)]=_0x257f66,this[_0x572291(0x11e)]=_0x12c234,this[_0x572291(0x14b)]());}async[_0x21acba(0x151)](_0x5564f1){var _0x565b63=_0x21acba;return this[_0x565b63(0xeb)]['has'](_0x5564f1)||await this[_0x565b63(0x114)](_0x5564f1),this[_0x565b63(0xeb)]['get'](_0x5564f1);}['_init'](){var _0x593a29=_0x21acba;this[_0x593a29(0xfa)][_0x593a29(0x100)](_0x2636cb[_0x593a29(0x11d)])[_0x593a29(0xb4)](_0x370249(this[_0x593a29(0xad)]))['subscribe'](async _0x3f3127=>{var _0x3720ff=_0x593a29;const _0x4992e9=_0x3f3127['getUnitId']();this['_entities'][_0x3720ff(0x101)](_0x4992e9)||this[_0x3720ff(0x114)](_0x4992e9);}),this[_0x593a29(0xfa)]['getTypeOfUnitDisposed$'](_0x2636cb[_0x593a29(0x11d)])[_0x593a29(0xb4)](_0x370249(this['dispose$']))[_0x593a29(0x141)](_0x315b46=>{var _0x23da2b=_0x593a29;const _0x5aa029=_0x315b46[_0x23da2b(0x143)](),_0x168efb=this[_0x23da2b(0xeb)][_0x23da2b(0x158)](_0x5aa029);_0x168efb==null||_0x168efb[_0x23da2b(0x112)]();});}async[_0x21acba(0x114)](_0x51c9c8){var _0x83fc28=_0x21acba;const _0x361280=await this[_0x83fc28(0x11e)][_0x83fc28(0xbf)](_0x51c9c8),_0x5310cb=this['_injector']['createInstance'](C,_0x51c9c8,_0x361280);return _0x5310cb[_0x83fc28(0xaf)](),this[_0x83fc28(0xeb)][_0x83fc28(0xc9)](_0x51c9c8,_0x5310cb),_0x5310cb;}};I=Z([f(0x0,_0x3bd673),f(0x1,_0x45e3a0(_0x3944a4)),f(0x2,_0x45e3a0(_0x418e8c))],I);var h=(_0x2b3c22=>(_0x2b3c22['OFFLINE']=_0x21acba(0x107),_0x2b3c22[_0x21acba(0xb9)]=_0x21acba(0x14c),_0x2b3c22[_0x21acba(0xc8)]='following',_0x2b3c22['NOT_FOLLOWING']=_0x21acba(0x110),_0x2b3c22[_0x21acba(0x147)]='presenting',_0x2b3c22))(h||{});const Pe=_0x21acba(0x150),Ae=0xc8;let C=class extends _0x42375c{constructor(_0x4f3673,_0x4a6691,_0x27dbca,_0x10e86c,_0x1927c0){var _0x590299=_0x21acba;super(),d(this,_0x590299(0x154),new _0x5c8398(_0x590299(0x14c))),d(this,_0x590299(0xc6),this[_0x590299(0x154)][_0x590299(0x14e)]()),d(this,_0x590299(0x14b),!0x1),d(this,_0x590299(0x15f),null),d(this,'_presenter',null),(this[_0x590299(0xb7)]=_0x4f3673,this[_0x590299(0xdc)]=_0x4a6691,this[_0x590299(0x102)]=_0x27dbca,this['_liveShareService']=_0x10e86c,this[_0x590299(0x119)]=_0x1927c0);}get[_0x21acba(0x103)](){var _0x5cdaa4=_0x21acba;return this[_0x5cdaa4(0x154)][_0x5cdaa4(0x132)]();}[_0x21acba(0x112)](){var _0x1b4cd3=_0x21acba,_0x1cff20;(_0x1cff20=this['_commandDisposable'])==null||_0x1cff20['dispose'](),this['_status$'][_0x1b4cd3(0xe3)]('idle'),this['_status$'][_0x1b4cd3(0x15d)]();}['init'](){var _0x4378d2=_0x21acba;this[_0x4378d2(0x14b)]||(this[_0x4378d2(0x14b)]=!0x0,this['_collabSession'][_0x4378d2(0x15c)][_0x4378d2(0xb4)](_0x370249(this[_0x4378d2(0xad)]))[_0x4378d2(0x141)](_0xec6771=>{var _0x5652b6=_0x4378d2;switch(_0xec6771){case _0x4c8836['OFFLINE']:this[_0x5652b6(0x14d)]();break;case _0x4c8836[_0x5652b6(0x13d)]:this['_handleOnline']();break;}}),this[_0x4378d2(0xdc)][_0x4378d2(0x153)]['pipe'](_0x370249(this['dispose$']))[_0x4378d2(0x141)](_0x16196f=>{var _0x2dd5ea=_0x4378d2;const {eventID:_0x39aecc}=_0x16196f;switch(_0x39aecc){case _0x2a9a59[_0x2dd5ea(0xbb)]:this[_0x2dd5ea(0xb3)](_0x16196f);break;case _0x2a9a59[_0x2dd5ea(0x139)]:this[_0x2dd5ea(0x10f)](_0x16196f);break;case _0x2a9a59['LIVESHARE_TERMINATE']:this[_0x2dd5ea(0x127)]();break;case _0x2a9a59['NEW_CHANGESETS']:this[_0x2dd5ea(0x148)](_0x16196f);break;}}));}[_0x21acba(0x155)](){var _0x42e76b=_0x21acba;this['_collabSession'][_0x42e76b(0xda)]({'eventID':_0x2a9a59['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x42e76b(0xb7)],'userID':this[_0x42e76b(0xdc)][_0x42e76b(0xea)]()}},this[_0x42e76b(0xb7)]);}['stopPresenting'](){var _0xb9def3=_0x21acba;this[_0xb9def3(0x103)]===_0xb9def3(0xf2)&&(this[_0xb9def3(0x154)]['next'](_0xb9def3(0x14c)),this['_collabSession']['send']({'eventID':_0x2a9a59[_0xb9def3(0xc7)],'data':{'unitID':this[_0xb9def3(0xb7)]}},this[_0xb9def3(0xb7)]));}[_0x21acba(0xcd)](){var _0x56f90a=_0x21acba;this['_status']===_0x56f90a(0x110)&&(this[_0x56f90a(0x154)][_0x56f90a(0xe3)](_0x56f90a(0xe9)),this[_0x56f90a(0x108)]());}[_0x21acba(0xbc)](){var _0x126fdc=_0x21acba;this[_0x126fdc(0x103)]===_0x126fdc(0xe9)&&this['_stopFollowing']();}[_0x21acba(0xb3)](_0x2f363f){var _0x218a2d=_0x21acba;const {presenter:_0x36769f}=_0x2f363f[_0x218a2d(0x146)],_0x359182=this[_0x218a2d(0xdc)][_0x218a2d(0xea)]();this[_0x218a2d(0x10c)]=_0x36769f,_0x36769f===_0x359182?(this[_0x218a2d(0x11f)](),this[_0x218a2d(0x118)]()):this[_0x218a2d(0x103)]!==_0x218a2d(0x110)&&(this['_stopPresenting'](),this[_0x218a2d(0x108)]());}[_0x21acba(0xc1)](){var _0x120dc6=_0x21acba;const _0x4b7bbc={'eventID':_0x2a9a59['LIVESHARE_FETCH_OPERATIONS']};this[_0x120dc6(0xdc)][_0x120dc6(0xda)](_0x4b7bbc,this['_unitID']);}[_0x21acba(0x127)](){var _0x399c1a=_0x21acba;this[_0x399c1a(0x10c)]=null,this['_status']!==_0x399c1a(0xf2)&&this['_beIdle']();}[_0x21acba(0x148)](_0x10fa4c){var _0x6239e0=_0x21acba;if(this[_0x6239e0(0x103)]===_0x6239e0(0xe9)&&this['_presenter']===_0x10fa4c[_0x6239e0(0x146)][_0x6239e0(0xd1)]){const _0x16524b=_0x555882(_0x10fa4c[_0x6239e0(0x146)])[_0x6239e0(0xef)]['reverse']()[_0x6239e0(0xc3)](_0x549779=>_0x549779['id']===_0x587516['id']);if(_0x16524b){const _0x1a89fa=_0x16524b[_0x6239e0(0xd8)]['unitId'],_0x48c0ae=_0x16524b[_0x6239e0(0xd8)][_0x6239e0(0xb8)]['id'];setTimeout(()=>{var _0x4584fe=_0x6239e0;this[_0x4584fe(0x119)][_0x4584fe(0x115)](_0x394a08['id'],{'unitId':_0x1a89fa,'subUnitId':_0x48c0ae},{'fromCollab':!0x0});});}}}[_0x21acba(0x118)](){var _0xc608f5=_0x21acba;this['_status$']['next']('presenting');const _0x476633=new Map(),_0xfe239=this[_0xc608f5(0x15f)]=new _0x240d80();_0xfe239['add'](_0x52738f(()=>{var _0x176286=_0xc608f5;_0x476633[_0x176286(0xec)](_0x3a77aa=>_0x3a77aa[_0x176286(0x15d)]()),_0x476633[_0x176286(0x11c)]();})),_0xfe239[_0xc608f5(0x121)](this['_commandService'][_0xc608f5(0xd2)](_0x10ad48=>{var _0x4394ab=_0xc608f5,_0x49f695;if(_0x10ad48[_0x4394ab(0x10b)]!==_0x2b26cd[_0x4394ab(0xfc)]||!this[_0x4394ab(0x128)][_0x4394ab(0xff)](_0x10ad48['id']))return;const {id:_0x27b991}=_0x10ad48;let _0x792d99;_0x476633[_0x4394ab(0x101)](_0x27b991)?_0x792d99=_0x476633['get'](_0x27b991):(_0x792d99=new _0x4b30d1(),_0x476633[_0x4394ab(0xc9)](_0x27b991,_0x792d99),_0x792d99['pipe'](_0xcd833b((_0x49f695=this[_0x4394ab(0x102)][_0x4394ab(0x113)](Pe))!=null?_0x49f695:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4394ab(0x141)](_0x5ea63f=>{var _0x3c7593=_0x4394ab;this[_0x3c7593(0xdc)][_0x3c7593(0xda)]({'eventID':_0x2a9a59[_0x3c7593(0x139)],'data':{'unitID':this[_0x3c7593(0xb7)],'operations':{[_0x5ea63f['id']]:{'id':_0x5ea63f['id'],'params':JSON[_0x3c7593(0x136)](_0x5ea63f[_0x3c7593(0xd8)])}}}},this[_0x3c7593(0xb7)]);})),_0x792d99[_0x4394ab(0xe3)](_0x10ad48);})),this[_0xc608f5(0x128)][_0xc608f5(0x129)](this[_0xc608f5(0xb7)])[_0xc608f5(0xec)](_0x325b0f=>this[_0xc608f5(0xdc)][_0xc608f5(0xda)]({'eventID':_0x2a9a59[_0xc608f5(0x139)],'data':{'unitID':this['_unitID'],'operations':{[_0x325b0f['id']]:{'id':_0x325b0f['id'],'params':JSON['stringify'](_0x325b0f['params'])}}}},this['_unitID']));}[_0x21acba(0x125)](){var _0x4574e9=_0x21acba,_0x1fe9c1;this['_status$']['next'](_0x4574e9(0x14c)),(_0x1fe9c1=this[_0x4574e9(0x15f)])==null||_0x1fe9c1[_0x4574e9(0x112)](),this[_0x4574e9(0x15f)]=null;}[_0x21acba(0x108)](){var _0x197bb2=_0x21acba,_0x5d2a0c;(_0x5d2a0c=this[_0x197bb2(0x15f)])==null||_0x5d2a0c[_0x197bb2(0x112)](),this[_0x197bb2(0x154)][_0x197bb2(0xe3)](_0x197bb2(0xe9));}['_beIdle'](){var _0x529434=_0x21acba,_0x3be2fd;this[_0x529434(0x154)][_0x529434(0xe3)](_0x529434(0x14c)),(_0x3be2fd=this[_0x529434(0x15f)])==null||_0x3be2fd[_0x529434(0x112)](),this[_0x529434(0x15f)]=null;}[_0x21acba(0x11f)](){var _0x262717=_0x21acba,_0x323b87;this[_0x262717(0x154)][_0x262717(0xe3)](_0x262717(0x110)),(_0x323b87=this[_0x262717(0x15f)])==null||_0x323b87[_0x262717(0x112)]();}[_0x21acba(0x10f)](_0x1ab44d){var _0x32ee77=_0x21acba;if([_0x32ee77(0xf2),_0x32ee77(0x110),_0x32ee77(0x107)][_0x32ee77(0x157)](this[_0x32ee77(0x103)])||!_0x1ab44d[_0x32ee77(0x146)][_0x32ee77(0xf8)]||_0x1ab44d['data'][_0x32ee77(0xf8)]===this[_0x32ee77(0xdc)]['getMemberID']())return;this[_0x32ee77(0x103)]===_0x32ee77(0x14c)&&this[_0x32ee77(0x108)]();const _0x4ceed3=_0x1ab44d[_0x32ee77(0x146)][_0x32ee77(0xe1)];Object['values'](_0x4ceed3)[_0x32ee77(0xec)](_0x46f543=>{var _0x5db352=_0x32ee77;this[_0x5db352(0x119)][_0x5db352(0x115)](_0x46f543['id'],_0x46f543[_0x5db352(0xd8)]?JSON[_0x5db352(0x116)](_0x46f543[_0x5db352(0xd8)]):null,{'fromCollab':!0x0});});}[_0x21acba(0x14d)](){var _0x4b9222=_0x21acba,_0x2e002c;this['_status$']['next']('offline'),(_0x2e002c=this[_0x4b9222(0x15f)])==null||_0x2e002c[_0x4b9222(0x112)]();}[_0x21acba(0x137)](){var _0x573ecd=_0x21acba;this[_0x573ecd(0x154)][_0x573ecd(0xe3)](_0x573ecd(0x14c)),this[_0x573ecd(0xc1)]();}};C=Z([f(0x2,_0x56c18f),f(0x3,_0x45e3a0(L)),f(0x4,_0x40b986)],C);function Te(){var _0x6c1069=_0x21acba;const _0x448ab1=_0x192779(I),_0x5eb56c=_0x192779(_0x3bd673),_0x1afc80=_0x17612b(()=>_0x5eb56c[_0x6c1069(0xe6)](_0x2636cb[_0x6c1069(0x11d)]),void 0x0,!0x1,[]),[_0x55a08d,_0xf14ce9]=_0x153009(null),[_0x314a70,_0xf14ed9]=_0x153009(h[_0x6c1069(0xb9)]),_0x11456b=_0x15fff5(null);return _0x1fea22(()=>(_0x1afc80&&_0x448ab1['getLiveShareCoordinator'](_0x1afc80['getUnitId']())[_0x6c1069(0xd0)](_0x171cf7=>{var _0x4a77df=_0x6c1069;_0xf14ce9(_0x171cf7),_0x11456b[_0x4a77df(0x120)]=_0x171cf7[_0x4a77df(0xc6)]['subscribe'](_0x152223=>{_0xf14ed9(_0x152223);});}),()=>{var _0x26b8da=_0x6c1069,_0x223902;(_0x223902=_0x11456b[_0x26b8da(0x120)])==null||_0x223902[_0x26b8da(0x14a)](),_0x11456b[_0x26b8da(0x120)]=null;}),[_0x1afc80,_0x448ab1]),_0x55a08d?_0xc206b(_0x5b29ed,{'align':'end','disabled':_0x314a70===h[_0x6c1069(0x152)],'className':_0x6c1069(0x13a),'overlay':_0xc206b($e,{'status':_0x314a70,'coordinator':_0x55a08d}),'children':_0xc206b(_0x6c1069(0xdf),{'className':_0x1dfccb('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x314a70===h[_0x6c1069(0x152)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x314a70!==h[_0x6c1069(0x152)]}),'type':_0x6c1069(0xdf),'children':_0xc206b(B,{'className':'univer-size-4'})})}):null;}function $e(_0x2426dd){var _0x506e88=_0x21acba;const {status:_0x3da7c0,coordinator:_0x4bbeb9}=_0x2426dd;switch(_0x3da7c0){case h[_0x506e88(0xb9)]:return _0xc206b(Fe,{'coordinator':_0x4bbeb9});case h[_0x506e88(0xc8)]:return _0xc206b(He,{'coordinator':_0x4bbeb9});case h[_0x506e88(0xdd)]:return _0xc206b(je,{'coordinator':_0x4bbeb9});case h[_0x506e88(0x152)]:return _0xc206b(Ve,{});case h[_0x506e88(0x147)]:return _0xc206b(Ue,{'coordinator':_0x4bbeb9});default:return null;}}function Fe(_0x251122){var _0x45a757=_0x21acba;const {coordinator:_0x2ef4ac}=_0x251122;return _0x10d624(_0x58a9cf,{'children':[_0xc206b('div',{'className':_0x45a757(0x145),'children':_0x45a757(0x11a)}),_0xc206b(_0xff20a5,{'onClick':()=>_0x2ef4ac[_0x45a757(0x155)](),'children':_0x45a757(0xc4)})]});}function He(_0x11b326){var _0x446dca=_0x21acba;const {coordinator:_0x2e86c8}=_0x11b326;return _0x10d624(_0x58a9cf,{'children':[_0xc206b(_0x446dca(0xce),{'className':_0x446dca(0x145),'children':_0x446dca(0xba)}),_0xc206b(_0xff20a5,{'onClick':()=>_0x2e86c8[_0x446dca(0xbc)](),'children':'Stop\x20following'})]});}function je(_0x57388a){var _0x75961=_0x21acba;const {coordinator:_0xdb234b}=_0x57388a;return _0x10d624(_0x58a9cf,{'children':[_0xc206b('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x75961(0x12b)}),_0xc206b(_0xff20a5,{'variant':'text','onClick':()=>_0xdb234b[_0x75961(0xcd)](),'children':'Start\x20following'})]});}function Ue(_0x99db5d){var _0xca61f5=_0x21acba;const {coordinator:_0x342ac3}=_0x99db5d;return _0x10d624(_0x58a9cf,{'children':[_0xc206b(_0xca61f5(0xce),{'className':_0xca61f5(0x145),'children':'You\x27re\x20presenting\x20the\x20document'}),_0xc206b(_0xff20a5,{'variant':_0xca61f5(0x14f),'onClick':()=>_0x342ac3[_0xca61f5(0x133)](),'children':_0xca61f5(0x13f)})]});}function Ve(){var _0x1c32c4=_0x21acba;return _0xc206b(_0x58a9cf,{'children':_0x1c32c4(0x10d)});}var Me=Object[_0x21acba(0x111)],ke=(_0x5b3b96,_0x3b742a,_0x2a5025,_0x26d7fa)=>{var _0x1961b0=_0x21acba;for(var _0x59c165=_0x26d7fa>0x1?void 0x0:_0x26d7fa?Me(_0x3b742a,_0x2a5025):_0x3b742a,_0x3c777c=_0x5b3b96[_0x1961b0(0x13e)]-0x1,_0x20e0a4;_0x3c777c>=0x0;_0x3c777c--)(_0x20e0a4=_0x5b3b96[_0x3c777c])&&(_0x59c165=_0x20e0a4(_0x59c165)||_0x59c165);return _0x59c165;},$=(_0x3412ad,_0x18a6bd)=>(_0x1bae55,_0x34c4e4)=>_0x18a6bd(_0x1bae55,_0x34c4e4,_0x3412ad);function _0x56c5(){var _0xec1c0c=['UniverIcon','_collabSession','NOT_FOLLOWING','42984wAwFpu','button','call','operations','defIds','next','propertyIsEnumerable','idSuffix','getCurrentTypeOfUnit$','defineProperty','univerjs-icon\x20univerjs-icon-','following','getMemberID','_entities','forEach','attrs','entries','mutations','UNIVER_UNKNOWN','LiveShareIcon','presenting','displayName','use','4jXvUOq','_sharedOperations','_uiPartsService','presenter','4589669XwEufQ','_univerInstanceService','pluginName','OPERATION','1em','HEADER_MENU','shouldShareOperation','getTypeOfUnitAdded$','has','_configService','_status','tag','UNIVER_LIVE_SHARE_PLUGIN','from','offline','_startFollowing','indexOf','evenodd','type','_presenter','You\x27are\x20offline.','trim','_handleOperation','not-following','getOwnPropertyDescriptor','dispose','getConfig','_startLiveShareCoordinator','executeCommand','parse','extend','_startPresenting','_commandService','Present\x20this\x20document','map','clear','UNIVER_SHEET','_collabSessionService','_stopFollowing','current','add','defs','function','className','_stopPresenting','31448ntJEPF','_handleTerminate','_liveShareService','getInitialStates','override','You\x27re\x20not\x20following\x20the\x20presenter','toString','registerSharedOperation','11658482xxfXfp','assign','40099XSIBJV','254640yppFSA','getValue','stopPresenting','icon','0\x200\x2017\x2017','stringify','_handleOnline','hasOwnProperty','LIVESHARE_OPERATION','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','1251muXnoh','onStarting','ONLINE','length','Stop\x20presenting','currentColor','subscribe','_injector','getUnitId','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','univer-mb-3\x20univer-w-full\x20univer-text-sm','data','PRESENTING','_handleNewChangeSets','_mountLiveShare','unsubscribe','_init','idle','_handleOffline','asObservable','default','SAME_OPERATION_SHARE_INTERVAL','getLiveShareCoordinator','OFFLINE','event$','_status$','tryStartPresenting','490KRXAju','includes','get','_config','none','concat','sessionStatus$','complete','_reporters','_commandDisposable','registerComponent','live-share-icon','dispose$','substring','init','setConfig','prototype','colorChannel1','_handleNewHost','pipe','getOwnPropertySymbols','path','_unitID','sheet','IDLE','You\x27re\x20following\x20the\x20presenter','LIVESHARE_NEW_HOST','stopFollowing','symbol','1741125DfZNhF','requireSession','string','_fetchOperations','replace','find','Start','apply','status$','LIVESHARE_TERMINATE','FOLLOWING','set','fill','registerInitialStateReporter','6vjduyA','startFollowing','div','svg','then','memberID','onCommandExecuted','disposeWithMe','delete','mask','children','xlink:href','params','random','send'];_0x56c5=function(){return _0xec1c0c;};return _0x56c5();}let b=class extends _0x49ef90{constructor(_0x5b01dd,_0x5277f7){var _0x2b40bf=_0x21acba;super(),this[_0x2b40bf(0x142)]=_0x5b01dd,this[_0x2b40bf(0xf7)]=_0x5277f7,this['_mountLiveShare']();}[_0x21acba(0x149)](){var _0xc49821=_0x21acba;this[_0xc49821(0xd3)](this[_0xc49821(0xf7)][_0xc49821(0xab)](_0x5a30be[_0xc49821(0xfe)],()=>_0x3350ba(Te,this[_0xc49821(0x142)])));}};b=ke([$(0x0,_0x45e3a0(_0x3944a4)),$(0x1,_0x257d82)],b);function _0x24fa(_0x511d67,_0x46f72a){var _0x56c5d9=_0x56c5();return _0x24fa=function(_0x24fa02,_0x1a195f){_0x24fa02=_0x24fa02-0xab;var _0x4d06e2=_0x56c5d9[_0x24fa02];return _0x4d06e2;},_0x24fa(_0x511d67,_0x46f72a);}var Ge=Object[_0x21acba(0xe7)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x3ac2a8,_0x1638b7,_0x3bb6d0)=>_0x1638b7 in _0x3ac2a8?Ge(_0x3ac2a8,_0x1638b7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3bb6d0}):_0x3ac2a8[_0x1638b7]=_0x3bb6d0,Be=(_0x3e9a98,_0x66ab4b,_0x45fd0f,_0x49227f)=>{var _0x4f5cb7=_0x21acba;for(var _0x5c245d=_0x49227f>0x1?void 0x0:_0x49227f?We(_0x66ab4b,_0x45fd0f):_0x66ab4b,_0x83347e=_0x3e9a98[_0x4f5cb7(0x13e)]-0x1,_0x3cc55b;_0x83347e>=0x0;_0x83347e--)(_0x3cc55b=_0x3e9a98[_0x83347e])&&(_0x5c245d=_0x3cc55b(_0x5c245d)||_0x5c245d);return _0x5c245d;},F=(_0xe1f009,_0x372eb8)=>(_0x25a7d9,_0x124ad9)=>_0x372eb8(_0x25a7d9,_0x124ad9,_0xe1f009),J=(_0x353b7d,_0x3f8e87,_0x51edcc)=>Ye(_0x353b7d,typeof _0x3f8e87!='symbol'?_0x3f8e87+'':_0x3f8e87,_0x51edcc);const Ze=_0x21acba(0x105);let O=class extends _0xec22e2{constructor(_0x3e7a0e=T,_0x58105f,_0x1d797c){var _0xda3894=_0x21acba;super(),this[_0xda3894(0x159)]=_0x3e7a0e,this[_0xda3894(0x142)]=_0x58105f,this[_0xda3894(0x102)]=_0x1d797c;const {..._0x124445}=_0x47242e({},T,this[_0xda3894(0x159)]);this[_0xda3894(0x102)][_0xda3894(0xb0)](Oe,_0x124445);}[_0x21acba(0x13c)](){var _0xf59e67=_0x21acba;_0x26645d(this[_0xf59e67(0x142)],_0x508f67([[L],[I],[m],[b]],this['_config'][_0xf59e67(0x12a)])),_0x34849a(this[_0xf59e67(0x142)],[[m]]);}['onRendered'](){var _0x57a76c=_0x21acba;_0x34849a(this[_0x57a76c(0x142)],[[b]]);}};J(O,_0x21acba(0x10b),_0x2636cb[_0x21acba(0xf0)]),J(O,_0x21acba(0xfb),Ze),O=Be([_0x49227d(_0x2380c4),F(0x1,_0x45e3a0(_0x3944a4)),F(0x2,_0x56c18f)],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 _0x99f71f=_0x2f47;(function(_0x363115,_0xbff1db){var _0x5db9c0=_0x2f47,_0x5f446e=_0x363115();while(!![]){try{var _0x15df3b=-parseInt(_0x5db9c0(0x150))/0x1*(parseInt(_0x5db9c0(0x161))/0x2)+parseInt(_0x5db9c0(0x1a7))/0x3+parseInt(_0x5db9c0(0x13d))/0x4+-parseInt(_0x5db9c0(0x185))/0x5+-parseInt(_0x5db9c0(0x18a))/0x6+parseInt(_0x5db9c0(0x1c0))/0x7*(parseInt(_0x5db9c0(0x1cd))/0x8)+-parseInt(_0x5db9c0(0x1c8))/0x9*(parseInt(_0x5db9c0(0x165))/0xa);if(_0x15df3b===_0xbff1db)break;else _0x5f446e['push'](_0x5f446e['shift']());}catch(_0x453a8e){_0x5f446e['push'](_0x5f446e['shift']());}}}(_0x389d,0x8647f));var q=Object['defineProperty'],z=(_0x376849,_0x53524c,_0x170f68)=>_0x53524c in _0x376849?q(_0x376849,_0x53524c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x170f68}):_0x376849[_0x53524c]=_0x170f68,d=(_0xe98a8c,_0x77cbe7,_0x382a4b)=>z(_0xe98a8c,typeof _0x77cbe7!=_0x99f71f(0x1a3)?_0x77cbe7+'':_0x77cbe7,_0x382a4b);import{CollaborationSessionService as _0x4212d6,SessionStatus as _0x4b2aa1,UniverCollaborationClientPlugin as _0x4a8a68}from'@univerjs-pro/collaboration-client';import{Disposable as _0x59f156,toDisposable as _0x3e8155,Inject as _0x5bf50d,IUniverInstanceService as _0x3436e1,Injector as _0x473fc7,IConfigService as _0x3f2bf0,ICommandService as _0x320924,RxDisposable as _0x428bc,UniverInstanceType as _0x5a9822,DisposableCollection as _0x59c941,CommandType as _0x51ef63,DependentOn as _0x34567d,Plugin as _0x176cff,merge as _0xae2b6b,registerDependencies as _0x3ac27d,mergeOverrideWithDependencies as _0x250a49,touchDependencies as _0x25eed6}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x311bff,InsertSheetMutation as _0x3bed17}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x2ab1ad,SetScrollOperation as _0x65b388}from'@univerjs/sheets-ui';import{useDependency as _0x4e95ea,useObservable as _0x574a40,IUIPartsService as _0x359339,BuiltInUIPart as _0xa95625,connectInjector as _0x11d29b}from'@univerjs/ui';import{jsx as _0x2a3f55,jsxs as _0x590551,Fragment as _0x8dd5dc}from'react/jsx-runtime';import{Dropdown as _0x548f32,clsx as _0x449eb0,Button as _0x310295}from'@univerjs/design';import{forwardRef as _0xa501d4,useRef as _0xf0d4a5,createElement as _0x18c11d,useState as _0x137d2a,useEffect as _0x572451}from'react';import{CollaborationEvent as _0x3a2075,parseProtocolChangeset as _0x5e4189}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x57c6d5,Subject as _0x4d9bd9}from'rxjs';function _0x389d(){var _0x2bbf63=['currentColor','getValue','_handleNewHost','clear','override','parse','Start\x20following','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','memberID','find','offline','_sharedOperations','idle','defIds','_collabSessionService','_injector','operations','_mountLiveShare','live-share-icon','_stopPresenting','_status$','_reporters','UNIVER_LIVE_SHARE_PLUGIN','_presenter','mask','idSuffix','unitId','tag','183050GarogW','disposeWithMe','random','stopPresenting','PRESENTING','1009164kRUySn','_status','_handleTerminate','LIVESHARE_TERMINATE','url(#$1','not-following','reverse','presenting','univerjs-icon\x20univerjs-icon-','dispose$','_unitID','NEW_CHANGESETS','init','Start','svg','onCommandExecuted','_uiPartsService','requireSession','startFollowing','use','_entities','getConfig','default','xlink:href','_stopFollowing','symbol','onStarting','button','registerInitialStateReporter','2649516ToiaDJ','_univerInstanceService','status$','getInitialStates','subscribe','pipe','onRendered','then','params','prototype','colorChannel1','entries','fill','_configService','_commandDisposable','dispose','presenter','0\x200\x2017\x2017','end','getTypeOfUnitDisposed$','evenodd','executeCommand','call','_handleOffline','NOT_FOLLOWING','84JZxkJb','forEach','Stop\x20following','UNIVER_SHEET','LIVESHARE_OPERATION','OFFLINE','concat','icon','11302749qpzJQd','getOwnPropertySymbols','_handleNewChangeSets','You\x27are\x20offline.','unsubscribe','637736xWzzqV','LIVESHARE_FETCH_OPERATIONS','pluginName','SAME_OPERATION_SHARE_INTERVAL','current','OPERATION','ONLINE','_fetchOperations','get','length','trim','tryStartPresenting','registerComponent','getCurrentTypeOfUnit$','div','delete','attrs','FOLLOWING','path','data','stringify','LIVESHARE_NEW_HOST','toString','children','indexOf','registerSharedOperation','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','_startLiveShareCoordinator','includes','Stop\x20presenting','live-share.config','getTypeOfUnitAdded$','string','1em','asObservable','Present\x20this\x20document','LiveShareIcon','getLiveShareCoordinator','_collabSession','You\x27re\x20following\x20the\x20presenter','1914944VpBOUC','next','_beIdle','getUnitId','_startFollowing','_liveShareService','shouldShareOperation','createInstance','has','set','displayName','_startPresenting','getMemberID','text','send','http://www.w3.org/2000/svg','_handleOperation','className','from','4XMGjAv','mutations','map','setConfig','You\x27re\x20not\x20following\x20the\x20presenter','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LIVESHARE_REQUEST_HOST','extend','stopFollowing','_handleOnline','IDLE','univer-mb-3\x20univer-w-full\x20univer-text-sm','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','add','event$','hasOwnProperty','HEADER_MENU','153916ZIajMF','_commandService','_init','following','10mUVBqp','type','apply','getOwnPropertyDescriptor'];_0x389d=function(){return _0x2bbf63;};return _0x389d();}import{takeUntil as _0xd2f81d,throttleTime as _0x27a38f}from'rxjs/operators';const Oe=_0x99f71f(0x133),T={};class L extends _0x59f156{constructor(){var _0x1a6c44=_0x99f71f;super(...arguments),d(this,_0x1a6c44(0x174),new Set()),d(this,'_reporters',new Set());}[_0x99f71f(0x12e)](_0x5132a4){var _0x295d4e=_0x99f71f;return this[_0x295d4e(0x174)][_0x295d4e(0x15d)](_0x5132a4),_0x3e8155(()=>this['_sharedOperations'][_0x295d4e(0x124)](_0x5132a4));}[_0x99f71f(0x1a6)](_0x4923ea){var _0x56d267=_0x99f71f;return this[_0x56d267(0x17e)][_0x56d267(0x15d)](_0x4923ea),_0x3e8155(()=>this[_0x56d267(0x17e)][_0x56d267(0x124)](_0x4923ea));}['shouldShareOperation'](_0x3e1406){var _0xaa5246=_0x99f71f;return this[_0xaa5246(0x174)][_0xaa5246(0x145)](_0x3e1406);}['getInitialStates'](_0x5cbbd0){var _0x3b93de=_0x99f71f;return Array[_0x3b93de(0x14f)](this[_0x3b93de(0x17e)])[_0x3b93de(0x152)](_0x1e173a=>_0x1e173a(_0x5cbbd0));}}var Ee=Object[_0x99f71f(0x168)],we=(_0x117511,_0x47a023,_0x59f513,_0x57c908)=>{var _0x5bc84c=_0x99f71f;for(var _0x25c548=_0x57c908>0x1?void 0x0:_0x57c908?Ee(_0x47a023,_0x59f513):_0x47a023,_0x48d773=_0x117511[_0x5bc84c(0x1d6)]-0x1,_0x158f85;_0x48d773>=0x0;_0x48d773--)(_0x158f85=_0x117511[_0x48d773])&&(_0x25c548=_0x158f85(_0x25c548)||_0x25c548);return _0x25c548;},Ne=(_0x45b309,_0x331f67)=>(_0xff2d39,_0x1b8cae)=>_0x331f67(_0xff2d39,_0x1b8cae,_0x45b309);let m=class extends _0x59f156{constructor(_0x45b4d3){super(),this['_liveShareService']=_0x45b4d3,this['_init']();}[_0x99f71f(0x163)](){var _0x1b8d9c=_0x99f71f;[_0x2ab1ad['id'],_0x65b388['id'],_0x311bff['id']][_0x1b8d9c(0x1c1)](_0x5d0589=>{var _0x46707a=_0x1b8d9c;this['disposeWithMe'](this[_0x46707a(0x142)][_0x46707a(0x12e)](_0x5d0589));});}};m=we([Ne(0x0,_0x5bf50d(L))],m);var c=function(){var _0x271bd9=_0x99f71f;return c=Object['assign']||function(_0x240a38){var _0x1269c7=_0x2f47;for(var _0x1c7a0c,_0x30691f=0x1,_0x5293db=arguments[_0x1269c7(0x1d6)];_0x30691f<_0x5293db;_0x30691f++){_0x1c7a0c=arguments[_0x30691f];for(var _0x2c9bfc in _0x1c7a0c)Object[_0x1269c7(0x1b0)][_0x1269c7(0x15f)][_0x1269c7(0x1bd)](_0x1c7a0c,_0x2c9bfc)&&(_0x240a38[_0x2c9bfc]=_0x1c7a0c[_0x2c9bfc]);}return _0x240a38;},c[_0x271bd9(0x167)](this,arguments);},Ce=function(_0x1591af,_0x1cae09){var _0x3f4337=_0x99f71f,_0xde99a1={};for(var _0x87bd6c in _0x1591af)Object['prototype']['hasOwnProperty'][_0x3f4337(0x1bd)](_0x1591af,_0x87bd6c)&&_0x1cae09[_0x3f4337(0x12d)](_0x87bd6c)<0x0&&(_0xde99a1[_0x87bd6c]=_0x1591af[_0x87bd6c]);if(_0x1591af!=null&&typeof Object[_0x3f4337(0x1c9)]=='function'){for(var _0x12adac=0x0,_0x87bd6c=Object[_0x3f4337(0x1c9)](_0x1591af);_0x12adac<_0x87bd6c[_0x3f4337(0x1d6)];_0x12adac++)_0x1cae09[_0x3f4337(0x12d)](_0x87bd6c[_0x12adac])<0x0&&Object[_0x3f4337(0x1b0)]['propertyIsEnumerable']['call'](_0x1591af,_0x87bd6c[_0x12adac])&&(_0xde99a1[_0x87bd6c[_0x12adac]]=_0x1591af[_0x87bd6c[_0x12adac]]);}return _0xde99a1;},W=_0xa501d4(function(_0x51b791,_0x140c67){var _0x34fd96=_0x99f71f,_0x1d7752=_0x51b791[_0x34fd96(0x1c7)],_0x297b40=_0x51b791['id'],_0x18df01=_0x51b791[_0x34fd96(0x14e)],_0x4386bb=_0x51b791[_0x34fd96(0x157)],_0x50ffa8=Ce(_0x51b791,[_0x34fd96(0x1c7),'id','className',_0x34fd96(0x157)]),_0x3e1a33=_0x34fd96(0x192)['concat'](_0x297b40,'\x20')[_0x34fd96(0x1c6)](_0x18df01||'')[_0x34fd96(0x1d7)](),_0x2a8d00=_0xf0d4a5('_'['concat'](Le()));return Y(_0x1d7752,''[_0x34fd96(0x1c6)](_0x297b40),{'defIds':_0x1d7752['defIds'],'idSuffix':_0x2a8d00[_0x34fd96(0x1d1)]},c({'ref':_0x140c67,'className':_0x3e1a33},_0x50ffa8),_0x4386bb);});function _0x2f47(_0x4d6962,_0x3a58a4){var _0x389dfd=_0x389d();return _0x2f47=function(_0x2f4777,_0x5460f0){_0x2f4777=_0x2f4777-0x121;var _0x4810e3=_0x389dfd[_0x2f4777];return _0x4810e3;},_0x2f47(_0x4d6962,_0x3a58a4);}function Y(_0x1358d2,_0x2fbd9d,_0x2f25a7,_0x5c4004,_0x19b544){var _0x3b6c3b=_0x99f71f;return _0x18c11d(_0x1358d2[_0x3b6c3b(0x184)],c(c({'key':_0x2fbd9d},De(_0x1358d2,_0x2f25a7,_0x19b544)),_0x5c4004),(xe(_0x1358d2,_0x2f25a7)[_0x3b6c3b(0x12c)]||[])[_0x3b6c3b(0x152)](function(_0x5613f4,_0x24f63c){var _0xe27bd6=_0x3b6c3b;return Y(_0x5613f4,''[_0xe27bd6(0x1c6)](_0x2fbd9d,'-')[_0xe27bd6(0x1c6)](_0x1358d2[_0xe27bd6(0x184)],'-')[_0xe27bd6(0x1c6)](_0x24f63c),_0x2f25a7,void 0x0,_0x19b544);}));}function De(_0x1f8167,_0x2569fe,_0x15ff3d){var _0x2ad2b7=_0x99f71f,_0x4f5e29=c({},_0x1f8167[_0x2ad2b7(0x125)]);_0x15ff3d!=null&&_0x15ff3d[_0x2ad2b7(0x1b1)]&&_0x4f5e29[_0x2ad2b7(0x1b3)]===_0x2ad2b7(0x1b1)&&(_0x4f5e29[_0x2ad2b7(0x1b3)]=_0x15ff3d[_0x2ad2b7(0x1b1)]),_0x1f8167[_0x2ad2b7(0x184)]===_0x2ad2b7(0x181)&&_0x4f5e29['id']&&(_0x4f5e29['id']=_0x4f5e29['id']+_0x2569fe[_0x2ad2b7(0x182)]),Object[_0x2ad2b7(0x1b2)](_0x4f5e29)[_0x2ad2b7(0x1c1)](function(_0x2b1c2a){var _0x100171=_0x2ad2b7,_0x25bbd6=_0x2b1c2a[0x0],_0x4af1b9=_0x2b1c2a[0x1];_0x25bbd6==='mask'&&typeof _0x4af1b9==_0x100171(0x135)&&(_0x4f5e29[_0x25bbd6]=_0x4af1b9['replace'](/url\(#(.*)\)/,'url(#$1'[_0x100171(0x1c6)](_0x2569fe[_0x100171(0x182)],')')));});var _0xdfa0fc=_0x2569fe[_0x2ad2b7(0x176)];return!_0xdfa0fc||_0xdfa0fc[_0x2ad2b7(0x1d6)]===0x0||(_0x1f8167[_0x2ad2b7(0x184)]===_0x2ad2b7(0x19d)&&_0x4f5e29[_0x2ad2b7(0x1a1)]&&(_0x4f5e29[_0x2ad2b7(0x1a1)]=_0x4f5e29[_0x2ad2b7(0x1a1)]+_0x2569fe['idSuffix']),Object[_0x2ad2b7(0x1b2)](_0x4f5e29)[_0x2ad2b7(0x1c1)](function(_0x18ec09){var _0x5d6614=_0x2ad2b7,_0x5d8c5a=_0x18ec09[0x0],_0x138c6e=_0x18ec09[0x1];typeof _0x138c6e=='string'&&(_0x4f5e29[_0x5d8c5a]=_0x138c6e['replace'](/url\(#(.*)\)/,_0x5d6614(0x18e)[_0x5d6614(0x1c6)](_0x2569fe[_0x5d6614(0x182)],')')));})),_0x4f5e29;}function xe(_0x4c8ae5,_0xa8dbb4){var _0x5c9c76=_0x99f71f,_0x4cb83c,_0x23f634=_0xa8dbb4[_0x5c9c76(0x176)];return!_0x23f634||_0x23f634[_0x5c9c76(0x1d6)]===0x0?_0x4c8ae5:_0x4c8ae5[_0x5c9c76(0x184)]==='defs'&&(!((_0x4cb83c=_0x4c8ae5[_0x5c9c76(0x12c)])===null||_0x4cb83c===void 0x0)&&_0x4cb83c[_0x5c9c76(0x1d6)])?c(c({},_0x4c8ae5),{'children':_0x4c8ae5['children'][_0x5c9c76(0x152)](function(_0xf9f2d8){var _0x186734=_0x5c9c76;return typeof _0xf9f2d8[_0x186734(0x125)]['id']=='string'&&_0x23f634&&_0x23f634[_0x186734(0x131)](_0xf9f2d8[_0x186734(0x125)]['id'])?c(c({},_0xf9f2d8),{'attrs':c(c({},_0xf9f2d8['attrs']),{'id':_0xf9f2d8[_0x186734(0x125)]['id']+_0xa8dbb4['idSuffix']})}):_0xf9f2d8;})}):_0x4c8ae5;}function Le(){var _0x438fc8=_0x99f71f;return Math[_0x438fc8(0x187)]()[_0x438fc8(0x12b)](0x24)['substring'](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0x99f71f(0x198),'attrs':{'xmlns':_0x99f71f(0x14c),'fill':'none','viewBox':_0x99f71f(0x1b8),'width':_0x99f71f(0x136),'height':'1em'},'children':[{'tag':_0x99f71f(0x127),'attrs':{'fill':_0x99f71f(0x169),'d':_0x99f71f(0x170)}},{'tag':'path','attrs':{'fill':_0x99f71f(0x169),'d':_0x99f71f(0x15c),'fillRule':_0x99f71f(0x1bb),'clipRule':_0x99f71f(0x1bb)}}]},B=_0xa501d4(function(_0x2fbbca,_0xc09ed4){var _0x5b5ef0=_0x99f71f;return _0x18c11d(W,Object['assign']({},_0x2fbbca,{'id':_0x5b5ef0(0x17b),'ref':_0xc09ed4,'icon':ye}));});B[_0x99f71f(0x147)]=_0x99f71f(0x139);var Re=Object[_0x99f71f(0x168)],Z=(_0x3d4e0a,_0x3d9887,_0x1e91fa,_0x32cd96)=>{for(var _0xebd68b=_0x32cd96>0x1?void 0x0:_0x32cd96?Re(_0x3d9887,_0x1e91fa):_0x3d9887,_0x54d353=_0x3d4e0a['length']-0x1,_0x27b434;_0x54d353>=0x0;_0x54d353--)(_0x27b434=_0x3d4e0a[_0x54d353])&&(_0xebd68b=_0x27b434(_0xebd68b)||_0xebd68b);return _0xebd68b;},f=(_0x38cb60,_0x39aab6)=>(_0x38ec6e,_0xc80cf1)=>_0x39aab6(_0x38ec6e,_0xc80cf1,_0x38cb60);let I=class extends _0x428bc{constructor(_0x274ef2,_0x1eeaaf,_0x18a826){var _0x500fc8=_0x99f71f;super(),d(this,_0x500fc8(0x19e),new Map()),(this[_0x500fc8(0x1a8)]=_0x274ef2,this[_0x500fc8(0x178)]=_0x1eeaaf,this[_0x500fc8(0x177)]=_0x18a826,this[_0x500fc8(0x163)]());}async[_0x99f71f(0x13a)](_0x41236e){var _0x37730c=_0x99f71f;return this[_0x37730c(0x19e)][_0x37730c(0x145)](_0x41236e)||await this['_startLiveShareCoordinator'](_0x41236e),this['_entities'][_0x37730c(0x1d5)](_0x41236e);}[_0x99f71f(0x163)](){var _0x10c990=_0x99f71f;this[_0x10c990(0x1a8)][_0x10c990(0x134)](_0x5a9822[_0x10c990(0x1c3)])['pipe'](_0xd2f81d(this['dispose$']))[_0x10c990(0x1ab)](async _0x7bf1f6=>{var _0x57b45b=_0x10c990;const _0x814651=_0x7bf1f6[_0x57b45b(0x140)]();this[_0x57b45b(0x19e)][_0x57b45b(0x145)](_0x814651)||this[_0x57b45b(0x130)](_0x814651);}),this[_0x10c990(0x1a8)][_0x10c990(0x1ba)](_0x5a9822[_0x10c990(0x1c3)])['pipe'](_0xd2f81d(this[_0x10c990(0x193)]))[_0x10c990(0x1ab)](_0xd297a2=>{var _0x722e1e=_0x10c990;const _0x4b0b50=_0xd297a2[_0x722e1e(0x140)](),_0x55ff24=this['_entities'][_0x722e1e(0x1d5)](_0x4b0b50);_0x55ff24==null||_0x55ff24[_0x722e1e(0x1b6)]();});}async[_0x99f71f(0x130)](_0x50cda1){var _0x47c05e=_0x99f71f;const _0x4aea5d=await this[_0x47c05e(0x177)][_0x47c05e(0x19b)](_0x50cda1),_0x1d8f73=this[_0x47c05e(0x178)][_0x47c05e(0x144)](C,_0x50cda1,_0x4aea5d);return _0x1d8f73[_0x47c05e(0x196)](),this[_0x47c05e(0x19e)][_0x47c05e(0x146)](_0x50cda1,_0x1d8f73),_0x1d8f73;}};I=Z([f(0x0,_0x3436e1),f(0x1,_0x5bf50d(_0x473fc7)),f(0x2,_0x5bf50d(_0x4212d6))],I);var h=(_0x22fe56=>(_0x22fe56[_0x99f71f(0x1c5)]=_0x99f71f(0x173),_0x22fe56['IDLE']=_0x99f71f(0x175),_0x22fe56[_0x99f71f(0x126)]=_0x99f71f(0x164),_0x22fe56['NOT_FOLLOWING']=_0x99f71f(0x18f),_0x22fe56[_0x99f71f(0x189)]='presenting',_0x22fe56))(h||{});const Pe=_0x99f71f(0x1d0),Ae=0xc8;let C=class extends _0x428bc{constructor(_0x99dbc3,_0x4d0c1d,_0x5d78b8,_0x8a207c,_0x851562){var _0x43779a=_0x99f71f;super(),d(this,_0x43779a(0x17d),new _0x57c6d5(_0x43779a(0x175))),d(this,_0x43779a(0x1a9),this[_0x43779a(0x17d)][_0x43779a(0x137)]()),d(this,_0x43779a(0x163),!0x1),d(this,_0x43779a(0x1b5),null),d(this,'_presenter',null),(this[_0x43779a(0x194)]=_0x99dbc3,this['_collabSession']=_0x4d0c1d,this[_0x43779a(0x1b4)]=_0x5d78b8,this[_0x43779a(0x142)]=_0x8a207c,this['_commandService']=_0x851562);}get[_0x99f71f(0x18b)](){var _0x2bd98a=_0x99f71f;return this[_0x2bd98a(0x17d)][_0x2bd98a(0x16a)]();}[_0x99f71f(0x1b6)](){var _0x4c22df=_0x99f71f,_0x4445dc;(_0x4445dc=this[_0x4c22df(0x1b5)])==null||_0x4445dc['dispose'](),this[_0x4c22df(0x17d)][_0x4c22df(0x13e)](_0x4c22df(0x175)),this['_status$']['complete']();}[_0x99f71f(0x196)](){var _0x4d49dd=_0x99f71f;this[_0x4d49dd(0x163)]||(this[_0x4d49dd(0x163)]=!0x0,this[_0x4d49dd(0x13b)]['sessionStatus$']['pipe'](_0xd2f81d(this['dispose$']))['subscribe'](_0x1bc3f3=>{var _0x4aaa33=_0x4d49dd;switch(_0x1bc3f3){case _0x4b2aa1['OFFLINE']:this[_0x4aaa33(0x1be)]();break;case _0x4b2aa1[_0x4aaa33(0x1d3)]:this['_handleOnline']();break;}}),this[_0x4d49dd(0x13b)][_0x4d49dd(0x15e)][_0x4d49dd(0x1ac)](_0xd2f81d(this[_0x4d49dd(0x193)]))[_0x4d49dd(0x1ab)](_0x1ed34c=>{var _0x3c2159=_0x4d49dd;const {eventID:_0x1d4f29}=_0x1ed34c;switch(_0x1d4f29){case _0x3a2075[_0x3c2159(0x12a)]:this[_0x3c2159(0x16b)](_0x1ed34c);break;case _0x3a2075['LIVESHARE_OPERATION']:this['_handleOperation'](_0x1ed34c);break;case _0x3a2075['LIVESHARE_TERMINATE']:this[_0x3c2159(0x18c)]();break;case _0x3a2075[_0x3c2159(0x195)]:this[_0x3c2159(0x1ca)](_0x1ed34c);break;}}));}[_0x99f71f(0x1d8)](){var _0x5d8aca=_0x99f71f;this[_0x5d8aca(0x13b)][_0x5d8aca(0x14b)]({'eventID':_0x3a2075[_0x5d8aca(0x156)],'data':{'unitID':this['_unitID'],'userID':this[_0x5d8aca(0x13b)]['getMemberID']()}},this['_unitID']);}[_0x99f71f(0x188)](){var _0x128d60=_0x99f71f;this[_0x128d60(0x18b)]==='presenting'&&(this[_0x128d60(0x17d)][_0x128d60(0x13e)](_0x128d60(0x175)),this[_0x128d60(0x13b)]['send']({'eventID':_0x3a2075[_0x128d60(0x18d)],'data':{'unitID':this[_0x128d60(0x194)]}},this[_0x128d60(0x194)]));}[_0x99f71f(0x19c)](){var _0x5e7dfa=_0x99f71f;this[_0x5e7dfa(0x18b)]==='not-following'&&(this[_0x5e7dfa(0x17d)][_0x5e7dfa(0x13e)](_0x5e7dfa(0x164)),this[_0x5e7dfa(0x141)]());}['stopFollowing'](){var _0x164376=_0x99f71f;this[_0x164376(0x18b)]===_0x164376(0x164)&&this['_stopFollowing']();}[_0x99f71f(0x16b)](_0x58e331){var _0x4704a5=_0x99f71f;const {presenter:_0x7c9219}=_0x58e331[_0x4704a5(0x128)],_0x4f7e26=this[_0x4704a5(0x13b)][_0x4704a5(0x149)]();this['_presenter']=_0x7c9219,_0x7c9219===_0x4f7e26?(this[_0x4704a5(0x1a2)](),this[_0x4704a5(0x148)]()):this[_0x4704a5(0x18b)]!==_0x4704a5(0x18f)&&(this[_0x4704a5(0x17c)](),this[_0x4704a5(0x141)]());}[_0x99f71f(0x1d4)](){var _0x40c0b3=_0x99f71f;const _0x1f520c={'eventID':_0x3a2075[_0x40c0b3(0x1ce)]};this[_0x40c0b3(0x13b)][_0x40c0b3(0x14b)](_0x1f520c,this[_0x40c0b3(0x194)]);}[_0x99f71f(0x18c)](){var _0x592352=_0x99f71f;this['_presenter']=null,this[_0x592352(0x18b)]!==_0x592352(0x191)&&this[_0x592352(0x13f)]();}[_0x99f71f(0x1ca)](_0x6ee1bb){var _0x279720=_0x99f71f;if(this[_0x279720(0x18b)]===_0x279720(0x164)&&this[_0x279720(0x180)]===_0x6ee1bb[_0x279720(0x128)][_0x279720(0x171)]){const _0x567dc3=_0x5e4189(_0x6ee1bb['data'])[_0x279720(0x151)][_0x279720(0x190)]()[_0x279720(0x172)](_0xfabef3=>_0xfabef3['id']===_0x3bed17['id']);if(_0x567dc3){const _0x317ea4=_0x567dc3[_0x279720(0x1af)][_0x279720(0x183)],_0x77e3a5=_0x567dc3[_0x279720(0x1af)]['sheet']['id'];setTimeout(()=>{var _0x203c23=_0x279720;this[_0x203c23(0x162)]['executeCommand'](_0x311bff['id'],{'unitId':_0x317ea4,'subUnitId':_0x77e3a5},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x118db8=_0x99f71f;this[_0x118db8(0x17d)][_0x118db8(0x13e)](_0x118db8(0x191));const _0x2ea694=new Map(),_0x1513e2=this[_0x118db8(0x1b5)]=new _0x59c941();_0x1513e2[_0x118db8(0x15d)](_0x3e8155(()=>{var _0x190bd4=_0x118db8;_0x2ea694[_0x190bd4(0x1c1)](_0x134708=>_0x134708['complete']()),_0x2ea694[_0x190bd4(0x16c)]();})),_0x1513e2[_0x118db8(0x15d)](this['_commandService'][_0x118db8(0x199)](_0x1ad783=>{var _0x3598e7=_0x118db8,_0x46b851;if(_0x1ad783['type']!==_0x51ef63[_0x3598e7(0x1d2)]||!this[_0x3598e7(0x142)][_0x3598e7(0x143)](_0x1ad783['id']))return;const {id:_0x4b426b}=_0x1ad783;let _0x13c581;_0x2ea694[_0x3598e7(0x145)](_0x4b426b)?_0x13c581=_0x2ea694[_0x3598e7(0x1d5)](_0x4b426b):(_0x13c581=new _0x4d9bd9(),_0x2ea694['set'](_0x4b426b,_0x13c581),_0x13c581[_0x3598e7(0x1ac)](_0x27a38f((_0x46b851=this[_0x3598e7(0x1b4)][_0x3598e7(0x19f)](Pe))!=null?_0x46b851:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3598e7(0x1ab)](_0x22b627=>{var _0x8c67ff=_0x3598e7;this[_0x8c67ff(0x13b)]['send']({'eventID':_0x3a2075[_0x8c67ff(0x1c4)],'data':{'unitID':this[_0x8c67ff(0x194)],'operations':{[_0x22b627['id']]:{'id':_0x22b627['id'],'params':JSON[_0x8c67ff(0x129)](_0x22b627['params'])}}}},this[_0x8c67ff(0x194)]);})),_0x13c581[_0x3598e7(0x13e)](_0x1ad783);})),this['_liveShareService'][_0x118db8(0x1aa)](this['_unitID'])[_0x118db8(0x1c1)](_0x162667=>this[_0x118db8(0x13b)][_0x118db8(0x14b)]({'eventID':_0x3a2075['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x118db8(0x194)],'operations':{[_0x162667['id']]:{'id':_0x162667['id'],'params':JSON[_0x118db8(0x129)](_0x162667[_0x118db8(0x1af)])}}}},this[_0x118db8(0x194)]));}['_stopPresenting'](){var _0x37255f=_0x99f71f,_0x143a38;this[_0x37255f(0x17d)][_0x37255f(0x13e)](_0x37255f(0x175)),(_0x143a38=this[_0x37255f(0x1b5)])==null||_0x143a38[_0x37255f(0x1b6)](),this[_0x37255f(0x1b5)]=null;}[_0x99f71f(0x141)](){var _0x7ac91=_0x99f71f,_0x4f9220;(_0x4f9220=this[_0x7ac91(0x1b5)])==null||_0x4f9220[_0x7ac91(0x1b6)](),this[_0x7ac91(0x17d)][_0x7ac91(0x13e)]('following');}['_beIdle'](){var _0x5f159b=_0x99f71f,_0xe64ab7;this[_0x5f159b(0x17d)]['next']('idle'),(_0xe64ab7=this[_0x5f159b(0x1b5)])==null||_0xe64ab7['dispose'](),this['_commandDisposable']=null;}[_0x99f71f(0x1a2)](){var _0x52ff65=_0x99f71f,_0x2b70a1;this[_0x52ff65(0x17d)][_0x52ff65(0x13e)](_0x52ff65(0x18f)),(_0x2b70a1=this[_0x52ff65(0x1b5)])==null||_0x2b70a1[_0x52ff65(0x1b6)]();}[_0x99f71f(0x14d)](_0x5d4285){var _0x43164d=_0x99f71f;if(['presenting',_0x43164d(0x18f),'offline']['includes'](this[_0x43164d(0x18b)])||!_0x5d4285[_0x43164d(0x128)][_0x43164d(0x1b7)]||_0x5d4285[_0x43164d(0x128)][_0x43164d(0x1b7)]===this[_0x43164d(0x13b)][_0x43164d(0x149)]())return;this['_status']===_0x43164d(0x175)&&this['_startFollowing']();const _0x1f38e9=_0x5d4285[_0x43164d(0x128)][_0x43164d(0x179)];Object['values'](_0x1f38e9)[_0x43164d(0x1c1)](_0x671579=>{var _0x42f709=_0x43164d;this['_commandService'][_0x42f709(0x1bc)](_0x671579['id'],_0x671579[_0x42f709(0x1af)]?JSON[_0x42f709(0x16e)](_0x671579[_0x42f709(0x1af)]):null,{'fromCollab':!0x0});});}[_0x99f71f(0x1be)](){var _0x5d5d4f=_0x99f71f,_0x4f15f7;this['_status$'][_0x5d5d4f(0x13e)](_0x5d5d4f(0x173)),(_0x4f15f7=this[_0x5d5d4f(0x1b5)])==null||_0x4f15f7[_0x5d5d4f(0x1b6)]();}[_0x99f71f(0x159)](){var _0x132d1d=_0x99f71f;this[_0x132d1d(0x17d)]['next'](_0x132d1d(0x175)),this[_0x132d1d(0x1d4)]();}};C=Z([f(0x2,_0x3f2bf0),f(0x3,_0x5bf50d(L)),f(0x4,_0x320924)],C);function Te(){var _0x13ee24=_0x99f71f;const _0x4b5106=_0x4e95ea(I),_0x10a38b=_0x4e95ea(_0x3436e1),_0x56e939=_0x574a40(()=>_0x10a38b[_0x13ee24(0x122)](_0x5a9822[_0x13ee24(0x1c3)]),void 0x0,!0x1,[]),[_0x368e3a,_0x576e10]=_0x137d2a(null),[_0x9f95c6,_0x1994a3]=_0x137d2a(h[_0x13ee24(0x15a)]),_0x242c83=_0xf0d4a5(null);return _0x572451(()=>(_0x56e939&&_0x4b5106['getLiveShareCoordinator'](_0x56e939[_0x13ee24(0x140)]())[_0x13ee24(0x1ae)](_0x5702ba=>{var _0x33538e=_0x13ee24;_0x576e10(_0x5702ba),_0x242c83[_0x33538e(0x1d1)]=_0x5702ba[_0x33538e(0x1a9)][_0x33538e(0x1ab)](_0x9b0a2=>{_0x1994a3(_0x9b0a2);});}),()=>{var _0x31af95=_0x13ee24,_0x4d52a1;(_0x4d52a1=_0x242c83[_0x31af95(0x1d1)])==null||_0x4d52a1[_0x31af95(0x1cc)](),_0x242c83['current']=null;}),[_0x56e939,_0x4b5106]),_0x368e3a?_0x2a3f55(_0x548f32,{'align':_0x13ee24(0x1b9),'disabled':_0x9f95c6===h[_0x13ee24(0x1c5)],'className':_0x13ee24(0x12f),'overlay':_0x2a3f55($e,{'status':_0x9f95c6,'coordinator':_0x368e3a}),'children':_0x2a3f55('button',{'className':_0x449eb0(_0x13ee24(0x155),{'univer-cursor-not-allowed':_0x9f95c6===h[_0x13ee24(0x1c5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x9f95c6!==h[_0x13ee24(0x1c5)]}),'type':_0x13ee24(0x1a5),'children':_0x2a3f55(B,{'className':'univer-size-4'})})}):null;}function $e(_0x49f78c){var _0x3dc0f9=_0x99f71f;const {status:_0x549e2e,coordinator:_0x1ab40a}=_0x49f78c;switch(_0x549e2e){case h[_0x3dc0f9(0x15a)]:return _0x2a3f55(Fe,{'coordinator':_0x1ab40a});case h['FOLLOWING']:return _0x2a3f55(He,{'coordinator':_0x1ab40a});case h[_0x3dc0f9(0x1bf)]:return _0x2a3f55(je,{'coordinator':_0x1ab40a});case h[_0x3dc0f9(0x1c5)]:return _0x2a3f55(Ve,{});case h[_0x3dc0f9(0x189)]:return _0x2a3f55(Ue,{'coordinator':_0x1ab40a});default:return null;}}function Fe(_0x2ed9f3){var _0x384693=_0x99f71f;const {coordinator:_0x2f4e76}=_0x2ed9f3;return _0x590551(_0x8dd5dc,{'children':[_0x2a3f55(_0x384693(0x123),{'className':_0x384693(0x15b),'children':_0x384693(0x138)}),_0x2a3f55(_0x310295,{'onClick':()=>_0x2f4e76[_0x384693(0x1d8)](),'children':_0x384693(0x197)})]});}function He(_0x27945f){var _0x37e301=_0x99f71f;const {coordinator:_0x4ec7d3}=_0x27945f;return _0x590551(_0x8dd5dc,{'children':[_0x2a3f55(_0x37e301(0x123),{'className':_0x37e301(0x15b),'children':_0x37e301(0x13c)}),_0x2a3f55(_0x310295,{'onClick':()=>_0x4ec7d3[_0x37e301(0x158)](),'children':_0x37e301(0x1c2)})]});}function je(_0x4c3abf){var _0x10124c=_0x99f71f;const {coordinator:_0x17ce5d}=_0x4c3abf;return _0x590551(_0x8dd5dc,{'children':[_0x2a3f55(_0x10124c(0x123),{'className':_0x10124c(0x15b),'children':_0x10124c(0x154)}),_0x2a3f55(_0x310295,{'variant':_0x10124c(0x14a),'onClick':()=>_0x17ce5d[_0x10124c(0x19c)](),'children':_0x10124c(0x16f)})]});}function Ue(_0x268a30){var _0x54c859=_0x99f71f;const {coordinator:_0x34aba3}=_0x268a30;return _0x590551(_0x8dd5dc,{'children':[_0x2a3f55(_0x54c859(0x123),{'className':_0x54c859(0x15b),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x2a3f55(_0x310295,{'variant':_0x54c859(0x1a0),'onClick':()=>_0x34aba3[_0x54c859(0x188)](),'children':_0x54c859(0x132)})]});}function Ve(){var _0x3be389=_0x99f71f;return _0x2a3f55(_0x8dd5dc,{'children':_0x3be389(0x1cb)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x48d924,_0x399bb8,_0x314bfd,_0x2105a7)=>{for(var _0x3840fa=_0x2105a7>0x1?void 0x0:_0x2105a7?Me(_0x399bb8,_0x314bfd):_0x399bb8,_0x5efbbe=_0x48d924['length']-0x1,_0x438219;_0x5efbbe>=0x0;_0x5efbbe--)(_0x438219=_0x48d924[_0x5efbbe])&&(_0x3840fa=_0x438219(_0x3840fa)||_0x3840fa);return _0x3840fa;},$=(_0x45c252,_0x307f9b)=>(_0x4b9ff1,_0x306e6a)=>_0x307f9b(_0x4b9ff1,_0x306e6a,_0x45c252);let b=class extends _0x59f156{constructor(_0x26d55f,_0x4c270c){var _0x550b07=_0x99f71f;super(),this[_0x550b07(0x178)]=_0x26d55f,this[_0x550b07(0x19a)]=_0x4c270c,this[_0x550b07(0x17a)]();}['_mountLiveShare'](){var _0x5ddb1e=_0x99f71f;this[_0x5ddb1e(0x186)](this[_0x5ddb1e(0x19a)][_0x5ddb1e(0x121)](_0xa95625[_0x5ddb1e(0x160)],()=>_0x11d29b(Te,this[_0x5ddb1e(0x178)])));}};b=ke([$(0x0,_0x5bf50d(_0x473fc7)),$(0x1,_0x359339)],b);var Ge=Object['defineProperty'],We=Object['getOwnPropertyDescriptor'],Ye=(_0x1bce5a,_0xbcbf3,_0x185b0d)=>_0xbcbf3 in _0x1bce5a?Ge(_0x1bce5a,_0xbcbf3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x185b0d}):_0x1bce5a[_0xbcbf3]=_0x185b0d,Be=(_0x9a1753,_0x118464,_0x38683e,_0x2a9f63)=>{var _0x31da93=_0x99f71f;for(var _0x4cacaf=_0x2a9f63>0x1?void 0x0:_0x2a9f63?We(_0x118464,_0x38683e):_0x118464,_0x2c44cf=_0x9a1753[_0x31da93(0x1d6)]-0x1,_0x2b0802;_0x2c44cf>=0x0;_0x2c44cf--)(_0x2b0802=_0x9a1753[_0x2c44cf])&&(_0x4cacaf=_0x2b0802(_0x4cacaf)||_0x4cacaf);return _0x4cacaf;},F=(_0x1fe0dd,_0x32e7c7)=>(_0x58e9cc,_0x52e7d0)=>_0x32e7c7(_0x58e9cc,_0x52e7d0,_0x1fe0dd),J=(_0x521c6d,_0x11d7bf,_0x5b46d9)=>Ye(_0x521c6d,typeof _0x11d7bf!='symbol'?_0x11d7bf+'':_0x11d7bf,_0x5b46d9);const Ze=_0x99f71f(0x17f);let O=class extends _0x176cff{constructor(_0x526c39=T,_0x102c8e,_0x3c6765){var _0x4adc01=_0x99f71f;super(),this['_config']=_0x526c39,this[_0x4adc01(0x178)]=_0x102c8e,this[_0x4adc01(0x1b4)]=_0x3c6765;const {..._0x11d4e3}=_0xae2b6b({},T,this['_config']);this['_configService'][_0x4adc01(0x153)](Oe,_0x11d4e3);}[_0x99f71f(0x1a4)](){var _0x366f57=_0x99f71f;_0x3ac27d(this['_injector'],_0x250a49([[L],[I],[m],[b]],this['_config'][_0x366f57(0x16d)])),_0x25eed6(this['_injector'],[[m]]);}[_0x99f71f(0x1ad)](){var _0x244d38=_0x99f71f;_0x25eed6(this[_0x244d38(0x178)],[[b]]);}};J(O,_0x99f71f(0x166),_0x5a9822['UNIVER_UNKNOWN']),J(O,_0x99f71f(0x1cf),Ze),O=Be([_0x34567d(_0x4a8a68),F(0x1,_0x5bf50d(_0x473fc7)),F(0x2,_0x3f2bf0)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x21acba=_0x24fa;(function(_0x578e56,_0x2e56d8){var _0x342182=_0x24fa,_0x74f752=_0x578e56();while(!![]){try{var _0x39ca79=-parseInt(_0x342182(0x130))/0x1*(-parseInt(_0x342182(0xf5))/0x2)+parseInt(_0x342182(0xbe))/0x3+parseInt(_0x342182(0x126))/0x4*(parseInt(_0x342182(0x156))/0x5)+-parseInt(_0x342182(0xcc))/0x6*(parseInt(_0x342182(0xf9))/0x7)+parseInt(_0x342182(0xde))/0x8*(parseInt(_0x342182(0x13b))/0x9)+-parseInt(_0x342182(0x131))/0xa+-parseInt(_0x342182(0x12e))/0xb;if(_0x39ca79===_0x2e56d8)break;else _0x74f752['push'](_0x74f752['shift']());}catch(_0x5aab02){_0x74f752['push'](_0x74f752['shift']());}}}(_0x56c5,0x6aaa7));var q=Object['defineProperty'],z=(_0x3eca6b,_0x2640c9,_0x3696f1)=>_0x2640c9 in _0x3eca6b?q(_0x3eca6b,_0x2640c9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3696f1}):_0x3eca6b[_0x2640c9]=_0x3696f1,d=(_0x1e8983,_0x347574,_0x41f41f)=>z(_0x1e8983,typeof _0x347574!=_0x21acba(0xbd)?_0x347574+'':_0x347574,_0x41f41f);import{CollaborationSessionService as _0x418e8c,SessionStatus as _0x4c8836,UniverCollaborationClientPlugin as _0x2380c4}from'@univerjs-pro/collaboration-client';import{Disposable as _0x49ef90,toDisposable as _0x52738f,Inject as _0x45e3a0,IUniverInstanceService as _0x3bd673,Injector as _0x3944a4,IConfigService as _0x56c18f,ICommandService as _0x40b986,RxDisposable as _0x42375c,UniverInstanceType as _0x2636cb,DisposableCollection as _0x240d80,CommandType as _0x2b26cd,DependentOn as _0x49227d,Plugin as _0xec22e2,merge as _0x47242e,registerDependencies as _0x26645d,mergeOverrideWithDependencies as _0x508f67,touchDependencies as _0x34849a}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x394a08,InsertSheetMutation as _0x587516}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x406fa2,SetScrollOperation as _0x3b0e8e}from'@univerjs/sheets-ui';import{useDependency as _0x192779,useObservable as _0x17612b,IUIPartsService as _0x257d82,BuiltInUIPart as _0x5a30be,connectInjector as _0x3350ba}from'@univerjs/ui';import{jsx as _0xc206b,jsxs as _0x10d624,Fragment as _0x58a9cf}from'react/jsx-runtime';import{Dropdown as _0x5b29ed,clsx as _0x1dfccb,Button as _0xff20a5}from'@univerjs/design';import{forwardRef as _0x58e026,useRef as _0x15fff5,createElement as _0x1ce21c,useState as _0x153009,useEffect as _0x1fea22}from'react';import{CollaborationEvent as _0x2a9a59,parseProtocolChangeset as _0x555882}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x5c8398,Subject as _0x4b30d1}from'rxjs';import{takeUntil as _0x370249,throttleTime as _0xcd833b}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x49ef90{constructor(){var _0x418b81=_0x21acba;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x418b81(0x15e),new Set());}['registerSharedOperation'](_0x56eb73){var _0x2e68e0=_0x21acba;return this[_0x2e68e0(0xf6)][_0x2e68e0(0x121)](_0x56eb73),_0x52738f(()=>this[_0x2e68e0(0xf6)]['delete'](_0x56eb73));}[_0x21acba(0xcb)](_0x23d462){var _0x1db8c8=_0x21acba;return this['_reporters']['add'](_0x23d462),_0x52738f(()=>this[_0x1db8c8(0x15e)][_0x1db8c8(0xd4)](_0x23d462));}['shouldShareOperation'](_0x367cbb){var _0x552963=_0x21acba;return this[_0x552963(0xf6)][_0x552963(0x101)](_0x367cbb);}['getInitialStates'](_0x5d1a27){var _0x307f14=_0x21acba;return Array[_0x307f14(0x106)](this[_0x307f14(0x15e)])[_0x307f14(0x11b)](_0xe104bc=>_0xe104bc(_0x5d1a27));}}var Ee=Object[_0x21acba(0x111)],we=(_0x4eeed7,_0x49d6d4,_0x21d7f5,_0x2d8035)=>{var _0x142041=_0x21acba;for(var _0x917484=_0x2d8035>0x1?void 0x0:_0x2d8035?Ee(_0x49d6d4,_0x21d7f5):_0x49d6d4,_0x30a42a=_0x4eeed7[_0x142041(0x13e)]-0x1,_0x3c9ddc;_0x30a42a>=0x0;_0x30a42a--)(_0x3c9ddc=_0x4eeed7[_0x30a42a])&&(_0x917484=_0x3c9ddc(_0x917484)||_0x917484);return _0x917484;},Ne=(_0x380c88,_0x1e8e0c)=>(_0x113b80,_0x457b83)=>_0x1e8e0c(_0x113b80,_0x457b83,_0x380c88);let m=class extends _0x49ef90{constructor(_0x3eddf2){var _0xfdd21d=_0x21acba;super(),this[_0xfdd21d(0x128)]=_0x3eddf2,this[_0xfdd21d(0x14b)]();}[_0x21acba(0x14b)](){var _0x46ac6e=_0x21acba;[_0x406fa2['id'],_0x3b0e8e['id'],_0x394a08['id']][_0x46ac6e(0xec)](_0x52dc6c=>{var _0x5d9a7a=_0x46ac6e;this[_0x5d9a7a(0xd3)](this[_0x5d9a7a(0x128)][_0x5d9a7a(0x12d)](_0x52dc6c));});}};m=we([Ne(0x0,_0x45e3a0(L))],m);var c=function(){var _0xc60124=_0x21acba;return c=Object[_0xc60124(0x12f)]||function(_0x4df1fb){var _0x352269=_0xc60124;for(var _0x437f98,_0x3129c4=0x1,_0x1133f8=arguments['length'];_0x3129c4<_0x1133f8;_0x3129c4++){_0x437f98=arguments[_0x3129c4];for(var _0xb08396 in _0x437f98)Object[_0x352269(0xb1)][_0x352269(0x138)][_0x352269(0xe0)](_0x437f98,_0xb08396)&&(_0x4df1fb[_0xb08396]=_0x437f98[_0xb08396]);}return _0x4df1fb;},c[_0xc60124(0xc5)](this,arguments);},Ce=function(_0x24bffb,_0x4890b5){var _0x30244d=_0x21acba,_0x31aa66={};for(var _0xb3dd66 in _0x24bffb)Object['prototype'][_0x30244d(0x138)][_0x30244d(0xe0)](_0x24bffb,_0xb3dd66)&&_0x4890b5[_0x30244d(0x109)](_0xb3dd66)<0x0&&(_0x31aa66[_0xb3dd66]=_0x24bffb[_0xb3dd66]);if(_0x24bffb!=null&&typeof Object[_0x30244d(0xb5)]==_0x30244d(0x123)){for(var _0x354035=0x0,_0xb3dd66=Object[_0x30244d(0xb5)](_0x24bffb);_0x354035<_0xb3dd66['length'];_0x354035++)_0x4890b5['indexOf'](_0xb3dd66[_0x354035])<0x0&&Object[_0x30244d(0xb1)][_0x30244d(0xe4)][_0x30244d(0xe0)](_0x24bffb,_0xb3dd66[_0x354035])&&(_0x31aa66[_0xb3dd66[_0x354035]]=_0x24bffb[_0xb3dd66[_0x354035]]);}return _0x31aa66;},W=_0x58e026(function(_0x4e811,_0xaf7f92){var _0x2913de=_0x21acba,_0x5d36aa=_0x4e811[_0x2913de(0x134)],_0x5c9086=_0x4e811['id'],_0x256015=_0x4e811[_0x2913de(0x124)],_0x189783=_0x4e811[_0x2913de(0x117)],_0x1b5e7e=Ce(_0x4e811,[_0x2913de(0x134),'id',_0x2913de(0x124),'extend']),_0x55a6b5=_0x2913de(0xe8)[_0x2913de(0x15b)](_0x5c9086,'\x20')[_0x2913de(0x15b)](_0x256015||'')[_0x2913de(0x10e)](),_0xf89af3=_0x15fff5('_'[_0x2913de(0x15b)](Le()));return Y(_0x5d36aa,''[_0x2913de(0x15b)](_0x5c9086),{'defIds':_0x5d36aa['defIds'],'idSuffix':_0xf89af3[_0x2913de(0x120)]},c({'ref':_0xaf7f92,'className':_0x55a6b5},_0x1b5e7e),_0x189783);});function Y(_0x5725b1,_0x4c07f8,_0x587561,_0x11f703,_0x46f580){var _0x5466b7=_0x21acba;return _0x1ce21c(_0x5725b1[_0x5466b7(0x104)],c(c({'key':_0x4c07f8},De(_0x5725b1,_0x587561,_0x46f580)),_0x11f703),(xe(_0x5725b1,_0x587561)['children']||[])[_0x5466b7(0x11b)](function(_0x236cea,_0x2296d4){var _0x4de01a=_0x5466b7;return Y(_0x236cea,''['concat'](_0x4c07f8,'-')[_0x4de01a(0x15b)](_0x5725b1[_0x4de01a(0x104)],'-')[_0x4de01a(0x15b)](_0x2296d4),_0x587561,void 0x0,_0x46f580);}));}function De(_0x20645a,_0xaef010,_0x74fda){var _0x326e1b=_0x21acba,_0xca9673=c({},_0x20645a[_0x326e1b(0xed)]);_0x74fda!=null&&_0x74fda['colorChannel1']&&_0xca9673['fill']===_0x326e1b(0xb2)&&(_0xca9673[_0x326e1b(0xca)]=_0x74fda[_0x326e1b(0xb2)]),_0x20645a[_0x326e1b(0x104)]===_0x326e1b(0xd5)&&_0xca9673['id']&&(_0xca9673['id']=_0xca9673['id']+_0xaef010[_0x326e1b(0xe5)]),Object[_0x326e1b(0xee)](_0xca9673)[_0x326e1b(0xec)](function(_0x8b58be){var _0xde5e3b=_0x326e1b,_0xc553fc=_0x8b58be[0x0],_0x2b8dd3=_0x8b58be[0x1];_0xc553fc==='mask'&&typeof _0x2b8dd3=='string'&&(_0xca9673[_0xc553fc]=_0x2b8dd3['replace'](/url\(#(.*)\)/,'url(#$1'[_0xde5e3b(0x15b)](_0xaef010[_0xde5e3b(0xe5)],')')));});var _0x8aa200=_0xaef010['defIds'];return!_0x8aa200||_0x8aa200[_0x326e1b(0x13e)]===0x0||(_0x20645a[_0x326e1b(0x104)]===_0x326e1b(0xf4)&&_0xca9673[_0x326e1b(0xd7)]&&(_0xca9673['xlink:href']=_0xca9673['xlink:href']+_0xaef010[_0x326e1b(0xe5)]),Object[_0x326e1b(0xee)](_0xca9673)[_0x326e1b(0xec)](function(_0x3ee18f){var _0x2fe06b=_0x326e1b,_0x5d7b96=_0x3ee18f[0x0],_0x57cc7f=_0x3ee18f[0x1];typeof _0x57cc7f==_0x2fe06b(0xc0)&&(_0xca9673[_0x5d7b96]=_0x57cc7f[_0x2fe06b(0xc2)](/url\(#(.*)\)/,'url(#$1'['concat'](_0xaef010[_0x2fe06b(0xe5)],')')));})),_0xca9673;}function xe(_0x5ce56c,_0x2a5030){var _0x202836=_0x21acba,_0x206975,_0x36f756=_0x2a5030[_0x202836(0xe2)];return!_0x36f756||_0x36f756[_0x202836(0x13e)]===0x0?_0x5ce56c:_0x5ce56c['tag']===_0x202836(0x122)&&(!((_0x206975=_0x5ce56c[_0x202836(0xd6)])===null||_0x206975===void 0x0)&&_0x206975[_0x202836(0x13e)])?c(c({},_0x5ce56c),{'children':_0x5ce56c[_0x202836(0xd6)][_0x202836(0x11b)](function(_0x42470e){var _0x513362=_0x202836;return typeof _0x42470e[_0x513362(0xed)]['id']==_0x513362(0xc0)&&_0x36f756&&_0x36f756['includes'](_0x42470e[_0x513362(0xed)]['id'])?c(c({},_0x42470e),{'attrs':c(c({},_0x42470e['attrs']),{'id':_0x42470e[_0x513362(0xed)]['id']+_0x2a5030[_0x513362(0xe5)]})}):_0x42470e;})}):_0x5ce56c;}function Le(){var _0x365759=_0x21acba;return Math[_0x365759(0xd9)]()[_0x365759(0x12c)](0x24)[_0x365759(0xae)](0x2,0x8);}W['displayName']=_0x21acba(0xdb);var ye={'tag':_0x21acba(0xcf),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x21acba(0x15a),'viewBox':_0x21acba(0x135),'width':'1em','height':_0x21acba(0xfd)},'children':[{'tag':_0x21acba(0xb6),'attrs':{'fill':_0x21acba(0x140),'d':_0x21acba(0x144)}},{'tag':_0x21acba(0xb6),'attrs':{'fill':'currentColor','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':_0x21acba(0x10a),'clipRule':_0x21acba(0x10a)}}]},B=_0x58e026(function(_0x386693,_0x5a0fe5){var _0x282107=_0x21acba;return _0x1ce21c(W,Object['assign']({},_0x386693,{'id':_0x282107(0xac),'ref':_0x5a0fe5,'icon':ye}));});B[_0x21acba(0xf3)]=_0x21acba(0xf1);var Re=Object[_0x21acba(0x111)],Z=(_0x3f4a7f,_0x54afd3,_0x34f612,_0x45a95a)=>{for(var _0x2a935e=_0x45a95a>0x1?void 0x0:_0x45a95a?Re(_0x54afd3,_0x34f612):_0x54afd3,_0x50c49b=_0x3f4a7f['length']-0x1,_0x298675;_0x50c49b>=0x0;_0x50c49b--)(_0x298675=_0x3f4a7f[_0x50c49b])&&(_0x2a935e=_0x298675(_0x2a935e)||_0x2a935e);return _0x2a935e;},f=(_0x2e2ac9,_0x3bc973)=>(_0x47eae1,_0x2dedc3)=>_0x3bc973(_0x47eae1,_0x2dedc3,_0x2e2ac9);let I=class extends _0x42375c{constructor(_0x42c7b1,_0x257f66,_0x12c234){var _0x572291=_0x21acba;super(),d(this,'_entities',new Map()),(this[_0x572291(0xfa)]=_0x42c7b1,this[_0x572291(0x142)]=_0x257f66,this[_0x572291(0x11e)]=_0x12c234,this[_0x572291(0x14b)]());}async[_0x21acba(0x151)](_0x5564f1){var _0x565b63=_0x21acba;return this[_0x565b63(0xeb)]['has'](_0x5564f1)||await this[_0x565b63(0x114)](_0x5564f1),this[_0x565b63(0xeb)]['get'](_0x5564f1);}['_init'](){var _0x593a29=_0x21acba;this[_0x593a29(0xfa)][_0x593a29(0x100)](_0x2636cb[_0x593a29(0x11d)])[_0x593a29(0xb4)](_0x370249(this[_0x593a29(0xad)]))['subscribe'](async _0x3f3127=>{var _0x3720ff=_0x593a29;const _0x4992e9=_0x3f3127['getUnitId']();this['_entities'][_0x3720ff(0x101)](_0x4992e9)||this[_0x3720ff(0x114)](_0x4992e9);}),this[_0x593a29(0xfa)]['getTypeOfUnitDisposed$'](_0x2636cb[_0x593a29(0x11d)])[_0x593a29(0xb4)](_0x370249(this['dispose$']))[_0x593a29(0x141)](_0x315b46=>{var _0x23da2b=_0x593a29;const _0x5aa029=_0x315b46[_0x23da2b(0x143)](),_0x168efb=this[_0x23da2b(0xeb)][_0x23da2b(0x158)](_0x5aa029);_0x168efb==null||_0x168efb[_0x23da2b(0x112)]();});}async[_0x21acba(0x114)](_0x51c9c8){var _0x83fc28=_0x21acba;const _0x361280=await this[_0x83fc28(0x11e)][_0x83fc28(0xbf)](_0x51c9c8),_0x5310cb=this['_injector']['createInstance'](C,_0x51c9c8,_0x361280);return _0x5310cb[_0x83fc28(0xaf)](),this[_0x83fc28(0xeb)][_0x83fc28(0xc9)](_0x51c9c8,_0x5310cb),_0x5310cb;}};I=Z([f(0x0,_0x3bd673),f(0x1,_0x45e3a0(_0x3944a4)),f(0x2,_0x45e3a0(_0x418e8c))],I);var h=(_0x2b3c22=>(_0x2b3c22['OFFLINE']=_0x21acba(0x107),_0x2b3c22[_0x21acba(0xb9)]=_0x21acba(0x14c),_0x2b3c22[_0x21acba(0xc8)]='following',_0x2b3c22['NOT_FOLLOWING']=_0x21acba(0x110),_0x2b3c22[_0x21acba(0x147)]='presenting',_0x2b3c22))(h||{});const Pe=_0x21acba(0x150),Ae=0xc8;let C=class extends _0x42375c{constructor(_0x4f3673,_0x4a6691,_0x27dbca,_0x10e86c,_0x1927c0){var _0x590299=_0x21acba;super(),d(this,_0x590299(0x154),new _0x5c8398(_0x590299(0x14c))),d(this,_0x590299(0xc6),this[_0x590299(0x154)][_0x590299(0x14e)]()),d(this,_0x590299(0x14b),!0x1),d(this,_0x590299(0x15f),null),d(this,'_presenter',null),(this[_0x590299(0xb7)]=_0x4f3673,this[_0x590299(0xdc)]=_0x4a6691,this[_0x590299(0x102)]=_0x27dbca,this['_liveShareService']=_0x10e86c,this[_0x590299(0x119)]=_0x1927c0);}get[_0x21acba(0x103)](){var _0x5cdaa4=_0x21acba;return this[_0x5cdaa4(0x154)][_0x5cdaa4(0x132)]();}[_0x21acba(0x112)](){var _0x1b4cd3=_0x21acba,_0x1cff20;(_0x1cff20=this['_commandDisposable'])==null||_0x1cff20['dispose'](),this['_status$'][_0x1b4cd3(0xe3)]('idle'),this['_status$'][_0x1b4cd3(0x15d)]();}['init'](){var _0x4378d2=_0x21acba;this[_0x4378d2(0x14b)]||(this[_0x4378d2(0x14b)]=!0x0,this['_collabSession'][_0x4378d2(0x15c)][_0x4378d2(0xb4)](_0x370249(this[_0x4378d2(0xad)]))[_0x4378d2(0x141)](_0xec6771=>{var _0x5652b6=_0x4378d2;switch(_0xec6771){case _0x4c8836['OFFLINE']:this[_0x5652b6(0x14d)]();break;case _0x4c8836[_0x5652b6(0x13d)]:this['_handleOnline']();break;}}),this[_0x4378d2(0xdc)][_0x4378d2(0x153)]['pipe'](_0x370249(this['dispose$']))[_0x4378d2(0x141)](_0x16196f=>{var _0x2dd5ea=_0x4378d2;const {eventID:_0x39aecc}=_0x16196f;switch(_0x39aecc){case _0x2a9a59[_0x2dd5ea(0xbb)]:this[_0x2dd5ea(0xb3)](_0x16196f);break;case _0x2a9a59[_0x2dd5ea(0x139)]:this[_0x2dd5ea(0x10f)](_0x16196f);break;case _0x2a9a59['LIVESHARE_TERMINATE']:this[_0x2dd5ea(0x127)]();break;case _0x2a9a59['NEW_CHANGESETS']:this[_0x2dd5ea(0x148)](_0x16196f);break;}}));}[_0x21acba(0x155)](){var _0x42e76b=_0x21acba;this['_collabSession'][_0x42e76b(0xda)]({'eventID':_0x2a9a59['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x42e76b(0xb7)],'userID':this[_0x42e76b(0xdc)][_0x42e76b(0xea)]()}},this[_0x42e76b(0xb7)]);}['stopPresenting'](){var _0xb9def3=_0x21acba;this[_0xb9def3(0x103)]===_0xb9def3(0xf2)&&(this[_0xb9def3(0x154)]['next'](_0xb9def3(0x14c)),this['_collabSession']['send']({'eventID':_0x2a9a59[_0xb9def3(0xc7)],'data':{'unitID':this[_0xb9def3(0xb7)]}},this[_0xb9def3(0xb7)]));}[_0x21acba(0xcd)](){var _0x56f90a=_0x21acba;this['_status']===_0x56f90a(0x110)&&(this[_0x56f90a(0x154)][_0x56f90a(0xe3)](_0x56f90a(0xe9)),this[_0x56f90a(0x108)]());}[_0x21acba(0xbc)](){var _0x126fdc=_0x21acba;this[_0x126fdc(0x103)]===_0x126fdc(0xe9)&&this['_stopFollowing']();}[_0x21acba(0xb3)](_0x2f363f){var _0x218a2d=_0x21acba;const {presenter:_0x36769f}=_0x2f363f[_0x218a2d(0x146)],_0x359182=this[_0x218a2d(0xdc)][_0x218a2d(0xea)]();this[_0x218a2d(0x10c)]=_0x36769f,_0x36769f===_0x359182?(this[_0x218a2d(0x11f)](),this[_0x218a2d(0x118)]()):this[_0x218a2d(0x103)]!==_0x218a2d(0x110)&&(this['_stopPresenting'](),this[_0x218a2d(0x108)]());}[_0x21acba(0xc1)](){var _0x120dc6=_0x21acba;const _0x4b7bbc={'eventID':_0x2a9a59['LIVESHARE_FETCH_OPERATIONS']};this[_0x120dc6(0xdc)][_0x120dc6(0xda)](_0x4b7bbc,this['_unitID']);}[_0x21acba(0x127)](){var _0x399c1a=_0x21acba;this[_0x399c1a(0x10c)]=null,this['_status']!==_0x399c1a(0xf2)&&this['_beIdle']();}[_0x21acba(0x148)](_0x10fa4c){var _0x6239e0=_0x21acba;if(this[_0x6239e0(0x103)]===_0x6239e0(0xe9)&&this['_presenter']===_0x10fa4c[_0x6239e0(0x146)][_0x6239e0(0xd1)]){const _0x16524b=_0x555882(_0x10fa4c[_0x6239e0(0x146)])[_0x6239e0(0xef)]['reverse']()[_0x6239e0(0xc3)](_0x549779=>_0x549779['id']===_0x587516['id']);if(_0x16524b){const _0x1a89fa=_0x16524b[_0x6239e0(0xd8)]['unitId'],_0x48c0ae=_0x16524b[_0x6239e0(0xd8)][_0x6239e0(0xb8)]['id'];setTimeout(()=>{var _0x4584fe=_0x6239e0;this[_0x4584fe(0x119)][_0x4584fe(0x115)](_0x394a08['id'],{'unitId':_0x1a89fa,'subUnitId':_0x48c0ae},{'fromCollab':!0x0});});}}}[_0x21acba(0x118)](){var _0xc608f5=_0x21acba;this['_status$']['next']('presenting');const _0x476633=new Map(),_0xfe239=this[_0xc608f5(0x15f)]=new _0x240d80();_0xfe239['add'](_0x52738f(()=>{var _0x176286=_0xc608f5;_0x476633[_0x176286(0xec)](_0x3a77aa=>_0x3a77aa[_0x176286(0x15d)]()),_0x476633[_0x176286(0x11c)]();})),_0xfe239[_0xc608f5(0x121)](this['_commandService'][_0xc608f5(0xd2)](_0x10ad48=>{var _0x4394ab=_0xc608f5,_0x49f695;if(_0x10ad48[_0x4394ab(0x10b)]!==_0x2b26cd[_0x4394ab(0xfc)]||!this[_0x4394ab(0x128)][_0x4394ab(0xff)](_0x10ad48['id']))return;const {id:_0x27b991}=_0x10ad48;let _0x792d99;_0x476633[_0x4394ab(0x101)](_0x27b991)?_0x792d99=_0x476633['get'](_0x27b991):(_0x792d99=new _0x4b30d1(),_0x476633[_0x4394ab(0xc9)](_0x27b991,_0x792d99),_0x792d99['pipe'](_0xcd833b((_0x49f695=this[_0x4394ab(0x102)][_0x4394ab(0x113)](Pe))!=null?_0x49f695:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4394ab(0x141)](_0x5ea63f=>{var _0x3c7593=_0x4394ab;this[_0x3c7593(0xdc)][_0x3c7593(0xda)]({'eventID':_0x2a9a59[_0x3c7593(0x139)],'data':{'unitID':this[_0x3c7593(0xb7)],'operations':{[_0x5ea63f['id']]:{'id':_0x5ea63f['id'],'params':JSON[_0x3c7593(0x136)](_0x5ea63f[_0x3c7593(0xd8)])}}}},this[_0x3c7593(0xb7)]);})),_0x792d99[_0x4394ab(0xe3)](_0x10ad48);})),this[_0xc608f5(0x128)][_0xc608f5(0x129)](this[_0xc608f5(0xb7)])[_0xc608f5(0xec)](_0x325b0f=>this[_0xc608f5(0xdc)][_0xc608f5(0xda)]({'eventID':_0x2a9a59[_0xc608f5(0x139)],'data':{'unitID':this['_unitID'],'operations':{[_0x325b0f['id']]:{'id':_0x325b0f['id'],'params':JSON['stringify'](_0x325b0f['params'])}}}},this['_unitID']));}[_0x21acba(0x125)](){var _0x4574e9=_0x21acba,_0x1fe9c1;this['_status$']['next'](_0x4574e9(0x14c)),(_0x1fe9c1=this[_0x4574e9(0x15f)])==null||_0x1fe9c1[_0x4574e9(0x112)](),this[_0x4574e9(0x15f)]=null;}[_0x21acba(0x108)](){var _0x197bb2=_0x21acba,_0x5d2a0c;(_0x5d2a0c=this[_0x197bb2(0x15f)])==null||_0x5d2a0c[_0x197bb2(0x112)](),this[_0x197bb2(0x154)][_0x197bb2(0xe3)](_0x197bb2(0xe9));}['_beIdle'](){var _0x529434=_0x21acba,_0x3be2fd;this[_0x529434(0x154)][_0x529434(0xe3)](_0x529434(0x14c)),(_0x3be2fd=this[_0x529434(0x15f)])==null||_0x3be2fd[_0x529434(0x112)](),this[_0x529434(0x15f)]=null;}[_0x21acba(0x11f)](){var _0x262717=_0x21acba,_0x323b87;this[_0x262717(0x154)][_0x262717(0xe3)](_0x262717(0x110)),(_0x323b87=this[_0x262717(0x15f)])==null||_0x323b87[_0x262717(0x112)]();}[_0x21acba(0x10f)](_0x1ab44d){var _0x32ee77=_0x21acba;if([_0x32ee77(0xf2),_0x32ee77(0x110),_0x32ee77(0x107)][_0x32ee77(0x157)](this[_0x32ee77(0x103)])||!_0x1ab44d[_0x32ee77(0x146)][_0x32ee77(0xf8)]||_0x1ab44d['data'][_0x32ee77(0xf8)]===this[_0x32ee77(0xdc)]['getMemberID']())return;this[_0x32ee77(0x103)]===_0x32ee77(0x14c)&&this[_0x32ee77(0x108)]();const _0x4ceed3=_0x1ab44d[_0x32ee77(0x146)][_0x32ee77(0xe1)];Object['values'](_0x4ceed3)[_0x32ee77(0xec)](_0x46f543=>{var _0x5db352=_0x32ee77;this[_0x5db352(0x119)][_0x5db352(0x115)](_0x46f543['id'],_0x46f543[_0x5db352(0xd8)]?JSON[_0x5db352(0x116)](_0x46f543[_0x5db352(0xd8)]):null,{'fromCollab':!0x0});});}[_0x21acba(0x14d)](){var _0x4b9222=_0x21acba,_0x2e002c;this['_status$']['next']('offline'),(_0x2e002c=this[_0x4b9222(0x15f)])==null||_0x2e002c[_0x4b9222(0x112)]();}[_0x21acba(0x137)](){var _0x573ecd=_0x21acba;this[_0x573ecd(0x154)][_0x573ecd(0xe3)](_0x573ecd(0x14c)),this[_0x573ecd(0xc1)]();}};C=Z([f(0x2,_0x56c18f),f(0x3,_0x45e3a0(L)),f(0x4,_0x40b986)],C);function Te(){var _0x6c1069=_0x21acba;const _0x448ab1=_0x192779(I),_0x5eb56c=_0x192779(_0x3bd673),_0x1afc80=_0x17612b(()=>_0x5eb56c[_0x6c1069(0xe6)](_0x2636cb[_0x6c1069(0x11d)]),void 0x0,!0x1,[]),[_0x55a08d,_0xf14ce9]=_0x153009(null),[_0x314a70,_0xf14ed9]=_0x153009(h[_0x6c1069(0xb9)]),_0x11456b=_0x15fff5(null);return _0x1fea22(()=>(_0x1afc80&&_0x448ab1['getLiveShareCoordinator'](_0x1afc80['getUnitId']())[_0x6c1069(0xd0)](_0x171cf7=>{var _0x4a77df=_0x6c1069;_0xf14ce9(_0x171cf7),_0x11456b[_0x4a77df(0x120)]=_0x171cf7[_0x4a77df(0xc6)]['subscribe'](_0x152223=>{_0xf14ed9(_0x152223);});}),()=>{var _0x26b8da=_0x6c1069,_0x223902;(_0x223902=_0x11456b[_0x26b8da(0x120)])==null||_0x223902[_0x26b8da(0x14a)](),_0x11456b[_0x26b8da(0x120)]=null;}),[_0x1afc80,_0x448ab1]),_0x55a08d?_0xc206b(_0x5b29ed,{'align':'end','disabled':_0x314a70===h[_0x6c1069(0x152)],'className':_0x6c1069(0x13a),'overlay':_0xc206b($e,{'status':_0x314a70,'coordinator':_0x55a08d}),'children':_0xc206b(_0x6c1069(0xdf),{'className':_0x1dfccb('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x314a70===h[_0x6c1069(0x152)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x314a70!==h[_0x6c1069(0x152)]}),'type':_0x6c1069(0xdf),'children':_0xc206b(B,{'className':'univer-size-4'})})}):null;}function $e(_0x2426dd){var _0x506e88=_0x21acba;const {status:_0x3da7c0,coordinator:_0x4bbeb9}=_0x2426dd;switch(_0x3da7c0){case h[_0x506e88(0xb9)]:return _0xc206b(Fe,{'coordinator':_0x4bbeb9});case h[_0x506e88(0xc8)]:return _0xc206b(He,{'coordinator':_0x4bbeb9});case h[_0x506e88(0xdd)]:return _0xc206b(je,{'coordinator':_0x4bbeb9});case h[_0x506e88(0x152)]:return _0xc206b(Ve,{});case h[_0x506e88(0x147)]:return _0xc206b(Ue,{'coordinator':_0x4bbeb9});default:return null;}}function Fe(_0x251122){var _0x45a757=_0x21acba;const {coordinator:_0x2ef4ac}=_0x251122;return _0x10d624(_0x58a9cf,{'children':[_0xc206b('div',{'className':_0x45a757(0x145),'children':_0x45a757(0x11a)}),_0xc206b(_0xff20a5,{'onClick':()=>_0x2ef4ac[_0x45a757(0x155)](),'children':_0x45a757(0xc4)})]});}function He(_0x11b326){var _0x446dca=_0x21acba;const {coordinator:_0x2e86c8}=_0x11b326;return _0x10d624(_0x58a9cf,{'children':[_0xc206b(_0x446dca(0xce),{'className':_0x446dca(0x145),'children':_0x446dca(0xba)}),_0xc206b(_0xff20a5,{'onClick':()=>_0x2e86c8[_0x446dca(0xbc)](),'children':'Stop\x20following'})]});}function je(_0x57388a){var _0x75961=_0x21acba;const {coordinator:_0xdb234b}=_0x57388a;return _0x10d624(_0x58a9cf,{'children':[_0xc206b('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x75961(0x12b)}),_0xc206b(_0xff20a5,{'variant':'text','onClick':()=>_0xdb234b[_0x75961(0xcd)](),'children':'Start\x20following'})]});}function Ue(_0x99db5d){var _0xca61f5=_0x21acba;const {coordinator:_0x342ac3}=_0x99db5d;return _0x10d624(_0x58a9cf,{'children':[_0xc206b(_0xca61f5(0xce),{'className':_0xca61f5(0x145),'children':'You\x27re\x20presenting\x20the\x20document'}),_0xc206b(_0xff20a5,{'variant':_0xca61f5(0x14f),'onClick':()=>_0x342ac3[_0xca61f5(0x133)](),'children':_0xca61f5(0x13f)})]});}function Ve(){var _0x1c32c4=_0x21acba;return _0xc206b(_0x58a9cf,{'children':_0x1c32c4(0x10d)});}var Me=Object[_0x21acba(0x111)],ke=(_0x5b3b96,_0x3b742a,_0x2a5025,_0x26d7fa)=>{var _0x1961b0=_0x21acba;for(var _0x59c165=_0x26d7fa>0x1?void 0x0:_0x26d7fa?Me(_0x3b742a,_0x2a5025):_0x3b742a,_0x3c777c=_0x5b3b96[_0x1961b0(0x13e)]-0x1,_0x20e0a4;_0x3c777c>=0x0;_0x3c777c--)(_0x20e0a4=_0x5b3b96[_0x3c777c])&&(_0x59c165=_0x20e0a4(_0x59c165)||_0x59c165);return _0x59c165;},$=(_0x3412ad,_0x18a6bd)=>(_0x1bae55,_0x34c4e4)=>_0x18a6bd(_0x1bae55,_0x34c4e4,_0x3412ad);function _0x56c5(){var _0xec1c0c=['UniverIcon','_collabSession','NOT_FOLLOWING','42984wAwFpu','button','call','operations','defIds','next','propertyIsEnumerable','idSuffix','getCurrentTypeOfUnit$','defineProperty','univerjs-icon\x20univerjs-icon-','following','getMemberID','_entities','forEach','attrs','entries','mutations','UNIVER_UNKNOWN','LiveShareIcon','presenting','displayName','use','4jXvUOq','_sharedOperations','_uiPartsService','presenter','4589669XwEufQ','_univerInstanceService','pluginName','OPERATION','1em','HEADER_MENU','shouldShareOperation','getTypeOfUnitAdded$','has','_configService','_status','tag','UNIVER_LIVE_SHARE_PLUGIN','from','offline','_startFollowing','indexOf','evenodd','type','_presenter','You\x27are\x20offline.','trim','_handleOperation','not-following','getOwnPropertyDescriptor','dispose','getConfig','_startLiveShareCoordinator','executeCommand','parse','extend','_startPresenting','_commandService','Present\x20this\x20document','map','clear','UNIVER_SHEET','_collabSessionService','_stopFollowing','current','add','defs','function','className','_stopPresenting','31448ntJEPF','_handleTerminate','_liveShareService','getInitialStates','override','You\x27re\x20not\x20following\x20the\x20presenter','toString','registerSharedOperation','11658482xxfXfp','assign','40099XSIBJV','254640yppFSA','getValue','stopPresenting','icon','0\x200\x2017\x2017','stringify','_handleOnline','hasOwnProperty','LIVESHARE_OPERATION','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','1251muXnoh','onStarting','ONLINE','length','Stop\x20presenting','currentColor','subscribe','_injector','getUnitId','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','univer-mb-3\x20univer-w-full\x20univer-text-sm','data','PRESENTING','_handleNewChangeSets','_mountLiveShare','unsubscribe','_init','idle','_handleOffline','asObservable','default','SAME_OPERATION_SHARE_INTERVAL','getLiveShareCoordinator','OFFLINE','event$','_status$','tryStartPresenting','490KRXAju','includes','get','_config','none','concat','sessionStatus$','complete','_reporters','_commandDisposable','registerComponent','live-share-icon','dispose$','substring','init','setConfig','prototype','colorChannel1','_handleNewHost','pipe','getOwnPropertySymbols','path','_unitID','sheet','IDLE','You\x27re\x20following\x20the\x20presenter','LIVESHARE_NEW_HOST','stopFollowing','symbol','1741125DfZNhF','requireSession','string','_fetchOperations','replace','find','Start','apply','status$','LIVESHARE_TERMINATE','FOLLOWING','set','fill','registerInitialStateReporter','6vjduyA','startFollowing','div','svg','then','memberID','onCommandExecuted','disposeWithMe','delete','mask','children','xlink:href','params','random','send'];_0x56c5=function(){return _0xec1c0c;};return _0x56c5();}let b=class extends _0x49ef90{constructor(_0x5b01dd,_0x5277f7){var _0x2b40bf=_0x21acba;super(),this[_0x2b40bf(0x142)]=_0x5b01dd,this[_0x2b40bf(0xf7)]=_0x5277f7,this['_mountLiveShare']();}[_0x21acba(0x149)](){var _0xc49821=_0x21acba;this[_0xc49821(0xd3)](this[_0xc49821(0xf7)][_0xc49821(0xab)](_0x5a30be[_0xc49821(0xfe)],()=>_0x3350ba(Te,this[_0xc49821(0x142)])));}};b=ke([$(0x0,_0x45e3a0(_0x3944a4)),$(0x1,_0x257d82)],b);function _0x24fa(_0x511d67,_0x46f72a){var _0x56c5d9=_0x56c5();return _0x24fa=function(_0x24fa02,_0x1a195f){_0x24fa02=_0x24fa02-0xab;var _0x4d06e2=_0x56c5d9[_0x24fa02];return _0x4d06e2;},_0x24fa(_0x511d67,_0x46f72a);}var Ge=Object[_0x21acba(0xe7)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x3ac2a8,_0x1638b7,_0x3bb6d0)=>_0x1638b7 in _0x3ac2a8?Ge(_0x3ac2a8,_0x1638b7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3bb6d0}):_0x3ac2a8[_0x1638b7]=_0x3bb6d0,Be=(_0x3e9a98,_0x66ab4b,_0x45fd0f,_0x49227f)=>{var _0x4f5cb7=_0x21acba;for(var _0x5c245d=_0x49227f>0x1?void 0x0:_0x49227f?We(_0x66ab4b,_0x45fd0f):_0x66ab4b,_0x83347e=_0x3e9a98[_0x4f5cb7(0x13e)]-0x1,_0x3cc55b;_0x83347e>=0x0;_0x83347e--)(_0x3cc55b=_0x3e9a98[_0x83347e])&&(_0x5c245d=_0x3cc55b(_0x5c245d)||_0x5c245d);return _0x5c245d;},F=(_0xe1f009,_0x372eb8)=>(_0x25a7d9,_0x124ad9)=>_0x372eb8(_0x25a7d9,_0x124ad9,_0xe1f009),J=(_0x353b7d,_0x3f8e87,_0x51edcc)=>Ye(_0x353b7d,typeof _0x3f8e87!='symbol'?_0x3f8e87+'':_0x3f8e87,_0x51edcc);const Ze=_0x21acba(0x105);let O=class extends _0xec22e2{constructor(_0x3e7a0e=T,_0x58105f,_0x1d797c){var _0xda3894=_0x21acba;super(),this[_0xda3894(0x159)]=_0x3e7a0e,this[_0xda3894(0x142)]=_0x58105f,this[_0xda3894(0x102)]=_0x1d797c;const {..._0x124445}=_0x47242e({},T,this[_0xda3894(0x159)]);this[_0xda3894(0x102)][_0xda3894(0xb0)](Oe,_0x124445);}[_0x21acba(0x13c)](){var _0xf59e67=_0x21acba;_0x26645d(this[_0xf59e67(0x142)],_0x508f67([[L],[I],[m],[b]],this['_config'][_0xf59e67(0x12a)])),_0x34849a(this[_0xf59e67(0x142)],[[m]]);}['onRendered'](){var _0x57a76c=_0x21acba;_0x34849a(this[_0x57a76c(0x142)],[[b]]);}};J(O,_0x21acba(0x10b),_0x2636cb[_0x21acba(0xf0)]),J(O,_0x21acba(0xfb),Ze),O=Be([_0x49227d(_0x2380c4),F(0x1,_0x45e3a0(_0x3944a4)),F(0x2,_0x56c18f)],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 _0x99f71f=_0x2f47;(function(_0x363115,_0xbff1db){var _0x5db9c0=_0x2f47,_0x5f446e=_0x363115();while(!![]){try{var _0x15df3b=-parseInt(_0x5db9c0(0x150))/0x1*(parseInt(_0x5db9c0(0x161))/0x2)+parseInt(_0x5db9c0(0x1a7))/0x3+parseInt(_0x5db9c0(0x13d))/0x4+-parseInt(_0x5db9c0(0x185))/0x5+-parseInt(_0x5db9c0(0x18a))/0x6+parseInt(_0x5db9c0(0x1c0))/0x7*(parseInt(_0x5db9c0(0x1cd))/0x8)+-parseInt(_0x5db9c0(0x1c8))/0x9*(parseInt(_0x5db9c0(0x165))/0xa);if(_0x15df3b===_0xbff1db)break;else _0x5f446e['push'](_0x5f446e['shift']());}catch(_0x453a8e){_0x5f446e['push'](_0x5f446e['shift']());}}}(_0x389d,0x8647f));var q=Object['defineProperty'],z=(_0x376849,_0x53524c,_0x170f68)=>_0x53524c in _0x376849?q(_0x376849,_0x53524c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x170f68}):_0x376849[_0x53524c]=_0x170f68,d=(_0xe98a8c,_0x77cbe7,_0x382a4b)=>z(_0xe98a8c,typeof _0x77cbe7!=_0x99f71f(0x1a3)?_0x77cbe7+'':_0x77cbe7,_0x382a4b);import{CollaborationSessionService as _0x4212d6,SessionStatus as _0x4b2aa1,UniverCollaborationClientPlugin as _0x4a8a68}from'@univerjs-pro/collaboration-client';import{Disposable as _0x59f156,toDisposable as _0x3e8155,Inject as _0x5bf50d,IUniverInstanceService as _0x3436e1,Injector as _0x473fc7,IConfigService as _0x3f2bf0,ICommandService as _0x320924,RxDisposable as _0x428bc,UniverInstanceType as _0x5a9822,DisposableCollection as _0x59c941,CommandType as _0x51ef63,DependentOn as _0x34567d,Plugin as _0x176cff,merge as _0xae2b6b,registerDependencies as _0x3ac27d,mergeOverrideWithDependencies as _0x250a49,touchDependencies as _0x25eed6}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x311bff,InsertSheetMutation as _0x3bed17}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x2ab1ad,SetScrollOperation as _0x65b388}from'@univerjs/sheets-ui';import{useDependency as _0x4e95ea,useObservable as _0x574a40,IUIPartsService as _0x359339,BuiltInUIPart as _0xa95625,connectInjector as _0x11d29b}from'@univerjs/ui';import{jsx as _0x2a3f55,jsxs as _0x590551,Fragment as _0x8dd5dc}from'react/jsx-runtime';import{Dropdown as _0x548f32,clsx as _0x449eb0,Button as _0x310295}from'@univerjs/design';import{forwardRef as _0xa501d4,useRef as _0xf0d4a5,createElement as _0x18c11d,useState as _0x137d2a,useEffect as _0x572451}from'react';import{CollaborationEvent as _0x3a2075,parseProtocolChangeset as _0x5e4189}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x57c6d5,Subject as _0x4d9bd9}from'rxjs';function _0x389d(){var _0x2bbf63=['currentColor','getValue','_handleNewHost','clear','override','parse','Start\x20following','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','memberID','find','offline','_sharedOperations','idle','defIds','_collabSessionService','_injector','operations','_mountLiveShare','live-share-icon','_stopPresenting','_status$','_reporters','UNIVER_LIVE_SHARE_PLUGIN','_presenter','mask','idSuffix','unitId','tag','183050GarogW','disposeWithMe','random','stopPresenting','PRESENTING','1009164kRUySn','_status','_handleTerminate','LIVESHARE_TERMINATE','url(#$1','not-following','reverse','presenting','univerjs-icon\x20univerjs-icon-','dispose$','_unitID','NEW_CHANGESETS','init','Start','svg','onCommandExecuted','_uiPartsService','requireSession','startFollowing','use','_entities','getConfig','default','xlink:href','_stopFollowing','symbol','onStarting','button','registerInitialStateReporter','2649516ToiaDJ','_univerInstanceService','status$','getInitialStates','subscribe','pipe','onRendered','then','params','prototype','colorChannel1','entries','fill','_configService','_commandDisposable','dispose','presenter','0\x200\x2017\x2017','end','getTypeOfUnitDisposed$','evenodd','executeCommand','call','_handleOffline','NOT_FOLLOWING','84JZxkJb','forEach','Stop\x20following','UNIVER_SHEET','LIVESHARE_OPERATION','OFFLINE','concat','icon','11302749qpzJQd','getOwnPropertySymbols','_handleNewChangeSets','You\x27are\x20offline.','unsubscribe','637736xWzzqV','LIVESHARE_FETCH_OPERATIONS','pluginName','SAME_OPERATION_SHARE_INTERVAL','current','OPERATION','ONLINE','_fetchOperations','get','length','trim','tryStartPresenting','registerComponent','getCurrentTypeOfUnit$','div','delete','attrs','FOLLOWING','path','data','stringify','LIVESHARE_NEW_HOST','toString','children','indexOf','registerSharedOperation','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','_startLiveShareCoordinator','includes','Stop\x20presenting','live-share.config','getTypeOfUnitAdded$','string','1em','asObservable','Present\x20this\x20document','LiveShareIcon','getLiveShareCoordinator','_collabSession','You\x27re\x20following\x20the\x20presenter','1914944VpBOUC','next','_beIdle','getUnitId','_startFollowing','_liveShareService','shouldShareOperation','createInstance','has','set','displayName','_startPresenting','getMemberID','text','send','http://www.w3.org/2000/svg','_handleOperation','className','from','4XMGjAv','mutations','map','setConfig','You\x27re\x20not\x20following\x20the\x20presenter','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LIVESHARE_REQUEST_HOST','extend','stopFollowing','_handleOnline','IDLE','univer-mb-3\x20univer-w-full\x20univer-text-sm','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','add','event$','hasOwnProperty','HEADER_MENU','153916ZIajMF','_commandService','_init','following','10mUVBqp','type','apply','getOwnPropertyDescriptor'];_0x389d=function(){return _0x2bbf63;};return _0x389d();}import{takeUntil as _0xd2f81d,throttleTime as _0x27a38f}from'rxjs/operators';const Oe=_0x99f71f(0x133),T={};class L extends _0x59f156{constructor(){var _0x1a6c44=_0x99f71f;super(...arguments),d(this,_0x1a6c44(0x174),new Set()),d(this,'_reporters',new Set());}[_0x99f71f(0x12e)](_0x5132a4){var _0x295d4e=_0x99f71f;return this[_0x295d4e(0x174)][_0x295d4e(0x15d)](_0x5132a4),_0x3e8155(()=>this['_sharedOperations'][_0x295d4e(0x124)](_0x5132a4));}[_0x99f71f(0x1a6)](_0x4923ea){var _0x56d267=_0x99f71f;return this[_0x56d267(0x17e)][_0x56d267(0x15d)](_0x4923ea),_0x3e8155(()=>this[_0x56d267(0x17e)][_0x56d267(0x124)](_0x4923ea));}['shouldShareOperation'](_0x3e1406){var _0xaa5246=_0x99f71f;return this[_0xaa5246(0x174)][_0xaa5246(0x145)](_0x3e1406);}['getInitialStates'](_0x5cbbd0){var _0x3b93de=_0x99f71f;return Array[_0x3b93de(0x14f)](this[_0x3b93de(0x17e)])[_0x3b93de(0x152)](_0x1e173a=>_0x1e173a(_0x5cbbd0));}}var Ee=Object[_0x99f71f(0x168)],we=(_0x117511,_0x47a023,_0x59f513,_0x57c908)=>{var _0x5bc84c=_0x99f71f;for(var _0x25c548=_0x57c908>0x1?void 0x0:_0x57c908?Ee(_0x47a023,_0x59f513):_0x47a023,_0x48d773=_0x117511[_0x5bc84c(0x1d6)]-0x1,_0x158f85;_0x48d773>=0x0;_0x48d773--)(_0x158f85=_0x117511[_0x48d773])&&(_0x25c548=_0x158f85(_0x25c548)||_0x25c548);return _0x25c548;},Ne=(_0x45b309,_0x331f67)=>(_0xff2d39,_0x1b8cae)=>_0x331f67(_0xff2d39,_0x1b8cae,_0x45b309);let m=class extends _0x59f156{constructor(_0x45b4d3){super(),this['_liveShareService']=_0x45b4d3,this['_init']();}[_0x99f71f(0x163)](){var _0x1b8d9c=_0x99f71f;[_0x2ab1ad['id'],_0x65b388['id'],_0x311bff['id']][_0x1b8d9c(0x1c1)](_0x5d0589=>{var _0x46707a=_0x1b8d9c;this['disposeWithMe'](this[_0x46707a(0x142)][_0x46707a(0x12e)](_0x5d0589));});}};m=we([Ne(0x0,_0x5bf50d(L))],m);var c=function(){var _0x271bd9=_0x99f71f;return c=Object['assign']||function(_0x240a38){var _0x1269c7=_0x2f47;for(var _0x1c7a0c,_0x30691f=0x1,_0x5293db=arguments[_0x1269c7(0x1d6)];_0x30691f<_0x5293db;_0x30691f++){_0x1c7a0c=arguments[_0x30691f];for(var _0x2c9bfc in _0x1c7a0c)Object[_0x1269c7(0x1b0)][_0x1269c7(0x15f)][_0x1269c7(0x1bd)](_0x1c7a0c,_0x2c9bfc)&&(_0x240a38[_0x2c9bfc]=_0x1c7a0c[_0x2c9bfc]);}return _0x240a38;},c[_0x271bd9(0x167)](this,arguments);},Ce=function(_0x1591af,_0x1cae09){var _0x3f4337=_0x99f71f,_0xde99a1={};for(var _0x87bd6c in _0x1591af)Object['prototype']['hasOwnProperty'][_0x3f4337(0x1bd)](_0x1591af,_0x87bd6c)&&_0x1cae09[_0x3f4337(0x12d)](_0x87bd6c)<0x0&&(_0xde99a1[_0x87bd6c]=_0x1591af[_0x87bd6c]);if(_0x1591af!=null&&typeof Object[_0x3f4337(0x1c9)]=='function'){for(var _0x12adac=0x0,_0x87bd6c=Object[_0x3f4337(0x1c9)](_0x1591af);_0x12adac<_0x87bd6c[_0x3f4337(0x1d6)];_0x12adac++)_0x1cae09[_0x3f4337(0x12d)](_0x87bd6c[_0x12adac])<0x0&&Object[_0x3f4337(0x1b0)]['propertyIsEnumerable']['call'](_0x1591af,_0x87bd6c[_0x12adac])&&(_0xde99a1[_0x87bd6c[_0x12adac]]=_0x1591af[_0x87bd6c[_0x12adac]]);}return _0xde99a1;},W=_0xa501d4(function(_0x51b791,_0x140c67){var _0x34fd96=_0x99f71f,_0x1d7752=_0x51b791[_0x34fd96(0x1c7)],_0x297b40=_0x51b791['id'],_0x18df01=_0x51b791[_0x34fd96(0x14e)],_0x4386bb=_0x51b791[_0x34fd96(0x157)],_0x50ffa8=Ce(_0x51b791,[_0x34fd96(0x1c7),'id','className',_0x34fd96(0x157)]),_0x3e1a33=_0x34fd96(0x192)['concat'](_0x297b40,'\x20')[_0x34fd96(0x1c6)](_0x18df01||'')[_0x34fd96(0x1d7)](),_0x2a8d00=_0xf0d4a5('_'['concat'](Le()));return Y(_0x1d7752,''[_0x34fd96(0x1c6)](_0x297b40),{'defIds':_0x1d7752['defIds'],'idSuffix':_0x2a8d00[_0x34fd96(0x1d1)]},c({'ref':_0x140c67,'className':_0x3e1a33},_0x50ffa8),_0x4386bb);});function _0x2f47(_0x4d6962,_0x3a58a4){var _0x389dfd=_0x389d();return _0x2f47=function(_0x2f4777,_0x5460f0){_0x2f4777=_0x2f4777-0x121;var _0x4810e3=_0x389dfd[_0x2f4777];return _0x4810e3;},_0x2f47(_0x4d6962,_0x3a58a4);}function Y(_0x1358d2,_0x2fbd9d,_0x2f25a7,_0x5c4004,_0x19b544){var _0x3b6c3b=_0x99f71f;return _0x18c11d(_0x1358d2[_0x3b6c3b(0x184)],c(c({'key':_0x2fbd9d},De(_0x1358d2,_0x2f25a7,_0x19b544)),_0x5c4004),(xe(_0x1358d2,_0x2f25a7)[_0x3b6c3b(0x12c)]||[])[_0x3b6c3b(0x152)](function(_0x5613f4,_0x24f63c){var _0xe27bd6=_0x3b6c3b;return Y(_0x5613f4,''[_0xe27bd6(0x1c6)](_0x2fbd9d,'-')[_0xe27bd6(0x1c6)](_0x1358d2[_0xe27bd6(0x184)],'-')[_0xe27bd6(0x1c6)](_0x24f63c),_0x2f25a7,void 0x0,_0x19b544);}));}function De(_0x1f8167,_0x2569fe,_0x15ff3d){var _0x2ad2b7=_0x99f71f,_0x4f5e29=c({},_0x1f8167[_0x2ad2b7(0x125)]);_0x15ff3d!=null&&_0x15ff3d[_0x2ad2b7(0x1b1)]&&_0x4f5e29[_0x2ad2b7(0x1b3)]===_0x2ad2b7(0x1b1)&&(_0x4f5e29[_0x2ad2b7(0x1b3)]=_0x15ff3d[_0x2ad2b7(0x1b1)]),_0x1f8167[_0x2ad2b7(0x184)]===_0x2ad2b7(0x181)&&_0x4f5e29['id']&&(_0x4f5e29['id']=_0x4f5e29['id']+_0x2569fe[_0x2ad2b7(0x182)]),Object[_0x2ad2b7(0x1b2)](_0x4f5e29)[_0x2ad2b7(0x1c1)](function(_0x2b1c2a){var _0x100171=_0x2ad2b7,_0x25bbd6=_0x2b1c2a[0x0],_0x4af1b9=_0x2b1c2a[0x1];_0x25bbd6==='mask'&&typeof _0x4af1b9==_0x100171(0x135)&&(_0x4f5e29[_0x25bbd6]=_0x4af1b9['replace'](/url\(#(.*)\)/,'url(#$1'[_0x100171(0x1c6)](_0x2569fe[_0x100171(0x182)],')')));});var _0xdfa0fc=_0x2569fe[_0x2ad2b7(0x176)];return!_0xdfa0fc||_0xdfa0fc[_0x2ad2b7(0x1d6)]===0x0||(_0x1f8167[_0x2ad2b7(0x184)]===_0x2ad2b7(0x19d)&&_0x4f5e29[_0x2ad2b7(0x1a1)]&&(_0x4f5e29[_0x2ad2b7(0x1a1)]=_0x4f5e29[_0x2ad2b7(0x1a1)]+_0x2569fe['idSuffix']),Object[_0x2ad2b7(0x1b2)](_0x4f5e29)[_0x2ad2b7(0x1c1)](function(_0x18ec09){var _0x5d6614=_0x2ad2b7,_0x5d8c5a=_0x18ec09[0x0],_0x138c6e=_0x18ec09[0x1];typeof _0x138c6e=='string'&&(_0x4f5e29[_0x5d8c5a]=_0x138c6e['replace'](/url\(#(.*)\)/,_0x5d6614(0x18e)[_0x5d6614(0x1c6)](_0x2569fe[_0x5d6614(0x182)],')')));})),_0x4f5e29;}function xe(_0x4c8ae5,_0xa8dbb4){var _0x5c9c76=_0x99f71f,_0x4cb83c,_0x23f634=_0xa8dbb4[_0x5c9c76(0x176)];return!_0x23f634||_0x23f634[_0x5c9c76(0x1d6)]===0x0?_0x4c8ae5:_0x4c8ae5[_0x5c9c76(0x184)]==='defs'&&(!((_0x4cb83c=_0x4c8ae5[_0x5c9c76(0x12c)])===null||_0x4cb83c===void 0x0)&&_0x4cb83c[_0x5c9c76(0x1d6)])?c(c({},_0x4c8ae5),{'children':_0x4c8ae5['children'][_0x5c9c76(0x152)](function(_0xf9f2d8){var _0x186734=_0x5c9c76;return typeof _0xf9f2d8[_0x186734(0x125)]['id']=='string'&&_0x23f634&&_0x23f634[_0x186734(0x131)](_0xf9f2d8[_0x186734(0x125)]['id'])?c(c({},_0xf9f2d8),{'attrs':c(c({},_0xf9f2d8['attrs']),{'id':_0xf9f2d8[_0x186734(0x125)]['id']+_0xa8dbb4['idSuffix']})}):_0xf9f2d8;})}):_0x4c8ae5;}function Le(){var _0x438fc8=_0x99f71f;return Math[_0x438fc8(0x187)]()[_0x438fc8(0x12b)](0x24)['substring'](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0x99f71f(0x198),'attrs':{'xmlns':_0x99f71f(0x14c),'fill':'none','viewBox':_0x99f71f(0x1b8),'width':_0x99f71f(0x136),'height':'1em'},'children':[{'tag':_0x99f71f(0x127),'attrs':{'fill':_0x99f71f(0x169),'d':_0x99f71f(0x170)}},{'tag':'path','attrs':{'fill':_0x99f71f(0x169),'d':_0x99f71f(0x15c),'fillRule':_0x99f71f(0x1bb),'clipRule':_0x99f71f(0x1bb)}}]},B=_0xa501d4(function(_0x2fbbca,_0xc09ed4){var _0x5b5ef0=_0x99f71f;return _0x18c11d(W,Object['assign']({},_0x2fbbca,{'id':_0x5b5ef0(0x17b),'ref':_0xc09ed4,'icon':ye}));});B[_0x99f71f(0x147)]=_0x99f71f(0x139);var Re=Object[_0x99f71f(0x168)],Z=(_0x3d4e0a,_0x3d9887,_0x1e91fa,_0x32cd96)=>{for(var _0xebd68b=_0x32cd96>0x1?void 0x0:_0x32cd96?Re(_0x3d9887,_0x1e91fa):_0x3d9887,_0x54d353=_0x3d4e0a['length']-0x1,_0x27b434;_0x54d353>=0x0;_0x54d353--)(_0x27b434=_0x3d4e0a[_0x54d353])&&(_0xebd68b=_0x27b434(_0xebd68b)||_0xebd68b);return _0xebd68b;},f=(_0x38cb60,_0x39aab6)=>(_0x38ec6e,_0xc80cf1)=>_0x39aab6(_0x38ec6e,_0xc80cf1,_0x38cb60);let I=class extends _0x428bc{constructor(_0x274ef2,_0x1eeaaf,_0x18a826){var _0x500fc8=_0x99f71f;super(),d(this,_0x500fc8(0x19e),new Map()),(this[_0x500fc8(0x1a8)]=_0x274ef2,this[_0x500fc8(0x178)]=_0x1eeaaf,this[_0x500fc8(0x177)]=_0x18a826,this[_0x500fc8(0x163)]());}async[_0x99f71f(0x13a)](_0x41236e){var _0x37730c=_0x99f71f;return this[_0x37730c(0x19e)][_0x37730c(0x145)](_0x41236e)||await this['_startLiveShareCoordinator'](_0x41236e),this['_entities'][_0x37730c(0x1d5)](_0x41236e);}[_0x99f71f(0x163)](){var _0x10c990=_0x99f71f;this[_0x10c990(0x1a8)][_0x10c990(0x134)](_0x5a9822[_0x10c990(0x1c3)])['pipe'](_0xd2f81d(this['dispose$']))[_0x10c990(0x1ab)](async _0x7bf1f6=>{var _0x57b45b=_0x10c990;const _0x814651=_0x7bf1f6[_0x57b45b(0x140)]();this[_0x57b45b(0x19e)][_0x57b45b(0x145)](_0x814651)||this[_0x57b45b(0x130)](_0x814651);}),this[_0x10c990(0x1a8)][_0x10c990(0x1ba)](_0x5a9822[_0x10c990(0x1c3)])['pipe'](_0xd2f81d(this[_0x10c990(0x193)]))[_0x10c990(0x1ab)](_0xd297a2=>{var _0x722e1e=_0x10c990;const _0x4b0b50=_0xd297a2[_0x722e1e(0x140)](),_0x55ff24=this['_entities'][_0x722e1e(0x1d5)](_0x4b0b50);_0x55ff24==null||_0x55ff24[_0x722e1e(0x1b6)]();});}async[_0x99f71f(0x130)](_0x50cda1){var _0x47c05e=_0x99f71f;const _0x4aea5d=await this[_0x47c05e(0x177)][_0x47c05e(0x19b)](_0x50cda1),_0x1d8f73=this[_0x47c05e(0x178)][_0x47c05e(0x144)](C,_0x50cda1,_0x4aea5d);return _0x1d8f73[_0x47c05e(0x196)](),this[_0x47c05e(0x19e)][_0x47c05e(0x146)](_0x50cda1,_0x1d8f73),_0x1d8f73;}};I=Z([f(0x0,_0x3436e1),f(0x1,_0x5bf50d(_0x473fc7)),f(0x2,_0x5bf50d(_0x4212d6))],I);var h=(_0x22fe56=>(_0x22fe56[_0x99f71f(0x1c5)]=_0x99f71f(0x173),_0x22fe56['IDLE']=_0x99f71f(0x175),_0x22fe56[_0x99f71f(0x126)]=_0x99f71f(0x164),_0x22fe56['NOT_FOLLOWING']=_0x99f71f(0x18f),_0x22fe56[_0x99f71f(0x189)]='presenting',_0x22fe56))(h||{});const Pe=_0x99f71f(0x1d0),Ae=0xc8;let C=class extends _0x428bc{constructor(_0x99dbc3,_0x4d0c1d,_0x5d78b8,_0x8a207c,_0x851562){var _0x43779a=_0x99f71f;super(),d(this,_0x43779a(0x17d),new _0x57c6d5(_0x43779a(0x175))),d(this,_0x43779a(0x1a9),this[_0x43779a(0x17d)][_0x43779a(0x137)]()),d(this,_0x43779a(0x163),!0x1),d(this,_0x43779a(0x1b5),null),d(this,'_presenter',null),(this[_0x43779a(0x194)]=_0x99dbc3,this['_collabSession']=_0x4d0c1d,this[_0x43779a(0x1b4)]=_0x5d78b8,this[_0x43779a(0x142)]=_0x8a207c,this['_commandService']=_0x851562);}get[_0x99f71f(0x18b)](){var _0x2bd98a=_0x99f71f;return this[_0x2bd98a(0x17d)][_0x2bd98a(0x16a)]();}[_0x99f71f(0x1b6)](){var _0x4c22df=_0x99f71f,_0x4445dc;(_0x4445dc=this[_0x4c22df(0x1b5)])==null||_0x4445dc['dispose'](),this[_0x4c22df(0x17d)][_0x4c22df(0x13e)](_0x4c22df(0x175)),this['_status$']['complete']();}[_0x99f71f(0x196)](){var _0x4d49dd=_0x99f71f;this[_0x4d49dd(0x163)]||(this[_0x4d49dd(0x163)]=!0x0,this[_0x4d49dd(0x13b)]['sessionStatus$']['pipe'](_0xd2f81d(this['dispose$']))['subscribe'](_0x1bc3f3=>{var _0x4aaa33=_0x4d49dd;switch(_0x1bc3f3){case _0x4b2aa1['OFFLINE']:this[_0x4aaa33(0x1be)]();break;case _0x4b2aa1[_0x4aaa33(0x1d3)]:this['_handleOnline']();break;}}),this[_0x4d49dd(0x13b)][_0x4d49dd(0x15e)][_0x4d49dd(0x1ac)](_0xd2f81d(this[_0x4d49dd(0x193)]))[_0x4d49dd(0x1ab)](_0x1ed34c=>{var _0x3c2159=_0x4d49dd;const {eventID:_0x1d4f29}=_0x1ed34c;switch(_0x1d4f29){case _0x3a2075[_0x3c2159(0x12a)]:this[_0x3c2159(0x16b)](_0x1ed34c);break;case _0x3a2075['LIVESHARE_OPERATION']:this['_handleOperation'](_0x1ed34c);break;case _0x3a2075['LIVESHARE_TERMINATE']:this[_0x3c2159(0x18c)]();break;case _0x3a2075[_0x3c2159(0x195)]:this[_0x3c2159(0x1ca)](_0x1ed34c);break;}}));}[_0x99f71f(0x1d8)](){var _0x5d8aca=_0x99f71f;this[_0x5d8aca(0x13b)][_0x5d8aca(0x14b)]({'eventID':_0x3a2075[_0x5d8aca(0x156)],'data':{'unitID':this['_unitID'],'userID':this[_0x5d8aca(0x13b)]['getMemberID']()}},this['_unitID']);}[_0x99f71f(0x188)](){var _0x128d60=_0x99f71f;this[_0x128d60(0x18b)]==='presenting'&&(this[_0x128d60(0x17d)][_0x128d60(0x13e)](_0x128d60(0x175)),this[_0x128d60(0x13b)]['send']({'eventID':_0x3a2075[_0x128d60(0x18d)],'data':{'unitID':this[_0x128d60(0x194)]}},this[_0x128d60(0x194)]));}[_0x99f71f(0x19c)](){var _0x5e7dfa=_0x99f71f;this[_0x5e7dfa(0x18b)]==='not-following'&&(this[_0x5e7dfa(0x17d)][_0x5e7dfa(0x13e)](_0x5e7dfa(0x164)),this[_0x5e7dfa(0x141)]());}['stopFollowing'](){var _0x164376=_0x99f71f;this[_0x164376(0x18b)]===_0x164376(0x164)&&this['_stopFollowing']();}[_0x99f71f(0x16b)](_0x58e331){var _0x4704a5=_0x99f71f;const {presenter:_0x7c9219}=_0x58e331[_0x4704a5(0x128)],_0x4f7e26=this[_0x4704a5(0x13b)][_0x4704a5(0x149)]();this['_presenter']=_0x7c9219,_0x7c9219===_0x4f7e26?(this[_0x4704a5(0x1a2)](),this[_0x4704a5(0x148)]()):this[_0x4704a5(0x18b)]!==_0x4704a5(0x18f)&&(this[_0x4704a5(0x17c)](),this[_0x4704a5(0x141)]());}[_0x99f71f(0x1d4)](){var _0x40c0b3=_0x99f71f;const _0x1f520c={'eventID':_0x3a2075[_0x40c0b3(0x1ce)]};this[_0x40c0b3(0x13b)][_0x40c0b3(0x14b)](_0x1f520c,this[_0x40c0b3(0x194)]);}[_0x99f71f(0x18c)](){var _0x592352=_0x99f71f;this['_presenter']=null,this[_0x592352(0x18b)]!==_0x592352(0x191)&&this[_0x592352(0x13f)]();}[_0x99f71f(0x1ca)](_0x6ee1bb){var _0x279720=_0x99f71f;if(this[_0x279720(0x18b)]===_0x279720(0x164)&&this[_0x279720(0x180)]===_0x6ee1bb[_0x279720(0x128)][_0x279720(0x171)]){const _0x567dc3=_0x5e4189(_0x6ee1bb['data'])[_0x279720(0x151)][_0x279720(0x190)]()[_0x279720(0x172)](_0xfabef3=>_0xfabef3['id']===_0x3bed17['id']);if(_0x567dc3){const _0x317ea4=_0x567dc3[_0x279720(0x1af)][_0x279720(0x183)],_0x77e3a5=_0x567dc3[_0x279720(0x1af)]['sheet']['id'];setTimeout(()=>{var _0x203c23=_0x279720;this[_0x203c23(0x162)]['executeCommand'](_0x311bff['id'],{'unitId':_0x317ea4,'subUnitId':_0x77e3a5},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x118db8=_0x99f71f;this[_0x118db8(0x17d)][_0x118db8(0x13e)](_0x118db8(0x191));const _0x2ea694=new Map(),_0x1513e2=this[_0x118db8(0x1b5)]=new _0x59c941();_0x1513e2[_0x118db8(0x15d)](_0x3e8155(()=>{var _0x190bd4=_0x118db8;_0x2ea694[_0x190bd4(0x1c1)](_0x134708=>_0x134708['complete']()),_0x2ea694[_0x190bd4(0x16c)]();})),_0x1513e2[_0x118db8(0x15d)](this['_commandService'][_0x118db8(0x199)](_0x1ad783=>{var _0x3598e7=_0x118db8,_0x46b851;if(_0x1ad783['type']!==_0x51ef63[_0x3598e7(0x1d2)]||!this[_0x3598e7(0x142)][_0x3598e7(0x143)](_0x1ad783['id']))return;const {id:_0x4b426b}=_0x1ad783;let _0x13c581;_0x2ea694[_0x3598e7(0x145)](_0x4b426b)?_0x13c581=_0x2ea694[_0x3598e7(0x1d5)](_0x4b426b):(_0x13c581=new _0x4d9bd9(),_0x2ea694['set'](_0x4b426b,_0x13c581),_0x13c581[_0x3598e7(0x1ac)](_0x27a38f((_0x46b851=this[_0x3598e7(0x1b4)][_0x3598e7(0x19f)](Pe))!=null?_0x46b851:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3598e7(0x1ab)](_0x22b627=>{var _0x8c67ff=_0x3598e7;this[_0x8c67ff(0x13b)]['send']({'eventID':_0x3a2075[_0x8c67ff(0x1c4)],'data':{'unitID':this[_0x8c67ff(0x194)],'operations':{[_0x22b627['id']]:{'id':_0x22b627['id'],'params':JSON[_0x8c67ff(0x129)](_0x22b627['params'])}}}},this[_0x8c67ff(0x194)]);})),_0x13c581[_0x3598e7(0x13e)](_0x1ad783);})),this['_liveShareService'][_0x118db8(0x1aa)](this['_unitID'])[_0x118db8(0x1c1)](_0x162667=>this[_0x118db8(0x13b)][_0x118db8(0x14b)]({'eventID':_0x3a2075['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x118db8(0x194)],'operations':{[_0x162667['id']]:{'id':_0x162667['id'],'params':JSON[_0x118db8(0x129)](_0x162667[_0x118db8(0x1af)])}}}},this[_0x118db8(0x194)]));}['_stopPresenting'](){var _0x37255f=_0x99f71f,_0x143a38;this[_0x37255f(0x17d)][_0x37255f(0x13e)](_0x37255f(0x175)),(_0x143a38=this[_0x37255f(0x1b5)])==null||_0x143a38[_0x37255f(0x1b6)](),this[_0x37255f(0x1b5)]=null;}[_0x99f71f(0x141)](){var _0x7ac91=_0x99f71f,_0x4f9220;(_0x4f9220=this[_0x7ac91(0x1b5)])==null||_0x4f9220[_0x7ac91(0x1b6)](),this[_0x7ac91(0x17d)][_0x7ac91(0x13e)]('following');}['_beIdle'](){var _0x5f159b=_0x99f71f,_0xe64ab7;this[_0x5f159b(0x17d)]['next']('idle'),(_0xe64ab7=this[_0x5f159b(0x1b5)])==null||_0xe64ab7['dispose'](),this['_commandDisposable']=null;}[_0x99f71f(0x1a2)](){var _0x52ff65=_0x99f71f,_0x2b70a1;this[_0x52ff65(0x17d)][_0x52ff65(0x13e)](_0x52ff65(0x18f)),(_0x2b70a1=this[_0x52ff65(0x1b5)])==null||_0x2b70a1[_0x52ff65(0x1b6)]();}[_0x99f71f(0x14d)](_0x5d4285){var _0x43164d=_0x99f71f;if(['presenting',_0x43164d(0x18f),'offline']['includes'](this[_0x43164d(0x18b)])||!_0x5d4285[_0x43164d(0x128)][_0x43164d(0x1b7)]||_0x5d4285[_0x43164d(0x128)][_0x43164d(0x1b7)]===this[_0x43164d(0x13b)][_0x43164d(0x149)]())return;this['_status']===_0x43164d(0x175)&&this['_startFollowing']();const _0x1f38e9=_0x5d4285[_0x43164d(0x128)][_0x43164d(0x179)];Object['values'](_0x1f38e9)[_0x43164d(0x1c1)](_0x671579=>{var _0x42f709=_0x43164d;this['_commandService'][_0x42f709(0x1bc)](_0x671579['id'],_0x671579[_0x42f709(0x1af)]?JSON[_0x42f709(0x16e)](_0x671579[_0x42f709(0x1af)]):null,{'fromCollab':!0x0});});}[_0x99f71f(0x1be)](){var _0x5d5d4f=_0x99f71f,_0x4f15f7;this['_status$'][_0x5d5d4f(0x13e)](_0x5d5d4f(0x173)),(_0x4f15f7=this[_0x5d5d4f(0x1b5)])==null||_0x4f15f7[_0x5d5d4f(0x1b6)]();}[_0x99f71f(0x159)](){var _0x132d1d=_0x99f71f;this[_0x132d1d(0x17d)]['next'](_0x132d1d(0x175)),this[_0x132d1d(0x1d4)]();}};C=Z([f(0x2,_0x3f2bf0),f(0x3,_0x5bf50d(L)),f(0x4,_0x320924)],C);function Te(){var _0x13ee24=_0x99f71f;const _0x4b5106=_0x4e95ea(I),_0x10a38b=_0x4e95ea(_0x3436e1),_0x56e939=_0x574a40(()=>_0x10a38b[_0x13ee24(0x122)](_0x5a9822[_0x13ee24(0x1c3)]),void 0x0,!0x1,[]),[_0x368e3a,_0x576e10]=_0x137d2a(null),[_0x9f95c6,_0x1994a3]=_0x137d2a(h[_0x13ee24(0x15a)]),_0x242c83=_0xf0d4a5(null);return _0x572451(()=>(_0x56e939&&_0x4b5106['getLiveShareCoordinator'](_0x56e939[_0x13ee24(0x140)]())[_0x13ee24(0x1ae)](_0x5702ba=>{var _0x33538e=_0x13ee24;_0x576e10(_0x5702ba),_0x242c83[_0x33538e(0x1d1)]=_0x5702ba[_0x33538e(0x1a9)][_0x33538e(0x1ab)](_0x9b0a2=>{_0x1994a3(_0x9b0a2);});}),()=>{var _0x31af95=_0x13ee24,_0x4d52a1;(_0x4d52a1=_0x242c83[_0x31af95(0x1d1)])==null||_0x4d52a1[_0x31af95(0x1cc)](),_0x242c83['current']=null;}),[_0x56e939,_0x4b5106]),_0x368e3a?_0x2a3f55(_0x548f32,{'align':_0x13ee24(0x1b9),'disabled':_0x9f95c6===h[_0x13ee24(0x1c5)],'className':_0x13ee24(0x12f),'overlay':_0x2a3f55($e,{'status':_0x9f95c6,'coordinator':_0x368e3a}),'children':_0x2a3f55('button',{'className':_0x449eb0(_0x13ee24(0x155),{'univer-cursor-not-allowed':_0x9f95c6===h[_0x13ee24(0x1c5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x9f95c6!==h[_0x13ee24(0x1c5)]}),'type':_0x13ee24(0x1a5),'children':_0x2a3f55(B,{'className':'univer-size-4'})})}):null;}function $e(_0x49f78c){var _0x3dc0f9=_0x99f71f;const {status:_0x549e2e,coordinator:_0x1ab40a}=_0x49f78c;switch(_0x549e2e){case h[_0x3dc0f9(0x15a)]:return _0x2a3f55(Fe,{'coordinator':_0x1ab40a});case h['FOLLOWING']:return _0x2a3f55(He,{'coordinator':_0x1ab40a});case h[_0x3dc0f9(0x1bf)]:return _0x2a3f55(je,{'coordinator':_0x1ab40a});case h[_0x3dc0f9(0x1c5)]:return _0x2a3f55(Ve,{});case h[_0x3dc0f9(0x189)]:return _0x2a3f55(Ue,{'coordinator':_0x1ab40a});default:return null;}}function Fe(_0x2ed9f3){var _0x384693=_0x99f71f;const {coordinator:_0x2f4e76}=_0x2ed9f3;return _0x590551(_0x8dd5dc,{'children':[_0x2a3f55(_0x384693(0x123),{'className':_0x384693(0x15b),'children':_0x384693(0x138)}),_0x2a3f55(_0x310295,{'onClick':()=>_0x2f4e76[_0x384693(0x1d8)](),'children':_0x384693(0x197)})]});}function He(_0x27945f){var _0x37e301=_0x99f71f;const {coordinator:_0x4ec7d3}=_0x27945f;return _0x590551(_0x8dd5dc,{'children':[_0x2a3f55(_0x37e301(0x123),{'className':_0x37e301(0x15b),'children':_0x37e301(0x13c)}),_0x2a3f55(_0x310295,{'onClick':()=>_0x4ec7d3[_0x37e301(0x158)](),'children':_0x37e301(0x1c2)})]});}function je(_0x4c3abf){var _0x10124c=_0x99f71f;const {coordinator:_0x17ce5d}=_0x4c3abf;return _0x590551(_0x8dd5dc,{'children':[_0x2a3f55(_0x10124c(0x123),{'className':_0x10124c(0x15b),'children':_0x10124c(0x154)}),_0x2a3f55(_0x310295,{'variant':_0x10124c(0x14a),'onClick':()=>_0x17ce5d[_0x10124c(0x19c)](),'children':_0x10124c(0x16f)})]});}function Ue(_0x268a30){var _0x54c859=_0x99f71f;const {coordinator:_0x34aba3}=_0x268a30;return _0x590551(_0x8dd5dc,{'children':[_0x2a3f55(_0x54c859(0x123),{'className':_0x54c859(0x15b),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x2a3f55(_0x310295,{'variant':_0x54c859(0x1a0),'onClick':()=>_0x34aba3[_0x54c859(0x188)](),'children':_0x54c859(0x132)})]});}function Ve(){var _0x3be389=_0x99f71f;return _0x2a3f55(_0x8dd5dc,{'children':_0x3be389(0x1cb)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x48d924,_0x399bb8,_0x314bfd,_0x2105a7)=>{for(var _0x3840fa=_0x2105a7>0x1?void 0x0:_0x2105a7?Me(_0x399bb8,_0x314bfd):_0x399bb8,_0x5efbbe=_0x48d924['length']-0x1,_0x438219;_0x5efbbe>=0x0;_0x5efbbe--)(_0x438219=_0x48d924[_0x5efbbe])&&(_0x3840fa=_0x438219(_0x3840fa)||_0x3840fa);return _0x3840fa;},$=(_0x45c252,_0x307f9b)=>(_0x4b9ff1,_0x306e6a)=>_0x307f9b(_0x4b9ff1,_0x306e6a,_0x45c252);let b=class extends _0x59f156{constructor(_0x26d55f,_0x4c270c){var _0x550b07=_0x99f71f;super(),this[_0x550b07(0x178)]=_0x26d55f,this[_0x550b07(0x19a)]=_0x4c270c,this[_0x550b07(0x17a)]();}['_mountLiveShare'](){var _0x5ddb1e=_0x99f71f;this[_0x5ddb1e(0x186)](this[_0x5ddb1e(0x19a)][_0x5ddb1e(0x121)](_0xa95625[_0x5ddb1e(0x160)],()=>_0x11d29b(Te,this[_0x5ddb1e(0x178)])));}};b=ke([$(0x0,_0x5bf50d(_0x473fc7)),$(0x1,_0x359339)],b);var Ge=Object['defineProperty'],We=Object['getOwnPropertyDescriptor'],Ye=(_0x1bce5a,_0xbcbf3,_0x185b0d)=>_0xbcbf3 in _0x1bce5a?Ge(_0x1bce5a,_0xbcbf3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x185b0d}):_0x1bce5a[_0xbcbf3]=_0x185b0d,Be=(_0x9a1753,_0x118464,_0x38683e,_0x2a9f63)=>{var _0x31da93=_0x99f71f;for(var _0x4cacaf=_0x2a9f63>0x1?void 0x0:_0x2a9f63?We(_0x118464,_0x38683e):_0x118464,_0x2c44cf=_0x9a1753[_0x31da93(0x1d6)]-0x1,_0x2b0802;_0x2c44cf>=0x0;_0x2c44cf--)(_0x2b0802=_0x9a1753[_0x2c44cf])&&(_0x4cacaf=_0x2b0802(_0x4cacaf)||_0x4cacaf);return _0x4cacaf;},F=(_0x1fe0dd,_0x32e7c7)=>(_0x58e9cc,_0x52e7d0)=>_0x32e7c7(_0x58e9cc,_0x52e7d0,_0x1fe0dd),J=(_0x521c6d,_0x11d7bf,_0x5b46d9)=>Ye(_0x521c6d,typeof _0x11d7bf!='symbol'?_0x11d7bf+'':_0x11d7bf,_0x5b46d9);const Ze=_0x99f71f(0x17f);let O=class extends _0x176cff{constructor(_0x526c39=T,_0x102c8e,_0x3c6765){var _0x4adc01=_0x99f71f;super(),this['_config']=_0x526c39,this[_0x4adc01(0x178)]=_0x102c8e,this[_0x4adc01(0x1b4)]=_0x3c6765;const {..._0x11d4e3}=_0xae2b6b({},T,this['_config']);this['_configService'][_0x4adc01(0x153)](Oe,_0x11d4e3);}[_0x99f71f(0x1a4)](){var _0x366f57=_0x99f71f;_0x3ac27d(this['_injector'],_0x250a49([[L],[I],[m],[b]],this['_config'][_0x366f57(0x16d)])),_0x25eed6(this['_injector'],[[m]]);}[_0x99f71f(0x1ad)](){var _0x244d38=_0x99f71f;_0x25eed6(this[_0x244d38(0x178)],[[b]]);}};J(O,_0x99f71f(0x166),_0x5a9822['UNIVER_UNKNOWN']),J(O,_0x99f71f(0x1cf),Ze),O=Be([_0x34567d(_0x4a8a68),F(0x1,_0x5bf50d(_0x473fc7)),F(0x2,_0x3f2bf0)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0xdbb8,_0x4fc37e){var _0x51fc5a=_0x25eb,_0x523592=_0xdbb8();while(!![]){try{var _0x30b82a=-parseInt(_0x51fc5a(0x142))/0x1*(parseInt(_0x51fc5a(0x1f6))/0x2)+parseInt(_0x51fc5a(0x147))/0x3+-parseInt(_0x51fc5a(0x17a))/0x4*(-parseInt(_0x51fc5a(0x1a6))/0x5)+-parseInt(_0x51fc5a(0x16b))/0x6+-parseInt(_0x51fc5a(0x145))/0x7+-parseInt(_0x51fc5a(0x12c))/0x8*(parseInt(_0x51fc5a(0x1c5))/0x9)+parseInt(_0x51fc5a(0x205))/0xa;if(_0x30b82a===_0x4fc37e)break;else _0x523592['push'](_0x523592['shift']());}catch(_0x5a30a3){_0x523592['push'](_0x523592['shift']());}}}(_0x2c33,0x2570a),function(_0x5a8054,_0x1c2e00){var _0x5ef45c=_0x25eb;typeof exports==_0x5ef45c(0x16e)&&typeof module<'u'?_0x1c2e00(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==_0x5ef45c(0x166)&&define[_0x5ef45c(0x152)]?define(['exports','@univerjs-pro/collaboration-client',_0x5ef45c(0x124),'@univerjs/sheets',_0x5ef45c(0x1ee),_0x5ef45c(0x14c),_0x5ef45c(0x185),'@univerjs/design','react',_0x5ef45c(0x180),_0x5ef45c(0x19b),_0x5ef45c(0x187)],_0x1c2e00):(_0x5a8054=typeof globalThis<'u'?globalThis:_0x5a8054||self,_0x1c2e00(_0x5a8054[_0x5ef45c(0x1fe)]={},_0x5a8054[_0x5ef45c(0x1e0)],_0x5a8054['UniverCore'],_0x5a8054[_0x5ef45c(0x170)],_0x5a8054[_0x5ef45c(0x159)],_0x5a8054[_0x5ef45c(0x19c)],_0x5a8054[_0x5ef45c(0x1b6)],_0x5a8054[_0x5ef45c(0x20f)],_0x5a8054[_0x5ef45c(0x1b6)],_0x5a8054['UniverProCollaboration'],_0x5a8054[_0x5ef45c(0x19b)],_0x5a8054[_0x5ef45c(0x19b)][_0x5ef45c(0x1d0)]));}(this,function(_0x4e9fcc,_0x33335f,_0x2d5dbd,_0x46d4c0,_0x27dfac,_0x4aa6f8,_0x44c13e,_0x4e6ae5,_0x3c21ed,_0x3aa9f1,_0xe0a27f,_0x4bbe9d){'use strict';var _0x161a02=_0x25eb;var _0x488d94=Object[_0x161a02(0x16a)],_0x5478ec=(_0xf50988,_0x3c4195,_0x4955f5)=>_0x3c4195 in _0xf50988?_0x488d94(_0xf50988,_0x3c4195,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4955f5}):_0xf50988[_0x3c4195]=_0x4955f5,_0x2addc0=(_0x30484b,_0x5241a5,_0x2b7f0f)=>_0x5478ec(_0x30484b,typeof _0x5241a5!=_0x161a02(0x213)?_0x5241a5+'':_0x5241a5,_0x2b7f0f);const _0x2d46d6=_0x161a02(0x1d6),_0x456786={};class _0x24dd90 extends _0x2d5dbd['Disposable']{constructor(){var _0x470ab9=_0x161a02;super(...arguments),_0x2addc0(this,'_sharedOperations',new Set()),_0x2addc0(this,_0x470ab9(0x1e7),new Set());}[_0x161a02(0x1de)](_0x47e01f){var _0x5a11b3=_0x161a02;return this[_0x5a11b3(0x197)][_0x5a11b3(0x1bc)](_0x47e01f),_0x2d5dbd[_0x5a11b3(0x194)](()=>this[_0x5a11b3(0x197)]['delete'](_0x47e01f));}[_0x161a02(0x1fc)](_0x2bed46){var _0x1f856d=_0x161a02;return this[_0x1f856d(0x1e7)][_0x1f856d(0x1bc)](_0x2bed46),_0x2d5dbd[_0x1f856d(0x194)](()=>this[_0x1f856d(0x1e7)]['delete'](_0x2bed46));}[_0x161a02(0x204)](_0x1e7bfa){var _0xf01734=_0x161a02;return this[_0xf01734(0x197)][_0xf01734(0x176)](_0x1e7bfa);}['getInitialStates'](_0x5c3426){var _0x33d6f5=_0x161a02;return Array['from'](this[_0x33d6f5(0x1e7)])[_0x33d6f5(0x211)](_0xfdd2cd=>_0xfdd2cd(_0x5c3426));}}var _0xb529d8=Object[_0x161a02(0x1bf)],_0x377f43=(_0x3ce068,_0xcfe76d,_0x342e3e,_0x37d64a)=>{for(var _0x31a421=_0x37d64a>0x1?void 0x0:_0x37d64a?_0xb529d8(_0xcfe76d,_0x342e3e):_0xcfe76d,_0x4de3a9=_0x3ce068['length']-0x1,_0x4c5f8d;_0x4de3a9>=0x0;_0x4de3a9--)(_0x4c5f8d=_0x3ce068[_0x4de3a9])&&(_0x31a421=_0x4c5f8d(_0x31a421)||_0x31a421);return _0x31a421;},_0x1729ad=(_0x359f8,_0x4ba0d5)=>(_0x355d90,_0x4cc66c)=>_0x4ba0d5(_0x355d90,_0x4cc66c,_0x359f8);let _0xbab834=class extends _0x2d5dbd['Disposable']{constructor(_0x447e69){var _0x5acee8=_0x161a02;super(),this[_0x5acee8(0x1d4)]=_0x447e69,this[_0x5acee8(0x16c)]();}[_0x161a02(0x16c)](){var _0x1d1aef=_0x161a02;[_0x27dfac['SetZoomRatioOperation']['id'],_0x27dfac[_0x1d1aef(0x1ed)]['id'],_0x46d4c0[_0x1d1aef(0x172)]['id']][_0x1d1aef(0x219)](_0x43a94e=>{var _0x1fc0e0=_0x1d1aef;this['disposeWithMe'](this[_0x1fc0e0(0x1d4)][_0x1fc0e0(0x1de)](_0x43a94e));});}};_0xbab834=_0x377f43([_0x1729ad(0x0,_0x2d5dbd[_0x161a02(0x18d)](_0x24dd90))],_0xbab834);var _0x5454ac=function(){var _0x3da6df=_0x161a02;return _0x5454ac=Object[_0x3da6df(0x12e)]||function(_0x140790){var _0x57273e=_0x3da6df;for(var _0x410f6c,_0x52a1b8=0x1,_0x12e6bb=arguments[_0x57273e(0x1c4)];_0x52a1b8<_0x12e6bb;_0x52a1b8++){_0x410f6c=arguments[_0x52a1b8];for(var _0xb4bd21 in _0x410f6c)Object[_0x57273e(0x12f)]['hasOwnProperty'][_0x57273e(0x169)](_0x410f6c,_0xb4bd21)&&(_0x140790[_0xb4bd21]=_0x410f6c[_0xb4bd21]);}return _0x140790;},_0x5454ac['apply'](this,arguments);},_0x3d6035=function(_0x590313,_0x29fffb){var _0x3d01ba=_0x161a02,_0x1c248b={};for(var _0x5370cd in _0x590313)Object[_0x3d01ba(0x12f)][_0x3d01ba(0x1fb)]['call'](_0x590313,_0x5370cd)&&_0x29fffb['indexOf'](_0x5370cd)<0x0&&(_0x1c248b[_0x5370cd]=_0x590313[_0x5370cd]);if(_0x590313!=null&&typeof Object[_0x3d01ba(0x157)]==_0x3d01ba(0x166)){for(var _0x2ab45f=0x0,_0x5370cd=Object[_0x3d01ba(0x157)](_0x590313);_0x2ab45f<_0x5370cd[_0x3d01ba(0x1c4)];_0x2ab45f++)_0x29fffb[_0x3d01ba(0x14d)](_0x5370cd[_0x2ab45f])<0x0&&Object['prototype'][_0x3d01ba(0x20c)][_0x3d01ba(0x169)](_0x590313,_0x5370cd[_0x2ab45f])&&(_0x1c248b[_0x5370cd[_0x2ab45f]]=_0x590313[_0x5370cd[_0x2ab45f]]);}return _0x1c248b;},_0xb03d65=_0x3c21ed[_0x161a02(0x15d)](function(_0x782313,_0x19e700){var _0x3b4f74=_0x161a02,_0x274bf0=_0x782313[_0x3b4f74(0x131)],_0x880fd0=_0x782313['id'],_0x3017b0=_0x782313[_0x3b4f74(0x1f2)],_0x52ebef=_0x782313['extend'],_0xd5caa7=_0x3d6035(_0x782313,[_0x3b4f74(0x131),'id',_0x3b4f74(0x1f2),_0x3b4f74(0x135)]),_0x3dd80c=_0x3b4f74(0x218)[_0x3b4f74(0x1a4)](_0x880fd0,'\x20')[_0x3b4f74(0x1a4)](_0x3017b0||'')[_0x3b4f74(0x1bd)](),_0x256899=_0x3c21ed['useRef']('_'['concat'](_0x25dcaf()));return _0x5307f4(_0x274bf0,''[_0x3b4f74(0x1a4)](_0x880fd0),{'defIds':_0x274bf0[_0x3b4f74(0x1ac)],'idSuffix':_0x256899['current']},_0x5454ac({'ref':_0x19e700,'className':_0x3dd80c},_0xd5caa7),_0x52ebef);});function _0x5307f4(_0x8d83b0,_0x53b2ea,_0x2989b0,_0x53efb4,_0x22e558){var _0x320001=_0x161a02;return _0x3c21ed['createElement'](_0x8d83b0[_0x320001(0x133)],_0x5454ac(_0x5454ac({'key':_0x53b2ea},_0xc7e1d(_0x8d83b0,_0x2989b0,_0x22e558)),_0x53efb4),(_0x10829f(_0x8d83b0,_0x2989b0)[_0x320001(0x210)]||[])[_0x320001(0x211)](function(_0x45ab5e,_0x1acccc){var _0x49670d=_0x320001;return _0x5307f4(_0x45ab5e,''[_0x49670d(0x1a4)](_0x53b2ea,'-')[_0x49670d(0x1a4)](_0x8d83b0[_0x49670d(0x133)],'-')['concat'](_0x1acccc),_0x2989b0,void 0x0,_0x22e558);}));}function _0xc7e1d(_0x2bb77e,_0x4c11ff,_0x5c40fe){var _0x52e8e1=_0x161a02,_0x4f734b=_0x5454ac({},_0x2bb77e[_0x52e8e1(0x12d)]);_0x5c40fe!=null&&_0x5c40fe['colorChannel1']&&_0x4f734b['fill']===_0x52e8e1(0x1c0)&&(_0x4f734b[_0x52e8e1(0x1af)]=_0x5c40fe[_0x52e8e1(0x1c0)]),_0x2bb77e[_0x52e8e1(0x133)]==='mask'&&_0x4f734b['id']&&(_0x4f734b['id']=_0x4f734b['id']+_0x4c11ff[_0x52e8e1(0x160)]),Object[_0x52e8e1(0x1f0)](_0x4f734b)[_0x52e8e1(0x219)](function(_0x51d137){var _0x4c687e=_0x52e8e1,_0x61c799=_0x51d137[0x0],_0x2eb32c=_0x51d137[0x1];_0x61c799==='mask'&&typeof _0x2eb32c=='string'&&(_0x4f734b[_0x61c799]=_0x2eb32c['replace'](/url\(#(.*)\)/,_0x4c687e(0x18e)['concat'](_0x4c11ff[_0x4c687e(0x160)],')')));});var _0x28878b=_0x4c11ff[_0x52e8e1(0x1ac)];return!_0x28878b||_0x28878b[_0x52e8e1(0x1c4)]===0x0||(_0x2bb77e[_0x52e8e1(0x133)]===_0x52e8e1(0x216)&&_0x4f734b[_0x52e8e1(0x13c)]&&(_0x4f734b[_0x52e8e1(0x13c)]=_0x4f734b['xlink:href']+_0x4c11ff[_0x52e8e1(0x160)]),Object['entries'](_0x4f734b)[_0x52e8e1(0x219)](function(_0x13dd8a){var _0x1e03f3=_0x52e8e1,_0x547be2=_0x13dd8a[0x0],_0x4aee8a=_0x13dd8a[0x1];typeof _0x4aee8a==_0x1e03f3(0x162)&&(_0x4f734b[_0x547be2]=_0x4aee8a['replace'](/url\(#(.*)\)/,_0x1e03f3(0x18e)['concat'](_0x4c11ff['idSuffix'],')')));})),_0x4f734b;}function _0x10829f(_0x32d0a0,_0x188003){var _0x18645a=_0x161a02,_0x290b2e,_0x416550=_0x188003[_0x18645a(0x1ac)];return!_0x416550||_0x416550[_0x18645a(0x1c4)]===0x0?_0x32d0a0:_0x32d0a0[_0x18645a(0x133)]===_0x18645a(0x173)&&(!((_0x290b2e=_0x32d0a0[_0x18645a(0x210)])===null||_0x290b2e===void 0x0)&&_0x290b2e['length'])?_0x5454ac(_0x5454ac({},_0x32d0a0),{'children':_0x32d0a0[_0x18645a(0x210)][_0x18645a(0x211)](function(_0x37cf28){var _0x3268cc=_0x18645a;return typeof _0x37cf28['attrs']['id']=='string'&&_0x416550&&_0x416550[_0x3268cc(0x1b4)](_0x37cf28[_0x3268cc(0x12d)]['id'])?_0x5454ac(_0x5454ac({},_0x37cf28),{'attrs':_0x5454ac(_0x5454ac({},_0x37cf28[_0x3268cc(0x12d)]),{'id':_0x37cf28[_0x3268cc(0x12d)]['id']+_0x188003[_0x3268cc(0x160)]})}):_0x37cf28;})}):_0x32d0a0;}function _0x25dcaf(){var _0x2d96f3=_0x161a02;return Math[_0x2d96f3(0x1e9)]()[_0x2d96f3(0x13f)](0x24)[_0x2d96f3(0x1d3)](0x2,0x8);}_0xb03d65['displayName']='UniverIcon';var _0x428fc5={'tag':_0x161a02(0x1eb),'attrs':{'xmlns':_0x161a02(0x148),'fill':_0x161a02(0x134),'viewBox':_0x161a02(0x177),'width':_0x161a02(0x212),'height':_0x161a02(0x212)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x161a02(0x16f),'attrs':{'fill':_0x161a02(0x201),'d':_0x161a02(0x20e),'fillRule':_0x161a02(0x1dd),'clipRule':_0x161a02(0x1dd)}}]},_0x2fba10=_0x3c21ed[_0x161a02(0x15d)](function(_0x3a685c,_0x1d17c6){var _0x575f21=_0x161a02;return _0x3c21ed[_0x575f21(0x1ad)](_0xb03d65,Object['assign']({},_0x3a685c,{'id':_0x575f21(0x1e4),'ref':_0x1d17c6,'icon':_0x428fc5}));});_0x2fba10['displayName']=_0x161a02(0x1d1);var _0x46198e=Object['getOwnPropertyDescriptor'],_0x1a34e0=(_0x1a37de,_0x131544,_0x50d496,_0x35781d)=>{for(var _0xe2c37c=_0x35781d>0x1?void 0x0:_0x35781d?_0x46198e(_0x131544,_0x50d496):_0x131544,_0x28e15c=_0x1a37de['length']-0x1,_0xe298d2;_0x28e15c>=0x0;_0x28e15c--)(_0xe298d2=_0x1a37de[_0x28e15c])&&(_0xe2c37c=_0xe298d2(_0xe2c37c)||_0xe2c37c);return _0xe2c37c;},_0x24105f=(_0x15f25d,_0x3de4c0)=>(_0x24dfd6,_0x334f72)=>_0x3de4c0(_0x24dfd6,_0x334f72,_0x15f25d);_0x4e9fcc['LiveShareController']=class extends _0x2d5dbd['RxDisposable']{constructor(_0x516595,_0x96781f,_0x14ba41){var _0x22d61d=_0x161a02;super(),_0x2addc0(this,_0x22d61d(0x13e),new Map()),(this[_0x22d61d(0x1f8)]=_0x516595,this[_0x22d61d(0x1c7)]=_0x96781f,this['_collabSessionService']=_0x14ba41,this['_init']());}async[_0x161a02(0x1d9)](_0x3f6293){var _0x26976c=_0x161a02;return this[_0x26976c(0x13e)][_0x26976c(0x176)](_0x3f6293)||await this[_0x26976c(0x15f)](_0x3f6293),this['_entities'][_0x26976c(0x1c3)](_0x3f6293);}[_0x161a02(0x16c)](){var _0x238bf4=_0x161a02;this['_univerInstanceService'][_0x238bf4(0x1b7)](_0x2d5dbd['UniverInstanceType'][_0x238bf4(0x1fa)])[_0x238bf4(0x181)](_0x4bbe9d[_0x238bf4(0x130)](this[_0x238bf4(0x163)]))[_0x238bf4(0x20d)](async _0x35a383=>{var _0x15771e=_0x238bf4;const _0x287421=_0x35a383[_0x15771e(0x193)]();this[_0x15771e(0x13e)][_0x15771e(0x176)](_0x287421)||this['_startLiveShareCoordinator'](_0x287421);}),this['_univerInstanceService'][_0x238bf4(0x16d)](_0x2d5dbd[_0x238bf4(0x1a9)][_0x238bf4(0x1fa)])[_0x238bf4(0x181)](_0x4bbe9d[_0x238bf4(0x130)](this['dispose$']))[_0x238bf4(0x20d)](_0x477a98=>{var _0x40a3a1=_0x238bf4;const _0x3b9ac7=_0x477a98[_0x40a3a1(0x193)](),_0x4760ab=this[_0x40a3a1(0x13e)][_0x40a3a1(0x1c3)](_0x3b9ac7);_0x4760ab==null||_0x4760ab['dispose']();});}async[_0x161a02(0x15f)](_0x3e1ba9){var _0x3d4e08=_0x161a02;const _0x103da0=await this[_0x3d4e08(0x1ef)]['requireSession'](_0x3e1ba9),_0x243f90=this[_0x3d4e08(0x1c7)][_0x3d4e08(0x158)](_0x4e9fcc[_0x3d4e08(0x15a)],_0x3e1ba9,_0x103da0);return _0x243f90[_0x3d4e08(0x153)](),this[_0x3d4e08(0x13e)][_0x3d4e08(0x18c)](_0x3e1ba9,_0x243f90),_0x243f90;}},_0x4e9fcc[_0x161a02(0x190)]=_0x1a34e0([_0x24105f(0x0,_0x2d5dbd[_0x161a02(0x1a8)]),_0x24105f(0x1,_0x2d5dbd[_0x161a02(0x18d)](_0x2d5dbd[_0x161a02(0x1d7)])),_0x24105f(0x2,_0x2d5dbd['Inject'](_0x33335f[_0x161a02(0x183)]))],_0x4e9fcc['LiveShareController']);var _0x4d37bd=(_0x37569c=>(_0x37569c[_0x161a02(0x1cb)]=_0x161a02(0x136),_0x37569c[_0x161a02(0x149)]='idle',_0x37569c[_0x161a02(0x175)]='following',_0x37569c[_0x161a02(0x1e6)]=_0x161a02(0x1b9),_0x37569c[_0x161a02(0x1e3)]='presenting',_0x37569c))(_0x4d37bd||{});const _0x1c757a='SAME_OPERATION_SHARE_INTERVAL',_0x6dedcb=0xc8;_0x4e9fcc[_0x161a02(0x15a)]=class extends _0x2d5dbd[_0x161a02(0x1b1)]{constructor(_0x58b8a7,_0x47e9c2,_0x3d2215,_0x112ede,_0x1373ca){var _0xaeed4b=_0x161a02;super(),_0x2addc0(this,_0xaeed4b(0x1aa),new _0xe0a27f[(_0xaeed4b(0x1ea))](_0xaeed4b(0x141))),_0x2addc0(this,_0xaeed4b(0x214),this['_status$'][_0xaeed4b(0x151)]()),_0x2addc0(this,'_init',!0x1),_0x2addc0(this,'_commandDisposable',null),_0x2addc0(this,_0xaeed4b(0x1b3),null),(this[_0xaeed4b(0x13a)]=_0x58b8a7,this['_collabSession']=_0x47e9c2,this['_configService']=_0x3d2215,this[_0xaeed4b(0x1d4)]=_0x112ede,this['_commandService']=_0x1373ca);}get[_0x161a02(0x1d2)](){var _0x13d7c0=_0x161a02;return this['_status$'][_0x13d7c0(0x143)]();}['dispose'](){var _0x3510e3=_0x161a02,_0x258386;(_0x258386=this['_commandDisposable'])==null||_0x258386['dispose'](),this[_0x3510e3(0x1aa)]['next'](_0x3510e3(0x141)),this[_0x3510e3(0x1aa)][_0x3510e3(0x1dc)]();}[_0x161a02(0x153)](){var _0x385b07=_0x161a02;this['_init']||(this[_0x385b07(0x16c)]=!0x0,this[_0x385b07(0x1ec)][_0x385b07(0x17d)][_0x385b07(0x181)](_0x4bbe9d[_0x385b07(0x130)](this[_0x385b07(0x163)]))[_0x385b07(0x20d)](_0x361f9e=>{var _0x5b2ecb=_0x385b07;switch(_0x361f9e){case _0x33335f[_0x5b2ecb(0x20a)][_0x5b2ecb(0x1cb)]:this[_0x5b2ecb(0x14f)]();break;case _0x33335f['SessionStatus'][_0x5b2ecb(0x139)]:this['_handleOnline']();break;}}),this[_0x385b07(0x1ec)]['event$']['pipe'](_0x4bbe9d[_0x385b07(0x130)](this['dispose$']))[_0x385b07(0x20d)](_0x5dd250=>{var _0x1a5a6c=_0x385b07;const {eventID:_0x31f324}=_0x5dd250;switch(_0x31f324){case _0x3aa9f1[_0x1a5a6c(0x202)][_0x1a5a6c(0x15b)]:this[_0x1a5a6c(0x217)](_0x5dd250);break;case _0x3aa9f1['CollaborationEvent']['LIVESHARE_OPERATION']:this['_handleOperation'](_0x5dd250);break;case _0x3aa9f1[_0x1a5a6c(0x202)][_0x1a5a6c(0x128)]:this['_handleTerminate']();break;case _0x3aa9f1['CollaborationEvent'][_0x1a5a6c(0x1a0)]:this[_0x1a5a6c(0x1ca)](_0x5dd250);break;}}));}[_0x161a02(0x19a)](){var _0x20887d=_0x161a02;this['_collabSession'][_0x20887d(0x1ce)]({'eventID':_0x3aa9f1[_0x20887d(0x202)][_0x20887d(0x198)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x20887d(0x178)]()}},this['_unitID']);}[_0x161a02(0x1a3)](){var _0x352d66=_0x161a02;this[_0x352d66(0x1d2)]===_0x352d66(0x144)&&(this[_0x352d66(0x1aa)][_0x352d66(0x196)](_0x352d66(0x141)),this[_0x352d66(0x1ec)][_0x352d66(0x1ce)]({'eventID':_0x3aa9f1[_0x352d66(0x202)][_0x352d66(0x128)],'data':{'unitID':this[_0x352d66(0x13a)]}},this[_0x352d66(0x13a)]));}[_0x161a02(0x18a)](){var _0x1d479c=_0x161a02;this[_0x1d479c(0x1d2)]===_0x1d479c(0x1b9)&&(this[_0x1d479c(0x1aa)][_0x1d479c(0x196)](_0x1d479c(0x1d5)),this[_0x1d479c(0x17c)]());}[_0x161a02(0x1cf)](){var _0x39c9da=_0x161a02;this[_0x39c9da(0x1d2)]===_0x39c9da(0x1d5)&&this[_0x39c9da(0x1f9)]();}[_0x161a02(0x217)](_0x2e1724){var _0x17d04a=_0x161a02;const {presenter:_0x24e0ec}=_0x2e1724['data'],_0x101dfa=this[_0x17d04a(0x1ec)][_0x17d04a(0x178)]();this[_0x17d04a(0x1b3)]=_0x24e0ec,_0x24e0ec===_0x101dfa?(this[_0x17d04a(0x1f9)](),this['_startPresenting']()):this['_status']!=='not-following'&&(this[_0x17d04a(0x19f)](),this[_0x17d04a(0x17c)]());}[_0x161a02(0x1c8)](){var _0x423b79=_0x161a02;const _0x38295c={'eventID':_0x3aa9f1[_0x423b79(0x202)][_0x423b79(0x18f)]};this['_collabSession'][_0x423b79(0x1ce)](_0x38295c,this['_unitID']);}[_0x161a02(0x140)](){var _0x45591d=_0x161a02;this[_0x45591d(0x1b3)]=null,this[_0x45591d(0x1d2)]!==_0x45591d(0x144)&&this[_0x45591d(0x199)]();}[_0x161a02(0x1ca)](_0x36ff8e){var _0x2a93f6=_0x161a02;if(this[_0x2a93f6(0x1d2)]===_0x2a93f6(0x1d5)&&this[_0x2a93f6(0x1b3)]===_0x36ff8e[_0x2a93f6(0x17f)]['memberID']){const _0x4fde33=_0x3aa9f1[_0x2a93f6(0x1ba)](_0x36ff8e['data'])[_0x2a93f6(0x206)][_0x2a93f6(0x126)]()[_0x2a93f6(0x1c9)](_0x35c640=>_0x35c640['id']===_0x46d4c0['InsertSheetMutation']['id']);if(_0x4fde33){const _0x34b289=_0x4fde33[_0x2a93f6(0x1c6)][_0x2a93f6(0x155)],_0x369f61=_0x4fde33[_0x2a93f6(0x1c6)]['sheet']['id'];setTimeout(()=>{var _0x437c5d=_0x2a93f6;this['_commandService'][_0x437c5d(0x1cd)](_0x46d4c0['SetWorksheetActiveOperation']['id'],{'unitId':_0x34b289,'subUnitId':_0x369f61},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x142391=_0x161a02;this[_0x142391(0x1aa)][_0x142391(0x196)](_0x142391(0x144));const _0x585037=new Map(),_0xf59b8a=this[_0x142391(0x1fd)]=new _0x2d5dbd[(_0x142391(0x1da))]();_0xf59b8a[_0x142391(0x1bc)](_0x2d5dbd[_0x142391(0x194)](()=>{var _0x4ca06b=_0x142391;_0x585037[_0x4ca06b(0x219)](_0x190c32=>_0x190c32['complete']()),_0x585037[_0x4ca06b(0x161)]();})),_0xf59b8a[_0x142391(0x1bc)](this[_0x142391(0x1d8)][_0x142391(0x1f5)](_0x554ee2=>{var _0x44b516=_0x142391,_0x230e5d;if(_0x554ee2['type']!==_0x2d5dbd[_0x44b516(0x1a2)]['OPERATION']||!this[_0x44b516(0x1d4)][_0x44b516(0x204)](_0x554ee2['id']))return;const {id:_0x5d22f9}=_0x554ee2;let _0xf33a25;_0x585037[_0x44b516(0x176)](_0x5d22f9)?_0xf33a25=_0x585037['get'](_0x5d22f9):(_0xf33a25=new _0xe0a27f[(_0x44b516(0x188))](),_0x585037[_0x44b516(0x18c)](_0x5d22f9,_0xf33a25),_0xf33a25[_0x44b516(0x181)](_0x4bbe9d[_0x44b516(0x1ae)]((_0x230e5d=this[_0x44b516(0x18b)][_0x44b516(0x15e)](_0x1c757a))!=null?_0x230e5d:_0x6dedcb,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x214ee7=>{var _0x3a50be=_0x44b516;this[_0x3a50be(0x1ec)][_0x3a50be(0x1ce)]({'eventID':_0x3aa9f1[_0x3a50be(0x202)][_0x3a50be(0x150)],'data':{'unitID':this[_0x3a50be(0x13a)],'operations':{[_0x214ee7['id']]:{'id':_0x214ee7['id'],'params':JSON[_0x3a50be(0x182)](_0x214ee7[_0x3a50be(0x1c6)])}}}},this[_0x3a50be(0x13a)]);})),_0xf33a25['next'](_0x554ee2);})),this[_0x142391(0x1d4)]['getInitialStates'](this['_unitID'])['forEach'](_0x218120=>this[_0x142391(0x1ec)][_0x142391(0x1ce)]({'eventID':_0x3aa9f1[_0x142391(0x202)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x142391(0x13a)],'operations':{[_0x218120['id']]:{'id':_0x218120['id'],'params':JSON[_0x142391(0x182)](_0x218120[_0x142391(0x1c6)])}}}},this[_0x142391(0x13a)]));}[_0x161a02(0x19f)](){var _0x9c4b52=_0x161a02,_0x3bfde9;this[_0x9c4b52(0x1aa)][_0x9c4b52(0x196)]('idle'),(_0x3bfde9=this[_0x9c4b52(0x1fd)])==null||_0x3bfde9['dispose'](),this[_0x9c4b52(0x1fd)]=null;}['_startFollowing'](){var _0x597dc2=_0x161a02,_0x5a5006;(_0x5a5006=this['_commandDisposable'])==null||_0x5a5006[_0x597dc2(0x1c1)](),this[_0x597dc2(0x1aa)]['next'](_0x597dc2(0x1d5));}['_beIdle'](){var _0x17bc73=_0x161a02,_0x129d11;this[_0x17bc73(0x1aa)][_0x17bc73(0x196)]('idle'),(_0x129d11=this[_0x17bc73(0x1fd)])==null||_0x129d11[_0x17bc73(0x1c1)](),this[_0x17bc73(0x1fd)]=null;}['_stopFollowing'](){var _0x265a59=_0x161a02,_0xe1002a;this[_0x265a59(0x1aa)]['next'](_0x265a59(0x1b9)),(_0xe1002a=this[_0x265a59(0x1fd)])==null||_0xe1002a[_0x265a59(0x1c1)]();}[_0x161a02(0x129)](_0x157a36){var _0x54a6f5=_0x161a02;if([_0x54a6f5(0x144),_0x54a6f5(0x1b9),'offline'][_0x54a6f5(0x1b4)](this[_0x54a6f5(0x1d2)])||!_0x157a36[_0x54a6f5(0x17f)][_0x54a6f5(0x14e)]||_0x157a36['data']['presenter']===this[_0x54a6f5(0x1ec)][_0x54a6f5(0x178)]())return;this[_0x54a6f5(0x1d2)]===_0x54a6f5(0x141)&&this[_0x54a6f5(0x17c)]();const _0x3dde9c=_0x157a36[_0x54a6f5(0x17f)][_0x54a6f5(0x191)];Object[_0x54a6f5(0x186)](_0x3dde9c)[_0x54a6f5(0x219)](_0x3f3d98=>{var _0x1fa304=_0x54a6f5;this[_0x1fa304(0x1d8)][_0x1fa304(0x1cd)](_0x3f3d98['id'],_0x3f3d98[_0x1fa304(0x1c6)]?JSON[_0x1fa304(0x13b)](_0x3f3d98[_0x1fa304(0x1c6)]):null,{'fromCollab':!0x0});});}[_0x161a02(0x14f)](){var _0x582129=_0x161a02,_0x8e385f;this[_0x582129(0x1aa)]['next'](_0x582129(0x136)),(_0x8e385f=this['_commandDisposable'])==null||_0x8e385f['dispose']();}['_handleOnline'](){var _0x530d1f=_0x161a02;this[_0x530d1f(0x1aa)][_0x530d1f(0x196)]('idle'),this[_0x530d1f(0x1c8)]();}},_0x4e9fcc[_0x161a02(0x15a)]=_0x1a34e0([_0x24105f(0x2,_0x2d5dbd[_0x161a02(0x209)]),_0x24105f(0x3,_0x2d5dbd[_0x161a02(0x18d)](_0x24dd90)),_0x24105f(0x4,_0x2d5dbd[_0x161a02(0x184)])],_0x4e9fcc['LiveShareCoordinator']);function _0x2f5ea3(){var _0x14b1c0=_0x161a02;const _0x20714a=_0x4aa6f8[_0x14b1c0(0x1db)](_0x4e9fcc[_0x14b1c0(0x190)]),_0x256ca2=_0x4aa6f8['useDependency'](_0x2d5dbd[_0x14b1c0(0x1a8)]),_0x53702b=_0x4aa6f8[_0x14b1c0(0x137)](()=>_0x256ca2[_0x14b1c0(0x203)](_0x2d5dbd['UniverInstanceType'][_0x14b1c0(0x1fa)]),void 0x0,!0x1,[]),[_0x47d640,_0x20deaa]=_0x3c21ed[_0x14b1c0(0x1a5)](null),[_0xeadb52,_0x597b65]=_0x3c21ed['useState'](_0x4d37bd[_0x14b1c0(0x149)]),_0x5dce5b=_0x3c21ed[_0x14b1c0(0x1e8)](null);return _0x3c21ed[_0x14b1c0(0x1ff)](()=>(_0x53702b&&_0x20714a[_0x14b1c0(0x1d9)](_0x53702b['getUnitId']())[_0x14b1c0(0x1ab)](_0x3f2f3a=>{var _0x267deb=_0x14b1c0;_0x20deaa(_0x3f2f3a),_0x5dce5b[_0x267deb(0x179)]=_0x3f2f3a[_0x267deb(0x214)]['subscribe'](_0x412e49=>{_0x597b65(_0x412e49);});}),()=>{var _0x1b5896=_0x14b1c0,_0x3d4558;(_0x3d4558=_0x5dce5b['current'])==null||_0x3d4558[_0x1b5896(0x1b2)](),_0x5dce5b['current']=null;}),[_0x53702b,_0x20714a]),_0x47d640?_0x44c13e[_0x14b1c0(0x1a1)](_0x4e6ae5[_0x14b1c0(0x192)],{'align':_0x14b1c0(0x1e1),'disabled':_0xeadb52===_0x4d37bd[_0x14b1c0(0x1cb)],'className':_0x14b1c0(0x1cc),'overlay':_0x44c13e[_0x14b1c0(0x1a1)](_0x4e736a,{'status':_0xeadb52,'coordinator':_0x47d640}),'children':_0x44c13e['jsx'](_0x14b1c0(0x125),{'className':_0x4e6ae5[_0x14b1c0(0x174)](_0x14b1c0(0x156),{'univer-cursor-not-allowed':_0xeadb52===_0x4d37bd['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xeadb52!==_0x4d37bd[_0x14b1c0(0x1cb)]}),'type':'button','children':_0x44c13e['jsx'](_0x2fba10,{'className':_0x14b1c0(0x1c2)})})}):null;}function _0x4e736a(_0x5ba821){var _0x354c4d=_0x161a02;const {status:_0x44a26d,coordinator:_0x44090c}=_0x5ba821;switch(_0x44a26d){case _0x4d37bd[_0x354c4d(0x149)]:return _0x44c13e[_0x354c4d(0x1a1)](_0x5b45f8,{'coordinator':_0x44090c});case _0x4d37bd['FOLLOWING']:return _0x44c13e[_0x354c4d(0x1a1)](_0x4038a0,{'coordinator':_0x44090c});case _0x4d37bd[_0x354c4d(0x1e6)]:return _0x44c13e['jsx'](_0x180c50,{'coordinator':_0x44090c});case _0x4d37bd['OFFLINE']:return _0x44c13e[_0x354c4d(0x1a1)](_0x2c828b,{});case _0x4d37bd['PRESENTING']:return _0x44c13e[_0x354c4d(0x1a1)](_0x22cefb,{'coordinator':_0x44090c});default:return null;}}function _0x5b45f8(_0x4e0b4e){var _0x6519f5=_0x161a02;const {coordinator:_0x338035}=_0x4e0b4e;return _0x44c13e['jsxs'](_0x44c13e[_0x6519f5(0x1b8)],{'children':[_0x44c13e['jsx'](_0x6519f5(0x1f7),{'className':_0x6519f5(0x207),'children':_0x6519f5(0x127)}),_0x44c13e['jsx'](_0x4e6ae5['Button'],{'onClick':()=>_0x338035['tryStartPresenting'](),'children':_0x6519f5(0x1b5)})]});}function _0x4038a0(_0x22592f){var _0x53e552=_0x161a02;const {coordinator:_0xd639b2}=_0x22592f;return _0x44c13e[_0x53e552(0x208)](_0x44c13e['Fragment'],{'children':[_0x44c13e[_0x53e552(0x1a1)]('div',{'className':_0x53e552(0x207),'children':_0x53e552(0x14b)}),_0x44c13e[_0x53e552(0x1a1)](_0x4e6ae5['Button'],{'onClick':()=>_0xd639b2['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x180c50(_0x1f7957){var _0x3068a3=_0x161a02;const {coordinator:_0x2d1226}=_0x1f7957;return _0x44c13e['jsxs'](_0x44c13e['Fragment'],{'children':[_0x44c13e['jsx']('div',{'className':_0x3068a3(0x207),'children':_0x3068a3(0x1b0)}),_0x44c13e[_0x3068a3(0x1a1)](_0x4e6ae5[_0x3068a3(0x1e5)],{'variant':_0x3068a3(0x19e),'onClick':()=>_0x2d1226['startFollowing'](),'children':_0x3068a3(0x13d)})]});}function _0x22cefb(_0x2ab44c){var _0x32c93f=_0x161a02;const {coordinator:_0x48922d}=_0x2ab44c;return _0x44c13e[_0x32c93f(0x208)](_0x44c13e['Fragment'],{'children':[_0x44c13e[_0x32c93f(0x1a1)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x44c13e[_0x32c93f(0x1a1)](_0x4e6ae5['Button'],{'variant':_0x32c93f(0x171),'onClick':()=>_0x48922d[_0x32c93f(0x1a3)](),'children':'Stop\x20presenting'})]});}function _0x2c828b(){var _0x163dfe=_0x161a02;return _0x44c13e['jsx'](_0x44c13e[_0x163dfe(0x1b8)],{'children':_0x163dfe(0x138)});}var _0x3554e9=Object[_0x161a02(0x1bf)],_0x4ff6c6=(_0x8d6536,_0x5013b9,_0x731008,_0x4b6c0e)=>{for(var _0x48bb6c=_0x4b6c0e>0x1?void 0x0:_0x4b6c0e?_0x3554e9(_0x5013b9,_0x731008):_0x5013b9,_0xa3f5e5=_0x8d6536['length']-0x1,_0x3f6efa;_0xa3f5e5>=0x0;_0xa3f5e5--)(_0x3f6efa=_0x8d6536[_0xa3f5e5])&&(_0x48bb6c=_0x3f6efa(_0x48bb6c)||_0x48bb6c);return _0x48bb6c;},_0x40d613=(_0x100dbe,_0x4e090f)=>(_0x407585,_0x4193ee)=>_0x4e090f(_0x407585,_0x4193ee,_0x100dbe);_0x4e9fcc[_0x161a02(0x15c)]=class extends _0x2d5dbd[_0x161a02(0x1f1)]{constructor(_0x44947a,_0x469e95){var _0x108f37=_0x161a02;super(),this[_0x108f37(0x1c7)]=_0x44947a,this['_uiPartsService']=_0x469e95,this[_0x108f37(0x20b)]();}['_mountLiveShare'](){var _0x5671aa=_0x161a02;this[_0x5671aa(0x17e)](this[_0x5671aa(0x12a)]['registerComponent'](_0x4aa6f8[_0x5671aa(0x132)][_0x5671aa(0x1f3)],()=>_0x4aa6f8['connectInjector'](_0x2f5ea3,this[_0x5671aa(0x1c7)])));}},_0x4e9fcc[_0x161a02(0x15c)]=_0x4ff6c6([_0x40d613(0x0,_0x2d5dbd[_0x161a02(0x18d)](_0x2d5dbd[_0x161a02(0x1d7)])),_0x40d613(0x1,_0x4aa6f8['IUIPartsService'])],_0x4e9fcc[_0x161a02(0x15c)]);var _0x399e8e=Object[_0x161a02(0x16a)],_0x43e652=Object[_0x161a02(0x1bf)],_0x14e05b=(_0x1db170,_0x5a2dae,_0x49a977)=>_0x5a2dae in _0x1db170?_0x399e8e(_0x1db170,_0x5a2dae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49a977}):_0x1db170[_0x5a2dae]=_0x49a977,_0x3a62a5=(_0x2f1127,_0x5e11ad,_0x54672e,_0x5d6f9d)=>{for(var _0x5c6b99=_0x5d6f9d>0x1?void 0x0:_0x5d6f9d?_0x43e652(_0x5e11ad,_0x54672e):_0x5e11ad,_0x30981d=_0x2f1127['length']-0x1,_0x4b6a21;_0x30981d>=0x0;_0x30981d--)(_0x4b6a21=_0x2f1127[_0x30981d])&&(_0x5c6b99=_0x4b6a21(_0x5c6b99)||_0x5c6b99);return _0x5c6b99;},_0x4e2eee=(_0x52912c,_0x379744)=>(_0x4f36f4,_0x176a0f)=>_0x379744(_0x4f36f4,_0x176a0f,_0x52912c),_0x4573c6=(_0x5d611a,_0x20852f,_0x1a5b57)=>_0x14e05b(_0x5d611a,typeof _0x20852f!='symbol'?_0x20852f+'':_0x20852f,_0x1a5b57);const _0x3231d4=_0x161a02(0x146);_0x4e9fcc[_0x161a02(0x167)]=class extends _0x2d5dbd[_0x161a02(0x1be)]{constructor(_0x3eb888=_0x456786,_0x1995f9,_0x435c4d){var _0x59fda1=_0x161a02;super(),this['_config']=_0x3eb888,this['_injector']=_0x1995f9,this[_0x59fda1(0x18b)]=_0x435c4d;const {..._0xdc25e}=_0x2d5dbd[_0x59fda1(0x195)]({},_0x456786,this[_0x59fda1(0x168)]);this[_0x59fda1(0x18b)][_0x59fda1(0x164)](_0x2d46d6,_0xdc25e);}[_0x161a02(0x200)](){var _0x316882=_0x161a02;_0x2d5dbd[_0x316882(0x17b)](this[_0x316882(0x1c7)],_0x2d5dbd[_0x316882(0x165)]([[_0x24dd90],[_0x4e9fcc[_0x316882(0x190)]],[_0xbab834],[_0x4e9fcc[_0x316882(0x15c)]]],this[_0x316882(0x168)][_0x316882(0x1df)])),_0x2d5dbd['touchDependencies'](this[_0x316882(0x1c7)],[[_0xbab834]]);}['onRendered'](){var _0x13cca8=_0x161a02;_0x2d5dbd[_0x13cca8(0x1a7)](this[_0x13cca8(0x1c7)],[[_0x4e9fcc[_0x13cca8(0x15c)]]]);}},_0x4573c6(_0x4e9fcc[_0x161a02(0x167)],_0x161a02(0x14a),_0x2d5dbd['UniverInstanceType'][_0x161a02(0x12b)]),_0x4573c6(_0x4e9fcc[_0x161a02(0x167)],_0x161a02(0x154),_0x3231d4),_0x4e9fcc[_0x161a02(0x167)]=_0x3a62a5([_0x2d5dbd['DependentOn'](_0x33335f[_0x161a02(0x215)]),_0x4e2eee(0x1,_0x2d5dbd[_0x161a02(0x18d)](_0x2d5dbd[_0x161a02(0x1d7)])),_0x4e2eee(0x2,_0x2d5dbd[_0x161a02(0x209)])],_0x4e9fcc[_0x161a02(0x167)]),_0x4e9fcc[_0x161a02(0x1bb)]=_0x2f5ea3,_0x4e9fcc[_0x161a02(0x1f4)]=_0x24dd90,_0x4e9fcc[_0x161a02(0x19d)]=_0x4d37bd,Object['defineProperty'](_0x4e9fcc,Symbol[_0x161a02(0x1e2)],{'value':_0x161a02(0x189)});}));function _0x25eb(_0x3ef9d6,_0x2ab255){var _0x2c3325=_0x2c33();return _0x25eb=function(_0x25eb3e,_0x31e6d6){_0x25eb3e=_0x25eb3e-0x124;var _0x357a77=_0x2c3325[_0x25eb3e];return _0x357a77;},_0x25eb(_0x3ef9d6,_0x2ab255);}function _0x2c33(){var _0x1018b0=['div','_univerInstanceService','_stopFollowing','UNIVER_SHEET','hasOwnProperty','registerInitialStateReporter','_commandDisposable','UniverProLiveShare','useEffect','onStarting','currentColor','CollaborationEvent','getCurrentTypeOfUnit$','shouldShareOperation','593410sUSvCw','mutations','univer-mb-3\x20univer-w-full\x20univer-text-sm','jsxs','IConfigService','SessionStatus','_mountLiveShare','propertyIsEnumerable','subscribe','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','UniverDesign','children','map','1em','symbol','status$','UniverCollaborationClientPlugin','use','_handleNewHost','univerjs-icon\x20univerjs-icon-','forEach','@univerjs/core','button','reverse','Present\x20this\x20document','LIVESHARE_TERMINATE','_handleOperation','_uiPartsService','UNIVER_UNKNOWN','8ycaUVH','attrs','assign','prototype','takeUntil','icon','BuiltInUIPart','tag','none','extend','offline','useObservable','You\x27are\x20offline.','ONLINE','_unitID','parse','xlink:href','Start\x20following','_entities','toString','_handleTerminate','idle','1YbMZPS','getValue','presenting','618450LfLUET','UNIVER_LIVE_SHARE_PLUGIN','908997TJuFCt','http://www.w3.org/2000/svg','IDLE','type','You\x27re\x20following\x20the\x20presenter','@univerjs/ui','indexOf','presenter','_handleOffline','LIVESHARE_OPERATION','asObservable','amd','init','pluginName','unitId','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getOwnPropertySymbols','createInstance','UniverSheetsUi','LiveShareCoordinator','LIVESHARE_NEW_HOST','DesktopLiveShareController','forwardRef','getConfig','_startLiveShareCoordinator','idSuffix','clear','string','dispose$','setConfig','mergeOverrideWithDependencies','function','UniverLiveSharePlugin','_config','call','defineProperty','942282OxpWYP','_init','getTypeOfUnitDisposed$','object','path','UniverSheets','default','SetWorksheetActiveOperation','defs','clsx','FOLLOWING','has','0\x200\x2017\x2017','getMemberID','current','832060GVGWzE','registerDependencies','_startFollowing','sessionStatus$','disposeWithMe','data','@univerjs-pro/collaboration','pipe','stringify','CollaborationSessionService','ICommandService','react/jsx-runtime','values','rxjs/operators','Subject','Module','startFollowing','_configService','set','Inject','url(#$1','LIVESHARE_FETCH_OPERATIONS','LiveShareController','operations','Dropdown','getUnitId','toDisposable','merge','next','_sharedOperations','LIVESHARE_REQUEST_HOST','_beIdle','tryStartPresenting','rxjs','UniverUi','LiveShareStatus','text','_stopPresenting','NEW_CHANGESETS','jsx','CommandType','stopPresenting','concat','useState','5cRUcoy','touchDependencies','IUniverInstanceService','UniverInstanceType','_status$','then','defIds','createElement','throttleTime','fill','You\x27re\x20not\x20following\x20the\x20presenter','RxDisposable','unsubscribe','_presenter','includes','Start','React','getTypeOfUnitAdded$','Fragment','not-following','parseProtocolChangeset','LiveShare','add','trim','Plugin','getOwnPropertyDescriptor','colorChannel1','dispose','univer-size-4','get','length','923499zPxeho','params','_injector','_fetchOperations','find','_handleNewChangeSets','OFFLINE','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','executeCommand','send','stopFollowing','operators','LiveShareIcon','_status','substring','_liveShareService','following','live-share.config','Injector','_commandService','getLiveShareCoordinator','DisposableCollection','useDependency','complete','evenodd','registerSharedOperation','override','UniverProCollaborationClient','end','toStringTag','PRESENTING','live-share-icon','Button','NOT_FOLLOWING','_reporters','useRef','random','BehaviorSubject','svg','_collabSession','SetScrollOperation','@univerjs/sheets-ui','_collabSessionService','entries','Disposable','className','HEADER_MENU','LiveShareService','onCommandExecuted','137986HHoqje'];_0x2c33=function(){return _0x1018b0;};return _0x2c33();}
1
+ function _0xd5ca(){var _0x4aa2b0=['UniverDesign','_startFollowing','button','SetScrollOperation','executeCommand','trim','_univerInstanceService','live-share-icon','getConfig','set','LiveShareCoordinator','disposeWithMe','ONLINE','_commandDisposable','mutations','add','prototype','Stop\x20following','Start','@univerjs/sheets','stringify','send','univer-mb-3\x20univer-w-full\x20univer-text-sm','95216pZqXjJ','propertyIsEnumerable','use','_mountLiveShare','displayName','_fetchOperations','defIds','CollaborationSessionService','_startPresenting','SAME_OPERATION_SHARE_INTERVAL','_handleOperation','takeUntil','_entities','Plugin','LIVESHARE_FETCH_OPERATIONS','then','rxjs/operators','memberID','dispose','init','Present\x20this\x20document','assign','UniverSheetsUi','sessionStatus$','defs','function','shouldShareOperation','jsx','registerSharedOperation','text','clsx','LiveShareIcon','find','React','following','_collabSession','UniverLiveSharePlugin','DependentOn','apply','getTypeOfUnitAdded$','createInstance','svg','Button','LIVESHARE_TERMINATE','IUIPartsService','type','CollaborationEvent','fill','status$','univer-size-4','operations','none','mask','_beIdle','concat','614210yLbLSr','getLiveShareCoordinator','_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','presenter','length','_stopPresenting','string','UniverCollaborationClientPlugin','children','call','subscribe','SetZoomRatioOperation','LIVESHARE_NEW_HOST','startFollowing','current','_init','UniverProLiveShare','OFFLINE','HEADER_MENU','_collabSessionService','LIVESHARE_REQUEST_HOST','_handleTerminate','icon','end','random','Dropdown','forEach','Stop\x20presenting','_liveShareService','Disposable','getInitialStates','includes','indexOf','useState','_handleOffline','Fragment','LIVESHARE_OPERATION','onRendered','default','exports','substring','dispose$','data','extend','_handleNewHost','univerjs-icon\x20univerjs-icon-','useEffect','className','349324FYFdBm','You\x27are\x20offline.','unitId','75187Xybwxc','_status$','unsubscribe','Injector','parse','FOLLOWING','entries','offline','@univerjs/core','has','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','pipe','NEW_CHANGESETS','map','getMemberID','useDependency','getValue','jsxs','clear','toString','useRef','270090VWzPee','102ECeYMQ','throttleTime','evenodd','getUnitId','IDLE','Start\x20following','merge','Subject','Inject','InsertSheetMutation','_commandService','getTypeOfUnitDisposed$','DesktopLiveShareController','NOT_FOLLOWING','requireSession','next','UniverProCollaborationClient','xlink:href','PRESENTING','onCommandExecuted','toDisposable','_injector','tag','@univerjs-pro/collaboration-client','not-following','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','get','@univerjs/ui','pluginName','_handleOnline','stopFollowing','delete','createElement','hasOwnProperty','presenting','defineProperty','react','UniverCore','idle','_unitID','forwardRef','from','UNIVER_LIVE_SHARE_PLUGIN','operators','290720eZkZLg','UNIVER_SHEET','LiveShareController','OPERATION','_sharedOperations','live-share.config','touchDependencies','@univerjs/sheets-ui','LiveShare','http://www.w3.org/2000/svg','_reporters','getOwnPropertyDescriptor','params','path','_startLiveShareCoordinator','_configService','setConfig','tryStartPresenting','1em','onStarting','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','useObservable','attrs','colorChannel1','registerComponent','SessionStatus','LiveShareService','Module','idSuffix','UniverInstanceType','_uiPartsService','934272NzWMNY','parseProtocolChangeset','UniverIcon','_config','IConfigService','reverse','mergeOverrideWithDependencies','LiveShareStatus','_stopFollowing','replace','_status','symbol','url(#$1','_handleNewChangeSets','SetWorksheetActiveOperation','rxjs','RxDisposable','values','currentColor','registerDependencies','div'];_0xd5ca=function(){return _0x4aa2b0;};return _0xd5ca();}function _0x196a(_0x174847,_0x9a3de2){var _0xd5caeb=_0xd5ca();return _0x196a=function(_0x196a78,_0x5ad21e){_0x196a78=_0x196a78-0x119;var _0x91ba02=_0xd5caeb[_0x196a78];return _0x91ba02;},_0x196a(_0x174847,_0x9a3de2);}(function(_0x4c55e8,_0x279a55){var _0x271d1e=_0x196a,_0x490be8=_0x4c55e8();while(!![]){try{var _0x16a567=-parseInt(_0x271d1e(0x138))/0x1+-parseInt(_0x271d1e(0x1a0))/0x2+parseInt(_0x271d1e(0x1b8))/0x3+parseInt(_0x271d1e(0x204))/0x4+-parseInt(_0x271d1e(0x16f))/0x5+-parseInt(_0x271d1e(0x1b9))/0x6*(-parseInt(_0x271d1e(0x1a3))/0x7)+parseInt(_0x271d1e(0x1e5))/0x8;if(_0x16a567===_0x279a55)break;else _0x490be8['push'](_0x490be8['shift']());}catch(_0x5f29cd){_0x490be8['push'](_0x490be8['shift']());}}}(_0xd5ca,0x24937),function(_0x7d3423,_0x14eb53){var _0x1b1d58=_0x196a;typeof exports=='object'&&typeof module<'u'?_0x14eb53(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==_0x1b1d58(0x151)&&define['amd']?define([_0x1b1d58(0x197),_0x1b1d58(0x1d0),_0x1b1d58(0x1ab),_0x1b1d58(0x134),_0x1b1d58(0x1ec),_0x1b1d58(0x1d4),'react/jsx-runtime','@univerjs/design',_0x1b1d58(0x1dd),'@univerjs-pro/collaboration','rxjs',_0x1b1d58(0x148)],_0x14eb53):(_0x7d3423=typeof globalThis<'u'?globalThis:_0x7d3423||self,_0x14eb53(_0x7d3423[_0x1b1d58(0x180)]={},_0x7d3423[_0x1b1d58(0x1c9)],_0x7d3423[_0x1b1d58(0x1de)],_0x7d3423['UniverSheets'],_0x7d3423[_0x1b1d58(0x14e)],_0x7d3423['UniverUi'],_0x7d3423[_0x1b1d58(0x159)],_0x7d3423[_0x1b1d58(0x121)],_0x7d3423[_0x1b1d58(0x159)],_0x7d3423['UniverProCollaboration'],_0x7d3423[_0x1b1d58(0x11b)],_0x7d3423[_0x1b1d58(0x11b)][_0x1b1d58(0x1e4)]));}(this,function(_0x5c5e6d,_0x2e1099,_0x39c984,_0x2b4a1e,_0x537d8a,_0x431e11,_0x284ad2,_0x137abf,_0x729d21,_0x127ee2,_0x5e051f,_0x2fe6ef){'use strict';var _0x4c5e09=_0x196a;var _0x5a8467=Object[_0x4c5e09(0x1dc)],_0xd8da61=(_0x8cfe82,_0x583f80,_0x555b50)=>_0x583f80 in _0x8cfe82?_0x5a8467(_0x8cfe82,_0x583f80,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x555b50}):_0x8cfe82[_0x583f80]=_0x555b50,_0x4b08bd=(_0x1ea89d,_0x467666,_0xbd34c0)=>_0xd8da61(_0x1ea89d,typeof _0x467666!=_0x4c5e09(0x20f)?_0x467666+'':_0x467666,_0xbd34c0);const _0x430006=_0x4c5e09(0x1ea),_0x4769ab={};class _0x5adf86 extends _0x39c984[_0x4c5e09(0x18d)]{constructor(){var _0xbc4385=_0x4c5e09;super(...arguments),_0x4b08bd(this,'_sharedOperations',new Set()),_0x4b08bd(this,_0xbc4385(0x1ef),new Set());}[_0x4c5e09(0x154)](_0x38fd2b){var _0xdf3513=_0x4c5e09;return this[_0xdf3513(0x1e9)][_0xdf3513(0x130)](_0x38fd2b),_0x39c984[_0xdf3513(0x1cd)](()=>this['_sharedOperations'][_0xdf3513(0x1d8)](_0x38fd2b));}['registerInitialStateReporter'](_0x57b5be){var _0x40d998=_0x4c5e09;return this[_0x40d998(0x1ef)][_0x40d998(0x130)](_0x57b5be),_0x39c984[_0x40d998(0x1cd)](()=>this[_0x40d998(0x1ef)][_0x40d998(0x1d8)](_0x57b5be));}[_0x4c5e09(0x152)](_0x44d6c4){var _0x35f36e=_0x4c5e09;return this[_0x35f36e(0x1e9)]['has'](_0x44d6c4);}['getInitialStates'](_0x332707){var _0x23e36a=_0x4c5e09;return Array[_0x23e36a(0x1e2)](this[_0x23e36a(0x1ef)])[_0x23e36a(0x1b0)](_0x91d47d=>_0x91d47d(_0x332707));}}var _0x40f9d0=Object['getOwnPropertyDescriptor'],_0x28f477=(_0x3e703d,_0x55085c,_0x4a69cd,_0x6879ad)=>{var _0x447fc1=_0x4c5e09;for(var _0x11029c=_0x6879ad>0x1?void 0x0:_0x6879ad?_0x40f9d0(_0x55085c,_0x4a69cd):_0x55085c,_0x17e5d7=_0x3e703d[_0x447fc1(0x174)]-0x1,_0xe5e19b;_0x17e5d7>=0x0;_0x17e5d7--)(_0xe5e19b=_0x3e703d[_0x17e5d7])&&(_0x11029c=_0xe5e19b(_0x11029c)||_0x11029c);return _0x11029c;},_0x21445d=(_0x5b0f9b,_0x599de2)=>(_0x2ea65c,_0x4d2e86)=>_0x599de2(_0x2ea65c,_0x4d2e86,_0x5b0f9b);let _0x2d7496=class extends _0x39c984['Disposable']{constructor(_0x4e791){var _0x10747c=_0x4c5e09;super(),this[_0x10747c(0x18c)]=_0x4e791,this['_init']();}[_0x4c5e09(0x17f)](){var _0x283a78=_0x4c5e09;[_0x537d8a[_0x283a78(0x17b)]['id'],_0x537d8a[_0x283a78(0x124)]['id'],_0x2b4a1e['SetWorksheetActiveOperation']['id']][_0x283a78(0x18a)](_0x1b707c=>{var _0x19d51d=_0x283a78;this[_0x19d51d(0x12c)](this['_liveShareService']['registerSharedOperation'](_0x1b707c));});}};_0x2d7496=_0x28f477([_0x21445d(0x0,_0x39c984[_0x4c5e09(0x1c1)](_0x5adf86))],_0x2d7496);var _0x50f362=function(){var _0x2728cc=_0x4c5e09;return _0x50f362=Object[_0x2728cc(0x14d)]||function(_0x5e3aec){var _0x58f8cc=_0x2728cc;for(var _0x396303,_0x3e88dd=0x1,_0x4b3317=arguments[_0x58f8cc(0x174)];_0x3e88dd<_0x4b3317;_0x3e88dd++){_0x396303=arguments[_0x3e88dd];for(var _0x3d7e1b in _0x396303)Object[_0x58f8cc(0x131)][_0x58f8cc(0x1da)][_0x58f8cc(0x179)](_0x396303,_0x3d7e1b)&&(_0x5e3aec[_0x3d7e1b]=_0x396303[_0x3d7e1b]);}return _0x5e3aec;},_0x50f362[_0x2728cc(0x15e)](this,arguments);},_0x5b8eba=function(_0xe6bf51,_0x55d1d7){var _0x15d72d=_0x4c5e09,_0x360245={};for(var _0x29ccda in _0xe6bf51)Object[_0x15d72d(0x131)][_0x15d72d(0x1da)][_0x15d72d(0x179)](_0xe6bf51,_0x29ccda)&&_0x55d1d7['indexOf'](_0x29ccda)<0x0&&(_0x360245[_0x29ccda]=_0xe6bf51[_0x29ccda]);if(_0xe6bf51!=null&&typeof Object['getOwnPropertySymbols']==_0x15d72d(0x151)){for(var _0x4847f5=0x0,_0x29ccda=Object['getOwnPropertySymbols'](_0xe6bf51);_0x4847f5<_0x29ccda['length'];_0x4847f5++)_0x55d1d7[_0x15d72d(0x190)](_0x29ccda[_0x4847f5])<0x0&&Object[_0x15d72d(0x131)][_0x15d72d(0x139)][_0x15d72d(0x179)](_0xe6bf51,_0x29ccda[_0x4847f5])&&(_0x360245[_0x29ccda[_0x4847f5]]=_0xe6bf51[_0x29ccda[_0x4847f5]]);}return _0x360245;},_0x46bc35=_0x729d21[_0x4c5e09(0x1e1)](function(_0x5c3a6c,_0x5c62c8){var _0x5e6974=_0x4c5e09,_0x137aec=_0x5c3a6c[_0x5e6974(0x186)],_0x37ba80=_0x5c3a6c['id'],_0x64b281=_0x5c3a6c[_0x5e6974(0x19f)],_0x1f4315=_0x5c3a6c[_0x5e6974(0x19b)],_0x399165=_0x5b8eba(_0x5c3a6c,[_0x5e6974(0x186),'id',_0x5e6974(0x19f),_0x5e6974(0x19b)]),_0x386d7e=_0x5e6974(0x19d)[_0x5e6974(0x16e)](_0x37ba80,'\x20')[_0x5e6974(0x16e)](_0x64b281||'')[_0x5e6974(0x126)](),_0x5bfbf4=_0x729d21['useRef']('_'[_0x5e6974(0x16e)](_0x357d6a()));return _0x429918(_0x137aec,''[_0x5e6974(0x16e)](_0x37ba80),{'defIds':_0x137aec['defIds'],'idSuffix':_0x5bfbf4['current']},_0x50f362({'ref':_0x5c62c8,'className':_0x386d7e},_0x399165),_0x1f4315);});function _0x429918(_0x5b3765,_0x4df295,_0x5743ec,_0x3d4a05,_0x776e28){var _0x605a7a=_0x4c5e09;return _0x729d21[_0x605a7a(0x1d9)](_0x5b3765[_0x605a7a(0x1cf)],_0x50f362(_0x50f362({'key':_0x4df295},_0x20fdfb(_0x5b3765,_0x5743ec,_0x776e28)),_0x3d4a05),(_0x1cb026(_0x5b3765,_0x5743ec)['children']||[])[_0x605a7a(0x1b0)](function(_0x32ee8b,_0x278edb){var _0x9bdda2=_0x605a7a;return _0x429918(_0x32ee8b,''['concat'](_0x4df295,'-')[_0x9bdda2(0x16e)](_0x5b3765[_0x9bdda2(0x1cf)],'-')[_0x9bdda2(0x16e)](_0x278edb),_0x5743ec,void 0x0,_0x776e28);}));}function _0x20fdfb(_0x405e6a,_0x289c87,_0x39969f){var _0x9167a2=_0x4c5e09,_0x21fbd8=_0x50f362({},_0x405e6a[_0x9167a2(0x1fb)]);_0x39969f!=null&&_0x39969f[_0x9167a2(0x1fc)]&&_0x21fbd8[_0x9167a2(0x167)]===_0x9167a2(0x1fc)&&(_0x21fbd8['fill']=_0x39969f[_0x9167a2(0x1fc)]),_0x405e6a[_0x9167a2(0x1cf)]===_0x9167a2(0x16c)&&_0x21fbd8['id']&&(_0x21fbd8['id']=_0x21fbd8['id']+_0x289c87['idSuffix']),Object[_0x9167a2(0x1a9)](_0x21fbd8)[_0x9167a2(0x18a)](function(_0x503506){var _0x1d04df=_0x9167a2,_0x52b936=_0x503506[0x0],_0x733bca=_0x503506[0x1];_0x52b936===_0x1d04df(0x16c)&&typeof _0x733bca==_0x1d04df(0x176)&&(_0x21fbd8[_0x52b936]=_0x733bca[_0x1d04df(0x20d)](/url\(#(.*)\)/,'url(#$1'[_0x1d04df(0x16e)](_0x289c87[_0x1d04df(0x201)],')')));});var _0x1bf43f=_0x289c87[_0x9167a2(0x13e)];return!_0x1bf43f||_0x1bf43f['length']===0x0||(_0x405e6a[_0x9167a2(0x1cf)]===_0x9167a2(0x13a)&&_0x21fbd8[_0x9167a2(0x1ca)]&&(_0x21fbd8['xlink:href']=_0x21fbd8[_0x9167a2(0x1ca)]+_0x289c87[_0x9167a2(0x201)]),Object['entries'](_0x21fbd8)[_0x9167a2(0x18a)](function(_0x358ef3){var _0x342202=_0x9167a2,_0x51e6fa=_0x358ef3[0x0],_0x2ecbfa=_0x358ef3[0x1];typeof _0x2ecbfa==_0x342202(0x176)&&(_0x21fbd8[_0x51e6fa]=_0x2ecbfa['replace'](/url\(#(.*)\)/,_0x342202(0x210)[_0x342202(0x16e)](_0x289c87[_0x342202(0x201)],')')));})),_0x21fbd8;}function _0x1cb026(_0x408413,_0x14c0aa){var _0x15fadb=_0x4c5e09,_0x522a64,_0x1952a2=_0x14c0aa[_0x15fadb(0x13e)];return!_0x1952a2||_0x1952a2[_0x15fadb(0x174)]===0x0?_0x408413:_0x408413[_0x15fadb(0x1cf)]===_0x15fadb(0x150)&&(!((_0x522a64=_0x408413[_0x15fadb(0x178)])===null||_0x522a64===void 0x0)&&_0x522a64[_0x15fadb(0x174)])?_0x50f362(_0x50f362({},_0x408413),{'children':_0x408413['children'][_0x15fadb(0x1b0)](function(_0xb59c07){var _0xe381eb=_0x15fadb;return typeof _0xb59c07['attrs']['id']==_0xe381eb(0x176)&&_0x1952a2&&_0x1952a2[_0xe381eb(0x18f)](_0xb59c07[_0xe381eb(0x1fb)]['id'])?_0x50f362(_0x50f362({},_0xb59c07),{'attrs':_0x50f362(_0x50f362({},_0xb59c07[_0xe381eb(0x1fb)]),{'id':_0xb59c07[_0xe381eb(0x1fb)]['id']+_0x14c0aa['idSuffix']})}):_0xb59c07;})}):_0x408413;}function _0x357d6a(){var _0xaf4b96=_0x4c5e09;return Math[_0xaf4b96(0x188)]()[_0xaf4b96(0x1b6)](0x24)[_0xaf4b96(0x198)](0x2,0x8);}_0x46bc35['displayName']=_0x4c5e09(0x206);var _0x303fe9={'tag':_0x4c5e09(0x161),'attrs':{'xmlns':_0x4c5e09(0x1ee),'fill':_0x4c5e09(0x16b),'viewBox':'0\x200\x2017\x2017','width':_0x4c5e09(0x1f7),'height':_0x4c5e09(0x1f7)},'children':[{'tag':_0x4c5e09(0x1f2),'attrs':{'fill':'currentColor','d':_0x4c5e09(0x1d2)}},{'tag':_0x4c5e09(0x1f2),'attrs':{'fill':_0x4c5e09(0x11e),'d':_0x4c5e09(0x1ad),'fillRule':_0x4c5e09(0x1bb),'clipRule':'evenodd'}}]},_0x3807a3=_0x729d21[_0x4c5e09(0x1e1)](function(_0x55a548,_0x5c29c8){var _0x3975ad=_0x4c5e09;return _0x729d21[_0x3975ad(0x1d9)](_0x46bc35,Object[_0x3975ad(0x14d)]({},_0x55a548,{'id':_0x3975ad(0x128),'ref':_0x5c29c8,'icon':_0x303fe9}));});_0x3807a3[_0x4c5e09(0x13c)]=_0x4c5e09(0x157);var _0x454fd7=Object[_0x4c5e09(0x1f0)],_0x5c594b=(_0x1f6bf6,_0x435f37,_0x4fb47b,_0x36472b)=>{var _0x2b3319=_0x4c5e09;for(var _0x4a1c8f=_0x36472b>0x1?void 0x0:_0x36472b?_0x454fd7(_0x435f37,_0x4fb47b):_0x435f37,_0x38e840=_0x1f6bf6[_0x2b3319(0x174)]-0x1,_0x5dcfcd;_0x38e840>=0x0;_0x38e840--)(_0x5dcfcd=_0x1f6bf6[_0x38e840])&&(_0x4a1c8f=_0x5dcfcd(_0x4a1c8f)||_0x4a1c8f);return _0x4a1c8f;},_0x78031=(_0x4dd8f0,_0x57f7b8)=>(_0x18c732,_0x207320)=>_0x57f7b8(_0x18c732,_0x207320,_0x4dd8f0);_0x5c5e6d[_0x4c5e09(0x1e7)]=class extends _0x39c984[_0x4c5e09(0x11c)]{constructor(_0x2c3769,_0x43067a,_0x5d9298){var _0x21ca92=_0x4c5e09;super(),_0x4b08bd(this,_0x21ca92(0x144),new Map()),(this['_univerInstanceService']=_0x2c3769,this['_injector']=_0x43067a,this[_0x21ca92(0x183)]=_0x5d9298,this[_0x21ca92(0x17f)]());}async[_0x4c5e09(0x170)](_0x292acb){var _0xd9a74b=_0x4c5e09;return this[_0xd9a74b(0x144)]['has'](_0x292acb)||await this[_0xd9a74b(0x1f3)](_0x292acb),this[_0xd9a74b(0x144)]['get'](_0x292acb);}[_0x4c5e09(0x17f)](){var _0x1c9e0a=_0x4c5e09;this[_0x1c9e0a(0x127)][_0x1c9e0a(0x15f)](_0x39c984[_0x1c9e0a(0x202)][_0x1c9e0a(0x1e6)])[_0x1c9e0a(0x1ae)](_0x2fe6ef['takeUntil'](this[_0x1c9e0a(0x199)]))[_0x1c9e0a(0x17a)](async _0x911d8a=>{var _0x294b77=_0x1c9e0a;const _0x506b10=_0x911d8a[_0x294b77(0x1bc)]();this[_0x294b77(0x144)][_0x294b77(0x1ac)](_0x506b10)||this['_startLiveShareCoordinator'](_0x506b10);}),this[_0x1c9e0a(0x127)][_0x1c9e0a(0x1c4)](_0x39c984[_0x1c9e0a(0x202)]['UNIVER_SHEET'])['pipe'](_0x2fe6ef[_0x1c9e0a(0x143)](this[_0x1c9e0a(0x199)]))['subscribe'](_0x4bfcbd=>{var _0xb11c6=_0x1c9e0a;const _0x5a4196=_0x4bfcbd[_0xb11c6(0x1bc)](),_0x5c23e5=this[_0xb11c6(0x144)][_0xb11c6(0x1d3)](_0x5a4196);_0x5c23e5==null||_0x5c23e5[_0xb11c6(0x14a)]();});}async[_0x4c5e09(0x1f3)](_0x18bd2e){var _0x3d2d93=_0x4c5e09;const _0x2be9ab=await this[_0x3d2d93(0x183)][_0x3d2d93(0x1c7)](_0x18bd2e),_0x43b359=this[_0x3d2d93(0x1ce)][_0x3d2d93(0x160)](_0x5c5e6d[_0x3d2d93(0x12b)],_0x18bd2e,_0x2be9ab);return _0x43b359[_0x3d2d93(0x14b)](),this[_0x3d2d93(0x144)][_0x3d2d93(0x12a)](_0x18bd2e,_0x43b359),_0x43b359;}},_0x5c5e6d[_0x4c5e09(0x1e7)]=_0x5c594b([_0x78031(0x0,_0x39c984['IUniverInstanceService']),_0x78031(0x1,_0x39c984[_0x4c5e09(0x1c1)](_0x39c984[_0x4c5e09(0x1a6)])),_0x78031(0x2,_0x39c984[_0x4c5e09(0x1c1)](_0x2e1099[_0x4c5e09(0x13f)]))],_0x5c5e6d[_0x4c5e09(0x1e7)]);var _0x4e635a=(_0x17baaa=>(_0x17baaa[_0x4c5e09(0x181)]='offline',_0x17baaa['IDLE']=_0x4c5e09(0x1df),_0x17baaa['FOLLOWING']='following',_0x17baaa['NOT_FOLLOWING']=_0x4c5e09(0x1d1),_0x17baaa[_0x4c5e09(0x1cb)]=_0x4c5e09(0x1db),_0x17baaa))(_0x4e635a||{});const _0x4e3a7f=_0x4c5e09(0x141),_0x3d8891=0xc8;_0x5c5e6d[_0x4c5e09(0x12b)]=class extends _0x39c984[_0x4c5e09(0x11c)]{constructor(_0x4248de,_0x20afe3,_0x1858a4,_0x49d75c,_0xdfe8af){var _0x31d9ff=_0x4c5e09;super(),_0x4b08bd(this,_0x31d9ff(0x1a4),new _0x5e051f['BehaviorSubject'](_0x31d9ff(0x1df))),_0x4b08bd(this,_0x31d9ff(0x168),this[_0x31d9ff(0x1a4)]['asObservable']()),_0x4b08bd(this,_0x31d9ff(0x17f),!0x1),_0x4b08bd(this,_0x31d9ff(0x12e),null),_0x4b08bd(this,_0x31d9ff(0x171),null),(this[_0x31d9ff(0x1e0)]=_0x4248de,this[_0x31d9ff(0x15b)]=_0x20afe3,this[_0x31d9ff(0x1f4)]=_0x1858a4,this[_0x31d9ff(0x18c)]=_0x49d75c,this['_commandService']=_0xdfe8af);}get['_status'](){var _0x2b8c63=_0x4c5e09;return this[_0x2b8c63(0x1a4)][_0x2b8c63(0x1b3)]();}[_0x4c5e09(0x14a)](){var _0x309d56=_0x4c5e09,_0xe4e9b3;(_0xe4e9b3=this[_0x309d56(0x12e)])==null||_0xe4e9b3[_0x309d56(0x14a)](),this[_0x309d56(0x1a4)]['next']('idle'),this[_0x309d56(0x1a4)]['complete']();}[_0x4c5e09(0x14b)](){var _0x32427c=_0x4c5e09;this[_0x32427c(0x17f)]||(this[_0x32427c(0x17f)]=!0x0,this[_0x32427c(0x15b)][_0x32427c(0x14f)][_0x32427c(0x1ae)](_0x2fe6ef[_0x32427c(0x143)](this['dispose$']))[_0x32427c(0x17a)](_0xe68a53=>{var _0xeb68ec=_0x32427c;switch(_0xe68a53){case _0x2e1099[_0xeb68ec(0x1fe)][_0xeb68ec(0x181)]:this[_0xeb68ec(0x192)]();break;case _0x2e1099[_0xeb68ec(0x1fe)][_0xeb68ec(0x12d)]:this['_handleOnline']();break;}}),this[_0x32427c(0x15b)]['event$'][_0x32427c(0x1ae)](_0x2fe6ef[_0x32427c(0x143)](this[_0x32427c(0x199)]))[_0x32427c(0x17a)](_0x39c866=>{var _0x2a5456=_0x32427c;const {eventID:_0x3f14be}=_0x39c866;switch(_0x3f14be){case _0x127ee2['CollaborationEvent'][_0x2a5456(0x17c)]:this[_0x2a5456(0x19c)](_0x39c866);break;case _0x127ee2[_0x2a5456(0x166)][_0x2a5456(0x194)]:this[_0x2a5456(0x142)](_0x39c866);break;case _0x127ee2[_0x2a5456(0x166)]['LIVESHARE_TERMINATE']:this[_0x2a5456(0x185)]();break;case _0x127ee2[_0x2a5456(0x166)][_0x2a5456(0x1af)]:this['_handleNewChangeSets'](_0x39c866);break;}}));}[_0x4c5e09(0x1f6)](){var _0x14ac54=_0x4c5e09;this[_0x14ac54(0x15b)][_0x14ac54(0x136)]({'eventID':_0x127ee2['CollaborationEvent'][_0x14ac54(0x184)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x14ac54(0x1b1)]()}},this[_0x14ac54(0x1e0)]);}['stopPresenting'](){var _0x1c754b=_0x4c5e09;this[_0x1c754b(0x20e)]==='presenting'&&(this[_0x1c754b(0x1a4)][_0x1c754b(0x1c8)](_0x1c754b(0x1df)),this[_0x1c754b(0x15b)]['send']({'eventID':_0x127ee2[_0x1c754b(0x166)][_0x1c754b(0x163)],'data':{'unitID':this[_0x1c754b(0x1e0)]}},this[_0x1c754b(0x1e0)]));}[_0x4c5e09(0x17d)](){var _0x5f41b0=_0x4c5e09;this['_status']==='not-following'&&(this[_0x5f41b0(0x1a4)][_0x5f41b0(0x1c8)](_0x5f41b0(0x15a)),this[_0x5f41b0(0x122)]());}[_0x4c5e09(0x1d7)](){var _0x6ebd8e=_0x4c5e09;this[_0x6ebd8e(0x20e)]===_0x6ebd8e(0x15a)&&this[_0x6ebd8e(0x20c)]();}[_0x4c5e09(0x19c)](_0x37d12d){var _0x16d2d4=_0x4c5e09;const {presenter:_0x4ce097}=_0x37d12d[_0x16d2d4(0x19a)],_0x24ee70=this['_collabSession']['getMemberID']();this[_0x16d2d4(0x171)]=_0x4ce097,_0x4ce097===_0x24ee70?(this[_0x16d2d4(0x20c)](),this[_0x16d2d4(0x140)]()):this['_status']!==_0x16d2d4(0x1d1)&&(this[_0x16d2d4(0x175)](),this[_0x16d2d4(0x122)]());}[_0x4c5e09(0x13d)](){var _0x4e721d=_0x4c5e09;const _0x4cf4c8={'eventID':_0x127ee2[_0x4e721d(0x166)][_0x4e721d(0x146)]};this[_0x4e721d(0x15b)][_0x4e721d(0x136)](_0x4cf4c8,this[_0x4e721d(0x1e0)]);}[_0x4c5e09(0x185)](){var _0x279348=_0x4c5e09;this[_0x279348(0x171)]=null,this['_status']!=='presenting'&&this[_0x279348(0x16d)]();}[_0x4c5e09(0x119)](_0x57c38b){var _0x575948=_0x4c5e09;if(this[_0x575948(0x20e)]===_0x575948(0x15a)&&this['_presenter']===_0x57c38b[_0x575948(0x19a)][_0x575948(0x149)]){const _0x130aee=_0x127ee2[_0x575948(0x205)](_0x57c38b['data'])[_0x575948(0x12f)][_0x575948(0x209)]()[_0x575948(0x158)](_0x13a76b=>_0x13a76b['id']===_0x2b4a1e[_0x575948(0x1c2)]['id']);if(_0x130aee){const _0x506c55=_0x130aee[_0x575948(0x1f1)][_0x575948(0x1a2)],_0x235e6d=_0x130aee[_0x575948(0x1f1)]['sheet']['id'];setTimeout(()=>{var _0x35aac3=_0x575948;this[_0x35aac3(0x1c3)]['executeCommand'](_0x2b4a1e[_0x35aac3(0x11a)]['id'],{'unitId':_0x506c55,'subUnitId':_0x235e6d},{'fromCollab':!0x0});});}}}[_0x4c5e09(0x140)](){var _0x100926=_0x4c5e09;this[_0x100926(0x1a4)][_0x100926(0x1c8)](_0x100926(0x1db));const _0x36439b=new Map(),_0x23771f=this['_commandDisposable']=new _0x39c984['DisposableCollection']();_0x23771f[_0x100926(0x130)](_0x39c984['toDisposable'](()=>{var _0x3878f8=_0x100926;_0x36439b[_0x3878f8(0x18a)](_0x55fa16=>_0x55fa16['complete']()),_0x36439b[_0x3878f8(0x1b5)]();})),_0x23771f[_0x100926(0x130)](this[_0x100926(0x1c3)][_0x100926(0x1cc)](_0x2c38a9=>{var _0x34335b=_0x100926,_0x59127a;if(_0x2c38a9[_0x34335b(0x165)]!==_0x39c984['CommandType'][_0x34335b(0x1e8)]||!this['_liveShareService'][_0x34335b(0x152)](_0x2c38a9['id']))return;const {id:_0x7aa03}=_0x2c38a9;let _0x1bf239;_0x36439b[_0x34335b(0x1ac)](_0x7aa03)?_0x1bf239=_0x36439b['get'](_0x7aa03):(_0x1bf239=new _0x5e051f[(_0x34335b(0x1c0))](),_0x36439b[_0x34335b(0x12a)](_0x7aa03,_0x1bf239),_0x1bf239[_0x34335b(0x1ae)](_0x2fe6ef[_0x34335b(0x1ba)]((_0x59127a=this[_0x34335b(0x1f4)][_0x34335b(0x129)](_0x4e3a7f))!=null?_0x59127a:_0x3d8891,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x34335b(0x17a)](_0x20ecdf=>{var _0x1f62ec=_0x34335b;this[_0x1f62ec(0x15b)][_0x1f62ec(0x136)]({'eventID':_0x127ee2[_0x1f62ec(0x166)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1f62ec(0x1e0)],'operations':{[_0x20ecdf['id']]:{'id':_0x20ecdf['id'],'params':JSON[_0x1f62ec(0x135)](_0x20ecdf[_0x1f62ec(0x1f1)])}}}},this[_0x1f62ec(0x1e0)]);})),_0x1bf239['next'](_0x2c38a9);})),this[_0x100926(0x18c)][_0x100926(0x18e)](this[_0x100926(0x1e0)])['forEach'](_0x294cb3=>this['_collabSession'][_0x100926(0x136)]({'eventID':_0x127ee2['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x100926(0x1e0)],'operations':{[_0x294cb3['id']]:{'id':_0x294cb3['id'],'params':JSON[_0x100926(0x135)](_0x294cb3[_0x100926(0x1f1)])}}}},this[_0x100926(0x1e0)]));}[_0x4c5e09(0x175)](){var _0x4b6b74=_0x4c5e09,_0x25f724;this['_status$'][_0x4b6b74(0x1c8)](_0x4b6b74(0x1df)),(_0x25f724=this[_0x4b6b74(0x12e)])==null||_0x25f724[_0x4b6b74(0x14a)](),this[_0x4b6b74(0x12e)]=null;}[_0x4c5e09(0x122)](){var _0x433ffb=_0x4c5e09,_0x1a29d0;(_0x1a29d0=this['_commandDisposable'])==null||_0x1a29d0[_0x433ffb(0x14a)](),this[_0x433ffb(0x1a4)]['next'](_0x433ffb(0x15a));}[_0x4c5e09(0x16d)](){var _0x4471a1=_0x4c5e09,_0x39710f;this[_0x4471a1(0x1a4)][_0x4471a1(0x1c8)]('idle'),(_0x39710f=this[_0x4471a1(0x12e)])==null||_0x39710f[_0x4471a1(0x14a)](),this[_0x4471a1(0x12e)]=null;}['_stopFollowing'](){var _0x5aff41=_0x4c5e09,_0x3cf0f6;this[_0x5aff41(0x1a4)]['next'](_0x5aff41(0x1d1)),(_0x3cf0f6=this[_0x5aff41(0x12e)])==null||_0x3cf0f6[_0x5aff41(0x14a)]();}[_0x4c5e09(0x142)](_0xafa8cf){var _0x32341=_0x4c5e09;if([_0x32341(0x1db),'not-following',_0x32341(0x1aa)][_0x32341(0x18f)](this[_0x32341(0x20e)])||!_0xafa8cf['data']['presenter']||_0xafa8cf[_0x32341(0x19a)][_0x32341(0x173)]===this[_0x32341(0x15b)][_0x32341(0x1b1)]())return;this[_0x32341(0x20e)]===_0x32341(0x1df)&&this[_0x32341(0x122)]();const _0x1c1d5f=_0xafa8cf[_0x32341(0x19a)][_0x32341(0x16a)];Object[_0x32341(0x11d)](_0x1c1d5f)['forEach'](_0x1d2542=>{var _0x2f045a=_0x32341;this[_0x2f045a(0x1c3)][_0x2f045a(0x125)](_0x1d2542['id'],_0x1d2542[_0x2f045a(0x1f1)]?JSON[_0x2f045a(0x1a7)](_0x1d2542[_0x2f045a(0x1f1)]):null,{'fromCollab':!0x0});});}[_0x4c5e09(0x192)](){var _0x46b489=_0x4c5e09,_0x3002d5;this[_0x46b489(0x1a4)][_0x46b489(0x1c8)]('offline'),(_0x3002d5=this['_commandDisposable'])==null||_0x3002d5[_0x46b489(0x14a)]();}[_0x4c5e09(0x1d6)](){var _0x4152cd=_0x4c5e09;this[_0x4152cd(0x1a4)][_0x4152cd(0x1c8)](_0x4152cd(0x1df)),this[_0x4152cd(0x13d)]();}},_0x5c5e6d[_0x4c5e09(0x12b)]=_0x5c594b([_0x78031(0x2,_0x39c984[_0x4c5e09(0x208)]),_0x78031(0x3,_0x39c984[_0x4c5e09(0x1c1)](_0x5adf86)),_0x78031(0x4,_0x39c984['ICommandService'])],_0x5c5e6d[_0x4c5e09(0x12b)]);function _0x413f92(){var _0x3853e5=_0x4c5e09;const _0x2b18d9=_0x431e11[_0x3853e5(0x1b2)](_0x5c5e6d[_0x3853e5(0x1e7)]),_0x262caa=_0x431e11[_0x3853e5(0x1b2)](_0x39c984['IUniverInstanceService']),_0x3cb435=_0x431e11[_0x3853e5(0x1fa)](()=>_0x262caa['getCurrentTypeOfUnit$'](_0x39c984[_0x3853e5(0x202)][_0x3853e5(0x1e6)]),void 0x0,!0x1,[]),[_0x1c7619,_0x41da06]=_0x729d21[_0x3853e5(0x191)](null),[_0x38f81e,_0x197e61]=_0x729d21[_0x3853e5(0x191)](_0x4e635a[_0x3853e5(0x1bd)]),_0x1f4daa=_0x729d21[_0x3853e5(0x1b7)](null);return _0x729d21[_0x3853e5(0x19e)](()=>(_0x3cb435&&_0x2b18d9[_0x3853e5(0x170)](_0x3cb435[_0x3853e5(0x1bc)]())[_0x3853e5(0x147)](_0x3dfe92=>{var _0x5eb92d=_0x3853e5;_0x41da06(_0x3dfe92),_0x1f4daa[_0x5eb92d(0x17e)]=_0x3dfe92[_0x5eb92d(0x168)]['subscribe'](_0x341c6f=>{_0x197e61(_0x341c6f);});}),()=>{var _0x5dbe9b=_0x3853e5,_0xd0b6cb;(_0xd0b6cb=_0x1f4daa[_0x5dbe9b(0x17e)])==null||_0xd0b6cb[_0x5dbe9b(0x1a5)](),_0x1f4daa['current']=null;}),[_0x3cb435,_0x2b18d9]),_0x1c7619?_0x284ad2['jsx'](_0x137abf[_0x3853e5(0x189)],{'align':_0x3853e5(0x187),'disabled':_0x38f81e===_0x4e635a[_0x3853e5(0x181)],'className':_0x3853e5(0x172),'overlay':_0x284ad2['jsx'](_0x1c191b,{'status':_0x38f81e,'coordinator':_0x1c7619}),'children':_0x284ad2[_0x3853e5(0x153)](_0x3853e5(0x123),{'className':_0x137abf[_0x3853e5(0x156)](_0x3853e5(0x1f9),{'univer-cursor-not-allowed':_0x38f81e===_0x4e635a['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x38f81e!==_0x4e635a[_0x3853e5(0x181)]}),'type':_0x3853e5(0x123),'children':_0x284ad2[_0x3853e5(0x153)](_0x3807a3,{'className':_0x3853e5(0x169)})})}):null;}function _0x1c191b(_0x207811){var _0x2170db=_0x4c5e09;const {status:_0x35ddbe,coordinator:_0x5b3cf1}=_0x207811;switch(_0x35ddbe){case _0x4e635a['IDLE']:return _0x284ad2[_0x2170db(0x153)](_0x1ea86b,{'coordinator':_0x5b3cf1});case _0x4e635a[_0x2170db(0x1a8)]:return _0x284ad2[_0x2170db(0x153)](_0x59eaa4,{'coordinator':_0x5b3cf1});case _0x4e635a[_0x2170db(0x1c6)]:return _0x284ad2[_0x2170db(0x153)](_0x4b01bf,{'coordinator':_0x5b3cf1});case _0x4e635a[_0x2170db(0x181)]:return _0x284ad2[_0x2170db(0x153)](_0x42da00,{});case _0x4e635a[_0x2170db(0x1cb)]:return _0x284ad2[_0x2170db(0x153)](_0xaad1bf,{'coordinator':_0x5b3cf1});default:return null;}}function _0x1ea86b(_0x53937b){var _0x482cde=_0x4c5e09;const {coordinator:_0x36637a}=_0x53937b;return _0x284ad2[_0x482cde(0x1b4)](_0x284ad2[_0x482cde(0x193)],{'children':[_0x284ad2[_0x482cde(0x153)](_0x482cde(0x120),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x482cde(0x14c)}),_0x284ad2[_0x482cde(0x153)](_0x137abf['Button'],{'onClick':()=>_0x36637a[_0x482cde(0x1f6)](),'children':_0x482cde(0x133)})]});}function _0x59eaa4(_0x1b045d){var _0x1c592f=_0x4c5e09;const {coordinator:_0x3ce86d}=_0x1b045d;return _0x284ad2[_0x1c592f(0x1b4)](_0x284ad2['Fragment'],{'children':[_0x284ad2[_0x1c592f(0x153)](_0x1c592f(0x120),{'className':_0x1c592f(0x137),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x284ad2[_0x1c592f(0x153)](_0x137abf[_0x1c592f(0x162)],{'onClick':()=>_0x3ce86d[_0x1c592f(0x1d7)](),'children':_0x1c592f(0x132)})]});}function _0x4b01bf(_0x180724){var _0x286e67=_0x4c5e09;const {coordinator:_0xd47f98}=_0x180724;return _0x284ad2['jsxs'](_0x284ad2[_0x286e67(0x193)],{'children':[_0x284ad2[_0x286e67(0x153)](_0x286e67(0x120),{'className':_0x286e67(0x137),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x284ad2[_0x286e67(0x153)](_0x137abf[_0x286e67(0x162)],{'variant':_0x286e67(0x155),'onClick':()=>_0xd47f98[_0x286e67(0x17d)](),'children':_0x286e67(0x1be)})]});}function _0xaad1bf(_0x36d310){var _0xfd41a1=_0x4c5e09;const {coordinator:_0x146bf5}=_0x36d310;return _0x284ad2['jsxs'](_0x284ad2[_0xfd41a1(0x193)],{'children':[_0x284ad2[_0xfd41a1(0x153)](_0xfd41a1(0x120),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x284ad2[_0xfd41a1(0x153)](_0x137abf[_0xfd41a1(0x162)],{'variant':_0xfd41a1(0x196),'onClick':()=>_0x146bf5['stopPresenting'](),'children':_0xfd41a1(0x18b)})]});}function _0x42da00(){var _0x5e9c2c=_0x4c5e09;return _0x284ad2['jsx'](_0x284ad2['Fragment'],{'children':_0x5e9c2c(0x1a1)});}var _0x3f45f1=Object[_0x4c5e09(0x1f0)],_0x43f28b=(_0xdd377a,_0x5d6c99,_0x27b676,_0x4fe2f1)=>{var _0x1b70d9=_0x4c5e09;for(var _0x12acdd=_0x4fe2f1>0x1?void 0x0:_0x4fe2f1?_0x3f45f1(_0x5d6c99,_0x27b676):_0x5d6c99,_0x25f30b=_0xdd377a[_0x1b70d9(0x174)]-0x1,_0xb2ecb;_0x25f30b>=0x0;_0x25f30b--)(_0xb2ecb=_0xdd377a[_0x25f30b])&&(_0x12acdd=_0xb2ecb(_0x12acdd)||_0x12acdd);return _0x12acdd;},_0x475be3=(_0x5a90b7,_0x23da82)=>(_0x19fb7d,_0x3d5d73)=>_0x23da82(_0x19fb7d,_0x3d5d73,_0x5a90b7);_0x5c5e6d['DesktopLiveShareController']=class extends _0x39c984['Disposable']{constructor(_0x49a86d,_0x40174a){var _0x21e46a=_0x4c5e09;super(),this['_injector']=_0x49a86d,this[_0x21e46a(0x203)]=_0x40174a,this[_0x21e46a(0x13b)]();}['_mountLiveShare'](){var _0x16b71e=_0x4c5e09;this['disposeWithMe'](this[_0x16b71e(0x203)][_0x16b71e(0x1fd)](_0x431e11['BuiltInUIPart'][_0x16b71e(0x182)],()=>_0x431e11['connectInjector'](_0x413f92,this['_injector'])));}},_0x5c5e6d['DesktopLiveShareController']=_0x43f28b([_0x475be3(0x0,_0x39c984['Inject'](_0x39c984[_0x4c5e09(0x1a6)])),_0x475be3(0x1,_0x431e11[_0x4c5e09(0x164)])],_0x5c5e6d[_0x4c5e09(0x1c5)]);var _0xc2df4c=Object[_0x4c5e09(0x1dc)],_0x4d4437=Object[_0x4c5e09(0x1f0)],_0x1dda85=(_0x1f458b,_0x17ec28,_0x43685c)=>_0x17ec28 in _0x1f458b?_0xc2df4c(_0x1f458b,_0x17ec28,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43685c}):_0x1f458b[_0x17ec28]=_0x43685c,_0x2859e9=(_0x3548c0,_0x325e74,_0x35faf0,_0xcce7aa)=>{var _0x2b4878=_0x4c5e09;for(var _0x52ed09=_0xcce7aa>0x1?void 0x0:_0xcce7aa?_0x4d4437(_0x325e74,_0x35faf0):_0x325e74,_0x2e3263=_0x3548c0[_0x2b4878(0x174)]-0x1,_0x2dd1d6;_0x2e3263>=0x0;_0x2e3263--)(_0x2dd1d6=_0x3548c0[_0x2e3263])&&(_0x52ed09=_0x2dd1d6(_0x52ed09)||_0x52ed09);return _0x52ed09;},_0x143219=(_0x25bd52,_0x1d5ccc)=>(_0x5b4ddf,_0x3cebdf)=>_0x1d5ccc(_0x5b4ddf,_0x3cebdf,_0x25bd52),_0x3b8898=(_0x40449e,_0x54cefd,_0x476de4)=>_0x1dda85(_0x40449e,typeof _0x54cefd!=_0x4c5e09(0x20f)?_0x54cefd+'':_0x54cefd,_0x476de4);const _0x56184c=_0x4c5e09(0x1e3);_0x5c5e6d[_0x4c5e09(0x15c)]=class extends _0x39c984[_0x4c5e09(0x145)]{constructor(_0x1223e7=_0x4769ab,_0x1a674e,_0x5e959c){var _0x5a339f=_0x4c5e09;super(),this['_config']=_0x1223e7,this[_0x5a339f(0x1ce)]=_0x1a674e,this['_configService']=_0x5e959c;const {..._0x482288}=_0x39c984[_0x5a339f(0x1bf)]({},_0x4769ab,this[_0x5a339f(0x207)]);this['_configService'][_0x5a339f(0x1f5)](_0x430006,_0x482288);}[_0x4c5e09(0x1f8)](){var _0x51dccd=_0x4c5e09;_0x39c984[_0x51dccd(0x11f)](this[_0x51dccd(0x1ce)],_0x39c984[_0x51dccd(0x20a)]([[_0x5adf86],[_0x5c5e6d[_0x51dccd(0x1e7)]],[_0x2d7496],[_0x5c5e6d[_0x51dccd(0x1c5)]]],this[_0x51dccd(0x207)]['override'])),_0x39c984[_0x51dccd(0x1eb)](this[_0x51dccd(0x1ce)],[[_0x2d7496]]);}[_0x4c5e09(0x195)](){var _0x12e3f9=_0x4c5e09;_0x39c984[_0x12e3f9(0x1eb)](this[_0x12e3f9(0x1ce)],[[_0x5c5e6d[_0x12e3f9(0x1c5)]]]);}},_0x3b8898(_0x5c5e6d[_0x4c5e09(0x15c)],_0x4c5e09(0x165),_0x39c984['UniverInstanceType']['UNIVER_UNKNOWN']),_0x3b8898(_0x5c5e6d[_0x4c5e09(0x15c)],_0x4c5e09(0x1d5),_0x56184c),_0x5c5e6d['UniverLiveSharePlugin']=_0x2859e9([_0x39c984[_0x4c5e09(0x15d)](_0x2e1099[_0x4c5e09(0x177)]),_0x143219(0x1,_0x39c984[_0x4c5e09(0x1c1)](_0x39c984[_0x4c5e09(0x1a6)])),_0x143219(0x2,_0x39c984[_0x4c5e09(0x208)])],_0x5c5e6d[_0x4c5e09(0x15c)]),_0x5c5e6d[_0x4c5e09(0x1ed)]=_0x413f92,_0x5c5e6d[_0x4c5e09(0x1ff)]=_0x5adf86,_0x5c5e6d[_0x4c5e09(0x20b)]=_0x4e635a,Object[_0x4c5e09(0x1dc)](_0x5c5e6d,Symbol['toStringTag'],{'value':_0x4c5e09(0x200)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.10.0-nightly.202507310307",
3
+ "version": "0.10.1-nightly.202508020912",
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.0-nightly.202507310307",
51
- "@univerjs-pro/collaboration-client": "0.10.0-nightly.202507310307",
52
- "@univerjs/core": "0.10.0-nightly.202507310307",
53
- "@univerjs/design": "0.10.0-nightly.202507310307",
54
- "@univerjs/sheets-ui": "0.10.0-nightly.202507310307",
55
- "@univerjs/ui": "0.10.0-nightly.202507310307",
56
- "@univerjs/sheets": "0.10.0-nightly.202507310307"
50
+ "@univerjs-pro/collaboration-client": "0.10.1-nightly.202508020912",
51
+ "@univerjs/core": "0.10.1-nightly.202508020912",
52
+ "@univerjs-pro/collaboration": "0.10.1-nightly.202508020912",
53
+ "@univerjs/design": "0.10.1-nightly.202508020912",
54
+ "@univerjs/sheets-ui": "0.10.1-nightly.202508020912",
55
+ "@univerjs/ui": "0.10.1-nightly.202508020912",
56
+ "@univerjs/sheets": "0.10.1-nightly.202508020912"
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.0",
66
+ "@univerjs-infra/shared": "0.10.1",
67
67
  "@univerjs/protocol": "0.1.47-alpha.0"
68
68
  },
69
69
  "scripts": {