@univerjs-pro/live-share 0.8.0-nightly.202506041607 → 0.8.0-nightly.202506061607

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x4af0c9=_0x46d3;(function(_0x39ac92,_0x593ae1){var _0x424d22=_0x46d3,_0x3f5df3=_0x39ac92();while(!![]){try{var _0x287b37=-parseInt(_0x424d22(0x103))/0x1+-parseInt(_0x424d22(0xea))/0x2*(-parseInt(_0x424d22(0x18e))/0x3)+-parseInt(_0x424d22(0xef))/0x4*(parseInt(_0x424d22(0x146))/0x5)+-parseInt(_0x424d22(0x114))/0x6*(parseInt(_0x424d22(0xca))/0x7)+-parseInt(_0x424d22(0x18a))/0x8*(parseInt(_0x424d22(0x115))/0x9)+parseInt(_0x424d22(0xcc))/0xa+-parseInt(_0x424d22(0xdb))/0xb*(-parseInt(_0x424d22(0xc5))/0xc);if(_0x287b37===_0x593ae1)break;else _0x3f5df3['push'](_0x3f5df3['shift']());}catch(_0x591052){_0x3f5df3['push'](_0x3f5df3['shift']());}}}(_0x245e,0xdde17));var U=Object[_0x4af0c9(0x148)],F=(_0xedd788,_0x49cc50,_0x5bad20)=>_0x49cc50 in _0xedd788?U(_0xedd788,_0x49cc50,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5bad20}):_0xedd788[_0x49cc50]=_0x5bad20,v=(_0x53bfd5,_0x104ec2,_0x80a753)=>F(_0x53bfd5,typeof _0x104ec2!='symbol'?_0x104ec2+'':_0x104ec2,_0x80a753);Object[_0x4af0c9(0x148)](exports,Symbol[_0x4af0c9(0x154)],{'value':_0x4af0c9(0x199)});const m=require(_0x4af0c9(0x191)),o=require(_0x4af0c9(0x179)),C=require('@univerjs/sheets'),w=require(_0x4af0c9(0xcb)),p=require(_0x4af0c9(0x189)),l=require('react/jsx-runtime'),g=require(_0x4af0c9(0x177)),f=require(_0x4af0c9(0x153)),_=require(_0x4af0c9(0x17f)),D=require('rxjs'),b=require(_0x4af0c9(0x164)),$=_0x4af0c9(0x196),x={};class O extends o[_0x4af0c9(0x13f)]{constructor(){var _0x4fbf94=_0x4af0c9;super(...arguments),v(this,_0x4fbf94(0x17e),new Set()),v(this,_0x4fbf94(0x16f),new Set());}['registerSharedOperation'](_0x563e56){var _0x18ef71=_0x4af0c9;return this['_sharedOperations'][_0x18ef71(0xc1)](_0x563e56),o[_0x18ef71(0x11f)](()=>this[_0x18ef71(0x17e)][_0x18ef71(0x11b)](_0x563e56));}[_0x4af0c9(0xfe)](_0x4fdcff){var _0x410011=_0x4af0c9;return this[_0x410011(0x16f)][_0x410011(0xc1)](_0x4fdcff),o[_0x410011(0x11f)](()=>this[_0x410011(0x16f)][_0x410011(0x11b)](_0x4fdcff));}[_0x4af0c9(0x151)](_0x474ac2){var _0xa4d9f=_0x4af0c9;return this[_0xa4d9f(0x17e)][_0xa4d9f(0xf4)](_0x474ac2);}[_0x4af0c9(0x188)](_0x54ee93){var _0x26211a=_0x4af0c9;return Array[_0x26211a(0x184)](this[_0x26211a(0x16f)])[_0x26211a(0x16a)](_0x3a565e=>_0x3a565e(_0x54ee93));}}var H=Object[_0x4af0c9(0x150)],V=(_0x3671a9,_0x3a920e,_0x3c34bc,_0x446118)=>{var _0x462207=_0x4af0c9;for(var _0x4b4df6=_0x446118>0x1?void 0x0:_0x446118?H(_0x3a920e,_0x3c34bc):_0x3a920e,_0x1c3117=_0x3671a9[_0x462207(0x14a)]-0x1,_0x3ca648;_0x1c3117>=0x0;_0x1c3117--)(_0x3ca648=_0x3671a9[_0x1c3117])&&(_0x4b4df6=_0x3ca648(_0x4b4df6)||_0x4b4df6);return _0x4b4df6;},k=(_0x22cd75,_0x30e3d4)=>(_0x597871,_0x15e35a)=>_0x30e3d4(_0x597871,_0x15e35a,_0x22cd75);let E=class extends o[_0x4af0c9(0x13f)]{constructor(_0x31315d){var _0x2323c2=_0x4af0c9;super(),this[_0x2323c2(0x194)]=_0x31315d,this['_init']();}[_0x4af0c9(0xe4)](){var _0x496cb8=_0x4af0c9;[w[_0x496cb8(0xc4)]['id'],w['SetScrollOperation']['id'],C[_0x496cb8(0xce)]['id']][_0x496cb8(0x152)](_0x3f5b53=>{var _0x182b9a=_0x496cb8;this['disposeWithMe'](this[_0x182b9a(0x194)][_0x182b9a(0xd8)](_0x3f5b53));});}};E=V([k(0x0,o[_0x4af0c9(0x168)](O))],E);var u=function(){var _0x431f4d=_0x4af0c9;return u=Object[_0x431f4d(0xf1)]||function(_0x319385){var _0x1d71d6=_0x431f4d;for(var _0xb5a566,_0x3d5d6b=0x1,_0x422b20=arguments[_0x1d71d6(0x14a)];_0x3d5d6b<_0x422b20;_0x3d5d6b++){_0xb5a566=arguments[_0x3d5d6b];for(var _0x4de631 in _0xb5a566)Object[_0x1d71d6(0xee)][_0x1d71d6(0x182)]['call'](_0xb5a566,_0x4de631)&&(_0x319385[_0x4de631]=_0xb5a566[_0x4de631]);}return _0x319385;},u[_0x431f4d(0xe5)](this,arguments);},M=function(_0x4b1276,_0xc4df70){var _0x1ff3ac=_0x4af0c9,_0x3b21de={};for(var _0x3df2a1 in _0x4b1276)Object[_0x1ff3ac(0xee)][_0x1ff3ac(0x182)][_0x1ff3ac(0x19f)](_0x4b1276,_0x3df2a1)&&_0xc4df70['indexOf'](_0x3df2a1)<0x0&&(_0x3b21de[_0x3df2a1]=_0x4b1276[_0x3df2a1]);if(_0x4b1276!=null&&typeof Object[_0x1ff3ac(0x12b)]==_0x1ff3ac(0x126)){for(var _0x283274=0x0,_0x3df2a1=Object[_0x1ff3ac(0x12b)](_0x4b1276);_0x283274<_0x3df2a1[_0x1ff3ac(0x14a)];_0x283274++)_0xc4df70[_0x1ff3ac(0xf9)](_0x3df2a1[_0x283274])<0x0&&Object[_0x1ff3ac(0xee)][_0x1ff3ac(0x105)][_0x1ff3ac(0x19f)](_0x4b1276,_0x3df2a1[_0x283274])&&(_0x3b21de[_0x3df2a1[_0x283274]]=_0x4b1276[_0x3df2a1[_0x283274]]);}return _0x3b21de;},j=f['forwardRef'](function(_0x117f9e,_0x22f4f9){var _0x285a71=_0x4af0c9,_0x22e1b0=_0x117f9e['icon'],_0x6c5723=_0x117f9e['id'],_0x1d7248=_0x117f9e['className'],_0x416fc0=_0x117f9e[_0x285a71(0x136)],_0x3c1fbb=M(_0x117f9e,[_0x285a71(0x10c),'id',_0x285a71(0x145),_0x285a71(0x136)]),_0x43b922='univerjs-icon\x20univerjs-icon-'['concat'](_0x6c5723,'\x20')['concat'](_0x1d7248||'')['trim'](),_0x567095=f[_0x285a71(0x106)]('_'['concat'](G()));return y(_0x22e1b0,''['concat'](_0x6c5723),{'defIds':_0x22e1b0[_0x285a71(0x101)],'idSuffix':_0x567095[_0x285a71(0x171)]},u({'ref':_0x22f4f9,'className':_0x43b922},_0x3c1fbb),_0x416fc0);});function y(_0x3bf2cd,_0x558f38,_0x3b1c93,_0x228d00,_0x5e1f1c){var _0xabddf6=_0x4af0c9;return f[_0xabddf6(0x17c)](_0x3bf2cd['tag'],u(u({'key':_0x558f38},q(_0x3bf2cd,_0x3b1c93,_0x5e1f1c)),_0x228d00),(W(_0x3bf2cd,_0x3b1c93)[_0xabddf6(0xdd)]||[])[_0xabddf6(0x16a)](function(_0x22156d,_0x3b47bc){var _0x1241c8=_0xabddf6;return y(_0x22156d,''[_0x1241c8(0x13a)](_0x558f38,'-')[_0x1241c8(0x13a)](_0x3bf2cd[_0x1241c8(0x166)],'-')[_0x1241c8(0x13a)](_0x3b47bc),_0x3b1c93,void 0x0,_0x5e1f1c);}));}function q(_0x50a24c,_0x45f609,_0x39f578){var _0x25c0f0=_0x4af0c9,_0x554069=u({},_0x50a24c[_0x25c0f0(0xfa)]);_0x39f578!=null&&_0x39f578['colorChannel1']&&_0x554069[_0x25c0f0(0xfb)]===_0x25c0f0(0x121)&&(_0x554069['fill']=_0x39f578[_0x25c0f0(0x121)]),_0x50a24c[_0x25c0f0(0x166)]===_0x25c0f0(0x195)&&_0x554069['id']&&(_0x554069['id']=_0x554069['id']+_0x45f609[_0x25c0f0(0x11d)]),Object['entries'](_0x554069)[_0x25c0f0(0x152)](function(_0x3f265d){var _0x26147d=_0x25c0f0,_0xff5e6c=_0x3f265d[0x0],_0x188ef7=_0x3f265d[0x1];_0xff5e6c==='mask'&&typeof _0x188ef7==_0x26147d(0x160)&&(_0x554069[_0xff5e6c]=_0x188ef7[_0x26147d(0x107)](/url\(#(.*)\)/,'url(#$1'[_0x26147d(0x13a)](_0x45f609[_0x26147d(0x11d)],')')));});var _0x471686=_0x45f609[_0x25c0f0(0x101)];return!_0x471686||_0x471686[_0x25c0f0(0x14a)]===0x0||(_0x50a24c[_0x25c0f0(0x166)]==='use'&&_0x554069['xlink:href']&&(_0x554069[_0x25c0f0(0x17b)]=_0x554069[_0x25c0f0(0x17b)]+_0x45f609[_0x25c0f0(0x11d)]),Object[_0x25c0f0(0x18c)](_0x554069)[_0x25c0f0(0x152)](function(_0x242b08){var _0x5cf374=_0x25c0f0,_0x160f04=_0x242b08[0x0],_0x4195bd=_0x242b08[0x1];typeof _0x4195bd==_0x5cf374(0x160)&&(_0x554069[_0x160f04]=_0x4195bd[_0x5cf374(0x107)](/url\(#(.*)\)/,_0x5cf374(0xe9)['concat'](_0x45f609[_0x5cf374(0x11d)],')')));})),_0x554069;}function W(_0x373ac5,_0x2a8fdf){var _0x199a6f=_0x4af0c9,_0x3131e0,_0x5a5550=_0x2a8fdf['defIds'];return!_0x5a5550||_0x5a5550[_0x199a6f(0x14a)]===0x0?_0x373ac5:_0x373ac5[_0x199a6f(0x166)]===_0x199a6f(0x130)&&(!((_0x3131e0=_0x373ac5[_0x199a6f(0xdd)])===null||_0x3131e0===void 0x0)&&_0x3131e0['length'])?u(u({},_0x373ac5),{'children':_0x373ac5[_0x199a6f(0xdd)][_0x199a6f(0x16a)](function(_0x452b78){var _0x385afb=_0x199a6f;return typeof _0x452b78[_0x385afb(0xfa)]['id']==_0x385afb(0x160)&&_0x5a5550&&_0x5a5550[_0x385afb(0x198)](_0x452b78[_0x385afb(0xfa)]['id'])?u(u({},_0x452b78),{'attrs':u(u({},_0x452b78[_0x385afb(0xfa)]),{'id':_0x452b78['attrs']['id']+_0x2a8fdf[_0x385afb(0x11d)]})}):_0x452b78;})}):_0x373ac5;}function _0x245e(){var _0x54f02e=['default','Inject','idle','map','throttleTime','_fetchOperations','_handleNewChangeSets','_startLiveShareCoordinator','_reporters','jsxs','current','reverse','status$','subscribe','useDependency','jsx','@univerjs/design','operations','@univerjs/core','pluginName','xlink:href','createElement','next','_sharedOperations','@univerjs-pro/collaboration','_beIdle','LIVESHARE_OPERATION','hasOwnProperty','DisposableCollection','from','get','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','CollaborationSessionService','getInitialStates','@univerjs/ui','2424EvvKua','_injector','entries','takeUntil','23361vcBzBJ','init','getLiveShareCoordinator','@univerjs-pro/collaboration-client','substring','Start\x20following','_liveShareService','mask','live-share.config','unsubscribe','includes','Module','1em','presenter','live-share-icon','set','stopPresenting','call','merge','div','currentColor','forwardRef','getMemberID','useState','_status','_unitID','not-following','Stop\x20following','add','http://www.w3.org/2000/svg','You\x27re\x20not\x20following\x20the\x20presenter','SetZoomRatioOperation','12vKjATd','ONLINE','IUniverInstanceService','NEW_CHANGESETS','none','889JEukGZ','@univerjs/sheets-ui','4105610rCigCA','_handleOperation','SetWorksheetActiveOperation','disposeWithMe','startFollowing','onRendered','complete','_univerInstanceService','UniverLiveSharePlugin','CollaborationEvent','_startFollowing','LiveShareController','registerSharedOperation','NOT_FOLLOWING','params','58440239pcirRR','univer-w-full\x20univer-mb-3\x20univer-text-sm','children','FOLLOWING','_handleOnline','displayName','getConfig','LiveShareStatus','LIVESHARE_FETCH_OPERATIONS','_init','apply','DesktopLiveShareController','univer-size-4','_configService','url(#$1','2DpRUZZ','Subject','parse','getCurrentTypeOfUnit$','prototype','28wbkDsy','send','assign','mergeOverrideWithDependencies','toString','has','clsx','UNIVER_UNKNOWN','LIVESHARE_NEW_HOST','createInstance','indexOf','attrs','fill','UniverInstanceType','UNIVER_SHEET','registerInitialStateReporter','LiveShareIcon','Stop\x20presenting','defIds','You\x27are\x20offline.','1613423bzSJby','getTypeOfUnitAdded$','propertyIsEnumerable','useRef','replace','_startPresenting','useEffect','getUnitId','useObservable','icon','HEADER_MENU','pipe','_handleNewHost','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','type','_collabSessionService','LiveShareService','82794PWPNia','34713qNbUuJ','_collabSession','setConfig','_uiPartsService','sessionStatus$','onCommandExecuted','delete','stopFollowing','idSuffix','_entities','toDisposable','button','colorChannel1','_config','IDLE','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','Fragment','function','parseProtocolChangeset','IUIPartsService','UniverIcon','offline','getOwnPropertySymbols','_commandDisposable','getTypeOfUnitDisposed$','_stopPresenting','LIVESHARE_REQUEST_HOST','defs','executeCommand','dispose$','_status$','SessionStatus','LiveShareCoordinator','extend','PRESENTING','ICommandService','getValue','concat','random','sheet','onStarting','following','Disposable','registerComponent','_handleOffline','UniverCollaborationClientPlugin','clear','evenodd','className','205505onTvLh','_commandService','defineProperty','_presenter','length','data','_handleTerminate','RxDisposable','You\x27re\x20presenting\x20the\x20document','DependentOn','getOwnPropertyDescriptor','shouldShareOperation','forEach','react','toStringTag','tryStartPresenting','_stopFollowing','You\x27re\x20following\x20the\x20presenter','Button','Injector','Start','svg','IConfigService','OPERATION','presenting','dispose','string','LIVESHARE_TERMINATE','BuiltInUIPart','OFFLINE','rxjs/operators','symbol','tag'];_0x245e=function(){return _0x54f02e;};return _0x245e();}function G(){var _0x138fe9=_0x4af0c9;return Math[_0x138fe9(0x13b)]()[_0x138fe9(0xf3)](0x24)[_0x138fe9(0x192)](0x2,0x8);}j['displayName']=_0x4af0c9(0x129);var B={'tag':_0x4af0c9(0x15b),'attrs':{'xmlns':_0x4af0c9(0xc2),'fill':_0x4af0c9(0xc9),'viewBox':'0\x200\x2017\x2017','width':_0x4af0c9(0x19a),'height':_0x4af0c9(0x19a)},'children':[{'tag':'path','attrs':{'fill':_0x4af0c9(0x1a2),'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':'path','attrs':{'fill':_0x4af0c9(0x1a2),'d':_0x4af0c9(0x110),'fillRule':_0x4af0c9(0x144),'clipRule':_0x4af0c9(0x144)}}]},P=f[_0x4af0c9(0x1a3)](function(_0x438008,_0x1b9e98){var _0x75625d=_0x4af0c9;return f[_0x75625d(0x17c)](j,Object[_0x75625d(0xf1)]({},_0x438008,{'id':_0x75625d(0x19c),'ref':_0x1b9e98,'icon':B}));});P[_0x4af0c9(0xe0)]=_0x4af0c9(0xff);var Y=Object['getOwnPropertyDescriptor'],R=(_0x2da32e,_0x241618,_0x231fca,_0xd19957)=>{for(var _0x1fc46c=_0xd19957>0x1?void 0x0:_0xd19957?Y(_0x241618,_0x231fca):_0x241618,_0x5c5ae8=_0x2da32e['length']-0x1,_0x302f0f;_0x5c5ae8>=0x0;_0x5c5ae8--)(_0x302f0f=_0x2da32e[_0x5c5ae8])&&(_0x1fc46c=_0x302f0f(_0x1fc46c)||_0x1fc46c);return _0x1fc46c;},S=(_0x53f51e,_0x515e8e)=>(_0x5f2b27,_0x17bee)=>_0x515e8e(_0x5f2b27,_0x17bee,_0x53f51e);exports['LiveShareController']=class extends o[_0x4af0c9(0x14d)]{constructor(_0x2767e4,_0x349ef2,_0x420f21){var _0x3f17e5=_0x4af0c9;super(),v(this,_0x3f17e5(0x11e),new Map()),(this[_0x3f17e5(0xd3)]=_0x2767e4,this[_0x3f17e5(0x18b)]=_0x349ef2,this[_0x3f17e5(0x112)]=_0x420f21,this['_init']());}async[_0x4af0c9(0x190)](_0x389955){var _0x2dcfba=_0x4af0c9;return this[_0x2dcfba(0x11e)][_0x2dcfba(0xf4)](_0x389955)||await this[_0x2dcfba(0x16e)](_0x389955),this['_entities'][_0x2dcfba(0x185)](_0x389955);}[_0x4af0c9(0xe4)](){var _0x2c9dd0=_0x4af0c9;this[_0x2c9dd0(0xd3)][_0x2c9dd0(0x104)](o[_0x2c9dd0(0xfc)][_0x2c9dd0(0xfd)])['pipe'](b['takeUntil'](this[_0x2c9dd0(0x132)]))[_0x2c9dd0(0x174)](async _0x4f3290=>{var _0x5e2b50=_0x2c9dd0;const _0x5be5d1=_0x4f3290[_0x5e2b50(0x10a)]();this[_0x5e2b50(0x11e)][_0x5e2b50(0xf4)](_0x5be5d1)||this[_0x5e2b50(0x16e)](_0x5be5d1);}),this['_univerInstanceService'][_0x2c9dd0(0x12d)](o[_0x2c9dd0(0xfc)]['UNIVER_SHEET'])[_0x2c9dd0(0x10e)](b[_0x2c9dd0(0x18d)](this[_0x2c9dd0(0x132)]))[_0x2c9dd0(0x174)](_0x4a47d3=>{var _0x31f647=_0x2c9dd0;const _0x4f8b22=_0x4a47d3[_0x31f647(0x10a)](),_0x1b510c=this['_entities'][_0x31f647(0x185)](_0x4f8b22);_0x1b510c==null||_0x1b510c[_0x31f647(0x15f)]();});}async[_0x4af0c9(0x16e)](_0x5512ad){var _0x5360c3=_0x4af0c9;const _0xbbd1=await this['_collabSessionService']['requireSession'](_0x5512ad),_0x36e266=this['_injector'][_0x5360c3(0xf8)](exports[_0x5360c3(0x135)],_0x5512ad,_0xbbd1);return _0x36e266[_0x5360c3(0x18f)](),this['_entities'][_0x5360c3(0x19d)](_0x5512ad,_0x36e266),_0x36e266;}},exports[_0x4af0c9(0xd7)]=R([S(0x0,o[_0x4af0c9(0xc7)]),S(0x1,o['Inject'](o[_0x4af0c9(0x159)])),S(0x2,o[_0x4af0c9(0x168)](m[_0x4af0c9(0x187)]))],exports[_0x4af0c9(0xd7)]);var h=(_0x31ce64=>(_0x31ce64[_0x4af0c9(0x163)]=_0x4af0c9(0x12a),_0x31ce64[_0x4af0c9(0x123)]='idle',_0x31ce64[_0x4af0c9(0xde)]='following',_0x31ce64[_0x4af0c9(0xd9)]=_0x4af0c9(0xbf),_0x31ce64[_0x4af0c9(0x137)]='presenting',_0x31ce64))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports[_0x4af0c9(0x135)]=class extends o[_0x4af0c9(0x14d)]{constructor(_0x54890c,_0x42c4f6,_0x4d1105,_0x2a07a8,_0x57f07d){var _0x19afd5=_0x4af0c9;super(),v(this,_0x19afd5(0x133),new D['BehaviorSubject'](_0x19afd5(0x169))),v(this,_0x19afd5(0x173),this[_0x19afd5(0x133)]['asObservable']()),v(this,_0x19afd5(0xe4),!0x1),v(this,_0x19afd5(0x12c),null),v(this,_0x19afd5(0x149),null),(this[_0x19afd5(0x1a7)]=_0x54890c,this[_0x19afd5(0x116)]=_0x42c4f6,this['_configService']=_0x4d1105,this[_0x19afd5(0x194)]=_0x2a07a8,this[_0x19afd5(0x147)]=_0x57f07d);}get['_status'](){var _0x3e49ab=_0x4af0c9;return this[_0x3e49ab(0x133)][_0x3e49ab(0x139)]();}[_0x4af0c9(0x15f)](){var _0x4e68df=_0x4af0c9,_0x51ee65;(_0x51ee65=this[_0x4e68df(0x12c)])==null||_0x51ee65['dispose'](),this[_0x4e68df(0x133)][_0x4e68df(0x17d)]('idle'),this[_0x4e68df(0x133)][_0x4e68df(0xd2)]();}[_0x4af0c9(0x18f)](){var _0x3edbe4=_0x4af0c9;this[_0x3edbe4(0xe4)]||(this[_0x3edbe4(0xe4)]=!0x0,this[_0x3edbe4(0x116)][_0x3edbe4(0x119)][_0x3edbe4(0x10e)](b[_0x3edbe4(0x18d)](this['dispose$']))[_0x3edbe4(0x174)](_0x169471=>{var _0xbcf49a=_0x3edbe4;switch(_0x169471){case m[_0xbcf49a(0x134)][_0xbcf49a(0x163)]:this[_0xbcf49a(0x141)]();break;case m[_0xbcf49a(0x134)][_0xbcf49a(0xc6)]:this[_0xbcf49a(0xdf)]();break;}}),this[_0x3edbe4(0x116)]['event$'][_0x3edbe4(0x10e)](b[_0x3edbe4(0x18d)](this[_0x3edbe4(0x132)]))['subscribe'](_0x4abdd2=>{var _0x5bf183=_0x3edbe4;const {eventID:_0x55aa5c}=_0x4abdd2;switch(_0x55aa5c){case _[_0x5bf183(0xd5)][_0x5bf183(0xf7)]:this[_0x5bf183(0x10f)](_0x4abdd2);break;case _['CollaborationEvent'][_0x5bf183(0x181)]:this['_handleOperation'](_0x4abdd2);break;case _[_0x5bf183(0xd5)][_0x5bf183(0x161)]:this[_0x5bf183(0x14c)]();break;case _['CollaborationEvent'][_0x5bf183(0xc8)]:this[_0x5bf183(0x16d)](_0x4abdd2);break;}}));}[_0x4af0c9(0x155)](){var _0x265c35=_0x4af0c9;this[_0x265c35(0x116)][_0x265c35(0xf0)]({'eventID':_[_0x265c35(0xd5)][_0x265c35(0x12f)],'data':{'unitID':this[_0x265c35(0x1a7)],'userID':this[_0x265c35(0x116)][_0x265c35(0x1a4)]()}},this[_0x265c35(0x1a7)]);}[_0x4af0c9(0x19e)](){var _0xec73d7=_0x4af0c9;this[_0xec73d7(0x1a6)]===_0xec73d7(0x15e)&&(this[_0xec73d7(0x133)][_0xec73d7(0x17d)](_0xec73d7(0x169)),this[_0xec73d7(0x116)][_0xec73d7(0xf0)]({'eventID':_['CollaborationEvent'][_0xec73d7(0x161)],'data':{'unitID':this[_0xec73d7(0x1a7)]}},this[_0xec73d7(0x1a7)]));}[_0x4af0c9(0xd0)](){var _0x3eb71f=_0x4af0c9;this[_0x3eb71f(0x1a6)]===_0x3eb71f(0xbf)&&(this[_0x3eb71f(0x133)][_0x3eb71f(0x17d)]('following'),this[_0x3eb71f(0xd6)]());}[_0x4af0c9(0x11c)](){var _0x58e848=_0x4af0c9;this[_0x58e848(0x1a6)]===_0x58e848(0x13e)&&this[_0x58e848(0x156)]();}[_0x4af0c9(0x10f)](_0x2bee33){var _0x574b00=_0x4af0c9;const {presenter:_0x346689}=_0x2bee33['data'],_0xb3d53b=this[_0x574b00(0x116)][_0x574b00(0x1a4)]();this[_0x574b00(0x149)]=_0x346689,_0x346689===_0xb3d53b?(this[_0x574b00(0x156)](),this[_0x574b00(0x108)]()):this[_0x574b00(0x1a6)]!==_0x574b00(0xbf)&&(this[_0x574b00(0x12e)](),this[_0x574b00(0xd6)]());}[_0x4af0c9(0x16c)](){var _0xf4b986=_0x4af0c9;const _0x1461e2={'eventID':_[_0xf4b986(0xd5)][_0xf4b986(0xe3)]};this['_collabSession'][_0xf4b986(0xf0)](_0x1461e2,this[_0xf4b986(0x1a7)]);}[_0x4af0c9(0x14c)](){var _0x38527c=_0x4af0c9;this[_0x38527c(0x149)]=null,this[_0x38527c(0x1a6)]!==_0x38527c(0x15e)&&this[_0x38527c(0x180)]();}[_0x4af0c9(0x16d)](_0x1e9cdc){var _0x453f51=_0x4af0c9;if(this[_0x453f51(0x1a6)]===_0x453f51(0x13e)&&this[_0x453f51(0x149)]===_0x1e9cdc['data']['memberID']){const _0x2dcae0=_[_0x453f51(0x127)](_0x1e9cdc[_0x453f51(0x14b)])['mutations'][_0x453f51(0x172)]()['find'](_0x2a937c=>_0x2a937c['id']===C['InsertSheetMutation']['id']);if(_0x2dcae0){const _0x1980cb=_0x2dcae0[_0x453f51(0xda)]['unitId'],_0x1dbd1d=_0x2dcae0[_0x453f51(0xda)][_0x453f51(0x13c)]['id'];setTimeout(()=>{var _0x344f7c=_0x453f51;this[_0x344f7c(0x147)][_0x344f7c(0x131)](C[_0x344f7c(0xce)]['id'],{'unitId':_0x1980cb,'subUnitId':_0x1dbd1d},{'fromCollab':!0x0});});}}}[_0x4af0c9(0x108)](){var _0x5210f7=_0x4af0c9;this[_0x5210f7(0x133)][_0x5210f7(0x17d)](_0x5210f7(0x15e));const _0x3df543=new Map(),_0x2b556e=this['_commandDisposable']=new o[(_0x5210f7(0x183))]();_0x2b556e['add'](o[_0x5210f7(0x11f)](()=>{var _0x451e01=_0x5210f7;_0x3df543['forEach'](_0x42fa09=>_0x42fa09[_0x451e01(0xd2)]()),_0x3df543[_0x451e01(0x143)]();})),_0x2b556e[_0x5210f7(0xc1)](this[_0x5210f7(0x147)][_0x5210f7(0x11a)](_0x2b2ad8=>{var _0x19cfbd=_0x5210f7,_0x4ac833;if(_0x2b2ad8[_0x19cfbd(0x111)]!==o['CommandType'][_0x19cfbd(0x15d)]||!this['_liveShareService'][_0x19cfbd(0x151)](_0x2b2ad8['id']))return;const {id:_0x45a1b2}=_0x2b2ad8;let _0x4bde92;_0x3df543['has'](_0x45a1b2)?_0x4bde92=_0x3df543[_0x19cfbd(0x185)](_0x45a1b2):(_0x4bde92=new D[(_0x19cfbd(0xeb))](),_0x3df543['set'](_0x45a1b2,_0x4bde92),_0x4bde92[_0x19cfbd(0x10e)](b[_0x19cfbd(0x16b)]((_0x4ac833=this['_configService'][_0x19cfbd(0xe1)](Z))!=null?_0x4ac833:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x19cfbd(0x174)](_0xc198b0=>{var _0x256e73=_0x19cfbd;this[_0x256e73(0x116)][_0x256e73(0xf0)]({'eventID':_[_0x256e73(0xd5)][_0x256e73(0x181)],'data':{'unitID':this['_unitID'],'operations':{[_0xc198b0['id']]:{'id':_0xc198b0['id'],'params':JSON['stringify'](_0xc198b0[_0x256e73(0xda)])}}}},this[_0x256e73(0x1a7)]);})),_0x4bde92[_0x19cfbd(0x17d)](_0x2b2ad8);})),this[_0x5210f7(0x194)]['getInitialStates'](this[_0x5210f7(0x1a7)])['forEach'](_0x3fd38a=>this[_0x5210f7(0x116)][_0x5210f7(0xf0)]({'eventID':_[_0x5210f7(0xd5)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x3fd38a['id']]:{'id':_0x3fd38a['id'],'params':JSON['stringify'](_0x3fd38a[_0x5210f7(0xda)])}}}},this[_0x5210f7(0x1a7)]));}[_0x4af0c9(0x12e)](){var _0x530a3f=_0x4af0c9,_0x2591a7;this[_0x530a3f(0x133)]['next']('idle'),(_0x2591a7=this[_0x530a3f(0x12c)])==null||_0x2591a7[_0x530a3f(0x15f)](),this[_0x530a3f(0x12c)]=null;}['_startFollowing'](){var _0x24ebd1=_0x4af0c9,_0x3ebe4a;(_0x3ebe4a=this[_0x24ebd1(0x12c)])==null||_0x3ebe4a['dispose'](),this['_status$'][_0x24ebd1(0x17d)](_0x24ebd1(0x13e));}[_0x4af0c9(0x180)](){var _0x35d90d=_0x4af0c9,_0x22f7e4;this[_0x35d90d(0x133)][_0x35d90d(0x17d)](_0x35d90d(0x169)),(_0x22f7e4=this[_0x35d90d(0x12c)])==null||_0x22f7e4[_0x35d90d(0x15f)](),this[_0x35d90d(0x12c)]=null;}[_0x4af0c9(0x156)](){var _0xb7f503=_0x4af0c9,_0x49bca2;this[_0xb7f503(0x133)][_0xb7f503(0x17d)](_0xb7f503(0xbf)),(_0x49bca2=this[_0xb7f503(0x12c)])==null||_0x49bca2[_0xb7f503(0x15f)]();}[_0x4af0c9(0xcd)](_0x4403bd){var _0xc36367=_0x4af0c9;if([_0xc36367(0x15e),_0xc36367(0xbf),'offline'][_0xc36367(0x198)](this['_status'])||!_0x4403bd[_0xc36367(0x14b)][_0xc36367(0x19b)]||_0x4403bd[_0xc36367(0x14b)][_0xc36367(0x19b)]===this[_0xc36367(0x116)][_0xc36367(0x1a4)]())return;this[_0xc36367(0x1a6)]===_0xc36367(0x169)&&this['_startFollowing']();const _0x3222df=_0x4403bd[_0xc36367(0x14b)][_0xc36367(0x178)];Object['values'](_0x3222df)[_0xc36367(0x152)](_0x5e17a8=>{var _0x35b6b0=_0xc36367;this[_0x35b6b0(0x147)][_0x35b6b0(0x131)](_0x5e17a8['id'],_0x5e17a8[_0x35b6b0(0xda)]?JSON[_0x35b6b0(0xec)](_0x5e17a8[_0x35b6b0(0xda)]):null,{'fromCollab':!0x0});});}[_0x4af0c9(0x141)](){var _0x55ffb4=_0x4af0c9,_0x4eaf3b;this[_0x55ffb4(0x133)][_0x55ffb4(0x17d)](_0x55ffb4(0x12a)),(_0x4eaf3b=this['_commandDisposable'])==null||_0x4eaf3b[_0x55ffb4(0x15f)]();}[_0x4af0c9(0xdf)](){var _0x288ea7=_0x4af0c9;this[_0x288ea7(0x133)]['next'](_0x288ea7(0x169)),this[_0x288ea7(0x16c)]();}},exports[_0x4af0c9(0x135)]=R([S(0x2,o[_0x4af0c9(0x15c)]),S(0x3,o[_0x4af0c9(0x168)](O)),S(0x4,o[_0x4af0c9(0x138)])],exports[_0x4af0c9(0x135)]);function A(){var _0x48c778=_0x4af0c9;const _0xb78643=p[_0x48c778(0x175)](exports['LiveShareController']),_0x15d815=p[_0x48c778(0x175)](o[_0x48c778(0xc7)]),_0x2c7074=p[_0x48c778(0x10b)](()=>_0x15d815[_0x48c778(0xed)](o['UniverInstanceType'][_0x48c778(0xfd)]),void 0x0,!0x1,[]),[_0xdc9271,_0x3bcba3]=f[_0x48c778(0x1a5)](null),[_0x22e74b,_0x144a53]=f[_0x48c778(0x1a5)](h['IDLE']),_0x152c21=f[_0x48c778(0x106)](null);return f[_0x48c778(0x109)](()=>(_0x2c7074&&_0xb78643['getLiveShareCoordinator'](_0x2c7074[_0x48c778(0x10a)]())['then'](_0x3206a7=>{var _0x4b109f=_0x48c778;_0x3bcba3(_0x3206a7),_0x152c21[_0x4b109f(0x171)]=_0x3206a7['status$'][_0x4b109f(0x174)](_0x81f8d2=>{_0x144a53(_0x81f8d2);});}),()=>{var _0x17f109=_0x48c778,_0x292350;(_0x292350=_0x152c21[_0x17f109(0x171)])==null||_0x292350[_0x17f109(0x197)](),_0x152c21[_0x17f109(0x171)]=null;}),[_0x2c7074,_0xb78643]),_0xdc9271?l[_0x48c778(0x176)](g['Dropdown'],{'align':'end','disabled':_0x22e74b===h[_0x48c778(0x163)],'className':_0x48c778(0x186),'overlay':l['jsx'](K,{'status':_0x22e74b,'coordinator':_0xdc9271}),'children':l[_0x48c778(0x176)](_0x48c778(0x120),{'className':g[_0x48c778(0xf5)](_0x48c778(0x124),{'univer-cursor-not-allowed':_0x22e74b===h[_0x48c778(0x163)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x22e74b!==h[_0x48c778(0x163)]}),'type':_0x48c778(0x120),'children':l[_0x48c778(0x176)](P,{'className':_0x48c778(0xe7)})})}):null;}function K(_0x3a2f33){var _0x45067e=_0x4af0c9;const {status:_0x227ff3,coordinator:_0x4f53c0}=_0x3a2f33;switch(_0x227ff3){case h['IDLE']:return l[_0x45067e(0x176)](z,{'coordinator':_0x4f53c0});case h[_0x45067e(0xde)]:return l[_0x45067e(0x176)](Q,{'coordinator':_0x4f53c0});case h['NOT_FOLLOWING']:return l[_0x45067e(0x176)](X,{'coordinator':_0x4f53c0});case h['OFFLINE']:return l[_0x45067e(0x176)](te,{});case h[_0x45067e(0x137)]:return l[_0x45067e(0x176)](ee,{'coordinator':_0x4f53c0});default:return null;}}function z(_0x505bce){var _0x345b99=_0x4af0c9;const {coordinator:_0xe70d89}=_0x505bce;return l['jsxs'](l['Fragment'],{'children':[l['jsx'](_0x345b99(0x1a1),{'className':_0x345b99(0xdc),'children':'Present\x20this\x20document'}),l['jsx'](g[_0x345b99(0x158)],{'onClick':()=>_0xe70d89['tryStartPresenting'](),'children':_0x345b99(0x15a)})]});}function Q(_0x1b9481){var _0x58fcfa=_0x4af0c9;const {coordinator:_0x32a8a9}=_0x1b9481;return l[_0x58fcfa(0x170)](l[_0x58fcfa(0x125)],{'children':[l['jsx']('div',{'className':_0x58fcfa(0xdc),'children':_0x58fcfa(0x157)}),l['jsx'](g[_0x58fcfa(0x158)],{'onClick':()=>_0x32a8a9[_0x58fcfa(0x11c)](),'children':_0x58fcfa(0xc0)})]});}function X(_0x4cd052){var _0xf875f6=_0x4af0c9;const {coordinator:_0x56a3e7}=_0x4cd052;return l[_0xf875f6(0x170)](l[_0xf875f6(0x125)],{'children':[l[_0xf875f6(0x176)](_0xf875f6(0x1a1),{'className':_0xf875f6(0xdc),'children':_0xf875f6(0xc3)}),l['jsx'](g[_0xf875f6(0x158)],{'variant':'text','onClick':()=>_0x56a3e7['startFollowing'](),'children':_0xf875f6(0x193)})]});}function ee(_0x1b121d){var _0x83e3ed=_0x4af0c9;const {coordinator:_0x45adf2}=_0x1b121d;return l[_0x83e3ed(0x170)](l['Fragment'],{'children':[l[_0x83e3ed(0x176)](_0x83e3ed(0x1a1),{'className':_0x83e3ed(0xdc),'children':_0x83e3ed(0x14e)}),l[_0x83e3ed(0x176)](g[_0x83e3ed(0x158)],{'variant':_0x83e3ed(0x167),'onClick':()=>_0x45adf2[_0x83e3ed(0x19e)](),'children':_0x83e3ed(0x100)})]});}function te(){var _0x205f23=_0x4af0c9;return l[_0x205f23(0x176)](l[_0x205f23(0x125)],{'children':_0x205f23(0x102)});}var ie=Object[_0x4af0c9(0x150)],ne=(_0x12c247,_0x5ce651,_0x2b53db,_0x54946d)=>{var _0x5a070b=_0x4af0c9;for(var _0x283bd0=_0x54946d>0x1?void 0x0:_0x54946d?ie(_0x5ce651,_0x2b53db):_0x5ce651,_0x1fa412=_0x12c247[_0x5a070b(0x14a)]-0x1,_0x3c332f;_0x1fa412>=0x0;_0x1fa412--)(_0x3c332f=_0x12c247[_0x1fa412])&&(_0x283bd0=_0x3c332f(_0x283bd0)||_0x283bd0);return _0x283bd0;},L=(_0xaac4d,_0xabea90)=>(_0xf5ff01,_0x14d47)=>_0xabea90(_0xf5ff01,_0x14d47,_0xaac4d);exports[_0x4af0c9(0xe6)]=class extends o[_0x4af0c9(0x13f)]{constructor(_0x551d5a,_0x457f47){var _0x59c34a=_0x4af0c9;super(),this[_0x59c34a(0x18b)]=_0x551d5a,this[_0x59c34a(0x118)]=_0x457f47,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x3d8725=_0x4af0c9;this[_0x3d8725(0xcf)](this[_0x3d8725(0x118)][_0x3d8725(0x140)](p[_0x3d8725(0x162)][_0x3d8725(0x10d)],()=>p['connectInjector'](A,this['_injector'])));}},exports[_0x4af0c9(0xe6)]=ne([L(0x0,o['Inject'](o['Injector'])),L(0x1,p[_0x4af0c9(0x128)])],exports[_0x4af0c9(0xe6)]);function _0x46d3(_0x26fc40,_0x522d07){var _0x245e2f=_0x245e();return _0x46d3=function(_0x46d32a,_0x2ad886){_0x46d32a=_0x46d32a-0xbf;var _0x354af3=_0x245e2f[_0x46d32a];return _0x354af3;},_0x46d3(_0x26fc40,_0x522d07);}var re=Object[_0x4af0c9(0x148)],se=Object[_0x4af0c9(0x150)],oe=(_0x5bc504,_0x3fc4d6,_0x395f2a)=>_0x3fc4d6 in _0x5bc504?re(_0x5bc504,_0x3fc4d6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x395f2a}):_0x5bc504[_0x3fc4d6]=_0x395f2a,ae=(_0x289c72,_0x3e5804,_0x22317e,_0x12776a)=>{var _0x158f51=_0x4af0c9;for(var _0x56812c=_0x12776a>0x1?void 0x0:_0x12776a?se(_0x3e5804,_0x22317e):_0x3e5804,_0x298a52=_0x289c72[_0x158f51(0x14a)]-0x1,_0x21975c;_0x298a52>=0x0;_0x298a52--)(_0x21975c=_0x289c72[_0x298a52])&&(_0x56812c=_0x21975c(_0x56812c)||_0x56812c);return _0x56812c;},N=(_0x79e0cb,_0x4a762e)=>(_0x493aab,_0x35dc2d)=>_0x4a762e(_0x493aab,_0x35dc2d,_0x79e0cb),T=(_0x14e418,_0x527918,_0x2d202f)=>oe(_0x14e418,typeof _0x527918!=_0x4af0c9(0x165)?_0x527918+'':_0x527918,_0x2d202f);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x4af0c9(0xd4)]=class extends o['Plugin']{constructor(_0x3cb663=x,_0x33cd89,_0x49c591){var _0x23ea68=_0x4af0c9;super(),this['_config']=_0x3cb663,this[_0x23ea68(0x18b)]=_0x33cd89,this[_0x23ea68(0xe8)]=_0x49c591;const {..._0x34a223}=o[_0x23ea68(0x1a0)]({},x,this[_0x23ea68(0x122)]);this['_configService'][_0x23ea68(0x117)]($,_0x34a223);}[_0x4af0c9(0x13d)](){var _0x159529=_0x4af0c9;o['registerDependencies'](this[_0x159529(0x18b)],o[_0x159529(0xf2)]([[O],[exports[_0x159529(0xd7)]],[E],[exports['DesktopLiveShareController']]],this[_0x159529(0x122)]['override'])),o['touchDependencies'](this[_0x159529(0x18b)],[[E]]);}[_0x4af0c9(0xd1)](){var _0x46f280=_0x4af0c9;o['touchDependencies'](this[_0x46f280(0x18b)],[[exports[_0x46f280(0xe6)]]]);}},T(exports[_0x4af0c9(0xd4)],'type',o['UniverInstanceType'][_0x4af0c9(0xf6)]),T(exports[_0x4af0c9(0xd4)],_0x4af0c9(0x17a),le),exports[_0x4af0c9(0xd4)]=ae([o[_0x4af0c9(0x14f)](m[_0x4af0c9(0x142)]),N(0x1,o[_0x4af0c9(0x168)](o['Injector'])),N(0x2,o[_0x4af0c9(0x15c)])],exports[_0x4af0c9(0xd4)]),exports['LiveShare']=A,exports[_0x4af0c9(0x113)]=O,exports[_0x4af0c9(0xe2)]=h;
1
+ 'use strict';var _0x1ca2b5=_0x4c69;(function(_0x565f36,_0x196611){var _0x3ba70c=_0x4c69,_0xe4bc65=_0x565f36();while(!![]){try{var _0x1734b8=parseInt(_0x3ba70c(0x1da))/0x1+-parseInt(_0x3ba70c(0x20d))/0x2+parseInt(_0x3ba70c(0x1ab))/0x3+-parseInt(_0x3ba70c(0x184))/0x4+parseInt(_0x3ba70c(0x1de))/0x5*(parseInt(_0x3ba70c(0x1a1))/0x6)+-parseInt(_0x3ba70c(0x237))/0x7*(parseInt(_0x3ba70c(0x21f))/0x8)+parseInt(_0x3ba70c(0x214))/0x9;if(_0x1734b8===_0x196611)break;else _0xe4bc65['push'](_0xe4bc65['shift']());}catch(_0x4e72dd){_0xe4bc65['push'](_0xe4bc65['shift']());}}}(_0x5d2c,0x5a12f));var U=Object[_0x1ca2b5(0x185)],F=(_0x35db83,_0xcc967a,_0x59ac7a)=>_0xcc967a in _0x35db83?U(_0x35db83,_0xcc967a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x59ac7a}):_0x35db83[_0xcc967a]=_0x59ac7a,v=(_0x1253da,_0x3ba618,_0x37f3e2)=>F(_0x1253da,typeof _0x3ba618!=_0x1ca2b5(0x21a)?_0x3ba618+'':_0x3ba618,_0x37f3e2);Object[_0x1ca2b5(0x185)](exports,Symbol[_0x1ca2b5(0x1b9)],{'value':_0x1ca2b5(0x1ef)});function _0x4c69(_0x145e6e,_0x50c68f){var _0x5d2ceb=_0x5d2c();return _0x4c69=function(_0x4c6977,_0x188199){_0x4c6977=_0x4c6977-0x167;var _0x54e83a=_0x5d2ceb[_0x4c6977];return _0x54e83a;},_0x4c69(_0x145e6e,_0x50c68f);}const m=require('@univerjs-pro/collaboration-client'),o=require(_0x1ca2b5(0x1a9)),C=require(_0x1ca2b5(0x1c9)),w=require('@univerjs/sheets-ui'),p=require(_0x1ca2b5(0x1d3)),l=require(_0x1ca2b5(0x1ad)),g=require(_0x1ca2b5(0x205)),f=require(_0x1ca2b5(0x208)),_=require(_0x1ca2b5(0x242)),D=require(_0x1ca2b5(0x1f0)),b=require(_0x1ca2b5(0x1c7)),$=_0x1ca2b5(0x18e),x={};class O extends o[_0x1ca2b5(0x1df)]{constructor(){var _0x32d9aa=_0x1ca2b5;super(...arguments),v(this,_0x32d9aa(0x212),new Set()),v(this,_0x32d9aa(0x1a3),new Set());}['registerSharedOperation'](_0x34cfbf){var _0x397e84=_0x1ca2b5;return this['_sharedOperations']['add'](_0x34cfbf),o['toDisposable'](()=>this['_sharedOperations'][_0x397e84(0x1a7)](_0x34cfbf));}[_0x1ca2b5(0x21b)](_0x1c814e){var _0x5523e0=_0x1ca2b5;return this[_0x5523e0(0x1a3)]['add'](_0x1c814e),o['toDisposable'](()=>this[_0x5523e0(0x1a3)][_0x5523e0(0x1a7)](_0x1c814e));}[_0x1ca2b5(0x24b)](_0x346194){var _0x3bd888=_0x1ca2b5;return this[_0x3bd888(0x212)]['has'](_0x346194);}[_0x1ca2b5(0x17b)](_0x50f4c3){var _0x7add91=_0x1ca2b5;return Array[_0x7add91(0x1e7)](this[_0x7add91(0x1a3)])['map'](_0xa3cabf=>_0xa3cabf(_0x50f4c3));}}var H=Object[_0x1ca2b5(0x209)],V=(_0x186aac,_0xfb0ae4,_0x20433b,_0x1dd9b0)=>{var _0x3ae611=_0x1ca2b5;for(var _0x2351c0=_0x1dd9b0>0x1?void 0x0:_0x1dd9b0?H(_0xfb0ae4,_0x20433b):_0xfb0ae4,_0x54c58f=_0x186aac[_0x3ae611(0x1d7)]-0x1,_0x495251;_0x54c58f>=0x0;_0x54c58f--)(_0x495251=_0x186aac[_0x54c58f])&&(_0x2351c0=_0x495251(_0x2351c0)||_0x2351c0);return _0x2351c0;},k=(_0x314d37,_0x5c6415)=>(_0xd9666b,_0x409c18)=>_0x5c6415(_0xd9666b,_0x409c18,_0x314d37);let E=class extends o[_0x1ca2b5(0x1df)]{constructor(_0x50177a){var _0x18a69e=_0x1ca2b5;super(),this['_liveShareService']=_0x50177a,this[_0x18a69e(0x23c)]();}['_init'](){var _0x1825e7=_0x1ca2b5;[w[_0x1825e7(0x1fa)]['id'],w[_0x1825e7(0x1e6)]['id'],C[_0x1825e7(0x245)]['id']][_0x1825e7(0x1d9)](_0x1ea1d8=>{var _0x56afae=_0x1825e7;this['disposeWithMe'](this[_0x56afae(0x18f)][_0x56afae(0x1bf)](_0x1ea1d8));});}};E=V([k(0x0,o[_0x1ca2b5(0x1e1)](O))],E);var u=function(){var _0x20f87c=_0x1ca2b5;return u=Object[_0x20f87c(0x217)]||function(_0x329e69){var _0x5521cb=_0x20f87c;for(var _0xe85b0e,_0xac0632=0x1,_0xd27667=arguments[_0x5521cb(0x1d7)];_0xac0632<_0xd27667;_0xac0632++){_0xe85b0e=arguments[_0xac0632];for(var _0x25e334 in _0xe85b0e)Object[_0x5521cb(0x23b)]['hasOwnProperty'][_0x5521cb(0x1b0)](_0xe85b0e,_0x25e334)&&(_0x329e69[_0x25e334]=_0xe85b0e[_0x25e334]);}return _0x329e69;},u[_0x20f87c(0x1aa)](this,arguments);},M=function(_0x1b78d5,_0x55440b){var _0x1a8dce=_0x1ca2b5,_0x20aff3={};for(var _0x4fae88 in _0x1b78d5)Object[_0x1a8dce(0x23b)][_0x1a8dce(0x238)][_0x1a8dce(0x1b0)](_0x1b78d5,_0x4fae88)&&_0x55440b[_0x1a8dce(0x188)](_0x4fae88)<0x0&&(_0x20aff3[_0x4fae88]=_0x1b78d5[_0x4fae88]);if(_0x1b78d5!=null&&typeof Object[_0x1a8dce(0x1af)]=='function'){for(var _0x16ca91=0x0,_0x4fae88=Object[_0x1a8dce(0x1af)](_0x1b78d5);_0x16ca91<_0x4fae88[_0x1a8dce(0x1d7)];_0x16ca91++)_0x55440b['indexOf'](_0x4fae88[_0x16ca91])<0x0&&Object[_0x1a8dce(0x23b)][_0x1a8dce(0x243)][_0x1a8dce(0x1b0)](_0x1b78d5,_0x4fae88[_0x16ca91])&&(_0x20aff3[_0x4fae88[_0x16ca91]]=_0x1b78d5[_0x4fae88[_0x16ca91]]);}return _0x20aff3;},j=f[_0x1ca2b5(0x172)](function(_0x2abf13,_0x50c5e9){var _0x46f0dc=_0x1ca2b5,_0x32bcce=_0x2abf13[_0x46f0dc(0x1be)],_0x35f2ce=_0x2abf13['id'],_0x2f3332=_0x2abf13['className'],_0x304804=_0x2abf13['extend'],_0x2161f3=M(_0x2abf13,[_0x46f0dc(0x1be),'id','className',_0x46f0dc(0x1e9)]),_0x4a7817=_0x46f0dc(0x1ee)[_0x46f0dc(0x16d)](_0x35f2ce,'\x20')[_0x46f0dc(0x16d)](_0x2f3332||'')['trim'](),_0x137ec4=f[_0x46f0dc(0x1ba)]('_'['concat'](G()));return y(_0x32bcce,''[_0x46f0dc(0x16d)](_0x35f2ce),{'defIds':_0x32bcce[_0x46f0dc(0x1bc)],'idSuffix':_0x137ec4[_0x46f0dc(0x247)]},u({'ref':_0x50c5e9,'className':_0x4a7817},_0x2161f3),_0x304804);});function y(_0x3632c5,_0x397f36,_0x63a24b,_0x11601d,_0x370a4f){var _0x84f01c=_0x1ca2b5;return f[_0x84f01c(0x250)](_0x3632c5[_0x84f01c(0x17c)],u(u({'key':_0x397f36},q(_0x3632c5,_0x63a24b,_0x370a4f)),_0x11601d),(W(_0x3632c5,_0x63a24b)['children']||[])[_0x84f01c(0x239)](function(_0x3f6b35,_0x23f4d9){var _0x13b297=_0x84f01c;return y(_0x3f6b35,''[_0x13b297(0x16d)](_0x397f36,'-')[_0x13b297(0x16d)](_0x3632c5['tag'],'-')[_0x13b297(0x16d)](_0x23f4d9),_0x63a24b,void 0x0,_0x370a4f);}));}function q(_0x26c02b,_0x80f0b9,_0x587c33){var _0x57dfb2=_0x1ca2b5,_0x4d8f74=u({},_0x26c02b[_0x57dfb2(0x1b2)]);_0x587c33!=null&&_0x587c33[_0x57dfb2(0x23e)]&&_0x4d8f74[_0x57dfb2(0x1a0)]==='colorChannel1'&&(_0x4d8f74[_0x57dfb2(0x1a0)]=_0x587c33[_0x57dfb2(0x23e)]),_0x26c02b[_0x57dfb2(0x17c)]===_0x57dfb2(0x187)&&_0x4d8f74['id']&&(_0x4d8f74['id']=_0x4d8f74['id']+_0x80f0b9['idSuffix']),Object['entries'](_0x4d8f74)[_0x57dfb2(0x1d9)](function(_0x27b889){var _0x54ab6d=_0x57dfb2,_0xc00e2b=_0x27b889[0x0],_0x5a2fe3=_0x27b889[0x1];_0xc00e2b==='mask'&&typeof _0x5a2fe3==_0x54ab6d(0x203)&&(_0x4d8f74[_0xc00e2b]=_0x5a2fe3[_0x54ab6d(0x1ff)](/url\(#(.*)\)/,_0x54ab6d(0x1f8)[_0x54ab6d(0x16d)](_0x80f0b9['idSuffix'],')')));});var _0x403ec3=_0x80f0b9['defIds'];return!_0x403ec3||_0x403ec3['length']===0x0||(_0x26c02b[_0x57dfb2(0x17c)]===_0x57dfb2(0x1d6)&&_0x4d8f74[_0x57dfb2(0x20b)]&&(_0x4d8f74[_0x57dfb2(0x20b)]=_0x4d8f74[_0x57dfb2(0x20b)]+_0x80f0b9['idSuffix']),Object[_0x57dfb2(0x200)](_0x4d8f74)[_0x57dfb2(0x1d9)](function(_0x1ae02b){var _0x453d36=_0x57dfb2,_0x324659=_0x1ae02b[0x0],_0x3fa241=_0x1ae02b[0x1];typeof _0x3fa241==_0x453d36(0x203)&&(_0x4d8f74[_0x324659]=_0x3fa241[_0x453d36(0x1ff)](/url\(#(.*)\)/,_0x453d36(0x1f8)[_0x453d36(0x16d)](_0x80f0b9[_0x453d36(0x17e)],')')));})),_0x4d8f74;}function W(_0x2b3534,_0x304d57){var _0x10a934=_0x1ca2b5,_0x2d4d51,_0x5a84e5=_0x304d57[_0x10a934(0x1bc)];return!_0x5a84e5||_0x5a84e5[_0x10a934(0x1d7)]===0x0?_0x2b3534:_0x2b3534[_0x10a934(0x17c)]==='defs'&&(!((_0x2d4d51=_0x2b3534[_0x10a934(0x196)])===null||_0x2d4d51===void 0x0)&&_0x2d4d51[_0x10a934(0x1d7)])?u(u({},_0x2b3534),{'children':_0x2b3534[_0x10a934(0x196)][_0x10a934(0x239)](function(_0x4d2f64){var _0x57e10b=_0x10a934;return typeof _0x4d2f64['attrs']['id']=='string'&&_0x5a84e5&&_0x5a84e5[_0x57e10b(0x232)](_0x4d2f64[_0x57e10b(0x1b2)]['id'])?u(u({},_0x4d2f64),{'attrs':u(u({},_0x4d2f64['attrs']),{'id':_0x4d2f64[_0x57e10b(0x1b2)]['id']+_0x304d57[_0x57e10b(0x17e)]})}):_0x4d2f64;})}):_0x2b3534;}function G(){var _0x35d2c4=_0x1ca2b5;return Math[_0x35d2c4(0x22c)]()[_0x35d2c4(0x1f5)](0x24)['substring'](0x2,0x8);}j[_0x1ca2b5(0x24f)]=_0x1ca2b5(0x1bb);var B={'tag':_0x1ca2b5(0x226),'attrs':{'xmlns':_0x1ca2b5(0x17a),'fill':'none','viewBox':_0x1ca2b5(0x18b),'width':'1em','height':_0x1ca2b5(0x17d)},'children':[{'tag':_0x1ca2b5(0x24c),'attrs':{'fill':_0x1ca2b5(0x24e),'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':_0x1ca2b5(0x24c),'attrs':{'fill':'currentColor','d':_0x1ca2b5(0x20a),'fillRule':_0x1ca2b5(0x1c6),'clipRule':_0x1ca2b5(0x1c6)}}]},P=f['forwardRef'](function(_0x234503,_0x5d9201){var _0x4c74b6=_0x1ca2b5;return f[_0x4c74b6(0x250)](j,Object['assign']({},_0x234503,{'id':_0x4c74b6(0x1fe),'ref':_0x5d9201,'icon':B}));});P[_0x1ca2b5(0x24f)]='LiveShareIcon';var Y=Object[_0x1ca2b5(0x209)],R=(_0x35acf0,_0x4db777,_0x47fd2b,_0x13fbbe)=>{var _0x501199=_0x1ca2b5;for(var _0x33c13f=_0x13fbbe>0x1?void 0x0:_0x13fbbe?Y(_0x4db777,_0x47fd2b):_0x4db777,_0x537da5=_0x35acf0[_0x501199(0x1d7)]-0x1,_0x25ff9c;_0x537da5>=0x0;_0x537da5--)(_0x25ff9c=_0x35acf0[_0x537da5])&&(_0x33c13f=_0x25ff9c(_0x33c13f)||_0x33c13f);return _0x33c13f;},S=(_0x410220,_0x15791d)=>(_0x1ec5b5,_0x15bca2)=>_0x15791d(_0x1ec5b5,_0x15bca2,_0x410220);exports[_0x1ca2b5(0x18a)]=class extends o[_0x1ca2b5(0x235)]{constructor(_0x2bf10d,_0x26ad31,_0x15e71f){var _0x52d65b=_0x1ca2b5;super(),v(this,_0x52d65b(0x176),new Map()),(this[_0x52d65b(0x1ae)]=_0x2bf10d,this[_0x52d65b(0x234)]=_0x26ad31,this[_0x52d65b(0x171)]=_0x15e71f,this[_0x52d65b(0x23c)]());}async['getLiveShareCoordinator'](_0x355bd7){var _0x31c201=_0x1ca2b5;return this[_0x31c201(0x176)][_0x31c201(0x218)](_0x355bd7)||await this[_0x31c201(0x1f6)](_0x355bd7),this[_0x31c201(0x176)][_0x31c201(0x1fb)](_0x355bd7);}['_init'](){var _0x384d7c=_0x1ca2b5;this[_0x384d7c(0x1ae)]['getTypeOfUnitAdded$'](o[_0x384d7c(0x216)][_0x384d7c(0x206)])[_0x384d7c(0x198)](b[_0x384d7c(0x177)](this[_0x384d7c(0x173)]))[_0x384d7c(0x1e8)](async _0x292d24=>{var _0xae7f2a=_0x384d7c;const _0xd91c06=_0x292d24[_0xae7f2a(0x195)]();this[_0xae7f2a(0x176)][_0xae7f2a(0x218)](_0xd91c06)||this[_0xae7f2a(0x1f6)](_0xd91c06);}),this[_0x384d7c(0x1ae)]['getTypeOfUnitDisposed$'](o[_0x384d7c(0x216)][_0x384d7c(0x206)])['pipe'](b[_0x384d7c(0x177)](this[_0x384d7c(0x173)]))['subscribe'](_0x482775=>{var _0x667d42=_0x384d7c;const _0x82836b=_0x482775[_0x667d42(0x195)](),_0x3e9b11=this['_entities'][_0x667d42(0x1fb)](_0x82836b);_0x3e9b11==null||_0x3e9b11[_0x667d42(0x1a2)]();});}async[_0x1ca2b5(0x1f6)](_0x2de61c){var _0x486d93=_0x1ca2b5;const _0x3eb7b8=await this['_collabSessionService'][_0x486d93(0x1a5)](_0x2de61c),_0x4a53e8=this['_injector'][_0x486d93(0x253)](exports[_0x486d93(0x221)],_0x2de61c,_0x3eb7b8);return _0x4a53e8['init'](),this[_0x486d93(0x176)][_0x486d93(0x1db)](_0x2de61c,_0x4a53e8),_0x4a53e8;}},exports[_0x1ca2b5(0x18a)]=R([S(0x0,o[_0x1ca2b5(0x213)]),S(0x1,o['Inject'](o[_0x1ca2b5(0x1a4)])),S(0x2,o[_0x1ca2b5(0x1e1)](m[_0x1ca2b5(0x167)]))],exports[_0x1ca2b5(0x18a)]);var h=(_0x139ef8=>(_0x139ef8['OFFLINE']=_0x1ca2b5(0x233),_0x139ef8[_0x1ca2b5(0x236)]=_0x1ca2b5(0x1dd),_0x139ef8[_0x1ca2b5(0x240)]='following',_0x139ef8['NOT_FOLLOWING']=_0x1ca2b5(0x1ce),_0x139ef8['PRESENTING']='presenting',_0x139ef8))(h||{});const Z=_0x1ca2b5(0x19e),J=0xc8;exports['LiveShareCoordinator']=class extends o[_0x1ca2b5(0x235)]{constructor(_0x4f31b8,_0x2ee93d,_0x576c75,_0x2ba8bf,_0x3ad18c){var _0x3805e0=_0x1ca2b5;super(),v(this,_0x3805e0(0x189),new D[(_0x3805e0(0x244))](_0x3805e0(0x1dd))),v(this,_0x3805e0(0x1b6),this[_0x3805e0(0x189)]['asObservable']()),v(this,_0x3805e0(0x23c),!0x1),v(this,'_commandDisposable',null),v(this,_0x3805e0(0x24a),null),(this[_0x3805e0(0x23f)]=_0x4f31b8,this[_0x3805e0(0x225)]=_0x2ee93d,this[_0x3805e0(0x1ca)]=_0x576c75,this['_liveShareService']=_0x2ba8bf,this[_0x3805e0(0x1c3)]=_0x3ad18c);}get[_0x1ca2b5(0x211)](){var _0x5c6685=_0x1ca2b5;return this[_0x5c6685(0x189)][_0x5c6685(0x18c)]();}['dispose'](){var _0x49d8e0=_0x1ca2b5,_0x31f3b3;(_0x31f3b3=this[_0x49d8e0(0x1a8)])==null||_0x31f3b3['dispose'](),this[_0x49d8e0(0x189)][_0x49d8e0(0x22d)](_0x49d8e0(0x1dd)),this[_0x49d8e0(0x189)][_0x49d8e0(0x1c8)]();}['init'](){var _0x2b189d=_0x1ca2b5;this['_init']||(this[_0x2b189d(0x23c)]=!0x0,this[_0x2b189d(0x225)][_0x2b189d(0x210)][_0x2b189d(0x198)](b[_0x2b189d(0x177)](this['dispose$']))['subscribe'](_0x7f2d65=>{var _0x195f89=_0x2b189d;switch(_0x7f2d65){case m['SessionStatus'][_0x195f89(0x193)]:this[_0x195f89(0x19a)]();break;case m[_0x195f89(0x1e3)]['ONLINE']:this[_0x195f89(0x228)]();break;}}),this[_0x2b189d(0x225)][_0x2b189d(0x1cc)][_0x2b189d(0x198)](b['takeUntil'](this[_0x2b189d(0x173)]))['subscribe'](_0x48f280=>{var _0x5e253d=_0x2b189d;const {eventID:_0x2deb61}=_0x48f280;switch(_0x2deb61){case _[_0x5e253d(0x227)][_0x5e253d(0x186)]:this[_0x5e253d(0x169)](_0x48f280);break;case _['CollaborationEvent'][_0x5e253d(0x19c)]:this[_0x5e253d(0x202)](_0x48f280);break;case _[_0x5e253d(0x227)][_0x5e253d(0x197)]:this[_0x5e253d(0x207)]();break;case _[_0x5e253d(0x227)]['NEW_CHANGESETS']:this[_0x5e253d(0x251)](_0x48f280);break;}}));}[_0x1ca2b5(0x1cd)](){var _0xc8681e=_0x1ca2b5;this[_0xc8681e(0x225)][_0xc8681e(0x194)]({'eventID':_[_0xc8681e(0x227)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0xc8681e(0x23f)],'userID':this['_collabSession'][_0xc8681e(0x1f2)]()}},this[_0xc8681e(0x23f)]);}[_0x1ca2b5(0x20e)](){var _0x3d1c0f=_0x1ca2b5;this[_0x3d1c0f(0x211)]==='presenting'&&(this[_0x3d1c0f(0x189)]['next'](_0x3d1c0f(0x1dd)),this['_collabSession'][_0x3d1c0f(0x194)]({'eventID':_[_0x3d1c0f(0x227)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x3d1c0f(0x23f)]}},this[_0x3d1c0f(0x23f)]));}[_0x1ca2b5(0x1cf)](){var _0x564662=_0x1ca2b5;this[_0x564662(0x211)]===_0x564662(0x1ce)&&(this[_0x564662(0x189)][_0x564662(0x22d)]('following'),this[_0x564662(0x1b8)]());}[_0x1ca2b5(0x23d)](){var _0x301976=_0x1ca2b5;this['_status']===_0x301976(0x224)&&this['_stopFollowing']();}[_0x1ca2b5(0x169)](_0x155817){var _0xcb78cd=_0x1ca2b5;const {presenter:_0x4b5597}=_0x155817['data'],_0x170367=this['_collabSession'][_0xcb78cd(0x1f2)]();this[_0xcb78cd(0x24a)]=_0x4b5597,_0x4b5597===_0x170367?(this[_0xcb78cd(0x229)](),this[_0xcb78cd(0x1eb)]()):this[_0xcb78cd(0x211)]!=='not-following'&&(this[_0xcb78cd(0x1ac)](),this[_0xcb78cd(0x1b8)]());}['_fetchOperations'](){var _0x469bef=_0x1ca2b5;const _0x22e5fe={'eventID':_[_0x469bef(0x227)][_0x469bef(0x1fc)]};this[_0x469bef(0x225)][_0x469bef(0x194)](_0x22e5fe,this[_0x469bef(0x23f)]);}['_handleTerminate'](){var _0x3ac3d3=_0x1ca2b5;this[_0x3ac3d3(0x24a)]=null,this[_0x3ac3d3(0x211)]!==_0x3ac3d3(0x248)&&this[_0x3ac3d3(0x24d)]();}[_0x1ca2b5(0x251)](_0x129ec6){var _0x144e1c=_0x1ca2b5;if(this['_status']===_0x144e1c(0x224)&&this[_0x144e1c(0x24a)]===_0x129ec6[_0x144e1c(0x20c)][_0x144e1c(0x1d4)]){const _0x507eb7=_[_0x144e1c(0x181)](_0x129ec6[_0x144e1c(0x20c)])[_0x144e1c(0x191)][_0x144e1c(0x231)]()[_0x144e1c(0x201)](_0x210582=>_0x210582['id']===C[_0x144e1c(0x1d2)]['id']);if(_0x507eb7){const _0x3f3a23=_0x507eb7[_0x144e1c(0x1f4)][_0x144e1c(0x1bd)],_0x5b166d=_0x507eb7['params'][_0x144e1c(0x1ed)]['id'];setTimeout(()=>{var _0xef7a6f=_0x144e1c;this[_0xef7a6f(0x1c3)]['executeCommand'](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x3f3a23,'subUnitId':_0x5b166d},{'fromCollab':!0x0});});}}}[_0x1ca2b5(0x1eb)](){var _0xa60888=_0x1ca2b5;this['_status$'][_0xa60888(0x22d)]('presenting');const _0x4f583d=new Map(),_0x16b6bd=this[_0xa60888(0x1a8)]=new o[(_0xa60888(0x1f3))]();_0x16b6bd[_0xa60888(0x1b7)](o[_0xa60888(0x20f)](()=>{var _0x589baa=_0xa60888;_0x4f583d[_0x589baa(0x1d9)](_0x16871d=>_0x16871d['complete']()),_0x4f583d[_0x589baa(0x1d5)]();})),_0x16b6bd[_0xa60888(0x1b7)](this[_0xa60888(0x1c3)][_0xa60888(0x1cb)](_0x520449=>{var _0x513962=_0xa60888,_0xde70b4;if(_0x520449[_0x513962(0x1dc)]!==o[_0x513962(0x1f1)][_0x513962(0x199)]||!this[_0x513962(0x18f)][_0x513962(0x24b)](_0x520449['id']))return;const {id:_0x364f6c}=_0x520449;let _0x21bcfa;_0x4f583d[_0x513962(0x218)](_0x364f6c)?_0x21bcfa=_0x4f583d[_0x513962(0x1fb)](_0x364f6c):(_0x21bcfa=new D[(_0x513962(0x1e5))](),_0x4f583d[_0x513962(0x1db)](_0x364f6c,_0x21bcfa),_0x21bcfa[_0x513962(0x198)](b['throttleTime']((_0xde70b4=this[_0x513962(0x1ca)][_0x513962(0x21e)](Z))!=null?_0xde70b4:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1af3b1=>{var _0x27a356=_0x513962;this[_0x27a356(0x225)]['send']({'eventID':_['CollaborationEvent'][_0x27a356(0x19c)],'data':{'unitID':this[_0x27a356(0x23f)],'operations':{[_0x1af3b1['id']]:{'id':_0x1af3b1['id'],'params':JSON[_0x27a356(0x215)](_0x1af3b1['params'])}}}},this[_0x27a356(0x23f)]);})),_0x21bcfa[_0x513962(0x22d)](_0x520449);})),this['_liveShareService'][_0xa60888(0x17b)](this[_0xa60888(0x23f)])['forEach'](_0x23a232=>this['_collabSession'][_0xa60888(0x194)]({'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xa60888(0x23f)],'operations':{[_0x23a232['id']]:{'id':_0x23a232['id'],'params':JSON[_0xa60888(0x215)](_0x23a232[_0xa60888(0x1f4)])}}}},this[_0xa60888(0x23f)]));}[_0x1ca2b5(0x1ac)](){var _0x108f0c=_0x1ca2b5,_0x2d5846;this[_0x108f0c(0x189)][_0x108f0c(0x22d)](_0x108f0c(0x1dd)),(_0x2d5846=this[_0x108f0c(0x1a8)])==null||_0x2d5846[_0x108f0c(0x1a2)](),this[_0x108f0c(0x1a8)]=null;}[_0x1ca2b5(0x1b8)](){var _0x50fc34=_0x1ca2b5,_0x30664f;(_0x30664f=this[_0x50fc34(0x1a8)])==null||_0x30664f[_0x50fc34(0x1a2)](),this[_0x50fc34(0x189)][_0x50fc34(0x22d)]('following');}[_0x1ca2b5(0x24d)](){var _0x48ed49=_0x1ca2b5,_0x19020b;this[_0x48ed49(0x189)][_0x48ed49(0x22d)](_0x48ed49(0x1dd)),(_0x19020b=this['_commandDisposable'])==null||_0x19020b[_0x48ed49(0x1a2)](),this['_commandDisposable']=null;}[_0x1ca2b5(0x229)](){var _0x50d0bb=_0x1ca2b5,_0x76f2c9;this['_status$'][_0x50d0bb(0x22d)](_0x50d0bb(0x1ce)),(_0x76f2c9=this[_0x50d0bb(0x1a8)])==null||_0x76f2c9[_0x50d0bb(0x1a2)]();}[_0x1ca2b5(0x202)](_0x3e4087){var _0x2c36e0=_0x1ca2b5;if([_0x2c36e0(0x248),_0x2c36e0(0x1ce),_0x2c36e0(0x233)][_0x2c36e0(0x232)](this['_status'])||!_0x3e4087[_0x2c36e0(0x20c)][_0x2c36e0(0x16b)]||_0x3e4087[_0x2c36e0(0x20c)][_0x2c36e0(0x16b)]===this[_0x2c36e0(0x225)][_0x2c36e0(0x1f2)]())return;this[_0x2c36e0(0x211)]==='idle'&&this[_0x2c36e0(0x1b8)]();const _0x171fd0=_0x3e4087[_0x2c36e0(0x20c)][_0x2c36e0(0x19d)];Object[_0x2c36e0(0x246)](_0x171fd0)['forEach'](_0xa23b18=>{var _0x4adf33=_0x2c36e0;this['_commandService'][_0x4adf33(0x17f)](_0xa23b18['id'],_0xa23b18[_0x4adf33(0x1f4)]?JSON['parse'](_0xa23b18['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0xbe8e2d=_0x1ca2b5,_0x1de619;this[_0xbe8e2d(0x189)]['next'](_0xbe8e2d(0x233)),(_0x1de619=this[_0xbe8e2d(0x1a8)])==null||_0x1de619['dispose']();}[_0x1ca2b5(0x228)](){var _0x5f39fe=_0x1ca2b5;this[_0x5f39fe(0x189)][_0x5f39fe(0x22d)](_0x5f39fe(0x1dd)),this[_0x5f39fe(0x204)]();}},exports[_0x1ca2b5(0x221)]=R([S(0x2,o['IConfigService']),S(0x3,o['Inject'](O)),S(0x4,o['ICommandService'])],exports[_0x1ca2b5(0x221)]);function A(){var _0x302e18=_0x1ca2b5;const _0x27110f=p['useDependency'](exports[_0x302e18(0x18a)]),_0x4419f9=p[_0x302e18(0x179)](o[_0x302e18(0x213)]),_0x2d8213=p[_0x302e18(0x16a)](()=>_0x4419f9[_0x302e18(0x1d8)](o[_0x302e18(0x216)][_0x302e18(0x206)]),void 0x0,!0x1,[]),[_0x26a11a,_0x13cf47]=f[_0x302e18(0x230)](null),[_0x296c4e,_0x3c7ca1]=f[_0x302e18(0x230)](h['IDLE']),_0x34c91c=f[_0x302e18(0x1ba)](null);return f[_0x302e18(0x19f)](()=>(_0x2d8213&&_0x27110f[_0x302e18(0x249)](_0x2d8213[_0x302e18(0x195)]())[_0x302e18(0x241)](_0x4aa37a=>{var _0x199182=_0x302e18;_0x13cf47(_0x4aa37a),_0x34c91c[_0x199182(0x247)]=_0x4aa37a[_0x199182(0x1b6)][_0x199182(0x1e8)](_0x2a743b=>{_0x3c7ca1(_0x2a743b);});}),()=>{var _0x4cdec3=_0x302e18,_0x857a62;(_0x857a62=_0x34c91c[_0x4cdec3(0x247)])==null||_0x857a62['unsubscribe'](),_0x34c91c[_0x4cdec3(0x247)]=null;}),[_0x2d8213,_0x27110f]),_0x26a11a?l[_0x302e18(0x18d)](g[_0x302e18(0x22a)],{'align':_0x302e18(0x1b5),'disabled':_0x296c4e===h['OFFLINE'],'className':_0x302e18(0x1a6),'overlay':l[_0x302e18(0x18d)](K,{'status':_0x296c4e,'coordinator':_0x26a11a}),'children':l[_0x302e18(0x18d)](_0x302e18(0x22f),{'className':g[_0x302e18(0x1c2)](_0x302e18(0x1e2),{'univer-cursor-not-allowed':_0x296c4e===h[_0x302e18(0x193)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x296c4e!==h['OFFLINE']}),'type':'button','children':l[_0x302e18(0x18d)](P,{'className':_0x302e18(0x1c0)})})}):null;}function K(_0x58da69){var _0x1b0594=_0x1ca2b5;const {status:_0x3e419c,coordinator:_0x1e626b}=_0x58da69;switch(_0x3e419c){case h[_0x1b0594(0x236)]:return l[_0x1b0594(0x18d)](z,{'coordinator':_0x1e626b});case h[_0x1b0594(0x240)]:return l[_0x1b0594(0x18d)](Q,{'coordinator':_0x1e626b});case h[_0x1b0594(0x1ec)]:return l['jsx'](X,{'coordinator':_0x1e626b});case h[_0x1b0594(0x193)]:return l['jsx'](te,{});case h['PRESENTING']:return l[_0x1b0594(0x18d)](ee,{'coordinator':_0x1e626b});default:return null;}}function z(_0x2c59c7){var _0x2488f3=_0x1ca2b5;const {coordinator:_0x53eaa5}=_0x2c59c7;return l[_0x2488f3(0x222)](l[_0x2488f3(0x16c)],{'children':[l[_0x2488f3(0x18d)]('div',{'className':_0x2488f3(0x223),'children':_0x2488f3(0x168)}),l[_0x2488f3(0x18d)](g[_0x2488f3(0x170)],{'onClick':()=>_0x53eaa5[_0x2488f3(0x1cd)](),'children':_0x2488f3(0x1c1)})]});}function Q(_0x4ffb57){var _0x7fd885=_0x1ca2b5;const {coordinator:_0x484d0b}=_0x4ffb57;return l['jsxs'](l[_0x7fd885(0x16c)],{'children':[l[_0x7fd885(0x18d)](_0x7fd885(0x174),{'className':_0x7fd885(0x223),'children':_0x7fd885(0x16e)}),l[_0x7fd885(0x18d)](g[_0x7fd885(0x170)],{'onClick':()=>_0x484d0b['stopFollowing'](),'children':_0x7fd885(0x182)})]});}function X(_0x45f545){var _0x2e21b5=_0x1ca2b5;const {coordinator:_0x400cab}=_0x45f545;return l[_0x2e21b5(0x222)](l['Fragment'],{'children':[l[_0x2e21b5(0x18d)](_0x2e21b5(0x174),{'className':_0x2e21b5(0x223),'children':_0x2e21b5(0x175)}),l[_0x2e21b5(0x18d)](g[_0x2e21b5(0x170)],{'variant':'text','onClick':()=>_0x400cab[_0x2e21b5(0x1cf)](),'children':'Start\x20following'})]});}function ee(_0x2161c0){var _0x2d30a3=_0x1ca2b5;const {coordinator:_0xf10527}=_0x2161c0;return l[_0x2d30a3(0x222)](l[_0x2d30a3(0x16c)],{'children':[l[_0x2d30a3(0x18d)](_0x2d30a3(0x174),{'className':_0x2d30a3(0x223),'children':_0x2d30a3(0x190)}),l['jsx'](g[_0x2d30a3(0x170)],{'variant':'default','onClick':()=>_0xf10527[_0x2d30a3(0x20e)](),'children':_0x2d30a3(0x1d0)})]});}function te(){var _0x2ea952=_0x1ca2b5;return l[_0x2ea952(0x18d)](l[_0x2ea952(0x16c)],{'children':_0x2ea952(0x1fd)});}var ie=Object[_0x1ca2b5(0x209)],ne=(_0x4b17bf,_0x26e1a4,_0x42d483,_0x4f9c40)=>{var _0x5ded69=_0x1ca2b5;for(var _0x2faec5=_0x4f9c40>0x1?void 0x0:_0x4f9c40?ie(_0x26e1a4,_0x42d483):_0x26e1a4,_0x42c9ed=_0x4b17bf[_0x5ded69(0x1d7)]-0x1,_0x487115;_0x42c9ed>=0x0;_0x42c9ed--)(_0x487115=_0x4b17bf[_0x42c9ed])&&(_0x2faec5=_0x487115(_0x2faec5)||_0x2faec5);return _0x2faec5;},L=(_0x313947,_0x49c4c0)=>(_0x458d76,_0x51d26f)=>_0x49c4c0(_0x458d76,_0x51d26f,_0x313947);exports[_0x1ca2b5(0x1f9)]=class extends o[_0x1ca2b5(0x1df)]{constructor(_0x4a3197,_0x348f89){var _0xc7ca9d=_0x1ca2b5;super(),this[_0xc7ca9d(0x234)]=_0x4a3197,this[_0xc7ca9d(0x1ea)]=_0x348f89,this[_0xc7ca9d(0x220)]();}[_0x1ca2b5(0x220)](){var _0x5f5635=_0x1ca2b5;this[_0x5f5635(0x180)](this[_0x5f5635(0x1ea)][_0x5f5635(0x252)](p[_0x5f5635(0x1c5)][_0x5f5635(0x21d)],()=>p[_0x5f5635(0x219)](A,this['_injector'])));}},exports[_0x1ca2b5(0x1f9)]=ne([L(0x0,o[_0x1ca2b5(0x1e1)](o[_0x1ca2b5(0x1a4)])),L(0x1,p[_0x1ca2b5(0x1b3)])],exports['DesktopLiveShareController']);var re=Object[_0x1ca2b5(0x185)],se=Object[_0x1ca2b5(0x209)],oe=(_0x27e894,_0x2a33db,_0x37f007)=>_0x2a33db in _0x27e894?re(_0x27e894,_0x2a33db,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x37f007}):_0x27e894[_0x2a33db]=_0x37f007,ae=(_0x198ccf,_0x17e479,_0x1857e2,_0xc2abeb)=>{var _0x27e5a7=_0x1ca2b5;for(var _0x559de9=_0xc2abeb>0x1?void 0x0:_0xc2abeb?se(_0x17e479,_0x1857e2):_0x17e479,_0x154635=_0x198ccf[_0x27e5a7(0x1d7)]-0x1,_0x253b80;_0x154635>=0x0;_0x154635--)(_0x253b80=_0x198ccf[_0x154635])&&(_0x559de9=_0x253b80(_0x559de9)||_0x559de9);return _0x559de9;},N=(_0x3b7c0a,_0x4f7367)=>(_0x2ae58a,_0x5468b3)=>_0x4f7367(_0x2ae58a,_0x5468b3,_0x3b7c0a),T=(_0x5f46c8,_0x3c6e1d,_0xb16438)=>oe(_0x5f46c8,typeof _0x3c6e1d!=_0x1ca2b5(0x21a)?_0x3c6e1d+'':_0x3c6e1d,_0xb16438);function _0x5d2c(){var _0x52db71=['sheet','univerjs-icon\x20univerjs-icon-','Module','rxjs','CommandType','getMemberID','DisposableCollection','params','toString','_startLiveShareCoordinator','UniverLiveSharePlugin','url(#$1','DesktopLiveShareController','SetZoomRatioOperation','get','LIVESHARE_FETCH_OPERATIONS','You\x27are\x20offline.','live-share-icon','replace','entries','find','_handleOperation','string','_fetchOperations','@univerjs/design','UNIVER_SHEET','_handleTerminate','react','getOwnPropertyDescriptor','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','xlink:href','data','802050chbOJX','stopPresenting','toDisposable','sessionStatus$','_status','_sharedOperations','IUniverInstanceService','8411049jqrPeW','stringify','UniverInstanceType','assign','has','connectInjector','symbol','registerInitialStateReporter','LiveShareStatus','HEADER_MENU','getConfig','64rpVHzX','_mountLiveShare','LiveShareCoordinator','jsxs','univer-w-full\x20univer-mb-3\x20univer-text-sm','following','_collabSession','svg','CollaborationEvent','_handleOnline','_stopFollowing','Dropdown','UniverCollaborationClientPlugin','random','next','DependentOn','button','useState','reverse','includes','offline','_injector','RxDisposable','IDLE','416836qFtTxU','hasOwnProperty','map','mergeOverrideWithDependencies','prototype','_init','stopFollowing','colorChannel1','_unitID','FOLLOWING','then','@univerjs-pro/collaboration','propertyIsEnumerable','BehaviorSubject','SetWorksheetActiveOperation','values','current','presenting','getLiveShareCoordinator','_presenter','shouldShareOperation','path','_beIdle','currentColor','displayName','createElement','_handleNewChangeSets','registerComponent','createInstance','merge','CollaborationSessionService','Present\x20this\x20document','_handleNewHost','useObservable','presenter','Fragment','concat','You\x27re\x20following\x20the\x20presenter','LiveShareService','Button','_collabSessionService','forwardRef','dispose$','div','You\x27re\x20not\x20following\x20the\x20presenter','_entities','takeUntil','UNIVER_LIVE_SHARE_PLUGIN','useDependency','http://www.w3.org/2000/svg','getInitialStates','tag','1em','idSuffix','executeCommand','disposeWithMe','parseProtocolChangeset','Stop\x20following','touchDependencies','2749572jgBwku','defineProperty','LIVESHARE_NEW_HOST','mask','indexOf','_status$','LiveShareController','0\x200\x2017\x2017','getValue','jsx','live-share.config','_liveShareService','You\x27re\x20presenting\x20the\x20document','mutations','LiveShare','OFFLINE','send','getUnitId','children','LIVESHARE_TERMINATE','pipe','OPERATION','_handleOffline','onRendered','LIVESHARE_OPERATION','operations','SAME_OPERATION_SHARE_INTERVAL','useEffect','fill','4014jbZLak','dispose','_reporters','Injector','requireSession','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','delete','_commandDisposable','@univerjs/core','apply','375351RaARGw','_stopPresenting','react/jsx-runtime','_univerInstanceService','getOwnPropertySymbols','call','override','attrs','IUIPartsService','IConfigService','end','status$','add','_startFollowing','toStringTag','useRef','UniverIcon','defIds','unitId','icon','registerSharedOperation','univer-size-4','Start','clsx','_commandService','_config','BuiltInUIPart','evenodd','rxjs/operators','complete','@univerjs/sheets','_configService','onCommandExecuted','event$','tryStartPresenting','not-following','startFollowing','Stop\x20presenting','pluginName','InsertSheetMutation','@univerjs/ui','memberID','clear','use','length','getCurrentTypeOfUnit$','forEach','471998OPtTnd','set','type','idle','3005evBLkS','Disposable','registerDependencies','Inject','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','SessionStatus','onStarting','Subject','SetScrollOperation','from','subscribe','extend','_uiPartsService','_startPresenting','NOT_FOLLOWING'];_0x5d2c=function(){return _0x52db71;};return _0x5d2c();}const le=_0x1ca2b5(0x178);exports[_0x1ca2b5(0x1f7)]=class extends o['Plugin']{constructor(_0x3ad8e4=x,_0xc59639,_0x3b88c7){var _0x458da7=_0x1ca2b5;super(),this[_0x458da7(0x1c4)]=_0x3ad8e4,this['_injector']=_0xc59639,this['_configService']=_0x3b88c7;const {..._0x136d6a}=o[_0x458da7(0x254)]({},x,this[_0x458da7(0x1c4)]);this[_0x458da7(0x1ca)]['setConfig']($,_0x136d6a);}[_0x1ca2b5(0x1e4)](){var _0xf62d92=_0x1ca2b5;o[_0xf62d92(0x1e0)](this[_0xf62d92(0x234)],o[_0xf62d92(0x23a)]([[O],[exports[_0xf62d92(0x18a)]],[E],[exports[_0xf62d92(0x1f9)]]],this[_0xf62d92(0x1c4)][_0xf62d92(0x1b1)])),o[_0xf62d92(0x183)](this['_injector'],[[E]]);}[_0x1ca2b5(0x19b)](){var _0x3e0b5f=_0x1ca2b5;o['touchDependencies'](this[_0x3e0b5f(0x234)],[[exports[_0x3e0b5f(0x1f9)]]]);}},T(exports['UniverLiveSharePlugin'],_0x1ca2b5(0x1dc),o[_0x1ca2b5(0x216)]['UNIVER_UNKNOWN']),T(exports[_0x1ca2b5(0x1f7)],_0x1ca2b5(0x1d1),le),exports[_0x1ca2b5(0x1f7)]=ae([o[_0x1ca2b5(0x22e)](m[_0x1ca2b5(0x22b)]),N(0x1,o[_0x1ca2b5(0x1e1)](o[_0x1ca2b5(0x1a4)])),N(0x2,o[_0x1ca2b5(0x1b4)])],exports[_0x1ca2b5(0x1f7)]),exports[_0x1ca2b5(0x192)]=A,exports[_0x1ca2b5(0x16f)]=O,exports[_0x1ca2b5(0x21c)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x2886db=_0x695d;(function(_0x2703d9,_0x3b1564){var _0x42cf87=_0x695d,_0x447e39=_0x2703d9();while(!![]){try{var _0x16c535=parseInt(_0x42cf87(0x1a3))/0x1+-parseInt(_0x42cf87(0x1ea))/0x2+parseInt(_0x42cf87(0x1e2))/0x3+-parseInt(_0x42cf87(0x1c1))/0x4+parseInt(_0x42cf87(0x1a0))/0x5*(parseInt(_0x42cf87(0x1bb))/0x6)+parseInt(_0x42cf87(0x187))/0x7+parseInt(_0x42cf87(0x1c2))/0x8;if(_0x16c535===_0x3b1564)break;else _0x447e39['push'](_0x447e39['shift']());}catch(_0x21a2b3){_0x447e39['push'](_0x447e39['shift']());}}}(_0xe8c5,0xc1a67));var q=Object[_0x2886db(0x1fe)],z=(_0x6fd7f3,_0xf382dd,_0x4ef9e4)=>_0xf382dd in _0x6fd7f3?q(_0x6fd7f3,_0xf382dd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ef9e4}):_0x6fd7f3[_0xf382dd]=_0x4ef9e4,d=(_0x49ce15,_0x2e15bc,_0x366d9a)=>z(_0x49ce15,typeof _0x2e15bc!=_0x2886db(0x1c0)?_0x2e15bc+'':_0x2e15bc,_0x366d9a);import{CollaborationSessionService as _0x37b98,SessionStatus as _0x4e7aee,UniverCollaborationClientPlugin as _0x5a9880}from'@univerjs-pro/collaboration-client';import{Disposable as _0x172f34,toDisposable as _0x3a14b5,Inject as _0x10aaa1,IUniverInstanceService as _0x11d622,Injector as _0x2015d8,IConfigService as _0x37a6e8,ICommandService as _0x342266,RxDisposable as _0x6f1f15,UniverInstanceType as _0x4aff88,DisposableCollection as _0x274689,CommandType as _0x55a605,DependentOn as _0x35d3f7,Plugin as _0x3a7036,merge as _0x4c5a48,registerDependencies as _0x5c518a,mergeOverrideWithDependencies as _0x1d9838,touchDependencies as _0x1e2724}from'@univerjs/core';import{SetWorksheetActiveOperation as _0xcf814f,InsertSheetMutation as _0x1800b8}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x59a1e5,SetScrollOperation as _0x28ccdf}from'@univerjs/sheets-ui';import{useDependency as _0x5b3603,useObservable as _0x2d4df2,IUIPartsService as _0x125ac6,BuiltInUIPart as _0x2083b0,connectInjector as _0x1b45da}from'@univerjs/ui';function _0xe8c5(){var _0x5b08f7=['_commandDisposable','data','_uiPartsService','UNIVER_LIVE_SHARE_PLUGIN','_fetchOperations','status$','createInstance','not-following','_unitID','160GtGCon','displayName','_collabSession','672842RruRfX','clear','http://www.w3.org/2000/svg','_configService','_handleTerminate','pluginName','getTypeOfUnitAdded$','registerInitialStateReporter','NOT_FOLLOWING','svg','onCommandExecuted','button','path','unsubscribe','_univerInstanceService','substring','_liveShareService','getMemberID','init','Start\x20following','operations','end','mask','find','41682tSaQyj','_stopPresenting','sheet','startFollowing','SAME_OPERATION_SHARE_INTERVAL','symbol','5727132ibxYQW','5709768gAsUEh','pipe','send','subscribe','getTypeOfUnitDisposed$','OPERATION','univer-w-full\x20univer-mb-3\x20univer-text-sm','presenter','univerjs-icon\x20univerjs-icon-','indexOf','sessionStatus$','function','use','registerComponent','icon','set','add','LIVESHARE_TERMINATE','stopPresenting','Start','OFFLINE','currentColor','getUnitId','values','idle','UNIVER_SHEET','replace','map','asObservable','You\x27re\x20not\x20following\x20the\x20presenter','getOwnPropertyDescriptor','_handleNewChangeSets','2559432JKoicy','get','IDLE','_status$','stopFollowing','default','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','HEADER_MENU','2289478UaXRZi','extend','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','_startFollowing','params','getLiveShareCoordinator','_startLiveShareCoordinator','disposeWithMe','univer-size-4','You\x27re\x20presenting\x20the\x20document','unitId','text','url(#$1','memberID','1em','_status','current','getInitialStates','idSuffix','xlink:href','defineProperty','dispose','getConfig','onStarting','PRESENTING','shouldShareOperation','from','length','dispose$','_presenter','trim','_entities','string','_init','includes','LIVESHARE_REQUEST_HOST','Stop\x20following','prototype','stringify','_stopFollowing','forEach','registerSharedOperation','hasOwnProperty','colorChannel1','_sharedOperations','LIVESHARE_OPERATION','requireSession','_handleNewHost','_commandService','parse','LIVESHARE_FETCH_OPERATIONS','_config','defIds','_injector','Stop\x20presenting','type','_beIdle','mutations','UniverIcon','evenodd','live-share-icon','presenting','none','Present\x20this\x20document','_reporters','div','tag','apply','_handleOnline','_mountLiveShare','has','reverse','UNIVER_UNKNOWN','children','delete','_handleOperation','setConfig','6353914RfmbYB','tryStartPresenting','random','You\x27re\x20following\x20the\x20presenter','offline','getCurrentTypeOfUnit$','following','attrs','concat','next','FOLLOWING','assign','then','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','call'];_0xe8c5=function(){return _0x5b08f7;};return _0xe8c5();}import{jsx as _0x3a52ad,jsxs as _0x199030,Fragment as _0x1dbeda}from'react/jsx-runtime';import{Dropdown as _0x4dd19b,clsx as _0x2351ae,Button as _0x2dde90}from'@univerjs/design';import{forwardRef as _0x55f301,useRef as _0x2d195a,createElement as _0xc61559,useState as _0x11cb7c,useEffect as _0x548d7b}from'react';import{CollaborationEvent as _0x31f6e1,parseProtocolChangeset as _0xb1adb}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x1dc9f4,Subject as _0x5762}from'rxjs';import{takeUntil as _0x120c99,throttleTime as _0x2d347e}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x172f34{constructor(){var _0x530ca9=_0x2886db;super(...arguments),d(this,_0x530ca9(0x216),new Set()),d(this,_0x530ca9(0x17a),new Set());}[_0x2886db(0x213)](_0xa9a2eb){var _0x3ab327=_0x2886db;return this[_0x3ab327(0x216)]['add'](_0xa9a2eb),_0x3a14b5(()=>this[_0x3ab327(0x216)][_0x3ab327(0x184)](_0xa9a2eb));}[_0x2886db(0x1aa)](_0xd28cfd){var _0x43d297=_0x2886db;return this[_0x43d297(0x17a)]['add'](_0xd28cfd),_0x3a14b5(()=>this[_0x43d297(0x17a)][_0x43d297(0x184)](_0xd28cfd));}[_0x2886db(0x203)](_0x1be4db){var _0x40f7d5=_0x2886db;return this[_0x40f7d5(0x216)]['has'](_0x1be4db);}[_0x2886db(0x1fb)](_0x183b70){var _0x4fee2f=_0x2886db;return Array[_0x4fee2f(0x204)](this['_reporters'])[_0x4fee2f(0x1dd)](_0x50791d=>_0x50791d(_0x183b70));}}var Ee=Object[_0x2886db(0x1e0)],we=(_0x18011c,_0x10c997,_0x2ff8b6,_0x4c53c0)=>{var _0x35c24c=_0x2886db;for(var _0x5bccd3=_0x4c53c0>0x1?void 0x0:_0x4c53c0?Ee(_0x10c997,_0x2ff8b6):_0x10c997,_0x476d91=_0x18011c[_0x35c24c(0x205)]-0x1,_0xb2602c;_0x476d91>=0x0;_0x476d91--)(_0xb2602c=_0x18011c[_0x476d91])&&(_0x5bccd3=_0xb2602c(_0x5bccd3)||_0x5bccd3);return _0x5bccd3;},Ne=(_0xcb8e00,_0x1bdf91)=>(_0x27709c,_0x5d933b)=>_0x1bdf91(_0x27709c,_0x5d933b,_0xcb8e00);let m=class extends _0x172f34{constructor(_0x1c26df){var _0x27310a=_0x2886db;super(),this[_0x27310a(0x1b3)]=_0x1c26df,this[_0x27310a(0x20b)]();}['_init'](){[_0x59a1e5['id'],_0x28ccdf['id'],_0xcf814f['id']]['forEach'](_0x45fb27=>{var _0x338720=_0x695d;this[_0x338720(0x1f1)](this[_0x338720(0x1b3)][_0x338720(0x213)](_0x45fb27));});}};m=we([Ne(0x0,_0x10aaa1(L))],m);var c=function(){var _0x28ffd9=_0x2886db;return c=Object['assign']||function(_0x42fdd4){var _0xc4ae1b=_0x695d;for(var _0x4fbdf2,_0x1b24f6=0x1,_0x1c5fe9=arguments[_0xc4ae1b(0x205)];_0x1b24f6<_0x1c5fe9;_0x1b24f6++){_0x4fbdf2=arguments[_0x1b24f6];for(var _0x4f99a7 in _0x4fbdf2)Object[_0xc4ae1b(0x20f)]['hasOwnProperty'][_0xc4ae1b(0x196)](_0x4fbdf2,_0x4f99a7)&&(_0x42fdd4[_0x4f99a7]=_0x4fbdf2[_0x4f99a7]);}return _0x42fdd4;},c[_0x28ffd9(0x17d)](this,arguments);},Ce=function(_0x397068,_0x18e9a5){var _0x21b23c=_0x2886db,_0xbe4af8={};for(var _0x5791af in _0x397068)Object['prototype'][_0x21b23c(0x214)][_0x21b23c(0x196)](_0x397068,_0x5791af)&&_0x18e9a5['indexOf'](_0x5791af)<0x0&&(_0xbe4af8[_0x5791af]=_0x397068[_0x5791af]);if(_0x397068!=null&&typeof Object['getOwnPropertySymbols']==_0x21b23c(0x1cd)){for(var _0x365b14=0x0,_0x5791af=Object['getOwnPropertySymbols'](_0x397068);_0x365b14<_0x5791af[_0x21b23c(0x205)];_0x365b14++)_0x18e9a5[_0x21b23c(0x1cb)](_0x5791af[_0x365b14])<0x0&&Object[_0x21b23c(0x20f)]['propertyIsEnumerable'][_0x21b23c(0x196)](_0x397068,_0x5791af[_0x365b14])&&(_0xbe4af8[_0x5791af[_0x365b14]]=_0x397068[_0x5791af[_0x365b14]]);}return _0xbe4af8;},W=_0x55f301(function(_0x362ed2,_0x2ad381){var _0x393126=_0x2886db,_0x105cb4=_0x362ed2[_0x393126(0x1d0)],_0x32307a=_0x362ed2['id'],_0x30c563=_0x362ed2['className'],_0x5a4b4a=_0x362ed2['extend'],_0x4a13c3=Ce(_0x362ed2,[_0x393126(0x1d0),'id','className',_0x393126(0x1eb)]),_0xadbe55=_0x393126(0x1ca)[_0x393126(0x18f)](_0x32307a,'\x20')[_0x393126(0x18f)](_0x30c563||'')[_0x393126(0x208)](),_0x323407=_0x2d195a('_'['concat'](Le()));return Y(_0x105cb4,''[_0x393126(0x18f)](_0x32307a),{'defIds':_0x105cb4[_0x393126(0x21e)],'idSuffix':_0x323407[_0x393126(0x1fa)]},c({'ref':_0x2ad381,'className':_0xadbe55},_0x4a13c3),_0x5a4b4a);});function Y(_0x56ab80,_0x5478e5,_0x5ac3d4,_0x56c996,_0x55335c){var _0x399ce6=_0x2886db;return _0xc61559(_0x56ab80[_0x399ce6(0x17c)],c(c({'key':_0x5478e5},De(_0x56ab80,_0x5ac3d4,_0x55335c)),_0x56c996),(xe(_0x56ab80,_0x5ac3d4)['children']||[])[_0x399ce6(0x1dd)](function(_0x51dd99,_0x280f97){var _0x51b815=_0x399ce6;return Y(_0x51dd99,''['concat'](_0x5478e5,'-')[_0x51b815(0x18f)](_0x56ab80[_0x51b815(0x17c)],'-')[_0x51b815(0x18f)](_0x280f97),_0x5ac3d4,void 0x0,_0x55335c);}));}function De(_0x2d8e39,_0x358f41,_0x3e1612){var _0x502666=_0x2886db,_0x12043d=c({},_0x2d8e39[_0x502666(0x18e)]);_0x3e1612!=null&&_0x3e1612[_0x502666(0x215)]&&_0x12043d['fill']===_0x502666(0x215)&&(_0x12043d['fill']=_0x3e1612[_0x502666(0x215)]),_0x2d8e39[_0x502666(0x17c)]===_0x502666(0x1b9)&&_0x12043d['id']&&(_0x12043d['id']=_0x12043d['id']+_0x358f41[_0x502666(0x1fc)]),Object['entries'](_0x12043d)[_0x502666(0x212)](function(_0x36579d){var _0x36c549=_0x502666,_0x3e4d7d=_0x36579d[0x0],_0x37ffee=_0x36579d[0x1];_0x3e4d7d===_0x36c549(0x1b9)&&typeof _0x37ffee==_0x36c549(0x20a)&&(_0x12043d[_0x3e4d7d]=_0x37ffee[_0x36c549(0x1dc)](/url\(#(.*)\)/,_0x36c549(0x1f6)['concat'](_0x358f41[_0x36c549(0x1fc)],')')));});var _0x3cad34=_0x358f41[_0x502666(0x21e)];return!_0x3cad34||_0x3cad34[_0x502666(0x205)]===0x0||(_0x2d8e39[_0x502666(0x17c)]===_0x502666(0x1ce)&&_0x12043d[_0x502666(0x1fd)]&&(_0x12043d[_0x502666(0x1fd)]=_0x12043d[_0x502666(0x1fd)]+_0x358f41[_0x502666(0x1fc)]),Object['entries'](_0x12043d)[_0x502666(0x212)](function(_0x31012a){var _0x50d183=_0x502666,_0x662a59=_0x31012a[0x0],_0x516b0d=_0x31012a[0x1];typeof _0x516b0d==_0x50d183(0x20a)&&(_0x12043d[_0x662a59]=_0x516b0d[_0x50d183(0x1dc)](/url\(#(.*)\)/,'url(#$1'[_0x50d183(0x18f)](_0x358f41['idSuffix'],')')));})),_0x12043d;}function xe(_0x4e591f,_0x318086){var _0x2a4441=_0x2886db,_0x245494,_0x5db848=_0x318086['defIds'];return!_0x5db848||_0x5db848[_0x2a4441(0x205)]===0x0?_0x4e591f:_0x4e591f['tag']==='defs'&&(!((_0x245494=_0x4e591f['children'])===null||_0x245494===void 0x0)&&_0x245494[_0x2a4441(0x205)])?c(c({},_0x4e591f),{'children':_0x4e591f[_0x2a4441(0x183)][_0x2a4441(0x1dd)](function(_0x4d1368){var _0x552cac=_0x2a4441;return typeof _0x4d1368[_0x552cac(0x18e)]['id']==_0x552cac(0x20a)&&_0x5db848&&_0x5db848[_0x552cac(0x20c)](_0x4d1368[_0x552cac(0x18e)]['id'])?c(c({},_0x4d1368),{'attrs':c(c({},_0x4d1368[_0x552cac(0x18e)]),{'id':_0x4d1368['attrs']['id']+_0x318086[_0x552cac(0x1fc)]})}):_0x4d1368;})}):_0x4e591f;}function Le(){var _0x4e58f4=_0x2886db;return Math[_0x4e58f4(0x189)]()['toString'](0x24)[_0x4e58f4(0x1b2)](0x2,0x8);}W[_0x2886db(0x1a1)]=_0x2886db(0x174);var ye={'tag':_0x2886db(0x1ac),'attrs':{'xmlns':_0x2886db(0x1a5),'fill':_0x2886db(0x178),'viewBox':'0\x200\x2017\x2017','width':_0x2886db(0x1f8),'height':_0x2886db(0x1f8)},'children':[{'tag':_0x2886db(0x1af),'attrs':{'fill':_0x2886db(0x1d7),'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':_0x2886db(0x1af),'attrs':{'fill':_0x2886db(0x1d7),'d':_0x2886db(0x195),'fillRule':_0x2886db(0x175),'clipRule':_0x2886db(0x175)}}]},B=_0x55f301(function(_0x13781d,_0x349829){var _0x21bfbc=_0x2886db;return _0xc61559(W,Object[_0x21bfbc(0x192)]({},_0x13781d,{'id':_0x21bfbc(0x176),'ref':_0x349829,'icon':ye}));});B[_0x2886db(0x1a1)]='LiveShareIcon';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x2b7426,_0x5ba008,_0x59a7e8,_0x2492e9)=>{var _0x3c2bf7=_0x2886db;for(var _0x2e3c93=_0x2492e9>0x1?void 0x0:_0x2492e9?Re(_0x5ba008,_0x59a7e8):_0x5ba008,_0x79da07=_0x2b7426[_0x3c2bf7(0x205)]-0x1,_0xbd78e8;_0x79da07>=0x0;_0x79da07--)(_0xbd78e8=_0x2b7426[_0x79da07])&&(_0x2e3c93=_0xbd78e8(_0x2e3c93)||_0x2e3c93);return _0x2e3c93;},f=(_0x59200c,_0x596e39)=>(_0x406125,_0x52dd4b)=>_0x596e39(_0x406125,_0x52dd4b,_0x59200c);let I=class extends _0x6f1f15{constructor(_0x5107f1,_0x26a3f1,_0x3eee54){var _0x575e85=_0x2886db;super(),d(this,_0x575e85(0x209),new Map()),(this[_0x575e85(0x1b1)]=_0x5107f1,this[_0x575e85(0x21f)]=_0x26a3f1,this['_collabSessionService']=_0x3eee54,this[_0x575e85(0x20b)]());}async[_0x2886db(0x1ef)](_0x227b7b){var _0x4176c4=_0x2886db;return this[_0x4176c4(0x209)][_0x4176c4(0x180)](_0x227b7b)||await this[_0x4176c4(0x1f0)](_0x227b7b),this[_0x4176c4(0x209)][_0x4176c4(0x1e3)](_0x227b7b);}[_0x2886db(0x20b)](){var _0x4fd0dd=_0x2886db;this[_0x4fd0dd(0x1b1)][_0x4fd0dd(0x1a9)](_0x4aff88[_0x4fd0dd(0x1db)])['pipe'](_0x120c99(this[_0x4fd0dd(0x206)]))['subscribe'](async _0x55ce3e=>{var _0x3f9089=_0x4fd0dd;const _0x421d83=_0x55ce3e[_0x3f9089(0x1d8)]();this[_0x3f9089(0x209)][_0x3f9089(0x180)](_0x421d83)||this[_0x3f9089(0x1f0)](_0x421d83);}),this[_0x4fd0dd(0x1b1)][_0x4fd0dd(0x1c6)](_0x4aff88[_0x4fd0dd(0x1db)])[_0x4fd0dd(0x1c3)](_0x120c99(this[_0x4fd0dd(0x206)]))[_0x4fd0dd(0x1c5)](_0x584625=>{var _0x420a86=_0x4fd0dd;const _0x56f2c9=_0x584625[_0x420a86(0x1d8)](),_0x1150f6=this[_0x420a86(0x209)][_0x420a86(0x1e3)](_0x56f2c9);_0x1150f6==null||_0x1150f6['dispose']();});}async[_0x2886db(0x1f0)](_0x525019){var _0x54f5c7=_0x2886db;const _0x3c5d8e=await this['_collabSessionService'][_0x54f5c7(0x218)](_0x525019),_0x171e35=this[_0x54f5c7(0x21f)][_0x54f5c7(0x19d)](C,_0x525019,_0x3c5d8e);return _0x171e35[_0x54f5c7(0x1b5)](),this[_0x54f5c7(0x209)][_0x54f5c7(0x1d1)](_0x525019,_0x171e35),_0x171e35;}};I=Z([f(0x0,_0x11d622),f(0x1,_0x10aaa1(_0x2015d8)),f(0x2,_0x10aaa1(_0x37b98))],I);var h=(_0x27a6a2=>(_0x27a6a2['OFFLINE']='offline',_0x27a6a2[_0x2886db(0x1e4)]='idle',_0x27a6a2[_0x2886db(0x191)]=_0x2886db(0x18d),_0x27a6a2[_0x2886db(0x1ab)]=_0x2886db(0x19e),_0x27a6a2[_0x2886db(0x202)]=_0x2886db(0x177),_0x27a6a2))(h||{});function _0x695d(_0x28dd9a,_0x923fb0){var _0xe8c531=_0xe8c5();return _0x695d=function(_0x695db1,_0x5e4718){_0x695db1=_0x695db1-0x171;var _0x10bc6b=_0xe8c531[_0x695db1];return _0x10bc6b;},_0x695d(_0x28dd9a,_0x923fb0);}const Pe=_0x2886db(0x1bf),Ae=0xc8;let C=class extends _0x6f1f15{constructor(_0xecbae6,_0x11b829,_0x3e111e,_0x4e07d3,_0x19eaf2){var _0x126e77=_0x2886db;super(),d(this,'_status$',new _0x1dc9f4(_0x126e77(0x1da))),d(this,_0x126e77(0x19c),this[_0x126e77(0x1e5)][_0x126e77(0x1de)]()),d(this,_0x126e77(0x20b),!0x1),d(this,_0x126e77(0x197),null),d(this,'_presenter',null),(this[_0x126e77(0x19f)]=_0xecbae6,this[_0x126e77(0x1a2)]=_0x11b829,this[_0x126e77(0x1a6)]=_0x3e111e,this[_0x126e77(0x1b3)]=_0x4e07d3,this[_0x126e77(0x21a)]=_0x19eaf2);}get['_status'](){var _0x2a3b2a=_0x2886db;return this[_0x2a3b2a(0x1e5)]['getValue']();}[_0x2886db(0x1ff)](){var _0x53d1da=_0x2886db,_0x43a5f2;(_0x43a5f2=this['_commandDisposable'])==null||_0x43a5f2[_0x53d1da(0x1ff)](),this[_0x53d1da(0x1e5)]['next'](_0x53d1da(0x1da)),this[_0x53d1da(0x1e5)]['complete']();}[_0x2886db(0x1b5)](){var _0x30f21d=_0x2886db;this[_0x30f21d(0x20b)]||(this[_0x30f21d(0x20b)]=!0x0,this['_collabSession'][_0x30f21d(0x1cc)][_0x30f21d(0x1c3)](_0x120c99(this[_0x30f21d(0x206)]))[_0x30f21d(0x1c5)](_0x241dfb=>{var _0x1c8fa5=_0x30f21d;switch(_0x241dfb){case _0x4e7aee[_0x1c8fa5(0x1d6)]:this['_handleOffline']();break;case _0x4e7aee['ONLINE']:this[_0x1c8fa5(0x17e)]();break;}}),this['_collabSession']['event$'][_0x30f21d(0x1c3)](_0x120c99(this[_0x30f21d(0x206)]))[_0x30f21d(0x1c5)](_0x9c2bfb=>{var _0x4f988f=_0x30f21d;const {eventID:_0x5ce4dc}=_0x9c2bfb;switch(_0x5ce4dc){case _0x31f6e1['LIVESHARE_NEW_HOST']:this[_0x4f988f(0x219)](_0x9c2bfb);break;case _0x31f6e1['LIVESHARE_OPERATION']:this[_0x4f988f(0x185)](_0x9c2bfb);break;case _0x31f6e1[_0x4f988f(0x1d3)]:this[_0x4f988f(0x1a7)]();break;case _0x31f6e1['NEW_CHANGESETS']:this[_0x4f988f(0x1e1)](_0x9c2bfb);break;}}));}[_0x2886db(0x188)](){var _0x5be021=_0x2886db;this[_0x5be021(0x1a2)][_0x5be021(0x1c4)]({'eventID':_0x31f6e1[_0x5be021(0x20d)],'data':{'unitID':this[_0x5be021(0x19f)],'userID':this[_0x5be021(0x1a2)][_0x5be021(0x1b4)]()}},this['_unitID']);}[_0x2886db(0x1d4)](){var _0x366b91=_0x2886db;this[_0x366b91(0x1f9)]==='presenting'&&(this[_0x366b91(0x1e5)][_0x366b91(0x190)]('idle'),this[_0x366b91(0x1a2)]['send']({'eventID':_0x31f6e1[_0x366b91(0x1d3)],'data':{'unitID':this['_unitID']}},this[_0x366b91(0x19f)]));}[_0x2886db(0x1be)](){var _0x55ea58=_0x2886db;this[_0x55ea58(0x1f9)]===_0x55ea58(0x19e)&&(this[_0x55ea58(0x1e5)][_0x55ea58(0x190)](_0x55ea58(0x18d)),this['_startFollowing']());}[_0x2886db(0x1e6)](){var _0x3a58e3=_0x2886db;this[_0x3a58e3(0x1f9)]===_0x3a58e3(0x18d)&&this[_0x3a58e3(0x211)]();}[_0x2886db(0x219)](_0x4715bb){var _0x32700c=_0x2886db;const {presenter:_0x3ff6fc}=_0x4715bb[_0x32700c(0x198)],_0x36d41c=this[_0x32700c(0x1a2)][_0x32700c(0x1b4)]();this[_0x32700c(0x207)]=_0x3ff6fc,_0x3ff6fc===_0x36d41c?(this['_stopFollowing'](),this['_startPresenting']()):this['_status']!==_0x32700c(0x19e)&&(this[_0x32700c(0x1bc)](),this[_0x32700c(0x1ed)]());}[_0x2886db(0x19b)](){var _0x437216=_0x2886db;const _0x49b2e3={'eventID':_0x31f6e1[_0x437216(0x21c)]};this[_0x437216(0x1a2)][_0x437216(0x1c4)](_0x49b2e3,this[_0x437216(0x19f)]);}[_0x2886db(0x1a7)](){var _0x1df453=_0x2886db;this['_presenter']=null,this[_0x1df453(0x1f9)]!==_0x1df453(0x177)&&this[_0x1df453(0x172)]();}[_0x2886db(0x1e1)](_0x3879a2){var _0x73a500=_0x2886db;if(this['_status']==='following'&&this['_presenter']===_0x3879a2[_0x73a500(0x198)][_0x73a500(0x1f7)]){const _0x267bf4=_0xb1adb(_0x3879a2[_0x73a500(0x198)])[_0x73a500(0x173)][_0x73a500(0x181)]()[_0x73a500(0x1ba)](_0x477c52=>_0x477c52['id']===_0x1800b8['id']);if(_0x267bf4){const _0x5f1cc4=_0x267bf4[_0x73a500(0x1ee)][_0x73a500(0x1f4)],_0x3c4392=_0x267bf4['params'][_0x73a500(0x1bd)]['id'];setTimeout(()=>{var _0x39d4af=_0x73a500;this['_commandService'][_0x39d4af(0x194)](_0xcf814f['id'],{'unitId':_0x5f1cc4,'subUnitId':_0x3c4392},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x494428=_0x2886db;this[_0x494428(0x1e5)][_0x494428(0x190)]('presenting');const _0xdf4dbd=new Map(),_0x157f0e=this[_0x494428(0x197)]=new _0x274689();_0x157f0e[_0x494428(0x1d2)](_0x3a14b5(()=>{var _0x1b1005=_0x494428;_0xdf4dbd[_0x1b1005(0x212)](_0x380493=>_0x380493['complete']()),_0xdf4dbd[_0x1b1005(0x1a4)]();})),_0x157f0e[_0x494428(0x1d2)](this[_0x494428(0x21a)][_0x494428(0x1ad)](_0x5b85aa=>{var _0x29293f=_0x494428,_0x4b6d2f;if(_0x5b85aa['type']!==_0x55a605[_0x29293f(0x1c7)]||!this[_0x29293f(0x1b3)]['shouldShareOperation'](_0x5b85aa['id']))return;const {id:_0x3c96ff}=_0x5b85aa;let _0x1cb5a1;_0xdf4dbd[_0x29293f(0x180)](_0x3c96ff)?_0x1cb5a1=_0xdf4dbd[_0x29293f(0x1e3)](_0x3c96ff):(_0x1cb5a1=new _0x5762(),_0xdf4dbd[_0x29293f(0x1d1)](_0x3c96ff,_0x1cb5a1),_0x1cb5a1[_0x29293f(0x1c3)](_0x2d347e((_0x4b6d2f=this[_0x29293f(0x1a6)][_0x29293f(0x200)](Pe))!=null?_0x4b6d2f:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x29293f(0x1c5)](_0x1539ba=>{var _0x387b5e=_0x29293f;this[_0x387b5e(0x1a2)][_0x387b5e(0x1c4)]({'eventID':_0x31f6e1['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x387b5e(0x19f)],'operations':{[_0x1539ba['id']]:{'id':_0x1539ba['id'],'params':JSON[_0x387b5e(0x210)](_0x1539ba[_0x387b5e(0x1ee)])}}}},this['_unitID']);})),_0x1cb5a1[_0x29293f(0x190)](_0x5b85aa);})),this[_0x494428(0x1b3)]['getInitialStates'](this[_0x494428(0x19f)])['forEach'](_0x276b54=>this[_0x494428(0x1a2)][_0x494428(0x1c4)]({'eventID':_0x31f6e1[_0x494428(0x217)],'data':{'unitID':this['_unitID'],'operations':{[_0x276b54['id']]:{'id':_0x276b54['id'],'params':JSON[_0x494428(0x210)](_0x276b54[_0x494428(0x1ee)])}}}},this['_unitID']));}[_0x2886db(0x1bc)](){var _0x1ef019=_0x2886db,_0x1433cc;this[_0x1ef019(0x1e5)]['next'](_0x1ef019(0x1da)),(_0x1433cc=this[_0x1ef019(0x197)])==null||_0x1433cc[_0x1ef019(0x1ff)](),this['_commandDisposable']=null;}[_0x2886db(0x1ed)](){var _0xaf8ce6=_0x2886db,_0x7bc5a1;(_0x7bc5a1=this[_0xaf8ce6(0x197)])==null||_0x7bc5a1['dispose'](),this['_status$'][_0xaf8ce6(0x190)](_0xaf8ce6(0x18d));}[_0x2886db(0x172)](){var _0x239e80=_0x2886db,_0x5b73d6;this[_0x239e80(0x1e5)][_0x239e80(0x190)](_0x239e80(0x1da)),(_0x5b73d6=this[_0x239e80(0x197)])==null||_0x5b73d6[_0x239e80(0x1ff)](),this[_0x239e80(0x197)]=null;}[_0x2886db(0x211)](){var _0x2d0753=_0x2886db,_0x5e502;this[_0x2d0753(0x1e5)][_0x2d0753(0x190)]('not-following'),(_0x5e502=this[_0x2d0753(0x197)])==null||_0x5e502['dispose']();}[_0x2886db(0x185)](_0x3903bc){var _0x3e5926=_0x2886db;if([_0x3e5926(0x177),_0x3e5926(0x19e),_0x3e5926(0x18b)][_0x3e5926(0x20c)](this[_0x3e5926(0x1f9)])||!_0x3903bc['data'][_0x3e5926(0x1c9)]||_0x3903bc[_0x3e5926(0x198)]['presenter']===this['_collabSession']['getMemberID']())return;this[_0x3e5926(0x1f9)]===_0x3e5926(0x1da)&&this['_startFollowing']();const _0xd5dd65=_0x3903bc[_0x3e5926(0x198)][_0x3e5926(0x1b7)];Object[_0x3e5926(0x1d9)](_0xd5dd65)[_0x3e5926(0x212)](_0x1611bb=>{var _0x55d1d7=_0x3e5926;this['_commandService']['executeCommand'](_0x1611bb['id'],_0x1611bb[_0x55d1d7(0x1ee)]?JSON[_0x55d1d7(0x21b)](_0x1611bb[_0x55d1d7(0x1ee)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x56fdcd=_0x2886db,_0x5a95ba;this[_0x56fdcd(0x1e5)]['next'](_0x56fdcd(0x18b)),(_0x5a95ba=this['_commandDisposable'])==null||_0x5a95ba[_0x56fdcd(0x1ff)]();}['_handleOnline'](){var _0x42ab97=_0x2886db;this['_status$'][_0x42ab97(0x190)](_0x42ab97(0x1da)),this[_0x42ab97(0x19b)]();}};C=Z([f(0x2,_0x37a6e8),f(0x3,_0x10aaa1(L)),f(0x4,_0x342266)],C);function Te(){var _0x5a44c8=_0x2886db;const _0x3531ca=_0x5b3603(I),_0x30ee38=_0x5b3603(_0x11d622),_0x28d50a=_0x2d4df2(()=>_0x30ee38[_0x5a44c8(0x18c)](_0x4aff88[_0x5a44c8(0x1db)]),void 0x0,!0x1,[]),[_0x48eea2,_0x4b0e40]=_0x11cb7c(null),[_0x38d9a1,_0x3d45b4]=_0x11cb7c(h['IDLE']),_0x5182d6=_0x2d195a(null);return _0x548d7b(()=>(_0x28d50a&&_0x3531ca[_0x5a44c8(0x1ef)](_0x28d50a[_0x5a44c8(0x1d8)]())[_0x5a44c8(0x193)](_0x56afa1=>{var _0x5d6a49=_0x5a44c8;_0x4b0e40(_0x56afa1),_0x5182d6[_0x5d6a49(0x1fa)]=_0x56afa1[_0x5d6a49(0x19c)][_0x5d6a49(0x1c5)](_0xf35f7c=>{_0x3d45b4(_0xf35f7c);});}),()=>{var _0x7a9b3=_0x5a44c8,_0x25c32e;(_0x25c32e=_0x5182d6[_0x7a9b3(0x1fa)])==null||_0x25c32e[_0x7a9b3(0x1b0)](),_0x5182d6[_0x7a9b3(0x1fa)]=null;}),[_0x28d50a,_0x3531ca]),_0x48eea2?_0x3a52ad(_0x4dd19b,{'align':_0x5a44c8(0x1b8),'disabled':_0x38d9a1===h[_0x5a44c8(0x1d6)],'className':_0x5a44c8(0x1e8),'overlay':_0x3a52ad($e,{'status':_0x38d9a1,'coordinator':_0x48eea2}),'children':_0x3a52ad(_0x5a44c8(0x1ae),{'className':_0x2351ae(_0x5a44c8(0x1ec),{'univer-cursor-not-allowed':_0x38d9a1===h[_0x5a44c8(0x1d6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x38d9a1!==h[_0x5a44c8(0x1d6)]}),'type':_0x5a44c8(0x1ae),'children':_0x3a52ad(B,{'className':_0x5a44c8(0x1f2)})})}):null;}function $e(_0x5ef130){var _0x556fcb=_0x2886db;const {status:_0x1bcafa,coordinator:_0x179ae0}=_0x5ef130;switch(_0x1bcafa){case h[_0x556fcb(0x1e4)]:return _0x3a52ad(Fe,{'coordinator':_0x179ae0});case h[_0x556fcb(0x191)]:return _0x3a52ad(He,{'coordinator':_0x179ae0});case h['NOT_FOLLOWING']:return _0x3a52ad(je,{'coordinator':_0x179ae0});case h[_0x556fcb(0x1d6)]:return _0x3a52ad(Ve,{});case h[_0x556fcb(0x202)]:return _0x3a52ad(Ue,{'coordinator':_0x179ae0});default:return null;}}function Fe(_0x11ba29){var _0x9421a5=_0x2886db;const {coordinator:_0x4c4bb1}=_0x11ba29;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad(_0x9421a5(0x17b),{'className':_0x9421a5(0x1c8),'children':_0x9421a5(0x179)}),_0x3a52ad(_0x2dde90,{'onClick':()=>_0x4c4bb1[_0x9421a5(0x188)](),'children':_0x9421a5(0x1d5)})]});}function He(_0x3f9821){var _0x1841a5=_0x2886db;const {coordinator:_0x44175f}=_0x3f9821;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad('div',{'className':_0x1841a5(0x1c8),'children':_0x1841a5(0x18a)}),_0x3a52ad(_0x2dde90,{'onClick':()=>_0x44175f[_0x1841a5(0x1e6)](),'children':_0x1841a5(0x20e)})]});}function je(_0x198f94){var _0x3986e8=_0x2886db;const {coordinator:_0x4fac19}=_0x198f94;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad(_0x3986e8(0x17b),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x3986e8(0x1df)}),_0x3a52ad(_0x2dde90,{'variant':_0x3986e8(0x1f5),'onClick':()=>_0x4fac19[_0x3986e8(0x1be)](),'children':_0x3986e8(0x1b6)})]});}function Ue(_0x302018){var _0x44ca58=_0x2886db;const {coordinator:_0x5b74c5}=_0x302018;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad(_0x44ca58(0x17b),{'className':_0x44ca58(0x1c8),'children':_0x44ca58(0x1f3)}),_0x3a52ad(_0x2dde90,{'variant':_0x44ca58(0x1e7),'onClick':()=>_0x5b74c5[_0x44ca58(0x1d4)](),'children':_0x44ca58(0x220)})]});}function Ve(){return _0x3a52ad(_0x1dbeda,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x2886db(0x1e0)],ke=(_0x2e7ded,_0x58b8e7,_0x2ee39d,_0x4fa189)=>{var _0x50eb0b=_0x2886db;for(var _0x1ab85f=_0x4fa189>0x1?void 0x0:_0x4fa189?Me(_0x58b8e7,_0x2ee39d):_0x58b8e7,_0x30950c=_0x2e7ded[_0x50eb0b(0x205)]-0x1,_0x7ac355;_0x30950c>=0x0;_0x30950c--)(_0x7ac355=_0x2e7ded[_0x30950c])&&(_0x1ab85f=_0x7ac355(_0x1ab85f)||_0x1ab85f);return _0x1ab85f;},$=(_0x2cc36e,_0x268480)=>(_0x32d3fe,_0x57be99)=>_0x268480(_0x32d3fe,_0x57be99,_0x2cc36e);let b=class extends _0x172f34{constructor(_0x4e7ce1,_0x4dc55c){var _0x3cbe25=_0x2886db;super(),this[_0x3cbe25(0x21f)]=_0x4e7ce1,this[_0x3cbe25(0x199)]=_0x4dc55c,this[_0x3cbe25(0x17f)]();}[_0x2886db(0x17f)](){var _0x10f90d=_0x2886db;this[_0x10f90d(0x1f1)](this['_uiPartsService'][_0x10f90d(0x1cf)](_0x2083b0[_0x10f90d(0x1e9)],()=>_0x1b45da(Te,this['_injector'])));}};b=ke([$(0x0,_0x10aaa1(_0x2015d8)),$(0x1,_0x125ac6)],b);var Ge=Object[_0x2886db(0x1fe)],We=Object[_0x2886db(0x1e0)],Ye=(_0x13b7e2,_0x2ddc74,_0x1fee3c)=>_0x2ddc74 in _0x13b7e2?Ge(_0x13b7e2,_0x2ddc74,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1fee3c}):_0x13b7e2[_0x2ddc74]=_0x1fee3c,Be=(_0x5d8761,_0x1708fc,_0x2e1570,_0xc8308b)=>{var _0x269401=_0x2886db;for(var _0x17f8ee=_0xc8308b>0x1?void 0x0:_0xc8308b?We(_0x1708fc,_0x2e1570):_0x1708fc,_0x111bf3=_0x5d8761[_0x269401(0x205)]-0x1,_0x396966;_0x111bf3>=0x0;_0x111bf3--)(_0x396966=_0x5d8761[_0x111bf3])&&(_0x17f8ee=_0x396966(_0x17f8ee)||_0x17f8ee);return _0x17f8ee;},F=(_0x40f86e,_0x599b00)=>(_0xea2eb0,_0x4b4696)=>_0x599b00(_0xea2eb0,_0x4b4696,_0x40f86e),J=(_0x121364,_0x3d93f3,_0x4a838f)=>Ye(_0x121364,typeof _0x3d93f3!=_0x2886db(0x1c0)?_0x3d93f3+'':_0x3d93f3,_0x4a838f);const Ze=_0x2886db(0x19a);let O=class extends _0x3a7036{constructor(_0x3ba33d=T,_0x22916c,_0x45972d){var _0x50a1be=_0x2886db;super(),this['_config']=_0x3ba33d,this[_0x50a1be(0x21f)]=_0x22916c,this[_0x50a1be(0x1a6)]=_0x45972d;const {..._0x356fb4}=_0x4c5a48({},T,this[_0x50a1be(0x21d)]);this[_0x50a1be(0x1a6)][_0x50a1be(0x186)](Oe,_0x356fb4);}[_0x2886db(0x201)](){var _0x42f15d=_0x2886db;_0x5c518a(this['_injector'],_0x1d9838([[L],[I],[m],[b]],this[_0x42f15d(0x21d)]['override'])),_0x1e2724(this['_injector'],[[m]]);}['onRendered'](){_0x1e2724(this['_injector'],[[b]]);}};J(O,_0x2886db(0x171),_0x4aff88[_0x2886db(0x182)]),J(O,_0x2886db(0x1a8),Ze),O=Be([_0x35d3f7(_0x5a9880),F(0x1,_0x10aaa1(_0x2015d8)),F(0x2,_0x37a6e8)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0xb981bb=_0x128b;(function(_0x2ca021,_0x30c7e5){var _0x4e3164=_0x128b,_0x4e5ebd=_0x2ca021();while(!![]){try{var _0x17db50=parseInt(_0x4e3164(0x1aa))/0x1*(-parseInt(_0x4e3164(0x176))/0x2)+-parseInt(_0x4e3164(0x1d0))/0x3+parseInt(_0x4e3164(0x186))/0x4*(parseInt(_0x4e3164(0x19c))/0x5)+-parseInt(_0x4e3164(0x1a4))/0x6+parseInt(_0x4e3164(0x169))/0x7+-parseInt(_0x4e3164(0x201))/0x8+parseInt(_0x4e3164(0x1ef))/0x9*(-parseInt(_0x4e3164(0x1e8))/0xa);if(_0x17db50===_0x30c7e5)break;else _0x4e5ebd['push'](_0x4e5ebd['shift']());}catch(_0x12a640){_0x4e5ebd['push'](_0x4e5ebd['shift']());}}}(_0x1c8d,0x58f88));var q=Object['defineProperty'],z=(_0x1d85c7,_0x481baa,_0x12349b)=>_0x481baa in _0x1d85c7?q(_0x1d85c7,_0x481baa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x12349b}):_0x1d85c7[_0x481baa]=_0x12349b,d=(_0x5d03eb,_0x4a05b3,_0x440947)=>z(_0x5d03eb,typeof _0x4a05b3!=_0xb981bb(0x1d5)?_0x4a05b3+'':_0x4a05b3,_0x440947);import{CollaborationSessionService as _0xa7a23,SessionStatus as _0x109da2,UniverCollaborationClientPlugin as _0x4f654}from'@univerjs-pro/collaboration-client';function _0x128b(_0x28bb5a,_0x3754be){var _0x1c8d5c=_0x1c8d();return _0x128b=function(_0x128b28,_0x4ab4a2){_0x128b28=_0x128b28-0x153;var _0x2ce661=_0x1c8d5c[_0x128b28];return _0x2ce661;},_0x128b(_0x28bb5a,_0x3754be);}import{Disposable as _0x1f0cb2,toDisposable as _0x175da3,Inject as _0x1bcd7d,IUniverInstanceService as _0xcc8435,Injector as _0x37a562,IConfigService as _0x509fd7,ICommandService as _0x936333,RxDisposable as _0x431f32,UniverInstanceType as _0x3a976a,DisposableCollection as _0x467461,CommandType as _0x50e7a3,DependentOn as _0x5bda4b,Plugin as _0x267245,merge as _0x32e7ad,registerDependencies as _0x3d2a61,mergeOverrideWithDependencies as _0x299ee2,touchDependencies as _0x3fac19}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3a3cea,InsertSheetMutation as _0x1c8818}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x541067,SetScrollOperation as _0x34e2eb}from'@univerjs/sheets-ui';import{useDependency as _0x11f2c5,useObservable as _0x107d72,IUIPartsService as _0x2658e0,BuiltInUIPart as _0x475348,connectInjector as _0x2d5549}from'@univerjs/ui';import{jsx as _0x4c3f9c,jsxs as _0x55ac32,Fragment as _0x35c6a7}from'react/jsx-runtime';import{Dropdown as _0xb7c916,clsx as _0xb5c652,Button as _0x3c1ff4}from'@univerjs/design';import{forwardRef as _0x48edea,useRef as _0x4b0343,createElement as _0x299d9a,useState as _0x444650,useEffect as _0x4112e7}from'react';import{CollaborationEvent as _0x3796e6,parseProtocolChangeset as _0x50217b}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x292abc,Subject as _0x24f5d6}from'rxjs';import{takeUntil as _0x586d99,throttleTime as _0x90091d}from'rxjs/operators';const Oe=_0xb981bb(0x17d),T={};function _0x1c8d(){var _0xf1aa62=['1013168zeydyB','_commandService','text','defineProperty','defIds','NOT_FOLLOWING','_sharedOperations','add','function','getTypeOfUnitDisposed$','type','toString','You\x27re\x20following\x20the\x20presenter','_startFollowing','currentColor','presenter','Start','_handleOnline','Stop\x20presenting','current','mutations','string','getLiveShareCoordinator','univer-size-4','OFFLINE','from','IDLE','fill','3112781lpyRqp','complete','hasOwnProperty','You\x27re\x20not\x20following\x20the\x20presenter','idle','map','apply','sessionStatus$','dispose$','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','_handleOperation','_uiPartsService','_handleNewHost','2JRQQaC','entries','You\x27re\x20presenting\x20the\x20document','startFollowing','none','status$','prototype','live-share.config','data','1em','has','NEW_CHANGESETS','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','_stopFollowing','set','_handleTerminate','8168JdRjRI','getInitialStates','parse','getUnitId','unsubscribe','UNIVER_SHEET','button','getOwnPropertyDescriptor','getValue','OPERATION','pluginName','_startLiveShareCoordinator','div','unitId','stopFollowing','get','registerSharedOperation','Start\x20following','http://www.w3.org/2000/svg','find','url(#$1','values','1565wCNlRA','0\x200\x2017\x2017','indexOf','displayName','then','subscribe','LIVESHARE_TERMINATE','operations','98286iVqwvn','idSuffix','defs','_collabSessionService','_collabSession','univer-w-full\x20univer-mb-3\x20univer-text-sm','75931sZpcqW','children','next','getConfig','UNIVER_UNKNOWN','LIVESHARE_NEW_HOST','_entities','forEach','_init','PRESENTING','evenodd','path','_handleOffline','Present\x20this\x20document','LIVESHARE_FETCH_OPERATIONS','_stopPresenting','includes','_beIdle','_startPresenting','dispose','LIVESHARE_REQUEST_HOST','offline','delete','override','onCommandExecuted','following','_liveShareService','xlink:href','_config','onStarting','executeCommand','LIVESHARE_OPERATION','tryStartPresenting','UNIVER_LIVE_SHARE_PLUGIN','mask','disposeWithMe','assign','colorChannel1','731607eFWPOD','_status$','_fetchOperations','clear','_reporters','symbol','UniverIcon','getCurrentTypeOfUnit$','icon','FOLLOWING','attrs','ONLINE','event$','memberID','params','_presenter','svg','HEADER_MENU','getMemberID','requireSession','send','substring','onRendered','_unitID','2460tiXtuI','tag','use','length','pipe','_status','replace','9387MDdBOc','init','live-share-icon','stringify','getOwnPropertySymbols','trim','_injector','concat','shouldShareOperation','_univerInstanceService','className','extend','not-following','_commandDisposable','_mountLiveShare','univerjs-icon\x20univerjs-icon-','_configService','reverse'];_0x1c8d=function(){return _0xf1aa62;};return _0x1c8d();}class L extends _0x1f0cb2{constructor(){var _0x5a3d64=_0xb981bb;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x5a3d64(0x1d4),new Set());}[_0xb981bb(0x196)](_0x4aea05){var _0x54b24d=_0xb981bb;return this['_sharedOperations'][_0x54b24d(0x154)](_0x4aea05),_0x175da3(()=>this[_0x54b24d(0x153)][_0x54b24d(0x1c0)](_0x4aea05));}['registerInitialStateReporter'](_0xb2d5a7){var _0x457bc1=_0xb981bb;return this[_0x457bc1(0x1d4)][_0x457bc1(0x154)](_0xb2d5a7),_0x175da3(()=>this[_0x457bc1(0x1d4)][_0x457bc1(0x1c0)](_0xb2d5a7));}[_0xb981bb(0x1f7)](_0x1d51c7){var _0x436a4e=_0xb981bb;return this[_0x436a4e(0x153)][_0x436a4e(0x180)](_0x1d51c7);}[_0xb981bb(0x187)](_0x274ef8){var _0x53be37=_0xb981bb;return Array[_0x53be37(0x166)](this['_reporters'])[_0x53be37(0x16e)](_0xd91ecb=>_0xd91ecb(_0x274ef8));}}var Ee=Object[_0xb981bb(0x18d)],we=(_0x3b4233,_0xbf9c43,_0xb16272,_0x571135)=>{var _0x2de9ce=_0xb981bb;for(var _0x127157=_0x571135>0x1?void 0x0:_0x571135?Ee(_0xbf9c43,_0xb16272):_0xbf9c43,_0x2ea51a=_0x3b4233[_0x2de9ce(0x1eb)]-0x1,_0xfb2ed5;_0x2ea51a>=0x0;_0x2ea51a--)(_0xfb2ed5=_0x3b4233[_0x2ea51a])&&(_0x127157=_0xfb2ed5(_0x127157)||_0x127157);return _0x127157;},Ne=(_0x49143c,_0x43513c)=>(_0x330532,_0x1971fe)=>_0x43513c(_0x330532,_0x1971fe,_0x49143c);let m=class extends _0x1f0cb2{constructor(_0x560661){var _0x332846=_0xb981bb;super(),this[_0x332846(0x1c4)]=_0x560661,this['_init']();}[_0xb981bb(0x1b2)](){var _0x4ace0b=_0xb981bb;[_0x541067['id'],_0x34e2eb['id'],_0x3a3cea['id']][_0x4ace0b(0x1b1)](_0x4ca4d7=>{var _0x2dee9c=_0x4ace0b;this[_0x2dee9c(0x1cd)](this[_0x2dee9c(0x1c4)][_0x2dee9c(0x196)](_0x4ca4d7));});}};m=we([Ne(0x0,_0x1bcd7d(L))],m);var c=function(){var _0x3db774=_0xb981bb;return c=Object[_0x3db774(0x1ce)]||function(_0x4f2e62){var _0x3058e4=_0x3db774;for(var _0x1a5fac,_0x4468fe=0x1,_0x3a2281=arguments['length'];_0x4468fe<_0x3a2281;_0x4468fe++){_0x1a5fac=arguments[_0x4468fe];for(var _0x5b8a9d in _0x1a5fac)Object['prototype'][_0x3058e4(0x16b)]['call'](_0x1a5fac,_0x5b8a9d)&&(_0x4f2e62[_0x5b8a9d]=_0x1a5fac[_0x5b8a9d]);}return _0x4f2e62;},c[_0x3db774(0x16f)](this,arguments);},Ce=function(_0x3f5bd5,_0x402568){var _0x54821f=_0xb981bb,_0x4e0803={};for(var _0x63eb59 in _0x3f5bd5)Object['prototype']['hasOwnProperty']['call'](_0x3f5bd5,_0x63eb59)&&_0x402568[_0x54821f(0x19e)](_0x63eb59)<0x0&&(_0x4e0803[_0x63eb59]=_0x3f5bd5[_0x63eb59]);if(_0x3f5bd5!=null&&typeof Object[_0x54821f(0x1f3)]==_0x54821f(0x155)){for(var _0x4bc143=0x0,_0x63eb59=Object['getOwnPropertySymbols'](_0x3f5bd5);_0x4bc143<_0x63eb59['length'];_0x4bc143++)_0x402568[_0x54821f(0x19e)](_0x63eb59[_0x4bc143])<0x0&&Object[_0x54821f(0x17c)]['propertyIsEnumerable']['call'](_0x3f5bd5,_0x63eb59[_0x4bc143])&&(_0x4e0803[_0x63eb59[_0x4bc143]]=_0x3f5bd5[_0x63eb59[_0x4bc143]]);}return _0x4e0803;},W=_0x48edea(function(_0x26068f,_0x39530b){var _0x14a876=_0xb981bb,_0x30fc4a=_0x26068f[_0x14a876(0x1d8)],_0x2b2f94=_0x26068f['id'],_0x46853=_0x26068f[_0x14a876(0x1f9)],_0x86baf6=_0x26068f['extend'],_0x20935e=Ce(_0x26068f,[_0x14a876(0x1d8),'id','className',_0x14a876(0x1fa)]),_0x1db1a3=_0x14a876(0x1fe)[_0x14a876(0x1f6)](_0x2b2f94,'\x20')[_0x14a876(0x1f6)](_0x46853||'')[_0x14a876(0x1f4)](),_0x341a77=_0x4b0343('_'[_0x14a876(0x1f6)](Le()));return Y(_0x30fc4a,''['concat'](_0x2b2f94),{'defIds':_0x30fc4a[_0x14a876(0x205)],'idSuffix':_0x341a77[_0x14a876(0x160)]},c({'ref':_0x39530b,'className':_0x1db1a3},_0x20935e),_0x86baf6);});function Y(_0x25019d,_0x4cc3ea,_0x4afdcf,_0x679898,_0x494523){var _0x18a2d8=_0xb981bb;return _0x299d9a(_0x25019d[_0x18a2d8(0x1e9)],c(c({'key':_0x4cc3ea},De(_0x25019d,_0x4afdcf,_0x494523)),_0x679898),(xe(_0x25019d,_0x4afdcf)[_0x18a2d8(0x1ab)]||[])['map'](function(_0x1e6f72,_0x42dbdb){var _0x3b5419=_0x18a2d8;return Y(_0x1e6f72,''[_0x3b5419(0x1f6)](_0x4cc3ea,'-')[_0x3b5419(0x1f6)](_0x25019d[_0x3b5419(0x1e9)],'-')[_0x3b5419(0x1f6)](_0x42dbdb),_0x4afdcf,void 0x0,_0x494523);}));}function De(_0xad1f03,_0xd33e45,_0x2f51a7){var _0x286327=_0xb981bb,_0x1e5fa9=c({},_0xad1f03['attrs']);_0x2f51a7!=null&&_0x2f51a7[_0x286327(0x1cf)]&&_0x1e5fa9[_0x286327(0x168)]===_0x286327(0x1cf)&&(_0x1e5fa9[_0x286327(0x168)]=_0x2f51a7[_0x286327(0x1cf)]),_0xad1f03[_0x286327(0x1e9)]==='mask'&&_0x1e5fa9['id']&&(_0x1e5fa9['id']=_0x1e5fa9['id']+_0xd33e45['idSuffix']),Object['entries'](_0x1e5fa9)['forEach'](function(_0x39c6c0){var _0x47d003=_0x286327,_0x10cd0a=_0x39c6c0[0x0],_0x13ca1f=_0x39c6c0[0x1];_0x10cd0a===_0x47d003(0x1cc)&&typeof _0x13ca1f==_0x47d003(0x162)&&(_0x1e5fa9[_0x10cd0a]=_0x13ca1f[_0x47d003(0x1ee)](/url\(#(.*)\)/,_0x47d003(0x19a)['concat'](_0xd33e45['idSuffix'],')')));});var _0x2c7b57=_0xd33e45[_0x286327(0x205)];return!_0x2c7b57||_0x2c7b57[_0x286327(0x1eb)]===0x0||(_0xad1f03[_0x286327(0x1e9)]===_0x286327(0x1ea)&&_0x1e5fa9['xlink:href']&&(_0x1e5fa9[_0x286327(0x1c5)]=_0x1e5fa9[_0x286327(0x1c5)]+_0xd33e45[_0x286327(0x1a5)]),Object[_0x286327(0x177)](_0x1e5fa9)[_0x286327(0x1b1)](function(_0x135374){var _0x343f34=_0x286327,_0x129395=_0x135374[0x0],_0x1cefb4=_0x135374[0x1];typeof _0x1cefb4==_0x343f34(0x162)&&(_0x1e5fa9[_0x129395]=_0x1cefb4[_0x343f34(0x1ee)](/url\(#(.*)\)/,_0x343f34(0x19a)[_0x343f34(0x1f6)](_0xd33e45[_0x343f34(0x1a5)],')')));})),_0x1e5fa9;}function xe(_0x977d58,_0x20d48c){var _0x2a264a=_0xb981bb,_0x366436,_0x4fedc6=_0x20d48c['defIds'];return!_0x4fedc6||_0x4fedc6[_0x2a264a(0x1eb)]===0x0?_0x977d58:_0x977d58[_0x2a264a(0x1e9)]===_0x2a264a(0x1a6)&&(!((_0x366436=_0x977d58['children'])===null||_0x366436===void 0x0)&&_0x366436[_0x2a264a(0x1eb)])?c(c({},_0x977d58),{'children':_0x977d58[_0x2a264a(0x1ab)][_0x2a264a(0x16e)](function(_0x2c4a16){var _0x38d933=_0x2a264a;return typeof _0x2c4a16[_0x38d933(0x1da)]['id']==_0x38d933(0x162)&&_0x4fedc6&&_0x4fedc6['includes'](_0x2c4a16[_0x38d933(0x1da)]['id'])?c(c({},_0x2c4a16),{'attrs':c(c({},_0x2c4a16['attrs']),{'id':_0x2c4a16[_0x38d933(0x1da)]['id']+_0x20d48c[_0x38d933(0x1a5)]})}):_0x2c4a16;})}):_0x977d58;}function Le(){var _0x16890b=_0xb981bb;return Math['random']()[_0x16890b(0x158)](0x24)[_0x16890b(0x1e5)](0x2,0x8);}W[_0xb981bb(0x19f)]=_0xb981bb(0x1d6);var ye={'tag':_0xb981bb(0x1e0),'attrs':{'xmlns':_0xb981bb(0x198),'fill':_0xb981bb(0x17a),'viewBox':_0xb981bb(0x19d),'width':'1em','height':_0xb981bb(0x17f)},'children':[{'tag':_0xb981bb(0x1b5),'attrs':{'fill':_0xb981bb(0x15b),'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':_0xb981bb(0x1b5),'attrs':{'fill':_0xb981bb(0x15b),'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':_0xb981bb(0x1b4),'clipRule':'evenodd'}}]},B=_0x48edea(function(_0x599e11,_0x41a3dd){var _0x2a03e3=_0xb981bb;return _0x299d9a(W,Object[_0x2a03e3(0x1ce)]({},_0x599e11,{'id':_0x2a03e3(0x1f1),'ref':_0x41a3dd,'icon':ye}));});B['displayName']='LiveShareIcon';var Re=Object[_0xb981bb(0x18d)],Z=(_0xd5b7a6,_0x323be5,_0x42d499,_0x12c586)=>{var _0x7b4d22=_0xb981bb;for(var _0x26216c=_0x12c586>0x1?void 0x0:_0x12c586?Re(_0x323be5,_0x42d499):_0x323be5,_0x2203cf=_0xd5b7a6[_0x7b4d22(0x1eb)]-0x1,_0x5d6a45;_0x2203cf>=0x0;_0x2203cf--)(_0x5d6a45=_0xd5b7a6[_0x2203cf])&&(_0x26216c=_0x5d6a45(_0x26216c)||_0x26216c);return _0x26216c;},f=(_0x2f96db,_0x3f28dd)=>(_0x2ae3fd,_0x2b566e)=>_0x3f28dd(_0x2ae3fd,_0x2b566e,_0x2f96db);let I=class extends _0x431f32{constructor(_0x18a798,_0x12fcc3,_0x1629fa){var _0x3deab9=_0xb981bb;super(),d(this,'_entities',new Map()),(this[_0x3deab9(0x1f8)]=_0x18a798,this[_0x3deab9(0x1f5)]=_0x12fcc3,this[_0x3deab9(0x1a7)]=_0x1629fa,this[_0x3deab9(0x1b2)]());}async[_0xb981bb(0x163)](_0x5f5bcf){var _0xcca69c=_0xb981bb;return this[_0xcca69c(0x1b0)][_0xcca69c(0x180)](_0x5f5bcf)||await this[_0xcca69c(0x191)](_0x5f5bcf),this[_0xcca69c(0x1b0)][_0xcca69c(0x195)](_0x5f5bcf);}[_0xb981bb(0x1b2)](){var _0x305e28=_0xb981bb;this[_0x305e28(0x1f8)]['getTypeOfUnitAdded$'](_0x3a976a[_0x305e28(0x18b)])['pipe'](_0x586d99(this[_0x305e28(0x171)]))[_0x305e28(0x1a1)](async _0x1182a0=>{var _0x1b2582=_0x305e28;const _0x5f3138=_0x1182a0[_0x1b2582(0x189)]();this[_0x1b2582(0x1b0)][_0x1b2582(0x180)](_0x5f3138)||this[_0x1b2582(0x191)](_0x5f3138);}),this['_univerInstanceService'][_0x305e28(0x156)](_0x3a976a[_0x305e28(0x18b)])[_0x305e28(0x1ec)](_0x586d99(this['dispose$']))[_0x305e28(0x1a1)](_0x43c7ac=>{var _0x116ff6=_0x305e28;const _0x199a51=_0x43c7ac[_0x116ff6(0x189)](),_0x22ca88=this[_0x116ff6(0x1b0)][_0x116ff6(0x195)](_0x199a51);_0x22ca88==null||_0x22ca88[_0x116ff6(0x1bd)]();});}async[_0xb981bb(0x191)](_0x136870){var _0x3aaeda=_0xb981bb;const _0x1b6d45=await this[_0x3aaeda(0x1a7)][_0x3aaeda(0x1e3)](_0x136870),_0x32c709=this[_0x3aaeda(0x1f5)]['createInstance'](C,_0x136870,_0x1b6d45);return _0x32c709[_0x3aaeda(0x1f0)](),this['_entities'][_0x3aaeda(0x184)](_0x136870,_0x32c709),_0x32c709;}};I=Z([f(0x0,_0xcc8435),f(0x1,_0x1bcd7d(_0x37a562)),f(0x2,_0x1bcd7d(_0xa7a23))],I);var h=(_0x5a858b=>(_0x5a858b['OFFLINE']='offline',_0x5a858b[_0xb981bb(0x167)]=_0xb981bb(0x16d),_0x5a858b[_0xb981bb(0x1d9)]='following',_0x5a858b['NOT_FOLLOWING']=_0xb981bb(0x1fb),_0x5a858b[_0xb981bb(0x1b3)]='presenting',_0x5a858b))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x431f32{constructor(_0x24a9d7,_0x75f55c,_0x5534f8,_0x246856,_0x3a9ce2){var _0x3dd1d3=_0xb981bb;super(),d(this,_0x3dd1d3(0x1d1),new _0x292abc(_0x3dd1d3(0x16d))),d(this,'status$',this[_0x3dd1d3(0x1d1)]['asObservable']()),d(this,_0x3dd1d3(0x1b2),!0x1),d(this,_0x3dd1d3(0x1fc),null),d(this,_0x3dd1d3(0x1df),null),(this['_unitID']=_0x24a9d7,this[_0x3dd1d3(0x1a8)]=_0x75f55c,this[_0x3dd1d3(0x1ff)]=_0x5534f8,this[_0x3dd1d3(0x1c4)]=_0x246856,this[_0x3dd1d3(0x202)]=_0x3a9ce2);}get['_status'](){var _0x222bda=_0xb981bb;return this[_0x222bda(0x1d1)][_0x222bda(0x18e)]();}[_0xb981bb(0x1bd)](){var _0x515bc3=_0xb981bb,_0x16bb32;(_0x16bb32=this[_0x515bc3(0x1fc)])==null||_0x16bb32[_0x515bc3(0x1bd)](),this[_0x515bc3(0x1d1)][_0x515bc3(0x1ac)](_0x515bc3(0x16d)),this[_0x515bc3(0x1d1)][_0x515bc3(0x16a)]();}[_0xb981bb(0x1f0)](){var _0xa24847=_0xb981bb;this['_init']||(this[_0xa24847(0x1b2)]=!0x0,this[_0xa24847(0x1a8)][_0xa24847(0x170)][_0xa24847(0x1ec)](_0x586d99(this[_0xa24847(0x171)]))[_0xa24847(0x1a1)](_0x284340=>{var _0x470fbf=_0xa24847;switch(_0x284340){case _0x109da2[_0x470fbf(0x165)]:this[_0x470fbf(0x1b6)]();break;case _0x109da2[_0x470fbf(0x1db)]:this[_0x470fbf(0x15e)]();break;}}),this[_0xa24847(0x1a8)][_0xa24847(0x1dc)]['pipe'](_0x586d99(this['dispose$']))[_0xa24847(0x1a1)](_0x4a58e2=>{var _0x50d29c=_0xa24847;const {eventID:_0x1436f9}=_0x4a58e2;switch(_0x1436f9){case _0x3796e6[_0x50d29c(0x1af)]:this[_0x50d29c(0x175)](_0x4a58e2);break;case _0x3796e6[_0x50d29c(0x1c9)]:this[_0x50d29c(0x173)](_0x4a58e2);break;case _0x3796e6[_0x50d29c(0x1a2)]:this[_0x50d29c(0x185)]();break;case _0x3796e6[_0x50d29c(0x181)]:this['_handleNewChangeSets'](_0x4a58e2);break;}}));}[_0xb981bb(0x1ca)](){var _0x217daf=_0xb981bb;this[_0x217daf(0x1a8)][_0x217daf(0x1e4)]({'eventID':_0x3796e6[_0x217daf(0x1be)],'data':{'unitID':this['_unitID'],'userID':this[_0x217daf(0x1a8)][_0x217daf(0x1e2)]()}},this[_0x217daf(0x1e7)]);}['stopPresenting'](){var _0x16b9ba=_0xb981bb;this[_0x16b9ba(0x1ed)]==='presenting'&&(this[_0x16b9ba(0x1d1)][_0x16b9ba(0x1ac)](_0x16b9ba(0x16d)),this[_0x16b9ba(0x1a8)][_0x16b9ba(0x1e4)]({'eventID':_0x3796e6[_0x16b9ba(0x1a2)],'data':{'unitID':this[_0x16b9ba(0x1e7)]}},this[_0x16b9ba(0x1e7)]));}[_0xb981bb(0x179)](){var _0x4fc44e=_0xb981bb;this[_0x4fc44e(0x1ed)]==='not-following'&&(this[_0x4fc44e(0x1d1)]['next']('following'),this[_0x4fc44e(0x15a)]());}[_0xb981bb(0x194)](){var _0x8cb4e1=_0xb981bb;this[_0x8cb4e1(0x1ed)]===_0x8cb4e1(0x1c3)&&this[_0x8cb4e1(0x183)]();}[_0xb981bb(0x175)](_0x1b4888){var _0x5925de=_0xb981bb;const {presenter:_0x4ae5eb}=_0x1b4888[_0x5925de(0x17e)],_0x30c954=this[_0x5925de(0x1a8)][_0x5925de(0x1e2)]();this['_presenter']=_0x4ae5eb,_0x4ae5eb===_0x30c954?(this[_0x5925de(0x183)](),this[_0x5925de(0x1bc)]()):this['_status']!==_0x5925de(0x1fb)&&(this[_0x5925de(0x1b9)](),this[_0x5925de(0x15a)]());}[_0xb981bb(0x1d2)](){var _0x4b2ec4=_0xb981bb;const _0x457e81={'eventID':_0x3796e6[_0x4b2ec4(0x1b8)]};this[_0x4b2ec4(0x1a8)]['send'](_0x457e81,this['_unitID']);}[_0xb981bb(0x185)](){var _0x267741=_0xb981bb;this[_0x267741(0x1df)]=null,this[_0x267741(0x1ed)]!=='presenting'&&this[_0x267741(0x1bb)]();}['_handleNewChangeSets'](_0x4902e4){var _0x4d8eb7=_0xb981bb;if(this[_0x4d8eb7(0x1ed)]===_0x4d8eb7(0x1c3)&&this[_0x4d8eb7(0x1df)]===_0x4902e4[_0x4d8eb7(0x17e)][_0x4d8eb7(0x1dd)]){const _0x4711b3=_0x50217b(_0x4902e4[_0x4d8eb7(0x17e)])[_0x4d8eb7(0x161)][_0x4d8eb7(0x200)]()[_0x4d8eb7(0x199)](_0x187c00=>_0x187c00['id']===_0x1c8818['id']);if(_0x4711b3){const _0x55763d=_0x4711b3[_0x4d8eb7(0x1de)][_0x4d8eb7(0x193)],_0x3c087b=_0x4711b3['params']['sheet']['id'];setTimeout(()=>{var _0x32aa70=_0x4d8eb7;this[_0x32aa70(0x202)][_0x32aa70(0x1c8)](_0x3a3cea['id'],{'unitId':_0x55763d,'subUnitId':_0x3c087b},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x1046a9=_0xb981bb;this['_status$'][_0x1046a9(0x1ac)]('presenting');const _0x278730=new Map(),_0x2d3df1=this[_0x1046a9(0x1fc)]=new _0x467461();_0x2d3df1[_0x1046a9(0x154)](_0x175da3(()=>{var _0xd9b076=_0x1046a9;_0x278730[_0xd9b076(0x1b1)](_0x3bd7aa=>_0x3bd7aa[_0xd9b076(0x16a)]()),_0x278730[_0xd9b076(0x1d3)]();})),_0x2d3df1[_0x1046a9(0x154)](this[_0x1046a9(0x202)][_0x1046a9(0x1c2)](_0x3b2f23=>{var _0x32984c=_0x1046a9,_0x2c7ce3;if(_0x3b2f23[_0x32984c(0x157)]!==_0x50e7a3[_0x32984c(0x18f)]||!this[_0x32984c(0x1c4)][_0x32984c(0x1f7)](_0x3b2f23['id']))return;const {id:_0x2fe26e}=_0x3b2f23;let _0x23f4da;_0x278730[_0x32984c(0x180)](_0x2fe26e)?_0x23f4da=_0x278730['get'](_0x2fe26e):(_0x23f4da=new _0x24f5d6(),_0x278730[_0x32984c(0x184)](_0x2fe26e,_0x23f4da),_0x23f4da['pipe'](_0x90091d((_0x2c7ce3=this['_configService'][_0x32984c(0x1ad)](Pe))!=null?_0x2c7ce3:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x32984c(0x1a1)](_0x250ee4=>{var _0x2629a4=_0x32984c;this[_0x2629a4(0x1a8)]['send']({'eventID':_0x3796e6[_0x2629a4(0x1c9)],'data':{'unitID':this['_unitID'],'operations':{[_0x250ee4['id']]:{'id':_0x250ee4['id'],'params':JSON[_0x2629a4(0x1f2)](_0x250ee4[_0x2629a4(0x1de)])}}}},this[_0x2629a4(0x1e7)]);})),_0x23f4da[_0x32984c(0x1ac)](_0x3b2f23);})),this['_liveShareService']['getInitialStates'](this[_0x1046a9(0x1e7)])[_0x1046a9(0x1b1)](_0x423b63=>this[_0x1046a9(0x1a8)]['send']({'eventID':_0x3796e6[_0x1046a9(0x1c9)],'data':{'unitID':this[_0x1046a9(0x1e7)],'operations':{[_0x423b63['id']]:{'id':_0x423b63['id'],'params':JSON[_0x1046a9(0x1f2)](_0x423b63[_0x1046a9(0x1de)])}}}},this[_0x1046a9(0x1e7)]));}[_0xb981bb(0x1b9)](){var _0x1f6a63=_0xb981bb,_0x2b7f32;this['_status$']['next'](_0x1f6a63(0x16d)),(_0x2b7f32=this['_commandDisposable'])==null||_0x2b7f32['dispose'](),this[_0x1f6a63(0x1fc)]=null;}[_0xb981bb(0x15a)](){var _0x3c0ae5=_0xb981bb,_0x5ea509;(_0x5ea509=this['_commandDisposable'])==null||_0x5ea509[_0x3c0ae5(0x1bd)](),this['_status$'][_0x3c0ae5(0x1ac)](_0x3c0ae5(0x1c3));}[_0xb981bb(0x1bb)](){var _0x276b88=_0xb981bb,_0xdecc28;this[_0x276b88(0x1d1)]['next'](_0x276b88(0x16d)),(_0xdecc28=this[_0x276b88(0x1fc)])==null||_0xdecc28['dispose'](),this[_0x276b88(0x1fc)]=null;}[_0xb981bb(0x183)](){var _0x495545=_0xb981bb,_0x321ae7;this[_0x495545(0x1d1)][_0x495545(0x1ac)](_0x495545(0x1fb)),(_0x321ae7=this[_0x495545(0x1fc)])==null||_0x321ae7[_0x495545(0x1bd)]();}[_0xb981bb(0x173)](_0x1e0a5d){var _0x64f0f5=_0xb981bb;if(['presenting',_0x64f0f5(0x1fb),_0x64f0f5(0x1bf)][_0x64f0f5(0x1ba)](this[_0x64f0f5(0x1ed)])||!_0x1e0a5d[_0x64f0f5(0x17e)][_0x64f0f5(0x15c)]||_0x1e0a5d[_0x64f0f5(0x17e)][_0x64f0f5(0x15c)]===this[_0x64f0f5(0x1a8)]['getMemberID']())return;this[_0x64f0f5(0x1ed)]==='idle'&&this[_0x64f0f5(0x15a)]();const _0x3c59d2=_0x1e0a5d[_0x64f0f5(0x17e)][_0x64f0f5(0x1a3)];Object[_0x64f0f5(0x19b)](_0x3c59d2)[_0x64f0f5(0x1b1)](_0x2ffa66=>{var _0x2faab9=_0x64f0f5;this['_commandService'][_0x2faab9(0x1c8)](_0x2ffa66['id'],_0x2ffa66[_0x2faab9(0x1de)]?JSON[_0x2faab9(0x188)](_0x2ffa66[_0x2faab9(0x1de)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1519bf=_0xb981bb,_0x454f44;this['_status$'][_0x1519bf(0x1ac)](_0x1519bf(0x1bf)),(_0x454f44=this['_commandDisposable'])==null||_0x454f44[_0x1519bf(0x1bd)]();}['_handleOnline'](){var _0x480fe8=_0xb981bb;this[_0x480fe8(0x1d1)]['next'](_0x480fe8(0x16d)),this[_0x480fe8(0x1d2)]();}};C=Z([f(0x2,_0x509fd7),f(0x3,_0x1bcd7d(L)),f(0x4,_0x936333)],C);function Te(){var _0x57f741=_0xb981bb;const _0x1124fe=_0x11f2c5(I),_0x381b73=_0x11f2c5(_0xcc8435),_0x36a6fc=_0x107d72(()=>_0x381b73[_0x57f741(0x1d7)](_0x3a976a[_0x57f741(0x18b)]),void 0x0,!0x1,[]),[_0x280801,_0x4a7ccd]=_0x444650(null),[_0x960ece,_0x546fdd]=_0x444650(h[_0x57f741(0x167)]),_0x35b451=_0x4b0343(null);return _0x4112e7(()=>(_0x36a6fc&&_0x1124fe['getLiveShareCoordinator'](_0x36a6fc[_0x57f741(0x189)]())[_0x57f741(0x1a0)](_0xb04ee1=>{var _0x14300c=_0x57f741;_0x4a7ccd(_0xb04ee1),_0x35b451[_0x14300c(0x160)]=_0xb04ee1[_0x14300c(0x17b)]['subscribe'](_0x6c529a=>{_0x546fdd(_0x6c529a);});}),()=>{var _0x1ace22=_0x57f741,_0x400bb9;(_0x400bb9=_0x35b451[_0x1ace22(0x160)])==null||_0x400bb9[_0x1ace22(0x18a)](),_0x35b451['current']=null;}),[_0x36a6fc,_0x1124fe]),_0x280801?_0x4c3f9c(_0xb7c916,{'align':'end','disabled':_0x960ece===h['OFFLINE'],'className':_0x57f741(0x182),'overlay':_0x4c3f9c($e,{'status':_0x960ece,'coordinator':_0x280801}),'children':_0x4c3f9c('button',{'className':_0xb5c652(_0x57f741(0x172),{'univer-cursor-not-allowed':_0x960ece===h[_0x57f741(0x165)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x960ece!==h[_0x57f741(0x165)]}),'type':_0x57f741(0x18c),'children':_0x4c3f9c(B,{'className':_0x57f741(0x164)})})}):null;}function $e(_0x1afab9){var _0x3f5ff3=_0xb981bb;const {status:_0x489c30,coordinator:_0x97e99c}=_0x1afab9;switch(_0x489c30){case h[_0x3f5ff3(0x167)]:return _0x4c3f9c(Fe,{'coordinator':_0x97e99c});case h[_0x3f5ff3(0x1d9)]:return _0x4c3f9c(He,{'coordinator':_0x97e99c});case h[_0x3f5ff3(0x206)]:return _0x4c3f9c(je,{'coordinator':_0x97e99c});case h[_0x3f5ff3(0x165)]:return _0x4c3f9c(Ve,{});case h[_0x3f5ff3(0x1b3)]:return _0x4c3f9c(Ue,{'coordinator':_0x97e99c});default:return null;}}function Fe(_0x157a28){var _0xdb6711=_0xb981bb;const {coordinator:_0x28998a}=_0x157a28;return _0x55ac32(_0x35c6a7,{'children':[_0x4c3f9c(_0xdb6711(0x192),{'className':_0xdb6711(0x1a9),'children':_0xdb6711(0x1b7)}),_0x4c3f9c(_0x3c1ff4,{'onClick':()=>_0x28998a[_0xdb6711(0x1ca)](),'children':_0xdb6711(0x15d)})]});}function He(_0x1309bc){var _0x1b04b2=_0xb981bb;const {coordinator:_0x1ddc37}=_0x1309bc;return _0x55ac32(_0x35c6a7,{'children':[_0x4c3f9c('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x1b04b2(0x159)}),_0x4c3f9c(_0x3c1ff4,{'onClick':()=>_0x1ddc37[_0x1b04b2(0x194)](),'children':'Stop\x20following'})]});}function je(_0x4302c5){var _0x5519c7=_0xb981bb;const {coordinator:_0x35af22}=_0x4302c5;return _0x55ac32(_0x35c6a7,{'children':[_0x4c3f9c('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5519c7(0x16c)}),_0x4c3f9c(_0x3c1ff4,{'variant':_0x5519c7(0x203),'onClick':()=>_0x35af22['startFollowing'](),'children':_0x5519c7(0x197)})]});}function Ue(_0x29f4a8){var _0x35feb1=_0xb981bb;const {coordinator:_0x5cbda6}=_0x29f4a8;return _0x55ac32(_0x35c6a7,{'children':[_0x4c3f9c('div',{'className':_0x35feb1(0x1a9),'children':_0x35feb1(0x178)}),_0x4c3f9c(_0x3c1ff4,{'variant':'default','onClick':()=>_0x5cbda6['stopPresenting'](),'children':_0x35feb1(0x15f)})]});}function Ve(){return _0x4c3f9c(_0x35c6a7,{'children':'You\x27are\x20offline.'});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x249148,_0x53bad2,_0x97988e,_0x2c9780)=>{var _0x2ea9d9=_0xb981bb;for(var _0x5098ac=_0x2c9780>0x1?void 0x0:_0x2c9780?Me(_0x53bad2,_0x97988e):_0x53bad2,_0x3759c3=_0x249148[_0x2ea9d9(0x1eb)]-0x1,_0x2d0e76;_0x3759c3>=0x0;_0x3759c3--)(_0x2d0e76=_0x249148[_0x3759c3])&&(_0x5098ac=_0x2d0e76(_0x5098ac)||_0x5098ac);return _0x5098ac;},$=(_0x45d42e,_0x59bb20)=>(_0x181d7a,_0x599808)=>_0x59bb20(_0x181d7a,_0x599808,_0x45d42e);let b=class extends _0x1f0cb2{constructor(_0x3a386b,_0xc4307c){var _0x463425=_0xb981bb;super(),this[_0x463425(0x1f5)]=_0x3a386b,this[_0x463425(0x174)]=_0xc4307c,this[_0x463425(0x1fd)]();}['_mountLiveShare'](){var _0xf6084a=_0xb981bb;this[_0xf6084a(0x1cd)](this['_uiPartsService']['registerComponent'](_0x475348[_0xf6084a(0x1e1)],()=>_0x2d5549(Te,this[_0xf6084a(0x1f5)])));}};b=ke([$(0x0,_0x1bcd7d(_0x37a562)),$(0x1,_0x2658e0)],b);var Ge=Object[_0xb981bb(0x204)],We=Object[_0xb981bb(0x18d)],Ye=(_0x342e8b,_0xfad069,_0x2c2755)=>_0xfad069 in _0x342e8b?Ge(_0x342e8b,_0xfad069,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c2755}):_0x342e8b[_0xfad069]=_0x2c2755,Be=(_0x220226,_0x34cdf7,_0x167074,_0x5050c1)=>{var _0x2a4d12=_0xb981bb;for(var _0x5e71b2=_0x5050c1>0x1?void 0x0:_0x5050c1?We(_0x34cdf7,_0x167074):_0x34cdf7,_0x538211=_0x220226[_0x2a4d12(0x1eb)]-0x1,_0x575402;_0x538211>=0x0;_0x538211--)(_0x575402=_0x220226[_0x538211])&&(_0x5e71b2=_0x575402(_0x5e71b2)||_0x5e71b2);return _0x5e71b2;},F=(_0x1dda79,_0x4994fa)=>(_0x250a82,_0x49df34)=>_0x4994fa(_0x250a82,_0x49df34,_0x1dda79),J=(_0x28c95d,_0x55fbd4,_0xa644c7)=>Ye(_0x28c95d,typeof _0x55fbd4!=_0xb981bb(0x1d5)?_0x55fbd4+'':_0x55fbd4,_0xa644c7);const Ze=_0xb981bb(0x1cb);let O=class extends _0x267245{constructor(_0x21cac8=T,_0x12fda2,_0x30f0a2){var _0x24d990=_0xb981bb;super(),this['_config']=_0x21cac8,this[_0x24d990(0x1f5)]=_0x12fda2,this[_0x24d990(0x1ff)]=_0x30f0a2;const {..._0x170cc9}=_0x32e7ad({},T,this[_0x24d990(0x1c6)]);this[_0x24d990(0x1ff)]['setConfig'](Oe,_0x170cc9);}[_0xb981bb(0x1c7)](){var _0x32bd59=_0xb981bb;_0x3d2a61(this[_0x32bd59(0x1f5)],_0x299ee2([[L],[I],[m],[b]],this[_0x32bd59(0x1c6)][_0x32bd59(0x1c1)])),_0x3fac19(this[_0x32bd59(0x1f5)],[[m]]);}[_0xb981bb(0x1e6)](){_0x3fac19(this['_injector'],[[b]]);}};J(O,_0xb981bb(0x157),_0x3a976a[_0xb981bb(0x1ae)]),J(O,_0xb981bb(0x190),Ze),O=Be([_0x5bda4b(_0x4f654),F(0x1,_0x1bcd7d(_0x37a562)),F(0x2,_0x509fd7)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x2886db=_0x695d;(function(_0x2703d9,_0x3b1564){var _0x42cf87=_0x695d,_0x447e39=_0x2703d9();while(!![]){try{var _0x16c535=parseInt(_0x42cf87(0x1a3))/0x1+-parseInt(_0x42cf87(0x1ea))/0x2+parseInt(_0x42cf87(0x1e2))/0x3+-parseInt(_0x42cf87(0x1c1))/0x4+parseInt(_0x42cf87(0x1a0))/0x5*(parseInt(_0x42cf87(0x1bb))/0x6)+parseInt(_0x42cf87(0x187))/0x7+parseInt(_0x42cf87(0x1c2))/0x8;if(_0x16c535===_0x3b1564)break;else _0x447e39['push'](_0x447e39['shift']());}catch(_0x21a2b3){_0x447e39['push'](_0x447e39['shift']());}}}(_0xe8c5,0xc1a67));var q=Object[_0x2886db(0x1fe)],z=(_0x6fd7f3,_0xf382dd,_0x4ef9e4)=>_0xf382dd in _0x6fd7f3?q(_0x6fd7f3,_0xf382dd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4ef9e4}):_0x6fd7f3[_0xf382dd]=_0x4ef9e4,d=(_0x49ce15,_0x2e15bc,_0x366d9a)=>z(_0x49ce15,typeof _0x2e15bc!=_0x2886db(0x1c0)?_0x2e15bc+'':_0x2e15bc,_0x366d9a);import{CollaborationSessionService as _0x37b98,SessionStatus as _0x4e7aee,UniverCollaborationClientPlugin as _0x5a9880}from'@univerjs-pro/collaboration-client';import{Disposable as _0x172f34,toDisposable as _0x3a14b5,Inject as _0x10aaa1,IUniverInstanceService as _0x11d622,Injector as _0x2015d8,IConfigService as _0x37a6e8,ICommandService as _0x342266,RxDisposable as _0x6f1f15,UniverInstanceType as _0x4aff88,DisposableCollection as _0x274689,CommandType as _0x55a605,DependentOn as _0x35d3f7,Plugin as _0x3a7036,merge as _0x4c5a48,registerDependencies as _0x5c518a,mergeOverrideWithDependencies as _0x1d9838,touchDependencies as _0x1e2724}from'@univerjs/core';import{SetWorksheetActiveOperation as _0xcf814f,InsertSheetMutation as _0x1800b8}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x59a1e5,SetScrollOperation as _0x28ccdf}from'@univerjs/sheets-ui';import{useDependency as _0x5b3603,useObservable as _0x2d4df2,IUIPartsService as _0x125ac6,BuiltInUIPart as _0x2083b0,connectInjector as _0x1b45da}from'@univerjs/ui';function _0xe8c5(){var _0x5b08f7=['_commandDisposable','data','_uiPartsService','UNIVER_LIVE_SHARE_PLUGIN','_fetchOperations','status$','createInstance','not-following','_unitID','160GtGCon','displayName','_collabSession','672842RruRfX','clear','http://www.w3.org/2000/svg','_configService','_handleTerminate','pluginName','getTypeOfUnitAdded$','registerInitialStateReporter','NOT_FOLLOWING','svg','onCommandExecuted','button','path','unsubscribe','_univerInstanceService','substring','_liveShareService','getMemberID','init','Start\x20following','operations','end','mask','find','41682tSaQyj','_stopPresenting','sheet','startFollowing','SAME_OPERATION_SHARE_INTERVAL','symbol','5727132ibxYQW','5709768gAsUEh','pipe','send','subscribe','getTypeOfUnitDisposed$','OPERATION','univer-w-full\x20univer-mb-3\x20univer-text-sm','presenter','univerjs-icon\x20univerjs-icon-','indexOf','sessionStatus$','function','use','registerComponent','icon','set','add','LIVESHARE_TERMINATE','stopPresenting','Start','OFFLINE','currentColor','getUnitId','values','idle','UNIVER_SHEET','replace','map','asObservable','You\x27re\x20not\x20following\x20the\x20presenter','getOwnPropertyDescriptor','_handleNewChangeSets','2559432JKoicy','get','IDLE','_status$','stopFollowing','default','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','HEADER_MENU','2289478UaXRZi','extend','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','_startFollowing','params','getLiveShareCoordinator','_startLiveShareCoordinator','disposeWithMe','univer-size-4','You\x27re\x20presenting\x20the\x20document','unitId','text','url(#$1','memberID','1em','_status','current','getInitialStates','idSuffix','xlink:href','defineProperty','dispose','getConfig','onStarting','PRESENTING','shouldShareOperation','from','length','dispose$','_presenter','trim','_entities','string','_init','includes','LIVESHARE_REQUEST_HOST','Stop\x20following','prototype','stringify','_stopFollowing','forEach','registerSharedOperation','hasOwnProperty','colorChannel1','_sharedOperations','LIVESHARE_OPERATION','requireSession','_handleNewHost','_commandService','parse','LIVESHARE_FETCH_OPERATIONS','_config','defIds','_injector','Stop\x20presenting','type','_beIdle','mutations','UniverIcon','evenodd','live-share-icon','presenting','none','Present\x20this\x20document','_reporters','div','tag','apply','_handleOnline','_mountLiveShare','has','reverse','UNIVER_UNKNOWN','children','delete','_handleOperation','setConfig','6353914RfmbYB','tryStartPresenting','random','You\x27re\x20following\x20the\x20presenter','offline','getCurrentTypeOfUnit$','following','attrs','concat','next','FOLLOWING','assign','then','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','call'];_0xe8c5=function(){return _0x5b08f7;};return _0xe8c5();}import{jsx as _0x3a52ad,jsxs as _0x199030,Fragment as _0x1dbeda}from'react/jsx-runtime';import{Dropdown as _0x4dd19b,clsx as _0x2351ae,Button as _0x2dde90}from'@univerjs/design';import{forwardRef as _0x55f301,useRef as _0x2d195a,createElement as _0xc61559,useState as _0x11cb7c,useEffect as _0x548d7b}from'react';import{CollaborationEvent as _0x31f6e1,parseProtocolChangeset as _0xb1adb}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x1dc9f4,Subject as _0x5762}from'rxjs';import{takeUntil as _0x120c99,throttleTime as _0x2d347e}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x172f34{constructor(){var _0x530ca9=_0x2886db;super(...arguments),d(this,_0x530ca9(0x216),new Set()),d(this,_0x530ca9(0x17a),new Set());}[_0x2886db(0x213)](_0xa9a2eb){var _0x3ab327=_0x2886db;return this[_0x3ab327(0x216)]['add'](_0xa9a2eb),_0x3a14b5(()=>this[_0x3ab327(0x216)][_0x3ab327(0x184)](_0xa9a2eb));}[_0x2886db(0x1aa)](_0xd28cfd){var _0x43d297=_0x2886db;return this[_0x43d297(0x17a)]['add'](_0xd28cfd),_0x3a14b5(()=>this[_0x43d297(0x17a)][_0x43d297(0x184)](_0xd28cfd));}[_0x2886db(0x203)](_0x1be4db){var _0x40f7d5=_0x2886db;return this[_0x40f7d5(0x216)]['has'](_0x1be4db);}[_0x2886db(0x1fb)](_0x183b70){var _0x4fee2f=_0x2886db;return Array[_0x4fee2f(0x204)](this['_reporters'])[_0x4fee2f(0x1dd)](_0x50791d=>_0x50791d(_0x183b70));}}var Ee=Object[_0x2886db(0x1e0)],we=(_0x18011c,_0x10c997,_0x2ff8b6,_0x4c53c0)=>{var _0x35c24c=_0x2886db;for(var _0x5bccd3=_0x4c53c0>0x1?void 0x0:_0x4c53c0?Ee(_0x10c997,_0x2ff8b6):_0x10c997,_0x476d91=_0x18011c[_0x35c24c(0x205)]-0x1,_0xb2602c;_0x476d91>=0x0;_0x476d91--)(_0xb2602c=_0x18011c[_0x476d91])&&(_0x5bccd3=_0xb2602c(_0x5bccd3)||_0x5bccd3);return _0x5bccd3;},Ne=(_0xcb8e00,_0x1bdf91)=>(_0x27709c,_0x5d933b)=>_0x1bdf91(_0x27709c,_0x5d933b,_0xcb8e00);let m=class extends _0x172f34{constructor(_0x1c26df){var _0x27310a=_0x2886db;super(),this[_0x27310a(0x1b3)]=_0x1c26df,this[_0x27310a(0x20b)]();}['_init'](){[_0x59a1e5['id'],_0x28ccdf['id'],_0xcf814f['id']]['forEach'](_0x45fb27=>{var _0x338720=_0x695d;this[_0x338720(0x1f1)](this[_0x338720(0x1b3)][_0x338720(0x213)](_0x45fb27));});}};m=we([Ne(0x0,_0x10aaa1(L))],m);var c=function(){var _0x28ffd9=_0x2886db;return c=Object['assign']||function(_0x42fdd4){var _0xc4ae1b=_0x695d;for(var _0x4fbdf2,_0x1b24f6=0x1,_0x1c5fe9=arguments[_0xc4ae1b(0x205)];_0x1b24f6<_0x1c5fe9;_0x1b24f6++){_0x4fbdf2=arguments[_0x1b24f6];for(var _0x4f99a7 in _0x4fbdf2)Object[_0xc4ae1b(0x20f)]['hasOwnProperty'][_0xc4ae1b(0x196)](_0x4fbdf2,_0x4f99a7)&&(_0x42fdd4[_0x4f99a7]=_0x4fbdf2[_0x4f99a7]);}return _0x42fdd4;},c[_0x28ffd9(0x17d)](this,arguments);},Ce=function(_0x397068,_0x18e9a5){var _0x21b23c=_0x2886db,_0xbe4af8={};for(var _0x5791af in _0x397068)Object['prototype'][_0x21b23c(0x214)][_0x21b23c(0x196)](_0x397068,_0x5791af)&&_0x18e9a5['indexOf'](_0x5791af)<0x0&&(_0xbe4af8[_0x5791af]=_0x397068[_0x5791af]);if(_0x397068!=null&&typeof Object['getOwnPropertySymbols']==_0x21b23c(0x1cd)){for(var _0x365b14=0x0,_0x5791af=Object['getOwnPropertySymbols'](_0x397068);_0x365b14<_0x5791af[_0x21b23c(0x205)];_0x365b14++)_0x18e9a5[_0x21b23c(0x1cb)](_0x5791af[_0x365b14])<0x0&&Object[_0x21b23c(0x20f)]['propertyIsEnumerable'][_0x21b23c(0x196)](_0x397068,_0x5791af[_0x365b14])&&(_0xbe4af8[_0x5791af[_0x365b14]]=_0x397068[_0x5791af[_0x365b14]]);}return _0xbe4af8;},W=_0x55f301(function(_0x362ed2,_0x2ad381){var _0x393126=_0x2886db,_0x105cb4=_0x362ed2[_0x393126(0x1d0)],_0x32307a=_0x362ed2['id'],_0x30c563=_0x362ed2['className'],_0x5a4b4a=_0x362ed2['extend'],_0x4a13c3=Ce(_0x362ed2,[_0x393126(0x1d0),'id','className',_0x393126(0x1eb)]),_0xadbe55=_0x393126(0x1ca)[_0x393126(0x18f)](_0x32307a,'\x20')[_0x393126(0x18f)](_0x30c563||'')[_0x393126(0x208)](),_0x323407=_0x2d195a('_'['concat'](Le()));return Y(_0x105cb4,''[_0x393126(0x18f)](_0x32307a),{'defIds':_0x105cb4[_0x393126(0x21e)],'idSuffix':_0x323407[_0x393126(0x1fa)]},c({'ref':_0x2ad381,'className':_0xadbe55},_0x4a13c3),_0x5a4b4a);});function Y(_0x56ab80,_0x5478e5,_0x5ac3d4,_0x56c996,_0x55335c){var _0x399ce6=_0x2886db;return _0xc61559(_0x56ab80[_0x399ce6(0x17c)],c(c({'key':_0x5478e5},De(_0x56ab80,_0x5ac3d4,_0x55335c)),_0x56c996),(xe(_0x56ab80,_0x5ac3d4)['children']||[])[_0x399ce6(0x1dd)](function(_0x51dd99,_0x280f97){var _0x51b815=_0x399ce6;return Y(_0x51dd99,''['concat'](_0x5478e5,'-')[_0x51b815(0x18f)](_0x56ab80[_0x51b815(0x17c)],'-')[_0x51b815(0x18f)](_0x280f97),_0x5ac3d4,void 0x0,_0x55335c);}));}function De(_0x2d8e39,_0x358f41,_0x3e1612){var _0x502666=_0x2886db,_0x12043d=c({},_0x2d8e39[_0x502666(0x18e)]);_0x3e1612!=null&&_0x3e1612[_0x502666(0x215)]&&_0x12043d['fill']===_0x502666(0x215)&&(_0x12043d['fill']=_0x3e1612[_0x502666(0x215)]),_0x2d8e39[_0x502666(0x17c)]===_0x502666(0x1b9)&&_0x12043d['id']&&(_0x12043d['id']=_0x12043d['id']+_0x358f41[_0x502666(0x1fc)]),Object['entries'](_0x12043d)[_0x502666(0x212)](function(_0x36579d){var _0x36c549=_0x502666,_0x3e4d7d=_0x36579d[0x0],_0x37ffee=_0x36579d[0x1];_0x3e4d7d===_0x36c549(0x1b9)&&typeof _0x37ffee==_0x36c549(0x20a)&&(_0x12043d[_0x3e4d7d]=_0x37ffee[_0x36c549(0x1dc)](/url\(#(.*)\)/,_0x36c549(0x1f6)['concat'](_0x358f41[_0x36c549(0x1fc)],')')));});var _0x3cad34=_0x358f41[_0x502666(0x21e)];return!_0x3cad34||_0x3cad34[_0x502666(0x205)]===0x0||(_0x2d8e39[_0x502666(0x17c)]===_0x502666(0x1ce)&&_0x12043d[_0x502666(0x1fd)]&&(_0x12043d[_0x502666(0x1fd)]=_0x12043d[_0x502666(0x1fd)]+_0x358f41[_0x502666(0x1fc)]),Object['entries'](_0x12043d)[_0x502666(0x212)](function(_0x31012a){var _0x50d183=_0x502666,_0x662a59=_0x31012a[0x0],_0x516b0d=_0x31012a[0x1];typeof _0x516b0d==_0x50d183(0x20a)&&(_0x12043d[_0x662a59]=_0x516b0d[_0x50d183(0x1dc)](/url\(#(.*)\)/,'url(#$1'[_0x50d183(0x18f)](_0x358f41['idSuffix'],')')));})),_0x12043d;}function xe(_0x4e591f,_0x318086){var _0x2a4441=_0x2886db,_0x245494,_0x5db848=_0x318086['defIds'];return!_0x5db848||_0x5db848[_0x2a4441(0x205)]===0x0?_0x4e591f:_0x4e591f['tag']==='defs'&&(!((_0x245494=_0x4e591f['children'])===null||_0x245494===void 0x0)&&_0x245494[_0x2a4441(0x205)])?c(c({},_0x4e591f),{'children':_0x4e591f[_0x2a4441(0x183)][_0x2a4441(0x1dd)](function(_0x4d1368){var _0x552cac=_0x2a4441;return typeof _0x4d1368[_0x552cac(0x18e)]['id']==_0x552cac(0x20a)&&_0x5db848&&_0x5db848[_0x552cac(0x20c)](_0x4d1368[_0x552cac(0x18e)]['id'])?c(c({},_0x4d1368),{'attrs':c(c({},_0x4d1368[_0x552cac(0x18e)]),{'id':_0x4d1368['attrs']['id']+_0x318086[_0x552cac(0x1fc)]})}):_0x4d1368;})}):_0x4e591f;}function Le(){var _0x4e58f4=_0x2886db;return Math[_0x4e58f4(0x189)]()['toString'](0x24)[_0x4e58f4(0x1b2)](0x2,0x8);}W[_0x2886db(0x1a1)]=_0x2886db(0x174);var ye={'tag':_0x2886db(0x1ac),'attrs':{'xmlns':_0x2886db(0x1a5),'fill':_0x2886db(0x178),'viewBox':'0\x200\x2017\x2017','width':_0x2886db(0x1f8),'height':_0x2886db(0x1f8)},'children':[{'tag':_0x2886db(0x1af),'attrs':{'fill':_0x2886db(0x1d7),'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':_0x2886db(0x1af),'attrs':{'fill':_0x2886db(0x1d7),'d':_0x2886db(0x195),'fillRule':_0x2886db(0x175),'clipRule':_0x2886db(0x175)}}]},B=_0x55f301(function(_0x13781d,_0x349829){var _0x21bfbc=_0x2886db;return _0xc61559(W,Object[_0x21bfbc(0x192)]({},_0x13781d,{'id':_0x21bfbc(0x176),'ref':_0x349829,'icon':ye}));});B[_0x2886db(0x1a1)]='LiveShareIcon';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x2b7426,_0x5ba008,_0x59a7e8,_0x2492e9)=>{var _0x3c2bf7=_0x2886db;for(var _0x2e3c93=_0x2492e9>0x1?void 0x0:_0x2492e9?Re(_0x5ba008,_0x59a7e8):_0x5ba008,_0x79da07=_0x2b7426[_0x3c2bf7(0x205)]-0x1,_0xbd78e8;_0x79da07>=0x0;_0x79da07--)(_0xbd78e8=_0x2b7426[_0x79da07])&&(_0x2e3c93=_0xbd78e8(_0x2e3c93)||_0x2e3c93);return _0x2e3c93;},f=(_0x59200c,_0x596e39)=>(_0x406125,_0x52dd4b)=>_0x596e39(_0x406125,_0x52dd4b,_0x59200c);let I=class extends _0x6f1f15{constructor(_0x5107f1,_0x26a3f1,_0x3eee54){var _0x575e85=_0x2886db;super(),d(this,_0x575e85(0x209),new Map()),(this[_0x575e85(0x1b1)]=_0x5107f1,this[_0x575e85(0x21f)]=_0x26a3f1,this['_collabSessionService']=_0x3eee54,this[_0x575e85(0x20b)]());}async[_0x2886db(0x1ef)](_0x227b7b){var _0x4176c4=_0x2886db;return this[_0x4176c4(0x209)][_0x4176c4(0x180)](_0x227b7b)||await this[_0x4176c4(0x1f0)](_0x227b7b),this[_0x4176c4(0x209)][_0x4176c4(0x1e3)](_0x227b7b);}[_0x2886db(0x20b)](){var _0x4fd0dd=_0x2886db;this[_0x4fd0dd(0x1b1)][_0x4fd0dd(0x1a9)](_0x4aff88[_0x4fd0dd(0x1db)])['pipe'](_0x120c99(this[_0x4fd0dd(0x206)]))['subscribe'](async _0x55ce3e=>{var _0x3f9089=_0x4fd0dd;const _0x421d83=_0x55ce3e[_0x3f9089(0x1d8)]();this[_0x3f9089(0x209)][_0x3f9089(0x180)](_0x421d83)||this[_0x3f9089(0x1f0)](_0x421d83);}),this[_0x4fd0dd(0x1b1)][_0x4fd0dd(0x1c6)](_0x4aff88[_0x4fd0dd(0x1db)])[_0x4fd0dd(0x1c3)](_0x120c99(this[_0x4fd0dd(0x206)]))[_0x4fd0dd(0x1c5)](_0x584625=>{var _0x420a86=_0x4fd0dd;const _0x56f2c9=_0x584625[_0x420a86(0x1d8)](),_0x1150f6=this[_0x420a86(0x209)][_0x420a86(0x1e3)](_0x56f2c9);_0x1150f6==null||_0x1150f6['dispose']();});}async[_0x2886db(0x1f0)](_0x525019){var _0x54f5c7=_0x2886db;const _0x3c5d8e=await this['_collabSessionService'][_0x54f5c7(0x218)](_0x525019),_0x171e35=this[_0x54f5c7(0x21f)][_0x54f5c7(0x19d)](C,_0x525019,_0x3c5d8e);return _0x171e35[_0x54f5c7(0x1b5)](),this[_0x54f5c7(0x209)][_0x54f5c7(0x1d1)](_0x525019,_0x171e35),_0x171e35;}};I=Z([f(0x0,_0x11d622),f(0x1,_0x10aaa1(_0x2015d8)),f(0x2,_0x10aaa1(_0x37b98))],I);var h=(_0x27a6a2=>(_0x27a6a2['OFFLINE']='offline',_0x27a6a2[_0x2886db(0x1e4)]='idle',_0x27a6a2[_0x2886db(0x191)]=_0x2886db(0x18d),_0x27a6a2[_0x2886db(0x1ab)]=_0x2886db(0x19e),_0x27a6a2[_0x2886db(0x202)]=_0x2886db(0x177),_0x27a6a2))(h||{});function _0x695d(_0x28dd9a,_0x923fb0){var _0xe8c531=_0xe8c5();return _0x695d=function(_0x695db1,_0x5e4718){_0x695db1=_0x695db1-0x171;var _0x10bc6b=_0xe8c531[_0x695db1];return _0x10bc6b;},_0x695d(_0x28dd9a,_0x923fb0);}const Pe=_0x2886db(0x1bf),Ae=0xc8;let C=class extends _0x6f1f15{constructor(_0xecbae6,_0x11b829,_0x3e111e,_0x4e07d3,_0x19eaf2){var _0x126e77=_0x2886db;super(),d(this,'_status$',new _0x1dc9f4(_0x126e77(0x1da))),d(this,_0x126e77(0x19c),this[_0x126e77(0x1e5)][_0x126e77(0x1de)]()),d(this,_0x126e77(0x20b),!0x1),d(this,_0x126e77(0x197),null),d(this,'_presenter',null),(this[_0x126e77(0x19f)]=_0xecbae6,this[_0x126e77(0x1a2)]=_0x11b829,this[_0x126e77(0x1a6)]=_0x3e111e,this[_0x126e77(0x1b3)]=_0x4e07d3,this[_0x126e77(0x21a)]=_0x19eaf2);}get['_status'](){var _0x2a3b2a=_0x2886db;return this[_0x2a3b2a(0x1e5)]['getValue']();}[_0x2886db(0x1ff)](){var _0x53d1da=_0x2886db,_0x43a5f2;(_0x43a5f2=this['_commandDisposable'])==null||_0x43a5f2[_0x53d1da(0x1ff)](),this[_0x53d1da(0x1e5)]['next'](_0x53d1da(0x1da)),this[_0x53d1da(0x1e5)]['complete']();}[_0x2886db(0x1b5)](){var _0x30f21d=_0x2886db;this[_0x30f21d(0x20b)]||(this[_0x30f21d(0x20b)]=!0x0,this['_collabSession'][_0x30f21d(0x1cc)][_0x30f21d(0x1c3)](_0x120c99(this[_0x30f21d(0x206)]))[_0x30f21d(0x1c5)](_0x241dfb=>{var _0x1c8fa5=_0x30f21d;switch(_0x241dfb){case _0x4e7aee[_0x1c8fa5(0x1d6)]:this['_handleOffline']();break;case _0x4e7aee['ONLINE']:this[_0x1c8fa5(0x17e)]();break;}}),this['_collabSession']['event$'][_0x30f21d(0x1c3)](_0x120c99(this[_0x30f21d(0x206)]))[_0x30f21d(0x1c5)](_0x9c2bfb=>{var _0x4f988f=_0x30f21d;const {eventID:_0x5ce4dc}=_0x9c2bfb;switch(_0x5ce4dc){case _0x31f6e1['LIVESHARE_NEW_HOST']:this[_0x4f988f(0x219)](_0x9c2bfb);break;case _0x31f6e1['LIVESHARE_OPERATION']:this[_0x4f988f(0x185)](_0x9c2bfb);break;case _0x31f6e1[_0x4f988f(0x1d3)]:this[_0x4f988f(0x1a7)]();break;case _0x31f6e1['NEW_CHANGESETS']:this[_0x4f988f(0x1e1)](_0x9c2bfb);break;}}));}[_0x2886db(0x188)](){var _0x5be021=_0x2886db;this[_0x5be021(0x1a2)][_0x5be021(0x1c4)]({'eventID':_0x31f6e1[_0x5be021(0x20d)],'data':{'unitID':this[_0x5be021(0x19f)],'userID':this[_0x5be021(0x1a2)][_0x5be021(0x1b4)]()}},this['_unitID']);}[_0x2886db(0x1d4)](){var _0x366b91=_0x2886db;this[_0x366b91(0x1f9)]==='presenting'&&(this[_0x366b91(0x1e5)][_0x366b91(0x190)]('idle'),this[_0x366b91(0x1a2)]['send']({'eventID':_0x31f6e1[_0x366b91(0x1d3)],'data':{'unitID':this['_unitID']}},this[_0x366b91(0x19f)]));}[_0x2886db(0x1be)](){var _0x55ea58=_0x2886db;this[_0x55ea58(0x1f9)]===_0x55ea58(0x19e)&&(this[_0x55ea58(0x1e5)][_0x55ea58(0x190)](_0x55ea58(0x18d)),this['_startFollowing']());}[_0x2886db(0x1e6)](){var _0x3a58e3=_0x2886db;this[_0x3a58e3(0x1f9)]===_0x3a58e3(0x18d)&&this[_0x3a58e3(0x211)]();}[_0x2886db(0x219)](_0x4715bb){var _0x32700c=_0x2886db;const {presenter:_0x3ff6fc}=_0x4715bb[_0x32700c(0x198)],_0x36d41c=this[_0x32700c(0x1a2)][_0x32700c(0x1b4)]();this[_0x32700c(0x207)]=_0x3ff6fc,_0x3ff6fc===_0x36d41c?(this['_stopFollowing'](),this['_startPresenting']()):this['_status']!==_0x32700c(0x19e)&&(this[_0x32700c(0x1bc)](),this[_0x32700c(0x1ed)]());}[_0x2886db(0x19b)](){var _0x437216=_0x2886db;const _0x49b2e3={'eventID':_0x31f6e1[_0x437216(0x21c)]};this[_0x437216(0x1a2)][_0x437216(0x1c4)](_0x49b2e3,this[_0x437216(0x19f)]);}[_0x2886db(0x1a7)](){var _0x1df453=_0x2886db;this['_presenter']=null,this[_0x1df453(0x1f9)]!==_0x1df453(0x177)&&this[_0x1df453(0x172)]();}[_0x2886db(0x1e1)](_0x3879a2){var _0x73a500=_0x2886db;if(this['_status']==='following'&&this['_presenter']===_0x3879a2[_0x73a500(0x198)][_0x73a500(0x1f7)]){const _0x267bf4=_0xb1adb(_0x3879a2[_0x73a500(0x198)])[_0x73a500(0x173)][_0x73a500(0x181)]()[_0x73a500(0x1ba)](_0x477c52=>_0x477c52['id']===_0x1800b8['id']);if(_0x267bf4){const _0x5f1cc4=_0x267bf4[_0x73a500(0x1ee)][_0x73a500(0x1f4)],_0x3c4392=_0x267bf4['params'][_0x73a500(0x1bd)]['id'];setTimeout(()=>{var _0x39d4af=_0x73a500;this['_commandService'][_0x39d4af(0x194)](_0xcf814f['id'],{'unitId':_0x5f1cc4,'subUnitId':_0x3c4392},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x494428=_0x2886db;this[_0x494428(0x1e5)][_0x494428(0x190)]('presenting');const _0xdf4dbd=new Map(),_0x157f0e=this[_0x494428(0x197)]=new _0x274689();_0x157f0e[_0x494428(0x1d2)](_0x3a14b5(()=>{var _0x1b1005=_0x494428;_0xdf4dbd[_0x1b1005(0x212)](_0x380493=>_0x380493['complete']()),_0xdf4dbd[_0x1b1005(0x1a4)]();})),_0x157f0e[_0x494428(0x1d2)](this[_0x494428(0x21a)][_0x494428(0x1ad)](_0x5b85aa=>{var _0x29293f=_0x494428,_0x4b6d2f;if(_0x5b85aa['type']!==_0x55a605[_0x29293f(0x1c7)]||!this[_0x29293f(0x1b3)]['shouldShareOperation'](_0x5b85aa['id']))return;const {id:_0x3c96ff}=_0x5b85aa;let _0x1cb5a1;_0xdf4dbd[_0x29293f(0x180)](_0x3c96ff)?_0x1cb5a1=_0xdf4dbd[_0x29293f(0x1e3)](_0x3c96ff):(_0x1cb5a1=new _0x5762(),_0xdf4dbd[_0x29293f(0x1d1)](_0x3c96ff,_0x1cb5a1),_0x1cb5a1[_0x29293f(0x1c3)](_0x2d347e((_0x4b6d2f=this[_0x29293f(0x1a6)][_0x29293f(0x200)](Pe))!=null?_0x4b6d2f:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x29293f(0x1c5)](_0x1539ba=>{var _0x387b5e=_0x29293f;this[_0x387b5e(0x1a2)][_0x387b5e(0x1c4)]({'eventID':_0x31f6e1['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x387b5e(0x19f)],'operations':{[_0x1539ba['id']]:{'id':_0x1539ba['id'],'params':JSON[_0x387b5e(0x210)](_0x1539ba[_0x387b5e(0x1ee)])}}}},this['_unitID']);})),_0x1cb5a1[_0x29293f(0x190)](_0x5b85aa);})),this[_0x494428(0x1b3)]['getInitialStates'](this[_0x494428(0x19f)])['forEach'](_0x276b54=>this[_0x494428(0x1a2)][_0x494428(0x1c4)]({'eventID':_0x31f6e1[_0x494428(0x217)],'data':{'unitID':this['_unitID'],'operations':{[_0x276b54['id']]:{'id':_0x276b54['id'],'params':JSON[_0x494428(0x210)](_0x276b54[_0x494428(0x1ee)])}}}},this['_unitID']));}[_0x2886db(0x1bc)](){var _0x1ef019=_0x2886db,_0x1433cc;this[_0x1ef019(0x1e5)]['next'](_0x1ef019(0x1da)),(_0x1433cc=this[_0x1ef019(0x197)])==null||_0x1433cc[_0x1ef019(0x1ff)](),this['_commandDisposable']=null;}[_0x2886db(0x1ed)](){var _0xaf8ce6=_0x2886db,_0x7bc5a1;(_0x7bc5a1=this[_0xaf8ce6(0x197)])==null||_0x7bc5a1['dispose'](),this['_status$'][_0xaf8ce6(0x190)](_0xaf8ce6(0x18d));}[_0x2886db(0x172)](){var _0x239e80=_0x2886db,_0x5b73d6;this[_0x239e80(0x1e5)][_0x239e80(0x190)](_0x239e80(0x1da)),(_0x5b73d6=this[_0x239e80(0x197)])==null||_0x5b73d6[_0x239e80(0x1ff)](),this[_0x239e80(0x197)]=null;}[_0x2886db(0x211)](){var _0x2d0753=_0x2886db,_0x5e502;this[_0x2d0753(0x1e5)][_0x2d0753(0x190)]('not-following'),(_0x5e502=this[_0x2d0753(0x197)])==null||_0x5e502['dispose']();}[_0x2886db(0x185)](_0x3903bc){var _0x3e5926=_0x2886db;if([_0x3e5926(0x177),_0x3e5926(0x19e),_0x3e5926(0x18b)][_0x3e5926(0x20c)](this[_0x3e5926(0x1f9)])||!_0x3903bc['data'][_0x3e5926(0x1c9)]||_0x3903bc[_0x3e5926(0x198)]['presenter']===this['_collabSession']['getMemberID']())return;this[_0x3e5926(0x1f9)]===_0x3e5926(0x1da)&&this['_startFollowing']();const _0xd5dd65=_0x3903bc[_0x3e5926(0x198)][_0x3e5926(0x1b7)];Object[_0x3e5926(0x1d9)](_0xd5dd65)[_0x3e5926(0x212)](_0x1611bb=>{var _0x55d1d7=_0x3e5926;this['_commandService']['executeCommand'](_0x1611bb['id'],_0x1611bb[_0x55d1d7(0x1ee)]?JSON[_0x55d1d7(0x21b)](_0x1611bb[_0x55d1d7(0x1ee)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x56fdcd=_0x2886db,_0x5a95ba;this[_0x56fdcd(0x1e5)]['next'](_0x56fdcd(0x18b)),(_0x5a95ba=this['_commandDisposable'])==null||_0x5a95ba[_0x56fdcd(0x1ff)]();}['_handleOnline'](){var _0x42ab97=_0x2886db;this['_status$'][_0x42ab97(0x190)](_0x42ab97(0x1da)),this[_0x42ab97(0x19b)]();}};C=Z([f(0x2,_0x37a6e8),f(0x3,_0x10aaa1(L)),f(0x4,_0x342266)],C);function Te(){var _0x5a44c8=_0x2886db;const _0x3531ca=_0x5b3603(I),_0x30ee38=_0x5b3603(_0x11d622),_0x28d50a=_0x2d4df2(()=>_0x30ee38[_0x5a44c8(0x18c)](_0x4aff88[_0x5a44c8(0x1db)]),void 0x0,!0x1,[]),[_0x48eea2,_0x4b0e40]=_0x11cb7c(null),[_0x38d9a1,_0x3d45b4]=_0x11cb7c(h['IDLE']),_0x5182d6=_0x2d195a(null);return _0x548d7b(()=>(_0x28d50a&&_0x3531ca[_0x5a44c8(0x1ef)](_0x28d50a[_0x5a44c8(0x1d8)]())[_0x5a44c8(0x193)](_0x56afa1=>{var _0x5d6a49=_0x5a44c8;_0x4b0e40(_0x56afa1),_0x5182d6[_0x5d6a49(0x1fa)]=_0x56afa1[_0x5d6a49(0x19c)][_0x5d6a49(0x1c5)](_0xf35f7c=>{_0x3d45b4(_0xf35f7c);});}),()=>{var _0x7a9b3=_0x5a44c8,_0x25c32e;(_0x25c32e=_0x5182d6[_0x7a9b3(0x1fa)])==null||_0x25c32e[_0x7a9b3(0x1b0)](),_0x5182d6[_0x7a9b3(0x1fa)]=null;}),[_0x28d50a,_0x3531ca]),_0x48eea2?_0x3a52ad(_0x4dd19b,{'align':_0x5a44c8(0x1b8),'disabled':_0x38d9a1===h[_0x5a44c8(0x1d6)],'className':_0x5a44c8(0x1e8),'overlay':_0x3a52ad($e,{'status':_0x38d9a1,'coordinator':_0x48eea2}),'children':_0x3a52ad(_0x5a44c8(0x1ae),{'className':_0x2351ae(_0x5a44c8(0x1ec),{'univer-cursor-not-allowed':_0x38d9a1===h[_0x5a44c8(0x1d6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x38d9a1!==h[_0x5a44c8(0x1d6)]}),'type':_0x5a44c8(0x1ae),'children':_0x3a52ad(B,{'className':_0x5a44c8(0x1f2)})})}):null;}function $e(_0x5ef130){var _0x556fcb=_0x2886db;const {status:_0x1bcafa,coordinator:_0x179ae0}=_0x5ef130;switch(_0x1bcafa){case h[_0x556fcb(0x1e4)]:return _0x3a52ad(Fe,{'coordinator':_0x179ae0});case h[_0x556fcb(0x191)]:return _0x3a52ad(He,{'coordinator':_0x179ae0});case h['NOT_FOLLOWING']:return _0x3a52ad(je,{'coordinator':_0x179ae0});case h[_0x556fcb(0x1d6)]:return _0x3a52ad(Ve,{});case h[_0x556fcb(0x202)]:return _0x3a52ad(Ue,{'coordinator':_0x179ae0});default:return null;}}function Fe(_0x11ba29){var _0x9421a5=_0x2886db;const {coordinator:_0x4c4bb1}=_0x11ba29;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad(_0x9421a5(0x17b),{'className':_0x9421a5(0x1c8),'children':_0x9421a5(0x179)}),_0x3a52ad(_0x2dde90,{'onClick':()=>_0x4c4bb1[_0x9421a5(0x188)](),'children':_0x9421a5(0x1d5)})]});}function He(_0x3f9821){var _0x1841a5=_0x2886db;const {coordinator:_0x44175f}=_0x3f9821;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad('div',{'className':_0x1841a5(0x1c8),'children':_0x1841a5(0x18a)}),_0x3a52ad(_0x2dde90,{'onClick':()=>_0x44175f[_0x1841a5(0x1e6)](),'children':_0x1841a5(0x20e)})]});}function je(_0x198f94){var _0x3986e8=_0x2886db;const {coordinator:_0x4fac19}=_0x198f94;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad(_0x3986e8(0x17b),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x3986e8(0x1df)}),_0x3a52ad(_0x2dde90,{'variant':_0x3986e8(0x1f5),'onClick':()=>_0x4fac19[_0x3986e8(0x1be)](),'children':_0x3986e8(0x1b6)})]});}function Ue(_0x302018){var _0x44ca58=_0x2886db;const {coordinator:_0x5b74c5}=_0x302018;return _0x199030(_0x1dbeda,{'children':[_0x3a52ad(_0x44ca58(0x17b),{'className':_0x44ca58(0x1c8),'children':_0x44ca58(0x1f3)}),_0x3a52ad(_0x2dde90,{'variant':_0x44ca58(0x1e7),'onClick':()=>_0x5b74c5[_0x44ca58(0x1d4)](),'children':_0x44ca58(0x220)})]});}function Ve(){return _0x3a52ad(_0x1dbeda,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x2886db(0x1e0)],ke=(_0x2e7ded,_0x58b8e7,_0x2ee39d,_0x4fa189)=>{var _0x50eb0b=_0x2886db;for(var _0x1ab85f=_0x4fa189>0x1?void 0x0:_0x4fa189?Me(_0x58b8e7,_0x2ee39d):_0x58b8e7,_0x30950c=_0x2e7ded[_0x50eb0b(0x205)]-0x1,_0x7ac355;_0x30950c>=0x0;_0x30950c--)(_0x7ac355=_0x2e7ded[_0x30950c])&&(_0x1ab85f=_0x7ac355(_0x1ab85f)||_0x1ab85f);return _0x1ab85f;},$=(_0x2cc36e,_0x268480)=>(_0x32d3fe,_0x57be99)=>_0x268480(_0x32d3fe,_0x57be99,_0x2cc36e);let b=class extends _0x172f34{constructor(_0x4e7ce1,_0x4dc55c){var _0x3cbe25=_0x2886db;super(),this[_0x3cbe25(0x21f)]=_0x4e7ce1,this[_0x3cbe25(0x199)]=_0x4dc55c,this[_0x3cbe25(0x17f)]();}[_0x2886db(0x17f)](){var _0x10f90d=_0x2886db;this[_0x10f90d(0x1f1)](this['_uiPartsService'][_0x10f90d(0x1cf)](_0x2083b0[_0x10f90d(0x1e9)],()=>_0x1b45da(Te,this['_injector'])));}};b=ke([$(0x0,_0x10aaa1(_0x2015d8)),$(0x1,_0x125ac6)],b);var Ge=Object[_0x2886db(0x1fe)],We=Object[_0x2886db(0x1e0)],Ye=(_0x13b7e2,_0x2ddc74,_0x1fee3c)=>_0x2ddc74 in _0x13b7e2?Ge(_0x13b7e2,_0x2ddc74,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1fee3c}):_0x13b7e2[_0x2ddc74]=_0x1fee3c,Be=(_0x5d8761,_0x1708fc,_0x2e1570,_0xc8308b)=>{var _0x269401=_0x2886db;for(var _0x17f8ee=_0xc8308b>0x1?void 0x0:_0xc8308b?We(_0x1708fc,_0x2e1570):_0x1708fc,_0x111bf3=_0x5d8761[_0x269401(0x205)]-0x1,_0x396966;_0x111bf3>=0x0;_0x111bf3--)(_0x396966=_0x5d8761[_0x111bf3])&&(_0x17f8ee=_0x396966(_0x17f8ee)||_0x17f8ee);return _0x17f8ee;},F=(_0x40f86e,_0x599b00)=>(_0xea2eb0,_0x4b4696)=>_0x599b00(_0xea2eb0,_0x4b4696,_0x40f86e),J=(_0x121364,_0x3d93f3,_0x4a838f)=>Ye(_0x121364,typeof _0x3d93f3!=_0x2886db(0x1c0)?_0x3d93f3+'':_0x3d93f3,_0x4a838f);const Ze=_0x2886db(0x19a);let O=class extends _0x3a7036{constructor(_0x3ba33d=T,_0x22916c,_0x45972d){var _0x50a1be=_0x2886db;super(),this['_config']=_0x3ba33d,this[_0x50a1be(0x21f)]=_0x22916c,this[_0x50a1be(0x1a6)]=_0x45972d;const {..._0x356fb4}=_0x4c5a48({},T,this[_0x50a1be(0x21d)]);this[_0x50a1be(0x1a6)][_0x50a1be(0x186)](Oe,_0x356fb4);}[_0x2886db(0x201)](){var _0x42f15d=_0x2886db;_0x5c518a(this['_injector'],_0x1d9838([[L],[I],[m],[b]],this[_0x42f15d(0x21d)]['override'])),_0x1e2724(this['_injector'],[[m]]);}['onRendered'](){_0x1e2724(this['_injector'],[[b]]);}};J(O,_0x2886db(0x171),_0x4aff88[_0x2886db(0x182)]),J(O,_0x2886db(0x1a8),Ze),O=Be([_0x35d3f7(_0x5a9880),F(0x1,_0x10aaa1(_0x2015d8)),F(0x2,_0x37a6e8)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0xb981bb=_0x128b;(function(_0x2ca021,_0x30c7e5){var _0x4e3164=_0x128b,_0x4e5ebd=_0x2ca021();while(!![]){try{var _0x17db50=parseInt(_0x4e3164(0x1aa))/0x1*(-parseInt(_0x4e3164(0x176))/0x2)+-parseInt(_0x4e3164(0x1d0))/0x3+parseInt(_0x4e3164(0x186))/0x4*(parseInt(_0x4e3164(0x19c))/0x5)+-parseInt(_0x4e3164(0x1a4))/0x6+parseInt(_0x4e3164(0x169))/0x7+-parseInt(_0x4e3164(0x201))/0x8+parseInt(_0x4e3164(0x1ef))/0x9*(-parseInt(_0x4e3164(0x1e8))/0xa);if(_0x17db50===_0x30c7e5)break;else _0x4e5ebd['push'](_0x4e5ebd['shift']());}catch(_0x12a640){_0x4e5ebd['push'](_0x4e5ebd['shift']());}}}(_0x1c8d,0x58f88));var q=Object['defineProperty'],z=(_0x1d85c7,_0x481baa,_0x12349b)=>_0x481baa in _0x1d85c7?q(_0x1d85c7,_0x481baa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x12349b}):_0x1d85c7[_0x481baa]=_0x12349b,d=(_0x5d03eb,_0x4a05b3,_0x440947)=>z(_0x5d03eb,typeof _0x4a05b3!=_0xb981bb(0x1d5)?_0x4a05b3+'':_0x4a05b3,_0x440947);import{CollaborationSessionService as _0xa7a23,SessionStatus as _0x109da2,UniverCollaborationClientPlugin as _0x4f654}from'@univerjs-pro/collaboration-client';function _0x128b(_0x28bb5a,_0x3754be){var _0x1c8d5c=_0x1c8d();return _0x128b=function(_0x128b28,_0x4ab4a2){_0x128b28=_0x128b28-0x153;var _0x2ce661=_0x1c8d5c[_0x128b28];return _0x2ce661;},_0x128b(_0x28bb5a,_0x3754be);}import{Disposable as _0x1f0cb2,toDisposable as _0x175da3,Inject as _0x1bcd7d,IUniverInstanceService as _0xcc8435,Injector as _0x37a562,IConfigService as _0x509fd7,ICommandService as _0x936333,RxDisposable as _0x431f32,UniverInstanceType as _0x3a976a,DisposableCollection as _0x467461,CommandType as _0x50e7a3,DependentOn as _0x5bda4b,Plugin as _0x267245,merge as _0x32e7ad,registerDependencies as _0x3d2a61,mergeOverrideWithDependencies as _0x299ee2,touchDependencies as _0x3fac19}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3a3cea,InsertSheetMutation as _0x1c8818}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x541067,SetScrollOperation as _0x34e2eb}from'@univerjs/sheets-ui';import{useDependency as _0x11f2c5,useObservable as _0x107d72,IUIPartsService as _0x2658e0,BuiltInUIPart as _0x475348,connectInjector as _0x2d5549}from'@univerjs/ui';import{jsx as _0x4c3f9c,jsxs as _0x55ac32,Fragment as _0x35c6a7}from'react/jsx-runtime';import{Dropdown as _0xb7c916,clsx as _0xb5c652,Button as _0x3c1ff4}from'@univerjs/design';import{forwardRef as _0x48edea,useRef as _0x4b0343,createElement as _0x299d9a,useState as _0x444650,useEffect as _0x4112e7}from'react';import{CollaborationEvent as _0x3796e6,parseProtocolChangeset as _0x50217b}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x292abc,Subject as _0x24f5d6}from'rxjs';import{takeUntil as _0x586d99,throttleTime as _0x90091d}from'rxjs/operators';const Oe=_0xb981bb(0x17d),T={};function _0x1c8d(){var _0xf1aa62=['1013168zeydyB','_commandService','text','defineProperty','defIds','NOT_FOLLOWING','_sharedOperations','add','function','getTypeOfUnitDisposed$','type','toString','You\x27re\x20following\x20the\x20presenter','_startFollowing','currentColor','presenter','Start','_handleOnline','Stop\x20presenting','current','mutations','string','getLiveShareCoordinator','univer-size-4','OFFLINE','from','IDLE','fill','3112781lpyRqp','complete','hasOwnProperty','You\x27re\x20not\x20following\x20the\x20presenter','idle','map','apply','sessionStatus$','dispose$','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','_handleOperation','_uiPartsService','_handleNewHost','2JRQQaC','entries','You\x27re\x20presenting\x20the\x20document','startFollowing','none','status$','prototype','live-share.config','data','1em','has','NEW_CHANGESETS','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','_stopFollowing','set','_handleTerminate','8168JdRjRI','getInitialStates','parse','getUnitId','unsubscribe','UNIVER_SHEET','button','getOwnPropertyDescriptor','getValue','OPERATION','pluginName','_startLiveShareCoordinator','div','unitId','stopFollowing','get','registerSharedOperation','Start\x20following','http://www.w3.org/2000/svg','find','url(#$1','values','1565wCNlRA','0\x200\x2017\x2017','indexOf','displayName','then','subscribe','LIVESHARE_TERMINATE','operations','98286iVqwvn','idSuffix','defs','_collabSessionService','_collabSession','univer-w-full\x20univer-mb-3\x20univer-text-sm','75931sZpcqW','children','next','getConfig','UNIVER_UNKNOWN','LIVESHARE_NEW_HOST','_entities','forEach','_init','PRESENTING','evenodd','path','_handleOffline','Present\x20this\x20document','LIVESHARE_FETCH_OPERATIONS','_stopPresenting','includes','_beIdle','_startPresenting','dispose','LIVESHARE_REQUEST_HOST','offline','delete','override','onCommandExecuted','following','_liveShareService','xlink:href','_config','onStarting','executeCommand','LIVESHARE_OPERATION','tryStartPresenting','UNIVER_LIVE_SHARE_PLUGIN','mask','disposeWithMe','assign','colorChannel1','731607eFWPOD','_status$','_fetchOperations','clear','_reporters','symbol','UniverIcon','getCurrentTypeOfUnit$','icon','FOLLOWING','attrs','ONLINE','event$','memberID','params','_presenter','svg','HEADER_MENU','getMemberID','requireSession','send','substring','onRendered','_unitID','2460tiXtuI','tag','use','length','pipe','_status','replace','9387MDdBOc','init','live-share-icon','stringify','getOwnPropertySymbols','trim','_injector','concat','shouldShareOperation','_univerInstanceService','className','extend','not-following','_commandDisposable','_mountLiveShare','univerjs-icon\x20univerjs-icon-','_configService','reverse'];_0x1c8d=function(){return _0xf1aa62;};return _0x1c8d();}class L extends _0x1f0cb2{constructor(){var _0x5a3d64=_0xb981bb;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x5a3d64(0x1d4),new Set());}[_0xb981bb(0x196)](_0x4aea05){var _0x54b24d=_0xb981bb;return this['_sharedOperations'][_0x54b24d(0x154)](_0x4aea05),_0x175da3(()=>this[_0x54b24d(0x153)][_0x54b24d(0x1c0)](_0x4aea05));}['registerInitialStateReporter'](_0xb2d5a7){var _0x457bc1=_0xb981bb;return this[_0x457bc1(0x1d4)][_0x457bc1(0x154)](_0xb2d5a7),_0x175da3(()=>this[_0x457bc1(0x1d4)][_0x457bc1(0x1c0)](_0xb2d5a7));}[_0xb981bb(0x1f7)](_0x1d51c7){var _0x436a4e=_0xb981bb;return this[_0x436a4e(0x153)][_0x436a4e(0x180)](_0x1d51c7);}[_0xb981bb(0x187)](_0x274ef8){var _0x53be37=_0xb981bb;return Array[_0x53be37(0x166)](this['_reporters'])[_0x53be37(0x16e)](_0xd91ecb=>_0xd91ecb(_0x274ef8));}}var Ee=Object[_0xb981bb(0x18d)],we=(_0x3b4233,_0xbf9c43,_0xb16272,_0x571135)=>{var _0x2de9ce=_0xb981bb;for(var _0x127157=_0x571135>0x1?void 0x0:_0x571135?Ee(_0xbf9c43,_0xb16272):_0xbf9c43,_0x2ea51a=_0x3b4233[_0x2de9ce(0x1eb)]-0x1,_0xfb2ed5;_0x2ea51a>=0x0;_0x2ea51a--)(_0xfb2ed5=_0x3b4233[_0x2ea51a])&&(_0x127157=_0xfb2ed5(_0x127157)||_0x127157);return _0x127157;},Ne=(_0x49143c,_0x43513c)=>(_0x330532,_0x1971fe)=>_0x43513c(_0x330532,_0x1971fe,_0x49143c);let m=class extends _0x1f0cb2{constructor(_0x560661){var _0x332846=_0xb981bb;super(),this[_0x332846(0x1c4)]=_0x560661,this['_init']();}[_0xb981bb(0x1b2)](){var _0x4ace0b=_0xb981bb;[_0x541067['id'],_0x34e2eb['id'],_0x3a3cea['id']][_0x4ace0b(0x1b1)](_0x4ca4d7=>{var _0x2dee9c=_0x4ace0b;this[_0x2dee9c(0x1cd)](this[_0x2dee9c(0x1c4)][_0x2dee9c(0x196)](_0x4ca4d7));});}};m=we([Ne(0x0,_0x1bcd7d(L))],m);var c=function(){var _0x3db774=_0xb981bb;return c=Object[_0x3db774(0x1ce)]||function(_0x4f2e62){var _0x3058e4=_0x3db774;for(var _0x1a5fac,_0x4468fe=0x1,_0x3a2281=arguments['length'];_0x4468fe<_0x3a2281;_0x4468fe++){_0x1a5fac=arguments[_0x4468fe];for(var _0x5b8a9d in _0x1a5fac)Object['prototype'][_0x3058e4(0x16b)]['call'](_0x1a5fac,_0x5b8a9d)&&(_0x4f2e62[_0x5b8a9d]=_0x1a5fac[_0x5b8a9d]);}return _0x4f2e62;},c[_0x3db774(0x16f)](this,arguments);},Ce=function(_0x3f5bd5,_0x402568){var _0x54821f=_0xb981bb,_0x4e0803={};for(var _0x63eb59 in _0x3f5bd5)Object['prototype']['hasOwnProperty']['call'](_0x3f5bd5,_0x63eb59)&&_0x402568[_0x54821f(0x19e)](_0x63eb59)<0x0&&(_0x4e0803[_0x63eb59]=_0x3f5bd5[_0x63eb59]);if(_0x3f5bd5!=null&&typeof Object[_0x54821f(0x1f3)]==_0x54821f(0x155)){for(var _0x4bc143=0x0,_0x63eb59=Object['getOwnPropertySymbols'](_0x3f5bd5);_0x4bc143<_0x63eb59['length'];_0x4bc143++)_0x402568[_0x54821f(0x19e)](_0x63eb59[_0x4bc143])<0x0&&Object[_0x54821f(0x17c)]['propertyIsEnumerable']['call'](_0x3f5bd5,_0x63eb59[_0x4bc143])&&(_0x4e0803[_0x63eb59[_0x4bc143]]=_0x3f5bd5[_0x63eb59[_0x4bc143]]);}return _0x4e0803;},W=_0x48edea(function(_0x26068f,_0x39530b){var _0x14a876=_0xb981bb,_0x30fc4a=_0x26068f[_0x14a876(0x1d8)],_0x2b2f94=_0x26068f['id'],_0x46853=_0x26068f[_0x14a876(0x1f9)],_0x86baf6=_0x26068f['extend'],_0x20935e=Ce(_0x26068f,[_0x14a876(0x1d8),'id','className',_0x14a876(0x1fa)]),_0x1db1a3=_0x14a876(0x1fe)[_0x14a876(0x1f6)](_0x2b2f94,'\x20')[_0x14a876(0x1f6)](_0x46853||'')[_0x14a876(0x1f4)](),_0x341a77=_0x4b0343('_'[_0x14a876(0x1f6)](Le()));return Y(_0x30fc4a,''['concat'](_0x2b2f94),{'defIds':_0x30fc4a[_0x14a876(0x205)],'idSuffix':_0x341a77[_0x14a876(0x160)]},c({'ref':_0x39530b,'className':_0x1db1a3},_0x20935e),_0x86baf6);});function Y(_0x25019d,_0x4cc3ea,_0x4afdcf,_0x679898,_0x494523){var _0x18a2d8=_0xb981bb;return _0x299d9a(_0x25019d[_0x18a2d8(0x1e9)],c(c({'key':_0x4cc3ea},De(_0x25019d,_0x4afdcf,_0x494523)),_0x679898),(xe(_0x25019d,_0x4afdcf)[_0x18a2d8(0x1ab)]||[])['map'](function(_0x1e6f72,_0x42dbdb){var _0x3b5419=_0x18a2d8;return Y(_0x1e6f72,''[_0x3b5419(0x1f6)](_0x4cc3ea,'-')[_0x3b5419(0x1f6)](_0x25019d[_0x3b5419(0x1e9)],'-')[_0x3b5419(0x1f6)](_0x42dbdb),_0x4afdcf,void 0x0,_0x494523);}));}function De(_0xad1f03,_0xd33e45,_0x2f51a7){var _0x286327=_0xb981bb,_0x1e5fa9=c({},_0xad1f03['attrs']);_0x2f51a7!=null&&_0x2f51a7[_0x286327(0x1cf)]&&_0x1e5fa9[_0x286327(0x168)]===_0x286327(0x1cf)&&(_0x1e5fa9[_0x286327(0x168)]=_0x2f51a7[_0x286327(0x1cf)]),_0xad1f03[_0x286327(0x1e9)]==='mask'&&_0x1e5fa9['id']&&(_0x1e5fa9['id']=_0x1e5fa9['id']+_0xd33e45['idSuffix']),Object['entries'](_0x1e5fa9)['forEach'](function(_0x39c6c0){var _0x47d003=_0x286327,_0x10cd0a=_0x39c6c0[0x0],_0x13ca1f=_0x39c6c0[0x1];_0x10cd0a===_0x47d003(0x1cc)&&typeof _0x13ca1f==_0x47d003(0x162)&&(_0x1e5fa9[_0x10cd0a]=_0x13ca1f[_0x47d003(0x1ee)](/url\(#(.*)\)/,_0x47d003(0x19a)['concat'](_0xd33e45['idSuffix'],')')));});var _0x2c7b57=_0xd33e45[_0x286327(0x205)];return!_0x2c7b57||_0x2c7b57[_0x286327(0x1eb)]===0x0||(_0xad1f03[_0x286327(0x1e9)]===_0x286327(0x1ea)&&_0x1e5fa9['xlink:href']&&(_0x1e5fa9[_0x286327(0x1c5)]=_0x1e5fa9[_0x286327(0x1c5)]+_0xd33e45[_0x286327(0x1a5)]),Object[_0x286327(0x177)](_0x1e5fa9)[_0x286327(0x1b1)](function(_0x135374){var _0x343f34=_0x286327,_0x129395=_0x135374[0x0],_0x1cefb4=_0x135374[0x1];typeof _0x1cefb4==_0x343f34(0x162)&&(_0x1e5fa9[_0x129395]=_0x1cefb4[_0x343f34(0x1ee)](/url\(#(.*)\)/,_0x343f34(0x19a)[_0x343f34(0x1f6)](_0xd33e45[_0x343f34(0x1a5)],')')));})),_0x1e5fa9;}function xe(_0x977d58,_0x20d48c){var _0x2a264a=_0xb981bb,_0x366436,_0x4fedc6=_0x20d48c['defIds'];return!_0x4fedc6||_0x4fedc6[_0x2a264a(0x1eb)]===0x0?_0x977d58:_0x977d58[_0x2a264a(0x1e9)]===_0x2a264a(0x1a6)&&(!((_0x366436=_0x977d58['children'])===null||_0x366436===void 0x0)&&_0x366436[_0x2a264a(0x1eb)])?c(c({},_0x977d58),{'children':_0x977d58[_0x2a264a(0x1ab)][_0x2a264a(0x16e)](function(_0x2c4a16){var _0x38d933=_0x2a264a;return typeof _0x2c4a16[_0x38d933(0x1da)]['id']==_0x38d933(0x162)&&_0x4fedc6&&_0x4fedc6['includes'](_0x2c4a16[_0x38d933(0x1da)]['id'])?c(c({},_0x2c4a16),{'attrs':c(c({},_0x2c4a16['attrs']),{'id':_0x2c4a16[_0x38d933(0x1da)]['id']+_0x20d48c[_0x38d933(0x1a5)]})}):_0x2c4a16;})}):_0x977d58;}function Le(){var _0x16890b=_0xb981bb;return Math['random']()[_0x16890b(0x158)](0x24)[_0x16890b(0x1e5)](0x2,0x8);}W[_0xb981bb(0x19f)]=_0xb981bb(0x1d6);var ye={'tag':_0xb981bb(0x1e0),'attrs':{'xmlns':_0xb981bb(0x198),'fill':_0xb981bb(0x17a),'viewBox':_0xb981bb(0x19d),'width':'1em','height':_0xb981bb(0x17f)},'children':[{'tag':_0xb981bb(0x1b5),'attrs':{'fill':_0xb981bb(0x15b),'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':_0xb981bb(0x1b5),'attrs':{'fill':_0xb981bb(0x15b),'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':_0xb981bb(0x1b4),'clipRule':'evenodd'}}]},B=_0x48edea(function(_0x599e11,_0x41a3dd){var _0x2a03e3=_0xb981bb;return _0x299d9a(W,Object[_0x2a03e3(0x1ce)]({},_0x599e11,{'id':_0x2a03e3(0x1f1),'ref':_0x41a3dd,'icon':ye}));});B['displayName']='LiveShareIcon';var Re=Object[_0xb981bb(0x18d)],Z=(_0xd5b7a6,_0x323be5,_0x42d499,_0x12c586)=>{var _0x7b4d22=_0xb981bb;for(var _0x26216c=_0x12c586>0x1?void 0x0:_0x12c586?Re(_0x323be5,_0x42d499):_0x323be5,_0x2203cf=_0xd5b7a6[_0x7b4d22(0x1eb)]-0x1,_0x5d6a45;_0x2203cf>=0x0;_0x2203cf--)(_0x5d6a45=_0xd5b7a6[_0x2203cf])&&(_0x26216c=_0x5d6a45(_0x26216c)||_0x26216c);return _0x26216c;},f=(_0x2f96db,_0x3f28dd)=>(_0x2ae3fd,_0x2b566e)=>_0x3f28dd(_0x2ae3fd,_0x2b566e,_0x2f96db);let I=class extends _0x431f32{constructor(_0x18a798,_0x12fcc3,_0x1629fa){var _0x3deab9=_0xb981bb;super(),d(this,'_entities',new Map()),(this[_0x3deab9(0x1f8)]=_0x18a798,this[_0x3deab9(0x1f5)]=_0x12fcc3,this[_0x3deab9(0x1a7)]=_0x1629fa,this[_0x3deab9(0x1b2)]());}async[_0xb981bb(0x163)](_0x5f5bcf){var _0xcca69c=_0xb981bb;return this[_0xcca69c(0x1b0)][_0xcca69c(0x180)](_0x5f5bcf)||await this[_0xcca69c(0x191)](_0x5f5bcf),this[_0xcca69c(0x1b0)][_0xcca69c(0x195)](_0x5f5bcf);}[_0xb981bb(0x1b2)](){var _0x305e28=_0xb981bb;this[_0x305e28(0x1f8)]['getTypeOfUnitAdded$'](_0x3a976a[_0x305e28(0x18b)])['pipe'](_0x586d99(this[_0x305e28(0x171)]))[_0x305e28(0x1a1)](async _0x1182a0=>{var _0x1b2582=_0x305e28;const _0x5f3138=_0x1182a0[_0x1b2582(0x189)]();this[_0x1b2582(0x1b0)][_0x1b2582(0x180)](_0x5f3138)||this[_0x1b2582(0x191)](_0x5f3138);}),this['_univerInstanceService'][_0x305e28(0x156)](_0x3a976a[_0x305e28(0x18b)])[_0x305e28(0x1ec)](_0x586d99(this['dispose$']))[_0x305e28(0x1a1)](_0x43c7ac=>{var _0x116ff6=_0x305e28;const _0x199a51=_0x43c7ac[_0x116ff6(0x189)](),_0x22ca88=this[_0x116ff6(0x1b0)][_0x116ff6(0x195)](_0x199a51);_0x22ca88==null||_0x22ca88[_0x116ff6(0x1bd)]();});}async[_0xb981bb(0x191)](_0x136870){var _0x3aaeda=_0xb981bb;const _0x1b6d45=await this[_0x3aaeda(0x1a7)][_0x3aaeda(0x1e3)](_0x136870),_0x32c709=this[_0x3aaeda(0x1f5)]['createInstance'](C,_0x136870,_0x1b6d45);return _0x32c709[_0x3aaeda(0x1f0)](),this['_entities'][_0x3aaeda(0x184)](_0x136870,_0x32c709),_0x32c709;}};I=Z([f(0x0,_0xcc8435),f(0x1,_0x1bcd7d(_0x37a562)),f(0x2,_0x1bcd7d(_0xa7a23))],I);var h=(_0x5a858b=>(_0x5a858b['OFFLINE']='offline',_0x5a858b[_0xb981bb(0x167)]=_0xb981bb(0x16d),_0x5a858b[_0xb981bb(0x1d9)]='following',_0x5a858b['NOT_FOLLOWING']=_0xb981bb(0x1fb),_0x5a858b[_0xb981bb(0x1b3)]='presenting',_0x5a858b))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x431f32{constructor(_0x24a9d7,_0x75f55c,_0x5534f8,_0x246856,_0x3a9ce2){var _0x3dd1d3=_0xb981bb;super(),d(this,_0x3dd1d3(0x1d1),new _0x292abc(_0x3dd1d3(0x16d))),d(this,'status$',this[_0x3dd1d3(0x1d1)]['asObservable']()),d(this,_0x3dd1d3(0x1b2),!0x1),d(this,_0x3dd1d3(0x1fc),null),d(this,_0x3dd1d3(0x1df),null),(this['_unitID']=_0x24a9d7,this[_0x3dd1d3(0x1a8)]=_0x75f55c,this[_0x3dd1d3(0x1ff)]=_0x5534f8,this[_0x3dd1d3(0x1c4)]=_0x246856,this[_0x3dd1d3(0x202)]=_0x3a9ce2);}get['_status'](){var _0x222bda=_0xb981bb;return this[_0x222bda(0x1d1)][_0x222bda(0x18e)]();}[_0xb981bb(0x1bd)](){var _0x515bc3=_0xb981bb,_0x16bb32;(_0x16bb32=this[_0x515bc3(0x1fc)])==null||_0x16bb32[_0x515bc3(0x1bd)](),this[_0x515bc3(0x1d1)][_0x515bc3(0x1ac)](_0x515bc3(0x16d)),this[_0x515bc3(0x1d1)][_0x515bc3(0x16a)]();}[_0xb981bb(0x1f0)](){var _0xa24847=_0xb981bb;this['_init']||(this[_0xa24847(0x1b2)]=!0x0,this[_0xa24847(0x1a8)][_0xa24847(0x170)][_0xa24847(0x1ec)](_0x586d99(this[_0xa24847(0x171)]))[_0xa24847(0x1a1)](_0x284340=>{var _0x470fbf=_0xa24847;switch(_0x284340){case _0x109da2[_0x470fbf(0x165)]:this[_0x470fbf(0x1b6)]();break;case _0x109da2[_0x470fbf(0x1db)]:this[_0x470fbf(0x15e)]();break;}}),this[_0xa24847(0x1a8)][_0xa24847(0x1dc)]['pipe'](_0x586d99(this['dispose$']))[_0xa24847(0x1a1)](_0x4a58e2=>{var _0x50d29c=_0xa24847;const {eventID:_0x1436f9}=_0x4a58e2;switch(_0x1436f9){case _0x3796e6[_0x50d29c(0x1af)]:this[_0x50d29c(0x175)](_0x4a58e2);break;case _0x3796e6[_0x50d29c(0x1c9)]:this[_0x50d29c(0x173)](_0x4a58e2);break;case _0x3796e6[_0x50d29c(0x1a2)]:this[_0x50d29c(0x185)]();break;case _0x3796e6[_0x50d29c(0x181)]:this['_handleNewChangeSets'](_0x4a58e2);break;}}));}[_0xb981bb(0x1ca)](){var _0x217daf=_0xb981bb;this[_0x217daf(0x1a8)][_0x217daf(0x1e4)]({'eventID':_0x3796e6[_0x217daf(0x1be)],'data':{'unitID':this['_unitID'],'userID':this[_0x217daf(0x1a8)][_0x217daf(0x1e2)]()}},this[_0x217daf(0x1e7)]);}['stopPresenting'](){var _0x16b9ba=_0xb981bb;this[_0x16b9ba(0x1ed)]==='presenting'&&(this[_0x16b9ba(0x1d1)][_0x16b9ba(0x1ac)](_0x16b9ba(0x16d)),this[_0x16b9ba(0x1a8)][_0x16b9ba(0x1e4)]({'eventID':_0x3796e6[_0x16b9ba(0x1a2)],'data':{'unitID':this[_0x16b9ba(0x1e7)]}},this[_0x16b9ba(0x1e7)]));}[_0xb981bb(0x179)](){var _0x4fc44e=_0xb981bb;this[_0x4fc44e(0x1ed)]==='not-following'&&(this[_0x4fc44e(0x1d1)]['next']('following'),this[_0x4fc44e(0x15a)]());}[_0xb981bb(0x194)](){var _0x8cb4e1=_0xb981bb;this[_0x8cb4e1(0x1ed)]===_0x8cb4e1(0x1c3)&&this[_0x8cb4e1(0x183)]();}[_0xb981bb(0x175)](_0x1b4888){var _0x5925de=_0xb981bb;const {presenter:_0x4ae5eb}=_0x1b4888[_0x5925de(0x17e)],_0x30c954=this[_0x5925de(0x1a8)][_0x5925de(0x1e2)]();this['_presenter']=_0x4ae5eb,_0x4ae5eb===_0x30c954?(this[_0x5925de(0x183)](),this[_0x5925de(0x1bc)]()):this['_status']!==_0x5925de(0x1fb)&&(this[_0x5925de(0x1b9)](),this[_0x5925de(0x15a)]());}[_0xb981bb(0x1d2)](){var _0x4b2ec4=_0xb981bb;const _0x457e81={'eventID':_0x3796e6[_0x4b2ec4(0x1b8)]};this[_0x4b2ec4(0x1a8)]['send'](_0x457e81,this['_unitID']);}[_0xb981bb(0x185)](){var _0x267741=_0xb981bb;this[_0x267741(0x1df)]=null,this[_0x267741(0x1ed)]!=='presenting'&&this[_0x267741(0x1bb)]();}['_handleNewChangeSets'](_0x4902e4){var _0x4d8eb7=_0xb981bb;if(this[_0x4d8eb7(0x1ed)]===_0x4d8eb7(0x1c3)&&this[_0x4d8eb7(0x1df)]===_0x4902e4[_0x4d8eb7(0x17e)][_0x4d8eb7(0x1dd)]){const _0x4711b3=_0x50217b(_0x4902e4[_0x4d8eb7(0x17e)])[_0x4d8eb7(0x161)][_0x4d8eb7(0x200)]()[_0x4d8eb7(0x199)](_0x187c00=>_0x187c00['id']===_0x1c8818['id']);if(_0x4711b3){const _0x55763d=_0x4711b3[_0x4d8eb7(0x1de)][_0x4d8eb7(0x193)],_0x3c087b=_0x4711b3['params']['sheet']['id'];setTimeout(()=>{var _0x32aa70=_0x4d8eb7;this[_0x32aa70(0x202)][_0x32aa70(0x1c8)](_0x3a3cea['id'],{'unitId':_0x55763d,'subUnitId':_0x3c087b},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x1046a9=_0xb981bb;this['_status$'][_0x1046a9(0x1ac)]('presenting');const _0x278730=new Map(),_0x2d3df1=this[_0x1046a9(0x1fc)]=new _0x467461();_0x2d3df1[_0x1046a9(0x154)](_0x175da3(()=>{var _0xd9b076=_0x1046a9;_0x278730[_0xd9b076(0x1b1)](_0x3bd7aa=>_0x3bd7aa[_0xd9b076(0x16a)]()),_0x278730[_0xd9b076(0x1d3)]();})),_0x2d3df1[_0x1046a9(0x154)](this[_0x1046a9(0x202)][_0x1046a9(0x1c2)](_0x3b2f23=>{var _0x32984c=_0x1046a9,_0x2c7ce3;if(_0x3b2f23[_0x32984c(0x157)]!==_0x50e7a3[_0x32984c(0x18f)]||!this[_0x32984c(0x1c4)][_0x32984c(0x1f7)](_0x3b2f23['id']))return;const {id:_0x2fe26e}=_0x3b2f23;let _0x23f4da;_0x278730[_0x32984c(0x180)](_0x2fe26e)?_0x23f4da=_0x278730['get'](_0x2fe26e):(_0x23f4da=new _0x24f5d6(),_0x278730[_0x32984c(0x184)](_0x2fe26e,_0x23f4da),_0x23f4da['pipe'](_0x90091d((_0x2c7ce3=this['_configService'][_0x32984c(0x1ad)](Pe))!=null?_0x2c7ce3:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x32984c(0x1a1)](_0x250ee4=>{var _0x2629a4=_0x32984c;this[_0x2629a4(0x1a8)]['send']({'eventID':_0x3796e6[_0x2629a4(0x1c9)],'data':{'unitID':this['_unitID'],'operations':{[_0x250ee4['id']]:{'id':_0x250ee4['id'],'params':JSON[_0x2629a4(0x1f2)](_0x250ee4[_0x2629a4(0x1de)])}}}},this[_0x2629a4(0x1e7)]);})),_0x23f4da[_0x32984c(0x1ac)](_0x3b2f23);})),this['_liveShareService']['getInitialStates'](this[_0x1046a9(0x1e7)])[_0x1046a9(0x1b1)](_0x423b63=>this[_0x1046a9(0x1a8)]['send']({'eventID':_0x3796e6[_0x1046a9(0x1c9)],'data':{'unitID':this[_0x1046a9(0x1e7)],'operations':{[_0x423b63['id']]:{'id':_0x423b63['id'],'params':JSON[_0x1046a9(0x1f2)](_0x423b63[_0x1046a9(0x1de)])}}}},this[_0x1046a9(0x1e7)]));}[_0xb981bb(0x1b9)](){var _0x1f6a63=_0xb981bb,_0x2b7f32;this['_status$']['next'](_0x1f6a63(0x16d)),(_0x2b7f32=this['_commandDisposable'])==null||_0x2b7f32['dispose'](),this[_0x1f6a63(0x1fc)]=null;}[_0xb981bb(0x15a)](){var _0x3c0ae5=_0xb981bb,_0x5ea509;(_0x5ea509=this['_commandDisposable'])==null||_0x5ea509[_0x3c0ae5(0x1bd)](),this['_status$'][_0x3c0ae5(0x1ac)](_0x3c0ae5(0x1c3));}[_0xb981bb(0x1bb)](){var _0x276b88=_0xb981bb,_0xdecc28;this[_0x276b88(0x1d1)]['next'](_0x276b88(0x16d)),(_0xdecc28=this[_0x276b88(0x1fc)])==null||_0xdecc28['dispose'](),this[_0x276b88(0x1fc)]=null;}[_0xb981bb(0x183)](){var _0x495545=_0xb981bb,_0x321ae7;this[_0x495545(0x1d1)][_0x495545(0x1ac)](_0x495545(0x1fb)),(_0x321ae7=this[_0x495545(0x1fc)])==null||_0x321ae7[_0x495545(0x1bd)]();}[_0xb981bb(0x173)](_0x1e0a5d){var _0x64f0f5=_0xb981bb;if(['presenting',_0x64f0f5(0x1fb),_0x64f0f5(0x1bf)][_0x64f0f5(0x1ba)](this[_0x64f0f5(0x1ed)])||!_0x1e0a5d[_0x64f0f5(0x17e)][_0x64f0f5(0x15c)]||_0x1e0a5d[_0x64f0f5(0x17e)][_0x64f0f5(0x15c)]===this[_0x64f0f5(0x1a8)]['getMemberID']())return;this[_0x64f0f5(0x1ed)]==='idle'&&this[_0x64f0f5(0x15a)]();const _0x3c59d2=_0x1e0a5d[_0x64f0f5(0x17e)][_0x64f0f5(0x1a3)];Object[_0x64f0f5(0x19b)](_0x3c59d2)[_0x64f0f5(0x1b1)](_0x2ffa66=>{var _0x2faab9=_0x64f0f5;this['_commandService'][_0x2faab9(0x1c8)](_0x2ffa66['id'],_0x2ffa66[_0x2faab9(0x1de)]?JSON[_0x2faab9(0x188)](_0x2ffa66[_0x2faab9(0x1de)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1519bf=_0xb981bb,_0x454f44;this['_status$'][_0x1519bf(0x1ac)](_0x1519bf(0x1bf)),(_0x454f44=this['_commandDisposable'])==null||_0x454f44[_0x1519bf(0x1bd)]();}['_handleOnline'](){var _0x480fe8=_0xb981bb;this[_0x480fe8(0x1d1)]['next'](_0x480fe8(0x16d)),this[_0x480fe8(0x1d2)]();}};C=Z([f(0x2,_0x509fd7),f(0x3,_0x1bcd7d(L)),f(0x4,_0x936333)],C);function Te(){var _0x57f741=_0xb981bb;const _0x1124fe=_0x11f2c5(I),_0x381b73=_0x11f2c5(_0xcc8435),_0x36a6fc=_0x107d72(()=>_0x381b73[_0x57f741(0x1d7)](_0x3a976a[_0x57f741(0x18b)]),void 0x0,!0x1,[]),[_0x280801,_0x4a7ccd]=_0x444650(null),[_0x960ece,_0x546fdd]=_0x444650(h[_0x57f741(0x167)]),_0x35b451=_0x4b0343(null);return _0x4112e7(()=>(_0x36a6fc&&_0x1124fe['getLiveShareCoordinator'](_0x36a6fc[_0x57f741(0x189)]())[_0x57f741(0x1a0)](_0xb04ee1=>{var _0x14300c=_0x57f741;_0x4a7ccd(_0xb04ee1),_0x35b451[_0x14300c(0x160)]=_0xb04ee1[_0x14300c(0x17b)]['subscribe'](_0x6c529a=>{_0x546fdd(_0x6c529a);});}),()=>{var _0x1ace22=_0x57f741,_0x400bb9;(_0x400bb9=_0x35b451[_0x1ace22(0x160)])==null||_0x400bb9[_0x1ace22(0x18a)](),_0x35b451['current']=null;}),[_0x36a6fc,_0x1124fe]),_0x280801?_0x4c3f9c(_0xb7c916,{'align':'end','disabled':_0x960ece===h['OFFLINE'],'className':_0x57f741(0x182),'overlay':_0x4c3f9c($e,{'status':_0x960ece,'coordinator':_0x280801}),'children':_0x4c3f9c('button',{'className':_0xb5c652(_0x57f741(0x172),{'univer-cursor-not-allowed':_0x960ece===h[_0x57f741(0x165)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x960ece!==h[_0x57f741(0x165)]}),'type':_0x57f741(0x18c),'children':_0x4c3f9c(B,{'className':_0x57f741(0x164)})})}):null;}function $e(_0x1afab9){var _0x3f5ff3=_0xb981bb;const {status:_0x489c30,coordinator:_0x97e99c}=_0x1afab9;switch(_0x489c30){case h[_0x3f5ff3(0x167)]:return _0x4c3f9c(Fe,{'coordinator':_0x97e99c});case h[_0x3f5ff3(0x1d9)]:return _0x4c3f9c(He,{'coordinator':_0x97e99c});case h[_0x3f5ff3(0x206)]:return _0x4c3f9c(je,{'coordinator':_0x97e99c});case h[_0x3f5ff3(0x165)]:return _0x4c3f9c(Ve,{});case h[_0x3f5ff3(0x1b3)]:return _0x4c3f9c(Ue,{'coordinator':_0x97e99c});default:return null;}}function Fe(_0x157a28){var _0xdb6711=_0xb981bb;const {coordinator:_0x28998a}=_0x157a28;return _0x55ac32(_0x35c6a7,{'children':[_0x4c3f9c(_0xdb6711(0x192),{'className':_0xdb6711(0x1a9),'children':_0xdb6711(0x1b7)}),_0x4c3f9c(_0x3c1ff4,{'onClick':()=>_0x28998a[_0xdb6711(0x1ca)](),'children':_0xdb6711(0x15d)})]});}function He(_0x1309bc){var _0x1b04b2=_0xb981bb;const {coordinator:_0x1ddc37}=_0x1309bc;return _0x55ac32(_0x35c6a7,{'children':[_0x4c3f9c('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x1b04b2(0x159)}),_0x4c3f9c(_0x3c1ff4,{'onClick':()=>_0x1ddc37[_0x1b04b2(0x194)](),'children':'Stop\x20following'})]});}function je(_0x4302c5){var _0x5519c7=_0xb981bb;const {coordinator:_0x35af22}=_0x4302c5;return _0x55ac32(_0x35c6a7,{'children':[_0x4c3f9c('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5519c7(0x16c)}),_0x4c3f9c(_0x3c1ff4,{'variant':_0x5519c7(0x203),'onClick':()=>_0x35af22['startFollowing'](),'children':_0x5519c7(0x197)})]});}function Ue(_0x29f4a8){var _0x35feb1=_0xb981bb;const {coordinator:_0x5cbda6}=_0x29f4a8;return _0x55ac32(_0x35c6a7,{'children':[_0x4c3f9c('div',{'className':_0x35feb1(0x1a9),'children':_0x35feb1(0x178)}),_0x4c3f9c(_0x3c1ff4,{'variant':'default','onClick':()=>_0x5cbda6['stopPresenting'](),'children':_0x35feb1(0x15f)})]});}function Ve(){return _0x4c3f9c(_0x35c6a7,{'children':'You\x27are\x20offline.'});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x249148,_0x53bad2,_0x97988e,_0x2c9780)=>{var _0x2ea9d9=_0xb981bb;for(var _0x5098ac=_0x2c9780>0x1?void 0x0:_0x2c9780?Me(_0x53bad2,_0x97988e):_0x53bad2,_0x3759c3=_0x249148[_0x2ea9d9(0x1eb)]-0x1,_0x2d0e76;_0x3759c3>=0x0;_0x3759c3--)(_0x2d0e76=_0x249148[_0x3759c3])&&(_0x5098ac=_0x2d0e76(_0x5098ac)||_0x5098ac);return _0x5098ac;},$=(_0x45d42e,_0x59bb20)=>(_0x181d7a,_0x599808)=>_0x59bb20(_0x181d7a,_0x599808,_0x45d42e);let b=class extends _0x1f0cb2{constructor(_0x3a386b,_0xc4307c){var _0x463425=_0xb981bb;super(),this[_0x463425(0x1f5)]=_0x3a386b,this[_0x463425(0x174)]=_0xc4307c,this[_0x463425(0x1fd)]();}['_mountLiveShare'](){var _0xf6084a=_0xb981bb;this[_0xf6084a(0x1cd)](this['_uiPartsService']['registerComponent'](_0x475348[_0xf6084a(0x1e1)],()=>_0x2d5549(Te,this[_0xf6084a(0x1f5)])));}};b=ke([$(0x0,_0x1bcd7d(_0x37a562)),$(0x1,_0x2658e0)],b);var Ge=Object[_0xb981bb(0x204)],We=Object[_0xb981bb(0x18d)],Ye=(_0x342e8b,_0xfad069,_0x2c2755)=>_0xfad069 in _0x342e8b?Ge(_0x342e8b,_0xfad069,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c2755}):_0x342e8b[_0xfad069]=_0x2c2755,Be=(_0x220226,_0x34cdf7,_0x167074,_0x5050c1)=>{var _0x2a4d12=_0xb981bb;for(var _0x5e71b2=_0x5050c1>0x1?void 0x0:_0x5050c1?We(_0x34cdf7,_0x167074):_0x34cdf7,_0x538211=_0x220226[_0x2a4d12(0x1eb)]-0x1,_0x575402;_0x538211>=0x0;_0x538211--)(_0x575402=_0x220226[_0x538211])&&(_0x5e71b2=_0x575402(_0x5e71b2)||_0x5e71b2);return _0x5e71b2;},F=(_0x1dda79,_0x4994fa)=>(_0x250a82,_0x49df34)=>_0x4994fa(_0x250a82,_0x49df34,_0x1dda79),J=(_0x28c95d,_0x55fbd4,_0xa644c7)=>Ye(_0x28c95d,typeof _0x55fbd4!=_0xb981bb(0x1d5)?_0x55fbd4+'':_0x55fbd4,_0xa644c7);const Ze=_0xb981bb(0x1cb);let O=class extends _0x267245{constructor(_0x21cac8=T,_0x12fda2,_0x30f0a2){var _0x24d990=_0xb981bb;super(),this['_config']=_0x21cac8,this[_0x24d990(0x1f5)]=_0x12fda2,this[_0x24d990(0x1ff)]=_0x30f0a2;const {..._0x170cc9}=_0x32e7ad({},T,this[_0x24d990(0x1c6)]);this[_0x24d990(0x1ff)]['setConfig'](Oe,_0x170cc9);}[_0xb981bb(0x1c7)](){var _0x32bd59=_0xb981bb;_0x3d2a61(this[_0x32bd59(0x1f5)],_0x299ee2([[L],[I],[m],[b]],this[_0x32bd59(0x1c6)][_0x32bd59(0x1c1)])),_0x3fac19(this[_0x32bd59(0x1f5)],[[m]]);}[_0xb981bb(0x1e6)](){_0x3fac19(this['_injector'],[[b]]);}};J(O,_0xb981bb(0x157),_0x3a976a[_0xb981bb(0x1ae)]),J(O,_0xb981bb(0x190),Ze),O=Be([_0x5bda4b(_0x4f654),F(0x1,_0x1bcd7d(_0x37a562)),F(0x2,_0x509fd7)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x3a0295,_0xa96d5f){var _0x147a03=_0x551c,_0x3f15a0=_0x3a0295();while(!![]){try{var _0x33a802=-parseInt(_0x147a03(0xcd))/0x1*(-parseInt(_0x147a03(0x135))/0x2)+parseInt(_0x147a03(0x107))/0x3+parseInt(_0x147a03(0xd9))/0x4+parseInt(_0x147a03(0xc5))/0x5*(parseInt(_0x147a03(0x96))/0x6)+-parseInt(_0x147a03(0x11e))/0x7+-parseInt(_0x147a03(0x113))/0x8+parseInt(_0x147a03(0x120))/0x9;if(_0x33a802===_0xa96d5f)break;else _0x3f15a0['push'](_0x3f15a0['shift']());}catch(_0x3b0385){_0x3f15a0['push'](_0x3f15a0['shift']());}}}(_0x2e9b,0x5dd44),function(_0x53ed2e,_0x2cd35d){var _0xec5b5c=_0x551c;typeof exports==_0xec5b5c(0x16b)&&typeof module<'u'?_0x2cd35d(exports,require(_0xec5b5c(0xf1)),require('@univerjs/core'),require(_0xec5b5c(0x169)),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require(_0xec5b5c(0x14b)),require(_0xec5b5c(0xe1)),require(_0xec5b5c(0xeb)),require(_0xec5b5c(0x131)),require(_0xec5b5c(0x164)),require(_0xec5b5c(0xe7))):typeof define==_0xec5b5c(0x106)&&define[_0xec5b5c(0x15a)]?define([_0xec5b5c(0x89),'@univerjs-pro/collaboration-client',_0xec5b5c(0xff),_0xec5b5c(0x169),_0xec5b5c(0x124),_0xec5b5c(0xca),_0xec5b5c(0x14b),'@univerjs/design',_0xec5b5c(0xeb),'@univerjs-pro/collaboration','rxjs','rxjs/operators'],_0x2cd35d):(_0x53ed2e=typeof globalThis<'u'?globalThis:_0x53ed2e||self,_0x2cd35d(_0x53ed2e['UniverProLiveShare']={},_0x53ed2e[_0xec5b5c(0x155)],_0x53ed2e[_0xec5b5c(0x11d)],_0x53ed2e[_0xec5b5c(0x9f)],_0x53ed2e[_0xec5b5c(0xb5)],_0x53ed2e[_0xec5b5c(0xda)],_0x53ed2e[_0xec5b5c(0x12a)],_0x53ed2e[_0xec5b5c(0x14d)],_0x53ed2e['React'],_0x53ed2e['UniverProCollaboration'],_0x53ed2e[_0xec5b5c(0x164)],_0x53ed2e[_0xec5b5c(0x164)]['operators']));}(this,function(_0x1ad529,_0x86777e,_0x68649f,_0x29cc2f,_0x1d2bd8,_0x467c60,_0x252371,_0x22cbab,_0x1adffa,_0x2e7c2c,_0x2afcdd,_0x2844f8){'use strict';var _0x3abdb7=_0x551c;var _0x3a4666=Object[_0x3abdb7(0xa7)],_0x23664f=(_0x21c623,_0x2ab4de,_0x1cd2cf)=>_0x2ab4de in _0x21c623?_0x3a4666(_0x21c623,_0x2ab4de,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1cd2cf}):_0x21c623[_0x2ab4de]=_0x1cd2cf,_0x39c852=(_0x4e4741,_0x354f39,_0x5450e1)=>_0x23664f(_0x4e4741,typeof _0x354f39!=_0x3abdb7(0x153)?_0x354f39+'':_0x354f39,_0x5450e1);const _0x5a5348=_0x3abdb7(0x14f),_0x2fd119={};class _0x262dcf extends _0x68649f[_0x3abdb7(0xef)]{constructor(){var _0x183068=_0x3abdb7;super(...arguments),_0x39c852(this,_0x183068(0x157),new Set()),_0x39c852(this,_0x183068(0xfb),new Set());}[_0x3abdb7(0xf5)](_0x28ea65){var _0x24f771=_0x3abdb7;return this[_0x24f771(0x157)][_0x24f771(0x148)](_0x28ea65),_0x68649f[_0x24f771(0x138)](()=>this['_sharedOperations'][_0x24f771(0xa0)](_0x28ea65));}['registerInitialStateReporter'](_0x1c2250){var _0x41f5ee=_0x3abdb7;return this['_reporters'][_0x41f5ee(0x148)](_0x1c2250),_0x68649f[_0x41f5ee(0x138)](()=>this[_0x41f5ee(0xfb)][_0x41f5ee(0xa0)](_0x1c2250));}[_0x3abdb7(0x166)](_0xcdff1e){return this['_sharedOperations']['has'](_0xcdff1e);}['getInitialStates'](_0x2b4897){var _0x2f11e2=_0x3abdb7;return Array[_0x2f11e2(0xe3)](this['_reporters'])['map'](_0x542593=>_0x542593(_0x2b4897));}}var _0xe5bade=Object[_0x3abdb7(0x13d)],_0x17bc3c=(_0x7e8dc8,_0x367aee,_0x5db184,_0x17a1b2)=>{var _0x374ab7=_0x3abdb7;for(var _0x4a3f63=_0x17a1b2>0x1?void 0x0:_0x17a1b2?_0xe5bade(_0x367aee,_0x5db184):_0x367aee,_0x431e52=_0x7e8dc8[_0x374ab7(0xac)]-0x1,_0xdfbcfa;_0x431e52>=0x0;_0x431e52--)(_0xdfbcfa=_0x7e8dc8[_0x431e52])&&(_0x4a3f63=_0xdfbcfa(_0x4a3f63)||_0x4a3f63);return _0x4a3f63;},_0x5829a0=(_0x4d9428,_0x34b8b9)=>(_0x537cc5,_0x46b404)=>_0x34b8b9(_0x537cc5,_0x46b404,_0x4d9428);let _0x3b0a36=class extends _0x68649f['Disposable']{constructor(_0x412701){var _0x1d054e=_0x3abdb7;super(),this[_0x1d054e(0x137)]=_0x412701,this[_0x1d054e(0xd5)]();}[_0x3abdb7(0xd5)](){var _0x4ff5b7=_0x3abdb7;[_0x1d2bd8['SetZoomRatioOperation']['id'],_0x1d2bd8[_0x4ff5b7(0x159)]['id'],_0x29cc2f[_0x4ff5b7(0xb1)]['id']][_0x4ff5b7(0x168)](_0x10b7e1=>{var _0x5712fb=_0x4ff5b7;this[_0x5712fb(0xae)](this[_0x5712fb(0x137)]['registerSharedOperation'](_0x10b7e1));});}};_0x3b0a36=_0x17bc3c([_0x5829a0(0x0,_0x68649f[_0x3abdb7(0xdf)](_0x262dcf))],_0x3b0a36);var _0x5dd2ef=function(){var _0x314868=_0x3abdb7;return _0x5dd2ef=Object[_0x314868(0xb4)]||function(_0x2dafc8){var _0x37e4d9=_0x314868;for(var _0x2d9965,_0x39c07d=0x1,_0x4ef927=arguments[_0x37e4d9(0xac)];_0x39c07d<_0x4ef927;_0x39c07d++){_0x2d9965=arguments[_0x39c07d];for(var _0x30f01a in _0x2d9965)Object['prototype'][_0x37e4d9(0x9b)][_0x37e4d9(0x116)](_0x2d9965,_0x30f01a)&&(_0x2dafc8[_0x30f01a]=_0x2d9965[_0x30f01a]);}return _0x2dafc8;},_0x5dd2ef[_0x314868(0x12f)](this,arguments);},_0x24d504=function(_0x53be78,_0x3b4596){var _0xa93b01=_0x3abdb7,_0x2f95f0={};for(var _0x22c18d in _0x53be78)Object['prototype'][_0xa93b01(0x9b)][_0xa93b01(0x116)](_0x53be78,_0x22c18d)&&_0x3b4596[_0xa93b01(0xfe)](_0x22c18d)<0x0&&(_0x2f95f0[_0x22c18d]=_0x53be78[_0x22c18d]);if(_0x53be78!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x5c6626=0x0,_0x22c18d=Object['getOwnPropertySymbols'](_0x53be78);_0x5c6626<_0x22c18d[_0xa93b01(0xac)];_0x5c6626++)_0x3b4596[_0xa93b01(0xfe)](_0x22c18d[_0x5c6626])<0x0&&Object['prototype'][_0xa93b01(0x109)]['call'](_0x53be78,_0x22c18d[_0x5c6626])&&(_0x2f95f0[_0x22c18d[_0x5c6626]]=_0x53be78[_0x22c18d[_0x5c6626]]);}return _0x2f95f0;},_0x4ef3c0=_0x1adffa[_0x3abdb7(0x127)](function(_0x3703ad,_0x54a929){var _0x13f839=_0x3abdb7,_0x5eefcd=_0x3703ad[_0x13f839(0x15f)],_0x51afba=_0x3703ad['id'],_0x306906=_0x3703ad[_0x13f839(0x94)],_0x423e90=_0x3703ad[_0x13f839(0x12d)],_0x37b51c=_0x24d504(_0x3703ad,['icon','id',_0x13f839(0x94),_0x13f839(0x12d)]),_0x315fb8='univerjs-icon\x20univerjs-icon-'['concat'](_0x51afba,'\x20')['concat'](_0x306906||'')[_0x13f839(0x10f)](),_0x364617=_0x1adffa[_0x13f839(0xb2)]('_'[_0x13f839(0x10e)](_0x5edde5()));return _0x26ab52(_0x5eefcd,''[_0x13f839(0x10e)](_0x51afba),{'defIds':_0x5eefcd[_0x13f839(0x14a)],'idSuffix':_0x364617[_0x13f839(0xc9)]},_0x5dd2ef({'ref':_0x54a929,'className':_0x315fb8},_0x37b51c),_0x423e90);});function _0x26ab52(_0x180c91,_0x572c93,_0x31c597,_0x3a7f29,_0x27f07d){var _0x24ae7c=_0x3abdb7;return _0x1adffa[_0x24ae7c(0x88)](_0x180c91[_0x24ae7c(0xb3)],_0x5dd2ef(_0x5dd2ef({'key':_0x572c93},_0x5aaeb7(_0x180c91,_0x31c597,_0x27f07d)),_0x3a7f29),(_0x375566(_0x180c91,_0x31c597)[_0x24ae7c(0x93)]||[])['map'](function(_0x4c33c0,_0x3e1168){var _0x2b31ed=_0x24ae7c;return _0x26ab52(_0x4c33c0,''[_0x2b31ed(0x10e)](_0x572c93,'-')[_0x2b31ed(0x10e)](_0x180c91[_0x2b31ed(0xb3)],'-')['concat'](_0x3e1168),_0x31c597,void 0x0,_0x27f07d);}));}function _0x5aaeb7(_0x1a25bc,_0x26e47f,_0x51ede3){var _0x41354f=_0x3abdb7,_0x5cd5c8=_0x5dd2ef({},_0x1a25bc['attrs']);_0x51ede3!=null&&_0x51ede3[_0x41354f(0x111)]&&_0x5cd5c8[_0x41354f(0x9d)]===_0x41354f(0x111)&&(_0x5cd5c8[_0x41354f(0x9d)]=_0x51ede3[_0x41354f(0x111)]),_0x1a25bc[_0x41354f(0xb3)]===_0x41354f(0xa9)&&_0x5cd5c8['id']&&(_0x5cd5c8['id']=_0x5cd5c8['id']+_0x26e47f[_0x41354f(0xcc)]),Object[_0x41354f(0xbb)](_0x5cd5c8)[_0x41354f(0x168)](function(_0x25cb5b){var _0x2f8568=_0x41354f,_0x22c9c9=_0x25cb5b[0x0],_0x5921e4=_0x25cb5b[0x1];_0x22c9c9===_0x2f8568(0xa9)&&typeof _0x5921e4==_0x2f8568(0x12c)&&(_0x5cd5c8[_0x22c9c9]=_0x5921e4[_0x2f8568(0xab)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x26e47f[_0x2f8568(0xcc)],')')));});var _0x2303d3=_0x26e47f[_0x41354f(0x14a)];return!_0x2303d3||_0x2303d3[_0x41354f(0xac)]===0x0||(_0x1a25bc[_0x41354f(0xb3)]===_0x41354f(0x161)&&_0x5cd5c8[_0x41354f(0xa8)]&&(_0x5cd5c8[_0x41354f(0xa8)]=_0x5cd5c8[_0x41354f(0xa8)]+_0x26e47f[_0x41354f(0xcc)]),Object['entries'](_0x5cd5c8)[_0x41354f(0x168)](function(_0x2ba5eb){var _0x488e33=_0x41354f,_0x1ff48e=_0x2ba5eb[0x0],_0x1fffd4=_0x2ba5eb[0x1];typeof _0x1fffd4==_0x488e33(0x12c)&&(_0x5cd5c8[_0x1ff48e]=_0x1fffd4[_0x488e33(0xab)](/url\(#(.*)\)/,_0x488e33(0xb9)['concat'](_0x26e47f[_0x488e33(0xcc)],')')));})),_0x5cd5c8;}function _0x375566(_0x2ad3c9,_0xf8ae26){var _0x9e980c=_0x3abdb7,_0x4f3a23,_0x12ab14=_0xf8ae26[_0x9e980c(0x14a)];return!_0x12ab14||_0x12ab14[_0x9e980c(0xac)]===0x0?_0x2ad3c9:_0x2ad3c9['tag']==='defs'&&(!((_0x4f3a23=_0x2ad3c9[_0x9e980c(0x93)])===null||_0x4f3a23===void 0x0)&&_0x4f3a23[_0x9e980c(0xac)])?_0x5dd2ef(_0x5dd2ef({},_0x2ad3c9),{'children':_0x2ad3c9['children'][_0x9e980c(0x139)](function(_0xadb1ab){var _0x1cb318=_0x9e980c;return typeof _0xadb1ab[_0x1cb318(0x83)]['id']==_0x1cb318(0x12c)&&_0x12ab14&&_0x12ab14[_0x1cb318(0x102)](_0xadb1ab[_0x1cb318(0x83)]['id'])?_0x5dd2ef(_0x5dd2ef({},_0xadb1ab),{'attrs':_0x5dd2ef(_0x5dd2ef({},_0xadb1ab['attrs']),{'id':_0xadb1ab[_0x1cb318(0x83)]['id']+_0xf8ae26[_0x1cb318(0xcc)]})}):_0xadb1ab;})}):_0x2ad3c9;}function _0x5edde5(){var _0x2e8545=_0x3abdb7;return Math['random']()[_0x2e8545(0xcf)](0x24)[_0x2e8545(0x144)](0x2,0x8);}_0x4ef3c0[_0x3abdb7(0xa4)]=_0x3abdb7(0xf3);var _0x589cf3={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3abdb7(0x90),'viewBox':_0x3abdb7(0x86),'width':'1em','height':_0x3abdb7(0x149)},'children':[{'tag':_0x3abdb7(0x146),'attrs':{'fill':'currentColor','d':_0x3abdb7(0x92)}},{'tag':_0x3abdb7(0x146),'attrs':{'fill':_0x3abdb7(0x98),'d':_0x3abdb7(0xa6),'fillRule':_0x3abdb7(0x130),'clipRule':_0x3abdb7(0x130)}}]},_0x34924a=_0x1adffa[_0x3abdb7(0x127)](function(_0x4df344,_0x5adcc){var _0x2398f1=_0x3abdb7;return _0x1adffa[_0x2398f1(0x88)](_0x4ef3c0,Object['assign']({},_0x4df344,{'id':_0x2398f1(0xe2),'ref':_0x5adcc,'icon':_0x589cf3}));});_0x34924a[_0x3abdb7(0xa4)]='LiveShareIcon';var _0x22e6d5=Object[_0x3abdb7(0x13d)],_0x4e5da2=(_0x14c557,_0x33a6ae,_0x457b09,_0x1d305f)=>{var _0x42b3df=_0x3abdb7;for(var _0x1a02f9=_0x1d305f>0x1?void 0x0:_0x1d305f?_0x22e6d5(_0x33a6ae,_0x457b09):_0x33a6ae,_0x32b637=_0x14c557[_0x42b3df(0xac)]-0x1,_0x311be9;_0x32b637>=0x0;_0x32b637--)(_0x311be9=_0x14c557[_0x32b637])&&(_0x1a02f9=_0x311be9(_0x1a02f9)||_0x1a02f9);return _0x1a02f9;},_0x57492a=(_0x2cde5a,_0x281868)=>(_0x32aa6c,_0x30cafa)=>_0x281868(_0x32aa6c,_0x30cafa,_0x2cde5a);_0x1ad529['LiveShareController']=class extends _0x68649f[_0x3abdb7(0x119)]{constructor(_0x19cdad,_0x234a54,_0x555a74){var _0x38075a=_0x3abdb7;super(),_0x39c852(this,_0x38075a(0xa3),new Map()),(this['_univerInstanceService']=_0x19cdad,this[_0x38075a(0xde)]=_0x234a54,this[_0x38075a(0x165)]=_0x555a74,this[_0x38075a(0xd5)]());}async[_0x3abdb7(0x16c)](_0x509716){var _0x38dc23=_0x3abdb7;return this[_0x38dc23(0xa3)][_0x38dc23(0xcb)](_0x509716)||await this[_0x38dc23(0x150)](_0x509716),this[_0x38dc23(0xa3)][_0x38dc23(0x10a)](_0x509716);}['_init'](){var _0x1480d8=_0x3abdb7;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x68649f[_0x1480d8(0x16a)]['UNIVER_SHEET'])['pipe'](_0x2844f8[_0x1480d8(0xfd)](this['dispose$']))[_0x1480d8(0x122)](async _0x491c0f=>{var _0x298f1c=_0x1480d8;const _0x562311=_0x491c0f[_0x298f1c(0xbc)]();this['_entities']['has'](_0x562311)||this[_0x298f1c(0x150)](_0x562311);}),this[_0x1480d8(0x16e)]['getTypeOfUnitDisposed$'](_0x68649f[_0x1480d8(0x16a)][_0x1480d8(0xbd)])[_0x1480d8(0x8f)](_0x2844f8[_0x1480d8(0xfd)](this[_0x1480d8(0x84)]))[_0x1480d8(0x122)](_0x59938c=>{var _0x30f1b8=_0x1480d8;const _0x109575=_0x59938c[_0x30f1b8(0xbc)](),_0x2cff9f=this['_entities'][_0x30f1b8(0x10a)](_0x109575);_0x2cff9f==null||_0x2cff9f[_0x30f1b8(0x11c)]();});}async[_0x3abdb7(0x150)](_0x1e8276){var _0x584df3=_0x3abdb7;const _0x46eccf=await this[_0x584df3(0x165)][_0x584df3(0x118)](_0x1e8276),_0x3cf11f=this[_0x584df3(0xde)]['createInstance'](_0x1ad529[_0x584df3(0xc1)],_0x1e8276,_0x46eccf);return _0x3cf11f['init'](),this[_0x584df3(0xa3)][_0x584df3(0xba)](_0x1e8276,_0x3cf11f),_0x3cf11f;}},_0x1ad529['LiveShareController']=_0x4e5da2([_0x57492a(0x0,_0x68649f[_0x3abdb7(0x15b)]),_0x57492a(0x1,_0x68649f[_0x3abdb7(0xdf)](_0x68649f['Injector'])),_0x57492a(0x2,_0x68649f[_0x3abdb7(0xdf)](_0x86777e['CollaborationSessionService']))],_0x1ad529[_0x3abdb7(0xdd)]);var _0x5587fe=(_0x266981=>(_0x266981['OFFLINE']=_0x3abdb7(0xea),_0x266981[_0x3abdb7(0x154)]='idle',_0x266981['FOLLOWING']=_0x3abdb7(0x121),_0x266981[_0x3abdb7(0x167)]=_0x3abdb7(0x145),_0x266981[_0x3abdb7(0x117)]=_0x3abdb7(0x125),_0x266981))(_0x5587fe||{});const _0x4614fb=_0x3abdb7(0xb0),_0x27a8fb=0xc8;_0x1ad529[_0x3abdb7(0xc1)]=class extends _0x68649f[_0x3abdb7(0x119)]{constructor(_0x560980,_0x2db9ca,_0x4e937b,_0x2bcd4e,_0x41fcda){var _0x5a7971=_0x3abdb7;super(),_0x39c852(this,'_status$',new _0x2afcdd['BehaviorSubject'](_0x5a7971(0xd2))),_0x39c852(this,_0x5a7971(0x11f),this[_0x5a7971(0xf2)][_0x5a7971(0x13c)]()),_0x39c852(this,_0x5a7971(0xd5),!0x1),_0x39c852(this,_0x5a7971(0xf9),null),_0x39c852(this,_0x5a7971(0x142),null),(this[_0x5a7971(0xc0)]=_0x560980,this[_0x5a7971(0x13e)]=_0x2db9ca,this['_configService']=_0x4e937b,this[_0x5a7971(0x137)]=_0x2bcd4e,this[_0x5a7971(0xe4)]=_0x41fcda);}get[_0x3abdb7(0xfc)](){var _0x1827f3=_0x3abdb7;return this[_0x1827f3(0xf2)][_0x1827f3(0xdb)]();}[_0x3abdb7(0x11c)](){var _0x9ed934=_0x3abdb7,_0x3dd468;(_0x3dd468=this[_0x9ed934(0xf9)])==null||_0x3dd468[_0x9ed934(0x11c)](),this['_status$'][_0x9ed934(0x108)](_0x9ed934(0xd2)),this[_0x9ed934(0xf2)][_0x9ed934(0xfa)]();}[_0x3abdb7(0x85)](){var _0x802d81=_0x3abdb7;this[_0x802d81(0xd5)]||(this[_0x802d81(0xd5)]=!0x0,this[_0x802d81(0x13e)][_0x802d81(0x16d)]['pipe'](_0x2844f8[_0x802d81(0xfd)](this[_0x802d81(0x84)]))[_0x802d81(0x122)](_0x179999=>{var _0x187e28=_0x802d81;switch(_0x179999){case _0x86777e['SessionStatus']['OFFLINE']:this[_0x187e28(0x112)]();break;case _0x86777e['SessionStatus'][_0x187e28(0xd7)]:this[_0x187e28(0x13f)]();break;}}),this['_collabSession'][_0x802d81(0x136)]['pipe'](_0x2844f8[_0x802d81(0xfd)](this[_0x802d81(0x84)]))[_0x802d81(0x122)](_0x4f675b=>{var _0xa422a5=_0x802d81;const {eventID:_0x30835c}=_0x4f675b;switch(_0x30835c){case _0x2e7c2c[_0xa422a5(0xaa)][_0xa422a5(0x10d)]:this[_0xa422a5(0xc3)](_0x4f675b);break;case _0x2e7c2c[_0xa422a5(0xaa)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x4f675b);break;case _0x2e7c2c[_0xa422a5(0xaa)][_0xa422a5(0xe8)]:this[_0xa422a5(0x129)]();break;case _0x2e7c2c[_0xa422a5(0xaa)]['NEW_CHANGESETS']:this[_0xa422a5(0x13b)](_0x4f675b);break;}}));}[_0x3abdb7(0x160)](){var _0x76a1b0=_0x3abdb7;this[_0x76a1b0(0x13e)][_0x76a1b0(0xa1)]({'eventID':_0x2e7c2c[_0x76a1b0(0xaa)][_0x76a1b0(0x87)],'data':{'unitID':this['_unitID'],'userID':this[_0x76a1b0(0x13e)]['getMemberID']()}},this['_unitID']);}[_0x3abdb7(0x156)](){var _0x1cb989=_0x3abdb7;this[_0x1cb989(0xfc)]===_0x1cb989(0x125)&&(this[_0x1cb989(0xf2)][_0x1cb989(0x108)](_0x1cb989(0xd2)),this['_collabSession']['send']({'eventID':_0x2e7c2c[_0x1cb989(0xaa)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1cb989(0xc0)]}},this['_unitID']));}['startFollowing'](){var _0x4c3082=_0x3abdb7;this[_0x4c3082(0xfc)]===_0x4c3082(0x145)&&(this[_0x4c3082(0xf2)][_0x4c3082(0x108)](_0x4c3082(0x121)),this[_0x4c3082(0xe6)]());}[_0x3abdb7(0x133)](){var _0x503490=_0x3abdb7;this[_0x503490(0xfc)]===_0x503490(0x121)&&this[_0x503490(0xe5)]();}['_handleNewHost'](_0x21190b){var _0x3862ce=_0x3abdb7;const {presenter:_0x54f01b}=_0x21190b[_0x3862ce(0x11a)],_0x51cdf8=this[_0x3862ce(0x13e)]['getMemberID']();this['_presenter']=_0x54f01b,_0x54f01b===_0x51cdf8?(this['_stopFollowing'](),this[_0x3862ce(0xb8)]()):this[_0x3862ce(0xfc)]!==_0x3862ce(0x145)&&(this['_stopPresenting'](),this[_0x3862ce(0xe6)]());}['_fetchOperations'](){var _0x1ef479=_0x3abdb7;const _0x36afa7={'eventID':_0x2e7c2c[_0x1ef479(0xaa)][_0x1ef479(0x163)]};this[_0x1ef479(0x13e)]['send'](_0x36afa7,this[_0x1ef479(0xc0)]);}['_handleTerminate'](){var _0x5169e0=_0x3abdb7;this[_0x5169e0(0x142)]=null,this['_status']!==_0x5169e0(0x125)&&this[_0x5169e0(0xc8)]();}[_0x3abdb7(0x13b)](_0x9ea404){var _0x128736=_0x3abdb7;if(this[_0x128736(0xfc)]===_0x128736(0x121)&&this[_0x128736(0x142)]===_0x9ea404['data'][_0x128736(0x103)]){const _0x2b1a6d=_0x2e7c2c[_0x128736(0x134)](_0x9ea404[_0x128736(0x11a)])[_0x128736(0xd0)][_0x128736(0x126)]()['find'](_0x753083=>_0x753083['id']===_0x29cc2f[_0x128736(0x151)]['id']);if(_0x2b1a6d){const _0x203bae=_0x2b1a6d[_0x128736(0xf8)][_0x128736(0x104)],_0x1470e=_0x2b1a6d[_0x128736(0xf8)][_0x128736(0x158)]['id'];setTimeout(()=>{var _0x4c132c=_0x128736;this[_0x4c132c(0xe4)][_0x4c132c(0xe9)](_0x29cc2f[_0x4c132c(0xb1)]['id'],{'unitId':_0x203bae,'subUnitId':_0x1470e},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x43c192=_0x3abdb7;this[_0x43c192(0xf2)][_0x43c192(0x108)](_0x43c192(0x125));const _0x47758e=new Map(),_0x84e65f=this[_0x43c192(0xf9)]=new _0x68649f['DisposableCollection']();_0x84e65f[_0x43c192(0x148)](_0x68649f['toDisposable'](()=>{var _0x203f00=_0x43c192;_0x47758e[_0x203f00(0x168)](_0x3d6de3=>_0x3d6de3[_0x203f00(0xfa)]()),_0x47758e['clear']();})),_0x84e65f[_0x43c192(0x148)](this['_commandService'][_0x43c192(0xec)](_0x420847=>{var _0x21f97e=_0x43c192,_0x214793;if(_0x420847['type']!==_0x68649f[_0x21f97e(0xc6)][_0x21f97e(0x10c)]||!this['_liveShareService'][_0x21f97e(0x166)](_0x420847['id']))return;const {id:_0x1e9054}=_0x420847;let _0x25b458;_0x47758e[_0x21f97e(0xcb)](_0x1e9054)?_0x25b458=_0x47758e[_0x21f97e(0x10a)](_0x1e9054):(_0x25b458=new _0x2afcdd[(_0x21f97e(0x128))](),_0x47758e[_0x21f97e(0xba)](_0x1e9054,_0x25b458),_0x25b458[_0x21f97e(0x8f)](_0x2844f8[_0x21f97e(0xd6)]((_0x214793=this[_0x21f97e(0xc2)][_0x21f97e(0x15e)](_0x4614fb))!=null?_0x214793:_0x27a8fb,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x21f97e(0x122)](_0x1fea0c=>{var _0x3bbf98=_0x21f97e;this[_0x3bbf98(0x13e)][_0x3bbf98(0xa1)]({'eventID':_0x2e7c2c[_0x3bbf98(0xaa)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x1fea0c['id']]:{'id':_0x1fea0c['id'],'params':JSON[_0x3bbf98(0xbe)](_0x1fea0c[_0x3bbf98(0xf8)])}}}},this[_0x3bbf98(0xc0)]);})),_0x25b458[_0x21f97e(0x108)](_0x420847);})),this[_0x43c192(0x137)][_0x43c192(0x100)](this['_unitID'])[_0x43c192(0x168)](_0x58af98=>this[_0x43c192(0x13e)]['send']({'eventID':_0x2e7c2c[_0x43c192(0xaa)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x43c192(0xc0)],'operations':{[_0x58af98['id']]:{'id':_0x58af98['id'],'params':JSON['stringify'](_0x58af98[_0x43c192(0xf8)])}}}},this[_0x43c192(0xc0)]));}[_0x3abdb7(0x95)](){var _0xbecdcf=_0x3abdb7,_0x23d906;this[_0xbecdcf(0xf2)][_0xbecdcf(0x108)]('idle'),(_0x23d906=this[_0xbecdcf(0xf9)])==null||_0x23d906[_0xbecdcf(0x11c)](),this[_0xbecdcf(0xf9)]=null;}[_0x3abdb7(0xe6)](){var _0x2d108f=_0x3abdb7,_0x3fcc05;(_0x3fcc05=this[_0x2d108f(0xf9)])==null||_0x3fcc05[_0x2d108f(0x11c)](),this[_0x2d108f(0xf2)]['next'](_0x2d108f(0x121));}['_beIdle'](){var _0x3ab93b=_0x3abdb7,_0x32ccf9;this[_0x3ab93b(0xf2)]['next'](_0x3ab93b(0xd2)),(_0x32ccf9=this[_0x3ab93b(0xf9)])==null||_0x32ccf9[_0x3ab93b(0x11c)](),this[_0x3ab93b(0xf9)]=null;}[_0x3abdb7(0xe5)](){var _0x1a7cc4=_0x3abdb7,_0x8e67e0;this['_status$']['next']('not-following'),(_0x8e67e0=this[_0x1a7cc4(0xf9)])==null||_0x8e67e0[_0x1a7cc4(0x11c)]();}['_handleOperation'](_0x4c828a){var _0x5e24b6=_0x3abdb7;if(['presenting',_0x5e24b6(0x145),_0x5e24b6(0xea)]['includes'](this[_0x5e24b6(0xfc)])||!_0x4c828a['data'][_0x5e24b6(0x9a)]||_0x4c828a[_0x5e24b6(0x11a)][_0x5e24b6(0x9a)]===this[_0x5e24b6(0x13e)][_0x5e24b6(0x14e)]())return;this[_0x5e24b6(0xfc)]===_0x5e24b6(0xd2)&&this[_0x5e24b6(0xe6)]();const _0x28e682=_0x4c828a[_0x5e24b6(0x11a)][_0x5e24b6(0x8e)];Object['values'](_0x28e682)[_0x5e24b6(0x168)](_0x4040ee=>{var _0x2d94f3=_0x5e24b6;this[_0x2d94f3(0xe4)][_0x2d94f3(0xe9)](_0x4040ee['id'],_0x4040ee[_0x2d94f3(0xf8)]?JSON[_0x2d94f3(0x132)](_0x4040ee['params']):null,{'fromCollab':!0x0});});}[_0x3abdb7(0x112)](){var _0x681334=_0x3abdb7,_0x49e3f0;this[_0x681334(0xf2)]['next'](_0x681334(0xea)),(_0x49e3f0=this[_0x681334(0xf9)])==null||_0x49e3f0[_0x681334(0x11c)]();}['_handleOnline'](){var _0x104a4a=_0x3abdb7;this['_status$'][_0x104a4a(0x108)](_0x104a4a(0xd2)),this[_0x104a4a(0x141)]();}},_0x1ad529[_0x3abdb7(0xc1)]=_0x4e5da2([_0x57492a(0x2,_0x68649f[_0x3abdb7(0xf7)]),_0x57492a(0x3,_0x68649f[_0x3abdb7(0xdf)](_0x262dcf)),_0x57492a(0x4,_0x68649f['ICommandService'])],_0x1ad529[_0x3abdb7(0xc1)]);function _0x19d771(){var _0xc629f9=_0x3abdb7;const _0x4c75c6=_0x467c60[_0xc629f9(0x9c)](_0x1ad529[_0xc629f9(0xdd)]),_0x56acee=_0x467c60['useDependency'](_0x68649f[_0xc629f9(0x15b)]),_0x66f85b=_0x467c60[_0xc629f9(0xd8)](()=>_0x56acee['getCurrentTypeOfUnit$'](_0x68649f[_0xc629f9(0x16a)][_0xc629f9(0xbd)]),void 0x0,!0x1,[]),[_0x1086f7,_0x3ae709]=_0x1adffa['useState'](null),[_0x487438,_0x1ca65f]=_0x1adffa['useState'](_0x5587fe[_0xc629f9(0x154)]),_0x456577=_0x1adffa[_0xc629f9(0xb2)](null);return _0x1adffa[_0xc629f9(0x9e)](()=>(_0x66f85b&&_0x4c75c6[_0xc629f9(0x16c)](_0x66f85b['getUnitId']())[_0xc629f9(0xa2)](_0x42c691=>{var _0x10967b=_0xc629f9;_0x3ae709(_0x42c691),_0x456577[_0x10967b(0xc9)]=_0x42c691[_0x10967b(0x11f)]['subscribe'](_0x16d813=>{_0x1ca65f(_0x16d813);});}),()=>{var _0x2ba12a=_0xc629f9,_0x1731cf;(_0x1731cf=_0x456577['current'])==null||_0x1731cf[_0x2ba12a(0x114)](),_0x456577[_0x2ba12a(0xc9)]=null;}),[_0x66f85b,_0x4c75c6]),_0x1086f7?_0x252371[_0xc629f9(0xe0)](_0x22cbab['Dropdown'],{'align':_0xc629f9(0x15d),'disabled':_0x487438===_0x5587fe[_0xc629f9(0x10b)],'className':_0xc629f9(0x105),'overlay':_0x252371[_0xc629f9(0xe0)](_0xac50fb,{'status':_0x487438,'coordinator':_0x1086f7}),'children':_0x252371[_0xc629f9(0xe0)](_0xc629f9(0xbf),{'className':_0x22cbab['clsx'](_0xc629f9(0xc4),{'univer-cursor-not-allowed':_0x487438===_0x5587fe[_0xc629f9(0x10b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x487438!==_0x5587fe[_0xc629f9(0x10b)]}),'type':'button','children':_0x252371['jsx'](_0x34924a,{'className':_0xc629f9(0x162)})})}):null;}function _0xac50fb(_0x16111f){var _0x1f3949=_0x3abdb7;const {status:_0x3ca647,coordinator:_0x213a7f}=_0x16111f;switch(_0x3ca647){case _0x5587fe['IDLE']:return _0x252371[_0x1f3949(0xe0)](_0x127724,{'coordinator':_0x213a7f});case _0x5587fe[_0x1f3949(0xd1)]:return _0x252371[_0x1f3949(0xe0)](_0x241155,{'coordinator':_0x213a7f});case _0x5587fe[_0x1f3949(0x167)]:return _0x252371['jsx'](_0x4beec6,{'coordinator':_0x213a7f});case _0x5587fe[_0x1f3949(0x10b)]:return _0x252371[_0x1f3949(0xe0)](_0x4b8ad4,{});case _0x5587fe[_0x1f3949(0x117)]:return _0x252371[_0x1f3949(0xe0)](_0x3ff057,{'coordinator':_0x213a7f});default:return null;}}function _0x127724(_0x20b49b){var _0x128fcc=_0x3abdb7;const {coordinator:_0x7c83b4}=_0x20b49b;return _0x252371[_0x128fcc(0xd3)](_0x252371[_0x128fcc(0xb6)],{'children':[_0x252371[_0x128fcc(0xe0)](_0x128fcc(0xf4),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x128fcc(0x8a)}),_0x252371['jsx'](_0x22cbab[_0x128fcc(0xdc)],{'onClick':()=>_0x7c83b4[_0x128fcc(0x160)](),'children':_0x128fcc(0xce)})]});}function _0x241155(_0x197d4d){var _0x267516=_0x3abdb7;const {coordinator:_0x4d8c90}=_0x197d4d;return _0x252371['jsxs'](_0x252371[_0x267516(0xb6)],{'children':[_0x252371[_0x267516(0xe0)](_0x267516(0xf4),{'className':_0x267516(0x8b),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x252371[_0x267516(0xe0)](_0x22cbab[_0x267516(0xdc)],{'onClick':()=>_0x4d8c90['stopFollowing'](),'children':_0x267516(0x101)})]});}function _0x4beec6(_0xdeab03){var _0x5d8175=_0x3abdb7;const {coordinator:_0x3eca0b}=_0xdeab03;return _0x252371[_0x5d8175(0xd3)](_0x252371['Fragment'],{'children':[_0x252371['jsx'](_0x5d8175(0xf4),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5d8175(0x143)}),_0x252371[_0x5d8175(0xe0)](_0x22cbab[_0x5d8175(0xdc)],{'variant':'text','onClick':()=>_0x3eca0b['startFollowing'](),'children':_0x5d8175(0x11b)})]});}function _0x3ff057(_0x476159){var _0x356c1b=_0x3abdb7;const {coordinator:_0x421178}=_0x476159;return _0x252371[_0x356c1b(0xd3)](_0x252371[_0x356c1b(0xb6)],{'children':[_0x252371[_0x356c1b(0xe0)]('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x356c1b(0x12e)}),_0x252371[_0x356c1b(0xe0)](_0x22cbab[_0x356c1b(0xdc)],{'variant':'default','onClick':()=>_0x421178[_0x356c1b(0x156)](),'children':_0x356c1b(0x13a)})]});}function _0x4b8ad4(){var _0xbc714a=_0x3abdb7;return _0x252371[_0xbc714a(0xe0)](_0x252371[_0xbc714a(0xb6)],{'children':_0xbc714a(0xed)});}var _0x3d176f=Object[_0x3abdb7(0x13d)],_0x24ba94=(_0x550223,_0x554118,_0x5d297d,_0xc30318)=>{var _0x76b13f=_0x3abdb7;for(var _0x36bf25=_0xc30318>0x1?void 0x0:_0xc30318?_0x3d176f(_0x554118,_0x5d297d):_0x554118,_0x3ad2cf=_0x550223[_0x76b13f(0xac)]-0x1,_0x442a0c;_0x3ad2cf>=0x0;_0x3ad2cf--)(_0x442a0c=_0x550223[_0x3ad2cf])&&(_0x36bf25=_0x442a0c(_0x36bf25)||_0x36bf25);return _0x36bf25;},_0x2d6260=(_0x41ffbe,_0x36c970)=>(_0x2f3c94,_0x46eff7)=>_0x36c970(_0x2f3c94,_0x46eff7,_0x41ffbe);_0x1ad529[_0x3abdb7(0x8d)]=class extends _0x68649f[_0x3abdb7(0xef)]{constructor(_0x37c81e,_0xdc5fb1){var _0x16eb80=_0x3abdb7;super(),this[_0x16eb80(0xde)]=_0x37c81e,this[_0x16eb80(0xee)]=_0xdc5fb1,this[_0x16eb80(0x115)]();}[_0x3abdb7(0x115)](){var _0x84b311=_0x3abdb7;this[_0x84b311(0xae)](this['_uiPartsService'][_0x84b311(0x140)](_0x467c60[_0x84b311(0x123)]['HEADER_MENU'],()=>_0x467c60['connectInjector'](_0x19d771,this[_0x84b311(0xde)])));}},_0x1ad529[_0x3abdb7(0x8d)]=_0x24ba94([_0x2d6260(0x0,_0x68649f['Inject'](_0x68649f['Injector'])),_0x2d6260(0x1,_0x467c60[_0x3abdb7(0xd4)])],_0x1ad529['DesktopLiveShareController']);var _0x4020c5=Object['defineProperty'],_0x96fd49=Object[_0x3abdb7(0x13d)],_0x5af732=(_0x766171,_0x21daf4,_0x48c1ee)=>_0x21daf4 in _0x766171?_0x4020c5(_0x766171,_0x21daf4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48c1ee}):_0x766171[_0x21daf4]=_0x48c1ee,_0x59de7c=(_0x12b4ce,_0x5d5ec2,_0x48e362,_0x499300)=>{var _0x4d753a=_0x3abdb7;for(var _0x31b768=_0x499300>0x1?void 0x0:_0x499300?_0x96fd49(_0x5d5ec2,_0x48e362):_0x5d5ec2,_0x576f1e=_0x12b4ce[_0x4d753a(0xac)]-0x1,_0x4fd68e;_0x576f1e>=0x0;_0x576f1e--)(_0x4fd68e=_0x12b4ce[_0x576f1e])&&(_0x31b768=_0x4fd68e(_0x31b768)||_0x31b768);return _0x31b768;},_0x24aa96=(_0xed7196,_0x51a7eb)=>(_0x3c7d8e,_0x190064)=>_0x51a7eb(_0x3c7d8e,_0x190064,_0xed7196),_0xa1a6be=(_0x2070d6,_0x157fe8,_0x1f1257)=>_0x5af732(_0x2070d6,typeof _0x157fe8!='symbol'?_0x157fe8+'':_0x157fe8,_0x1f1257);const _0x39dfae='UNIVER_LIVE_SHARE_PLUGIN';_0x1ad529[_0x3abdb7(0xad)]=class extends _0x68649f[_0x3abdb7(0x152)]{constructor(_0x1fca22=_0x2fd119,_0x2e0555,_0x4b8123){var _0xebe7f5=_0x3abdb7;super(),this['_config']=_0x1fca22,this['_injector']=_0x2e0555,this['_configService']=_0x4b8123;const {..._0x4db055}=_0x68649f['merge']({},_0x2fd119,this['_config']);this[_0xebe7f5(0xc2)][_0xebe7f5(0xf0)](_0x5a5348,_0x4db055);}[_0x3abdb7(0x91)](){var _0x29d28f=_0x3abdb7;_0x68649f[_0x29d28f(0x99)](this[_0x29d28f(0xde)],_0x68649f[_0x29d28f(0x15c)]([[_0x262dcf],[_0x1ad529[_0x29d28f(0xdd)]],[_0x3b0a36],[_0x1ad529[_0x29d28f(0x8d)]]],this[_0x29d28f(0xaf)][_0x29d28f(0xf6)])),_0x68649f[_0x29d28f(0xc7)](this[_0x29d28f(0xde)],[[_0x3b0a36]]);}[_0x3abdb7(0xa5)](){var _0x4be9f1=_0x3abdb7;_0x68649f[_0x4be9f1(0xc7)](this[_0x4be9f1(0xde)],[[_0x1ad529[_0x4be9f1(0x8d)]]]);}},_0xa1a6be(_0x1ad529[_0x3abdb7(0xad)],_0x3abdb7(0x147),_0x68649f['UniverInstanceType'][_0x3abdb7(0x110)]),_0xa1a6be(_0x1ad529[_0x3abdb7(0xad)],'pluginName',_0x39dfae),_0x1ad529[_0x3abdb7(0xad)]=_0x59de7c([_0x68649f[_0x3abdb7(0x14c)](_0x86777e[_0x3abdb7(0x8c)]),_0x24aa96(0x1,_0x68649f[_0x3abdb7(0xdf)](_0x68649f[_0x3abdb7(0x12b)])),_0x24aa96(0x2,_0x68649f[_0x3abdb7(0xf7)])],_0x1ad529['UniverLiveSharePlugin']),_0x1ad529[_0x3abdb7(0x82)]=_0x19d771,_0x1ad529[_0x3abdb7(0x97)]=_0x262dcf,_0x1ad529[_0x3abdb7(0xb7)]=_0x5587fe,Object[_0x3abdb7(0xa7)](_0x1ad529,Symbol['toStringTag'],{'value':'Module'});}));function _0x551c(_0x32ec8e,_0x7ec9e4){var _0x2e9b76=_0x2e9b();return _0x551c=function(_0x551ce8,_0x474b5d){_0x551ce8=_0x551ce8-0x82;var _0x1cec10=_0x2e9b76[_0x551ce8];return _0x1cec10;},_0x551c(_0x32ec8e,_0x7ec9e4);}function _0x2e9b(){var _0x528ad1=['has','idSuffix','1ZSPfBo','Start','toString','mutations','FOLLOWING','idle','jsxs','IUIPartsService','_init','throttleTime','ONLINE','useObservable','851908Cfpvkz','UniverUi','getValue','Button','LiveShareController','_injector','Inject','jsx','@univerjs/design','live-share-icon','from','_commandService','_stopFollowing','_startFollowing','rxjs/operators','LIVESHARE_TERMINATE','executeCommand','offline','react','onCommandExecuted','You\x27are\x20offline.','_uiPartsService','Disposable','setConfig','@univerjs-pro/collaboration-client','_status$','UniverIcon','div','registerSharedOperation','override','IConfigService','params','_commandDisposable','complete','_reporters','_status','takeUntil','indexOf','@univerjs/core','getInitialStates','Stop\x20following','includes','memberID','unitId','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','function','882531TTKlYB','next','propertyIsEnumerable','get','OFFLINE','OPERATION','LIVESHARE_NEW_HOST','concat','trim','UNIVER_UNKNOWN','colorChannel1','_handleOffline','5466696dXHJVM','unsubscribe','_mountLiveShare','call','PRESENTING','requireSession','RxDisposable','data','Start\x20following','dispose','UniverCore','4237114nEZwnK','status$','3171186zblydC','following','subscribe','BuiltInUIPart','@univerjs/sheets-ui','presenting','reverse','forwardRef','Subject','_handleTerminate','React','Injector','string','extend','You\x27re\x20presenting\x20the\x20document','apply','evenodd','@univerjs-pro/collaboration','parse','stopFollowing','parseProtocolChangeset','722218FNMXiW','event$','_liveShareService','toDisposable','map','Stop\x20presenting','_handleNewChangeSets','asObservable','getOwnPropertyDescriptor','_collabSession','_handleOnline','registerComponent','_fetchOperations','_presenter','You\x27re\x20not\x20following\x20the\x20presenter','substring','not-following','path','type','add','1em','defIds','react/jsx-runtime','DependentOn','UniverDesign','getMemberID','live-share.config','_startLiveShareCoordinator','InsertSheetMutation','Plugin','symbol','IDLE','UniverProCollaborationClient','stopPresenting','_sharedOperations','sheet','SetScrollOperation','amd','IUniverInstanceService','mergeOverrideWithDependencies','end','getConfig','icon','tryStartPresenting','use','univer-size-4','LIVESHARE_FETCH_OPERATIONS','rxjs','_collabSessionService','shouldShareOperation','NOT_FOLLOWING','forEach','@univerjs/sheets','UniverInstanceType','object','getLiveShareCoordinator','sessionStatus$','_univerInstanceService','LiveShare','attrs','dispose$','init','0\x200\x2017\x2017','LIVESHARE_REQUEST_HOST','createElement','exports','Present\x20this\x20document','univer-w-full\x20univer-mb-3\x20univer-text-sm','UniverCollaborationClientPlugin','DesktopLiveShareController','operations','pipe','none','onStarting','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','children','className','_stopPresenting','36mUnZqi','LiveShareService','currentColor','registerDependencies','presenter','hasOwnProperty','useDependency','fill','useEffect','UniverSheets','delete','send','then','_entities','displayName','onRendered','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','defineProperty','xlink:href','mask','CollaborationEvent','replace','length','UniverLiveSharePlugin','disposeWithMe','_config','SAME_OPERATION_SHARE_INTERVAL','SetWorksheetActiveOperation','useRef','tag','assign','UniverSheetsUi','Fragment','LiveShareStatus','_startPresenting','url(#$1','set','entries','getUnitId','UNIVER_SHEET','stringify','button','_unitID','LiveShareCoordinator','_configService','_handleNewHost','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','376955AoHwNs','CommandType','touchDependencies','_beIdle','current','@univerjs/ui'];_0x2e9b=function(){return _0x528ad1;};return _0x2e9b();}
1
+ function _0x4f12(_0xeac9da,_0x5d495e){var _0x3d5bd7=_0x3d5b();return _0x4f12=function(_0x4f123a,_0x3b746e){_0x4f123a=_0x4f123a-0xb1;var _0x5d5c24=_0x3d5bd7[_0x4f123a];return _0x5d5c24;},_0x4f12(_0xeac9da,_0x5d495e);}function _0x3d5b(){var _0x19ea96=['DisposableCollection','_handleNewHost','registerDependencies','getOwnPropertyDescriptor','_mountLiveShare','116211vOEHih','You\x27re\x20following\x20the\x20presenter','rxjs','jsxs','getInitialStates','UniverLiveSharePlugin','pipe','subscribe','react','Present\x20this\x20document','LiveShareController','takeUntil','Plugin','LIVESHARE_OPERATION','UniverProCollaboration','UniverProLiveShare','children','Button','http://www.w3.org/2000/svg','7057720gnuCJD','getTypeOfUnitDisposed$','NOT_FOLLOWING','NEW_CHANGESETS','url(#$1','evenodd','then','DesktopLiveShareController','PRESENTING','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','You\x27re\x20not\x20following\x20the\x20presenter','_commandService','toDisposable','3401232CTHEgQ','onRendered','memberID','IDLE','@univerjs/ui','colorChannel1','random','SAME_OPERATION_SHARE_INTERVAL','presenter','complete','ONLINE','5656370doiyWW','LIVESHARE_FETCH_OPERATIONS','send','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','apply','getConfig','override','_status$','_commandDisposable','defIds','params','values','object','BehaviorSubject','createElement','getOwnPropertySymbols','OFFLINE','react/jsx-runtime','_injector','extend','_startFollowing','following','7umJGRr','Fragment','@univerjs/core','getLiveShareCoordinator','_handleTerminate','not-following','144236CbXDpD','_configService','RxDisposable','UniverUi','You\x27re\x20presenting\x20the\x20document','mutations','find','presenting','_uiPartsService','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','stopFollowing','_sharedOperations','symbol','replace','registerComponent','idle','IConfigService','toString','registerSharedOperation','tryStartPresenting','FOLLOWING','hasOwnProperty','useEffect','concat','assign','use','className','function','_collabSessionService','OPERATION','@univerjs/design','clsx','none','from','touchDependencies','text','add','substring','UNIVER_UNKNOWN','icon','getUnitId','defs','_startPresenting','useRef','currentColor','6869274wxTEox','_liveShareService','_collabSession','0\x200\x2017\x2017','string','HEADER_MENU','UniverInstanceType','Inject','onCommandExecuted','_fetchOperations','merge','length','LiveShareIcon','forwardRef','amd','React','defineProperty','reverse','LiveShareCoordinator','CollaborationEvent','You\x27are\x20offline.','set','@univerjs-pro/collaboration-client','stringify','DependentOn','prototype','stopPresenting','default','BuiltInUIPart','useState','_status','SessionStatus','asObservable','path','Dropdown','_unitID','UNIVER_SHEET','current','Start\x20following','attrs','parseProtocolChangeset','univer-w-full\x20univer-mb-3\x20univer-text-sm','indexOf','rxjs/operators','sheet','forEach','registerInitialStateReporter','LiveShare','fill','LIVESHARE_REQUEST_HOST','live-share.config','Disposable','_entities','_reporters','@univerjs/sheets-ui','map','SetWorksheetActiveOperation','entries','Injector','mask','useObservable','_beIdle','Start','univer-size-4','_init','status$','dispose','shouldShareOperation','_config','type','setConfig','get','operations','tag','dispose$','includes','displayName','propertyIsEnumerable','onStarting','clear','UniverProCollaborationClient','InsertSheetMutation','end','idSuffix','getCurrentTypeOfUnit$','xlink:href','next','getMemberID','_startLiveShareCoordinator','call','useDependency','_presenter','div','IUniverInstanceService','init','24386992Wbmcie','Subject','offline','jsx','data','disposeWithMe','LiveShareService','ICommandService','pluginName','_stopFollowing','@univerjs/sheets','UniverDesign','1em','LIVESHARE_TERMINATE','_stopPresenting','Module','executeCommand','@univerjs-pro/collaboration','button','operators','UNIVER_LIVE_SHARE_PLUGIN','unitId','has'];_0x3d5b=function(){return _0x19ea96;};return _0x3d5b();}(function(_0x594aaf,_0x5b7992){var _0x3c890d=_0x4f12,_0x2f297e=_0x594aaf();while(!![]){try{var _0x1b7056=parseInt(_0x3c890d(0x180))/0x1+-parseInt(_0x3c890d(0x159))/0x2+-parseInt(_0x3c890d(0x139))/0x3+parseInt(_0x3c890d(0x14c))/0x4+-parseInt(_0x3c890d(0x164))/0x5+parseInt(_0x3c890d(0xbe))/0x6*(-parseInt(_0x3c890d(0x17a))/0x7)+parseInt(_0x3c890d(0x11d))/0x8;if(_0x1b7056===_0x5b7992)break;else _0x2f297e['push'](_0x2f297e['shift']());}catch(_0x1cb2f3){_0x2f297e['push'](_0x2f297e['shift']());}}}(_0x3d5b,0xe5dde),function(_0x39ed77,_0x231d39){var _0x54a83f=_0x4f12;typeof exports==_0x54a83f(0x170)&&typeof module<'u'?_0x231d39(exports,require(_0x54a83f(0xd4)),require(_0x54a83f(0x17c)),require(_0x54a83f(0x127)),require('@univerjs/sheets-ui'),require(_0x54a83f(0x15d)),require(_0x54a83f(0x175)),require(_0x54a83f(0x19e)),require(_0x54a83f(0x141)),require(_0x54a83f(0x12e)),require(_0x54a83f(0x13b)),require(_0x54a83f(0xe9))):typeof define=='function'&&define[_0x54a83f(0xcc)]?define(['exports','@univerjs-pro/collaboration-client',_0x54a83f(0x17c),_0x54a83f(0x127),_0x54a83f(0xf4),_0x54a83f(0x15d),_0x54a83f(0x175),_0x54a83f(0x19e),_0x54a83f(0x141),_0x54a83f(0x12e),'rxjs','rxjs/operators'],_0x231d39):(_0x39ed77=typeof globalThis<'u'?globalThis:_0x39ed77||self,_0x231d39(_0x39ed77[_0x54a83f(0x148)]={},_0x39ed77[_0x54a83f(0x10e)],_0x39ed77['UniverCore'],_0x39ed77['UniverSheets'],_0x39ed77['UniverSheetsUi'],_0x39ed77[_0x54a83f(0x183)],_0x39ed77['React'],_0x39ed77[_0x54a83f(0x128)],_0x39ed77[_0x54a83f(0xcd)],_0x39ed77[_0x54a83f(0x147)],_0x39ed77[_0x54a83f(0x13b)],_0x39ed77['rxjs'][_0x54a83f(0x130)]));}(this,function(_0x3f8abb,_0x37706c,_0x2abeeb,_0x544b4f,_0x373f59,_0x4a3f16,_0x308395,_0xbd355a,_0x1eede1,_0x223760,_0x45c004,_0x3fb454){'use strict';var _0xa14a42=_0x4f12;var _0x546d6a=Object[_0xa14a42(0xce)],_0x713ec1=(_0x308c6e,_0x4beaae,_0x476e85)=>_0x4beaae in _0x308c6e?_0x546d6a(_0x308c6e,_0x4beaae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x476e85}):_0x308c6e[_0x4beaae]=_0x476e85,_0xd8f51e=(_0x41a7f6,_0x3630d8,_0x47dfc2)=>_0x713ec1(_0x41a7f6,typeof _0x3630d8!='symbol'?_0x3630d8+'':_0x3630d8,_0x47dfc2);const _0x262291=_0xa14a42(0xf0),_0x1f56dc={};class _0x911fa1 extends _0x2abeeb[_0xa14a42(0xf1)]{constructor(){var _0x556a88=_0xa14a42;super(...arguments),_0xd8f51e(this,_0x556a88(0x18b),new Set()),_0xd8f51e(this,_0x556a88(0xf3),new Set());}[_0xa14a42(0x192)](_0x433d9b){var _0x56a673=_0xa14a42;return this[_0x56a673(0x18b)]['add'](_0x433d9b),_0x2abeeb['toDisposable'](()=>this[_0x56a673(0x18b)]['delete'](_0x433d9b));}[_0xa14a42(0xec)](_0x4175f9){var _0x44bfc8=_0xa14a42;return this[_0x44bfc8(0xf3)]['add'](_0x4175f9),_0x2abeeb[_0x44bfc8(0x158)](()=>this['_reporters']['delete'](_0x4175f9));}[_0xa14a42(0x101)](_0x234101){var _0x5e3294=_0xa14a42;return this[_0x5e3294(0x18b)][_0x5e3294(0x133)](_0x234101);}['getInitialStates'](_0x210925){var _0x48d053=_0xa14a42;return Array[_0x48d053(0xb2)](this['_reporters'])[_0x48d053(0xf5)](_0x5c7054=>_0x5c7054(_0x210925));}}var _0x244eee=Object[_0xa14a42(0x137)],_0x810d97=(_0x24da32,_0x4ac263,_0x41443b,_0x495c01)=>{for(var _0x2dd5ee=_0x495c01>0x1?void 0x0:_0x495c01?_0x244eee(_0x4ac263,_0x41443b):_0x4ac263,_0x42cc5e=_0x24da32['length']-0x1,_0x3ca709;_0x42cc5e>=0x0;_0x42cc5e--)(_0x3ca709=_0x24da32[_0x42cc5e])&&(_0x2dd5ee=_0x3ca709(_0x2dd5ee)||_0x2dd5ee);return _0x2dd5ee;},_0x4d3eba=(_0x28ec38,_0x41f1cf)=>(_0x3379f5,_0x1f1490)=>_0x41f1cf(_0x3379f5,_0x1f1490,_0x28ec38);let _0x1a7881=class extends _0x2abeeb[_0xa14a42(0xf1)]{constructor(_0x34c51c){super(),this['_liveShareService']=_0x34c51c,this['_init']();}[_0xa14a42(0xfe)](){var _0x28d726=_0xa14a42;[_0x373f59['SetZoomRatioOperation']['id'],_0x373f59['SetScrollOperation']['id'],_0x544b4f[_0x28d726(0xf6)]['id']]['forEach'](_0x4146d5=>{var _0x1b5405=_0x28d726;this['disposeWithMe'](this[_0x1b5405(0xbf)]['registerSharedOperation'](_0x4146d5));});}};_0x1a7881=_0x810d97([_0x4d3eba(0x0,_0x2abeeb[_0xa14a42(0xc5)](_0x911fa1))],_0x1a7881);var _0x3ea5a3=function(){var _0x530508=_0xa14a42;return _0x3ea5a3=Object[_0x530508(0x198)]||function(_0xb9fbb9){var _0x5a9db1=_0x530508;for(var _0x1e6e33,_0x2174a0=0x1,_0x1ef5ef=arguments[_0x5a9db1(0xc9)];_0x2174a0<_0x1ef5ef;_0x2174a0++){_0x1e6e33=arguments[_0x2174a0];for(var _0x4e8b7f in _0x1e6e33)Object[_0x5a9db1(0xd7)]['hasOwnProperty'][_0x5a9db1(0x117)](_0x1e6e33,_0x4e8b7f)&&(_0xb9fbb9[_0x4e8b7f]=_0x1e6e33[_0x4e8b7f]);}return _0xb9fbb9;},_0x3ea5a3[_0x530508(0x168)](this,arguments);},_0x3c47ae=function(_0x3824c3,_0x444521){var _0x271dae=_0xa14a42,_0x52ac32={};for(var _0x3e6f85 in _0x3824c3)Object[_0x271dae(0xd7)][_0x271dae(0x195)]['call'](_0x3824c3,_0x3e6f85)&&_0x444521[_0x271dae(0xe8)](_0x3e6f85)<0x0&&(_0x52ac32[_0x3e6f85]=_0x3824c3[_0x3e6f85]);if(_0x3824c3!=null&&typeof Object[_0x271dae(0x173)]==_0x271dae(0x19b)){for(var _0x1958cf=0x0,_0x3e6f85=Object['getOwnPropertySymbols'](_0x3824c3);_0x1958cf<_0x3e6f85[_0x271dae(0xc9)];_0x1958cf++)_0x444521[_0x271dae(0xe8)](_0x3e6f85[_0x1958cf])<0x0&&Object[_0x271dae(0xd7)][_0x271dae(0x10b)][_0x271dae(0x117)](_0x3824c3,_0x3e6f85[_0x1958cf])&&(_0x52ac32[_0x3e6f85[_0x1958cf]]=_0x3824c3[_0x3e6f85[_0x1958cf]]);}return _0x52ac32;},_0x8f66bc=_0x1eede1['forwardRef'](function(_0x2720f9,_0x51b041){var _0x76346f=_0xa14a42,_0x446125=_0x2720f9[_0x76346f(0xb8)],_0x4182de=_0x2720f9['id'],_0x1e0c3e=_0x2720f9[_0x76346f(0x19a)],_0x58cf1d=_0x2720f9[_0x76346f(0x177)],_0x2d545e=_0x3c47ae(_0x2720f9,['icon','id',_0x76346f(0x19a),'extend']),_0x31f34a='univerjs-icon\x20univerjs-icon-'[_0x76346f(0x197)](_0x4182de,'\x20')[_0x76346f(0x197)](_0x1e0c3e||'')['trim'](),_0x189d2d=_0x1eede1['useRef']('_'[_0x76346f(0x197)](_0x300d2c()));return _0x7df670(_0x446125,''['concat'](_0x4182de),{'defIds':_0x446125[_0x76346f(0x16d)],'idSuffix':_0x189d2d[_0x76346f(0xe3)]},_0x3ea5a3({'ref':_0x51b041,'className':_0x31f34a},_0x2d545e),_0x58cf1d);});function _0x7df670(_0x3ad081,_0x5b206f,_0x5efc0c,_0x59ef6,_0x465c89){var _0x1f7277=_0xa14a42;return _0x1eede1[_0x1f7277(0x172)](_0x3ad081[_0x1f7277(0x107)],_0x3ea5a3(_0x3ea5a3({'key':_0x5b206f},_0x2c50bb(_0x3ad081,_0x5efc0c,_0x465c89)),_0x59ef6),(_0x46f20b(_0x3ad081,_0x5efc0c)[_0x1f7277(0x149)]||[])[_0x1f7277(0xf5)](function(_0x15d921,_0x575d13){var _0x41318b=_0x1f7277;return _0x7df670(_0x15d921,''[_0x41318b(0x197)](_0x5b206f,'-')[_0x41318b(0x197)](_0x3ad081[_0x41318b(0x107)],'-')[_0x41318b(0x197)](_0x575d13),_0x5efc0c,void 0x0,_0x465c89);}));}function _0x2c50bb(_0x1650cc,_0xfc466f,_0x46ce96){var _0x434f0f=_0xa14a42,_0x4fc5e9=_0x3ea5a3({},_0x1650cc[_0x434f0f(0xe5)]);_0x46ce96!=null&&_0x46ce96[_0x434f0f(0x15e)]&&_0x4fc5e9['fill']===_0x434f0f(0x15e)&&(_0x4fc5e9[_0x434f0f(0xee)]=_0x46ce96[_0x434f0f(0x15e)]),_0x1650cc[_0x434f0f(0x107)]===_0x434f0f(0xf9)&&_0x4fc5e9['id']&&(_0x4fc5e9['id']=_0x4fc5e9['id']+_0xfc466f['idSuffix']),Object['entries'](_0x4fc5e9)['forEach'](function(_0x581107){var _0x52b799=_0x434f0f,_0x54e335=_0x581107[0x0],_0x30303a=_0x581107[0x1];_0x54e335===_0x52b799(0xf9)&&typeof _0x30303a=='string'&&(_0x4fc5e9[_0x54e335]=_0x30303a[_0x52b799(0x18d)](/url\(#(.*)\)/,_0x52b799(0x150)[_0x52b799(0x197)](_0xfc466f[_0x52b799(0x111)],')')));});var _0x133491=_0xfc466f['defIds'];return!_0x133491||_0x133491[_0x434f0f(0xc9)]===0x0||(_0x1650cc[_0x434f0f(0x107)]===_0x434f0f(0x199)&&_0x4fc5e9[_0x434f0f(0x113)]&&(_0x4fc5e9[_0x434f0f(0x113)]=_0x4fc5e9['xlink:href']+_0xfc466f['idSuffix']),Object[_0x434f0f(0xf7)](_0x4fc5e9)[_0x434f0f(0xeb)](function(_0x2fae8e){var _0x3b2d40=_0x434f0f,_0x4076fa=_0x2fae8e[0x0],_0x46f074=_0x2fae8e[0x1];typeof _0x46f074=='string'&&(_0x4fc5e9[_0x4076fa]=_0x46f074['replace'](/url\(#(.*)\)/,_0x3b2d40(0x150)[_0x3b2d40(0x197)](_0xfc466f[_0x3b2d40(0x111)],')')));})),_0x4fc5e9;}function _0x46f20b(_0x517cdc,_0x350d91){var _0x1830a2=_0xa14a42,_0x6ab46c,_0x278da7=_0x350d91[_0x1830a2(0x16d)];return!_0x278da7||_0x278da7['length']===0x0?_0x517cdc:_0x517cdc[_0x1830a2(0x107)]===_0x1830a2(0xba)&&(!((_0x6ab46c=_0x517cdc['children'])===null||_0x6ab46c===void 0x0)&&_0x6ab46c['length'])?_0x3ea5a3(_0x3ea5a3({},_0x517cdc),{'children':_0x517cdc[_0x1830a2(0x149)][_0x1830a2(0xf5)](function(_0x53f753){var _0x760e19=_0x1830a2;return typeof _0x53f753['attrs']['id']==_0x760e19(0xc2)&&_0x278da7&&_0x278da7[_0x760e19(0x109)](_0x53f753[_0x760e19(0xe5)]['id'])?_0x3ea5a3(_0x3ea5a3({},_0x53f753),{'attrs':_0x3ea5a3(_0x3ea5a3({},_0x53f753[_0x760e19(0xe5)]),{'id':_0x53f753[_0x760e19(0xe5)]['id']+_0x350d91[_0x760e19(0x111)]})}):_0x53f753;})}):_0x517cdc;}function _0x300d2c(){var _0x35808e=_0xa14a42;return Math[_0x35808e(0x15f)]()[_0x35808e(0x191)](0x24)[_0x35808e(0xb6)](0x2,0x8);}_0x8f66bc['displayName']='UniverIcon';var _0x340e2b={'tag':'svg','attrs':{'xmlns':_0xa14a42(0x14b),'fill':_0xa14a42(0xb1),'viewBox':_0xa14a42(0xc1),'width':'1em','height':_0xa14a42(0x129)},'children':[{'tag':'path','attrs':{'fill':_0xa14a42(0xbd),'d':_0xa14a42(0x155)}},{'tag':_0xa14a42(0xdf),'attrs':{'fill':_0xa14a42(0xbd),'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':_0xa14a42(0x151),'clipRule':_0xa14a42(0x151)}}]},_0x22377e=_0x1eede1[_0xa14a42(0xcb)](function(_0x3850c3,_0x1aee79){var _0x2629b9=_0xa14a42;return _0x1eede1['createElement'](_0x8f66bc,Object[_0x2629b9(0x198)]({},_0x3850c3,{'id':'live-share-icon','ref':_0x1aee79,'icon':_0x340e2b}));});_0x22377e[_0xa14a42(0x10a)]=_0xa14a42(0xca);var _0x1070e2=Object[_0xa14a42(0x137)],_0x1e3e18=(_0x2b7fa0,_0x10ab16,_0x10f063,_0x1abf72)=>{var _0xde3113=_0xa14a42;for(var _0xe9f716=_0x1abf72>0x1?void 0x0:_0x1abf72?_0x1070e2(_0x10ab16,_0x10f063):_0x10ab16,_0x185c8d=_0x2b7fa0[_0xde3113(0xc9)]-0x1,_0x2eb61e;_0x185c8d>=0x0;_0x185c8d--)(_0x2eb61e=_0x2b7fa0[_0x185c8d])&&(_0xe9f716=_0x2eb61e(_0xe9f716)||_0xe9f716);return _0xe9f716;},_0x5c5fba=(_0x3e551e,_0x53f741)=>(_0x599914,_0xf83082)=>_0x53f741(_0x599914,_0xf83082,_0x3e551e);_0x3f8abb[_0xa14a42(0x143)]=class extends _0x2abeeb['RxDisposable']{constructor(_0x3b0562,_0x56b7fd,_0x56cce7){var _0x3165c6=_0xa14a42;super(),_0xd8f51e(this,_0x3165c6(0xf2),new Map()),(this['_univerInstanceService']=_0x3b0562,this[_0x3165c6(0x176)]=_0x56b7fd,this[_0x3165c6(0x19c)]=_0x56cce7,this['_init']());}async['getLiveShareCoordinator'](_0x15675e){var _0x5ba94d=_0xa14a42;return this[_0x5ba94d(0xf2)][_0x5ba94d(0x133)](_0x15675e)||await this[_0x5ba94d(0x116)](_0x15675e),this[_0x5ba94d(0xf2)][_0x5ba94d(0x105)](_0x15675e);}[_0xa14a42(0xfe)](){var _0x23f621=_0xa14a42;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x2abeeb['UniverInstanceType'][_0x23f621(0xe2)])[_0x23f621(0x13f)](_0x3fb454[_0x23f621(0x144)](this['dispose$']))[_0x23f621(0x140)](async _0x12ea21=>{var _0x446b10=_0x23f621;const _0x3b1ea4=_0x12ea21[_0x446b10(0xb9)]();this['_entities']['has'](_0x3b1ea4)||this[_0x446b10(0x116)](_0x3b1ea4);}),this['_univerInstanceService'][_0x23f621(0x14d)](_0x2abeeb[_0x23f621(0xc4)][_0x23f621(0xe2)])['pipe'](_0x3fb454[_0x23f621(0x144)](this[_0x23f621(0x108)]))[_0x23f621(0x140)](_0x2830c5=>{var _0x1a1cc4=_0x23f621;const _0x5f530d=_0x2830c5[_0x1a1cc4(0xb9)](),_0x1b1343=this[_0x1a1cc4(0xf2)][_0x1a1cc4(0x105)](_0x5f530d);_0x1b1343==null||_0x1b1343[_0x1a1cc4(0x100)]();});}async[_0xa14a42(0x116)](_0x3a81ce){var _0x22406d=_0xa14a42;const _0x2cafac=await this[_0x22406d(0x19c)]['requireSession'](_0x3a81ce),_0x22f896=this[_0x22406d(0x176)]['createInstance'](_0x3f8abb[_0x22406d(0xd0)],_0x3a81ce,_0x2cafac);return _0x22f896[_0x22406d(0x11c)](),this['_entities'][_0x22406d(0xd3)](_0x3a81ce,_0x22f896),_0x22f896;}},_0x3f8abb['LiveShareController']=_0x1e3e18([_0x5c5fba(0x0,_0x2abeeb[_0xa14a42(0x11b)]),_0x5c5fba(0x1,_0x2abeeb[_0xa14a42(0xc5)](_0x2abeeb[_0xa14a42(0xf8)])),_0x5c5fba(0x2,_0x2abeeb[_0xa14a42(0xc5)](_0x37706c['CollaborationSessionService']))],_0x3f8abb[_0xa14a42(0x143)]);var _0x146722=(_0x49434c=>(_0x49434c[_0xa14a42(0x174)]='offline',_0x49434c[_0xa14a42(0x15c)]='idle',_0x49434c[_0xa14a42(0x194)]=_0xa14a42(0x179),_0x49434c[_0xa14a42(0x14e)]=_0xa14a42(0x17f),_0x49434c[_0xa14a42(0x154)]=_0xa14a42(0x187),_0x49434c))(_0x146722||{});const _0x325485=_0xa14a42(0x160),_0x4e0292=0xc8;_0x3f8abb[_0xa14a42(0xd0)]=class extends _0x2abeeb[_0xa14a42(0x182)]{constructor(_0x4589a9,_0x3d695a,_0x530060,_0x566f09,_0x5ecaa4){var _0x13fa92=_0xa14a42;super(),_0xd8f51e(this,_0x13fa92(0x16b),new _0x45c004[(_0x13fa92(0x171))](_0x13fa92(0x18f))),_0xd8f51e(this,_0x13fa92(0xff),this['_status$'][_0x13fa92(0xde)]()),_0xd8f51e(this,_0x13fa92(0xfe),!0x1),_0xd8f51e(this,'_commandDisposable',null),_0xd8f51e(this,_0x13fa92(0x119),null),(this[_0x13fa92(0xe1)]=_0x4589a9,this[_0x13fa92(0xc0)]=_0x3d695a,this[_0x13fa92(0x181)]=_0x530060,this[_0x13fa92(0xbf)]=_0x566f09,this['_commandService']=_0x5ecaa4);}get[_0xa14a42(0xdc)](){var _0x460609=_0xa14a42;return this[_0x460609(0x16b)]['getValue']();}[_0xa14a42(0x100)](){var _0x480b49=_0xa14a42,_0x5b7ebb;(_0x5b7ebb=this['_commandDisposable'])==null||_0x5b7ebb[_0x480b49(0x100)](),this[_0x480b49(0x16b)][_0x480b49(0x114)](_0x480b49(0x18f)),this['_status$'][_0x480b49(0x162)]();}[_0xa14a42(0x11c)](){var _0x2882e0=_0xa14a42;this[_0x2882e0(0xfe)]||(this[_0x2882e0(0xfe)]=!0x0,this[_0x2882e0(0xc0)]['sessionStatus$'][_0x2882e0(0x13f)](_0x3fb454[_0x2882e0(0x144)](this[_0x2882e0(0x108)]))[_0x2882e0(0x140)](_0x4ee3e3=>{var _0x386e35=_0x2882e0;switch(_0x4ee3e3){case _0x37706c[_0x386e35(0xdd)][_0x386e35(0x174)]:this['_handleOffline']();break;case _0x37706c[_0x386e35(0xdd)][_0x386e35(0x163)]:this['_handleOnline']();break;}}),this[_0x2882e0(0xc0)]['event$'][_0x2882e0(0x13f)](_0x3fb454[_0x2882e0(0x144)](this[_0x2882e0(0x108)]))[_0x2882e0(0x140)](_0x43f62f=>{var _0x47d18b=_0x2882e0;const {eventID:_0x4ef2f1}=_0x43f62f;switch(_0x4ef2f1){case _0x223760[_0x47d18b(0xd1)]['LIVESHARE_NEW_HOST']:this[_0x47d18b(0x135)](_0x43f62f);break;case _0x223760['CollaborationEvent']['LIVESHARE_OPERATION']:this['_handleOperation'](_0x43f62f);break;case _0x223760['CollaborationEvent'][_0x47d18b(0x12a)]:this[_0x47d18b(0x17e)]();break;case _0x223760[_0x47d18b(0xd1)][_0x47d18b(0x14f)]:this['_handleNewChangeSets'](_0x43f62f);break;}}));}[_0xa14a42(0x193)](){var _0x5a80d1=_0xa14a42;this[_0x5a80d1(0xc0)][_0x5a80d1(0x166)]({'eventID':_0x223760[_0x5a80d1(0xd1)][_0x5a80d1(0xef)],'data':{'unitID':this['_unitID'],'userID':this[_0x5a80d1(0xc0)]['getMemberID']()}},this['_unitID']);}[_0xa14a42(0xd8)](){var _0x8ea12c=_0xa14a42;this[_0x8ea12c(0xdc)]===_0x8ea12c(0x187)&&(this[_0x8ea12c(0x16b)][_0x8ea12c(0x114)](_0x8ea12c(0x18f)),this[_0x8ea12c(0xc0)][_0x8ea12c(0x166)]({'eventID':_0x223760[_0x8ea12c(0xd1)][_0x8ea12c(0x12a)],'data':{'unitID':this['_unitID']}},this[_0x8ea12c(0xe1)]));}['startFollowing'](){var _0x2a53ab=_0xa14a42;this[_0x2a53ab(0xdc)]===_0x2a53ab(0x17f)&&(this[_0x2a53ab(0x16b)][_0x2a53ab(0x114)]('following'),this['_startFollowing']());}[_0xa14a42(0x18a)](){var _0x416e4f=_0xa14a42;this[_0x416e4f(0xdc)]===_0x416e4f(0x179)&&this[_0x416e4f(0x126)]();}['_handleNewHost'](_0x2276b5){var _0x4b27ff=_0xa14a42;const {presenter:_0x519a33}=_0x2276b5['data'],_0xad0730=this[_0x4b27ff(0xc0)][_0x4b27ff(0x115)]();this[_0x4b27ff(0x119)]=_0x519a33,_0x519a33===_0xad0730?(this[_0x4b27ff(0x126)](),this[_0x4b27ff(0xbb)]()):this['_status']!==_0x4b27ff(0x17f)&&(this[_0x4b27ff(0x12b)](),this[_0x4b27ff(0x178)]());}[_0xa14a42(0xc7)](){var _0x5cfba8=_0xa14a42;const _0x25cd13={'eventID':_0x223760['CollaborationEvent'][_0x5cfba8(0x165)]};this['_collabSession']['send'](_0x25cd13,this[_0x5cfba8(0xe1)]);}[_0xa14a42(0x17e)](){var _0x362631=_0xa14a42;this[_0x362631(0x119)]=null,this[_0x362631(0xdc)]!==_0x362631(0x187)&&this[_0x362631(0xfb)]();}['_handleNewChangeSets'](_0xb0f596){var _0x899c2c=_0xa14a42;if(this['_status']===_0x899c2c(0x179)&&this[_0x899c2c(0x119)]===_0xb0f596[_0x899c2c(0x121)][_0x899c2c(0x15b)]){const _0x425977=_0x223760[_0x899c2c(0xe6)](_0xb0f596[_0x899c2c(0x121)])[_0x899c2c(0x185)][_0x899c2c(0xcf)]()[_0x899c2c(0x186)](_0x2f3be0=>_0x2f3be0['id']===_0x544b4f[_0x899c2c(0x10f)]['id']);if(_0x425977){const _0x87b996=_0x425977[_0x899c2c(0x16e)][_0x899c2c(0x132)],_0x419c32=_0x425977[_0x899c2c(0x16e)][_0x899c2c(0xea)]['id'];setTimeout(()=>{var _0x48011a=_0x899c2c;this[_0x48011a(0x157)]['executeCommand'](_0x544b4f['SetWorksheetActiveOperation']['id'],{'unitId':_0x87b996,'subUnitId':_0x419c32},{'fromCollab':!0x0});});}}}[_0xa14a42(0xbb)](){var _0x5a9c78=_0xa14a42;this['_status$'][_0x5a9c78(0x114)](_0x5a9c78(0x187));const _0x385763=new Map(),_0x4fe87a=this[_0x5a9c78(0x16c)]=new _0x2abeeb[(_0x5a9c78(0x134))]();_0x4fe87a[_0x5a9c78(0xb5)](_0x2abeeb[_0x5a9c78(0x158)](()=>{var _0x452b72=_0x5a9c78;_0x385763['forEach'](_0x150705=>_0x150705[_0x452b72(0x162)]()),_0x385763[_0x452b72(0x10d)]();})),_0x4fe87a[_0x5a9c78(0xb5)](this['_commandService'][_0x5a9c78(0xc6)](_0x220521=>{var _0x124441=_0x5a9c78,_0x5e1312;if(_0x220521['type']!==_0x2abeeb['CommandType'][_0x124441(0x19d)]||!this[_0x124441(0xbf)][_0x124441(0x101)](_0x220521['id']))return;const {id:_0x21561b}=_0x220521;let _0x333e95;_0x385763[_0x124441(0x133)](_0x21561b)?_0x333e95=_0x385763[_0x124441(0x105)](_0x21561b):(_0x333e95=new _0x45c004[(_0x124441(0x11e))](),_0x385763[_0x124441(0xd3)](_0x21561b,_0x333e95),_0x333e95[_0x124441(0x13f)](_0x3fb454['throttleTime']((_0x5e1312=this['_configService'][_0x124441(0x169)](_0x325485))!=null?_0x5e1312:_0x4e0292,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x124441(0x140)](_0x45b6ba=>{var _0x4ab5ab=_0x124441;this[_0x4ab5ab(0xc0)][_0x4ab5ab(0x166)]({'eventID':_0x223760[_0x4ab5ab(0xd1)][_0x4ab5ab(0x146)],'data':{'unitID':this[_0x4ab5ab(0xe1)],'operations':{[_0x45b6ba['id']]:{'id':_0x45b6ba['id'],'params':JSON[_0x4ab5ab(0xd5)](_0x45b6ba[_0x4ab5ab(0x16e)])}}}},this[_0x4ab5ab(0xe1)]);})),_0x333e95[_0x124441(0x114)](_0x220521);})),this['_liveShareService'][_0x5a9c78(0x13d)](this[_0x5a9c78(0xe1)])[_0x5a9c78(0xeb)](_0x4ee1f6=>this[_0x5a9c78(0xc0)][_0x5a9c78(0x166)]({'eventID':_0x223760[_0x5a9c78(0xd1)][_0x5a9c78(0x146)],'data':{'unitID':this[_0x5a9c78(0xe1)],'operations':{[_0x4ee1f6['id']]:{'id':_0x4ee1f6['id'],'params':JSON[_0x5a9c78(0xd5)](_0x4ee1f6[_0x5a9c78(0x16e)])}}}},this['_unitID']));}[_0xa14a42(0x12b)](){var _0x1993eb=_0xa14a42,_0x51b25d;this['_status$'][_0x1993eb(0x114)]('idle'),(_0x51b25d=this[_0x1993eb(0x16c)])==null||_0x51b25d[_0x1993eb(0x100)](),this[_0x1993eb(0x16c)]=null;}[_0xa14a42(0x178)](){var _0xf8a9a9=_0xa14a42,_0x492885;(_0x492885=this[_0xf8a9a9(0x16c)])==null||_0x492885[_0xf8a9a9(0x100)](),this[_0xf8a9a9(0x16b)][_0xf8a9a9(0x114)](_0xf8a9a9(0x179));}[_0xa14a42(0xfb)](){var _0x5b45f0=_0xa14a42,_0x216b61;this['_status$'][_0x5b45f0(0x114)]('idle'),(_0x216b61=this['_commandDisposable'])==null||_0x216b61[_0x5b45f0(0x100)](),this[_0x5b45f0(0x16c)]=null;}[_0xa14a42(0x126)](){var _0x21cfef=_0xa14a42,_0x340644;this['_status$']['next']('not-following'),(_0x340644=this[_0x21cfef(0x16c)])==null||_0x340644[_0x21cfef(0x100)]();}['_handleOperation'](_0x197e1e){var _0x21d46f=_0xa14a42;if([_0x21d46f(0x187),_0x21d46f(0x17f),_0x21d46f(0x11f)][_0x21d46f(0x109)](this[_0x21d46f(0xdc)])||!_0x197e1e['data']['presenter']||_0x197e1e[_0x21d46f(0x121)][_0x21d46f(0x161)]===this[_0x21d46f(0xc0)][_0x21d46f(0x115)]())return;this[_0x21d46f(0xdc)]===_0x21d46f(0x18f)&&this[_0x21d46f(0x178)]();const _0x56af9a=_0x197e1e[_0x21d46f(0x121)][_0x21d46f(0x106)];Object[_0x21d46f(0x16f)](_0x56af9a)[_0x21d46f(0xeb)](_0x1e6bd4=>{var _0x5e63c6=_0x21d46f;this[_0x5e63c6(0x157)][_0x5e63c6(0x12d)](_0x1e6bd4['id'],_0x1e6bd4[_0x5e63c6(0x16e)]?JSON['parse'](_0x1e6bd4[_0x5e63c6(0x16e)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x125dd1=_0xa14a42,_0x4bdd43;this[_0x125dd1(0x16b)][_0x125dd1(0x114)]('offline'),(_0x4bdd43=this[_0x125dd1(0x16c)])==null||_0x4bdd43[_0x125dd1(0x100)]();}['_handleOnline'](){var _0x442f35=_0xa14a42;this[_0x442f35(0x16b)][_0x442f35(0x114)](_0x442f35(0x18f)),this[_0x442f35(0xc7)]();}},_0x3f8abb['LiveShareCoordinator']=_0x1e3e18([_0x5c5fba(0x2,_0x2abeeb[_0xa14a42(0x190)]),_0x5c5fba(0x3,_0x2abeeb[_0xa14a42(0xc5)](_0x911fa1)),_0x5c5fba(0x4,_0x2abeeb[_0xa14a42(0x124)])],_0x3f8abb[_0xa14a42(0xd0)]);function _0x47f308(){var _0x10380c=_0xa14a42;const _0x2349b9=_0x4a3f16['useDependency'](_0x3f8abb[_0x10380c(0x143)]),_0x3d875e=_0x4a3f16[_0x10380c(0x118)](_0x2abeeb[_0x10380c(0x11b)]),_0x240546=_0x4a3f16[_0x10380c(0xfa)](()=>_0x3d875e[_0x10380c(0x112)](_0x2abeeb[_0x10380c(0xc4)][_0x10380c(0xe2)]),void 0x0,!0x1,[]),[_0x559357,_0x1d4b4c]=_0x1eede1[_0x10380c(0xdb)](null),[_0x4ecd80,_0x2f3108]=_0x1eede1[_0x10380c(0xdb)](_0x146722['IDLE']),_0x58948e=_0x1eede1[_0x10380c(0xbc)](null);return _0x1eede1[_0x10380c(0x196)](()=>(_0x240546&&_0x2349b9[_0x10380c(0x17d)](_0x240546['getUnitId']())[_0x10380c(0x152)](_0x5a88d1=>{var _0x306b59=_0x10380c;_0x1d4b4c(_0x5a88d1),_0x58948e['current']=_0x5a88d1['status$'][_0x306b59(0x140)](_0x186476=>{_0x2f3108(_0x186476);});}),()=>{var _0x1e730d=_0x10380c,_0x13b8e2;(_0x13b8e2=_0x58948e[_0x1e730d(0xe3)])==null||_0x13b8e2['unsubscribe'](),_0x58948e[_0x1e730d(0xe3)]=null;}),[_0x240546,_0x2349b9]),_0x559357?_0x308395[_0x10380c(0x120)](_0xbd355a[_0x10380c(0xe0)],{'align':_0x10380c(0x110),'disabled':_0x4ecd80===_0x146722['OFFLINE'],'className':_0x10380c(0x167),'overlay':_0x308395[_0x10380c(0x120)](_0x5290fc,{'status':_0x4ecd80,'coordinator':_0x559357}),'children':_0x308395[_0x10380c(0x120)]('button',{'className':_0xbd355a[_0x10380c(0x19f)](_0x10380c(0x189),{'univer-cursor-not-allowed':_0x4ecd80===_0x146722[_0x10380c(0x174)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4ecd80!==_0x146722['OFFLINE']}),'type':_0x10380c(0x12f),'children':_0x308395['jsx'](_0x22377e,{'className':_0x10380c(0xfd)})})}):null;}function _0x5290fc(_0xe39e19){var _0x2ad295=_0xa14a42;const {status:_0x1ec122,coordinator:_0x5ec6b0}=_0xe39e19;switch(_0x1ec122){case _0x146722[_0x2ad295(0x15c)]:return _0x308395['jsx'](_0x578b6d,{'coordinator':_0x5ec6b0});case _0x146722[_0x2ad295(0x194)]:return _0x308395[_0x2ad295(0x120)](_0x3d5131,{'coordinator':_0x5ec6b0});case _0x146722[_0x2ad295(0x14e)]:return _0x308395['jsx'](_0x233bfa,{'coordinator':_0x5ec6b0});case _0x146722[_0x2ad295(0x174)]:return _0x308395['jsx'](_0x5d4389,{});case _0x146722[_0x2ad295(0x154)]:return _0x308395[_0x2ad295(0x120)](_0x2ff5bd,{'coordinator':_0x5ec6b0});default:return null;}}function _0x578b6d(_0x450c9){var _0x4b6304=_0xa14a42;const {coordinator:_0x13a6e8}=_0x450c9;return _0x308395[_0x4b6304(0x13c)](_0x308395['Fragment'],{'children':[_0x308395['jsx'](_0x4b6304(0x11a),{'className':_0x4b6304(0xe7),'children':_0x4b6304(0x142)}),_0x308395['jsx'](_0xbd355a['Button'],{'onClick':()=>_0x13a6e8[_0x4b6304(0x193)](),'children':_0x4b6304(0xfc)})]});}function _0x3d5131(_0x2bfeb3){var _0x165010=_0xa14a42;const {coordinator:_0x303ad0}=_0x2bfeb3;return _0x308395['jsxs'](_0x308395['Fragment'],{'children':[_0x308395[_0x165010(0x120)](_0x165010(0x11a),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x165010(0x13a)}),_0x308395[_0x165010(0x120)](_0xbd355a[_0x165010(0x14a)],{'onClick':()=>_0x303ad0[_0x165010(0x18a)](),'children':'Stop\x20following'})]});}function _0x233bfa(_0x1877f2){var _0xed204=_0xa14a42;const {coordinator:_0x3db0fc}=_0x1877f2;return _0x308395['jsxs'](_0x308395[_0xed204(0x17b)],{'children':[_0x308395[_0xed204(0x120)](_0xed204(0x11a),{'className':_0xed204(0xe7),'children':_0xed204(0x156)}),_0x308395['jsx'](_0xbd355a[_0xed204(0x14a)],{'variant':_0xed204(0xb4),'onClick':()=>_0x3db0fc['startFollowing'](),'children':_0xed204(0xe4)})]});}function _0x2ff5bd(_0x48f789){var _0xc081f4=_0xa14a42;const {coordinator:_0x3f3511}=_0x48f789;return _0x308395[_0xc081f4(0x13c)](_0x308395[_0xc081f4(0x17b)],{'children':[_0x308395[_0xc081f4(0x120)]('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0xc081f4(0x184)}),_0x308395['jsx'](_0xbd355a[_0xc081f4(0x14a)],{'variant':_0xc081f4(0xd9),'onClick':()=>_0x3f3511[_0xc081f4(0xd8)](),'children':'Stop\x20presenting'})]});}function _0x5d4389(){var _0x41db6d=_0xa14a42;return _0x308395[_0x41db6d(0x120)](_0x308395[_0x41db6d(0x17b)],{'children':_0x41db6d(0xd2)});}var _0x26a6bc=Object[_0xa14a42(0x137)],_0x3fd29b=(_0x3c0d0a,_0x2f9aca,_0x1b9217,_0x2553ea)=>{for(var _0x3b653f=_0x2553ea>0x1?void 0x0:_0x2553ea?_0x26a6bc(_0x2f9aca,_0x1b9217):_0x2f9aca,_0x4ebce5=_0x3c0d0a['length']-0x1,_0x441416;_0x4ebce5>=0x0;_0x4ebce5--)(_0x441416=_0x3c0d0a[_0x4ebce5])&&(_0x3b653f=_0x441416(_0x3b653f)||_0x3b653f);return _0x3b653f;},_0x4c72df=(_0x3d51de,_0x53522f)=>(_0x5b0ae6,_0x2f990e)=>_0x53522f(_0x5b0ae6,_0x2f990e,_0x3d51de);_0x3f8abb[_0xa14a42(0x153)]=class extends _0x2abeeb[_0xa14a42(0xf1)]{constructor(_0x2a6b18,_0x34296b){var _0x1a7491=_0xa14a42;super(),this[_0x1a7491(0x176)]=_0x2a6b18,this[_0x1a7491(0x188)]=_0x34296b,this['_mountLiveShare']();}[_0xa14a42(0x138)](){var _0xd437a5=_0xa14a42;this[_0xd437a5(0x122)](this[_0xd437a5(0x188)][_0xd437a5(0x18e)](_0x4a3f16[_0xd437a5(0xda)][_0xd437a5(0xc3)],()=>_0x4a3f16['connectInjector'](_0x47f308,this[_0xd437a5(0x176)])));}},_0x3f8abb['DesktopLiveShareController']=_0x3fd29b([_0x4c72df(0x0,_0x2abeeb[_0xa14a42(0xc5)](_0x2abeeb[_0xa14a42(0xf8)])),_0x4c72df(0x1,_0x4a3f16['IUIPartsService'])],_0x3f8abb[_0xa14a42(0x153)]);var _0x381842=Object[_0xa14a42(0xce)],_0x56e04f=Object[_0xa14a42(0x137)],_0x16b33d=(_0x25bee0,_0x4a98ad,_0x225025)=>_0x4a98ad in _0x25bee0?_0x381842(_0x25bee0,_0x4a98ad,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x225025}):_0x25bee0[_0x4a98ad]=_0x225025,_0x264832=(_0x5d8927,_0x2c6069,_0x1e4658,_0x2e42c9)=>{var _0x1f135d=_0xa14a42;for(var _0x2bc51c=_0x2e42c9>0x1?void 0x0:_0x2e42c9?_0x56e04f(_0x2c6069,_0x1e4658):_0x2c6069,_0x5707e3=_0x5d8927[_0x1f135d(0xc9)]-0x1,_0x446dac;_0x5707e3>=0x0;_0x5707e3--)(_0x446dac=_0x5d8927[_0x5707e3])&&(_0x2bc51c=_0x446dac(_0x2bc51c)||_0x2bc51c);return _0x2bc51c;},_0x53d2d7=(_0x14b29c,_0x259262)=>(_0x247e53,_0x11ffec)=>_0x259262(_0x247e53,_0x11ffec,_0x14b29c),_0x20da3d=(_0xda9122,_0x20c54e,_0x200013)=>_0x16b33d(_0xda9122,typeof _0x20c54e!=_0xa14a42(0x18c)?_0x20c54e+'':_0x20c54e,_0x200013);const _0x166b3d=_0xa14a42(0x131);_0x3f8abb['UniverLiveSharePlugin']=class extends _0x2abeeb[_0xa14a42(0x145)]{constructor(_0x30b926=_0x1f56dc,_0x2d0a43,_0x2f5a59){var _0x63355d=_0xa14a42;super(),this[_0x63355d(0x102)]=_0x30b926,this['_injector']=_0x2d0a43,this[_0x63355d(0x181)]=_0x2f5a59;const {..._0x3fe7ca}=_0x2abeeb[_0x63355d(0xc8)]({},_0x1f56dc,this['_config']);this[_0x63355d(0x181)][_0x63355d(0x104)](_0x262291,_0x3fe7ca);}[_0xa14a42(0x10c)](){var _0x193f97=_0xa14a42;_0x2abeeb[_0x193f97(0x136)](this['_injector'],_0x2abeeb['mergeOverrideWithDependencies']([[_0x911fa1],[_0x3f8abb['LiveShareController']],[_0x1a7881],[_0x3f8abb['DesktopLiveShareController']]],this[_0x193f97(0x102)][_0x193f97(0x16a)])),_0x2abeeb[_0x193f97(0xb3)](this[_0x193f97(0x176)],[[_0x1a7881]]);}[_0xa14a42(0x15a)](){var _0x44293d=_0xa14a42;_0x2abeeb[_0x44293d(0xb3)](this[_0x44293d(0x176)],[[_0x3f8abb[_0x44293d(0x153)]]]);}},_0x20da3d(_0x3f8abb['UniverLiveSharePlugin'],_0xa14a42(0x103),_0x2abeeb[_0xa14a42(0xc4)][_0xa14a42(0xb7)]),_0x20da3d(_0x3f8abb[_0xa14a42(0x13e)],_0xa14a42(0x125),_0x166b3d),_0x3f8abb[_0xa14a42(0x13e)]=_0x264832([_0x2abeeb[_0xa14a42(0xd6)](_0x37706c['UniverCollaborationClientPlugin']),_0x53d2d7(0x1,_0x2abeeb[_0xa14a42(0xc5)](_0x2abeeb['Injector'])),_0x53d2d7(0x2,_0x2abeeb['IConfigService'])],_0x3f8abb[_0xa14a42(0x13e)]),_0x3f8abb[_0xa14a42(0xed)]=_0x47f308,_0x3f8abb[_0xa14a42(0x123)]=_0x911fa1,_0x3f8abb['LiveShareStatus']=_0x146722,Object['defineProperty'](_0x3f8abb,Symbol['toStringTag'],{'value':_0xa14a42(0x12c)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.8.0-nightly.202506041607",
3
+ "version": "0.8.0-nightly.202506061607",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -47,13 +47,13 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@univerjs/icons": "^0.4.4",
50
- "@univerjs-pro/collaboration": "0.8.0-nightly.202506041607",
51
- "@univerjs-pro/collaboration-client": "0.8.0-nightly.202506041607",
52
- "@univerjs/design": "0.8.0-nightly.202506041607",
53
- "@univerjs/sheets": "0.8.0-nightly.202506041607",
54
- "@univerjs/core": "0.8.0-nightly.202506041607",
55
- "@univerjs/ui": "0.8.0-nightly.202506041607",
56
- "@univerjs/sheets-ui": "0.8.0-nightly.202506041607"
50
+ "@univerjs-pro/collaboration": "0.8.0-nightly.202506061607",
51
+ "@univerjs-pro/collaboration-client": "0.8.0-nightly.202506061607",
52
+ "@univerjs/design": "0.8.0-nightly.202506061607",
53
+ "@univerjs/sheets": "0.8.0-nightly.202506061607",
54
+ "@univerjs/core": "0.8.0-nightly.202506061607",
55
+ "@univerjs/sheets-ui": "0.8.0-nightly.202506061607",
56
+ "@univerjs/ui": "0.8.0-nightly.202506061607"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.4",
@@ -63,7 +63,7 @@
63
63
  "typescript": "^5.8.3",
64
64
  "vite": "^6.3.5",
65
65
  "vitest": "^3.2.0",
66
- "@univerjs-infra/shared": "0.8.0-beta.1",
66
+ "@univerjs-infra/shared": "0.8.0",
67
67
  "@univerjs/protocol": "0.1.47-alpha.0"
68
68
  },
69
69
  "scripts": {