@univerjs-pro/live-share 0.8.1-nightly.202506151606 → 0.8.1-nightly.202506161607

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 _0x456aae=_0x4f8f;(function(_0x53579e,_0x27a79e){var _0x183ffa=_0x4f8f,_0x4a908e=_0x53579e();while(!![]){try{var _0x3b8b16=parseInt(_0x183ffa(0x1a1))/0x1*(parseInt(_0x183ffa(0x167))/0x2)+parseInt(_0x183ffa(0x1ad))/0x3*(-parseInt(_0x183ffa(0x248))/0x4)+-parseInt(_0x183ffa(0x245))/0x5*(parseInt(_0x183ffa(0x211))/0x6)+parseInt(_0x183ffa(0x1ee))/0x7+parseInt(_0x183ffa(0x1c2))/0x8*(-parseInt(_0x183ffa(0x236))/0x9)+-parseInt(_0x183ffa(0x1d3))/0xa+parseInt(_0x183ffa(0x1f6))/0xb*(parseInt(_0x183ffa(0x237))/0xc);if(_0x3b8b16===_0x27a79e)break;else _0x4a908e['push'](_0x4a908e['shift']());}catch(_0x4ff092){_0x4a908e['push'](_0x4a908e['shift']());}}}(_0x3560,0xbc403));var U=Object['defineProperty'],F=(_0x4c102d,_0x540c61,_0x16662c)=>_0x540c61 in _0x4c102d?U(_0x4c102d,_0x540c61,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16662c}):_0x4c102d[_0x540c61]=_0x16662c,v=(_0x189f2c,_0x15e1d1,_0x2a3d3a)=>F(_0x189f2c,typeof _0x15e1d1!=_0x456aae(0x215)?_0x15e1d1+'':_0x15e1d1,_0x2a3d3a);Object[_0x456aae(0x1e6)](exports,Symbol['toStringTag'],{'value':_0x456aae(0x21b)});const m=require(_0x456aae(0x18e)),o=require('@univerjs/core'),C=require(_0x456aae(0x17e)),w=require(_0x456aae(0x234)),p=require(_0x456aae(0x1cf)),l=require(_0x456aae(0x191)),g=require(_0x456aae(0x195)),f=require(_0x456aae(0x1ef)),_=require('@univerjs-pro/collaboration'),D=require(_0x456aae(0x1b5)),b=require(_0x456aae(0x20c)),$=_0x456aae(0x1c1),x={};class O extends o['Disposable']{constructor(){var _0x2d1733=_0x456aae;super(...arguments),v(this,_0x2d1733(0x20f),new Set()),v(this,'_reporters',new Set());}[_0x456aae(0x175)](_0x1053c7){var _0x2b5d59=_0x456aae;return this[_0x2b5d59(0x20f)][_0x2b5d59(0x199)](_0x1053c7),o[_0x2b5d59(0x1b2)](()=>this[_0x2b5d59(0x20f)][_0x2b5d59(0x1cc)](_0x1053c7));}[_0x456aae(0x1f7)](_0x2460fc){var _0x4d71fc=_0x456aae;return this[_0x4d71fc(0x1b3)]['add'](_0x2460fc),o[_0x4d71fc(0x1b2)](()=>this[_0x4d71fc(0x1b3)]['delete'](_0x2460fc));}[_0x456aae(0x1b8)](_0x111553){var _0x225019=_0x456aae;return this[_0x225019(0x20f)][_0x225019(0x244)](_0x111553);}[_0x456aae(0x21c)](_0x37a3ad){var _0x3d27cc=_0x456aae;return Array['from'](this[_0x3d27cc(0x1b3)])[_0x3d27cc(0x1a3)](_0x4f6ab9=>_0x4f6ab9(_0x37a3ad));}}var H=Object[_0x456aae(0x23a)],V=(_0x106d74,_0x3d98c0,_0x4311f1,_0x2337de)=>{for(var _0x50681f=_0x2337de>0x1?void 0x0:_0x2337de?H(_0x3d98c0,_0x4311f1):_0x3d98c0,_0x48b82e=_0x106d74['length']-0x1,_0x110716;_0x48b82e>=0x0;_0x48b82e--)(_0x110716=_0x106d74[_0x48b82e])&&(_0x50681f=_0x110716(_0x50681f)||_0x50681f);return _0x50681f;},k=(_0x1b1956,_0xc237e6)=>(_0x19c3fb,_0x2232a4)=>_0xc237e6(_0x19c3fb,_0x2232a4,_0x1b1956);let E=class extends o[_0x456aae(0x1b1)]{constructor(_0x2291d8){var _0xc62e6f=_0x456aae;super(),this[_0xc62e6f(0x1aa)]=_0x2291d8,this[_0xc62e6f(0x183)]();}[_0x456aae(0x183)](){var _0x58ace3=_0x456aae;[w[_0x58ace3(0x19f)]['id'],w[_0x58ace3(0x246)]['id'],C[_0x58ace3(0x18a)]['id']][_0x58ace3(0x16e)](_0x48cad4=>{var _0x2ff97e=_0x58ace3;this['disposeWithMe'](this[_0x2ff97e(0x1aa)]['registerSharedOperation'](_0x48cad4));});}};E=V([k(0x0,o['Inject'](O))],E);var u=function(){var _0x3931bd=_0x456aae;return u=Object[_0x3931bd(0x1c5)]||function(_0x290fbd){var _0x3ced70=_0x3931bd;for(var _0x2dc73c,_0x4d6371=0x1,_0x2dda50=arguments[_0x3ced70(0x1ff)];_0x4d6371<_0x2dda50;_0x4d6371++){_0x2dc73c=arguments[_0x4d6371];for(var _0x46c6d5 in _0x2dc73c)Object[_0x3ced70(0x1de)][_0x3ced70(0x1d2)][_0x3ced70(0x1cd)](_0x2dc73c,_0x46c6d5)&&(_0x290fbd[_0x46c6d5]=_0x2dc73c[_0x46c6d5]);}return _0x290fbd;},u[_0x3931bd(0x20b)](this,arguments);},M=function(_0x47a9df,_0x428eb0){var _0xf3a1e1=_0x456aae,_0x3f1fec={};for(var _0x19a743 in _0x47a9df)Object[_0xf3a1e1(0x1de)][_0xf3a1e1(0x1d2)]['call'](_0x47a9df,_0x19a743)&&_0x428eb0['indexOf'](_0x19a743)<0x0&&(_0x3f1fec[_0x19a743]=_0x47a9df[_0x19a743]);if(_0x47a9df!=null&&typeof Object[_0xf3a1e1(0x23e)]==_0xf3a1e1(0x166)){for(var _0x1854ca=0x0,_0x19a743=Object[_0xf3a1e1(0x23e)](_0x47a9df);_0x1854ca<_0x19a743[_0xf3a1e1(0x1ff)];_0x1854ca++)_0x428eb0['indexOf'](_0x19a743[_0x1854ca])<0x0&&Object[_0xf3a1e1(0x1de)][_0xf3a1e1(0x1eb)][_0xf3a1e1(0x1cd)](_0x47a9df,_0x19a743[_0x1854ca])&&(_0x3f1fec[_0x19a743[_0x1854ca]]=_0x47a9df[_0x19a743[_0x1854ca]]);}return _0x3f1fec;},j=f['forwardRef'](function(_0x444f67,_0x26cd62){var _0x52187d=_0x456aae,_0x2daf6f=_0x444f67[_0x52187d(0x233)],_0x6af6e0=_0x444f67['id'],_0x12889f=_0x444f67['className'],_0x26dbf5=_0x444f67[_0x52187d(0x238)],_0x1c16fb=M(_0x444f67,[_0x52187d(0x233),'id',_0x52187d(0x1db),_0x52187d(0x238)]),_0x3aee39=_0x52187d(0x231)[_0x52187d(0x1fc)](_0x6af6e0,'\x20')['concat'](_0x12889f||'')['trim'](),_0x5ea49b=f[_0x52187d(0x22f)]('_'[_0x52187d(0x1fc)](G()));return y(_0x2daf6f,''[_0x52187d(0x1fc)](_0x6af6e0),{'defIds':_0x2daf6f[_0x52187d(0x184)],'idSuffix':_0x5ea49b[_0x52187d(0x1c8)]},u({'ref':_0x26cd62,'className':_0x3aee39},_0x1c16fb),_0x26dbf5);});function y(_0x36f37b,_0x1c7e1f,_0x2c9cce,_0x5afeb5,_0x44f3b9){var _0x523f83=_0x456aae;return f[_0x523f83(0x1c6)](_0x36f37b[_0x523f83(0x1ea)],u(u({'key':_0x1c7e1f},q(_0x36f37b,_0x2c9cce,_0x44f3b9)),_0x5afeb5),(W(_0x36f37b,_0x2c9cce)[_0x523f83(0x1b6)]||[])['map'](function(_0x106736,_0x3d8a7e){var _0x2af5d7=_0x523f83;return y(_0x106736,''[_0x2af5d7(0x1fc)](_0x1c7e1f,'-')[_0x2af5d7(0x1fc)](_0x36f37b[_0x2af5d7(0x1ea)],'-')[_0x2af5d7(0x1fc)](_0x3d8a7e),_0x2c9cce,void 0x0,_0x44f3b9);}));}function q(_0x4f4940,_0x44d32d,_0x1256e7){var _0x476544=_0x456aae,_0x479984=u({},_0x4f4940[_0x476544(0x232)]);_0x1256e7!=null&&_0x1256e7[_0x476544(0x1c9)]&&_0x479984[_0x476544(0x16b)]===_0x476544(0x1c9)&&(_0x479984[_0x476544(0x16b)]=_0x1256e7[_0x476544(0x1c9)]),_0x4f4940[_0x476544(0x1ea)]===_0x476544(0x17b)&&_0x479984['id']&&(_0x479984['id']=_0x479984['id']+_0x44d32d['idSuffix']),Object[_0x476544(0x1e9)](_0x479984)[_0x476544(0x16e)](function(_0x3e5cea){var _0x169ac4=_0x476544,_0x456203=_0x3e5cea[0x0],_0x222343=_0x3e5cea[0x1];_0x456203===_0x169ac4(0x17b)&&typeof _0x222343==_0x169ac4(0x178)&&(_0x479984[_0x456203]=_0x222343[_0x169ac4(0x1e0)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x44d32d[_0x169ac4(0x1fe)],')')));});var _0x39747e=_0x44d32d[_0x476544(0x184)];return!_0x39747e||_0x39747e[_0x476544(0x1ff)]===0x0||(_0x4f4940[_0x476544(0x1ea)]==='use'&&_0x479984[_0x476544(0x209)]&&(_0x479984[_0x476544(0x209)]=_0x479984[_0x476544(0x209)]+_0x44d32d['idSuffix']),Object[_0x476544(0x1e9)](_0x479984)[_0x476544(0x16e)](function(_0x5a6353){var _0x3b0dec=_0x476544,_0x184e3c=_0x5a6353[0x0],_0x207142=_0x5a6353[0x1];typeof _0x207142==_0x3b0dec(0x178)&&(_0x479984[_0x184e3c]=_0x207142[_0x3b0dec(0x1e0)](/url\(#(.*)\)/,'url(#$1'[_0x3b0dec(0x1fc)](_0x44d32d[_0x3b0dec(0x1fe)],')')));})),_0x479984;}function W(_0x15a2a6,_0x3a091e){var _0x4ddb5f=_0x456aae,_0x379094,_0x1e8fd5=_0x3a091e[_0x4ddb5f(0x184)];return!_0x1e8fd5||_0x1e8fd5[_0x4ddb5f(0x1ff)]===0x0?_0x15a2a6:_0x15a2a6[_0x4ddb5f(0x1ea)]===_0x4ddb5f(0x16c)&&(!((_0x379094=_0x15a2a6[_0x4ddb5f(0x1b6)])===null||_0x379094===void 0x0)&&_0x379094[_0x4ddb5f(0x1ff)])?u(u({},_0x15a2a6),{'children':_0x15a2a6[_0x4ddb5f(0x1b6)][_0x4ddb5f(0x1a3)](function(_0x1d20ec){var _0x1ce871=_0x4ddb5f;return typeof _0x1d20ec[_0x1ce871(0x232)]['id']=='string'&&_0x1e8fd5&&_0x1e8fd5['includes'](_0x1d20ec['attrs']['id'])?u(u({},_0x1d20ec),{'attrs':u(u({},_0x1d20ec['attrs']),{'id':_0x1d20ec[_0x1ce871(0x232)]['id']+_0x3a091e['idSuffix']})}):_0x1d20ec;})}):_0x15a2a6;}function G(){var _0x595518=_0x456aae;return Math[_0x595518(0x17a)]()[_0x595518(0x192)](0x24)[_0x595518(0x1ca)](0x2,0x8);}j[_0x456aae(0x201)]=_0x456aae(0x161);var B={'tag':_0x456aae(0x249),'attrs':{'xmlns':_0x456aae(0x177),'fill':_0x456aae(0x210),'viewBox':_0x456aae(0x227),'width':'1em','height':_0x456aae(0x20d)},'children':[{'tag':_0x456aae(0x1f3),'attrs':{'fill':_0x456aae(0x168),'d':_0x456aae(0x1b0)}},{'tag':_0x456aae(0x1f3),'attrs':{'fill':_0x456aae(0x168),'d':_0x456aae(0x213),'fillRule':_0x456aae(0x1be),'clipRule':_0x456aae(0x1be)}}]},P=f['forwardRef'](function(_0x3ad126,_0x32abac){var _0x348a6c=_0x456aae;return f['createElement'](j,Object[_0x348a6c(0x1c5)]({},_0x3ad126,{'id':_0x348a6c(0x18f),'ref':_0x32abac,'icon':B}));});P[_0x456aae(0x201)]=_0x456aae(0x164);var Y=Object[_0x456aae(0x23a)],R=(_0x1a3513,_0xd67ae6,_0x24c648,_0xc30c7b)=>{var _0x357960=_0x456aae;for(var _0x345641=_0xc30c7b>0x1?void 0x0:_0xc30c7b?Y(_0xd67ae6,_0x24c648):_0xd67ae6,_0x3532bb=_0x1a3513[_0x357960(0x1ff)]-0x1,_0xcd1978;_0x3532bb>=0x0;_0x3532bb--)(_0xcd1978=_0x1a3513[_0x3532bb])&&(_0x345641=_0xcd1978(_0x345641)||_0x345641);return _0x345641;},S=(_0x21ad29,_0x174b51)=>(_0x1590f0,_0x5805bc)=>_0x174b51(_0x1590f0,_0x5805bc,_0x21ad29);exports[_0x456aae(0x1d9)]=class extends o['RxDisposable']{constructor(_0x4c7f13,_0x96c93a,_0x3e434a){var _0x4b223a=_0x456aae;super(),v(this,_0x4b223a(0x212),new Map()),(this['_univerInstanceService']=_0x4c7f13,this[_0x4b223a(0x23f)]=_0x96c93a,this[_0x4b223a(0x16a)]=_0x3e434a,this['_init']());}async[_0x456aae(0x189)](_0x28e68e){var _0x5180c5=_0x456aae;return this[_0x5180c5(0x212)][_0x5180c5(0x244)](_0x28e68e)||await this[_0x5180c5(0x243)](_0x28e68e),this[_0x5180c5(0x212)][_0x5180c5(0x170)](_0x28e68e);}[_0x456aae(0x183)](){var _0x4508f1=_0x456aae;this[_0x4508f1(0x18d)]['getTypeOfUnitAdded$'](o['UniverInstanceType'][_0x4508f1(0x1e3)])[_0x4508f1(0x1ab)](b[_0x4508f1(0x186)](this[_0x4508f1(0x1c4)]))['subscribe'](async _0x15662b=>{var _0x3edaf5=_0x4508f1;const _0x4af1d7=_0x15662b[_0x3edaf5(0x229)]();this['_entities'][_0x3edaf5(0x244)](_0x4af1d7)||this[_0x3edaf5(0x243)](_0x4af1d7);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](o[_0x4508f1(0x172)]['UNIVER_SHEET'])[_0x4508f1(0x1ab)](b[_0x4508f1(0x186)](this[_0x4508f1(0x1c4)]))[_0x4508f1(0x1b4)](_0x494e80=>{var _0x52e174=_0x4508f1;const _0x21ba3a=_0x494e80[_0x52e174(0x229)](),_0x44a3ae=this[_0x52e174(0x212)][_0x52e174(0x170)](_0x21ba3a);_0x44a3ae==null||_0x44a3ae['dispose']();});}async[_0x456aae(0x243)](_0x22834e){var _0x34a48a=_0x456aae;const _0x2a34c9=await this[_0x34a48a(0x16a)][_0x34a48a(0x1af)](_0x22834e),_0x152aca=this['_injector'][_0x34a48a(0x23b)](exports[_0x34a48a(0x17d)],_0x22834e,_0x2a34c9);return _0x152aca[_0x34a48a(0x19b)](),this[_0x34a48a(0x212)]['set'](_0x22834e,_0x152aca),_0x152aca;}},exports[_0x456aae(0x1d9)]=R([S(0x0,o[_0x456aae(0x1e7)]),S(0x1,o[_0x456aae(0x1bb)](o['Injector'])),S(0x2,o[_0x456aae(0x1bb)](m[_0x456aae(0x1a0)]))],exports[_0x456aae(0x1d9)]);var h=(_0x18db1f=>(_0x18db1f['OFFLINE']=_0x456aae(0x1a7),_0x18db1f[_0x456aae(0x17f)]=_0x456aae(0x173),_0x18db1f[_0x456aae(0x197)]=_0x456aae(0x187),_0x18db1f[_0x456aae(0x1ba)]=_0x456aae(0x1ac),_0x18db1f[_0x456aae(0x241)]='presenting',_0x18db1f))(h||{});function _0x3560(){var _0x3291b0=['OFFLINE','react/jsx-runtime','toString','next','then','@univerjs/design','params','FOLLOWING','ONLINE','add','reverse','init','clear','IConfigService','tryStartPresenting','SetZoomRatioOperation','CollaborationSessionService','124731COPQPH','useState','map','You\x27re\x20not\x20following\x20the\x20presenter','Injector','OPERATION','offline','useDependency','InsertSheetMutation','_liveShareService','pipe','not-following','203310CLQolY','mergeOverrideWithDependencies','requireSession','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','Disposable','toDisposable','_reporters','subscribe','rxjs','children','ICommandService','shouldShareOperation','_handleOperation','NOT_FOLLOWING','Inject','touchDependencies','DependentOn','evenodd','text','Stop\x20following','live-share.config','344XcVLBh','_stopPresenting','dispose$','assign','createElement','RxDisposable','current','colorChannel1','substring','_commandDisposable','delete','call','sessionStatus$','@univerjs/ui','CollaborationEvent','executeCommand','hasOwnProperty','585080qffgOZ','_fetchOperations','useObservable','Start','UniverCollaborationClientPlugin','throttleTime','LiveShareController','getConfig','className','getMemberID','useEffect','prototype','onStarting','replace','button','_beIdle','UNIVER_SHEET','Start\x20following','_handleTerminate','defineProperty','IUniverInstanceService','type','entries','tag','propertyIsEnumerable','send','_mountLiveShare','5960612xCpqlq','react','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27re\x20following\x20the\x20presenter','path','You\x27are\x20offline.','mutations','33kXEZZv','registerInitialStateReporter','You\x27re\x20presenting\x20the\x20document','status$','_status','jsx','concat','asObservable','idSuffix','length','operations','displayName','DesktopLiveShareController','data','LiveShareService','LIVESHARE_OPERATION','LIVESHARE_FETCH_OPERATIONS','LIVESHARE_TERMINATE','getCurrentTypeOfUnit$','xlink:href','div','apply','rxjs/operators','1em','_unitID','_sharedOperations','none','404370aKpDUM','_entities','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','override','symbol','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_handleNewChangeSets','stringify','find','getValue','Module','getInitialStates','sheet','UniverLiveSharePlugin','LiveShareStatus','jsxs','_handleOnline','Subject','_uiPartsService','Button','univer-size-4','LiveShare','0\x200\x2017\x2017','NEW_CHANGESETS','getUnitId','startFollowing','stopPresenting','_collabSession','includes','Fragment','useRef','merge','univerjs-icon\x20univerjs-icon-','attrs','icon','@univerjs/sheets-ui','_presenter','52839dSLJGN','7075020XVRmuL','extend','dispose','getOwnPropertyDescriptor','createInstance','memberID','stopFollowing','getOwnPropertySymbols','_injector','SAME_OPERATION_SHARE_INTERVAL','PRESENTING','presenter','_startLiveShareCoordinator','has','90KSopPG','SetScrollOperation','SessionStatus','56WRgwYP','svg','UniverIcon','default','complete','LiveShareIcon','presenting','function','10EHhPrj','currentColor','unsubscribe','_collabSessionService','fill','defs','_stopFollowing','forEach','_configService','get','LIVESHARE_REQUEST_HOST','UniverInstanceType','idle','_startFollowing','registerSharedOperation','_status$','http://www.w3.org/2000/svg','string','UNIVER_LIVE_SHARE_PLUGIN','random','mask','_config','LiveShareCoordinator','@univerjs/sheets','IDLE','DisposableCollection','parse','BuiltInUIPart','_init','defIds','_commandService','takeUntil','following','set','getLiveShareCoordinator','SetWorksheetActiveOperation','BehaviorSubject','_handleNewHost','_univerInstanceService','@univerjs-pro/collaboration-client','live-share-icon'];_0x3560=function(){return _0x3291b0;};return _0x3560();}const Z=_0x456aae(0x240),J=0xc8;exports[_0x456aae(0x17d)]=class extends o[_0x456aae(0x1c7)]{constructor(_0x114c15,_0x406692,_0x1f0dbb,_0x46ecea,_0x137d18){var _0x12c39e=_0x456aae;super(),v(this,_0x12c39e(0x176),new D[(_0x12c39e(0x18b))](_0x12c39e(0x173))),v(this,_0x12c39e(0x1f9),this[_0x12c39e(0x176)][_0x12c39e(0x1fd)]()),v(this,_0x12c39e(0x183),!0x1),v(this,_0x12c39e(0x1cb),null),v(this,_0x12c39e(0x235),null),(this['_unitID']=_0x114c15,this[_0x12c39e(0x22c)]=_0x406692,this[_0x12c39e(0x16f)]=_0x1f0dbb,this[_0x12c39e(0x1aa)]=_0x46ecea,this[_0x12c39e(0x185)]=_0x137d18);}get[_0x456aae(0x1fa)](){var _0x4fe176=_0x456aae;return this[_0x4fe176(0x176)][_0x4fe176(0x21a)]();}[_0x456aae(0x239)](){var _0x2ede99=_0x456aae,_0x2fc45d;(_0x2fc45d=this[_0x2ede99(0x1cb)])==null||_0x2fc45d[_0x2ede99(0x239)](),this[_0x2ede99(0x176)]['next'](_0x2ede99(0x173)),this[_0x2ede99(0x176)][_0x2ede99(0x163)]();}[_0x456aae(0x19b)](){var _0x1ae6f9=_0x456aae;this[_0x1ae6f9(0x183)]||(this['_init']=!0x0,this[_0x1ae6f9(0x22c)][_0x1ae6f9(0x1ce)][_0x1ae6f9(0x1ab)](b[_0x1ae6f9(0x186)](this[_0x1ae6f9(0x1c4)]))['subscribe'](_0x12d911=>{var _0x19f497=_0x1ae6f9;switch(_0x12d911){case m[_0x19f497(0x247)][_0x19f497(0x190)]:this['_handleOffline']();break;case m[_0x19f497(0x247)][_0x19f497(0x198)]:this[_0x19f497(0x221)]();break;}}),this['_collabSession']['event$'][_0x1ae6f9(0x1ab)](b[_0x1ae6f9(0x186)](this[_0x1ae6f9(0x1c4)]))[_0x1ae6f9(0x1b4)](_0x2c4ae7=>{var _0x455e19=_0x1ae6f9;const {eventID:_0xfa1b79}=_0x2c4ae7;switch(_0xfa1b79){case _['CollaborationEvent']['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x2c4ae7);break;case _['CollaborationEvent']['LIVESHARE_OPERATION']:this[_0x455e19(0x1b9)](_0x2c4ae7);break;case _[_0x455e19(0x1d0)]['LIVESHARE_TERMINATE']:this[_0x455e19(0x1e5)]();break;case _['CollaborationEvent'][_0x455e19(0x228)]:this[_0x455e19(0x217)](_0x2c4ae7);break;}}));}[_0x456aae(0x19e)](){var _0x318fe4=_0x456aae;this[_0x318fe4(0x22c)][_0x318fe4(0x1ec)]({'eventID':_[_0x318fe4(0x1d0)][_0x318fe4(0x171)],'data':{'unitID':this[_0x318fe4(0x20e)],'userID':this[_0x318fe4(0x22c)][_0x318fe4(0x1dc)]()}},this['_unitID']);}[_0x456aae(0x22b)](){var _0x2a9972=_0x456aae;this[_0x2a9972(0x1fa)]==='presenting'&&(this['_status$']['next'](_0x2a9972(0x173)),this['_collabSession'][_0x2a9972(0x1ec)]({'eventID':_[_0x2a9972(0x1d0)][_0x2a9972(0x207)],'data':{'unitID':this[_0x2a9972(0x20e)]}},this['_unitID']));}[_0x456aae(0x22a)](){var _0x429da9=_0x456aae;this[_0x429da9(0x1fa)]===_0x429da9(0x1ac)&&(this['_status$'][_0x429da9(0x193)](_0x429da9(0x187)),this['_startFollowing']());}[_0x456aae(0x23d)](){var _0x3b8f87=_0x456aae;this['_status']===_0x3b8f87(0x187)&&this['_stopFollowing']();}[_0x456aae(0x18c)](_0x151057){var _0x178865=_0x456aae;const {presenter:_0x2f1ca4}=_0x151057[_0x178865(0x203)],_0x5b6697=this['_collabSession'][_0x178865(0x1dc)]();this[_0x178865(0x235)]=_0x2f1ca4,_0x2f1ca4===_0x5b6697?(this[_0x178865(0x16d)](),this['_startPresenting']()):this[_0x178865(0x1fa)]!==_0x178865(0x1ac)&&(this[_0x178865(0x1c3)](),this['_startFollowing']());}[_0x456aae(0x1d4)](){var _0x13e095=_0x456aae;const _0x4cbdd5={'eventID':_[_0x13e095(0x1d0)][_0x13e095(0x206)]};this[_0x13e095(0x22c)][_0x13e095(0x1ec)](_0x4cbdd5,this[_0x13e095(0x20e)]);}[_0x456aae(0x1e5)](){var _0x3fb642=_0x456aae;this['_presenter']=null,this[_0x3fb642(0x1fa)]!=='presenting'&&this[_0x3fb642(0x1e2)]();}[_0x456aae(0x217)](_0x32f094){var _0x22f6fb=_0x456aae;if(this[_0x22f6fb(0x1fa)]===_0x22f6fb(0x187)&&this['_presenter']===_0x32f094[_0x22f6fb(0x203)][_0x22f6fb(0x23c)]){const _0x2747af=_['parseProtocolChangeset'](_0x32f094[_0x22f6fb(0x203)])[_0x22f6fb(0x1f5)][_0x22f6fb(0x19a)]()[_0x22f6fb(0x219)](_0x360923=>_0x360923['id']===C[_0x22f6fb(0x1a9)]['id']);if(_0x2747af){const _0x68746a=_0x2747af[_0x22f6fb(0x196)]['unitId'],_0x4a026d=_0x2747af[_0x22f6fb(0x196)][_0x22f6fb(0x21d)]['id'];setTimeout(()=>{var _0x56515c=_0x22f6fb;this[_0x56515c(0x185)][_0x56515c(0x1d1)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x68746a,'subUnitId':_0x4a026d},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x2d889f=_0x456aae;this[_0x2d889f(0x176)][_0x2d889f(0x193)](_0x2d889f(0x165));const _0x23b273=new Map(),_0x490fad=this[_0x2d889f(0x1cb)]=new o[(_0x2d889f(0x180))]();_0x490fad[_0x2d889f(0x199)](o[_0x2d889f(0x1b2)](()=>{var _0x114ab4=_0x2d889f;_0x23b273[_0x114ab4(0x16e)](_0x143608=>_0x143608[_0x114ab4(0x163)]()),_0x23b273[_0x114ab4(0x19c)]();})),_0x490fad[_0x2d889f(0x199)](this[_0x2d889f(0x185)]['onCommandExecuted'](_0x58ddcd=>{var _0x1f4dc7=_0x2d889f,_0x145271;if(_0x58ddcd[_0x1f4dc7(0x1e8)]!==o['CommandType'][_0x1f4dc7(0x1a6)]||!this[_0x1f4dc7(0x1aa)][_0x1f4dc7(0x1b8)](_0x58ddcd['id']))return;const {id:_0xac6462}=_0x58ddcd;let _0x36517d;_0x23b273[_0x1f4dc7(0x244)](_0xac6462)?_0x36517d=_0x23b273[_0x1f4dc7(0x170)](_0xac6462):(_0x36517d=new D[(_0x1f4dc7(0x222))](),_0x23b273[_0x1f4dc7(0x188)](_0xac6462,_0x36517d),_0x36517d[_0x1f4dc7(0x1ab)](b[_0x1f4dc7(0x1d8)]((_0x145271=this[_0x1f4dc7(0x16f)][_0x1f4dc7(0x1da)](Z))!=null?_0x145271:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1f4dc7(0x1b4)](_0x4b266e=>{var _0xbb425f=_0x1f4dc7;this[_0xbb425f(0x22c)][_0xbb425f(0x1ec)]({'eventID':_[_0xbb425f(0x1d0)][_0xbb425f(0x205)],'data':{'unitID':this[_0xbb425f(0x20e)],'operations':{[_0x4b266e['id']]:{'id':_0x4b266e['id'],'params':JSON[_0xbb425f(0x218)](_0x4b266e[_0xbb425f(0x196)])}}}},this['_unitID']);})),_0x36517d[_0x1f4dc7(0x193)](_0x58ddcd);})),this[_0x2d889f(0x1aa)][_0x2d889f(0x21c)](this['_unitID'])[_0x2d889f(0x16e)](_0x3cb3c0=>this[_0x2d889f(0x22c)][_0x2d889f(0x1ec)]({'eventID':_[_0x2d889f(0x1d0)][_0x2d889f(0x205)],'data':{'unitID':this['_unitID'],'operations':{[_0x3cb3c0['id']]:{'id':_0x3cb3c0['id'],'params':JSON[_0x2d889f(0x218)](_0x3cb3c0[_0x2d889f(0x196)])}}}},this['_unitID']));}[_0x456aae(0x1c3)](){var _0x3848af=_0x456aae,_0x426925;this[_0x3848af(0x176)][_0x3848af(0x193)](_0x3848af(0x173)),(_0x426925=this[_0x3848af(0x1cb)])==null||_0x426925[_0x3848af(0x239)](),this['_commandDisposable']=null;}[_0x456aae(0x174)](){var _0x2b3b79=_0x456aae,_0x202a66;(_0x202a66=this[_0x2b3b79(0x1cb)])==null||_0x202a66['dispose'](),this['_status$'][_0x2b3b79(0x193)]('following');}[_0x456aae(0x1e2)](){var _0x242d8a=_0x456aae,_0x1580c3;this[_0x242d8a(0x176)]['next'](_0x242d8a(0x173)),(_0x1580c3=this[_0x242d8a(0x1cb)])==null||_0x1580c3['dispose'](),this[_0x242d8a(0x1cb)]=null;}[_0x456aae(0x16d)](){var _0x492cb3=_0x456aae,_0x30303b;this[_0x492cb3(0x176)]['next'](_0x492cb3(0x1ac)),(_0x30303b=this[_0x492cb3(0x1cb)])==null||_0x30303b[_0x492cb3(0x239)]();}['_handleOperation'](_0x410068){var _0x54fe95=_0x456aae;if(['presenting',_0x54fe95(0x1ac),_0x54fe95(0x1a7)][_0x54fe95(0x22d)](this[_0x54fe95(0x1fa)])||!_0x410068[_0x54fe95(0x203)]['presenter']||_0x410068[_0x54fe95(0x203)][_0x54fe95(0x242)]===this[_0x54fe95(0x22c)][_0x54fe95(0x1dc)]())return;this[_0x54fe95(0x1fa)]===_0x54fe95(0x173)&&this['_startFollowing']();const _0x1093f8=_0x410068[_0x54fe95(0x203)][_0x54fe95(0x200)];Object['values'](_0x1093f8)['forEach'](_0x439c54=>{var _0x1e2602=_0x54fe95;this[_0x1e2602(0x185)][_0x1e2602(0x1d1)](_0x439c54['id'],_0x439c54[_0x1e2602(0x196)]?JSON[_0x1e2602(0x181)](_0x439c54['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x595377=_0x456aae,_0x1110b0;this[_0x595377(0x176)][_0x595377(0x193)]('offline'),(_0x1110b0=this[_0x595377(0x1cb)])==null||_0x1110b0[_0x595377(0x239)]();}[_0x456aae(0x221)](){var _0x17e3fa=_0x456aae;this[_0x17e3fa(0x176)]['next'](_0x17e3fa(0x173)),this['_fetchOperations']();}},exports[_0x456aae(0x17d)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0x456aae(0x1bb)](O)),S(0x4,o[_0x456aae(0x1b7)])],exports[_0x456aae(0x17d)]);function A(){var _0x48ce91=_0x456aae;const _0x57a964=p[_0x48ce91(0x1a8)](exports[_0x48ce91(0x1d9)]),_0x3340bc=p[_0x48ce91(0x1a8)](o[_0x48ce91(0x1e7)]),_0x231f85=p[_0x48ce91(0x1d5)](()=>_0x3340bc[_0x48ce91(0x208)](o[_0x48ce91(0x172)][_0x48ce91(0x1e3)]),void 0x0,!0x1,[]),[_0x1f07fd,_0x214fe1]=f['useState'](null),[_0x2e4946,_0xd7267e]=f[_0x48ce91(0x1a2)](h[_0x48ce91(0x17f)]),_0x46c404=f['useRef'](null);return f[_0x48ce91(0x1dd)](()=>(_0x231f85&&_0x57a964[_0x48ce91(0x189)](_0x231f85[_0x48ce91(0x229)]())[_0x48ce91(0x194)](_0x29e066=>{var _0x4cfd90=_0x48ce91;_0x214fe1(_0x29e066),_0x46c404[_0x4cfd90(0x1c8)]=_0x29e066[_0x4cfd90(0x1f9)][_0x4cfd90(0x1b4)](_0x3b91ed=>{_0xd7267e(_0x3b91ed);});}),()=>{var _0x54c415=_0x48ce91,_0x5c9f91;(_0x5c9f91=_0x46c404[_0x54c415(0x1c8)])==null||_0x5c9f91[_0x54c415(0x169)](),_0x46c404[_0x54c415(0x1c8)]=null;}),[_0x231f85,_0x57a964]),_0x1f07fd?l[_0x48ce91(0x1fb)](g['Dropdown'],{'align':'end','disabled':_0x2e4946===h[_0x48ce91(0x190)],'className':_0x48ce91(0x1f0),'overlay':l[_0x48ce91(0x1fb)](K,{'status':_0x2e4946,'coordinator':_0x1f07fd}),'children':l[_0x48ce91(0x1fb)](_0x48ce91(0x1e1),{'className':g['clsx'](_0x48ce91(0x216),{'univer-cursor-not-allowed':_0x2e4946===h[_0x48ce91(0x190)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2e4946!==h[_0x48ce91(0x190)]}),'type':'button','children':l[_0x48ce91(0x1fb)](P,{'className':_0x48ce91(0x225)})})}):null;}function K(_0x12529a){var _0x4ca709=_0x456aae;const {status:_0x4aa5f0,coordinator:_0x5d8a73}=_0x12529a;switch(_0x4aa5f0){case h['IDLE']:return l[_0x4ca709(0x1fb)](z,{'coordinator':_0x5d8a73});case h[_0x4ca709(0x197)]:return l[_0x4ca709(0x1fb)](Q,{'coordinator':_0x5d8a73});case h[_0x4ca709(0x1ba)]:return l[_0x4ca709(0x1fb)](X,{'coordinator':_0x5d8a73});case h[_0x4ca709(0x190)]:return l['jsx'](te,{});case h[_0x4ca709(0x241)]:return l[_0x4ca709(0x1fb)](ee,{'coordinator':_0x5d8a73});default:return null;}}function z(_0x1aaf6e){var _0x18e35a=_0x456aae;const {coordinator:_0x2a159b}=_0x1aaf6e;return l[_0x18e35a(0x220)](l[_0x18e35a(0x22e)],{'children':[l[_0x18e35a(0x1fb)]('div',{'className':_0x18e35a(0x1f1),'children':'Present\x20this\x20document'}),l[_0x18e35a(0x1fb)](g[_0x18e35a(0x224)],{'onClick':()=>_0x2a159b['tryStartPresenting'](),'children':_0x18e35a(0x1d6)})]});}function Q(_0x3d0a29){var _0x12b4d9=_0x456aae;const {coordinator:_0x578bdf}=_0x3d0a29;return l['jsxs'](l[_0x12b4d9(0x22e)],{'children':[l[_0x12b4d9(0x1fb)]('div',{'className':_0x12b4d9(0x1f1),'children':_0x12b4d9(0x1f2)}),l[_0x12b4d9(0x1fb)](g[_0x12b4d9(0x224)],{'onClick':()=>_0x578bdf[_0x12b4d9(0x23d)](),'children':_0x12b4d9(0x1c0)})]});}function X(_0x5086a5){var _0x132eaa=_0x456aae;const {coordinator:_0x255ab5}=_0x5086a5;return l['jsxs'](l['Fragment'],{'children':[l[_0x132eaa(0x1fb)](_0x132eaa(0x20a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x132eaa(0x1a4)}),l[_0x132eaa(0x1fb)](g[_0x132eaa(0x224)],{'variant':_0x132eaa(0x1bf),'onClick':()=>_0x255ab5[_0x132eaa(0x22a)](),'children':_0x132eaa(0x1e4)})]});}function ee(_0x42aa9f){var _0x56495=_0x456aae;const {coordinator:_0x547c71}=_0x42aa9f;return l[_0x56495(0x220)](l['Fragment'],{'children':[l[_0x56495(0x1fb)](_0x56495(0x20a),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x56495(0x1f8)}),l['jsx'](g[_0x56495(0x224)],{'variant':_0x56495(0x162),'onClick':()=>_0x547c71[_0x56495(0x22b)](),'children':'Stop\x20presenting'})]});}function te(){var _0x195cea=_0x456aae;return l['jsx'](l[_0x195cea(0x22e)],{'children':_0x195cea(0x1f4)});}function _0x4f8f(_0x2c43e1,_0x2157d2){var _0x3560df=_0x3560();return _0x4f8f=function(_0x4f8fb1,_0x3339f6){_0x4f8fb1=_0x4f8fb1-0x161;var _0xdd0a49=_0x3560df[_0x4f8fb1];return _0xdd0a49;},_0x4f8f(_0x2c43e1,_0x2157d2);}var ie=Object[_0x456aae(0x23a)],ne=(_0x4ee5be,_0x22f02b,_0xf7552a,_0xdf948c)=>{for(var _0x451dc6=_0xdf948c>0x1?void 0x0:_0xdf948c?ie(_0x22f02b,_0xf7552a):_0x22f02b,_0x53bb39=_0x4ee5be['length']-0x1,_0x763771;_0x53bb39>=0x0;_0x53bb39--)(_0x763771=_0x4ee5be[_0x53bb39])&&(_0x451dc6=_0x763771(_0x451dc6)||_0x451dc6);return _0x451dc6;},L=(_0x539cd4,_0x24be49)=>(_0x1f09f9,_0x1b0f0a)=>_0x24be49(_0x1f09f9,_0x1b0f0a,_0x539cd4);exports['DesktopLiveShareController']=class extends o[_0x456aae(0x1b1)]{constructor(_0x55c44f,_0x255cba){var _0x4f7623=_0x456aae;super(),this['_injector']=_0x55c44f,this['_uiPartsService']=_0x255cba,this[_0x4f7623(0x1ed)]();}['_mountLiveShare'](){var _0x298c0e=_0x456aae;this['disposeWithMe'](this[_0x298c0e(0x223)]['registerComponent'](p[_0x298c0e(0x182)]['HEADER_MENU'],()=>p['connectInjector'](A,this[_0x298c0e(0x23f)])));}},exports[_0x456aae(0x202)]=ne([L(0x0,o[_0x456aae(0x1bb)](o[_0x456aae(0x1a5)])),L(0x1,p['IUIPartsService'])],exports['DesktopLiveShareController']);var re=Object[_0x456aae(0x1e6)],se=Object[_0x456aae(0x23a)],oe=(_0x2c8809,_0x5f49ed,_0xa897da)=>_0x5f49ed in _0x2c8809?re(_0x2c8809,_0x5f49ed,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa897da}):_0x2c8809[_0x5f49ed]=_0xa897da,ae=(_0xd81f54,_0x28e656,_0x32884d,_0xe3b777)=>{for(var _0x2ba97c=_0xe3b777>0x1?void 0x0:_0xe3b777?se(_0x28e656,_0x32884d):_0x28e656,_0x13604e=_0xd81f54['length']-0x1,_0x1b253b;_0x13604e>=0x0;_0x13604e--)(_0x1b253b=_0xd81f54[_0x13604e])&&(_0x2ba97c=_0x1b253b(_0x2ba97c)||_0x2ba97c);return _0x2ba97c;},N=(_0x4d5ae4,_0x2cbea1)=>(_0x5bf5b7,_0x2dd47a)=>_0x2cbea1(_0x5bf5b7,_0x2dd47a,_0x4d5ae4),T=(_0x99b36,_0x3cb124,_0x3831ba)=>oe(_0x99b36,typeof _0x3cb124!=_0x456aae(0x215)?_0x3cb124+'':_0x3cb124,_0x3831ba);const le=_0x456aae(0x179);exports[_0x456aae(0x21e)]=class extends o['Plugin']{constructor(_0x2c9f9a=x,_0x4d5aa2,_0x1a52e0){var _0x1e4630=_0x456aae;super(),this[_0x1e4630(0x17c)]=_0x2c9f9a,this[_0x1e4630(0x23f)]=_0x4d5aa2,this[_0x1e4630(0x16f)]=_0x1a52e0;const {..._0x258d8f}=o[_0x1e4630(0x230)]({},x,this[_0x1e4630(0x17c)]);this[_0x1e4630(0x16f)]['setConfig']($,_0x258d8f);}[_0x456aae(0x1df)](){var _0x4aa258=_0x456aae;o['registerDependencies'](this[_0x4aa258(0x23f)],o[_0x4aa258(0x1ae)]([[O],[exports[_0x4aa258(0x1d9)]],[E],[exports[_0x4aa258(0x202)]]],this[_0x4aa258(0x17c)][_0x4aa258(0x214)])),o[_0x4aa258(0x1bc)](this['_injector'],[[E]]);}['onRendered'](){var _0x3c3f16=_0x456aae;o[_0x3c3f16(0x1bc)](this[_0x3c3f16(0x23f)],[[exports[_0x3c3f16(0x202)]]]);}},T(exports[_0x456aae(0x21e)],_0x456aae(0x1e8),o[_0x456aae(0x172)]['UNIVER_UNKNOWN']),T(exports[_0x456aae(0x21e)],'pluginName',le),exports[_0x456aae(0x21e)]=ae([o[_0x456aae(0x1bd)](m[_0x456aae(0x1d7)]),N(0x1,o[_0x456aae(0x1bb)](o['Injector'])),N(0x2,o[_0x456aae(0x19d)])],exports[_0x456aae(0x21e)]),exports[_0x456aae(0x226)]=A,exports[_0x456aae(0x204)]=O,exports[_0x456aae(0x21f)]=h;
1
+ 'use strict';var _0xa5e750=_0x1427;(function(_0x3a2099,_0x2c6489){var _0x294478=_0x1427,_0x39c2e0=_0x3a2099();while(!![]){try{var _0x35d392=parseInt(_0x294478(0x26f))/0x1*(-parseInt(_0x294478(0x27b))/0x2)+parseInt(_0x294478(0x25e))/0x3+parseInt(_0x294478(0x283))/0x4+parseInt(_0x294478(0x1c6))/0x5+parseInt(_0x294478(0x211))/0x6+parseInt(_0x294478(0x1e7))/0x7+parseInt(_0x294478(0x1ef))/0x8*(-parseInt(_0x294478(0x20b))/0x9);if(_0x35d392===_0x2c6489)break;else _0x39c2e0['push'](_0x39c2e0['shift']());}catch(_0x4c63bc){_0x39c2e0['push'](_0x39c2e0['shift']());}}}(_0x579a,0xa4928));var U=Object[_0xa5e750(0x207)],F=(_0x27f860,_0x3546ac,_0x4932d9)=>_0x3546ac in _0x27f860?U(_0x27f860,_0x3546ac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4932d9}):_0x27f860[_0x3546ac]=_0x4932d9,v=(_0x2ff16e,_0x467970,_0x171c56)=>F(_0x2ff16e,typeof _0x467970!=_0xa5e750(0x268)?_0x467970+'':_0x467970,_0x171c56);Object[_0xa5e750(0x207)](exports,Symbol[_0xa5e750(0x286)],{'value':_0xa5e750(0x28c)});const m=require('@univerjs-pro/collaboration-client'),o=require(_0xa5e750(0x20e)),C=require(_0xa5e750(0x236)),w=require(_0xa5e750(0x225)),p=require(_0xa5e750(0x288)),l=require('react/jsx-runtime'),g=require(_0xa5e750(0x1bd)),f=require('react'),_=require(_0xa5e750(0x25b)),D=require(_0xa5e750(0x22b)),b=require(_0xa5e750(0x209)),$=_0xa5e750(0x1fe),x={};class O extends o[_0xa5e750(0x210)]{constructor(){var _0x305b91=_0xa5e750;super(...arguments),v(this,_0x305b91(0x296),new Set()),v(this,_0x305b91(0x1be),new Set());}[_0xa5e750(0x22f)](_0x38c510){var _0x9fa6c1=_0xa5e750;return this[_0x9fa6c1(0x296)]['add'](_0x38c510),o[_0x9fa6c1(0x1d9)](()=>this[_0x9fa6c1(0x296)][_0x9fa6c1(0x237)](_0x38c510));}[_0xa5e750(0x291)](_0x29db58){var _0x4164d6=_0xa5e750;return this[_0x4164d6(0x1be)][_0x4164d6(0x1c4)](_0x29db58),o[_0x4164d6(0x1d9)](()=>this[_0x4164d6(0x1be)]['delete'](_0x29db58));}[_0xa5e750(0x257)](_0x198211){var _0x18d8be=_0xa5e750;return this[_0x18d8be(0x296)][_0x18d8be(0x1bc)](_0x198211);}[_0xa5e750(0x1e2)](_0x44de0b){var _0x1077e0=_0xa5e750;return Array['from'](this[_0x1077e0(0x1be)])[_0x1077e0(0x1ee)](_0x3eaf52=>_0x3eaf52(_0x44de0b));}}var H=Object[_0xa5e750(0x1d4)],V=(_0x3df9f9,_0x10e0a1,_0xeec80,_0x4ca410)=>{var _0x7b5a1a=_0xa5e750;for(var _0x264fc3=_0x4ca410>0x1?void 0x0:_0x4ca410?H(_0x10e0a1,_0xeec80):_0x10e0a1,_0x57df8c=_0x3df9f9[_0x7b5a1a(0x25a)]-0x1,_0x352e94;_0x57df8c>=0x0;_0x57df8c--)(_0x352e94=_0x3df9f9[_0x57df8c])&&(_0x264fc3=_0x352e94(_0x264fc3)||_0x264fc3);return _0x264fc3;},k=(_0x4de807,_0x1c6048)=>(_0x5ce981,_0x5240be)=>_0x1c6048(_0x5ce981,_0x5240be,_0x4de807);let E=class extends o[_0xa5e750(0x210)]{constructor(_0x114034){var _0x5ecb7b=_0xa5e750;super(),this[_0x5ecb7b(0x28b)]=_0x114034,this[_0x5ecb7b(0x1d2)]();}[_0xa5e750(0x1d2)](){var _0x2841c8=_0xa5e750;[w['SetZoomRatioOperation']['id'],w['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']][_0x2841c8(0x220)](_0xe92224=>{var _0x3e37c0=_0x2841c8;this[_0x3e37c0(0x27a)](this[_0x3e37c0(0x28b)][_0x3e37c0(0x22f)](_0xe92224));});}};E=V([k(0x0,o['Inject'](O))],E);var u=function(){var _0x392da8=_0xa5e750;return u=Object[_0x392da8(0x27c)]||function(_0x463b93){var _0x5050d2=_0x392da8;for(var _0x250626,_0x42c21f=0x1,_0x40f65a=arguments['length'];_0x42c21f<_0x40f65a;_0x42c21f++){_0x250626=arguments[_0x42c21f];for(var _0x16fcc3 in _0x250626)Object[_0x5050d2(0x1c0)]['hasOwnProperty'][_0x5050d2(0x267)](_0x250626,_0x16fcc3)&&(_0x463b93[_0x16fcc3]=_0x250626[_0x16fcc3]);}return _0x463b93;},u[_0x392da8(0x269)](this,arguments);},M=function(_0x326e60,_0x796c96){var _0x5283e5=_0xa5e750,_0x30bae3={};for(var _0x4e1416 in _0x326e60)Object[_0x5283e5(0x1c0)][_0x5283e5(0x277)][_0x5283e5(0x267)](_0x326e60,_0x4e1416)&&_0x796c96[_0x5283e5(0x20a)](_0x4e1416)<0x0&&(_0x30bae3[_0x4e1416]=_0x326e60[_0x4e1416]);if(_0x326e60!=null&&typeof Object[_0x5283e5(0x270)]=='function'){for(var _0x261e39=0x0,_0x4e1416=Object[_0x5283e5(0x270)](_0x326e60);_0x261e39<_0x4e1416[_0x5283e5(0x25a)];_0x261e39++)_0x796c96[_0x5283e5(0x20a)](_0x4e1416[_0x261e39])<0x0&&Object[_0x5283e5(0x1c0)][_0x5283e5(0x216)][_0x5283e5(0x267)](_0x326e60,_0x4e1416[_0x261e39])&&(_0x30bae3[_0x4e1416[_0x261e39]]=_0x326e60[_0x4e1416[_0x261e39]]);}return _0x30bae3;},j=f['forwardRef'](function(_0x1dae0e,_0x2e0ca8){var _0x2ebfa6=_0xa5e750,_0x193ade=_0x1dae0e['icon'],_0x5d24ff=_0x1dae0e['id'],_0x5494dc=_0x1dae0e[_0x2ebfa6(0x1c2)],_0x5643de=_0x1dae0e[_0x2ebfa6(0x1c9)],_0x471693=M(_0x1dae0e,[_0x2ebfa6(0x217),'id',_0x2ebfa6(0x1c2),_0x2ebfa6(0x1c9)]),_0x49df46=_0x2ebfa6(0x202)[_0x2ebfa6(0x272)](_0x5d24ff,'\x20')[_0x2ebfa6(0x272)](_0x5494dc||'')['trim'](),_0xd8bbc9=f[_0x2ebfa6(0x1ca)]('_'[_0x2ebfa6(0x272)](G()));return y(_0x193ade,''['concat'](_0x5d24ff),{'defIds':_0x193ade[_0x2ebfa6(0x1ba)],'idSuffix':_0xd8bbc9[_0x2ebfa6(0x1c8)]},u({'ref':_0x2e0ca8,'className':_0x49df46},_0x471693),_0x5643de);});function _0x1427(_0x59f758,_0x4c83bd){var _0x579afb=_0x579a();return _0x1427=function(_0x142746,_0x584457){_0x142746=_0x142746-0x1b3;var _0x5c5c8c=_0x579afb[_0x142746];return _0x5c5c8c;},_0x1427(_0x59f758,_0x4c83bd);}function y(_0x13e881,_0x3f5035,_0x3d4ae3,_0x24f533,_0x43dd40){var _0xaf73a2=_0xa5e750;return f[_0xaf73a2(0x27e)](_0x13e881[_0xaf73a2(0x21f)],u(u({'key':_0x3f5035},q(_0x13e881,_0x3d4ae3,_0x43dd40)),_0x24f533),(W(_0x13e881,_0x3d4ae3)[_0xaf73a2(0x242)]||[])[_0xaf73a2(0x1ee)](function(_0x961280,_0x39c234){var _0x4ac999=_0xaf73a2;return y(_0x961280,''['concat'](_0x3f5035,'-')[_0x4ac999(0x272)](_0x13e881[_0x4ac999(0x21f)],'-')[_0x4ac999(0x272)](_0x39c234),_0x3d4ae3,void 0x0,_0x43dd40);}));}function q(_0x4ed046,_0x395c8b,_0x10bcd6){var _0x3e4715=_0xa5e750,_0x57ae5f=u({},_0x4ed046['attrs']);_0x10bcd6!=null&&_0x10bcd6[_0x3e4715(0x1cb)]&&_0x57ae5f[_0x3e4715(0x230)]===_0x3e4715(0x1cb)&&(_0x57ae5f['fill']=_0x10bcd6[_0x3e4715(0x1cb)]),_0x4ed046['tag']===_0x3e4715(0x1df)&&_0x57ae5f['id']&&(_0x57ae5f['id']=_0x57ae5f['id']+_0x395c8b[_0x3e4715(0x243)]),Object[_0x3e4715(0x1ed)](_0x57ae5f)['forEach'](function(_0x1f2ed7){var _0x3f9f89=_0x3e4715,_0x841cd9=_0x1f2ed7[0x0],_0x4da890=_0x1f2ed7[0x1];_0x841cd9===_0x3f9f89(0x1df)&&typeof _0x4da890=='string'&&(_0x57ae5f[_0x841cd9]=_0x4da890[_0x3f9f89(0x219)](/url\(#(.*)\)/,_0x3f9f89(0x256)[_0x3f9f89(0x272)](_0x395c8b[_0x3f9f89(0x243)],')')));});var _0x4732ee=_0x395c8b[_0x3e4715(0x1ba)];return!_0x4732ee||_0x4732ee[_0x3e4715(0x25a)]===0x0||(_0x4ed046[_0x3e4715(0x21f)]===_0x3e4715(0x214)&&_0x57ae5f[_0x3e4715(0x23c)]&&(_0x57ae5f[_0x3e4715(0x23c)]=_0x57ae5f[_0x3e4715(0x23c)]+_0x395c8b[_0x3e4715(0x243)]),Object['entries'](_0x57ae5f)['forEach'](function(_0x50b6c8){var _0x583ccc=_0x3e4715,_0x5beea8=_0x50b6c8[0x0],_0x5b2706=_0x50b6c8[0x1];typeof _0x5b2706=='string'&&(_0x57ae5f[_0x5beea8]=_0x5b2706[_0x583ccc(0x219)](/url\(#(.*)\)/,_0x583ccc(0x256)[_0x583ccc(0x272)](_0x395c8b['idSuffix'],')')));})),_0x57ae5f;}function W(_0x4da65f,_0x11207e){var _0x294823=_0xa5e750,_0x2c6192,_0x597e78=_0x11207e[_0x294823(0x1ba)];return!_0x597e78||_0x597e78[_0x294823(0x25a)]===0x0?_0x4da65f:_0x4da65f[_0x294823(0x21f)]===_0x294823(0x21b)&&(!((_0x2c6192=_0x4da65f['children'])===null||_0x2c6192===void 0x0)&&_0x2c6192[_0x294823(0x25a)])?u(u({},_0x4da65f),{'children':_0x4da65f[_0x294823(0x242)][_0x294823(0x1ee)](function(_0x508270){var _0x13a789=_0x294823;return typeof _0x508270[_0x13a789(0x1c1)]['id']==_0x13a789(0x1dd)&&_0x597e78&&_0x597e78[_0x13a789(0x28e)](_0x508270[_0x13a789(0x1c1)]['id'])?u(u({},_0x508270),{'attrs':u(u({},_0x508270['attrs']),{'id':_0x508270[_0x13a789(0x1c1)]['id']+_0x11207e[_0x13a789(0x243)]})}):_0x508270;})}):_0x4da65f;}function G(){var _0x2faa19=_0xa5e750;return Math[_0x2faa19(0x294)]()[_0x2faa19(0x1e5)](0x24)['substring'](0x2,0x8);}j[_0xa5e750(0x224)]=_0xa5e750(0x24f);var B={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xa5e750(0x1e8),'viewBox':_0xa5e750(0x208),'width':_0xa5e750(0x201),'height':_0xa5e750(0x201)},'children':[{'tag':_0xa5e750(0x1cc),'attrs':{'fill':_0xa5e750(0x246),'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':_0xa5e750(0x1cc),'attrs':{'fill':_0xa5e750(0x246),'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':_0xa5e750(0x22a),'clipRule':_0xa5e750(0x22a)}}]},P=f[_0xa5e750(0x23d)](function(_0x3b2684,_0x242a01){var _0x59e391=_0xa5e750;return f['createElement'](j,Object[_0x59e391(0x27c)]({},_0x3b2684,{'id':_0x59e391(0x1ea),'ref':_0x242a01,'icon':B}));});P[_0xa5e750(0x224)]='LiveShareIcon';var Y=Object['getOwnPropertyDescriptor'],R=(_0x4f0f08,_0xb9017a,_0x165826,_0x45149a)=>{var _0x2cb5e7=_0xa5e750;for(var _0x24c8e9=_0x45149a>0x1?void 0x0:_0x45149a?Y(_0xb9017a,_0x165826):_0xb9017a,_0xe4ed03=_0x4f0f08[_0x2cb5e7(0x25a)]-0x1,_0x32271f;_0xe4ed03>=0x0;_0xe4ed03--)(_0x32271f=_0x4f0f08[_0xe4ed03])&&(_0x24c8e9=_0x32271f(_0x24c8e9)||_0x24c8e9);return _0x24c8e9;},S=(_0x4b2726,_0x361251)=>(_0x50c3d8,_0x2e8ea9)=>_0x361251(_0x50c3d8,_0x2e8ea9,_0x4b2726);exports[_0xa5e750(0x1de)]=class extends o['RxDisposable']{constructor(_0x52a189,_0x1f148f,_0x1ab9eb){var _0x54e3a1=_0xa5e750;super(),v(this,_0x54e3a1(0x278),new Map()),(this[_0x54e3a1(0x27d)]=_0x52a189,this[_0x54e3a1(0x222)]=_0x1f148f,this[_0x54e3a1(0x22e)]=_0x1ab9eb,this[_0x54e3a1(0x1d2)]());}async[_0xa5e750(0x1c3)](_0x3611ce){var _0xfab578=_0xa5e750;return this[_0xfab578(0x278)][_0xfab578(0x1bc)](_0x3611ce)||await this[_0xfab578(0x20d)](_0x3611ce),this[_0xfab578(0x278)]['get'](_0x3611ce);}[_0xa5e750(0x1d2)](){var _0x5c46f4=_0xa5e750;this[_0x5c46f4(0x27d)][_0x5c46f4(0x1da)](o[_0x5c46f4(0x1dc)][_0x5c46f4(0x1f2)])[_0x5c46f4(0x1f0)](b[_0x5c46f4(0x23f)](this[_0x5c46f4(0x265)]))[_0x5c46f4(0x258)](async _0x1b9000=>{var _0x609f40=_0x5c46f4;const _0x3a8d6d=_0x1b9000[_0x609f40(0x280)]();this[_0x609f40(0x278)][_0x609f40(0x1bc)](_0x3a8d6d)||this[_0x609f40(0x20d)](_0x3a8d6d);}),this['_univerInstanceService'][_0x5c46f4(0x295)](o['UniverInstanceType'][_0x5c46f4(0x1f2)])[_0x5c46f4(0x1f0)](b[_0x5c46f4(0x23f)](this[_0x5c46f4(0x265)]))[_0x5c46f4(0x258)](_0x2d8077=>{var _0x3c3c63=_0x5c46f4;const _0x438436=_0x2d8077['getUnitId'](),_0x48c5c2=this[_0x3c3c63(0x278)]['get'](_0x438436);_0x48c5c2==null||_0x48c5c2[_0x3c3c63(0x249)]();});}async[_0xa5e750(0x20d)](_0x75a2b3){var _0x3c3e52=_0xa5e750;const _0x5c2ba4=await this['_collabSessionService'][_0x3c3e52(0x1fa)](_0x75a2b3),_0x21a67b=this['_injector'][_0x3c3e52(0x1b3)](exports['LiveShareCoordinator'],_0x75a2b3,_0x5c2ba4);return _0x21a67b[_0x3c3e52(0x232)](),this[_0x3c3e52(0x278)][_0x3c3e52(0x21d)](_0x75a2b3,_0x21a67b),_0x21a67b;}},exports[_0xa5e750(0x1de)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0xa5e750(0x287)](o['Injector'])),S(0x2,o['Inject'](m[_0xa5e750(0x290)]))],exports[_0xa5e750(0x1de)]);var h=(_0x4911f0=>(_0x4911f0[_0xa5e750(0x285)]=_0xa5e750(0x234),_0x4911f0[_0xa5e750(0x25c)]='idle',_0x4911f0[_0xa5e750(0x241)]=_0xa5e750(0x1e0),_0x4911f0[_0xa5e750(0x1e9)]=_0xa5e750(0x26a),_0x4911f0[_0xa5e750(0x292)]=_0xa5e750(0x248),_0x4911f0))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports['LiveShareCoordinator']=class extends o[_0xa5e750(0x21e)]{constructor(_0x309313,_0x1ab477,_0x4d8b56,_0x1186fe,_0x96045){var _0x499508=_0xa5e750;super(),v(this,_0x499508(0x1b7),new D[(_0x499508(0x20c))](_0x499508(0x23a))),v(this,'status$',this[_0x499508(0x1b7)]['asObservable']()),v(this,_0x499508(0x1d2),!0x1),v(this,_0x499508(0x1f3),null),v(this,_0x499508(0x1b9),null),(this['_unitID']=_0x309313,this['_collabSession']=_0x1ab477,this[_0x499508(0x279)]=_0x4d8b56,this[_0x499508(0x28b)]=_0x1186fe,this[_0x499508(0x215)]=_0x96045);}get['_status'](){var _0x3dd341=_0xa5e750;return this[_0x3dd341(0x1b7)][_0x3dd341(0x261)]();}[_0xa5e750(0x249)](){var _0x50acf3=_0xa5e750,_0x46bca0;(_0x46bca0=this[_0x50acf3(0x1f3)])==null||_0x46bca0[_0x50acf3(0x249)](),this[_0x50acf3(0x1b7)][_0x50acf3(0x204)](_0x50acf3(0x23a)),this[_0x50acf3(0x1b7)]['complete']();}[_0xa5e750(0x232)](){var _0x51c548=_0xa5e750;this['_init']||(this[_0x51c548(0x1d2)]=!0x0,this[_0x51c548(0x221)][_0x51c548(0x24d)][_0x51c548(0x1f0)](b[_0x51c548(0x23f)](this['dispose$']))[_0x51c548(0x258)](_0x412b58=>{var _0x2a55b4=_0x51c548;switch(_0x412b58){case m['SessionStatus'][_0x2a55b4(0x285)]:this['_handleOffline']();break;case m[_0x2a55b4(0x1cd)][_0x2a55b4(0x1f4)]:this[_0x2a55b4(0x1ff)]();break;}}),this[_0x51c548(0x221)][_0x51c548(0x22d)][_0x51c548(0x1f0)](b[_0x51c548(0x23f)](this[_0x51c548(0x265)]))[_0x51c548(0x258)](_0x14d02a=>{var _0x48b152=_0x51c548;const {eventID:_0x20187f}=_0x14d02a;switch(_0x20187f){case _[_0x48b152(0x1f6)]['LIVESHARE_NEW_HOST']:this[_0x48b152(0x1d8)](_0x14d02a);break;case _[_0x48b152(0x1f6)][_0x48b152(0x1fb)]:this[_0x48b152(0x250)](_0x14d02a);break;case _[_0x48b152(0x1f6)]['LIVESHARE_TERMINATE']:this[_0x48b152(0x205)]();break;case _['CollaborationEvent'][_0x48b152(0x284)]:this[_0x48b152(0x223)](_0x14d02a);break;}}));}[_0xa5e750(0x238)](){var _0x6b93fa=_0xa5e750;this[_0x6b93fa(0x221)]['send']({'eventID':_[_0x6b93fa(0x1f6)][_0x6b93fa(0x263)],'data':{'unitID':this[_0x6b93fa(0x27f)],'userID':this[_0x6b93fa(0x221)][_0x6b93fa(0x273)]()}},this[_0x6b93fa(0x27f)]);}[_0xa5e750(0x1eb)](){var _0x5d0938=_0xa5e750;this[_0x5d0938(0x1d5)]===_0x5d0938(0x248)&&(this[_0x5d0938(0x1b7)][_0x5d0938(0x204)](_0x5d0938(0x23a)),this[_0x5d0938(0x221)][_0x5d0938(0x1e6)]({'eventID':_[_0x5d0938(0x1f6)][_0x5d0938(0x260)],'data':{'unitID':this[_0x5d0938(0x27f)]}},this[_0x5d0938(0x27f)]));}['startFollowing'](){var _0xc77e24=_0xa5e750;this[_0xc77e24(0x1d5)]===_0xc77e24(0x26a)&&(this[_0xc77e24(0x1b7)]['next']('following'),this[_0xc77e24(0x226)]());}[_0xa5e750(0x28f)](){var _0x3434cd=_0xa5e750;this[_0x3434cd(0x1d5)]===_0x3434cd(0x1e0)&&this[_0x3434cd(0x275)]();}[_0xa5e750(0x1d8)](_0x1bb734){var _0x858164=_0xa5e750;const {presenter:_0x3ab232}=_0x1bb734[_0x858164(0x1d1)],_0x594941=this[_0x858164(0x221)][_0x858164(0x273)]();this['_presenter']=_0x3ab232,_0x3ab232===_0x594941?(this[_0x858164(0x275)](),this[_0x858164(0x23b)]()):this[_0x858164(0x1d5)]!==_0x858164(0x26a)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0xa5e750(0x1f9)](){var _0x3c5fab=_0xa5e750;const _0x3eddbb={'eventID':_[_0x3c5fab(0x1f6)][_0x3c5fab(0x1ce)]};this['_collabSession'][_0x3c5fab(0x1e6)](_0x3eddbb,this[_0x3c5fab(0x27f)]);}[_0xa5e750(0x205)](){var _0x2da9b2=_0xa5e750;this[_0x2da9b2(0x1b9)]=null,this[_0x2da9b2(0x1d5)]!==_0x2da9b2(0x248)&&this['_beIdle']();}[_0xa5e750(0x223)](_0x5b1b8e){var _0x1a2223=_0xa5e750;if(this[_0x1a2223(0x1d5)]===_0x1a2223(0x1e0)&&this[_0x1a2223(0x1b9)]===_0x5b1b8e[_0x1a2223(0x1d1)][_0x1a2223(0x228)]){const _0x8621=_[_0x1a2223(0x1f8)](_0x5b1b8e[_0x1a2223(0x1d1)])['mutations'][_0x1a2223(0x200)]()[_0x1a2223(0x1e3)](_0x5a731a=>_0x5a731a['id']===C['InsertSheetMutation']['id']);if(_0x8621){const _0x56bafc=_0x8621[_0x1a2223(0x266)][_0x1a2223(0x26d)],_0x24b29f=_0x8621[_0x1a2223(0x266)][_0x1a2223(0x1f1)]['id'];setTimeout(()=>{var _0xf67a06=_0x1a2223;this[_0xf67a06(0x215)]['executeCommand'](C[_0xf67a06(0x1c5)]['id'],{'unitId':_0x56bafc,'subUnitId':_0x24b29f},{'fromCollab':!0x0});});}}}[_0xa5e750(0x23b)](){var _0x783db8=_0xa5e750;this[_0x783db8(0x1b7)]['next'](_0x783db8(0x248));const _0x31f12c=new Map(),_0x5b09b5=this[_0x783db8(0x1f3)]=new o[(_0x783db8(0x21c))]();_0x5b09b5['add'](o[_0x783db8(0x1d9)](()=>{var _0x3744e2=_0x783db8;_0x31f12c[_0x3744e2(0x220)](_0x4183ad=>_0x4183ad['complete']()),_0x31f12c[_0x3744e2(0x24b)]();})),_0x5b09b5[_0x783db8(0x1c4)](this['_commandService'][_0x783db8(0x1bf)](_0x42550a=>{var _0x476038=_0x783db8,_0x40a94b;if(_0x42550a[_0x476038(0x1d6)]!==o[_0x476038(0x239)][_0x476038(0x276)]||!this[_0x476038(0x28b)][_0x476038(0x257)](_0x42550a['id']))return;const {id:_0x5c3c91}=_0x42550a;let _0x570e6a;_0x31f12c[_0x476038(0x1bc)](_0x5c3c91)?_0x570e6a=_0x31f12c[_0x476038(0x252)](_0x5c3c91):(_0x570e6a=new D[(_0x476038(0x1c7))](),_0x31f12c['set'](_0x5c3c91,_0x570e6a),_0x570e6a[_0x476038(0x1f0)](b[_0x476038(0x1d7)]((_0x40a94b=this[_0x476038(0x279)][_0x476038(0x1fd)](Z))!=null?_0x40a94b:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x476038(0x258)](_0xa49e6e=>{var _0x43bb5f=_0x476038;this['_collabSession']['send']({'eventID':_['CollaborationEvent'][_0x43bb5f(0x1fb)],'data':{'unitID':this[_0x43bb5f(0x27f)],'operations':{[_0xa49e6e['id']]:{'id':_0xa49e6e['id'],'params':JSON['stringify'](_0xa49e6e[_0x43bb5f(0x266)])}}}},this[_0x43bb5f(0x27f)]);})),_0x570e6a[_0x476038(0x204)](_0x42550a);})),this['_liveShareService'][_0x783db8(0x1e2)](this[_0x783db8(0x27f)])[_0x783db8(0x220)](_0xbc8ab4=>this[_0x783db8(0x221)][_0x783db8(0x1e6)]({'eventID':_[_0x783db8(0x1f6)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x783db8(0x27f)],'operations':{[_0xbc8ab4['id']]:{'id':_0xbc8ab4['id'],'params':JSON[_0x783db8(0x218)](_0xbc8ab4[_0x783db8(0x266)])}}}},this[_0x783db8(0x27f)]));}['_stopPresenting'](){var _0x157f73=_0xa5e750,_0x253ad2;this[_0x157f73(0x1b7)][_0x157f73(0x204)](_0x157f73(0x23a)),(_0x253ad2=this[_0x157f73(0x1f3)])==null||_0x253ad2[_0x157f73(0x249)](),this[_0x157f73(0x1f3)]=null;}[_0xa5e750(0x226)](){var _0x530f57=_0xa5e750,_0x1e723b;(_0x1e723b=this[_0x530f57(0x1f3)])==null||_0x1e723b[_0x530f57(0x249)](),this['_status$'][_0x530f57(0x204)](_0x530f57(0x1e0));}['_beIdle'](){var _0xab2e57=_0xa5e750,_0x2a4539;this[_0xab2e57(0x1b7)][_0xab2e57(0x204)](_0xab2e57(0x23a)),(_0x2a4539=this[_0xab2e57(0x1f3)])==null||_0x2a4539[_0xab2e57(0x249)](),this[_0xab2e57(0x1f3)]=null;}[_0xa5e750(0x275)](){var _0x623924=_0xa5e750,_0x5003a5;this['_status$'][_0x623924(0x204)](_0x623924(0x26a)),(_0x5003a5=this[_0x623924(0x1f3)])==null||_0x5003a5[_0x623924(0x249)]();}['_handleOperation'](_0x3dcd52){var _0x474f2b=_0xa5e750;if(['presenting',_0x474f2b(0x26a),_0x474f2b(0x234)]['includes'](this['_status'])||!_0x3dcd52['data'][_0x474f2b(0x274)]||_0x3dcd52[_0x474f2b(0x1d1)]['presenter']===this[_0x474f2b(0x221)]['getMemberID']())return;this[_0x474f2b(0x1d5)]===_0x474f2b(0x23a)&&this[_0x474f2b(0x226)]();const _0x51d4d0=_0x3dcd52[_0x474f2b(0x1d1)][_0x474f2b(0x1d0)];Object[_0x474f2b(0x20f)](_0x51d4d0)['forEach'](_0x428f26=>{var _0x449ef6=_0x474f2b;this['_commandService'][_0x449ef6(0x244)](_0x428f26['id'],_0x428f26['params']?JSON[_0x449ef6(0x25d)](_0x428f26[_0x449ef6(0x266)]):null,{'fromCollab':!0x0});});}[_0xa5e750(0x21a)](){var _0x53e5ff=_0xa5e750,_0x1704bc;this['_status$'][_0x53e5ff(0x204)](_0x53e5ff(0x234)),(_0x1704bc=this[_0x53e5ff(0x1f3)])==null||_0x1704bc['dispose']();}[_0xa5e750(0x1ff)](){var _0xec006f=_0xa5e750;this[_0xec006f(0x1b7)][_0xec006f(0x204)](_0xec006f(0x23a)),this[_0xec006f(0x1f9)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0xa5e750(0x28a)]),S(0x3,o[_0xa5e750(0x287)](O)),S(0x4,o['ICommandService'])],exports[_0xa5e750(0x231)]);function A(){var _0x359688=_0xa5e750;const _0x2c96c8=p['useDependency'](exports[_0x359688(0x1de)]),_0x9a7d8b=p[_0x359688(0x281)](o['IUniverInstanceService']),_0x11f600=p['useObservable'](()=>_0x9a7d8b[_0x359688(0x264)](o[_0x359688(0x1dc)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x85b397,_0x858f62]=f[_0x359688(0x1e4)](null),[_0x17d22d,_0x3ebaba]=f[_0x359688(0x1e4)](h['IDLE']),_0x16fc6b=f['useRef'](null);return f['useEffect'](()=>(_0x11f600&&_0x2c96c8[_0x359688(0x1c3)](_0x11f600[_0x359688(0x280)]())['then'](_0x56f002=>{var _0x77d99b=_0x359688;_0x858f62(_0x56f002),_0x16fc6b['current']=_0x56f002[_0x77d99b(0x24a)][_0x77d99b(0x258)](_0x397ba1=>{_0x3ebaba(_0x397ba1);});}),()=>{var _0x4f1807=_0x359688,_0x32c1ff;(_0x32c1ff=_0x16fc6b[_0x4f1807(0x1c8)])==null||_0x32c1ff[_0x4f1807(0x229)](),_0x16fc6b[_0x4f1807(0x1c8)]=null;}),[_0x11f600,_0x2c96c8]),_0x85b397?l[_0x359688(0x1bb)](g[_0x359688(0x1b6)],{'align':'end','disabled':_0x17d22d===h[_0x359688(0x285)],'className':_0x359688(0x227),'overlay':l[_0x359688(0x1bb)](K,{'status':_0x17d22d,'coordinator':_0x85b397}),'children':l[_0x359688(0x1bb)](_0x359688(0x26e),{'className':g['clsx'](_0x359688(0x1b8),{'univer-cursor-not-allowed':_0x17d22d===h[_0x359688(0x285)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x17d22d!==h['OFFLINE']}),'type':_0x359688(0x26e),'children':l['jsx'](P,{'className':'univer-size-4'})})}):null;}function K(_0x1d2a49){var _0x38d00=_0xa5e750;const {status:_0x59c6ce,coordinator:_0x11fd8d}=_0x1d2a49;switch(_0x59c6ce){case h[_0x38d00(0x25c)]:return l['jsx'](z,{'coordinator':_0x11fd8d});case h[_0x38d00(0x241)]:return l[_0x38d00(0x1bb)](Q,{'coordinator':_0x11fd8d});case h[_0x38d00(0x1e9)]:return l[_0x38d00(0x1bb)](X,{'coordinator':_0x11fd8d});case h[_0x38d00(0x285)]:return l[_0x38d00(0x1bb)](te,{});case h[_0x38d00(0x292)]:return l[_0x38d00(0x1bb)](ee,{'coordinator':_0x11fd8d});default:return null;}}function z(_0x3273e6){var _0x25b1a1=_0xa5e750;const {coordinator:_0x1d6b4c}=_0x3273e6;return l['jsxs'](l[_0x25b1a1(0x1b5)],{'children':[l[_0x25b1a1(0x1bb)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),l[_0x25b1a1(0x1bb)](g[_0x25b1a1(0x28d)],{'onClick':()=>_0x1d6b4c[_0x25b1a1(0x238)](),'children':_0x25b1a1(0x206)})]});}function Q(_0x489e7b){var _0x70c163=_0xa5e750;const {coordinator:_0x52471e}=_0x489e7b;return l[_0x70c163(0x1f5)](l[_0x70c163(0x1b5)],{'children':[l[_0x70c163(0x1bb)](_0x70c163(0x26c),{'className':_0x70c163(0x1db),'children':_0x70c163(0x254)}),l[_0x70c163(0x1bb)](g['Button'],{'onClick':()=>_0x52471e[_0x70c163(0x28f)](),'children':_0x70c163(0x203)})]});}function X(_0x3b9d27){var _0x29e2f6=_0xa5e750;const {coordinator:_0x3ac489}=_0x3b9d27;return l[_0x29e2f6(0x1f5)](l[_0x29e2f6(0x1b5)],{'children':[l[_0x29e2f6(0x1bb)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x29e2f6(0x271)}),l['jsx'](g[_0x29e2f6(0x28d)],{'variant':_0x29e2f6(0x1b4),'onClick':()=>_0x3ac489['startFollowing'](),'children':_0x29e2f6(0x1cf)})]});}function ee(_0x2999aa){var _0x817c6a=_0xa5e750;const {coordinator:_0x50a5a5}=_0x2999aa;return l[_0x817c6a(0x1f5)](l[_0x817c6a(0x1b5)],{'children':[l[_0x817c6a(0x1bb)](_0x817c6a(0x26c),{'className':_0x817c6a(0x1db),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x817c6a(0x1bb)](g['Button'],{'variant':'default','onClick':()=>_0x50a5a5[_0x817c6a(0x1eb)](),'children':_0x817c6a(0x213)})]});}function te(){var _0x2b1bc3=_0xa5e750;return l[_0x2b1bc3(0x1bb)](l[_0x2b1bc3(0x1b5)],{'children':'You\x27are\x20offline.'});}var ie=Object[_0xa5e750(0x1d4)],ne=(_0x411536,_0x436db9,_0x4b9b80,_0x2dc80c)=>{for(var _0x59b0cb=_0x2dc80c>0x1?void 0x0:_0x2dc80c?ie(_0x436db9,_0x4b9b80):_0x436db9,_0x59784f=_0x411536['length']-0x1,_0x15621b;_0x59784f>=0x0;_0x59784f--)(_0x15621b=_0x411536[_0x59784f])&&(_0x59b0cb=_0x15621b(_0x59b0cb)||_0x59b0cb);return _0x59b0cb;},L=(_0x2145b5,_0x356d3d)=>(_0x41518c,_0x1e2e13)=>_0x356d3d(_0x41518c,_0x1e2e13,_0x2145b5);function _0x579a(){var _0x281783=['Disposable','1275894ZiYlvE','DesktopLiveShareController','Stop\x20presenting','use','_commandService','propertyIsEnumerable','icon','stringify','replace','_handleOffline','defs','DisposableCollection','set','RxDisposable','tag','forEach','_collabSession','_injector','_handleNewChangeSets','displayName','@univerjs/sheets-ui','_startFollowing','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','memberID','unsubscribe','evenodd','rxjs','connectInjector','event$','_collabSessionService','registerSharedOperation','fill','LiveShareCoordinator','init','UNIVER_UNKNOWN','offline','LiveShareService','@univerjs/sheets','delete','tryStartPresenting','CommandType','idle','_startPresenting','xlink:href','forwardRef','override','takeUntil','setConfig','FOLLOWING','children','idSuffix','executeCommand','IUIPartsService','currentColor','_config','presenting','dispose','status$','clear','mergeOverrideWithDependencies','sessionStatus$','LiveShare','UniverIcon','_handleOperation','LiveShareStatus','get','UNIVER_LIVE_SHARE_PLUGIN','You\x27re\x20following\x20the\x20presenter','Injector','url(#$1','shouldShareOperation','subscribe','pluginName','length','@univerjs-pro/collaboration','IDLE','parse','3660447YLPVJN','BuiltInUIPart','LIVESHARE_TERMINATE','getValue','registerComponent','LIVESHARE_REQUEST_HOST','getCurrentTypeOfUnit$','dispose$','params','call','symbol','apply','not-following','_mountLiveShare','div','unitId','button','42byGqMV','getOwnPropertySymbols','You\x27re\x20not\x20following\x20the\x20presenter','concat','getMemberID','presenter','_stopFollowing','OPERATION','hasOwnProperty','_entities','_configService','disposeWithMe','45602APwBak','assign','_univerInstanceService','createElement','_unitID','getUnitId','useDependency','_uiPartsService','4629488vwBWcH','NEW_CHANGESETS','OFFLINE','toStringTag','Inject','@univerjs/ui','onRendered','IConfigService','_liveShareService','Module','Button','includes','stopFollowing','CollaborationSessionService','registerInitialStateReporter','PRESENTING','UniverCollaborationClientPlugin','random','getTypeOfUnitDisposed$','_sharedOperations','createInstance','text','Fragment','Dropdown','_status$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_presenter','defIds','jsx','has','@univerjs/design','_reporters','onCommandExecuted','prototype','attrs','className','getLiveShareCoordinator','add','SetWorksheetActiveOperation','20080DkoWLM','Subject','current','extend','useRef','colorChannel1','path','SessionStatus','LIVESHARE_FETCH_OPERATIONS','Start\x20following','operations','data','_init','Plugin','getOwnPropertyDescriptor','_status','type','throttleTime','_handleNewHost','toDisposable','getTypeOfUnitAdded$','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverInstanceType','string','LiveShareController','mask','following','merge','getInitialStates','find','useState','toString','send','9217320EKQQZz','none','NOT_FOLLOWING','live-share-icon','stopPresenting','UniverLiveSharePlugin','entries','map','109184VxtFeR','pipe','sheet','UNIVER_SHEET','_commandDisposable','ONLINE','jsxs','CollaborationEvent','registerDependencies','parseProtocolChangeset','_fetchOperations','requireSession','LIVESHARE_OPERATION','HEADER_MENU','getConfig','live-share.config','_handleOnline','reverse','1em','univerjs-icon\x20univerjs-icon-','Stop\x20following','next','_handleTerminate','Start','defineProperty','0\x200\x2017\x2017','rxjs/operators','indexOf','1503AuyLZE','BehaviorSubject','_startLiveShareCoordinator','@univerjs/core','values'];_0x579a=function(){return _0x281783;};return _0x579a();}exports[_0xa5e750(0x212)]=class extends o[_0xa5e750(0x210)]{constructor(_0x44beab,_0x4d19a6){var _0x4cfc4e=_0xa5e750;super(),this['_injector']=_0x44beab,this[_0x4cfc4e(0x282)]=_0x4d19a6,this[_0x4cfc4e(0x26b)]();}[_0xa5e750(0x26b)](){var _0x41c1ed=_0xa5e750;this[_0x41c1ed(0x27a)](this['_uiPartsService'][_0x41c1ed(0x262)](p[_0x41c1ed(0x25f)][_0x41c1ed(0x1fc)],()=>p[_0x41c1ed(0x22c)](A,this['_injector'])));}},exports[_0xa5e750(0x212)]=ne([L(0x0,o[_0xa5e750(0x287)](o[_0xa5e750(0x255)])),L(0x1,p[_0xa5e750(0x245)])],exports['DesktopLiveShareController']);var re=Object['defineProperty'],se=Object[_0xa5e750(0x1d4)],oe=(_0x43f647,_0x36b018,_0x3ed08c)=>_0x36b018 in _0x43f647?re(_0x43f647,_0x36b018,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ed08c}):_0x43f647[_0x36b018]=_0x3ed08c,ae=(_0x3b5c0a,_0x3d745e,_0x19eb48,_0x3286a6)=>{var _0x39dd14=_0xa5e750;for(var _0x513657=_0x3286a6>0x1?void 0x0:_0x3286a6?se(_0x3d745e,_0x19eb48):_0x3d745e,_0x58a445=_0x3b5c0a[_0x39dd14(0x25a)]-0x1,_0x4b5a48;_0x58a445>=0x0;_0x58a445--)(_0x4b5a48=_0x3b5c0a[_0x58a445])&&(_0x513657=_0x4b5a48(_0x513657)||_0x513657);return _0x513657;},N=(_0x4d69e4,_0x2c05f3)=>(_0x35b23a,_0x313e03)=>_0x2c05f3(_0x35b23a,_0x313e03,_0x4d69e4),T=(_0x1fc5c5,_0x4221bc,_0x550400)=>oe(_0x1fc5c5,typeof _0x4221bc!=_0xa5e750(0x268)?_0x4221bc+'':_0x4221bc,_0x550400);const le=_0xa5e750(0x253);exports[_0xa5e750(0x1ec)]=class extends o[_0xa5e750(0x1d3)]{constructor(_0x47d776=x,_0x2400e4,_0xd785c8){var _0x2e8254=_0xa5e750;super(),this[_0x2e8254(0x247)]=_0x47d776,this[_0x2e8254(0x222)]=_0x2400e4,this[_0x2e8254(0x279)]=_0xd785c8;const {..._0x3e4488}=o[_0x2e8254(0x1e1)]({},x,this[_0x2e8254(0x247)]);this[_0x2e8254(0x279)][_0x2e8254(0x240)]($,_0x3e4488);}['onStarting'](){var _0x36e217=_0xa5e750;o[_0x36e217(0x1f7)](this[_0x36e217(0x222)],o[_0x36e217(0x24c)]([[O],[exports[_0x36e217(0x1de)]],[E],[exports[_0x36e217(0x212)]]],this['_config'][_0x36e217(0x23e)])),o['touchDependencies'](this[_0x36e217(0x222)],[[E]]);}[_0xa5e750(0x289)](){var _0x79e508=_0xa5e750;o['touchDependencies'](this[_0x79e508(0x222)],[[exports[_0x79e508(0x212)]]]);}},T(exports[_0xa5e750(0x1ec)],_0xa5e750(0x1d6),o[_0xa5e750(0x1dc)][_0xa5e750(0x233)]),T(exports[_0xa5e750(0x1ec)],_0xa5e750(0x259),le),exports['UniverLiveSharePlugin']=ae([o['DependentOn'](m[_0xa5e750(0x293)]),N(0x1,o[_0xa5e750(0x287)](o[_0xa5e750(0x255)])),N(0x2,o['IConfigService'])],exports[_0xa5e750(0x1ec)]),exports[_0xa5e750(0x24e)]=A,exports[_0xa5e750(0x235)]=O,exports[_0xa5e750(0x251)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x38fdac=_0x3225;(function(_0x43f7f1,_0x43057f){var _0x1fe147=_0x3225,_0x2423e3=_0x43f7f1();while(!![]){try{var _0x100605=-parseInt(_0x1fe147(0x1aa))/0x1*(parseInt(_0x1fe147(0x156))/0x2)+parseInt(_0x1fe147(0x16f))/0x3+-parseInt(_0x1fe147(0x177))/0x4*(-parseInt(_0x1fe147(0x13d))/0x5)+-parseInt(_0x1fe147(0x13b))/0x6+-parseInt(_0x1fe147(0x19e))/0x7+parseInt(_0x1fe147(0x17d))/0x8*(parseInt(_0x1fe147(0x19c))/0x9)+parseInt(_0x1fe147(0x141))/0xa*(parseInt(_0x1fe147(0x175))/0xb);if(_0x100605===_0x43057f)break;else _0x2423e3['push'](_0x2423e3['shift']());}catch(_0x545951){_0x2423e3['push'](_0x2423e3['shift']());}}}(_0x18d3,0x6a223));var q=Object[_0x38fdac(0x1c6)],z=(_0x1165ee,_0x95ab4d,_0x48a093)=>_0x95ab4d in _0x1165ee?q(_0x1165ee,_0x95ab4d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48a093}):_0x1165ee[_0x95ab4d]=_0x48a093,d=(_0x29bee4,_0x34da7b,_0x1f26b7)=>z(_0x29bee4,typeof _0x34da7b!=_0x38fdac(0x13f)?_0x34da7b+'':_0x34da7b,_0x1f26b7);import{CollaborationSessionService as _0x540391,SessionStatus as _0x3558bd,UniverCollaborationClientPlugin as _0xa92360}from'@univerjs-pro/collaboration-client';import{Disposable as _0x1110e6,toDisposable as _0x528b21,Inject as _0x587c17,IUniverInstanceService as _0x28959b,Injector as _0x34f5e9,IConfigService as _0x617f45,ICommandService as _0x2f2a0d,RxDisposable as _0x580711,UniverInstanceType as _0x49ab6b,DisposableCollection as _0x58390b,CommandType as _0x47d008,DependentOn as _0x2a1f58,Plugin as _0x1a2767,merge as _0x1ec0c2,registerDependencies as _0x2b36ac,mergeOverrideWithDependencies as _0x5537f3,touchDependencies as _0x328c8c}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3706e8,InsertSheetMutation as _0x5c844d}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x51f780,SetScrollOperation as _0xae1619}from'@univerjs/sheets-ui';import{useDependency as _0x15a14d,useObservable as _0x114fe7,IUIPartsService as _0x139622,BuiltInUIPart as _0x249236,connectInjector as _0x4621b9}from'@univerjs/ui';function _0x18d3(){var _0x475338=['delete','tryStartPresenting','_unitID','_reporters','IDLE','univer-mb-3\x20univer-w-full\x20univer-text-sm','reverse','181283qWmgvI','1em','sessionStatus$','getOwnPropertyDescriptor','mask','className','LIVESHARE_REQUEST_HOST','PRESENTING','You\x27are\x20offline.','call','length','url(#$1','then','UNIVER_UNKNOWN','_startFollowing','_handleOffline','_init','forEach','use','status$','next','pipe','dispose','getValue','getCurrentTypeOfUnit$','children','Present\x20this\x20document','UniverIcon','defineProperty','trim','asObservable','getMemberID','_presenter','onStarting','getTypeOfUnitDisposed$','NOT_FOLLOWING','current','LIVESHARE_OPERATION','_beIdle','defs','You\x27re\x20not\x20following\x20the\x20presenter','_handleNewHost','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','xlink:href','path','stopFollowing','icon','univerjs-icon\x20univerjs-icon-','substring','concat','attrs','LiveShareIcon','has','offline','displayName','add','_status$','getConfig','event$','propertyIsEnumerable','div','get','Stop\x20presenting','unitId','subscribe','presenting','3893310abLuYz','getLiveShareCoordinator','815hDDuPt','getUnitId','symbol','button','22710CNAKLw','live-share.config','none','_entities','not-following','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','_uiPartsService','fill','currentColor','mutations','stopPresenting','idSuffix','replace','_status','defIds','string','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','createInstance','random','registerComponent','UNIVER_SHEET','6TAWPsu','_handleTerminate','LIVESHARE_FETCH_OPERATIONS','evenodd','following','default','_configService','_liveShareService','SAME_OPERATION_SHARE_INTERVAL','extend','_injector','disposeWithMe','_sharedOperations','getInitialStates','executeCommand','_univerInstanceService','type','init','getTypeOfUnitAdded$','stringify','hasOwnProperty','prototype','includes','_handleOperation','_mountLiveShare','595704QSQgCG','OPERATION','live-share-icon','memberID','send','apply','8217tNYnhw','params','2564YphDQz','LIVESHARE_TERMINATE','OFFLINE','_config','setConfig','indexOf','16rzsfnc','map','svg','_fetchOperations','registerSharedOperation','getOwnPropertySymbols','dispose$','Start\x20following','_handleOnline','tag','NEW_CHANGESETS','_startPresenting','registerInitialStateReporter','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\x20following\x20the\x20presenter','pluginName','_stopPresenting','FOLLOWING','assign','find','_commandService','entries','presenter','values','colorChannel1','_startLiveShareCoordinator','_collabSession','_handleNewChangeSets','_collabSessionService','idle','data','1184679DMGleM','_commandDisposable','4447051aUMXmB','clear','shouldShareOperation','_stopFollowing','LIVESHARE_NEW_HOST'];_0x18d3=function(){return _0x475338;};return _0x18d3();}import{jsx as _0x470645,jsxs as _0x4d68a9,Fragment as _0x4e94f2}from'react/jsx-runtime';import{Dropdown as _0x1c048c,clsx as _0x3f870f,Button as _0xc2e2b3}from'@univerjs/design';import{forwardRef as _0x2cf43c,useRef as _0x1eea52,createElement as _0x211e6f,useState as _0x377c51,useEffect as _0x1cff21}from'react';import{CollaborationEvent as _0x56b0fd,parseProtocolChangeset as _0x41ab39}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x45c1a3,Subject as _0x296bd3}from'rxjs';import{takeUntil as _0x3ba775,throttleTime as _0x4291c}from'rxjs/operators';const Oe=_0x38fdac(0x142),T={};class L extends _0x1110e6{constructor(){var _0x10dd16=_0x38fdac;super(...arguments),d(this,_0x10dd16(0x162),new Set()),d(this,_0x10dd16(0x1a6),new Set());}[_0x38fdac(0x181)](_0x16f8a5){var _0x4421af=_0x38fdac;return this[_0x4421af(0x162)]['add'](_0x16f8a5),_0x528b21(()=>this['_sharedOperations'][_0x4421af(0x1a3)](_0x16f8a5));}[_0x38fdac(0x189)](_0x345d2d){var _0x1f71ae=_0x38fdac;return this[_0x1f71ae(0x1a6)][_0x1f71ae(0x130)](_0x345d2d),_0x528b21(()=>this['_reporters'][_0x1f71ae(0x1a3)](_0x345d2d));}[_0x38fdac(0x1a0)](_0x5468d8){return this['_sharedOperations']['has'](_0x5468d8);}['getInitialStates'](_0x287868){var _0x59ab9d=_0x38fdac;return Array['from'](this[_0x59ab9d(0x1a6)])[_0x59ab9d(0x17e)](_0x52557e=>_0x52557e(_0x287868));}}var Ee=Object[_0x38fdac(0x1ad)],we=(_0x5e2f5a,_0x15565d,_0xa1e4c1,_0x1757c9)=>{for(var _0x4d67cb=_0x1757c9>0x1?void 0x0:_0x1757c9?Ee(_0x15565d,_0xa1e4c1):_0x15565d,_0x134f4d=_0x5e2f5a['length']-0x1,_0x4a0d10;_0x134f4d>=0x0;_0x134f4d--)(_0x4a0d10=_0x5e2f5a[_0x134f4d])&&(_0x4d67cb=_0x4a0d10(_0x4d67cb)||_0x4d67cb);return _0x4d67cb;},Ne=(_0x12633c,_0x1548e1)=>(_0x10e543,_0x5a88d7)=>_0x1548e1(_0x10e543,_0x5a88d7,_0x12633c);let m=class extends _0x1110e6{constructor(_0x4a0afd){var _0x5e71a5=_0x38fdac;super(),this['_liveShareService']=_0x4a0afd,this[_0x5e71a5(0x1ba)]();}['_init'](){[_0x51f780['id'],_0xae1619['id'],_0x3706e8['id']]['forEach'](_0x1da73d=>{var _0x3933a6=_0x3225;this['disposeWithMe'](this['_liveShareService'][_0x3933a6(0x181)](_0x1da73d));});}};m=we([Ne(0x0,_0x587c17(L))],m);var c=function(){var _0x553297=_0x38fdac;return c=Object[_0x553297(0x18f)]||function(_0x42c90f){var _0x3a4a51=_0x553297;for(var _0x212e5f,_0x2e3db0=0x1,_0x4ccdef=arguments[_0x3a4a51(0x1b4)];_0x2e3db0<_0x4ccdef;_0x2e3db0++){_0x212e5f=arguments[_0x2e3db0];for(var _0x5104e9 in _0x212e5f)Object[_0x3a4a51(0x16b)][_0x3a4a51(0x16a)]['call'](_0x212e5f,_0x5104e9)&&(_0x42c90f[_0x5104e9]=_0x212e5f[_0x5104e9]);}return _0x42c90f;},c[_0x553297(0x174)](this,arguments);},Ce=function(_0x473005,_0xc29f35){var _0x30d64b=_0x38fdac,_0xdb17c0={};for(var _0x4554b9 in _0x473005)Object[_0x30d64b(0x16b)][_0x30d64b(0x16a)][_0x30d64b(0x1b3)](_0x473005,_0x4554b9)&&_0xc29f35['indexOf'](_0x4554b9)<0x0&&(_0xdb17c0[_0x4554b9]=_0x473005[_0x4554b9]);if(_0x473005!=null&&typeof Object[_0x30d64b(0x182)]=='function'){for(var _0x34967e=0x0,_0x4554b9=Object[_0x30d64b(0x182)](_0x473005);_0x34967e<_0x4554b9['length'];_0x34967e++)_0xc29f35[_0x30d64b(0x17c)](_0x4554b9[_0x34967e])<0x0&&Object['prototype'][_0x30d64b(0x134)][_0x30d64b(0x1b3)](_0x473005,_0x4554b9[_0x34967e])&&(_0xdb17c0[_0x4554b9[_0x34967e]]=_0x473005[_0x4554b9[_0x34967e]]);}return _0xdb17c0;},W=_0x2cf43c(function(_0x42172b,_0x2119e6){var _0x3943df=_0x38fdac,_0x2e3ffa=_0x42172b[_0x3943df(0x127)],_0x5e80eb=_0x42172b['id'],_0x54962e=_0x42172b[_0x3943df(0x1af)],_0x43e4b4=_0x42172b[_0x3943df(0x15f)],_0x472971=Ce(_0x42172b,[_0x3943df(0x127),'id',_0x3943df(0x1af),_0x3943df(0x15f)]),_0x27244f=_0x3943df(0x128)[_0x3943df(0x12a)](_0x5e80eb,'\x20')['concat'](_0x54962e||'')[_0x3943df(0x1c7)](),_0x43e9f8=_0x1eea52('_'[_0x3943df(0x12a)](Le()));return Y(_0x2e3ffa,''[_0x3943df(0x12a)](_0x5e80eb),{'defIds':_0x2e3ffa[_0x3943df(0x14f)],'idSuffix':_0x43e9f8['current']},c({'ref':_0x2119e6,'className':_0x27244f},_0x472971),_0x43e4b4);});function Y(_0x34dc39,_0x197fc5,_0xc83ee6,_0x30fe45,_0x40e239){var _0x205ab9=_0x38fdac;return _0x211e6f(_0x34dc39[_0x205ab9(0x186)],c(c({'key':_0x197fc5},De(_0x34dc39,_0xc83ee6,_0x40e239)),_0x30fe45),(xe(_0x34dc39,_0xc83ee6)[_0x205ab9(0x1c3)]||[])[_0x205ab9(0x17e)](function(_0x21b483,_0x38942a){var _0x117acb=_0x205ab9;return Y(_0x21b483,''[_0x117acb(0x12a)](_0x197fc5,'-')[_0x117acb(0x12a)](_0x34dc39[_0x117acb(0x186)],'-')[_0x117acb(0x12a)](_0x38942a),_0xc83ee6,void 0x0,_0x40e239);}));}function De(_0x4ff734,_0x5189dc,_0x2163b9){var _0x7d173a=_0x38fdac,_0x2866bb=c({},_0x4ff734[_0x7d173a(0x12b)]);_0x2163b9!=null&&_0x2163b9[_0x7d173a(0x195)]&&_0x2866bb[_0x7d173a(0x148)]===_0x7d173a(0x195)&&(_0x2866bb['fill']=_0x2163b9['colorChannel1']),_0x4ff734[_0x7d173a(0x186)]==='mask'&&_0x2866bb['id']&&(_0x2866bb['id']=_0x2866bb['id']+_0x5189dc[_0x7d173a(0x14c)]),Object[_0x7d173a(0x192)](_0x2866bb)[_0x7d173a(0x1bb)](function(_0x5d6a8f){var _0x1bdb20=_0x7d173a,_0x2f63f8=_0x5d6a8f[0x0],_0x15548=_0x5d6a8f[0x1];_0x2f63f8===_0x1bdb20(0x1ae)&&typeof _0x15548==_0x1bdb20(0x150)&&(_0x2866bb[_0x2f63f8]=_0x15548[_0x1bdb20(0x14d)](/url\(#(.*)\)/,_0x1bdb20(0x1b5)['concat'](_0x5189dc['idSuffix'],')')));});var _0x21a31a=_0x5189dc[_0x7d173a(0x14f)];return!_0x21a31a||_0x21a31a[_0x7d173a(0x1b4)]===0x0||(_0x4ff734['tag']===_0x7d173a(0x1bc)&&_0x2866bb[_0x7d173a(0x124)]&&(_0x2866bb[_0x7d173a(0x124)]=_0x2866bb['xlink:href']+_0x5189dc['idSuffix']),Object[_0x7d173a(0x192)](_0x2866bb)['forEach'](function(_0x5837c7){var _0x3410ab=_0x7d173a,_0x2ed41d=_0x5837c7[0x0],_0x2cfb66=_0x5837c7[0x1];typeof _0x2cfb66=='string'&&(_0x2866bb[_0x2ed41d]=_0x2cfb66[_0x3410ab(0x14d)](/url\(#(.*)\)/,_0x3410ab(0x1b5)[_0x3410ab(0x12a)](_0x5189dc[_0x3410ab(0x14c)],')')));})),_0x2866bb;}function xe(_0x552687,_0x532a60){var _0x4f49ad=_0x38fdac,_0x305d6d,_0x33ff8a=_0x532a60['defIds'];return!_0x33ff8a||_0x33ff8a[_0x4f49ad(0x1b4)]===0x0?_0x552687:_0x552687[_0x4f49ad(0x186)]===_0x4f49ad(0x1d1)&&(!((_0x305d6d=_0x552687[_0x4f49ad(0x1c3)])===null||_0x305d6d===void 0x0)&&_0x305d6d['length'])?c(c({},_0x552687),{'children':_0x552687[_0x4f49ad(0x1c3)][_0x4f49ad(0x17e)](function(_0x4952ca){var _0x243a26=_0x4f49ad;return typeof _0x4952ca[_0x243a26(0x12b)]['id']==_0x243a26(0x150)&&_0x33ff8a&&_0x33ff8a[_0x243a26(0x16c)](_0x4952ca[_0x243a26(0x12b)]['id'])?c(c({},_0x4952ca),{'attrs':c(c({},_0x4952ca[_0x243a26(0x12b)]),{'id':_0x4952ca[_0x243a26(0x12b)]['id']+_0x532a60[_0x243a26(0x14c)]})}):_0x4952ca;})}):_0x552687;}function Le(){var _0x16d28f=_0x38fdac;return Math[_0x16d28f(0x153)]()['toString'](0x24)[_0x16d28f(0x129)](0x2,0x8);}W[_0x38fdac(0x12f)]=_0x38fdac(0x1c5);var ye={'tag':_0x38fdac(0x17f),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x38fdac(0x143),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x38fdac(0x1ab)},'children':[{'tag':'path','attrs':{'fill':_0x38fdac(0x149),'d':_0x38fdac(0x18a)}},{'tag':_0x38fdac(0x125),'attrs':{'fill':_0x38fdac(0x149),'d':_0x38fdac(0x146),'fillRule':_0x38fdac(0x159),'clipRule':_0x38fdac(0x159)}}]},B=_0x2cf43c(function(_0x20e22d,_0x598c1b){var _0x5cbe7b=_0x38fdac;return _0x211e6f(W,Object[_0x5cbe7b(0x18f)]({},_0x20e22d,{'id':_0x5cbe7b(0x171),'ref':_0x598c1b,'icon':ye}));});B[_0x38fdac(0x12f)]=_0x38fdac(0x12c);var Re=Object[_0x38fdac(0x1ad)],Z=(_0x2a70a7,_0x3ac574,_0x48825a,_0x33d9e8)=>{var _0x12fb74=_0x38fdac;for(var _0x46d193=_0x33d9e8>0x1?void 0x0:_0x33d9e8?Re(_0x3ac574,_0x48825a):_0x3ac574,_0x5a5aa8=_0x2a70a7[_0x12fb74(0x1b4)]-0x1,_0x145ff2;_0x5a5aa8>=0x0;_0x5a5aa8--)(_0x145ff2=_0x2a70a7[_0x5a5aa8])&&(_0x46d193=_0x145ff2(_0x46d193)||_0x46d193);return _0x46d193;},f=(_0x317849,_0x31a612)=>(_0x4ea18d,_0x10818a)=>_0x31a612(_0x4ea18d,_0x10818a,_0x317849);let I=class extends _0x580711{constructor(_0x1a6e40,_0x3f9350,_0x3ddd5){var _0x5013cc=_0x38fdac;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x1a6e40,this[_0x5013cc(0x160)]=_0x3f9350,this[_0x5013cc(0x199)]=_0x3ddd5,this['_init']());}async['getLiveShareCoordinator'](_0x359cf5){var _0x221e5e=_0x38fdac;return this[_0x221e5e(0x144)][_0x221e5e(0x12d)](_0x359cf5)||await this['_startLiveShareCoordinator'](_0x359cf5),this[_0x221e5e(0x144)][_0x221e5e(0x136)](_0x359cf5);}['_init'](){var _0x26c3ca=_0x38fdac;this[_0x26c3ca(0x165)][_0x26c3ca(0x168)](_0x49ab6b[_0x26c3ca(0x155)])[_0x26c3ca(0x1bf)](_0x3ba775(this[_0x26c3ca(0x183)]))[_0x26c3ca(0x139)](async _0x2b1f29=>{var _0x456d51=_0x26c3ca;const _0x5249b0=_0x2b1f29[_0x456d51(0x13e)]();this[_0x456d51(0x144)][_0x456d51(0x12d)](_0x5249b0)||this[_0x456d51(0x196)](_0x5249b0);}),this[_0x26c3ca(0x165)][_0x26c3ca(0x1cc)](_0x49ab6b[_0x26c3ca(0x155)])[_0x26c3ca(0x1bf)](_0x3ba775(this[_0x26c3ca(0x183)]))[_0x26c3ca(0x139)](_0x1cfcde=>{var _0x597213=_0x26c3ca;const _0x214cc0=_0x1cfcde[_0x597213(0x13e)](),_0x2b9993=this[_0x597213(0x144)]['get'](_0x214cc0);_0x2b9993==null||_0x2b9993[_0x597213(0x1c0)]();});}async['_startLiveShareCoordinator'](_0x31f950){var _0x502b25=_0x38fdac;const _0x587a4e=await this[_0x502b25(0x199)]['requireSession'](_0x31f950),_0x371de3=this[_0x502b25(0x160)][_0x502b25(0x152)](C,_0x31f950,_0x587a4e);return _0x371de3[_0x502b25(0x167)](),this['_entities']['set'](_0x31f950,_0x371de3),_0x371de3;}};I=Z([f(0x0,_0x28959b),f(0x1,_0x587c17(_0x34f5e9)),f(0x2,_0x587c17(_0x540391))],I);var h=(_0x422487=>(_0x422487[_0x38fdac(0x179)]=_0x38fdac(0x12e),_0x422487[_0x38fdac(0x1a7)]=_0x38fdac(0x19a),_0x422487['FOLLOWING']=_0x38fdac(0x15a),_0x422487[_0x38fdac(0x1cd)]=_0x38fdac(0x145),_0x422487[_0x38fdac(0x1b1)]='presenting',_0x422487))(h||{});const Pe=_0x38fdac(0x15e),Ae=0xc8;let C=class extends _0x580711{constructor(_0x2c5270,_0x1c0085,_0xd29d5a,_0x1b1f6d,_0x2cce58){var _0x55e3d2=_0x38fdac;super(),d(this,'_status$',new _0x45c1a3(_0x55e3d2(0x19a))),d(this,'status$',this[_0x55e3d2(0x131)][_0x55e3d2(0x1c8)]()),d(this,_0x55e3d2(0x1ba),!0x1),d(this,'_commandDisposable',null),d(this,'_presenter',null),(this[_0x55e3d2(0x1a5)]=_0x2c5270,this[_0x55e3d2(0x197)]=_0x1c0085,this[_0x55e3d2(0x15c)]=_0xd29d5a,this[_0x55e3d2(0x15d)]=_0x1b1f6d,this['_commandService']=_0x2cce58);}get[_0x38fdac(0x14e)](){var _0x506ff5=_0x38fdac;return this[_0x506ff5(0x131)][_0x506ff5(0x1c1)]();}[_0x38fdac(0x1c0)](){var _0x103fd9=_0x38fdac,_0x146b5a;(_0x146b5a=this[_0x103fd9(0x19d)])==null||_0x146b5a[_0x103fd9(0x1c0)](),this[_0x103fd9(0x131)][_0x103fd9(0x1be)]('idle'),this['_status$']['complete']();}['init'](){var _0x28d354=_0x38fdac;this[_0x28d354(0x1ba)]||(this[_0x28d354(0x1ba)]=!0x0,this[_0x28d354(0x197)][_0x28d354(0x1ac)][_0x28d354(0x1bf)](_0x3ba775(this[_0x28d354(0x183)]))[_0x28d354(0x139)](_0xa4d2a7=>{var _0x1c9081=_0x28d354;switch(_0xa4d2a7){case _0x3558bd['OFFLINE']:this[_0x1c9081(0x1b9)]();break;case _0x3558bd['ONLINE']:this[_0x1c9081(0x185)]();break;}}),this[_0x28d354(0x197)][_0x28d354(0x133)][_0x28d354(0x1bf)](_0x3ba775(this['dispose$']))['subscribe'](_0x2e9f3e=>{var _0x56f83a=_0x28d354;const {eventID:_0x2ce821}=_0x2e9f3e;switch(_0x2ce821){case _0x56b0fd[_0x56f83a(0x1a2)]:this[_0x56f83a(0x122)](_0x2e9f3e);break;case _0x56b0fd[_0x56f83a(0x1cf)]:this[_0x56f83a(0x16d)](_0x2e9f3e);break;case _0x56b0fd['LIVESHARE_TERMINATE']:this[_0x56f83a(0x157)]();break;case _0x56b0fd[_0x56f83a(0x187)]:this[_0x56f83a(0x198)](_0x2e9f3e);break;}}));}[_0x38fdac(0x1a4)](){var _0x1f3c26=_0x38fdac;this[_0x1f3c26(0x197)]['send']({'eventID':_0x56b0fd[_0x1f3c26(0x1b0)],'data':{'unitID':this[_0x1f3c26(0x1a5)],'userID':this[_0x1f3c26(0x197)]['getMemberID']()}},this[_0x1f3c26(0x1a5)]);}[_0x38fdac(0x14b)](){var _0x4e20e3=_0x38fdac;this[_0x4e20e3(0x14e)]==='presenting'&&(this['_status$'][_0x4e20e3(0x1be)](_0x4e20e3(0x19a)),this[_0x4e20e3(0x197)][_0x4e20e3(0x173)]({'eventID':_0x56b0fd[_0x4e20e3(0x178)],'data':{'unitID':this[_0x4e20e3(0x1a5)]}},this['_unitID']));}['startFollowing'](){var _0x4efd87=_0x38fdac;this[_0x4efd87(0x14e)]===_0x4efd87(0x145)&&(this[_0x4efd87(0x131)]['next'](_0x4efd87(0x15a)),this['_startFollowing']());}[_0x38fdac(0x126)](){var _0x4af8c2=_0x38fdac;this[_0x4af8c2(0x14e)]===_0x4af8c2(0x15a)&&this[_0x4af8c2(0x1a1)]();}[_0x38fdac(0x122)](_0x348b4e){var _0x399ac7=_0x38fdac;const {presenter:_0x4b241c}=_0x348b4e['data'],_0x415098=this[_0x399ac7(0x197)][_0x399ac7(0x1c9)]();this[_0x399ac7(0x1ca)]=_0x4b241c,_0x4b241c===_0x415098?(this[_0x399ac7(0x1a1)](),this[_0x399ac7(0x188)]()):this['_status']!==_0x399ac7(0x145)&&(this[_0x399ac7(0x18d)](),this[_0x399ac7(0x1b8)]());}['_fetchOperations'](){var _0x1e9cdf=_0x38fdac;const _0x2d2132={'eventID':_0x56b0fd[_0x1e9cdf(0x158)]};this[_0x1e9cdf(0x197)][_0x1e9cdf(0x173)](_0x2d2132,this[_0x1e9cdf(0x1a5)]);}[_0x38fdac(0x157)](){var _0x10da41=_0x38fdac;this[_0x10da41(0x1ca)]=null,this[_0x10da41(0x14e)]!=='presenting'&&this[_0x10da41(0x1d0)]();}[_0x38fdac(0x198)](_0x5a6ef3){var _0x34b754=_0x38fdac;if(this[_0x34b754(0x14e)]===_0x34b754(0x15a)&&this['_presenter']===_0x5a6ef3[_0x34b754(0x19b)][_0x34b754(0x172)]){const _0x51900b=_0x41ab39(_0x5a6ef3[_0x34b754(0x19b)])[_0x34b754(0x14a)][_0x34b754(0x1a9)]()[_0x34b754(0x190)](_0x505897=>_0x505897['id']===_0x5c844d['id']);if(_0x51900b){const _0x106365=_0x51900b['params'][_0x34b754(0x138)],_0x544c6d=_0x51900b[_0x34b754(0x176)]['sheet']['id'];setTimeout(()=>{var _0x3ec7e0=_0x34b754;this[_0x3ec7e0(0x191)][_0x3ec7e0(0x164)](_0x3706e8['id'],{'unitId':_0x106365,'subUnitId':_0x544c6d},{'fromCollab':!0x0});});}}}[_0x38fdac(0x188)](){var _0x362cab=_0x38fdac;this[_0x362cab(0x131)][_0x362cab(0x1be)]('presenting');const _0x15e008=new Map(),_0x3ddfa3=this[_0x362cab(0x19d)]=new _0x58390b();_0x3ddfa3[_0x362cab(0x130)](_0x528b21(()=>{var _0x513009=_0x362cab;_0x15e008[_0x513009(0x1bb)](_0x4071c5=>_0x4071c5['complete']()),_0x15e008[_0x513009(0x19f)]();})),_0x3ddfa3[_0x362cab(0x130)](this[_0x362cab(0x191)]['onCommandExecuted'](_0x5f1717=>{var _0x3473bc=_0x362cab,_0x4e27b8;if(_0x5f1717[_0x3473bc(0x166)]!==_0x47d008[_0x3473bc(0x170)]||!this['_liveShareService'][_0x3473bc(0x1a0)](_0x5f1717['id']))return;const {id:_0x59ec6c}=_0x5f1717;let _0x3ee936;_0x15e008[_0x3473bc(0x12d)](_0x59ec6c)?_0x3ee936=_0x15e008['get'](_0x59ec6c):(_0x3ee936=new _0x296bd3(),_0x15e008['set'](_0x59ec6c,_0x3ee936),_0x3ee936[_0x3473bc(0x1bf)](_0x4291c((_0x4e27b8=this[_0x3473bc(0x15c)][_0x3473bc(0x132)](Pe))!=null?_0x4e27b8:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3473bc(0x139)](_0x369e4e=>{var _0x2583da=_0x3473bc;this[_0x2583da(0x197)][_0x2583da(0x173)]({'eventID':_0x56b0fd[_0x2583da(0x1cf)],'data':{'unitID':this[_0x2583da(0x1a5)],'operations':{[_0x369e4e['id']]:{'id':_0x369e4e['id'],'params':JSON[_0x2583da(0x169)](_0x369e4e[_0x2583da(0x176)])}}}},this[_0x2583da(0x1a5)]);})),_0x3ee936[_0x3473bc(0x1be)](_0x5f1717);})),this[_0x362cab(0x15d)][_0x362cab(0x163)](this[_0x362cab(0x1a5)])[_0x362cab(0x1bb)](_0x4b74b1=>this['_collabSession']['send']({'eventID':_0x56b0fd[_0x362cab(0x1cf)],'data':{'unitID':this[_0x362cab(0x1a5)],'operations':{[_0x4b74b1['id']]:{'id':_0x4b74b1['id'],'params':JSON[_0x362cab(0x169)](_0x4b74b1['params'])}}}},this[_0x362cab(0x1a5)]));}[_0x38fdac(0x18d)](){var _0x305684=_0x38fdac,_0x4c38b0;this[_0x305684(0x131)]['next'](_0x305684(0x19a)),(_0x4c38b0=this['_commandDisposable'])==null||_0x4c38b0['dispose'](),this[_0x305684(0x19d)]=null;}[_0x38fdac(0x1b8)](){var _0x2e06fb=_0x38fdac,_0x4ce2f3;(_0x4ce2f3=this[_0x2e06fb(0x19d)])==null||_0x4ce2f3[_0x2e06fb(0x1c0)](),this['_status$'][_0x2e06fb(0x1be)]('following');}['_beIdle'](){var _0x2e5333=_0x38fdac,_0x30024d;this[_0x2e5333(0x131)][_0x2e5333(0x1be)](_0x2e5333(0x19a)),(_0x30024d=this['_commandDisposable'])==null||_0x30024d[_0x2e5333(0x1c0)](),this[_0x2e5333(0x19d)]=null;}['_stopFollowing'](){var _0x4c52fe=_0x38fdac,_0x9febb4;this[_0x4c52fe(0x131)][_0x4c52fe(0x1be)](_0x4c52fe(0x145)),(_0x9febb4=this[_0x4c52fe(0x19d)])==null||_0x9febb4[_0x4c52fe(0x1c0)]();}[_0x38fdac(0x16d)](_0xbf79e6){var _0x40f8fc=_0x38fdac;if([_0x40f8fc(0x13a),_0x40f8fc(0x145),'offline'][_0x40f8fc(0x16c)](this[_0x40f8fc(0x14e)])||!_0xbf79e6[_0x40f8fc(0x19b)][_0x40f8fc(0x193)]||_0xbf79e6[_0x40f8fc(0x19b)][_0x40f8fc(0x193)]===this[_0x40f8fc(0x197)][_0x40f8fc(0x1c9)]())return;this[_0x40f8fc(0x14e)]===_0x40f8fc(0x19a)&&this['_startFollowing']();const _0x2354ff=_0xbf79e6[_0x40f8fc(0x19b)]['operations'];Object[_0x40f8fc(0x194)](_0x2354ff)[_0x40f8fc(0x1bb)](_0xca5dff=>{var _0x408e36=_0x40f8fc;this[_0x408e36(0x191)]['executeCommand'](_0xca5dff['id'],_0xca5dff[_0x408e36(0x176)]?JSON['parse'](_0xca5dff[_0x408e36(0x176)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1f0aee=_0x38fdac,_0x4fe53a;this['_status$'][_0x1f0aee(0x1be)](_0x1f0aee(0x12e)),(_0x4fe53a=this['_commandDisposable'])==null||_0x4fe53a[_0x1f0aee(0x1c0)]();}[_0x38fdac(0x185)](){var _0x363b58=_0x38fdac;this[_0x363b58(0x131)][_0x363b58(0x1be)](_0x363b58(0x19a)),this[_0x363b58(0x180)]();}};C=Z([f(0x2,_0x617f45),f(0x3,_0x587c17(L)),f(0x4,_0x2f2a0d)],C);function Te(){var _0x4b23e6=_0x38fdac;const _0x2930a9=_0x15a14d(I),_0xf04f2d=_0x15a14d(_0x28959b),_0x1bba02=_0x114fe7(()=>_0xf04f2d[_0x4b23e6(0x1c2)](_0x49ab6b[_0x4b23e6(0x155)]),void 0x0,!0x1,[]),[_0x2fc2e9,_0x458a51]=_0x377c51(null),[_0x569108,_0x50f680]=_0x377c51(h[_0x4b23e6(0x1a7)]),_0x501300=_0x1eea52(null);return _0x1cff21(()=>(_0x1bba02&&_0x2930a9[_0x4b23e6(0x13c)](_0x1bba02[_0x4b23e6(0x13e)]())[_0x4b23e6(0x1b6)](_0x1208a3=>{var _0x38f181=_0x4b23e6;_0x458a51(_0x1208a3),_0x501300['current']=_0x1208a3[_0x38f181(0x1bd)][_0x38f181(0x139)](_0x21ad9e=>{_0x50f680(_0x21ad9e);});}),()=>{var _0x21e91f=_0x4b23e6,_0x1d11d7;(_0x1d11d7=_0x501300[_0x21e91f(0x1ce)])==null||_0x1d11d7['unsubscribe'](),_0x501300[_0x21e91f(0x1ce)]=null;}),[_0x1bba02,_0x2930a9]),_0x2fc2e9?_0x470645(_0x1c048c,{'align':'end','disabled':_0x569108===h[_0x4b23e6(0x179)],'className':_0x4b23e6(0x123),'overlay':_0x470645($e,{'status':_0x569108,'coordinator':_0x2fc2e9}),'children':_0x470645(_0x4b23e6(0x140),{'className':_0x3f870f(_0x4b23e6(0x151),{'univer-cursor-not-allowed':_0x569108===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x569108!==h[_0x4b23e6(0x179)]}),'type':'button','children':_0x470645(B,{'className':'univer-size-4'})})}):null;}function $e(_0xe20599){var _0x2f8a0e=_0x38fdac;const {status:_0x309702,coordinator:_0x76fd3d}=_0xe20599;switch(_0x309702){case h['IDLE']:return _0x470645(Fe,{'coordinator':_0x76fd3d});case h[_0x2f8a0e(0x18e)]:return _0x470645(He,{'coordinator':_0x76fd3d});case h[_0x2f8a0e(0x1cd)]:return _0x470645(je,{'coordinator':_0x76fd3d});case h[_0x2f8a0e(0x179)]:return _0x470645(Ve,{});case h[_0x2f8a0e(0x1b1)]:return _0x470645(Ue,{'coordinator':_0x76fd3d});default:return null;}}function Fe(_0x5dc96a){var _0x45c0ff=_0x38fdac;const {coordinator:_0x14d00f}=_0x5dc96a;return _0x4d68a9(_0x4e94f2,{'children':[_0x470645(_0x45c0ff(0x135),{'className':_0x45c0ff(0x1a8),'children':_0x45c0ff(0x1c4)}),_0x470645(_0xc2e2b3,{'onClick':()=>_0x14d00f[_0x45c0ff(0x1a4)](),'children':'Start'})]});}function _0x3225(_0x421f7c,_0xc022ef){var _0x18d3a5=_0x18d3();return _0x3225=function(_0x322586,_0x1889b8){_0x322586=_0x322586-0x122;var _0x1644de=_0x18d3a5[_0x322586];return _0x1644de;},_0x3225(_0x421f7c,_0xc022ef);}function He(_0x44c2a6){var _0x1852c0=_0x38fdac;const {coordinator:_0x5eafad}=_0x44c2a6;return _0x4d68a9(_0x4e94f2,{'children':[_0x470645(_0x1852c0(0x135),{'className':_0x1852c0(0x1a8),'children':_0x1852c0(0x18b)}),_0x470645(_0xc2e2b3,{'onClick':()=>_0x5eafad[_0x1852c0(0x126)](),'children':'Stop\x20following'})]});}function je(_0x1fcb25){var _0xf4ffc=_0x38fdac;const {coordinator:_0x1adae1}=_0x1fcb25;return _0x4d68a9(_0x4e94f2,{'children':[_0x470645('div',{'className':_0xf4ffc(0x1a8),'children':_0xf4ffc(0x1d2)}),_0x470645(_0xc2e2b3,{'variant':'text','onClick':()=>_0x1adae1['startFollowing'](),'children':_0xf4ffc(0x184)})]});}function Ue(_0x18d272){var _0x56cf1e=_0x38fdac;const {coordinator:_0xbc1aa0}=_0x18d272;return _0x4d68a9(_0x4e94f2,{'children':[_0x470645(_0x56cf1e(0x135),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x470645(_0xc2e2b3,{'variant':_0x56cf1e(0x15b),'onClick':()=>_0xbc1aa0[_0x56cf1e(0x14b)](),'children':_0x56cf1e(0x137)})]});}function Ve(){var _0x5f40ad=_0x38fdac;return _0x470645(_0x4e94f2,{'children':_0x5f40ad(0x1b2)});}var Me=Object[_0x38fdac(0x1ad)],ke=(_0x4aed77,_0x1a0341,_0x3ea893,_0x58c9cd)=>{var _0x5ed649=_0x38fdac;for(var _0x534696=_0x58c9cd>0x1?void 0x0:_0x58c9cd?Me(_0x1a0341,_0x3ea893):_0x1a0341,_0x5b2f36=_0x4aed77[_0x5ed649(0x1b4)]-0x1,_0x304651;_0x5b2f36>=0x0;_0x5b2f36--)(_0x304651=_0x4aed77[_0x5b2f36])&&(_0x534696=_0x304651(_0x534696)||_0x534696);return _0x534696;},$=(_0x10b44a,_0x35b5b1)=>(_0x3f8222,_0x500b57)=>_0x35b5b1(_0x3f8222,_0x500b57,_0x10b44a);let b=class extends _0x1110e6{constructor(_0x44211b,_0x3a67ef){var _0x3e2ed3=_0x38fdac;super(),this['_injector']=_0x44211b,this[_0x3e2ed3(0x147)]=_0x3a67ef,this['_mountLiveShare']();}[_0x38fdac(0x16e)](){var _0x28851e=_0x38fdac;this[_0x28851e(0x161)](this[_0x28851e(0x147)][_0x28851e(0x154)](_0x249236['HEADER_MENU'],()=>_0x4621b9(Te,this['_injector'])));}};b=ke([$(0x0,_0x587c17(_0x34f5e9)),$(0x1,_0x139622)],b);var Ge=Object[_0x38fdac(0x1c6)],We=Object[_0x38fdac(0x1ad)],Ye=(_0x54963a,_0x29950f,_0xed3a32)=>_0x29950f in _0x54963a?Ge(_0x54963a,_0x29950f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xed3a32}):_0x54963a[_0x29950f]=_0xed3a32,Be=(_0x3c3a98,_0x55fcf4,_0x3a17a5,_0x4af24e)=>{var _0x1ef60f=_0x38fdac;for(var _0x5b96d5=_0x4af24e>0x1?void 0x0:_0x4af24e?We(_0x55fcf4,_0x3a17a5):_0x55fcf4,_0x1527ba=_0x3c3a98[_0x1ef60f(0x1b4)]-0x1,_0x4640cc;_0x1527ba>=0x0;_0x1527ba--)(_0x4640cc=_0x3c3a98[_0x1527ba])&&(_0x5b96d5=_0x4640cc(_0x5b96d5)||_0x5b96d5);return _0x5b96d5;},F=(_0x5b50a5,_0x9f2d1b)=>(_0x3b3217,_0x3df8cf)=>_0x9f2d1b(_0x3b3217,_0x3df8cf,_0x5b50a5),J=(_0x45347d,_0x2a1298,_0x14c432)=>Ye(_0x45347d,typeof _0x2a1298!=_0x38fdac(0x13f)?_0x2a1298+'':_0x2a1298,_0x14c432);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x1a2767{constructor(_0x2b4676=T,_0x4740fb,_0x1ab4de){var _0x13260f=_0x38fdac;super(),this[_0x13260f(0x17a)]=_0x2b4676,this['_injector']=_0x4740fb,this[_0x13260f(0x15c)]=_0x1ab4de;const {..._0x53feb9}=_0x1ec0c2({},T,this[_0x13260f(0x17a)]);this[_0x13260f(0x15c)][_0x13260f(0x17b)](Oe,_0x53feb9);}[_0x38fdac(0x1cb)](){var _0x3aad50=_0x38fdac;_0x2b36ac(this[_0x3aad50(0x160)],_0x5537f3([[L],[I],[m],[b]],this[_0x3aad50(0x17a)]['override'])),_0x328c8c(this[_0x3aad50(0x160)],[[m]]);}['onRendered'](){var _0x2da0d4=_0x38fdac;_0x328c8c(this[_0x2da0d4(0x160)],[[b]]);}};J(O,_0x38fdac(0x166),_0x49ab6b[_0x38fdac(0x1b7)]),J(O,_0x38fdac(0x18c),Ze),O=Be([_0x2a1f58(_0xa92360),F(0x1,_0x587c17(_0x34f5e9)),F(0x2,_0x617f45)],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 _0x29ea9a=_0x51d1;(function(_0x2e539b,_0x30b79d){var _0x442bc2=_0x51d1,_0x2006dd=_0x2e539b();while(!![]){try{var _0x21830c=-parseInt(_0x442bc2(0x107))/0x1+parseInt(_0x442bc2(0x18d))/0x2*(parseInt(_0x442bc2(0x125))/0x3)+parseInt(_0x442bc2(0x121))/0x4*(-parseInt(_0x442bc2(0x16b))/0x5)+parseInt(_0x442bc2(0x184))/0x6+-parseInt(_0x442bc2(0x10d))/0x7+parseInt(_0x442bc2(0x15f))/0x8*(parseInt(_0x442bc2(0x15d))/0x9)+parseInt(_0x442bc2(0x18a))/0xa*(parseInt(_0x442bc2(0x16a))/0xb);if(_0x21830c===_0x30b79d)break;else _0x2006dd['push'](_0x2006dd['shift']());}catch(_0x35012c){_0x2006dd['push'](_0x2006dd['shift']());}}}(_0x1c84,0xc04ca));var q=Object[_0x29ea9a(0xe3)],z=(_0x1e27de,_0x3e9bd2,_0x102936)=>_0x3e9bd2 in _0x1e27de?q(_0x1e27de,_0x3e9bd2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x102936}):_0x1e27de[_0x3e9bd2]=_0x102936,d=(_0x30636d,_0x190c7f,_0x1a56e2)=>z(_0x30636d,typeof _0x190c7f!=_0x29ea9a(0x15c)?_0x190c7f+'':_0x190c7f,_0x1a56e2);import{CollaborationSessionService as _0x94a5e1,SessionStatus as _0x2862a6,UniverCollaborationClientPlugin as _0x1a961f}from'@univerjs-pro/collaboration-client';import{Disposable as _0x31e7a4,toDisposable as _0x5bc629,Inject as _0xf646c1,IUniverInstanceService as _0x3459c1,Injector as _0x4498f3,IConfigService as _0x548d47,ICommandService as _0x1b0ea8,RxDisposable as _0x4e23fa,UniverInstanceType as _0x2e7d47,DisposableCollection as _0x20d871,CommandType as _0x110f27,DependentOn as _0x484a52,Plugin as _0xe5ff50,merge as _0x1fc8bd,registerDependencies as _0x2df774,mergeOverrideWithDependencies as _0x1e76da,touchDependencies as _0x21061e}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x4a98a2,InsertSheetMutation as _0x438976}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x9bc1a6,SetScrollOperation as _0x35abd8}from'@univerjs/sheets-ui';import{useDependency as _0x1c7154,useObservable as _0x47ceac,IUIPartsService as _0x410032,BuiltInUIPart as _0x591b35,connectInjector as _0x2ac8da}from'@univerjs/ui';import{jsx as _0x4a136f,jsxs as _0x6bb112,Fragment as _0x1f470d}from'react/jsx-runtime';import{Dropdown as _0x1f3e5a,clsx as _0x42ee3f,Button as _0x1b521d}from'@univerjs/design';import{forwardRef as _0x583fa1,useRef as _0x5b9881,createElement as _0x4ad7a6,useState as _0x445d54,useEffect as _0x212ac3}from'react';import{CollaborationEvent as _0x4ba672,parseProtocolChangeset as _0x3bfe1e}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2ba6f1,Subject as _0x2ae17d}from'rxjs';import{takeUntil as _0xe8d355,throttleTime as _0x66b6b3}from'rxjs/operators';function _0x51d1(_0x329407,_0x58d95c){var _0x1c846c=_0x1c84();return _0x51d1=function(_0x51d167,_0x5f2db0){_0x51d167=_0x51d167-0xe2;var _0x1d1a4e=_0x1c846c[_0x51d167];return _0x1d1a4e;},_0x51d1(_0x329407,_0x58d95c);}const Oe=_0x29ea9a(0x17e),T={};class L extends _0x31e7a4{constructor(){super(...arguments),d(this,'_sharedOperations',new Set()),d(this,'_reporters',new Set());}['registerSharedOperation'](_0x49f752){var _0x230441=_0x29ea9a;return this['_sharedOperations'][_0x230441(0x154)](_0x49f752),_0x5bc629(()=>this[_0x230441(0x174)][_0x230441(0x118)](_0x49f752));}[_0x29ea9a(0x190)](_0x22e292){var _0x4a4c06=_0x29ea9a;return this['_reporters'][_0x4a4c06(0x154)](_0x22e292),_0x5bc629(()=>this[_0x4a4c06(0x164)]['delete'](_0x22e292));}[_0x29ea9a(0x12b)](_0x2e6cb2){var _0x4ece42=_0x29ea9a;return this['_sharedOperations'][_0x4ece42(0x169)](_0x2e6cb2);}['getInitialStates'](_0x51579d){var _0x22cbd6=_0x29ea9a;return Array[_0x22cbd6(0xec)](this['_reporters'])[_0x22cbd6(0x152)](_0x534788=>_0x534788(_0x51579d));}}var Ee=Object[_0x29ea9a(0x144)],we=(_0x4729e6,_0x25efc6,_0x4428ce,_0x5dd2d0)=>{var _0x523514=_0x29ea9a;for(var _0xc78f72=_0x5dd2d0>0x1?void 0x0:_0x5dd2d0?Ee(_0x25efc6,_0x4428ce):_0x25efc6,_0x355086=_0x4729e6[_0x523514(0xfd)]-0x1,_0x219f89;_0x355086>=0x0;_0x355086--)(_0x219f89=_0x4729e6[_0x355086])&&(_0xc78f72=_0x219f89(_0xc78f72)||_0xc78f72);return _0xc78f72;},Ne=(_0x17cca6,_0xa35939)=>(_0x5730c2,_0x314f4a)=>_0xa35939(_0x5730c2,_0x314f4a,_0x17cca6);let m=class extends _0x31e7a4{constructor(_0x456393){var _0x32c753=_0x29ea9a;super(),this[_0x32c753(0xe7)]=_0x456393,this[_0x32c753(0x191)]();}['_init'](){var _0x16f081=_0x29ea9a;[_0x9bc1a6['id'],_0x35abd8['id'],_0x4a98a2['id']][_0x16f081(0xfe)](_0x2dd668=>{var _0x50365d=_0x16f081;this[_0x50365d(0x11f)](this['_liveShareService']['registerSharedOperation'](_0x2dd668));});}};m=we([Ne(0x0,_0xf646c1(L))],m);var c=function(){var _0x4f80ae=_0x29ea9a;return c=Object[_0x4f80ae(0x129)]||function(_0x546113){var _0x1a2a1a=_0x4f80ae;for(var _0x2504bc,_0x5b7c09=0x1,_0x319fa3=arguments[_0x1a2a1a(0xfd)];_0x5b7c09<_0x319fa3;_0x5b7c09++){_0x2504bc=arguments[_0x5b7c09];for(var _0x37eb23 in _0x2504bc)Object[_0x1a2a1a(0xf8)][_0x1a2a1a(0x156)]['call'](_0x2504bc,_0x37eb23)&&(_0x546113[_0x37eb23]=_0x2504bc[_0x37eb23]);}return _0x546113;},c[_0x4f80ae(0x10f)](this,arguments);},Ce=function(_0x16c132,_0x13cf8f){var _0x3e8ae1=_0x29ea9a,_0x31237b={};for(var _0x19e3ca in _0x16c132)Object[_0x3e8ae1(0xf8)][_0x3e8ae1(0x156)][_0x3e8ae1(0x115)](_0x16c132,_0x19e3ca)&&_0x13cf8f[_0x3e8ae1(0xf2)](_0x19e3ca)<0x0&&(_0x31237b[_0x19e3ca]=_0x16c132[_0x19e3ca]);if(_0x16c132!=null&&typeof Object['getOwnPropertySymbols']==_0x3e8ae1(0x12a)){for(var _0x5ab7cc=0x0,_0x19e3ca=Object[_0x3e8ae1(0xed)](_0x16c132);_0x5ab7cc<_0x19e3ca[_0x3e8ae1(0xfd)];_0x5ab7cc++)_0x13cf8f[_0x3e8ae1(0xf2)](_0x19e3ca[_0x5ab7cc])<0x0&&Object[_0x3e8ae1(0xf8)]['propertyIsEnumerable']['call'](_0x16c132,_0x19e3ca[_0x5ab7cc])&&(_0x31237b[_0x19e3ca[_0x5ab7cc]]=_0x16c132[_0x19e3ca[_0x5ab7cc]]);}return _0x31237b;},W=_0x583fa1(function(_0x59348e,_0x575072){var _0x22ea0f=_0x29ea9a,_0x1a3048=_0x59348e[_0x22ea0f(0x110)],_0x501b1e=_0x59348e['id'],_0x428719=_0x59348e['className'],_0x4a1f29=_0x59348e[_0x22ea0f(0x185)],_0x5daae5=Ce(_0x59348e,[_0x22ea0f(0x110),'id',_0x22ea0f(0x162),_0x22ea0f(0x185)]),_0xdfe4ba=_0x22ea0f(0xe2)[_0x22ea0f(0x15a)](_0x501b1e,'\x20')[_0x22ea0f(0x15a)](_0x428719||'')[_0x22ea0f(0x14e)](),_0x8c5030=_0x5b9881('_'[_0x22ea0f(0x15a)](Le()));return Y(_0x1a3048,''['concat'](_0x501b1e),{'defIds':_0x1a3048[_0x22ea0f(0x16d)],'idSuffix':_0x8c5030[_0x22ea0f(0x150)]},c({'ref':_0x575072,'className':_0xdfe4ba},_0x5daae5),_0x4a1f29);});function Y(_0x351519,_0x7b0a64,_0x40ce57,_0x167839,_0x617ee6){var _0x123fb6=_0x29ea9a;return _0x4ad7a6(_0x351519[_0x123fb6(0x153)],c(c({'key':_0x7b0a64},De(_0x351519,_0x40ce57,_0x617ee6)),_0x167839),(xe(_0x351519,_0x40ce57)['children']||[])[_0x123fb6(0x152)](function(_0x573246,_0xd28742){var _0x4c1d74=_0x123fb6;return Y(_0x573246,''[_0x4c1d74(0x15a)](_0x7b0a64,'-')[_0x4c1d74(0x15a)](_0x351519['tag'],'-')[_0x4c1d74(0x15a)](_0xd28742),_0x40ce57,void 0x0,_0x617ee6);}));}function De(_0x178ca2,_0x127977,_0x199db4){var _0x1ece7c=_0x29ea9a,_0x3faf2d=c({},_0x178ca2['attrs']);_0x199db4!=null&&_0x199db4[_0x1ece7c(0x13b)]&&_0x3faf2d[_0x1ece7c(0x116)]==='colorChannel1'&&(_0x3faf2d[_0x1ece7c(0x116)]=_0x199db4[_0x1ece7c(0x13b)]),_0x178ca2[_0x1ece7c(0x153)]===_0x1ece7c(0xfb)&&_0x3faf2d['id']&&(_0x3faf2d['id']=_0x3faf2d['id']+_0x127977[_0x1ece7c(0xf1)]),Object[_0x1ece7c(0x148)](_0x3faf2d)[_0x1ece7c(0xfe)](function(_0x45616f){var _0xb5b206=_0x1ece7c,_0x4ab0d9=_0x45616f[0x0],_0x4fa357=_0x45616f[0x1];_0x4ab0d9===_0xb5b206(0xfb)&&typeof _0x4fa357==_0xb5b206(0x143)&&(_0x3faf2d[_0x4ab0d9]=_0x4fa357['replace'](/url\(#(.*)\)/,_0xb5b206(0xee)[_0xb5b206(0x15a)](_0x127977['idSuffix'],')')));});var _0x3ec402=_0x127977['defIds'];return!_0x3ec402||_0x3ec402[_0x1ece7c(0xfd)]===0x0||(_0x178ca2[_0x1ece7c(0x153)]==='use'&&_0x3faf2d[_0x1ece7c(0x142)]&&(_0x3faf2d[_0x1ece7c(0x142)]=_0x3faf2d[_0x1ece7c(0x142)]+_0x127977[_0x1ece7c(0xf1)]),Object[_0x1ece7c(0x148)](_0x3faf2d)[_0x1ece7c(0xfe)](function(_0x5a4901){var _0x2af601=_0x1ece7c,_0x27507f=_0x5a4901[0x0],_0x378233=_0x5a4901[0x1];typeof _0x378233=='string'&&(_0x3faf2d[_0x27507f]=_0x378233[_0x2af601(0x108)](/url\(#(.*)\)/,_0x2af601(0xee)[_0x2af601(0x15a)](_0x127977[_0x2af601(0xf1)],')')));})),_0x3faf2d;}function xe(_0x2d6f75,_0x2db820){var _0x4a7e05=_0x29ea9a,_0x30f5c6,_0x47d695=_0x2db820[_0x4a7e05(0x16d)];return!_0x47d695||_0x47d695[_0x4a7e05(0xfd)]===0x0?_0x2d6f75:_0x2d6f75['tag']===_0x4a7e05(0x117)&&(!((_0x30f5c6=_0x2d6f75['children'])===null||_0x30f5c6===void 0x0)&&_0x30f5c6[_0x4a7e05(0xfd)])?c(c({},_0x2d6f75),{'children':_0x2d6f75[_0x4a7e05(0xe5)][_0x4a7e05(0x152)](function(_0xf66d93){var _0x5d9e9d=_0x4a7e05;return typeof _0xf66d93[_0x5d9e9d(0x163)]['id']==_0x5d9e9d(0x143)&&_0x47d695&&_0x47d695[_0x5d9e9d(0x14a)](_0xf66d93['attrs']['id'])?c(c({},_0xf66d93),{'attrs':c(c({},_0xf66d93[_0x5d9e9d(0x163)]),{'id':_0xf66d93['attrs']['id']+_0x2db820[_0x5d9e9d(0xf1)]})}):_0xf66d93;})}):_0x2d6f75;}function Le(){var _0x31daf6=_0x29ea9a;return Math[_0x31daf6(0x155)]()[_0x31daf6(0xf9)](0x24)[_0x31daf6(0x135)](0x2,0x8);}W[_0x29ea9a(0x12c)]=_0x29ea9a(0xf3);var ye={'tag':_0x29ea9a(0x160),'attrs':{'xmlns':_0x29ea9a(0x159),'fill':_0x29ea9a(0x13f),'viewBox':_0x29ea9a(0x11c),'width':'1em','height':_0x29ea9a(0xeb)},'children':[{'tag':'path','attrs':{'fill':_0x29ea9a(0x15e),'d':_0x29ea9a(0x133)}},{'tag':_0x29ea9a(0x13d),'attrs':{'fill':_0x29ea9a(0x15e),'d':_0x29ea9a(0x10c),'fillRule':'evenodd','clipRule':'evenodd'}}]},B=_0x583fa1(function(_0x5eb44d,_0x1d0b83){var _0x36dd0c=_0x29ea9a;return _0x4ad7a6(W,Object[_0x36dd0c(0x129)]({},_0x5eb44d,{'id':_0x36dd0c(0x175),'ref':_0x1d0b83,'icon':ye}));});B[_0x29ea9a(0x12c)]=_0x29ea9a(0xe4);var Re=Object[_0x29ea9a(0x144)],Z=(_0x4a1d99,_0x639301,_0x3ca504,_0x1ee71b)=>{var _0x2c75d5=_0x29ea9a;for(var _0xdeff43=_0x1ee71b>0x1?void 0x0:_0x1ee71b?Re(_0x639301,_0x3ca504):_0x639301,_0xb45533=_0x4a1d99[_0x2c75d5(0xfd)]-0x1,_0x50dfce;_0xb45533>=0x0;_0xb45533--)(_0x50dfce=_0x4a1d99[_0xb45533])&&(_0xdeff43=_0x50dfce(_0xdeff43)||_0xdeff43);return _0xdeff43;},f=(_0x54ad62,_0x4708ba)=>(_0x3dfb05,_0xc7ff4f)=>_0x4708ba(_0x3dfb05,_0xc7ff4f,_0x54ad62);let I=class extends _0x4e23fa{constructor(_0x1cce31,_0x50b9af,_0x17cfc2){var _0x53d623=_0x29ea9a;super(),d(this,_0x53d623(0x149),new Map()),(this[_0x53d623(0x17d)]=_0x1cce31,this[_0x53d623(0x176)]=_0x50b9af,this[_0x53d623(0x183)]=_0x17cfc2,this[_0x53d623(0x191)]());}async[_0x29ea9a(0x134)](_0x5b2e16){var _0x3ef8dd=_0x29ea9a;return this[_0x3ef8dd(0x149)][_0x3ef8dd(0x169)](_0x5b2e16)||await this['_startLiveShareCoordinator'](_0x5b2e16),this[_0x3ef8dd(0x149)][_0x3ef8dd(0x103)](_0x5b2e16);}[_0x29ea9a(0x191)](){var _0x41d61e=_0x29ea9a;this[_0x41d61e(0x17d)][_0x41d61e(0xf5)](_0x2e7d47[_0x41d61e(0x17a)])[_0x41d61e(0x10b)](_0xe8d355(this[_0x41d61e(0x16e)]))['subscribe'](async _0x182770=>{var _0x3f6f23=_0x41d61e;const _0x235b5c=_0x182770[_0x3f6f23(0x11b)]();this[_0x3f6f23(0x149)][_0x3f6f23(0x169)](_0x235b5c)||this['_startLiveShareCoordinator'](_0x235b5c);}),this[_0x41d61e(0x17d)][_0x41d61e(0x186)](_0x2e7d47[_0x41d61e(0x17a)])[_0x41d61e(0x10b)](_0xe8d355(this['dispose$']))[_0x41d61e(0x127)](_0x3cdcd7=>{var _0xf57f0d=_0x41d61e;const _0x34c9e6=_0x3cdcd7['getUnitId'](),_0x2c7fb8=this[_0xf57f0d(0x149)]['get'](_0x34c9e6);_0x2c7fb8==null||_0x2c7fb8[_0xf57f0d(0x14d)]();});}async['_startLiveShareCoordinator'](_0x162ec6){var _0x2c22e6=_0x29ea9a;const _0x45ac00=await this['_collabSessionService'][_0x2c22e6(0x11d)](_0x162ec6),_0x4f6b13=this[_0x2c22e6(0x176)][_0x2c22e6(0x161)](C,_0x162ec6,_0x45ac00);return _0x4f6b13[_0x2c22e6(0x111)](),this[_0x2c22e6(0x149)]['set'](_0x162ec6,_0x4f6b13),_0x4f6b13;}};I=Z([f(0x0,_0x3459c1),f(0x1,_0xf646c1(_0x4498f3)),f(0x2,_0xf646c1(_0x94a5e1))],I);var h=(_0xc86bd0=>(_0xc86bd0[_0x29ea9a(0x114)]='offline',_0xc86bd0[_0x29ea9a(0x109)]='idle',_0xc86bd0[_0x29ea9a(0x14b)]=_0x29ea9a(0x13e),_0xc86bd0[_0x29ea9a(0x188)]=_0x29ea9a(0xfa),_0xc86bd0['PRESENTING']='presenting',_0xc86bd0))(h||{});const Pe=_0x29ea9a(0x187),Ae=0xc8;let C=class extends _0x4e23fa{constructor(_0x52c8ee,_0x215b8b,_0xd5ef52,_0x3e8131,_0x30510b){var _0x275bac=_0x29ea9a;super(),d(this,_0x275bac(0x147),new _0x2ba6f1(_0x275bac(0x14c))),d(this,'status$',this[_0x275bac(0x147)][_0x275bac(0xe9)]()),d(this,_0x275bac(0x191),!0x1),d(this,_0x275bac(0x182),null),d(this,_0x275bac(0x13c),null),(this[_0x275bac(0x189)]=_0x52c8ee,this[_0x275bac(0xf7)]=_0x215b8b,this['_configService']=_0xd5ef52,this['_liveShareService']=_0x3e8131,this['_commandService']=_0x30510b);}get[_0x29ea9a(0x171)](){var _0x1c0415=_0x29ea9a;return this[_0x1c0415(0x147)]['getValue']();}[_0x29ea9a(0x14d)](){var _0x46e4a8=_0x29ea9a,_0x1e2fd3;(_0x1e2fd3=this['_commandDisposable'])==null||_0x1e2fd3['dispose'](),this[_0x46e4a8(0x147)][_0x46e4a8(0x140)](_0x46e4a8(0x14c)),this['_status$'][_0x46e4a8(0x14f)]();}[_0x29ea9a(0x111)](){var _0x3e1a6c=_0x29ea9a;this[_0x3e1a6c(0x191)]||(this['_init']=!0x0,this[_0x3e1a6c(0xf7)][_0x3e1a6c(0x168)][_0x3e1a6c(0x10b)](_0xe8d355(this['dispose$']))[_0x3e1a6c(0x127)](_0x33a298=>{var _0x433edb=_0x3e1a6c;switch(_0x33a298){case _0x2862a6[_0x433edb(0x114)]:this[_0x433edb(0xe6)]();break;case _0x2862a6[_0x433edb(0x119)]:this[_0x433edb(0xea)]();break;}}),this[_0x3e1a6c(0xf7)][_0x3e1a6c(0x130)][_0x3e1a6c(0x10b)](_0xe8d355(this[_0x3e1a6c(0x16e)]))['subscribe'](_0xcdd238=>{var _0x176846=_0x3e1a6c;const {eventID:_0x222dc3}=_0xcdd238;switch(_0x222dc3){case _0x4ba672[_0x176846(0x141)]:this[_0x176846(0x100)](_0xcdd238);break;case _0x4ba672['LIVESHARE_OPERATION']:this[_0x176846(0x17b)](_0xcdd238);break;case _0x4ba672[_0x176846(0x113)]:this[_0x176846(0x179)]();break;case _0x4ba672['NEW_CHANGESETS']:this[_0x176846(0x11e)](_0xcdd238);break;}}));}['tryStartPresenting'](){var _0x5a07cc=_0x29ea9a;this[_0x5a07cc(0xf7)][_0x5a07cc(0xef)]({'eventID':_0x4ba672['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x5a07cc(0x18e)]()}},this[_0x5a07cc(0x189)]);}['stopPresenting'](){var _0x42b4d6=_0x29ea9a;this['_status']===_0x42b4d6(0x105)&&(this[_0x42b4d6(0x147)][_0x42b4d6(0x140)]('idle'),this[_0x42b4d6(0xf7)][_0x42b4d6(0xef)]({'eventID':_0x4ba672[_0x42b4d6(0x113)],'data':{'unitID':this['_unitID']}},this[_0x42b4d6(0x189)]));}['startFollowing'](){var _0x319e7d=_0x29ea9a;this[_0x319e7d(0x171)]===_0x319e7d(0xfa)&&(this['_status$'][_0x319e7d(0x140)](_0x319e7d(0x13e)),this[_0x319e7d(0x192)]());}[_0x29ea9a(0x178)](){var _0x2355c5=_0x29ea9a;this[_0x2355c5(0x171)]===_0x2355c5(0x13e)&&this[_0x2355c5(0x139)]();}[_0x29ea9a(0x100)](_0x9946a1){var _0x5e3cb2=_0x29ea9a;const {presenter:_0x8feeef}=_0x9946a1['data'],_0x484067=this[_0x5e3cb2(0xf7)][_0x5e3cb2(0x18e)]();this['_presenter']=_0x8feeef,_0x8feeef===_0x484067?(this[_0x5e3cb2(0x139)](),this['_startPresenting']()):this[_0x5e3cb2(0x171)]!==_0x5e3cb2(0xfa)&&(this[_0x5e3cb2(0x165)](),this['_startFollowing']());}[_0x29ea9a(0x145)](){var _0x517ee2=_0x29ea9a;const _0x139f05={'eventID':_0x4ba672[_0x517ee2(0x193)]};this[_0x517ee2(0xf7)][_0x517ee2(0xef)](_0x139f05,this[_0x517ee2(0x189)]);}[_0x29ea9a(0x179)](){var _0x4a90a8=_0x29ea9a;this[_0x4a90a8(0x13c)]=null,this['_status']!==_0x4a90a8(0x105)&&this['_beIdle']();}[_0x29ea9a(0x11e)](_0x59f989){var _0x50d831=_0x29ea9a;if(this[_0x50d831(0x171)]===_0x50d831(0x13e)&&this[_0x50d831(0x13c)]===_0x59f989[_0x50d831(0x120)][_0x50d831(0x18c)]){const _0x2eb3eb=_0x3bfe1e(_0x59f989[_0x50d831(0x120)])[_0x50d831(0x11a)]['reverse']()[_0x50d831(0xfc)](_0x170a2c=>_0x170a2c['id']===_0x438976['id']);if(_0x2eb3eb){const _0xe99f74=_0x2eb3eb['params'][_0x50d831(0x166)],_0x4181ae=_0x2eb3eb[_0x50d831(0x131)]['sheet']['id'];setTimeout(()=>{var _0xcfc9a7=_0x50d831;this[_0xcfc9a7(0x137)]['executeCommand'](_0x4a98a2['id'],{'unitId':_0xe99f74,'subUnitId':_0x4181ae},{'fromCollab':!0x0});});}}}[_0x29ea9a(0xf0)](){var _0x292509=_0x29ea9a;this[_0x292509(0x147)]['next']('presenting');const _0xaf012f=new Map(),_0x156205=this['_commandDisposable']=new _0x20d871();_0x156205[_0x292509(0x154)](_0x5bc629(()=>{var _0x524e09=_0x292509;_0xaf012f[_0x524e09(0xfe)](_0x40801e=>_0x40801e[_0x524e09(0x14f)]()),_0xaf012f[_0x524e09(0x177)]();})),_0x156205['add'](this[_0x292509(0x137)][_0x292509(0x181)](_0x100f14=>{var _0x1fea4f=_0x292509,_0x27232b;if(_0x100f14['type']!==_0x110f27[_0x1fea4f(0x126)]||!this['_liveShareService']['shouldShareOperation'](_0x100f14['id']))return;const {id:_0x18db32}=_0x100f14;let _0x24fe15;_0xaf012f[_0x1fea4f(0x169)](_0x18db32)?_0x24fe15=_0xaf012f[_0x1fea4f(0x103)](_0x18db32):(_0x24fe15=new _0x2ae17d(),_0xaf012f[_0x1fea4f(0x13a)](_0x18db32,_0x24fe15),_0x24fe15['pipe'](_0x66b6b3((_0x27232b=this[_0x1fea4f(0x136)][_0x1fea4f(0x138)](Pe))!=null?_0x27232b:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1fea4f(0x127)](_0x31ba6=>{var _0x187f78=_0x1fea4f;this['_collabSession']['send']({'eventID':_0x4ba672[_0x187f78(0x10a)],'data':{'unitID':this[_0x187f78(0x189)],'operations':{[_0x31ba6['id']]:{'id':_0x31ba6['id'],'params':JSON[_0x187f78(0x167)](_0x31ba6['params'])}}}},this[_0x187f78(0x189)]);})),_0x24fe15[_0x1fea4f(0x140)](_0x100f14);})),this['_liveShareService'][_0x292509(0x10e)](this['_unitID'])[_0x292509(0xfe)](_0x430b5d=>this[_0x292509(0xf7)]['send']({'eventID':_0x4ba672['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x292509(0x189)],'operations':{[_0x430b5d['id']]:{'id':_0x430b5d['id'],'params':JSON[_0x292509(0x167)](_0x430b5d[_0x292509(0x131)])}}}},this[_0x292509(0x189)]));}[_0x29ea9a(0x165)](){var _0x481fa1=_0x29ea9a,_0x52f8a2;this[_0x481fa1(0x147)]['next']('idle'),(_0x52f8a2=this[_0x481fa1(0x182)])==null||_0x52f8a2[_0x481fa1(0x14d)](),this[_0x481fa1(0x182)]=null;}[_0x29ea9a(0x192)](){var _0x24bd24=_0x29ea9a,_0x19333c;(_0x19333c=this[_0x24bd24(0x182)])==null||_0x19333c[_0x24bd24(0x14d)](),this[_0x24bd24(0x147)][_0x24bd24(0x140)](_0x24bd24(0x13e));}[_0x29ea9a(0x18f)](){var _0x201217=_0x29ea9a,_0x5e5564;this['_status$'][_0x201217(0x140)](_0x201217(0x14c)),(_0x5e5564=this[_0x201217(0x182)])==null||_0x5e5564[_0x201217(0x14d)](),this[_0x201217(0x182)]=null;}[_0x29ea9a(0x139)](){var _0x260e9d=_0x29ea9a,_0x939aef;this[_0x260e9d(0x147)]['next'](_0x260e9d(0xfa)),(_0x939aef=this[_0x260e9d(0x182)])==null||_0x939aef[_0x260e9d(0x14d)]();}[_0x29ea9a(0x17b)](_0x283abf){var _0x5517e9=_0x29ea9a;if([_0x5517e9(0x105),_0x5517e9(0xfa),'offline'][_0x5517e9(0x14a)](this['_status'])||!_0x283abf[_0x5517e9(0x120)]['presenter']||_0x283abf[_0x5517e9(0x120)]['presenter']===this[_0x5517e9(0xf7)][_0x5517e9(0x18e)]())return;this['_status']===_0x5517e9(0x14c)&&this[_0x5517e9(0x192)]();const _0x2eab83=_0x283abf[_0x5517e9(0x120)][_0x5517e9(0x15b)];Object[_0x5517e9(0x122)](_0x2eab83)[_0x5517e9(0xfe)](_0x3bee2d=>{var _0x45bd06=_0x5517e9;this[_0x45bd06(0x137)][_0x45bd06(0x170)](_0x3bee2d['id'],_0x3bee2d[_0x45bd06(0x131)]?JSON['parse'](_0x3bee2d[_0x45bd06(0x131)]):null,{'fromCollab':!0x0});});}[_0x29ea9a(0xe6)](){var _0x92359d=_0x29ea9a,_0x642c3c;this[_0x92359d(0x147)][_0x92359d(0x140)]('offline'),(_0x642c3c=this['_commandDisposable'])==null||_0x642c3c[_0x92359d(0x14d)]();}[_0x29ea9a(0xea)](){var _0x45fb61=_0x29ea9a;this[_0x45fb61(0x147)][_0x45fb61(0x140)]('idle'),this[_0x45fb61(0x145)]();}};C=Z([f(0x2,_0x548d47),f(0x3,_0xf646c1(L)),f(0x4,_0x1b0ea8)],C);function Te(){var _0xf9ddca=_0x29ea9a;const _0x45a09a=_0x1c7154(I),_0x5e7ead=_0x1c7154(_0x3459c1),_0xd3caca=_0x47ceac(()=>_0x5e7ead[_0xf9ddca(0x132)](_0x2e7d47[_0xf9ddca(0x17a)]),void 0x0,!0x1,[]),[_0x3b8e9c,_0xd0e9f3]=_0x445d54(null),[_0x224d15,_0x32f3b5]=_0x445d54(h['IDLE']),_0xa80675=_0x5b9881(null);return _0x212ac3(()=>(_0xd3caca&&_0x45a09a[_0xf9ddca(0x134)](_0xd3caca[_0xf9ddca(0x11b)]())[_0xf9ddca(0x151)](_0x206eb9=>{var _0x5bbaba=_0xf9ddca;_0xd0e9f3(_0x206eb9),_0xa80675[_0x5bbaba(0x150)]=_0x206eb9['status$']['subscribe'](_0x5070a4=>{_0x32f3b5(_0x5070a4);});}),()=>{var _0x43059c=_0xf9ddca,_0x182b58;(_0x182b58=_0xa80675[_0x43059c(0x150)])==null||_0x182b58[_0x43059c(0x180)](),_0xa80675[_0x43059c(0x150)]=null;}),[_0xd3caca,_0x45a09a]),_0x3b8e9c?_0x4a136f(_0x1f3e5a,{'align':_0xf9ddca(0x17f),'disabled':_0x224d15===h['OFFLINE'],'className':_0xf9ddca(0x17c),'overlay':_0x4a136f($e,{'status':_0x224d15,'coordinator':_0x3b8e9c}),'children':_0x4a136f('button',{'className':_0x42ee3f(_0xf9ddca(0x16f),{'univer-cursor-not-allowed':_0x224d15===h[_0xf9ddca(0x114)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x224d15!==h['OFFLINE']}),'type':'button','children':_0x4a136f(B,{'className':_0xf9ddca(0xff)})})}):null;}function $e(_0x9a85bb){var _0x33288a=_0x29ea9a;const {status:_0x5817e0,coordinator:_0x333446}=_0x9a85bb;switch(_0x5817e0){case h[_0x33288a(0x109)]:return _0x4a136f(Fe,{'coordinator':_0x333446});case h[_0x33288a(0x14b)]:return _0x4a136f(He,{'coordinator':_0x333446});case h[_0x33288a(0x188)]:return _0x4a136f(je,{'coordinator':_0x333446});case h[_0x33288a(0x114)]:return _0x4a136f(Ve,{});case h[_0x33288a(0x172)]:return _0x4a136f(Ue,{'coordinator':_0x333446});default:return null;}}function Fe(_0xa7ebdc){var _0x1afe45=_0x29ea9a;const {coordinator:_0x2a99e0}=_0xa7ebdc;return _0x6bb112(_0x1f470d,{'children':[_0x4a136f(_0x1afe45(0x112),{'className':_0x1afe45(0x18b),'children':'Present\x20this\x20document'}),_0x4a136f(_0x1b521d,{'onClick':()=>_0x2a99e0[_0x1afe45(0xf6)](),'children':'Start'})]});}function He(_0x203364){var _0x2826aa=_0x29ea9a;const {coordinator:_0x4f5e11}=_0x203364;return _0x6bb112(_0x1f470d,{'children':[_0x4a136f(_0x2826aa(0x112),{'className':_0x2826aa(0x18b),'children':_0x2826aa(0x124)}),_0x4a136f(_0x1b521d,{'onClick':()=>_0x4f5e11[_0x2826aa(0x178)](),'children':_0x2826aa(0xe8)})]});}function je(_0x3c4956){var _0x3fd904=_0x29ea9a;const {coordinator:_0x36814f}=_0x3c4956;return _0x6bb112(_0x1f470d,{'children':[_0x4a136f(_0x3fd904(0x112),{'className':_0x3fd904(0x18b),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4a136f(_0x1b521d,{'variant':_0x3fd904(0x157),'onClick':()=>_0x36814f[_0x3fd904(0x16c)](),'children':_0x3fd904(0x102)})]});}function Ue(_0xf5f8c5){var _0x4d988e=_0x29ea9a;const {coordinator:_0x148e48}=_0xf5f8c5;return _0x6bb112(_0x1f470d,{'children':[_0x4a136f(_0x4d988e(0x112),{'className':_0x4d988e(0x18b),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4a136f(_0x1b521d,{'variant':_0x4d988e(0x12f),'onClick':()=>_0x148e48['stopPresenting'](),'children':_0x4d988e(0x101)})]});}function Ve(){var _0x500d47=_0x29ea9a;return _0x4a136f(_0x1f470d,{'children':_0x500d47(0x12e)});}var Me=Object[_0x29ea9a(0x144)],ke=(_0xafba00,_0x26e348,_0x1b621e,_0x448c0e)=>{var _0x288742=_0x29ea9a;for(var _0x565988=_0x448c0e>0x1?void 0x0:_0x448c0e?Me(_0x26e348,_0x1b621e):_0x26e348,_0xca3a23=_0xafba00[_0x288742(0xfd)]-0x1,_0x1d090b;_0xca3a23>=0x0;_0xca3a23--)(_0x1d090b=_0xafba00[_0xca3a23])&&(_0x565988=_0x1d090b(_0x565988)||_0x565988);return _0x565988;},$=(_0x41c942,_0x2be0b4)=>(_0x4004b3,_0x43d979)=>_0x2be0b4(_0x4004b3,_0x43d979,_0x41c942);let b=class extends _0x31e7a4{constructor(_0x58032c,_0x7039b4){var _0x287563=_0x29ea9a;super(),this[_0x287563(0x176)]=_0x58032c,this['_uiPartsService']=_0x7039b4,this[_0x287563(0x106)]();}[_0x29ea9a(0x106)](){var _0x1f40fb=_0x29ea9a;this[_0x1f40fb(0x11f)](this['_uiPartsService'][_0x1f40fb(0xf4)](_0x591b35[_0x1f40fb(0x12d)],()=>_0x2ac8da(Te,this[_0x1f40fb(0x176)])));}};b=ke([$(0x0,_0xf646c1(_0x4498f3)),$(0x1,_0x410032)],b);var Ge=Object['defineProperty'],We=Object[_0x29ea9a(0x144)],Ye=(_0x3e98b5,_0x5c2556,_0x21b3d4)=>_0x5c2556 in _0x3e98b5?Ge(_0x3e98b5,_0x5c2556,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21b3d4}):_0x3e98b5[_0x5c2556]=_0x21b3d4,Be=(_0x2e2445,_0x33b4e8,_0x325c9c,_0x5e81cd)=>{var _0x7738a5=_0x29ea9a;for(var _0xc12076=_0x5e81cd>0x1?void 0x0:_0x5e81cd?We(_0x33b4e8,_0x325c9c):_0x33b4e8,_0x3a3cfb=_0x2e2445[_0x7738a5(0xfd)]-0x1,_0xb942d8;_0x3a3cfb>=0x0;_0x3a3cfb--)(_0xb942d8=_0x2e2445[_0x3a3cfb])&&(_0xc12076=_0xb942d8(_0xc12076)||_0xc12076);return _0xc12076;},F=(_0x2c32ba,_0x531112)=>(_0x575a22,_0x10a097)=>_0x531112(_0x575a22,_0x10a097,_0x2c32ba),J=(_0x189e2c,_0x38a65c,_0x560644)=>Ye(_0x189e2c,typeof _0x38a65c!='symbol'?_0x38a65c+'':_0x38a65c,_0x560644);function _0x1c84(){var _0xb87989=['displayName','HEADER_MENU','You\x27are\x20offline.','default','event$','params','getCurrentTypeOfUnit$','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','getLiveShareCoordinator','substring','_configService','_commandService','getConfig','_stopFollowing','set','colorChannel1','_presenter','path','following','none','next','LIVESHARE_NEW_HOST','xlink:href','string','getOwnPropertyDescriptor','_fetchOperations','UNIVER_UNKNOWN','_status$','entries','_entities','includes','FOLLOWING','idle','dispose','trim','complete','current','then','map','tag','add','random','hasOwnProperty','text','_config','http://www.w3.org/2000/svg','concat','operations','symbol','9piTwWA','currentColor','7618824eCinFs','svg','createInstance','className','attrs','_reporters','_stopPresenting','unitId','stringify','sessionStatus$','has','1444223VFnhuk','4701655KSNqAh','startFollowing','defIds','dispose$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','executeCommand','_status','PRESENTING','override','_sharedOperations','live-share-icon','_injector','clear','stopFollowing','_handleTerminate','UNIVER_SHEET','_handleOperation','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_univerInstanceService','live-share.config','end','unsubscribe','onCommandExecuted','_commandDisposable','_collabSessionService','7728972HJLjtG','extend','getTypeOfUnitDisposed$','SAME_OPERATION_SHARE_INTERVAL','NOT_FOLLOWING','_unitID','10QvhuZD','univer-mb-3\x20univer-w-full\x20univer-text-sm','memberID','4MrDisJ','getMemberID','_beIdle','registerInitialStateReporter','_init','_startFollowing','LIVESHARE_FETCH_OPERATIONS','univerjs-icon\x20univerjs-icon-','defineProperty','LiveShareIcon','children','_handleOffline','_liveShareService','Stop\x20following','asObservable','_handleOnline','1em','from','getOwnPropertySymbols','url(#$1','send','_startPresenting','idSuffix','indexOf','UniverIcon','registerComponent','getTypeOfUnitAdded$','tryStartPresenting','_collabSession','prototype','toString','not-following','mask','find','length','forEach','univer-size-4','_handleNewHost','Stop\x20presenting','Start\x20following','get','pluginName','presenting','_mountLiveShare','735406bnpZXG','replace','IDLE','LIVESHARE_OPERATION','pipe','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','8515199DXvfLa','getInitialStates','apply','icon','init','div','LIVESHARE_TERMINATE','OFFLINE','call','fill','defs','delete','ONLINE','mutations','getUnitId','0\x200\x2017\x2017','requireSession','_handleNewChangeSets','disposeWithMe','data','4dXQVXl','values','UNIVER_LIVE_SHARE_PLUGIN','You\x27re\x20following\x20the\x20presenter','1962066RNeIFH','OPERATION','subscribe','onStarting','assign','function','shouldShareOperation'];_0x1c84=function(){return _0xb87989;};return _0x1c84();}const Ze=_0x29ea9a(0x123);let O=class extends _0xe5ff50{constructor(_0x270f78=T,_0x1ef3a4,_0x197e8a){var _0x683045=_0x29ea9a;super(),this[_0x683045(0x158)]=_0x270f78,this[_0x683045(0x176)]=_0x1ef3a4,this[_0x683045(0x136)]=_0x197e8a;const {..._0x5c320c}=_0x1fc8bd({},T,this['_config']);this[_0x683045(0x136)]['setConfig'](Oe,_0x5c320c);}[_0x29ea9a(0x128)](){var _0x2a2072=_0x29ea9a;_0x2df774(this[_0x2a2072(0x176)],_0x1e76da([[L],[I],[m],[b]],this['_config'][_0x2a2072(0x173)])),_0x21061e(this[_0x2a2072(0x176)],[[m]]);}['onRendered'](){_0x21061e(this['_injector'],[[b]]);}};J(O,'type',_0x2e7d47[_0x29ea9a(0x146)]),J(O,_0x29ea9a(0x104),Ze),O=Be([_0x484a52(_0x1a961f),F(0x1,_0xf646c1(_0x4498f3)),F(0x2,_0x548d47)],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 _0x38fdac=_0x3225;(function(_0x43f7f1,_0x43057f){var _0x1fe147=_0x3225,_0x2423e3=_0x43f7f1();while(!![]){try{var _0x100605=-parseInt(_0x1fe147(0x1aa))/0x1*(parseInt(_0x1fe147(0x156))/0x2)+parseInt(_0x1fe147(0x16f))/0x3+-parseInt(_0x1fe147(0x177))/0x4*(-parseInt(_0x1fe147(0x13d))/0x5)+-parseInt(_0x1fe147(0x13b))/0x6+-parseInt(_0x1fe147(0x19e))/0x7+parseInt(_0x1fe147(0x17d))/0x8*(parseInt(_0x1fe147(0x19c))/0x9)+parseInt(_0x1fe147(0x141))/0xa*(parseInt(_0x1fe147(0x175))/0xb);if(_0x100605===_0x43057f)break;else _0x2423e3['push'](_0x2423e3['shift']());}catch(_0x545951){_0x2423e3['push'](_0x2423e3['shift']());}}}(_0x18d3,0x6a223));var q=Object[_0x38fdac(0x1c6)],z=(_0x1165ee,_0x95ab4d,_0x48a093)=>_0x95ab4d in _0x1165ee?q(_0x1165ee,_0x95ab4d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x48a093}):_0x1165ee[_0x95ab4d]=_0x48a093,d=(_0x29bee4,_0x34da7b,_0x1f26b7)=>z(_0x29bee4,typeof _0x34da7b!=_0x38fdac(0x13f)?_0x34da7b+'':_0x34da7b,_0x1f26b7);import{CollaborationSessionService as _0x540391,SessionStatus as _0x3558bd,UniverCollaborationClientPlugin as _0xa92360}from'@univerjs-pro/collaboration-client';import{Disposable as _0x1110e6,toDisposable as _0x528b21,Inject as _0x587c17,IUniverInstanceService as _0x28959b,Injector as _0x34f5e9,IConfigService as _0x617f45,ICommandService as _0x2f2a0d,RxDisposable as _0x580711,UniverInstanceType as _0x49ab6b,DisposableCollection as _0x58390b,CommandType as _0x47d008,DependentOn as _0x2a1f58,Plugin as _0x1a2767,merge as _0x1ec0c2,registerDependencies as _0x2b36ac,mergeOverrideWithDependencies as _0x5537f3,touchDependencies as _0x328c8c}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3706e8,InsertSheetMutation as _0x5c844d}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x51f780,SetScrollOperation as _0xae1619}from'@univerjs/sheets-ui';import{useDependency as _0x15a14d,useObservable as _0x114fe7,IUIPartsService as _0x139622,BuiltInUIPart as _0x249236,connectInjector as _0x4621b9}from'@univerjs/ui';function _0x18d3(){var _0x475338=['delete','tryStartPresenting','_unitID','_reporters','IDLE','univer-mb-3\x20univer-w-full\x20univer-text-sm','reverse','181283qWmgvI','1em','sessionStatus$','getOwnPropertyDescriptor','mask','className','LIVESHARE_REQUEST_HOST','PRESENTING','You\x27are\x20offline.','call','length','url(#$1','then','UNIVER_UNKNOWN','_startFollowing','_handleOffline','_init','forEach','use','status$','next','pipe','dispose','getValue','getCurrentTypeOfUnit$','children','Present\x20this\x20document','UniverIcon','defineProperty','trim','asObservable','getMemberID','_presenter','onStarting','getTypeOfUnitDisposed$','NOT_FOLLOWING','current','LIVESHARE_OPERATION','_beIdle','defs','You\x27re\x20not\x20following\x20the\x20presenter','_handleNewHost','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','xlink:href','path','stopFollowing','icon','univerjs-icon\x20univerjs-icon-','substring','concat','attrs','LiveShareIcon','has','offline','displayName','add','_status$','getConfig','event$','propertyIsEnumerable','div','get','Stop\x20presenting','unitId','subscribe','presenting','3893310abLuYz','getLiveShareCoordinator','815hDDuPt','getUnitId','symbol','button','22710CNAKLw','live-share.config','none','_entities','not-following','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','_uiPartsService','fill','currentColor','mutations','stopPresenting','idSuffix','replace','_status','defIds','string','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','createInstance','random','registerComponent','UNIVER_SHEET','6TAWPsu','_handleTerminate','LIVESHARE_FETCH_OPERATIONS','evenodd','following','default','_configService','_liveShareService','SAME_OPERATION_SHARE_INTERVAL','extend','_injector','disposeWithMe','_sharedOperations','getInitialStates','executeCommand','_univerInstanceService','type','init','getTypeOfUnitAdded$','stringify','hasOwnProperty','prototype','includes','_handleOperation','_mountLiveShare','595704QSQgCG','OPERATION','live-share-icon','memberID','send','apply','8217tNYnhw','params','2564YphDQz','LIVESHARE_TERMINATE','OFFLINE','_config','setConfig','indexOf','16rzsfnc','map','svg','_fetchOperations','registerSharedOperation','getOwnPropertySymbols','dispose$','Start\x20following','_handleOnline','tag','NEW_CHANGESETS','_startPresenting','registerInitialStateReporter','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\x20following\x20the\x20presenter','pluginName','_stopPresenting','FOLLOWING','assign','find','_commandService','entries','presenter','values','colorChannel1','_startLiveShareCoordinator','_collabSession','_handleNewChangeSets','_collabSessionService','idle','data','1184679DMGleM','_commandDisposable','4447051aUMXmB','clear','shouldShareOperation','_stopFollowing','LIVESHARE_NEW_HOST'];_0x18d3=function(){return _0x475338;};return _0x18d3();}import{jsx as _0x470645,jsxs as _0x4d68a9,Fragment as _0x4e94f2}from'react/jsx-runtime';import{Dropdown as _0x1c048c,clsx as _0x3f870f,Button as _0xc2e2b3}from'@univerjs/design';import{forwardRef as _0x2cf43c,useRef as _0x1eea52,createElement as _0x211e6f,useState as _0x377c51,useEffect as _0x1cff21}from'react';import{CollaborationEvent as _0x56b0fd,parseProtocolChangeset as _0x41ab39}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x45c1a3,Subject as _0x296bd3}from'rxjs';import{takeUntil as _0x3ba775,throttleTime as _0x4291c}from'rxjs/operators';const Oe=_0x38fdac(0x142),T={};class L extends _0x1110e6{constructor(){var _0x10dd16=_0x38fdac;super(...arguments),d(this,_0x10dd16(0x162),new Set()),d(this,_0x10dd16(0x1a6),new Set());}[_0x38fdac(0x181)](_0x16f8a5){var _0x4421af=_0x38fdac;return this[_0x4421af(0x162)]['add'](_0x16f8a5),_0x528b21(()=>this['_sharedOperations'][_0x4421af(0x1a3)](_0x16f8a5));}[_0x38fdac(0x189)](_0x345d2d){var _0x1f71ae=_0x38fdac;return this[_0x1f71ae(0x1a6)][_0x1f71ae(0x130)](_0x345d2d),_0x528b21(()=>this['_reporters'][_0x1f71ae(0x1a3)](_0x345d2d));}[_0x38fdac(0x1a0)](_0x5468d8){return this['_sharedOperations']['has'](_0x5468d8);}['getInitialStates'](_0x287868){var _0x59ab9d=_0x38fdac;return Array['from'](this[_0x59ab9d(0x1a6)])[_0x59ab9d(0x17e)](_0x52557e=>_0x52557e(_0x287868));}}var Ee=Object[_0x38fdac(0x1ad)],we=(_0x5e2f5a,_0x15565d,_0xa1e4c1,_0x1757c9)=>{for(var _0x4d67cb=_0x1757c9>0x1?void 0x0:_0x1757c9?Ee(_0x15565d,_0xa1e4c1):_0x15565d,_0x134f4d=_0x5e2f5a['length']-0x1,_0x4a0d10;_0x134f4d>=0x0;_0x134f4d--)(_0x4a0d10=_0x5e2f5a[_0x134f4d])&&(_0x4d67cb=_0x4a0d10(_0x4d67cb)||_0x4d67cb);return _0x4d67cb;},Ne=(_0x12633c,_0x1548e1)=>(_0x10e543,_0x5a88d7)=>_0x1548e1(_0x10e543,_0x5a88d7,_0x12633c);let m=class extends _0x1110e6{constructor(_0x4a0afd){var _0x5e71a5=_0x38fdac;super(),this['_liveShareService']=_0x4a0afd,this[_0x5e71a5(0x1ba)]();}['_init'](){[_0x51f780['id'],_0xae1619['id'],_0x3706e8['id']]['forEach'](_0x1da73d=>{var _0x3933a6=_0x3225;this['disposeWithMe'](this['_liveShareService'][_0x3933a6(0x181)](_0x1da73d));});}};m=we([Ne(0x0,_0x587c17(L))],m);var c=function(){var _0x553297=_0x38fdac;return c=Object[_0x553297(0x18f)]||function(_0x42c90f){var _0x3a4a51=_0x553297;for(var _0x212e5f,_0x2e3db0=0x1,_0x4ccdef=arguments[_0x3a4a51(0x1b4)];_0x2e3db0<_0x4ccdef;_0x2e3db0++){_0x212e5f=arguments[_0x2e3db0];for(var _0x5104e9 in _0x212e5f)Object[_0x3a4a51(0x16b)][_0x3a4a51(0x16a)]['call'](_0x212e5f,_0x5104e9)&&(_0x42c90f[_0x5104e9]=_0x212e5f[_0x5104e9]);}return _0x42c90f;},c[_0x553297(0x174)](this,arguments);},Ce=function(_0x473005,_0xc29f35){var _0x30d64b=_0x38fdac,_0xdb17c0={};for(var _0x4554b9 in _0x473005)Object[_0x30d64b(0x16b)][_0x30d64b(0x16a)][_0x30d64b(0x1b3)](_0x473005,_0x4554b9)&&_0xc29f35['indexOf'](_0x4554b9)<0x0&&(_0xdb17c0[_0x4554b9]=_0x473005[_0x4554b9]);if(_0x473005!=null&&typeof Object[_0x30d64b(0x182)]=='function'){for(var _0x34967e=0x0,_0x4554b9=Object[_0x30d64b(0x182)](_0x473005);_0x34967e<_0x4554b9['length'];_0x34967e++)_0xc29f35[_0x30d64b(0x17c)](_0x4554b9[_0x34967e])<0x0&&Object['prototype'][_0x30d64b(0x134)][_0x30d64b(0x1b3)](_0x473005,_0x4554b9[_0x34967e])&&(_0xdb17c0[_0x4554b9[_0x34967e]]=_0x473005[_0x4554b9[_0x34967e]]);}return _0xdb17c0;},W=_0x2cf43c(function(_0x42172b,_0x2119e6){var _0x3943df=_0x38fdac,_0x2e3ffa=_0x42172b[_0x3943df(0x127)],_0x5e80eb=_0x42172b['id'],_0x54962e=_0x42172b[_0x3943df(0x1af)],_0x43e4b4=_0x42172b[_0x3943df(0x15f)],_0x472971=Ce(_0x42172b,[_0x3943df(0x127),'id',_0x3943df(0x1af),_0x3943df(0x15f)]),_0x27244f=_0x3943df(0x128)[_0x3943df(0x12a)](_0x5e80eb,'\x20')['concat'](_0x54962e||'')[_0x3943df(0x1c7)](),_0x43e9f8=_0x1eea52('_'[_0x3943df(0x12a)](Le()));return Y(_0x2e3ffa,''[_0x3943df(0x12a)](_0x5e80eb),{'defIds':_0x2e3ffa[_0x3943df(0x14f)],'idSuffix':_0x43e9f8['current']},c({'ref':_0x2119e6,'className':_0x27244f},_0x472971),_0x43e4b4);});function Y(_0x34dc39,_0x197fc5,_0xc83ee6,_0x30fe45,_0x40e239){var _0x205ab9=_0x38fdac;return _0x211e6f(_0x34dc39[_0x205ab9(0x186)],c(c({'key':_0x197fc5},De(_0x34dc39,_0xc83ee6,_0x40e239)),_0x30fe45),(xe(_0x34dc39,_0xc83ee6)[_0x205ab9(0x1c3)]||[])[_0x205ab9(0x17e)](function(_0x21b483,_0x38942a){var _0x117acb=_0x205ab9;return Y(_0x21b483,''[_0x117acb(0x12a)](_0x197fc5,'-')[_0x117acb(0x12a)](_0x34dc39[_0x117acb(0x186)],'-')[_0x117acb(0x12a)](_0x38942a),_0xc83ee6,void 0x0,_0x40e239);}));}function De(_0x4ff734,_0x5189dc,_0x2163b9){var _0x7d173a=_0x38fdac,_0x2866bb=c({},_0x4ff734[_0x7d173a(0x12b)]);_0x2163b9!=null&&_0x2163b9[_0x7d173a(0x195)]&&_0x2866bb[_0x7d173a(0x148)]===_0x7d173a(0x195)&&(_0x2866bb['fill']=_0x2163b9['colorChannel1']),_0x4ff734[_0x7d173a(0x186)]==='mask'&&_0x2866bb['id']&&(_0x2866bb['id']=_0x2866bb['id']+_0x5189dc[_0x7d173a(0x14c)]),Object[_0x7d173a(0x192)](_0x2866bb)[_0x7d173a(0x1bb)](function(_0x5d6a8f){var _0x1bdb20=_0x7d173a,_0x2f63f8=_0x5d6a8f[0x0],_0x15548=_0x5d6a8f[0x1];_0x2f63f8===_0x1bdb20(0x1ae)&&typeof _0x15548==_0x1bdb20(0x150)&&(_0x2866bb[_0x2f63f8]=_0x15548[_0x1bdb20(0x14d)](/url\(#(.*)\)/,_0x1bdb20(0x1b5)['concat'](_0x5189dc['idSuffix'],')')));});var _0x21a31a=_0x5189dc[_0x7d173a(0x14f)];return!_0x21a31a||_0x21a31a[_0x7d173a(0x1b4)]===0x0||(_0x4ff734['tag']===_0x7d173a(0x1bc)&&_0x2866bb[_0x7d173a(0x124)]&&(_0x2866bb[_0x7d173a(0x124)]=_0x2866bb['xlink:href']+_0x5189dc['idSuffix']),Object[_0x7d173a(0x192)](_0x2866bb)['forEach'](function(_0x5837c7){var _0x3410ab=_0x7d173a,_0x2ed41d=_0x5837c7[0x0],_0x2cfb66=_0x5837c7[0x1];typeof _0x2cfb66=='string'&&(_0x2866bb[_0x2ed41d]=_0x2cfb66[_0x3410ab(0x14d)](/url\(#(.*)\)/,_0x3410ab(0x1b5)[_0x3410ab(0x12a)](_0x5189dc[_0x3410ab(0x14c)],')')));})),_0x2866bb;}function xe(_0x552687,_0x532a60){var _0x4f49ad=_0x38fdac,_0x305d6d,_0x33ff8a=_0x532a60['defIds'];return!_0x33ff8a||_0x33ff8a[_0x4f49ad(0x1b4)]===0x0?_0x552687:_0x552687[_0x4f49ad(0x186)]===_0x4f49ad(0x1d1)&&(!((_0x305d6d=_0x552687[_0x4f49ad(0x1c3)])===null||_0x305d6d===void 0x0)&&_0x305d6d['length'])?c(c({},_0x552687),{'children':_0x552687[_0x4f49ad(0x1c3)][_0x4f49ad(0x17e)](function(_0x4952ca){var _0x243a26=_0x4f49ad;return typeof _0x4952ca[_0x243a26(0x12b)]['id']==_0x243a26(0x150)&&_0x33ff8a&&_0x33ff8a[_0x243a26(0x16c)](_0x4952ca[_0x243a26(0x12b)]['id'])?c(c({},_0x4952ca),{'attrs':c(c({},_0x4952ca[_0x243a26(0x12b)]),{'id':_0x4952ca[_0x243a26(0x12b)]['id']+_0x532a60[_0x243a26(0x14c)]})}):_0x4952ca;})}):_0x552687;}function Le(){var _0x16d28f=_0x38fdac;return Math[_0x16d28f(0x153)]()['toString'](0x24)[_0x16d28f(0x129)](0x2,0x8);}W[_0x38fdac(0x12f)]=_0x38fdac(0x1c5);var ye={'tag':_0x38fdac(0x17f),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x38fdac(0x143),'viewBox':'0\x200\x2017\x2017','width':'1em','height':_0x38fdac(0x1ab)},'children':[{'tag':'path','attrs':{'fill':_0x38fdac(0x149),'d':_0x38fdac(0x18a)}},{'tag':_0x38fdac(0x125),'attrs':{'fill':_0x38fdac(0x149),'d':_0x38fdac(0x146),'fillRule':_0x38fdac(0x159),'clipRule':_0x38fdac(0x159)}}]},B=_0x2cf43c(function(_0x20e22d,_0x598c1b){var _0x5cbe7b=_0x38fdac;return _0x211e6f(W,Object[_0x5cbe7b(0x18f)]({},_0x20e22d,{'id':_0x5cbe7b(0x171),'ref':_0x598c1b,'icon':ye}));});B[_0x38fdac(0x12f)]=_0x38fdac(0x12c);var Re=Object[_0x38fdac(0x1ad)],Z=(_0x2a70a7,_0x3ac574,_0x48825a,_0x33d9e8)=>{var _0x12fb74=_0x38fdac;for(var _0x46d193=_0x33d9e8>0x1?void 0x0:_0x33d9e8?Re(_0x3ac574,_0x48825a):_0x3ac574,_0x5a5aa8=_0x2a70a7[_0x12fb74(0x1b4)]-0x1,_0x145ff2;_0x5a5aa8>=0x0;_0x5a5aa8--)(_0x145ff2=_0x2a70a7[_0x5a5aa8])&&(_0x46d193=_0x145ff2(_0x46d193)||_0x46d193);return _0x46d193;},f=(_0x317849,_0x31a612)=>(_0x4ea18d,_0x10818a)=>_0x31a612(_0x4ea18d,_0x10818a,_0x317849);let I=class extends _0x580711{constructor(_0x1a6e40,_0x3f9350,_0x3ddd5){var _0x5013cc=_0x38fdac;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x1a6e40,this[_0x5013cc(0x160)]=_0x3f9350,this[_0x5013cc(0x199)]=_0x3ddd5,this['_init']());}async['getLiveShareCoordinator'](_0x359cf5){var _0x221e5e=_0x38fdac;return this[_0x221e5e(0x144)][_0x221e5e(0x12d)](_0x359cf5)||await this['_startLiveShareCoordinator'](_0x359cf5),this[_0x221e5e(0x144)][_0x221e5e(0x136)](_0x359cf5);}['_init'](){var _0x26c3ca=_0x38fdac;this[_0x26c3ca(0x165)][_0x26c3ca(0x168)](_0x49ab6b[_0x26c3ca(0x155)])[_0x26c3ca(0x1bf)](_0x3ba775(this[_0x26c3ca(0x183)]))[_0x26c3ca(0x139)](async _0x2b1f29=>{var _0x456d51=_0x26c3ca;const _0x5249b0=_0x2b1f29[_0x456d51(0x13e)]();this[_0x456d51(0x144)][_0x456d51(0x12d)](_0x5249b0)||this[_0x456d51(0x196)](_0x5249b0);}),this[_0x26c3ca(0x165)][_0x26c3ca(0x1cc)](_0x49ab6b[_0x26c3ca(0x155)])[_0x26c3ca(0x1bf)](_0x3ba775(this[_0x26c3ca(0x183)]))[_0x26c3ca(0x139)](_0x1cfcde=>{var _0x597213=_0x26c3ca;const _0x214cc0=_0x1cfcde[_0x597213(0x13e)](),_0x2b9993=this[_0x597213(0x144)]['get'](_0x214cc0);_0x2b9993==null||_0x2b9993[_0x597213(0x1c0)]();});}async['_startLiveShareCoordinator'](_0x31f950){var _0x502b25=_0x38fdac;const _0x587a4e=await this[_0x502b25(0x199)]['requireSession'](_0x31f950),_0x371de3=this[_0x502b25(0x160)][_0x502b25(0x152)](C,_0x31f950,_0x587a4e);return _0x371de3[_0x502b25(0x167)](),this['_entities']['set'](_0x31f950,_0x371de3),_0x371de3;}};I=Z([f(0x0,_0x28959b),f(0x1,_0x587c17(_0x34f5e9)),f(0x2,_0x587c17(_0x540391))],I);var h=(_0x422487=>(_0x422487[_0x38fdac(0x179)]=_0x38fdac(0x12e),_0x422487[_0x38fdac(0x1a7)]=_0x38fdac(0x19a),_0x422487['FOLLOWING']=_0x38fdac(0x15a),_0x422487[_0x38fdac(0x1cd)]=_0x38fdac(0x145),_0x422487[_0x38fdac(0x1b1)]='presenting',_0x422487))(h||{});const Pe=_0x38fdac(0x15e),Ae=0xc8;let C=class extends _0x580711{constructor(_0x2c5270,_0x1c0085,_0xd29d5a,_0x1b1f6d,_0x2cce58){var _0x55e3d2=_0x38fdac;super(),d(this,'_status$',new _0x45c1a3(_0x55e3d2(0x19a))),d(this,'status$',this[_0x55e3d2(0x131)][_0x55e3d2(0x1c8)]()),d(this,_0x55e3d2(0x1ba),!0x1),d(this,'_commandDisposable',null),d(this,'_presenter',null),(this[_0x55e3d2(0x1a5)]=_0x2c5270,this[_0x55e3d2(0x197)]=_0x1c0085,this[_0x55e3d2(0x15c)]=_0xd29d5a,this[_0x55e3d2(0x15d)]=_0x1b1f6d,this['_commandService']=_0x2cce58);}get[_0x38fdac(0x14e)](){var _0x506ff5=_0x38fdac;return this[_0x506ff5(0x131)][_0x506ff5(0x1c1)]();}[_0x38fdac(0x1c0)](){var _0x103fd9=_0x38fdac,_0x146b5a;(_0x146b5a=this[_0x103fd9(0x19d)])==null||_0x146b5a[_0x103fd9(0x1c0)](),this[_0x103fd9(0x131)][_0x103fd9(0x1be)]('idle'),this['_status$']['complete']();}['init'](){var _0x28d354=_0x38fdac;this[_0x28d354(0x1ba)]||(this[_0x28d354(0x1ba)]=!0x0,this[_0x28d354(0x197)][_0x28d354(0x1ac)][_0x28d354(0x1bf)](_0x3ba775(this[_0x28d354(0x183)]))[_0x28d354(0x139)](_0xa4d2a7=>{var _0x1c9081=_0x28d354;switch(_0xa4d2a7){case _0x3558bd['OFFLINE']:this[_0x1c9081(0x1b9)]();break;case _0x3558bd['ONLINE']:this[_0x1c9081(0x185)]();break;}}),this[_0x28d354(0x197)][_0x28d354(0x133)][_0x28d354(0x1bf)](_0x3ba775(this['dispose$']))['subscribe'](_0x2e9f3e=>{var _0x56f83a=_0x28d354;const {eventID:_0x2ce821}=_0x2e9f3e;switch(_0x2ce821){case _0x56b0fd[_0x56f83a(0x1a2)]:this[_0x56f83a(0x122)](_0x2e9f3e);break;case _0x56b0fd[_0x56f83a(0x1cf)]:this[_0x56f83a(0x16d)](_0x2e9f3e);break;case _0x56b0fd['LIVESHARE_TERMINATE']:this[_0x56f83a(0x157)]();break;case _0x56b0fd[_0x56f83a(0x187)]:this[_0x56f83a(0x198)](_0x2e9f3e);break;}}));}[_0x38fdac(0x1a4)](){var _0x1f3c26=_0x38fdac;this[_0x1f3c26(0x197)]['send']({'eventID':_0x56b0fd[_0x1f3c26(0x1b0)],'data':{'unitID':this[_0x1f3c26(0x1a5)],'userID':this[_0x1f3c26(0x197)]['getMemberID']()}},this[_0x1f3c26(0x1a5)]);}[_0x38fdac(0x14b)](){var _0x4e20e3=_0x38fdac;this[_0x4e20e3(0x14e)]==='presenting'&&(this['_status$'][_0x4e20e3(0x1be)](_0x4e20e3(0x19a)),this[_0x4e20e3(0x197)][_0x4e20e3(0x173)]({'eventID':_0x56b0fd[_0x4e20e3(0x178)],'data':{'unitID':this[_0x4e20e3(0x1a5)]}},this['_unitID']));}['startFollowing'](){var _0x4efd87=_0x38fdac;this[_0x4efd87(0x14e)]===_0x4efd87(0x145)&&(this[_0x4efd87(0x131)]['next'](_0x4efd87(0x15a)),this['_startFollowing']());}[_0x38fdac(0x126)](){var _0x4af8c2=_0x38fdac;this[_0x4af8c2(0x14e)]===_0x4af8c2(0x15a)&&this[_0x4af8c2(0x1a1)]();}[_0x38fdac(0x122)](_0x348b4e){var _0x399ac7=_0x38fdac;const {presenter:_0x4b241c}=_0x348b4e['data'],_0x415098=this[_0x399ac7(0x197)][_0x399ac7(0x1c9)]();this[_0x399ac7(0x1ca)]=_0x4b241c,_0x4b241c===_0x415098?(this[_0x399ac7(0x1a1)](),this[_0x399ac7(0x188)]()):this['_status']!==_0x399ac7(0x145)&&(this[_0x399ac7(0x18d)](),this[_0x399ac7(0x1b8)]());}['_fetchOperations'](){var _0x1e9cdf=_0x38fdac;const _0x2d2132={'eventID':_0x56b0fd[_0x1e9cdf(0x158)]};this[_0x1e9cdf(0x197)][_0x1e9cdf(0x173)](_0x2d2132,this[_0x1e9cdf(0x1a5)]);}[_0x38fdac(0x157)](){var _0x10da41=_0x38fdac;this[_0x10da41(0x1ca)]=null,this[_0x10da41(0x14e)]!=='presenting'&&this[_0x10da41(0x1d0)]();}[_0x38fdac(0x198)](_0x5a6ef3){var _0x34b754=_0x38fdac;if(this[_0x34b754(0x14e)]===_0x34b754(0x15a)&&this['_presenter']===_0x5a6ef3[_0x34b754(0x19b)][_0x34b754(0x172)]){const _0x51900b=_0x41ab39(_0x5a6ef3[_0x34b754(0x19b)])[_0x34b754(0x14a)][_0x34b754(0x1a9)]()[_0x34b754(0x190)](_0x505897=>_0x505897['id']===_0x5c844d['id']);if(_0x51900b){const _0x106365=_0x51900b['params'][_0x34b754(0x138)],_0x544c6d=_0x51900b[_0x34b754(0x176)]['sheet']['id'];setTimeout(()=>{var _0x3ec7e0=_0x34b754;this[_0x3ec7e0(0x191)][_0x3ec7e0(0x164)](_0x3706e8['id'],{'unitId':_0x106365,'subUnitId':_0x544c6d},{'fromCollab':!0x0});});}}}[_0x38fdac(0x188)](){var _0x362cab=_0x38fdac;this[_0x362cab(0x131)][_0x362cab(0x1be)]('presenting');const _0x15e008=new Map(),_0x3ddfa3=this[_0x362cab(0x19d)]=new _0x58390b();_0x3ddfa3[_0x362cab(0x130)](_0x528b21(()=>{var _0x513009=_0x362cab;_0x15e008[_0x513009(0x1bb)](_0x4071c5=>_0x4071c5['complete']()),_0x15e008[_0x513009(0x19f)]();})),_0x3ddfa3[_0x362cab(0x130)](this[_0x362cab(0x191)]['onCommandExecuted'](_0x5f1717=>{var _0x3473bc=_0x362cab,_0x4e27b8;if(_0x5f1717[_0x3473bc(0x166)]!==_0x47d008[_0x3473bc(0x170)]||!this['_liveShareService'][_0x3473bc(0x1a0)](_0x5f1717['id']))return;const {id:_0x59ec6c}=_0x5f1717;let _0x3ee936;_0x15e008[_0x3473bc(0x12d)](_0x59ec6c)?_0x3ee936=_0x15e008['get'](_0x59ec6c):(_0x3ee936=new _0x296bd3(),_0x15e008['set'](_0x59ec6c,_0x3ee936),_0x3ee936[_0x3473bc(0x1bf)](_0x4291c((_0x4e27b8=this[_0x3473bc(0x15c)][_0x3473bc(0x132)](Pe))!=null?_0x4e27b8:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3473bc(0x139)](_0x369e4e=>{var _0x2583da=_0x3473bc;this[_0x2583da(0x197)][_0x2583da(0x173)]({'eventID':_0x56b0fd[_0x2583da(0x1cf)],'data':{'unitID':this[_0x2583da(0x1a5)],'operations':{[_0x369e4e['id']]:{'id':_0x369e4e['id'],'params':JSON[_0x2583da(0x169)](_0x369e4e[_0x2583da(0x176)])}}}},this[_0x2583da(0x1a5)]);})),_0x3ee936[_0x3473bc(0x1be)](_0x5f1717);})),this[_0x362cab(0x15d)][_0x362cab(0x163)](this[_0x362cab(0x1a5)])[_0x362cab(0x1bb)](_0x4b74b1=>this['_collabSession']['send']({'eventID':_0x56b0fd[_0x362cab(0x1cf)],'data':{'unitID':this[_0x362cab(0x1a5)],'operations':{[_0x4b74b1['id']]:{'id':_0x4b74b1['id'],'params':JSON[_0x362cab(0x169)](_0x4b74b1['params'])}}}},this[_0x362cab(0x1a5)]));}[_0x38fdac(0x18d)](){var _0x305684=_0x38fdac,_0x4c38b0;this[_0x305684(0x131)]['next'](_0x305684(0x19a)),(_0x4c38b0=this['_commandDisposable'])==null||_0x4c38b0['dispose'](),this[_0x305684(0x19d)]=null;}[_0x38fdac(0x1b8)](){var _0x2e06fb=_0x38fdac,_0x4ce2f3;(_0x4ce2f3=this[_0x2e06fb(0x19d)])==null||_0x4ce2f3[_0x2e06fb(0x1c0)](),this['_status$'][_0x2e06fb(0x1be)]('following');}['_beIdle'](){var _0x2e5333=_0x38fdac,_0x30024d;this[_0x2e5333(0x131)][_0x2e5333(0x1be)](_0x2e5333(0x19a)),(_0x30024d=this['_commandDisposable'])==null||_0x30024d[_0x2e5333(0x1c0)](),this[_0x2e5333(0x19d)]=null;}['_stopFollowing'](){var _0x4c52fe=_0x38fdac,_0x9febb4;this[_0x4c52fe(0x131)][_0x4c52fe(0x1be)](_0x4c52fe(0x145)),(_0x9febb4=this[_0x4c52fe(0x19d)])==null||_0x9febb4[_0x4c52fe(0x1c0)]();}[_0x38fdac(0x16d)](_0xbf79e6){var _0x40f8fc=_0x38fdac;if([_0x40f8fc(0x13a),_0x40f8fc(0x145),'offline'][_0x40f8fc(0x16c)](this[_0x40f8fc(0x14e)])||!_0xbf79e6[_0x40f8fc(0x19b)][_0x40f8fc(0x193)]||_0xbf79e6[_0x40f8fc(0x19b)][_0x40f8fc(0x193)]===this[_0x40f8fc(0x197)][_0x40f8fc(0x1c9)]())return;this[_0x40f8fc(0x14e)]===_0x40f8fc(0x19a)&&this['_startFollowing']();const _0x2354ff=_0xbf79e6[_0x40f8fc(0x19b)]['operations'];Object[_0x40f8fc(0x194)](_0x2354ff)[_0x40f8fc(0x1bb)](_0xca5dff=>{var _0x408e36=_0x40f8fc;this[_0x408e36(0x191)]['executeCommand'](_0xca5dff['id'],_0xca5dff[_0x408e36(0x176)]?JSON['parse'](_0xca5dff[_0x408e36(0x176)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x1f0aee=_0x38fdac,_0x4fe53a;this['_status$'][_0x1f0aee(0x1be)](_0x1f0aee(0x12e)),(_0x4fe53a=this['_commandDisposable'])==null||_0x4fe53a[_0x1f0aee(0x1c0)]();}[_0x38fdac(0x185)](){var _0x363b58=_0x38fdac;this[_0x363b58(0x131)][_0x363b58(0x1be)](_0x363b58(0x19a)),this[_0x363b58(0x180)]();}};C=Z([f(0x2,_0x617f45),f(0x3,_0x587c17(L)),f(0x4,_0x2f2a0d)],C);function Te(){var _0x4b23e6=_0x38fdac;const _0x2930a9=_0x15a14d(I),_0xf04f2d=_0x15a14d(_0x28959b),_0x1bba02=_0x114fe7(()=>_0xf04f2d[_0x4b23e6(0x1c2)](_0x49ab6b[_0x4b23e6(0x155)]),void 0x0,!0x1,[]),[_0x2fc2e9,_0x458a51]=_0x377c51(null),[_0x569108,_0x50f680]=_0x377c51(h[_0x4b23e6(0x1a7)]),_0x501300=_0x1eea52(null);return _0x1cff21(()=>(_0x1bba02&&_0x2930a9[_0x4b23e6(0x13c)](_0x1bba02[_0x4b23e6(0x13e)]())[_0x4b23e6(0x1b6)](_0x1208a3=>{var _0x38f181=_0x4b23e6;_0x458a51(_0x1208a3),_0x501300['current']=_0x1208a3[_0x38f181(0x1bd)][_0x38f181(0x139)](_0x21ad9e=>{_0x50f680(_0x21ad9e);});}),()=>{var _0x21e91f=_0x4b23e6,_0x1d11d7;(_0x1d11d7=_0x501300[_0x21e91f(0x1ce)])==null||_0x1d11d7['unsubscribe'](),_0x501300[_0x21e91f(0x1ce)]=null;}),[_0x1bba02,_0x2930a9]),_0x2fc2e9?_0x470645(_0x1c048c,{'align':'end','disabled':_0x569108===h[_0x4b23e6(0x179)],'className':_0x4b23e6(0x123),'overlay':_0x470645($e,{'status':_0x569108,'coordinator':_0x2fc2e9}),'children':_0x470645(_0x4b23e6(0x140),{'className':_0x3f870f(_0x4b23e6(0x151),{'univer-cursor-not-allowed':_0x569108===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x569108!==h[_0x4b23e6(0x179)]}),'type':'button','children':_0x470645(B,{'className':'univer-size-4'})})}):null;}function $e(_0xe20599){var _0x2f8a0e=_0x38fdac;const {status:_0x309702,coordinator:_0x76fd3d}=_0xe20599;switch(_0x309702){case h['IDLE']:return _0x470645(Fe,{'coordinator':_0x76fd3d});case h[_0x2f8a0e(0x18e)]:return _0x470645(He,{'coordinator':_0x76fd3d});case h[_0x2f8a0e(0x1cd)]:return _0x470645(je,{'coordinator':_0x76fd3d});case h[_0x2f8a0e(0x179)]:return _0x470645(Ve,{});case h[_0x2f8a0e(0x1b1)]:return _0x470645(Ue,{'coordinator':_0x76fd3d});default:return null;}}function Fe(_0x5dc96a){var _0x45c0ff=_0x38fdac;const {coordinator:_0x14d00f}=_0x5dc96a;return _0x4d68a9(_0x4e94f2,{'children':[_0x470645(_0x45c0ff(0x135),{'className':_0x45c0ff(0x1a8),'children':_0x45c0ff(0x1c4)}),_0x470645(_0xc2e2b3,{'onClick':()=>_0x14d00f[_0x45c0ff(0x1a4)](),'children':'Start'})]});}function _0x3225(_0x421f7c,_0xc022ef){var _0x18d3a5=_0x18d3();return _0x3225=function(_0x322586,_0x1889b8){_0x322586=_0x322586-0x122;var _0x1644de=_0x18d3a5[_0x322586];return _0x1644de;},_0x3225(_0x421f7c,_0xc022ef);}function He(_0x44c2a6){var _0x1852c0=_0x38fdac;const {coordinator:_0x5eafad}=_0x44c2a6;return _0x4d68a9(_0x4e94f2,{'children':[_0x470645(_0x1852c0(0x135),{'className':_0x1852c0(0x1a8),'children':_0x1852c0(0x18b)}),_0x470645(_0xc2e2b3,{'onClick':()=>_0x5eafad[_0x1852c0(0x126)](),'children':'Stop\x20following'})]});}function je(_0x1fcb25){var _0xf4ffc=_0x38fdac;const {coordinator:_0x1adae1}=_0x1fcb25;return _0x4d68a9(_0x4e94f2,{'children':[_0x470645('div',{'className':_0xf4ffc(0x1a8),'children':_0xf4ffc(0x1d2)}),_0x470645(_0xc2e2b3,{'variant':'text','onClick':()=>_0x1adae1['startFollowing'](),'children':_0xf4ffc(0x184)})]});}function Ue(_0x18d272){var _0x56cf1e=_0x38fdac;const {coordinator:_0xbc1aa0}=_0x18d272;return _0x4d68a9(_0x4e94f2,{'children':[_0x470645(_0x56cf1e(0x135),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x470645(_0xc2e2b3,{'variant':_0x56cf1e(0x15b),'onClick':()=>_0xbc1aa0[_0x56cf1e(0x14b)](),'children':_0x56cf1e(0x137)})]});}function Ve(){var _0x5f40ad=_0x38fdac;return _0x470645(_0x4e94f2,{'children':_0x5f40ad(0x1b2)});}var Me=Object[_0x38fdac(0x1ad)],ke=(_0x4aed77,_0x1a0341,_0x3ea893,_0x58c9cd)=>{var _0x5ed649=_0x38fdac;for(var _0x534696=_0x58c9cd>0x1?void 0x0:_0x58c9cd?Me(_0x1a0341,_0x3ea893):_0x1a0341,_0x5b2f36=_0x4aed77[_0x5ed649(0x1b4)]-0x1,_0x304651;_0x5b2f36>=0x0;_0x5b2f36--)(_0x304651=_0x4aed77[_0x5b2f36])&&(_0x534696=_0x304651(_0x534696)||_0x534696);return _0x534696;},$=(_0x10b44a,_0x35b5b1)=>(_0x3f8222,_0x500b57)=>_0x35b5b1(_0x3f8222,_0x500b57,_0x10b44a);let b=class extends _0x1110e6{constructor(_0x44211b,_0x3a67ef){var _0x3e2ed3=_0x38fdac;super(),this['_injector']=_0x44211b,this[_0x3e2ed3(0x147)]=_0x3a67ef,this['_mountLiveShare']();}[_0x38fdac(0x16e)](){var _0x28851e=_0x38fdac;this[_0x28851e(0x161)](this[_0x28851e(0x147)][_0x28851e(0x154)](_0x249236['HEADER_MENU'],()=>_0x4621b9(Te,this['_injector'])));}};b=ke([$(0x0,_0x587c17(_0x34f5e9)),$(0x1,_0x139622)],b);var Ge=Object[_0x38fdac(0x1c6)],We=Object[_0x38fdac(0x1ad)],Ye=(_0x54963a,_0x29950f,_0xed3a32)=>_0x29950f in _0x54963a?Ge(_0x54963a,_0x29950f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xed3a32}):_0x54963a[_0x29950f]=_0xed3a32,Be=(_0x3c3a98,_0x55fcf4,_0x3a17a5,_0x4af24e)=>{var _0x1ef60f=_0x38fdac;for(var _0x5b96d5=_0x4af24e>0x1?void 0x0:_0x4af24e?We(_0x55fcf4,_0x3a17a5):_0x55fcf4,_0x1527ba=_0x3c3a98[_0x1ef60f(0x1b4)]-0x1,_0x4640cc;_0x1527ba>=0x0;_0x1527ba--)(_0x4640cc=_0x3c3a98[_0x1527ba])&&(_0x5b96d5=_0x4640cc(_0x5b96d5)||_0x5b96d5);return _0x5b96d5;},F=(_0x5b50a5,_0x9f2d1b)=>(_0x3b3217,_0x3df8cf)=>_0x9f2d1b(_0x3b3217,_0x3df8cf,_0x5b50a5),J=(_0x45347d,_0x2a1298,_0x14c432)=>Ye(_0x45347d,typeof _0x2a1298!=_0x38fdac(0x13f)?_0x2a1298+'':_0x2a1298,_0x14c432);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x1a2767{constructor(_0x2b4676=T,_0x4740fb,_0x1ab4de){var _0x13260f=_0x38fdac;super(),this[_0x13260f(0x17a)]=_0x2b4676,this['_injector']=_0x4740fb,this[_0x13260f(0x15c)]=_0x1ab4de;const {..._0x53feb9}=_0x1ec0c2({},T,this[_0x13260f(0x17a)]);this[_0x13260f(0x15c)][_0x13260f(0x17b)](Oe,_0x53feb9);}[_0x38fdac(0x1cb)](){var _0x3aad50=_0x38fdac;_0x2b36ac(this[_0x3aad50(0x160)],_0x5537f3([[L],[I],[m],[b]],this[_0x3aad50(0x17a)]['override'])),_0x328c8c(this[_0x3aad50(0x160)],[[m]]);}['onRendered'](){var _0x2da0d4=_0x38fdac;_0x328c8c(this[_0x2da0d4(0x160)],[[b]]);}};J(O,_0x38fdac(0x166),_0x49ab6b[_0x38fdac(0x1b7)]),J(O,_0x38fdac(0x18c),Ze),O=Be([_0x2a1f58(_0xa92360),F(0x1,_0x587c17(_0x34f5e9)),F(0x2,_0x617f45)],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 _0x29ea9a=_0x51d1;(function(_0x2e539b,_0x30b79d){var _0x442bc2=_0x51d1,_0x2006dd=_0x2e539b();while(!![]){try{var _0x21830c=-parseInt(_0x442bc2(0x107))/0x1+parseInt(_0x442bc2(0x18d))/0x2*(parseInt(_0x442bc2(0x125))/0x3)+parseInt(_0x442bc2(0x121))/0x4*(-parseInt(_0x442bc2(0x16b))/0x5)+parseInt(_0x442bc2(0x184))/0x6+-parseInt(_0x442bc2(0x10d))/0x7+parseInt(_0x442bc2(0x15f))/0x8*(parseInt(_0x442bc2(0x15d))/0x9)+parseInt(_0x442bc2(0x18a))/0xa*(parseInt(_0x442bc2(0x16a))/0xb);if(_0x21830c===_0x30b79d)break;else _0x2006dd['push'](_0x2006dd['shift']());}catch(_0x35012c){_0x2006dd['push'](_0x2006dd['shift']());}}}(_0x1c84,0xc04ca));var q=Object[_0x29ea9a(0xe3)],z=(_0x1e27de,_0x3e9bd2,_0x102936)=>_0x3e9bd2 in _0x1e27de?q(_0x1e27de,_0x3e9bd2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x102936}):_0x1e27de[_0x3e9bd2]=_0x102936,d=(_0x30636d,_0x190c7f,_0x1a56e2)=>z(_0x30636d,typeof _0x190c7f!=_0x29ea9a(0x15c)?_0x190c7f+'':_0x190c7f,_0x1a56e2);import{CollaborationSessionService as _0x94a5e1,SessionStatus as _0x2862a6,UniverCollaborationClientPlugin as _0x1a961f}from'@univerjs-pro/collaboration-client';import{Disposable as _0x31e7a4,toDisposable as _0x5bc629,Inject as _0xf646c1,IUniverInstanceService as _0x3459c1,Injector as _0x4498f3,IConfigService as _0x548d47,ICommandService as _0x1b0ea8,RxDisposable as _0x4e23fa,UniverInstanceType as _0x2e7d47,DisposableCollection as _0x20d871,CommandType as _0x110f27,DependentOn as _0x484a52,Plugin as _0xe5ff50,merge as _0x1fc8bd,registerDependencies as _0x2df774,mergeOverrideWithDependencies as _0x1e76da,touchDependencies as _0x21061e}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x4a98a2,InsertSheetMutation as _0x438976}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x9bc1a6,SetScrollOperation as _0x35abd8}from'@univerjs/sheets-ui';import{useDependency as _0x1c7154,useObservable as _0x47ceac,IUIPartsService as _0x410032,BuiltInUIPart as _0x591b35,connectInjector as _0x2ac8da}from'@univerjs/ui';import{jsx as _0x4a136f,jsxs as _0x6bb112,Fragment as _0x1f470d}from'react/jsx-runtime';import{Dropdown as _0x1f3e5a,clsx as _0x42ee3f,Button as _0x1b521d}from'@univerjs/design';import{forwardRef as _0x583fa1,useRef as _0x5b9881,createElement as _0x4ad7a6,useState as _0x445d54,useEffect as _0x212ac3}from'react';import{CollaborationEvent as _0x4ba672,parseProtocolChangeset as _0x3bfe1e}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2ba6f1,Subject as _0x2ae17d}from'rxjs';import{takeUntil as _0xe8d355,throttleTime as _0x66b6b3}from'rxjs/operators';function _0x51d1(_0x329407,_0x58d95c){var _0x1c846c=_0x1c84();return _0x51d1=function(_0x51d167,_0x5f2db0){_0x51d167=_0x51d167-0xe2;var _0x1d1a4e=_0x1c846c[_0x51d167];return _0x1d1a4e;},_0x51d1(_0x329407,_0x58d95c);}const Oe=_0x29ea9a(0x17e),T={};class L extends _0x31e7a4{constructor(){super(...arguments),d(this,'_sharedOperations',new Set()),d(this,'_reporters',new Set());}['registerSharedOperation'](_0x49f752){var _0x230441=_0x29ea9a;return this['_sharedOperations'][_0x230441(0x154)](_0x49f752),_0x5bc629(()=>this[_0x230441(0x174)][_0x230441(0x118)](_0x49f752));}[_0x29ea9a(0x190)](_0x22e292){var _0x4a4c06=_0x29ea9a;return this['_reporters'][_0x4a4c06(0x154)](_0x22e292),_0x5bc629(()=>this[_0x4a4c06(0x164)]['delete'](_0x22e292));}[_0x29ea9a(0x12b)](_0x2e6cb2){var _0x4ece42=_0x29ea9a;return this['_sharedOperations'][_0x4ece42(0x169)](_0x2e6cb2);}['getInitialStates'](_0x51579d){var _0x22cbd6=_0x29ea9a;return Array[_0x22cbd6(0xec)](this['_reporters'])[_0x22cbd6(0x152)](_0x534788=>_0x534788(_0x51579d));}}var Ee=Object[_0x29ea9a(0x144)],we=(_0x4729e6,_0x25efc6,_0x4428ce,_0x5dd2d0)=>{var _0x523514=_0x29ea9a;for(var _0xc78f72=_0x5dd2d0>0x1?void 0x0:_0x5dd2d0?Ee(_0x25efc6,_0x4428ce):_0x25efc6,_0x355086=_0x4729e6[_0x523514(0xfd)]-0x1,_0x219f89;_0x355086>=0x0;_0x355086--)(_0x219f89=_0x4729e6[_0x355086])&&(_0xc78f72=_0x219f89(_0xc78f72)||_0xc78f72);return _0xc78f72;},Ne=(_0x17cca6,_0xa35939)=>(_0x5730c2,_0x314f4a)=>_0xa35939(_0x5730c2,_0x314f4a,_0x17cca6);let m=class extends _0x31e7a4{constructor(_0x456393){var _0x32c753=_0x29ea9a;super(),this[_0x32c753(0xe7)]=_0x456393,this[_0x32c753(0x191)]();}['_init'](){var _0x16f081=_0x29ea9a;[_0x9bc1a6['id'],_0x35abd8['id'],_0x4a98a2['id']][_0x16f081(0xfe)](_0x2dd668=>{var _0x50365d=_0x16f081;this[_0x50365d(0x11f)](this['_liveShareService']['registerSharedOperation'](_0x2dd668));});}};m=we([Ne(0x0,_0xf646c1(L))],m);var c=function(){var _0x4f80ae=_0x29ea9a;return c=Object[_0x4f80ae(0x129)]||function(_0x546113){var _0x1a2a1a=_0x4f80ae;for(var _0x2504bc,_0x5b7c09=0x1,_0x319fa3=arguments[_0x1a2a1a(0xfd)];_0x5b7c09<_0x319fa3;_0x5b7c09++){_0x2504bc=arguments[_0x5b7c09];for(var _0x37eb23 in _0x2504bc)Object[_0x1a2a1a(0xf8)][_0x1a2a1a(0x156)]['call'](_0x2504bc,_0x37eb23)&&(_0x546113[_0x37eb23]=_0x2504bc[_0x37eb23]);}return _0x546113;},c[_0x4f80ae(0x10f)](this,arguments);},Ce=function(_0x16c132,_0x13cf8f){var _0x3e8ae1=_0x29ea9a,_0x31237b={};for(var _0x19e3ca in _0x16c132)Object[_0x3e8ae1(0xf8)][_0x3e8ae1(0x156)][_0x3e8ae1(0x115)](_0x16c132,_0x19e3ca)&&_0x13cf8f[_0x3e8ae1(0xf2)](_0x19e3ca)<0x0&&(_0x31237b[_0x19e3ca]=_0x16c132[_0x19e3ca]);if(_0x16c132!=null&&typeof Object['getOwnPropertySymbols']==_0x3e8ae1(0x12a)){for(var _0x5ab7cc=0x0,_0x19e3ca=Object[_0x3e8ae1(0xed)](_0x16c132);_0x5ab7cc<_0x19e3ca[_0x3e8ae1(0xfd)];_0x5ab7cc++)_0x13cf8f[_0x3e8ae1(0xf2)](_0x19e3ca[_0x5ab7cc])<0x0&&Object[_0x3e8ae1(0xf8)]['propertyIsEnumerable']['call'](_0x16c132,_0x19e3ca[_0x5ab7cc])&&(_0x31237b[_0x19e3ca[_0x5ab7cc]]=_0x16c132[_0x19e3ca[_0x5ab7cc]]);}return _0x31237b;},W=_0x583fa1(function(_0x59348e,_0x575072){var _0x22ea0f=_0x29ea9a,_0x1a3048=_0x59348e[_0x22ea0f(0x110)],_0x501b1e=_0x59348e['id'],_0x428719=_0x59348e['className'],_0x4a1f29=_0x59348e[_0x22ea0f(0x185)],_0x5daae5=Ce(_0x59348e,[_0x22ea0f(0x110),'id',_0x22ea0f(0x162),_0x22ea0f(0x185)]),_0xdfe4ba=_0x22ea0f(0xe2)[_0x22ea0f(0x15a)](_0x501b1e,'\x20')[_0x22ea0f(0x15a)](_0x428719||'')[_0x22ea0f(0x14e)](),_0x8c5030=_0x5b9881('_'[_0x22ea0f(0x15a)](Le()));return Y(_0x1a3048,''['concat'](_0x501b1e),{'defIds':_0x1a3048[_0x22ea0f(0x16d)],'idSuffix':_0x8c5030[_0x22ea0f(0x150)]},c({'ref':_0x575072,'className':_0xdfe4ba},_0x5daae5),_0x4a1f29);});function Y(_0x351519,_0x7b0a64,_0x40ce57,_0x167839,_0x617ee6){var _0x123fb6=_0x29ea9a;return _0x4ad7a6(_0x351519[_0x123fb6(0x153)],c(c({'key':_0x7b0a64},De(_0x351519,_0x40ce57,_0x617ee6)),_0x167839),(xe(_0x351519,_0x40ce57)['children']||[])[_0x123fb6(0x152)](function(_0x573246,_0xd28742){var _0x4c1d74=_0x123fb6;return Y(_0x573246,''[_0x4c1d74(0x15a)](_0x7b0a64,'-')[_0x4c1d74(0x15a)](_0x351519['tag'],'-')[_0x4c1d74(0x15a)](_0xd28742),_0x40ce57,void 0x0,_0x617ee6);}));}function De(_0x178ca2,_0x127977,_0x199db4){var _0x1ece7c=_0x29ea9a,_0x3faf2d=c({},_0x178ca2['attrs']);_0x199db4!=null&&_0x199db4[_0x1ece7c(0x13b)]&&_0x3faf2d[_0x1ece7c(0x116)]==='colorChannel1'&&(_0x3faf2d[_0x1ece7c(0x116)]=_0x199db4[_0x1ece7c(0x13b)]),_0x178ca2[_0x1ece7c(0x153)]===_0x1ece7c(0xfb)&&_0x3faf2d['id']&&(_0x3faf2d['id']=_0x3faf2d['id']+_0x127977[_0x1ece7c(0xf1)]),Object[_0x1ece7c(0x148)](_0x3faf2d)[_0x1ece7c(0xfe)](function(_0x45616f){var _0xb5b206=_0x1ece7c,_0x4ab0d9=_0x45616f[0x0],_0x4fa357=_0x45616f[0x1];_0x4ab0d9===_0xb5b206(0xfb)&&typeof _0x4fa357==_0xb5b206(0x143)&&(_0x3faf2d[_0x4ab0d9]=_0x4fa357['replace'](/url\(#(.*)\)/,_0xb5b206(0xee)[_0xb5b206(0x15a)](_0x127977['idSuffix'],')')));});var _0x3ec402=_0x127977['defIds'];return!_0x3ec402||_0x3ec402[_0x1ece7c(0xfd)]===0x0||(_0x178ca2[_0x1ece7c(0x153)]==='use'&&_0x3faf2d[_0x1ece7c(0x142)]&&(_0x3faf2d[_0x1ece7c(0x142)]=_0x3faf2d[_0x1ece7c(0x142)]+_0x127977[_0x1ece7c(0xf1)]),Object[_0x1ece7c(0x148)](_0x3faf2d)[_0x1ece7c(0xfe)](function(_0x5a4901){var _0x2af601=_0x1ece7c,_0x27507f=_0x5a4901[0x0],_0x378233=_0x5a4901[0x1];typeof _0x378233=='string'&&(_0x3faf2d[_0x27507f]=_0x378233[_0x2af601(0x108)](/url\(#(.*)\)/,_0x2af601(0xee)[_0x2af601(0x15a)](_0x127977[_0x2af601(0xf1)],')')));})),_0x3faf2d;}function xe(_0x2d6f75,_0x2db820){var _0x4a7e05=_0x29ea9a,_0x30f5c6,_0x47d695=_0x2db820[_0x4a7e05(0x16d)];return!_0x47d695||_0x47d695[_0x4a7e05(0xfd)]===0x0?_0x2d6f75:_0x2d6f75['tag']===_0x4a7e05(0x117)&&(!((_0x30f5c6=_0x2d6f75['children'])===null||_0x30f5c6===void 0x0)&&_0x30f5c6[_0x4a7e05(0xfd)])?c(c({},_0x2d6f75),{'children':_0x2d6f75[_0x4a7e05(0xe5)][_0x4a7e05(0x152)](function(_0xf66d93){var _0x5d9e9d=_0x4a7e05;return typeof _0xf66d93[_0x5d9e9d(0x163)]['id']==_0x5d9e9d(0x143)&&_0x47d695&&_0x47d695[_0x5d9e9d(0x14a)](_0xf66d93['attrs']['id'])?c(c({},_0xf66d93),{'attrs':c(c({},_0xf66d93[_0x5d9e9d(0x163)]),{'id':_0xf66d93['attrs']['id']+_0x2db820[_0x5d9e9d(0xf1)]})}):_0xf66d93;})}):_0x2d6f75;}function Le(){var _0x31daf6=_0x29ea9a;return Math[_0x31daf6(0x155)]()[_0x31daf6(0xf9)](0x24)[_0x31daf6(0x135)](0x2,0x8);}W[_0x29ea9a(0x12c)]=_0x29ea9a(0xf3);var ye={'tag':_0x29ea9a(0x160),'attrs':{'xmlns':_0x29ea9a(0x159),'fill':_0x29ea9a(0x13f),'viewBox':_0x29ea9a(0x11c),'width':'1em','height':_0x29ea9a(0xeb)},'children':[{'tag':'path','attrs':{'fill':_0x29ea9a(0x15e),'d':_0x29ea9a(0x133)}},{'tag':_0x29ea9a(0x13d),'attrs':{'fill':_0x29ea9a(0x15e),'d':_0x29ea9a(0x10c),'fillRule':'evenodd','clipRule':'evenodd'}}]},B=_0x583fa1(function(_0x5eb44d,_0x1d0b83){var _0x36dd0c=_0x29ea9a;return _0x4ad7a6(W,Object[_0x36dd0c(0x129)]({},_0x5eb44d,{'id':_0x36dd0c(0x175),'ref':_0x1d0b83,'icon':ye}));});B[_0x29ea9a(0x12c)]=_0x29ea9a(0xe4);var Re=Object[_0x29ea9a(0x144)],Z=(_0x4a1d99,_0x639301,_0x3ca504,_0x1ee71b)=>{var _0x2c75d5=_0x29ea9a;for(var _0xdeff43=_0x1ee71b>0x1?void 0x0:_0x1ee71b?Re(_0x639301,_0x3ca504):_0x639301,_0xb45533=_0x4a1d99[_0x2c75d5(0xfd)]-0x1,_0x50dfce;_0xb45533>=0x0;_0xb45533--)(_0x50dfce=_0x4a1d99[_0xb45533])&&(_0xdeff43=_0x50dfce(_0xdeff43)||_0xdeff43);return _0xdeff43;},f=(_0x54ad62,_0x4708ba)=>(_0x3dfb05,_0xc7ff4f)=>_0x4708ba(_0x3dfb05,_0xc7ff4f,_0x54ad62);let I=class extends _0x4e23fa{constructor(_0x1cce31,_0x50b9af,_0x17cfc2){var _0x53d623=_0x29ea9a;super(),d(this,_0x53d623(0x149),new Map()),(this[_0x53d623(0x17d)]=_0x1cce31,this[_0x53d623(0x176)]=_0x50b9af,this[_0x53d623(0x183)]=_0x17cfc2,this[_0x53d623(0x191)]());}async[_0x29ea9a(0x134)](_0x5b2e16){var _0x3ef8dd=_0x29ea9a;return this[_0x3ef8dd(0x149)][_0x3ef8dd(0x169)](_0x5b2e16)||await this['_startLiveShareCoordinator'](_0x5b2e16),this[_0x3ef8dd(0x149)][_0x3ef8dd(0x103)](_0x5b2e16);}[_0x29ea9a(0x191)](){var _0x41d61e=_0x29ea9a;this[_0x41d61e(0x17d)][_0x41d61e(0xf5)](_0x2e7d47[_0x41d61e(0x17a)])[_0x41d61e(0x10b)](_0xe8d355(this[_0x41d61e(0x16e)]))['subscribe'](async _0x182770=>{var _0x3f6f23=_0x41d61e;const _0x235b5c=_0x182770[_0x3f6f23(0x11b)]();this[_0x3f6f23(0x149)][_0x3f6f23(0x169)](_0x235b5c)||this['_startLiveShareCoordinator'](_0x235b5c);}),this[_0x41d61e(0x17d)][_0x41d61e(0x186)](_0x2e7d47[_0x41d61e(0x17a)])[_0x41d61e(0x10b)](_0xe8d355(this['dispose$']))[_0x41d61e(0x127)](_0x3cdcd7=>{var _0xf57f0d=_0x41d61e;const _0x34c9e6=_0x3cdcd7['getUnitId'](),_0x2c7fb8=this[_0xf57f0d(0x149)]['get'](_0x34c9e6);_0x2c7fb8==null||_0x2c7fb8[_0xf57f0d(0x14d)]();});}async['_startLiveShareCoordinator'](_0x162ec6){var _0x2c22e6=_0x29ea9a;const _0x45ac00=await this['_collabSessionService'][_0x2c22e6(0x11d)](_0x162ec6),_0x4f6b13=this[_0x2c22e6(0x176)][_0x2c22e6(0x161)](C,_0x162ec6,_0x45ac00);return _0x4f6b13[_0x2c22e6(0x111)](),this[_0x2c22e6(0x149)]['set'](_0x162ec6,_0x4f6b13),_0x4f6b13;}};I=Z([f(0x0,_0x3459c1),f(0x1,_0xf646c1(_0x4498f3)),f(0x2,_0xf646c1(_0x94a5e1))],I);var h=(_0xc86bd0=>(_0xc86bd0[_0x29ea9a(0x114)]='offline',_0xc86bd0[_0x29ea9a(0x109)]='idle',_0xc86bd0[_0x29ea9a(0x14b)]=_0x29ea9a(0x13e),_0xc86bd0[_0x29ea9a(0x188)]=_0x29ea9a(0xfa),_0xc86bd0['PRESENTING']='presenting',_0xc86bd0))(h||{});const Pe=_0x29ea9a(0x187),Ae=0xc8;let C=class extends _0x4e23fa{constructor(_0x52c8ee,_0x215b8b,_0xd5ef52,_0x3e8131,_0x30510b){var _0x275bac=_0x29ea9a;super(),d(this,_0x275bac(0x147),new _0x2ba6f1(_0x275bac(0x14c))),d(this,'status$',this[_0x275bac(0x147)][_0x275bac(0xe9)]()),d(this,_0x275bac(0x191),!0x1),d(this,_0x275bac(0x182),null),d(this,_0x275bac(0x13c),null),(this[_0x275bac(0x189)]=_0x52c8ee,this[_0x275bac(0xf7)]=_0x215b8b,this['_configService']=_0xd5ef52,this['_liveShareService']=_0x3e8131,this['_commandService']=_0x30510b);}get[_0x29ea9a(0x171)](){var _0x1c0415=_0x29ea9a;return this[_0x1c0415(0x147)]['getValue']();}[_0x29ea9a(0x14d)](){var _0x46e4a8=_0x29ea9a,_0x1e2fd3;(_0x1e2fd3=this['_commandDisposable'])==null||_0x1e2fd3['dispose'](),this[_0x46e4a8(0x147)][_0x46e4a8(0x140)](_0x46e4a8(0x14c)),this['_status$'][_0x46e4a8(0x14f)]();}[_0x29ea9a(0x111)](){var _0x3e1a6c=_0x29ea9a;this[_0x3e1a6c(0x191)]||(this['_init']=!0x0,this[_0x3e1a6c(0xf7)][_0x3e1a6c(0x168)][_0x3e1a6c(0x10b)](_0xe8d355(this['dispose$']))[_0x3e1a6c(0x127)](_0x33a298=>{var _0x433edb=_0x3e1a6c;switch(_0x33a298){case _0x2862a6[_0x433edb(0x114)]:this[_0x433edb(0xe6)]();break;case _0x2862a6[_0x433edb(0x119)]:this[_0x433edb(0xea)]();break;}}),this[_0x3e1a6c(0xf7)][_0x3e1a6c(0x130)][_0x3e1a6c(0x10b)](_0xe8d355(this[_0x3e1a6c(0x16e)]))['subscribe'](_0xcdd238=>{var _0x176846=_0x3e1a6c;const {eventID:_0x222dc3}=_0xcdd238;switch(_0x222dc3){case _0x4ba672[_0x176846(0x141)]:this[_0x176846(0x100)](_0xcdd238);break;case _0x4ba672['LIVESHARE_OPERATION']:this[_0x176846(0x17b)](_0xcdd238);break;case _0x4ba672[_0x176846(0x113)]:this[_0x176846(0x179)]();break;case _0x4ba672['NEW_CHANGESETS']:this[_0x176846(0x11e)](_0xcdd238);break;}}));}['tryStartPresenting'](){var _0x5a07cc=_0x29ea9a;this[_0x5a07cc(0xf7)][_0x5a07cc(0xef)]({'eventID':_0x4ba672['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x5a07cc(0x18e)]()}},this[_0x5a07cc(0x189)]);}['stopPresenting'](){var _0x42b4d6=_0x29ea9a;this['_status']===_0x42b4d6(0x105)&&(this[_0x42b4d6(0x147)][_0x42b4d6(0x140)]('idle'),this[_0x42b4d6(0xf7)][_0x42b4d6(0xef)]({'eventID':_0x4ba672[_0x42b4d6(0x113)],'data':{'unitID':this['_unitID']}},this[_0x42b4d6(0x189)]));}['startFollowing'](){var _0x319e7d=_0x29ea9a;this[_0x319e7d(0x171)]===_0x319e7d(0xfa)&&(this['_status$'][_0x319e7d(0x140)](_0x319e7d(0x13e)),this[_0x319e7d(0x192)]());}[_0x29ea9a(0x178)](){var _0x2355c5=_0x29ea9a;this[_0x2355c5(0x171)]===_0x2355c5(0x13e)&&this[_0x2355c5(0x139)]();}[_0x29ea9a(0x100)](_0x9946a1){var _0x5e3cb2=_0x29ea9a;const {presenter:_0x8feeef}=_0x9946a1['data'],_0x484067=this[_0x5e3cb2(0xf7)][_0x5e3cb2(0x18e)]();this['_presenter']=_0x8feeef,_0x8feeef===_0x484067?(this[_0x5e3cb2(0x139)](),this['_startPresenting']()):this[_0x5e3cb2(0x171)]!==_0x5e3cb2(0xfa)&&(this[_0x5e3cb2(0x165)](),this['_startFollowing']());}[_0x29ea9a(0x145)](){var _0x517ee2=_0x29ea9a;const _0x139f05={'eventID':_0x4ba672[_0x517ee2(0x193)]};this[_0x517ee2(0xf7)][_0x517ee2(0xef)](_0x139f05,this[_0x517ee2(0x189)]);}[_0x29ea9a(0x179)](){var _0x4a90a8=_0x29ea9a;this[_0x4a90a8(0x13c)]=null,this['_status']!==_0x4a90a8(0x105)&&this['_beIdle']();}[_0x29ea9a(0x11e)](_0x59f989){var _0x50d831=_0x29ea9a;if(this[_0x50d831(0x171)]===_0x50d831(0x13e)&&this[_0x50d831(0x13c)]===_0x59f989[_0x50d831(0x120)][_0x50d831(0x18c)]){const _0x2eb3eb=_0x3bfe1e(_0x59f989[_0x50d831(0x120)])[_0x50d831(0x11a)]['reverse']()[_0x50d831(0xfc)](_0x170a2c=>_0x170a2c['id']===_0x438976['id']);if(_0x2eb3eb){const _0xe99f74=_0x2eb3eb['params'][_0x50d831(0x166)],_0x4181ae=_0x2eb3eb[_0x50d831(0x131)]['sheet']['id'];setTimeout(()=>{var _0xcfc9a7=_0x50d831;this[_0xcfc9a7(0x137)]['executeCommand'](_0x4a98a2['id'],{'unitId':_0xe99f74,'subUnitId':_0x4181ae},{'fromCollab':!0x0});});}}}[_0x29ea9a(0xf0)](){var _0x292509=_0x29ea9a;this[_0x292509(0x147)]['next']('presenting');const _0xaf012f=new Map(),_0x156205=this['_commandDisposable']=new _0x20d871();_0x156205[_0x292509(0x154)](_0x5bc629(()=>{var _0x524e09=_0x292509;_0xaf012f[_0x524e09(0xfe)](_0x40801e=>_0x40801e[_0x524e09(0x14f)]()),_0xaf012f[_0x524e09(0x177)]();})),_0x156205['add'](this[_0x292509(0x137)][_0x292509(0x181)](_0x100f14=>{var _0x1fea4f=_0x292509,_0x27232b;if(_0x100f14['type']!==_0x110f27[_0x1fea4f(0x126)]||!this['_liveShareService']['shouldShareOperation'](_0x100f14['id']))return;const {id:_0x18db32}=_0x100f14;let _0x24fe15;_0xaf012f[_0x1fea4f(0x169)](_0x18db32)?_0x24fe15=_0xaf012f[_0x1fea4f(0x103)](_0x18db32):(_0x24fe15=new _0x2ae17d(),_0xaf012f[_0x1fea4f(0x13a)](_0x18db32,_0x24fe15),_0x24fe15['pipe'](_0x66b6b3((_0x27232b=this[_0x1fea4f(0x136)][_0x1fea4f(0x138)](Pe))!=null?_0x27232b:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1fea4f(0x127)](_0x31ba6=>{var _0x187f78=_0x1fea4f;this['_collabSession']['send']({'eventID':_0x4ba672[_0x187f78(0x10a)],'data':{'unitID':this[_0x187f78(0x189)],'operations':{[_0x31ba6['id']]:{'id':_0x31ba6['id'],'params':JSON[_0x187f78(0x167)](_0x31ba6['params'])}}}},this[_0x187f78(0x189)]);})),_0x24fe15[_0x1fea4f(0x140)](_0x100f14);})),this['_liveShareService'][_0x292509(0x10e)](this['_unitID'])[_0x292509(0xfe)](_0x430b5d=>this[_0x292509(0xf7)]['send']({'eventID':_0x4ba672['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x292509(0x189)],'operations':{[_0x430b5d['id']]:{'id':_0x430b5d['id'],'params':JSON[_0x292509(0x167)](_0x430b5d[_0x292509(0x131)])}}}},this[_0x292509(0x189)]));}[_0x29ea9a(0x165)](){var _0x481fa1=_0x29ea9a,_0x52f8a2;this[_0x481fa1(0x147)]['next']('idle'),(_0x52f8a2=this[_0x481fa1(0x182)])==null||_0x52f8a2[_0x481fa1(0x14d)](),this[_0x481fa1(0x182)]=null;}[_0x29ea9a(0x192)](){var _0x24bd24=_0x29ea9a,_0x19333c;(_0x19333c=this[_0x24bd24(0x182)])==null||_0x19333c[_0x24bd24(0x14d)](),this[_0x24bd24(0x147)][_0x24bd24(0x140)](_0x24bd24(0x13e));}[_0x29ea9a(0x18f)](){var _0x201217=_0x29ea9a,_0x5e5564;this['_status$'][_0x201217(0x140)](_0x201217(0x14c)),(_0x5e5564=this[_0x201217(0x182)])==null||_0x5e5564[_0x201217(0x14d)](),this[_0x201217(0x182)]=null;}[_0x29ea9a(0x139)](){var _0x260e9d=_0x29ea9a,_0x939aef;this[_0x260e9d(0x147)]['next'](_0x260e9d(0xfa)),(_0x939aef=this[_0x260e9d(0x182)])==null||_0x939aef[_0x260e9d(0x14d)]();}[_0x29ea9a(0x17b)](_0x283abf){var _0x5517e9=_0x29ea9a;if([_0x5517e9(0x105),_0x5517e9(0xfa),'offline'][_0x5517e9(0x14a)](this['_status'])||!_0x283abf[_0x5517e9(0x120)]['presenter']||_0x283abf[_0x5517e9(0x120)]['presenter']===this[_0x5517e9(0xf7)][_0x5517e9(0x18e)]())return;this['_status']===_0x5517e9(0x14c)&&this[_0x5517e9(0x192)]();const _0x2eab83=_0x283abf[_0x5517e9(0x120)][_0x5517e9(0x15b)];Object[_0x5517e9(0x122)](_0x2eab83)[_0x5517e9(0xfe)](_0x3bee2d=>{var _0x45bd06=_0x5517e9;this[_0x45bd06(0x137)][_0x45bd06(0x170)](_0x3bee2d['id'],_0x3bee2d[_0x45bd06(0x131)]?JSON['parse'](_0x3bee2d[_0x45bd06(0x131)]):null,{'fromCollab':!0x0});});}[_0x29ea9a(0xe6)](){var _0x92359d=_0x29ea9a,_0x642c3c;this[_0x92359d(0x147)][_0x92359d(0x140)]('offline'),(_0x642c3c=this['_commandDisposable'])==null||_0x642c3c[_0x92359d(0x14d)]();}[_0x29ea9a(0xea)](){var _0x45fb61=_0x29ea9a;this[_0x45fb61(0x147)][_0x45fb61(0x140)]('idle'),this[_0x45fb61(0x145)]();}};C=Z([f(0x2,_0x548d47),f(0x3,_0xf646c1(L)),f(0x4,_0x1b0ea8)],C);function Te(){var _0xf9ddca=_0x29ea9a;const _0x45a09a=_0x1c7154(I),_0x5e7ead=_0x1c7154(_0x3459c1),_0xd3caca=_0x47ceac(()=>_0x5e7ead[_0xf9ddca(0x132)](_0x2e7d47[_0xf9ddca(0x17a)]),void 0x0,!0x1,[]),[_0x3b8e9c,_0xd0e9f3]=_0x445d54(null),[_0x224d15,_0x32f3b5]=_0x445d54(h['IDLE']),_0xa80675=_0x5b9881(null);return _0x212ac3(()=>(_0xd3caca&&_0x45a09a[_0xf9ddca(0x134)](_0xd3caca[_0xf9ddca(0x11b)]())[_0xf9ddca(0x151)](_0x206eb9=>{var _0x5bbaba=_0xf9ddca;_0xd0e9f3(_0x206eb9),_0xa80675[_0x5bbaba(0x150)]=_0x206eb9['status$']['subscribe'](_0x5070a4=>{_0x32f3b5(_0x5070a4);});}),()=>{var _0x43059c=_0xf9ddca,_0x182b58;(_0x182b58=_0xa80675[_0x43059c(0x150)])==null||_0x182b58[_0x43059c(0x180)](),_0xa80675[_0x43059c(0x150)]=null;}),[_0xd3caca,_0x45a09a]),_0x3b8e9c?_0x4a136f(_0x1f3e5a,{'align':_0xf9ddca(0x17f),'disabled':_0x224d15===h['OFFLINE'],'className':_0xf9ddca(0x17c),'overlay':_0x4a136f($e,{'status':_0x224d15,'coordinator':_0x3b8e9c}),'children':_0x4a136f('button',{'className':_0x42ee3f(_0xf9ddca(0x16f),{'univer-cursor-not-allowed':_0x224d15===h[_0xf9ddca(0x114)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x224d15!==h['OFFLINE']}),'type':'button','children':_0x4a136f(B,{'className':_0xf9ddca(0xff)})})}):null;}function $e(_0x9a85bb){var _0x33288a=_0x29ea9a;const {status:_0x5817e0,coordinator:_0x333446}=_0x9a85bb;switch(_0x5817e0){case h[_0x33288a(0x109)]:return _0x4a136f(Fe,{'coordinator':_0x333446});case h[_0x33288a(0x14b)]:return _0x4a136f(He,{'coordinator':_0x333446});case h[_0x33288a(0x188)]:return _0x4a136f(je,{'coordinator':_0x333446});case h[_0x33288a(0x114)]:return _0x4a136f(Ve,{});case h[_0x33288a(0x172)]:return _0x4a136f(Ue,{'coordinator':_0x333446});default:return null;}}function Fe(_0xa7ebdc){var _0x1afe45=_0x29ea9a;const {coordinator:_0x2a99e0}=_0xa7ebdc;return _0x6bb112(_0x1f470d,{'children':[_0x4a136f(_0x1afe45(0x112),{'className':_0x1afe45(0x18b),'children':'Present\x20this\x20document'}),_0x4a136f(_0x1b521d,{'onClick':()=>_0x2a99e0[_0x1afe45(0xf6)](),'children':'Start'})]});}function He(_0x203364){var _0x2826aa=_0x29ea9a;const {coordinator:_0x4f5e11}=_0x203364;return _0x6bb112(_0x1f470d,{'children':[_0x4a136f(_0x2826aa(0x112),{'className':_0x2826aa(0x18b),'children':_0x2826aa(0x124)}),_0x4a136f(_0x1b521d,{'onClick':()=>_0x4f5e11[_0x2826aa(0x178)](),'children':_0x2826aa(0xe8)})]});}function je(_0x3c4956){var _0x3fd904=_0x29ea9a;const {coordinator:_0x36814f}=_0x3c4956;return _0x6bb112(_0x1f470d,{'children':[_0x4a136f(_0x3fd904(0x112),{'className':_0x3fd904(0x18b),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4a136f(_0x1b521d,{'variant':_0x3fd904(0x157),'onClick':()=>_0x36814f[_0x3fd904(0x16c)](),'children':_0x3fd904(0x102)})]});}function Ue(_0xf5f8c5){var _0x4d988e=_0x29ea9a;const {coordinator:_0x148e48}=_0xf5f8c5;return _0x6bb112(_0x1f470d,{'children':[_0x4a136f(_0x4d988e(0x112),{'className':_0x4d988e(0x18b),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4a136f(_0x1b521d,{'variant':_0x4d988e(0x12f),'onClick':()=>_0x148e48['stopPresenting'](),'children':_0x4d988e(0x101)})]});}function Ve(){var _0x500d47=_0x29ea9a;return _0x4a136f(_0x1f470d,{'children':_0x500d47(0x12e)});}var Me=Object[_0x29ea9a(0x144)],ke=(_0xafba00,_0x26e348,_0x1b621e,_0x448c0e)=>{var _0x288742=_0x29ea9a;for(var _0x565988=_0x448c0e>0x1?void 0x0:_0x448c0e?Me(_0x26e348,_0x1b621e):_0x26e348,_0xca3a23=_0xafba00[_0x288742(0xfd)]-0x1,_0x1d090b;_0xca3a23>=0x0;_0xca3a23--)(_0x1d090b=_0xafba00[_0xca3a23])&&(_0x565988=_0x1d090b(_0x565988)||_0x565988);return _0x565988;},$=(_0x41c942,_0x2be0b4)=>(_0x4004b3,_0x43d979)=>_0x2be0b4(_0x4004b3,_0x43d979,_0x41c942);let b=class extends _0x31e7a4{constructor(_0x58032c,_0x7039b4){var _0x287563=_0x29ea9a;super(),this[_0x287563(0x176)]=_0x58032c,this['_uiPartsService']=_0x7039b4,this[_0x287563(0x106)]();}[_0x29ea9a(0x106)](){var _0x1f40fb=_0x29ea9a;this[_0x1f40fb(0x11f)](this['_uiPartsService'][_0x1f40fb(0xf4)](_0x591b35[_0x1f40fb(0x12d)],()=>_0x2ac8da(Te,this[_0x1f40fb(0x176)])));}};b=ke([$(0x0,_0xf646c1(_0x4498f3)),$(0x1,_0x410032)],b);var Ge=Object['defineProperty'],We=Object[_0x29ea9a(0x144)],Ye=(_0x3e98b5,_0x5c2556,_0x21b3d4)=>_0x5c2556 in _0x3e98b5?Ge(_0x3e98b5,_0x5c2556,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21b3d4}):_0x3e98b5[_0x5c2556]=_0x21b3d4,Be=(_0x2e2445,_0x33b4e8,_0x325c9c,_0x5e81cd)=>{var _0x7738a5=_0x29ea9a;for(var _0xc12076=_0x5e81cd>0x1?void 0x0:_0x5e81cd?We(_0x33b4e8,_0x325c9c):_0x33b4e8,_0x3a3cfb=_0x2e2445[_0x7738a5(0xfd)]-0x1,_0xb942d8;_0x3a3cfb>=0x0;_0x3a3cfb--)(_0xb942d8=_0x2e2445[_0x3a3cfb])&&(_0xc12076=_0xb942d8(_0xc12076)||_0xc12076);return _0xc12076;},F=(_0x2c32ba,_0x531112)=>(_0x575a22,_0x10a097)=>_0x531112(_0x575a22,_0x10a097,_0x2c32ba),J=(_0x189e2c,_0x38a65c,_0x560644)=>Ye(_0x189e2c,typeof _0x38a65c!='symbol'?_0x38a65c+'':_0x38a65c,_0x560644);function _0x1c84(){var _0xb87989=['displayName','HEADER_MENU','You\x27are\x20offline.','default','event$','params','getCurrentTypeOfUnit$','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','getLiveShareCoordinator','substring','_configService','_commandService','getConfig','_stopFollowing','set','colorChannel1','_presenter','path','following','none','next','LIVESHARE_NEW_HOST','xlink:href','string','getOwnPropertyDescriptor','_fetchOperations','UNIVER_UNKNOWN','_status$','entries','_entities','includes','FOLLOWING','idle','dispose','trim','complete','current','then','map','tag','add','random','hasOwnProperty','text','_config','http://www.w3.org/2000/svg','concat','operations','symbol','9piTwWA','currentColor','7618824eCinFs','svg','createInstance','className','attrs','_reporters','_stopPresenting','unitId','stringify','sessionStatus$','has','1444223VFnhuk','4701655KSNqAh','startFollowing','defIds','dispose$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','executeCommand','_status','PRESENTING','override','_sharedOperations','live-share-icon','_injector','clear','stopFollowing','_handleTerminate','UNIVER_SHEET','_handleOperation','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_univerInstanceService','live-share.config','end','unsubscribe','onCommandExecuted','_commandDisposable','_collabSessionService','7728972HJLjtG','extend','getTypeOfUnitDisposed$','SAME_OPERATION_SHARE_INTERVAL','NOT_FOLLOWING','_unitID','10QvhuZD','univer-mb-3\x20univer-w-full\x20univer-text-sm','memberID','4MrDisJ','getMemberID','_beIdle','registerInitialStateReporter','_init','_startFollowing','LIVESHARE_FETCH_OPERATIONS','univerjs-icon\x20univerjs-icon-','defineProperty','LiveShareIcon','children','_handleOffline','_liveShareService','Stop\x20following','asObservable','_handleOnline','1em','from','getOwnPropertySymbols','url(#$1','send','_startPresenting','idSuffix','indexOf','UniverIcon','registerComponent','getTypeOfUnitAdded$','tryStartPresenting','_collabSession','prototype','toString','not-following','mask','find','length','forEach','univer-size-4','_handleNewHost','Stop\x20presenting','Start\x20following','get','pluginName','presenting','_mountLiveShare','735406bnpZXG','replace','IDLE','LIVESHARE_OPERATION','pipe','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','8515199DXvfLa','getInitialStates','apply','icon','init','div','LIVESHARE_TERMINATE','OFFLINE','call','fill','defs','delete','ONLINE','mutations','getUnitId','0\x200\x2017\x2017','requireSession','_handleNewChangeSets','disposeWithMe','data','4dXQVXl','values','UNIVER_LIVE_SHARE_PLUGIN','You\x27re\x20following\x20the\x20presenter','1962066RNeIFH','OPERATION','subscribe','onStarting','assign','function','shouldShareOperation'];_0x1c84=function(){return _0xb87989;};return _0x1c84();}const Ze=_0x29ea9a(0x123);let O=class extends _0xe5ff50{constructor(_0x270f78=T,_0x1ef3a4,_0x197e8a){var _0x683045=_0x29ea9a;super(),this[_0x683045(0x158)]=_0x270f78,this[_0x683045(0x176)]=_0x1ef3a4,this[_0x683045(0x136)]=_0x197e8a;const {..._0x5c320c}=_0x1fc8bd({},T,this['_config']);this[_0x683045(0x136)]['setConfig'](Oe,_0x5c320c);}[_0x29ea9a(0x128)](){var _0x2a2072=_0x29ea9a;_0x2df774(this[_0x2a2072(0x176)],_0x1e76da([[L],[I],[m],[b]],this['_config'][_0x2a2072(0x173)])),_0x21061e(this[_0x2a2072(0x176)],[[m]]);}['onRendered'](){_0x21061e(this['_injector'],[[b]]);}};J(O,'type',_0x2e7d47[_0x29ea9a(0x146)]),J(O,_0x29ea9a(0x104),Ze),O=Be([_0x484a52(_0x1a961f),F(0x1,_0xf646c1(_0x4498f3)),F(0x2,_0x548d47)],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 _0x39af(_0x6d3769,_0x18216d){var _0x3a5676=_0x3a56();return _0x39af=function(_0x39af83,_0x447f70){_0x39af83=_0x39af83-0xe5;var _0x442032=_0x3a5676[_0x39af83];return _0x442032;},_0x39af(_0x6d3769,_0x18216d);}function _0x3a56(){var _0x12225a=['connectInjector','LiveShareCoordinator','@univerjs-pro/collaboration','stopFollowing','react/jsx-runtime','_injector','rxjs/operators','registerSharedOperation','@univerjs/core','object','OFFLINE','_startPresenting','requireSession','forEach','You\x27are\x20offline.','indexOf','unsubscribe','fill','startFollowing','useEffect','_presenter','_handleOperation','@univerjs/sheets-ui','IUniverInstanceService','InsertSheetMutation','_commandService','LIVESHARE_OPERATION','forwardRef','LiveShareController','xlink:href','HEADER_MENU','propertyIsEnumerable','takeUntil','next','useRef','memberID','onRendered','div','end','length','_stopFollowing','RxDisposable','LiveShare','_handleOffline','operations','complete','trim','mask','UniverSheetsUi','concat','offline','_beIdle','tryStartPresenting','getLiveShareCoordinator','currentColor','createElement','current','UniverLiveSharePlugin','none','children','CollaborationSessionService','LiveShareService','getOwnPropertySymbols','You\x27re\x20presenting\x20the\x20document','path','registerDependencies','displayName','status$','symbol','evenodd','touchDependencies','jsxs','univer-mb-3\x20univer-w-full\x20univer-text-sm','LiveShareStatus','Inject','useState','add','className','react','SAME_OPERATION_SHARE_INTERVAL','SetZoomRatioOperation','_collabSession','IConfigService','parse','http://www.w3.org/2000/svg','text','find','dispose','ONLINE','init','Start','sessionStatus$','926cNXFGX','disposeWithMe','UniverProCollaboration','UniverIcon','getUnitId','DisposableCollection','getOwnPropertyDescriptor','_mountLiveShare','_handleTerminate','_unitID','jsx','IUIPartsService','_entities','FOLLOWING','event$','Module','LIVESHARE_TERMINATE','@univerjs/design','Stop\x20presenting','registerComponent','shouldShareOperation','_fetchOperations','createInstance','_commandDisposable','clear','univerjs-icon\x20univerjs-icon-','presenting','operators','2375550uigvxS','mutations','dispose$','Start\x20following','getCurrentTypeOfUnit$','has','React','_startLiveShareCoordinator','DesktopLiveShareController','CommandType','NOT_FOLLOWING','send','set','useDependency','hasOwnProperty','sheet','Present\x20this\x20document','assign','stringify','amd','BuiltInUIPart','useObservable','tag','_handleOnline','_liveShareService','exports','UniverProLiveShare','pipe','@univerjs/ui','DependentOn','Subject','replace','attrs','getMemberID','1em','SetScrollOperation','_uiPartsService','registerInitialStateReporter','1037iskZGq','idSuffix','following','button','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','UniverInstanceType','UniverProCollaborationClient','10072HJWCAy','SessionStatus','@univerjs/sheets','colorChannel1','toString','SetWorksheetActiveOperation','function','onCommandExecuted','_status$','_univerInstanceService','_status','@univerjs-pro/collaboration-client','Fragment','_init','map','LIVESHARE_REQUEST_HOST','getInitialStates','idle','reverse','includes','_sharedOperations','rxjs','UniverCore','UNIVER_UNKNOWN','univer-size-4','_config','You\x27re\x20not\x20following\x20the\x20presenter','_startFollowing','unitId','default','presenter','_reporters','get','8868856eKnNvn','252gMyenX','UniverSheets','setConfig','substring','string','getValue','params','defIds','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','random','subscribe','getConfig','IDLE','live-share-icon','1160JRYuST','_configService','_handleNewHost','executeCommand','_handleNewChangeSets','call','data','Button','Disposable','OPERATION','UNIVER_SHEET','defineProperty','Dropdown','PRESENTING','CollaborationEvent','entries','extend','not-following','20059020vTwqwX','url(#$1','11914Afmdxg','getTypeOfUnitAdded$','merge','prototype','from','3940785nIBQQV','toDisposable','onStarting','Injector'];_0x3a56=function(){return _0x12225a;};return _0x3a56();}(function(_0x1946e1,_0xfe4b31){var _0x294ebd=_0x39af,_0x1aca49=_0x1946e1();while(!![]){try{var _0x54d3e9=parseInt(_0x294ebd(0x115))/0x1*(-parseInt(_0x294ebd(0x1c5))/0x2)+parseInt(_0x294ebd(0xef))/0x3+-parseInt(_0x294ebd(0x11c))/0x4*(parseInt(_0x294ebd(0x14c))/0x5)+parseInt(_0x294ebd(0x13e))/0x6*(-parseInt(_0x294ebd(0x160))/0x7)+-parseInt(_0x294ebd(0x13d))/0x8+parseInt(_0x294ebd(0x165))/0x9+parseInt(_0x294ebd(0x15e))/0xa;if(_0x54d3e9===_0xfe4b31)break;else _0x1aca49['push'](_0x1aca49['shift']());}catch(_0x15ebda){_0x1aca49['push'](_0x1aca49['shift']());}}}(_0x3a56,0xf1ff3),function(_0x558312,_0x54c048){var _0x57b789=_0x39af;typeof exports==_0x57b789(0x172)&&typeof module<'u'?_0x54c048(exports,require(_0x57b789(0x127)),require(_0x57b789(0x171)),require(_0x57b789(0x11e)),require(_0x57b789(0x17f)),require(_0x57b789(0x10b)),require('react/jsx-runtime'),require(_0x57b789(0x1d6)),require(_0x57b789(0x1b7)),require(_0x57b789(0x16b)),require('rxjs'),require(_0x57b789(0x16f))):typeof define==_0x57b789(0x122)&&define[_0x57b789(0x102)]?define([_0x57b789(0x108),_0x57b789(0x127),_0x57b789(0x171),_0x57b789(0x11e),_0x57b789(0x17f),_0x57b789(0x10b),_0x57b789(0x16d),_0x57b789(0x1d6),_0x57b789(0x1b7),_0x57b789(0x16b),_0x57b789(0x131),_0x57b789(0x16f)],_0x54c048):(_0x558312=typeof globalThis<'u'?globalThis:_0x558312||self,_0x54c048(_0x558312[_0x57b789(0x109)]={},_0x558312[_0x57b789(0x11b)],_0x558312[_0x57b789(0x132)],_0x558312[_0x57b789(0x13f)],_0x558312[_0x57b789(0x199)],_0x558312['UniverUi'],_0x558312['React'],_0x558312['UniverDesign'],_0x558312[_0x57b789(0xf5)],_0x558312[_0x57b789(0x1c7)],_0x558312[_0x57b789(0x131)],_0x558312['rxjs'][_0x57b789(0xee)]));}(this,function(_0xf9b96a,_0x4b6b06,_0x59353b,_0x54c496,_0x1cd1b3,_0x11ada5,_0x35f031,_0x3f148a,_0x4f0aff,_0x3a124a,_0x38e656,_0x4c894a){'use strict';var _0x3356b5=_0x39af;var _0x112838=Object['defineProperty'],_0x5008=(_0x3884e5,_0x4d38fa,_0x2bf628)=>_0x4d38fa in _0x3884e5?_0x112838(_0x3884e5,_0x4d38fa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2bf628}):_0x3884e5[_0x4d38fa]=_0x2bf628,_0x49b7e6=(_0x360c33,_0x7d79ba,_0x3fe41a)=>_0x5008(_0x360c33,typeof _0x7d79ba!=_0x3356b5(0x1ad)?_0x7d79ba+'':_0x7d79ba,_0x3fe41a);const _0x5494ad='live-share.config',_0xe93ea6={};class _0xe1f513 extends _0x59353b[_0x3356b5(0x154)]{constructor(){var _0x4f013e=_0x3356b5;super(...arguments),_0x49b7e6(this,_0x4f013e(0x130),new Set()),_0x49b7e6(this,_0x4f013e(0x13b),new Set());}[_0x3356b5(0x170)](_0xefe5ca){var _0x589b5d=_0x3356b5;return this[_0x589b5d(0x130)][_0x589b5d(0x1b5)](_0xefe5ca),_0x59353b[_0x589b5d(0x166)](()=>this[_0x589b5d(0x130)]['delete'](_0xefe5ca));}[_0x3356b5(0x114)](_0x3753f9){var _0x42a66d=_0x3356b5;return this[_0x42a66d(0x13b)][_0x42a66d(0x1b5)](_0x3753f9),_0x59353b[_0x42a66d(0x166)](()=>this['_reporters']['delete'](_0x3753f9));}[_0x3356b5(0xe7)](_0x423434){var _0x41fe3f=_0x3356b5;return this[_0x41fe3f(0x130)][_0x41fe3f(0xf4)](_0x423434);}['getInitialStates'](_0x1a8ae3){var _0x4b9b3a=_0x3356b5;return Array[_0x4b9b3a(0x164)](this[_0x4b9b3a(0x13b)])[_0x4b9b3a(0x12a)](_0x328ba0=>_0x328ba0(_0x1a8ae3));}}var _0x125e7e=Object[_0x3356b5(0x1cb)],_0x114f78=(_0x1c7f55,_0x4ab318,_0x22b18d,_0x1d61a8)=>{var _0xfa9535=_0x3356b5;for(var _0x53fa57=_0x1d61a8>0x1?void 0x0:_0x1d61a8?_0x125e7e(_0x4ab318,_0x22b18d):_0x4ab318,_0x19d165=_0x1c7f55[_0xfa9535(0x190)]-0x1,_0x31f3e4;_0x19d165>=0x0;_0x19d165--)(_0x31f3e4=_0x1c7f55[_0x19d165])&&(_0x53fa57=_0x31f3e4(_0x53fa57)||_0x53fa57);return _0x53fa57;},_0xe34b9=(_0x136c78,_0x3acf43)=>(_0x216283,_0xc477a3)=>_0x3acf43(_0x216283,_0xc477a3,_0x136c78);let _0x4c5a0c=class extends _0x59353b[_0x3356b5(0x154)]{constructor(_0x2e8cba){var _0x1b8054=_0x3356b5;super(),this[_0x1b8054(0x107)]=_0x2e8cba,this[_0x1b8054(0x129)]();}['_init'](){var _0x5bf53b=_0x3356b5;[_0x1cd1b3[_0x5bf53b(0x1b9)]['id'],_0x1cd1b3[_0x5bf53b(0x112)]['id'],_0x54c496['SetWorksheetActiveOperation']['id']][_0x5bf53b(0x176)](_0x49b0b6=>{var _0x3b55f9=_0x5bf53b;this[_0x3b55f9(0x1c6)](this[_0x3b55f9(0x107)][_0x3b55f9(0x170)](_0x49b0b6));});}};_0x4c5a0c=_0x114f78([_0xe34b9(0x0,_0x59353b[_0x3356b5(0x1b3)](_0xe1f513))],_0x4c5a0c);var _0x31d910=function(){var _0x298097=_0x3356b5;return _0x31d910=Object[_0x298097(0x100)]||function(_0x49e819){var _0x50ec64=_0x298097;for(var _0x2c7095,_0x477700=0x1,_0x352b25=arguments[_0x50ec64(0x190)];_0x477700<_0x352b25;_0x477700++){_0x2c7095=arguments[_0x477700];for(var _0x193637 in _0x2c7095)Object[_0x50ec64(0x163)][_0x50ec64(0xfd)]['call'](_0x2c7095,_0x193637)&&(_0x49e819[_0x193637]=_0x2c7095[_0x193637]);}return _0x49e819;},_0x31d910['apply'](this,arguments);},_0x36b3cd=function(_0x57e402,_0x33f0f9){var _0x422314=_0x3356b5,_0x256bbf={};for(var _0x82591a in _0x57e402)Object[_0x422314(0x163)][_0x422314(0xfd)]['call'](_0x57e402,_0x82591a)&&_0x33f0f9['indexOf'](_0x82591a)<0x0&&(_0x256bbf[_0x82591a]=_0x57e402[_0x82591a]);if(_0x57e402!=null&&typeof Object[_0x422314(0x1a7)]==_0x422314(0x122)){for(var _0x1f2861=0x0,_0x82591a=Object['getOwnPropertySymbols'](_0x57e402);_0x1f2861<_0x82591a[_0x422314(0x190)];_0x1f2861++)_0x33f0f9[_0x422314(0x178)](_0x82591a[_0x1f2861])<0x0&&Object[_0x422314(0x163)][_0x422314(0x188)][_0x422314(0x151)](_0x57e402,_0x82591a[_0x1f2861])&&(_0x256bbf[_0x82591a[_0x1f2861]]=_0x57e402[_0x82591a[_0x1f2861]]);}return _0x256bbf;},_0x23b815=_0x4f0aff[_0x3356b5(0x184)](function(_0x29c87b,_0x3dc755){var _0x59d1da=_0x3356b5,_0x13978f=_0x29c87b['icon'],_0x201282=_0x29c87b['id'],_0xe31775=_0x29c87b[_0x59d1da(0x1b6)],_0x3081c3=_0x29c87b[_0x59d1da(0x15c)],_0x2abeca=_0x36b3cd(_0x29c87b,['icon','id',_0x59d1da(0x1b6),_0x59d1da(0x15c)]),_0x5a2ba7=_0x59d1da(0xec)[_0x59d1da(0x19a)](_0x201282,'\x20')[_0x59d1da(0x19a)](_0xe31775||'')[_0x59d1da(0x197)](),_0x563b3d=_0x4f0aff[_0x59d1da(0x18b)]('_'[_0x59d1da(0x19a)](_0x6f76b6()));return _0x1dacd0(_0x13978f,''[_0x59d1da(0x19a)](_0x201282),{'defIds':_0x13978f['defIds'],'idSuffix':_0x563b3d[_0x59d1da(0x1a1)]},_0x31d910({'ref':_0x3dc755,'className':_0x5a2ba7},_0x2abeca),_0x3081c3);});function _0x1dacd0(_0x319711,_0x360bfb,_0x2c173f,_0x79a21c,_0x217dd8){var _0x408fa1=_0x3356b5;return _0x4f0aff[_0x408fa1(0x1a0)](_0x319711[_0x408fa1(0x105)],_0x31d910(_0x31d910({'key':_0x360bfb},_0x402817(_0x319711,_0x2c173f,_0x217dd8)),_0x79a21c),(_0x3ceb30(_0x319711,_0x2c173f)[_0x408fa1(0x1a4)]||[])[_0x408fa1(0x12a)](function(_0x5c3ea8,_0x192d0d){var _0x5084f8=_0x408fa1;return _0x1dacd0(_0x5c3ea8,''['concat'](_0x360bfb,'-')[_0x5084f8(0x19a)](_0x319711['tag'],'-')[_0x5084f8(0x19a)](_0x192d0d),_0x2c173f,void 0x0,_0x217dd8);}));}function _0x402817(_0x5784fd,_0x287097,_0x269581){var _0xa96357=_0x3356b5,_0x168beb=_0x31d910({},_0x5784fd[_0xa96357(0x10f)]);_0x269581!=null&&_0x269581[_0xa96357(0x11f)]&&_0x168beb[_0xa96357(0x17a)]===_0xa96357(0x11f)&&(_0x168beb[_0xa96357(0x17a)]=_0x269581[_0xa96357(0x11f)]),_0x5784fd[_0xa96357(0x105)]===_0xa96357(0x198)&&_0x168beb['id']&&(_0x168beb['id']=_0x168beb['id']+_0x287097[_0xa96357(0x116)]),Object[_0xa96357(0x15b)](_0x168beb)[_0xa96357(0x176)](function(_0x2b86eb){var _0x155765=_0xa96357,_0x38db15=_0x2b86eb[0x0],_0x12e39f=_0x2b86eb[0x1];_0x38db15===_0x155765(0x198)&&typeof _0x12e39f==_0x155765(0x142)&&(_0x168beb[_0x38db15]=_0x12e39f[_0x155765(0x10e)](/url\(#(.*)\)/,_0x155765(0x15f)[_0x155765(0x19a)](_0x287097['idSuffix'],')')));});var _0x4139dc=_0x287097['defIds'];return!_0x4139dc||_0x4139dc['length']===0x0||(_0x5784fd[_0xa96357(0x105)]==='use'&&_0x168beb[_0xa96357(0x186)]&&(_0x168beb[_0xa96357(0x186)]=_0x168beb[_0xa96357(0x186)]+_0x287097[_0xa96357(0x116)]),Object[_0xa96357(0x15b)](_0x168beb)[_0xa96357(0x176)](function(_0x318a20){var _0x350e6c=_0xa96357,_0x48beeb=_0x318a20[0x0],_0x6969a2=_0x318a20[0x1];typeof _0x6969a2==_0x350e6c(0x142)&&(_0x168beb[_0x48beeb]=_0x6969a2['replace'](/url\(#(.*)\)/,'url(#$1'[_0x350e6c(0x19a)](_0x287097['idSuffix'],')')));})),_0x168beb;}function _0x3ceb30(_0x4d11be,_0x52d02c){var _0x1c073f=_0x3356b5,_0x360eff,_0x320b47=_0x52d02c[_0x1c073f(0x145)];return!_0x320b47||_0x320b47[_0x1c073f(0x190)]===0x0?_0x4d11be:_0x4d11be[_0x1c073f(0x105)]==='defs'&&(!((_0x360eff=_0x4d11be['children'])===null||_0x360eff===void 0x0)&&_0x360eff[_0x1c073f(0x190)])?_0x31d910(_0x31d910({},_0x4d11be),{'children':_0x4d11be[_0x1c073f(0x1a4)][_0x1c073f(0x12a)](function(_0x335ba6){var _0x112f2f=_0x1c073f;return typeof _0x335ba6[_0x112f2f(0x10f)]['id']==_0x112f2f(0x142)&&_0x320b47&&_0x320b47[_0x112f2f(0x12f)](_0x335ba6['attrs']['id'])?_0x31d910(_0x31d910({},_0x335ba6),{'attrs':_0x31d910(_0x31d910({},_0x335ba6['attrs']),{'id':_0x335ba6[_0x112f2f(0x10f)]['id']+_0x52d02c[_0x112f2f(0x116)]})}):_0x335ba6;})}):_0x4d11be;}function _0x6f76b6(){var _0x4b6f47=_0x3356b5;return Math[_0x4b6f47(0x147)]()[_0x4b6f47(0x120)](0x24)[_0x4b6f47(0x141)](0x2,0x8);}_0x23b815[_0x3356b5(0x1ab)]=_0x3356b5(0x1c8);var _0x39219a={'tag':'svg','attrs':{'xmlns':_0x3356b5(0x1bd),'fill':_0x3356b5(0x1a3),'viewBox':'0\x200\x2017\x2017','width':_0x3356b5(0x111),'height':_0x3356b5(0x111)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x3356b5(0x1a9),'attrs':{'fill':_0x3356b5(0x19f),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x3356b5(0x1ae)}}]},_0x5ce347=_0x4f0aff['forwardRef'](function(_0x5396a6,_0x39f957){var _0x28b8ed=_0x3356b5;return _0x4f0aff[_0x28b8ed(0x1a0)](_0x23b815,Object[_0x28b8ed(0x100)]({},_0x5396a6,{'id':_0x28b8ed(0x14b),'ref':_0x39f957,'icon':_0x39219a}));});_0x5ce347[_0x3356b5(0x1ab)]='LiveShareIcon';var _0x41a641=Object[_0x3356b5(0x1cb)],_0x570e02=(_0x5e0766,_0x321859,_0x13ad70,_0x131073)=>{var _0x392a35=_0x3356b5;for(var _0x4926a9=_0x131073>0x1?void 0x0:_0x131073?_0x41a641(_0x321859,_0x13ad70):_0x321859,_0x404554=_0x5e0766[_0x392a35(0x190)]-0x1,_0x557779;_0x404554>=0x0;_0x404554--)(_0x557779=_0x5e0766[_0x404554])&&(_0x4926a9=_0x557779(_0x4926a9)||_0x4926a9);return _0x4926a9;},_0x5b2575=(_0x55cfc8,_0xd5bab9)=>(_0x5ef7b9,_0x59b245)=>_0xd5bab9(_0x5ef7b9,_0x59b245,_0x55cfc8);_0xf9b96a[_0x3356b5(0x185)]=class extends _0x59353b[_0x3356b5(0x192)]{constructor(_0x264179,_0x1400a2,_0x5b8020){var _0x56dbe9=_0x3356b5;super(),_0x49b7e6(this,_0x56dbe9(0x1d1),new Map()),(this[_0x56dbe9(0x125)]=_0x264179,this[_0x56dbe9(0x16e)]=_0x1400a2,this['_collabSessionService']=_0x5b8020,this[_0x56dbe9(0x129)]());}async[_0x3356b5(0x19e)](_0x2d1080){var _0x229615=_0x3356b5;return this['_entities'][_0x229615(0xf4)](_0x2d1080)||await this['_startLiveShareCoordinator'](_0x2d1080),this[_0x229615(0x1d1)][_0x229615(0x13c)](_0x2d1080);}['_init'](){var _0x20ee54=_0x3356b5;this['_univerInstanceService'][_0x20ee54(0x161)](_0x59353b['UniverInstanceType'][_0x20ee54(0x156)])[_0x20ee54(0x10a)](_0x4c894a[_0x20ee54(0x189)](this[_0x20ee54(0xf1)]))[_0x20ee54(0x148)](async _0x1dc966=>{var _0x483559=_0x20ee54;const _0x125785=_0x1dc966[_0x483559(0x1c9)]();this[_0x483559(0x1d1)][_0x483559(0xf4)](_0x125785)||this['_startLiveShareCoordinator'](_0x125785);}),this[_0x20ee54(0x125)]['getTypeOfUnitDisposed$'](_0x59353b[_0x20ee54(0x11a)][_0x20ee54(0x156)])[_0x20ee54(0x10a)](_0x4c894a[_0x20ee54(0x189)](this[_0x20ee54(0xf1)]))[_0x20ee54(0x148)](_0xa60d85=>{var _0x462b1d=_0x20ee54;const _0x3b709e=_0xa60d85[_0x462b1d(0x1c9)](),_0x1c776d=this[_0x462b1d(0x1d1)][_0x462b1d(0x13c)](_0x3b709e);_0x1c776d==null||_0x1c776d['dispose']();});}async[_0x3356b5(0xf6)](_0x5bc35b){var _0xf92cd6=_0x3356b5;const _0x3828c8=await this['_collabSessionService'][_0xf92cd6(0x175)](_0x5bc35b),_0x421601=this[_0xf92cd6(0x16e)][_0xf92cd6(0xe9)](_0xf9b96a[_0xf92cd6(0x16a)],_0x5bc35b,_0x3828c8);return _0x421601[_0xf92cd6(0x1c2)](),this[_0xf92cd6(0x1d1)][_0xf92cd6(0xfb)](_0x5bc35b,_0x421601),_0x421601;}},_0xf9b96a['LiveShareController']=_0x570e02([_0x5b2575(0x0,_0x59353b['IUniverInstanceService']),_0x5b2575(0x1,_0x59353b[_0x3356b5(0x1b3)](_0x59353b[_0x3356b5(0x168)])),_0x5b2575(0x2,_0x59353b[_0x3356b5(0x1b3)](_0x4b6b06[_0x3356b5(0x1a5)]))],_0xf9b96a['LiveShareController']);var _0xcd249d=(_0x56ce43=>(_0x56ce43[_0x3356b5(0x173)]=_0x3356b5(0x19b),_0x56ce43['IDLE']=_0x3356b5(0x12d),_0x56ce43[_0x3356b5(0x1d2)]='following',_0x56ce43['NOT_FOLLOWING']=_0x3356b5(0x15d),_0x56ce43['PRESENTING']=_0x3356b5(0xed),_0x56ce43))(_0xcd249d||{});const _0x1d988f=_0x3356b5(0x1b8),_0x2a55b2=0xc8;_0xf9b96a[_0x3356b5(0x16a)]=class extends _0x59353b[_0x3356b5(0x192)]{constructor(_0x5c8710,_0x4faee5,_0x4b97af,_0x535bd9,_0x2d09ff){var _0x8c8e7c=_0x3356b5;super(),_0x49b7e6(this,_0x8c8e7c(0x124),new _0x38e656['BehaviorSubject'](_0x8c8e7c(0x12d))),_0x49b7e6(this,'status$',this[_0x8c8e7c(0x124)]['asObservable']()),_0x49b7e6(this,_0x8c8e7c(0x129),!0x1),_0x49b7e6(this,_0x8c8e7c(0xea),null),_0x49b7e6(this,'_presenter',null),(this['_unitID']=_0x5c8710,this['_collabSession']=_0x4faee5,this[_0x8c8e7c(0x14d)]=_0x4b97af,this[_0x8c8e7c(0x107)]=_0x535bd9,this[_0x8c8e7c(0x182)]=_0x2d09ff);}get['_status'](){var _0x52df05=_0x3356b5;return this[_0x52df05(0x124)][_0x52df05(0x143)]();}['dispose'](){var _0x2a43f4=_0x3356b5,_0x4e6740;(_0x4e6740=this['_commandDisposable'])==null||_0x4e6740[_0x2a43f4(0x1c0)](),this[_0x2a43f4(0x124)][_0x2a43f4(0x18a)](_0x2a43f4(0x12d)),this[_0x2a43f4(0x124)][_0x2a43f4(0x196)]();}['init'](){var _0x346852=_0x3356b5;this[_0x346852(0x129)]||(this['_init']=!0x0,this[_0x346852(0x1ba)][_0x346852(0x1c4)][_0x346852(0x10a)](_0x4c894a[_0x346852(0x189)](this[_0x346852(0xf1)]))[_0x346852(0x148)](_0x5e78cf=>{var _0xb30f3d=_0x346852;switch(_0x5e78cf){case _0x4b6b06[_0xb30f3d(0x11d)][_0xb30f3d(0x173)]:this[_0xb30f3d(0x194)]();break;case _0x4b6b06[_0xb30f3d(0x11d)][_0xb30f3d(0x1c1)]:this[_0xb30f3d(0x106)]();break;}}),this['_collabSession'][_0x346852(0x1d3)][_0x346852(0x10a)](_0x4c894a[_0x346852(0x189)](this[_0x346852(0xf1)]))['subscribe'](_0x355e88=>{var _0x29a5a2=_0x346852;const {eventID:_0x40c011}=_0x355e88;switch(_0x40c011){case _0x3a124a[_0x29a5a2(0x15a)]['LIVESHARE_NEW_HOST']:this[_0x29a5a2(0x14e)](_0x355e88);break;case _0x3a124a[_0x29a5a2(0x15a)][_0x29a5a2(0x183)]:this['_handleOperation'](_0x355e88);break;case _0x3a124a[_0x29a5a2(0x15a)]['LIVESHARE_TERMINATE']:this[_0x29a5a2(0x1cd)]();break;case _0x3a124a['CollaborationEvent']['NEW_CHANGESETS']:this[_0x29a5a2(0x150)](_0x355e88);break;}}));}[_0x3356b5(0x19d)](){var _0x5baa1d=_0x3356b5;this['_collabSession'][_0x5baa1d(0xfa)]({'eventID':_0x3a124a[_0x5baa1d(0x15a)][_0x5baa1d(0x12b)],'data':{'unitID':this[_0x5baa1d(0x1ce)],'userID':this[_0x5baa1d(0x1ba)][_0x5baa1d(0x110)]()}},this[_0x5baa1d(0x1ce)]);}['stopPresenting'](){var _0x2e1f5f=_0x3356b5;this[_0x2e1f5f(0x126)]==='presenting'&&(this['_status$'][_0x2e1f5f(0x18a)]('idle'),this[_0x2e1f5f(0x1ba)][_0x2e1f5f(0xfa)]({'eventID':_0x3a124a[_0x2e1f5f(0x15a)][_0x2e1f5f(0x1d5)],'data':{'unitID':this[_0x2e1f5f(0x1ce)]}},this[_0x2e1f5f(0x1ce)]));}[_0x3356b5(0x17b)](){var _0x553c1f=_0x3356b5;this[_0x553c1f(0x126)]===_0x553c1f(0x15d)&&(this[_0x553c1f(0x124)]['next']('following'),this[_0x553c1f(0x137)]());}[_0x3356b5(0x16c)](){var _0x382ea0=_0x3356b5;this[_0x382ea0(0x126)]===_0x382ea0(0x117)&&this[_0x382ea0(0x191)]();}['_handleNewHost'](_0x232962){var _0x5764a1=_0x3356b5;const {presenter:_0x50f1df}=_0x232962[_0x5764a1(0x152)],_0x4af71c=this[_0x5764a1(0x1ba)][_0x5764a1(0x110)]();this['_presenter']=_0x50f1df,_0x50f1df===_0x4af71c?(this[_0x5764a1(0x191)](),this['_startPresenting']()):this[_0x5764a1(0x126)]!==_0x5764a1(0x15d)&&(this['_stopPresenting'](),this[_0x5764a1(0x137)]());}[_0x3356b5(0xe8)](){var _0xee5bf4=_0x3356b5;const _0x12b280={'eventID':_0x3a124a[_0xee5bf4(0x15a)]['LIVESHARE_FETCH_OPERATIONS']};this[_0xee5bf4(0x1ba)][_0xee5bf4(0xfa)](_0x12b280,this['_unitID']);}[_0x3356b5(0x1cd)](){var _0x5f2e71=_0x3356b5;this[_0x5f2e71(0x17d)]=null,this[_0x5f2e71(0x126)]!==_0x5f2e71(0xed)&&this[_0x5f2e71(0x19c)]();}[_0x3356b5(0x150)](_0x2de931){var _0x509c50=_0x3356b5;if(this[_0x509c50(0x126)]===_0x509c50(0x117)&&this['_presenter']===_0x2de931['data'][_0x509c50(0x18c)]){const _0x14963b=_0x3a124a['parseProtocolChangeset'](_0x2de931[_0x509c50(0x152)])[_0x509c50(0xf0)][_0x509c50(0x12e)]()[_0x509c50(0x1bf)](_0x2e821d=>_0x2e821d['id']===_0x54c496[_0x509c50(0x181)]['id']);if(_0x14963b){const _0x609349=_0x14963b[_0x509c50(0x144)][_0x509c50(0x138)],_0x1360ae=_0x14963b[_0x509c50(0x144)][_0x509c50(0xfe)]['id'];setTimeout(()=>{var _0x10e3d5=_0x509c50;this[_0x10e3d5(0x182)][_0x10e3d5(0x14f)](_0x54c496[_0x10e3d5(0x121)]['id'],{'unitId':_0x609349,'subUnitId':_0x1360ae},{'fromCollab':!0x0});});}}}[_0x3356b5(0x174)](){var _0x4a69eb=_0x3356b5;this[_0x4a69eb(0x124)]['next'](_0x4a69eb(0xed));const _0x40636b=new Map(),_0x14f435=this[_0x4a69eb(0xea)]=new _0x59353b[(_0x4a69eb(0x1ca))]();_0x14f435[_0x4a69eb(0x1b5)](_0x59353b[_0x4a69eb(0x166)](()=>{var _0x57a7f3=_0x4a69eb;_0x40636b[_0x57a7f3(0x176)](_0x3961cd=>_0x3961cd[_0x57a7f3(0x196)]()),_0x40636b[_0x57a7f3(0xeb)]();})),_0x14f435[_0x4a69eb(0x1b5)](this['_commandService'][_0x4a69eb(0x123)](_0x56e726=>{var _0x5e0f8b=_0x4a69eb,_0x216e10;if(_0x56e726['type']!==_0x59353b[_0x5e0f8b(0xf8)][_0x5e0f8b(0x155)]||!this[_0x5e0f8b(0x107)][_0x5e0f8b(0xe7)](_0x56e726['id']))return;const {id:_0x1d7856}=_0x56e726;let _0x235a34;_0x40636b[_0x5e0f8b(0xf4)](_0x1d7856)?_0x235a34=_0x40636b[_0x5e0f8b(0x13c)](_0x1d7856):(_0x235a34=new _0x38e656[(_0x5e0f8b(0x10d))](),_0x40636b[_0x5e0f8b(0xfb)](_0x1d7856,_0x235a34),_0x235a34['pipe'](_0x4c894a['throttleTime']((_0x216e10=this[_0x5e0f8b(0x14d)][_0x5e0f8b(0x149)](_0x1d988f))!=null?_0x216e10:_0x2a55b2,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5e0f8b(0x148)](_0x1797e0=>{var _0x390860=_0x5e0f8b;this[_0x390860(0x1ba)][_0x390860(0xfa)]({'eventID':_0x3a124a[_0x390860(0x15a)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x390860(0x1ce)],'operations':{[_0x1797e0['id']]:{'id':_0x1797e0['id'],'params':JSON[_0x390860(0x101)](_0x1797e0['params'])}}}},this[_0x390860(0x1ce)]);})),_0x235a34[_0x5e0f8b(0x18a)](_0x56e726);})),this[_0x4a69eb(0x107)][_0x4a69eb(0x12c)](this['_unitID'])[_0x4a69eb(0x176)](_0xf5b74a=>this[_0x4a69eb(0x1ba)][_0x4a69eb(0xfa)]({'eventID':_0x3a124a[_0x4a69eb(0x15a)][_0x4a69eb(0x183)],'data':{'unitID':this['_unitID'],'operations':{[_0xf5b74a['id']]:{'id':_0xf5b74a['id'],'params':JSON[_0x4a69eb(0x101)](_0xf5b74a[_0x4a69eb(0x144)])}}}},this[_0x4a69eb(0x1ce)]));}['_stopPresenting'](){var _0x8194d7=_0x3356b5,_0x3eff08;this['_status$']['next'](_0x8194d7(0x12d)),(_0x3eff08=this[_0x8194d7(0xea)])==null||_0x3eff08[_0x8194d7(0x1c0)](),this['_commandDisposable']=null;}[_0x3356b5(0x137)](){var _0x4a7e2d=_0x3356b5,_0x5b4272;(_0x5b4272=this[_0x4a7e2d(0xea)])==null||_0x5b4272[_0x4a7e2d(0x1c0)](),this[_0x4a7e2d(0x124)]['next'](_0x4a7e2d(0x117));}[_0x3356b5(0x19c)](){var _0x56fd0f=_0x3356b5,_0x1b8349;this[_0x56fd0f(0x124)][_0x56fd0f(0x18a)](_0x56fd0f(0x12d)),(_0x1b8349=this[_0x56fd0f(0xea)])==null||_0x1b8349['dispose'](),this[_0x56fd0f(0xea)]=null;}['_stopFollowing'](){var _0x18328c=_0x3356b5,_0x15f1cc;this['_status$'][_0x18328c(0x18a)](_0x18328c(0x15d)),(_0x15f1cc=this[_0x18328c(0xea)])==null||_0x15f1cc[_0x18328c(0x1c0)]();}[_0x3356b5(0x17e)](_0x536087){var _0x193b98=_0x3356b5;if([_0x193b98(0xed),_0x193b98(0x15d),_0x193b98(0x19b)][_0x193b98(0x12f)](this[_0x193b98(0x126)])||!_0x536087[_0x193b98(0x152)]['presenter']||_0x536087[_0x193b98(0x152)][_0x193b98(0x13a)]===this[_0x193b98(0x1ba)]['getMemberID']())return;this[_0x193b98(0x126)]===_0x193b98(0x12d)&&this['_startFollowing']();const _0x362e81=_0x536087[_0x193b98(0x152)][_0x193b98(0x195)];Object['values'](_0x362e81)[_0x193b98(0x176)](_0x148d3e=>{var _0x287b94=_0x193b98;this[_0x287b94(0x182)][_0x287b94(0x14f)](_0x148d3e['id'],_0x148d3e[_0x287b94(0x144)]?JSON[_0x287b94(0x1bc)](_0x148d3e[_0x287b94(0x144)]):null,{'fromCollab':!0x0});});}[_0x3356b5(0x194)](){var _0x51baeb=_0x3356b5,_0x2aeaf9;this['_status$']['next'](_0x51baeb(0x19b)),(_0x2aeaf9=this[_0x51baeb(0xea)])==null||_0x2aeaf9[_0x51baeb(0x1c0)]();}[_0x3356b5(0x106)](){var _0x22b120=_0x3356b5;this['_status$'][_0x22b120(0x18a)]('idle'),this[_0x22b120(0xe8)]();}},_0xf9b96a[_0x3356b5(0x16a)]=_0x570e02([_0x5b2575(0x2,_0x59353b[_0x3356b5(0x1bb)]),_0x5b2575(0x3,_0x59353b['Inject'](_0xe1f513)),_0x5b2575(0x4,_0x59353b['ICommandService'])],_0xf9b96a['LiveShareCoordinator']);function _0x50ce8b(){var _0x11e87b=_0x3356b5;const _0x7653d1=_0x11ada5[_0x11e87b(0xfc)](_0xf9b96a[_0x11e87b(0x185)]),_0x3e23e3=_0x11ada5[_0x11e87b(0xfc)](_0x59353b[_0x11e87b(0x180)]),_0x2badcd=_0x11ada5[_0x11e87b(0x104)](()=>_0x3e23e3[_0x11e87b(0xf3)](_0x59353b[_0x11e87b(0x11a)][_0x11e87b(0x156)]),void 0x0,!0x1,[]),[_0x4729d1,_0x5b18df]=_0x4f0aff[_0x11e87b(0x1b4)](null),[_0x3fd648,_0x412445]=_0x4f0aff[_0x11e87b(0x1b4)](_0xcd249d[_0x11e87b(0x14a)]),_0xbb48d2=_0x4f0aff[_0x11e87b(0x18b)](null);return _0x4f0aff[_0x11e87b(0x17c)](()=>(_0x2badcd&&_0x7653d1['getLiveShareCoordinator'](_0x2badcd['getUnitId']())['then'](_0x347b50=>{var _0x5594ad=_0x11e87b;_0x5b18df(_0x347b50),_0xbb48d2['current']=_0x347b50[_0x5594ad(0x1ac)]['subscribe'](_0x315529=>{_0x412445(_0x315529);});}),()=>{var _0x91268e=_0x11e87b,_0x1b7b48;(_0x1b7b48=_0xbb48d2['current'])==null||_0x1b7b48[_0x91268e(0x179)](),_0xbb48d2['current']=null;}),[_0x2badcd,_0x7653d1]),_0x4729d1?_0x35f031['jsx'](_0x3f148a[_0x11e87b(0x158)],{'align':_0x11e87b(0x18f),'disabled':_0x3fd648===_0xcd249d[_0x11e87b(0x173)],'className':_0x11e87b(0x119),'overlay':_0x35f031[_0x11e87b(0x1cf)](_0x5021ab,{'status':_0x3fd648,'coordinator':_0x4729d1}),'children':_0x35f031[_0x11e87b(0x1cf)](_0x11e87b(0x118),{'className':_0x3f148a['clsx'](_0x11e87b(0x146),{'univer-cursor-not-allowed':_0x3fd648===_0xcd249d['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3fd648!==_0xcd249d[_0x11e87b(0x173)]}),'type':_0x11e87b(0x118),'children':_0x35f031['jsx'](_0x5ce347,{'className':_0x11e87b(0x134)})})}):null;}function _0x5021ab(_0x342b27){var _0x3d82e7=_0x3356b5;const {status:_0x26e201,coordinator:_0x6186f0}=_0x342b27;switch(_0x26e201){case _0xcd249d[_0x3d82e7(0x14a)]:return _0x35f031[_0x3d82e7(0x1cf)](_0x58cf44,{'coordinator':_0x6186f0});case _0xcd249d['FOLLOWING']:return _0x35f031[_0x3d82e7(0x1cf)](_0x2334b9,{'coordinator':_0x6186f0});case _0xcd249d[_0x3d82e7(0xf9)]:return _0x35f031[_0x3d82e7(0x1cf)](_0x5e6172,{'coordinator':_0x6186f0});case _0xcd249d[_0x3d82e7(0x173)]:return _0x35f031['jsx'](_0x593d5c,{});case _0xcd249d[_0x3d82e7(0x159)]:return _0x35f031[_0x3d82e7(0x1cf)](_0xa12949,{'coordinator':_0x6186f0});default:return null;}}function _0x58cf44(_0x41c96b){var _0x1d1e72=_0x3356b5;const {coordinator:_0xd42030}=_0x41c96b;return _0x35f031['jsxs'](_0x35f031['Fragment'],{'children':[_0x35f031[_0x1d1e72(0x1cf)]('div',{'className':_0x1d1e72(0x1b1),'children':_0x1d1e72(0xff)}),_0x35f031[_0x1d1e72(0x1cf)](_0x3f148a[_0x1d1e72(0x153)],{'onClick':()=>_0xd42030[_0x1d1e72(0x19d)](),'children':_0x1d1e72(0x1c3)})]});}function _0x2334b9(_0x53d144){var _0x11dbef=_0x3356b5;const {coordinator:_0x574475}=_0x53d144;return _0x35f031['jsxs'](_0x35f031['Fragment'],{'children':[_0x35f031['jsx'](_0x11dbef(0x18e),{'className':_0x11dbef(0x1b1),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x35f031[_0x11dbef(0x1cf)](_0x3f148a[_0x11dbef(0x153)],{'onClick':()=>_0x574475[_0x11dbef(0x16c)](),'children':'Stop\x20following'})]});}function _0x5e6172(_0x3407a7){var _0x93bf6a=_0x3356b5;const {coordinator:_0x5e6bc0}=_0x3407a7;return _0x35f031[_0x93bf6a(0x1b0)](_0x35f031[_0x93bf6a(0x128)],{'children':[_0x35f031[_0x93bf6a(0x1cf)](_0x93bf6a(0x18e),{'className':_0x93bf6a(0x1b1),'children':_0x93bf6a(0x136)}),_0x35f031[_0x93bf6a(0x1cf)](_0x3f148a[_0x93bf6a(0x153)],{'variant':_0x93bf6a(0x1be),'onClick':()=>_0x5e6bc0['startFollowing'](),'children':_0x93bf6a(0xf2)})]});}function _0xa12949(_0x45f6e0){var _0x3cb07e=_0x3356b5;const {coordinator:_0x478253}=_0x45f6e0;return _0x35f031[_0x3cb07e(0x1b0)](_0x35f031['Fragment'],{'children':[_0x35f031['jsx'](_0x3cb07e(0x18e),{'className':_0x3cb07e(0x1b1),'children':_0x3cb07e(0x1a8)}),_0x35f031[_0x3cb07e(0x1cf)](_0x3f148a['Button'],{'variant':_0x3cb07e(0x139),'onClick':()=>_0x478253['stopPresenting'](),'children':_0x3cb07e(0xe5)})]});}function _0x593d5c(){var _0x152780=_0x3356b5;return _0x35f031[_0x152780(0x1cf)](_0x35f031[_0x152780(0x128)],{'children':_0x152780(0x177)});}var _0xbb99dc=Object['getOwnPropertyDescriptor'],_0x1e01e3=(_0x2807d0,_0x175f5d,_0x464c4a,_0x107380)=>{var _0x52d63e=_0x3356b5;for(var _0x5ead5d=_0x107380>0x1?void 0x0:_0x107380?_0xbb99dc(_0x175f5d,_0x464c4a):_0x175f5d,_0x1452cd=_0x2807d0[_0x52d63e(0x190)]-0x1,_0x53e091;_0x1452cd>=0x0;_0x1452cd--)(_0x53e091=_0x2807d0[_0x1452cd])&&(_0x5ead5d=_0x53e091(_0x5ead5d)||_0x5ead5d);return _0x5ead5d;},_0x16331a=(_0x3af27a,_0x7418e0)=>(_0x1de2cb,_0x202f7d)=>_0x7418e0(_0x1de2cb,_0x202f7d,_0x3af27a);_0xf9b96a['DesktopLiveShareController']=class extends _0x59353b[_0x3356b5(0x154)]{constructor(_0x5da732,_0x465925){var _0x3c6260=_0x3356b5;super(),this[_0x3c6260(0x16e)]=_0x5da732,this[_0x3c6260(0x113)]=_0x465925,this['_mountLiveShare']();}[_0x3356b5(0x1cc)](){var _0x4b0b11=_0x3356b5;this['disposeWithMe'](this[_0x4b0b11(0x113)][_0x4b0b11(0xe6)](_0x11ada5[_0x4b0b11(0x103)][_0x4b0b11(0x187)],()=>_0x11ada5[_0x4b0b11(0x169)](_0x50ce8b,this[_0x4b0b11(0x16e)])));}},_0xf9b96a['DesktopLiveShareController']=_0x1e01e3([_0x16331a(0x0,_0x59353b[_0x3356b5(0x1b3)](_0x59353b['Injector'])),_0x16331a(0x1,_0x11ada5[_0x3356b5(0x1d0)])],_0xf9b96a[_0x3356b5(0xf7)]);var _0x5dcf60=Object[_0x3356b5(0x157)],_0x3c5673=Object[_0x3356b5(0x1cb)],_0x53109e=(_0x8a676e,_0x59168a,_0xf016d8)=>_0x59168a in _0x8a676e?_0x5dcf60(_0x8a676e,_0x59168a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xf016d8}):_0x8a676e[_0x59168a]=_0xf016d8,_0x251400=(_0x22ec5a,_0x98abd0,_0x45329c,_0xd0836c)=>{var _0x12f620=_0x3356b5;for(var _0x102326=_0xd0836c>0x1?void 0x0:_0xd0836c?_0x3c5673(_0x98abd0,_0x45329c):_0x98abd0,_0xd4b099=_0x22ec5a[_0x12f620(0x190)]-0x1,_0x307844;_0xd4b099>=0x0;_0xd4b099--)(_0x307844=_0x22ec5a[_0xd4b099])&&(_0x102326=_0x307844(_0x102326)||_0x102326);return _0x102326;},_0x4c4fa3=(_0x52da64,_0x4ebb22)=>(_0x1cbef5,_0x1eb56f)=>_0x4ebb22(_0x1cbef5,_0x1eb56f,_0x52da64),_0x32c7d1=(_0x14110a,_0x52defd,_0x1694d7)=>_0x53109e(_0x14110a,typeof _0x52defd!='symbol'?_0x52defd+'':_0x52defd,_0x1694d7);const _0xce7ea3='UNIVER_LIVE_SHARE_PLUGIN';_0xf9b96a['UniverLiveSharePlugin']=class extends _0x59353b['Plugin']{constructor(_0x176cc7=_0xe93ea6,_0x4923d5,_0x1ea338){var _0x5c692e=_0x3356b5;super(),this[_0x5c692e(0x135)]=_0x176cc7,this[_0x5c692e(0x16e)]=_0x4923d5,this[_0x5c692e(0x14d)]=_0x1ea338;const {..._0x357821}=_0x59353b[_0x5c692e(0x162)]({},_0xe93ea6,this[_0x5c692e(0x135)]);this[_0x5c692e(0x14d)][_0x5c692e(0x140)](_0x5494ad,_0x357821);}[_0x3356b5(0x167)](){var _0x3da814=_0x3356b5;_0x59353b[_0x3da814(0x1aa)](this[_0x3da814(0x16e)],_0x59353b['mergeOverrideWithDependencies']([[_0xe1f513],[_0xf9b96a[_0x3da814(0x185)]],[_0x4c5a0c],[_0xf9b96a[_0x3da814(0xf7)]]],this[_0x3da814(0x135)]['override'])),_0x59353b[_0x3da814(0x1af)](this[_0x3da814(0x16e)],[[_0x4c5a0c]]);}[_0x3356b5(0x18d)](){var _0x16b3c9=_0x3356b5;_0x59353b[_0x16b3c9(0x1af)](this[_0x16b3c9(0x16e)],[[_0xf9b96a['DesktopLiveShareController']]]);}},_0x32c7d1(_0xf9b96a['UniverLiveSharePlugin'],'type',_0x59353b[_0x3356b5(0x11a)][_0x3356b5(0x133)]),_0x32c7d1(_0xf9b96a[_0x3356b5(0x1a2)],'pluginName',_0xce7ea3),_0xf9b96a['UniverLiveSharePlugin']=_0x251400([_0x59353b[_0x3356b5(0x10c)](_0x4b6b06['UniverCollaborationClientPlugin']),_0x4c4fa3(0x1,_0x59353b[_0x3356b5(0x1b3)](_0x59353b[_0x3356b5(0x168)])),_0x4c4fa3(0x2,_0x59353b[_0x3356b5(0x1bb)])],_0xf9b96a[_0x3356b5(0x1a2)]),_0xf9b96a[_0x3356b5(0x193)]=_0x50ce8b,_0xf9b96a[_0x3356b5(0x1a6)]=_0xe1f513,_0xf9b96a[_0x3356b5(0x1b2)]=_0xcd249d,Object[_0x3356b5(0x157)](_0xf9b96a,Symbol['toStringTag'],{'value':_0x3356b5(0x1d4)});}));
1
+ function _0x115c(_0x2c432e,_0x3c1003){var _0x1c35cb=_0x1c35();return _0x115c=function(_0x115ca6,_0x3e0330){_0x115ca6=_0x115ca6-0x89;var _0x3f6de6=_0x1c35cb[_0x115ca6];return _0x3f6de6;},_0x115c(_0x2c432e,_0x3c1003);}(function(_0x38a848,_0x25cb1a){var _0x3ad520=_0x115c,_0x360f24=_0x38a848();while(!![]){try{var _0x5a5c66=-parseInt(_0x3ad520(0xf2))/0x1+parseInt(_0x3ad520(0xfd))/0x2*(parseInt(_0x3ad520(0x15f))/0x3)+-parseInt(_0x3ad520(0xa0))/0x4*(-parseInt(_0x3ad520(0x141))/0x5)+-parseInt(_0x3ad520(0x137))/0x6+parseInt(_0x3ad520(0xf6))/0x7*(-parseInt(_0x3ad520(0xba))/0x8)+-parseInt(_0x3ad520(0x109))/0x9*(-parseInt(_0x3ad520(0x8d))/0xa)+-parseInt(_0x3ad520(0x181))/0xb*(parseInt(_0x3ad520(0xea))/0xc);if(_0x5a5c66===_0x25cb1a)break;else _0x360f24['push'](_0x360f24['shift']());}catch(_0x218677){_0x360f24['push'](_0x360f24['shift']());}}}(_0x1c35,0x2cb9e),function(_0x56c7e8,_0x43dc6c){var _0x496d60=_0x115c;typeof exports==_0x496d60(0xa4)&&typeof module<'u'?_0x43dc6c(exports,require('@univerjs-pro/collaboration-client'),require(_0x496d60(0x10e)),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require(_0x496d60(0x10d)),require(_0x496d60(0x103)),require(_0x496d60(0x9b)),require('@univerjs-pro/collaboration'),require(_0x496d60(0x104)),require('rxjs/operators')):typeof define==_0x496d60(0x118)&&define[_0x496d60(0x16e)]?define(['exports',_0x496d60(0xa2),_0x496d60(0x10e),_0x496d60(0x17a),'@univerjs/sheets-ui',_0x496d60(0xe4),_0x496d60(0x10d),_0x496d60(0x103),'react',_0x496d60(0x99),_0x496d60(0x104),_0x496d60(0x15d)],_0x43dc6c):(_0x56c7e8=typeof globalThis<'u'?globalThis:_0x56c7e8||self,_0x43dc6c(_0x56c7e8[_0x496d60(0xd4)]={},_0x56c7e8['UniverProCollaborationClient'],_0x56c7e8[_0x496d60(0x136)],_0x56c7e8[_0x496d60(0xce)],_0x56c7e8[_0x496d60(0xe2)],_0x56c7e8[_0x496d60(0x14e)],_0x56c7e8[_0x496d60(0xcf)],_0x56c7e8[_0x496d60(0x184)],_0x56c7e8[_0x496d60(0xcf)],_0x56c7e8['UniverProCollaboration'],_0x56c7e8['rxjs'],_0x56c7e8[_0x496d60(0x104)][_0x496d60(0xf1)]));}(this,function(_0x1ce817,_0x1d09ee,_0x3de664,_0xfb8100,_0x5d896e,_0x5b02c5,_0x183b5d,_0x318939,_0x200ed7,_0x2ffff0,_0x268533,_0x11e3ef){'use strict';var _0x1536fe=_0x115c;var _0x3b037f=Object[_0x1536fe(0x173)],_0x463b46=(_0x41b07d,_0x4e9baa,_0xa4327d)=>_0x4e9baa in _0x41b07d?_0x3b037f(_0x41b07d,_0x4e9baa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa4327d}):_0x41b07d[_0x4e9baa]=_0xa4327d,_0x2b7a21=(_0x522911,_0x376002,_0x1d0e1a)=>_0x463b46(_0x522911,typeof _0x376002!=_0x1536fe(0xbe)?_0x376002+'':_0x376002,_0x1d0e1a);const _0x4f9b65=_0x1536fe(0x171),_0x2b0129={};class _0x1d2d40 extends _0x3de664[_0x1536fe(0x8c)]{constructor(){var _0x13a7f8=_0x1536fe;super(...arguments),_0x2b7a21(this,_0x13a7f8(0xaa),new Set()),_0x2b7a21(this,_0x13a7f8(0x9d),new Set());}[_0x1536fe(0x15c)](_0x27730a){var _0x484b7e=_0x1536fe;return this[_0x484b7e(0xaa)][_0x484b7e(0x169)](_0x27730a),_0x3de664[_0x484b7e(0x168)](()=>this[_0x484b7e(0xaa)]['delete'](_0x27730a));}[_0x1536fe(0x159)](_0x9884c2){var _0x141c9e=_0x1536fe;return this[_0x141c9e(0x9d)][_0x141c9e(0x169)](_0x9884c2),_0x3de664[_0x141c9e(0x168)](()=>this[_0x141c9e(0x9d)][_0x141c9e(0xf3)](_0x9884c2));}[_0x1536fe(0xac)](_0x40d068){var _0x1ea36b=_0x1536fe;return this[_0x1ea36b(0xaa)][_0x1ea36b(0x129)](_0x40d068);}[_0x1536fe(0xca)](_0x26d43b){var _0x226727=_0x1536fe;return Array[_0x226727(0xe7)](this['_reporters'])[_0x226727(0x11f)](_0x33778d=>_0x33778d(_0x26d43b));}}var _0x163b45=Object[_0x1536fe(0x16c)],_0x401832=(_0x4de95f,_0xa30696,_0x27eb01,_0xbd55cd)=>{var _0x1cb570=_0x1536fe;for(var _0x56d6a9=_0xbd55cd>0x1?void 0x0:_0xbd55cd?_0x163b45(_0xa30696,_0x27eb01):_0xa30696,_0xe498a6=_0x4de95f[_0x1cb570(0x153)]-0x1,_0x12466c;_0xe498a6>=0x0;_0xe498a6--)(_0x12466c=_0x4de95f[_0xe498a6])&&(_0x56d6a9=_0x12466c(_0x56d6a9)||_0x56d6a9);return _0x56d6a9;},_0x4f9fcb=(_0x253cb0,_0x4b4a28)=>(_0x3e801e,_0xd0da96)=>_0x4b4a28(_0x3e801e,_0xd0da96,_0x253cb0);let _0x20c99b=class extends _0x3de664[_0x1536fe(0x8c)]{constructor(_0x24633e){var _0xdb877b=_0x1536fe;super(),this['_liveShareService']=_0x24633e,this[_0xdb877b(0x128)]();}[_0x1536fe(0x128)](){var _0x3c4b1d=_0x1536fe;[_0x5d896e['SetZoomRatioOperation']['id'],_0x5d896e['SetScrollOperation']['id'],_0xfb8100['SetWorksheetActiveOperation']['id']][_0x3c4b1d(0x16d)](_0x202da4=>{var _0x4805d0=_0x3c4b1d;this[_0x4805d0(0x13a)](this['_liveShareService']['registerSharedOperation'](_0x202da4));});}};_0x20c99b=_0x401832([_0x4f9fcb(0x0,_0x3de664[_0x1536fe(0xcd)](_0x1d2d40))],_0x20c99b);var _0x32d03b=function(){var _0x376b35=_0x1536fe;return _0x32d03b=Object[_0x376b35(0x125)]||function(_0x47e012){var _0x3bfe82=_0x376b35;for(var _0x50d097,_0x265948=0x1,_0x448d04=arguments[_0x3bfe82(0x153)];_0x265948<_0x448d04;_0x265948++){_0x50d097=arguments[_0x265948];for(var _0xe42007 in _0x50d097)Object[_0x3bfe82(0x16f)]['hasOwnProperty'][_0x3bfe82(0x93)](_0x50d097,_0xe42007)&&(_0x47e012[_0xe42007]=_0x50d097[_0xe42007]);}return _0x47e012;},_0x32d03b[_0x376b35(0xb5)](this,arguments);},_0x26fab7=function(_0x41a098,_0x36a043){var _0x19c6e6=_0x1536fe,_0x1673ed={};for(var _0x61397d in _0x41a098)Object[_0x19c6e6(0x16f)][_0x19c6e6(0x152)][_0x19c6e6(0x93)](_0x41a098,_0x61397d)&&_0x36a043[_0x19c6e6(0x11d)](_0x61397d)<0x0&&(_0x1673ed[_0x61397d]=_0x41a098[_0x61397d]);if(_0x41a098!=null&&typeof Object[_0x19c6e6(0x132)]==_0x19c6e6(0x118)){for(var _0x32a41d=0x0,_0x61397d=Object[_0x19c6e6(0x132)](_0x41a098);_0x32a41d<_0x61397d[_0x19c6e6(0x153)];_0x32a41d++)_0x36a043[_0x19c6e6(0x11d)](_0x61397d[_0x32a41d])<0x0&&Object[_0x19c6e6(0x16f)]['propertyIsEnumerable'][_0x19c6e6(0x93)](_0x41a098,_0x61397d[_0x32a41d])&&(_0x1673ed[_0x61397d[_0x32a41d]]=_0x41a098[_0x61397d[_0x32a41d]]);}return _0x1673ed;},_0x5f1372=_0x200ed7['forwardRef'](function(_0x5f532d,_0xee10dd){var _0x263c5a=_0x1536fe,_0x552122=_0x5f532d[_0x263c5a(0xfa)],_0x1984fc=_0x5f532d['id'],_0x372989=_0x5f532d[_0x263c5a(0x95)],_0x5ac199=_0x5f532d[_0x263c5a(0xb3)],_0x2077d6=_0x26fab7(_0x5f532d,[_0x263c5a(0xfa),'id','className',_0x263c5a(0xb3)]),_0x4d71cc=_0x263c5a(0x91)[_0x263c5a(0xd3)](_0x1984fc,'\x20')[_0x263c5a(0xd3)](_0x372989||'')['trim'](),_0x37da63=_0x200ed7[_0x263c5a(0xf4)]('_'[_0x263c5a(0xd3)](_0x455533()));return _0x32f3d6(_0x552122,''[_0x263c5a(0xd3)](_0x1984fc),{'defIds':_0x552122[_0x263c5a(0xfc)],'idSuffix':_0x37da63[_0x263c5a(0x17c)]},_0x32d03b({'ref':_0xee10dd,'className':_0x4d71cc},_0x2077d6),_0x5ac199);});function _0x32f3d6(_0x1af3ff,_0x8a180d,_0x1541dc,_0x8f869e,_0x283a8d){var _0x57e831=_0x1536fe;return _0x200ed7['createElement'](_0x1af3ff['tag'],_0x32d03b(_0x32d03b({'key':_0x8a180d},_0x42d16a(_0x1af3ff,_0x1541dc,_0x283a8d)),_0x8f869e),(_0x874880(_0x1af3ff,_0x1541dc)[_0x57e831(0xc1)]||[])[_0x57e831(0x11f)](function(_0x359836,_0x1fe223){var _0xf08413=_0x57e831;return _0x32f3d6(_0x359836,''[_0xf08413(0xd3)](_0x8a180d,'-')[_0xf08413(0xd3)](_0x1af3ff[_0xf08413(0x9f)],'-')['concat'](_0x1fe223),_0x1541dc,void 0x0,_0x283a8d);}));}function _0x42d16a(_0x5c4f22,_0x171084,_0xbfc8a9){var _0x460d5e=_0x1536fe,_0x5722fd=_0x32d03b({},_0x5c4f22[_0x460d5e(0xc0)]);_0xbfc8a9!=null&&_0xbfc8a9[_0x460d5e(0x183)]&&_0x5722fd[_0x460d5e(0xf5)]===_0x460d5e(0x183)&&(_0x5722fd['fill']=_0xbfc8a9['colorChannel1']),_0x5c4f22[_0x460d5e(0x9f)]===_0x460d5e(0x149)&&_0x5722fd['id']&&(_0x5722fd['id']=_0x5722fd['id']+_0x171084[_0x460d5e(0xef)]),Object[_0x460d5e(0x13e)](_0x5722fd)['forEach'](function(_0x3b007f){var _0x1aecbb=_0x460d5e,_0x4f2583=_0x3b007f[0x0],_0x38bbdf=_0x3b007f[0x1];_0x4f2583==='mask'&&typeof _0x38bbdf==_0x1aecbb(0xa9)&&(_0x5722fd[_0x4f2583]=_0x38bbdf[_0x1aecbb(0xb6)](/url\(#(.*)\)/,_0x1aecbb(0x92)[_0x1aecbb(0xd3)](_0x171084[_0x1aecbb(0xef)],')')));});var _0xf118d=_0x171084['defIds'];return!_0xf118d||_0xf118d[_0x460d5e(0x153)]===0x0||(_0x5c4f22[_0x460d5e(0x9f)]==='use'&&_0x5722fd[_0x460d5e(0x131)]&&(_0x5722fd['xlink:href']=_0x5722fd[_0x460d5e(0x131)]+_0x171084[_0x460d5e(0xef)]),Object[_0x460d5e(0x13e)](_0x5722fd)[_0x460d5e(0x16d)](function(_0x375da8){var _0x4a6828=_0x460d5e,_0x289919=_0x375da8[0x0],_0x2d0ae6=_0x375da8[0x1];typeof _0x2d0ae6==_0x4a6828(0xa9)&&(_0x5722fd[_0x289919]=_0x2d0ae6['replace'](/url\(#(.*)\)/,'url(#$1'[_0x4a6828(0xd3)](_0x171084['idSuffix'],')')));})),_0x5722fd;}function _0x874880(_0x1ee1d2,_0x32e54a){var _0x16e27b=_0x1536fe,_0xf3702a,_0x255966=_0x32e54a['defIds'];return!_0x255966||_0x255966['length']===0x0?_0x1ee1d2:_0x1ee1d2[_0x16e27b(0x9f)]==='defs'&&(!((_0xf3702a=_0x1ee1d2[_0x16e27b(0xc1)])===null||_0xf3702a===void 0x0)&&_0xf3702a[_0x16e27b(0x153)])?_0x32d03b(_0x32d03b({},_0x1ee1d2),{'children':_0x1ee1d2[_0x16e27b(0xc1)]['map'](function(_0x164195){var _0x40b5e8=_0x16e27b;return typeof _0x164195['attrs']['id']=='string'&&_0x255966&&_0x255966[_0x40b5e8(0xee)](_0x164195[_0x40b5e8(0xc0)]['id'])?_0x32d03b(_0x32d03b({},_0x164195),{'attrs':_0x32d03b(_0x32d03b({},_0x164195[_0x40b5e8(0xc0)]),{'id':_0x164195[_0x40b5e8(0xc0)]['id']+_0x32e54a['idSuffix']})}):_0x164195;})}):_0x1ee1d2;}function _0x455533(){var _0x1b4602=_0x1536fe;return Math['random']()[_0x1b4602(0xcb)](0x24)['substring'](0x2,0x8);}_0x5f1372[_0x1536fe(0x119)]=_0x1536fe(0xe0);var _0xcb4864={'tag':_0x1536fe(0xff),'attrs':{'xmlns':_0x1536fe(0xab),'fill':_0x1536fe(0x166),'viewBox':_0x1536fe(0xbc),'width':_0x1536fe(0x175),'height':_0x1536fe(0x175)},'children':[{'tag':_0x1536fe(0x10c),'attrs':{'fill':_0x1536fe(0xd0),'d':_0x1536fe(0x120)}},{'tag':_0x1536fe(0x10c),'attrs':{'fill':_0x1536fe(0xd0),'d':_0x1536fe(0x98),'fillRule':_0x1536fe(0xe5),'clipRule':_0x1536fe(0xe5)}}]},_0x145c04=_0x200ed7[_0x1536fe(0xfe)](function(_0x164e8b,_0x4ff0c0){var _0x3282fa=_0x1536fe;return _0x200ed7[_0x3282fa(0x15e)](_0x5f1372,Object[_0x3282fa(0x125)]({},_0x164e8b,{'id':_0x3282fa(0x160),'ref':_0x4ff0c0,'icon':_0xcb4864}));});_0x145c04[_0x1536fe(0x119)]='LiveShareIcon';var _0x57df12=Object['getOwnPropertyDescriptor'],_0xc444b9=(_0x2c9900,_0x475495,_0x14f53a,_0x358e8f)=>{var _0x4a6f93=_0x1536fe;for(var _0x27bedd=_0x358e8f>0x1?void 0x0:_0x358e8f?_0x57df12(_0x475495,_0x14f53a):_0x475495,_0x471114=_0x2c9900[_0x4a6f93(0x153)]-0x1,_0xe33edc;_0x471114>=0x0;_0x471114--)(_0xe33edc=_0x2c9900[_0x471114])&&(_0x27bedd=_0xe33edc(_0x27bedd)||_0x27bedd);return _0x27bedd;},_0xc68594=(_0x491ff1,_0x435319)=>(_0x15899f,_0x2ab757)=>_0x435319(_0x15899f,_0x2ab757,_0x491ff1);_0x1ce817[_0x1536fe(0xdd)]=class extends _0x3de664[_0x1536fe(0xad)]{constructor(_0x3a6f0c,_0x566bce,_0x1f7db8){var _0x37c5ab=_0x1536fe;super(),_0x2b7a21(this,_0x37c5ab(0x139),new Map()),(this[_0x37c5ab(0x163)]=_0x3a6f0c,this[_0x37c5ab(0x8b)]=_0x566bce,this[_0x37c5ab(0x123)]=_0x1f7db8,this[_0x37c5ab(0x128)]());}async['getLiveShareCoordinator'](_0x28bbca){var _0x2cbc2f=_0x1536fe;return this[_0x2cbc2f(0x139)][_0x2cbc2f(0x129)](_0x28bbca)||await this[_0x2cbc2f(0x144)](_0x28bbca),this[_0x2cbc2f(0x139)][_0x2cbc2f(0xd5)](_0x28bbca);}[_0x1536fe(0x128)](){var _0x50599f=_0x1536fe;this[_0x50599f(0x163)][_0x50599f(0xd1)](_0x3de664['UniverInstanceType'][_0x50599f(0xd9)])[_0x50599f(0x178)](_0x11e3ef[_0x50599f(0x13c)](this[_0x50599f(0x138)]))[_0x50599f(0x12b)](async _0x5b991a=>{var _0x15a966=_0x50599f;const _0x1a3fbf=_0x5b991a[_0x15a966(0xb2)]();this[_0x15a966(0x139)]['has'](_0x1a3fbf)||this[_0x15a966(0x144)](_0x1a3fbf);}),this[_0x50599f(0x163)][_0x50599f(0xc4)](_0x3de664[_0x50599f(0xe8)][_0x50599f(0xd9)])[_0x50599f(0x178)](_0x11e3ef['takeUntil'](this[_0x50599f(0x138)]))[_0x50599f(0x12b)](_0x12ef56=>{var _0x39ac3a=_0x50599f;const _0xda4a2e=_0x12ef56[_0x39ac3a(0xb2)](),_0x200505=this[_0x39ac3a(0x139)]['get'](_0xda4a2e);_0x200505==null||_0x200505[_0x39ac3a(0x174)]();});}async[_0x1536fe(0x144)](_0x19c3f0){var _0x2c0f9f=_0x1536fe;const _0x5b96ca=await this['_collabSessionService'][_0x2c0f9f(0xc3)](_0x19c3f0),_0x30a5e6=this[_0x2c0f9f(0x8b)][_0x2c0f9f(0xa7)](_0x1ce817['LiveShareCoordinator'],_0x19c3f0,_0x5b96ca);return _0x30a5e6[_0x2c0f9f(0x15b)](),this['_entities'][_0x2c0f9f(0xc9)](_0x19c3f0,_0x30a5e6),_0x30a5e6;}},_0x1ce817[_0x1536fe(0xdd)]=_0xc444b9([_0xc68594(0x0,_0x3de664[_0x1536fe(0x167)]),_0xc68594(0x1,_0x3de664[_0x1536fe(0xcd)](_0x3de664[_0x1536fe(0x177)])),_0xc68594(0x2,_0x3de664[_0x1536fe(0xcd)](_0x1d09ee[_0x1536fe(0x114)]))],_0x1ce817['LiveShareController']);var _0x1d52f0=(_0x247289=>(_0x247289['OFFLINE']=_0x1536fe(0x13d),_0x247289[_0x1536fe(0x142)]='idle',_0x247289[_0x1536fe(0x180)]=_0x1536fe(0x113),_0x247289[_0x1536fe(0x100)]='not-following',_0x247289[_0x1536fe(0x16b)]=_0x1536fe(0xc8),_0x247289))(_0x1d52f0||{});const _0x44ab8d='SAME_OPERATION_SHARE_INTERVAL',_0x52fe74=0xc8;_0x1ce817[_0x1536fe(0xf9)]=class extends _0x3de664['RxDisposable']{constructor(_0x34f633,_0x140f3d,_0xb76eb3,_0x21e35b,_0x24b212){var _0x150eb6=_0x1536fe;super(),_0x2b7a21(this,_0x150eb6(0xb0),new _0x268533[(_0x150eb6(0x185))](_0x150eb6(0x97))),_0x2b7a21(this,_0x150eb6(0xeb),this['_status$'][_0x150eb6(0xdf)]()),_0x2b7a21(this,_0x150eb6(0x128),!0x1),_0x2b7a21(this,_0x150eb6(0x90),null),_0x2b7a21(this,_0x150eb6(0x17d),null),(this[_0x150eb6(0x94)]=_0x34f633,this[_0x150eb6(0x11a)]=_0x140f3d,this[_0x150eb6(0x9e)]=_0xb76eb3,this[_0x150eb6(0x15a)]=_0x21e35b,this[_0x150eb6(0x17e)]=_0x24b212);}get[_0x1536fe(0x13b)](){var _0x3c7283=_0x1536fe;return this[_0x3c7283(0xb0)][_0x3c7283(0x14c)]();}[_0x1536fe(0x174)](){var _0x25bbf7=_0x1536fe,_0x3ff610;(_0x3ff610=this[_0x25bbf7(0x90)])==null||_0x3ff610[_0x25bbf7(0x174)](),this[_0x25bbf7(0xb0)]['next'](_0x25bbf7(0x97)),this[_0x25bbf7(0xb0)][_0x25bbf7(0x12a)]();}[_0x1536fe(0x15b)](){var _0x1f1ec5=_0x1536fe;this[_0x1f1ec5(0x128)]||(this['_init']=!0x0,this[_0x1f1ec5(0x11a)][_0x1f1ec5(0xb1)][_0x1f1ec5(0x178)](_0x11e3ef['takeUntil'](this['dispose$']))[_0x1f1ec5(0x12b)](_0x386ffa=>{var _0x3b316b=_0x1f1ec5;switch(_0x386ffa){case _0x1d09ee[_0x3b316b(0x154)][_0x3b316b(0x127)]:this[_0x3b316b(0x158)]();break;case _0x1d09ee[_0x3b316b(0x154)][_0x3b316b(0x12e)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x1f1ec5(0x12d)][_0x1f1ec5(0x178)](_0x11e3ef[_0x1f1ec5(0x13c)](this['dispose$']))[_0x1f1ec5(0x12b)](_0x3a3bf3=>{var _0xccbee4=_0x1f1ec5;const {eventID:_0x1e5e81}=_0x3a3bf3;switch(_0x1e5e81){case _0x2ffff0[_0xccbee4(0xd2)]['LIVESHARE_NEW_HOST']:this[_0xccbee4(0xb8)](_0x3a3bf3);break;case _0x2ffff0[_0xccbee4(0xd2)]['LIVESHARE_OPERATION']:this[_0xccbee4(0x135)](_0x3a3bf3);break;case _0x2ffff0['CollaborationEvent'][_0xccbee4(0x172)]:this[_0xccbee4(0x176)]();break;case _0x2ffff0[_0xccbee4(0xd2)][_0xccbee4(0x102)]:this[_0xccbee4(0x143)](_0x3a3bf3);break;}}));}['tryStartPresenting'](){var _0x277ba8=_0x1536fe;this[_0x277ba8(0x11a)][_0x277ba8(0x133)]({'eventID':_0x2ffff0[_0x277ba8(0xd2)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x277ba8(0x94)],'userID':this[_0x277ba8(0x11a)]['getMemberID']()}},this[_0x277ba8(0x94)]);}[_0x1536fe(0xbd)](){var _0x596bea=_0x1536fe;this[_0x596bea(0x13b)]===_0x596bea(0xc8)&&(this['_status$']['next'](_0x596bea(0x97)),this[_0x596bea(0x11a)][_0x596bea(0x133)]({'eventID':_0x2ffff0[_0x596bea(0xd2)][_0x596bea(0x172)],'data':{'unitID':this[_0x596bea(0x94)]}},this[_0x596bea(0x94)]));}[_0x1536fe(0x12f)](){var _0xe7f46a=_0x1536fe;this[_0xe7f46a(0x13b)]===_0xe7f46a(0xae)&&(this['_status$'][_0xe7f46a(0x11e)](_0xe7f46a(0x113)),this[_0xe7f46a(0x107)]());}[_0x1536fe(0x16a)](){var _0x226bbd=_0x1536fe;this[_0x226bbd(0x13b)]===_0x226bbd(0x113)&&this[_0x226bbd(0xa8)]();}['_handleNewHost'](_0x3feeb1){var _0x315792=_0x1536fe;const {presenter:_0x327b61}=_0x3feeb1['data'],_0x3cd4a3=this[_0x315792(0x11a)]['getMemberID']();this[_0x315792(0x17d)]=_0x327b61,_0x327b61===_0x3cd4a3?(this[_0x315792(0xa8)](),this[_0x315792(0x124)]()):this[_0x315792(0x13b)]!==_0x315792(0xae)&&(this[_0x315792(0x108)](),this[_0x315792(0x107)]());}[_0x1536fe(0xb9)](){var _0x2e5814=_0x1536fe;const _0x5c167f={'eventID':_0x2ffff0[_0x2e5814(0xd2)][_0x2e5814(0xf0)]};this[_0x2e5814(0x11a)][_0x2e5814(0x133)](_0x5c167f,this[_0x2e5814(0x94)]);}[_0x1536fe(0x176)](){var _0x330277=_0x1536fe;this[_0x330277(0x17d)]=null,this[_0x330277(0x13b)]!==_0x330277(0xc8)&&this[_0x330277(0xc2)]();}[_0x1536fe(0x143)](_0x3c45da){var _0x383fc1=_0x1536fe;if(this[_0x383fc1(0x13b)]===_0x383fc1(0x113)&&this[_0x383fc1(0x17d)]===_0x3c45da[_0x383fc1(0x148)][_0x383fc1(0x155)]){const _0xf82052=_0x2ffff0[_0x383fc1(0xaf)](_0x3c45da[_0x383fc1(0x148)])[_0x383fc1(0x179)][_0x383fc1(0x14f)]()[_0x383fc1(0x17b)](_0x1f290c=>_0x1f290c['id']===_0xfb8100[_0x383fc1(0x9a)]['id']);if(_0xf82052){const _0x4b1fcc=_0xf82052[_0x383fc1(0xbf)][_0x383fc1(0xf8)],_0x21923b=_0xf82052[_0x383fc1(0xbf)][_0x383fc1(0x9c)]['id'];setTimeout(()=>{var _0x4d6458=_0x383fc1;this[_0x4d6458(0x17e)][_0x4d6458(0x170)](_0xfb8100[_0x4d6458(0x140)]['id'],{'unitId':_0x4b1fcc,'subUnitId':_0x21923b},{'fromCollab':!0x0});});}}}[_0x1536fe(0x124)](){var _0x5ee726=_0x1536fe;this[_0x5ee726(0xb0)][_0x5ee726(0x11e)](_0x5ee726(0xc8));const _0x261ef4=new Map(),_0x46003b=this[_0x5ee726(0x90)]=new _0x3de664['DisposableCollection']();_0x46003b[_0x5ee726(0x169)](_0x3de664['toDisposable'](()=>{var _0x5a952f=_0x5ee726;_0x261ef4[_0x5a952f(0x16d)](_0x5bd93e=>_0x5bd93e[_0x5a952f(0x12a)]()),_0x261ef4[_0x5a952f(0x116)]();})),_0x46003b[_0x5ee726(0x169)](this[_0x5ee726(0x17e)][_0x5ee726(0xe3)](_0x442d17=>{var _0x1ffad2=_0x5ee726,_0x22e445;if(_0x442d17['type']!==_0x3de664[_0x1ffad2(0x156)]['OPERATION']||!this[_0x1ffad2(0x15a)][_0x1ffad2(0xac)](_0x442d17['id']))return;const {id:_0x187f25}=_0x442d17;let _0x47f79a;_0x261ef4[_0x1ffad2(0x129)](_0x187f25)?_0x47f79a=_0x261ef4[_0x1ffad2(0xd5)](_0x187f25):(_0x47f79a=new _0x268533[(_0x1ffad2(0x12c))](),_0x261ef4[_0x1ffad2(0xc9)](_0x187f25,_0x47f79a),_0x47f79a[_0x1ffad2(0x178)](_0x11e3ef[_0x1ffad2(0x111)]((_0x22e445=this['_configService'][_0x1ffad2(0x105)](_0x44ab8d))!=null?_0x22e445:_0x52fe74,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1ffad2(0x12b)](_0x4818e6=>{var _0x1de500=_0x1ffad2;this['_collabSession'][_0x1de500(0x133)]({'eventID':_0x2ffff0[_0x1de500(0xd2)][_0x1de500(0xdc)],'data':{'unitID':this[_0x1de500(0x94)],'operations':{[_0x4818e6['id']]:{'id':_0x4818e6['id'],'params':JSON[_0x1de500(0x150)](_0x4818e6[_0x1de500(0xbf)])}}}},this[_0x1de500(0x94)]);})),_0x47f79a['next'](_0x442d17);})),this[_0x5ee726(0x15a)][_0x5ee726(0xca)](this['_unitID'])[_0x5ee726(0x16d)](_0x25b1b5=>this[_0x5ee726(0x11a)][_0x5ee726(0x133)]({'eventID':_0x2ffff0[_0x5ee726(0xd2)][_0x5ee726(0xdc)],'data':{'unitID':this['_unitID'],'operations':{[_0x25b1b5['id']]:{'id':_0x25b1b5['id'],'params':JSON[_0x5ee726(0x150)](_0x25b1b5['params'])}}}},this[_0x5ee726(0x94)]));}[_0x1536fe(0x108)](){var _0x22b5a3=_0x1536fe,_0x36a24c;this[_0x22b5a3(0xb0)]['next']('idle'),(_0x36a24c=this[_0x22b5a3(0x90)])==null||_0x36a24c[_0x22b5a3(0x174)](),this[_0x22b5a3(0x90)]=null;}[_0x1536fe(0x107)](){var _0x1f3428=_0x1536fe,_0xbe9c1;(_0xbe9c1=this['_commandDisposable'])==null||_0xbe9c1['dispose'](),this['_status$'][_0x1f3428(0x11e)]('following');}[_0x1536fe(0xc2)](){var _0x51a941=_0x1536fe,_0x13eaa6;this[_0x51a941(0xb0)]['next']('idle'),(_0x13eaa6=this[_0x51a941(0x90)])==null||_0x13eaa6[_0x51a941(0x174)](),this['_commandDisposable']=null;}[_0x1536fe(0xa8)](){var _0x51054c=_0x1536fe,_0x363e9a;this[_0x51054c(0xb0)][_0x51054c(0x11e)](_0x51054c(0xae)),(_0x363e9a=this[_0x51054c(0x90)])==null||_0x363e9a['dispose']();}[_0x1536fe(0x135)](_0x1e3fc5){var _0x880075=_0x1536fe;if([_0x880075(0xc8),'not-following',_0x880075(0x13d)][_0x880075(0xee)](this[_0x880075(0x13b)])||!_0x1e3fc5[_0x880075(0x148)][_0x880075(0xc7)]||_0x1e3fc5[_0x880075(0x148)][_0x880075(0xc7)]===this[_0x880075(0x11a)][_0x880075(0x157)]())return;this[_0x880075(0x13b)]===_0x880075(0x97)&&this[_0x880075(0x107)]();const _0x405a59=_0x1e3fc5[_0x880075(0x148)][_0x880075(0x106)];Object['values'](_0x405a59)[_0x880075(0x16d)](_0x8306f4=>{var _0x2c445e=_0x880075;this['_commandService'][_0x2c445e(0x170)](_0x8306f4['id'],_0x8306f4[_0x2c445e(0xbf)]?JSON[_0x2c445e(0xf7)](_0x8306f4[_0x2c445e(0xbf)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x59e34d=_0x1536fe,_0x5bd621;this[_0x59e34d(0xb0)][_0x59e34d(0x11e)](_0x59e34d(0x13d)),(_0x5bd621=this[_0x59e34d(0x90)])==null||_0x5bd621[_0x59e34d(0x174)]();}[_0x1536fe(0xdb)](){var _0x4d76ae=_0x1536fe;this[_0x4d76ae(0xb0)][_0x4d76ae(0x11e)](_0x4d76ae(0x97)),this[_0x4d76ae(0xb9)]();}},_0x1ce817['LiveShareCoordinator']=_0xc444b9([_0xc68594(0x2,_0x3de664[_0x1536fe(0xa5)]),_0xc68594(0x3,_0x3de664[_0x1536fe(0xcd)](_0x1d2d40)),_0xc68594(0x4,_0x3de664['ICommandService'])],_0x1ce817['LiveShareCoordinator']);function _0xa7a2ad(){var _0x20c00e=_0x1536fe;const _0x2792df=_0x5b02c5[_0x20c00e(0xe1)](_0x1ce817['LiveShareController']),_0x2f9f54=_0x5b02c5[_0x20c00e(0xe1)](_0x3de664['IUniverInstanceService']),_0x4f929c=_0x5b02c5[_0x20c00e(0x17f)](()=>_0x2f9f54[_0x20c00e(0x164)](_0x3de664['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x27d404,_0x370d09]=_0x200ed7[_0x20c00e(0x8f)](null),[_0x466c11,_0x1b219d]=_0x200ed7[_0x20c00e(0x8f)](_0x1d52f0['IDLE']),_0x1634af=_0x200ed7['useRef'](null);return _0x200ed7[_0x20c00e(0x11c)](()=>(_0x4f929c&&_0x2792df[_0x20c00e(0x121)](_0x4f929c['getUnitId']())['then'](_0x43e98b=>{var _0x4aaa38=_0x20c00e;_0x370d09(_0x43e98b),_0x1634af['current']=_0x43e98b[_0x4aaa38(0xeb)][_0x4aaa38(0x12b)](_0xf0a847=>{_0x1b219d(_0xf0a847);});}),()=>{var _0x22c86c=_0x20c00e,_0x1dc745;(_0x1dc745=_0x1634af[_0x22c86c(0x17c)])==null||_0x1dc745[_0x22c86c(0x8e)](),_0x1634af[_0x22c86c(0x17c)]=null;}),[_0x4f929c,_0x2792df]),_0x27d404?_0x183b5d[_0x20c00e(0xe9)](_0x318939[_0x20c00e(0xe6)],{'align':'end','disabled':_0x466c11===_0x1d52f0[_0x20c00e(0x127)],'className':_0x20c00e(0x147),'overlay':_0x183b5d[_0x20c00e(0xe9)](_0x4fbfb7,{'status':_0x466c11,'coordinator':_0x27d404}),'children':_0x183b5d['jsx'](_0x20c00e(0x162),{'className':_0x318939[_0x20c00e(0x115)](_0x20c00e(0xd8),{'univer-cursor-not-allowed':_0x466c11===_0x1d52f0[_0x20c00e(0x127)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x466c11!==_0x1d52f0['OFFLINE']}),'type':'button','children':_0x183b5d[_0x20c00e(0xe9)](_0x145c04,{'className':_0x20c00e(0x10b)})})}):null;}function _0x4fbfb7(_0x8c2d1b){var _0x513a46=_0x1536fe;const {status:_0x52d696,coordinator:_0x7bd990}=_0x8c2d1b;switch(_0x52d696){case _0x1d52f0[_0x513a46(0x142)]:return _0x183b5d[_0x513a46(0xe9)](_0x159c32,{'coordinator':_0x7bd990});case _0x1d52f0[_0x513a46(0x180)]:return _0x183b5d[_0x513a46(0xe9)](_0x8be13,{'coordinator':_0x7bd990});case _0x1d52f0['NOT_FOLLOWING']:return _0x183b5d[_0x513a46(0xe9)](_0x2f4cf4,{'coordinator':_0x7bd990});case _0x1d52f0['OFFLINE']:return _0x183b5d[_0x513a46(0xe9)](_0x26392b,{});case _0x1d52f0[_0x513a46(0x16b)]:return _0x183b5d[_0x513a46(0xe9)](_0x363dd9,{'coordinator':_0x7bd990});default:return null;}}function _0x159c32(_0x471441){var _0x55e8b3=_0x1536fe;const {coordinator:_0x237d66}=_0x471441;return _0x183b5d['jsxs'](_0x183b5d[_0x55e8b3(0x14d)],{'children':[_0x183b5d[_0x55e8b3(0xe9)](_0x55e8b3(0xfb),{'className':_0x55e8b3(0x112),'children':'Present\x20this\x20document'}),_0x183b5d[_0x55e8b3(0xe9)](_0x318939['Button'],{'onClick':()=>_0x237d66['tryStartPresenting'](),'children':'Start'})]});}function _0x8be13(_0x24e647){var _0x391a59=_0x1536fe;const {coordinator:_0x23e179}=_0x24e647;return _0x183b5d[_0x391a59(0x182)](_0x183b5d['Fragment'],{'children':[_0x183b5d[_0x391a59(0xe9)](_0x391a59(0xfb),{'className':_0x391a59(0x112),'children':_0x391a59(0x146)}),_0x183b5d[_0x391a59(0xe9)](_0x318939[_0x391a59(0x8a)],{'onClick':()=>_0x23e179[_0x391a59(0x16a)](),'children':_0x391a59(0xb7)})]});}function _0x2f4cf4(_0x545da4){var _0x31348e=_0x1536fe;const {coordinator:_0x4b8e84}=_0x545da4;return _0x183b5d[_0x31348e(0x182)](_0x183b5d[_0x31348e(0x14d)],{'children':[_0x183b5d[_0x31348e(0xe9)]('div',{'className':_0x31348e(0x112),'children':_0x31348e(0x10f)}),_0x183b5d[_0x31348e(0xe9)](_0x318939[_0x31348e(0x8a)],{'variant':_0x31348e(0xb4),'onClick':()=>_0x4b8e84[_0x31348e(0x12f)](),'children':_0x31348e(0x117)})]});}function _0x363dd9(_0x9b7a8c){var _0x59a8c6=_0x1536fe;const {coordinator:_0x8c0efc}=_0x9b7a8c;return _0x183b5d['jsxs'](_0x183b5d[_0x59a8c6(0x14d)],{'children':[_0x183b5d['jsx']('div',{'className':_0x59a8c6(0x112),'children':_0x59a8c6(0x96)}),_0x183b5d[_0x59a8c6(0xe9)](_0x318939['Button'],{'variant':_0x59a8c6(0x11b),'onClick':()=>_0x8c0efc[_0x59a8c6(0xbd)](),'children':_0x59a8c6(0x126)})]});}function _0x26392b(){var _0x2e274e=_0x1536fe;return _0x183b5d[_0x2e274e(0xe9)](_0x183b5d['Fragment'],{'children':_0x2e274e(0x145)});}var _0x487c1c=Object[_0x1536fe(0x16c)],_0x4d48d0=(_0x771b4f,_0x35ffd0,_0x464bf7,_0x47a9d0)=>{for(var _0x377c27=_0x47a9d0>0x1?void 0x0:_0x47a9d0?_0x487c1c(_0x35ffd0,_0x464bf7):_0x35ffd0,_0x40ed16=_0x771b4f['length']-0x1,_0x1cc74a;_0x40ed16>=0x0;_0x40ed16--)(_0x1cc74a=_0x771b4f[_0x40ed16])&&(_0x377c27=_0x1cc74a(_0x377c27)||_0x377c27);return _0x377c27;},_0x46e2c6=(_0x461cda,_0x1fd057)=>(_0xace34c,_0x73faab)=>_0x1fd057(_0xace34c,_0x73faab,_0x461cda);_0x1ce817[_0x1536fe(0x165)]=class extends _0x3de664[_0x1536fe(0x8c)]{constructor(_0x5e9480,_0x4ca6a1){var _0x43ffb5=_0x1536fe;super(),this[_0x43ffb5(0x8b)]=_0x5e9480,this['_uiPartsService']=_0x4ca6a1,this[_0x43ffb5(0xcc)]();}[_0x1536fe(0xcc)](){var _0xff4596=_0x1536fe;this[_0xff4596(0x13a)](this['_uiPartsService'][_0xff4596(0xa3)](_0x5b02c5[_0xff4596(0x134)][_0xff4596(0x10a)],()=>_0x5b02c5[_0xff4596(0xd6)](_0xa7a2ad,this[_0xff4596(0x8b)])));}},_0x1ce817[_0x1536fe(0x165)]=_0x4d48d0([_0x46e2c6(0x0,_0x3de664[_0x1536fe(0xcd)](_0x3de664[_0x1536fe(0x177)])),_0x46e2c6(0x1,_0x5b02c5[_0x1536fe(0xc5)])],_0x1ce817['DesktopLiveShareController']);var _0x1b7793=Object[_0x1536fe(0x173)],_0x36a389=Object[_0x1536fe(0x16c)],_0x57c0f5=(_0x467b57,_0xfb8007,_0x123043)=>_0xfb8007 in _0x467b57?_0x1b7793(_0x467b57,_0xfb8007,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x123043}):_0x467b57[_0xfb8007]=_0x123043,_0xba84b3=(_0x3273ae,_0x284722,_0x1c9ddd,_0x2a641c)=>{for(var _0x14f012=_0x2a641c>0x1?void 0x0:_0x2a641c?_0x36a389(_0x284722,_0x1c9ddd):_0x284722,_0x1eed0a=_0x3273ae['length']-0x1,_0x47ef55;_0x1eed0a>=0x0;_0x1eed0a--)(_0x47ef55=_0x3273ae[_0x1eed0a])&&(_0x14f012=_0x47ef55(_0x14f012)||_0x14f012);return _0x14f012;},_0x1acb2d=(_0x47f200,_0x4c8050)=>(_0x189c77,_0x9318b8)=>_0x4c8050(_0x189c77,_0x9318b8,_0x47f200),_0x2f1b9e=(_0x3734db,_0x456f87,_0x55025d)=>_0x57c0f5(_0x3734db,typeof _0x456f87!=_0x1536fe(0xbe)?_0x456f87+'':_0x456f87,_0x55025d);const _0x247b73=_0x1536fe(0x130);_0x1ce817['UniverLiveSharePlugin']=class extends _0x3de664[_0x1536fe(0xde)]{constructor(_0x456916=_0x2b0129,_0x47139b,_0x26170e){var _0x1bf4b7=_0x1536fe;super(),this[_0x1bf4b7(0xa1)]=_0x456916,this[_0x1bf4b7(0x8b)]=_0x47139b,this[_0x1bf4b7(0x9e)]=_0x26170e;const {..._0x2dbfb5}=_0x3de664[_0x1bf4b7(0xed)]({},_0x2b0129,this[_0x1bf4b7(0xa1)]);this[_0x1bf4b7(0x9e)][_0x1bf4b7(0xa6)](_0x4f9b65,_0x2dbfb5);}[_0x1536fe(0x14a)](){var _0x1fdbee=_0x1536fe;_0x3de664[_0x1fdbee(0x161)](this[_0x1fdbee(0x8b)],_0x3de664[_0x1fdbee(0x14b)]([[_0x1d2d40],[_0x1ce817[_0x1fdbee(0xdd)]],[_0x20c99b],[_0x1ce817[_0x1fdbee(0x165)]]],this[_0x1fdbee(0xa1)]['override'])),_0x3de664[_0x1fdbee(0x122)](this['_injector'],[[_0x20c99b]]);}['onRendered'](){var _0x506bdc=_0x1536fe;_0x3de664[_0x506bdc(0x122)](this[_0x506bdc(0x8b)],[[_0x1ce817[_0x506bdc(0x165)]]]);}},_0x2f1b9e(_0x1ce817['UniverLiveSharePlugin'],_0x1536fe(0x89),_0x3de664['UniverInstanceType'][_0x1536fe(0xbb)]),_0x2f1b9e(_0x1ce817[_0x1536fe(0xc6)],_0x1536fe(0x110),_0x247b73),_0x1ce817['UniverLiveSharePlugin']=_0xba84b3([_0x3de664[_0x1536fe(0x13f)](_0x1d09ee['UniverCollaborationClientPlugin']),_0x1acb2d(0x1,_0x3de664['Inject'](_0x3de664['Injector'])),_0x1acb2d(0x2,_0x3de664[_0x1536fe(0xa5)])],_0x1ce817[_0x1536fe(0xc6)]),_0x1ce817[_0x1536fe(0xda)]=_0xa7a2ad,_0x1ce817[_0x1536fe(0x151)]=_0x1d2d40,_0x1ce817[_0x1536fe(0x101)]=_0x1d52f0,Object['defineProperty'](_0x1ce817,Symbol[_0x1536fe(0xd7)],{'value':_0x1536fe(0xec)});}));function _0x1c35(){var _0x8b39b3=['_commandService','useObservable','FOLLOWING','3113286AWFJQN','jsxs','colorChannel1','UniverDesign','BehaviorSubject','type','Button','_injector','Disposable','24130MSTLHE','unsubscribe','useState','_commandDisposable','univerjs-icon\x20univerjs-icon-','url(#$1','call','_unitID','className','You\x27re\x20presenting\x20the\x20document','idle','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','@univerjs-pro/collaboration','InsertSheetMutation','react','sheet','_reporters','_configService','tag','4LWhowy','_config','@univerjs-pro/collaboration-client','registerComponent','object','IConfigService','setConfig','createInstance','_stopFollowing','string','_sharedOperations','http://www.w3.org/2000/svg','shouldShareOperation','RxDisposable','not-following','parseProtocolChangeset','_status$','sessionStatus$','getUnitId','extend','text','apply','replace','Stop\x20following','_handleNewHost','_fetchOperations','71432UrrNwG','UNIVER_UNKNOWN','0\x200\x2017\x2017','stopPresenting','symbol','params','attrs','children','_beIdle','requireSession','getTypeOfUnitDisposed$','IUIPartsService','UniverLiveSharePlugin','presenter','presenting','set','getInitialStates','toString','_mountLiveShare','Inject','UniverSheets','React','currentColor','getTypeOfUnitAdded$','CollaborationEvent','concat','UniverProLiveShare','get','connectInjector','toStringTag','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','UNIVER_SHEET','LiveShare','_handleOnline','LIVESHARE_OPERATION','LiveShareController','Plugin','asObservable','UniverIcon','useDependency','UniverSheetsUi','onCommandExecuted','@univerjs/ui','evenodd','Dropdown','from','UniverInstanceType','jsx','12pvcovH','status$','Module','merge','includes','idSuffix','LIVESHARE_FETCH_OPERATIONS','operators','238757EDWiGK','delete','useRef','fill','7YTvMHH','parse','unitId','LiveShareCoordinator','icon','div','defIds','40zUUtYN','forwardRef','svg','NOT_FOLLOWING','LiveShareStatus','NEW_CHANGESETS','@univerjs/design','rxjs','getConfig','operations','_startFollowing','_stopPresenting','837zwTrug','HEADER_MENU','univer-size-4','path','react/jsx-runtime','@univerjs/core','You\x27re\x20not\x20following\x20the\x20presenter','pluginName','throttleTime','univer-mb-3\x20univer-w-full\x20univer-text-sm','following','CollaborationSessionService','clsx','clear','Start\x20following','function','displayName','_collabSession','default','useEffect','indexOf','next','map','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','getLiveShareCoordinator','touchDependencies','_collabSessionService','_startPresenting','assign','Stop\x20presenting','OFFLINE','_init','has','complete','subscribe','Subject','event$','ONLINE','startFollowing','UNIVER_LIVE_SHARE_PLUGIN','xlink:href','getOwnPropertySymbols','send','BuiltInUIPart','_handleOperation','UniverCore','451800IEGAht','dispose$','_entities','disposeWithMe','_status','takeUntil','offline','entries','DependentOn','SetWorksheetActiveOperation','1330305yOEFkC','IDLE','_handleNewChangeSets','_startLiveShareCoordinator','You\x27are\x20offline.','You\x27re\x20following\x20the\x20presenter','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','data','mask','onStarting','mergeOverrideWithDependencies','getValue','Fragment','UniverUi','reverse','stringify','LiveShareService','hasOwnProperty','length','SessionStatus','memberID','CommandType','getMemberID','_handleOffline','registerInitialStateReporter','_liveShareService','init','registerSharedOperation','rxjs/operators','createElement','44811UMhNyn','live-share-icon','registerDependencies','button','_univerInstanceService','getCurrentTypeOfUnit$','DesktopLiveShareController','none','IUniverInstanceService','toDisposable','add','stopFollowing','PRESENTING','getOwnPropertyDescriptor','forEach','amd','prototype','executeCommand','live-share.config','LIVESHARE_TERMINATE','defineProperty','dispose','1em','_handleTerminate','Injector','pipe','mutations','@univerjs/sheets','find','current','_presenter'];_0x1c35=function(){return _0x8b39b3;};return _0x1c35();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.8.1-nightly.202506151606",
3
+ "version": "0.8.1-nightly.202506161607",
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.1-nightly.202506151606",
51
- "@univerjs-pro/collaboration-client": "0.8.1-nightly.202506151606",
52
- "@univerjs/core": "0.8.1-nightly.202506151606",
53
- "@univerjs/design": "0.8.1-nightly.202506151606",
54
- "@univerjs/sheets-ui": "0.8.1-nightly.202506151606",
55
- "@univerjs/ui": "0.8.1-nightly.202506151606",
56
- "@univerjs/sheets": "0.8.1-nightly.202506151606"
50
+ "@univerjs-pro/collaboration": "0.8.1-nightly.202506161607",
51
+ "@univerjs-pro/collaboration-client": "0.8.1-nightly.202506161607",
52
+ "@univerjs/core": "0.8.1-nightly.202506161607",
53
+ "@univerjs/sheets": "0.8.1-nightly.202506161607",
54
+ "@univerjs/sheets-ui": "0.8.1-nightly.202506161607",
55
+ "@univerjs/design": "0.8.1-nightly.202506161607",
56
+ "@univerjs/ui": "0.8.1-nightly.202506161607"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.5",