@univerjs-pro/live-share 0.10.1-nightly.202508020912 → 0.10.2-nightly.202508071209
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/types/index.d.ts +4 -4
- 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';function _0x170a(_0x31eacd,_0x1ebfcb){var _0x29fa99=_0x29fa();return _0x170a=function(_0x170af5,_0x548881){_0x170af5=_0x170af5-0x95;var _0xd09e6d=_0x29fa99[_0x170af5];return _0xd09e6d;},_0x170a(_0x31eacd,_0x1ebfcb);}var _0x16da90=_0x170a;(function(_0x20759c,_0x9d7179){var _0x418070=_0x170a,_0x3b409d=_0x20759c();while(!![]){try{var _0x4f3b83=-parseInt(_0x418070(0xdc))/0x1*(parseInt(_0x418070(0x14b))/0x2)+-parseInt(_0x418070(0xec))/0x3*(-parseInt(_0x418070(0xd9))/0x4)+-parseInt(_0x418070(0xe6))/0x5*(-parseInt(_0x418070(0x152))/0x6)+parseInt(_0x418070(0xf9))/0x7+-parseInt(_0x418070(0x133))/0x8*(parseInt(_0x418070(0xc2))/0x9)+-parseInt(_0x418070(0xeb))/0xa*(-parseInt(_0x418070(0xbf))/0xb)+parseInt(_0x418070(0x167))/0xc*(-parseInt(_0x418070(0x110))/0xd);if(_0x4f3b83===_0x9d7179)break;else _0x3b409d['push'](_0x3b409d['shift']());}catch(_0x35dbb2){_0x3b409d['push'](_0x3b409d['shift']());}}}(_0x29fa,0x66166));var U=Object['defineProperty'],F=(_0x882ed0,_0x50a72b,_0x4916eb)=>_0x50a72b in _0x882ed0?U(_0x882ed0,_0x50a72b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4916eb}):_0x882ed0[_0x50a72b]=_0x4916eb,v=(_0x11e64c,_0x33ec45,_0x25d2ce)=>F(_0x11e64c,typeof _0x33ec45!=_0x16da90(0x16c)?_0x33ec45+'':_0x33ec45,_0x25d2ce);Object[_0x16da90(0x12f)](exports,Symbol[_0x16da90(0x148)],{'value':_0x16da90(0x150)});const o=require('@univerjs/core'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),m=require('@univerjs-pro/collaboration-client'),C=require('@univerjs/sheets'),w=require('rxjs'),b=require('rxjs/operators'),D=require('@univerjs/sheets-ui');var u=function(){var _0x40bcb7=_0x16da90;return u=Object['assign']||function(_0x1feaeb){var _0x18bcdc=_0x170a;for(var _0x411692,_0x5fb292=0x1,_0x4b4cd4=arguments[_0x18bcdc(0xcc)];_0x5fb292<_0x4b4cd4;_0x5fb292++){_0x411692=arguments[_0x5fb292];for(var _0x4b6c46 in _0x411692)Object[_0x18bcdc(0xbe)][_0x18bcdc(0xf2)][_0x18bcdc(0x117)](_0x411692,_0x4b6c46)&&(_0x1feaeb[_0x4b6c46]=_0x411692[_0x4b6c46]);}return _0x1feaeb;},u[_0x40bcb7(0xfb)](this,arguments);},$=function(_0x3619b7,_0x2b8c3a){var _0x3033b6=_0x16da90,_0x307a33={};for(var _0x2b825a in _0x3619b7)Object[_0x3033b6(0xbe)]['hasOwnProperty'][_0x3033b6(0x117)](_0x3619b7,_0x2b825a)&&_0x2b8c3a[_0x3033b6(0x129)](_0x2b825a)<0x0&&(_0x307a33[_0x2b825a]=_0x3619b7[_0x2b825a]);if(_0x3619b7!=null&&typeof Object['getOwnPropertySymbols']==_0x3033b6(0xf5)){for(var _0xb52250=0x0,_0x2b825a=Object[_0x3033b6(0x108)](_0x3619b7);_0xb52250<_0x2b825a[_0x3033b6(0xcc)];_0xb52250++)_0x2b8c3a[_0x3033b6(0x129)](_0x2b825a[_0xb52250])<0x0&&Object[_0x3033b6(0xbe)][_0x3033b6(0x14e)][_0x3033b6(0x117)](_0x3619b7,_0x2b825a[_0xb52250])&&(_0x307a33[_0x2b825a[_0xb52250]]=_0x3619b7[_0x2b825a[_0xb52250]]);}return _0x307a33;},j=f[_0x16da90(0xee)](function(_0x4b4e93,_0x165b7d){var _0xb18d5b=_0x16da90,_0x4d142e=_0x4b4e93[_0xb18d5b(0x134)],_0x2ec1b0=_0x4b4e93['id'],_0x36a5b4=_0x4b4e93[_0xb18d5b(0x158)],_0x470736=_0x4b4e93[_0xb18d5b(0xad)],_0x136f94=$(_0x4b4e93,['icon','id',_0xb18d5b(0x158),_0xb18d5b(0xad)]),_0x507503=_0xb18d5b(0x101)[_0xb18d5b(0x151)](_0x2ec1b0,'\x20')[_0xb18d5b(0x151)](_0x36a5b4||'')[_0xb18d5b(0xd6)](),_0x7229f6=f['useRef']('_'[_0xb18d5b(0x151)](k()));return y(_0x4d142e,''[_0xb18d5b(0x151)](_0x2ec1b0),{'defIds':_0x4d142e[_0xb18d5b(0xda)],'idSuffix':_0x7229f6[_0xb18d5b(0xd4)]},u({'ref':_0x165b7d,'className':_0x507503},_0x136f94),_0x470736);});function y(_0x4c983a,_0x88765b,_0xff6d8d,_0x48b0c5,_0x24f059){var _0x1ce97a=_0x16da90;return f[_0x1ce97a(0x15f)](_0x4c983a[_0x1ce97a(0x9a)],u(u({'key':_0x88765b},H(_0x4c983a,_0xff6d8d,_0x24f059)),_0x48b0c5),(V(_0x4c983a,_0xff6d8d)['children']||[])[_0x1ce97a(0x16e)](function(_0x45deb7,_0x4f962d){var _0x60d4af=_0x1ce97a;return y(_0x45deb7,''[_0x60d4af(0x151)](_0x88765b,'-')[_0x60d4af(0x151)](_0x4c983a['tag'],'-')[_0x60d4af(0x151)](_0x4f962d),_0xff6d8d,void 0x0,_0x24f059);}));}function _0x29fa(){var _0x90cdba=['event$','Module','concat','6aWdPnD','includes','Disposable','_startFollowing','div','PRESENTING','className','throttleTime','getTypeOfUnitDisposed$','Stop\x20presenting','getInitialStates','subscribe','UNIVER_UNKNOWN','createElement','registerDependencies','sheet','CommandType','parse','getMemberID','_beIdle','NOT_FOLLOWING','820884sPZDvx','HEADER_MENU','_configService','text','following','symbol','has','map','pluginName','_handleNewChangeSets','unitId','from','useRef','requireSession','idle','Inject','LIVESHARE_OPERATION','UniverInstanceType','SetScrollOperation','evenodd','OFFLINE','getValue','tag','onCommandExecuted','_stopFollowing','_status','set','operations','override','Injector','params','none','add','values','startFollowing','_handleOffline','init','You\x27re\x20presenting\x20the\x20document','executeCommand','_collabSessionService','mask','extend','_entities','currentColor','registerInitialStateReporter','NEW_CHANGESETS','registerSharedOperation','idSuffix','live-share-icon','_startPresenting','stopFollowing','children','parseProtocolChangeset','then','getCurrentTypeOfUnit$','_commandService','xlink:href','default','prototype','6765FIuKQC','_injector','Fragment','99VFyAcp','get','mutations','DisposableCollection','displayName','send','stringify','CollaborationEvent','IUIPartsService','_sharedOperations','length','IConfigService','attrs','_handleOnline','data','url(#$1','IDLE','LIVESHARE_FETCH_OPERATIONS','current','end','trim','_liveShareService','_init','12436QNCpMJ','defIds','useObservable','8882XMIdfI','not-following','fill','jsxs','http://www.w3.org/2000/svg','forEach','ONLINE','unsubscribe','UNIVER_SHEET','dispose','2766845ZhGLIB','RxDisposable','touchDependencies','univer-mb-3\x20univer-w-full\x20univer-text-sm','SetWorksheetActiveOperation','9150WEOoek','417nuLuLW','_uiPartsService','forwardRef','useState','disposeWithMe','_unitID','hasOwnProperty','merge','LiveShareIcon','function','_config','complete','delete','5341259ATYkuh','use','apply','LIVESHARE_NEW_HOST','dispose$','string','_univerInstanceService','tryStartPresenting','univerjs-icon\x20univerjs-icon-','useEffect','toDisposable','DesktopLiveShareController','LIVESHARE_TERMINATE','asObservable','FOLLOWING','getOwnPropertySymbols','UniverCollaborationClientPlugin','getOwnPropertyDescriptor','shouldShareOperation','replace','UniverLiveSharePlugin','onRendered','takeUntil','143YLfEfc','toString','Plugin','Stop\x20following','_stopPresenting','pipe','jsx','call','You\x27are\x20offline.','offline','_mountLiveShare','substring','assign','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','Button','SetZoomRatioOperation','_status$','live-share.config','_collabSession','Present\x20this\x20document','InsertSheetMutation','_handleOperation','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','next','LiveShareController','indexOf','mergeOverrideWithDependencies','UNIVER_LIVE_SHARE_PLUGIN','Start\x20following','getConfig','OPERATION','defineProperty','button','LiveShareCoordinator','_presenter','319256zzqZrB','icon','getUnitId','BuiltInUIPart','status$','IUniverInstanceService','1em','SessionStatus','You\x27re\x20following\x20the\x20presenter','type','setConfig','LiveShare','path','_startLiveShareCoordinator','_handleNewHost','useDependency','_reporters','presenting','_commandDisposable','univer-size-4','getLiveShareCoordinator','toStringTag','clear','stopPresenting','158DXOmFs','_fetchOperations','colorChannel1','propertyIsEnumerable'];_0x29fa=function(){return _0x90cdba;};return _0x29fa();}function H(_0x154e8e,_0x30f8bb,_0x255033){var _0x5d957a=_0x16da90,_0x1d669c=u({},_0x154e8e[_0x5d957a(0xce)]);_0x255033!=null&&_0x255033[_0x5d957a(0x14d)]&&_0x1d669c[_0x5d957a(0xde)]===_0x5d957a(0x14d)&&(_0x1d669c[_0x5d957a(0xde)]=_0x255033[_0x5d957a(0x14d)]),_0x154e8e['tag']==='mask'&&_0x1d669c['id']&&(_0x1d669c['id']=_0x1d669c['id']+_0x30f8bb['idSuffix']),Object['entries'](_0x1d669c)[_0x5d957a(0xe1)](function(_0x55b560){var _0x3d50d5=_0x5d957a,_0x1bf86c=_0x55b560[0x0],_0x504b92=_0x55b560[0x1];_0x1bf86c===_0x3d50d5(0xac)&&typeof _0x504b92=='string'&&(_0x1d669c[_0x1bf86c]=_0x504b92['replace'](/url\(#(.*)\)/,_0x3d50d5(0xd1)[_0x3d50d5(0x151)](_0x30f8bb[_0x3d50d5(0xb3)],')')));});var _0x3bd5fa=_0x30f8bb[_0x5d957a(0xda)];return!_0x3bd5fa||_0x3bd5fa[_0x5d957a(0xcc)]===0x0||(_0x154e8e['tag']===_0x5d957a(0xfa)&&_0x1d669c[_0x5d957a(0xbc)]&&(_0x1d669c[_0x5d957a(0xbc)]=_0x1d669c[_0x5d957a(0xbc)]+_0x30f8bb[_0x5d957a(0xb3)]),Object['entries'](_0x1d669c)['forEach'](function(_0x25a1fb){var _0x278e5b=_0x5d957a,_0x56e56c=_0x25a1fb[0x0],_0x3e7699=_0x25a1fb[0x1];typeof _0x3e7699==_0x278e5b(0xfe)&&(_0x1d669c[_0x56e56c]=_0x3e7699[_0x278e5b(0x10c)](/url\(#(.*)\)/,'url(#$1'[_0x278e5b(0x151)](_0x30f8bb[_0x278e5b(0xb3)],')')));})),_0x1d669c;}function V(_0xcf30af,_0x4c80b6){var _0x1aa7ab=_0x16da90,_0x3d4a57,_0x2cc96d=_0x4c80b6['defIds'];return!_0x2cc96d||_0x2cc96d[_0x1aa7ab(0xcc)]===0x0?_0xcf30af:_0xcf30af[_0x1aa7ab(0x9a)]==='defs'&&(!((_0x3d4a57=_0xcf30af[_0x1aa7ab(0xb7)])===null||_0x3d4a57===void 0x0)&&_0x3d4a57[_0x1aa7ab(0xcc)])?u(u({},_0xcf30af),{'children':_0xcf30af['children']['map'](function(_0x25209f){var _0x2d6634=_0x1aa7ab;return typeof _0x25209f[_0x2d6634(0xce)]['id']==_0x2d6634(0xfe)&&_0x2cc96d&&_0x2cc96d[_0x2d6634(0x153)](_0x25209f['attrs']['id'])?u(u({},_0x25209f),{'attrs':u(u({},_0x25209f[_0x2d6634(0xce)]),{'id':_0x25209f['attrs']['id']+_0x4c80b6[_0x2d6634(0xb3)]})}):_0x25209f;})}):_0xcf30af;}function k(){var _0x436bd9=_0x16da90;return Math['random']()[_0x436bd9(0x111)](0x24)[_0x436bd9(0x11b)](0x2,0x8);}j[_0x16da90(0xc6)]='UniverIcon';var M={'tag':'svg','attrs':{'xmlns':_0x16da90(0xe0),'fill':_0x16da90(0xa3),'viewBox':'0\x200\x2017\x2017','width':_0x16da90(0x139),'height':_0x16da90(0x139)},'children':[{'tag':_0x16da90(0x13f),'attrs':{'fill':_0x16da90(0xaf),'d':_0x16da90(0x126)}},{'tag':_0x16da90(0x13f),'attrs':{'fill':_0x16da90(0xaf),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x16da90(0x97),'clipRule':'evenodd'}}]},P=f[_0x16da90(0xee)](function(_0x4d584f,_0x497a17){var _0x4aa9bc=_0x16da90;return f['createElement'](j,Object[_0x4aa9bc(0x11c)]({},_0x4d584f,{'id':_0x4aa9bc(0xb4),'ref':_0x497a17,'icon':M}));});P[_0x16da90(0xc6)]=_0x16da90(0xf4);class O extends o[_0x16da90(0x154)]{constructor(){var _0x41e160=_0x16da90;super(...arguments),v(this,_0x41e160(0xcb),new Set()),v(this,_0x41e160(0x143),new Set());}[_0x16da90(0xb2)](_0x5f7136){var _0x3b590d=_0x16da90;return this['_sharedOperations']['add'](_0x5f7136),o['toDisposable'](()=>this[_0x3b590d(0xcb)][_0x3b590d(0xf8)](_0x5f7136));}[_0x16da90(0xb0)](_0x35ab2c){var _0x53b9f5=_0x16da90;return this[_0x53b9f5(0x143)][_0x53b9f5(0xa4)](_0x35ab2c),o['toDisposable'](()=>this['_reporters'][_0x53b9f5(0xf8)](_0x35ab2c));}[_0x16da90(0x10b)](_0x22e90c){var _0x4e431c=_0x16da90;return this[_0x4e431c(0xcb)][_0x4e431c(0x16d)](_0x22e90c);}['getInitialStates'](_0x46e15d){var _0x1f9cce=_0x16da90;return Array[_0x1f9cce(0x172)](this['_reporters'])[_0x1f9cce(0x16e)](_0x3330a3=>_0x3330a3(_0x46e15d));}}var q=Object[_0x16da90(0x10a)],R=(_0x153412,_0x1c0dad,_0x382994,_0x571a79)=>{var _0x1218f5=_0x16da90;for(var _0x35aeb0=_0x571a79>0x1?void 0x0:_0x571a79?q(_0x1c0dad,_0x382994):_0x1c0dad,_0x16d5da=_0x153412[_0x1218f5(0xcc)]-0x1,_0xffd128;_0x16d5da>=0x0;_0x16d5da--)(_0xffd128=_0x153412[_0x16d5da])&&(_0x35aeb0=_0xffd128(_0x35aeb0)||_0x35aeb0);return _0x35aeb0;},S=(_0x2983e7,_0x33736f)=>(_0xf4aaeb,_0x102854)=>_0x33736f(_0xf4aaeb,_0x102854,_0x2983e7);exports[_0x16da90(0x128)]=class extends o[_0x16da90(0xe7)]{constructor(_0x257de0,_0x1981f0,_0x50b6b7){var _0x3392fc=_0x16da90;super(),v(this,_0x3392fc(0xae),new Map()),(this[_0x3392fc(0xff)]=_0x257de0,this[_0x3392fc(0xc0)]=_0x1981f0,this[_0x3392fc(0xab)]=_0x50b6b7,this[_0x3392fc(0xd8)]());}async[_0x16da90(0x147)](_0x588503){var _0x1abd45=_0x16da90;return this[_0x1abd45(0xae)]['has'](_0x588503)||await this[_0x1abd45(0x140)](_0x588503),this['_entities'][_0x1abd45(0xc3)](_0x588503);}[_0x16da90(0xd8)](){var _0x292589=_0x16da90;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x292589(0x95)]['UNIVER_SHEET'])[_0x292589(0x115)](b['takeUntil'](this[_0x292589(0xfd)]))['subscribe'](async _0x439956=>{var _0x4a4956=_0x292589;const _0x1f4426=_0x439956[_0x4a4956(0x135)]();this[_0x4a4956(0xae)]['has'](_0x1f4426)||this[_0x4a4956(0x140)](_0x1f4426);}),this['_univerInstanceService'][_0x292589(0x15a)](o['UniverInstanceType'][_0x292589(0xe4)])['pipe'](b['takeUntil'](this[_0x292589(0xfd)]))[_0x292589(0x15d)](_0x2026b5=>{var _0x579f8a=_0x292589;const _0x3a3b69=_0x2026b5['getUnitId'](),_0x3d8785=this['_entities']['get'](_0x3a3b69);_0x3d8785==null||_0x3d8785[_0x579f8a(0xe5)]();});}async[_0x16da90(0x140)](_0xf7685e){var _0x8db7f7=_0x16da90;const _0x443eb9=await this['_collabSessionService'][_0x8db7f7(0x174)](_0xf7685e),_0x259bd8=this[_0x8db7f7(0xc0)]['createInstance'](exports['LiveShareCoordinator'],_0xf7685e,_0x443eb9);return _0x259bd8[_0x8db7f7(0xa8)](),this[_0x8db7f7(0xae)][_0x8db7f7(0x9e)](_0xf7685e,_0x259bd8),_0x259bd8;}},exports[_0x16da90(0x128)]=R([S(0x0,o[_0x16da90(0x138)]),S(0x1,o['Inject'](o[_0x16da90(0xa1)])),S(0x2,o[_0x16da90(0x176)](m['CollaborationSessionService']))],exports[_0x16da90(0x128)]);var h=(_0x150dfd=>(_0x150dfd[_0x16da90(0x98)]=_0x16da90(0x119),_0x150dfd[_0x16da90(0xd2)]=_0x16da90(0x175),_0x150dfd['FOLLOWING']=_0x16da90(0x16b),_0x150dfd[_0x16da90(0x166)]=_0x16da90(0xdd),_0x150dfd['PRESENTING']=_0x16da90(0x144),_0x150dfd))(h||{});const W='SAME_OPERATION_SHARE_INTERVAL',G=0xc8;exports[_0x16da90(0x131)]=class extends o[_0x16da90(0xe7)]{constructor(_0x529d63,_0x1cf0f1,_0x4fc0df,_0x2528a7,_0x460670){var _0x389f1f=_0x16da90;super(),v(this,_0x389f1f(0x120),new w['BehaviorSubject'](_0x389f1f(0x175))),v(this,_0x389f1f(0x137),this[_0x389f1f(0x120)][_0x389f1f(0x106)]()),v(this,_0x389f1f(0xd8),!0x1),v(this,_0x389f1f(0x145),null),v(this,_0x389f1f(0x132),null),(this[_0x389f1f(0xf1)]=_0x529d63,this[_0x389f1f(0x122)]=_0x1cf0f1,this['_configService']=_0x4fc0df,this[_0x389f1f(0xd7)]=_0x2528a7,this[_0x389f1f(0xbb)]=_0x460670);}get[_0x16da90(0x9d)](){var _0x38751e=_0x16da90;return this[_0x38751e(0x120)][_0x38751e(0x99)]();}[_0x16da90(0xe5)](){var _0x557de8=_0x16da90,_0x34adc3;(_0x34adc3=this[_0x557de8(0x145)])==null||_0x34adc3['dispose'](),this[_0x557de8(0x120)][_0x557de8(0x127)]('idle'),this[_0x557de8(0x120)][_0x557de8(0xf7)]();}['init'](){var _0xae3d5=_0x16da90;this[_0xae3d5(0xd8)]||(this['_init']=!0x0,this[_0xae3d5(0x122)]['sessionStatus$'][_0xae3d5(0x115)](b[_0xae3d5(0x10f)](this[_0xae3d5(0xfd)]))[_0xae3d5(0x15d)](_0x4b0b95=>{var _0x417b81=_0xae3d5;switch(_0x4b0b95){case m['SessionStatus'][_0x417b81(0x98)]:this[_0x417b81(0xa7)]();break;case m[_0x417b81(0x13a)][_0x417b81(0xe2)]:this[_0x417b81(0xcf)]();break;}}),this[_0xae3d5(0x122)][_0xae3d5(0x14f)][_0xae3d5(0x115)](b[_0xae3d5(0x10f)](this[_0xae3d5(0xfd)]))[_0xae3d5(0x15d)](_0x260b36=>{var _0x3c6e21=_0xae3d5;const {eventID:_0x23f2ee}=_0x260b36;switch(_0x23f2ee){case _['CollaborationEvent'][_0x3c6e21(0xfc)]:this[_0x3c6e21(0x141)](_0x260b36);break;case _[_0x3c6e21(0xc9)][_0x3c6e21(0x177)]:this[_0x3c6e21(0x125)](_0x260b36);break;case _[_0x3c6e21(0xc9)][_0x3c6e21(0x105)]:this['_handleTerminate']();break;case _[_0x3c6e21(0xc9)][_0x3c6e21(0xb1)]:this[_0x3c6e21(0x170)](_0x260b36);break;}}));}[_0x16da90(0x100)](){var _0x1ead22=_0x16da90;this[_0x1ead22(0x122)][_0x1ead22(0xc7)]({'eventID':_[_0x1ead22(0xc9)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1ead22(0xf1)],'userID':this[_0x1ead22(0x122)][_0x1ead22(0x164)]()}},this[_0x1ead22(0xf1)]);}[_0x16da90(0x14a)](){var _0x25eefd=_0x16da90;this[_0x25eefd(0x9d)]==='presenting'&&(this[_0x25eefd(0x120)][_0x25eefd(0x127)](_0x25eefd(0x175)),this[_0x25eefd(0x122)][_0x25eefd(0xc7)]({'eventID':_[_0x25eefd(0xc9)][_0x25eefd(0x105)],'data':{'unitID':this['_unitID']}},this[_0x25eefd(0xf1)]));}[_0x16da90(0xa6)](){var _0x23ca8b=_0x16da90;this[_0x23ca8b(0x9d)]==='not-following'&&(this['_status$'][_0x23ca8b(0x127)](_0x23ca8b(0x16b)),this[_0x23ca8b(0x155)]());}[_0x16da90(0xb6)](){var _0xfda49b=_0x16da90;this['_status']===_0xfda49b(0x16b)&&this['_stopFollowing']();}[_0x16da90(0x141)](_0x43fe12){var _0x4a700c=_0x16da90;const {presenter:_0x37913a}=_0x43fe12[_0x4a700c(0xd0)],_0x3bff34=this[_0x4a700c(0x122)][_0x4a700c(0x164)]();this[_0x4a700c(0x132)]=_0x37913a,_0x37913a===_0x3bff34?(this['_stopFollowing'](),this[_0x4a700c(0xb5)]()):this[_0x4a700c(0x9d)]!==_0x4a700c(0xdd)&&(this[_0x4a700c(0x114)](),this[_0x4a700c(0x155)]());}[_0x16da90(0x14c)](){var _0x387e83=_0x16da90;const _0x2dd92c={'eventID':_[_0x387e83(0xc9)][_0x387e83(0xd3)]};this[_0x387e83(0x122)][_0x387e83(0xc7)](_0x2dd92c,this[_0x387e83(0xf1)]);}['_handleTerminate'](){var _0x51a231=_0x16da90;this[_0x51a231(0x132)]=null,this[_0x51a231(0x9d)]!==_0x51a231(0x144)&&this[_0x51a231(0x165)]();}[_0x16da90(0x170)](_0xc59aeb){var _0x435cc9=_0x16da90;if(this['_status']===_0x435cc9(0x16b)&&this[_0x435cc9(0x132)]===_0xc59aeb['data']['memberID']){const _0xe078e7=_[_0x435cc9(0xb8)](_0xc59aeb['data'])[_0x435cc9(0xc4)]['reverse']()['find'](_0x4fedbb=>_0x4fedbb['id']===C[_0x435cc9(0x124)]['id']);if(_0xe078e7){const _0x362d8=_0xe078e7[_0x435cc9(0xa2)][_0x435cc9(0x171)],_0x2fa7ce=_0xe078e7[_0x435cc9(0xa2)][_0x435cc9(0x161)]['id'];setTimeout(()=>{var _0x2f943c=_0x435cc9;this['_commandService'][_0x2f943c(0xaa)](C[_0x2f943c(0xea)]['id'],{'unitId':_0x362d8,'subUnitId':_0x2fa7ce},{'fromCollab':!0x0});});}}}[_0x16da90(0xb5)](){var _0x4f1080=_0x16da90;this[_0x4f1080(0x120)][_0x4f1080(0x127)]('presenting');const _0x6a0106=new Map(),_0x14ee7e=this['_commandDisposable']=new o[(_0x4f1080(0xc5))]();_0x14ee7e[_0x4f1080(0xa4)](o[_0x4f1080(0x103)](()=>{var _0x3204ed=_0x4f1080;_0x6a0106[_0x3204ed(0xe1)](_0x293e43=>_0x293e43[_0x3204ed(0xf7)]()),_0x6a0106[_0x3204ed(0x149)]();})),_0x14ee7e['add'](this[_0x4f1080(0xbb)][_0x4f1080(0x9b)](_0x217870=>{var _0x25fb08=_0x4f1080,_0x2bde80;if(_0x217870[_0x25fb08(0x13c)]!==o[_0x25fb08(0x162)][_0x25fb08(0x12e)]||!this[_0x25fb08(0xd7)][_0x25fb08(0x10b)](_0x217870['id']))return;const {id:_0x4a6f94}=_0x217870;let _0x5de429;_0x6a0106[_0x25fb08(0x16d)](_0x4a6f94)?_0x5de429=_0x6a0106[_0x25fb08(0xc3)](_0x4a6f94):(_0x5de429=new w['Subject'](),_0x6a0106[_0x25fb08(0x9e)](_0x4a6f94,_0x5de429),_0x5de429[_0x25fb08(0x115)](b[_0x25fb08(0x159)]((_0x2bde80=this[_0x25fb08(0x169)][_0x25fb08(0x12d)](W))!=null?_0x2bde80:G,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x25fb08(0x15d)](_0x326143=>{var _0x6ed330=_0x25fb08;this[_0x6ed330(0x122)][_0x6ed330(0xc7)]({'eventID':_[_0x6ed330(0xc9)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x6ed330(0xf1)],'operations':{[_0x326143['id']]:{'id':_0x326143['id'],'params':JSON[_0x6ed330(0xc8)](_0x326143['params'])}}}},this[_0x6ed330(0xf1)]);})),_0x5de429[_0x25fb08(0x127)](_0x217870);})),this[_0x4f1080(0xd7)][_0x4f1080(0x15c)](this[_0x4f1080(0xf1)])[_0x4f1080(0xe1)](_0x2ae9b6=>this['_collabSession']['send']({'eventID':_[_0x4f1080(0xc9)][_0x4f1080(0x177)],'data':{'unitID':this[_0x4f1080(0xf1)],'operations':{[_0x2ae9b6['id']]:{'id':_0x2ae9b6['id'],'params':JSON[_0x4f1080(0xc8)](_0x2ae9b6[_0x4f1080(0xa2)])}}}},this['_unitID']));}[_0x16da90(0x114)](){var _0x2bdecc=_0x16da90,_0x46f4c9;this[_0x2bdecc(0x120)][_0x2bdecc(0x127)](_0x2bdecc(0x175)),(_0x46f4c9=this[_0x2bdecc(0x145)])==null||_0x46f4c9[_0x2bdecc(0xe5)](),this[_0x2bdecc(0x145)]=null;}[_0x16da90(0x155)](){var _0x3d6d5d=_0x16da90,_0x1dc09d;(_0x1dc09d=this['_commandDisposable'])==null||_0x1dc09d[_0x3d6d5d(0xe5)](),this[_0x3d6d5d(0x120)]['next'](_0x3d6d5d(0x16b));}['_beIdle'](){var _0xe9cef8=_0x16da90,_0x44ee4f;this[_0xe9cef8(0x120)][_0xe9cef8(0x127)](_0xe9cef8(0x175)),(_0x44ee4f=this[_0xe9cef8(0x145)])==null||_0x44ee4f[_0xe9cef8(0xe5)](),this[_0xe9cef8(0x145)]=null;}[_0x16da90(0x9c)](){var _0x16132f=_0x16da90,_0x56da22;this[_0x16132f(0x120)][_0x16132f(0x127)](_0x16132f(0xdd)),(_0x56da22=this[_0x16132f(0x145)])==null||_0x56da22[_0x16132f(0xe5)]();}[_0x16da90(0x125)](_0x538031){var _0x4cb0c3=_0x16da90;if([_0x4cb0c3(0x144),_0x4cb0c3(0xdd),_0x4cb0c3(0x119)]['includes'](this['_status'])||!_0x538031[_0x4cb0c3(0xd0)]['presenter']||_0x538031[_0x4cb0c3(0xd0)]['presenter']===this[_0x4cb0c3(0x122)][_0x4cb0c3(0x164)]())return;this[_0x4cb0c3(0x9d)]==='idle'&&this[_0x4cb0c3(0x155)]();const _0x7f796f=_0x538031[_0x4cb0c3(0xd0)][_0x4cb0c3(0x9f)];Object[_0x4cb0c3(0xa5)](_0x7f796f)['forEach'](_0x5f906d=>{var _0x442f23=_0x4cb0c3;this['_commandService'][_0x442f23(0xaa)](_0x5f906d['id'],_0x5f906d[_0x442f23(0xa2)]?JSON[_0x442f23(0x163)](_0x5f906d[_0x442f23(0xa2)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x4d82dc=_0x16da90,_0x28f7fb;this['_status$'][_0x4d82dc(0x127)](_0x4d82dc(0x119)),(_0x28f7fb=this[_0x4d82dc(0x145)])==null||_0x28f7fb[_0x4d82dc(0xe5)]();}['_handleOnline'](){var _0x386396=_0x16da90;this[_0x386396(0x120)][_0x386396(0x127)](_0x386396(0x175)),this[_0x386396(0x14c)]();}},exports[_0x16da90(0x131)]=R([S(0x2,o[_0x16da90(0xcd)]),S(0x3,o[_0x16da90(0x176)](O)),S(0x4,o['ICommandService'])],exports[_0x16da90(0x131)]);function A(){var _0x9225a0=_0x16da90;const _0x2b43da=p[_0x9225a0(0x142)](exports['LiveShareController']),_0x227263=p[_0x9225a0(0x142)](o[_0x9225a0(0x138)]),_0x454a63=p[_0x9225a0(0xdb)](()=>_0x227263[_0x9225a0(0xba)](o[_0x9225a0(0x95)][_0x9225a0(0xe4)]),void 0x0,!0x1,[]),[_0x33782c,_0xa1dd4c]=f[_0x9225a0(0xef)](null),[_0x4c3f66,_0x2a041e]=f['useState'](h[_0x9225a0(0xd2)]),_0x407976=f[_0x9225a0(0x173)](null);return f[_0x9225a0(0x102)](()=>(_0x454a63&&_0x2b43da[_0x9225a0(0x147)](_0x454a63[_0x9225a0(0x135)]())[_0x9225a0(0xb9)](_0x339edc=>{var _0x47c705=_0x9225a0;_0xa1dd4c(_0x339edc),_0x407976[_0x47c705(0xd4)]=_0x339edc['status$'][_0x47c705(0x15d)](_0x58694c=>{_0x2a041e(_0x58694c);});}),()=>{var _0x4c62f1=_0x9225a0,_0x282985;(_0x282985=_0x407976[_0x4c62f1(0xd4)])==null||_0x282985[_0x4c62f1(0xe3)](),_0x407976['current']=null;}),[_0x454a63,_0x2b43da]),_0x33782c?l[_0x9225a0(0x116)](g['Dropdown'],{'align':_0x9225a0(0xd5),'disabled':_0x4c3f66===h[_0x9225a0(0x98)],'className':'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','overlay':l['jsx'](B,{'status':_0x4c3f66,'coordinator':_0x33782c}),'children':l[_0x9225a0(0x116)]('button',{'className':g['clsx'](_0x9225a0(0x11d),{'univer-cursor-not-allowed':_0x4c3f66===h[_0x9225a0(0x98)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4c3f66!==h[_0x9225a0(0x98)]}),'type':_0x9225a0(0x130),'children':l[_0x9225a0(0x116)](P,{'className':_0x9225a0(0x146)})})}):null;}function B(_0x1108d8){var _0xaa98e7=_0x16da90;const {status:_0x335f9d,coordinator:_0x3c231e}=_0x1108d8;switch(_0x335f9d){case h[_0xaa98e7(0xd2)]:return l['jsx'](Y,{'coordinator':_0x3c231e});case h[_0xaa98e7(0x107)]:return l[_0xaa98e7(0x116)](Z,{'coordinator':_0x3c231e});case h['NOT_FOLLOWING']:return l['jsx'](J,{'coordinator':_0x3c231e});case h[_0xaa98e7(0x98)]:return l[_0xaa98e7(0x116)](z,{});case h[_0xaa98e7(0x157)]:return l[_0xaa98e7(0x116)](K,{'coordinator':_0x3c231e});default:return null;}}function Y(_0x580d3a){var _0x243d08=_0x16da90;const {coordinator:_0x13295e}=_0x580d3a;return l[_0x243d08(0xdf)](l[_0x243d08(0xc1)],{'children':[l[_0x243d08(0x116)](_0x243d08(0x156),{'className':_0x243d08(0xe9),'children':_0x243d08(0x123)}),l[_0x243d08(0x116)](g['Button'],{'onClick':()=>_0x13295e[_0x243d08(0x100)](),'children':'Start'})]});}function Z(_0x20f472){var _0x248afb=_0x16da90;const {coordinator:_0x59ae46}=_0x20f472;return l['jsxs'](l[_0x248afb(0xc1)],{'children':[l['jsx'](_0x248afb(0x156),{'className':_0x248afb(0xe9),'children':_0x248afb(0x13b)}),l['jsx'](g[_0x248afb(0x11e)],{'onClick':()=>_0x59ae46['stopFollowing'](),'children':_0x248afb(0x113)})]});}function J(_0x418b87){var _0x40263e=_0x16da90;const {coordinator:_0x473159}=_0x418b87;return l[_0x40263e(0xdf)](l[_0x40263e(0xc1)],{'children':[l[_0x40263e(0x116)]('div',{'className':_0x40263e(0xe9),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x40263e(0x116)](g[_0x40263e(0x11e)],{'variant':_0x40263e(0x16a),'onClick':()=>_0x473159[_0x40263e(0xa6)](),'children':_0x40263e(0x12c)})]});}function K(_0x28c6e4){var _0x37ee1b=_0x16da90;const {coordinator:_0x5bddef}=_0x28c6e4;return l[_0x37ee1b(0xdf)](l[_0x37ee1b(0xc1)],{'children':[l[_0x37ee1b(0x116)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x37ee1b(0xa9)}),l[_0x37ee1b(0x116)](g[_0x37ee1b(0x11e)],{'variant':_0x37ee1b(0xbd),'onClick':()=>_0x5bddef[_0x37ee1b(0x14a)](),'children':_0x37ee1b(0x15b)})]});}function z(){var _0x4f0ca7=_0x16da90;return l[_0x4f0ca7(0x116)](l[_0x4f0ca7(0xc1)],{'children':_0x4f0ca7(0x118)});}var Q=Object['getOwnPropertyDescriptor'],X=(_0x580053,_0x20a198,_0x2255e7,_0x503fc8)=>{var _0x35e166=_0x16da90;for(var _0x1924eb=_0x503fc8>0x1?void 0x0:_0x503fc8?Q(_0x20a198,_0x2255e7):_0x20a198,_0x364fe1=_0x580053[_0x35e166(0xcc)]-0x1,_0xb7f2c3;_0x364fe1>=0x0;_0x364fe1--)(_0xb7f2c3=_0x580053[_0x364fe1])&&(_0x1924eb=_0xb7f2c3(_0x1924eb)||_0x1924eb);return _0x1924eb;},x=(_0x584415,_0x143aa3)=>(_0x237ed6,_0x44411b)=>_0x143aa3(_0x237ed6,_0x44411b,_0x584415);exports[_0x16da90(0x104)]=class extends o[_0x16da90(0x154)]{constructor(_0x181a35,_0x5ccebf){var _0x307d20=_0x16da90;super(),this[_0x307d20(0xc0)]=_0x181a35,this[_0x307d20(0xed)]=_0x5ccebf,this['_mountLiveShare']();}[_0x16da90(0x11a)](){var _0x2a9cd9=_0x16da90;this[_0x2a9cd9(0xf0)](this[_0x2a9cd9(0xed)]['registerComponent'](p[_0x2a9cd9(0x136)][_0x2a9cd9(0x168)],()=>p['connectInjector'](A,this['_injector'])));}},exports[_0x16da90(0x104)]=X([x(0x0,o[_0x16da90(0x176)](o[_0x16da90(0xa1)])),x(0x1,p[_0x16da90(0xca)])],exports[_0x16da90(0x104)]);const ee=_0x16da90(0x121),L={};var te=Object[_0x16da90(0x10a)],ie=(_0x1b1667,_0x27e7d0,_0x2c9029,_0x16c9dd)=>{var _0x4c37fd=_0x16da90;for(var _0x590302=_0x16c9dd>0x1?void 0x0:_0x16c9dd?te(_0x27e7d0,_0x2c9029):_0x27e7d0,_0x50a353=_0x1b1667[_0x4c37fd(0xcc)]-0x1,_0x35ec04;_0x50a353>=0x0;_0x50a353--)(_0x35ec04=_0x1b1667[_0x50a353])&&(_0x590302=_0x35ec04(_0x590302)||_0x590302);return _0x590302;},ne=(_0x260f9e,_0x3c18b0)=>(_0x39c007,_0x15b473)=>_0x3c18b0(_0x39c007,_0x15b473,_0x260f9e);let E=class extends o[_0x16da90(0x154)]{constructor(_0x1b1996){var _0x1edb30=_0x16da90;super(),this[_0x1edb30(0xd7)]=_0x1b1996,this[_0x1edb30(0xd8)]();}[_0x16da90(0xd8)](){var _0x5a6d7c=_0x16da90;[D[_0x5a6d7c(0x11f)]['id'],D[_0x5a6d7c(0x96)]['id'],C['SetWorksheetActiveOperation']['id']][_0x5a6d7c(0xe1)](_0x5806d3=>{var _0x310317=_0x5a6d7c;this[_0x310317(0xf0)](this[_0x310317(0xd7)][_0x310317(0xb2)](_0x5806d3));});}};E=ie([ne(0x0,o['Inject'](O))],E);var re=Object[_0x16da90(0x12f)],se=Object[_0x16da90(0x10a)],oe=(_0x3dd234,_0x4234c4,_0x3f9652)=>_0x4234c4 in _0x3dd234?re(_0x3dd234,_0x4234c4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3f9652}):_0x3dd234[_0x4234c4]=_0x3f9652,ae=(_0x4009b2,_0x25acaa,_0x4a3e07,_0x2c0864)=>{var _0x4dff4b=_0x16da90;for(var _0x594878=_0x2c0864>0x1?void 0x0:_0x2c0864?se(_0x25acaa,_0x4a3e07):_0x25acaa,_0x5d97b6=_0x4009b2[_0x4dff4b(0xcc)]-0x1,_0x35ec83;_0x5d97b6>=0x0;_0x5d97b6--)(_0x35ec83=_0x4009b2[_0x5d97b6])&&(_0x594878=_0x35ec83(_0x594878)||_0x594878);return _0x594878;},N=(_0x544bc0,_0x3cd6d8)=>(_0xdb4866,_0x20f054)=>_0x3cd6d8(_0xdb4866,_0x20f054,_0x544bc0),T=(_0x3ab24a,_0xb7ede0,_0x50423b)=>oe(_0x3ab24a,typeof _0xb7ede0!=_0x16da90(0x16c)?_0xb7ede0+'':_0xb7ede0,_0x50423b);const le=_0x16da90(0x12b);exports[_0x16da90(0x10d)]=class extends o[_0x16da90(0x112)]{constructor(_0xe2a302=L,_0x253ada,_0xbf3cb2){var _0x23969f=_0x16da90;super(),this[_0x23969f(0xf6)]=_0xe2a302,this['_injector']=_0x253ada,this[_0x23969f(0x169)]=_0xbf3cb2;const {..._0x86a02f}=o[_0x23969f(0xf3)]({},L,this[_0x23969f(0xf6)]);this[_0x23969f(0x169)][_0x23969f(0x13d)](ee,_0x86a02f);}['onStarting'](){var _0x1a863d=_0x16da90;o[_0x1a863d(0x160)](this[_0x1a863d(0xc0)],o[_0x1a863d(0x12a)]([[O],[exports[_0x1a863d(0x128)]],[E],[exports['DesktopLiveShareController']]],this['_config'][_0x1a863d(0xa0)])),o[_0x1a863d(0xe8)](this[_0x1a863d(0xc0)],[[E]]);}[_0x16da90(0x10e)](){var _0x243253=_0x16da90;o['touchDependencies'](this[_0x243253(0xc0)],[[exports[_0x243253(0x104)]]]);}},T(exports[_0x16da90(0x10d)],_0x16da90(0x13c),o[_0x16da90(0x95)][_0x16da90(0x15e)]),T(exports[_0x16da90(0x10d)],_0x16da90(0x16f),le),exports[_0x16da90(0x10d)]=ae([o['DependentOn'](m[_0x16da90(0x109)]),N(0x1,o[_0x16da90(0x176)](o[_0x16da90(0xa1)])),N(0x2,o[_0x16da90(0xcd)])],exports[_0x16da90(0x10d)]),exports[_0x16da90(0x13e)]=A,exports['LiveShareService']=O,exports['LiveShareStatus']=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 _0x4c35df=_0x7bc6;(function(_0x41046a,_0x10f0d7){var _0x527b83=_0x7bc6,_0x16462c=_0x41046a();while(!![]){try{var _0x13eb75=parseInt(_0x527b83(0x163))/0x1+-parseInt(_0x527b83(0x13e))/0x2*(parseInt(_0x527b83(0x115))/0x3)+parseInt(_0x527b83(0x116))/0x4+parseInt(_0x527b83(0x131))/0x5+-parseInt(_0x527b83(0xc5))/0x6+-parseInt(_0x527b83(0x128))/0x7*(parseInt(_0x527b83(0x151))/0x8)+parseInt(_0x527b83(0x13b))/0x9*(parseInt(_0x527b83(0xb7))/0xa);if(_0x13eb75===_0x10f0d7)break;else _0x16462c['push'](_0x16462c['shift']());}catch(_0x3860bb){_0x16462c['push'](_0x16462c['shift']());}}}(_0x4cc9,0xecbf0));var q=Object[_0x4c35df(0x146)],z=(_0x32da0d,_0x20d3a4,_0xdfeb22)=>_0x20d3a4 in _0x32da0d?q(_0x32da0d,_0x20d3a4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xdfeb22}):_0x32da0d[_0x20d3a4]=_0xdfeb22,d=(_0x177f51,_0x40a53c,_0x948a31)=>z(_0x177f51,typeof _0x40a53c!=_0x4c35df(0x141)?_0x40a53c+'':_0x40a53c,_0x948a31);import{Disposable as _0x1f1ed5,toDisposable as _0x5cf8b6,IUniverInstanceService as _0x9ee18,Inject as _0x214de5,Injector as _0x55d5e8,IConfigService as _0x596770,ICommandService as _0x49ea3a,RxDisposable as _0x49bb96,UniverInstanceType as _0x5d5736,DisposableCollection as _0x457240,CommandType as _0x4dd41a,DependentOn as _0x13c7bc,Plugin as _0xca36d6,merge as _0x49df5f,registerDependencies as _0x161788,mergeOverrideWithDependencies as _0x265c97,touchDependencies as _0x58f08e}from'@univerjs/core';import{useDependency as _0x595204,useObservable as _0xc95284,IUIPartsService as _0x868a60,BuiltInUIPart as _0x38120b,connectInjector as _0x5368f4}from'@univerjs/ui';function _0x7bc6(_0x57c73a,_0x338fb7){var _0x4cc9b4=_0x4cc9();return _0x7bc6=function(_0x7bc6cd,_0x2c20a8){_0x7bc6cd=_0x7bc6cd-0xb1;var _0x1a9931=_0x4cc9b4[_0x7bc6cd];return _0x1a9931;},_0x7bc6(_0x57c73a,_0x338fb7);}import{jsx as _0x29fd32,jsxs as _0x3cea35,Fragment as _0x187468}from'react/jsx-runtime';import{Dropdown as _0x380dce,clsx as _0x1613e6,Button as _0x5c5ef5}from'@univerjs/design';import{forwardRef as _0x173ab3,useRef as _0x266191,createElement as _0x1ebd79,useState as _0xbbc3fb,useEffect as _0x13fae4}from'react';import{CollaborationEvent as _0x586cf6,parseProtocolChangeset as _0xb08ef}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xa24487,SessionStatus as _0x2facc0,UniverCollaborationClientPlugin as _0x5f57c7}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5b4069,SetWorksheetActiveOperation as _0x5b6936}from'@univerjs/sheets';import{BehaviorSubject as _0x2822eb,Subject as _0x5d5dbf}from'rxjs';import{takeUntil as _0x5d7190,throttleTime as _0xc2d5a7}from'rxjs/operators';import{SetZoomRatioOperation as _0x548d0f,SetScrollOperation as _0x50482e}from'@univerjs/sheets-ui';function _0x4cc9(){var _0x5f45f1=['init','idSuffix','not-following','override','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','hasOwnProperty','add','getUnitId','offline','_status','UNIVER_LIVE_SHARE_PLUGIN','_beIdle','OPERATION','_collabSessionService','getTypeOfUnitDisposed$','attrs','_status$','onCommandExecuted','getValue','_mountLiveShare','has','OFFLINE','executeCommand','stopFollowing','_commandDisposable','status$','102630JIVxLq','1110904qLyiBY','_config','pluginName','SAME_OPERATION_SHARE_INTERVAL','pipe','_startFollowing','_handleOffline','Start\x20following','IDLE','stopPresenting','presenting','propertyIsEnumerable','memberID','unitId','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','values','_univerInstanceService','mutations','6595463aoLgqH','children','complete','fill','replace','LIVESHARE_REQUEST_HOST','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','_configService','_unitID','6879555JimmOC','icon','delete','subscribe','forEach','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','random','includes','_stopPresenting','21655350mfEzvs','call','univer-mb-3\x20univer-w-full\x20univer-text-sm','100buTWWn','stringify','end','symbol','UNIVER_SHEET','prototype','LIVESHARE_OPERATION','_sharedOperations','defineProperty','div','length','idle','button','_injector','then','getMemberID','registerComponent','text','data','8AmGrbb','url(#$1','getOwnPropertyDescriptor','apply','trim','indexOf','map','You\x27re\x20not\x20following\x20the\x20presenter','getInitialStates','entries','dispose','univer-size-4','none','className','setConfig','_commandService','Present\x20this\x20document','onRendered','1219867YZhopN','_handleNewChangeSets','next','registerSharedOperation','LIVESHARE_FETCH_OPERATIONS','onStarting','_presenter','_startPresenting','FOLLOWING','type','_handleNewHost','_init','10RnWiRH','registerInitialStateReporter','You\x27re\x20following\x20the\x20presenter','displayName','LIVESHARE_TERMINATE','Stop\x20presenting','You\x27are\x20offline.','sessionStatus$','send','HEADER_MENU','disposeWithMe','dispose$','Start','string','9943398gsEJNU','requireSession','get','shouldShareOperation','getConfig','set','reverse','_handleOnline','xlink:href','colorChannel1','tag','defs','event$','startFollowing','live-share.config','_startLiveShareCoordinator','NOT_FOLLOWING','LiveShareIcon','params','_liveShareService','You\x27re\x20presenting\x20the\x20document','assign','Stop\x20following','1em','concat','NEW_CHANGESETS','live-share-icon','tryStartPresenting','unsubscribe','toString','defIds','getTypeOfUnitAdded$','extend','_reporters','evenodd','getCurrentTypeOfUnit$','_uiPartsService','_handleTerminate','_fetchOperations','current','mask','0\x200\x2017\x2017','getLiveShareCoordinator','UniverIcon','use','_collabSession','path','_stopFollowing','operations','following','sheet','parse','_entities','default'];_0x4cc9=function(){return _0x5f45f1;};return _0x4cc9();}var c=function(){var _0x370feb=_0x4c35df;return c=Object[_0x370feb(0xda)]||function(_0x3d6542){var _0x47c5b4=_0x370feb;for(var _0x14d2d4,_0x2149bd=0x1,_0x19e90c=arguments[_0x47c5b4(0x148)];_0x2149bd<_0x19e90c;_0x2149bd++){_0x14d2d4=arguments[_0x2149bd];for(var _0xf03e78 in _0x14d2d4)Object[_0x47c5b4(0x143)][_0x47c5b4(0x100)][_0x47c5b4(0x13c)](_0x14d2d4,_0xf03e78)&&(_0x3d6542[_0xf03e78]=_0x14d2d4[_0xf03e78]);}return _0x3d6542;},c[_0x370feb(0x154)](this,arguments);},Oe=function(_0x25f212,_0x179dc4){var _0x2a5047=_0x4c35df,_0x521a10={};for(var _0x42acd7 in _0x25f212)Object['prototype'][_0x2a5047(0x100)]['call'](_0x25f212,_0x42acd7)&&_0x179dc4['indexOf'](_0x42acd7)<0x0&&(_0x521a10[_0x42acd7]=_0x25f212[_0x42acd7]);if(_0x25f212!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x6e7662=0x0,_0x42acd7=Object['getOwnPropertySymbols'](_0x25f212);_0x6e7662<_0x42acd7[_0x2a5047(0x148)];_0x6e7662++)_0x179dc4[_0x2a5047(0x156)](_0x42acd7[_0x6e7662])<0x0&&Object[_0x2a5047(0x143)][_0x2a5047(0x121)][_0x2a5047(0x13c)](_0x25f212,_0x42acd7[_0x6e7662])&&(_0x521a10[_0x42acd7[_0x6e7662]]=_0x25f212[_0x42acd7[_0x6e7662]]);}return _0x521a10;},W=_0x173ab3(function(_0x410a9d,_0x47159c){var _0x66e5fa=_0x4c35df,_0x34e866=_0x410a9d[_0x66e5fa(0x132)],_0x5ab8e4=_0x410a9d['id'],_0x490bba=_0x410a9d[_0x66e5fa(0x15e)],_0x509ee6=_0x410a9d[_0x66e5fa(0xe5)],_0x22298d=Oe(_0x410a9d,[_0x66e5fa(0x132),'id','className',_0x66e5fa(0xe5)]),_0x9e4b0c='univerjs-icon\x20univerjs-icon-'[_0x66e5fa(0xdd)](_0x5ab8e4,'\x20')[_0x66e5fa(0xdd)](_0x490bba||'')[_0x66e5fa(0x155)](),_0x156718=_0x266191('_'['concat'](Ne()));return Y(_0x34e866,''['concat'](_0x5ab8e4),{'defIds':_0x34e866[_0x66e5fa(0xe3)],'idSuffix':_0x156718[_0x66e5fa(0xec)]},c({'ref':_0x47159c,'className':_0x9e4b0c},_0x22298d),_0x509ee6);});function Y(_0x19fca1,_0x5477b9,_0xb53783,_0x34dac9,_0x3fa232){var _0x4017bb=_0x4c35df;return _0x1ebd79(_0x19fca1['tag'],c(c({'key':_0x5477b9},Ee(_0x19fca1,_0xb53783,_0x3fa232)),_0x34dac9),(we(_0x19fca1,_0xb53783)[_0x4017bb(0x129)]||[])[_0x4017bb(0x157)](function(_0x57b884,_0x11408a){var _0x2c80ac=_0x4017bb;return Y(_0x57b884,''[_0x2c80ac(0xdd)](_0x5477b9,'-')['concat'](_0x19fca1[_0x2c80ac(0xcf)],'-')[_0x2c80ac(0xdd)](_0x11408a),_0xb53783,void 0x0,_0x3fa232);}));}function Ee(_0x1fcceb,_0x30a19c,_0x19a1ca){var _0x2c8e65=_0x4c35df,_0x5a23f9=c({},_0x1fcceb['attrs']);_0x19a1ca!=null&&_0x19a1ca[_0x2c8e65(0xce)]&&_0x5a23f9['fill']===_0x2c8e65(0xce)&&(_0x5a23f9[_0x2c8e65(0x12b)]=_0x19a1ca[_0x2c8e65(0xce)]),_0x1fcceb[_0x2c8e65(0xcf)]===_0x2c8e65(0xed)&&_0x5a23f9['id']&&(_0x5a23f9['id']=_0x5a23f9['id']+_0x30a19c['idSuffix']),Object[_0x2c8e65(0x15a)](_0x5a23f9)[_0x2c8e65(0x135)](function(_0x1b205c){var _0x4357c9=_0x2c8e65,_0x4680c4=_0x1b205c[0x0],_0x8db7e8=_0x1b205c[0x1];_0x4680c4===_0x4357c9(0xed)&&typeof _0x8db7e8==_0x4357c9(0xc4)&&(_0x5a23f9[_0x4680c4]=_0x8db7e8[_0x4357c9(0x12c)](/url\(#(.*)\)/,_0x4357c9(0x152)[_0x4357c9(0xdd)](_0x30a19c[_0x4357c9(0xfc)],')')));});var _0x567f42=_0x30a19c[_0x2c8e65(0xe3)];return!_0x567f42||_0x567f42[_0x2c8e65(0x148)]===0x0||(_0x1fcceb[_0x2c8e65(0xcf)]===_0x2c8e65(0xf1)&&_0x5a23f9[_0x2c8e65(0xcd)]&&(_0x5a23f9['xlink:href']=_0x5a23f9[_0x2c8e65(0xcd)]+_0x30a19c[_0x2c8e65(0xfc)]),Object[_0x2c8e65(0x15a)](_0x5a23f9)['forEach'](function(_0x82365e){var _0x1c5a09=_0x2c8e65,_0xee7e3e=_0x82365e[0x0],_0x211957=_0x82365e[0x1];typeof _0x211957=='string'&&(_0x5a23f9[_0xee7e3e]=_0x211957[_0x1c5a09(0x12c)](/url\(#(.*)\)/,_0x1c5a09(0x152)[_0x1c5a09(0xdd)](_0x30a19c[_0x1c5a09(0xfc)],')')));})),_0x5a23f9;}function we(_0x382331,_0x837ab){var _0x259267=_0x4c35df,_0x4b406f,_0x5715a6=_0x837ab[_0x259267(0xe3)];return!_0x5715a6||_0x5715a6['length']===0x0?_0x382331:_0x382331[_0x259267(0xcf)]===_0x259267(0xd0)&&(!((_0x4b406f=_0x382331[_0x259267(0x129)])===null||_0x4b406f===void 0x0)&&_0x4b406f[_0x259267(0x148)])?c(c({},_0x382331),{'children':_0x382331[_0x259267(0x129)]['map'](function(_0x730ed4){var _0x43cdce=_0x259267;return typeof _0x730ed4[_0x43cdce(0x10a)]['id']==_0x43cdce(0xc4)&&_0x5715a6&&_0x5715a6['includes'](_0x730ed4['attrs']['id'])?c(c({},_0x730ed4),{'attrs':c(c({},_0x730ed4[_0x43cdce(0x10a)]),{'id':_0x730ed4[_0x43cdce(0x10a)]['id']+_0x837ab[_0x43cdce(0xfc)]})}):_0x730ed4;})}):_0x382331;}function Ne(){var _0x2829c7=_0x4c35df;return Math[_0x2829c7(0x138)]()[_0x2829c7(0xe2)](0x24)['substring'](0x2,0x8);}W[_0x4c35df(0xba)]=_0x4c35df(0xf0);var Ce={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4c35df(0x15d),'viewBox':_0x4c35df(0xee),'width':_0x4c35df(0xdc),'height':_0x4c35df(0xdc)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x4c35df(0xff)}},{'tag':_0x4c35df(0xf3),'attrs':{'fill':'currentColor','d':_0x4c35df(0x12e),'fillRule':'evenodd','clipRule':_0x4c35df(0xe7)}}]},B=_0x173ab3(function(_0x3e1a82,_0x34fbe8){var _0x49c871=_0x4c35df;return _0x1ebd79(W,Object[_0x49c871(0xda)]({},_0x3e1a82,{'id':_0x49c871(0xdf),'ref':_0x34fbe8,'icon':Ce}));});B[_0x4c35df(0xba)]=_0x4c35df(0xd6);class L extends _0x1f1ed5{constructor(){var _0xf6aab3=_0x4c35df;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0xf6aab3(0xe6),new Set());}[_0x4c35df(0x166)](_0x45c34e){var _0x2708e4=_0x4c35df;return this[_0x2708e4(0x145)][_0x2708e4(0x101)](_0x45c34e),_0x5cf8b6(()=>this[_0x2708e4(0x145)]['delete'](_0x45c34e));}[_0x4c35df(0xb8)](_0x420d58){var _0x2a1407=_0x4c35df;return this['_reporters']['add'](_0x420d58),_0x5cf8b6(()=>this[_0x2a1407(0xe6)][_0x2a1407(0x133)](_0x420d58));}['shouldShareOperation'](_0x1d51c0){var _0x407502=_0x4c35df;return this['_sharedOperations'][_0x407502(0x10f)](_0x1d51c0);}[_0x4c35df(0x159)](_0x4cfa81){var _0x1961dc=_0x4c35df;return Array['from'](this[_0x1961dc(0xe6)])[_0x1961dc(0x157)](_0x24771b=>_0x24771b(_0x4cfa81));}}var De=Object[_0x4c35df(0x153)],Z=(_0x17857d,_0x10c588,_0x5a6e8a,_0x2246b9)=>{for(var _0x33b7ca=_0x2246b9>0x1?void 0x0:_0x2246b9?De(_0x10c588,_0x5a6e8a):_0x10c588,_0x37f6fa=_0x17857d['length']-0x1,_0x4e1acc;_0x37f6fa>=0x0;_0x37f6fa--)(_0x4e1acc=_0x17857d[_0x37f6fa])&&(_0x33b7ca=_0x4e1acc(_0x33b7ca)||_0x33b7ca);return _0x33b7ca;},f=(_0x2979ae,_0x4fcce1)=>(_0x31ba67,_0x24f360)=>_0x4fcce1(_0x31ba67,_0x24f360,_0x2979ae);let m=class extends _0x49bb96{constructor(_0x51a3d7,_0x8c50fc,_0x5b6956){var _0x51f3fb=_0x4c35df;super(),d(this,'_entities',new Map()),(this[_0x51f3fb(0x126)]=_0x51a3d7,this['_injector']=_0x8c50fc,this[_0x51f3fb(0x108)]=_0x5b6956,this[_0x51f3fb(0xb6)]());}async[_0x4c35df(0xef)](_0x2f4ce4){var _0x50d374=_0x4c35df;return this[_0x50d374(0xf9)][_0x50d374(0x10f)](_0x2f4ce4)||await this[_0x50d374(0xd4)](_0x2f4ce4),this['_entities'][_0x50d374(0xc7)](_0x2f4ce4);}['_init'](){var _0x2a6de9=_0x4c35df;this[_0x2a6de9(0x126)][_0x2a6de9(0xe4)](_0x5d5736[_0x2a6de9(0x142)])[_0x2a6de9(0x11a)](_0x5d7190(this[_0x2a6de9(0xc2)]))[_0x2a6de9(0x134)](async _0x1c9a00=>{var _0x47621c=_0x2a6de9;const _0x1fa4c6=_0x1c9a00[_0x47621c(0x102)]();this[_0x47621c(0xf9)][_0x47621c(0x10f)](_0x1fa4c6)||this[_0x47621c(0xd4)](_0x1fa4c6);}),this[_0x2a6de9(0x126)][_0x2a6de9(0x109)](_0x5d5736[_0x2a6de9(0x142)])[_0x2a6de9(0x11a)](_0x5d7190(this['dispose$']))[_0x2a6de9(0x134)](_0x2d3a5f=>{var _0x2ddec3=_0x2a6de9;const _0x528735=_0x2d3a5f[_0x2ddec3(0x102)](),_0x67b325=this[_0x2ddec3(0xf9)][_0x2ddec3(0xc7)](_0x528735);_0x67b325==null||_0x67b325[_0x2ddec3(0x15b)]();});}async[_0x4c35df(0xd4)](_0x21a59f){var _0x17cc3b=_0x4c35df;const _0x586d2a=await this[_0x17cc3b(0x108)][_0x17cc3b(0xc6)](_0x21a59f),_0x224ef1=this[_0x17cc3b(0x14b)]['createInstance'](C,_0x21a59f,_0x586d2a);return _0x224ef1[_0x17cc3b(0xfb)](),this[_0x17cc3b(0xf9)][_0x17cc3b(0xca)](_0x21a59f,_0x224ef1),_0x224ef1;}};m=Z([f(0x0,_0x9ee18),f(0x1,_0x214de5(_0x55d5e8)),f(0x2,_0x214de5(_0xa24487))],m);var h=(_0x26ca3=>(_0x26ca3['OFFLINE']='offline',_0x26ca3[_0x4c35df(0x11e)]=_0x4c35df(0x149),_0x26ca3['FOLLOWING']='following',_0x26ca3[_0x4c35df(0xd5)]=_0x4c35df(0xfd),_0x26ca3['PRESENTING']='presenting',_0x26ca3))(h||{});const xe=_0x4c35df(0x119),Le=0xc8;let C=class extends _0x49bb96{constructor(_0x1586d2,_0x44434f,_0x5291e9,_0x113f43,_0x10941e){var _0xa13121=_0x4c35df;super(),d(this,_0xa13121(0x10b),new _0x2822eb('idle')),d(this,_0xa13121(0x114),this[_0xa13121(0x10b)]['asObservable']()),d(this,_0xa13121(0xb6),!0x1),d(this,_0xa13121(0x113),null),d(this,_0xa13121(0xb1),null),(this[_0xa13121(0x130)]=_0x1586d2,this[_0xa13121(0xf2)]=_0x44434f,this['_configService']=_0x5291e9,this['_liveShareService']=_0x113f43,this[_0xa13121(0x160)]=_0x10941e);}get[_0x4c35df(0x104)](){var _0x35ff11=_0x4c35df;return this[_0x35ff11(0x10b)][_0x35ff11(0x10d)]();}[_0x4c35df(0x15b)](){var _0x4e4167=_0x4c35df,_0x10a54d;(_0x10a54d=this[_0x4e4167(0x113)])==null||_0x10a54d[_0x4e4167(0x15b)](),this['_status$'][_0x4e4167(0x165)]('idle'),this['_status$'][_0x4e4167(0x12a)]();}[_0x4c35df(0xfb)](){var _0x43ead5=_0x4c35df;this[_0x43ead5(0xb6)]||(this[_0x43ead5(0xb6)]=!0x0,this['_collabSession'][_0x43ead5(0xbe)][_0x43ead5(0x11a)](_0x5d7190(this[_0x43ead5(0xc2)]))[_0x43ead5(0x134)](_0x2890e6=>{var _0x18592e=_0x43ead5;switch(_0x2890e6){case _0x2facc0['OFFLINE']:this[_0x18592e(0x11c)]();break;case _0x2facc0['ONLINE']:this[_0x18592e(0xcc)]();break;}}),this[_0x43ead5(0xf2)][_0x43ead5(0xd1)][_0x43ead5(0x11a)](_0x5d7190(this[_0x43ead5(0xc2)]))[_0x43ead5(0x134)](_0x35cd43=>{var _0x442da9=_0x43ead5;const {eventID:_0x3151ae}=_0x35cd43;switch(_0x3151ae){case _0x586cf6['LIVESHARE_NEW_HOST']:this[_0x442da9(0xb5)](_0x35cd43);break;case _0x586cf6['LIVESHARE_OPERATION']:this['_handleOperation'](_0x35cd43);break;case _0x586cf6[_0x442da9(0xbb)]:this['_handleTerminate']();break;case _0x586cf6[_0x442da9(0xde)]:this[_0x442da9(0x164)](_0x35cd43);break;}}));}[_0x4c35df(0xe0)](){var _0x2a04fe=_0x4c35df;this[_0x2a04fe(0xf2)][_0x2a04fe(0xbf)]({'eventID':_0x586cf6[_0x2a04fe(0x12d)],'data':{'unitID':this[_0x2a04fe(0x130)],'userID':this[_0x2a04fe(0xf2)][_0x2a04fe(0x14d)]()}},this['_unitID']);}['stopPresenting'](){var _0x350a84=_0x4c35df;this[_0x350a84(0x104)]==='presenting'&&(this['_status$'][_0x350a84(0x165)](_0x350a84(0x149)),this[_0x350a84(0xf2)][_0x350a84(0xbf)]({'eventID':_0x586cf6[_0x350a84(0xbb)],'data':{'unitID':this[_0x350a84(0x130)]}},this['_unitID']));}[_0x4c35df(0xd2)](){var _0x4a8c49=_0x4c35df;this[_0x4a8c49(0x104)]==='not-following'&&(this['_status$'][_0x4a8c49(0x165)]('following'),this[_0x4a8c49(0x11b)]());}[_0x4c35df(0x112)](){var _0x3a7c5e=_0x4c35df;this[_0x3a7c5e(0x104)]===_0x3a7c5e(0xf6)&&this['_stopFollowing']();}[_0x4c35df(0xb5)](_0x117ea7){var _0x3ecd09=_0x4c35df;const {presenter:_0x22d416}=_0x117ea7[_0x3ecd09(0x150)],_0x1b88d8=this['_collabSession'][_0x3ecd09(0x14d)]();this[_0x3ecd09(0xb1)]=_0x22d416,_0x22d416===_0x1b88d8?(this[_0x3ecd09(0xf4)](),this[_0x3ecd09(0xb2)]()):this[_0x3ecd09(0x104)]!==_0x3ecd09(0xfd)&&(this['_stopPresenting'](),this[_0x3ecd09(0x11b)]());}[_0x4c35df(0xeb)](){var _0x205b5a=_0x4c35df;const _0x336264={'eventID':_0x586cf6[_0x205b5a(0x167)]};this[_0x205b5a(0xf2)][_0x205b5a(0xbf)](_0x336264,this['_unitID']);}[_0x4c35df(0xea)](){var _0x1d47d5=_0x4c35df;this[_0x1d47d5(0xb1)]=null,this[_0x1d47d5(0x104)]!==_0x1d47d5(0x120)&&this[_0x1d47d5(0x106)]();}['_handleNewChangeSets'](_0x341474){var _0x5a213b=_0x4c35df;if(this[_0x5a213b(0x104)]===_0x5a213b(0xf6)&&this['_presenter']===_0x341474[_0x5a213b(0x150)][_0x5a213b(0x122)]){const _0x35bf03=_0xb08ef(_0x341474[_0x5a213b(0x150)])[_0x5a213b(0x127)][_0x5a213b(0xcb)]()['find'](_0x5b75cb=>_0x5b75cb['id']===_0x5b4069['id']);if(_0x35bf03){const _0x2236e6=_0x35bf03[_0x5a213b(0xd7)][_0x5a213b(0x123)],_0x409bd5=_0x35bf03[_0x5a213b(0xd7)][_0x5a213b(0xf7)]['id'];setTimeout(()=>{var _0x3e05fc=_0x5a213b;this['_commandService'][_0x3e05fc(0x111)](_0x5b6936['id'],{'unitId':_0x2236e6,'subUnitId':_0x409bd5},{'fromCollab':!0x0});});}}}[_0x4c35df(0xb2)](){var _0x5e1871=_0x4c35df;this[_0x5e1871(0x10b)][_0x5e1871(0x165)]('presenting');const _0x397318=new Map(),_0x3a632b=this[_0x5e1871(0x113)]=new _0x457240();_0x3a632b[_0x5e1871(0x101)](_0x5cf8b6(()=>{var _0x4d8969=_0x5e1871;_0x397318['forEach'](_0x2ba3aa=>_0x2ba3aa[_0x4d8969(0x12a)]()),_0x397318['clear']();})),_0x3a632b[_0x5e1871(0x101)](this[_0x5e1871(0x160)][_0x5e1871(0x10c)](_0x191951=>{var _0x4dec3e=_0x5e1871,_0x48c14e;if(_0x191951[_0x4dec3e(0xb4)]!==_0x4dd41a[_0x4dec3e(0x107)]||!this[_0x4dec3e(0xd8)][_0x4dec3e(0xc8)](_0x191951['id']))return;const {id:_0x5d75ce}=_0x191951;let _0x4f901e;_0x397318[_0x4dec3e(0x10f)](_0x5d75ce)?_0x4f901e=_0x397318[_0x4dec3e(0xc7)](_0x5d75ce):(_0x4f901e=new _0x5d5dbf(),_0x397318[_0x4dec3e(0xca)](_0x5d75ce,_0x4f901e),_0x4f901e[_0x4dec3e(0x11a)](_0xc2d5a7((_0x48c14e=this[_0x4dec3e(0x12f)][_0x4dec3e(0xc9)](xe))!=null?_0x48c14e:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4dec3e(0x134)](_0x5364a9=>{var _0x19a7c8=_0x4dec3e;this['_collabSession'][_0x19a7c8(0xbf)]({'eventID':_0x586cf6[_0x19a7c8(0x144)],'data':{'unitID':this[_0x19a7c8(0x130)],'operations':{[_0x5364a9['id']]:{'id':_0x5364a9['id'],'params':JSON[_0x19a7c8(0x13f)](_0x5364a9[_0x19a7c8(0xd7)])}}}},this[_0x19a7c8(0x130)]);})),_0x4f901e['next'](_0x191951);})),this[_0x5e1871(0xd8)][_0x5e1871(0x159)](this['_unitID'])['forEach'](_0x19cd53=>this[_0x5e1871(0xf2)][_0x5e1871(0xbf)]({'eventID':_0x586cf6[_0x5e1871(0x144)],'data':{'unitID':this[_0x5e1871(0x130)],'operations':{[_0x19cd53['id']]:{'id':_0x19cd53['id'],'params':JSON['stringify'](_0x19cd53[_0x5e1871(0xd7)])}}}},this['_unitID']));}[_0x4c35df(0x13a)](){var _0x1deb5d=_0x4c35df,_0x4ab702;this['_status$'][_0x1deb5d(0x165)](_0x1deb5d(0x149)),(_0x4ab702=this[_0x1deb5d(0x113)])==null||_0x4ab702[_0x1deb5d(0x15b)](),this[_0x1deb5d(0x113)]=null;}['_startFollowing'](){var _0xb858ed=_0x4c35df,_0x1c5f32;(_0x1c5f32=this[_0xb858ed(0x113)])==null||_0x1c5f32['dispose'](),this[_0xb858ed(0x10b)][_0xb858ed(0x165)](_0xb858ed(0xf6));}[_0x4c35df(0x106)](){var _0x4185ee=_0x4c35df,_0x5e3069;this[_0x4185ee(0x10b)][_0x4185ee(0x165)](_0x4185ee(0x149)),(_0x5e3069=this[_0x4185ee(0x113)])==null||_0x5e3069['dispose'](),this[_0x4185ee(0x113)]=null;}[_0x4c35df(0xf4)](){var _0x3ae03d=_0x4c35df,_0x267ee9;this[_0x3ae03d(0x10b)][_0x3ae03d(0x165)](_0x3ae03d(0xfd)),(_0x267ee9=this[_0x3ae03d(0x113)])==null||_0x267ee9['dispose']();}['_handleOperation'](_0x58878c){var _0x2cefc9=_0x4c35df;if([_0x2cefc9(0x120),'not-following',_0x2cefc9(0x103)][_0x2cefc9(0x139)](this[_0x2cefc9(0x104)])||!_0x58878c['data'][_0x2cefc9(0x136)]||_0x58878c[_0x2cefc9(0x150)][_0x2cefc9(0x136)]===this[_0x2cefc9(0xf2)]['getMemberID']())return;this[_0x2cefc9(0x104)]==='idle'&&this[_0x2cefc9(0x11b)]();const _0x3ccfb9=_0x58878c['data'][_0x2cefc9(0xf5)];Object[_0x2cefc9(0x125)](_0x3ccfb9)[_0x2cefc9(0x135)](_0x445746=>{var _0xd34acf=_0x2cefc9;this[_0xd34acf(0x160)][_0xd34acf(0x111)](_0x445746['id'],_0x445746[_0xd34acf(0xd7)]?JSON[_0xd34acf(0xf8)](_0x445746[_0xd34acf(0xd7)]):null,{'fromCollab':!0x0});});}[_0x4c35df(0x11c)](){var _0x78934a=_0x4c35df,_0x154627;this[_0x78934a(0x10b)][_0x78934a(0x165)](_0x78934a(0x103)),(_0x154627=this[_0x78934a(0x113)])==null||_0x154627['dispose']();}[_0x4c35df(0xcc)](){var _0x53759b=_0x4c35df;this[_0x53759b(0x10b)][_0x53759b(0x165)](_0x53759b(0x149)),this['_fetchOperations']();}};C=Z([f(0x2,_0x596770),f(0x3,_0x214de5(L)),f(0x4,_0x49ea3a)],C);function ye(){var _0x557853=_0x4c35df;const _0x567677=_0x595204(m),_0x337a72=_0x595204(_0x9ee18),_0x46d938=_0xc95284(()=>_0x337a72[_0x557853(0xe8)](_0x5d5736[_0x557853(0x142)]),void 0x0,!0x1,[]),[_0x1086c1,_0x562109]=_0xbbc3fb(null),[_0x327e3b,_0x296b5d]=_0xbbc3fb(h[_0x557853(0x11e)]),_0x393962=_0x266191(null);return _0x13fae4(()=>(_0x46d938&&_0x567677[_0x557853(0xef)](_0x46d938['getUnitId']())[_0x557853(0x14c)](_0x182736=>{var _0x7fba0a=_0x557853;_0x562109(_0x182736),_0x393962[_0x7fba0a(0xec)]=_0x182736['status$'][_0x7fba0a(0x134)](_0x330193=>{_0x296b5d(_0x330193);});}),()=>{var _0x726587=_0x557853,_0x1ba210;(_0x1ba210=_0x393962[_0x726587(0xec)])==null||_0x1ba210[_0x726587(0xe1)](),_0x393962[_0x726587(0xec)]=null;}),[_0x46d938,_0x567677]),_0x1086c1?_0x29fd32(_0x380dce,{'align':_0x557853(0x140),'disabled':_0x327e3b===h[_0x557853(0x110)],'className':_0x557853(0x137),'overlay':_0x29fd32(Re,{'status':_0x327e3b,'coordinator':_0x1086c1}),'children':_0x29fd32('button',{'className':_0x1613e6(_0x557853(0x124),{'univer-cursor-not-allowed':_0x327e3b===h[_0x557853(0x110)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x327e3b!==h[_0x557853(0x110)]}),'type':_0x557853(0x14a),'children':_0x29fd32(B,{'className':_0x557853(0x15c)})})}):null;}function Re(_0x18e12d){var _0x2483cf=_0x4c35df;const {status:_0x2058e7,coordinator:_0x1e5028}=_0x18e12d;switch(_0x2058e7){case h[_0x2483cf(0x11e)]:return _0x29fd32(Pe,{'coordinator':_0x1e5028});case h[_0x2483cf(0xb3)]:return _0x29fd32(Ae,{'coordinator':_0x1e5028});case h[_0x2483cf(0xd5)]:return _0x29fd32(Te,{'coordinator':_0x1e5028});case h[_0x2483cf(0x110)]:return _0x29fd32(Fe,{});case h['PRESENTING']:return _0x29fd32($e,{'coordinator':_0x1e5028});default:return null;}}function Pe(_0x121a9a){var _0x3d3729=_0x4c35df;const {coordinator:_0x544c28}=_0x121a9a;return _0x3cea35(_0x187468,{'children':[_0x29fd32(_0x3d3729(0x147),{'className':_0x3d3729(0x13d),'children':_0x3d3729(0x161)}),_0x29fd32(_0x5c5ef5,{'onClick':()=>_0x544c28[_0x3d3729(0xe0)](),'children':_0x3d3729(0xc3)})]});}function Ae(_0x594e23){var _0x27031a=_0x4c35df;const {coordinator:_0x4518de}=_0x594e23;return _0x3cea35(_0x187468,{'children':[_0x29fd32(_0x27031a(0x147),{'className':_0x27031a(0x13d),'children':_0x27031a(0xb9)}),_0x29fd32(_0x5c5ef5,{'onClick':()=>_0x4518de['stopFollowing'](),'children':_0x27031a(0xdb)})]});}function Te(_0xbb026d){var _0x49b7e5=_0x4c35df;const {coordinator:_0x5034de}=_0xbb026d;return _0x3cea35(_0x187468,{'children':[_0x29fd32(_0x49b7e5(0x147),{'className':_0x49b7e5(0x13d),'children':_0x49b7e5(0x158)}),_0x29fd32(_0x5c5ef5,{'variant':_0x49b7e5(0x14f),'onClick':()=>_0x5034de[_0x49b7e5(0xd2)](),'children':_0x49b7e5(0x11d)})]});}function $e(_0x4c0556){var _0x2bf205=_0x4c35df;const {coordinator:_0x467e22}=_0x4c0556;return _0x3cea35(_0x187468,{'children':[_0x29fd32(_0x2bf205(0x147),{'className':_0x2bf205(0x13d),'children':_0x2bf205(0xd9)}),_0x29fd32(_0x5c5ef5,{'variant':_0x2bf205(0xfa),'onClick':()=>_0x467e22[_0x2bf205(0x11f)](),'children':_0x2bf205(0xbc)})]});}function Fe(){var _0x2a1718=_0x4c35df;return _0x29fd32(_0x187468,{'children':_0x2a1718(0xbd)});}var He=Object[_0x4c35df(0x153)],je=(_0x5150ca,_0x919795,_0x12ba96,_0x14d82c)=>{var _0x1daf1a=_0x4c35df;for(var _0x41faa1=_0x14d82c>0x1?void 0x0:_0x14d82c?He(_0x919795,_0x12ba96):_0x919795,_0x4fab83=_0x5150ca[_0x1daf1a(0x148)]-0x1,_0x16607a;_0x4fab83>=0x0;_0x4fab83--)(_0x16607a=_0x5150ca[_0x4fab83])&&(_0x41faa1=_0x16607a(_0x41faa1)||_0x41faa1);return _0x41faa1;},T=(_0x26802a,_0x3b6b41)=>(_0x5d294e,_0x32e091)=>_0x3b6b41(_0x5d294e,_0x32e091,_0x26802a);let I=class extends _0x1f1ed5{constructor(_0xbb31d4,_0x487fbb){var _0x2e276f=_0x4c35df;super(),this['_injector']=_0xbb31d4,this[_0x2e276f(0xe9)]=_0x487fbb,this[_0x2e276f(0x10e)]();}[_0x4c35df(0x10e)](){var _0x523820=_0x4c35df;this[_0x523820(0xc1)](this['_uiPartsService'][_0x523820(0x14e)](_0x38120b[_0x523820(0xc0)],()=>_0x5368f4(ye,this[_0x523820(0x14b)])));}};I=je([T(0x0,_0x214de5(_0x55d5e8)),T(0x1,_0x868a60)],I);const Ue=_0x4c35df(0xd3),$={};var Ve=Object[_0x4c35df(0x153)],Me=(_0x452522,_0xc1f363,_0xb0bd29,_0x39ac42)=>{var _0x4f48a9=_0x4c35df;for(var _0x1b8f96=_0x39ac42>0x1?void 0x0:_0x39ac42?Ve(_0xc1f363,_0xb0bd29):_0xc1f363,_0x3a52ed=_0x452522[_0x4f48a9(0x148)]-0x1,_0x1e3042;_0x3a52ed>=0x0;_0x3a52ed--)(_0x1e3042=_0x452522[_0x3a52ed])&&(_0x1b8f96=_0x1e3042(_0x1b8f96)||_0x1b8f96);return _0x1b8f96;},ke=(_0x3a84d9,_0x5d6826)=>(_0x41a159,_0x8f3c4f)=>_0x5d6826(_0x41a159,_0x8f3c4f,_0x3a84d9);let b=class extends _0x1f1ed5{constructor(_0x1ec0da){var _0x396fe5=_0x4c35df;super(),this[_0x396fe5(0xd8)]=_0x1ec0da,this[_0x396fe5(0xb6)]();}[_0x4c35df(0xb6)](){var _0x4d4aac=_0x4c35df;[_0x548d0f['id'],_0x50482e['id'],_0x5b6936['id']][_0x4d4aac(0x135)](_0x36521d=>{var _0x2625d2=_0x4d4aac;this[_0x2625d2(0xc1)](this[_0x2625d2(0xd8)][_0x2625d2(0x166)](_0x36521d));});}};b=Me([ke(0x0,_0x214de5(L))],b);var Ge=Object['defineProperty'],We=Object[_0x4c35df(0x153)],Ye=(_0x384ebc,_0x41cf71,_0x5932ed)=>_0x41cf71 in _0x384ebc?Ge(_0x384ebc,_0x41cf71,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5932ed}):_0x384ebc[_0x41cf71]=_0x5932ed,Be=(_0x4079c4,_0x3507b1,_0x519a82,_0x327d81)=>{for(var _0x28207c=_0x327d81>0x1?void 0x0:_0x327d81?We(_0x3507b1,_0x519a82):_0x3507b1,_0x355ff8=_0x4079c4['length']-0x1,_0x1d68b3;_0x355ff8>=0x0;_0x355ff8--)(_0x1d68b3=_0x4079c4[_0x355ff8])&&(_0x28207c=_0x1d68b3(_0x28207c)||_0x28207c);return _0x28207c;},F=(_0x4cf3c2,_0x1db7c1)=>(_0x3dd3d8,_0x46c2b9)=>_0x1db7c1(_0x3dd3d8,_0x46c2b9,_0x4cf3c2),J=(_0x510819,_0x2c86c5,_0x1edac1)=>Ye(_0x510819,typeof _0x2c86c5!=_0x4c35df(0x141)?_0x2c86c5+'':_0x2c86c5,_0x1edac1);const Ze=_0x4c35df(0x105);let O=class extends _0xca36d6{constructor(_0x405d03=$,_0x45b987,_0x15fe92){var _0x5a7562=_0x4c35df;super(),this[_0x5a7562(0x117)]=_0x405d03,this[_0x5a7562(0x14b)]=_0x45b987,this[_0x5a7562(0x12f)]=_0x15fe92;const {..._0xa87cec}=_0x49df5f({},$,this[_0x5a7562(0x117)]);this[_0x5a7562(0x12f)][_0x5a7562(0x15f)](Ue,_0xa87cec);}[_0x4c35df(0x168)](){var _0x40c698=_0x4c35df;_0x161788(this[_0x40c698(0x14b)],_0x265c97([[L],[m],[b],[I]],this[_0x40c698(0x117)][_0x40c698(0xfe)])),_0x58f08e(this[_0x40c698(0x14b)],[[b]]);}[_0x4c35df(0x162)](){var _0x559feb=_0x4c35df;_0x58f08e(this[_0x559feb(0x14b)],[[I]]);}};J(O,_0x4c35df(0xb4),_0x5d5736['UNIVER_UNKNOWN']),J(O,_0x4c35df(0x118),Ze),O=Be([_0x13c7bc(_0x5f57c7),F(0x1,_0x214de5(_0x55d5e8)),F(0x2,_0x596770)],O);export{I as DesktopLiveShareController,ye as LiveShare,m 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 _0x4c35df=_0x7bc6;(function(_0x41046a,_0x10f0d7){var _0x527b83=_0x7bc6,_0x16462c=_0x41046a();while(!![]){try{var _0x13eb75=parseInt(_0x527b83(0x163))/0x1+-parseInt(_0x527b83(0x13e))/0x2*(parseInt(_0x527b83(0x115))/0x3)+parseInt(_0x527b83(0x116))/0x4+parseInt(_0x527b83(0x131))/0x5+-parseInt(_0x527b83(0xc5))/0x6+-parseInt(_0x527b83(0x128))/0x7*(parseInt(_0x527b83(0x151))/0x8)+parseInt(_0x527b83(0x13b))/0x9*(parseInt(_0x527b83(0xb7))/0xa);if(_0x13eb75===_0x10f0d7)break;else _0x16462c['push'](_0x16462c['shift']());}catch(_0x3860bb){_0x16462c['push'](_0x16462c['shift']());}}}(_0x4cc9,0xecbf0));var q=Object[_0x4c35df(0x146)],z=(_0x32da0d,_0x20d3a4,_0xdfeb22)=>_0x20d3a4 in _0x32da0d?q(_0x32da0d,_0x20d3a4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xdfeb22}):_0x32da0d[_0x20d3a4]=_0xdfeb22,d=(_0x177f51,_0x40a53c,_0x948a31)=>z(_0x177f51,typeof _0x40a53c!=_0x4c35df(0x141)?_0x40a53c+'':_0x40a53c,_0x948a31);import{Disposable as _0x1f1ed5,toDisposable as _0x5cf8b6,IUniverInstanceService as _0x9ee18,Inject as _0x214de5,Injector as _0x55d5e8,IConfigService as _0x596770,ICommandService as _0x49ea3a,RxDisposable as _0x49bb96,UniverInstanceType as _0x5d5736,DisposableCollection as _0x457240,CommandType as _0x4dd41a,DependentOn as _0x13c7bc,Plugin as _0xca36d6,merge as _0x49df5f,registerDependencies as _0x161788,mergeOverrideWithDependencies as _0x265c97,touchDependencies as _0x58f08e}from'@univerjs/core';import{useDependency as _0x595204,useObservable as _0xc95284,IUIPartsService as _0x868a60,BuiltInUIPart as _0x38120b,connectInjector as _0x5368f4}from'@univerjs/ui';function _0x7bc6(_0x57c73a,_0x338fb7){var _0x4cc9b4=_0x4cc9();return _0x7bc6=function(_0x7bc6cd,_0x2c20a8){_0x7bc6cd=_0x7bc6cd-0xb1;var _0x1a9931=_0x4cc9b4[_0x7bc6cd];return _0x1a9931;},_0x7bc6(_0x57c73a,_0x338fb7);}import{jsx as _0x29fd32,jsxs as _0x3cea35,Fragment as _0x187468}from'react/jsx-runtime';import{Dropdown as _0x380dce,clsx as _0x1613e6,Button as _0x5c5ef5}from'@univerjs/design';import{forwardRef as _0x173ab3,useRef as _0x266191,createElement as _0x1ebd79,useState as _0xbbc3fb,useEffect as _0x13fae4}from'react';import{CollaborationEvent as _0x586cf6,parseProtocolChangeset as _0xb08ef}from'@univerjs-pro/collaboration';import{CollaborationSessionService as _0xa24487,SessionStatus as _0x2facc0,UniverCollaborationClientPlugin as _0x5f57c7}from'@univerjs-pro/collaboration-client';import{InsertSheetMutation as _0x5b4069,SetWorksheetActiveOperation as _0x5b6936}from'@univerjs/sheets';import{BehaviorSubject as _0x2822eb,Subject as _0x5d5dbf}from'rxjs';import{takeUntil as _0x5d7190,throttleTime as _0xc2d5a7}from'rxjs/operators';import{SetZoomRatioOperation as _0x548d0f,SetScrollOperation as _0x50482e}from'@univerjs/sheets-ui';function _0x4cc9(){var _0x5f45f1=['init','idSuffix','not-following','override','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','hasOwnProperty','add','getUnitId','offline','_status','UNIVER_LIVE_SHARE_PLUGIN','_beIdle','OPERATION','_collabSessionService','getTypeOfUnitDisposed$','attrs','_status$','onCommandExecuted','getValue','_mountLiveShare','has','OFFLINE','executeCommand','stopFollowing','_commandDisposable','status$','102630JIVxLq','1110904qLyiBY','_config','pluginName','SAME_OPERATION_SHARE_INTERVAL','pipe','_startFollowing','_handleOffline','Start\x20following','IDLE','stopPresenting','presenting','propertyIsEnumerable','memberID','unitId','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','values','_univerInstanceService','mutations','6595463aoLgqH','children','complete','fill','replace','LIVESHARE_REQUEST_HOST','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','_configService','_unitID','6879555JimmOC','icon','delete','subscribe','forEach','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','random','includes','_stopPresenting','21655350mfEzvs','call','univer-mb-3\x20univer-w-full\x20univer-text-sm','100buTWWn','stringify','end','symbol','UNIVER_SHEET','prototype','LIVESHARE_OPERATION','_sharedOperations','defineProperty','div','length','idle','button','_injector','then','getMemberID','registerComponent','text','data','8AmGrbb','url(#$1','getOwnPropertyDescriptor','apply','trim','indexOf','map','You\x27re\x20not\x20following\x20the\x20presenter','getInitialStates','entries','dispose','univer-size-4','none','className','setConfig','_commandService','Present\x20this\x20document','onRendered','1219867YZhopN','_handleNewChangeSets','next','registerSharedOperation','LIVESHARE_FETCH_OPERATIONS','onStarting','_presenter','_startPresenting','FOLLOWING','type','_handleNewHost','_init','10RnWiRH','registerInitialStateReporter','You\x27re\x20following\x20the\x20presenter','displayName','LIVESHARE_TERMINATE','Stop\x20presenting','You\x27are\x20offline.','sessionStatus$','send','HEADER_MENU','disposeWithMe','dispose$','Start','string','9943398gsEJNU','requireSession','get','shouldShareOperation','getConfig','set','reverse','_handleOnline','xlink:href','colorChannel1','tag','defs','event$','startFollowing','live-share.config','_startLiveShareCoordinator','NOT_FOLLOWING','LiveShareIcon','params','_liveShareService','You\x27re\x20presenting\x20the\x20document','assign','Stop\x20following','1em','concat','NEW_CHANGESETS','live-share-icon','tryStartPresenting','unsubscribe','toString','defIds','getTypeOfUnitAdded$','extend','_reporters','evenodd','getCurrentTypeOfUnit$','_uiPartsService','_handleTerminate','_fetchOperations','current','mask','0\x200\x2017\x2017','getLiveShareCoordinator','UniverIcon','use','_collabSession','path','_stopFollowing','operations','following','sheet','parse','_entities','default'];_0x4cc9=function(){return _0x5f45f1;};return _0x4cc9();}var c=function(){var _0x370feb=_0x4c35df;return c=Object[_0x370feb(0xda)]||function(_0x3d6542){var _0x47c5b4=_0x370feb;for(var _0x14d2d4,_0x2149bd=0x1,_0x19e90c=arguments[_0x47c5b4(0x148)];_0x2149bd<_0x19e90c;_0x2149bd++){_0x14d2d4=arguments[_0x2149bd];for(var _0xf03e78 in _0x14d2d4)Object[_0x47c5b4(0x143)][_0x47c5b4(0x100)][_0x47c5b4(0x13c)](_0x14d2d4,_0xf03e78)&&(_0x3d6542[_0xf03e78]=_0x14d2d4[_0xf03e78]);}return _0x3d6542;},c[_0x370feb(0x154)](this,arguments);},Oe=function(_0x25f212,_0x179dc4){var _0x2a5047=_0x4c35df,_0x521a10={};for(var _0x42acd7 in _0x25f212)Object['prototype'][_0x2a5047(0x100)]['call'](_0x25f212,_0x42acd7)&&_0x179dc4['indexOf'](_0x42acd7)<0x0&&(_0x521a10[_0x42acd7]=_0x25f212[_0x42acd7]);if(_0x25f212!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x6e7662=0x0,_0x42acd7=Object['getOwnPropertySymbols'](_0x25f212);_0x6e7662<_0x42acd7[_0x2a5047(0x148)];_0x6e7662++)_0x179dc4[_0x2a5047(0x156)](_0x42acd7[_0x6e7662])<0x0&&Object[_0x2a5047(0x143)][_0x2a5047(0x121)][_0x2a5047(0x13c)](_0x25f212,_0x42acd7[_0x6e7662])&&(_0x521a10[_0x42acd7[_0x6e7662]]=_0x25f212[_0x42acd7[_0x6e7662]]);}return _0x521a10;},W=_0x173ab3(function(_0x410a9d,_0x47159c){var _0x66e5fa=_0x4c35df,_0x34e866=_0x410a9d[_0x66e5fa(0x132)],_0x5ab8e4=_0x410a9d['id'],_0x490bba=_0x410a9d[_0x66e5fa(0x15e)],_0x509ee6=_0x410a9d[_0x66e5fa(0xe5)],_0x22298d=Oe(_0x410a9d,[_0x66e5fa(0x132),'id','className',_0x66e5fa(0xe5)]),_0x9e4b0c='univerjs-icon\x20univerjs-icon-'[_0x66e5fa(0xdd)](_0x5ab8e4,'\x20')[_0x66e5fa(0xdd)](_0x490bba||'')[_0x66e5fa(0x155)](),_0x156718=_0x266191('_'['concat'](Ne()));return Y(_0x34e866,''['concat'](_0x5ab8e4),{'defIds':_0x34e866[_0x66e5fa(0xe3)],'idSuffix':_0x156718[_0x66e5fa(0xec)]},c({'ref':_0x47159c,'className':_0x9e4b0c},_0x22298d),_0x509ee6);});function Y(_0x19fca1,_0x5477b9,_0xb53783,_0x34dac9,_0x3fa232){var _0x4017bb=_0x4c35df;return _0x1ebd79(_0x19fca1['tag'],c(c({'key':_0x5477b9},Ee(_0x19fca1,_0xb53783,_0x3fa232)),_0x34dac9),(we(_0x19fca1,_0xb53783)[_0x4017bb(0x129)]||[])[_0x4017bb(0x157)](function(_0x57b884,_0x11408a){var _0x2c80ac=_0x4017bb;return Y(_0x57b884,''[_0x2c80ac(0xdd)](_0x5477b9,'-')['concat'](_0x19fca1[_0x2c80ac(0xcf)],'-')[_0x2c80ac(0xdd)](_0x11408a),_0xb53783,void 0x0,_0x3fa232);}));}function Ee(_0x1fcceb,_0x30a19c,_0x19a1ca){var _0x2c8e65=_0x4c35df,_0x5a23f9=c({},_0x1fcceb['attrs']);_0x19a1ca!=null&&_0x19a1ca[_0x2c8e65(0xce)]&&_0x5a23f9['fill']===_0x2c8e65(0xce)&&(_0x5a23f9[_0x2c8e65(0x12b)]=_0x19a1ca[_0x2c8e65(0xce)]),_0x1fcceb[_0x2c8e65(0xcf)]===_0x2c8e65(0xed)&&_0x5a23f9['id']&&(_0x5a23f9['id']=_0x5a23f9['id']+_0x30a19c['idSuffix']),Object[_0x2c8e65(0x15a)](_0x5a23f9)[_0x2c8e65(0x135)](function(_0x1b205c){var _0x4357c9=_0x2c8e65,_0x4680c4=_0x1b205c[0x0],_0x8db7e8=_0x1b205c[0x1];_0x4680c4===_0x4357c9(0xed)&&typeof _0x8db7e8==_0x4357c9(0xc4)&&(_0x5a23f9[_0x4680c4]=_0x8db7e8[_0x4357c9(0x12c)](/url\(#(.*)\)/,_0x4357c9(0x152)[_0x4357c9(0xdd)](_0x30a19c[_0x4357c9(0xfc)],')')));});var _0x567f42=_0x30a19c[_0x2c8e65(0xe3)];return!_0x567f42||_0x567f42[_0x2c8e65(0x148)]===0x0||(_0x1fcceb[_0x2c8e65(0xcf)]===_0x2c8e65(0xf1)&&_0x5a23f9[_0x2c8e65(0xcd)]&&(_0x5a23f9['xlink:href']=_0x5a23f9[_0x2c8e65(0xcd)]+_0x30a19c[_0x2c8e65(0xfc)]),Object[_0x2c8e65(0x15a)](_0x5a23f9)['forEach'](function(_0x82365e){var _0x1c5a09=_0x2c8e65,_0xee7e3e=_0x82365e[0x0],_0x211957=_0x82365e[0x1];typeof _0x211957=='string'&&(_0x5a23f9[_0xee7e3e]=_0x211957[_0x1c5a09(0x12c)](/url\(#(.*)\)/,_0x1c5a09(0x152)[_0x1c5a09(0xdd)](_0x30a19c[_0x1c5a09(0xfc)],')')));})),_0x5a23f9;}function we(_0x382331,_0x837ab){var _0x259267=_0x4c35df,_0x4b406f,_0x5715a6=_0x837ab[_0x259267(0xe3)];return!_0x5715a6||_0x5715a6['length']===0x0?_0x382331:_0x382331[_0x259267(0xcf)]===_0x259267(0xd0)&&(!((_0x4b406f=_0x382331[_0x259267(0x129)])===null||_0x4b406f===void 0x0)&&_0x4b406f[_0x259267(0x148)])?c(c({},_0x382331),{'children':_0x382331[_0x259267(0x129)]['map'](function(_0x730ed4){var _0x43cdce=_0x259267;return typeof _0x730ed4[_0x43cdce(0x10a)]['id']==_0x43cdce(0xc4)&&_0x5715a6&&_0x5715a6['includes'](_0x730ed4['attrs']['id'])?c(c({},_0x730ed4),{'attrs':c(c({},_0x730ed4[_0x43cdce(0x10a)]),{'id':_0x730ed4[_0x43cdce(0x10a)]['id']+_0x837ab[_0x43cdce(0xfc)]})}):_0x730ed4;})}):_0x382331;}function Ne(){var _0x2829c7=_0x4c35df;return Math[_0x2829c7(0x138)]()[_0x2829c7(0xe2)](0x24)['substring'](0x2,0x8);}W[_0x4c35df(0xba)]=_0x4c35df(0xf0);var Ce={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4c35df(0x15d),'viewBox':_0x4c35df(0xee),'width':_0x4c35df(0xdc),'height':_0x4c35df(0xdc)},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':_0x4c35df(0xff)}},{'tag':_0x4c35df(0xf3),'attrs':{'fill':'currentColor','d':_0x4c35df(0x12e),'fillRule':'evenodd','clipRule':_0x4c35df(0xe7)}}]},B=_0x173ab3(function(_0x3e1a82,_0x34fbe8){var _0x49c871=_0x4c35df;return _0x1ebd79(W,Object[_0x49c871(0xda)]({},_0x3e1a82,{'id':_0x49c871(0xdf),'ref':_0x34fbe8,'icon':Ce}));});B[_0x4c35df(0xba)]=_0x4c35df(0xd6);class L extends _0x1f1ed5{constructor(){var _0xf6aab3=_0x4c35df;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0xf6aab3(0xe6),new Set());}[_0x4c35df(0x166)](_0x45c34e){var _0x2708e4=_0x4c35df;return this[_0x2708e4(0x145)][_0x2708e4(0x101)](_0x45c34e),_0x5cf8b6(()=>this[_0x2708e4(0x145)]['delete'](_0x45c34e));}[_0x4c35df(0xb8)](_0x420d58){var _0x2a1407=_0x4c35df;return this['_reporters']['add'](_0x420d58),_0x5cf8b6(()=>this[_0x2a1407(0xe6)][_0x2a1407(0x133)](_0x420d58));}['shouldShareOperation'](_0x1d51c0){var _0x407502=_0x4c35df;return this['_sharedOperations'][_0x407502(0x10f)](_0x1d51c0);}[_0x4c35df(0x159)](_0x4cfa81){var _0x1961dc=_0x4c35df;return Array['from'](this[_0x1961dc(0xe6)])[_0x1961dc(0x157)](_0x24771b=>_0x24771b(_0x4cfa81));}}var De=Object[_0x4c35df(0x153)],Z=(_0x17857d,_0x10c588,_0x5a6e8a,_0x2246b9)=>{for(var _0x33b7ca=_0x2246b9>0x1?void 0x0:_0x2246b9?De(_0x10c588,_0x5a6e8a):_0x10c588,_0x37f6fa=_0x17857d['length']-0x1,_0x4e1acc;_0x37f6fa>=0x0;_0x37f6fa--)(_0x4e1acc=_0x17857d[_0x37f6fa])&&(_0x33b7ca=_0x4e1acc(_0x33b7ca)||_0x33b7ca);return _0x33b7ca;},f=(_0x2979ae,_0x4fcce1)=>(_0x31ba67,_0x24f360)=>_0x4fcce1(_0x31ba67,_0x24f360,_0x2979ae);let m=class extends _0x49bb96{constructor(_0x51a3d7,_0x8c50fc,_0x5b6956){var _0x51f3fb=_0x4c35df;super(),d(this,'_entities',new Map()),(this[_0x51f3fb(0x126)]=_0x51a3d7,this['_injector']=_0x8c50fc,this[_0x51f3fb(0x108)]=_0x5b6956,this[_0x51f3fb(0xb6)]());}async[_0x4c35df(0xef)](_0x2f4ce4){var _0x50d374=_0x4c35df;return this[_0x50d374(0xf9)][_0x50d374(0x10f)](_0x2f4ce4)||await this[_0x50d374(0xd4)](_0x2f4ce4),this['_entities'][_0x50d374(0xc7)](_0x2f4ce4);}['_init'](){var _0x2a6de9=_0x4c35df;this[_0x2a6de9(0x126)][_0x2a6de9(0xe4)](_0x5d5736[_0x2a6de9(0x142)])[_0x2a6de9(0x11a)](_0x5d7190(this[_0x2a6de9(0xc2)]))[_0x2a6de9(0x134)](async _0x1c9a00=>{var _0x47621c=_0x2a6de9;const _0x1fa4c6=_0x1c9a00[_0x47621c(0x102)]();this[_0x47621c(0xf9)][_0x47621c(0x10f)](_0x1fa4c6)||this[_0x47621c(0xd4)](_0x1fa4c6);}),this[_0x2a6de9(0x126)][_0x2a6de9(0x109)](_0x5d5736[_0x2a6de9(0x142)])[_0x2a6de9(0x11a)](_0x5d7190(this['dispose$']))[_0x2a6de9(0x134)](_0x2d3a5f=>{var _0x2ddec3=_0x2a6de9;const _0x528735=_0x2d3a5f[_0x2ddec3(0x102)](),_0x67b325=this[_0x2ddec3(0xf9)][_0x2ddec3(0xc7)](_0x528735);_0x67b325==null||_0x67b325[_0x2ddec3(0x15b)]();});}async[_0x4c35df(0xd4)](_0x21a59f){var _0x17cc3b=_0x4c35df;const _0x586d2a=await this[_0x17cc3b(0x108)][_0x17cc3b(0xc6)](_0x21a59f),_0x224ef1=this[_0x17cc3b(0x14b)]['createInstance'](C,_0x21a59f,_0x586d2a);return _0x224ef1[_0x17cc3b(0xfb)](),this[_0x17cc3b(0xf9)][_0x17cc3b(0xca)](_0x21a59f,_0x224ef1),_0x224ef1;}};m=Z([f(0x0,_0x9ee18),f(0x1,_0x214de5(_0x55d5e8)),f(0x2,_0x214de5(_0xa24487))],m);var h=(_0x26ca3=>(_0x26ca3['OFFLINE']='offline',_0x26ca3[_0x4c35df(0x11e)]=_0x4c35df(0x149),_0x26ca3['FOLLOWING']='following',_0x26ca3[_0x4c35df(0xd5)]=_0x4c35df(0xfd),_0x26ca3['PRESENTING']='presenting',_0x26ca3))(h||{});const xe=_0x4c35df(0x119),Le=0xc8;let C=class extends _0x49bb96{constructor(_0x1586d2,_0x44434f,_0x5291e9,_0x113f43,_0x10941e){var _0xa13121=_0x4c35df;super(),d(this,_0xa13121(0x10b),new _0x2822eb('idle')),d(this,_0xa13121(0x114),this[_0xa13121(0x10b)]['asObservable']()),d(this,_0xa13121(0xb6),!0x1),d(this,_0xa13121(0x113),null),d(this,_0xa13121(0xb1),null),(this[_0xa13121(0x130)]=_0x1586d2,this[_0xa13121(0xf2)]=_0x44434f,this['_configService']=_0x5291e9,this['_liveShareService']=_0x113f43,this[_0xa13121(0x160)]=_0x10941e);}get[_0x4c35df(0x104)](){var _0x35ff11=_0x4c35df;return this[_0x35ff11(0x10b)][_0x35ff11(0x10d)]();}[_0x4c35df(0x15b)](){var _0x4e4167=_0x4c35df,_0x10a54d;(_0x10a54d=this[_0x4e4167(0x113)])==null||_0x10a54d[_0x4e4167(0x15b)](),this['_status$'][_0x4e4167(0x165)]('idle'),this['_status$'][_0x4e4167(0x12a)]();}[_0x4c35df(0xfb)](){var _0x43ead5=_0x4c35df;this[_0x43ead5(0xb6)]||(this[_0x43ead5(0xb6)]=!0x0,this['_collabSession'][_0x43ead5(0xbe)][_0x43ead5(0x11a)](_0x5d7190(this[_0x43ead5(0xc2)]))[_0x43ead5(0x134)](_0x2890e6=>{var _0x18592e=_0x43ead5;switch(_0x2890e6){case _0x2facc0['OFFLINE']:this[_0x18592e(0x11c)]();break;case _0x2facc0['ONLINE']:this[_0x18592e(0xcc)]();break;}}),this[_0x43ead5(0xf2)][_0x43ead5(0xd1)][_0x43ead5(0x11a)](_0x5d7190(this[_0x43ead5(0xc2)]))[_0x43ead5(0x134)](_0x35cd43=>{var _0x442da9=_0x43ead5;const {eventID:_0x3151ae}=_0x35cd43;switch(_0x3151ae){case _0x586cf6['LIVESHARE_NEW_HOST']:this[_0x442da9(0xb5)](_0x35cd43);break;case _0x586cf6['LIVESHARE_OPERATION']:this['_handleOperation'](_0x35cd43);break;case _0x586cf6[_0x442da9(0xbb)]:this['_handleTerminate']();break;case _0x586cf6[_0x442da9(0xde)]:this[_0x442da9(0x164)](_0x35cd43);break;}}));}[_0x4c35df(0xe0)](){var _0x2a04fe=_0x4c35df;this[_0x2a04fe(0xf2)][_0x2a04fe(0xbf)]({'eventID':_0x586cf6[_0x2a04fe(0x12d)],'data':{'unitID':this[_0x2a04fe(0x130)],'userID':this[_0x2a04fe(0xf2)][_0x2a04fe(0x14d)]()}},this['_unitID']);}['stopPresenting'](){var _0x350a84=_0x4c35df;this[_0x350a84(0x104)]==='presenting'&&(this['_status$'][_0x350a84(0x165)](_0x350a84(0x149)),this[_0x350a84(0xf2)][_0x350a84(0xbf)]({'eventID':_0x586cf6[_0x350a84(0xbb)],'data':{'unitID':this[_0x350a84(0x130)]}},this['_unitID']));}[_0x4c35df(0xd2)](){var _0x4a8c49=_0x4c35df;this[_0x4a8c49(0x104)]==='not-following'&&(this['_status$'][_0x4a8c49(0x165)]('following'),this[_0x4a8c49(0x11b)]());}[_0x4c35df(0x112)](){var _0x3a7c5e=_0x4c35df;this[_0x3a7c5e(0x104)]===_0x3a7c5e(0xf6)&&this['_stopFollowing']();}[_0x4c35df(0xb5)](_0x117ea7){var _0x3ecd09=_0x4c35df;const {presenter:_0x22d416}=_0x117ea7[_0x3ecd09(0x150)],_0x1b88d8=this['_collabSession'][_0x3ecd09(0x14d)]();this[_0x3ecd09(0xb1)]=_0x22d416,_0x22d416===_0x1b88d8?(this[_0x3ecd09(0xf4)](),this[_0x3ecd09(0xb2)]()):this[_0x3ecd09(0x104)]!==_0x3ecd09(0xfd)&&(this['_stopPresenting'](),this[_0x3ecd09(0x11b)]());}[_0x4c35df(0xeb)](){var _0x205b5a=_0x4c35df;const _0x336264={'eventID':_0x586cf6[_0x205b5a(0x167)]};this[_0x205b5a(0xf2)][_0x205b5a(0xbf)](_0x336264,this['_unitID']);}[_0x4c35df(0xea)](){var _0x1d47d5=_0x4c35df;this[_0x1d47d5(0xb1)]=null,this[_0x1d47d5(0x104)]!==_0x1d47d5(0x120)&&this[_0x1d47d5(0x106)]();}['_handleNewChangeSets'](_0x341474){var _0x5a213b=_0x4c35df;if(this[_0x5a213b(0x104)]===_0x5a213b(0xf6)&&this['_presenter']===_0x341474[_0x5a213b(0x150)][_0x5a213b(0x122)]){const _0x35bf03=_0xb08ef(_0x341474[_0x5a213b(0x150)])[_0x5a213b(0x127)][_0x5a213b(0xcb)]()['find'](_0x5b75cb=>_0x5b75cb['id']===_0x5b4069['id']);if(_0x35bf03){const _0x2236e6=_0x35bf03[_0x5a213b(0xd7)][_0x5a213b(0x123)],_0x409bd5=_0x35bf03[_0x5a213b(0xd7)][_0x5a213b(0xf7)]['id'];setTimeout(()=>{var _0x3e05fc=_0x5a213b;this['_commandService'][_0x3e05fc(0x111)](_0x5b6936['id'],{'unitId':_0x2236e6,'subUnitId':_0x409bd5},{'fromCollab':!0x0});});}}}[_0x4c35df(0xb2)](){var _0x5e1871=_0x4c35df;this[_0x5e1871(0x10b)][_0x5e1871(0x165)]('presenting');const _0x397318=new Map(),_0x3a632b=this[_0x5e1871(0x113)]=new _0x457240();_0x3a632b[_0x5e1871(0x101)](_0x5cf8b6(()=>{var _0x4d8969=_0x5e1871;_0x397318['forEach'](_0x2ba3aa=>_0x2ba3aa[_0x4d8969(0x12a)]()),_0x397318['clear']();})),_0x3a632b[_0x5e1871(0x101)](this[_0x5e1871(0x160)][_0x5e1871(0x10c)](_0x191951=>{var _0x4dec3e=_0x5e1871,_0x48c14e;if(_0x191951[_0x4dec3e(0xb4)]!==_0x4dd41a[_0x4dec3e(0x107)]||!this[_0x4dec3e(0xd8)][_0x4dec3e(0xc8)](_0x191951['id']))return;const {id:_0x5d75ce}=_0x191951;let _0x4f901e;_0x397318[_0x4dec3e(0x10f)](_0x5d75ce)?_0x4f901e=_0x397318[_0x4dec3e(0xc7)](_0x5d75ce):(_0x4f901e=new _0x5d5dbf(),_0x397318[_0x4dec3e(0xca)](_0x5d75ce,_0x4f901e),_0x4f901e[_0x4dec3e(0x11a)](_0xc2d5a7((_0x48c14e=this[_0x4dec3e(0x12f)][_0x4dec3e(0xc9)](xe))!=null?_0x48c14e:Le,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4dec3e(0x134)](_0x5364a9=>{var _0x19a7c8=_0x4dec3e;this['_collabSession'][_0x19a7c8(0xbf)]({'eventID':_0x586cf6[_0x19a7c8(0x144)],'data':{'unitID':this[_0x19a7c8(0x130)],'operations':{[_0x5364a9['id']]:{'id':_0x5364a9['id'],'params':JSON[_0x19a7c8(0x13f)](_0x5364a9[_0x19a7c8(0xd7)])}}}},this[_0x19a7c8(0x130)]);})),_0x4f901e['next'](_0x191951);})),this[_0x5e1871(0xd8)][_0x5e1871(0x159)](this['_unitID'])['forEach'](_0x19cd53=>this[_0x5e1871(0xf2)][_0x5e1871(0xbf)]({'eventID':_0x586cf6[_0x5e1871(0x144)],'data':{'unitID':this[_0x5e1871(0x130)],'operations':{[_0x19cd53['id']]:{'id':_0x19cd53['id'],'params':JSON['stringify'](_0x19cd53[_0x5e1871(0xd7)])}}}},this['_unitID']));}[_0x4c35df(0x13a)](){var _0x1deb5d=_0x4c35df,_0x4ab702;this['_status$'][_0x1deb5d(0x165)](_0x1deb5d(0x149)),(_0x4ab702=this[_0x1deb5d(0x113)])==null||_0x4ab702[_0x1deb5d(0x15b)](),this[_0x1deb5d(0x113)]=null;}['_startFollowing'](){var _0xb858ed=_0x4c35df,_0x1c5f32;(_0x1c5f32=this[_0xb858ed(0x113)])==null||_0x1c5f32['dispose'](),this[_0xb858ed(0x10b)][_0xb858ed(0x165)](_0xb858ed(0xf6));}[_0x4c35df(0x106)](){var _0x4185ee=_0x4c35df,_0x5e3069;this[_0x4185ee(0x10b)][_0x4185ee(0x165)](_0x4185ee(0x149)),(_0x5e3069=this[_0x4185ee(0x113)])==null||_0x5e3069['dispose'](),this[_0x4185ee(0x113)]=null;}[_0x4c35df(0xf4)](){var _0x3ae03d=_0x4c35df,_0x267ee9;this[_0x3ae03d(0x10b)][_0x3ae03d(0x165)](_0x3ae03d(0xfd)),(_0x267ee9=this[_0x3ae03d(0x113)])==null||_0x267ee9['dispose']();}['_handleOperation'](_0x58878c){var _0x2cefc9=_0x4c35df;if([_0x2cefc9(0x120),'not-following',_0x2cefc9(0x103)][_0x2cefc9(0x139)](this[_0x2cefc9(0x104)])||!_0x58878c['data'][_0x2cefc9(0x136)]||_0x58878c[_0x2cefc9(0x150)][_0x2cefc9(0x136)]===this[_0x2cefc9(0xf2)]['getMemberID']())return;this[_0x2cefc9(0x104)]==='idle'&&this[_0x2cefc9(0x11b)]();const _0x3ccfb9=_0x58878c['data'][_0x2cefc9(0xf5)];Object[_0x2cefc9(0x125)](_0x3ccfb9)[_0x2cefc9(0x135)](_0x445746=>{var _0xd34acf=_0x2cefc9;this[_0xd34acf(0x160)][_0xd34acf(0x111)](_0x445746['id'],_0x445746[_0xd34acf(0xd7)]?JSON[_0xd34acf(0xf8)](_0x445746[_0xd34acf(0xd7)]):null,{'fromCollab':!0x0});});}[_0x4c35df(0x11c)](){var _0x78934a=_0x4c35df,_0x154627;this[_0x78934a(0x10b)][_0x78934a(0x165)](_0x78934a(0x103)),(_0x154627=this[_0x78934a(0x113)])==null||_0x154627['dispose']();}[_0x4c35df(0xcc)](){var _0x53759b=_0x4c35df;this[_0x53759b(0x10b)][_0x53759b(0x165)](_0x53759b(0x149)),this['_fetchOperations']();}};C=Z([f(0x2,_0x596770),f(0x3,_0x214de5(L)),f(0x4,_0x49ea3a)],C);function ye(){var _0x557853=_0x4c35df;const _0x567677=_0x595204(m),_0x337a72=_0x595204(_0x9ee18),_0x46d938=_0xc95284(()=>_0x337a72[_0x557853(0xe8)](_0x5d5736[_0x557853(0x142)]),void 0x0,!0x1,[]),[_0x1086c1,_0x562109]=_0xbbc3fb(null),[_0x327e3b,_0x296b5d]=_0xbbc3fb(h[_0x557853(0x11e)]),_0x393962=_0x266191(null);return _0x13fae4(()=>(_0x46d938&&_0x567677[_0x557853(0xef)](_0x46d938['getUnitId']())[_0x557853(0x14c)](_0x182736=>{var _0x7fba0a=_0x557853;_0x562109(_0x182736),_0x393962[_0x7fba0a(0xec)]=_0x182736['status$'][_0x7fba0a(0x134)](_0x330193=>{_0x296b5d(_0x330193);});}),()=>{var _0x726587=_0x557853,_0x1ba210;(_0x1ba210=_0x393962[_0x726587(0xec)])==null||_0x1ba210[_0x726587(0xe1)](),_0x393962[_0x726587(0xec)]=null;}),[_0x46d938,_0x567677]),_0x1086c1?_0x29fd32(_0x380dce,{'align':_0x557853(0x140),'disabled':_0x327e3b===h[_0x557853(0x110)],'className':_0x557853(0x137),'overlay':_0x29fd32(Re,{'status':_0x327e3b,'coordinator':_0x1086c1}),'children':_0x29fd32('button',{'className':_0x1613e6(_0x557853(0x124),{'univer-cursor-not-allowed':_0x327e3b===h[_0x557853(0x110)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x327e3b!==h[_0x557853(0x110)]}),'type':_0x557853(0x14a),'children':_0x29fd32(B,{'className':_0x557853(0x15c)})})}):null;}function Re(_0x18e12d){var _0x2483cf=_0x4c35df;const {status:_0x2058e7,coordinator:_0x1e5028}=_0x18e12d;switch(_0x2058e7){case h[_0x2483cf(0x11e)]:return _0x29fd32(Pe,{'coordinator':_0x1e5028});case h[_0x2483cf(0xb3)]:return _0x29fd32(Ae,{'coordinator':_0x1e5028});case h[_0x2483cf(0xd5)]:return _0x29fd32(Te,{'coordinator':_0x1e5028});case h[_0x2483cf(0x110)]:return _0x29fd32(Fe,{});case h['PRESENTING']:return _0x29fd32($e,{'coordinator':_0x1e5028});default:return null;}}function Pe(_0x121a9a){var _0x3d3729=_0x4c35df;const {coordinator:_0x544c28}=_0x121a9a;return _0x3cea35(_0x187468,{'children':[_0x29fd32(_0x3d3729(0x147),{'className':_0x3d3729(0x13d),'children':_0x3d3729(0x161)}),_0x29fd32(_0x5c5ef5,{'onClick':()=>_0x544c28[_0x3d3729(0xe0)](),'children':_0x3d3729(0xc3)})]});}function Ae(_0x594e23){var _0x27031a=_0x4c35df;const {coordinator:_0x4518de}=_0x594e23;return _0x3cea35(_0x187468,{'children':[_0x29fd32(_0x27031a(0x147),{'className':_0x27031a(0x13d),'children':_0x27031a(0xb9)}),_0x29fd32(_0x5c5ef5,{'onClick':()=>_0x4518de['stopFollowing'](),'children':_0x27031a(0xdb)})]});}function Te(_0xbb026d){var _0x49b7e5=_0x4c35df;const {coordinator:_0x5034de}=_0xbb026d;return _0x3cea35(_0x187468,{'children':[_0x29fd32(_0x49b7e5(0x147),{'className':_0x49b7e5(0x13d),'children':_0x49b7e5(0x158)}),_0x29fd32(_0x5c5ef5,{'variant':_0x49b7e5(0x14f),'onClick':()=>_0x5034de[_0x49b7e5(0xd2)](),'children':_0x49b7e5(0x11d)})]});}function $e(_0x4c0556){var _0x2bf205=_0x4c35df;const {coordinator:_0x467e22}=_0x4c0556;return _0x3cea35(_0x187468,{'children':[_0x29fd32(_0x2bf205(0x147),{'className':_0x2bf205(0x13d),'children':_0x2bf205(0xd9)}),_0x29fd32(_0x5c5ef5,{'variant':_0x2bf205(0xfa),'onClick':()=>_0x467e22[_0x2bf205(0x11f)](),'children':_0x2bf205(0xbc)})]});}function Fe(){var _0x2a1718=_0x4c35df;return _0x29fd32(_0x187468,{'children':_0x2a1718(0xbd)});}var He=Object[_0x4c35df(0x153)],je=(_0x5150ca,_0x919795,_0x12ba96,_0x14d82c)=>{var _0x1daf1a=_0x4c35df;for(var _0x41faa1=_0x14d82c>0x1?void 0x0:_0x14d82c?He(_0x919795,_0x12ba96):_0x919795,_0x4fab83=_0x5150ca[_0x1daf1a(0x148)]-0x1,_0x16607a;_0x4fab83>=0x0;_0x4fab83--)(_0x16607a=_0x5150ca[_0x4fab83])&&(_0x41faa1=_0x16607a(_0x41faa1)||_0x41faa1);return _0x41faa1;},T=(_0x26802a,_0x3b6b41)=>(_0x5d294e,_0x32e091)=>_0x3b6b41(_0x5d294e,_0x32e091,_0x26802a);let I=class extends _0x1f1ed5{constructor(_0xbb31d4,_0x487fbb){var _0x2e276f=_0x4c35df;super(),this['_injector']=_0xbb31d4,this[_0x2e276f(0xe9)]=_0x487fbb,this[_0x2e276f(0x10e)]();}[_0x4c35df(0x10e)](){var _0x523820=_0x4c35df;this[_0x523820(0xc1)](this['_uiPartsService'][_0x523820(0x14e)](_0x38120b[_0x523820(0xc0)],()=>_0x5368f4(ye,this[_0x523820(0x14b)])));}};I=je([T(0x0,_0x214de5(_0x55d5e8)),T(0x1,_0x868a60)],I);const Ue=_0x4c35df(0xd3),$={};var Ve=Object[_0x4c35df(0x153)],Me=(_0x452522,_0xc1f363,_0xb0bd29,_0x39ac42)=>{var _0x4f48a9=_0x4c35df;for(var _0x1b8f96=_0x39ac42>0x1?void 0x0:_0x39ac42?Ve(_0xc1f363,_0xb0bd29):_0xc1f363,_0x3a52ed=_0x452522[_0x4f48a9(0x148)]-0x1,_0x1e3042;_0x3a52ed>=0x0;_0x3a52ed--)(_0x1e3042=_0x452522[_0x3a52ed])&&(_0x1b8f96=_0x1e3042(_0x1b8f96)||_0x1b8f96);return _0x1b8f96;},ke=(_0x3a84d9,_0x5d6826)=>(_0x41a159,_0x8f3c4f)=>_0x5d6826(_0x41a159,_0x8f3c4f,_0x3a84d9);let b=class extends _0x1f1ed5{constructor(_0x1ec0da){var _0x396fe5=_0x4c35df;super(),this[_0x396fe5(0xd8)]=_0x1ec0da,this[_0x396fe5(0xb6)]();}[_0x4c35df(0xb6)](){var _0x4d4aac=_0x4c35df;[_0x548d0f['id'],_0x50482e['id'],_0x5b6936['id']][_0x4d4aac(0x135)](_0x36521d=>{var _0x2625d2=_0x4d4aac;this[_0x2625d2(0xc1)](this[_0x2625d2(0xd8)][_0x2625d2(0x166)](_0x36521d));});}};b=Me([ke(0x0,_0x214de5(L))],b);var Ge=Object['defineProperty'],We=Object[_0x4c35df(0x153)],Ye=(_0x384ebc,_0x41cf71,_0x5932ed)=>_0x41cf71 in _0x384ebc?Ge(_0x384ebc,_0x41cf71,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5932ed}):_0x384ebc[_0x41cf71]=_0x5932ed,Be=(_0x4079c4,_0x3507b1,_0x519a82,_0x327d81)=>{for(var _0x28207c=_0x327d81>0x1?void 0x0:_0x327d81?We(_0x3507b1,_0x519a82):_0x3507b1,_0x355ff8=_0x4079c4['length']-0x1,_0x1d68b3;_0x355ff8>=0x0;_0x355ff8--)(_0x1d68b3=_0x4079c4[_0x355ff8])&&(_0x28207c=_0x1d68b3(_0x28207c)||_0x28207c);return _0x28207c;},F=(_0x4cf3c2,_0x1db7c1)=>(_0x3dd3d8,_0x46c2b9)=>_0x1db7c1(_0x3dd3d8,_0x46c2b9,_0x4cf3c2),J=(_0x510819,_0x2c86c5,_0x1edac1)=>Ye(_0x510819,typeof _0x2c86c5!=_0x4c35df(0x141)?_0x2c86c5+'':_0x2c86c5,_0x1edac1);const Ze=_0x4c35df(0x105);let O=class extends _0xca36d6{constructor(_0x405d03=$,_0x45b987,_0x15fe92){var _0x5a7562=_0x4c35df;super(),this[_0x5a7562(0x117)]=_0x405d03,this[_0x5a7562(0x14b)]=_0x45b987,this[_0x5a7562(0x12f)]=_0x15fe92;const {..._0xa87cec}=_0x49df5f({},$,this[_0x5a7562(0x117)]);this[_0x5a7562(0x12f)][_0x5a7562(0x15f)](Ue,_0xa87cec);}[_0x4c35df(0x168)](){var _0x40c698=_0x4c35df;_0x161788(this[_0x40c698(0x14b)],_0x265c97([[L],[m],[b],[I]],this[_0x40c698(0x117)][_0x40c698(0xfe)])),_0x58f08e(this[_0x40c698(0x14b)],[[b]]);}[_0x4c35df(0x162)](){var _0x559feb=_0x4c35df;_0x58f08e(this[_0x559feb(0x14b)],[[I]]);}};J(O,_0x4c35df(0xb4),_0x5d5736['UNIVER_UNKNOWN']),J(O,_0x4c35df(0x118),Ze),O=Be([_0x13c7bc(_0x5f57c7),F(0x1,_0x214de5(_0x55d5e8)),F(0x2,_0x596770)],O);export{I as DesktopLiveShareController,ye as LiveShare,m as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './global.css';
|
|
2
|
+
export type { IUniverLiveShareConfig } from './controllers/config.schema';
|
|
3
|
+
export { DesktopLiveShareController } from './controllers/live-share/live-share-ui.controller';
|
|
4
|
+
export { LiveShareController, LiveShareCoordinator, LiveShareStatus } from './controllers/live-share/live-share.controller';
|
|
2
5
|
export { UniverLiveSharePlugin } from './plugin';
|
|
3
|
-
export { LiveShare } from './views/components/LiveShare';
|
|
4
6
|
export { LiveShareService } from './services/live-share.service';
|
|
5
|
-
export {
|
|
6
|
-
export { DesktopLiveShareController } from './controllers/live-share/live-share-ui.controller';
|
|
7
|
-
export type { IUniverLiveShareConfig } from './controllers/config.schema';
|
|
7
|
+
export { LiveShare } from './views/components/LiveShare';
|
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 _0x4ca0(){var _0x422011=['3872XvFaQd','none','type','_startPresenting','replace','init','jsxs','216XMjFos','concat','set','registerSharedOperation','_beIdle','string','merge','Button','defIds','LIVESHARE_OPERATION','idSuffix','unsubscribe','assign','button','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','override','takeUntil','_handleOnline','UniverUi','subscribe','mutations','className','_liveShareService','getOwnPropertySymbols','UniverCollaborationClientPlugin','_commandDisposable','_uiPartsService','LIVESHARE_NEW_HOST','data','jsx','xlink:href','_reporters','LiveShareController','getValue','useEffect','requireSession','substring','end','get','extend','function','mask','parseProtocolChangeset','getTypeOfUnitAdded$','length','live-share-icon','UNIVER_UNKNOWN','_injector','object','operators','div','not-following','from','BehaviorSubject','delete','getCurrentTypeOfUnit$','UniverDesign','disposeWithMe','text','rxjs','OFFLINE','IDLE','useDependency','You\x27are\x20offline.','_collabSessionService','@univerjs-pro/collaboration-client','DisposableCollection','28XgYlzE','_init','evenodd','apply','@univerjs-pro/collaboration','BuiltInUIPart','toStringTag','CommandType','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','getConfig','SessionStatus','SetWorksheetActiveOperation','@univerjs/design','reverse','RxDisposable','@univerjs/core','useState','displayName','includes','Disposable','createInstance','UNIVER_SHEET','Start','LiveShareService','amd','getTypeOfUnitDisposed$','_collabSession','7627sJIbxy','_entities','registerComponent','toDisposable','35HIQuUG','entries','forEach','icon','getLiveShareCoordinator','stringify','_univerInstanceService','@univerjs/sheets-ui','currentColor','createElement','LiveShareIcon','UniverSheetsUi','following','current','1482VUfUuX','_status$','url(#$1','IUniverInstanceService','throttleTime','_fetchOperations','InsertSheetMutation','_mountLiveShare','38635vsFMjj','29307694djxppv','path','defs','_status','call','dispose$','@univerjs/ui','use','event$','memberID','next','trim','FOLLOWING','_sharedOperations','ONLINE','814990yoPpqL','add','pluginName','stopPresenting','You\x27re\x20not\x20following\x20the\x20presenter','_config','default','react','onStarting','prototype','React','tag','react/jsx-runtime','_commandService','LiveShareStatus','stopFollowing','LIVESHARE_FETCH_OPERATIONS','ICommandService','Inject','Start\x20following','UniverProLiveShare','You\x27re\x20presenting\x20the\x20document','univer-mb-3\x20univer-w-full\x20univer-text-sm','pipe','LIVESHARE_REQUEST_HOST','presenting','4182VNbqHd','colorChannel1','rxjs/operators','10hbJJaJ','_handleTerminate','_handleNewHost','status$','indexOf','_presenter','UniverProCollaborationClient','UniverIcon','0\x200\x2017\x2017','_startFollowing','2880711WmGPtq','1697992OwLITn','defineProperty','sheet','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','idle','mergeOverrideWithDependencies','Injector','UniverProCollaboration','CollaborationEvent','NOT_FOLLOWING','tryStartPresenting','toString','useRef','You\x27re\x20following\x20the\x20presenter','send','has','propertyIsEnumerable','presenter','useObservable','shouldShareOperation','_configService','HEADER_MENU','_stopFollowing','sessionStatus$','UniverSheets','_handleNewChangeSets','dispose','symbol','fill','1em','UniverCore','PRESENTING','getOwnPropertyDescriptor','params','forwardRef','clear','NEW_CHANGESETS','SAME_OPERATION_SHARE_INTERVAL','getInitialStates','random','registerInitialStateReporter','_handleOperation','attrs','_unitID','parse','map','children','Dropdown','onCommandExecuted','getUnitId','find','UniverInstanceType','LiveShare','DesktopLiveShareController','LiveShareCoordinator','@univerjs/sheets','_stopPresenting','hasOwnProperty','touchDependencies','LIVESHARE_TERMINATE','asObservable','complete','_handleOffline','IConfigService','executeCommand','UniverLiveSharePlugin'];_0x4ca0=function(){return _0x422011;};return _0x4ca0();}function _0x3c54(_0x43d5cc,_0x4a9709){var _0x4ca09f=_0x4ca0();return _0x3c54=function(_0x3c5470,_0x2aad37){_0x3c5470=_0x3c5470-0x17a;var _0x2357e5=_0x4ca09f[_0x3c5470];return _0x2357e5;},_0x3c54(_0x43d5cc,_0x4a9709);}(function(_0x1593e8,_0x796518){var _0x45a6f3=_0x3c54,_0x591038=_0x1593e8();while(!![]){try{var _0x412758=parseInt(_0x45a6f3(0x205))/0x1*(-parseInt(_0x45a6f3(0x1ea))/0x2)+-parseInt(_0x45a6f3(0x249))/0x3*(parseInt(_0x45a6f3(0x1a0))/0x4)+-parseInt(_0x45a6f3(0x21f))/0x5*(parseInt(_0x45a6f3(0x217))/0x6)+parseInt(_0x45a6f3(0x209))/0x7*(parseInt(_0x45a6f3(0x257))/0x8)+-parseInt(_0x45a6f3(0x256))/0x9*(parseInt(_0x45a6f3(0x24c))/0xa)+parseInt(_0x45a6f3(0x22f))/0xb*(parseInt(_0x45a6f3(0x1a7))/0xc)+parseInt(_0x45a6f3(0x220))/0xd;if(_0x412758===_0x796518)break;else _0x591038['push'](_0x591038['shift']());}catch(_0x2d076d){_0x591038['push'](_0x591038['shift']());}}}(_0x4ca0,0xeb785),function(_0x5906ec,_0x17289e){var _0x505b39=_0x3c54;typeof exports==_0x505b39(0x1d7)&&typeof module<'u'?_0x17289e(exports,require('@univerjs/core'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('@univerjs-pro/collaboration-client'),require('@univerjs/sheets'),require('rxjs'),require('rxjs/operators'),require('@univerjs/sheets-ui')):typeof define=='function'&&define[_0x505b39(0x202)]?define(['exports',_0x505b39(0x1f9),_0x505b39(0x226),_0x505b39(0x23b),_0x505b39(0x1f6),_0x505b39(0x236),_0x505b39(0x1ee),_0x505b39(0x1e8),_0x505b39(0x195),'rxjs',_0x505b39(0x24b),_0x505b39(0x210)],_0x17289e):(_0x5906ec=typeof globalThis<'u'?globalThis:_0x5906ec||self,_0x17289e(_0x5906ec[_0x505b39(0x243)]={},_0x5906ec[_0x505b39(0x17c)],_0x5906ec[_0x505b39(0x1b9)],_0x5906ec['React'],_0x5906ec[_0x505b39(0x1df)],_0x5906ec[_0x505b39(0x239)],_0x5906ec[_0x505b39(0x25e)],_0x5906ec[_0x505b39(0x252)],_0x5906ec[_0x505b39(0x26f)],_0x5906ec[_0x505b39(0x1e2)],_0x5906ec['rxjs'][_0x505b39(0x1d8)],_0x5906ec[_0x505b39(0x214)]));}(this,function(_0x482a46,_0x211bdc,_0x291554,_0x1de521,_0x222549,_0x20f459,_0x4d84ad,_0x3f8726,_0x44862f,_0x40138b,_0x4d74bf,_0x593c0b){'use strict';var _0x17d40a=_0x3c54;var _0x1878bf=Object[_0x17d40a(0x258)],_0x594409=(_0x98742e,_0x2b08b6,_0xe87f24)=>_0x2b08b6 in _0x98742e?_0x1878bf(_0x98742e,_0x2b08b6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe87f24}):_0x98742e[_0x2b08b6]=_0xe87f24,_0x1c6732=(_0x79b06f,_0x2ad597,_0xb4fcbc)=>_0x594409(_0x79b06f,typeof _0x2ad597!='symbol'?_0x2ad597+'':_0x2ad597,_0xb4fcbc),_0xa306b7=function(){var _0x4528e9=_0x17d40a;return _0xa306b7=Object[_0x4528e9(0x1b3)]||function(_0x4d8c3b){var _0x239909=_0x4528e9;for(var _0x3c9fed,_0x15a67e=0x1,_0x1bdb20=arguments[_0x239909(0x1d3)];_0x15a67e<_0x1bdb20;_0x15a67e++){_0x3c9fed=arguments[_0x15a67e];for(var _0x221121 in _0x3c9fed)Object[_0x239909(0x238)][_0x239909(0x197)][_0x239909(0x224)](_0x3c9fed,_0x221121)&&(_0x4d8c3b[_0x221121]=_0x3c9fed[_0x221121]);}return _0x4d8c3b;},_0xa306b7[_0x4528e9(0x1ed)](this,arguments);},_0x45c12f=function(_0x32f8e0,_0x595976){var _0x2ac883=_0x17d40a,_0x42f328={};for(var _0x5612e2 in _0x32f8e0)Object['prototype'][_0x2ac883(0x197)][_0x2ac883(0x224)](_0x32f8e0,_0x5612e2)&&_0x595976[_0x2ac883(0x250)](_0x5612e2)<0x0&&(_0x42f328[_0x5612e2]=_0x32f8e0[_0x5612e2]);if(_0x32f8e0!=null&&typeof Object[_0x2ac883(0x1be)]==_0x2ac883(0x1cf)){for(var _0x4f591e=0x0,_0x5612e2=Object[_0x2ac883(0x1be)](_0x32f8e0);_0x4f591e<_0x5612e2[_0x2ac883(0x1d3)];_0x4f591e++)_0x595976[_0x2ac883(0x250)](_0x5612e2[_0x4f591e])<0x0&&Object[_0x2ac883(0x238)][_0x2ac883(0x267)][_0x2ac883(0x224)](_0x32f8e0,_0x5612e2[_0x4f591e])&&(_0x42f328[_0x5612e2[_0x4f591e]]=_0x32f8e0[_0x5612e2[_0x4f591e]]);}return _0x42f328;},_0x2f58c6=_0x20f459[_0x17d40a(0x180)](function(_0x806632,_0x262f61){var _0x1c0ed4=_0x17d40a,_0x2aab8d=_0x806632[_0x1c0ed4(0x20c)],_0x3e69d3=_0x806632['id'],_0x3536a6=_0x806632[_0x1c0ed4(0x1bc)],_0xdb495b=_0x806632[_0x1c0ed4(0x1ce)],_0x4f2247=_0x45c12f(_0x806632,['icon','id','className',_0x1c0ed4(0x1ce)]),_0x563379='univerjs-icon\x20univerjs-icon-'[_0x1c0ed4(0x1a8)](_0x3e69d3,'\x20')[_0x1c0ed4(0x1a8)](_0x3536a6||'')[_0x1c0ed4(0x22b)](),_0x4e12e6=_0x20f459[_0x1c0ed4(0x263)]('_'[_0x1c0ed4(0x1a8)](_0x486771()));return _0x5e5172(_0x2aab8d,''['concat'](_0x3e69d3),{'defIds':_0x2aab8d['defIds'],'idSuffix':_0x4e12e6['current']},_0xa306b7({'ref':_0x262f61,'className':_0x563379},_0x4f2247),_0xdb495b);});function _0x5e5172(_0xb789c7,_0xe3e060,_0x3dceb4,_0x3456a2,_0x18f00f){var _0x2d5724=_0x17d40a;return _0x20f459[_0x2d5724(0x212)](_0xb789c7['tag'],_0xa306b7(_0xa306b7({'key':_0xe3e060},_0x46ecce(_0xb789c7,_0x3dceb4,_0x18f00f)),_0x3456a2),(_0x3706c8(_0xb789c7,_0x3dceb4)[_0x2d5724(0x18c)]||[])['map'](function(_0x166485,_0x3f7e03){var _0x3760da=_0x2d5724;return _0x5e5172(_0x166485,''[_0x3760da(0x1a8)](_0xe3e060,'-')[_0x3760da(0x1a8)](_0xb789c7['tag'],'-')['concat'](_0x3f7e03),_0x3dceb4,void 0x0,_0x18f00f);}));}function _0x46ecce(_0x1d8fbd,_0x4a68c8,_0x48d61b){var _0x8ae92a=_0x17d40a,_0x2a6ad4=_0xa306b7({},_0x1d8fbd['attrs']);_0x48d61b!=null&&_0x48d61b[_0x8ae92a(0x24a)]&&_0x2a6ad4[_0x8ae92a(0x17a)]===_0x8ae92a(0x24a)&&(_0x2a6ad4['fill']=_0x48d61b[_0x8ae92a(0x24a)]),_0x1d8fbd[_0x8ae92a(0x23a)]==='mask'&&_0x2a6ad4['id']&&(_0x2a6ad4['id']=_0x2a6ad4['id']+_0x4a68c8[_0x8ae92a(0x1b1)]),Object[_0x8ae92a(0x20a)](_0x2a6ad4)[_0x8ae92a(0x20b)](function(_0x49fac3){var _0x547b39=_0x8ae92a,_0x1d1ac6=_0x49fac3[0x0],_0x3ea35a=_0x49fac3[0x1];_0x1d1ac6===_0x547b39(0x1d0)&&typeof _0x3ea35a=='string'&&(_0x2a6ad4[_0x1d1ac6]=_0x3ea35a['replace'](/url\(#(.*)\)/,_0x547b39(0x219)[_0x547b39(0x1a8)](_0x4a68c8['idSuffix'],')')));});var _0x3a1ad0=_0x4a68c8[_0x8ae92a(0x1af)];return!_0x3a1ad0||_0x3a1ad0[_0x8ae92a(0x1d3)]===0x0||(_0x1d8fbd['tag']===_0x8ae92a(0x227)&&_0x2a6ad4[_0x8ae92a(0x1c5)]&&(_0x2a6ad4[_0x8ae92a(0x1c5)]=_0x2a6ad4[_0x8ae92a(0x1c5)]+_0x4a68c8['idSuffix']),Object[_0x8ae92a(0x20a)](_0x2a6ad4)[_0x8ae92a(0x20b)](function(_0x24f83c){var _0x4c9653=_0x8ae92a,_0xae7da6=_0x24f83c[0x0],_0x277f99=_0x24f83c[0x1];typeof _0x277f99==_0x4c9653(0x1ac)&&(_0x2a6ad4[_0xae7da6]=_0x277f99[_0x4c9653(0x1a4)](/url\(#(.*)\)/,_0x4c9653(0x219)['concat'](_0x4a68c8[_0x4c9653(0x1b1)],')')));})),_0x2a6ad4;}function _0x3706c8(_0x237b2d,_0x173d95){var _0x31651e=_0x17d40a,_0x3044eb,_0x5605fe=_0x173d95['defIds'];return!_0x5605fe||_0x5605fe['length']===0x0?_0x237b2d:_0x237b2d['tag']===_0x31651e(0x222)&&(!((_0x3044eb=_0x237b2d['children'])===null||_0x3044eb===void 0x0)&&_0x3044eb[_0x31651e(0x1d3)])?_0xa306b7(_0xa306b7({},_0x237b2d),{'children':_0x237b2d[_0x31651e(0x18c)][_0x31651e(0x18b)](function(_0x4b45af){var _0x2d2088=_0x31651e;return typeof _0x4b45af['attrs']['id']==_0x2d2088(0x1ac)&&_0x5605fe&&_0x5605fe[_0x2d2088(0x1fc)](_0x4b45af[_0x2d2088(0x188)]['id'])?_0xa306b7(_0xa306b7({},_0x4b45af),{'attrs':_0xa306b7(_0xa306b7({},_0x4b45af[_0x2d2088(0x188)]),{'id':_0x4b45af[_0x2d2088(0x188)]['id']+_0x173d95['idSuffix']})}):_0x4b45af;})}):_0x237b2d;}function _0x486771(){var _0x16fc16=_0x17d40a;return Math[_0x16fc16(0x185)]()[_0x16fc16(0x262)](0x24)[_0x16fc16(0x1cb)](0x2,0x8);}_0x2f58c6[_0x17d40a(0x1fb)]=_0x17d40a(0x253);var _0x2a9b4a={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x17d40a(0x1a1),'viewBox':_0x17d40a(0x254),'width':'1em','height':_0x17d40a(0x17b)},'children':[{'tag':_0x17d40a(0x221),'attrs':{'fill':_0x17d40a(0x211),'d':_0x17d40a(0x1b5)}},{'tag':_0x17d40a(0x221),'attrs':{'fill':_0x17d40a(0x211),'d':_0x17d40a(0x25a),'fillRule':_0x17d40a(0x1ec),'clipRule':_0x17d40a(0x1ec)}}]},_0x3a6396=_0x20f459[_0x17d40a(0x180)](function(_0x3f6662,_0x67d1d4){var _0x13b25f=_0x17d40a;return _0x20f459[_0x13b25f(0x212)](_0x2f58c6,Object[_0x13b25f(0x1b3)]({},_0x3f6662,{'id':_0x13b25f(0x1d4),'ref':_0x67d1d4,'icon':_0x2a9b4a}));});_0x3a6396['displayName']=_0x17d40a(0x213);class _0x6b369a extends _0x211bdc['Disposable']{constructor(){var _0x21904b=_0x17d40a;super(...arguments),_0x1c6732(this,_0x21904b(0x22d),new Set()),_0x1c6732(this,'_reporters',new Set());}[_0x17d40a(0x1aa)](_0x482ad2){var _0x57bc17=_0x17d40a;return this[_0x57bc17(0x22d)][_0x57bc17(0x230)](_0x482ad2),_0x211bdc[_0x57bc17(0x208)](()=>this[_0x57bc17(0x22d)][_0x57bc17(0x1dd)](_0x482ad2));}[_0x17d40a(0x186)](_0x1a1ca9){var _0x118ca3=_0x17d40a;return this[_0x118ca3(0x1c6)][_0x118ca3(0x230)](_0x1a1ca9),_0x211bdc[_0x118ca3(0x208)](()=>this[_0x118ca3(0x1c6)][_0x118ca3(0x1dd)](_0x1a1ca9));}['shouldShareOperation'](_0x13fa61){var _0x2f8d7a=_0x17d40a;return this[_0x2f8d7a(0x22d)][_0x2f8d7a(0x266)](_0x13fa61);}[_0x17d40a(0x184)](_0x1a5990){var _0x2acd90=_0x17d40a;return Array[_0x2acd90(0x1db)](this[_0x2acd90(0x1c6)])[_0x2acd90(0x18b)](_0x3de5ef=>_0x3de5ef(_0x1a5990));}}var _0x8ac7b=Object[_0x17d40a(0x17e)],_0xe8ca5a=(_0x5c5663,_0x12fbc1,_0x59f03b,_0x529f89)=>{for(var _0x24c2e9=_0x529f89>0x1?void 0x0:_0x529f89?_0x8ac7b(_0x12fbc1,_0x59f03b):_0x12fbc1,_0x3adc93=_0x5c5663['length']-0x1,_0x2ccf33;_0x3adc93>=0x0;_0x3adc93--)(_0x2ccf33=_0x5c5663[_0x3adc93])&&(_0x24c2e9=_0x2ccf33(_0x24c2e9)||_0x24c2e9);return _0x24c2e9;},_0x4eb9e8=(_0x181db8,_0x451ad6)=>(_0x431903,_0x7d5a0b)=>_0x451ad6(_0x431903,_0x7d5a0b,_0x181db8);_0x482a46[_0x17d40a(0x1c7)]=class extends _0x211bdc[_0x17d40a(0x1f8)]{constructor(_0x245aa4,_0x44dad7,_0x4c1c17){var _0x17131d=_0x17d40a;super(),_0x1c6732(this,_0x17131d(0x206),new Map()),(this[_0x17131d(0x20f)]=_0x245aa4,this['_injector']=_0x44dad7,this[_0x17131d(0x1e7)]=_0x4c1c17,this[_0x17131d(0x1eb)]());}async[_0x17d40a(0x20d)](_0x34162a){var _0x42972a=_0x17d40a;return this[_0x42972a(0x206)]['has'](_0x34162a)||await this['_startLiveShareCoordinator'](_0x34162a),this[_0x42972a(0x206)]['get'](_0x34162a);}['_init'](){var _0xd8829c=_0x17d40a;this['_univerInstanceService'][_0xd8829c(0x1d2)](_0x211bdc[_0xd8829c(0x191)]['UNIVER_SHEET'])[_0xd8829c(0x246)](_0x4d74bf[_0xd8829c(0x1b7)](this[_0xd8829c(0x225)]))[_0xd8829c(0x1ba)](async _0xc7ee3a=>{var _0x217a5b=_0xd8829c;const _0xbe3f71=_0xc7ee3a[_0x217a5b(0x18f)]();this['_entities'][_0x217a5b(0x266)](_0xbe3f71)||this['_startLiveShareCoordinator'](_0xbe3f71);}),this[_0xd8829c(0x20f)][_0xd8829c(0x203)](_0x211bdc['UniverInstanceType'][_0xd8829c(0x1ff)])[_0xd8829c(0x246)](_0x4d74bf[_0xd8829c(0x1b7)](this[_0xd8829c(0x225)]))[_0xd8829c(0x1ba)](_0x4223bb=>{var _0x4c2ad5=_0xd8829c;const _0x512dac=_0x4223bb[_0x4c2ad5(0x18f)](),_0x51c8a5=this[_0x4c2ad5(0x206)]['get'](_0x512dac);_0x51c8a5==null||_0x51c8a5['dispose']();});}async['_startLiveShareCoordinator'](_0x114fbc){var _0x279cb7=_0x17d40a;const _0x1170b0=await this[_0x279cb7(0x1e7)][_0x279cb7(0x1ca)](_0x114fbc),_0x483b55=this[_0x279cb7(0x1d6)][_0x279cb7(0x1fe)](_0x482a46[_0x279cb7(0x194)],_0x114fbc,_0x1170b0);return _0x483b55[_0x279cb7(0x1a5)](),this[_0x279cb7(0x206)][_0x279cb7(0x1a9)](_0x114fbc,_0x483b55),_0x483b55;}},_0x482a46[_0x17d40a(0x1c7)]=_0xe8ca5a([_0x4eb9e8(0x0,_0x211bdc['IUniverInstanceService']),_0x4eb9e8(0x1,_0x211bdc[_0x17d40a(0x241)](_0x211bdc[_0x17d40a(0x25d)])),_0x4eb9e8(0x2,_0x211bdc[_0x17d40a(0x241)](_0x3f8726['CollaborationSessionService']))],_0x482a46[_0x17d40a(0x1c7)]);var _0x22b009=(_0x328aa0=>(_0x328aa0[_0x17d40a(0x1e3)]='offline',_0x328aa0[_0x17d40a(0x1e4)]='idle',_0x328aa0[_0x17d40a(0x22c)]=_0x17d40a(0x215),_0x328aa0[_0x17d40a(0x260)]='not-following',_0x328aa0['PRESENTING']=_0x17d40a(0x248),_0x328aa0))(_0x22b009||{});const _0x1944f8=_0x17d40a(0x183),_0xdbfc56=0xc8;_0x482a46[_0x17d40a(0x194)]=class extends _0x211bdc[_0x17d40a(0x1f8)]{constructor(_0x3ffe6f,_0x1c85b8,_0x358285,_0x5566e7,_0x51c66c){var _0x5eba2a=_0x17d40a;super(),_0x1c6732(this,'_status$',new _0x40138b[(_0x5eba2a(0x1dc))](_0x5eba2a(0x25b))),_0x1c6732(this,_0x5eba2a(0x24f),this[_0x5eba2a(0x218)][_0x5eba2a(0x19a)]()),_0x1c6732(this,_0x5eba2a(0x1eb),!0x1),_0x1c6732(this,_0x5eba2a(0x1c0),null),_0x1c6732(this,_0x5eba2a(0x251),null),(this[_0x5eba2a(0x189)]=_0x3ffe6f,this[_0x5eba2a(0x204)]=_0x1c85b8,this[_0x5eba2a(0x26b)]=_0x358285,this[_0x5eba2a(0x1bd)]=_0x5566e7,this[_0x5eba2a(0x23c)]=_0x51c66c);}get[_0x17d40a(0x223)](){var _0x14ae7b=_0x17d40a;return this[_0x14ae7b(0x218)][_0x14ae7b(0x1c8)]();}['dispose'](){var _0x4c7dd4=_0x17d40a,_0x1ff213;(_0x1ff213=this[_0x4c7dd4(0x1c0)])==null||_0x1ff213[_0x4c7dd4(0x271)](),this[_0x4c7dd4(0x218)][_0x4c7dd4(0x22a)](_0x4c7dd4(0x25b)),this[_0x4c7dd4(0x218)][_0x4c7dd4(0x19b)]();}[_0x17d40a(0x1a5)](){var _0x394e9c=_0x17d40a;this[_0x394e9c(0x1eb)]||(this[_0x394e9c(0x1eb)]=!0x0,this[_0x394e9c(0x204)][_0x394e9c(0x26e)][_0x394e9c(0x246)](_0x4d74bf[_0x394e9c(0x1b7)](this['dispose$']))['subscribe'](_0x4adb42=>{var _0x3911eb=_0x394e9c;switch(_0x4adb42){case _0x3f8726[_0x3911eb(0x1f4)][_0x3911eb(0x1e3)]:this['_handleOffline']();break;case _0x3f8726[_0x3911eb(0x1f4)][_0x3911eb(0x22e)]:this[_0x3911eb(0x1b8)]();break;}}),this[_0x394e9c(0x204)][_0x394e9c(0x228)][_0x394e9c(0x246)](_0x4d74bf['takeUntil'](this[_0x394e9c(0x225)]))[_0x394e9c(0x1ba)](_0x4121e3=>{var _0x35960a=_0x394e9c;const {eventID:_0x270406}=_0x4121e3;switch(_0x270406){case _0x4d84ad[_0x35960a(0x25f)][_0x35960a(0x1c2)]:this[_0x35960a(0x24e)](_0x4121e3);break;case _0x4d84ad[_0x35960a(0x25f)][_0x35960a(0x1b0)]:this[_0x35960a(0x187)](_0x4121e3);break;case _0x4d84ad[_0x35960a(0x25f)][_0x35960a(0x199)]:this[_0x35960a(0x24d)]();break;case _0x4d84ad['CollaborationEvent'][_0x35960a(0x182)]:this[_0x35960a(0x270)](_0x4121e3);break;}}));}[_0x17d40a(0x261)](){var _0x22d873=_0x17d40a;this[_0x22d873(0x204)][_0x22d873(0x265)]({'eventID':_0x4d84ad[_0x22d873(0x25f)][_0x22d873(0x247)],'data':{'unitID':this[_0x22d873(0x189)],'userID':this[_0x22d873(0x204)]['getMemberID']()}},this[_0x22d873(0x189)]);}[_0x17d40a(0x232)](){var _0x345bc2=_0x17d40a;this[_0x345bc2(0x223)]===_0x345bc2(0x248)&&(this[_0x345bc2(0x218)]['next']('idle'),this[_0x345bc2(0x204)][_0x345bc2(0x265)]({'eventID':_0x4d84ad[_0x345bc2(0x25f)][_0x345bc2(0x199)],'data':{'unitID':this[_0x345bc2(0x189)]}},this[_0x345bc2(0x189)]));}['startFollowing'](){var _0x1b3ec1=_0x17d40a;this[_0x1b3ec1(0x223)]===_0x1b3ec1(0x1da)&&(this[_0x1b3ec1(0x218)][_0x1b3ec1(0x22a)](_0x1b3ec1(0x215)),this[_0x1b3ec1(0x255)]());}[_0x17d40a(0x23e)](){var _0x17f5cb=_0x17d40a;this[_0x17f5cb(0x223)]===_0x17f5cb(0x215)&&this[_0x17f5cb(0x26d)]();}[_0x17d40a(0x24e)](_0x4ebec1){var _0x537001=_0x17d40a;const {presenter:_0x4c9fce}=_0x4ebec1[_0x537001(0x1c3)],_0x1ffcfb=this['_collabSession']['getMemberID']();this[_0x537001(0x251)]=_0x4c9fce,_0x4c9fce===_0x1ffcfb?(this[_0x537001(0x26d)](),this['_startPresenting']()):this[_0x537001(0x223)]!==_0x537001(0x1da)&&(this[_0x537001(0x196)](),this[_0x537001(0x255)]());}[_0x17d40a(0x21c)](){var _0x5a526f=_0x17d40a;const _0x42694a={'eventID':_0x4d84ad[_0x5a526f(0x25f)][_0x5a526f(0x23f)]};this[_0x5a526f(0x204)][_0x5a526f(0x265)](_0x42694a,this[_0x5a526f(0x189)]);}['_handleTerminate'](){var _0x553157=_0x17d40a;this[_0x553157(0x251)]=null,this[_0x553157(0x223)]!=='presenting'&&this[_0x553157(0x1ab)]();}[_0x17d40a(0x270)](_0x11f818){var _0xcbac9a=_0x17d40a;if(this[_0xcbac9a(0x223)]==='following'&&this[_0xcbac9a(0x251)]===_0x11f818[_0xcbac9a(0x1c3)][_0xcbac9a(0x229)]){const _0xbfe262=_0x4d84ad[_0xcbac9a(0x1d1)](_0x11f818[_0xcbac9a(0x1c3)])[_0xcbac9a(0x1bb)][_0xcbac9a(0x1f7)]()[_0xcbac9a(0x190)](_0x26f156=>_0x26f156['id']===_0x44862f[_0xcbac9a(0x21d)]['id']);if(_0xbfe262){const _0x431a91=_0xbfe262[_0xcbac9a(0x17f)]['unitId'],_0x352a59=_0xbfe262[_0xcbac9a(0x17f)][_0xcbac9a(0x259)]['id'];setTimeout(()=>{var _0x3334a8=_0xcbac9a;this[_0x3334a8(0x23c)][_0x3334a8(0x19e)](_0x44862f['SetWorksheetActiveOperation']['id'],{'unitId':_0x431a91,'subUnitId':_0x352a59},{'fromCollab':!0x0});});}}}[_0x17d40a(0x1a3)](){var _0x2ac4cf=_0x17d40a;this[_0x2ac4cf(0x218)]['next']('presenting');const _0x2e77e3=new Map(),_0x4521f4=this[_0x2ac4cf(0x1c0)]=new _0x211bdc[(_0x2ac4cf(0x1e9))]();_0x4521f4[_0x2ac4cf(0x230)](_0x211bdc[_0x2ac4cf(0x208)](()=>{var _0x4d1fc2=_0x2ac4cf;_0x2e77e3[_0x4d1fc2(0x20b)](_0x34c039=>_0x34c039[_0x4d1fc2(0x19b)]()),_0x2e77e3[_0x4d1fc2(0x181)]();})),_0x4521f4[_0x2ac4cf(0x230)](this[_0x2ac4cf(0x23c)][_0x2ac4cf(0x18e)](_0x4a82c0=>{var _0x1aa00b=_0x2ac4cf,_0x1f66d5;if(_0x4a82c0[_0x1aa00b(0x1a2)]!==_0x211bdc[_0x1aa00b(0x1f1)]['OPERATION']||!this[_0x1aa00b(0x1bd)][_0x1aa00b(0x26a)](_0x4a82c0['id']))return;const {id:_0xdabd58}=_0x4a82c0;let _0x3b7537;_0x2e77e3['has'](_0xdabd58)?_0x3b7537=_0x2e77e3[_0x1aa00b(0x1cd)](_0xdabd58):(_0x3b7537=new _0x40138b['Subject'](),_0x2e77e3[_0x1aa00b(0x1a9)](_0xdabd58,_0x3b7537),_0x3b7537[_0x1aa00b(0x246)](_0x4d74bf[_0x1aa00b(0x21b)]((_0x1f66d5=this[_0x1aa00b(0x26b)][_0x1aa00b(0x1f3)](_0x1944f8))!=null?_0x1f66d5:_0xdbfc56,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1aa00b(0x1ba)](_0x3315ed=>{var _0x247d93=_0x1aa00b;this[_0x247d93(0x204)][_0x247d93(0x265)]({'eventID':_0x4d84ad[_0x247d93(0x25f)][_0x247d93(0x1b0)],'data':{'unitID':this[_0x247d93(0x189)],'operations':{[_0x3315ed['id']]:{'id':_0x3315ed['id'],'params':JSON[_0x247d93(0x20e)](_0x3315ed[_0x247d93(0x17f)])}}}},this['_unitID']);})),_0x3b7537[_0x1aa00b(0x22a)](_0x4a82c0);})),this[_0x2ac4cf(0x1bd)][_0x2ac4cf(0x184)](this[_0x2ac4cf(0x189)])[_0x2ac4cf(0x20b)](_0x5c5db2=>this['_collabSession'][_0x2ac4cf(0x265)]({'eventID':_0x4d84ad[_0x2ac4cf(0x25f)][_0x2ac4cf(0x1b0)],'data':{'unitID':this[_0x2ac4cf(0x189)],'operations':{[_0x5c5db2['id']]:{'id':_0x5c5db2['id'],'params':JSON[_0x2ac4cf(0x20e)](_0x5c5db2[_0x2ac4cf(0x17f)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x764156=_0x17d40a,_0x2eafc2;this[_0x764156(0x218)][_0x764156(0x22a)]('idle'),(_0x2eafc2=this['_commandDisposable'])==null||_0x2eafc2['dispose'](),this[_0x764156(0x1c0)]=null;}[_0x17d40a(0x255)](){var _0x3c5257=_0x17d40a,_0xa8a972;(_0xa8a972=this[_0x3c5257(0x1c0)])==null||_0xa8a972[_0x3c5257(0x271)](),this['_status$'][_0x3c5257(0x22a)](_0x3c5257(0x215));}['_beIdle'](){var _0x283008=_0x17d40a,_0x12aa3b;this['_status$'][_0x283008(0x22a)](_0x283008(0x25b)),(_0x12aa3b=this['_commandDisposable'])==null||_0x12aa3b[_0x283008(0x271)](),this[_0x283008(0x1c0)]=null;}['_stopFollowing'](){var _0x13097c=_0x17d40a,_0x1c5a77;this[_0x13097c(0x218)][_0x13097c(0x22a)]('not-following'),(_0x1c5a77=this['_commandDisposable'])==null||_0x1c5a77[_0x13097c(0x271)]();}[_0x17d40a(0x187)](_0x4f9103){var _0x1ad4ea=_0x17d40a;if([_0x1ad4ea(0x248),_0x1ad4ea(0x1da),'offline'][_0x1ad4ea(0x1fc)](this[_0x1ad4ea(0x223)])||!_0x4f9103[_0x1ad4ea(0x1c3)][_0x1ad4ea(0x268)]||_0x4f9103[_0x1ad4ea(0x1c3)]['presenter']===this[_0x1ad4ea(0x204)]['getMemberID']())return;this['_status']===_0x1ad4ea(0x25b)&&this[_0x1ad4ea(0x255)]();const _0x2b835b=_0x4f9103[_0x1ad4ea(0x1c3)]['operations'];Object['values'](_0x2b835b)[_0x1ad4ea(0x20b)](_0xd56b8c=>{var _0x300861=_0x1ad4ea;this[_0x300861(0x23c)][_0x300861(0x19e)](_0xd56b8c['id'],_0xd56b8c[_0x300861(0x17f)]?JSON[_0x300861(0x18a)](_0xd56b8c[_0x300861(0x17f)]):null,{'fromCollab':!0x0});});}[_0x17d40a(0x19c)](){var _0x10df52=_0x17d40a,_0x37b2b3;this[_0x10df52(0x218)][_0x10df52(0x22a)]('offline'),(_0x37b2b3=this['_commandDisposable'])==null||_0x37b2b3[_0x10df52(0x271)]();}[_0x17d40a(0x1b8)](){var _0x469b70=_0x17d40a;this[_0x469b70(0x218)][_0x469b70(0x22a)](_0x469b70(0x25b)),this[_0x469b70(0x21c)]();}},_0x482a46['LiveShareCoordinator']=_0xe8ca5a([_0x4eb9e8(0x2,_0x211bdc[_0x17d40a(0x19d)]),_0x4eb9e8(0x3,_0x211bdc[_0x17d40a(0x241)](_0x6b369a)),_0x4eb9e8(0x4,_0x211bdc[_0x17d40a(0x240)])],_0x482a46['LiveShareCoordinator']);function _0x334daa(){var _0x262536=_0x17d40a;const _0x49dc3a=_0x291554['useDependency'](_0x482a46[_0x262536(0x1c7)]),_0x46b9c3=_0x291554[_0x262536(0x1e5)](_0x211bdc[_0x262536(0x21a)]),_0x43bd57=_0x291554[_0x262536(0x269)](()=>_0x46b9c3[_0x262536(0x1de)](_0x211bdc[_0x262536(0x191)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0xed459a,_0x242e1d]=_0x20f459[_0x262536(0x1fa)](null),[_0x1cf52d,_0x5eab63]=_0x20f459['useState'](_0x22b009[_0x262536(0x1e4)]),_0x3cb157=_0x20f459[_0x262536(0x263)](null);return _0x20f459[_0x262536(0x1c9)](()=>(_0x43bd57&&_0x49dc3a['getLiveShareCoordinator'](_0x43bd57['getUnitId']())['then'](_0x3d5ec3=>{var _0x183f29=_0x262536;_0x242e1d(_0x3d5ec3),_0x3cb157[_0x183f29(0x216)]=_0x3d5ec3[_0x183f29(0x24f)]['subscribe'](_0x5175eb=>{_0x5eab63(_0x5175eb);});}),()=>{var _0x35730e=_0x262536,_0x1cbc9d;(_0x1cbc9d=_0x3cb157[_0x35730e(0x216)])==null||_0x1cbc9d[_0x35730e(0x1b2)](),_0x3cb157[_0x35730e(0x216)]=null;}),[_0x43bd57,_0x49dc3a]),_0xed459a?_0x1de521[_0x262536(0x1c4)](_0x222549[_0x262536(0x18d)],{'align':_0x262536(0x1cc),'disabled':_0x1cf52d===_0x22b009[_0x262536(0x1e3)],'className':'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','overlay':_0x1de521['jsx'](_0x31e1e9,{'status':_0x1cf52d,'coordinator':_0xed459a}),'children':_0x1de521[_0x262536(0x1c4)](_0x262536(0x1b4),{'className':_0x222549['clsx'](_0x262536(0x1f2),{'univer-cursor-not-allowed':_0x1cf52d===_0x22b009['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1cf52d!==_0x22b009[_0x262536(0x1e3)]}),'type':_0x262536(0x1b4),'children':_0x1de521[_0x262536(0x1c4)](_0x3a6396,{'className':'univer-size-4'})})}):null;}function _0x31e1e9(_0x3a3434){var _0x290777=_0x17d40a;const {status:_0x3b57e0,coordinator:_0x3da66a}=_0x3a3434;switch(_0x3b57e0){case _0x22b009[_0x290777(0x1e4)]:return _0x1de521['jsx'](_0x31cd34,{'coordinator':_0x3da66a});case _0x22b009['FOLLOWING']:return _0x1de521[_0x290777(0x1c4)](_0x596cfa,{'coordinator':_0x3da66a});case _0x22b009[_0x290777(0x260)]:return _0x1de521[_0x290777(0x1c4)](_0x5dd5bd,{'coordinator':_0x3da66a});case _0x22b009[_0x290777(0x1e3)]:return _0x1de521[_0x290777(0x1c4)](_0x5ee499,{});case _0x22b009[_0x290777(0x17d)]:return _0x1de521[_0x290777(0x1c4)](_0x3d55fa,{'coordinator':_0x3da66a});default:return null;}}function _0x31cd34(_0x3bd16e){var _0x658d6e=_0x17d40a;const {coordinator:_0x18ddf5}=_0x3bd16e;return _0x1de521[_0x658d6e(0x1a6)](_0x1de521['Fragment'],{'children':[_0x1de521['jsx'](_0x658d6e(0x1d9),{'className':_0x658d6e(0x245),'children':'Present\x20this\x20document'}),_0x1de521[_0x658d6e(0x1c4)](_0x222549[_0x658d6e(0x1ae)],{'onClick':()=>_0x18ddf5['tryStartPresenting'](),'children':_0x658d6e(0x200)})]});}function _0x596cfa(_0x754535){var _0x49377a=_0x17d40a;const {coordinator:_0x49e026}=_0x754535;return _0x1de521[_0x49377a(0x1a6)](_0x1de521['Fragment'],{'children':[_0x1de521[_0x49377a(0x1c4)](_0x49377a(0x1d9),{'className':_0x49377a(0x245),'children':_0x49377a(0x264)}),_0x1de521[_0x49377a(0x1c4)](_0x222549[_0x49377a(0x1ae)],{'onClick':()=>_0x49e026['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x5dd5bd(_0x35d0c9){var _0x26077a=_0x17d40a;const {coordinator:_0x4cf6ae}=_0x35d0c9;return _0x1de521['jsxs'](_0x1de521['Fragment'],{'children':[_0x1de521[_0x26077a(0x1c4)](_0x26077a(0x1d9),{'className':_0x26077a(0x245),'children':_0x26077a(0x233)}),_0x1de521[_0x26077a(0x1c4)](_0x222549['Button'],{'variant':_0x26077a(0x1e1),'onClick':()=>_0x4cf6ae['startFollowing'](),'children':_0x26077a(0x242)})]});}function _0x3d55fa(_0x4dc2eb){var _0x298f01=_0x17d40a;const {coordinator:_0x480f96}=_0x4dc2eb;return _0x1de521[_0x298f01(0x1a6)](_0x1de521['Fragment'],{'children':[_0x1de521[_0x298f01(0x1c4)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x298f01(0x244)}),_0x1de521[_0x298f01(0x1c4)](_0x222549[_0x298f01(0x1ae)],{'variant':_0x298f01(0x235),'onClick':()=>_0x480f96[_0x298f01(0x232)](),'children':'Stop\x20presenting'})]});}function _0x5ee499(){var _0x4a2e16=_0x17d40a;return _0x1de521['jsx'](_0x1de521['Fragment'],{'children':_0x4a2e16(0x1e6)});}var _0x550f06=Object['getOwnPropertyDescriptor'],_0x15482c=(_0x54dbc9,_0x570ea5,_0x25f246,_0x1cacd9)=>{var _0x1e3a2a=_0x17d40a;for(var _0x4cb9e4=_0x1cacd9>0x1?void 0x0:_0x1cacd9?_0x550f06(_0x570ea5,_0x25f246):_0x570ea5,_0x5633cc=_0x54dbc9[_0x1e3a2a(0x1d3)]-0x1,_0x19fd88;_0x5633cc>=0x0;_0x5633cc--)(_0x19fd88=_0x54dbc9[_0x5633cc])&&(_0x4cb9e4=_0x19fd88(_0x4cb9e4)||_0x4cb9e4);return _0x4cb9e4;},_0x1bf52c=(_0x53a763,_0x4384cc)=>(_0x20e2bf,_0x39b439)=>_0x4384cc(_0x20e2bf,_0x39b439,_0x53a763);_0x482a46[_0x17d40a(0x193)]=class extends _0x211bdc[_0x17d40a(0x1fd)]{constructor(_0x56a9f6,_0x603175){var _0x4900fd=_0x17d40a;super(),this[_0x4900fd(0x1d6)]=_0x56a9f6,this[_0x4900fd(0x1c1)]=_0x603175,this[_0x4900fd(0x21e)]();}[_0x17d40a(0x21e)](){var _0x17f4a8=_0x17d40a;this[_0x17f4a8(0x1e0)](this[_0x17f4a8(0x1c1)][_0x17f4a8(0x207)](_0x291554[_0x17f4a8(0x1ef)][_0x17f4a8(0x26c)],()=>_0x291554['connectInjector'](_0x334daa,this[_0x17f4a8(0x1d6)])));}},_0x482a46[_0x17d40a(0x193)]=_0x15482c([_0x1bf52c(0x0,_0x211bdc[_0x17d40a(0x241)](_0x211bdc[_0x17d40a(0x25d)])),_0x1bf52c(0x1,_0x291554['IUIPartsService'])],_0x482a46[_0x17d40a(0x193)]);const _0x19ec70='live-share.config',_0x51d6e6={};var _0x2e8fe4=Object[_0x17d40a(0x17e)],_0x2d5da4=(_0x348185,_0x3bce6,_0x14d475,_0x1439ab)=>{var _0x41e9d1=_0x17d40a;for(var _0x5bc1c5=_0x1439ab>0x1?void 0x0:_0x1439ab?_0x2e8fe4(_0x3bce6,_0x14d475):_0x3bce6,_0xb07b90=_0x348185[_0x41e9d1(0x1d3)]-0x1,_0x5f1f75;_0xb07b90>=0x0;_0xb07b90--)(_0x5f1f75=_0x348185[_0xb07b90])&&(_0x5bc1c5=_0x5f1f75(_0x5bc1c5)||_0x5bc1c5);return _0x5bc1c5;},_0x201c9f=(_0x19c4d8,_0x148b02)=>(_0x3873da,_0x4e2be8)=>_0x148b02(_0x3873da,_0x4e2be8,_0x19c4d8);let _0x3d9a46=class extends _0x211bdc[_0x17d40a(0x1fd)]{constructor(_0x2575bb){var _0x3f5797=_0x17d40a;super(),this[_0x3f5797(0x1bd)]=_0x2575bb,this['_init']();}[_0x17d40a(0x1eb)](){var _0x257674=_0x17d40a;[_0x593c0b['SetZoomRatioOperation']['id'],_0x593c0b['SetScrollOperation']['id'],_0x44862f[_0x257674(0x1f5)]['id']]['forEach'](_0x5d0720=>{var _0x3dbff0=_0x257674;this['disposeWithMe'](this[_0x3dbff0(0x1bd)]['registerSharedOperation'](_0x5d0720));});}};_0x3d9a46=_0x2d5da4([_0x201c9f(0x0,_0x211bdc['Inject'](_0x6b369a))],_0x3d9a46);var _0x45c74c=Object['defineProperty'],_0x46390a=Object['getOwnPropertyDescriptor'],_0x3d21a1=(_0x43a183,_0xf5b775,_0xbac843)=>_0xf5b775 in _0x43a183?_0x45c74c(_0x43a183,_0xf5b775,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xbac843}):_0x43a183[_0xf5b775]=_0xbac843,_0x482a84=(_0x22d752,_0x1ff632,_0x4942d3,_0x4b4028)=>{var _0x178f49=_0x17d40a;for(var _0xf13c7d=_0x4b4028>0x1?void 0x0:_0x4b4028?_0x46390a(_0x1ff632,_0x4942d3):_0x1ff632,_0x2759bd=_0x22d752[_0x178f49(0x1d3)]-0x1,_0x54ef81;_0x2759bd>=0x0;_0x2759bd--)(_0x54ef81=_0x22d752[_0x2759bd])&&(_0xf13c7d=_0x54ef81(_0xf13c7d)||_0xf13c7d);return _0xf13c7d;},_0x1c5b71=(_0x25d974,_0x47a027)=>(_0x164776,_0x12bc68)=>_0x47a027(_0x164776,_0x12bc68,_0x25d974),_0x3b8ba6=(_0x39f558,_0x4c4945,_0x3e051e)=>_0x3d21a1(_0x39f558,typeof _0x4c4945!=_0x17d40a(0x272)?_0x4c4945+'':_0x4c4945,_0x3e051e);const _0x2df867='UNIVER_LIVE_SHARE_PLUGIN';_0x482a46[_0x17d40a(0x19f)]=class extends _0x211bdc['Plugin']{constructor(_0x299c8d=_0x51d6e6,_0x286a3b,_0x58b6fd){var _0x492282=_0x17d40a;super(),this[_0x492282(0x234)]=_0x299c8d,this[_0x492282(0x1d6)]=_0x286a3b,this[_0x492282(0x26b)]=_0x58b6fd;const {..._0x31e37e}=_0x211bdc[_0x492282(0x1ad)]({},_0x51d6e6,this[_0x492282(0x234)]);this[_0x492282(0x26b)]['setConfig'](_0x19ec70,_0x31e37e);}[_0x17d40a(0x237)](){var _0x819efe=_0x17d40a;_0x211bdc['registerDependencies'](this[_0x819efe(0x1d6)],_0x211bdc[_0x819efe(0x25c)]([[_0x6b369a],[_0x482a46[_0x819efe(0x1c7)]],[_0x3d9a46],[_0x482a46[_0x819efe(0x193)]]],this[_0x819efe(0x234)][_0x819efe(0x1b6)])),_0x211bdc[_0x819efe(0x198)](this[_0x819efe(0x1d6)],[[_0x3d9a46]]);}['onRendered'](){var _0x554be5=_0x17d40a;_0x211bdc[_0x554be5(0x198)](this['_injector'],[[_0x482a46[_0x554be5(0x193)]]]);}},_0x3b8ba6(_0x482a46[_0x17d40a(0x19f)],'type',_0x211bdc[_0x17d40a(0x191)][_0x17d40a(0x1d5)]),_0x3b8ba6(_0x482a46[_0x17d40a(0x19f)],_0x17d40a(0x231),_0x2df867),_0x482a46[_0x17d40a(0x19f)]=_0x482a84([_0x211bdc['DependentOn'](_0x3f8726[_0x17d40a(0x1bf)]),_0x1c5b71(0x1,_0x211bdc[_0x17d40a(0x241)](_0x211bdc['Injector'])),_0x1c5b71(0x2,_0x211bdc['IConfigService'])],_0x482a46[_0x17d40a(0x19f)]),_0x482a46[_0x17d40a(0x192)]=_0x334daa,_0x482a46[_0x17d40a(0x201)]=_0x6b369a,_0x482a46[_0x17d40a(0x23d)]=_0x22b009,Object[_0x17d40a(0x258)](_0x482a46,Symbol[_0x17d40a(0x1f0)],{'value':'Module'});}));
|
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-nightly.202508071209",
|
|
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
|
|
51
|
-
"@univerjs/core": "0.10.
|
|
52
|
-
"@univerjs
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/sheets
|
|
55
|
-
"@univerjs/ui": "0.10.
|
|
56
|
-
"@univerjs/
|
|
50
|
+
"@univerjs-pro/collaboration": "0.10.2-nightly.202508071209",
|
|
51
|
+
"@univerjs/core": "0.10.2-nightly.202508071209",
|
|
52
|
+
"@univerjs/design": "0.10.2-nightly.202508071209",
|
|
53
|
+
"@univerjs-pro/collaboration-client": "0.10.2-nightly.202508071209",
|
|
54
|
+
"@univerjs/sheets": "0.10.2-nightly.202508071209",
|
|
55
|
+
"@univerjs/sheets-ui": "0.10.2-nightly.202508071209",
|
|
56
|
+
"@univerjs/ui": "0.10.2-nightly.202508071209"
|
|
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": {
|