@univerjs-pro/live-share 0.2.4-alpha.0 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +17 -17
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x53ec40=_0x53c1;(function(_0x3df506,_0x579bfd){var _0x3800dd=_0x53c1,_0x2839ef=_0x3df506();while(!![]){try{var _0x15effc=parseInt(_0x3800dd(0x18b))/0x1*(parseInt(_0x3800dd(0x13f))/0x2)+parseInt(_0x3800dd(0xed))/0x3+-parseInt(_0x3800dd(0x171))/0x4+-parseInt(_0x3800dd(0x16c))/0x5*(-parseInt(_0x3800dd(0x11e))/0x6)+-parseInt(_0x3800dd(0x135))/0x7+-parseInt(_0x3800dd(0xcc))/0x8*(-parseInt(_0x3800dd(0x194))/0x9)+-parseInt(_0x3800dd(0x152))/0xa;if(_0x15effc===_0x579bfd)break;else _0x2839ef['push'](_0x2839ef['shift']());}catch(_0x33e5db){_0x2839ef['push'](_0x2839ef['shift']());}}}(_0x394d,0xe838b));var H=Object[_0x53ec40(0x132)],V=(_0x4630f2,_0x670a33,_0x392097)=>_0x670a33 in _0x4630f2?H(_0x4630f2,_0x670a33,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x392097}):_0x4630f2[_0x670a33]=_0x392097,d=(_0x1b44e8,_0x371f8d,_0x1ec343)=>V(_0x1b44e8,typeof _0x371f8d!='symbol'?_0x371f8d+'':_0x371f8d,_0x1ec343);Object['defineProperty'](exports,Symbol[_0x53ec40(0x140)],{'value':'Module'});const a=require(_0x53ec40(0x19b)),b=require('@univerjs-pro/collaboration-client'),w=require(_0x53ec40(0x12f)),P=require(_0x53ec40(0x192)),h=require(_0x53ec40(0x19a)),L=require(_0x53ec40(0x12b)),g=require(_0x53ec40(0xdd)),N=require(_0x53ec40(0xe5)),m=require(_0x53ec40(0xd3)),M=require('clsx'),s=require('react');function _0x394d(){var _0x31e061=['_handleOperation','from','children','length','Disposable','indexOf','startFollowing','takeUntil','_entities','send','getValue','liveShareDropdownTitle','_status$','_uiPartsService','PRESENTING','_collabSessionService','className','CollaborationEvent','You\x27re\x20not\x20following\x20the\x20presenter','includes','createInstance','getConfig','call','Subject','useRef','useDependency','NOT_FOLLOWING','UNIVER_LIVE_SHARE_PLUGIN','defs','Inject','live-share-status-','stopPresenting','_stopFollowing','small','default','useObservable','fill','SetScrollOperation','disposeWithMe','_configService','svg','text','operations','set','current','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','DependentOn','132APZNfJ','LIVESHARE_FETCH_OPERATIONS','liveShareDropdown','univer-live-share','memberID','defIds','SetWorksheetActiveOperation','stringify','pipe','tag','map','registerInitialStateReporter','connectInjector','rxjs','UniverInstanceType','getMemberID','offline','@univerjs/sheets','ICommandService','parseProtocolChangeset','defineProperty','Dropdown','_handleTerminate','8278494ZHXVwt','pluginName','dispose$','LiveShareService','createElement','add','sessionStatus$','Fragment','LifecycleStages','_startPresenting','8xJGNvd','toStringTag','LIVESHARE_OPERATION','getLiveShareCoordinator','init','LIVESHARE_TERMINATE','find','_collabSession','use','sheet','extend','presenter','params','requireSession','getOwnPropertyDescriptor','unitId','0\x200\x2017\x2017','_beIdle','icon','25656230uxisha','_univerInstanceService','parse','UniverCollaborationClientPlugin','evenodd','useState','get','IDLE','_startFollowing','SAME_OPERATION_SHARE_INTERVAL','idle','OnLifecycle','live-share-single','idSuffix','useEffect','random','asObservable','path','UNIVER_SHEET','data','SessionStatus','UniverLiveSharePlugin','InsertSheetMutation','div','_liveShareService','IUniverInstanceService','323810kQwJVB','then','presenting','getCurrentTypeOfUnit$','_commandService','1503108iblfKi','IConfigService','_fetchOperations','LIVESHARE_NEW_HOST','reverse','tryStartPresenting','attrs','colorChannel1','dispose','assign','Start\x20following','getTypeOfUnitDisposed$','shouldShareOperation','Button','toDisposable','xlink:href','symbol','_sharedOperations','delete','string','substring','registerComponent','_init','has','You\x27re\x20presenting\x20the\x20document','forEach','311547DaHTDU','_commandDisposable','following','not-following','Present\x20this\x20document','function','_reporters','@univerjs/sheets-ui','getUnitId','9fTIQtP','currentColor','onCommandExecuted','displayName','executeCommand','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','@univerjs-pro/collaboration','@univerjs/core','url(#$1','univer-live-share-status-offline','getInitialStates','OPERATION','_handleOnline','_handleOffline','_startLiveShareCoordinator','univer-live-share-dropdown','7850152uCWpig','unsubscribe','event$','entries','subscribe','complete','BehaviorSubject','@univerjs/design','next','concat','_handleNewChangeSets','Stop\x20following','status$','_status','coordinator','OFFLINE','stopFollowing','rxjs/operators','prototype','UniverIcon','HEADER_MENU','_unitID','_mountLiveShare','apply','click','@univerjs/ui','FOLLOWING','1em','RxDisposable','forwardRef','_presenter','_injector','You\x27re\x20following\x20the\x20presenter','4269000LHguRn','Injector'];_0x394d=function(){return _0x31e061;};return _0x394d();}class D extends a['Disposable']{constructor(){var _0x55c563=_0x53ec40;super(...arguments),d(this,_0x55c563(0x182),new Set()),d(this,_0x55c563(0x191),new Set());}['registerSharedOperation'](_0x2c7ad3){var _0x3a69d9=_0x53ec40;return this[_0x3a69d9(0x182)][_0x3a69d9(0x13a)](_0x2c7ad3),a[_0x3a69d9(0x17f)](()=>this[_0x3a69d9(0x182)][_0x3a69d9(0x183)](_0x2c7ad3));}[_0x53ec40(0x129)](_0x1eb495){var _0x3df4b4=_0x53ec40;return this[_0x3df4b4(0x191)][_0x3df4b4(0x13a)](_0x1eb495),a[_0x3df4b4(0x17f)](()=>this[_0x3df4b4(0x191)][_0x3df4b4(0x183)](_0x1eb495));}[_0x53ec40(0x17d)](_0x574452){var _0x7147fe=_0x53ec40;return this[_0x7147fe(0x182)]['has'](_0x574452);}[_0x53ec40(0xc6)](_0x221aa9){var _0x314070=_0x53ec40;return Array[_0x314070(0xf0)](this[_0x314070(0x191)])[_0x314070(0x128)](_0x53d3f5=>_0x53d3f5(_0x221aa9));}}var q=Object[_0x53ec40(0x132)],W=Object[_0x53ec40(0x14d)],G=(_0x463796,_0x19542a,_0xacdbe8,_0x2be2b1)=>{var _0x243261=_0x53ec40;for(var _0x7659d2=_0x2be2b1>0x1?void 0x0:_0x2be2b1?W(_0x19542a,_0xacdbe8):_0x19542a,_0x2c80e6=_0x463796[_0x243261(0xf2)]-0x1,_0x4cdc13;_0x2c80e6>=0x0;_0x2c80e6--)(_0x4cdc13=_0x463796[_0x2c80e6])&&(_0x7659d2=(_0x2be2b1?_0x4cdc13(_0x19542a,_0xacdbe8,_0x7659d2):_0x4cdc13(_0x7659d2))||_0x7659d2);return _0x2be2b1&&_0x7659d2&&q(_0x19542a,_0xacdbe8,_0x7659d2),_0x7659d2;},B=(_0x5de83c,_0x45d58a)=>(_0x2d8798,_0x345d74)=>_0x45d58a(_0x2d8798,_0x345d74,_0x5de83c);let I=class extends a['Disposable']{constructor(_0x1cd68d){var _0x2956fd=_0x53ec40;super(),this[_0x2956fd(0x16a)]=_0x1cd68d,this[_0x2956fd(0x187)]();}['_init'](){var _0x431b20=_0x53ec40;[P['SetZoomRatioOperation']['id'],P[_0x431b20(0x114)]['id'],w[_0x431b20(0x124)]['id']][_0x431b20(0x18a)](_0x28bb2c=>{var _0x4f2808=_0x431b20;this[_0x4f2808(0x115)](this[_0x4f2808(0x16a)]['registerSharedOperation'](_0x28bb2c));});}};I=G([a['OnLifecycle'](a[_0x53ec40(0x13d)]['Starting'],I),B(0x0,a[_0x53ec40(0x10c)](D))],I);var Y=Object[_0x53ec40(0x132)],z=Object[_0x53ec40(0x14d)],y=(_0x3dff67,_0x11168b,_0x4c54a2,_0x5ea976)=>{for(var _0x65f3d1=_0x5ea976>0x1?void 0x0:_0x5ea976?z(_0x11168b,_0x4c54a2):_0x11168b,_0x1b3051=_0x3dff67['length']-0x1,_0x291169;_0x1b3051>=0x0;_0x1b3051--)(_0x291169=_0x3dff67[_0x1b3051])&&(_0x65f3d1=(_0x5ea976?_0x291169(_0x11168b,_0x4c54a2,_0x65f3d1):_0x291169(_0x65f3d1))||_0x65f3d1);return _0x5ea976&&_0x65f3d1&&Y(_0x11168b,_0x4c54a2,_0x65f3d1),_0x65f3d1;},p=(_0x2353e0,_0x2074a0)=>(_0x524525,_0x21845a)=>_0x2074a0(_0x524525,_0x21845a,_0x2353e0);let O=class extends a[_0x53ec40(0xe8)]{constructor(_0x3d3cfd,_0x121644,_0x1dea4e){var _0x356ca4=_0x53ec40;super(),d(this,'_entities',new Map()),(this[_0x356ca4(0x153)]=_0x3d3cfd,this[_0x356ca4(0xeb)]=_0x121644,this[_0x356ca4(0xfe)]=_0x1dea4e,this['_init']());}async[_0x53ec40(0x142)](_0x40bb40){var _0x53fdc2=_0x53ec40;return this[_0x53fdc2(0xf7)][_0x53fdc2(0x188)](_0x40bb40)||await this[_0x53fdc2(0xca)](_0x40bb40),this[_0x53fdc2(0xf7)]['get'](_0x40bb40);}[_0x53ec40(0x187)](){var _0x39d56f=_0x53ec40;this[_0x39d56f(0x153)]['getTypeOfUnitAdded$'](a[_0x39d56f(0x12c)]['UNIVER_SHEET'])['pipe'](g[_0x39d56f(0xf6)](this[_0x39d56f(0x137)]))['subscribe'](async _0x57b9f6=>{var _0x1a57fb=_0x39d56f;const _0x242551=_0x57b9f6['getUnitId']();this[_0x1a57fb(0xf7)]['has'](_0x242551)||this[_0x1a57fb(0xca)](_0x242551);}),this[_0x39d56f(0x153)][_0x39d56f(0x17c)](a[_0x39d56f(0x12c)][_0x39d56f(0x164)])[_0x39d56f(0x126)](g[_0x39d56f(0xf6)](this[_0x39d56f(0x137)]))['subscribe'](_0x1f7dea=>{var _0x460886=_0x39d56f;const _0x591aaa=_0x1f7dea[_0x460886(0x193)](),_0x1bc17f=this[_0x460886(0xf7)][_0x460886(0x158)](_0x591aaa);_0x1bc17f==null||_0x1bc17f[_0x460886(0x179)]();});}async[_0x53ec40(0xca)](_0x1317ae){var _0x1c704c=_0x53ec40;const _0x39d31a=await this[_0x1c704c(0xfe)][_0x1c704c(0x14c)](_0x1317ae),_0x1d1f25=this['_injector'][_0x1c704c(0x103)](C,_0x1317ae,_0x39d31a);return _0x1d1f25[_0x1c704c(0x143)](),this[_0x1c704c(0xf7)]['set'](_0x1317ae,_0x1d1f25),_0x1d1f25;}};O=y([p(0x0,a[_0x53ec40(0x16b)]),p(0x1,a['Inject'](a[_0x53ec40(0xee)])),p(0x2,a[_0x53ec40(0x10c)](b['CollaborationSessionService']))],O);var _=(_0x4dc010=>(_0x4dc010[_0x53ec40(0xdb)]='offline',_0x4dc010[_0x53ec40(0x159)]=_0x53ec40(0x15c),_0x4dc010[_0x53ec40(0xe6)]='following',_0x4dc010[_0x53ec40(0x109)]=_0x53ec40(0x18e),_0x4dc010[_0x53ec40(0xfd)]=_0x53ec40(0x16e),_0x4dc010))(_||{});const Z=_0x53ec40(0x15b),J=0xc8;let C=class extends a['RxDisposable']{constructor(_0x54fd47,_0x11932b,_0x1c4658,_0x57018c,_0x299098){var _0x532745=_0x53ec40;super(),d(this,_0x532745(0xfb),new L[(_0x532745(0xd2))](_0x532745(0x15c))),d(this,_0x532745(0xd8),this[_0x532745(0xfb)][_0x532745(0x162)]()),d(this,_0x532745(0x187),!0x1),d(this,_0x532745(0x18c),null),d(this,'_presenter',null),(this['_unitID']=_0x54fd47,this[_0x532745(0x146)]=_0x11932b,this[_0x532745(0x116)]=_0x1c4658,this['_liveShareService']=_0x57018c,this[_0x532745(0x170)]=_0x299098);}get[_0x53ec40(0xd9)](){var _0x25c2d6=_0x53ec40;return this[_0x25c2d6(0xfb)][_0x25c2d6(0xf9)]();}[_0x53ec40(0x179)](){var _0xd54e27=_0x53ec40,_0x49e639;(_0x49e639=this[_0xd54e27(0x18c)])==null||_0x49e639['dispose'](),this[_0xd54e27(0xfb)]['next'](_0xd54e27(0x15c)),this[_0xd54e27(0xfb)][_0xd54e27(0xd1)]();}[_0x53ec40(0x143)](){var _0x55bb2b=_0x53ec40;this[_0x55bb2b(0x187)]||(this[_0x55bb2b(0x187)]=!0x0,this[_0x55bb2b(0x146)][_0x55bb2b(0x13b)][_0x55bb2b(0x126)](g[_0x55bb2b(0xf6)](this[_0x55bb2b(0x137)]))['subscribe'](_0x1e520c=>{var _0x3ce9c6=_0x55bb2b;switch(_0x1e520c){case b[_0x3ce9c6(0x166)]['OFFLINE']:this[_0x3ce9c6(0xc9)]();break;case b[_0x3ce9c6(0x166)]['ONLINE']:this[_0x3ce9c6(0xc8)]();break;}}),this[_0x55bb2b(0x146)][_0x55bb2b(0xce)]['pipe'](g[_0x55bb2b(0xf6)](this[_0x55bb2b(0x137)]))[_0x55bb2b(0xd0)](_0x540a62=>{var _0x3f96ce=_0x55bb2b;const {eventID:_0x283da1}=_0x540a62;switch(_0x283da1){case h[_0x3f96ce(0x100)][_0x3f96ce(0x174)]:this['_handleNewHost'](_0x540a62);break;case h['CollaborationEvent'][_0x3f96ce(0x141)]:this[_0x3f96ce(0xef)](_0x540a62);break;case h[_0x3f96ce(0x100)][_0x3f96ce(0x144)]:this[_0x3f96ce(0x134)]();break;case h['CollaborationEvent']['NEW_CHANGESETS']:this[_0x3f96ce(0xd6)](_0x540a62);break;}}));}[_0x53ec40(0x176)](){var _0x511d2f=_0x53ec40;this['_collabSession']['send']({'eventID':h[_0x511d2f(0x100)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x511d2f(0xe1)],'userID':this['_collabSession']['getMemberID']()}},this[_0x511d2f(0xe1)]);}['stopPresenting'](){var _0x190e35=_0x53ec40;this['_status']===_0x190e35(0x16e)&&(this[_0x190e35(0xfb)][_0x190e35(0xd4)](_0x190e35(0x15c)),this[_0x190e35(0x146)]['send']({'eventID':h['CollaborationEvent'][_0x190e35(0x144)],'data':{'unitID':this['_unitID']}},this[_0x190e35(0xe1)]));}[_0x53ec40(0xf5)](){var _0x541ee2=_0x53ec40;this[_0x541ee2(0xd9)]===_0x541ee2(0x18e)&&(this[_0x541ee2(0xfb)][_0x541ee2(0xd4)](_0x541ee2(0x18d)),this[_0x541ee2(0x15a)]());}[_0x53ec40(0xdc)](){var _0x2af4d7=_0x53ec40;this[_0x2af4d7(0xd9)]===_0x2af4d7(0x18d)&&this[_0x2af4d7(0x10f)]();}['_handleNewHost'](_0x3b0894){var _0x2eda44=_0x53ec40;const {presenter:_0x587ebe}=_0x3b0894[_0x2eda44(0x165)],_0x1ad00a=this[_0x2eda44(0x146)][_0x2eda44(0x12d)]();this[_0x2eda44(0xea)]=_0x587ebe,_0x587ebe===_0x1ad00a?(this[_0x2eda44(0x10f)](),this[_0x2eda44(0x13e)]()):this['_status']!=='not-following'&&(this['_stopPresenting'](),this[_0x2eda44(0x15a)]());}[_0x53ec40(0x173)](){var _0xce64c5=_0x53ec40;const _0x388c7d={'eventID':h[_0xce64c5(0x100)][_0xce64c5(0x11f)]};this[_0xce64c5(0x146)][_0xce64c5(0xf8)](_0x388c7d,this[_0xce64c5(0xe1)]);}[_0x53ec40(0x134)](){var _0x3d1683=_0x53ec40;this[_0x3d1683(0xea)]=null,this[_0x3d1683(0xd9)]!==_0x3d1683(0x16e)&&this['_beIdle']();}['_handleNewChangeSets'](_0x5af02c){var _0x119294=_0x53ec40;if(this[_0x119294(0xd9)]===_0x119294(0x18d)&&this[_0x119294(0xea)]===_0x5af02c[_0x119294(0x165)][_0x119294(0x122)]){const _0x56bf16=h[_0x119294(0x131)](_0x5af02c[_0x119294(0x165)])['mutations'][_0x119294(0x175)]()[_0x119294(0x145)](_0x12a09c=>_0x12a09c['id']===w[_0x119294(0x168)]['id']);if(_0x56bf16){const _0x5742d2=_0x56bf16[_0x119294(0x14b)][_0x119294(0x14e)],_0x204647=_0x56bf16[_0x119294(0x14b)][_0x119294(0x148)]['id'];setTimeout(()=>{var _0x1b9928=_0x119294;this[_0x1b9928(0x170)][_0x1b9928(0x198)](w[_0x1b9928(0x124)]['id'],{'unitId':_0x5742d2,'subUnitId':_0x204647},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x2a9f43=_0x53ec40;this[_0x2a9f43(0xfb)][_0x2a9f43(0xd4)](_0x2a9f43(0x16e));const _0x39e303=new Map(),_0x45ba76=this[_0x2a9f43(0x18c)]=new a['DisposableCollection']();_0x45ba76[_0x2a9f43(0x13a)](a[_0x2a9f43(0x17f)](()=>{var _0x696a1e=_0x2a9f43;_0x39e303[_0x696a1e(0x18a)](_0x43f07f=>_0x43f07f['complete']()),_0x39e303['clear']();})),_0x45ba76[_0x2a9f43(0x13a)](this[_0x2a9f43(0x170)][_0x2a9f43(0x196)](_0x3865c2=>{var _0xcb7452=_0x2a9f43,_0x4c5aca;if(_0x3865c2['type']!==a['CommandType'][_0xcb7452(0xc7)]||!this[_0xcb7452(0x16a)][_0xcb7452(0x17d)](_0x3865c2['id']))return;const {id:_0x3bf06f}=_0x3865c2;let _0x206033;_0x39e303[_0xcb7452(0x188)](_0x3bf06f)?_0x206033=_0x39e303['get'](_0x3bf06f):(_0x206033=new L[(_0xcb7452(0x106))](),_0x39e303[_0xcb7452(0x11a)](_0x3bf06f,_0x206033),_0x206033['pipe'](g['throttleTime']((_0x4c5aca=this[_0xcb7452(0x116)][_0xcb7452(0x104)](Z))!=null?_0x4c5aca:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xcb7452(0xd0)](_0xd1e028=>{var _0x900623=_0xcb7452;this[_0x900623(0x146)][_0x900623(0xf8)]({'eventID':h[_0x900623(0x100)][_0x900623(0x141)],'data':{'unitID':this[_0x900623(0xe1)],'operations':{[_0xd1e028['id']]:{'id':_0xd1e028['id'],'params':JSON[_0x900623(0x125)](_0xd1e028[_0x900623(0x14b)])}}}},this[_0x900623(0xe1)]);})),_0x206033[_0xcb7452(0xd4)](_0x3865c2);})),this['_liveShareService'][_0x2a9f43(0xc6)](this[_0x2a9f43(0xe1)])[_0x2a9f43(0x18a)](_0x2c2aac=>this['_collabSession'][_0x2a9f43(0xf8)]({'eventID':h['CollaborationEvent'][_0x2a9f43(0x141)],'data':{'unitID':this['_unitID'],'operations':{[_0x2c2aac['id']]:{'id':_0x2c2aac['id'],'params':JSON[_0x2a9f43(0x125)](_0x2c2aac[_0x2a9f43(0x14b)])}}}},this[_0x2a9f43(0xe1)]));}['_stopPresenting'](){var _0x51d589=_0x53ec40,_0x47fb07;this[_0x51d589(0xfb)][_0x51d589(0xd4)](_0x51d589(0x15c)),(_0x47fb07=this[_0x51d589(0x18c)])==null||_0x47fb07[_0x51d589(0x179)](),this[_0x51d589(0x18c)]=null;}[_0x53ec40(0x15a)](){var _0x48f91c=_0x53ec40,_0x1cf254;(_0x1cf254=this[_0x48f91c(0x18c)])==null||_0x1cf254[_0x48f91c(0x179)](),this[_0x48f91c(0xfb)][_0x48f91c(0xd4)](_0x48f91c(0x18d));}[_0x53ec40(0x150)](){var _0x2a0d1b=_0x53ec40,_0x1db6d2;this[_0x2a0d1b(0xfb)]['next'](_0x2a0d1b(0x15c)),(_0x1db6d2=this[_0x2a0d1b(0x18c)])==null||_0x1db6d2[_0x2a0d1b(0x179)](),this[_0x2a0d1b(0x18c)]=null;}[_0x53ec40(0x10f)](){var _0x23b745=_0x53ec40,_0x1b9aa3;this[_0x23b745(0xfb)][_0x23b745(0xd4)]('not-following'),(_0x1b9aa3=this['_commandDisposable'])==null||_0x1b9aa3[_0x23b745(0x179)]();}['_handleOperation'](_0x1985be){var _0xa144c8=_0x53ec40;if([_0xa144c8(0x16e),_0xa144c8(0x18e),_0xa144c8(0x12e)][_0xa144c8(0x102)](this[_0xa144c8(0xd9)])||!_0x1985be[_0xa144c8(0x165)][_0xa144c8(0x14a)]||_0x1985be[_0xa144c8(0x165)]['presenter']===this[_0xa144c8(0x146)][_0xa144c8(0x12d)]())return;this[_0xa144c8(0xd9)]==='idle'&&this['_startFollowing']();const _0x2aa70b=_0x1985be[_0xa144c8(0x165)][_0xa144c8(0x119)];Object['values'](_0x2aa70b)['forEach'](_0x4f0194=>{var _0x5daf61=_0xa144c8;this[_0x5daf61(0x170)][_0x5daf61(0x198)](_0x4f0194['id'],_0x4f0194[_0x5daf61(0x14b)]?JSON[_0x5daf61(0x154)](_0x4f0194['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x4bc4f9=_0x53ec40,_0x54d3c4;this[_0x4bc4f9(0xfb)]['next'](_0x4bc4f9(0x12e)),(_0x54d3c4=this[_0x4bc4f9(0x18c)])==null||_0x54d3c4[_0x4bc4f9(0x179)]();}[_0x53ec40(0xc8)](){var _0xd96939=_0x53ec40;this['_status$'][_0xd96939(0xd4)](_0xd96939(0x15c)),this['_fetchOperations']();}};C=y([p(0x2,a[_0x53ec40(0x172)]),p(0x3,a[_0x53ec40(0x10c)](D)),p(0x4,a[_0x53ec40(0x130)])],C);var c=function(){var _0x263d38=_0x53ec40;return c=Object['assign']||function(_0xb305af){var _0x12201e=_0x53c1;for(var _0x48e0fc,_0xfffdcd=0x1,_0x37d549=arguments['length'];_0xfffdcd<_0x37d549;_0xfffdcd++){_0x48e0fc=arguments[_0xfffdcd];for(var _0x1f7836 in _0x48e0fc)Object['prototype']['hasOwnProperty'][_0x12201e(0x105)](_0x48e0fc,_0x1f7836)&&(_0xb305af[_0x1f7836]=_0x48e0fc[_0x1f7836]);}return _0xb305af;},c[_0x263d38(0xe3)](this,arguments);},K=function(_0x2b24c5,_0x2e417b){var _0x4c1ace=_0x53ec40,_0x566336={};for(var _0x4eb67f in _0x2b24c5)Object[_0x4c1ace(0xde)]['hasOwnProperty'][_0x4c1ace(0x105)](_0x2b24c5,_0x4eb67f)&&_0x2e417b[_0x4c1ace(0xf4)](_0x4eb67f)<0x0&&(_0x566336[_0x4eb67f]=_0x2b24c5[_0x4eb67f]);if(_0x2b24c5!=null&&typeof Object['getOwnPropertySymbols']==_0x4c1ace(0x190)){for(var _0x3b0cc0=0x0,_0x4eb67f=Object['getOwnPropertySymbols'](_0x2b24c5);_0x3b0cc0<_0x4eb67f[_0x4c1ace(0xf2)];_0x3b0cc0++)_0x2e417b[_0x4c1ace(0xf4)](_0x4eb67f[_0x3b0cc0])<0x0&&Object[_0x4c1ace(0xde)]['propertyIsEnumerable'][_0x4c1ace(0x105)](_0x2b24c5,_0x4eb67f[_0x3b0cc0])&&(_0x566336[_0x4eb67f[_0x3b0cc0]]=_0x2b24c5[_0x4eb67f[_0x3b0cc0]]);}return _0x566336;},T=s[_0x53ec40(0xe9)](function(_0x48832c,_0x2aa23b){var _0x4820c2=_0x53ec40,_0x759fe4=_0x48832c[_0x4820c2(0x151)],_0x30c9c0=_0x48832c['id'],_0x5e331f=_0x48832c['className'],_0x27e894=_0x48832c['extend'],_0x3d26cc=K(_0x48832c,[_0x4820c2(0x151),'id',_0x4820c2(0xff),_0x4820c2(0x149)]),_0x5dd6e4='univerjs-icon\x20univerjs-icon-'[_0x4820c2(0xd5)](_0x30c9c0,'\x20')['concat'](_0x5e331f||'')['trim'](),_0x356f2d=s[_0x4820c2(0x107)]('_'[_0x4820c2(0xd5)](k()));return A(_0x759fe4,''[_0x4820c2(0xd5)](_0x30c9c0),{'defIds':_0x759fe4[_0x4820c2(0x123)],'idSuffix':_0x356f2d['current']},c({'ref':_0x2aa23b,'className':_0x5dd6e4},_0x3d26cc),_0x27e894);});function A(_0x537278,_0x53628f,_0x2f3dfd,_0x483f2,_0x90be26){var _0x15f10c=_0x53ec40;return s[_0x15f10c(0x139)](_0x537278['tag'],c(c({'key':_0x53628f},Q(_0x537278,_0x2f3dfd,_0x90be26)),_0x483f2),(X(_0x537278,_0x2f3dfd)[_0x15f10c(0xf1)]||[])[_0x15f10c(0x128)](function(_0x1462ed,_0x463953){var _0x1b46f3=_0x15f10c;return A(_0x1462ed,''[_0x1b46f3(0xd5)](_0x53628f,'-')[_0x1b46f3(0xd5)](_0x537278[_0x1b46f3(0x127)],'-')['concat'](_0x463953),_0x2f3dfd,void 0x0,_0x90be26);}));}function Q(_0x4e9f19,_0x4ade73,_0x26d57d){var _0x5b8861=_0x53ec40,_0x5b1750=c({},_0x4e9f19[_0x5b8861(0x177)]);_0x26d57d!=null&&_0x26d57d[_0x5b8861(0x178)]&&_0x5b1750[_0x5b8861(0x113)]===_0x5b8861(0x178)&&(_0x5b1750[_0x5b8861(0x113)]=_0x26d57d[_0x5b8861(0x178)]);var _0x5e4e60=_0x4ade73[_0x5b8861(0x123)];return!_0x5e4e60||_0x5e4e60[_0x5b8861(0xf2)]===0x0||(_0x4e9f19[_0x5b8861(0x127)]===_0x5b8861(0x147)&&_0x5b1750[_0x5b8861(0x180)]&&(_0x5b1750[_0x5b8861(0x180)]=_0x5b1750[_0x5b8861(0x180)]+_0x4ade73[_0x5b8861(0x15f)]),Object[_0x5b8861(0xcf)](_0x5b1750)[_0x5b8861(0x18a)](function(_0x214a46){var _0x84cba7=_0x5b8861,_0x49493f=_0x214a46[0x0],_0xf28f23=_0x214a46[0x1];typeof _0xf28f23==_0x84cba7(0x184)&&(_0x5b1750[_0x49493f]=_0xf28f23['replace'](/url\(#(.*)\)/,_0x84cba7(0xc4)['concat'](_0x4ade73['idSuffix'],')')));})),_0x5b1750;}function X(_0x25b317,_0xe0cc1){var _0x1a9efc=_0x53ec40,_0x37bd2f,_0x3a99c8=_0xe0cc1[_0x1a9efc(0x123)];return!_0x3a99c8||_0x3a99c8[_0x1a9efc(0xf2)]===0x0?_0x25b317:_0x25b317[_0x1a9efc(0x127)]===_0x1a9efc(0x10b)&&(!((_0x37bd2f=_0x25b317[_0x1a9efc(0xf1)])===null||_0x37bd2f===void 0x0)&&_0x37bd2f['length'])?c(c({},_0x25b317),{'children':_0x25b317[_0x1a9efc(0xf1)]['map'](function(_0x2f4682){var _0x365d5b=_0x1a9efc;return typeof _0x2f4682[_0x365d5b(0x177)]['id']==_0x365d5b(0x184)&&_0x3a99c8&&_0x3a99c8[_0x365d5b(0xf4)](_0x2f4682[_0x365d5b(0x177)]['id'])>-0x1?c(c({},_0x2f4682),{'attrs':c(c({},_0x2f4682['attrs']),{'id':_0x2f4682[_0x365d5b(0x177)]['id']+_0xe0cc1[_0x365d5b(0x15f)]})}):_0x2f4682;})}):_0x25b317;}function k(){var _0x5f23a0=_0x53ec40;return Math[_0x5f23a0(0x161)]()['toString'](0x24)[_0x5f23a0(0x185)](0x2,0x8);}T[_0x53ec40(0x197)]=_0x53ec40(0xdf);var ee={'tag':_0x53ec40(0x117),'attrs':{'fill':'none','viewBox':_0x53ec40(0x14f),'width':_0x53ec40(0xe7),'height':_0x53ec40(0xe7)},'children':[{'tag':_0x53ec40(0x163),'attrs':{'fill':_0x53ec40(0x195),'d':_0x53ec40(0x11c)}},{'tag':'path','attrs':{'fill':_0x53ec40(0x195),'d':_0x53ec40(0x199),'fillRule':_0x53ec40(0x156),'clipRule':_0x53ec40(0x156)}}]},U=s[_0x53ec40(0xe9)](function(_0x5788dd,_0x1b81cd){var _0x8e1bb8=_0x53ec40;return s[_0x8e1bb8(0x139)](T,Object[_0x8e1bb8(0x17a)]({},_0x5788dd,{'id':_0x8e1bb8(0x15e),'ref':_0x1b81cd,'icon':ee}));});U[_0x53ec40(0x197)]='LiveShareSingle';const te=_0x53ec40(0x121),ne=_0x53ec40(0xc5),ie=_0x53ec40(0xcb),re='univer-live-share-dropdown-title',v={'liveShare':te,'liveShareStatusOffline':ne,'liveShareDropdown':ie,'liveShareDropdownTitle':re};function se(){var _0x43e0fa=_0x53ec40;const _0x4f6a5c=a[_0x43e0fa(0x108)](O),_0x12c0b9=a[_0x43e0fa(0x108)](a[_0x43e0fa(0x16b)]),_0x3b4785=N[_0x43e0fa(0x112)](()=>_0x12c0b9[_0x43e0fa(0x16f)](a[_0x43e0fa(0x12c)][_0x43e0fa(0x164)]),void 0x0,!0x1,[]),[_0x28fb60,_0x5215fc]=s[_0x43e0fa(0x157)](null),[_0x36c222,_0x36d041]=s[_0x43e0fa(0x157)](_[_0x43e0fa(0x159)]),_0x4d2301=s[_0x43e0fa(0x107)](null);s[_0x43e0fa(0x160)](()=>(_0x3b4785&&_0x4f6a5c[_0x43e0fa(0x142)](_0x3b4785[_0x43e0fa(0x193)]())[_0x43e0fa(0x16d)](_0x1da406=>{var _0x2c5e71=_0x43e0fa;_0x5215fc(_0x1da406),_0x4d2301[_0x2c5e71(0x11b)]=_0x1da406[_0x2c5e71(0xd8)]['subscribe'](_0x35c698=>{_0x36d041(_0x35c698);});}),()=>{var _0x2e41d9=_0x43e0fa,_0x446044;(_0x446044=_0x4d2301['current'])==null||_0x446044[_0x2e41d9(0xcd)](),_0x4d2301[_0x2e41d9(0x11b)]=null;}),[_0x3b4785,_0x4f6a5c]);const _0xcbe58b=_0x36c222!==_[_0x43e0fa(0xdb)]?[_0x43e0fa(0xe4)]:[],_0x51e794=M(v['liveShare'],_0x43e0fa(0x10d)+_0x36c222);return _0x28fb60?s[_0x43e0fa(0x139)](m[_0x43e0fa(0x133)],{'trigger':_0xcbe58b,'overlay':s[_0x43e0fa(0x139)]('div',{'className':v[_0x43e0fa(0x120)]},s[_0x43e0fa(0x139)](ae,{'status':_0x36c222,'coordinator':_0x28fb60}))},s[_0x43e0fa(0x139)](_0x43e0fa(0x169),{'className':_0x51e794},s[_0x43e0fa(0x139)](U,null))):null;}function _0x53c1(_0x1588f4,_0x3dcdaf){var _0x394dd1=_0x394d();return _0x53c1=function(_0x53c17a,_0x175f84){_0x53c17a=_0x53c17a-0xc4;var _0x24ec44=_0x394dd1[_0x53c17a];return _0x24ec44;},_0x53c1(_0x1588f4,_0x3dcdaf);}function ae(_0x41c033){var _0x17e47f=_0x53ec40;const {status:_0x21e618,coordinator:_0x34d01c}=_0x41c033;switch(_0x21e618){case _[_0x17e47f(0x159)]:return s[_0x17e47f(0x139)](oe,{'coordinator':_0x34d01c});case _[_0x17e47f(0xe6)]:return s[_0x17e47f(0x139)](le,{'coordinator':_0x34d01c});case _[_0x17e47f(0x109)]:return s[_0x17e47f(0x139)](ce,{'coordinator':_0x34d01c});case _[_0x17e47f(0xdb)]:return s[_0x17e47f(0x139)](he,null);case _['PRESENTING']:return s[_0x17e47f(0x139)](ue,{'coordinator':_0x34d01c});default:return null;}}function oe(_0x57168a){var _0x12f1ba=_0x53ec40;return s[_0x12f1ba(0x139)](s['Fragment'],null,s[_0x12f1ba(0x139)](_0x12f1ba(0x169),{'className':v[_0x12f1ba(0xfa)]},_0x12f1ba(0x18f)),s[_0x12f1ba(0x139)](m[_0x12f1ba(0x17e)],{'size':'small','type':'default','onClick':()=>_0x57168a['coordinator'][_0x12f1ba(0x176)]()},'Start'));}function le(_0x45b799){var _0x3f6bcd=_0x53ec40;return s[_0x3f6bcd(0x139)](s[_0x3f6bcd(0x13c)],null,s[_0x3f6bcd(0x139)](_0x3f6bcd(0x169),{'className':v['liveShareDropdownTitle']},_0x3f6bcd(0xec)),s['createElement'](m[_0x3f6bcd(0x17e)],{'size':_0x3f6bcd(0x110),'type':_0x3f6bcd(0x111),'onClick':()=>_0x45b799[_0x3f6bcd(0xda)][_0x3f6bcd(0xdc)]()},_0x3f6bcd(0xd7)));}function ce(_0x188c7c){var _0x27c4f0=_0x53ec40;return s[_0x27c4f0(0x139)](s['Fragment'],null,s[_0x27c4f0(0x139)](_0x27c4f0(0x169),{'className':v[_0x27c4f0(0xfa)]},_0x27c4f0(0x101)),s[_0x27c4f0(0x139)](m[_0x27c4f0(0x17e)],{'size':_0x27c4f0(0x110),'type':_0x27c4f0(0x118),'onClick':()=>_0x188c7c[_0x27c4f0(0xda)][_0x27c4f0(0xf5)]()},_0x27c4f0(0x17b)));}function ue(_0xf16f0d){var _0x2cb59e=_0x53ec40;return s[_0x2cb59e(0x139)](s[_0x2cb59e(0x13c)],null,s[_0x2cb59e(0x139)](_0x2cb59e(0x169),{'className':v['liveShareDropdownTitle']},_0x2cb59e(0x189)),s['createElement'](m['Button'],{'size':_0x2cb59e(0x110),'type':_0x2cb59e(0x111),'onClick':()=>_0xf16f0d['coordinator'][_0x2cb59e(0x10e)]()},'Stop\x20presenting'));}function he(){var _0x2b2aca=_0x53ec40;return s[_0x2b2aca(0x139)](s[_0x2b2aca(0x13c)],null,'You\x27are\x20offline.');}var de=Object[_0x53ec40(0x132)],_e=Object[_0x53ec40(0x14d)],fe=(_0x46a543,_0x17d36e,_0x1febb6,_0x7cb6fc)=>{var _0x27e46c=_0x53ec40;for(var _0x5e332e=_0x7cb6fc>0x1?void 0x0:_0x7cb6fc?_e(_0x17d36e,_0x1febb6):_0x17d36e,_0x52072f=_0x46a543[_0x27e46c(0xf2)]-0x1,_0x4eaa7b;_0x52072f>=0x0;_0x52072f--)(_0x4eaa7b=_0x46a543[_0x52072f])&&(_0x5e332e=(_0x7cb6fc?_0x4eaa7b(_0x17d36e,_0x1febb6,_0x5e332e):_0x4eaa7b(_0x5e332e))||_0x5e332e);return _0x7cb6fc&&_0x5e332e&&de(_0x17d36e,_0x1febb6,_0x5e332e),_0x5e332e;},R=(_0x52e9b6,_0x44b6b5)=>(_0x5d3f11,_0x2459ca)=>_0x44b6b5(_0x5d3f11,_0x2459ca,_0x52e9b6);let E=class extends a[_0x53ec40(0xf3)]{constructor(_0x185ad5,_0x2adb95){var _0x3329e3=_0x53ec40;super(),this[_0x3329e3(0xeb)]=_0x185ad5,this[_0x3329e3(0xfc)]=_0x2adb95,this['_mountLiveShare']();}[_0x53ec40(0xe2)](){var _0x5a0a0f=_0x53ec40;this[_0x5a0a0f(0x115)](this[_0x5a0a0f(0xfc)][_0x5a0a0f(0x186)](N['BuiltInUIPart'][_0x5a0a0f(0xe0)],()=>a[_0x5a0a0f(0x12a)](se,this[_0x5a0a0f(0xeb)])));}};E=fe([a[_0x53ec40(0x15d)](a[_0x53ec40(0x13d)]['Rendered'],E),R(0x0,a[_0x53ec40(0x10c)](a[_0x53ec40(0xee)])),R(0x1,N['IUIPartsService'])],E);var $=Object[_0x53ec40(0x132)],pe=Object['getOwnPropertyDescriptor'],ve=(_0x1ab8d9,_0x31e5d3,_0xbc8686)=>_0x31e5d3 in _0x1ab8d9?$(_0x1ab8d9,_0x31e5d3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xbc8686}):_0x1ab8d9[_0x31e5d3]=_0xbc8686,Se=(_0x1bcfeb,_0x5a2b55,_0x45f675,_0x1a3d70)=>{var _0x52d8c5=_0x53ec40;for(var _0x3f966c=_0x1a3d70>0x1?void 0x0:_0x1a3d70?pe(_0x5a2b55,_0x45f675):_0x5a2b55,_0x381043=_0x1bcfeb[_0x52d8c5(0xf2)]-0x1,_0xb6ed3;_0x381043>=0x0;_0x381043--)(_0xb6ed3=_0x1bcfeb[_0x381043])&&(_0x3f966c=(_0x1a3d70?_0xb6ed3(_0x5a2b55,_0x45f675,_0x3f966c):_0xb6ed3(_0x3f966c))||_0x3f966c);return _0x1a3d70&&_0x3f966c&&$(_0x5a2b55,_0x45f675,_0x3f966c),_0x3f966c;},ge=(_0x2efc73,_0xac6684)=>(_0x3d3b0f,_0x427d74)=>_0xac6684(_0x3d3b0f,_0x427d74,_0x2efc73),j=(_0x241cff,_0x347422,_0x4d920d)=>ve(_0x241cff,typeof _0x347422!=_0x53ec40(0x181)?_0x347422+'':_0x347422,_0x4d920d);const me=_0x53ec40(0x10a);exports[_0x53ec40(0x167)]=class extends a['Plugin']{constructor(_0x1fc0cd,_0x41b8a0){super(),this['_injector']=_0x41b8a0;}['onStarting'](_0x542675){var _0x4e74b6=_0x53ec40;[[D],[O],[I],[E]][_0x4e74b6(0x18a)](_0x51106c=>_0x542675['add'](_0x51106c));}},j(exports[_0x53ec40(0x167)],'type',a['UniverInstanceType'][_0x53ec40(0x164)]),j(exports['UniverLiveSharePlugin'],_0x53ec40(0x136),me),exports[_0x53ec40(0x167)]=Se([a[_0x53ec40(0x11d)](b[_0x53ec40(0x155)]),ge(0x1,a['Inject'](a[_0x53ec40(0xee)]))],exports[_0x53ec40(0x167)]),exports[_0x53ec40(0x138)]=D;
|
|
1
|
+
'use strict';var _0x3d98b6=_0x1908;(function(_0x1e34fe,_0x4f1a08){var _0x36b90f=_0x1908,_0x46c0e8=_0x1e34fe();while(!![]){try{var _0x1c2a01=-parseInt(_0x36b90f(0x241))/0x1*(-parseInt(_0x36b90f(0x1c0))/0x2)+-parseInt(_0x36b90f(0x17e))/0x3+-parseInt(_0x36b90f(0x1d5))/0x4+-parseInt(_0x36b90f(0x18b))/0x5+parseInt(_0x36b90f(0x1a7))/0x6+parseInt(_0x36b90f(0x1a3))/0x7*(parseInt(_0x36b90f(0x20b))/0x8)+-parseInt(_0x36b90f(0x206))/0x9*(-parseInt(_0x36b90f(0x1fc))/0xa);if(_0x1c2a01===_0x4f1a08)break;else _0x46c0e8['push'](_0x46c0e8['shift']());}catch(_0x39a457){_0x46c0e8['push'](_0x46c0e8['shift']());}}}(_0x4246,0xefa0e));var H=Object[_0x3d98b6(0x189)],V=(_0x2cf1c7,_0x4fa3e3,_0x46dc34)=>_0x4fa3e3 in _0x2cf1c7?H(_0x2cf1c7,_0x4fa3e3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x46dc34}):_0x2cf1c7[_0x4fa3e3]=_0x46dc34,d=(_0x396eba,_0x1d1ef5,_0x3b476f)=>V(_0x396eba,typeof _0x1d1ef5!=_0x3d98b6(0x233)?_0x1d1ef5+'':_0x1d1ef5,_0x3b476f);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x3d98b6(0x1ca)});const a=require(_0x3d98b6(0x184)),b=require(_0x3d98b6(0x1e5)),w=require(_0x3d98b6(0x1cc)),P=require('@univerjs/sheets-ui'),h=require(_0x3d98b6(0x255)),L=require(_0x3d98b6(0x1e1)),g=require(_0x3d98b6(0x1f8)),N=require(_0x3d98b6(0x228)),m=require(_0x3d98b6(0x17b)),M=require(_0x3d98b6(0x252)),s=require(_0x3d98b6(0x234));class D extends a[_0x3d98b6(0x1e6)]{constructor(){var _0x2f6874=_0x3d98b6;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x2f6874(0x236),new Set());}[_0x3d98b6(0x25c)](_0x5bd259){var _0x1fd447=_0x3d98b6;return this[_0x1fd447(0x22e)][_0x1fd447(0x214)](_0x5bd259),a[_0x1fd447(0x232)](()=>this[_0x1fd447(0x22e)][_0x1fd447(0x22c)](_0x5bd259));}[_0x3d98b6(0x1ac)](_0x2326ee){var _0x394380=_0x3d98b6;return this['_reporters'][_0x394380(0x214)](_0x2326ee),a['toDisposable'](()=>this[_0x394380(0x236)][_0x394380(0x22c)](_0x2326ee));}['shouldShareOperation'](_0x23b833){var _0x344c10=_0x3d98b6;return this['_sharedOperations'][_0x344c10(0x210)](_0x23b833);}[_0x3d98b6(0x257)](_0x232335){var _0x374701=_0x3d98b6;return Array[_0x374701(0x250)](this['_reporters'])['map'](_0x5c5fd5=>_0x5c5fd5(_0x232335));}}var q=Object['defineProperty'],W=Object[_0x3d98b6(0x1e4)],G=(_0x1933e2,_0x15537e,_0x3f191c,_0x3f6644)=>{var _0xa0cf65=_0x3d98b6;for(var _0x4037b3=_0x3f6644>0x1?void 0x0:_0x3f6644?W(_0x15537e,_0x3f191c):_0x15537e,_0x2cc65a=_0x1933e2[_0xa0cf65(0x186)]-0x1,_0x4081f2;_0x2cc65a>=0x0;_0x2cc65a--)(_0x4081f2=_0x1933e2[_0x2cc65a])&&(_0x4037b3=(_0x3f6644?_0x4081f2(_0x15537e,_0x3f191c,_0x4037b3):_0x4081f2(_0x4037b3))||_0x4037b3);return _0x3f6644&&_0x4037b3&&q(_0x15537e,_0x3f191c,_0x4037b3),_0x4037b3;},B=(_0x1c52d8,_0x349bce)=>(_0x9d3ee4,_0x829b42)=>_0x349bce(_0x9d3ee4,_0x829b42,_0x1c52d8);let I=class extends a[_0x3d98b6(0x1e6)]{constructor(_0x439be7){var _0x24fe88=_0x3d98b6;super(),this[_0x24fe88(0x190)]=_0x439be7,this[_0x24fe88(0x18d)]();}[_0x3d98b6(0x18d)](){var _0x20c717=_0x3d98b6;[P[_0x20c717(0x1bc)]['id'],P[_0x20c717(0x1be)]['id'],w['SetWorksheetActiveOperation']['id']][_0x20c717(0x1c7)](_0x18db97=>{var _0x118a93=_0x20c717;this[_0x118a93(0x251)](this['_liveShareService'][_0x118a93(0x25c)](_0x18db97));});}};I=G([a[_0x3d98b6(0x1d4)](a['LifecycleStages'][_0x3d98b6(0x17a)],I),B(0x0,a[_0x3d98b6(0x230)](D))],I);var Y=Object[_0x3d98b6(0x189)],z=Object[_0x3d98b6(0x1e4)],y=(_0x1056ac,_0x503d1d,_0x22d66d,_0x2e854a)=>{var _0x1b10b2=_0x3d98b6;for(var _0x5112a5=_0x2e854a>0x1?void 0x0:_0x2e854a?z(_0x503d1d,_0x22d66d):_0x503d1d,_0xbb77dc=_0x1056ac[_0x1b10b2(0x186)]-0x1,_0x3e59d7;_0xbb77dc>=0x0;_0xbb77dc--)(_0x3e59d7=_0x1056ac[_0xbb77dc])&&(_0x5112a5=(_0x2e854a?_0x3e59d7(_0x503d1d,_0x22d66d,_0x5112a5):_0x3e59d7(_0x5112a5))||_0x5112a5);return _0x2e854a&&_0x5112a5&&Y(_0x503d1d,_0x22d66d,_0x5112a5),_0x5112a5;},p=(_0x26bfca,_0xb234c0)=>(_0x5efb8e,_0x26dcfc)=>_0xb234c0(_0x5efb8e,_0x26dcfc,_0x26bfca);let O=class extends a[_0x3d98b6(0x198)]{constructor(_0x3ebd57,_0x2ae0b6,_0x454e8a){var _0x2781d6=_0x3d98b6;super(),d(this,_0x2781d6(0x17d),new Map()),(this[_0x2781d6(0x1af)]=_0x3ebd57,this[_0x2781d6(0x1ae)]=_0x2ae0b6,this[_0x2781d6(0x1fa)]=_0x454e8a,this[_0x2781d6(0x18d)]());}async[_0x3d98b6(0x1ab)](_0x18d8ee){var _0x38f9c6=_0x3d98b6;return this[_0x38f9c6(0x17d)][_0x38f9c6(0x210)](_0x18d8ee)||await this['_startLiveShareCoordinator'](_0x18d8ee),this['_entities']['get'](_0x18d8ee);}[_0x3d98b6(0x18d)](){var _0x37bce6=_0x3d98b6;this[_0x37bce6(0x1af)][_0x37bce6(0x1b7)](a[_0x37bce6(0x1ff)][_0x37bce6(0x21d)])[_0x37bce6(0x195)](g[_0x37bce6(0x1d3)](this[_0x37bce6(0x243)]))['subscribe'](async _0x39ca47=>{var _0x1df3ba=_0x37bce6;const _0x49ce3f=_0x39ca47['getUnitId']();this['_entities'][_0x1df3ba(0x210)](_0x49ce3f)||this[_0x1df3ba(0x19d)](_0x49ce3f);}),this['_univerInstanceService'][_0x37bce6(0x1e2)](a[_0x37bce6(0x1ff)][_0x37bce6(0x21d)])[_0x37bce6(0x195)](g[_0x37bce6(0x1d3)](this[_0x37bce6(0x243)]))[_0x37bce6(0x202)](_0x193a3f=>{var _0x1e567f=_0x37bce6;const _0x102526=_0x193a3f[_0x1e567f(0x18f)](),_0x574281=this[_0x1e567f(0x17d)]['get'](_0x102526);_0x574281==null||_0x574281[_0x1e567f(0x1f7)]();});}async[_0x3d98b6(0x19d)](_0x48bffc){var _0x5c7248=_0x3d98b6;const _0x3f8e98=await this[_0x5c7248(0x1fa)][_0x5c7248(0x1ee)](_0x48bffc),_0x2cfd5d=this['_injector'][_0x5c7248(0x245)](C,_0x48bffc,_0x3f8e98);return _0x2cfd5d['init'](),this[_0x5c7248(0x17d)]['set'](_0x48bffc,_0x2cfd5d),_0x2cfd5d;}};O=y([p(0x0,a[_0x3d98b6(0x227)]),p(0x1,a['Inject'](a[_0x3d98b6(0x1b1)])),p(0x2,a['Inject'](b['CollaborationSessionService']))],O);var _=(_0x29f963=>(_0x29f963[_0x3d98b6(0x258)]='offline',_0x29f963['IDLE']=_0x3d98b6(0x1a5),_0x29f963[_0x3d98b6(0x240)]=_0x3d98b6(0x20a),_0x29f963[_0x3d98b6(0x231)]=_0x3d98b6(0x1f5),_0x29f963[_0x3d98b6(0x1bf)]=_0x3d98b6(0x25f),_0x29f963))(_||{});function _0x4246(){var _0x386710=['click','_unitID','_status','function','concat','call','LIVESHARE_OPERATION','from','disposeWithMe','clsx','getConfig','You\x27re\x20not\x20following\x20the\x20presenter','@univerjs-pro/collaboration','_fetchOperations','getInitialStates','OFFLINE','find','SAME_OPERATION_SHARE_INTERVAL','then','registerSharedOperation','idSuffix','SetWorksheetActiveOperation','presenting','className','fill','IConfigService','Present\x20this\x20document','Starting','@univerjs/design','asObservable','_entities','1916451HVrVWJ','icon','_handleOffline','CollaborationEvent','entries','SessionStatus','@univerjs/core','params','length','LiveShareSingle','onStarting','defineProperty','IDLE','5202260qhYYKK','xlink:href','_init','complete','getUnitId','_liveShareService','univer-live-share-dropdown','You\x27re\x20following\x20the\x20presenter','DisposableCollection','getMemberID','pipe','connectInjector','url(#$1','RxDisposable','getValue','coordinator','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','_startLiveShareCoordinator','propertyIsEnumerable','next','_collabSession','Fragment','_handleNewHost','490wxJAJV','registerComponent','idle','toString','6855516ZyWPhA','displayName','sessionStatus$','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','getLiveShareCoordinator','registerInitialStateReporter','getOwnPropertySymbols','_injector','_univerInstanceService','stopFollowing','Injector','UniverIcon','mutations','_startPresenting','trim','values','getTypeOfUnitAdded$','univer-live-share','assign','svg','You\x27are\x20offline.','SetZoomRatioOperation','_startFollowing','SetScrollOperation','PRESENTING','90634quWNgA','event$','ICommandService','unitId','_handleTerminate','ONLINE','div','forEach','_handleNewChangeSets','UNIVER_LIVE_SHARE_PLUGIN','Module','DependentOn','@univerjs/sheets','_status$','data','univerjs-icon\x20univerjs-icon-','replace','InsertSheetMutation','Rendered','takeUntil','OnLifecycle','650172xCzVSV','Stop\x20presenting','LIVESHARE_REQUEST_HOST','currentColor','Stop\x20following','tryStartPresenting','set','_commandDisposable','tag','executeCommand','parseProtocolChangeset','startFollowing','rxjs','getTypeOfUnitDisposed$','map','getOwnPropertyDescriptor','@univerjs-pro/collaboration-client','Disposable','_configService','useState','path','Start\x20following','useDependency','Start','memberID','requireSession','offline','_mountLiveShare','_beIdle','OPERATION','extend','current','not-following','type','dispose','rxjs/operators','HEADER_MENU','_collabSessionService','sheet','10tUStfH','LIVESHARE_NEW_HOST','parse','UniverInstanceType','liveShareDropdownTitle','BuiltInUIPart','subscribe','substring','small','evenodd','7605027FuaaVx','throttleTime','indexOf','getCurrentTypeOfUnit$','following','79976otWamM','operations','Plugin','_stopPresenting','init','has','useObservable','Button','children','add','reverse','createElement','prototype','shouldShareOperation','IUIPartsService','includes','LIVESHARE_TERMINATE','univer-live-share-status-offline','UNIVER_SHEET','_uiPartsService','_handleOnline','send','unsubscribe','UniverLiveSharePlugin','Subject','LIVESHARE_FETCH_OPERATIONS','presenter','forwardRef','IUniverInstanceService','@univerjs/ui','stringify','_commandService','colorChannel1','delete','use','_sharedOperations','_handleOperation','Inject','NOT_FOLLOWING','toDisposable','symbol','react','defIds','_reporters','attrs','default','NEW_CHANGESETS','1em','_presenter','text','string','stopPresenting','UniverCollaborationClientPlugin','FOLLOWING','3olUlLZ','useRef','dispose$','live-share-single','createInstance','_stopFollowing','0\x200\x2017\x2017','random'];_0x4246=function(){return _0x386710;};return _0x4246();}const Z=_0x3d98b6(0x25a),J=0xc8;let C=class extends a['RxDisposable']{constructor(_0x4af1e6,_0x593b2d,_0x125f0a,_0x7d77a3,_0x4bcf2f){var _0x495429=_0x3d98b6;super(),d(this,'_status$',new L['BehaviorSubject'](_0x495429(0x1a5))),d(this,_0x495429(0x19b),this['_status$'][_0x495429(0x17c)]()),d(this,_0x495429(0x18d),!0x1),d(this,_0x495429(0x1dc),null),d(this,_0x495429(0x23b),null),(this[_0x495429(0x24a)]=_0x4af1e6,this[_0x495429(0x1a0)]=_0x593b2d,this['_configService']=_0x125f0a,this['_liveShareService']=_0x7d77a3,this[_0x495429(0x22a)]=_0x4bcf2f);}get[_0x3d98b6(0x24b)](){var _0x518b99=_0x3d98b6;return this[_0x518b99(0x1cd)][_0x518b99(0x199)]();}[_0x3d98b6(0x1f7)](){var _0x4eeaa7=_0x3d98b6,_0x2179a6;(_0x2179a6=this[_0x4eeaa7(0x1dc)])==null||_0x2179a6['dispose'](),this[_0x4eeaa7(0x1cd)]['next'](_0x4eeaa7(0x1a5)),this[_0x4eeaa7(0x1cd)]['complete']();}[_0x3d98b6(0x20f)](){var _0x47c390=_0x3d98b6;this[_0x47c390(0x18d)]||(this[_0x47c390(0x18d)]=!0x0,this['_collabSession'][_0x47c390(0x1a9)][_0x47c390(0x195)](g[_0x47c390(0x1d3)](this[_0x47c390(0x243)]))[_0x47c390(0x202)](_0x1c168c=>{var _0x1af942=_0x47c390;switch(_0x1c168c){case b[_0x1af942(0x183)]['OFFLINE']:this[_0x1af942(0x180)]();break;case b[_0x1af942(0x183)][_0x1af942(0x1c5)]:this[_0x1af942(0x21f)]();break;}}),this['_collabSession'][_0x47c390(0x1c1)][_0x47c390(0x195)](g[_0x47c390(0x1d3)](this[_0x47c390(0x243)]))[_0x47c390(0x202)](_0x17f940=>{var _0x23f8a1=_0x47c390;const {eventID:_0x3bc5c8}=_0x17f940;switch(_0x3bc5c8){case h['CollaborationEvent'][_0x23f8a1(0x1fd)]:this[_0x23f8a1(0x1a2)](_0x17f940);break;case h[_0x23f8a1(0x181)][_0x23f8a1(0x24f)]:this[_0x23f8a1(0x22f)](_0x17f940);break;case h[_0x23f8a1(0x181)][_0x23f8a1(0x21b)]:this['_handleTerminate']();break;case h[_0x23f8a1(0x181)][_0x23f8a1(0x239)]:this[_0x23f8a1(0x1c8)](_0x17f940);break;}}));}[_0x3d98b6(0x1da)](){var _0x56fa5e=_0x3d98b6;this[_0x56fa5e(0x1a0)][_0x56fa5e(0x220)]({'eventID':h[_0x56fa5e(0x181)][_0x56fa5e(0x1d7)],'data':{'unitID':this[_0x56fa5e(0x24a)],'userID':this[_0x56fa5e(0x1a0)][_0x56fa5e(0x194)]()}},this[_0x56fa5e(0x24a)]);}[_0x3d98b6(0x23e)](){var _0x4e6e15=_0x3d98b6;this[_0x4e6e15(0x24b)]===_0x4e6e15(0x25f)&&(this[_0x4e6e15(0x1cd)][_0x4e6e15(0x19f)](_0x4e6e15(0x1a5)),this[_0x4e6e15(0x1a0)]['send']({'eventID':h[_0x4e6e15(0x181)][_0x4e6e15(0x21b)],'data':{'unitID':this[_0x4e6e15(0x24a)]}},this['_unitID']));}[_0x3d98b6(0x1e0)](){var _0x4f43bb=_0x3d98b6;this[_0x4f43bb(0x24b)]===_0x4f43bb(0x1f5)&&(this[_0x4f43bb(0x1cd)][_0x4f43bb(0x19f)](_0x4f43bb(0x20a)),this['_startFollowing']());}[_0x3d98b6(0x1b0)](){var _0x161a4f=_0x3d98b6;this[_0x161a4f(0x24b)]===_0x161a4f(0x20a)&&this[_0x161a4f(0x246)]();}[_0x3d98b6(0x1a2)](_0x1d4ecb){var _0xccba00=_0x3d98b6;const {presenter:_0x1c25f9}=_0x1d4ecb[_0xccba00(0x1ce)],_0x8453b5=this[_0xccba00(0x1a0)][_0xccba00(0x194)]();this[_0xccba00(0x23b)]=_0x1c25f9,_0x1c25f9===_0x8453b5?(this[_0xccba00(0x246)](),this[_0xccba00(0x1b4)]()):this['_status']!==_0xccba00(0x1f5)&&(this['_stopPresenting'](),this[_0xccba00(0x1bd)]());}[_0x3d98b6(0x256)](){var _0x4d67f9=_0x3d98b6;const _0x527162={'eventID':h['CollaborationEvent'][_0x4d67f9(0x224)]};this[_0x4d67f9(0x1a0)][_0x4d67f9(0x220)](_0x527162,this[_0x4d67f9(0x24a)]);}[_0x3d98b6(0x1c4)](){var _0x106397=_0x3d98b6;this['_presenter']=null,this['_status']!=='presenting'&&this[_0x106397(0x1f1)]();}[_0x3d98b6(0x1c8)](_0x1b358c){var _0x412eda=_0x3d98b6;if(this[_0x412eda(0x24b)]==='following'&&this['_presenter']===_0x1b358c[_0x412eda(0x1ce)][_0x412eda(0x1ed)]){const _0x543488=h[_0x412eda(0x1df)](_0x1b358c[_0x412eda(0x1ce)])[_0x412eda(0x1b3)][_0x412eda(0x215)]()[_0x412eda(0x259)](_0x16834d=>_0x16834d['id']===w[_0x412eda(0x1d1)]['id']);if(_0x543488){const _0x9b021d=_0x543488[_0x412eda(0x185)][_0x412eda(0x1c3)],_0x3a528f=_0x543488['params'][_0x412eda(0x1fb)]['id'];setTimeout(()=>{var _0x1ebe72=_0x412eda;this[_0x1ebe72(0x22a)][_0x1ebe72(0x1de)](w[_0x1ebe72(0x25e)]['id'],{'unitId':_0x9b021d,'subUnitId':_0x3a528f},{'fromCollab':!0x0});});}}}[_0x3d98b6(0x1b4)](){var _0x158d40=_0x3d98b6;this[_0x158d40(0x1cd)][_0x158d40(0x19f)](_0x158d40(0x25f));const _0x839483=new Map(),_0xde2291=this['_commandDisposable']=new a[(_0x158d40(0x193))]();_0xde2291[_0x158d40(0x214)](a[_0x158d40(0x232)](()=>{var _0x5cb430=_0x158d40;_0x839483[_0x5cb430(0x1c7)](_0x2b2521=>_0x2b2521[_0x5cb430(0x18e)]()),_0x839483['clear']();})),_0xde2291[_0x158d40(0x214)](this[_0x158d40(0x22a)]['onCommandExecuted'](_0x3cf06f=>{var _0x336bc2=_0x158d40,_0x2fbcd8;if(_0x3cf06f[_0x336bc2(0x1f6)]!==a['CommandType'][_0x336bc2(0x1f2)]||!this[_0x336bc2(0x190)][_0x336bc2(0x218)](_0x3cf06f['id']))return;const {id:_0x110183}=_0x3cf06f;let _0x2a1777;_0x839483['has'](_0x110183)?_0x2a1777=_0x839483['get'](_0x110183):(_0x2a1777=new L[(_0x336bc2(0x223))](),_0x839483[_0x336bc2(0x1db)](_0x110183,_0x2a1777),_0x2a1777[_0x336bc2(0x195)](g[_0x336bc2(0x207)]((_0x2fbcd8=this[_0x336bc2(0x1e7)][_0x336bc2(0x253)](Z))!=null?_0x2fbcd8:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x336bc2(0x202)](_0x4cf411=>{var _0x4ea9b2=_0x336bc2;this[_0x4ea9b2(0x1a0)][_0x4ea9b2(0x220)]({'eventID':h[_0x4ea9b2(0x181)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4ea9b2(0x24a)],'operations':{[_0x4cf411['id']]:{'id':_0x4cf411['id'],'params':JSON[_0x4ea9b2(0x229)](_0x4cf411[_0x4ea9b2(0x185)])}}}},this[_0x4ea9b2(0x24a)]);})),_0x2a1777[_0x336bc2(0x19f)](_0x3cf06f);})),this[_0x158d40(0x190)][_0x158d40(0x257)](this[_0x158d40(0x24a)])['forEach'](_0x533971=>this[_0x158d40(0x1a0)][_0x158d40(0x220)]({'eventID':h['CollaborationEvent'][_0x158d40(0x24f)],'data':{'unitID':this[_0x158d40(0x24a)],'operations':{[_0x533971['id']]:{'id':_0x533971['id'],'params':JSON[_0x158d40(0x229)](_0x533971[_0x158d40(0x185)])}}}},this[_0x158d40(0x24a)]));}[_0x3d98b6(0x20e)](){var _0x405da9=_0x3d98b6,_0x76ba4b;this[_0x405da9(0x1cd)][_0x405da9(0x19f)](_0x405da9(0x1a5)),(_0x76ba4b=this[_0x405da9(0x1dc)])==null||_0x76ba4b[_0x405da9(0x1f7)](),this['_commandDisposable']=null;}[_0x3d98b6(0x1bd)](){var _0x43a68a=_0x3d98b6,_0x3393e4;(_0x3393e4=this[_0x43a68a(0x1dc)])==null||_0x3393e4[_0x43a68a(0x1f7)](),this[_0x43a68a(0x1cd)][_0x43a68a(0x19f)](_0x43a68a(0x20a));}[_0x3d98b6(0x1f1)](){var _0x183051=_0x3d98b6,_0x431f9a;this[_0x183051(0x1cd)][_0x183051(0x19f)](_0x183051(0x1a5)),(_0x431f9a=this['_commandDisposable'])==null||_0x431f9a['dispose'](),this[_0x183051(0x1dc)]=null;}['_stopFollowing'](){var _0x32e622=_0x3d98b6,_0x188b09;this['_status$'][_0x32e622(0x19f)]('not-following'),(_0x188b09=this[_0x32e622(0x1dc)])==null||_0x188b09['dispose']();}[_0x3d98b6(0x22f)](_0x42a599){var _0x1d24ef=_0x3d98b6;if([_0x1d24ef(0x25f),_0x1d24ef(0x1f5),'offline'][_0x1d24ef(0x21a)](this['_status'])||!_0x42a599[_0x1d24ef(0x1ce)][_0x1d24ef(0x225)]||_0x42a599[_0x1d24ef(0x1ce)][_0x1d24ef(0x225)]===this[_0x1d24ef(0x1a0)]['getMemberID']())return;this[_0x1d24ef(0x24b)]==='idle'&&this[_0x1d24ef(0x1bd)]();const _0x2805f8=_0x42a599[_0x1d24ef(0x1ce)][_0x1d24ef(0x20c)];Object[_0x1d24ef(0x1b6)](_0x2805f8)['forEach'](_0x36ac86=>{var _0x1dd2d0=_0x1d24ef;this[_0x1dd2d0(0x22a)][_0x1dd2d0(0x1de)](_0x36ac86['id'],_0x36ac86['params']?JSON[_0x1dd2d0(0x1fe)](_0x36ac86['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x5b738a=_0x3d98b6,_0x558758;this[_0x5b738a(0x1cd)][_0x5b738a(0x19f)](_0x5b738a(0x1ef)),(_0x558758=this[_0x5b738a(0x1dc)])==null||_0x558758['dispose']();}['_handleOnline'](){var _0x38026d=_0x3d98b6;this[_0x38026d(0x1cd)][_0x38026d(0x19f)](_0x38026d(0x1a5)),this[_0x38026d(0x256)]();}};function _0x1908(_0x5b7e62,_0x55034e){var _0x42465b=_0x4246();return _0x1908=function(_0x19083e,_0x4592bb){_0x19083e=_0x19083e-0x176;var _0x1b4c06=_0x42465b[_0x19083e];return _0x1b4c06;},_0x1908(_0x5b7e62,_0x55034e);}C=y([p(0x2,a[_0x3d98b6(0x178)]),p(0x3,a[_0x3d98b6(0x230)](D)),p(0x4,a[_0x3d98b6(0x1c2)])],C);var c=function(){return c=Object['assign']||function(_0xe66084){var _0x464819=_0x1908;for(var _0x34345e,_0x1eb435=0x1,_0xd99501=arguments['length'];_0x1eb435<_0xd99501;_0x1eb435++){_0x34345e=arguments[_0x1eb435];for(var _0x17125a in _0x34345e)Object[_0x464819(0x217)]['hasOwnProperty'][_0x464819(0x24e)](_0x34345e,_0x17125a)&&(_0xe66084[_0x17125a]=_0x34345e[_0x17125a]);}return _0xe66084;},c['apply'](this,arguments);},K=function(_0x565fbe,_0x4c2855){var _0x144d08=_0x3d98b6,_0x238ca8={};for(var _0x32e8e9 in _0x565fbe)Object['prototype']['hasOwnProperty'][_0x144d08(0x24e)](_0x565fbe,_0x32e8e9)&&_0x4c2855[_0x144d08(0x208)](_0x32e8e9)<0x0&&(_0x238ca8[_0x32e8e9]=_0x565fbe[_0x32e8e9]);if(_0x565fbe!=null&&typeof Object['getOwnPropertySymbols']==_0x144d08(0x24c)){for(var _0x4770e2=0x0,_0x32e8e9=Object[_0x144d08(0x1ad)](_0x565fbe);_0x4770e2<_0x32e8e9[_0x144d08(0x186)];_0x4770e2++)_0x4c2855[_0x144d08(0x208)](_0x32e8e9[_0x4770e2])<0x0&&Object['prototype'][_0x144d08(0x19e)][_0x144d08(0x24e)](_0x565fbe,_0x32e8e9[_0x4770e2])&&(_0x238ca8[_0x32e8e9[_0x4770e2]]=_0x565fbe[_0x32e8e9[_0x4770e2]]);}return _0x238ca8;},T=s['forwardRef'](function(_0x5456f3,_0x50984e){var _0x2ddd1a=_0x3d98b6,_0x563b75=_0x5456f3[_0x2ddd1a(0x17f)],_0x39901c=_0x5456f3['id'],_0x54d8c6=_0x5456f3[_0x2ddd1a(0x176)],_0x42c698=_0x5456f3[_0x2ddd1a(0x1f3)],_0x4512a2=K(_0x5456f3,[_0x2ddd1a(0x17f),'id','className','extend']),_0x481de5=_0x2ddd1a(0x1cf)['concat'](_0x39901c,'\x20')[_0x2ddd1a(0x24d)](_0x54d8c6||'')[_0x2ddd1a(0x1b5)](),_0x376766=s['useRef']('_'['concat'](k()));return A(_0x563b75,''[_0x2ddd1a(0x24d)](_0x39901c),{'defIds':_0x563b75[_0x2ddd1a(0x235)],'idSuffix':_0x376766['current']},c({'ref':_0x50984e,'className':_0x481de5},_0x4512a2),_0x42c698);});function A(_0x229fc8,_0x2324be,_0x4f21fb,_0x4553d4,_0x3d5fd2){var _0x213099=_0x3d98b6;return s[_0x213099(0x216)](_0x229fc8[_0x213099(0x1dd)],c(c({'key':_0x2324be},Q(_0x229fc8,_0x4f21fb,_0x3d5fd2)),_0x4553d4),(X(_0x229fc8,_0x4f21fb)['children']||[])['map'](function(_0x3b7bed,_0x301e19){var _0x5acd92=_0x213099;return A(_0x3b7bed,''[_0x5acd92(0x24d)](_0x2324be,'-')['concat'](_0x229fc8[_0x5acd92(0x1dd)],'-')['concat'](_0x301e19),_0x4f21fb,void 0x0,_0x3d5fd2);}));}function Q(_0x4bcd31,_0x99c5d7,_0x3551b6){var _0x4f76ca=_0x3d98b6,_0x34415b=c({},_0x4bcd31[_0x4f76ca(0x237)]);_0x3551b6!=null&&_0x3551b6[_0x4f76ca(0x22b)]&&_0x34415b['fill']===_0x4f76ca(0x22b)&&(_0x34415b[_0x4f76ca(0x177)]=_0x3551b6[_0x4f76ca(0x22b)]);var _0x3868a6=_0x99c5d7[_0x4f76ca(0x235)];return!_0x3868a6||_0x3868a6[_0x4f76ca(0x186)]===0x0||(_0x4bcd31[_0x4f76ca(0x1dd)]===_0x4f76ca(0x22d)&&_0x34415b[_0x4f76ca(0x18c)]&&(_0x34415b['xlink:href']=_0x34415b['xlink:href']+_0x99c5d7[_0x4f76ca(0x25d)]),Object[_0x4f76ca(0x182)](_0x34415b)[_0x4f76ca(0x1c7)](function(_0x20a3fa){var _0x4d06aa=_0x4f76ca,_0xf2a41=_0x20a3fa[0x0],_0x5499c5=_0x20a3fa[0x1];typeof _0x5499c5==_0x4d06aa(0x23d)&&(_0x34415b[_0xf2a41]=_0x5499c5[_0x4d06aa(0x1d0)](/url\(#(.*)\)/,_0x4d06aa(0x197)['concat'](_0x99c5d7[_0x4d06aa(0x25d)],')')));})),_0x34415b;}function X(_0x53a7ce,_0x1a2f7b){var _0x14d277=_0x3d98b6,_0x9da27b,_0x5968f7=_0x1a2f7b['defIds'];return!_0x5968f7||_0x5968f7['length']===0x0?_0x53a7ce:_0x53a7ce[_0x14d277(0x1dd)]==='defs'&&(!((_0x9da27b=_0x53a7ce[_0x14d277(0x213)])===null||_0x9da27b===void 0x0)&&_0x9da27b['length'])?c(c({},_0x53a7ce),{'children':_0x53a7ce['children'][_0x14d277(0x1e3)](function(_0x5cb9f7){var _0x1c497b=_0x14d277;return typeof _0x5cb9f7[_0x1c497b(0x237)]['id']==_0x1c497b(0x23d)&&_0x5968f7&&_0x5968f7[_0x1c497b(0x208)](_0x5cb9f7['attrs']['id'])>-0x1?c(c({},_0x5cb9f7),{'attrs':c(c({},_0x5cb9f7[_0x1c497b(0x237)]),{'id':_0x5cb9f7[_0x1c497b(0x237)]['id']+_0x1a2f7b['idSuffix']})}):_0x5cb9f7;})}):_0x53a7ce;}function k(){var _0x52b080=_0x3d98b6;return Math[_0x52b080(0x248)]()[_0x52b080(0x1a6)](0x24)[_0x52b080(0x203)](0x2,0x8);}T[_0x3d98b6(0x1a8)]=_0x3d98b6(0x1b2);var ee={'tag':_0x3d98b6(0x1ba),'attrs':{'fill':'none','viewBox':_0x3d98b6(0x247),'width':_0x3d98b6(0x23a),'height':_0x3d98b6(0x23a)},'children':[{'tag':_0x3d98b6(0x1e9),'attrs':{'fill':'currentColor','d':_0x3d98b6(0x19c)}},{'tag':_0x3d98b6(0x1e9),'attrs':{'fill':_0x3d98b6(0x1d8),'d':_0x3d98b6(0x1aa),'fillRule':_0x3d98b6(0x205),'clipRule':'evenodd'}}]},U=s[_0x3d98b6(0x226)](function(_0x568b04,_0x1daa50){var _0x117c75=_0x3d98b6;return s[_0x117c75(0x216)](T,Object[_0x117c75(0x1b9)]({},_0x568b04,{'id':_0x117c75(0x244),'ref':_0x1daa50,'icon':ee}));});U[_0x3d98b6(0x1a8)]=_0x3d98b6(0x187);const te=_0x3d98b6(0x1b8),ne=_0x3d98b6(0x21c),ie=_0x3d98b6(0x191),re='univer-live-share-dropdown-title',v={'liveShare':te,'liveShareStatusOffline':ne,'liveShareDropdown':ie,'liveShareDropdownTitle':re};function se(){var _0x125013=_0x3d98b6;const _0x581b2b=a[_0x125013(0x1eb)](O),_0x4e3b10=a[_0x125013(0x1eb)](a[_0x125013(0x227)]),_0x1d222a=N[_0x125013(0x211)](()=>_0x4e3b10[_0x125013(0x209)](a['UniverInstanceType'][_0x125013(0x21d)]),void 0x0,!0x1,[]),[_0x42af35,_0x5bd412]=s[_0x125013(0x1e8)](null),[_0x425e86,_0x1ef08b]=s['useState'](_[_0x125013(0x18a)]),_0x17413e=s[_0x125013(0x242)](null);s['useEffect'](()=>(_0x1d222a&&_0x581b2b['getLiveShareCoordinator'](_0x1d222a[_0x125013(0x18f)]())[_0x125013(0x25b)](_0x54a465=>{var _0x3cf8a5=_0x125013;_0x5bd412(_0x54a465),_0x17413e[_0x3cf8a5(0x1f4)]=_0x54a465[_0x3cf8a5(0x19b)]['subscribe'](_0x2d41bd=>{_0x1ef08b(_0x2d41bd);});}),()=>{var _0x2f1dff=_0x125013,_0x2ac3f2;(_0x2ac3f2=_0x17413e[_0x2f1dff(0x1f4)])==null||_0x2ac3f2[_0x2f1dff(0x221)](),_0x17413e['current']=null;}),[_0x1d222a,_0x581b2b]);const _0x1f5219=_0x425e86!==_[_0x125013(0x258)]?[_0x125013(0x249)]:[],_0x51c37f=M(v['liveShare'],'live-share-status-'+_0x425e86);return _0x42af35?s['createElement'](m['Dropdown'],{'trigger':_0x1f5219,'overlay':s[_0x125013(0x216)](_0x125013(0x1c6),{'className':v['liveShareDropdown']},s[_0x125013(0x216)](ae,{'status':_0x425e86,'coordinator':_0x42af35}))},s['createElement'](_0x125013(0x1c6),{'className':_0x51c37f},s[_0x125013(0x216)](U,null))):null;}function ae(_0x31fa14){var _0xd4982c=_0x3d98b6;const {status:_0x57f583,coordinator:_0x3b8f73}=_0x31fa14;switch(_0x57f583){case _['IDLE']:return s[_0xd4982c(0x216)](oe,{'coordinator':_0x3b8f73});case _['FOLLOWING']:return s[_0xd4982c(0x216)](le,{'coordinator':_0x3b8f73});case _[_0xd4982c(0x231)]:return s[_0xd4982c(0x216)](ce,{'coordinator':_0x3b8f73});case _[_0xd4982c(0x258)]:return s[_0xd4982c(0x216)](he,null);case _[_0xd4982c(0x1bf)]:return s['createElement'](ue,{'coordinator':_0x3b8f73});default:return null;}}function oe(_0x43d01c){var _0x1d9f69=_0x3d98b6;return s[_0x1d9f69(0x216)](s[_0x1d9f69(0x1a1)],null,s[_0x1d9f69(0x216)]('div',{'className':v[_0x1d9f69(0x200)]},_0x1d9f69(0x179)),s[_0x1d9f69(0x216)](m[_0x1d9f69(0x212)],{'size':'small','type':_0x1d9f69(0x238),'onClick':()=>_0x43d01c[_0x1d9f69(0x19a)]['tryStartPresenting']()},_0x1d9f69(0x1ec)));}function le(_0x2b6271){var _0x5251a8=_0x3d98b6;return s[_0x5251a8(0x216)](s[_0x5251a8(0x1a1)],null,s[_0x5251a8(0x216)](_0x5251a8(0x1c6),{'className':v[_0x5251a8(0x200)]},_0x5251a8(0x192)),s['createElement'](m[_0x5251a8(0x212)],{'size':'small','type':_0x5251a8(0x238),'onClick':()=>_0x2b6271[_0x5251a8(0x19a)]['stopFollowing']()},_0x5251a8(0x1d9)));}function ce(_0x1c5736){var _0x499625=_0x3d98b6;return s['createElement'](s['Fragment'],null,s[_0x499625(0x216)](_0x499625(0x1c6),{'className':v['liveShareDropdownTitle']},_0x499625(0x254)),s[_0x499625(0x216)](m[_0x499625(0x212)],{'size':_0x499625(0x204),'type':_0x499625(0x23c),'onClick':()=>_0x1c5736[_0x499625(0x19a)][_0x499625(0x1e0)]()},_0x499625(0x1ea)));}function ue(_0x496e8f){var _0x3107a4=_0x3d98b6;return s[_0x3107a4(0x216)](s[_0x3107a4(0x1a1)],null,s[_0x3107a4(0x216)](_0x3107a4(0x1c6),{'className':v[_0x3107a4(0x200)]},'You\x27re\x20presenting\x20the\x20document'),s[_0x3107a4(0x216)](m[_0x3107a4(0x212)],{'size':_0x3107a4(0x204),'type':_0x3107a4(0x238),'onClick':()=>_0x496e8f[_0x3107a4(0x19a)][_0x3107a4(0x23e)]()},_0x3107a4(0x1d6)));}function he(){var _0x32e9f0=_0x3d98b6;return s['createElement'](s[_0x32e9f0(0x1a1)],null,_0x32e9f0(0x1bb));}var de=Object[_0x3d98b6(0x189)],_e=Object[_0x3d98b6(0x1e4)],fe=(_0x3d529b,_0x50667d,_0x209dbc,_0x29a506)=>{var _0x3f8ac2=_0x3d98b6;for(var _0x431ffe=_0x29a506>0x1?void 0x0:_0x29a506?_e(_0x50667d,_0x209dbc):_0x50667d,_0x136fcd=_0x3d529b[_0x3f8ac2(0x186)]-0x1,_0x5a5417;_0x136fcd>=0x0;_0x136fcd--)(_0x5a5417=_0x3d529b[_0x136fcd])&&(_0x431ffe=(_0x29a506?_0x5a5417(_0x50667d,_0x209dbc,_0x431ffe):_0x5a5417(_0x431ffe))||_0x431ffe);return _0x29a506&&_0x431ffe&&de(_0x50667d,_0x209dbc,_0x431ffe),_0x431ffe;},R=(_0x13a119,_0x404ef6)=>(_0x56e7f5,_0x2e5d8a)=>_0x404ef6(_0x56e7f5,_0x2e5d8a,_0x13a119);let E=class extends a['Disposable']{constructor(_0x6eb317,_0x4346ec){var _0x3f6d20=_0x3d98b6;super(),this[_0x3f6d20(0x1ae)]=_0x6eb317,this[_0x3f6d20(0x21e)]=_0x4346ec,this[_0x3f6d20(0x1f0)]();}[_0x3d98b6(0x1f0)](){var _0x3906e8=_0x3d98b6;this[_0x3906e8(0x251)](this[_0x3906e8(0x21e)][_0x3906e8(0x1a4)](N[_0x3906e8(0x201)][_0x3906e8(0x1f9)],()=>a[_0x3906e8(0x196)](se,this[_0x3906e8(0x1ae)])));}};E=fe([a['OnLifecycle'](a['LifecycleStages'][_0x3d98b6(0x1d2)],E),R(0x0,a['Inject'](a[_0x3d98b6(0x1b1)])),R(0x1,N[_0x3d98b6(0x219)])],E);var $=Object[_0x3d98b6(0x189)],pe=Object[_0x3d98b6(0x1e4)],ve=(_0x1c5e60,_0xc49759,_0x25f392)=>_0xc49759 in _0x1c5e60?$(_0x1c5e60,_0xc49759,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25f392}):_0x1c5e60[_0xc49759]=_0x25f392,Se=(_0x4b20cc,_0x10f159,_0x598327,_0x232a7b)=>{var _0x890b3b=_0x3d98b6;for(var _0x4d93a5=_0x232a7b>0x1?void 0x0:_0x232a7b?pe(_0x10f159,_0x598327):_0x10f159,_0x38cb1e=_0x4b20cc[_0x890b3b(0x186)]-0x1,_0x4ceaa4;_0x38cb1e>=0x0;_0x38cb1e--)(_0x4ceaa4=_0x4b20cc[_0x38cb1e])&&(_0x4d93a5=(_0x232a7b?_0x4ceaa4(_0x10f159,_0x598327,_0x4d93a5):_0x4ceaa4(_0x4d93a5))||_0x4d93a5);return _0x232a7b&&_0x4d93a5&&$(_0x10f159,_0x598327,_0x4d93a5),_0x4d93a5;},ge=(_0x255de2,_0x2f517d)=>(_0x2408ca,_0x297c67)=>_0x2f517d(_0x2408ca,_0x297c67,_0x255de2),j=(_0x3a157b,_0x3d9323,_0x18adb2)=>ve(_0x3a157b,typeof _0x3d9323!='symbol'?_0x3d9323+'':_0x3d9323,_0x18adb2);const me=_0x3d98b6(0x1c9);exports[_0x3d98b6(0x222)]=class extends a[_0x3d98b6(0x20d)]{constructor(_0x4c27f9,_0xa137fd){var _0x769656=_0x3d98b6;super(),this[_0x769656(0x1ae)]=_0xa137fd;}[_0x3d98b6(0x188)](_0x343b0f){var _0x438f27=_0x3d98b6;[[D],[O],[I],[E]][_0x438f27(0x1c7)](_0x4963d6=>_0x343b0f['add'](_0x4963d6));}},j(exports[_0x3d98b6(0x222)],'type',a['UniverInstanceType'][_0x3d98b6(0x21d)]),j(exports['UniverLiveSharePlugin'],'pluginName',me),exports[_0x3d98b6(0x222)]=Se([a[_0x3d98b6(0x1cb)](b[_0x3d98b6(0x23f)]),ge(0x1,a[_0x3d98b6(0x230)](a[_0x3d98b6(0x1b1)]))],exports[_0x3d98b6(0x222)]),exports['LiveShareService']=D;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x469929=_0x4e69;(function(_0x2cbbe2,_0x192dbc){var _0x5c4fc1=_0x4e69,_0x6a93ae=_0x2cbbe2();while(!![]){try{var _0x35c1d3=-parseInt(_0x5c4fc1(0x1dd))/0x1*(parseInt(_0x5c4fc1(0x1af))/0x2)+parseInt(_0x5c4fc1(0x1a0))/0x3+-parseInt(_0x5c4fc1(0x1d6))/0x4*(-parseInt(_0x5c4fc1(0x1c5))/0x5)+-parseInt(_0x5c4fc1(0x1b2))/0x6+-parseInt(_0x5c4fc1(0x211))/0x7*(-parseInt(_0x5c4fc1(0x1f4))/0x8)+parseInt(_0x5c4fc1(0x1e6))/0x9+parseInt(_0x5c4fc1(0x21c))/0xa*(-parseInt(_0x5c4fc1(0x1cb))/0xb);if(_0x35c1d3===_0x192dbc)break;else _0x6a93ae['push'](_0x6a93ae['shift']());}catch(_0x3460a0){_0x6a93ae['push'](_0x6a93ae['shift']());}}}(_0x2f90,0x1cbaf));var K=Object[_0x469929(0x196)],Q=(_0x2ed72a,_0x164855,_0x42e445)=>_0x164855 in _0x2ed72a?K(_0x2ed72a,_0x164855,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x42e445}):_0x2ed72a[_0x164855]=_0x42e445,u=(_0x53dcea,_0x1b31d5,_0xd408f9)=>Q(_0x53dcea,typeof _0x1b31d5!=_0x469929(0x186)?_0x1b31d5+'':_0x1b31d5,_0xd408f9);import{Disposable as _0x15ab6e,toDisposable as _0x43a33f,OnLifecycle as _0x29f393,LifecycleStages as _0x1b36f9,Inject as _0x549598,RxDisposable as _0x3d4bb1,UniverInstanceType as _0x5e61c,Injector as _0x5d1171,DisposableCollection as _0x66136b,CommandType as _0x7396de,IUniverInstanceService as _0xcc705a,IConfigService as _0x44449a,ICommandService as _0x2e4976,useDependency as _0x2f2331,connectInjector as _0x3a4f15,Plugin as _0x29da7f,DependentOn as _0x5eb301}from'@univerjs/core';import{CollaborationSessionService as _0x54a696,SessionStatus as _0x5850ec,UniverCollaborationClientPlugin as _0x90f8fa}from'@univerjs-pro/collaboration-client';import{SetWorksheetActiveOperation as _0x51ad0f,InsertSheetMutation as _0x4ee6c7}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x6ff755,SetScrollOperation as _0x46a14f}from'@univerjs/sheets-ui';import{CollaborationEvent as _0x70b93c,parseProtocolChangeset as _0x56f938}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x15a232,Subject as _0x526d41}from'rxjs';import{takeUntil as _0x1dbcb6,throttleTime as _0x5cef2c}from'rxjs/operators';import{useObservable as _0x4fbd6b,BuiltInUIPart as _0xa52f39,IUIPartsService as _0xf338e4}from'@univerjs/ui';import{Dropdown as _0x4005cc,Button as _0x5c7344}from'@univerjs/design';import _0x1980a7 from'clsx';import _0x2863cc,{forwardRef as _0x2c43cb,useRef as _0x4ff17a,createElement as _0x35a414,useState as _0x153e93,useEffect as _0x41cdab}from'react';class L extends _0x15ab6e{constructor(){var _0x4a3be7=_0x469929;super(...arguments),u(this,_0x4a3be7(0x20f),new Set()),u(this,_0x4a3be7(0x1e2),new Set());}[_0x469929(0x1f8)](_0xf3856d){var _0x52608b=_0x469929;return this[_0x52608b(0x20f)][_0x52608b(0x1b8)](_0xf3856d),_0x43a33f(()=>this[_0x52608b(0x20f)]['delete'](_0xf3856d));}['registerInitialStateReporter'](_0x1ba019){var _0x263ebc=_0x469929;return this[_0x263ebc(0x1e2)][_0x263ebc(0x1b8)](_0x1ba019),_0x43a33f(()=>this['_reporters']['delete'](_0x1ba019));}[_0x469929(0x1d1)](_0xd0e6b){var _0x1dcc7d=_0x469929;return this[_0x1dcc7d(0x20f)][_0x1dcc7d(0x187)](_0xd0e6b);}[_0x469929(0x1b0)](_0x417b06){var _0x9cd83f=_0x469929;return Array[_0x9cd83f(0x20c)](this[_0x9cd83f(0x1e2)])[_0x9cd83f(0x1b1)](_0x337c24=>_0x337c24(_0x417b06));}}var Ee=Object['defineProperty'],Ie=Object['getOwnPropertyDescriptor'],Oe=(_0x867d0f,_0x1987e5,_0x32e8ad,_0x29381e)=>{for(var _0x30506c=_0x29381e>0x1?void 0x0:_0x29381e?Ie(_0x1987e5,_0x32e8ad):_0x1987e5,_0x3d2b82=_0x867d0f['length']-0x1,_0x18b187;_0x3d2b82>=0x0;_0x3d2b82--)(_0x18b187=_0x867d0f[_0x3d2b82])&&(_0x30506c=(_0x29381e?_0x18b187(_0x1987e5,_0x32e8ad,_0x30506c):_0x18b187(_0x30506c))||_0x30506c);return _0x29381e&&_0x30506c&&Ee(_0x1987e5,_0x32e8ad,_0x30506c),_0x30506c;},be=(_0x40d671,_0x13db32)=>(_0x34a7e2,_0x5dd58e)=>_0x13db32(_0x34a7e2,_0x5dd58e,_0x40d671);function _0x2f90(){var _0x3e88b8=['tryStartPresenting','SAME_OPERATION_SHARE_INTERVAL','registerSharedOperation','_configService','getLiveShareCoordinator','_commandDisposable','className','use','0\x200\x2017\x2017','Start\x20following','send','unsubscribe','Start','presenting','getValue','attrs','url(#$1','length','_liveShareService','_collabSessionService','univer-live-share-status-offline','subscribe','from','_mountLiveShare','_fetchOperations','_sharedOperations','idSuffix','357833qFflin','following','icon','1em','live-share-status-','Present\x20this\x20document','includes','div','_startLiveShareCoordinator','_stopPresenting','UNIVER_LIVE_SHARE_PLUGIN','10cmYfxQ','_presenter','set','none','startFollowing','liveShareDropdownTitle','OPERATION','small','displayName','getTypeOfUnitAdded$','LIVESHARE_REQUEST_HOST','data','get','_status','getConfig','idle','getOwnPropertySymbols','stopFollowing','tag','onStarting','params','next','getUnitId','_startPresenting','function','sheet','offline','symbol','has','text','defs','replace','unitId','svg','current','univerjs-icon\x20univerjs-icon-','currentColor','colorChannel1','init','You\x27re\x20presenting\x20the\x20document','_stopFollowing','Fragment','ONLINE','defineProperty','children','forEach','Stop\x20following','assign','_collabSession','FOLLOWING','Stop\x20presenting','xlink:href','NEW_CHANGESETS','558066mzQmXM','operations','Rendered','NOT_FOLLOWING','entries','_startFollowing','path','values','substring','registerComponent','string','_handleTerminate','createInstance','univer-live-share-dropdown','PRESENTING','2ZWIARf','getInitialStates','map','1208838PqrRux','stringify','_injector','_uiPartsService','pipe','getTypeOfUnitDisposed$','add','mutations','live-share-single','indexOf','default','not-following','_entities','IDLE','then','memberID','liveShareDropdown','You\x27re\x20not\x20following\x20the\x20presenter','_beIdle','2435CJFWtd','_status$','hasOwnProperty','_init','_univerInstanceService','concat','486442AkiDbn','You\x27re\x20following\x20the\x20presenter','createElement','getCurrentTypeOfUnit$','UNIVER_SHEET','_handleOnline','shouldShareOperation','_unitID','reverse','fill','dispose$','124EnDHCu','_handleNewHost','toString','getMemberID','getOwnPropertyDescriptor','clear','call','154561mHQYuR','presenter','_handleOffline','evenodd','OFFLINE','_reporters','type','liveShare','LIVESHARE_TERMINATE','1931202cUDCFi','_handleNewChangeSets','pluginName','executeCommand','_commandService','requireSession','asObservable','LIVESHARE_OPERATION','defIds','disposeWithMe','prototype','LIVESHARE_FETCH_OPERATIONS','_handleOperation','coordinator','16sETyYZ','dispose'];_0x2f90=function(){return _0x3e88b8;};return _0x2f90();}let m=class extends _0x15ab6e{constructor(_0x2368cc){var _0x3a18f4=_0x469929;super(),this[_0x3a18f4(0x208)]=_0x2368cc,this['_init']();}[_0x469929(0x1c8)](){var _0x540395=_0x469929;[_0x6ff755['id'],_0x46a14f['id'],_0x51ad0f['id']][_0x540395(0x198)](_0x4778f8=>{var _0x5ae99a=_0x540395;this[_0x5ae99a(0x1ef)](this[_0x5ae99a(0x208)][_0x5ae99a(0x1f8)](_0x4778f8));});}};m=Oe([_0x29f393(_0x1b36f9['Starting'],m),be(0x0,_0x549598(L))],m);var we=Object['defineProperty'],De=Object['getOwnPropertyDescriptor'],G=(_0x207ec1,_0x1d5d4b,_0x4bc742,_0x354244)=>{for(var _0xe77a94=_0x354244>0x1?void 0x0:_0x354244?De(_0x1d5d4b,_0x4bc742):_0x1d5d4b,_0x4f4f2a=_0x207ec1['length']-0x1,_0x5917e7;_0x4f4f2a>=0x0;_0x4f4f2a--)(_0x5917e7=_0x207ec1[_0x4f4f2a])&&(_0xe77a94=(_0x354244?_0x5917e7(_0x1d5d4b,_0x4bc742,_0xe77a94):_0x5917e7(_0xe77a94))||_0xe77a94);return _0x354244&&_0xe77a94&&we(_0x1d5d4b,_0x4bc742,_0xe77a94),_0xe77a94;},f=(_0x4c276b,_0x5835bc)=>(_0x3a990a,_0x50abf4)=>_0x5835bc(_0x3a990a,_0x50abf4,_0x4c276b);let O=class extends _0x3d4bb1{constructor(_0x543612,_0x52dc9c,_0x2b643b){var _0x1d918=_0x469929;super(),u(this,_0x1d918(0x1be),new Map()),(this['_univerInstanceService']=_0x543612,this[_0x1d918(0x1b4)]=_0x52dc9c,this['_collabSessionService']=_0x2b643b,this['_init']());}async[_0x469929(0x1fa)](_0x5d2cd0){var _0x9fb13c=_0x469929;return this[_0x9fb13c(0x1be)][_0x9fb13c(0x187)](_0x5d2cd0)||await this[_0x9fb13c(0x219)](_0x5d2cd0),this[_0x9fb13c(0x1be)][_0x9fb13c(0x177)](_0x5d2cd0);}[_0x469929(0x1c8)](){var _0x5390ec=_0x469929;this[_0x5390ec(0x1c9)][_0x5390ec(0x225)](_0x5e61c['UNIVER_SHEET'])['pipe'](_0x1dbcb6(this[_0x5390ec(0x1d5)]))[_0x5390ec(0x20b)](async _0x50f7d6=>{var _0x500252=_0x5390ec;const _0x105f77=_0x50f7d6['getUnitId']();this[_0x500252(0x1be)]['has'](_0x105f77)||this[_0x500252(0x219)](_0x105f77);}),this[_0x5390ec(0x1c9)][_0x5390ec(0x1b7)](_0x5e61c[_0x5390ec(0x1cf)])[_0x5390ec(0x1b6)](_0x1dbcb6(this['dispose$']))['subscribe'](_0xda5c26=>{var _0x52c195=_0x5390ec;const _0x280fed=_0xda5c26[_0x52c195(0x181)](),_0x5f3802=this['_entities'][_0x52c195(0x177)](_0x280fed);_0x5f3802==null||_0x5f3802[_0x52c195(0x1f5)]();});}async[_0x469929(0x219)](_0x1a9e10){var _0x22447b=_0x469929;const _0x5d68c4=await this[_0x22447b(0x209)][_0x22447b(0x1eb)](_0x1a9e10),_0x178f45=this[_0x22447b(0x1b4)][_0x22447b(0x1ac)](C,_0x1a9e10,_0x5d68c4);return _0x178f45[_0x22447b(0x191)](),this[_0x22447b(0x1be)][_0x22447b(0x21e)](_0x1a9e10,_0x178f45),_0x178f45;}};O=G([f(0x0,_0xcc705a),f(0x1,_0x549598(_0x5d1171)),f(0x2,_0x549598(_0x54a696))],O);var d=(_0x2206ce=>(_0x2206ce[_0x469929(0x1e1)]='offline',_0x2206ce['IDLE']=_0x469929(0x17a),_0x2206ce[_0x469929(0x19c)]=_0x469929(0x212),_0x2206ce[_0x469929(0x1a3)]=_0x469929(0x1bd),_0x2206ce[_0x469929(0x1ae)]=_0x469929(0x203),_0x2206ce))(d||{});const Ce=_0x469929(0x1f7),Ne=0xc8;let C=class extends _0x3d4bb1{constructor(_0x4d2538,_0x18775b,_0x2b9e01,_0x21a6bf,_0x5bb553){var _0x299812=_0x469929;super(),u(this,_0x299812(0x1c6),new _0x15a232('idle')),u(this,'status$',this[_0x299812(0x1c6)][_0x299812(0x1ec)]()),u(this,_0x299812(0x1c8),!0x1),u(this,_0x299812(0x1fb),null),u(this,_0x299812(0x21d),null),(this[_0x299812(0x1d2)]=_0x4d2538,this[_0x299812(0x19b)]=_0x18775b,this[_0x299812(0x1f9)]=_0x2b9e01,this[_0x299812(0x208)]=_0x21a6bf,this[_0x299812(0x1ea)]=_0x5bb553);}get[_0x469929(0x178)](){var _0x203bd3=_0x469929;return this[_0x203bd3(0x1c6)][_0x203bd3(0x204)]();}[_0x469929(0x1f5)](){var _0x4cb83f=_0x469929,_0x448d55;(_0x448d55=this['_commandDisposable'])==null||_0x448d55[_0x4cb83f(0x1f5)](),this[_0x4cb83f(0x1c6)][_0x4cb83f(0x180)](_0x4cb83f(0x17a)),this[_0x4cb83f(0x1c6)]['complete']();}[_0x469929(0x191)](){var _0x195da9=_0x469929;this[_0x195da9(0x1c8)]||(this['_init']=!0x0,this['_collabSession']['sessionStatus$'][_0x195da9(0x1b6)](_0x1dbcb6(this[_0x195da9(0x1d5)]))[_0x195da9(0x20b)](_0x4e46a3=>{var _0x580808=_0x195da9;switch(_0x4e46a3){case _0x5850ec[_0x580808(0x1e1)]:this[_0x580808(0x1df)]();break;case _0x5850ec[_0x580808(0x195)]:this[_0x580808(0x1d0)]();break;}}),this[_0x195da9(0x19b)]['event$'][_0x195da9(0x1b6)](_0x1dbcb6(this[_0x195da9(0x1d5)]))[_0x195da9(0x20b)](_0x34802f=>{var _0x503d6b=_0x195da9;const {eventID:_0x4f4fb0}=_0x34802f;switch(_0x4f4fb0){case _0x70b93c['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x34802f);break;case _0x70b93c[_0x503d6b(0x1ed)]:this[_0x503d6b(0x1f2)](_0x34802f);break;case _0x70b93c['LIVESHARE_TERMINATE']:this[_0x503d6b(0x1ab)]();break;case _0x70b93c[_0x503d6b(0x19f)]:this[_0x503d6b(0x1e7)](_0x34802f);break;}}));}[_0x469929(0x1f6)](){var _0x23ad94=_0x469929;this[_0x23ad94(0x19b)][_0x23ad94(0x200)]({'eventID':_0x70b93c[_0x23ad94(0x226)],'data':{'unitID':this[_0x23ad94(0x1d2)],'userID':this['_collabSession'][_0x23ad94(0x1d9)]()}},this[_0x23ad94(0x1d2)]);}['stopPresenting'](){var _0x29dff1=_0x469929;this[_0x29dff1(0x178)]===_0x29dff1(0x203)&&(this[_0x29dff1(0x1c6)][_0x29dff1(0x180)]('idle'),this[_0x29dff1(0x19b)]['send']({'eventID':_0x70b93c[_0x29dff1(0x1e5)],'data':{'unitID':this[_0x29dff1(0x1d2)]}},this['_unitID']));}[_0x469929(0x220)](){var _0x565922=_0x469929;this[_0x565922(0x178)]===_0x565922(0x1bd)&&(this['_status$'][_0x565922(0x180)](_0x565922(0x212)),this[_0x565922(0x1a5)]());}[_0x469929(0x17c)](){var _0x1947c9=_0x469929;this['_status']===_0x1947c9(0x212)&&this[_0x1947c9(0x193)]();}[_0x469929(0x1d7)](_0x1b6af1){var _0x2ee0e2=_0x469929;const {presenter:_0x40fcd8}=_0x1b6af1[_0x2ee0e2(0x227)],_0xd1dd89=this['_collabSession'][_0x2ee0e2(0x1d9)]();this[_0x2ee0e2(0x21d)]=_0x40fcd8,_0x40fcd8===_0xd1dd89?(this['_stopFollowing'](),this[_0x2ee0e2(0x182)]()):this[_0x2ee0e2(0x178)]!==_0x2ee0e2(0x1bd)&&(this[_0x2ee0e2(0x21a)](),this[_0x2ee0e2(0x1a5)]());}['_fetchOperations'](){var _0x408d39=_0x469929;const _0xe6bd94={'eventID':_0x70b93c[_0x408d39(0x1f1)]};this[_0x408d39(0x19b)][_0x408d39(0x200)](_0xe6bd94,this['_unitID']);}[_0x469929(0x1ab)](){var _0x590997=_0x469929;this['_presenter']=null,this[_0x590997(0x178)]!==_0x590997(0x203)&&this['_beIdle']();}[_0x469929(0x1e7)](_0x39cc1a){var _0xf8126e=_0x469929;if(this[_0xf8126e(0x178)]===_0xf8126e(0x212)&&this['_presenter']===_0x39cc1a[_0xf8126e(0x227)][_0xf8126e(0x1c1)]){const _0x4b2004=_0x56f938(_0x39cc1a[_0xf8126e(0x227)])[_0xf8126e(0x1b9)][_0xf8126e(0x1d3)]()['find'](_0x225fe1=>_0x225fe1['id']===_0x4ee6c7['id']);if(_0x4b2004){const _0x50c46b=_0x4b2004['params'][_0xf8126e(0x18b)],_0x43d119=_0x4b2004[_0xf8126e(0x17f)][_0xf8126e(0x184)]['id'];setTimeout(()=>{var _0xff1aa8=_0xf8126e;this['_commandService'][_0xff1aa8(0x1e9)](_0x51ad0f['id'],{'unitId':_0x50c46b,'subUnitId':_0x43d119},{'fromCollab':!0x0});});}}}[_0x469929(0x182)](){var _0x58674b=_0x469929;this[_0x58674b(0x1c6)]['next'](_0x58674b(0x203));const _0xd67e22=new Map(),_0x1d2002=this[_0x58674b(0x1fb)]=new _0x66136b();_0x1d2002[_0x58674b(0x1b8)](_0x43a33f(()=>{var _0x35f46a=_0x58674b;_0xd67e22[_0x35f46a(0x198)](_0x325b43=>_0x325b43['complete']()),_0xd67e22[_0x35f46a(0x1db)]();})),_0x1d2002[_0x58674b(0x1b8)](this['_commandService']['onCommandExecuted'](_0x4f9f03=>{var _0x4c279a=_0x58674b,_0x1127ef;if(_0x4f9f03[_0x4c279a(0x1e3)]!==_0x7396de[_0x4c279a(0x222)]||!this[_0x4c279a(0x208)][_0x4c279a(0x1d1)](_0x4f9f03['id']))return;const {id:_0x4bc126}=_0x4f9f03;let _0x56821a;_0xd67e22[_0x4c279a(0x187)](_0x4bc126)?_0x56821a=_0xd67e22['get'](_0x4bc126):(_0x56821a=new _0x526d41(),_0xd67e22[_0x4c279a(0x21e)](_0x4bc126,_0x56821a),_0x56821a[_0x4c279a(0x1b6)](_0x5cef2c((_0x1127ef=this['_configService'][_0x4c279a(0x179)](Ce))!=null?_0x1127ef:Ne,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4c279a(0x20b)](_0x4a5b2d=>{var _0x4d70d9=_0x4c279a;this['_collabSession'][_0x4d70d9(0x200)]({'eventID':_0x70b93c[_0x4d70d9(0x1ed)],'data':{'unitID':this[_0x4d70d9(0x1d2)],'operations':{[_0x4a5b2d['id']]:{'id':_0x4a5b2d['id'],'params':JSON['stringify'](_0x4a5b2d[_0x4d70d9(0x17f)])}}}},this['_unitID']);})),_0x56821a['next'](_0x4f9f03);})),this[_0x58674b(0x208)][_0x58674b(0x1b0)](this[_0x58674b(0x1d2)])[_0x58674b(0x198)](_0x34d183=>this[_0x58674b(0x19b)][_0x58674b(0x200)]({'eventID':_0x70b93c['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x58674b(0x1d2)],'operations':{[_0x34d183['id']]:{'id':_0x34d183['id'],'params':JSON[_0x58674b(0x1b3)](_0x34d183['params'])}}}},this['_unitID']));}['_stopPresenting'](){var _0x56f757=_0x469929,_0x5b863e;this[_0x56f757(0x1c6)][_0x56f757(0x180)](_0x56f757(0x17a)),(_0x5b863e=this[_0x56f757(0x1fb)])==null||_0x5b863e['dispose'](),this[_0x56f757(0x1fb)]=null;}[_0x469929(0x1a5)](){var _0x4c1261=_0x469929,_0x2c919e;(_0x2c919e=this[_0x4c1261(0x1fb)])==null||_0x2c919e[_0x4c1261(0x1f5)](),this[_0x4c1261(0x1c6)][_0x4c1261(0x180)](_0x4c1261(0x212));}[_0x469929(0x1c4)](){var _0x5c0970=_0x469929,_0x25ab7e;this[_0x5c0970(0x1c6)][_0x5c0970(0x180)](_0x5c0970(0x17a)),(_0x25ab7e=this[_0x5c0970(0x1fb)])==null||_0x25ab7e['dispose'](),this['_commandDisposable']=null;}[_0x469929(0x193)](){var _0x18754b=_0x469929,_0xb76b49;this[_0x18754b(0x1c6)][_0x18754b(0x180)](_0x18754b(0x1bd)),(_0xb76b49=this[_0x18754b(0x1fb)])==null||_0xb76b49['dispose']();}['_handleOperation'](_0x1820a6){var _0x5e41ea=_0x469929;if([_0x5e41ea(0x203),_0x5e41ea(0x1bd),_0x5e41ea(0x185)][_0x5e41ea(0x217)](this[_0x5e41ea(0x178)])||!_0x1820a6[_0x5e41ea(0x227)][_0x5e41ea(0x1de)]||_0x1820a6['data'][_0x5e41ea(0x1de)]===this['_collabSession'][_0x5e41ea(0x1d9)]())return;this[_0x5e41ea(0x178)]===_0x5e41ea(0x17a)&&this[_0x5e41ea(0x1a5)]();const _0xbfef4c=_0x1820a6['data'][_0x5e41ea(0x1a1)];Object[_0x5e41ea(0x1a7)](_0xbfef4c)[_0x5e41ea(0x198)](_0x1cbb88=>{var _0x267fd4=_0x5e41ea;this['_commandService'][_0x267fd4(0x1e9)](_0x1cbb88['id'],_0x1cbb88[_0x267fd4(0x17f)]?JSON['parse'](_0x1cbb88['params']):null,{'fromCollab':!0x0});});}[_0x469929(0x1df)](){var _0x446d67=_0x469929,_0xe5dd58;this[_0x446d67(0x1c6)][_0x446d67(0x180)](_0x446d67(0x185)),(_0xe5dd58=this['_commandDisposable'])==null||_0xe5dd58['dispose']();}[_0x469929(0x1d0)](){var _0x393e3d=_0x469929;this[_0x393e3d(0x1c6)][_0x393e3d(0x180)](_0x393e3d(0x17a)),this[_0x393e3d(0x20e)]();}};C=G([f(0x2,_0x44449a),f(0x3,_0x549598(L)),f(0x4,_0x2e4976)],C);var l=function(){var _0x28acc2=_0x469929;return l=Object[_0x28acc2(0x19a)]||function(_0x2ee1c5){var _0x414824=_0x28acc2;for(var _0x311c49,_0x4eb0b7=0x1,_0x57fbf0=arguments['length'];_0x4eb0b7<_0x57fbf0;_0x4eb0b7++){_0x311c49=arguments[_0x4eb0b7];for(var _0x7604c3 in _0x311c49)Object[_0x414824(0x1f0)][_0x414824(0x1c7)][_0x414824(0x1dc)](_0x311c49,_0x7604c3)&&(_0x2ee1c5[_0x7604c3]=_0x311c49[_0x7604c3]);}return _0x2ee1c5;},l['apply'](this,arguments);},Pe=function(_0x43524e,_0x19d05c){var _0x47293f=_0x469929,_0x3806c0={};for(var _0xb986e1 in _0x43524e)Object[_0x47293f(0x1f0)][_0x47293f(0x1c7)]['call'](_0x43524e,_0xb986e1)&&_0x19d05c[_0x47293f(0x1bb)](_0xb986e1)<0x0&&(_0x3806c0[_0xb986e1]=_0x43524e[_0xb986e1]);if(_0x43524e!=null&&typeof Object[_0x47293f(0x17b)]==_0x47293f(0x183)){for(var _0x277a74=0x0,_0xb986e1=Object['getOwnPropertySymbols'](_0x43524e);_0x277a74<_0xb986e1[_0x47293f(0x207)];_0x277a74++)_0x19d05c[_0x47293f(0x1bb)](_0xb986e1[_0x277a74])<0x0&&Object[_0x47293f(0x1f0)]['propertyIsEnumerable'][_0x47293f(0x1dc)](_0x43524e,_0xb986e1[_0x277a74])&&(_0x3806c0[_0xb986e1[_0x277a74]]=_0x43524e[_0xb986e1[_0x277a74]]);}return _0x3806c0;},W=_0x2c43cb(function(_0x2d9915,_0x10e129){var _0x324da6=_0x469929,_0x6b8974=_0x2d9915[_0x324da6(0x213)],_0x518598=_0x2d9915['id'],_0x5939c5=_0x2d9915[_0x324da6(0x1fc)],_0xa31c5a=_0x2d9915['extend'],_0x2c075c=Pe(_0x2d9915,[_0x324da6(0x213),'id',_0x324da6(0x1fc),'extend']),_0x55a26e=_0x324da6(0x18e)[_0x324da6(0x1ca)](_0x518598,'\x20')[_0x324da6(0x1ca)](_0x5939c5||'')['trim'](),_0x1d37c3=_0x4ff17a('_'[_0x324da6(0x1ca)](Te()));return B(_0x6b8974,''[_0x324da6(0x1ca)](_0x518598),{'defIds':_0x6b8974[_0x324da6(0x1ee)],'idSuffix':_0x1d37c3[_0x324da6(0x18d)]},l({'ref':_0x10e129,'className':_0x55a26e},_0x2c075c),_0xa31c5a);});function B(_0x2eb39d,_0x32d64a,_0x1e2541,_0xd3e62f,_0x58b683){var _0x5c89ce=_0x469929;return _0x35a414(_0x2eb39d['tag'],l(l({'key':_0x32d64a},Le(_0x2eb39d,_0x1e2541,_0x58b683)),_0xd3e62f),(Re(_0x2eb39d,_0x1e2541)[_0x5c89ce(0x197)]||[])[_0x5c89ce(0x1b1)](function(_0x55e7ad,_0x5c1ecf){var _0xdf2420=_0x5c89ce;return B(_0x55e7ad,''['concat'](_0x32d64a,'-')[_0xdf2420(0x1ca)](_0x2eb39d[_0xdf2420(0x17d)],'-')[_0xdf2420(0x1ca)](_0x5c1ecf),_0x1e2541,void 0x0,_0x58b683);}));}function Le(_0x180172,_0x5144f4,_0x397e57){var _0x4d4c31=_0x469929,_0x236d9d=l({},_0x180172['attrs']);_0x397e57!=null&&_0x397e57[_0x4d4c31(0x190)]&&_0x236d9d['fill']===_0x4d4c31(0x190)&&(_0x236d9d[_0x4d4c31(0x1d4)]=_0x397e57['colorChannel1']);var _0x5ece01=_0x5144f4[_0x4d4c31(0x1ee)];return!_0x5ece01||_0x5ece01['length']===0x0||(_0x180172[_0x4d4c31(0x17d)]===_0x4d4c31(0x1fd)&&_0x236d9d[_0x4d4c31(0x19e)]&&(_0x236d9d['xlink:href']=_0x236d9d[_0x4d4c31(0x19e)]+_0x5144f4[_0x4d4c31(0x210)]),Object[_0x4d4c31(0x1a4)](_0x236d9d)[_0x4d4c31(0x198)](function(_0x12f296){var _0x491a8d=_0x4d4c31,_0x23923d=_0x12f296[0x0],_0x2b7d30=_0x12f296[0x1];typeof _0x2b7d30==_0x491a8d(0x1aa)&&(_0x236d9d[_0x23923d]=_0x2b7d30[_0x491a8d(0x18a)](/url\(#(.*)\)/,_0x491a8d(0x206)[_0x491a8d(0x1ca)](_0x5144f4[_0x491a8d(0x210)],')')));})),_0x236d9d;}function Re(_0x1ca0bb,_0x198f9d){var _0xcd0e2=_0x469929,_0x28b67e,_0x12c6c0=_0x198f9d['defIds'];return!_0x12c6c0||_0x12c6c0[_0xcd0e2(0x207)]===0x0?_0x1ca0bb:_0x1ca0bb['tag']===_0xcd0e2(0x189)&&(!((_0x28b67e=_0x1ca0bb['children'])===null||_0x28b67e===void 0x0)&&_0x28b67e[_0xcd0e2(0x207)])?l(l({},_0x1ca0bb),{'children':_0x1ca0bb[_0xcd0e2(0x197)][_0xcd0e2(0x1b1)](function(_0x1f150c){var _0x265bc0=_0xcd0e2;return typeof _0x1f150c['attrs']['id']==_0x265bc0(0x1aa)&&_0x12c6c0&&_0x12c6c0[_0x265bc0(0x1bb)](_0x1f150c[_0x265bc0(0x205)]['id'])>-0x1?l(l({},_0x1f150c),{'attrs':l(l({},_0x1f150c[_0x265bc0(0x205)]),{'id':_0x1f150c['attrs']['id']+_0x198f9d['idSuffix']})}):_0x1f150c;})}):_0x1ca0bb;}function Te(){var _0x1949a8=_0x469929;return Math['random']()[_0x1949a8(0x1d8)](0x24)[_0x1949a8(0x1a8)](0x2,0x8);}W[_0x469929(0x224)]='UniverIcon';var ye={'tag':_0x469929(0x18c),'attrs':{'fill':_0x469929(0x21f),'viewBox':_0x469929(0x1fe),'width':_0x469929(0x214),'height':_0x469929(0x214)},'children':[{'tag':_0x469929(0x1a6),'attrs':{'fill':_0x469929(0x18f),'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':_0x469929(0x1a6),'attrs':{'fill':_0x469929(0x18f),'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':_0x469929(0x1e0),'clipRule':_0x469929(0x1e0)}}]},Y=_0x2c43cb(function(_0x13af42,_0x5e6522){var _0xea355d=_0x469929;return _0x35a414(W,Object[_0xea355d(0x19a)]({},_0x13af42,{'id':_0xea355d(0x1ba),'ref':_0x5e6522,'icon':ye}));});Y['displayName']='LiveShareSingle';const Ae='univer-live-share',$e=_0x469929(0x20a),xe=_0x469929(0x1ad),Fe='univer-live-share-dropdown-title',v={'liveShare':Ae,'liveShareStatusOffline':$e,'liveShareDropdown':xe,'liveShareDropdownTitle':Fe};function He(){var _0x32f377=_0x469929;const _0xa75961=_0x2f2331(O),_0x1677b8=_0x2f2331(_0xcc705a),_0x4e49d7=_0x4fbd6b(()=>_0x1677b8[_0x32f377(0x1ce)](_0x5e61c[_0x32f377(0x1cf)]),void 0x0,!0x1,[]),[_0x332b1d,_0x54191f]=_0x153e93(null),[_0x537c04,_0x39c7e0]=_0x153e93(d[_0x32f377(0x1bf)]),_0x270c2b=_0x4ff17a(null);_0x41cdab(()=>(_0x4e49d7&&_0xa75961[_0x32f377(0x1fa)](_0x4e49d7['getUnitId']())[_0x32f377(0x1c0)](_0x6d292f=>{var _0x4214f7=_0x32f377;_0x54191f(_0x6d292f),_0x270c2b[_0x4214f7(0x18d)]=_0x6d292f['status$'][_0x4214f7(0x20b)](_0x369ae8=>{_0x39c7e0(_0x369ae8);});}),()=>{var _0x5230a3=_0x32f377,_0x30697b;(_0x30697b=_0x270c2b[_0x5230a3(0x18d)])==null||_0x30697b[_0x5230a3(0x201)](),_0x270c2b[_0x5230a3(0x18d)]=null;}),[_0x4e49d7,_0xa75961]);const _0x42d24b=_0x537c04!==d['OFFLINE']?['click']:[],_0x48096a=_0x1980a7(v[_0x32f377(0x1e4)],_0x32f377(0x215)+_0x537c04);return _0x332b1d?_0x2863cc['createElement'](_0x4005cc,{'trigger':_0x42d24b,'overlay':_0x2863cc['createElement'](_0x32f377(0x218),{'className':v[_0x32f377(0x1c2)]},_0x2863cc[_0x32f377(0x1cd)](je,{'status':_0x537c04,'coordinator':_0x332b1d}))},_0x2863cc[_0x32f377(0x1cd)](_0x32f377(0x218),{'className':_0x48096a},_0x2863cc[_0x32f377(0x1cd)](Y,null))):null;}function je(_0x2ce900){var _0x2e3964=_0x469929;const {status:_0x395208,coordinator:_0x59fa74}=_0x2ce900;switch(_0x395208){case d[_0x2e3964(0x1bf)]:return _0x2863cc['createElement'](Ue,{'coordinator':_0x59fa74});case d[_0x2e3964(0x19c)]:return _0x2863cc[_0x2e3964(0x1cd)](Ve,{'coordinator':_0x59fa74});case d[_0x2e3964(0x1a3)]:return _0x2863cc[_0x2e3964(0x1cd)](Me,{'coordinator':_0x59fa74});case d[_0x2e3964(0x1e1)]:return _0x2863cc[_0x2e3964(0x1cd)](We,null);case d[_0x2e3964(0x1ae)]:return _0x2863cc[_0x2e3964(0x1cd)](Ge,{'coordinator':_0x59fa74});default:return null;}}function Ue(_0x4ca934){var _0x1ce953=_0x469929;return _0x2863cc[_0x1ce953(0x1cd)](_0x2863cc[_0x1ce953(0x194)],null,_0x2863cc[_0x1ce953(0x1cd)]('div',{'className':v[_0x1ce953(0x221)]},_0x1ce953(0x216)),_0x2863cc[_0x1ce953(0x1cd)](_0x5c7344,{'size':_0x1ce953(0x223),'type':_0x1ce953(0x1bc),'onClick':()=>_0x4ca934['coordinator'][_0x1ce953(0x1f6)]()},_0x1ce953(0x202)));}function Ve(_0x4d78e3){var _0x18e028=_0x469929;return _0x2863cc[_0x18e028(0x1cd)](_0x2863cc[_0x18e028(0x194)],null,_0x2863cc[_0x18e028(0x1cd)](_0x18e028(0x218),{'className':v[_0x18e028(0x221)]},_0x18e028(0x1cc)),_0x2863cc[_0x18e028(0x1cd)](_0x5c7344,{'size':_0x18e028(0x223),'type':_0x18e028(0x1bc),'onClick':()=>_0x4d78e3[_0x18e028(0x1f3)]['stopFollowing']()},_0x18e028(0x199)));}function Me(_0x41aa10){var _0x22aeb9=_0x469929;return _0x2863cc[_0x22aeb9(0x1cd)](_0x2863cc[_0x22aeb9(0x194)],null,_0x2863cc[_0x22aeb9(0x1cd)](_0x22aeb9(0x218),{'className':v[_0x22aeb9(0x221)]},_0x22aeb9(0x1c3)),_0x2863cc[_0x22aeb9(0x1cd)](_0x5c7344,{'size':_0x22aeb9(0x223),'type':_0x22aeb9(0x188),'onClick':()=>_0x41aa10[_0x22aeb9(0x1f3)][_0x22aeb9(0x220)]()},_0x22aeb9(0x1ff)));}function Ge(_0x229a62){var _0x398846=_0x469929;return _0x2863cc['createElement'](_0x2863cc['Fragment'],null,_0x2863cc[_0x398846(0x1cd)](_0x398846(0x218),{'className':v[_0x398846(0x221)]},_0x398846(0x192)),_0x2863cc['createElement'](_0x5c7344,{'size':_0x398846(0x223),'type':_0x398846(0x1bc),'onClick':()=>_0x229a62['coordinator']['stopPresenting']()},_0x398846(0x19d)));}function We(){var _0xf66be0=_0x469929;return _0x2863cc[_0xf66be0(0x1cd)](_0x2863cc[_0xf66be0(0x194)],null,'You\x27are\x20offline.');}function _0x4e69(_0x164bf1,_0x1e8ded){var _0x2f90fe=_0x2f90();return _0x4e69=function(_0x4e69c6,_0x4a1d99){_0x4e69c6=_0x4e69c6-0x177;var _0x1059f8=_0x2f90fe[_0x4e69c6];return _0x1059f8;},_0x4e69(_0x164bf1,_0x1e8ded);}var Be=Object['defineProperty'],Ye=Object[_0x469929(0x1da)],ze=(_0x34c0f2,_0x104176,_0x269cb9,_0x3493a0)=>{var _0x5c43ce=_0x469929;for(var _0x55970a=_0x3493a0>0x1?void 0x0:_0x3493a0?Ye(_0x104176,_0x269cb9):_0x104176,_0x43f3e1=_0x34c0f2[_0x5c43ce(0x207)]-0x1,_0x4dc450;_0x43f3e1>=0x0;_0x43f3e1--)(_0x4dc450=_0x34c0f2[_0x43f3e1])&&(_0x55970a=(_0x3493a0?_0x4dc450(_0x104176,_0x269cb9,_0x55970a):_0x4dc450(_0x55970a))||_0x55970a);return _0x3493a0&&_0x55970a&&Be(_0x104176,_0x269cb9,_0x55970a),_0x55970a;},A=(_0x123041,_0x15675a)=>(_0x2964e9,_0x248ceb)=>_0x15675a(_0x2964e9,_0x248ceb,_0x123041);let g=class extends _0x15ab6e{constructor(_0x3b3a1b,_0x3c8246){var _0x15e1e8=_0x469929;super(),this[_0x15e1e8(0x1b4)]=_0x3b3a1b,this[_0x15e1e8(0x1b5)]=_0x3c8246,this[_0x15e1e8(0x20d)]();}[_0x469929(0x20d)](){var _0xf2708b=_0x469929;this['disposeWithMe'](this[_0xf2708b(0x1b5)][_0xf2708b(0x1a9)](_0xa52f39['HEADER_MENU'],()=>_0x3a4f15(He,this[_0xf2708b(0x1b4)])));}};g=ze([_0x29f393(_0x1b36f9[_0x469929(0x1a2)],g),A(0x0,_0x549598(_0x5d1171)),A(0x1,_0xf338e4)],g);var z=Object['defineProperty'],Ze=Object[_0x469929(0x1da)],Je=(_0x373845,_0x3331de,_0x1685dd)=>_0x3331de in _0x373845?z(_0x373845,_0x3331de,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1685dd}):_0x373845[_0x3331de]=_0x1685dd,qe=(_0x91d431,_0x130363,_0x5d1023,_0x52e38a)=>{var _0x4d6242=_0x469929;for(var _0x1f2cab=_0x52e38a>0x1?void 0x0:_0x52e38a?Ze(_0x130363,_0x5d1023):_0x130363,_0x178f1a=_0x91d431[_0x4d6242(0x207)]-0x1,_0x33ea60;_0x178f1a>=0x0;_0x178f1a--)(_0x33ea60=_0x91d431[_0x178f1a])&&(_0x1f2cab=(_0x52e38a?_0x33ea60(_0x130363,_0x5d1023,_0x1f2cab):_0x33ea60(_0x1f2cab))||_0x1f2cab);return _0x52e38a&&_0x1f2cab&&z(_0x130363,_0x5d1023,_0x1f2cab),_0x1f2cab;},Ke=(_0x8ec08b,_0x6979d6)=>(_0x158fa2,_0x35d759)=>_0x6979d6(_0x158fa2,_0x35d759,_0x8ec08b),Z=(_0xb35c86,_0x179842,_0x4ac133)=>Je(_0xb35c86,typeof _0x179842!=_0x469929(0x186)?_0x179842+'':_0x179842,_0x4ac133);const Qe=_0x469929(0x21b);let b=class extends _0x29da7f{constructor(_0xdbf1cb,_0xce8006){super(),this['_injector']=_0xce8006;}[_0x469929(0x17e)](_0x13be15){var _0x5c68bd=_0x469929;[[L],[O],[m],[g]][_0x5c68bd(0x198)](_0x1e4c2f=>_0x13be15[_0x5c68bd(0x1b8)](_0x1e4c2f));}};Z(b,_0x469929(0x1e3),_0x5e61c[_0x469929(0x1cf)]),Z(b,_0x469929(0x1e8),Qe),b=qe([_0x5eb301(_0x90f8fa),Ke(0x1,_0x549598(_0x5d1171))],b);export{L as LiveShareService,b as UniverLiveSharePlugin};
|
|
1
|
+
var _0x240cab=_0x57fa;(function(_0xc41d53,_0x3d180a){var _0x30717c=_0x57fa,_0x36f377=_0xc41d53();while(!![]){try{var _0x175da2=-parseInt(_0x30717c(0x18c))/0x1+-parseInt(_0x30717c(0x17b))/0x2+parseInt(_0x30717c(0x1d8))/0x3+-parseInt(_0x30717c(0x181))/0x4*(parseInt(_0x30717c(0x14c))/0x5)+parseInt(_0x30717c(0x154))/0x6*(-parseInt(_0x30717c(0x16c))/0x7)+-parseInt(_0x30717c(0x130))/0x8+parseInt(_0x30717c(0x1c8))/0x9*(parseInt(_0x30717c(0x1cb))/0xa);if(_0x175da2===_0x3d180a)break;else _0x36f377['push'](_0x36f377['shift']());}catch(_0x30ad73){_0x36f377['push'](_0x36f377['shift']());}}}(_0x5aa9,0x2fa41));var K=Object[_0x240cab(0x197)],Q=(_0x327973,_0x2d539e,_0x2b344e)=>_0x2d539e in _0x327973?K(_0x327973,_0x2d539e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2b344e}):_0x327973[_0x2d539e]=_0x2b344e,u=(_0x3c22e3,_0x518ec4,_0x40cafc)=>Q(_0x3c22e3,typeof _0x518ec4!='symbol'?_0x518ec4+'':_0x518ec4,_0x40cafc);import{Disposable as _0x4ca92e,toDisposable as _0x3820f8,OnLifecycle as _0x2e3a4b,LifecycleStages as _0x43d8bb,Inject as _0x1e9511,RxDisposable as _0x29d6a7,UniverInstanceType as _0x341753,Injector as _0x1c816e,DisposableCollection as _0x1e35ca,CommandType as _0xd0989b,IUniverInstanceService as _0x269eed,IConfigService as _0x97beea,ICommandService as _0x32ed72,useDependency as _0x1834d7,connectInjector as _0x20f3da,Plugin as _0x43231b,DependentOn as _0x19fa65}from'@univerjs/core';import{CollaborationSessionService as _0x156a54,SessionStatus as _0x5a2998,UniverCollaborationClientPlugin as _0x27ebae}from'@univerjs-pro/collaboration-client';import{SetWorksheetActiveOperation as _0x4ed06a,InsertSheetMutation as _0x4ed4df}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x474622,SetScrollOperation as _0x2ecc45}from'@univerjs/sheets-ui';import{CollaborationEvent as _0x5b83ba,parseProtocolChangeset as _0x532ad7}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x46b9e6,Subject as _0x15c710}from'rxjs';import{takeUntil as _0x43ba0a,throttleTime as _0x1bae55}from'rxjs/operators';import{useObservable as _0x55aaa9,BuiltInUIPart as _0x5bc255,IUIPartsService as _0x55820f}from'@univerjs/ui';import{Dropdown as _0x72c649,Button as _0x53e8b1}from'@univerjs/design';import _0x501145 from'clsx';import _0x25c141,{forwardRef as _0x2e62e,useRef as _0x407613,createElement as _0x1ef698,useState as _0x374cd9,useEffect as _0x437e57}from'react';class L extends _0x4ca92e{constructor(){var _0x308427=_0x240cab;super(...arguments),u(this,'_sharedOperations',new Set()),u(this,_0x308427(0x1a0),new Set());}[_0x240cab(0x1a9)](_0x2bd457){var _0x3e1f29=_0x240cab;return this[_0x3e1f29(0x157)]['add'](_0x2bd457),_0x3820f8(()=>this[_0x3e1f29(0x157)][_0x3e1f29(0x151)](_0x2bd457));}['registerInitialStateReporter'](_0x14a224){var _0x4c5502=_0x240cab;return this[_0x4c5502(0x1a0)][_0x4c5502(0x1b1)](_0x14a224),_0x3820f8(()=>this[_0x4c5502(0x1a0)]['delete'](_0x14a224));}[_0x240cab(0x144)](_0xc69e2a){var _0x54f8c1=_0x240cab;return this['_sharedOperations'][_0x54f8c1(0x19d)](_0xc69e2a);}[_0x240cab(0x16b)](_0x5b8b94){var _0x4afe28=_0x240cab;return Array[_0x4afe28(0x16d)](this[_0x4afe28(0x1a0)])[_0x4afe28(0x17c)](_0x1d0b1d=>_0x1d0b1d(_0x5b8b94));}}var Ee=Object[_0x240cab(0x197)],Ie=Object[_0x240cab(0x1c0)],Oe=(_0x380bf0,_0x4dca74,_0xae9bab,_0xd6fa54)=>{var _0x405fee=_0x240cab;for(var _0x1fdb52=_0xd6fa54>0x1?void 0x0:_0xd6fa54?Ie(_0x4dca74,_0xae9bab):_0x4dca74,_0x410523=_0x380bf0[_0x405fee(0x189)]-0x1,_0x5e814c;_0x410523>=0x0;_0x410523--)(_0x5e814c=_0x380bf0[_0x410523])&&(_0x1fdb52=(_0xd6fa54?_0x5e814c(_0x4dca74,_0xae9bab,_0x1fdb52):_0x5e814c(_0x1fdb52))||_0x1fdb52);return _0xd6fa54&&_0x1fdb52&&Ee(_0x4dca74,_0xae9bab,_0x1fdb52),_0x1fdb52;},be=(_0x4835d3,_0x25ecf7)=>(_0x452a85,_0x333a46)=>_0x25ecf7(_0x452a85,_0x333a46,_0x4835d3);let m=class extends _0x4ca92e{constructor(_0xc38181){var _0x56064d=_0x240cab;super(),this['_liveShareService']=_0xc38181,this[_0x56064d(0x18f)]();}[_0x240cab(0x18f)](){[_0x474622['id'],_0x2ecc45['id'],_0x4ed06a['id']]['forEach'](_0x46dc72=>{var _0x1ed987=_0x57fa;this[_0x1ed987(0x1a4)](this[_0x1ed987(0x1c9)]['registerSharedOperation'](_0x46dc72));});}};m=Oe([_0x2e3a4b(_0x43d8bb[_0x240cab(0x172)],m),be(0x0,_0x1e9511(L))],m);var we=Object[_0x240cab(0x197)],De=Object['getOwnPropertyDescriptor'],G=(_0x3106ff,_0x9911ac,_0x508b15,_0x3ee91a)=>{var _0x1efa5e=_0x240cab;for(var _0xf334f2=_0x3ee91a>0x1?void 0x0:_0x3ee91a?De(_0x9911ac,_0x508b15):_0x9911ac,_0xe77a2d=_0x3106ff[_0x1efa5e(0x189)]-0x1,_0x201598;_0xe77a2d>=0x0;_0xe77a2d--)(_0x201598=_0x3106ff[_0xe77a2d])&&(_0xf334f2=(_0x3ee91a?_0x201598(_0x9911ac,_0x508b15,_0xf334f2):_0x201598(_0xf334f2))||_0xf334f2);return _0x3ee91a&&_0xf334f2&&we(_0x9911ac,_0x508b15,_0xf334f2),_0xf334f2;},f=(_0x17f286,_0x5e4953)=>(_0x2b68ad,_0x53a702)=>_0x5e4953(_0x2b68ad,_0x53a702,_0x17f286);let O=class extends _0x29d6a7{constructor(_0xbc09,_0x58b130,_0x50ea28){var _0x48c91c=_0x240cab;super(),u(this,_0x48c91c(0x195),new Map()),(this[_0x48c91c(0x1b5)]=_0xbc09,this[_0x48c91c(0x17f)]=_0x58b130,this[_0x48c91c(0x196)]=_0x50ea28,this[_0x48c91c(0x18f)]());}async['getLiveShareCoordinator'](_0x2d2564){var _0x2a79df=_0x240cab;return this['_entities'][_0x2a79df(0x19d)](_0x2d2564)||await this['_startLiveShareCoordinator'](_0x2d2564),this[_0x2a79df(0x195)]['get'](_0x2d2564);}[_0x240cab(0x18f)](){var _0x381513=_0x240cab;this[_0x381513(0x1b5)][_0x381513(0x1dc)](_0x341753[_0x381513(0x191)])[_0x381513(0x173)](_0x43ba0a(this[_0x381513(0x155)]))['subscribe'](async _0x438533=>{var _0x3c6815=_0x381513;const _0x6c4655=_0x438533[_0x3c6815(0x186)]();this[_0x3c6815(0x195)][_0x3c6815(0x19d)](_0x6c4655)||this['_startLiveShareCoordinator'](_0x6c4655);}),this[_0x381513(0x1b5)][_0x381513(0x15a)](_0x341753[_0x381513(0x191)])[_0x381513(0x173)](_0x43ba0a(this[_0x381513(0x155)]))[_0x381513(0x171)](_0x2a1db0=>{var _0x122033=_0x381513;const _0x41a8a6=_0x2a1db0[_0x122033(0x186)](),_0x584243=this['_entities']['get'](_0x41a8a6);_0x584243==null||_0x584243[_0x122033(0x1a5)]();});}async[_0x240cab(0x13c)](_0x5608ec){var _0x14f260=_0x240cab;const _0xe5d0a9=await this[_0x14f260(0x196)][_0x14f260(0x180)](_0x5608ec),_0x155459=this['_injector'][_0x14f260(0x1cd)](C,_0x5608ec,_0xe5d0a9);return _0x155459[_0x14f260(0x198)](),this[_0x14f260(0x195)][_0x14f260(0x153)](_0x5608ec,_0x155459),_0x155459;}};O=G([f(0x0,_0x269eed),f(0x1,_0x1e9511(_0x1c816e)),f(0x2,_0x1e9511(_0x156a54))],O);var d=(_0x1bc7d6=>(_0x1bc7d6[_0x240cab(0x165)]=_0x240cab(0x133),_0x1bc7d6[_0x240cab(0x164)]='idle',_0x1bc7d6['FOLLOWING']=_0x240cab(0x1d1),_0x1bc7d6['NOT_FOLLOWING']=_0x240cab(0x19e),_0x1bc7d6['PRESENTING']=_0x240cab(0x149),_0x1bc7d6))(d||{});const Ce=_0x240cab(0x147),Ne=0xc8;let C=class extends _0x29d6a7{constructor(_0x57acf9,_0x38cd31,_0x20361a,_0x4ac1ab,_0x4f678b){var _0x5a2e4d=_0x240cab;super(),u(this,'_status$',new _0x46b9e6(_0x5a2e4d(0x19a))),u(this,_0x5a2e4d(0x15d),this[_0x5a2e4d(0x12d)][_0x5a2e4d(0x1ae)]()),u(this,_0x5a2e4d(0x18f),!0x1),u(this,_0x5a2e4d(0x12b),null),u(this,_0x5a2e4d(0x184),null),(this['_unitID']=_0x57acf9,this[_0x5a2e4d(0x192)]=_0x38cd31,this[_0x5a2e4d(0x145)]=_0x20361a,this[_0x5a2e4d(0x1c9)]=_0x4ac1ab,this[_0x5a2e4d(0x1d4)]=_0x4f678b);}get['_status'](){var _0x30de91=_0x240cab;return this['_status$'][_0x30de91(0x1de)]();}[_0x240cab(0x1a5)](){var _0x17f909=_0x240cab,_0x15cf41;(_0x15cf41=this[_0x17f909(0x12b)])==null||_0x15cf41[_0x17f909(0x1a5)](),this[_0x17f909(0x12d)][_0x17f909(0x1d3)](_0x17f909(0x19a)),this[_0x17f909(0x12d)][_0x17f909(0x168)]();}[_0x240cab(0x198)](){var _0x40539c=_0x240cab;this[_0x40539c(0x18f)]||(this[_0x40539c(0x18f)]=!0x0,this[_0x40539c(0x192)][_0x40539c(0x1ac)][_0x40539c(0x173)](_0x43ba0a(this[_0x40539c(0x155)]))['subscribe'](_0x3d1790=>{var _0x53657d=_0x40539c;switch(_0x3d1790){case _0x5a2998[_0x53657d(0x165)]:this['_handleOffline']();break;case _0x5a2998[_0x53657d(0x12c)]:this[_0x53657d(0x162)]();break;}}),this[_0x40539c(0x192)][_0x40539c(0x1be)][_0x40539c(0x173)](_0x43ba0a(this[_0x40539c(0x155)]))[_0x40539c(0x171)](_0x341433=>{var _0x56b10c=_0x40539c;const {eventID:_0x1d0e6d}=_0x341433;switch(_0x1d0e6d){case _0x5b83ba[_0x56b10c(0x1a8)]:this[_0x56b10c(0x14d)](_0x341433);break;case _0x5b83ba[_0x56b10c(0x1b9)]:this[_0x56b10c(0x18b)](_0x341433);break;case _0x5b83ba['LIVESHARE_TERMINATE']:this[_0x56b10c(0x15f)]();break;case _0x5b83ba['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x341433);break;}}));}[_0x240cab(0x16a)](){var _0x2013c5=_0x240cab;this['_collabSession'][_0x2013c5(0x1d6)]({'eventID':_0x5b83ba[_0x2013c5(0x129)],'data':{'unitID':this[_0x2013c5(0x185)],'userID':this[_0x2013c5(0x192)][_0x2013c5(0x183)]()}},this[_0x2013c5(0x185)]);}[_0x240cab(0x18a)](){var _0x5d1f75=_0x240cab;this[_0x5d1f75(0x15e)]==='presenting'&&(this['_status$']['next'](_0x5d1f75(0x19a)),this['_collabSession'][_0x5d1f75(0x1d6)]({'eventID':_0x5b83ba[_0x5d1f75(0x1bb)],'data':{'unitID':this[_0x5d1f75(0x185)]}},this[_0x5d1f75(0x185)]));}[_0x240cab(0x1ad)](){var _0x29da1e=_0x240cab;this['_status']===_0x29da1e(0x19e)&&(this['_status$'][_0x29da1e(0x1d3)]('following'),this[_0x29da1e(0x137)]());}[_0x240cab(0x1ce)](){var _0x40c262=_0x240cab;this['_status']===_0x40c262(0x1d1)&&this[_0x40c262(0x1a1)]();}[_0x240cab(0x14d)](_0x2baa9e){var _0x348024=_0x240cab;const {presenter:_0x4f6b3c}=_0x2baa9e[_0x348024(0x131)],_0x59fbdf=this[_0x348024(0x192)]['getMemberID']();this['_presenter']=_0x4f6b3c,_0x4f6b3c===_0x59fbdf?(this[_0x348024(0x1a1)](),this[_0x348024(0x1b6)]()):this['_status']!==_0x348024(0x19e)&&(this[_0x348024(0x12e)](),this[_0x348024(0x137)]());}[_0x240cab(0x146)](){var _0x19f7c7=_0x240cab;const _0x598183={'eventID':_0x5b83ba[_0x19f7c7(0x1c4)]};this['_collabSession'][_0x19f7c7(0x1d6)](_0x598183,this[_0x19f7c7(0x185)]);}[_0x240cab(0x15f)](){var _0x1b69b5=_0x240cab;this[_0x1b69b5(0x184)]=null,this[_0x1b69b5(0x15e)]!==_0x1b69b5(0x149)&&this[_0x1b69b5(0x1d5)]();}[_0x240cab(0x17a)](_0x246a58){var _0x1bac4d=_0x240cab;if(this[_0x1bac4d(0x15e)]===_0x1bac4d(0x1d1)&&this[_0x1bac4d(0x184)]===_0x246a58[_0x1bac4d(0x131)][_0x1bac4d(0x1c6)]){const _0x26a1e4=_0x532ad7(_0x246a58[_0x1bac4d(0x131)])[_0x1bac4d(0x142)][_0x1bac4d(0x158)]()['find'](_0x58c753=>_0x58c753['id']===_0x4ed4df['id']);if(_0x26a1e4){const _0x4b2365=_0x26a1e4[_0x1bac4d(0x17d)]['unitId'],_0x326020=_0x26a1e4[_0x1bac4d(0x17d)]['sheet']['id'];setTimeout(()=>{var _0x1af289=_0x1bac4d;this[_0x1af289(0x1d4)][_0x1af289(0x182)](_0x4ed06a['id'],{'unitId':_0x4b2365,'subUnitId':_0x326020},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x1a6af3=_0x240cab;this[_0x1a6af3(0x12d)]['next'](_0x1a6af3(0x149));const _0x143252=new Map(),_0x23b115=this[_0x1a6af3(0x12b)]=new _0x1e35ca();_0x23b115[_0x1a6af3(0x1b1)](_0x3820f8(()=>{var _0x637de7=_0x1a6af3;_0x143252[_0x637de7(0x187)](_0xa59757=>_0xa59757[_0x637de7(0x168)]()),_0x143252[_0x637de7(0x1b0)]();})),_0x23b115['add'](this[_0x1a6af3(0x1d4)][_0x1a6af3(0x13d)](_0x380d4d=>{var _0xcd5591=_0x1a6af3,_0x209dcd;if(_0x380d4d[_0xcd5591(0x1a7)]!==_0xd0989b[_0xcd5591(0x17e)]||!this[_0xcd5591(0x1c9)][_0xcd5591(0x144)](_0x380d4d['id']))return;const {id:_0x2ed849}=_0x380d4d;let _0x384172;_0x143252[_0xcd5591(0x19d)](_0x2ed849)?_0x384172=_0x143252[_0xcd5591(0x1c5)](_0x2ed849):(_0x384172=new _0x15c710(),_0x143252[_0xcd5591(0x153)](_0x2ed849,_0x384172),_0x384172[_0xcd5591(0x173)](_0x1bae55((_0x209dcd=this['_configService']['getConfig'](Ce))!=null?_0x209dcd:Ne,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xcd5591(0x171)](_0x49ccc4=>{var _0x808e3c=_0xcd5591;this[_0x808e3c(0x192)][_0x808e3c(0x1d6)]({'eventID':_0x5b83ba[_0x808e3c(0x1b9)],'data':{'unitID':this[_0x808e3c(0x185)],'operations':{[_0x49ccc4['id']]:{'id':_0x49ccc4['id'],'params':JSON[_0x808e3c(0x12a)](_0x49ccc4[_0x808e3c(0x17d)])}}}},this[_0x808e3c(0x185)]);})),_0x384172[_0xcd5591(0x1d3)](_0x380d4d);})),this[_0x1a6af3(0x1c9)]['getInitialStates'](this[_0x1a6af3(0x185)])[_0x1a6af3(0x187)](_0x284a98=>this[_0x1a6af3(0x192)]['send']({'eventID':_0x5b83ba[_0x1a6af3(0x1b9)],'data':{'unitID':this[_0x1a6af3(0x185)],'operations':{[_0x284a98['id']]:{'id':_0x284a98['id'],'params':JSON['stringify'](_0x284a98[_0x1a6af3(0x17d)])}}}},this[_0x1a6af3(0x185)]));}['_stopPresenting'](){var _0x545ba0=_0x240cab,_0x4dee4c;this[_0x545ba0(0x12d)][_0x545ba0(0x1d3)](_0x545ba0(0x19a)),(_0x4dee4c=this[_0x545ba0(0x12b)])==null||_0x4dee4c[_0x545ba0(0x1a5)](),this[_0x545ba0(0x12b)]=null;}[_0x240cab(0x137)](){var _0x1d7cbd=_0x240cab,_0x1e4578;(_0x1e4578=this[_0x1d7cbd(0x12b)])==null||_0x1e4578['dispose'](),this[_0x1d7cbd(0x12d)][_0x1d7cbd(0x1d3)]('following');}[_0x240cab(0x1d5)](){var _0x4c9a36=_0x240cab,_0x563be3;this[_0x4c9a36(0x12d)]['next'](_0x4c9a36(0x19a)),(_0x563be3=this[_0x4c9a36(0x12b)])==null||_0x563be3['dispose'](),this['_commandDisposable']=null;}[_0x240cab(0x1a1)](){var _0x284d4d=_0x240cab,_0x1f83e2;this[_0x284d4d(0x12d)][_0x284d4d(0x1d3)]('not-following'),(_0x1f83e2=this[_0x284d4d(0x12b)])==null||_0x1f83e2['dispose']();}[_0x240cab(0x18b)](_0x3bc852){var _0x46e667=_0x240cab;if(['presenting',_0x46e667(0x19e),_0x46e667(0x133)][_0x46e667(0x159)](this[_0x46e667(0x15e)])||!_0x3bc852[_0x46e667(0x131)][_0x46e667(0x1bd)]||_0x3bc852[_0x46e667(0x131)][_0x46e667(0x1bd)]===this[_0x46e667(0x192)][_0x46e667(0x183)]())return;this[_0x46e667(0x15e)]==='idle'&&this['_startFollowing']();const _0x5d766a=_0x3bc852['data']['operations'];Object['values'](_0x5d766a)[_0x46e667(0x187)](_0x65bcf7=>{var _0x22fd66=_0x46e667;this[_0x22fd66(0x1d4)][_0x22fd66(0x182)](_0x65bcf7['id'],_0x65bcf7[_0x22fd66(0x17d)]?JSON[_0x22fd66(0x19b)](_0x65bcf7[_0x22fd66(0x17d)]):null,{'fromCollab':!0x0});});}[_0x240cab(0x132)](){var _0x282d1a=_0x240cab,_0x2803bb;this[_0x282d1a(0x12d)][_0x282d1a(0x1d3)](_0x282d1a(0x133)),(_0x2803bb=this['_commandDisposable'])==null||_0x2803bb[_0x282d1a(0x1a5)]();}[_0x240cab(0x162)](){var _0x263f81=_0x240cab;this[_0x263f81(0x12d)]['next'](_0x263f81(0x19a)),this[_0x263f81(0x146)]();}};C=G([f(0x2,_0x97beea),f(0x3,_0x1e9511(L)),f(0x4,_0x32ed72)],C);function _0x57fa(_0x5d2fa0,_0x523276){var _0x5aa938=_0x5aa9();return _0x57fa=function(_0x57fa07,_0x46493d){_0x57fa07=_0x57fa07-0x128;var _0x4f29a9=_0x5aa938[_0x57fa07];return _0x4f29a9;},_0x57fa(_0x5d2fa0,_0x523276);}var l=function(){var _0x12f72c=_0x240cab;return l=Object[_0x12f72c(0x13f)]||function(_0xa6e6e9){var _0x5e85cd=_0x12f72c;for(var _0x5279f7,_0x197180=0x1,_0x4b5190=arguments[_0x5e85cd(0x189)];_0x197180<_0x4b5190;_0x197180++){_0x5279f7=arguments[_0x197180];for(var _0x4ff39e in _0x5279f7)Object[_0x5e85cd(0x1dd)][_0x5e85cd(0x12f)][_0x5e85cd(0x1b7)](_0x5279f7,_0x4ff39e)&&(_0xa6e6e9[_0x4ff39e]=_0x5279f7[_0x4ff39e]);}return _0xa6e6e9;},l[_0x12f72c(0x1da)](this,arguments);},Pe=function(_0xf5849c,_0x44e027){var _0x4ef940=_0x240cab,_0x23540d={};for(var _0x254a74 in _0xf5849c)Object[_0x4ef940(0x1dd)][_0x4ef940(0x12f)][_0x4ef940(0x1b7)](_0xf5849c,_0x254a74)&&_0x44e027['indexOf'](_0x254a74)<0x0&&(_0x23540d[_0x254a74]=_0xf5849c[_0x254a74]);if(_0xf5849c!=null&&typeof Object[_0x4ef940(0x14e)]==_0x4ef940(0x1a2)){for(var _0x5b3ecf=0x0,_0x254a74=Object['getOwnPropertySymbols'](_0xf5849c);_0x5b3ecf<_0x254a74[_0x4ef940(0x189)];_0x5b3ecf++)_0x44e027['indexOf'](_0x254a74[_0x5b3ecf])<0x0&&Object['prototype'][_0x4ef940(0x163)]['call'](_0xf5849c,_0x254a74[_0x5b3ecf])&&(_0x23540d[_0x254a74[_0x5b3ecf]]=_0xf5849c[_0x254a74[_0x5b3ecf]]);}return _0x23540d;},W=_0x2e62e(function(_0x1550bc,_0x568529){var _0x32fd46=_0x240cab,_0x400a5d=_0x1550bc[_0x32fd46(0x135)],_0x5d35f6=_0x1550bc['id'],_0x616560=_0x1550bc[_0x32fd46(0x1d9)],_0x46bf53=_0x1550bc[_0x32fd46(0x140)],_0x16e84a=Pe(_0x1550bc,['icon','id','className',_0x32fd46(0x140)]),_0x3e2d6a='univerjs-icon\x20univerjs-icon-'['concat'](_0x5d35f6,'\x20')['concat'](_0x616560||'')[_0x32fd46(0x1a3)](),_0xffc6d3=_0x407613('_'['concat'](Te()));return B(_0x400a5d,''[_0x32fd46(0x13e)](_0x5d35f6),{'defIds':_0x400a5d[_0x32fd46(0x139)],'idSuffix':_0xffc6d3[_0x32fd46(0x199)]},l({'ref':_0x568529,'className':_0x3e2d6a},_0x16e84a),_0x46bf53);});function B(_0x1a7519,_0x4393d6,_0x5e731e,_0x529cc7,_0x215628){var _0x52fc61=_0x240cab;return _0x1ef698(_0x1a7519[_0x52fc61(0x152)],l(l({'key':_0x4393d6},Le(_0x1a7519,_0x5e731e,_0x215628)),_0x529cc7),(Re(_0x1a7519,_0x5e731e)[_0x52fc61(0x1b4)]||[])[_0x52fc61(0x17c)](function(_0x523e4c,_0x44eae8){var _0x303fe3=_0x52fc61;return B(_0x523e4c,''[_0x303fe3(0x13e)](_0x4393d6,'-')[_0x303fe3(0x13e)](_0x1a7519[_0x303fe3(0x152)],'-')[_0x303fe3(0x13e)](_0x44eae8),_0x5e731e,void 0x0,_0x215628);}));}function Le(_0x2c70b0,_0x59b5a3,_0x5b18c6){var _0x23ebb6=_0x240cab,_0x59b2f5=l({},_0x2c70b0['attrs']);_0x5b18c6!=null&&_0x5b18c6[_0x23ebb6(0x19f)]&&_0x59b2f5[_0x23ebb6(0x1a6)]===_0x23ebb6(0x19f)&&(_0x59b2f5[_0x23ebb6(0x1a6)]=_0x5b18c6['colorChannel1']);var _0x5efb86=_0x59b5a3['defIds'];return!_0x5efb86||_0x5efb86[_0x23ebb6(0x189)]===0x0||(_0x2c70b0['tag']===_0x23ebb6(0x1ca)&&_0x59b2f5[_0x23ebb6(0x161)]&&(_0x59b2f5[_0x23ebb6(0x161)]=_0x59b2f5[_0x23ebb6(0x161)]+_0x59b5a3['idSuffix']),Object[_0x23ebb6(0x1bf)](_0x59b2f5)[_0x23ebb6(0x187)](function(_0x390083){var _0x724f0f=_0x23ebb6,_0x525a14=_0x390083[0x0],_0xdd2dd3=_0x390083[0x1];typeof _0xdd2dd3==_0x724f0f(0x1ab)&&(_0x59b2f5[_0x525a14]=_0xdd2dd3[_0x724f0f(0x1b2)](/url\(#(.*)\)/,_0x724f0f(0x1d7)[_0x724f0f(0x13e)](_0x59b5a3[_0x724f0f(0x18e)],')')));})),_0x59b2f5;}function Re(_0x5bad4a,_0x43b358){var _0x4f3d77=_0x240cab,_0x580520,_0x269b85=_0x43b358[_0x4f3d77(0x139)];return!_0x269b85||_0x269b85['length']===0x0?_0x5bad4a:_0x5bad4a['tag']===_0x4f3d77(0x141)&&(!((_0x580520=_0x5bad4a[_0x4f3d77(0x1b4)])===null||_0x580520===void 0x0)&&_0x580520[_0x4f3d77(0x189)])?l(l({},_0x5bad4a),{'children':_0x5bad4a[_0x4f3d77(0x1b4)][_0x4f3d77(0x17c)](function(_0x1fd14b){var _0x29d301=_0x4f3d77;return typeof _0x1fd14b[_0x29d301(0x1cc)]['id']=='string'&&_0x269b85&&_0x269b85['indexOf'](_0x1fd14b[_0x29d301(0x1cc)]['id'])>-0x1?l(l({},_0x1fd14b),{'attrs':l(l({},_0x1fd14b['attrs']),{'id':_0x1fd14b[_0x29d301(0x1cc)]['id']+_0x43b358[_0x29d301(0x18e)]})}):_0x1fd14b;})}):_0x5bad4a;}function Te(){var _0x29bb74=_0x240cab;return Math[_0x29bb74(0x1b8)]()[_0x29bb74(0x1cf)](0x24)['substring'](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0x240cab(0x150),'attrs':{'fill':'none','viewBox':_0x240cab(0x1db),'width':_0x240cab(0x14f),'height':_0x240cab(0x14f)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x240cab(0x176)}},{'tag':_0x240cab(0x169),'attrs':{'fill':_0x240cab(0x128),'d':_0x240cab(0x1d0),'fillRule':_0x240cab(0x1b3),'clipRule':_0x240cab(0x1b3)}}]},Y=_0x2e62e(function(_0x39aa01,_0xb1ccd2){var _0x153184=_0x240cab;return _0x1ef698(W,Object[_0x153184(0x13f)]({},_0x39aa01,{'id':_0x153184(0x1c1),'ref':_0xb1ccd2,'icon':ye}));});Y['displayName']=_0x240cab(0x1d2);const Ae=_0x240cab(0x1aa),$e=_0x240cab(0x194),xe=_0x240cab(0x148),Fe=_0x240cab(0x170),v={'liveShare':Ae,'liveShareStatusOffline':$e,'liveShareDropdown':xe,'liveShareDropdownTitle':Fe};function He(){var _0x4f2f96=_0x240cab;const _0x41c1ae=_0x1834d7(O),_0x362a82=_0x1834d7(_0x269eed),_0x303296=_0x55aaa9(()=>_0x362a82[_0x4f2f96(0x178)](_0x341753[_0x4f2f96(0x191)]),void 0x0,!0x1,[]),[_0x2f2859,_0x24e23f]=_0x374cd9(null),[_0x371037,_0x5ddd7f]=_0x374cd9(d[_0x4f2f96(0x164)]),_0x4d1902=_0x407613(null);_0x437e57(()=>(_0x303296&&_0x41c1ae[_0x4f2f96(0x16f)](_0x303296[_0x4f2f96(0x186)]())[_0x4f2f96(0x167)](_0x4abe1d=>{var _0x4ccc70=_0x4f2f96;_0x24e23f(_0x4abe1d),_0x4d1902[_0x4ccc70(0x199)]=_0x4abe1d[_0x4ccc70(0x15d)]['subscribe'](_0x2a2eed=>{_0x5ddd7f(_0x2a2eed);});}),()=>{var _0x1a488e=_0x4f2f96,_0x1451aa;(_0x1451aa=_0x4d1902[_0x1a488e(0x199)])==null||_0x1451aa[_0x1a488e(0x16e)](),_0x4d1902['current']=null;}),[_0x303296,_0x41c1ae]);const _0x7857e3=_0x371037!==d[_0x4f2f96(0x165)]?[_0x4f2f96(0x190)]:[],_0x7d110c=_0x501145(v['liveShare'],_0x4f2f96(0x14b)+_0x371037);return _0x2f2859?_0x25c141[_0x4f2f96(0x15b)](_0x72c649,{'trigger':_0x7857e3,'overlay':_0x25c141[_0x4f2f96(0x15b)](_0x4f2f96(0x15c),{'className':v[_0x4f2f96(0x1c2)]},_0x25c141[_0x4f2f96(0x15b)](je,{'status':_0x371037,'coordinator':_0x2f2859}))},_0x25c141[_0x4f2f96(0x15b)](_0x4f2f96(0x15c),{'className':_0x7d110c},_0x25c141['createElement'](Y,null))):null;}function je(_0x5af6ce){var _0x44f097=_0x240cab;const {status:_0x3c3ff8,coordinator:_0x5bbc82}=_0x5af6ce;switch(_0x3c3ff8){case d[_0x44f097(0x164)]:return _0x25c141['createElement'](Ue,{'coordinator':_0x5bbc82});case d[_0x44f097(0x143)]:return _0x25c141['createElement'](Ve,{'coordinator':_0x5bbc82});case d[_0x44f097(0x1c3)]:return _0x25c141[_0x44f097(0x15b)](Me,{'coordinator':_0x5bbc82});case d[_0x44f097(0x165)]:return _0x25c141[_0x44f097(0x15b)](We,null);case d[_0x44f097(0x177)]:return _0x25c141[_0x44f097(0x15b)](Ge,{'coordinator':_0x5bbc82});default:return null;}}function Ue(_0x4bcc6c){var _0x4b521b=_0x240cab;return _0x25c141['createElement'](_0x25c141[_0x4b521b(0x1c7)],null,_0x25c141[_0x4b521b(0x15b)](_0x4b521b(0x15c),{'className':v[_0x4b521b(0x134)]},_0x4b521b(0x188)),_0x25c141[_0x4b521b(0x15b)](_0x53e8b1,{'size':'small','type':'default','onClick':()=>_0x4bcc6c[_0x4b521b(0x136)][_0x4b521b(0x16a)]()},'Start'));}function Ve(_0x121f22){var _0x5895d6=_0x240cab;return _0x25c141[_0x5895d6(0x15b)](_0x25c141[_0x5895d6(0x1c7)],null,_0x25c141['createElement'](_0x5895d6(0x15c),{'className':v[_0x5895d6(0x134)]},'You\x27re\x20following\x20the\x20presenter'),_0x25c141[_0x5895d6(0x15b)](_0x53e8b1,{'size':_0x5895d6(0x1ba),'type':_0x5895d6(0x193),'onClick':()=>_0x121f22['coordinator'][_0x5895d6(0x1ce)]()},_0x5895d6(0x174)));}function Me(_0x90088b){var _0x58a081=_0x240cab;return _0x25c141[_0x58a081(0x15b)](_0x25c141[_0x58a081(0x1c7)],null,_0x25c141['createElement'](_0x58a081(0x15c),{'className':v[_0x58a081(0x134)]},_0x58a081(0x13b)),_0x25c141['createElement'](_0x53e8b1,{'size':_0x58a081(0x1ba),'type':_0x58a081(0x179),'onClick':()=>_0x90088b[_0x58a081(0x136)][_0x58a081(0x1ad)]()},_0x58a081(0x175)));}function Ge(_0x206270){var _0x3f7201=_0x240cab;return _0x25c141[_0x3f7201(0x15b)](_0x25c141[_0x3f7201(0x1c7)],null,_0x25c141['createElement'](_0x3f7201(0x15c),{'className':v[_0x3f7201(0x134)]},_0x3f7201(0x14a)),_0x25c141['createElement'](_0x53e8b1,{'size':_0x3f7201(0x1ba),'type':_0x3f7201(0x193),'onClick':()=>_0x206270['coordinator'][_0x3f7201(0x18a)]()},_0x3f7201(0x13a)));}function We(){var _0x4c5381=_0x240cab;return _0x25c141['createElement'](_0x25c141['Fragment'],null,_0x4c5381(0x19c));}var Be=Object['defineProperty'],Ye=Object[_0x240cab(0x1c0)],ze=(_0x88bcd3,_0x19700b,_0x1d79db,_0x497893)=>{var _0x5e70ec=_0x240cab;for(var _0x1ac3a=_0x497893>0x1?void 0x0:_0x497893?Ye(_0x19700b,_0x1d79db):_0x19700b,_0x2d232d=_0x88bcd3[_0x5e70ec(0x189)]-0x1,_0x44b796;_0x2d232d>=0x0;_0x2d232d--)(_0x44b796=_0x88bcd3[_0x2d232d])&&(_0x1ac3a=(_0x497893?_0x44b796(_0x19700b,_0x1d79db,_0x1ac3a):_0x44b796(_0x1ac3a))||_0x1ac3a);return _0x497893&&_0x1ac3a&&Be(_0x19700b,_0x1d79db,_0x1ac3a),_0x1ac3a;},A=(_0x10f734,_0x2f9cc6)=>(_0x1bd401,_0x5a9bbd)=>_0x2f9cc6(_0x1bd401,_0x5a9bbd,_0x10f734);let g=class extends _0x4ca92e{constructor(_0x197968,_0x321bde){var _0x5064f1=_0x240cab;super(),this[_0x5064f1(0x17f)]=_0x197968,this[_0x5064f1(0x160)]=_0x321bde,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x31c78e=_0x240cab;this[_0x31c78e(0x1a4)](this['_uiPartsService'][_0x31c78e(0x18d)](_0x5bc255[_0x31c78e(0x1bc)],()=>_0x20f3da(He,this[_0x31c78e(0x17f)])));}};g=ze([_0x2e3a4b(_0x43d8bb[_0x240cab(0x1af)],g),A(0x0,_0x1e9511(_0x1c816e)),A(0x1,_0x55820f)],g);var z=Object[_0x240cab(0x197)],Ze=Object['getOwnPropertyDescriptor'],Je=(_0x474b28,_0x4b8757,_0x4614cc)=>_0x4b8757 in _0x474b28?z(_0x474b28,_0x4b8757,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4614cc}):_0x474b28[_0x4b8757]=_0x4614cc,qe=(_0x37c7c9,_0x294e60,_0x281f89,_0x4f738e)=>{var _0x1dfa7e=_0x240cab;for(var _0x261839=_0x4f738e>0x1?void 0x0:_0x4f738e?Ze(_0x294e60,_0x281f89):_0x294e60,_0x4b37da=_0x37c7c9[_0x1dfa7e(0x189)]-0x1,_0x9c67de;_0x4b37da>=0x0;_0x4b37da--)(_0x9c67de=_0x37c7c9[_0x4b37da])&&(_0x261839=(_0x4f738e?_0x9c67de(_0x294e60,_0x281f89,_0x261839):_0x9c67de(_0x261839))||_0x261839);return _0x4f738e&&_0x261839&&z(_0x294e60,_0x281f89,_0x261839),_0x261839;},Ke=(_0x3642e9,_0x26dfe8)=>(_0x3a4f41,_0x5886fa)=>_0x26dfe8(_0x3a4f41,_0x5886fa,_0x3642e9),Z=(_0x1ef271,_0x44c616,_0x4ccf4b)=>Je(_0x1ef271,typeof _0x44c616!=_0x240cab(0x138)?_0x44c616+'':_0x44c616,_0x4ccf4b);const Qe='UNIVER_LIVE_SHARE_PLUGIN';let b=class extends _0x43231b{constructor(_0x111c3a,_0x21f731){var _0x1fff8f=_0x240cab;super(),this[_0x1fff8f(0x17f)]=_0x21f731;}[_0x240cab(0x156)](_0x20381e){var _0xe5e331=_0x240cab;[[L],[O],[m],[g]]['forEach'](_0x189ec2=>_0x20381e[_0xe5e331(0x1b1)](_0x189ec2));}};function _0x5aa9(){var _0x462f72=['defineProperty','init','current','idle','parse','You\x27are\x20offline.','has','not-following','colorChannel1','_reporters','_stopFollowing','function','trim','disposeWithMe','dispose','fill','type','LIVESHARE_NEW_HOST','registerSharedOperation','univer-live-share','string','sessionStatus$','startFollowing','asObservable','Rendered','clear','add','replace','evenodd','children','_univerInstanceService','_startPresenting','call','random','LIVESHARE_OPERATION','small','LIVESHARE_TERMINATE','HEADER_MENU','presenter','event$','entries','getOwnPropertyDescriptor','live-share-single','liveShareDropdown','NOT_FOLLOWING','LIVESHARE_FETCH_OPERATIONS','get','memberID','Fragment','162cSuTNs','_liveShareService','use','359750Gzxoek','attrs','createInstance','stopFollowing','toString','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','following','LiveShareSingle','next','_commandService','_beIdle','send','url(#$1','536637pgCkIf','className','apply','0\x200\x2017\x2017','getTypeOfUnitAdded$','prototype','getValue','currentColor','LIVESHARE_REQUEST_HOST','stringify','_commandDisposable','ONLINE','_status$','_stopPresenting','hasOwnProperty','632992DRUEYA','data','_handleOffline','offline','liveShareDropdownTitle','icon','coordinator','_startFollowing','symbol','defIds','Stop\x20presenting','You\x27re\x20not\x20following\x20the\x20presenter','_startLiveShareCoordinator','onCommandExecuted','concat','assign','extend','defs','mutations','FOLLOWING','shouldShareOperation','_configService','_fetchOperations','SAME_OPERATION_SHARE_INTERVAL','univer-live-share-dropdown','presenting','You\x27re\x20presenting\x20the\x20document','live-share-status-','290LFXFOl','_handleNewHost','getOwnPropertySymbols','1em','svg','delete','tag','set','491394XvGJxD','dispose$','onStarting','_sharedOperations','reverse','includes','getTypeOfUnitDisposed$','createElement','div','status$','_status','_handleTerminate','_uiPartsService','xlink:href','_handleOnline','propertyIsEnumerable','IDLE','OFFLINE','pluginName','then','complete','path','tryStartPresenting','getInitialStates','14yzCoqT','from','unsubscribe','getLiveShareCoordinator','univer-live-share-dropdown-title','subscribe','Starting','pipe','Stop\x20following','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','PRESENTING','getCurrentTypeOfUnit$','text','_handleNewChangeSets','184982ktiWWu','map','params','OPERATION','_injector','requireSession','13380arWYit','executeCommand','getMemberID','_presenter','_unitID','getUnitId','forEach','Present\x20this\x20document','length','stopPresenting','_handleOperation','101869bGXuQd','registerComponent','idSuffix','_init','click','UNIVER_SHEET','_collabSession','default','univer-live-share-status-offline','_entities','_collabSessionService'];_0x5aa9=function(){return _0x462f72;};return _0x5aa9();}Z(b,_0x240cab(0x1a7),_0x341753['UNIVER_SHEET']),Z(b,_0x240cab(0x166),Qe),b=qe([_0x19fa65(_0x27ebae),Ke(0x1,_0x1e9511(_0x1c816e))],b);export{L as LiveShareService,b as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x15fc(){var _0x16d26f=['defineProperty','stopFollowing','_handleOnline','InsertSheetMutation','onCommandExecuted','sessionStatus$','_handleOffline','extend','subscribe','Module','Start','LiveShareService','reverse','startFollowing','Injector','UniverInstanceType','div','You\x27are\x20offline.','getValue','assign','Starting','shouldShareOperation','LIVESHARE_REQUEST_HOST','_commandDisposable','_handleTerminate','parse','getTypeOfUnitAdded$','_commandService','status$','getUnitId','then','rxjs/operators','6271368dvdtsq','useEffect','next','pluginName','stringify','throttleTime','IDLE','mutations','You\x27re\x20following\x20the\x20presenter','prototype','takeUntil','_entities','forwardRef','createElement','params','default','UniverCollaborationClientPlugin','_startLiveShareCoordinator','UniverLiveSharePlugin','univer-live-share-status-offline','SetWorksheetActiveOperation','evenodd','getLiveShareCoordinator','idle','function','indexOf','FOLLOWING','dispose','React','liveShareDropdown','UNIVER_LIVE_SHARE_PLUGIN','NOT_FOLLOWING','CommandType','ICommandService','UniverCollaborationClient','CollaborationEvent','react','_stopFollowing','BehaviorSubject','You\x27re\x20not\x20following\x20the\x20presenter','_handleNewChangeSets','UNIVER_SHEET','IUniverInstanceService','Stop\x20presenting','Stop\x20following','PRESENTING','getOwnPropertyDescriptor','tag','23404VdPFUf','path','children','Start\x20following','RxDisposable','SetZoomRatioOperation','string','DependentOn','1em','tryStartPresenting','stopPresenting','coordinator','get','useDependency','_liveShareService','@univerjs/sheets','_stopPresenting','liveShareDropdownTitle','getMemberID','data','currentColor','0\x200\x2017\x2017','univer-live-share-dropdown','svg','SessionStatus','current','complete','6150852orbJbw','displayName','_sharedOperations','presenting','_init','6MpFwnN','Fragment','text','className','icon','click','clear','rxjs','@univerjs-pro/collaboration','add','presenter','DisposableCollection','Present\x20this\x20document','_mountLiveShare','attrs','getOwnPropertySymbols','useRef','_fetchOperations','colorChannel1','getTypeOfUnitDisposed$','has','dispose$','UniverSheetsUi','_handleOperation','SAME_OPERATION_SHARE_INTERVAL','_univerInstanceService','OFFLINE','not-following','createInstance','UniverDesign','executeCommand','_beIdle','_collabSession','type','NEW_CHANGESETS','registerComponent','You\x27re\x20presenting\x20the\x20document','symbol','4259773rHutrn','502xiJFtz','2947088dKFGgR','@univerjs/ui','concat','length','amd','disposeWithMe','useState','Inject','7269MJzJtQ','_reporters','toDisposable','_injector','getConfig','clsx','@univerjs/sheets-ui','fill','LIVESHARE_FETCH_OPERATIONS','IConfigService','HEADER_MENU','LIVESHARE_TERMINATE','UniverCollaboration','Dropdown','746750sdtguE','toStringTag','idSuffix','call','xlink:href','entries','use','includes','exports','ONLINE','UniverIcon','Button','_configService','sheet','small','useObservable','connectInjector','@univerjs/design','registerSharedOperation','_presenter','unsubscribe','memberID','url(#$1','from','map','following','send','univer-live-share-dropdown-title','pipe','OnLifecycle','getCurrentTypeOfUnit$','OPERATION','@univerjs/core','set','Disposable','delete','registerInitialStateReporter','LIVESHARE_NEW_HOST','onStarting','parseProtocolChangeset','defs','object','@univerjs-pro/collaboration-client','toString','trim','LIVESHARE_OPERATION','offline','_status$','live-share-single','Subject','_startPresenting','_startFollowing','BuiltInUIPart','forEach','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','_status','_unitID','find','LifecycleStages','getInitialStates','_handleNewHost','requireSession'];_0x15fc=function(){return _0x16d26f;};return _0x15fc();}function _0x3e68(_0x5c5d97,_0x2a3c3a){var _0x15fc1b=_0x15fc();return _0x3e68=function(_0x3e68dd,_0x19d338){_0x3e68dd=_0x3e68dd-0x73;var _0x383d1b=_0x15fc1b[_0x3e68dd];return _0x383d1b;},_0x3e68(_0x5c5d97,_0x2a3c3a);}(function(_0x3c2edc,_0x2d943b){var _0x4d80ce=_0x3e68,_0x5f5640=_0x3c2edc();while(!![]){try{var _0x251aca=parseInt(_0x4d80ce(0x15a))/0x1+parseInt(_0x4d80ce(0xb5))/0x2*(parseInt(_0x4d80ce(0xbe))/0x3)+-parseInt(_0x4d80ce(0xb6))/0x4+-parseInt(_0x4d80ce(0xcc))/0x5+parseInt(_0x4d80ce(0x8e))/0x6*(parseInt(_0x4d80ce(0xb4))/0x7)+parseInt(_0x4d80ce(0x12a))/0x8+-parseInt(_0x4d80ce(0x89))/0x9;if(_0x251aca===_0x2d943b)break;else _0x5f5640['push'](_0x5f5640['shift']());}catch(_0x1a151e){_0x5f5640['push'](_0x5f5640['shift']());}}}(_0x15fc,0x6ef57),function(_0x613e4a,_0x47f9d5){var _0x27beb1=_0x3e68;typeof exports==_0x27beb1(0xf5)&&typeof module<'u'?_0x47f9d5(exports,require(_0x27beb1(0xec)),require(_0x27beb1(0xf6)),require(_0x27beb1(0x7d)),require(_0x27beb1(0xc4)),require('@univerjs-pro/collaboration'),require('rxjs'),require(_0x27beb1(0x129)),require('@univerjs/ui'),require('@univerjs/design'),require(_0x27beb1(0xc3)),require(_0x27beb1(0x14e))):typeof define==_0x27beb1(0x142)&&define[_0x27beb1(0xba)]?define([_0x27beb1(0xd4),'@univerjs/core','@univerjs-pro/collaboration-client',_0x27beb1(0x7d),_0x27beb1(0xc4),_0x27beb1(0x96),_0x27beb1(0x95),_0x27beb1(0x129),_0x27beb1(0xb7),_0x27beb1(0xdd),'clsx',_0x27beb1(0x14e)],_0x47f9d5):(_0x613e4a=typeof globalThis<'u'?globalThis:_0x613e4a||self,_0x47f9d5(_0x613e4a['UniverLiveShare']={},_0x613e4a['UniverCore'],_0x613e4a[_0x27beb1(0x14c)],_0x613e4a['UniverSheets'],_0x613e4a[_0x27beb1(0xa4)],_0x613e4a[_0x27beb1(0xca)],_0x613e4a[_0x27beb1(0x95)],_0x613e4a[_0x27beb1(0x95)]['operators'],_0x613e4a['UniverUi'],_0x613e4a[_0x27beb1(0xab)],_0x613e4a[_0x27beb1(0xc3)],_0x613e4a[_0x27beb1(0x146)]));}(this,function(_0x461c5c,_0xb7b5f4,_0x5812c9,_0x1bcbda,_0x29a21d,_0x436625,_0x2d33bf,_0x563151,_0x1a742e,_0x5a3d1e,_0x14293c,_0x2ff5a0){'use strict';var _0x179e0c=_0x3e68;var _0x499e13=Object[_0x179e0c(0x10a)],_0x56a873=(_0x151462,_0x2c82ce,_0x50697d)=>_0x2c82ce in _0x151462?_0x499e13(_0x151462,_0x2c82ce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x50697d}):_0x151462[_0x2c82ce]=_0x50697d,_0x19ff49=(_0x529503,_0x13ee2c,_0x44f46e)=>_0x56a873(_0x529503,typeof _0x13ee2c!=_0x179e0c(0xb3)?_0x13ee2c+'':_0x13ee2c,_0x44f46e);class _0xab6789 extends _0xb7b5f4[_0x179e0c(0xee)]{constructor(){var _0x8042a=_0x179e0c;super(...arguments),_0x19ff49(this,_0x8042a(0x8b),new Set()),_0x19ff49(this,_0x8042a(0xbf),new Set());}[_0x179e0c(0xde)](_0x4fb0b9){var _0x18345b=_0x179e0c;return this[_0x18345b(0x8b)][_0x18345b(0x97)](_0x4fb0b9),_0xb7b5f4[_0x18345b(0xc0)](()=>this[_0x18345b(0x8b)][_0x18345b(0xef)](_0x4fb0b9));}[_0x179e0c(0xf0)](_0x240e8f){var _0x38fe6d=_0x179e0c;return this[_0x38fe6d(0xbf)][_0x38fe6d(0x97)](_0x240e8f),_0xb7b5f4['toDisposable'](()=>this[_0x38fe6d(0xbf)][_0x38fe6d(0xef)](_0x240e8f));}[_0x179e0c(0x11f)](_0x390fe7){var _0x4d0317=_0x179e0c;return this['_sharedOperations'][_0x4d0317(0xa2)](_0x390fe7);}[_0x179e0c(0x107)](_0x2f0f7f){var _0x316dcd=_0x179e0c;return Array[_0x316dcd(0xe3)](this[_0x316dcd(0xbf)])[_0x316dcd(0xe4)](_0x889ad1=>_0x889ad1(_0x2f0f7f));}}var _0x42c162=Object[_0x179e0c(0x10a)],_0x10ce28=Object[_0x179e0c(0x158)],_0x6cf5a7=(_0x3b3741,_0x2dd856,_0x541b53,_0x4a8262)=>{var _0x3f6251=_0x179e0c;for(var _0x48b5fd=_0x4a8262>0x1?void 0x0:_0x4a8262?_0x10ce28(_0x2dd856,_0x541b53):_0x2dd856,_0x566029=_0x3b3741[_0x3f6251(0xb9)]-0x1,_0x5b93bd;_0x566029>=0x0;_0x566029--)(_0x5b93bd=_0x3b3741[_0x566029])&&(_0x48b5fd=(_0x4a8262?_0x5b93bd(_0x2dd856,_0x541b53,_0x48b5fd):_0x5b93bd(_0x48b5fd))||_0x48b5fd);return _0x4a8262&&_0x48b5fd&&_0x42c162(_0x2dd856,_0x541b53,_0x48b5fd),_0x48b5fd;},_0x270e8c=(_0x20e6ca,_0x53827a)=>(_0xed6561,_0x516858)=>_0x53827a(_0xed6561,_0x516858,_0x20e6ca);let _0xaa4fc6=class extends _0xb7b5f4[_0x179e0c(0xee)]{constructor(_0x4894d1){var _0x60cc9e=_0x179e0c;super(),this[_0x60cc9e(0x7c)]=_0x4894d1,this[_0x60cc9e(0x8d)]();}[_0x179e0c(0x8d)](){var _0x17d1de=_0x179e0c;[_0x29a21d[_0x17d1de(0x73)]['id'],_0x29a21d['SetScrollOperation']['id'],_0x1bcbda[_0x17d1de(0x13e)]['id']][_0x17d1de(0x101)](_0x45abfa=>{var _0x5d733f=_0x17d1de;this[_0x5d733f(0xbb)](this[_0x5d733f(0x7c)][_0x5d733f(0xde)](_0x45abfa));});}};_0xaa4fc6=_0x6cf5a7([_0xb7b5f4[_0x179e0c(0xe9)](_0xb7b5f4[_0x179e0c(0x106)][_0x179e0c(0x11e)],_0xaa4fc6),_0x270e8c(0x0,_0xb7b5f4['Inject'](_0xab6789))],_0xaa4fc6);var _0x2e982e=Object[_0x179e0c(0x10a)],_0x525e83=Object['getOwnPropertyDescriptor'],_0x25fdb1=(_0x50562e,_0x54b677,_0x4cd565,_0x9c4dff)=>{var _0x1ec923=_0x179e0c;for(var _0x54136f=_0x9c4dff>0x1?void 0x0:_0x9c4dff?_0x525e83(_0x54b677,_0x4cd565):_0x54b677,_0x15c660=_0x50562e[_0x1ec923(0xb9)]-0x1,_0x2a59f9;_0x15c660>=0x0;_0x15c660--)(_0x2a59f9=_0x50562e[_0x15c660])&&(_0x54136f=(_0x9c4dff?_0x2a59f9(_0x54b677,_0x4cd565,_0x54136f):_0x2a59f9(_0x54136f))||_0x54136f);return _0x9c4dff&&_0x54136f&&_0x2e982e(_0x54b677,_0x4cd565,_0x54136f),_0x54136f;},_0x18bbdd=(_0x49781b,_0x129a44)=>(_0x5d05c6,_0x37f691)=>_0x129a44(_0x5d05c6,_0x37f691,_0x49781b);let _0x7b357c=class extends _0xb7b5f4['RxDisposable']{constructor(_0x2cec59,_0x2cd214,_0x1a2f45){var _0x17121e=_0x179e0c;super(),_0x19ff49(this,_0x17121e(0x135),new Map()),(this['_univerInstanceService']=_0x2cec59,this['_injector']=_0x2cd214,this['_collabSessionService']=_0x1a2f45,this[_0x17121e(0x8d)]());}async[_0x179e0c(0x140)](_0x3d82f7){var _0x204e9b=_0x179e0c;return this[_0x204e9b(0x135)]['has'](_0x3d82f7)||await this[_0x204e9b(0x13b)](_0x3d82f7),this['_entities'][_0x204e9b(0x7a)](_0x3d82f7);}[_0x179e0c(0x8d)](){var _0x3b4b95=_0x179e0c;this[_0x3b4b95(0xa7)][_0x3b4b95(0x124)](_0xb7b5f4[_0x3b4b95(0x119)][_0x3b4b95(0x153)])['pipe'](_0x563151[_0x3b4b95(0x134)](this[_0x3b4b95(0xa3)]))[_0x3b4b95(0x112)](async _0x183385=>{var _0x27cb47=_0x3b4b95;const _0xcaf8de=_0x183385[_0x27cb47(0x127)]();this[_0x27cb47(0x135)]['has'](_0xcaf8de)||this['_startLiveShareCoordinator'](_0xcaf8de);}),this[_0x3b4b95(0xa7)][_0x3b4b95(0xa1)](_0xb7b5f4['UniverInstanceType']['UNIVER_SHEET'])['pipe'](_0x563151['takeUntil'](this[_0x3b4b95(0xa3)]))['subscribe'](_0x2e7d77=>{var _0x376770=_0x3b4b95;const _0x23b106=_0x2e7d77[_0x376770(0x127)](),_0x15dce4=this[_0x376770(0x135)][_0x376770(0x7a)](_0x23b106);_0x15dce4==null||_0x15dce4[_0x376770(0x145)]();});}async[_0x179e0c(0x13b)](_0x4088a9){var _0x3a6a67=_0x179e0c;const _0x343d41=await this['_collabSessionService'][_0x3a6a67(0x109)](_0x4088a9),_0x57ed57=this[_0x3a6a67(0xc1)][_0x3a6a67(0xaa)](_0x30fa6d,_0x4088a9,_0x343d41);return _0x57ed57['init'](),this[_0x3a6a67(0x135)][_0x3a6a67(0xed)](_0x4088a9,_0x57ed57),_0x57ed57;}};_0x7b357c=_0x25fdb1([_0x18bbdd(0x0,_0xb7b5f4[_0x179e0c(0x154)]),_0x18bbdd(0x1,_0xb7b5f4['Inject'](_0xb7b5f4['Injector'])),_0x18bbdd(0x2,_0xb7b5f4[_0x179e0c(0xbd)](_0x5812c9['CollaborationSessionService']))],_0x7b357c);var _0x44c56f=(_0x106f47=>(_0x106f47[_0x179e0c(0xa8)]=_0x179e0c(0xfa),_0x106f47[_0x179e0c(0x130)]='idle',_0x106f47[_0x179e0c(0x144)]=_0x179e0c(0xe5),_0x106f47['NOT_FOLLOWING']='not-following',_0x106f47[_0x179e0c(0x157)]=_0x179e0c(0x8c),_0x106f47))(_0x44c56f||{});const _0x21590a=_0x179e0c(0xa6),_0x444114=0xc8;let _0x30fa6d=class extends _0xb7b5f4[_0x179e0c(0x15e)]{constructor(_0x3ea49b,_0x54f620,_0x698bff,_0x2888ce,_0x56a22b){var _0x526b07=_0x179e0c;super(),_0x19ff49(this,'_status$',new _0x2d33bf[(_0x526b07(0x150))](_0x526b07(0x141))),_0x19ff49(this,_0x526b07(0x126),this['_status$']['asObservable']()),_0x19ff49(this,_0x526b07(0x8d),!0x1),_0x19ff49(this,_0x526b07(0x121),null),_0x19ff49(this,_0x526b07(0xdf),null),(this[_0x526b07(0x104)]=_0x3ea49b,this[_0x526b07(0xae)]=_0x54f620,this[_0x526b07(0xd8)]=_0x698bff,this['_liveShareService']=_0x2888ce,this[_0x526b07(0x125)]=_0x56a22b);}get['_status'](){var _0x36696a=_0x179e0c;return this[_0x36696a(0xfb)][_0x36696a(0x11c)]();}['dispose'](){var _0x42de3f=_0x179e0c,_0x1a2750;(_0x1a2750=this[_0x42de3f(0x121)])==null||_0x1a2750[_0x42de3f(0x145)](),this[_0x42de3f(0xfb)][_0x42de3f(0x12c)](_0x42de3f(0x141)),this[_0x42de3f(0xfb)]['complete']();}['init'](){var _0x4c79a9=_0x179e0c;this[_0x4c79a9(0x8d)]||(this[_0x4c79a9(0x8d)]=!0x0,this[_0x4c79a9(0xae)][_0x4c79a9(0x10f)]['pipe'](_0x563151[_0x4c79a9(0x134)](this[_0x4c79a9(0xa3)]))[_0x4c79a9(0x112)](_0x5aa96c=>{var _0x14be0f=_0x4c79a9;switch(_0x5aa96c){case _0x5812c9[_0x14be0f(0x86)][_0x14be0f(0xa8)]:this[_0x14be0f(0x110)]();break;case _0x5812c9[_0x14be0f(0x86)][_0x14be0f(0xd5)]:this[_0x14be0f(0x10c)]();break;}}),this[_0x4c79a9(0xae)]['event$'][_0x4c79a9(0xe8)](_0x563151[_0x4c79a9(0x134)](this[_0x4c79a9(0xa3)]))[_0x4c79a9(0x112)](_0x51927b=>{var _0x4b6437=_0x4c79a9;const {eventID:_0x5b62a7}=_0x51927b;switch(_0x5b62a7){case _0x436625['CollaborationEvent'][_0x4b6437(0xf1)]:this[_0x4b6437(0x108)](_0x51927b);break;case _0x436625[_0x4b6437(0x14d)][_0x4b6437(0xf9)]:this[_0x4b6437(0xa5)](_0x51927b);break;case _0x436625[_0x4b6437(0x14d)]['LIVESHARE_TERMINATE']:this[_0x4b6437(0x122)]();break;case _0x436625[_0x4b6437(0x14d)][_0x4b6437(0xb0)]:this[_0x4b6437(0x152)](_0x51927b);break;}}));}[_0x179e0c(0x77)](){var _0x1f3204=_0x179e0c;this[_0x1f3204(0xae)]['send']({'eventID':_0x436625[_0x1f3204(0x14d)][_0x1f3204(0x120)],'data':{'unitID':this[_0x1f3204(0x104)],'userID':this['_collabSession'][_0x1f3204(0x80)]()}},this[_0x1f3204(0x104)]);}[_0x179e0c(0x78)](){var _0x46dc12=_0x179e0c;this[_0x46dc12(0x103)]===_0x46dc12(0x8c)&&(this[_0x46dc12(0xfb)][_0x46dc12(0x12c)]('idle'),this['_collabSession']['send']({'eventID':_0x436625[_0x46dc12(0x14d)][_0x46dc12(0xc9)],'data':{'unitID':this[_0x46dc12(0x104)]}},this['_unitID']));}['startFollowing'](){var _0x1b332c=_0x179e0c;this['_status']===_0x1b332c(0xa9)&&(this[_0x1b332c(0xfb)][_0x1b332c(0x12c)](_0x1b332c(0xe5)),this[_0x1b332c(0xff)]());}['stopFollowing'](){var _0xc02fc1=_0x179e0c;this[_0xc02fc1(0x103)]===_0xc02fc1(0xe5)&&this[_0xc02fc1(0x14f)]();}['_handleNewHost'](_0x4e59d5){var _0x4a54a9=_0x179e0c;const {presenter:_0x188a6b}=_0x4e59d5[_0x4a54a9(0x81)],_0x41678a=this[_0x4a54a9(0xae)][_0x4a54a9(0x80)]();this[_0x4a54a9(0xdf)]=_0x188a6b,_0x188a6b===_0x41678a?(this[_0x4a54a9(0x14f)](),this['_startPresenting']()):this['_status']!=='not-following'&&(this['_stopPresenting'](),this[_0x4a54a9(0xff)]());}['_fetchOperations'](){var _0x438bfc=_0x179e0c;const _0xc09aba={'eventID':_0x436625[_0x438bfc(0x14d)][_0x438bfc(0xc6)]};this[_0x438bfc(0xae)][_0x438bfc(0xe6)](_0xc09aba,this[_0x438bfc(0x104)]);}[_0x179e0c(0x122)](){var _0x11feae=_0x179e0c;this[_0x11feae(0xdf)]=null,this['_status']!==_0x11feae(0x8c)&&this[_0x11feae(0xad)]();}[_0x179e0c(0x152)](_0x554676){var _0x4cd03a=_0x179e0c;if(this['_status']===_0x4cd03a(0xe5)&&this[_0x4cd03a(0xdf)]===_0x554676[_0x4cd03a(0x81)][_0x4cd03a(0xe1)]){const _0x31bc1f=_0x436625[_0x4cd03a(0xf3)](_0x554676['data'])[_0x4cd03a(0x131)][_0x4cd03a(0x116)]()[_0x4cd03a(0x105)](_0x1bcf83=>_0x1bcf83['id']===_0x1bcbda[_0x4cd03a(0x10d)]['id']);if(_0x31bc1f){const _0x1b26a5=_0x31bc1f[_0x4cd03a(0x138)]['unitId'],_0x1326f6=_0x31bc1f[_0x4cd03a(0x138)][_0x4cd03a(0xd9)]['id'];setTimeout(()=>{var _0x54eb8b=_0x4cd03a;this['_commandService'][_0x54eb8b(0xac)](_0x1bcbda[_0x54eb8b(0x13e)]['id'],{'unitId':_0x1b26a5,'subUnitId':_0x1326f6},{'fromCollab':!0x0});});}}}[_0x179e0c(0xfe)](){var _0x76f099=_0x179e0c;this[_0x76f099(0xfb)][_0x76f099(0x12c)](_0x76f099(0x8c));const _0x257e00=new Map(),_0x23e4f3=this['_commandDisposable']=new _0xb7b5f4[(_0x76f099(0x99))]();_0x23e4f3[_0x76f099(0x97)](_0xb7b5f4[_0x76f099(0xc0)](()=>{var _0x2ad6e5=_0x76f099;_0x257e00[_0x2ad6e5(0x101)](_0x5251e9=>_0x5251e9[_0x2ad6e5(0x88)]()),_0x257e00[_0x2ad6e5(0x94)]();})),_0x23e4f3['add'](this[_0x76f099(0x125)][_0x76f099(0x10e)](_0x5d9b8e=>{var _0x5d7409=_0x76f099,_0x22fb8e;if(_0x5d9b8e[_0x5d7409(0xaf)]!==_0xb7b5f4[_0x5d7409(0x14a)][_0x5d7409(0xeb)]||!this[_0x5d7409(0x7c)][_0x5d7409(0x11f)](_0x5d9b8e['id']))return;const {id:_0x4568ee}=_0x5d9b8e;let _0x2d9242;_0x257e00['has'](_0x4568ee)?_0x2d9242=_0x257e00['get'](_0x4568ee):(_0x2d9242=new _0x2d33bf[(_0x5d7409(0xfd))](),_0x257e00[_0x5d7409(0xed)](_0x4568ee,_0x2d9242),_0x2d9242[_0x5d7409(0xe8)](_0x563151[_0x5d7409(0x12f)]((_0x22fb8e=this[_0x5d7409(0xd8)][_0x5d7409(0xc2)](_0x21590a))!=null?_0x22fb8e:_0x444114,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5d7409(0x112)](_0x424aa2=>{var _0x318b0b=_0x5d7409;this['_collabSession'][_0x318b0b(0xe6)]({'eventID':_0x436625[_0x318b0b(0x14d)][_0x318b0b(0xf9)],'data':{'unitID':this['_unitID'],'operations':{[_0x424aa2['id']]:{'id':_0x424aa2['id'],'params':JSON[_0x318b0b(0x12e)](_0x424aa2[_0x318b0b(0x138)])}}}},this['_unitID']);})),_0x2d9242[_0x5d7409(0x12c)](_0x5d9b8e);})),this['_liveShareService']['getInitialStates'](this[_0x76f099(0x104)])[_0x76f099(0x101)](_0x3c2363=>this[_0x76f099(0xae)][_0x76f099(0xe6)]({'eventID':_0x436625[_0x76f099(0x14d)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x3c2363['id']]:{'id':_0x3c2363['id'],'params':JSON[_0x76f099(0x12e)](_0x3c2363[_0x76f099(0x138)])}}}},this[_0x76f099(0x104)]));}[_0x179e0c(0x7e)](){var _0x12f8af=_0x179e0c,_0x364e1b;this[_0x12f8af(0xfb)][_0x12f8af(0x12c)](_0x12f8af(0x141)),(_0x364e1b=this['_commandDisposable'])==null||_0x364e1b[_0x12f8af(0x145)](),this[_0x12f8af(0x121)]=null;}['_startFollowing'](){var _0x2a755d=_0x179e0c,_0x1d294c;(_0x1d294c=this[_0x2a755d(0x121)])==null||_0x1d294c[_0x2a755d(0x145)](),this[_0x2a755d(0xfb)][_0x2a755d(0x12c)](_0x2a755d(0xe5));}[_0x179e0c(0xad)](){var _0x3aa740=_0x179e0c,_0x30a8c9;this['_status$'][_0x3aa740(0x12c)](_0x3aa740(0x141)),(_0x30a8c9=this[_0x3aa740(0x121)])==null||_0x30a8c9['dispose'](),this[_0x3aa740(0x121)]=null;}[_0x179e0c(0x14f)](){var _0x19bdb8=_0x179e0c,_0x126c39;this['_status$'][_0x19bdb8(0x12c)](_0x19bdb8(0xa9)),(_0x126c39=this[_0x19bdb8(0x121)])==null||_0x126c39['dispose']();}[_0x179e0c(0xa5)](_0x77b3b0){var _0xd65905=_0x179e0c;if([_0xd65905(0x8c),_0xd65905(0xa9),'offline'][_0xd65905(0xd3)](this['_status'])||!_0x77b3b0['data'][_0xd65905(0x98)]||_0x77b3b0[_0xd65905(0x81)]['presenter']===this['_collabSession']['getMemberID']())return;this[_0xd65905(0x103)]===_0xd65905(0x141)&&this[_0xd65905(0xff)]();const _0x44415f=_0x77b3b0[_0xd65905(0x81)]['operations'];Object['values'](_0x44415f)[_0xd65905(0x101)](_0x3fcd7d=>{var _0x1c2799=_0xd65905;this[_0x1c2799(0x125)][_0x1c2799(0xac)](_0x3fcd7d['id'],_0x3fcd7d[_0x1c2799(0x138)]?JSON[_0x1c2799(0x123)](_0x3fcd7d[_0x1c2799(0x138)]):null,{'fromCollab':!0x0});});}[_0x179e0c(0x110)](){var _0x2921d3=_0x179e0c,_0x242d99;this[_0x2921d3(0xfb)][_0x2921d3(0x12c)](_0x2921d3(0xfa)),(_0x242d99=this[_0x2921d3(0x121)])==null||_0x242d99[_0x2921d3(0x145)]();}[_0x179e0c(0x10c)](){var _0x2e71f7=_0x179e0c;this[_0x2e71f7(0xfb)]['next']('idle'),this[_0x2e71f7(0x9f)]();}};_0x30fa6d=_0x25fdb1([_0x18bbdd(0x2,_0xb7b5f4[_0x179e0c(0xc7)]),_0x18bbdd(0x3,_0xb7b5f4[_0x179e0c(0xbd)](_0xab6789)),_0x18bbdd(0x4,_0xb7b5f4[_0x179e0c(0x14b)])],_0x30fa6d);var _0x58eb05=function(){var _0x4c395c=_0x179e0c;return _0x58eb05=Object[_0x4c395c(0x11d)]||function(_0x3faf0e){var _0x53850b=_0x4c395c;for(var _0x37700a,_0xe177d9=0x1,_0x33a8c9=arguments[_0x53850b(0xb9)];_0xe177d9<_0x33a8c9;_0xe177d9++){_0x37700a=arguments[_0xe177d9];for(var _0x66ee29 in _0x37700a)Object['prototype']['hasOwnProperty'][_0x53850b(0xcf)](_0x37700a,_0x66ee29)&&(_0x3faf0e[_0x66ee29]=_0x37700a[_0x66ee29]);}return _0x3faf0e;},_0x58eb05['apply'](this,arguments);},_0x5a8442=function(_0x4c60b2,_0x5b6da3){var _0x5d1683=_0x179e0c,_0x7ed232={};for(var _0x1b1e4c in _0x4c60b2)Object[_0x5d1683(0x133)]['hasOwnProperty']['call'](_0x4c60b2,_0x1b1e4c)&&_0x5b6da3[_0x5d1683(0x143)](_0x1b1e4c)<0x0&&(_0x7ed232[_0x1b1e4c]=_0x4c60b2[_0x1b1e4c]);if(_0x4c60b2!=null&&typeof Object[_0x5d1683(0x9d)]=='function'){for(var _0xb8f98d=0x0,_0x1b1e4c=Object[_0x5d1683(0x9d)](_0x4c60b2);_0xb8f98d<_0x1b1e4c[_0x5d1683(0xb9)];_0xb8f98d++)_0x5b6da3['indexOf'](_0x1b1e4c[_0xb8f98d])<0x0&&Object[_0x5d1683(0x133)]['propertyIsEnumerable']['call'](_0x4c60b2,_0x1b1e4c[_0xb8f98d])&&(_0x7ed232[_0x1b1e4c[_0xb8f98d]]=_0x4c60b2[_0x1b1e4c[_0xb8f98d]]);}return _0x7ed232;},_0x162035=_0x2ff5a0[_0x179e0c(0x136)](function(_0xaaa221,_0x162957){var _0x3f7f1a=_0x179e0c,_0x4ec896=_0xaaa221[_0x3f7f1a(0x92)],_0x2ec637=_0xaaa221['id'],_0x39b73=_0xaaa221[_0x3f7f1a(0x91)],_0x23bb5c=_0xaaa221[_0x3f7f1a(0x111)],_0x5a9db9=_0x5a8442(_0xaaa221,[_0x3f7f1a(0x92),'id',_0x3f7f1a(0x91),_0x3f7f1a(0x111)]),_0x222738='univerjs-icon\x20univerjs-icon-'[_0x3f7f1a(0xb8)](_0x2ec637,'\x20')[_0x3f7f1a(0xb8)](_0x39b73||'')[_0x3f7f1a(0xf8)](),_0x596708=_0x2ff5a0[_0x3f7f1a(0x9e)]('_'[_0x3f7f1a(0xb8)](_0x9bb178()));return _0x248fa8(_0x4ec896,''[_0x3f7f1a(0xb8)](_0x2ec637),{'defIds':_0x4ec896['defIds'],'idSuffix':_0x596708[_0x3f7f1a(0x87)]},_0x58eb05({'ref':_0x162957,'className':_0x222738},_0x5a9db9),_0x23bb5c);});function _0x248fa8(_0x5b4220,_0x3a9f3a,_0x24e76e,_0x4fa31f,_0x48befe){var _0x22eabc=_0x179e0c;return _0x2ff5a0[_0x22eabc(0x137)](_0x5b4220[_0x22eabc(0x159)],_0x58eb05(_0x58eb05({'key':_0x3a9f3a},_0x280f23(_0x5b4220,_0x24e76e,_0x48befe)),_0x4fa31f),(_0x1f4e94(_0x5b4220,_0x24e76e)[_0x22eabc(0x15c)]||[])[_0x22eabc(0xe4)](function(_0x3d4cfb,_0x518f47){var _0x4ae881=_0x22eabc;return _0x248fa8(_0x3d4cfb,''[_0x4ae881(0xb8)](_0x3a9f3a,'-')[_0x4ae881(0xb8)](_0x5b4220[_0x4ae881(0x159)],'-')[_0x4ae881(0xb8)](_0x518f47),_0x24e76e,void 0x0,_0x48befe);}));}function _0x280f23(_0x4ee447,_0x34203d,_0x62d297){var _0x54cf94=_0x179e0c,_0x536c33=_0x58eb05({},_0x4ee447[_0x54cf94(0x9c)]);_0x62d297!=null&&_0x62d297[_0x54cf94(0xa0)]&&_0x536c33[_0x54cf94(0xc5)]===_0x54cf94(0xa0)&&(_0x536c33[_0x54cf94(0xc5)]=_0x62d297[_0x54cf94(0xa0)]);var _0x31a2ce=_0x34203d['defIds'];return!_0x31a2ce||_0x31a2ce[_0x54cf94(0xb9)]===0x0||(_0x4ee447[_0x54cf94(0x159)]===_0x54cf94(0xd2)&&_0x536c33[_0x54cf94(0xd0)]&&(_0x536c33[_0x54cf94(0xd0)]=_0x536c33[_0x54cf94(0xd0)]+_0x34203d['idSuffix']),Object[_0x54cf94(0xd1)](_0x536c33)['forEach'](function(_0x512e15){var _0x4e1484=_0x54cf94,_0x1a9d4e=_0x512e15[0x0],_0x17e013=_0x512e15[0x1];typeof _0x17e013==_0x4e1484(0x74)&&(_0x536c33[_0x1a9d4e]=_0x17e013['replace'](/url\(#(.*)\)/,_0x4e1484(0xe2)[_0x4e1484(0xb8)](_0x34203d[_0x4e1484(0xce)],')')));})),_0x536c33;}function _0x1f4e94(_0x28749c,_0x5dced6){var _0x31cc4d=_0x179e0c,_0x4c6ca8,_0x3755da=_0x5dced6['defIds'];return!_0x3755da||_0x3755da['length']===0x0?_0x28749c:_0x28749c[_0x31cc4d(0x159)]===_0x31cc4d(0xf4)&&(!((_0x4c6ca8=_0x28749c[_0x31cc4d(0x15c)])===null||_0x4c6ca8===void 0x0)&&_0x4c6ca8[_0x31cc4d(0xb9)])?_0x58eb05(_0x58eb05({},_0x28749c),{'children':_0x28749c[_0x31cc4d(0x15c)][_0x31cc4d(0xe4)](function(_0x2c6b49){var _0x599c3e=_0x31cc4d;return typeof _0x2c6b49['attrs']['id']=='string'&&_0x3755da&&_0x3755da['indexOf'](_0x2c6b49[_0x599c3e(0x9c)]['id'])>-0x1?_0x58eb05(_0x58eb05({},_0x2c6b49),{'attrs':_0x58eb05(_0x58eb05({},_0x2c6b49[_0x599c3e(0x9c)]),{'id':_0x2c6b49['attrs']['id']+_0x5dced6[_0x599c3e(0xce)]})}):_0x2c6b49;})}):_0x28749c;}function _0x9bb178(){var _0x176ea8=_0x179e0c;return Math['random']()[_0x176ea8(0xf7)](0x24)['substring'](0x2,0x8);}_0x162035['displayName']=_0x179e0c(0xd6);var _0xe9e31d={'tag':_0x179e0c(0x85),'attrs':{'fill':'none','viewBox':_0x179e0c(0x83),'width':_0x179e0c(0x76),'height':_0x179e0c(0x76)},'children':[{'tag':'path','attrs':{'fill':_0x179e0c(0x82),'d':_0x179e0c(0x102)}},{'tag':_0x179e0c(0x15b),'attrs':{'fill':_0x179e0c(0x82),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x179e0c(0x13f)}}]},_0xd2c97a=_0x2ff5a0[_0x179e0c(0x136)](function(_0x49431c,_0xdce5a5){var _0x133a38=_0x179e0c;return _0x2ff5a0[_0x133a38(0x137)](_0x162035,Object[_0x133a38(0x11d)]({},_0x49431c,{'id':_0x133a38(0xfc),'ref':_0xdce5a5,'icon':_0xe9e31d}));});_0xd2c97a[_0x179e0c(0x8a)]='LiveShareSingle';const _0x483ce2={'liveShare':'univer-live-share','liveShareStatusOffline':_0x179e0c(0x13d),'liveShareDropdown':_0x179e0c(0x84),'liveShareDropdownTitle':_0x179e0c(0xe7)};function _0x59849d(){var _0x38e76a=_0x179e0c;const _0x417097=_0xb7b5f4[_0x38e76a(0x7b)](_0x7b357c),_0x25af38=_0xb7b5f4[_0x38e76a(0x7b)](_0xb7b5f4[_0x38e76a(0x154)]),_0x231baa=_0x1a742e[_0x38e76a(0xdb)](()=>_0x25af38[_0x38e76a(0xea)](_0xb7b5f4[_0x38e76a(0x119)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x30628f,_0xe756af]=_0x2ff5a0[_0x38e76a(0xbc)](null),[_0xc1bd38,_0x4801f9]=_0x2ff5a0[_0x38e76a(0xbc)](_0x44c56f[_0x38e76a(0x130)]),_0x1722b9=_0x2ff5a0[_0x38e76a(0x9e)](null);_0x2ff5a0[_0x38e76a(0x12b)](()=>(_0x231baa&&_0x417097['getLiveShareCoordinator'](_0x231baa[_0x38e76a(0x127)]())[_0x38e76a(0x128)](_0xaef02e=>{var _0x4a6dc2=_0x38e76a;_0xe756af(_0xaef02e),_0x1722b9[_0x4a6dc2(0x87)]=_0xaef02e[_0x4a6dc2(0x126)][_0x4a6dc2(0x112)](_0x2ac028=>{_0x4801f9(_0x2ac028);});}),()=>{var _0x5322de=_0x38e76a,_0x185589;(_0x185589=_0x1722b9[_0x5322de(0x87)])==null||_0x185589[_0x5322de(0xe0)](),_0x1722b9[_0x5322de(0x87)]=null;}),[_0x231baa,_0x417097]);const _0x503b60=_0xc1bd38!==_0x44c56f['OFFLINE']?[_0x38e76a(0x93)]:[],_0x2742fc=_0x14293c(_0x483ce2['liveShare'],'live-share-status-'+_0xc1bd38);return _0x30628f?_0x2ff5a0[_0x38e76a(0x137)](_0x5a3d1e[_0x38e76a(0xcb)],{'trigger':_0x503b60,'overlay':_0x2ff5a0[_0x38e76a(0x137)](_0x38e76a(0x11a),{'className':_0x483ce2[_0x38e76a(0x147)]},_0x2ff5a0[_0x38e76a(0x137)](_0x2168db,{'status':_0xc1bd38,'coordinator':_0x30628f}))},_0x2ff5a0[_0x38e76a(0x137)](_0x38e76a(0x11a),{'className':_0x2742fc},_0x2ff5a0[_0x38e76a(0x137)](_0xd2c97a,null))):null;}function _0x2168db(_0x522d8e){var _0xc89a=_0x179e0c;const {status:_0x436205,coordinator:_0xa44f6c}=_0x522d8e;switch(_0x436205){case _0x44c56f['IDLE']:return _0x2ff5a0['createElement'](_0x4b16db,{'coordinator':_0xa44f6c});case _0x44c56f[_0xc89a(0x144)]:return _0x2ff5a0[_0xc89a(0x137)](_0x1d8098,{'coordinator':_0xa44f6c});case _0x44c56f[_0xc89a(0x149)]:return _0x2ff5a0['createElement'](_0x188164,{'coordinator':_0xa44f6c});case _0x44c56f[_0xc89a(0xa8)]:return _0x2ff5a0[_0xc89a(0x137)](_0x150f37,null);case _0x44c56f[_0xc89a(0x157)]:return _0x2ff5a0[_0xc89a(0x137)](_0x234146,{'coordinator':_0xa44f6c});default:return null;}}function _0x4b16db(_0x1ff268){var _0x17ad74=_0x179e0c;return _0x2ff5a0['createElement'](_0x2ff5a0[_0x17ad74(0x8f)],null,_0x2ff5a0[_0x17ad74(0x137)]('div',{'className':_0x483ce2['liveShareDropdownTitle']},_0x17ad74(0x9a)),_0x2ff5a0[_0x17ad74(0x137)](_0x5a3d1e[_0x17ad74(0xd7)],{'size':_0x17ad74(0xda),'type':_0x17ad74(0x139),'onClick':()=>_0x1ff268[_0x17ad74(0x79)][_0x17ad74(0x77)]()},_0x17ad74(0x114)));}function _0x1d8098(_0x47476d){var _0x26d6a4=_0x179e0c;return _0x2ff5a0[_0x26d6a4(0x137)](_0x2ff5a0[_0x26d6a4(0x8f)],null,_0x2ff5a0[_0x26d6a4(0x137)](_0x26d6a4(0x11a),{'className':_0x483ce2[_0x26d6a4(0x7f)]},_0x26d6a4(0x132)),_0x2ff5a0[_0x26d6a4(0x137)](_0x5a3d1e['Button'],{'size':'small','type':_0x26d6a4(0x139),'onClick':()=>_0x47476d['coordinator'][_0x26d6a4(0x10b)]()},_0x26d6a4(0x156)));}function _0x188164(_0x4f995b){var _0x4c3fee=_0x179e0c;return _0x2ff5a0[_0x4c3fee(0x137)](_0x2ff5a0[_0x4c3fee(0x8f)],null,_0x2ff5a0[_0x4c3fee(0x137)](_0x4c3fee(0x11a),{'className':_0x483ce2[_0x4c3fee(0x7f)]},_0x4c3fee(0x151)),_0x2ff5a0[_0x4c3fee(0x137)](_0x5a3d1e[_0x4c3fee(0xd7)],{'size':'small','type':_0x4c3fee(0x90),'onClick':()=>_0x4f995b[_0x4c3fee(0x79)][_0x4c3fee(0x117)]()},_0x4c3fee(0x15d)));}function _0x234146(_0x1c381b){var _0x41384f=_0x179e0c;return _0x2ff5a0[_0x41384f(0x137)](_0x2ff5a0[_0x41384f(0x8f)],null,_0x2ff5a0[_0x41384f(0x137)](_0x41384f(0x11a),{'className':_0x483ce2['liveShareDropdownTitle']},_0x41384f(0xb2)),_0x2ff5a0[_0x41384f(0x137)](_0x5a3d1e['Button'],{'size':_0x41384f(0xda),'type':_0x41384f(0x139),'onClick':()=>_0x1c381b[_0x41384f(0x79)][_0x41384f(0x78)]()},_0x41384f(0x155)));}function _0x150f37(){var _0x550e41=_0x179e0c;return _0x2ff5a0[_0x550e41(0x137)](_0x2ff5a0[_0x550e41(0x8f)],null,_0x550e41(0x11b));}var _0x483207=Object[_0x179e0c(0x10a)],_0x3672ed=Object['getOwnPropertyDescriptor'],_0x3d48ec=(_0x1758d2,_0x46f504,_0x4e26c2,_0x498c51)=>{var _0x56e03e=_0x179e0c;for(var _0x2ce33e=_0x498c51>0x1?void 0x0:_0x498c51?_0x3672ed(_0x46f504,_0x4e26c2):_0x46f504,_0x1b753a=_0x1758d2[_0x56e03e(0xb9)]-0x1,_0x495ece;_0x1b753a>=0x0;_0x1b753a--)(_0x495ece=_0x1758d2[_0x1b753a])&&(_0x2ce33e=(_0x498c51?_0x495ece(_0x46f504,_0x4e26c2,_0x2ce33e):_0x495ece(_0x2ce33e))||_0x2ce33e);return _0x498c51&&_0x2ce33e&&_0x483207(_0x46f504,_0x4e26c2,_0x2ce33e),_0x2ce33e;},_0x3fe206=(_0x3e67cc,_0x40009c)=>(_0x54e055,_0x24cbed)=>_0x40009c(_0x54e055,_0x24cbed,_0x3e67cc);let _0x403547=class extends _0xb7b5f4['Disposable']{constructor(_0x408974,_0x362125){var _0x4e5189=_0x179e0c;super(),this[_0x4e5189(0xc1)]=_0x408974,this['_uiPartsService']=_0x362125,this[_0x4e5189(0x9b)]();}[_0x179e0c(0x9b)](){var _0x5ba3e0=_0x179e0c;this[_0x5ba3e0(0xbb)](this['_uiPartsService'][_0x5ba3e0(0xb1)](_0x1a742e[_0x5ba3e0(0x100)][_0x5ba3e0(0xc8)],()=>_0xb7b5f4[_0x5ba3e0(0xdc)](_0x59849d,this['_injector'])));}};_0x403547=_0x3d48ec([_0xb7b5f4[_0x179e0c(0xe9)](_0xb7b5f4[_0x179e0c(0x106)]['Rendered'],_0x403547),_0x3fe206(0x0,_0xb7b5f4[_0x179e0c(0xbd)](_0xb7b5f4[_0x179e0c(0x118)])),_0x3fe206(0x1,_0x1a742e['IUIPartsService'])],_0x403547);var _0x23d0e2=Object[_0x179e0c(0x10a)],_0x4867da=Object[_0x179e0c(0x158)],_0x26215f=(_0x263d3e,_0x41037c,_0x3547a0)=>_0x41037c in _0x263d3e?_0x23d0e2(_0x263d3e,_0x41037c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3547a0}):_0x263d3e[_0x41037c]=_0x3547a0,_0x404bda=(_0x5160b7,_0x8a0408,_0x75aa3c,_0x249c73)=>{for(var _0xe49fba=_0x249c73>0x1?void 0x0:_0x249c73?_0x4867da(_0x8a0408,_0x75aa3c):_0x8a0408,_0x3d3a09=_0x5160b7['length']-0x1,_0x3e1900;_0x3d3a09>=0x0;_0x3d3a09--)(_0x3e1900=_0x5160b7[_0x3d3a09])&&(_0xe49fba=(_0x249c73?_0x3e1900(_0x8a0408,_0x75aa3c,_0xe49fba):_0x3e1900(_0xe49fba))||_0xe49fba);return _0x249c73&&_0xe49fba&&_0x23d0e2(_0x8a0408,_0x75aa3c,_0xe49fba),_0xe49fba;},_0x13768a=(_0x20ffef,_0x1d0ea4)=>(_0x44ff29,_0x17abdc)=>_0x1d0ea4(_0x44ff29,_0x17abdc,_0x20ffef),_0x198b73=(_0x4efba6,_0x1c5ee6,_0x41057a)=>_0x26215f(_0x4efba6,typeof _0x1c5ee6!=_0x179e0c(0xb3)?_0x1c5ee6+'':_0x1c5ee6,_0x41057a);const _0x51ef74=_0x179e0c(0x148);_0x461c5c[_0x179e0c(0x13c)]=class extends _0xb7b5f4['Plugin']{constructor(_0xf23f98,_0x249cda){super(),this['_injector']=_0x249cda;}[_0x179e0c(0xf2)](_0x302afe){var _0x28296e=_0x179e0c;[[_0xab6789],[_0x7b357c],[_0xaa4fc6],[_0x403547]][_0x28296e(0x101)](_0x580916=>_0x302afe[_0x28296e(0x97)](_0x580916));}},_0x198b73(_0x461c5c[_0x179e0c(0x13c)],_0x179e0c(0xaf),_0xb7b5f4[_0x179e0c(0x119)][_0x179e0c(0x153)]),_0x198b73(_0x461c5c[_0x179e0c(0x13c)],_0x179e0c(0x12d),_0x51ef74),_0x461c5c['UniverLiveSharePlugin']=_0x404bda([_0xb7b5f4[_0x179e0c(0x75)](_0x5812c9[_0x179e0c(0x13a)]),_0x13768a(0x1,_0xb7b5f4[_0x179e0c(0xbd)](_0xb7b5f4[_0x179e0c(0x118)]))],_0x461c5c[_0x179e0c(0x13c)]),_0x461c5c[_0x179e0c(0x115)]=_0xab6789,Object['defineProperty'](_0x461c5c,Symbol[_0x179e0c(0xcd)],{'value':_0x179e0c(0x113)});}));
|
|
1
|
+
function _0x4930(){var _0x3a8d3e=['disposeWithMe','0\x200\x2017\x2017','_sharedOperations','ONLINE','_handleOperation','_univerInstanceService','3599220OIJtlp','operators','univer-live-share','DisposableCollection','rxjs','getTypeOfUnitAdded$','mutations','assign','complete','_handleNewHost','use','getInitialStates','memberID','createInstance','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','children','hasOwnProperty','data','_reporters','UniverDesign','throttleTime','onCommandExecuted','LIVESHARE_FETCH_OPERATIONS','random','UniverSheetsUi','@univerjs-pro/collaboration','params','requireSession','defIds','BehaviorSubject','symbol','Rendered','none','call','stopFollowing','url(#$1','Subject','Disposable','Fragment','presenter','pipe','_commandDisposable','UniverCollaboration','HEADER_MENU','next','includes','Start','BuiltInUIPart','registerComponent','text','subscribe','entries','_collabSession','amd','default','_handleOnline','UniverIcon','IConfigService','startFollowing','LIVESHARE_TERMINATE','extend','_handleOffline','_stopFollowing','idSuffix','stringify','univer-live-share-dropdown','SetZoomRatioOperation','_mountLiveShare','add','useEffect','CollaborationSessionService','xlink:href','set','takeUntil','tryStartPresenting','@univerjs/ui','SetScrollOperation','prototype','path','getCurrentTypeOfUnit$','_handleTerminate','concat','offline','_configService','icon','@univerjs/sheets-ui','function','SAME_OPERATION_SHARE_INTERVAL','_liveShareService','following','init','dispose$','_startPresenting','className','getTypeOfUnitDisposed$','_startLiveShareCoordinator','click','apply','UniverUi','DependentOn','IDLE','OFFLINE','useDependency','coordinator','2046040rbzSun','has','105qIuhBQ','ICommandService','fill','small','operations','toDisposable','You\x27re\x20following\x20the\x20presenter','registerInitialStateReporter','You\x27are\x20offline.','getConfig','status$','950391Janctw','executeCommand','asObservable','event$','_handleNewChangeSets','@univerjs-pro/collaboration-client','Stop\x20following','createElement','univerjs-icon\x20univerjs-icon-','SessionStatus','from','length','stopPresenting','useRef','reverse','idle','map','810153zuFtlk','replace','Injector','LifecycleStages','rxjs/operators','_unitID','RxDisposable','OPERATION','dispose','get','FOLLOWING','registerSharedOperation','send','UNIVER_SHEET','1em','getOwnPropertySymbols','unsubscribe','1631810qmwjke','_startFollowing','_fetchOperations','Module','clear','unitId','@univerjs/core','UniverCore','currentColor','substring','getUnitId','UniverInstanceType','delete','sessionStatus$','getOwnPropertyDescriptor','evenodd','live-share-single','shouldShareOperation','16UUKmxO','liveShareDropdownTitle','UniverCollaborationClientPlugin','displayName','IUniverInstanceService','_entities','forwardRef','CollaborationEvent','object','Button','defineProperty','_commandService','UniverLiveShare','tag','connectInjector','react','Inject','forEach','_collabSessionService','IUIPartsService','LIVESHARE_REQUEST_HOST','SetWorksheetActiveOperation','Start\x20following','You\x27re\x20not\x20following\x20the\x20presenter','div','liveShareDropdown','LiveShareService','Dropdown','_uiPartsService','UniverLiveSharePlugin','@univerjs/sheets','getMemberID','string','getValue','find','presenting','univer-live-share-status-offline','_presenter','exports','parse','Plugin','_status$','@univerjs/design','CommandType','682824ULkOkI','toString','You\x27re\x20presenting\x20the\x20document','current','_injector','not-following','getLiveShareCoordinator','propertyIsEnumerable','453057ZWQhhC','clsx','onStarting','_init','useState','NOT_FOLLOWING','attrs','svg','_beIdle','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','_status','UNIVER_LIVE_SHARE_PLUGIN','_stopPresenting'];_0x4930=function(){return _0x3a8d3e;};return _0x4930();}function _0x1787(_0x38e492,_0x3a7a02){var _0x49307a=_0x4930();return _0x1787=function(_0x178700,_0x511aca){_0x178700=_0x178700-0x13d;var _0x415bfd=_0x49307a[_0x178700];return _0x415bfd;},_0x1787(_0x38e492,_0x3a7a02);}(function(_0xced7cc,_0x1961bb){var _0xed2704=_0x1787,_0x105102=_0xced7cc();while(!![]){try{var _0x38e8=parseInt(_0xed2704(0x1a8))/0x1+parseInt(_0xed2704(0x1dc))/0x2*(-parseInt(_0xed2704(0x210))/0x3)+parseInt(_0xed2704(0x19b))/0x4+-parseInt(_0xed2704(0x1ca))/0x5+-parseInt(_0xed2704(0x223))/0x6+parseInt(_0xed2704(0x19d))/0x7*(parseInt(_0xed2704(0x208))/0x8)+parseInt(_0xed2704(0x1b9))/0x9;if(_0x38e8===_0x1961bb)break;else _0x105102['push'](_0x105102['shift']());}catch(_0x833bfa){_0x105102['push'](_0x105102['shift']());}}}(_0x4930,0xaa5e5),function(_0x167236,_0x483b00){var _0x42a247=_0x1787;typeof exports==_0x42a247(0x1e4)&&typeof module<'u'?_0x483b00(exports,require(_0x42a247(0x1d0)),require(_0x42a247(0x1ad)),require(_0x42a247(0x1fa)),require(_0x42a247(0x188)),require(_0x42a247(0x14c)),require('rxjs'),require('rxjs/operators'),require(_0x42a247(0x17e)),require('@univerjs/design'),require(_0x42a247(0x211)),require(_0x42a247(0x1eb))):typeof define==_0x42a247(0x189)&&define[_0x42a247(0x168)]?define([_0x42a247(0x202),'@univerjs/core','@univerjs-pro/collaboration-client',_0x42a247(0x1fa),_0x42a247(0x188),_0x42a247(0x14c),_0x42a247(0x227),_0x42a247(0x1bd),_0x42a247(0x17e),_0x42a247(0x206),_0x42a247(0x211),_0x42a247(0x1eb)],_0x483b00):(_0x167236=typeof globalThis<'u'?globalThis:_0x167236||self,_0x483b00(_0x167236[_0x42a247(0x1e8)]={},_0x167236[_0x42a247(0x1d1)],_0x167236['UniverCollaborationClient'],_0x167236['UniverSheets'],_0x167236[_0x42a247(0x14b)],_0x167236[_0x42a247(0x15d)],_0x167236[_0x42a247(0x227)],_0x167236[_0x42a247(0x227)][_0x42a247(0x224)],_0x167236[_0x42a247(0x195)],_0x167236[_0x42a247(0x146)],_0x167236[_0x42a247(0x211)],_0x167236['React']));}(this,function(_0x267f05,_0x5a7856,_0x1bc69f,_0x262996,_0x58d4e4,_0x3d9d75,_0x1d2661,_0x6f26c5,_0x54fcf6,_0x271cf0,_0x43aa9a,_0x5623d1){'use strict';var _0x137e72=_0x1787;var _0x555416=Object['defineProperty'],_0x478d53=(_0x4fa6ae,_0x5aaf0d,_0xcc62ab)=>_0x5aaf0d in _0x4fa6ae?_0x555416(_0x4fa6ae,_0x5aaf0d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xcc62ab}):_0x4fa6ae[_0x5aaf0d]=_0xcc62ab,_0x41f3d7=(_0x2909b5,_0x16e436,_0x1ea5ef)=>_0x478d53(_0x2909b5,typeof _0x16e436!=_0x137e72(0x151)?_0x16e436+'':_0x16e436,_0x1ea5ef);class _0x185dae extends _0x5a7856['Disposable']{constructor(){var _0xa48b37=_0x137e72;super(...arguments),_0x41f3d7(this,_0xa48b37(0x21f),new Set()),_0x41f3d7(this,_0xa48b37(0x145),new Set());}['registerSharedOperation'](_0x182135){var _0x3b94ae=_0x137e72;return this[_0x3b94ae(0x21f)][_0x3b94ae(0x177)](_0x182135),_0x5a7856[_0x3b94ae(0x1a2)](()=>this[_0x3b94ae(0x21f)][_0x3b94ae(0x1d6)](_0x182135));}[_0x137e72(0x1a4)](_0x23c3ab){var _0x891e16=_0x137e72;return this[_0x891e16(0x145)]['add'](_0x23c3ab),_0x5a7856[_0x891e16(0x1a2)](()=>this[_0x891e16(0x145)][_0x891e16(0x1d6)](_0x23c3ab));}['shouldShareOperation'](_0x3e8c96){var _0x1d570f=_0x137e72;return this[_0x1d570f(0x21f)][_0x1d570f(0x19c)](_0x3e8c96);}['getInitialStates'](_0x1826fa){var _0x55777e=_0x137e72;return Array[_0x55777e(0x1b2)](this['_reporters'])[_0x55777e(0x1b8)](_0x14bd28=>_0x14bd28(_0x1826fa));}}var _0x35154a=Object[_0x137e72(0x1e6)],_0x38fd7c=Object[_0x137e72(0x1d8)],_0x588f70=(_0x40cefa,_0x1e4f03,_0x39ae01,_0x275b66)=>{var _0x183542=_0x137e72;for(var _0x4a25d8=_0x275b66>0x1?void 0x0:_0x275b66?_0x38fd7c(_0x1e4f03,_0x39ae01):_0x1e4f03,_0x50e532=_0x40cefa[_0x183542(0x1b3)]-0x1,_0x1033cd;_0x50e532>=0x0;_0x50e532--)(_0x1033cd=_0x40cefa[_0x50e532])&&(_0x4a25d8=(_0x275b66?_0x1033cd(_0x1e4f03,_0x39ae01,_0x4a25d8):_0x1033cd(_0x4a25d8))||_0x4a25d8);return _0x275b66&&_0x4a25d8&&_0x35154a(_0x1e4f03,_0x39ae01,_0x4a25d8),_0x4a25d8;},_0x5e6a53=(_0x3a0b30,_0x486395)=>(_0x208d81,_0x2d6b4f)=>_0x486395(_0x208d81,_0x2d6b4f,_0x3a0b30);let _0x184ee1=class extends _0x5a7856['Disposable']{constructor(_0x231107){var _0x40de15=_0x137e72;super(),this[_0x40de15(0x18b)]=_0x231107,this[_0x40de15(0x213)]();}[_0x137e72(0x213)](){var _0x56820b=_0x137e72;[_0x58d4e4[_0x56820b(0x175)]['id'],_0x58d4e4[_0x56820b(0x17f)]['id'],_0x262996['SetWorksheetActiveOperation']['id']]['forEach'](_0x4ed3a0=>{var _0x5087f8=_0x56820b;this[_0x5087f8(0x21d)](this[_0x5087f8(0x18b)][_0x5087f8(0x1c4)](_0x4ed3a0));});}};_0x184ee1=_0x588f70([_0x5a7856['OnLifecycle'](_0x5a7856[_0x137e72(0x1bc)]['Starting'],_0x184ee1),_0x5e6a53(0x0,_0x5a7856[_0x137e72(0x1ec)](_0x185dae))],_0x184ee1);var _0x5073bf=Object[_0x137e72(0x1e6)],_0x18cb12=Object[_0x137e72(0x1d8)],_0x4f7811=(_0x4b8930,_0x212a1b,_0xae1a88,_0x1384d3)=>{var _0x4a3c98=_0x137e72;for(var _0x5effc4=_0x1384d3>0x1?void 0x0:_0x1384d3?_0x18cb12(_0x212a1b,_0xae1a88):_0x212a1b,_0x5642ea=_0x4b8930[_0x4a3c98(0x1b3)]-0x1,_0xfe14d8;_0x5642ea>=0x0;_0x5642ea--)(_0xfe14d8=_0x4b8930[_0x5642ea])&&(_0x5effc4=(_0x1384d3?_0xfe14d8(_0x212a1b,_0xae1a88,_0x5effc4):_0xfe14d8(_0x5effc4))||_0x5effc4);return _0x1384d3&&_0x5effc4&&_0x5073bf(_0x212a1b,_0xae1a88,_0x5effc4),_0x5effc4;},_0x4f5015=(_0x72549e,_0x2b5b93)=>(_0x4c8ff8,_0x24f9c6)=>_0x2b5b93(_0x4c8ff8,_0x24f9c6,_0x72549e);let _0x4c41d5=class extends _0x5a7856[_0x137e72(0x1bf)]{constructor(_0x20acb6,_0x51c00c,_0x4c6b2d){var _0x3b91f1=_0x137e72;super(),_0x41f3d7(this,_0x3b91f1(0x1e1),new Map()),(this[_0x3b91f1(0x222)]=_0x20acb6,this[_0x3b91f1(0x20c)]=_0x51c00c,this[_0x3b91f1(0x1ee)]=_0x4c6b2d,this[_0x3b91f1(0x213)]());}async[_0x137e72(0x20e)](_0x4f2a02){var _0x1fa7df=_0x137e72;return this[_0x1fa7df(0x1e1)]['has'](_0x4f2a02)||await this['_startLiveShareCoordinator'](_0x4f2a02),this['_entities']['get'](_0x4f2a02);}[_0x137e72(0x213)](){var _0x41c588=_0x137e72;this[_0x41c588(0x222)][_0x41c588(0x228)](_0x5a7856[_0x41c588(0x1d5)][_0x41c588(0x1c6)])['pipe'](_0x6f26c5['takeUntil'](this[_0x41c588(0x18e)]))[_0x41c588(0x165)](async _0x28c6c0=>{var _0x52810d=_0x41c588;const _0x24bdf3=_0x28c6c0['getUnitId']();this[_0x52810d(0x1e1)]['has'](_0x24bdf3)||this['_startLiveShareCoordinator'](_0x24bdf3);}),this[_0x41c588(0x222)][_0x41c588(0x191)](_0x5a7856[_0x41c588(0x1d5)][_0x41c588(0x1c6)])['pipe'](_0x6f26c5[_0x41c588(0x17c)](this[_0x41c588(0x18e)]))[_0x41c588(0x165)](_0x557793=>{var _0x4f732a=_0x41c588;const _0x1b4fac=_0x557793[_0x4f732a(0x1d4)](),_0x53da27=this[_0x4f732a(0x1e1)][_0x4f732a(0x1c2)](_0x1b4fac);_0x53da27==null||_0x53da27[_0x4f732a(0x1c1)]();});}async[_0x137e72(0x192)](_0x1c8121){var _0x179e32=_0x137e72;const _0x249b84=await this['_collabSessionService'][_0x179e32(0x14e)](_0x1c8121),_0x399e8e=this['_injector'][_0x179e32(0x140)](_0x3107f0,_0x1c8121,_0x249b84);return _0x399e8e[_0x179e32(0x18d)](),this[_0x179e32(0x1e1)][_0x179e32(0x17b)](_0x1c8121,_0x399e8e),_0x399e8e;}};_0x4c41d5=_0x4f7811([_0x4f5015(0x0,_0x5a7856[_0x137e72(0x1e0)]),_0x4f5015(0x1,_0x5a7856['Inject'](_0x5a7856['Injector'])),_0x4f5015(0x2,_0x5a7856[_0x137e72(0x1ec)](_0x1bc69f[_0x137e72(0x179)]))],_0x4c41d5);var _0xae87fe=(_0x1a94e6=>(_0x1a94e6[_0x137e72(0x198)]=_0x137e72(0x185),_0x1a94e6[_0x137e72(0x197)]='idle',_0x1a94e6[_0x137e72(0x1c3)]=_0x137e72(0x18c),_0x1a94e6[_0x137e72(0x215)]=_0x137e72(0x20d),_0x1a94e6['PRESENTING']='presenting',_0x1a94e6))(_0xae87fe||{});const _0x3f7c10=_0x137e72(0x18a),_0x777ac0=0xc8;let _0x3107f0=class extends _0x5a7856['RxDisposable']{constructor(_0x2b8425,_0x3328cc,_0x25d8a9,_0x5b4fc9,_0x25bac5){var _0x5a8637=_0x137e72;super(),_0x41f3d7(this,_0x5a8637(0x205),new _0x1d2661[(_0x5a8637(0x150))](_0x5a8637(0x1b7))),_0x41f3d7(this,_0x5a8637(0x1a7),this[_0x5a8637(0x205)][_0x5a8637(0x1aa)]()),_0x41f3d7(this,_0x5a8637(0x213),!0x1),_0x41f3d7(this,'_commandDisposable',null),_0x41f3d7(this,_0x5a8637(0x201),null),(this[_0x5a8637(0x1be)]=_0x2b8425,this[_0x5a8637(0x167)]=_0x3328cc,this[_0x5a8637(0x186)]=_0x25d8a9,this[_0x5a8637(0x18b)]=_0x5b4fc9,this[_0x5a8637(0x1e7)]=_0x25bac5);}get[_0x137e72(0x21a)](){var _0x57633a=_0x137e72;return this['_status$'][_0x57633a(0x1fd)]();}['dispose'](){var _0x1c293d=_0x137e72,_0x2da2aa;(_0x2da2aa=this[_0x1c293d(0x15c)])==null||_0x2da2aa[_0x1c293d(0x1c1)](),this[_0x1c293d(0x205)][_0x1c293d(0x15f)](_0x1c293d(0x1b7)),this['_status$'][_0x1c293d(0x22b)]();}[_0x137e72(0x18d)](){var _0xb8a49a=_0x137e72;this[_0xb8a49a(0x213)]||(this[_0xb8a49a(0x213)]=!0x0,this['_collabSession'][_0xb8a49a(0x1d7)]['pipe'](_0x6f26c5[_0xb8a49a(0x17c)](this[_0xb8a49a(0x18e)]))[_0xb8a49a(0x165)](_0x583d5d=>{var _0x5a2c87=_0xb8a49a;switch(_0x583d5d){case _0x1bc69f[_0x5a2c87(0x1b1)]['OFFLINE']:this[_0x5a2c87(0x170)]();break;case _0x1bc69f[_0x5a2c87(0x1b1)][_0x5a2c87(0x220)]:this[_0x5a2c87(0x16a)]();break;}}),this[_0xb8a49a(0x167)][_0xb8a49a(0x1ab)][_0xb8a49a(0x15b)](_0x6f26c5['takeUntil'](this[_0xb8a49a(0x18e)]))[_0xb8a49a(0x165)](_0xe0bf57=>{var _0x14dd47=_0xb8a49a;const {eventID:_0x1e8f0e}=_0xe0bf57;switch(_0x1e8f0e){case _0x3d9d75[_0x14dd47(0x1e3)]['LIVESHARE_NEW_HOST']:this[_0x14dd47(0x22c)](_0xe0bf57);break;case _0x3d9d75[_0x14dd47(0x1e3)]['LIVESHARE_OPERATION']:this[_0x14dd47(0x221)](_0xe0bf57);break;case _0x3d9d75[_0x14dd47(0x1e3)][_0x14dd47(0x16e)]:this[_0x14dd47(0x183)]();break;case _0x3d9d75[_0x14dd47(0x1e3)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0xe0bf57);break;}}));}[_0x137e72(0x17d)](){var _0x105a1f=_0x137e72;this[_0x105a1f(0x167)][_0x105a1f(0x1c5)]({'eventID':_0x3d9d75[_0x105a1f(0x1e3)][_0x105a1f(0x1f0)],'data':{'unitID':this[_0x105a1f(0x1be)],'userID':this[_0x105a1f(0x167)]['getMemberID']()}},this[_0x105a1f(0x1be)]);}[_0x137e72(0x1b4)](){var _0x3273c5=_0x137e72;this[_0x3273c5(0x21a)]===_0x3273c5(0x1ff)&&(this[_0x3273c5(0x205)][_0x3273c5(0x15f)](_0x3273c5(0x1b7)),this[_0x3273c5(0x167)][_0x3273c5(0x1c5)]({'eventID':_0x3d9d75['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x3273c5(0x1be)]}},this['_unitID']));}[_0x137e72(0x16d)](){var _0x258ec7=_0x137e72;this[_0x258ec7(0x21a)]===_0x258ec7(0x20d)&&(this['_status$']['next'](_0x258ec7(0x18c)),this[_0x258ec7(0x1cb)]());}['stopFollowing'](){var _0x3d6575=_0x137e72;this[_0x3d6575(0x21a)]===_0x3d6575(0x18c)&&this[_0x3d6575(0x171)]();}[_0x137e72(0x22c)](_0x4ee3ff){var _0x3e76b4=_0x137e72;const {presenter:_0x3ffcaf}=_0x4ee3ff[_0x3e76b4(0x144)],_0x3595c8=this['_collabSession'][_0x3e76b4(0x1fb)]();this[_0x3e76b4(0x201)]=_0x3ffcaf,_0x3ffcaf===_0x3595c8?(this['_stopFollowing'](),this[_0x3e76b4(0x18f)]()):this[_0x3e76b4(0x21a)]!=='not-following'&&(this['_stopPresenting'](),this[_0x3e76b4(0x1cb)]());}[_0x137e72(0x1cc)](){var _0x278ade=_0x137e72;const _0x33ef34={'eventID':_0x3d9d75[_0x278ade(0x1e3)][_0x278ade(0x149)]};this[_0x278ade(0x167)][_0x278ade(0x1c5)](_0x33ef34,this[_0x278ade(0x1be)]);}[_0x137e72(0x183)](){var _0x3328de=_0x137e72;this[_0x3328de(0x201)]=null,this[_0x3328de(0x21a)]!=='presenting'&&this[_0x3328de(0x218)]();}[_0x137e72(0x1ac)](_0x3d4f3b){var _0xa3278e=_0x137e72;if(this[_0xa3278e(0x21a)]===_0xa3278e(0x18c)&&this[_0xa3278e(0x201)]===_0x3d4f3b[_0xa3278e(0x144)][_0xa3278e(0x13f)]){const _0x61abd0=_0x3d9d75['parseProtocolChangeset'](_0x3d4f3b[_0xa3278e(0x144)])[_0xa3278e(0x229)][_0xa3278e(0x1b6)]()[_0xa3278e(0x1fe)](_0x48375d=>_0x48375d['id']===_0x262996['InsertSheetMutation']['id']);if(_0x61abd0){const _0x2c278f=_0x61abd0['params'][_0xa3278e(0x1cf)],_0x1c9b5f=_0x61abd0[_0xa3278e(0x14d)]['sheet']['id'];setTimeout(()=>{var _0x18c73f=_0xa3278e;this[_0x18c73f(0x1e7)][_0x18c73f(0x1a9)](_0x262996[_0x18c73f(0x1f1)]['id'],{'unitId':_0x2c278f,'subUnitId':_0x1c9b5f},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x5aaf36=_0x137e72;this[_0x5aaf36(0x205)][_0x5aaf36(0x15f)](_0x5aaf36(0x1ff));const _0x16c6b5=new Map(),_0x5e91b2=this[_0x5aaf36(0x15c)]=new _0x5a7856[(_0x5aaf36(0x226))]();_0x5e91b2[_0x5aaf36(0x177)](_0x5a7856[_0x5aaf36(0x1a2)](()=>{var _0x91e2de=_0x5aaf36;_0x16c6b5[_0x91e2de(0x1ed)](_0x26e2b5=>_0x26e2b5['complete']()),_0x16c6b5[_0x91e2de(0x1ce)]();})),_0x5e91b2[_0x5aaf36(0x177)](this['_commandService'][_0x5aaf36(0x148)](_0x585161=>{var _0x1b4c77=_0x5aaf36,_0x4aef17;if(_0x585161['type']!==_0x5a7856[_0x1b4c77(0x207)][_0x1b4c77(0x1c0)]||!this[_0x1b4c77(0x18b)][_0x1b4c77(0x1db)](_0x585161['id']))return;const {id:_0x11325e}=_0x585161;let _0x222793;_0x16c6b5[_0x1b4c77(0x19c)](_0x11325e)?_0x222793=_0x16c6b5[_0x1b4c77(0x1c2)](_0x11325e):(_0x222793=new _0x1d2661[(_0x1b4c77(0x157))](),_0x16c6b5[_0x1b4c77(0x17b)](_0x11325e,_0x222793),_0x222793['pipe'](_0x6f26c5[_0x1b4c77(0x147)]((_0x4aef17=this['_configService'][_0x1b4c77(0x1a6)](_0x3f7c10))!=null?_0x4aef17:_0x777ac0,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1b4c77(0x165)](_0x1010e6=>{var _0x5cc6b4=_0x1b4c77;this['_collabSession']['send']({'eventID':_0x3d9d75[_0x5cc6b4(0x1e3)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5cc6b4(0x1be)],'operations':{[_0x1010e6['id']]:{'id':_0x1010e6['id'],'params':JSON[_0x5cc6b4(0x173)](_0x1010e6[_0x5cc6b4(0x14d)])}}}},this['_unitID']);})),_0x222793[_0x1b4c77(0x15f)](_0x585161);})),this[_0x5aaf36(0x18b)][_0x5aaf36(0x13e)](this[_0x5aaf36(0x1be)])['forEach'](_0xa79806=>this[_0x5aaf36(0x167)][_0x5aaf36(0x1c5)]({'eventID':_0x3d9d75['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5aaf36(0x1be)],'operations':{[_0xa79806['id']]:{'id':_0xa79806['id'],'params':JSON[_0x5aaf36(0x173)](_0xa79806['params'])}}}},this[_0x5aaf36(0x1be)]));}[_0x137e72(0x21c)](){var _0x484810=_0x137e72,_0x4ec7c8;this['_status$'][_0x484810(0x15f)](_0x484810(0x1b7)),(_0x4ec7c8=this[_0x484810(0x15c)])==null||_0x4ec7c8[_0x484810(0x1c1)](),this[_0x484810(0x15c)]=null;}['_startFollowing'](){var _0x4162da=_0x137e72,_0x2ae91f;(_0x2ae91f=this[_0x4162da(0x15c)])==null||_0x2ae91f[_0x4162da(0x1c1)](),this[_0x4162da(0x205)]['next'](_0x4162da(0x18c));}[_0x137e72(0x218)](){var _0x2f4b39=_0x137e72,_0x572b0f;this[_0x2f4b39(0x205)][_0x2f4b39(0x15f)]('idle'),(_0x572b0f=this[_0x2f4b39(0x15c)])==null||_0x572b0f[_0x2f4b39(0x1c1)](),this[_0x2f4b39(0x15c)]=null;}[_0x137e72(0x171)](){var _0x13f10f=_0x137e72,_0x26044f;this['_status$'][_0x13f10f(0x15f)](_0x13f10f(0x20d)),(_0x26044f=this[_0x13f10f(0x15c)])==null||_0x26044f[_0x13f10f(0x1c1)]();}[_0x137e72(0x221)](_0x10e35d){var _0x31c0d8=_0x137e72;if([_0x31c0d8(0x1ff),_0x31c0d8(0x20d),_0x31c0d8(0x185)][_0x31c0d8(0x160)](this['_status'])||!_0x10e35d[_0x31c0d8(0x144)][_0x31c0d8(0x15a)]||_0x10e35d[_0x31c0d8(0x144)][_0x31c0d8(0x15a)]===this[_0x31c0d8(0x167)][_0x31c0d8(0x1fb)]())return;this['_status']===_0x31c0d8(0x1b7)&&this[_0x31c0d8(0x1cb)]();const _0x1d53bb=_0x10e35d['data'][_0x31c0d8(0x1a1)];Object['values'](_0x1d53bb)['forEach'](_0x5a1339=>{var _0x10a26c=_0x31c0d8;this['_commandService'][_0x10a26c(0x1a9)](_0x5a1339['id'],_0x5a1339['params']?JSON[_0x10a26c(0x203)](_0x5a1339[_0x10a26c(0x14d)]):null,{'fromCollab':!0x0});});}[_0x137e72(0x170)](){var _0x329dbe=_0x137e72,_0x2f38d0;this[_0x329dbe(0x205)][_0x329dbe(0x15f)](_0x329dbe(0x185)),(_0x2f38d0=this[_0x329dbe(0x15c)])==null||_0x2f38d0[_0x329dbe(0x1c1)]();}['_handleOnline'](){var _0x565ff8=_0x137e72;this[_0x565ff8(0x205)][_0x565ff8(0x15f)](_0x565ff8(0x1b7)),this[_0x565ff8(0x1cc)]();}};_0x3107f0=_0x4f7811([_0x4f5015(0x2,_0x5a7856[_0x137e72(0x16c)]),_0x4f5015(0x3,_0x5a7856[_0x137e72(0x1ec)](_0x185dae)),_0x4f5015(0x4,_0x5a7856[_0x137e72(0x19e)])],_0x3107f0);var _0x85bbd0=function(){var _0x3796dc=_0x137e72;return _0x85bbd0=Object[_0x3796dc(0x22a)]||function(_0x36e576){var _0x5e0dfb=_0x3796dc;for(var _0x565d89,_0x5d20eb=0x1,_0x37b73=arguments['length'];_0x5d20eb<_0x37b73;_0x5d20eb++){_0x565d89=arguments[_0x5d20eb];for(var _0x2b3c17 in _0x565d89)Object[_0x5e0dfb(0x180)][_0x5e0dfb(0x143)]['call'](_0x565d89,_0x2b3c17)&&(_0x36e576[_0x2b3c17]=_0x565d89[_0x2b3c17]);}return _0x36e576;},_0x85bbd0[_0x3796dc(0x194)](this,arguments);},_0xe50a3c=function(_0x58ccd1,_0x4b82a2){var _0xd0ed93=_0x137e72,_0x19bc81={};for(var _0xcfd43a in _0x58ccd1)Object[_0xd0ed93(0x180)]['hasOwnProperty']['call'](_0x58ccd1,_0xcfd43a)&&_0x4b82a2['indexOf'](_0xcfd43a)<0x0&&(_0x19bc81[_0xcfd43a]=_0x58ccd1[_0xcfd43a]);if(_0x58ccd1!=null&&typeof Object[_0xd0ed93(0x1c8)]==_0xd0ed93(0x189)){for(var _0x356bf5=0x0,_0xcfd43a=Object[_0xd0ed93(0x1c8)](_0x58ccd1);_0x356bf5<_0xcfd43a['length'];_0x356bf5++)_0x4b82a2['indexOf'](_0xcfd43a[_0x356bf5])<0x0&&Object['prototype'][_0xd0ed93(0x20f)][_0xd0ed93(0x154)](_0x58ccd1,_0xcfd43a[_0x356bf5])&&(_0x19bc81[_0xcfd43a[_0x356bf5]]=_0x58ccd1[_0xcfd43a[_0x356bf5]]);}return _0x19bc81;},_0x152de8=_0x5623d1[_0x137e72(0x1e2)](function(_0x2607ee,_0x31d178){var _0x4aed94=_0x137e72,_0x237ee2=_0x2607ee[_0x4aed94(0x187)],_0x44dcac=_0x2607ee['id'],_0x1cb6bc=_0x2607ee[_0x4aed94(0x190)],_0x227ed6=_0x2607ee['extend'],_0x17a1fa=_0xe50a3c(_0x2607ee,[_0x4aed94(0x187),'id',_0x4aed94(0x190),_0x4aed94(0x16f)]),_0x2bf5aa=_0x4aed94(0x1b0)['concat'](_0x44dcac,'\x20')[_0x4aed94(0x184)](_0x1cb6bc||'')['trim'](),_0x4cf0fd=_0x5623d1[_0x4aed94(0x1b5)]('_'['concat'](_0x1cb1ef()));return _0x47490c(_0x237ee2,''[_0x4aed94(0x184)](_0x44dcac),{'defIds':_0x237ee2[_0x4aed94(0x14f)],'idSuffix':_0x4cf0fd[_0x4aed94(0x20b)]},_0x85bbd0({'ref':_0x31d178,'className':_0x2bf5aa},_0x17a1fa),_0x227ed6);});function _0x47490c(_0x4cd277,_0x8a25f6,_0xbce245,_0x35d5de,_0x27bfdd){var _0x552837=_0x137e72;return _0x5623d1[_0x552837(0x1af)](_0x4cd277['tag'],_0x85bbd0(_0x85bbd0({'key':_0x8a25f6},_0x6c00c5(_0x4cd277,_0xbce245,_0x27bfdd)),_0x35d5de),(_0x49e1ea(_0x4cd277,_0xbce245)['children']||[])[_0x552837(0x1b8)](function(_0x30e661,_0x4e7b17){var _0x32b7a0=_0x552837;return _0x47490c(_0x30e661,''['concat'](_0x8a25f6,'-')['concat'](_0x4cd277[_0x32b7a0(0x1e9)],'-')[_0x32b7a0(0x184)](_0x4e7b17),_0xbce245,void 0x0,_0x27bfdd);}));}function _0x6c00c5(_0x21f10f,_0x1a22fb,_0x3dcc5c){var _0x4d9fc2=_0x137e72,_0x45a064=_0x85bbd0({},_0x21f10f[_0x4d9fc2(0x216)]);_0x3dcc5c!=null&&_0x3dcc5c['colorChannel1']&&_0x45a064['fill']==='colorChannel1'&&(_0x45a064[_0x4d9fc2(0x19f)]=_0x3dcc5c['colorChannel1']);var _0x31487f=_0x1a22fb['defIds'];return!_0x31487f||_0x31487f['length']===0x0||(_0x21f10f[_0x4d9fc2(0x1e9)]===_0x4d9fc2(0x13d)&&_0x45a064[_0x4d9fc2(0x17a)]&&(_0x45a064[_0x4d9fc2(0x17a)]=_0x45a064['xlink:href']+_0x1a22fb[_0x4d9fc2(0x172)]),Object[_0x4d9fc2(0x166)](_0x45a064)[_0x4d9fc2(0x1ed)](function(_0x13bf37){var _0x5946ca=_0x4d9fc2,_0x3fcc84=_0x13bf37[0x0],_0x17a91d=_0x13bf37[0x1];typeof _0x17a91d==_0x5946ca(0x1fc)&&(_0x45a064[_0x3fcc84]=_0x17a91d[_0x5946ca(0x1ba)](/url\(#(.*)\)/,_0x5946ca(0x156)[_0x5946ca(0x184)](_0x1a22fb[_0x5946ca(0x172)],')')));})),_0x45a064;}function _0x49e1ea(_0x48605c,_0x2a59fa){var _0x1b9657=_0x137e72,_0x5eb230,_0x52227a=_0x2a59fa['defIds'];return!_0x52227a||_0x52227a[_0x1b9657(0x1b3)]===0x0?_0x48605c:_0x48605c[_0x1b9657(0x1e9)]==='defs'&&(!((_0x5eb230=_0x48605c[_0x1b9657(0x142)])===null||_0x5eb230===void 0x0)&&_0x5eb230['length'])?_0x85bbd0(_0x85bbd0({},_0x48605c),{'children':_0x48605c[_0x1b9657(0x142)][_0x1b9657(0x1b8)](function(_0x4ea745){var _0x44b0e3=_0x1b9657;return typeof _0x4ea745[_0x44b0e3(0x216)]['id']==_0x44b0e3(0x1fc)&&_0x52227a&&_0x52227a['indexOf'](_0x4ea745[_0x44b0e3(0x216)]['id'])>-0x1?_0x85bbd0(_0x85bbd0({},_0x4ea745),{'attrs':_0x85bbd0(_0x85bbd0({},_0x4ea745[_0x44b0e3(0x216)]),{'id':_0x4ea745['attrs']['id']+_0x2a59fa[_0x44b0e3(0x172)]})}):_0x4ea745;})}):_0x48605c;}function _0x1cb1ef(){var _0x4cb4a2=_0x137e72;return Math[_0x4cb4a2(0x14a)]()[_0x4cb4a2(0x209)](0x24)[_0x4cb4a2(0x1d3)](0x2,0x8);}_0x152de8[_0x137e72(0x1df)]=_0x137e72(0x16b);var _0x431847={'tag':_0x137e72(0x217),'attrs':{'fill':_0x137e72(0x153),'viewBox':_0x137e72(0x21e),'width':_0x137e72(0x1c7),'height':_0x137e72(0x1c7)},'children':[{'tag':_0x137e72(0x181),'attrs':{'fill':_0x137e72(0x1d2),'d':_0x137e72(0x219)}},{'tag':_0x137e72(0x181),'attrs':{'fill':_0x137e72(0x1d2),'d':_0x137e72(0x141),'fillRule':_0x137e72(0x1d9),'clipRule':_0x137e72(0x1d9)}}]},_0xeee489=_0x5623d1['forwardRef'](function(_0x1adaaa,_0x4b3111){var _0x21e79b=_0x137e72;return _0x5623d1[_0x21e79b(0x1af)](_0x152de8,Object[_0x21e79b(0x22a)]({},_0x1adaaa,{'id':_0x21e79b(0x1da),'ref':_0x4b3111,'icon':_0x431847}));});_0xeee489[_0x137e72(0x1df)]='LiveShareSingle';const _0x5114a4={'liveShare':_0x137e72(0x225),'liveShareStatusOffline':_0x137e72(0x200),'liveShareDropdown':_0x137e72(0x174),'liveShareDropdownTitle':'univer-live-share-dropdown-title'};function _0xbe1cbe(){var _0x12893f=_0x137e72;const _0x5aa063=_0x5a7856[_0x12893f(0x199)](_0x4c41d5),_0x496a18=_0x5a7856[_0x12893f(0x199)](_0x5a7856[_0x12893f(0x1e0)]),_0x59a9b5=_0x54fcf6['useObservable'](()=>_0x496a18[_0x12893f(0x182)](_0x5a7856[_0x12893f(0x1d5)][_0x12893f(0x1c6)]),void 0x0,!0x1,[]),[_0x273a9e,_0x19912d]=_0x5623d1[_0x12893f(0x214)](null),[_0x4604ed,_0x518f43]=_0x5623d1[_0x12893f(0x214)](_0xae87fe[_0x12893f(0x197)]),_0x36db26=_0x5623d1[_0x12893f(0x1b5)](null);_0x5623d1[_0x12893f(0x178)](()=>(_0x59a9b5&&_0x5aa063['getLiveShareCoordinator'](_0x59a9b5['getUnitId']())['then'](_0x5d5c50=>{var _0x5191a7=_0x12893f;_0x19912d(_0x5d5c50),_0x36db26[_0x5191a7(0x20b)]=_0x5d5c50[_0x5191a7(0x1a7)]['subscribe'](_0x29c2dd=>{_0x518f43(_0x29c2dd);});}),()=>{var _0x2ac3b0=_0x12893f,_0xeb2167;(_0xeb2167=_0x36db26[_0x2ac3b0(0x20b)])==null||_0xeb2167[_0x2ac3b0(0x1c9)](),_0x36db26[_0x2ac3b0(0x20b)]=null;}),[_0x59a9b5,_0x5aa063]);const _0x4ad61e=_0x4604ed!==_0xae87fe[_0x12893f(0x198)]?[_0x12893f(0x193)]:[],_0x6a153f=_0x43aa9a(_0x5114a4['liveShare'],'live-share-status-'+_0x4604ed);return _0x273a9e?_0x5623d1[_0x12893f(0x1af)](_0x271cf0[_0x12893f(0x1f7)],{'trigger':_0x4ad61e,'overlay':_0x5623d1[_0x12893f(0x1af)](_0x12893f(0x1f4),{'className':_0x5114a4[_0x12893f(0x1f5)]},_0x5623d1[_0x12893f(0x1af)](_0x2bce76,{'status':_0x4604ed,'coordinator':_0x273a9e}))},_0x5623d1[_0x12893f(0x1af)]('div',{'className':_0x6a153f},_0x5623d1['createElement'](_0xeee489,null))):null;}function _0x2bce76(_0x12ef73){var _0x29d0ac=_0x137e72;const {status:_0x36c00b,coordinator:_0x8b998a}=_0x12ef73;switch(_0x36c00b){case _0xae87fe['IDLE']:return _0x5623d1[_0x29d0ac(0x1af)](_0x4fdcda,{'coordinator':_0x8b998a});case _0xae87fe['FOLLOWING']:return _0x5623d1[_0x29d0ac(0x1af)](_0x3fde5f,{'coordinator':_0x8b998a});case _0xae87fe[_0x29d0ac(0x215)]:return _0x5623d1['createElement'](_0x576834,{'coordinator':_0x8b998a});case _0xae87fe[_0x29d0ac(0x198)]:return _0x5623d1[_0x29d0ac(0x1af)](_0x423354,null);case _0xae87fe['PRESENTING']:return _0x5623d1[_0x29d0ac(0x1af)](_0x4a3c72,{'coordinator':_0x8b998a});default:return null;}}function _0x4fdcda(_0x4871bb){var _0x610fd9=_0x137e72;return _0x5623d1[_0x610fd9(0x1af)](_0x5623d1['Fragment'],null,_0x5623d1[_0x610fd9(0x1af)](_0x610fd9(0x1f4),{'className':_0x5114a4[_0x610fd9(0x1dd)]},'Present\x20this\x20document'),_0x5623d1[_0x610fd9(0x1af)](_0x271cf0['Button'],{'size':_0x610fd9(0x1a0),'type':_0x610fd9(0x169),'onClick':()=>_0x4871bb[_0x610fd9(0x19a)][_0x610fd9(0x17d)]()},_0x610fd9(0x161)));}function _0x3fde5f(_0xa6bed4){var _0x13c18b=_0x137e72;return _0x5623d1[_0x13c18b(0x1af)](_0x5623d1[_0x13c18b(0x159)],null,_0x5623d1[_0x13c18b(0x1af)](_0x13c18b(0x1f4),{'className':_0x5114a4[_0x13c18b(0x1dd)]},_0x13c18b(0x1a3)),_0x5623d1[_0x13c18b(0x1af)](_0x271cf0['Button'],{'size':_0x13c18b(0x1a0),'type':_0x13c18b(0x169),'onClick':()=>_0xa6bed4[_0x13c18b(0x19a)][_0x13c18b(0x155)]()},_0x13c18b(0x1ae)));}function _0x576834(_0x3d30f4){var _0x2789a7=_0x137e72;return _0x5623d1['createElement'](_0x5623d1[_0x2789a7(0x159)],null,_0x5623d1[_0x2789a7(0x1af)]('div',{'className':_0x5114a4[_0x2789a7(0x1dd)]},_0x2789a7(0x1f3)),_0x5623d1[_0x2789a7(0x1af)](_0x271cf0[_0x2789a7(0x1e5)],{'size':_0x2789a7(0x1a0),'type':_0x2789a7(0x164),'onClick':()=>_0x3d30f4['coordinator']['startFollowing']()},_0x2789a7(0x1f2)));}function _0x4a3c72(_0x4cc933){var _0x578d68=_0x137e72;return _0x5623d1[_0x578d68(0x1af)](_0x5623d1[_0x578d68(0x159)],null,_0x5623d1['createElement'](_0x578d68(0x1f4),{'className':_0x5114a4['liveShareDropdownTitle']},_0x578d68(0x20a)),_0x5623d1[_0x578d68(0x1af)](_0x271cf0[_0x578d68(0x1e5)],{'size':_0x578d68(0x1a0),'type':'default','onClick':()=>_0x4cc933['coordinator'][_0x578d68(0x1b4)]()},'Stop\x20presenting'));}function _0x423354(){var _0x50face=_0x137e72;return _0x5623d1[_0x50face(0x1af)](_0x5623d1[_0x50face(0x159)],null,_0x50face(0x1a5));}var _0x11dcb7=Object['defineProperty'],_0x9cb85d=Object['getOwnPropertyDescriptor'],_0x5d7be8=(_0x537ffb,_0x3a74ce,_0x2fd195,_0x30b7d7)=>{var _0x2bdcab=_0x137e72;for(var _0x3da123=_0x30b7d7>0x1?void 0x0:_0x30b7d7?_0x9cb85d(_0x3a74ce,_0x2fd195):_0x3a74ce,_0x549541=_0x537ffb[_0x2bdcab(0x1b3)]-0x1,_0x4fe542;_0x549541>=0x0;_0x549541--)(_0x4fe542=_0x537ffb[_0x549541])&&(_0x3da123=(_0x30b7d7?_0x4fe542(_0x3a74ce,_0x2fd195,_0x3da123):_0x4fe542(_0x3da123))||_0x3da123);return _0x30b7d7&&_0x3da123&&_0x11dcb7(_0x3a74ce,_0x2fd195,_0x3da123),_0x3da123;},_0x42537b=(_0x1596ba,_0x403485)=>(_0x4e378d,_0x44d112)=>_0x403485(_0x4e378d,_0x44d112,_0x1596ba);let _0x180bef=class extends _0x5a7856[_0x137e72(0x158)]{constructor(_0x30a361,_0x733aa2){var _0x2c8dc8=_0x137e72;super(),this[_0x2c8dc8(0x20c)]=_0x30a361,this['_uiPartsService']=_0x733aa2,this[_0x2c8dc8(0x176)]();}['_mountLiveShare'](){var _0x5a9be0=_0x137e72;this['disposeWithMe'](this[_0x5a9be0(0x1f8)][_0x5a9be0(0x163)](_0x54fcf6[_0x5a9be0(0x162)][_0x5a9be0(0x15e)],()=>_0x5a7856[_0x5a9be0(0x1ea)](_0xbe1cbe,this[_0x5a9be0(0x20c)])));}};_0x180bef=_0x5d7be8([_0x5a7856['OnLifecycle'](_0x5a7856['LifecycleStages'][_0x137e72(0x152)],_0x180bef),_0x42537b(0x0,_0x5a7856[_0x137e72(0x1ec)](_0x5a7856['Injector'])),_0x42537b(0x1,_0x54fcf6[_0x137e72(0x1ef)])],_0x180bef);var _0x2b7ee1=Object['defineProperty'],_0x3078ac=Object[_0x137e72(0x1d8)],_0x302dac=(_0x98ea8f,_0x53ce74,_0x20fa68)=>_0x53ce74 in _0x98ea8f?_0x2b7ee1(_0x98ea8f,_0x53ce74,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20fa68}):_0x98ea8f[_0x53ce74]=_0x20fa68,_0xd124a9=(_0x46da93,_0x2c6e57,_0x289757,_0x3191f3)=>{for(var _0x54c648=_0x3191f3>0x1?void 0x0:_0x3191f3?_0x3078ac(_0x2c6e57,_0x289757):_0x2c6e57,_0x264b4f=_0x46da93['length']-0x1,_0x10b685;_0x264b4f>=0x0;_0x264b4f--)(_0x10b685=_0x46da93[_0x264b4f])&&(_0x54c648=(_0x3191f3?_0x10b685(_0x2c6e57,_0x289757,_0x54c648):_0x10b685(_0x54c648))||_0x54c648);return _0x3191f3&&_0x54c648&&_0x2b7ee1(_0x2c6e57,_0x289757,_0x54c648),_0x54c648;},_0x56d469=(_0x263688,_0x4cf707)=>(_0x42ae2d,_0x1cce5a)=>_0x4cf707(_0x42ae2d,_0x1cce5a,_0x263688),_0x23547e=(_0x376f8c,_0x3f01be,_0x15a9e6)=>_0x302dac(_0x376f8c,typeof _0x3f01be!=_0x137e72(0x151)?_0x3f01be+'':_0x3f01be,_0x15a9e6);const _0x20edd2=_0x137e72(0x21b);_0x267f05['UniverLiveSharePlugin']=class extends _0x5a7856[_0x137e72(0x204)]{constructor(_0x4a64c6,_0x1d5d60){var _0x388730=_0x137e72;super(),this[_0x388730(0x20c)]=_0x1d5d60;}[_0x137e72(0x212)](_0x2b445a){var _0x9df56e=_0x137e72;[[_0x185dae],[_0x4c41d5],[_0x184ee1],[_0x180bef]]['forEach'](_0x257560=>_0x2b445a[_0x9df56e(0x177)](_0x257560));}},_0x23547e(_0x267f05[_0x137e72(0x1f9)],'type',_0x5a7856[_0x137e72(0x1d5)][_0x137e72(0x1c6)]),_0x23547e(_0x267f05[_0x137e72(0x1f9)],'pluginName',_0x20edd2),_0x267f05[_0x137e72(0x1f9)]=_0xd124a9([_0x5a7856[_0x137e72(0x196)](_0x1bc69f[_0x137e72(0x1de)]),_0x56d469(0x1,_0x5a7856[_0x137e72(0x1ec)](_0x5a7856[_0x137e72(0x1bb)]))],_0x267f05[_0x137e72(0x1f9)]),_0x267f05[_0x137e72(0x1f6)]=_0x185dae,Object[_0x137e72(0x1e6)](_0x267f05,Symbol['toStringTag'],{'value':_0x137e72(0x1cd)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -49,16 +49,16 @@
|
|
|
49
49
|
"clsx": ">=2.0.0",
|
|
50
50
|
"react": "^16.9.0 || ^17.0.0 || ^18.0.0",
|
|
51
51
|
"rxjs": ">=7.0.0",
|
|
52
|
-
"@univerjs-pro/collaboration": "0.2.
|
|
53
|
-
"@univerjs-pro/collaboration-client": "0.2.
|
|
54
|
-
"@univerjs/core": "0.2.
|
|
55
|
-
"@univerjs/design": "0.2.
|
|
56
|
-
"@univerjs/sheets": "0.2.
|
|
57
|
-
"@univerjs/sheets-ui": "0.2.
|
|
58
|
-
"@univerjs/ui": "0.2.
|
|
52
|
+
"@univerjs-pro/collaboration": "0.2.5",
|
|
53
|
+
"@univerjs-pro/collaboration-client": "0.2.5",
|
|
54
|
+
"@univerjs/core": "0.2.5",
|
|
55
|
+
"@univerjs/design": "0.2.5",
|
|
56
|
+
"@univerjs/sheets": "0.2.5",
|
|
57
|
+
"@univerjs/sheets-ui": "0.2.5",
|
|
58
|
+
"@univerjs/ui": "0.2.5"
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@univerjs/icons": "^0.1.
|
|
61
|
+
"@univerjs/icons": "^0.1.65",
|
|
62
62
|
"@univerjs/protocol": "0.1.38-alpha.23"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
@@ -70,14 +70,14 @@
|
|
|
70
70
|
"typescript": "^5.5.3",
|
|
71
71
|
"vite": "^5.3.4",
|
|
72
72
|
"vitest": "^2.0.3",
|
|
73
|
-
"@univerjs-pro/collaboration": "0.2.
|
|
74
|
-
"@univerjs-pro/collaboration-client": "0.2.
|
|
75
|
-
"@univerjs/core": "0.2.
|
|
76
|
-
"@univerjs/design": "0.2.
|
|
77
|
-
"@univerjs/shared": "0.2.
|
|
78
|
-
"@univerjs/sheets": "0.2.
|
|
79
|
-
"@univerjs/sheets-ui": "0.2.
|
|
80
|
-
"@univerjs/ui": "0.2.
|
|
73
|
+
"@univerjs-pro/collaboration": "0.2.5",
|
|
74
|
+
"@univerjs-pro/collaboration-client": "0.2.5",
|
|
75
|
+
"@univerjs/core": "0.2.5",
|
|
76
|
+
"@univerjs/design": "0.2.5",
|
|
77
|
+
"@univerjs/shared": "0.2.5",
|
|
78
|
+
"@univerjs/sheets": "0.2.5",
|
|
79
|
+
"@univerjs/sheets-ui": "0.2.5",
|
|
80
|
+
"@univerjs/ui": "0.2.5"
|
|
81
81
|
},
|
|
82
82
|
"univerSpace": {
|
|
83
83
|
".": {
|