@univerjs-pro/live-share 0.10.1-nightly.202508020912 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +9 -9
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x339c3f=_0x211c;(function(_0x297557,_0x2578d4){var _0x5068ae=_0x211c,_0xe2217d=_0x297557();while(!![]){try{var _0x34ca4d=-parseInt(_0x5068ae(0x1d0))/0x1*(parseInt(_0x5068ae(0x1ae))/0x2)+parseInt(_0x5068ae(0x1b7))/0x3+parseInt(_0x5068ae(0x1ac))/0x4*(parseInt(_0x5068ae(0x164))/0x5)+parseInt(_0x5068ae(0x21a))/0x6+-parseInt(_0x5068ae(0x18d))/0x7*(-parseInt(_0x5068ae(0x210))/0x8)+-parseInt(_0x5068ae(0x1f0))/0x9+-parseInt(_0x5068ae(0x1d6))/0xa;if(_0x34ca4d===_0x2578d4)break;else _0xe2217d['push'](_0xe2217d['shift']());}catch(_0x22de40){_0xe2217d['push'](_0xe2217d['shift']());}}}(_0x4e7b,0x5996f));var U=Object[_0x339c3f(0x15d)],F=(_0x41eeb3,_0x216451,_0xad74a0)=>_0x216451 in _0x41eeb3?U(_0x41eeb3,_0x216451,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xad74a0}):_0x41eeb3[_0x216451]=_0xad74a0,v=(_0x3bb207,_0x2a9f5c,_0x515105)=>F(_0x3bb207,typeof _0x2a9f5c!='symbol'?_0x2a9f5c+'':_0x2a9f5c,_0x515105);Object['defineProperty'](exports,Symbol[_0x339c3f(0x16f)],{'value':'Module'});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$=_0x339c3f(0x1b8),x={};class O extends o[_0x339c3f(0x229)]{constructor(){var _0x3c0666=_0x339c3f;super(...arguments),v(this,_0x3c0666(0x177),new Set()),v(this,_0x3c0666(0x1d7),new Set());}[_0x339c3f(0x168)](_0x581cd6){var _0xf18cea=_0x339c3f;return this['_sharedOperations'][_0xf18cea(0x178)](_0x581cd6),o['toDisposable'](()=>this[_0xf18cea(0x177)][_0xf18cea(0x154)](_0x581cd6));}['registerInitialStateReporter'](_0x78b851){var _0x2cd467=_0x339c3f;return this[_0x2cd467(0x1d7)][_0x2cd467(0x178)](_0x78b851),o['toDisposable'](()=>this['_reporters'][_0x2cd467(0x154)](_0x78b851));}[_0x339c3f(0x1d4)](_0x1a43b4){var _0x4e8c73=_0x339c3f;return this[_0x4e8c73(0x177)][_0x4e8c73(0x221)](_0x1a43b4);}['getInitialStates'](_0x9e543d){var _0x380b86=_0x339c3f;return Array[_0x380b86(0x157)](this[_0x380b86(0x1d7)])[_0x380b86(0x174)](_0x5ad603=>_0x5ad603(_0x9e543d));}}var H=Object[_0x339c3f(0x172)],V=(_0x188b0d,_0xf9b720,_0x3e44f7,_0x3aa48d)=>{var _0x1f314f=_0x339c3f;for(var _0x558662=_0x3aa48d>0x1?void 0x0:_0x3aa48d?H(_0xf9b720,_0x3e44f7):_0xf9b720,_0x27632f=_0x188b0d[_0x1f314f(0x1ce)]-0x1,_0xc8c83a;_0x27632f>=0x0;_0x27632f--)(_0xc8c83a=_0x188b0d[_0x27632f])&&(_0x558662=_0xc8c83a(_0x558662)||_0x558662);return _0x558662;},k=(_0xd20d99,_0x241f70)=>(_0x425454,_0x257c34)=>_0x241f70(_0x425454,_0x257c34,_0xd20d99);let E=class extends o['Disposable']{constructor(_0x637303){var _0x426b0e=_0x339c3f;super(),this[_0x426b0e(0x1fd)]=_0x637303,this[_0x426b0e(0x18b)]();}['_init'](){var _0x1584d3=_0x339c3f;[w[_0x1584d3(0x167)]['id'],w['SetScrollOperation']['id'],C[_0x1584d3(0x16e)]['id']]['forEach'](_0x5ed1d5=>{var _0x3b7455=_0x1584d3;this[_0x3b7455(0x1d8)](this[_0x3b7455(0x1fd)]['registerSharedOperation'](_0x5ed1d5));});}};E=V([k(0x0,o['Inject'](O))],E);var u=function(){var _0x6d4a45=_0x339c3f;return u=Object[_0x6d4a45(0x202)]||function(_0x18a0c7){var _0x1201b9=_0x6d4a45;for(var _0x4e3cc9,_0x41eb37=0x1,_0x2899bc=arguments['length'];_0x41eb37<_0x2899bc;_0x41eb37++){_0x4e3cc9=arguments[_0x41eb37];for(var _0xe900a8 in _0x4e3cc9)Object[_0x1201b9(0x1a4)][_0x1201b9(0x188)][_0x1201b9(0x1c5)](_0x4e3cc9,_0xe900a8)&&(_0x18a0c7[_0xe900a8]=_0x4e3cc9[_0xe900a8]);}return _0x18a0c7;},u[_0x6d4a45(0x213)](this,arguments);},M=function(_0x14c627,_0x579aa9){var _0x21f731=_0x339c3f,_0x1377e5={};for(var _0x40d3bf in _0x14c627)Object['prototype'][_0x21f731(0x188)][_0x21f731(0x1c5)](_0x14c627,_0x40d3bf)&&_0x579aa9['indexOf'](_0x40d3bf)<0x0&&(_0x1377e5[_0x40d3bf]=_0x14c627[_0x40d3bf]);if(_0x14c627!=null&&typeof Object['getOwnPropertySymbols']==_0x21f731(0x22c)){for(var _0x5948a9=0x0,_0x40d3bf=Object['getOwnPropertySymbols'](_0x14c627);_0x5948a9<_0x40d3bf[_0x21f731(0x1ce)];_0x5948a9++)_0x579aa9[_0x21f731(0x1b5)](_0x40d3bf[_0x5948a9])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x21f731(0x1c5)](_0x14c627,_0x40d3bf[_0x5948a9])&&(_0x1377e5[_0x40d3bf[_0x5948a9]]=_0x14c627[_0x40d3bf[_0x5948a9]]);}return _0x1377e5;},j=f[_0x339c3f(0x1a0)](function(_0x43a67f,_0x24a86c){var _0x413460=_0x339c3f,_0x3d2506=_0x43a67f['icon'],_0x1d7a66=_0x43a67f['id'],_0x3450ad=_0x43a67f[_0x413460(0x1ff)],_0x2b564e=_0x43a67f[_0x413460(0x16b)],_0x63b83c=M(_0x43a67f,['icon','id','className',_0x413460(0x16b)]),_0x312c64=_0x413460(0x19f)[_0x413460(0x1eb)](_0x1d7a66,'\x20')[_0x413460(0x1eb)](_0x3450ad||'')[_0x413460(0x16d)](),_0x547381=f[_0x413460(0x195)]('_'[_0x413460(0x1eb)](G()));return y(_0x3d2506,''[_0x413460(0x1eb)](_0x1d7a66),{'defIds':_0x3d2506[_0x413460(0x155)],'idSuffix':_0x547381[_0x413460(0x18a)]},u({'ref':_0x24a86c,'className':_0x312c64},_0x63b83c),_0x2b564e);});function y(_0x22b378,_0x498891,_0x275996,_0x1028cb,_0x474aa9){var _0x490fd2=_0x339c3f;return f['createElement'](_0x22b378[_0x490fd2(0x192)],u(u({'key':_0x498891},q(_0x22b378,_0x275996,_0x474aa9)),_0x1028cb),(W(_0x22b378,_0x275996)[_0x490fd2(0x1c7)]||[])['map'](function(_0x31abb1,_0xd21b1b){var _0x31989a=_0x490fd2;return y(_0x31abb1,''[_0x31989a(0x1eb)](_0x498891,'-')['concat'](_0x22b378[_0x31989a(0x192)],'-')['concat'](_0xd21b1b),_0x275996,void 0x0,_0x474aa9);}));}function q(_0x352fb4,_0x6971b,_0x30e896){var _0x4bf23a=_0x339c3f,_0x4e0c52=u({},_0x352fb4[_0x4bf23a(0x17a)]);_0x30e896!=null&&_0x30e896[_0x4bf23a(0x187)]&&_0x4e0c52[_0x4bf23a(0x20a)]==='colorChannel1'&&(_0x4e0c52[_0x4bf23a(0x20a)]=_0x30e896[_0x4bf23a(0x187)]),_0x352fb4[_0x4bf23a(0x192)]===_0x4bf23a(0x1e7)&&_0x4e0c52['id']&&(_0x4e0c52['id']=_0x4e0c52['id']+_0x6971b['idSuffix']),Object['entries'](_0x4e0c52)[_0x4bf23a(0x160)](function(_0x4cdf84){var _0x322b08=_0x4bf23a,_0x4e3059=_0x4cdf84[0x0],_0x5053ad=_0x4cdf84[0x1];_0x4e3059===_0x322b08(0x1e7)&&typeof _0x5053ad==_0x322b08(0x22a)&&(_0x4e0c52[_0x4e3059]=_0x5053ad[_0x322b08(0x1b9)](/url\(#(.*)\)/,_0x322b08(0x22e)['concat'](_0x6971b[_0x322b08(0x1a3)],')')));});var _0x1c6f66=_0x6971b[_0x4bf23a(0x155)];return!_0x1c6f66||_0x1c6f66[_0x4bf23a(0x1ce)]===0x0||(_0x352fb4['tag']===_0x4bf23a(0x1b3)&&_0x4e0c52['xlink:href']&&(_0x4e0c52['xlink:href']=_0x4e0c52['xlink:href']+_0x6971b[_0x4bf23a(0x1a3)]),Object[_0x4bf23a(0x216)](_0x4e0c52)['forEach'](function(_0x17fb38){var _0x29a010=_0x4bf23a,_0x36060e=_0x17fb38[0x0],_0x5e9d62=_0x17fb38[0x1];typeof _0x5e9d62==_0x29a010(0x22a)&&(_0x4e0c52[_0x36060e]=_0x5e9d62[_0x29a010(0x1b9)](/url\(#(.*)\)/,_0x29a010(0x22e)[_0x29a010(0x1eb)](_0x6971b['idSuffix'],')')));})),_0x4e0c52;}function W(_0x58e5ad,_0x49d250){var _0x57b68f=_0x339c3f,_0x43b94f,_0x101c36=_0x49d250[_0x57b68f(0x155)];return!_0x101c36||_0x101c36['length']===0x0?_0x58e5ad:_0x58e5ad['tag']===_0x57b68f(0x1b1)&&(!((_0x43b94f=_0x58e5ad[_0x57b68f(0x1c7)])===null||_0x43b94f===void 0x0)&&_0x43b94f[_0x57b68f(0x1ce)])?u(u({},_0x58e5ad),{'children':_0x58e5ad[_0x57b68f(0x1c7)][_0x57b68f(0x174)](function(_0x38ba60){var _0x38bc0f=_0x57b68f;return typeof _0x38ba60[_0x38bc0f(0x17a)]['id']=='string'&&_0x101c36&&_0x101c36[_0x38bc0f(0x1a1)](_0x38ba60[_0x38bc0f(0x17a)]['id'])?u(u({},_0x38ba60),{'attrs':u(u({},_0x38ba60[_0x38bc0f(0x17a)]),{'id':_0x38ba60[_0x38bc0f(0x17a)]['id']+_0x49d250[_0x38bc0f(0x1a3)]})}):_0x38ba60;})}):_0x58e5ad;}function G(){var _0xe132cb=_0x339c3f;return Math[_0xe132cb(0x18e)]()['toString'](0x24)[_0xe132cb(0x20c)](0x2,0x8);}j['displayName']=_0x339c3f(0x226);var B={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x339c3f(0x1e1),'width':'1em','height':_0x339c3f(0x18f)},'children':[{'tag':_0x339c3f(0x163),'attrs':{'fill':_0x339c3f(0x199),'d':_0x339c3f(0x1db)}},{'tag':'path','attrs':{'fill':_0x339c3f(0x199),'d':_0x339c3f(0x1f8),'fillRule':_0x339c3f(0x20f),'clipRule':_0x339c3f(0x20f)}}]},P=f['forwardRef'](function(_0x5538aa,_0x59a227){var _0x52e926=_0x339c3f;return f[_0x52e926(0x1e4)](j,Object[_0x52e926(0x202)]({},_0x5538aa,{'id':_0x52e926(0x21b),'ref':_0x59a227,'icon':B}));});P[_0x339c3f(0x207)]='LiveShareIcon';var Y=Object[_0x339c3f(0x172)],R=(_0x178c24,_0x5ad262,_0x56dcab,_0xbedd69)=>{var _0x243aeb=_0x339c3f;for(var _0x371d74=_0xbedd69>0x1?void 0x0:_0xbedd69?Y(_0x5ad262,_0x56dcab):_0x5ad262,_0x2d314d=_0x178c24[_0x243aeb(0x1ce)]-0x1,_0x1f7960;_0x2d314d>=0x0;_0x2d314d--)(_0x1f7960=_0x178c24[_0x2d314d])&&(_0x371d74=_0x1f7960(_0x371d74)||_0x371d74);return _0x371d74;},S=(_0x5b6a92,_0x2baa19)=>(_0x4a2123,_0x254a77)=>_0x2baa19(_0x4a2123,_0x254a77,_0x5b6a92);exports[_0x339c3f(0x1bc)]=class extends o[_0x339c3f(0x19c)]{constructor(_0x26ee41,_0x598dad,_0x3acd66){var _0x1a79b4=_0x339c3f;super(),v(this,_0x1a79b4(0x223),new Map()),(this['_univerInstanceService']=_0x26ee41,this['_injector']=_0x598dad,this[_0x1a79b4(0x152)]=_0x3acd66,this[_0x1a79b4(0x18b)]());}async[_0x339c3f(0x1b2)](_0x4e2176){var _0x48284d=_0x339c3f;return this[_0x48284d(0x223)][_0x48284d(0x221)](_0x4e2176)||await this[_0x48284d(0x1cd)](_0x4e2176),this[_0x48284d(0x223)][_0x48284d(0x1dd)](_0x4e2176);}[_0x339c3f(0x18b)](){var _0x3a8d44=_0x339c3f;this[_0x3a8d44(0x225)][_0x3a8d44(0x1bf)](o[_0x3a8d44(0x179)][_0x3a8d44(0x1c3)])[_0x3a8d44(0x206)](b[_0x3a8d44(0x15b)](this[_0x3a8d44(0x20b)]))['subscribe'](async _0x4c949a=>{var _0x88f08e=_0x3a8d44;const _0x485fc8=_0x4c949a[_0x88f08e(0x190)]();this[_0x88f08e(0x223)][_0x88f08e(0x221)](_0x485fc8)||this[_0x88f08e(0x1cd)](_0x485fc8);}),this['_univerInstanceService'][_0x3a8d44(0x22b)](o[_0x3a8d44(0x179)][_0x3a8d44(0x1c3)])['pipe'](b[_0x3a8d44(0x15b)](this[_0x3a8d44(0x20b)]))['subscribe'](_0x30702b=>{var _0x4c024c=_0x3a8d44;const _0x11954e=_0x30702b['getUnitId'](),_0x44beea=this['_entities'][_0x4c024c(0x1dd)](_0x11954e);_0x44beea==null||_0x44beea[_0x4c024c(0x1cf)]();});}async[_0x339c3f(0x1cd)](_0x356991){var _0x5b8156=_0x339c3f;const _0x4ba038=await this[_0x5b8156(0x152)]['requireSession'](_0x356991),_0x120b65=this[_0x5b8156(0x191)]['createInstance'](exports[_0x5b8156(0x1e8)],_0x356991,_0x4ba038);return _0x120b65['init'](),this[_0x5b8156(0x223)][_0x5b8156(0x17b)](_0x356991,_0x120b65),_0x120b65;}},exports[_0x339c3f(0x1bc)]=R([S(0x0,o[_0x339c3f(0x193)]),S(0x1,o[_0x339c3f(0x198)](o[_0x339c3f(0x224)])),S(0x2,o[_0x339c3f(0x198)](m[_0x339c3f(0x1df)]))],exports[_0x339c3f(0x1bc)]);var h=(_0x12c71b=>(_0x12c71b['OFFLINE']='offline',_0x12c71b[_0x339c3f(0x184)]=_0x339c3f(0x1c2),_0x12c71b[_0x339c3f(0x1fe)]=_0x339c3f(0x185),_0x12c71b[_0x339c3f(0x1c1)]='not-following',_0x12c71b['PRESENTING']=_0x339c3f(0x1cc),_0x12c71b))(h||{});const Z=_0x339c3f(0x158),J=0xc8;exports['LiveShareCoordinator']=class extends o[_0x339c3f(0x19c)]{constructor(_0x1555d4,_0x22c869,_0x57d816,_0x4ee842,_0x3da0f4){var _0x177c27=_0x339c3f;super(),v(this,_0x177c27(0x219),new D['BehaviorSubject']('idle')),v(this,'status$',this[_0x177c27(0x219)][_0x177c27(0x1a9)]()),v(this,'_init',!0x1),v(this,_0x177c27(0x1f4),null),v(this,_0x177c27(0x214),null),(this[_0x177c27(0x212)]=_0x1555d4,this[_0x177c27(0x1de)]=_0x22c869,this['_configService']=_0x57d816,this['_liveShareService']=_0x4ee842,this['_commandService']=_0x3da0f4);}get[_0x339c3f(0x15c)](){var _0x257af1=_0x339c3f;return this[_0x257af1(0x219)]['getValue']();}[_0x339c3f(0x1cf)](){var _0x5f2d5f=_0x339c3f,_0x57f1a4;(_0x57f1a4=this['_commandDisposable'])==null||_0x57f1a4['dispose'](),this[_0x5f2d5f(0x219)][_0x5f2d5f(0x176)](_0x5f2d5f(0x1c2)),this[_0x5f2d5f(0x219)][_0x5f2d5f(0x197)]();}[_0x339c3f(0x181)](){var _0x27bc20=_0x339c3f;this[_0x27bc20(0x18b)]||(this[_0x27bc20(0x18b)]=!0x0,this[_0x27bc20(0x1de)][_0x27bc20(0x189)][_0x27bc20(0x206)](b['takeUntil'](this[_0x27bc20(0x20b)]))[_0x27bc20(0x165)](_0x8f6421=>{var _0x2b90c6=_0x27bc20;switch(_0x8f6421){case m[_0x2b90c6(0x1fb)][_0x2b90c6(0x194)]:this[_0x2b90c6(0x15e)]();break;case m[_0x2b90c6(0x1fb)][_0x2b90c6(0x209)]:this[_0x2b90c6(0x183)]();break;}}),this['_collabSession'][_0x27bc20(0x220)][_0x27bc20(0x206)](b[_0x27bc20(0x15b)](this['dispose$']))[_0x27bc20(0x165)](_0x3bf0f9=>{var _0x515d4f=_0x27bc20;const {eventID:_0x13be47}=_0x3bf0f9;switch(_0x13be47){case _['CollaborationEvent'][_0x515d4f(0x19e)]:this[_0x515d4f(0x1a7)](_0x3bf0f9);break;case _[_0x515d4f(0x1ea)][_0x515d4f(0x1dc)]:this[_0x515d4f(0x1b0)](_0x3bf0f9);break;case _[_0x515d4f(0x1ea)]['LIVESHARE_TERMINATE']:this[_0x515d4f(0x186)]();break;case _[_0x515d4f(0x1ea)][_0x515d4f(0x217)]:this[_0x515d4f(0x180)](_0x3bf0f9);break;}}));}[_0x339c3f(0x1b6)](){var _0x40f560=_0x339c3f;this['_collabSession'][_0x40f560(0x169)]({'eventID':_[_0x40f560(0x1ea)][_0x40f560(0x21d)],'data':{'unitID':this['_unitID'],'userID':this[_0x40f560(0x1de)][_0x40f560(0x1d9)]()}},this[_0x40f560(0x212)]);}['stopPresenting'](){var _0x5d5392=_0x339c3f;this[_0x5d5392(0x15c)]===_0x5d5392(0x1cc)&&(this[_0x5d5392(0x219)][_0x5d5392(0x176)](_0x5d5392(0x1c2)),this['_collabSession'][_0x5d5392(0x169)]({'eventID':_['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x5d5392(0x212)]}},this['_unitID']));}[_0x339c3f(0x205)](){var _0x5fcab6=_0x339c3f;this[_0x5fcab6(0x15c)]===_0x5fcab6(0x1cb)&&(this[_0x5fcab6(0x219)][_0x5fcab6(0x176)](_0x5fcab6(0x185)),this['_startFollowing']());}[_0x339c3f(0x1c6)](){var _0xc233f6=_0x339c3f;this['_status']===_0xc233f6(0x185)&&this[_0xc233f6(0x1ab)]();}[_0x339c3f(0x1a7)](_0x27126c){var _0x1ea659=_0x339c3f;const {presenter:_0x593fca}=_0x27126c['data'],_0x493694=this['_collabSession']['getMemberID']();this[_0x1ea659(0x214)]=_0x593fca,_0x593fca===_0x493694?(this[_0x1ea659(0x1ab)](),this[_0x1ea659(0x1f3)]()):this['_status']!==_0x1ea659(0x1cb)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x339c3f(0x21e)](){var _0x319903=_0x339c3f;const _0x4d86cf={'eventID':_[_0x319903(0x1ea)][_0x319903(0x1be)]};this['_collabSession'][_0x319903(0x169)](_0x4d86cf,this['_unitID']);}[_0x339c3f(0x186)](){var _0x5eed1a=_0x339c3f;this[_0x5eed1a(0x214)]=null,this['_status']!==_0x5eed1a(0x1cc)&&this[_0x5eed1a(0x1f7)]();}['_handleNewChangeSets'](_0x8fd01a){var _0x924308=_0x339c3f;if(this[_0x924308(0x15c)]===_0x924308(0x185)&&this[_0x924308(0x214)]===_0x8fd01a[_0x924308(0x1ca)]['memberID']){const _0xc4506=_['parseProtocolChangeset'](_0x8fd01a[_0x924308(0x1ca)])[_0x924308(0x1c0)][_0x924308(0x159)]()[_0x924308(0x215)](_0x4e697d=>_0x4e697d['id']===C['InsertSheetMutation']['id']);if(_0xc4506){const _0x3d93a7=_0xc4506[_0x924308(0x16c)][_0x924308(0x156)],_0x8fc694=_0xc4506['params']['sheet']['id'];setTimeout(()=>{var _0x441369=_0x924308;this[_0x441369(0x1c9)][_0x441369(0x1e9)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x3d93a7,'subUnitId':_0x8fc694},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x537036=_0x339c3f;this[_0x537036(0x219)][_0x537036(0x176)](_0x537036(0x1cc));const _0x59d3e3=new Map(),_0x3b05ff=this[_0x537036(0x1f4)]=new o[(_0x537036(0x1a6))]();_0x3b05ff[_0x537036(0x178)](o[_0x537036(0x1a5)](()=>{var _0x5a6009=_0x537036;_0x59d3e3[_0x5a6009(0x160)](_0x522a7b=>_0x522a7b[_0x5a6009(0x197)]()),_0x59d3e3[_0x5a6009(0x1f5)]();})),_0x3b05ff[_0x537036(0x178)](this['_commandService'][_0x537036(0x15f)](_0x2ab981=>{var _0x3b9bea=_0x537036,_0x421aa9;if(_0x2ab981['type']!==o['CommandType'][_0x3b9bea(0x21f)]||!this[_0x3b9bea(0x1fd)][_0x3b9bea(0x1d4)](_0x2ab981['id']))return;const {id:_0x2ad85e}=_0x2ab981;let _0x53af1a;_0x59d3e3[_0x3b9bea(0x221)](_0x2ad85e)?_0x53af1a=_0x59d3e3[_0x3b9bea(0x1dd)](_0x2ad85e):(_0x53af1a=new D[(_0x3b9bea(0x227))](),_0x59d3e3[_0x3b9bea(0x17b)](_0x2ad85e,_0x53af1a),_0x53af1a['pipe'](b[_0x3b9bea(0x1af)]((_0x421aa9=this[_0x3b9bea(0x1a2)][_0x3b9bea(0x16a)](Z))!=null?_0x421aa9:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x22d27=>{var _0x215c65=_0x3b9bea;this[_0x215c65(0x1de)][_0x215c65(0x169)]({'eventID':_['CollaborationEvent'][_0x215c65(0x1dc)],'data':{'unitID':this[_0x215c65(0x212)],'operations':{[_0x22d27['id']]:{'id':_0x22d27['id'],'params':JSON[_0x215c65(0x170)](_0x22d27[_0x215c65(0x16c)])}}}},this['_unitID']);})),_0x53af1a['next'](_0x2ab981);})),this[_0x537036(0x1fd)]['getInitialStates'](this[_0x537036(0x212)])[_0x537036(0x160)](_0x28de16=>this[_0x537036(0x1de)][_0x537036(0x169)]({'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x537036(0x212)],'operations':{[_0x28de16['id']]:{'id':_0x28de16['id'],'params':JSON[_0x537036(0x170)](_0x28de16[_0x537036(0x16c)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x1ef00f=_0x339c3f,_0x3d594b;this[_0x1ef00f(0x219)][_0x1ef00f(0x176)](_0x1ef00f(0x1c2)),(_0x3d594b=this[_0x1ef00f(0x1f4)])==null||_0x3d594b['dispose'](),this['_commandDisposable']=null;}[_0x339c3f(0x175)](){var _0x1200b3=_0x339c3f,_0x26190a;(_0x26190a=this[_0x1200b3(0x1f4)])==null||_0x26190a[_0x1200b3(0x1cf)](),this[_0x1200b3(0x219)][_0x1200b3(0x176)]('following');}['_beIdle'](){var _0x4b2597=_0x339c3f,_0x198c76;this['_status$'][_0x4b2597(0x176)](_0x4b2597(0x1c2)),(_0x198c76=this[_0x4b2597(0x1f4)])==null||_0x198c76[_0x4b2597(0x1cf)](),this[_0x4b2597(0x1f4)]=null;}[_0x339c3f(0x1ab)](){var _0x40e0af=_0x339c3f,_0x2135df;this[_0x40e0af(0x219)]['next']('not-following'),(_0x2135df=this[_0x40e0af(0x1f4)])==null||_0x2135df[_0x40e0af(0x1cf)]();}['_handleOperation'](_0x5ddb01){var _0x5a2bf6=_0x339c3f;if([_0x5a2bf6(0x1cc),_0x5a2bf6(0x1cb),'offline']['includes'](this['_status'])||!_0x5ddb01[_0x5a2bf6(0x1ca)]['presenter']||_0x5ddb01['data'][_0x5a2bf6(0x1ba)]===this[_0x5a2bf6(0x1de)][_0x5a2bf6(0x1d9)]())return;this['_status']===_0x5a2bf6(0x1c2)&&this[_0x5a2bf6(0x175)]();const _0x5ce559=_0x5ddb01[_0x5a2bf6(0x1ca)][_0x5a2bf6(0x1f1)];Object[_0x5a2bf6(0x20e)](_0x5ce559)[_0x5a2bf6(0x160)](_0x41b5d0=>{var _0x538231=_0x5a2bf6;this[_0x538231(0x1c9)][_0x538231(0x1e9)](_0x41b5d0['id'],_0x41b5d0['params']?JSON[_0x538231(0x1ad)](_0x41b5d0['params']):null,{'fromCollab':!0x0});});}[_0x339c3f(0x15e)](){var _0x2864a2=_0x339c3f,_0x101a88;this[_0x2864a2(0x219)][_0x2864a2(0x176)](_0x2864a2(0x1ec)),(_0x101a88=this[_0x2864a2(0x1f4)])==null||_0x101a88['dispose']();}[_0x339c3f(0x183)](){var _0xde31b=_0x339c3f;this[_0xde31b(0x219)]['next'](_0xde31b(0x1c2)),this[_0xde31b(0x21e)]();}},exports[_0x339c3f(0x1e8)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0x339c3f(0x198)](O)),S(0x4,o[_0x339c3f(0x1ef)])],exports[_0x339c3f(0x1e8)]);function A(){var _0x1834a2=_0x339c3f;const _0x4e2e9e=p[_0x1834a2(0x1fa)](exports[_0x1834a2(0x1bc)]),_0x4fb306=p[_0x1834a2(0x1fa)](o[_0x1834a2(0x193)]),_0x5085ba=p['useObservable'](()=>_0x4fb306[_0x1834a2(0x18c)](o[_0x1834a2(0x179)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x10e3ae,_0x1f302f]=f[_0x1834a2(0x1f2)](null),[_0x5f5303,_0x8fa068]=f[_0x1834a2(0x1f2)](h[_0x1834a2(0x184)]),_0x5335b0=f['useRef'](null);return f[_0x1834a2(0x173)](()=>(_0x5085ba&&_0x4e2e9e[_0x1834a2(0x1b2)](_0x5085ba[_0x1834a2(0x190)]())[_0x1834a2(0x182)](_0x2ef7a2=>{var _0x3ce9e5=_0x1834a2;_0x1f302f(_0x2ef7a2),_0x5335b0[_0x3ce9e5(0x18a)]=_0x2ef7a2[_0x3ce9e5(0x1da)][_0x3ce9e5(0x165)](_0x876968=>{_0x8fa068(_0x876968);});}),()=>{var _0x392ee4=_0x1834a2,_0x49934c;(_0x49934c=_0x5335b0[_0x392ee4(0x18a)])==null||_0x49934c[_0x392ee4(0x19a)](),_0x5335b0[_0x392ee4(0x18a)]=null;}),[_0x5085ba,_0x4e2e9e]),_0x10e3ae?l['jsx'](g[_0x1834a2(0x19b)],{'align':_0x1834a2(0x200),'disabled':_0x5f5303===h['OFFLINE'],'className':_0x1834a2(0x196),'overlay':l['jsx'](K,{'status':_0x5f5303,'coordinator':_0x10e3ae}),'children':l[_0x1834a2(0x218)](_0x1834a2(0x171),{'className':g[_0x1834a2(0x162)](_0x1834a2(0x1b4),{'univer-cursor-not-allowed':_0x5f5303===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5f5303!==h[_0x1834a2(0x194)]}),'type':_0x1834a2(0x171),'children':l[_0x1834a2(0x218)](P,{'className':'univer-size-4'})})}):null;}function K(_0x24992b){var _0x99943e=_0x339c3f;const {status:_0x188d89,coordinator:_0x297131}=_0x24992b;switch(_0x188d89){case h[_0x99943e(0x184)]:return l[_0x99943e(0x218)](z,{'coordinator':_0x297131});case h[_0x99943e(0x1fe)]:return l[_0x99943e(0x218)](Q,{'coordinator':_0x297131});case h[_0x99943e(0x1c1)]:return l[_0x99943e(0x218)](X,{'coordinator':_0x297131});case h['OFFLINE']:return l[_0x99943e(0x218)](te,{});case h[_0x99943e(0x203)]:return l[_0x99943e(0x218)](ee,{'coordinator':_0x297131});default:return null;}}function z(_0xb35e77){var _0x33de3b=_0x339c3f;const {coordinator:_0x4cf29b}=_0xb35e77;return l[_0x33de3b(0x201)](l[_0x33de3b(0x228)],{'children':[l[_0x33de3b(0x218)](_0x33de3b(0x17f),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x33de3b(0x1f6)}),l[_0x33de3b(0x218)](g[_0x33de3b(0x1ed)],{'onClick':()=>_0x4cf29b[_0x33de3b(0x1b6)](),'children':'Start'})]});}function Q(_0x163f39){var _0x5463a2=_0x339c3f;const {coordinator:_0x4ab3c5}=_0x163f39;return l[_0x5463a2(0x201)](l[_0x5463a2(0x228)],{'children':[l[_0x5463a2(0x218)](_0x5463a2(0x17f),{'className':_0x5463a2(0x1d1),'children':'You\x27re\x20following\x20the\x20presenter'}),l['jsx'](g['Button'],{'onClick':()=>_0x4ab3c5[_0x5463a2(0x1c6)](),'children':_0x5463a2(0x15a)})]});}function X(_0x58d572){var _0x119201=_0x339c3f;const {coordinator:_0xa21a60}=_0x58d572;return l[_0x119201(0x201)](l['Fragment'],{'children':[l[_0x119201(0x218)](_0x119201(0x17f),{'className':_0x119201(0x1d1),'children':_0x119201(0x17e)}),l[_0x119201(0x218)](g['Button'],{'variant':_0x119201(0x166),'onClick':()=>_0xa21a60[_0x119201(0x205)](),'children':_0x119201(0x22d)})]});}function _0x211c(_0x81dbd,_0x2f064c){var _0x4e7bb7=_0x4e7b();return _0x211c=function(_0x211c43,_0x20497f){_0x211c43=_0x211c43-0x152;var _0x3e2a82=_0x4e7bb7[_0x211c43];return _0x3e2a82;},_0x211c(_0x81dbd,_0x2f064c);}function ee(_0x1d9cd0){var _0x727704=_0x339c3f;const {coordinator:_0x1df20c}=_0x1d9cd0;return l[_0x727704(0x201)](l[_0x727704(0x228)],{'children':[l[_0x727704(0x218)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x727704(0x1e3)}),l[_0x727704(0x218)](g[_0x727704(0x1ed)],{'variant':'default','onClick':()=>_0x1df20c[_0x727704(0x1d3)](),'children':_0x727704(0x1f9)})]});}function te(){var _0xa2017a=_0x339c3f;return l[_0xa2017a(0x218)](l['Fragment'],{'children':_0xa2017a(0x208)});}var ie=Object[_0x339c3f(0x172)],ne=(_0x20bdc1,_0x362782,_0x51393f,_0x4f207c)=>{var _0x500632=_0x339c3f;for(var _0x1c7842=_0x4f207c>0x1?void 0x0:_0x4f207c?ie(_0x362782,_0x51393f):_0x362782,_0x503dcb=_0x20bdc1[_0x500632(0x1ce)]-0x1,_0x5b72f2;_0x503dcb>=0x0;_0x503dcb--)(_0x5b72f2=_0x20bdc1[_0x503dcb])&&(_0x1c7842=_0x5b72f2(_0x1c7842)||_0x1c7842);return _0x1c7842;},L=(_0x252717,_0x2e66da)=>(_0x3267bd,_0x59fb24)=>_0x2e66da(_0x3267bd,_0x59fb24,_0x252717);exports['DesktopLiveShareController']=class extends o[_0x339c3f(0x229)]{constructor(_0x4e4670,_0x2a7529){var _0x4c2466=_0x339c3f;super(),this[_0x4c2466(0x191)]=_0x4e4670,this[_0x4c2466(0x1e0)]=_0x2a7529,this[_0x4c2466(0x1fc)]();}[_0x339c3f(0x1fc)](){var _0xddafec=_0x339c3f;this[_0xddafec(0x1d8)](this['_uiPartsService'][_0xddafec(0x1d2)](p[_0xddafec(0x1ee)][_0xddafec(0x211)],()=>p[_0xddafec(0x1bb)](A,this[_0xddafec(0x191)])));}},exports[_0x339c3f(0x161)]=ne([L(0x0,o['Inject'](o[_0x339c3f(0x224)])),L(0x1,p['IUIPartsService'])],exports[_0x339c3f(0x161)]);var re=Object[_0x339c3f(0x15d)],se=Object[_0x339c3f(0x172)],oe=(_0x1338f1,_0x33792c,_0x3c40b7)=>_0x33792c in _0x1338f1?re(_0x1338f1,_0x33792c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c40b7}):_0x1338f1[_0x33792c]=_0x3c40b7,ae=(_0x522183,_0x3e93f6,_0x573d20,_0x166ad9)=>{var _0x389b62=_0x339c3f;for(var _0x2b1e04=_0x166ad9>0x1?void 0x0:_0x166ad9?se(_0x3e93f6,_0x573d20):_0x3e93f6,_0x43eabc=_0x522183[_0x389b62(0x1ce)]-0x1,_0x1dcf23;_0x43eabc>=0x0;_0x43eabc--)(_0x1dcf23=_0x522183[_0x43eabc])&&(_0x2b1e04=_0x1dcf23(_0x2b1e04)||_0x2b1e04);return _0x2b1e04;},N=(_0x5273db,_0x30d916)=>(_0x2e00ea,_0x334870)=>_0x30d916(_0x2e00ea,_0x334870,_0x5273db),T=(_0x4fb334,_0x3e21d8,_0x29258c)=>oe(_0x4fb334,typeof _0x3e21d8!='symbol'?_0x3e21d8+'':_0x3e21d8,_0x29258c);function _0x4e7b(){var _0x3603a7=['LIVESHARE_NEW_HOST','univerjs-icon\x20univerjs-icon-','forwardRef','includes','_configService','idSuffix','prototype','toDisposable','DisposableCollection','_handleNewHost','mergeOverrideWithDependencies','asObservable','override','_stopFollowing','134132sxfSHg','parse','2NdhMMA','throttleTime','_handleOperation','defs','getLiveShareCoordinator','use','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','indexOf','tryStartPresenting','1695714omgXPZ','live-share.config','replace','presenter','connectInjector','LiveShareController','LiveShareStatus','LIVESHARE_FETCH_OPERATIONS','getTypeOfUnitAdded$','mutations','NOT_FOLLOWING','idle','UNIVER_SHEET','UNIVER_LIVE_SHARE_PLUGIN','call','stopFollowing','children','touchDependencies','_commandService','data','not-following','presenting','_startLiveShareCoordinator','length','dispose','287UBdvbW','univer-mb-3\x20univer-w-full\x20univer-text-sm','registerComponent','stopPresenting','shouldShareOperation','Plugin','9925990FZTgvm','_reporters','disposeWithMe','getMemberID','status$','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','LIVESHARE_OPERATION','get','_collabSession','CollaborationSessionService','_uiPartsService','0\x200\x2017\x2017','UniverCollaborationClientPlugin','You\x27re\x20presenting\x20the\x20document','createElement','LiveShare','registerDependencies','mask','LiveShareCoordinator','executeCommand','CollaborationEvent','concat','offline','Button','BuiltInUIPart','ICommandService','3647322qCEgEb','operations','useState','_startPresenting','_commandDisposable','clear','Present\x20this\x20document','_beIdle','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','Stop\x20presenting','useDependency','SessionStatus','_mountLiveShare','_liveShareService','FOLLOWING','className','end','jsxs','assign','PRESENTING','onRendered','startFollowing','pipe','displayName','You\x27are\x20offline.','ONLINE','fill','dispose$','substring','UniverLiveSharePlugin','values','evenodd','21968VMZvYO','HEADER_MENU','_unitID','apply','_presenter','find','entries','NEW_CHANGESETS','jsx','_status$','2166708PJjkZJ','live-share-icon','_config','LIVESHARE_REQUEST_HOST','_fetchOperations','OPERATION','event$','has','merge','_entities','Injector','_univerInstanceService','UniverIcon','Subject','Fragment','Disposable','string','getTypeOfUnitDisposed$','function','Start\x20following','url(#$1','_collabSessionService','pluginName','delete','defIds','unitId','from','SAME_OPERATION_SHARE_INTERVAL','reverse','Stop\x20following','takeUntil','_status','defineProperty','_handleOffline','onCommandExecuted','forEach','DesktopLiveShareController','clsx','path','105pABEhY','subscribe','text','SetZoomRatioOperation','registerSharedOperation','send','getConfig','extend','params','trim','SetWorksheetActiveOperation','toStringTag','stringify','button','getOwnPropertyDescriptor','useEffect','map','_startFollowing','next','_sharedOperations','add','UniverInstanceType','attrs','set','IConfigService','UNIVER_UNKNOWN','You\x27re\x20not\x20following\x20the\x20presenter','div','_handleNewChangeSets','init','then','_handleOnline','IDLE','following','_handleTerminate','colorChannel1','hasOwnProperty','sessionStatus$','current','_init','getCurrentTypeOfUnit$','343wgjqPJ','random','1em','getUnitId','_injector','tag','IUniverInstanceService','OFFLINE','useRef','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','complete','Inject','currentColor','unsubscribe','Dropdown','RxDisposable','onStarting'];_0x4e7b=function(){return _0x3603a7;};return _0x4e7b();}const le=_0x339c3f(0x1c4);exports[_0x339c3f(0x20d)]=class extends o[_0x339c3f(0x1d5)]{constructor(_0x4478c2=x,_0x32f26d,_0x2c524a){var _0x3f02e1=_0x339c3f;super(),this[_0x3f02e1(0x21c)]=_0x4478c2,this[_0x3f02e1(0x191)]=_0x32f26d,this[_0x3f02e1(0x1a2)]=_0x2c524a;const {..._0x10ffe2}=o[_0x3f02e1(0x222)]({},x,this[_0x3f02e1(0x21c)]);this['_configService']['setConfig']($,_0x10ffe2);}[_0x339c3f(0x19d)](){var _0x5ee2ec=_0x339c3f;o[_0x5ee2ec(0x1e6)](this[_0x5ee2ec(0x191)],o[_0x5ee2ec(0x1a8)]([[O],[exports[_0x5ee2ec(0x1bc)]],[E],[exports[_0x5ee2ec(0x161)]]],this[_0x5ee2ec(0x21c)][_0x5ee2ec(0x1aa)])),o['touchDependencies'](this['_injector'],[[E]]);}[_0x339c3f(0x204)](){var _0x3823ec=_0x339c3f;o[_0x3823ec(0x1c8)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x339c3f(0x20d)],'type',o['UniverInstanceType'][_0x339c3f(0x17d)]),T(exports['UniverLiveSharePlugin'],_0x339c3f(0x153),le),exports['UniverLiveSharePlugin']=ae([o['DependentOn'](m[_0x339c3f(0x1e2)]),N(0x1,o[_0x339c3f(0x198)](o[_0x339c3f(0x224)])),N(0x2,o[_0x339c3f(0x17c)])],exports[_0x339c3f(0x20d)]),exports[_0x339c3f(0x1e5)]=A,exports['LiveShareService']=O,exports[_0x339c3f(0x1bd)]=h;
|
|
1
|
+
'use strict';var _0x3456c0=_0xf4ac;(function(_0x328297,_0x5c1311){var _0x4ede45=_0xf4ac,_0x3a015a=_0x328297();while(!![]){try{var _0x5dc8d7=parseInt(_0x4ede45(0x232))/0x1*(-parseInt(_0x4ede45(0x1c6))/0x2)+parseInt(_0x4ede45(0x1d5))/0x3*(parseInt(_0x4ede45(0x22c))/0x4)+-parseInt(_0x4ede45(0x1f8))/0x5*(parseInt(_0x4ede45(0x1cc))/0x6)+-parseInt(_0x4ede45(0x1b9))/0x7+-parseInt(_0x4ede45(0x243))/0x8*(parseInt(_0x4ede45(0x239))/0x9)+-parseInt(_0x4ede45(0x225))/0xa*(parseInt(_0x4ede45(0x25a))/0xb)+-parseInt(_0x4ede45(0x1f3))/0xc*(-parseInt(_0x4ede45(0x270))/0xd);if(_0x5dc8d7===_0x5c1311)break;else _0x3a015a['push'](_0x3a015a['shift']());}catch(_0x29df22){_0x3a015a['push'](_0x3a015a['shift']());}}}(_0xdbb7,0x40a48));function _0xf4ac(_0x2baa04,_0x17fdf8){var _0xdbb7ee=_0xdbb7();return _0xf4ac=function(_0xf4ace4,_0x31c3af){_0xf4ace4=_0xf4ace4-0x1a8;var _0x16b705=_0xdbb7ee[_0xf4ace4];return _0x16b705;},_0xf4ac(_0x2baa04,_0x17fdf8);}var U=Object[_0x3456c0(0x1e4)],F=(_0x9873d,_0x718085,_0x16a551)=>_0x718085 in _0x9873d?U(_0x9873d,_0x718085,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16a551}):_0x9873d[_0x718085]=_0x16a551,v=(_0x5a60f2,_0x46962a,_0x4f7357)=>F(_0x5a60f2,typeof _0x46962a!=_0x3456c0(0x288)?_0x46962a+'':_0x46962a,_0x4f7357);Object[_0x3456c0(0x1e4)](exports,Symbol['toStringTag'],{'value':'Module'});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$='live-share.config',x={};class O extends o[_0x3456c0(0x1fd)]{constructor(){var _0x35cbb7=_0x3456c0;super(...arguments),v(this,'_sharedOperations',new Set()),v(this,_0x35cbb7(0x222),new Set());}[_0x3456c0(0x1b7)](_0x284036){var _0x31c2cb=_0x3456c0;return this[_0x31c2cb(0x26b)]['add'](_0x284036),o['toDisposable'](()=>this['_sharedOperations'][_0x31c2cb(0x22b)](_0x284036));}[_0x3456c0(0x27d)](_0x2ce6b9){var _0x5f3e21=_0x3456c0;return this['_reporters']['add'](_0x2ce6b9),o['toDisposable'](()=>this[_0x5f3e21(0x222)][_0x5f3e21(0x22b)](_0x2ce6b9));}[_0x3456c0(0x1b5)](_0x4b65c0){var _0x27bdb6=_0x3456c0;return this['_sharedOperations'][_0x27bdb6(0x1ab)](_0x4b65c0);}[_0x3456c0(0x1fe)](_0x5eef87){var _0x322c09=_0x3456c0;return Array['from'](this[_0x322c09(0x222)])['map'](_0x49cb94=>_0x49cb94(_0x5eef87));}}var H=Object[_0x3456c0(0x209)],V=(_0x4d92da,_0x51e861,_0x57a95a,_0x4b391a)=>{for(var _0x303cb4=_0x4b391a>0x1?void 0x0:_0x4b391a?H(_0x51e861,_0x57a95a):_0x51e861,_0x40a0aa=_0x4d92da['length']-0x1,_0x57834e;_0x40a0aa>=0x0;_0x40a0aa--)(_0x57834e=_0x4d92da[_0x40a0aa])&&(_0x303cb4=_0x57834e(_0x303cb4)||_0x303cb4);return _0x303cb4;},k=(_0x441cb7,_0xd3ec45)=>(_0x5c4989,_0x10bfe0)=>_0xd3ec45(_0x5c4989,_0x10bfe0,_0x441cb7);let E=class extends o[_0x3456c0(0x1fd)]{constructor(_0x5789fc){var _0x27900c=_0x3456c0;super(),this[_0x27900c(0x264)]=_0x5789fc,this[_0x27900c(0x284)]();}['_init'](){var _0x17305f=_0x3456c0;[w['SetZoomRatioOperation']['id'],w['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']][_0x17305f(0x20a)](_0x505f7d=>{var _0x4bfb3d=_0x17305f;this[_0x4bfb3d(0x24b)](this[_0x4bfb3d(0x264)][_0x4bfb3d(0x1b7)](_0x505f7d));});}};E=V([k(0x0,o[_0x3456c0(0x1f6)](O))],E);var u=function(){var _0x4c6144=_0x3456c0;return u=Object[_0x4c6144(0x201)]||function(_0x1bd6cf){var _0x2fe362=_0x4c6144;for(var _0x43b80e,_0x3e61b5=0x1,_0x50b593=arguments[_0x2fe362(0x1cd)];_0x3e61b5<_0x50b593;_0x3e61b5++){_0x43b80e=arguments[_0x3e61b5];for(var _0x4372de in _0x43b80e)Object['prototype']['hasOwnProperty']['call'](_0x43b80e,_0x4372de)&&(_0x1bd6cf[_0x4372de]=_0x43b80e[_0x4372de]);}return _0x1bd6cf;},u[_0x4c6144(0x289)](this,arguments);},M=function(_0x36ff2e,_0x5cad31){var _0x114f49=_0x3456c0,_0x47d8de={};for(var _0x23de2e in _0x36ff2e)Object[_0x114f49(0x249)]['hasOwnProperty']['call'](_0x36ff2e,_0x23de2e)&&_0x5cad31[_0x114f49(0x1ce)](_0x23de2e)<0x0&&(_0x47d8de[_0x23de2e]=_0x36ff2e[_0x23de2e]);if(_0x36ff2e!=null&&typeof Object[_0x114f49(0x21b)]==_0x114f49(0x248)){for(var _0xa9d84f=0x0,_0x23de2e=Object[_0x114f49(0x21b)](_0x36ff2e);_0xa9d84f<_0x23de2e[_0x114f49(0x1cd)];_0xa9d84f++)_0x5cad31[_0x114f49(0x1ce)](_0x23de2e[_0xa9d84f])<0x0&&Object[_0x114f49(0x249)]['propertyIsEnumerable'][_0x114f49(0x25f)](_0x36ff2e,_0x23de2e[_0xa9d84f])&&(_0x47d8de[_0x23de2e[_0xa9d84f]]=_0x36ff2e[_0x23de2e[_0xa9d84f]]);}return _0x47d8de;},j=f[_0x3456c0(0x1be)](function(_0x3372e7,_0xeb1251){var _0xdd228d=_0x3456c0,_0xd3a4a5=_0x3372e7[_0xdd228d(0x205)],_0x348c57=_0x3372e7['id'],_0x28413f=_0x3372e7[_0xdd228d(0x269)],_0x2c35c8=_0x3372e7[_0xdd228d(0x210)],_0x204e2e=M(_0x3372e7,[_0xdd228d(0x205),'id','className',_0xdd228d(0x210)]),_0x3e7a57='univerjs-icon\x20univerjs-icon-'[_0xdd228d(0x1f5)](_0x348c57,'\x20')[_0xdd228d(0x1f5)](_0x28413f||'')[_0xdd228d(0x214)](),_0x51ea24=f[_0xdd228d(0x1c1)]('_'[_0xdd228d(0x1f5)](G()));return y(_0xd3a4a5,''[_0xdd228d(0x1f5)](_0x348c57),{'defIds':_0xd3a4a5[_0xdd228d(0x25e)],'idSuffix':_0x51ea24[_0xdd228d(0x1de)]},u({'ref':_0xeb1251,'className':_0x3e7a57},_0x204e2e),_0x2c35c8);});function y(_0x29bd9b,_0x47f5e0,_0x47d347,_0x2c0af9,_0x6a2119){var _0x5c9342=_0x3456c0;return f[_0x5c9342(0x1ad)](_0x29bd9b[_0x5c9342(0x207)],u(u({'key':_0x47f5e0},q(_0x29bd9b,_0x47d347,_0x6a2119)),_0x2c0af9),(W(_0x29bd9b,_0x47d347)[_0x5c9342(0x257)]||[])[_0x5c9342(0x1b2)](function(_0x4ab6f2,_0x1e129b){var _0x494383=_0x5c9342;return y(_0x4ab6f2,''[_0x494383(0x1f5)](_0x47f5e0,'-')[_0x494383(0x1f5)](_0x29bd9b[_0x494383(0x207)],'-')['concat'](_0x1e129b),_0x47d347,void 0x0,_0x6a2119);}));}function q(_0x1dc3d6,_0x9da347,_0x2e4532){var _0x41c90e=_0x3456c0,_0x373575=u({},_0x1dc3d6[_0x41c90e(0x272)]);_0x2e4532!=null&&_0x2e4532['colorChannel1']&&_0x373575['fill']===_0x41c90e(0x1e0)&&(_0x373575['fill']=_0x2e4532[_0x41c90e(0x1e0)]),_0x1dc3d6[_0x41c90e(0x207)]==='mask'&&_0x373575['id']&&(_0x373575['id']=_0x373575['id']+_0x9da347['idSuffix']),Object['entries'](_0x373575)[_0x41c90e(0x20a)](function(_0x58185e){var _0x20922d=_0x41c90e,_0x1742b9=_0x58185e[0x0],_0x451cd4=_0x58185e[0x1];_0x1742b9===_0x20922d(0x1b6)&&typeof _0x451cd4==_0x20922d(0x1cf)&&(_0x373575[_0x1742b9]=_0x451cd4[_0x20922d(0x26e)](/url\(#(.*)\)/,_0x20922d(0x1f1)[_0x20922d(0x1f5)](_0x9da347[_0x20922d(0x1e9)],')')));});var _0x358016=_0x9da347[_0x41c90e(0x25e)];return!_0x358016||_0x358016[_0x41c90e(0x1cd)]===0x0||(_0x1dc3d6['tag']===_0x41c90e(0x23d)&&_0x373575['xlink:href']&&(_0x373575['xlink:href']=_0x373575['xlink:href']+_0x9da347[_0x41c90e(0x1e9)]),Object[_0x41c90e(0x276)](_0x373575)[_0x41c90e(0x20a)](function(_0x372d7d){var _0x5ccea8=_0x41c90e,_0xe4c433=_0x372d7d[0x0],_0x2efc6a=_0x372d7d[0x1];typeof _0x2efc6a==_0x5ccea8(0x1cf)&&(_0x373575[_0xe4c433]=_0x2efc6a[_0x5ccea8(0x26e)](/url\(#(.*)\)/,_0x5ccea8(0x1f1)[_0x5ccea8(0x1f5)](_0x9da347[_0x5ccea8(0x1e9)],')')));})),_0x373575;}function W(_0x29eabc,_0x1ab657){var _0xc14994=_0x3456c0,_0x45f889,_0x4a29de=_0x1ab657[_0xc14994(0x25e)];return!_0x4a29de||_0x4a29de[_0xc14994(0x1cd)]===0x0?_0x29eabc:_0x29eabc[_0xc14994(0x207)]==='defs'&&(!((_0x45f889=_0x29eabc[_0xc14994(0x257)])===null||_0x45f889===void 0x0)&&_0x45f889[_0xc14994(0x1cd)])?u(u({},_0x29eabc),{'children':_0x29eabc[_0xc14994(0x257)]['map'](function(_0x3676f0){var _0x5021ba=_0xc14994;return typeof _0x3676f0[_0x5021ba(0x272)]['id']==_0x5021ba(0x1cf)&&_0x4a29de&&_0x4a29de[_0x5021ba(0x250)](_0x3676f0[_0x5021ba(0x272)]['id'])?u(u({},_0x3676f0),{'attrs':u(u({},_0x3676f0[_0x5021ba(0x272)]),{'id':_0x3676f0[_0x5021ba(0x272)]['id']+_0x1ab657[_0x5021ba(0x1e9)]})}):_0x3676f0;})}):_0x29eabc;}function G(){var _0x39483f=_0x3456c0;return Math[_0x39483f(0x1c9)]()[_0x39483f(0x26a)](0x24)['substring'](0x2,0x8);}j[_0x3456c0(0x1c5)]=_0x3456c0(0x1ec);var B={'tag':_0x3456c0(0x22d),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x3456c0(0x24e),'viewBox':_0x3456c0(0x1e5),'width':_0x3456c0(0x23e),'height':_0x3456c0(0x23e)},'children':[{'tag':_0x3456c0(0x1ea),'attrs':{'fill':_0x3456c0(0x217),'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':_0x3456c0(0x1ea),'attrs':{'fill':_0x3456c0(0x217),'d':_0x3456c0(0x266),'fillRule':'evenodd','clipRule':_0x3456c0(0x246)}}]},P=f[_0x3456c0(0x1be)](function(_0x127009,_0xe6f131){var _0x6ab640=_0x3456c0;return f[_0x6ab640(0x1ad)](j,Object[_0x6ab640(0x201)]({},_0x127009,{'id':_0x6ab640(0x241),'ref':_0xe6f131,'icon':B}));});P[_0x3456c0(0x1c5)]=_0x3456c0(0x1b1);var Y=Object[_0x3456c0(0x209)],R=(_0x8f8ce0,_0x2d5b5a,_0x511f56,_0x5336e1)=>{for(var _0x28e747=_0x5336e1>0x1?void 0x0:_0x5336e1?Y(_0x2d5b5a,_0x511f56):_0x2d5b5a,_0x19c2b2=_0x8f8ce0['length']-0x1,_0x525c74;_0x19c2b2>=0x0;_0x19c2b2--)(_0x525c74=_0x8f8ce0[_0x19c2b2])&&(_0x28e747=_0x525c74(_0x28e747)||_0x28e747);return _0x28e747;},S=(_0x5b67bc,_0x54b2ca)=>(_0x17c235,_0x4d734c)=>_0x54b2ca(_0x17c235,_0x4d734c,_0x5b67bc);exports[_0x3456c0(0x1e7)]=class extends o[_0x3456c0(0x1fb)]{constructor(_0x1bc7d4,_0x135678,_0x215288){var _0x3004f9=_0x3456c0;super(),v(this,_0x3004f9(0x216),new Map()),(this['_univerInstanceService']=_0x1bc7d4,this[_0x3004f9(0x268)]=_0x135678,this[_0x3004f9(0x21d)]=_0x215288,this[_0x3004f9(0x284)]());}async[_0x3456c0(0x28a)](_0x1cd7e1){var _0x4eb7b5=_0x3456c0;return this[_0x4eb7b5(0x216)][_0x4eb7b5(0x1ab)](_0x1cd7e1)||await this[_0x4eb7b5(0x240)](_0x1cd7e1),this[_0x4eb7b5(0x216)][_0x4eb7b5(0x1da)](_0x1cd7e1);}[_0x3456c0(0x284)](){var _0x15a955=_0x3456c0;this[_0x15a955(0x20d)][_0x15a955(0x245)](o[_0x15a955(0x265)][_0x15a955(0x1bd)])[_0x15a955(0x20f)](b[_0x15a955(0x1bc)](this[_0x15a955(0x1bb)]))[_0x15a955(0x1ee)](async _0xca48a0=>{var _0xda953e=_0x15a955;const _0x302433=_0xca48a0[_0xda953e(0x1fc)]();this[_0xda953e(0x216)][_0xda953e(0x1ab)](_0x302433)||this['_startLiveShareCoordinator'](_0x302433);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](o['UniverInstanceType'][_0x15a955(0x1bd)])['pipe'](b[_0x15a955(0x1bc)](this[_0x15a955(0x1bb)]))[_0x15a955(0x1ee)](_0x57e83d=>{var _0x36a407=_0x15a955;const _0x30d793=_0x57e83d[_0x36a407(0x1fc)](),_0x5a57c6=this['_entities'][_0x36a407(0x1da)](_0x30d793);_0x5a57c6==null||_0x5a57c6[_0x36a407(0x1ae)]();});}async['_startLiveShareCoordinator'](_0x4d6a31){var _0x20be5c=_0x3456c0;const _0x5d01c3=await this[_0x20be5c(0x21d)][_0x20be5c(0x1ba)](_0x4d6a31),_0x192723=this[_0x20be5c(0x268)]['createInstance'](exports[_0x20be5c(0x1ed)],_0x4d6a31,_0x5d01c3);return _0x192723[_0x20be5c(0x1e1)](),this[_0x20be5c(0x216)][_0x20be5c(0x20e)](_0x4d6a31,_0x192723),_0x192723;}},exports['LiveShareController']=R([S(0x0,o[_0x3456c0(0x28b)]),S(0x1,o[_0x3456c0(0x1f6)](o[_0x3456c0(0x254)])),S(0x2,o[_0x3456c0(0x1f6)](m[_0x3456c0(0x218)]))],exports[_0x3456c0(0x1e7)]);var h=(_0xc9a3a5=>(_0xc9a3a5[_0x3456c0(0x21e)]=_0x3456c0(0x206),_0xc9a3a5[_0x3456c0(0x262)]='idle',_0xc9a3a5[_0x3456c0(0x226)]='following',_0xc9a3a5['NOT_FOLLOWING']=_0x3456c0(0x273),_0xc9a3a5[_0x3456c0(0x235)]=_0x3456c0(0x244),_0xc9a3a5))(h||{});const Z=_0x3456c0(0x1c7),J=0xc8;exports[_0x3456c0(0x1ed)]=class extends o['RxDisposable']{constructor(_0x38a4c9,_0x533380,_0x10b746,_0x3024db,_0x469c07){var _0x1a46da=_0x3456c0;super(),v(this,'_status$',new D[(_0x1a46da(0x24d))](_0x1a46da(0x1f2))),v(this,_0x1a46da(0x21a),this['_status$'][_0x1a46da(0x282)]()),v(this,_0x1a46da(0x284),!0x1),v(this,'_commandDisposable',null),v(this,'_presenter',null),(this[_0x1a46da(0x1f4)]=_0x38a4c9,this[_0x1a46da(0x1ff)]=_0x533380,this[_0x1a46da(0x1ca)]=_0x10b746,this[_0x1a46da(0x264)]=_0x3024db,this[_0x1a46da(0x259)]=_0x469c07);}get[_0x3456c0(0x1dd)](){var _0x4d574b=_0x3456c0;return this[_0x4d574b(0x258)][_0x4d574b(0x263)]();}['dispose'](){var _0x5a68c7=_0x3456c0,_0x5bcf57;(_0x5bcf57=this[_0x5a68c7(0x223)])==null||_0x5bcf57['dispose'](),this['_status$'][_0x5a68c7(0x200)](_0x5a68c7(0x1f2)),this[_0x5a68c7(0x258)][_0x5a68c7(0x1ef)]();}[_0x3456c0(0x1e1)](){var _0x173547=_0x3456c0;this['_init']||(this[_0x173547(0x284)]=!0x0,this[_0x173547(0x1ff)][_0x173547(0x26f)][_0x173547(0x20f)](b[_0x173547(0x1bc)](this[_0x173547(0x1bb)]))[_0x173547(0x1ee)](_0x300706=>{var _0x4c2fd4=_0x173547;switch(_0x300706){case m[_0x4c2fd4(0x1b0)][_0x4c2fd4(0x21e)]:this[_0x4c2fd4(0x228)]();break;case m[_0x4c2fd4(0x1b0)][_0x4c2fd4(0x229)]:this[_0x4c2fd4(0x211)]();break;}}),this[_0x173547(0x1ff)][_0x173547(0x281)]['pipe'](b[_0x173547(0x1bc)](this[_0x173547(0x1bb)]))[_0x173547(0x1ee)](_0x2b9266=>{var _0x56dbff=_0x173547;const {eventID:_0x3da17b}=_0x2b9266;switch(_0x3da17b){case _[_0x56dbff(0x252)][_0x56dbff(0x23f)]:this[_0x56dbff(0x1c2)](_0x2b9266);break;case _[_0x56dbff(0x252)][_0x56dbff(0x224)]:this['_handleOperation'](_0x2b9266);break;case _[_0x56dbff(0x252)][_0x56dbff(0x233)]:this[_0x56dbff(0x27c)]();break;case _[_0x56dbff(0x252)]['NEW_CHANGESETS']:this[_0x56dbff(0x208)](_0x2b9266);break;}}));}[_0x3456c0(0x1c4)](){var _0x23891d=_0x3456c0;this[_0x23891d(0x1ff)][_0x23891d(0x20c)]({'eventID':_['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x23891d(0x1ff)][_0x23891d(0x230)]()}},this['_unitID']);}[_0x3456c0(0x227)](){var _0x53f287=_0x3456c0;this['_status']==='presenting'&&(this[_0x53f287(0x258)][_0x53f287(0x200)](_0x53f287(0x1f2)),this[_0x53f287(0x1ff)][_0x53f287(0x20c)]({'eventID':_[_0x53f287(0x252)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x53f287(0x1f4)]}},this[_0x53f287(0x1f4)]));}['startFollowing'](){var _0x56b731=_0x3456c0;this[_0x56b731(0x1dd)]===_0x56b731(0x273)&&(this['_status$'][_0x56b731(0x200)](_0x56b731(0x1ac)),this[_0x56b731(0x1d9)]());}[_0x3456c0(0x231)](){var _0x174a66=_0x3456c0;this['_status']===_0x174a66(0x1ac)&&this[_0x174a66(0x271)]();}[_0x3456c0(0x1c2)](_0x2e398c){var _0x597481=_0x3456c0;const {presenter:_0x4f22b7}=_0x2e398c[_0x597481(0x274)],_0x194d08=this[_0x597481(0x1ff)][_0x597481(0x230)]();this['_presenter']=_0x4f22b7,_0x4f22b7===_0x194d08?(this[_0x597481(0x271)](),this['_startPresenting']()):this[_0x597481(0x1dd)]!==_0x597481(0x273)&&(this['_stopPresenting'](),this[_0x597481(0x1d9)]());}[_0x3456c0(0x202)](){var _0x55dc03=_0x3456c0;const _0xdda3c3={'eventID':_[_0x55dc03(0x252)][_0x55dc03(0x1e6)]};this['_collabSession'][_0x55dc03(0x20c)](_0xdda3c3,this['_unitID']);}[_0x3456c0(0x27c)](){var _0x343dc4=_0x3456c0;this['_presenter']=null,this[_0x343dc4(0x1dd)]!==_0x343dc4(0x244)&&this[_0x343dc4(0x25c)]();}['_handleNewChangeSets'](_0x10a2e0){var _0x371cb1=_0x3456c0;if(this[_0x371cb1(0x1dd)]===_0x371cb1(0x1ac)&&this[_0x371cb1(0x1bf)]===_0x10a2e0['data'][_0x371cb1(0x1df)]){const _0x3e1fff=_[_0x371cb1(0x1cb)](_0x10a2e0[_0x371cb1(0x274)])[_0x371cb1(0x1a9)][_0x371cb1(0x277)]()[_0x371cb1(0x275)](_0x58ebc0=>_0x58ebc0['id']===C['InsertSheetMutation']['id']);if(_0x3e1fff){const _0x3e1aca=_0x3e1fff[_0x371cb1(0x25d)][_0x371cb1(0x1f7)],_0x40e6be=_0x3e1fff[_0x371cb1(0x25d)][_0x371cb1(0x234)]['id'];setTimeout(()=>{var _0x52c1be=_0x371cb1;this[_0x52c1be(0x259)][_0x52c1be(0x21c)](C[_0x52c1be(0x1fa)]['id'],{'unitId':_0x3e1aca,'subUnitId':_0x40e6be},{'fromCollab':!0x0});});}}}[_0x3456c0(0x1e3)](){var _0x1f318a=_0x3456c0;this[_0x1f318a(0x258)]['next'](_0x1f318a(0x244));const _0x5499bb=new Map(),_0x4e8101=this[_0x1f318a(0x223)]=new o[(_0x1f318a(0x220))]();_0x4e8101[_0x1f318a(0x1a8)](o[_0x1f318a(0x1b3)](()=>{var _0x3d4b51=_0x1f318a;_0x5499bb['forEach'](_0x2b94dc=>_0x2b94dc['complete']()),_0x5499bb[_0x3d4b51(0x1e2)]();})),_0x4e8101['add'](this[_0x1f318a(0x259)][_0x1f318a(0x280)](_0x1a1ae2=>{var _0x27e77a=_0x1f318a,_0x332ca7;if(_0x1a1ae2['type']!==o[_0x27e77a(0x283)][_0x27e77a(0x20b)]||!this[_0x27e77a(0x264)][_0x27e77a(0x1b5)](_0x1a1ae2['id']))return;const {id:_0x37e859}=_0x1a1ae2;let _0x431ffc;_0x5499bb[_0x27e77a(0x1ab)](_0x37e859)?_0x431ffc=_0x5499bb['get'](_0x37e859):(_0x431ffc=new D[(_0x27e77a(0x1c3))](),_0x5499bb['set'](_0x37e859,_0x431ffc),_0x431ffc[_0x27e77a(0x20f)](b[_0x27e77a(0x27b)]((_0x332ca7=this[_0x27e77a(0x1ca)][_0x27e77a(0x237)](Z))!=null?_0x332ca7:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x27e77a(0x1ee)](_0x36353f=>{var _0x9a7a8f=_0x27e77a;this['_collabSession'][_0x9a7a8f(0x20c)]({'eventID':_['CollaborationEvent'][_0x9a7a8f(0x224)],'data':{'unitID':this[_0x9a7a8f(0x1f4)],'operations':{[_0x36353f['id']]:{'id':_0x36353f['id'],'params':JSON[_0x9a7a8f(0x23c)](_0x36353f['params'])}}}},this[_0x9a7a8f(0x1f4)]);})),_0x431ffc['next'](_0x1a1ae2);})),this[_0x1f318a(0x264)]['getInitialStates'](this[_0x1f318a(0x1f4)])[_0x1f318a(0x20a)](_0x1c747a=>this['_collabSession']['send']({'eventID':_[_0x1f318a(0x252)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1f318a(0x1f4)],'operations':{[_0x1c747a['id']]:{'id':_0x1c747a['id'],'params':JSON[_0x1f318a(0x23c)](_0x1c747a[_0x1f318a(0x25d)])}}}},this[_0x1f318a(0x1f4)]));}[_0x3456c0(0x267)](){var _0x209742=_0x3456c0,_0x515a53;this[_0x209742(0x258)][_0x209742(0x200)](_0x209742(0x1f2)),(_0x515a53=this[_0x209742(0x223)])==null||_0x515a53[_0x209742(0x1ae)](),this[_0x209742(0x223)]=null;}[_0x3456c0(0x1d9)](){var _0xf66c5b=_0x3456c0,_0x5dcae5;(_0x5dcae5=this['_commandDisposable'])==null||_0x5dcae5[_0xf66c5b(0x1ae)](),this[_0xf66c5b(0x258)][_0xf66c5b(0x200)](_0xf66c5b(0x1ac));}['_beIdle'](){var _0x1913e3=_0x3456c0,_0x2f8776;this['_status$']['next'](_0x1913e3(0x1f2)),(_0x2f8776=this[_0x1913e3(0x223)])==null||_0x2f8776[_0x1913e3(0x1ae)](),this[_0x1913e3(0x223)]=null;}[_0x3456c0(0x271)](){var _0x35cd07=_0x3456c0,_0x56626a;this['_status$'][_0x35cd07(0x200)]('not-following'),(_0x56626a=this[_0x35cd07(0x223)])==null||_0x56626a[_0x35cd07(0x1ae)]();}[_0x3456c0(0x1c8)](_0x1d689f){var _0x1bc9df=_0x3456c0;if([_0x1bc9df(0x244),_0x1bc9df(0x273),_0x1bc9df(0x206)]['includes'](this[_0x1bc9df(0x1dd)])||!_0x1d689f[_0x1bc9df(0x274)][_0x1bc9df(0x1d3)]||_0x1d689f['data'][_0x1bc9df(0x1d3)]===this[_0x1bc9df(0x1ff)]['getMemberID']())return;this[_0x1bc9df(0x1dd)]===_0x1bc9df(0x1f2)&&this[_0x1bc9df(0x1d9)]();const _0x38d9d4=_0x1d689f[_0x1bc9df(0x274)][_0x1bc9df(0x253)];Object['values'](_0x38d9d4)[_0x1bc9df(0x20a)](_0x2c14a8=>{var _0x330195=_0x1bc9df;this[_0x330195(0x259)][_0x330195(0x21c)](_0x2c14a8['id'],_0x2c14a8['params']?JSON['parse'](_0x2c14a8[_0x330195(0x25d)]):null,{'fromCollab':!0x0});});}[_0x3456c0(0x228)](){var _0x29534d=_0x3456c0,_0x5f3b6b;this[_0x29534d(0x258)][_0x29534d(0x200)](_0x29534d(0x206)),(_0x5f3b6b=this[_0x29534d(0x223)])==null||_0x5f3b6b[_0x29534d(0x1ae)]();}['_handleOnline'](){var _0x1ab1d2=_0x3456c0;this[_0x1ab1d2(0x258)][_0x1ab1d2(0x200)](_0x1ab1d2(0x1f2)),this['_fetchOperations']();}},exports[_0x3456c0(0x1ed)]=R([S(0x2,o[_0x3456c0(0x1d4)]),S(0x3,o['Inject'](O)),S(0x4,o[_0x3456c0(0x27a)])],exports[_0x3456c0(0x1ed)]);function A(){var _0x4659e3=_0x3456c0;const _0xee9e85=p['useDependency'](exports[_0x4659e3(0x1e7)]),_0x24e6ad=p['useDependency'](o[_0x4659e3(0x28b)]),_0x3c6684=p[_0x4659e3(0x1b8)](()=>_0x24e6ad[_0x4659e3(0x287)](o[_0x4659e3(0x265)][_0x4659e3(0x1bd)]),void 0x0,!0x1,[]),[_0x5459ec,_0x1ae8e9]=f['useState'](null),[_0x93da30,_0xba8f97]=f[_0x4659e3(0x260)](h[_0x4659e3(0x262)]),_0x50ea15=f['useRef'](null);return f[_0x4659e3(0x261)](()=>(_0x3c6684&&_0xee9e85[_0x4659e3(0x28a)](_0x3c6684[_0x4659e3(0x1fc)]())[_0x4659e3(0x23b)](_0x2d6315=>{var _0x2363f3=_0x4659e3;_0x1ae8e9(_0x2d6315),_0x50ea15[_0x2363f3(0x1de)]=_0x2d6315[_0x2363f3(0x21a)][_0x2363f3(0x1ee)](_0x4fc1e3=>{_0xba8f97(_0x4fc1e3);});}),()=>{var _0x37245d=_0x4659e3,_0x25be95;(_0x25be95=_0x50ea15[_0x37245d(0x1de)])==null||_0x25be95[_0x37245d(0x204)](),_0x50ea15['current']=null;}),[_0x3c6684,_0xee9e85]),_0x5459ec?l['jsx'](g[_0x4659e3(0x256)],{'align':'end','disabled':_0x93da30===h[_0x4659e3(0x21e)],'className':_0x4659e3(0x1d6),'overlay':l[_0x4659e3(0x1af)](K,{'status':_0x93da30,'coordinator':_0x5459ec}),'children':l[_0x4659e3(0x1af)](_0x4659e3(0x1aa),{'className':g[_0x4659e3(0x215)](_0x4659e3(0x1d8),{'univer-cursor-not-allowed':_0x93da30===h[_0x4659e3(0x21e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x93da30!==h[_0x4659e3(0x21e)]}),'type':_0x4659e3(0x1aa),'children':l['jsx'](P,{'className':_0x4659e3(0x238)})})}):null;}function K(_0x35b146){var _0x26ac68=_0x3456c0;const {status:_0x222bc3,coordinator:_0x4f2447}=_0x35b146;switch(_0x222bc3){case h[_0x26ac68(0x262)]:return l[_0x26ac68(0x1af)](z,{'coordinator':_0x4f2447});case h[_0x26ac68(0x226)]:return l[_0x26ac68(0x1af)](Q,{'coordinator':_0x4f2447});case h[_0x26ac68(0x1d1)]:return l[_0x26ac68(0x1af)](X,{'coordinator':_0x4f2447});case h[_0x26ac68(0x21e)]:return l[_0x26ac68(0x1af)](te,{});case h[_0x26ac68(0x235)]:return l[_0x26ac68(0x1af)](ee,{'coordinator':_0x4f2447});default:return null;}}function z(_0x34e661){var _0x2b55c7=_0x3456c0;const {coordinator:_0x1775c5}=_0x34e661;return l[_0x2b55c7(0x242)](l[_0x2b55c7(0x1dc)],{'children':[l[_0x2b55c7(0x1af)]('div',{'className':_0x2b55c7(0x1b4),'children':'Present\x20this\x20document'}),l[_0x2b55c7(0x1af)](g[_0x2b55c7(0x21f)],{'onClick':()=>_0x1775c5['tryStartPresenting'](),'children':_0x2b55c7(0x1eb)})]});}function Q(_0x45fa82){var _0x113e1b=_0x3456c0;const {coordinator:_0x2ad515}=_0x45fa82;return l['jsxs'](l[_0x113e1b(0x1dc)],{'children':[l[_0x113e1b(0x1af)]('div',{'className':_0x113e1b(0x1b4),'children':_0x113e1b(0x22e)}),l['jsx'](g[_0x113e1b(0x21f)],{'onClick':()=>_0x2ad515[_0x113e1b(0x231)](),'children':'Stop\x20following'})]});}function X(_0x1d82b0){var _0x21a33c=_0x3456c0;const {coordinator:_0x390bd1}=_0x1d82b0;return l[_0x21a33c(0x242)](l[_0x21a33c(0x1dc)],{'children':[l[_0x21a33c(0x1af)](_0x21a33c(0x22f),{'className':_0x21a33c(0x1b4),'children':_0x21a33c(0x221)}),l[_0x21a33c(0x1af)](g[_0x21a33c(0x21f)],{'variant':_0x21a33c(0x1db),'onClick':()=>_0x390bd1[_0x21a33c(0x24f)](),'children':_0x21a33c(0x1f9)})]});}function ee(_0x54db85){var _0x4b67ea=_0x3456c0;const {coordinator:_0x58916c}=_0x54db85;return l[_0x4b67ea(0x242)](l['Fragment'],{'children':[l['jsx'](_0x4b67ea(0x22f),{'className':_0x4b67ea(0x1b4),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x4b67ea(0x1af)](g[_0x4b67ea(0x21f)],{'variant':_0x4b67ea(0x1f0),'onClick':()=>_0x58916c['stopPresenting'](),'children':'Stop\x20presenting'})]});}function te(){var _0x20764c=_0x3456c0;return l[_0x20764c(0x1af)](l[_0x20764c(0x1dc)],{'children':_0x20764c(0x1c0)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x5ce8cb,_0x2dccad,_0x100b20,_0x400395)=>{var _0x2bc35c=_0x3456c0;for(var _0x1f1d58=_0x400395>0x1?void 0x0:_0x400395?ie(_0x2dccad,_0x100b20):_0x2dccad,_0x42e604=_0x5ce8cb[_0x2bc35c(0x1cd)]-0x1,_0x31ce90;_0x42e604>=0x0;_0x42e604--)(_0x31ce90=_0x5ce8cb[_0x42e604])&&(_0x1f1d58=_0x31ce90(_0x1f1d58)||_0x1f1d58);return _0x1f1d58;},L=(_0x529ba1,_0x564db7)=>(_0x804d20,_0x4a107a)=>_0x564db7(_0x804d20,_0x4a107a,_0x529ba1);exports['DesktopLiveShareController']=class extends o[_0x3456c0(0x1fd)]{constructor(_0x6f75d5,_0x53fa0f){var _0x130d9c=_0x3456c0;super(),this[_0x130d9c(0x268)]=_0x6f75d5,this[_0x130d9c(0x28c)]=_0x53fa0f,this[_0x130d9c(0x203)]();}['_mountLiveShare'](){var _0x3a114b=_0x3456c0;this['disposeWithMe'](this[_0x3a114b(0x28c)][_0x3a114b(0x26d)](p[_0x3a114b(0x213)][_0x3a114b(0x26c)],()=>p[_0x3a114b(0x212)](A,this[_0x3a114b(0x268)])));}},exports[_0x3456c0(0x219)]=ne([L(0x0,o[_0x3456c0(0x1f6)](o['Injector'])),L(0x1,p[_0x3456c0(0x1d0)])],exports['DesktopLiveShareController']);function _0xdbb7(){var _0x560788=['11440296FitzOY','_unitID','concat','Inject','unitId','5srhaKP','Start\x20following','SetWorksheetActiveOperation','RxDisposable','getUnitId','Disposable','getInitialStates','_collabSession','next','assign','_fetchOperations','_mountLiveShare','unsubscribe','icon','offline','tag','_handleNewChangeSets','getOwnPropertyDescriptor','forEach','OPERATION','send','_univerInstanceService','set','pipe','extend','_handleOnline','connectInjector','BuiltInUIPart','trim','clsx','_entities','currentColor','CollaborationSessionService','DesktopLiveShareController','status$','getOwnPropertySymbols','executeCommand','_collabSessionService','OFFLINE','Button','DisposableCollection','You\x27re\x20not\x20following\x20the\x20presenter','_reporters','_commandDisposable','LIVESHARE_OPERATION','789790WFrHGX','FOLLOWING','stopPresenting','_handleOffline','ONLINE','Plugin','delete','16FmKRmk','svg','You\x27re\x20following\x20the\x20presenter','div','getMemberID','stopFollowing','292GaTPRs','LIVESHARE_TERMINATE','sheet','PRESENTING','pluginName','getConfig','univer-size-4','5319NckIxN','registerDependencies','then','stringify','use','1em','LIVESHARE_NEW_HOST','_startLiveShareCoordinator','live-share-icon','jsxs','968yvLdqh','presenting','getTypeOfUnitAdded$','evenodd','LiveShareService','function','prototype','merge','disposeWithMe','_config','BehaviorSubject','none','startFollowing','includes','onStarting','CollaborationEvent','operations','Injector','mergeOverrideWithDependencies','Dropdown','children','_status$','_commandService','33msSCQp','UNIVER_LIVE_SHARE_PLUGIN','_beIdle','params','defIds','call','useState','useEffect','IDLE','getValue','_liveShareService','UniverInstanceType','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','_stopPresenting','_injector','className','toString','_sharedOperations','HEADER_MENU','registerComponent','replace','sessionStatus$','13JhFNVm','_stopFollowing','attrs','not-following','data','find','entries','reverse','setConfig','UniverLiveSharePlugin','ICommandService','throttleTime','_handleTerminate','registerInitialStateReporter','onRendered','touchDependencies','onCommandExecuted','event$','asObservable','CommandType','_init','type','LiveShareStatus','getCurrentTypeOfUnit$','symbol','apply','getLiveShareCoordinator','IUniverInstanceService','_uiPartsService','add','mutations','button','has','following','createElement','dispose','jsx','SessionStatus','LiveShareIcon','map','toDisposable','univer-mb-3\x20univer-w-full\x20univer-text-sm','shouldShareOperation','mask','registerSharedOperation','useObservable','298165sgPbiW','requireSession','dispose$','takeUntil','UNIVER_SHEET','forwardRef','_presenter','You\x27are\x20offline.','useRef','_handleNewHost','Subject','tryStartPresenting','displayName','820lojAqZ','SAME_OPERATION_SHARE_INTERVAL','_handleOperation','random','_configService','parseProtocolChangeset','2440218Cecbru','length','indexOf','string','IUIPartsService','NOT_FOLLOWING','LiveShare','presenter','IConfigService','141663ePhAQC','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','UniverCollaborationClientPlugin','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_startFollowing','get','text','Fragment','_status','current','memberID','colorChannel1','init','clear','_startPresenting','defineProperty','0\x200\x2017\x2017','LIVESHARE_FETCH_OPERATIONS','LiveShareController','override','idSuffix','path','Start','UniverIcon','LiveShareCoordinator','subscribe','complete','default','url(#$1','idle'];_0xdbb7=function(){return _0x560788;};return _0xdbb7();}var re=Object[_0x3456c0(0x1e4)],se=Object[_0x3456c0(0x209)],oe=(_0x1349c3,_0x4cac8e,_0x13984d)=>_0x4cac8e in _0x1349c3?re(_0x1349c3,_0x4cac8e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x13984d}):_0x1349c3[_0x4cac8e]=_0x13984d,ae=(_0x452f1a,_0x5589f0,_0xe674ca,_0x140a28)=>{var _0x979933=_0x3456c0;for(var _0x8c535e=_0x140a28>0x1?void 0x0:_0x140a28?se(_0x5589f0,_0xe674ca):_0x5589f0,_0x1ccea9=_0x452f1a[_0x979933(0x1cd)]-0x1,_0x225feb;_0x1ccea9>=0x0;_0x1ccea9--)(_0x225feb=_0x452f1a[_0x1ccea9])&&(_0x8c535e=_0x225feb(_0x8c535e)||_0x8c535e);return _0x8c535e;},N=(_0x37ea12,_0x4e985f)=>(_0x234c4e,_0x50bc84)=>_0x4e985f(_0x234c4e,_0x50bc84,_0x37ea12),T=(_0x3da4dd,_0x1374ae,_0x71f169)=>oe(_0x3da4dd,typeof _0x1374ae!=_0x3456c0(0x288)?_0x1374ae+'':_0x1374ae,_0x71f169);const le=_0x3456c0(0x25b);exports['UniverLiveSharePlugin']=class extends o[_0x3456c0(0x22a)]{constructor(_0x52144e=x,_0x1ee13e,_0x11c6f5){var _0x2e0ff3=_0x3456c0;super(),this[_0x2e0ff3(0x24c)]=_0x52144e,this[_0x2e0ff3(0x268)]=_0x1ee13e,this[_0x2e0ff3(0x1ca)]=_0x11c6f5;const {..._0x8cbc30}=o[_0x2e0ff3(0x24a)]({},x,this['_config']);this[_0x2e0ff3(0x1ca)][_0x2e0ff3(0x278)]($,_0x8cbc30);}[_0x3456c0(0x251)](){var _0x1e718f=_0x3456c0;o[_0x1e718f(0x23a)](this[_0x1e718f(0x268)],o[_0x1e718f(0x255)]([[O],[exports[_0x1e718f(0x1e7)]],[E],[exports[_0x1e718f(0x219)]]],this[_0x1e718f(0x24c)][_0x1e718f(0x1e8)])),o[_0x1e718f(0x27f)](this['_injector'],[[E]]);}[_0x3456c0(0x27e)](){var _0x35dada=_0x3456c0;o[_0x35dada(0x27f)](this[_0x35dada(0x268)],[[exports['DesktopLiveShareController']]]);}},T(exports['UniverLiveSharePlugin'],_0x3456c0(0x285),o[_0x3456c0(0x265)]['UNIVER_UNKNOWN']),T(exports['UniverLiveSharePlugin'],_0x3456c0(0x236),le),exports[_0x3456c0(0x279)]=ae([o['DependentOn'](m[_0x3456c0(0x1d7)]),N(0x1,o['Inject'](o[_0x3456c0(0x254)])),N(0x2,o[_0x3456c0(0x1d4)])],exports['UniverLiveSharePlugin']),exports[_0x3456c0(0x1d2)]=A,exports[_0x3456c0(0x247)]=O,exports[_0x3456c0(0x286)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x99f71f=_0x2f47;(function(_0x363115,_0xbff1db){var _0x5db9c0=_0x2f47,_0x5f446e=_0x363115();while(!![]){try{var _0x15df3b=-parseInt(_0x5db9c0(0x150))/0x1*(parseInt(_0x5db9c0(0x161))/0x2)+parseInt(_0x5db9c0(0x1a7))/0x3+parseInt(_0x5db9c0(0x13d))/0x4+-parseInt(_0x5db9c0(0x185))/0x5+-parseInt(_0x5db9c0(0x18a))/0x6+parseInt(_0x5db9c0(0x1c0))/0x7*(parseInt(_0x5db9c0(0x1cd))/0x8)+-parseInt(_0x5db9c0(0x1c8))/0x9*(parseInt(_0x5db9c0(0x165))/0xa);if(_0x15df3b===_0xbff1db)break;else _0x5f446e['push'](_0x5f446e['shift']());}catch(_0x453a8e){_0x5f446e['push'](_0x5f446e['shift']());}}}(_0x389d,0x8647f));var q=Object['defineProperty'],z=(_0x376849,_0x53524c,_0x170f68)=>_0x53524c in _0x376849?q(_0x376849,_0x53524c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x170f68}):_0x376849[_0x53524c]=_0x170f68,d=(_0xe98a8c,_0x77cbe7,_0x382a4b)=>z(_0xe98a8c,typeof _0x77cbe7!=_0x99f71f(0x1a3)?_0x77cbe7+'':_0x77cbe7,_0x382a4b);import{CollaborationSessionService as _0x4212d6,SessionStatus as _0x4b2aa1,UniverCollaborationClientPlugin as _0x4a8a68}from'@univerjs-pro/collaboration-client';import{Disposable as _0x59f156,toDisposable as _0x3e8155,Inject as _0x5bf50d,IUniverInstanceService as _0x3436e1,Injector as _0x473fc7,IConfigService as _0x3f2bf0,ICommandService as _0x320924,RxDisposable as _0x428bc,UniverInstanceType as _0x5a9822,DisposableCollection as _0x59c941,CommandType as _0x51ef63,DependentOn as _0x34567d,Plugin as _0x176cff,merge as _0xae2b6b,registerDependencies as _0x3ac27d,mergeOverrideWithDependencies as _0x250a49,touchDependencies as _0x25eed6}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x311bff,InsertSheetMutation as _0x3bed17}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x2ab1ad,SetScrollOperation as _0x65b388}from'@univerjs/sheets-ui';import{useDependency as _0x4e95ea,useObservable as _0x574a40,IUIPartsService as _0x359339,BuiltInUIPart as _0xa95625,connectInjector as _0x11d29b}from'@univerjs/ui';import{jsx as _0x2a3f55,jsxs as _0x590551,Fragment as _0x8dd5dc}from'react/jsx-runtime';import{Dropdown as _0x548f32,clsx as _0x449eb0,Button as _0x310295}from'@univerjs/design';import{forwardRef as _0xa501d4,useRef as _0xf0d4a5,createElement as _0x18c11d,useState as _0x137d2a,useEffect as _0x572451}from'react';import{CollaborationEvent as _0x3a2075,parseProtocolChangeset as _0x5e4189}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x57c6d5,Subject as _0x4d9bd9}from'rxjs';function _0x389d(){var _0x2bbf63=['currentColor','getValue','_handleNewHost','clear','override','parse','Start\x20following','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','memberID','find','offline','_sharedOperations','idle','defIds','_collabSessionService','_injector','operations','_mountLiveShare','live-share-icon','_stopPresenting','_status$','_reporters','UNIVER_LIVE_SHARE_PLUGIN','_presenter','mask','idSuffix','unitId','tag','183050GarogW','disposeWithMe','random','stopPresenting','PRESENTING','1009164kRUySn','_status','_handleTerminate','LIVESHARE_TERMINATE','url(#$1','not-following','reverse','presenting','univerjs-icon\x20univerjs-icon-','dispose$','_unitID','NEW_CHANGESETS','init','Start','svg','onCommandExecuted','_uiPartsService','requireSession','startFollowing','use','_entities','getConfig','default','xlink:href','_stopFollowing','symbol','onStarting','button','registerInitialStateReporter','2649516ToiaDJ','_univerInstanceService','status$','getInitialStates','subscribe','pipe','onRendered','then','params','prototype','colorChannel1','entries','fill','_configService','_commandDisposable','dispose','presenter','0\x200\x2017\x2017','end','getTypeOfUnitDisposed$','evenodd','executeCommand','call','_handleOffline','NOT_FOLLOWING','84JZxkJb','forEach','Stop\x20following','UNIVER_SHEET','LIVESHARE_OPERATION','OFFLINE','concat','icon','11302749qpzJQd','getOwnPropertySymbols','_handleNewChangeSets','You\x27are\x20offline.','unsubscribe','637736xWzzqV','LIVESHARE_FETCH_OPERATIONS','pluginName','SAME_OPERATION_SHARE_INTERVAL','current','OPERATION','ONLINE','_fetchOperations','get','length','trim','tryStartPresenting','registerComponent','getCurrentTypeOfUnit$','div','delete','attrs','FOLLOWING','path','data','stringify','LIVESHARE_NEW_HOST','toString','children','indexOf','registerSharedOperation','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_startLiveShareCoordinator','includes','Stop\x20presenting','live-share.config','getTypeOfUnitAdded$','string','1em','asObservable','Present\x20this\x20document','LiveShareIcon','getLiveShareCoordinator','_collabSession','You\x27re\x20following\x20the\x20presenter','1914944VpBOUC','next','_beIdle','getUnitId','_startFollowing','_liveShareService','shouldShareOperation','createInstance','has','set','displayName','_startPresenting','getMemberID','text','send','http://www.w3.org/2000/svg','_handleOperation','className','from','4XMGjAv','mutations','map','setConfig','You\x27re\x20not\x20following\x20the\x20presenter','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LIVESHARE_REQUEST_HOST','extend','stopFollowing','_handleOnline','IDLE','univer-mb-3\x20univer-w-full\x20univer-text-sm','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','add','event$','hasOwnProperty','HEADER_MENU','153916ZIajMF','_commandService','_init','following','10mUVBqp','type','apply','getOwnPropertyDescriptor'];_0x389d=function(){return _0x2bbf63;};return _0x389d();}import{takeUntil as _0xd2f81d,throttleTime as _0x27a38f}from'rxjs/operators';const Oe=_0x99f71f(0x133),T={};class L extends _0x59f156{constructor(){var _0x1a6c44=_0x99f71f;super(...arguments),d(this,_0x1a6c44(0x174),new Set()),d(this,'_reporters',new Set());}[_0x99f71f(0x12e)](_0x5132a4){var _0x295d4e=_0x99f71f;return this[_0x295d4e(0x174)][_0x295d4e(0x15d)](_0x5132a4),_0x3e8155(()=>this['_sharedOperations'][_0x295d4e(0x124)](_0x5132a4));}[_0x99f71f(0x1a6)](_0x4923ea){var _0x56d267=_0x99f71f;return this[_0x56d267(0x17e)][_0x56d267(0x15d)](_0x4923ea),_0x3e8155(()=>this[_0x56d267(0x17e)][_0x56d267(0x124)](_0x4923ea));}['shouldShareOperation'](_0x3e1406){var _0xaa5246=_0x99f71f;return this[_0xaa5246(0x174)][_0xaa5246(0x145)](_0x3e1406);}['getInitialStates'](_0x5cbbd0){var _0x3b93de=_0x99f71f;return Array[_0x3b93de(0x14f)](this[_0x3b93de(0x17e)])[_0x3b93de(0x152)](_0x1e173a=>_0x1e173a(_0x5cbbd0));}}var Ee=Object[_0x99f71f(0x168)],we=(_0x117511,_0x47a023,_0x59f513,_0x57c908)=>{var _0x5bc84c=_0x99f71f;for(var _0x25c548=_0x57c908>0x1?void 0x0:_0x57c908?Ee(_0x47a023,_0x59f513):_0x47a023,_0x48d773=_0x117511[_0x5bc84c(0x1d6)]-0x1,_0x158f85;_0x48d773>=0x0;_0x48d773--)(_0x158f85=_0x117511[_0x48d773])&&(_0x25c548=_0x158f85(_0x25c548)||_0x25c548);return _0x25c548;},Ne=(_0x45b309,_0x331f67)=>(_0xff2d39,_0x1b8cae)=>_0x331f67(_0xff2d39,_0x1b8cae,_0x45b309);let m=class extends _0x59f156{constructor(_0x45b4d3){super(),this['_liveShareService']=_0x45b4d3,this['_init']();}[_0x99f71f(0x163)](){var _0x1b8d9c=_0x99f71f;[_0x2ab1ad['id'],_0x65b388['id'],_0x311bff['id']][_0x1b8d9c(0x1c1)](_0x5d0589=>{var _0x46707a=_0x1b8d9c;this['disposeWithMe'](this[_0x46707a(0x142)][_0x46707a(0x12e)](_0x5d0589));});}};m=we([Ne(0x0,_0x5bf50d(L))],m);var c=function(){var _0x271bd9=_0x99f71f;return c=Object['assign']||function(_0x240a38){var _0x1269c7=_0x2f47;for(var _0x1c7a0c,_0x30691f=0x1,_0x5293db=arguments[_0x1269c7(0x1d6)];_0x30691f<_0x5293db;_0x30691f++){_0x1c7a0c=arguments[_0x30691f];for(var _0x2c9bfc in _0x1c7a0c)Object[_0x1269c7(0x1b0)][_0x1269c7(0x15f)][_0x1269c7(0x1bd)](_0x1c7a0c,_0x2c9bfc)&&(_0x240a38[_0x2c9bfc]=_0x1c7a0c[_0x2c9bfc]);}return _0x240a38;},c[_0x271bd9(0x167)](this,arguments);},Ce=function(_0x1591af,_0x1cae09){var _0x3f4337=_0x99f71f,_0xde99a1={};for(var _0x87bd6c in _0x1591af)Object['prototype']['hasOwnProperty'][_0x3f4337(0x1bd)](_0x1591af,_0x87bd6c)&&_0x1cae09[_0x3f4337(0x12d)](_0x87bd6c)<0x0&&(_0xde99a1[_0x87bd6c]=_0x1591af[_0x87bd6c]);if(_0x1591af!=null&&typeof Object[_0x3f4337(0x1c9)]=='function'){for(var _0x12adac=0x0,_0x87bd6c=Object[_0x3f4337(0x1c9)](_0x1591af);_0x12adac<_0x87bd6c[_0x3f4337(0x1d6)];_0x12adac++)_0x1cae09[_0x3f4337(0x12d)](_0x87bd6c[_0x12adac])<0x0&&Object[_0x3f4337(0x1b0)]['propertyIsEnumerable']['call'](_0x1591af,_0x87bd6c[_0x12adac])&&(_0xde99a1[_0x87bd6c[_0x12adac]]=_0x1591af[_0x87bd6c[_0x12adac]]);}return _0xde99a1;},W=_0xa501d4(function(_0x51b791,_0x140c67){var _0x34fd96=_0x99f71f,_0x1d7752=_0x51b791[_0x34fd96(0x1c7)],_0x297b40=_0x51b791['id'],_0x18df01=_0x51b791[_0x34fd96(0x14e)],_0x4386bb=_0x51b791[_0x34fd96(0x157)],_0x50ffa8=Ce(_0x51b791,[_0x34fd96(0x1c7),'id','className',_0x34fd96(0x157)]),_0x3e1a33=_0x34fd96(0x192)['concat'](_0x297b40,'\x20')[_0x34fd96(0x1c6)](_0x18df01||'')[_0x34fd96(0x1d7)](),_0x2a8d00=_0xf0d4a5('_'['concat'](Le()));return Y(_0x1d7752,''[_0x34fd96(0x1c6)](_0x297b40),{'defIds':_0x1d7752['defIds'],'idSuffix':_0x2a8d00[_0x34fd96(0x1d1)]},c({'ref':_0x140c67,'className':_0x3e1a33},_0x50ffa8),_0x4386bb);});function _0x2f47(_0x4d6962,_0x3a58a4){var _0x389dfd=_0x389d();return _0x2f47=function(_0x2f4777,_0x5460f0){_0x2f4777=_0x2f4777-0x121;var _0x4810e3=_0x389dfd[_0x2f4777];return _0x4810e3;},_0x2f47(_0x4d6962,_0x3a58a4);}function Y(_0x1358d2,_0x2fbd9d,_0x2f25a7,_0x5c4004,_0x19b544){var _0x3b6c3b=_0x99f71f;return _0x18c11d(_0x1358d2[_0x3b6c3b(0x184)],c(c({'key':_0x2fbd9d},De(_0x1358d2,_0x2f25a7,_0x19b544)),_0x5c4004),(xe(_0x1358d2,_0x2f25a7)[_0x3b6c3b(0x12c)]||[])[_0x3b6c3b(0x152)](function(_0x5613f4,_0x24f63c){var _0xe27bd6=_0x3b6c3b;return Y(_0x5613f4,''[_0xe27bd6(0x1c6)](_0x2fbd9d,'-')[_0xe27bd6(0x1c6)](_0x1358d2[_0xe27bd6(0x184)],'-')[_0xe27bd6(0x1c6)](_0x24f63c),_0x2f25a7,void 0x0,_0x19b544);}));}function De(_0x1f8167,_0x2569fe,_0x15ff3d){var _0x2ad2b7=_0x99f71f,_0x4f5e29=c({},_0x1f8167[_0x2ad2b7(0x125)]);_0x15ff3d!=null&&_0x15ff3d[_0x2ad2b7(0x1b1)]&&_0x4f5e29[_0x2ad2b7(0x1b3)]===_0x2ad2b7(0x1b1)&&(_0x4f5e29[_0x2ad2b7(0x1b3)]=_0x15ff3d[_0x2ad2b7(0x1b1)]),_0x1f8167[_0x2ad2b7(0x184)]===_0x2ad2b7(0x181)&&_0x4f5e29['id']&&(_0x4f5e29['id']=_0x4f5e29['id']+_0x2569fe[_0x2ad2b7(0x182)]),Object[_0x2ad2b7(0x1b2)](_0x4f5e29)[_0x2ad2b7(0x1c1)](function(_0x2b1c2a){var _0x100171=_0x2ad2b7,_0x25bbd6=_0x2b1c2a[0x0],_0x4af1b9=_0x2b1c2a[0x1];_0x25bbd6==='mask'&&typeof _0x4af1b9==_0x100171(0x135)&&(_0x4f5e29[_0x25bbd6]=_0x4af1b9['replace'](/url\(#(.*)\)/,'url(#$1'[_0x100171(0x1c6)](_0x2569fe[_0x100171(0x182)],')')));});var _0xdfa0fc=_0x2569fe[_0x2ad2b7(0x176)];return!_0xdfa0fc||_0xdfa0fc[_0x2ad2b7(0x1d6)]===0x0||(_0x1f8167[_0x2ad2b7(0x184)]===_0x2ad2b7(0x19d)&&_0x4f5e29[_0x2ad2b7(0x1a1)]&&(_0x4f5e29[_0x2ad2b7(0x1a1)]=_0x4f5e29[_0x2ad2b7(0x1a1)]+_0x2569fe['idSuffix']),Object[_0x2ad2b7(0x1b2)](_0x4f5e29)[_0x2ad2b7(0x1c1)](function(_0x18ec09){var _0x5d6614=_0x2ad2b7,_0x5d8c5a=_0x18ec09[0x0],_0x138c6e=_0x18ec09[0x1];typeof _0x138c6e=='string'&&(_0x4f5e29[_0x5d8c5a]=_0x138c6e['replace'](/url\(#(.*)\)/,_0x5d6614(0x18e)[_0x5d6614(0x1c6)](_0x2569fe[_0x5d6614(0x182)],')')));})),_0x4f5e29;}function xe(_0x4c8ae5,_0xa8dbb4){var _0x5c9c76=_0x99f71f,_0x4cb83c,_0x23f634=_0xa8dbb4[_0x5c9c76(0x176)];return!_0x23f634||_0x23f634[_0x5c9c76(0x1d6)]===0x0?_0x4c8ae5:_0x4c8ae5[_0x5c9c76(0x184)]==='defs'&&(!((_0x4cb83c=_0x4c8ae5[_0x5c9c76(0x12c)])===null||_0x4cb83c===void 0x0)&&_0x4cb83c[_0x5c9c76(0x1d6)])?c(c({},_0x4c8ae5),{'children':_0x4c8ae5['children'][_0x5c9c76(0x152)](function(_0xf9f2d8){var _0x186734=_0x5c9c76;return typeof _0xf9f2d8[_0x186734(0x125)]['id']=='string'&&_0x23f634&&_0x23f634[_0x186734(0x131)](_0xf9f2d8[_0x186734(0x125)]['id'])?c(c({},_0xf9f2d8),{'attrs':c(c({},_0xf9f2d8['attrs']),{'id':_0xf9f2d8[_0x186734(0x125)]['id']+_0xa8dbb4['idSuffix']})}):_0xf9f2d8;})}):_0x4c8ae5;}function Le(){var _0x438fc8=_0x99f71f;return Math[_0x438fc8(0x187)]()[_0x438fc8(0x12b)](0x24)['substring'](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0x99f71f(0x198),'attrs':{'xmlns':_0x99f71f(0x14c),'fill':'none','viewBox':_0x99f71f(0x1b8),'width':_0x99f71f(0x136),'height':'1em'},'children':[{'tag':_0x99f71f(0x127),'attrs':{'fill':_0x99f71f(0x169),'d':_0x99f71f(0x170)}},{'tag':'path','attrs':{'fill':_0x99f71f(0x169),'d':_0x99f71f(0x15c),'fillRule':_0x99f71f(0x1bb),'clipRule':_0x99f71f(0x1bb)}}]},B=_0xa501d4(function(_0x2fbbca,_0xc09ed4){var _0x5b5ef0=_0x99f71f;return _0x18c11d(W,Object['assign']({},_0x2fbbca,{'id':_0x5b5ef0(0x17b),'ref':_0xc09ed4,'icon':ye}));});B[_0x99f71f(0x147)]=_0x99f71f(0x139);var Re=Object[_0x99f71f(0x168)],Z=(_0x3d4e0a,_0x3d9887,_0x1e91fa,_0x32cd96)=>{for(var _0xebd68b=_0x32cd96>0x1?void 0x0:_0x32cd96?Re(_0x3d9887,_0x1e91fa):_0x3d9887,_0x54d353=_0x3d4e0a['length']-0x1,_0x27b434;_0x54d353>=0x0;_0x54d353--)(_0x27b434=_0x3d4e0a[_0x54d353])&&(_0xebd68b=_0x27b434(_0xebd68b)||_0xebd68b);return _0xebd68b;},f=(_0x38cb60,_0x39aab6)=>(_0x38ec6e,_0xc80cf1)=>_0x39aab6(_0x38ec6e,_0xc80cf1,_0x38cb60);let I=class extends _0x428bc{constructor(_0x274ef2,_0x1eeaaf,_0x18a826){var _0x500fc8=_0x99f71f;super(),d(this,_0x500fc8(0x19e),new Map()),(this[_0x500fc8(0x1a8)]=_0x274ef2,this[_0x500fc8(0x178)]=_0x1eeaaf,this[_0x500fc8(0x177)]=_0x18a826,this[_0x500fc8(0x163)]());}async[_0x99f71f(0x13a)](_0x41236e){var _0x37730c=_0x99f71f;return this[_0x37730c(0x19e)][_0x37730c(0x145)](_0x41236e)||await this['_startLiveShareCoordinator'](_0x41236e),this['_entities'][_0x37730c(0x1d5)](_0x41236e);}[_0x99f71f(0x163)](){var _0x10c990=_0x99f71f;this[_0x10c990(0x1a8)][_0x10c990(0x134)](_0x5a9822[_0x10c990(0x1c3)])['pipe'](_0xd2f81d(this['dispose$']))[_0x10c990(0x1ab)](async _0x7bf1f6=>{var _0x57b45b=_0x10c990;const _0x814651=_0x7bf1f6[_0x57b45b(0x140)]();this[_0x57b45b(0x19e)][_0x57b45b(0x145)](_0x814651)||this[_0x57b45b(0x130)](_0x814651);}),this[_0x10c990(0x1a8)][_0x10c990(0x1ba)](_0x5a9822[_0x10c990(0x1c3)])['pipe'](_0xd2f81d(this[_0x10c990(0x193)]))[_0x10c990(0x1ab)](_0xd297a2=>{var _0x722e1e=_0x10c990;const _0x4b0b50=_0xd297a2[_0x722e1e(0x140)](),_0x55ff24=this['_entities'][_0x722e1e(0x1d5)](_0x4b0b50);_0x55ff24==null||_0x55ff24[_0x722e1e(0x1b6)]();});}async[_0x99f71f(0x130)](_0x50cda1){var _0x47c05e=_0x99f71f;const _0x4aea5d=await this[_0x47c05e(0x177)][_0x47c05e(0x19b)](_0x50cda1),_0x1d8f73=this[_0x47c05e(0x178)][_0x47c05e(0x144)](C,_0x50cda1,_0x4aea5d);return _0x1d8f73[_0x47c05e(0x196)](),this[_0x47c05e(0x19e)][_0x47c05e(0x146)](_0x50cda1,_0x1d8f73),_0x1d8f73;}};I=Z([f(0x0,_0x3436e1),f(0x1,_0x5bf50d(_0x473fc7)),f(0x2,_0x5bf50d(_0x4212d6))],I);var h=(_0x22fe56=>(_0x22fe56[_0x99f71f(0x1c5)]=_0x99f71f(0x173),_0x22fe56['IDLE']=_0x99f71f(0x175),_0x22fe56[_0x99f71f(0x126)]=_0x99f71f(0x164),_0x22fe56['NOT_FOLLOWING']=_0x99f71f(0x18f),_0x22fe56[_0x99f71f(0x189)]='presenting',_0x22fe56))(h||{});const Pe=_0x99f71f(0x1d0),Ae=0xc8;let C=class extends _0x428bc{constructor(_0x99dbc3,_0x4d0c1d,_0x5d78b8,_0x8a207c,_0x851562){var _0x43779a=_0x99f71f;super(),d(this,_0x43779a(0x17d),new _0x57c6d5(_0x43779a(0x175))),d(this,_0x43779a(0x1a9),this[_0x43779a(0x17d)][_0x43779a(0x137)]()),d(this,_0x43779a(0x163),!0x1),d(this,_0x43779a(0x1b5),null),d(this,'_presenter',null),(this[_0x43779a(0x194)]=_0x99dbc3,this['_collabSession']=_0x4d0c1d,this[_0x43779a(0x1b4)]=_0x5d78b8,this[_0x43779a(0x142)]=_0x8a207c,this['_commandService']=_0x851562);}get[_0x99f71f(0x18b)](){var _0x2bd98a=_0x99f71f;return this[_0x2bd98a(0x17d)][_0x2bd98a(0x16a)]();}[_0x99f71f(0x1b6)](){var _0x4c22df=_0x99f71f,_0x4445dc;(_0x4445dc=this[_0x4c22df(0x1b5)])==null||_0x4445dc['dispose'](),this[_0x4c22df(0x17d)][_0x4c22df(0x13e)](_0x4c22df(0x175)),this['_status$']['complete']();}[_0x99f71f(0x196)](){var _0x4d49dd=_0x99f71f;this[_0x4d49dd(0x163)]||(this[_0x4d49dd(0x163)]=!0x0,this[_0x4d49dd(0x13b)]['sessionStatus$']['pipe'](_0xd2f81d(this['dispose$']))['subscribe'](_0x1bc3f3=>{var _0x4aaa33=_0x4d49dd;switch(_0x1bc3f3){case _0x4b2aa1['OFFLINE']:this[_0x4aaa33(0x1be)]();break;case _0x4b2aa1[_0x4aaa33(0x1d3)]:this['_handleOnline']();break;}}),this[_0x4d49dd(0x13b)][_0x4d49dd(0x15e)][_0x4d49dd(0x1ac)](_0xd2f81d(this[_0x4d49dd(0x193)]))[_0x4d49dd(0x1ab)](_0x1ed34c=>{var _0x3c2159=_0x4d49dd;const {eventID:_0x1d4f29}=_0x1ed34c;switch(_0x1d4f29){case _0x3a2075[_0x3c2159(0x12a)]:this[_0x3c2159(0x16b)](_0x1ed34c);break;case _0x3a2075['LIVESHARE_OPERATION']:this['_handleOperation'](_0x1ed34c);break;case _0x3a2075['LIVESHARE_TERMINATE']:this[_0x3c2159(0x18c)]();break;case _0x3a2075[_0x3c2159(0x195)]:this[_0x3c2159(0x1ca)](_0x1ed34c);break;}}));}[_0x99f71f(0x1d8)](){var _0x5d8aca=_0x99f71f;this[_0x5d8aca(0x13b)][_0x5d8aca(0x14b)]({'eventID':_0x3a2075[_0x5d8aca(0x156)],'data':{'unitID':this['_unitID'],'userID':this[_0x5d8aca(0x13b)]['getMemberID']()}},this['_unitID']);}[_0x99f71f(0x188)](){var _0x128d60=_0x99f71f;this[_0x128d60(0x18b)]==='presenting'&&(this[_0x128d60(0x17d)][_0x128d60(0x13e)](_0x128d60(0x175)),this[_0x128d60(0x13b)]['send']({'eventID':_0x3a2075[_0x128d60(0x18d)],'data':{'unitID':this[_0x128d60(0x194)]}},this[_0x128d60(0x194)]));}[_0x99f71f(0x19c)](){var _0x5e7dfa=_0x99f71f;this[_0x5e7dfa(0x18b)]==='not-following'&&(this[_0x5e7dfa(0x17d)][_0x5e7dfa(0x13e)](_0x5e7dfa(0x164)),this[_0x5e7dfa(0x141)]());}['stopFollowing'](){var _0x164376=_0x99f71f;this[_0x164376(0x18b)]===_0x164376(0x164)&&this['_stopFollowing']();}[_0x99f71f(0x16b)](_0x58e331){var _0x4704a5=_0x99f71f;const {presenter:_0x7c9219}=_0x58e331[_0x4704a5(0x128)],_0x4f7e26=this[_0x4704a5(0x13b)][_0x4704a5(0x149)]();this['_presenter']=_0x7c9219,_0x7c9219===_0x4f7e26?(this[_0x4704a5(0x1a2)](),this[_0x4704a5(0x148)]()):this[_0x4704a5(0x18b)]!==_0x4704a5(0x18f)&&(this[_0x4704a5(0x17c)](),this[_0x4704a5(0x141)]());}[_0x99f71f(0x1d4)](){var _0x40c0b3=_0x99f71f;const _0x1f520c={'eventID':_0x3a2075[_0x40c0b3(0x1ce)]};this[_0x40c0b3(0x13b)][_0x40c0b3(0x14b)](_0x1f520c,this[_0x40c0b3(0x194)]);}[_0x99f71f(0x18c)](){var _0x592352=_0x99f71f;this['_presenter']=null,this[_0x592352(0x18b)]!==_0x592352(0x191)&&this[_0x592352(0x13f)]();}[_0x99f71f(0x1ca)](_0x6ee1bb){var _0x279720=_0x99f71f;if(this[_0x279720(0x18b)]===_0x279720(0x164)&&this[_0x279720(0x180)]===_0x6ee1bb[_0x279720(0x128)][_0x279720(0x171)]){const _0x567dc3=_0x5e4189(_0x6ee1bb['data'])[_0x279720(0x151)][_0x279720(0x190)]()[_0x279720(0x172)](_0xfabef3=>_0xfabef3['id']===_0x3bed17['id']);if(_0x567dc3){const _0x317ea4=_0x567dc3[_0x279720(0x1af)][_0x279720(0x183)],_0x77e3a5=_0x567dc3[_0x279720(0x1af)]['sheet']['id'];setTimeout(()=>{var _0x203c23=_0x279720;this[_0x203c23(0x162)]['executeCommand'](_0x311bff['id'],{'unitId':_0x317ea4,'subUnitId':_0x77e3a5},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x118db8=_0x99f71f;this[_0x118db8(0x17d)][_0x118db8(0x13e)](_0x118db8(0x191));const _0x2ea694=new Map(),_0x1513e2=this[_0x118db8(0x1b5)]=new _0x59c941();_0x1513e2[_0x118db8(0x15d)](_0x3e8155(()=>{var _0x190bd4=_0x118db8;_0x2ea694[_0x190bd4(0x1c1)](_0x134708=>_0x134708['complete']()),_0x2ea694[_0x190bd4(0x16c)]();})),_0x1513e2[_0x118db8(0x15d)](this['_commandService'][_0x118db8(0x199)](_0x1ad783=>{var _0x3598e7=_0x118db8,_0x46b851;if(_0x1ad783['type']!==_0x51ef63[_0x3598e7(0x1d2)]||!this[_0x3598e7(0x142)][_0x3598e7(0x143)](_0x1ad783['id']))return;const {id:_0x4b426b}=_0x1ad783;let _0x13c581;_0x2ea694[_0x3598e7(0x145)](_0x4b426b)?_0x13c581=_0x2ea694[_0x3598e7(0x1d5)](_0x4b426b):(_0x13c581=new _0x4d9bd9(),_0x2ea694['set'](_0x4b426b,_0x13c581),_0x13c581[_0x3598e7(0x1ac)](_0x27a38f((_0x46b851=this[_0x3598e7(0x1b4)][_0x3598e7(0x19f)](Pe))!=null?_0x46b851:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3598e7(0x1ab)](_0x22b627=>{var _0x8c67ff=_0x3598e7;this[_0x8c67ff(0x13b)]['send']({'eventID':_0x3a2075[_0x8c67ff(0x1c4)],'data':{'unitID':this[_0x8c67ff(0x194)],'operations':{[_0x22b627['id']]:{'id':_0x22b627['id'],'params':JSON[_0x8c67ff(0x129)](_0x22b627['params'])}}}},this[_0x8c67ff(0x194)]);})),_0x13c581[_0x3598e7(0x13e)](_0x1ad783);})),this['_liveShareService'][_0x118db8(0x1aa)](this['_unitID'])[_0x118db8(0x1c1)](_0x162667=>this[_0x118db8(0x13b)][_0x118db8(0x14b)]({'eventID':_0x3a2075['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x118db8(0x194)],'operations':{[_0x162667['id']]:{'id':_0x162667['id'],'params':JSON[_0x118db8(0x129)](_0x162667[_0x118db8(0x1af)])}}}},this[_0x118db8(0x194)]));}['_stopPresenting'](){var _0x37255f=_0x99f71f,_0x143a38;this[_0x37255f(0x17d)][_0x37255f(0x13e)](_0x37255f(0x175)),(_0x143a38=this[_0x37255f(0x1b5)])==null||_0x143a38[_0x37255f(0x1b6)](),this[_0x37255f(0x1b5)]=null;}[_0x99f71f(0x141)](){var _0x7ac91=_0x99f71f,_0x4f9220;(_0x4f9220=this[_0x7ac91(0x1b5)])==null||_0x4f9220[_0x7ac91(0x1b6)](),this[_0x7ac91(0x17d)][_0x7ac91(0x13e)]('following');}['_beIdle'](){var _0x5f159b=_0x99f71f,_0xe64ab7;this[_0x5f159b(0x17d)]['next']('idle'),(_0xe64ab7=this[_0x5f159b(0x1b5)])==null||_0xe64ab7['dispose'](),this['_commandDisposable']=null;}[_0x99f71f(0x1a2)](){var _0x52ff65=_0x99f71f,_0x2b70a1;this[_0x52ff65(0x17d)][_0x52ff65(0x13e)](_0x52ff65(0x18f)),(_0x2b70a1=this[_0x52ff65(0x1b5)])==null||_0x2b70a1[_0x52ff65(0x1b6)]();}[_0x99f71f(0x14d)](_0x5d4285){var _0x43164d=_0x99f71f;if(['presenting',_0x43164d(0x18f),'offline']['includes'](this[_0x43164d(0x18b)])||!_0x5d4285[_0x43164d(0x128)][_0x43164d(0x1b7)]||_0x5d4285[_0x43164d(0x128)][_0x43164d(0x1b7)]===this[_0x43164d(0x13b)][_0x43164d(0x149)]())return;this['_status']===_0x43164d(0x175)&&this['_startFollowing']();const _0x1f38e9=_0x5d4285[_0x43164d(0x128)][_0x43164d(0x179)];Object['values'](_0x1f38e9)[_0x43164d(0x1c1)](_0x671579=>{var _0x42f709=_0x43164d;this['_commandService'][_0x42f709(0x1bc)](_0x671579['id'],_0x671579[_0x42f709(0x1af)]?JSON[_0x42f709(0x16e)](_0x671579[_0x42f709(0x1af)]):null,{'fromCollab':!0x0});});}[_0x99f71f(0x1be)](){var _0x5d5d4f=_0x99f71f,_0x4f15f7;this['_status$'][_0x5d5d4f(0x13e)](_0x5d5d4f(0x173)),(_0x4f15f7=this[_0x5d5d4f(0x1b5)])==null||_0x4f15f7[_0x5d5d4f(0x1b6)]();}[_0x99f71f(0x159)](){var _0x132d1d=_0x99f71f;this[_0x132d1d(0x17d)]['next'](_0x132d1d(0x175)),this[_0x132d1d(0x1d4)]();}};C=Z([f(0x2,_0x3f2bf0),f(0x3,_0x5bf50d(L)),f(0x4,_0x320924)],C);function Te(){var _0x13ee24=_0x99f71f;const _0x4b5106=_0x4e95ea(I),_0x10a38b=_0x4e95ea(_0x3436e1),_0x56e939=_0x574a40(()=>_0x10a38b[_0x13ee24(0x122)](_0x5a9822[_0x13ee24(0x1c3)]),void 0x0,!0x1,[]),[_0x368e3a,_0x576e10]=_0x137d2a(null),[_0x9f95c6,_0x1994a3]=_0x137d2a(h[_0x13ee24(0x15a)]),_0x242c83=_0xf0d4a5(null);return _0x572451(()=>(_0x56e939&&_0x4b5106['getLiveShareCoordinator'](_0x56e939[_0x13ee24(0x140)]())[_0x13ee24(0x1ae)](_0x5702ba=>{var _0x33538e=_0x13ee24;_0x576e10(_0x5702ba),_0x242c83[_0x33538e(0x1d1)]=_0x5702ba[_0x33538e(0x1a9)][_0x33538e(0x1ab)](_0x9b0a2=>{_0x1994a3(_0x9b0a2);});}),()=>{var _0x31af95=_0x13ee24,_0x4d52a1;(_0x4d52a1=_0x242c83[_0x31af95(0x1d1)])==null||_0x4d52a1[_0x31af95(0x1cc)](),_0x242c83['current']=null;}),[_0x56e939,_0x4b5106]),_0x368e3a?_0x2a3f55(_0x548f32,{'align':_0x13ee24(0x1b9),'disabled':_0x9f95c6===h[_0x13ee24(0x1c5)],'className':_0x13ee24(0x12f),'overlay':_0x2a3f55($e,{'status':_0x9f95c6,'coordinator':_0x368e3a}),'children':_0x2a3f55('button',{'className':_0x449eb0(_0x13ee24(0x155),{'univer-cursor-not-allowed':_0x9f95c6===h[_0x13ee24(0x1c5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x9f95c6!==h[_0x13ee24(0x1c5)]}),'type':_0x13ee24(0x1a5),'children':_0x2a3f55(B,{'className':'univer-size-4'})})}):null;}function $e(_0x49f78c){var _0x3dc0f9=_0x99f71f;const {status:_0x549e2e,coordinator:_0x1ab40a}=_0x49f78c;switch(_0x549e2e){case h[_0x3dc0f9(0x15a)]:return _0x2a3f55(Fe,{'coordinator':_0x1ab40a});case h['FOLLOWING']:return _0x2a3f55(He,{'coordinator':_0x1ab40a});case h[_0x3dc0f9(0x1bf)]:return _0x2a3f55(je,{'coordinator':_0x1ab40a});case h[_0x3dc0f9(0x1c5)]:return _0x2a3f55(Ve,{});case h[_0x3dc0f9(0x189)]:return _0x2a3f55(Ue,{'coordinator':_0x1ab40a});default:return null;}}function Fe(_0x2ed9f3){var _0x384693=_0x99f71f;const {coordinator:_0x2f4e76}=_0x2ed9f3;return _0x590551(_0x8dd5dc,{'children':[_0x2a3f55(_0x384693(0x123),{'className':_0x384693(0x15b),'children':_0x384693(0x138)}),_0x2a3f55(_0x310295,{'onClick':()=>_0x2f4e76[_0x384693(0x1d8)](),'children':_0x384693(0x197)})]});}function He(_0x27945f){var _0x37e301=_0x99f71f;const {coordinator:_0x4ec7d3}=_0x27945f;return _0x590551(_0x8dd5dc,{'children':[_0x2a3f55(_0x37e301(0x123),{'className':_0x37e301(0x15b),'children':_0x37e301(0x13c)}),_0x2a3f55(_0x310295,{'onClick':()=>_0x4ec7d3[_0x37e301(0x158)](),'children':_0x37e301(0x1c2)})]});}function je(_0x4c3abf){var _0x10124c=_0x99f71f;const {coordinator:_0x17ce5d}=_0x4c3abf;return _0x590551(_0x8dd5dc,{'children':[_0x2a3f55(_0x10124c(0x123),{'className':_0x10124c(0x15b),'children':_0x10124c(0x154)}),_0x2a3f55(_0x310295,{'variant':_0x10124c(0x14a),'onClick':()=>_0x17ce5d[_0x10124c(0x19c)](),'children':_0x10124c(0x16f)})]});}function Ue(_0x268a30){var _0x54c859=_0x99f71f;const {coordinator:_0x34aba3}=_0x268a30;return _0x590551(_0x8dd5dc,{'children':[_0x2a3f55(_0x54c859(0x123),{'className':_0x54c859(0x15b),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x2a3f55(_0x310295,{'variant':_0x54c859(0x1a0),'onClick':()=>_0x34aba3[_0x54c859(0x188)](),'children':_0x54c859(0x132)})]});}function Ve(){var _0x3be389=_0x99f71f;return _0x2a3f55(_0x8dd5dc,{'children':_0x3be389(0x1cb)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x48d924,_0x399bb8,_0x314bfd,_0x2105a7)=>{for(var _0x3840fa=_0x2105a7>0x1?void 0x0:_0x2105a7?Me(_0x399bb8,_0x314bfd):_0x399bb8,_0x5efbbe=_0x48d924['length']-0x1,_0x438219;_0x5efbbe>=0x0;_0x5efbbe--)(_0x438219=_0x48d924[_0x5efbbe])&&(_0x3840fa=_0x438219(_0x3840fa)||_0x3840fa);return _0x3840fa;},$=(_0x45c252,_0x307f9b)=>(_0x4b9ff1,_0x306e6a)=>_0x307f9b(_0x4b9ff1,_0x306e6a,_0x45c252);let b=class extends _0x59f156{constructor(_0x26d55f,_0x4c270c){var _0x550b07=_0x99f71f;super(),this[_0x550b07(0x178)]=_0x26d55f,this[_0x550b07(0x19a)]=_0x4c270c,this[_0x550b07(0x17a)]();}['_mountLiveShare'](){var _0x5ddb1e=_0x99f71f;this[_0x5ddb1e(0x186)](this[_0x5ddb1e(0x19a)][_0x5ddb1e(0x121)](_0xa95625[_0x5ddb1e(0x160)],()=>_0x11d29b(Te,this[_0x5ddb1e(0x178)])));}};b=ke([$(0x0,_0x5bf50d(_0x473fc7)),$(0x1,_0x359339)],b);var Ge=Object['defineProperty'],We=Object['getOwnPropertyDescriptor'],Ye=(_0x1bce5a,_0xbcbf3,_0x185b0d)=>_0xbcbf3 in _0x1bce5a?Ge(_0x1bce5a,_0xbcbf3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x185b0d}):_0x1bce5a[_0xbcbf3]=_0x185b0d,Be=(_0x9a1753,_0x118464,_0x38683e,_0x2a9f63)=>{var _0x31da93=_0x99f71f;for(var _0x4cacaf=_0x2a9f63>0x1?void 0x0:_0x2a9f63?We(_0x118464,_0x38683e):_0x118464,_0x2c44cf=_0x9a1753[_0x31da93(0x1d6)]-0x1,_0x2b0802;_0x2c44cf>=0x0;_0x2c44cf--)(_0x2b0802=_0x9a1753[_0x2c44cf])&&(_0x4cacaf=_0x2b0802(_0x4cacaf)||_0x4cacaf);return _0x4cacaf;},F=(_0x1fe0dd,_0x32e7c7)=>(_0x58e9cc,_0x52e7d0)=>_0x32e7c7(_0x58e9cc,_0x52e7d0,_0x1fe0dd),J=(_0x521c6d,_0x11d7bf,_0x5b46d9)=>Ye(_0x521c6d,typeof _0x11d7bf!='symbol'?_0x11d7bf+'':_0x11d7bf,_0x5b46d9);const Ze=_0x99f71f(0x17f);let O=class extends _0x176cff{constructor(_0x526c39=T,_0x102c8e,_0x3c6765){var _0x4adc01=_0x99f71f;super(),this['_config']=_0x526c39,this[_0x4adc01(0x178)]=_0x102c8e,this[_0x4adc01(0x1b4)]=_0x3c6765;const {..._0x11d4e3}=_0xae2b6b({},T,this['_config']);this['_configService'][_0x4adc01(0x153)](Oe,_0x11d4e3);}[_0x99f71f(0x1a4)](){var _0x366f57=_0x99f71f;_0x3ac27d(this['_injector'],_0x250a49([[L],[I],[m],[b]],this['_config'][_0x366f57(0x16d)])),_0x25eed6(this['_injector'],[[m]]);}[_0x99f71f(0x1ad)](){var _0x244d38=_0x99f71f;_0x25eed6(this[_0x244d38(0x178)],[[b]]);}};J(O,_0x99f71f(0x166),_0x5a9822['UNIVER_UNKNOWN']),J(O,_0x99f71f(0x1cf),Ze),O=Be([_0x34567d(_0x4a8a68),F(0x1,_0x5bf50d(_0x473fc7)),F(0x2,_0x3f2bf0)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x20e263=_0x3185;(function(_0x3abcc1,_0x452f8e){var _0xba6fa8=_0x3185,_0x3819dc=_0x3abcc1();while(!![]){try{var _0x8939a8=parseInt(_0xba6fa8(0xcf))/0x1+parseInt(_0xba6fa8(0x106))/0x2+-parseInt(_0xba6fa8(0x118))/0x3*(parseInt(_0xba6fa8(0x101))/0x4)+-parseInt(_0xba6fa8(0xdf))/0x5+-parseInt(_0xba6fa8(0x91))/0x6+-parseInt(_0xba6fa8(0x99))/0x7+parseInt(_0xba6fa8(0x93))/0x8;if(_0x8939a8===_0x452f8e)break;else _0x3819dc['push'](_0x3819dc['shift']());}catch(_0x21996c){_0x3819dc['push'](_0x3819dc['shift']());}}}(_0x4966,0x1d93b));var q=Object[_0x20e263(0xb5)],z=(_0x467f91,_0x4259ae,_0x49f6db)=>_0x4259ae in _0x467f91?q(_0x467f91,_0x4259ae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49f6db}):_0x467f91[_0x4259ae]=_0x49f6db,d=(_0x169ea9,_0x77f2dd,_0x21970b)=>z(_0x169ea9,typeof _0x77f2dd!=_0x20e263(0xd1)?_0x77f2dd+'':_0x77f2dd,_0x21970b);function _0x4966(){var _0x16bf78=['getOwnPropertyDescriptor','send','propertyIsEnumerable','Present\x20this\x20document','mutations','dispose','registerInitialStateReporter','reverse','init','className','_uiPartsService','Stop\x20following','4bVMNyI','default','setConfig','registerSharedOperation','concat','356890pZFxsp','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','attrs','executeCommand','disposeWithMe','LIVESHARE_FETCH_OPERATIONS','_liveShareService','LiveShareIcon','_init','subscribe','_stopFollowing','function','url(#$1','shouldShareOperation','_stopPresenting','data','call','extend','522747TaPqtN','has','replace','_handleOffline','_sharedOperations','not-following','button','asObservable','1em','_startFollowing','stringify','apply','OFFLINE','Start','presenter','displayName','getLiveShareCoordinator','PRESENTING','getConfig','operations','getTypeOfUnitDisposed$','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','idle','UniverIcon','xlink:href','includes','NOT_FOLLOWING','find','_beIdle','text','icon','mask','FOLLOWING','div','add','You\x27are\x20offline.','_handleOnline','_mountLiveShare','pipe','next','assign','http://www.w3.org/2000/svg','958002OFIUSp','dispose$','4400456tWSnKs','_status','delete','getOwnPropertySymbols','_injector','_startLiveShareCoordinator','1521786UfmFry','presenting','You\x27re\x20presenting\x20the\x20document','_commandDisposable','_entities','parse','tryStartPresenting','NEW_CHANGESETS','length','colorChannel1','live-share.config','OPERATION','offline','stopFollowing','startFollowing','_presenter','_fetchOperations','onCommandExecuted','LIVESHARE_OPERATION','toString','onRendered','fill','values','unsubscribe','following','Start\x20following','use','_collabSession','defineProperty','children','_commandService','prototype','onStarting','LIVESHARE_REQUEST_HOST','stopPresenting','params','LIVESHARE_NEW_HOST','idSuffix','IDLE','_startPresenting','memberID','path','current','live-share-icon','random','type','UNIVER_LIVE_SHARE_PLUGIN','getMemberID','univer-size-4','status$','HEADER_MENU','end','univer-mb-3\x20univer-w-full\x20univer-text-sm','substring','132575oUZqzd','entries','symbol','override','hasOwnProperty','_unitID','pluginName','string','evenodd','_configService','getInitialStates','complete','getUnitId','tag','_reporters','_config','943080LtxteK','You\x27re\x20following\x20the\x20presenter','set','indexOf','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_status$','currentColor','map','get','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','getValue','_handleNewHost','trim','forEach','_univerInstanceService','defIds','_handleTerminate','none','LIVESHARE_TERMINATE','then','_handleNewChangeSets','SAME_OPERATION_SHARE_INTERVAL'];_0x4966=function(){return _0x16bf78;};return _0x4966();}import{CollaborationSessionService as _0x4fba1b,SessionStatus as _0x2ac890,UniverCollaborationClientPlugin as _0x2e501b}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4235cb,toDisposable as _0x28d059,Inject as _0x477829,IUniverInstanceService as _0x2a2538,Injector as _0x596e84,IConfigService as _0x3dbfad,ICommandService as _0x16ca88,RxDisposable as _0x15a336,UniverInstanceType as _0x923bcb,DisposableCollection as _0x4602b7,CommandType as _0x54c29a,DependentOn as _0x3828c9,Plugin as _0x2e0281,merge as _0x1071d7,registerDependencies as _0x13ef7a,mergeOverrideWithDependencies as _0x1011dd,touchDependencies as _0x444cf7}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x17f582,InsertSheetMutation as _0x2e6a01}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x3334e3,SetScrollOperation as _0x294b80}from'@univerjs/sheets-ui';import{useDependency as _0x541ea5,useObservable as _0x478313,IUIPartsService as _0x240a99,BuiltInUIPart as _0x36dfa4,connectInjector as _0x39b9e0}from'@univerjs/ui';import{jsx as _0x19fc7b,jsxs as _0x22186f,Fragment as _0x47aa9a}from'react/jsx-runtime';import{Dropdown as _0x367720,clsx as _0x17d479,Button as _0x6ffcc8}from'@univerjs/design';import{forwardRef as _0x4578d8,useRef as _0x4bb260,createElement as _0x567312,useState as _0xf852c6,useEffect as _0x334c0f}from'react';import{CollaborationEvent as _0x3d0f98,parseProtocolChangeset as _0x433ee0}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x4de41f,Subject as _0x18dcc9}from'rxjs';import{takeUntil as _0xa77adc,throttleTime as _0x4b2015}from'rxjs/operators';const Oe=_0x20e263(0xa3),T={};class L extends _0x4235cb{constructor(){var _0x59ee94=_0x20e263;super(...arguments),d(this,_0x59ee94(0x11c),new Set()),d(this,_0x59ee94(0xdd),new Set());}[_0x20e263(0x104)](_0x248617){var _0x5bcaff=_0x20e263;return this[_0x5bcaff(0x11c)][_0x5bcaff(0x13a)](_0x248617),_0x28d059(()=>this[_0x5bcaff(0x11c)][_0x5bcaff(0x95)](_0x248617));}[_0x20e263(0xfb)](_0x569b1e){var _0x497786=_0x20e263;return this[_0x497786(0xdd)][_0x497786(0x13a)](_0x569b1e),_0x28d059(()=>this[_0x497786(0xdd)][_0x497786(0x95)](_0x569b1e));}['shouldShareOperation'](_0x5d6e63){var _0x45a49b=_0x20e263;return this[_0x45a49b(0x11c)][_0x45a49b(0x119)](_0x5d6e63);}[_0x20e263(0xd9)](_0x520cd2){var _0x150059=_0x20e263;return Array['from'](this[_0x150059(0xdd)])[_0x150059(0xe6)](_0x4a1398=>_0x4a1398(_0x520cd2));}}var Ee=Object[_0x20e263(0xf5)],we=(_0x5d88ca,_0x1911d8,_0x4842f3,_0x247748)=>{var _0x12e3a6=_0x20e263;for(var _0x3272a6=_0x247748>0x1?void 0x0:_0x247748?Ee(_0x1911d8,_0x4842f3):_0x1911d8,_0x37dde6=_0x5d88ca[_0x12e3a6(0xa1)]-0x1,_0x2c7948;_0x37dde6>=0x0;_0x37dde6--)(_0x2c7948=_0x5d88ca[_0x37dde6])&&(_0x3272a6=_0x2c7948(_0x3272a6)||_0x3272a6);return _0x3272a6;},Ne=(_0x533b12,_0x1eb74f)=>(_0x5d07d2,_0xc42c6e)=>_0x1eb74f(_0x5d07d2,_0xc42c6e,_0x533b12);let m=class extends _0x4235cb{constructor(_0x55aa4a){var _0x5a3dad=_0x20e263;super(),this[_0x5a3dad(0x10c)]=_0x55aa4a,this[_0x5a3dad(0x10e)]();}[_0x20e263(0x10e)](){var _0x2c4a77=_0x20e263;[_0x3334e3['id'],_0x294b80['id'],_0x17f582['id']][_0x2c4a77(0xec)](_0x555807=>{var _0x1c5345=_0x2c4a77;this[_0x1c5345(0x10a)](this[_0x1c5345(0x10c)][_0x1c5345(0x104)](_0x555807));});}};m=we([Ne(0x0,_0x477829(L))],m);var c=function(){var _0x171795=_0x20e263;return c=Object[_0x171795(0x8f)]||function(_0x5ae389){var _0x4180d2=_0x171795;for(var _0x12cc8d,_0x5f57fb=0x1,_0x197941=arguments[_0x4180d2(0xa1)];_0x5f57fb<_0x197941;_0x5f57fb++){_0x12cc8d=arguments[_0x5f57fb];for(var _0x2db896 in _0x12cc8d)Object[_0x4180d2(0xb8)][_0x4180d2(0xd3)]['call'](_0x12cc8d,_0x2db896)&&(_0x5ae389[_0x2db896]=_0x12cc8d[_0x2db896]);}return _0x5ae389;},c[_0x171795(0x123)](this,arguments);},Ce=function(_0x1295f6,_0x237520){var _0x53d7f3=_0x20e263,_0x270794={};for(var _0x3cdc53 in _0x1295f6)Object[_0x53d7f3(0xb8)][_0x53d7f3(0xd3)]['call'](_0x1295f6,_0x3cdc53)&&_0x237520[_0x53d7f3(0xe2)](_0x3cdc53)<0x0&&(_0x270794[_0x3cdc53]=_0x1295f6[_0x3cdc53]);if(_0x1295f6!=null&&typeof Object[_0x53d7f3(0x96)]==_0x53d7f3(0x111)){for(var _0x6c1e38=0x0,_0x3cdc53=Object[_0x53d7f3(0x96)](_0x1295f6);_0x6c1e38<_0x3cdc53[_0x53d7f3(0xa1)];_0x6c1e38++)_0x237520['indexOf'](_0x3cdc53[_0x6c1e38])<0x0&&Object[_0x53d7f3(0xb8)][_0x53d7f3(0xf7)][_0x53d7f3(0x116)](_0x1295f6,_0x3cdc53[_0x6c1e38])&&(_0x270794[_0x3cdc53[_0x6c1e38]]=_0x1295f6[_0x3cdc53[_0x6c1e38]]);}return _0x270794;},W=_0x4578d8(function(_0x414349,_0x2038d0){var _0x56bba9=_0x20e263,_0x2329d9=_0x414349['icon'],_0x344c75=_0x414349['id'],_0x547beb=_0x414349[_0x56bba9(0xfe)],_0x414ac9=_0x414349['extend'],_0x3dede0=Ce(_0x414349,[_0x56bba9(0x136),'id','className',_0x56bba9(0x117)]),_0x15113e='univerjs-icon\x20univerjs-icon-'[_0x56bba9(0x105)](_0x344c75,'\x20')[_0x56bba9(0x105)](_0x547beb||'')[_0x56bba9(0xeb)](),_0x45dc83=_0x4bb260('_'['concat'](Le()));return Y(_0x2329d9,''[_0x56bba9(0x105)](_0x344c75),{'defIds':_0x2329d9[_0x56bba9(0xee)],'idSuffix':_0x45dc83[_0x56bba9(0xc3)]},c({'ref':_0x2038d0,'className':_0x15113e},_0x3dede0),_0x414ac9);});function Y(_0x4fc672,_0xe83d94,_0x22e47c,_0x21701e,_0x4039bc){var _0x38b22d=_0x20e263;return _0x567312(_0x4fc672[_0x38b22d(0xdc)],c(c({'key':_0xe83d94},De(_0x4fc672,_0x22e47c,_0x4039bc)),_0x21701e),(xe(_0x4fc672,_0x22e47c)[_0x38b22d(0xb6)]||[])['map'](function(_0xf49e57,_0x4d8fb9){var _0x374044=_0x38b22d;return Y(_0xf49e57,''[_0x374044(0x105)](_0xe83d94,'-')[_0x374044(0x105)](_0x4fc672[_0x374044(0xdc)],'-')[_0x374044(0x105)](_0x4d8fb9),_0x22e47c,void 0x0,_0x4039bc);}));}function De(_0x43c1de,_0x36183e,_0x455da8){var _0xb1dc6e=_0x20e263,_0x1bd5a0=c({},_0x43c1de[_0xb1dc6e(0x108)]);_0x455da8!=null&&_0x455da8[_0xb1dc6e(0xa2)]&&_0x1bd5a0[_0xb1dc6e(0xae)]==='colorChannel1'&&(_0x1bd5a0[_0xb1dc6e(0xae)]=_0x455da8['colorChannel1']),_0x43c1de[_0xb1dc6e(0xdc)]===_0xb1dc6e(0x137)&&_0x1bd5a0['id']&&(_0x1bd5a0['id']=_0x1bd5a0['id']+_0x36183e['idSuffix']),Object[_0xb1dc6e(0xd0)](_0x1bd5a0)[_0xb1dc6e(0xec)](function(_0x327fdb){var _0x34ed96=_0xb1dc6e,_0x1a12c8=_0x327fdb[0x0],_0x188875=_0x327fdb[0x1];_0x1a12c8==='mask'&&typeof _0x188875==_0x34ed96(0xd6)&&(_0x1bd5a0[_0x1a12c8]=_0x188875['replace'](/url\(#(.*)\)/,_0x34ed96(0x112)[_0x34ed96(0x105)](_0x36183e[_0x34ed96(0xbe)],')')));});var _0x3de541=_0x36183e[_0xb1dc6e(0xee)];return!_0x3de541||_0x3de541[_0xb1dc6e(0xa1)]===0x0||(_0x43c1de[_0xb1dc6e(0xdc)]===_0xb1dc6e(0xb3)&&_0x1bd5a0[_0xb1dc6e(0x130)]&&(_0x1bd5a0[_0xb1dc6e(0x130)]=_0x1bd5a0[_0xb1dc6e(0x130)]+_0x36183e['idSuffix']),Object[_0xb1dc6e(0xd0)](_0x1bd5a0)[_0xb1dc6e(0xec)](function(_0x15eee5){var _0x277b8f=_0xb1dc6e,_0x1f64db=_0x15eee5[0x0],_0x189d75=_0x15eee5[0x1];typeof _0x189d75==_0x277b8f(0xd6)&&(_0x1bd5a0[_0x1f64db]=_0x189d75[_0x277b8f(0x11a)](/url\(#(.*)\)/,_0x277b8f(0x112)[_0x277b8f(0x105)](_0x36183e[_0x277b8f(0xbe)],')')));})),_0x1bd5a0;}function xe(_0x462caa,_0x331370){var _0x11f2cd=_0x20e263,_0x4f8e53,_0x3925d4=_0x331370[_0x11f2cd(0xee)];return!_0x3925d4||_0x3925d4['length']===0x0?_0x462caa:_0x462caa['tag']==='defs'&&(!((_0x4f8e53=_0x462caa[_0x11f2cd(0xb6)])===null||_0x4f8e53===void 0x0)&&_0x4f8e53[_0x11f2cd(0xa1)])?c(c({},_0x462caa),{'children':_0x462caa[_0x11f2cd(0xb6)]['map'](function(_0xabcda){var _0x19cb7f=_0x11f2cd;return typeof _0xabcda['attrs']['id']==_0x19cb7f(0xd6)&&_0x3925d4&&_0x3925d4['includes'](_0xabcda[_0x19cb7f(0x108)]['id'])?c(c({},_0xabcda),{'attrs':c(c({},_0xabcda[_0x19cb7f(0x108)]),{'id':_0xabcda[_0x19cb7f(0x108)]['id']+_0x331370[_0x19cb7f(0xbe)]})}):_0xabcda;})}):_0x462caa;}function Le(){var _0x363c95=_0x20e263;return Math[_0x363c95(0xc5)]()[_0x363c95(0xac)](0x24)[_0x363c95(0xce)](0x2,0x8);}W[_0x20e263(0x127)]=_0x20e263(0x12f);var ye={'tag':'svg','attrs':{'xmlns':_0x20e263(0x90),'fill':_0x20e263(0xf0),'viewBox':'0\x200\x2017\x2017','width':_0x20e263(0x120),'height':_0x20e263(0x120)},'children':[{'tag':_0x20e263(0xc2),'attrs':{'fill':_0x20e263(0xe5),'d':_0x20e263(0x107)}},{'tag':_0x20e263(0xc2),'attrs':{'fill':_0x20e263(0xe5),'d':_0x20e263(0xe8),'fillRule':_0x20e263(0xd7),'clipRule':_0x20e263(0xd7)}}]},B=_0x4578d8(function(_0x595fed,_0x572533){var _0x3310d8=_0x20e263;return _0x567312(W,Object[_0x3310d8(0x8f)]({},_0x595fed,{'id':_0x3310d8(0xc4),'ref':_0x572533,'icon':ye}));});B[_0x20e263(0x127)]=_0x20e263(0x10d);var Re=Object[_0x20e263(0xf5)],Z=(_0x5b20bf,_0x2895ae,_0x823ab2,_0x1a2141)=>{var _0x45a4fd=_0x20e263;for(var _0x153b37=_0x1a2141>0x1?void 0x0:_0x1a2141?Re(_0x2895ae,_0x823ab2):_0x2895ae,_0x2ba596=_0x5b20bf[_0x45a4fd(0xa1)]-0x1,_0x557a72;_0x2ba596>=0x0;_0x2ba596--)(_0x557a72=_0x5b20bf[_0x2ba596])&&(_0x153b37=_0x557a72(_0x153b37)||_0x153b37);return _0x153b37;},f=(_0x5a87ae,_0x22a733)=>(_0x5a0899,_0x8c7302)=>_0x22a733(_0x5a0899,_0x8c7302,_0x5a87ae);let I=class extends _0x15a336{constructor(_0x3bb513,_0x35e161,_0x124405){var _0x45a30d=_0x20e263;super(),d(this,_0x45a30d(0x9d),new Map()),(this[_0x45a30d(0xed)]=_0x3bb513,this[_0x45a30d(0x97)]=_0x35e161,this['_collabSessionService']=_0x124405,this[_0x45a30d(0x10e)]());}async[_0x20e263(0x128)](_0x399a75){var _0x5d4be5=_0x20e263;return this[_0x5d4be5(0x9d)][_0x5d4be5(0x119)](_0x399a75)||await this[_0x5d4be5(0x98)](_0x399a75),this[_0x5d4be5(0x9d)]['get'](_0x399a75);}[_0x20e263(0x10e)](){var _0x3f777b=_0x20e263;this[_0x3f777b(0xed)]['getTypeOfUnitAdded$'](_0x923bcb['UNIVER_SHEET'])[_0x3f777b(0x8d)](_0xa77adc(this['dispose$']))[_0x3f777b(0x10f)](async _0x5d59ce=>{var _0x5e0987=_0x3f777b;const _0x345d18=_0x5d59ce[_0x5e0987(0xdb)]();this[_0x5e0987(0x9d)][_0x5e0987(0x119)](_0x345d18)||this['_startLiveShareCoordinator'](_0x345d18);}),this[_0x3f777b(0xed)][_0x3f777b(0x12c)](_0x923bcb['UNIVER_SHEET'])[_0x3f777b(0x8d)](_0xa77adc(this[_0x3f777b(0x92)]))[_0x3f777b(0x10f)](_0x51d195=>{var _0xc5cb3d=_0x3f777b;const _0x129a8d=_0x51d195[_0xc5cb3d(0xdb)](),_0x449639=this[_0xc5cb3d(0x9d)][_0xc5cb3d(0xe7)](_0x129a8d);_0x449639==null||_0x449639[_0xc5cb3d(0xfa)]();});}async[_0x20e263(0x98)](_0x2b9b48){var _0x56ac0d=_0x20e263;const _0x1241a9=await this['_collabSessionService']['requireSession'](_0x2b9b48),_0x577b0d=this['_injector']['createInstance'](C,_0x2b9b48,_0x1241a9);return _0x577b0d[_0x56ac0d(0xfd)](),this[_0x56ac0d(0x9d)][_0x56ac0d(0xe1)](_0x2b9b48,_0x577b0d),_0x577b0d;}};I=Z([f(0x0,_0x2a2538),f(0x1,_0x477829(_0x596e84)),f(0x2,_0x477829(_0x4fba1b))],I);var h=(_0x4a7705=>(_0x4a7705[_0x20e263(0x124)]=_0x20e263(0xa5),_0x4a7705['IDLE']='idle',_0x4a7705['FOLLOWING']=_0x20e263(0xb1),_0x4a7705[_0x20e263(0x132)]=_0x20e263(0x11d),_0x4a7705[_0x20e263(0x129)]=_0x20e263(0x9a),_0x4a7705))(h||{});const Pe=_0x20e263(0xf4),Ae=0xc8;let C=class extends _0x15a336{constructor(_0x4b04f4,_0x381b9a,_0x37f2c8,_0x1ba1f8,_0x265503){var _0x2649a2=_0x20e263;super(),d(this,_0x2649a2(0xe4),new _0x4de41f(_0x2649a2(0x12e))),d(this,_0x2649a2(0xca),this['_status$'][_0x2649a2(0x11f)]()),d(this,_0x2649a2(0x10e),!0x1),d(this,_0x2649a2(0x9c),null),d(this,_0x2649a2(0xa8),null),(this[_0x2649a2(0xd4)]=_0x4b04f4,this[_0x2649a2(0xb4)]=_0x381b9a,this[_0x2649a2(0xd8)]=_0x37f2c8,this[_0x2649a2(0x10c)]=_0x1ba1f8,this[_0x2649a2(0xb7)]=_0x265503);}get[_0x20e263(0x94)](){var _0x4c6765=_0x20e263;return this[_0x4c6765(0xe4)][_0x4c6765(0xe9)]();}['dispose'](){var _0x14c0d1=_0x20e263,_0x3aec0a;(_0x3aec0a=this[_0x14c0d1(0x9c)])==null||_0x3aec0a[_0x14c0d1(0xfa)](),this['_status$']['next'](_0x14c0d1(0x12e)),this[_0x14c0d1(0xe4)][_0x14c0d1(0xda)]();}[_0x20e263(0xfd)](){var _0x482963=_0x20e263;this[_0x482963(0x10e)]||(this[_0x482963(0x10e)]=!0x0,this[_0x482963(0xb4)]['sessionStatus$']['pipe'](_0xa77adc(this[_0x482963(0x92)]))[_0x482963(0x10f)](_0x43b3ab=>{var _0x47394f=_0x482963;switch(_0x43b3ab){case _0x2ac890[_0x47394f(0x124)]:this[_0x47394f(0x11b)]();break;case _0x2ac890['ONLINE']:this[_0x47394f(0x8b)]();break;}}),this[_0x482963(0xb4)]['event$'][_0x482963(0x8d)](_0xa77adc(this[_0x482963(0x92)]))[_0x482963(0x10f)](_0x9e56c8=>{var _0x5c4fc3=_0x482963;const {eventID:_0x51f470}=_0x9e56c8;switch(_0x51f470){case _0x3d0f98[_0x5c4fc3(0xbd)]:this['_handleNewHost'](_0x9e56c8);break;case _0x3d0f98[_0x5c4fc3(0xab)]:this['_handleOperation'](_0x9e56c8);break;case _0x3d0f98[_0x5c4fc3(0xf1)]:this[_0x5c4fc3(0xef)]();break;case _0x3d0f98[_0x5c4fc3(0xa0)]:this['_handleNewChangeSets'](_0x9e56c8);break;}}));}[_0x20e263(0x9f)](){var _0x5a8613=_0x20e263;this['_collabSession'][_0x5a8613(0xf6)]({'eventID':_0x3d0f98[_0x5a8613(0xba)],'data':{'unitID':this[_0x5a8613(0xd4)],'userID':this[_0x5a8613(0xb4)][_0x5a8613(0xc8)]()}},this[_0x5a8613(0xd4)]);}['stopPresenting'](){var _0x4c621e=_0x20e263;this[_0x4c621e(0x94)]===_0x4c621e(0x9a)&&(this[_0x4c621e(0xe4)][_0x4c621e(0x8e)](_0x4c621e(0x12e)),this[_0x4c621e(0xb4)]['send']({'eventID':_0x3d0f98[_0x4c621e(0xf1)],'data':{'unitID':this[_0x4c621e(0xd4)]}},this[_0x4c621e(0xd4)]));}[_0x20e263(0xa7)](){var _0x55242a=_0x20e263;this[_0x55242a(0x94)]===_0x55242a(0x11d)&&(this[_0x55242a(0xe4)]['next'](_0x55242a(0xb1)),this[_0x55242a(0x121)]());}['stopFollowing'](){var _0x3e19ea=_0x20e263;this['_status']===_0x3e19ea(0xb1)&&this['_stopFollowing']();}[_0x20e263(0xea)](_0x36f943){var _0x27ffea=_0x20e263;const {presenter:_0x1a47ca}=_0x36f943[_0x27ffea(0x115)],_0x1f0551=this[_0x27ffea(0xb4)]['getMemberID']();this[_0x27ffea(0xa8)]=_0x1a47ca,_0x1a47ca===_0x1f0551?(this[_0x27ffea(0x110)](),this[_0x27ffea(0xc0)]()):this['_status']!==_0x27ffea(0x11d)&&(this[_0x27ffea(0x114)](),this['_startFollowing']());}[_0x20e263(0xa9)](){var _0x1cbdaa=_0x20e263;const _0xfc8ca5={'eventID':_0x3d0f98[_0x1cbdaa(0x10b)]};this[_0x1cbdaa(0xb4)]['send'](_0xfc8ca5,this['_unitID']);}[_0x20e263(0xef)](){var _0x2a816b=_0x20e263;this[_0x2a816b(0xa8)]=null,this[_0x2a816b(0x94)]!==_0x2a816b(0x9a)&&this['_beIdle']();}[_0x20e263(0xf3)](_0x2fe5cf){var _0x135e11=_0x20e263;if(this[_0x135e11(0x94)]==='following'&&this[_0x135e11(0xa8)]===_0x2fe5cf['data'][_0x135e11(0xc1)]){const _0xca944b=_0x433ee0(_0x2fe5cf[_0x135e11(0x115)])[_0x135e11(0xf9)][_0x135e11(0xfc)]()[_0x135e11(0x133)](_0x1d5a7c=>_0x1d5a7c['id']===_0x2e6a01['id']);if(_0xca944b){const _0x288683=_0xca944b[_0x135e11(0xbc)]['unitId'],_0x2dec6e=_0xca944b['params']['sheet']['id'];setTimeout(()=>{var _0x1209a1=_0x135e11;this[_0x1209a1(0xb7)]['executeCommand'](_0x17f582['id'],{'unitId':_0x288683,'subUnitId':_0x2dec6e},{'fromCollab':!0x0});});}}}[_0x20e263(0xc0)](){var _0x1155df=_0x20e263;this[_0x1155df(0xe4)][_0x1155df(0x8e)]('presenting');const _0x53379b=new Map(),_0x47b6d1=this[_0x1155df(0x9c)]=new _0x4602b7();_0x47b6d1[_0x1155df(0x13a)](_0x28d059(()=>{var _0x3a4cd4=_0x1155df;_0x53379b[_0x3a4cd4(0xec)](_0x22ae75=>_0x22ae75[_0x3a4cd4(0xda)]()),_0x53379b['clear']();})),_0x47b6d1[_0x1155df(0x13a)](this[_0x1155df(0xb7)][_0x1155df(0xaa)](_0x3acecd=>{var _0x170390=_0x1155df,_0x544310;if(_0x3acecd['type']!==_0x54c29a[_0x170390(0xa4)]||!this['_liveShareService'][_0x170390(0x113)](_0x3acecd['id']))return;const {id:_0x18e33e}=_0x3acecd;let _0x45ec4d;_0x53379b['has'](_0x18e33e)?_0x45ec4d=_0x53379b[_0x170390(0xe7)](_0x18e33e):(_0x45ec4d=new _0x18dcc9(),_0x53379b[_0x170390(0xe1)](_0x18e33e,_0x45ec4d),_0x45ec4d[_0x170390(0x8d)](_0x4b2015((_0x544310=this['_configService'][_0x170390(0x12a)](Pe))!=null?_0x544310:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x170390(0x10f)](_0x53f5c2=>{var _0x4cc5b0=_0x170390;this[_0x4cc5b0(0xb4)][_0x4cc5b0(0xf6)]({'eventID':_0x3d0f98[_0x4cc5b0(0xab)],'data':{'unitID':this['_unitID'],'operations':{[_0x53f5c2['id']]:{'id':_0x53f5c2['id'],'params':JSON[_0x4cc5b0(0x122)](_0x53f5c2[_0x4cc5b0(0xbc)])}}}},this[_0x4cc5b0(0xd4)]);})),_0x45ec4d[_0x170390(0x8e)](_0x3acecd);})),this[_0x1155df(0x10c)][_0x1155df(0xd9)](this['_unitID'])[_0x1155df(0xec)](_0x51c73d=>this[_0x1155df(0xb4)]['send']({'eventID':_0x3d0f98[_0x1155df(0xab)],'data':{'unitID':this[_0x1155df(0xd4)],'operations':{[_0x51c73d['id']]:{'id':_0x51c73d['id'],'params':JSON[_0x1155df(0x122)](_0x51c73d['params'])}}}},this['_unitID']));}[_0x20e263(0x114)](){var _0x2e9785=_0x20e263,_0x5929e5;this[_0x2e9785(0xe4)]['next'](_0x2e9785(0x12e)),(_0x5929e5=this[_0x2e9785(0x9c)])==null||_0x5929e5['dispose'](),this[_0x2e9785(0x9c)]=null;}[_0x20e263(0x121)](){var _0x153173=_0x20e263,_0x16f55f;(_0x16f55f=this[_0x153173(0x9c)])==null||_0x16f55f['dispose'](),this[_0x153173(0xe4)][_0x153173(0x8e)](_0x153173(0xb1));}[_0x20e263(0x134)](){var _0x1c4f06=_0x20e263,_0x1d3ea5;this[_0x1c4f06(0xe4)][_0x1c4f06(0x8e)]('idle'),(_0x1d3ea5=this[_0x1c4f06(0x9c)])==null||_0x1d3ea5[_0x1c4f06(0xfa)](),this[_0x1c4f06(0x9c)]=null;}['_stopFollowing'](){var _0x3b5805=_0x20e263,_0x12fcdd;this[_0x3b5805(0xe4)][_0x3b5805(0x8e)]('not-following'),(_0x12fcdd=this[_0x3b5805(0x9c)])==null||_0x12fcdd[_0x3b5805(0xfa)]();}['_handleOperation'](_0x410891){var _0x25aab4=_0x20e263;if(['presenting',_0x25aab4(0x11d),_0x25aab4(0xa5)][_0x25aab4(0x131)](this[_0x25aab4(0x94)])||!_0x410891[_0x25aab4(0x115)][_0x25aab4(0x126)]||_0x410891['data'][_0x25aab4(0x126)]===this[_0x25aab4(0xb4)][_0x25aab4(0xc8)]())return;this[_0x25aab4(0x94)]===_0x25aab4(0x12e)&&this[_0x25aab4(0x121)]();const _0x3bdf79=_0x410891[_0x25aab4(0x115)][_0x25aab4(0x12b)];Object[_0x25aab4(0xaf)](_0x3bdf79)[_0x25aab4(0xec)](_0x55ecd7=>{var _0x1952e1=_0x25aab4;this[_0x1952e1(0xb7)][_0x1952e1(0x109)](_0x55ecd7['id'],_0x55ecd7[_0x1952e1(0xbc)]?JSON[_0x1952e1(0x9e)](_0x55ecd7[_0x1952e1(0xbc)]):null,{'fromCollab':!0x0});});}[_0x20e263(0x11b)](){var _0x51dd6d=_0x20e263,_0x515e0d;this[_0x51dd6d(0xe4)]['next'](_0x51dd6d(0xa5)),(_0x515e0d=this['_commandDisposable'])==null||_0x515e0d[_0x51dd6d(0xfa)]();}[_0x20e263(0x8b)](){var _0x2ef389=_0x20e263;this[_0x2ef389(0xe4)]['next'](_0x2ef389(0x12e)),this[_0x2ef389(0xa9)]();}};C=Z([f(0x2,_0x3dbfad),f(0x3,_0x477829(L)),f(0x4,_0x16ca88)],C);function Te(){var _0x5847b0=_0x20e263;const _0x4dd1d9=_0x541ea5(I),_0x48c791=_0x541ea5(_0x2a2538),_0x1d0f47=_0x478313(()=>_0x48c791['getCurrentTypeOfUnit$'](_0x923bcb['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5b8761,_0x52d54b]=_0xf852c6(null),[_0x4f061b,_0x3a6188]=_0xf852c6(h[_0x5847b0(0xbf)]),_0xb47be=_0x4bb260(null);return _0x334c0f(()=>(_0x1d0f47&&_0x4dd1d9['getLiveShareCoordinator'](_0x1d0f47['getUnitId']())[_0x5847b0(0xf2)](_0x3d9b02=>{var _0x27a86a=_0x5847b0;_0x52d54b(_0x3d9b02),_0xb47be[_0x27a86a(0xc3)]=_0x3d9b02['status$'][_0x27a86a(0x10f)](_0x51741f=>{_0x3a6188(_0x51741f);});}),()=>{var _0x330136=_0x5847b0,_0x514ab4;(_0x514ab4=_0xb47be['current'])==null||_0x514ab4[_0x330136(0xb0)](),_0xb47be[_0x330136(0xc3)]=null;}),[_0x1d0f47,_0x4dd1d9]),_0x5b8761?_0x19fc7b(_0x367720,{'align':_0x5847b0(0xcc),'disabled':_0x4f061b===h[_0x5847b0(0x124)],'className':_0x5847b0(0x12d),'overlay':_0x19fc7b($e,{'status':_0x4f061b,'coordinator':_0x5b8761}),'children':_0x19fc7b(_0x5847b0(0x11e),{'className':_0x17d479(_0x5847b0(0xe3),{'univer-cursor-not-allowed':_0x4f061b===h[_0x5847b0(0x124)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4f061b!==h[_0x5847b0(0x124)]}),'type':'button','children':_0x19fc7b(B,{'className':_0x5847b0(0xc9)})})}):null;}function $e(_0x285529){var _0x3d7c26=_0x20e263;const {status:_0x508484,coordinator:_0x14bac3}=_0x285529;switch(_0x508484){case h[_0x3d7c26(0xbf)]:return _0x19fc7b(Fe,{'coordinator':_0x14bac3});case h[_0x3d7c26(0x138)]:return _0x19fc7b(He,{'coordinator':_0x14bac3});case h[_0x3d7c26(0x132)]:return _0x19fc7b(je,{'coordinator':_0x14bac3});case h[_0x3d7c26(0x124)]:return _0x19fc7b(Ve,{});case h[_0x3d7c26(0x129)]:return _0x19fc7b(Ue,{'coordinator':_0x14bac3});default:return null;}}function Fe(_0x3c2366){var _0x27ef54=_0x20e263;const {coordinator:_0x1731c4}=_0x3c2366;return _0x22186f(_0x47aa9a,{'children':[_0x19fc7b(_0x27ef54(0x139),{'className':_0x27ef54(0xcd),'children':_0x27ef54(0xf8)}),_0x19fc7b(_0x6ffcc8,{'onClick':()=>_0x1731c4['tryStartPresenting'](),'children':_0x27ef54(0x125)})]});}function He(_0x104f72){var _0x8b0d63=_0x20e263;const {coordinator:_0x2dc6d8}=_0x104f72;return _0x22186f(_0x47aa9a,{'children':[_0x19fc7b(_0x8b0d63(0x139),{'className':_0x8b0d63(0xcd),'children':_0x8b0d63(0xe0)}),_0x19fc7b(_0x6ffcc8,{'onClick':()=>_0x2dc6d8[_0x8b0d63(0xa6)](),'children':_0x8b0d63(0x100)})]});}function je(_0x49c06c){var _0x2ded52=_0x20e263;const {coordinator:_0x33903b}=_0x49c06c;return _0x22186f(_0x47aa9a,{'children':[_0x19fc7b(_0x2ded52(0x139),{'className':_0x2ded52(0xcd),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x19fc7b(_0x6ffcc8,{'variant':_0x2ded52(0x135),'onClick':()=>_0x33903b['startFollowing'](),'children':_0x2ded52(0xb2)})]});}function Ue(_0x22f54b){var _0x3bba9b=_0x20e263;const {coordinator:_0x15d782}=_0x22f54b;return _0x22186f(_0x47aa9a,{'children':[_0x19fc7b(_0x3bba9b(0x139),{'className':_0x3bba9b(0xcd),'children':_0x3bba9b(0x9b)}),_0x19fc7b(_0x6ffcc8,{'variant':_0x3bba9b(0x102),'onClick':()=>_0x15d782[_0x3bba9b(0xbb)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0xb7bbf2=_0x20e263;return _0x19fc7b(_0x47aa9a,{'children':_0xb7bbf2(0x13b)});}function _0x3185(_0x2e7b35,_0x55eb8d){var _0x496605=_0x4966();return _0x3185=function(_0x318518,_0x180384){_0x318518=_0x318518-0x8b;var _0x2a76c7=_0x496605[_0x318518];return _0x2a76c7;},_0x3185(_0x2e7b35,_0x55eb8d);}var Me=Object[_0x20e263(0xf5)],ke=(_0x159294,_0x40eb6a,_0x1fcf9f,_0x112978)=>{for(var _0x3ee11a=_0x112978>0x1?void 0x0:_0x112978?Me(_0x40eb6a,_0x1fcf9f):_0x40eb6a,_0x4bb141=_0x159294['length']-0x1,_0x25d9e9;_0x4bb141>=0x0;_0x4bb141--)(_0x25d9e9=_0x159294[_0x4bb141])&&(_0x3ee11a=_0x25d9e9(_0x3ee11a)||_0x3ee11a);return _0x3ee11a;},$=(_0x48b887,_0x5046cf)=>(_0x16b6e8,_0x27217b)=>_0x5046cf(_0x16b6e8,_0x27217b,_0x48b887);let b=class extends _0x4235cb{constructor(_0x4506a5,_0x2b8f6a){var _0x2612a5=_0x20e263;super(),this[_0x2612a5(0x97)]=_0x4506a5,this[_0x2612a5(0xff)]=_0x2b8f6a,this[_0x2612a5(0x8c)]();}[_0x20e263(0x8c)](){var _0x3d1fb8=_0x20e263;this[_0x3d1fb8(0x10a)](this[_0x3d1fb8(0xff)]['registerComponent'](_0x36dfa4[_0x3d1fb8(0xcb)],()=>_0x39b9e0(Te,this[_0x3d1fb8(0x97)])));}};b=ke([$(0x0,_0x477829(_0x596e84)),$(0x1,_0x240a99)],b);var Ge=Object[_0x20e263(0xb5)],We=Object[_0x20e263(0xf5)],Ye=(_0x5352fc,_0x272a8c,_0x165426)=>_0x272a8c in _0x5352fc?Ge(_0x5352fc,_0x272a8c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x165426}):_0x5352fc[_0x272a8c]=_0x165426,Be=(_0x57fae9,_0x1bd381,_0x4cedca,_0xa84b05)=>{var _0x5629ea=_0x20e263;for(var _0x5bcedd=_0xa84b05>0x1?void 0x0:_0xa84b05?We(_0x1bd381,_0x4cedca):_0x1bd381,_0x50f08e=_0x57fae9[_0x5629ea(0xa1)]-0x1,_0x2bf137;_0x50f08e>=0x0;_0x50f08e--)(_0x2bf137=_0x57fae9[_0x50f08e])&&(_0x5bcedd=_0x2bf137(_0x5bcedd)||_0x5bcedd);return _0x5bcedd;},F=(_0x55a8e3,_0x52f977)=>(_0xa8a953,_0x33820e)=>_0x52f977(_0xa8a953,_0x33820e,_0x55a8e3),J=(_0x175c24,_0x39d8c4,_0x3860e1)=>Ye(_0x175c24,typeof _0x39d8c4!=_0x20e263(0xd1)?_0x39d8c4+'':_0x39d8c4,_0x3860e1);const Ze=_0x20e263(0xc7);let O=class extends _0x2e0281{constructor(_0x2ee230=T,_0x98ce5,_0x1c8033){var _0x5e8f3a=_0x20e263;super(),this[_0x5e8f3a(0xde)]=_0x2ee230,this[_0x5e8f3a(0x97)]=_0x98ce5,this[_0x5e8f3a(0xd8)]=_0x1c8033;const {..._0x347651}=_0x1071d7({},T,this['_config']);this[_0x5e8f3a(0xd8)][_0x5e8f3a(0x103)](Oe,_0x347651);}[_0x20e263(0xb9)](){var _0xb0d77e=_0x20e263;_0x13ef7a(this['_injector'],_0x1011dd([[L],[I],[m],[b]],this[_0xb0d77e(0xde)][_0xb0d77e(0xd2)])),_0x444cf7(this['_injector'],[[m]]);}[_0x20e263(0xad)](){var _0x2334ce=_0x20e263;_0x444cf7(this[_0x2334ce(0x97)],[[b]]);}};J(O,_0x20e263(0xc6),_0x923bcb['UNIVER_UNKNOWN']),J(O,_0x20e263(0xd5),Ze),O=Be([_0x3828c9(_0x2e501b),F(0x1,_0x477829(_0x596e84)),F(0x2,_0x3dbfad)],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 _0x99f71f=_0x2f47;(function(_0x363115,_0xbff1db){var _0x5db9c0=_0x2f47,_0x5f446e=_0x363115();while(!![]){try{var _0x15df3b=-parseInt(_0x5db9c0(0x150))/0x1*(parseInt(_0x5db9c0(0x161))/0x2)+parseInt(_0x5db9c0(0x1a7))/0x3+parseInt(_0x5db9c0(0x13d))/0x4+-parseInt(_0x5db9c0(0x185))/0x5+-parseInt(_0x5db9c0(0x18a))/0x6+parseInt(_0x5db9c0(0x1c0))/0x7*(parseInt(_0x5db9c0(0x1cd))/0x8)+-parseInt(_0x5db9c0(0x1c8))/0x9*(parseInt(_0x5db9c0(0x165))/0xa);if(_0x15df3b===_0xbff1db)break;else _0x5f446e['push'](_0x5f446e['shift']());}catch(_0x453a8e){_0x5f446e['push'](_0x5f446e['shift']());}}}(_0x389d,0x8647f));var q=Object['defineProperty'],z=(_0x376849,_0x53524c,_0x170f68)=>_0x53524c in _0x376849?q(_0x376849,_0x53524c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x170f68}):_0x376849[_0x53524c]=_0x170f68,d=(_0xe98a8c,_0x77cbe7,_0x382a4b)=>z(_0xe98a8c,typeof _0x77cbe7!=_0x99f71f(0x1a3)?_0x77cbe7+'':_0x77cbe7,_0x382a4b);import{CollaborationSessionService as _0x4212d6,SessionStatus as _0x4b2aa1,UniverCollaborationClientPlugin as _0x4a8a68}from'@univerjs-pro/collaboration-client';import{Disposable as _0x59f156,toDisposable as _0x3e8155,Inject as _0x5bf50d,IUniverInstanceService as _0x3436e1,Injector as _0x473fc7,IConfigService as _0x3f2bf0,ICommandService as _0x320924,RxDisposable as _0x428bc,UniverInstanceType as _0x5a9822,DisposableCollection as _0x59c941,CommandType as _0x51ef63,DependentOn as _0x34567d,Plugin as _0x176cff,merge as _0xae2b6b,registerDependencies as _0x3ac27d,mergeOverrideWithDependencies as _0x250a49,touchDependencies as _0x25eed6}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x311bff,InsertSheetMutation as _0x3bed17}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x2ab1ad,SetScrollOperation as _0x65b388}from'@univerjs/sheets-ui';import{useDependency as _0x4e95ea,useObservable as _0x574a40,IUIPartsService as _0x359339,BuiltInUIPart as _0xa95625,connectInjector as _0x11d29b}from'@univerjs/ui';import{jsx as _0x2a3f55,jsxs as _0x590551,Fragment as _0x8dd5dc}from'react/jsx-runtime';import{Dropdown as _0x548f32,clsx as _0x449eb0,Button as _0x310295}from'@univerjs/design';import{forwardRef as _0xa501d4,useRef as _0xf0d4a5,createElement as _0x18c11d,useState as _0x137d2a,useEffect as _0x572451}from'react';import{CollaborationEvent as _0x3a2075,parseProtocolChangeset as _0x5e4189}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x57c6d5,Subject as _0x4d9bd9}from'rxjs';function _0x389d(){var _0x2bbf63=['currentColor','getValue','_handleNewHost','clear','override','parse','Start\x20following','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','memberID','find','offline','_sharedOperations','idle','defIds','_collabSessionService','_injector','operations','_mountLiveShare','live-share-icon','_stopPresenting','_status$','_reporters','UNIVER_LIVE_SHARE_PLUGIN','_presenter','mask','idSuffix','unitId','tag','183050GarogW','disposeWithMe','random','stopPresenting','PRESENTING','1009164kRUySn','_status','_handleTerminate','LIVESHARE_TERMINATE','url(#$1','not-following','reverse','presenting','univerjs-icon\x20univerjs-icon-','dispose$','_unitID','NEW_CHANGESETS','init','Start','svg','onCommandExecuted','_uiPartsService','requireSession','startFollowing','use','_entities','getConfig','default','xlink:href','_stopFollowing','symbol','onStarting','button','registerInitialStateReporter','2649516ToiaDJ','_univerInstanceService','status$','getInitialStates','subscribe','pipe','onRendered','then','params','prototype','colorChannel1','entries','fill','_configService','_commandDisposable','dispose','presenter','0\x200\x2017\x2017','end','getTypeOfUnitDisposed$','evenodd','executeCommand','call','_handleOffline','NOT_FOLLOWING','84JZxkJb','forEach','Stop\x20following','UNIVER_SHEET','LIVESHARE_OPERATION','OFFLINE','concat','icon','11302749qpzJQd','getOwnPropertySymbols','_handleNewChangeSets','You\x27are\x20offline.','unsubscribe','637736xWzzqV','LIVESHARE_FETCH_OPERATIONS','pluginName','SAME_OPERATION_SHARE_INTERVAL','current','OPERATION','ONLINE','_fetchOperations','get','length','trim','tryStartPresenting','registerComponent','getCurrentTypeOfUnit$','div','delete','attrs','FOLLOWING','path','data','stringify','LIVESHARE_NEW_HOST','toString','children','indexOf','registerSharedOperation','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_startLiveShareCoordinator','includes','Stop\x20presenting','live-share.config','getTypeOfUnitAdded$','string','1em','asObservable','Present\x20this\x20document','LiveShareIcon','getLiveShareCoordinator','_collabSession','You\x27re\x20following\x20the\x20presenter','1914944VpBOUC','next','_beIdle','getUnitId','_startFollowing','_liveShareService','shouldShareOperation','createInstance','has','set','displayName','_startPresenting','getMemberID','text','send','http://www.w3.org/2000/svg','_handleOperation','className','from','4XMGjAv','mutations','map','setConfig','You\x27re\x20not\x20following\x20the\x20presenter','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','LIVESHARE_REQUEST_HOST','extend','stopFollowing','_handleOnline','IDLE','univer-mb-3\x20univer-w-full\x20univer-text-sm','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','add','event$','hasOwnProperty','HEADER_MENU','153916ZIajMF','_commandService','_init','following','10mUVBqp','type','apply','getOwnPropertyDescriptor'];_0x389d=function(){return _0x2bbf63;};return _0x389d();}import{takeUntil as _0xd2f81d,throttleTime as _0x27a38f}from'rxjs/operators';const Oe=_0x99f71f(0x133),T={};class L extends _0x59f156{constructor(){var _0x1a6c44=_0x99f71f;super(...arguments),d(this,_0x1a6c44(0x174),new Set()),d(this,'_reporters',new Set());}[_0x99f71f(0x12e)](_0x5132a4){var _0x295d4e=_0x99f71f;return this[_0x295d4e(0x174)][_0x295d4e(0x15d)](_0x5132a4),_0x3e8155(()=>this['_sharedOperations'][_0x295d4e(0x124)](_0x5132a4));}[_0x99f71f(0x1a6)](_0x4923ea){var _0x56d267=_0x99f71f;return this[_0x56d267(0x17e)][_0x56d267(0x15d)](_0x4923ea),_0x3e8155(()=>this[_0x56d267(0x17e)][_0x56d267(0x124)](_0x4923ea));}['shouldShareOperation'](_0x3e1406){var _0xaa5246=_0x99f71f;return this[_0xaa5246(0x174)][_0xaa5246(0x145)](_0x3e1406);}['getInitialStates'](_0x5cbbd0){var _0x3b93de=_0x99f71f;return Array[_0x3b93de(0x14f)](this[_0x3b93de(0x17e)])[_0x3b93de(0x152)](_0x1e173a=>_0x1e173a(_0x5cbbd0));}}var Ee=Object[_0x99f71f(0x168)],we=(_0x117511,_0x47a023,_0x59f513,_0x57c908)=>{var _0x5bc84c=_0x99f71f;for(var _0x25c548=_0x57c908>0x1?void 0x0:_0x57c908?Ee(_0x47a023,_0x59f513):_0x47a023,_0x48d773=_0x117511[_0x5bc84c(0x1d6)]-0x1,_0x158f85;_0x48d773>=0x0;_0x48d773--)(_0x158f85=_0x117511[_0x48d773])&&(_0x25c548=_0x158f85(_0x25c548)||_0x25c548);return _0x25c548;},Ne=(_0x45b309,_0x331f67)=>(_0xff2d39,_0x1b8cae)=>_0x331f67(_0xff2d39,_0x1b8cae,_0x45b309);let m=class extends _0x59f156{constructor(_0x45b4d3){super(),this['_liveShareService']=_0x45b4d3,this['_init']();}[_0x99f71f(0x163)](){var _0x1b8d9c=_0x99f71f;[_0x2ab1ad['id'],_0x65b388['id'],_0x311bff['id']][_0x1b8d9c(0x1c1)](_0x5d0589=>{var _0x46707a=_0x1b8d9c;this['disposeWithMe'](this[_0x46707a(0x142)][_0x46707a(0x12e)](_0x5d0589));});}};m=we([Ne(0x0,_0x5bf50d(L))],m);var c=function(){var _0x271bd9=_0x99f71f;return c=Object['assign']||function(_0x240a38){var _0x1269c7=_0x2f47;for(var _0x1c7a0c,_0x30691f=0x1,_0x5293db=arguments[_0x1269c7(0x1d6)];_0x30691f<_0x5293db;_0x30691f++){_0x1c7a0c=arguments[_0x30691f];for(var _0x2c9bfc in _0x1c7a0c)Object[_0x1269c7(0x1b0)][_0x1269c7(0x15f)][_0x1269c7(0x1bd)](_0x1c7a0c,_0x2c9bfc)&&(_0x240a38[_0x2c9bfc]=_0x1c7a0c[_0x2c9bfc]);}return _0x240a38;},c[_0x271bd9(0x167)](this,arguments);},Ce=function(_0x1591af,_0x1cae09){var _0x3f4337=_0x99f71f,_0xde99a1={};for(var _0x87bd6c in _0x1591af)Object['prototype']['hasOwnProperty'][_0x3f4337(0x1bd)](_0x1591af,_0x87bd6c)&&_0x1cae09[_0x3f4337(0x12d)](_0x87bd6c)<0x0&&(_0xde99a1[_0x87bd6c]=_0x1591af[_0x87bd6c]);if(_0x1591af!=null&&typeof Object[_0x3f4337(0x1c9)]=='function'){for(var _0x12adac=0x0,_0x87bd6c=Object[_0x3f4337(0x1c9)](_0x1591af);_0x12adac<_0x87bd6c[_0x3f4337(0x1d6)];_0x12adac++)_0x1cae09[_0x3f4337(0x12d)](_0x87bd6c[_0x12adac])<0x0&&Object[_0x3f4337(0x1b0)]['propertyIsEnumerable']['call'](_0x1591af,_0x87bd6c[_0x12adac])&&(_0xde99a1[_0x87bd6c[_0x12adac]]=_0x1591af[_0x87bd6c[_0x12adac]]);}return _0xde99a1;},W=_0xa501d4(function(_0x51b791,_0x140c67){var _0x34fd96=_0x99f71f,_0x1d7752=_0x51b791[_0x34fd96(0x1c7)],_0x297b40=_0x51b791['id'],_0x18df01=_0x51b791[_0x34fd96(0x14e)],_0x4386bb=_0x51b791[_0x34fd96(0x157)],_0x50ffa8=Ce(_0x51b791,[_0x34fd96(0x1c7),'id','className',_0x34fd96(0x157)]),_0x3e1a33=_0x34fd96(0x192)['concat'](_0x297b40,'\x20')[_0x34fd96(0x1c6)](_0x18df01||'')[_0x34fd96(0x1d7)](),_0x2a8d00=_0xf0d4a5('_'['concat'](Le()));return Y(_0x1d7752,''[_0x34fd96(0x1c6)](_0x297b40),{'defIds':_0x1d7752['defIds'],'idSuffix':_0x2a8d00[_0x34fd96(0x1d1)]},c({'ref':_0x140c67,'className':_0x3e1a33},_0x50ffa8),_0x4386bb);});function _0x2f47(_0x4d6962,_0x3a58a4){var _0x389dfd=_0x389d();return _0x2f47=function(_0x2f4777,_0x5460f0){_0x2f4777=_0x2f4777-0x121;var _0x4810e3=_0x389dfd[_0x2f4777];return _0x4810e3;},_0x2f47(_0x4d6962,_0x3a58a4);}function Y(_0x1358d2,_0x2fbd9d,_0x2f25a7,_0x5c4004,_0x19b544){var _0x3b6c3b=_0x99f71f;return _0x18c11d(_0x1358d2[_0x3b6c3b(0x184)],c(c({'key':_0x2fbd9d},De(_0x1358d2,_0x2f25a7,_0x19b544)),_0x5c4004),(xe(_0x1358d2,_0x2f25a7)[_0x3b6c3b(0x12c)]||[])[_0x3b6c3b(0x152)](function(_0x5613f4,_0x24f63c){var _0xe27bd6=_0x3b6c3b;return Y(_0x5613f4,''[_0xe27bd6(0x1c6)](_0x2fbd9d,'-')[_0xe27bd6(0x1c6)](_0x1358d2[_0xe27bd6(0x184)],'-')[_0xe27bd6(0x1c6)](_0x24f63c),_0x2f25a7,void 0x0,_0x19b544);}));}function De(_0x1f8167,_0x2569fe,_0x15ff3d){var _0x2ad2b7=_0x99f71f,_0x4f5e29=c({},_0x1f8167[_0x2ad2b7(0x125)]);_0x15ff3d!=null&&_0x15ff3d[_0x2ad2b7(0x1b1)]&&_0x4f5e29[_0x2ad2b7(0x1b3)]===_0x2ad2b7(0x1b1)&&(_0x4f5e29[_0x2ad2b7(0x1b3)]=_0x15ff3d[_0x2ad2b7(0x1b1)]),_0x1f8167[_0x2ad2b7(0x184)]===_0x2ad2b7(0x181)&&_0x4f5e29['id']&&(_0x4f5e29['id']=_0x4f5e29['id']+_0x2569fe[_0x2ad2b7(0x182)]),Object[_0x2ad2b7(0x1b2)](_0x4f5e29)[_0x2ad2b7(0x1c1)](function(_0x2b1c2a){var _0x100171=_0x2ad2b7,_0x25bbd6=_0x2b1c2a[0x0],_0x4af1b9=_0x2b1c2a[0x1];_0x25bbd6==='mask'&&typeof _0x4af1b9==_0x100171(0x135)&&(_0x4f5e29[_0x25bbd6]=_0x4af1b9['replace'](/url\(#(.*)\)/,'url(#$1'[_0x100171(0x1c6)](_0x2569fe[_0x100171(0x182)],')')));});var _0xdfa0fc=_0x2569fe[_0x2ad2b7(0x176)];return!_0xdfa0fc||_0xdfa0fc[_0x2ad2b7(0x1d6)]===0x0||(_0x1f8167[_0x2ad2b7(0x184)]===_0x2ad2b7(0x19d)&&_0x4f5e29[_0x2ad2b7(0x1a1)]&&(_0x4f5e29[_0x2ad2b7(0x1a1)]=_0x4f5e29[_0x2ad2b7(0x1a1)]+_0x2569fe['idSuffix']),Object[_0x2ad2b7(0x1b2)](_0x4f5e29)[_0x2ad2b7(0x1c1)](function(_0x18ec09){var _0x5d6614=_0x2ad2b7,_0x5d8c5a=_0x18ec09[0x0],_0x138c6e=_0x18ec09[0x1];typeof _0x138c6e=='string'&&(_0x4f5e29[_0x5d8c5a]=_0x138c6e['replace'](/url\(#(.*)\)/,_0x5d6614(0x18e)[_0x5d6614(0x1c6)](_0x2569fe[_0x5d6614(0x182)],')')));})),_0x4f5e29;}function xe(_0x4c8ae5,_0xa8dbb4){var _0x5c9c76=_0x99f71f,_0x4cb83c,_0x23f634=_0xa8dbb4[_0x5c9c76(0x176)];return!_0x23f634||_0x23f634[_0x5c9c76(0x1d6)]===0x0?_0x4c8ae5:_0x4c8ae5[_0x5c9c76(0x184)]==='defs'&&(!((_0x4cb83c=_0x4c8ae5[_0x5c9c76(0x12c)])===null||_0x4cb83c===void 0x0)&&_0x4cb83c[_0x5c9c76(0x1d6)])?c(c({},_0x4c8ae5),{'children':_0x4c8ae5['children'][_0x5c9c76(0x152)](function(_0xf9f2d8){var _0x186734=_0x5c9c76;return typeof _0xf9f2d8[_0x186734(0x125)]['id']=='string'&&_0x23f634&&_0x23f634[_0x186734(0x131)](_0xf9f2d8[_0x186734(0x125)]['id'])?c(c({},_0xf9f2d8),{'attrs':c(c({},_0xf9f2d8['attrs']),{'id':_0xf9f2d8[_0x186734(0x125)]['id']+_0xa8dbb4['idSuffix']})}):_0xf9f2d8;})}):_0x4c8ae5;}function Le(){var _0x438fc8=_0x99f71f;return Math[_0x438fc8(0x187)]()[_0x438fc8(0x12b)](0x24)['substring'](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0x99f71f(0x198),'attrs':{'xmlns':_0x99f71f(0x14c),'fill':'none','viewBox':_0x99f71f(0x1b8),'width':_0x99f71f(0x136),'height':'1em'},'children':[{'tag':_0x99f71f(0x127),'attrs':{'fill':_0x99f71f(0x169),'d':_0x99f71f(0x170)}},{'tag':'path','attrs':{'fill':_0x99f71f(0x169),'d':_0x99f71f(0x15c),'fillRule':_0x99f71f(0x1bb),'clipRule':_0x99f71f(0x1bb)}}]},B=_0xa501d4(function(_0x2fbbca,_0xc09ed4){var _0x5b5ef0=_0x99f71f;return _0x18c11d(W,Object['assign']({},_0x2fbbca,{'id':_0x5b5ef0(0x17b),'ref':_0xc09ed4,'icon':ye}));});B[_0x99f71f(0x147)]=_0x99f71f(0x139);var Re=Object[_0x99f71f(0x168)],Z=(_0x3d4e0a,_0x3d9887,_0x1e91fa,_0x32cd96)=>{for(var _0xebd68b=_0x32cd96>0x1?void 0x0:_0x32cd96?Re(_0x3d9887,_0x1e91fa):_0x3d9887,_0x54d353=_0x3d4e0a['length']-0x1,_0x27b434;_0x54d353>=0x0;_0x54d353--)(_0x27b434=_0x3d4e0a[_0x54d353])&&(_0xebd68b=_0x27b434(_0xebd68b)||_0xebd68b);return _0xebd68b;},f=(_0x38cb60,_0x39aab6)=>(_0x38ec6e,_0xc80cf1)=>_0x39aab6(_0x38ec6e,_0xc80cf1,_0x38cb60);let I=class extends _0x428bc{constructor(_0x274ef2,_0x1eeaaf,_0x18a826){var _0x500fc8=_0x99f71f;super(),d(this,_0x500fc8(0x19e),new Map()),(this[_0x500fc8(0x1a8)]=_0x274ef2,this[_0x500fc8(0x178)]=_0x1eeaaf,this[_0x500fc8(0x177)]=_0x18a826,this[_0x500fc8(0x163)]());}async[_0x99f71f(0x13a)](_0x41236e){var _0x37730c=_0x99f71f;return this[_0x37730c(0x19e)][_0x37730c(0x145)](_0x41236e)||await this['_startLiveShareCoordinator'](_0x41236e),this['_entities'][_0x37730c(0x1d5)](_0x41236e);}[_0x99f71f(0x163)](){var _0x10c990=_0x99f71f;this[_0x10c990(0x1a8)][_0x10c990(0x134)](_0x5a9822[_0x10c990(0x1c3)])['pipe'](_0xd2f81d(this['dispose$']))[_0x10c990(0x1ab)](async _0x7bf1f6=>{var _0x57b45b=_0x10c990;const _0x814651=_0x7bf1f6[_0x57b45b(0x140)]();this[_0x57b45b(0x19e)][_0x57b45b(0x145)](_0x814651)||this[_0x57b45b(0x130)](_0x814651);}),this[_0x10c990(0x1a8)][_0x10c990(0x1ba)](_0x5a9822[_0x10c990(0x1c3)])['pipe'](_0xd2f81d(this[_0x10c990(0x193)]))[_0x10c990(0x1ab)](_0xd297a2=>{var _0x722e1e=_0x10c990;const _0x4b0b50=_0xd297a2[_0x722e1e(0x140)](),_0x55ff24=this['_entities'][_0x722e1e(0x1d5)](_0x4b0b50);_0x55ff24==null||_0x55ff24[_0x722e1e(0x1b6)]();});}async[_0x99f71f(0x130)](_0x50cda1){var _0x47c05e=_0x99f71f;const _0x4aea5d=await this[_0x47c05e(0x177)][_0x47c05e(0x19b)](_0x50cda1),_0x1d8f73=this[_0x47c05e(0x178)][_0x47c05e(0x144)](C,_0x50cda1,_0x4aea5d);return _0x1d8f73[_0x47c05e(0x196)](),this[_0x47c05e(0x19e)][_0x47c05e(0x146)](_0x50cda1,_0x1d8f73),_0x1d8f73;}};I=Z([f(0x0,_0x3436e1),f(0x1,_0x5bf50d(_0x473fc7)),f(0x2,_0x5bf50d(_0x4212d6))],I);var h=(_0x22fe56=>(_0x22fe56[_0x99f71f(0x1c5)]=_0x99f71f(0x173),_0x22fe56['IDLE']=_0x99f71f(0x175),_0x22fe56[_0x99f71f(0x126)]=_0x99f71f(0x164),_0x22fe56['NOT_FOLLOWING']=_0x99f71f(0x18f),_0x22fe56[_0x99f71f(0x189)]='presenting',_0x22fe56))(h||{});const Pe=_0x99f71f(0x1d0),Ae=0xc8;let C=class extends _0x428bc{constructor(_0x99dbc3,_0x4d0c1d,_0x5d78b8,_0x8a207c,_0x851562){var _0x43779a=_0x99f71f;super(),d(this,_0x43779a(0x17d),new _0x57c6d5(_0x43779a(0x175))),d(this,_0x43779a(0x1a9),this[_0x43779a(0x17d)][_0x43779a(0x137)]()),d(this,_0x43779a(0x163),!0x1),d(this,_0x43779a(0x1b5),null),d(this,'_presenter',null),(this[_0x43779a(0x194)]=_0x99dbc3,this['_collabSession']=_0x4d0c1d,this[_0x43779a(0x1b4)]=_0x5d78b8,this[_0x43779a(0x142)]=_0x8a207c,this['_commandService']=_0x851562);}get[_0x99f71f(0x18b)](){var _0x2bd98a=_0x99f71f;return this[_0x2bd98a(0x17d)][_0x2bd98a(0x16a)]();}[_0x99f71f(0x1b6)](){var _0x4c22df=_0x99f71f,_0x4445dc;(_0x4445dc=this[_0x4c22df(0x1b5)])==null||_0x4445dc['dispose'](),this[_0x4c22df(0x17d)][_0x4c22df(0x13e)](_0x4c22df(0x175)),this['_status$']['complete']();}[_0x99f71f(0x196)](){var _0x4d49dd=_0x99f71f;this[_0x4d49dd(0x163)]||(this[_0x4d49dd(0x163)]=!0x0,this[_0x4d49dd(0x13b)]['sessionStatus$']['pipe'](_0xd2f81d(this['dispose$']))['subscribe'](_0x1bc3f3=>{var _0x4aaa33=_0x4d49dd;switch(_0x1bc3f3){case _0x4b2aa1['OFFLINE']:this[_0x4aaa33(0x1be)]();break;case _0x4b2aa1[_0x4aaa33(0x1d3)]:this['_handleOnline']();break;}}),this[_0x4d49dd(0x13b)][_0x4d49dd(0x15e)][_0x4d49dd(0x1ac)](_0xd2f81d(this[_0x4d49dd(0x193)]))[_0x4d49dd(0x1ab)](_0x1ed34c=>{var _0x3c2159=_0x4d49dd;const {eventID:_0x1d4f29}=_0x1ed34c;switch(_0x1d4f29){case _0x3a2075[_0x3c2159(0x12a)]:this[_0x3c2159(0x16b)](_0x1ed34c);break;case _0x3a2075['LIVESHARE_OPERATION']:this['_handleOperation'](_0x1ed34c);break;case _0x3a2075['LIVESHARE_TERMINATE']:this[_0x3c2159(0x18c)]();break;case _0x3a2075[_0x3c2159(0x195)]:this[_0x3c2159(0x1ca)](_0x1ed34c);break;}}));}[_0x99f71f(0x1d8)](){var _0x5d8aca=_0x99f71f;this[_0x5d8aca(0x13b)][_0x5d8aca(0x14b)]({'eventID':_0x3a2075[_0x5d8aca(0x156)],'data':{'unitID':this['_unitID'],'userID':this[_0x5d8aca(0x13b)]['getMemberID']()}},this['_unitID']);}[_0x99f71f(0x188)](){var _0x128d60=_0x99f71f;this[_0x128d60(0x18b)]==='presenting'&&(this[_0x128d60(0x17d)][_0x128d60(0x13e)](_0x128d60(0x175)),this[_0x128d60(0x13b)]['send']({'eventID':_0x3a2075[_0x128d60(0x18d)],'data':{'unitID':this[_0x128d60(0x194)]}},this[_0x128d60(0x194)]));}[_0x99f71f(0x19c)](){var _0x5e7dfa=_0x99f71f;this[_0x5e7dfa(0x18b)]==='not-following'&&(this[_0x5e7dfa(0x17d)][_0x5e7dfa(0x13e)](_0x5e7dfa(0x164)),this[_0x5e7dfa(0x141)]());}['stopFollowing'](){var _0x164376=_0x99f71f;this[_0x164376(0x18b)]===_0x164376(0x164)&&this['_stopFollowing']();}[_0x99f71f(0x16b)](_0x58e331){var _0x4704a5=_0x99f71f;const {presenter:_0x7c9219}=_0x58e331[_0x4704a5(0x128)],_0x4f7e26=this[_0x4704a5(0x13b)][_0x4704a5(0x149)]();this['_presenter']=_0x7c9219,_0x7c9219===_0x4f7e26?(this[_0x4704a5(0x1a2)](),this[_0x4704a5(0x148)]()):this[_0x4704a5(0x18b)]!==_0x4704a5(0x18f)&&(this[_0x4704a5(0x17c)](),this[_0x4704a5(0x141)]());}[_0x99f71f(0x1d4)](){var _0x40c0b3=_0x99f71f;const _0x1f520c={'eventID':_0x3a2075[_0x40c0b3(0x1ce)]};this[_0x40c0b3(0x13b)][_0x40c0b3(0x14b)](_0x1f520c,this[_0x40c0b3(0x194)]);}[_0x99f71f(0x18c)](){var _0x592352=_0x99f71f;this['_presenter']=null,this[_0x592352(0x18b)]!==_0x592352(0x191)&&this[_0x592352(0x13f)]();}[_0x99f71f(0x1ca)](_0x6ee1bb){var _0x279720=_0x99f71f;if(this[_0x279720(0x18b)]===_0x279720(0x164)&&this[_0x279720(0x180)]===_0x6ee1bb[_0x279720(0x128)][_0x279720(0x171)]){const _0x567dc3=_0x5e4189(_0x6ee1bb['data'])[_0x279720(0x151)][_0x279720(0x190)]()[_0x279720(0x172)](_0xfabef3=>_0xfabef3['id']===_0x3bed17['id']);if(_0x567dc3){const _0x317ea4=_0x567dc3[_0x279720(0x1af)][_0x279720(0x183)],_0x77e3a5=_0x567dc3[_0x279720(0x1af)]['sheet']['id'];setTimeout(()=>{var _0x203c23=_0x279720;this[_0x203c23(0x162)]['executeCommand'](_0x311bff['id'],{'unitId':_0x317ea4,'subUnitId':_0x77e3a5},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x118db8=_0x99f71f;this[_0x118db8(0x17d)][_0x118db8(0x13e)](_0x118db8(0x191));const _0x2ea694=new Map(),_0x1513e2=this[_0x118db8(0x1b5)]=new _0x59c941();_0x1513e2[_0x118db8(0x15d)](_0x3e8155(()=>{var _0x190bd4=_0x118db8;_0x2ea694[_0x190bd4(0x1c1)](_0x134708=>_0x134708['complete']()),_0x2ea694[_0x190bd4(0x16c)]();})),_0x1513e2[_0x118db8(0x15d)](this['_commandService'][_0x118db8(0x199)](_0x1ad783=>{var _0x3598e7=_0x118db8,_0x46b851;if(_0x1ad783['type']!==_0x51ef63[_0x3598e7(0x1d2)]||!this[_0x3598e7(0x142)][_0x3598e7(0x143)](_0x1ad783['id']))return;const {id:_0x4b426b}=_0x1ad783;let _0x13c581;_0x2ea694[_0x3598e7(0x145)](_0x4b426b)?_0x13c581=_0x2ea694[_0x3598e7(0x1d5)](_0x4b426b):(_0x13c581=new _0x4d9bd9(),_0x2ea694['set'](_0x4b426b,_0x13c581),_0x13c581[_0x3598e7(0x1ac)](_0x27a38f((_0x46b851=this[_0x3598e7(0x1b4)][_0x3598e7(0x19f)](Pe))!=null?_0x46b851:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3598e7(0x1ab)](_0x22b627=>{var _0x8c67ff=_0x3598e7;this[_0x8c67ff(0x13b)]['send']({'eventID':_0x3a2075[_0x8c67ff(0x1c4)],'data':{'unitID':this[_0x8c67ff(0x194)],'operations':{[_0x22b627['id']]:{'id':_0x22b627['id'],'params':JSON[_0x8c67ff(0x129)](_0x22b627['params'])}}}},this[_0x8c67ff(0x194)]);})),_0x13c581[_0x3598e7(0x13e)](_0x1ad783);})),this['_liveShareService'][_0x118db8(0x1aa)](this['_unitID'])[_0x118db8(0x1c1)](_0x162667=>this[_0x118db8(0x13b)][_0x118db8(0x14b)]({'eventID':_0x3a2075['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x118db8(0x194)],'operations':{[_0x162667['id']]:{'id':_0x162667['id'],'params':JSON[_0x118db8(0x129)](_0x162667[_0x118db8(0x1af)])}}}},this[_0x118db8(0x194)]));}['_stopPresenting'](){var _0x37255f=_0x99f71f,_0x143a38;this[_0x37255f(0x17d)][_0x37255f(0x13e)](_0x37255f(0x175)),(_0x143a38=this[_0x37255f(0x1b5)])==null||_0x143a38[_0x37255f(0x1b6)](),this[_0x37255f(0x1b5)]=null;}[_0x99f71f(0x141)](){var _0x7ac91=_0x99f71f,_0x4f9220;(_0x4f9220=this[_0x7ac91(0x1b5)])==null||_0x4f9220[_0x7ac91(0x1b6)](),this[_0x7ac91(0x17d)][_0x7ac91(0x13e)]('following');}['_beIdle'](){var _0x5f159b=_0x99f71f,_0xe64ab7;this[_0x5f159b(0x17d)]['next']('idle'),(_0xe64ab7=this[_0x5f159b(0x1b5)])==null||_0xe64ab7['dispose'](),this['_commandDisposable']=null;}[_0x99f71f(0x1a2)](){var _0x52ff65=_0x99f71f,_0x2b70a1;this[_0x52ff65(0x17d)][_0x52ff65(0x13e)](_0x52ff65(0x18f)),(_0x2b70a1=this[_0x52ff65(0x1b5)])==null||_0x2b70a1[_0x52ff65(0x1b6)]();}[_0x99f71f(0x14d)](_0x5d4285){var _0x43164d=_0x99f71f;if(['presenting',_0x43164d(0x18f),'offline']['includes'](this[_0x43164d(0x18b)])||!_0x5d4285[_0x43164d(0x128)][_0x43164d(0x1b7)]||_0x5d4285[_0x43164d(0x128)][_0x43164d(0x1b7)]===this[_0x43164d(0x13b)][_0x43164d(0x149)]())return;this['_status']===_0x43164d(0x175)&&this['_startFollowing']();const _0x1f38e9=_0x5d4285[_0x43164d(0x128)][_0x43164d(0x179)];Object['values'](_0x1f38e9)[_0x43164d(0x1c1)](_0x671579=>{var _0x42f709=_0x43164d;this['_commandService'][_0x42f709(0x1bc)](_0x671579['id'],_0x671579[_0x42f709(0x1af)]?JSON[_0x42f709(0x16e)](_0x671579[_0x42f709(0x1af)]):null,{'fromCollab':!0x0});});}[_0x99f71f(0x1be)](){var _0x5d5d4f=_0x99f71f,_0x4f15f7;this['_status$'][_0x5d5d4f(0x13e)](_0x5d5d4f(0x173)),(_0x4f15f7=this[_0x5d5d4f(0x1b5)])==null||_0x4f15f7[_0x5d5d4f(0x1b6)]();}[_0x99f71f(0x159)](){var _0x132d1d=_0x99f71f;this[_0x132d1d(0x17d)]['next'](_0x132d1d(0x175)),this[_0x132d1d(0x1d4)]();}};C=Z([f(0x2,_0x3f2bf0),f(0x3,_0x5bf50d(L)),f(0x4,_0x320924)],C);function Te(){var _0x13ee24=_0x99f71f;const _0x4b5106=_0x4e95ea(I),_0x10a38b=_0x4e95ea(_0x3436e1),_0x56e939=_0x574a40(()=>_0x10a38b[_0x13ee24(0x122)](_0x5a9822[_0x13ee24(0x1c3)]),void 0x0,!0x1,[]),[_0x368e3a,_0x576e10]=_0x137d2a(null),[_0x9f95c6,_0x1994a3]=_0x137d2a(h[_0x13ee24(0x15a)]),_0x242c83=_0xf0d4a5(null);return _0x572451(()=>(_0x56e939&&_0x4b5106['getLiveShareCoordinator'](_0x56e939[_0x13ee24(0x140)]())[_0x13ee24(0x1ae)](_0x5702ba=>{var _0x33538e=_0x13ee24;_0x576e10(_0x5702ba),_0x242c83[_0x33538e(0x1d1)]=_0x5702ba[_0x33538e(0x1a9)][_0x33538e(0x1ab)](_0x9b0a2=>{_0x1994a3(_0x9b0a2);});}),()=>{var _0x31af95=_0x13ee24,_0x4d52a1;(_0x4d52a1=_0x242c83[_0x31af95(0x1d1)])==null||_0x4d52a1[_0x31af95(0x1cc)](),_0x242c83['current']=null;}),[_0x56e939,_0x4b5106]),_0x368e3a?_0x2a3f55(_0x548f32,{'align':_0x13ee24(0x1b9),'disabled':_0x9f95c6===h[_0x13ee24(0x1c5)],'className':_0x13ee24(0x12f),'overlay':_0x2a3f55($e,{'status':_0x9f95c6,'coordinator':_0x368e3a}),'children':_0x2a3f55('button',{'className':_0x449eb0(_0x13ee24(0x155),{'univer-cursor-not-allowed':_0x9f95c6===h[_0x13ee24(0x1c5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x9f95c6!==h[_0x13ee24(0x1c5)]}),'type':_0x13ee24(0x1a5),'children':_0x2a3f55(B,{'className':'univer-size-4'})})}):null;}function $e(_0x49f78c){var _0x3dc0f9=_0x99f71f;const {status:_0x549e2e,coordinator:_0x1ab40a}=_0x49f78c;switch(_0x549e2e){case h[_0x3dc0f9(0x15a)]:return _0x2a3f55(Fe,{'coordinator':_0x1ab40a});case h['FOLLOWING']:return _0x2a3f55(He,{'coordinator':_0x1ab40a});case h[_0x3dc0f9(0x1bf)]:return _0x2a3f55(je,{'coordinator':_0x1ab40a});case h[_0x3dc0f9(0x1c5)]:return _0x2a3f55(Ve,{});case h[_0x3dc0f9(0x189)]:return _0x2a3f55(Ue,{'coordinator':_0x1ab40a});default:return null;}}function Fe(_0x2ed9f3){var _0x384693=_0x99f71f;const {coordinator:_0x2f4e76}=_0x2ed9f3;return _0x590551(_0x8dd5dc,{'children':[_0x2a3f55(_0x384693(0x123),{'className':_0x384693(0x15b),'children':_0x384693(0x138)}),_0x2a3f55(_0x310295,{'onClick':()=>_0x2f4e76[_0x384693(0x1d8)](),'children':_0x384693(0x197)})]});}function He(_0x27945f){var _0x37e301=_0x99f71f;const {coordinator:_0x4ec7d3}=_0x27945f;return _0x590551(_0x8dd5dc,{'children':[_0x2a3f55(_0x37e301(0x123),{'className':_0x37e301(0x15b),'children':_0x37e301(0x13c)}),_0x2a3f55(_0x310295,{'onClick':()=>_0x4ec7d3[_0x37e301(0x158)](),'children':_0x37e301(0x1c2)})]});}function je(_0x4c3abf){var _0x10124c=_0x99f71f;const {coordinator:_0x17ce5d}=_0x4c3abf;return _0x590551(_0x8dd5dc,{'children':[_0x2a3f55(_0x10124c(0x123),{'className':_0x10124c(0x15b),'children':_0x10124c(0x154)}),_0x2a3f55(_0x310295,{'variant':_0x10124c(0x14a),'onClick':()=>_0x17ce5d[_0x10124c(0x19c)](),'children':_0x10124c(0x16f)})]});}function Ue(_0x268a30){var _0x54c859=_0x99f71f;const {coordinator:_0x34aba3}=_0x268a30;return _0x590551(_0x8dd5dc,{'children':[_0x2a3f55(_0x54c859(0x123),{'className':_0x54c859(0x15b),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x2a3f55(_0x310295,{'variant':_0x54c859(0x1a0),'onClick':()=>_0x34aba3[_0x54c859(0x188)](),'children':_0x54c859(0x132)})]});}function Ve(){var _0x3be389=_0x99f71f;return _0x2a3f55(_0x8dd5dc,{'children':_0x3be389(0x1cb)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x48d924,_0x399bb8,_0x314bfd,_0x2105a7)=>{for(var _0x3840fa=_0x2105a7>0x1?void 0x0:_0x2105a7?Me(_0x399bb8,_0x314bfd):_0x399bb8,_0x5efbbe=_0x48d924['length']-0x1,_0x438219;_0x5efbbe>=0x0;_0x5efbbe--)(_0x438219=_0x48d924[_0x5efbbe])&&(_0x3840fa=_0x438219(_0x3840fa)||_0x3840fa);return _0x3840fa;},$=(_0x45c252,_0x307f9b)=>(_0x4b9ff1,_0x306e6a)=>_0x307f9b(_0x4b9ff1,_0x306e6a,_0x45c252);let b=class extends _0x59f156{constructor(_0x26d55f,_0x4c270c){var _0x550b07=_0x99f71f;super(),this[_0x550b07(0x178)]=_0x26d55f,this[_0x550b07(0x19a)]=_0x4c270c,this[_0x550b07(0x17a)]();}['_mountLiveShare'](){var _0x5ddb1e=_0x99f71f;this[_0x5ddb1e(0x186)](this[_0x5ddb1e(0x19a)][_0x5ddb1e(0x121)](_0xa95625[_0x5ddb1e(0x160)],()=>_0x11d29b(Te,this[_0x5ddb1e(0x178)])));}};b=ke([$(0x0,_0x5bf50d(_0x473fc7)),$(0x1,_0x359339)],b);var Ge=Object['defineProperty'],We=Object['getOwnPropertyDescriptor'],Ye=(_0x1bce5a,_0xbcbf3,_0x185b0d)=>_0xbcbf3 in _0x1bce5a?Ge(_0x1bce5a,_0xbcbf3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x185b0d}):_0x1bce5a[_0xbcbf3]=_0x185b0d,Be=(_0x9a1753,_0x118464,_0x38683e,_0x2a9f63)=>{var _0x31da93=_0x99f71f;for(var _0x4cacaf=_0x2a9f63>0x1?void 0x0:_0x2a9f63?We(_0x118464,_0x38683e):_0x118464,_0x2c44cf=_0x9a1753[_0x31da93(0x1d6)]-0x1,_0x2b0802;_0x2c44cf>=0x0;_0x2c44cf--)(_0x2b0802=_0x9a1753[_0x2c44cf])&&(_0x4cacaf=_0x2b0802(_0x4cacaf)||_0x4cacaf);return _0x4cacaf;},F=(_0x1fe0dd,_0x32e7c7)=>(_0x58e9cc,_0x52e7d0)=>_0x32e7c7(_0x58e9cc,_0x52e7d0,_0x1fe0dd),J=(_0x521c6d,_0x11d7bf,_0x5b46d9)=>Ye(_0x521c6d,typeof _0x11d7bf!='symbol'?_0x11d7bf+'':_0x11d7bf,_0x5b46d9);const Ze=_0x99f71f(0x17f);let O=class extends _0x176cff{constructor(_0x526c39=T,_0x102c8e,_0x3c6765){var _0x4adc01=_0x99f71f;super(),this['_config']=_0x526c39,this[_0x4adc01(0x178)]=_0x102c8e,this[_0x4adc01(0x1b4)]=_0x3c6765;const {..._0x11d4e3}=_0xae2b6b({},T,this['_config']);this['_configService'][_0x4adc01(0x153)](Oe,_0x11d4e3);}[_0x99f71f(0x1a4)](){var _0x366f57=_0x99f71f;_0x3ac27d(this['_injector'],_0x250a49([[L],[I],[m],[b]],this['_config'][_0x366f57(0x16d)])),_0x25eed6(this['_injector'],[[m]]);}[_0x99f71f(0x1ad)](){var _0x244d38=_0x99f71f;_0x25eed6(this[_0x244d38(0x178)],[[b]]);}};J(O,_0x99f71f(0x166),_0x5a9822['UNIVER_UNKNOWN']),J(O,_0x99f71f(0x1cf),Ze),O=Be([_0x34567d(_0x4a8a68),F(0x1,_0x5bf50d(_0x473fc7)),F(0x2,_0x3f2bf0)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x20e263=_0x3185;(function(_0x3abcc1,_0x452f8e){var _0xba6fa8=_0x3185,_0x3819dc=_0x3abcc1();while(!![]){try{var _0x8939a8=parseInt(_0xba6fa8(0xcf))/0x1+parseInt(_0xba6fa8(0x106))/0x2+-parseInt(_0xba6fa8(0x118))/0x3*(parseInt(_0xba6fa8(0x101))/0x4)+-parseInt(_0xba6fa8(0xdf))/0x5+-parseInt(_0xba6fa8(0x91))/0x6+-parseInt(_0xba6fa8(0x99))/0x7+parseInt(_0xba6fa8(0x93))/0x8;if(_0x8939a8===_0x452f8e)break;else _0x3819dc['push'](_0x3819dc['shift']());}catch(_0x21996c){_0x3819dc['push'](_0x3819dc['shift']());}}}(_0x4966,0x1d93b));var q=Object[_0x20e263(0xb5)],z=(_0x467f91,_0x4259ae,_0x49f6db)=>_0x4259ae in _0x467f91?q(_0x467f91,_0x4259ae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49f6db}):_0x467f91[_0x4259ae]=_0x49f6db,d=(_0x169ea9,_0x77f2dd,_0x21970b)=>z(_0x169ea9,typeof _0x77f2dd!=_0x20e263(0xd1)?_0x77f2dd+'':_0x77f2dd,_0x21970b);function _0x4966(){var _0x16bf78=['getOwnPropertyDescriptor','send','propertyIsEnumerable','Present\x20this\x20document','mutations','dispose','registerInitialStateReporter','reverse','init','className','_uiPartsService','Stop\x20following','4bVMNyI','default','setConfig','registerSharedOperation','concat','356890pZFxsp','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','attrs','executeCommand','disposeWithMe','LIVESHARE_FETCH_OPERATIONS','_liveShareService','LiveShareIcon','_init','subscribe','_stopFollowing','function','url(#$1','shouldShareOperation','_stopPresenting','data','call','extend','522747TaPqtN','has','replace','_handleOffline','_sharedOperations','not-following','button','asObservable','1em','_startFollowing','stringify','apply','OFFLINE','Start','presenter','displayName','getLiveShareCoordinator','PRESENTING','getConfig','operations','getTypeOfUnitDisposed$','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','idle','UniverIcon','xlink:href','includes','NOT_FOLLOWING','find','_beIdle','text','icon','mask','FOLLOWING','div','add','You\x27are\x20offline.','_handleOnline','_mountLiveShare','pipe','next','assign','http://www.w3.org/2000/svg','958002OFIUSp','dispose$','4400456tWSnKs','_status','delete','getOwnPropertySymbols','_injector','_startLiveShareCoordinator','1521786UfmFry','presenting','You\x27re\x20presenting\x20the\x20document','_commandDisposable','_entities','parse','tryStartPresenting','NEW_CHANGESETS','length','colorChannel1','live-share.config','OPERATION','offline','stopFollowing','startFollowing','_presenter','_fetchOperations','onCommandExecuted','LIVESHARE_OPERATION','toString','onRendered','fill','values','unsubscribe','following','Start\x20following','use','_collabSession','defineProperty','children','_commandService','prototype','onStarting','LIVESHARE_REQUEST_HOST','stopPresenting','params','LIVESHARE_NEW_HOST','idSuffix','IDLE','_startPresenting','memberID','path','current','live-share-icon','random','type','UNIVER_LIVE_SHARE_PLUGIN','getMemberID','univer-size-4','status$','HEADER_MENU','end','univer-mb-3\x20univer-w-full\x20univer-text-sm','substring','132575oUZqzd','entries','symbol','override','hasOwnProperty','_unitID','pluginName','string','evenodd','_configService','getInitialStates','complete','getUnitId','tag','_reporters','_config','943080LtxteK','You\x27re\x20following\x20the\x20presenter','set','indexOf','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_status$','currentColor','map','get','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','getValue','_handleNewHost','trim','forEach','_univerInstanceService','defIds','_handleTerminate','none','LIVESHARE_TERMINATE','then','_handleNewChangeSets','SAME_OPERATION_SHARE_INTERVAL'];_0x4966=function(){return _0x16bf78;};return _0x4966();}import{CollaborationSessionService as _0x4fba1b,SessionStatus as _0x2ac890,UniverCollaborationClientPlugin as _0x2e501b}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4235cb,toDisposable as _0x28d059,Inject as _0x477829,IUniverInstanceService as _0x2a2538,Injector as _0x596e84,IConfigService as _0x3dbfad,ICommandService as _0x16ca88,RxDisposable as _0x15a336,UniverInstanceType as _0x923bcb,DisposableCollection as _0x4602b7,CommandType as _0x54c29a,DependentOn as _0x3828c9,Plugin as _0x2e0281,merge as _0x1071d7,registerDependencies as _0x13ef7a,mergeOverrideWithDependencies as _0x1011dd,touchDependencies as _0x444cf7}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x17f582,InsertSheetMutation as _0x2e6a01}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x3334e3,SetScrollOperation as _0x294b80}from'@univerjs/sheets-ui';import{useDependency as _0x541ea5,useObservable as _0x478313,IUIPartsService as _0x240a99,BuiltInUIPart as _0x36dfa4,connectInjector as _0x39b9e0}from'@univerjs/ui';import{jsx as _0x19fc7b,jsxs as _0x22186f,Fragment as _0x47aa9a}from'react/jsx-runtime';import{Dropdown as _0x367720,clsx as _0x17d479,Button as _0x6ffcc8}from'@univerjs/design';import{forwardRef as _0x4578d8,useRef as _0x4bb260,createElement as _0x567312,useState as _0xf852c6,useEffect as _0x334c0f}from'react';import{CollaborationEvent as _0x3d0f98,parseProtocolChangeset as _0x433ee0}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x4de41f,Subject as _0x18dcc9}from'rxjs';import{takeUntil as _0xa77adc,throttleTime as _0x4b2015}from'rxjs/operators';const Oe=_0x20e263(0xa3),T={};class L extends _0x4235cb{constructor(){var _0x59ee94=_0x20e263;super(...arguments),d(this,_0x59ee94(0x11c),new Set()),d(this,_0x59ee94(0xdd),new Set());}[_0x20e263(0x104)](_0x248617){var _0x5bcaff=_0x20e263;return this[_0x5bcaff(0x11c)][_0x5bcaff(0x13a)](_0x248617),_0x28d059(()=>this[_0x5bcaff(0x11c)][_0x5bcaff(0x95)](_0x248617));}[_0x20e263(0xfb)](_0x569b1e){var _0x497786=_0x20e263;return this[_0x497786(0xdd)][_0x497786(0x13a)](_0x569b1e),_0x28d059(()=>this[_0x497786(0xdd)][_0x497786(0x95)](_0x569b1e));}['shouldShareOperation'](_0x5d6e63){var _0x45a49b=_0x20e263;return this[_0x45a49b(0x11c)][_0x45a49b(0x119)](_0x5d6e63);}[_0x20e263(0xd9)](_0x520cd2){var _0x150059=_0x20e263;return Array['from'](this[_0x150059(0xdd)])[_0x150059(0xe6)](_0x4a1398=>_0x4a1398(_0x520cd2));}}var Ee=Object[_0x20e263(0xf5)],we=(_0x5d88ca,_0x1911d8,_0x4842f3,_0x247748)=>{var _0x12e3a6=_0x20e263;for(var _0x3272a6=_0x247748>0x1?void 0x0:_0x247748?Ee(_0x1911d8,_0x4842f3):_0x1911d8,_0x37dde6=_0x5d88ca[_0x12e3a6(0xa1)]-0x1,_0x2c7948;_0x37dde6>=0x0;_0x37dde6--)(_0x2c7948=_0x5d88ca[_0x37dde6])&&(_0x3272a6=_0x2c7948(_0x3272a6)||_0x3272a6);return _0x3272a6;},Ne=(_0x533b12,_0x1eb74f)=>(_0x5d07d2,_0xc42c6e)=>_0x1eb74f(_0x5d07d2,_0xc42c6e,_0x533b12);let m=class extends _0x4235cb{constructor(_0x55aa4a){var _0x5a3dad=_0x20e263;super(),this[_0x5a3dad(0x10c)]=_0x55aa4a,this[_0x5a3dad(0x10e)]();}[_0x20e263(0x10e)](){var _0x2c4a77=_0x20e263;[_0x3334e3['id'],_0x294b80['id'],_0x17f582['id']][_0x2c4a77(0xec)](_0x555807=>{var _0x1c5345=_0x2c4a77;this[_0x1c5345(0x10a)](this[_0x1c5345(0x10c)][_0x1c5345(0x104)](_0x555807));});}};m=we([Ne(0x0,_0x477829(L))],m);var c=function(){var _0x171795=_0x20e263;return c=Object[_0x171795(0x8f)]||function(_0x5ae389){var _0x4180d2=_0x171795;for(var _0x12cc8d,_0x5f57fb=0x1,_0x197941=arguments[_0x4180d2(0xa1)];_0x5f57fb<_0x197941;_0x5f57fb++){_0x12cc8d=arguments[_0x5f57fb];for(var _0x2db896 in _0x12cc8d)Object[_0x4180d2(0xb8)][_0x4180d2(0xd3)]['call'](_0x12cc8d,_0x2db896)&&(_0x5ae389[_0x2db896]=_0x12cc8d[_0x2db896]);}return _0x5ae389;},c[_0x171795(0x123)](this,arguments);},Ce=function(_0x1295f6,_0x237520){var _0x53d7f3=_0x20e263,_0x270794={};for(var _0x3cdc53 in _0x1295f6)Object[_0x53d7f3(0xb8)][_0x53d7f3(0xd3)]['call'](_0x1295f6,_0x3cdc53)&&_0x237520[_0x53d7f3(0xe2)](_0x3cdc53)<0x0&&(_0x270794[_0x3cdc53]=_0x1295f6[_0x3cdc53]);if(_0x1295f6!=null&&typeof Object[_0x53d7f3(0x96)]==_0x53d7f3(0x111)){for(var _0x6c1e38=0x0,_0x3cdc53=Object[_0x53d7f3(0x96)](_0x1295f6);_0x6c1e38<_0x3cdc53[_0x53d7f3(0xa1)];_0x6c1e38++)_0x237520['indexOf'](_0x3cdc53[_0x6c1e38])<0x0&&Object[_0x53d7f3(0xb8)][_0x53d7f3(0xf7)][_0x53d7f3(0x116)](_0x1295f6,_0x3cdc53[_0x6c1e38])&&(_0x270794[_0x3cdc53[_0x6c1e38]]=_0x1295f6[_0x3cdc53[_0x6c1e38]]);}return _0x270794;},W=_0x4578d8(function(_0x414349,_0x2038d0){var _0x56bba9=_0x20e263,_0x2329d9=_0x414349['icon'],_0x344c75=_0x414349['id'],_0x547beb=_0x414349[_0x56bba9(0xfe)],_0x414ac9=_0x414349['extend'],_0x3dede0=Ce(_0x414349,[_0x56bba9(0x136),'id','className',_0x56bba9(0x117)]),_0x15113e='univerjs-icon\x20univerjs-icon-'[_0x56bba9(0x105)](_0x344c75,'\x20')[_0x56bba9(0x105)](_0x547beb||'')[_0x56bba9(0xeb)](),_0x45dc83=_0x4bb260('_'['concat'](Le()));return Y(_0x2329d9,''[_0x56bba9(0x105)](_0x344c75),{'defIds':_0x2329d9[_0x56bba9(0xee)],'idSuffix':_0x45dc83[_0x56bba9(0xc3)]},c({'ref':_0x2038d0,'className':_0x15113e},_0x3dede0),_0x414ac9);});function Y(_0x4fc672,_0xe83d94,_0x22e47c,_0x21701e,_0x4039bc){var _0x38b22d=_0x20e263;return _0x567312(_0x4fc672[_0x38b22d(0xdc)],c(c({'key':_0xe83d94},De(_0x4fc672,_0x22e47c,_0x4039bc)),_0x21701e),(xe(_0x4fc672,_0x22e47c)[_0x38b22d(0xb6)]||[])['map'](function(_0xf49e57,_0x4d8fb9){var _0x374044=_0x38b22d;return Y(_0xf49e57,''[_0x374044(0x105)](_0xe83d94,'-')[_0x374044(0x105)](_0x4fc672[_0x374044(0xdc)],'-')[_0x374044(0x105)](_0x4d8fb9),_0x22e47c,void 0x0,_0x4039bc);}));}function De(_0x43c1de,_0x36183e,_0x455da8){var _0xb1dc6e=_0x20e263,_0x1bd5a0=c({},_0x43c1de[_0xb1dc6e(0x108)]);_0x455da8!=null&&_0x455da8[_0xb1dc6e(0xa2)]&&_0x1bd5a0[_0xb1dc6e(0xae)]==='colorChannel1'&&(_0x1bd5a0[_0xb1dc6e(0xae)]=_0x455da8['colorChannel1']),_0x43c1de[_0xb1dc6e(0xdc)]===_0xb1dc6e(0x137)&&_0x1bd5a0['id']&&(_0x1bd5a0['id']=_0x1bd5a0['id']+_0x36183e['idSuffix']),Object[_0xb1dc6e(0xd0)](_0x1bd5a0)[_0xb1dc6e(0xec)](function(_0x327fdb){var _0x34ed96=_0xb1dc6e,_0x1a12c8=_0x327fdb[0x0],_0x188875=_0x327fdb[0x1];_0x1a12c8==='mask'&&typeof _0x188875==_0x34ed96(0xd6)&&(_0x1bd5a0[_0x1a12c8]=_0x188875['replace'](/url\(#(.*)\)/,_0x34ed96(0x112)[_0x34ed96(0x105)](_0x36183e[_0x34ed96(0xbe)],')')));});var _0x3de541=_0x36183e[_0xb1dc6e(0xee)];return!_0x3de541||_0x3de541[_0xb1dc6e(0xa1)]===0x0||(_0x43c1de[_0xb1dc6e(0xdc)]===_0xb1dc6e(0xb3)&&_0x1bd5a0[_0xb1dc6e(0x130)]&&(_0x1bd5a0[_0xb1dc6e(0x130)]=_0x1bd5a0[_0xb1dc6e(0x130)]+_0x36183e['idSuffix']),Object[_0xb1dc6e(0xd0)](_0x1bd5a0)[_0xb1dc6e(0xec)](function(_0x15eee5){var _0x277b8f=_0xb1dc6e,_0x1f64db=_0x15eee5[0x0],_0x189d75=_0x15eee5[0x1];typeof _0x189d75==_0x277b8f(0xd6)&&(_0x1bd5a0[_0x1f64db]=_0x189d75[_0x277b8f(0x11a)](/url\(#(.*)\)/,_0x277b8f(0x112)[_0x277b8f(0x105)](_0x36183e[_0x277b8f(0xbe)],')')));})),_0x1bd5a0;}function xe(_0x462caa,_0x331370){var _0x11f2cd=_0x20e263,_0x4f8e53,_0x3925d4=_0x331370[_0x11f2cd(0xee)];return!_0x3925d4||_0x3925d4['length']===0x0?_0x462caa:_0x462caa['tag']==='defs'&&(!((_0x4f8e53=_0x462caa[_0x11f2cd(0xb6)])===null||_0x4f8e53===void 0x0)&&_0x4f8e53[_0x11f2cd(0xa1)])?c(c({},_0x462caa),{'children':_0x462caa[_0x11f2cd(0xb6)]['map'](function(_0xabcda){var _0x19cb7f=_0x11f2cd;return typeof _0xabcda['attrs']['id']==_0x19cb7f(0xd6)&&_0x3925d4&&_0x3925d4['includes'](_0xabcda[_0x19cb7f(0x108)]['id'])?c(c({},_0xabcda),{'attrs':c(c({},_0xabcda[_0x19cb7f(0x108)]),{'id':_0xabcda[_0x19cb7f(0x108)]['id']+_0x331370[_0x19cb7f(0xbe)]})}):_0xabcda;})}):_0x462caa;}function Le(){var _0x363c95=_0x20e263;return Math[_0x363c95(0xc5)]()[_0x363c95(0xac)](0x24)[_0x363c95(0xce)](0x2,0x8);}W[_0x20e263(0x127)]=_0x20e263(0x12f);var ye={'tag':'svg','attrs':{'xmlns':_0x20e263(0x90),'fill':_0x20e263(0xf0),'viewBox':'0\x200\x2017\x2017','width':_0x20e263(0x120),'height':_0x20e263(0x120)},'children':[{'tag':_0x20e263(0xc2),'attrs':{'fill':_0x20e263(0xe5),'d':_0x20e263(0x107)}},{'tag':_0x20e263(0xc2),'attrs':{'fill':_0x20e263(0xe5),'d':_0x20e263(0xe8),'fillRule':_0x20e263(0xd7),'clipRule':_0x20e263(0xd7)}}]},B=_0x4578d8(function(_0x595fed,_0x572533){var _0x3310d8=_0x20e263;return _0x567312(W,Object[_0x3310d8(0x8f)]({},_0x595fed,{'id':_0x3310d8(0xc4),'ref':_0x572533,'icon':ye}));});B[_0x20e263(0x127)]=_0x20e263(0x10d);var Re=Object[_0x20e263(0xf5)],Z=(_0x5b20bf,_0x2895ae,_0x823ab2,_0x1a2141)=>{var _0x45a4fd=_0x20e263;for(var _0x153b37=_0x1a2141>0x1?void 0x0:_0x1a2141?Re(_0x2895ae,_0x823ab2):_0x2895ae,_0x2ba596=_0x5b20bf[_0x45a4fd(0xa1)]-0x1,_0x557a72;_0x2ba596>=0x0;_0x2ba596--)(_0x557a72=_0x5b20bf[_0x2ba596])&&(_0x153b37=_0x557a72(_0x153b37)||_0x153b37);return _0x153b37;},f=(_0x5a87ae,_0x22a733)=>(_0x5a0899,_0x8c7302)=>_0x22a733(_0x5a0899,_0x8c7302,_0x5a87ae);let I=class extends _0x15a336{constructor(_0x3bb513,_0x35e161,_0x124405){var _0x45a30d=_0x20e263;super(),d(this,_0x45a30d(0x9d),new Map()),(this[_0x45a30d(0xed)]=_0x3bb513,this[_0x45a30d(0x97)]=_0x35e161,this['_collabSessionService']=_0x124405,this[_0x45a30d(0x10e)]());}async[_0x20e263(0x128)](_0x399a75){var _0x5d4be5=_0x20e263;return this[_0x5d4be5(0x9d)][_0x5d4be5(0x119)](_0x399a75)||await this[_0x5d4be5(0x98)](_0x399a75),this[_0x5d4be5(0x9d)]['get'](_0x399a75);}[_0x20e263(0x10e)](){var _0x3f777b=_0x20e263;this[_0x3f777b(0xed)]['getTypeOfUnitAdded$'](_0x923bcb['UNIVER_SHEET'])[_0x3f777b(0x8d)](_0xa77adc(this['dispose$']))[_0x3f777b(0x10f)](async _0x5d59ce=>{var _0x5e0987=_0x3f777b;const _0x345d18=_0x5d59ce[_0x5e0987(0xdb)]();this[_0x5e0987(0x9d)][_0x5e0987(0x119)](_0x345d18)||this['_startLiveShareCoordinator'](_0x345d18);}),this[_0x3f777b(0xed)][_0x3f777b(0x12c)](_0x923bcb['UNIVER_SHEET'])[_0x3f777b(0x8d)](_0xa77adc(this[_0x3f777b(0x92)]))[_0x3f777b(0x10f)](_0x51d195=>{var _0xc5cb3d=_0x3f777b;const _0x129a8d=_0x51d195[_0xc5cb3d(0xdb)](),_0x449639=this[_0xc5cb3d(0x9d)][_0xc5cb3d(0xe7)](_0x129a8d);_0x449639==null||_0x449639[_0xc5cb3d(0xfa)]();});}async[_0x20e263(0x98)](_0x2b9b48){var _0x56ac0d=_0x20e263;const _0x1241a9=await this['_collabSessionService']['requireSession'](_0x2b9b48),_0x577b0d=this['_injector']['createInstance'](C,_0x2b9b48,_0x1241a9);return _0x577b0d[_0x56ac0d(0xfd)](),this[_0x56ac0d(0x9d)][_0x56ac0d(0xe1)](_0x2b9b48,_0x577b0d),_0x577b0d;}};I=Z([f(0x0,_0x2a2538),f(0x1,_0x477829(_0x596e84)),f(0x2,_0x477829(_0x4fba1b))],I);var h=(_0x4a7705=>(_0x4a7705[_0x20e263(0x124)]=_0x20e263(0xa5),_0x4a7705['IDLE']='idle',_0x4a7705['FOLLOWING']=_0x20e263(0xb1),_0x4a7705[_0x20e263(0x132)]=_0x20e263(0x11d),_0x4a7705[_0x20e263(0x129)]=_0x20e263(0x9a),_0x4a7705))(h||{});const Pe=_0x20e263(0xf4),Ae=0xc8;let C=class extends _0x15a336{constructor(_0x4b04f4,_0x381b9a,_0x37f2c8,_0x1ba1f8,_0x265503){var _0x2649a2=_0x20e263;super(),d(this,_0x2649a2(0xe4),new _0x4de41f(_0x2649a2(0x12e))),d(this,_0x2649a2(0xca),this['_status$'][_0x2649a2(0x11f)]()),d(this,_0x2649a2(0x10e),!0x1),d(this,_0x2649a2(0x9c),null),d(this,_0x2649a2(0xa8),null),(this[_0x2649a2(0xd4)]=_0x4b04f4,this[_0x2649a2(0xb4)]=_0x381b9a,this[_0x2649a2(0xd8)]=_0x37f2c8,this[_0x2649a2(0x10c)]=_0x1ba1f8,this[_0x2649a2(0xb7)]=_0x265503);}get[_0x20e263(0x94)](){var _0x4c6765=_0x20e263;return this[_0x4c6765(0xe4)][_0x4c6765(0xe9)]();}['dispose'](){var _0x14c0d1=_0x20e263,_0x3aec0a;(_0x3aec0a=this[_0x14c0d1(0x9c)])==null||_0x3aec0a[_0x14c0d1(0xfa)](),this['_status$']['next'](_0x14c0d1(0x12e)),this[_0x14c0d1(0xe4)][_0x14c0d1(0xda)]();}[_0x20e263(0xfd)](){var _0x482963=_0x20e263;this[_0x482963(0x10e)]||(this[_0x482963(0x10e)]=!0x0,this[_0x482963(0xb4)]['sessionStatus$']['pipe'](_0xa77adc(this[_0x482963(0x92)]))[_0x482963(0x10f)](_0x43b3ab=>{var _0x47394f=_0x482963;switch(_0x43b3ab){case _0x2ac890[_0x47394f(0x124)]:this[_0x47394f(0x11b)]();break;case _0x2ac890['ONLINE']:this[_0x47394f(0x8b)]();break;}}),this[_0x482963(0xb4)]['event$'][_0x482963(0x8d)](_0xa77adc(this[_0x482963(0x92)]))[_0x482963(0x10f)](_0x9e56c8=>{var _0x5c4fc3=_0x482963;const {eventID:_0x51f470}=_0x9e56c8;switch(_0x51f470){case _0x3d0f98[_0x5c4fc3(0xbd)]:this['_handleNewHost'](_0x9e56c8);break;case _0x3d0f98[_0x5c4fc3(0xab)]:this['_handleOperation'](_0x9e56c8);break;case _0x3d0f98[_0x5c4fc3(0xf1)]:this[_0x5c4fc3(0xef)]();break;case _0x3d0f98[_0x5c4fc3(0xa0)]:this['_handleNewChangeSets'](_0x9e56c8);break;}}));}[_0x20e263(0x9f)](){var _0x5a8613=_0x20e263;this['_collabSession'][_0x5a8613(0xf6)]({'eventID':_0x3d0f98[_0x5a8613(0xba)],'data':{'unitID':this[_0x5a8613(0xd4)],'userID':this[_0x5a8613(0xb4)][_0x5a8613(0xc8)]()}},this[_0x5a8613(0xd4)]);}['stopPresenting'](){var _0x4c621e=_0x20e263;this[_0x4c621e(0x94)]===_0x4c621e(0x9a)&&(this[_0x4c621e(0xe4)][_0x4c621e(0x8e)](_0x4c621e(0x12e)),this[_0x4c621e(0xb4)]['send']({'eventID':_0x3d0f98[_0x4c621e(0xf1)],'data':{'unitID':this[_0x4c621e(0xd4)]}},this[_0x4c621e(0xd4)]));}[_0x20e263(0xa7)](){var _0x55242a=_0x20e263;this[_0x55242a(0x94)]===_0x55242a(0x11d)&&(this[_0x55242a(0xe4)]['next'](_0x55242a(0xb1)),this[_0x55242a(0x121)]());}['stopFollowing'](){var _0x3e19ea=_0x20e263;this['_status']===_0x3e19ea(0xb1)&&this['_stopFollowing']();}[_0x20e263(0xea)](_0x36f943){var _0x27ffea=_0x20e263;const {presenter:_0x1a47ca}=_0x36f943[_0x27ffea(0x115)],_0x1f0551=this[_0x27ffea(0xb4)]['getMemberID']();this[_0x27ffea(0xa8)]=_0x1a47ca,_0x1a47ca===_0x1f0551?(this[_0x27ffea(0x110)](),this[_0x27ffea(0xc0)]()):this['_status']!==_0x27ffea(0x11d)&&(this[_0x27ffea(0x114)](),this['_startFollowing']());}[_0x20e263(0xa9)](){var _0x1cbdaa=_0x20e263;const _0xfc8ca5={'eventID':_0x3d0f98[_0x1cbdaa(0x10b)]};this[_0x1cbdaa(0xb4)]['send'](_0xfc8ca5,this['_unitID']);}[_0x20e263(0xef)](){var _0x2a816b=_0x20e263;this[_0x2a816b(0xa8)]=null,this[_0x2a816b(0x94)]!==_0x2a816b(0x9a)&&this['_beIdle']();}[_0x20e263(0xf3)](_0x2fe5cf){var _0x135e11=_0x20e263;if(this[_0x135e11(0x94)]==='following'&&this[_0x135e11(0xa8)]===_0x2fe5cf['data'][_0x135e11(0xc1)]){const _0xca944b=_0x433ee0(_0x2fe5cf[_0x135e11(0x115)])[_0x135e11(0xf9)][_0x135e11(0xfc)]()[_0x135e11(0x133)](_0x1d5a7c=>_0x1d5a7c['id']===_0x2e6a01['id']);if(_0xca944b){const _0x288683=_0xca944b[_0x135e11(0xbc)]['unitId'],_0x2dec6e=_0xca944b['params']['sheet']['id'];setTimeout(()=>{var _0x1209a1=_0x135e11;this[_0x1209a1(0xb7)]['executeCommand'](_0x17f582['id'],{'unitId':_0x288683,'subUnitId':_0x2dec6e},{'fromCollab':!0x0});});}}}[_0x20e263(0xc0)](){var _0x1155df=_0x20e263;this[_0x1155df(0xe4)][_0x1155df(0x8e)]('presenting');const _0x53379b=new Map(),_0x47b6d1=this[_0x1155df(0x9c)]=new _0x4602b7();_0x47b6d1[_0x1155df(0x13a)](_0x28d059(()=>{var _0x3a4cd4=_0x1155df;_0x53379b[_0x3a4cd4(0xec)](_0x22ae75=>_0x22ae75[_0x3a4cd4(0xda)]()),_0x53379b['clear']();})),_0x47b6d1[_0x1155df(0x13a)](this[_0x1155df(0xb7)][_0x1155df(0xaa)](_0x3acecd=>{var _0x170390=_0x1155df,_0x544310;if(_0x3acecd['type']!==_0x54c29a[_0x170390(0xa4)]||!this['_liveShareService'][_0x170390(0x113)](_0x3acecd['id']))return;const {id:_0x18e33e}=_0x3acecd;let _0x45ec4d;_0x53379b['has'](_0x18e33e)?_0x45ec4d=_0x53379b[_0x170390(0xe7)](_0x18e33e):(_0x45ec4d=new _0x18dcc9(),_0x53379b[_0x170390(0xe1)](_0x18e33e,_0x45ec4d),_0x45ec4d[_0x170390(0x8d)](_0x4b2015((_0x544310=this['_configService'][_0x170390(0x12a)](Pe))!=null?_0x544310:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x170390(0x10f)](_0x53f5c2=>{var _0x4cc5b0=_0x170390;this[_0x4cc5b0(0xb4)][_0x4cc5b0(0xf6)]({'eventID':_0x3d0f98[_0x4cc5b0(0xab)],'data':{'unitID':this['_unitID'],'operations':{[_0x53f5c2['id']]:{'id':_0x53f5c2['id'],'params':JSON[_0x4cc5b0(0x122)](_0x53f5c2[_0x4cc5b0(0xbc)])}}}},this[_0x4cc5b0(0xd4)]);})),_0x45ec4d[_0x170390(0x8e)](_0x3acecd);})),this[_0x1155df(0x10c)][_0x1155df(0xd9)](this['_unitID'])[_0x1155df(0xec)](_0x51c73d=>this[_0x1155df(0xb4)]['send']({'eventID':_0x3d0f98[_0x1155df(0xab)],'data':{'unitID':this[_0x1155df(0xd4)],'operations':{[_0x51c73d['id']]:{'id':_0x51c73d['id'],'params':JSON[_0x1155df(0x122)](_0x51c73d['params'])}}}},this['_unitID']));}[_0x20e263(0x114)](){var _0x2e9785=_0x20e263,_0x5929e5;this[_0x2e9785(0xe4)]['next'](_0x2e9785(0x12e)),(_0x5929e5=this[_0x2e9785(0x9c)])==null||_0x5929e5['dispose'](),this[_0x2e9785(0x9c)]=null;}[_0x20e263(0x121)](){var _0x153173=_0x20e263,_0x16f55f;(_0x16f55f=this[_0x153173(0x9c)])==null||_0x16f55f['dispose'](),this[_0x153173(0xe4)][_0x153173(0x8e)](_0x153173(0xb1));}[_0x20e263(0x134)](){var _0x1c4f06=_0x20e263,_0x1d3ea5;this[_0x1c4f06(0xe4)][_0x1c4f06(0x8e)]('idle'),(_0x1d3ea5=this[_0x1c4f06(0x9c)])==null||_0x1d3ea5[_0x1c4f06(0xfa)](),this[_0x1c4f06(0x9c)]=null;}['_stopFollowing'](){var _0x3b5805=_0x20e263,_0x12fcdd;this[_0x3b5805(0xe4)][_0x3b5805(0x8e)]('not-following'),(_0x12fcdd=this[_0x3b5805(0x9c)])==null||_0x12fcdd[_0x3b5805(0xfa)]();}['_handleOperation'](_0x410891){var _0x25aab4=_0x20e263;if(['presenting',_0x25aab4(0x11d),_0x25aab4(0xa5)][_0x25aab4(0x131)](this[_0x25aab4(0x94)])||!_0x410891[_0x25aab4(0x115)][_0x25aab4(0x126)]||_0x410891['data'][_0x25aab4(0x126)]===this[_0x25aab4(0xb4)][_0x25aab4(0xc8)]())return;this[_0x25aab4(0x94)]===_0x25aab4(0x12e)&&this[_0x25aab4(0x121)]();const _0x3bdf79=_0x410891[_0x25aab4(0x115)][_0x25aab4(0x12b)];Object[_0x25aab4(0xaf)](_0x3bdf79)[_0x25aab4(0xec)](_0x55ecd7=>{var _0x1952e1=_0x25aab4;this[_0x1952e1(0xb7)][_0x1952e1(0x109)](_0x55ecd7['id'],_0x55ecd7[_0x1952e1(0xbc)]?JSON[_0x1952e1(0x9e)](_0x55ecd7[_0x1952e1(0xbc)]):null,{'fromCollab':!0x0});});}[_0x20e263(0x11b)](){var _0x51dd6d=_0x20e263,_0x515e0d;this[_0x51dd6d(0xe4)]['next'](_0x51dd6d(0xa5)),(_0x515e0d=this['_commandDisposable'])==null||_0x515e0d[_0x51dd6d(0xfa)]();}[_0x20e263(0x8b)](){var _0x2ef389=_0x20e263;this[_0x2ef389(0xe4)]['next'](_0x2ef389(0x12e)),this[_0x2ef389(0xa9)]();}};C=Z([f(0x2,_0x3dbfad),f(0x3,_0x477829(L)),f(0x4,_0x16ca88)],C);function Te(){var _0x5847b0=_0x20e263;const _0x4dd1d9=_0x541ea5(I),_0x48c791=_0x541ea5(_0x2a2538),_0x1d0f47=_0x478313(()=>_0x48c791['getCurrentTypeOfUnit$'](_0x923bcb['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5b8761,_0x52d54b]=_0xf852c6(null),[_0x4f061b,_0x3a6188]=_0xf852c6(h[_0x5847b0(0xbf)]),_0xb47be=_0x4bb260(null);return _0x334c0f(()=>(_0x1d0f47&&_0x4dd1d9['getLiveShareCoordinator'](_0x1d0f47['getUnitId']())[_0x5847b0(0xf2)](_0x3d9b02=>{var _0x27a86a=_0x5847b0;_0x52d54b(_0x3d9b02),_0xb47be[_0x27a86a(0xc3)]=_0x3d9b02['status$'][_0x27a86a(0x10f)](_0x51741f=>{_0x3a6188(_0x51741f);});}),()=>{var _0x330136=_0x5847b0,_0x514ab4;(_0x514ab4=_0xb47be['current'])==null||_0x514ab4[_0x330136(0xb0)](),_0xb47be[_0x330136(0xc3)]=null;}),[_0x1d0f47,_0x4dd1d9]),_0x5b8761?_0x19fc7b(_0x367720,{'align':_0x5847b0(0xcc),'disabled':_0x4f061b===h[_0x5847b0(0x124)],'className':_0x5847b0(0x12d),'overlay':_0x19fc7b($e,{'status':_0x4f061b,'coordinator':_0x5b8761}),'children':_0x19fc7b(_0x5847b0(0x11e),{'className':_0x17d479(_0x5847b0(0xe3),{'univer-cursor-not-allowed':_0x4f061b===h[_0x5847b0(0x124)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4f061b!==h[_0x5847b0(0x124)]}),'type':'button','children':_0x19fc7b(B,{'className':_0x5847b0(0xc9)})})}):null;}function $e(_0x285529){var _0x3d7c26=_0x20e263;const {status:_0x508484,coordinator:_0x14bac3}=_0x285529;switch(_0x508484){case h[_0x3d7c26(0xbf)]:return _0x19fc7b(Fe,{'coordinator':_0x14bac3});case h[_0x3d7c26(0x138)]:return _0x19fc7b(He,{'coordinator':_0x14bac3});case h[_0x3d7c26(0x132)]:return _0x19fc7b(je,{'coordinator':_0x14bac3});case h[_0x3d7c26(0x124)]:return _0x19fc7b(Ve,{});case h[_0x3d7c26(0x129)]:return _0x19fc7b(Ue,{'coordinator':_0x14bac3});default:return null;}}function Fe(_0x3c2366){var _0x27ef54=_0x20e263;const {coordinator:_0x1731c4}=_0x3c2366;return _0x22186f(_0x47aa9a,{'children':[_0x19fc7b(_0x27ef54(0x139),{'className':_0x27ef54(0xcd),'children':_0x27ef54(0xf8)}),_0x19fc7b(_0x6ffcc8,{'onClick':()=>_0x1731c4['tryStartPresenting'](),'children':_0x27ef54(0x125)})]});}function He(_0x104f72){var _0x8b0d63=_0x20e263;const {coordinator:_0x2dc6d8}=_0x104f72;return _0x22186f(_0x47aa9a,{'children':[_0x19fc7b(_0x8b0d63(0x139),{'className':_0x8b0d63(0xcd),'children':_0x8b0d63(0xe0)}),_0x19fc7b(_0x6ffcc8,{'onClick':()=>_0x2dc6d8[_0x8b0d63(0xa6)](),'children':_0x8b0d63(0x100)})]});}function je(_0x49c06c){var _0x2ded52=_0x20e263;const {coordinator:_0x33903b}=_0x49c06c;return _0x22186f(_0x47aa9a,{'children':[_0x19fc7b(_0x2ded52(0x139),{'className':_0x2ded52(0xcd),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x19fc7b(_0x6ffcc8,{'variant':_0x2ded52(0x135),'onClick':()=>_0x33903b['startFollowing'](),'children':_0x2ded52(0xb2)})]});}function Ue(_0x22f54b){var _0x3bba9b=_0x20e263;const {coordinator:_0x15d782}=_0x22f54b;return _0x22186f(_0x47aa9a,{'children':[_0x19fc7b(_0x3bba9b(0x139),{'className':_0x3bba9b(0xcd),'children':_0x3bba9b(0x9b)}),_0x19fc7b(_0x6ffcc8,{'variant':_0x3bba9b(0x102),'onClick':()=>_0x15d782[_0x3bba9b(0xbb)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0xb7bbf2=_0x20e263;return _0x19fc7b(_0x47aa9a,{'children':_0xb7bbf2(0x13b)});}function _0x3185(_0x2e7b35,_0x55eb8d){var _0x496605=_0x4966();return _0x3185=function(_0x318518,_0x180384){_0x318518=_0x318518-0x8b;var _0x2a76c7=_0x496605[_0x318518];return _0x2a76c7;},_0x3185(_0x2e7b35,_0x55eb8d);}var Me=Object[_0x20e263(0xf5)],ke=(_0x159294,_0x40eb6a,_0x1fcf9f,_0x112978)=>{for(var _0x3ee11a=_0x112978>0x1?void 0x0:_0x112978?Me(_0x40eb6a,_0x1fcf9f):_0x40eb6a,_0x4bb141=_0x159294['length']-0x1,_0x25d9e9;_0x4bb141>=0x0;_0x4bb141--)(_0x25d9e9=_0x159294[_0x4bb141])&&(_0x3ee11a=_0x25d9e9(_0x3ee11a)||_0x3ee11a);return _0x3ee11a;},$=(_0x48b887,_0x5046cf)=>(_0x16b6e8,_0x27217b)=>_0x5046cf(_0x16b6e8,_0x27217b,_0x48b887);let b=class extends _0x4235cb{constructor(_0x4506a5,_0x2b8f6a){var _0x2612a5=_0x20e263;super(),this[_0x2612a5(0x97)]=_0x4506a5,this[_0x2612a5(0xff)]=_0x2b8f6a,this[_0x2612a5(0x8c)]();}[_0x20e263(0x8c)](){var _0x3d1fb8=_0x20e263;this[_0x3d1fb8(0x10a)](this[_0x3d1fb8(0xff)]['registerComponent'](_0x36dfa4[_0x3d1fb8(0xcb)],()=>_0x39b9e0(Te,this[_0x3d1fb8(0x97)])));}};b=ke([$(0x0,_0x477829(_0x596e84)),$(0x1,_0x240a99)],b);var Ge=Object[_0x20e263(0xb5)],We=Object[_0x20e263(0xf5)],Ye=(_0x5352fc,_0x272a8c,_0x165426)=>_0x272a8c in _0x5352fc?Ge(_0x5352fc,_0x272a8c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x165426}):_0x5352fc[_0x272a8c]=_0x165426,Be=(_0x57fae9,_0x1bd381,_0x4cedca,_0xa84b05)=>{var _0x5629ea=_0x20e263;for(var _0x5bcedd=_0xa84b05>0x1?void 0x0:_0xa84b05?We(_0x1bd381,_0x4cedca):_0x1bd381,_0x50f08e=_0x57fae9[_0x5629ea(0xa1)]-0x1,_0x2bf137;_0x50f08e>=0x0;_0x50f08e--)(_0x2bf137=_0x57fae9[_0x50f08e])&&(_0x5bcedd=_0x2bf137(_0x5bcedd)||_0x5bcedd);return _0x5bcedd;},F=(_0x55a8e3,_0x52f977)=>(_0xa8a953,_0x33820e)=>_0x52f977(_0xa8a953,_0x33820e,_0x55a8e3),J=(_0x175c24,_0x39d8c4,_0x3860e1)=>Ye(_0x175c24,typeof _0x39d8c4!=_0x20e263(0xd1)?_0x39d8c4+'':_0x39d8c4,_0x3860e1);const Ze=_0x20e263(0xc7);let O=class extends _0x2e0281{constructor(_0x2ee230=T,_0x98ce5,_0x1c8033){var _0x5e8f3a=_0x20e263;super(),this[_0x5e8f3a(0xde)]=_0x2ee230,this[_0x5e8f3a(0x97)]=_0x98ce5,this[_0x5e8f3a(0xd8)]=_0x1c8033;const {..._0x347651}=_0x1071d7({},T,this['_config']);this[_0x5e8f3a(0xd8)][_0x5e8f3a(0x103)](Oe,_0x347651);}[_0x20e263(0xb9)](){var _0xb0d77e=_0x20e263;_0x13ef7a(this['_injector'],_0x1011dd([[L],[I],[m],[b]],this[_0xb0d77e(0xde)][_0xb0d77e(0xd2)])),_0x444cf7(this['_injector'],[[m]]);}[_0x20e263(0xad)](){var _0x2334ce=_0x20e263;_0x444cf7(this[_0x2334ce(0x97)],[[b]]);}};J(O,_0x20e263(0xc6),_0x923bcb['UNIVER_UNKNOWN']),J(O,_0x20e263(0xd5),Ze),O=Be([_0x3828c9(_0x2e501b),F(0x1,_0x477829(_0x596e84)),F(0x2,_0x3dbfad)],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 _0xd5ca(){var _0x4aa2b0=['UniverDesign','_startFollowing','button','SetScrollOperation','executeCommand','trim','_univerInstanceService','live-share-icon','getConfig','set','LiveShareCoordinator','disposeWithMe','ONLINE','_commandDisposable','mutations','add','prototype','Stop\x20following','Start','@univerjs/sheets','stringify','send','univer-mb-3\x20univer-w-full\x20univer-text-sm','95216pZqXjJ','propertyIsEnumerable','use','_mountLiveShare','displayName','_fetchOperations','defIds','CollaborationSessionService','_startPresenting','SAME_OPERATION_SHARE_INTERVAL','_handleOperation','takeUntil','_entities','Plugin','LIVESHARE_FETCH_OPERATIONS','then','rxjs/operators','memberID','dispose','init','Present\x20this\x20document','assign','UniverSheetsUi','sessionStatus$','defs','function','shouldShareOperation','jsx','registerSharedOperation','text','clsx','LiveShareIcon','find','React','following','_collabSession','UniverLiveSharePlugin','DependentOn','apply','getTypeOfUnitAdded$','createInstance','svg','Button','LIVESHARE_TERMINATE','IUIPartsService','type','CollaborationEvent','fill','status$','univer-size-4','operations','none','mask','_beIdle','concat','614210yLbLSr','getLiveShareCoordinator','_presenter','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','presenter','length','_stopPresenting','string','UniverCollaborationClientPlugin','children','call','subscribe','SetZoomRatioOperation','LIVESHARE_NEW_HOST','startFollowing','current','_init','UniverProLiveShare','OFFLINE','HEADER_MENU','_collabSessionService','LIVESHARE_REQUEST_HOST','_handleTerminate','icon','end','random','Dropdown','forEach','Stop\x20presenting','_liveShareService','Disposable','getInitialStates','includes','indexOf','useState','_handleOffline','Fragment','LIVESHARE_OPERATION','onRendered','default','exports','substring','dispose$','data','extend','_handleNewHost','univerjs-icon\x20univerjs-icon-','useEffect','className','349324FYFdBm','You\x27are\x20offline.','unitId','75187Xybwxc','_status$','unsubscribe','Injector','parse','FOLLOWING','entries','offline','@univerjs/core','has','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','pipe','NEW_CHANGESETS','map','getMemberID','useDependency','getValue','jsxs','clear','toString','useRef','270090VWzPee','102ECeYMQ','throttleTime','evenodd','getUnitId','IDLE','Start\x20following','merge','Subject','Inject','InsertSheetMutation','_commandService','getTypeOfUnitDisposed$','DesktopLiveShareController','NOT_FOLLOWING','requireSession','next','UniverProCollaborationClient','xlink:href','PRESENTING','onCommandExecuted','toDisposable','_injector','tag','@univerjs-pro/collaboration-client','not-following','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','get','@univerjs/ui','pluginName','_handleOnline','stopFollowing','delete','createElement','hasOwnProperty','presenting','defineProperty','react','UniverCore','idle','_unitID','forwardRef','from','UNIVER_LIVE_SHARE_PLUGIN','operators','290720eZkZLg','UNIVER_SHEET','LiveShareController','OPERATION','_sharedOperations','live-share.config','touchDependencies','@univerjs/sheets-ui','LiveShare','http://www.w3.org/2000/svg','_reporters','getOwnPropertyDescriptor','params','path','_startLiveShareCoordinator','_configService','setConfig','tryStartPresenting','1em','onStarting','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','useObservable','attrs','colorChannel1','registerComponent','SessionStatus','LiveShareService','Module','idSuffix','UniverInstanceType','_uiPartsService','934272NzWMNY','parseProtocolChangeset','UniverIcon','_config','IConfigService','reverse','mergeOverrideWithDependencies','LiveShareStatus','_stopFollowing','replace','_status','symbol','url(#$1','_handleNewChangeSets','SetWorksheetActiveOperation','rxjs','RxDisposable','values','currentColor','registerDependencies','div'];_0xd5ca=function(){return _0x4aa2b0;};return _0xd5ca();}function _0x196a(_0x174847,_0x9a3de2){var _0xd5caeb=_0xd5ca();return _0x196a=function(_0x196a78,_0x5ad21e){_0x196a78=_0x196a78-0x119;var _0x91ba02=_0xd5caeb[_0x196a78];return _0x91ba02;},_0x196a(_0x174847,_0x9a3de2);}(function(_0x4c55e8,_0x279a55){var _0x271d1e=_0x196a,_0x490be8=_0x4c55e8();while(!![]){try{var _0x16a567=-parseInt(_0x271d1e(0x138))/0x1+-parseInt(_0x271d1e(0x1a0))/0x2+parseInt(_0x271d1e(0x1b8))/0x3+parseInt(_0x271d1e(0x204))/0x4+-parseInt(_0x271d1e(0x16f))/0x5+-parseInt(_0x271d1e(0x1b9))/0x6*(-parseInt(_0x271d1e(0x1a3))/0x7)+parseInt(_0x271d1e(0x1e5))/0x8;if(_0x16a567===_0x279a55)break;else _0x490be8['push'](_0x490be8['shift']());}catch(_0x5f29cd){_0x490be8['push'](_0x490be8['shift']());}}}(_0xd5ca,0x24937),function(_0x7d3423,_0x14eb53){var _0x1b1d58=_0x196a;typeof exports=='object'&&typeof module<'u'?_0x14eb53(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define==_0x1b1d58(0x151)&&define['amd']?define([_0x1b1d58(0x197),_0x1b1d58(0x1d0),_0x1b1d58(0x1ab),_0x1b1d58(0x134),_0x1b1d58(0x1ec),_0x1b1d58(0x1d4),'react/jsx-runtime','@univerjs/design',_0x1b1d58(0x1dd),'@univerjs-pro/collaboration','rxjs',_0x1b1d58(0x148)],_0x14eb53):(_0x7d3423=typeof globalThis<'u'?globalThis:_0x7d3423||self,_0x14eb53(_0x7d3423[_0x1b1d58(0x180)]={},_0x7d3423[_0x1b1d58(0x1c9)],_0x7d3423[_0x1b1d58(0x1de)],_0x7d3423['UniverSheets'],_0x7d3423[_0x1b1d58(0x14e)],_0x7d3423['UniverUi'],_0x7d3423[_0x1b1d58(0x159)],_0x7d3423[_0x1b1d58(0x121)],_0x7d3423[_0x1b1d58(0x159)],_0x7d3423['UniverProCollaboration'],_0x7d3423[_0x1b1d58(0x11b)],_0x7d3423[_0x1b1d58(0x11b)][_0x1b1d58(0x1e4)]));}(this,function(_0x5c5e6d,_0x2e1099,_0x39c984,_0x2b4a1e,_0x537d8a,_0x431e11,_0x284ad2,_0x137abf,_0x729d21,_0x127ee2,_0x5e051f,_0x2fe6ef){'use strict';var _0x4c5e09=_0x196a;var _0x5a8467=Object[_0x4c5e09(0x1dc)],_0xd8da61=(_0x8cfe82,_0x583f80,_0x555b50)=>_0x583f80 in _0x8cfe82?_0x5a8467(_0x8cfe82,_0x583f80,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x555b50}):_0x8cfe82[_0x583f80]=_0x555b50,_0x4b08bd=(_0x1ea89d,_0x467666,_0xbd34c0)=>_0xd8da61(_0x1ea89d,typeof _0x467666!=_0x4c5e09(0x20f)?_0x467666+'':_0x467666,_0xbd34c0);const _0x430006=_0x4c5e09(0x1ea),_0x4769ab={};class _0x5adf86 extends _0x39c984[_0x4c5e09(0x18d)]{constructor(){var _0xbc4385=_0x4c5e09;super(...arguments),_0x4b08bd(this,'_sharedOperations',new Set()),_0x4b08bd(this,_0xbc4385(0x1ef),new Set());}[_0x4c5e09(0x154)](_0x38fd2b){var _0xdf3513=_0x4c5e09;return this[_0xdf3513(0x1e9)][_0xdf3513(0x130)](_0x38fd2b),_0x39c984[_0xdf3513(0x1cd)](()=>this['_sharedOperations'][_0xdf3513(0x1d8)](_0x38fd2b));}['registerInitialStateReporter'](_0x57b5be){var _0x40d998=_0x4c5e09;return this[_0x40d998(0x1ef)][_0x40d998(0x130)](_0x57b5be),_0x39c984[_0x40d998(0x1cd)](()=>this[_0x40d998(0x1ef)][_0x40d998(0x1d8)](_0x57b5be));}[_0x4c5e09(0x152)](_0x44d6c4){var _0x35f36e=_0x4c5e09;return this[_0x35f36e(0x1e9)]['has'](_0x44d6c4);}['getInitialStates'](_0x332707){var _0x23e36a=_0x4c5e09;return Array[_0x23e36a(0x1e2)](this[_0x23e36a(0x1ef)])[_0x23e36a(0x1b0)](_0x91d47d=>_0x91d47d(_0x332707));}}var _0x40f9d0=Object['getOwnPropertyDescriptor'],_0x28f477=(_0x3e703d,_0x55085c,_0x4a69cd,_0x6879ad)=>{var _0x447fc1=_0x4c5e09;for(var _0x11029c=_0x6879ad>0x1?void 0x0:_0x6879ad?_0x40f9d0(_0x55085c,_0x4a69cd):_0x55085c,_0x17e5d7=_0x3e703d[_0x447fc1(0x174)]-0x1,_0xe5e19b;_0x17e5d7>=0x0;_0x17e5d7--)(_0xe5e19b=_0x3e703d[_0x17e5d7])&&(_0x11029c=_0xe5e19b(_0x11029c)||_0x11029c);return _0x11029c;},_0x21445d=(_0x5b0f9b,_0x599de2)=>(_0x2ea65c,_0x4d2e86)=>_0x599de2(_0x2ea65c,_0x4d2e86,_0x5b0f9b);let _0x2d7496=class extends _0x39c984['Disposable']{constructor(_0x4e791){var _0x10747c=_0x4c5e09;super(),this[_0x10747c(0x18c)]=_0x4e791,this['_init']();}[_0x4c5e09(0x17f)](){var _0x283a78=_0x4c5e09;[_0x537d8a[_0x283a78(0x17b)]['id'],_0x537d8a[_0x283a78(0x124)]['id'],_0x2b4a1e['SetWorksheetActiveOperation']['id']][_0x283a78(0x18a)](_0x1b707c=>{var _0x19d51d=_0x283a78;this[_0x19d51d(0x12c)](this['_liveShareService']['registerSharedOperation'](_0x1b707c));});}};_0x2d7496=_0x28f477([_0x21445d(0x0,_0x39c984[_0x4c5e09(0x1c1)](_0x5adf86))],_0x2d7496);var _0x50f362=function(){var _0x2728cc=_0x4c5e09;return _0x50f362=Object[_0x2728cc(0x14d)]||function(_0x5e3aec){var _0x58f8cc=_0x2728cc;for(var _0x396303,_0x3e88dd=0x1,_0x4b3317=arguments[_0x58f8cc(0x174)];_0x3e88dd<_0x4b3317;_0x3e88dd++){_0x396303=arguments[_0x3e88dd];for(var _0x3d7e1b in _0x396303)Object[_0x58f8cc(0x131)][_0x58f8cc(0x1da)][_0x58f8cc(0x179)](_0x396303,_0x3d7e1b)&&(_0x5e3aec[_0x3d7e1b]=_0x396303[_0x3d7e1b]);}return _0x5e3aec;},_0x50f362[_0x2728cc(0x15e)](this,arguments);},_0x5b8eba=function(_0xe6bf51,_0x55d1d7){var _0x15d72d=_0x4c5e09,_0x360245={};for(var _0x29ccda in _0xe6bf51)Object[_0x15d72d(0x131)][_0x15d72d(0x1da)][_0x15d72d(0x179)](_0xe6bf51,_0x29ccda)&&_0x55d1d7['indexOf'](_0x29ccda)<0x0&&(_0x360245[_0x29ccda]=_0xe6bf51[_0x29ccda]);if(_0xe6bf51!=null&&typeof Object['getOwnPropertySymbols']==_0x15d72d(0x151)){for(var _0x4847f5=0x0,_0x29ccda=Object['getOwnPropertySymbols'](_0xe6bf51);_0x4847f5<_0x29ccda['length'];_0x4847f5++)_0x55d1d7[_0x15d72d(0x190)](_0x29ccda[_0x4847f5])<0x0&&Object[_0x15d72d(0x131)][_0x15d72d(0x139)][_0x15d72d(0x179)](_0xe6bf51,_0x29ccda[_0x4847f5])&&(_0x360245[_0x29ccda[_0x4847f5]]=_0xe6bf51[_0x29ccda[_0x4847f5]]);}return _0x360245;},_0x46bc35=_0x729d21[_0x4c5e09(0x1e1)](function(_0x5c3a6c,_0x5c62c8){var _0x5e6974=_0x4c5e09,_0x137aec=_0x5c3a6c[_0x5e6974(0x186)],_0x37ba80=_0x5c3a6c['id'],_0x64b281=_0x5c3a6c[_0x5e6974(0x19f)],_0x1f4315=_0x5c3a6c[_0x5e6974(0x19b)],_0x399165=_0x5b8eba(_0x5c3a6c,[_0x5e6974(0x186),'id',_0x5e6974(0x19f),_0x5e6974(0x19b)]),_0x386d7e=_0x5e6974(0x19d)[_0x5e6974(0x16e)](_0x37ba80,'\x20')[_0x5e6974(0x16e)](_0x64b281||'')[_0x5e6974(0x126)](),_0x5bfbf4=_0x729d21['useRef']('_'[_0x5e6974(0x16e)](_0x357d6a()));return _0x429918(_0x137aec,''[_0x5e6974(0x16e)](_0x37ba80),{'defIds':_0x137aec['defIds'],'idSuffix':_0x5bfbf4['current']},_0x50f362({'ref':_0x5c62c8,'className':_0x386d7e},_0x399165),_0x1f4315);});function _0x429918(_0x5b3765,_0x4df295,_0x5743ec,_0x3d4a05,_0x776e28){var _0x605a7a=_0x4c5e09;return _0x729d21[_0x605a7a(0x1d9)](_0x5b3765[_0x605a7a(0x1cf)],_0x50f362(_0x50f362({'key':_0x4df295},_0x20fdfb(_0x5b3765,_0x5743ec,_0x776e28)),_0x3d4a05),(_0x1cb026(_0x5b3765,_0x5743ec)['children']||[])[_0x605a7a(0x1b0)](function(_0x32ee8b,_0x278edb){var _0x9bdda2=_0x605a7a;return _0x429918(_0x32ee8b,''['concat'](_0x4df295,'-')[_0x9bdda2(0x16e)](_0x5b3765[_0x9bdda2(0x1cf)],'-')[_0x9bdda2(0x16e)](_0x278edb),_0x5743ec,void 0x0,_0x776e28);}));}function _0x20fdfb(_0x405e6a,_0x289c87,_0x39969f){var _0x9167a2=_0x4c5e09,_0x21fbd8=_0x50f362({},_0x405e6a[_0x9167a2(0x1fb)]);_0x39969f!=null&&_0x39969f[_0x9167a2(0x1fc)]&&_0x21fbd8[_0x9167a2(0x167)]===_0x9167a2(0x1fc)&&(_0x21fbd8['fill']=_0x39969f[_0x9167a2(0x1fc)]),_0x405e6a[_0x9167a2(0x1cf)]===_0x9167a2(0x16c)&&_0x21fbd8['id']&&(_0x21fbd8['id']=_0x21fbd8['id']+_0x289c87['idSuffix']),Object[_0x9167a2(0x1a9)](_0x21fbd8)[_0x9167a2(0x18a)](function(_0x503506){var _0x1d04df=_0x9167a2,_0x52b936=_0x503506[0x0],_0x733bca=_0x503506[0x1];_0x52b936===_0x1d04df(0x16c)&&typeof _0x733bca==_0x1d04df(0x176)&&(_0x21fbd8[_0x52b936]=_0x733bca[_0x1d04df(0x20d)](/url\(#(.*)\)/,'url(#$1'[_0x1d04df(0x16e)](_0x289c87[_0x1d04df(0x201)],')')));});var _0x1bf43f=_0x289c87[_0x9167a2(0x13e)];return!_0x1bf43f||_0x1bf43f['length']===0x0||(_0x405e6a[_0x9167a2(0x1cf)]===_0x9167a2(0x13a)&&_0x21fbd8[_0x9167a2(0x1ca)]&&(_0x21fbd8['xlink:href']=_0x21fbd8[_0x9167a2(0x1ca)]+_0x289c87[_0x9167a2(0x201)]),Object['entries'](_0x21fbd8)[_0x9167a2(0x18a)](function(_0x358ef3){var _0x342202=_0x9167a2,_0x51e6fa=_0x358ef3[0x0],_0x2ecbfa=_0x358ef3[0x1];typeof _0x2ecbfa==_0x342202(0x176)&&(_0x21fbd8[_0x51e6fa]=_0x2ecbfa['replace'](/url\(#(.*)\)/,_0x342202(0x210)[_0x342202(0x16e)](_0x289c87[_0x342202(0x201)],')')));})),_0x21fbd8;}function _0x1cb026(_0x408413,_0x14c0aa){var _0x15fadb=_0x4c5e09,_0x522a64,_0x1952a2=_0x14c0aa[_0x15fadb(0x13e)];return!_0x1952a2||_0x1952a2[_0x15fadb(0x174)]===0x0?_0x408413:_0x408413[_0x15fadb(0x1cf)]===_0x15fadb(0x150)&&(!((_0x522a64=_0x408413[_0x15fadb(0x178)])===null||_0x522a64===void 0x0)&&_0x522a64[_0x15fadb(0x174)])?_0x50f362(_0x50f362({},_0x408413),{'children':_0x408413['children'][_0x15fadb(0x1b0)](function(_0xb59c07){var _0xe381eb=_0x15fadb;return typeof _0xb59c07['attrs']['id']==_0xe381eb(0x176)&&_0x1952a2&&_0x1952a2[_0xe381eb(0x18f)](_0xb59c07[_0xe381eb(0x1fb)]['id'])?_0x50f362(_0x50f362({},_0xb59c07),{'attrs':_0x50f362(_0x50f362({},_0xb59c07[_0xe381eb(0x1fb)]),{'id':_0xb59c07[_0xe381eb(0x1fb)]['id']+_0x14c0aa['idSuffix']})}):_0xb59c07;})}):_0x408413;}function _0x357d6a(){var _0xaf4b96=_0x4c5e09;return Math[_0xaf4b96(0x188)]()[_0xaf4b96(0x1b6)](0x24)[_0xaf4b96(0x198)](0x2,0x8);}_0x46bc35['displayName']=_0x4c5e09(0x206);var _0x303fe9={'tag':_0x4c5e09(0x161),'attrs':{'xmlns':_0x4c5e09(0x1ee),'fill':_0x4c5e09(0x16b),'viewBox':'0\x200\x2017\x2017','width':_0x4c5e09(0x1f7),'height':_0x4c5e09(0x1f7)},'children':[{'tag':_0x4c5e09(0x1f2),'attrs':{'fill':'currentColor','d':_0x4c5e09(0x1d2)}},{'tag':_0x4c5e09(0x1f2),'attrs':{'fill':_0x4c5e09(0x11e),'d':_0x4c5e09(0x1ad),'fillRule':_0x4c5e09(0x1bb),'clipRule':'evenodd'}}]},_0x3807a3=_0x729d21[_0x4c5e09(0x1e1)](function(_0x55a548,_0x5c29c8){var _0x3975ad=_0x4c5e09;return _0x729d21[_0x3975ad(0x1d9)](_0x46bc35,Object[_0x3975ad(0x14d)]({},_0x55a548,{'id':_0x3975ad(0x128),'ref':_0x5c29c8,'icon':_0x303fe9}));});_0x3807a3[_0x4c5e09(0x13c)]=_0x4c5e09(0x157);var _0x454fd7=Object[_0x4c5e09(0x1f0)],_0x5c594b=(_0x1f6bf6,_0x435f37,_0x4fb47b,_0x36472b)=>{var _0x2b3319=_0x4c5e09;for(var _0x4a1c8f=_0x36472b>0x1?void 0x0:_0x36472b?_0x454fd7(_0x435f37,_0x4fb47b):_0x435f37,_0x38e840=_0x1f6bf6[_0x2b3319(0x174)]-0x1,_0x5dcfcd;_0x38e840>=0x0;_0x38e840--)(_0x5dcfcd=_0x1f6bf6[_0x38e840])&&(_0x4a1c8f=_0x5dcfcd(_0x4a1c8f)||_0x4a1c8f);return _0x4a1c8f;},_0x78031=(_0x4dd8f0,_0x57f7b8)=>(_0x18c732,_0x207320)=>_0x57f7b8(_0x18c732,_0x207320,_0x4dd8f0);_0x5c5e6d[_0x4c5e09(0x1e7)]=class extends _0x39c984[_0x4c5e09(0x11c)]{constructor(_0x2c3769,_0x43067a,_0x5d9298){var _0x21ca92=_0x4c5e09;super(),_0x4b08bd(this,_0x21ca92(0x144),new Map()),(this['_univerInstanceService']=_0x2c3769,this['_injector']=_0x43067a,this[_0x21ca92(0x183)]=_0x5d9298,this[_0x21ca92(0x17f)]());}async[_0x4c5e09(0x170)](_0x292acb){var _0xd9a74b=_0x4c5e09;return this[_0xd9a74b(0x144)]['has'](_0x292acb)||await this[_0xd9a74b(0x1f3)](_0x292acb),this[_0xd9a74b(0x144)]['get'](_0x292acb);}[_0x4c5e09(0x17f)](){var _0x1c9e0a=_0x4c5e09;this[_0x1c9e0a(0x127)][_0x1c9e0a(0x15f)](_0x39c984[_0x1c9e0a(0x202)][_0x1c9e0a(0x1e6)])[_0x1c9e0a(0x1ae)](_0x2fe6ef['takeUntil'](this[_0x1c9e0a(0x199)]))[_0x1c9e0a(0x17a)](async _0x911d8a=>{var _0x294b77=_0x1c9e0a;const _0x506b10=_0x911d8a[_0x294b77(0x1bc)]();this[_0x294b77(0x144)][_0x294b77(0x1ac)](_0x506b10)||this['_startLiveShareCoordinator'](_0x506b10);}),this[_0x1c9e0a(0x127)][_0x1c9e0a(0x1c4)](_0x39c984[_0x1c9e0a(0x202)]['UNIVER_SHEET'])['pipe'](_0x2fe6ef[_0x1c9e0a(0x143)](this[_0x1c9e0a(0x199)]))['subscribe'](_0x4bfcbd=>{var _0xb11c6=_0x1c9e0a;const _0x5a4196=_0x4bfcbd[_0xb11c6(0x1bc)](),_0x5c23e5=this[_0xb11c6(0x144)][_0xb11c6(0x1d3)](_0x5a4196);_0x5c23e5==null||_0x5c23e5[_0xb11c6(0x14a)]();});}async[_0x4c5e09(0x1f3)](_0x18bd2e){var _0x3d2d93=_0x4c5e09;const _0x2be9ab=await this[_0x3d2d93(0x183)][_0x3d2d93(0x1c7)](_0x18bd2e),_0x43b359=this[_0x3d2d93(0x1ce)][_0x3d2d93(0x160)](_0x5c5e6d[_0x3d2d93(0x12b)],_0x18bd2e,_0x2be9ab);return _0x43b359[_0x3d2d93(0x14b)](),this[_0x3d2d93(0x144)][_0x3d2d93(0x12a)](_0x18bd2e,_0x43b359),_0x43b359;}},_0x5c5e6d[_0x4c5e09(0x1e7)]=_0x5c594b([_0x78031(0x0,_0x39c984['IUniverInstanceService']),_0x78031(0x1,_0x39c984[_0x4c5e09(0x1c1)](_0x39c984[_0x4c5e09(0x1a6)])),_0x78031(0x2,_0x39c984[_0x4c5e09(0x1c1)](_0x2e1099[_0x4c5e09(0x13f)]))],_0x5c5e6d[_0x4c5e09(0x1e7)]);var _0x4e635a=(_0x17baaa=>(_0x17baaa[_0x4c5e09(0x181)]='offline',_0x17baaa['IDLE']=_0x4c5e09(0x1df),_0x17baaa['FOLLOWING']='following',_0x17baaa['NOT_FOLLOWING']=_0x4c5e09(0x1d1),_0x17baaa[_0x4c5e09(0x1cb)]=_0x4c5e09(0x1db),_0x17baaa))(_0x4e635a||{});const _0x4e3a7f=_0x4c5e09(0x141),_0x3d8891=0xc8;_0x5c5e6d[_0x4c5e09(0x12b)]=class extends _0x39c984[_0x4c5e09(0x11c)]{constructor(_0x4248de,_0x20afe3,_0x1858a4,_0x49d75c,_0xdfe8af){var _0x31d9ff=_0x4c5e09;super(),_0x4b08bd(this,_0x31d9ff(0x1a4),new _0x5e051f['BehaviorSubject'](_0x31d9ff(0x1df))),_0x4b08bd(this,_0x31d9ff(0x168),this[_0x31d9ff(0x1a4)]['asObservable']()),_0x4b08bd(this,_0x31d9ff(0x17f),!0x1),_0x4b08bd(this,_0x31d9ff(0x12e),null),_0x4b08bd(this,_0x31d9ff(0x171),null),(this[_0x31d9ff(0x1e0)]=_0x4248de,this[_0x31d9ff(0x15b)]=_0x20afe3,this[_0x31d9ff(0x1f4)]=_0x1858a4,this[_0x31d9ff(0x18c)]=_0x49d75c,this['_commandService']=_0xdfe8af);}get['_status'](){var _0x2b8c63=_0x4c5e09;return this[_0x2b8c63(0x1a4)][_0x2b8c63(0x1b3)]();}[_0x4c5e09(0x14a)](){var _0x309d56=_0x4c5e09,_0xe4e9b3;(_0xe4e9b3=this[_0x309d56(0x12e)])==null||_0xe4e9b3[_0x309d56(0x14a)](),this[_0x309d56(0x1a4)]['next']('idle'),this[_0x309d56(0x1a4)]['complete']();}[_0x4c5e09(0x14b)](){var _0x32427c=_0x4c5e09;this[_0x32427c(0x17f)]||(this[_0x32427c(0x17f)]=!0x0,this[_0x32427c(0x15b)][_0x32427c(0x14f)][_0x32427c(0x1ae)](_0x2fe6ef[_0x32427c(0x143)](this['dispose$']))[_0x32427c(0x17a)](_0xe68a53=>{var _0xeb68ec=_0x32427c;switch(_0xe68a53){case _0x2e1099[_0xeb68ec(0x1fe)][_0xeb68ec(0x181)]:this[_0xeb68ec(0x192)]();break;case _0x2e1099[_0xeb68ec(0x1fe)][_0xeb68ec(0x12d)]:this['_handleOnline']();break;}}),this[_0x32427c(0x15b)]['event$'][_0x32427c(0x1ae)](_0x2fe6ef[_0x32427c(0x143)](this[_0x32427c(0x199)]))[_0x32427c(0x17a)](_0x39c866=>{var _0x2a5456=_0x32427c;const {eventID:_0x3f14be}=_0x39c866;switch(_0x3f14be){case _0x127ee2['CollaborationEvent'][_0x2a5456(0x17c)]:this[_0x2a5456(0x19c)](_0x39c866);break;case _0x127ee2[_0x2a5456(0x166)][_0x2a5456(0x194)]:this[_0x2a5456(0x142)](_0x39c866);break;case _0x127ee2[_0x2a5456(0x166)]['LIVESHARE_TERMINATE']:this[_0x2a5456(0x185)]();break;case _0x127ee2[_0x2a5456(0x166)][_0x2a5456(0x1af)]:this['_handleNewChangeSets'](_0x39c866);break;}}));}[_0x4c5e09(0x1f6)](){var _0x14ac54=_0x4c5e09;this[_0x14ac54(0x15b)][_0x14ac54(0x136)]({'eventID':_0x127ee2['CollaborationEvent'][_0x14ac54(0x184)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x14ac54(0x1b1)]()}},this[_0x14ac54(0x1e0)]);}['stopPresenting'](){var _0x1c754b=_0x4c5e09;this[_0x1c754b(0x20e)]==='presenting'&&(this[_0x1c754b(0x1a4)][_0x1c754b(0x1c8)](_0x1c754b(0x1df)),this[_0x1c754b(0x15b)]['send']({'eventID':_0x127ee2[_0x1c754b(0x166)][_0x1c754b(0x163)],'data':{'unitID':this[_0x1c754b(0x1e0)]}},this[_0x1c754b(0x1e0)]));}[_0x4c5e09(0x17d)](){var _0x5f41b0=_0x4c5e09;this['_status']==='not-following'&&(this[_0x5f41b0(0x1a4)][_0x5f41b0(0x1c8)](_0x5f41b0(0x15a)),this[_0x5f41b0(0x122)]());}[_0x4c5e09(0x1d7)](){var _0x6ebd8e=_0x4c5e09;this[_0x6ebd8e(0x20e)]===_0x6ebd8e(0x15a)&&this[_0x6ebd8e(0x20c)]();}[_0x4c5e09(0x19c)](_0x37d12d){var _0x16d2d4=_0x4c5e09;const {presenter:_0x4ce097}=_0x37d12d[_0x16d2d4(0x19a)],_0x24ee70=this['_collabSession']['getMemberID']();this[_0x16d2d4(0x171)]=_0x4ce097,_0x4ce097===_0x24ee70?(this[_0x16d2d4(0x20c)](),this[_0x16d2d4(0x140)]()):this['_status']!==_0x16d2d4(0x1d1)&&(this[_0x16d2d4(0x175)](),this[_0x16d2d4(0x122)]());}[_0x4c5e09(0x13d)](){var _0x4e721d=_0x4c5e09;const _0x4cf4c8={'eventID':_0x127ee2[_0x4e721d(0x166)][_0x4e721d(0x146)]};this[_0x4e721d(0x15b)][_0x4e721d(0x136)](_0x4cf4c8,this[_0x4e721d(0x1e0)]);}[_0x4c5e09(0x185)](){var _0x279348=_0x4c5e09;this[_0x279348(0x171)]=null,this['_status']!=='presenting'&&this[_0x279348(0x16d)]();}[_0x4c5e09(0x119)](_0x57c38b){var _0x575948=_0x4c5e09;if(this[_0x575948(0x20e)]===_0x575948(0x15a)&&this['_presenter']===_0x57c38b[_0x575948(0x19a)][_0x575948(0x149)]){const _0x130aee=_0x127ee2[_0x575948(0x205)](_0x57c38b['data'])[_0x575948(0x12f)][_0x575948(0x209)]()[_0x575948(0x158)](_0x13a76b=>_0x13a76b['id']===_0x2b4a1e[_0x575948(0x1c2)]['id']);if(_0x130aee){const _0x506c55=_0x130aee[_0x575948(0x1f1)][_0x575948(0x1a2)],_0x235e6d=_0x130aee[_0x575948(0x1f1)]['sheet']['id'];setTimeout(()=>{var _0x35aac3=_0x575948;this[_0x35aac3(0x1c3)]['executeCommand'](_0x2b4a1e[_0x35aac3(0x11a)]['id'],{'unitId':_0x506c55,'subUnitId':_0x235e6d},{'fromCollab':!0x0});});}}}[_0x4c5e09(0x140)](){var _0x100926=_0x4c5e09;this[_0x100926(0x1a4)][_0x100926(0x1c8)](_0x100926(0x1db));const _0x36439b=new Map(),_0x23771f=this['_commandDisposable']=new _0x39c984['DisposableCollection']();_0x23771f[_0x100926(0x130)](_0x39c984['toDisposable'](()=>{var _0x3878f8=_0x100926;_0x36439b[_0x3878f8(0x18a)](_0x55fa16=>_0x55fa16['complete']()),_0x36439b[_0x3878f8(0x1b5)]();})),_0x23771f[_0x100926(0x130)](this[_0x100926(0x1c3)][_0x100926(0x1cc)](_0x2c38a9=>{var _0x34335b=_0x100926,_0x59127a;if(_0x2c38a9[_0x34335b(0x165)]!==_0x39c984['CommandType'][_0x34335b(0x1e8)]||!this['_liveShareService'][_0x34335b(0x152)](_0x2c38a9['id']))return;const {id:_0x7aa03}=_0x2c38a9;let _0x1bf239;_0x36439b[_0x34335b(0x1ac)](_0x7aa03)?_0x1bf239=_0x36439b['get'](_0x7aa03):(_0x1bf239=new _0x5e051f[(_0x34335b(0x1c0))](),_0x36439b[_0x34335b(0x12a)](_0x7aa03,_0x1bf239),_0x1bf239[_0x34335b(0x1ae)](_0x2fe6ef[_0x34335b(0x1ba)]((_0x59127a=this[_0x34335b(0x1f4)][_0x34335b(0x129)](_0x4e3a7f))!=null?_0x59127a:_0x3d8891,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x34335b(0x17a)](_0x20ecdf=>{var _0x1f62ec=_0x34335b;this[_0x1f62ec(0x15b)][_0x1f62ec(0x136)]({'eventID':_0x127ee2[_0x1f62ec(0x166)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1f62ec(0x1e0)],'operations':{[_0x20ecdf['id']]:{'id':_0x20ecdf['id'],'params':JSON[_0x1f62ec(0x135)](_0x20ecdf[_0x1f62ec(0x1f1)])}}}},this[_0x1f62ec(0x1e0)]);})),_0x1bf239['next'](_0x2c38a9);})),this[_0x100926(0x18c)][_0x100926(0x18e)](this[_0x100926(0x1e0)])['forEach'](_0x294cb3=>this['_collabSession'][_0x100926(0x136)]({'eventID':_0x127ee2['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x100926(0x1e0)],'operations':{[_0x294cb3['id']]:{'id':_0x294cb3['id'],'params':JSON[_0x100926(0x135)](_0x294cb3[_0x100926(0x1f1)])}}}},this[_0x100926(0x1e0)]));}[_0x4c5e09(0x175)](){var _0x4b6b74=_0x4c5e09,_0x25f724;this['_status$'][_0x4b6b74(0x1c8)](_0x4b6b74(0x1df)),(_0x25f724=this[_0x4b6b74(0x12e)])==null||_0x25f724[_0x4b6b74(0x14a)](),this[_0x4b6b74(0x12e)]=null;}[_0x4c5e09(0x122)](){var _0x433ffb=_0x4c5e09,_0x1a29d0;(_0x1a29d0=this['_commandDisposable'])==null||_0x1a29d0[_0x433ffb(0x14a)](),this[_0x433ffb(0x1a4)]['next'](_0x433ffb(0x15a));}[_0x4c5e09(0x16d)](){var _0x4471a1=_0x4c5e09,_0x39710f;this[_0x4471a1(0x1a4)][_0x4471a1(0x1c8)]('idle'),(_0x39710f=this[_0x4471a1(0x12e)])==null||_0x39710f[_0x4471a1(0x14a)](),this[_0x4471a1(0x12e)]=null;}['_stopFollowing'](){var _0x5aff41=_0x4c5e09,_0x3cf0f6;this[_0x5aff41(0x1a4)]['next'](_0x5aff41(0x1d1)),(_0x3cf0f6=this[_0x5aff41(0x12e)])==null||_0x3cf0f6[_0x5aff41(0x14a)]();}[_0x4c5e09(0x142)](_0xafa8cf){var _0x32341=_0x4c5e09;if([_0x32341(0x1db),'not-following',_0x32341(0x1aa)][_0x32341(0x18f)](this[_0x32341(0x20e)])||!_0xafa8cf['data']['presenter']||_0xafa8cf[_0x32341(0x19a)][_0x32341(0x173)]===this[_0x32341(0x15b)][_0x32341(0x1b1)]())return;this[_0x32341(0x20e)]===_0x32341(0x1df)&&this[_0x32341(0x122)]();const _0x1c1d5f=_0xafa8cf[_0x32341(0x19a)][_0x32341(0x16a)];Object[_0x32341(0x11d)](_0x1c1d5f)['forEach'](_0x1d2542=>{var _0x2f045a=_0x32341;this[_0x2f045a(0x1c3)][_0x2f045a(0x125)](_0x1d2542['id'],_0x1d2542[_0x2f045a(0x1f1)]?JSON[_0x2f045a(0x1a7)](_0x1d2542[_0x2f045a(0x1f1)]):null,{'fromCollab':!0x0});});}[_0x4c5e09(0x192)](){var _0x46b489=_0x4c5e09,_0x3002d5;this[_0x46b489(0x1a4)][_0x46b489(0x1c8)]('offline'),(_0x3002d5=this['_commandDisposable'])==null||_0x3002d5[_0x46b489(0x14a)]();}[_0x4c5e09(0x1d6)](){var _0x4152cd=_0x4c5e09;this[_0x4152cd(0x1a4)][_0x4152cd(0x1c8)](_0x4152cd(0x1df)),this[_0x4152cd(0x13d)]();}},_0x5c5e6d[_0x4c5e09(0x12b)]=_0x5c594b([_0x78031(0x2,_0x39c984[_0x4c5e09(0x208)]),_0x78031(0x3,_0x39c984[_0x4c5e09(0x1c1)](_0x5adf86)),_0x78031(0x4,_0x39c984['ICommandService'])],_0x5c5e6d[_0x4c5e09(0x12b)]);function _0x413f92(){var _0x3853e5=_0x4c5e09;const _0x2b18d9=_0x431e11[_0x3853e5(0x1b2)](_0x5c5e6d[_0x3853e5(0x1e7)]),_0x262caa=_0x431e11[_0x3853e5(0x1b2)](_0x39c984['IUniverInstanceService']),_0x3cb435=_0x431e11[_0x3853e5(0x1fa)](()=>_0x262caa['getCurrentTypeOfUnit$'](_0x39c984[_0x3853e5(0x202)][_0x3853e5(0x1e6)]),void 0x0,!0x1,[]),[_0x1c7619,_0x41da06]=_0x729d21[_0x3853e5(0x191)](null),[_0x38f81e,_0x197e61]=_0x729d21[_0x3853e5(0x191)](_0x4e635a[_0x3853e5(0x1bd)]),_0x1f4daa=_0x729d21[_0x3853e5(0x1b7)](null);return _0x729d21[_0x3853e5(0x19e)](()=>(_0x3cb435&&_0x2b18d9[_0x3853e5(0x170)](_0x3cb435[_0x3853e5(0x1bc)]())[_0x3853e5(0x147)](_0x3dfe92=>{var _0x5eb92d=_0x3853e5;_0x41da06(_0x3dfe92),_0x1f4daa[_0x5eb92d(0x17e)]=_0x3dfe92[_0x5eb92d(0x168)]['subscribe'](_0x341c6f=>{_0x197e61(_0x341c6f);});}),()=>{var _0x5dbe9b=_0x3853e5,_0xd0b6cb;(_0xd0b6cb=_0x1f4daa[_0x5dbe9b(0x17e)])==null||_0xd0b6cb[_0x5dbe9b(0x1a5)](),_0x1f4daa['current']=null;}),[_0x3cb435,_0x2b18d9]),_0x1c7619?_0x284ad2['jsx'](_0x137abf[_0x3853e5(0x189)],{'align':_0x3853e5(0x187),'disabled':_0x38f81e===_0x4e635a[_0x3853e5(0x181)],'className':_0x3853e5(0x172),'overlay':_0x284ad2['jsx'](_0x1c191b,{'status':_0x38f81e,'coordinator':_0x1c7619}),'children':_0x284ad2[_0x3853e5(0x153)](_0x3853e5(0x123),{'className':_0x137abf[_0x3853e5(0x156)](_0x3853e5(0x1f9),{'univer-cursor-not-allowed':_0x38f81e===_0x4e635a['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x38f81e!==_0x4e635a[_0x3853e5(0x181)]}),'type':_0x3853e5(0x123),'children':_0x284ad2[_0x3853e5(0x153)](_0x3807a3,{'className':_0x3853e5(0x169)})})}):null;}function _0x1c191b(_0x207811){var _0x2170db=_0x4c5e09;const {status:_0x35ddbe,coordinator:_0x5b3cf1}=_0x207811;switch(_0x35ddbe){case _0x4e635a['IDLE']:return _0x284ad2[_0x2170db(0x153)](_0x1ea86b,{'coordinator':_0x5b3cf1});case _0x4e635a[_0x2170db(0x1a8)]:return _0x284ad2[_0x2170db(0x153)](_0x59eaa4,{'coordinator':_0x5b3cf1});case _0x4e635a[_0x2170db(0x1c6)]:return _0x284ad2[_0x2170db(0x153)](_0x4b01bf,{'coordinator':_0x5b3cf1});case _0x4e635a[_0x2170db(0x181)]:return _0x284ad2[_0x2170db(0x153)](_0x42da00,{});case _0x4e635a[_0x2170db(0x1cb)]:return _0x284ad2[_0x2170db(0x153)](_0xaad1bf,{'coordinator':_0x5b3cf1});default:return null;}}function _0x1ea86b(_0x53937b){var _0x482cde=_0x4c5e09;const {coordinator:_0x36637a}=_0x53937b;return _0x284ad2[_0x482cde(0x1b4)](_0x284ad2[_0x482cde(0x193)],{'children':[_0x284ad2[_0x482cde(0x153)](_0x482cde(0x120),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x482cde(0x14c)}),_0x284ad2[_0x482cde(0x153)](_0x137abf['Button'],{'onClick':()=>_0x36637a[_0x482cde(0x1f6)](),'children':_0x482cde(0x133)})]});}function _0x59eaa4(_0x1b045d){var _0x1c592f=_0x4c5e09;const {coordinator:_0x3ce86d}=_0x1b045d;return _0x284ad2[_0x1c592f(0x1b4)](_0x284ad2['Fragment'],{'children':[_0x284ad2[_0x1c592f(0x153)](_0x1c592f(0x120),{'className':_0x1c592f(0x137),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x284ad2[_0x1c592f(0x153)](_0x137abf[_0x1c592f(0x162)],{'onClick':()=>_0x3ce86d[_0x1c592f(0x1d7)](),'children':_0x1c592f(0x132)})]});}function _0x4b01bf(_0x180724){var _0x286e67=_0x4c5e09;const {coordinator:_0xd47f98}=_0x180724;return _0x284ad2['jsxs'](_0x284ad2[_0x286e67(0x193)],{'children':[_0x284ad2[_0x286e67(0x153)](_0x286e67(0x120),{'className':_0x286e67(0x137),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x284ad2[_0x286e67(0x153)](_0x137abf[_0x286e67(0x162)],{'variant':_0x286e67(0x155),'onClick':()=>_0xd47f98[_0x286e67(0x17d)](),'children':_0x286e67(0x1be)})]});}function _0xaad1bf(_0x36d310){var _0xfd41a1=_0x4c5e09;const {coordinator:_0x146bf5}=_0x36d310;return _0x284ad2['jsxs'](_0x284ad2[_0xfd41a1(0x193)],{'children':[_0x284ad2[_0xfd41a1(0x153)](_0xfd41a1(0x120),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x284ad2[_0xfd41a1(0x153)](_0x137abf[_0xfd41a1(0x162)],{'variant':_0xfd41a1(0x196),'onClick':()=>_0x146bf5['stopPresenting'](),'children':_0xfd41a1(0x18b)})]});}function _0x42da00(){var _0x5e9c2c=_0x4c5e09;return _0x284ad2['jsx'](_0x284ad2['Fragment'],{'children':_0x5e9c2c(0x1a1)});}var _0x3f45f1=Object[_0x4c5e09(0x1f0)],_0x43f28b=(_0xdd377a,_0x5d6c99,_0x27b676,_0x4fe2f1)=>{var _0x1b70d9=_0x4c5e09;for(var _0x12acdd=_0x4fe2f1>0x1?void 0x0:_0x4fe2f1?_0x3f45f1(_0x5d6c99,_0x27b676):_0x5d6c99,_0x25f30b=_0xdd377a[_0x1b70d9(0x174)]-0x1,_0xb2ecb;_0x25f30b>=0x0;_0x25f30b--)(_0xb2ecb=_0xdd377a[_0x25f30b])&&(_0x12acdd=_0xb2ecb(_0x12acdd)||_0x12acdd);return _0x12acdd;},_0x475be3=(_0x5a90b7,_0x23da82)=>(_0x19fb7d,_0x3d5d73)=>_0x23da82(_0x19fb7d,_0x3d5d73,_0x5a90b7);_0x5c5e6d['DesktopLiveShareController']=class extends _0x39c984['Disposable']{constructor(_0x49a86d,_0x40174a){var _0x21e46a=_0x4c5e09;super(),this['_injector']=_0x49a86d,this[_0x21e46a(0x203)]=_0x40174a,this[_0x21e46a(0x13b)]();}['_mountLiveShare'](){var _0x16b71e=_0x4c5e09;this['disposeWithMe'](this[_0x16b71e(0x203)][_0x16b71e(0x1fd)](_0x431e11['BuiltInUIPart'][_0x16b71e(0x182)],()=>_0x431e11['connectInjector'](_0x413f92,this['_injector'])));}},_0x5c5e6d['DesktopLiveShareController']=_0x43f28b([_0x475be3(0x0,_0x39c984['Inject'](_0x39c984[_0x4c5e09(0x1a6)])),_0x475be3(0x1,_0x431e11[_0x4c5e09(0x164)])],_0x5c5e6d[_0x4c5e09(0x1c5)]);var _0xc2df4c=Object[_0x4c5e09(0x1dc)],_0x4d4437=Object[_0x4c5e09(0x1f0)],_0x1dda85=(_0x1f458b,_0x17ec28,_0x43685c)=>_0x17ec28 in _0x1f458b?_0xc2df4c(_0x1f458b,_0x17ec28,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43685c}):_0x1f458b[_0x17ec28]=_0x43685c,_0x2859e9=(_0x3548c0,_0x325e74,_0x35faf0,_0xcce7aa)=>{var _0x2b4878=_0x4c5e09;for(var _0x52ed09=_0xcce7aa>0x1?void 0x0:_0xcce7aa?_0x4d4437(_0x325e74,_0x35faf0):_0x325e74,_0x2e3263=_0x3548c0[_0x2b4878(0x174)]-0x1,_0x2dd1d6;_0x2e3263>=0x0;_0x2e3263--)(_0x2dd1d6=_0x3548c0[_0x2e3263])&&(_0x52ed09=_0x2dd1d6(_0x52ed09)||_0x52ed09);return _0x52ed09;},_0x143219=(_0x25bd52,_0x1d5ccc)=>(_0x5b4ddf,_0x3cebdf)=>_0x1d5ccc(_0x5b4ddf,_0x3cebdf,_0x25bd52),_0x3b8898=(_0x40449e,_0x54cefd,_0x476de4)=>_0x1dda85(_0x40449e,typeof _0x54cefd!=_0x4c5e09(0x20f)?_0x54cefd+'':_0x54cefd,_0x476de4);const _0x56184c=_0x4c5e09(0x1e3);_0x5c5e6d[_0x4c5e09(0x15c)]=class extends _0x39c984[_0x4c5e09(0x145)]{constructor(_0x1223e7=_0x4769ab,_0x1a674e,_0x5e959c){var _0x5a339f=_0x4c5e09;super(),this['_config']=_0x1223e7,this[_0x5a339f(0x1ce)]=_0x1a674e,this['_configService']=_0x5e959c;const {..._0x482288}=_0x39c984[_0x5a339f(0x1bf)]({},_0x4769ab,this[_0x5a339f(0x207)]);this['_configService'][_0x5a339f(0x1f5)](_0x430006,_0x482288);}[_0x4c5e09(0x1f8)](){var _0x51dccd=_0x4c5e09;_0x39c984[_0x51dccd(0x11f)](this[_0x51dccd(0x1ce)],_0x39c984[_0x51dccd(0x20a)]([[_0x5adf86],[_0x5c5e6d[_0x51dccd(0x1e7)]],[_0x2d7496],[_0x5c5e6d[_0x51dccd(0x1c5)]]],this[_0x51dccd(0x207)]['override'])),_0x39c984[_0x51dccd(0x1eb)](this[_0x51dccd(0x1ce)],[[_0x2d7496]]);}[_0x4c5e09(0x195)](){var _0x12e3f9=_0x4c5e09;_0x39c984[_0x12e3f9(0x1eb)](this[_0x12e3f9(0x1ce)],[[_0x5c5e6d[_0x12e3f9(0x1c5)]]]);}},_0x3b8898(_0x5c5e6d[_0x4c5e09(0x15c)],_0x4c5e09(0x165),_0x39c984['UniverInstanceType']['UNIVER_UNKNOWN']),_0x3b8898(_0x5c5e6d[_0x4c5e09(0x15c)],_0x4c5e09(0x1d5),_0x56184c),_0x5c5e6d['UniverLiveSharePlugin']=_0x2859e9([_0x39c984[_0x4c5e09(0x15d)](_0x2e1099[_0x4c5e09(0x177)]),_0x143219(0x1,_0x39c984[_0x4c5e09(0x1c1)](_0x39c984[_0x4c5e09(0x1a6)])),_0x143219(0x2,_0x39c984[_0x4c5e09(0x208)])],_0x5c5e6d[_0x4c5e09(0x15c)]),_0x5c5e6d[_0x4c5e09(0x1ed)]=_0x413f92,_0x5c5e6d[_0x4c5e09(0x1ff)]=_0x5adf86,_0x5c5e6d[_0x4c5e09(0x20b)]=_0x4e635a,Object[_0x4c5e09(0x1dc)](_0x5c5e6d,Symbol['toStringTag'],{'value':_0x4c5e09(0x200)});}));
|
|
1
|
+
function _0x3bae(){var _0x2fed67=['_stopFollowing','fill','_handleTerminate','Injector','HEADER_MENU','_reporters','LiveShare','SetWorksheetActiveOperation','executeCommand','concat','takeUntil','_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','complete','mutations','NOT_FOLLOWING','pluginName','Button','IUniverInstanceService','apply','following','parse','call','useRef','requireSession','_sharedOperations','forEach','Stop\x20presenting','setConfig','indexOf','univer-mb-3\x20univer-w-full\x20univer-text-sm','Dropdown','prototype','colorChannel1','asObservable','_mountLiveShare','You\x27re\x20not\x20following\x20the\x20presenter','SessionStatus','DependentOn','symbol','_commandDisposable','assign','onRendered','Plugin','offline','OPERATION','className','_presenter','registerSharedOperation','_liveShareService','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','function','ONLINE','startFollowing','onCommandExecuted','getUnitId','currentColor','includes','send','SetZoomRatioOperation','_entities','registerComponent','jsx','LiveShareCoordinator','useState','UniverProCollaborationClient','div','amd','icon','LiveShareController','stopFollowing','data','UniverProCollaboration','string','displayName','_status$','3mdYqFk','Inject','_status','has','useEffect','_handleOffline','substring','idle','_beIdle','object','button','_startPresenting','url(#$1','getOwnPropertySymbols','2030835zoXglm','rxjs','844770EMSqMt','UniverDesign','get','map','_uiPartsService','defs','IUIPartsService','FOLLOWING','LIVESHARE_TERMINATE','toDisposable','current','shouldShareOperation','_collabSession','_unitID','_configService','type','getLiveShareCoordinator','not-following','react/jsx-runtime','registerDependencies','InsertSheetMutation','params','text','UniverSheetsUi','touchDependencies','values','http://www.w3.org/2000/svg','useObservable','LIVESHARE_FETCH_OPERATIONS','LiveShareService','entries','408977BuqakT','OFFLINE','UniverProLiveShare','init','_injector','@univerjs/ui','getValue','8ybuxkQ','getTypeOfUnitDisposed$','xlink:href','toStringTag','UniverLiveSharePlugin','@univerjs/sheets-ui','_config','DisposableCollection','parseProtocolChangeset','stopPresenting','find','Fragment','length','getOwnPropertyDescriptor','DesktopLiveShareController','defIds','Start','getConfig','LIVESHARE_OPERATION','RxDisposable','live-share-icon','81dKCCAn','univer-size-4','@univerjs/design','sessionStatus$','replace','forwardRef','next','toString','dispose$','6wBUKNz','tryStartPresenting','React','random','pipe','sheet','_handleNewChangeSets','_init','getMemberID','2040196LDcNTg','presenting','disposeWithMe','0\x200\x2017\x2017','path','SetScrollOperation','hasOwnProperty','306910vekVLe','ICommandService','throttleTime','mask','dispose','LiveShareIcon','You\x27re\x20presenting\x20the\x20document','@univerjs/sheets','Present\x20this\x20document','unsubscribe','children','use','createElement','useDependency','idSuffix','1115818HlwVEx','defineProperty','UniverInstanceType','IDLE','UniverCore','operations','_fetchOperations','_commandService','Disposable','evenodd','attrs','_stopPresenting','connectInjector','delete','getInitialStates','presenter','1230054EsNeNl','LiveShareStatus','@univerjs-pro/collaboration','PRESENTING','getCurrentTypeOfUnit$','Module','stringify','extend','tag','jsxs','svg','mergeOverrideWithDependencies','status$','_collabSessionService','_handleOnline','1em','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','getTypeOfUnitAdded$','IConfigService','UniverSheets','_handleNewHost','_univerInstanceService','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','Stop\x20following','_startLiveShareCoordinator','none','add','subscribe','@univerjs/core','UNIVER_SHEET','trim','memberID','CollaborationEvent','You\x27re\x20following\x20the\x20presenter','_startFollowing','onStarting','set','UNIVER_LIVE_SHARE_PLUGIN'];_0x3bae=function(){return _0x2fed67;};return _0x3bae();}function _0x5609(_0x43ea2d,_0x20f59c){var _0x3bae15=_0x3bae();return _0x5609=function(_0x56096c,_0x136520){_0x56096c=_0x56096c-0x88;var _0x5213df=_0x3bae15[_0x56096c];return _0x5213df;},_0x5609(_0x43ea2d,_0x20f59c);}(function(_0x3ed87f,_0x1ee079){var _0x5b6b7e=_0x5609,_0xaa307c=_0x3ed87f();while(!![]){try{var _0x4766b7=parseInt(_0x5b6b7e(0xc7))/0x1+parseInt(_0x5b6b7e(0xa8))/0x2+parseInt(_0x5b6b7e(0x98))/0x3*(-parseInt(_0x5b6b7e(0xf5))/0x4)+-parseInt(_0x5b6b7e(0xa6))/0x5*(parseInt(_0x5b6b7e(0xec))/0x6)+parseInt(_0x5b6b7e(0x11b))/0x7*(parseInt(_0x5b6b7e(0xce))/0x8)+parseInt(_0x5b6b7e(0xe3))/0x9*(parseInt(_0x5b6b7e(0xfc))/0xa)+-parseInt(_0x5b6b7e(0x10b))/0xb;if(_0x4766b7===_0x1ee079)break;else _0xaa307c['push'](_0xaa307c['shift']());}catch(_0x359df1){_0xaa307c['push'](_0xaa307c['shift']());}}}(_0x3bae,0x40db1),function(_0x527c11,_0x4343aa){var _0x25f13d=_0x5609;typeof exports==_0x25f13d(0xa1)&&typeof module<'u'?_0x4343aa(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define==_0x25f13d(0x174)&&define[_0x25f13d(0x8f)]?define(['exports','@univerjs-pro/collaboration-client',_0x25f13d(0x137),_0x25f13d(0x103),_0x25f13d(0xd3),_0x25f13d(0xcc),_0x25f13d(0xba),_0x25f13d(0xe5),'react',_0x25f13d(0x11d),_0x25f13d(0xa7),'rxjs/operators'],_0x4343aa):(_0x527c11=typeof globalThis<'u'?globalThis:_0x527c11||self,_0x4343aa(_0x527c11[_0x25f13d(0xc9)]={},_0x527c11[_0x25f13d(0x8d)],_0x527c11[_0x25f13d(0x10f)],_0x527c11[_0x25f13d(0x12e)],_0x527c11[_0x25f13d(0xbf)],_0x527c11['UniverUi'],_0x527c11[_0x25f13d(0xee)],_0x527c11[_0x25f13d(0xa9)],_0x527c11[_0x25f13d(0xee)],_0x527c11[_0x25f13d(0x94)],_0x527c11[_0x25f13d(0xa7)],_0x527c11[_0x25f13d(0xa7)]['operators']));}(this,function(_0x988c68,_0x3edf14,_0x52ae25,_0x4010f7,_0x488b97,_0x5256dc,_0x100b25,_0x306c07,_0x4eb6ea,_0x52a812,_0x3a65fb,_0x11ac24){'use strict';var _0x4b2da9=_0x5609;var _0xa7d795=Object[_0x4b2da9(0x10c)],_0xb8451e=(_0x397fcf,_0x2071ce,_0x2fb09e)=>_0x2071ce in _0x397fcf?_0xa7d795(_0x397fcf,_0x2071ce,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2fb09e}):_0x397fcf[_0x2071ce]=_0x2fb09e,_0x32c00e=(_0x33ea02,_0x57c83f,_0x1d946f)=>_0xb8451e(_0x33ea02,typeof _0x57c83f!='symbol'?_0x57c83f+'':_0x57c83f,_0x1d946f);const _0x49c2fe='live-share.config',_0x406d6b={};class _0x4d5148 extends _0x52ae25['Disposable']{constructor(){var _0xc0a606=_0x4b2da9;super(...arguments),_0x32c00e(this,'_sharedOperations',new Set()),_0x32c00e(this,_0xc0a606(0x146),new Set());}[_0x4b2da9(0x171)](_0x4859d0){var _0x5b7d78=_0x4b2da9;return this[_0x5b7d78(0x15a)][_0x5b7d78(0x135)](_0x4859d0),_0x52ae25[_0x5b7d78(0xb1)](()=>this['_sharedOperations'][_0x5b7d78(0x118)](_0x4859d0));}['registerInitialStateReporter'](_0x218132){var _0x324b21=_0x4b2da9;return this[_0x324b21(0x146)]['add'](_0x218132),_0x52ae25[_0x324b21(0xb1)](()=>this['_reporters'][_0x324b21(0x118)](_0x218132));}[_0x4b2da9(0xb3)](_0x28a226){var _0x3cac48=_0x4b2da9;return this[_0x3cac48(0x15a)][_0x3cac48(0x9b)](_0x28a226);}[_0x4b2da9(0x119)](_0x3c659d){var _0x3f6657=_0x4b2da9;return Array['from'](this[_0x3f6657(0x146)])['map'](_0x1b510b=>_0x1b510b(_0x3c659d));}}var _0x4fb4c0=Object[_0x4b2da9(0xdb)],_0x521363=(_0x343231,_0x9c0de,_0x5e9e63,_0x53b2d5)=>{var _0x44afa5=_0x4b2da9;for(var _0x20b83e=_0x53b2d5>0x1?void 0x0:_0x53b2d5?_0x4fb4c0(_0x9c0de,_0x5e9e63):_0x9c0de,_0x39052c=_0x343231[_0x44afa5(0xda)]-0x1,_0x5cbc33;_0x39052c>=0x0;_0x39052c--)(_0x5cbc33=_0x343231[_0x39052c])&&(_0x20b83e=_0x5cbc33(_0x20b83e)||_0x20b83e);return _0x20b83e;},_0x25664d=(_0x2d3b78,_0x32a83a)=>(_0x37cd61,_0x3ca90c)=>_0x32a83a(_0x37cd61,_0x3ca90c,_0x2d3b78);let _0x193606=class extends _0x52ae25[_0x4b2da9(0x113)]{constructor(_0xfd5fb8){var _0x2ab90b=_0x4b2da9;super(),this[_0x2ab90b(0x172)]=_0xfd5fb8,this['_init']();}[_0x4b2da9(0xf3)](){var _0x8ee1d4=_0x4b2da9;[_0x488b97[_0x8ee1d4(0x17c)]['id'],_0x488b97[_0x8ee1d4(0xfa)]['id'],_0x4010f7[_0x8ee1d4(0x148)]['id']]['forEach'](_0x417558=>{var _0x51adfa=_0x8ee1d4;this[_0x51adfa(0xf7)](this[_0x51adfa(0x172)][_0x51adfa(0x171)](_0x417558));});}};_0x193606=_0x521363([_0x25664d(0x0,_0x52ae25[_0x4b2da9(0x99)](_0x4d5148))],_0x193606);var _0x284491=function(){var _0x38bd11=_0x4b2da9;return _0x284491=Object[_0x38bd11(0x16a)]||function(_0x3eeeb6){var _0x3618fc=_0x38bd11;for(var _0x3be2a9,_0x26fb62=0x1,_0x4c8916=arguments[_0x3618fc(0xda)];_0x26fb62<_0x4c8916;_0x26fb62++){_0x3be2a9=arguments[_0x26fb62];for(var _0x4ecbfa in _0x3be2a9)Object[_0x3618fc(0x161)][_0x3618fc(0xfb)][_0x3618fc(0x157)](_0x3be2a9,_0x4ecbfa)&&(_0x3eeeb6[_0x4ecbfa]=_0x3be2a9[_0x4ecbfa]);}return _0x3eeeb6;},_0x284491[_0x38bd11(0x154)](this,arguments);},_0x5b3a57=function(_0x5b1027,_0x448335){var _0x129d98=_0x4b2da9,_0x10a307={};for(var _0x1b8d61 in _0x5b1027)Object[_0x129d98(0x161)][_0x129d98(0xfb)]['call'](_0x5b1027,_0x1b8d61)&&_0x448335[_0x129d98(0x15e)](_0x1b8d61)<0x0&&(_0x10a307[_0x1b8d61]=_0x5b1027[_0x1b8d61]);if(_0x5b1027!=null&&typeof Object['getOwnPropertySymbols']==_0x129d98(0x174)){for(var _0x23c11f=0x0,_0x1b8d61=Object[_0x129d98(0xa5)](_0x5b1027);_0x23c11f<_0x1b8d61[_0x129d98(0xda)];_0x23c11f++)_0x448335[_0x129d98(0x15e)](_0x1b8d61[_0x23c11f])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x5b1027,_0x1b8d61[_0x23c11f])&&(_0x10a307[_0x1b8d61[_0x23c11f]]=_0x5b1027[_0x1b8d61[_0x23c11f]]);}return _0x10a307;},_0x34d4fb=_0x4eb6ea[_0x4b2da9(0xe8)](function(_0x382a0f,_0x59f902){var _0x2bbb82=_0x4b2da9,_0x46bbf1=_0x382a0f[_0x2bbb82(0x90)],_0x493e71=_0x382a0f['id'],_0x3ef120=_0x382a0f['className'],_0x44aea3=_0x382a0f[_0x2bbb82(0x122)],_0x252c75=_0x5b3a57(_0x382a0f,[_0x2bbb82(0x90),'id',_0x2bbb82(0x16f),_0x2bbb82(0x122)]),_0x59ec50='univerjs-icon\x20univerjs-icon-'[_0x2bbb82(0x14a)](_0x493e71,'\x20')[_0x2bbb82(0x14a)](_0x3ef120||'')[_0x2bbb82(0x139)](),_0x1511ad=_0x4eb6ea[_0x2bbb82(0x158)]('_'[_0x2bbb82(0x14a)](_0x33065c()));return _0x2ac1ec(_0x46bbf1,''[_0x2bbb82(0x14a)](_0x493e71),{'defIds':_0x46bbf1[_0x2bbb82(0xdd)],'idSuffix':_0x1511ad[_0x2bbb82(0xb2)]},_0x284491({'ref':_0x59f902,'className':_0x59ec50},_0x252c75),_0x44aea3);});function _0x2ac1ec(_0x55f5af,_0x107205,_0x1cd732,_0x3eabd6,_0x5474e2){var _0x4bce13=_0x4b2da9;return _0x4eb6ea[_0x4bce13(0x108)](_0x55f5af['tag'],_0x284491(_0x284491({'key':_0x107205},_0x360ac0(_0x55f5af,_0x1cd732,_0x5474e2)),_0x3eabd6),(_0x4038a5(_0x55f5af,_0x1cd732)['children']||[])[_0x4bce13(0xab)](function(_0x46304f,_0x141676){var _0x27eb74=_0x4bce13;return _0x2ac1ec(_0x46304f,''[_0x27eb74(0x14a)](_0x107205,'-')[_0x27eb74(0x14a)](_0x55f5af[_0x27eb74(0x123)],'-')[_0x27eb74(0x14a)](_0x141676),_0x1cd732,void 0x0,_0x5474e2);}));}function _0x360ac0(_0x4f8133,_0xf7f7fc,_0x6d405a){var _0x820621=_0x4b2da9,_0x3110a2=_0x284491({},_0x4f8133[_0x820621(0x115)]);_0x6d405a!=null&&_0x6d405a[_0x820621(0x162)]&&_0x3110a2[_0x820621(0x142)]===_0x820621(0x162)&&(_0x3110a2['fill']=_0x6d405a[_0x820621(0x162)]),_0x4f8133['tag']===_0x820621(0xff)&&_0x3110a2['id']&&(_0x3110a2['id']=_0x3110a2['id']+_0xf7f7fc['idSuffix']),Object['entries'](_0x3110a2)['forEach'](function(_0x42e15d){var _0x4fbfde=_0x820621,_0x285648=_0x42e15d[0x0],_0x4187bc=_0x42e15d[0x1];_0x285648==='mask'&&typeof _0x4187bc==_0x4fbfde(0x95)&&(_0x3110a2[_0x285648]=_0x4187bc[_0x4fbfde(0xe7)](/url\(#(.*)\)/,'url(#$1'[_0x4fbfde(0x14a)](_0xf7f7fc['idSuffix'],')')));});var _0x364e07=_0xf7f7fc[_0x820621(0xdd)];return!_0x364e07||_0x364e07[_0x820621(0xda)]===0x0||(_0x4f8133[_0x820621(0x123)]===_0x820621(0x107)&&_0x3110a2[_0x820621(0xd0)]&&(_0x3110a2['xlink:href']=_0x3110a2['xlink:href']+_0xf7f7fc[_0x820621(0x10a)]),Object[_0x820621(0xc6)](_0x3110a2)[_0x820621(0x15b)](function(_0x391fa4){var _0x1946cc=_0x820621,_0x339c24=_0x391fa4[0x0],_0x48524b=_0x391fa4[0x1];typeof _0x48524b==_0x1946cc(0x95)&&(_0x3110a2[_0x339c24]=_0x48524b['replace'](/url\(#(.*)\)/,_0x1946cc(0xa4)[_0x1946cc(0x14a)](_0xf7f7fc[_0x1946cc(0x10a)],')')));})),_0x3110a2;}function _0x4038a5(_0x172656,_0x14527a){var _0x2037ce=_0x4b2da9,_0x2317ac,_0x46a8e0=_0x14527a['defIds'];return!_0x46a8e0||_0x46a8e0[_0x2037ce(0xda)]===0x0?_0x172656:_0x172656[_0x2037ce(0x123)]===_0x2037ce(0xad)&&(!((_0x2317ac=_0x172656[_0x2037ce(0x106)])===null||_0x2317ac===void 0x0)&&_0x2317ac[_0x2037ce(0xda)])?_0x284491(_0x284491({},_0x172656),{'children':_0x172656[_0x2037ce(0x106)]['map'](function(_0x6141de){var _0x2bfb84=_0x2037ce;return typeof _0x6141de[_0x2bfb84(0x115)]['id']==_0x2bfb84(0x95)&&_0x46a8e0&&_0x46a8e0[_0x2bfb84(0x17a)](_0x6141de[_0x2bfb84(0x115)]['id'])?_0x284491(_0x284491({},_0x6141de),{'attrs':_0x284491(_0x284491({},_0x6141de[_0x2bfb84(0x115)]),{'id':_0x6141de[_0x2bfb84(0x115)]['id']+_0x14527a[_0x2bfb84(0x10a)]})}):_0x6141de;})}):_0x172656;}function _0x33065c(){var _0x41314a=_0x4b2da9;return Math[_0x41314a(0xef)]()[_0x41314a(0xea)](0x24)[_0x41314a(0x9e)](0x2,0x8);}_0x34d4fb[_0x4b2da9(0x96)]='UniverIcon';var _0x5cefdb={'tag':_0x4b2da9(0x125),'attrs':{'xmlns':_0x4b2da9(0xc2),'fill':_0x4b2da9(0x134),'viewBox':_0x4b2da9(0xf8),'width':_0x4b2da9(0x12a),'height':_0x4b2da9(0x12a)},'children':[{'tag':_0x4b2da9(0xf9),'attrs':{'fill':_0x4b2da9(0x179),'d':_0x4b2da9(0x131)}},{'tag':_0x4b2da9(0xf9),'attrs':{'fill':'currentColor','d':_0x4b2da9(0x12b),'fillRule':_0x4b2da9(0x114),'clipRule':_0x4b2da9(0x114)}}]},_0x43b2c0=_0x4eb6ea[_0x4b2da9(0xe8)](function(_0x44652f,_0xc19cdf){var _0xf3c0c9=_0x4b2da9;return _0x4eb6ea[_0xf3c0c9(0x108)](_0x34d4fb,Object[_0xf3c0c9(0x16a)]({},_0x44652f,{'id':_0xf3c0c9(0xe2),'ref':_0xc19cdf,'icon':_0x5cefdb}));});_0x43b2c0['displayName']=_0x4b2da9(0x101);var _0x21b067=Object[_0x4b2da9(0xdb)],_0xd3c029=(_0x53fa9e,_0x578316,_0x5883fd,_0x3edcc4)=>{var _0x1724dd=_0x4b2da9;for(var _0x3f1f29=_0x3edcc4>0x1?void 0x0:_0x3edcc4?_0x21b067(_0x578316,_0x5883fd):_0x578316,_0x1a196a=_0x53fa9e[_0x1724dd(0xda)]-0x1,_0xb5434c;_0x1a196a>=0x0;_0x1a196a--)(_0xb5434c=_0x53fa9e[_0x1a196a])&&(_0x3f1f29=_0xb5434c(_0x3f1f29)||_0x3f1f29);return _0x3f1f29;},_0x556dbe=(_0xb99c8,_0x4a915e)=>(_0x3440d2,_0xfac51b)=>_0x4a915e(_0x3440d2,_0xfac51b,_0xb99c8);_0x988c68[_0x4b2da9(0x91)]=class extends _0x52ae25[_0x4b2da9(0xe1)]{constructor(_0x2b2e0c,_0x4527a9,_0x52d6b6){var _0x31c777=_0x4b2da9;super(),_0x32c00e(this,_0x31c777(0x88),new Map()),(this['_univerInstanceService']=_0x2b2e0c,this[_0x31c777(0xcb)]=_0x4527a9,this[_0x31c777(0x128)]=_0x52d6b6,this[_0x31c777(0xf3)]());}async[_0x4b2da9(0xb8)](_0x35611b){var _0x3d953d=_0x4b2da9;return this[_0x3d953d(0x88)][_0x3d953d(0x9b)](_0x35611b)||await this['_startLiveShareCoordinator'](_0x35611b),this[_0x3d953d(0x88)][_0x3d953d(0xaa)](_0x35611b);}['_init'](){var _0x493276=_0x4b2da9;this[_0x493276(0x130)][_0x493276(0x12c)](_0x52ae25[_0x493276(0x10d)][_0x493276(0x138)])[_0x493276(0xf0)](_0x11ac24[_0x493276(0x14b)](this[_0x493276(0xeb)]))[_0x493276(0x136)](async _0xc9273d=>{var _0xdafb79=_0x493276;const _0x38ae88=_0xc9273d['getUnitId']();this['_entities']['has'](_0x38ae88)||this[_0xdafb79(0x133)](_0x38ae88);}),this[_0x493276(0x130)][_0x493276(0xcf)](_0x52ae25[_0x493276(0x10d)]['UNIVER_SHEET'])[_0x493276(0xf0)](_0x11ac24['takeUntil'](this['dispose$']))[_0x493276(0x136)](_0x2fa69f=>{var _0x42f9b3=_0x493276;const _0x15eef1=_0x2fa69f[_0x42f9b3(0x178)](),_0x447fce=this[_0x42f9b3(0x88)][_0x42f9b3(0xaa)](_0x15eef1);_0x447fce==null||_0x447fce[_0x42f9b3(0x100)]();});}async['_startLiveShareCoordinator'](_0x2ea79c){var _0x32787c=_0x4b2da9;const _0x388a18=await this[_0x32787c(0x128)][_0x32787c(0x159)](_0x2ea79c),_0x3fec8f=this[_0x32787c(0xcb)]['createInstance'](_0x988c68[_0x32787c(0x8b)],_0x2ea79c,_0x388a18);return _0x3fec8f[_0x32787c(0xca)](),this['_entities'][_0x32787c(0x13f)](_0x2ea79c,_0x3fec8f),_0x3fec8f;}},_0x988c68[_0x4b2da9(0x91)]=_0xd3c029([_0x556dbe(0x0,_0x52ae25[_0x4b2da9(0x153)]),_0x556dbe(0x1,_0x52ae25[_0x4b2da9(0x99)](_0x52ae25[_0x4b2da9(0x144)])),_0x556dbe(0x2,_0x52ae25[_0x4b2da9(0x99)](_0x3edf14['CollaborationSessionService']))],_0x988c68['LiveShareController']);var _0x11b65=(_0x2c78dc=>(_0x2c78dc[_0x4b2da9(0xc8)]=_0x4b2da9(0x16d),_0x2c78dc['IDLE']=_0x4b2da9(0x9f),_0x2c78dc[_0x4b2da9(0xaf)]=_0x4b2da9(0x155),_0x2c78dc[_0x4b2da9(0x150)]='not-following',_0x2c78dc[_0x4b2da9(0x11e)]=_0x4b2da9(0xf6),_0x2c78dc))(_0x11b65||{});const _0x339fa3='SAME_OPERATION_SHARE_INTERVAL',_0x388980=0xc8;_0x988c68[_0x4b2da9(0x8b)]=class extends _0x52ae25[_0x4b2da9(0xe1)]{constructor(_0x2072ef,_0x5b4cc3,_0x5c64d6,_0x2c74f2,_0xb776b8){var _0x156527=_0x4b2da9;super(),_0x32c00e(this,_0x156527(0x97),new _0x3a65fb['BehaviorSubject'](_0x156527(0x9f))),_0x32c00e(this,_0x156527(0x127),this[_0x156527(0x97)][_0x156527(0x163)]()),_0x32c00e(this,_0x156527(0xf3),!0x1),_0x32c00e(this,'_commandDisposable',null),_0x32c00e(this,_0x156527(0x170),null),(this['_unitID']=_0x2072ef,this[_0x156527(0xb4)]=_0x5b4cc3,this[_0x156527(0xb6)]=_0x5c64d6,this['_liveShareService']=_0x2c74f2,this[_0x156527(0x112)]=_0xb776b8);}get['_status'](){var _0x44663b=_0x4b2da9;return this['_status$'][_0x44663b(0xcd)]();}[_0x4b2da9(0x100)](){var _0x14386=_0x4b2da9,_0x1be885;(_0x1be885=this[_0x14386(0x169)])==null||_0x1be885[_0x14386(0x100)](),this[_0x14386(0x97)]['next'](_0x14386(0x9f)),this[_0x14386(0x97)]['complete']();}[_0x4b2da9(0xca)](){var _0x3e79ec=_0x4b2da9;this[_0x3e79ec(0xf3)]||(this[_0x3e79ec(0xf3)]=!0x0,this[_0x3e79ec(0xb4)][_0x3e79ec(0xe6)]['pipe'](_0x11ac24[_0x3e79ec(0x14b)](this[_0x3e79ec(0xeb)]))[_0x3e79ec(0x136)](_0x5622e9=>{var _0x5cd73f=_0x3e79ec;switch(_0x5622e9){case _0x3edf14['SessionStatus'][_0x5cd73f(0xc8)]:this[_0x5cd73f(0x9d)]();break;case _0x3edf14[_0x5cd73f(0x166)][_0x5cd73f(0x175)]:this[_0x5cd73f(0x129)]();break;}}),this[_0x3e79ec(0xb4)]['event$'][_0x3e79ec(0xf0)](_0x11ac24[_0x3e79ec(0x14b)](this[_0x3e79ec(0xeb)]))[_0x3e79ec(0x136)](_0x42a51a=>{var _0x514cd2=_0x3e79ec;const {eventID:_0x28bb22}=_0x42a51a;switch(_0x28bb22){case _0x52a812['CollaborationEvent']['LIVESHARE_NEW_HOST']:this[_0x514cd2(0x12f)](_0x42a51a);break;case _0x52a812[_0x514cd2(0x13b)][_0x514cd2(0xe0)]:this[_0x514cd2(0x14c)](_0x42a51a);break;case _0x52a812[_0x514cd2(0x13b)][_0x514cd2(0xb0)]:this[_0x514cd2(0x143)]();break;case _0x52a812['CollaborationEvent']['NEW_CHANGESETS']:this[_0x514cd2(0xf2)](_0x42a51a);break;}}));}[_0x4b2da9(0xed)](){var _0x257252=_0x4b2da9;this[_0x257252(0xb4)][_0x257252(0x17b)]({'eventID':_0x52a812[_0x257252(0x13b)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x257252(0xb4)][_0x257252(0xf4)]()}},this[_0x257252(0xb5)]);}[_0x4b2da9(0xd7)](){var _0x816205=_0x4b2da9;this[_0x816205(0x9a)]===_0x816205(0xf6)&&(this[_0x816205(0x97)][_0x816205(0xe9)](_0x816205(0x9f)),this[_0x816205(0xb4)][_0x816205(0x17b)]({'eventID':_0x52a812[_0x816205(0x13b)][_0x816205(0xb0)],'data':{'unitID':this[_0x816205(0xb5)]}},this['_unitID']));}['startFollowing'](){var _0x5a05db=_0x4b2da9;this[_0x5a05db(0x9a)]===_0x5a05db(0xb9)&&(this[_0x5a05db(0x97)][_0x5a05db(0xe9)](_0x5a05db(0x155)),this[_0x5a05db(0x13d)]());}[_0x4b2da9(0x92)](){var _0x32f7ea=_0x4b2da9;this['_status']==='following'&&this[_0x32f7ea(0x141)]();}[_0x4b2da9(0x12f)](_0x242b30){var _0x3e2b1c=_0x4b2da9;const {presenter:_0x581d53}=_0x242b30['data'],_0x5c8b82=this[_0x3e2b1c(0xb4)][_0x3e2b1c(0xf4)]();this['_presenter']=_0x581d53,_0x581d53===_0x5c8b82?(this[_0x3e2b1c(0x141)](),this[_0x3e2b1c(0xa3)]()):this['_status']!==_0x3e2b1c(0xb9)&&(this[_0x3e2b1c(0x116)](),this[_0x3e2b1c(0x13d)]());}[_0x4b2da9(0x111)](){var _0x22e1a0=_0x4b2da9;const _0x3e8311={'eventID':_0x52a812['CollaborationEvent'][_0x22e1a0(0xc4)]};this[_0x22e1a0(0xb4)][_0x22e1a0(0x17b)](_0x3e8311,this[_0x22e1a0(0xb5)]);}[_0x4b2da9(0x143)](){var _0x2cea56=_0x4b2da9;this[_0x2cea56(0x170)]=null,this[_0x2cea56(0x9a)]!==_0x2cea56(0xf6)&&this[_0x2cea56(0xa0)]();}['_handleNewChangeSets'](_0x431e3f){var _0x4837b4=_0x4b2da9;if(this[_0x4837b4(0x9a)]===_0x4837b4(0x155)&&this[_0x4837b4(0x170)]===_0x431e3f[_0x4837b4(0x93)][_0x4837b4(0x13a)]){const _0x2765a1=_0x52a812[_0x4837b4(0xd6)](_0x431e3f['data'])[_0x4837b4(0x14f)]['reverse']()[_0x4837b4(0xd8)](_0xb206cc=>_0xb206cc['id']===_0x4010f7[_0x4837b4(0xbc)]['id']);if(_0x2765a1){const _0x1d7d7f=_0x2765a1[_0x4837b4(0xbd)]['unitId'],_0x2f9413=_0x2765a1['params'][_0x4837b4(0xf1)]['id'];setTimeout(()=>{var _0x1608d5=_0x4837b4;this['_commandService'][_0x1608d5(0x149)](_0x4010f7[_0x1608d5(0x148)]['id'],{'unitId':_0x1d7d7f,'subUnitId':_0x2f9413},{'fromCollab':!0x0});});}}}[_0x4b2da9(0xa3)](){var _0x7af3ae=_0x4b2da9;this[_0x7af3ae(0x97)][_0x7af3ae(0xe9)](_0x7af3ae(0xf6));const _0x4d43a4=new Map(),_0x41130c=this[_0x7af3ae(0x169)]=new _0x52ae25[(_0x7af3ae(0xd5))]();_0x41130c[_0x7af3ae(0x135)](_0x52ae25['toDisposable'](()=>{var _0x504916=_0x7af3ae;_0x4d43a4[_0x504916(0x15b)](_0x3a4d75=>_0x3a4d75[_0x504916(0x14e)]()),_0x4d43a4['clear']();})),_0x41130c[_0x7af3ae(0x135)](this[_0x7af3ae(0x112)][_0x7af3ae(0x177)](_0x9a28a3=>{var _0x5d218d=_0x7af3ae,_0x3eca05;if(_0x9a28a3[_0x5d218d(0xb7)]!==_0x52ae25['CommandType'][_0x5d218d(0x16e)]||!this['_liveShareService'][_0x5d218d(0xb3)](_0x9a28a3['id']))return;const {id:_0x14556e}=_0x9a28a3;let _0x390fa5;_0x4d43a4['has'](_0x14556e)?_0x390fa5=_0x4d43a4[_0x5d218d(0xaa)](_0x14556e):(_0x390fa5=new _0x3a65fb['Subject'](),_0x4d43a4[_0x5d218d(0x13f)](_0x14556e,_0x390fa5),_0x390fa5['pipe'](_0x11ac24[_0x5d218d(0xfe)]((_0x3eca05=this[_0x5d218d(0xb6)][_0x5d218d(0xdf)](_0x339fa3))!=null?_0x3eca05:_0x388980,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5d218d(0x136)](_0x3d8526=>{var _0x3bdbd5=_0x5d218d;this[_0x3bdbd5(0xb4)][_0x3bdbd5(0x17b)]({'eventID':_0x52a812['CollaborationEvent'][_0x3bdbd5(0xe0)],'data':{'unitID':this['_unitID'],'operations':{[_0x3d8526['id']]:{'id':_0x3d8526['id'],'params':JSON[_0x3bdbd5(0x121)](_0x3d8526[_0x3bdbd5(0xbd)])}}}},this['_unitID']);})),_0x390fa5[_0x5d218d(0xe9)](_0x9a28a3);})),this[_0x7af3ae(0x172)]['getInitialStates'](this[_0x7af3ae(0xb5)])[_0x7af3ae(0x15b)](_0x32b561=>this[_0x7af3ae(0xb4)]['send']({'eventID':_0x52a812['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x7af3ae(0xb5)],'operations':{[_0x32b561['id']]:{'id':_0x32b561['id'],'params':JSON[_0x7af3ae(0x121)](_0x32b561[_0x7af3ae(0xbd)])}}}},this[_0x7af3ae(0xb5)]));}['_stopPresenting'](){var _0x1bdd79=_0x4b2da9,_0x44e1ab;this[_0x1bdd79(0x97)][_0x1bdd79(0xe9)](_0x1bdd79(0x9f)),(_0x44e1ab=this['_commandDisposable'])==null||_0x44e1ab[_0x1bdd79(0x100)](),this[_0x1bdd79(0x169)]=null;}['_startFollowing'](){var _0xb0fafd=_0x4b2da9,_0x2e0a35;(_0x2e0a35=this['_commandDisposable'])==null||_0x2e0a35['dispose'](),this[_0xb0fafd(0x97)][_0xb0fafd(0xe9)]('following');}[_0x4b2da9(0xa0)](){var _0x1c7111=_0x4b2da9,_0x18426d;this[_0x1c7111(0x97)][_0x1c7111(0xe9)](_0x1c7111(0x9f)),(_0x18426d=this[_0x1c7111(0x169)])==null||_0x18426d[_0x1c7111(0x100)](),this[_0x1c7111(0x169)]=null;}[_0x4b2da9(0x141)](){var _0x1327e1=_0x4b2da9,_0xcfa834;this['_status$'][_0x1327e1(0xe9)](_0x1327e1(0xb9)),(_0xcfa834=this['_commandDisposable'])==null||_0xcfa834[_0x1327e1(0x100)]();}[_0x4b2da9(0x14c)](_0x465af6){var _0x523bb3=_0x4b2da9;if([_0x523bb3(0xf6),_0x523bb3(0xb9),_0x523bb3(0x16d)][_0x523bb3(0x17a)](this['_status'])||!_0x465af6[_0x523bb3(0x93)][_0x523bb3(0x11a)]||_0x465af6[_0x523bb3(0x93)][_0x523bb3(0x11a)]===this[_0x523bb3(0xb4)][_0x523bb3(0xf4)]())return;this[_0x523bb3(0x9a)]===_0x523bb3(0x9f)&&this['_startFollowing']();const _0x4c46f0=_0x465af6[_0x523bb3(0x93)][_0x523bb3(0x110)];Object[_0x523bb3(0xc1)](_0x4c46f0)[_0x523bb3(0x15b)](_0x3e1642=>{var _0x349593=_0x523bb3;this[_0x349593(0x112)][_0x349593(0x149)](_0x3e1642['id'],_0x3e1642[_0x349593(0xbd)]?JSON[_0x349593(0x156)](_0x3e1642[_0x349593(0xbd)]):null,{'fromCollab':!0x0});});}[_0x4b2da9(0x9d)](){var _0x4386e9=_0x4b2da9,_0x351814;this[_0x4386e9(0x97)][_0x4386e9(0xe9)](_0x4386e9(0x16d)),(_0x351814=this[_0x4386e9(0x169)])==null||_0x351814[_0x4386e9(0x100)]();}[_0x4b2da9(0x129)](){var _0x25caa1=_0x4b2da9;this[_0x25caa1(0x97)][_0x25caa1(0xe9)](_0x25caa1(0x9f)),this['_fetchOperations']();}},_0x988c68[_0x4b2da9(0x8b)]=_0xd3c029([_0x556dbe(0x2,_0x52ae25[_0x4b2da9(0x12d)]),_0x556dbe(0x3,_0x52ae25[_0x4b2da9(0x99)](_0x4d5148)),_0x556dbe(0x4,_0x52ae25[_0x4b2da9(0xfd)])],_0x988c68[_0x4b2da9(0x8b)]);function _0x36f991(){var _0x3ce8a0=_0x4b2da9;const _0x187ff5=_0x5256dc[_0x3ce8a0(0x109)](_0x988c68['LiveShareController']),_0x18e683=_0x5256dc['useDependency'](_0x52ae25['IUniverInstanceService']),_0x24c60a=_0x5256dc[_0x3ce8a0(0xc3)](()=>_0x18e683[_0x3ce8a0(0x11f)](_0x52ae25[_0x3ce8a0(0x10d)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5e5595,_0x2f5fda]=_0x4eb6ea[_0x3ce8a0(0x8c)](null),[_0x347548,_0x8eb6e3]=_0x4eb6ea[_0x3ce8a0(0x8c)](_0x11b65[_0x3ce8a0(0x10e)]),_0x5328d3=_0x4eb6ea['useRef'](null);return _0x4eb6ea[_0x3ce8a0(0x9c)](()=>(_0x24c60a&&_0x187ff5[_0x3ce8a0(0xb8)](_0x24c60a[_0x3ce8a0(0x178)]())['then'](_0x36a920=>{var _0x1d7a69=_0x3ce8a0;_0x2f5fda(_0x36a920),_0x5328d3['current']=_0x36a920[_0x1d7a69(0x127)][_0x1d7a69(0x136)](_0x176b84=>{_0x8eb6e3(_0x176b84);});}),()=>{var _0x3ed7c8=_0x3ce8a0,_0xd26a45;(_0xd26a45=_0x5328d3[_0x3ed7c8(0xb2)])==null||_0xd26a45[_0x3ed7c8(0x105)](),_0x5328d3[_0x3ed7c8(0xb2)]=null;}),[_0x24c60a,_0x187ff5]),_0x5e5595?_0x100b25[_0x3ce8a0(0x8a)](_0x306c07[_0x3ce8a0(0x160)],{'align':'end','disabled':_0x347548===_0x11b65[_0x3ce8a0(0xc8)],'className':_0x3ce8a0(0x14d),'overlay':_0x100b25['jsx'](_0x2aac29,{'status':_0x347548,'coordinator':_0x5e5595}),'children':_0x100b25[_0x3ce8a0(0x8a)](_0x3ce8a0(0xa2),{'className':_0x306c07['clsx'](_0x3ce8a0(0x173),{'univer-cursor-not-allowed':_0x347548===_0x11b65['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x347548!==_0x11b65['OFFLINE']}),'type':_0x3ce8a0(0xa2),'children':_0x100b25['jsx'](_0x43b2c0,{'className':_0x3ce8a0(0xe4)})})}):null;}function _0x2aac29(_0x46a392){var _0x578614=_0x4b2da9;const {status:_0x2ee4cb,coordinator:_0x11a09d}=_0x46a392;switch(_0x2ee4cb){case _0x11b65[_0x578614(0x10e)]:return _0x100b25[_0x578614(0x8a)](_0x406588,{'coordinator':_0x11a09d});case _0x11b65[_0x578614(0xaf)]:return _0x100b25[_0x578614(0x8a)](_0x2e941d,{'coordinator':_0x11a09d});case _0x11b65[_0x578614(0x150)]:return _0x100b25[_0x578614(0x8a)](_0x5a6787,{'coordinator':_0x11a09d});case _0x11b65[_0x578614(0xc8)]:return _0x100b25[_0x578614(0x8a)](_0x268f7b,{});case _0x11b65[_0x578614(0x11e)]:return _0x100b25[_0x578614(0x8a)](_0x14942c,{'coordinator':_0x11a09d});default:return null;}}function _0x406588(_0xbb4f69){var _0x1a5c8c=_0x4b2da9;const {coordinator:_0xd85788}=_0xbb4f69;return _0x100b25[_0x1a5c8c(0x124)](_0x100b25[_0x1a5c8c(0xd9)],{'children':[_0x100b25['jsx'](_0x1a5c8c(0x8e),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1a5c8c(0x104)}),_0x100b25[_0x1a5c8c(0x8a)](_0x306c07[_0x1a5c8c(0x152)],{'onClick':()=>_0xd85788['tryStartPresenting'](),'children':_0x1a5c8c(0xde)})]});}function _0x2e941d(_0x8d3106){var _0x544890=_0x4b2da9;const {coordinator:_0x5f1b7a}=_0x8d3106;return _0x100b25[_0x544890(0x124)](_0x100b25[_0x544890(0xd9)],{'children':[_0x100b25['jsx'](_0x544890(0x8e),{'className':_0x544890(0x15f),'children':_0x544890(0x13c)}),_0x100b25[_0x544890(0x8a)](_0x306c07[_0x544890(0x152)],{'onClick':()=>_0x5f1b7a[_0x544890(0x92)](),'children':_0x544890(0x132)})]});}function _0x5a6787(_0x54eb56){var _0x1ebab5=_0x4b2da9;const {coordinator:_0x3f3d57}=_0x54eb56;return _0x100b25[_0x1ebab5(0x124)](_0x100b25[_0x1ebab5(0xd9)],{'children':[_0x100b25[_0x1ebab5(0x8a)]('div',{'className':_0x1ebab5(0x15f),'children':_0x1ebab5(0x165)}),_0x100b25[_0x1ebab5(0x8a)](_0x306c07['Button'],{'variant':_0x1ebab5(0xbe),'onClick':()=>_0x3f3d57[_0x1ebab5(0x176)](),'children':'Start\x20following'})]});}function _0x14942c(_0xd1fbc8){var _0x2d0777=_0x4b2da9;const {coordinator:_0x3ebce4}=_0xd1fbc8;return _0x100b25[_0x2d0777(0x124)](_0x100b25[_0x2d0777(0xd9)],{'children':[_0x100b25['jsx'](_0x2d0777(0x8e),{'className':_0x2d0777(0x15f),'children':_0x2d0777(0x102)}),_0x100b25[_0x2d0777(0x8a)](_0x306c07['Button'],{'variant':'default','onClick':()=>_0x3ebce4[_0x2d0777(0xd7)](),'children':_0x2d0777(0x15c)})]});}function _0x268f7b(){var _0x26c7a6=_0x4b2da9;return _0x100b25[_0x26c7a6(0x8a)](_0x100b25[_0x26c7a6(0xd9)],{'children':'You\x27are\x20offline.'});}var _0x3ca9d2=Object[_0x4b2da9(0xdb)],_0x4c4789=(_0xaaebfd,_0x545a20,_0x3254ff,_0x22ac7a)=>{var _0x582aa1=_0x4b2da9;for(var _0x5538ca=_0x22ac7a>0x1?void 0x0:_0x22ac7a?_0x3ca9d2(_0x545a20,_0x3254ff):_0x545a20,_0x445ab4=_0xaaebfd[_0x582aa1(0xda)]-0x1,_0x583c42;_0x445ab4>=0x0;_0x445ab4--)(_0x583c42=_0xaaebfd[_0x445ab4])&&(_0x5538ca=_0x583c42(_0x5538ca)||_0x5538ca);return _0x5538ca;},_0x7f0726=(_0x13fcfc,_0x74eef)=>(_0x508b3d,_0x38e9ad)=>_0x74eef(_0x508b3d,_0x38e9ad,_0x13fcfc);_0x988c68[_0x4b2da9(0xdc)]=class extends _0x52ae25[_0x4b2da9(0x113)]{constructor(_0x2bdc08,_0xf0d740){var _0x3914f1=_0x4b2da9;super(),this['_injector']=_0x2bdc08,this['_uiPartsService']=_0xf0d740,this[_0x3914f1(0x164)]();}[_0x4b2da9(0x164)](){var _0xfc5cd4=_0x4b2da9;this[_0xfc5cd4(0xf7)](this[_0xfc5cd4(0xac)][_0xfc5cd4(0x89)](_0x5256dc['BuiltInUIPart'][_0xfc5cd4(0x145)],()=>_0x5256dc[_0xfc5cd4(0x117)](_0x36f991,this[_0xfc5cd4(0xcb)])));}},_0x988c68[_0x4b2da9(0xdc)]=_0x4c4789([_0x7f0726(0x0,_0x52ae25[_0x4b2da9(0x99)](_0x52ae25[_0x4b2da9(0x144)])),_0x7f0726(0x1,_0x5256dc[_0x4b2da9(0xae)])],_0x988c68[_0x4b2da9(0xdc)]);var _0x27ec47=Object[_0x4b2da9(0x10c)],_0x44f531=Object[_0x4b2da9(0xdb)],_0x1b2b19=(_0x361551,_0x2e23ed,_0x368833)=>_0x2e23ed in _0x361551?_0x27ec47(_0x361551,_0x2e23ed,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x368833}):_0x361551[_0x2e23ed]=_0x368833,_0x5e58d0=(_0x4382b5,_0x5315cc,_0x32dc8b,_0x25c6c3)=>{var _0x2877cc=_0x4b2da9;for(var _0x11469b=_0x25c6c3>0x1?void 0x0:_0x25c6c3?_0x44f531(_0x5315cc,_0x32dc8b):_0x5315cc,_0x1b96c5=_0x4382b5[_0x2877cc(0xda)]-0x1,_0xcbcdeb;_0x1b96c5>=0x0;_0x1b96c5--)(_0xcbcdeb=_0x4382b5[_0x1b96c5])&&(_0x11469b=_0xcbcdeb(_0x11469b)||_0x11469b);return _0x11469b;},_0xf29f17=(_0x1439fe,_0x2873f9)=>(_0x1ef220,_0x4f7b03)=>_0x2873f9(_0x1ef220,_0x4f7b03,_0x1439fe),_0x19e1be=(_0x4b53ed,_0x1b12f4,_0x1195eb)=>_0x1b2b19(_0x4b53ed,typeof _0x1b12f4!=_0x4b2da9(0x168)?_0x1b12f4+'':_0x1b12f4,_0x1195eb);const _0x4ecbea=_0x4b2da9(0x140);_0x988c68[_0x4b2da9(0xd2)]=class extends _0x52ae25[_0x4b2da9(0x16c)]{constructor(_0x218618=_0x406d6b,_0x595127,_0x47ef0b){var _0x59b1a2=_0x4b2da9;super(),this[_0x59b1a2(0xd4)]=_0x218618,this[_0x59b1a2(0xcb)]=_0x595127,this[_0x59b1a2(0xb6)]=_0x47ef0b;const {..._0x4d5f6f}=_0x52ae25['merge']({},_0x406d6b,this[_0x59b1a2(0xd4)]);this[_0x59b1a2(0xb6)][_0x59b1a2(0x15d)](_0x49c2fe,_0x4d5f6f);}[_0x4b2da9(0x13e)](){var _0x369bf4=_0x4b2da9;_0x52ae25[_0x369bf4(0xbb)](this[_0x369bf4(0xcb)],_0x52ae25[_0x369bf4(0x126)]([[_0x4d5148],[_0x988c68['LiveShareController']],[_0x193606],[_0x988c68['DesktopLiveShareController']]],this[_0x369bf4(0xd4)]['override'])),_0x52ae25[_0x369bf4(0xc0)](this[_0x369bf4(0xcb)],[[_0x193606]]);}[_0x4b2da9(0x16b)](){var _0x543ac3=_0x4b2da9;_0x52ae25[_0x543ac3(0xc0)](this[_0x543ac3(0xcb)],[[_0x988c68[_0x543ac3(0xdc)]]]);}},_0x19e1be(_0x988c68['UniverLiveSharePlugin'],_0x4b2da9(0xb7),_0x52ae25[_0x4b2da9(0x10d)]['UNIVER_UNKNOWN']),_0x19e1be(_0x988c68[_0x4b2da9(0xd2)],_0x4b2da9(0x151),_0x4ecbea),_0x988c68['UniverLiveSharePlugin']=_0x5e58d0([_0x52ae25[_0x4b2da9(0x167)](_0x3edf14['UniverCollaborationClientPlugin']),_0xf29f17(0x1,_0x52ae25[_0x4b2da9(0x99)](_0x52ae25['Injector'])),_0xf29f17(0x2,_0x52ae25[_0x4b2da9(0x12d)])],_0x988c68[_0x4b2da9(0xd2)]),_0x988c68[_0x4b2da9(0x147)]=_0x36f991,_0x988c68[_0x4b2da9(0xc5)]=_0x4d5148,_0x988c68[_0x4b2da9(0x11c)]=_0x11b65,Object[_0x4b2da9(0x10c)](_0x988c68,Symbol[_0x4b2da9(0xd1)],{'value':_0x4b2da9(0x120)});}));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.4.6",
|
|
50
|
-
"@univerjs-pro/collaboration-client": "0.10.
|
|
51
|
-
"@univerjs/
|
|
52
|
-
"@univerjs
|
|
53
|
-
"@univerjs/design": "0.10.
|
|
54
|
-
"@univerjs/sheets
|
|
55
|
-
"@univerjs/ui": "0.10.
|
|
56
|
-
"@univerjs/
|
|
50
|
+
"@univerjs-pro/collaboration-client": "0.10.2",
|
|
51
|
+
"@univerjs-pro/collaboration": "0.10.2",
|
|
52
|
+
"@univerjs/core": "0.10.2",
|
|
53
|
+
"@univerjs/design": "0.10.2",
|
|
54
|
+
"@univerjs/sheets": "0.10.2",
|
|
55
|
+
"@univerjs/sheets-ui": "0.10.2",
|
|
56
|
+
"@univerjs/ui": "0.10.2"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
64
|
"vite": "^7.0.6",
|
|
65
65
|
"vitest": "^3.2.4",
|
|
66
|
-
"@univerjs-infra/shared": "0.10.
|
|
66
|
+
"@univerjs-infra/shared": "0.10.2",
|
|
67
67
|
"@univerjs/protocol": "0.1.47-alpha.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|