@univerjs-pro/live-share 0.9.2 → 0.9.3-nightly.202507250819
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +11 -11
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x285575=_0xdbb3;(function(_0x4caccd,_0x578dd1){var _0x47afb6=_0xdbb3,_0x96ee35=_0x4caccd();while(!![]){try{var _0x458ae8=parseInt(_0x47afb6(0x105))/0x1*(parseInt(_0x47afb6(0x125))/0x2)+parseInt(_0x47afb6(0x132))/0x3+-parseInt(_0x47afb6(0x14b))/0x4*(parseInt(_0x47afb6(0x152))/0x5)+parseInt(_0x47afb6(0x12a))/0x6+-parseInt(_0x47afb6(0x151))/0x7+parseInt(_0x47afb6(0x164))/0x8*(-parseInt(_0x47afb6(0x158))/0x9)+parseInt(_0x47afb6(0xc9))/0xa*(-parseInt(_0x47afb6(0x11c))/0xb);if(_0x458ae8===_0x578dd1)break;else _0x96ee35['push'](_0x96ee35['shift']());}catch(_0x133c53){_0x96ee35['push'](_0x96ee35['shift']());}}}(_0x5548,0xd7ded));function _0xdbb3(_0x3ce615,_0x7cd5bd){var _0x5548e6=_0x5548();return _0xdbb3=function(_0xdbb3d,_0x55fd26){_0xdbb3d=_0xdbb3d-0xa0;var _0x4ba38d=_0x5548e6[_0xdbb3d];return _0x4ba38d;},_0xdbb3(_0x3ce615,_0x7cd5bd);}var U=Object['defineProperty'],F=(_0x440523,_0x208840,_0x4280e9)=>_0x208840 in _0x440523?U(_0x440523,_0x208840,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4280e9}):_0x440523[_0x208840]=_0x4280e9,v=(_0x8c492b,_0x4d32a0,_0x22d029)=>F(_0x8c492b,typeof _0x4d32a0!='symbol'?_0x4d32a0+'':_0x4d32a0,_0x22d029);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x285575(0xf2)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$='live-share.config',x={};class O extends o[_0x285575(0xb2)]{constructor(){var _0x31d1ef=_0x285575;super(...arguments),v(this,_0x31d1ef(0xbb),new Set()),v(this,'_reporters',new Set());}[_0x285575(0xf8)](_0x568efb){var _0x5d5f4b=_0x285575;return this[_0x5d5f4b(0xbb)]['add'](_0x568efb),o['toDisposable'](()=>this[_0x5d5f4b(0xbb)][_0x5d5f4b(0xa7)](_0x568efb));}['registerInitialStateReporter'](_0x37e2d5){var _0x51b5cb=_0x285575;return this[_0x51b5cb(0x15f)][_0x51b5cb(0x123)](_0x37e2d5),o[_0x51b5cb(0x13f)](()=>this[_0x51b5cb(0x15f)][_0x51b5cb(0xa7)](_0x37e2d5));}[_0x285575(0x14d)](_0x545c3c){var _0x3efcdb=_0x285575;return this['_sharedOperations'][_0x3efcdb(0x146)](_0x545c3c);}[_0x285575(0xd6)](_0x300290){var _0x3225d1=_0x285575;return Array['from'](this['_reporters'])[_0x3225d1(0xe2)](_0x33251e=>_0x33251e(_0x300290));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x58ef76,_0x1c81f9,_0x15675e,_0x328516)=>{var _0x224f9d=_0x285575;for(var _0x36e1d1=_0x328516>0x1?void 0x0:_0x328516?H(_0x1c81f9,_0x15675e):_0x1c81f9,_0xa1f05a=_0x58ef76[_0x224f9d(0x16a)]-0x1,_0x22a8bc;_0xa1f05a>=0x0;_0xa1f05a--)(_0x22a8bc=_0x58ef76[_0xa1f05a])&&(_0x36e1d1=_0x22a8bc(_0x36e1d1)||_0x36e1d1);return _0x36e1d1;},k=(_0x445e87,_0x3224c9)=>(_0x295abc,_0x2e65b4)=>_0x3224c9(_0x295abc,_0x2e65b4,_0x445e87);let E=class extends o[_0x285575(0xb2)]{constructor(_0x50a092){var _0x46f18b=_0x285575;super(),this[_0x46f18b(0xfc)]=_0x50a092,this[_0x46f18b(0xdf)]();}[_0x285575(0xdf)](){var _0x2fc74f=_0x285575;[w['SetZoomRatioOperation']['id'],w[_0x2fc74f(0x100)]['id'],C['SetWorksheetActiveOperation']['id']]['forEach'](_0x344291=>{var _0x5141e0=_0x2fc74f;this['disposeWithMe'](this[_0x5141e0(0xfc)][_0x5141e0(0xf8)](_0x344291));});}};E=V([k(0x0,o[_0x285575(0xd9)](O))],E);var u=function(){var _0x480bf3=_0x285575;return u=Object[_0x480bf3(0xdd)]||function(_0x1d893a){var _0x6dbf0=_0x480bf3;for(var _0xbb271a,_0xbf6834=0x1,_0x215a26=arguments[_0x6dbf0(0x16a)];_0xbf6834<_0x215a26;_0xbf6834++){_0xbb271a=arguments[_0xbf6834];for(var _0xd212b1 in _0xbb271a)Object[_0x6dbf0(0xd4)][_0x6dbf0(0xef)][_0x6dbf0(0x165)](_0xbb271a,_0xd212b1)&&(_0x1d893a[_0xd212b1]=_0xbb271a[_0xd212b1]);}return _0x1d893a;},u[_0x480bf3(0xe0)](this,arguments);},M=function(_0x53083a,_0x4f4e75){var _0x54d71a=_0x285575,_0x365c24={};for(var _0x31c47b in _0x53083a)Object[_0x54d71a(0xd4)][_0x54d71a(0xef)][_0x54d71a(0x165)](_0x53083a,_0x31c47b)&&_0x4f4e75[_0x54d71a(0xad)](_0x31c47b)<0x0&&(_0x365c24[_0x31c47b]=_0x53083a[_0x31c47b]);if(_0x53083a!=null&&typeof Object[_0x54d71a(0xf4)]==_0x54d71a(0xe5)){for(var _0x14f649=0x0,_0x31c47b=Object[_0x54d71a(0xf4)](_0x53083a);_0x14f649<_0x31c47b[_0x54d71a(0x16a)];_0x14f649++)_0x4f4e75[_0x54d71a(0xad)](_0x31c47b[_0x14f649])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x54d71a(0x165)](_0x53083a,_0x31c47b[_0x14f649])&&(_0x365c24[_0x31c47b[_0x14f649]]=_0x53083a[_0x31c47b[_0x14f649]]);}return _0x365c24;},j=f[_0x285575(0xae)](function(_0xfb000d,_0x6684bb){var _0x40e826=_0x285575,_0x10bf9d=_0xfb000d['icon'],_0x468ade=_0xfb000d['id'],_0x26cc43=_0xfb000d[_0x40e826(0x162)],_0x508d2c=_0xfb000d['extend'],_0x15de0f=M(_0xfb000d,['icon','id',_0x40e826(0x162),'extend']),_0x198eed=_0x40e826(0xbd)[_0x40e826(0x110)](_0x468ade,'\x20')[_0x40e826(0x110)](_0x26cc43||'')[_0x40e826(0x160)](),_0x3f2704=f['useRef']('_'[_0x40e826(0x110)](G()));return y(_0x10bf9d,''['concat'](_0x468ade),{'defIds':_0x10bf9d['defIds'],'idSuffix':_0x3f2704['current']},u({'ref':_0x6684bb,'className':_0x198eed},_0x15de0f),_0x508d2c);});function y(_0x430b4e,_0xdd6bd7,_0x15c9e1,_0x59dea8,_0xe4b2f9){var _0x9a1496=_0x285575;return f[_0x9a1496(0x14a)](_0x430b4e[_0x9a1496(0x136)],u(u({'key':_0xdd6bd7},q(_0x430b4e,_0x15c9e1,_0xe4b2f9)),_0x59dea8),(W(_0x430b4e,_0x15c9e1)['children']||[])['map'](function(_0x3052f4,_0xb040bf){var _0xff1f5d=_0x9a1496;return y(_0x3052f4,''['concat'](_0xdd6bd7,'-')['concat'](_0x430b4e[_0xff1f5d(0x136)],'-')[_0xff1f5d(0x110)](_0xb040bf),_0x15c9e1,void 0x0,_0xe4b2f9);}));}function q(_0x42fc75,_0x225150,_0x43fb6f){var _0x41a5f0=_0x285575,_0xf2f85e=u({},_0x42fc75[_0x41a5f0(0x126)]);_0x43fb6f!=null&&_0x43fb6f[_0x41a5f0(0xb7)]&&_0xf2f85e[_0x41a5f0(0x11d)]===_0x41a5f0(0xb7)&&(_0xf2f85e[_0x41a5f0(0x11d)]=_0x43fb6f[_0x41a5f0(0xb7)]),_0x42fc75[_0x41a5f0(0x136)]===_0x41a5f0(0x128)&&_0xf2f85e['id']&&(_0xf2f85e['id']=_0xf2f85e['id']+_0x225150['idSuffix']),Object[_0x41a5f0(0x127)](_0xf2f85e)[_0x41a5f0(0xab)](function(_0x47fdec){var _0x3acf68=_0x41a5f0,_0x5402f3=_0x47fdec[0x0],_0x1e392d=_0x47fdec[0x1];_0x5402f3===_0x3acf68(0x128)&&typeof _0x1e392d==_0x3acf68(0xa0)&&(_0xf2f85e[_0x5402f3]=_0x1e392d[_0x3acf68(0xc5)](/url\(#(.*)\)/,_0x3acf68(0x12d)['concat'](_0x225150[_0x3acf68(0xc0)],')')));});var _0x3c9401=_0x225150['defIds'];return!_0x3c9401||_0x3c9401[_0x41a5f0(0x16a)]===0x0||(_0x42fc75[_0x41a5f0(0x136)]==='use'&&_0xf2f85e[_0x41a5f0(0xe6)]&&(_0xf2f85e['xlink:href']=_0xf2f85e[_0x41a5f0(0xe6)]+_0x225150[_0x41a5f0(0xc0)]),Object[_0x41a5f0(0x127)](_0xf2f85e)[_0x41a5f0(0xab)](function(_0x34e90e){var _0x239f3e=_0x41a5f0,_0x1b2dde=_0x34e90e[0x0],_0x5e7930=_0x34e90e[0x1];typeof _0x5e7930==_0x239f3e(0xa0)&&(_0xf2f85e[_0x1b2dde]=_0x5e7930[_0x239f3e(0xc5)](/url\(#(.*)\)/,'url(#$1'[_0x239f3e(0x110)](_0x225150['idSuffix'],')')));})),_0xf2f85e;}function W(_0x5991d9,_0x55f4c5){var _0x24e23f=_0x285575,_0x484e7d,_0x5089f5=_0x55f4c5[_0x24e23f(0x129)];return!_0x5089f5||_0x5089f5[_0x24e23f(0x16a)]===0x0?_0x5991d9:_0x5991d9['tag']===_0x24e23f(0x16d)&&(!((_0x484e7d=_0x5991d9[_0x24e23f(0xac)])===null||_0x484e7d===void 0x0)&&_0x484e7d['length'])?u(u({},_0x5991d9),{'children':_0x5991d9['children'][_0x24e23f(0xe2)](function(_0x1da978){var _0x381409=_0x24e23f;return typeof _0x1da978['attrs']['id']==_0x381409(0xa0)&&_0x5089f5&&_0x5089f5['includes'](_0x1da978['attrs']['id'])?u(u({},_0x1da978),{'attrs':u(u({},_0x1da978[_0x381409(0x126)]),{'id':_0x1da978[_0x381409(0x126)]['id']+_0x55f4c5[_0x381409(0xc0)]})}):_0x1da978;})}):_0x5991d9;}function G(){var _0x4ef2be=_0x285575;return Math[_0x4ef2be(0x11f)]()['toString'](0x24)['substring'](0x2,0x8);}j[_0x285575(0x144)]='UniverIcon';var B={'tag':_0x285575(0x13b),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x285575(0x120),'viewBox':_0x285575(0xfd),'width':_0x285575(0x145),'height':_0x285575(0x145)},'children':[{'tag':'path','attrs':{'fill':_0x285575(0x13a),'d':_0x285575(0x15c)}},{'tag':_0x285575(0x163),'attrs':{'fill':_0x285575(0x13a),'d':_0x285575(0xf7),'fillRule':_0x285575(0x135),'clipRule':_0x285575(0x135)}}]},P=f[_0x285575(0xae)](function(_0x4ee58a,_0x374636){var _0x2e5cb0=_0x285575;return f['createElement'](j,Object[_0x2e5cb0(0xdd)]({},_0x4ee58a,{'id':_0x2e5cb0(0x15b),'ref':_0x374636,'icon':B}));});P[_0x285575(0x144)]=_0x285575(0x138);var Y=Object[_0x285575(0x117)],R=(_0xba77fb,_0xb151a9,_0x2f53fa,_0x49a305)=>{var _0x3edc6e=_0x285575;for(var _0x114897=_0x49a305>0x1?void 0x0:_0x49a305?Y(_0xb151a9,_0x2f53fa):_0xb151a9,_0x4b2477=_0xba77fb[_0x3edc6e(0x16a)]-0x1,_0x498a36;_0x4b2477>=0x0;_0x4b2477--)(_0x498a36=_0xba77fb[_0x4b2477])&&(_0x114897=_0x498a36(_0x114897)||_0x114897);return _0x114897;},S=(_0xc6f91,_0x11fb10)=>(_0x50964c,_0x32c630)=>_0x11fb10(_0x50964c,_0x32c630,_0xc6f91);exports['LiveShareController']=class extends o[_0x285575(0xa3)]{constructor(_0x189b86,_0x1bebee,_0x30fe25){var _0x33af5c=_0x285575;super(),v(this,_0x33af5c(0x168),new Map()),(this[_0x33af5c(0x16e)]=_0x189b86,this[_0x33af5c(0xc4)]=_0x1bebee,this['_collabSessionService']=_0x30fe25,this[_0x33af5c(0xdf)]());}async[_0x285575(0x170)](_0x2fab1d){var _0x5592a4=_0x285575;return this[_0x5592a4(0x168)]['has'](_0x2fab1d)||await this['_startLiveShareCoordinator'](_0x2fab1d),this[_0x5592a4(0x168)][_0x5592a4(0x119)](_0x2fab1d);}[_0x285575(0xdf)](){var _0x1ff0aa=_0x285575;this[_0x1ff0aa(0x16e)]['getTypeOfUnitAdded$'](o[_0x1ff0aa(0x102)][_0x1ff0aa(0x107)])['pipe'](b[_0x1ff0aa(0x155)](this[_0x1ff0aa(0xcd)]))['subscribe'](async _0x1f0ec6=>{var _0x87f805=_0x1ff0aa;const _0x9a0398=_0x1f0ec6[_0x87f805(0x134)]();this[_0x87f805(0x168)][_0x87f805(0x146)](_0x9a0398)||this[_0x87f805(0x154)](_0x9a0398);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](o[_0x1ff0aa(0x102)]['UNIVER_SHEET'])[_0x1ff0aa(0xa5)](b['takeUntil'](this[_0x1ff0aa(0xcd)]))[_0x1ff0aa(0x141)](_0x2122f9=>{var _0x418472=_0x1ff0aa;const _0x551eb7=_0x2122f9[_0x418472(0x134)](),_0x242a2e=this[_0x418472(0x168)][_0x418472(0x119)](_0x551eb7);_0x242a2e==null||_0x242a2e[_0x418472(0x12b)]();});}async['_startLiveShareCoordinator'](_0x1d2222){var _0x140e0b=_0x285575;const _0x24af5e=await this[_0x140e0b(0x161)][_0x140e0b(0x133)](_0x1d2222),_0x1db3f5=this[_0x140e0b(0xc4)]['createInstance'](exports[_0x140e0b(0x112)],_0x1d2222,_0x24af5e);return _0x1db3f5[_0x140e0b(0x16c)](),this[_0x140e0b(0x168)][_0x140e0b(0xf1)](_0x1d2222,_0x1db3f5),_0x1db3f5;}},exports[_0x285575(0x130)]=R([S(0x0,o[_0x285575(0xdb)]),S(0x1,o['Inject'](o['Injector'])),S(0x2,o['Inject'](m[_0x285575(0x13e)]))],exports[_0x285575(0x130)]);var h=(_0x5ab150=>(_0x5ab150[_0x285575(0xaf)]='offline',_0x5ab150['IDLE']=_0x285575(0xec),_0x5ab150[_0x285575(0xfb)]='following',_0x5ab150['NOT_FOLLOWING']=_0x285575(0x15d),_0x5ab150[_0x285575(0x109)]=_0x285575(0x10c),_0x5ab150))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports['LiveShareCoordinator']=class extends o['RxDisposable']{constructor(_0x8c4d3f,_0x31da0e,_0x44db1b,_0x1c43cd,_0x26fc44){var _0x1ab4a3=_0x285575;super(),v(this,'_status$',new D[(_0x1ab4a3(0x122))](_0x1ab4a3(0xec))),v(this,_0x1ab4a3(0x139),this[_0x1ab4a3(0xbf)][_0x1ab4a3(0xff)]()),v(this,_0x1ab4a3(0xdf),!0x1),v(this,'_commandDisposable',null),v(this,'_presenter',null),(this[_0x1ab4a3(0x116)]=_0x8c4d3f,this[_0x1ab4a3(0x131)]=_0x31da0e,this[_0x1ab4a3(0xa6)]=_0x44db1b,this[_0x1ab4a3(0xfc)]=_0x1c43cd,this[_0x1ab4a3(0x10a)]=_0x26fc44);}get['_status'](){var _0xbc4fe2=_0x285575;return this[_0xbc4fe2(0xbf)]['getValue']();}[_0x285575(0x12b)](){var _0x173c52=_0x285575,_0x35f2b1;(_0x35f2b1=this[_0x173c52(0x166)])==null||_0x35f2b1[_0x173c52(0x12b)](),this[_0x173c52(0xbf)][_0x173c52(0x171)]('idle'),this['_status$'][_0x173c52(0x14c)]();}[_0x285575(0x16c)](){var _0x5894d3=_0x285575;this[_0x5894d3(0xdf)]||(this[_0x5894d3(0xdf)]=!0x0,this[_0x5894d3(0x131)][_0x5894d3(0x137)]['pipe'](b[_0x5894d3(0x155)](this['dispose$']))[_0x5894d3(0x141)](_0x376215=>{var _0x53d369=_0x5894d3;switch(_0x376215){case m['SessionStatus']['OFFLINE']:this['_handleOffline']();break;case m['SessionStatus'][_0x53d369(0x149)]:this[_0x53d369(0x111)]();break;}}),this[_0x5894d3(0x131)]['event$'][_0x5894d3(0xa5)](b[_0x5894d3(0x155)](this[_0x5894d3(0xcd)]))[_0x5894d3(0x141)](_0x571b15=>{var _0x3056cd=_0x5894d3;const {eventID:_0x32326c}=_0x571b15;switch(_0x32326c){case _[_0x3056cd(0x147)][_0x3056cd(0x108)]:this[_0x3056cd(0xa1)](_0x571b15);break;case _['CollaborationEvent']['LIVESHARE_OPERATION']:this[_0x3056cd(0x14e)](_0x571b15);break;case _['CollaborationEvent'][_0x3056cd(0x148)]:this[_0x3056cd(0x118)]();break;case _[_0x3056cd(0x147)]['NEW_CHANGESETS']:this[_0x3056cd(0xd7)](_0x571b15);break;}}));}['tryStartPresenting'](){var _0x3431cd=_0x285575;this[_0x3431cd(0x131)][_0x3431cd(0x106)]({'eventID':_[_0x3431cd(0x147)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x3431cd(0x116)],'userID':this[_0x3431cd(0x131)][_0x3431cd(0xda)]()}},this['_unitID']);}[_0x285575(0x14f)](){var _0x13ef61=_0x285575;this['_status']==='presenting'&&(this[_0x13ef61(0xbf)][_0x13ef61(0x171)](_0x13ef61(0xec)),this[_0x13ef61(0x131)][_0x13ef61(0x106)]({'eventID':_[_0x13ef61(0x147)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x285575(0xbc)](){var _0x5ac684=_0x285575;this[_0x5ac684(0xb4)]==='not-following'&&(this['_status$'][_0x5ac684(0x171)]('following'),this['_startFollowing']());}['stopFollowing'](){var _0x32175f=_0x285575;this['_status']===_0x32175f(0x140)&&this[_0x32175f(0xc3)]();}['_handleNewHost'](_0x186bf0){var _0x39cd23=_0x285575;const {presenter:_0x297a04}=_0x186bf0[_0x39cd23(0x10d)],_0x1de72b=this[_0x39cd23(0x131)]['getMemberID']();this[_0x39cd23(0x10f)]=_0x297a04,_0x297a04===_0x1de72b?(this[_0x39cd23(0xc3)](),this[_0x39cd23(0xa8)]()):this[_0x39cd23(0xb4)]!=='not-following'&&(this[_0x39cd23(0xb6)](),this[_0x39cd23(0x16b)]());}[_0x285575(0xa4)](){var _0x5d6344=_0x285575;const _0x4b0ecb={'eventID':_[_0x5d6344(0x147)][_0x5d6344(0xa9)]};this[_0x5d6344(0x131)][_0x5d6344(0x106)](_0x4b0ecb,this[_0x5d6344(0x116)]);}['_handleTerminate'](){var _0x43b6da=_0x285575;this[_0x43b6da(0x10f)]=null,this['_status']!==_0x43b6da(0x10c)&&this[_0x43b6da(0x11a)]();}[_0x285575(0xd7)](_0xc9da95){var _0x14a98b=_0x285575;if(this['_status']===_0x14a98b(0x140)&&this[_0x14a98b(0x10f)]===_0xc9da95[_0x14a98b(0x10d)][_0x14a98b(0xeb)]){const _0x56d761=_['parseProtocolChangeset'](_0xc9da95[_0x14a98b(0x10d)])['mutations']['reverse']()['find'](_0x583f9f=>_0x583f9f['id']===C[_0x14a98b(0xba)]['id']);if(_0x56d761){const _0x1f21b1=_0x56d761['params'][_0x14a98b(0xce)],_0x274725=_0x56d761[_0x14a98b(0xb9)]['sheet']['id'];setTimeout(()=>{var _0x3d2860=_0x14a98b;this[_0x3d2860(0x10a)][_0x3d2860(0x114)](C[_0x3d2860(0x13d)]['id'],{'unitId':_0x1f21b1,'subUnitId':_0x274725},{'fromCollab':!0x0});});}}}[_0x285575(0xa8)](){var _0x241470=_0x285575;this[_0x241470(0xbf)][_0x241470(0x171)](_0x241470(0x10c));const _0x3b5795=new Map(),_0x221f5e=this[_0x241470(0x166)]=new o['DisposableCollection']();_0x221f5e[_0x241470(0x123)](o[_0x241470(0x13f)](()=>{var _0x592602=_0x241470;_0x3b5795[_0x592602(0xab)](_0x37bfdc=>_0x37bfdc[_0x592602(0x14c)]()),_0x3b5795[_0x592602(0xc2)]();})),_0x221f5e[_0x241470(0x123)](this['_commandService'][_0x241470(0xde)](_0x5617d6=>{var _0x4632cf=_0x241470,_0x51b960;if(_0x5617d6[_0x4632cf(0x11b)]!==o[_0x4632cf(0xf6)][_0x4632cf(0xee)]||!this[_0x4632cf(0xfc)]['shouldShareOperation'](_0x5617d6['id']))return;const {id:_0x2d4e13}=_0x5617d6;let _0x162f3e;_0x3b5795[_0x4632cf(0x146)](_0x2d4e13)?_0x162f3e=_0x3b5795['get'](_0x2d4e13):(_0x162f3e=new D[(_0x4632cf(0xd8))](),_0x3b5795[_0x4632cf(0xf1)](_0x2d4e13,_0x162f3e),_0x162f3e[_0x4632cf(0xa5)](b['throttleTime']((_0x51b960=this[_0x4632cf(0xa6)]['getConfig'](Z))!=null?_0x51b960:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4632cf(0x141)](_0x38175a=>{var _0x4ebc1b=_0x4632cf;this[_0x4ebc1b(0x131)][_0x4ebc1b(0x106)]({'eventID':_[_0x4ebc1b(0x147)][_0x4ebc1b(0x10b)],'data':{'unitID':this[_0x4ebc1b(0x116)],'operations':{[_0x38175a['id']]:{'id':_0x38175a['id'],'params':JSON[_0x4ebc1b(0x101)](_0x38175a[_0x4ebc1b(0xb9)])}}}},this[_0x4ebc1b(0x116)]);})),_0x162f3e[_0x4632cf(0x171)](_0x5617d6);})),this[_0x241470(0xfc)][_0x241470(0xd6)](this['_unitID'])[_0x241470(0xab)](_0x1e382c=>this['_collabSession'][_0x241470(0x106)]({'eventID':_[_0x241470(0x147)][_0x241470(0x10b)],'data':{'unitID':this[_0x241470(0x116)],'operations':{[_0x1e382c['id']]:{'id':_0x1e382c['id'],'params':JSON['stringify'](_0x1e382c[_0x241470(0xb9)])}}}},this[_0x241470(0x116)]));}[_0x285575(0xb6)](){var _0x38ca71=_0x285575,_0x8af61b;this[_0x38ca71(0xbf)][_0x38ca71(0x171)](_0x38ca71(0xec)),(_0x8af61b=this[_0x38ca71(0x166)])==null||_0x8af61b[_0x38ca71(0x12b)](),this[_0x38ca71(0x166)]=null;}[_0x285575(0x16b)](){var _0x178662=_0x285575,_0x113fa9;(_0x113fa9=this[_0x178662(0x166)])==null||_0x113fa9['dispose'](),this[_0x178662(0xbf)]['next'](_0x178662(0x140));}[_0x285575(0x11a)](){var _0x2b98b1=_0x285575,_0x40ae0b;this['_status$']['next'](_0x2b98b1(0xec)),(_0x40ae0b=this[_0x2b98b1(0x166)])==null||_0x40ae0b[_0x2b98b1(0x12b)](),this[_0x2b98b1(0x166)]=null;}[_0x285575(0xc3)](){var _0x58c544=_0x285575,_0x59d90e;this[_0x58c544(0xbf)]['next'](_0x58c544(0x15d)),(_0x59d90e=this[_0x58c544(0x166)])==null||_0x59d90e[_0x58c544(0x12b)]();}[_0x285575(0x14e)](_0x53fab8){var _0x28f44d=_0x285575;if([_0x28f44d(0x10c),'not-following',_0x28f44d(0xcf)][_0x28f44d(0x16f)](this[_0x28f44d(0xb4)])||!_0x53fab8[_0x28f44d(0x10d)]['presenter']||_0x53fab8[_0x28f44d(0x10d)]['presenter']===this[_0x28f44d(0x131)]['getMemberID']())return;this['_status']===_0x28f44d(0xec)&&this[_0x28f44d(0x16b)]();const _0x152e97=_0x53fab8[_0x28f44d(0x10d)][_0x28f44d(0xb3)];Object[_0x28f44d(0xe7)](_0x152e97)[_0x28f44d(0xab)](_0x4c5af4=>{var _0x115edb=_0x28f44d;this[_0x115edb(0x10a)][_0x115edb(0x114)](_0x4c5af4['id'],_0x4c5af4['params']?JSON[_0x115edb(0xd2)](_0x4c5af4[_0x115edb(0xb9)]):null,{'fromCollab':!0x0});});}[_0x285575(0x12e)](){var _0x583e75=_0x285575,_0x1fd84a;this[_0x583e75(0xbf)][_0x583e75(0x171)](_0x583e75(0xcf)),(_0x1fd84a=this[_0x583e75(0x166)])==null||_0x1fd84a[_0x583e75(0x12b)]();}['_handleOnline'](){var _0x40e7ea=_0x285575;this[_0x40e7ea(0xbf)][_0x40e7ea(0x171)](_0x40e7ea(0xec)),this[_0x40e7ea(0xa4)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x285575(0xf9)]),S(0x3,o[_0x285575(0xd9)](O)),S(0x4,o[_0x285575(0xd3)])],exports[_0x285575(0x112)]);function A(){var _0x5ae144=_0x285575;const _0x560dc0=p['useDependency'](exports[_0x5ae144(0x130)]),_0x481893=p['useDependency'](o['IUniverInstanceService']),_0x431395=p['useObservable'](()=>_0x481893[_0x5ae144(0xbe)](o['UniverInstanceType'][_0x5ae144(0x107)]),void 0x0,!0x1,[]),[_0x4a1245,_0x1eb91d]=f[_0x5ae144(0x121)](null),[_0xa2bf1b,_0x53baaf]=f[_0x5ae144(0x121)](h[_0x5ae144(0x12f)]),_0x247e59=f[_0x5ae144(0xed)](null);return f[_0x5ae144(0x150)](()=>(_0x431395&&_0x560dc0[_0x5ae144(0x170)](_0x431395[_0x5ae144(0x134)]())['then'](_0x3d130e=>{var _0x3ee640=_0x5ae144;_0x1eb91d(_0x3d130e),_0x247e59[_0x3ee640(0x167)]=_0x3d130e[_0x3ee640(0x139)]['subscribe'](_0x389b7a=>{_0x53baaf(_0x389b7a);});}),()=>{var _0x248c56=_0x5ae144,_0x2b5887;(_0x2b5887=_0x247e59[_0x248c56(0x167)])==null||_0x2b5887['unsubscribe'](),_0x247e59[_0x248c56(0x167)]=null;}),[_0x431395,_0x560dc0]),_0x4a1245?l[_0x5ae144(0x104)](g[_0x5ae144(0xf3)],{'align':'end','disabled':_0xa2bf1b===h[_0x5ae144(0xaf)],'className':_0x5ae144(0x15a),'overlay':l[_0x5ae144(0x104)](K,{'status':_0xa2bf1b,'coordinator':_0x4a1245}),'children':l[_0x5ae144(0x104)](_0x5ae144(0xcc),{'className':g[_0x5ae144(0xa2)](_0x5ae144(0xb5),{'univer-cursor-not-allowed':_0xa2bf1b===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xa2bf1b!==h[_0x5ae144(0xaf)]}),'type':_0x5ae144(0xcc),'children':l[_0x5ae144(0x104)](P,{'className':_0x5ae144(0x124)})})}):null;}function K(_0x3e43a1){var _0x2f862c=_0x285575;const {status:_0xb7076f,coordinator:_0x5592c4}=_0x3e43a1;switch(_0xb7076f){case h['IDLE']:return l[_0x2f862c(0x104)](z,{'coordinator':_0x5592c4});case h[_0x2f862c(0xfb)]:return l[_0x2f862c(0x104)](Q,{'coordinator':_0x5592c4});case h['NOT_FOLLOWING']:return l[_0x2f862c(0x104)](X,{'coordinator':_0x5592c4});case h[_0x2f862c(0xaf)]:return l[_0x2f862c(0x104)](te,{});case h[_0x2f862c(0x109)]:return l[_0x2f862c(0x104)](ee,{'coordinator':_0x5592c4});default:return null;}}function z(_0x1814da){var _0x4de906=_0x285575;const {coordinator:_0x147b2d}=_0x1814da;return l['jsxs'](l[_0x4de906(0xfe)],{'children':[l[_0x4de906(0x104)]('div',{'className':_0x4de906(0xb1),'children':_0x4de906(0xd5)}),l['jsx'](g[_0x4de906(0xc8)],{'onClick':()=>_0x147b2d[_0x4de906(0x142)](),'children':'Start'})]});}function Q(_0x5ad599){var _0x4b4947=_0x285575;const {coordinator:_0x5238e8}=_0x5ad599;return l[_0x4b4947(0x159)](l[_0x4b4947(0xfe)],{'children':[l['jsx'](_0x4b4947(0x157),{'className':_0x4b4947(0xb1),'children':_0x4b4947(0xca)}),l[_0x4b4947(0x104)](g[_0x4b4947(0xc8)],{'onClick':()=>_0x5238e8[_0x4b4947(0x156)](),'children':_0x4b4947(0x143)})]});}function X(_0x32255a){var _0x5396c8=_0x285575;const {coordinator:_0x2b3453}=_0x32255a;return l[_0x5396c8(0x159)](l['Fragment'],{'children':[l[_0x5396c8(0x104)](_0x5396c8(0x157),{'className':_0x5396c8(0xb1),'children':_0x5396c8(0xe4)}),l[_0x5396c8(0x104)](g[_0x5396c8(0xc8)],{'variant':'text','onClick':()=>_0x2b3453['startFollowing'](),'children':'Start\x20following'})]});}function ee(_0x460fae){var _0x2de72a=_0x285575;const {coordinator:_0x37ef2b}=_0x460fae;return l[_0x2de72a(0x159)](l[_0x2de72a(0xfe)],{'children':[l[_0x2de72a(0x104)](_0x2de72a(0x157),{'className':_0x2de72a(0xb1),'children':_0x2de72a(0xd1)}),l[_0x2de72a(0x104)](g[_0x2de72a(0xc8)],{'variant':_0x2de72a(0xd0),'onClick':()=>_0x37ef2b['stopPresenting'](),'children':_0x2de72a(0xc1)})]});}function te(){var _0x355d29=_0x285575;return l[_0x355d29(0x104)](l[_0x355d29(0xfe)],{'children':_0x355d29(0x115)});}var ie=Object[_0x285575(0x117)],ne=(_0x60871,_0x4aa62e,_0x4e45d8,_0x6339b0)=>{var _0x36c0fa=_0x285575;for(var _0x22a696=_0x6339b0>0x1?void 0x0:_0x6339b0?ie(_0x4aa62e,_0x4e45d8):_0x4aa62e,_0x5f345d=_0x60871[_0x36c0fa(0x16a)]-0x1,_0x255438;_0x5f345d>=0x0;_0x5f345d--)(_0x255438=_0x60871[_0x5f345d])&&(_0x22a696=_0x255438(_0x22a696)||_0x22a696);return _0x22a696;},L=(_0x2c1d21,_0x2b89c3)=>(_0x55ed52,_0x5eb09f)=>_0x2b89c3(_0x55ed52,_0x5eb09f,_0x2c1d21);function _0x5548(){var _0x2a2bdd=['PRESENTING','_commandService','LIVESHARE_OPERATION','presenting','data','symbol','_presenter','concat','_handleOnline','LiveShareCoordinator','DesktopLiveShareController','executeCommand','You\x27are\x20offline.','_unitID','getOwnPropertyDescriptor','_handleTerminate','get','_beIdle','type','5126176UZsRoQ','fill','LiveShareStatus','random','none','useState','BehaviorSubject','add','univer-size-4','72EhDpDp','attrs','entries','mask','defIds','8515254sZVZSg','dispose','UniverLiveSharePlugin','url(#$1','_handleOffline','IDLE','LiveShareController','_collabSession','3774717vxroeI','requireSession','getUnitId','evenodd','tag','sessionStatus$','LiveShareIcon','status$','currentColor','svg','_config','SetWorksheetActiveOperation','CollaborationSessionService','toDisposable','following','subscribe','tryStartPresenting','Stop\x20following','displayName','1em','has','CollaborationEvent','LIVESHARE_TERMINATE','ONLINE','createElement','8nrJcWX','complete','shouldShareOperation','_handleOperation','stopPresenting','useEffect','1992053pKYJyI','3216350IXrrxy','touchDependencies','_startLiveShareCoordinator','takeUntil','stopFollowing','div','243504DDFSBx','jsxs','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','live-share-icon','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','not-following','LiveShare','_reporters','trim','_collabSessionService','className','path','392kIclgP','call','_commandDisposable','current','_entities','override','length','_startFollowing','init','defs','_univerInstanceService','includes','getLiveShareCoordinator','next','string','_handleNewHost','clsx','RxDisposable','_fetchOperations','pipe','_configService','delete','_startPresenting','LIVESHARE_FETCH_OPERATIONS','merge','forEach','children','indexOf','forwardRef','OFFLINE','HEADER_MENU','univer-mb-3\x20univer-w-full\x20univer-text-sm','Disposable','operations','_status','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_stopPresenting','colorChannel1','LiveShareService','params','InsertSheetMutation','_sharedOperations','startFollowing','univerjs-icon\x20univerjs-icon-','getCurrentTypeOfUnit$','_status$','idSuffix','Stop\x20presenting','clear','_stopFollowing','_injector','replace','registerComponent','defineProperty','Button','10TPBvIg','You\x27re\x20following\x20the\x20presenter','IUIPartsService','button','dispose$','unitId','offline','default','You\x27re\x20presenting\x20the\x20document','parse','ICommandService','prototype','Present\x20this\x20document','getInitialStates','_handleNewChangeSets','Subject','Inject','getMemberID','IUniverInstanceService','connectInjector','assign','onCommandExecuted','_init','apply','_uiPartsService','map','UNIVER_LIVE_SHARE_PLUGIN','You\x27re\x20not\x20following\x20the\x20presenter','function','xlink:href','values','BuiltInUIPart','_mountLiveShare','Injector','memberID','idle','useRef','OPERATION','hasOwnProperty','registerDependencies','set','Module','Dropdown','getOwnPropertySymbols','pluginName','CommandType','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','registerSharedOperation','IConfigService','DependentOn','FOLLOWING','_liveShareService','0\x200\x2017\x2017','Fragment','asObservable','SetScrollOperation','stringify','UniverInstanceType','mergeOverrideWithDependencies','jsx','43601knSElE','send','UNIVER_SHEET','LIVESHARE_NEW_HOST'];_0x5548=function(){return _0x2a2bdd;};return _0x5548();}exports[_0x285575(0x113)]=class extends o[_0x285575(0xb2)]{constructor(_0x3fa9fb,_0x25b627){var _0x5d6dfe=_0x285575;super(),this[_0x5d6dfe(0xc4)]=_0x3fa9fb,this[_0x5d6dfe(0xe1)]=_0x25b627,this[_0x5d6dfe(0xe9)]();}[_0x285575(0xe9)](){var _0x3d8d16=_0x285575;this['disposeWithMe'](this[_0x3d8d16(0xe1)][_0x3d8d16(0xc6)](p[_0x3d8d16(0xe8)][_0x3d8d16(0xb0)],()=>p[_0x3d8d16(0xdc)](A,this['_injector'])));}},exports[_0x285575(0x113)]=ne([L(0x0,o[_0x285575(0xd9)](o[_0x285575(0xea)])),L(0x1,p[_0x285575(0xcb)])],exports['DesktopLiveShareController']);var re=Object[_0x285575(0xc7)],se=Object['getOwnPropertyDescriptor'],oe=(_0x11ea8d,_0x5a2625,_0x444591)=>_0x5a2625 in _0x11ea8d?re(_0x11ea8d,_0x5a2625,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x444591}):_0x11ea8d[_0x5a2625]=_0x444591,ae=(_0x41b145,_0x534bc9,_0x3c4db2,_0x9f06bd)=>{for(var _0x1bc90a=_0x9f06bd>0x1?void 0x0:_0x9f06bd?se(_0x534bc9,_0x3c4db2):_0x534bc9,_0xffbd07=_0x41b145['length']-0x1,_0x23a85b;_0xffbd07>=0x0;_0xffbd07--)(_0x23a85b=_0x41b145[_0xffbd07])&&(_0x1bc90a=_0x23a85b(_0x1bc90a)||_0x1bc90a);return _0x1bc90a;},N=(_0x3ad87f,_0x4bd76b)=>(_0x3f4f79,_0x3c7574)=>_0x4bd76b(_0x3f4f79,_0x3c7574,_0x3ad87f),T=(_0x60ae63,_0x50abff,_0x884d60)=>oe(_0x60ae63,typeof _0x50abff!=_0x285575(0x10e)?_0x50abff+'':_0x50abff,_0x884d60);const le=_0x285575(0xe3);exports[_0x285575(0x12c)]=class extends o['Plugin']{constructor(_0x49953b=x,_0x12a5cc,_0x4d1f2f){var _0x156766=_0x285575;super(),this['_config']=_0x49953b,this[_0x156766(0xc4)]=_0x12a5cc,this[_0x156766(0xa6)]=_0x4d1f2f;const {..._0x54692c}=o[_0x156766(0xaa)]({},x,this[_0x156766(0x13c)]);this[_0x156766(0xa6)]['setConfig']($,_0x54692c);}['onStarting'](){var _0x910de4=_0x285575;o[_0x910de4(0xf0)](this['_injector'],o[_0x910de4(0x103)]([[O],[exports['LiveShareController']],[E],[exports[_0x910de4(0x113)]]],this[_0x910de4(0x13c)][_0x910de4(0x169)])),o[_0x910de4(0x153)](this[_0x910de4(0xc4)],[[E]]);}['onRendered'](){var _0x1a27fa=_0x285575;o[_0x1a27fa(0x153)](this[_0x1a27fa(0xc4)],[[exports[_0x1a27fa(0x113)]]]);}},T(exports[_0x285575(0x12c)],_0x285575(0x11b),o[_0x285575(0x102)]['UNIVER_UNKNOWN']),T(exports['UniverLiveSharePlugin'],_0x285575(0xf5),le),exports[_0x285575(0x12c)]=ae([o[_0x285575(0xfa)](m['UniverCollaborationClientPlugin']),N(0x1,o['Inject'](o['Injector'])),N(0x2,o[_0x285575(0xf9)])],exports[_0x285575(0x12c)]),exports[_0x285575(0x15e)]=A,exports[_0x285575(0xb8)]=O,exports[_0x285575(0x11e)]=h;
|
|
1
|
+
'use strict';var _0x1de777=_0xb18f;(function(_0x30b936,_0x1d1372){var _0xd5013d=_0xb18f,_0x457cde=_0x30b936();while(!![]){try{var _0x4aa296=-parseInt(_0xd5013d(0x237))/0x1*(-parseInt(_0xd5013d(0x24c))/0x2)+parseInt(_0xd5013d(0x219))/0x3*(parseInt(_0xd5013d(0x267))/0x4)+-parseInt(_0xd5013d(0x1b8))/0x5+parseInt(_0xd5013d(0x1e1))/0x6*(-parseInt(_0xd5013d(0x213))/0x7)+-parseInt(_0xd5013d(0x250))/0x8+-parseInt(_0xd5013d(0x209))/0x9*(parseInt(_0xd5013d(0x1e9))/0xa)+parseInt(_0xd5013d(0x23c))/0xb;if(_0x4aa296===_0x1d1372)break;else _0x457cde['push'](_0x457cde['shift']());}catch(_0x3caa30){_0x457cde['push'](_0x457cde['shift']());}}}(_0x22da,0xa7094));var U=Object[_0x1de777(0x212)],F=(_0x224752,_0x21d36a,_0x1bb015)=>_0x21d36a in _0x224752?U(_0x224752,_0x21d36a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1bb015}):_0x224752[_0x21d36a]=_0x1bb015,v=(_0x3a6cf2,_0x33ad56,_0x177620)=>F(_0x3a6cf2,typeof _0x33ad56!=_0x1de777(0x1c5)?_0x33ad56+'':_0x33ad56,_0x177620);Object['defineProperty'](exports,Symbol[_0x1de777(0x1fc)],{'value':_0x1de777(0x25c)});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'),$=_0x1de777(0x1f1),x={};class O extends o[_0x1de777(0x1ff)]{constructor(){var _0x549ed9=_0x1de777;super(...arguments),v(this,_0x549ed9(0x238),new Set()),v(this,_0x549ed9(0x1bf),new Set());}['registerSharedOperation'](_0x2c1d48){var _0x32d186=_0x1de777;return this[_0x32d186(0x238)][_0x32d186(0x201)](_0x2c1d48),o[_0x32d186(0x21f)](()=>this[_0x32d186(0x238)]['delete'](_0x2c1d48));}[_0x1de777(0x1fa)](_0x38b19b){var _0x30f066=_0x1de777;return this[_0x30f066(0x1bf)]['add'](_0x38b19b),o[_0x30f066(0x21f)](()=>this[_0x30f066(0x1bf)]['delete'](_0x38b19b));}[_0x1de777(0x1ac)](_0x31a53f){var _0x434f21=_0x1de777;return this[_0x434f21(0x238)]['has'](_0x31a53f);}[_0x1de777(0x239)](_0x5442c3){var _0x1c08a9=_0x1de777;return Array[_0x1c08a9(0x1d5)](this[_0x1c08a9(0x1bf)])[_0x1c08a9(0x264)](_0x3bc623=>_0x3bc623(_0x5442c3));}}var H=Object[_0x1de777(0x1d3)],V=(_0xe2ad14,_0x5cf984,_0xd847b0,_0x11bb13)=>{for(var _0x4b8bb8=_0x11bb13>0x1?void 0x0:_0x11bb13?H(_0x5cf984,_0xd847b0):_0x5cf984,_0x17c87d=_0xe2ad14['length']-0x1,_0x29fb5a;_0x17c87d>=0x0;_0x17c87d--)(_0x29fb5a=_0xe2ad14[_0x17c87d])&&(_0x4b8bb8=_0x29fb5a(_0x4b8bb8)||_0x4b8bb8);return _0x4b8bb8;},k=(_0x377368,_0x40e30f)=>(_0x2f963f,_0x58d6d1)=>_0x40e30f(_0x2f963f,_0x58d6d1,_0x377368);let E=class extends o[_0x1de777(0x1ff)]{constructor(_0x5ec2ff){var _0x3f8a1a=_0x1de777;super(),this[_0x3f8a1a(0x26a)]=_0x5ec2ff,this[_0x3f8a1a(0x272)]();}[_0x1de777(0x272)](){var _0x30e96e=_0x1de777;[w[_0x30e96e(0x1ad)]['id'],w['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']][_0x30e96e(0x19f)](_0x1aafa8=>{var _0x20a8a0=_0x30e96e;this[_0x20a8a0(0x258)](this[_0x20a8a0(0x26a)][_0x20a8a0(0x1c8)](_0x1aafa8));});}};function _0x22da(){var _0x339381=['onStarting','touchDependencies','_presenter','replace','getMemberID','trim','idle','90702VJjORo','_handleOperation','registerComponent','parse','BuiltInUIPart','colorChannel1','UNIVER_LIVE_SHARE_PLUGIN','prototype','substring','defineProperty','7jPjxQZ','LiveShareController','stopPresenting','CommandType','_startPresenting','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','269652Cbsnpf','path','none','pipe','CollaborationEvent','entries','toDisposable','LIVESHARE_REQUEST_HOST','memberID','subscribe','SAME_OPERATION_SHARE_INTERVAL','LiveShareService','data','evenodd','_univerInstanceService','_fetchOperations','IUniverInstanceService','useDependency','IDLE','mutations','assign','_collabSessionService','_mountLiveShare','useRef','_unitID','Stop\x20presenting','useState','_commandService','params','_handleNewHost','480093OXLZpY','_sharedOperations','getInitialStates','includes','stringify','22272855EnYXQv','FOLLOWING','SessionStatus','mergeOverrideWithDependencies','override','find','getCurrentTypeOfUnit$','forwardRef','1em','dispose$','set','jsxs','xlink:href','asObservable','live-share-icon','complete','2pgKhBj','You\x27re\x20following\x20the\x20presenter','attrs','LIVESHARE_TERMINATE','9059352NeeHWD','LiveShareStatus','createInstance','SetWorksheetActiveOperation','OPERATION','HEADER_MENU','connectInjector','CollaborationSessionService','disposeWithMe','onRendered','end','getTypeOfUnitDisposed$','Module','fill','LIVESHARE_FETCH_OPERATIONS','extend','displayName','_handleTerminate','length','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','map','_config','_startLiveShareCoordinator','32agFZIs','current','_startFollowing','_liveShareService','tryStartPresenting','PRESENTING','InsertSheetMutation','operations','send','dispose','univer-mb-3\x20univer-w-full\x20univer-text-sm','_init','LiveShare','UNIVER_SHEET','call','icon','createElement','RxDisposable','has','button','_entities','Button','_status','forEach','getTypeOfUnitAdded$','currentColor','idSuffix','univer-size-4','DesktopLiveShareController','clear','executeCommand','UniverInstanceType','_status$','_beIdle','Dropdown','next','shouldShareOperation','SetZoomRatioOperation','hasOwnProperty','init','IConfigService','type','then','LiveShareIcon','unitId','concat','Start\x20following','setConfig','698940iFXuKE','_commandDisposable','Injector','_injector','clsx','_stopPresenting','getLiveShareCoordinator','_reporters','registerDependencies','indexOf','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','defIds','presenter','symbol','_handleOffline','Subject','registerSharedOperation','DependentOn','propertyIsEnumerable','_uiPartsService','presenting','jsx','takeUntil','random','Fragment','stopFollowing','sessionStatus$','getOwnPropertyDescriptor','univerjs-icon\x20univerjs-icon-','from','LIVESHARE_OPERATION','getUnitId','not-following','_collabSession','useObservable','Inject','following','OFFLINE','string','text','You\x27re\x20not\x20following\x20the\x20presenter','288870vDDeBX','Present\x20this\x20document','UniverLiveSharePlugin','getConfig','reverse','IUIPartsService','NOT_FOLLOWING','use','1210XFpQjJ','_configService','defs','ICommandService','status$','className','offline','toString','live-share.config','_handleOnline','event$','div','Plugin','startFollowing','children','sheet','tag','registerInitialStateReporter','mask','toStringTag','merge','LiveShareCoordinator','Disposable','_stopFollowing','add'];_0x22da=function(){return _0x339381;};return _0x22da();}E=V([k(0x0,o['Inject'](O))],E);var u=function(){return u=Object['assign']||function(_0x2db527){var _0x437740=_0xb18f;for(var _0x150249,_0x2b2fb2=0x1,_0x3af27a=arguments[_0x437740(0x262)];_0x2b2fb2<_0x3af27a;_0x2b2fb2++){_0x150249=arguments[_0x2b2fb2];for(var _0x355cc8 in _0x150249)Object[_0x437740(0x210)][_0x437740(0x1ae)][_0x437740(0x275)](_0x150249,_0x355cc8)&&(_0x2db527[_0x355cc8]=_0x150249[_0x355cc8]);}return _0x2db527;},u['apply'](this,arguments);},M=function(_0x3cd038,_0x5a98e9){var _0x4c8172=_0x1de777,_0x56a20d={};for(var _0x402a7e in _0x3cd038)Object['prototype'][_0x4c8172(0x1ae)][_0x4c8172(0x275)](_0x3cd038,_0x402a7e)&&_0x5a98e9[_0x4c8172(0x1c1)](_0x402a7e)<0x0&&(_0x56a20d[_0x402a7e]=_0x3cd038[_0x402a7e]);if(_0x3cd038!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x13821d=0x0,_0x402a7e=Object['getOwnPropertySymbols'](_0x3cd038);_0x13821d<_0x402a7e[_0x4c8172(0x262)];_0x13821d++)_0x5a98e9['indexOf'](_0x402a7e[_0x13821d])<0x0&&Object[_0x4c8172(0x210)][_0x4c8172(0x1ca)][_0x4c8172(0x275)](_0x3cd038,_0x402a7e[_0x13821d])&&(_0x56a20d[_0x402a7e[_0x13821d]]=_0x3cd038[_0x402a7e[_0x13821d]]);}return _0x56a20d;},j=f[_0x1de777(0x243)](function(_0x31a061,_0x1a8653){var _0x46e5f7=_0x1de777,_0x537e81=_0x31a061[_0x46e5f7(0x276)],_0x50dcc1=_0x31a061['id'],_0x727b9e=_0x31a061[_0x46e5f7(0x1ee)],_0x409e10=_0x31a061['extend'],_0x4cc01e=M(_0x31a061,[_0x46e5f7(0x276),'id',_0x46e5f7(0x1ee),_0x46e5f7(0x25f)]),_0x31677d=_0x46e5f7(0x1d4)['concat'](_0x50dcc1,'\x20')[_0x46e5f7(0x1b5)](_0x727b9e||'')[_0x46e5f7(0x207)](),_0x3872ca=f[_0x46e5f7(0x230)]('_'[_0x46e5f7(0x1b5)](G()));return y(_0x537e81,''[_0x46e5f7(0x1b5)](_0x50dcc1),{'defIds':_0x537e81['defIds'],'idSuffix':_0x3872ca[_0x46e5f7(0x268)]},u({'ref':_0x1a8653,'className':_0x31677d},_0x4cc01e),_0x409e10);});function y(_0x7b9e5c,_0x389243,_0x4c8749,_0x279155,_0x5e2bcb){var _0x59eb60=_0x1de777;return f[_0x59eb60(0x277)](_0x7b9e5c[_0x59eb60(0x1f9)],u(u({'key':_0x389243},q(_0x7b9e5c,_0x4c8749,_0x5e2bcb)),_0x279155),(W(_0x7b9e5c,_0x4c8749)[_0x59eb60(0x1f7)]||[])[_0x59eb60(0x264)](function(_0xd11a59,_0x2f951b){var _0x54cd0a=_0x59eb60;return y(_0xd11a59,''[_0x54cd0a(0x1b5)](_0x389243,'-')[_0x54cd0a(0x1b5)](_0x7b9e5c[_0x54cd0a(0x1f9)],'-')[_0x54cd0a(0x1b5)](_0x2f951b),_0x4c8749,void 0x0,_0x5e2bcb);}));}function q(_0x44d84c,_0x28e966,_0x53bc04){var _0x534339=_0x1de777,_0x36d0e6=u({},_0x44d84c['attrs']);_0x53bc04!=null&&_0x53bc04[_0x534339(0x20e)]&&_0x36d0e6[_0x534339(0x25d)]===_0x534339(0x20e)&&(_0x36d0e6['fill']=_0x53bc04[_0x534339(0x20e)]),_0x44d84c['tag']==='mask'&&_0x36d0e6['id']&&(_0x36d0e6['id']=_0x36d0e6['id']+_0x28e966[_0x534339(0x1a2)]),Object[_0x534339(0x21e)](_0x36d0e6)[_0x534339(0x19f)](function(_0x5ccecf){var _0x424000=_0x534339,_0x2d7e9e=_0x5ccecf[0x0],_0x233dd1=_0x5ccecf[0x1];_0x2d7e9e===_0x424000(0x1fb)&&typeof _0x233dd1==_0x424000(0x1de)&&(_0x36d0e6[_0x2d7e9e]=_0x233dd1[_0x424000(0x205)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x28e966['idSuffix'],')')));});var _0x48a8fc=_0x28e966[_0x534339(0x1c3)];return!_0x48a8fc||_0x48a8fc[_0x534339(0x262)]===0x0||(_0x44d84c[_0x534339(0x1f9)]===_0x534339(0x1e8)&&_0x36d0e6[_0x534339(0x248)]&&(_0x36d0e6[_0x534339(0x248)]=_0x36d0e6[_0x534339(0x248)]+_0x28e966['idSuffix']),Object[_0x534339(0x21e)](_0x36d0e6)[_0x534339(0x19f)](function(_0x3f58c5){var _0xb88abd=_0x534339,_0x26ea6a=_0x3f58c5[0x0],_0x227acd=_0x3f58c5[0x1];typeof _0x227acd==_0xb88abd(0x1de)&&(_0x36d0e6[_0x26ea6a]=_0x227acd['replace'](/url\(#(.*)\)/,'url(#$1'[_0xb88abd(0x1b5)](_0x28e966[_0xb88abd(0x1a2)],')')));})),_0x36d0e6;}function W(_0x5e988e,_0x3c2994){var _0x4cb835=_0x1de777,_0x305f52,_0x1c6343=_0x3c2994[_0x4cb835(0x1c3)];return!_0x1c6343||_0x1c6343['length']===0x0?_0x5e988e:_0x5e988e[_0x4cb835(0x1f9)]===_0x4cb835(0x1eb)&&(!((_0x305f52=_0x5e988e[_0x4cb835(0x1f7)])===null||_0x305f52===void 0x0)&&_0x305f52['length'])?u(u({},_0x5e988e),{'children':_0x5e988e[_0x4cb835(0x1f7)][_0x4cb835(0x264)](function(_0x3c29db){var _0x15313d=_0x4cb835;return typeof _0x3c29db[_0x15313d(0x24e)]['id']=='string'&&_0x1c6343&&_0x1c6343['includes'](_0x3c29db[_0x15313d(0x24e)]['id'])?u(u({},_0x3c29db),{'attrs':u(u({},_0x3c29db[_0x15313d(0x24e)]),{'id':_0x3c29db['attrs']['id']+_0x3c2994[_0x15313d(0x1a2)]})}):_0x3c29db;})}):_0x5e988e;}function G(){var _0x553f2d=_0x1de777;return Math[_0x553f2d(0x1cf)]()[_0x553f2d(0x1f0)](0x24)[_0x553f2d(0x211)](0x2,0x8);}j[_0x1de777(0x260)]='UniverIcon';var B={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x1de777(0x21b),'viewBox':'0\x200\x2017\x2017','width':_0x1de777(0x244),'height':_0x1de777(0x244)},'children':[{'tag':_0x1de777(0x21a),'attrs':{'fill':_0x1de777(0x1a1),'d':_0x1de777(0x263)}},{'tag':_0x1de777(0x21a),'attrs':{'fill':'currentColor','d':_0x1de777(0x218),'fillRule':_0x1de777(0x226),'clipRule':_0x1de777(0x226)}}]},P=f['forwardRef'](function(_0x33d2a5,_0x1a282e){var _0xea9b89=_0x1de777;return f[_0xea9b89(0x277)](j,Object[_0xea9b89(0x22d)]({},_0x33d2a5,{'id':_0xea9b89(0x24a),'ref':_0x1a282e,'icon':B}));});P[_0x1de777(0x260)]=_0x1de777(0x1b3);var Y=Object[_0x1de777(0x1d3)],R=(_0x4cf114,_0x3a92f1,_0x4c1bff,_0x83d1ac)=>{var _0xfd4e04=_0x1de777;for(var _0x199d52=_0x83d1ac>0x1?void 0x0:_0x83d1ac?Y(_0x3a92f1,_0x4c1bff):_0x3a92f1,_0x22f90e=_0x4cf114[_0xfd4e04(0x262)]-0x1,_0x34c77d;_0x22f90e>=0x0;_0x22f90e--)(_0x34c77d=_0x4cf114[_0x22f90e])&&(_0x199d52=_0x34c77d(_0x199d52)||_0x199d52);return _0x199d52;},S=(_0x30222c,_0xe2a367)=>(_0x165b79,_0x21cdf8)=>_0xe2a367(_0x165b79,_0x21cdf8,_0x30222c);exports[_0x1de777(0x214)]=class extends o[_0x1de777(0x278)]{constructor(_0x423306,_0x5debae,_0x5be375){var _0x17c9e1=_0x1de777;super(),v(this,_0x17c9e1(0x27b),new Map()),(this[_0x17c9e1(0x227)]=_0x423306,this['_injector']=_0x5debae,this['_collabSessionService']=_0x5be375,this[_0x17c9e1(0x272)]());}async['getLiveShareCoordinator'](_0x2b8739){var _0x24912f=_0x1de777;return this[_0x24912f(0x27b)]['has'](_0x2b8739)||await this[_0x24912f(0x266)](_0x2b8739),this['_entities']['get'](_0x2b8739);}['_init'](){var _0x51e5be=_0x1de777;this['_univerInstanceService'][_0x51e5be(0x1a0)](o[_0x51e5be(0x1a7)][_0x51e5be(0x274)])['pipe'](b[_0x51e5be(0x1ce)](this['dispose$']))[_0x51e5be(0x222)](async _0x6731ed=>{var _0x5f0462=_0x51e5be;const _0xcd399=_0x6731ed[_0x5f0462(0x1d7)]();this[_0x5f0462(0x27b)][_0x5f0462(0x279)](_0xcd399)||this[_0x5f0462(0x266)](_0xcd399);}),this[_0x51e5be(0x227)][_0x51e5be(0x25b)](o[_0x51e5be(0x1a7)][_0x51e5be(0x274)])[_0x51e5be(0x21c)](b[_0x51e5be(0x1ce)](this[_0x51e5be(0x245)]))[_0x51e5be(0x222)](_0x45ffe=>{var _0x343b2f=_0x51e5be;const _0x3fbfe5=_0x45ffe[_0x343b2f(0x1d7)](),_0x23d31c=this['_entities']['get'](_0x3fbfe5);_0x23d31c==null||_0x23d31c[_0x343b2f(0x270)]();});}async[_0x1de777(0x266)](_0x444197){var _0x2fd7f2=_0x1de777;const _0x477d30=await this[_0x2fd7f2(0x22e)]['requireSession'](_0x444197),_0x16e9ae=this[_0x2fd7f2(0x1bb)][_0x2fd7f2(0x252)](exports[_0x2fd7f2(0x1fe)],_0x444197,_0x477d30);return _0x16e9ae[_0x2fd7f2(0x1af)](),this[_0x2fd7f2(0x27b)][_0x2fd7f2(0x246)](_0x444197,_0x16e9ae),_0x16e9ae;}},exports['LiveShareController']=R([S(0x0,o[_0x1de777(0x229)]),S(0x1,o[_0x1de777(0x1db)](o[_0x1de777(0x1ba)])),S(0x2,o['Inject'](m[_0x1de777(0x257)]))],exports[_0x1de777(0x214)]);var h=(_0x483fd9=>(_0x483fd9['OFFLINE']=_0x1de777(0x1ef),_0x483fd9[_0x1de777(0x22b)]='idle',_0x483fd9[_0x1de777(0x23d)]=_0x1de777(0x1dc),_0x483fd9[_0x1de777(0x1e7)]='not-following',_0x483fd9[_0x1de777(0x26c)]=_0x1de777(0x1cc),_0x483fd9))(h||{});const Z=_0x1de777(0x223),J=0xc8;exports[_0x1de777(0x1fe)]=class extends o['RxDisposable']{constructor(_0x25274c,_0x13fbb3,_0x49d2c8,_0xa03538,_0x5bf607){var _0x12d27f=_0x1de777;super(),v(this,_0x12d27f(0x1a8),new D['BehaviorSubject'](_0x12d27f(0x208))),v(this,'status$',this[_0x12d27f(0x1a8)][_0x12d27f(0x249)]()),v(this,_0x12d27f(0x272),!0x1),v(this,_0x12d27f(0x1b9),null),v(this,'_presenter',null),(this[_0x12d27f(0x231)]=_0x25274c,this[_0x12d27f(0x1d9)]=_0x13fbb3,this[_0x12d27f(0x1ea)]=_0x49d2c8,this['_liveShareService']=_0xa03538,this[_0x12d27f(0x234)]=_0x5bf607);}get[_0x1de777(0x27d)](){return this['_status$']['getValue']();}['dispose'](){var _0x4148fa=_0x1de777,_0x195f98;(_0x195f98=this[_0x4148fa(0x1b9)])==null||_0x195f98[_0x4148fa(0x270)](),this[_0x4148fa(0x1a8)][_0x4148fa(0x1ab)](_0x4148fa(0x208)),this[_0x4148fa(0x1a8)][_0x4148fa(0x24b)]();}[_0x1de777(0x1af)](){var _0x349664=_0x1de777;this['_init']||(this[_0x349664(0x272)]=!0x0,this[_0x349664(0x1d9)][_0x349664(0x1d2)][_0x349664(0x21c)](b[_0x349664(0x1ce)](this[_0x349664(0x245)]))[_0x349664(0x222)](_0x56caff=>{var _0x6d86e=_0x349664;switch(_0x56caff){case m[_0x6d86e(0x23e)][_0x6d86e(0x1dd)]:this[_0x6d86e(0x1c6)]();break;case m[_0x6d86e(0x23e)]['ONLINE']:this[_0x6d86e(0x1f2)]();break;}}),this[_0x349664(0x1d9)][_0x349664(0x1f3)][_0x349664(0x21c)](b['takeUntil'](this['dispose$']))[_0x349664(0x222)](_0x4346d7=>{var _0x412003=_0x349664;const {eventID:_0x441fa5}=_0x4346d7;switch(_0x441fa5){case _[_0x412003(0x21d)]['LIVESHARE_NEW_HOST']:this[_0x412003(0x236)](_0x4346d7);break;case _[_0x412003(0x21d)][_0x412003(0x1d6)]:this[_0x412003(0x20a)](_0x4346d7);break;case _[_0x412003(0x21d)]['LIVESHARE_TERMINATE']:this[_0x412003(0x261)]();break;case _[_0x412003(0x21d)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x4346d7);break;}}));}[_0x1de777(0x26b)](){var _0x9a3ee8=_0x1de777;this['_collabSession']['send']({'eventID':_[_0x9a3ee8(0x21d)][_0x9a3ee8(0x220)],'data':{'unitID':this['_unitID'],'userID':this[_0x9a3ee8(0x1d9)][_0x9a3ee8(0x206)]()}},this['_unitID']);}[_0x1de777(0x215)](){var _0x1b5050=_0x1de777;this['_status']===_0x1b5050(0x1cc)&&(this[_0x1b5050(0x1a8)][_0x1b5050(0x1ab)](_0x1b5050(0x208)),this[_0x1b5050(0x1d9)]['send']({'eventID':_['CollaborationEvent'][_0x1b5050(0x24f)],'data':{'unitID':this['_unitID']}},this[_0x1b5050(0x231)]));}[_0x1de777(0x1f6)](){var _0x267d3a=_0x1de777;this[_0x267d3a(0x27d)]===_0x267d3a(0x1d8)&&(this[_0x267d3a(0x1a8)]['next'](_0x267d3a(0x1dc)),this[_0x267d3a(0x269)]());}[_0x1de777(0x1d1)](){var _0x8cd770=_0x1de777;this[_0x8cd770(0x27d)]===_0x8cd770(0x1dc)&&this['_stopFollowing']();}['_handleNewHost'](_0x1ca143){var _0x362e1d=_0x1de777;const {presenter:_0x1bbf82}=_0x1ca143[_0x362e1d(0x225)],_0x1cfcc8=this[_0x362e1d(0x1d9)][_0x362e1d(0x206)]();this['_presenter']=_0x1bbf82,_0x1bbf82===_0x1cfcc8?(this[_0x362e1d(0x200)](),this[_0x362e1d(0x217)]()):this[_0x362e1d(0x27d)]!==_0x362e1d(0x1d8)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x1de777(0x228)](){var _0x244864=_0x1de777;const _0x24a1d5={'eventID':_[_0x244864(0x21d)][_0x244864(0x25e)]};this[_0x244864(0x1d9)]['send'](_0x24a1d5,this[_0x244864(0x231)]);}[_0x1de777(0x261)](){var _0x34363a=_0x1de777;this['_presenter']=null,this[_0x34363a(0x27d)]!==_0x34363a(0x1cc)&&this[_0x34363a(0x1a9)]();}['_handleNewChangeSets'](_0x4c4ad2){var _0x33d386=_0x1de777;if(this[_0x33d386(0x27d)]===_0x33d386(0x1dc)&&this[_0x33d386(0x204)]===_0x4c4ad2[_0x33d386(0x225)][_0x33d386(0x221)]){const _0x5f0a5f=_['parseProtocolChangeset'](_0x4c4ad2[_0x33d386(0x225)])[_0x33d386(0x22c)][_0x33d386(0x1e5)]()[_0x33d386(0x241)](_0x250dd1=>_0x250dd1['id']===C[_0x33d386(0x26d)]['id']);if(_0x5f0a5f){const _0x1df667=_0x5f0a5f[_0x33d386(0x235)][_0x33d386(0x1b4)],_0x32ae44=_0x5f0a5f[_0x33d386(0x235)][_0x33d386(0x1f8)]['id'];setTimeout(()=>{var _0x2e8f24=_0x33d386;this[_0x2e8f24(0x234)]['executeCommand'](C[_0x2e8f24(0x253)]['id'],{'unitId':_0x1df667,'subUnitId':_0x32ae44},{'fromCollab':!0x0});});}}}[_0x1de777(0x217)](){var _0x324959=_0x1de777;this[_0x324959(0x1a8)][_0x324959(0x1ab)](_0x324959(0x1cc));const _0x3b25f4=new Map(),_0x236c8f=this[_0x324959(0x1b9)]=new o['DisposableCollection']();_0x236c8f[_0x324959(0x201)](o[_0x324959(0x21f)](()=>{var _0x289005=_0x324959;_0x3b25f4[_0x289005(0x19f)](_0x38fe24=>_0x38fe24[_0x289005(0x24b)]()),_0x3b25f4[_0x289005(0x1a5)]();})),_0x236c8f[_0x324959(0x201)](this[_0x324959(0x234)]['onCommandExecuted'](_0x539662=>{var _0x57d5ce=_0x324959,_0x41a839;if(_0x539662['type']!==o[_0x57d5ce(0x216)][_0x57d5ce(0x254)]||!this['_liveShareService'][_0x57d5ce(0x1ac)](_0x539662['id']))return;const {id:_0x5ce25f}=_0x539662;let _0x3e0e9e;_0x3b25f4[_0x57d5ce(0x279)](_0x5ce25f)?_0x3e0e9e=_0x3b25f4['get'](_0x5ce25f):(_0x3e0e9e=new D[(_0x57d5ce(0x1c7))](),_0x3b25f4[_0x57d5ce(0x246)](_0x5ce25f,_0x3e0e9e),_0x3e0e9e['pipe'](b['throttleTime']((_0x41a839=this[_0x57d5ce(0x1ea)][_0x57d5ce(0x1e4)](Z))!=null?_0x41a839:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x57d5ce(0x222)](_0x110e46=>{var _0x127e07=_0x57d5ce;this['_collabSession']['send']({'eventID':_[_0x127e07(0x21d)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x127e07(0x231)],'operations':{[_0x110e46['id']]:{'id':_0x110e46['id'],'params':JSON[_0x127e07(0x23b)](_0x110e46[_0x127e07(0x235)])}}}},this[_0x127e07(0x231)]);})),_0x3e0e9e[_0x57d5ce(0x1ab)](_0x539662);})),this['_liveShareService'][_0x324959(0x239)](this[_0x324959(0x231)])[_0x324959(0x19f)](_0x4ccd70=>this['_collabSession'][_0x324959(0x26f)]({'eventID':_[_0x324959(0x21d)][_0x324959(0x1d6)],'data':{'unitID':this[_0x324959(0x231)],'operations':{[_0x4ccd70['id']]:{'id':_0x4ccd70['id'],'params':JSON[_0x324959(0x23b)](_0x4ccd70[_0x324959(0x235)])}}}},this[_0x324959(0x231)]));}[_0x1de777(0x1bd)](){var _0x47d18c=_0x1de777,_0x53441d;this[_0x47d18c(0x1a8)]['next'](_0x47d18c(0x208)),(_0x53441d=this['_commandDisposable'])==null||_0x53441d[_0x47d18c(0x270)](),this[_0x47d18c(0x1b9)]=null;}[_0x1de777(0x269)](){var _0x4757e5=_0x1de777,_0x47fee6;(_0x47fee6=this['_commandDisposable'])==null||_0x47fee6[_0x4757e5(0x270)](),this[_0x4757e5(0x1a8)][_0x4757e5(0x1ab)]('following');}[_0x1de777(0x1a9)](){var _0x4641ce=_0x1de777,_0x7d6d42;this[_0x4641ce(0x1a8)]['next']('idle'),(_0x7d6d42=this[_0x4641ce(0x1b9)])==null||_0x7d6d42['dispose'](),this[_0x4641ce(0x1b9)]=null;}[_0x1de777(0x200)](){var _0x44c013=_0x1de777,_0x610851;this[_0x44c013(0x1a8)][_0x44c013(0x1ab)]('not-following'),(_0x610851=this['_commandDisposable'])==null||_0x610851[_0x44c013(0x270)]();}['_handleOperation'](_0x176b28){var _0x4af11f=_0x1de777;if([_0x4af11f(0x1cc),_0x4af11f(0x1d8),_0x4af11f(0x1ef)][_0x4af11f(0x23a)](this[_0x4af11f(0x27d)])||!_0x176b28[_0x4af11f(0x225)][_0x4af11f(0x1c4)]||_0x176b28['data']['presenter']===this['_collabSession']['getMemberID']())return;this[_0x4af11f(0x27d)]==='idle'&&this[_0x4af11f(0x269)]();const _0x21715d=_0x176b28[_0x4af11f(0x225)][_0x4af11f(0x26e)];Object['values'](_0x21715d)[_0x4af11f(0x19f)](_0x5e1435=>{var _0x189995=_0x4af11f;this[_0x189995(0x234)][_0x189995(0x1a6)](_0x5e1435['id'],_0x5e1435[_0x189995(0x235)]?JSON[_0x189995(0x20c)](_0x5e1435[_0x189995(0x235)]):null,{'fromCollab':!0x0});});}[_0x1de777(0x1c6)](){var _0xc09cc5=_0x1de777,_0x8b8de6;this[_0xc09cc5(0x1a8)]['next'](_0xc09cc5(0x1ef)),(_0x8b8de6=this[_0xc09cc5(0x1b9)])==null||_0x8b8de6[_0xc09cc5(0x270)]();}[_0x1de777(0x1f2)](){var _0x4c2d5b=_0x1de777;this[_0x4c2d5b(0x1a8)][_0x4c2d5b(0x1ab)](_0x4c2d5b(0x208)),this['_fetchOperations']();}},exports[_0x1de777(0x1fe)]=R([S(0x2,o[_0x1de777(0x1b0)]),S(0x3,o['Inject'](O)),S(0x4,o[_0x1de777(0x1ec)])],exports[_0x1de777(0x1fe)]);function A(){var _0x340876=_0x1de777;const _0x180f2a=p[_0x340876(0x22a)](exports[_0x340876(0x214)]),_0x32e7ab=p[_0x340876(0x22a)](o[_0x340876(0x229)]),_0x143a41=p[_0x340876(0x1da)](()=>_0x32e7ab[_0x340876(0x242)](o[_0x340876(0x1a7)][_0x340876(0x274)]),void 0x0,!0x1,[]),[_0x4ede26,_0x58bc2c]=f[_0x340876(0x233)](null),[_0x125994,_0x2c211b]=f[_0x340876(0x233)](h[_0x340876(0x22b)]),_0x3a2292=f[_0x340876(0x230)](null);return f['useEffect'](()=>(_0x143a41&&_0x180f2a[_0x340876(0x1be)](_0x143a41['getUnitId']())[_0x340876(0x1b2)](_0x41d534=>{var _0x1422c2=_0x340876;_0x58bc2c(_0x41d534),_0x3a2292['current']=_0x41d534[_0x1422c2(0x1ed)][_0x1422c2(0x222)](_0xf453e1=>{_0x2c211b(_0xf453e1);});}),()=>{var _0x182144=_0x340876,_0x5739a6;(_0x5739a6=_0x3a2292['current'])==null||_0x5739a6['unsubscribe'](),_0x3a2292[_0x182144(0x268)]=null;}),[_0x143a41,_0x180f2a]),_0x4ede26?l['jsx'](g[_0x340876(0x1aa)],{'align':_0x340876(0x25a),'disabled':_0x125994===h[_0x340876(0x1dd)],'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[_0x340876(0x1cd)](K,{'status':_0x125994,'coordinator':_0x4ede26}),'children':l[_0x340876(0x1cd)](_0x340876(0x27a),{'className':g[_0x340876(0x1bc)](_0x340876(0x1c2),{'univer-cursor-not-allowed':_0x125994===h[_0x340876(0x1dd)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x125994!==h[_0x340876(0x1dd)]}),'type':_0x340876(0x27a),'children':l[_0x340876(0x1cd)](P,{'className':_0x340876(0x1a3)})})}):null;}function K(_0x3961f0){var _0x528781=_0x1de777;const {status:_0xb7c2d4,coordinator:_0x17b631}=_0x3961f0;switch(_0xb7c2d4){case h[_0x528781(0x22b)]:return l[_0x528781(0x1cd)](z,{'coordinator':_0x17b631});case h[_0x528781(0x23d)]:return l[_0x528781(0x1cd)](Q,{'coordinator':_0x17b631});case h['NOT_FOLLOWING']:return l[_0x528781(0x1cd)](X,{'coordinator':_0x17b631});case h[_0x528781(0x1dd)]:return l[_0x528781(0x1cd)](te,{});case h[_0x528781(0x26c)]:return l['jsx'](ee,{'coordinator':_0x17b631});default:return null;}}function z(_0x3a5ac1){var _0x24bab0=_0x1de777;const {coordinator:_0x50f623}=_0x3a5ac1;return l[_0x24bab0(0x247)](l['Fragment'],{'children':[l[_0x24bab0(0x1cd)](_0x24bab0(0x1f4),{'className':_0x24bab0(0x271),'children':_0x24bab0(0x1e2)}),l['jsx'](g[_0x24bab0(0x27c)],{'onClick':()=>_0x50f623['tryStartPresenting'](),'children':'Start'})]});}function Q(_0x3ad277){var _0x1fa05a=_0x1de777;const {coordinator:_0x167238}=_0x3ad277;return l[_0x1fa05a(0x247)](l[_0x1fa05a(0x1d0)],{'children':[l[_0x1fa05a(0x1cd)](_0x1fa05a(0x1f4),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x1fa05a(0x24d)}),l[_0x1fa05a(0x1cd)](g[_0x1fa05a(0x27c)],{'onClick':()=>_0x167238[_0x1fa05a(0x1d1)](),'children':'Stop\x20following'})]});}function X(_0x413ea8){var _0x5ef0a8=_0x1de777;const {coordinator:_0x4acf14}=_0x413ea8;return l[_0x5ef0a8(0x247)](l[_0x5ef0a8(0x1d0)],{'children':[l[_0x5ef0a8(0x1cd)]('div',{'className':_0x5ef0a8(0x271),'children':_0x5ef0a8(0x1e0)}),l[_0x5ef0a8(0x1cd)](g[_0x5ef0a8(0x27c)],{'variant':_0x5ef0a8(0x1df),'onClick':()=>_0x4acf14[_0x5ef0a8(0x1f6)](),'children':_0x5ef0a8(0x1b6)})]});}function ee(_0x403edb){var _0x3b1334=_0x1de777;const {coordinator:_0x1351fe}=_0x403edb;return l[_0x3b1334(0x247)](l['Fragment'],{'children':[l[_0x3b1334(0x1cd)](_0x3b1334(0x1f4),{'className':_0x3b1334(0x271),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x3b1334(0x1cd)](g[_0x3b1334(0x27c)],{'variant':'default','onClick':()=>_0x1351fe[_0x3b1334(0x215)](),'children':_0x3b1334(0x232)})]});}function te(){var _0x1f6d55=_0x1de777;return l['jsx'](l[_0x1f6d55(0x1d0)],{'children':'You\x27are\x20offline.'});}var ie=Object[_0x1de777(0x1d3)],ne=(_0x10e0ba,_0x20124d,_0x29ce98,_0x11ff12)=>{for(var _0x115d70=_0x11ff12>0x1?void 0x0:_0x11ff12?ie(_0x20124d,_0x29ce98):_0x20124d,_0x5cee04=_0x10e0ba['length']-0x1,_0x28597e;_0x5cee04>=0x0;_0x5cee04--)(_0x28597e=_0x10e0ba[_0x5cee04])&&(_0x115d70=_0x28597e(_0x115d70)||_0x115d70);return _0x115d70;},L=(_0x8572c3,_0x1e8269)=>(_0x3e64de,_0x93b0e4)=>_0x1e8269(_0x3e64de,_0x93b0e4,_0x8572c3);exports[_0x1de777(0x1a4)]=class extends o[_0x1de777(0x1ff)]{constructor(_0x2d4437,_0x26ef4f){var _0x4e25a6=_0x1de777;super(),this[_0x4e25a6(0x1bb)]=_0x2d4437,this[_0x4e25a6(0x1cb)]=_0x26ef4f,this[_0x4e25a6(0x22f)]();}['_mountLiveShare'](){var _0x45138a=_0x1de777;this[_0x45138a(0x258)](this[_0x45138a(0x1cb)][_0x45138a(0x20b)](p[_0x45138a(0x20d)][_0x45138a(0x255)],()=>p[_0x45138a(0x256)](A,this[_0x45138a(0x1bb)])));}},exports[_0x1de777(0x1a4)]=ne([L(0x0,o['Inject'](o['Injector'])),L(0x1,p[_0x1de777(0x1e6)])],exports[_0x1de777(0x1a4)]);function _0xb18f(_0x1fa03d,_0x49d829){var _0x22da8d=_0x22da();return _0xb18f=function(_0xb18f58,_0x41f7fd){_0xb18f58=_0xb18f58-0x19f;var _0x1610a9=_0x22da8d[_0xb18f58];return _0x1610a9;},_0xb18f(_0x1fa03d,_0x49d829);}var re=Object['defineProperty'],se=Object[_0x1de777(0x1d3)],oe=(_0x2d86f4,_0x4dbf30,_0x5a7432)=>_0x4dbf30 in _0x2d86f4?re(_0x2d86f4,_0x4dbf30,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a7432}):_0x2d86f4[_0x4dbf30]=_0x5a7432,ae=(_0x54f048,_0x1f0094,_0x51923b,_0x3398ac)=>{var _0x348de8=_0x1de777;for(var _0x2b0a0f=_0x3398ac>0x1?void 0x0:_0x3398ac?se(_0x1f0094,_0x51923b):_0x1f0094,_0x1f015e=_0x54f048[_0x348de8(0x262)]-0x1,_0x1c614a;_0x1f015e>=0x0;_0x1f015e--)(_0x1c614a=_0x54f048[_0x1f015e])&&(_0x2b0a0f=_0x1c614a(_0x2b0a0f)||_0x2b0a0f);return _0x2b0a0f;},N=(_0x11b2f1,_0x2bfee9)=>(_0x13ee54,_0x2c6be5)=>_0x2bfee9(_0x13ee54,_0x2c6be5,_0x11b2f1),T=(_0x2febec,_0x2775f,_0x718a4e)=>oe(_0x2febec,typeof _0x2775f!=_0x1de777(0x1c5)?_0x2775f+'':_0x2775f,_0x718a4e);const le=_0x1de777(0x20f);exports[_0x1de777(0x1e3)]=class extends o[_0x1de777(0x1f5)]{constructor(_0x26018f=x,_0x4e1d99,_0x34c1cc){var _0x31cfc4=_0x1de777;super(),this['_config']=_0x26018f,this[_0x31cfc4(0x1bb)]=_0x4e1d99,this[_0x31cfc4(0x1ea)]=_0x34c1cc;const {..._0xa96e02}=o[_0x31cfc4(0x1fd)]({},x,this[_0x31cfc4(0x265)]);this[_0x31cfc4(0x1ea)][_0x31cfc4(0x1b7)]($,_0xa96e02);}[_0x1de777(0x202)](){var _0x5c78a3=_0x1de777;o[_0x5c78a3(0x1c0)](this[_0x5c78a3(0x1bb)],o[_0x5c78a3(0x23f)]([[O],[exports['LiveShareController']],[E],[exports[_0x5c78a3(0x1a4)]]],this['_config'][_0x5c78a3(0x240)])),o[_0x5c78a3(0x203)](this[_0x5c78a3(0x1bb)],[[E]]);}[_0x1de777(0x259)](){var _0x131297=_0x1de777;o['touchDependencies'](this['_injector'],[[exports[_0x131297(0x1a4)]]]);}},T(exports[_0x1de777(0x1e3)],_0x1de777(0x1b1),o[_0x1de777(0x1a7)]['UNIVER_UNKNOWN']),T(exports[_0x1de777(0x1e3)],'pluginName',le),exports['UniverLiveSharePlugin']=ae([o[_0x1de777(0x1c9)](m['UniverCollaborationClientPlugin']),N(0x1,o[_0x1de777(0x1db)](o['Injector'])),N(0x2,o[_0x1de777(0x1b0)])],exports['UniverLiveSharePlugin']),exports[_0x1de777(0x273)]=A,exports[_0x1de777(0x224)]=O,exports[_0x1de777(0x251)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x1dc1a5=_0x9a5a;(function(_0x226a0a,_0x2618f8){var _0x868505=_0x9a5a,_0x2b7b45=_0x226a0a();while(!![]){try{var _0x3e53a3=parseInt(_0x868505(0x1fc))/0x1*(parseInt(_0x868505(0x288))/0x2)+parseInt(_0x868505(0x21a))/0x3*(parseInt(_0x868505(0x20e))/0x4)+parseInt(_0x868505(0x242))/0x5+parseInt(_0x868505(0x25b))/0x6*(-parseInt(_0x868505(0x251))/0x7)+-parseInt(_0x868505(0x1e5))/0x8*(-parseInt(_0x868505(0x27d))/0x9)+parseInt(_0x868505(0x1ef))/0xa*(parseInt(_0x868505(0x249))/0xb)+-parseInt(_0x868505(0x25f))/0xc;if(_0x3e53a3===_0x2618f8)break;else _0x2b7b45['push'](_0x2b7b45['shift']());}catch(_0x1bcc62){_0x2b7b45['push'](_0x2b7b45['shift']());}}}(_0x2d1b,0x6fe2f));var q=Object[_0x1dc1a5(0x1f7)],z=(_0x40f785,_0x44a743,_0x408fe)=>_0x44a743 in _0x40f785?q(_0x40f785,_0x44a743,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x408fe}):_0x40f785[_0x44a743]=_0x408fe,d=(_0x51ecf2,_0x3d67cc,_0x30ef63)=>z(_0x51ecf2,typeof _0x3d67cc!='symbol'?_0x3d67cc+'':_0x3d67cc,_0x30ef63);import{CollaborationSessionService as _0x59712a,SessionStatus as _0x5cb7e1,UniverCollaborationClientPlugin as _0x37ee2a}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3cc522,toDisposable as _0x461eb5,Inject as _0x11836f,IUniverInstanceService as _0x226a9,Injector as _0x152c82,IConfigService as _0xc56c8e,ICommandService as _0x5744d9,RxDisposable as _0x11d7a9,UniverInstanceType as _0xf3e818,DisposableCollection as _0x41998f,CommandType as _0x2938bd,DependentOn as _0x584176,Plugin as _0x24b3db,merge as _0xe275a6,registerDependencies as _0x5dc9fe,mergeOverrideWithDependencies as _0x4e2a80,touchDependencies as _0x1369ca}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x270420,InsertSheetMutation as _0x277ee5}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x573e5f,SetScrollOperation as _0x57ebf2}from'@univerjs/sheets-ui';import{useDependency as _0x3057c1,useObservable as _0x4ac25f,IUIPartsService as _0x472415,BuiltInUIPart as _0x90734a,connectInjector as _0xdd594f}from'@univerjs/ui';import{jsx as _0x27cd08,jsxs as _0x27a89c,Fragment as _0x1b8ec2}from'react/jsx-runtime';import{Dropdown as _0x10ef05,clsx as _0x4e6eb8,Button as _0x1ecb1d}from'@univerjs/design';import{forwardRef as _0x48d152,useRef as _0x1e681e,createElement as _0x1a1785,useState as _0x1d678d,useEffect as _0x30112b}from'react';import{CollaborationEvent as _0x13d362,parseProtocolChangeset as _0x5994b4}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2435f7,Subject as _0x5cd0ad}from'rxjs';import{takeUntil as _0x1f583a,throttleTime as _0x2f05e3}from'rxjs/operators';const Oe=_0x1dc1a5(0x1e4),T={};class L extends _0x3cc522{constructor(){var _0x7e7579=_0x1dc1a5;super(...arguments),d(this,_0x7e7579(0x237),new Set()),d(this,_0x7e7579(0x28c),new Set());}[_0x1dc1a5(0x27e)](_0x243508){var _0x527821=_0x1dc1a5;return this[_0x527821(0x237)]['add'](_0x243508),_0x461eb5(()=>this[_0x527821(0x237)][_0x527821(0x290)](_0x243508));}['registerInitialStateReporter'](_0x3365dc){var _0x12b108=_0x1dc1a5;return this[_0x12b108(0x28c)][_0x12b108(0x26c)](_0x3365dc),_0x461eb5(()=>this[_0x12b108(0x28c)][_0x12b108(0x290)](_0x3365dc));}[_0x1dc1a5(0x281)](_0x10a7c4){var _0x1fc4d6=_0x1dc1a5;return this['_sharedOperations'][_0x1fc4d6(0x1f5)](_0x10a7c4);}[_0x1dc1a5(0x200)](_0x103cb3){var _0x1d0687=_0x1dc1a5;return Array[_0x1d0687(0x230)](this['_reporters'])[_0x1d0687(0x1e2)](_0xa5bd6c=>_0xa5bd6c(_0x103cb3));}}var Ee=Object[_0x1dc1a5(0x28e)],we=(_0x23b85c,_0xa8d3c0,_0xf79fbd,_0x3e749e)=>{var _0x4d8e14=_0x1dc1a5;for(var _0x43d2b9=_0x3e749e>0x1?void 0x0:_0x3e749e?Ee(_0xa8d3c0,_0xf79fbd):_0xa8d3c0,_0xd2a77b=_0x23b85c[_0x4d8e14(0x208)]-0x1,_0x59c018;_0xd2a77b>=0x0;_0xd2a77b--)(_0x59c018=_0x23b85c[_0xd2a77b])&&(_0x43d2b9=_0x59c018(_0x43d2b9)||_0x43d2b9);return _0x43d2b9;},Ne=(_0x11608,_0x44a9aa)=>(_0x236e32,_0x4c3ba1)=>_0x44a9aa(_0x236e32,_0x4c3ba1,_0x11608);let m=class extends _0x3cc522{constructor(_0x18b0b3){var _0xc7508d=_0x1dc1a5;super(),this[_0xc7508d(0x209)]=_0x18b0b3,this[_0xc7508d(0x22f)]();}['_init'](){var _0x38432f=_0x1dc1a5;[_0x573e5f['id'],_0x57ebf2['id'],_0x270420['id']][_0x38432f(0x246)](_0x17617d=>{var _0x25f2dc=_0x38432f;this[_0x25f2dc(0x282)](this[_0x25f2dc(0x209)][_0x25f2dc(0x27e)](_0x17617d));});}};m=we([Ne(0x0,_0x11836f(L))],m);var c=function(){var _0xf20f82=_0x1dc1a5;return c=Object['assign']||function(_0x382a41){for(var _0x524c12,_0x18d876=0x1,_0x5762f3=arguments['length'];_0x18d876<_0x5762f3;_0x18d876++){_0x524c12=arguments[_0x18d876];for(var _0x20bb94 in _0x524c12)Object['prototype']['hasOwnProperty']['call'](_0x524c12,_0x20bb94)&&(_0x382a41[_0x20bb94]=_0x524c12[_0x20bb94]);}return _0x382a41;},c[_0xf20f82(0x275)](this,arguments);},Ce=function(_0x154f64,_0x56327d){var _0x1a16c6=_0x1dc1a5,_0x5c347f={};for(var _0x148b91 in _0x154f64)Object['prototype'][_0x1a16c6(0x24f)]['call'](_0x154f64,_0x148b91)&&_0x56327d[_0x1a16c6(0x234)](_0x148b91)<0x0&&(_0x5c347f[_0x148b91]=_0x154f64[_0x148b91]);if(_0x154f64!=null&&typeof Object[_0x1a16c6(0x1ee)]==_0x1a16c6(0x219)){for(var _0x3373a1=0x0,_0x148b91=Object['getOwnPropertySymbols'](_0x154f64);_0x3373a1<_0x148b91[_0x1a16c6(0x208)];_0x3373a1++)_0x56327d[_0x1a16c6(0x234)](_0x148b91[_0x3373a1])<0x0&&Object[_0x1a16c6(0x1de)][_0x1a16c6(0x20c)][_0x1a16c6(0x240)](_0x154f64,_0x148b91[_0x3373a1])&&(_0x5c347f[_0x148b91[_0x3373a1]]=_0x154f64[_0x148b91[_0x3373a1]]);}return _0x5c347f;},W=_0x48d152(function(_0x349753,_0x4ea887){var _0x2103c2=_0x1dc1a5,_0x279c70=_0x349753[_0x2103c2(0x26b)],_0x33e8ae=_0x349753['id'],_0x56d1ce=_0x349753[_0x2103c2(0x22c)],_0x359807=_0x349753['extend'],_0x1fced0=Ce(_0x349753,['icon','id',_0x2103c2(0x22c),_0x2103c2(0x1f1)]),_0x53b044=_0x2103c2(0x280)[_0x2103c2(0x226)](_0x33e8ae,'\x20')[_0x2103c2(0x226)](_0x56d1ce||'')['trim'](),_0xb9f352=_0x1e681e('_'[_0x2103c2(0x226)](Le()));return Y(_0x279c70,''['concat'](_0x33e8ae),{'defIds':_0x279c70[_0x2103c2(0x1eb)],'idSuffix':_0xb9f352[_0x2103c2(0x22e)]},c({'ref':_0x4ea887,'className':_0x53b044},_0x1fced0),_0x359807);});function Y(_0x53375b,_0x2af4f1,_0x48338c,_0x2f6694,_0x59cfe6){var _0x5b3063=_0x1dc1a5;return _0x1a1785(_0x53375b[_0x5b3063(0x22b)],c(c({'key':_0x2af4f1},De(_0x53375b,_0x48338c,_0x59cfe6)),_0x2f6694),(xe(_0x53375b,_0x48338c)[_0x5b3063(0x264)]||[])[_0x5b3063(0x1e2)](function(_0x4ed47b,_0x355a3e){var _0x2566d4=_0x5b3063;return Y(_0x4ed47b,''['concat'](_0x2af4f1,'-')[_0x2566d4(0x226)](_0x53375b[_0x2566d4(0x22b)],'-')[_0x2566d4(0x226)](_0x355a3e),_0x48338c,void 0x0,_0x59cfe6);}));}function De(_0x34dd98,_0x74f2f,_0x404b37){var _0x2e66c8=_0x1dc1a5,_0x1dac2f=c({},_0x34dd98[_0x2e66c8(0x236)]);_0x404b37!=null&&_0x404b37['colorChannel1']&&_0x1dac2f[_0x2e66c8(0x252)]===_0x2e66c8(0x254)&&(_0x1dac2f['fill']=_0x404b37[_0x2e66c8(0x254)]),_0x34dd98[_0x2e66c8(0x22b)]===_0x2e66c8(0x21e)&&_0x1dac2f['id']&&(_0x1dac2f['id']=_0x1dac2f['id']+_0x74f2f['idSuffix']),Object[_0x2e66c8(0x1f3)](_0x1dac2f)[_0x2e66c8(0x246)](function(_0x2c4903){var _0x27d017=_0x2e66c8,_0x5208c7=_0x2c4903[0x0],_0x23414a=_0x2c4903[0x1];_0x5208c7==='mask'&&typeof _0x23414a==_0x27d017(0x1fa)&&(_0x1dac2f[_0x5208c7]=_0x23414a[_0x27d017(0x25c)](/url\(#(.*)\)/,_0x27d017(0x253)[_0x27d017(0x226)](_0x74f2f['idSuffix'],')')));});var _0x3fb1ed=_0x74f2f[_0x2e66c8(0x1eb)];return!_0x3fb1ed||_0x3fb1ed[_0x2e66c8(0x208)]===0x0||(_0x34dd98[_0x2e66c8(0x22b)]===_0x2e66c8(0x1f8)&&_0x1dac2f[_0x2e66c8(0x1df)]&&(_0x1dac2f[_0x2e66c8(0x1df)]=_0x1dac2f[_0x2e66c8(0x1df)]+_0x74f2f['idSuffix']),Object[_0x2e66c8(0x1f3)](_0x1dac2f)[_0x2e66c8(0x246)](function(_0x468617){var _0x142b12=_0x2e66c8,_0x5f3117=_0x468617[0x0],_0x3aeae6=_0x468617[0x1];typeof _0x3aeae6==_0x142b12(0x1fa)&&(_0x1dac2f[_0x5f3117]=_0x3aeae6['replace'](/url\(#(.*)\)/,_0x142b12(0x253)[_0x142b12(0x226)](_0x74f2f[_0x142b12(0x1dd)],')')));})),_0x1dac2f;}function xe(_0x57d13a,_0x5aa357){var _0x593adf=_0x1dc1a5,_0x4a2ccf,_0x5d2037=_0x5aa357[_0x593adf(0x1eb)];return!_0x5d2037||_0x5d2037[_0x593adf(0x208)]===0x0?_0x57d13a:_0x57d13a[_0x593adf(0x22b)]==='defs'&&(!((_0x4a2ccf=_0x57d13a[_0x593adf(0x264)])===null||_0x4a2ccf===void 0x0)&&_0x4a2ccf[_0x593adf(0x208)])?c(c({},_0x57d13a),{'children':_0x57d13a['children']['map'](function(_0x6f8eb3){var _0x3ec1d4=_0x593adf;return typeof _0x6f8eb3['attrs']['id']==_0x3ec1d4(0x1fa)&&_0x5d2037&&_0x5d2037[_0x3ec1d4(0x289)](_0x6f8eb3[_0x3ec1d4(0x236)]['id'])?c(c({},_0x6f8eb3),{'attrs':c(c({},_0x6f8eb3[_0x3ec1d4(0x236)]),{'id':_0x6f8eb3[_0x3ec1d4(0x236)]['id']+_0x5aa357['idSuffix']})}):_0x6f8eb3;})}):_0x57d13a;}function _0x2d1b(){var _0x4be47a=['univerjs-icon\x20univerjs-icon-','shouldShareOperation','disposeWithMe','next','pluginName','NEW_CHANGESETS','_mountLiveShare','event$','1858Bqmvna','includes','complete','_handleTerminate','_reporters','requireSession','getOwnPropertyDescriptor','SAME_OPERATION_SHARE_INTERVAL','delete','You\x27re\x20following\x20the\x20presenter','idSuffix','prototype','xlink:href','displayName','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','map','memberID','live-share.config','1432mpAaFl','idle','_status','1em','getLiveShareCoordinator','setConfig','defIds','operations','PRESENTING','getOwnPropertySymbols','3830tAykTV','Start','extend','_collabSessionService','entries','following','has','type','defineProperty','use','IDLE','string','dispose','811CIuuDo','send','0\x200\x2017\x2017','set','getInitialStates','onStarting','_config','_fetchOperations','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','text','_commandDisposable','sessionStatus$','length','_liveShareService','UNIVER_SHEET','clear','propertyIsEnumerable','LIVESHARE_REQUEST_HOST','129872GQRnDj','getValue','_collabSession','You\x27re\x20not\x20following\x20the\x20presenter','svg','_stopFollowing','subscribe','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','path','_uiPartsService','_handleOffline','function','39PIhVLu','UNIVER_LIVE_SHARE_PLUGIN','univer-size-4','get','mask','stopPresenting','not-following','stringify','NOT_FOLLOWING','unsubscribe','offline','params','concat','onRendered','evenodd','values','currentColor','tag','className','http://www.w3.org/2000/svg','current','_init','from','_handleOperation','tryStartPresenting','sheet','indexOf','div','attrs','_sharedOperations','LIVESHARE_OPERATION','button','presenting','override','_beIdle','_handleNewChangeSets','assign','substring','call','_handleOnline','581635vZdiMz','ONLINE','univer-mb-3\x20univer-w-full\x20univer-text-sm','OPERATION','forEach','Stop\x20following','_stopPresenting','16302zuteif','find','_startPresenting','_startLiveShareCoordinator','createInstance','unitId','hasOwnProperty','_injector','5761dDgGpC','fill','url(#$1','colorChannel1','getTypeOfUnitAdded$','_entities','FOLLOWING','data','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','_handleNewHost','2694OiSNCF','replace','_configService','LIVESHARE_TERMINATE','15567096PcswXb','_startFollowing','_unitID','_presenter','dispose$','children','LIVESHARE_FETCH_OPERATIONS','random','registerComponent','mutations','OFFLINE','HEADER_MENU','icon','add','Present\x20this\x20document','pipe','executeCommand','LiveShareIcon','getUnitId','_commandService','symbol','_univerInstanceService','apply','getTypeOfUnitDisposed$','stopFollowing','startFollowing','init','status$','live-share-icon','_status$','13356DNEPzh','registerSharedOperation','getMemberID'];_0x2d1b=function(){return _0x4be47a;};return _0x2d1b();}function Le(){var _0x21bcdc=_0x1dc1a5;return Math[_0x21bcdc(0x266)]()['toString'](0x24)[_0x21bcdc(0x23f)](0x2,0x8);}W[_0x1dc1a5(0x1e0)]='UniverIcon';var ye={'tag':_0x1dc1a5(0x212),'attrs':{'xmlns':_0x1dc1a5(0x22d),'fill':'none','viewBox':_0x1dc1a5(0x1fe),'width':_0x1dc1a5(0x1e8),'height':_0x1dc1a5(0x1e8)},'children':[{'tag':_0x1dc1a5(0x216),'attrs':{'fill':'currentColor','d':_0x1dc1a5(0x259)}},{'tag':_0x1dc1a5(0x216),'attrs':{'fill':_0x1dc1a5(0x22a),'d':_0x1dc1a5(0x204),'fillRule':'evenodd','clipRule':_0x1dc1a5(0x228)}}]},B=_0x48d152(function(_0xd3bc53,_0x129ca6){var _0x391702=_0x1dc1a5;return _0x1a1785(W,Object[_0x391702(0x23e)]({},_0xd3bc53,{'id':_0x391702(0x27b),'ref':_0x129ca6,'icon':ye}));});B[_0x1dc1a5(0x1e0)]=_0x1dc1a5(0x270);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x4d78b0,_0x566ccb,_0x5b3e10,_0x1d0e66)=>{var _0x64c602=_0x1dc1a5;for(var _0x260934=_0x1d0e66>0x1?void 0x0:_0x1d0e66?Re(_0x566ccb,_0x5b3e10):_0x566ccb,_0xbafe8b=_0x4d78b0[_0x64c602(0x208)]-0x1,_0x45658b;_0xbafe8b>=0x0;_0xbafe8b--)(_0x45658b=_0x4d78b0[_0xbafe8b])&&(_0x260934=_0x45658b(_0x260934)||_0x260934);return _0x260934;},f=(_0x53bd30,_0x5a5140)=>(_0x358ecc,_0x55e6e1)=>_0x5a5140(_0x358ecc,_0x55e6e1,_0x53bd30);let I=class extends _0x11d7a9{constructor(_0x36d8bf,_0x249925,_0x5e4231){var _0x5da9e8=_0x1dc1a5;super(),d(this,_0x5da9e8(0x256),new Map()),(this['_univerInstanceService']=_0x36d8bf,this[_0x5da9e8(0x250)]=_0x249925,this['_collabSessionService']=_0x5e4231,this['_init']());}async[_0x1dc1a5(0x1e9)](_0x5937ac){var _0x5c2ef3=_0x1dc1a5;return this['_entities'][_0x5c2ef3(0x1f5)](_0x5937ac)||await this[_0x5c2ef3(0x24c)](_0x5937ac),this[_0x5c2ef3(0x256)][_0x5c2ef3(0x21d)](_0x5937ac);}[_0x1dc1a5(0x22f)](){var _0x4ccc5b=_0x1dc1a5;this['_univerInstanceService'][_0x4ccc5b(0x255)](_0xf3e818[_0x4ccc5b(0x20a)])['pipe'](_0x1f583a(this[_0x4ccc5b(0x263)]))[_0x4ccc5b(0x214)](async _0x364371=>{var _0x4a50e9=_0x4ccc5b;const _0x5aac7b=_0x364371['getUnitId']();this[_0x4a50e9(0x256)][_0x4a50e9(0x1f5)](_0x5aac7b)||this[_0x4a50e9(0x24c)](_0x5aac7b);}),this[_0x4ccc5b(0x274)][_0x4ccc5b(0x276)](_0xf3e818[_0x4ccc5b(0x20a)])[_0x4ccc5b(0x26e)](_0x1f583a(this['dispose$']))[_0x4ccc5b(0x214)](_0x42893f=>{var _0x7c2bcb=_0x4ccc5b;const _0x2a99fc=_0x42893f[_0x7c2bcb(0x271)](),_0x8edf28=this[_0x7c2bcb(0x256)][_0x7c2bcb(0x21d)](_0x2a99fc);_0x8edf28==null||_0x8edf28[_0x7c2bcb(0x1fb)]();});}async[_0x1dc1a5(0x24c)](_0x51811d){var _0x7527a2=_0x1dc1a5;const _0x16f683=await this[_0x7527a2(0x1f2)][_0x7527a2(0x28d)](_0x51811d),_0x294384=this['_injector'][_0x7527a2(0x24d)](C,_0x51811d,_0x16f683);return _0x294384['init'](),this[_0x7527a2(0x256)][_0x7527a2(0x1ff)](_0x51811d,_0x294384),_0x294384;}};I=Z([f(0x0,_0x226a9),f(0x1,_0x11836f(_0x152c82)),f(0x2,_0x11836f(_0x59712a))],I);var h=(_0x44dfc3=>(_0x44dfc3['OFFLINE']=_0x1dc1a5(0x224),_0x44dfc3[_0x1dc1a5(0x1f9)]=_0x1dc1a5(0x1e6),_0x44dfc3['FOLLOWING']=_0x1dc1a5(0x1f4),_0x44dfc3[_0x1dc1a5(0x222)]='not-following',_0x44dfc3[_0x1dc1a5(0x1ed)]=_0x1dc1a5(0x23a),_0x44dfc3))(h||{});const Pe=_0x1dc1a5(0x28f),Ae=0xc8;let C=class extends _0x11d7a9{constructor(_0x43949c,_0x1304ef,_0x4391b9,_0x59b486,_0x5ee9f2){var _0xf9101c=_0x1dc1a5;super(),d(this,_0xf9101c(0x27c),new _0x2435f7(_0xf9101c(0x1e6))),d(this,_0xf9101c(0x27a),this[_0xf9101c(0x27c)]['asObservable']()),d(this,_0xf9101c(0x22f),!0x1),d(this,_0xf9101c(0x206),null),d(this,_0xf9101c(0x262),null),(this[_0xf9101c(0x261)]=_0x43949c,this[_0xf9101c(0x210)]=_0x1304ef,this[_0xf9101c(0x25d)]=_0x4391b9,this['_liveShareService']=_0x59b486,this[_0xf9101c(0x272)]=_0x5ee9f2);}get[_0x1dc1a5(0x1e7)](){var _0x23df23=_0x1dc1a5;return this[_0x23df23(0x27c)][_0x23df23(0x20f)]();}[_0x1dc1a5(0x1fb)](){var _0x297721=_0x1dc1a5,_0x41acd1;(_0x41acd1=this[_0x297721(0x206)])==null||_0x41acd1[_0x297721(0x1fb)](),this[_0x297721(0x27c)][_0x297721(0x283)](_0x297721(0x1e6)),this['_status$']['complete']();}[_0x1dc1a5(0x279)](){var _0x2c11d2=_0x1dc1a5;this['_init']||(this[_0x2c11d2(0x22f)]=!0x0,this[_0x2c11d2(0x210)][_0x2c11d2(0x207)][_0x2c11d2(0x26e)](_0x1f583a(this[_0x2c11d2(0x263)]))[_0x2c11d2(0x214)](_0x102abd=>{var _0x2b19b8=_0x2c11d2;switch(_0x102abd){case _0x5cb7e1[_0x2b19b8(0x269)]:this[_0x2b19b8(0x218)]();break;case _0x5cb7e1[_0x2b19b8(0x243)]:this[_0x2b19b8(0x241)]();break;}}),this[_0x2c11d2(0x210)][_0x2c11d2(0x287)][_0x2c11d2(0x26e)](_0x1f583a(this['dispose$']))['subscribe'](_0x4547ff=>{var _0x45c8e2=_0x2c11d2;const {eventID:_0xe78d90}=_0x4547ff;switch(_0xe78d90){case _0x13d362['LIVESHARE_NEW_HOST']:this[_0x45c8e2(0x25a)](_0x4547ff);break;case _0x13d362[_0x45c8e2(0x238)]:this[_0x45c8e2(0x231)](_0x4547ff);break;case _0x13d362[_0x45c8e2(0x25e)]:this['_handleTerminate']();break;case _0x13d362[_0x45c8e2(0x285)]:this[_0x45c8e2(0x23d)](_0x4547ff);break;}}));}[_0x1dc1a5(0x232)](){var _0x2cee79=_0x1dc1a5;this[_0x2cee79(0x210)][_0x2cee79(0x1fd)]({'eventID':_0x13d362[_0x2cee79(0x20d)],'data':{'unitID':this[_0x2cee79(0x261)],'userID':this[_0x2cee79(0x210)][_0x2cee79(0x27f)]()}},this[_0x2cee79(0x261)]);}[_0x1dc1a5(0x21f)](){var _0x556b99=_0x1dc1a5;this['_status']===_0x556b99(0x23a)&&(this['_status$'][_0x556b99(0x283)](_0x556b99(0x1e6)),this['_collabSession']['send']({'eventID':_0x13d362[_0x556b99(0x25e)],'data':{'unitID':this['_unitID']}},this['_unitID']));}['startFollowing'](){var _0x12637a=_0x1dc1a5;this['_status']===_0x12637a(0x220)&&(this['_status$'][_0x12637a(0x283)](_0x12637a(0x1f4)),this[_0x12637a(0x260)]());}[_0x1dc1a5(0x277)](){var _0xb7f591=_0x1dc1a5;this[_0xb7f591(0x1e7)]===_0xb7f591(0x1f4)&&this['_stopFollowing']();}[_0x1dc1a5(0x25a)](_0x511865){var _0x4dabc0=_0x1dc1a5;const {presenter:_0x1ed843}=_0x511865[_0x4dabc0(0x258)],_0x1fd176=this[_0x4dabc0(0x210)][_0x4dabc0(0x27f)]();this[_0x4dabc0(0x262)]=_0x1ed843,_0x1ed843===_0x1fd176?(this[_0x4dabc0(0x213)](),this[_0x4dabc0(0x24b)]()):this[_0x4dabc0(0x1e7)]!==_0x4dabc0(0x220)&&(this[_0x4dabc0(0x248)](),this['_startFollowing']());}[_0x1dc1a5(0x203)](){var _0x42d417=_0x1dc1a5;const _0x30f94f={'eventID':_0x13d362[_0x42d417(0x265)]};this[_0x42d417(0x210)][_0x42d417(0x1fd)](_0x30f94f,this[_0x42d417(0x261)]);}[_0x1dc1a5(0x28b)](){var _0x13d04c=_0x1dc1a5;this[_0x13d04c(0x262)]=null,this['_status']!=='presenting'&&this[_0x13d04c(0x23c)]();}[_0x1dc1a5(0x23d)](_0x548e45){var _0x1500d0=_0x1dc1a5;if(this[_0x1500d0(0x1e7)]===_0x1500d0(0x1f4)&&this[_0x1500d0(0x262)]===_0x548e45[_0x1500d0(0x258)][_0x1500d0(0x1e3)]){const _0x3d4d3e=_0x5994b4(_0x548e45[_0x1500d0(0x258)])[_0x1500d0(0x268)]['reverse']()[_0x1500d0(0x24a)](_0x5f2051=>_0x5f2051['id']===_0x277ee5['id']);if(_0x3d4d3e){const _0x2b5839=_0x3d4d3e[_0x1500d0(0x225)][_0x1500d0(0x24e)],_0x3158cd=_0x3d4d3e[_0x1500d0(0x225)][_0x1500d0(0x233)]['id'];setTimeout(()=>{var _0x9b4c99=_0x1500d0;this[_0x9b4c99(0x272)]['executeCommand'](_0x270420['id'],{'unitId':_0x2b5839,'subUnitId':_0x3158cd},{'fromCollab':!0x0});});}}}[_0x1dc1a5(0x24b)](){var _0xda1a23=_0x1dc1a5;this['_status$'][_0xda1a23(0x283)]('presenting');const _0x1cb51a=new Map(),_0x42a9d4=this[_0xda1a23(0x206)]=new _0x41998f();_0x42a9d4[_0xda1a23(0x26c)](_0x461eb5(()=>{var _0x2a6adf=_0xda1a23;_0x1cb51a[_0x2a6adf(0x246)](_0x4adf32=>_0x4adf32[_0x2a6adf(0x28a)]()),_0x1cb51a[_0x2a6adf(0x20b)]();})),_0x42a9d4[_0xda1a23(0x26c)](this['_commandService']['onCommandExecuted'](_0x45eee9=>{var _0x15c325=_0xda1a23,_0x8a6bb1;if(_0x45eee9['type']!==_0x2938bd[_0x15c325(0x245)]||!this[_0x15c325(0x209)][_0x15c325(0x281)](_0x45eee9['id']))return;const {id:_0x5945af}=_0x45eee9;let _0x2ee6cf;_0x1cb51a[_0x15c325(0x1f5)](_0x5945af)?_0x2ee6cf=_0x1cb51a[_0x15c325(0x21d)](_0x5945af):(_0x2ee6cf=new _0x5cd0ad(),_0x1cb51a[_0x15c325(0x1ff)](_0x5945af,_0x2ee6cf),_0x2ee6cf[_0x15c325(0x26e)](_0x2f05e3((_0x8a6bb1=this[_0x15c325(0x25d)]['getConfig'](Pe))!=null?_0x8a6bb1:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x15c325(0x214)](_0x18a91a=>{var _0x4c40ee=_0x15c325;this[_0x4c40ee(0x210)][_0x4c40ee(0x1fd)]({'eventID':_0x13d362['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4c40ee(0x261)],'operations':{[_0x18a91a['id']]:{'id':_0x18a91a['id'],'params':JSON[_0x4c40ee(0x221)](_0x18a91a[_0x4c40ee(0x225)])}}}},this['_unitID']);})),_0x2ee6cf[_0x15c325(0x283)](_0x45eee9);})),this[_0xda1a23(0x209)][_0xda1a23(0x200)](this[_0xda1a23(0x261)])[_0xda1a23(0x246)](_0x1ee8f0=>this[_0xda1a23(0x210)][_0xda1a23(0x1fd)]({'eventID':_0x13d362['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xda1a23(0x261)],'operations':{[_0x1ee8f0['id']]:{'id':_0x1ee8f0['id'],'params':JSON[_0xda1a23(0x221)](_0x1ee8f0[_0xda1a23(0x225)])}}}},this[_0xda1a23(0x261)]));}[_0x1dc1a5(0x248)](){var _0x2f101c=_0x1dc1a5,_0x2dd4f0;this[_0x2f101c(0x27c)][_0x2f101c(0x283)]('idle'),(_0x2dd4f0=this[_0x2f101c(0x206)])==null||_0x2dd4f0[_0x2f101c(0x1fb)](),this['_commandDisposable']=null;}[_0x1dc1a5(0x260)](){var _0x57e0c0=_0x1dc1a5,_0x818fda;(_0x818fda=this[_0x57e0c0(0x206)])==null||_0x818fda[_0x57e0c0(0x1fb)](),this['_status$'][_0x57e0c0(0x283)]('following');}[_0x1dc1a5(0x23c)](){var _0x264ad6=_0x1dc1a5,_0x270446;this[_0x264ad6(0x27c)]['next'](_0x264ad6(0x1e6)),(_0x270446=this[_0x264ad6(0x206)])==null||_0x270446[_0x264ad6(0x1fb)](),this[_0x264ad6(0x206)]=null;}[_0x1dc1a5(0x213)](){var _0x53295a=_0x1dc1a5,_0x296f09;this['_status$'][_0x53295a(0x283)](_0x53295a(0x220)),(_0x296f09=this[_0x53295a(0x206)])==null||_0x296f09[_0x53295a(0x1fb)]();}[_0x1dc1a5(0x231)](_0x58dc90){var _0x554f7b=_0x1dc1a5;if([_0x554f7b(0x23a),_0x554f7b(0x220),_0x554f7b(0x224)][_0x554f7b(0x289)](this[_0x554f7b(0x1e7)])||!_0x58dc90[_0x554f7b(0x258)]['presenter']||_0x58dc90[_0x554f7b(0x258)]['presenter']===this[_0x554f7b(0x210)][_0x554f7b(0x27f)]())return;this['_status']==='idle'&&this[_0x554f7b(0x260)]();const _0x363df3=_0x58dc90[_0x554f7b(0x258)][_0x554f7b(0x1ec)];Object[_0x554f7b(0x229)](_0x363df3)[_0x554f7b(0x246)](_0x4ba255=>{var _0x3dca81=_0x554f7b;this['_commandService'][_0x3dca81(0x26f)](_0x4ba255['id'],_0x4ba255[_0x3dca81(0x225)]?JSON['parse'](_0x4ba255['params']):null,{'fromCollab':!0x0});});}[_0x1dc1a5(0x218)](){var _0x46acff=_0x1dc1a5,_0x31f2b1;this['_status$'][_0x46acff(0x283)]('offline'),(_0x31f2b1=this[_0x46acff(0x206)])==null||_0x31f2b1['dispose']();}[_0x1dc1a5(0x241)](){var _0x783176=_0x1dc1a5;this[_0x783176(0x27c)]['next'](_0x783176(0x1e6)),this[_0x783176(0x203)]();}};C=Z([f(0x2,_0xc56c8e),f(0x3,_0x11836f(L)),f(0x4,_0x5744d9)],C);function Te(){var _0x5bd601=_0x1dc1a5;const _0x1ba137=_0x3057c1(I),_0x546857=_0x3057c1(_0x226a9),_0xe6e66=_0x4ac25f(()=>_0x546857['getCurrentTypeOfUnit$'](_0xf3e818['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x14565d,_0x4df942]=_0x1d678d(null),[_0x1d04e7,_0x54ecd5]=_0x1d678d(h['IDLE']),_0x2c669f=_0x1e681e(null);return _0x30112b(()=>(_0xe6e66&&_0x1ba137[_0x5bd601(0x1e9)](_0xe6e66[_0x5bd601(0x271)]())['then'](_0x2e8864=>{var _0x591b17=_0x5bd601;_0x4df942(_0x2e8864),_0x2c669f[_0x591b17(0x22e)]=_0x2e8864[_0x591b17(0x27a)]['subscribe'](_0x49db83=>{_0x54ecd5(_0x49db83);});}),()=>{var _0x4590de=_0x5bd601,_0x257143;(_0x257143=_0x2c669f[_0x4590de(0x22e)])==null||_0x257143[_0x4590de(0x223)](),_0x2c669f[_0x4590de(0x22e)]=null;}),[_0xe6e66,_0x1ba137]),_0x14565d?_0x27cd08(_0x10ef05,{'align':'end','disabled':_0x1d04e7===h[_0x5bd601(0x269)],'className':_0x5bd601(0x215),'overlay':_0x27cd08($e,{'status':_0x1d04e7,'coordinator':_0x14565d}),'children':_0x27cd08(_0x5bd601(0x239),{'className':_0x4e6eb8(_0x5bd601(0x1e1),{'univer-cursor-not-allowed':_0x1d04e7===h[_0x5bd601(0x269)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1d04e7!==h[_0x5bd601(0x269)]}),'type':_0x5bd601(0x239),'children':_0x27cd08(B,{'className':_0x5bd601(0x21c)})})}):null;}function $e(_0x81be61){var _0x323e16=_0x1dc1a5;const {status:_0x2fd48e,coordinator:_0x10994b}=_0x81be61;switch(_0x2fd48e){case h[_0x323e16(0x1f9)]:return _0x27cd08(Fe,{'coordinator':_0x10994b});case h[_0x323e16(0x257)]:return _0x27cd08(He,{'coordinator':_0x10994b});case h[_0x323e16(0x222)]:return _0x27cd08(je,{'coordinator':_0x10994b});case h[_0x323e16(0x269)]:return _0x27cd08(Ve,{});case h['PRESENTING']:return _0x27cd08(Ue,{'coordinator':_0x10994b});default:return null;}}function Fe(_0x4ceb91){var _0x3de3bb=_0x1dc1a5;const {coordinator:_0x4c6c4a}=_0x4ceb91;return _0x27a89c(_0x1b8ec2,{'children':[_0x27cd08(_0x3de3bb(0x235),{'className':_0x3de3bb(0x244),'children':_0x3de3bb(0x26d)}),_0x27cd08(_0x1ecb1d,{'onClick':()=>_0x4c6c4a[_0x3de3bb(0x232)](),'children':_0x3de3bb(0x1f0)})]});}function He(_0x4d973b){var _0xbb5e41=_0x1dc1a5;const {coordinator:_0x15c2d9}=_0x4d973b;return _0x27a89c(_0x1b8ec2,{'children':[_0x27cd08(_0xbb5e41(0x235),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xbb5e41(0x1dc)}),_0x27cd08(_0x1ecb1d,{'onClick':()=>_0x15c2d9['stopFollowing'](),'children':_0xbb5e41(0x247)})]});}function je(_0xe328e6){var _0x259839=_0x1dc1a5;const {coordinator:_0x43b13d}=_0xe328e6;return _0x27a89c(_0x1b8ec2,{'children':[_0x27cd08(_0x259839(0x235),{'className':_0x259839(0x244),'children':_0x259839(0x211)}),_0x27cd08(_0x1ecb1d,{'variant':_0x259839(0x205),'onClick':()=>_0x43b13d[_0x259839(0x278)](),'children':'Start\x20following'})]});}function Ue(_0x58fb52){var _0x26c039=_0x1dc1a5;const {coordinator:_0x116d2e}=_0x58fb52;return _0x27a89c(_0x1b8ec2,{'children':[_0x27cd08(_0x26c039(0x235),{'className':_0x26c039(0x244),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x27cd08(_0x1ecb1d,{'variant':'default','onClick':()=>_0x116d2e[_0x26c039(0x21f)](),'children':'Stop\x20presenting'})]});}function Ve(){return _0x27cd08(_0x1b8ec2,{'children':'You\x27are\x20offline.'});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0xbf3b1a,_0x53250a,_0x237309,_0x2af3f6)=>{var _0xc7381f=_0x1dc1a5;for(var _0x165fb1=_0x2af3f6>0x1?void 0x0:_0x2af3f6?Me(_0x53250a,_0x237309):_0x53250a,_0x11aafc=_0xbf3b1a[_0xc7381f(0x208)]-0x1,_0x40275f;_0x11aafc>=0x0;_0x11aafc--)(_0x40275f=_0xbf3b1a[_0x11aafc])&&(_0x165fb1=_0x40275f(_0x165fb1)||_0x165fb1);return _0x165fb1;},$=(_0x6353cd,_0x1c8ca9)=>(_0x3f568a,_0x1ade42)=>_0x1c8ca9(_0x3f568a,_0x1ade42,_0x6353cd);let b=class extends _0x3cc522{constructor(_0x49fa0a,_0x27d195){var _0x35f697=_0x1dc1a5;super(),this[_0x35f697(0x250)]=_0x49fa0a,this[_0x35f697(0x217)]=_0x27d195,this[_0x35f697(0x286)]();}['_mountLiveShare'](){var _0x538cec=_0x1dc1a5;this[_0x538cec(0x282)](this[_0x538cec(0x217)][_0x538cec(0x267)](_0x90734a[_0x538cec(0x26a)],()=>_0xdd594f(Te,this[_0x538cec(0x250)])));}};b=ke([$(0x0,_0x11836f(_0x152c82)),$(0x1,_0x472415)],b);function _0x9a5a(_0x417cd0,_0x5be246){var _0x2d1be7=_0x2d1b();return _0x9a5a=function(_0x9a5a44,_0x255086){_0x9a5a44=_0x9a5a44-0x1dc;var _0x536074=_0x2d1be7[_0x9a5a44];return _0x536074;},_0x9a5a(_0x417cd0,_0x5be246);}var Ge=Object[_0x1dc1a5(0x1f7)],We=Object[_0x1dc1a5(0x28e)],Ye=(_0x54685d,_0x1c84ff,_0x35efcd)=>_0x1c84ff in _0x54685d?Ge(_0x54685d,_0x1c84ff,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x35efcd}):_0x54685d[_0x1c84ff]=_0x35efcd,Be=(_0x30fece,_0xe54ba2,_0x520247,_0x2dbfff)=>{var _0x59e07b=_0x1dc1a5;for(var _0x40f40c=_0x2dbfff>0x1?void 0x0:_0x2dbfff?We(_0xe54ba2,_0x520247):_0xe54ba2,_0x2b0977=_0x30fece[_0x59e07b(0x208)]-0x1,_0x2cb4a7;_0x2b0977>=0x0;_0x2b0977--)(_0x2cb4a7=_0x30fece[_0x2b0977])&&(_0x40f40c=_0x2cb4a7(_0x40f40c)||_0x40f40c);return _0x40f40c;},F=(_0x35cd9e,_0x443b1b)=>(_0x462fa5,_0x40bf02)=>_0x443b1b(_0x462fa5,_0x40bf02,_0x35cd9e),J=(_0x1990ba,_0x38b124,_0x2c17ee)=>Ye(_0x1990ba,typeof _0x38b124!=_0x1dc1a5(0x273)?_0x38b124+'':_0x38b124,_0x2c17ee);const Ze=_0x1dc1a5(0x21b);let O=class extends _0x24b3db{constructor(_0x292110=T,_0x272aba,_0x5ea17c){var _0x50295a=_0x1dc1a5;super(),this[_0x50295a(0x202)]=_0x292110,this[_0x50295a(0x250)]=_0x272aba,this[_0x50295a(0x25d)]=_0x5ea17c;const {..._0xb9c6ab}=_0xe275a6({},T,this[_0x50295a(0x202)]);this[_0x50295a(0x25d)][_0x50295a(0x1ea)](Oe,_0xb9c6ab);}[_0x1dc1a5(0x201)](){var _0x10578c=_0x1dc1a5;_0x5dc9fe(this[_0x10578c(0x250)],_0x4e2a80([[L],[I],[m],[b]],this['_config'][_0x10578c(0x23b)])),_0x1369ca(this['_injector'],[[m]]);}[_0x1dc1a5(0x227)](){var _0x1c0858=_0x1dc1a5;_0x1369ca(this[_0x1c0858(0x250)],[[b]]);}};J(O,_0x1dc1a5(0x1f6),_0xf3e818['UNIVER_UNKNOWN']),J(O,_0x1dc1a5(0x284),Ze),O=Be([_0x584176(_0x37ee2a),F(0x1,_0x11836f(_0x152c82)),F(0x2,_0xc56c8e)],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 _0x3eff67=_0x31ab;(function(_0x34e3dd,_0xd7c235){var _0x5c499f=_0x31ab,_0x194726=_0x34e3dd();while(!![]){try{var _0x16e3db=parseInt(_0x5c499f(0x1e2))/0x1+-parseInt(_0x5c499f(0x191))/0x2+parseInt(_0x5c499f(0x1cf))/0x3*(parseInt(_0x5c499f(0x168))/0x4)+-parseInt(_0x5c499f(0x1b8))/0x5*(parseInt(_0x5c499f(0x187))/0x6)+parseInt(_0x5c499f(0x1b6))/0x7+-parseInt(_0x5c499f(0x1ae))/0x8+parseInt(_0x5c499f(0x1a0))/0x9;if(_0x16e3db===_0xd7c235)break;else _0x194726['push'](_0x194726['shift']());}catch(_0x1ed860){_0x194726['push'](_0x194726['shift']());}}}(_0x1f46,0x9efd8));var q=Object[_0x3eff67(0x166)],z=(_0x5672ec,_0x4afd82,_0x3b2038)=>_0x4afd82 in _0x5672ec?q(_0x5672ec,_0x4afd82,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b2038}):_0x5672ec[_0x4afd82]=_0x3b2038,d=(_0x44d3ed,_0x5bcb97,_0x5a04a1)=>z(_0x44d3ed,typeof _0x5bcb97!=_0x3eff67(0x1d9)?_0x5bcb97+'':_0x5bcb97,_0x5a04a1);import{CollaborationSessionService as _0x3fb12e,SessionStatus as _0x1efbf3,UniverCollaborationClientPlugin as _0x10ce60}from'@univerjs-pro/collaboration-client';function _0x1f46(){var _0x18c72e=['path','use','idSuffix','LIVESHARE_OPERATION','hasOwnProperty','parse','getValue','13037319NXRNtn','getConfig','defs','length','memberID','complete','next','override','_configService','LIVESHARE_NEW_HOST','setConfig','UniverIcon','_startFollowing','dispose','4891152Reqask','status$','_mountLiveShare','icon','_reporters','_handleTerminate','clear','onStarting','2696883XAIoym','_sharedOperations','60xrnJUp','svg','_status$','You\x27re\x20following\x20the\x20presenter','_uiPartsService','UNIVER_SHEET','set','startFollowing','type','sheet','OFFLINE','univer-size-4','replace','ONLINE','children','_commandService','currentColor','prototype','getOwnPropertySymbols','pipe','Start\x20following','string','http://www.w3.org/2000/svg','11055xDOuhu','registerInitialStateReporter','mutations','getOwnPropertyDescriptor','presenter','_presenter','includes','forEach','div','stringify','symbol','from','has','send','reverse','0\x200\x2017\x2017','end','_init','fill','234688jVGHQb','disposeWithMe','getInitialStates','assign','Stop\x20following','get','createInstance','_stopFollowing','_collabSessionService','registerSharedOperation','_handleOperation','_handleNewHost','url(#$1','_liveShareService','apply','evenodd','attrs','Start','NOT_FOLLOWING','current','1em','init','call','LIVESHARE_REQUEST_HOST','displayName','shouldShareOperation','offline','live-share-icon','subscribe','asObservable','trim','_fetchOperations','dispose$','data','extend','PRESENTING','add','_beIdle','univerjs-icon\x20univerjs-icon-','NEW_CHANGESETS','_handleOffline','random','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','unitId','delete','className','stopPresenting','OPERATION','idle','_entities','_handleOnline','defineProperty','Stop\x20presenting','676eBmkdb','pluginName','xlink:href','sessionStatus$','univer-mb-3\x20univer-w-full\x20univer-text-sm','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','onCommandExecuted','_commandDisposable','concat','executeCommand','_unitID','tryStartPresenting','getTypeOfUnitAdded$','_config','values','FOLLOWING','text','You\x27re\x20presenting\x20the\x20document','colorChannel1','following','default','button','map','_univerInstanceService','then','getMemberID','SAME_OPERATION_SHARE_INTERVAL','getLiveShareCoordinator','not-following','entries','_status','638688SbpAel','_stopPresenting','getUnitId','defIds','_startLiveShareCoordinator','LIVESHARE_TERMINATE','operations','_startPresenting','params','UNIVER_LIVE_SHARE_PLUGIN','302638GNyelZ','tag','_injector','getCurrentTypeOfUnit$','_handleNewChangeSets','IDLE','_collabSession','presenting'];_0x1f46=function(){return _0x18c72e;};return _0x1f46();}import{Disposable as _0x41e790,toDisposable as _0x1c3b80,Inject as _0x409218,IUniverInstanceService as _0x55c1e4,Injector as _0x2813f3,IConfigService as _0x5e7702,ICommandService as _0x5ab311,RxDisposable as _0x423d8a,UniverInstanceType as _0x19162e,DisposableCollection as _0x523026,CommandType as _0x142835,DependentOn as _0x1c0dec,Plugin as _0x2dc758,merge as _0x4268e8,registerDependencies as _0x323506,mergeOverrideWithDependencies as _0x263d4d,touchDependencies as _0x29f66d}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x26f0a8,InsertSheetMutation as _0x2463e7}from'@univerjs/sheets';import{SetZoomRatioOperation as _0xb8ad1e,SetScrollOperation as _0x4808f9}from'@univerjs/sheets-ui';import{useDependency as _0x5cd417,useObservable as _0x1dad95,IUIPartsService as _0x54c0ed,BuiltInUIPart as _0x5ad5f4,connectInjector as _0x2f61ae}from'@univerjs/ui';import{jsx as _0x1fcf7b,jsxs as _0xdfee60,Fragment as _0x378d55}from'react/jsx-runtime';import{Dropdown as _0x15741b,clsx as _0x144952,Button as _0x360a74}from'@univerjs/design';import{forwardRef as _0x17b570,useRef as _0x1653ac,createElement as _0x2d133d,useState as _0x324aa9,useEffect as _0x23e425}from'react';import{CollaborationEvent as _0x22777c,parseProtocolChangeset as _0x540cc9}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x247e69,Subject as _0x3d88fa}from'rxjs';import{takeUntil as _0x492107,throttleTime as _0x2882f6}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x41e790{constructor(){var _0x511ecf=_0x3eff67;super(...arguments),d(this,_0x511ecf(0x1b7),new Set()),d(this,_0x511ecf(0x1b2),new Set());}[_0x3eff67(0x1eb)](_0x21fb17){var _0x33b33e=_0x3eff67;return this[_0x33b33e(0x1b7)][_0x33b33e(0x157)](_0x21fb17),_0x1c3b80(()=>this['_sharedOperations']['delete'](_0x21fb17));}[_0x3eff67(0x1d0)](_0x1981e8){var _0x57a982=_0x3eff67;return this[_0x57a982(0x1b2)]['add'](_0x1981e8),_0x1c3b80(()=>this[_0x57a982(0x1b2)][_0x57a982(0x15f)](_0x1981e8));}[_0x3eff67(0x1fb)](_0x713650){var _0x591a72=_0x3eff67;return this[_0x591a72(0x1b7)][_0x591a72(0x1db)](_0x713650);}['getInitialStates'](_0x3f2e6a){var _0x371d9d=_0x3eff67;return Array[_0x371d9d(0x1da)](this['_reporters'])[_0x371d9d(0x17e)](_0x2999c8=>_0x2999c8(_0x3f2e6a));}}var Ee=Object[_0x3eff67(0x1d2)],we=(_0x2effaf,_0x3ad890,_0x2b473c,_0xf61b5b)=>{var _0x1ee75d=_0x3eff67;for(var _0x417563=_0xf61b5b>0x1?void 0x0:_0xf61b5b?Ee(_0x3ad890,_0x2b473c):_0x3ad890,_0x980a50=_0x2effaf[_0x1ee75d(0x1a3)]-0x1,_0x49672f;_0x980a50>=0x0;_0x980a50--)(_0x49672f=_0x2effaf[_0x980a50])&&(_0x417563=_0x49672f(_0x417563)||_0x417563);return _0x417563;},Ne=(_0x4d9250,_0x122290)=>(_0x19f760,_0x3c74bf)=>_0x122290(_0x19f760,_0x3c74bf,_0x4d9250);let m=class extends _0x41e790{constructor(_0x21cd4d){var _0x1e7c96=_0x3eff67;super(),this[_0x1e7c96(0x1ef)]=_0x21cd4d,this[_0x1e7c96(0x1e0)]();}['_init'](){var _0x1c439e=_0x3eff67;[_0xb8ad1e['id'],_0x4808f9['id'],_0x26f0a8['id']][_0x1c439e(0x1d6)](_0x61990a=>{var _0x20fd33=_0x1c439e;this[_0x20fd33(0x1e3)](this[_0x20fd33(0x1ef)][_0x20fd33(0x1eb)](_0x61990a));});}};m=we([Ne(0x0,_0x409218(L))],m);var c=function(){var _0x4cbc56=_0x3eff67;return c=Object[_0x4cbc56(0x1e5)]||function(_0x12036d){var _0xb5a243=_0x4cbc56;for(var _0x372c80,_0x18d009=0x1,_0xe8ec69=arguments[_0xb5a243(0x1a3)];_0x18d009<_0xe8ec69;_0x18d009++){_0x372c80=arguments[_0x18d009];for(var _0x4b23a5 in _0x372c80)Object[_0xb5a243(0x1c9)][_0xb5a243(0x19d)][_0xb5a243(0x1f8)](_0x372c80,_0x4b23a5)&&(_0x12036d[_0x4b23a5]=_0x372c80[_0x4b23a5]);}return _0x12036d;},c[_0x4cbc56(0x1f0)](this,arguments);},Ce=function(_0x1b7e14,_0x1729d9){var _0x101efb=_0x3eff67,_0x22c09b={};for(var _0xaf4d0d in _0x1b7e14)Object[_0x101efb(0x1c9)][_0x101efb(0x19d)][_0x101efb(0x1f8)](_0x1b7e14,_0xaf4d0d)&&_0x1729d9['indexOf'](_0xaf4d0d)<0x0&&(_0x22c09b[_0xaf4d0d]=_0x1b7e14[_0xaf4d0d]);if(_0x1b7e14!=null&&typeof Object[_0x101efb(0x1ca)]=='function'){for(var _0xecea7a=0x0,_0xaf4d0d=Object[_0x101efb(0x1ca)](_0x1b7e14);_0xecea7a<_0xaf4d0d['length'];_0xecea7a++)_0x1729d9['indexOf'](_0xaf4d0d[_0xecea7a])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x1b7e14,_0xaf4d0d[_0xecea7a])&&(_0x22c09b[_0xaf4d0d[_0xecea7a]]=_0x1b7e14[_0xaf4d0d[_0xecea7a]]);}return _0x22c09b;},W=_0x17b570(function(_0x312eb2,_0x1afeb){var _0x55ee70=_0x3eff67,_0x2b7d8b=_0x312eb2[_0x55ee70(0x1b1)],_0x53a4a1=_0x312eb2['id'],_0x336fdd=_0x312eb2[_0x55ee70(0x160)],_0x13b316=_0x312eb2[_0x55ee70(0x204)],_0x34e919=Ce(_0x312eb2,['icon','id',_0x55ee70(0x160),'extend']),_0x5e22fa=_0x55ee70(0x159)['concat'](_0x53a4a1,'\x20')[_0x55ee70(0x170)](_0x336fdd||'')[_0x55ee70(0x200)](),_0x428f3a=_0x1653ac('_'['concat'](Le()));return Y(_0x2b7d8b,''[_0x55ee70(0x170)](_0x53a4a1),{'defIds':_0x2b7d8b[_0x55ee70(0x18a)],'idSuffix':_0x428f3a[_0x55ee70(0x1f5)]},c({'ref':_0x1afeb,'className':_0x5e22fa},_0x34e919),_0x13b316);});function Y(_0x5cc9af,_0xac24a9,_0x11b732,_0xceec65,_0x539e04){var _0x4e679f=_0x3eff67;return _0x2d133d(_0x5cc9af[_0x4e679f(0x192)],c(c({'key':_0xac24a9},De(_0x5cc9af,_0x11b732,_0x539e04)),_0xceec65),(xe(_0x5cc9af,_0x11b732)[_0x4e679f(0x1c6)]||[])['map'](function(_0x18bfd6,_0x492f08){var _0x12e310=_0x4e679f;return Y(_0x18bfd6,''[_0x12e310(0x170)](_0xac24a9,'-')['concat'](_0x5cc9af[_0x12e310(0x192)],'-')['concat'](_0x492f08),_0x11b732,void 0x0,_0x539e04);}));}function De(_0x15773c,_0x2f1217,_0x3cc958){var _0x2c9cc5=_0x3eff67,_0x132b37=c({},_0x15773c['attrs']);_0x3cc958!=null&&_0x3cc958[_0x2c9cc5(0x17a)]&&_0x132b37[_0x2c9cc5(0x1e1)]===_0x2c9cc5(0x17a)&&(_0x132b37['fill']=_0x3cc958[_0x2c9cc5(0x17a)]),_0x15773c[_0x2c9cc5(0x192)]==='mask'&&_0x132b37['id']&&(_0x132b37['id']=_0x132b37['id']+_0x2f1217[_0x2c9cc5(0x19b)]),Object[_0x2c9cc5(0x185)](_0x132b37)[_0x2c9cc5(0x1d6)](function(_0xfcfe7d){var _0x3e9dbc=_0x2c9cc5,_0x58e62e=_0xfcfe7d[0x0],_0x3b6947=_0xfcfe7d[0x1];_0x58e62e==='mask'&&typeof _0x3b6947==_0x3e9dbc(0x1cd)&&(_0x132b37[_0x58e62e]=_0x3b6947['replace'](/url\(#(.*)\)/,_0x3e9dbc(0x1ee)['concat'](_0x2f1217[_0x3e9dbc(0x19b)],')')));});var _0x1c1407=_0x2f1217[_0x2c9cc5(0x18a)];return!_0x1c1407||_0x1c1407[_0x2c9cc5(0x1a3)]===0x0||(_0x15773c[_0x2c9cc5(0x192)]===_0x2c9cc5(0x19a)&&_0x132b37[_0x2c9cc5(0x16a)]&&(_0x132b37[_0x2c9cc5(0x16a)]=_0x132b37['xlink:href']+_0x2f1217[_0x2c9cc5(0x19b)]),Object[_0x2c9cc5(0x185)](_0x132b37)[_0x2c9cc5(0x1d6)](function(_0x33e124){var _0x3667e5=_0x2c9cc5,_0x48e37d=_0x33e124[0x0],_0x539550=_0x33e124[0x1];typeof _0x539550=='string'&&(_0x132b37[_0x48e37d]=_0x539550[_0x3667e5(0x1c4)](/url\(#(.*)\)/,'url(#$1'[_0x3667e5(0x170)](_0x2f1217[_0x3667e5(0x19b)],')')));})),_0x132b37;}function xe(_0x499004,_0x59bc12){var _0x415ef6=_0x3eff67,_0x31ab1b,_0x4ea787=_0x59bc12[_0x415ef6(0x18a)];return!_0x4ea787||_0x4ea787[_0x415ef6(0x1a3)]===0x0?_0x499004:_0x499004[_0x415ef6(0x192)]===_0x415ef6(0x1a2)&&(!((_0x31ab1b=_0x499004['children'])===null||_0x31ab1b===void 0x0)&&_0x31ab1b[_0x415ef6(0x1a3)])?c(c({},_0x499004),{'children':_0x499004[_0x415ef6(0x1c6)][_0x415ef6(0x17e)](function(_0x5b8992){var _0x23f52a=_0x415ef6;return typeof _0x5b8992[_0x23f52a(0x1f2)]['id']==_0x23f52a(0x1cd)&&_0x4ea787&&_0x4ea787[_0x23f52a(0x1d5)](_0x5b8992[_0x23f52a(0x1f2)]['id'])?c(c({},_0x5b8992),{'attrs':c(c({},_0x5b8992[_0x23f52a(0x1f2)]),{'id':_0x5b8992[_0x23f52a(0x1f2)]['id']+_0x59bc12['idSuffix']})}):_0x5b8992;})}):_0x499004;}function Le(){var _0x509b4d=_0x3eff67;return Math[_0x509b4d(0x15c)]()['toString'](0x24)['substring'](0x2,0x8);}W[_0x3eff67(0x1fa)]=_0x3eff67(0x1ab);var ye={'tag':_0x3eff67(0x1b9),'attrs':{'xmlns':_0x3eff67(0x1ce),'fill':'none','viewBox':_0x3eff67(0x1de),'width':_0x3eff67(0x1f6),'height':_0x3eff67(0x1f6)},'children':[{'tag':_0x3eff67(0x199),'attrs':{'fill':_0x3eff67(0x1c8),'d':_0x3eff67(0x15d)}},{'tag':'path','attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x3eff67(0x1f1)}}]},B=_0x17b570(function(_0x24943c,_0x2747ce){var _0x4f6b4f=_0x3eff67;return _0x2d133d(W,Object[_0x4f6b4f(0x1e5)]({},_0x24943c,{'id':_0x4f6b4f(0x1fd),'ref':_0x2747ce,'icon':ye}));});B['displayName']='LiveShareIcon';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x2f7209,_0x1e683c,_0x2f5ddd,_0x31032c)=>{for(var _0xfa9166=_0x31032c>0x1?void 0x0:_0x31032c?Re(_0x1e683c,_0x2f5ddd):_0x1e683c,_0x17c141=_0x2f7209['length']-0x1,_0x56f321;_0x17c141>=0x0;_0x17c141--)(_0x56f321=_0x2f7209[_0x17c141])&&(_0xfa9166=_0x56f321(_0xfa9166)||_0xfa9166);return _0xfa9166;},f=(_0x2536ba,_0x27e7de)=>(_0x21eef9,_0x539d35)=>_0x27e7de(_0x21eef9,_0x539d35,_0x2536ba);let I=class extends _0x423d8a{constructor(_0x3c1eab,_0x515c31,_0x286a8a){var _0x5b4530=_0x3eff67;super(),d(this,_0x5b4530(0x164),new Map()),(this['_univerInstanceService']=_0x3c1eab,this[_0x5b4530(0x193)]=_0x515c31,this[_0x5b4530(0x1ea)]=_0x286a8a,this[_0x5b4530(0x1e0)]());}async[_0x3eff67(0x183)](_0x576454){var _0xc77e91=_0x3eff67;return this[_0xc77e91(0x164)][_0xc77e91(0x1db)](_0x576454)||await this['_startLiveShareCoordinator'](_0x576454),this[_0xc77e91(0x164)][_0xc77e91(0x1e7)](_0x576454);}[_0x3eff67(0x1e0)](){var _0x2f2cac=_0x3eff67;this['_univerInstanceService'][_0x2f2cac(0x174)](_0x19162e[_0x2f2cac(0x1bd)])['pipe'](_0x492107(this[_0x2f2cac(0x202)]))['subscribe'](async _0x1880aa=>{var _0x1f0e18=_0x2f2cac;const _0x5a3dc3=_0x1880aa['getUnitId']();this[_0x1f0e18(0x164)]['has'](_0x5a3dc3)||this[_0x1f0e18(0x18b)](_0x5a3dc3);}),this[_0x2f2cac(0x17f)]['getTypeOfUnitDisposed$'](_0x19162e['UNIVER_SHEET'])[_0x2f2cac(0x1cb)](_0x492107(this[_0x2f2cac(0x202)]))[_0x2f2cac(0x1fe)](_0x5b57ef=>{var _0x5eaa5c=_0x2f2cac;const _0x51bf13=_0x5b57ef[_0x5eaa5c(0x189)](),_0x307285=this[_0x5eaa5c(0x164)][_0x5eaa5c(0x1e7)](_0x51bf13);_0x307285==null||_0x307285['dispose']();});}async['_startLiveShareCoordinator'](_0x2dc855){var _0xb92f5d=_0x3eff67;const _0x19642d=await this['_collabSessionService']['requireSession'](_0x2dc855),_0x3d664b=this[_0xb92f5d(0x193)][_0xb92f5d(0x1e8)](C,_0x2dc855,_0x19642d);return _0x3d664b[_0xb92f5d(0x1f7)](),this['_entities'][_0xb92f5d(0x1be)](_0x2dc855,_0x3d664b),_0x3d664b;}};I=Z([f(0x0,_0x55c1e4),f(0x1,_0x409218(_0x2813f3)),f(0x2,_0x409218(_0x3fb12e))],I);var h=(_0x280c93=>(_0x280c93[_0x3eff67(0x1c2)]=_0x3eff67(0x1fc),_0x280c93[_0x3eff67(0x196)]='idle',_0x280c93[_0x3eff67(0x177)]='following',_0x280c93[_0x3eff67(0x1f4)]='not-following',_0x280c93[_0x3eff67(0x205)]=_0x3eff67(0x198),_0x280c93))(h||{});const Pe=_0x3eff67(0x182),Ae=0xc8;let C=class extends _0x423d8a{constructor(_0x23dcb0,_0x5b7c1d,_0x3a6b25,_0x4f4851,_0x34947a){var _0x2d20f1=_0x3eff67;super(),d(this,_0x2d20f1(0x1ba),new _0x247e69(_0x2d20f1(0x163))),d(this,_0x2d20f1(0x1af),this[_0x2d20f1(0x1ba)][_0x2d20f1(0x1ff)]()),d(this,_0x2d20f1(0x1e0),!0x1),d(this,_0x2d20f1(0x16f),null),d(this,_0x2d20f1(0x1d4),null),(this[_0x2d20f1(0x172)]=_0x23dcb0,this[_0x2d20f1(0x197)]=_0x5b7c1d,this['_configService']=_0x3a6b25,this[_0x2d20f1(0x1ef)]=_0x4f4851,this[_0x2d20f1(0x1c7)]=_0x34947a);}get[_0x3eff67(0x186)](){var _0x59ff9e=_0x3eff67;return this[_0x59ff9e(0x1ba)][_0x59ff9e(0x19f)]();}[_0x3eff67(0x1ad)](){var _0x4f1529=_0x3eff67,_0x69d8c3;(_0x69d8c3=this['_commandDisposable'])==null||_0x69d8c3[_0x4f1529(0x1ad)](),this[_0x4f1529(0x1ba)][_0x4f1529(0x1a6)]('idle'),this[_0x4f1529(0x1ba)][_0x4f1529(0x1a5)]();}[_0x3eff67(0x1f7)](){var _0x1cbec9=_0x3eff67;this[_0x1cbec9(0x1e0)]||(this[_0x1cbec9(0x1e0)]=!0x0,this[_0x1cbec9(0x197)][_0x1cbec9(0x16b)][_0x1cbec9(0x1cb)](_0x492107(this[_0x1cbec9(0x202)]))[_0x1cbec9(0x1fe)](_0x140b68=>{var _0x333bd2=_0x1cbec9;switch(_0x140b68){case _0x1efbf3['OFFLINE']:this[_0x333bd2(0x15b)]();break;case _0x1efbf3[_0x333bd2(0x1c5)]:this[_0x333bd2(0x165)]();break;}}),this['_collabSession']['event$']['pipe'](_0x492107(this['dispose$']))[_0x1cbec9(0x1fe)](_0x1305fe=>{var _0x16f61a=_0x1cbec9;const {eventID:_0x394a48}=_0x1305fe;switch(_0x394a48){case _0x22777c[_0x16f61a(0x1a9)]:this[_0x16f61a(0x1ed)](_0x1305fe);break;case _0x22777c[_0x16f61a(0x19c)]:this[_0x16f61a(0x1ec)](_0x1305fe);break;case _0x22777c[_0x16f61a(0x18c)]:this[_0x16f61a(0x1b3)]();break;case _0x22777c[_0x16f61a(0x15a)]:this[_0x16f61a(0x195)](_0x1305fe);break;}}));}['tryStartPresenting'](){var _0x8684b4=_0x3eff67;this['_collabSession'][_0x8684b4(0x1dc)]({'eventID':_0x22777c[_0x8684b4(0x1f9)],'data':{'unitID':this[_0x8684b4(0x172)],'userID':this[_0x8684b4(0x197)][_0x8684b4(0x181)]()}},this['_unitID']);}[_0x3eff67(0x161)](){var _0x3e1187=_0x3eff67;this[_0x3e1187(0x186)]===_0x3e1187(0x198)&&(this[_0x3e1187(0x1ba)][_0x3e1187(0x1a6)](_0x3e1187(0x163)),this[_0x3e1187(0x197)][_0x3e1187(0x1dc)]({'eventID':_0x22777c[_0x3e1187(0x18c)],'data':{'unitID':this['_unitID']}},this[_0x3e1187(0x172)]));}[_0x3eff67(0x1bf)](){var _0x329f13=_0x3eff67;this['_status']==='not-following'&&(this[_0x329f13(0x1ba)][_0x329f13(0x1a6)](_0x329f13(0x17b)),this[_0x329f13(0x1ac)]());}['stopFollowing'](){var _0xe50d51=_0x3eff67;this[_0xe50d51(0x186)]===_0xe50d51(0x17b)&&this[_0xe50d51(0x1e9)]();}[_0x3eff67(0x1ed)](_0x486328){var _0x5d0dfc=_0x3eff67;const {presenter:_0x430367}=_0x486328[_0x5d0dfc(0x203)],_0x34e792=this['_collabSession'][_0x5d0dfc(0x181)]();this[_0x5d0dfc(0x1d4)]=_0x430367,_0x430367===_0x34e792?(this[_0x5d0dfc(0x1e9)](),this[_0x5d0dfc(0x18e)]()):this[_0x5d0dfc(0x186)]!==_0x5d0dfc(0x184)&&(this[_0x5d0dfc(0x188)](),this[_0x5d0dfc(0x1ac)]());}[_0x3eff67(0x201)](){var _0x44dbf2=_0x3eff67;const _0x505b06={'eventID':_0x22777c['LIVESHARE_FETCH_OPERATIONS']};this[_0x44dbf2(0x197)]['send'](_0x505b06,this[_0x44dbf2(0x172)]);}[_0x3eff67(0x1b3)](){var _0x46870b=_0x3eff67;this[_0x46870b(0x1d4)]=null,this[_0x46870b(0x186)]!=='presenting'&&this[_0x46870b(0x158)]();}[_0x3eff67(0x195)](_0x3fe886){var _0x1a2b64=_0x3eff67;if(this['_status']===_0x1a2b64(0x17b)&&this['_presenter']===_0x3fe886[_0x1a2b64(0x203)][_0x1a2b64(0x1a4)]){const _0x2fd7bd=_0x540cc9(_0x3fe886[_0x1a2b64(0x203)])[_0x1a2b64(0x1d1)][_0x1a2b64(0x1dd)]()['find'](_0x487629=>_0x487629['id']===_0x2463e7['id']);if(_0x2fd7bd){const _0x48cff6=_0x2fd7bd[_0x1a2b64(0x18f)][_0x1a2b64(0x15e)],_0x502ac1=_0x2fd7bd['params'][_0x1a2b64(0x1c1)]['id'];setTimeout(()=>{var _0x4add76=_0x1a2b64;this['_commandService'][_0x4add76(0x171)](_0x26f0a8['id'],{'unitId':_0x48cff6,'subUnitId':_0x502ac1},{'fromCollab':!0x0});});}}}[_0x3eff67(0x18e)](){var _0x2defe3=_0x3eff67;this['_status$'][_0x2defe3(0x1a6)](_0x2defe3(0x198));const _0x3a2133=new Map(),_0x4a9484=this[_0x2defe3(0x16f)]=new _0x523026();_0x4a9484[_0x2defe3(0x157)](_0x1c3b80(()=>{var _0x420e6a=_0x2defe3;_0x3a2133[_0x420e6a(0x1d6)](_0x9c3fd8=>_0x9c3fd8[_0x420e6a(0x1a5)]()),_0x3a2133[_0x420e6a(0x1b4)]();})),_0x4a9484[_0x2defe3(0x157)](this[_0x2defe3(0x1c7)][_0x2defe3(0x16e)](_0x4d1379=>{var _0x535916=_0x2defe3,_0x290b4b;if(_0x4d1379[_0x535916(0x1c0)]!==_0x142835[_0x535916(0x162)]||!this[_0x535916(0x1ef)]['shouldShareOperation'](_0x4d1379['id']))return;const {id:_0x2b469c}=_0x4d1379;let _0x41051b;_0x3a2133[_0x535916(0x1db)](_0x2b469c)?_0x41051b=_0x3a2133['get'](_0x2b469c):(_0x41051b=new _0x3d88fa(),_0x3a2133[_0x535916(0x1be)](_0x2b469c,_0x41051b),_0x41051b[_0x535916(0x1cb)](_0x2882f6((_0x290b4b=this[_0x535916(0x1a8)][_0x535916(0x1a1)](Pe))!=null?_0x290b4b:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x535916(0x1fe)](_0x3c43d5=>{var _0x4dd041=_0x535916;this[_0x4dd041(0x197)]['send']({'eventID':_0x22777c[_0x4dd041(0x19c)],'data':{'unitID':this[_0x4dd041(0x172)],'operations':{[_0x3c43d5['id']]:{'id':_0x3c43d5['id'],'params':JSON['stringify'](_0x3c43d5[_0x4dd041(0x18f)])}}}},this[_0x4dd041(0x172)]);})),_0x41051b[_0x535916(0x1a6)](_0x4d1379);})),this['_liveShareService'][_0x2defe3(0x1e4)](this['_unitID'])[_0x2defe3(0x1d6)](_0x3ed3c6=>this['_collabSession'][_0x2defe3(0x1dc)]({'eventID':_0x22777c[_0x2defe3(0x19c)],'data':{'unitID':this[_0x2defe3(0x172)],'operations':{[_0x3ed3c6['id']]:{'id':_0x3ed3c6['id'],'params':JSON[_0x2defe3(0x1d8)](_0x3ed3c6[_0x2defe3(0x18f)])}}}},this[_0x2defe3(0x172)]));}[_0x3eff67(0x188)](){var _0x140c71=_0x3eff67,_0x42d3e3;this[_0x140c71(0x1ba)][_0x140c71(0x1a6)]('idle'),(_0x42d3e3=this[_0x140c71(0x16f)])==null||_0x42d3e3[_0x140c71(0x1ad)](),this[_0x140c71(0x16f)]=null;}[_0x3eff67(0x1ac)](){var _0xfe0922=_0x3eff67,_0x217c15;(_0x217c15=this['_commandDisposable'])==null||_0x217c15['dispose'](),this[_0xfe0922(0x1ba)][_0xfe0922(0x1a6)]('following');}[_0x3eff67(0x158)](){var _0x4b45fd=_0x3eff67,_0x136ec9;this['_status$'][_0x4b45fd(0x1a6)]('idle'),(_0x136ec9=this['_commandDisposable'])==null||_0x136ec9[_0x4b45fd(0x1ad)](),this[_0x4b45fd(0x16f)]=null;}[_0x3eff67(0x1e9)](){var _0x5bbd2e=_0x3eff67,_0x5ccf9c;this[_0x5bbd2e(0x1ba)][_0x5bbd2e(0x1a6)](_0x5bbd2e(0x184)),(_0x5ccf9c=this[_0x5bbd2e(0x16f)])==null||_0x5ccf9c[_0x5bbd2e(0x1ad)]();}[_0x3eff67(0x1ec)](_0x4a8318){var _0x1f2822=_0x3eff67;if(['presenting',_0x1f2822(0x184),'offline'][_0x1f2822(0x1d5)](this['_status'])||!_0x4a8318[_0x1f2822(0x203)][_0x1f2822(0x1d3)]||_0x4a8318[_0x1f2822(0x203)]['presenter']===this['_collabSession']['getMemberID']())return;this['_status']===_0x1f2822(0x163)&&this['_startFollowing']();const _0x3192f4=_0x4a8318[_0x1f2822(0x203)][_0x1f2822(0x18d)];Object[_0x1f2822(0x176)](_0x3192f4)[_0x1f2822(0x1d6)](_0x49d78c=>{var _0x36580f=_0x1f2822;this[_0x36580f(0x1c7)]['executeCommand'](_0x49d78c['id'],_0x49d78c[_0x36580f(0x18f)]?JSON[_0x36580f(0x19e)](_0x49d78c[_0x36580f(0x18f)]):null,{'fromCollab':!0x0});});}[_0x3eff67(0x15b)](){var _0x419dd4=_0x3eff67,_0x36c8f7;this[_0x419dd4(0x1ba)]['next'](_0x419dd4(0x1fc)),(_0x36c8f7=this['_commandDisposable'])==null||_0x36c8f7[_0x419dd4(0x1ad)]();}[_0x3eff67(0x165)](){var _0x5001bc=_0x3eff67;this[_0x5001bc(0x1ba)]['next']('idle'),this[_0x5001bc(0x201)]();}};C=Z([f(0x2,_0x5e7702),f(0x3,_0x409218(L)),f(0x4,_0x5ab311)],C);function Te(){var _0x1a9ba1=_0x3eff67;const _0x3b132a=_0x5cd417(I),_0x3ae74e=_0x5cd417(_0x55c1e4),_0x3ba848=_0x1dad95(()=>_0x3ae74e[_0x1a9ba1(0x194)](_0x19162e[_0x1a9ba1(0x1bd)]),void 0x0,!0x1,[]),[_0x30ea57,_0x19be99]=_0x324aa9(null),[_0x8cc31b,_0x4ba61d]=_0x324aa9(h[_0x1a9ba1(0x196)]),_0x160789=_0x1653ac(null);return _0x23e425(()=>(_0x3ba848&&_0x3b132a['getLiveShareCoordinator'](_0x3ba848[_0x1a9ba1(0x189)]())[_0x1a9ba1(0x180)](_0x368430=>{var _0x1dc4b8=_0x1a9ba1;_0x19be99(_0x368430),_0x160789['current']=_0x368430[_0x1dc4b8(0x1af)][_0x1dc4b8(0x1fe)](_0x1eae66=>{_0x4ba61d(_0x1eae66);});}),()=>{var _0x57b4a8=_0x1a9ba1,_0x2bfd26;(_0x2bfd26=_0x160789[_0x57b4a8(0x1f5)])==null||_0x2bfd26['unsubscribe'](),_0x160789[_0x57b4a8(0x1f5)]=null;}),[_0x3ba848,_0x3b132a]),_0x30ea57?_0x1fcf7b(_0x15741b,{'align':_0x1a9ba1(0x1df),'disabled':_0x8cc31b===h[_0x1a9ba1(0x1c2)],'className':_0x1a9ba1(0x16d),'overlay':_0x1fcf7b($e,{'status':_0x8cc31b,'coordinator':_0x30ea57}),'children':_0x1fcf7b(_0x1a9ba1(0x17d),{'className':_0x144952('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x8cc31b===h[_0x1a9ba1(0x1c2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x8cc31b!==h[_0x1a9ba1(0x1c2)]}),'type':'button','children':_0x1fcf7b(B,{'className':_0x1a9ba1(0x1c3)})})}):null;}function $e(_0x42cc85){var _0x3e2a86=_0x3eff67;const {status:_0x20e27f,coordinator:_0x2eb42f}=_0x42cc85;switch(_0x20e27f){case h[_0x3e2a86(0x196)]:return _0x1fcf7b(Fe,{'coordinator':_0x2eb42f});case h[_0x3e2a86(0x177)]:return _0x1fcf7b(He,{'coordinator':_0x2eb42f});case h[_0x3e2a86(0x1f4)]:return _0x1fcf7b(je,{'coordinator':_0x2eb42f});case h[_0x3e2a86(0x1c2)]:return _0x1fcf7b(Ve,{});case h['PRESENTING']:return _0x1fcf7b(Ue,{'coordinator':_0x2eb42f});default:return null;}}function Fe(_0x58fe9b){var _0x36edee=_0x3eff67;const {coordinator:_0x350c92}=_0x58fe9b;return _0xdfee60(_0x378d55,{'children':[_0x1fcf7b('div',{'className':_0x36edee(0x16c),'children':'Present\x20this\x20document'}),_0x1fcf7b(_0x360a74,{'onClick':()=>_0x350c92[_0x36edee(0x173)](),'children':_0x36edee(0x1f3)})]});}function He(_0x4418a3){var _0x451541=_0x3eff67;const {coordinator:_0x2848d1}=_0x4418a3;return _0xdfee60(_0x378d55,{'children':[_0x1fcf7b(_0x451541(0x1d7),{'className':_0x451541(0x16c),'children':_0x451541(0x1bb)}),_0x1fcf7b(_0x360a74,{'onClick':()=>_0x2848d1['stopFollowing'](),'children':_0x451541(0x1e6)})]});}function je(_0x14ff33){var _0x48dd37=_0x3eff67;const {coordinator:_0x1d91a8}=_0x14ff33;return _0xdfee60(_0x378d55,{'children':[_0x1fcf7b(_0x48dd37(0x1d7),{'className':_0x48dd37(0x16c),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x1fcf7b(_0x360a74,{'variant':_0x48dd37(0x178),'onClick':()=>_0x1d91a8[_0x48dd37(0x1bf)](),'children':_0x48dd37(0x1cc)})]});}function Ue(_0x31539b){var _0x32c938=_0x3eff67;const {coordinator:_0x44b13e}=_0x31539b;return _0xdfee60(_0x378d55,{'children':[_0x1fcf7b('div',{'className':_0x32c938(0x16c),'children':_0x32c938(0x179)}),_0x1fcf7b(_0x360a74,{'variant':_0x32c938(0x17c),'onClick':()=>_0x44b13e[_0x32c938(0x161)](),'children':_0x32c938(0x167)})]});}function Ve(){return _0x1fcf7b(_0x378d55,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x3eff67(0x1d2)],ke=(_0x591f41,_0x56a2af,_0x6d7a9e,_0x1e45d8)=>{var _0x40b3c8=_0x3eff67;for(var _0x3cc535=_0x1e45d8>0x1?void 0x0:_0x1e45d8?Me(_0x56a2af,_0x6d7a9e):_0x56a2af,_0x17e719=_0x591f41[_0x40b3c8(0x1a3)]-0x1,_0x302d04;_0x17e719>=0x0;_0x17e719--)(_0x302d04=_0x591f41[_0x17e719])&&(_0x3cc535=_0x302d04(_0x3cc535)||_0x3cc535);return _0x3cc535;},$=(_0x528a6b,_0x1b023d)=>(_0x167401,_0x34e924)=>_0x1b023d(_0x167401,_0x34e924,_0x528a6b);let b=class extends _0x41e790{constructor(_0x4cf3b3,_0x2c7820){var _0x187063=_0x3eff67;super(),this['_injector']=_0x4cf3b3,this[_0x187063(0x1bc)]=_0x2c7820,this[_0x187063(0x1b0)]();}[_0x3eff67(0x1b0)](){var _0x5cfccd=_0x3eff67;this[_0x5cfccd(0x1e3)](this['_uiPartsService']['registerComponent'](_0x5ad5f4['HEADER_MENU'],()=>_0x2f61ae(Te,this[_0x5cfccd(0x193)])));}};b=ke([$(0x0,_0x409218(_0x2813f3)),$(0x1,_0x54c0ed)],b);var Ge=Object[_0x3eff67(0x166)],We=Object[_0x3eff67(0x1d2)],Ye=(_0x2d3c93,_0x2d0f37,_0xed73d8)=>_0x2d0f37 in _0x2d3c93?Ge(_0x2d3c93,_0x2d0f37,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xed73d8}):_0x2d3c93[_0x2d0f37]=_0xed73d8,Be=(_0x2510d4,_0x5108c4,_0x1f2dda,_0x35cac2)=>{var _0x2796c2=_0x3eff67;for(var _0x1e14c7=_0x35cac2>0x1?void 0x0:_0x35cac2?We(_0x5108c4,_0x1f2dda):_0x5108c4,_0x2d6a8f=_0x2510d4[_0x2796c2(0x1a3)]-0x1,_0x4ea412;_0x2d6a8f>=0x0;_0x2d6a8f--)(_0x4ea412=_0x2510d4[_0x2d6a8f])&&(_0x1e14c7=_0x4ea412(_0x1e14c7)||_0x1e14c7);return _0x1e14c7;},F=(_0x3170f7,_0x196345)=>(_0x23984f,_0xf54b04)=>_0x196345(_0x23984f,_0xf54b04,_0x3170f7),J=(_0x3f08c7,_0x64f2e4,_0x2b7759)=>Ye(_0x3f08c7,typeof _0x64f2e4!='symbol'?_0x64f2e4+'':_0x64f2e4,_0x2b7759);const Ze=_0x3eff67(0x190);let O=class extends _0x2dc758{constructor(_0x5d9f77=T,_0x2422bb,_0x499dba){var _0x34ffad=_0x3eff67;super(),this['_config']=_0x5d9f77,this['_injector']=_0x2422bb,this[_0x34ffad(0x1a8)]=_0x499dba;const {..._0x14266a}=_0x4268e8({},T,this[_0x34ffad(0x175)]);this[_0x34ffad(0x1a8)][_0x34ffad(0x1aa)](Oe,_0x14266a);}[_0x3eff67(0x1b5)](){var _0x3ba933=_0x3eff67;_0x323506(this[_0x3ba933(0x193)],_0x263d4d([[L],[I],[m],[b]],this['_config'][_0x3ba933(0x1a7)])),_0x29f66d(this['_injector'],[[m]]);}['onRendered'](){var _0x16cccf=_0x3eff67;_0x29f66d(this[_0x16cccf(0x193)],[[b]]);}};function _0x31ab(_0x214011,_0x46be5e){var _0x1f462f=_0x1f46();return _0x31ab=function(_0x31ab44,_0x418f67){_0x31ab44=_0x31ab44-0x157;var _0x1926e7=_0x1f462f[_0x31ab44];return _0x1926e7;},_0x31ab(_0x214011,_0x46be5e);}J(O,'type',_0x19162e['UNIVER_UNKNOWN']),J(O,_0x3eff67(0x169),Ze),O=Be([_0x1c0dec(_0x10ce60),F(0x1,_0x409218(_0x2813f3)),F(0x2,_0x5e7702)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x1dc1a5=_0x9a5a;(function(_0x226a0a,_0x2618f8){var _0x868505=_0x9a5a,_0x2b7b45=_0x226a0a();while(!![]){try{var _0x3e53a3=parseInt(_0x868505(0x1fc))/0x1*(parseInt(_0x868505(0x288))/0x2)+parseInt(_0x868505(0x21a))/0x3*(parseInt(_0x868505(0x20e))/0x4)+parseInt(_0x868505(0x242))/0x5+parseInt(_0x868505(0x25b))/0x6*(-parseInt(_0x868505(0x251))/0x7)+-parseInt(_0x868505(0x1e5))/0x8*(-parseInt(_0x868505(0x27d))/0x9)+parseInt(_0x868505(0x1ef))/0xa*(parseInt(_0x868505(0x249))/0xb)+-parseInt(_0x868505(0x25f))/0xc;if(_0x3e53a3===_0x2618f8)break;else _0x2b7b45['push'](_0x2b7b45['shift']());}catch(_0x1bcc62){_0x2b7b45['push'](_0x2b7b45['shift']());}}}(_0x2d1b,0x6fe2f));var q=Object[_0x1dc1a5(0x1f7)],z=(_0x40f785,_0x44a743,_0x408fe)=>_0x44a743 in _0x40f785?q(_0x40f785,_0x44a743,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x408fe}):_0x40f785[_0x44a743]=_0x408fe,d=(_0x51ecf2,_0x3d67cc,_0x30ef63)=>z(_0x51ecf2,typeof _0x3d67cc!='symbol'?_0x3d67cc+'':_0x3d67cc,_0x30ef63);import{CollaborationSessionService as _0x59712a,SessionStatus as _0x5cb7e1,UniverCollaborationClientPlugin as _0x37ee2a}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3cc522,toDisposable as _0x461eb5,Inject as _0x11836f,IUniverInstanceService as _0x226a9,Injector as _0x152c82,IConfigService as _0xc56c8e,ICommandService as _0x5744d9,RxDisposable as _0x11d7a9,UniverInstanceType as _0xf3e818,DisposableCollection as _0x41998f,CommandType as _0x2938bd,DependentOn as _0x584176,Plugin as _0x24b3db,merge as _0xe275a6,registerDependencies as _0x5dc9fe,mergeOverrideWithDependencies as _0x4e2a80,touchDependencies as _0x1369ca}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x270420,InsertSheetMutation as _0x277ee5}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x573e5f,SetScrollOperation as _0x57ebf2}from'@univerjs/sheets-ui';import{useDependency as _0x3057c1,useObservable as _0x4ac25f,IUIPartsService as _0x472415,BuiltInUIPart as _0x90734a,connectInjector as _0xdd594f}from'@univerjs/ui';import{jsx as _0x27cd08,jsxs as _0x27a89c,Fragment as _0x1b8ec2}from'react/jsx-runtime';import{Dropdown as _0x10ef05,clsx as _0x4e6eb8,Button as _0x1ecb1d}from'@univerjs/design';import{forwardRef as _0x48d152,useRef as _0x1e681e,createElement as _0x1a1785,useState as _0x1d678d,useEffect as _0x30112b}from'react';import{CollaborationEvent as _0x13d362,parseProtocolChangeset as _0x5994b4}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2435f7,Subject as _0x5cd0ad}from'rxjs';import{takeUntil as _0x1f583a,throttleTime as _0x2f05e3}from'rxjs/operators';const Oe=_0x1dc1a5(0x1e4),T={};class L extends _0x3cc522{constructor(){var _0x7e7579=_0x1dc1a5;super(...arguments),d(this,_0x7e7579(0x237),new Set()),d(this,_0x7e7579(0x28c),new Set());}[_0x1dc1a5(0x27e)](_0x243508){var _0x527821=_0x1dc1a5;return this[_0x527821(0x237)]['add'](_0x243508),_0x461eb5(()=>this[_0x527821(0x237)][_0x527821(0x290)](_0x243508));}['registerInitialStateReporter'](_0x3365dc){var _0x12b108=_0x1dc1a5;return this[_0x12b108(0x28c)][_0x12b108(0x26c)](_0x3365dc),_0x461eb5(()=>this[_0x12b108(0x28c)][_0x12b108(0x290)](_0x3365dc));}[_0x1dc1a5(0x281)](_0x10a7c4){var _0x1fc4d6=_0x1dc1a5;return this['_sharedOperations'][_0x1fc4d6(0x1f5)](_0x10a7c4);}[_0x1dc1a5(0x200)](_0x103cb3){var _0x1d0687=_0x1dc1a5;return Array[_0x1d0687(0x230)](this['_reporters'])[_0x1d0687(0x1e2)](_0xa5bd6c=>_0xa5bd6c(_0x103cb3));}}var Ee=Object[_0x1dc1a5(0x28e)],we=(_0x23b85c,_0xa8d3c0,_0xf79fbd,_0x3e749e)=>{var _0x4d8e14=_0x1dc1a5;for(var _0x43d2b9=_0x3e749e>0x1?void 0x0:_0x3e749e?Ee(_0xa8d3c0,_0xf79fbd):_0xa8d3c0,_0xd2a77b=_0x23b85c[_0x4d8e14(0x208)]-0x1,_0x59c018;_0xd2a77b>=0x0;_0xd2a77b--)(_0x59c018=_0x23b85c[_0xd2a77b])&&(_0x43d2b9=_0x59c018(_0x43d2b9)||_0x43d2b9);return _0x43d2b9;},Ne=(_0x11608,_0x44a9aa)=>(_0x236e32,_0x4c3ba1)=>_0x44a9aa(_0x236e32,_0x4c3ba1,_0x11608);let m=class extends _0x3cc522{constructor(_0x18b0b3){var _0xc7508d=_0x1dc1a5;super(),this[_0xc7508d(0x209)]=_0x18b0b3,this[_0xc7508d(0x22f)]();}['_init'](){var _0x38432f=_0x1dc1a5;[_0x573e5f['id'],_0x57ebf2['id'],_0x270420['id']][_0x38432f(0x246)](_0x17617d=>{var _0x25f2dc=_0x38432f;this[_0x25f2dc(0x282)](this[_0x25f2dc(0x209)][_0x25f2dc(0x27e)](_0x17617d));});}};m=we([Ne(0x0,_0x11836f(L))],m);var c=function(){var _0xf20f82=_0x1dc1a5;return c=Object['assign']||function(_0x382a41){for(var _0x524c12,_0x18d876=0x1,_0x5762f3=arguments['length'];_0x18d876<_0x5762f3;_0x18d876++){_0x524c12=arguments[_0x18d876];for(var _0x20bb94 in _0x524c12)Object['prototype']['hasOwnProperty']['call'](_0x524c12,_0x20bb94)&&(_0x382a41[_0x20bb94]=_0x524c12[_0x20bb94]);}return _0x382a41;},c[_0xf20f82(0x275)](this,arguments);},Ce=function(_0x154f64,_0x56327d){var _0x1a16c6=_0x1dc1a5,_0x5c347f={};for(var _0x148b91 in _0x154f64)Object['prototype'][_0x1a16c6(0x24f)]['call'](_0x154f64,_0x148b91)&&_0x56327d[_0x1a16c6(0x234)](_0x148b91)<0x0&&(_0x5c347f[_0x148b91]=_0x154f64[_0x148b91]);if(_0x154f64!=null&&typeof Object[_0x1a16c6(0x1ee)]==_0x1a16c6(0x219)){for(var _0x3373a1=0x0,_0x148b91=Object['getOwnPropertySymbols'](_0x154f64);_0x3373a1<_0x148b91[_0x1a16c6(0x208)];_0x3373a1++)_0x56327d[_0x1a16c6(0x234)](_0x148b91[_0x3373a1])<0x0&&Object[_0x1a16c6(0x1de)][_0x1a16c6(0x20c)][_0x1a16c6(0x240)](_0x154f64,_0x148b91[_0x3373a1])&&(_0x5c347f[_0x148b91[_0x3373a1]]=_0x154f64[_0x148b91[_0x3373a1]]);}return _0x5c347f;},W=_0x48d152(function(_0x349753,_0x4ea887){var _0x2103c2=_0x1dc1a5,_0x279c70=_0x349753[_0x2103c2(0x26b)],_0x33e8ae=_0x349753['id'],_0x56d1ce=_0x349753[_0x2103c2(0x22c)],_0x359807=_0x349753['extend'],_0x1fced0=Ce(_0x349753,['icon','id',_0x2103c2(0x22c),_0x2103c2(0x1f1)]),_0x53b044=_0x2103c2(0x280)[_0x2103c2(0x226)](_0x33e8ae,'\x20')[_0x2103c2(0x226)](_0x56d1ce||'')['trim'](),_0xb9f352=_0x1e681e('_'[_0x2103c2(0x226)](Le()));return Y(_0x279c70,''['concat'](_0x33e8ae),{'defIds':_0x279c70[_0x2103c2(0x1eb)],'idSuffix':_0xb9f352[_0x2103c2(0x22e)]},c({'ref':_0x4ea887,'className':_0x53b044},_0x1fced0),_0x359807);});function Y(_0x53375b,_0x2af4f1,_0x48338c,_0x2f6694,_0x59cfe6){var _0x5b3063=_0x1dc1a5;return _0x1a1785(_0x53375b[_0x5b3063(0x22b)],c(c({'key':_0x2af4f1},De(_0x53375b,_0x48338c,_0x59cfe6)),_0x2f6694),(xe(_0x53375b,_0x48338c)[_0x5b3063(0x264)]||[])[_0x5b3063(0x1e2)](function(_0x4ed47b,_0x355a3e){var _0x2566d4=_0x5b3063;return Y(_0x4ed47b,''['concat'](_0x2af4f1,'-')[_0x2566d4(0x226)](_0x53375b[_0x2566d4(0x22b)],'-')[_0x2566d4(0x226)](_0x355a3e),_0x48338c,void 0x0,_0x59cfe6);}));}function De(_0x34dd98,_0x74f2f,_0x404b37){var _0x2e66c8=_0x1dc1a5,_0x1dac2f=c({},_0x34dd98[_0x2e66c8(0x236)]);_0x404b37!=null&&_0x404b37['colorChannel1']&&_0x1dac2f[_0x2e66c8(0x252)]===_0x2e66c8(0x254)&&(_0x1dac2f['fill']=_0x404b37[_0x2e66c8(0x254)]),_0x34dd98[_0x2e66c8(0x22b)]===_0x2e66c8(0x21e)&&_0x1dac2f['id']&&(_0x1dac2f['id']=_0x1dac2f['id']+_0x74f2f['idSuffix']),Object[_0x2e66c8(0x1f3)](_0x1dac2f)[_0x2e66c8(0x246)](function(_0x2c4903){var _0x27d017=_0x2e66c8,_0x5208c7=_0x2c4903[0x0],_0x23414a=_0x2c4903[0x1];_0x5208c7==='mask'&&typeof _0x23414a==_0x27d017(0x1fa)&&(_0x1dac2f[_0x5208c7]=_0x23414a[_0x27d017(0x25c)](/url\(#(.*)\)/,_0x27d017(0x253)[_0x27d017(0x226)](_0x74f2f['idSuffix'],')')));});var _0x3fb1ed=_0x74f2f[_0x2e66c8(0x1eb)];return!_0x3fb1ed||_0x3fb1ed[_0x2e66c8(0x208)]===0x0||(_0x34dd98[_0x2e66c8(0x22b)]===_0x2e66c8(0x1f8)&&_0x1dac2f[_0x2e66c8(0x1df)]&&(_0x1dac2f[_0x2e66c8(0x1df)]=_0x1dac2f[_0x2e66c8(0x1df)]+_0x74f2f['idSuffix']),Object[_0x2e66c8(0x1f3)](_0x1dac2f)[_0x2e66c8(0x246)](function(_0x468617){var _0x142b12=_0x2e66c8,_0x5f3117=_0x468617[0x0],_0x3aeae6=_0x468617[0x1];typeof _0x3aeae6==_0x142b12(0x1fa)&&(_0x1dac2f[_0x5f3117]=_0x3aeae6['replace'](/url\(#(.*)\)/,_0x142b12(0x253)[_0x142b12(0x226)](_0x74f2f[_0x142b12(0x1dd)],')')));})),_0x1dac2f;}function xe(_0x57d13a,_0x5aa357){var _0x593adf=_0x1dc1a5,_0x4a2ccf,_0x5d2037=_0x5aa357[_0x593adf(0x1eb)];return!_0x5d2037||_0x5d2037[_0x593adf(0x208)]===0x0?_0x57d13a:_0x57d13a[_0x593adf(0x22b)]==='defs'&&(!((_0x4a2ccf=_0x57d13a[_0x593adf(0x264)])===null||_0x4a2ccf===void 0x0)&&_0x4a2ccf[_0x593adf(0x208)])?c(c({},_0x57d13a),{'children':_0x57d13a['children']['map'](function(_0x6f8eb3){var _0x3ec1d4=_0x593adf;return typeof _0x6f8eb3['attrs']['id']==_0x3ec1d4(0x1fa)&&_0x5d2037&&_0x5d2037[_0x3ec1d4(0x289)](_0x6f8eb3[_0x3ec1d4(0x236)]['id'])?c(c({},_0x6f8eb3),{'attrs':c(c({},_0x6f8eb3[_0x3ec1d4(0x236)]),{'id':_0x6f8eb3[_0x3ec1d4(0x236)]['id']+_0x5aa357['idSuffix']})}):_0x6f8eb3;})}):_0x57d13a;}function _0x2d1b(){var _0x4be47a=['univerjs-icon\x20univerjs-icon-','shouldShareOperation','disposeWithMe','next','pluginName','NEW_CHANGESETS','_mountLiveShare','event$','1858Bqmvna','includes','complete','_handleTerminate','_reporters','requireSession','getOwnPropertyDescriptor','SAME_OPERATION_SHARE_INTERVAL','delete','You\x27re\x20following\x20the\x20presenter','idSuffix','prototype','xlink:href','displayName','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','map','memberID','live-share.config','1432mpAaFl','idle','_status','1em','getLiveShareCoordinator','setConfig','defIds','operations','PRESENTING','getOwnPropertySymbols','3830tAykTV','Start','extend','_collabSessionService','entries','following','has','type','defineProperty','use','IDLE','string','dispose','811CIuuDo','send','0\x200\x2017\x2017','set','getInitialStates','onStarting','_config','_fetchOperations','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','text','_commandDisposable','sessionStatus$','length','_liveShareService','UNIVER_SHEET','clear','propertyIsEnumerable','LIVESHARE_REQUEST_HOST','129872GQRnDj','getValue','_collabSession','You\x27re\x20not\x20following\x20the\x20presenter','svg','_stopFollowing','subscribe','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','path','_uiPartsService','_handleOffline','function','39PIhVLu','UNIVER_LIVE_SHARE_PLUGIN','univer-size-4','get','mask','stopPresenting','not-following','stringify','NOT_FOLLOWING','unsubscribe','offline','params','concat','onRendered','evenodd','values','currentColor','tag','className','http://www.w3.org/2000/svg','current','_init','from','_handleOperation','tryStartPresenting','sheet','indexOf','div','attrs','_sharedOperations','LIVESHARE_OPERATION','button','presenting','override','_beIdle','_handleNewChangeSets','assign','substring','call','_handleOnline','581635vZdiMz','ONLINE','univer-mb-3\x20univer-w-full\x20univer-text-sm','OPERATION','forEach','Stop\x20following','_stopPresenting','16302zuteif','find','_startPresenting','_startLiveShareCoordinator','createInstance','unitId','hasOwnProperty','_injector','5761dDgGpC','fill','url(#$1','colorChannel1','getTypeOfUnitAdded$','_entities','FOLLOWING','data','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','_handleNewHost','2694OiSNCF','replace','_configService','LIVESHARE_TERMINATE','15567096PcswXb','_startFollowing','_unitID','_presenter','dispose$','children','LIVESHARE_FETCH_OPERATIONS','random','registerComponent','mutations','OFFLINE','HEADER_MENU','icon','add','Present\x20this\x20document','pipe','executeCommand','LiveShareIcon','getUnitId','_commandService','symbol','_univerInstanceService','apply','getTypeOfUnitDisposed$','stopFollowing','startFollowing','init','status$','live-share-icon','_status$','13356DNEPzh','registerSharedOperation','getMemberID'];_0x2d1b=function(){return _0x4be47a;};return _0x2d1b();}function Le(){var _0x21bcdc=_0x1dc1a5;return Math[_0x21bcdc(0x266)]()['toString'](0x24)[_0x21bcdc(0x23f)](0x2,0x8);}W[_0x1dc1a5(0x1e0)]='UniverIcon';var ye={'tag':_0x1dc1a5(0x212),'attrs':{'xmlns':_0x1dc1a5(0x22d),'fill':'none','viewBox':_0x1dc1a5(0x1fe),'width':_0x1dc1a5(0x1e8),'height':_0x1dc1a5(0x1e8)},'children':[{'tag':_0x1dc1a5(0x216),'attrs':{'fill':'currentColor','d':_0x1dc1a5(0x259)}},{'tag':_0x1dc1a5(0x216),'attrs':{'fill':_0x1dc1a5(0x22a),'d':_0x1dc1a5(0x204),'fillRule':'evenodd','clipRule':_0x1dc1a5(0x228)}}]},B=_0x48d152(function(_0xd3bc53,_0x129ca6){var _0x391702=_0x1dc1a5;return _0x1a1785(W,Object[_0x391702(0x23e)]({},_0xd3bc53,{'id':_0x391702(0x27b),'ref':_0x129ca6,'icon':ye}));});B[_0x1dc1a5(0x1e0)]=_0x1dc1a5(0x270);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x4d78b0,_0x566ccb,_0x5b3e10,_0x1d0e66)=>{var _0x64c602=_0x1dc1a5;for(var _0x260934=_0x1d0e66>0x1?void 0x0:_0x1d0e66?Re(_0x566ccb,_0x5b3e10):_0x566ccb,_0xbafe8b=_0x4d78b0[_0x64c602(0x208)]-0x1,_0x45658b;_0xbafe8b>=0x0;_0xbafe8b--)(_0x45658b=_0x4d78b0[_0xbafe8b])&&(_0x260934=_0x45658b(_0x260934)||_0x260934);return _0x260934;},f=(_0x53bd30,_0x5a5140)=>(_0x358ecc,_0x55e6e1)=>_0x5a5140(_0x358ecc,_0x55e6e1,_0x53bd30);let I=class extends _0x11d7a9{constructor(_0x36d8bf,_0x249925,_0x5e4231){var _0x5da9e8=_0x1dc1a5;super(),d(this,_0x5da9e8(0x256),new Map()),(this['_univerInstanceService']=_0x36d8bf,this[_0x5da9e8(0x250)]=_0x249925,this['_collabSessionService']=_0x5e4231,this['_init']());}async[_0x1dc1a5(0x1e9)](_0x5937ac){var _0x5c2ef3=_0x1dc1a5;return this['_entities'][_0x5c2ef3(0x1f5)](_0x5937ac)||await this[_0x5c2ef3(0x24c)](_0x5937ac),this[_0x5c2ef3(0x256)][_0x5c2ef3(0x21d)](_0x5937ac);}[_0x1dc1a5(0x22f)](){var _0x4ccc5b=_0x1dc1a5;this['_univerInstanceService'][_0x4ccc5b(0x255)](_0xf3e818[_0x4ccc5b(0x20a)])['pipe'](_0x1f583a(this[_0x4ccc5b(0x263)]))[_0x4ccc5b(0x214)](async _0x364371=>{var _0x4a50e9=_0x4ccc5b;const _0x5aac7b=_0x364371['getUnitId']();this[_0x4a50e9(0x256)][_0x4a50e9(0x1f5)](_0x5aac7b)||this[_0x4a50e9(0x24c)](_0x5aac7b);}),this[_0x4ccc5b(0x274)][_0x4ccc5b(0x276)](_0xf3e818[_0x4ccc5b(0x20a)])[_0x4ccc5b(0x26e)](_0x1f583a(this['dispose$']))[_0x4ccc5b(0x214)](_0x42893f=>{var _0x7c2bcb=_0x4ccc5b;const _0x2a99fc=_0x42893f[_0x7c2bcb(0x271)](),_0x8edf28=this[_0x7c2bcb(0x256)][_0x7c2bcb(0x21d)](_0x2a99fc);_0x8edf28==null||_0x8edf28[_0x7c2bcb(0x1fb)]();});}async[_0x1dc1a5(0x24c)](_0x51811d){var _0x7527a2=_0x1dc1a5;const _0x16f683=await this[_0x7527a2(0x1f2)][_0x7527a2(0x28d)](_0x51811d),_0x294384=this['_injector'][_0x7527a2(0x24d)](C,_0x51811d,_0x16f683);return _0x294384['init'](),this[_0x7527a2(0x256)][_0x7527a2(0x1ff)](_0x51811d,_0x294384),_0x294384;}};I=Z([f(0x0,_0x226a9),f(0x1,_0x11836f(_0x152c82)),f(0x2,_0x11836f(_0x59712a))],I);var h=(_0x44dfc3=>(_0x44dfc3['OFFLINE']=_0x1dc1a5(0x224),_0x44dfc3[_0x1dc1a5(0x1f9)]=_0x1dc1a5(0x1e6),_0x44dfc3['FOLLOWING']=_0x1dc1a5(0x1f4),_0x44dfc3[_0x1dc1a5(0x222)]='not-following',_0x44dfc3[_0x1dc1a5(0x1ed)]=_0x1dc1a5(0x23a),_0x44dfc3))(h||{});const Pe=_0x1dc1a5(0x28f),Ae=0xc8;let C=class extends _0x11d7a9{constructor(_0x43949c,_0x1304ef,_0x4391b9,_0x59b486,_0x5ee9f2){var _0xf9101c=_0x1dc1a5;super(),d(this,_0xf9101c(0x27c),new _0x2435f7(_0xf9101c(0x1e6))),d(this,_0xf9101c(0x27a),this[_0xf9101c(0x27c)]['asObservable']()),d(this,_0xf9101c(0x22f),!0x1),d(this,_0xf9101c(0x206),null),d(this,_0xf9101c(0x262),null),(this[_0xf9101c(0x261)]=_0x43949c,this[_0xf9101c(0x210)]=_0x1304ef,this[_0xf9101c(0x25d)]=_0x4391b9,this['_liveShareService']=_0x59b486,this[_0xf9101c(0x272)]=_0x5ee9f2);}get[_0x1dc1a5(0x1e7)](){var _0x23df23=_0x1dc1a5;return this[_0x23df23(0x27c)][_0x23df23(0x20f)]();}[_0x1dc1a5(0x1fb)](){var _0x297721=_0x1dc1a5,_0x41acd1;(_0x41acd1=this[_0x297721(0x206)])==null||_0x41acd1[_0x297721(0x1fb)](),this[_0x297721(0x27c)][_0x297721(0x283)](_0x297721(0x1e6)),this['_status$']['complete']();}[_0x1dc1a5(0x279)](){var _0x2c11d2=_0x1dc1a5;this['_init']||(this[_0x2c11d2(0x22f)]=!0x0,this[_0x2c11d2(0x210)][_0x2c11d2(0x207)][_0x2c11d2(0x26e)](_0x1f583a(this[_0x2c11d2(0x263)]))[_0x2c11d2(0x214)](_0x102abd=>{var _0x2b19b8=_0x2c11d2;switch(_0x102abd){case _0x5cb7e1[_0x2b19b8(0x269)]:this[_0x2b19b8(0x218)]();break;case _0x5cb7e1[_0x2b19b8(0x243)]:this[_0x2b19b8(0x241)]();break;}}),this[_0x2c11d2(0x210)][_0x2c11d2(0x287)][_0x2c11d2(0x26e)](_0x1f583a(this['dispose$']))['subscribe'](_0x4547ff=>{var _0x45c8e2=_0x2c11d2;const {eventID:_0xe78d90}=_0x4547ff;switch(_0xe78d90){case _0x13d362['LIVESHARE_NEW_HOST']:this[_0x45c8e2(0x25a)](_0x4547ff);break;case _0x13d362[_0x45c8e2(0x238)]:this[_0x45c8e2(0x231)](_0x4547ff);break;case _0x13d362[_0x45c8e2(0x25e)]:this['_handleTerminate']();break;case _0x13d362[_0x45c8e2(0x285)]:this[_0x45c8e2(0x23d)](_0x4547ff);break;}}));}[_0x1dc1a5(0x232)](){var _0x2cee79=_0x1dc1a5;this[_0x2cee79(0x210)][_0x2cee79(0x1fd)]({'eventID':_0x13d362[_0x2cee79(0x20d)],'data':{'unitID':this[_0x2cee79(0x261)],'userID':this[_0x2cee79(0x210)][_0x2cee79(0x27f)]()}},this[_0x2cee79(0x261)]);}[_0x1dc1a5(0x21f)](){var _0x556b99=_0x1dc1a5;this['_status']===_0x556b99(0x23a)&&(this['_status$'][_0x556b99(0x283)](_0x556b99(0x1e6)),this['_collabSession']['send']({'eventID':_0x13d362[_0x556b99(0x25e)],'data':{'unitID':this['_unitID']}},this['_unitID']));}['startFollowing'](){var _0x12637a=_0x1dc1a5;this['_status']===_0x12637a(0x220)&&(this['_status$'][_0x12637a(0x283)](_0x12637a(0x1f4)),this[_0x12637a(0x260)]());}[_0x1dc1a5(0x277)](){var _0xb7f591=_0x1dc1a5;this[_0xb7f591(0x1e7)]===_0xb7f591(0x1f4)&&this['_stopFollowing']();}[_0x1dc1a5(0x25a)](_0x511865){var _0x4dabc0=_0x1dc1a5;const {presenter:_0x1ed843}=_0x511865[_0x4dabc0(0x258)],_0x1fd176=this[_0x4dabc0(0x210)][_0x4dabc0(0x27f)]();this[_0x4dabc0(0x262)]=_0x1ed843,_0x1ed843===_0x1fd176?(this[_0x4dabc0(0x213)](),this[_0x4dabc0(0x24b)]()):this[_0x4dabc0(0x1e7)]!==_0x4dabc0(0x220)&&(this[_0x4dabc0(0x248)](),this['_startFollowing']());}[_0x1dc1a5(0x203)](){var _0x42d417=_0x1dc1a5;const _0x30f94f={'eventID':_0x13d362[_0x42d417(0x265)]};this[_0x42d417(0x210)][_0x42d417(0x1fd)](_0x30f94f,this[_0x42d417(0x261)]);}[_0x1dc1a5(0x28b)](){var _0x13d04c=_0x1dc1a5;this[_0x13d04c(0x262)]=null,this['_status']!=='presenting'&&this[_0x13d04c(0x23c)]();}[_0x1dc1a5(0x23d)](_0x548e45){var _0x1500d0=_0x1dc1a5;if(this[_0x1500d0(0x1e7)]===_0x1500d0(0x1f4)&&this[_0x1500d0(0x262)]===_0x548e45[_0x1500d0(0x258)][_0x1500d0(0x1e3)]){const _0x3d4d3e=_0x5994b4(_0x548e45[_0x1500d0(0x258)])[_0x1500d0(0x268)]['reverse']()[_0x1500d0(0x24a)](_0x5f2051=>_0x5f2051['id']===_0x277ee5['id']);if(_0x3d4d3e){const _0x2b5839=_0x3d4d3e[_0x1500d0(0x225)][_0x1500d0(0x24e)],_0x3158cd=_0x3d4d3e[_0x1500d0(0x225)][_0x1500d0(0x233)]['id'];setTimeout(()=>{var _0x9b4c99=_0x1500d0;this[_0x9b4c99(0x272)]['executeCommand'](_0x270420['id'],{'unitId':_0x2b5839,'subUnitId':_0x3158cd},{'fromCollab':!0x0});});}}}[_0x1dc1a5(0x24b)](){var _0xda1a23=_0x1dc1a5;this['_status$'][_0xda1a23(0x283)]('presenting');const _0x1cb51a=new Map(),_0x42a9d4=this[_0xda1a23(0x206)]=new _0x41998f();_0x42a9d4[_0xda1a23(0x26c)](_0x461eb5(()=>{var _0x2a6adf=_0xda1a23;_0x1cb51a[_0x2a6adf(0x246)](_0x4adf32=>_0x4adf32[_0x2a6adf(0x28a)]()),_0x1cb51a[_0x2a6adf(0x20b)]();})),_0x42a9d4[_0xda1a23(0x26c)](this['_commandService']['onCommandExecuted'](_0x45eee9=>{var _0x15c325=_0xda1a23,_0x8a6bb1;if(_0x45eee9['type']!==_0x2938bd[_0x15c325(0x245)]||!this[_0x15c325(0x209)][_0x15c325(0x281)](_0x45eee9['id']))return;const {id:_0x5945af}=_0x45eee9;let _0x2ee6cf;_0x1cb51a[_0x15c325(0x1f5)](_0x5945af)?_0x2ee6cf=_0x1cb51a[_0x15c325(0x21d)](_0x5945af):(_0x2ee6cf=new _0x5cd0ad(),_0x1cb51a[_0x15c325(0x1ff)](_0x5945af,_0x2ee6cf),_0x2ee6cf[_0x15c325(0x26e)](_0x2f05e3((_0x8a6bb1=this[_0x15c325(0x25d)]['getConfig'](Pe))!=null?_0x8a6bb1:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x15c325(0x214)](_0x18a91a=>{var _0x4c40ee=_0x15c325;this[_0x4c40ee(0x210)][_0x4c40ee(0x1fd)]({'eventID':_0x13d362['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4c40ee(0x261)],'operations':{[_0x18a91a['id']]:{'id':_0x18a91a['id'],'params':JSON[_0x4c40ee(0x221)](_0x18a91a[_0x4c40ee(0x225)])}}}},this['_unitID']);})),_0x2ee6cf[_0x15c325(0x283)](_0x45eee9);})),this[_0xda1a23(0x209)][_0xda1a23(0x200)](this[_0xda1a23(0x261)])[_0xda1a23(0x246)](_0x1ee8f0=>this[_0xda1a23(0x210)][_0xda1a23(0x1fd)]({'eventID':_0x13d362['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xda1a23(0x261)],'operations':{[_0x1ee8f0['id']]:{'id':_0x1ee8f0['id'],'params':JSON[_0xda1a23(0x221)](_0x1ee8f0[_0xda1a23(0x225)])}}}},this[_0xda1a23(0x261)]));}[_0x1dc1a5(0x248)](){var _0x2f101c=_0x1dc1a5,_0x2dd4f0;this[_0x2f101c(0x27c)][_0x2f101c(0x283)]('idle'),(_0x2dd4f0=this[_0x2f101c(0x206)])==null||_0x2dd4f0[_0x2f101c(0x1fb)](),this['_commandDisposable']=null;}[_0x1dc1a5(0x260)](){var _0x57e0c0=_0x1dc1a5,_0x818fda;(_0x818fda=this[_0x57e0c0(0x206)])==null||_0x818fda[_0x57e0c0(0x1fb)](),this['_status$'][_0x57e0c0(0x283)]('following');}[_0x1dc1a5(0x23c)](){var _0x264ad6=_0x1dc1a5,_0x270446;this[_0x264ad6(0x27c)]['next'](_0x264ad6(0x1e6)),(_0x270446=this[_0x264ad6(0x206)])==null||_0x270446[_0x264ad6(0x1fb)](),this[_0x264ad6(0x206)]=null;}[_0x1dc1a5(0x213)](){var _0x53295a=_0x1dc1a5,_0x296f09;this['_status$'][_0x53295a(0x283)](_0x53295a(0x220)),(_0x296f09=this[_0x53295a(0x206)])==null||_0x296f09[_0x53295a(0x1fb)]();}[_0x1dc1a5(0x231)](_0x58dc90){var _0x554f7b=_0x1dc1a5;if([_0x554f7b(0x23a),_0x554f7b(0x220),_0x554f7b(0x224)][_0x554f7b(0x289)](this[_0x554f7b(0x1e7)])||!_0x58dc90[_0x554f7b(0x258)]['presenter']||_0x58dc90[_0x554f7b(0x258)]['presenter']===this[_0x554f7b(0x210)][_0x554f7b(0x27f)]())return;this['_status']==='idle'&&this[_0x554f7b(0x260)]();const _0x363df3=_0x58dc90[_0x554f7b(0x258)][_0x554f7b(0x1ec)];Object[_0x554f7b(0x229)](_0x363df3)[_0x554f7b(0x246)](_0x4ba255=>{var _0x3dca81=_0x554f7b;this['_commandService'][_0x3dca81(0x26f)](_0x4ba255['id'],_0x4ba255[_0x3dca81(0x225)]?JSON['parse'](_0x4ba255['params']):null,{'fromCollab':!0x0});});}[_0x1dc1a5(0x218)](){var _0x46acff=_0x1dc1a5,_0x31f2b1;this['_status$'][_0x46acff(0x283)]('offline'),(_0x31f2b1=this[_0x46acff(0x206)])==null||_0x31f2b1['dispose']();}[_0x1dc1a5(0x241)](){var _0x783176=_0x1dc1a5;this[_0x783176(0x27c)]['next'](_0x783176(0x1e6)),this[_0x783176(0x203)]();}};C=Z([f(0x2,_0xc56c8e),f(0x3,_0x11836f(L)),f(0x4,_0x5744d9)],C);function Te(){var _0x5bd601=_0x1dc1a5;const _0x1ba137=_0x3057c1(I),_0x546857=_0x3057c1(_0x226a9),_0xe6e66=_0x4ac25f(()=>_0x546857['getCurrentTypeOfUnit$'](_0xf3e818['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x14565d,_0x4df942]=_0x1d678d(null),[_0x1d04e7,_0x54ecd5]=_0x1d678d(h['IDLE']),_0x2c669f=_0x1e681e(null);return _0x30112b(()=>(_0xe6e66&&_0x1ba137[_0x5bd601(0x1e9)](_0xe6e66[_0x5bd601(0x271)]())['then'](_0x2e8864=>{var _0x591b17=_0x5bd601;_0x4df942(_0x2e8864),_0x2c669f[_0x591b17(0x22e)]=_0x2e8864[_0x591b17(0x27a)]['subscribe'](_0x49db83=>{_0x54ecd5(_0x49db83);});}),()=>{var _0x4590de=_0x5bd601,_0x257143;(_0x257143=_0x2c669f[_0x4590de(0x22e)])==null||_0x257143[_0x4590de(0x223)](),_0x2c669f[_0x4590de(0x22e)]=null;}),[_0xe6e66,_0x1ba137]),_0x14565d?_0x27cd08(_0x10ef05,{'align':'end','disabled':_0x1d04e7===h[_0x5bd601(0x269)],'className':_0x5bd601(0x215),'overlay':_0x27cd08($e,{'status':_0x1d04e7,'coordinator':_0x14565d}),'children':_0x27cd08(_0x5bd601(0x239),{'className':_0x4e6eb8(_0x5bd601(0x1e1),{'univer-cursor-not-allowed':_0x1d04e7===h[_0x5bd601(0x269)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1d04e7!==h[_0x5bd601(0x269)]}),'type':_0x5bd601(0x239),'children':_0x27cd08(B,{'className':_0x5bd601(0x21c)})})}):null;}function $e(_0x81be61){var _0x323e16=_0x1dc1a5;const {status:_0x2fd48e,coordinator:_0x10994b}=_0x81be61;switch(_0x2fd48e){case h[_0x323e16(0x1f9)]:return _0x27cd08(Fe,{'coordinator':_0x10994b});case h[_0x323e16(0x257)]:return _0x27cd08(He,{'coordinator':_0x10994b});case h[_0x323e16(0x222)]:return _0x27cd08(je,{'coordinator':_0x10994b});case h[_0x323e16(0x269)]:return _0x27cd08(Ve,{});case h['PRESENTING']:return _0x27cd08(Ue,{'coordinator':_0x10994b});default:return null;}}function Fe(_0x4ceb91){var _0x3de3bb=_0x1dc1a5;const {coordinator:_0x4c6c4a}=_0x4ceb91;return _0x27a89c(_0x1b8ec2,{'children':[_0x27cd08(_0x3de3bb(0x235),{'className':_0x3de3bb(0x244),'children':_0x3de3bb(0x26d)}),_0x27cd08(_0x1ecb1d,{'onClick':()=>_0x4c6c4a[_0x3de3bb(0x232)](),'children':_0x3de3bb(0x1f0)})]});}function He(_0x4d973b){var _0xbb5e41=_0x1dc1a5;const {coordinator:_0x15c2d9}=_0x4d973b;return _0x27a89c(_0x1b8ec2,{'children':[_0x27cd08(_0xbb5e41(0x235),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0xbb5e41(0x1dc)}),_0x27cd08(_0x1ecb1d,{'onClick':()=>_0x15c2d9['stopFollowing'](),'children':_0xbb5e41(0x247)})]});}function je(_0xe328e6){var _0x259839=_0x1dc1a5;const {coordinator:_0x43b13d}=_0xe328e6;return _0x27a89c(_0x1b8ec2,{'children':[_0x27cd08(_0x259839(0x235),{'className':_0x259839(0x244),'children':_0x259839(0x211)}),_0x27cd08(_0x1ecb1d,{'variant':_0x259839(0x205),'onClick':()=>_0x43b13d[_0x259839(0x278)](),'children':'Start\x20following'})]});}function Ue(_0x58fb52){var _0x26c039=_0x1dc1a5;const {coordinator:_0x116d2e}=_0x58fb52;return _0x27a89c(_0x1b8ec2,{'children':[_0x27cd08(_0x26c039(0x235),{'className':_0x26c039(0x244),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x27cd08(_0x1ecb1d,{'variant':'default','onClick':()=>_0x116d2e[_0x26c039(0x21f)](),'children':'Stop\x20presenting'})]});}function Ve(){return _0x27cd08(_0x1b8ec2,{'children':'You\x27are\x20offline.'});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0xbf3b1a,_0x53250a,_0x237309,_0x2af3f6)=>{var _0xc7381f=_0x1dc1a5;for(var _0x165fb1=_0x2af3f6>0x1?void 0x0:_0x2af3f6?Me(_0x53250a,_0x237309):_0x53250a,_0x11aafc=_0xbf3b1a[_0xc7381f(0x208)]-0x1,_0x40275f;_0x11aafc>=0x0;_0x11aafc--)(_0x40275f=_0xbf3b1a[_0x11aafc])&&(_0x165fb1=_0x40275f(_0x165fb1)||_0x165fb1);return _0x165fb1;},$=(_0x6353cd,_0x1c8ca9)=>(_0x3f568a,_0x1ade42)=>_0x1c8ca9(_0x3f568a,_0x1ade42,_0x6353cd);let b=class extends _0x3cc522{constructor(_0x49fa0a,_0x27d195){var _0x35f697=_0x1dc1a5;super(),this[_0x35f697(0x250)]=_0x49fa0a,this[_0x35f697(0x217)]=_0x27d195,this[_0x35f697(0x286)]();}['_mountLiveShare'](){var _0x538cec=_0x1dc1a5;this[_0x538cec(0x282)](this[_0x538cec(0x217)][_0x538cec(0x267)](_0x90734a[_0x538cec(0x26a)],()=>_0xdd594f(Te,this[_0x538cec(0x250)])));}};b=ke([$(0x0,_0x11836f(_0x152c82)),$(0x1,_0x472415)],b);function _0x9a5a(_0x417cd0,_0x5be246){var _0x2d1be7=_0x2d1b();return _0x9a5a=function(_0x9a5a44,_0x255086){_0x9a5a44=_0x9a5a44-0x1dc;var _0x536074=_0x2d1be7[_0x9a5a44];return _0x536074;},_0x9a5a(_0x417cd0,_0x5be246);}var Ge=Object[_0x1dc1a5(0x1f7)],We=Object[_0x1dc1a5(0x28e)],Ye=(_0x54685d,_0x1c84ff,_0x35efcd)=>_0x1c84ff in _0x54685d?Ge(_0x54685d,_0x1c84ff,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x35efcd}):_0x54685d[_0x1c84ff]=_0x35efcd,Be=(_0x30fece,_0xe54ba2,_0x520247,_0x2dbfff)=>{var _0x59e07b=_0x1dc1a5;for(var _0x40f40c=_0x2dbfff>0x1?void 0x0:_0x2dbfff?We(_0xe54ba2,_0x520247):_0xe54ba2,_0x2b0977=_0x30fece[_0x59e07b(0x208)]-0x1,_0x2cb4a7;_0x2b0977>=0x0;_0x2b0977--)(_0x2cb4a7=_0x30fece[_0x2b0977])&&(_0x40f40c=_0x2cb4a7(_0x40f40c)||_0x40f40c);return _0x40f40c;},F=(_0x35cd9e,_0x443b1b)=>(_0x462fa5,_0x40bf02)=>_0x443b1b(_0x462fa5,_0x40bf02,_0x35cd9e),J=(_0x1990ba,_0x38b124,_0x2c17ee)=>Ye(_0x1990ba,typeof _0x38b124!=_0x1dc1a5(0x273)?_0x38b124+'':_0x38b124,_0x2c17ee);const Ze=_0x1dc1a5(0x21b);let O=class extends _0x24b3db{constructor(_0x292110=T,_0x272aba,_0x5ea17c){var _0x50295a=_0x1dc1a5;super(),this[_0x50295a(0x202)]=_0x292110,this[_0x50295a(0x250)]=_0x272aba,this[_0x50295a(0x25d)]=_0x5ea17c;const {..._0xb9c6ab}=_0xe275a6({},T,this[_0x50295a(0x202)]);this[_0x50295a(0x25d)][_0x50295a(0x1ea)](Oe,_0xb9c6ab);}[_0x1dc1a5(0x201)](){var _0x10578c=_0x1dc1a5;_0x5dc9fe(this[_0x10578c(0x250)],_0x4e2a80([[L],[I],[m],[b]],this['_config'][_0x10578c(0x23b)])),_0x1369ca(this['_injector'],[[m]]);}[_0x1dc1a5(0x227)](){var _0x1c0858=_0x1dc1a5;_0x1369ca(this[_0x1c0858(0x250)],[[b]]);}};J(O,_0x1dc1a5(0x1f6),_0xf3e818['UNIVER_UNKNOWN']),J(O,_0x1dc1a5(0x284),Ze),O=Be([_0x584176(_0x37ee2a),F(0x1,_0x11836f(_0x152c82)),F(0x2,_0xc56c8e)],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 _0x3eff67=_0x31ab;(function(_0x34e3dd,_0xd7c235){var _0x5c499f=_0x31ab,_0x194726=_0x34e3dd();while(!![]){try{var _0x16e3db=parseInt(_0x5c499f(0x1e2))/0x1+-parseInt(_0x5c499f(0x191))/0x2+parseInt(_0x5c499f(0x1cf))/0x3*(parseInt(_0x5c499f(0x168))/0x4)+-parseInt(_0x5c499f(0x1b8))/0x5*(parseInt(_0x5c499f(0x187))/0x6)+parseInt(_0x5c499f(0x1b6))/0x7+-parseInt(_0x5c499f(0x1ae))/0x8+parseInt(_0x5c499f(0x1a0))/0x9;if(_0x16e3db===_0xd7c235)break;else _0x194726['push'](_0x194726['shift']());}catch(_0x1ed860){_0x194726['push'](_0x194726['shift']());}}}(_0x1f46,0x9efd8));var q=Object[_0x3eff67(0x166)],z=(_0x5672ec,_0x4afd82,_0x3b2038)=>_0x4afd82 in _0x5672ec?q(_0x5672ec,_0x4afd82,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3b2038}):_0x5672ec[_0x4afd82]=_0x3b2038,d=(_0x44d3ed,_0x5bcb97,_0x5a04a1)=>z(_0x44d3ed,typeof _0x5bcb97!=_0x3eff67(0x1d9)?_0x5bcb97+'':_0x5bcb97,_0x5a04a1);import{CollaborationSessionService as _0x3fb12e,SessionStatus as _0x1efbf3,UniverCollaborationClientPlugin as _0x10ce60}from'@univerjs-pro/collaboration-client';function _0x1f46(){var _0x18c72e=['path','use','idSuffix','LIVESHARE_OPERATION','hasOwnProperty','parse','getValue','13037319NXRNtn','getConfig','defs','length','memberID','complete','next','override','_configService','LIVESHARE_NEW_HOST','setConfig','UniverIcon','_startFollowing','dispose','4891152Reqask','status$','_mountLiveShare','icon','_reporters','_handleTerminate','clear','onStarting','2696883XAIoym','_sharedOperations','60xrnJUp','svg','_status$','You\x27re\x20following\x20the\x20presenter','_uiPartsService','UNIVER_SHEET','set','startFollowing','type','sheet','OFFLINE','univer-size-4','replace','ONLINE','children','_commandService','currentColor','prototype','getOwnPropertySymbols','pipe','Start\x20following','string','http://www.w3.org/2000/svg','11055xDOuhu','registerInitialStateReporter','mutations','getOwnPropertyDescriptor','presenter','_presenter','includes','forEach','div','stringify','symbol','from','has','send','reverse','0\x200\x2017\x2017','end','_init','fill','234688jVGHQb','disposeWithMe','getInitialStates','assign','Stop\x20following','get','createInstance','_stopFollowing','_collabSessionService','registerSharedOperation','_handleOperation','_handleNewHost','url(#$1','_liveShareService','apply','evenodd','attrs','Start','NOT_FOLLOWING','current','1em','init','call','LIVESHARE_REQUEST_HOST','displayName','shouldShareOperation','offline','live-share-icon','subscribe','asObservable','trim','_fetchOperations','dispose$','data','extend','PRESENTING','add','_beIdle','univerjs-icon\x20univerjs-icon-','NEW_CHANGESETS','_handleOffline','random','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','unitId','delete','className','stopPresenting','OPERATION','idle','_entities','_handleOnline','defineProperty','Stop\x20presenting','676eBmkdb','pluginName','xlink:href','sessionStatus$','univer-mb-3\x20univer-w-full\x20univer-text-sm','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','onCommandExecuted','_commandDisposable','concat','executeCommand','_unitID','tryStartPresenting','getTypeOfUnitAdded$','_config','values','FOLLOWING','text','You\x27re\x20presenting\x20the\x20document','colorChannel1','following','default','button','map','_univerInstanceService','then','getMemberID','SAME_OPERATION_SHARE_INTERVAL','getLiveShareCoordinator','not-following','entries','_status','638688SbpAel','_stopPresenting','getUnitId','defIds','_startLiveShareCoordinator','LIVESHARE_TERMINATE','operations','_startPresenting','params','UNIVER_LIVE_SHARE_PLUGIN','302638GNyelZ','tag','_injector','getCurrentTypeOfUnit$','_handleNewChangeSets','IDLE','_collabSession','presenting'];_0x1f46=function(){return _0x18c72e;};return _0x1f46();}import{Disposable as _0x41e790,toDisposable as _0x1c3b80,Inject as _0x409218,IUniverInstanceService as _0x55c1e4,Injector as _0x2813f3,IConfigService as _0x5e7702,ICommandService as _0x5ab311,RxDisposable as _0x423d8a,UniverInstanceType as _0x19162e,DisposableCollection as _0x523026,CommandType as _0x142835,DependentOn as _0x1c0dec,Plugin as _0x2dc758,merge as _0x4268e8,registerDependencies as _0x323506,mergeOverrideWithDependencies as _0x263d4d,touchDependencies as _0x29f66d}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x26f0a8,InsertSheetMutation as _0x2463e7}from'@univerjs/sheets';import{SetZoomRatioOperation as _0xb8ad1e,SetScrollOperation as _0x4808f9}from'@univerjs/sheets-ui';import{useDependency as _0x5cd417,useObservable as _0x1dad95,IUIPartsService as _0x54c0ed,BuiltInUIPart as _0x5ad5f4,connectInjector as _0x2f61ae}from'@univerjs/ui';import{jsx as _0x1fcf7b,jsxs as _0xdfee60,Fragment as _0x378d55}from'react/jsx-runtime';import{Dropdown as _0x15741b,clsx as _0x144952,Button as _0x360a74}from'@univerjs/design';import{forwardRef as _0x17b570,useRef as _0x1653ac,createElement as _0x2d133d,useState as _0x324aa9,useEffect as _0x23e425}from'react';import{CollaborationEvent as _0x22777c,parseProtocolChangeset as _0x540cc9}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x247e69,Subject as _0x3d88fa}from'rxjs';import{takeUntil as _0x492107,throttleTime as _0x2882f6}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x41e790{constructor(){var _0x511ecf=_0x3eff67;super(...arguments),d(this,_0x511ecf(0x1b7),new Set()),d(this,_0x511ecf(0x1b2),new Set());}[_0x3eff67(0x1eb)](_0x21fb17){var _0x33b33e=_0x3eff67;return this[_0x33b33e(0x1b7)][_0x33b33e(0x157)](_0x21fb17),_0x1c3b80(()=>this['_sharedOperations']['delete'](_0x21fb17));}[_0x3eff67(0x1d0)](_0x1981e8){var _0x57a982=_0x3eff67;return this[_0x57a982(0x1b2)]['add'](_0x1981e8),_0x1c3b80(()=>this[_0x57a982(0x1b2)][_0x57a982(0x15f)](_0x1981e8));}[_0x3eff67(0x1fb)](_0x713650){var _0x591a72=_0x3eff67;return this[_0x591a72(0x1b7)][_0x591a72(0x1db)](_0x713650);}['getInitialStates'](_0x3f2e6a){var _0x371d9d=_0x3eff67;return Array[_0x371d9d(0x1da)](this['_reporters'])[_0x371d9d(0x17e)](_0x2999c8=>_0x2999c8(_0x3f2e6a));}}var Ee=Object[_0x3eff67(0x1d2)],we=(_0x2effaf,_0x3ad890,_0x2b473c,_0xf61b5b)=>{var _0x1ee75d=_0x3eff67;for(var _0x417563=_0xf61b5b>0x1?void 0x0:_0xf61b5b?Ee(_0x3ad890,_0x2b473c):_0x3ad890,_0x980a50=_0x2effaf[_0x1ee75d(0x1a3)]-0x1,_0x49672f;_0x980a50>=0x0;_0x980a50--)(_0x49672f=_0x2effaf[_0x980a50])&&(_0x417563=_0x49672f(_0x417563)||_0x417563);return _0x417563;},Ne=(_0x4d9250,_0x122290)=>(_0x19f760,_0x3c74bf)=>_0x122290(_0x19f760,_0x3c74bf,_0x4d9250);let m=class extends _0x41e790{constructor(_0x21cd4d){var _0x1e7c96=_0x3eff67;super(),this[_0x1e7c96(0x1ef)]=_0x21cd4d,this[_0x1e7c96(0x1e0)]();}['_init'](){var _0x1c439e=_0x3eff67;[_0xb8ad1e['id'],_0x4808f9['id'],_0x26f0a8['id']][_0x1c439e(0x1d6)](_0x61990a=>{var _0x20fd33=_0x1c439e;this[_0x20fd33(0x1e3)](this[_0x20fd33(0x1ef)][_0x20fd33(0x1eb)](_0x61990a));});}};m=we([Ne(0x0,_0x409218(L))],m);var c=function(){var _0x4cbc56=_0x3eff67;return c=Object[_0x4cbc56(0x1e5)]||function(_0x12036d){var _0xb5a243=_0x4cbc56;for(var _0x372c80,_0x18d009=0x1,_0xe8ec69=arguments[_0xb5a243(0x1a3)];_0x18d009<_0xe8ec69;_0x18d009++){_0x372c80=arguments[_0x18d009];for(var _0x4b23a5 in _0x372c80)Object[_0xb5a243(0x1c9)][_0xb5a243(0x19d)][_0xb5a243(0x1f8)](_0x372c80,_0x4b23a5)&&(_0x12036d[_0x4b23a5]=_0x372c80[_0x4b23a5]);}return _0x12036d;},c[_0x4cbc56(0x1f0)](this,arguments);},Ce=function(_0x1b7e14,_0x1729d9){var _0x101efb=_0x3eff67,_0x22c09b={};for(var _0xaf4d0d in _0x1b7e14)Object[_0x101efb(0x1c9)][_0x101efb(0x19d)][_0x101efb(0x1f8)](_0x1b7e14,_0xaf4d0d)&&_0x1729d9['indexOf'](_0xaf4d0d)<0x0&&(_0x22c09b[_0xaf4d0d]=_0x1b7e14[_0xaf4d0d]);if(_0x1b7e14!=null&&typeof Object[_0x101efb(0x1ca)]=='function'){for(var _0xecea7a=0x0,_0xaf4d0d=Object[_0x101efb(0x1ca)](_0x1b7e14);_0xecea7a<_0xaf4d0d['length'];_0xecea7a++)_0x1729d9['indexOf'](_0xaf4d0d[_0xecea7a])<0x0&&Object['prototype']['propertyIsEnumerable']['call'](_0x1b7e14,_0xaf4d0d[_0xecea7a])&&(_0x22c09b[_0xaf4d0d[_0xecea7a]]=_0x1b7e14[_0xaf4d0d[_0xecea7a]]);}return _0x22c09b;},W=_0x17b570(function(_0x312eb2,_0x1afeb){var _0x55ee70=_0x3eff67,_0x2b7d8b=_0x312eb2[_0x55ee70(0x1b1)],_0x53a4a1=_0x312eb2['id'],_0x336fdd=_0x312eb2[_0x55ee70(0x160)],_0x13b316=_0x312eb2[_0x55ee70(0x204)],_0x34e919=Ce(_0x312eb2,['icon','id',_0x55ee70(0x160),'extend']),_0x5e22fa=_0x55ee70(0x159)['concat'](_0x53a4a1,'\x20')[_0x55ee70(0x170)](_0x336fdd||'')[_0x55ee70(0x200)](),_0x428f3a=_0x1653ac('_'['concat'](Le()));return Y(_0x2b7d8b,''[_0x55ee70(0x170)](_0x53a4a1),{'defIds':_0x2b7d8b[_0x55ee70(0x18a)],'idSuffix':_0x428f3a[_0x55ee70(0x1f5)]},c({'ref':_0x1afeb,'className':_0x5e22fa},_0x34e919),_0x13b316);});function Y(_0x5cc9af,_0xac24a9,_0x11b732,_0xceec65,_0x539e04){var _0x4e679f=_0x3eff67;return _0x2d133d(_0x5cc9af[_0x4e679f(0x192)],c(c({'key':_0xac24a9},De(_0x5cc9af,_0x11b732,_0x539e04)),_0xceec65),(xe(_0x5cc9af,_0x11b732)[_0x4e679f(0x1c6)]||[])['map'](function(_0x18bfd6,_0x492f08){var _0x12e310=_0x4e679f;return Y(_0x18bfd6,''[_0x12e310(0x170)](_0xac24a9,'-')['concat'](_0x5cc9af[_0x12e310(0x192)],'-')['concat'](_0x492f08),_0x11b732,void 0x0,_0x539e04);}));}function De(_0x15773c,_0x2f1217,_0x3cc958){var _0x2c9cc5=_0x3eff67,_0x132b37=c({},_0x15773c['attrs']);_0x3cc958!=null&&_0x3cc958[_0x2c9cc5(0x17a)]&&_0x132b37[_0x2c9cc5(0x1e1)]===_0x2c9cc5(0x17a)&&(_0x132b37['fill']=_0x3cc958[_0x2c9cc5(0x17a)]),_0x15773c[_0x2c9cc5(0x192)]==='mask'&&_0x132b37['id']&&(_0x132b37['id']=_0x132b37['id']+_0x2f1217[_0x2c9cc5(0x19b)]),Object[_0x2c9cc5(0x185)](_0x132b37)[_0x2c9cc5(0x1d6)](function(_0xfcfe7d){var _0x3e9dbc=_0x2c9cc5,_0x58e62e=_0xfcfe7d[0x0],_0x3b6947=_0xfcfe7d[0x1];_0x58e62e==='mask'&&typeof _0x3b6947==_0x3e9dbc(0x1cd)&&(_0x132b37[_0x58e62e]=_0x3b6947['replace'](/url\(#(.*)\)/,_0x3e9dbc(0x1ee)['concat'](_0x2f1217[_0x3e9dbc(0x19b)],')')));});var _0x1c1407=_0x2f1217[_0x2c9cc5(0x18a)];return!_0x1c1407||_0x1c1407[_0x2c9cc5(0x1a3)]===0x0||(_0x15773c[_0x2c9cc5(0x192)]===_0x2c9cc5(0x19a)&&_0x132b37[_0x2c9cc5(0x16a)]&&(_0x132b37[_0x2c9cc5(0x16a)]=_0x132b37['xlink:href']+_0x2f1217[_0x2c9cc5(0x19b)]),Object[_0x2c9cc5(0x185)](_0x132b37)[_0x2c9cc5(0x1d6)](function(_0x33e124){var _0x3667e5=_0x2c9cc5,_0x48e37d=_0x33e124[0x0],_0x539550=_0x33e124[0x1];typeof _0x539550=='string'&&(_0x132b37[_0x48e37d]=_0x539550[_0x3667e5(0x1c4)](/url\(#(.*)\)/,'url(#$1'[_0x3667e5(0x170)](_0x2f1217[_0x3667e5(0x19b)],')')));})),_0x132b37;}function xe(_0x499004,_0x59bc12){var _0x415ef6=_0x3eff67,_0x31ab1b,_0x4ea787=_0x59bc12[_0x415ef6(0x18a)];return!_0x4ea787||_0x4ea787[_0x415ef6(0x1a3)]===0x0?_0x499004:_0x499004[_0x415ef6(0x192)]===_0x415ef6(0x1a2)&&(!((_0x31ab1b=_0x499004['children'])===null||_0x31ab1b===void 0x0)&&_0x31ab1b[_0x415ef6(0x1a3)])?c(c({},_0x499004),{'children':_0x499004[_0x415ef6(0x1c6)][_0x415ef6(0x17e)](function(_0x5b8992){var _0x23f52a=_0x415ef6;return typeof _0x5b8992[_0x23f52a(0x1f2)]['id']==_0x23f52a(0x1cd)&&_0x4ea787&&_0x4ea787[_0x23f52a(0x1d5)](_0x5b8992[_0x23f52a(0x1f2)]['id'])?c(c({},_0x5b8992),{'attrs':c(c({},_0x5b8992[_0x23f52a(0x1f2)]),{'id':_0x5b8992[_0x23f52a(0x1f2)]['id']+_0x59bc12['idSuffix']})}):_0x5b8992;})}):_0x499004;}function Le(){var _0x509b4d=_0x3eff67;return Math[_0x509b4d(0x15c)]()['toString'](0x24)['substring'](0x2,0x8);}W[_0x3eff67(0x1fa)]=_0x3eff67(0x1ab);var ye={'tag':_0x3eff67(0x1b9),'attrs':{'xmlns':_0x3eff67(0x1ce),'fill':'none','viewBox':_0x3eff67(0x1de),'width':_0x3eff67(0x1f6),'height':_0x3eff67(0x1f6)},'children':[{'tag':_0x3eff67(0x199),'attrs':{'fill':_0x3eff67(0x1c8),'d':_0x3eff67(0x15d)}},{'tag':'path','attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':_0x3eff67(0x1f1)}}]},B=_0x17b570(function(_0x24943c,_0x2747ce){var _0x4f6b4f=_0x3eff67;return _0x2d133d(W,Object[_0x4f6b4f(0x1e5)]({},_0x24943c,{'id':_0x4f6b4f(0x1fd),'ref':_0x2747ce,'icon':ye}));});B['displayName']='LiveShareIcon';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x2f7209,_0x1e683c,_0x2f5ddd,_0x31032c)=>{for(var _0xfa9166=_0x31032c>0x1?void 0x0:_0x31032c?Re(_0x1e683c,_0x2f5ddd):_0x1e683c,_0x17c141=_0x2f7209['length']-0x1,_0x56f321;_0x17c141>=0x0;_0x17c141--)(_0x56f321=_0x2f7209[_0x17c141])&&(_0xfa9166=_0x56f321(_0xfa9166)||_0xfa9166);return _0xfa9166;},f=(_0x2536ba,_0x27e7de)=>(_0x21eef9,_0x539d35)=>_0x27e7de(_0x21eef9,_0x539d35,_0x2536ba);let I=class extends _0x423d8a{constructor(_0x3c1eab,_0x515c31,_0x286a8a){var _0x5b4530=_0x3eff67;super(),d(this,_0x5b4530(0x164),new Map()),(this['_univerInstanceService']=_0x3c1eab,this[_0x5b4530(0x193)]=_0x515c31,this[_0x5b4530(0x1ea)]=_0x286a8a,this[_0x5b4530(0x1e0)]());}async[_0x3eff67(0x183)](_0x576454){var _0xc77e91=_0x3eff67;return this[_0xc77e91(0x164)][_0xc77e91(0x1db)](_0x576454)||await this['_startLiveShareCoordinator'](_0x576454),this[_0xc77e91(0x164)][_0xc77e91(0x1e7)](_0x576454);}[_0x3eff67(0x1e0)](){var _0x2f2cac=_0x3eff67;this['_univerInstanceService'][_0x2f2cac(0x174)](_0x19162e[_0x2f2cac(0x1bd)])['pipe'](_0x492107(this[_0x2f2cac(0x202)]))['subscribe'](async _0x1880aa=>{var _0x1f0e18=_0x2f2cac;const _0x5a3dc3=_0x1880aa['getUnitId']();this[_0x1f0e18(0x164)]['has'](_0x5a3dc3)||this[_0x1f0e18(0x18b)](_0x5a3dc3);}),this[_0x2f2cac(0x17f)]['getTypeOfUnitDisposed$'](_0x19162e['UNIVER_SHEET'])[_0x2f2cac(0x1cb)](_0x492107(this[_0x2f2cac(0x202)]))[_0x2f2cac(0x1fe)](_0x5b57ef=>{var _0x5eaa5c=_0x2f2cac;const _0x51bf13=_0x5b57ef[_0x5eaa5c(0x189)](),_0x307285=this[_0x5eaa5c(0x164)][_0x5eaa5c(0x1e7)](_0x51bf13);_0x307285==null||_0x307285['dispose']();});}async['_startLiveShareCoordinator'](_0x2dc855){var _0xb92f5d=_0x3eff67;const _0x19642d=await this['_collabSessionService']['requireSession'](_0x2dc855),_0x3d664b=this[_0xb92f5d(0x193)][_0xb92f5d(0x1e8)](C,_0x2dc855,_0x19642d);return _0x3d664b[_0xb92f5d(0x1f7)](),this['_entities'][_0xb92f5d(0x1be)](_0x2dc855,_0x3d664b),_0x3d664b;}};I=Z([f(0x0,_0x55c1e4),f(0x1,_0x409218(_0x2813f3)),f(0x2,_0x409218(_0x3fb12e))],I);var h=(_0x280c93=>(_0x280c93[_0x3eff67(0x1c2)]=_0x3eff67(0x1fc),_0x280c93[_0x3eff67(0x196)]='idle',_0x280c93[_0x3eff67(0x177)]='following',_0x280c93[_0x3eff67(0x1f4)]='not-following',_0x280c93[_0x3eff67(0x205)]=_0x3eff67(0x198),_0x280c93))(h||{});const Pe=_0x3eff67(0x182),Ae=0xc8;let C=class extends _0x423d8a{constructor(_0x23dcb0,_0x5b7c1d,_0x3a6b25,_0x4f4851,_0x34947a){var _0x2d20f1=_0x3eff67;super(),d(this,_0x2d20f1(0x1ba),new _0x247e69(_0x2d20f1(0x163))),d(this,_0x2d20f1(0x1af),this[_0x2d20f1(0x1ba)][_0x2d20f1(0x1ff)]()),d(this,_0x2d20f1(0x1e0),!0x1),d(this,_0x2d20f1(0x16f),null),d(this,_0x2d20f1(0x1d4),null),(this[_0x2d20f1(0x172)]=_0x23dcb0,this[_0x2d20f1(0x197)]=_0x5b7c1d,this['_configService']=_0x3a6b25,this[_0x2d20f1(0x1ef)]=_0x4f4851,this[_0x2d20f1(0x1c7)]=_0x34947a);}get[_0x3eff67(0x186)](){var _0x59ff9e=_0x3eff67;return this[_0x59ff9e(0x1ba)][_0x59ff9e(0x19f)]();}[_0x3eff67(0x1ad)](){var _0x4f1529=_0x3eff67,_0x69d8c3;(_0x69d8c3=this['_commandDisposable'])==null||_0x69d8c3[_0x4f1529(0x1ad)](),this[_0x4f1529(0x1ba)][_0x4f1529(0x1a6)]('idle'),this[_0x4f1529(0x1ba)][_0x4f1529(0x1a5)]();}[_0x3eff67(0x1f7)](){var _0x1cbec9=_0x3eff67;this[_0x1cbec9(0x1e0)]||(this[_0x1cbec9(0x1e0)]=!0x0,this[_0x1cbec9(0x197)][_0x1cbec9(0x16b)][_0x1cbec9(0x1cb)](_0x492107(this[_0x1cbec9(0x202)]))[_0x1cbec9(0x1fe)](_0x140b68=>{var _0x333bd2=_0x1cbec9;switch(_0x140b68){case _0x1efbf3['OFFLINE']:this[_0x333bd2(0x15b)]();break;case _0x1efbf3[_0x333bd2(0x1c5)]:this[_0x333bd2(0x165)]();break;}}),this['_collabSession']['event$']['pipe'](_0x492107(this['dispose$']))[_0x1cbec9(0x1fe)](_0x1305fe=>{var _0x16f61a=_0x1cbec9;const {eventID:_0x394a48}=_0x1305fe;switch(_0x394a48){case _0x22777c[_0x16f61a(0x1a9)]:this[_0x16f61a(0x1ed)](_0x1305fe);break;case _0x22777c[_0x16f61a(0x19c)]:this[_0x16f61a(0x1ec)](_0x1305fe);break;case _0x22777c[_0x16f61a(0x18c)]:this[_0x16f61a(0x1b3)]();break;case _0x22777c[_0x16f61a(0x15a)]:this[_0x16f61a(0x195)](_0x1305fe);break;}}));}['tryStartPresenting'](){var _0x8684b4=_0x3eff67;this['_collabSession'][_0x8684b4(0x1dc)]({'eventID':_0x22777c[_0x8684b4(0x1f9)],'data':{'unitID':this[_0x8684b4(0x172)],'userID':this[_0x8684b4(0x197)][_0x8684b4(0x181)]()}},this['_unitID']);}[_0x3eff67(0x161)](){var _0x3e1187=_0x3eff67;this[_0x3e1187(0x186)]===_0x3e1187(0x198)&&(this[_0x3e1187(0x1ba)][_0x3e1187(0x1a6)](_0x3e1187(0x163)),this[_0x3e1187(0x197)][_0x3e1187(0x1dc)]({'eventID':_0x22777c[_0x3e1187(0x18c)],'data':{'unitID':this['_unitID']}},this[_0x3e1187(0x172)]));}[_0x3eff67(0x1bf)](){var _0x329f13=_0x3eff67;this['_status']==='not-following'&&(this[_0x329f13(0x1ba)][_0x329f13(0x1a6)](_0x329f13(0x17b)),this[_0x329f13(0x1ac)]());}['stopFollowing'](){var _0xe50d51=_0x3eff67;this[_0xe50d51(0x186)]===_0xe50d51(0x17b)&&this[_0xe50d51(0x1e9)]();}[_0x3eff67(0x1ed)](_0x486328){var _0x5d0dfc=_0x3eff67;const {presenter:_0x430367}=_0x486328[_0x5d0dfc(0x203)],_0x34e792=this['_collabSession'][_0x5d0dfc(0x181)]();this[_0x5d0dfc(0x1d4)]=_0x430367,_0x430367===_0x34e792?(this[_0x5d0dfc(0x1e9)](),this[_0x5d0dfc(0x18e)]()):this[_0x5d0dfc(0x186)]!==_0x5d0dfc(0x184)&&(this[_0x5d0dfc(0x188)](),this[_0x5d0dfc(0x1ac)]());}[_0x3eff67(0x201)](){var _0x44dbf2=_0x3eff67;const _0x505b06={'eventID':_0x22777c['LIVESHARE_FETCH_OPERATIONS']};this[_0x44dbf2(0x197)]['send'](_0x505b06,this[_0x44dbf2(0x172)]);}[_0x3eff67(0x1b3)](){var _0x46870b=_0x3eff67;this[_0x46870b(0x1d4)]=null,this[_0x46870b(0x186)]!=='presenting'&&this[_0x46870b(0x158)]();}[_0x3eff67(0x195)](_0x3fe886){var _0x1a2b64=_0x3eff67;if(this['_status']===_0x1a2b64(0x17b)&&this['_presenter']===_0x3fe886[_0x1a2b64(0x203)][_0x1a2b64(0x1a4)]){const _0x2fd7bd=_0x540cc9(_0x3fe886[_0x1a2b64(0x203)])[_0x1a2b64(0x1d1)][_0x1a2b64(0x1dd)]()['find'](_0x487629=>_0x487629['id']===_0x2463e7['id']);if(_0x2fd7bd){const _0x48cff6=_0x2fd7bd[_0x1a2b64(0x18f)][_0x1a2b64(0x15e)],_0x502ac1=_0x2fd7bd['params'][_0x1a2b64(0x1c1)]['id'];setTimeout(()=>{var _0x4add76=_0x1a2b64;this['_commandService'][_0x4add76(0x171)](_0x26f0a8['id'],{'unitId':_0x48cff6,'subUnitId':_0x502ac1},{'fromCollab':!0x0});});}}}[_0x3eff67(0x18e)](){var _0x2defe3=_0x3eff67;this['_status$'][_0x2defe3(0x1a6)](_0x2defe3(0x198));const _0x3a2133=new Map(),_0x4a9484=this[_0x2defe3(0x16f)]=new _0x523026();_0x4a9484[_0x2defe3(0x157)](_0x1c3b80(()=>{var _0x420e6a=_0x2defe3;_0x3a2133[_0x420e6a(0x1d6)](_0x9c3fd8=>_0x9c3fd8[_0x420e6a(0x1a5)]()),_0x3a2133[_0x420e6a(0x1b4)]();})),_0x4a9484[_0x2defe3(0x157)](this[_0x2defe3(0x1c7)][_0x2defe3(0x16e)](_0x4d1379=>{var _0x535916=_0x2defe3,_0x290b4b;if(_0x4d1379[_0x535916(0x1c0)]!==_0x142835[_0x535916(0x162)]||!this[_0x535916(0x1ef)]['shouldShareOperation'](_0x4d1379['id']))return;const {id:_0x2b469c}=_0x4d1379;let _0x41051b;_0x3a2133[_0x535916(0x1db)](_0x2b469c)?_0x41051b=_0x3a2133['get'](_0x2b469c):(_0x41051b=new _0x3d88fa(),_0x3a2133[_0x535916(0x1be)](_0x2b469c,_0x41051b),_0x41051b[_0x535916(0x1cb)](_0x2882f6((_0x290b4b=this[_0x535916(0x1a8)][_0x535916(0x1a1)](Pe))!=null?_0x290b4b:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x535916(0x1fe)](_0x3c43d5=>{var _0x4dd041=_0x535916;this[_0x4dd041(0x197)]['send']({'eventID':_0x22777c[_0x4dd041(0x19c)],'data':{'unitID':this[_0x4dd041(0x172)],'operations':{[_0x3c43d5['id']]:{'id':_0x3c43d5['id'],'params':JSON['stringify'](_0x3c43d5[_0x4dd041(0x18f)])}}}},this[_0x4dd041(0x172)]);})),_0x41051b[_0x535916(0x1a6)](_0x4d1379);})),this['_liveShareService'][_0x2defe3(0x1e4)](this['_unitID'])[_0x2defe3(0x1d6)](_0x3ed3c6=>this['_collabSession'][_0x2defe3(0x1dc)]({'eventID':_0x22777c[_0x2defe3(0x19c)],'data':{'unitID':this[_0x2defe3(0x172)],'operations':{[_0x3ed3c6['id']]:{'id':_0x3ed3c6['id'],'params':JSON[_0x2defe3(0x1d8)](_0x3ed3c6[_0x2defe3(0x18f)])}}}},this[_0x2defe3(0x172)]));}[_0x3eff67(0x188)](){var _0x140c71=_0x3eff67,_0x42d3e3;this[_0x140c71(0x1ba)][_0x140c71(0x1a6)]('idle'),(_0x42d3e3=this[_0x140c71(0x16f)])==null||_0x42d3e3[_0x140c71(0x1ad)](),this[_0x140c71(0x16f)]=null;}[_0x3eff67(0x1ac)](){var _0xfe0922=_0x3eff67,_0x217c15;(_0x217c15=this['_commandDisposable'])==null||_0x217c15['dispose'](),this[_0xfe0922(0x1ba)][_0xfe0922(0x1a6)]('following');}[_0x3eff67(0x158)](){var _0x4b45fd=_0x3eff67,_0x136ec9;this['_status$'][_0x4b45fd(0x1a6)]('idle'),(_0x136ec9=this['_commandDisposable'])==null||_0x136ec9[_0x4b45fd(0x1ad)](),this[_0x4b45fd(0x16f)]=null;}[_0x3eff67(0x1e9)](){var _0x5bbd2e=_0x3eff67,_0x5ccf9c;this[_0x5bbd2e(0x1ba)][_0x5bbd2e(0x1a6)](_0x5bbd2e(0x184)),(_0x5ccf9c=this[_0x5bbd2e(0x16f)])==null||_0x5ccf9c[_0x5bbd2e(0x1ad)]();}[_0x3eff67(0x1ec)](_0x4a8318){var _0x1f2822=_0x3eff67;if(['presenting',_0x1f2822(0x184),'offline'][_0x1f2822(0x1d5)](this['_status'])||!_0x4a8318[_0x1f2822(0x203)][_0x1f2822(0x1d3)]||_0x4a8318[_0x1f2822(0x203)]['presenter']===this['_collabSession']['getMemberID']())return;this['_status']===_0x1f2822(0x163)&&this['_startFollowing']();const _0x3192f4=_0x4a8318[_0x1f2822(0x203)][_0x1f2822(0x18d)];Object[_0x1f2822(0x176)](_0x3192f4)[_0x1f2822(0x1d6)](_0x49d78c=>{var _0x36580f=_0x1f2822;this[_0x36580f(0x1c7)]['executeCommand'](_0x49d78c['id'],_0x49d78c[_0x36580f(0x18f)]?JSON[_0x36580f(0x19e)](_0x49d78c[_0x36580f(0x18f)]):null,{'fromCollab':!0x0});});}[_0x3eff67(0x15b)](){var _0x419dd4=_0x3eff67,_0x36c8f7;this[_0x419dd4(0x1ba)]['next'](_0x419dd4(0x1fc)),(_0x36c8f7=this['_commandDisposable'])==null||_0x36c8f7[_0x419dd4(0x1ad)]();}[_0x3eff67(0x165)](){var _0x5001bc=_0x3eff67;this[_0x5001bc(0x1ba)]['next']('idle'),this[_0x5001bc(0x201)]();}};C=Z([f(0x2,_0x5e7702),f(0x3,_0x409218(L)),f(0x4,_0x5ab311)],C);function Te(){var _0x1a9ba1=_0x3eff67;const _0x3b132a=_0x5cd417(I),_0x3ae74e=_0x5cd417(_0x55c1e4),_0x3ba848=_0x1dad95(()=>_0x3ae74e[_0x1a9ba1(0x194)](_0x19162e[_0x1a9ba1(0x1bd)]),void 0x0,!0x1,[]),[_0x30ea57,_0x19be99]=_0x324aa9(null),[_0x8cc31b,_0x4ba61d]=_0x324aa9(h[_0x1a9ba1(0x196)]),_0x160789=_0x1653ac(null);return _0x23e425(()=>(_0x3ba848&&_0x3b132a['getLiveShareCoordinator'](_0x3ba848[_0x1a9ba1(0x189)]())[_0x1a9ba1(0x180)](_0x368430=>{var _0x1dc4b8=_0x1a9ba1;_0x19be99(_0x368430),_0x160789['current']=_0x368430[_0x1dc4b8(0x1af)][_0x1dc4b8(0x1fe)](_0x1eae66=>{_0x4ba61d(_0x1eae66);});}),()=>{var _0x57b4a8=_0x1a9ba1,_0x2bfd26;(_0x2bfd26=_0x160789[_0x57b4a8(0x1f5)])==null||_0x2bfd26['unsubscribe'](),_0x160789[_0x57b4a8(0x1f5)]=null;}),[_0x3ba848,_0x3b132a]),_0x30ea57?_0x1fcf7b(_0x15741b,{'align':_0x1a9ba1(0x1df),'disabled':_0x8cc31b===h[_0x1a9ba1(0x1c2)],'className':_0x1a9ba1(0x16d),'overlay':_0x1fcf7b($e,{'status':_0x8cc31b,'coordinator':_0x30ea57}),'children':_0x1fcf7b(_0x1a9ba1(0x17d),{'className':_0x144952('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x8cc31b===h[_0x1a9ba1(0x1c2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x8cc31b!==h[_0x1a9ba1(0x1c2)]}),'type':'button','children':_0x1fcf7b(B,{'className':_0x1a9ba1(0x1c3)})})}):null;}function $e(_0x42cc85){var _0x3e2a86=_0x3eff67;const {status:_0x20e27f,coordinator:_0x2eb42f}=_0x42cc85;switch(_0x20e27f){case h[_0x3e2a86(0x196)]:return _0x1fcf7b(Fe,{'coordinator':_0x2eb42f});case h[_0x3e2a86(0x177)]:return _0x1fcf7b(He,{'coordinator':_0x2eb42f});case h[_0x3e2a86(0x1f4)]:return _0x1fcf7b(je,{'coordinator':_0x2eb42f});case h[_0x3e2a86(0x1c2)]:return _0x1fcf7b(Ve,{});case h['PRESENTING']:return _0x1fcf7b(Ue,{'coordinator':_0x2eb42f});default:return null;}}function Fe(_0x58fe9b){var _0x36edee=_0x3eff67;const {coordinator:_0x350c92}=_0x58fe9b;return _0xdfee60(_0x378d55,{'children':[_0x1fcf7b('div',{'className':_0x36edee(0x16c),'children':'Present\x20this\x20document'}),_0x1fcf7b(_0x360a74,{'onClick':()=>_0x350c92[_0x36edee(0x173)](),'children':_0x36edee(0x1f3)})]});}function He(_0x4418a3){var _0x451541=_0x3eff67;const {coordinator:_0x2848d1}=_0x4418a3;return _0xdfee60(_0x378d55,{'children':[_0x1fcf7b(_0x451541(0x1d7),{'className':_0x451541(0x16c),'children':_0x451541(0x1bb)}),_0x1fcf7b(_0x360a74,{'onClick':()=>_0x2848d1['stopFollowing'](),'children':_0x451541(0x1e6)})]});}function je(_0x14ff33){var _0x48dd37=_0x3eff67;const {coordinator:_0x1d91a8}=_0x14ff33;return _0xdfee60(_0x378d55,{'children':[_0x1fcf7b(_0x48dd37(0x1d7),{'className':_0x48dd37(0x16c),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x1fcf7b(_0x360a74,{'variant':_0x48dd37(0x178),'onClick':()=>_0x1d91a8[_0x48dd37(0x1bf)](),'children':_0x48dd37(0x1cc)})]});}function Ue(_0x31539b){var _0x32c938=_0x3eff67;const {coordinator:_0x44b13e}=_0x31539b;return _0xdfee60(_0x378d55,{'children':[_0x1fcf7b('div',{'className':_0x32c938(0x16c),'children':_0x32c938(0x179)}),_0x1fcf7b(_0x360a74,{'variant':_0x32c938(0x17c),'onClick':()=>_0x44b13e[_0x32c938(0x161)](),'children':_0x32c938(0x167)})]});}function Ve(){return _0x1fcf7b(_0x378d55,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x3eff67(0x1d2)],ke=(_0x591f41,_0x56a2af,_0x6d7a9e,_0x1e45d8)=>{var _0x40b3c8=_0x3eff67;for(var _0x3cc535=_0x1e45d8>0x1?void 0x0:_0x1e45d8?Me(_0x56a2af,_0x6d7a9e):_0x56a2af,_0x17e719=_0x591f41[_0x40b3c8(0x1a3)]-0x1,_0x302d04;_0x17e719>=0x0;_0x17e719--)(_0x302d04=_0x591f41[_0x17e719])&&(_0x3cc535=_0x302d04(_0x3cc535)||_0x3cc535);return _0x3cc535;},$=(_0x528a6b,_0x1b023d)=>(_0x167401,_0x34e924)=>_0x1b023d(_0x167401,_0x34e924,_0x528a6b);let b=class extends _0x41e790{constructor(_0x4cf3b3,_0x2c7820){var _0x187063=_0x3eff67;super(),this['_injector']=_0x4cf3b3,this[_0x187063(0x1bc)]=_0x2c7820,this[_0x187063(0x1b0)]();}[_0x3eff67(0x1b0)](){var _0x5cfccd=_0x3eff67;this[_0x5cfccd(0x1e3)](this['_uiPartsService']['registerComponent'](_0x5ad5f4['HEADER_MENU'],()=>_0x2f61ae(Te,this[_0x5cfccd(0x193)])));}};b=ke([$(0x0,_0x409218(_0x2813f3)),$(0x1,_0x54c0ed)],b);var Ge=Object[_0x3eff67(0x166)],We=Object[_0x3eff67(0x1d2)],Ye=(_0x2d3c93,_0x2d0f37,_0xed73d8)=>_0x2d0f37 in _0x2d3c93?Ge(_0x2d3c93,_0x2d0f37,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xed73d8}):_0x2d3c93[_0x2d0f37]=_0xed73d8,Be=(_0x2510d4,_0x5108c4,_0x1f2dda,_0x35cac2)=>{var _0x2796c2=_0x3eff67;for(var _0x1e14c7=_0x35cac2>0x1?void 0x0:_0x35cac2?We(_0x5108c4,_0x1f2dda):_0x5108c4,_0x2d6a8f=_0x2510d4[_0x2796c2(0x1a3)]-0x1,_0x4ea412;_0x2d6a8f>=0x0;_0x2d6a8f--)(_0x4ea412=_0x2510d4[_0x2d6a8f])&&(_0x1e14c7=_0x4ea412(_0x1e14c7)||_0x1e14c7);return _0x1e14c7;},F=(_0x3170f7,_0x196345)=>(_0x23984f,_0xf54b04)=>_0x196345(_0x23984f,_0xf54b04,_0x3170f7),J=(_0x3f08c7,_0x64f2e4,_0x2b7759)=>Ye(_0x3f08c7,typeof _0x64f2e4!='symbol'?_0x64f2e4+'':_0x64f2e4,_0x2b7759);const Ze=_0x3eff67(0x190);let O=class extends _0x2dc758{constructor(_0x5d9f77=T,_0x2422bb,_0x499dba){var _0x34ffad=_0x3eff67;super(),this['_config']=_0x5d9f77,this['_injector']=_0x2422bb,this[_0x34ffad(0x1a8)]=_0x499dba;const {..._0x14266a}=_0x4268e8({},T,this[_0x34ffad(0x175)]);this[_0x34ffad(0x1a8)][_0x34ffad(0x1aa)](Oe,_0x14266a);}[_0x3eff67(0x1b5)](){var _0x3ba933=_0x3eff67;_0x323506(this[_0x3ba933(0x193)],_0x263d4d([[L],[I],[m],[b]],this['_config'][_0x3ba933(0x1a7)])),_0x29f66d(this['_injector'],[[m]]);}['onRendered'](){var _0x16cccf=_0x3eff67;_0x29f66d(this[_0x16cccf(0x193)],[[b]]);}};function _0x31ab(_0x214011,_0x46be5e){var _0x1f462f=_0x1f46();return _0x31ab=function(_0x31ab44,_0x418f67){_0x31ab44=_0x31ab44-0x157;var _0x1926e7=_0x1f462f[_0x31ab44];return _0x1926e7;},_0x31ab(_0x214011,_0x46be5e);}J(O,'type',_0x19162e['UNIVER_UNKNOWN']),J(O,_0x3eff67(0x169),Ze),O=Be([_0x1c0dec(_0x10ce60),F(0x1,_0x409218(_0x2813f3)),F(0x2,_0x5e7702)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x5230(_0x3bc85d,_0xadd60){var _0x33f112=_0x33f1();return _0x5230=function(_0x5230db,_0xe9077){_0x5230db=_0x5230db-0x18d;var _0x4206ff=_0x33f112[_0x5230db];return _0x4206ff;},_0x5230(_0x3bc85d,_0xadd60);}(function(_0x45a4c9,_0x6ae00c){var _0x38c3d9=_0x5230,_0x2b172f=_0x45a4c9();while(!![]){try{var _0x12319a=-parseInt(_0x38c3d9(0x1f1))/0x1*(parseInt(_0x38c3d9(0x20e))/0x2)+parseInt(_0x38c3d9(0x20d))/0x3+parseInt(_0x38c3d9(0x19d))/0x4+parseInt(_0x38c3d9(0x24d))/0x5*(parseInt(_0x38c3d9(0x1ce))/0x6)+-parseInt(_0x38c3d9(0x21a))/0x7*(-parseInt(_0x38c3d9(0x1d6))/0x8)+-parseInt(_0x38c3d9(0x228))/0x9+-parseInt(_0x38c3d9(0x258))/0xa*(parseInt(_0x38c3d9(0x219))/0xb);if(_0x12319a===_0x6ae00c)break;else _0x2b172f['push'](_0x2b172f['shift']());}catch(_0x2238b2){_0x2b172f['push'](_0x2b172f['shift']());}}}(_0x33f1,0x9cf48),function(_0x44f0db,_0x63effa){var _0x3dfb1c=_0x5230;typeof exports==_0x3dfb1c(0x20a)&&typeof module<'u'?_0x63effa(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==_0x3dfb1c(0x257)&&define['amd']?define([_0x3dfb1c(0x23a),_0x3dfb1c(0x208),_0x3dfb1c(0x275),_0x3dfb1c(0x1b7),_0x3dfb1c(0x25a),_0x3dfb1c(0x1d2),_0x3dfb1c(0x1d3),_0x3dfb1c(0x23c),_0x3dfb1c(0x21e),_0x3dfb1c(0x231),_0x3dfb1c(0x197),_0x3dfb1c(0x25e)],_0x63effa):(_0x44f0db=typeof globalThis<'u'?globalThis:_0x44f0db||self,_0x63effa(_0x44f0db[_0x3dfb1c(0x1c7)]={},_0x44f0db[_0x3dfb1c(0x256)],_0x44f0db[_0x3dfb1c(0x216)],_0x44f0db['UniverSheets'],_0x44f0db[_0x3dfb1c(0x1a9)],_0x44f0db[_0x3dfb1c(0x1e0)],_0x44f0db['React'],_0x44f0db[_0x3dfb1c(0x1a2)],_0x44f0db[_0x3dfb1c(0x1d0)],_0x44f0db[_0x3dfb1c(0x1ca)],_0x44f0db['rxjs'],_0x44f0db['rxjs'][_0x3dfb1c(0x268)]));}(this,function(_0x5e8362,_0x327643,_0x3f645b,_0x54ea5f,_0xfd4c40,_0x448afd,_0x580bc1,_0x56011e,_0x5d339f,_0x287f4a,_0x2b6269,_0xd286ea){'use strict';var _0x49032e=_0x5230;var _0xa8e955=Object[_0x49032e(0x1b1)],_0x17aa63=(_0x32da94,_0x4d1cdc,_0x3c5bda)=>_0x4d1cdc in _0x32da94?_0xa8e955(_0x32da94,_0x4d1cdc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c5bda}):_0x32da94[_0x4d1cdc]=_0x3c5bda,_0x5b9963=(_0xb3bdbf,_0x18d002,_0x4c08f9)=>_0x17aa63(_0xb3bdbf,typeof _0x18d002!=_0x49032e(0x202)?_0x18d002+'':_0x18d002,_0x4c08f9);const _0xe75297=_0x49032e(0x1f5),_0x155af1={};class _0x2b8e21 extends _0x3f645b[_0x49032e(0x1c6)]{constructor(){var _0x45d78e=_0x49032e;super(...arguments),_0x5b9963(this,_0x45d78e(0x214),new Set()),_0x5b9963(this,_0x45d78e(0x1e7),new Set());}[_0x49032e(0x1ed)](_0x37a0f2){var _0x203c61=_0x49032e;return this[_0x203c61(0x214)][_0x203c61(0x22b)](_0x37a0f2),_0x3f645b[_0x203c61(0x21b)](()=>this[_0x203c61(0x214)][_0x203c61(0x204)](_0x37a0f2));}[_0x49032e(0x224)](_0x4ba286){var _0x34daa7=_0x49032e;return this['_reporters'][_0x34daa7(0x22b)](_0x4ba286),_0x3f645b[_0x34daa7(0x21b)](()=>this[_0x34daa7(0x1e7)][_0x34daa7(0x204)](_0x4ba286));}[_0x49032e(0x25d)](_0x55c8e3){var _0x367615=_0x49032e;return this[_0x367615(0x214)]['has'](_0x55c8e3);}[_0x49032e(0x250)](_0x3562c7){var _0x290a1f=_0x49032e;return Array[_0x290a1f(0x24a)](this[_0x290a1f(0x1e7)])['map'](_0x39893e=>_0x39893e(_0x3562c7));}}var _0x11194d=Object[_0x49032e(0x21f)],_0x57a2ae=(_0x56fe98,_0x52481d,_0x3f3264,_0x260fe5)=>{for(var _0x4df8eb=_0x260fe5>0x1?void 0x0:_0x260fe5?_0x11194d(_0x52481d,_0x3f3264):_0x52481d,_0x47bd61=_0x56fe98['length']-0x1,_0x7289ce;_0x47bd61>=0x0;_0x47bd61--)(_0x7289ce=_0x56fe98[_0x47bd61])&&(_0x4df8eb=_0x7289ce(_0x4df8eb)||_0x4df8eb);return _0x4df8eb;},_0x1b2fbc=(_0x148fad,_0x29ab34)=>(_0x2e91e4,_0x45ebbb)=>_0x29ab34(_0x2e91e4,_0x45ebbb,_0x148fad);let _0x362e9a=class extends _0x3f645b[_0x49032e(0x1c6)]{constructor(_0x3be953){var _0x1285b1=_0x49032e;super(),this[_0x1285b1(0x1b6)]=_0x3be953,this['_init']();}[_0x49032e(0x201)](){var _0x2e3180=_0x49032e;[_0xfd4c40[_0x2e3180(0x246)]['id'],_0xfd4c40[_0x2e3180(0x1af)]['id'],_0x54ea5f['SetWorksheetActiveOperation']['id']][_0x2e3180(0x1ba)](_0x3ae637=>{var _0x2cecaf=_0x2e3180;this[_0x2cecaf(0x232)](this['_liveShareService'][_0x2cecaf(0x1ed)](_0x3ae637));});}};_0x362e9a=_0x57a2ae([_0x1b2fbc(0x0,_0x3f645b[_0x49032e(0x26e)](_0x2b8e21))],_0x362e9a);var _0x3ee45b=function(){var _0x267786=_0x49032e;return _0x3ee45b=Object[_0x267786(0x259)]||function(_0xc05d04){var _0x2fa424=_0x267786;for(var _0x1f7b82,_0x191de0=0x1,_0x4c233a=arguments[_0x2fa424(0x233)];_0x191de0<_0x4c233a;_0x191de0++){_0x1f7b82=arguments[_0x191de0];for(var _0x3e23d3 in _0x1f7b82)Object[_0x2fa424(0x1b5)][_0x2fa424(0x23f)][_0x2fa424(0x27c)](_0x1f7b82,_0x3e23d3)&&(_0xc05d04[_0x3e23d3]=_0x1f7b82[_0x3e23d3]);}return _0xc05d04;},_0x3ee45b[_0x267786(0x1c9)](this,arguments);},_0x5a021b=function(_0x354c2d,_0x31a902){var _0x1a993f=_0x49032e,_0x354ff8={};for(var _0x49bd48 in _0x354c2d)Object['prototype'][_0x1a993f(0x23f)]['call'](_0x354c2d,_0x49bd48)&&_0x31a902[_0x1a993f(0x20b)](_0x49bd48)<0x0&&(_0x354ff8[_0x49bd48]=_0x354c2d[_0x49bd48]);if(_0x354c2d!=null&&typeof Object[_0x1a993f(0x1c8)]==_0x1a993f(0x257)){for(var _0x44936e=0x0,_0x49bd48=Object[_0x1a993f(0x1c8)](_0x354c2d);_0x44936e<_0x49bd48[_0x1a993f(0x233)];_0x44936e++)_0x31a902[_0x1a993f(0x20b)](_0x49bd48[_0x44936e])<0x0&&Object[_0x1a993f(0x1b5)][_0x1a993f(0x1f6)][_0x1a993f(0x27c)](_0x354c2d,_0x49bd48[_0x44936e])&&(_0x354ff8[_0x49bd48[_0x44936e]]=_0x354c2d[_0x49bd48[_0x44936e]]);}return _0x354ff8;},_0x28be85=_0x5d339f[_0x49032e(0x190)](function(_0x33db69,_0x33c55a){var _0x6db82=_0x49032e,_0x392036=_0x33db69['icon'],_0x70ec14=_0x33db69['id'],_0x3aa03e=_0x33db69['className'],_0x54d222=_0x33db69['extend'],_0x32b2da=_0x5a021b(_0x33db69,['icon','id',_0x6db82(0x19b),_0x6db82(0x273)]),_0x5b6282=_0x6db82(0x1c5)[_0x6db82(0x272)](_0x70ec14,'\x20')[_0x6db82(0x272)](_0x3aa03e||'')[_0x6db82(0x194)](),_0x2753b1=_0x5d339f[_0x6db82(0x1e6)]('_'['concat'](_0x3b5afa()));return _0x24cbf5(_0x392036,''[_0x6db82(0x272)](_0x70ec14),{'defIds':_0x392036[_0x6db82(0x278)],'idSuffix':_0x2753b1['current']},_0x3ee45b({'ref':_0x33c55a,'className':_0x5b6282},_0x32b2da),_0x54d222);});function _0x24cbf5(_0x44e82e,_0x597d7e,_0x50f2d6,_0x5c74cc,_0x565e81){var _0x3948af=_0x49032e;return _0x5d339f['createElement'](_0x44e82e['tag'],_0x3ee45b(_0x3ee45b({'key':_0x597d7e},_0x10d4a7(_0x44e82e,_0x50f2d6,_0x565e81)),_0x5c74cc),(_0x2434f7(_0x44e82e,_0x50f2d6)[_0x3948af(0x243)]||[])[_0x3948af(0x22e)](function(_0x3a1ea3,_0x23dc46){var _0x4ca6d4=_0x3948af;return _0x24cbf5(_0x3a1ea3,''['concat'](_0x597d7e,'-')[_0x4ca6d4(0x272)](_0x44e82e['tag'],'-')['concat'](_0x23dc46),_0x50f2d6,void 0x0,_0x565e81);}));}function _0x10d4a7(_0x3ee4a2,_0x5c0528,_0x195a68){var _0x1cde8c=_0x49032e,_0xd12986=_0x3ee45b({},_0x3ee4a2[_0x1cde8c(0x236)]);_0x195a68!=null&&_0x195a68[_0x1cde8c(0x19f)]&&_0xd12986[_0x1cde8c(0x1fc)]===_0x1cde8c(0x19f)&&(_0xd12986[_0x1cde8c(0x1fc)]=_0x195a68[_0x1cde8c(0x19f)]),_0x3ee4a2['tag']==='mask'&&_0xd12986['id']&&(_0xd12986['id']=_0xd12986['id']+_0x5c0528[_0x1cde8c(0x209)]),Object['entries'](_0xd12986)['forEach'](function(_0x1c3bec){var _0x3390f3=_0x1cde8c,_0x2010a4=_0x1c3bec[0x0],_0x423870=_0x1c3bec[0x1];_0x2010a4==='mask'&&typeof _0x423870==_0x3390f3(0x221)&&(_0xd12986[_0x2010a4]=_0x423870['replace'](/url\(#(.*)\)/,_0x3390f3(0x252)['concat'](_0x5c0528[_0x3390f3(0x209)],')')));});var _0x67cf24=_0x5c0528['defIds'];return!_0x67cf24||_0x67cf24[_0x1cde8c(0x233)]===0x0||(_0x3ee4a2[_0x1cde8c(0x1ea)]===_0x1cde8c(0x1a8)&&_0xd12986[_0x1cde8c(0x23d)]&&(_0xd12986[_0x1cde8c(0x23d)]=_0xd12986[_0x1cde8c(0x23d)]+_0x5c0528[_0x1cde8c(0x209)]),Object[_0x1cde8c(0x223)](_0xd12986)[_0x1cde8c(0x1ba)](function(_0x29411d){var _0x555f1a=_0x1cde8c,_0x102482=_0x29411d[0x0],_0x23002e=_0x29411d[0x1];typeof _0x23002e==_0x555f1a(0x221)&&(_0xd12986[_0x102482]=_0x23002e['replace'](/url\(#(.*)\)/,_0x555f1a(0x252)['concat'](_0x5c0528['idSuffix'],')')));})),_0xd12986;}function _0x2434f7(_0x48a5f9,_0x32fc22){var _0x3b5413=_0x49032e,_0x3f3cf1,_0xb4fc0e=_0x32fc22['defIds'];return!_0xb4fc0e||_0xb4fc0e['length']===0x0?_0x48a5f9:_0x48a5f9[_0x3b5413(0x1ea)]==='defs'&&(!((_0x3f3cf1=_0x48a5f9[_0x3b5413(0x243)])===null||_0x3f3cf1===void 0x0)&&_0x3f3cf1[_0x3b5413(0x233)])?_0x3ee45b(_0x3ee45b({},_0x48a5f9),{'children':_0x48a5f9['children'][_0x3b5413(0x22e)](function(_0x5ee3d2){var _0xcd9e21=_0x3b5413;return typeof _0x5ee3d2[_0xcd9e21(0x236)]['id']==_0xcd9e21(0x221)&&_0xb4fc0e&&_0xb4fc0e[_0xcd9e21(0x244)](_0x5ee3d2[_0xcd9e21(0x236)]['id'])?_0x3ee45b(_0x3ee45b({},_0x5ee3d2),{'attrs':_0x3ee45b(_0x3ee45b({},_0x5ee3d2[_0xcd9e21(0x236)]),{'id':_0x5ee3d2[_0xcd9e21(0x236)]['id']+_0x32fc22[_0xcd9e21(0x209)]})}):_0x5ee3d2;})}):_0x48a5f9;}function _0x3b5afa(){var _0x24c778=_0x49032e;return Math[_0x24c778(0x281)]()[_0x24c778(0x227)](0x24)[_0x24c778(0x19c)](0x2,0x8);}_0x28be85[_0x49032e(0x18d)]=_0x49032e(0x1fb);var _0x10b543={'tag':_0x49032e(0x22c),'attrs':{'xmlns':_0x49032e(0x242),'fill':'none','viewBox':_0x49032e(0x225),'width':'1em','height':'1em'},'children':[{'tag':_0x49032e(0x20f),'attrs':{'fill':_0x49032e(0x239),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x49032e(0x20f),'attrs':{'fill':_0x49032e(0x239),'d':_0x49032e(0x220),'fillRule':_0x49032e(0x253),'clipRule':_0x49032e(0x253)}}]},_0x27f223=_0x5d339f[_0x49032e(0x190)](function(_0x18f19d,_0x287a2a){var _0x3d815d=_0x49032e;return _0x5d339f['createElement'](_0x28be85,Object[_0x3d815d(0x259)]({},_0x18f19d,{'id':_0x3d815d(0x21d),'ref':_0x287a2a,'icon':_0x10b543}));});_0x27f223['displayName']=_0x49032e(0x19e);var _0x28b0db=Object[_0x49032e(0x21f)],_0x2e3bb6=(_0x10136e,_0x4bc6a4,_0x1a46a0,_0x57e0d0)=>{var _0xdae9c8=_0x49032e;for(var _0xafc90a=_0x57e0d0>0x1?void 0x0:_0x57e0d0?_0x28b0db(_0x4bc6a4,_0x1a46a0):_0x4bc6a4,_0x92390a=_0x10136e[_0xdae9c8(0x233)]-0x1,_0x5d2e5b;_0x92390a>=0x0;_0x92390a--)(_0x5d2e5b=_0x10136e[_0x92390a])&&(_0xafc90a=_0x5d2e5b(_0xafc90a)||_0xafc90a);return _0xafc90a;},_0x3cee5f=(_0x59de9f,_0x342fe9)=>(_0x58c65d,_0x274dc6)=>_0x342fe9(_0x58c65d,_0x274dc6,_0x59de9f);_0x5e8362[_0x49032e(0x1db)]=class extends _0x3f645b['RxDisposable']{constructor(_0x16cb05,_0x11038a,_0x22228b){var _0x3850f3=_0x49032e;super(),_0x5b9963(this,'_entities',new Map()),(this[_0x3850f3(0x269)]=_0x16cb05,this[_0x3850f3(0x26b)]=_0x11038a,this[_0x3850f3(0x274)]=_0x22228b,this[_0x3850f3(0x201)]());}async[_0x49032e(0x276)](_0x561c66){var _0x538ffd=_0x49032e;return this[_0x538ffd(0x200)][_0x538ffd(0x241)](_0x561c66)||await this[_0x538ffd(0x1f4)](_0x561c66),this[_0x538ffd(0x200)][_0x538ffd(0x1e4)](_0x561c66);}[_0x49032e(0x201)](){var _0x2c67da=_0x49032e;this[_0x2c67da(0x269)][_0x2c67da(0x207)](_0x3f645b[_0x2c67da(0x1fa)]['UNIVER_SHEET'])[_0x2c67da(0x195)](_0xd286ea[_0x2c67da(0x1dc)](this[_0x2c67da(0x1d5)]))[_0x2c67da(0x1a4)](async _0x3a939d=>{var _0x2b1a45=_0x2c67da;const _0x1400f5=_0x3a939d[_0x2b1a45(0x24c)]();this[_0x2b1a45(0x200)][_0x2b1a45(0x241)](_0x1400f5)||this[_0x2b1a45(0x1f4)](_0x1400f5);}),this[_0x2c67da(0x269)]['getTypeOfUnitDisposed$'](_0x3f645b[_0x2c67da(0x1fa)][_0x2c67da(0x1cf)])[_0x2c67da(0x195)](_0xd286ea[_0x2c67da(0x1dc)](this['dispose$']))[_0x2c67da(0x1a4)](_0x581b62=>{var _0x494ea2=_0x2c67da;const _0x555708=_0x581b62['getUnitId'](),_0x2d1004=this[_0x494ea2(0x200)]['get'](_0x555708);_0x2d1004==null||_0x2d1004['dispose']();});}async[_0x49032e(0x1f4)](_0x87b5d1){var _0x25e6f9=_0x49032e;const _0x40d1cd=await this[_0x25e6f9(0x274)][_0x25e6f9(0x1df)](_0x87b5d1),_0xc17d39=this[_0x25e6f9(0x26b)][_0x25e6f9(0x1b3)](_0x5e8362['LiveShareCoordinator'],_0x87b5d1,_0x40d1cd);return _0xc17d39[_0x25e6f9(0x279)](),this[_0x25e6f9(0x200)][_0x25e6f9(0x1da)](_0x87b5d1,_0xc17d39),_0xc17d39;}},_0x5e8362[_0x49032e(0x1db)]=_0x2e3bb6([_0x3cee5f(0x0,_0x3f645b[_0x49032e(0x26f)]),_0x3cee5f(0x1,_0x3f645b[_0x49032e(0x26e)](_0x3f645b[_0x49032e(0x1ee)])),_0x3cee5f(0x2,_0x3f645b[_0x49032e(0x26e)](_0x327643[_0x49032e(0x1a0)]))],_0x5e8362[_0x49032e(0x1db)]);var _0x4a9607=(_0x544e31=>(_0x544e31[_0x49032e(0x196)]=_0x49032e(0x1ab),_0x544e31[_0x49032e(0x1f3)]=_0x49032e(0x265),_0x544e31[_0x49032e(0x264)]='following',_0x544e31[_0x49032e(0x1ae)]=_0x49032e(0x1eb),_0x544e31[_0x49032e(0x1cb)]=_0x49032e(0x205),_0x544e31))(_0x4a9607||{});const _0x1b388d=_0x49032e(0x1a7),_0x3e2bf5=0xc8;_0x5e8362[_0x49032e(0x193)]=class extends _0x3f645b['RxDisposable']{constructor(_0x353256,_0x25c0c4,_0x2c6b39,_0xc0e452,_0x50d7aa){var _0x4a073f=_0x49032e;super(),_0x5b9963(this,_0x4a073f(0x249),new _0x2b6269[(_0x4a073f(0x255))](_0x4a073f(0x265))),_0x5b9963(this,_0x4a073f(0x234),this[_0x4a073f(0x249)][_0x4a073f(0x1b0)]()),_0x5b9963(this,_0x4a073f(0x201),!0x1),_0x5b9963(this,_0x4a073f(0x213),null),_0x5b9963(this,'_presenter',null),(this['_unitID']=_0x353256,this[_0x4a073f(0x25b)]=_0x25c0c4,this[_0x4a073f(0x212)]=_0x2c6b39,this[_0x4a073f(0x1b6)]=_0xc0e452,this['_commandService']=_0x50d7aa);}get[_0x49032e(0x22d)](){var _0xfafc9f=_0x49032e;return this[_0xfafc9f(0x249)]['getValue']();}['dispose'](){var _0x51e189=_0x49032e,_0x54b891;(_0x54b891=this[_0x51e189(0x213)])==null||_0x54b891[_0x51e189(0x211)](),this['_status$']['next'](_0x51e189(0x265)),this[_0x51e189(0x249)][_0x51e189(0x1e8)]();}[_0x49032e(0x279)](){var _0x412ad5=_0x49032e;this['_init']||(this['_init']=!0x0,this[_0x412ad5(0x25b)][_0x412ad5(0x25c)][_0x412ad5(0x195)](_0xd286ea[_0x412ad5(0x1dc)](this['dispose$']))[_0x412ad5(0x1a4)](_0x44b0d0=>{var _0xce5fec=_0x412ad5;switch(_0x44b0d0){case _0x327643[_0xce5fec(0x22a)][_0xce5fec(0x196)]:this['_handleOffline']();break;case _0x327643[_0xce5fec(0x22a)][_0xce5fec(0x27f)]:this[_0xce5fec(0x260)]();break;}}),this[_0x412ad5(0x25b)][_0x412ad5(0x23e)]['pipe'](_0xd286ea[_0x412ad5(0x1dc)](this[_0x412ad5(0x1d5)]))[_0x412ad5(0x1a4)](_0x5f72d6=>{var _0x3fad6a=_0x412ad5;const {eventID:_0x1613db}=_0x5f72d6;switch(_0x1613db){case _0x287f4a[_0x3fad6a(0x1c4)][_0x3fad6a(0x247)]:this[_0x3fad6a(0x27d)](_0x5f72d6);break;case _0x287f4a[_0x3fad6a(0x1c4)][_0x3fad6a(0x1cc)]:this[_0x3fad6a(0x1bf)](_0x5f72d6);break;case _0x287f4a[_0x3fad6a(0x1c4)]['LIVESHARE_TERMINATE']:this['_handleTerminate']();break;case _0x287f4a['CollaborationEvent'][_0x3fad6a(0x1dd)]:this[_0x3fad6a(0x1d1)](_0x5f72d6);break;}}));}[_0x49032e(0x235)](){var _0x32a265=_0x49032e;this[_0x32a265(0x25b)][_0x32a265(0x1a1)]({'eventID':_0x287f4a['CollaborationEvent'][_0x32a265(0x1f0)],'data':{'unitID':this[_0x32a265(0x1b2)],'userID':this[_0x32a265(0x25b)][_0x32a265(0x1bc)]()}},this[_0x32a265(0x1b2)]);}[_0x49032e(0x238)](){var _0x55f9b0=_0x49032e;this[_0x55f9b0(0x22d)]===_0x55f9b0(0x205)&&(this[_0x55f9b0(0x249)]['next'](_0x55f9b0(0x265)),this[_0x55f9b0(0x25b)][_0x55f9b0(0x1a1)]({'eventID':_0x287f4a[_0x55f9b0(0x1c4)][_0x55f9b0(0x27e)],'data':{'unitID':this[_0x55f9b0(0x1b2)]}},this['_unitID']));}[_0x49032e(0x280)](){var _0x251767=_0x49032e;this['_status']===_0x251767(0x1eb)&&(this[_0x251767(0x249)][_0x251767(0x1f9)](_0x251767(0x1ec)),this[_0x251767(0x191)]());}[_0x49032e(0x19a)](){var _0x42d653=_0x49032e;this[_0x42d653(0x22d)]===_0x42d653(0x1ec)&&this[_0x42d653(0x254)]();}[_0x49032e(0x27d)](_0x35e9c4){var _0x3956e2=_0x49032e;const {presenter:_0x2014be}=_0x35e9c4[_0x3956e2(0x261)],_0x59be3f=this[_0x3956e2(0x25b)]['getMemberID']();this[_0x3956e2(0x1fe)]=_0x2014be,_0x2014be===_0x59be3f?(this[_0x3956e2(0x254)](),this[_0x3956e2(0x1d9)]()):this[_0x3956e2(0x22d)]!==_0x3956e2(0x1eb)&&(this[_0x3956e2(0x1e9)](),this[_0x3956e2(0x191)]());}['_fetchOperations'](){var _0x27a5d9=_0x49032e;const _0x2df41e={'eventID':_0x287f4a[_0x27a5d9(0x1c4)][_0x27a5d9(0x199)]};this['_collabSession'][_0x27a5d9(0x1a1)](_0x2df41e,this[_0x27a5d9(0x1b2)]);}[_0x49032e(0x267)](){var _0x2d059c=_0x49032e;this['_presenter']=null,this[_0x2d059c(0x22d)]!==_0x2d059c(0x205)&&this[_0x2d059c(0x262)]();}['_handleNewChangeSets'](_0x2ec0c8){var _0x19881b=_0x49032e;if(this[_0x19881b(0x22d)]===_0x19881b(0x1ec)&&this[_0x19881b(0x1fe)]===_0x2ec0c8['data']['memberID']){const _0x51b8aa=_0x287f4a['parseProtocolChangeset'](_0x2ec0c8[_0x19881b(0x261)])['mutations'][_0x19881b(0x1d8)]()[_0x19881b(0x22f)](_0x95f851=>_0x95f851['id']===_0x54ea5f[_0x19881b(0x1a5)]['id']);if(_0x51b8aa){const _0x20118c=_0x51b8aa[_0x19881b(0x1d4)]['unitId'],_0x5ef344=_0x51b8aa[_0x19881b(0x1d4)][_0x19881b(0x1ff)]['id'];setTimeout(()=>{var _0x137543=_0x19881b;this[_0x137543(0x222)][_0x137543(0x1b4)](_0x54ea5f[_0x137543(0x218)]['id'],{'unitId':_0x20118c,'subUnitId':_0x5ef344},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0xf34fa=_0x49032e;this[_0xf34fa(0x249)]['next']('presenting');const _0x286c06=new Map(),_0x35bb36=this['_commandDisposable']=new _0x3f645b[(_0xf34fa(0x215))]();_0x35bb36['add'](_0x3f645b[_0xf34fa(0x21b)](()=>{var _0x2b31dc=_0xf34fa;_0x286c06[_0x2b31dc(0x1ba)](_0x498030=>_0x498030[_0x2b31dc(0x1e8)]()),_0x286c06[_0x2b31dc(0x263)]();})),_0x35bb36[_0xf34fa(0x22b)](this[_0xf34fa(0x222)]['onCommandExecuted'](_0x58e0cd=>{var _0x3dffb9=_0xf34fa,_0x2d3559;if(_0x58e0cd['type']!==_0x3f645b[_0x3dffb9(0x270)][_0x3dffb9(0x18e)]||!this[_0x3dffb9(0x1b6)]['shouldShareOperation'](_0x58e0cd['id']))return;const {id:_0x3825b1}=_0x58e0cd;let _0x5b0abb;_0x286c06[_0x3dffb9(0x241)](_0x3825b1)?_0x5b0abb=_0x286c06['get'](_0x3825b1):(_0x5b0abb=new _0x2b6269[(_0x3dffb9(0x1ac))](),_0x286c06['set'](_0x3825b1,_0x5b0abb),_0x5b0abb[_0x3dffb9(0x195)](_0xd286ea[_0x3dffb9(0x27a)]((_0x2d3559=this[_0x3dffb9(0x212)][_0x3dffb9(0x271)](_0x1b388d))!=null?_0x2d3559:_0x3e2bf5,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x23aec0=>{var _0x10a223=_0x3dffb9;this[_0x10a223(0x25b)][_0x10a223(0x1a1)]({'eventID':_0x287f4a[_0x10a223(0x1c4)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x10a223(0x1b2)],'operations':{[_0x23aec0['id']]:{'id':_0x23aec0['id'],'params':JSON[_0x10a223(0x251)](_0x23aec0[_0x10a223(0x1d4)])}}}},this[_0x10a223(0x1b2)]);})),_0x5b0abb[_0x3dffb9(0x1f9)](_0x58e0cd);})),this[_0xf34fa(0x1b6)][_0xf34fa(0x250)](this['_unitID'])['forEach'](_0x3d3829=>this[_0xf34fa(0x25b)]['send']({'eventID':_0x287f4a[_0xf34fa(0x1c4)][_0xf34fa(0x1cc)],'data':{'unitID':this[_0xf34fa(0x1b2)],'operations':{[_0x3d3829['id']]:{'id':_0x3d3829['id'],'params':JSON['stringify'](_0x3d3829[_0xf34fa(0x1d4)])}}}},this['_unitID']));}[_0x49032e(0x1e9)](){var _0x28ae8d=_0x49032e,_0x33d2fa;this[_0x28ae8d(0x249)]['next'](_0x28ae8d(0x265)),(_0x33d2fa=this[_0x28ae8d(0x213)])==null||_0x33d2fa[_0x28ae8d(0x211)](),this[_0x28ae8d(0x213)]=null;}['_startFollowing'](){var _0x14b3df=_0x49032e,_0x5d3975;(_0x5d3975=this['_commandDisposable'])==null||_0x5d3975['dispose'](),this[_0x14b3df(0x249)][_0x14b3df(0x1f9)](_0x14b3df(0x1ec));}[_0x49032e(0x262)](){var _0x4263c6=_0x49032e,_0x295382;this[_0x4263c6(0x249)][_0x4263c6(0x1f9)](_0x4263c6(0x265)),(_0x295382=this[_0x4263c6(0x213)])==null||_0x295382[_0x4263c6(0x211)](),this['_commandDisposable']=null;}[_0x49032e(0x254)](){var _0x181524=_0x49032e,_0x4d2562;this[_0x181524(0x249)][_0x181524(0x1f9)](_0x181524(0x1eb)),(_0x4d2562=this[_0x181524(0x213)])==null||_0x4d2562[_0x181524(0x211)]();}['_handleOperation'](_0x4958a5){var _0x5d0826=_0x49032e;if(['presenting',_0x5d0826(0x1eb),'offline'][_0x5d0826(0x244)](this[_0x5d0826(0x22d)])||!_0x4958a5[_0x5d0826(0x261)][_0x5d0826(0x26d)]||_0x4958a5['data'][_0x5d0826(0x26d)]===this['_collabSession']['getMemberID']())return;this[_0x5d0826(0x22d)]===_0x5d0826(0x265)&&this[_0x5d0826(0x191)]();const _0x29a5c5=_0x4958a5[_0x5d0826(0x261)][_0x5d0826(0x1a6)];Object[_0x5d0826(0x1bb)](_0x29a5c5)[_0x5d0826(0x1ba)](_0x1f6e83=>{var _0x206932=_0x5d0826;this[_0x206932(0x222)][_0x206932(0x1b4)](_0x1f6e83['id'],_0x1f6e83[_0x206932(0x1d4)]?JSON[_0x206932(0x1fd)](_0x1f6e83['params']):null,{'fromCollab':!0x0});});}[_0x49032e(0x203)](){var _0x3c63f7=_0x49032e,_0x32555c;this[_0x3c63f7(0x249)]['next'](_0x3c63f7(0x1ab)),(_0x32555c=this[_0x3c63f7(0x213)])==null||_0x32555c[_0x3c63f7(0x211)]();}['_handleOnline'](){var _0x468fa2=_0x49032e;this[_0x468fa2(0x249)][_0x468fa2(0x1f9)](_0x468fa2(0x265)),this['_fetchOperations']();}},_0x5e8362['LiveShareCoordinator']=_0x2e3bb6([_0x3cee5f(0x2,_0x3f645b[_0x49032e(0x1de)]),_0x3cee5f(0x3,_0x3f645b[_0x49032e(0x26e)](_0x2b8e21)),_0x3cee5f(0x4,_0x3f645b[_0x49032e(0x210)])],_0x5e8362[_0x49032e(0x193)]);function _0x16ab26(){var _0x33d2b3=_0x49032e;const _0x4f1e1c=_0x448afd['useDependency'](_0x5e8362[_0x33d2b3(0x1db)]),_0x422566=_0x448afd['useDependency'](_0x3f645b[_0x33d2b3(0x26f)]),_0x4dc626=_0x448afd[_0x33d2b3(0x18f)](()=>_0x422566['getCurrentTypeOfUnit$'](_0x3f645b[_0x33d2b3(0x1fa)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x1c3447,_0x225766]=_0x5d339f[_0x33d2b3(0x230)](null),[_0x26fa8f,_0x543584]=_0x5d339f['useState'](_0x4a9607['IDLE']),_0x3ae139=_0x5d339f[_0x33d2b3(0x1e6)](null);return _0x5d339f[_0x33d2b3(0x266)](()=>(_0x4dc626&&_0x4f1e1c[_0x33d2b3(0x276)](_0x4dc626[_0x33d2b3(0x24c)]())[_0x33d2b3(0x1e2)](_0x5f2c30=>{var _0x367657=_0x33d2b3;_0x225766(_0x5f2c30),_0x3ae139[_0x367657(0x26a)]=_0x5f2c30['status$'][_0x367657(0x1a4)](_0x11a2e7=>{_0x543584(_0x11a2e7);});}),()=>{var _0x20b3d=_0x33d2b3,_0x4fcae2;(_0x4fcae2=_0x3ae139['current'])==null||_0x4fcae2['unsubscribe'](),_0x3ae139[_0x20b3d(0x26a)]=null;}),[_0x4dc626,_0x4f1e1c]),_0x1c3447?_0x580bc1[_0x33d2b3(0x248)](_0x56011e[_0x33d2b3(0x229)],{'align':'end','disabled':_0x26fa8f===_0x4a9607[_0x33d2b3(0x196)],'className':_0x33d2b3(0x24b),'overlay':_0x580bc1[_0x33d2b3(0x248)](_0xec54c,{'status':_0x26fa8f,'coordinator':_0x1c3447}),'children':_0x580bc1[_0x33d2b3(0x248)](_0x33d2b3(0x1e5),{'className':_0x56011e[_0x33d2b3(0x25f)]('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x26fa8f===_0x4a9607[_0x33d2b3(0x196)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x26fa8f!==_0x4a9607[_0x33d2b3(0x196)]}),'type':_0x33d2b3(0x1e5),'children':_0x580bc1[_0x33d2b3(0x248)](_0x27f223,{'className':'univer-size-4'})})}):null;}function _0xec54c(_0x2284f6){var _0x41aba2=_0x49032e;const {status:_0x3f3f15,coordinator:_0x52c365}=_0x2284f6;switch(_0x3f3f15){case _0x4a9607['IDLE']:return _0x580bc1[_0x41aba2(0x248)](_0x5c4a05,{'coordinator':_0x52c365});case _0x4a9607[_0x41aba2(0x264)]:return _0x580bc1[_0x41aba2(0x248)](_0x416d62,{'coordinator':_0x52c365});case _0x4a9607[_0x41aba2(0x1ae)]:return _0x580bc1[_0x41aba2(0x248)](_0x54a145,{'coordinator':_0x52c365});case _0x4a9607[_0x41aba2(0x196)]:return _0x580bc1['jsx'](_0x435b56,{});case _0x4a9607[_0x41aba2(0x1cb)]:return _0x580bc1[_0x41aba2(0x248)](_0x4b5ea0,{'coordinator':_0x52c365});default:return null;}}function _0x5c4a05(_0x2343e5){var _0x58c8ed=_0x49032e;const {coordinator:_0x33fe3a}=_0x2343e5;return _0x580bc1[_0x58c8ed(0x1c3)](_0x580bc1['Fragment'],{'children':[_0x580bc1[_0x58c8ed(0x248)](_0x58c8ed(0x1c2),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x580bc1[_0x58c8ed(0x248)](_0x56011e[_0x58c8ed(0x27b)],{'onClick':()=>_0x33fe3a[_0x58c8ed(0x235)](),'children':_0x58c8ed(0x217)})]});}function _0x416d62(_0x4e98c7){var _0x10163e=_0x49032e;const {coordinator:_0x65e983}=_0x4e98c7;return _0x580bc1['jsxs'](_0x580bc1[_0x10163e(0x206)],{'children':[_0x580bc1[_0x10163e(0x248)](_0x10163e(0x1c2),{'className':_0x10163e(0x1d7),'children':_0x10163e(0x1c0)}),_0x580bc1[_0x10163e(0x248)](_0x56011e[_0x10163e(0x27b)],{'onClick':()=>_0x65e983[_0x10163e(0x19a)](),'children':_0x10163e(0x1ef)})]});}function _0x54a145(_0x42f3c0){var _0x4cc3db=_0x49032e;const {coordinator:_0x515939}=_0x42f3c0;return _0x580bc1[_0x4cc3db(0x1c3)](_0x580bc1[_0x4cc3db(0x206)],{'children':[_0x580bc1[_0x4cc3db(0x248)]('div',{'className':_0x4cc3db(0x1d7),'children':_0x4cc3db(0x24f)}),_0x580bc1[_0x4cc3db(0x248)](_0x56011e[_0x4cc3db(0x27b)],{'variant':_0x4cc3db(0x20c),'onClick':()=>_0x515939['startFollowing'](),'children':_0x4cc3db(0x21c)})]});}function _0x4b5ea0(_0x1889ba){var _0x2417ff=_0x49032e;const {coordinator:_0x54d2ab}=_0x1889ba;return _0x580bc1[_0x2417ff(0x1c3)](_0x580bc1[_0x2417ff(0x206)],{'children':[_0x580bc1[_0x2417ff(0x248)](_0x2417ff(0x1c2),{'className':_0x2417ff(0x1d7),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x580bc1[_0x2417ff(0x248)](_0x56011e[_0x2417ff(0x27b)],{'variant':_0x2417ff(0x1be),'onClick':()=>_0x54d2ab['stopPresenting'](),'children':_0x2417ff(0x1bd)})]});}function _0x435b56(){var _0x33314a=_0x49032e;return _0x580bc1[_0x33314a(0x248)](_0x580bc1[_0x33314a(0x206)],{'children':_0x33314a(0x1a3)});}var _0xe76b4d=Object[_0x49032e(0x21f)],_0x21cb6e=(_0x44c80d,_0x3e362c,_0x11c0d5,_0x42db24)=>{var _0x2503ea=_0x49032e;for(var _0x1611b1=_0x42db24>0x1?void 0x0:_0x42db24?_0xe76b4d(_0x3e362c,_0x11c0d5):_0x3e362c,_0xaeadcb=_0x44c80d[_0x2503ea(0x233)]-0x1,_0x4d71d6;_0xaeadcb>=0x0;_0xaeadcb--)(_0x4d71d6=_0x44c80d[_0xaeadcb])&&(_0x1611b1=_0x4d71d6(_0x1611b1)||_0x1611b1);return _0x1611b1;},_0x5ee2ea=(_0x5b1098,_0x22ef05)=>(_0x348ae4,_0x2d4b3e)=>_0x22ef05(_0x348ae4,_0x2d4b3e,_0x5b1098);_0x5e8362[_0x49032e(0x198)]=class extends _0x3f645b['Disposable']{constructor(_0x5674ed,_0x21f2a4){var _0x3885c9=_0x49032e;super(),this['_injector']=_0x5674ed,this[_0x3885c9(0x226)]=_0x21f2a4,this[_0x3885c9(0x192)]();}[_0x49032e(0x192)](){var _0x86880b=_0x49032e;this[_0x86880b(0x232)](this[_0x86880b(0x226)][_0x86880b(0x282)](_0x448afd[_0x86880b(0x24e)]['HEADER_MENU'],()=>_0x448afd[_0x86880b(0x26c)](_0x16ab26,this[_0x86880b(0x26b)])));}},_0x5e8362[_0x49032e(0x198)]=_0x21cb6e([_0x5ee2ea(0x0,_0x3f645b[_0x49032e(0x26e)](_0x3f645b[_0x49032e(0x1ee)])),_0x5ee2ea(0x1,_0x448afd['IUIPartsService'])],_0x5e8362[_0x49032e(0x198)]);var _0x2188e9=Object['defineProperty'],_0x59fb9f=Object[_0x49032e(0x21f)],_0x158457=(_0x27e7f7,_0x19d014,_0x4355fb)=>_0x19d014 in _0x27e7f7?_0x2188e9(_0x27e7f7,_0x19d014,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4355fb}):_0x27e7f7[_0x19d014]=_0x4355fb,_0x42fcb3=(_0x4e3863,_0x1f2da9,_0x309460,_0x2332b9)=>{var _0x34eb4f=_0x49032e;for(var _0x41812d=_0x2332b9>0x1?void 0x0:_0x2332b9?_0x59fb9f(_0x1f2da9,_0x309460):_0x1f2da9,_0x53c444=_0x4e3863[_0x34eb4f(0x233)]-0x1,_0x3c56a4;_0x53c444>=0x0;_0x53c444--)(_0x3c56a4=_0x4e3863[_0x53c444])&&(_0x41812d=_0x3c56a4(_0x41812d)||_0x41812d);return _0x41812d;},_0x271ff3=(_0x2cf002,_0x1ac541)=>(_0x4265ee,_0x1d1950)=>_0x1ac541(_0x4265ee,_0x1d1950,_0x2cf002),_0x25d61a=(_0x5813c3,_0x7c9322,_0x5bb059)=>_0x158457(_0x5813c3,typeof _0x7c9322!=_0x49032e(0x202)?_0x7c9322+'':_0x7c9322,_0x5bb059);const _0x10bc58=_0x49032e(0x1c1);_0x5e8362[_0x49032e(0x1e3)]=class extends _0x3f645b[_0x49032e(0x1b8)]{constructor(_0x263441=_0x155af1,_0x2547e9,_0x58ba06){var _0x197d84=_0x49032e;super(),this[_0x197d84(0x23b)]=_0x263441,this[_0x197d84(0x26b)]=_0x2547e9,this[_0x197d84(0x212)]=_0x58ba06;const {..._0x27ca2c}=_0x3f645b[_0x197d84(0x1f7)]({},_0x155af1,this['_config']);this[_0x197d84(0x212)][_0x197d84(0x1f2)](_0xe75297,_0x27ca2c);}[_0x49032e(0x1cd)](){var _0x28dd6a=_0x49032e;_0x3f645b['registerDependencies'](this[_0x28dd6a(0x26b)],_0x3f645b[_0x28dd6a(0x277)]([[_0x2b8e21],[_0x5e8362[_0x28dd6a(0x1db)]],[_0x362e9a],[_0x5e8362[_0x28dd6a(0x198)]]],this[_0x28dd6a(0x23b)]['override'])),_0x3f645b[_0x28dd6a(0x1f8)](this[_0x28dd6a(0x26b)],[[_0x362e9a]]);}[_0x49032e(0x245)](){var _0x4c23f1=_0x49032e;_0x3f645b[_0x4c23f1(0x1f8)](this['_injector'],[[_0x5e8362[_0x4c23f1(0x198)]]]);}},_0x25d61a(_0x5e8362['UniverLiveSharePlugin'],'type',_0x3f645b[_0x49032e(0x1fa)][_0x49032e(0x1e1)]),_0x25d61a(_0x5e8362['UniverLiveSharePlugin'],'pluginName',_0x10bc58),_0x5e8362[_0x49032e(0x1e3)]=_0x42fcb3([_0x3f645b['DependentOn'](_0x327643['UniverCollaborationClientPlugin']),_0x271ff3(0x1,_0x3f645b[_0x49032e(0x26e)](_0x3f645b[_0x49032e(0x1ee)])),_0x271ff3(0x2,_0x3f645b[_0x49032e(0x1de)])],_0x5e8362[_0x49032e(0x1e3)]),_0x5e8362[_0x49032e(0x1ad)]=_0x16ab26,_0x5e8362[_0x49032e(0x237)]=_0x2b8e21,_0x5e8362[_0x49032e(0x240)]=_0x4a9607,Object[_0x49032e(0x1b1)](_0x5e8362,Symbol[_0x49032e(0x1b9)],{'value':_0x49032e(0x1aa)});}));function _0x33f1(){var _0x50c0d6=['Inject','IUniverInstanceService','CommandType','getConfig','concat','extend','_collabSessionService','@univerjs/core','getLiveShareCoordinator','mergeOverrideWithDependencies','defIds','init','throttleTime','Button','call','_handleNewHost','LIVESHARE_TERMINATE','ONLINE','startFollowing','random','registerComponent','displayName','OPERATION','useObservable','forwardRef','_startFollowing','_mountLiveShare','LiveShareCoordinator','trim','pipe','OFFLINE','rxjs','DesktopLiveShareController','LIVESHARE_FETCH_OPERATIONS','stopFollowing','className','substring','4039836HhwXhF','LiveShareIcon','colorChannel1','CollaborationSessionService','send','UniverDesign','You\x27are\x20offline.','subscribe','InsertSheetMutation','operations','SAME_OPERATION_SHARE_INTERVAL','use','UniverSheetsUi','Module','offline','Subject','LiveShare','NOT_FOLLOWING','SetScrollOperation','asObservable','defineProperty','_unitID','createInstance','executeCommand','prototype','_liveShareService','@univerjs/sheets','Plugin','toStringTag','forEach','values','getMemberID','Stop\x20presenting','default','_handleOperation','You\x27re\x20following\x20the\x20presenter','UNIVER_LIVE_SHARE_PLUGIN','div','jsxs','CollaborationEvent','univerjs-icon\x20univerjs-icon-','Disposable','UniverProLiveShare','getOwnPropertySymbols','apply','UniverProCollaboration','PRESENTING','LIVESHARE_OPERATION','onStarting','155844RzwuAQ','UNIVER_SHEET','React','_handleNewChangeSets','@univerjs/ui','react/jsx-runtime','params','dispose$','136ycDVCc','univer-mb-3\x20univer-w-full\x20univer-text-sm','reverse','_startPresenting','set','LiveShareController','takeUntil','NEW_CHANGESETS','IConfigService','requireSession','UniverUi','UNIVER_UNKNOWN','then','UniverLiveSharePlugin','get','button','useRef','_reporters','complete','_stopPresenting','tag','not-following','following','registerSharedOperation','Injector','Stop\x20following','LIVESHARE_REQUEST_HOST','2tnOQqO','setConfig','IDLE','_startLiveShareCoordinator','live-share.config','propertyIsEnumerable','merge','touchDependencies','next','UniverInstanceType','UniverIcon','fill','parse','_presenter','sheet','_entities','_init','symbol','_handleOffline','delete','presenting','Fragment','getTypeOfUnitAdded$','@univerjs-pro/collaboration-client','idSuffix','object','indexOf','text','543930ODZaTl','1159892hLbrXL','path','ICommandService','dispose','_configService','_commandDisposable','_sharedOperations','DisposableCollection','UniverCore','Start','SetWorksheetActiveOperation','11OGiuto','263333FeLXCW','toDisposable','Start\x20following','live-share-icon','react','getOwnPropertyDescriptor','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','string','_commandService','entries','registerInitialStateReporter','0\x200\x2017\x2017','_uiPartsService','toString','1282329ShdBfe','Dropdown','SessionStatus','add','svg','_status','map','find','useState','@univerjs-pro/collaboration','disposeWithMe','length','status$','tryStartPresenting','attrs','LiveShareService','stopPresenting','currentColor','exports','_config','@univerjs/design','xlink:href','event$','hasOwnProperty','LiveShareStatus','has','http://www.w3.org/2000/svg','children','includes','onRendered','SetZoomRatioOperation','LIVESHARE_NEW_HOST','jsx','_status$','from','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','getUnitId','45aQpLTE','BuiltInUIPart','You\x27re\x20not\x20following\x20the\x20presenter','getInitialStates','stringify','url(#$1','evenodd','_stopFollowing','BehaviorSubject','UniverProCollaborationClient','function','1192970XxasRx','assign','@univerjs/sheets-ui','_collabSession','sessionStatus$','shouldShareOperation','rxjs/operators','clsx','_handleOnline','data','_beIdle','clear','FOLLOWING','idle','useEffect','_handleTerminate','operators','_univerInstanceService','current','_injector','connectInjector','presenter'];_0x33f1=function(){return _0x50c0d6;};return _0x33f1();}
|
|
1
|
+
(function(_0x1c6b90,_0x37069b){var _0x193749=_0xaefe,_0x314254=_0x1c6b90();while(!![]){try{var _0x1e2c7e=-parseInt(_0x193749(0x20e))/0x1*(parseInt(_0x193749(0x254))/0x2)+parseInt(_0x193749(0x237))/0x3*(-parseInt(_0x193749(0x203))/0x4)+parseInt(_0x193749(0x2d8))/0x5*(parseInt(_0x193749(0x255))/0x6)+-parseInt(_0x193749(0x287))/0x7*(-parseInt(_0x193749(0x200))/0x8)+parseInt(_0x193749(0x24b))/0x9+parseInt(_0x193749(0x2d1))/0xa*(parseInt(_0x193749(0x2c5))/0xb)+-parseInt(_0x193749(0x1fd))/0xc;if(_0x1e2c7e===_0x37069b)break;else _0x314254['push'](_0x314254['shift']());}catch(_0x1ee736){_0x314254['push'](_0x314254['shift']());}}}(_0x43f4,0xa7687),function(_0x41ccbf,_0x311d5d){var _0x1a25ef=_0xaefe;typeof exports==_0x1a25ef(0x20f)&&typeof module<'u'?_0x311d5d(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==_0x1a25ef(0x23d)&&define[_0x1a25ef(0x22b)]?define([_0x1a25ef(0x242),_0x1a25ef(0x2b1),_0x1a25ef(0x27e),'@univerjs/sheets',_0x1a25ef(0x292),_0x1a25ef(0x2b2),_0x1a25ef(0x2c6),_0x1a25ef(0x24a),_0x1a25ef(0x26f),_0x1a25ef(0x2bc),_0x1a25ef(0x275),_0x1a25ef(0x2ce)],_0x311d5d):(_0x41ccbf=typeof globalThis<'u'?globalThis:_0x41ccbf||self,_0x311d5d(_0x41ccbf[_0x1a25ef(0x21a)]={},_0x41ccbf['UniverProCollaborationClient'],_0x41ccbf['UniverCore'],_0x41ccbf[_0x1a25ef(0x260)],_0x41ccbf[_0x1a25ef(0x207)],_0x41ccbf[_0x1a25ef(0x234)],_0x41ccbf[_0x1a25ef(0x2a7)],_0x41ccbf[_0x1a25ef(0x289)],_0x41ccbf[_0x1a25ef(0x2a7)],_0x41ccbf[_0x1a25ef(0x245)],_0x41ccbf[_0x1a25ef(0x275)],_0x41ccbf['rxjs']['operators']));}(this,function(_0x7a124f,_0x21e19d,_0x465feb,_0x1e29bd,_0x50c271,_0x50c920,_0x4903e6,_0x4708a7,_0x42c8b5,_0xc6f7a0,_0x4788f5,_0x4244fd){'use strict';var _0x4abdf5=_0xaefe;var _0xfdee5a=Object['defineProperty'],_0x159fd7=(_0x5e241c,_0x47d97e,_0x2a298c)=>_0x47d97e in _0x5e241c?_0xfdee5a(_0x5e241c,_0x47d97e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a298c}):_0x5e241c[_0x47d97e]=_0x2a298c,_0x3f606a=(_0xe14347,_0x108cbc,_0x359d1)=>_0x159fd7(_0xe14347,typeof _0x108cbc!=_0x4abdf5(0x24d)?_0x108cbc+'':_0x108cbc,_0x359d1);const _0x1f1091=_0x4abdf5(0x269),_0x30e85e={};class _0x3206c2 extends _0x465feb['Disposable']{constructor(){var _0x1261a2=_0x4abdf5;super(...arguments),_0x3f606a(this,_0x1261a2(0x29c),new Set()),_0x3f606a(this,'_reporters',new Set());}[_0x4abdf5(0x2b6)](_0x3dedf3){var _0x853727=_0x4abdf5;return this[_0x853727(0x29c)][_0x853727(0x21b)](_0x3dedf3),_0x465feb['toDisposable'](()=>this[_0x853727(0x29c)][_0x853727(0x276)](_0x3dedf3));}[_0x4abdf5(0x1ef)](_0x16a210){var _0x20de8c=_0x4abdf5;return this[_0x20de8c(0x1ea)][_0x20de8c(0x21b)](_0x16a210),_0x465feb[_0x20de8c(0x215)](()=>this[_0x20de8c(0x1ea)]['delete'](_0x16a210));}[_0x4abdf5(0x256)](_0x30b017){var _0x1beb21=_0x4abdf5;return this[_0x1beb21(0x29c)][_0x1beb21(0x24c)](_0x30b017);}[_0x4abdf5(0x2cc)](_0x21714b){var _0x46cff7=_0x4abdf5;return Array[_0x46cff7(0x27a)](this[_0x46cff7(0x1ea)])[_0x46cff7(0x25f)](_0x48669a=>_0x48669a(_0x21714b));}}var _0x273a78=Object[_0x4abdf5(0x29e)],_0x41fbbe=(_0x28516b,_0x495f77,_0x3f575e,_0x59b17e)=>{var _0x324118=_0x4abdf5;for(var _0x2cc089=_0x59b17e>0x1?void 0x0:_0x59b17e?_0x273a78(_0x495f77,_0x3f575e):_0x495f77,_0x49be0d=_0x28516b[_0x324118(0x262)]-0x1,_0x49162a;_0x49be0d>=0x0;_0x49be0d--)(_0x49162a=_0x28516b[_0x49be0d])&&(_0x2cc089=_0x49162a(_0x2cc089)||_0x2cc089);return _0x2cc089;},_0x4e7388=(_0x5b59c0,_0xc9a35d)=>(_0x3342a7,_0x4b6d49)=>_0xc9a35d(_0x3342a7,_0x4b6d49,_0x5b59c0);let _0x2ce02d=class extends _0x465feb['Disposable']{constructor(_0x2a9983){var _0x1815f4=_0x4abdf5;super(),this[_0x1815f4(0x288)]=_0x2a9983,this[_0x1815f4(0x272)]();}[_0x4abdf5(0x272)](){var _0x23a6ed=_0x4abdf5;[_0x50c271[_0x23a6ed(0x27b)]['id'],_0x50c271[_0x23a6ed(0x243)]['id'],_0x1e29bd[_0x23a6ed(0x2d9)]['id']]['forEach'](_0x2e20e5=>{var _0x21589b=_0x23a6ed;this[_0x21589b(0x26e)](this[_0x21589b(0x288)][_0x21589b(0x2b6)](_0x2e20e5));});}};_0x2ce02d=_0x41fbbe([_0x4e7388(0x0,_0x465feb[_0x4abdf5(0x290)](_0x3206c2))],_0x2ce02d);var _0x2495dd=function(){var _0x292972=_0x4abdf5;return _0x2495dd=Object[_0x292972(0x2b0)]||function(_0x77e14b){var _0x2d3bae=_0x292972;for(var _0x5c2962,_0x52cd1f=0x1,_0x5cc6da=arguments[_0x2d3bae(0x262)];_0x52cd1f<_0x5cc6da;_0x52cd1f++){_0x5c2962=arguments[_0x52cd1f];for(var _0x400923 in _0x5c2962)Object[_0x2d3bae(0x214)]['hasOwnProperty'][_0x2d3bae(0x2c0)](_0x5c2962,_0x400923)&&(_0x77e14b[_0x400923]=_0x5c2962[_0x400923]);}return _0x77e14b;},_0x2495dd[_0x292972(0x2c4)](this,arguments);},_0x1e9361=function(_0x3668a0,_0x3b54e2){var _0x22cf9b=_0x4abdf5,_0x250b12={};for(var _0x449d99 in _0x3668a0)Object[_0x22cf9b(0x214)][_0x22cf9b(0x2ad)][_0x22cf9b(0x2c0)](_0x3668a0,_0x449d99)&&_0x3b54e2['indexOf'](_0x449d99)<0x0&&(_0x250b12[_0x449d99]=_0x3668a0[_0x449d99]);if(_0x3668a0!=null&&typeof Object['getOwnPropertySymbols']==_0x22cf9b(0x23d)){for(var _0x4129df=0x0,_0x449d99=Object[_0x22cf9b(0x291)](_0x3668a0);_0x4129df<_0x449d99[_0x22cf9b(0x262)];_0x4129df++)_0x3b54e2['indexOf'](_0x449d99[_0x4129df])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x22cf9b(0x2c0)](_0x3668a0,_0x449d99[_0x4129df])&&(_0x250b12[_0x449d99[_0x4129df]]=_0x3668a0[_0x449d99[_0x4129df]]);}return _0x250b12;},_0x463541=_0x42c8b5[_0x4abdf5(0x208)](function(_0x13bc48,_0x2e5d86){var _0x99510=_0x4abdf5,_0x297802=_0x13bc48[_0x99510(0x28c)],_0x1ed724=_0x13bc48['id'],_0x5d629b=_0x13bc48[_0x99510(0x1e8)],_0x41bc62=_0x13bc48['extend'],_0x1cb597=_0x1e9361(_0x13bc48,['icon','id',_0x99510(0x1e8),_0x99510(0x1e5)]),_0x1be007=_0x99510(0x263)['concat'](_0x1ed724,'\x20')[_0x99510(0x26a)](_0x5d629b||'')['trim'](),_0x15cb60=_0x42c8b5[_0x99510(0x221)]('_'[_0x99510(0x26a)](_0x288e89()));return _0x412757(_0x297802,''[_0x99510(0x26a)](_0x1ed724),{'defIds':_0x297802[_0x99510(0x29b)],'idSuffix':_0x15cb60[_0x99510(0x2dd)]},_0x2495dd({'ref':_0x2e5d86,'className':_0x1be007},_0x1cb597),_0x41bc62);});function _0x412757(_0x413dec,_0x5f0036,_0x111013,_0x2af8d9,_0x4d5441){var _0x3f14d4=_0x4abdf5;return _0x42c8b5[_0x3f14d4(0x2c7)](_0x413dec[_0x3f14d4(0x216)],_0x2495dd(_0x2495dd({'key':_0x5f0036},_0x4ac4e6(_0x413dec,_0x111013,_0x4d5441)),_0x2af8d9),(_0x15b934(_0x413dec,_0x111013)[_0x3f14d4(0x2d7)]||[])[_0x3f14d4(0x25f)](function(_0x1d568a,_0x52cd1){var _0x476fd0=_0x3f14d4;return _0x412757(_0x1d568a,''[_0x476fd0(0x26a)](_0x5f0036,'-')['concat'](_0x413dec[_0x476fd0(0x216)],'-')[_0x476fd0(0x26a)](_0x52cd1),_0x111013,void 0x0,_0x4d5441);}));}function _0x4ac4e6(_0xc9e4ed,_0x55dc8b,_0x4f67bb){var _0x37e969=_0x4abdf5,_0xa9e2e1=_0x2495dd({},_0xc9e4ed['attrs']);_0x4f67bb!=null&&_0x4f67bb['colorChannel1']&&_0xa9e2e1[_0x37e969(0x29d)]==='colorChannel1'&&(_0xa9e2e1[_0x37e969(0x29d)]=_0x4f67bb[_0x37e969(0x209)]),_0xc9e4ed[_0x37e969(0x216)]===_0x37e969(0x1fa)&&_0xa9e2e1['id']&&(_0xa9e2e1['id']=_0xa9e2e1['id']+_0x55dc8b[_0x37e969(0x1f9)]),Object[_0x37e969(0x2a3)](_0xa9e2e1)['forEach'](function(_0x52184c){var _0x54a812=_0x37e969,_0x1a9f9b=_0x52184c[0x0],_0x28233e=_0x52184c[0x1];_0x1a9f9b===_0x54a812(0x1fa)&&typeof _0x28233e==_0x54a812(0x2b4)&&(_0xa9e2e1[_0x1a9f9b]=_0x28233e['replace'](/url\(#(.*)\)/,'url(#$1'['concat'](_0x55dc8b[_0x54a812(0x1f9)],')')));});var _0x4466dd=_0x55dc8b[_0x37e969(0x29b)];return!_0x4466dd||_0x4466dd[_0x37e969(0x262)]===0x0||(_0xc9e4ed[_0x37e969(0x216)]==='use'&&_0xa9e2e1['xlink:href']&&(_0xa9e2e1[_0x37e969(0x29a)]=_0xa9e2e1['xlink:href']+_0x55dc8b[_0x37e969(0x1f9)]),Object[_0x37e969(0x2a3)](_0xa9e2e1)[_0x37e969(0x295)](function(_0x235698){var _0x11b38f=_0x37e969,_0xcc85f2=_0x235698[0x0],_0x14ce6e=_0x235698[0x1];typeof _0x14ce6e==_0x11b38f(0x2b4)&&(_0xa9e2e1[_0xcc85f2]=_0x14ce6e['replace'](/url\(#(.*)\)/,_0x11b38f(0x225)[_0x11b38f(0x26a)](_0x55dc8b[_0x11b38f(0x1f9)],')')));})),_0xa9e2e1;}function _0x15b934(_0x4cb033,_0x541b20){var _0x520b63=_0x4abdf5,_0x5bcf8e,_0x30d789=_0x541b20['defIds'];return!_0x30d789||_0x30d789['length']===0x0?_0x4cb033:_0x4cb033[_0x520b63(0x216)]===_0x520b63(0x219)&&(!((_0x5bcf8e=_0x4cb033[_0x520b63(0x2d7)])===null||_0x5bcf8e===void 0x0)&&_0x5bcf8e[_0x520b63(0x262)])?_0x2495dd(_0x2495dd({},_0x4cb033),{'children':_0x4cb033[_0x520b63(0x2d7)]['map'](function(_0xda9d6e){var _0x12d2dd=_0x520b63;return typeof _0xda9d6e[_0x12d2dd(0x2b7)]['id']==_0x12d2dd(0x2b4)&&_0x30d789&&_0x30d789[_0x12d2dd(0x2a0)](_0xda9d6e['attrs']['id'])?_0x2495dd(_0x2495dd({},_0xda9d6e),{'attrs':_0x2495dd(_0x2495dd({},_0xda9d6e['attrs']),{'id':_0xda9d6e[_0x12d2dd(0x2b7)]['id']+_0x541b20[_0x12d2dd(0x1f9)]})}):_0xda9d6e;})}):_0x4cb033;}function _0x288e89(){var _0x743c77=_0x4abdf5;return Math[_0x743c77(0x210)]()[_0x743c77(0x25d)](0x24)[_0x743c77(0x296)](0x2,0x8);}_0x463541[_0x4abdf5(0x1fe)]=_0x4abdf5(0x271);var _0x1bc2af={'tag':_0x4abdf5(0x2a4),'attrs':{'xmlns':_0x4abdf5(0x218),'fill':'none','viewBox':'0\x200\x2017\x2017','width':'1em','height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x4abdf5(0x2af),'d':_0x4abdf5(0x205)}},{'tag':'path','attrs':{'fill':'currentColor','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':_0x4abdf5(0x280),'clipRule':'evenodd'}}]},_0x552635=_0x42c8b5[_0x4abdf5(0x208)](function(_0x1dbfbc,_0x21d6c9){var _0xaa3666=_0x4abdf5;return _0x42c8b5[_0xaa3666(0x2c7)](_0x463541,Object['assign']({},_0x1dbfbc,{'id':_0xaa3666(0x23f),'ref':_0x21d6c9,'icon':_0x1bc2af}));});_0x552635[_0x4abdf5(0x1fe)]=_0x4abdf5(0x20b);var _0x358209=Object[_0x4abdf5(0x29e)],_0x48a43a=(_0x388a91,_0x50d080,_0x1cfc27,_0x7f5542)=>{var _0x23a0fc=_0x4abdf5;for(var _0x25cbe0=_0x7f5542>0x1?void 0x0:_0x7f5542?_0x358209(_0x50d080,_0x1cfc27):_0x50d080,_0x2d9246=_0x388a91[_0x23a0fc(0x262)]-0x1,_0x1e2480;_0x2d9246>=0x0;_0x2d9246--)(_0x1e2480=_0x388a91[_0x2d9246])&&(_0x25cbe0=_0x1e2480(_0x25cbe0)||_0x25cbe0);return _0x25cbe0;},_0x5d20ed=(_0x3e0cdc,_0x7afd63)=>(_0x479c71,_0x2ef41b)=>_0x7afd63(_0x479c71,_0x2ef41b,_0x3e0cdc);_0x7a124f[_0x4abdf5(0x257)]=class extends _0x465feb[_0x4abdf5(0x1f5)]{constructor(_0x4a581f,_0x338b4a,_0x515c88){var _0x37da5a=_0x4abdf5;super(),_0x3f606a(this,_0x37da5a(0x2a2),new Map()),(this[_0x37da5a(0x202)]=_0x4a581f,this[_0x37da5a(0x2be)]=_0x338b4a,this['_collabSessionService']=_0x515c88,this[_0x37da5a(0x272)]());}async[_0x4abdf5(0x2bf)](_0x1fdb77){var _0x489d86=_0x4abdf5;return this[_0x489d86(0x2a2)][_0x489d86(0x24c)](_0x1fdb77)||await this[_0x489d86(0x229)](_0x1fdb77),this['_entities'][_0x489d86(0x235)](_0x1fdb77);}['_init'](){var _0x2293b3=_0x4abdf5;this[_0x2293b3(0x202)][_0x2293b3(0x274)](_0x465feb['UniverInstanceType'][_0x2293b3(0x222)])[_0x2293b3(0x22e)](_0x4244fd[_0x2293b3(0x238)](this[_0x2293b3(0x23b)]))[_0x2293b3(0x2c9)](async _0x1b0e53=>{var _0x12edf4=_0x2293b3;const _0x133dfe=_0x1b0e53[_0x12edf4(0x2a8)]();this[_0x12edf4(0x2a2)]['has'](_0x133dfe)||this['_startLiveShareCoordinator'](_0x133dfe);}),this['_univerInstanceService'][_0x2293b3(0x286)](_0x465feb['UniverInstanceType'][_0x2293b3(0x222)])[_0x2293b3(0x22e)](_0x4244fd[_0x2293b3(0x238)](this[_0x2293b3(0x23b)]))[_0x2293b3(0x2c9)](_0xc8b583=>{var _0x12f5cf=_0x2293b3;const _0x5842b0=_0xc8b583['getUnitId'](),_0x25d3b9=this[_0x12f5cf(0x2a2)][_0x12f5cf(0x235)](_0x5842b0);_0x25d3b9==null||_0x25d3b9[_0x12f5cf(0x2cf)]();});}async['_startLiveShareCoordinator'](_0x4a5b4b){var _0x5331a2=_0x4abdf5;const _0x34cda9=await this[_0x5331a2(0x2d2)][_0x5331a2(0x29f)](_0x4a5b4b),_0x4a71c3=this[_0x5331a2(0x2be)][_0x5331a2(0x2a1)](_0x7a124f[_0x5331a2(0x20d)],_0x4a5b4b,_0x34cda9);return _0x4a71c3[_0x5331a2(0x23c)](),this[_0x5331a2(0x2a2)][_0x5331a2(0x2da)](_0x4a5b4b,_0x4a71c3),_0x4a71c3;}},_0x7a124f[_0x4abdf5(0x257)]=_0x48a43a([_0x5d20ed(0x0,_0x465feb[_0x4abdf5(0x201)]),_0x5d20ed(0x1,_0x465feb[_0x4abdf5(0x290)](_0x465feb[_0x4abdf5(0x2a6)])),_0x5d20ed(0x2,_0x465feb[_0x4abdf5(0x290)](_0x21e19d['CollaborationSessionService']))],_0x7a124f[_0x4abdf5(0x257)]);var _0x11a9f5=(_0x5a7476=>(_0x5a7476[_0x4abdf5(0x1f3)]=_0x4abdf5(0x230),_0x5a7476[_0x4abdf5(0x278)]='idle',_0x5a7476[_0x4abdf5(0x264)]=_0x4abdf5(0x21d),_0x5a7476[_0x4abdf5(0x2ab)]=_0x4abdf5(0x27d),_0x5a7476[_0x4abdf5(0x259)]='presenting',_0x5a7476))(_0x11a9f5||{});const _0x32d0dd=_0x4abdf5(0x277),_0xa91a9c=0xc8;_0x7a124f[_0x4abdf5(0x20d)]=class extends _0x465feb['RxDisposable']{constructor(_0x270c6c,_0x5c7c3d,_0x521aaa,_0xe70e69,_0x378251){var _0x3bcc99=_0x4abdf5;super(),_0x3f606a(this,'_status$',new _0x4788f5['BehaviorSubject'](_0x3bcc99(0x248))),_0x3f606a(this,_0x3bcc99(0x25a),this[_0x3bcc99(0x266)][_0x3bcc99(0x28f)]()),_0x3f606a(this,_0x3bcc99(0x272),!0x1),_0x3f606a(this,_0x3bcc99(0x293),null),_0x3f606a(this,_0x3bcc99(0x232),null),(this[_0x3bcc99(0x1e7)]=_0x270c6c,this[_0x3bcc99(0x227)]=_0x5c7c3d,this[_0x3bcc99(0x2b9)]=_0x521aaa,this[_0x3bcc99(0x288)]=_0xe70e69,this['_commandService']=_0x378251);}get[_0x4abdf5(0x297)](){var _0x182ab2=_0x4abdf5;return this['_status$'][_0x182ab2(0x22f)]();}[_0x4abdf5(0x2cf)](){var _0xcedfab=_0x4abdf5,_0xa99ce5;(_0xa99ce5=this['_commandDisposable'])==null||_0xa99ce5[_0xcedfab(0x2cf)](),this[_0xcedfab(0x266)][_0xcedfab(0x206)]('idle'),this[_0xcedfab(0x266)]['complete']();}[_0x4abdf5(0x23c)](){var _0x39b5cc=_0x4abdf5;this[_0x39b5cc(0x272)]||(this[_0x39b5cc(0x272)]=!0x0,this[_0x39b5cc(0x227)][_0x39b5cc(0x283)]['pipe'](_0x4244fd['takeUntil'](this[_0x39b5cc(0x23b)]))[_0x39b5cc(0x2c9)](_0x41c7f6=>{var _0x51b574=_0x39b5cc;switch(_0x41c7f6){case _0x21e19d['SessionStatus'][_0x51b574(0x1f3)]:this[_0x51b574(0x1ec)]();break;case _0x21e19d[_0x51b574(0x2d4)][_0x51b574(0x21e)]:this[_0x51b574(0x25e)]();break;}}),this[_0x39b5cc(0x227)][_0x39b5cc(0x27f)][_0x39b5cc(0x22e)](_0x4244fd[_0x39b5cc(0x238)](this['dispose$']))[_0x39b5cc(0x2c9)](_0x21d84b=>{var _0x197fb5=_0x39b5cc;const {eventID:_0x28e320}=_0x21d84b;switch(_0x28e320){case _0xc6f7a0['CollaborationEvent']['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x21d84b);break;case _0xc6f7a0[_0x197fb5(0x1eb)][_0x197fb5(0x2db)]:this[_0x197fb5(0x1f8)](_0x21d84b);break;case _0xc6f7a0[_0x197fb5(0x1eb)][_0x197fb5(0x224)]:this['_handleTerminate']();break;case _0xc6f7a0['CollaborationEvent'][_0x197fb5(0x231)]:this[_0x197fb5(0x240)](_0x21d84b);break;}}));}[_0x4abdf5(0x265)](){var _0x4d509f=_0x4abdf5;this['_collabSession'][_0x4d509f(0x2c1)]({'eventID':_0xc6f7a0['CollaborationEvent'][_0x4d509f(0x217)],'data':{'unitID':this[_0x4d509f(0x1e7)],'userID':this[_0x4d509f(0x227)][_0x4d509f(0x285)]()}},this['_unitID']);}[_0x4abdf5(0x1fc)](){var _0x2542bf=_0x4abdf5;this[_0x2542bf(0x297)]===_0x2542bf(0x20c)&&(this[_0x2542bf(0x266)][_0x2542bf(0x206)]('idle'),this[_0x2542bf(0x227)][_0x2542bf(0x2c1)]({'eventID':_0xc6f7a0[_0x2542bf(0x1eb)][_0x2542bf(0x224)],'data':{'unitID':this[_0x2542bf(0x1e7)]}},this['_unitID']));}[_0x4abdf5(0x2cd)](){var _0x263de2=_0x4abdf5;this[_0x263de2(0x297)]===_0x263de2(0x27d)&&(this['_status$'][_0x263de2(0x206)](_0x263de2(0x21d)),this[_0x263de2(0x211)]());}[_0x4abdf5(0x270)](){var _0x5271d8=_0x4abdf5;this[_0x5271d8(0x297)]===_0x5271d8(0x21d)&&this['_stopFollowing']();}[_0x4abdf5(0x28a)](_0x3f376b){var _0x11136e=_0x4abdf5;const {presenter:_0x2b5c4b}=_0x3f376b[_0x11136e(0x249)],_0xad495c=this[_0x11136e(0x227)]['getMemberID']();this[_0x11136e(0x232)]=_0x2b5c4b,_0x2b5c4b===_0xad495c?(this[_0x11136e(0x267)](),this[_0x11136e(0x2a5)]()):this[_0x11136e(0x297)]!==_0x11136e(0x27d)&&(this[_0x11136e(0x28e)](),this[_0x11136e(0x211)]());}['_fetchOperations'](){var _0x2607c7=_0x4abdf5;const _0x1cfcc3={'eventID':_0xc6f7a0[_0x2607c7(0x1eb)][_0x2607c7(0x23e)]};this['_collabSession'][_0x2607c7(0x2c1)](_0x1cfcc3,this['_unitID']);}[_0x4abdf5(0x244)](){var _0x22de27=_0x4abdf5;this[_0x22de27(0x232)]=null,this[_0x22de27(0x297)]!==_0x22de27(0x20c)&&this[_0x22de27(0x22a)]();}[_0x4abdf5(0x240)](_0x2b82b1){var _0x2c8657=_0x4abdf5;if(this[_0x2c8657(0x297)]===_0x2c8657(0x21d)&&this['_presenter']===_0x2b82b1[_0x2c8657(0x249)][_0x2c8657(0x28d)]){const _0x50f4b1=_0xc6f7a0[_0x2c8657(0x22c)](_0x2b82b1[_0x2c8657(0x249)])[_0x2c8657(0x279)]['reverse']()[_0x2c8657(0x236)](_0x46d438=>_0x46d438['id']===_0x1e29bd[_0x2c8657(0x24f)]['id']);if(_0x50f4b1){const _0x32eea9=_0x50f4b1[_0x2c8657(0x226)][_0x2c8657(0x2ba)],_0x5c2391=_0x50f4b1['params'][_0x2c8657(0x2de)]['id'];setTimeout(()=>{var _0x3b300a=_0x2c8657;this[_0x3b300a(0x25c)][_0x3b300a(0x2c8)](_0x1e29bd['SetWorksheetActiveOperation']['id'],{'unitId':_0x32eea9,'subUnitId':_0x5c2391},{'fromCollab':!0x0});});}}}[_0x4abdf5(0x2a5)](){var _0x325ea8=_0x4abdf5;this['_status$'][_0x325ea8(0x206)]('presenting');const _0x59567d=new Map(),_0x30ebf5=this[_0x325ea8(0x293)]=new _0x465feb[(_0x325ea8(0x20a))]();_0x30ebf5[_0x325ea8(0x21b)](_0x465feb['toDisposable'](()=>{var _0x15465f=_0x325ea8;_0x59567d[_0x15465f(0x295)](_0x34bbe5=>_0x34bbe5[_0x15465f(0x2d3)]()),_0x59567d[_0x15465f(0x21f)]();})),_0x30ebf5[_0x325ea8(0x21b)](this[_0x325ea8(0x25c)][_0x325ea8(0x1fb)](_0x3abecf=>{var _0x12679c=_0x325ea8,_0x182360;if(_0x3abecf[_0x12679c(0x26c)]!==_0x465feb[_0x12679c(0x228)][_0x12679c(0x2c3)]||!this['_liveShareService'][_0x12679c(0x256)](_0x3abecf['id']))return;const {id:_0x17389a}=_0x3abecf;let _0x1d76fd;_0x59567d['has'](_0x17389a)?_0x1d76fd=_0x59567d['get'](_0x17389a):(_0x1d76fd=new _0x4788f5[(_0x12679c(0x220))](),_0x59567d[_0x12679c(0x2da)](_0x17389a,_0x1d76fd),_0x1d76fd[_0x12679c(0x22e)](_0x4244fd[_0x12679c(0x1e9)]((_0x182360=this['_configService'][_0x12679c(0x2cb)](_0x32d0dd))!=null?_0x182360:_0xa91a9c,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x12679c(0x2c9)](_0x52a95a=>{var _0x54f237=_0x12679c;this[_0x54f237(0x227)][_0x54f237(0x2c1)]({'eventID':_0xc6f7a0[_0x54f237(0x1eb)][_0x54f237(0x2db)],'data':{'unitID':this[_0x54f237(0x1e7)],'operations':{[_0x52a95a['id']]:{'id':_0x52a95a['id'],'params':JSON[_0x54f237(0x268)](_0x52a95a[_0x54f237(0x226)])}}}},this[_0x54f237(0x1e7)]);})),_0x1d76fd[_0x12679c(0x206)](_0x3abecf);})),this[_0x325ea8(0x288)][_0x325ea8(0x2cc)](this['_unitID'])[_0x325ea8(0x295)](_0x234f36=>this[_0x325ea8(0x227)][_0x325ea8(0x2c1)]({'eventID':_0xc6f7a0[_0x325ea8(0x1eb)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x325ea8(0x1e7)],'operations':{[_0x234f36['id']]:{'id':_0x234f36['id'],'params':JSON['stringify'](_0x234f36['params'])}}}},this[_0x325ea8(0x1e7)]));}[_0x4abdf5(0x28e)](){var _0x320df6=_0x4abdf5,_0x435d58;this[_0x320df6(0x266)][_0x320df6(0x206)](_0x320df6(0x248)),(_0x435d58=this[_0x320df6(0x293)])==null||_0x435d58[_0x320df6(0x2cf)](),this[_0x320df6(0x293)]=null;}[_0x4abdf5(0x211)](){var _0x5f2356=_0x4abdf5,_0x48e869;(_0x48e869=this[_0x5f2356(0x293)])==null||_0x48e869[_0x5f2356(0x2cf)](),this[_0x5f2356(0x266)][_0x5f2356(0x206)](_0x5f2356(0x21d));}[_0x4abdf5(0x22a)](){var _0x23f8f3=_0x4abdf5,_0x476df9;this[_0x23f8f3(0x266)]['next']('idle'),(_0x476df9=this[_0x23f8f3(0x293)])==null||_0x476df9[_0x23f8f3(0x2cf)](),this['_commandDisposable']=null;}[_0x4abdf5(0x267)](){var _0xd7ece5=_0x4abdf5,_0xc4e8d2;this[_0xd7ece5(0x266)][_0xd7ece5(0x206)](_0xd7ece5(0x27d)),(_0xc4e8d2=this['_commandDisposable'])==null||_0xc4e8d2['dispose']();}[_0x4abdf5(0x1f8)](_0x3f9c60){var _0x53d962=_0x4abdf5;if([_0x53d962(0x20c),_0x53d962(0x27d),_0x53d962(0x230)][_0x53d962(0x2a0)](this[_0x53d962(0x297)])||!_0x3f9c60['data'][_0x53d962(0x241)]||_0x3f9c60['data'][_0x53d962(0x241)]===this[_0x53d962(0x227)][_0x53d962(0x285)]())return;this[_0x53d962(0x297)]===_0x53d962(0x248)&&this[_0x53d962(0x211)]();const _0x42a537=_0x3f9c60[_0x53d962(0x249)][_0x53d962(0x1ed)];Object[_0x53d962(0x204)](_0x42a537)[_0x53d962(0x295)](_0x2b90af=>{var _0x32f4fe=_0x53d962;this['_commandService'][_0x32f4fe(0x2c8)](_0x2b90af['id'],_0x2b90af['params']?JSON[_0x32f4fe(0x258)](_0x2b90af[_0x32f4fe(0x226)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x4b1552=_0x4abdf5,_0x274df0;this[_0x4b1552(0x266)][_0x4b1552(0x206)](_0x4b1552(0x230)),(_0x274df0=this[_0x4b1552(0x293)])==null||_0x274df0[_0x4b1552(0x2cf)]();}[_0x4abdf5(0x25e)](){this['_status$']['next']('idle'),this['_fetchOperations']();}},_0x7a124f[_0x4abdf5(0x20d)]=_0x48a43a([_0x5d20ed(0x2,_0x465feb[_0x4abdf5(0x1f7)]),_0x5d20ed(0x3,_0x465feb[_0x4abdf5(0x290)](_0x3206c2)),_0x5d20ed(0x4,_0x465feb[_0x4abdf5(0x213)])],_0x7a124f[_0x4abdf5(0x20d)]);function _0x41ba05(){var _0x28daaf=_0x4abdf5;const _0x561cd3=_0x50c920[_0x28daaf(0x247)](_0x7a124f['LiveShareController']),_0x2aa6fe=_0x50c920[_0x28daaf(0x247)](_0x465feb[_0x28daaf(0x201)]),_0x4067cf=_0x50c920['useObservable'](()=>_0x2aa6fe[_0x28daaf(0x1f6)](_0x465feb['UniverInstanceType'][_0x28daaf(0x222)]),void 0x0,!0x1,[]),[_0x38e92b,_0x3ed39f]=_0x42c8b5[_0x28daaf(0x212)](null),[_0xd0c987,_0x20fc7a]=_0x42c8b5[_0x28daaf(0x212)](_0x11a9f5[_0x28daaf(0x278)]),_0x1fa838=_0x42c8b5['useRef'](null);return _0x42c8b5[_0x28daaf(0x25b)](()=>(_0x4067cf&&_0x561cd3[_0x28daaf(0x2bf)](_0x4067cf[_0x28daaf(0x2a8)]())[_0x28daaf(0x23a)](_0x589ecd=>{var _0x4d0d8f=_0x28daaf;_0x3ed39f(_0x589ecd),_0x1fa838[_0x4d0d8f(0x2dd)]=_0x589ecd[_0x4d0d8f(0x25a)][_0x4d0d8f(0x2c9)](_0x4b3cb8=>{_0x20fc7a(_0x4b3cb8);});}),()=>{var _0x12a2dd=_0x28daaf,_0x41af2b;(_0x41af2b=_0x1fa838[_0x12a2dd(0x2dd)])==null||_0x41af2b[_0x12a2dd(0x2a9)](),_0x1fa838[_0x12a2dd(0x2dd)]=null;}),[_0x4067cf,_0x561cd3]),_0x38e92b?_0x4903e6[_0x28daaf(0x2b5)](_0x4708a7[_0x28daaf(0x2aa)],{'align':_0x28daaf(0x22d),'disabled':_0xd0c987===_0x11a9f5[_0x28daaf(0x1f3)],'className':_0x28daaf(0x1e6),'overlay':_0x4903e6[_0x28daaf(0x2b5)](_0x1fbe8d,{'status':_0xd0c987,'coordinator':_0x38e92b}),'children':_0x4903e6[_0x28daaf(0x2b5)](_0x28daaf(0x26b),{'className':_0x4708a7[_0x28daaf(0x2ac)](_0x28daaf(0x21c),{'univer-cursor-not-allowed':_0xd0c987===_0x11a9f5[_0x28daaf(0x1f3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xd0c987!==_0x11a9f5[_0x28daaf(0x1f3)]}),'type':'button','children':_0x4903e6[_0x28daaf(0x2b5)](_0x552635,{'className':_0x28daaf(0x284)})})}):null;}function _0x1fbe8d(_0xb537ef){var _0x128fba=_0x4abdf5;const {status:_0x4ba175,coordinator:_0x140d96}=_0xb537ef;switch(_0x4ba175){case _0x11a9f5['IDLE']:return _0x4903e6[_0x128fba(0x2b5)](_0x4dff59,{'coordinator':_0x140d96});case _0x11a9f5['FOLLOWING']:return _0x4903e6[_0x128fba(0x2b5)](_0x478087,{'coordinator':_0x140d96});case _0x11a9f5[_0x128fba(0x2ab)]:return _0x4903e6[_0x128fba(0x2b5)](_0x2ee267,{'coordinator':_0x140d96});case _0x11a9f5[_0x128fba(0x1f3)]:return _0x4903e6[_0x128fba(0x2b5)](_0x2c47fa,{});case _0x11a9f5['PRESENTING']:return _0x4903e6[_0x128fba(0x2b5)](_0x18d3d2,{'coordinator':_0x140d96});default:return null;}}function _0x4dff59(_0x3d4d72){var _0x5447c5=_0x4abdf5;const {coordinator:_0x4b81c8}=_0x3d4d72;return _0x4903e6[_0x5447c5(0x2ca)](_0x4903e6[_0x5447c5(0x1ee)],{'children':[_0x4903e6['jsx'](_0x5447c5(0x1f1),{'className':_0x5447c5(0x281),'children':'Present\x20this\x20document'}),_0x4903e6[_0x5447c5(0x2b5)](_0x4708a7[_0x5447c5(0x223)],{'onClick':()=>_0x4b81c8[_0x5447c5(0x265)](),'children':_0x5447c5(0x251)})]});}function _0x478087(_0x18b7b6){var _0x3f71cb=_0x4abdf5;const {coordinator:_0x1e0f8a}=_0x18b7b6;return _0x4903e6[_0x3f71cb(0x2ca)](_0x4903e6[_0x3f71cb(0x1ee)],{'children':[_0x4903e6[_0x3f71cb(0x2b5)](_0x3f71cb(0x1f1),{'className':_0x3f71cb(0x281),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4903e6[_0x3f71cb(0x2b5)](_0x4708a7['Button'],{'onClick':()=>_0x1e0f8a[_0x3f71cb(0x270)](),'children':_0x3f71cb(0x261)})]});}function _0x2ee267(_0x39c584){var _0x41fc00=_0x4abdf5;const {coordinator:_0x3771bd}=_0x39c584;return _0x4903e6[_0x41fc00(0x2ca)](_0x4903e6['Fragment'],{'children':[_0x4903e6[_0x41fc00(0x2b5)](_0x41fc00(0x1f1),{'className':_0x41fc00(0x281),'children':_0x41fc00(0x2c2)}),_0x4903e6[_0x41fc00(0x2b5)](_0x4708a7[_0x41fc00(0x223)],{'variant':_0x41fc00(0x252),'onClick':()=>_0x3771bd[_0x41fc00(0x2cd)](),'children':_0x41fc00(0x2d6)})]});}function _0x18d3d2(_0x2c7708){var _0x46f75f=_0x4abdf5;const {coordinator:_0x56714d}=_0x2c7708;return _0x4903e6['jsxs'](_0x4903e6['Fragment'],{'children':[_0x4903e6['jsx'](_0x46f75f(0x1f1),{'className':_0x46f75f(0x281),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4903e6[_0x46f75f(0x2b5)](_0x4708a7[_0x46f75f(0x223)],{'variant':_0x46f75f(0x239),'onClick':()=>_0x56714d[_0x46f75f(0x1fc)](),'children':_0x46f75f(0x26d)})]});}function _0x2c47fa(){var _0xadb52f=_0x4abdf5;return _0x4903e6[_0xadb52f(0x2b5)](_0x4903e6['Fragment'],{'children':_0xadb52f(0x2d5)});}var _0x597981=Object[_0x4abdf5(0x29e)],_0x780543=(_0x20213a,_0x5a675f,_0x2b8cdc,_0x1962e8)=>{var _0xf32882=_0x4abdf5;for(var _0xe75acb=_0x1962e8>0x1?void 0x0:_0x1962e8?_0x597981(_0x5a675f,_0x2b8cdc):_0x5a675f,_0x2922d6=_0x20213a[_0xf32882(0x262)]-0x1,_0x422ec8;_0x2922d6>=0x0;_0x2922d6--)(_0x422ec8=_0x20213a[_0x2922d6])&&(_0xe75acb=_0x422ec8(_0xe75acb)||_0xe75acb);return _0xe75acb;},_0x55d1db=(_0x2d859c,_0x1db990)=>(_0x5e6026,_0x18789d)=>_0x1db990(_0x5e6026,_0x18789d,_0x2d859c);_0x7a124f['DesktopLiveShareController']=class extends _0x465feb['Disposable']{constructor(_0x533132,_0x5c71c1){var _0x44ce79=_0x4abdf5;super(),this[_0x44ce79(0x2be)]=_0x533132,this[_0x44ce79(0x246)]=_0x5c71c1,this[_0x44ce79(0x28b)]();}[_0x4abdf5(0x28b)](){var _0x5e1db3=_0x4abdf5;this[_0x5e1db3(0x26e)](this[_0x5e1db3(0x246)][_0x5e1db3(0x282)](_0x50c920['BuiltInUIPart']['HEADER_MENU'],()=>_0x50c920[_0x5e1db3(0x2bb)](_0x41ba05,this[_0x5e1db3(0x2be)])));}},_0x7a124f[_0x4abdf5(0x294)]=_0x780543([_0x55d1db(0x0,_0x465feb['Inject'](_0x465feb['Injector'])),_0x55d1db(0x1,_0x50c920[_0x4abdf5(0x253)])],_0x7a124f['DesktopLiveShareController']);var _0x431a2e=Object[_0x4abdf5(0x1ff)],_0x3b25d8=Object[_0x4abdf5(0x29e)],_0x1c6aee=(_0x33a790,_0x3f1a16,_0x16cc2c)=>_0x3f1a16 in _0x33a790?_0x431a2e(_0x33a790,_0x3f1a16,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16cc2c}):_0x33a790[_0x3f1a16]=_0x16cc2c,_0x3a7204=(_0x365b8b,_0x1c8524,_0x12118c,_0x42df66)=>{var _0x15417a=_0x4abdf5;for(var _0x50bfde=_0x42df66>0x1?void 0x0:_0x42df66?_0x3b25d8(_0x1c8524,_0x12118c):_0x1c8524,_0x39d591=_0x365b8b[_0x15417a(0x262)]-0x1,_0x4d06bf;_0x39d591>=0x0;_0x39d591--)(_0x4d06bf=_0x365b8b[_0x39d591])&&(_0x50bfde=_0x4d06bf(_0x50bfde)||_0x50bfde);return _0x50bfde;},_0x5aebf9=(_0x529413,_0xbe1a1c)=>(_0x5091b2,_0x26bd78)=>_0xbe1a1c(_0x5091b2,_0x26bd78,_0x529413),_0x45d24c=(_0x52da18,_0x5efe08,_0x1b9e76)=>_0x1c6aee(_0x52da18,typeof _0x5efe08!=_0x4abdf5(0x24d)?_0x5efe08+'':_0x5efe08,_0x1b9e76);const _0x209289='UNIVER_LIVE_SHARE_PLUGIN';_0x7a124f[_0x4abdf5(0x2dc)]=class extends _0x465feb['Plugin']{constructor(_0x21a00a=_0x30e85e,_0x29f51e,_0x5d653d){var _0xd5aed9=_0x4abdf5;super(),this['_config']=_0x21a00a,this[_0xd5aed9(0x2be)]=_0x29f51e,this[_0xd5aed9(0x2b9)]=_0x5d653d;const {..._0x190b78}=_0x465feb[_0xd5aed9(0x1f0)]({},_0x30e85e,this[_0xd5aed9(0x2b8)]);this[_0xd5aed9(0x2b9)][_0xd5aed9(0x233)](_0x1f1091,_0x190b78);}[_0x4abdf5(0x27c)](){var _0x56cbbe=_0x4abdf5;_0x465feb['registerDependencies'](this[_0x56cbbe(0x2be)],_0x465feb[_0x56cbbe(0x2b3)]([[_0x3206c2],[_0x7a124f['LiveShareController']],[_0x2ce02d],[_0x7a124f[_0x56cbbe(0x294)]]],this['_config'][_0x56cbbe(0x2bd)])),_0x465feb['touchDependencies'](this['_injector'],[[_0x2ce02d]]);}['onRendered'](){var _0x5a6802=_0x4abdf5;_0x465feb[_0x5a6802(0x298)](this[_0x5a6802(0x2be)],[[_0x7a124f[_0x5a6802(0x294)]]]);}},_0x45d24c(_0x7a124f[_0x4abdf5(0x2dc)],_0x4abdf5(0x26c),_0x465feb[_0x4abdf5(0x250)][_0x4abdf5(0x24e)]),_0x45d24c(_0x7a124f[_0x4abdf5(0x2dc)],_0x4abdf5(0x1f4),_0x209289),_0x7a124f[_0x4abdf5(0x2dc)]=_0x3a7204([_0x465feb['DependentOn'](_0x21e19d[_0x4abdf5(0x1f2)]),_0x5aebf9(0x1,_0x465feb[_0x4abdf5(0x290)](_0x465feb['Injector'])),_0x5aebf9(0x2,_0x465feb['IConfigService'])],_0x7a124f[_0x4abdf5(0x2dc)]),_0x7a124f[_0x4abdf5(0x2d0)]=_0x41ba05,_0x7a124f[_0x4abdf5(0x2ae)]=_0x3206c2,_0x7a124f[_0x4abdf5(0x273)]=_0x11a9f5,Object[_0x4abdf5(0x1ff)](_0x7a124f,Symbol[_0x4abdf5(0x299)],{'value':'Module'});}));function _0xaefe(_0x4ef5f4,_0x129fb3){var _0x43f495=_0x43f4();return _0xaefe=function(_0xaefed0,_0x251354){_0xaefed0=_0xaefed0-0x1e5;var _0x2ac36a=_0x43f495[_0xaefed0];return _0x2ac36a;},_0xaefe(_0x4ef5f4,_0x129fb3);}function _0x43f4(){var _0x268364=['unitId','connectInjector','@univerjs-pro/collaboration','override','_injector','getLiveShareCoordinator','call','send','You\x27re\x20not\x20following\x20the\x20presenter','OPERATION','apply','748fmMdyU','react/jsx-runtime','createElement','executeCommand','subscribe','jsxs','getConfig','getInitialStates','startFollowing','rxjs/operators','dispose','LiveShare','87790tizNkZ','_collabSessionService','complete','SessionStatus','You\x27are\x20offline.','Start\x20following','children','5SjWpKq','SetWorksheetActiveOperation','set','LIVESHARE_OPERATION','UniverLiveSharePlugin','current','sheet','extend','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','_unitID','className','throttleTime','_reporters','CollaborationEvent','_handleOffline','operations','Fragment','registerInitialStateReporter','merge','div','UniverCollaborationClientPlugin','OFFLINE','pluginName','RxDisposable','getCurrentTypeOfUnit$','IConfigService','_handleOperation','idSuffix','mask','onCommandExecuted','stopPresenting','1271268aUdUZn','displayName','defineProperty','584pWcTEc','IUniverInstanceService','_univerInstanceService','6052uesXwI','values','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','UniverSheetsUi','forwardRef','colorChannel1','DisposableCollection','LiveShareIcon','presenting','LiveShareCoordinator','13669GDREUg','object','random','_startFollowing','useState','ICommandService','prototype','toDisposable','tag','LIVESHARE_REQUEST_HOST','http://www.w3.org/2000/svg','defs','UniverProLiveShare','add','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','following','ONLINE','clear','Subject','useRef','UNIVER_SHEET','Button','LIVESHARE_TERMINATE','url(#$1','params','_collabSession','CommandType','_startLiveShareCoordinator','_beIdle','amd','parseProtocolChangeset','end','pipe','getValue','offline','NEW_CHANGESETS','_presenter','setConfig','UniverUi','get','find','1191GtABPZ','takeUntil','default','then','dispose$','init','function','LIVESHARE_FETCH_OPERATIONS','live-share-icon','_handleNewChangeSets','presenter','exports','SetScrollOperation','_handleTerminate','UniverProCollaboration','_uiPartsService','useDependency','idle','data','@univerjs/design','1370988yfaRRC','has','symbol','UNIVER_UNKNOWN','InsertSheetMutation','UniverInstanceType','Start','text','IUIPartsService','102sZtVLh','1888122BRZEBx','shouldShareOperation','LiveShareController','parse','PRESENTING','status$','useEffect','_commandService','toString','_handleOnline','map','UniverSheets','Stop\x20following','length','univerjs-icon\x20univerjs-icon-','FOLLOWING','tryStartPresenting','_status$','_stopFollowing','stringify','live-share.config','concat','button','type','Stop\x20presenting','disposeWithMe','react','stopFollowing','UniverIcon','_init','LiveShareStatus','getTypeOfUnitAdded$','rxjs','delete','SAME_OPERATION_SHARE_INTERVAL','IDLE','mutations','from','SetZoomRatioOperation','onStarting','not-following','@univerjs/core','event$','evenodd','univer-mb-3\x20univer-w-full\x20univer-text-sm','registerComponent','sessionStatus$','univer-size-4','getMemberID','getTypeOfUnitDisposed$','98329olSomz','_liveShareService','UniverDesign','_handleNewHost','_mountLiveShare','icon','memberID','_stopPresenting','asObservable','Inject','getOwnPropertySymbols','@univerjs/sheets-ui','_commandDisposable','DesktopLiveShareController','forEach','substring','_status','touchDependencies','toStringTag','xlink:href','defIds','_sharedOperations','fill','getOwnPropertyDescriptor','requireSession','includes','createInstance','_entities','entries','svg','_startPresenting','Injector','React','getUnitId','unsubscribe','Dropdown','NOT_FOLLOWING','clsx','hasOwnProperty','LiveShareService','currentColor','assign','@univerjs-pro/collaboration-client','@univerjs/ui','mergeOverrideWithDependencies','string','jsx','registerSharedOperation','attrs','_config','_configService'];_0x43f4=function(){return _0x268364;};return _0x43f4();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.3-nightly.202507250819",
|
|
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": "0.9.
|
|
51
|
-
"@univerjs/
|
|
52
|
-
"@univerjs
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/sheets": "0.9.
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/
|
|
50
|
+
"@univerjs-pro/collaboration": "0.9.3-nightly.202507250819",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.9.3-nightly.202507250819",
|
|
52
|
+
"@univerjs/core": "0.9.3-nightly.202507250819",
|
|
53
|
+
"@univerjs/sheets": "0.9.3-nightly.202507250819",
|
|
54
|
+
"@univerjs/sheets-ui": "0.9.3-nightly.202507250819",
|
|
55
|
+
"@univerjs/ui": "0.9.3-nightly.202507250819",
|
|
56
|
+
"@univerjs/design": "0.9.3-nightly.202507250819"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.6",
|
|
@@ -61,10 +61,10 @@
|
|
|
61
61
|
"rxjs": "7.8.2",
|
|
62
62
|
"tailwindcss": "^3.4.17",
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
|
-
"vite": "^
|
|
64
|
+
"vite": "^7.0.5",
|
|
65
65
|
"vitest": "^3.2.4",
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs
|
|
66
|
+
"@univerjs-infra/shared": "0.9.3",
|
|
67
|
+
"@univerjs/protocol": "0.1.47-alpha.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"test": "vitest run",
|