@univerjs-pro/live-share 0.8.0-beta.0 → 0.8.0-beta.1
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 _0x27ce7f=_0xc178;(function(_0x2743b8,_0x4d5280){var _0x4de444=_0xc178,_0x32c297=_0x2743b8();while(!![]){try{var _0x320262=parseInt(_0x4de444(0x185))/0x1*(-parseInt(_0x4de444(0x203))/0x2)+-parseInt(_0x4de444(0x1cd))/0x3*(-parseInt(_0x4de444(0x14b))/0x4)+-parseInt(_0x4de444(0x163))/0x5*(parseInt(_0x4de444(0x218))/0x6)+-parseInt(_0x4de444(0x178))/0x7+parseInt(_0x4de444(0x1cf))/0x8+parseInt(_0x4de444(0x187))/0x9*(parseInt(_0x4de444(0x200))/0xa)+-parseInt(_0x4de444(0x193))/0xb;if(_0x320262===_0x4d5280)break;else _0x32c297['push'](_0x32c297['shift']());}catch(_0x41f4e7){_0x32c297['push'](_0x32c297['shift']());}}}(_0x2ee7,0x230ab));var U=Object[_0x27ce7f(0x1b8)],F=(_0x421ba1,_0x30c009,_0x208aa9)=>_0x30c009 in _0x421ba1?U(_0x421ba1,_0x30c009,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x208aa9}):_0x421ba1[_0x30c009]=_0x208aa9,v=(_0x7d4e9f,_0x5f3f22,_0x12e998)=>F(_0x7d4e9f,typeof _0x5f3f22!=_0x27ce7f(0x1c8)?_0x5f3f22+'':_0x5f3f22,_0x12e998);Object[_0x27ce7f(0x1b8)](exports,Symbol[_0x27ce7f(0x1b9)],{'value':_0x27ce7f(0x167)});const m=require(_0x27ce7f(0x190)),o=require(_0x27ce7f(0x1c1)),C=require('@univerjs/sheets'),D=require('@univerjs/sheets-ui'),p=require(_0x27ce7f(0x183)),l=require(_0x27ce7f(0x151)),g=require('@univerjs/design'),f=require(_0x27ce7f(0x15c)),_=require(_0x27ce7f(0x159)),x=require(_0x27ce7f(0x1fa)),b=require('rxjs/operators'),$=_0x27ce7f(0x158),L={};class E extends o[_0x27ce7f(0x166)]{constructor(){var _0x1f7f80=_0x27ce7f;super(...arguments),v(this,_0x1f7f80(0x188),new Set()),v(this,'_reporters',new Set());}[_0x27ce7f(0x214)](_0x499e49){var _0x4442e2=_0x27ce7f;return this[_0x4442e2(0x188)]['add'](_0x499e49),o[_0x4442e2(0x21b)](()=>this[_0x4442e2(0x188)][_0x4442e2(0x15a)](_0x499e49));}['registerInitialStateReporter'](_0x4c84e2){var _0x3fb929=_0x27ce7f;return this[_0x3fb929(0x1b4)][_0x3fb929(0x1a7)](_0x4c84e2),o[_0x3fb929(0x21b)](()=>this['_reporters'][_0x3fb929(0x15a)](_0x4c84e2));}[_0x27ce7f(0x162)](_0x19cb4d){var _0x1977c7=_0x27ce7f;return this[_0x1977c7(0x188)][_0x1977c7(0x170)](_0x19cb4d);}['getInitialStates'](_0x41f725){var _0x3fb6e9=_0x27ce7f;return Array[_0x3fb6e9(0x220)](this['_reporters'])['map'](_0x2d7222=>_0x2d7222(_0x41f725));}}var H=Object[_0x27ce7f(0x19f)],V=(_0x459878,_0x2dd8ff,_0x43a241,_0x23a5bd)=>{var _0x1dee52=_0x27ce7f;for(var _0x5cb595=_0x23a5bd>0x1?void 0x0:_0x23a5bd?H(_0x2dd8ff,_0x43a241):_0x2dd8ff,_0x14e90c=_0x459878[_0x1dee52(0x1d1)]-0x1,_0x2dd631;_0x14e90c>=0x0;_0x14e90c--)(_0x2dd631=_0x459878[_0x14e90c])&&(_0x5cb595=_0x2dd631(_0x5cb595)||_0x5cb595);return _0x5cb595;},k=(_0x2e3544,_0x18b3b1)=>(_0x4acf86,_0x478c4e)=>_0x18b3b1(_0x4acf86,_0x478c4e,_0x2e3544);let O=class extends o[_0x27ce7f(0x166)]{constructor(_0x2c7108){var _0x3630f7=_0x27ce7f;super(),this[_0x3630f7(0x1b2)]=_0x2c7108,this['_init']();}[_0x27ce7f(0x21c)](){[D['SetZoomRatioOperation']['id'],D['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']]['forEach'](_0x5413b2=>{var _0x35d017=_0xc178;this[_0x35d017(0x210)](this['_liveShareService'][_0x35d017(0x214)](_0x5413b2));});}};O=V([k(0x0,o[_0x27ce7f(0x1bc)](E))],O);var u=function(){var _0x1f86fe=_0x27ce7f;return u=Object['assign']||function(_0x471713){var _0x504510=_0xc178;for(var _0x4dc54a,_0x1acda6=0x1,_0x203b28=arguments[_0x504510(0x1d1)];_0x1acda6<_0x203b28;_0x1acda6++){_0x4dc54a=arguments[_0x1acda6];for(var _0x4d7024 in _0x4dc54a)Object['prototype'][_0x504510(0x17e)][_0x504510(0x16b)](_0x4dc54a,_0x4d7024)&&(_0x471713[_0x4d7024]=_0x4dc54a[_0x4d7024]);}return _0x471713;},u[_0x1f86fe(0x155)](this,arguments);},M=function(_0x1b87b3,_0x16d406){var _0x388df6=_0x27ce7f,_0x342bf3={};for(var _0x4e8096 in _0x1b87b3)Object[_0x388df6(0x165)][_0x388df6(0x17e)][_0x388df6(0x16b)](_0x1b87b3,_0x4e8096)&&_0x16d406[_0x388df6(0x153)](_0x4e8096)<0x0&&(_0x342bf3[_0x4e8096]=_0x1b87b3[_0x4e8096]);if(_0x1b87b3!=null&&typeof Object[_0x388df6(0x1f0)]=='function'){for(var _0x731780=0x0,_0x4e8096=Object[_0x388df6(0x1f0)](_0x1b87b3);_0x731780<_0x4e8096[_0x388df6(0x1d1)];_0x731780++)_0x16d406[_0x388df6(0x153)](_0x4e8096[_0x731780])<0x0&&Object[_0x388df6(0x165)][_0x388df6(0x1e4)][_0x388df6(0x16b)](_0x1b87b3,_0x4e8096[_0x731780])&&(_0x342bf3[_0x4e8096[_0x731780]]=_0x1b87b3[_0x4e8096[_0x731780]]);}return _0x342bf3;},j=f[_0x27ce7f(0x164)](function(_0x4f9380,_0x303932){var _0x51736d=_0x27ce7f,_0x3356b2=_0x4f9380[_0x51736d(0x141)],_0x155c5c=_0x4f9380['id'],_0x2fb127=_0x4f9380[_0x51736d(0x208)],_0x36a040=_0x4f9380[_0x51736d(0x179)],_0x43167e=M(_0x4f9380,[_0x51736d(0x141),'id',_0x51736d(0x208),'extend']),_0x7fb1f2=_0x51736d(0x1fc)['concat'](_0x155c5c,'\x20')[_0x51736d(0x1ff)](_0x2fb127||'')['trim'](),_0x1eb044=f[_0x51736d(0x16f)]('_'[_0x51736d(0x1ff)](G()));return y(_0x3356b2,''['concat'](_0x155c5c),{'defIds':_0x3356b2[_0x51736d(0x1f2)],'idSuffix':_0x1eb044[_0x51736d(0x21a)]},u({'ref':_0x303932,'className':_0x7fb1f2},_0x43167e),_0x36a040);});function y(_0x36e87b,_0x3eb267,_0x5753d4,_0x23a6a8,_0x5946a0){var _0xa28bb3=_0x27ce7f;return f['createElement'](_0x36e87b['tag'],u(u({'key':_0x3eb267},q(_0x36e87b,_0x5753d4,_0x5946a0)),_0x23a6a8),(W(_0x36e87b,_0x5753d4)[_0xa28bb3(0x177)]||[])['map'](function(_0x53a7e9,_0x226082){var _0x46efad=_0xa28bb3;return y(_0x53a7e9,''[_0x46efad(0x1ff)](_0x3eb267,'-')[_0x46efad(0x1ff)](_0x36e87b[_0x46efad(0x1d8)],'-')[_0x46efad(0x1ff)](_0x226082),_0x5753d4,void 0x0,_0x5946a0);}));}function q(_0x3438a6,_0x4c6d5f,_0x3b2a06){var _0x2821e0=_0x27ce7f,_0x1b8d8f=u({},_0x3438a6[_0x2821e0(0x1ac)]);_0x3b2a06!=null&&_0x3b2a06[_0x2821e0(0x1ed)]&&_0x1b8d8f['fill']==='colorChannel1'&&(_0x1b8d8f[_0x2821e0(0x197)]=_0x3b2a06[_0x2821e0(0x1ed)]),_0x3438a6[_0x2821e0(0x1d8)]==='mask'&&_0x1b8d8f['id']&&(_0x1b8d8f['id']=_0x1b8d8f['id']+_0x4c6d5f[_0x2821e0(0x204)]),Object[_0x2821e0(0x16d)](_0x1b8d8f)[_0x2821e0(0x1e8)](function(_0x317b5a){var _0x3e3d55=_0x2821e0,_0x288d14=_0x317b5a[0x0],_0x3515b7=_0x317b5a[0x1];_0x288d14==='mask'&&typeof _0x3515b7==_0x3e3d55(0x18d)&&(_0x1b8d8f[_0x288d14]=_0x3515b7[_0x3e3d55(0x156)](/url\(#(.*)\)/,_0x3e3d55(0x18f)[_0x3e3d55(0x1ff)](_0x4c6d5f['idSuffix'],')')));});var _0x3127b8=_0x4c6d5f[_0x2821e0(0x1f2)];return!_0x3127b8||_0x3127b8[_0x2821e0(0x1d1)]===0x0||(_0x3438a6[_0x2821e0(0x1d8)]==='use'&&_0x1b8d8f['xlink:href']&&(_0x1b8d8f['xlink:href']=_0x1b8d8f[_0x2821e0(0x176)]+_0x4c6d5f[_0x2821e0(0x204)]),Object[_0x2821e0(0x16d)](_0x1b8d8f)[_0x2821e0(0x1e8)](function(_0x588c3){var _0x9ba8b1=_0x2821e0,_0x151ceb=_0x588c3[0x0],_0x165a2e=_0x588c3[0x1];typeof _0x165a2e==_0x9ba8b1(0x18d)&&(_0x1b8d8f[_0x151ceb]=_0x165a2e[_0x9ba8b1(0x156)](/url\(#(.*)\)/,_0x9ba8b1(0x18f)[_0x9ba8b1(0x1ff)](_0x4c6d5f[_0x9ba8b1(0x204)],')')));})),_0x1b8d8f;}function W(_0xa841e9,_0x2a5f2a){var _0x2d2613=_0x27ce7f,_0x1bdba2,_0x2c5228=_0x2a5f2a[_0x2d2613(0x1f2)];return!_0x2c5228||_0x2c5228['length']===0x0?_0xa841e9:_0xa841e9[_0x2d2613(0x1d8)]===_0x2d2613(0x20c)&&(!((_0x1bdba2=_0xa841e9['children'])===null||_0x1bdba2===void 0x0)&&_0x1bdba2[_0x2d2613(0x1d1)])?u(u({},_0xa841e9),{'children':_0xa841e9[_0x2d2613(0x177)][_0x2d2613(0x1ef)](function(_0xd0c764){var _0x27b6a3=_0x2d2613;return typeof _0xd0c764['attrs']['id']==_0x27b6a3(0x18d)&&_0x2c5228&&_0x2c5228[_0x27b6a3(0x153)](_0xd0c764['attrs']['id'])>-0x1?u(u({},_0xd0c764),{'attrs':u(u({},_0xd0c764['attrs']),{'id':_0xd0c764[_0x27b6a3(0x1ac)]['id']+_0x2a5f2a[_0x27b6a3(0x204)]})}):_0xd0c764;})}):_0xa841e9;}function G(){var _0x2a8f5f=_0x27ce7f;return Math['random']()[_0x2a8f5f(0x1d7)](0x24)['substring'](0x2,0x8);}j[_0x27ce7f(0x1b5)]='UniverIcon';var B={'tag':_0x27ce7f(0x192),'attrs':{'fill':_0x27ce7f(0x212),'viewBox':_0x27ce7f(0x1a2),'width':_0x27ce7f(0x175),'height':_0x27ce7f(0x175)},'children':[{'tag':_0x27ce7f(0x16e),'attrs':{'fill':_0x27ce7f(0x1a8),'d':_0x27ce7f(0x1ee)}},{'tag':'path','attrs':{'fill':_0x27ce7f(0x1a8),'d':_0x27ce7f(0x1e0),'fillRule':'evenodd','clipRule':'evenodd'}}]},P=f[_0x27ce7f(0x164)](function(_0x4fc576,_0x286179){var _0x31aec6=_0x27ce7f;return f[_0x31aec6(0x14c)](j,Object[_0x31aec6(0x171)]({},_0x4fc576,{'id':_0x31aec6(0x1fe),'ref':_0x286179,'icon':B}));});P[_0x27ce7f(0x1b5)]=_0x27ce7f(0x1bb);var Y=Object[_0x27ce7f(0x19f)],R=(_0x1bf4cc,_0x30f5c9,_0x4f1deb,_0x2ba10b)=>{var _0x5aae0c=_0x27ce7f;for(var _0x5db999=_0x2ba10b>0x1?void 0x0:_0x2ba10b?Y(_0x30f5c9,_0x4f1deb):_0x30f5c9,_0x4c7b6f=_0x1bf4cc[_0x5aae0c(0x1d1)]-0x1,_0x230bb2;_0x4c7b6f>=0x0;_0x4c7b6f--)(_0x230bb2=_0x1bf4cc[_0x4c7b6f])&&(_0x5db999=_0x230bb2(_0x5db999)||_0x5db999);return _0x5db999;},S=(_0x485541,_0x4a8067)=>(_0x41893c,_0x2b54f6)=>_0x4a8067(_0x41893c,_0x2b54f6,_0x485541);exports[_0x27ce7f(0x1cc)]=class extends o[_0x27ce7f(0x15d)]{constructor(_0x11f941,_0x2a3a04,_0x18be56){var _0x57807f=_0x27ce7f;super(),v(this,_0x57807f(0x207),new Map()),(this[_0x57807f(0x1da)]=_0x11f941,this[_0x57807f(0x194)]=_0x2a3a04,this['_collabSessionService']=_0x18be56,this['_init']());}async[_0x27ce7f(0x189)](_0x8c382){var _0x3948c8=_0x27ce7f;return this[_0x3948c8(0x207)][_0x3948c8(0x170)](_0x8c382)||await this[_0x3948c8(0x21e)](_0x8c382),this['_entities'][_0x3948c8(0x1fb)](_0x8c382);}[_0x27ce7f(0x21c)](){var _0x39f8f6=_0x27ce7f;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0x39f8f6(0x14f)][_0x39f8f6(0x1a4)])[_0x39f8f6(0x149)](b['takeUntil'](this[_0x39f8f6(0x1ec)]))[_0x39f8f6(0x1d4)](async _0x1abdf4=>{var _0x100eed=_0x39f8f6;const _0x2c7f84=_0x1abdf4[_0x100eed(0x191)]();this[_0x100eed(0x207)]['has'](_0x2c7f84)||this[_0x100eed(0x21e)](_0x2c7f84);}),this[_0x39f8f6(0x1da)]['getTypeOfUnitDisposed$'](o[_0x39f8f6(0x14f)][_0x39f8f6(0x1a4)])['pipe'](b[_0x39f8f6(0x143)](this[_0x39f8f6(0x1ec)]))[_0x39f8f6(0x1d4)](_0x26100d=>{var _0x2e96d6=_0x39f8f6;const _0x340da6=_0x26100d[_0x2e96d6(0x191)](),_0x18bc03=this['_entities'][_0x2e96d6(0x1fb)](_0x340da6);_0x18bc03==null||_0x18bc03[_0x2e96d6(0x1a9)]();});}async[_0x27ce7f(0x21e)](_0xdda24){var _0x17dfa6=_0x27ce7f;const _0x47f0ff=await this['_collabSessionService']['requireSession'](_0xdda24),_0x2a2131=this[_0x17dfa6(0x194)][_0x17dfa6(0x182)](exports[_0x17dfa6(0x1b7)],_0xdda24,_0x47f0ff);return _0x2a2131[_0x17dfa6(0x1a6)](),this['_entities'][_0x17dfa6(0x1df)](_0xdda24,_0x2a2131),_0x2a2131;}},exports[_0x27ce7f(0x1cc)]=R([S(0x0,o[_0x27ce7f(0x1fd)]),S(0x1,o[_0x27ce7f(0x1bc)](o[_0x27ce7f(0x215)])),S(0x2,o[_0x27ce7f(0x1bc)](m[_0x27ce7f(0x1af)]))],exports['LiveShareController']);var h=(_0x3a6c45=>(_0x3a6c45[_0x27ce7f(0x1d6)]=_0x27ce7f(0x1d5),_0x3a6c45[_0x27ce7f(0x13f)]=_0x27ce7f(0x1f3),_0x3a6c45[_0x27ce7f(0x1e7)]=_0x27ce7f(0x14a),_0x3a6c45[_0x27ce7f(0x14e)]=_0x27ce7f(0x217),_0x3a6c45[_0x27ce7f(0x1c7)]=_0x27ce7f(0x20d),_0x3a6c45))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports['LiveShareCoordinator']=class extends o['RxDisposable']{constructor(_0x177619,_0x4d7736,_0x3a5e20,_0x55bcee,_0x11c502){var _0x2604ad=_0x27ce7f;super(),v(this,_0x2604ad(0x221),new x['BehaviorSubject'](_0x2604ad(0x1f3))),v(this,_0x2604ad(0x202),this['_status$'][_0x2604ad(0x20b)]()),v(this,'_init',!0x1),v(this,_0x2604ad(0x213),null),v(this,'_presenter',null),(this[_0x2604ad(0x19b)]=_0x177619,this['_collabSession']=_0x4d7736,this[_0x2604ad(0x195)]=_0x3a5e20,this[_0x2604ad(0x1b2)]=_0x55bcee,this[_0x2604ad(0x17b)]=_0x11c502);}get[_0x27ce7f(0x186)](){var _0x35309f=_0x27ce7f;return this['_status$'][_0x35309f(0x1bd)]();}[_0x27ce7f(0x1a9)](){var _0x411fae=_0x27ce7f,_0x4689db;(_0x4689db=this[_0x411fae(0x213)])==null||_0x4689db['dispose'](),this[_0x411fae(0x221)]['next'](_0x411fae(0x1f3)),this['_status$'][_0x411fae(0x1ab)]();}['init'](){var _0x3631c3=_0x27ce7f;this[_0x3631c3(0x21c)]||(this[_0x3631c3(0x21c)]=!0x0,this[_0x3631c3(0x1d0)][_0x3631c3(0x1b6)][_0x3631c3(0x149)](b[_0x3631c3(0x143)](this[_0x3631c3(0x1ec)]))['subscribe'](_0x3baa12=>{var _0x54febc=_0x3631c3;switch(_0x3baa12){case m[_0x54febc(0x1ad)][_0x54febc(0x1d6)]:this['_handleOffline']();break;case m['SessionStatus'][_0x54febc(0x1ba)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x3631c3(0x180)]['pipe'](b[_0x3631c3(0x143)](this[_0x3631c3(0x1ec)]))[_0x3631c3(0x1d4)](_0x575cce=>{var _0x5205bb=_0x3631c3;const {eventID:_0x5dd02b}=_0x575cce;switch(_0x5dd02b){case _[_0x5205bb(0x20a)]['LIVESHARE_NEW_HOST']:this[_0x5205bb(0x17a)](_0x575cce);break;case _['CollaborationEvent'][_0x5205bb(0x1c4)]:this[_0x5205bb(0x1dc)](_0x575cce);break;case _['CollaborationEvent'][_0x5205bb(0x201)]:this[_0x5205bb(0x18b)]();break;case _['CollaborationEvent'][_0x5205bb(0x219)]:this['_handleNewChangeSets'](_0x575cce);break;}}));}[_0x27ce7f(0x1f9)](){var _0x16e792=_0x27ce7f;this[_0x16e792(0x1d0)]['send']({'eventID':_[_0x16e792(0x20a)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x16e792(0x19b)],'userID':this[_0x16e792(0x1d0)]['getMemberID']()}},this['_unitID']);}[_0x27ce7f(0x1c6)](){var _0x4b32ca=_0x27ce7f;this[_0x4b32ca(0x186)]==='presenting'&&(this['_status$'][_0x4b32ca(0x1f8)]('idle'),this['_collabSession'][_0x4b32ca(0x1f5)]({'eventID':_[_0x4b32ca(0x20a)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x4b32ca(0x19b)]}},this[_0x4b32ca(0x19b)]));}[_0x27ce7f(0x1c0)](){var _0x4587fc=_0x27ce7f;this[_0x4587fc(0x186)]===_0x4587fc(0x217)&&(this['_status$']['next'](_0x4587fc(0x14a)),this['_startFollowing']());}[_0x27ce7f(0x148)](){var _0x39cd16=_0x27ce7f;this[_0x39cd16(0x186)]===_0x39cd16(0x14a)&&this['_stopFollowing']();}[_0x27ce7f(0x17a)](_0x1169e1){var _0x2420cb=_0x27ce7f;const {presenter:_0x4f2c20}=_0x1169e1[_0x2420cb(0x1bf)],_0x10f297=this[_0x2420cb(0x1d0)][_0x2420cb(0x181)]();this[_0x2420cb(0x160)]=_0x4f2c20,_0x4f2c20===_0x10f297?(this[_0x2420cb(0x1d3)](),this[_0x2420cb(0x15e)]()):this[_0x2420cb(0x186)]!==_0x2420cb(0x217)&&(this[_0x2420cb(0x18c)](),this[_0x2420cb(0x14d)]());}[_0x27ce7f(0x17f)](){var _0x292bf6=_0x27ce7f;const _0x2d0b01={'eventID':_[_0x292bf6(0x20a)][_0x292bf6(0x1c5)]};this[_0x292bf6(0x1d0)][_0x292bf6(0x1f5)](_0x2d0b01,this[_0x292bf6(0x19b)]);}[_0x27ce7f(0x18b)](){var _0x41e797=_0x27ce7f;this[_0x41e797(0x160)]=null,this[_0x41e797(0x186)]!==_0x41e797(0x20d)&&this[_0x41e797(0x174)]();}[_0x27ce7f(0x1c3)](_0x522b0e){var _0x43afe6=_0x27ce7f;if(this[_0x43afe6(0x186)]===_0x43afe6(0x14a)&&this[_0x43afe6(0x160)]===_0x522b0e[_0x43afe6(0x1bf)][_0x43afe6(0x173)]){const _0x156389=_['parseProtocolChangeset'](_0x522b0e[_0x43afe6(0x1bf)])[_0x43afe6(0x1eb)][_0x43afe6(0x20f)]()[_0x43afe6(0x150)](_0x4ada07=>_0x4ada07['id']===C[_0x43afe6(0x1b1)]['id']);if(_0x156389){const _0x2cdc29=_0x156389['params'][_0x43afe6(0x20e)],_0x3dc30c=_0x156389[_0x43afe6(0x1e3)]['sheet']['id'];setTimeout(()=>{var _0x58b8fd=_0x43afe6;this[_0x58b8fd(0x17b)][_0x58b8fd(0x1d2)](C[_0x58b8fd(0x1d9)]['id'],{'unitId':_0x2cdc29,'subUnitId':_0x3dc30c},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x4b0f61=_0x27ce7f;this[_0x4b0f61(0x221)][_0x4b0f61(0x1f8)](_0x4b0f61(0x20d));const _0x1a0847=new Map(),_0x13148e=this[_0x4b0f61(0x213)]=new o['DisposableCollection']();_0x13148e['add'](o[_0x4b0f61(0x21b)](()=>{var _0x1a4a67=_0x4b0f61;_0x1a0847[_0x1a4a67(0x1e8)](_0x35ff52=>_0x35ff52[_0x1a4a67(0x1ab)]()),_0x1a0847[_0x1a4a67(0x140)]();})),_0x13148e['add'](this[_0x4b0f61(0x17b)][_0x4b0f61(0x222)](_0x45fc22=>{var _0x49498a=_0x4b0f61,_0x2f6136;if(_0x45fc22[_0x49498a(0x1cb)]!==o[_0x49498a(0x1f1)]['OPERATION']||!this[_0x49498a(0x1b2)][_0x49498a(0x162)](_0x45fc22['id']))return;const {id:_0x28d1f5}=_0x45fc22;let _0x22a221;_0x1a0847[_0x49498a(0x170)](_0x28d1f5)?_0x22a221=_0x1a0847[_0x49498a(0x1fb)](_0x28d1f5):(_0x22a221=new x[(_0x49498a(0x147))](),_0x1a0847[_0x49498a(0x1df)](_0x28d1f5,_0x22a221),_0x22a221[_0x49498a(0x149)](b['throttleTime']((_0x2f6136=this['_configService']['getConfig'](Z))!=null?_0x2f6136:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x49498a(0x1d4)](_0x29aeaa=>{var _0x220185=_0x49498a;this[_0x220185(0x1d0)][_0x220185(0x1f5)]({'eventID':_[_0x220185(0x20a)][_0x220185(0x1c4)],'data':{'unitID':this[_0x220185(0x19b)],'operations':{[_0x29aeaa['id']]:{'id':_0x29aeaa['id'],'params':JSON[_0x220185(0x196)](_0x29aeaa['params'])}}}},this['_unitID']);})),_0x22a221[_0x49498a(0x1f8)](_0x45fc22);})),this[_0x4b0f61(0x1b2)][_0x4b0f61(0x21f)](this['_unitID'])[_0x4b0f61(0x1e8)](_0x3d0c00=>this['_collabSession'][_0x4b0f61(0x1f5)]({'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4b0f61(0x19b)],'operations':{[_0x3d0c00['id']]:{'id':_0x3d0c00['id'],'params':JSON['stringify'](_0x3d0c00['params'])}}}},this[_0x4b0f61(0x19b)]));}[_0x27ce7f(0x18c)](){var _0x2d4a53=_0x27ce7f,_0x3a95b4;this['_status$'][_0x2d4a53(0x1f8)](_0x2d4a53(0x1f3)),(_0x3a95b4=this['_commandDisposable'])==null||_0x3a95b4['dispose'](),this[_0x2d4a53(0x213)]=null;}[_0x27ce7f(0x14d)](){var _0x3febf0=_0x27ce7f,_0x3b0ee8;(_0x3b0ee8=this['_commandDisposable'])==null||_0x3b0ee8['dispose'](),this[_0x3febf0(0x221)][_0x3febf0(0x1f8)](_0x3febf0(0x14a));}[_0x27ce7f(0x174)](){var _0x20210b=_0x27ce7f,_0x35899a;this['_status$'][_0x20210b(0x1f8)](_0x20210b(0x1f3)),(_0x35899a=this[_0x20210b(0x213)])==null||_0x35899a['dispose'](),this[_0x20210b(0x213)]=null;}[_0x27ce7f(0x1d3)](){var _0x22bb56=_0x27ce7f,_0xdfd744;this[_0x22bb56(0x221)][_0x22bb56(0x1f8)](_0x22bb56(0x217)),(_0xdfd744=this[_0x22bb56(0x213)])==null||_0xdfd744[_0x22bb56(0x1a9)]();}[_0x27ce7f(0x1dc)](_0x5ef43f){var _0x512bd1=_0x27ce7f;if([_0x512bd1(0x20d),_0x512bd1(0x217),_0x512bd1(0x1d5)]['includes'](this[_0x512bd1(0x186)])||!_0x5ef43f[_0x512bd1(0x1bf)][_0x512bd1(0x1c2)]||_0x5ef43f[_0x512bd1(0x1bf)][_0x512bd1(0x1c2)]===this['_collabSession']['getMemberID']())return;this['_status']===_0x512bd1(0x1f3)&&this['_startFollowing']();const _0x4b2bc5=_0x5ef43f['data'][_0x512bd1(0x1ce)];Object[_0x512bd1(0x205)](_0x4b2bc5)[_0x512bd1(0x1e8)](_0x1d286d=>{var _0x493d41=_0x512bd1;this['_commandService'][_0x493d41(0x1d2)](_0x1d286d['id'],_0x1d286d['params']?JSON[_0x493d41(0x145)](_0x1d286d[_0x493d41(0x1e3)]):null,{'fromCollab':!0x0});});}[_0x27ce7f(0x206)](){var _0x241ae2=_0x27ce7f,_0x347852;this[_0x241ae2(0x221)][_0x241ae2(0x1f8)](_0x241ae2(0x1d5)),(_0x347852=this['_commandDisposable'])==null||_0x347852[_0x241ae2(0x1a9)]();}[_0x27ce7f(0x209)](){var _0x25b0b0=_0x27ce7f;this[_0x25b0b0(0x221)][_0x25b0b0(0x1f8)](_0x25b0b0(0x1f3)),this['_fetchOperations']();}},exports[_0x27ce7f(0x1b7)]=R([S(0x2,o[_0x27ce7f(0x1f4)]),S(0x3,o['Inject'](E)),S(0x4,o['ICommandService'])],exports['LiveShareCoordinator']);function A(){var _0x9f1b47=_0x27ce7f;const _0x4e7093=p['useDependency'](exports[_0x9f1b47(0x1cc)]),_0x27ea5e=p[_0x9f1b47(0x1c9)](o[_0x9f1b47(0x1fd)]),_0x268e1d=p[_0x9f1b47(0x152)](()=>_0x27ea5e[_0x9f1b47(0x161)](o['UniverInstanceType'][_0x9f1b47(0x1a4)]),void 0x0,!0x1,[]),[_0x1ca268,_0x5e08b2]=f[_0x9f1b47(0x21d)](null),[_0x4c3270,_0x1c352e]=f['useState'](h[_0x9f1b47(0x13f)]),_0x451fe1=f[_0x9f1b47(0x16f)](null);return f[_0x9f1b47(0x199)](()=>(_0x268e1d&&_0x4e7093['getLiveShareCoordinator'](_0x268e1d[_0x9f1b47(0x191)]())[_0x9f1b47(0x19d)](_0x5a5c83=>{var _0x19870f=_0x9f1b47;_0x5e08b2(_0x5a5c83),_0x451fe1[_0x19870f(0x21a)]=_0x5a5c83[_0x19870f(0x202)][_0x19870f(0x1d4)](_0x2b05a5=>{_0x1c352e(_0x2b05a5);});}),()=>{var _0xca9af9=_0x9f1b47,_0x5b5e1f;(_0x5b5e1f=_0x451fe1[_0xca9af9(0x21a)])==null||_0x5b5e1f[_0xca9af9(0x1b3)](),_0x451fe1[_0xca9af9(0x21a)]=null;}),[_0x268e1d,_0x4e7093]),_0x1ca268?l[_0x9f1b47(0x16a)](g[_0x9f1b47(0x16c)],{'align':_0x9f1b47(0x1a0),'disabled':_0x4c3270===h[_0x9f1b47(0x1d6)],'className':_0x9f1b47(0x17d),'overlay':l[_0x9f1b47(0x16a)](K,{'status':_0x4c3270,'coordinator':_0x1ca268}),'children':l[_0x9f1b47(0x16a)](_0x9f1b47(0x142),{'className':g[_0x9f1b47(0x18a)](_0x9f1b47(0x1e6),{'univer-cursor-not-allowed':_0x4c3270===h[_0x9f1b47(0x1d6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4c3270!==h[_0x9f1b47(0x1d6)]}),'type':_0x9f1b47(0x142),'children':l[_0x9f1b47(0x16a)](P,{'className':_0x9f1b47(0x1aa)})})}):null;}function K(_0x96190c){var _0x432105=_0x27ce7f;const {status:_0x1e476e,coordinator:_0x204902}=_0x96190c;switch(_0x1e476e){case h['IDLE']:return l[_0x432105(0x16a)](z,{'coordinator':_0x204902});case h['FOLLOWING']:return l[_0x432105(0x16a)](Q,{'coordinator':_0x204902});case h['NOT_FOLLOWING']:return l[_0x432105(0x16a)](X,{'coordinator':_0x204902});case h[_0x432105(0x1d6)]:return l[_0x432105(0x16a)](te,{});case h[_0x432105(0x1c7)]:return l[_0x432105(0x16a)](ee,{'coordinator':_0x204902});default:return null;}}function z(_0x383eee){var _0x4c0bdb=_0x27ce7f;const {coordinator:_0xb080b3}=_0x383eee;return l[_0x4c0bdb(0x1e2)](l['Fragment'],{'children':[l[_0x4c0bdb(0x16a)](_0x4c0bdb(0x169),{'className':_0x4c0bdb(0x1e5),'children':_0x4c0bdb(0x168)}),l['jsx'](g[_0x4c0bdb(0x1dd)],{'onClick':()=>_0xb080b3['tryStartPresenting'](),'children':_0x4c0bdb(0x144)})]});}function Q(_0x3624a8){var _0x3b713d=_0x27ce7f;const {coordinator:_0x1d0fc6}=_0x3624a8;return l[_0x3b713d(0x1e2)](l[_0x3b713d(0x184)],{'children':[l['jsx'](_0x3b713d(0x169),{'className':_0x3b713d(0x1e5),'children':_0x3b713d(0x1de)}),l[_0x3b713d(0x16a)](g[_0x3b713d(0x1dd)],{'onClick':()=>_0x1d0fc6[_0x3b713d(0x148)](),'children':_0x3b713d(0x13e)})]});}function X(_0x1bfd23){var _0x35ef94=_0x27ce7f;const {coordinator:_0xb0ed8e}=_0x1bfd23;return l['jsxs'](l[_0x35ef94(0x184)],{'children':[l[_0x35ef94(0x16a)](_0x35ef94(0x169),{'className':_0x35ef94(0x1e5),'children':_0x35ef94(0x1be)}),l[_0x35ef94(0x16a)](g[_0x35ef94(0x1dd)],{'variant':_0x35ef94(0x15b),'onClick':()=>_0xb0ed8e[_0x35ef94(0x1c0)](),'children':_0x35ef94(0x1e1)})]});}function ee(_0x5205be){var _0x20269f=_0x27ce7f;const {coordinator:_0x4230e3}=_0x5205be;return l[_0x20269f(0x1e2)](l[_0x20269f(0x184)],{'children':[l[_0x20269f(0x16a)](_0x20269f(0x169),{'className':_0x20269f(0x1e5),'children':_0x20269f(0x172)}),l[_0x20269f(0x16a)](g[_0x20269f(0x1dd)],{'variant':'default','onClick':()=>_0x4230e3[_0x20269f(0x1c6)](),'children':'Stop\x20presenting'})]});}function te(){var _0x20c59d=_0x27ce7f;return l[_0x20c59d(0x16a)](l[_0x20c59d(0x184)],{'children':_0x20c59d(0x19a)});}var ie=Object[_0x27ce7f(0x19f)],ne=(_0xd90009,_0x57d71d,_0x579ce4,_0x4be8c6)=>{for(var _0x17f739=_0x4be8c6>0x1?void 0x0:_0x4be8c6?ie(_0x57d71d,_0x579ce4):_0x57d71d,_0x24c21a=_0xd90009['length']-0x1,_0x3291e6;_0x24c21a>=0x0;_0x24c21a--)(_0x3291e6=_0xd90009[_0x24c21a])&&(_0x17f739=_0x3291e6(_0x17f739)||_0x17f739);return _0x17f739;},N=(_0x29f3f8,_0x3cc93c)=>(_0x54852a,_0x246af3)=>_0x3cc93c(_0x54852a,_0x246af3,_0x29f3f8);function _0x2ee7(){var _0x4db418=['LIVESHARE_OPERATION','LIVESHARE_FETCH_OPERATIONS','stopPresenting','PRESENTING','symbol','useDependency','onRendered','type','LiveShareController','837339AvNSTd','operations','1915016qCWoet','_collabSession','length','executeCommand','_stopFollowing','subscribe','offline','OFFLINE','toString','tag','SetWorksheetActiveOperation','_univerInstanceService','connectInjector','_handleOperation','Button','You\x27re\x20following\x20the\x20presenter','set','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','Start\x20following','jsxs','params','propertyIsEnumerable','univer-w-full\x20univer-mb-3\x20univer-text-sm','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','FOLLOWING','forEach','mergeOverrideWithDependencies','LiveShareStatus','mutations','dispose$','colorChannel1','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','map','getOwnPropertySymbols','CommandType','defIds','idle','IConfigService','send','override','DesktopLiveShareController','next','tryStartPresenting','rxjs','get','univerjs-icon\x20univerjs-icon-','IUniverInstanceService','live-share-single','concat','290540vxkHKM','LIVESHARE_TERMINATE','status$','56TPAvkE','idSuffix','values','_handleOffline','_entities','className','_handleOnline','CollaborationEvent','asObservable','defs','presenting','unitId','reverse','disposeWithMe','UniverCollaborationClientPlugin','none','_commandDisposable','registerSharedOperation','Injector','merge','not-following','1086kohTKz','NEW_CHANGESETS','current','toDisposable','_init','useState','_startLiveShareCoordinator','getInitialStates','from','_status$','onCommandExecuted','DependentOn','pluginName','Stop\x20following','IDLE','clear','icon','button','takeUntil','Start','parse','registerDependencies','Subject','stopFollowing','pipe','following','4maPyCG','createElement','_startFollowing','NOT_FOLLOWING','UniverInstanceType','find','react/jsx-runtime','useObservable','indexOf','UNIVER_UNKNOWN','apply','replace','_mountLiveShare','live-share.config','@univerjs-pro/collaboration','delete','text','react','RxDisposable','_startPresenting','onStarting','_presenter','getCurrentTypeOfUnit$','shouldShareOperation','2065EQjqGO','forwardRef','prototype','Disposable','Module','Present\x20this\x20document','div','jsx','call','Dropdown','entries','path','useRef','has','assign','You\x27re\x20presenting\x20the\x20document','memberID','_beIdle','1em','xlink:href','children','8358zDfoWm','extend','_handleNewHost','_commandService','UNIVER_LIVE_SHARE_PLUGIN','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','hasOwnProperty','_fetchOperations','event$','getMemberID','createInstance','@univerjs/ui','Fragment','106hxjGbr','_status','27lJaZRb','_sharedOperations','getLiveShareCoordinator','clsx','_handleTerminate','_stopPresenting','string','_uiPartsService','url(#$1','@univerjs-pro/collaboration-client','getUnitId','svg','4215266ZKskRF','_injector','_configService','stringify','fill','touchDependencies','useEffect','You\x27are\x20offline.','_unitID','setConfig','then','_config','getOwnPropertyDescriptor','end','LiveShare','0\x200\x2016\x2016','BuiltInUIPart','UNIVER_SHEET','HEADER_MENU','init','add','currentColor','dispose','univer-size-4','complete','attrs','SessionStatus','UniverLiveSharePlugin','CollaborationSessionService','IUIPartsService','InsertSheetMutation','_liveShareService','unsubscribe','_reporters','displayName','sessionStatus$','LiveShareCoordinator','defineProperty','toStringTag','ONLINE','LiveShareSingle','Inject','getValue','You\x27re\x20not\x20following\x20the\x20presenter','data','startFollowing','@univerjs/core','presenter','_handleNewChangeSets'];_0x2ee7=function(){return _0x4db418;};return _0x2ee7();}exports['DesktopLiveShareController']=class extends o[_0x27ce7f(0x166)]{constructor(_0x3dae27,_0x147e11){var _0x475c44=_0x27ce7f;super(),this[_0x475c44(0x194)]=_0x3dae27,this['_uiPartsService']=_0x147e11,this['_mountLiveShare']();}[_0x27ce7f(0x157)](){var _0x1259cd=_0x27ce7f;this[_0x1259cd(0x210)](this[_0x1259cd(0x18e)]['registerComponent'](p[_0x1259cd(0x1a3)][_0x1259cd(0x1a5)],()=>p[_0x1259cd(0x1db)](A,this['_injector'])));}},exports[_0x27ce7f(0x1f7)]=ne([N(0x0,o['Inject'](o[_0x27ce7f(0x215)])),N(0x1,p[_0x27ce7f(0x1b0)])],exports['DesktopLiveShareController']);var re=Object['defineProperty'],se=Object[_0x27ce7f(0x19f)],oe=(_0x2d3187,_0x33a0ba,_0x1b7ec4)=>_0x33a0ba in _0x2d3187?re(_0x2d3187,_0x33a0ba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b7ec4}):_0x2d3187[_0x33a0ba]=_0x1b7ec4,ae=(_0x3285c3,_0x16c0ad,_0x3ef5d9,_0x4eec7f)=>{for(var _0x5fc715=_0x4eec7f>0x1?void 0x0:_0x4eec7f?se(_0x16c0ad,_0x3ef5d9):_0x16c0ad,_0x233a60=_0x3285c3['length']-0x1,_0x29e4a2;_0x233a60>=0x0;_0x233a60--)(_0x29e4a2=_0x3285c3[_0x233a60])&&(_0x5fc715=_0x29e4a2(_0x5fc715)||_0x5fc715);return _0x5fc715;},w=(_0x4d7643,_0x464c42)=>(_0x2cecf1,_0x214330)=>_0x464c42(_0x2cecf1,_0x214330,_0x4d7643),T=(_0xd2de8a,_0x24fd33,_0x1c0a1c)=>oe(_0xd2de8a,typeof _0x24fd33!=_0x27ce7f(0x1c8)?_0x24fd33+'':_0x24fd33,_0x1c0a1c);function _0xc178(_0x141cac,_0x57b52c){var _0x2ee758=_0x2ee7();return _0xc178=function(_0xc1789b,_0x3c7bb8){_0xc1789b=_0xc1789b-0x13e;var _0x22cb69=_0x2ee758[_0xc1789b];return _0x22cb69;},_0xc178(_0x141cac,_0x57b52c);}const le=_0x27ce7f(0x17c);exports[_0x27ce7f(0x1ae)]=class extends o['Plugin']{constructor(_0x5b06ee=L,_0x5bfe6d,_0x151674){var _0x418522=_0x27ce7f;super(),this[_0x418522(0x19e)]=_0x5b06ee,this['_injector']=_0x5bfe6d,this[_0x418522(0x195)]=_0x151674;const {..._0x1af75a}=o[_0x418522(0x216)]({},L,this[_0x418522(0x19e)]);this[_0x418522(0x195)][_0x418522(0x19c)]($,_0x1af75a);}[_0x27ce7f(0x15f)](){var _0x387aef=_0x27ce7f;o[_0x387aef(0x146)](this[_0x387aef(0x194)],o[_0x387aef(0x1e9)]([[E],[exports['LiveShareController']],[O],[exports[_0x387aef(0x1f7)]]],this['_config'][_0x387aef(0x1f6)])),o[_0x387aef(0x198)](this[_0x387aef(0x194)],[[O]]);}[_0x27ce7f(0x1ca)](){var _0x10a7d8=_0x27ce7f;o[_0x10a7d8(0x198)](this[_0x10a7d8(0x194)],[[exports[_0x10a7d8(0x1f7)]]]);}},T(exports[_0x27ce7f(0x1ae)],_0x27ce7f(0x1cb),o['UniverInstanceType'][_0x27ce7f(0x154)]),T(exports['UniverLiveSharePlugin'],_0x27ce7f(0x224),le),exports['UniverLiveSharePlugin']=ae([o[_0x27ce7f(0x223)](m[_0x27ce7f(0x211)]),w(0x1,o[_0x27ce7f(0x1bc)](o[_0x27ce7f(0x215)])),w(0x2,o[_0x27ce7f(0x1f4)])],exports[_0x27ce7f(0x1ae)]),exports[_0x27ce7f(0x1a1)]=A,exports['LiveShareService']=E,exports[_0x27ce7f(0x1ea)]=h;
|
|
1
|
+
'use strict';var _0x372f15=_0x25b5;(function(_0x39838e,_0x2168ce){var _0xa5f2bf=_0x25b5,_0x3e4875=_0x39838e();while(!![]){try{var _0x598012=-parseInt(_0xa5f2bf(0x1ed))/0x1+parseInt(_0xa5f2bf(0x1b0))/0x2+-parseInt(_0xa5f2bf(0x1c2))/0x3+parseInt(_0xa5f2bf(0x1cf))/0x4*(parseInt(_0xa5f2bf(0x12a))/0x5)+-parseInt(_0xa5f2bf(0x12c))/0x6+parseInt(_0xa5f2bf(0x1a7))/0x7*(parseInt(_0xa5f2bf(0x11d))/0x8)+-parseInt(_0xa5f2bf(0x1b7))/0x9;if(_0x598012===_0x2168ce)break;else _0x3e4875['push'](_0x3e4875['shift']());}catch(_0x477ece){_0x3e4875['push'](_0x3e4875['shift']());}}}(_0x2a23,0x1f10d));var U=Object[_0x372f15(0x119)],F=(_0xf968a5,_0x135272,_0x54b42d)=>_0x135272 in _0xf968a5?U(_0xf968a5,_0x135272,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54b42d}):_0xf968a5[_0x135272]=_0x54b42d,v=(_0x56e8a1,_0x2b4a11,_0x151c31)=>F(_0x56e8a1,typeof _0x2b4a11!=_0x372f15(0x1dd)?_0x2b4a11+'':_0x2b4a11,_0x151c31);Object[_0x372f15(0x119)](exports,Symbol[_0x372f15(0x18b)],{'value':_0x372f15(0x14e)});const m=require(_0x372f15(0x134)),o=require(_0x372f15(0x144)),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require(_0x372f15(0x1b3)),l=require(_0x372f15(0x15a)),g=require(_0x372f15(0x17b)),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require(_0x372f15(0x1f7)),b=require('rxjs/operators'),$=_0x372f15(0x13c),x={};class O extends o[_0x372f15(0x1d5)]{constructor(){var _0x1b4172=_0x372f15;super(...arguments),v(this,_0x1b4172(0x1a2),new Set()),v(this,'_reporters',new Set());}[_0x372f15(0x15f)](_0x477780){var _0x199dea=_0x372f15;return this['_sharedOperations'][_0x199dea(0x122)](_0x477780),o[_0x199dea(0x1a1)](()=>this['_sharedOperations']['delete'](_0x477780));}['registerInitialStateReporter'](_0x27164c){var _0x1edbe7=_0x372f15;return this[_0x1edbe7(0x1f1)][_0x1edbe7(0x122)](_0x27164c),o['toDisposable'](()=>this[_0x1edbe7(0x1f1)][_0x1edbe7(0x180)](_0x27164c));}[_0x372f15(0x1df)](_0x766cf8){var _0x157358=_0x372f15;return this[_0x157358(0x1a2)][_0x157358(0x1c1)](_0x766cf8);}[_0x372f15(0x16b)](_0x5a4f08){var _0x43124a=_0x372f15;return Array['from'](this[_0x43124a(0x1f1)])[_0x43124a(0x132)](_0x3addf5=>_0x3addf5(_0x5a4f08));}}var H=Object[_0x372f15(0x125)],V=(_0x2ea4c5,_0x5470af,_0x44c7a3,_0x2925be)=>{var _0x41e882=_0x372f15;for(var _0x312f58=_0x2925be>0x1?void 0x0:_0x2925be?H(_0x5470af,_0x44c7a3):_0x5470af,_0x3a3adc=_0x2ea4c5[_0x41e882(0x194)]-0x1,_0x36531c;_0x3a3adc>=0x0;_0x3a3adc--)(_0x36531c=_0x2ea4c5[_0x3a3adc])&&(_0x312f58=_0x36531c(_0x312f58)||_0x312f58);return _0x312f58;},k=(_0x2c99ca,_0x2181cc)=>(_0x250769,_0xa29cab)=>_0x2181cc(_0x250769,_0xa29cab,_0x2c99ca);let E=class extends o[_0x372f15(0x1d5)]{constructor(_0x4c1b60){var _0x2db2f1=_0x372f15;super(),this[_0x2db2f1(0x189)]=_0x4c1b60,this[_0x2db2f1(0x12b)]();}['_init'](){var _0xda8691=_0x372f15;[w[_0xda8691(0x15b)]['id'],w['SetScrollOperation']['id'],C[_0xda8691(0x1b5)]['id']][_0xda8691(0x183)](_0x5badc3=>{var _0x235ba8=_0xda8691;this[_0x235ba8(0x162)](this[_0x235ba8(0x189)]['registerSharedOperation'](_0x5badc3));});}};E=V([k(0x0,o[_0x372f15(0x1ca)](O))],E);var u=function(){var _0x5431aa=_0x372f15;return u=Object['assign']||function(_0x118b04){var _0x4936ee=_0x25b5;for(var _0x3dbafc,_0x8dddf3=0x1,_0x383566=arguments[_0x4936ee(0x194)];_0x8dddf3<_0x383566;_0x8dddf3++){_0x3dbafc=arguments[_0x8dddf3];for(var _0x1638e7 in _0x3dbafc)Object['prototype'][_0x4936ee(0x157)][_0x4936ee(0x1ae)](_0x3dbafc,_0x1638e7)&&(_0x118b04[_0x1638e7]=_0x3dbafc[_0x1638e7]);}return _0x118b04;},u[_0x5431aa(0x168)](this,arguments);},M=function(_0x16c553,_0x1ff53d){var _0x35d310=_0x372f15,_0xe8b5c6={};for(var _0x2a6ef4 in _0x16c553)Object[_0x35d310(0x1d4)][_0x35d310(0x157)][_0x35d310(0x1ae)](_0x16c553,_0x2a6ef4)&&_0x1ff53d['indexOf'](_0x2a6ef4)<0x0&&(_0xe8b5c6[_0x2a6ef4]=_0x16c553[_0x2a6ef4]);if(_0x16c553!=null&&typeof Object[_0x35d310(0x127)]==_0x35d310(0x13e)){for(var _0x111975=0x0,_0x2a6ef4=Object[_0x35d310(0x127)](_0x16c553);_0x111975<_0x2a6ef4[_0x35d310(0x194)];_0x111975++)_0x1ff53d[_0x35d310(0x1d1)](_0x2a6ef4[_0x111975])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x35d310(0x1ae)](_0x16c553,_0x2a6ef4[_0x111975])&&(_0xe8b5c6[_0x2a6ef4[_0x111975]]=_0x16c553[_0x2a6ef4[_0x111975]]);}return _0xe8b5c6;},j=f[_0x372f15(0x192)](function(_0x413b26,_0x34aa16){var _0x26bb5d=_0x372f15,_0x26c8fd=_0x413b26[_0x26bb5d(0x17e)],_0x1fa1e2=_0x413b26['id'],_0x1965ac=_0x413b26[_0x26bb5d(0x1d8)],_0x5493f6=_0x413b26['extend'],_0x14a862=M(_0x413b26,[_0x26bb5d(0x17e),'id',_0x26bb5d(0x1d8),_0x26bb5d(0x14d)]),_0x167ccf=_0x26bb5d(0x1be)['concat'](_0x1fa1e2,'\x20')['concat'](_0x1965ac||'')[_0x26bb5d(0x1b1)](),_0x5939ba=f[_0x26bb5d(0x19b)]('_'[_0x26bb5d(0x12e)](G()));return y(_0x26c8fd,''[_0x26bb5d(0x12e)](_0x1fa1e2),{'defIds':_0x26c8fd[_0x26bb5d(0x1c6)],'idSuffix':_0x5939ba['current']},u({'ref':_0x34aa16,'className':_0x167ccf},_0x14a862),_0x5493f6);});function y(_0x5ebe97,_0x3beba1,_0x559267,_0x3eb416,_0xc8e520){var _0x41b64d=_0x372f15;return f[_0x41b64d(0x14a)](_0x5ebe97[_0x41b64d(0x1ee)],u(u({'key':_0x3beba1},q(_0x5ebe97,_0x559267,_0xc8e520)),_0x3eb416),(W(_0x5ebe97,_0x559267)[_0x41b64d(0x1a0)]||[])[_0x41b64d(0x132)](function(_0x4f9dc2,_0x5dd18a){var _0x3fb7c5=_0x41b64d;return y(_0x4f9dc2,''[_0x3fb7c5(0x12e)](_0x3beba1,'-')[_0x3fb7c5(0x12e)](_0x5ebe97[_0x3fb7c5(0x1ee)],'-')['concat'](_0x5dd18a),_0x559267,void 0x0,_0xc8e520);}));}function q(_0x8e727b,_0x4c2f50,_0x455c28){var _0x4ed49c=_0x372f15,_0x128ad9=u({},_0x8e727b[_0x4ed49c(0x159)]);_0x455c28!=null&&_0x455c28[_0x4ed49c(0x1c8)]&&_0x128ad9['fill']===_0x4ed49c(0x1c8)&&(_0x128ad9[_0x4ed49c(0x199)]=_0x455c28['colorChannel1']),_0x8e727b[_0x4ed49c(0x1ee)]===_0x4ed49c(0x114)&&_0x128ad9['id']&&(_0x128ad9['id']=_0x128ad9['id']+_0x4c2f50[_0x4ed49c(0x1fd)]),Object[_0x4ed49c(0x19f)](_0x128ad9)[_0x4ed49c(0x183)](function(_0x51d04f){var _0x5ec5ca=_0x4ed49c,_0x4b9e04=_0x51d04f[0x0],_0x2c9798=_0x51d04f[0x1];_0x4b9e04===_0x5ec5ca(0x114)&&typeof _0x2c9798==_0x5ec5ca(0x176)&&(_0x128ad9[_0x4b9e04]=_0x2c9798[_0x5ec5ca(0x136)](/url\(#(.*)\)/,_0x5ec5ca(0x1b6)[_0x5ec5ca(0x12e)](_0x4c2f50['idSuffix'],')')));});var _0x472f11=_0x4c2f50['defIds'];return!_0x472f11||_0x472f11[_0x4ed49c(0x194)]===0x0||(_0x8e727b[_0x4ed49c(0x1ee)]==='use'&&_0x128ad9[_0x4ed49c(0x116)]&&(_0x128ad9[_0x4ed49c(0x116)]=_0x128ad9[_0x4ed49c(0x116)]+_0x4c2f50[_0x4ed49c(0x1fd)]),Object[_0x4ed49c(0x19f)](_0x128ad9)[_0x4ed49c(0x183)](function(_0x4f9850){var _0x129192=_0x4ed49c,_0x26c3c4=_0x4f9850[0x0],_0x2cd455=_0x4f9850[0x1];typeof _0x2cd455=='string'&&(_0x128ad9[_0x26c3c4]=_0x2cd455[_0x129192(0x136)](/url\(#(.*)\)/,_0x129192(0x1b6)[_0x129192(0x12e)](_0x4c2f50[_0x129192(0x1fd)],')')));})),_0x128ad9;}function W(_0x30d35a,_0x58b4f9){var _0x4eacb1=_0x372f15,_0x50e723,_0x5187c7=_0x58b4f9[_0x4eacb1(0x1c6)];return!_0x5187c7||_0x5187c7[_0x4eacb1(0x194)]===0x0?_0x30d35a:_0x30d35a[_0x4eacb1(0x1ee)]===_0x4eacb1(0x1c4)&&(!((_0x50e723=_0x30d35a[_0x4eacb1(0x1a0)])===null||_0x50e723===void 0x0)&&_0x50e723[_0x4eacb1(0x194)])?u(u({},_0x30d35a),{'children':_0x30d35a[_0x4eacb1(0x1a0)][_0x4eacb1(0x132)](function(_0xfcfce6){var _0x3f81de=_0x4eacb1;return typeof _0xfcfce6[_0x3f81de(0x159)]['id']=='string'&&_0x5187c7&&_0x5187c7[_0x3f81de(0x17a)](_0xfcfce6[_0x3f81de(0x159)]['id'])?u(u({},_0xfcfce6),{'attrs':u(u({},_0xfcfce6[_0x3f81de(0x159)]),{'id':_0xfcfce6['attrs']['id']+_0x58b4f9[_0x3f81de(0x1fd)]})}):_0xfcfce6;})}):_0x30d35a;}function G(){var _0x236e84=_0x372f15;return Math[_0x236e84(0x1fa)]()['toString'](0x24)[_0x236e84(0x1b4)](0x2,0x8);}j[_0x372f15(0x1d3)]=_0x372f15(0x12d);var B={'tag':_0x372f15(0x190),'attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x372f15(0x1ad),'viewBox':_0x372f15(0x16d),'width':_0x372f15(0x17f),'height':_0x372f15(0x17f)},'children':[{'tag':_0x372f15(0x1f3),'attrs':{'fill':'currentColor','d':_0x372f15(0x197)}},{'tag':'path','attrs':{'fill':_0x372f15(0x15c),'d':_0x372f15(0x196),'fillRule':_0x372f15(0x1e7),'clipRule':_0x372f15(0x1e7)}}]},P=f[_0x372f15(0x192)](function(_0x4090fe,_0x2becac){var _0x266afc=_0x372f15;return f[_0x266afc(0x14a)](j,Object[_0x266afc(0x13b)]({},_0x4090fe,{'id':_0x266afc(0x187),'ref':_0x2becac,'icon':B}));});P[_0x372f15(0x1d3)]=_0x372f15(0x174);var Y=Object['getOwnPropertyDescriptor'],R=(_0x19634e,_0xcfea94,_0x14abfc,_0x3e3239)=>{var _0x4480bd=_0x372f15;for(var _0x57f258=_0x3e3239>0x1?void 0x0:_0x3e3239?Y(_0xcfea94,_0x14abfc):_0xcfea94,_0x3f8ade=_0x19634e[_0x4480bd(0x194)]-0x1,_0x11df55;_0x3f8ade>=0x0;_0x3f8ade--)(_0x11df55=_0x19634e[_0x3f8ade])&&(_0x57f258=_0x11df55(_0x57f258)||_0x57f258);return _0x57f258;},S=(_0xc8f1e7,_0x5b3062)=>(_0x3243b1,_0x19aef1)=>_0x5b3062(_0x3243b1,_0x19aef1,_0xc8f1e7);exports[_0x372f15(0x117)]=class extends o['RxDisposable']{constructor(_0x178812,_0x4f1e21,_0x2d5ff6){var _0x6f1e55=_0x372f15;super(),v(this,_0x6f1e55(0x1e1),new Map()),(this['_univerInstanceService']=_0x178812,this[_0x6f1e55(0x1cc)]=_0x4f1e21,this[_0x6f1e55(0x1f6)]=_0x2d5ff6,this['_init']());}async['getLiveShareCoordinator'](_0x52c0b2){var _0x1d1283=_0x372f15;return this[_0x1d1283(0x1e1)][_0x1d1283(0x1c1)](_0x52c0b2)||await this['_startLiveShareCoordinator'](_0x52c0b2),this[_0x1d1283(0x1e1)][_0x1d1283(0x130)](_0x52c0b2);}['_init'](){var _0x354aba=_0x372f15;this[_0x354aba(0x175)][_0x354aba(0x1e0)](o[_0x354aba(0x1f9)][_0x354aba(0x1e5)])[_0x354aba(0x1e6)](b['takeUntil'](this[_0x354aba(0x14b)]))[_0x354aba(0x18f)](async _0x4ed584=>{var _0x2c4186=_0x354aba;const _0x339cc0=_0x4ed584[_0x2c4186(0x1ab)]();this['_entities'][_0x2c4186(0x1c1)](_0x339cc0)||this[_0x2c4186(0x137)](_0x339cc0);}),this[_0x354aba(0x175)]['getTypeOfUnitDisposed$'](o['UniverInstanceType'][_0x354aba(0x1e5)])[_0x354aba(0x1e6)](b['takeUntil'](this[_0x354aba(0x14b)]))[_0x354aba(0x18f)](_0x401d8c=>{var _0x4d7d56=_0x354aba;const _0x105d2e=_0x401d8c[_0x4d7d56(0x1ab)](),_0x476bc6=this[_0x4d7d56(0x1e1)][_0x4d7d56(0x130)](_0x105d2e);_0x476bc6==null||_0x476bc6[_0x4d7d56(0x16f)]();});}async[_0x372f15(0x137)](_0x294b34){var _0x5b2b6f=_0x372f15;const _0x184027=await this['_collabSessionService'][_0x5b2b6f(0x158)](_0x294b34),_0x7574f1=this[_0x5b2b6f(0x1cc)][_0x5b2b6f(0x14c)](exports[_0x5b2b6f(0x18e)],_0x294b34,_0x184027);return _0x7574f1[_0x5b2b6f(0x17c)](),this[_0x5b2b6f(0x1e1)]['set'](_0x294b34,_0x7574f1),_0x7574f1;}},exports['LiveShareController']=R([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x372f15(0x1ca)](o[_0x372f15(0x13d)])),S(0x2,o[_0x372f15(0x1ca)](m[_0x372f15(0x151)]))],exports['LiveShareController']);var h=(_0x417a15=>(_0x417a15[_0x372f15(0x1a4)]=_0x372f15(0x155),_0x417a15[_0x372f15(0x170)]=_0x372f15(0x128),_0x417a15[_0x372f15(0x11b)]='following',_0x417a15[_0x372f15(0x19e)]=_0x372f15(0x191),_0x417a15[_0x372f15(0x165)]=_0x372f15(0x160),_0x417a15))(h||{});const Z=_0x372f15(0x141),J=0xc8;exports[_0x372f15(0x18e)]=class extends o['RxDisposable']{constructor(_0x156014,_0x4b9f6d,_0x3880dd,_0x169337,_0x35c7fe){var _0xf1d2e2=_0x372f15;super(),v(this,_0xf1d2e2(0x193),new D[(_0xf1d2e2(0x182))](_0xf1d2e2(0x128))),v(this,_0xf1d2e2(0x1bf),this[_0xf1d2e2(0x193)][_0xf1d2e2(0x12f)]()),v(this,'_init',!0x1),v(this,_0xf1d2e2(0x1c9),null),v(this,_0xf1d2e2(0x1cd),null),(this[_0xf1d2e2(0x150)]=_0x156014,this[_0xf1d2e2(0x1ef)]=_0x4b9f6d,this[_0xf1d2e2(0x19c)]=_0x3880dd,this[_0xf1d2e2(0x189)]=_0x169337,this[_0xf1d2e2(0x16e)]=_0x35c7fe);}get[_0x372f15(0x177)](){var _0x56bad7=_0x372f15;return this[_0x56bad7(0x193)][_0x56bad7(0x188)]();}[_0x372f15(0x16f)](){var _0x4e4386=_0x372f15,_0x56f8fd;(_0x56f8fd=this[_0x4e4386(0x1c9)])==null||_0x56f8fd[_0x4e4386(0x16f)](),this['_status$']['next'](_0x4e4386(0x128)),this['_status$']['complete']();}[_0x372f15(0x17c)](){var _0x27d257=_0x372f15;this['_init']||(this[_0x27d257(0x12b)]=!0x0,this['_collabSession'][_0x27d257(0x1ba)][_0x27d257(0x1e6)](b[_0x27d257(0x181)](this[_0x27d257(0x14b)]))[_0x27d257(0x18f)](_0x3ce05a=>{var _0x26ffe9=_0x27d257;switch(_0x3ce05a){case m[_0x26ffe9(0x164)][_0x26ffe9(0x1a4)]:this['_handleOffline']();break;case m[_0x26ffe9(0x164)][_0x26ffe9(0x1ec)]:this[_0x26ffe9(0x1bd)]();break;}}),this[_0x27d257(0x1ef)]['event$'][_0x27d257(0x1e6)](b[_0x27d257(0x181)](this[_0x27d257(0x14b)]))[_0x27d257(0x18f)](_0x557357=>{var _0x5d280e=_0x27d257;const {eventID:_0x22a37f}=_0x557357;switch(_0x22a37f){case _[_0x5d280e(0x143)][_0x5d280e(0x11a)]:this[_0x5d280e(0x140)](_0x557357);break;case _[_0x5d280e(0x143)][_0x5d280e(0x166)]:this[_0x5d280e(0x1f8)](_0x557357);break;case _[_0x5d280e(0x143)]['LIVESHARE_TERMINATE']:this[_0x5d280e(0x171)]();break;case _[_0x5d280e(0x143)][_0x5d280e(0x179)]:this[_0x5d280e(0x19d)](_0x557357);break;}}));}[_0x372f15(0x1ce)](){var _0xb05f05=_0x372f15;this[_0xb05f05(0x1ef)]['send']({'eventID':_[_0xb05f05(0x143)][_0xb05f05(0x142)],'data':{'unitID':this[_0xb05f05(0x150)],'userID':this['_collabSession'][_0xb05f05(0x1b2)]()}},this[_0xb05f05(0x150)]);}['stopPresenting'](){var _0x5d7fc6=_0x372f15;this[_0x5d7fc6(0x177)]===_0x5d7fc6(0x160)&&(this[_0x5d7fc6(0x193)][_0x5d7fc6(0x16c)](_0x5d7fc6(0x128)),this[_0x5d7fc6(0x1ef)][_0x5d7fc6(0x161)]({'eventID':_[_0x5d7fc6(0x143)][_0x5d7fc6(0x124)],'data':{'unitID':this[_0x5d7fc6(0x150)]}},this[_0x5d7fc6(0x150)]));}[_0x372f15(0x1a5)](){var _0xe078e=_0x372f15;this[_0xe078e(0x177)]==='not-following'&&(this[_0xe078e(0x193)][_0xe078e(0x16c)]('following'),this[_0xe078e(0x1f5)]());}[_0x372f15(0x163)](){var _0x3fc0fa=_0x372f15;this[_0x3fc0fa(0x177)]===_0x3fc0fa(0x1e9)&&this['_stopFollowing']();}['_handleNewHost'](_0x5e1717){var _0x3ec9e7=_0x372f15;const {presenter:_0x28d017}=_0x5e1717[_0x3ec9e7(0x1a8)],_0x1d8b8c=this[_0x3ec9e7(0x1ef)]['getMemberID']();this[_0x3ec9e7(0x1cd)]=_0x28d017,_0x28d017===_0x1d8b8c?(this[_0x3ec9e7(0x1a3)](),this['_startPresenting']()):this[_0x3ec9e7(0x177)]!=='not-following'&&(this[_0x3ec9e7(0x178)](),this[_0x3ec9e7(0x1f5)]());}[_0x372f15(0x129)](){var _0x227239=_0x372f15;const _0x645967={'eventID':_[_0x227239(0x143)][_0x227239(0x154)]};this[_0x227239(0x1ef)][_0x227239(0x161)](_0x645967,this[_0x227239(0x150)]);}[_0x372f15(0x171)](){var _0x197082=_0x372f15;this['_presenter']=null,this[_0x197082(0x177)]!==_0x197082(0x160)&&this[_0x197082(0x1bb)]();}['_handleNewChangeSets'](_0x541d56){var _0x2e0c0a=_0x372f15;if(this['_status']==='following'&&this['_presenter']===_0x541d56[_0x2e0c0a(0x1a8)]['memberID']){const _0x5a7b39=_[_0x2e0c0a(0x1e3)](_0x541d56[_0x2e0c0a(0x1a8)])[_0x2e0c0a(0x198)]['reverse']()[_0x2e0c0a(0x173)](_0x3538e0=>_0x3538e0['id']===C[_0x2e0c0a(0x1e2)]['id']);if(_0x5a7b39){const _0xe4fcdf=_0x5a7b39[_0x2e0c0a(0x1d9)]['unitId'],_0x126dc5=_0x5a7b39['params'][_0x2e0c0a(0x1bc)]['id'];setTimeout(()=>{var _0x3a20b2=_0x2e0c0a;this['_commandService'][_0x3a20b2(0x1c3)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0xe4fcdf,'subUnitId':_0x126dc5},{'fromCollab':!0x0});});}}}[_0x372f15(0x121)](){var _0x134d24=_0x372f15;this[_0x134d24(0x193)][_0x134d24(0x16c)](_0x134d24(0x160));const _0x55e1df=new Map(),_0xd99f3=this[_0x134d24(0x1c9)]=new o[(_0x134d24(0x14f))]();_0xd99f3[_0x134d24(0x122)](o[_0x134d24(0x1a1)](()=>{var _0x124a42=_0x134d24;_0x55e1df[_0x124a42(0x183)](_0x31bb48=>_0x31bb48[_0x124a42(0x148)]()),_0x55e1df[_0x124a42(0x18c)]();})),_0xd99f3[_0x134d24(0x122)](this['_commandService'][_0x134d24(0x15d)](_0xc4f9da=>{var _0x54ccae=_0x134d24,_0x160a1e;if(_0xc4f9da[_0x54ccae(0x1eb)]!==o['CommandType'][_0x54ccae(0x172)]||!this['_liveShareService']['shouldShareOperation'](_0xc4f9da['id']))return;const {id:_0x8225d6}=_0xc4f9da;let _0x45290e;_0x55e1df[_0x54ccae(0x1c1)](_0x8225d6)?_0x45290e=_0x55e1df['get'](_0x8225d6):(_0x45290e=new D[(_0x54ccae(0x19a))](),_0x55e1df['set'](_0x8225d6,_0x45290e),_0x45290e[_0x54ccae(0x1e6)](b[_0x54ccae(0x131)]((_0x160a1e=this[_0x54ccae(0x19c)][_0x54ccae(0x1a9)](Z))!=null?_0x160a1e:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x54ccae(0x18f)](_0x1780ad=>{var _0x24cabc=_0x54ccae;this[_0x24cabc(0x1ef)][_0x24cabc(0x161)]({'eventID':_[_0x24cabc(0x143)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x24cabc(0x150)],'operations':{[_0x1780ad['id']]:{'id':_0x1780ad['id'],'params':JSON[_0x24cabc(0x1e8)](_0x1780ad[_0x24cabc(0x1d9)])}}}},this[_0x24cabc(0x150)]);})),_0x45290e['next'](_0xc4f9da);})),this['_liveShareService'][_0x134d24(0x16b)](this[_0x134d24(0x150)])[_0x134d24(0x183)](_0x51a16f=>this['_collabSession'][_0x134d24(0x161)]({'eventID':_[_0x134d24(0x143)][_0x134d24(0x166)],'data':{'unitID':this[_0x134d24(0x150)],'operations':{[_0x51a16f['id']]:{'id':_0x51a16f['id'],'params':JSON[_0x134d24(0x1e8)](_0x51a16f[_0x134d24(0x1d9)])}}}},this[_0x134d24(0x150)]));}['_stopPresenting'](){var _0x530aff=_0x372f15,_0x12cc68;this['_status$']['next'](_0x530aff(0x128)),(_0x12cc68=this[_0x530aff(0x1c9)])==null||_0x12cc68['dispose'](),this['_commandDisposable']=null;}[_0x372f15(0x1f5)](){var _0x1c0116=_0x372f15,_0x3dccf1;(_0x3dccf1=this['_commandDisposable'])==null||_0x3dccf1[_0x1c0116(0x16f)](),this[_0x1c0116(0x193)]['next'](_0x1c0116(0x1e9));}['_beIdle'](){var _0x597026=_0x372f15,_0x84fcc0;this[_0x597026(0x193)][_0x597026(0x16c)]('idle'),(_0x84fcc0=this[_0x597026(0x1c9)])==null||_0x84fcc0[_0x597026(0x16f)](),this[_0x597026(0x1c9)]=null;}[_0x372f15(0x1a3)](){var _0x4f07dc=_0x372f15,_0x4fc4f7;this[_0x4f07dc(0x193)]['next']('not-following'),(_0x4fc4f7=this[_0x4f07dc(0x1c9)])==null||_0x4fc4f7[_0x4f07dc(0x16f)]();}[_0x372f15(0x1f8)](_0xbf6f9){var _0x97c325=_0x372f15;if([_0x97c325(0x160),_0x97c325(0x191),'offline']['includes'](this[_0x97c325(0x177)])||!_0xbf6f9[_0x97c325(0x1a8)][_0x97c325(0x1dc)]||_0xbf6f9[_0x97c325(0x1a8)]['presenter']===this['_collabSession'][_0x97c325(0x1b2)]())return;this[_0x97c325(0x177)]===_0x97c325(0x128)&&this[_0x97c325(0x1f5)]();const _0x5795bd=_0xbf6f9[_0x97c325(0x1a8)][_0x97c325(0x153)];Object['values'](_0x5795bd)[_0x97c325(0x183)](_0x3c5996=>{var _0x2bc518=_0x97c325;this[_0x2bc518(0x16e)][_0x2bc518(0x1c3)](_0x3c5996['id'],_0x3c5996[_0x2bc518(0x1d9)]?JSON[_0x2bc518(0x195)](_0x3c5996[_0x2bc518(0x1d9)]):null,{'fromCollab':!0x0});});}[_0x372f15(0x145)](){var _0x9b37fa=_0x372f15,_0x4b32e6;this[_0x9b37fa(0x193)][_0x9b37fa(0x16c)](_0x9b37fa(0x155)),(_0x4b32e6=this[_0x9b37fa(0x1c9)])==null||_0x4b32e6['dispose']();}[_0x372f15(0x1bd)](){var _0x5527cc=_0x372f15;this[_0x5527cc(0x193)][_0x5527cc(0x16c)](_0x5527cc(0x128)),this[_0x5527cc(0x129)]();}},exports[_0x372f15(0x18e)]=R([S(0x2,o[_0x372f15(0x13a)]),S(0x3,o[_0x372f15(0x1ca)](O)),S(0x4,o[_0x372f15(0x138)])],exports[_0x372f15(0x18e)]);function _0x25b5(_0x367d2c,_0x14e05e){var _0x2a23fc=_0x2a23();return _0x25b5=function(_0x25b593,_0x102299){_0x25b593=_0x25b593-0x113;var _0x3fcae6=_0x2a23fc[_0x25b593];return _0x3fcae6;},_0x25b5(_0x367d2c,_0x14e05e);}function A(){var _0x1d1996=_0x372f15;const _0x3b39ac=p['useDependency'](exports['LiveShareController']),_0x33a0a8=p[_0x1d1996(0x146)](o['IUniverInstanceService']),_0xa83ce0=p[_0x1d1996(0x167)](()=>_0x33a0a8['getCurrentTypeOfUnit$'](o[_0x1d1996(0x1f9)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x6abafe,_0x569672]=f[_0x1d1996(0x1f0)](null),[_0x1bc8c9,_0x4b5ccd]=f[_0x1d1996(0x1f0)](h[_0x1d1996(0x170)]),_0x1e5d12=f['useRef'](null);return f[_0x1d1996(0x123)](()=>(_0xa83ce0&&_0x3b39ac[_0x1d1996(0x1d6)](_0xa83ce0[_0x1d1996(0x1ab)]())[_0x1d1996(0x115)](_0x121146=>{var _0x2c78c3=_0x1d1996;_0x569672(_0x121146),_0x1e5d12['current']=_0x121146[_0x2c78c3(0x1bf)]['subscribe'](_0x412d73=>{_0x4b5ccd(_0x412d73);});}),()=>{var _0x394a4a=_0x1d1996,_0x139fb5;(_0x139fb5=_0x1e5d12[_0x394a4a(0x147)])==null||_0x139fb5['unsubscribe'](),_0x1e5d12['current']=null;}),[_0xa83ce0,_0x3b39ac]),_0x6abafe?l[_0x1d1996(0x16a)](g[_0x1d1996(0x113)],{'align':_0x1d1996(0x11c),'disabled':_0x1bc8c9===h[_0x1d1996(0x1a4)],'className':'univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','overlay':l[_0x1d1996(0x16a)](K,{'status':_0x1bc8c9,'coordinator':_0x6abafe}),'children':l[_0x1d1996(0x16a)](_0x1d1996(0x1af),{'className':g['clsx'](_0x1d1996(0x1db),{'univer-cursor-not-allowed':_0x1bc8c9===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1bc8c9!==h[_0x1d1996(0x1a4)]}),'type':_0x1d1996(0x1af),'children':l['jsx'](P,{'className':_0x1d1996(0x1de)})})}):null;}function K(_0x150d1b){var _0x3a5cc4=_0x372f15;const {status:_0x43b582,coordinator:_0x313572}=_0x150d1b;switch(_0x43b582){case h[_0x3a5cc4(0x170)]:return l[_0x3a5cc4(0x16a)](z,{'coordinator':_0x313572});case h[_0x3a5cc4(0x11b)]:return l[_0x3a5cc4(0x16a)](Q,{'coordinator':_0x313572});case h[_0x3a5cc4(0x19e)]:return l[_0x3a5cc4(0x16a)](X,{'coordinator':_0x313572});case h[_0x3a5cc4(0x1a4)]:return l[_0x3a5cc4(0x16a)](te,{});case h[_0x3a5cc4(0x165)]:return l['jsx'](ee,{'coordinator':_0x313572});default:return null;}}function z(_0x58326c){var _0x48ae20=_0x372f15;const {coordinator:_0x104f27}=_0x58326c;return l[_0x48ae20(0x1aa)](l['Fragment'],{'children':[l[_0x48ae20(0x16a)](_0x48ae20(0x185),{'className':_0x48ae20(0x1f2),'children':_0x48ae20(0x1fb)}),l['jsx'](g[_0x48ae20(0x118)],{'onClick':()=>_0x104f27[_0x48ae20(0x1ce)](),'children':_0x48ae20(0x1c5)})]});}function Q(_0x114ff5){var _0x58dee9=_0x372f15;const {coordinator:_0x4dd4de}=_0x114ff5;return l[_0x58dee9(0x1aa)](l[_0x58dee9(0x1d7)],{'children':[l[_0x58dee9(0x16a)](_0x58dee9(0x185),{'className':_0x58dee9(0x1f2),'children':'You\x27re\x20following\x20the\x20presenter'}),l['jsx'](g['Button'],{'onClick':()=>_0x4dd4de['stopFollowing'](),'children':_0x58dee9(0x135)})]});}function X(_0x5bd349){var _0x48f7db=_0x372f15;const {coordinator:_0x5a801e}=_0x5bd349;return l[_0x48f7db(0x1aa)](l[_0x48f7db(0x1d7)],{'children':[l['jsx'](_0x48f7db(0x185),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x48f7db(0x16a)](g[_0x48f7db(0x118)],{'variant':_0x48f7db(0x11e),'onClick':()=>_0x5a801e['startFollowing'](),'children':_0x48f7db(0x152)})]});}function ee(_0x30dc66){var _0xa42b21=_0x372f15;const {coordinator:_0x12ff30}=_0x30dc66;return l[_0xa42b21(0x1aa)](l[_0xa42b21(0x1d7)],{'children':[l[_0xa42b21(0x16a)](_0xa42b21(0x185),{'className':_0xa42b21(0x1f2),'children':_0xa42b21(0x184)}),l[_0xa42b21(0x16a)](g[_0xa42b21(0x118)],{'variant':_0xa42b21(0x17d),'onClick':()=>_0x12ff30[_0xa42b21(0x120)](),'children':_0xa42b21(0x139)})]});}function te(){var _0x371761=_0x372f15;return l[_0x371761(0x16a)](l[_0x371761(0x1d7)],{'children':_0x371761(0x1f4)});}var ie=Object[_0x372f15(0x125)],ne=(_0x5c8188,_0x1cae82,_0x58c0f4,_0x245801)=>{var _0x345e6a=_0x372f15;for(var _0x2ac27f=_0x245801>0x1?void 0x0:_0x245801?ie(_0x1cae82,_0x58c0f4):_0x1cae82,_0x31f9b0=_0x5c8188[_0x345e6a(0x194)]-0x1,_0x4c0b60;_0x31f9b0>=0x0;_0x31f9b0--)(_0x4c0b60=_0x5c8188[_0x31f9b0])&&(_0x2ac27f=_0x4c0b60(_0x2ac27f)||_0x2ac27f);return _0x2ac27f;},L=(_0x3a3b45,_0x2c436d)=>(_0x35cf5e,_0xb906d7)=>_0x2c436d(_0x35cf5e,_0xb906d7,_0x3a3b45);exports[_0x372f15(0x18a)]=class extends o[_0x372f15(0x1d5)]{constructor(_0x5a0302,_0x324892){var _0x5dd94f=_0x372f15;super(),this[_0x5dd94f(0x1cc)]=_0x5a0302,this[_0x5dd94f(0x13f)]=_0x324892,this[_0x5dd94f(0x169)]();}[_0x372f15(0x169)](){var _0x4e480e=_0x372f15;this[_0x4e480e(0x162)](this[_0x4e480e(0x13f)]['registerComponent'](p[_0x4e480e(0x133)][_0x4e480e(0x1c7)],()=>p[_0x4e480e(0x126)](A,this[_0x4e480e(0x1cc)])));}},exports[_0x372f15(0x18a)]=ne([L(0x0,o['Inject'](o[_0x372f15(0x13d)])),L(0x1,p[_0x372f15(0x1b9)])],exports[_0x372f15(0x18a)]);var re=Object[_0x372f15(0x119)],se=Object[_0x372f15(0x125)],oe=(_0xfd6f2b,_0x4e5653,_0x38951f)=>_0x4e5653 in _0xfd6f2b?re(_0xfd6f2b,_0x4e5653,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38951f}):_0xfd6f2b[_0x4e5653]=_0x38951f,ae=(_0x16c167,_0x316943,_0x49be01,_0x192324)=>{var _0x177d09=_0x372f15;for(var _0x2dfb6c=_0x192324>0x1?void 0x0:_0x192324?se(_0x316943,_0x49be01):_0x316943,_0x1e606c=_0x16c167[_0x177d09(0x194)]-0x1,_0xf1781a;_0x1e606c>=0x0;_0x1e606c--)(_0xf1781a=_0x16c167[_0x1e606c])&&(_0x2dfb6c=_0xf1781a(_0x2dfb6c)||_0x2dfb6c);return _0x2dfb6c;},N=(_0x4b1f71,_0x462021)=>(_0x5a21da,_0x4f478c)=>_0x462021(_0x5a21da,_0x4f478c,_0x4b1f71),T=(_0x1bc456,_0x3e97fa,_0x3ef8d8)=>oe(_0x1bc456,typeof _0x3e97fa!=_0x372f15(0x1dd)?_0x3e97fa+'':_0x3e97fa,_0x3ef8d8);const le=_0x372f15(0x1d0);exports['UniverLiveSharePlugin']=class extends o[_0x372f15(0x1b8)]{constructor(_0x5738da=x,_0x39fc97,_0x16b59b){var _0x11fbdf=_0x372f15;super(),this[_0x11fbdf(0x1c0)]=_0x5738da,this[_0x11fbdf(0x1cc)]=_0x39fc97,this[_0x11fbdf(0x19c)]=_0x16b59b;const {..._0x2d5431}=o[_0x11fbdf(0x1e4)]({},x,this[_0x11fbdf(0x1c0)]);this[_0x11fbdf(0x19c)][_0x11fbdf(0x1cb)]($,_0x2d5431);}[_0x372f15(0x186)](){var _0x6ea8dd=_0x372f15;o[_0x6ea8dd(0x1d2)](this['_injector'],o[_0x6ea8dd(0x1da)]([[O],[exports['LiveShareController']],[E],[exports['DesktopLiveShareController']]],this[_0x6ea8dd(0x1c0)][_0x6ea8dd(0x18d)])),o[_0x6ea8dd(0x1ea)](this['_injector'],[[E]]);}[_0x372f15(0x149)](){var _0x93f56a=_0x372f15;o[_0x93f56a(0x1ea)](this['_injector'],[[exports[_0x93f56a(0x18a)]]]);}},T(exports[_0x372f15(0x1fc)],_0x372f15(0x1eb),o[_0x372f15(0x1f9)][_0x372f15(0x11f)]),T(exports['UniverLiveSharePlugin'],'pluginName',le),exports['UniverLiveSharePlugin']=ae([o[_0x372f15(0x15e)](m[_0x372f15(0x1ac)]),N(0x1,o['Inject'](o['Injector'])),N(0x2,o[_0x372f15(0x13a)])],exports['UniverLiveSharePlugin']),exports[_0x372f15(0x1a6)]=A,exports['LiveShareService']=O,exports[_0x372f15(0x156)]=h;function _0x2a23(){var _0x539adf=['_handleNewHost','SAME_OPERATION_SHARE_INTERVAL','LIVESHARE_REQUEST_HOST','CollaborationEvent','@univerjs/core','_handleOffline','useDependency','current','complete','onRendered','createElement','dispose$','createInstance','extend','Module','DisposableCollection','_unitID','CollaborationSessionService','Start\x20following','operations','LIVESHARE_FETCH_OPERATIONS','offline','LiveShareStatus','hasOwnProperty','requireSession','attrs','react/jsx-runtime','SetZoomRatioOperation','currentColor','onCommandExecuted','DependentOn','registerSharedOperation','presenting','send','disposeWithMe','stopFollowing','SessionStatus','PRESENTING','LIVESHARE_OPERATION','useObservable','apply','_mountLiveShare','jsx','getInitialStates','next','0\x200\x2017\x2017','_commandService','dispose','IDLE','_handleTerminate','OPERATION','find','LiveShareIcon','_univerInstanceService','string','_status','_stopPresenting','NEW_CHANGESETS','includes','@univerjs/design','init','default','icon','1em','delete','takeUntil','BehaviorSubject','forEach','You\x27re\x20presenting\x20the\x20document','div','onStarting','live-share-icon','getValue','_liveShareService','DesktopLiveShareController','toStringTag','clear','override','LiveShareCoordinator','subscribe','svg','not-following','forwardRef','_status$','length','parse','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','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','mutations','fill','Subject','useRef','_configService','_handleNewChangeSets','NOT_FOLLOWING','entries','children','toDisposable','_sharedOperations','_stopFollowing','OFFLINE','startFollowing','LiveShare','5033BewJTI','data','getConfig','jsxs','getUnitId','UniverCollaborationClientPlugin','none','call','button','311550xYslSd','trim','getMemberID','@univerjs/ui','substring','SetWorksheetActiveOperation','url(#$1','1322451AoPfDo','Plugin','IUIPartsService','sessionStatus$','_beIdle','sheet','_handleOnline','univerjs-icon\x20univerjs-icon-','status$','_config','has','536976gnKLVP','executeCommand','defs','Start','defIds','HEADER_MENU','colorChannel1','_commandDisposable','Inject','setConfig','_injector','_presenter','tryStartPresenting','28EujWHL','UNIVER_LIVE_SHARE_PLUGIN','indexOf','registerDependencies','displayName','prototype','Disposable','getLiveShareCoordinator','Fragment','className','params','mergeOverrideWithDependencies','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','presenter','symbol','univer-size-4','shouldShareOperation','getTypeOfUnitAdded$','_entities','InsertSheetMutation','parseProtocolChangeset','merge','UNIVER_SHEET','pipe','evenodd','stringify','following','touchDependencies','type','ONLINE','16910vcGjVq','tag','_collabSession','useState','_reporters','univer-w-full\x20univer-mb-3\x20univer-text-sm','path','You\x27are\x20offline.','_startFollowing','_collabSessionService','rxjs','_handleOperation','UniverInstanceType','random','Present\x20this\x20document','UniverLiveSharePlugin','idSuffix','Dropdown','mask','then','xlink:href','LiveShareController','Button','defineProperty','LIVESHARE_NEW_HOST','FOLLOWING','end','2328kxhRvN','text','UNIVER_UNKNOWN','stopPresenting','_startPresenting','add','useEffect','LIVESHARE_TERMINATE','getOwnPropertyDescriptor','connectInjector','getOwnPropertySymbols','idle','_fetchOperations','96500QVhekI','_init','180108PYyWHk','UniverIcon','concat','asObservable','get','throttleTime','map','BuiltInUIPart','@univerjs-pro/collaboration-client','Stop\x20following','replace','_startLiveShareCoordinator','ICommandService','Stop\x20presenting','IConfigService','assign','live-share.config','Injector','function','_uiPartsService'];_0x2a23=function(){return _0x539adf;};return _0x2a23();}
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x52f618=_0x56cb;(function(_0x422162,_0x323e1f){var _0x23554a=_0x56cb,_0xb98258=_0x422162();while(!![]){try{var _0x32d96a=-parseInt(_0x23554a(0x21d))/0x1*(parseInt(_0x23554a(0x1b6))/0x2)+-parseInt(_0x23554a(0x1e3))/0x3+-parseInt(_0x23554a(0x194))/0x4+parseInt(_0x23554a(0x229))/0x5+parseInt(_0x23554a(0x19e))/0x6*(-parseInt(_0x23554a(0x207))/0x7)+parseInt(_0x23554a(0x1e0))/0x8*(-parseInt(_0x23554a(0x206))/0x9)+parseInt(_0x23554a(0x1d0))/0xa*(parseInt(_0x23554a(0x1c1))/0xb);if(_0x32d96a===_0x323e1f)break;else _0xb98258['push'](_0xb98258['shift']());}catch(_0x2d08a5){_0xb98258['push'](_0xb98258['shift']());}}}(_0x3701,0x19dd5));var q=Object[_0x52f618(0x233)],z=(_0x4fa2a4,_0x2c8eae,_0x168a6a)=>_0x2c8eae in _0x4fa2a4?q(_0x4fa2a4,_0x2c8eae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x168a6a}):_0x4fa2a4[_0x2c8eae]=_0x168a6a,d=(_0x5e53bb,_0x1d8150,_0x2fbc33)=>z(_0x5e53bb,typeof _0x1d8150!=_0x52f618(0x1a1)?_0x1d8150+'':_0x1d8150,_0x2fbc33);import{CollaborationSessionService as _0x373ed2,SessionStatus as _0x39c4da,UniverCollaborationClientPlugin as _0x4f23e0}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4d2b6f,toDisposable as _0x2deabb,Inject as _0x5b76c2,IUniverInstanceService as _0x32b736,Injector as _0x5d2218,IConfigService as _0x44d386,ICommandService as _0x3c47e4,RxDisposable as _0x563b3c,UniverInstanceType as _0x174153,DisposableCollection as _0x3438d0,CommandType as _0x8ecae0,DependentOn as _0x3ab6ef,Plugin as _0x26e656,merge as _0x2cad00,registerDependencies as _0x153635,mergeOverrideWithDependencies as _0x2088e7,touchDependencies as _0xd0dab7}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x495e50,InsertSheetMutation as _0x571bd5}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x138ac7,SetScrollOperation as _0x46af97}from'@univerjs/sheets-ui';import{useDependency as _0x131bc5,useObservable as _0x3077c8,IUIPartsService as _0x259a30,BuiltInUIPart as _0x50ace2,connectInjector as _0x4ee5c0}from'@univerjs/ui';import{jsx as _0x40000b,jsxs as _0x54f880,Fragment as _0x4aa632}from'react/jsx-runtime';import{Dropdown as _0x2f5451,clsx as _0x42fd34,Button as _0xe015b0}from'@univerjs/design';import{forwardRef as _0x19d58d,useRef as _0x956383,createElement as _0x2c72b7,useState as _0x201ef0,useEffect as _0x5abcd3}from'react';import{CollaborationEvent as _0x2f804e,parseProtocolChangeset as _0xd42f05}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x570d03,Subject as _0x5cadb4}from'rxjs';import{takeUntil as _0x57168c,throttleTime as _0x4e001a}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x4d2b6f{constructor(){var _0x43621f=_0x52f618;super(...arguments),d(this,_0x43621f(0x1b2),new Set()),d(this,_0x43621f(0x1fa),new Set());}[_0x52f618(0x1e5)](_0x12ce23){var _0x2095a8=_0x52f618;return this[_0x2095a8(0x1b2)][_0x2095a8(0x1aa)](_0x12ce23),_0x2deabb(()=>this[_0x2095a8(0x1b2)][_0x2095a8(0x1e9)](_0x12ce23));}[_0x52f618(0x21b)](_0x68b76){var _0x46eb76=_0x52f618;return this[_0x46eb76(0x1fa)][_0x46eb76(0x1aa)](_0x68b76),_0x2deabb(()=>this[_0x46eb76(0x1fa)][_0x46eb76(0x1e9)](_0x68b76));}['shouldShareOperation'](_0x1f9fa4){var _0x2f13aa=_0x52f618;return this[_0x2f13aa(0x1b2)][_0x2f13aa(0x182)](_0x1f9fa4);}[_0x52f618(0x208)](_0x8e583a){var _0xd6812f=_0x52f618;return Array[_0xd6812f(0x1a7)](this[_0xd6812f(0x1fa)])[_0xd6812f(0x1bf)](_0x25b4cb=>_0x25b4cb(_0x8e583a));}}var Ee=Object['getOwnPropertyDescriptor'],Ce=(_0x27dcde,_0x523bcb,_0x13fd72,_0x1490f5)=>{var _0x1540d3=_0x52f618;for(var _0x442ca5=_0x1490f5>0x1?void 0x0:_0x1490f5?Ee(_0x523bcb,_0x13fd72):_0x523bcb,_0x3a4f1e=_0x27dcde[_0x1540d3(0x1ab)]-0x1,_0x5c143;_0x3a4f1e>=0x0;_0x3a4f1e--)(_0x5c143=_0x27dcde[_0x3a4f1e])&&(_0x442ca5=_0x5c143(_0x442ca5)||_0x442ca5);return _0x442ca5;},Ne=(_0x3dde8e,_0x45943f)=>(_0x5434ff,_0x18c777)=>_0x45943f(_0x5434ff,_0x18c777,_0x3dde8e);let m=class extends _0x4d2b6f{constructor(_0x4c58d7){var _0x263dcb=_0x52f618;super(),this[_0x263dcb(0x19b)]=_0x4c58d7,this[_0x263dcb(0x1ca)]();}[_0x52f618(0x1ca)](){var _0x129913=_0x52f618;[_0x138ac7['id'],_0x46af97['id'],_0x495e50['id']][_0x129913(0x1c7)](_0x425bef=>{var _0x107827=_0x129913;this[_0x107827(0x201)](this[_0x107827(0x19b)][_0x107827(0x1e5)](_0x425bef));});}};m=Ce([Ne(0x0,_0x5b76c2(L))],m);var c=function(){var _0x4d21ad=_0x52f618;return c=Object['assign']||function(_0xff0b48){var _0x315c5d=_0x56cb;for(var _0x534322,_0x18fe22=0x1,_0x329789=arguments[_0x315c5d(0x1ab)];_0x18fe22<_0x329789;_0x18fe22++){_0x534322=arguments[_0x18fe22];for(var _0x2108b5 in _0x534322)Object[_0x315c5d(0x1e8)]['hasOwnProperty'][_0x315c5d(0x230)](_0x534322,_0x2108b5)&&(_0xff0b48[_0x2108b5]=_0x534322[_0x2108b5]);}return _0xff0b48;},c[_0x4d21ad(0x218)](this,arguments);},we=function(_0x54969e,_0x3a0e93){var _0x17413c=_0x52f618,_0x28e942={};for(var _0x340005 in _0x54969e)Object[_0x17413c(0x1e8)][_0x17413c(0x22d)]['call'](_0x54969e,_0x340005)&&_0x3a0e93[_0x17413c(0x1bb)](_0x340005)<0x0&&(_0x28e942[_0x340005]=_0x54969e[_0x340005]);if(_0x54969e!=null&&typeof Object[_0x17413c(0x1ce)]=='function'){for(var _0x23e4f3=0x0,_0x340005=Object['getOwnPropertySymbols'](_0x54969e);_0x23e4f3<_0x340005[_0x17413c(0x1ab)];_0x23e4f3++)_0x3a0e93['indexOf'](_0x340005[_0x23e4f3])<0x0&&Object['prototype'][_0x17413c(0x202)]['call'](_0x54969e,_0x340005[_0x23e4f3])&&(_0x28e942[_0x340005[_0x23e4f3]]=_0x54969e[_0x340005[_0x23e4f3]]);}return _0x28e942;},W=_0x19d58d(function(_0x3b30a2,_0x1b1b74){var _0x488e69=_0x52f618,_0x33aa0c=_0x3b30a2['icon'],_0x4bf32e=_0x3b30a2['id'],_0x31e853=_0x3b30a2['className'],_0xc553f4=_0x3b30a2[_0x488e69(0x1ba)],_0x2ca60d=we(_0x3b30a2,[_0x488e69(0x1ff),'id',_0x488e69(0x18c),'extend']),_0x30f1b3='univerjs-icon\x20univerjs-icon-'[_0x488e69(0x219)](_0x4bf32e,'\x20')[_0x488e69(0x219)](_0x31e853||'')[_0x488e69(0x1ed)](),_0x46e156=_0x956383('_'[_0x488e69(0x219)](Le()));return Y(_0x33aa0c,''[_0x488e69(0x219)](_0x4bf32e),{'defIds':_0x33aa0c[_0x488e69(0x197)],'idSuffix':_0x46e156[_0x488e69(0x211)]},c({'ref':_0x1b1b74,'className':_0x30f1b3},_0x2ca60d),_0xc553f4);});function Y(_0x17709a,_0x57800e,_0x482665,_0x3d243d,_0x3e74c4){var _0x39e62e=_0x52f618;return _0x2c72b7(_0x17709a['tag'],c(c({'key':_0x57800e},De(_0x17709a,_0x482665,_0x3e74c4)),_0x3d243d),(xe(_0x17709a,_0x482665)['children']||[])[_0x39e62e(0x1bf)](function(_0x1e7d47,_0x52cfb3){var _0x30ac5a=_0x39e62e;return Y(_0x1e7d47,''[_0x30ac5a(0x219)](_0x57800e,'-')[_0x30ac5a(0x219)](_0x17709a[_0x30ac5a(0x191)],'-')[_0x30ac5a(0x219)](_0x52cfb3),_0x482665,void 0x0,_0x3e74c4);}));}function De(_0xbc463c,_0x29798d,_0x3353c5){var _0xc5a79c=_0x52f618,_0x1ea5a4=c({},_0xbc463c[_0xc5a79c(0x222)]);_0x3353c5!=null&&_0x3353c5['colorChannel1']&&_0x1ea5a4[_0xc5a79c(0x20f)]===_0xc5a79c(0x193)&&(_0x1ea5a4[_0xc5a79c(0x20f)]=_0x3353c5[_0xc5a79c(0x193)]),_0xbc463c[_0xc5a79c(0x191)]===_0xc5a79c(0x1ae)&&_0x1ea5a4['id']&&(_0x1ea5a4['id']=_0x1ea5a4['id']+_0x29798d[_0xc5a79c(0x224)]),Object[_0xc5a79c(0x18b)](_0x1ea5a4)[_0xc5a79c(0x1c7)](function(_0x4ef76e){var _0x3f8b48=_0xc5a79c,_0x5a875c=_0x4ef76e[0x0],_0x22f474=_0x4ef76e[0x1];_0x5a875c==='mask'&&typeof _0x22f474==_0x3f8b48(0x204)&&(_0x1ea5a4[_0x5a875c]=_0x22f474[_0x3f8b48(0x1a8)](/url\(#(.*)\)/,_0x3f8b48(0x213)['concat'](_0x29798d[_0x3f8b48(0x224)],')')));});var _0x1cd6a9=_0x29798d[_0xc5a79c(0x197)];return!_0x1cd6a9||_0x1cd6a9['length']===0x0||(_0xbc463c['tag']==='use'&&_0x1ea5a4['xlink:href']&&(_0x1ea5a4[_0xc5a79c(0x221)]=_0x1ea5a4['xlink:href']+_0x29798d[_0xc5a79c(0x224)]),Object[_0xc5a79c(0x18b)](_0x1ea5a4)[_0xc5a79c(0x1c7)](function(_0x481535){var _0x562295=_0xc5a79c,_0x1f64c9=_0x481535[0x0],_0x4c3f36=_0x481535[0x1];typeof _0x4c3f36==_0x562295(0x204)&&(_0x1ea5a4[_0x1f64c9]=_0x4c3f36[_0x562295(0x1a8)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x29798d[_0x562295(0x224)],')')));})),_0x1ea5a4;}function xe(_0x4a52af,_0xb65ffd){var _0x3ddec4=_0x52f618,_0x16424f,_0x38a081=_0xb65ffd[_0x3ddec4(0x197)];return!_0x38a081||_0x38a081['length']===0x0?_0x4a52af:_0x4a52af[_0x3ddec4(0x191)]===_0x3ddec4(0x216)&&(!((_0x16424f=_0x4a52af[_0x3ddec4(0x232)])===null||_0x16424f===void 0x0)&&_0x16424f[_0x3ddec4(0x1ab)])?c(c({},_0x4a52af),{'children':_0x4a52af[_0x3ddec4(0x232)]['map'](function(_0x228ecc){var _0x1a87f6=_0x3ddec4;return typeof _0x228ecc[_0x1a87f6(0x222)]['id']=='string'&&_0x38a081&&_0x38a081[_0x1a87f6(0x1bb)](_0x228ecc[_0x1a87f6(0x222)]['id'])>-0x1?c(c({},_0x228ecc),{'attrs':c(c({},_0x228ecc['attrs']),{'id':_0x228ecc[_0x1a87f6(0x222)]['id']+_0xb65ffd[_0x1a87f6(0x224)]})}):_0x228ecc;})}):_0x4a52af;}function _0x3701(){var _0x187c5f=['get','override','_handleNewHost','from','replace','NOT_FOLLOWING','add','length','subscribe','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','mask','You\x27are\x20offline.','_uiPartsService','next','_sharedOperations','LIVESHARE_REQUEST_HOST','_beIdle','presenting','8672JdHHhu','evenodd','asObservable','OFFLINE','extend','indexOf','data','presenter','set','map','_stopFollowing','11LhrUOj','SAME_OPERATION_SHARE_INTERVAL','_fetchOperations','getCurrentTypeOfUnit$','_status','0\x200\x2016\x2016','forEach','getMemberID','IDLE','_init','unsubscribe','LIVESHARE_OPERATION','stringify','getOwnPropertySymbols','_collabSessionService','4660520fNiOiY','displayName','NEW_CHANGESETS','getOwnPropertyDescriptor','_status$','executeCommand','includes','1em','OPERATION','unitId','getConfig','clear','stopPresenting','status$','onStarting','path','8bCtgil','_injector','_handleOffline','455097jqWnrm','ONLINE','registerSharedOperation','text','getTypeOfUnitDisposed$','prototype','delete','tryStartPresenting','toString','You\x27re\x20following\x20the\x20presenter','trim','setConfig','onRendered','live-share-single','_unitID','div','LIVESHARE_FETCH_OPERATIONS','params','_commandDisposable','offline','registerComponent','substring','end','_reporters','univer-size-4','_startLiveShareCoordinator','_configService','dispose','icon','_stopPresenting','disposeWithMe','propertyIsEnumerable','pipe','string','_presenter','1442961RpyKpl','303394ZzYSZM','getInitialStates','send','_handleTerminate','LIVESHARE_NEW_HOST','memberID','type','univer-w-full\x20univer-mb-3\x20univer-text-sm','fill','default','current','init','url(#$1','assign','_handleNewChangeSets','defs','button','apply','concat','idle','registerInitialStateReporter','Stop\x20following','2laKTrs','currentColor','find','_mountLiveShare','xlink:href','attrs','Start','idSuffix','Present\x20this\x20document','getUnitId','event$','complete','980905gipnrO','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_TERMINATE','svg','hasOwnProperty','_handleOnline','_config','call','values','children','defineProperty','has','mutations','pluginName','_univerInstanceService','sheet','following','_entities','Stop\x20presenting','UNIVER_SHEET','entries','className','startFollowing','_startPresenting','reverse','stopFollowing','tag','Start\x20following','colorChannel1','248896ALpych','_collabSession','_handleOperation','defIds','not-following','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','_commandService','_liveShareService','PRESENTING','_startFollowing','24jGvmlG','none','getValue','symbol','createInstance','dispose$'];_0x3701=function(){return _0x187c5f;};return _0x3701();}function Le(){var _0x5d6af8=_0x52f618;return Math['random']()[_0x5d6af8(0x1eb)](0x24)[_0x5d6af8(0x1f8)](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0x52f618(0x22c),'attrs':{'fill':_0x52f618(0x19f),'viewBox':_0x52f618(0x1c6),'width':'1em','height':_0x52f618(0x1d7)},'children':[{'tag':_0x52f618(0x1df),'attrs':{'fill':'currentColor','d':_0x52f618(0x199)}},{'tag':_0x52f618(0x1df),'attrs':{'fill':_0x52f618(0x21e),'d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':_0x52f618(0x1b7),'clipRule':_0x52f618(0x1b7)}}]},B=_0x19d58d(function(_0x29e6ec,_0x18a511){var _0x4a4450=_0x52f618;return _0x2c72b7(W,Object[_0x4a4450(0x214)]({},_0x29e6ec,{'id':_0x4a4450(0x1f0),'ref':_0x18a511,'icon':ye}));});B[_0x52f618(0x1d1)]='LiveShareSingle';var Re=Object[_0x52f618(0x1d3)],Z=(_0xcffd6,_0x1f26e2,_0x1c9544,_0x13e73f)=>{var _0x1e98ae=_0x52f618;for(var _0x3de79c=_0x13e73f>0x1?void 0x0:_0x13e73f?Re(_0x1f26e2,_0x1c9544):_0x1f26e2,_0x102be3=_0xcffd6[_0x1e98ae(0x1ab)]-0x1,_0x4711b1;_0x102be3>=0x0;_0x102be3--)(_0x4711b1=_0xcffd6[_0x102be3])&&(_0x3de79c=_0x4711b1(_0x3de79c)||_0x3de79c);return _0x3de79c;},f=(_0x11142b,_0x4477bf)=>(_0x3f409f,_0x170d81)=>_0x4477bf(_0x3f409f,_0x170d81,_0x11142b);let I=class extends _0x563b3c{constructor(_0x501add,_0x5936bb,_0x332a09){var _0x303f82=_0x52f618;super(),d(this,_0x303f82(0x188),new Map()),(this['_univerInstanceService']=_0x501add,this[_0x303f82(0x1e1)]=_0x5936bb,this['_collabSessionService']=_0x332a09,this[_0x303f82(0x1ca)]());}async['getLiveShareCoordinator'](_0x2b85ed){var _0xb8da01=_0x52f618;return this[_0xb8da01(0x188)]['has'](_0x2b85ed)||await this[_0xb8da01(0x1fc)](_0x2b85ed),this[_0xb8da01(0x188)][_0xb8da01(0x1a4)](_0x2b85ed);}[_0x52f618(0x1ca)](){var _0x119faa=_0x52f618;this[_0x119faa(0x185)]['getTypeOfUnitAdded$'](_0x174153[_0x119faa(0x18a)])[_0x119faa(0x203)](_0x57168c(this[_0x119faa(0x1a3)]))[_0x119faa(0x1ac)](async _0x1e655d=>{var _0x585573=_0x119faa;const _0x31560b=_0x1e655d['getUnitId']();this[_0x585573(0x188)][_0x585573(0x182)](_0x31560b)||this[_0x585573(0x1fc)](_0x31560b);}),this[_0x119faa(0x185)][_0x119faa(0x1e7)](_0x174153[_0x119faa(0x18a)])[_0x119faa(0x203)](_0x57168c(this[_0x119faa(0x1a3)]))[_0x119faa(0x1ac)](_0x185772=>{var _0x333e9c=_0x119faa;const _0x56d1ca=_0x185772[_0x333e9c(0x226)](),_0x383a4e=this['_entities'][_0x333e9c(0x1a4)](_0x56d1ca);_0x383a4e==null||_0x383a4e[_0x333e9c(0x1fe)]();});}async[_0x52f618(0x1fc)](_0x4336db){var _0xd4ee67=_0x52f618;const _0x4bd5b1=await this[_0xd4ee67(0x1cf)]['requireSession'](_0x4336db),_0x3819fd=this['_injector'][_0xd4ee67(0x1a2)](w,_0x4336db,_0x4bd5b1);return _0x3819fd[_0xd4ee67(0x212)](),this[_0xd4ee67(0x188)]['set'](_0x4336db,_0x3819fd),_0x3819fd;}};I=Z([f(0x0,_0x32b736),f(0x1,_0x5b76c2(_0x5d2218)),f(0x2,_0x5b76c2(_0x373ed2))],I);var h=(_0x809e5b=>(_0x809e5b['OFFLINE']='offline',_0x809e5b[_0x52f618(0x1c9)]=_0x52f618(0x21a),_0x809e5b['FOLLOWING']='following',_0x809e5b[_0x52f618(0x1a9)]=_0x52f618(0x198),_0x809e5b[_0x52f618(0x19c)]=_0x52f618(0x1b5),_0x809e5b))(h||{});const Pe=_0x52f618(0x1c2),Ae=0xc8;let w=class extends _0x563b3c{constructor(_0x3c4eff,_0x12799a,_0x3e242b,_0x4ac1d2,_0x38d0dc){var _0x50712d=_0x52f618;super(),d(this,_0x50712d(0x1d4),new _0x570d03(_0x50712d(0x21a))),d(this,'status$',this[_0x50712d(0x1d4)][_0x50712d(0x1b8)]()),d(this,_0x50712d(0x1ca),!0x1),d(this,_0x50712d(0x1f5),null),d(this,_0x50712d(0x205),null),(this['_unitID']=_0x3c4eff,this[_0x50712d(0x195)]=_0x12799a,this[_0x50712d(0x1fd)]=_0x3e242b,this[_0x50712d(0x19b)]=_0x4ac1d2,this[_0x50712d(0x19a)]=_0x38d0dc);}get['_status'](){var _0xdcfdf0=_0x52f618;return this['_status$'][_0xdcfdf0(0x1a0)]();}['dispose'](){var _0x2dbae3=_0x52f618,_0x2ef87b;(_0x2ef87b=this[_0x2dbae3(0x1f5)])==null||_0x2ef87b[_0x2dbae3(0x1fe)](),this[_0x2dbae3(0x1d4)][_0x2dbae3(0x1b1)](_0x2dbae3(0x21a)),this[_0x2dbae3(0x1d4)][_0x2dbae3(0x228)]();}[_0x52f618(0x212)](){var _0xeca2a4=_0x52f618;this[_0xeca2a4(0x1ca)]||(this[_0xeca2a4(0x1ca)]=!0x0,this['_collabSession']['sessionStatus$'][_0xeca2a4(0x203)](_0x57168c(this['dispose$']))[_0xeca2a4(0x1ac)](_0x41c872=>{var _0x49d3e8=_0xeca2a4;switch(_0x41c872){case _0x39c4da['OFFLINE']:this[_0x49d3e8(0x1e2)]();break;case _0x39c4da[_0x49d3e8(0x1e4)]:this['_handleOnline']();break;}}),this[_0xeca2a4(0x195)][_0xeca2a4(0x227)]['pipe'](_0x57168c(this[_0xeca2a4(0x1a3)]))[_0xeca2a4(0x1ac)](_0xa3e384=>{var _0x94cc9e=_0xeca2a4;const {eventID:_0x53d21a}=_0xa3e384;switch(_0x53d21a){case _0x2f804e[_0x94cc9e(0x20b)]:this['_handleNewHost'](_0xa3e384);break;case _0x2f804e[_0x94cc9e(0x1cc)]:this[_0x94cc9e(0x196)](_0xa3e384);break;case _0x2f804e[_0x94cc9e(0x22b)]:this[_0x94cc9e(0x20a)]();break;case _0x2f804e[_0x94cc9e(0x1d2)]:this[_0x94cc9e(0x215)](_0xa3e384);break;}}));}[_0x52f618(0x1ea)](){var _0x2343b8=_0x52f618;this[_0x2343b8(0x195)][_0x2343b8(0x209)]({'eventID':_0x2f804e[_0x2343b8(0x1b3)],'data':{'unitID':this[_0x2343b8(0x1f1)],'userID':this[_0x2343b8(0x195)]['getMemberID']()}},this[_0x2343b8(0x1f1)]);}[_0x52f618(0x1dc)](){var _0x547485=_0x52f618;this[_0x547485(0x1c5)]===_0x547485(0x1b5)&&(this[_0x547485(0x1d4)][_0x547485(0x1b1)](_0x547485(0x21a)),this['_collabSession'][_0x547485(0x209)]({'eventID':_0x2f804e['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x547485(0x1f1)]}},this[_0x547485(0x1f1)]));}[_0x52f618(0x18d)](){var _0x23137e=_0x52f618;this[_0x23137e(0x1c5)]===_0x23137e(0x198)&&(this[_0x23137e(0x1d4)][_0x23137e(0x1b1)]('following'),this[_0x23137e(0x19d)]());}[_0x52f618(0x190)](){var _0x1091fc=_0x52f618;this[_0x1091fc(0x1c5)]==='following'&&this[_0x1091fc(0x1c0)]();}[_0x52f618(0x1a6)](_0x195d73){var _0x116a1e=_0x52f618;const {presenter:_0x36867d}=_0x195d73[_0x116a1e(0x1bc)],_0x5629b8=this[_0x116a1e(0x195)][_0x116a1e(0x1c8)]();this[_0x116a1e(0x205)]=_0x36867d,_0x36867d===_0x5629b8?(this[_0x116a1e(0x1c0)](),this[_0x116a1e(0x18e)]()):this[_0x116a1e(0x1c5)]!==_0x116a1e(0x198)&&(this[_0x116a1e(0x200)](),this['_startFollowing']());}[_0x52f618(0x1c3)](){var _0x573659=_0x52f618;const _0x251f90={'eventID':_0x2f804e[_0x573659(0x1f3)]};this[_0x573659(0x195)][_0x573659(0x209)](_0x251f90,this['_unitID']);}[_0x52f618(0x20a)](){var _0x1adaa8=_0x52f618;this[_0x1adaa8(0x205)]=null,this[_0x1adaa8(0x1c5)]!==_0x1adaa8(0x1b5)&&this['_beIdle']();}[_0x52f618(0x215)](_0x155204){var _0x1f767d=_0x52f618;if(this[_0x1f767d(0x1c5)]===_0x1f767d(0x187)&&this['_presenter']===_0x155204['data'][_0x1f767d(0x20c)]){const _0x5bf302=_0xd42f05(_0x155204[_0x1f767d(0x1bc)])[_0x1f767d(0x183)][_0x1f767d(0x18f)]()[_0x1f767d(0x21f)](_0x4a3177=>_0x4a3177['id']===_0x571bd5['id']);if(_0x5bf302){const _0x1fc4e0=_0x5bf302[_0x1f767d(0x1f4)][_0x1f767d(0x1d9)],_0xfe32a7=_0x5bf302['params'][_0x1f767d(0x186)]['id'];setTimeout(()=>{var _0x5aa3f0=_0x1f767d;this[_0x5aa3f0(0x19a)]['executeCommand'](_0x495e50['id'],{'unitId':_0x1fc4e0,'subUnitId':_0xfe32a7},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x1853df=_0x52f618;this['_status$'][_0x1853df(0x1b1)](_0x1853df(0x1b5));const _0x32fec1=new Map(),_0x887678=this[_0x1853df(0x1f5)]=new _0x3438d0();_0x887678[_0x1853df(0x1aa)](_0x2deabb(()=>{var _0x2a4246=_0x1853df;_0x32fec1[_0x2a4246(0x1c7)](_0xef52eb=>_0xef52eb['complete']()),_0x32fec1[_0x2a4246(0x1db)]();})),_0x887678[_0x1853df(0x1aa)](this[_0x1853df(0x19a)]['onCommandExecuted'](_0x364fb1=>{var _0x518921=_0x1853df,_0x2df387;if(_0x364fb1[_0x518921(0x20d)]!==_0x8ecae0[_0x518921(0x1d8)]||!this['_liveShareService']['shouldShareOperation'](_0x364fb1['id']))return;const {id:_0x499f91}=_0x364fb1;let _0x13833c;_0x32fec1['has'](_0x499f91)?_0x13833c=_0x32fec1[_0x518921(0x1a4)](_0x499f91):(_0x13833c=new _0x5cadb4(),_0x32fec1[_0x518921(0x1be)](_0x499f91,_0x13833c),_0x13833c[_0x518921(0x203)](_0x4e001a((_0x2df387=this[_0x518921(0x1fd)][_0x518921(0x1da)](Pe))!=null?_0x2df387:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2afce1=>{var _0xeb0325=_0x518921;this[_0xeb0325(0x195)][_0xeb0325(0x209)]({'eventID':_0x2f804e[_0xeb0325(0x1cc)],'data':{'unitID':this[_0xeb0325(0x1f1)],'operations':{[_0x2afce1['id']]:{'id':_0x2afce1['id'],'params':JSON[_0xeb0325(0x1cd)](_0x2afce1['params'])}}}},this[_0xeb0325(0x1f1)]);})),_0x13833c[_0x518921(0x1b1)](_0x364fb1);})),this[_0x1853df(0x19b)][_0x1853df(0x208)](this[_0x1853df(0x1f1)])[_0x1853df(0x1c7)](_0x53df0f=>this[_0x1853df(0x195)]['send']({'eventID':_0x2f804e[_0x1853df(0x1cc)],'data':{'unitID':this[_0x1853df(0x1f1)],'operations':{[_0x53df0f['id']]:{'id':_0x53df0f['id'],'params':JSON[_0x1853df(0x1cd)](_0x53df0f['params'])}}}},this[_0x1853df(0x1f1)]));}[_0x52f618(0x200)](){var _0x3e5f3a=_0x52f618,_0x32570f;this['_status$'][_0x3e5f3a(0x1b1)]('idle'),(_0x32570f=this[_0x3e5f3a(0x1f5)])==null||_0x32570f['dispose'](),this[_0x3e5f3a(0x1f5)]=null;}[_0x52f618(0x19d)](){var _0x5b2f61=_0x52f618,_0x133792;(_0x133792=this[_0x5b2f61(0x1f5)])==null||_0x133792[_0x5b2f61(0x1fe)](),this['_status$']['next'](_0x5b2f61(0x187));}[_0x52f618(0x1b4)](){var _0x3e420f=_0x52f618,_0x5af827;this[_0x3e420f(0x1d4)][_0x3e420f(0x1b1)]('idle'),(_0x5af827=this[_0x3e420f(0x1f5)])==null||_0x5af827[_0x3e420f(0x1fe)](),this[_0x3e420f(0x1f5)]=null;}[_0x52f618(0x1c0)](){var _0x427fde=_0x52f618,_0x238922;this[_0x427fde(0x1d4)][_0x427fde(0x1b1)](_0x427fde(0x198)),(_0x238922=this[_0x427fde(0x1f5)])==null||_0x238922[_0x427fde(0x1fe)]();}[_0x52f618(0x196)](_0x348d60){var _0x2fface=_0x52f618;if([_0x2fface(0x1b5),_0x2fface(0x198),_0x2fface(0x1f6)][_0x2fface(0x1d6)](this[_0x2fface(0x1c5)])||!_0x348d60[_0x2fface(0x1bc)][_0x2fface(0x1bd)]||_0x348d60['data']['presenter']===this['_collabSession'][_0x2fface(0x1c8)]())return;this['_status']==='idle'&&this['_startFollowing']();const _0xff0dbd=_0x348d60[_0x2fface(0x1bc)]['operations'];Object[_0x2fface(0x231)](_0xff0dbd)['forEach'](_0x1d2857=>{var _0x5634d5=_0x2fface;this[_0x5634d5(0x19a)][_0x5634d5(0x1d5)](_0x1d2857['id'],_0x1d2857['params']?JSON['parse'](_0x1d2857['params']):null,{'fromCollab':!0x0});});}[_0x52f618(0x1e2)](){var _0x357282=_0x52f618,_0x469d19;this[_0x357282(0x1d4)][_0x357282(0x1b1)](_0x357282(0x1f6)),(_0x469d19=this[_0x357282(0x1f5)])==null||_0x469d19[_0x357282(0x1fe)]();}[_0x52f618(0x22e)](){var _0x7a8111=_0x52f618;this[_0x7a8111(0x1d4)][_0x7a8111(0x1b1)](_0x7a8111(0x21a)),this['_fetchOperations']();}};w=Z([f(0x2,_0x44d386),f(0x3,_0x5b76c2(L)),f(0x4,_0x3c47e4)],w);function Te(){var _0x2cd437=_0x52f618;const _0x25f2a1=_0x131bc5(I),_0x16c1fa=_0x131bc5(_0x32b736),_0x191a1d=_0x3077c8(()=>_0x16c1fa[_0x2cd437(0x1c4)](_0x174153[_0x2cd437(0x18a)]),void 0x0,!0x1,[]),[_0x36638b,_0x4f4991]=_0x201ef0(null),[_0x4eec30,_0x439708]=_0x201ef0(h[_0x2cd437(0x1c9)]),_0x13833f=_0x956383(null);return _0x5abcd3(()=>(_0x191a1d&&_0x25f2a1['getLiveShareCoordinator'](_0x191a1d[_0x2cd437(0x226)]())['then'](_0x58baeb=>{var _0x5ebf4f=_0x2cd437;_0x4f4991(_0x58baeb),_0x13833f[_0x5ebf4f(0x211)]=_0x58baeb[_0x5ebf4f(0x1dd)]['subscribe'](_0x27f5fb=>{_0x439708(_0x27f5fb);});}),()=>{var _0x18bd0a=_0x2cd437,_0x459a10;(_0x459a10=_0x13833f[_0x18bd0a(0x211)])==null||_0x459a10[_0x18bd0a(0x1cb)](),_0x13833f[_0x18bd0a(0x211)]=null;}),[_0x191a1d,_0x25f2a1]),_0x36638b?_0x40000b(_0x2f5451,{'align':_0x2cd437(0x1f9),'disabled':_0x4eec30===h[_0x2cd437(0x1b9)],'className':_0x2cd437(0x1ad),'overlay':_0x40000b($e,{'status':_0x4eec30,'coordinator':_0x36638b}),'children':_0x40000b(_0x2cd437(0x217),{'className':_0x42fd34('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x4eec30===h[_0x2cd437(0x1b9)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4eec30!==h[_0x2cd437(0x1b9)]}),'type':_0x2cd437(0x217),'children':_0x40000b(B,{'className':_0x2cd437(0x1fb)})})}):null;}function $e(_0x42422e){var _0x385cf3=_0x52f618;const {status:_0x2af355,coordinator:_0x191f59}=_0x42422e;switch(_0x2af355){case h[_0x385cf3(0x1c9)]:return _0x40000b(Fe,{'coordinator':_0x191f59});case h['FOLLOWING']:return _0x40000b(He,{'coordinator':_0x191f59});case h['NOT_FOLLOWING']:return _0x40000b(je,{'coordinator':_0x191f59});case h[_0x385cf3(0x1b9)]:return _0x40000b(Ve,{});case h[_0x385cf3(0x19c)]:return _0x40000b(Ue,{'coordinator':_0x191f59});default:return null;}}function Fe(_0x588448){var _0x50b975=_0x52f618;const {coordinator:_0x47920c}=_0x588448;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x50b975(0x1f2),{'className':_0x50b975(0x20e),'children':_0x50b975(0x225)}),_0x40000b(_0xe015b0,{'onClick':()=>_0x47920c[_0x50b975(0x1ea)](),'children':_0x50b975(0x223)})]});}function He(_0xc284b4){var _0x201cfb=_0x52f618;const {coordinator:_0x34b28f}=_0xc284b4;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x201cfb(0x1f2),{'className':_0x201cfb(0x20e),'children':_0x201cfb(0x1ec)}),_0x40000b(_0xe015b0,{'onClick':()=>_0x34b28f[_0x201cfb(0x190)](),'children':_0x201cfb(0x21c)})]});}function je(_0x7130a7){var _0x47af74=_0x52f618;const {coordinator:_0x936c88}=_0x7130a7;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x47af74(0x1f2),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x40000b(_0xe015b0,{'variant':_0x47af74(0x1e6),'onClick':()=>_0x936c88[_0x47af74(0x18d)](),'children':_0x47af74(0x192)})]});}function Ue(_0x4382e9){var _0x428739=_0x52f618;const {coordinator:_0x4d9875}=_0x4382e9;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x428739(0x1f2),{'className':_0x428739(0x20e),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x40000b(_0xe015b0,{'variant':_0x428739(0x210),'onClick':()=>_0x4d9875[_0x428739(0x1dc)](),'children':_0x428739(0x189)})]});}function Ve(){var _0x2b7de5=_0x52f618;return _0x40000b(_0x4aa632,{'children':_0x2b7de5(0x1af)});}var Me=Object[_0x52f618(0x1d3)],ke=(_0xdc6e37,_0x19091d,_0x378a27,_0x4ddcaa)=>{var _0x197557=_0x52f618;for(var _0x3f28ce=_0x4ddcaa>0x1?void 0x0:_0x4ddcaa?Me(_0x19091d,_0x378a27):_0x19091d,_0x3db41f=_0xdc6e37[_0x197557(0x1ab)]-0x1,_0x5ebf42;_0x3db41f>=0x0;_0x3db41f--)(_0x5ebf42=_0xdc6e37[_0x3db41f])&&(_0x3f28ce=_0x5ebf42(_0x3f28ce)||_0x3f28ce);return _0x3f28ce;},$=(_0x465107,_0x2c75d0)=>(_0x22ec3f,_0x43cc29)=>_0x2c75d0(_0x22ec3f,_0x43cc29,_0x465107);let b=class extends _0x4d2b6f{constructor(_0x49f4e1,_0x51766d){var _0x167e68=_0x52f618;super(),this[_0x167e68(0x1e1)]=_0x49f4e1,this['_uiPartsService']=_0x51766d,this['_mountLiveShare']();}[_0x52f618(0x220)](){var _0x2f4c44=_0x52f618;this[_0x2f4c44(0x201)](this[_0x2f4c44(0x1b0)][_0x2f4c44(0x1f7)](_0x50ace2['HEADER_MENU'],()=>_0x4ee5c0(Te,this[_0x2f4c44(0x1e1)])));}};b=ke([$(0x0,_0x5b76c2(_0x5d2218)),$(0x1,_0x259a30)],b);var Ge=Object[_0x52f618(0x233)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x24304f,_0x12494d,_0x20c505)=>_0x12494d in _0x24304f?Ge(_0x24304f,_0x12494d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20c505}):_0x24304f[_0x12494d]=_0x20c505,Be=(_0x5db938,_0xc91b41,_0x5ef0f5,_0x33e17b)=>{for(var _0x50c8b8=_0x33e17b>0x1?void 0x0:_0x33e17b?We(_0xc91b41,_0x5ef0f5):_0xc91b41,_0x1824cd=_0x5db938['length']-0x1,_0x21ea9f;_0x1824cd>=0x0;_0x1824cd--)(_0x21ea9f=_0x5db938[_0x1824cd])&&(_0x50c8b8=_0x21ea9f(_0x50c8b8)||_0x50c8b8);return _0x50c8b8;},F=(_0x24ae69,_0x40c7f9)=>(_0x185378,_0x32e376)=>_0x40c7f9(_0x185378,_0x32e376,_0x24ae69),J=(_0x33f2c4,_0x33e91c,_0x46488c)=>Ye(_0x33f2c4,typeof _0x33e91c!=_0x52f618(0x1a1)?_0x33e91c+'':_0x33e91c,_0x46488c);const Ze=_0x52f618(0x22a);let O=class extends _0x26e656{constructor(_0x894bf4=T,_0x10e4ae,_0x2d519e){var _0xfc994e=_0x52f618;super(),this[_0xfc994e(0x22f)]=_0x894bf4,this['_injector']=_0x10e4ae,this[_0xfc994e(0x1fd)]=_0x2d519e;const {..._0x2a10b5}=_0x2cad00({},T,this[_0xfc994e(0x22f)]);this['_configService'][_0xfc994e(0x1ee)](Oe,_0x2a10b5);}[_0x52f618(0x1de)](){var _0x2d6abc=_0x52f618;_0x153635(this['_injector'],_0x2088e7([[L],[I],[m],[b]],this[_0x2d6abc(0x22f)][_0x2d6abc(0x1a5)])),_0xd0dab7(this['_injector'],[[m]]);}[_0x52f618(0x1ef)](){var _0x596771=_0x52f618;_0xd0dab7(this[_0x596771(0x1e1)],[[b]]);}};function _0x56cb(_0x4279c1,_0x9bf0aa){var _0x3701d8=_0x3701();return _0x56cb=function(_0x56cb7d,_0xcc5148){_0x56cb7d=_0x56cb7d-0x182;var _0x5ed63d=_0x3701d8[_0x56cb7d];return _0x5ed63d;},_0x56cb(_0x4279c1,_0x9bf0aa);}J(O,_0x52f618(0x20d),_0x174153['UNIVER_UNKNOWN']),J(O,_0x52f618(0x184),Ze),O=Be([_0x3ab6ef(_0x4f23e0),F(0x1,_0x5b76c2(_0x5d2218)),F(0x2,_0x44d386)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x354a21=_0x5e3d;(function(_0x42ea0c,_0xf09afa){var _0x50ae93=_0x5e3d,_0x5cb415=_0x42ea0c();while(!![]){try{var _0x33710c=-parseInt(_0x50ae93(0xe8))/0x1*(-parseInt(_0x50ae93(0x87))/0x2)+-parseInt(_0x50ae93(0xd4))/0x3+-parseInt(_0x50ae93(0xfd))/0x4+-parseInt(_0x50ae93(0x81))/0x5+parseInt(_0x50ae93(0x9a))/0x6*(-parseInt(_0x50ae93(0xf9))/0x7)+-parseInt(_0x50ae93(0xb0))/0x8*(parseInt(_0x50ae93(0x111))/0x9)+parseInt(_0x50ae93(0x7b))/0xa;if(_0x33710c===_0xf09afa)break;else _0x5cb415['push'](_0x5cb415['shift']());}catch(_0x2c421f){_0x5cb415['push'](_0x5cb415['shift']());}}}(_0x2f1e,0x8980f));var q=Object[_0x354a21(0x8e)],z=(_0x24b255,_0x2a504b,_0xed401f)=>_0x2a504b in _0x24b255?q(_0x24b255,_0x2a504b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xed401f}):_0x24b255[_0x2a504b]=_0xed401f,d=(_0x22395e,_0xa8bb81,_0x3740af)=>z(_0x22395e,typeof _0xa8bb81!=_0x354a21(0x100)?_0xa8bb81+'':_0xa8bb81,_0x3740af);import{CollaborationSessionService as _0x2f2920,SessionStatus as _0x9139c,UniverCollaborationClientPlugin as _0x21d6c8}from'@univerjs-pro/collaboration-client';import{Disposable as _0x386ab1,toDisposable as _0x4e9940,Inject as _0x2e9116,IUniverInstanceService as _0x3e21b2,Injector as _0x3ed045,IConfigService as _0x400c78,ICommandService as _0x12a0d1,RxDisposable as _0xe43e0f,UniverInstanceType as _0x91c20b,DisposableCollection as _0x548b5a,CommandType as _0x17d476,DependentOn as _0x3a2df0,Plugin as _0x180c7f,merge as _0x1b238c,registerDependencies as _0x343fdf,mergeOverrideWithDependencies as _0x4d4ce2,touchDependencies as _0x4a7fc6}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x46b160,InsertSheetMutation as _0x5124c6}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x173fb2,SetScrollOperation as _0x151ccb}from'@univerjs/sheets-ui';import{useDependency as _0x4d223b,useObservable as _0x554762,IUIPartsService as _0x4f05c6,BuiltInUIPart as _0x41322a,connectInjector as _0x58975f}from'@univerjs/ui';import{jsx as _0x4ec8b9,jsxs as _0x4fbbd0,Fragment as _0x1f4bc6}from'react/jsx-runtime';import{Dropdown as _0x22ede1,clsx as _0x340399,Button as _0x5cd01a}from'@univerjs/design';import{forwardRef as _0x181f4e,useRef as _0x504991,createElement as _0x2b1318,useState as _0x2774ba,useEffect as _0x431a79}from'react';import{CollaborationEvent as _0x596cfa,parseProtocolChangeset as _0x368b63}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x37ddb3,Subject as _0x34a5f6}from'rxjs';import{takeUntil as _0x3a462a,throttleTime as _0x195d49}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x386ab1{constructor(){super(...arguments),d(this,'_sharedOperations',new Set()),d(this,'_reporters',new Set());}['registerSharedOperation'](_0x16f132){var _0x49e204=_0x354a21;return this[_0x49e204(0xab)][_0x49e204(0x11a)](_0x16f132),_0x4e9940(()=>this[_0x49e204(0xab)]['delete'](_0x16f132));}[_0x354a21(0x83)](_0x159d03){var _0x329793=_0x354a21;return this[_0x329793(0x9b)][_0x329793(0x11a)](_0x159d03),_0x4e9940(()=>this[_0x329793(0x9b)][_0x329793(0x11c)](_0x159d03));}['shouldShareOperation'](_0x5a211f){var _0x37bcb2=_0x354a21;return this[_0x37bcb2(0xab)][_0x37bcb2(0xd3)](_0x5a211f);}['getInitialStates'](_0x397694){var _0x1895cc=_0x354a21;return Array[_0x1895cc(0xaa)](this[_0x1895cc(0x9b)])['map'](_0x38c17c=>_0x38c17c(_0x397694));}}var Ee=Object[_0x354a21(0x10d)],we=(_0x30604d,_0x33850d,_0x2f3c62,_0x4653c3)=>{for(var _0x16a695=_0x4653c3>0x1?void 0x0:_0x4653c3?Ee(_0x33850d,_0x2f3c62):_0x33850d,_0xe42d97=_0x30604d['length']-0x1,_0x5194fe;_0xe42d97>=0x0;_0xe42d97--)(_0x5194fe=_0x30604d[_0xe42d97])&&(_0x16a695=_0x5194fe(_0x16a695)||_0x16a695);return _0x16a695;},Ne=(_0xfbaf80,_0x50789e)=>(_0x4e06b6,_0x1184bf)=>_0x50789e(_0x4e06b6,_0x1184bf,_0xfbaf80);let m=class extends _0x386ab1{constructor(_0x1596a5){var _0x25def4=_0x354a21;super(),this[_0x25def4(0xde)]=_0x1596a5,this[_0x25def4(0xc4)]();}[_0x354a21(0xc4)](){var _0x5517b5=_0x354a21;[_0x173fb2['id'],_0x151ccb['id'],_0x46b160['id']][_0x5517b5(0xc3)](_0x598fab=>{var _0x1e0db0=_0x5517b5;this[_0x1e0db0(0xc5)](this[_0x1e0db0(0xde)]['registerSharedOperation'](_0x598fab));});}};m=we([Ne(0x0,_0x2e9116(L))],m);var c=function(){var _0x1d9203=_0x354a21;return c=Object[_0x1d9203(0x117)]||function(_0x171c2c){var _0x3898b1=_0x1d9203;for(var _0x11f0c8,_0x4dc5c6=0x1,_0xa6c669=arguments['length'];_0x4dc5c6<_0xa6c669;_0x4dc5c6++){_0x11f0c8=arguments[_0x4dc5c6];for(var _0x3cdde8 in _0x11f0c8)Object[_0x3898b1(0xfb)][_0x3898b1(0x78)][_0x3898b1(0x9d)](_0x11f0c8,_0x3cdde8)&&(_0x171c2c[_0x3cdde8]=_0x11f0c8[_0x3cdde8]);}return _0x171c2c;},c[_0x1d9203(0xc7)](this,arguments);},Ce=function(_0x12fb1f,_0x2b493c){var _0x364958=_0x354a21,_0x293e91={};for(var _0x5cf627 in _0x12fb1f)Object['prototype']['hasOwnProperty'][_0x364958(0x9d)](_0x12fb1f,_0x5cf627)&&_0x2b493c[_0x364958(0xbf)](_0x5cf627)<0x0&&(_0x293e91[_0x5cf627]=_0x12fb1f[_0x5cf627]);if(_0x12fb1f!=null&&typeof Object['getOwnPropertySymbols']==_0x364958(0x96)){for(var _0x49a5fe=0x0,_0x5cf627=Object[_0x364958(0xcd)](_0x12fb1f);_0x49a5fe<_0x5cf627[_0x364958(0x88)];_0x49a5fe++)_0x2b493c[_0x364958(0xbf)](_0x5cf627[_0x49a5fe])<0x0&&Object[_0x364958(0xfb)][_0x364958(0xe5)][_0x364958(0x9d)](_0x12fb1f,_0x5cf627[_0x49a5fe])&&(_0x293e91[_0x5cf627[_0x49a5fe]]=_0x12fb1f[_0x5cf627[_0x49a5fe]]);}return _0x293e91;},W=_0x181f4e(function(_0x50d3db,_0x392eea){var _0x4d4739=_0x354a21,_0x433d8f=_0x50d3db[_0x4d4739(0xa1)],_0x354cd9=_0x50d3db['id'],_0x524d98=_0x50d3db[_0x4d4739(0xe9)],_0x3f9b8a=_0x50d3db[_0x4d4739(0x11d)],_0x2e201f=Ce(_0x50d3db,['icon','id',_0x4d4739(0xe9),_0x4d4739(0x11d)]),_0x3c7b0b=_0x4d4739(0xe4)[_0x4d4739(0xf7)](_0x354cd9,'\x20')[_0x4d4739(0xf7)](_0x524d98||'')[_0x4d4739(0x93)](),_0x3e6e58=_0x504991('_'['concat'](Le()));return Y(_0x433d8f,''[_0x4d4739(0xf7)](_0x354cd9),{'defIds':_0x433d8f[_0x4d4739(0xe6)],'idSuffix':_0x3e6e58['current']},c({'ref':_0x392eea,'className':_0x3c7b0b},_0x2e201f),_0x3f9b8a);});function Y(_0x28991c,_0x23d957,_0x33ea1a,_0xa9378,_0x4d2846){var _0x2fbabc=_0x354a21;return _0x2b1318(_0x28991c['tag'],c(c({'key':_0x23d957},De(_0x28991c,_0x33ea1a,_0x4d2846)),_0xa9378),(xe(_0x28991c,_0x33ea1a)[_0x2fbabc(0xa3)]||[])['map'](function(_0x43a4b1,_0x500695){var _0x55bcc5=_0x2fbabc;return Y(_0x43a4b1,''[_0x55bcc5(0xf7)](_0x23d957,'-')[_0x55bcc5(0xf7)](_0x28991c[_0x55bcc5(0xdb)],'-')[_0x55bcc5(0xf7)](_0x500695),_0x33ea1a,void 0x0,_0x4d2846);}));}function De(_0x39334a,_0x5ec049,_0x394462){var _0x14ef9f=_0x354a21,_0x1d1479=c({},_0x39334a[_0x14ef9f(0xef)]);_0x394462!=null&&_0x394462[_0x14ef9f(0xe0)]&&_0x1d1479[_0x14ef9f(0x11e)]===_0x14ef9f(0xe0)&&(_0x1d1479[_0x14ef9f(0x11e)]=_0x394462[_0x14ef9f(0xe0)]),_0x39334a[_0x14ef9f(0xdb)]===_0x14ef9f(0x79)&&_0x1d1479['id']&&(_0x1d1479['id']=_0x1d1479['id']+_0x5ec049[_0x14ef9f(0xba)]),Object['entries'](_0x1d1479)[_0x14ef9f(0xc3)](function(_0x1a3bc9){var _0x22b79f=_0x14ef9f,_0x136a88=_0x1a3bc9[0x0],_0xabd44e=_0x1a3bc9[0x1];_0x136a88===_0x22b79f(0x79)&&typeof _0xabd44e==_0x22b79f(0xd5)&&(_0x1d1479[_0x136a88]=_0xabd44e[_0x22b79f(0xb3)](/url\(#(.*)\)/,_0x22b79f(0x10a)['concat'](_0x5ec049['idSuffix'],')')));});var _0x1f4b43=_0x5ec049[_0x14ef9f(0xe6)];return!_0x1f4b43||_0x1f4b43[_0x14ef9f(0x88)]===0x0||(_0x39334a[_0x14ef9f(0xdb)]===_0x14ef9f(0xa0)&&_0x1d1479[_0x14ef9f(0xa4)]&&(_0x1d1479['xlink:href']=_0x1d1479[_0x14ef9f(0xa4)]+_0x5ec049[_0x14ef9f(0xba)]),Object[_0x14ef9f(0xb2)](_0x1d1479)[_0x14ef9f(0xc3)](function(_0x22055a){var _0x11815c=_0x14ef9f,_0x11ddbc=_0x22055a[0x0],_0x31be98=_0x22055a[0x1];typeof _0x31be98==_0x11815c(0xd5)&&(_0x1d1479[_0x11ddbc]=_0x31be98[_0x11815c(0xb3)](/url\(#(.*)\)/,'url(#$1'[_0x11815c(0xf7)](_0x5ec049[_0x11815c(0xba)],')')));})),_0x1d1479;}function xe(_0x321c56,_0x110046){var _0x4bf98d=_0x354a21,_0x3d07de,_0x1f0f39=_0x110046[_0x4bf98d(0xe6)];return!_0x1f0f39||_0x1f0f39['length']===0x0?_0x321c56:_0x321c56[_0x4bf98d(0xdb)]===_0x4bf98d(0xae)&&(!((_0x3d07de=_0x321c56['children'])===null||_0x3d07de===void 0x0)&&_0x3d07de[_0x4bf98d(0x88)])?c(c({},_0x321c56),{'children':_0x321c56[_0x4bf98d(0xa3)][_0x4bf98d(0xc9)](function(_0x14a4c7){var _0x32307e=_0x4bf98d;return typeof _0x14a4c7['attrs']['id']==_0x32307e(0xd5)&&_0x1f0f39&&_0x1f0f39[_0x32307e(0xcc)](_0x14a4c7[_0x32307e(0xef)]['id'])?c(c({},_0x14a4c7),{'attrs':c(c({},_0x14a4c7[_0x32307e(0xef)]),{'id':_0x14a4c7[_0x32307e(0xef)]['id']+_0x110046['idSuffix']})}):_0x14a4c7;})}):_0x321c56;}function _0x2f1e(){var _0xfef51c=['UNIVER_SHEET','idle','univer-w-full\x20univer-mb-3\x20univer-text-sm','univer-size-4','attrs','OPERATION','live-share-icon','1em','getConfig','LIVESHARE_TERMINATE','getMemberID','_uiPartsService','concat','IDLE','1157401MZCOvK','clear','prototype','presenter','1940972OjvKFm','_handleOperation','currentColor','symbol','button','UniverIcon','set','operations','type','createInstance','startFollowing','reverse','offline','url(#$1','_stopFollowing','random','getOwnPropertyDescriptor','toString','presenting','FOLLOWING','5065659GnCDkB','HEADER_MENU','PRESENTING','_startLiveShareCoordinator','stopPresenting','getLiveShareCoordinator','assign','_handleTerminate','getInitialStates','add','next','delete','extend','fill','LIVESHARE_REQUEST_HOST','tryStartPresenting','following','You\x27re\x20following\x20the\x20presenter','sessionStatus$','params','asObservable','0\x200\x2017\x2017','values','hasOwnProperty','mask','_collabSession','17701960LVSEhB','subscribe','stopFollowing','get','_presenter','parse','2741595DGnnrQ','NOT_FOLLOWING','registerInitialStateReporter','_univerInstanceService','mutations','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','2NewVHq','length','_stopPresenting','_fetchOperations','Stop\x20following','status$','not-following','defineProperty','You\x27re\x20presenting\x20the\x20document','_startPresenting','_handleNewChangeSets','_unitID','trim','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','data','function','_startFollowing','onStarting','pluginName','6CLiUjZ','_reporters','init','call','getUnitId','_mountLiveShare','use','icon','sheet','children','xlink:href','getCurrentTypeOfUnit$','find','then','_handleNewHost','dispose','from','_sharedOperations','LIVESHARE_OPERATION','Start\x20following','defs','Present\x20this\x20document','8PFPCUo','UNIVER_UNKNOWN','entries','replace','_entities','stringify','LiveShareIcon','LIVESHARE_FETCH_OPERATIONS','send','override','idSuffix','end','getTypeOfUnitDisposed$','_commandDisposable','default','indexOf','_injector','dispose$','current','forEach','_init','disposeWithMe','evenodd','apply','text','map','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','pipe','includes','getOwnPropertySymbols','div','OFFLINE','path','substring','_configService','has','1364991DwLkhC','string','shouldShareOperation','_beIdle','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','executeCommand','_status','tag','unsubscribe','setConfig','_liveShareService','Start','colorChannel1','_config','registerComponent','_commandService','univerjs-icon\x20univerjs-icon-','propertyIsEnumerable','defIds','_handleOnline','1009772HQTsnY','className','_status$'];_0x2f1e=function(){return _0xfef51c;};return _0x2f1e();}function Le(){var _0x57eecd=_0x354a21;return Math[_0x57eecd(0x10c)]()[_0x57eecd(0x10e)](0x24)[_0x57eecd(0xd1)](0x2,0x8);}W['displayName']=_0x354a21(0x102);var ye={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x354a21(0x76),'width':_0x354a21(0xf2),'height':_0x354a21(0xf2)},'children':[{'tag':_0x354a21(0xd0),'attrs':{'fill':_0x354a21(0xff),'d':_0x354a21(0xd8)}},{'tag':_0x354a21(0xd0),'attrs':{'fill':'currentColor','d':_0x354a21(0x86),'fillRule':_0x354a21(0xc6),'clipRule':_0x354a21(0xc6)}}]},B=_0x181f4e(function(_0x9cd61d,_0x5dc91e){var _0x4ed9fb=_0x354a21;return _0x2b1318(W,Object['assign']({},_0x9cd61d,{'id':_0x4ed9fb(0xf1),'ref':_0x5dc91e,'icon':ye}));});B['displayName']=_0x354a21(0xb6);var Re=Object[_0x354a21(0x10d)],Z=(_0x3d0695,_0x580276,_0x32d07a,_0x539db0)=>{for(var _0x3a2fc9=_0x539db0>0x1?void 0x0:_0x539db0?Re(_0x580276,_0x32d07a):_0x580276,_0x45905e=_0x3d0695['length']-0x1,_0x566aa1;_0x45905e>=0x0;_0x45905e--)(_0x566aa1=_0x3d0695[_0x45905e])&&(_0x3a2fc9=_0x566aa1(_0x3a2fc9)||_0x3a2fc9);return _0x3a2fc9;},f=(_0x28d168,_0x3bff7f)=>(_0xd6d1ee,_0x1850da)=>_0x3bff7f(_0xd6d1ee,_0x1850da,_0x28d168);let I=class extends _0xe43e0f{constructor(_0x460b57,_0x226062,_0x1753f0){var _0x870dfe=_0x354a21;super(),d(this,_0x870dfe(0xb4),new Map()),(this[_0x870dfe(0x84)]=_0x460b57,this[_0x870dfe(0xc0)]=_0x226062,this['_collabSessionService']=_0x1753f0,this[_0x870dfe(0xc4)]());}async['getLiveShareCoordinator'](_0x3c9c6c){var _0x4ecfef=_0x354a21;return this[_0x4ecfef(0xb4)][_0x4ecfef(0xd3)](_0x3c9c6c)||await this['_startLiveShareCoordinator'](_0x3c9c6c),this['_entities'][_0x4ecfef(0x7e)](_0x3c9c6c);}[_0x354a21(0xc4)](){var _0x21633e=_0x354a21;this[_0x21633e(0x84)]['getTypeOfUnitAdded$'](_0x91c20b[_0x21633e(0xeb)])['pipe'](_0x3a462a(this[_0x21633e(0xc1)]))['subscribe'](async _0x176e43=>{var _0x22f717=_0x21633e;const _0x10d1e6=_0x176e43[_0x22f717(0x9e)]();this[_0x22f717(0xb4)][_0x22f717(0xd3)](_0x10d1e6)||this[_0x22f717(0x114)](_0x10d1e6);}),this[_0x21633e(0x84)][_0x21633e(0xbc)](_0x91c20b['UNIVER_SHEET'])[_0x21633e(0xcb)](_0x3a462a(this[_0x21633e(0xc1)]))[_0x21633e(0x7c)](_0x48505f=>{var _0x10a7d4=_0x21633e;const _0x432efe=_0x48505f['getUnitId'](),_0x5a6aa0=this['_entities'][_0x10a7d4(0x7e)](_0x432efe);_0x5a6aa0==null||_0x5a6aa0[_0x10a7d4(0xa9)]();});}async['_startLiveShareCoordinator'](_0x4d52d7){var _0x2aa13d=_0x354a21;const _0x1705e7=await this['_collabSessionService']['requireSession'](_0x4d52d7),_0x509425=this[_0x2aa13d(0xc0)][_0x2aa13d(0x106)](C,_0x4d52d7,_0x1705e7);return _0x509425[_0x2aa13d(0x9c)](),this['_entities'][_0x2aa13d(0x103)](_0x4d52d7,_0x509425),_0x509425;}};I=Z([f(0x0,_0x3e21b2),f(0x1,_0x2e9116(_0x3ed045)),f(0x2,_0x2e9116(_0x2f2920))],I);var h=(_0x4246d6=>(_0x4246d6[_0x354a21(0xcf)]=_0x354a21(0x109),_0x4246d6[_0x354a21(0xf8)]=_0x354a21(0xec),_0x4246d6['FOLLOWING']=_0x354a21(0x71),_0x4246d6['NOT_FOLLOWING']='not-following',_0x4246d6[_0x354a21(0x113)]=_0x354a21(0x10f),_0x4246d6))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0xe43e0f{constructor(_0x1cd1c1,_0x4df30b,_0x1336ae,_0x5194cd,_0xfc6b4f){var _0x43d645=_0x354a21;super(),d(this,_0x43d645(0xea),new _0x37ddb3(_0x43d645(0xec))),d(this,_0x43d645(0x8c),this[_0x43d645(0xea)][_0x43d645(0x75)]()),d(this,_0x43d645(0xc4),!0x1),d(this,_0x43d645(0xbd),null),d(this,_0x43d645(0x7f),null),(this['_unitID']=_0x1cd1c1,this['_collabSession']=_0x4df30b,this[_0x43d645(0xd2)]=_0x1336ae,this[_0x43d645(0xde)]=_0x5194cd,this[_0x43d645(0xe3)]=_0xfc6b4f);}get[_0x354a21(0xda)](){var _0x2e97c8=_0x354a21;return this[_0x2e97c8(0xea)]['getValue']();}[_0x354a21(0xa9)](){var _0x4976f2=_0x354a21,_0x213fa6;(_0x213fa6=this['_commandDisposable'])==null||_0x213fa6[_0x4976f2(0xa9)](),this[_0x4976f2(0xea)][_0x4976f2(0x11b)](_0x4976f2(0xec)),this[_0x4976f2(0xea)]['complete']();}['init'](){var _0x56d491=_0x354a21;this['_init']||(this[_0x56d491(0xc4)]=!0x0,this['_collabSession'][_0x56d491(0x73)]['pipe'](_0x3a462a(this['dispose$']))[_0x56d491(0x7c)](_0x3391c3=>{var _0x2031ec=_0x56d491;switch(_0x3391c3){case _0x9139c[_0x2031ec(0xcf)]:this['_handleOffline']();break;case _0x9139c['ONLINE']:this[_0x2031ec(0xe7)]();break;}}),this[_0x56d491(0x7a)]['event$']['pipe'](_0x3a462a(this[_0x56d491(0xc1)]))['subscribe'](_0x378988=>{var _0x44d51b=_0x56d491;const {eventID:_0x3efcb9}=_0x378988;switch(_0x3efcb9){case _0x596cfa['LIVESHARE_NEW_HOST']:this[_0x44d51b(0xa8)](_0x378988);break;case _0x596cfa['LIVESHARE_OPERATION']:this[_0x44d51b(0xfe)](_0x378988);break;case _0x596cfa[_0x44d51b(0xf4)]:this['_handleTerminate']();break;case _0x596cfa['NEW_CHANGESETS']:this[_0x44d51b(0x91)](_0x378988);break;}}));}[_0x354a21(0x70)](){var _0x542d34=_0x354a21;this[_0x542d34(0x7a)][_0x542d34(0xb8)]({'eventID':_0x596cfa[_0x542d34(0x6f)],'data':{'unitID':this[_0x542d34(0x92)],'userID':this[_0x542d34(0x7a)][_0x542d34(0xf5)]()}},this[_0x542d34(0x92)]);}[_0x354a21(0x115)](){var _0x36065e=_0x354a21;this[_0x36065e(0xda)]==='presenting'&&(this[_0x36065e(0xea)][_0x36065e(0x11b)](_0x36065e(0xec)),this['_collabSession'][_0x36065e(0xb8)]({'eventID':_0x596cfa['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x36065e(0x92)]}},this[_0x36065e(0x92)]));}[_0x354a21(0x107)](){var _0x46100c=_0x354a21;this[_0x46100c(0xda)]==='not-following'&&(this['_status$'][_0x46100c(0x11b)](_0x46100c(0x71)),this[_0x46100c(0x97)]());}[_0x354a21(0x7d)](){var _0x181af0=_0x354a21;this[_0x181af0(0xda)]===_0x181af0(0x71)&&this[_0x181af0(0x10b)]();}['_handleNewHost'](_0x28b182){var _0x12d1ce=_0x354a21;const {presenter:_0x5d8bd2}=_0x28b182[_0x12d1ce(0x95)],_0x18cd39=this[_0x12d1ce(0x7a)][_0x12d1ce(0xf5)]();this[_0x12d1ce(0x7f)]=_0x5d8bd2,_0x5d8bd2===_0x18cd39?(this[_0x12d1ce(0x10b)](),this[_0x12d1ce(0x90)]()):this['_status']!==_0x12d1ce(0x8d)&&(this[_0x12d1ce(0x89)](),this[_0x12d1ce(0x97)]());}[_0x354a21(0x8a)](){var _0x2a1de0=_0x354a21;const _0x12dc7c={'eventID':_0x596cfa[_0x2a1de0(0xb7)]};this['_collabSession'][_0x2a1de0(0xb8)](_0x12dc7c,this[_0x2a1de0(0x92)]);}[_0x354a21(0x118)](){var _0x5ea510=_0x354a21;this[_0x5ea510(0x7f)]=null,this['_status']!==_0x5ea510(0x10f)&&this[_0x5ea510(0xd7)]();}[_0x354a21(0x91)](_0x3c3301){var _0x266d25=_0x354a21;if(this[_0x266d25(0xda)]==='following'&&this['_presenter']===_0x3c3301['data']['memberID']){const _0x44f9e6=_0x368b63(_0x3c3301['data'])[_0x266d25(0x85)][_0x266d25(0x108)]()[_0x266d25(0xa6)](_0x30bc32=>_0x30bc32['id']===_0x5124c6['id']);if(_0x44f9e6){const _0x33ab5d=_0x44f9e6['params']['unitId'],_0x5dcf29=_0x44f9e6['params'][_0x266d25(0xa2)]['id'];setTimeout(()=>{var _0x3a9eae=_0x266d25;this['_commandService'][_0x3a9eae(0xd9)](_0x46b160['id'],{'unitId':_0x33ab5d,'subUnitId':_0x5dcf29},{'fromCollab':!0x0});});}}}[_0x354a21(0x90)](){var _0x410531=_0x354a21;this['_status$']['next'](_0x410531(0x10f));const _0x1da2f6=new Map(),_0x3a467d=this['_commandDisposable']=new _0x548b5a();_0x3a467d[_0x410531(0x11a)](_0x4e9940(()=>{var _0x103802=_0x410531;_0x1da2f6[_0x103802(0xc3)](_0x41aea7=>_0x41aea7['complete']()),_0x1da2f6[_0x103802(0xfa)]();})),_0x3a467d[_0x410531(0x11a)](this[_0x410531(0xe3)]['onCommandExecuted'](_0x134b27=>{var _0x2fbf03=_0x410531,_0x4a5349;if(_0x134b27[_0x2fbf03(0x105)]!==_0x17d476[_0x2fbf03(0xf0)]||!this[_0x2fbf03(0xde)][_0x2fbf03(0xd6)](_0x134b27['id']))return;const {id:_0x32b213}=_0x134b27;let _0x34dc7b;_0x1da2f6[_0x2fbf03(0xd3)](_0x32b213)?_0x34dc7b=_0x1da2f6['get'](_0x32b213):(_0x34dc7b=new _0x34a5f6(),_0x1da2f6[_0x2fbf03(0x103)](_0x32b213,_0x34dc7b),_0x34dc7b[_0x2fbf03(0xcb)](_0x195d49((_0x4a5349=this[_0x2fbf03(0xd2)][_0x2fbf03(0xf3)](Pe))!=null?_0x4a5349:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2fbf03(0x7c)](_0x55acbd=>{var _0x476287=_0x2fbf03;this[_0x476287(0x7a)][_0x476287(0xb8)]({'eventID':_0x596cfa[_0x476287(0xac)],'data':{'unitID':this[_0x476287(0x92)],'operations':{[_0x55acbd['id']]:{'id':_0x55acbd['id'],'params':JSON[_0x476287(0xb5)](_0x55acbd[_0x476287(0x74)])}}}},this['_unitID']);})),_0x34dc7b[_0x2fbf03(0x11b)](_0x134b27);})),this[_0x410531(0xde)][_0x410531(0x119)](this[_0x410531(0x92)])['forEach'](_0x55ee37=>this[_0x410531(0x7a)][_0x410531(0xb8)]({'eventID':_0x596cfa[_0x410531(0xac)],'data':{'unitID':this[_0x410531(0x92)],'operations':{[_0x55ee37['id']]:{'id':_0x55ee37['id'],'params':JSON[_0x410531(0xb5)](_0x55ee37['params'])}}}},this[_0x410531(0x92)]));}[_0x354a21(0x89)](){var _0x5ba1dc=_0x354a21,_0x349934;this['_status$']['next'](_0x5ba1dc(0xec)),(_0x349934=this[_0x5ba1dc(0xbd)])==null||_0x349934[_0x5ba1dc(0xa9)](),this['_commandDisposable']=null;}['_startFollowing'](){var _0x332d63=_0x354a21,_0x4aa722;(_0x4aa722=this['_commandDisposable'])==null||_0x4aa722[_0x332d63(0xa9)](),this['_status$'][_0x332d63(0x11b)](_0x332d63(0x71));}[_0x354a21(0xd7)](){var _0x1b69d0=_0x354a21,_0x1d7e60;this[_0x1b69d0(0xea)][_0x1b69d0(0x11b)](_0x1b69d0(0xec)),(_0x1d7e60=this[_0x1b69d0(0xbd)])==null||_0x1d7e60[_0x1b69d0(0xa9)](),this['_commandDisposable']=null;}[_0x354a21(0x10b)](){var _0x11d96e=_0x354a21,_0x29c071;this[_0x11d96e(0xea)]['next'](_0x11d96e(0x8d)),(_0x29c071=this[_0x11d96e(0xbd)])==null||_0x29c071[_0x11d96e(0xa9)]();}[_0x354a21(0xfe)](_0x4e1f31){var _0x2a6c91=_0x354a21;if([_0x2a6c91(0x10f),_0x2a6c91(0x8d),'offline'][_0x2a6c91(0xcc)](this[_0x2a6c91(0xda)])||!_0x4e1f31['data'][_0x2a6c91(0xfc)]||_0x4e1f31[_0x2a6c91(0x95)][_0x2a6c91(0xfc)]===this[_0x2a6c91(0x7a)][_0x2a6c91(0xf5)]())return;this['_status']===_0x2a6c91(0xec)&&this[_0x2a6c91(0x97)]();const _0x5b26e8=_0x4e1f31[_0x2a6c91(0x95)][_0x2a6c91(0x104)];Object[_0x2a6c91(0x77)](_0x5b26e8)[_0x2a6c91(0xc3)](_0x11324d=>{var _0x403fba=_0x2a6c91;this['_commandService'][_0x403fba(0xd9)](_0x11324d['id'],_0x11324d[_0x403fba(0x74)]?JSON[_0x403fba(0x80)](_0x11324d[_0x403fba(0x74)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x31ee87=_0x354a21,_0x51c06e;this[_0x31ee87(0xea)][_0x31ee87(0x11b)](_0x31ee87(0x109)),(_0x51c06e=this[_0x31ee87(0xbd)])==null||_0x51c06e[_0x31ee87(0xa9)]();}['_handleOnline'](){var _0xcd5451=_0x354a21;this[_0xcd5451(0xea)][_0xcd5451(0x11b)](_0xcd5451(0xec)),this[_0xcd5451(0x8a)]();}};C=Z([f(0x2,_0x400c78),f(0x3,_0x2e9116(L)),f(0x4,_0x12a0d1)],C);function Te(){var _0x4ff75b=_0x354a21;const _0x41099d=_0x4d223b(I),_0x4e92d7=_0x4d223b(_0x3e21b2),_0x1c5635=_0x554762(()=>_0x4e92d7[_0x4ff75b(0xa5)](_0x91c20b[_0x4ff75b(0xeb)]),void 0x0,!0x1,[]),[_0xdd1fda,_0x313715]=_0x2774ba(null),[_0x344ff0,_0x52e206]=_0x2774ba(h['IDLE']),_0x3bed0a=_0x504991(null);return _0x431a79(()=>(_0x1c5635&&_0x41099d[_0x4ff75b(0x116)](_0x1c5635[_0x4ff75b(0x9e)]())[_0x4ff75b(0xa7)](_0x72787a=>{var _0x17f8d5=_0x4ff75b;_0x313715(_0x72787a),_0x3bed0a[_0x17f8d5(0xc2)]=_0x72787a['status$'][_0x17f8d5(0x7c)](_0x5c8ffa=>{_0x52e206(_0x5c8ffa);});}),()=>{var _0xbd1ba7=_0x4ff75b,_0x11e90e;(_0x11e90e=_0x3bed0a[_0xbd1ba7(0xc2)])==null||_0x11e90e[_0xbd1ba7(0xdc)](),_0x3bed0a[_0xbd1ba7(0xc2)]=null;}),[_0x1c5635,_0x41099d]),_0xdd1fda?_0x4ec8b9(_0x22ede1,{'align':_0x4ff75b(0xbb),'disabled':_0x344ff0===h[_0x4ff75b(0xcf)],'className':_0x4ff75b(0xca),'overlay':_0x4ec8b9($e,{'status':_0x344ff0,'coordinator':_0xdd1fda}),'children':_0x4ec8b9(_0x4ff75b(0x101),{'className':_0x340399(_0x4ff75b(0x94),{'univer-cursor-not-allowed':_0x344ff0===h[_0x4ff75b(0xcf)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x344ff0!==h[_0x4ff75b(0xcf)]}),'type':'button','children':_0x4ec8b9(B,{'className':_0x4ff75b(0xee)})})}):null;}function $e(_0x5a85f3){var _0x38beb6=_0x354a21;const {status:_0x15bb76,coordinator:_0xc5393}=_0x5a85f3;switch(_0x15bb76){case h['IDLE']:return _0x4ec8b9(Fe,{'coordinator':_0xc5393});case h[_0x38beb6(0x110)]:return _0x4ec8b9(He,{'coordinator':_0xc5393});case h[_0x38beb6(0x82)]:return _0x4ec8b9(je,{'coordinator':_0xc5393});case h[_0x38beb6(0xcf)]:return _0x4ec8b9(Ve,{});case h[_0x38beb6(0x113)]:return _0x4ec8b9(Ue,{'coordinator':_0xc5393});default:return null;}}function Fe(_0x1dd529){var _0x290c41=_0x354a21;const {coordinator:_0x4b08e5}=_0x1dd529;return _0x4fbbd0(_0x1f4bc6,{'children':[_0x4ec8b9(_0x290c41(0xce),{'className':_0x290c41(0xed),'children':_0x290c41(0xaf)}),_0x4ec8b9(_0x5cd01a,{'onClick':()=>_0x4b08e5[_0x290c41(0x70)](),'children':_0x290c41(0xdf)})]});}function He(_0x20b0b3){var _0x3c11dc=_0x354a21;const {coordinator:_0x43eff9}=_0x20b0b3;return _0x4fbbd0(_0x1f4bc6,{'children':[_0x4ec8b9(_0x3c11dc(0xce),{'className':_0x3c11dc(0xed),'children':_0x3c11dc(0x72)}),_0x4ec8b9(_0x5cd01a,{'onClick':()=>_0x43eff9[_0x3c11dc(0x7d)](),'children':_0x3c11dc(0x8b)})]});}function je(_0x47cb91){var _0x8bef8f=_0x354a21;const {coordinator:_0x15e730}=_0x47cb91;return _0x4fbbd0(_0x1f4bc6,{'children':[_0x4ec8b9('div',{'className':_0x8bef8f(0xed),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4ec8b9(_0x5cd01a,{'variant':_0x8bef8f(0xc8),'onClick':()=>_0x15e730[_0x8bef8f(0x107)](),'children':_0x8bef8f(0xad)})]});}function _0x5e3d(_0x673533,_0x549f71){var _0x2f1ebd=_0x2f1e();return _0x5e3d=function(_0x5e3d26,_0x5f128d){_0x5e3d26=_0x5e3d26-0x6f;var _0xd55eb8=_0x2f1ebd[_0x5e3d26];return _0xd55eb8;},_0x5e3d(_0x673533,_0x549f71);}function Ue(_0x55584e){var _0x376bc2=_0x354a21;const {coordinator:_0x151dc6}=_0x55584e;return _0x4fbbd0(_0x1f4bc6,{'children':[_0x4ec8b9(_0x376bc2(0xce),{'className':_0x376bc2(0xed),'children':_0x376bc2(0x8f)}),_0x4ec8b9(_0x5cd01a,{'variant':_0x376bc2(0xbe),'onClick':()=>_0x151dc6[_0x376bc2(0x115)](),'children':'Stop\x20presenting'})]});}function Ve(){return _0x4ec8b9(_0x1f4bc6,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x354a21(0x10d)],ke=(_0x2860e2,_0x51e7b7,_0x290511,_0x33c2c8)=>{for(var _0x483a7a=_0x33c2c8>0x1?void 0x0:_0x33c2c8?Me(_0x51e7b7,_0x290511):_0x51e7b7,_0xfcdd42=_0x2860e2['length']-0x1,_0x1c0e57;_0xfcdd42>=0x0;_0xfcdd42--)(_0x1c0e57=_0x2860e2[_0xfcdd42])&&(_0x483a7a=_0x1c0e57(_0x483a7a)||_0x483a7a);return _0x483a7a;},$=(_0x41a243,_0x4ac4b4)=>(_0xd6190b,_0x1139da)=>_0x4ac4b4(_0xd6190b,_0x1139da,_0x41a243);let b=class extends _0x386ab1{constructor(_0x348a98,_0x598ee2){var _0x543e17=_0x354a21;super(),this['_injector']=_0x348a98,this[_0x543e17(0xf6)]=_0x598ee2,this[_0x543e17(0x9f)]();}[_0x354a21(0x9f)](){var _0x6fabe2=_0x354a21;this[_0x6fabe2(0xc5)](this[_0x6fabe2(0xf6)][_0x6fabe2(0xe2)](_0x41322a[_0x6fabe2(0x112)],()=>_0x58975f(Te,this[_0x6fabe2(0xc0)])));}};b=ke([$(0x0,_0x2e9116(_0x3ed045)),$(0x1,_0x4f05c6)],b);var Ge=Object['defineProperty'],We=Object['getOwnPropertyDescriptor'],Ye=(_0x265693,_0x47ee3d,_0x817080)=>_0x47ee3d in _0x265693?Ge(_0x265693,_0x47ee3d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x817080}):_0x265693[_0x47ee3d]=_0x817080,Be=(_0x235170,_0x4f2331,_0x5a3c57,_0x51c62c)=>{var _0x59ca57=_0x354a21;for(var _0x583402=_0x51c62c>0x1?void 0x0:_0x51c62c?We(_0x4f2331,_0x5a3c57):_0x4f2331,_0x4d3db4=_0x235170[_0x59ca57(0x88)]-0x1,_0x5b3d61;_0x4d3db4>=0x0;_0x4d3db4--)(_0x5b3d61=_0x235170[_0x4d3db4])&&(_0x583402=_0x5b3d61(_0x583402)||_0x583402);return _0x583402;},F=(_0x4844c3,_0x2e1537)=>(_0x106335,_0x362aa6)=>_0x2e1537(_0x106335,_0x362aa6,_0x4844c3),J=(_0x5a59aa,_0x365a7a,_0x1181a2)=>Ye(_0x5a59aa,typeof _0x365a7a!=_0x354a21(0x100)?_0x365a7a+'':_0x365a7a,_0x1181a2);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x180c7f{constructor(_0x4dd074=T,_0x1751b5,_0x579382){var _0x352004=_0x354a21;super(),this[_0x352004(0xe1)]=_0x4dd074,this['_injector']=_0x1751b5,this[_0x352004(0xd2)]=_0x579382;const {..._0x1c9ef6}=_0x1b238c({},T,this[_0x352004(0xe1)]);this['_configService'][_0x352004(0xdd)](Oe,_0x1c9ef6);}[_0x354a21(0x98)](){var _0x166f0d=_0x354a21;_0x343fdf(this[_0x166f0d(0xc0)],_0x4d4ce2([[L],[I],[m],[b]],this[_0x166f0d(0xe1)][_0x166f0d(0xb9)])),_0x4a7fc6(this[_0x166f0d(0xc0)],[[m]]);}['onRendered'](){var _0x1a5029=_0x354a21;_0x4a7fc6(this[_0x1a5029(0xc0)],[[b]]);}};J(O,_0x354a21(0x105),_0x91c20b[_0x354a21(0xb1)]),J(O,_0x354a21(0x99),Ze),O=Be([_0x3a2df0(_0x21d6c8),F(0x1,_0x2e9116(_0x3ed045)),F(0x2,_0x400c78)],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 _0x52f618=_0x56cb;(function(_0x422162,_0x323e1f){var _0x23554a=_0x56cb,_0xb98258=_0x422162();while(!![]){try{var _0x32d96a=-parseInt(_0x23554a(0x21d))/0x1*(parseInt(_0x23554a(0x1b6))/0x2)+-parseInt(_0x23554a(0x1e3))/0x3+-parseInt(_0x23554a(0x194))/0x4+parseInt(_0x23554a(0x229))/0x5+parseInt(_0x23554a(0x19e))/0x6*(-parseInt(_0x23554a(0x207))/0x7)+parseInt(_0x23554a(0x1e0))/0x8*(-parseInt(_0x23554a(0x206))/0x9)+parseInt(_0x23554a(0x1d0))/0xa*(parseInt(_0x23554a(0x1c1))/0xb);if(_0x32d96a===_0x323e1f)break;else _0xb98258['push'](_0xb98258['shift']());}catch(_0x2d08a5){_0xb98258['push'](_0xb98258['shift']());}}}(_0x3701,0x19dd5));var q=Object[_0x52f618(0x233)],z=(_0x4fa2a4,_0x2c8eae,_0x168a6a)=>_0x2c8eae in _0x4fa2a4?q(_0x4fa2a4,_0x2c8eae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x168a6a}):_0x4fa2a4[_0x2c8eae]=_0x168a6a,d=(_0x5e53bb,_0x1d8150,_0x2fbc33)=>z(_0x5e53bb,typeof _0x1d8150!=_0x52f618(0x1a1)?_0x1d8150+'':_0x1d8150,_0x2fbc33);import{CollaborationSessionService as _0x373ed2,SessionStatus as _0x39c4da,UniverCollaborationClientPlugin as _0x4f23e0}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4d2b6f,toDisposable as _0x2deabb,Inject as _0x5b76c2,IUniverInstanceService as _0x32b736,Injector as _0x5d2218,IConfigService as _0x44d386,ICommandService as _0x3c47e4,RxDisposable as _0x563b3c,UniverInstanceType as _0x174153,DisposableCollection as _0x3438d0,CommandType as _0x8ecae0,DependentOn as _0x3ab6ef,Plugin as _0x26e656,merge as _0x2cad00,registerDependencies as _0x153635,mergeOverrideWithDependencies as _0x2088e7,touchDependencies as _0xd0dab7}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x495e50,InsertSheetMutation as _0x571bd5}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x138ac7,SetScrollOperation as _0x46af97}from'@univerjs/sheets-ui';import{useDependency as _0x131bc5,useObservable as _0x3077c8,IUIPartsService as _0x259a30,BuiltInUIPart as _0x50ace2,connectInjector as _0x4ee5c0}from'@univerjs/ui';import{jsx as _0x40000b,jsxs as _0x54f880,Fragment as _0x4aa632}from'react/jsx-runtime';import{Dropdown as _0x2f5451,clsx as _0x42fd34,Button as _0xe015b0}from'@univerjs/design';import{forwardRef as _0x19d58d,useRef as _0x956383,createElement as _0x2c72b7,useState as _0x201ef0,useEffect as _0x5abcd3}from'react';import{CollaborationEvent as _0x2f804e,parseProtocolChangeset as _0xd42f05}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x570d03,Subject as _0x5cadb4}from'rxjs';import{takeUntil as _0x57168c,throttleTime as _0x4e001a}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x4d2b6f{constructor(){var _0x43621f=_0x52f618;super(...arguments),d(this,_0x43621f(0x1b2),new Set()),d(this,_0x43621f(0x1fa),new Set());}[_0x52f618(0x1e5)](_0x12ce23){var _0x2095a8=_0x52f618;return this[_0x2095a8(0x1b2)][_0x2095a8(0x1aa)](_0x12ce23),_0x2deabb(()=>this[_0x2095a8(0x1b2)][_0x2095a8(0x1e9)](_0x12ce23));}[_0x52f618(0x21b)](_0x68b76){var _0x46eb76=_0x52f618;return this[_0x46eb76(0x1fa)][_0x46eb76(0x1aa)](_0x68b76),_0x2deabb(()=>this[_0x46eb76(0x1fa)][_0x46eb76(0x1e9)](_0x68b76));}['shouldShareOperation'](_0x1f9fa4){var _0x2f13aa=_0x52f618;return this[_0x2f13aa(0x1b2)][_0x2f13aa(0x182)](_0x1f9fa4);}[_0x52f618(0x208)](_0x8e583a){var _0xd6812f=_0x52f618;return Array[_0xd6812f(0x1a7)](this[_0xd6812f(0x1fa)])[_0xd6812f(0x1bf)](_0x25b4cb=>_0x25b4cb(_0x8e583a));}}var Ee=Object['getOwnPropertyDescriptor'],Ce=(_0x27dcde,_0x523bcb,_0x13fd72,_0x1490f5)=>{var _0x1540d3=_0x52f618;for(var _0x442ca5=_0x1490f5>0x1?void 0x0:_0x1490f5?Ee(_0x523bcb,_0x13fd72):_0x523bcb,_0x3a4f1e=_0x27dcde[_0x1540d3(0x1ab)]-0x1,_0x5c143;_0x3a4f1e>=0x0;_0x3a4f1e--)(_0x5c143=_0x27dcde[_0x3a4f1e])&&(_0x442ca5=_0x5c143(_0x442ca5)||_0x442ca5);return _0x442ca5;},Ne=(_0x3dde8e,_0x45943f)=>(_0x5434ff,_0x18c777)=>_0x45943f(_0x5434ff,_0x18c777,_0x3dde8e);let m=class extends _0x4d2b6f{constructor(_0x4c58d7){var _0x263dcb=_0x52f618;super(),this[_0x263dcb(0x19b)]=_0x4c58d7,this[_0x263dcb(0x1ca)]();}[_0x52f618(0x1ca)](){var _0x129913=_0x52f618;[_0x138ac7['id'],_0x46af97['id'],_0x495e50['id']][_0x129913(0x1c7)](_0x425bef=>{var _0x107827=_0x129913;this[_0x107827(0x201)](this[_0x107827(0x19b)][_0x107827(0x1e5)](_0x425bef));});}};m=Ce([Ne(0x0,_0x5b76c2(L))],m);var c=function(){var _0x4d21ad=_0x52f618;return c=Object['assign']||function(_0xff0b48){var _0x315c5d=_0x56cb;for(var _0x534322,_0x18fe22=0x1,_0x329789=arguments[_0x315c5d(0x1ab)];_0x18fe22<_0x329789;_0x18fe22++){_0x534322=arguments[_0x18fe22];for(var _0x2108b5 in _0x534322)Object[_0x315c5d(0x1e8)]['hasOwnProperty'][_0x315c5d(0x230)](_0x534322,_0x2108b5)&&(_0xff0b48[_0x2108b5]=_0x534322[_0x2108b5]);}return _0xff0b48;},c[_0x4d21ad(0x218)](this,arguments);},we=function(_0x54969e,_0x3a0e93){var _0x17413c=_0x52f618,_0x28e942={};for(var _0x340005 in _0x54969e)Object[_0x17413c(0x1e8)][_0x17413c(0x22d)]['call'](_0x54969e,_0x340005)&&_0x3a0e93[_0x17413c(0x1bb)](_0x340005)<0x0&&(_0x28e942[_0x340005]=_0x54969e[_0x340005]);if(_0x54969e!=null&&typeof Object[_0x17413c(0x1ce)]=='function'){for(var _0x23e4f3=0x0,_0x340005=Object['getOwnPropertySymbols'](_0x54969e);_0x23e4f3<_0x340005[_0x17413c(0x1ab)];_0x23e4f3++)_0x3a0e93['indexOf'](_0x340005[_0x23e4f3])<0x0&&Object['prototype'][_0x17413c(0x202)]['call'](_0x54969e,_0x340005[_0x23e4f3])&&(_0x28e942[_0x340005[_0x23e4f3]]=_0x54969e[_0x340005[_0x23e4f3]]);}return _0x28e942;},W=_0x19d58d(function(_0x3b30a2,_0x1b1b74){var _0x488e69=_0x52f618,_0x33aa0c=_0x3b30a2['icon'],_0x4bf32e=_0x3b30a2['id'],_0x31e853=_0x3b30a2['className'],_0xc553f4=_0x3b30a2[_0x488e69(0x1ba)],_0x2ca60d=we(_0x3b30a2,[_0x488e69(0x1ff),'id',_0x488e69(0x18c),'extend']),_0x30f1b3='univerjs-icon\x20univerjs-icon-'[_0x488e69(0x219)](_0x4bf32e,'\x20')[_0x488e69(0x219)](_0x31e853||'')[_0x488e69(0x1ed)](),_0x46e156=_0x956383('_'[_0x488e69(0x219)](Le()));return Y(_0x33aa0c,''[_0x488e69(0x219)](_0x4bf32e),{'defIds':_0x33aa0c[_0x488e69(0x197)],'idSuffix':_0x46e156[_0x488e69(0x211)]},c({'ref':_0x1b1b74,'className':_0x30f1b3},_0x2ca60d),_0xc553f4);});function Y(_0x17709a,_0x57800e,_0x482665,_0x3d243d,_0x3e74c4){var _0x39e62e=_0x52f618;return _0x2c72b7(_0x17709a['tag'],c(c({'key':_0x57800e},De(_0x17709a,_0x482665,_0x3e74c4)),_0x3d243d),(xe(_0x17709a,_0x482665)['children']||[])[_0x39e62e(0x1bf)](function(_0x1e7d47,_0x52cfb3){var _0x30ac5a=_0x39e62e;return Y(_0x1e7d47,''[_0x30ac5a(0x219)](_0x57800e,'-')[_0x30ac5a(0x219)](_0x17709a[_0x30ac5a(0x191)],'-')[_0x30ac5a(0x219)](_0x52cfb3),_0x482665,void 0x0,_0x3e74c4);}));}function De(_0xbc463c,_0x29798d,_0x3353c5){var _0xc5a79c=_0x52f618,_0x1ea5a4=c({},_0xbc463c[_0xc5a79c(0x222)]);_0x3353c5!=null&&_0x3353c5['colorChannel1']&&_0x1ea5a4[_0xc5a79c(0x20f)]===_0xc5a79c(0x193)&&(_0x1ea5a4[_0xc5a79c(0x20f)]=_0x3353c5[_0xc5a79c(0x193)]),_0xbc463c[_0xc5a79c(0x191)]===_0xc5a79c(0x1ae)&&_0x1ea5a4['id']&&(_0x1ea5a4['id']=_0x1ea5a4['id']+_0x29798d[_0xc5a79c(0x224)]),Object[_0xc5a79c(0x18b)](_0x1ea5a4)[_0xc5a79c(0x1c7)](function(_0x4ef76e){var _0x3f8b48=_0xc5a79c,_0x5a875c=_0x4ef76e[0x0],_0x22f474=_0x4ef76e[0x1];_0x5a875c==='mask'&&typeof _0x22f474==_0x3f8b48(0x204)&&(_0x1ea5a4[_0x5a875c]=_0x22f474[_0x3f8b48(0x1a8)](/url\(#(.*)\)/,_0x3f8b48(0x213)['concat'](_0x29798d[_0x3f8b48(0x224)],')')));});var _0x1cd6a9=_0x29798d[_0xc5a79c(0x197)];return!_0x1cd6a9||_0x1cd6a9['length']===0x0||(_0xbc463c['tag']==='use'&&_0x1ea5a4['xlink:href']&&(_0x1ea5a4[_0xc5a79c(0x221)]=_0x1ea5a4['xlink:href']+_0x29798d[_0xc5a79c(0x224)]),Object[_0xc5a79c(0x18b)](_0x1ea5a4)[_0xc5a79c(0x1c7)](function(_0x481535){var _0x562295=_0xc5a79c,_0x1f64c9=_0x481535[0x0],_0x4c3f36=_0x481535[0x1];typeof _0x4c3f36==_0x562295(0x204)&&(_0x1ea5a4[_0x1f64c9]=_0x4c3f36[_0x562295(0x1a8)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x29798d[_0x562295(0x224)],')')));})),_0x1ea5a4;}function xe(_0x4a52af,_0xb65ffd){var _0x3ddec4=_0x52f618,_0x16424f,_0x38a081=_0xb65ffd[_0x3ddec4(0x197)];return!_0x38a081||_0x38a081['length']===0x0?_0x4a52af:_0x4a52af[_0x3ddec4(0x191)]===_0x3ddec4(0x216)&&(!((_0x16424f=_0x4a52af[_0x3ddec4(0x232)])===null||_0x16424f===void 0x0)&&_0x16424f[_0x3ddec4(0x1ab)])?c(c({},_0x4a52af),{'children':_0x4a52af[_0x3ddec4(0x232)]['map'](function(_0x228ecc){var _0x1a87f6=_0x3ddec4;return typeof _0x228ecc[_0x1a87f6(0x222)]['id']=='string'&&_0x38a081&&_0x38a081[_0x1a87f6(0x1bb)](_0x228ecc[_0x1a87f6(0x222)]['id'])>-0x1?c(c({},_0x228ecc),{'attrs':c(c({},_0x228ecc['attrs']),{'id':_0x228ecc[_0x1a87f6(0x222)]['id']+_0xb65ffd[_0x1a87f6(0x224)]})}):_0x228ecc;})}):_0x4a52af;}function _0x3701(){var _0x187c5f=['get','override','_handleNewHost','from','replace','NOT_FOLLOWING','add','length','subscribe','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','mask','You\x27are\x20offline.','_uiPartsService','next','_sharedOperations','LIVESHARE_REQUEST_HOST','_beIdle','presenting','8672JdHHhu','evenodd','asObservable','OFFLINE','extend','indexOf','data','presenter','set','map','_stopFollowing','11LhrUOj','SAME_OPERATION_SHARE_INTERVAL','_fetchOperations','getCurrentTypeOfUnit$','_status','0\x200\x2016\x2016','forEach','getMemberID','IDLE','_init','unsubscribe','LIVESHARE_OPERATION','stringify','getOwnPropertySymbols','_collabSessionService','4660520fNiOiY','displayName','NEW_CHANGESETS','getOwnPropertyDescriptor','_status$','executeCommand','includes','1em','OPERATION','unitId','getConfig','clear','stopPresenting','status$','onStarting','path','8bCtgil','_injector','_handleOffline','455097jqWnrm','ONLINE','registerSharedOperation','text','getTypeOfUnitDisposed$','prototype','delete','tryStartPresenting','toString','You\x27re\x20following\x20the\x20presenter','trim','setConfig','onRendered','live-share-single','_unitID','div','LIVESHARE_FETCH_OPERATIONS','params','_commandDisposable','offline','registerComponent','substring','end','_reporters','univer-size-4','_startLiveShareCoordinator','_configService','dispose','icon','_stopPresenting','disposeWithMe','propertyIsEnumerable','pipe','string','_presenter','1442961RpyKpl','303394ZzYSZM','getInitialStates','send','_handleTerminate','LIVESHARE_NEW_HOST','memberID','type','univer-w-full\x20univer-mb-3\x20univer-text-sm','fill','default','current','init','url(#$1','assign','_handleNewChangeSets','defs','button','apply','concat','idle','registerInitialStateReporter','Stop\x20following','2laKTrs','currentColor','find','_mountLiveShare','xlink:href','attrs','Start','idSuffix','Present\x20this\x20document','getUnitId','event$','complete','980905gipnrO','UNIVER_LIVE_SHARE_PLUGIN','LIVESHARE_TERMINATE','svg','hasOwnProperty','_handleOnline','_config','call','values','children','defineProperty','has','mutations','pluginName','_univerInstanceService','sheet','following','_entities','Stop\x20presenting','UNIVER_SHEET','entries','className','startFollowing','_startPresenting','reverse','stopFollowing','tag','Start\x20following','colorChannel1','248896ALpych','_collabSession','_handleOperation','defIds','not-following','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','_commandService','_liveShareService','PRESENTING','_startFollowing','24jGvmlG','none','getValue','symbol','createInstance','dispose$'];_0x3701=function(){return _0x187c5f;};return _0x3701();}function Le(){var _0x5d6af8=_0x52f618;return Math['random']()[_0x5d6af8(0x1eb)](0x24)[_0x5d6af8(0x1f8)](0x2,0x8);}W['displayName']='UniverIcon';var ye={'tag':_0x52f618(0x22c),'attrs':{'fill':_0x52f618(0x19f),'viewBox':_0x52f618(0x1c6),'width':'1em','height':_0x52f618(0x1d7)},'children':[{'tag':_0x52f618(0x1df),'attrs':{'fill':'currentColor','d':_0x52f618(0x199)}},{'tag':_0x52f618(0x1df),'attrs':{'fill':_0x52f618(0x21e),'d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':_0x52f618(0x1b7),'clipRule':_0x52f618(0x1b7)}}]},B=_0x19d58d(function(_0x29e6ec,_0x18a511){var _0x4a4450=_0x52f618;return _0x2c72b7(W,Object[_0x4a4450(0x214)]({},_0x29e6ec,{'id':_0x4a4450(0x1f0),'ref':_0x18a511,'icon':ye}));});B[_0x52f618(0x1d1)]='LiveShareSingle';var Re=Object[_0x52f618(0x1d3)],Z=(_0xcffd6,_0x1f26e2,_0x1c9544,_0x13e73f)=>{var _0x1e98ae=_0x52f618;for(var _0x3de79c=_0x13e73f>0x1?void 0x0:_0x13e73f?Re(_0x1f26e2,_0x1c9544):_0x1f26e2,_0x102be3=_0xcffd6[_0x1e98ae(0x1ab)]-0x1,_0x4711b1;_0x102be3>=0x0;_0x102be3--)(_0x4711b1=_0xcffd6[_0x102be3])&&(_0x3de79c=_0x4711b1(_0x3de79c)||_0x3de79c);return _0x3de79c;},f=(_0x11142b,_0x4477bf)=>(_0x3f409f,_0x170d81)=>_0x4477bf(_0x3f409f,_0x170d81,_0x11142b);let I=class extends _0x563b3c{constructor(_0x501add,_0x5936bb,_0x332a09){var _0x303f82=_0x52f618;super(),d(this,_0x303f82(0x188),new Map()),(this['_univerInstanceService']=_0x501add,this[_0x303f82(0x1e1)]=_0x5936bb,this['_collabSessionService']=_0x332a09,this[_0x303f82(0x1ca)]());}async['getLiveShareCoordinator'](_0x2b85ed){var _0xb8da01=_0x52f618;return this[_0xb8da01(0x188)]['has'](_0x2b85ed)||await this[_0xb8da01(0x1fc)](_0x2b85ed),this[_0xb8da01(0x188)][_0xb8da01(0x1a4)](_0x2b85ed);}[_0x52f618(0x1ca)](){var _0x119faa=_0x52f618;this[_0x119faa(0x185)]['getTypeOfUnitAdded$'](_0x174153[_0x119faa(0x18a)])[_0x119faa(0x203)](_0x57168c(this[_0x119faa(0x1a3)]))[_0x119faa(0x1ac)](async _0x1e655d=>{var _0x585573=_0x119faa;const _0x31560b=_0x1e655d['getUnitId']();this[_0x585573(0x188)][_0x585573(0x182)](_0x31560b)||this[_0x585573(0x1fc)](_0x31560b);}),this[_0x119faa(0x185)][_0x119faa(0x1e7)](_0x174153[_0x119faa(0x18a)])[_0x119faa(0x203)](_0x57168c(this[_0x119faa(0x1a3)]))[_0x119faa(0x1ac)](_0x185772=>{var _0x333e9c=_0x119faa;const _0x56d1ca=_0x185772[_0x333e9c(0x226)](),_0x383a4e=this['_entities'][_0x333e9c(0x1a4)](_0x56d1ca);_0x383a4e==null||_0x383a4e[_0x333e9c(0x1fe)]();});}async[_0x52f618(0x1fc)](_0x4336db){var _0xd4ee67=_0x52f618;const _0x4bd5b1=await this[_0xd4ee67(0x1cf)]['requireSession'](_0x4336db),_0x3819fd=this['_injector'][_0xd4ee67(0x1a2)](w,_0x4336db,_0x4bd5b1);return _0x3819fd[_0xd4ee67(0x212)](),this[_0xd4ee67(0x188)]['set'](_0x4336db,_0x3819fd),_0x3819fd;}};I=Z([f(0x0,_0x32b736),f(0x1,_0x5b76c2(_0x5d2218)),f(0x2,_0x5b76c2(_0x373ed2))],I);var h=(_0x809e5b=>(_0x809e5b['OFFLINE']='offline',_0x809e5b[_0x52f618(0x1c9)]=_0x52f618(0x21a),_0x809e5b['FOLLOWING']='following',_0x809e5b[_0x52f618(0x1a9)]=_0x52f618(0x198),_0x809e5b[_0x52f618(0x19c)]=_0x52f618(0x1b5),_0x809e5b))(h||{});const Pe=_0x52f618(0x1c2),Ae=0xc8;let w=class extends _0x563b3c{constructor(_0x3c4eff,_0x12799a,_0x3e242b,_0x4ac1d2,_0x38d0dc){var _0x50712d=_0x52f618;super(),d(this,_0x50712d(0x1d4),new _0x570d03(_0x50712d(0x21a))),d(this,'status$',this[_0x50712d(0x1d4)][_0x50712d(0x1b8)]()),d(this,_0x50712d(0x1ca),!0x1),d(this,_0x50712d(0x1f5),null),d(this,_0x50712d(0x205),null),(this['_unitID']=_0x3c4eff,this[_0x50712d(0x195)]=_0x12799a,this[_0x50712d(0x1fd)]=_0x3e242b,this[_0x50712d(0x19b)]=_0x4ac1d2,this[_0x50712d(0x19a)]=_0x38d0dc);}get['_status'](){var _0xdcfdf0=_0x52f618;return this['_status$'][_0xdcfdf0(0x1a0)]();}['dispose'](){var _0x2dbae3=_0x52f618,_0x2ef87b;(_0x2ef87b=this[_0x2dbae3(0x1f5)])==null||_0x2ef87b[_0x2dbae3(0x1fe)](),this[_0x2dbae3(0x1d4)][_0x2dbae3(0x1b1)](_0x2dbae3(0x21a)),this[_0x2dbae3(0x1d4)][_0x2dbae3(0x228)]();}[_0x52f618(0x212)](){var _0xeca2a4=_0x52f618;this[_0xeca2a4(0x1ca)]||(this[_0xeca2a4(0x1ca)]=!0x0,this['_collabSession']['sessionStatus$'][_0xeca2a4(0x203)](_0x57168c(this['dispose$']))[_0xeca2a4(0x1ac)](_0x41c872=>{var _0x49d3e8=_0xeca2a4;switch(_0x41c872){case _0x39c4da['OFFLINE']:this[_0x49d3e8(0x1e2)]();break;case _0x39c4da[_0x49d3e8(0x1e4)]:this['_handleOnline']();break;}}),this[_0xeca2a4(0x195)][_0xeca2a4(0x227)]['pipe'](_0x57168c(this[_0xeca2a4(0x1a3)]))[_0xeca2a4(0x1ac)](_0xa3e384=>{var _0x94cc9e=_0xeca2a4;const {eventID:_0x53d21a}=_0xa3e384;switch(_0x53d21a){case _0x2f804e[_0x94cc9e(0x20b)]:this['_handleNewHost'](_0xa3e384);break;case _0x2f804e[_0x94cc9e(0x1cc)]:this[_0x94cc9e(0x196)](_0xa3e384);break;case _0x2f804e[_0x94cc9e(0x22b)]:this[_0x94cc9e(0x20a)]();break;case _0x2f804e[_0x94cc9e(0x1d2)]:this[_0x94cc9e(0x215)](_0xa3e384);break;}}));}[_0x52f618(0x1ea)](){var _0x2343b8=_0x52f618;this[_0x2343b8(0x195)][_0x2343b8(0x209)]({'eventID':_0x2f804e[_0x2343b8(0x1b3)],'data':{'unitID':this[_0x2343b8(0x1f1)],'userID':this[_0x2343b8(0x195)]['getMemberID']()}},this[_0x2343b8(0x1f1)]);}[_0x52f618(0x1dc)](){var _0x547485=_0x52f618;this[_0x547485(0x1c5)]===_0x547485(0x1b5)&&(this[_0x547485(0x1d4)][_0x547485(0x1b1)](_0x547485(0x21a)),this['_collabSession'][_0x547485(0x209)]({'eventID':_0x2f804e['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x547485(0x1f1)]}},this[_0x547485(0x1f1)]));}[_0x52f618(0x18d)](){var _0x23137e=_0x52f618;this[_0x23137e(0x1c5)]===_0x23137e(0x198)&&(this[_0x23137e(0x1d4)][_0x23137e(0x1b1)]('following'),this[_0x23137e(0x19d)]());}[_0x52f618(0x190)](){var _0x1091fc=_0x52f618;this[_0x1091fc(0x1c5)]==='following'&&this[_0x1091fc(0x1c0)]();}[_0x52f618(0x1a6)](_0x195d73){var _0x116a1e=_0x52f618;const {presenter:_0x36867d}=_0x195d73[_0x116a1e(0x1bc)],_0x5629b8=this[_0x116a1e(0x195)][_0x116a1e(0x1c8)]();this[_0x116a1e(0x205)]=_0x36867d,_0x36867d===_0x5629b8?(this[_0x116a1e(0x1c0)](),this[_0x116a1e(0x18e)]()):this[_0x116a1e(0x1c5)]!==_0x116a1e(0x198)&&(this[_0x116a1e(0x200)](),this['_startFollowing']());}[_0x52f618(0x1c3)](){var _0x573659=_0x52f618;const _0x251f90={'eventID':_0x2f804e[_0x573659(0x1f3)]};this[_0x573659(0x195)][_0x573659(0x209)](_0x251f90,this['_unitID']);}[_0x52f618(0x20a)](){var _0x1adaa8=_0x52f618;this[_0x1adaa8(0x205)]=null,this[_0x1adaa8(0x1c5)]!==_0x1adaa8(0x1b5)&&this['_beIdle']();}[_0x52f618(0x215)](_0x155204){var _0x1f767d=_0x52f618;if(this[_0x1f767d(0x1c5)]===_0x1f767d(0x187)&&this['_presenter']===_0x155204['data'][_0x1f767d(0x20c)]){const _0x5bf302=_0xd42f05(_0x155204[_0x1f767d(0x1bc)])[_0x1f767d(0x183)][_0x1f767d(0x18f)]()[_0x1f767d(0x21f)](_0x4a3177=>_0x4a3177['id']===_0x571bd5['id']);if(_0x5bf302){const _0x1fc4e0=_0x5bf302[_0x1f767d(0x1f4)][_0x1f767d(0x1d9)],_0xfe32a7=_0x5bf302['params'][_0x1f767d(0x186)]['id'];setTimeout(()=>{var _0x5aa3f0=_0x1f767d;this[_0x5aa3f0(0x19a)]['executeCommand'](_0x495e50['id'],{'unitId':_0x1fc4e0,'subUnitId':_0xfe32a7},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x1853df=_0x52f618;this['_status$'][_0x1853df(0x1b1)](_0x1853df(0x1b5));const _0x32fec1=new Map(),_0x887678=this[_0x1853df(0x1f5)]=new _0x3438d0();_0x887678[_0x1853df(0x1aa)](_0x2deabb(()=>{var _0x2a4246=_0x1853df;_0x32fec1[_0x2a4246(0x1c7)](_0xef52eb=>_0xef52eb['complete']()),_0x32fec1[_0x2a4246(0x1db)]();})),_0x887678[_0x1853df(0x1aa)](this[_0x1853df(0x19a)]['onCommandExecuted'](_0x364fb1=>{var _0x518921=_0x1853df,_0x2df387;if(_0x364fb1[_0x518921(0x20d)]!==_0x8ecae0[_0x518921(0x1d8)]||!this['_liveShareService']['shouldShareOperation'](_0x364fb1['id']))return;const {id:_0x499f91}=_0x364fb1;let _0x13833c;_0x32fec1['has'](_0x499f91)?_0x13833c=_0x32fec1[_0x518921(0x1a4)](_0x499f91):(_0x13833c=new _0x5cadb4(),_0x32fec1[_0x518921(0x1be)](_0x499f91,_0x13833c),_0x13833c[_0x518921(0x203)](_0x4e001a((_0x2df387=this[_0x518921(0x1fd)][_0x518921(0x1da)](Pe))!=null?_0x2df387:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x2afce1=>{var _0xeb0325=_0x518921;this[_0xeb0325(0x195)][_0xeb0325(0x209)]({'eventID':_0x2f804e[_0xeb0325(0x1cc)],'data':{'unitID':this[_0xeb0325(0x1f1)],'operations':{[_0x2afce1['id']]:{'id':_0x2afce1['id'],'params':JSON[_0xeb0325(0x1cd)](_0x2afce1['params'])}}}},this[_0xeb0325(0x1f1)]);})),_0x13833c[_0x518921(0x1b1)](_0x364fb1);})),this[_0x1853df(0x19b)][_0x1853df(0x208)](this[_0x1853df(0x1f1)])[_0x1853df(0x1c7)](_0x53df0f=>this[_0x1853df(0x195)]['send']({'eventID':_0x2f804e[_0x1853df(0x1cc)],'data':{'unitID':this[_0x1853df(0x1f1)],'operations':{[_0x53df0f['id']]:{'id':_0x53df0f['id'],'params':JSON[_0x1853df(0x1cd)](_0x53df0f['params'])}}}},this[_0x1853df(0x1f1)]));}[_0x52f618(0x200)](){var _0x3e5f3a=_0x52f618,_0x32570f;this['_status$'][_0x3e5f3a(0x1b1)]('idle'),(_0x32570f=this[_0x3e5f3a(0x1f5)])==null||_0x32570f['dispose'](),this[_0x3e5f3a(0x1f5)]=null;}[_0x52f618(0x19d)](){var _0x5b2f61=_0x52f618,_0x133792;(_0x133792=this[_0x5b2f61(0x1f5)])==null||_0x133792[_0x5b2f61(0x1fe)](),this['_status$']['next'](_0x5b2f61(0x187));}[_0x52f618(0x1b4)](){var _0x3e420f=_0x52f618,_0x5af827;this[_0x3e420f(0x1d4)][_0x3e420f(0x1b1)]('idle'),(_0x5af827=this[_0x3e420f(0x1f5)])==null||_0x5af827[_0x3e420f(0x1fe)](),this[_0x3e420f(0x1f5)]=null;}[_0x52f618(0x1c0)](){var _0x427fde=_0x52f618,_0x238922;this[_0x427fde(0x1d4)][_0x427fde(0x1b1)](_0x427fde(0x198)),(_0x238922=this[_0x427fde(0x1f5)])==null||_0x238922[_0x427fde(0x1fe)]();}[_0x52f618(0x196)](_0x348d60){var _0x2fface=_0x52f618;if([_0x2fface(0x1b5),_0x2fface(0x198),_0x2fface(0x1f6)][_0x2fface(0x1d6)](this[_0x2fface(0x1c5)])||!_0x348d60[_0x2fface(0x1bc)][_0x2fface(0x1bd)]||_0x348d60['data']['presenter']===this['_collabSession'][_0x2fface(0x1c8)]())return;this['_status']==='idle'&&this['_startFollowing']();const _0xff0dbd=_0x348d60[_0x2fface(0x1bc)]['operations'];Object[_0x2fface(0x231)](_0xff0dbd)['forEach'](_0x1d2857=>{var _0x5634d5=_0x2fface;this[_0x5634d5(0x19a)][_0x5634d5(0x1d5)](_0x1d2857['id'],_0x1d2857['params']?JSON['parse'](_0x1d2857['params']):null,{'fromCollab':!0x0});});}[_0x52f618(0x1e2)](){var _0x357282=_0x52f618,_0x469d19;this[_0x357282(0x1d4)][_0x357282(0x1b1)](_0x357282(0x1f6)),(_0x469d19=this[_0x357282(0x1f5)])==null||_0x469d19[_0x357282(0x1fe)]();}[_0x52f618(0x22e)](){var _0x7a8111=_0x52f618;this[_0x7a8111(0x1d4)][_0x7a8111(0x1b1)](_0x7a8111(0x21a)),this['_fetchOperations']();}};w=Z([f(0x2,_0x44d386),f(0x3,_0x5b76c2(L)),f(0x4,_0x3c47e4)],w);function Te(){var _0x2cd437=_0x52f618;const _0x25f2a1=_0x131bc5(I),_0x16c1fa=_0x131bc5(_0x32b736),_0x191a1d=_0x3077c8(()=>_0x16c1fa[_0x2cd437(0x1c4)](_0x174153[_0x2cd437(0x18a)]),void 0x0,!0x1,[]),[_0x36638b,_0x4f4991]=_0x201ef0(null),[_0x4eec30,_0x439708]=_0x201ef0(h[_0x2cd437(0x1c9)]),_0x13833f=_0x956383(null);return _0x5abcd3(()=>(_0x191a1d&&_0x25f2a1['getLiveShareCoordinator'](_0x191a1d[_0x2cd437(0x226)]())['then'](_0x58baeb=>{var _0x5ebf4f=_0x2cd437;_0x4f4991(_0x58baeb),_0x13833f[_0x5ebf4f(0x211)]=_0x58baeb[_0x5ebf4f(0x1dd)]['subscribe'](_0x27f5fb=>{_0x439708(_0x27f5fb);});}),()=>{var _0x18bd0a=_0x2cd437,_0x459a10;(_0x459a10=_0x13833f[_0x18bd0a(0x211)])==null||_0x459a10[_0x18bd0a(0x1cb)](),_0x13833f[_0x18bd0a(0x211)]=null;}),[_0x191a1d,_0x25f2a1]),_0x36638b?_0x40000b(_0x2f5451,{'align':_0x2cd437(0x1f9),'disabled':_0x4eec30===h[_0x2cd437(0x1b9)],'className':_0x2cd437(0x1ad),'overlay':_0x40000b($e,{'status':_0x4eec30,'coordinator':_0x36638b}),'children':_0x40000b(_0x2cd437(0x217),{'className':_0x42fd34('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x4eec30===h[_0x2cd437(0x1b9)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4eec30!==h[_0x2cd437(0x1b9)]}),'type':_0x2cd437(0x217),'children':_0x40000b(B,{'className':_0x2cd437(0x1fb)})})}):null;}function $e(_0x42422e){var _0x385cf3=_0x52f618;const {status:_0x2af355,coordinator:_0x191f59}=_0x42422e;switch(_0x2af355){case h[_0x385cf3(0x1c9)]:return _0x40000b(Fe,{'coordinator':_0x191f59});case h['FOLLOWING']:return _0x40000b(He,{'coordinator':_0x191f59});case h['NOT_FOLLOWING']:return _0x40000b(je,{'coordinator':_0x191f59});case h[_0x385cf3(0x1b9)]:return _0x40000b(Ve,{});case h[_0x385cf3(0x19c)]:return _0x40000b(Ue,{'coordinator':_0x191f59});default:return null;}}function Fe(_0x588448){var _0x50b975=_0x52f618;const {coordinator:_0x47920c}=_0x588448;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x50b975(0x1f2),{'className':_0x50b975(0x20e),'children':_0x50b975(0x225)}),_0x40000b(_0xe015b0,{'onClick':()=>_0x47920c[_0x50b975(0x1ea)](),'children':_0x50b975(0x223)})]});}function He(_0xc284b4){var _0x201cfb=_0x52f618;const {coordinator:_0x34b28f}=_0xc284b4;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x201cfb(0x1f2),{'className':_0x201cfb(0x20e),'children':_0x201cfb(0x1ec)}),_0x40000b(_0xe015b0,{'onClick':()=>_0x34b28f[_0x201cfb(0x190)](),'children':_0x201cfb(0x21c)})]});}function je(_0x7130a7){var _0x47af74=_0x52f618;const {coordinator:_0x936c88}=_0x7130a7;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x47af74(0x1f2),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x40000b(_0xe015b0,{'variant':_0x47af74(0x1e6),'onClick':()=>_0x936c88[_0x47af74(0x18d)](),'children':_0x47af74(0x192)})]});}function Ue(_0x4382e9){var _0x428739=_0x52f618;const {coordinator:_0x4d9875}=_0x4382e9;return _0x54f880(_0x4aa632,{'children':[_0x40000b(_0x428739(0x1f2),{'className':_0x428739(0x20e),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x40000b(_0xe015b0,{'variant':_0x428739(0x210),'onClick':()=>_0x4d9875[_0x428739(0x1dc)](),'children':_0x428739(0x189)})]});}function Ve(){var _0x2b7de5=_0x52f618;return _0x40000b(_0x4aa632,{'children':_0x2b7de5(0x1af)});}var Me=Object[_0x52f618(0x1d3)],ke=(_0xdc6e37,_0x19091d,_0x378a27,_0x4ddcaa)=>{var _0x197557=_0x52f618;for(var _0x3f28ce=_0x4ddcaa>0x1?void 0x0:_0x4ddcaa?Me(_0x19091d,_0x378a27):_0x19091d,_0x3db41f=_0xdc6e37[_0x197557(0x1ab)]-0x1,_0x5ebf42;_0x3db41f>=0x0;_0x3db41f--)(_0x5ebf42=_0xdc6e37[_0x3db41f])&&(_0x3f28ce=_0x5ebf42(_0x3f28ce)||_0x3f28ce);return _0x3f28ce;},$=(_0x465107,_0x2c75d0)=>(_0x22ec3f,_0x43cc29)=>_0x2c75d0(_0x22ec3f,_0x43cc29,_0x465107);let b=class extends _0x4d2b6f{constructor(_0x49f4e1,_0x51766d){var _0x167e68=_0x52f618;super(),this[_0x167e68(0x1e1)]=_0x49f4e1,this['_uiPartsService']=_0x51766d,this['_mountLiveShare']();}[_0x52f618(0x220)](){var _0x2f4c44=_0x52f618;this[_0x2f4c44(0x201)](this[_0x2f4c44(0x1b0)][_0x2f4c44(0x1f7)](_0x50ace2['HEADER_MENU'],()=>_0x4ee5c0(Te,this[_0x2f4c44(0x1e1)])));}};b=ke([$(0x0,_0x5b76c2(_0x5d2218)),$(0x1,_0x259a30)],b);var Ge=Object[_0x52f618(0x233)],We=Object['getOwnPropertyDescriptor'],Ye=(_0x24304f,_0x12494d,_0x20c505)=>_0x12494d in _0x24304f?Ge(_0x24304f,_0x12494d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x20c505}):_0x24304f[_0x12494d]=_0x20c505,Be=(_0x5db938,_0xc91b41,_0x5ef0f5,_0x33e17b)=>{for(var _0x50c8b8=_0x33e17b>0x1?void 0x0:_0x33e17b?We(_0xc91b41,_0x5ef0f5):_0xc91b41,_0x1824cd=_0x5db938['length']-0x1,_0x21ea9f;_0x1824cd>=0x0;_0x1824cd--)(_0x21ea9f=_0x5db938[_0x1824cd])&&(_0x50c8b8=_0x21ea9f(_0x50c8b8)||_0x50c8b8);return _0x50c8b8;},F=(_0x24ae69,_0x40c7f9)=>(_0x185378,_0x32e376)=>_0x40c7f9(_0x185378,_0x32e376,_0x24ae69),J=(_0x33f2c4,_0x33e91c,_0x46488c)=>Ye(_0x33f2c4,typeof _0x33e91c!=_0x52f618(0x1a1)?_0x33e91c+'':_0x33e91c,_0x46488c);const Ze=_0x52f618(0x22a);let O=class extends _0x26e656{constructor(_0x894bf4=T,_0x10e4ae,_0x2d519e){var _0xfc994e=_0x52f618;super(),this[_0xfc994e(0x22f)]=_0x894bf4,this['_injector']=_0x10e4ae,this[_0xfc994e(0x1fd)]=_0x2d519e;const {..._0x2a10b5}=_0x2cad00({},T,this[_0xfc994e(0x22f)]);this['_configService'][_0xfc994e(0x1ee)](Oe,_0x2a10b5);}[_0x52f618(0x1de)](){var _0x2d6abc=_0x52f618;_0x153635(this['_injector'],_0x2088e7([[L],[I],[m],[b]],this[_0x2d6abc(0x22f)][_0x2d6abc(0x1a5)])),_0xd0dab7(this['_injector'],[[m]]);}[_0x52f618(0x1ef)](){var _0x596771=_0x52f618;_0xd0dab7(this[_0x596771(0x1e1)],[[b]]);}};function _0x56cb(_0x4279c1,_0x9bf0aa){var _0x3701d8=_0x3701();return _0x56cb=function(_0x56cb7d,_0xcc5148){_0x56cb7d=_0x56cb7d-0x182;var _0x5ed63d=_0x3701d8[_0x56cb7d];return _0x5ed63d;},_0x56cb(_0x4279c1,_0x9bf0aa);}J(O,_0x52f618(0x20d),_0x174153['UNIVER_UNKNOWN']),J(O,_0x52f618(0x184),Ze),O=Be([_0x3ab6ef(_0x4f23e0),F(0x1,_0x5b76c2(_0x5d2218)),F(0x2,_0x44d386)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x354a21=_0x5e3d;(function(_0x42ea0c,_0xf09afa){var _0x50ae93=_0x5e3d,_0x5cb415=_0x42ea0c();while(!![]){try{var _0x33710c=-parseInt(_0x50ae93(0xe8))/0x1*(-parseInt(_0x50ae93(0x87))/0x2)+-parseInt(_0x50ae93(0xd4))/0x3+-parseInt(_0x50ae93(0xfd))/0x4+-parseInt(_0x50ae93(0x81))/0x5+parseInt(_0x50ae93(0x9a))/0x6*(-parseInt(_0x50ae93(0xf9))/0x7)+-parseInt(_0x50ae93(0xb0))/0x8*(parseInt(_0x50ae93(0x111))/0x9)+parseInt(_0x50ae93(0x7b))/0xa;if(_0x33710c===_0xf09afa)break;else _0x5cb415['push'](_0x5cb415['shift']());}catch(_0x2c421f){_0x5cb415['push'](_0x5cb415['shift']());}}}(_0x2f1e,0x8980f));var q=Object[_0x354a21(0x8e)],z=(_0x24b255,_0x2a504b,_0xed401f)=>_0x2a504b in _0x24b255?q(_0x24b255,_0x2a504b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xed401f}):_0x24b255[_0x2a504b]=_0xed401f,d=(_0x22395e,_0xa8bb81,_0x3740af)=>z(_0x22395e,typeof _0xa8bb81!=_0x354a21(0x100)?_0xa8bb81+'':_0xa8bb81,_0x3740af);import{CollaborationSessionService as _0x2f2920,SessionStatus as _0x9139c,UniverCollaborationClientPlugin as _0x21d6c8}from'@univerjs-pro/collaboration-client';import{Disposable as _0x386ab1,toDisposable as _0x4e9940,Inject as _0x2e9116,IUniverInstanceService as _0x3e21b2,Injector as _0x3ed045,IConfigService as _0x400c78,ICommandService as _0x12a0d1,RxDisposable as _0xe43e0f,UniverInstanceType as _0x91c20b,DisposableCollection as _0x548b5a,CommandType as _0x17d476,DependentOn as _0x3a2df0,Plugin as _0x180c7f,merge as _0x1b238c,registerDependencies as _0x343fdf,mergeOverrideWithDependencies as _0x4d4ce2,touchDependencies as _0x4a7fc6}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x46b160,InsertSheetMutation as _0x5124c6}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x173fb2,SetScrollOperation as _0x151ccb}from'@univerjs/sheets-ui';import{useDependency as _0x4d223b,useObservable as _0x554762,IUIPartsService as _0x4f05c6,BuiltInUIPart as _0x41322a,connectInjector as _0x58975f}from'@univerjs/ui';import{jsx as _0x4ec8b9,jsxs as _0x4fbbd0,Fragment as _0x1f4bc6}from'react/jsx-runtime';import{Dropdown as _0x22ede1,clsx as _0x340399,Button as _0x5cd01a}from'@univerjs/design';import{forwardRef as _0x181f4e,useRef as _0x504991,createElement as _0x2b1318,useState as _0x2774ba,useEffect as _0x431a79}from'react';import{CollaborationEvent as _0x596cfa,parseProtocolChangeset as _0x368b63}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x37ddb3,Subject as _0x34a5f6}from'rxjs';import{takeUntil as _0x3a462a,throttleTime as _0x195d49}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x386ab1{constructor(){super(...arguments),d(this,'_sharedOperations',new Set()),d(this,'_reporters',new Set());}['registerSharedOperation'](_0x16f132){var _0x49e204=_0x354a21;return this[_0x49e204(0xab)][_0x49e204(0x11a)](_0x16f132),_0x4e9940(()=>this[_0x49e204(0xab)]['delete'](_0x16f132));}[_0x354a21(0x83)](_0x159d03){var _0x329793=_0x354a21;return this[_0x329793(0x9b)][_0x329793(0x11a)](_0x159d03),_0x4e9940(()=>this[_0x329793(0x9b)][_0x329793(0x11c)](_0x159d03));}['shouldShareOperation'](_0x5a211f){var _0x37bcb2=_0x354a21;return this[_0x37bcb2(0xab)][_0x37bcb2(0xd3)](_0x5a211f);}['getInitialStates'](_0x397694){var _0x1895cc=_0x354a21;return Array[_0x1895cc(0xaa)](this[_0x1895cc(0x9b)])['map'](_0x38c17c=>_0x38c17c(_0x397694));}}var Ee=Object[_0x354a21(0x10d)],we=(_0x30604d,_0x33850d,_0x2f3c62,_0x4653c3)=>{for(var _0x16a695=_0x4653c3>0x1?void 0x0:_0x4653c3?Ee(_0x33850d,_0x2f3c62):_0x33850d,_0xe42d97=_0x30604d['length']-0x1,_0x5194fe;_0xe42d97>=0x0;_0xe42d97--)(_0x5194fe=_0x30604d[_0xe42d97])&&(_0x16a695=_0x5194fe(_0x16a695)||_0x16a695);return _0x16a695;},Ne=(_0xfbaf80,_0x50789e)=>(_0x4e06b6,_0x1184bf)=>_0x50789e(_0x4e06b6,_0x1184bf,_0xfbaf80);let m=class extends _0x386ab1{constructor(_0x1596a5){var _0x25def4=_0x354a21;super(),this[_0x25def4(0xde)]=_0x1596a5,this[_0x25def4(0xc4)]();}[_0x354a21(0xc4)](){var _0x5517b5=_0x354a21;[_0x173fb2['id'],_0x151ccb['id'],_0x46b160['id']][_0x5517b5(0xc3)](_0x598fab=>{var _0x1e0db0=_0x5517b5;this[_0x1e0db0(0xc5)](this[_0x1e0db0(0xde)]['registerSharedOperation'](_0x598fab));});}};m=we([Ne(0x0,_0x2e9116(L))],m);var c=function(){var _0x1d9203=_0x354a21;return c=Object[_0x1d9203(0x117)]||function(_0x171c2c){var _0x3898b1=_0x1d9203;for(var _0x11f0c8,_0x4dc5c6=0x1,_0xa6c669=arguments['length'];_0x4dc5c6<_0xa6c669;_0x4dc5c6++){_0x11f0c8=arguments[_0x4dc5c6];for(var _0x3cdde8 in _0x11f0c8)Object[_0x3898b1(0xfb)][_0x3898b1(0x78)][_0x3898b1(0x9d)](_0x11f0c8,_0x3cdde8)&&(_0x171c2c[_0x3cdde8]=_0x11f0c8[_0x3cdde8]);}return _0x171c2c;},c[_0x1d9203(0xc7)](this,arguments);},Ce=function(_0x12fb1f,_0x2b493c){var _0x364958=_0x354a21,_0x293e91={};for(var _0x5cf627 in _0x12fb1f)Object['prototype']['hasOwnProperty'][_0x364958(0x9d)](_0x12fb1f,_0x5cf627)&&_0x2b493c[_0x364958(0xbf)](_0x5cf627)<0x0&&(_0x293e91[_0x5cf627]=_0x12fb1f[_0x5cf627]);if(_0x12fb1f!=null&&typeof Object['getOwnPropertySymbols']==_0x364958(0x96)){for(var _0x49a5fe=0x0,_0x5cf627=Object[_0x364958(0xcd)](_0x12fb1f);_0x49a5fe<_0x5cf627[_0x364958(0x88)];_0x49a5fe++)_0x2b493c[_0x364958(0xbf)](_0x5cf627[_0x49a5fe])<0x0&&Object[_0x364958(0xfb)][_0x364958(0xe5)][_0x364958(0x9d)](_0x12fb1f,_0x5cf627[_0x49a5fe])&&(_0x293e91[_0x5cf627[_0x49a5fe]]=_0x12fb1f[_0x5cf627[_0x49a5fe]]);}return _0x293e91;},W=_0x181f4e(function(_0x50d3db,_0x392eea){var _0x4d4739=_0x354a21,_0x433d8f=_0x50d3db[_0x4d4739(0xa1)],_0x354cd9=_0x50d3db['id'],_0x524d98=_0x50d3db[_0x4d4739(0xe9)],_0x3f9b8a=_0x50d3db[_0x4d4739(0x11d)],_0x2e201f=Ce(_0x50d3db,['icon','id',_0x4d4739(0xe9),_0x4d4739(0x11d)]),_0x3c7b0b=_0x4d4739(0xe4)[_0x4d4739(0xf7)](_0x354cd9,'\x20')[_0x4d4739(0xf7)](_0x524d98||'')[_0x4d4739(0x93)](),_0x3e6e58=_0x504991('_'['concat'](Le()));return Y(_0x433d8f,''[_0x4d4739(0xf7)](_0x354cd9),{'defIds':_0x433d8f[_0x4d4739(0xe6)],'idSuffix':_0x3e6e58['current']},c({'ref':_0x392eea,'className':_0x3c7b0b},_0x2e201f),_0x3f9b8a);});function Y(_0x28991c,_0x23d957,_0x33ea1a,_0xa9378,_0x4d2846){var _0x2fbabc=_0x354a21;return _0x2b1318(_0x28991c['tag'],c(c({'key':_0x23d957},De(_0x28991c,_0x33ea1a,_0x4d2846)),_0xa9378),(xe(_0x28991c,_0x33ea1a)[_0x2fbabc(0xa3)]||[])['map'](function(_0x43a4b1,_0x500695){var _0x55bcc5=_0x2fbabc;return Y(_0x43a4b1,''[_0x55bcc5(0xf7)](_0x23d957,'-')[_0x55bcc5(0xf7)](_0x28991c[_0x55bcc5(0xdb)],'-')[_0x55bcc5(0xf7)](_0x500695),_0x33ea1a,void 0x0,_0x4d2846);}));}function De(_0x39334a,_0x5ec049,_0x394462){var _0x14ef9f=_0x354a21,_0x1d1479=c({},_0x39334a[_0x14ef9f(0xef)]);_0x394462!=null&&_0x394462[_0x14ef9f(0xe0)]&&_0x1d1479[_0x14ef9f(0x11e)]===_0x14ef9f(0xe0)&&(_0x1d1479[_0x14ef9f(0x11e)]=_0x394462[_0x14ef9f(0xe0)]),_0x39334a[_0x14ef9f(0xdb)]===_0x14ef9f(0x79)&&_0x1d1479['id']&&(_0x1d1479['id']=_0x1d1479['id']+_0x5ec049[_0x14ef9f(0xba)]),Object['entries'](_0x1d1479)[_0x14ef9f(0xc3)](function(_0x1a3bc9){var _0x22b79f=_0x14ef9f,_0x136a88=_0x1a3bc9[0x0],_0xabd44e=_0x1a3bc9[0x1];_0x136a88===_0x22b79f(0x79)&&typeof _0xabd44e==_0x22b79f(0xd5)&&(_0x1d1479[_0x136a88]=_0xabd44e[_0x22b79f(0xb3)](/url\(#(.*)\)/,_0x22b79f(0x10a)['concat'](_0x5ec049['idSuffix'],')')));});var _0x1f4b43=_0x5ec049[_0x14ef9f(0xe6)];return!_0x1f4b43||_0x1f4b43[_0x14ef9f(0x88)]===0x0||(_0x39334a[_0x14ef9f(0xdb)]===_0x14ef9f(0xa0)&&_0x1d1479[_0x14ef9f(0xa4)]&&(_0x1d1479['xlink:href']=_0x1d1479[_0x14ef9f(0xa4)]+_0x5ec049[_0x14ef9f(0xba)]),Object[_0x14ef9f(0xb2)](_0x1d1479)[_0x14ef9f(0xc3)](function(_0x22055a){var _0x11815c=_0x14ef9f,_0x11ddbc=_0x22055a[0x0],_0x31be98=_0x22055a[0x1];typeof _0x31be98==_0x11815c(0xd5)&&(_0x1d1479[_0x11ddbc]=_0x31be98[_0x11815c(0xb3)](/url\(#(.*)\)/,'url(#$1'[_0x11815c(0xf7)](_0x5ec049[_0x11815c(0xba)],')')));})),_0x1d1479;}function xe(_0x321c56,_0x110046){var _0x4bf98d=_0x354a21,_0x3d07de,_0x1f0f39=_0x110046[_0x4bf98d(0xe6)];return!_0x1f0f39||_0x1f0f39['length']===0x0?_0x321c56:_0x321c56[_0x4bf98d(0xdb)]===_0x4bf98d(0xae)&&(!((_0x3d07de=_0x321c56['children'])===null||_0x3d07de===void 0x0)&&_0x3d07de[_0x4bf98d(0x88)])?c(c({},_0x321c56),{'children':_0x321c56[_0x4bf98d(0xa3)][_0x4bf98d(0xc9)](function(_0x14a4c7){var _0x32307e=_0x4bf98d;return typeof _0x14a4c7['attrs']['id']==_0x32307e(0xd5)&&_0x1f0f39&&_0x1f0f39[_0x32307e(0xcc)](_0x14a4c7[_0x32307e(0xef)]['id'])?c(c({},_0x14a4c7),{'attrs':c(c({},_0x14a4c7[_0x32307e(0xef)]),{'id':_0x14a4c7[_0x32307e(0xef)]['id']+_0x110046['idSuffix']})}):_0x14a4c7;})}):_0x321c56;}function _0x2f1e(){var _0xfef51c=['UNIVER_SHEET','idle','univer-w-full\x20univer-mb-3\x20univer-text-sm','univer-size-4','attrs','OPERATION','live-share-icon','1em','getConfig','LIVESHARE_TERMINATE','getMemberID','_uiPartsService','concat','IDLE','1157401MZCOvK','clear','prototype','presenter','1940972OjvKFm','_handleOperation','currentColor','symbol','button','UniverIcon','set','operations','type','createInstance','startFollowing','reverse','offline','url(#$1','_stopFollowing','random','getOwnPropertyDescriptor','toString','presenting','FOLLOWING','5065659GnCDkB','HEADER_MENU','PRESENTING','_startLiveShareCoordinator','stopPresenting','getLiveShareCoordinator','assign','_handleTerminate','getInitialStates','add','next','delete','extend','fill','LIVESHARE_REQUEST_HOST','tryStartPresenting','following','You\x27re\x20following\x20the\x20presenter','sessionStatus$','params','asObservable','0\x200\x2017\x2017','values','hasOwnProperty','mask','_collabSession','17701960LVSEhB','subscribe','stopFollowing','get','_presenter','parse','2741595DGnnrQ','NOT_FOLLOWING','registerInitialStateReporter','_univerInstanceService','mutations','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','2NewVHq','length','_stopPresenting','_fetchOperations','Stop\x20following','status$','not-following','defineProperty','You\x27re\x20presenting\x20the\x20document','_startPresenting','_handleNewChangeSets','_unitID','trim','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','data','function','_startFollowing','onStarting','pluginName','6CLiUjZ','_reporters','init','call','getUnitId','_mountLiveShare','use','icon','sheet','children','xlink:href','getCurrentTypeOfUnit$','find','then','_handleNewHost','dispose','from','_sharedOperations','LIVESHARE_OPERATION','Start\x20following','defs','Present\x20this\x20document','8PFPCUo','UNIVER_UNKNOWN','entries','replace','_entities','stringify','LiveShareIcon','LIVESHARE_FETCH_OPERATIONS','send','override','idSuffix','end','getTypeOfUnitDisposed$','_commandDisposable','default','indexOf','_injector','dispose$','current','forEach','_init','disposeWithMe','evenodd','apply','text','map','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','pipe','includes','getOwnPropertySymbols','div','OFFLINE','path','substring','_configService','has','1364991DwLkhC','string','shouldShareOperation','_beIdle','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','executeCommand','_status','tag','unsubscribe','setConfig','_liveShareService','Start','colorChannel1','_config','registerComponent','_commandService','univerjs-icon\x20univerjs-icon-','propertyIsEnumerable','defIds','_handleOnline','1009772HQTsnY','className','_status$'];_0x2f1e=function(){return _0xfef51c;};return _0x2f1e();}function Le(){var _0x57eecd=_0x354a21;return Math[_0x57eecd(0x10c)]()[_0x57eecd(0x10e)](0x24)[_0x57eecd(0xd1)](0x2,0x8);}W['displayName']=_0x354a21(0x102);var ye={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':'none','viewBox':_0x354a21(0x76),'width':_0x354a21(0xf2),'height':_0x354a21(0xf2)},'children':[{'tag':_0x354a21(0xd0),'attrs':{'fill':_0x354a21(0xff),'d':_0x354a21(0xd8)}},{'tag':_0x354a21(0xd0),'attrs':{'fill':'currentColor','d':_0x354a21(0x86),'fillRule':_0x354a21(0xc6),'clipRule':_0x354a21(0xc6)}}]},B=_0x181f4e(function(_0x9cd61d,_0x5dc91e){var _0x4ed9fb=_0x354a21;return _0x2b1318(W,Object['assign']({},_0x9cd61d,{'id':_0x4ed9fb(0xf1),'ref':_0x5dc91e,'icon':ye}));});B['displayName']=_0x354a21(0xb6);var Re=Object[_0x354a21(0x10d)],Z=(_0x3d0695,_0x580276,_0x32d07a,_0x539db0)=>{for(var _0x3a2fc9=_0x539db0>0x1?void 0x0:_0x539db0?Re(_0x580276,_0x32d07a):_0x580276,_0x45905e=_0x3d0695['length']-0x1,_0x566aa1;_0x45905e>=0x0;_0x45905e--)(_0x566aa1=_0x3d0695[_0x45905e])&&(_0x3a2fc9=_0x566aa1(_0x3a2fc9)||_0x3a2fc9);return _0x3a2fc9;},f=(_0x28d168,_0x3bff7f)=>(_0xd6d1ee,_0x1850da)=>_0x3bff7f(_0xd6d1ee,_0x1850da,_0x28d168);let I=class extends _0xe43e0f{constructor(_0x460b57,_0x226062,_0x1753f0){var _0x870dfe=_0x354a21;super(),d(this,_0x870dfe(0xb4),new Map()),(this[_0x870dfe(0x84)]=_0x460b57,this[_0x870dfe(0xc0)]=_0x226062,this['_collabSessionService']=_0x1753f0,this[_0x870dfe(0xc4)]());}async['getLiveShareCoordinator'](_0x3c9c6c){var _0x4ecfef=_0x354a21;return this[_0x4ecfef(0xb4)][_0x4ecfef(0xd3)](_0x3c9c6c)||await this['_startLiveShareCoordinator'](_0x3c9c6c),this['_entities'][_0x4ecfef(0x7e)](_0x3c9c6c);}[_0x354a21(0xc4)](){var _0x21633e=_0x354a21;this[_0x21633e(0x84)]['getTypeOfUnitAdded$'](_0x91c20b[_0x21633e(0xeb)])['pipe'](_0x3a462a(this[_0x21633e(0xc1)]))['subscribe'](async _0x176e43=>{var _0x22f717=_0x21633e;const _0x10d1e6=_0x176e43[_0x22f717(0x9e)]();this[_0x22f717(0xb4)][_0x22f717(0xd3)](_0x10d1e6)||this[_0x22f717(0x114)](_0x10d1e6);}),this[_0x21633e(0x84)][_0x21633e(0xbc)](_0x91c20b['UNIVER_SHEET'])[_0x21633e(0xcb)](_0x3a462a(this[_0x21633e(0xc1)]))[_0x21633e(0x7c)](_0x48505f=>{var _0x10a7d4=_0x21633e;const _0x432efe=_0x48505f['getUnitId'](),_0x5a6aa0=this['_entities'][_0x10a7d4(0x7e)](_0x432efe);_0x5a6aa0==null||_0x5a6aa0[_0x10a7d4(0xa9)]();});}async['_startLiveShareCoordinator'](_0x4d52d7){var _0x2aa13d=_0x354a21;const _0x1705e7=await this['_collabSessionService']['requireSession'](_0x4d52d7),_0x509425=this[_0x2aa13d(0xc0)][_0x2aa13d(0x106)](C,_0x4d52d7,_0x1705e7);return _0x509425[_0x2aa13d(0x9c)](),this['_entities'][_0x2aa13d(0x103)](_0x4d52d7,_0x509425),_0x509425;}};I=Z([f(0x0,_0x3e21b2),f(0x1,_0x2e9116(_0x3ed045)),f(0x2,_0x2e9116(_0x2f2920))],I);var h=(_0x4246d6=>(_0x4246d6[_0x354a21(0xcf)]=_0x354a21(0x109),_0x4246d6[_0x354a21(0xf8)]=_0x354a21(0xec),_0x4246d6['FOLLOWING']=_0x354a21(0x71),_0x4246d6['NOT_FOLLOWING']='not-following',_0x4246d6[_0x354a21(0x113)]=_0x354a21(0x10f),_0x4246d6))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0xe43e0f{constructor(_0x1cd1c1,_0x4df30b,_0x1336ae,_0x5194cd,_0xfc6b4f){var _0x43d645=_0x354a21;super(),d(this,_0x43d645(0xea),new _0x37ddb3(_0x43d645(0xec))),d(this,_0x43d645(0x8c),this[_0x43d645(0xea)][_0x43d645(0x75)]()),d(this,_0x43d645(0xc4),!0x1),d(this,_0x43d645(0xbd),null),d(this,_0x43d645(0x7f),null),(this['_unitID']=_0x1cd1c1,this['_collabSession']=_0x4df30b,this[_0x43d645(0xd2)]=_0x1336ae,this[_0x43d645(0xde)]=_0x5194cd,this[_0x43d645(0xe3)]=_0xfc6b4f);}get[_0x354a21(0xda)](){var _0x2e97c8=_0x354a21;return this[_0x2e97c8(0xea)]['getValue']();}[_0x354a21(0xa9)](){var _0x4976f2=_0x354a21,_0x213fa6;(_0x213fa6=this['_commandDisposable'])==null||_0x213fa6[_0x4976f2(0xa9)](),this[_0x4976f2(0xea)][_0x4976f2(0x11b)](_0x4976f2(0xec)),this[_0x4976f2(0xea)]['complete']();}['init'](){var _0x56d491=_0x354a21;this['_init']||(this[_0x56d491(0xc4)]=!0x0,this['_collabSession'][_0x56d491(0x73)]['pipe'](_0x3a462a(this['dispose$']))[_0x56d491(0x7c)](_0x3391c3=>{var _0x2031ec=_0x56d491;switch(_0x3391c3){case _0x9139c[_0x2031ec(0xcf)]:this['_handleOffline']();break;case _0x9139c['ONLINE']:this[_0x2031ec(0xe7)]();break;}}),this[_0x56d491(0x7a)]['event$']['pipe'](_0x3a462a(this[_0x56d491(0xc1)]))['subscribe'](_0x378988=>{var _0x44d51b=_0x56d491;const {eventID:_0x3efcb9}=_0x378988;switch(_0x3efcb9){case _0x596cfa['LIVESHARE_NEW_HOST']:this[_0x44d51b(0xa8)](_0x378988);break;case _0x596cfa['LIVESHARE_OPERATION']:this[_0x44d51b(0xfe)](_0x378988);break;case _0x596cfa[_0x44d51b(0xf4)]:this['_handleTerminate']();break;case _0x596cfa['NEW_CHANGESETS']:this[_0x44d51b(0x91)](_0x378988);break;}}));}[_0x354a21(0x70)](){var _0x542d34=_0x354a21;this[_0x542d34(0x7a)][_0x542d34(0xb8)]({'eventID':_0x596cfa[_0x542d34(0x6f)],'data':{'unitID':this[_0x542d34(0x92)],'userID':this[_0x542d34(0x7a)][_0x542d34(0xf5)]()}},this[_0x542d34(0x92)]);}[_0x354a21(0x115)](){var _0x36065e=_0x354a21;this[_0x36065e(0xda)]==='presenting'&&(this[_0x36065e(0xea)][_0x36065e(0x11b)](_0x36065e(0xec)),this['_collabSession'][_0x36065e(0xb8)]({'eventID':_0x596cfa['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x36065e(0x92)]}},this[_0x36065e(0x92)]));}[_0x354a21(0x107)](){var _0x46100c=_0x354a21;this[_0x46100c(0xda)]==='not-following'&&(this['_status$'][_0x46100c(0x11b)](_0x46100c(0x71)),this[_0x46100c(0x97)]());}[_0x354a21(0x7d)](){var _0x181af0=_0x354a21;this[_0x181af0(0xda)]===_0x181af0(0x71)&&this[_0x181af0(0x10b)]();}['_handleNewHost'](_0x28b182){var _0x12d1ce=_0x354a21;const {presenter:_0x5d8bd2}=_0x28b182[_0x12d1ce(0x95)],_0x18cd39=this[_0x12d1ce(0x7a)][_0x12d1ce(0xf5)]();this[_0x12d1ce(0x7f)]=_0x5d8bd2,_0x5d8bd2===_0x18cd39?(this[_0x12d1ce(0x10b)](),this[_0x12d1ce(0x90)]()):this['_status']!==_0x12d1ce(0x8d)&&(this[_0x12d1ce(0x89)](),this[_0x12d1ce(0x97)]());}[_0x354a21(0x8a)](){var _0x2a1de0=_0x354a21;const _0x12dc7c={'eventID':_0x596cfa[_0x2a1de0(0xb7)]};this['_collabSession'][_0x2a1de0(0xb8)](_0x12dc7c,this[_0x2a1de0(0x92)]);}[_0x354a21(0x118)](){var _0x5ea510=_0x354a21;this[_0x5ea510(0x7f)]=null,this['_status']!==_0x5ea510(0x10f)&&this[_0x5ea510(0xd7)]();}[_0x354a21(0x91)](_0x3c3301){var _0x266d25=_0x354a21;if(this[_0x266d25(0xda)]==='following'&&this['_presenter']===_0x3c3301['data']['memberID']){const _0x44f9e6=_0x368b63(_0x3c3301['data'])[_0x266d25(0x85)][_0x266d25(0x108)]()[_0x266d25(0xa6)](_0x30bc32=>_0x30bc32['id']===_0x5124c6['id']);if(_0x44f9e6){const _0x33ab5d=_0x44f9e6['params']['unitId'],_0x5dcf29=_0x44f9e6['params'][_0x266d25(0xa2)]['id'];setTimeout(()=>{var _0x3a9eae=_0x266d25;this['_commandService'][_0x3a9eae(0xd9)](_0x46b160['id'],{'unitId':_0x33ab5d,'subUnitId':_0x5dcf29},{'fromCollab':!0x0});});}}}[_0x354a21(0x90)](){var _0x410531=_0x354a21;this['_status$']['next'](_0x410531(0x10f));const _0x1da2f6=new Map(),_0x3a467d=this['_commandDisposable']=new _0x548b5a();_0x3a467d[_0x410531(0x11a)](_0x4e9940(()=>{var _0x103802=_0x410531;_0x1da2f6[_0x103802(0xc3)](_0x41aea7=>_0x41aea7['complete']()),_0x1da2f6[_0x103802(0xfa)]();})),_0x3a467d[_0x410531(0x11a)](this[_0x410531(0xe3)]['onCommandExecuted'](_0x134b27=>{var _0x2fbf03=_0x410531,_0x4a5349;if(_0x134b27[_0x2fbf03(0x105)]!==_0x17d476[_0x2fbf03(0xf0)]||!this[_0x2fbf03(0xde)][_0x2fbf03(0xd6)](_0x134b27['id']))return;const {id:_0x32b213}=_0x134b27;let _0x34dc7b;_0x1da2f6[_0x2fbf03(0xd3)](_0x32b213)?_0x34dc7b=_0x1da2f6['get'](_0x32b213):(_0x34dc7b=new _0x34a5f6(),_0x1da2f6[_0x2fbf03(0x103)](_0x32b213,_0x34dc7b),_0x34dc7b[_0x2fbf03(0xcb)](_0x195d49((_0x4a5349=this[_0x2fbf03(0xd2)][_0x2fbf03(0xf3)](Pe))!=null?_0x4a5349:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2fbf03(0x7c)](_0x55acbd=>{var _0x476287=_0x2fbf03;this[_0x476287(0x7a)][_0x476287(0xb8)]({'eventID':_0x596cfa[_0x476287(0xac)],'data':{'unitID':this[_0x476287(0x92)],'operations':{[_0x55acbd['id']]:{'id':_0x55acbd['id'],'params':JSON[_0x476287(0xb5)](_0x55acbd[_0x476287(0x74)])}}}},this['_unitID']);})),_0x34dc7b[_0x2fbf03(0x11b)](_0x134b27);})),this[_0x410531(0xde)][_0x410531(0x119)](this[_0x410531(0x92)])['forEach'](_0x55ee37=>this[_0x410531(0x7a)][_0x410531(0xb8)]({'eventID':_0x596cfa[_0x410531(0xac)],'data':{'unitID':this[_0x410531(0x92)],'operations':{[_0x55ee37['id']]:{'id':_0x55ee37['id'],'params':JSON[_0x410531(0xb5)](_0x55ee37['params'])}}}},this[_0x410531(0x92)]));}[_0x354a21(0x89)](){var _0x5ba1dc=_0x354a21,_0x349934;this['_status$']['next'](_0x5ba1dc(0xec)),(_0x349934=this[_0x5ba1dc(0xbd)])==null||_0x349934[_0x5ba1dc(0xa9)](),this['_commandDisposable']=null;}['_startFollowing'](){var _0x332d63=_0x354a21,_0x4aa722;(_0x4aa722=this['_commandDisposable'])==null||_0x4aa722[_0x332d63(0xa9)](),this['_status$'][_0x332d63(0x11b)](_0x332d63(0x71));}[_0x354a21(0xd7)](){var _0x1b69d0=_0x354a21,_0x1d7e60;this[_0x1b69d0(0xea)][_0x1b69d0(0x11b)](_0x1b69d0(0xec)),(_0x1d7e60=this[_0x1b69d0(0xbd)])==null||_0x1d7e60[_0x1b69d0(0xa9)](),this['_commandDisposable']=null;}[_0x354a21(0x10b)](){var _0x11d96e=_0x354a21,_0x29c071;this[_0x11d96e(0xea)]['next'](_0x11d96e(0x8d)),(_0x29c071=this[_0x11d96e(0xbd)])==null||_0x29c071[_0x11d96e(0xa9)]();}[_0x354a21(0xfe)](_0x4e1f31){var _0x2a6c91=_0x354a21;if([_0x2a6c91(0x10f),_0x2a6c91(0x8d),'offline'][_0x2a6c91(0xcc)](this[_0x2a6c91(0xda)])||!_0x4e1f31['data'][_0x2a6c91(0xfc)]||_0x4e1f31[_0x2a6c91(0x95)][_0x2a6c91(0xfc)]===this[_0x2a6c91(0x7a)][_0x2a6c91(0xf5)]())return;this['_status']===_0x2a6c91(0xec)&&this[_0x2a6c91(0x97)]();const _0x5b26e8=_0x4e1f31[_0x2a6c91(0x95)][_0x2a6c91(0x104)];Object[_0x2a6c91(0x77)](_0x5b26e8)[_0x2a6c91(0xc3)](_0x11324d=>{var _0x403fba=_0x2a6c91;this['_commandService'][_0x403fba(0xd9)](_0x11324d['id'],_0x11324d[_0x403fba(0x74)]?JSON[_0x403fba(0x80)](_0x11324d[_0x403fba(0x74)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x31ee87=_0x354a21,_0x51c06e;this[_0x31ee87(0xea)][_0x31ee87(0x11b)](_0x31ee87(0x109)),(_0x51c06e=this[_0x31ee87(0xbd)])==null||_0x51c06e[_0x31ee87(0xa9)]();}['_handleOnline'](){var _0xcd5451=_0x354a21;this[_0xcd5451(0xea)][_0xcd5451(0x11b)](_0xcd5451(0xec)),this[_0xcd5451(0x8a)]();}};C=Z([f(0x2,_0x400c78),f(0x3,_0x2e9116(L)),f(0x4,_0x12a0d1)],C);function Te(){var _0x4ff75b=_0x354a21;const _0x41099d=_0x4d223b(I),_0x4e92d7=_0x4d223b(_0x3e21b2),_0x1c5635=_0x554762(()=>_0x4e92d7[_0x4ff75b(0xa5)](_0x91c20b[_0x4ff75b(0xeb)]),void 0x0,!0x1,[]),[_0xdd1fda,_0x313715]=_0x2774ba(null),[_0x344ff0,_0x52e206]=_0x2774ba(h['IDLE']),_0x3bed0a=_0x504991(null);return _0x431a79(()=>(_0x1c5635&&_0x41099d[_0x4ff75b(0x116)](_0x1c5635[_0x4ff75b(0x9e)]())[_0x4ff75b(0xa7)](_0x72787a=>{var _0x17f8d5=_0x4ff75b;_0x313715(_0x72787a),_0x3bed0a[_0x17f8d5(0xc2)]=_0x72787a['status$'][_0x17f8d5(0x7c)](_0x5c8ffa=>{_0x52e206(_0x5c8ffa);});}),()=>{var _0xbd1ba7=_0x4ff75b,_0x11e90e;(_0x11e90e=_0x3bed0a[_0xbd1ba7(0xc2)])==null||_0x11e90e[_0xbd1ba7(0xdc)](),_0x3bed0a[_0xbd1ba7(0xc2)]=null;}),[_0x1c5635,_0x41099d]),_0xdd1fda?_0x4ec8b9(_0x22ede1,{'align':_0x4ff75b(0xbb),'disabled':_0x344ff0===h[_0x4ff75b(0xcf)],'className':_0x4ff75b(0xca),'overlay':_0x4ec8b9($e,{'status':_0x344ff0,'coordinator':_0xdd1fda}),'children':_0x4ec8b9(_0x4ff75b(0x101),{'className':_0x340399(_0x4ff75b(0x94),{'univer-cursor-not-allowed':_0x344ff0===h[_0x4ff75b(0xcf)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x344ff0!==h[_0x4ff75b(0xcf)]}),'type':'button','children':_0x4ec8b9(B,{'className':_0x4ff75b(0xee)})})}):null;}function $e(_0x5a85f3){var _0x38beb6=_0x354a21;const {status:_0x15bb76,coordinator:_0xc5393}=_0x5a85f3;switch(_0x15bb76){case h['IDLE']:return _0x4ec8b9(Fe,{'coordinator':_0xc5393});case h[_0x38beb6(0x110)]:return _0x4ec8b9(He,{'coordinator':_0xc5393});case h[_0x38beb6(0x82)]:return _0x4ec8b9(je,{'coordinator':_0xc5393});case h[_0x38beb6(0xcf)]:return _0x4ec8b9(Ve,{});case h[_0x38beb6(0x113)]:return _0x4ec8b9(Ue,{'coordinator':_0xc5393});default:return null;}}function Fe(_0x1dd529){var _0x290c41=_0x354a21;const {coordinator:_0x4b08e5}=_0x1dd529;return _0x4fbbd0(_0x1f4bc6,{'children':[_0x4ec8b9(_0x290c41(0xce),{'className':_0x290c41(0xed),'children':_0x290c41(0xaf)}),_0x4ec8b9(_0x5cd01a,{'onClick':()=>_0x4b08e5[_0x290c41(0x70)](),'children':_0x290c41(0xdf)})]});}function He(_0x20b0b3){var _0x3c11dc=_0x354a21;const {coordinator:_0x43eff9}=_0x20b0b3;return _0x4fbbd0(_0x1f4bc6,{'children':[_0x4ec8b9(_0x3c11dc(0xce),{'className':_0x3c11dc(0xed),'children':_0x3c11dc(0x72)}),_0x4ec8b9(_0x5cd01a,{'onClick':()=>_0x43eff9[_0x3c11dc(0x7d)](),'children':_0x3c11dc(0x8b)})]});}function je(_0x47cb91){var _0x8bef8f=_0x354a21;const {coordinator:_0x15e730}=_0x47cb91;return _0x4fbbd0(_0x1f4bc6,{'children':[_0x4ec8b9('div',{'className':_0x8bef8f(0xed),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4ec8b9(_0x5cd01a,{'variant':_0x8bef8f(0xc8),'onClick':()=>_0x15e730[_0x8bef8f(0x107)](),'children':_0x8bef8f(0xad)})]});}function _0x5e3d(_0x673533,_0x549f71){var _0x2f1ebd=_0x2f1e();return _0x5e3d=function(_0x5e3d26,_0x5f128d){_0x5e3d26=_0x5e3d26-0x6f;var _0xd55eb8=_0x2f1ebd[_0x5e3d26];return _0xd55eb8;},_0x5e3d(_0x673533,_0x549f71);}function Ue(_0x55584e){var _0x376bc2=_0x354a21;const {coordinator:_0x151dc6}=_0x55584e;return _0x4fbbd0(_0x1f4bc6,{'children':[_0x4ec8b9(_0x376bc2(0xce),{'className':_0x376bc2(0xed),'children':_0x376bc2(0x8f)}),_0x4ec8b9(_0x5cd01a,{'variant':_0x376bc2(0xbe),'onClick':()=>_0x151dc6[_0x376bc2(0x115)](),'children':'Stop\x20presenting'})]});}function Ve(){return _0x4ec8b9(_0x1f4bc6,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x354a21(0x10d)],ke=(_0x2860e2,_0x51e7b7,_0x290511,_0x33c2c8)=>{for(var _0x483a7a=_0x33c2c8>0x1?void 0x0:_0x33c2c8?Me(_0x51e7b7,_0x290511):_0x51e7b7,_0xfcdd42=_0x2860e2['length']-0x1,_0x1c0e57;_0xfcdd42>=0x0;_0xfcdd42--)(_0x1c0e57=_0x2860e2[_0xfcdd42])&&(_0x483a7a=_0x1c0e57(_0x483a7a)||_0x483a7a);return _0x483a7a;},$=(_0x41a243,_0x4ac4b4)=>(_0xd6190b,_0x1139da)=>_0x4ac4b4(_0xd6190b,_0x1139da,_0x41a243);let b=class extends _0x386ab1{constructor(_0x348a98,_0x598ee2){var _0x543e17=_0x354a21;super(),this['_injector']=_0x348a98,this[_0x543e17(0xf6)]=_0x598ee2,this[_0x543e17(0x9f)]();}[_0x354a21(0x9f)](){var _0x6fabe2=_0x354a21;this[_0x6fabe2(0xc5)](this[_0x6fabe2(0xf6)][_0x6fabe2(0xe2)](_0x41322a[_0x6fabe2(0x112)],()=>_0x58975f(Te,this[_0x6fabe2(0xc0)])));}};b=ke([$(0x0,_0x2e9116(_0x3ed045)),$(0x1,_0x4f05c6)],b);var Ge=Object['defineProperty'],We=Object['getOwnPropertyDescriptor'],Ye=(_0x265693,_0x47ee3d,_0x817080)=>_0x47ee3d in _0x265693?Ge(_0x265693,_0x47ee3d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x817080}):_0x265693[_0x47ee3d]=_0x817080,Be=(_0x235170,_0x4f2331,_0x5a3c57,_0x51c62c)=>{var _0x59ca57=_0x354a21;for(var _0x583402=_0x51c62c>0x1?void 0x0:_0x51c62c?We(_0x4f2331,_0x5a3c57):_0x4f2331,_0x4d3db4=_0x235170[_0x59ca57(0x88)]-0x1,_0x5b3d61;_0x4d3db4>=0x0;_0x4d3db4--)(_0x5b3d61=_0x235170[_0x4d3db4])&&(_0x583402=_0x5b3d61(_0x583402)||_0x583402);return _0x583402;},F=(_0x4844c3,_0x2e1537)=>(_0x106335,_0x362aa6)=>_0x2e1537(_0x106335,_0x362aa6,_0x4844c3),J=(_0x5a59aa,_0x365a7a,_0x1181a2)=>Ye(_0x5a59aa,typeof _0x365a7a!=_0x354a21(0x100)?_0x365a7a+'':_0x365a7a,_0x1181a2);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x180c7f{constructor(_0x4dd074=T,_0x1751b5,_0x579382){var _0x352004=_0x354a21;super(),this[_0x352004(0xe1)]=_0x4dd074,this['_injector']=_0x1751b5,this[_0x352004(0xd2)]=_0x579382;const {..._0x1c9ef6}=_0x1b238c({},T,this[_0x352004(0xe1)]);this['_configService'][_0x352004(0xdd)](Oe,_0x1c9ef6);}[_0x354a21(0x98)](){var _0x166f0d=_0x354a21;_0x343fdf(this[_0x166f0d(0xc0)],_0x4d4ce2([[L],[I],[m],[b]],this[_0x166f0d(0xe1)][_0x166f0d(0xb9)])),_0x4a7fc6(this[_0x166f0d(0xc0)],[[m]]);}['onRendered'](){var _0x1a5029=_0x354a21;_0x4a7fc6(this[_0x1a5029(0xc0)],[[b]]);}};J(O,_0x354a21(0x105),_0x91c20b[_0x354a21(0xb1)]),J(O,_0x354a21(0x99),Ze),O=Be([_0x3a2df0(_0x21d6c8),F(0x1,_0x2e9116(_0x3ed045)),F(0x2,_0x400c78)],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 _0x32c2(_0x1c0c52,_0x1594e5){var _0x3dc3d9=_0x3dc3();return _0x32c2=function(_0x32c28e,_0x2311d3){_0x32c28e=_0x32c28e-0x140;var _0x5c3e2b=_0x3dc3d9[_0x32c28e];return _0x5c3e2b;},_0x32c2(_0x1c0c52,_0x1594e5);}(function(_0x521693,_0x43c2b0){var _0xa3bbbe=_0x32c2,_0x4685db=_0x521693();while(!![]){try{var _0x1c6603=parseInt(_0xa3bbbe(0x21d))/0x1*(parseInt(_0xa3bbbe(0x21a))/0x2)+parseInt(_0xa3bbbe(0x1f1))/0x3+-parseInt(_0xa3bbbe(0x1aa))/0x4+parseInt(_0xa3bbbe(0x1ef))/0x5*(parseInt(_0xa3bbbe(0x20b))/0x6)+-parseInt(_0xa3bbbe(0x22d))/0x7*(parseInt(_0xa3bbbe(0x228))/0x8)+-parseInt(_0xa3bbbe(0x146))/0x9*(-parseInt(_0xa3bbbe(0x1c6))/0xa)+-parseInt(_0xa3bbbe(0x1b5))/0xb*(-parseInt(_0xa3bbbe(0x1d9))/0xc);if(_0x1c6603===_0x43c2b0)break;else _0x4685db['push'](_0x4685db['shift']());}catch(_0x3fa684){_0x4685db['push'](_0x4685db['shift']());}}}(_0x3dc3,0x68aa0),function(_0x34f955,_0x2cc6a3){var _0x58a7ec=_0x32c2;typeof exports==_0x58a7ec(0x206)&&typeof module<'u'?_0x2cc6a3(exports,require('@univerjs-pro/collaboration-client'),require(_0x58a7ec(0x1c7)),require(_0x58a7ec(0x164)),require('@univerjs/sheets-ui'),require(_0x58a7ec(0x1bb)),require(_0x58a7ec(0x1d1)),require(_0x58a7ec(0x15a)),require(_0x58a7ec(0x168)),require(_0x58a7ec(0x1cc)),require(_0x58a7ec(0x223)),require('rxjs/operators')):typeof define==_0x58a7ec(0x172)&&define[_0x58a7ec(0x1e5)]?define(['exports',_0x58a7ec(0x14f),'@univerjs/core',_0x58a7ec(0x164),_0x58a7ec(0x1a0),'@univerjs/ui','react/jsx-runtime',_0x58a7ec(0x15a),_0x58a7ec(0x168),_0x58a7ec(0x1cc),_0x58a7ec(0x223),_0x58a7ec(0x175)],_0x2cc6a3):(_0x34f955=typeof globalThis<'u'?globalThis:_0x34f955||self,_0x2cc6a3(_0x34f955[_0x58a7ec(0x18e)]={},_0x34f955[_0x58a7ec(0x1f0)],_0x34f955[_0x58a7ec(0x185)],_0x34f955[_0x58a7ec(0x1f5)],_0x34f955[_0x58a7ec(0x1fb)],_0x34f955['UniverUi'],_0x34f955[_0x58a7ec(0x140)],_0x34f955[_0x58a7ec(0x144)],_0x34f955[_0x58a7ec(0x140)],_0x34f955[_0x58a7ec(0x207)],_0x34f955[_0x58a7ec(0x223)],_0x34f955[_0x58a7ec(0x223)][_0x58a7ec(0x1ee)]));}(this,function(_0x564430,_0x48eb55,_0x14dd01,_0x13ba10,_0x54dcfa,_0x4f2411,_0x251b21,_0xf99188,_0x5309d1,_0x3e3d8e,_0x1beed9,_0x5f3902){'use strict';var _0x4e1f37=_0x32c2;var _0x2b48d3=Object[_0x4e1f37(0x21e)],_0x5dcfa8=(_0x2238a9,_0x42486b,_0x3c8e7e)=>_0x42486b in _0x2238a9?_0x2b48d3(_0x2238a9,_0x42486b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c8e7e}):_0x2238a9[_0x42486b]=_0x3c8e7e,_0x14886c=(_0x374e0e,_0x1df51c,_0xb6b913)=>_0x5dcfa8(_0x374e0e,typeof _0x1df51c!='symbol'?_0x1df51c+'':_0x1df51c,_0xb6b913);const _0x569104='live-share.config',_0x187a32={};class _0x4c5666 extends _0x14dd01['Disposable']{constructor(){var _0xc3b080=_0x4e1f37;super(...arguments),_0x14886c(this,_0xc3b080(0x20f),new Set()),_0x14886c(this,_0xc3b080(0x15e),new Set());}['registerSharedOperation'](_0x57396d){var _0x29e9fb=_0x4e1f37;return this[_0x29e9fb(0x20f)][_0x29e9fb(0x1b2)](_0x57396d),_0x14dd01[_0x29e9fb(0x15d)](()=>this[_0x29e9fb(0x20f)][_0x29e9fb(0x156)](_0x57396d));}[_0x4e1f37(0x22f)](_0x21c6e1){var _0x3860ce=_0x4e1f37;return this['_reporters']['add'](_0x21c6e1),_0x14dd01[_0x3860ce(0x15d)](()=>this[_0x3860ce(0x15e)]['delete'](_0x21c6e1));}[_0x4e1f37(0x20c)](_0x3a8ce3){var _0x28eea9=_0x4e1f37;return this[_0x28eea9(0x20f)]['has'](_0x3a8ce3);}['getInitialStates'](_0x349bba){var _0x55728e=_0x4e1f37;return Array[_0x55728e(0x147)](this[_0x55728e(0x15e)])[_0x55728e(0x177)](_0x274282=>_0x274282(_0x349bba));}}var _0x226517=Object['getOwnPropertyDescriptor'],_0x21eda6=(_0x53ee9,_0x530724,_0x37fbec,_0x4c9628)=>{var _0x10f40c=_0x4e1f37;for(var _0xa73bec=_0x4c9628>0x1?void 0x0:_0x4c9628?_0x226517(_0x530724,_0x37fbec):_0x530724,_0x118969=_0x53ee9[_0x10f40c(0x1bd)]-0x1,_0x56bd42;_0x118969>=0x0;_0x118969--)(_0x56bd42=_0x53ee9[_0x118969])&&(_0xa73bec=_0x56bd42(_0xa73bec)||_0xa73bec);return _0xa73bec;},_0x2873f5=(_0x442c14,_0x45e180)=>(_0xe79cbe,_0x436d17)=>_0x45e180(_0xe79cbe,_0x436d17,_0x442c14);let _0x5d75bf=class extends _0x14dd01[_0x4e1f37(0x20d)]{constructor(_0x434cba){var _0x29ad10=_0x4e1f37;super(),this[_0x29ad10(0x226)]=_0x434cba,this[_0x29ad10(0x148)]();}['_init'](){var _0x1718c2=_0x4e1f37;[_0x54dcfa[_0x1718c2(0x17c)]['id'],_0x54dcfa['SetScrollOperation']['id'],_0x13ba10[_0x1718c2(0x18a)]['id']][_0x1718c2(0x142)](_0x365239=>{var _0x4c6e1c=_0x1718c2;this[_0x4c6e1c(0x189)](this[_0x4c6e1c(0x226)]['registerSharedOperation'](_0x365239));});}};_0x5d75bf=_0x21eda6([_0x2873f5(0x0,_0x14dd01['Inject'](_0x4c5666))],_0x5d75bf);var _0x1c2aa2=function(){var _0x12f728=_0x4e1f37;return _0x1c2aa2=Object[_0x12f728(0x167)]||function(_0x33aae2){var _0x2d8a43=_0x12f728;for(var _0x279de2,_0x20c648=0x1,_0x5d0554=arguments['length'];_0x20c648<_0x5d0554;_0x20c648++){_0x279de2=arguments[_0x20c648];for(var _0x54fe8a in _0x279de2)Object[_0x2d8a43(0x180)][_0x2d8a43(0x19a)][_0x2d8a43(0x143)](_0x279de2,_0x54fe8a)&&(_0x33aae2[_0x54fe8a]=_0x279de2[_0x54fe8a]);}return _0x33aae2;},_0x1c2aa2[_0x12f728(0x201)](this,arguments);},_0x42471d=function(_0x5476f2,_0xd4c003){var _0x1c62fc=_0x4e1f37,_0x5695d9={};for(var _0x5b475c in _0x5476f2)Object['prototype'][_0x1c62fc(0x19a)][_0x1c62fc(0x143)](_0x5476f2,_0x5b475c)&&_0xd4c003[_0x1c62fc(0x1a1)](_0x5b475c)<0x0&&(_0x5695d9[_0x5b475c]=_0x5476f2[_0x5b475c]);if(_0x5476f2!=null&&typeof Object[_0x1c62fc(0x154)]==_0x1c62fc(0x172)){for(var _0x4c311e=0x0,_0x5b475c=Object[_0x1c62fc(0x154)](_0x5476f2);_0x4c311e<_0x5b475c[_0x1c62fc(0x1bd)];_0x4c311e++)_0xd4c003['indexOf'](_0x5b475c[_0x4c311e])<0x0&&Object[_0x1c62fc(0x180)]['propertyIsEnumerable'][_0x1c62fc(0x143)](_0x5476f2,_0x5b475c[_0x4c311e])&&(_0x5695d9[_0x5b475c[_0x4c311e]]=_0x5476f2[_0x5b475c[_0x4c311e]]);}return _0x5695d9;},_0x9df238=_0x5309d1[_0x4e1f37(0x1b4)](function(_0x4dc286,_0x331a69){var _0x38bd71=_0x4e1f37,_0x192fcd=_0x4dc286['icon'],_0x14c72d=_0x4dc286['id'],_0x321da9=_0x4dc286['className'],_0x24867e=_0x4dc286[_0x38bd71(0x1dc)],_0x535b49=_0x42471d(_0x4dc286,[_0x38bd71(0x1b7),'id',_0x38bd71(0x1c4),_0x38bd71(0x1dc)]),_0x3e491a=_0x38bd71(0x1e3)[_0x38bd71(0x149)](_0x14c72d,'\x20')[_0x38bd71(0x149)](_0x321da9||'')[_0x38bd71(0x22e)](),_0x51c9f8=_0x5309d1['useRef']('_'[_0x38bd71(0x149)](_0x10a0f8()));return _0x5e97aa(_0x192fcd,''['concat'](_0x14c72d),{'defIds':_0x192fcd[_0x38bd71(0x1de)],'idSuffix':_0x51c9f8[_0x38bd71(0x187)]},_0x1c2aa2({'ref':_0x331a69,'className':_0x3e491a},_0x535b49),_0x24867e);});function _0x5e97aa(_0x1f393a,_0x243203,_0xbf2547,_0x85d4d2,_0x412505){var _0x4eb103=_0x4e1f37;return _0x5309d1[_0x4eb103(0x211)](_0x1f393a['tag'],_0x1c2aa2(_0x1c2aa2({'key':_0x243203},_0x130bfa(_0x1f393a,_0xbf2547,_0x412505)),_0x85d4d2),(_0x2a1752(_0x1f393a,_0xbf2547)[_0x4eb103(0x188)]||[])[_0x4eb103(0x177)](function(_0xbba0d7,_0x22817a){var _0x4a92d3=_0x4eb103;return _0x5e97aa(_0xbba0d7,''[_0x4a92d3(0x149)](_0x243203,'-')['concat'](_0x1f393a[_0x4a92d3(0x1e7)],'-')[_0x4a92d3(0x149)](_0x22817a),_0xbf2547,void 0x0,_0x412505);}));}function _0x130bfa(_0x4ba32a,_0x1aa5fc,_0x3e172a){var _0x11ae01=_0x4e1f37,_0x4461ac=_0x1c2aa2({},_0x4ba32a['attrs']);_0x3e172a!=null&&_0x3e172a['colorChannel1']&&_0x4461ac[_0x11ae01(0x165)]===_0x11ae01(0x16e)&&(_0x4461ac[_0x11ae01(0x165)]=_0x3e172a[_0x11ae01(0x16e)]),_0x4ba32a['tag']===_0x11ae01(0x19d)&&_0x4461ac['id']&&(_0x4461ac['id']=_0x4461ac['id']+_0x1aa5fc[_0x11ae01(0x1df)]),Object[_0x11ae01(0x162)](_0x4461ac)[_0x11ae01(0x142)](function(_0x11d658){var _0x299bda=_0x11ae01,_0x4d1726=_0x11d658[0x0],_0xe4365c=_0x11d658[0x1];_0x4d1726===_0x299bda(0x19d)&&typeof _0xe4365c==_0x299bda(0x1b6)&&(_0x4461ac[_0x4d1726]=_0xe4365c[_0x299bda(0x212)](/url\(#(.*)\)/,_0x299bda(0x1e8)[_0x299bda(0x149)](_0x1aa5fc[_0x299bda(0x1df)],')')));});var _0x44e3a9=_0x1aa5fc['defIds'];return!_0x44e3a9||_0x44e3a9[_0x11ae01(0x1bd)]===0x0||(_0x4ba32a[_0x11ae01(0x1e7)]===_0x11ae01(0x1c0)&&_0x4461ac['xlink:href']&&(_0x4461ac[_0x11ae01(0x1d5)]=_0x4461ac[_0x11ae01(0x1d5)]+_0x1aa5fc[_0x11ae01(0x1df)]),Object['entries'](_0x4461ac)['forEach'](function(_0x11f9ed){var _0x194de7=_0x11ae01,_0x38472d=_0x11f9ed[0x0],_0x502e1a=_0x11f9ed[0x1];typeof _0x502e1a=='string'&&(_0x4461ac[_0x38472d]=_0x502e1a[_0x194de7(0x212)](/url\(#(.*)\)/,_0x194de7(0x1e8)['concat'](_0x1aa5fc[_0x194de7(0x1df)],')')));})),_0x4461ac;}function _0x2a1752(_0x2e8e58,_0x12e57c){var _0x180079=_0x4e1f37,_0x377c9d,_0x20b565=_0x12e57c['defIds'];return!_0x20b565||_0x20b565[_0x180079(0x1bd)]===0x0?_0x2e8e58:_0x2e8e58[_0x180079(0x1e7)]===_0x180079(0x1b3)&&(!((_0x377c9d=_0x2e8e58[_0x180079(0x188)])===null||_0x377c9d===void 0x0)&&_0x377c9d[_0x180079(0x1bd)])?_0x1c2aa2(_0x1c2aa2({},_0x2e8e58),{'children':_0x2e8e58[_0x180079(0x188)][_0x180079(0x177)](function(_0x28e5ed){var _0x5e6aa8=_0x180079;return typeof _0x28e5ed[_0x5e6aa8(0x199)]['id']==_0x5e6aa8(0x1b6)&&_0x20b565&&_0x20b565['indexOf'](_0x28e5ed[_0x5e6aa8(0x199)]['id'])>-0x1?_0x1c2aa2(_0x1c2aa2({},_0x28e5ed),{'attrs':_0x1c2aa2(_0x1c2aa2({},_0x28e5ed[_0x5e6aa8(0x199)]),{'id':_0x28e5ed[_0x5e6aa8(0x199)]['id']+_0x12e57c['idSuffix']})}):_0x28e5ed;})}):_0x2e8e58;}function _0x10a0f8(){var _0x107402=_0x4e1f37;return Math['random']()['toString'](0x24)[_0x107402(0x1a9)](0x2,0x8);}_0x9df238[_0x4e1f37(0x182)]=_0x4e1f37(0x1f2);var _0x1599fc={'tag':_0x4e1f37(0x14d),'attrs':{'fill':_0x4e1f37(0x1db),'viewBox':_0x4e1f37(0x158),'width':_0x4e1f37(0x14a),'height':_0x4e1f37(0x14a)},'children':[{'tag':_0x4e1f37(0x141),'attrs':{'fill':_0x4e1f37(0x1c9),'d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':_0x4e1f37(0x141),'attrs':{'fill':_0x4e1f37(0x1c9),'d':_0x4e1f37(0x20a),'fillRule':_0x4e1f37(0x1d3),'clipRule':_0x4e1f37(0x1d3)}}]},_0x29b0cb=_0x5309d1[_0x4e1f37(0x1b4)](function(_0x44d064,_0x1d3a36){var _0x395216=_0x4e1f37;return _0x5309d1[_0x395216(0x211)](_0x9df238,Object['assign']({},_0x44d064,{'id':_0x395216(0x1c1),'ref':_0x1d3a36,'icon':_0x1599fc}));});_0x29b0cb[_0x4e1f37(0x182)]=_0x4e1f37(0x17d);var _0x190cc1=Object[_0x4e1f37(0x1bc)],_0x3eba70=(_0xc5059f,_0x6a92ed,_0xc33f9c,_0x4f5027)=>{var _0xcd1bde=_0x4e1f37;for(var _0xa04b94=_0x4f5027>0x1?void 0x0:_0x4f5027?_0x190cc1(_0x6a92ed,_0xc33f9c):_0x6a92ed,_0x510f3c=_0xc5059f[_0xcd1bde(0x1bd)]-0x1,_0x821c5e;_0x510f3c>=0x0;_0x510f3c--)(_0x821c5e=_0xc5059f[_0x510f3c])&&(_0xa04b94=_0x821c5e(_0xa04b94)||_0xa04b94);return _0xa04b94;},_0x2d9c83=(_0x1fbc6d,_0x3a0204)=>(_0x53e359,_0x1497f1)=>_0x3a0204(_0x53e359,_0x1497f1,_0x1fbc6d);_0x564430[_0x4e1f37(0x1e6)]=class extends _0x14dd01[_0x4e1f37(0x157)]{constructor(_0x9e1c5a,_0x70570a,_0x1626ea){var _0x3a43b0=_0x4e1f37;super(),_0x14886c(this,_0x3a43b0(0x17b),new Map()),(this[_0x3a43b0(0x1da)]=_0x9e1c5a,this[_0x3a43b0(0x234)]=_0x70570a,this[_0x3a43b0(0x159)]=_0x1626ea,this[_0x3a43b0(0x148)]());}async[_0x4e1f37(0x195)](_0x20c66c){var _0x14938b=_0x4e1f37;return this[_0x14938b(0x17b)][_0x14938b(0x225)](_0x20c66c)||await this[_0x14938b(0x14b)](_0x20c66c),this[_0x14938b(0x17b)][_0x14938b(0x194)](_0x20c66c);}['_init'](){var _0x3e0524=_0x4e1f37;this[_0x3e0524(0x1da)][_0x3e0524(0x15c)](_0x14dd01[_0x3e0524(0x19c)]['UNIVER_SHEET'])[_0x3e0524(0x196)](_0x5f3902['takeUntil'](this[_0x3e0524(0x14e)]))['subscribe'](async _0x1b452e=>{var _0x5d08ca=_0x3e0524;const _0x4247c3=_0x1b452e[_0x5d08ca(0x17f)]();this['_entities']['has'](_0x4247c3)||this[_0x5d08ca(0x14b)](_0x4247c3);}),this['_univerInstanceService'][_0x3e0524(0x233)](_0x14dd01[_0x3e0524(0x19c)][_0x3e0524(0x1ae)])[_0x3e0524(0x196)](_0x5f3902[_0x3e0524(0x155)](this['dispose$']))[_0x3e0524(0x14c)](_0x3097e0=>{var _0x1b5123=_0x3e0524;const _0x30bf1d=_0x3097e0['getUnitId'](),_0x12a075=this[_0x1b5123(0x17b)]['get'](_0x30bf1d);_0x12a075==null||_0x12a075[_0x1b5123(0x204)]();});}async[_0x4e1f37(0x14b)](_0x77f5de){var _0x4bab72=_0x4e1f37;const _0x412e2d=await this[_0x4bab72(0x159)][_0x4bab72(0x1f8)](_0x77f5de),_0x4b9ff8=this['_injector'][_0x4bab72(0x152)](_0x564430[_0x4bab72(0x151)],_0x77f5de,_0x412e2d);return _0x4b9ff8[_0x4bab72(0x176)](),this['_entities']['set'](_0x77f5de,_0x4b9ff8),_0x4b9ff8;}},_0x564430[_0x4e1f37(0x1e6)]=_0x3eba70([_0x2d9c83(0x0,_0x14dd01[_0x4e1f37(0x198)]),_0x2d9c83(0x1,_0x14dd01['Inject'](_0x14dd01[_0x4e1f37(0x1b8)])),_0x2d9c83(0x2,_0x14dd01[_0x4e1f37(0x22a)](_0x48eb55['CollaborationSessionService']))],_0x564430['LiveShareController']);var _0x464d16=(_0x2a6ce1=>(_0x2a6ce1['OFFLINE']=_0x4e1f37(0x179),_0x2a6ce1[_0x4e1f37(0x18c)]=_0x4e1f37(0x1d6),_0x2a6ce1[_0x4e1f37(0x1c5)]=_0x4e1f37(0x191),_0x2a6ce1[_0x4e1f37(0x221)]=_0x4e1f37(0x1c8),_0x2a6ce1[_0x4e1f37(0x16b)]='presenting',_0x2a6ce1))(_0x464d16||{});const _0x358cfe=_0x4e1f37(0x1e4),_0x2c3428=0xc8;_0x564430['LiveShareCoordinator']=class extends _0x14dd01['RxDisposable']{constructor(_0x59e18d,_0x4e23f1,_0x49784d,_0x1b28be,_0x33d63b){var _0x3855cd=_0x4e1f37;super(),_0x14886c(this,'_status$',new _0x1beed9[(_0x3855cd(0x1a2))](_0x3855cd(0x1d6))),_0x14886c(this,_0x3855cd(0x193),this[_0x3855cd(0x216)][_0x3855cd(0x169)]()),_0x14886c(this,_0x3855cd(0x148),!0x1),_0x14886c(this,_0x3855cd(0x215),null),_0x14886c(this,'_presenter',null),(this[_0x3855cd(0x205)]=_0x59e18d,this[_0x3855cd(0x19b)]=_0x4e23f1,this[_0x3855cd(0x1e0)]=_0x49784d,this[_0x3855cd(0x226)]=_0x1b28be,this[_0x3855cd(0x235)]=_0x33d63b);}get['_status'](){var _0x7ac5d7=_0x4e1f37;return this[_0x7ac5d7(0x216)][_0x7ac5d7(0x1ce)]();}[_0x4e1f37(0x204)](){var _0xffcf8=_0x4e1f37,_0x2af58e;(_0x2af58e=this[_0xffcf8(0x215)])==null||_0x2af58e['dispose'](),this[_0xffcf8(0x216)][_0xffcf8(0x18f)](_0xffcf8(0x1d6)),this[_0xffcf8(0x216)][_0xffcf8(0x1ad)]();}[_0x4e1f37(0x176)](){var _0x48e961=_0x4e1f37;this[_0x48e961(0x148)]||(this[_0x48e961(0x148)]=!0x0,this[_0x48e961(0x19b)][_0x48e961(0x1bf)]['pipe'](_0x5f3902[_0x48e961(0x155)](this[_0x48e961(0x14e)]))['subscribe'](_0x585cf7=>{var _0x2b6afe=_0x48e961;switch(_0x585cf7){case _0x48eb55[_0x2b6afe(0x16a)][_0x2b6afe(0x1ea)]:this[_0x2b6afe(0x1f4)]();break;case _0x48eb55[_0x2b6afe(0x16a)]['ONLINE']:this[_0x2b6afe(0x1af)]();break;}}),this[_0x48e961(0x19b)][_0x48e961(0x145)][_0x48e961(0x196)](_0x5f3902[_0x48e961(0x155)](this['dispose$']))[_0x48e961(0x14c)](_0x4df33a=>{var _0x11516b=_0x48e961;const {eventID:_0x30adcb}=_0x4df33a;switch(_0x30adcb){case _0x3e3d8e[_0x11516b(0x171)][_0x11516b(0x16c)]:this[_0x11516b(0x1f6)](_0x4df33a);break;case _0x3e3d8e[_0x11516b(0x171)][_0x11516b(0x150)]:this['_handleOperation'](_0x4df33a);break;case _0x3e3d8e[_0x11516b(0x171)][_0x11516b(0x1ca)]:this[_0x11516b(0x209)]();break;case _0x3e3d8e['CollaborationEvent'][_0x11516b(0x214)]:this['_handleNewChangeSets'](_0x4df33a);break;}}));}[_0x4e1f37(0x15b)](){var _0x5d91f4=_0x4e1f37;this[_0x5d91f4(0x19b)][_0x5d91f4(0x1fc)]({'eventID':_0x3e3d8e[_0x5d91f4(0x171)][_0x5d91f4(0x1d2)],'data':{'unitID':this[_0x5d91f4(0x205)],'userID':this[_0x5d91f4(0x19b)][_0x5d91f4(0x22c)]()}},this['_unitID']);}[_0x4e1f37(0x21f)](){var _0xc3c5e1=_0x4e1f37;this['_status']==='presenting'&&(this['_status$'][_0xc3c5e1(0x18f)](_0xc3c5e1(0x1d6)),this[_0xc3c5e1(0x19b)]['send']({'eventID':_0x3e3d8e[_0xc3c5e1(0x171)]['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0xc3c5e1(0x205)]));}['startFollowing'](){var _0xfb8a43=_0x4e1f37;this['_status']===_0xfb8a43(0x1c8)&&(this[_0xfb8a43(0x216)][_0xfb8a43(0x18f)](_0xfb8a43(0x191)),this['_startFollowing']());}[_0x4e1f37(0x1f3)](){var _0x4858eb=_0x4e1f37;this['_status']===_0x4858eb(0x191)&&this[_0x4858eb(0x190)]();}[_0x4e1f37(0x1f6)](_0x2bb87f){var _0x20581c=_0x4e1f37;const {presenter:_0x127055}=_0x2bb87f[_0x20581c(0x1dd)],_0x5b766f=this[_0x20581c(0x19b)]['getMemberID']();this[_0x20581c(0x21b)]=_0x127055,_0x127055===_0x5b766f?(this[_0x20581c(0x190)](),this[_0x20581c(0x1b9)]()):this[_0x20581c(0x166)]!=='not-following'&&(this[_0x20581c(0x230)](),this[_0x20581c(0x1e2)]());}['_fetchOperations'](){var _0x502f29=_0x4e1f37;const _0x45c0b0={'eventID':_0x3e3d8e[_0x502f29(0x171)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x502f29(0x19b)]['send'](_0x45c0b0,this[_0x502f29(0x205)]);}[_0x4e1f37(0x209)](){var _0x2b01dc=_0x4e1f37;this[_0x2b01dc(0x21b)]=null,this[_0x2b01dc(0x166)]!==_0x2b01dc(0x200)&&this['_beIdle']();}[_0x4e1f37(0x1ba)](_0x3023cf){var _0x5ba26c=_0x4e1f37;if(this[_0x5ba26c(0x166)]==='following'&&this[_0x5ba26c(0x21b)]===_0x3023cf['data'][_0x5ba26c(0x163)]){const _0x533a53=_0x3e3d8e[_0x5ba26c(0x1d8)](_0x3023cf[_0x5ba26c(0x1dd)])[_0x5ba26c(0x186)][_0x5ba26c(0x16d)]()['find'](_0x2c4075=>_0x2c4075['id']===_0x13ba10['InsertSheetMutation']['id']);if(_0x533a53){const _0x2aedcb=_0x533a53[_0x5ba26c(0x1c3)][_0x5ba26c(0x1eb)],_0x5a0dfd=_0x533a53[_0x5ba26c(0x1c3)][_0x5ba26c(0x1ab)]['id'];setTimeout(()=>{var _0x5c7a3d=_0x5ba26c;this[_0x5c7a3d(0x235)][_0x5c7a3d(0x19e)](_0x13ba10[_0x5c7a3d(0x18a)]['id'],{'unitId':_0x2aedcb,'subUnitId':_0x5a0dfd},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x564b03=_0x4e1f37;this['_status$'][_0x564b03(0x18f)](_0x564b03(0x200));const _0x3c2c6c=new Map(),_0x372cc2=this['_commandDisposable']=new _0x14dd01['DisposableCollection']();_0x372cc2[_0x564b03(0x1b2)](_0x14dd01[_0x564b03(0x15d)](()=>{var _0x5102f7=_0x564b03;_0x3c2c6c[_0x5102f7(0x142)](_0x5ae739=>_0x5ae739[_0x5102f7(0x1ad)]()),_0x3c2c6c[_0x5102f7(0x1ec)]();})),_0x372cc2[_0x564b03(0x1b2)](this[_0x564b03(0x235)][_0x564b03(0x1ed)](_0x165a0f=>{var _0x1449a8=_0x564b03,_0x15800f;if(_0x165a0f['type']!==_0x14dd01[_0x1449a8(0x173)][_0x1449a8(0x1a3)]||!this[_0x1449a8(0x226)][_0x1449a8(0x20c)](_0x165a0f['id']))return;const {id:_0xfd7990}=_0x165a0f;let _0x17acb1;_0x3c2c6c[_0x1449a8(0x225)](_0xfd7990)?_0x17acb1=_0x3c2c6c[_0x1449a8(0x194)](_0xfd7990):(_0x17acb1=new _0x1beed9['Subject'](),_0x3c2c6c[_0x1449a8(0x1be)](_0xfd7990,_0x17acb1),_0x17acb1[_0x1449a8(0x196)](_0x5f3902[_0x1449a8(0x20e)]((_0x15800f=this['_configService']['getConfig'](_0x358cfe))!=null?_0x15800f:_0x2c3428,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1449a8(0x14c)](_0x5a5783=>{var _0x4aba16=_0x1449a8;this[_0x4aba16(0x19b)]['send']({'eventID':_0x3e3d8e[_0x4aba16(0x171)][_0x4aba16(0x150)],'data':{'unitID':this['_unitID'],'operations':{[_0x5a5783['id']]:{'id':_0x5a5783['id'],'params':JSON['stringify'](_0x5a5783[_0x4aba16(0x1c3)])}}}},this[_0x4aba16(0x205)]);})),_0x17acb1[_0x1449a8(0x18f)](_0x165a0f);})),this['_liveShareService'][_0x564b03(0x18b)](this[_0x564b03(0x205)])['forEach'](_0x1197fe=>this['_collabSession'][_0x564b03(0x1fc)]({'eventID':_0x3e3d8e[_0x564b03(0x171)][_0x564b03(0x150)],'data':{'unitID':this['_unitID'],'operations':{[_0x1197fe['id']]:{'id':_0x1197fe['id'],'params':JSON['stringify'](_0x1197fe[_0x564b03(0x1c3)])}}}},this[_0x564b03(0x205)]));}[_0x4e1f37(0x230)](){var _0x36fdbc=_0x4e1f37,_0x2b7e20;this[_0x36fdbc(0x216)]['next'](_0x36fdbc(0x1d6)),(_0x2b7e20=this[_0x36fdbc(0x215)])==null||_0x2b7e20[_0x36fdbc(0x204)](),this[_0x36fdbc(0x215)]=null;}[_0x4e1f37(0x1e2)](){var _0x5f0de2=_0x4e1f37,_0xf0483;(_0xf0483=this['_commandDisposable'])==null||_0xf0483[_0x5f0de2(0x204)](),this[_0x5f0de2(0x216)][_0x5f0de2(0x18f)](_0x5f0de2(0x191));}[_0x4e1f37(0x231)](){var _0x12af61=_0x4e1f37,_0x4222d3;this[_0x12af61(0x216)][_0x12af61(0x18f)](_0x12af61(0x1d6)),(_0x4222d3=this[_0x12af61(0x215)])==null||_0x4222d3['dispose'](),this[_0x12af61(0x215)]=null;}[_0x4e1f37(0x190)](){var _0x5b9ab5=_0x4e1f37,_0x16d0c7;this[_0x5b9ab5(0x216)]['next'](_0x5b9ab5(0x1c8)),(_0x16d0c7=this['_commandDisposable'])==null||_0x16d0c7[_0x5b9ab5(0x204)]();}['_handleOperation'](_0x5d1610){var _0x7a6cb0=_0x4e1f37;if(['presenting','not-following','offline'][_0x7a6cb0(0x1fd)](this[_0x7a6cb0(0x166)])||!_0x5d1610['data'][_0x7a6cb0(0x1c2)]||_0x5d1610['data']['presenter']===this['_collabSession'][_0x7a6cb0(0x22c)]())return;this[_0x7a6cb0(0x166)]==='idle'&&this[_0x7a6cb0(0x1e2)]();const _0x462c87=_0x5d1610[_0x7a6cb0(0x1dd)]['operations'];Object['values'](_0x462c87)[_0x7a6cb0(0x142)](_0x11fcc9=>{var _0x2304ae=_0x7a6cb0;this[_0x2304ae(0x235)]['executeCommand'](_0x11fcc9['id'],_0x11fcc9['params']?JSON['parse'](_0x11fcc9[_0x2304ae(0x1c3)]):null,{'fromCollab':!0x0});});}[_0x4e1f37(0x1f4)](){var _0x2035ef=_0x4e1f37,_0x65be3e;this['_status$']['next'](_0x2035ef(0x179)),(_0x65be3e=this[_0x2035ef(0x215)])==null||_0x65be3e['dispose']();}[_0x4e1f37(0x1af)](){var _0x1dc36a=_0x4e1f37;this[_0x1dc36a(0x216)]['next'](_0x1dc36a(0x1d6)),this[_0x1dc36a(0x197)]();}},_0x564430[_0x4e1f37(0x151)]=_0x3eba70([_0x2d9c83(0x2,_0x14dd01['IConfigService']),_0x2d9c83(0x3,_0x14dd01[_0x4e1f37(0x22a)](_0x4c5666)),_0x2d9c83(0x4,_0x14dd01['ICommandService'])],_0x564430[_0x4e1f37(0x151)]);function _0x2c5356(){var _0xaefccd=_0x4e1f37;const _0x3944b9=_0x4f2411[_0xaefccd(0x222)](_0x564430[_0xaefccd(0x1e6)]),_0xd19c39=_0x4f2411[_0xaefccd(0x222)](_0x14dd01[_0xaefccd(0x198)]),_0x130460=_0x4f2411[_0xaefccd(0x1cf)](()=>_0xd19c39[_0xaefccd(0x1a8)](_0x14dd01['UniverInstanceType'][_0xaefccd(0x1ae)]),void 0x0,!0x1,[]),[_0x23e786,_0x11be7e]=_0x5309d1[_0xaefccd(0x213)](null),[_0x223d73,_0x3e5d20]=_0x5309d1[_0xaefccd(0x213)](_0x464d16[_0xaefccd(0x18c)]),_0x51c0ca=_0x5309d1[_0xaefccd(0x220)](null);return _0x5309d1[_0xaefccd(0x208)](()=>(_0x130460&&_0x3944b9[_0xaefccd(0x195)](_0x130460['getUnitId']())[_0xaefccd(0x1ff)](_0x319ac6=>{var _0xda0fac=_0xaefccd;_0x11be7e(_0x319ac6),_0x51c0ca['current']=_0x319ac6[_0xda0fac(0x193)][_0xda0fac(0x14c)](_0x1986a7=>{_0x3e5d20(_0x1986a7);});}),()=>{var _0x4a6001=_0xaefccd,_0x2a6243;(_0x2a6243=_0x51c0ca[_0x4a6001(0x187)])==null||_0x2a6243[_0x4a6001(0x192)](),_0x51c0ca[_0x4a6001(0x187)]=null;}),[_0x130460,_0x3944b9]),_0x23e786?_0x251b21[_0xaefccd(0x174)](_0xf99188[_0xaefccd(0x1e9)],{'align':_0xaefccd(0x1d0),'disabled':_0x223d73===_0x464d16['OFFLINE'],'className':_0xaefccd(0x1cb),'overlay':_0x251b21[_0xaefccd(0x174)](_0x4a4200,{'status':_0x223d73,'coordinator':_0x23e786}),'children':_0x251b21[_0xaefccd(0x174)](_0xaefccd(0x236),{'className':_0xf99188['clsx'](_0xaefccd(0x227),{'univer-cursor-not-allowed':_0x223d73===_0x464d16[_0xaefccd(0x1ea)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x223d73!==_0x464d16[_0xaefccd(0x1ea)]}),'type':_0xaefccd(0x236),'children':_0x251b21[_0xaefccd(0x174)](_0x29b0cb,{'className':_0xaefccd(0x17a)})})}):null;}function _0x4a4200(_0x426997){var _0x41fc1d=_0x4e1f37;const {status:_0x196c9d,coordinator:_0x1cab77}=_0x426997;switch(_0x196c9d){case _0x464d16[_0x41fc1d(0x18c)]:return _0x251b21[_0x41fc1d(0x174)](_0x339f9c,{'coordinator':_0x1cab77});case _0x464d16[_0x41fc1d(0x1c5)]:return _0x251b21[_0x41fc1d(0x174)](_0x142d85,{'coordinator':_0x1cab77});case _0x464d16[_0x41fc1d(0x221)]:return _0x251b21[_0x41fc1d(0x174)](_0x430861,{'coordinator':_0x1cab77});case _0x464d16[_0x41fc1d(0x1ea)]:return _0x251b21[_0x41fc1d(0x174)](_0x18249f,{});case _0x464d16[_0x41fc1d(0x16b)]:return _0x251b21['jsx'](_0x54880d,{'coordinator':_0x1cab77});default:return null;}}function _0x339f9c(_0xdd5ff){var _0x162e98=_0x4e1f37;const {coordinator:_0x4f80e8}=_0xdd5ff;return _0x251b21[_0x162e98(0x181)](_0x251b21[_0x162e98(0x178)],{'children':[_0x251b21['jsx']('div',{'className':_0x162e98(0x219),'children':'Present\x20this\x20document'}),_0x251b21[_0x162e98(0x174)](_0xf99188[_0x162e98(0x17e)],{'onClick':()=>_0x4f80e8[_0x162e98(0x15b)](),'children':_0x162e98(0x21c)})]});}function _0x142d85(_0x1c6b9f){var _0x590dc1=_0x4e1f37;const {coordinator:_0xf2099f}=_0x1c6b9f;return _0x251b21[_0x590dc1(0x181)](_0x251b21[_0x590dc1(0x178)],{'children':[_0x251b21[_0x590dc1(0x174)](_0x590dc1(0x1cd),{'className':_0x590dc1(0x219),'children':_0x590dc1(0x1d4)}),_0x251b21[_0x590dc1(0x174)](_0xf99188[_0x590dc1(0x17e)],{'onClick':()=>_0xf2099f[_0x590dc1(0x1f3)](),'children':_0x590dc1(0x153)})]});}function _0x430861(_0x56eee2){var _0x5c8347=_0x4e1f37;const {coordinator:_0x8f9273}=_0x56eee2;return _0x251b21[_0x5c8347(0x181)](_0x251b21[_0x5c8347(0x178)],{'children':[_0x251b21[_0x5c8347(0x174)](_0x5c8347(0x1cd),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5c8347(0x18d)}),_0x251b21[_0x5c8347(0x174)](_0xf99188[_0x5c8347(0x17e)],{'variant':_0x5c8347(0x16f),'onClick':()=>_0x8f9273[_0x5c8347(0x203)](),'children':'Start\x20following'})]});}function _0x54880d(_0x534137){var _0x18605a=_0x4e1f37;const {coordinator:_0x1ccb75}=_0x534137;return _0x251b21[_0x18605a(0x181)](_0x251b21[_0x18605a(0x178)],{'children':[_0x251b21['jsx'](_0x18605a(0x1cd),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x18605a(0x232)}),_0x251b21['jsx'](_0xf99188[_0x18605a(0x17e)],{'variant':_0x18605a(0x1f9),'onClick':()=>_0x1ccb75['stopPresenting'](),'children':_0x18605a(0x1a7)})]});}function _0x18249f(){var _0x5aaae3=_0x4e1f37;return _0x251b21['jsx'](_0x251b21[_0x5aaae3(0x178)],{'children':'You\x27are\x20offline.'});}var _0x5867f9=Object[_0x4e1f37(0x1bc)],_0x3e2959=(_0x5f4e64,_0x1be24d,_0x152fdf,_0x4bac08)=>{var _0x148319=_0x4e1f37;for(var _0x39c71d=_0x4bac08>0x1?void 0x0:_0x4bac08?_0x5867f9(_0x1be24d,_0x152fdf):_0x1be24d,_0x400cc6=_0x5f4e64[_0x148319(0x1bd)]-0x1,_0x4cd18d;_0x400cc6>=0x0;_0x400cc6--)(_0x4cd18d=_0x5f4e64[_0x400cc6])&&(_0x39c71d=_0x4cd18d(_0x39c71d)||_0x39c71d);return _0x39c71d;},_0x271a33=(_0x544852,_0x5bef7e)=>(_0x44fc6a,_0x3a2524)=>_0x5bef7e(_0x44fc6a,_0x3a2524,_0x544852);_0x564430['DesktopLiveShareController']=class extends _0x14dd01['Disposable']{constructor(_0x20e548,_0x3f5b01){var _0x19729b=_0x4e1f37;super(),this['_injector']=_0x20e548,this[_0x19729b(0x1d7)]=_0x3f5b01,this[_0x19729b(0x170)]();}[_0x4e1f37(0x170)](){var _0x19ed22=_0x4e1f37;this['disposeWithMe'](this[_0x19ed22(0x1d7)]['registerComponent'](_0x4f2411[_0x19ed22(0x22b)][_0x19ed22(0x1a5)],()=>_0x4f2411[_0x19ed22(0x1f7)](_0x2c5356,this[_0x19ed22(0x234)])));}},_0x564430['DesktopLiveShareController']=_0x3e2959([_0x271a33(0x0,_0x14dd01[_0x4e1f37(0x22a)](_0x14dd01['Injector'])),_0x271a33(0x1,_0x4f2411[_0x4e1f37(0x19f)])],_0x564430[_0x4e1f37(0x1b0)]);var _0x347024=Object[_0x4e1f37(0x21e)],_0x4fb404=Object['getOwnPropertyDescriptor'],_0x95fffd=(_0x574433,_0x5ce5ea,_0x312851)=>_0x5ce5ea in _0x574433?_0x347024(_0x574433,_0x5ce5ea,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x312851}):_0x574433[_0x5ce5ea]=_0x312851,_0x5eea80=(_0x1bb6b9,_0x1a6196,_0x2cbe36,_0x1be744)=>{for(var _0xec5757=_0x1be744>0x1?void 0x0:_0x1be744?_0x4fb404(_0x1a6196,_0x2cbe36):_0x1a6196,_0x322a01=_0x1bb6b9['length']-0x1,_0xe612ef;_0x322a01>=0x0;_0x322a01--)(_0xe612ef=_0x1bb6b9[_0x322a01])&&(_0xec5757=_0xe612ef(_0xec5757)||_0xec5757);return _0xec5757;},_0x3e1f8a=(_0x59c16c,_0x53408d)=>(_0x5c5ece,_0x23c39b)=>_0x53408d(_0x5c5ece,_0x23c39b,_0x59c16c),_0x1f9d4d=(_0x18eeb3,_0x15ef3f,_0x1f2214)=>_0x95fffd(_0x18eeb3,typeof _0x15ef3f!=_0x4e1f37(0x1ac)?_0x15ef3f+'':_0x15ef3f,_0x1f2214);const _0x19f0f5=_0x4e1f37(0x1e1);_0x564430[_0x4e1f37(0x183)]=class extends _0x14dd01[_0x4e1f37(0x160)]{constructor(_0x3a7b2e=_0x187a32,_0x22d176,_0x46aa18){var _0x3c7662=_0x4e1f37;super(),this[_0x3c7662(0x184)]=_0x3a7b2e,this[_0x3c7662(0x234)]=_0x22d176,this[_0x3c7662(0x1e0)]=_0x46aa18;const {..._0x7eba03}=_0x14dd01[_0x3c7662(0x210)]({},_0x187a32,this['_config']);this[_0x3c7662(0x1e0)][_0x3c7662(0x1fe)](_0x569104,_0x7eba03);}[_0x4e1f37(0x161)](){var _0x7bd9b1=_0x4e1f37;_0x14dd01[_0x7bd9b1(0x217)](this[_0x7bd9b1(0x234)],_0x14dd01['mergeOverrideWithDependencies']([[_0x4c5666],[_0x564430['LiveShareController']],[_0x5d75bf],[_0x564430[_0x7bd9b1(0x1b0)]]],this[_0x7bd9b1(0x184)]['override'])),_0x14dd01[_0x7bd9b1(0x15f)](this['_injector'],[[_0x5d75bf]]);}['onRendered'](){var _0x33269b=_0x4e1f37;_0x14dd01['touchDependencies'](this[_0x33269b(0x234)],[[_0x564430['DesktopLiveShareController']]]);}},_0x1f9d4d(_0x564430[_0x4e1f37(0x183)],_0x4e1f37(0x1a4),_0x14dd01[_0x4e1f37(0x19c)][_0x4e1f37(0x202)]),_0x1f9d4d(_0x564430[_0x4e1f37(0x183)],_0x4e1f37(0x1a6),_0x19f0f5),_0x564430[_0x4e1f37(0x183)]=_0x5eea80([_0x14dd01[_0x4e1f37(0x229)](_0x48eb55['UniverCollaborationClientPlugin']),_0x3e1f8a(0x1,_0x14dd01[_0x4e1f37(0x22a)](_0x14dd01[_0x4e1f37(0x1b8)])),_0x3e1f8a(0x2,_0x14dd01['IConfigService'])],_0x564430[_0x4e1f37(0x183)]),_0x564430[_0x4e1f37(0x1fa)]=_0x2c5356,_0x564430[_0x4e1f37(0x218)]=_0x4c5666,_0x564430['LiveShareStatus']=_0x464d16,Object[_0x4e1f37(0x21e)](_0x564430,Symbol[_0x4e1f37(0x1b1)],{'value':_0x4e1f37(0x224)});}));function _0x3dc3(){var _0x43d248=['LIVESHARE_NEW_HOST','reverse','colorChannel1','text','_mountLiveShare','CollaborationEvent','function','CommandType','jsx','rxjs/operators','init','map','Fragment','offline','univer-size-4','_entities','SetZoomRatioOperation','LiveShareSingle','Button','getUnitId','prototype','jsxs','displayName','UniverLiveSharePlugin','_config','UniverCore','mutations','current','children','disposeWithMe','SetWorksheetActiveOperation','getInitialStates','IDLE','You\x27re\x20not\x20following\x20the\x20presenter','UniverProLiveShare','next','_stopFollowing','following','unsubscribe','status$','get','getLiveShareCoordinator','pipe','_fetchOperations','IUniverInstanceService','attrs','hasOwnProperty','_collabSession','UniverInstanceType','mask','executeCommand','IUIPartsService','@univerjs/sheets-ui','indexOf','BehaviorSubject','OPERATION','type','HEADER_MENU','pluginName','Stop\x20presenting','getCurrentTypeOfUnit$','substring','1896156JVErhA','sheet','symbol','complete','UNIVER_SHEET','_handleOnline','DesktopLiveShareController','toStringTag','add','defs','forwardRef','715CpKCDI','string','icon','Injector','_startPresenting','_handleNewChangeSets','@univerjs/ui','getOwnPropertyDescriptor','length','set','sessionStatus$','use','live-share-single','presenter','params','className','FOLLOWING','40gSRocE','@univerjs/core','not-following','currentColor','LIVESHARE_TERMINATE','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','@univerjs-pro/collaboration','div','getValue','useObservable','end','react/jsx-runtime','LIVESHARE_REQUEST_HOST','evenodd','You\x27re\x20following\x20the\x20presenter','xlink:href','idle','_uiPartsService','parseProtocolChangeset','2532wbiHyQ','_univerInstanceService','none','extend','data','defIds','idSuffix','_configService','UNIVER_LIVE_SHARE_PLUGIN','_startFollowing','univerjs-icon\x20univerjs-icon-','SAME_OPERATION_SHARE_INTERVAL','amd','LiveShareController','tag','url(#$1','Dropdown','OFFLINE','unitId','clear','onCommandExecuted','operators','125845NeLlbH','UniverProCollaborationClient','1708749vdlRuX','UniverIcon','stopFollowing','_handleOffline','UniverSheets','_handleNewHost','connectInjector','requireSession','default','LiveShare','UniverSheetsUi','send','includes','setConfig','then','presenting','apply','UNIVER_UNKNOWN','startFollowing','dispose','_unitID','object','UniverProCollaboration','useEffect','_handleTerminate','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','90WiBNfI','shouldShareOperation','Disposable','throttleTime','_sharedOperations','merge','createElement','replace','useState','NEW_CHANGESETS','_commandDisposable','_status$','registerDependencies','LiveShareService','univer-w-full\x20univer-mb-3\x20univer-text-sm','2AUlwTl','_presenter','Start','357911XwnXGZ','defineProperty','stopPresenting','useRef','NOT_FOLLOWING','useDependency','rxjs','Module','has','_liveShareService','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','1174184QLgWAE','DependentOn','Inject','BuiltInUIPart','getMemberID','35DtwOzp','trim','registerInitialStateReporter','_stopPresenting','_beIdle','You\x27re\x20presenting\x20the\x20document','getTypeOfUnitDisposed$','_injector','_commandService','button','React','path','forEach','call','UniverDesign','event$','715194KXLauk','from','_init','concat','1em','_startLiveShareCoordinator','subscribe','svg','dispose$','@univerjs-pro/collaboration-client','LIVESHARE_OPERATION','LiveShareCoordinator','createInstance','Stop\x20following','getOwnPropertySymbols','takeUntil','delete','RxDisposable','0\x200\x2016\x2016','_collabSessionService','@univerjs/design','tryStartPresenting','getTypeOfUnitAdded$','toDisposable','_reporters','touchDependencies','Plugin','onStarting','entries','memberID','@univerjs/sheets','fill','_status','assign','react','asObservable','SessionStatus','PRESENTING'];_0x3dc3=function(){return _0x43d248;};return _0x3dc3();}
|
|
1
|
+
function _0x1750(_0x5e2150,_0x338c07){var _0x8ff235=_0x8ff2();return _0x1750=function(_0x17504c,_0x30c1c7){_0x17504c=_0x17504c-0xa1;var _0x5e77c2=_0x8ff235[_0x17504c];return _0x5e77c2;},_0x1750(_0x5e2150,_0x338c07);}(function(_0x4f0c46,_0x2ab6a3){var _0x20d61a=_0x1750,_0x569df3=_0x4f0c46();while(!![]){try{var _0x52b5a5=parseInt(_0x20d61a(0xa1))/0x1+parseInt(_0x20d61a(0x116))/0x2+parseInt(_0x20d61a(0x10d))/0x3+parseInt(_0x20d61a(0x13d))/0x4*(parseInt(_0x20d61a(0xb9))/0x5)+parseInt(_0x20d61a(0x16a))/0x6+parseInt(_0x20d61a(0xf2))/0x7*(parseInt(_0x20d61a(0x103))/0x8)+-parseInt(_0x20d61a(0xce))/0x9;if(_0x52b5a5===_0x2ab6a3)break;else _0x569df3['push'](_0x569df3['shift']());}catch(_0x250bda){_0x569df3['push'](_0x569df3['shift']());}}}(_0x8ff2,0x61a5c),function(_0x42ac4b,_0xa275bf){var _0x4583c5=_0x1750;typeof exports==_0x4583c5(0xe0)&&typeof module<'u'?_0xa275bf(exports,require(_0x4583c5(0x102)),require(_0x4583c5(0x14a)),require(_0x4583c5(0x153)),require(_0x4583c5(0xc7)),require(_0x4583c5(0x137)),require(_0x4583c5(0x155)),require(_0x4583c5(0x17e)),require('react'),require(_0x4583c5(0x188)),require('rxjs'),require('rxjs/operators')):typeof define==_0x4583c5(0xcc)&&define[_0x4583c5(0x152)]?define([_0x4583c5(0xd7),_0x4583c5(0x102),_0x4583c5(0x14a),_0x4583c5(0x153),_0x4583c5(0xc7),_0x4583c5(0x137),'react/jsx-runtime',_0x4583c5(0x17e),_0x4583c5(0x172),_0x4583c5(0x188),_0x4583c5(0xff),_0x4583c5(0x133)],_0xa275bf):(_0x42ac4b=typeof globalThis<'u'?globalThis:_0x42ac4b||self,_0xa275bf(_0x42ac4b[_0x4583c5(0xd9)]={},_0x42ac4b['UniverProCollaborationClient'],_0x42ac4b[_0x4583c5(0x12f)],_0x42ac4b[_0x4583c5(0x124)],_0x42ac4b['UniverSheetsUi'],_0x42ac4b[_0x4583c5(0xe9)],_0x42ac4b['React'],_0x42ac4b['UniverDesign'],_0x42ac4b[_0x4583c5(0xd8)],_0x42ac4b[_0x4583c5(0xec)],_0x42ac4b[_0x4583c5(0xff)],_0x42ac4b[_0x4583c5(0xff)][_0x4583c5(0x134)]));}(this,function(_0x490001,_0xa8c5d8,_0x5e952e,_0x333aec,_0x324ed5,_0x4d8aff,_0x3e6ab9,_0x420c88,_0x122ef8,_0x28dddd,_0x4e781f,_0x161911){'use strict';var _0x327709=_0x1750;var _0x4ffbef=Object[_0x327709(0xc0)],_0x546b69=(_0x59068e,_0x199274,_0x387685)=>_0x199274 in _0x59068e?_0x4ffbef(_0x59068e,_0x199274,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x387685}):_0x59068e[_0x199274]=_0x387685,_0x5c3cdc=(_0x288bfd,_0x49d09f,_0x4c871a)=>_0x546b69(_0x288bfd,typeof _0x49d09f!=_0x327709(0x128)?_0x49d09f+'':_0x49d09f,_0x4c871a);const _0x4edf57=_0x327709(0x179),_0x38ba01={};class _0x194b8f extends _0x5e952e[_0x327709(0xe2)]{constructor(){var _0x35ca94=_0x327709;super(...arguments),_0x5c3cdc(this,'_sharedOperations',new Set()),_0x5c3cdc(this,_0x35ca94(0xa6),new Set());}[_0x327709(0x16d)](_0x2f1b32){var _0x1df240=_0x327709;return this[_0x1df240(0x16e)][_0x1df240(0x141)](_0x2f1b32),_0x5e952e[_0x1df240(0x10c)](()=>this['_sharedOperations']['delete'](_0x2f1b32));}[_0x327709(0x104)](_0x99bc8b){var _0x16c2e9=_0x327709;return this[_0x16c2e9(0xa6)]['add'](_0x99bc8b),_0x5e952e[_0x16c2e9(0x10c)](()=>this[_0x16c2e9(0xa6)][_0x16c2e9(0xa7)](_0x99bc8b));}[_0x327709(0x12b)](_0x216023){var _0x8e8996=_0x327709;return this[_0x8e8996(0x16e)][_0x8e8996(0xbd)](_0x216023);}[_0x327709(0x109)](_0x16f930){var _0x3ab685=_0x327709;return Array[_0x3ab685(0xa9)](this['_reporters'])[_0x3ab685(0x186)](_0xc2d87b=>_0xc2d87b(_0x16f930));}}var _0x206e95=Object['getOwnPropertyDescriptor'],_0x3e5140=(_0x49a34f,_0x1533ea,_0x3ec73e,_0x3c858e)=>{var _0x312ef4=_0x327709;for(var _0x57aa69=_0x3c858e>0x1?void 0x0:_0x3c858e?_0x206e95(_0x1533ea,_0x3ec73e):_0x1533ea,_0x12a8f3=_0x49a34f[_0x312ef4(0xc6)]-0x1,_0x3aef6e;_0x12a8f3>=0x0;_0x12a8f3--)(_0x3aef6e=_0x49a34f[_0x12a8f3])&&(_0x57aa69=_0x3aef6e(_0x57aa69)||_0x57aa69);return _0x57aa69;},_0x2da6ce=(_0x33c8c9,_0x86f64a)=>(_0x28da4e,_0x4f4a9b)=>_0x86f64a(_0x28da4e,_0x4f4a9b,_0x33c8c9);let _0x3156dc=class extends _0x5e952e[_0x327709(0xe2)]{constructor(_0x102908){var _0x2fb885=_0x327709;super(),this[_0x2fb885(0x13f)]=_0x102908,this['_init']();}[_0x327709(0xd5)](){var _0x5e8c88=_0x327709;[_0x324ed5[_0x5e8c88(0x132)]['id'],_0x324ed5[_0x5e8c88(0xb4)]['id'],_0x333aec['SetWorksheetActiveOperation']['id']][_0x5e8c88(0x107)](_0x223659=>{var _0x2483bf=_0x5e8c88;this[_0x2483bf(0x16b)](this['_liveShareService'][_0x2483bf(0x16d)](_0x223659));});}};_0x3156dc=_0x3e5140([_0x2da6ce(0x0,_0x5e952e['Inject'](_0x194b8f))],_0x3156dc);var _0x5a56b4=function(){var _0x141e81=_0x327709;return _0x5a56b4=Object[_0x141e81(0x115)]||function(_0x5d2b44){var _0x27047b=_0x141e81;for(var _0x4259bb,_0x578950=0x1,_0x3108b5=arguments[_0x27047b(0xc6)];_0x578950<_0x3108b5;_0x578950++){_0x4259bb=arguments[_0x578950];for(var _0x1cbe53 in _0x4259bb)Object[_0x27047b(0x154)]['hasOwnProperty']['call'](_0x4259bb,_0x1cbe53)&&(_0x5d2b44[_0x1cbe53]=_0x4259bb[_0x1cbe53]);}return _0x5d2b44;},_0x5a56b4[_0x141e81(0xef)](this,arguments);},_0xead90a=function(_0x1868ec,_0x563b1b){var _0x13a615=_0x327709,_0x58c3ce={};for(var _0x4eadca in _0x1868ec)Object[_0x13a615(0x154)]['hasOwnProperty'][_0x13a615(0x18a)](_0x1868ec,_0x4eadca)&&_0x563b1b[_0x13a615(0xb6)](_0x4eadca)<0x0&&(_0x58c3ce[_0x4eadca]=_0x1868ec[_0x4eadca]);if(_0x1868ec!=null&&typeof Object[_0x13a615(0x175)]=='function'){for(var _0x3a6752=0x0,_0x4eadca=Object[_0x13a615(0x175)](_0x1868ec);_0x3a6752<_0x4eadca['length'];_0x3a6752++)_0x563b1b[_0x13a615(0xb6)](_0x4eadca[_0x3a6752])<0x0&&Object[_0x13a615(0x154)]['propertyIsEnumerable']['call'](_0x1868ec,_0x4eadca[_0x3a6752])&&(_0x58c3ce[_0x4eadca[_0x3a6752]]=_0x1868ec[_0x4eadca[_0x3a6752]]);}return _0x58c3ce;},_0x4b14bc=_0x122ef8['forwardRef'](function(_0x6a95c8,_0x11aeb6){var _0x5d40cc=_0x327709,_0x51cfaa=_0x6a95c8[_0x5d40cc(0xf0)],_0x565299=_0x6a95c8['id'],_0x35a9a1=_0x6a95c8[_0x5d40cc(0x111)],_0x41a94b=_0x6a95c8[_0x5d40cc(0x169)],_0x5b3f41=_0xead90a(_0x6a95c8,['icon','id',_0x5d40cc(0x111),_0x5d40cc(0x169)]),_0x36636b=_0x5d40cc(0xe4)['concat'](_0x565299,'\x20')['concat'](_0x35a9a1||'')[_0x5d40cc(0x145)](),_0x56a068=_0x122ef8['useRef']('_'[_0x5d40cc(0x114)](_0x464edd()));return _0x20a345(_0x51cfaa,''[_0x5d40cc(0x114)](_0x565299),{'defIds':_0x51cfaa[_0x5d40cc(0xf3)],'idSuffix':_0x56a068['current']},_0x5a56b4({'ref':_0x11aeb6,'className':_0x36636b},_0x5b3f41),_0x41a94b);});function _0x20a345(_0x44a20c,_0x4cc30c,_0xfa3fd6,_0x4d4034,_0x1c48e5){var _0x1db72a=_0x327709;return _0x122ef8['createElement'](_0x44a20c[_0x1db72a(0xd0)],_0x5a56b4(_0x5a56b4({'key':_0x4cc30c},_0x127811(_0x44a20c,_0xfa3fd6,_0x1c48e5)),_0x4d4034),(_0x48cf65(_0x44a20c,_0xfa3fd6)[_0x1db72a(0x17c)]||[])['map'](function(_0xa92cfd,_0x2d9eae){var _0x275290=_0x1db72a;return _0x20a345(_0xa92cfd,''[_0x275290(0x114)](_0x4cc30c,'-')[_0x275290(0x114)](_0x44a20c[_0x275290(0xd0)],'-')[_0x275290(0x114)](_0x2d9eae),_0xfa3fd6,void 0x0,_0x1c48e5);}));}function _0x127811(_0x166f1e,_0x3e5b26,_0x5195d1){var _0x5b4776=_0x327709,_0xa9e61c=_0x5a56b4({},_0x166f1e[_0x5b4776(0xc1)]);_0x5195d1!=null&&_0x5195d1[_0x5b4776(0x146)]&&_0xa9e61c[_0x5b4776(0x17a)]===_0x5b4776(0x146)&&(_0xa9e61c[_0x5b4776(0x17a)]=_0x5195d1[_0x5b4776(0x146)]),_0x166f1e['tag']===_0x5b4776(0xfb)&&_0xa9e61c['id']&&(_0xa9e61c['id']=_0xa9e61c['id']+_0x3e5b26[_0x5b4776(0xf4)]),Object[_0x5b4776(0xb1)](_0xa9e61c)[_0x5b4776(0x107)](function(_0x1c55c8){var _0x170f70=_0x5b4776,_0x89f0e2=_0x1c55c8[0x0],_0x4d9b85=_0x1c55c8[0x1];_0x89f0e2===_0x170f70(0xfb)&&typeof _0x4d9b85==_0x170f70(0x185)&&(_0xa9e61c[_0x89f0e2]=_0x4d9b85[_0x170f70(0x126)](/url\(#(.*)\)/,_0x170f70(0xb7)[_0x170f70(0x114)](_0x3e5b26[_0x170f70(0xf4)],')')));});var _0x59c478=_0x3e5b26['defIds'];return!_0x59c478||_0x59c478[_0x5b4776(0xc6)]===0x0||(_0x166f1e[_0x5b4776(0xd0)]==='use'&&_0xa9e61c[_0x5b4776(0x135)]&&(_0xa9e61c['xlink:href']=_0xa9e61c[_0x5b4776(0x135)]+_0x3e5b26[_0x5b4776(0xf4)]),Object[_0x5b4776(0xb1)](_0xa9e61c)[_0x5b4776(0x107)](function(_0x59eea0){var _0x42d0e4=_0x5b4776,_0x539db2=_0x59eea0[0x0],_0x551b0c=_0x59eea0[0x1];typeof _0x551b0c==_0x42d0e4(0x185)&&(_0xa9e61c[_0x539db2]=_0x551b0c[_0x42d0e4(0x126)](/url\(#(.*)\)/,_0x42d0e4(0xb7)[_0x42d0e4(0x114)](_0x3e5b26['idSuffix'],')')));})),_0xa9e61c;}function _0x48cf65(_0x189e3c,_0x5d41bd){var _0x264a06=_0x327709,_0x5bdb18,_0x51226d=_0x5d41bd['defIds'];return!_0x51226d||_0x51226d['length']===0x0?_0x189e3c:_0x189e3c[_0x264a06(0xd0)]===_0x264a06(0x160)&&(!((_0x5bdb18=_0x189e3c[_0x264a06(0x17c)])===null||_0x5bdb18===void 0x0)&&_0x5bdb18[_0x264a06(0xc6)])?_0x5a56b4(_0x5a56b4({},_0x189e3c),{'children':_0x189e3c['children'][_0x264a06(0x186)](function(_0x4d8de9){var _0x3258ce=_0x264a06;return typeof _0x4d8de9[_0x3258ce(0xc1)]['id']=='string'&&_0x51226d&&_0x51226d[_0x3258ce(0xba)](_0x4d8de9['attrs']['id'])?_0x5a56b4(_0x5a56b4({},_0x4d8de9),{'attrs':_0x5a56b4(_0x5a56b4({},_0x4d8de9[_0x3258ce(0xc1)]),{'id':_0x4d8de9[_0x3258ce(0xc1)]['id']+_0x5d41bd[_0x3258ce(0xf4)]})}):_0x4d8de9;})}):_0x189e3c;}function _0x464edd(){var _0x313b18=_0x327709;return Math[_0x313b18(0x127)]()[_0x313b18(0xa2)](0x24)[_0x313b18(0x117)](0x2,0x8);}_0x4b14bc[_0x327709(0xa8)]='UniverIcon';var _0xfaac99={'tag':_0x327709(0x167),'attrs':{'xmlns':_0x327709(0xbf),'fill':_0x327709(0x14d),'viewBox':_0x327709(0x174),'width':_0x327709(0xfa),'height':_0x327709(0xfa)},'children':[{'tag':_0x327709(0x15c),'attrs':{'fill':_0x327709(0x11f),'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':_0x327709(0x15c),'attrs':{'fill':_0x327709(0x11f),'d':_0x327709(0x15e),'fillRule':_0x327709(0x163),'clipRule':_0x327709(0x163)}}]},_0x283add=_0x122ef8['forwardRef'](function(_0x1ccc71,_0x245ca5){var _0x301b18=_0x327709;return _0x122ef8[_0x301b18(0x166)](_0x4b14bc,Object[_0x301b18(0x115)]({},_0x1ccc71,{'id':_0x301b18(0xe8),'ref':_0x245ca5,'icon':_0xfaac99}));});_0x283add[_0x327709(0xa8)]='LiveShareIcon';var _0x519c66=Object[_0x327709(0x10e)],_0x3c5d99=(_0x8f2a4e,_0x18021b,_0x5f3459,_0xcd2d23)=>{var _0x5f563d=_0x327709;for(var _0x153649=_0xcd2d23>0x1?void 0x0:_0xcd2d23?_0x519c66(_0x18021b,_0x5f3459):_0x18021b,_0x1759e2=_0x8f2a4e[_0x5f563d(0xc6)]-0x1,_0x3306c6;_0x1759e2>=0x0;_0x1759e2--)(_0x3306c6=_0x8f2a4e[_0x1759e2])&&(_0x153649=_0x3306c6(_0x153649)||_0x153649);return _0x153649;},_0x320f32=(_0x1431bc,_0x34fe3b)=>(_0x18d6d0,_0x46e4f3)=>_0x34fe3b(_0x18d6d0,_0x46e4f3,_0x1431bc);_0x490001[_0x327709(0xf6)]=class extends _0x5e952e[_0x327709(0x13b)]{constructor(_0x4afd3c,_0x506f21,_0x23cfda){var _0x4f16cb=_0x327709;super(),_0x5c3cdc(this,_0x4f16cb(0x15d),new Map()),(this[_0x4f16cb(0xdf)]=_0x4afd3c,this[_0x4f16cb(0x14b)]=_0x506f21,this[_0x4f16cb(0xcf)]=_0x23cfda,this[_0x4f16cb(0xd5)]());}async['getLiveShareCoordinator'](_0x110e6c){var _0x3145ff=_0x327709;return this[_0x3145ff(0x15d)][_0x3145ff(0xbd)](_0x110e6c)||await this[_0x3145ff(0xcd)](_0x110e6c),this[_0x3145ff(0x15d)][_0x3145ff(0x100)](_0x110e6c);}['_init'](){var _0x19cffe=_0x327709;this[_0x19cffe(0xdf)]['getTypeOfUnitAdded$'](_0x5e952e[_0x19cffe(0x120)][_0x19cffe(0x159)])['pipe'](_0x161911[_0x19cffe(0x191)](this[_0x19cffe(0x131)]))[_0x19cffe(0x108)](async _0x40f00d=>{var _0x48b322=_0x19cffe;const _0x1d955e=_0x40f00d[_0x48b322(0x13e)]();this[_0x48b322(0x15d)][_0x48b322(0xbd)](_0x1d955e)||this[_0x48b322(0xcd)](_0x1d955e);}),this['_univerInstanceService'][_0x19cffe(0x140)](_0x5e952e[_0x19cffe(0x120)][_0x19cffe(0x159)])[_0x19cffe(0x18f)](_0x161911[_0x19cffe(0x191)](this[_0x19cffe(0x131)]))[_0x19cffe(0x108)](_0x3e3274=>{var _0xbd84aa=_0x19cffe;const _0x562451=_0x3e3274[_0xbd84aa(0x13e)](),_0xa81f7d=this[_0xbd84aa(0x15d)]['get'](_0x562451);_0xa81f7d==null||_0xa81f7d['dispose']();});}async[_0x327709(0xcd)](_0x360b9e){var _0x5d0469=_0x327709;const _0x1257b0=await this['_collabSessionService'][_0x5d0469(0x187)](_0x360b9e),_0x1f265c=this['_injector'][_0x5d0469(0xb3)](_0x490001[_0x5d0469(0x11d)],_0x360b9e,_0x1257b0);return _0x1f265c['init'](),this[_0x5d0469(0x15d)]['set'](_0x360b9e,_0x1f265c),_0x1f265c;}},_0x490001[_0x327709(0xf6)]=_0x3c5d99([_0x320f32(0x0,_0x5e952e[_0x327709(0xf5)]),_0x320f32(0x1,_0x5e952e['Inject'](_0x5e952e[_0x327709(0xe6)])),_0x320f32(0x2,_0x5e952e[_0x327709(0x150)](_0xa8c5d8['CollaborationSessionService']))],_0x490001[_0x327709(0xf6)]);var _0x404940=(_0xb23c64=>(_0xb23c64[_0x327709(0x13c)]=_0x327709(0xbe),_0xb23c64[_0x327709(0xb0)]='idle',_0xb23c64[_0x327709(0xc4)]=_0x327709(0xc9),_0xb23c64[_0x327709(0xf8)]=_0x327709(0x101),_0xb23c64[_0x327709(0x16f)]=_0x327709(0xfc),_0xb23c64))(_0x404940||{});const _0x1695b7=_0x327709(0xd3),_0xcf0936=0xc8;_0x490001[_0x327709(0x11d)]=class extends _0x5e952e[_0x327709(0x13b)]{constructor(_0x48e944,_0x15f17d,_0x57f9da,_0x240a90,_0x4aafce){var _0x47e6b5=_0x327709;super(),_0x5c3cdc(this,_0x47e6b5(0xaa),new _0x4e781f[(_0x47e6b5(0xc2))]('idle')),_0x5c3cdc(this,_0x47e6b5(0xc3),this['_status$'][_0x47e6b5(0x123)]()),_0x5c3cdc(this,'_init',!0x1),_0x5c3cdc(this,'_commandDisposable',null),_0x5c3cdc(this,_0x47e6b5(0x147),null),(this['_unitID']=_0x48e944,this[_0x47e6b5(0x148)]=_0x15f17d,this[_0x47e6b5(0x18e)]=_0x57f9da,this[_0x47e6b5(0x13f)]=_0x240a90,this[_0x47e6b5(0x13a)]=_0x4aafce);}get['_status'](){var _0xb4eec5=_0x327709;return this['_status$'][_0xb4eec5(0xed)]();}['dispose'](){var _0x5f13ab=_0x327709,_0x50f707;(_0x50f707=this['_commandDisposable'])==null||_0x50f707['dispose'](),this[_0x5f13ab(0xaa)][_0x5f13ab(0x158)](_0x5f13ab(0xaf)),this[_0x5f13ab(0xaa)][_0x5f13ab(0xa5)]();}[_0x327709(0x136)](){var _0x3cd346=_0x327709;this[_0x3cd346(0xd5)]||(this[_0x3cd346(0xd5)]=!0x0,this['_collabSession'][_0x3cd346(0xee)][_0x3cd346(0x18f)](_0x161911['takeUntil'](this[_0x3cd346(0x131)]))['subscribe'](_0x8c1906=>{var _0x2cc285=_0x3cd346;switch(_0x8c1906){case _0xa8c5d8[_0x2cc285(0xad)][_0x2cc285(0x13c)]:this['_handleOffline']();break;case _0xa8c5d8[_0x2cc285(0xad)][_0x2cc285(0x14f)]:this['_handleOnline']();break;}}),this[_0x3cd346(0x148)][_0x3cd346(0xdb)][_0x3cd346(0x18f)](_0x161911[_0x3cd346(0x191)](this['dispose$']))['subscribe'](_0x1e8d3e=>{var _0x136969=_0x3cd346;const {eventID:_0x35027a}=_0x1e8d3e;switch(_0x35027a){case _0x28dddd[_0x136969(0x11a)]['LIVESHARE_NEW_HOST']:this[_0x136969(0xe1)](_0x1e8d3e);break;case _0x28dddd[_0x136969(0x11a)]['LIVESHARE_OPERATION']:this['_handleOperation'](_0x1e8d3e);break;case _0x28dddd[_0x136969(0x11a)]['LIVESHARE_TERMINATE']:this[_0x136969(0x12a)]();break;case _0x28dddd['CollaborationEvent'][_0x136969(0x151)]:this['_handleNewChangeSets'](_0x1e8d3e);break;}}));}[_0x327709(0x178)](){var _0xd05a3e=_0x327709;this[_0xd05a3e(0x148)][_0xd05a3e(0xe3)]({'eventID':_0x28dddd[_0xd05a3e(0x11a)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0xd05a3e(0xeb)],'userID':this['_collabSession']['getMemberID']()}},this['_unitID']);}[_0x327709(0x105)](){var _0x4e0065=_0x327709;this['_status']==='presenting'&&(this[_0x4e0065(0xaa)][_0x4e0065(0x158)](_0x4e0065(0xaf)),this[_0x4e0065(0x148)][_0x4e0065(0xe3)]({'eventID':_0x28dddd[_0x4e0065(0x11a)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x4e0065(0xeb)]}},this['_unitID']));}[_0x327709(0xde)](){var _0x1a488a=_0x327709;this[_0x1a488a(0x161)]==='not-following'&&(this['_status$'][_0x1a488a(0x158)]('following'),this[_0x1a488a(0x113)]());}[_0x327709(0x143)](){var _0x32ab2d=_0x327709;this[_0x32ab2d(0x161)]===_0x32ab2d(0xc9)&&this[_0x32ab2d(0x17f)]();}[_0x327709(0xe1)](_0x28fcf2){var _0x16b7fe=_0x327709;const {presenter:_0x4b094f}=_0x28fcf2['data'],_0x5a219b=this[_0x16b7fe(0x148)][_0x16b7fe(0xd4)]();this[_0x16b7fe(0x147)]=_0x4b094f,_0x4b094f===_0x5a219b?(this[_0x16b7fe(0x17f)](),this[_0x16b7fe(0x168)]()):this[_0x16b7fe(0x161)]!=='not-following'&&(this[_0x16b7fe(0x170)](),this[_0x16b7fe(0x113)]());}[_0x327709(0x18b)](){var _0x3ed9c7=_0x327709;const _0x58e5be={'eventID':_0x28dddd[_0x3ed9c7(0x11a)][_0x3ed9c7(0x139)]};this['_collabSession']['send'](_0x58e5be,this[_0x3ed9c7(0xeb)]);}[_0x327709(0x12a)](){var _0x56933d=_0x327709;this['_presenter']=null,this[_0x56933d(0x161)]!=='presenting'&&this[_0x56933d(0x15b)]();}[_0x327709(0x180)](_0x3e5633){var _0x34fd1c=_0x327709;if(this[_0x34fd1c(0x161)]===_0x34fd1c(0xc9)&&this[_0x34fd1c(0x147)]===_0x3e5633[_0x34fd1c(0x18c)][_0x34fd1c(0xab)]){const _0x328f95=_0x28dddd[_0x34fd1c(0xc8)](_0x3e5633['data'])[_0x34fd1c(0x10f)][_0x34fd1c(0x10a)]()[_0x34fd1c(0x162)](_0x3e4b0d=>_0x3e4b0d['id']===_0x333aec['InsertSheetMutation']['id']);if(_0x328f95){const _0x2b093d=_0x328f95[_0x34fd1c(0x12e)][_0x34fd1c(0xd1)],_0x297a60=_0x328f95['params'][_0x34fd1c(0xac)]['id'];setTimeout(()=>{var _0x39058a=_0x34fd1c;this['_commandService']['executeCommand'](_0x333aec[_0x39058a(0x144)]['id'],{'unitId':_0x2b093d,'subUnitId':_0x297a60},{'fromCollab':!0x0});});}}}[_0x327709(0x168)](){var _0x4b95d9=_0x327709;this[_0x4b95d9(0xaa)]['next'](_0x4b95d9(0xfc));const _0x9fd2b=new Map(),_0x365a4c=this['_commandDisposable']=new _0x5e952e[(_0x4b95d9(0xf9))]();_0x365a4c[_0x4b95d9(0x141)](_0x5e952e['toDisposable'](()=>{var _0x158330=_0x4b95d9;_0x9fd2b[_0x158330(0x107)](_0x279a24=>_0x279a24[_0x158330(0xa5)]()),_0x9fd2b[_0x158330(0x184)]();})),_0x365a4c[_0x4b95d9(0x141)](this[_0x4b95d9(0x13a)][_0x4b95d9(0xe5)](_0x2f47a3=>{var _0x4b127e=_0x4b95d9,_0x5f2920;if(_0x2f47a3[_0x4b127e(0x181)]!==_0x5e952e[_0x4b127e(0xc5)][_0x4b127e(0xcb)]||!this['_liveShareService']['shouldShareOperation'](_0x2f47a3['id']))return;const {id:_0x325d2c}=_0x2f47a3;let _0x58b403;_0x9fd2b[_0x4b127e(0xbd)](_0x325d2c)?_0x58b403=_0x9fd2b[_0x4b127e(0x100)](_0x325d2c):(_0x58b403=new _0x4e781f[(_0x4b127e(0x192))](),_0x9fd2b[_0x4b127e(0x193)](_0x325d2c,_0x58b403),_0x58b403[_0x4b127e(0x18f)](_0x161911[_0x4b127e(0x106)]((_0x5f2920=this[_0x4b127e(0x18e)][_0x4b127e(0xf1)](_0x1695b7))!=null?_0x5f2920:_0xcf0936,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4b127e(0x108)](_0x52ef35=>{var _0x1838a0=_0x4b127e;this[_0x1838a0(0x148)][_0x1838a0(0xe3)]({'eventID':_0x28dddd[_0x1838a0(0x11a)][_0x1838a0(0x194)],'data':{'unitID':this['_unitID'],'operations':{[_0x52ef35['id']]:{'id':_0x52ef35['id'],'params':JSON[_0x1838a0(0x125)](_0x52ef35['params'])}}}},this[_0x1838a0(0xeb)]);})),_0x58b403['next'](_0x2f47a3);})),this[_0x4b95d9(0x13f)][_0x4b95d9(0x109)](this['_unitID'])[_0x4b95d9(0x107)](_0xa0491e=>this['_collabSession'][_0x4b95d9(0xe3)]({'eventID':_0x28dddd[_0x4b95d9(0x11a)][_0x4b95d9(0x194)],'data':{'unitID':this[_0x4b95d9(0xeb)],'operations':{[_0xa0491e['id']]:{'id':_0xa0491e['id'],'params':JSON[_0x4b95d9(0x125)](_0xa0491e[_0x4b95d9(0x12e)])}}}},this[_0x4b95d9(0xeb)]));}['_stopPresenting'](){var _0x55e42a=_0x327709,_0x518489;this[_0x55e42a(0xaa)][_0x55e42a(0x158)](_0x55e42a(0xaf)),(_0x518489=this[_0x55e42a(0x15a)])==null||_0x518489[_0x55e42a(0x176)](),this[_0x55e42a(0x15a)]=null;}[_0x327709(0x113)](){var _0x5534e9=_0x327709,_0x37d6dd;(_0x37d6dd=this['_commandDisposable'])==null||_0x37d6dd[_0x5534e9(0x176)](),this[_0x5534e9(0xaa)][_0x5534e9(0x158)](_0x5534e9(0xc9));}[_0x327709(0x15b)](){var _0x17d462=_0x327709,_0x5a6f30;this[_0x17d462(0xaa)][_0x17d462(0x158)](_0x17d462(0xaf)),(_0x5a6f30=this[_0x17d462(0x15a)])==null||_0x5a6f30[_0x17d462(0x176)](),this[_0x17d462(0x15a)]=null;}[_0x327709(0x17f)](){var _0x5097af=_0x327709,_0x5119d1;this['_status$']['next'](_0x5097af(0x101)),(_0x5119d1=this[_0x5097af(0x15a)])==null||_0x5119d1[_0x5097af(0x176)]();}[_0x327709(0xb5)](_0x5a4c88){var _0x2a0fc5=_0x327709;if([_0x2a0fc5(0xfc),_0x2a0fc5(0x101),'offline']['includes'](this[_0x2a0fc5(0x161)])||!_0x5a4c88[_0x2a0fc5(0x18c)]['presenter']||_0x5a4c88['data']['presenter']===this[_0x2a0fc5(0x148)][_0x2a0fc5(0xd4)]())return;this[_0x2a0fc5(0x161)]===_0x2a0fc5(0xaf)&&this[_0x2a0fc5(0x113)]();const _0x5cebc2=_0x5a4c88[_0x2a0fc5(0x18c)]['operations'];Object[_0x2a0fc5(0x138)](_0x5cebc2)['forEach'](_0x163c27=>{var _0x528612=_0x2a0fc5;this[_0x528612(0x13a)][_0x528612(0xa3)](_0x163c27['id'],_0x163c27['params']?JSON[_0x528612(0x164)](_0x163c27[_0x528612(0x12e)]):null,{'fromCollab':!0x0});});}[_0x327709(0x119)](){var _0x21ec2=_0x327709,_0x530160;this[_0x21ec2(0xaa)][_0x21ec2(0x158)](_0x21ec2(0xbe)),(_0x530160=this['_commandDisposable'])==null||_0x530160[_0x21ec2(0x176)]();}[_0x327709(0x15f)](){var _0x144a87=_0x327709;this['_status$'][_0x144a87(0x158)](_0x144a87(0xaf)),this['_fetchOperations']();}},_0x490001[_0x327709(0x11d)]=_0x3c5d99([_0x320f32(0x2,_0x5e952e[_0x327709(0x129)]),_0x320f32(0x3,_0x5e952e[_0x327709(0x150)](_0x194b8f)),_0x320f32(0x4,_0x5e952e['ICommandService'])],_0x490001[_0x327709(0x11d)]);function _0x30a574(){var _0x1c0062=_0x327709;const _0x206216=_0x4d8aff[_0x1c0062(0xae)](_0x490001['LiveShareController']),_0x246931=_0x4d8aff[_0x1c0062(0xae)](_0x5e952e[_0x1c0062(0xf5)]),_0x59b0aa=_0x4d8aff[_0x1c0062(0x189)](()=>_0x246931['getCurrentTypeOfUnit$'](_0x5e952e[_0x1c0062(0x120)][_0x1c0062(0x159)]),void 0x0,!0x1,[]),[_0x375027,_0x41deff]=_0x122ef8[_0x1c0062(0xfe)](null),[_0x1ee376,_0x120db1]=_0x122ef8[_0x1c0062(0xfe)](_0x404940[_0x1c0062(0xb0)]),_0x10764e=_0x122ef8['useRef'](null);return _0x122ef8['useEffect'](()=>(_0x59b0aa&&_0x206216[_0x1c0062(0x177)](_0x59b0aa[_0x1c0062(0x13e)]())['then'](_0x58764c=>{var _0x155f3e=_0x1c0062;_0x41deff(_0x58764c),_0x10764e[_0x155f3e(0xdd)]=_0x58764c[_0x155f3e(0xc3)]['subscribe'](_0xb79836=>{_0x120db1(_0xb79836);});}),()=>{var _0x5aa73f=_0x1c0062,_0xbaaf64;(_0xbaaf64=_0x10764e[_0x5aa73f(0xdd)])==null||_0xbaaf64['unsubscribe'](),_0x10764e[_0x5aa73f(0xdd)]=null;}),[_0x59b0aa,_0x206216]),_0x375027?_0x3e6ab9[_0x1c0062(0x14c)](_0x420c88[_0x1c0062(0x142)],{'align':_0x1c0062(0x122),'disabled':_0x1ee376===_0x404940[_0x1c0062(0x13c)],'className':_0x1c0062(0x165),'overlay':_0x3e6ab9['jsx'](_0x3d1180,{'status':_0x1ee376,'coordinator':_0x375027}),'children':_0x3e6ab9[_0x1c0062(0x14c)]('button',{'className':_0x420c88['clsx'](_0x1c0062(0x11c),{'univer-cursor-not-allowed':_0x1ee376===_0x404940[_0x1c0062(0x13c)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1ee376!==_0x404940['OFFLINE']}),'type':_0x1c0062(0x183),'children':_0x3e6ab9[_0x1c0062(0x14c)](_0x283add,{'className':_0x1c0062(0x171)})})}):null;}function _0x3d1180(_0x302143){var _0x35c6dc=_0x327709;const {status:_0x19c3dc,coordinator:_0x17228f}=_0x302143;switch(_0x19c3dc){case _0x404940[_0x35c6dc(0xb0)]:return _0x3e6ab9[_0x35c6dc(0x14c)](_0x37e3c7,{'coordinator':_0x17228f});case _0x404940[_0x35c6dc(0xc4)]:return _0x3e6ab9['jsx'](_0xf4443f,{'coordinator':_0x17228f});case _0x404940[_0x35c6dc(0xf8)]:return _0x3e6ab9[_0x35c6dc(0x14c)](_0x4e7132,{'coordinator':_0x17228f});case _0x404940[_0x35c6dc(0x13c)]:return _0x3e6ab9[_0x35c6dc(0x14c)](_0x4f3f9e,{});case _0x404940[_0x35c6dc(0x16f)]:return _0x3e6ab9[_0x35c6dc(0x14c)](_0x209e79,{'coordinator':_0x17228f});default:return null;}}function _0x37e3c7(_0x2c516f){var _0x1e5c97=_0x327709;const {coordinator:_0x22b4a4}=_0x2c516f;return _0x3e6ab9[_0x1e5c97(0x182)](_0x3e6ab9[_0x1e5c97(0x156)],{'children':[_0x3e6ab9['jsx'](_0x1e5c97(0x12c),{'className':_0x1e5c97(0xf7),'children':_0x1e5c97(0xfd)}),_0x3e6ab9['jsx'](_0x420c88[_0x1e5c97(0xbc)],{'onClick':()=>_0x22b4a4[_0x1e5c97(0x178)](),'children':_0x1e5c97(0x173)})]});}function _0xf4443f(_0xc6cb8d){var _0x2c7172=_0x327709;const {coordinator:_0x1f785e}=_0xc6cb8d;return _0x3e6ab9[_0x2c7172(0x182)](_0x3e6ab9[_0x2c7172(0x156)],{'children':[_0x3e6ab9[_0x2c7172(0x14c)](_0x2c7172(0x12c),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x2c7172(0xb8)}),_0x3e6ab9[_0x2c7172(0x14c)](_0x420c88[_0x2c7172(0xbc)],{'onClick':()=>_0x1f785e['stopFollowing'](),'children':_0x2c7172(0xd6)})]});}function _0x4e7132(_0x4de8f5){var _0xa4c54a=_0x327709;const {coordinator:_0x222c08}=_0x4de8f5;return _0x3e6ab9[_0xa4c54a(0x182)](_0x3e6ab9[_0xa4c54a(0x156)],{'children':[_0x3e6ab9['jsx'](_0xa4c54a(0x12c),{'className':_0xa4c54a(0xf7),'children':_0xa4c54a(0x112)}),_0x3e6ab9[_0xa4c54a(0x14c)](_0x420c88['Button'],{'variant':_0xa4c54a(0x118),'onClick':()=>_0x222c08[_0xa4c54a(0xde)](),'children':_0xa4c54a(0x17b)})]});}function _0x209e79(_0x1cde13){var _0x83da43=_0x327709;const {coordinator:_0x1f4895}=_0x1cde13;return _0x3e6ab9[_0x83da43(0x182)](_0x3e6ab9[_0x83da43(0x156)],{'children':[_0x3e6ab9[_0x83da43(0x14c)](_0x83da43(0x12c),{'className':_0x83da43(0xf7),'children':_0x83da43(0x190)}),_0x3e6ab9[_0x83da43(0x14c)](_0x420c88[_0x83da43(0xbc)],{'variant':_0x83da43(0x130),'onClick':()=>_0x1f4895[_0x83da43(0x105)](),'children':'Stop\x20presenting'})]});}function _0x4f3f9e(){var _0x4f02f2=_0x327709;return _0x3e6ab9[_0x4f02f2(0x14c)](_0x3e6ab9[_0x4f02f2(0x156)],{'children':_0x4f02f2(0x10b)});}var _0x89b8e1=Object[_0x327709(0x10e)],_0x7edd3=(_0x5242dd,_0x5a2b1f,_0x3fbdf4,_0x5ad5cf)=>{var _0x5d6157=_0x327709;for(var _0x1436b8=_0x5ad5cf>0x1?void 0x0:_0x5ad5cf?_0x89b8e1(_0x5a2b1f,_0x3fbdf4):_0x5a2b1f,_0x163a77=_0x5242dd[_0x5d6157(0xc6)]-0x1,_0x3f7697;_0x163a77>=0x0;_0x163a77--)(_0x3f7697=_0x5242dd[_0x163a77])&&(_0x1436b8=_0x3f7697(_0x1436b8)||_0x1436b8);return _0x1436b8;},_0x4354d4=(_0x123653,_0x2ce023)=>(_0x4ebc4e,_0x168e1e)=>_0x2ce023(_0x4ebc4e,_0x168e1e,_0x123653);_0x490001[_0x327709(0x14e)]=class extends _0x5e952e[_0x327709(0xe2)]{constructor(_0x1fd7e0,_0xc8a0b7){var _0x3cb781=_0x327709;super(),this[_0x3cb781(0x14b)]=_0x1fd7e0,this[_0x3cb781(0x11b)]=_0xc8a0b7,this['_mountLiveShare']();}[_0x327709(0xca)](){var _0x22e5e9=_0x327709;this[_0x22e5e9(0x16b)](this[_0x22e5e9(0x11b)][_0x22e5e9(0xd2)](_0x4d8aff[_0x22e5e9(0xea)][_0x22e5e9(0x121)],()=>_0x4d8aff[_0x22e5e9(0xa4)](_0x30a574,this[_0x22e5e9(0x14b)])));}},_0x490001[_0x327709(0x14e)]=_0x7edd3([_0x4354d4(0x0,_0x5e952e[_0x327709(0x150)](_0x5e952e[_0x327709(0xe6)])),_0x4354d4(0x1,_0x4d8aff[_0x327709(0xe7)])],_0x490001[_0x327709(0x14e)]);var _0x1e2c28=Object[_0x327709(0xc0)],_0x555a95=Object[_0x327709(0x10e)],_0x592d4d=(_0x1ff6df,_0x20718c,_0x2a9722)=>_0x20718c in _0x1ff6df?_0x1e2c28(_0x1ff6df,_0x20718c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a9722}):_0x1ff6df[_0x20718c]=_0x2a9722,_0x42a3eb=(_0x21f66e,_0xd4cafc,_0x1000bf,_0x14fd07)=>{var _0x26a204=_0x327709;for(var _0x2c3b71=_0x14fd07>0x1?void 0x0:_0x14fd07?_0x555a95(_0xd4cafc,_0x1000bf):_0xd4cafc,_0x2a89ea=_0x21f66e[_0x26a204(0xc6)]-0x1,_0x5a4c53;_0x2a89ea>=0x0;_0x2a89ea--)(_0x5a4c53=_0x21f66e[_0x2a89ea])&&(_0x2c3b71=_0x5a4c53(_0x2c3b71)||_0x2c3b71);return _0x2c3b71;},_0x3b78fc=(_0x37d1e4,_0x679c4a)=>(_0x12377e,_0xb075c7)=>_0x679c4a(_0x12377e,_0xb075c7,_0x37d1e4),_0x56cd95=(_0x28a3be,_0x5c4ae8,_0x1436cf)=>_0x592d4d(_0x28a3be,typeof _0x5c4ae8!='symbol'?_0x5c4ae8+'':_0x5c4ae8,_0x1436cf);const _0x20d52a=_0x327709(0x149);_0x490001['UniverLiveSharePlugin']=class extends _0x5e952e['Plugin']{constructor(_0x1cff25=_0x38ba01,_0x2e9c16,_0x3e2824){var _0x17f1be=_0x327709;super(),this[_0x17f1be(0x17d)]=_0x1cff25,this[_0x17f1be(0x14b)]=_0x2e9c16,this[_0x17f1be(0x18e)]=_0x3e2824;const {..._0x55d246}=_0x5e952e['merge']({},_0x38ba01,this[_0x17f1be(0x17d)]);this[_0x17f1be(0x18e)][_0x17f1be(0xb2)](_0x4edf57,_0x55d246);}['onStarting'](){var _0x41079b=_0x327709;_0x5e952e['registerDependencies'](this[_0x41079b(0x14b)],_0x5e952e['mergeOverrideWithDependencies']([[_0x194b8f],[_0x490001[_0x41079b(0xf6)]],[_0x3156dc],[_0x490001[_0x41079b(0x14e)]]],this[_0x41079b(0x17d)]['override'])),_0x5e952e[_0x41079b(0x110)](this[_0x41079b(0x14b)],[[_0x3156dc]]);}[_0x327709(0xbb)](){var _0xf85a8b=_0x327709;_0x5e952e['touchDependencies'](this[_0xf85a8b(0x14b)],[[_0x490001[_0xf85a8b(0x14e)]]]);}},_0x56cd95(_0x490001[_0x327709(0x157)],_0x327709(0x181),_0x5e952e['UniverInstanceType'][_0x327709(0x16c)]),_0x56cd95(_0x490001[_0x327709(0x157)],'pluginName',_0x20d52a),_0x490001['UniverLiveSharePlugin']=_0x42a3eb([_0x5e952e['DependentOn'](_0xa8c5d8[_0x327709(0xdc)]),_0x3b78fc(0x1,_0x5e952e[_0x327709(0x150)](_0x5e952e['Injector'])),_0x3b78fc(0x2,_0x5e952e[_0x327709(0x129)])],_0x490001['UniverLiveSharePlugin']),_0x490001[_0x327709(0x18d)]=_0x30a574,_0x490001['LiveShareService']=_0x194b8f,_0x490001[_0x327709(0xda)]=_0x404940,Object[_0x327709(0xc0)](_0x490001,Symbol[_0x327709(0x11e)],{'value':_0x327709(0x12d)});}));function _0x8ff2(){var _0x5aaa4e=['setConfig','createInstance','SetScrollOperation','_handleOperation','indexOf','url(#$1','You\x27re\x20following\x20the\x20presenter','5CjDKsA','includes','onRendered','Button','has','offline','http://www.w3.org/2000/svg','defineProperty','attrs','BehaviorSubject','status$','FOLLOWING','CommandType','length','@univerjs/sheets-ui','parseProtocolChangeset','following','_mountLiveShare','OPERATION','function','_startLiveShareCoordinator','20293353WrGJZy','_collabSessionService','tag','unitId','registerComponent','SAME_OPERATION_SHARE_INTERVAL','getMemberID','_init','Stop\x20following','exports','React','UniverProLiveShare','LiveShareStatus','event$','UniverCollaborationClientPlugin','current','startFollowing','_univerInstanceService','object','_handleNewHost','Disposable','send','univerjs-icon\x20univerjs-icon-','onCommandExecuted','Injector','IUIPartsService','live-share-icon','UniverUi','BuiltInUIPart','_unitID','UniverProCollaboration','getValue','sessionStatus$','apply','icon','getConfig','956914qUXBaW','defIds','idSuffix','IUniverInstanceService','LiveShareController','univer-w-full\x20univer-mb-3\x20univer-text-sm','NOT_FOLLOWING','DisposableCollection','1em','mask','presenting','Present\x20this\x20document','useState','rxjs','get','not-following','@univerjs-pro/collaboration-client','32LSGDPk','registerInitialStateReporter','stopPresenting','throttleTime','forEach','subscribe','getInitialStates','reverse','You\x27are\x20offline.','toDisposable','536091RTVkzV','getOwnPropertyDescriptor','mutations','touchDependencies','className','You\x27re\x20not\x20following\x20the\x20presenter','_startFollowing','concat','assign','983148bepunA','substring','text','_handleOffline','CollaborationEvent','_uiPartsService','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','LiveShareCoordinator','toStringTag','currentColor','UniverInstanceType','HEADER_MENU','end','asObservable','UniverSheets','stringify','replace','random','symbol','IConfigService','_handleTerminate','shouldShareOperation','div','Module','params','UniverCore','default','dispose$','SetZoomRatioOperation','rxjs/operators','operators','xlink:href','init','@univerjs/ui','values','LIVESHARE_FETCH_OPERATIONS','_commandService','RxDisposable','OFFLINE','2487244gvSoln','getUnitId','_liveShareService','getTypeOfUnitDisposed$','add','Dropdown','stopFollowing','SetWorksheetActiveOperation','trim','colorChannel1','_presenter','_collabSession','UNIVER_LIVE_SHARE_PLUGIN','@univerjs/core','_injector','jsx','none','DesktopLiveShareController','ONLINE','Inject','NEW_CHANGESETS','amd','@univerjs/sheets','prototype','react/jsx-runtime','Fragment','UniverLiveSharePlugin','next','UNIVER_SHEET','_commandDisposable','_beIdle','path','_entities','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_handleOnline','defs','_status','find','evenodd','parse','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','createElement','svg','_startPresenting','extend','822330DQuOws','disposeWithMe','UNIVER_UNKNOWN','registerSharedOperation','_sharedOperations','PRESENTING','_stopPresenting','univer-size-4','react','Start','0\x200\x2017\x2017','getOwnPropertySymbols','dispose','getLiveShareCoordinator','tryStartPresenting','live-share.config','fill','Start\x20following','children','_config','@univerjs/design','_stopFollowing','_handleNewChangeSets','type','jsxs','button','clear','string','map','requireSession','@univerjs-pro/collaboration','useObservable','call','_fetchOperations','data','LiveShare','_configService','pipe','You\x27re\x20presenting\x20the\x20document','takeUntil','Subject','set','LIVESHARE_OPERATION','678836ViOskH','toString','executeCommand','connectInjector','complete','_reporters','delete','displayName','from','_status$','memberID','sheet','SessionStatus','useDependency','idle','IDLE','entries'];_0x8ff2=function(){return _0x5aaa4e;};return _0x8ff2();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.8.0-beta.
|
|
3
|
+
"version": "0.8.0-beta.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
"rxjs": ">=7.0.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@univerjs/icons": "^0.
|
|
50
|
-
"@univerjs-pro/collaboration": "0.8.0-beta.
|
|
51
|
-
"@univerjs/core": "0.8.0-beta.
|
|
52
|
-
"@univerjs-pro/collaboration-client": "0.8.0-beta.
|
|
53
|
-
"@univerjs/design": "0.8.0-beta.
|
|
54
|
-
"@univerjs/sheets
|
|
55
|
-
"@univerjs/sheets": "0.8.0-beta.
|
|
56
|
-
"@univerjs/ui": "0.8.0-beta.
|
|
49
|
+
"@univerjs/icons": "^0.4.4",
|
|
50
|
+
"@univerjs-pro/collaboration": "0.8.0-beta.1",
|
|
51
|
+
"@univerjs/core": "0.8.0-beta.1",
|
|
52
|
+
"@univerjs-pro/collaboration-client": "0.8.0-beta.1",
|
|
53
|
+
"@univerjs/design": "0.8.0-beta.1",
|
|
54
|
+
"@univerjs/sheets": "0.8.0-beta.1",
|
|
55
|
+
"@univerjs/sheets-ui": "0.8.0-beta.1",
|
|
56
|
+
"@univerjs/ui": "0.8.0-beta.1"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.3",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
64
|
"vite": "^6.3.5",
|
|
65
65
|
"vitest": "^3.1.4",
|
|
66
|
-
"@univerjs
|
|
67
|
-
"@univerjs/
|
|
66
|
+
"@univerjs/protocol": "0.1.47-alpha.0",
|
|
67
|
+
"@univerjs-infra/shared": "0.8.0-beta.1"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"test": "vitest run",
|