@univerjs-pro/live-share 0.9.3 → 0.9.4-nightly.202507290757

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x506a38=_0x2724;(function(_0x208842,_0x1033d2){var _0x597dee=_0x2724,_0x45b526=_0x208842();while(!![]){try{var _0x1e4e7a=parseInt(_0x597dee(0x19e))/0x1+-parseInt(_0x597dee(0x1f9))/0x2*(parseInt(_0x597dee(0x221))/0x3)+-parseInt(_0x597dee(0x1f1))/0x4*(parseInt(_0x597dee(0x208))/0x5)+parseInt(_0x597dee(0x1ea))/0x6+parseInt(_0x597dee(0x1a1))/0x7*(-parseInt(_0x597dee(0x162))/0x8)+-parseInt(_0x597dee(0x190))/0x9*(-parseInt(_0x597dee(0x225))/0xa)+parseInt(_0x597dee(0x163))/0xb*(parseInt(_0x597dee(0x1ac))/0xc);if(_0x1e4e7a===_0x1033d2)break;else _0x45b526['push'](_0x45b526['shift']());}catch(_0x170802){_0x45b526['push'](_0x45b526['shift']());}}}(_0x14ab,0x71b40));var U=Object[_0x506a38(0x20a)],F=(_0x485d14,_0x3ec509,_0x3c5bb6)=>_0x3ec509 in _0x485d14?U(_0x485d14,_0x3ec509,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3c5bb6}):_0x485d14[_0x3ec509]=_0x3c5bb6,v=(_0x44dfbc,_0x2e4ef6,_0x2ddd95)=>F(_0x44dfbc,typeof _0x2e4ef6!='symbol'?_0x2e4ef6+'':_0x2e4ef6,_0x2ddd95);Object[_0x506a38(0x20a)](exports,Symbol[_0x506a38(0x196)],{'value':_0x506a38(0x1fc)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$=_0x506a38(0x188),x={};class O extends o[_0x506a38(0x16e)]{constructor(){var _0x48ae64=_0x506a38;super(...arguments),v(this,_0x48ae64(0x17d),new Set()),v(this,_0x48ae64(0x219),new Set());}[_0x506a38(0x1b3)](_0x5a3613){var _0x46480f=_0x506a38;return this[_0x46480f(0x17d)][_0x46480f(0x16c)](_0x5a3613),o['toDisposable'](()=>this[_0x46480f(0x17d)][_0x46480f(0x203)](_0x5a3613));}['registerInitialStateReporter'](_0x2b746a){var _0x32acb3=_0x506a38;return this[_0x32acb3(0x219)]['add'](_0x2b746a),o[_0x32acb3(0x235)](()=>this[_0x32acb3(0x219)]['delete'](_0x2b746a));}[_0x506a38(0x1da)](_0x4d309d){var _0x4ba2f5=_0x506a38;return this[_0x4ba2f5(0x17d)][_0x4ba2f5(0x17e)](_0x4d309d);}['getInitialStates'](_0x52202e){var _0x28a522=_0x506a38;return Array['from'](this[_0x28a522(0x219)])[_0x28a522(0x16b)](_0x323fdf=>_0x323fdf(_0x52202e));}}var H=Object[_0x506a38(0x1ef)],V=(_0x3be5ff,_0x59963f,_0x49787d,_0x5a011a)=>{var _0x1553d5=_0x506a38;for(var _0x2fcca1=_0x5a011a>0x1?void 0x0:_0x5a011a?H(_0x59963f,_0x49787d):_0x59963f,_0x4b4cab=_0x3be5ff[_0x1553d5(0x239)]-0x1,_0x5ccfd4;_0x4b4cab>=0x0;_0x4b4cab--)(_0x5ccfd4=_0x3be5ff[_0x4b4cab])&&(_0x2fcca1=_0x5ccfd4(_0x2fcca1)||_0x2fcca1);return _0x2fcca1;},k=(_0x36b0df,_0x4f397c)=>(_0x23d96c,_0x3a5559)=>_0x4f397c(_0x23d96c,_0x3a5559,_0x36b0df);let E=class extends o[_0x506a38(0x16e)]{constructor(_0x572785){var _0x45caa8=_0x506a38;super(),this[_0x45caa8(0x236)]=_0x572785,this[_0x45caa8(0x238)]();}['_init'](){var _0x33415d=_0x506a38;[w['SetZoomRatioOperation']['id'],w[_0x33415d(0x1ed)]['id'],C['SetWorksheetActiveOperation']['id']]['forEach'](_0x315805=>{var _0x4f7aa4=_0x33415d;this[_0x4f7aa4(0x1c1)](this[_0x4f7aa4(0x236)][_0x4f7aa4(0x1b3)](_0x315805));});}};E=V([k(0x0,o[_0x506a38(0x191)](O))],E);var u=function(){var _0x228507=_0x506a38;return u=Object[_0x228507(0x234)]||function(_0x2a68e2){var _0x2986da=_0x228507;for(var _0x3d58e9,_0x3b36bc=0x1,_0x3e4108=arguments[_0x2986da(0x239)];_0x3b36bc<_0x3e4108;_0x3b36bc++){_0x3d58e9=arguments[_0x3b36bc];for(var _0x406823 in _0x3d58e9)Object[_0x2986da(0x18d)]['hasOwnProperty'][_0x2986da(0x1cb)](_0x3d58e9,_0x406823)&&(_0x2a68e2[_0x406823]=_0x3d58e9[_0x406823]);}return _0x2a68e2;},u[_0x228507(0x1f8)](this,arguments);},M=function(_0x21f824,_0x2729a9){var _0x4960fd=_0x506a38,_0x1558c1={};for(var _0x10d115 in _0x21f824)Object['prototype'][_0x4960fd(0x1e2)][_0x4960fd(0x1cb)](_0x21f824,_0x10d115)&&_0x2729a9[_0x4960fd(0x1ee)](_0x10d115)<0x0&&(_0x1558c1[_0x10d115]=_0x21f824[_0x10d115]);if(_0x21f824!=null&&typeof Object[_0x4960fd(0x166)]==_0x4960fd(0x1df)){for(var _0xec592c=0x0,_0x10d115=Object[_0x4960fd(0x166)](_0x21f824);_0xec592c<_0x10d115['length'];_0xec592c++)_0x2729a9[_0x4960fd(0x1ee)](_0x10d115[_0xec592c])<0x0&&Object[_0x4960fd(0x18d)]['propertyIsEnumerable'][_0x4960fd(0x1cb)](_0x21f824,_0x10d115[_0xec592c])&&(_0x1558c1[_0x10d115[_0xec592c]]=_0x21f824[_0x10d115[_0xec592c]]);}return _0x1558c1;},j=f[_0x506a38(0x1f3)](function(_0x59c67b,_0x49bc15){var _0x52302e=_0x506a38,_0xba7625=_0x59c67b['icon'],_0x23b085=_0x59c67b['id'],_0xb29ba=_0x59c67b['className'],_0x4ea3d8=_0x59c67b[_0x52302e(0x176)],_0x1e83dc=M(_0x59c67b,['icon','id','className',_0x52302e(0x176)]),_0x1bfeae='univerjs-icon\x20univerjs-icon-'[_0x52302e(0x1c4)](_0x23b085,'\x20')['concat'](_0xb29ba||'')[_0x52302e(0x1a3)](),_0x3c9b6f=f['useRef']('_'['concat'](G()));return y(_0xba7625,''[_0x52302e(0x1c4)](_0x23b085),{'defIds':_0xba7625['defIds'],'idSuffix':_0x3c9b6f[_0x52302e(0x1d8)]},u({'ref':_0x49bc15,'className':_0x1bfeae},_0x1e83dc),_0x4ea3d8);});function y(_0x4462e3,_0x1d017a,_0x412ba3,_0x2829dc,_0x5644ba){var _0x3cda51=_0x506a38;return f[_0x3cda51(0x197)](_0x4462e3[_0x3cda51(0x1cf)],u(u({'key':_0x1d017a},q(_0x4462e3,_0x412ba3,_0x5644ba)),_0x2829dc),(W(_0x4462e3,_0x412ba3)['children']||[])['map'](function(_0x2a5c4c,_0x5be12f){var _0x203ac5=_0x3cda51;return y(_0x2a5c4c,''[_0x203ac5(0x1c4)](_0x1d017a,'-')[_0x203ac5(0x1c4)](_0x4462e3[_0x203ac5(0x1cf)],'-')[_0x203ac5(0x1c4)](_0x5be12f),_0x412ba3,void 0x0,_0x5644ba);}));}function q(_0x2c4332,_0x3d1254,_0x3ab09e){var _0x58ca65=_0x506a38,_0x1ddace=u({},_0x2c4332[_0x58ca65(0x202)]);_0x3ab09e!=null&&_0x3ab09e[_0x58ca65(0x232)]&&_0x1ddace[_0x58ca65(0x214)]===_0x58ca65(0x232)&&(_0x1ddace[_0x58ca65(0x214)]=_0x3ab09e['colorChannel1']),_0x2c4332['tag']===_0x58ca65(0x1ba)&&_0x1ddace['id']&&(_0x1ddace['id']=_0x1ddace['id']+_0x3d1254[_0x58ca65(0x1c5)]),Object[_0x58ca65(0x18b)](_0x1ddace)[_0x58ca65(0x201)](function(_0x513a0a){var _0x40efcc=_0x58ca65,_0x349d75=_0x513a0a[0x0],_0x4f035c=_0x513a0a[0x1];_0x349d75===_0x40efcc(0x1ba)&&typeof _0x4f035c==_0x40efcc(0x1d9)&&(_0x1ddace[_0x349d75]=_0x4f035c['replace'](/url\(#(.*)\)/,_0x40efcc(0x222)[_0x40efcc(0x1c4)](_0x3d1254['idSuffix'],')')));});var _0x56b89c=_0x3d1254['defIds'];return!_0x56b89c||_0x56b89c[_0x58ca65(0x239)]===0x0||(_0x2c4332[_0x58ca65(0x1cf)]===_0x58ca65(0x1bd)&&_0x1ddace['xlink:href']&&(_0x1ddace[_0x58ca65(0x1b6)]=_0x1ddace[_0x58ca65(0x1b6)]+_0x3d1254['idSuffix']),Object[_0x58ca65(0x18b)](_0x1ddace)[_0x58ca65(0x201)](function(_0x14a38a){var _0x155cce=_0x58ca65,_0x43aaf9=_0x14a38a[0x0],_0x19733a=_0x14a38a[0x1];typeof _0x19733a=='string'&&(_0x1ddace[_0x43aaf9]=_0x19733a[_0x155cce(0x182)](/url\(#(.*)\)/,'url(#$1'[_0x155cce(0x1c4)](_0x3d1254[_0x155cce(0x1c5)],')')));})),_0x1ddace;}function W(_0x5130a4,_0x132b60){var _0x45480e=_0x506a38,_0x437da0,_0x36b92c=_0x132b60[_0x45480e(0x1cc)];return!_0x36b92c||_0x36b92c['length']===0x0?_0x5130a4:_0x5130a4['tag']===_0x45480e(0x1d3)&&(!((_0x437da0=_0x5130a4['children'])===null||_0x437da0===void 0x0)&&_0x437da0['length'])?u(u({},_0x5130a4),{'children':_0x5130a4[_0x45480e(0x1ff)]['map'](function(_0x4af357){var _0x310fbd=_0x45480e;return typeof _0x4af357['attrs']['id']==_0x310fbd(0x1d9)&&_0x36b92c&&_0x36b92c[_0x310fbd(0x1f7)](_0x4af357[_0x310fbd(0x202)]['id'])?u(u({},_0x4af357),{'attrs':u(u({},_0x4af357[_0x310fbd(0x202)]),{'id':_0x4af357['attrs']['id']+_0x132b60[_0x310fbd(0x1c5)]})}):_0x4af357;})}):_0x5130a4;}function G(){var _0x12ca7b=_0x506a38;return Math[_0x12ca7b(0x230)]()[_0x12ca7b(0x1e1)](0x24)[_0x12ca7b(0x1d6)](0x2,0x8);}j[_0x506a38(0x220)]='UniverIcon';var B={'tag':_0x506a38(0x1e7),'attrs':{'xmlns':_0x506a38(0x212),'fill':_0x506a38(0x1c9),'viewBox':_0x506a38(0x226),'width':_0x506a38(0x17b),'height':_0x506a38(0x17b)},'children':[{'tag':'path','attrs':{'fill':_0x506a38(0x19b),'d':_0x506a38(0x1c6)}},{'tag':_0x506a38(0x170),'attrs':{'fill':_0x506a38(0x19b),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':'evenodd','clipRule':'evenodd'}}]},P=f[_0x506a38(0x1f3)](function(_0x53f239,_0x4b6628){var _0x3af816=_0x506a38;return f['createElement'](j,Object[_0x3af816(0x234)]({},_0x53f239,{'id':_0x3af816(0x210),'ref':_0x4b6628,'icon':B}));});P['displayName']=_0x506a38(0x1fe);var Y=Object[_0x506a38(0x1ef)],R=(_0x4fc467,_0x12f6ff,_0x387077,_0x4e8e17)=>{var _0x9b091a=_0x506a38;for(var _0x12c690=_0x4e8e17>0x1?void 0x0:_0x4e8e17?Y(_0x12f6ff,_0x387077):_0x12f6ff,_0x4eee9d=_0x4fc467[_0x9b091a(0x239)]-0x1,_0x192415;_0x4eee9d>=0x0;_0x4eee9d--)(_0x192415=_0x4fc467[_0x4eee9d])&&(_0x12c690=_0x192415(_0x12c690)||_0x12c690);return _0x12c690;},S=(_0x8e132f,_0xa68868)=>(_0x7c83fd,_0x2f957a)=>_0xa68868(_0x7c83fd,_0x2f957a,_0x8e132f);exports[_0x506a38(0x1ce)]=class extends o['RxDisposable']{constructor(_0x3a3f83,_0x94a06f,_0xacb63e){var _0x55bc43=_0x506a38;super(),v(this,_0x55bc43(0x207),new Map()),(this[_0x55bc43(0x172)]=_0x3a3f83,this['_injector']=_0x94a06f,this[_0x55bc43(0x15f)]=_0xacb63e,this[_0x55bc43(0x238)]());}async[_0x506a38(0x18e)](_0x44a602){var _0x109ce6=_0x506a38;return this[_0x109ce6(0x207)][_0x109ce6(0x17e)](_0x44a602)||await this[_0x109ce6(0x180)](_0x44a602),this[_0x109ce6(0x207)][_0x109ce6(0x1a9)](_0x44a602);}[_0x506a38(0x238)](){var _0x4c70d3=_0x506a38;this['_univerInstanceService'][_0x4c70d3(0x1dc)](o[_0x4c70d3(0x206)][_0x4c70d3(0x1b5)])[_0x4c70d3(0x183)](b['takeUntil'](this['dispose$']))[_0x4c70d3(0x19d)](async _0x55cbcd=>{var _0x382c65=_0x4c70d3;const _0x89553d=_0x55cbcd[_0x382c65(0x20b)]();this[_0x382c65(0x207)]['has'](_0x89553d)||this[_0x382c65(0x180)](_0x89553d);}),this[_0x4c70d3(0x172)][_0x4c70d3(0x20c)](o['UniverInstanceType'][_0x4c70d3(0x1b5)])[_0x4c70d3(0x183)](b['takeUntil'](this[_0x4c70d3(0x1b7)]))[_0x4c70d3(0x19d)](_0x3f9adf=>{var _0x5e92a5=_0x4c70d3;const _0x3eae62=_0x3f9adf[_0x5e92a5(0x20b)](),_0xcff4b5=this[_0x5e92a5(0x207)][_0x5e92a5(0x1a9)](_0x3eae62);_0xcff4b5==null||_0xcff4b5['dispose']();});}async[_0x506a38(0x180)](_0x212e84){var _0x4d92e2=_0x506a38;const _0x2e5e62=await this['_collabSessionService']['requireSession'](_0x212e84),_0x264390=this[_0x4d92e2(0x16f)][_0x4d92e2(0x23c)](exports[_0x4d92e2(0x184)],_0x212e84,_0x2e5e62);return _0x264390['init'](),this[_0x4d92e2(0x207)]['set'](_0x212e84,_0x264390),_0x264390;}},exports[_0x506a38(0x1ce)]=R([S(0x0,o[_0x506a38(0x1e0)]),S(0x1,o[_0x506a38(0x191)](o[_0x506a38(0x195)])),S(0x2,o[_0x506a38(0x191)](m['CollaborationSessionService']))],exports[_0x506a38(0x1ce)]);var h=(_0x3d3f9f=>(_0x3d3f9f[_0x506a38(0x160)]=_0x506a38(0x1d2),_0x3d3f9f['IDLE']=_0x506a38(0x19a),_0x3d3f9f[_0x506a38(0x1fa)]=_0x506a38(0x21f),_0x3d3f9f[_0x506a38(0x1c2)]=_0x506a38(0x1de),_0x3d3f9f[_0x506a38(0x1dd)]=_0x506a38(0x18c),_0x3d3f9f))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports['LiveShareCoordinator']=class extends o[_0x506a38(0x23a)]{constructor(_0x4dee7f,_0x3cf4ac,_0x58530a,_0x1387cb,_0x5b6a8a){var _0x10a095=_0x506a38;super(),v(this,'_status$',new D[(_0x10a095(0x1a4))](_0x10a095(0x19a))),v(this,_0x10a095(0x1f5),this[_0x10a095(0x167)][_0x10a095(0x1db)]()),v(this,_0x10a095(0x238),!0x1),v(this,'_commandDisposable',null),v(this,'_presenter',null),(this[_0x10a095(0x1ad)]=_0x4dee7f,this[_0x10a095(0x1bb)]=_0x3cf4ac,this['_configService']=_0x58530a,this['_liveShareService']=_0x1387cb,this[_0x10a095(0x227)]=_0x5b6a8a);}get[_0x506a38(0x21a)](){var _0x199c45=_0x506a38;return this['_status$'][_0x199c45(0x192)]();}[_0x506a38(0x1e4)](){var _0x1186df=_0x506a38,_0x94617;(_0x94617=this[_0x1186df(0x17f)])==null||_0x94617[_0x1186df(0x1e4)](),this[_0x1186df(0x167)]['next']('idle'),this['_status$']['complete']();}[_0x506a38(0x1ab)](){var _0xa44130=_0x506a38;this[_0xa44130(0x238)]||(this[_0xa44130(0x238)]=!0x0,this['_collabSession']['sessionStatus$'][_0xa44130(0x183)](b[_0xa44130(0x20d)](this[_0xa44130(0x1b7)]))[_0xa44130(0x19d)](_0x54d353=>{var _0x14853c=_0xa44130;switch(_0x54d353){case m[_0x14853c(0x20f)]['OFFLINE']:this['_handleOffline']();break;case m[_0x14853c(0x20f)][_0x14853c(0x1d0)]:this[_0x14853c(0x1d4)]();break;}}),this[_0xa44130(0x1bb)][_0xa44130(0x1d1)][_0xa44130(0x183)](b[_0xa44130(0x20d)](this[_0xa44130(0x1b7)]))['subscribe'](_0x4ccbd5=>{var _0xa3dc8e=_0xa44130;const {eventID:_0xa06b15}=_0x4ccbd5;switch(_0xa06b15){case _[_0xa3dc8e(0x179)][_0xa3dc8e(0x1e5)]:this['_handleNewHost'](_0x4ccbd5);break;case _['CollaborationEvent'][_0xa3dc8e(0x223)]:this[_0xa3dc8e(0x16d)](_0x4ccbd5);break;case _[_0xa3dc8e(0x179)][_0xa3dc8e(0x1c0)]:this[_0xa3dc8e(0x1a6)]();break;case _['CollaborationEvent'][_0xa3dc8e(0x204)]:this[_0xa3dc8e(0x18a)](_0x4ccbd5);break;}}));}[_0x506a38(0x1b9)](){var _0x7d56d4=_0x506a38;this[_0x7d56d4(0x1bb)][_0x7d56d4(0x20e)]({'eventID':_[_0x7d56d4(0x179)][_0x7d56d4(0x18f)],'data':{'unitID':this[_0x7d56d4(0x1ad)],'userID':this['_collabSession'][_0x7d56d4(0x189)]()}},this[_0x7d56d4(0x1ad)]);}['stopPresenting'](){var _0x91cf47=_0x506a38;this[_0x91cf47(0x21a)]===_0x91cf47(0x18c)&&(this[_0x91cf47(0x167)]['next'](_0x91cf47(0x19a)),this['_collabSession'][_0x91cf47(0x20e)]({'eventID':_[_0x91cf47(0x179)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x91cf47(0x1ad)]}},this['_unitID']));}[_0x506a38(0x218)](){var _0x40a1b6=_0x506a38;this[_0x40a1b6(0x21a)]===_0x40a1b6(0x1de)&&(this['_status$'][_0x40a1b6(0x205)](_0x40a1b6(0x21f)),this['_startFollowing']());}[_0x506a38(0x168)](){var _0x1af6b1=_0x506a38;this['_status']===_0x1af6b1(0x21f)&&this[_0x1af6b1(0x198)]();}['_handleNewHost'](_0x1a6b94){var _0x141868=_0x506a38;const {presenter:_0xb02339}=_0x1a6b94[_0x141868(0x1b4)],_0x29f8df=this[_0x141868(0x1bb)][_0x141868(0x189)]();this[_0x141868(0x224)]=_0xb02339,_0xb02339===_0x29f8df?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x141868(0x21a)]!==_0x141868(0x1de)&&(this[_0x141868(0x1a5)](),this[_0x141868(0x1a7)]());}[_0x506a38(0x22e)](){var _0x2e169a=_0x506a38;const _0x3e48bf={'eventID':_['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this[_0x2e169a(0x1bb)][_0x2e169a(0x20e)](_0x3e48bf,this[_0x2e169a(0x1ad)]);}[_0x506a38(0x1a6)](){var _0x36d3fc=_0x506a38;this['_presenter']=null,this['_status']!==_0x36d3fc(0x18c)&&this[_0x36d3fc(0x229)]();}[_0x506a38(0x18a)](_0x3ce951){var _0x1651c7=_0x506a38;if(this[_0x1651c7(0x21a)]===_0x1651c7(0x21f)&&this[_0x1651c7(0x224)]===_0x3ce951[_0x1651c7(0x1b4)][_0x1651c7(0x1a2)]){const _0x2b45ca=_[_0x1651c7(0x22d)](_0x3ce951['data'])['mutations'][_0x1651c7(0x215)]()[_0x1651c7(0x1b0)](_0x3a4f3d=>_0x3a4f3d['id']===C[_0x1651c7(0x199)]['id']);if(_0x2b45ca){const _0x5ec17c=_0x2b45ca[_0x1651c7(0x22c)]['unitId'],_0x3cf8f4=_0x2b45ca[_0x1651c7(0x22c)][_0x1651c7(0x165)]['id'];setTimeout(()=>{var _0x5a11be=_0x1651c7;this['_commandService'][_0x5a11be(0x19f)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x5ec17c,'subUnitId':_0x3cf8f4},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x419be0=_0x506a38;this[_0x419be0(0x167)]['next'](_0x419be0(0x18c));const _0x5ebf28=new Map(),_0x504aca=this[_0x419be0(0x17f)]=new o['DisposableCollection']();_0x504aca[_0x419be0(0x16c)](o[_0x419be0(0x235)](()=>{var _0x1075e7=_0x419be0;_0x5ebf28[_0x1075e7(0x201)](_0x4471ae=>_0x4471ae['complete']()),_0x5ebf28[_0x1075e7(0x21e)]();})),_0x504aca[_0x419be0(0x16c)](this[_0x419be0(0x227)]['onCommandExecuted'](_0x1ac87f=>{var _0x5b207b=_0x419be0,_0x12f379;if(_0x1ac87f['type']!==o[_0x5b207b(0x1a0)][_0x5b207b(0x228)]||!this[_0x5b207b(0x236)]['shouldShareOperation'](_0x1ac87f['id']))return;const {id:_0x4b48b8}=_0x1ac87f;let _0x13682c;_0x5ebf28[_0x5b207b(0x17e)](_0x4b48b8)?_0x13682c=_0x5ebf28[_0x5b207b(0x1a9)](_0x4b48b8):(_0x13682c=new D[(_0x5b207b(0x1e6))](),_0x5ebf28['set'](_0x4b48b8,_0x13682c),_0x13682c['pipe'](b[_0x5b207b(0x194)]((_0x12f379=this[_0x5b207b(0x1ae)][_0x5b207b(0x1f4)](Z))!=null?_0x12f379:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5b207b(0x19d)](_0xf1cfeb=>{var _0x5852e6=_0x5b207b;this[_0x5852e6(0x1bb)][_0x5852e6(0x20e)]({'eventID':_[_0x5852e6(0x179)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x5852e6(0x1ad)],'operations':{[_0xf1cfeb['id']]:{'id':_0xf1cfeb['id'],'params':JSON['stringify'](_0xf1cfeb[_0x5852e6(0x22c)])}}}},this[_0x5852e6(0x1ad)]);})),_0x13682c[_0x5b207b(0x205)](_0x1ac87f);})),this[_0x419be0(0x236)][_0x419be0(0x233)](this[_0x419be0(0x1ad)])[_0x419be0(0x201)](_0x4e043e=>this[_0x419be0(0x1bb)]['send']({'eventID':_[_0x419be0(0x179)][_0x419be0(0x223)],'data':{'unitID':this[_0x419be0(0x1ad)],'operations':{[_0x4e043e['id']]:{'id':_0x4e043e['id'],'params':JSON['stringify'](_0x4e043e[_0x419be0(0x22c)])}}}},this[_0x419be0(0x1ad)]));}[_0x506a38(0x1a5)](){var _0x11d666=_0x506a38,_0x1664d1;this[_0x11d666(0x167)][_0x11d666(0x205)](_0x11d666(0x19a)),(_0x1664d1=this[_0x11d666(0x17f)])==null||_0x1664d1[_0x11d666(0x1e4)](),this[_0x11d666(0x17f)]=null;}[_0x506a38(0x1a7)](){var _0x39f551=_0x506a38,_0xa3d5cb;(_0xa3d5cb=this['_commandDisposable'])==null||_0xa3d5cb[_0x39f551(0x1e4)](),this[_0x39f551(0x167)]['next'](_0x39f551(0x21f));}[_0x506a38(0x229)](){var _0x18fcfe=_0x506a38,_0x5f3039;this['_status$'][_0x18fcfe(0x205)](_0x18fcfe(0x19a)),(_0x5f3039=this[_0x18fcfe(0x17f)])==null||_0x5f3039[_0x18fcfe(0x1e4)](),this[_0x18fcfe(0x17f)]=null;}[_0x506a38(0x198)](){var _0x1f272b=_0x506a38,_0xda9f5;this['_status$'][_0x1f272b(0x205)](_0x1f272b(0x1de)),(_0xda9f5=this[_0x1f272b(0x17f)])==null||_0xda9f5[_0x1f272b(0x1e4)]();}[_0x506a38(0x16d)](_0x5a560c){var _0x4f1556=_0x506a38;if([_0x4f1556(0x18c),_0x4f1556(0x1de),_0x4f1556(0x1d2)]['includes'](this['_status'])||!_0x5a560c['data']['presenter']||_0x5a560c[_0x4f1556(0x1b4)][_0x4f1556(0x1c3)]===this['_collabSession'][_0x4f1556(0x189)]())return;this[_0x4f1556(0x21a)]==='idle'&&this[_0x4f1556(0x1a7)]();const _0x4f21a2=_0x5a560c[_0x4f1556(0x1b4)][_0x4f1556(0x1fd)];Object[_0x4f1556(0x1d7)](_0x4f21a2)[_0x4f1556(0x201)](_0x48a9e4=>{var _0x1e1fd0=_0x4f1556;this[_0x1e1fd0(0x227)][_0x1e1fd0(0x19f)](_0x48a9e4['id'],_0x48a9e4[_0x1e1fd0(0x22c)]?JSON[_0x1e1fd0(0x1d5)](_0x48a9e4[_0x1e1fd0(0x22c)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x13c609=_0x506a38,_0x446cc9;this['_status$']['next'](_0x13c609(0x1d2)),(_0x446cc9=this[_0x13c609(0x17f)])==null||_0x446cc9['dispose']();}[_0x506a38(0x1d4)](){var _0x311a30=_0x506a38;this['_status$'][_0x311a30(0x205)]('idle'),this[_0x311a30(0x22e)]();}},exports[_0x506a38(0x184)]=R([S(0x2,o[_0x506a38(0x1af)]),S(0x3,o[_0x506a38(0x191)](O)),S(0x4,o[_0x506a38(0x1a8)])],exports['LiveShareCoordinator']);function A(){var _0x89b8a8=_0x506a38;const _0x2a1e8c=p[_0x89b8a8(0x1cd)](exports[_0x89b8a8(0x1ce)]),_0x1015c5=p[_0x89b8a8(0x1cd)](o[_0x89b8a8(0x1e0)]),_0x55dbed=p[_0x89b8a8(0x173)](()=>_0x1015c5[_0x89b8a8(0x1f6)](o['UniverInstanceType'][_0x89b8a8(0x1b5)]),void 0x0,!0x1,[]),[_0x3d3ed9,_0x26e9e2]=f[_0x89b8a8(0x1f0)](null),[_0x2ad9da,_0x46d755]=f[_0x89b8a8(0x1f0)](h[_0x89b8a8(0x216)]),_0x1b5f89=f['useRef'](null);return f[_0x89b8a8(0x237)](()=>(_0x55dbed&&_0x2a1e8c['getLiveShareCoordinator'](_0x55dbed[_0x89b8a8(0x20b)]())[_0x89b8a8(0x164)](_0x4bfacb=>{var _0x2d531e=_0x89b8a8;_0x26e9e2(_0x4bfacb),_0x1b5f89[_0x2d531e(0x1d8)]=_0x4bfacb[_0x2d531e(0x1f5)][_0x2d531e(0x19d)](_0x16cfb2=>{_0x46d755(_0x16cfb2);});}),()=>{var _0x1fa17e=_0x89b8a8,_0x3d02b6;(_0x3d02b6=_0x1b5f89[_0x1fa17e(0x1d8)])==null||_0x3d02b6['unsubscribe'](),_0x1b5f89[_0x1fa17e(0x1d8)]=null;}),[_0x55dbed,_0x2a1e8c]),_0x3d3ed9?l['jsx'](g[_0x89b8a8(0x186)],{'align':_0x89b8a8(0x209),'disabled':_0x2ad9da===h[_0x89b8a8(0x160)],'className':_0x89b8a8(0x22b),'overlay':l['jsx'](K,{'status':_0x2ad9da,'coordinator':_0x3d3ed9}),'children':l[_0x89b8a8(0x1f2)]('button',{'className':g[_0x89b8a8(0x217)](_0x89b8a8(0x22a),{'univer-cursor-not-allowed':_0x2ad9da===h[_0x89b8a8(0x160)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2ad9da!==h[_0x89b8a8(0x160)]}),'type':_0x89b8a8(0x1aa),'children':l['jsx'](P,{'className':_0x89b8a8(0x1b2)})})}):null;}function K(_0x2e4441){var _0x5e4a85=_0x506a38;const {status:_0x19488f,coordinator:_0x29ee67}=_0x2e4441;switch(_0x19488f){case h[_0x5e4a85(0x216)]:return l[_0x5e4a85(0x1f2)](z,{'coordinator':_0x29ee67});case h[_0x5e4a85(0x1fa)]:return l[_0x5e4a85(0x1f2)](Q,{'coordinator':_0x29ee67});case h[_0x5e4a85(0x1c2)]:return l[_0x5e4a85(0x1f2)](X,{'coordinator':_0x29ee67});case h['OFFLINE']:return l[_0x5e4a85(0x1f2)](te,{});case h['PRESENTING']:return l[_0x5e4a85(0x1f2)](ee,{'coordinator':_0x29ee67});default:return null;}}function z(_0x1b7c77){var _0x31b40b=_0x506a38;const {coordinator:_0x12ba34}=_0x1b7c77;return l[_0x31b40b(0x187)](l[_0x31b40b(0x1ec)],{'children':[l[_0x31b40b(0x1f2)](_0x31b40b(0x1bf),{'className':_0x31b40b(0x1b8),'children':_0x31b40b(0x169)}),l[_0x31b40b(0x1f2)](g[_0x31b40b(0x1e9)],{'onClick':()=>_0x12ba34[_0x31b40b(0x1b9)](),'children':_0x31b40b(0x1c8)})]});}function _0x2724(_0x13b010,_0x4fd35d){var _0x14ab93=_0x14ab();return _0x2724=function(_0x2724b8,_0x406a47){_0x2724b8=_0x2724b8-0x15f;var _0xa31e16=_0x14ab93[_0x2724b8];return _0xa31e16;},_0x2724(_0x13b010,_0x4fd35d);}function Q(_0x5832bc){var _0xa39a39=_0x506a38;const {coordinator:_0x1b4a5a}=_0x5832bc;return l['jsxs'](l[_0xa39a39(0x1ec)],{'children':[l[_0xa39a39(0x1f2)](_0xa39a39(0x1bf),{'className':_0xa39a39(0x1b8),'children':_0xa39a39(0x17a)}),l[_0xa39a39(0x1f2)](g[_0xa39a39(0x1e9)],{'onClick':()=>_0x1b4a5a[_0xa39a39(0x168)](),'children':'Stop\x20following'})]});}function X(_0x409c7d){var _0x1d4e4a=_0x506a38;const {coordinator:_0x35358a}=_0x409c7d;return l[_0x1d4e4a(0x187)](l['Fragment'],{'children':[l[_0x1d4e4a(0x1f2)]('div',{'className':_0x1d4e4a(0x1b8),'children':_0x1d4e4a(0x231)}),l[_0x1d4e4a(0x1f2)](g[_0x1d4e4a(0x1e9)],{'variant':_0x1d4e4a(0x1ca),'onClick':()=>_0x35358a[_0x1d4e4a(0x218)](),'children':_0x1d4e4a(0x161)})]});}function ee(_0x4073ec){var _0x5b26ed=_0x506a38;const {coordinator:_0x2a46fb}=_0x4073ec;return l[_0x5b26ed(0x187)](l[_0x5b26ed(0x1ec)],{'children':[l[_0x5b26ed(0x1f2)](_0x5b26ed(0x1bf),{'className':_0x5b26ed(0x1b8),'children':_0x5b26ed(0x1e3)}),l[_0x5b26ed(0x1f2)](g[_0x5b26ed(0x1e9)],{'variant':'default','onClick':()=>_0x2a46fb[_0x5b26ed(0x19c)](),'children':_0x5b26ed(0x1e8)})]});}function te(){var _0x13c3fc=_0x506a38;return l[_0x13c3fc(0x1f2)](l[_0x13c3fc(0x1ec)],{'children':_0x13c3fc(0x1eb)});}var ie=Object[_0x506a38(0x1ef)],ne=(_0x20377d,_0x560cb7,_0x37641e,_0x441c85)=>{var _0x376571=_0x506a38;for(var _0x5d92cb=_0x441c85>0x1?void 0x0:_0x441c85?ie(_0x560cb7,_0x37641e):_0x560cb7,_0x25df9e=_0x20377d[_0x376571(0x239)]-0x1,_0x335a4f;_0x25df9e>=0x0;_0x25df9e--)(_0x335a4f=_0x20377d[_0x25df9e])&&(_0x5d92cb=_0x335a4f(_0x5d92cb)||_0x5d92cb);return _0x5d92cb;},L=(_0x3dc74f,_0x24fcad)=>(_0x4b0a02,_0x4d9fac)=>_0x24fcad(_0x4b0a02,_0x4d9fac,_0x3dc74f);exports[_0x506a38(0x200)]=class extends o['Disposable']{constructor(_0x5e890f,_0x410b5b){var _0x315322=_0x506a38;super(),this[_0x315322(0x16f)]=_0x5e890f,this['_uiPartsService']=_0x410b5b,this[_0x315322(0x23b)]();}[_0x506a38(0x23b)](){var _0x2e2368=_0x506a38;this['disposeWithMe'](this[_0x2e2368(0x21c)][_0x2e2368(0x1b1)](p[_0x2e2368(0x211)][_0x2e2368(0x21b)],()=>p['connectInjector'](A,this[_0x2e2368(0x16f)])));}},exports[_0x506a38(0x200)]=ne([L(0x0,o[_0x506a38(0x191)](o[_0x506a38(0x195)])),L(0x1,p[_0x506a38(0x181)])],exports['DesktopLiveShareController']);var re=Object[_0x506a38(0x20a)],se=Object[_0x506a38(0x1ef)],oe=(_0x3af9d6,_0x304f8a,_0x53aa58)=>_0x304f8a in _0x3af9d6?re(_0x3af9d6,_0x304f8a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x53aa58}):_0x3af9d6[_0x304f8a]=_0x53aa58,ae=(_0x2d585b,_0x1b4c65,_0x346248,_0x3e9e6c)=>{for(var _0x14428a=_0x3e9e6c>0x1?void 0x0:_0x3e9e6c?se(_0x1b4c65,_0x346248):_0x1b4c65,_0x2d5dd9=_0x2d585b['length']-0x1,_0x5a31fd;_0x2d5dd9>=0x0;_0x2d5dd9--)(_0x5a31fd=_0x2d585b[_0x2d5dd9])&&(_0x14428a=_0x5a31fd(_0x14428a)||_0x14428a);return _0x14428a;},N=(_0x2ff3a5,_0x33f71a)=>(_0x405ad4,_0x35993c)=>_0x33f71a(_0x405ad4,_0x35993c,_0x2ff3a5),T=(_0x3248c7,_0x45cbf0,_0x416abd)=>oe(_0x3248c7,typeof _0x45cbf0!='symbol'?_0x45cbf0+'':_0x45cbf0,_0x416abd);function _0x14ab(){var _0x2e9c77=['defs','_handleOnline','parse','substring','values','current','string','shouldShareOperation','asObservable','getTypeOfUnitAdded$','PRESENTING','not-following','function','IUniverInstanceService','toString','hasOwnProperty','You\x27re\x20presenting\x20the\x20document','dispose','LIVESHARE_NEW_HOST','Subject','svg','Stop\x20presenting','Button','1380372Gsmnxt','You\x27are\x20offline.','Fragment','SetScrollOperation','indexOf','getOwnPropertyDescriptor','useState','204wFlXUV','jsx','forwardRef','getConfig','status$','getCurrentTypeOfUnit$','includes','apply','162936bLaUJt','FOLLOWING','UniverCollaborationClientPlugin','Module','operations','LiveShareIcon','children','DesktopLiveShareController','forEach','attrs','delete','NEW_CHANGESETS','next','UniverInstanceType','_entities','63265eEJvHx','end','defineProperty','getUnitId','getTypeOfUnitDisposed$','takeUntil','send','SessionStatus','live-share-icon','BuiltInUIPart','http://www.w3.org/2000/svg','type','fill','reverse','IDLE','clsx','startFollowing','_reporters','_status','HEADER_MENU','_uiPartsService','LiveShareService','clear','following','displayName','21ixcPYy','url(#$1','LIVESHARE_OPERATION','_presenter','250ZwXeTX','0\x200\x2017\x2017','_commandService','OPERATION','_beIdle','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','params','parseProtocolChangeset','_fetchOperations','DependentOn','random','You\x27re\x20not\x20following\x20the\x20presenter','colorChannel1','getInitialStates','assign','toDisposable','_liveShareService','useEffect','_init','length','RxDisposable','_mountLiveShare','createInstance','_collabSessionService','OFFLINE','Start\x20following','45208ncDgra','759hsqZRp','then','sheet','getOwnPropertySymbols','_status$','stopFollowing','Present\x20this\x20document','pluginName','map','add','_handleOperation','Disposable','_injector','path','_config','_univerInstanceService','useObservable','UniverLiveSharePlugin','UNIVER_UNKNOWN','extend','mergeOverrideWithDependencies','merge','CollaborationEvent','You\x27re\x20following\x20the\x20presenter','1em','LiveShare','_sharedOperations','has','_commandDisposable','_startLiveShareCoordinator','IUIPartsService','replace','pipe','LiveShareCoordinator','onRendered','Dropdown','jsxs','live-share.config','getMemberID','_handleNewChangeSets','entries','presenting','prototype','getLiveShareCoordinator','LIVESHARE_REQUEST_HOST','67824OIKjvG','Inject','getValue','onStarting','throttleTime','Injector','toStringTag','createElement','_stopFollowing','InsertSheetMutation','idle','currentColor','stopPresenting','subscribe','918108KyPLzI','executeCommand','CommandType','427tlNuaD','memberID','trim','BehaviorSubject','_stopPresenting','_handleTerminate','_startFollowing','ICommandService','get','button','init','119904yfqHWe','_unitID','_configService','IConfigService','find','registerComponent','univer-size-4','registerSharedOperation','data','UNIVER_SHEET','xlink:href','dispose$','univer-mb-3\x20univer-w-full\x20univer-text-sm','tryStartPresenting','mask','_collabSession','UNIVER_LIVE_SHARE_PLUGIN','use','Plugin','div','LIVESHARE_TERMINATE','disposeWithMe','NOT_FOLLOWING','presenter','concat','idSuffix','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','setConfig','Start','none','text','call','defIds','useDependency','LiveShareController','tag','ONLINE','event$','offline'];_0x14ab=function(){return _0x2e9c77;};return _0x14ab();}const le=_0x506a38(0x1bc);exports[_0x506a38(0x174)]=class extends o[_0x506a38(0x1be)]{constructor(_0x1c5f85=x,_0x3df559,_0xda9bb1){var _0x46194e=_0x506a38;super(),this[_0x46194e(0x171)]=_0x1c5f85,this[_0x46194e(0x16f)]=_0x3df559,this[_0x46194e(0x1ae)]=_0xda9bb1;const {..._0x2bcd53}=o[_0x46194e(0x178)]({},x,this[_0x46194e(0x171)]);this[_0x46194e(0x1ae)][_0x46194e(0x1c7)]($,_0x2bcd53);}[_0x506a38(0x193)](){var _0x49f9cf=_0x506a38;o['registerDependencies'](this['_injector'],o[_0x49f9cf(0x177)]([[O],[exports['LiveShareController']],[E],[exports[_0x49f9cf(0x200)]]],this[_0x49f9cf(0x171)]['override'])),o['touchDependencies'](this[_0x49f9cf(0x16f)],[[E]]);}[_0x506a38(0x185)](){var _0x384c69=_0x506a38;o['touchDependencies'](this[_0x384c69(0x16f)],[[exports[_0x384c69(0x200)]]]);}},T(exports[_0x506a38(0x174)],_0x506a38(0x213),o[_0x506a38(0x206)][_0x506a38(0x175)]),T(exports[_0x506a38(0x174)],_0x506a38(0x16a),le),exports[_0x506a38(0x174)]=ae([o[_0x506a38(0x22f)](m[_0x506a38(0x1fb)]),N(0x1,o[_0x506a38(0x191)](o[_0x506a38(0x195)])),N(0x2,o['IConfigService'])],exports[_0x506a38(0x174)]),exports[_0x506a38(0x17c)]=A,exports[_0x506a38(0x21d)]=O,exports['LiveShareStatus']=h;
1
+ 'use strict';var _0x4ede74=_0x5890;(function(_0x533d1,_0xaa5f1){var _0x2248cf=_0x5890,_0x17e376=_0x533d1();while(!![]){try{var _0x2ff006=-parseInt(_0x2248cf(0x1ee))/0x1+-parseInt(_0x2248cf(0x241))/0x2+parseInt(_0x2248cf(0x202))/0x3+parseInt(_0x2248cf(0x1d3))/0x4+parseInt(_0x2248cf(0x1db))/0x5*(-parseInt(_0x2248cf(0x243))/0x6)+parseInt(_0x2248cf(0x26c))/0x7+parseInt(_0x2248cf(0x1e5))/0x8*(-parseInt(_0x2248cf(0x24e))/0x9);if(_0x2ff006===_0xaa5f1)break;else _0x17e376['push'](_0x17e376['shift']());}catch(_0x33c8db){_0x17e376['push'](_0x17e376['shift']());}}}(_0x46ef,0x92de5));var U=Object[_0x4ede74(0x1f9)],F=(_0x4cd7a1,_0x4bc64c,_0x55a10d)=>_0x4bc64c in _0x4cd7a1?U(_0x4cd7a1,_0x4bc64c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55a10d}):_0x4cd7a1[_0x4bc64c]=_0x55a10d,v=(_0x2dfc0c,_0x22286d,_0x2a15ec)=>F(_0x2dfc0c,typeof _0x22286d!='symbol'?_0x22286d+'':_0x22286d,_0x2a15ec);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x4ede74(0x1d4)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$=_0x4ede74(0x278),x={};class O extends o['Disposable']{constructor(){super(...arguments),v(this,'_sharedOperations',new Set()),v(this,'_reporters',new Set());}['registerSharedOperation'](_0x26cc8a){var _0x274150=_0x4ede74;return this[_0x274150(0x1b9)][_0x274150(0x255)](_0x26cc8a),o['toDisposable'](()=>this[_0x274150(0x1b9)][_0x274150(0x1a5)](_0x26cc8a));}[_0x4ede74(0x1bd)](_0x26999d){var _0x38ce0a=_0x4ede74;return this[_0x38ce0a(0x1cf)]['add'](_0x26999d),o['toDisposable'](()=>this[_0x38ce0a(0x1cf)][_0x38ce0a(0x1a5)](_0x26999d));}['shouldShareOperation'](_0x21b2b0){var _0x516db5=_0x4ede74;return this[_0x516db5(0x1b9)][_0x516db5(0x1bf)](_0x21b2b0);}[_0x4ede74(0x231)](_0x5bd9bf){var _0x3545d6=_0x4ede74;return Array['from'](this[_0x3545d6(0x1cf)])[_0x3545d6(0x23e)](_0xed2bf4=>_0xed2bf4(_0x5bd9bf));}}var H=Object[_0x4ede74(0x27a)],V=(_0x3682f1,_0x380a4f,_0x23741c,_0x573fac)=>{var _0x530868=_0x4ede74;for(var _0x13a513=_0x573fac>0x1?void 0x0:_0x573fac?H(_0x380a4f,_0x23741c):_0x380a4f,_0x2b7e9b=_0x3682f1[_0x530868(0x1a2)]-0x1,_0x5f51d9;_0x2b7e9b>=0x0;_0x2b7e9b--)(_0x5f51d9=_0x3682f1[_0x2b7e9b])&&(_0x13a513=_0x5f51d9(_0x13a513)||_0x13a513);return _0x13a513;},k=(_0x4ef7ad,_0x440022)=>(_0x42d678,_0x51c432)=>_0x440022(_0x42d678,_0x51c432,_0x4ef7ad);let E=class extends o[_0x4ede74(0x1af)]{constructor(_0x289602){var _0x386f3b=_0x4ede74;super(),this[_0x386f3b(0x209)]=_0x289602,this[_0x386f3b(0x272)]();}['_init'](){var _0xe4e60b=_0x4ede74;[w[_0xe4e60b(0x1ce)]['id'],w['SetScrollOperation']['id'],C[_0xe4e60b(0x276)]['id']][_0xe4e60b(0x219)](_0x386d95=>{var _0x21074e=_0xe4e60b;this['disposeWithMe'](this[_0x21074e(0x209)][_0x21074e(0x1f5)](_0x386d95));});}};E=V([k(0x0,o[_0x4ede74(0x1e4)](O))],E);var u=function(){var _0x55e0b7=_0x4ede74;return u=Object[_0x55e0b7(0x23f)]||function(_0x50e35f){var _0x478a5c=_0x55e0b7;for(var _0x3836d6,_0x3150e4=0x1,_0x3bcd67=arguments['length'];_0x3150e4<_0x3bcd67;_0x3150e4++){_0x3836d6=arguments[_0x3150e4];for(var _0x58e32e in _0x3836d6)Object['prototype'][_0x478a5c(0x256)]['call'](_0x3836d6,_0x58e32e)&&(_0x50e35f[_0x58e32e]=_0x3836d6[_0x58e32e]);}return _0x50e35f;},u[_0x55e0b7(0x270)](this,arguments);},M=function(_0x38cebd,_0x196b5e){var _0x56058b=_0x4ede74,_0xa8878f={};for(var _0x48dfa2 in _0x38cebd)Object[_0x56058b(0x1d9)][_0x56058b(0x256)][_0x56058b(0x244)](_0x38cebd,_0x48dfa2)&&_0x196b5e[_0x56058b(0x215)](_0x48dfa2)<0x0&&(_0xa8878f[_0x48dfa2]=_0x38cebd[_0x48dfa2]);if(_0x38cebd!=null&&typeof Object[_0x56058b(0x25a)]=='function'){for(var _0x2dc32a=0x0,_0x48dfa2=Object['getOwnPropertySymbols'](_0x38cebd);_0x2dc32a<_0x48dfa2[_0x56058b(0x1a2)];_0x2dc32a++)_0x196b5e[_0x56058b(0x215)](_0x48dfa2[_0x2dc32a])<0x0&&Object[_0x56058b(0x1d9)]['propertyIsEnumerable']['call'](_0x38cebd,_0x48dfa2[_0x2dc32a])&&(_0xa8878f[_0x48dfa2[_0x2dc32a]]=_0x38cebd[_0x48dfa2[_0x2dc32a]]);}return _0xa8878f;},j=f[_0x4ede74(0x1dd)](function(_0x6aaf60,_0x387486){var _0x2d2563=_0x4ede74,_0x1611ba=_0x6aaf60['icon'],_0x21b17a=_0x6aaf60['id'],_0xef0534=_0x6aaf60[_0x2d2563(0x208)],_0xc1eb9d=_0x6aaf60[_0x2d2563(0x23b)],_0xf76a6e=M(_0x6aaf60,[_0x2d2563(0x1c6),'id','className',_0x2d2563(0x23b)]),_0x1ad59f=_0x2d2563(0x203)[_0x2d2563(0x20e)](_0x21b17a,'\x20')['concat'](_0xef0534||'')['trim'](),_0xd64903=f[_0x2d2563(0x200)]('_'['concat'](G()));return y(_0x1611ba,''[_0x2d2563(0x20e)](_0x21b17a),{'defIds':_0x1611ba[_0x2d2563(0x223)],'idSuffix':_0xd64903[_0x2d2563(0x211)]},u({'ref':_0x387486,'className':_0x1ad59f},_0xf76a6e),_0xc1eb9d);});function y(_0x3b2f02,_0x318785,_0x42e3e4,_0x40e1ea,_0x4f07ba){var _0x355237=_0x4ede74;return f[_0x355237(0x254)](_0x3b2f02['tag'],u(u({'key':_0x318785},q(_0x3b2f02,_0x42e3e4,_0x4f07ba)),_0x40e1ea),(W(_0x3b2f02,_0x42e3e4)[_0x355237(0x1bb)]||[])[_0x355237(0x23e)](function(_0x1f9d9e,_0x8b7f20){var _0x22d053=_0x355237;return y(_0x1f9d9e,''['concat'](_0x318785,'-')[_0x22d053(0x20e)](_0x3b2f02[_0x22d053(0x1c2)],'-')['concat'](_0x8b7f20),_0x42e3e4,void 0x0,_0x4f07ba);}));}function q(_0x2f4181,_0xf921e1,_0x234fd7){var _0x5d5a5a=_0x4ede74,_0x3a8d63=u({},_0x2f4181[_0x5d5a5a(0x1fe)]);_0x234fd7!=null&&_0x234fd7[_0x5d5a5a(0x1fa)]&&_0x3a8d63[_0x5d5a5a(0x24f)]===_0x5d5a5a(0x1fa)&&(_0x3a8d63[_0x5d5a5a(0x24f)]=_0x234fd7[_0x5d5a5a(0x1fa)]),_0x2f4181[_0x5d5a5a(0x1c2)]==='mask'&&_0x3a8d63['id']&&(_0x3a8d63['id']=_0x3a8d63['id']+_0xf921e1[_0x5d5a5a(0x1a1)]),Object['entries'](_0x3a8d63)['forEach'](function(_0x564124){var _0x239db8=_0x5d5a5a,_0x36d36b=_0x564124[0x0],_0x3f6c6d=_0x564124[0x1];_0x36d36b===_0x239db8(0x22e)&&typeof _0x3f6c6d==_0x239db8(0x226)&&(_0x3a8d63[_0x36d36b]=_0x3f6c6d['replace'](/url\(#(.*)\)/,_0x239db8(0x1cb)['concat'](_0xf921e1[_0x239db8(0x1a1)],')')));});var _0x1524f3=_0xf921e1['defIds'];return!_0x1524f3||_0x1524f3[_0x5d5a5a(0x1a2)]===0x0||(_0x2f4181[_0x5d5a5a(0x1c2)]==='use'&&_0x3a8d63['xlink:href']&&(_0x3a8d63[_0x5d5a5a(0x1f7)]=_0x3a8d63['xlink:href']+_0xf921e1[_0x5d5a5a(0x1a1)]),Object[_0x5d5a5a(0x1c7)](_0x3a8d63)[_0x5d5a5a(0x219)](function(_0xe48586){var _0x5eb3ef=_0x5d5a5a,_0x477054=_0xe48586[0x0],_0x3beb4c=_0xe48586[0x1];typeof _0x3beb4c==_0x5eb3ef(0x226)&&(_0x3a8d63[_0x477054]=_0x3beb4c['replace'](/url\(#(.*)\)/,_0x5eb3ef(0x1cb)[_0x5eb3ef(0x20e)](_0xf921e1[_0x5eb3ef(0x1a1)],')')));})),_0x3a8d63;}function W(_0x28269f,_0x5f3aa1){var _0x422293=_0x4ede74,_0x278edc,_0x4c4cbf=_0x5f3aa1['defIds'];return!_0x4c4cbf||_0x4c4cbf[_0x422293(0x1a2)]===0x0?_0x28269f:_0x28269f[_0x422293(0x1c2)]===_0x422293(0x1c4)&&(!((_0x278edc=_0x28269f[_0x422293(0x1bb)])===null||_0x278edc===void 0x0)&&_0x278edc[_0x422293(0x1a2)])?u(u({},_0x28269f),{'children':_0x28269f[_0x422293(0x1bb)][_0x422293(0x23e)](function(_0x29b422){var _0x440b2d=_0x422293;return typeof _0x29b422[_0x440b2d(0x1fe)]['id']==_0x440b2d(0x226)&&_0x4c4cbf&&_0x4c4cbf['includes'](_0x29b422[_0x440b2d(0x1fe)]['id'])?u(u({},_0x29b422),{'attrs':u(u({},_0x29b422[_0x440b2d(0x1fe)]),{'id':_0x29b422[_0x440b2d(0x1fe)]['id']+_0x5f3aa1['idSuffix']})}):_0x29b422;})}):_0x28269f;}function G(){var _0xce7d9=_0x4ede74;return Math[_0xce7d9(0x1a8)]()['toString'](0x24)[_0xce7d9(0x1ad)](0x2,0x8);}j[_0x4ede74(0x22d)]=_0x4ede74(0x273);var B={'tag':_0x4ede74(0x221),'attrs':{'xmlns':_0x4ede74(0x265),'fill':'none','viewBox':_0x4ede74(0x1d8),'width':_0x4ede74(0x1ea),'height':_0x4ede74(0x1ea)},'children':[{'tag':'path','attrs':{'fill':_0x4ede74(0x1c3),'d':_0x4ede74(0x23c)}},{'tag':_0x4ede74(0x228),'attrs':{'fill':_0x4ede74(0x1c3),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x4ede74(0x1bc),'clipRule':_0x4ede74(0x1bc)}}]},P=f['forwardRef'](function(_0x584479,_0x36939b){var _0x2f6a99=_0x4ede74;return f[_0x2f6a99(0x254)](j,Object[_0x2f6a99(0x23f)]({},_0x584479,{'id':_0x2f6a99(0x26e),'ref':_0x36939b,'icon':B}));});P[_0x4ede74(0x22d)]='LiveShareIcon';var Y=Object[_0x4ede74(0x27a)],R=(_0x1750b8,_0x3432df,_0x57105f,_0x5a60c8)=>{var _0x192739=_0x4ede74;for(var _0x4d858a=_0x5a60c8>0x1?void 0x0:_0x5a60c8?Y(_0x3432df,_0x57105f):_0x3432df,_0x2e7db0=_0x1750b8[_0x192739(0x1a2)]-0x1,_0x4c1697;_0x2e7db0>=0x0;_0x2e7db0--)(_0x4c1697=_0x1750b8[_0x2e7db0])&&(_0x4d858a=_0x4c1697(_0x4d858a)||_0x4d858a);return _0x4d858a;},S=(_0x331527,_0x25b4ca)=>(_0x3e7255,_0x1ea7e3)=>_0x25b4ca(_0x3e7255,_0x1ea7e3,_0x331527);exports['LiveShareController']=class extends o['RxDisposable']{constructor(_0x49621a,_0x1e3bb3,_0x3c7086){var _0x5d3966=_0x4ede74;super(),v(this,_0x5d3966(0x1f3),new Map()),(this[_0x5d3966(0x260)]=_0x49621a,this['_injector']=_0x1e3bb3,this[_0x5d3966(0x1d1)]=_0x3c7086,this[_0x5d3966(0x272)]());}async['getLiveShareCoordinator'](_0x582fca){var _0x20ee72=_0x4ede74;return this[_0x20ee72(0x1f3)][_0x20ee72(0x1bf)](_0x582fca)||await this['_startLiveShareCoordinator'](_0x582fca),this['_entities'][_0x20ee72(0x250)](_0x582fca);}[_0x4ede74(0x272)](){var _0x36a27d=_0x4ede74;this[_0x36a27d(0x260)][_0x36a27d(0x251)](o['UniverInstanceType'][_0x36a27d(0x259)])[_0x36a27d(0x26d)](b['takeUntil'](this[_0x36a27d(0x1b5)]))[_0x36a27d(0x1e6)](async _0xbe34c6=>{var _0x52f1bc=_0x36a27d;const _0x125d97=_0xbe34c6[_0x52f1bc(0x1f6)]();this[_0x52f1bc(0x1f3)][_0x52f1bc(0x1bf)](_0x125d97)||this[_0x52f1bc(0x23a)](_0x125d97);}),this[_0x36a27d(0x260)]['getTypeOfUnitDisposed$'](o[_0x36a27d(0x1dc)][_0x36a27d(0x259)])['pipe'](b[_0x36a27d(0x1e7)](this[_0x36a27d(0x1b5)]))['subscribe'](_0x130927=>{var _0x2da569=_0x36a27d;const _0x30ac16=_0x130927['getUnitId'](),_0x5189ab=this[_0x2da569(0x1f3)]['get'](_0x30ac16);_0x5189ab==null||_0x5189ab[_0x2da569(0x258)]();});}async[_0x4ede74(0x23a)](_0x53b383){var _0x2540df=_0x4ede74;const _0xce7d7c=await this[_0x2540df(0x1d1)][_0x2540df(0x1c1)](_0x53b383),_0x4a3173=this['_injector'][_0x2540df(0x24a)](exports[_0x2540df(0x201)],_0x53b383,_0xce7d7c);return _0x4a3173[_0x2540df(0x1be)](),this[_0x2540df(0x1f3)][_0x2540df(0x21e)](_0x53b383,_0x4a3173),_0x4a3173;}},exports[_0x4ede74(0x22a)]=R([S(0x0,o[_0x4ede74(0x1d6)]),S(0x1,o[_0x4ede74(0x1e4)](o[_0x4ede74(0x248)])),S(0x2,o[_0x4ede74(0x1e4)](m[_0x4ede74(0x207)]))],exports['LiveShareController']);var h=(_0x5db1ba=>(_0x5db1ba[_0x4ede74(0x1a3)]=_0x4ede74(0x274),_0x5db1ba[_0x4ede74(0x1a4)]=_0x4ede74(0x21b),_0x5db1ba['FOLLOWING']=_0x4ede74(0x1ac),_0x5db1ba[_0x4ede74(0x236)]=_0x4ede74(0x1fc),_0x5db1ba[_0x4ede74(0x252)]='presenting',_0x5db1ba))(h||{});const Z=_0x4ede74(0x1e3),J=0xc8;exports['LiveShareCoordinator']=class extends o[_0x4ede74(0x20a)]{constructor(_0x490af7,_0x3932a7,_0x17b2bc,_0x5eae9b,_0x2da737){var _0x1926bb=_0x4ede74;super(),v(this,_0x1926bb(0x214),new D[(_0x1926bb(0x23d))](_0x1926bb(0x21b))),v(this,_0x1926bb(0x1b6),this[_0x1926bb(0x214)][_0x1926bb(0x277)]()),v(this,_0x1926bb(0x272),!0x1),v(this,_0x1926bb(0x268),null),v(this,'_presenter',null),(this[_0x1926bb(0x25c)]=_0x490af7,this[_0x1926bb(0x216)]=_0x3932a7,this[_0x1926bb(0x27b)]=_0x17b2bc,this[_0x1926bb(0x209)]=_0x5eae9b,this[_0x1926bb(0x1d2)]=_0x2da737);}get[_0x4ede74(0x20b)](){var _0x298e8b=_0x4ede74;return this[_0x298e8b(0x214)][_0x298e8b(0x245)]();}['dispose'](){var _0x354e3b=_0x4ede74,_0x4ae585;(_0x4ae585=this[_0x354e3b(0x268)])==null||_0x4ae585[_0x354e3b(0x258)](),this[_0x354e3b(0x214)][_0x354e3b(0x275)](_0x354e3b(0x21b)),this[_0x354e3b(0x214)][_0x354e3b(0x1f2)]();}[_0x4ede74(0x1be)](){var _0x16034d=_0x4ede74;this[_0x16034d(0x272)]||(this['_init']=!0x0,this[_0x16034d(0x216)]['sessionStatus$'][_0x16034d(0x26d)](b['takeUntil'](this[_0x16034d(0x1b5)]))['subscribe'](_0x35016d=>{var _0x30b0be=_0x16034d;switch(_0x35016d){case m[_0x30b0be(0x225)][_0x30b0be(0x1a3)]:this[_0x30b0be(0x1ef)]();break;case m[_0x30b0be(0x225)][_0x30b0be(0x1ca)]:this[_0x30b0be(0x1ab)]();break;}}),this['_collabSession'][_0x16034d(0x24c)]['pipe'](b[_0x16034d(0x1e7)](this[_0x16034d(0x1b5)]))['subscribe'](_0x22dd43=>{var _0x18f1d8=_0x16034d;const {eventID:_0x4a1479}=_0x22dd43;switch(_0x4a1479){case _[_0x18f1d8(0x1e1)][_0x18f1d8(0x269)]:this[_0x18f1d8(0x26a)](_0x22dd43);break;case _[_0x18f1d8(0x1e1)][_0x18f1d8(0x1ba)]:this[_0x18f1d8(0x20c)](_0x22dd43);break;case _[_0x18f1d8(0x1e1)][_0x18f1d8(0x235)]:this[_0x18f1d8(0x217)]();break;case _[_0x18f1d8(0x1e1)][_0x18f1d8(0x240)]:this[_0x18f1d8(0x227)](_0x22dd43);break;}}));}[_0x4ede74(0x1f8)](){var _0x5cf273=_0x4ede74;this[_0x5cf273(0x216)]['send']({'eventID':_['CollaborationEvent'][_0x5cf273(0x230)],'data':{'unitID':this['_unitID'],'userID':this[_0x5cf273(0x216)][_0x5cf273(0x20d)]()}},this[_0x5cf273(0x25c)]);}[_0x4ede74(0x21c)](){var _0x1112a5=_0x4ede74;this[_0x1112a5(0x20b)]===_0x1112a5(0x1ed)&&(this[_0x1112a5(0x214)][_0x1112a5(0x275)](_0x1112a5(0x21b)),this[_0x1112a5(0x216)][_0x1112a5(0x1a7)]({'eventID':_[_0x1112a5(0x1e1)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1112a5(0x25c)]}},this[_0x1112a5(0x25c)]));}[_0x4ede74(0x1fd)](){var _0x4f6614=_0x4ede74;this[_0x4f6614(0x20b)]===_0x4f6614(0x1fc)&&(this['_status$'][_0x4f6614(0x275)](_0x4f6614(0x1ac)),this[_0x4f6614(0x1b1)]());}[_0x4ede74(0x1df)](){var _0x19eb3d=_0x4ede74;this[_0x19eb3d(0x20b)]===_0x19eb3d(0x1ac)&&this['_stopFollowing']();}[_0x4ede74(0x26a)](_0x1f4829){var _0x4b8041=_0x4ede74;const {presenter:_0x760213}=_0x1f4829[_0x4b8041(0x233)],_0x41602e=this['_collabSession'][_0x4b8041(0x20d)]();this[_0x4b8041(0x25b)]=_0x760213,_0x760213===_0x41602e?(this[_0x4b8041(0x279)](),this[_0x4b8041(0x246)]()):this[_0x4b8041(0x20b)]!==_0x4b8041(0x1fc)&&(this[_0x4b8041(0x1a6)](),this[_0x4b8041(0x1b1)]());}['_fetchOperations'](){var _0x1700da=_0x4ede74;const _0x40c9a6={'eventID':_['CollaborationEvent'][_0x1700da(0x205)]};this['_collabSession'][_0x1700da(0x1a7)](_0x40c9a6,this[_0x1700da(0x25c)]);}[_0x4ede74(0x217)](){var _0x48f135=_0x4ede74;this[_0x48f135(0x25b)]=null,this[_0x48f135(0x20b)]!==_0x48f135(0x1ed)&&this[_0x48f135(0x212)]();}['_handleNewChangeSets'](_0x8b903b){var _0x31df4a=_0x4ede74;if(this[_0x31df4a(0x20b)]===_0x31df4a(0x1ac)&&this['_presenter']===_0x8b903b[_0x31df4a(0x233)][_0x31df4a(0x1c9)]){const _0x1ecc91=_[_0x31df4a(0x21f)](_0x8b903b[_0x31df4a(0x233)])['mutations']['reverse']()['find'](_0x39619d=>_0x39619d['id']===C[_0x31df4a(0x1aa)]['id']);if(_0x1ecc91){const _0x309296=_0x1ecc91[_0x31df4a(0x271)][_0x31df4a(0x249)],_0x41c20f=_0x1ecc91[_0x31df4a(0x271)]['sheet']['id'];setTimeout(()=>{var _0x5c88d8=_0x31df4a;this[_0x5c88d8(0x1d2)]['executeCommand'](C[_0x5c88d8(0x276)]['id'],{'unitId':_0x309296,'subUnitId':_0x41c20f},{'fromCollab':!0x0});});}}}[_0x4ede74(0x246)](){var _0x29ac05=_0x4ede74;this[_0x29ac05(0x214)][_0x29ac05(0x275)](_0x29ac05(0x1ed));const _0xf7371f=new Map(),_0x3a8732=this['_commandDisposable']=new o[(_0x29ac05(0x218))]();_0x3a8732[_0x29ac05(0x255)](o[_0x29ac05(0x232)](()=>{var _0x5d5e0f=_0x29ac05;_0xf7371f[_0x5d5e0f(0x219)](_0x426bb3=>_0x426bb3[_0x5d5e0f(0x1f2)]()),_0xf7371f[_0x5d5e0f(0x22c)]();})),_0x3a8732[_0x29ac05(0x255)](this['_commandService'][_0x29ac05(0x222)](_0x265a4d=>{var _0x385704=_0x29ac05,_0x558019;if(_0x265a4d[_0x385704(0x1eb)]!==o[_0x385704(0x210)]['OPERATION']||!this['_liveShareService'][_0x385704(0x229)](_0x265a4d['id']))return;const {id:_0x4f0320}=_0x265a4d;let _0x135be9;_0xf7371f[_0x385704(0x1bf)](_0x4f0320)?_0x135be9=_0xf7371f['get'](_0x4f0320):(_0x135be9=new D[(_0x385704(0x1b7))](),_0xf7371f[_0x385704(0x21e)](_0x4f0320,_0x135be9),_0x135be9[_0x385704(0x26d)](b['throttleTime']((_0x558019=this[_0x385704(0x27b)]['getConfig'](Z))!=null?_0x558019:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x385704(0x1e6)](_0x20220a=>{var _0x1a86bf=_0x385704;this[_0x1a86bf(0x216)][_0x1a86bf(0x1a7)]({'eventID':_[_0x1a86bf(0x1e1)][_0x1a86bf(0x1ba)],'data':{'unitID':this[_0x1a86bf(0x25c)],'operations':{[_0x20220a['id']]:{'id':_0x20220a['id'],'params':JSON[_0x1a86bf(0x1e2)](_0x20220a[_0x1a86bf(0x271)])}}}},this[_0x1a86bf(0x25c)]);})),_0x135be9[_0x385704(0x275)](_0x265a4d);})),this[_0x29ac05(0x209)][_0x29ac05(0x231)](this['_unitID'])[_0x29ac05(0x219)](_0x46a408=>this[_0x29ac05(0x216)][_0x29ac05(0x1a7)]({'eventID':_[_0x29ac05(0x1e1)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x29ac05(0x25c)],'operations':{[_0x46a408['id']]:{'id':_0x46a408['id'],'params':JSON[_0x29ac05(0x1e2)](_0x46a408[_0x29ac05(0x271)])}}}},this[_0x29ac05(0x25c)]));}[_0x4ede74(0x1a6)](){var _0x562257=_0x4ede74,_0x565120;this['_status$'][_0x562257(0x275)](_0x562257(0x21b)),(_0x565120=this['_commandDisposable'])==null||_0x565120[_0x562257(0x258)](),this['_commandDisposable']=null;}[_0x4ede74(0x1b1)](){var _0x1b9f41=_0x4ede74,_0x171ec6;(_0x171ec6=this[_0x1b9f41(0x268)])==null||_0x171ec6['dispose'](),this[_0x1b9f41(0x214)][_0x1b9f41(0x275)](_0x1b9f41(0x1ac));}[_0x4ede74(0x212)](){var _0xd8973e=_0x4ede74,_0x2edaa4;this['_status$'][_0xd8973e(0x275)]('idle'),(_0x2edaa4=this['_commandDisposable'])==null||_0x2edaa4[_0xd8973e(0x258)](),this[_0xd8973e(0x268)]=null;}[_0x4ede74(0x279)](){var _0x1271bf=_0x4ede74,_0x47ead9;this[_0x1271bf(0x214)][_0x1271bf(0x275)](_0x1271bf(0x1fc)),(_0x47ead9=this[_0x1271bf(0x268)])==null||_0x47ead9[_0x1271bf(0x258)]();}[_0x4ede74(0x20c)](_0x5f269e){var _0x3e3ee1=_0x4ede74;if(['presenting',_0x3e3ee1(0x1fc),_0x3e3ee1(0x274)][_0x3e3ee1(0x1b4)](this[_0x3e3ee1(0x20b)])||!_0x5f269e[_0x3e3ee1(0x233)][_0x3e3ee1(0x1de)]||_0x5f269e['data']['presenter']===this[_0x3e3ee1(0x216)][_0x3e3ee1(0x20d)]())return;this[_0x3e3ee1(0x20b)]===_0x3e3ee1(0x21b)&&this['_startFollowing']();const _0x2aa515=_0x5f269e[_0x3e3ee1(0x233)]['operations'];Object[_0x3e3ee1(0x220)](_0x2aa515)['forEach'](_0x2e0666=>{var _0x3a1724=_0x3e3ee1;this['_commandService'][_0x3a1724(0x1f4)](_0x2e0666['id'],_0x2e0666[_0x3a1724(0x271)]?JSON[_0x3a1724(0x1b0)](_0x2e0666[_0x3a1724(0x271)]):null,{'fromCollab':!0x0});});}[_0x4ede74(0x1ef)](){var _0x1efac8=_0x4ede74,_0x24108c;this[_0x1efac8(0x214)][_0x1efac8(0x275)]('offline'),(_0x24108c=this[_0x1efac8(0x268)])==null||_0x24108c['dispose']();}[_0x4ede74(0x1ab)](){var _0x4aebb1=_0x4ede74;this[_0x4aebb1(0x214)]['next'](_0x4aebb1(0x21b)),this['_fetchOperations']();}},exports[_0x4ede74(0x201)]=R([S(0x2,o[_0x4ede74(0x1ec)]),S(0x3,o[_0x4ede74(0x1e4)](O)),S(0x4,o['ICommandService'])],exports[_0x4ede74(0x201)]);function _0x46ef(){var _0x167827=['LIVESHARE_OPERATION','children','evenodd','registerInitialStateReporter','init','has','UNIVER_UNKNOWN','requireSession','tag','currentColor','defs','BuiltInUIPart','icon','entries','DesktopLiveShareController','memberID','ONLINE','url(#$1','_config','getLiveShareCoordinator','SetZoomRatioOperation','_reporters','connectInjector','_collabSessionService','_commandService','3693852gXzzeE','Module','registerComponent','IUniverInstanceService','LiveShare','0\x200\x2017\x2017','prototype','touchDependencies','78310JHycrl','UniverInstanceType','forwardRef','presenter','stopFollowing','IUIPartsService','CollaborationEvent','stringify','SAME_OPERATION_SHARE_INTERVAL','Inject','8968mrTxeX','subscribe','takeUntil','HEADER_MENU','jsxs','1em','type','IConfigService','presenting','456721GDgIur','_handleOffline','LiveShareStatus','useState','complete','_entities','executeCommand','registerSharedOperation','getUnitId','xlink:href','tryStartPresenting','defineProperty','colorChannel1','end','not-following','startFollowing','attrs','clsx','useRef','LiveShareCoordinator','2474427nTettY','univerjs-icon\x20univerjs-icon-','pluginName','LIVESHARE_FETCH_OPERATIONS','Present\x20this\x20document','CollaborationSessionService','className','_liveShareService','RxDisposable','_status','_handleOperation','getMemberID','concat','_mountLiveShare','CommandType','current','_beIdle','Fragment','_status$','indexOf','_collabSession','_handleTerminate','DisposableCollection','forEach','default','idle','stopPresenting','setConfig','set','parseProtocolChangeset','values','svg','onCommandExecuted','defIds','text','SessionStatus','string','_handleNewChangeSets','path','shouldShareOperation','LiveShareController','useDependency','clear','displayName','mask','onStarting','LIVESHARE_REQUEST_HOST','getInitialStates','toDisposable','data','mergeOverrideWithDependencies','LIVESHARE_TERMINATE','NOT_FOLLOWING','Dropdown','registerDependencies','useObservable','_startLiveShareCoordinator','extend','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','BehaviorSubject','map','assign','NEW_CHANGESETS','2227062mdRRTs','Stop\x20presenting','54rafABR','call','getValue','_startPresenting','UniverLiveSharePlugin','Injector','unitId','createInstance','DependentOn','event$','univer-mb-3\x20univer-w-full\x20univer-text-sm','531EODFUk','fill','get','getTypeOfUnitAdded$','PRESENTING','Plugin','createElement','add','hasOwnProperty','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','dispose','UNIVER_SHEET','getOwnPropertySymbols','_presenter','_unitID','UNIVER_LIVE_SHARE_PLUGIN','unsubscribe','getCurrentTypeOfUnit$','_univerInstanceService','Button','UniverCollaborationClientPlugin','div','You\x27re\x20following\x20the\x20presenter','http://www.w3.org/2000/svg','override','Start','_commandDisposable','LIVESHARE_NEW_HOST','_handleNewHost','button','4414550csfXJu','pipe','live-share-icon','You\x27re\x20presenting\x20the\x20document','apply','params','_init','UniverIcon','offline','next','SetWorksheetActiveOperation','asObservable','live-share.config','_stopFollowing','getOwnPropertyDescriptor','_configService','idSuffix','length','OFFLINE','IDLE','delete','_stopPresenting','send','random','merge','InsertSheetMutation','_handleOnline','following','substring','jsx','Disposable','parse','_startFollowing','useEffect','_uiPartsService','includes','dispose$','status$','Subject','_injector','_sharedOperations'];_0x46ef=function(){return _0x167827;};return _0x46ef();}function _0x5890(_0x791344,_0x4df684){var _0x46efda=_0x46ef();return _0x5890=function(_0x58901b,_0x2d8d52){_0x58901b=_0x58901b-0x1a1;var _0x3b5b2e=_0x46efda[_0x58901b];return _0x3b5b2e;},_0x5890(_0x791344,_0x4df684);}function A(){var _0x2b43ae=_0x4ede74;const _0x1ebf21=p['useDependency'](exports[_0x2b43ae(0x22a)]),_0x4e5bc1=p[_0x2b43ae(0x22b)](o['IUniverInstanceService']),_0x5f2a05=p[_0x2b43ae(0x239)](()=>_0x4e5bc1[_0x2b43ae(0x25f)](o[_0x2b43ae(0x1dc)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x41cbc6,_0x4b061f]=f[_0x2b43ae(0x1f1)](null),[_0x1b7a95,_0x2e67b2]=f[_0x2b43ae(0x1f1)](h['IDLE']),_0x326504=f[_0x2b43ae(0x200)](null);return f[_0x2b43ae(0x1b2)](()=>(_0x5f2a05&&_0x1ebf21[_0x2b43ae(0x1cd)](_0x5f2a05[_0x2b43ae(0x1f6)]())['then'](_0x57b941=>{var _0x514bae=_0x2b43ae;_0x4b061f(_0x57b941),_0x326504[_0x514bae(0x211)]=_0x57b941[_0x514bae(0x1b6)][_0x514bae(0x1e6)](_0x24f230=>{_0x2e67b2(_0x24f230);});}),()=>{var _0x46ad7c=_0x2b43ae,_0x399812;(_0x399812=_0x326504[_0x46ad7c(0x211)])==null||_0x399812[_0x46ad7c(0x25e)](),_0x326504[_0x46ad7c(0x211)]=null;}),[_0x5f2a05,_0x1ebf21]),_0x41cbc6?l[_0x2b43ae(0x1ae)](g[_0x2b43ae(0x237)],{'align':_0x2b43ae(0x1fb),'disabled':_0x1b7a95===h[_0x2b43ae(0x1a3)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x2b43ae(0x1ae)](K,{'status':_0x1b7a95,'coordinator':_0x41cbc6}),'children':l['jsx'](_0x2b43ae(0x26b),{'className':g[_0x2b43ae(0x1ff)](_0x2b43ae(0x257),{'univer-cursor-not-allowed':_0x1b7a95===h[_0x2b43ae(0x1a3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1b7a95!==h[_0x2b43ae(0x1a3)]}),'type':'button','children':l[_0x2b43ae(0x1ae)](P,{'className':'univer-size-4'})})}):null;}function K(_0x43e0ed){var _0xdba310=_0x4ede74;const {status:_0x481b09,coordinator:_0x4b32b0}=_0x43e0ed;switch(_0x481b09){case h[_0xdba310(0x1a4)]:return l[_0xdba310(0x1ae)](z,{'coordinator':_0x4b32b0});case h['FOLLOWING']:return l[_0xdba310(0x1ae)](Q,{'coordinator':_0x4b32b0});case h[_0xdba310(0x236)]:return l[_0xdba310(0x1ae)](X,{'coordinator':_0x4b32b0});case h[_0xdba310(0x1a3)]:return l['jsx'](te,{});case h['PRESENTING']:return l[_0xdba310(0x1ae)](ee,{'coordinator':_0x4b32b0});default:return null;}}function z(_0x40796d){var _0x2c604c=_0x4ede74;const {coordinator:_0x4119a9}=_0x40796d;return l[_0x2c604c(0x1e9)](l[_0x2c604c(0x213)],{'children':[l[_0x2c604c(0x1ae)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2c604c(0x206)}),l[_0x2c604c(0x1ae)](g['Button'],{'onClick':()=>_0x4119a9[_0x2c604c(0x1f8)](),'children':_0x2c604c(0x267)})]});}function Q(_0x2f99b5){var _0x4c529e=_0x4ede74;const {coordinator:_0x512819}=_0x2f99b5;return l['jsxs'](l[_0x4c529e(0x213)],{'children':[l[_0x4c529e(0x1ae)](_0x4c529e(0x263),{'className':_0x4c529e(0x24d),'children':_0x4c529e(0x264)}),l['jsx'](g[_0x4c529e(0x261)],{'onClick':()=>_0x512819['stopFollowing'](),'children':'Stop\x20following'})]});}function X(_0x177e1e){var _0x108747=_0x4ede74;const {coordinator:_0x3ef2fa}=_0x177e1e;return l[_0x108747(0x1e9)](l[_0x108747(0x213)],{'children':[l['jsx']('div',{'className':_0x108747(0x24d),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x108747(0x1ae)](g[_0x108747(0x261)],{'variant':_0x108747(0x224),'onClick':()=>_0x3ef2fa[_0x108747(0x1fd)](),'children':'Start\x20following'})]});}function ee(_0x9a9287){var _0x3c6884=_0x4ede74;const {coordinator:_0x5846fd}=_0x9a9287;return l[_0x3c6884(0x1e9)](l[_0x3c6884(0x213)],{'children':[l['jsx'](_0x3c6884(0x263),{'className':_0x3c6884(0x24d),'children':_0x3c6884(0x26f)}),l[_0x3c6884(0x1ae)](g[_0x3c6884(0x261)],{'variant':_0x3c6884(0x21a),'onClick':()=>_0x5846fd[_0x3c6884(0x21c)](),'children':_0x3c6884(0x242)})]});}function te(){var _0x291a37=_0x4ede74;return l[_0x291a37(0x1ae)](l['Fragment'],{'children':'You\x27are\x20offline.'});}var ie=Object[_0x4ede74(0x27a)],ne=(_0x139bf3,_0x198df9,_0x15d9cc,_0x32b15e)=>{var _0x2ad402=_0x4ede74;for(var _0x2b1436=_0x32b15e>0x1?void 0x0:_0x32b15e?ie(_0x198df9,_0x15d9cc):_0x198df9,_0x477ed3=_0x139bf3[_0x2ad402(0x1a2)]-0x1,_0x3f4ccc;_0x477ed3>=0x0;_0x477ed3--)(_0x3f4ccc=_0x139bf3[_0x477ed3])&&(_0x2b1436=_0x3f4ccc(_0x2b1436)||_0x2b1436);return _0x2b1436;},L=(_0x10c683,_0x39ab4c)=>(_0x5e3fed,_0x1709f7)=>_0x39ab4c(_0x5e3fed,_0x1709f7,_0x10c683);exports['DesktopLiveShareController']=class extends o[_0x4ede74(0x1af)]{constructor(_0x49fc9d,_0x10cd2e){var _0x2dca20=_0x4ede74;super(),this[_0x2dca20(0x1b8)]=_0x49fc9d,this[_0x2dca20(0x1b3)]=_0x10cd2e,this[_0x2dca20(0x20f)]();}[_0x4ede74(0x20f)](){var _0x141536=_0x4ede74;this['disposeWithMe'](this['_uiPartsService'][_0x141536(0x1d5)](p[_0x141536(0x1c5)][_0x141536(0x1e8)],()=>p[_0x141536(0x1d0)](A,this[_0x141536(0x1b8)])));}},exports['DesktopLiveShareController']=ne([L(0x0,o['Inject'](o[_0x4ede74(0x248)])),L(0x1,p[_0x4ede74(0x1e0)])],exports[_0x4ede74(0x1c8)]);var re=Object[_0x4ede74(0x1f9)],se=Object['getOwnPropertyDescriptor'],oe=(_0x1174fa,_0x4a4fb0,_0x1954e9)=>_0x4a4fb0 in _0x1174fa?re(_0x1174fa,_0x4a4fb0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1954e9}):_0x1174fa[_0x4a4fb0]=_0x1954e9,ae=(_0x1593f7,_0x160be4,_0x3ae9c9,_0x168d68)=>{var _0x5eeb94=_0x4ede74;for(var _0x1a4161=_0x168d68>0x1?void 0x0:_0x168d68?se(_0x160be4,_0x3ae9c9):_0x160be4,_0x800e7c=_0x1593f7[_0x5eeb94(0x1a2)]-0x1,_0x4429e8;_0x800e7c>=0x0;_0x800e7c--)(_0x4429e8=_0x1593f7[_0x800e7c])&&(_0x1a4161=_0x4429e8(_0x1a4161)||_0x1a4161);return _0x1a4161;},N=(_0xba365b,_0x1d1c5a)=>(_0x43b536,_0x63bc20)=>_0x1d1c5a(_0x43b536,_0x63bc20,_0xba365b),T=(_0x2314ee,_0x89b69a,_0x2d730f)=>oe(_0x2314ee,typeof _0x89b69a!='symbol'?_0x89b69a+'':_0x89b69a,_0x2d730f);const le=_0x4ede74(0x25d);exports[_0x4ede74(0x247)]=class extends o[_0x4ede74(0x253)]{constructor(_0x5b1476=x,_0x39cf1c,_0xe502db){var _0x1f0dad=_0x4ede74;super(),this['_config']=_0x5b1476,this[_0x1f0dad(0x1b8)]=_0x39cf1c,this[_0x1f0dad(0x27b)]=_0xe502db;const {..._0x6ecb5f}=o[_0x1f0dad(0x1a9)]({},x,this[_0x1f0dad(0x1cc)]);this['_configService'][_0x1f0dad(0x21d)]($,_0x6ecb5f);}[_0x4ede74(0x22f)](){var _0x472f6e=_0x4ede74;o[_0x472f6e(0x238)](this['_injector'],o[_0x472f6e(0x234)]([[O],[exports[_0x472f6e(0x22a)]],[E],[exports[_0x472f6e(0x1c8)]]],this[_0x472f6e(0x1cc)][_0x472f6e(0x266)])),o[_0x472f6e(0x1da)](this[_0x472f6e(0x1b8)],[[E]]);}['onRendered'](){var _0x25925c=_0x4ede74;o[_0x25925c(0x1da)](this[_0x25925c(0x1b8)],[[exports[_0x25925c(0x1c8)]]]);}},T(exports[_0x4ede74(0x247)],'type',o['UniverInstanceType'][_0x4ede74(0x1c0)]),T(exports[_0x4ede74(0x247)],_0x4ede74(0x204),le),exports['UniverLiveSharePlugin']=ae([o[_0x4ede74(0x24b)](m[_0x4ede74(0x262)]),N(0x1,o['Inject'](o['Injector'])),N(0x2,o[_0x4ede74(0x1ec)])],exports[_0x4ede74(0x247)]),exports[_0x4ede74(0x1d7)]=A,exports['LiveShareService']=O,exports[_0x4ede74(0x1f0)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x3a9004=_0x50ee;(function(_0x4c0b18,_0x629717){var _0x43a061=_0x50ee,_0x5657b5=_0x4c0b18();while(!![]){try{var _0x266cd=parseInt(_0x43a061(0x147))/0x1+parseInt(_0x43a061(0x164))/0x2*(parseInt(_0x43a061(0x1b4))/0x3)+parseInt(_0x43a061(0x14d))/0x4+parseInt(_0x43a061(0x1bc))/0x5+-parseInt(_0x43a061(0x13c))/0x6+-parseInt(_0x43a061(0x129))/0x7+parseInt(_0x43a061(0x1cc))/0x8*(-parseInt(_0x43a061(0x1af))/0x9);if(_0x266cd===_0x629717)break;else _0x5657b5['push'](_0x5657b5['shift']());}catch(_0xe033a1){_0x5657b5['push'](_0x5657b5['shift']());}}}(_0x48e5,0xd7b41));var q=Object['defineProperty'],z=(_0x41fcd3,_0x3f091b,_0x21fcfd)=>_0x3f091b in _0x41fcd3?q(_0x41fcd3,_0x3f091b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21fcfd}):_0x41fcd3[_0x3f091b]=_0x21fcfd,d=(_0x3379b9,_0x3fee5e,_0x3b509e)=>z(_0x3379b9,typeof _0x3fee5e!=_0x3a9004(0x168)?_0x3fee5e+'':_0x3fee5e,_0x3b509e);import{CollaborationSessionService as _0x494676,SessionStatus as _0x3c864e,UniverCollaborationClientPlugin as _0x59c281}from'@univerjs-pro/collaboration-client';import{Disposable as _0x317463,toDisposable as _0x206159,Inject as _0x27f4aa,IUniverInstanceService as _0x28bdc3,Injector as _0x495900,IConfigService as _0x2f8d1e,ICommandService as _0x4c8a99,RxDisposable as _0xdd8606,UniverInstanceType as _0x184fe8,DisposableCollection as _0x5d113,CommandType as _0x501da6,DependentOn as _0xc02580,Plugin as _0x432084,merge as _0x6d2ee8,registerDependencies as _0x734f14,mergeOverrideWithDependencies as _0x4359e6,touchDependencies as _0x2ee2f7}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x54cd56,InsertSheetMutation as _0x19461a}from'@univerjs/sheets';import{SetZoomRatioOperation as _0xfa8492,SetScrollOperation as _0x323229}from'@univerjs/sheets-ui';import{useDependency as _0x14674a,useObservable as _0xb5b489,IUIPartsService as _0x38a075,BuiltInUIPart as _0x29a0d9,connectInjector as _0x51bf03}from'@univerjs/ui';import{jsx as _0x1148da,jsxs as _0x5ec651,Fragment as _0x145b60}from'react/jsx-runtime';import{Dropdown as _0x5dae37,clsx as _0x19ae26,Button as _0x1423fd}from'@univerjs/design';import{forwardRef as _0x4b6caf,useRef as _0x4dee9e,createElement as _0x593257,useState as _0x393f21,useEffect as _0x1e7f8d}from'react';import{CollaborationEvent as _0x1cc368,parseProtocolChangeset as _0x25a2d3}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x1bae77,Subject as _0x3e828c}from'rxjs';import{takeUntil as _0x2f308f,throttleTime as _0xd47df6}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x317463{constructor(){var _0x1527e5=_0x3a9004;super(...arguments),d(this,_0x1527e5(0x17e),new Set()),d(this,_0x1527e5(0x1bd),new Set());}[_0x3a9004(0x134)](_0x40d6e1){var _0x21cb93=_0x3a9004;return this[_0x21cb93(0x17e)][_0x21cb93(0x152)](_0x40d6e1),_0x206159(()=>this[_0x21cb93(0x17e)][_0x21cb93(0x184)](_0x40d6e1));}['registerInitialStateReporter'](_0x5e33d1){var _0x2ac00b=_0x3a9004;return this[_0x2ac00b(0x1bd)][_0x2ac00b(0x152)](_0x5e33d1),_0x206159(()=>this[_0x2ac00b(0x1bd)][_0x2ac00b(0x184)](_0x5e33d1));}[_0x3a9004(0x175)](_0x1d9dea){var _0x496fd2=_0x3a9004;return this['_sharedOperations'][_0x496fd2(0x131)](_0x1d9dea);}['getInitialStates'](_0x2dcdd4){var _0x631cb9=_0x3a9004;return Array[_0x631cb9(0x196)](this[_0x631cb9(0x1bd)])['map'](_0x138954=>_0x138954(_0x2dcdd4));}}var Ee=Object[_0x3a9004(0x173)],we=(_0x48f3fe,_0x3830b4,_0x4a8bc9,_0x2f277e)=>{var _0x58aec2=_0x3a9004;for(var _0x4a9c5c=_0x2f277e>0x1?void 0x0:_0x2f277e?Ee(_0x3830b4,_0x4a8bc9):_0x3830b4,_0x1d876d=_0x48f3fe[_0x58aec2(0x19f)]-0x1,_0x1a7a8a;_0x1d876d>=0x0;_0x1d876d--)(_0x1a7a8a=_0x48f3fe[_0x1d876d])&&(_0x4a9c5c=_0x1a7a8a(_0x4a9c5c)||_0x4a9c5c);return _0x4a9c5c;},Ne=(_0x59c137,_0x1a6faa)=>(_0x411f35,_0x2be373)=>_0x1a6faa(_0x411f35,_0x2be373,_0x59c137);let m=class extends _0x317463{constructor(_0x33f166){var _0x5317ca=_0x3a9004;super(),this[_0x5317ca(0x18b)]=_0x33f166,this[_0x5317ca(0x159)]();}[_0x3a9004(0x159)](){var _0x3b71de=_0x3a9004;[_0xfa8492['id'],_0x323229['id'],_0x54cd56['id']][_0x3b71de(0x1cb)](_0x1b899a=>{var _0x143d12=_0x3b71de;this[_0x143d12(0x169)](this[_0x143d12(0x18b)]['registerSharedOperation'](_0x1b899a));});}};m=we([Ne(0x0,_0x27f4aa(L))],m);var c=function(){var _0x3d1f28=_0x3a9004;return c=Object[_0x3d1f28(0x138)]||function(_0x443ac0){var _0xd45d4=_0x3d1f28;for(var _0x4587d1,_0x237cf6=0x1,_0x3e26a6=arguments[_0xd45d4(0x19f)];_0x237cf6<_0x3e26a6;_0x237cf6++){_0x4587d1=arguments[_0x237cf6];for(var _0x1ea9b1 in _0x4587d1)Object[_0xd45d4(0x1ad)][_0xd45d4(0x135)]['call'](_0x4587d1,_0x1ea9b1)&&(_0x443ac0[_0x1ea9b1]=_0x4587d1[_0x1ea9b1]);}return _0x443ac0;},c['apply'](this,arguments);},Ce=function(_0x4cf340,_0x230be5){var _0x56fb15=_0x3a9004,_0x5a8451={};for(var _0x360411 in _0x4cf340)Object[_0x56fb15(0x1ad)]['hasOwnProperty'][_0x56fb15(0x1a8)](_0x4cf340,_0x360411)&&_0x230be5[_0x56fb15(0x1b1)](_0x360411)<0x0&&(_0x5a8451[_0x360411]=_0x4cf340[_0x360411]);if(_0x4cf340!=null&&typeof Object[_0x56fb15(0x1c7)]==_0x56fb15(0x16b)){for(var _0x70a881=0x0,_0x360411=Object[_0x56fb15(0x1c7)](_0x4cf340);_0x70a881<_0x360411['length'];_0x70a881++)_0x230be5[_0x56fb15(0x1b1)](_0x360411[_0x70a881])<0x0&&Object['prototype'][_0x56fb15(0x140)][_0x56fb15(0x1a8)](_0x4cf340,_0x360411[_0x70a881])&&(_0x5a8451[_0x360411[_0x70a881]]=_0x4cf340[_0x360411[_0x70a881]]);}return _0x5a8451;},W=_0x4b6caf(function(_0x2042b3,_0x2746e3){var _0x12f9fc=_0x3a9004,_0x37a1d9=_0x2042b3[_0x12f9fc(0x17c)],_0x1c20e8=_0x2042b3['id'],_0x1268ea=_0x2042b3[_0x12f9fc(0x166)],_0x5b340a=_0x2042b3[_0x12f9fc(0x189)],_0x31abb1=Ce(_0x2042b3,[_0x12f9fc(0x17c),'id',_0x12f9fc(0x166),_0x12f9fc(0x189)]),_0x4b4189=_0x12f9fc(0x1c9)[_0x12f9fc(0x14a)](_0x1c20e8,'\x20')[_0x12f9fc(0x14a)](_0x1268ea||'')['trim'](),_0xc9d344=_0x4dee9e('_'[_0x12f9fc(0x14a)](Le()));return Y(_0x37a1d9,''[_0x12f9fc(0x14a)](_0x1c20e8),{'defIds':_0x37a1d9[_0x12f9fc(0x15b)],'idSuffix':_0xc9d344[_0x12f9fc(0x19c)]},c({'ref':_0x2746e3,'className':_0x4b4189},_0x31abb1),_0x5b340a);});function _0x48e5(){var _0x256776=['div','dispose','OFFLINE','not-following','IDLE','_collabSession','has','_status','values','registerSharedOperation','hasOwnProperty','_unitID','currentColor','assign','LIVESHARE_TERMINATE','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverIcon','3880464sNkKlC','offline','NOT_FOLLOWING','clear','propertyIsEnumerable','LIVESHARE_NEW_HOST','Start','svg','xlink:href','_fetchOperations','_handleTerminate','548285tAffQo','getUnitId','_handleOffline','concat','HEADER_MENU','onStarting','6277216fPWLNA','_commandService','url(#$1','_config','entries','add','http://www.w3.org/2000/svg','_startPresenting','_presenter','getMemberID','executeCommand','displayName','_init','unitId','defIds','createInstance','1em','SAME_OPERATION_SHARE_INTERVAL','dispose$','status$','none','stringify','pluginName','2088194UbFDpP','getInitialStates','className','_configService','symbol','disposeWithMe','_handleNewChangeSets','function','_stopPresenting','fill','PRESENTING','includes','find','random','getTypeOfUnitDisposed$','getOwnPropertyDescriptor','complete','shouldShareOperation','init','FOLLOWING','string','LIVESHARE_REQUEST_HOST','getLiveShareCoordinator','unsubscribe','icon','path','_sharedOperations','_commandDisposable','_collabSessionService','mask','_startFollowing','startFollowing','delete','Present\x20this\x20document','children','idle','data','extend','_handleNewHost','_liveShareService','_handleOperation','params','idSuffix','presenting','tryStartPresenting','_uiPartsService','sheet','following','UNIVER_SHEET','colorChannel1','from','override','NEW_CHANGESETS','asObservable','replace','type','current','mutations','ONLINE','length','defineProperty','defs','evenodd','get','_startLiveShareCoordinator','Stop\x20presenting','_status$','memberID','call','stopPresenting','_univerInstanceService','onRendered','next','prototype','substring','4347oMbufq','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','indexOf','_injector','onCommandExecuted','3JRqGQS','_mountLiveShare','send','tag','Start\x20following','parse','setConfig','getValue','4274355POdqFa','_reporters','registerComponent','LIVESHARE_FETCH_OPERATIONS','operations','You\x27re\x20presenting\x20the\x20document','You\x27re\x20following\x20the\x20presenter','toString','attrs','_handleOnline','button','getOwnPropertySymbols','0\x200\x2017\x2017','univerjs-icon\x20univerjs-icon-','subscribe','forEach','17624SxCCYD','_entities','_stopFollowing','pipe','LiveShareIcon','sessionStatus$','presenter','univer-size-4','getTypeOfUnitAdded$','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','9955701pqTHNN','univer-border-none\x20univer-text-gray-600\x20univer-outline-none'];_0x48e5=function(){return _0x256776;};return _0x48e5();}function Y(_0x102606,_0x2c247c,_0x2bf9b4,_0x2b366e,_0x1f6c20){var _0x311deb=_0x3a9004;return _0x593257(_0x102606[_0x311deb(0x1b7)],c(c({'key':_0x2c247c},De(_0x102606,_0x2bf9b4,_0x1f6c20)),_0x2b366e),(xe(_0x102606,_0x2bf9b4)['children']||[])['map'](function(_0x56ab85,_0xcff9df){var _0x3e4bfc=_0x311deb;return Y(_0x56ab85,''[_0x3e4bfc(0x14a)](_0x2c247c,'-')[_0x3e4bfc(0x14a)](_0x102606[_0x3e4bfc(0x1b7)],'-')['concat'](_0xcff9df),_0x2bf9b4,void 0x0,_0x1f6c20);}));}function De(_0x290539,_0x2ea1b5,_0x231bb3){var _0x4284ef=_0x3a9004,_0x3a3930=c({},_0x290539[_0x4284ef(0x1c4)]);_0x231bb3!=null&&_0x231bb3[_0x4284ef(0x195)]&&_0x3a3930[_0x4284ef(0x16d)]==='colorChannel1'&&(_0x3a3930['fill']=_0x231bb3[_0x4284ef(0x195)]),_0x290539[_0x4284ef(0x1b7)]===_0x4284ef(0x181)&&_0x3a3930['id']&&(_0x3a3930['id']=_0x3a3930['id']+_0x2ea1b5[_0x4284ef(0x18e)]),Object[_0x4284ef(0x151)](_0x3a3930)[_0x4284ef(0x1cb)](function(_0x5548c0){var _0x4fc70f=_0x4284ef,_0x329620=_0x5548c0[0x0],_0x3a579b=_0x5548c0[0x1];_0x329620==='mask'&&typeof _0x3a579b==_0x4fc70f(0x178)&&(_0x3a3930[_0x329620]=_0x3a579b[_0x4fc70f(0x19a)](/url\(#(.*)\)/,_0x4fc70f(0x14f)[_0x4fc70f(0x14a)](_0x2ea1b5[_0x4fc70f(0x18e)],')')));});var _0x4f1ea4=_0x2ea1b5[_0x4284ef(0x15b)];return!_0x4f1ea4||_0x4f1ea4[_0x4284ef(0x19f)]===0x0||(_0x290539['tag']==='use'&&_0x3a3930['xlink:href']&&(_0x3a3930[_0x4284ef(0x144)]=_0x3a3930['xlink:href']+_0x2ea1b5[_0x4284ef(0x18e)]),Object[_0x4284ef(0x151)](_0x3a3930)[_0x4284ef(0x1cb)](function(_0x353f6a){var _0x4b890a=_0x4284ef,_0x2435c0=_0x353f6a[0x0],_0x30a16e=_0x353f6a[0x1];typeof _0x30a16e==_0x4b890a(0x178)&&(_0x3a3930[_0x2435c0]=_0x30a16e[_0x4b890a(0x19a)](/url\(#(.*)\)/,_0x4b890a(0x14f)['concat'](_0x2ea1b5[_0x4b890a(0x18e)],')')));})),_0x3a3930;}function xe(_0x2fa228,_0x133529){var _0x1c6724=_0x3a9004,_0xeb08cc,_0x21fd0e=_0x133529[_0x1c6724(0x15b)];return!_0x21fd0e||_0x21fd0e[_0x1c6724(0x19f)]===0x0?_0x2fa228:_0x2fa228['tag']===_0x1c6724(0x1a1)&&(!((_0xeb08cc=_0x2fa228['children'])===null||_0xeb08cc===void 0x0)&&_0xeb08cc[_0x1c6724(0x19f)])?c(c({},_0x2fa228),{'children':_0x2fa228[_0x1c6724(0x186)]['map'](function(_0x5305d4){var _0x44a590=_0x1c6724;return typeof _0x5305d4[_0x44a590(0x1c4)]['id']==_0x44a590(0x178)&&_0x21fd0e&&_0x21fd0e[_0x44a590(0x16f)](_0x5305d4['attrs']['id'])?c(c({},_0x5305d4),{'attrs':c(c({},_0x5305d4[_0x44a590(0x1c4)]),{'id':_0x5305d4[_0x44a590(0x1c4)]['id']+_0x133529[_0x44a590(0x18e)]})}):_0x5305d4;})}):_0x2fa228;}function Le(){var _0x1387d1=_0x3a9004;return Math[_0x1387d1(0x171)]()[_0x1387d1(0x1c3)](0x24)[_0x1387d1(0x1ae)](0x2,0x8);}W[_0x3a9004(0x158)]=_0x3a9004(0x13b);var ye={'tag':_0x3a9004(0x143),'attrs':{'xmlns':_0x3a9004(0x153),'fill':_0x3a9004(0x161),'viewBox':_0x3a9004(0x1c8),'width':_0x3a9004(0x15d),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x3a9004(0x137),'d':_0x3a9004(0x128)}},{'tag':_0x3a9004(0x17d),'attrs':{'fill':_0x3a9004(0x137),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x3a9004(0x1a2),'clipRule':_0x3a9004(0x1a2)}}]},B=_0x4b6caf(function(_0x39f9a6,_0x1d8d43){return _0x593257(W,Object['assign']({},_0x39f9a6,{'id':'live-share-icon','ref':_0x1d8d43,'icon':ye}));});B[_0x3a9004(0x158)]=_0x3a9004(0x123);var Re=Object[_0x3a9004(0x173)],Z=(_0x29d52f,_0x128585,_0xb0870f,_0x5c9a60)=>{for(var _0x8ce863=_0x5c9a60>0x1?void 0x0:_0x5c9a60?Re(_0x128585,_0xb0870f):_0x128585,_0x28d625=_0x29d52f['length']-0x1,_0xf8581f;_0x28d625>=0x0;_0x28d625--)(_0xf8581f=_0x29d52f[_0x28d625])&&(_0x8ce863=_0xf8581f(_0x8ce863)||_0x8ce863);return _0x8ce863;},f=(_0x4365c,_0x1e1fdc)=>(_0x50f3e7,_0x58655b)=>_0x1e1fdc(_0x50f3e7,_0x58655b,_0x4365c);let I=class extends _0xdd8606{constructor(_0x5ade5e,_0x394a8e,_0x36a6ca){var _0x196571=_0x3a9004;super(),d(this,_0x196571(0x1cd),new Map()),(this[_0x196571(0x1aa)]=_0x5ade5e,this[_0x196571(0x1b2)]=_0x394a8e,this[_0x196571(0x180)]=_0x36a6ca,this[_0x196571(0x159)]());}async[_0x3a9004(0x17a)](_0x5ba764){var _0x3ef010=_0x3a9004;return this['_entities']['has'](_0x5ba764)||await this['_startLiveShareCoordinator'](_0x5ba764),this[_0x3ef010(0x1cd)]['get'](_0x5ba764);}['_init'](){var _0xb66d23=_0x3a9004;this['_univerInstanceService'][_0xb66d23(0x127)](_0x184fe8[_0xb66d23(0x194)])[_0xb66d23(0x122)](_0x2f308f(this[_0xb66d23(0x15f)]))[_0xb66d23(0x1ca)](async _0x35e3f3=>{var _0x351e32=_0xb66d23;const _0x5c2f69=_0x35e3f3[_0x351e32(0x148)]();this[_0x351e32(0x1cd)][_0x351e32(0x131)](_0x5c2f69)||this[_0x351e32(0x1a4)](_0x5c2f69);}),this[_0xb66d23(0x1aa)][_0xb66d23(0x172)](_0x184fe8[_0xb66d23(0x194)])[_0xb66d23(0x122)](_0x2f308f(this[_0xb66d23(0x15f)]))['subscribe'](_0x32e442=>{var _0x374ebe=_0xb66d23;const _0x2f52dd=_0x32e442['getUnitId'](),_0x3778f5=this['_entities'][_0x374ebe(0x1a3)](_0x2f52dd);_0x3778f5==null||_0x3778f5[_0x374ebe(0x12c)]();});}async[_0x3a9004(0x1a4)](_0x423882){var _0x550a70=_0x3a9004;const _0x2d336b=await this[_0x550a70(0x180)]['requireSession'](_0x423882),_0x885cd6=this['_injector'][_0x550a70(0x15c)](C,_0x423882,_0x2d336b);return _0x885cd6[_0x550a70(0x176)](),this[_0x550a70(0x1cd)]['set'](_0x423882,_0x885cd6),_0x885cd6;}};I=Z([f(0x0,_0x28bdc3),f(0x1,_0x27f4aa(_0x495900)),f(0x2,_0x27f4aa(_0x494676))],I);var h=(_0x549493=>(_0x549493[_0x3a9004(0x12d)]=_0x3a9004(0x13d),_0x549493[_0x3a9004(0x12f)]=_0x3a9004(0x187),_0x549493['FOLLOWING']='following',_0x549493[_0x3a9004(0x13e)]=_0x3a9004(0x12e),_0x549493['PRESENTING']=_0x3a9004(0x18f),_0x549493))(h||{});const Pe=_0x3a9004(0x15e),Ae=0xc8;let C=class extends _0xdd8606{constructor(_0x3f5d06,_0x5202aa,_0xd2cea9,_0x1fc31e,_0x2abc2b){var _0x104f1e=_0x3a9004;super(),d(this,_0x104f1e(0x1a6),new _0x1bae77(_0x104f1e(0x187))),d(this,_0x104f1e(0x160),this['_status$'][_0x104f1e(0x199)]()),d(this,_0x104f1e(0x159),!0x1),d(this,_0x104f1e(0x17f),null),d(this,_0x104f1e(0x155),null),(this[_0x104f1e(0x136)]=_0x3f5d06,this[_0x104f1e(0x130)]=_0x5202aa,this['_configService']=_0xd2cea9,this[_0x104f1e(0x18b)]=_0x1fc31e,this[_0x104f1e(0x14e)]=_0x2abc2b);}get[_0x3a9004(0x132)](){var _0x1719ff=_0x3a9004;return this[_0x1719ff(0x1a6)][_0x1719ff(0x1bb)]();}[_0x3a9004(0x12c)](){var _0x2ef957=_0x3a9004,_0x1605a0;(_0x1605a0=this[_0x2ef957(0x17f)])==null||_0x1605a0[_0x2ef957(0x12c)](),this[_0x2ef957(0x1a6)][_0x2ef957(0x1ac)](_0x2ef957(0x187)),this[_0x2ef957(0x1a6)][_0x2ef957(0x174)]();}[_0x3a9004(0x176)](){var _0xee0b5f=_0x3a9004;this[_0xee0b5f(0x159)]||(this[_0xee0b5f(0x159)]=!0x0,this[_0xee0b5f(0x130)][_0xee0b5f(0x124)][_0xee0b5f(0x122)](_0x2f308f(this[_0xee0b5f(0x15f)]))['subscribe'](_0x2667ea=>{var _0x410a06=_0xee0b5f;switch(_0x2667ea){case _0x3c864e[_0x410a06(0x12d)]:this[_0x410a06(0x149)]();break;case _0x3c864e[_0x410a06(0x19e)]:this[_0x410a06(0x1c5)]();break;}}),this[_0xee0b5f(0x130)]['event$'][_0xee0b5f(0x122)](_0x2f308f(this[_0xee0b5f(0x15f)]))[_0xee0b5f(0x1ca)](_0x1b409d=>{var _0x5dec01=_0xee0b5f;const {eventID:_0x2be690}=_0x1b409d;switch(_0x2be690){case _0x1cc368[_0x5dec01(0x141)]:this[_0x5dec01(0x18a)](_0x1b409d);break;case _0x1cc368['LIVESHARE_OPERATION']:this[_0x5dec01(0x18c)](_0x1b409d);break;case _0x1cc368[_0x5dec01(0x139)]:this['_handleTerminate']();break;case _0x1cc368[_0x5dec01(0x198)]:this[_0x5dec01(0x16a)](_0x1b409d);break;}}));}[_0x3a9004(0x190)](){var _0x13c1cb=_0x3a9004;this[_0x13c1cb(0x130)]['send']({'eventID':_0x1cc368[_0x13c1cb(0x179)],'data':{'unitID':this[_0x13c1cb(0x136)],'userID':this['_collabSession'][_0x13c1cb(0x156)]()}},this['_unitID']);}[_0x3a9004(0x1a9)](){var _0x1141fd=_0x3a9004;this[_0x1141fd(0x132)]==='presenting'&&(this[_0x1141fd(0x1a6)]['next'](_0x1141fd(0x187)),this[_0x1141fd(0x130)]['send']({'eventID':_0x1cc368[_0x1141fd(0x139)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x3a9004(0x183)](){var _0x34018b=_0x3a9004;this['_status']===_0x34018b(0x12e)&&(this[_0x34018b(0x1a6)][_0x34018b(0x1ac)](_0x34018b(0x193)),this[_0x34018b(0x182)]());}['stopFollowing'](){var _0x56d187=_0x3a9004;this[_0x56d187(0x132)]===_0x56d187(0x193)&&this[_0x56d187(0x1ce)]();}['_handleNewHost'](_0x4e3ea4){var _0x46075c=_0x3a9004;const {presenter:_0x2560a7}=_0x4e3ea4['data'],_0x52d984=this[_0x46075c(0x130)][_0x46075c(0x156)]();this['_presenter']=_0x2560a7,_0x2560a7===_0x52d984?(this[_0x46075c(0x1ce)](),this[_0x46075c(0x154)]()):this[_0x46075c(0x132)]!==_0x46075c(0x12e)&&(this[_0x46075c(0x16c)](),this[_0x46075c(0x182)]());}[_0x3a9004(0x145)](){var _0x3cd11e=_0x3a9004;const _0x2aff3b={'eventID':_0x1cc368[_0x3cd11e(0x1bf)]};this[_0x3cd11e(0x130)]['send'](_0x2aff3b,this['_unitID']);}[_0x3a9004(0x146)](){var _0x2859f6=_0x3a9004;this['_presenter']=null,this[_0x2859f6(0x132)]!==_0x2859f6(0x18f)&&this['_beIdle']();}[_0x3a9004(0x16a)](_0x59a0a6){var _0x3650ed=_0x3a9004;if(this[_0x3650ed(0x132)]===_0x3650ed(0x193)&&this[_0x3650ed(0x155)]===_0x59a0a6['data'][_0x3650ed(0x1a7)]){const _0x5ad254=_0x25a2d3(_0x59a0a6[_0x3650ed(0x188)])[_0x3650ed(0x19d)]['reverse']()[_0x3650ed(0x170)](_0x33f5fb=>_0x33f5fb['id']===_0x19461a['id']);if(_0x5ad254){const _0x209736=_0x5ad254[_0x3650ed(0x18d)][_0x3650ed(0x15a)],_0x40f31a=_0x5ad254['params'][_0x3650ed(0x192)]['id'];setTimeout(()=>{var _0xc96d89=_0x3650ed;this[_0xc96d89(0x14e)][_0xc96d89(0x157)](_0x54cd56['id'],{'unitId':_0x209736,'subUnitId':_0x40f31a},{'fromCollab':!0x0});});}}}[_0x3a9004(0x154)](){var _0x1a5ff7=_0x3a9004;this[_0x1a5ff7(0x1a6)][_0x1a5ff7(0x1ac)]('presenting');const _0x49717d=new Map(),_0x2c064e=this['_commandDisposable']=new _0x5d113();_0x2c064e[_0x1a5ff7(0x152)](_0x206159(()=>{var _0x152730=_0x1a5ff7;_0x49717d[_0x152730(0x1cb)](_0x52e61b=>_0x52e61b[_0x152730(0x174)]()),_0x49717d[_0x152730(0x13f)]();})),_0x2c064e[_0x1a5ff7(0x152)](this[_0x1a5ff7(0x14e)][_0x1a5ff7(0x1b3)](_0x185030=>{var _0xa298be=_0x1a5ff7,_0x31fce9;if(_0x185030[_0xa298be(0x19b)]!==_0x501da6['OPERATION']||!this[_0xa298be(0x18b)]['shouldShareOperation'](_0x185030['id']))return;const {id:_0xc5e0cc}=_0x185030;let _0xfecabc;_0x49717d[_0xa298be(0x131)](_0xc5e0cc)?_0xfecabc=_0x49717d['get'](_0xc5e0cc):(_0xfecabc=new _0x3e828c(),_0x49717d['set'](_0xc5e0cc,_0xfecabc),_0xfecabc[_0xa298be(0x122)](_0xd47df6((_0x31fce9=this[_0xa298be(0x167)]['getConfig'](Pe))!=null?_0x31fce9:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xa298be(0x1ca)](_0x5bf614=>{var _0x55c1df=_0xa298be;this[_0x55c1df(0x130)][_0x55c1df(0x1b6)]({'eventID':_0x1cc368['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x55c1df(0x136)],'operations':{[_0x5bf614['id']]:{'id':_0x5bf614['id'],'params':JSON[_0x55c1df(0x162)](_0x5bf614[_0x55c1df(0x18d)])}}}},this[_0x55c1df(0x136)]);})),_0xfecabc['next'](_0x185030);})),this[_0x1a5ff7(0x18b)][_0x1a5ff7(0x165)](this[_0x1a5ff7(0x136)])[_0x1a5ff7(0x1cb)](_0x49abac=>this[_0x1a5ff7(0x130)][_0x1a5ff7(0x1b6)]({'eventID':_0x1cc368['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x49abac['id']]:{'id':_0x49abac['id'],'params':JSON[_0x1a5ff7(0x162)](_0x49abac[_0x1a5ff7(0x18d)])}}}},this[_0x1a5ff7(0x136)]));}[_0x3a9004(0x16c)](){var _0x40f7ff=_0x3a9004,_0x2b94c6;this['_status$']['next']('idle'),(_0x2b94c6=this[_0x40f7ff(0x17f)])==null||_0x2b94c6['dispose'](),this['_commandDisposable']=null;}[_0x3a9004(0x182)](){var _0x51b38d=_0x3a9004,_0x482b32;(_0x482b32=this[_0x51b38d(0x17f)])==null||_0x482b32['dispose'](),this[_0x51b38d(0x1a6)]['next'](_0x51b38d(0x193));}['_beIdle'](){var _0x36fe84=_0x3a9004,_0x4834bb;this[_0x36fe84(0x1a6)]['next'](_0x36fe84(0x187)),(_0x4834bb=this[_0x36fe84(0x17f)])==null||_0x4834bb[_0x36fe84(0x12c)](),this[_0x36fe84(0x17f)]=null;}['_stopFollowing'](){var _0x4d69b1=_0x3a9004,_0x3ca848;this[_0x4d69b1(0x1a6)][_0x4d69b1(0x1ac)](_0x4d69b1(0x12e)),(_0x3ca848=this[_0x4d69b1(0x17f)])==null||_0x3ca848[_0x4d69b1(0x12c)]();}[_0x3a9004(0x18c)](_0x2e70e3){var _0x1906ee=_0x3a9004;if([_0x1906ee(0x18f),_0x1906ee(0x12e),_0x1906ee(0x13d)][_0x1906ee(0x16f)](this[_0x1906ee(0x132)])||!_0x2e70e3[_0x1906ee(0x188)][_0x1906ee(0x125)]||_0x2e70e3[_0x1906ee(0x188)][_0x1906ee(0x125)]===this[_0x1906ee(0x130)][_0x1906ee(0x156)]())return;this[_0x1906ee(0x132)]===_0x1906ee(0x187)&&this['_startFollowing']();const _0x47d4a0=_0x2e70e3['data'][_0x1906ee(0x1c0)];Object[_0x1906ee(0x133)](_0x47d4a0)['forEach'](_0x3f6ea7=>{var _0x16730d=_0x1906ee;this[_0x16730d(0x14e)][_0x16730d(0x157)](_0x3f6ea7['id'],_0x3f6ea7[_0x16730d(0x18d)]?JSON[_0x16730d(0x1b9)](_0x3f6ea7[_0x16730d(0x18d)]):null,{'fromCollab':!0x0});});}[_0x3a9004(0x149)](){var _0x495213=_0x3a9004,_0x284ad9;this[_0x495213(0x1a6)]['next'](_0x495213(0x13d)),(_0x284ad9=this['_commandDisposable'])==null||_0x284ad9['dispose']();}[_0x3a9004(0x1c5)](){var _0x4d1154=_0x3a9004;this[_0x4d1154(0x1a6)]['next'](_0x4d1154(0x187)),this[_0x4d1154(0x145)]();}};C=Z([f(0x2,_0x2f8d1e),f(0x3,_0x27f4aa(L)),f(0x4,_0x4c8a99)],C);function Te(){var _0x1928b8=_0x3a9004;const _0x480d93=_0x14674a(I),_0x29b494=_0x14674a(_0x28bdc3),_0x94dc4f=_0xb5b489(()=>_0x29b494['getCurrentTypeOfUnit$'](_0x184fe8[_0x1928b8(0x194)]),void 0x0,!0x1,[]),[_0x3b5bf5,_0x5b4385]=_0x393f21(null),[_0x2bb3d3,_0x5c842d]=_0x393f21(h[_0x1928b8(0x12f)]),_0x30457d=_0x4dee9e(null);return _0x1e7f8d(()=>(_0x94dc4f&&_0x480d93[_0x1928b8(0x17a)](_0x94dc4f[_0x1928b8(0x148)]())['then'](_0xffc51b=>{var _0x2da001=_0x1928b8;_0x5b4385(_0xffc51b),_0x30457d['current']=_0xffc51b[_0x2da001(0x160)][_0x2da001(0x1ca)](_0x43e85e=>{_0x5c842d(_0x43e85e);});}),()=>{var _0x151577=_0x1928b8,_0x4896a7;(_0x4896a7=_0x30457d[_0x151577(0x19c)])==null||_0x4896a7[_0x151577(0x17b)](),_0x30457d[_0x151577(0x19c)]=null;}),[_0x94dc4f,_0x480d93]),_0x3b5bf5?_0x1148da(_0x5dae37,{'align':'end','disabled':_0x2bb3d3===h[_0x1928b8(0x12d)],'className':_0x1928b8(0x1b0),'overlay':_0x1148da($e,{'status':_0x2bb3d3,'coordinator':_0x3b5bf5}),'children':_0x1148da('button',{'className':_0x19ae26(_0x1928b8(0x12a),{'univer-cursor-not-allowed':_0x2bb3d3===h[_0x1928b8(0x12d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2bb3d3!==h[_0x1928b8(0x12d)]}),'type':_0x1928b8(0x1c6),'children':_0x1148da(B,{'className':_0x1928b8(0x126)})})}):null;}function $e(_0x427392){var _0x595514=_0x3a9004;const {status:_0x46fa8d,coordinator:_0x3ede99}=_0x427392;switch(_0x46fa8d){case h[_0x595514(0x12f)]:return _0x1148da(Fe,{'coordinator':_0x3ede99});case h[_0x595514(0x177)]:return _0x1148da(He,{'coordinator':_0x3ede99});case h['NOT_FOLLOWING']:return _0x1148da(je,{'coordinator':_0x3ede99});case h[_0x595514(0x12d)]:return _0x1148da(Ve,{});case h[_0x595514(0x16e)]:return _0x1148da(Ue,{'coordinator':_0x3ede99});default:return null;}}function Fe(_0x489de1){var _0x5b60=_0x3a9004;const {coordinator:_0x4d6fbb}=_0x489de1;return _0x5ec651(_0x145b60,{'children':[_0x1148da('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5b60(0x185)}),_0x1148da(_0x1423fd,{'onClick':()=>_0x4d6fbb[_0x5b60(0x190)](),'children':_0x5b60(0x142)})]});}function He(_0x3551eb){var _0x514d4e=_0x3a9004;const {coordinator:_0x5ddfdf}=_0x3551eb;return _0x5ec651(_0x145b60,{'children':[_0x1148da(_0x514d4e(0x12b),{'className':_0x514d4e(0x13a),'children':_0x514d4e(0x1c2)}),_0x1148da(_0x1423fd,{'onClick':()=>_0x5ddfdf['stopFollowing'](),'children':'Stop\x20following'})]});}function je(_0x532b46){var _0x214219=_0x3a9004;const {coordinator:_0x2ce70e}=_0x532b46;return _0x5ec651(_0x145b60,{'children':[_0x1148da('div',{'className':_0x214219(0x13a),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x1148da(_0x1423fd,{'variant':'text','onClick':()=>_0x2ce70e[_0x214219(0x183)](),'children':_0x214219(0x1b8)})]});}function Ue(_0x1604bd){var _0xa86fc4=_0x3a9004;const {coordinator:_0x3e7eb2}=_0x1604bd;return _0x5ec651(_0x145b60,{'children':[_0x1148da(_0xa86fc4(0x12b),{'className':_0xa86fc4(0x13a),'children':_0xa86fc4(0x1c1)}),_0x1148da(_0x1423fd,{'variant':'default','onClick':()=>_0x3e7eb2['stopPresenting'](),'children':_0xa86fc4(0x1a5)})]});}function Ve(){return _0x1148da(_0x145b60,{'children':'You\x27are\x20offline.'});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x2748cc,_0x4cbaab,_0x478cfa,_0x2f7305)=>{for(var _0x5941c3=_0x2f7305>0x1?void 0x0:_0x2f7305?Me(_0x4cbaab,_0x478cfa):_0x4cbaab,_0x5aa938=_0x2748cc['length']-0x1,_0x463870;_0x5aa938>=0x0;_0x5aa938--)(_0x463870=_0x2748cc[_0x5aa938])&&(_0x5941c3=_0x463870(_0x5941c3)||_0x5941c3);return _0x5941c3;},$=(_0x102b55,_0x2451de)=>(_0x155aa3,_0x3ba4c2)=>_0x2451de(_0x155aa3,_0x3ba4c2,_0x102b55);let b=class extends _0x317463{constructor(_0x16e13d,_0x3b9d16){var _0x32089c=_0x3a9004;super(),this[_0x32089c(0x1b2)]=_0x16e13d,this[_0x32089c(0x191)]=_0x3b9d16,this[_0x32089c(0x1b5)]();}[_0x3a9004(0x1b5)](){var _0x2f61d2=_0x3a9004;this[_0x2f61d2(0x169)](this[_0x2f61d2(0x191)][_0x2f61d2(0x1be)](_0x29a0d9[_0x2f61d2(0x14b)],()=>_0x51bf03(Te,this[_0x2f61d2(0x1b2)])));}};b=ke([$(0x0,_0x27f4aa(_0x495900)),$(0x1,_0x38a075)],b);var Ge=Object[_0x3a9004(0x1a0)],We=Object[_0x3a9004(0x173)],Ye=(_0x430380,_0x33a476,_0x404f3a)=>_0x33a476 in _0x430380?Ge(_0x430380,_0x33a476,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x404f3a}):_0x430380[_0x33a476]=_0x404f3a,Be=(_0x54b0da,_0x2b9bdd,_0x49e10b,_0x1755e7)=>{var _0x5d8440=_0x3a9004;for(var _0x38f2b5=_0x1755e7>0x1?void 0x0:_0x1755e7?We(_0x2b9bdd,_0x49e10b):_0x2b9bdd,_0x5f3ced=_0x54b0da[_0x5d8440(0x19f)]-0x1,_0x12305b;_0x5f3ced>=0x0;_0x5f3ced--)(_0x12305b=_0x54b0da[_0x5f3ced])&&(_0x38f2b5=_0x12305b(_0x38f2b5)||_0x38f2b5);return _0x38f2b5;},F=(_0x328a8b,_0x441bf8)=>(_0x38b365,_0x557192)=>_0x441bf8(_0x38b365,_0x557192,_0x328a8b),J=(_0x48896d,_0x506de4,_0xafc80f)=>Ye(_0x48896d,typeof _0x506de4!='symbol'?_0x506de4+'':_0x506de4,_0xafc80f);function _0x50ee(_0x357af5,_0x33d458){var _0x48e519=_0x48e5();return _0x50ee=function(_0x50eea8,_0x42fa9c){_0x50eea8=_0x50eea8-0x122;var _0x425dec=_0x48e519[_0x50eea8];return _0x425dec;},_0x50ee(_0x357af5,_0x33d458);}const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x432084{constructor(_0x26d9b6=T,_0x49a2bb,_0x5860ee){var _0x217c37=_0x3a9004;super(),this[_0x217c37(0x150)]=_0x26d9b6,this[_0x217c37(0x1b2)]=_0x49a2bb,this[_0x217c37(0x167)]=_0x5860ee;const {..._0x92a2a}=_0x6d2ee8({},T,this['_config']);this[_0x217c37(0x167)][_0x217c37(0x1ba)](Oe,_0x92a2a);}[_0x3a9004(0x14c)](){var _0x39d98f=_0x3a9004;_0x734f14(this[_0x39d98f(0x1b2)],_0x4359e6([[L],[I],[m],[b]],this[_0x39d98f(0x150)][_0x39d98f(0x197)])),_0x2ee2f7(this[_0x39d98f(0x1b2)],[[m]]);}[_0x3a9004(0x1ab)](){var _0x16ebb4=_0x3a9004;_0x2ee2f7(this[_0x16ebb4(0x1b2)],[[b]]);}};J(O,_0x3a9004(0x19b),_0x184fe8['UNIVER_UNKNOWN']),J(O,_0x3a9004(0x163),Ze),O=Be([_0xc02580(_0x59c281),F(0x1,_0x27f4aa(_0x495900)),F(0x2,_0x2f8d1e)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x451375=_0xa190;(function(_0x1e9cbb,_0x5bffbc){var _0x185ef2=_0xa190,_0x37c213=_0x1e9cbb();while(!![]){try{var _0x57a358=parseInt(_0x185ef2(0xa1))/0x1+parseInt(_0x185ef2(0xe7))/0x2+-parseInt(_0x185ef2(0xe6))/0x3*(-parseInt(_0x185ef2(0xc3))/0x4)+parseInt(_0x185ef2(0xf6))/0x5+parseInt(_0x185ef2(0xc8))/0x6*(parseInt(_0x185ef2(0xdb))/0x7)+-parseInt(_0x185ef2(0x126))/0x8+-parseInt(_0x185ef2(0x96))/0x9*(parseInt(_0x185ef2(0xd4))/0xa);if(_0x57a358===_0x5bffbc)break;else _0x37c213['push'](_0x37c213['shift']());}catch(_0x4db724){_0x37c213['push'](_0x37c213['shift']());}}}(_0x5bdd,0x19817));var q=Object['defineProperty'],z=(_0x575a9e,_0x54851e,_0x3ab20b)=>_0x54851e in _0x575a9e?q(_0x575a9e,_0x54851e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ab20b}):_0x575a9e[_0x54851e]=_0x3ab20b,d=(_0x2fbd89,_0x2ff064,_0x327381)=>z(_0x2fbd89,typeof _0x2ff064!=_0x451375(0xd5)?_0x2ff064+'':_0x2ff064,_0x327381);import{CollaborationSessionService as _0x28a12b,SessionStatus as _0xd06163,UniverCollaborationClientPlugin as _0x1dd0cd}from'@univerjs-pro/collaboration-client';import{Disposable as _0x2313b0,toDisposable as _0x43b1a9,Inject as _0x28c77f,IUniverInstanceService as _0x3e5199,Injector as _0x335107,IConfigService as _0x346109,ICommandService as _0x4a09d4,RxDisposable as _0x36a016,UniverInstanceType as _0x4c20a0,DisposableCollection as _0x1b939f,CommandType as _0x1862c6,DependentOn as _0x32035a,Plugin as _0x1c27e2,merge as _0x3c06a8,registerDependencies as _0x4552ae,mergeOverrideWithDependencies as _0x32a788,touchDependencies as _0x21a21b}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x21f0ce,InsertSheetMutation as _0x198dc6}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x274716,SetScrollOperation as _0x186685}from'@univerjs/sheets-ui';import{useDependency as _0x2de017,useObservable as _0x25276a,IUIPartsService as _0xb65b9,BuiltInUIPart as _0x51a6c7,connectInjector as _0x2c0420}from'@univerjs/ui';import{jsx as _0x5aa147,jsxs as _0x2b969d,Fragment as _0x5b6ea3}from'react/jsx-runtime';function _0x5bdd(){var _0x59216a=['icon','48gDjMyl','358320JQoUiu','disposeWithMe','includes','trim','1em','operations','onCommandExecuted','_collabSession','FOLLOWING','substring','UNIVER_SHEET','_entities','_handleOffline','asObservable','button','82435yfXSnr','none','unsubscribe','_handleTerminate','_reporters','following','parse','tryStartPresenting','indexOf','getMemberID','values','getConfig','_liveShareService','You\x27re\x20following\x20the\x20presenter','extend','next','data','_configService','set','_handleOnline','registerComponent','onRendered','random','idSuffix','requireSession','_collabSessionService','defIds','univer-size-4','LiveShareIcon','_stopFollowing','setConfig','getOwnPropertySymbols','_fetchOperations','dispose','current','UNIVER_UNKNOWN','hasOwnProperty','call','prototype','getOwnPropertyDescriptor','LIVESHARE_OPERATION','_stopPresenting','presenter','url(#$1','stringify','currentColor','You\x27re\x20presenting\x20the\x20document','mutations','580968svnHWO','find','You\x27are\x20offline.','Stop\x20following','getCurrentTypeOfUnit$','string','propertyIsEnumerable','UniverIcon','executeCommand','_handleOperation','tag','_handleNewHost','You\x27re\x20not\x20following\x20the\x20presenter','xlink:href','status$','pipe','add','colorChannel1','length','LIVESHARE_TERMINATE','className','NEW_CHANGESETS','stopFollowing','_startFollowing','shouldShareOperation','registerSharedOperation','function','evenodd','9dTaiwk','_mountLiveShare','text','override','get','_config','not-following','end','getInitialStates','attrs','map','179962dUejhy','complete','Present\x20this\x20document','assign','apply','default','OPERATION','delete','fill','_univerInstanceService','getUnitId','type','_uiPartsService','defineProperty','LIVESHARE_FETCH_OPERATIONS','IDLE','_commandDisposable','forEach','defs','_presenter','_status$','onStarting','_commandService','dispose$','OFFLINE','_startLiveShareCoordinator','_handleNewChangeSets','offline','live-share.config','_unitID','0\x200\x2017\x2017','idle','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','LIVESHARE_REQUEST_HOST','27436WdZUYh','startFollowing','mask','_injector','children','1128tfXBPc','_beIdle','init','params','getLiveShareCoordinator','createInstance','registerInitialStateReporter','entries','then','subscribe','_startPresenting','has','3507490XDIwTF','symbol','univer-mb-3\x20univer-w-full\x20univer-text-sm','div','displayName','clear','HEADER_MENU','1582biOOVN','getTypeOfUnitAdded$','stopPresenting','send','_init','NOT_FOLLOWING','_status','concat','sessionStatus$','replace'];_0x5bdd=function(){return _0x59216a;};return _0x5bdd();}import{Dropdown as _0x159863,clsx as _0x87598b,Button as _0x352964}from'@univerjs/design';import{forwardRef as _0x11caf0,useRef as _0x48017c,createElement as _0x3ad40e,useState as _0x55d604,useEffect as _0x44053b}from'react';import{CollaborationEvent as _0x248176,parseProtocolChangeset as _0x17584c}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2f2b8d,Subject as _0x1044e5}from'rxjs';import{takeUntil as _0x261e2b,throttleTime as _0x28b226}from'rxjs/operators';const Oe=_0x451375(0xbd),T={};class L extends _0x2313b0{constructor(){var _0x14a96d=_0x451375;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x14a96d(0xfa),new Set());}[_0x451375(0x93)](_0xe10ed1){var _0x416a36=_0x451375;return this['_sharedOperations'][_0x416a36(0x8a)](_0xe10ed1),_0x43b1a9(()=>this['_sharedOperations'][_0x416a36(0xa8)](_0xe10ed1));}[_0x451375(0xce)](_0x52fc81){var _0x9e9dd9=_0x451375;return this['_reporters'][_0x9e9dd9(0x8a)](_0x52fc81),_0x43b1a9(()=>this[_0x9e9dd9(0xfa)][_0x9e9dd9(0xa8)](_0x52fc81));}[_0x451375(0x92)](_0x2e83d3){return this['_sharedOperations']['has'](_0x2e83d3);}[_0x451375(0x9e)](_0x3e9bb6){var _0x44eb1a=_0x451375;return Array['from'](this[_0x44eb1a(0xfa)])[_0x44eb1a(0xa0)](_0x5925b2=>_0x5925b2(_0x3e9bb6));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x168b22,_0x5bace9,_0x2c0490,_0x2b85a1)=>{var _0x2bbb8f=_0x451375;for(var _0x2447c2=_0x2b85a1>0x1?void 0x0:_0x2b85a1?Ee(_0x5bace9,_0x2c0490):_0x5bace9,_0x29180e=_0x168b22[_0x2bbb8f(0x8c)]-0x1,_0x355b58;_0x29180e>=0x0;_0x29180e--)(_0x355b58=_0x168b22[_0x29180e])&&(_0x2447c2=_0x355b58(_0x2447c2)||_0x2447c2);return _0x2447c2;},Ne=(_0x4ab97c,_0x26ff09)=>(_0x21d977,_0x31a0da)=>_0x26ff09(_0x21d977,_0x31a0da,_0x4ab97c);let m=class extends _0x2313b0{constructor(_0x1d2686){var _0x220503=_0x451375;super(),this['_liveShareService']=_0x1d2686,this[_0x220503(0xdf)]();}[_0x451375(0xdf)](){var _0x4470bf=_0x451375;[_0x274716['id'],_0x186685['id'],_0x21f0ce['id']][_0x4470bf(0xb2)](_0x59a128=>{var _0x162c91=_0x4470bf;this[_0x162c91(0xe8)](this[_0x162c91(0x102)][_0x162c91(0x93)](_0x59a128));});}};m=we([Ne(0x0,_0x28c77f(L))],m);var c=function(){var _0x7b8dfc=_0x451375;return c=Object[_0x7b8dfc(0xa4)]||function(_0x5cf3c4){var _0x36c87f=_0x7b8dfc;for(var _0x386ab4,_0x2d2e19=0x1,_0x129e0a=arguments[_0x36c87f(0x8c)];_0x2d2e19<_0x129e0a;_0x2d2e19++){_0x386ab4=arguments[_0x2d2e19];for(var _0x40a2ad in _0x386ab4)Object[_0x36c87f(0x11c)]['hasOwnProperty']['call'](_0x386ab4,_0x40a2ad)&&(_0x5cf3c4[_0x40a2ad]=_0x386ab4[_0x40a2ad]);}return _0x5cf3c4;},c[_0x7b8dfc(0xa5)](this,arguments);},Ce=function(_0x58cf11,_0x33e72f){var _0xb697ad=_0x451375,_0x442487={};for(var _0x1601cf in _0x58cf11)Object[_0xb697ad(0x11c)][_0xb697ad(0x11a)][_0xb697ad(0x11b)](_0x58cf11,_0x1601cf)&&_0x33e72f['indexOf'](_0x1601cf)<0x0&&(_0x442487[_0x1601cf]=_0x58cf11[_0x1601cf]);if(_0x58cf11!=null&&typeof Object[_0xb697ad(0x115)]==_0xb697ad(0x94)){for(var _0x5cf0c1=0x0,_0x1601cf=Object[_0xb697ad(0x115)](_0x58cf11);_0x5cf0c1<_0x1601cf[_0xb697ad(0x8c)];_0x5cf0c1++)_0x33e72f[_0xb697ad(0xfe)](_0x1601cf[_0x5cf0c1])<0x0&&Object[_0xb697ad(0x11c)][_0xb697ad(0x80)][_0xb697ad(0x11b)](_0x58cf11,_0x1601cf[_0x5cf0c1])&&(_0x442487[_0x1601cf[_0x5cf0c1]]=_0x58cf11[_0x1601cf[_0x5cf0c1]]);}return _0x442487;},W=_0x11caf0(function(_0x2c5602,_0x472b23){var _0x508acd=_0x451375,_0x4b87ee=_0x2c5602[_0x508acd(0xe5)],_0x15f482=_0x2c5602['id'],_0x5db530=_0x2c5602[_0x508acd(0x8e)],_0x3c9d14=_0x2c5602[_0x508acd(0x104)],_0x21e4b6=Ce(_0x2c5602,[_0x508acd(0xe5),'id',_0x508acd(0x8e),_0x508acd(0x104)]),_0x29b9cd='univerjs-icon\x20univerjs-icon-'[_0x508acd(0xe2)](_0x15f482,'\x20')[_0x508acd(0xe2)](_0x5db530||'')[_0x508acd(0xea)](),_0x5adb1d=_0x48017c('_'['concat'](Le()));return Y(_0x4b87ee,''[_0x508acd(0xe2)](_0x15f482),{'defIds':_0x4b87ee[_0x508acd(0x110)],'idSuffix':_0x5adb1d[_0x508acd(0x118)]},c({'ref':_0x472b23,'className':_0x29b9cd},_0x21e4b6),_0x3c9d14);});function Y(_0x2e2f8b,_0x1e9555,_0x10736b,_0x58e852,_0x3ee648){var _0x4ce094=_0x451375;return _0x3ad40e(_0x2e2f8b[_0x4ce094(0x84)],c(c({'key':_0x1e9555},De(_0x2e2f8b,_0x10736b,_0x3ee648)),_0x58e852),(xe(_0x2e2f8b,_0x10736b)[_0x4ce094(0xc7)]||[])[_0x4ce094(0xa0)](function(_0x2bf3e5,_0x2ed0e0){var _0x5ebe57=_0x4ce094;return Y(_0x2bf3e5,''['concat'](_0x1e9555,'-')['concat'](_0x2e2f8b[_0x5ebe57(0x84)],'-')[_0x5ebe57(0xe2)](_0x2ed0e0),_0x10736b,void 0x0,_0x3ee648);}));}function De(_0x5caf90,_0x2ad276,_0x5748bc){var _0x271fc3=_0x451375,_0x31bff3=c({},_0x5caf90[_0x271fc3(0x9f)]);_0x5748bc!=null&&_0x5748bc['colorChannel1']&&_0x31bff3[_0x271fc3(0xa9)]===_0x271fc3(0x8b)&&(_0x31bff3['fill']=_0x5748bc[_0x271fc3(0x8b)]),_0x5caf90[_0x271fc3(0x84)]==='mask'&&_0x31bff3['id']&&(_0x31bff3['id']=_0x31bff3['id']+_0x2ad276[_0x271fc3(0x10d)]),Object['entries'](_0x31bff3)[_0x271fc3(0xb2)](function(_0x558cc0){var _0x39f431=_0x271fc3,_0x44a0d3=_0x558cc0[0x0],_0x186ed4=_0x558cc0[0x1];_0x44a0d3===_0x39f431(0xc5)&&typeof _0x186ed4==_0x39f431(0x12b)&&(_0x31bff3[_0x44a0d3]=_0x186ed4['replace'](/url\(#(.*)\)/,_0x39f431(0x121)[_0x39f431(0xe2)](_0x2ad276[_0x39f431(0x10d)],')')));});var _0x4ee8a5=_0x2ad276['defIds'];return!_0x4ee8a5||_0x4ee8a5[_0x271fc3(0x8c)]===0x0||(_0x5caf90[_0x271fc3(0x84)]==='use'&&_0x31bff3[_0x271fc3(0x87)]&&(_0x31bff3[_0x271fc3(0x87)]=_0x31bff3[_0x271fc3(0x87)]+_0x2ad276['idSuffix']),Object[_0x271fc3(0xcf)](_0x31bff3)[_0x271fc3(0xb2)](function(_0x16df4b){var _0x162431=_0x271fc3,_0x558a26=_0x16df4b[0x0],_0x2a2fad=_0x16df4b[0x1];typeof _0x2a2fad==_0x162431(0x12b)&&(_0x31bff3[_0x558a26]=_0x2a2fad[_0x162431(0xe4)](/url\(#(.*)\)/,_0x162431(0x121)[_0x162431(0xe2)](_0x2ad276[_0x162431(0x10d)],')')));})),_0x31bff3;}function xe(_0x3bdc0c,_0x2e8ed3){var _0x3da090=_0x451375,_0x33577a,_0x5a2010=_0x2e8ed3['defIds'];return!_0x5a2010||_0x5a2010[_0x3da090(0x8c)]===0x0?_0x3bdc0c:_0x3bdc0c[_0x3da090(0x84)]===_0x3da090(0xb3)&&(!((_0x33577a=_0x3bdc0c[_0x3da090(0xc7)])===null||_0x33577a===void 0x0)&&_0x33577a[_0x3da090(0x8c)])?c(c({},_0x3bdc0c),{'children':_0x3bdc0c[_0x3da090(0xc7)][_0x3da090(0xa0)](function(_0x36d0bb){var _0x121666=_0x3da090;return typeof _0x36d0bb[_0x121666(0x9f)]['id']==_0x121666(0x12b)&&_0x5a2010&&_0x5a2010[_0x121666(0xe9)](_0x36d0bb[_0x121666(0x9f)]['id'])?c(c({},_0x36d0bb),{'attrs':c(c({},_0x36d0bb[_0x121666(0x9f)]),{'id':_0x36d0bb[_0x121666(0x9f)]['id']+_0x2e8ed3[_0x121666(0x10d)]})}):_0x36d0bb;})}):_0x3bdc0c;}function Le(){var _0x29df3c=_0x451375;return Math[_0x29df3c(0x10c)]()['toString'](0x24)[_0x29df3c(0xf0)](0x2,0x8);}W[_0x451375(0xd8)]=_0x451375(0x81);var ye={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x451375(0xf7),'viewBox':_0x451375(0xbf),'width':_0x451375(0xeb),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x451375(0x123),'d':_0x451375(0xc1)}},{'tag':'path','attrs':{'fill':_0x451375(0x123),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x451375(0x95),'clipRule':'evenodd'}}]},B=_0x11caf0(function(_0x43688f,_0x2612ca){return _0x3ad40e(W,Object['assign']({},_0x43688f,{'id':'live-share-icon','ref':_0x2612ca,'icon':ye}));});B[_0x451375(0xd8)]=_0x451375(0x112);var Re=Object[_0x451375(0x11d)],Z=(_0x1e8e3c,_0xac14ff,_0x1d3dfc,_0x5c5eb1)=>{var _0x3b9b1f=_0x451375;for(var _0x199c7c=_0x5c5eb1>0x1?void 0x0:_0x5c5eb1?Re(_0xac14ff,_0x1d3dfc):_0xac14ff,_0x253127=_0x1e8e3c[_0x3b9b1f(0x8c)]-0x1,_0x17b5c3;_0x253127>=0x0;_0x253127--)(_0x17b5c3=_0x1e8e3c[_0x253127])&&(_0x199c7c=_0x17b5c3(_0x199c7c)||_0x199c7c);return _0x199c7c;},f=(_0x52abe5,_0x2362e9)=>(_0x6aec4c,_0xacdf00)=>_0x2362e9(_0x6aec4c,_0xacdf00,_0x52abe5);let I=class extends _0x36a016{constructor(_0x8a0738,_0x21bf37,_0x3c9e24){var _0x533e04=_0x451375;super(),d(this,_0x533e04(0xf2),new Map()),(this[_0x533e04(0xaa)]=_0x8a0738,this[_0x533e04(0xc6)]=_0x21bf37,this[_0x533e04(0x10f)]=_0x3c9e24,this['_init']());}async[_0x451375(0xcc)](_0x1a088b){var _0x58ca37=_0x451375;return this['_entities'][_0x58ca37(0xd3)](_0x1a088b)||await this[_0x58ca37(0xba)](_0x1a088b),this[_0x58ca37(0xf2)][_0x58ca37(0x9a)](_0x1a088b);}[_0x451375(0xdf)](){var _0x5b9904=_0x451375;this[_0x5b9904(0xaa)][_0x5b9904(0xdc)](_0x4c20a0[_0x5b9904(0xf1)])['pipe'](_0x261e2b(this[_0x5b9904(0xb8)]))[_0x5b9904(0xd1)](async _0xa98328=>{var _0x327ed3=_0x5b9904;const _0x35cc97=_0xa98328['getUnitId']();this[_0x327ed3(0xf2)][_0x327ed3(0xd3)](_0x35cc97)||this[_0x327ed3(0xba)](_0x35cc97);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4c20a0['UNIVER_SHEET'])[_0x5b9904(0x89)](_0x261e2b(this[_0x5b9904(0xb8)]))[_0x5b9904(0xd1)](_0x1f1528=>{var _0x232484=_0x5b9904;const _0x195bed=_0x1f1528['getUnitId'](),_0x1e1910=this['_entities']['get'](_0x195bed);_0x1e1910==null||_0x1e1910[_0x232484(0x117)]();});}async[_0x451375(0xba)](_0x1e1d04){var _0x5d11b2=_0x451375;const _0x3e8206=await this[_0x5d11b2(0x10f)][_0x5d11b2(0x10e)](_0x1e1d04),_0x1f2fcc=this[_0x5d11b2(0xc6)][_0x5d11b2(0xcd)](C,_0x1e1d04,_0x3e8206);return _0x1f2fcc[_0x5d11b2(0xca)](),this[_0x5d11b2(0xf2)][_0x5d11b2(0x108)](_0x1e1d04,_0x1f2fcc),_0x1f2fcc;}};I=Z([f(0x0,_0x3e5199),f(0x1,_0x28c77f(_0x335107)),f(0x2,_0x28c77f(_0x28a12b))],I);var h=(_0x118872=>(_0x118872[_0x451375(0xb9)]=_0x451375(0xbc),_0x118872[_0x451375(0xb0)]=_0x451375(0xc0),_0x118872['FOLLOWING']=_0x451375(0xfb),_0x118872[_0x451375(0xe0)]='not-following',_0x118872['PRESENTING']='presenting',_0x118872))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x36a016{constructor(_0x563bc5,_0x3bc5db,_0x11d0b5,_0x57d2f0,_0x97ec45){var _0xd76d38=_0x451375;super(),d(this,_0xd76d38(0xb5),new _0x2f2b8d('idle')),d(this,_0xd76d38(0x88),this['_status$'][_0xd76d38(0xf4)]()),d(this,_0xd76d38(0xdf),!0x1),d(this,'_commandDisposable',null),d(this,_0xd76d38(0xb4),null),(this['_unitID']=_0x563bc5,this[_0xd76d38(0xee)]=_0x3bc5db,this[_0xd76d38(0x107)]=_0x11d0b5,this[_0xd76d38(0x102)]=_0x57d2f0,this[_0xd76d38(0xb7)]=_0x97ec45);}get[_0x451375(0xe1)](){var _0x6cc70=_0x451375;return this[_0x6cc70(0xb5)]['getValue']();}[_0x451375(0x117)](){var _0x3bf5fc=_0x451375,_0x31a480;(_0x31a480=this[_0x3bf5fc(0xb1)])==null||_0x31a480['dispose'](),this[_0x3bf5fc(0xb5)][_0x3bf5fc(0x105)](_0x3bf5fc(0xc0)),this[_0x3bf5fc(0xb5)][_0x3bf5fc(0xa2)]();}['init'](){var _0x5e7bdb=_0x451375;this[_0x5e7bdb(0xdf)]||(this['_init']=!0x0,this[_0x5e7bdb(0xee)][_0x5e7bdb(0xe3)][_0x5e7bdb(0x89)](_0x261e2b(this[_0x5e7bdb(0xb8)]))[_0x5e7bdb(0xd1)](_0x44288a=>{var _0x504e32=_0x5e7bdb;switch(_0x44288a){case _0xd06163['OFFLINE']:this[_0x504e32(0xf3)]();break;case _0xd06163['ONLINE']:this[_0x504e32(0x109)]();break;}}),this['_collabSession']['event$']['pipe'](_0x261e2b(this[_0x5e7bdb(0xb8)]))['subscribe'](_0xb03598=>{var _0x344a64=_0x5e7bdb;const {eventID:_0x38f07f}=_0xb03598;switch(_0x38f07f){case _0x248176['LIVESHARE_NEW_HOST']:this[_0x344a64(0x85)](_0xb03598);break;case _0x248176[_0x344a64(0x11e)]:this[_0x344a64(0x83)](_0xb03598);break;case _0x248176[_0x344a64(0x8d)]:this['_handleTerminate']();break;case _0x248176[_0x344a64(0x8f)]:this[_0x344a64(0xbb)](_0xb03598);break;}}));}[_0x451375(0xfd)](){var _0x21abc4=_0x451375;this['_collabSession'][_0x21abc4(0xde)]({'eventID':_0x248176[_0x21abc4(0xc2)],'data':{'unitID':this[_0x21abc4(0xbe)],'userID':this['_collabSession'][_0x21abc4(0xff)]()}},this[_0x21abc4(0xbe)]);}[_0x451375(0xdd)](){var _0x7b7a4a=_0x451375;this[_0x7b7a4a(0xe1)]==='presenting'&&(this[_0x7b7a4a(0xb5)]['next']('idle'),this['_collabSession'][_0x7b7a4a(0xde)]({'eventID':_0x248176[_0x7b7a4a(0x8d)],'data':{'unitID':this[_0x7b7a4a(0xbe)]}},this['_unitID']));}[_0x451375(0xc4)](){var _0x4d6a3d=_0x451375;this[_0x4d6a3d(0xe1)]==='not-following'&&(this['_status$'][_0x4d6a3d(0x105)](_0x4d6a3d(0xfb)),this[_0x4d6a3d(0x91)]());}['stopFollowing'](){var _0x2baaae=_0x451375;this[_0x2baaae(0xe1)]===_0x2baaae(0xfb)&&this[_0x2baaae(0x113)]();}[_0x451375(0x85)](_0x12787f){var _0x319170=_0x451375;const {presenter:_0x44b10a}=_0x12787f['data'],_0xb153c3=this['_collabSession']['getMemberID']();this[_0x319170(0xb4)]=_0x44b10a,_0x44b10a===_0xb153c3?(this[_0x319170(0x113)](),this[_0x319170(0xd2)]()):this[_0x319170(0xe1)]!==_0x319170(0x9c)&&(this[_0x319170(0x11f)](),this['_startFollowing']());}[_0x451375(0x116)](){var _0x451ef0=_0x451375;const _0x4bef16={'eventID':_0x248176[_0x451ef0(0xaf)]};this[_0x451ef0(0xee)][_0x451ef0(0xde)](_0x4bef16,this[_0x451ef0(0xbe)]);}[_0x451375(0xf9)](){var _0x1dff1c=_0x451375;this[_0x1dff1c(0xb4)]=null,this['_status']!=='presenting'&&this[_0x1dff1c(0xc9)]();}[_0x451375(0xbb)](_0x343e27){var _0x4acffb=_0x451375;if(this[_0x4acffb(0xe1)]===_0x4acffb(0xfb)&&this[_0x4acffb(0xb4)]===_0x343e27[_0x4acffb(0x106)]['memberID']){const _0x2bf607=_0x17584c(_0x343e27[_0x4acffb(0x106)])[_0x4acffb(0x125)]['reverse']()[_0x4acffb(0x127)](_0x6e8be5=>_0x6e8be5['id']===_0x198dc6['id']);if(_0x2bf607){const _0x4b17c6=_0x2bf607[_0x4acffb(0xcb)]['unitId'],_0x471c42=_0x2bf607[_0x4acffb(0xcb)]['sheet']['id'];setTimeout(()=>{var _0x16814a=_0x4acffb;this[_0x16814a(0xb7)][_0x16814a(0x82)](_0x21f0ce['id'],{'unitId':_0x4b17c6,'subUnitId':_0x471c42},{'fromCollab':!0x0});});}}}[_0x451375(0xd2)](){var _0xad2cf4=_0x451375;this[_0xad2cf4(0xb5)][_0xad2cf4(0x105)]('presenting');const _0x1b7070=new Map(),_0x1b5804=this[_0xad2cf4(0xb1)]=new _0x1b939f();_0x1b5804[_0xad2cf4(0x8a)](_0x43b1a9(()=>{var _0x494faa=_0xad2cf4;_0x1b7070[_0x494faa(0xb2)](_0x708097=>_0x708097[_0x494faa(0xa2)]()),_0x1b7070[_0x494faa(0xd9)]();})),_0x1b5804[_0xad2cf4(0x8a)](this[_0xad2cf4(0xb7)][_0xad2cf4(0xed)](_0x427efd=>{var _0xabf870=_0xad2cf4,_0x44fb57;if(_0x427efd[_0xabf870(0xac)]!==_0x1862c6[_0xabf870(0xa7)]||!this[_0xabf870(0x102)][_0xabf870(0x92)](_0x427efd['id']))return;const {id:_0x2323f7}=_0x427efd;let _0x5161d5;_0x1b7070[_0xabf870(0xd3)](_0x2323f7)?_0x5161d5=_0x1b7070['get'](_0x2323f7):(_0x5161d5=new _0x1044e5(),_0x1b7070[_0xabf870(0x108)](_0x2323f7,_0x5161d5),_0x5161d5['pipe'](_0x28b226((_0x44fb57=this[_0xabf870(0x107)][_0xabf870(0x101)](Pe))!=null?_0x44fb57:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xabf870(0xd1)](_0x4e1fc3=>{var _0x5127d9=_0xabf870;this[_0x5127d9(0xee)]['send']({'eventID':_0x248176[_0x5127d9(0x11e)],'data':{'unitID':this[_0x5127d9(0xbe)],'operations':{[_0x4e1fc3['id']]:{'id':_0x4e1fc3['id'],'params':JSON[_0x5127d9(0x122)](_0x4e1fc3[_0x5127d9(0xcb)])}}}},this['_unitID']);})),_0x5161d5[_0xabf870(0x105)](_0x427efd);})),this[_0xad2cf4(0x102)][_0xad2cf4(0x9e)](this[_0xad2cf4(0xbe)])[_0xad2cf4(0xb2)](_0x5af010=>this[_0xad2cf4(0xee)][_0xad2cf4(0xde)]({'eventID':_0x248176[_0xad2cf4(0x11e)],'data':{'unitID':this[_0xad2cf4(0xbe)],'operations':{[_0x5af010['id']]:{'id':_0x5af010['id'],'params':JSON[_0xad2cf4(0x122)](_0x5af010[_0xad2cf4(0xcb)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x2badc6=_0x451375,_0x1ceb0d;this[_0x2badc6(0xb5)][_0x2badc6(0x105)]('idle'),(_0x1ceb0d=this['_commandDisposable'])==null||_0x1ceb0d[_0x2badc6(0x117)](),this[_0x2badc6(0xb1)]=null;}[_0x451375(0x91)](){var _0xbc2e7=_0x451375,_0x3f009f;(_0x3f009f=this['_commandDisposable'])==null||_0x3f009f[_0xbc2e7(0x117)](),this[_0xbc2e7(0xb5)][_0xbc2e7(0x105)]('following');}[_0x451375(0xc9)](){var _0x7b2231=_0x451375,_0x9b4ecd;this[_0x7b2231(0xb5)]['next'](_0x7b2231(0xc0)),(_0x9b4ecd=this[_0x7b2231(0xb1)])==null||_0x9b4ecd[_0x7b2231(0x117)](),this['_commandDisposable']=null;}[_0x451375(0x113)](){var _0x4c770e=_0x451375,_0x113d7b;this['_status$'][_0x4c770e(0x105)]('not-following'),(_0x113d7b=this[_0x4c770e(0xb1)])==null||_0x113d7b['dispose']();}['_handleOperation'](_0x1a5ccc){var _0x527dfe=_0x451375;if(['presenting',_0x527dfe(0x9c),_0x527dfe(0xbc)][_0x527dfe(0xe9)](this['_status'])||!_0x1a5ccc['data'][_0x527dfe(0x120)]||_0x1a5ccc[_0x527dfe(0x106)][_0x527dfe(0x120)]===this[_0x527dfe(0xee)][_0x527dfe(0xff)]())return;this['_status']==='idle'&&this['_startFollowing']();const _0xb0e559=_0x1a5ccc[_0x527dfe(0x106)][_0x527dfe(0xec)];Object[_0x527dfe(0x100)](_0xb0e559)['forEach'](_0x49c313=>{var _0x544a45=_0x527dfe;this[_0x544a45(0xb7)][_0x544a45(0x82)](_0x49c313['id'],_0x49c313['params']?JSON[_0x544a45(0xfc)](_0x49c313[_0x544a45(0xcb)]):null,{'fromCollab':!0x0});});}[_0x451375(0xf3)](){var _0x4db867=_0x451375,_0x45686d;this[_0x4db867(0xb5)][_0x4db867(0x105)](_0x4db867(0xbc)),(_0x45686d=this['_commandDisposable'])==null||_0x45686d[_0x4db867(0x117)]();}[_0x451375(0x109)](){var _0x392a0a=_0x451375;this[_0x392a0a(0xb5)][_0x392a0a(0x105)](_0x392a0a(0xc0)),this[_0x392a0a(0x116)]();}};C=Z([f(0x2,_0x346109),f(0x3,_0x28c77f(L)),f(0x4,_0x4a09d4)],C);function Te(){var _0x2327f3=_0x451375;const _0x48ff66=_0x2de017(I),_0x441d35=_0x2de017(_0x3e5199),_0x47257a=_0x25276a(()=>_0x441d35[_0x2327f3(0x12a)](_0x4c20a0[_0x2327f3(0xf1)]),void 0x0,!0x1,[]),[_0x2e6505,_0xae1bc]=_0x55d604(null),[_0x1ac521,_0x33ceca]=_0x55d604(h[_0x2327f3(0xb0)]),_0x45a0db=_0x48017c(null);return _0x44053b(()=>(_0x47257a&&_0x48ff66[_0x2327f3(0xcc)](_0x47257a[_0x2327f3(0xab)]())[_0x2327f3(0xd0)](_0x3c6371=>{var _0x26f634=_0x2327f3;_0xae1bc(_0x3c6371),_0x45a0db['current']=_0x3c6371[_0x26f634(0x88)][_0x26f634(0xd1)](_0x5bd015=>{_0x33ceca(_0x5bd015);});}),()=>{var _0x6dbefd=_0x2327f3,_0x8a6c67;(_0x8a6c67=_0x45a0db[_0x6dbefd(0x118)])==null||_0x8a6c67[_0x6dbefd(0xf8)](),_0x45a0db['current']=null;}),[_0x47257a,_0x48ff66]),_0x2e6505?_0x5aa147(_0x159863,{'align':_0x2327f3(0x9d),'disabled':_0x1ac521===h[_0x2327f3(0xb9)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x5aa147($e,{'status':_0x1ac521,'coordinator':_0x2e6505}),'children':_0x5aa147(_0x2327f3(0xf5),{'className':_0x87598b('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x1ac521===h[_0x2327f3(0xb9)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1ac521!==h[_0x2327f3(0xb9)]}),'type':_0x2327f3(0xf5),'children':_0x5aa147(B,{'className':_0x2327f3(0x111)})})}):null;}function $e(_0x4731bd){var _0x185e7e=_0x451375;const {status:_0x2e0820,coordinator:_0x437528}=_0x4731bd;switch(_0x2e0820){case h['IDLE']:return _0x5aa147(Fe,{'coordinator':_0x437528});case h[_0x185e7e(0xef)]:return _0x5aa147(He,{'coordinator':_0x437528});case h['NOT_FOLLOWING']:return _0x5aa147(je,{'coordinator':_0x437528});case h[_0x185e7e(0xb9)]:return _0x5aa147(Ve,{});case h['PRESENTING']:return _0x5aa147(Ue,{'coordinator':_0x437528});default:return null;}}function Fe(_0x81a50f){var _0x238dd8=_0x451375;const {coordinator:_0x366f8d}=_0x81a50f;return _0x2b969d(_0x5b6ea3,{'children':[_0x5aa147(_0x238dd8(0xd7),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x238dd8(0xa3)}),_0x5aa147(_0x352964,{'onClick':()=>_0x366f8d[_0x238dd8(0xfd)](),'children':'Start'})]});}function He(_0x58ecba){var _0x374d5e=_0x451375;const {coordinator:_0x4d3ed5}=_0x58ecba;return _0x2b969d(_0x5b6ea3,{'children':[_0x5aa147(_0x374d5e(0xd7),{'className':_0x374d5e(0xd6),'children':_0x374d5e(0x103)}),_0x5aa147(_0x352964,{'onClick':()=>_0x4d3ed5[_0x374d5e(0x90)](),'children':_0x374d5e(0x129)})]});}function je(_0x510960){var _0x465aa5=_0x451375;const {coordinator:_0x248453}=_0x510960;return _0x2b969d(_0x5b6ea3,{'children':[_0x5aa147(_0x465aa5(0xd7),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x465aa5(0x86)}),_0x5aa147(_0x352964,{'variant':_0x465aa5(0x98),'onClick':()=>_0x248453['startFollowing'](),'children':'Start\x20following'})]});}function Ue(_0x23dc1b){var _0x6f889c=_0x451375;const {coordinator:_0x5f4f84}=_0x23dc1b;return _0x2b969d(_0x5b6ea3,{'children':[_0x5aa147(_0x6f889c(0xd7),{'className':_0x6f889c(0xd6),'children':_0x6f889c(0x124)}),_0x5aa147(_0x352964,{'variant':_0x6f889c(0xa6),'onClick':()=>_0x5f4f84[_0x6f889c(0xdd)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x2fda1d=_0x451375;return _0x5aa147(_0x5b6ea3,{'children':_0x2fda1d(0x128)});}var Me=Object[_0x451375(0x11d)],ke=(_0x570146,_0x5e55bd,_0x339ca5,_0x3f5675)=>{for(var _0x4bf585=_0x3f5675>0x1?void 0x0:_0x3f5675?Me(_0x5e55bd,_0x339ca5):_0x5e55bd,_0x4ec0c8=_0x570146['length']-0x1,_0x3939e1;_0x4ec0c8>=0x0;_0x4ec0c8--)(_0x3939e1=_0x570146[_0x4ec0c8])&&(_0x4bf585=_0x3939e1(_0x4bf585)||_0x4bf585);return _0x4bf585;},$=(_0xcc8bba,_0x406f94)=>(_0x250d55,_0x24e081)=>_0x406f94(_0x250d55,_0x24e081,_0xcc8bba);let b=class extends _0x2313b0{constructor(_0x16662e,_0x435ddb){var _0x410118=_0x451375;super(),this[_0x410118(0xc6)]=_0x16662e,this[_0x410118(0xad)]=_0x435ddb,this[_0x410118(0x97)]();}[_0x451375(0x97)](){var _0x6b6d42=_0x451375;this[_0x6b6d42(0xe8)](this[_0x6b6d42(0xad)][_0x6b6d42(0x10a)](_0x51a6c7[_0x6b6d42(0xda)],()=>_0x2c0420(Te,this[_0x6b6d42(0xc6)])));}};function _0xa190(_0x32c439,_0x2d498f){var _0x5bdd32=_0x5bdd();return _0xa190=function(_0xa19085,_0xc55785){_0xa19085=_0xa19085-0x80;var _0xeab724=_0x5bdd32[_0xa19085];return _0xeab724;},_0xa190(_0x32c439,_0x2d498f);}b=ke([$(0x0,_0x28c77f(_0x335107)),$(0x1,_0xb65b9)],b);var Ge=Object[_0x451375(0xae)],We=Object[_0x451375(0x11d)],Ye=(_0x18d7aa,_0x445b22,_0x5989cd)=>_0x445b22 in _0x18d7aa?Ge(_0x18d7aa,_0x445b22,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5989cd}):_0x18d7aa[_0x445b22]=_0x5989cd,Be=(_0x2c0ed6,_0x8470f6,_0x2a43bf,_0x3e765a)=>{var _0x5b0760=_0x451375;for(var _0x2388d3=_0x3e765a>0x1?void 0x0:_0x3e765a?We(_0x8470f6,_0x2a43bf):_0x8470f6,_0x360398=_0x2c0ed6[_0x5b0760(0x8c)]-0x1,_0x2697e3;_0x360398>=0x0;_0x360398--)(_0x2697e3=_0x2c0ed6[_0x360398])&&(_0x2388d3=_0x2697e3(_0x2388d3)||_0x2388d3);return _0x2388d3;},F=(_0x54775e,_0x28c224)=>(_0x37f304,_0x8fce35)=>_0x28c224(_0x37f304,_0x8fce35,_0x54775e),J=(_0x45a759,_0x51ab50,_0x7823dd)=>Ye(_0x45a759,typeof _0x51ab50!=_0x451375(0xd5)?_0x51ab50+'':_0x51ab50,_0x7823dd);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x1c27e2{constructor(_0x295921=T,_0x148e91,_0x672e2e){var _0x5054f2=_0x451375;super(),this[_0x5054f2(0x9b)]=_0x295921,this[_0x5054f2(0xc6)]=_0x148e91,this[_0x5054f2(0x107)]=_0x672e2e;const {..._0x1ea8db}=_0x3c06a8({},T,this[_0x5054f2(0x9b)]);this[_0x5054f2(0x107)][_0x5054f2(0x114)](Oe,_0x1ea8db);}[_0x451375(0xb6)](){var _0x3ffa5e=_0x451375;_0x4552ae(this[_0x3ffa5e(0xc6)],_0x32a788([[L],[I],[m],[b]],this['_config'][_0x3ffa5e(0x99)])),_0x21a21b(this['_injector'],[[m]]);}[_0x451375(0x10b)](){var _0x1b8371=_0x451375;_0x21a21b(this[_0x1b8371(0xc6)],[[b]]);}};J(O,_0x451375(0xac),_0x4c20a0[_0x451375(0x119)]),J(O,'pluginName',Ze),O=Be([_0x32035a(_0x1dd0cd),F(0x1,_0x28c77f(_0x335107)),F(0x2,_0x346109)],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 _0x3a9004=_0x50ee;(function(_0x4c0b18,_0x629717){var _0x43a061=_0x50ee,_0x5657b5=_0x4c0b18();while(!![]){try{var _0x266cd=parseInt(_0x43a061(0x147))/0x1+parseInt(_0x43a061(0x164))/0x2*(parseInt(_0x43a061(0x1b4))/0x3)+parseInt(_0x43a061(0x14d))/0x4+parseInt(_0x43a061(0x1bc))/0x5+-parseInt(_0x43a061(0x13c))/0x6+-parseInt(_0x43a061(0x129))/0x7+parseInt(_0x43a061(0x1cc))/0x8*(-parseInt(_0x43a061(0x1af))/0x9);if(_0x266cd===_0x629717)break;else _0x5657b5['push'](_0x5657b5['shift']());}catch(_0xe033a1){_0x5657b5['push'](_0x5657b5['shift']());}}}(_0x48e5,0xd7b41));var q=Object['defineProperty'],z=(_0x41fcd3,_0x3f091b,_0x21fcfd)=>_0x3f091b in _0x41fcd3?q(_0x41fcd3,_0x3f091b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21fcfd}):_0x41fcd3[_0x3f091b]=_0x21fcfd,d=(_0x3379b9,_0x3fee5e,_0x3b509e)=>z(_0x3379b9,typeof _0x3fee5e!=_0x3a9004(0x168)?_0x3fee5e+'':_0x3fee5e,_0x3b509e);import{CollaborationSessionService as _0x494676,SessionStatus as _0x3c864e,UniverCollaborationClientPlugin as _0x59c281}from'@univerjs-pro/collaboration-client';import{Disposable as _0x317463,toDisposable as _0x206159,Inject as _0x27f4aa,IUniverInstanceService as _0x28bdc3,Injector as _0x495900,IConfigService as _0x2f8d1e,ICommandService as _0x4c8a99,RxDisposable as _0xdd8606,UniverInstanceType as _0x184fe8,DisposableCollection as _0x5d113,CommandType as _0x501da6,DependentOn as _0xc02580,Plugin as _0x432084,merge as _0x6d2ee8,registerDependencies as _0x734f14,mergeOverrideWithDependencies as _0x4359e6,touchDependencies as _0x2ee2f7}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x54cd56,InsertSheetMutation as _0x19461a}from'@univerjs/sheets';import{SetZoomRatioOperation as _0xfa8492,SetScrollOperation as _0x323229}from'@univerjs/sheets-ui';import{useDependency as _0x14674a,useObservable as _0xb5b489,IUIPartsService as _0x38a075,BuiltInUIPart as _0x29a0d9,connectInjector as _0x51bf03}from'@univerjs/ui';import{jsx as _0x1148da,jsxs as _0x5ec651,Fragment as _0x145b60}from'react/jsx-runtime';import{Dropdown as _0x5dae37,clsx as _0x19ae26,Button as _0x1423fd}from'@univerjs/design';import{forwardRef as _0x4b6caf,useRef as _0x4dee9e,createElement as _0x593257,useState as _0x393f21,useEffect as _0x1e7f8d}from'react';import{CollaborationEvent as _0x1cc368,parseProtocolChangeset as _0x25a2d3}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x1bae77,Subject as _0x3e828c}from'rxjs';import{takeUntil as _0x2f308f,throttleTime as _0xd47df6}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x317463{constructor(){var _0x1527e5=_0x3a9004;super(...arguments),d(this,_0x1527e5(0x17e),new Set()),d(this,_0x1527e5(0x1bd),new Set());}[_0x3a9004(0x134)](_0x40d6e1){var _0x21cb93=_0x3a9004;return this[_0x21cb93(0x17e)][_0x21cb93(0x152)](_0x40d6e1),_0x206159(()=>this[_0x21cb93(0x17e)][_0x21cb93(0x184)](_0x40d6e1));}['registerInitialStateReporter'](_0x5e33d1){var _0x2ac00b=_0x3a9004;return this[_0x2ac00b(0x1bd)][_0x2ac00b(0x152)](_0x5e33d1),_0x206159(()=>this[_0x2ac00b(0x1bd)][_0x2ac00b(0x184)](_0x5e33d1));}[_0x3a9004(0x175)](_0x1d9dea){var _0x496fd2=_0x3a9004;return this['_sharedOperations'][_0x496fd2(0x131)](_0x1d9dea);}['getInitialStates'](_0x2dcdd4){var _0x631cb9=_0x3a9004;return Array[_0x631cb9(0x196)](this[_0x631cb9(0x1bd)])['map'](_0x138954=>_0x138954(_0x2dcdd4));}}var Ee=Object[_0x3a9004(0x173)],we=(_0x48f3fe,_0x3830b4,_0x4a8bc9,_0x2f277e)=>{var _0x58aec2=_0x3a9004;for(var _0x4a9c5c=_0x2f277e>0x1?void 0x0:_0x2f277e?Ee(_0x3830b4,_0x4a8bc9):_0x3830b4,_0x1d876d=_0x48f3fe[_0x58aec2(0x19f)]-0x1,_0x1a7a8a;_0x1d876d>=0x0;_0x1d876d--)(_0x1a7a8a=_0x48f3fe[_0x1d876d])&&(_0x4a9c5c=_0x1a7a8a(_0x4a9c5c)||_0x4a9c5c);return _0x4a9c5c;},Ne=(_0x59c137,_0x1a6faa)=>(_0x411f35,_0x2be373)=>_0x1a6faa(_0x411f35,_0x2be373,_0x59c137);let m=class extends _0x317463{constructor(_0x33f166){var _0x5317ca=_0x3a9004;super(),this[_0x5317ca(0x18b)]=_0x33f166,this[_0x5317ca(0x159)]();}[_0x3a9004(0x159)](){var _0x3b71de=_0x3a9004;[_0xfa8492['id'],_0x323229['id'],_0x54cd56['id']][_0x3b71de(0x1cb)](_0x1b899a=>{var _0x143d12=_0x3b71de;this[_0x143d12(0x169)](this[_0x143d12(0x18b)]['registerSharedOperation'](_0x1b899a));});}};m=we([Ne(0x0,_0x27f4aa(L))],m);var c=function(){var _0x3d1f28=_0x3a9004;return c=Object[_0x3d1f28(0x138)]||function(_0x443ac0){var _0xd45d4=_0x3d1f28;for(var _0x4587d1,_0x237cf6=0x1,_0x3e26a6=arguments[_0xd45d4(0x19f)];_0x237cf6<_0x3e26a6;_0x237cf6++){_0x4587d1=arguments[_0x237cf6];for(var _0x1ea9b1 in _0x4587d1)Object[_0xd45d4(0x1ad)][_0xd45d4(0x135)]['call'](_0x4587d1,_0x1ea9b1)&&(_0x443ac0[_0x1ea9b1]=_0x4587d1[_0x1ea9b1]);}return _0x443ac0;},c['apply'](this,arguments);},Ce=function(_0x4cf340,_0x230be5){var _0x56fb15=_0x3a9004,_0x5a8451={};for(var _0x360411 in _0x4cf340)Object[_0x56fb15(0x1ad)]['hasOwnProperty'][_0x56fb15(0x1a8)](_0x4cf340,_0x360411)&&_0x230be5[_0x56fb15(0x1b1)](_0x360411)<0x0&&(_0x5a8451[_0x360411]=_0x4cf340[_0x360411]);if(_0x4cf340!=null&&typeof Object[_0x56fb15(0x1c7)]==_0x56fb15(0x16b)){for(var _0x70a881=0x0,_0x360411=Object[_0x56fb15(0x1c7)](_0x4cf340);_0x70a881<_0x360411['length'];_0x70a881++)_0x230be5[_0x56fb15(0x1b1)](_0x360411[_0x70a881])<0x0&&Object['prototype'][_0x56fb15(0x140)][_0x56fb15(0x1a8)](_0x4cf340,_0x360411[_0x70a881])&&(_0x5a8451[_0x360411[_0x70a881]]=_0x4cf340[_0x360411[_0x70a881]]);}return _0x5a8451;},W=_0x4b6caf(function(_0x2042b3,_0x2746e3){var _0x12f9fc=_0x3a9004,_0x37a1d9=_0x2042b3[_0x12f9fc(0x17c)],_0x1c20e8=_0x2042b3['id'],_0x1268ea=_0x2042b3[_0x12f9fc(0x166)],_0x5b340a=_0x2042b3[_0x12f9fc(0x189)],_0x31abb1=Ce(_0x2042b3,[_0x12f9fc(0x17c),'id',_0x12f9fc(0x166),_0x12f9fc(0x189)]),_0x4b4189=_0x12f9fc(0x1c9)[_0x12f9fc(0x14a)](_0x1c20e8,'\x20')[_0x12f9fc(0x14a)](_0x1268ea||'')['trim'](),_0xc9d344=_0x4dee9e('_'[_0x12f9fc(0x14a)](Le()));return Y(_0x37a1d9,''[_0x12f9fc(0x14a)](_0x1c20e8),{'defIds':_0x37a1d9[_0x12f9fc(0x15b)],'idSuffix':_0xc9d344[_0x12f9fc(0x19c)]},c({'ref':_0x2746e3,'className':_0x4b4189},_0x31abb1),_0x5b340a);});function _0x48e5(){var _0x256776=['div','dispose','OFFLINE','not-following','IDLE','_collabSession','has','_status','values','registerSharedOperation','hasOwnProperty','_unitID','currentColor','assign','LIVESHARE_TERMINATE','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverIcon','3880464sNkKlC','offline','NOT_FOLLOWING','clear','propertyIsEnumerable','LIVESHARE_NEW_HOST','Start','svg','xlink:href','_fetchOperations','_handleTerminate','548285tAffQo','getUnitId','_handleOffline','concat','HEADER_MENU','onStarting','6277216fPWLNA','_commandService','url(#$1','_config','entries','add','http://www.w3.org/2000/svg','_startPresenting','_presenter','getMemberID','executeCommand','displayName','_init','unitId','defIds','createInstance','1em','SAME_OPERATION_SHARE_INTERVAL','dispose$','status$','none','stringify','pluginName','2088194UbFDpP','getInitialStates','className','_configService','symbol','disposeWithMe','_handleNewChangeSets','function','_stopPresenting','fill','PRESENTING','includes','find','random','getTypeOfUnitDisposed$','getOwnPropertyDescriptor','complete','shouldShareOperation','init','FOLLOWING','string','LIVESHARE_REQUEST_HOST','getLiveShareCoordinator','unsubscribe','icon','path','_sharedOperations','_commandDisposable','_collabSessionService','mask','_startFollowing','startFollowing','delete','Present\x20this\x20document','children','idle','data','extend','_handleNewHost','_liveShareService','_handleOperation','params','idSuffix','presenting','tryStartPresenting','_uiPartsService','sheet','following','UNIVER_SHEET','colorChannel1','from','override','NEW_CHANGESETS','asObservable','replace','type','current','mutations','ONLINE','length','defineProperty','defs','evenodd','get','_startLiveShareCoordinator','Stop\x20presenting','_status$','memberID','call','stopPresenting','_univerInstanceService','onRendered','next','prototype','substring','4347oMbufq','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','indexOf','_injector','onCommandExecuted','3JRqGQS','_mountLiveShare','send','tag','Start\x20following','parse','setConfig','getValue','4274355POdqFa','_reporters','registerComponent','LIVESHARE_FETCH_OPERATIONS','operations','You\x27re\x20presenting\x20the\x20document','You\x27re\x20following\x20the\x20presenter','toString','attrs','_handleOnline','button','getOwnPropertySymbols','0\x200\x2017\x2017','univerjs-icon\x20univerjs-icon-','subscribe','forEach','17624SxCCYD','_entities','_stopFollowing','pipe','LiveShareIcon','sessionStatus$','presenter','univer-size-4','getTypeOfUnitAdded$','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','9955701pqTHNN','univer-border-none\x20univer-text-gray-600\x20univer-outline-none'];_0x48e5=function(){return _0x256776;};return _0x48e5();}function Y(_0x102606,_0x2c247c,_0x2bf9b4,_0x2b366e,_0x1f6c20){var _0x311deb=_0x3a9004;return _0x593257(_0x102606[_0x311deb(0x1b7)],c(c({'key':_0x2c247c},De(_0x102606,_0x2bf9b4,_0x1f6c20)),_0x2b366e),(xe(_0x102606,_0x2bf9b4)['children']||[])['map'](function(_0x56ab85,_0xcff9df){var _0x3e4bfc=_0x311deb;return Y(_0x56ab85,''[_0x3e4bfc(0x14a)](_0x2c247c,'-')[_0x3e4bfc(0x14a)](_0x102606[_0x3e4bfc(0x1b7)],'-')['concat'](_0xcff9df),_0x2bf9b4,void 0x0,_0x1f6c20);}));}function De(_0x290539,_0x2ea1b5,_0x231bb3){var _0x4284ef=_0x3a9004,_0x3a3930=c({},_0x290539[_0x4284ef(0x1c4)]);_0x231bb3!=null&&_0x231bb3[_0x4284ef(0x195)]&&_0x3a3930[_0x4284ef(0x16d)]==='colorChannel1'&&(_0x3a3930['fill']=_0x231bb3[_0x4284ef(0x195)]),_0x290539[_0x4284ef(0x1b7)]===_0x4284ef(0x181)&&_0x3a3930['id']&&(_0x3a3930['id']=_0x3a3930['id']+_0x2ea1b5[_0x4284ef(0x18e)]),Object[_0x4284ef(0x151)](_0x3a3930)[_0x4284ef(0x1cb)](function(_0x5548c0){var _0x4fc70f=_0x4284ef,_0x329620=_0x5548c0[0x0],_0x3a579b=_0x5548c0[0x1];_0x329620==='mask'&&typeof _0x3a579b==_0x4fc70f(0x178)&&(_0x3a3930[_0x329620]=_0x3a579b[_0x4fc70f(0x19a)](/url\(#(.*)\)/,_0x4fc70f(0x14f)[_0x4fc70f(0x14a)](_0x2ea1b5[_0x4fc70f(0x18e)],')')));});var _0x4f1ea4=_0x2ea1b5[_0x4284ef(0x15b)];return!_0x4f1ea4||_0x4f1ea4[_0x4284ef(0x19f)]===0x0||(_0x290539['tag']==='use'&&_0x3a3930['xlink:href']&&(_0x3a3930[_0x4284ef(0x144)]=_0x3a3930['xlink:href']+_0x2ea1b5[_0x4284ef(0x18e)]),Object[_0x4284ef(0x151)](_0x3a3930)[_0x4284ef(0x1cb)](function(_0x353f6a){var _0x4b890a=_0x4284ef,_0x2435c0=_0x353f6a[0x0],_0x30a16e=_0x353f6a[0x1];typeof _0x30a16e==_0x4b890a(0x178)&&(_0x3a3930[_0x2435c0]=_0x30a16e[_0x4b890a(0x19a)](/url\(#(.*)\)/,_0x4b890a(0x14f)['concat'](_0x2ea1b5[_0x4b890a(0x18e)],')')));})),_0x3a3930;}function xe(_0x2fa228,_0x133529){var _0x1c6724=_0x3a9004,_0xeb08cc,_0x21fd0e=_0x133529[_0x1c6724(0x15b)];return!_0x21fd0e||_0x21fd0e[_0x1c6724(0x19f)]===0x0?_0x2fa228:_0x2fa228['tag']===_0x1c6724(0x1a1)&&(!((_0xeb08cc=_0x2fa228['children'])===null||_0xeb08cc===void 0x0)&&_0xeb08cc[_0x1c6724(0x19f)])?c(c({},_0x2fa228),{'children':_0x2fa228[_0x1c6724(0x186)]['map'](function(_0x5305d4){var _0x44a590=_0x1c6724;return typeof _0x5305d4[_0x44a590(0x1c4)]['id']==_0x44a590(0x178)&&_0x21fd0e&&_0x21fd0e[_0x44a590(0x16f)](_0x5305d4['attrs']['id'])?c(c({},_0x5305d4),{'attrs':c(c({},_0x5305d4[_0x44a590(0x1c4)]),{'id':_0x5305d4[_0x44a590(0x1c4)]['id']+_0x133529[_0x44a590(0x18e)]})}):_0x5305d4;})}):_0x2fa228;}function Le(){var _0x1387d1=_0x3a9004;return Math[_0x1387d1(0x171)]()[_0x1387d1(0x1c3)](0x24)[_0x1387d1(0x1ae)](0x2,0x8);}W[_0x3a9004(0x158)]=_0x3a9004(0x13b);var ye={'tag':_0x3a9004(0x143),'attrs':{'xmlns':_0x3a9004(0x153),'fill':_0x3a9004(0x161),'viewBox':_0x3a9004(0x1c8),'width':_0x3a9004(0x15d),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x3a9004(0x137),'d':_0x3a9004(0x128)}},{'tag':_0x3a9004(0x17d),'attrs':{'fill':_0x3a9004(0x137),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x3a9004(0x1a2),'clipRule':_0x3a9004(0x1a2)}}]},B=_0x4b6caf(function(_0x39f9a6,_0x1d8d43){return _0x593257(W,Object['assign']({},_0x39f9a6,{'id':'live-share-icon','ref':_0x1d8d43,'icon':ye}));});B[_0x3a9004(0x158)]=_0x3a9004(0x123);var Re=Object[_0x3a9004(0x173)],Z=(_0x29d52f,_0x128585,_0xb0870f,_0x5c9a60)=>{for(var _0x8ce863=_0x5c9a60>0x1?void 0x0:_0x5c9a60?Re(_0x128585,_0xb0870f):_0x128585,_0x28d625=_0x29d52f['length']-0x1,_0xf8581f;_0x28d625>=0x0;_0x28d625--)(_0xf8581f=_0x29d52f[_0x28d625])&&(_0x8ce863=_0xf8581f(_0x8ce863)||_0x8ce863);return _0x8ce863;},f=(_0x4365c,_0x1e1fdc)=>(_0x50f3e7,_0x58655b)=>_0x1e1fdc(_0x50f3e7,_0x58655b,_0x4365c);let I=class extends _0xdd8606{constructor(_0x5ade5e,_0x394a8e,_0x36a6ca){var _0x196571=_0x3a9004;super(),d(this,_0x196571(0x1cd),new Map()),(this[_0x196571(0x1aa)]=_0x5ade5e,this[_0x196571(0x1b2)]=_0x394a8e,this[_0x196571(0x180)]=_0x36a6ca,this[_0x196571(0x159)]());}async[_0x3a9004(0x17a)](_0x5ba764){var _0x3ef010=_0x3a9004;return this['_entities']['has'](_0x5ba764)||await this['_startLiveShareCoordinator'](_0x5ba764),this[_0x3ef010(0x1cd)]['get'](_0x5ba764);}['_init'](){var _0xb66d23=_0x3a9004;this['_univerInstanceService'][_0xb66d23(0x127)](_0x184fe8[_0xb66d23(0x194)])[_0xb66d23(0x122)](_0x2f308f(this[_0xb66d23(0x15f)]))[_0xb66d23(0x1ca)](async _0x35e3f3=>{var _0x351e32=_0xb66d23;const _0x5c2f69=_0x35e3f3[_0x351e32(0x148)]();this[_0x351e32(0x1cd)][_0x351e32(0x131)](_0x5c2f69)||this[_0x351e32(0x1a4)](_0x5c2f69);}),this[_0xb66d23(0x1aa)][_0xb66d23(0x172)](_0x184fe8[_0xb66d23(0x194)])[_0xb66d23(0x122)](_0x2f308f(this[_0xb66d23(0x15f)]))['subscribe'](_0x32e442=>{var _0x374ebe=_0xb66d23;const _0x2f52dd=_0x32e442['getUnitId'](),_0x3778f5=this['_entities'][_0x374ebe(0x1a3)](_0x2f52dd);_0x3778f5==null||_0x3778f5[_0x374ebe(0x12c)]();});}async[_0x3a9004(0x1a4)](_0x423882){var _0x550a70=_0x3a9004;const _0x2d336b=await this[_0x550a70(0x180)]['requireSession'](_0x423882),_0x885cd6=this['_injector'][_0x550a70(0x15c)](C,_0x423882,_0x2d336b);return _0x885cd6[_0x550a70(0x176)](),this[_0x550a70(0x1cd)]['set'](_0x423882,_0x885cd6),_0x885cd6;}};I=Z([f(0x0,_0x28bdc3),f(0x1,_0x27f4aa(_0x495900)),f(0x2,_0x27f4aa(_0x494676))],I);var h=(_0x549493=>(_0x549493[_0x3a9004(0x12d)]=_0x3a9004(0x13d),_0x549493[_0x3a9004(0x12f)]=_0x3a9004(0x187),_0x549493['FOLLOWING']='following',_0x549493[_0x3a9004(0x13e)]=_0x3a9004(0x12e),_0x549493['PRESENTING']=_0x3a9004(0x18f),_0x549493))(h||{});const Pe=_0x3a9004(0x15e),Ae=0xc8;let C=class extends _0xdd8606{constructor(_0x3f5d06,_0x5202aa,_0xd2cea9,_0x1fc31e,_0x2abc2b){var _0x104f1e=_0x3a9004;super(),d(this,_0x104f1e(0x1a6),new _0x1bae77(_0x104f1e(0x187))),d(this,_0x104f1e(0x160),this['_status$'][_0x104f1e(0x199)]()),d(this,_0x104f1e(0x159),!0x1),d(this,_0x104f1e(0x17f),null),d(this,_0x104f1e(0x155),null),(this[_0x104f1e(0x136)]=_0x3f5d06,this[_0x104f1e(0x130)]=_0x5202aa,this['_configService']=_0xd2cea9,this[_0x104f1e(0x18b)]=_0x1fc31e,this[_0x104f1e(0x14e)]=_0x2abc2b);}get[_0x3a9004(0x132)](){var _0x1719ff=_0x3a9004;return this[_0x1719ff(0x1a6)][_0x1719ff(0x1bb)]();}[_0x3a9004(0x12c)](){var _0x2ef957=_0x3a9004,_0x1605a0;(_0x1605a0=this[_0x2ef957(0x17f)])==null||_0x1605a0[_0x2ef957(0x12c)](),this[_0x2ef957(0x1a6)][_0x2ef957(0x1ac)](_0x2ef957(0x187)),this[_0x2ef957(0x1a6)][_0x2ef957(0x174)]();}[_0x3a9004(0x176)](){var _0xee0b5f=_0x3a9004;this[_0xee0b5f(0x159)]||(this[_0xee0b5f(0x159)]=!0x0,this[_0xee0b5f(0x130)][_0xee0b5f(0x124)][_0xee0b5f(0x122)](_0x2f308f(this[_0xee0b5f(0x15f)]))['subscribe'](_0x2667ea=>{var _0x410a06=_0xee0b5f;switch(_0x2667ea){case _0x3c864e[_0x410a06(0x12d)]:this[_0x410a06(0x149)]();break;case _0x3c864e[_0x410a06(0x19e)]:this[_0x410a06(0x1c5)]();break;}}),this[_0xee0b5f(0x130)]['event$'][_0xee0b5f(0x122)](_0x2f308f(this[_0xee0b5f(0x15f)]))[_0xee0b5f(0x1ca)](_0x1b409d=>{var _0x5dec01=_0xee0b5f;const {eventID:_0x2be690}=_0x1b409d;switch(_0x2be690){case _0x1cc368[_0x5dec01(0x141)]:this[_0x5dec01(0x18a)](_0x1b409d);break;case _0x1cc368['LIVESHARE_OPERATION']:this[_0x5dec01(0x18c)](_0x1b409d);break;case _0x1cc368[_0x5dec01(0x139)]:this['_handleTerminate']();break;case _0x1cc368[_0x5dec01(0x198)]:this[_0x5dec01(0x16a)](_0x1b409d);break;}}));}[_0x3a9004(0x190)](){var _0x13c1cb=_0x3a9004;this[_0x13c1cb(0x130)]['send']({'eventID':_0x1cc368[_0x13c1cb(0x179)],'data':{'unitID':this[_0x13c1cb(0x136)],'userID':this['_collabSession'][_0x13c1cb(0x156)]()}},this['_unitID']);}[_0x3a9004(0x1a9)](){var _0x1141fd=_0x3a9004;this[_0x1141fd(0x132)]==='presenting'&&(this[_0x1141fd(0x1a6)]['next'](_0x1141fd(0x187)),this[_0x1141fd(0x130)]['send']({'eventID':_0x1cc368[_0x1141fd(0x139)],'data':{'unitID':this['_unitID']}},this['_unitID']));}[_0x3a9004(0x183)](){var _0x34018b=_0x3a9004;this['_status']===_0x34018b(0x12e)&&(this[_0x34018b(0x1a6)][_0x34018b(0x1ac)](_0x34018b(0x193)),this[_0x34018b(0x182)]());}['stopFollowing'](){var _0x56d187=_0x3a9004;this[_0x56d187(0x132)]===_0x56d187(0x193)&&this[_0x56d187(0x1ce)]();}['_handleNewHost'](_0x4e3ea4){var _0x46075c=_0x3a9004;const {presenter:_0x2560a7}=_0x4e3ea4['data'],_0x52d984=this[_0x46075c(0x130)][_0x46075c(0x156)]();this['_presenter']=_0x2560a7,_0x2560a7===_0x52d984?(this[_0x46075c(0x1ce)](),this[_0x46075c(0x154)]()):this[_0x46075c(0x132)]!==_0x46075c(0x12e)&&(this[_0x46075c(0x16c)](),this[_0x46075c(0x182)]());}[_0x3a9004(0x145)](){var _0x3cd11e=_0x3a9004;const _0x2aff3b={'eventID':_0x1cc368[_0x3cd11e(0x1bf)]};this[_0x3cd11e(0x130)]['send'](_0x2aff3b,this['_unitID']);}[_0x3a9004(0x146)](){var _0x2859f6=_0x3a9004;this['_presenter']=null,this[_0x2859f6(0x132)]!==_0x2859f6(0x18f)&&this['_beIdle']();}[_0x3a9004(0x16a)](_0x59a0a6){var _0x3650ed=_0x3a9004;if(this[_0x3650ed(0x132)]===_0x3650ed(0x193)&&this[_0x3650ed(0x155)]===_0x59a0a6['data'][_0x3650ed(0x1a7)]){const _0x5ad254=_0x25a2d3(_0x59a0a6[_0x3650ed(0x188)])[_0x3650ed(0x19d)]['reverse']()[_0x3650ed(0x170)](_0x33f5fb=>_0x33f5fb['id']===_0x19461a['id']);if(_0x5ad254){const _0x209736=_0x5ad254[_0x3650ed(0x18d)][_0x3650ed(0x15a)],_0x40f31a=_0x5ad254['params'][_0x3650ed(0x192)]['id'];setTimeout(()=>{var _0xc96d89=_0x3650ed;this[_0xc96d89(0x14e)][_0xc96d89(0x157)](_0x54cd56['id'],{'unitId':_0x209736,'subUnitId':_0x40f31a},{'fromCollab':!0x0});});}}}[_0x3a9004(0x154)](){var _0x1a5ff7=_0x3a9004;this[_0x1a5ff7(0x1a6)][_0x1a5ff7(0x1ac)]('presenting');const _0x49717d=new Map(),_0x2c064e=this['_commandDisposable']=new _0x5d113();_0x2c064e[_0x1a5ff7(0x152)](_0x206159(()=>{var _0x152730=_0x1a5ff7;_0x49717d[_0x152730(0x1cb)](_0x52e61b=>_0x52e61b[_0x152730(0x174)]()),_0x49717d[_0x152730(0x13f)]();})),_0x2c064e[_0x1a5ff7(0x152)](this[_0x1a5ff7(0x14e)][_0x1a5ff7(0x1b3)](_0x185030=>{var _0xa298be=_0x1a5ff7,_0x31fce9;if(_0x185030[_0xa298be(0x19b)]!==_0x501da6['OPERATION']||!this[_0xa298be(0x18b)]['shouldShareOperation'](_0x185030['id']))return;const {id:_0xc5e0cc}=_0x185030;let _0xfecabc;_0x49717d[_0xa298be(0x131)](_0xc5e0cc)?_0xfecabc=_0x49717d['get'](_0xc5e0cc):(_0xfecabc=new _0x3e828c(),_0x49717d['set'](_0xc5e0cc,_0xfecabc),_0xfecabc[_0xa298be(0x122)](_0xd47df6((_0x31fce9=this[_0xa298be(0x167)]['getConfig'](Pe))!=null?_0x31fce9:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xa298be(0x1ca)](_0x5bf614=>{var _0x55c1df=_0xa298be;this[_0x55c1df(0x130)][_0x55c1df(0x1b6)]({'eventID':_0x1cc368['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x55c1df(0x136)],'operations':{[_0x5bf614['id']]:{'id':_0x5bf614['id'],'params':JSON[_0x55c1df(0x162)](_0x5bf614[_0x55c1df(0x18d)])}}}},this[_0x55c1df(0x136)]);})),_0xfecabc['next'](_0x185030);})),this[_0x1a5ff7(0x18b)][_0x1a5ff7(0x165)](this[_0x1a5ff7(0x136)])[_0x1a5ff7(0x1cb)](_0x49abac=>this[_0x1a5ff7(0x130)][_0x1a5ff7(0x1b6)]({'eventID':_0x1cc368['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x49abac['id']]:{'id':_0x49abac['id'],'params':JSON[_0x1a5ff7(0x162)](_0x49abac[_0x1a5ff7(0x18d)])}}}},this[_0x1a5ff7(0x136)]));}[_0x3a9004(0x16c)](){var _0x40f7ff=_0x3a9004,_0x2b94c6;this['_status$']['next']('idle'),(_0x2b94c6=this[_0x40f7ff(0x17f)])==null||_0x2b94c6['dispose'](),this['_commandDisposable']=null;}[_0x3a9004(0x182)](){var _0x51b38d=_0x3a9004,_0x482b32;(_0x482b32=this[_0x51b38d(0x17f)])==null||_0x482b32['dispose'](),this[_0x51b38d(0x1a6)]['next'](_0x51b38d(0x193));}['_beIdle'](){var _0x36fe84=_0x3a9004,_0x4834bb;this[_0x36fe84(0x1a6)]['next'](_0x36fe84(0x187)),(_0x4834bb=this[_0x36fe84(0x17f)])==null||_0x4834bb[_0x36fe84(0x12c)](),this[_0x36fe84(0x17f)]=null;}['_stopFollowing'](){var _0x4d69b1=_0x3a9004,_0x3ca848;this[_0x4d69b1(0x1a6)][_0x4d69b1(0x1ac)](_0x4d69b1(0x12e)),(_0x3ca848=this[_0x4d69b1(0x17f)])==null||_0x3ca848[_0x4d69b1(0x12c)]();}[_0x3a9004(0x18c)](_0x2e70e3){var _0x1906ee=_0x3a9004;if([_0x1906ee(0x18f),_0x1906ee(0x12e),_0x1906ee(0x13d)][_0x1906ee(0x16f)](this[_0x1906ee(0x132)])||!_0x2e70e3[_0x1906ee(0x188)][_0x1906ee(0x125)]||_0x2e70e3[_0x1906ee(0x188)][_0x1906ee(0x125)]===this[_0x1906ee(0x130)][_0x1906ee(0x156)]())return;this[_0x1906ee(0x132)]===_0x1906ee(0x187)&&this['_startFollowing']();const _0x47d4a0=_0x2e70e3['data'][_0x1906ee(0x1c0)];Object[_0x1906ee(0x133)](_0x47d4a0)['forEach'](_0x3f6ea7=>{var _0x16730d=_0x1906ee;this[_0x16730d(0x14e)][_0x16730d(0x157)](_0x3f6ea7['id'],_0x3f6ea7[_0x16730d(0x18d)]?JSON[_0x16730d(0x1b9)](_0x3f6ea7[_0x16730d(0x18d)]):null,{'fromCollab':!0x0});});}[_0x3a9004(0x149)](){var _0x495213=_0x3a9004,_0x284ad9;this[_0x495213(0x1a6)]['next'](_0x495213(0x13d)),(_0x284ad9=this['_commandDisposable'])==null||_0x284ad9['dispose']();}[_0x3a9004(0x1c5)](){var _0x4d1154=_0x3a9004;this[_0x4d1154(0x1a6)]['next'](_0x4d1154(0x187)),this[_0x4d1154(0x145)]();}};C=Z([f(0x2,_0x2f8d1e),f(0x3,_0x27f4aa(L)),f(0x4,_0x4c8a99)],C);function Te(){var _0x1928b8=_0x3a9004;const _0x480d93=_0x14674a(I),_0x29b494=_0x14674a(_0x28bdc3),_0x94dc4f=_0xb5b489(()=>_0x29b494['getCurrentTypeOfUnit$'](_0x184fe8[_0x1928b8(0x194)]),void 0x0,!0x1,[]),[_0x3b5bf5,_0x5b4385]=_0x393f21(null),[_0x2bb3d3,_0x5c842d]=_0x393f21(h[_0x1928b8(0x12f)]),_0x30457d=_0x4dee9e(null);return _0x1e7f8d(()=>(_0x94dc4f&&_0x480d93[_0x1928b8(0x17a)](_0x94dc4f[_0x1928b8(0x148)]())['then'](_0xffc51b=>{var _0x2da001=_0x1928b8;_0x5b4385(_0xffc51b),_0x30457d['current']=_0xffc51b[_0x2da001(0x160)][_0x2da001(0x1ca)](_0x43e85e=>{_0x5c842d(_0x43e85e);});}),()=>{var _0x151577=_0x1928b8,_0x4896a7;(_0x4896a7=_0x30457d[_0x151577(0x19c)])==null||_0x4896a7[_0x151577(0x17b)](),_0x30457d[_0x151577(0x19c)]=null;}),[_0x94dc4f,_0x480d93]),_0x3b5bf5?_0x1148da(_0x5dae37,{'align':'end','disabled':_0x2bb3d3===h[_0x1928b8(0x12d)],'className':_0x1928b8(0x1b0),'overlay':_0x1148da($e,{'status':_0x2bb3d3,'coordinator':_0x3b5bf5}),'children':_0x1148da('button',{'className':_0x19ae26(_0x1928b8(0x12a),{'univer-cursor-not-allowed':_0x2bb3d3===h[_0x1928b8(0x12d)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2bb3d3!==h[_0x1928b8(0x12d)]}),'type':_0x1928b8(0x1c6),'children':_0x1148da(B,{'className':_0x1928b8(0x126)})})}):null;}function $e(_0x427392){var _0x595514=_0x3a9004;const {status:_0x46fa8d,coordinator:_0x3ede99}=_0x427392;switch(_0x46fa8d){case h[_0x595514(0x12f)]:return _0x1148da(Fe,{'coordinator':_0x3ede99});case h[_0x595514(0x177)]:return _0x1148da(He,{'coordinator':_0x3ede99});case h['NOT_FOLLOWING']:return _0x1148da(je,{'coordinator':_0x3ede99});case h[_0x595514(0x12d)]:return _0x1148da(Ve,{});case h[_0x595514(0x16e)]:return _0x1148da(Ue,{'coordinator':_0x3ede99});default:return null;}}function Fe(_0x489de1){var _0x5b60=_0x3a9004;const {coordinator:_0x4d6fbb}=_0x489de1;return _0x5ec651(_0x145b60,{'children':[_0x1148da('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x5b60(0x185)}),_0x1148da(_0x1423fd,{'onClick':()=>_0x4d6fbb[_0x5b60(0x190)](),'children':_0x5b60(0x142)})]});}function He(_0x3551eb){var _0x514d4e=_0x3a9004;const {coordinator:_0x5ddfdf}=_0x3551eb;return _0x5ec651(_0x145b60,{'children':[_0x1148da(_0x514d4e(0x12b),{'className':_0x514d4e(0x13a),'children':_0x514d4e(0x1c2)}),_0x1148da(_0x1423fd,{'onClick':()=>_0x5ddfdf['stopFollowing'](),'children':'Stop\x20following'})]});}function je(_0x532b46){var _0x214219=_0x3a9004;const {coordinator:_0x2ce70e}=_0x532b46;return _0x5ec651(_0x145b60,{'children':[_0x1148da('div',{'className':_0x214219(0x13a),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x1148da(_0x1423fd,{'variant':'text','onClick':()=>_0x2ce70e[_0x214219(0x183)](),'children':_0x214219(0x1b8)})]});}function Ue(_0x1604bd){var _0xa86fc4=_0x3a9004;const {coordinator:_0x3e7eb2}=_0x1604bd;return _0x5ec651(_0x145b60,{'children':[_0x1148da(_0xa86fc4(0x12b),{'className':_0xa86fc4(0x13a),'children':_0xa86fc4(0x1c1)}),_0x1148da(_0x1423fd,{'variant':'default','onClick':()=>_0x3e7eb2['stopPresenting'](),'children':_0xa86fc4(0x1a5)})]});}function Ve(){return _0x1148da(_0x145b60,{'children':'You\x27are\x20offline.'});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x2748cc,_0x4cbaab,_0x478cfa,_0x2f7305)=>{for(var _0x5941c3=_0x2f7305>0x1?void 0x0:_0x2f7305?Me(_0x4cbaab,_0x478cfa):_0x4cbaab,_0x5aa938=_0x2748cc['length']-0x1,_0x463870;_0x5aa938>=0x0;_0x5aa938--)(_0x463870=_0x2748cc[_0x5aa938])&&(_0x5941c3=_0x463870(_0x5941c3)||_0x5941c3);return _0x5941c3;},$=(_0x102b55,_0x2451de)=>(_0x155aa3,_0x3ba4c2)=>_0x2451de(_0x155aa3,_0x3ba4c2,_0x102b55);let b=class extends _0x317463{constructor(_0x16e13d,_0x3b9d16){var _0x32089c=_0x3a9004;super(),this[_0x32089c(0x1b2)]=_0x16e13d,this[_0x32089c(0x191)]=_0x3b9d16,this[_0x32089c(0x1b5)]();}[_0x3a9004(0x1b5)](){var _0x2f61d2=_0x3a9004;this[_0x2f61d2(0x169)](this[_0x2f61d2(0x191)][_0x2f61d2(0x1be)](_0x29a0d9[_0x2f61d2(0x14b)],()=>_0x51bf03(Te,this[_0x2f61d2(0x1b2)])));}};b=ke([$(0x0,_0x27f4aa(_0x495900)),$(0x1,_0x38a075)],b);var Ge=Object[_0x3a9004(0x1a0)],We=Object[_0x3a9004(0x173)],Ye=(_0x430380,_0x33a476,_0x404f3a)=>_0x33a476 in _0x430380?Ge(_0x430380,_0x33a476,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x404f3a}):_0x430380[_0x33a476]=_0x404f3a,Be=(_0x54b0da,_0x2b9bdd,_0x49e10b,_0x1755e7)=>{var _0x5d8440=_0x3a9004;for(var _0x38f2b5=_0x1755e7>0x1?void 0x0:_0x1755e7?We(_0x2b9bdd,_0x49e10b):_0x2b9bdd,_0x5f3ced=_0x54b0da[_0x5d8440(0x19f)]-0x1,_0x12305b;_0x5f3ced>=0x0;_0x5f3ced--)(_0x12305b=_0x54b0da[_0x5f3ced])&&(_0x38f2b5=_0x12305b(_0x38f2b5)||_0x38f2b5);return _0x38f2b5;},F=(_0x328a8b,_0x441bf8)=>(_0x38b365,_0x557192)=>_0x441bf8(_0x38b365,_0x557192,_0x328a8b),J=(_0x48896d,_0x506de4,_0xafc80f)=>Ye(_0x48896d,typeof _0x506de4!='symbol'?_0x506de4+'':_0x506de4,_0xafc80f);function _0x50ee(_0x357af5,_0x33d458){var _0x48e519=_0x48e5();return _0x50ee=function(_0x50eea8,_0x42fa9c){_0x50eea8=_0x50eea8-0x122;var _0x425dec=_0x48e519[_0x50eea8];return _0x425dec;},_0x50ee(_0x357af5,_0x33d458);}const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x432084{constructor(_0x26d9b6=T,_0x49a2bb,_0x5860ee){var _0x217c37=_0x3a9004;super(),this[_0x217c37(0x150)]=_0x26d9b6,this[_0x217c37(0x1b2)]=_0x49a2bb,this[_0x217c37(0x167)]=_0x5860ee;const {..._0x92a2a}=_0x6d2ee8({},T,this['_config']);this[_0x217c37(0x167)][_0x217c37(0x1ba)](Oe,_0x92a2a);}[_0x3a9004(0x14c)](){var _0x39d98f=_0x3a9004;_0x734f14(this[_0x39d98f(0x1b2)],_0x4359e6([[L],[I],[m],[b]],this[_0x39d98f(0x150)][_0x39d98f(0x197)])),_0x2ee2f7(this[_0x39d98f(0x1b2)],[[m]]);}[_0x3a9004(0x1ab)](){var _0x16ebb4=_0x3a9004;_0x2ee2f7(this[_0x16ebb4(0x1b2)],[[b]]);}};J(O,_0x3a9004(0x19b),_0x184fe8['UNIVER_UNKNOWN']),J(O,_0x3a9004(0x163),Ze),O=Be([_0xc02580(_0x59c281),F(0x1,_0x27f4aa(_0x495900)),F(0x2,_0x2f8d1e)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x451375=_0xa190;(function(_0x1e9cbb,_0x5bffbc){var _0x185ef2=_0xa190,_0x37c213=_0x1e9cbb();while(!![]){try{var _0x57a358=parseInt(_0x185ef2(0xa1))/0x1+parseInt(_0x185ef2(0xe7))/0x2+-parseInt(_0x185ef2(0xe6))/0x3*(-parseInt(_0x185ef2(0xc3))/0x4)+parseInt(_0x185ef2(0xf6))/0x5+parseInt(_0x185ef2(0xc8))/0x6*(parseInt(_0x185ef2(0xdb))/0x7)+-parseInt(_0x185ef2(0x126))/0x8+-parseInt(_0x185ef2(0x96))/0x9*(parseInt(_0x185ef2(0xd4))/0xa);if(_0x57a358===_0x5bffbc)break;else _0x37c213['push'](_0x37c213['shift']());}catch(_0x4db724){_0x37c213['push'](_0x37c213['shift']());}}}(_0x5bdd,0x19817));var q=Object['defineProperty'],z=(_0x575a9e,_0x54851e,_0x3ab20b)=>_0x54851e in _0x575a9e?q(_0x575a9e,_0x54851e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ab20b}):_0x575a9e[_0x54851e]=_0x3ab20b,d=(_0x2fbd89,_0x2ff064,_0x327381)=>z(_0x2fbd89,typeof _0x2ff064!=_0x451375(0xd5)?_0x2ff064+'':_0x2ff064,_0x327381);import{CollaborationSessionService as _0x28a12b,SessionStatus as _0xd06163,UniverCollaborationClientPlugin as _0x1dd0cd}from'@univerjs-pro/collaboration-client';import{Disposable as _0x2313b0,toDisposable as _0x43b1a9,Inject as _0x28c77f,IUniverInstanceService as _0x3e5199,Injector as _0x335107,IConfigService as _0x346109,ICommandService as _0x4a09d4,RxDisposable as _0x36a016,UniverInstanceType as _0x4c20a0,DisposableCollection as _0x1b939f,CommandType as _0x1862c6,DependentOn as _0x32035a,Plugin as _0x1c27e2,merge as _0x3c06a8,registerDependencies as _0x4552ae,mergeOverrideWithDependencies as _0x32a788,touchDependencies as _0x21a21b}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x21f0ce,InsertSheetMutation as _0x198dc6}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x274716,SetScrollOperation as _0x186685}from'@univerjs/sheets-ui';import{useDependency as _0x2de017,useObservable as _0x25276a,IUIPartsService as _0xb65b9,BuiltInUIPart as _0x51a6c7,connectInjector as _0x2c0420}from'@univerjs/ui';import{jsx as _0x5aa147,jsxs as _0x2b969d,Fragment as _0x5b6ea3}from'react/jsx-runtime';function _0x5bdd(){var _0x59216a=['icon','48gDjMyl','358320JQoUiu','disposeWithMe','includes','trim','1em','operations','onCommandExecuted','_collabSession','FOLLOWING','substring','UNIVER_SHEET','_entities','_handleOffline','asObservable','button','82435yfXSnr','none','unsubscribe','_handleTerminate','_reporters','following','parse','tryStartPresenting','indexOf','getMemberID','values','getConfig','_liveShareService','You\x27re\x20following\x20the\x20presenter','extend','next','data','_configService','set','_handleOnline','registerComponent','onRendered','random','idSuffix','requireSession','_collabSessionService','defIds','univer-size-4','LiveShareIcon','_stopFollowing','setConfig','getOwnPropertySymbols','_fetchOperations','dispose','current','UNIVER_UNKNOWN','hasOwnProperty','call','prototype','getOwnPropertyDescriptor','LIVESHARE_OPERATION','_stopPresenting','presenter','url(#$1','stringify','currentColor','You\x27re\x20presenting\x20the\x20document','mutations','580968svnHWO','find','You\x27are\x20offline.','Stop\x20following','getCurrentTypeOfUnit$','string','propertyIsEnumerable','UniverIcon','executeCommand','_handleOperation','tag','_handleNewHost','You\x27re\x20not\x20following\x20the\x20presenter','xlink:href','status$','pipe','add','colorChannel1','length','LIVESHARE_TERMINATE','className','NEW_CHANGESETS','stopFollowing','_startFollowing','shouldShareOperation','registerSharedOperation','function','evenodd','9dTaiwk','_mountLiveShare','text','override','get','_config','not-following','end','getInitialStates','attrs','map','179962dUejhy','complete','Present\x20this\x20document','assign','apply','default','OPERATION','delete','fill','_univerInstanceService','getUnitId','type','_uiPartsService','defineProperty','LIVESHARE_FETCH_OPERATIONS','IDLE','_commandDisposable','forEach','defs','_presenter','_status$','onStarting','_commandService','dispose$','OFFLINE','_startLiveShareCoordinator','_handleNewChangeSets','offline','live-share.config','_unitID','0\x200\x2017\x2017','idle','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','LIVESHARE_REQUEST_HOST','27436WdZUYh','startFollowing','mask','_injector','children','1128tfXBPc','_beIdle','init','params','getLiveShareCoordinator','createInstance','registerInitialStateReporter','entries','then','subscribe','_startPresenting','has','3507490XDIwTF','symbol','univer-mb-3\x20univer-w-full\x20univer-text-sm','div','displayName','clear','HEADER_MENU','1582biOOVN','getTypeOfUnitAdded$','stopPresenting','send','_init','NOT_FOLLOWING','_status','concat','sessionStatus$','replace'];_0x5bdd=function(){return _0x59216a;};return _0x5bdd();}import{Dropdown as _0x159863,clsx as _0x87598b,Button as _0x352964}from'@univerjs/design';import{forwardRef as _0x11caf0,useRef as _0x48017c,createElement as _0x3ad40e,useState as _0x55d604,useEffect as _0x44053b}from'react';import{CollaborationEvent as _0x248176,parseProtocolChangeset as _0x17584c}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2f2b8d,Subject as _0x1044e5}from'rxjs';import{takeUntil as _0x261e2b,throttleTime as _0x28b226}from'rxjs/operators';const Oe=_0x451375(0xbd),T={};class L extends _0x2313b0{constructor(){var _0x14a96d=_0x451375;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x14a96d(0xfa),new Set());}[_0x451375(0x93)](_0xe10ed1){var _0x416a36=_0x451375;return this['_sharedOperations'][_0x416a36(0x8a)](_0xe10ed1),_0x43b1a9(()=>this['_sharedOperations'][_0x416a36(0xa8)](_0xe10ed1));}[_0x451375(0xce)](_0x52fc81){var _0x9e9dd9=_0x451375;return this['_reporters'][_0x9e9dd9(0x8a)](_0x52fc81),_0x43b1a9(()=>this[_0x9e9dd9(0xfa)][_0x9e9dd9(0xa8)](_0x52fc81));}[_0x451375(0x92)](_0x2e83d3){return this['_sharedOperations']['has'](_0x2e83d3);}[_0x451375(0x9e)](_0x3e9bb6){var _0x44eb1a=_0x451375;return Array['from'](this[_0x44eb1a(0xfa)])[_0x44eb1a(0xa0)](_0x5925b2=>_0x5925b2(_0x3e9bb6));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x168b22,_0x5bace9,_0x2c0490,_0x2b85a1)=>{var _0x2bbb8f=_0x451375;for(var _0x2447c2=_0x2b85a1>0x1?void 0x0:_0x2b85a1?Ee(_0x5bace9,_0x2c0490):_0x5bace9,_0x29180e=_0x168b22[_0x2bbb8f(0x8c)]-0x1,_0x355b58;_0x29180e>=0x0;_0x29180e--)(_0x355b58=_0x168b22[_0x29180e])&&(_0x2447c2=_0x355b58(_0x2447c2)||_0x2447c2);return _0x2447c2;},Ne=(_0x4ab97c,_0x26ff09)=>(_0x21d977,_0x31a0da)=>_0x26ff09(_0x21d977,_0x31a0da,_0x4ab97c);let m=class extends _0x2313b0{constructor(_0x1d2686){var _0x220503=_0x451375;super(),this['_liveShareService']=_0x1d2686,this[_0x220503(0xdf)]();}[_0x451375(0xdf)](){var _0x4470bf=_0x451375;[_0x274716['id'],_0x186685['id'],_0x21f0ce['id']][_0x4470bf(0xb2)](_0x59a128=>{var _0x162c91=_0x4470bf;this[_0x162c91(0xe8)](this[_0x162c91(0x102)][_0x162c91(0x93)](_0x59a128));});}};m=we([Ne(0x0,_0x28c77f(L))],m);var c=function(){var _0x7b8dfc=_0x451375;return c=Object[_0x7b8dfc(0xa4)]||function(_0x5cf3c4){var _0x36c87f=_0x7b8dfc;for(var _0x386ab4,_0x2d2e19=0x1,_0x129e0a=arguments[_0x36c87f(0x8c)];_0x2d2e19<_0x129e0a;_0x2d2e19++){_0x386ab4=arguments[_0x2d2e19];for(var _0x40a2ad in _0x386ab4)Object[_0x36c87f(0x11c)]['hasOwnProperty']['call'](_0x386ab4,_0x40a2ad)&&(_0x5cf3c4[_0x40a2ad]=_0x386ab4[_0x40a2ad]);}return _0x5cf3c4;},c[_0x7b8dfc(0xa5)](this,arguments);},Ce=function(_0x58cf11,_0x33e72f){var _0xb697ad=_0x451375,_0x442487={};for(var _0x1601cf in _0x58cf11)Object[_0xb697ad(0x11c)][_0xb697ad(0x11a)][_0xb697ad(0x11b)](_0x58cf11,_0x1601cf)&&_0x33e72f['indexOf'](_0x1601cf)<0x0&&(_0x442487[_0x1601cf]=_0x58cf11[_0x1601cf]);if(_0x58cf11!=null&&typeof Object[_0xb697ad(0x115)]==_0xb697ad(0x94)){for(var _0x5cf0c1=0x0,_0x1601cf=Object[_0xb697ad(0x115)](_0x58cf11);_0x5cf0c1<_0x1601cf[_0xb697ad(0x8c)];_0x5cf0c1++)_0x33e72f[_0xb697ad(0xfe)](_0x1601cf[_0x5cf0c1])<0x0&&Object[_0xb697ad(0x11c)][_0xb697ad(0x80)][_0xb697ad(0x11b)](_0x58cf11,_0x1601cf[_0x5cf0c1])&&(_0x442487[_0x1601cf[_0x5cf0c1]]=_0x58cf11[_0x1601cf[_0x5cf0c1]]);}return _0x442487;},W=_0x11caf0(function(_0x2c5602,_0x472b23){var _0x508acd=_0x451375,_0x4b87ee=_0x2c5602[_0x508acd(0xe5)],_0x15f482=_0x2c5602['id'],_0x5db530=_0x2c5602[_0x508acd(0x8e)],_0x3c9d14=_0x2c5602[_0x508acd(0x104)],_0x21e4b6=Ce(_0x2c5602,[_0x508acd(0xe5),'id',_0x508acd(0x8e),_0x508acd(0x104)]),_0x29b9cd='univerjs-icon\x20univerjs-icon-'[_0x508acd(0xe2)](_0x15f482,'\x20')[_0x508acd(0xe2)](_0x5db530||'')[_0x508acd(0xea)](),_0x5adb1d=_0x48017c('_'['concat'](Le()));return Y(_0x4b87ee,''[_0x508acd(0xe2)](_0x15f482),{'defIds':_0x4b87ee[_0x508acd(0x110)],'idSuffix':_0x5adb1d[_0x508acd(0x118)]},c({'ref':_0x472b23,'className':_0x29b9cd},_0x21e4b6),_0x3c9d14);});function Y(_0x2e2f8b,_0x1e9555,_0x10736b,_0x58e852,_0x3ee648){var _0x4ce094=_0x451375;return _0x3ad40e(_0x2e2f8b[_0x4ce094(0x84)],c(c({'key':_0x1e9555},De(_0x2e2f8b,_0x10736b,_0x3ee648)),_0x58e852),(xe(_0x2e2f8b,_0x10736b)[_0x4ce094(0xc7)]||[])[_0x4ce094(0xa0)](function(_0x2bf3e5,_0x2ed0e0){var _0x5ebe57=_0x4ce094;return Y(_0x2bf3e5,''['concat'](_0x1e9555,'-')['concat'](_0x2e2f8b[_0x5ebe57(0x84)],'-')[_0x5ebe57(0xe2)](_0x2ed0e0),_0x10736b,void 0x0,_0x3ee648);}));}function De(_0x5caf90,_0x2ad276,_0x5748bc){var _0x271fc3=_0x451375,_0x31bff3=c({},_0x5caf90[_0x271fc3(0x9f)]);_0x5748bc!=null&&_0x5748bc['colorChannel1']&&_0x31bff3[_0x271fc3(0xa9)]===_0x271fc3(0x8b)&&(_0x31bff3['fill']=_0x5748bc[_0x271fc3(0x8b)]),_0x5caf90[_0x271fc3(0x84)]==='mask'&&_0x31bff3['id']&&(_0x31bff3['id']=_0x31bff3['id']+_0x2ad276[_0x271fc3(0x10d)]),Object['entries'](_0x31bff3)[_0x271fc3(0xb2)](function(_0x558cc0){var _0x39f431=_0x271fc3,_0x44a0d3=_0x558cc0[0x0],_0x186ed4=_0x558cc0[0x1];_0x44a0d3===_0x39f431(0xc5)&&typeof _0x186ed4==_0x39f431(0x12b)&&(_0x31bff3[_0x44a0d3]=_0x186ed4['replace'](/url\(#(.*)\)/,_0x39f431(0x121)[_0x39f431(0xe2)](_0x2ad276[_0x39f431(0x10d)],')')));});var _0x4ee8a5=_0x2ad276['defIds'];return!_0x4ee8a5||_0x4ee8a5[_0x271fc3(0x8c)]===0x0||(_0x5caf90[_0x271fc3(0x84)]==='use'&&_0x31bff3[_0x271fc3(0x87)]&&(_0x31bff3[_0x271fc3(0x87)]=_0x31bff3[_0x271fc3(0x87)]+_0x2ad276['idSuffix']),Object[_0x271fc3(0xcf)](_0x31bff3)[_0x271fc3(0xb2)](function(_0x16df4b){var _0x162431=_0x271fc3,_0x558a26=_0x16df4b[0x0],_0x2a2fad=_0x16df4b[0x1];typeof _0x2a2fad==_0x162431(0x12b)&&(_0x31bff3[_0x558a26]=_0x2a2fad[_0x162431(0xe4)](/url\(#(.*)\)/,_0x162431(0x121)[_0x162431(0xe2)](_0x2ad276[_0x162431(0x10d)],')')));})),_0x31bff3;}function xe(_0x3bdc0c,_0x2e8ed3){var _0x3da090=_0x451375,_0x33577a,_0x5a2010=_0x2e8ed3['defIds'];return!_0x5a2010||_0x5a2010[_0x3da090(0x8c)]===0x0?_0x3bdc0c:_0x3bdc0c[_0x3da090(0x84)]===_0x3da090(0xb3)&&(!((_0x33577a=_0x3bdc0c[_0x3da090(0xc7)])===null||_0x33577a===void 0x0)&&_0x33577a[_0x3da090(0x8c)])?c(c({},_0x3bdc0c),{'children':_0x3bdc0c[_0x3da090(0xc7)][_0x3da090(0xa0)](function(_0x36d0bb){var _0x121666=_0x3da090;return typeof _0x36d0bb[_0x121666(0x9f)]['id']==_0x121666(0x12b)&&_0x5a2010&&_0x5a2010[_0x121666(0xe9)](_0x36d0bb[_0x121666(0x9f)]['id'])?c(c({},_0x36d0bb),{'attrs':c(c({},_0x36d0bb[_0x121666(0x9f)]),{'id':_0x36d0bb[_0x121666(0x9f)]['id']+_0x2e8ed3[_0x121666(0x10d)]})}):_0x36d0bb;})}):_0x3bdc0c;}function Le(){var _0x29df3c=_0x451375;return Math[_0x29df3c(0x10c)]()['toString'](0x24)[_0x29df3c(0xf0)](0x2,0x8);}W[_0x451375(0xd8)]=_0x451375(0x81);var ye={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x451375(0xf7),'viewBox':_0x451375(0xbf),'width':_0x451375(0xeb),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x451375(0x123),'d':_0x451375(0xc1)}},{'tag':'path','attrs':{'fill':_0x451375(0x123),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x451375(0x95),'clipRule':'evenodd'}}]},B=_0x11caf0(function(_0x43688f,_0x2612ca){return _0x3ad40e(W,Object['assign']({},_0x43688f,{'id':'live-share-icon','ref':_0x2612ca,'icon':ye}));});B[_0x451375(0xd8)]=_0x451375(0x112);var Re=Object[_0x451375(0x11d)],Z=(_0x1e8e3c,_0xac14ff,_0x1d3dfc,_0x5c5eb1)=>{var _0x3b9b1f=_0x451375;for(var _0x199c7c=_0x5c5eb1>0x1?void 0x0:_0x5c5eb1?Re(_0xac14ff,_0x1d3dfc):_0xac14ff,_0x253127=_0x1e8e3c[_0x3b9b1f(0x8c)]-0x1,_0x17b5c3;_0x253127>=0x0;_0x253127--)(_0x17b5c3=_0x1e8e3c[_0x253127])&&(_0x199c7c=_0x17b5c3(_0x199c7c)||_0x199c7c);return _0x199c7c;},f=(_0x52abe5,_0x2362e9)=>(_0x6aec4c,_0xacdf00)=>_0x2362e9(_0x6aec4c,_0xacdf00,_0x52abe5);let I=class extends _0x36a016{constructor(_0x8a0738,_0x21bf37,_0x3c9e24){var _0x533e04=_0x451375;super(),d(this,_0x533e04(0xf2),new Map()),(this[_0x533e04(0xaa)]=_0x8a0738,this[_0x533e04(0xc6)]=_0x21bf37,this[_0x533e04(0x10f)]=_0x3c9e24,this['_init']());}async[_0x451375(0xcc)](_0x1a088b){var _0x58ca37=_0x451375;return this['_entities'][_0x58ca37(0xd3)](_0x1a088b)||await this[_0x58ca37(0xba)](_0x1a088b),this[_0x58ca37(0xf2)][_0x58ca37(0x9a)](_0x1a088b);}[_0x451375(0xdf)](){var _0x5b9904=_0x451375;this[_0x5b9904(0xaa)][_0x5b9904(0xdc)](_0x4c20a0[_0x5b9904(0xf1)])['pipe'](_0x261e2b(this[_0x5b9904(0xb8)]))[_0x5b9904(0xd1)](async _0xa98328=>{var _0x327ed3=_0x5b9904;const _0x35cc97=_0xa98328['getUnitId']();this[_0x327ed3(0xf2)][_0x327ed3(0xd3)](_0x35cc97)||this[_0x327ed3(0xba)](_0x35cc97);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4c20a0['UNIVER_SHEET'])[_0x5b9904(0x89)](_0x261e2b(this[_0x5b9904(0xb8)]))[_0x5b9904(0xd1)](_0x1f1528=>{var _0x232484=_0x5b9904;const _0x195bed=_0x1f1528['getUnitId'](),_0x1e1910=this['_entities']['get'](_0x195bed);_0x1e1910==null||_0x1e1910[_0x232484(0x117)]();});}async[_0x451375(0xba)](_0x1e1d04){var _0x5d11b2=_0x451375;const _0x3e8206=await this[_0x5d11b2(0x10f)][_0x5d11b2(0x10e)](_0x1e1d04),_0x1f2fcc=this[_0x5d11b2(0xc6)][_0x5d11b2(0xcd)](C,_0x1e1d04,_0x3e8206);return _0x1f2fcc[_0x5d11b2(0xca)](),this[_0x5d11b2(0xf2)][_0x5d11b2(0x108)](_0x1e1d04,_0x1f2fcc),_0x1f2fcc;}};I=Z([f(0x0,_0x3e5199),f(0x1,_0x28c77f(_0x335107)),f(0x2,_0x28c77f(_0x28a12b))],I);var h=(_0x118872=>(_0x118872[_0x451375(0xb9)]=_0x451375(0xbc),_0x118872[_0x451375(0xb0)]=_0x451375(0xc0),_0x118872['FOLLOWING']=_0x451375(0xfb),_0x118872[_0x451375(0xe0)]='not-following',_0x118872['PRESENTING']='presenting',_0x118872))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x36a016{constructor(_0x563bc5,_0x3bc5db,_0x11d0b5,_0x57d2f0,_0x97ec45){var _0xd76d38=_0x451375;super(),d(this,_0xd76d38(0xb5),new _0x2f2b8d('idle')),d(this,_0xd76d38(0x88),this['_status$'][_0xd76d38(0xf4)]()),d(this,_0xd76d38(0xdf),!0x1),d(this,'_commandDisposable',null),d(this,_0xd76d38(0xb4),null),(this['_unitID']=_0x563bc5,this[_0xd76d38(0xee)]=_0x3bc5db,this[_0xd76d38(0x107)]=_0x11d0b5,this[_0xd76d38(0x102)]=_0x57d2f0,this[_0xd76d38(0xb7)]=_0x97ec45);}get[_0x451375(0xe1)](){var _0x6cc70=_0x451375;return this[_0x6cc70(0xb5)]['getValue']();}[_0x451375(0x117)](){var _0x3bf5fc=_0x451375,_0x31a480;(_0x31a480=this[_0x3bf5fc(0xb1)])==null||_0x31a480['dispose'](),this[_0x3bf5fc(0xb5)][_0x3bf5fc(0x105)](_0x3bf5fc(0xc0)),this[_0x3bf5fc(0xb5)][_0x3bf5fc(0xa2)]();}['init'](){var _0x5e7bdb=_0x451375;this[_0x5e7bdb(0xdf)]||(this['_init']=!0x0,this[_0x5e7bdb(0xee)][_0x5e7bdb(0xe3)][_0x5e7bdb(0x89)](_0x261e2b(this[_0x5e7bdb(0xb8)]))[_0x5e7bdb(0xd1)](_0x44288a=>{var _0x504e32=_0x5e7bdb;switch(_0x44288a){case _0xd06163['OFFLINE']:this[_0x504e32(0xf3)]();break;case _0xd06163['ONLINE']:this[_0x504e32(0x109)]();break;}}),this['_collabSession']['event$']['pipe'](_0x261e2b(this[_0x5e7bdb(0xb8)]))['subscribe'](_0xb03598=>{var _0x344a64=_0x5e7bdb;const {eventID:_0x38f07f}=_0xb03598;switch(_0x38f07f){case _0x248176['LIVESHARE_NEW_HOST']:this[_0x344a64(0x85)](_0xb03598);break;case _0x248176[_0x344a64(0x11e)]:this[_0x344a64(0x83)](_0xb03598);break;case _0x248176[_0x344a64(0x8d)]:this['_handleTerminate']();break;case _0x248176[_0x344a64(0x8f)]:this[_0x344a64(0xbb)](_0xb03598);break;}}));}[_0x451375(0xfd)](){var _0x21abc4=_0x451375;this['_collabSession'][_0x21abc4(0xde)]({'eventID':_0x248176[_0x21abc4(0xc2)],'data':{'unitID':this[_0x21abc4(0xbe)],'userID':this['_collabSession'][_0x21abc4(0xff)]()}},this[_0x21abc4(0xbe)]);}[_0x451375(0xdd)](){var _0x7b7a4a=_0x451375;this[_0x7b7a4a(0xe1)]==='presenting'&&(this[_0x7b7a4a(0xb5)]['next']('idle'),this['_collabSession'][_0x7b7a4a(0xde)]({'eventID':_0x248176[_0x7b7a4a(0x8d)],'data':{'unitID':this[_0x7b7a4a(0xbe)]}},this['_unitID']));}[_0x451375(0xc4)](){var _0x4d6a3d=_0x451375;this[_0x4d6a3d(0xe1)]==='not-following'&&(this['_status$'][_0x4d6a3d(0x105)](_0x4d6a3d(0xfb)),this[_0x4d6a3d(0x91)]());}['stopFollowing'](){var _0x2baaae=_0x451375;this[_0x2baaae(0xe1)]===_0x2baaae(0xfb)&&this[_0x2baaae(0x113)]();}[_0x451375(0x85)](_0x12787f){var _0x319170=_0x451375;const {presenter:_0x44b10a}=_0x12787f['data'],_0xb153c3=this['_collabSession']['getMemberID']();this[_0x319170(0xb4)]=_0x44b10a,_0x44b10a===_0xb153c3?(this[_0x319170(0x113)](),this[_0x319170(0xd2)]()):this[_0x319170(0xe1)]!==_0x319170(0x9c)&&(this[_0x319170(0x11f)](),this['_startFollowing']());}[_0x451375(0x116)](){var _0x451ef0=_0x451375;const _0x4bef16={'eventID':_0x248176[_0x451ef0(0xaf)]};this[_0x451ef0(0xee)][_0x451ef0(0xde)](_0x4bef16,this[_0x451ef0(0xbe)]);}[_0x451375(0xf9)](){var _0x1dff1c=_0x451375;this[_0x1dff1c(0xb4)]=null,this['_status']!=='presenting'&&this[_0x1dff1c(0xc9)]();}[_0x451375(0xbb)](_0x343e27){var _0x4acffb=_0x451375;if(this[_0x4acffb(0xe1)]===_0x4acffb(0xfb)&&this[_0x4acffb(0xb4)]===_0x343e27[_0x4acffb(0x106)]['memberID']){const _0x2bf607=_0x17584c(_0x343e27[_0x4acffb(0x106)])[_0x4acffb(0x125)]['reverse']()[_0x4acffb(0x127)](_0x6e8be5=>_0x6e8be5['id']===_0x198dc6['id']);if(_0x2bf607){const _0x4b17c6=_0x2bf607[_0x4acffb(0xcb)]['unitId'],_0x471c42=_0x2bf607[_0x4acffb(0xcb)]['sheet']['id'];setTimeout(()=>{var _0x16814a=_0x4acffb;this[_0x16814a(0xb7)][_0x16814a(0x82)](_0x21f0ce['id'],{'unitId':_0x4b17c6,'subUnitId':_0x471c42},{'fromCollab':!0x0});});}}}[_0x451375(0xd2)](){var _0xad2cf4=_0x451375;this[_0xad2cf4(0xb5)][_0xad2cf4(0x105)]('presenting');const _0x1b7070=new Map(),_0x1b5804=this[_0xad2cf4(0xb1)]=new _0x1b939f();_0x1b5804[_0xad2cf4(0x8a)](_0x43b1a9(()=>{var _0x494faa=_0xad2cf4;_0x1b7070[_0x494faa(0xb2)](_0x708097=>_0x708097[_0x494faa(0xa2)]()),_0x1b7070[_0x494faa(0xd9)]();})),_0x1b5804[_0xad2cf4(0x8a)](this[_0xad2cf4(0xb7)][_0xad2cf4(0xed)](_0x427efd=>{var _0xabf870=_0xad2cf4,_0x44fb57;if(_0x427efd[_0xabf870(0xac)]!==_0x1862c6[_0xabf870(0xa7)]||!this[_0xabf870(0x102)][_0xabf870(0x92)](_0x427efd['id']))return;const {id:_0x2323f7}=_0x427efd;let _0x5161d5;_0x1b7070[_0xabf870(0xd3)](_0x2323f7)?_0x5161d5=_0x1b7070['get'](_0x2323f7):(_0x5161d5=new _0x1044e5(),_0x1b7070[_0xabf870(0x108)](_0x2323f7,_0x5161d5),_0x5161d5['pipe'](_0x28b226((_0x44fb57=this[_0xabf870(0x107)][_0xabf870(0x101)](Pe))!=null?_0x44fb57:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xabf870(0xd1)](_0x4e1fc3=>{var _0x5127d9=_0xabf870;this[_0x5127d9(0xee)]['send']({'eventID':_0x248176[_0x5127d9(0x11e)],'data':{'unitID':this[_0x5127d9(0xbe)],'operations':{[_0x4e1fc3['id']]:{'id':_0x4e1fc3['id'],'params':JSON[_0x5127d9(0x122)](_0x4e1fc3[_0x5127d9(0xcb)])}}}},this['_unitID']);})),_0x5161d5[_0xabf870(0x105)](_0x427efd);})),this[_0xad2cf4(0x102)][_0xad2cf4(0x9e)](this[_0xad2cf4(0xbe)])[_0xad2cf4(0xb2)](_0x5af010=>this[_0xad2cf4(0xee)][_0xad2cf4(0xde)]({'eventID':_0x248176[_0xad2cf4(0x11e)],'data':{'unitID':this[_0xad2cf4(0xbe)],'operations':{[_0x5af010['id']]:{'id':_0x5af010['id'],'params':JSON[_0xad2cf4(0x122)](_0x5af010[_0xad2cf4(0xcb)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x2badc6=_0x451375,_0x1ceb0d;this[_0x2badc6(0xb5)][_0x2badc6(0x105)]('idle'),(_0x1ceb0d=this['_commandDisposable'])==null||_0x1ceb0d[_0x2badc6(0x117)](),this[_0x2badc6(0xb1)]=null;}[_0x451375(0x91)](){var _0xbc2e7=_0x451375,_0x3f009f;(_0x3f009f=this['_commandDisposable'])==null||_0x3f009f[_0xbc2e7(0x117)](),this[_0xbc2e7(0xb5)][_0xbc2e7(0x105)]('following');}[_0x451375(0xc9)](){var _0x7b2231=_0x451375,_0x9b4ecd;this[_0x7b2231(0xb5)]['next'](_0x7b2231(0xc0)),(_0x9b4ecd=this[_0x7b2231(0xb1)])==null||_0x9b4ecd[_0x7b2231(0x117)](),this['_commandDisposable']=null;}[_0x451375(0x113)](){var _0x4c770e=_0x451375,_0x113d7b;this['_status$'][_0x4c770e(0x105)]('not-following'),(_0x113d7b=this[_0x4c770e(0xb1)])==null||_0x113d7b['dispose']();}['_handleOperation'](_0x1a5ccc){var _0x527dfe=_0x451375;if(['presenting',_0x527dfe(0x9c),_0x527dfe(0xbc)][_0x527dfe(0xe9)](this['_status'])||!_0x1a5ccc['data'][_0x527dfe(0x120)]||_0x1a5ccc[_0x527dfe(0x106)][_0x527dfe(0x120)]===this[_0x527dfe(0xee)][_0x527dfe(0xff)]())return;this['_status']==='idle'&&this['_startFollowing']();const _0xb0e559=_0x1a5ccc[_0x527dfe(0x106)][_0x527dfe(0xec)];Object[_0x527dfe(0x100)](_0xb0e559)['forEach'](_0x49c313=>{var _0x544a45=_0x527dfe;this[_0x544a45(0xb7)][_0x544a45(0x82)](_0x49c313['id'],_0x49c313['params']?JSON[_0x544a45(0xfc)](_0x49c313[_0x544a45(0xcb)]):null,{'fromCollab':!0x0});});}[_0x451375(0xf3)](){var _0x4db867=_0x451375,_0x45686d;this[_0x4db867(0xb5)][_0x4db867(0x105)](_0x4db867(0xbc)),(_0x45686d=this['_commandDisposable'])==null||_0x45686d[_0x4db867(0x117)]();}[_0x451375(0x109)](){var _0x392a0a=_0x451375;this[_0x392a0a(0xb5)][_0x392a0a(0x105)](_0x392a0a(0xc0)),this[_0x392a0a(0x116)]();}};C=Z([f(0x2,_0x346109),f(0x3,_0x28c77f(L)),f(0x4,_0x4a09d4)],C);function Te(){var _0x2327f3=_0x451375;const _0x48ff66=_0x2de017(I),_0x441d35=_0x2de017(_0x3e5199),_0x47257a=_0x25276a(()=>_0x441d35[_0x2327f3(0x12a)](_0x4c20a0[_0x2327f3(0xf1)]),void 0x0,!0x1,[]),[_0x2e6505,_0xae1bc]=_0x55d604(null),[_0x1ac521,_0x33ceca]=_0x55d604(h[_0x2327f3(0xb0)]),_0x45a0db=_0x48017c(null);return _0x44053b(()=>(_0x47257a&&_0x48ff66[_0x2327f3(0xcc)](_0x47257a[_0x2327f3(0xab)]())[_0x2327f3(0xd0)](_0x3c6371=>{var _0x26f634=_0x2327f3;_0xae1bc(_0x3c6371),_0x45a0db['current']=_0x3c6371[_0x26f634(0x88)][_0x26f634(0xd1)](_0x5bd015=>{_0x33ceca(_0x5bd015);});}),()=>{var _0x6dbefd=_0x2327f3,_0x8a6c67;(_0x8a6c67=_0x45a0db[_0x6dbefd(0x118)])==null||_0x8a6c67[_0x6dbefd(0xf8)](),_0x45a0db['current']=null;}),[_0x47257a,_0x48ff66]),_0x2e6505?_0x5aa147(_0x159863,{'align':_0x2327f3(0x9d),'disabled':_0x1ac521===h[_0x2327f3(0xb9)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x5aa147($e,{'status':_0x1ac521,'coordinator':_0x2e6505}),'children':_0x5aa147(_0x2327f3(0xf5),{'className':_0x87598b('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x1ac521===h[_0x2327f3(0xb9)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1ac521!==h[_0x2327f3(0xb9)]}),'type':_0x2327f3(0xf5),'children':_0x5aa147(B,{'className':_0x2327f3(0x111)})})}):null;}function $e(_0x4731bd){var _0x185e7e=_0x451375;const {status:_0x2e0820,coordinator:_0x437528}=_0x4731bd;switch(_0x2e0820){case h['IDLE']:return _0x5aa147(Fe,{'coordinator':_0x437528});case h[_0x185e7e(0xef)]:return _0x5aa147(He,{'coordinator':_0x437528});case h['NOT_FOLLOWING']:return _0x5aa147(je,{'coordinator':_0x437528});case h[_0x185e7e(0xb9)]:return _0x5aa147(Ve,{});case h['PRESENTING']:return _0x5aa147(Ue,{'coordinator':_0x437528});default:return null;}}function Fe(_0x81a50f){var _0x238dd8=_0x451375;const {coordinator:_0x366f8d}=_0x81a50f;return _0x2b969d(_0x5b6ea3,{'children':[_0x5aa147(_0x238dd8(0xd7),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x238dd8(0xa3)}),_0x5aa147(_0x352964,{'onClick':()=>_0x366f8d[_0x238dd8(0xfd)](),'children':'Start'})]});}function He(_0x58ecba){var _0x374d5e=_0x451375;const {coordinator:_0x4d3ed5}=_0x58ecba;return _0x2b969d(_0x5b6ea3,{'children':[_0x5aa147(_0x374d5e(0xd7),{'className':_0x374d5e(0xd6),'children':_0x374d5e(0x103)}),_0x5aa147(_0x352964,{'onClick':()=>_0x4d3ed5[_0x374d5e(0x90)](),'children':_0x374d5e(0x129)})]});}function je(_0x510960){var _0x465aa5=_0x451375;const {coordinator:_0x248453}=_0x510960;return _0x2b969d(_0x5b6ea3,{'children':[_0x5aa147(_0x465aa5(0xd7),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x465aa5(0x86)}),_0x5aa147(_0x352964,{'variant':_0x465aa5(0x98),'onClick':()=>_0x248453['startFollowing'](),'children':'Start\x20following'})]});}function Ue(_0x23dc1b){var _0x6f889c=_0x451375;const {coordinator:_0x5f4f84}=_0x23dc1b;return _0x2b969d(_0x5b6ea3,{'children':[_0x5aa147(_0x6f889c(0xd7),{'className':_0x6f889c(0xd6),'children':_0x6f889c(0x124)}),_0x5aa147(_0x352964,{'variant':_0x6f889c(0xa6),'onClick':()=>_0x5f4f84[_0x6f889c(0xdd)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x2fda1d=_0x451375;return _0x5aa147(_0x5b6ea3,{'children':_0x2fda1d(0x128)});}var Me=Object[_0x451375(0x11d)],ke=(_0x570146,_0x5e55bd,_0x339ca5,_0x3f5675)=>{for(var _0x4bf585=_0x3f5675>0x1?void 0x0:_0x3f5675?Me(_0x5e55bd,_0x339ca5):_0x5e55bd,_0x4ec0c8=_0x570146['length']-0x1,_0x3939e1;_0x4ec0c8>=0x0;_0x4ec0c8--)(_0x3939e1=_0x570146[_0x4ec0c8])&&(_0x4bf585=_0x3939e1(_0x4bf585)||_0x4bf585);return _0x4bf585;},$=(_0xcc8bba,_0x406f94)=>(_0x250d55,_0x24e081)=>_0x406f94(_0x250d55,_0x24e081,_0xcc8bba);let b=class extends _0x2313b0{constructor(_0x16662e,_0x435ddb){var _0x410118=_0x451375;super(),this[_0x410118(0xc6)]=_0x16662e,this[_0x410118(0xad)]=_0x435ddb,this[_0x410118(0x97)]();}[_0x451375(0x97)](){var _0x6b6d42=_0x451375;this[_0x6b6d42(0xe8)](this[_0x6b6d42(0xad)][_0x6b6d42(0x10a)](_0x51a6c7[_0x6b6d42(0xda)],()=>_0x2c0420(Te,this[_0x6b6d42(0xc6)])));}};function _0xa190(_0x32c439,_0x2d498f){var _0x5bdd32=_0x5bdd();return _0xa190=function(_0xa19085,_0xc55785){_0xa19085=_0xa19085-0x80;var _0xeab724=_0x5bdd32[_0xa19085];return _0xeab724;},_0xa190(_0x32c439,_0x2d498f);}b=ke([$(0x0,_0x28c77f(_0x335107)),$(0x1,_0xb65b9)],b);var Ge=Object[_0x451375(0xae)],We=Object[_0x451375(0x11d)],Ye=(_0x18d7aa,_0x445b22,_0x5989cd)=>_0x445b22 in _0x18d7aa?Ge(_0x18d7aa,_0x445b22,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5989cd}):_0x18d7aa[_0x445b22]=_0x5989cd,Be=(_0x2c0ed6,_0x8470f6,_0x2a43bf,_0x3e765a)=>{var _0x5b0760=_0x451375;for(var _0x2388d3=_0x3e765a>0x1?void 0x0:_0x3e765a?We(_0x8470f6,_0x2a43bf):_0x8470f6,_0x360398=_0x2c0ed6[_0x5b0760(0x8c)]-0x1,_0x2697e3;_0x360398>=0x0;_0x360398--)(_0x2697e3=_0x2c0ed6[_0x360398])&&(_0x2388d3=_0x2697e3(_0x2388d3)||_0x2388d3);return _0x2388d3;},F=(_0x54775e,_0x28c224)=>(_0x37f304,_0x8fce35)=>_0x28c224(_0x37f304,_0x8fce35,_0x54775e),J=(_0x45a759,_0x51ab50,_0x7823dd)=>Ye(_0x45a759,typeof _0x51ab50!=_0x451375(0xd5)?_0x51ab50+'':_0x51ab50,_0x7823dd);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x1c27e2{constructor(_0x295921=T,_0x148e91,_0x672e2e){var _0x5054f2=_0x451375;super(),this[_0x5054f2(0x9b)]=_0x295921,this[_0x5054f2(0xc6)]=_0x148e91,this[_0x5054f2(0x107)]=_0x672e2e;const {..._0x1ea8db}=_0x3c06a8({},T,this[_0x5054f2(0x9b)]);this[_0x5054f2(0x107)][_0x5054f2(0x114)](Oe,_0x1ea8db);}[_0x451375(0xb6)](){var _0x3ffa5e=_0x451375;_0x4552ae(this[_0x3ffa5e(0xc6)],_0x32a788([[L],[I],[m],[b]],this['_config'][_0x3ffa5e(0x99)])),_0x21a21b(this['_injector'],[[m]]);}[_0x451375(0x10b)](){var _0x1b8371=_0x451375;_0x21a21b(this[_0x1b8371(0xc6)],[[b]]);}};J(O,_0x451375(0xac),_0x4c20a0[_0x451375(0x119)]),J(O,'pluginName',Ze),O=Be([_0x32035a(_0x1dd0cd),F(0x1,_0x28c77f(_0x335107)),F(0x2,_0x346109)],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 _0x4016(){var _0x17c337=['unitId','button','tag','setConfig','_uiPartsService','740mIeMWL','fill','Start','random','xlink:href','PRESENTING','useRef','shouldShareOperation','_handleOnline','DependentOn','operators','function','_stopPresenting','UniverLiveSharePlugin','object','UniverUi','Inject','propertyIsEnumerable','_univerInstanceService','touchDependencies','event$','react','from','_handleNewHost','@univerjs/design','CommandType','BehaviorSubject','_commandService','InsertSheetMutation','rxjs/operators','LiveShareCoordinator','useState','_handleOffline','UNIVER_UNKNOWN','defIds','UniverInstanceType','_status','icon','_startLiveShareCoordinator','0\x200\x2017\x2017','Injector','6895168xHJgsu','indexOf','defineProperty','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','LiveShareStatus','following','UniverSheets','http://www.w3.org/2000/svg','UniverCollaborationClientPlugin','dispose$','reverse','Module','amd','480371MoRTDJ','useDependency','You\x27re\x20following\x20the\x20presenter','_startPresenting','_startFollowing','path','Button','stringify','ONLINE','FOLLOWING','UniverProCollaborationClient','forEach','replace','add','jsx','OFFLINE','DesktopLiveShareController','mask','_presenter','onCommandExecuted','parseProtocolChangeset','1098372SzrvsR','set','@univerjs/ui','data','currentColor','trim','sessionStatus$','status$','pipe','then','colorChannel1','jsxs','IConfigService','sheet','You\x27are\x20offline.','onStarting','_stopFollowing','length','_beIdle','BuiltInUIPart','complete','Subject','React','28416tOUIbi','text','_unitID','not-following','displayName','find','hasOwnProperty','UniverIcon','getOwnPropertySymbols','getInitialStates','SessionStatus','presenting','_collabSession','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','createInstance','assign','mergeOverrideWithDependencies','OPERATION','Disposable','clear','registerDependencies','registerSharedOperation','values','string','LIVESHARE_OPERATION','children','8trjnFl','toStringTag','createElement','6559236PtGlLj','next','UNIVER_SHEET','1563078Grkrpe','_commandDisposable','IUniverInstanceService','getLiveShareCoordinator','unsubscribe','getConfig','getOwnPropertyDescriptor','ICommandService','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','LIVESHARE_REQUEST_HOST','call','url(#$1','stopPresenting','extend','executeCommand','toDisposable','LiveShare','_handleTerminate','CollaborationEvent','none','current','params','Plugin','1687656EdDGlh','CollaborationSessionService','Stop\x20presenting','connectInjector','type','Fragment','@univerjs/core','UniverProLiveShare','IDLE','LIVESHARE_FETCH_OPERATIONS','className','UniverCore','@univerjs/sheets','getUnitId','evenodd','live-share.config','requireSession','_injector','UniverProCollaboration','dispose','_handleOperation','svg','presenter','init','disposeWithMe','SetZoomRatioOperation','You\x27re\x20presenting\x20the\x20document','Dropdown','Present\x20this\x20document','concat','live-share-icon','takeUntil','_sharedOperations','_liveShareService','UNIVER_LIVE_SHARE_PLUGIN','default','delete','forwardRef','onRendered','throttleTime','Stop\x20following','LiveShareService','startFollowing','SAME_OPERATION_SHARE_INTERVAL','useObservable','offline','RxDisposable','_handleNewChangeSets','_fetchOperations','@univerjs-pro/collaboration','send','asObservable','IUIPartsService','idle','_config','attrs','stopFollowing','includes','_status$','useEffect','has','LIVESHARE_TERMINATE','getMemberID','1em','operations','LiveShareIcon','univerjs-icon\x20univerjs-icon-','rxjs','_entities','univer-mb-3\x20univer-w-full\x20univer-text-sm','memberID','DisposableCollection','subscribe','get','idSuffix','SetWorksheetActiveOperation','getTypeOfUnitAdded$','_init','map','react/jsx-runtime','_collabSessionService','_configService','parse','mutations','div','defs','UniverDesign','LiveShareController','NEW_CHANGESETS'];_0x4016=function(){return _0x17c337;};return _0x4016();}function _0x3c56(_0x107626,_0x13a484){var _0x4016db=_0x4016();return _0x3c56=function(_0x3c56d5,_0x6357ad){_0x3c56d5=_0x3c56d5-0x16c;var _0x4c0a35=_0x4016db[_0x3c56d5];return _0x4c0a35;},_0x3c56(_0x107626,_0x13a484);}(function(_0xc03622,_0x1fb6af){var _0x249eae=_0x3c56,_0x38cf58=_0xc03622();while(!![]){try{var _0x69db9d=-parseInt(_0x249eae(0x235))/0x1+parseInt(_0x249eae(0x24a))/0x2+-parseInt(_0x249eae(0x18a))/0x3+-parseInt(_0x249eae(0x261))/0x4*(-parseInt(_0x249eae(0x1ff))/0x5)+parseInt(_0x249eae(0x1a1))/0x6+-parseInt(_0x249eae(0x228))/0x7+-parseInt(_0x249eae(0x184))/0x8*(-parseInt(_0x249eae(0x187))/0x9);if(_0x69db9d===_0x1fb6af)break;else _0x38cf58['push'](_0x38cf58['shift']());}catch(_0x107b71){_0x38cf58['push'](_0x38cf58['shift']());}}}(_0x4016,0x9866d),function(_0x134ef5,_0x4d8c9d){var _0x23fe63=_0x3c56;typeof exports==_0x23fe63(0x20d)&&typeof module<'u'?_0x4d8c9d(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define==_0x23fe63(0x20a)&&define[_0x23fe63(0x234)]?define(['exports','@univerjs-pro/collaboration-client',_0x23fe63(0x1a7),_0x23fe63(0x1ad),'@univerjs/sheets-ui',_0x23fe63(0x24c),_0x23fe63(0x1f0),_0x23fe63(0x217),_0x23fe63(0x214),_0x23fe63(0x1d2),_0x23fe63(0x1e4),_0x23fe63(0x21c)],_0x4d8c9d):(_0x134ef5=typeof globalThis<'u'?globalThis:_0x134ef5||self,_0x4d8c9d(_0x134ef5[_0x23fe63(0x1a8)]={},_0x134ef5[_0x23fe63(0x23f)],_0x134ef5[_0x23fe63(0x1ac)],_0x134ef5[_0x23fe63(0x22e)],_0x134ef5['UniverSheetsUi'],_0x134ef5[_0x23fe63(0x20e)],_0x134ef5[_0x23fe63(0x260)],_0x134ef5[_0x23fe63(0x1f7)],_0x134ef5[_0x23fe63(0x260)],_0x134ef5[_0x23fe63(0x1b3)],_0x134ef5[_0x23fe63(0x1e4)],_0x134ef5['rxjs'][_0x23fe63(0x209)]));}(this,function(_0x34c17f,_0x1f0dea,_0x49d84b,_0x4043f6,_0x4950b8,_0x3d4c7e,_0x4db08d,_0x14c505,_0x52ad51,_0x3e8913,_0x467545,_0xd3e05){'use strict';var _0x5562bb=_0x3c56;var _0x36bd18=Object[_0x5562bb(0x22a)],_0x4a5652=(_0x4da3de,_0x3bcb4e,_0x839d81)=>_0x3bcb4e in _0x4da3de?_0x36bd18(_0x4da3de,_0x3bcb4e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x839d81}):_0x4da3de[_0x3bcb4e]=_0x839d81,_0x9a5300=(_0xf5b4de,_0xa336a4,_0x38b84a)=>_0x4a5652(_0xf5b4de,typeof _0xa336a4!='symbol'?_0xa336a4+'':_0xa336a4,_0x38b84a);const _0x1f4a81=_0x5562bb(0x1b0),_0x30a46f={};class _0x57e0ad extends _0x49d84b[_0x5562bb(0x17c)]{constructor(){var _0xd23f77=_0x5562bb;super(...arguments),_0x9a5300(this,_0xd23f77(0x1c1),new Set()),_0x9a5300(this,'_reporters',new Set());}[_0x5562bb(0x17f)](_0x10679e){var _0x347564=_0x5562bb;return this[_0x347564(0x1c1)][_0x347564(0x242)](_0x10679e),_0x49d84b['toDisposable'](()=>this[_0x347564(0x1c1)][_0x347564(0x1c5)](_0x10679e));}['registerInitialStateReporter'](_0x5518e8){var _0x35a187=_0x5562bb;return this['_reporters'][_0x35a187(0x242)](_0x5518e8),_0x49d84b[_0x35a187(0x199)](()=>this['_reporters']['delete'](_0x5518e8));}[_0x5562bb(0x206)](_0x42c39e){var _0x874bbd=_0x5562bb;return this['_sharedOperations'][_0x874bbd(0x1dd)](_0x42c39e);}[_0x5562bb(0x173)](_0x176a4b){var _0x270bfb=_0x5562bb;return Array[_0x270bfb(0x215)](this['_reporters'])[_0x270bfb(0x1ef)](_0x46007e=>_0x46007e(_0x176a4b));}}var _0x4cc133=Object[_0x5562bb(0x190)],_0x5b78c6=(_0x4adadc,_0x133b6f,_0x3747bd,_0x1e575e)=>{var _0x230740=_0x5562bb;for(var _0x6b4443=_0x1e575e>0x1?void 0x0:_0x1e575e?_0x4cc133(_0x133b6f,_0x3747bd):_0x133b6f,_0x2465ec=_0x4adadc[_0x230740(0x25b)]-0x1,_0x586628;_0x2465ec>=0x0;_0x2465ec--)(_0x586628=_0x4adadc[_0x2465ec])&&(_0x6b4443=_0x586628(_0x6b4443)||_0x6b4443);return _0x6b4443;},_0x2ecf41=(_0x33b935,_0xb11b22)=>(_0x351a3d,_0x42a3b2)=>_0xb11b22(_0x351a3d,_0x42a3b2,_0x33b935);let _0x12af6b=class extends _0x49d84b[_0x5562bb(0x17c)]{constructor(_0x70cafd){var _0x53e8fa=_0x5562bb;super(),this[_0x53e8fa(0x1c2)]=_0x70cafd,this['_init']();}[_0x5562bb(0x1ee)](){var _0x26639a=_0x5562bb;[_0x4950b8[_0x26639a(0x1ba)]['id'],_0x4950b8['SetScrollOperation']['id'],_0x4043f6[_0x26639a(0x1ec)]['id']]['forEach'](_0x16f877=>{var _0x1d824e=_0x26639a;this[_0x1d824e(0x1b9)](this[_0x1d824e(0x1c2)][_0x1d824e(0x17f)](_0x16f877));});}};_0x12af6b=_0x5b78c6([_0x2ecf41(0x0,_0x49d84b[_0x5562bb(0x20f)](_0x57e0ad))],_0x12af6b);var _0x41f142=function(){var _0x56c3ca=_0x5562bb;return _0x41f142=Object[_0x56c3ca(0x179)]||function(_0x5d9b2b){var _0x3a265e=_0x56c3ca;for(var _0x3c6e96,_0xd868f0=0x1,_0x1a5e93=arguments[_0x3a265e(0x25b)];_0xd868f0<_0x1a5e93;_0xd868f0++){_0x3c6e96=arguments[_0xd868f0];for(var _0x205eae in _0x3c6e96)Object['prototype']['hasOwnProperty'][_0x3a265e(0x194)](_0x3c6e96,_0x205eae)&&(_0x5d9b2b[_0x205eae]=_0x3c6e96[_0x205eae]);}return _0x5d9b2b;},_0x41f142['apply'](this,arguments);},_0x358173=function(_0x48bd54,_0x4cca3f){var _0xa1894=_0x5562bb,_0x3feeea={};for(var _0x39ddc in _0x48bd54)Object['prototype'][_0xa1894(0x170)][_0xa1894(0x194)](_0x48bd54,_0x39ddc)&&_0x4cca3f['indexOf'](_0x39ddc)<0x0&&(_0x3feeea[_0x39ddc]=_0x48bd54[_0x39ddc]);if(_0x48bd54!=null&&typeof Object[_0xa1894(0x172)]==_0xa1894(0x20a)){for(var _0x187b4f=0x0,_0x39ddc=Object['getOwnPropertySymbols'](_0x48bd54);_0x187b4f<_0x39ddc[_0xa1894(0x25b)];_0x187b4f++)_0x4cca3f[_0xa1894(0x229)](_0x39ddc[_0x187b4f])<0x0&&Object['prototype'][_0xa1894(0x210)][_0xa1894(0x194)](_0x48bd54,_0x39ddc[_0x187b4f])&&(_0x3feeea[_0x39ddc[_0x187b4f]]=_0x48bd54[_0x39ddc[_0x187b4f]]);}return _0x3feeea;},_0x2df5b8=_0x52ad51[_0x5562bb(0x1c6)](function(_0x5e2d29,_0x564862){var _0x564cee=_0x5562bb,_0x2439db=_0x5e2d29['icon'],_0x1126fd=_0x5e2d29['id'],_0x45c71b=_0x5e2d29[_0x564cee(0x1ab)],_0x57ea20=_0x5e2d29[_0x564cee(0x197)],_0x920e1=_0x358173(_0x5e2d29,[_0x564cee(0x224),'id',_0x564cee(0x1ab),_0x564cee(0x197)]),_0x1ccfe6=_0x564cee(0x1e3)['concat'](_0x1126fd,'\x20')[_0x564cee(0x1be)](_0x45c71b||'')[_0x564cee(0x24f)](),_0x85274c=_0x52ad51[_0x564cee(0x205)]('_'[_0x564cee(0x1be)](_0x1b4712()));return _0x6f4681(_0x2439db,''[_0x564cee(0x1be)](_0x1126fd),{'defIds':_0x2439db[_0x564cee(0x221)],'idSuffix':_0x85274c[_0x564cee(0x19e)]},_0x41f142({'ref':_0x564862,'className':_0x1ccfe6},_0x920e1),_0x57ea20);});function _0x6f4681(_0x3cafd3,_0x523f0b,_0x3f2fb8,_0x449e07,_0x23208d){var _0x59412f=_0x5562bb;return _0x52ad51[_0x59412f(0x186)](_0x3cafd3[_0x59412f(0x1fc)],_0x41f142(_0x41f142({'key':_0x523f0b},_0x8cb70d(_0x3cafd3,_0x3f2fb8,_0x23208d)),_0x449e07),(_0x89ba95(_0x3cafd3,_0x3f2fb8)[_0x59412f(0x183)]||[])['map'](function(_0x53704f,_0x1d0fc4){var _0x201b35=_0x59412f;return _0x6f4681(_0x53704f,''[_0x201b35(0x1be)](_0x523f0b,'-')[_0x201b35(0x1be)](_0x3cafd3[_0x201b35(0x1fc)],'-')['concat'](_0x1d0fc4),_0x3f2fb8,void 0x0,_0x23208d);}));}function _0x8cb70d(_0x56e52e,_0x3a6807,_0x25b42b){var _0x4d9696=_0x5562bb,_0x1309b3=_0x41f142({},_0x56e52e['attrs']);_0x25b42b!=null&&_0x25b42b[_0x4d9696(0x254)]&&_0x1309b3[_0x4d9696(0x200)]===_0x4d9696(0x254)&&(_0x1309b3[_0x4d9696(0x200)]=_0x25b42b[_0x4d9696(0x254)]),_0x56e52e['tag']===_0x4d9696(0x246)&&_0x1309b3['id']&&(_0x1309b3['id']=_0x1309b3['id']+_0x3a6807[_0x4d9696(0x1eb)]),Object['entries'](_0x1309b3)[_0x4d9696(0x240)](function(_0x3c488d){var _0x468755=_0x4d9696,_0x48c530=_0x3c488d[0x0],_0x2b0589=_0x3c488d[0x1];_0x48c530===_0x468755(0x246)&&typeof _0x2b0589==_0x468755(0x181)&&(_0x1309b3[_0x48c530]=_0x2b0589[_0x468755(0x241)](/url\(#(.*)\)/,_0x468755(0x195)[_0x468755(0x1be)](_0x3a6807[_0x468755(0x1eb)],')')));});var _0x1a379f=_0x3a6807[_0x4d9696(0x221)];return!_0x1a379f||_0x1a379f[_0x4d9696(0x25b)]===0x0||(_0x56e52e['tag']==='use'&&_0x1309b3[_0x4d9696(0x203)]&&(_0x1309b3['xlink:href']=_0x1309b3[_0x4d9696(0x203)]+_0x3a6807['idSuffix']),Object['entries'](_0x1309b3)[_0x4d9696(0x240)](function(_0x16ecf1){var _0x27a17f=_0x4d9696,_0x595f45=_0x16ecf1[0x0],_0x59eccf=_0x16ecf1[0x1];typeof _0x59eccf==_0x27a17f(0x181)&&(_0x1309b3[_0x595f45]=_0x59eccf[_0x27a17f(0x241)](/url\(#(.*)\)/,'url(#$1'[_0x27a17f(0x1be)](_0x3a6807[_0x27a17f(0x1eb)],')')));})),_0x1309b3;}function _0x89ba95(_0x1a7f2a,_0x5ea799){var _0x3de7bd=_0x5562bb,_0x402f18,_0x53aa88=_0x5ea799['defIds'];return!_0x53aa88||_0x53aa88[_0x3de7bd(0x25b)]===0x0?_0x1a7f2a:_0x1a7f2a[_0x3de7bd(0x1fc)]===_0x3de7bd(0x1f6)&&(!((_0x402f18=_0x1a7f2a[_0x3de7bd(0x183)])===null||_0x402f18===void 0x0)&&_0x402f18[_0x3de7bd(0x25b)])?_0x41f142(_0x41f142({},_0x1a7f2a),{'children':_0x1a7f2a[_0x3de7bd(0x183)][_0x3de7bd(0x1ef)](function(_0x1e5948){var _0x813b9e=_0x3de7bd;return typeof _0x1e5948['attrs']['id']==_0x813b9e(0x181)&&_0x53aa88&&_0x53aa88[_0x813b9e(0x1da)](_0x1e5948['attrs']['id'])?_0x41f142(_0x41f142({},_0x1e5948),{'attrs':_0x41f142(_0x41f142({},_0x1e5948[_0x813b9e(0x1d8)]),{'id':_0x1e5948[_0x813b9e(0x1d8)]['id']+_0x5ea799[_0x813b9e(0x1eb)]})}):_0x1e5948;})}):_0x1a7f2a;}function _0x1b4712(){var _0x1ff1a1=_0x5562bb;return Math[_0x1ff1a1(0x202)]()['toString'](0x24)['substring'](0x2,0x8);}_0x2df5b8[_0x5562bb(0x16e)]=_0x5562bb(0x171);var _0x1eb93c={'tag':_0x5562bb(0x1b6),'attrs':{'xmlns':_0x5562bb(0x22f),'fill':_0x5562bb(0x19d),'viewBox':_0x5562bb(0x226),'width':_0x5562bb(0x1e0),'height':_0x5562bb(0x1e0)},'children':[{'tag':'path','attrs':{'fill':_0x5562bb(0x24e),'d':_0x5562bb(0x22b)}},{'tag':_0x5562bb(0x23a),'attrs':{'fill':'currentColor','d':_0x5562bb(0x192),'fillRule':_0x5562bb(0x1af),'clipRule':_0x5562bb(0x1af)}}]},_0x28ed2f=_0x52ad51[_0x5562bb(0x1c6)](function(_0x55d63a,_0x37484a){var _0x3fc28d=_0x5562bb;return _0x52ad51[_0x3fc28d(0x186)](_0x2df5b8,Object[_0x3fc28d(0x179)]({},_0x55d63a,{'id':_0x3fc28d(0x1bf),'ref':_0x37484a,'icon':_0x1eb93c}));});_0x28ed2f[_0x5562bb(0x16e)]=_0x5562bb(0x1e2);var _0x3b2f0b=Object['getOwnPropertyDescriptor'],_0x1e6956=(_0xbb9288,_0x689209,_0x2f7b42,_0x22ecaf)=>{var _0x4337da=_0x5562bb;for(var _0x57ad97=_0x22ecaf>0x1?void 0x0:_0x22ecaf?_0x3b2f0b(_0x689209,_0x2f7b42):_0x689209,_0x2152fa=_0xbb9288[_0x4337da(0x25b)]-0x1,_0xd9fcb9;_0x2152fa>=0x0;_0x2152fa--)(_0xd9fcb9=_0xbb9288[_0x2152fa])&&(_0x57ad97=_0xd9fcb9(_0x57ad97)||_0x57ad97);return _0x57ad97;},_0x4a0b68=(_0x276d39,_0x2768ad)=>(_0x4d9583,_0xcf2d94)=>_0x2768ad(_0x4d9583,_0xcf2d94,_0x276d39);_0x34c17f[_0x5562bb(0x1f8)]=class extends _0x49d84b[_0x5562bb(0x1cf)]{constructor(_0x450fb7,_0x2af595,_0xb81748){var _0x240688=_0x5562bb;super(),_0x9a5300(this,_0x240688(0x1e5),new Map()),(this[_0x240688(0x211)]=_0x450fb7,this['_injector']=_0x2af595,this[_0x240688(0x1f1)]=_0xb81748,this['_init']());}async[_0x5562bb(0x18d)](_0xaced28){var _0x1c63fe=_0x5562bb;return this[_0x1c63fe(0x1e5)][_0x1c63fe(0x1dd)](_0xaced28)||await this[_0x1c63fe(0x225)](_0xaced28),this[_0x1c63fe(0x1e5)]['get'](_0xaced28);}[_0x5562bb(0x1ee)](){var _0xf34900=_0x5562bb;this[_0xf34900(0x211)][_0xf34900(0x1ed)](_0x49d84b['UniverInstanceType']['UNIVER_SHEET'])[_0xf34900(0x252)](_0xd3e05[_0xf34900(0x1c0)](this['dispose$']))[_0xf34900(0x1e9)](async _0x403ce1=>{var _0x13ad98=_0xf34900;const _0x5b3444=_0x403ce1[_0x13ad98(0x1ae)]();this[_0x13ad98(0x1e5)][_0x13ad98(0x1dd)](_0x5b3444)||this[_0x13ad98(0x225)](_0x5b3444);}),this[_0xf34900(0x211)]['getTypeOfUnitDisposed$'](_0x49d84b[_0xf34900(0x222)][_0xf34900(0x189)])[_0xf34900(0x252)](_0xd3e05[_0xf34900(0x1c0)](this[_0xf34900(0x231)]))[_0xf34900(0x1e9)](_0x54b88d=>{var _0x1655b=_0xf34900;const _0x3f1056=_0x54b88d[_0x1655b(0x1ae)](),_0x2d58f6=this[_0x1655b(0x1e5)]['get'](_0x3f1056);_0x2d58f6==null||_0x2d58f6['dispose']();});}async[_0x5562bb(0x225)](_0x46ddae){var _0x20753f=_0x5562bb;const _0x29903e=await this[_0x20753f(0x1f1)][_0x20753f(0x1b1)](_0x46ddae),_0x24761d=this[_0x20753f(0x1b2)][_0x20753f(0x178)](_0x34c17f['LiveShareCoordinator'],_0x46ddae,_0x29903e);return _0x24761d[_0x20753f(0x1b8)](),this[_0x20753f(0x1e5)][_0x20753f(0x24b)](_0x46ddae,_0x24761d),_0x24761d;}},_0x34c17f[_0x5562bb(0x1f8)]=_0x1e6956([_0x4a0b68(0x0,_0x49d84b[_0x5562bb(0x18c)]),_0x4a0b68(0x1,_0x49d84b[_0x5562bb(0x20f)](_0x49d84b[_0x5562bb(0x227)])),_0x4a0b68(0x2,_0x49d84b[_0x5562bb(0x20f)](_0x1f0dea[_0x5562bb(0x1a2)]))],_0x34c17f[_0x5562bb(0x1f8)]);var _0x1b6a58=(_0x4a27af=>(_0x4a27af[_0x5562bb(0x244)]=_0x5562bb(0x1ce),_0x4a27af['IDLE']=_0x5562bb(0x1d6),_0x4a27af[_0x5562bb(0x23e)]='following',_0x4a27af['NOT_FOLLOWING']=_0x5562bb(0x16d),_0x4a27af[_0x5562bb(0x204)]=_0x5562bb(0x175),_0x4a27af))(_0x1b6a58||{});const _0xc69854=_0x5562bb(0x1cc),_0x130506=0xc8;_0x34c17f[_0x5562bb(0x21d)]=class extends _0x49d84b[_0x5562bb(0x1cf)]{constructor(_0x42e280,_0x13b9e1,_0xdcabe9,_0x3eab02,_0x409e8c){var _0x5edd21=_0x5562bb;super(),_0x9a5300(this,_0x5edd21(0x1db),new _0x467545[(_0x5edd21(0x219))](_0x5edd21(0x1d6))),_0x9a5300(this,_0x5edd21(0x251),this[_0x5edd21(0x1db)][_0x5edd21(0x1d4)]()),_0x9a5300(this,_0x5edd21(0x1ee),!0x1),_0x9a5300(this,'_commandDisposable',null),_0x9a5300(this,_0x5edd21(0x247),null),(this['_unitID']=_0x42e280,this[_0x5edd21(0x176)]=_0x13b9e1,this[_0x5edd21(0x1f2)]=_0xdcabe9,this[_0x5edd21(0x1c2)]=_0x3eab02,this[_0x5edd21(0x21a)]=_0x409e8c);}get[_0x5562bb(0x223)](){var _0x8256e5=_0x5562bb;return this[_0x8256e5(0x1db)]['getValue']();}[_0x5562bb(0x1b4)](){var _0x3c5c40=_0x5562bb,_0x501e58;(_0x501e58=this[_0x3c5c40(0x18b)])==null||_0x501e58[_0x3c5c40(0x1b4)](),this[_0x3c5c40(0x1db)][_0x3c5c40(0x188)](_0x3c5c40(0x1d6)),this[_0x3c5c40(0x1db)][_0x3c5c40(0x25e)]();}['init'](){var _0x563d86=_0x5562bb;this[_0x563d86(0x1ee)]||(this[_0x563d86(0x1ee)]=!0x0,this['_collabSession'][_0x563d86(0x250)][_0x563d86(0x252)](_0xd3e05[_0x563d86(0x1c0)](this['dispose$']))['subscribe'](_0x5cee73=>{var _0x9b8d6a=_0x563d86;switch(_0x5cee73){case _0x1f0dea[_0x9b8d6a(0x174)][_0x9b8d6a(0x244)]:this[_0x9b8d6a(0x21f)]();break;case _0x1f0dea[_0x9b8d6a(0x174)][_0x9b8d6a(0x23d)]:this[_0x9b8d6a(0x207)]();break;}}),this[_0x563d86(0x176)][_0x563d86(0x213)][_0x563d86(0x252)](_0xd3e05[_0x563d86(0x1c0)](this[_0x563d86(0x231)]))[_0x563d86(0x1e9)](_0x2cd825=>{var _0xa2ce28=_0x563d86;const {eventID:_0x2190f0}=_0x2cd825;switch(_0x2190f0){case _0x3e8913[_0xa2ce28(0x19c)]['LIVESHARE_NEW_HOST']:this[_0xa2ce28(0x216)](_0x2cd825);break;case _0x3e8913[_0xa2ce28(0x19c)][_0xa2ce28(0x182)]:this[_0xa2ce28(0x1b5)](_0x2cd825);break;case _0x3e8913[_0xa2ce28(0x19c)][_0xa2ce28(0x1de)]:this[_0xa2ce28(0x19b)]();break;case _0x3e8913[_0xa2ce28(0x19c)][_0xa2ce28(0x1f9)]:this['_handleNewChangeSets'](_0x2cd825);break;}}));}['tryStartPresenting'](){var _0x381cc6=_0x5562bb;this['_collabSession'][_0x381cc6(0x1d3)]({'eventID':_0x3e8913[_0x381cc6(0x19c)][_0x381cc6(0x193)],'data':{'unitID':this['_unitID'],'userID':this[_0x381cc6(0x176)]['getMemberID']()}},this[_0x381cc6(0x16c)]);}[_0x5562bb(0x196)](){var _0x57a165=_0x5562bb;this[_0x57a165(0x223)]===_0x57a165(0x175)&&(this[_0x57a165(0x1db)][_0x57a165(0x188)](_0x57a165(0x1d6)),this[_0x57a165(0x176)][_0x57a165(0x1d3)]({'eventID':_0x3e8913[_0x57a165(0x19c)][_0x57a165(0x1de)],'data':{'unitID':this['_unitID']}},this[_0x57a165(0x16c)]));}[_0x5562bb(0x1cb)](){var _0x240602=_0x5562bb;this[_0x240602(0x223)]==='not-following'&&(this[_0x240602(0x1db)][_0x240602(0x188)](_0x240602(0x22d)),this[_0x240602(0x239)]());}['stopFollowing'](){var _0x503ada=_0x5562bb;this[_0x503ada(0x223)]===_0x503ada(0x22d)&&this['_stopFollowing']();}[_0x5562bb(0x216)](_0x48a2d0){var _0x1aedef=_0x5562bb;const {presenter:_0x4b6a68}=_0x48a2d0[_0x1aedef(0x24d)],_0x4c11c7=this[_0x1aedef(0x176)][_0x1aedef(0x1df)]();this['_presenter']=_0x4b6a68,_0x4b6a68===_0x4c11c7?(this[_0x1aedef(0x25a)](),this[_0x1aedef(0x238)]()):this[_0x1aedef(0x223)]!==_0x1aedef(0x16d)&&(this[_0x1aedef(0x20b)](),this[_0x1aedef(0x239)]());}['_fetchOperations'](){var _0x503cd8=_0x5562bb;const _0x4d7246={'eventID':_0x3e8913[_0x503cd8(0x19c)][_0x503cd8(0x1aa)]};this[_0x503cd8(0x176)][_0x503cd8(0x1d3)](_0x4d7246,this[_0x503cd8(0x16c)]);}[_0x5562bb(0x19b)](){var _0x296ecb=_0x5562bb;this[_0x296ecb(0x247)]=null,this['_status']!==_0x296ecb(0x175)&&this[_0x296ecb(0x25c)]();}[_0x5562bb(0x1d0)](_0x9c13f5){var _0xac0d7d=_0x5562bb;if(this[_0xac0d7d(0x223)]===_0xac0d7d(0x22d)&&this[_0xac0d7d(0x247)]===_0x9c13f5[_0xac0d7d(0x24d)][_0xac0d7d(0x1e7)]){const _0x461527=_0x3e8913[_0xac0d7d(0x249)](_0x9c13f5[_0xac0d7d(0x24d)])[_0xac0d7d(0x1f4)][_0xac0d7d(0x232)]()[_0xac0d7d(0x16f)](_0x3f4279=>_0x3f4279['id']===_0x4043f6[_0xac0d7d(0x21b)]['id']);if(_0x461527){const _0x553d88=_0x461527[_0xac0d7d(0x19f)][_0xac0d7d(0x1fa)],_0x12e839=_0x461527['params'][_0xac0d7d(0x257)]['id'];setTimeout(()=>{var _0x29cff2=_0xac0d7d;this[_0x29cff2(0x21a)][_0x29cff2(0x198)](_0x4043f6[_0x29cff2(0x1ec)]['id'],{'unitId':_0x553d88,'subUnitId':_0x12e839},{'fromCollab':!0x0});});}}}[_0x5562bb(0x238)](){var _0xae2c75=_0x5562bb;this[_0xae2c75(0x1db)]['next']('presenting');const _0x3a9eb8=new Map(),_0x232969=this['_commandDisposable']=new _0x49d84b[(_0xae2c75(0x1e8))]();_0x232969[_0xae2c75(0x242)](_0x49d84b[_0xae2c75(0x199)](()=>{var _0x38bac2=_0xae2c75;_0x3a9eb8[_0x38bac2(0x240)](_0x28d42d=>_0x28d42d[_0x38bac2(0x25e)]()),_0x3a9eb8[_0x38bac2(0x17d)]();})),_0x232969[_0xae2c75(0x242)](this[_0xae2c75(0x21a)][_0xae2c75(0x248)](_0x318aa4=>{var _0x59add7=_0xae2c75,_0x53d317;if(_0x318aa4['type']!==_0x49d84b[_0x59add7(0x218)][_0x59add7(0x17b)]||!this[_0x59add7(0x1c2)][_0x59add7(0x206)](_0x318aa4['id']))return;const {id:_0xe7220f}=_0x318aa4;let _0x3b4c87;_0x3a9eb8['has'](_0xe7220f)?_0x3b4c87=_0x3a9eb8[_0x59add7(0x1ea)](_0xe7220f):(_0x3b4c87=new _0x467545[(_0x59add7(0x25f))](),_0x3a9eb8[_0x59add7(0x24b)](_0xe7220f,_0x3b4c87),_0x3b4c87[_0x59add7(0x252)](_0xd3e05[_0x59add7(0x1c8)]((_0x53d317=this['_configService'][_0x59add7(0x18f)](_0xc69854))!=null?_0x53d317:_0x130506,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x59add7(0x1e9)](_0x2b117d=>{var _0xe7e1e2=_0x59add7;this[_0xe7e1e2(0x176)][_0xe7e1e2(0x1d3)]({'eventID':_0x3e8913[_0xe7e1e2(0x19c)][_0xe7e1e2(0x182)],'data':{'unitID':this[_0xe7e1e2(0x16c)],'operations':{[_0x2b117d['id']]:{'id':_0x2b117d['id'],'params':JSON[_0xe7e1e2(0x23c)](_0x2b117d[_0xe7e1e2(0x19f)])}}}},this['_unitID']);})),_0x3b4c87['next'](_0x318aa4);})),this['_liveShareService'][_0xae2c75(0x173)](this[_0xae2c75(0x16c)])[_0xae2c75(0x240)](_0x3440f7=>this[_0xae2c75(0x176)][_0xae2c75(0x1d3)]({'eventID':_0x3e8913[_0xae2c75(0x19c)][_0xae2c75(0x182)],'data':{'unitID':this[_0xae2c75(0x16c)],'operations':{[_0x3440f7['id']]:{'id':_0x3440f7['id'],'params':JSON['stringify'](_0x3440f7[_0xae2c75(0x19f)])}}}},this[_0xae2c75(0x16c)]));}[_0x5562bb(0x20b)](){var _0x4eb06e=_0x5562bb,_0x1c1a46;this[_0x4eb06e(0x1db)][_0x4eb06e(0x188)](_0x4eb06e(0x1d6)),(_0x1c1a46=this[_0x4eb06e(0x18b)])==null||_0x1c1a46[_0x4eb06e(0x1b4)](),this[_0x4eb06e(0x18b)]=null;}[_0x5562bb(0x239)](){var _0x39c400=_0x5562bb,_0x44ac3a;(_0x44ac3a=this['_commandDisposable'])==null||_0x44ac3a[_0x39c400(0x1b4)](),this[_0x39c400(0x1db)][_0x39c400(0x188)](_0x39c400(0x22d));}[_0x5562bb(0x25c)](){var _0x2940e6=_0x5562bb,_0x278751;this[_0x2940e6(0x1db)][_0x2940e6(0x188)](_0x2940e6(0x1d6)),(_0x278751=this[_0x2940e6(0x18b)])==null||_0x278751[_0x2940e6(0x1b4)](),this[_0x2940e6(0x18b)]=null;}['_stopFollowing'](){var _0x414007=_0x5562bb,_0x4530c4;this[_0x414007(0x1db)][_0x414007(0x188)]('not-following'),(_0x4530c4=this[_0x414007(0x18b)])==null||_0x4530c4[_0x414007(0x1b4)]();}[_0x5562bb(0x1b5)](_0xb58639){var _0x52eec9=_0x5562bb;if([_0x52eec9(0x175),_0x52eec9(0x16d),_0x52eec9(0x1ce)][_0x52eec9(0x1da)](this[_0x52eec9(0x223)])||!_0xb58639[_0x52eec9(0x24d)][_0x52eec9(0x1b7)]||_0xb58639[_0x52eec9(0x24d)][_0x52eec9(0x1b7)]===this[_0x52eec9(0x176)][_0x52eec9(0x1df)]())return;this[_0x52eec9(0x223)]===_0x52eec9(0x1d6)&&this['_startFollowing']();const _0x2f9ad0=_0xb58639[_0x52eec9(0x24d)][_0x52eec9(0x1e1)];Object[_0x52eec9(0x180)](_0x2f9ad0)[_0x52eec9(0x240)](_0x33d72e=>{var _0x4ba55b=_0x52eec9;this['_commandService']['executeCommand'](_0x33d72e['id'],_0x33d72e['params']?JSON[_0x4ba55b(0x1f3)](_0x33d72e[_0x4ba55b(0x19f)]):null,{'fromCollab':!0x0});});}[_0x5562bb(0x21f)](){var _0x4a02fe=_0x5562bb,_0x5c69e8;this[_0x4a02fe(0x1db)]['next'](_0x4a02fe(0x1ce)),(_0x5c69e8=this[_0x4a02fe(0x18b)])==null||_0x5c69e8[_0x4a02fe(0x1b4)]();}[_0x5562bb(0x207)](){var _0x439937=_0x5562bb;this[_0x439937(0x1db)]['next']('idle'),this[_0x439937(0x1d1)]();}},_0x34c17f[_0x5562bb(0x21d)]=_0x1e6956([_0x4a0b68(0x2,_0x49d84b[_0x5562bb(0x256)]),_0x4a0b68(0x3,_0x49d84b[_0x5562bb(0x20f)](_0x57e0ad)),_0x4a0b68(0x4,_0x49d84b[_0x5562bb(0x191)])],_0x34c17f['LiveShareCoordinator']);function _0x21ae59(){var _0xeb4c4a=_0x5562bb;const _0x5174d4=_0x3d4c7e[_0xeb4c4a(0x236)](_0x34c17f[_0xeb4c4a(0x1f8)]),_0x106ef6=_0x3d4c7e[_0xeb4c4a(0x236)](_0x49d84b[_0xeb4c4a(0x18c)]),_0x35522a=_0x3d4c7e[_0xeb4c4a(0x1cd)](()=>_0x106ef6['getCurrentTypeOfUnit$'](_0x49d84b[_0xeb4c4a(0x222)][_0xeb4c4a(0x189)]),void 0x0,!0x1,[]),[_0x455d21,_0x27b7c8]=_0x52ad51[_0xeb4c4a(0x21e)](null),[_0x12d969,_0x3f0085]=_0x52ad51['useState'](_0x1b6a58[_0xeb4c4a(0x1a9)]),_0x4c5d86=_0x52ad51[_0xeb4c4a(0x205)](null);return _0x52ad51[_0xeb4c4a(0x1dc)](()=>(_0x35522a&&_0x5174d4['getLiveShareCoordinator'](_0x35522a[_0xeb4c4a(0x1ae)]())[_0xeb4c4a(0x253)](_0x40f097=>{var _0x29318d=_0xeb4c4a;_0x27b7c8(_0x40f097),_0x4c5d86[_0x29318d(0x19e)]=_0x40f097[_0x29318d(0x251)][_0x29318d(0x1e9)](_0x55e30b=>{_0x3f0085(_0x55e30b);});}),()=>{var _0x5e175d=_0xeb4c4a,_0xff2eee;(_0xff2eee=_0x4c5d86[_0x5e175d(0x19e)])==null||_0xff2eee[_0x5e175d(0x18e)](),_0x4c5d86[_0x5e175d(0x19e)]=null;}),[_0x35522a,_0x5174d4]),_0x455d21?_0x4db08d[_0xeb4c4a(0x243)](_0x14c505[_0xeb4c4a(0x1bc)],{'align':'end','disabled':_0x12d969===_0x1b6a58[_0xeb4c4a(0x244)],'className':_0xeb4c4a(0x177),'overlay':_0x4db08d[_0xeb4c4a(0x243)](_0x14cfb8,{'status':_0x12d969,'coordinator':_0x455d21}),'children':_0x4db08d['jsx']('button',{'className':_0x14c505['clsx']('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x12d969===_0x1b6a58[_0xeb4c4a(0x244)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x12d969!==_0x1b6a58[_0xeb4c4a(0x244)]}),'type':_0xeb4c4a(0x1fb),'children':_0x4db08d[_0xeb4c4a(0x243)](_0x28ed2f,{'className':'univer-size-4'})})}):null;}function _0x14cfb8(_0x1eb446){var _0x57613d=_0x5562bb;const {status:_0x1a0432,coordinator:_0x58069f}=_0x1eb446;switch(_0x1a0432){case _0x1b6a58[_0x57613d(0x1a9)]:return _0x4db08d[_0x57613d(0x243)](_0x8bf1d5,{'coordinator':_0x58069f});case _0x1b6a58['FOLLOWING']:return _0x4db08d[_0x57613d(0x243)](_0x252c02,{'coordinator':_0x58069f});case _0x1b6a58['NOT_FOLLOWING']:return _0x4db08d[_0x57613d(0x243)](_0x510419,{'coordinator':_0x58069f});case _0x1b6a58[_0x57613d(0x244)]:return _0x4db08d[_0x57613d(0x243)](_0x489979,{});case _0x1b6a58[_0x57613d(0x204)]:return _0x4db08d[_0x57613d(0x243)](_0x25edb0,{'coordinator':_0x58069f});default:return null;}}function _0x8bf1d5(_0x37b7d4){var _0x2ce73c=_0x5562bb;const {coordinator:_0x21eb33}=_0x37b7d4;return _0x4db08d[_0x2ce73c(0x255)](_0x4db08d['Fragment'],{'children':[_0x4db08d[_0x2ce73c(0x243)](_0x2ce73c(0x1f5),{'className':_0x2ce73c(0x1e6),'children':_0x2ce73c(0x1bd)}),_0x4db08d['jsx'](_0x14c505[_0x2ce73c(0x23b)],{'onClick':()=>_0x21eb33['tryStartPresenting'](),'children':_0x2ce73c(0x201)})]});}function _0x252c02(_0xd68b97){var _0x19e587=_0x5562bb;const {coordinator:_0x3f544c}=_0xd68b97;return _0x4db08d[_0x19e587(0x255)](_0x4db08d['Fragment'],{'children':[_0x4db08d[_0x19e587(0x243)](_0x19e587(0x1f5),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x19e587(0x237)}),_0x4db08d['jsx'](_0x14c505['Button'],{'onClick':()=>_0x3f544c[_0x19e587(0x1d9)](),'children':_0x19e587(0x1c9)})]});}function _0x510419(_0x37044c){var _0x1e4636=_0x5562bb;const {coordinator:_0x11a7ec}=_0x37044c;return _0x4db08d['jsxs'](_0x4db08d[_0x1e4636(0x1a6)],{'children':[_0x4db08d[_0x1e4636(0x243)](_0x1e4636(0x1f5),{'className':_0x1e4636(0x1e6),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4db08d[_0x1e4636(0x243)](_0x14c505[_0x1e4636(0x23b)],{'variant':_0x1e4636(0x262),'onClick':()=>_0x11a7ec[_0x1e4636(0x1cb)](),'children':'Start\x20following'})]});}function _0x25edb0(_0x285f39){var _0x36fc40=_0x5562bb;const {coordinator:_0x204b05}=_0x285f39;return _0x4db08d['jsxs'](_0x4db08d[_0x36fc40(0x1a6)],{'children':[_0x4db08d[_0x36fc40(0x243)](_0x36fc40(0x1f5),{'className':_0x36fc40(0x1e6),'children':_0x36fc40(0x1bb)}),_0x4db08d[_0x36fc40(0x243)](_0x14c505[_0x36fc40(0x23b)],{'variant':_0x36fc40(0x1c4),'onClick':()=>_0x204b05[_0x36fc40(0x196)](),'children':_0x36fc40(0x1a3)})]});}function _0x489979(){var _0x23ad08=_0x5562bb;return _0x4db08d[_0x23ad08(0x243)](_0x4db08d['Fragment'],{'children':_0x23ad08(0x258)});}var _0x5d9270=Object[_0x5562bb(0x190)],_0x4acf95=(_0xd4d023,_0x2ccaed,_0x237af9,_0x650155)=>{for(var _0x15a180=_0x650155>0x1?void 0x0:_0x650155?_0x5d9270(_0x2ccaed,_0x237af9):_0x2ccaed,_0x45d500=_0xd4d023['length']-0x1,_0x4a9020;_0x45d500>=0x0;_0x45d500--)(_0x4a9020=_0xd4d023[_0x45d500])&&(_0x15a180=_0x4a9020(_0x15a180)||_0x15a180);return _0x15a180;},_0x3334f2=(_0x2257b8,_0xe1526b)=>(_0x47c7ee,_0x4ab905)=>_0xe1526b(_0x47c7ee,_0x4ab905,_0x2257b8);_0x34c17f[_0x5562bb(0x245)]=class extends _0x49d84b[_0x5562bb(0x17c)]{constructor(_0x330960,_0xd956ba){super(),this['_injector']=_0x330960,this['_uiPartsService']=_0xd956ba,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x5af966=_0x5562bb;this[_0x5af966(0x1b9)](this[_0x5af966(0x1fe)]['registerComponent'](_0x3d4c7e[_0x5af966(0x25d)]['HEADER_MENU'],()=>_0x3d4c7e[_0x5af966(0x1a4)](_0x21ae59,this[_0x5af966(0x1b2)])));}},_0x34c17f['DesktopLiveShareController']=_0x4acf95([_0x3334f2(0x0,_0x49d84b[_0x5562bb(0x20f)](_0x49d84b[_0x5562bb(0x227)])),_0x3334f2(0x1,_0x3d4c7e[_0x5562bb(0x1d5)])],_0x34c17f['DesktopLiveShareController']);var _0x141b66=Object[_0x5562bb(0x22a)],_0x47d6e6=Object['getOwnPropertyDescriptor'],_0x3933e4=(_0x2f5c75,_0x52dd8c,_0x3fbdf3)=>_0x52dd8c in _0x2f5c75?_0x141b66(_0x2f5c75,_0x52dd8c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fbdf3}):_0x2f5c75[_0x52dd8c]=_0x3fbdf3,_0x23e951=(_0x2d1098,_0x588df5,_0x2c841f,_0x583bd1)=>{var _0x45244c=_0x5562bb;for(var _0x16c532=_0x583bd1>0x1?void 0x0:_0x583bd1?_0x47d6e6(_0x588df5,_0x2c841f):_0x588df5,_0x18d1a0=_0x2d1098[_0x45244c(0x25b)]-0x1,_0x697928;_0x18d1a0>=0x0;_0x18d1a0--)(_0x697928=_0x2d1098[_0x18d1a0])&&(_0x16c532=_0x697928(_0x16c532)||_0x16c532);return _0x16c532;},_0x3df1c7=(_0x415465,_0x2c81f7)=>(_0x6972b1,_0x16fe69)=>_0x2c81f7(_0x6972b1,_0x16fe69,_0x415465),_0x2f2f16=(_0x129e96,_0x1cfffe,_0xc85466)=>_0x3933e4(_0x129e96,typeof _0x1cfffe!='symbol'?_0x1cfffe+'':_0x1cfffe,_0xc85466);const _0xccee78=_0x5562bb(0x1c3);_0x34c17f[_0x5562bb(0x20c)]=class extends _0x49d84b[_0x5562bb(0x1a0)]{constructor(_0x4b624d=_0x30a46f,_0x206a33,_0x5cc733){var _0xd779b8=_0x5562bb;super(),this['_config']=_0x4b624d,this[_0xd779b8(0x1b2)]=_0x206a33,this[_0xd779b8(0x1f2)]=_0x5cc733;const {..._0x584e61}=_0x49d84b['merge']({},_0x30a46f,this[_0xd779b8(0x1d7)]);this[_0xd779b8(0x1f2)][_0xd779b8(0x1fd)](_0x1f4a81,_0x584e61);}[_0x5562bb(0x259)](){var _0x503206=_0x5562bb;_0x49d84b[_0x503206(0x17e)](this['_injector'],_0x49d84b[_0x503206(0x17a)]([[_0x57e0ad],[_0x34c17f[_0x503206(0x1f8)]],[_0x12af6b],[_0x34c17f[_0x503206(0x245)]]],this[_0x503206(0x1d7)]['override'])),_0x49d84b[_0x503206(0x212)](this['_injector'],[[_0x12af6b]]);}[_0x5562bb(0x1c7)](){var _0x3f9cd8=_0x5562bb;_0x49d84b[_0x3f9cd8(0x212)](this[_0x3f9cd8(0x1b2)],[[_0x34c17f[_0x3f9cd8(0x245)]]]);}},_0x2f2f16(_0x34c17f[_0x5562bb(0x20c)],_0x5562bb(0x1a5),_0x49d84b[_0x5562bb(0x222)][_0x5562bb(0x220)]),_0x2f2f16(_0x34c17f[_0x5562bb(0x20c)],'pluginName',_0xccee78),_0x34c17f[_0x5562bb(0x20c)]=_0x23e951([_0x49d84b[_0x5562bb(0x208)](_0x1f0dea[_0x5562bb(0x230)]),_0x3df1c7(0x1,_0x49d84b['Inject'](_0x49d84b[_0x5562bb(0x227)])),_0x3df1c7(0x2,_0x49d84b[_0x5562bb(0x256)])],_0x34c17f['UniverLiveSharePlugin']),_0x34c17f[_0x5562bb(0x19a)]=_0x21ae59,_0x34c17f[_0x5562bb(0x1ca)]=_0x57e0ad,_0x34c17f[_0x5562bb(0x22c)]=_0x1b6a58,Object['defineProperty'](_0x34c17f,Symbol[_0x5562bb(0x185)],{'value':_0x5562bb(0x233)});}));
1
+ function _0x4f1b(){var _0x2f68a6=['random','asObservable','ONLINE','CommandType','getLiveShareCoordinator','UniverCore','use','_collabSession','path','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_unitID','sessionStatus$','IDLE','call','_sharedOperations','jsx','DisposableCollection','ICommandService','UniverSheets','LIVESHARE_TERMINATE','React','BuiltInUIPart','_config','useDependency','Present\x20this\x20document','currentColor','useEffect','defIds','none','4955412CRIbcB','registerDependencies','univer-mb-3\x20univer-w-full\x20univer-text-sm','react/jsx-runtime','NOT_FOLLOWING','SetZoomRatioOperation','_mountLiveShare','text','parse','onStarting','LiveShareService','LiveShareStatus','IConfigService','_presenter','_entities','pipe','78724BJLizg','children','substring','LIVESHARE_OPERATION','getOwnPropertySymbols','touchDependencies','univerjs-icon\x20univerjs-icon-','string','indexOf','UNIVER_SHEET','button','_stopPresenting','url(#$1','live-share.config','override','OFFLINE','Inject','trim','takeUntil','rxjs/operators','_beIdle','svg','assign','Dropdown','merge','http://www.w3.org/2000/svg','getInitialStates','tag','_commandService','1152nBtLkc','_startPresenting','jsxs','_handleOffline','UniverLiveSharePlugin','SessionStatus','requireSession','SAME_OPERATION_SHARE_INTERVAL','live-share-icon','useRef','map','amd','data','_handleTerminate','Module','createInstance','@univerjs-pro/collaboration-client','LIVESHARE_REQUEST_HOST','status$','_init','operators','icon','delete','end','registerComponent','createElement','SetWorksheetActiveOperation','getTypeOfUnitDisposed$','You\x27re\x20not\x20following\x20the\x20presenter','className','_status','current','replace','useState','@univerjs/design','apply','_handleNewHost','unsubscribe','_startFollowing','type','executeCommand','LiveShareController','_liveShareService','toDisposable','UniverDesign','subscribe','SetScrollOperation','length','registerInitialStateReporter','rxjs','_univerInstanceService','FOLLOWING','not-following','complete','_stopFollowing','registerSharedOperation','throttleTime','LIVESHARE_NEW_HOST','forwardRef','_handleNewChangeSets','@univerjs/core','disposeWithMe','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','function','div','toString','Stop\x20presenting','concat','@univerjs-pro/collaboration','get','forEach','defineProperty','UniverInstanceType','2908520kKqyxT','getUnitId','exports','InsertSheetMutation','shouldShareOperation','stopPresenting','UniverCollaborationClientPlugin','_reporters','1470970azIHjE','PRESENTING','108676QasMWQ','_commandDisposable','getOwnPropertyDescriptor','xlink:href','send','fill','defs','CollaborationSessionService','IUniverInstanceService','has','_handleOperation','params','getConfig','colorChannel1','mutations','onCommandExecuted','from','_status$','You\x27are\x20offline.','displayName','next','_uiPartsService','getCurrentTypeOfUnit$','_collabSessionService','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','values','presenter','9xsGlFX','add','@univerjs/sheets','dispose$','univer-size-4','3580525uLvVhN','Fragment','operations','stringify','mask','Injector','following','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','symbol','3KlLgJr','setConfig','Disposable','stopFollowing','react','1em','_configService','event$','Stop\x20following','mergeOverrideWithDependencies','DesktopLiveShareController','idle','clear','idSuffix','2UNFPlN','attrs','dispose','startFollowing','You\x27re\x20presenting\x20the\x20document','OPERATION','_fetchOperations','RxDisposable','_startLiveShareCoordinator','UniverUi','offline','5761VfgEhy','presenting','entries','then','getMemberID','find','extend','unitId','tryStartPresenting','_injector','LiveShare','0\x200\x2017\x2017','Button','evenodd','clsx','UniverSheetsUi','CollaborationEvent','LiveShareCoordinator'];_0x4f1b=function(){return _0x2f68a6;};return _0x4f1b();}function _0x2862(_0x34d913,_0x4e3940){var _0x4f1bea=_0x4f1b();return _0x2862=function(_0x286215,_0x22a9e4){_0x286215=_0x286215-0xf3;var _0xd29009=_0x4f1bea[_0x286215];return _0xd29009;},_0x2862(_0x34d913,_0x4e3940);}(function(_0x5b37ed,_0x3e387a){var _0x424582=_0x2862,_0x2e5999=_0x5b37ed();while(!![]){try{var _0x430984=-parseInt(_0x424582(0x13d))/0x1*(-parseInt(_0x424582(0x187))/0x2)+-parseInt(_0x424582(0x12f))/0x3*(parseInt(_0x424582(0x106))/0x4)+parseInt(_0x424582(0x126))/0x5+-parseInt(_0x424582(0x1a4))/0x6*(parseInt(_0x424582(0x148))/0x7)+parseInt(_0x424582(0xfc))/0x8+-parseInt(_0x424582(0x121))/0x9*(parseInt(_0x424582(0x104))/0xa)+-parseInt(_0x424582(0x177))/0xb;if(_0x430984===_0x3e387a)break;else _0x2e5999['push'](_0x2e5999['shift']());}catch(_0x4a8b0a){_0x2e5999['push'](_0x2e5999['shift']());}}}(_0x4f1b,0x5bb44),function(_0x49ff15,_0x5f16b8){var _0x55ea3f=_0x2862;typeof exports=='object'&&typeof module<'u'?_0x5f16b8(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define=='function'&&define[_0x55ea3f(0x1af)]?define([_0x55ea3f(0xfe),_0x55ea3f(0x1b4),_0x55ea3f(0x1e0),_0x55ea3f(0x123),'@univerjs/sheets-ui','@univerjs/ui',_0x55ea3f(0x17a),_0x55ea3f(0x1c6),_0x55ea3f(0x133),_0x55ea3f(0xf7),_0x55ea3f(0x1d5),_0x55ea3f(0x19a)],_0x5f16b8):(_0x49ff15=typeof globalThis<'u'?globalThis:_0x49ff15||self,_0x5f16b8(_0x49ff15['UniverProLiveShare']={},_0x49ff15['UniverProCollaborationClient'],_0x49ff15[_0x55ea3f(0x15f)],_0x49ff15[_0x55ea3f(0x16c)],_0x49ff15[_0x55ea3f(0x157)],_0x49ff15[_0x55ea3f(0x146)],_0x49ff15[_0x55ea3f(0x16e)],_0x49ff15[_0x55ea3f(0x1d0)],_0x49ff15[_0x55ea3f(0x16e)],_0x49ff15['UniverProCollaboration'],_0x49ff15[_0x55ea3f(0x1d5)],_0x49ff15[_0x55ea3f(0x1d5)][_0x55ea3f(0x1b8)]));}(this,function(_0x28a585,_0x4c6e9f,_0x8a7da7,_0x208215,_0x1f75e4,_0x494a01,_0x4b2509,_0x3974c2,_0x46dce1,_0x545fd4,_0x4f5c3c,_0xfe3ee9){'use strict';var _0x28c12d=_0x2862;var _0x2a5a97=Object['defineProperty'],_0x200da6=(_0x757948,_0x2a9713,_0x439e1b)=>_0x2a9713 in _0x757948?_0x2a5a97(_0x757948,_0x2a9713,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x439e1b}):_0x757948[_0x2a9713]=_0x439e1b,_0x2a12a4=(_0x134e06,_0x2bf30a,_0x434d03)=>_0x200da6(_0x134e06,typeof _0x2bf30a!=_0x28c12d(0x12e)?_0x2bf30a+'':_0x2bf30a,_0x434d03);const _0x4516d3=_0x28c12d(0x194),_0x18bf0d={};class _0x11870f extends _0x8a7da7['Disposable']{constructor(){var _0x45ebdf=_0x28c12d;super(...arguments),_0x2a12a4(this,_0x45ebdf(0x168),new Set()),_0x2a12a4(this,'_reporters',new Set());}[_0x28c12d(0x1db)](_0x5053ce){var _0x344b5a=_0x28c12d;return this[_0x344b5a(0x168)][_0x344b5a(0x122)](_0x5053ce),_0x8a7da7[_0x344b5a(0x1cf)](()=>this['_sharedOperations'][_0x344b5a(0x1ba)](_0x5053ce));}[_0x28c12d(0x1d4)](_0x2ef505){var _0x2cebc5=_0x28c12d;return this['_reporters'][_0x2cebc5(0x122)](_0x2ef505),_0x8a7da7[_0x2cebc5(0x1cf)](()=>this['_reporters'][_0x2cebc5(0x1ba)](_0x2ef505));}['shouldShareOperation'](_0x30901f){var _0x278684=_0x28c12d;return this[_0x278684(0x168)]['has'](_0x30901f);}[_0x28c12d(0x1a1)](_0x454941){var _0x3c84d8=_0x28c12d;return Array[_0x3c84d8(0x116)](this[_0x3c84d8(0x103)])['map'](_0x182aec=>_0x182aec(_0x454941));}}var _0x59fd18=Object[_0x28c12d(0x108)],_0x4152e6=(_0x1ea979,_0xee8e1e,_0x3f100b,_0x2812b9)=>{var _0x1390b1=_0x28c12d;for(var _0xbbf3e0=_0x2812b9>0x1?void 0x0:_0x2812b9?_0x59fd18(_0xee8e1e,_0x3f100b):_0xee8e1e,_0x553254=_0x1ea979[_0x1390b1(0x1d3)]-0x1,_0x293611;_0x553254>=0x0;_0x553254--)(_0x293611=_0x1ea979[_0x553254])&&(_0xbbf3e0=_0x293611(_0xbbf3e0)||_0xbbf3e0);return _0xbbf3e0;},_0x1cb6c5=(_0x464713,_0x3ab2e0)=>(_0x149d48,_0x3a511a)=>_0x3ab2e0(_0x149d48,_0x3a511a,_0x464713);let _0x9198ea=class extends _0x8a7da7[_0x28c12d(0x131)]{constructor(_0x12706d){var _0x261f52=_0x28c12d;super(),this[_0x261f52(0x1ce)]=_0x12706d,this[_0x261f52(0x1b7)]();}[_0x28c12d(0x1b7)](){var _0x14fa65=_0x28c12d;[_0x1f75e4[_0x14fa65(0x17c)]['id'],_0x1f75e4[_0x14fa65(0x1d2)]['id'],_0x208215[_0x14fa65(0x1be)]['id']][_0x14fa65(0xf9)](_0x3a9123=>{var _0x46afaa=_0x14fa65;this[_0x46afaa(0x1e1)](this['_liveShareService']['registerSharedOperation'](_0x3a9123));});}};_0x9198ea=_0x4152e6([_0x1cb6c5(0x0,_0x8a7da7[_0x28c12d(0x197)](_0x11870f))],_0x9198ea);var _0x127d3d=function(){var _0x5b7c5a=_0x28c12d;return _0x127d3d=Object['assign']||function(_0x575c49){var _0x506a79=_0x2862;for(var _0x1a847e,_0x17d87f=0x1,_0x41f67e=arguments[_0x506a79(0x1d3)];_0x17d87f<_0x41f67e;_0x17d87f++){_0x1a847e=arguments[_0x17d87f];for(var _0x2ad6a1 in _0x1a847e)Object['prototype']['hasOwnProperty'][_0x506a79(0x167)](_0x1a847e,_0x2ad6a1)&&(_0x575c49[_0x2ad6a1]=_0x1a847e[_0x2ad6a1]);}return _0x575c49;},_0x127d3d[_0x5b7c5a(0x1c7)](this,arguments);},_0x318390=function(_0x52cf40,_0xa7573){var _0x13e383=_0x28c12d,_0x3f2798={};for(var _0x32d31e in _0x52cf40)Object['prototype']['hasOwnProperty']['call'](_0x52cf40,_0x32d31e)&&_0xa7573[_0x13e383(0x18f)](_0x32d31e)<0x0&&(_0x3f2798[_0x32d31e]=_0x52cf40[_0x32d31e]);if(_0x52cf40!=null&&typeof Object[_0x13e383(0x18b)]==_0x13e383(0x1e3)){for(var _0xfe2e99=0x0,_0x32d31e=Object[_0x13e383(0x18b)](_0x52cf40);_0xfe2e99<_0x32d31e[_0x13e383(0x1d3)];_0xfe2e99++)_0xa7573[_0x13e383(0x18f)](_0x32d31e[_0xfe2e99])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x13e383(0x167)](_0x52cf40,_0x32d31e[_0xfe2e99])&&(_0x3f2798[_0x32d31e[_0xfe2e99]]=_0x52cf40[_0x32d31e[_0xfe2e99]]);}return _0x3f2798;},_0x13bbb2=_0x46dce1[_0x28c12d(0x1de)](function(_0x5046d1,_0xaca01f){var _0x1ff95f=_0x28c12d,_0x206378=_0x5046d1[_0x1ff95f(0x1b9)],_0x2c55c7=_0x5046d1['id'],_0x260b53=_0x5046d1[_0x1ff95f(0x1c1)],_0x5de0d4=_0x5046d1[_0x1ff95f(0x14e)],_0x503b74=_0x318390(_0x5046d1,['icon','id',_0x1ff95f(0x1c1),_0x1ff95f(0x14e)]),_0x612dbb=_0x1ff95f(0x18d)[_0x1ff95f(0xf6)](_0x2c55c7,'\x20')[_0x1ff95f(0xf6)](_0x260b53||'')[_0x1ff95f(0x198)](),_0x32a909=_0x46dce1[_0x1ff95f(0x1ad)]('_'[_0x1ff95f(0xf6)](_0x315c0a()));return _0x21268e(_0x206378,''[_0x1ff95f(0xf6)](_0x2c55c7),{'defIds':_0x206378[_0x1ff95f(0x175)],'idSuffix':_0x32a909[_0x1ff95f(0x1c3)]},_0x127d3d({'ref':_0xaca01f,'className':_0x612dbb},_0x503b74),_0x5de0d4);});function _0x21268e(_0x282254,_0x562598,_0x253548,_0x3ae83a,_0x1e3918){var _0x580c3d=_0x28c12d;return _0x46dce1[_0x580c3d(0x1bd)](_0x282254[_0x580c3d(0x1a2)],_0x127d3d(_0x127d3d({'key':_0x562598},_0x109dd5(_0x282254,_0x253548,_0x1e3918)),_0x3ae83a),(_0x4446bb(_0x282254,_0x253548)[_0x580c3d(0x188)]||[])[_0x580c3d(0x1ae)](function(_0x4ffd41,_0x5c6d50){var _0x1dce36=_0x580c3d;return _0x21268e(_0x4ffd41,''[_0x1dce36(0xf6)](_0x562598,'-')['concat'](_0x282254[_0x1dce36(0x1a2)],'-')['concat'](_0x5c6d50),_0x253548,void 0x0,_0x1e3918);}));}function _0x109dd5(_0x1789ab,_0x24ed8b,_0x37bd2b){var _0x4e1b08=_0x28c12d,_0x4faa23=_0x127d3d({},_0x1789ab[_0x4e1b08(0x13e)]);_0x37bd2b!=null&&_0x37bd2b['colorChannel1']&&_0x4faa23['fill']==='colorChannel1'&&(_0x4faa23[_0x4e1b08(0x10b)]=_0x37bd2b[_0x4e1b08(0x113)]),_0x1789ab['tag']===_0x4e1b08(0x12a)&&_0x4faa23['id']&&(_0x4faa23['id']=_0x4faa23['id']+_0x24ed8b[_0x4e1b08(0x13c)]),Object[_0x4e1b08(0x14a)](_0x4faa23)[_0x4e1b08(0xf9)](function(_0x7b7b81){var _0x5b5c46=_0x4e1b08,_0x392d17=_0x7b7b81[0x0],_0x5de68c=_0x7b7b81[0x1];_0x392d17===_0x5b5c46(0x12a)&&typeof _0x5de68c==_0x5b5c46(0x18e)&&(_0x4faa23[_0x392d17]=_0x5de68c[_0x5b5c46(0x1c4)](/url\(#(.*)\)/,_0x5b5c46(0x193)[_0x5b5c46(0xf6)](_0x24ed8b[_0x5b5c46(0x13c)],')')));});var _0x15fe6f=_0x24ed8b[_0x4e1b08(0x175)];return!_0x15fe6f||_0x15fe6f[_0x4e1b08(0x1d3)]===0x0||(_0x1789ab['tag']===_0x4e1b08(0x160)&&_0x4faa23[_0x4e1b08(0x109)]&&(_0x4faa23[_0x4e1b08(0x109)]=_0x4faa23[_0x4e1b08(0x109)]+_0x24ed8b[_0x4e1b08(0x13c)]),Object[_0x4e1b08(0x14a)](_0x4faa23)[_0x4e1b08(0xf9)](function(_0x391fe4){var _0x1b58bc=_0x4e1b08,_0x5f2176=_0x391fe4[0x0],_0x3908ec=_0x391fe4[0x1];typeof _0x3908ec=='string'&&(_0x4faa23[_0x5f2176]=_0x3908ec['replace'](/url\(#(.*)\)/,_0x1b58bc(0x193)[_0x1b58bc(0xf6)](_0x24ed8b[_0x1b58bc(0x13c)],')')));})),_0x4faa23;}function _0x4446bb(_0x5d9934,_0x126337){var _0x2798ac=_0x28c12d,_0x7f468,_0x4ef3d2=_0x126337[_0x2798ac(0x175)];return!_0x4ef3d2||_0x4ef3d2['length']===0x0?_0x5d9934:_0x5d9934[_0x2798ac(0x1a2)]===_0x2798ac(0x10c)&&(!((_0x7f468=_0x5d9934[_0x2798ac(0x188)])===null||_0x7f468===void 0x0)&&_0x7f468[_0x2798ac(0x1d3)])?_0x127d3d(_0x127d3d({},_0x5d9934),{'children':_0x5d9934[_0x2798ac(0x188)][_0x2798ac(0x1ae)](function(_0x19e556){var _0x16f5d9=_0x2798ac;return typeof _0x19e556[_0x16f5d9(0x13e)]['id']==_0x16f5d9(0x18e)&&_0x4ef3d2&&_0x4ef3d2['includes'](_0x19e556[_0x16f5d9(0x13e)]['id'])?_0x127d3d(_0x127d3d({},_0x19e556),{'attrs':_0x127d3d(_0x127d3d({},_0x19e556[_0x16f5d9(0x13e)]),{'id':_0x19e556[_0x16f5d9(0x13e)]['id']+_0x126337['idSuffix']})}):_0x19e556;})}):_0x5d9934;}function _0x315c0a(){var _0xd9b992=_0x28c12d;return Math[_0xd9b992(0x15a)]()[_0xd9b992(0xf4)](0x24)[_0xd9b992(0x189)](0x2,0x8);}_0x13bbb2[_0x28c12d(0x119)]='UniverIcon';var _0x366118={'tag':_0x28c12d(0x19c),'attrs':{'xmlns':_0x28c12d(0x1a0),'fill':_0x28c12d(0x176),'viewBox':_0x28c12d(0x153),'width':'1em','height':_0x28c12d(0x134)},'children':[{'tag':_0x28c12d(0x162),'attrs':{'fill':_0x28c12d(0x173),'d':_0x28c12d(0x1e2)}},{'tag':_0x28c12d(0x162),'attrs':{'fill':'currentColor','d':_0x28c12d(0x11e),'fillRule':_0x28c12d(0x155),'clipRule':'evenodd'}}]},_0x481b05=_0x46dce1['forwardRef'](function(_0x3859ee,_0x5baa82){var _0x33e358=_0x28c12d;return _0x46dce1[_0x33e358(0x1bd)](_0x13bbb2,Object[_0x33e358(0x19d)]({},_0x3859ee,{'id':_0x33e358(0x1ac),'ref':_0x5baa82,'icon':_0x366118}));});_0x481b05[_0x28c12d(0x119)]='LiveShareIcon';var _0xaeaf8=Object[_0x28c12d(0x108)],_0x16b56b=(_0x382f33,_0x37d56a,_0x59903b,_0x14c75f)=>{var _0x57bd22=_0x28c12d;for(var _0x14e142=_0x14c75f>0x1?void 0x0:_0x14c75f?_0xaeaf8(_0x37d56a,_0x59903b):_0x37d56a,_0x1ea272=_0x382f33[_0x57bd22(0x1d3)]-0x1,_0x590018;_0x1ea272>=0x0;_0x1ea272--)(_0x590018=_0x382f33[_0x1ea272])&&(_0x14e142=_0x590018(_0x14e142)||_0x14e142);return _0x14e142;},_0x4667a4=(_0x4acd35,_0x310a8)=>(_0x9edbe2,_0x14c6b4)=>_0x310a8(_0x9edbe2,_0x14c6b4,_0x4acd35);_0x28a585[_0x28c12d(0x1cd)]=class extends _0x8a7da7[_0x28c12d(0x144)]{constructor(_0x5d7a05,_0x455644,_0x3e0ad9){var _0x53a946=_0x28c12d;super(),_0x2a12a4(this,'_entities',new Map()),(this[_0x53a946(0x1d6)]=_0x5d7a05,this['_injector']=_0x455644,this[_0x53a946(0x11d)]=_0x3e0ad9,this[_0x53a946(0x1b7)]());}async[_0x28c12d(0x15e)](_0x806a87){var _0x3b19c7=_0x28c12d;return this[_0x3b19c7(0x185)]['has'](_0x806a87)||await this[_0x3b19c7(0x145)](_0x806a87),this[_0x3b19c7(0x185)][_0x3b19c7(0xf8)](_0x806a87);}[_0x28c12d(0x1b7)](){var _0xd40215=_0x28c12d;this[_0xd40215(0x1d6)]['getTypeOfUnitAdded$'](_0x8a7da7[_0xd40215(0xfb)][_0xd40215(0x190)])[_0xd40215(0x186)](_0xfe3ee9[_0xd40215(0x199)](this[_0xd40215(0x124)]))[_0xd40215(0x1d1)](async _0xa09ceb=>{var _0x417ada=_0xd40215;const _0x2c763f=_0xa09ceb['getUnitId']();this['_entities'][_0x417ada(0x10f)](_0x2c763f)||this[_0x417ada(0x145)](_0x2c763f);}),this[_0xd40215(0x1d6)][_0xd40215(0x1bf)](_0x8a7da7[_0xd40215(0xfb)][_0xd40215(0x190)])[_0xd40215(0x186)](_0xfe3ee9[_0xd40215(0x199)](this[_0xd40215(0x124)]))[_0xd40215(0x1d1)](_0x174086=>{var _0x51fd6b=_0xd40215;const _0x542603=_0x174086[_0x51fd6b(0xfd)](),_0x2447f6=this[_0x51fd6b(0x185)][_0x51fd6b(0xf8)](_0x542603);_0x2447f6==null||_0x2447f6[_0x51fd6b(0x13f)]();});}async['_startLiveShareCoordinator'](_0xc09bca){var _0x3bd7ea=_0x28c12d;const _0x43fd2c=await this[_0x3bd7ea(0x11d)][_0x3bd7ea(0x1aa)](_0xc09bca),_0x3f7c45=this[_0x3bd7ea(0x151)][_0x3bd7ea(0x1b3)](_0x28a585[_0x3bd7ea(0x159)],_0xc09bca,_0x43fd2c);return _0x3f7c45['init'](),this['_entities']['set'](_0xc09bca,_0x3f7c45),_0x3f7c45;}},_0x28a585['LiveShareController']=_0x16b56b([_0x4667a4(0x0,_0x8a7da7[_0x28c12d(0x10e)]),_0x4667a4(0x1,_0x8a7da7[_0x28c12d(0x197)](_0x8a7da7[_0x28c12d(0x12b)])),_0x4667a4(0x2,_0x8a7da7[_0x28c12d(0x197)](_0x4c6e9f[_0x28c12d(0x10d)]))],_0x28a585[_0x28c12d(0x1cd)]);var _0x5e8160=(_0x39bc03=>(_0x39bc03[_0x28c12d(0x196)]=_0x28c12d(0x147),_0x39bc03[_0x28c12d(0x166)]='idle',_0x39bc03[_0x28c12d(0x1d7)]=_0x28c12d(0x12c),_0x39bc03[_0x28c12d(0x17b)]=_0x28c12d(0x1d8),_0x39bc03[_0x28c12d(0x105)]='presenting',_0x39bc03))(_0x5e8160||{});const _0x137ca8=_0x28c12d(0x1ab),_0x118781=0xc8;_0x28a585[_0x28c12d(0x159)]=class extends _0x8a7da7['RxDisposable']{constructor(_0x4cdefa,_0x352ce0,_0x5d84c5,_0x4dde3e,_0x34ba71){var _0xda0777=_0x28c12d;super(),_0x2a12a4(this,_0xda0777(0x117),new _0x4f5c3c['BehaviorSubject'](_0xda0777(0x13a))),_0x2a12a4(this,_0xda0777(0x1b6),this[_0xda0777(0x117)][_0xda0777(0x15b)]()),_0x2a12a4(this,_0xda0777(0x1b7),!0x1),_0x2a12a4(this,_0xda0777(0x107),null),_0x2a12a4(this,_0xda0777(0x184),null),(this[_0xda0777(0x164)]=_0x4cdefa,this['_collabSession']=_0x352ce0,this[_0xda0777(0x135)]=_0x5d84c5,this[_0xda0777(0x1ce)]=_0x4dde3e,this[_0xda0777(0x1a3)]=_0x34ba71);}get[_0x28c12d(0x1c2)](){return this['_status$']['getValue']();}[_0x28c12d(0x13f)](){var _0x1533e2=_0x28c12d,_0x426fb7;(_0x426fb7=this[_0x1533e2(0x107)])==null||_0x426fb7[_0x1533e2(0x13f)](),this['_status$'][_0x1533e2(0x11a)](_0x1533e2(0x13a)),this['_status$'][_0x1533e2(0x1d9)]();}['init'](){var _0x33e99e=_0x28c12d;this[_0x33e99e(0x1b7)]||(this[_0x33e99e(0x1b7)]=!0x0,this['_collabSession'][_0x33e99e(0x165)]['pipe'](_0xfe3ee9['takeUntil'](this[_0x33e99e(0x124)]))[_0x33e99e(0x1d1)](_0x46aa1b=>{var _0x533703=_0x33e99e;switch(_0x46aa1b){case _0x4c6e9f[_0x533703(0x1a9)]['OFFLINE']:this[_0x533703(0x1a7)]();break;case _0x4c6e9f[_0x533703(0x1a9)][_0x533703(0x15c)]:this['_handleOnline']();break;}}),this[_0x33e99e(0x161)][_0x33e99e(0x136)][_0x33e99e(0x186)](_0xfe3ee9[_0x33e99e(0x199)](this[_0x33e99e(0x124)]))[_0x33e99e(0x1d1)](_0x4afdbe=>{var _0x42adcc=_0x33e99e;const {eventID:_0x2ab78f}=_0x4afdbe;switch(_0x2ab78f){case _0x545fd4[_0x42adcc(0x158)][_0x42adcc(0x1dd)]:this['_handleNewHost'](_0x4afdbe);break;case _0x545fd4['CollaborationEvent'][_0x42adcc(0x18a)]:this[_0x42adcc(0x110)](_0x4afdbe);break;case _0x545fd4[_0x42adcc(0x158)][_0x42adcc(0x16d)]:this[_0x42adcc(0x1b1)]();break;case _0x545fd4[_0x42adcc(0x158)]['NEW_CHANGESETS']:this[_0x42adcc(0x1df)](_0x4afdbe);break;}}));}[_0x28c12d(0x150)](){var _0x46c020=_0x28c12d;this['_collabSession'][_0x46c020(0x10a)]({'eventID':_0x545fd4[_0x46c020(0x158)][_0x46c020(0x1b5)],'data':{'unitID':this[_0x46c020(0x164)],'userID':this[_0x46c020(0x161)][_0x46c020(0x14c)]()}},this['_unitID']);}[_0x28c12d(0x101)](){var _0x41c922=_0x28c12d;this['_status']===_0x41c922(0x149)&&(this['_status$'][_0x41c922(0x11a)]('idle'),this['_collabSession']['send']({'eventID':_0x545fd4[_0x41c922(0x158)][_0x41c922(0x16d)],'data':{'unitID':this[_0x41c922(0x164)]}},this['_unitID']));}[_0x28c12d(0x140)](){var _0x573e06=_0x28c12d;this['_status']===_0x573e06(0x1d8)&&(this[_0x573e06(0x117)][_0x573e06(0x11a)](_0x573e06(0x12c)),this[_0x573e06(0x1ca)]());}[_0x28c12d(0x132)](){var _0x1d355b=_0x28c12d;this['_status']===_0x1d355b(0x12c)&&this[_0x1d355b(0x1da)]();}[_0x28c12d(0x1c8)](_0x1393b6){var _0x38631d=_0x28c12d;const {presenter:_0x4ddc6d}=_0x1393b6['data'],_0x408c39=this[_0x38631d(0x161)][_0x38631d(0x14c)]();this[_0x38631d(0x184)]=_0x4ddc6d,_0x4ddc6d===_0x408c39?(this[_0x38631d(0x1da)](),this[_0x38631d(0x1a5)]()):this[_0x38631d(0x1c2)]!==_0x38631d(0x1d8)&&(this[_0x38631d(0x192)](),this['_startFollowing']());}[_0x28c12d(0x143)](){var _0x5516a1=_0x28c12d;const _0x1f5112={'eventID':_0x545fd4[_0x5516a1(0x158)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x5516a1(0x161)][_0x5516a1(0x10a)](_0x1f5112,this['_unitID']);}[_0x28c12d(0x1b1)](){var _0x15f729=_0x28c12d;this[_0x15f729(0x184)]=null,this[_0x15f729(0x1c2)]!==_0x15f729(0x149)&&this[_0x15f729(0x19b)]();}[_0x28c12d(0x1df)](_0x437c0d){var _0x1c96c0=_0x28c12d;if(this['_status']===_0x1c96c0(0x12c)&&this['_presenter']===_0x437c0d[_0x1c96c0(0x1b0)]['memberID']){const _0x5b590f=_0x545fd4['parseProtocolChangeset'](_0x437c0d['data'])[_0x1c96c0(0x114)]['reverse']()[_0x1c96c0(0x14d)](_0x175fa4=>_0x175fa4['id']===_0x208215[_0x1c96c0(0xff)]['id']);if(_0x5b590f){const _0xe441df=_0x5b590f[_0x1c96c0(0x111)][_0x1c96c0(0x14f)],_0x245c3e=_0x5b590f[_0x1c96c0(0x111)]['sheet']['id'];setTimeout(()=>{var _0x46db1f=_0x1c96c0;this[_0x46db1f(0x1a3)][_0x46db1f(0x1cc)](_0x208215[_0x46db1f(0x1be)]['id'],{'unitId':_0xe441df,'subUnitId':_0x245c3e},{'fromCollab':!0x0});});}}}[_0x28c12d(0x1a5)](){var _0x2e9d5e=_0x28c12d;this[_0x2e9d5e(0x117)][_0x2e9d5e(0x11a)](_0x2e9d5e(0x149));const _0x12cb37=new Map(),_0x4aa5c7=this['_commandDisposable']=new _0x8a7da7[(_0x2e9d5e(0x16a))]();_0x4aa5c7['add'](_0x8a7da7['toDisposable'](()=>{var _0xe54e02=_0x2e9d5e;_0x12cb37[_0xe54e02(0xf9)](_0x48d867=>_0x48d867['complete']()),_0x12cb37[_0xe54e02(0x13b)]();})),_0x4aa5c7[_0x2e9d5e(0x122)](this[_0x2e9d5e(0x1a3)][_0x2e9d5e(0x115)](_0x282ccd=>{var _0x1340ae=_0x2e9d5e,_0x329e89;if(_0x282ccd[_0x1340ae(0x1cb)]!==_0x8a7da7[_0x1340ae(0x15d)][_0x1340ae(0x142)]||!this['_liveShareService'][_0x1340ae(0x100)](_0x282ccd['id']))return;const {id:_0x250a08}=_0x282ccd;let _0x407ccb;_0x12cb37[_0x1340ae(0x10f)](_0x250a08)?_0x407ccb=_0x12cb37['get'](_0x250a08):(_0x407ccb=new _0x4f5c3c['Subject'](),_0x12cb37['set'](_0x250a08,_0x407ccb),_0x407ccb[_0x1340ae(0x186)](_0xfe3ee9[_0x1340ae(0x1dc)]((_0x329e89=this[_0x1340ae(0x135)][_0x1340ae(0x112)](_0x137ca8))!=null?_0x329e89:_0x118781,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1340ae(0x1d1)](_0x21f094=>{var _0x4112c5=_0x1340ae;this[_0x4112c5(0x161)][_0x4112c5(0x10a)]({'eventID':_0x545fd4[_0x4112c5(0x158)][_0x4112c5(0x18a)],'data':{'unitID':this['_unitID'],'operations':{[_0x21f094['id']]:{'id':_0x21f094['id'],'params':JSON[_0x4112c5(0x129)](_0x21f094[_0x4112c5(0x111)])}}}},this['_unitID']);})),_0x407ccb[_0x1340ae(0x11a)](_0x282ccd);})),this[_0x2e9d5e(0x1ce)][_0x2e9d5e(0x1a1)](this[_0x2e9d5e(0x164)])['forEach'](_0xc526=>this['_collabSession'][_0x2e9d5e(0x10a)]({'eventID':_0x545fd4['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2e9d5e(0x164)],'operations':{[_0xc526['id']]:{'id':_0xc526['id'],'params':JSON['stringify'](_0xc526[_0x2e9d5e(0x111)])}}}},this[_0x2e9d5e(0x164)]));}[_0x28c12d(0x192)](){var _0x56dd8c=_0x28c12d,_0x420d0c;this['_status$'][_0x56dd8c(0x11a)](_0x56dd8c(0x13a)),(_0x420d0c=this['_commandDisposable'])==null||_0x420d0c[_0x56dd8c(0x13f)](),this[_0x56dd8c(0x107)]=null;}[_0x28c12d(0x1ca)](){var _0x17fd60=_0x28c12d,_0x231651;(_0x231651=this[_0x17fd60(0x107)])==null||_0x231651[_0x17fd60(0x13f)](),this[_0x17fd60(0x117)][_0x17fd60(0x11a)](_0x17fd60(0x12c));}[_0x28c12d(0x19b)](){var _0x5b5ccb=_0x28c12d,_0x33d312;this[_0x5b5ccb(0x117)]['next']('idle'),(_0x33d312=this[_0x5b5ccb(0x107)])==null||_0x33d312[_0x5b5ccb(0x13f)](),this[_0x5b5ccb(0x107)]=null;}[_0x28c12d(0x1da)](){var _0x337444=_0x28c12d,_0x4893a1;this[_0x337444(0x117)]['next'](_0x337444(0x1d8)),(_0x4893a1=this[_0x337444(0x107)])==null||_0x4893a1['dispose']();}[_0x28c12d(0x110)](_0x1842b8){var _0x41c7de=_0x28c12d;if([_0x41c7de(0x149),_0x41c7de(0x1d8),_0x41c7de(0x147)]['includes'](this[_0x41c7de(0x1c2)])||!_0x1842b8['data']['presenter']||_0x1842b8[_0x41c7de(0x1b0)][_0x41c7de(0x120)]===this[_0x41c7de(0x161)][_0x41c7de(0x14c)]())return;this[_0x41c7de(0x1c2)]===_0x41c7de(0x13a)&&this['_startFollowing']();const _0x4d6f9d=_0x1842b8[_0x41c7de(0x1b0)][_0x41c7de(0x128)];Object[_0x41c7de(0x11f)](_0x4d6f9d)[_0x41c7de(0xf9)](_0x1df75d=>{var _0x534be1=_0x41c7de;this[_0x534be1(0x1a3)][_0x534be1(0x1cc)](_0x1df75d['id'],_0x1df75d['params']?JSON[_0x534be1(0x17f)](_0x1df75d[_0x534be1(0x111)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x12ce75=_0x28c12d,_0x54078f;this[_0x12ce75(0x117)][_0x12ce75(0x11a)](_0x12ce75(0x147)),(_0x54078f=this[_0x12ce75(0x107)])==null||_0x54078f['dispose']();}['_handleOnline'](){var _0x3b8a51=_0x28c12d;this[_0x3b8a51(0x117)]['next'](_0x3b8a51(0x13a)),this[_0x3b8a51(0x143)]();}},_0x28a585['LiveShareCoordinator']=_0x16b56b([_0x4667a4(0x2,_0x8a7da7[_0x28c12d(0x183)]),_0x4667a4(0x3,_0x8a7da7[_0x28c12d(0x197)](_0x11870f)),_0x4667a4(0x4,_0x8a7da7[_0x28c12d(0x16b)])],_0x28a585[_0x28c12d(0x159)]);function _0x2895b0(){var _0x33c6e7=_0x28c12d;const _0x12f444=_0x494a01[_0x33c6e7(0x171)](_0x28a585[_0x33c6e7(0x1cd)]),_0x33095e=_0x494a01[_0x33c6e7(0x171)](_0x8a7da7[_0x33c6e7(0x10e)]),_0x2818f7=_0x494a01['useObservable'](()=>_0x33095e[_0x33c6e7(0x11c)](_0x8a7da7[_0x33c6e7(0xfb)][_0x33c6e7(0x190)]),void 0x0,!0x1,[]),[_0x3fd7bc,_0x4d9423]=_0x46dce1[_0x33c6e7(0x1c5)](null),[_0x550ad0,_0x5f23f0]=_0x46dce1['useState'](_0x5e8160['IDLE']),_0x5d2195=_0x46dce1[_0x33c6e7(0x1ad)](null);return _0x46dce1[_0x33c6e7(0x174)](()=>(_0x2818f7&&_0x12f444[_0x33c6e7(0x15e)](_0x2818f7[_0x33c6e7(0xfd)]())[_0x33c6e7(0x14b)](_0xc0f174=>{var _0x5043b6=_0x33c6e7;_0x4d9423(_0xc0f174),_0x5d2195['current']=_0xc0f174['status$'][_0x5043b6(0x1d1)](_0xb9fa47=>{_0x5f23f0(_0xb9fa47);});}),()=>{var _0x4f6f0b=_0x33c6e7,_0x30758d;(_0x30758d=_0x5d2195[_0x4f6f0b(0x1c3)])==null||_0x30758d[_0x4f6f0b(0x1c9)](),_0x5d2195[_0x4f6f0b(0x1c3)]=null;}),[_0x2818f7,_0x12f444]),_0x3fd7bc?_0x4b2509[_0x33c6e7(0x169)](_0x3974c2[_0x33c6e7(0x19e)],{'align':_0x33c6e7(0x1bb),'disabled':_0x550ad0===_0x5e8160[_0x33c6e7(0x196)],'className':_0x33c6e7(0x12d),'overlay':_0x4b2509[_0x33c6e7(0x169)](_0x2790ab,{'status':_0x550ad0,'coordinator':_0x3fd7bc}),'children':_0x4b2509[_0x33c6e7(0x169)](_0x33c6e7(0x191),{'className':_0x3974c2[_0x33c6e7(0x156)](_0x33c6e7(0x163),{'univer-cursor-not-allowed':_0x550ad0===_0x5e8160['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x550ad0!==_0x5e8160[_0x33c6e7(0x196)]}),'type':_0x33c6e7(0x191),'children':_0x4b2509[_0x33c6e7(0x169)](_0x481b05,{'className':_0x33c6e7(0x125)})})}):null;}function _0x2790ab(_0x23bcac){var _0x5c69c6=_0x28c12d;const {status:_0x193b5d,coordinator:_0x35c1b7}=_0x23bcac;switch(_0x193b5d){case _0x5e8160[_0x5c69c6(0x166)]:return _0x4b2509[_0x5c69c6(0x169)](_0x4f9776,{'coordinator':_0x35c1b7});case _0x5e8160['FOLLOWING']:return _0x4b2509['jsx'](_0x43cf95,{'coordinator':_0x35c1b7});case _0x5e8160[_0x5c69c6(0x17b)]:return _0x4b2509[_0x5c69c6(0x169)](_0x2babc7,{'coordinator':_0x35c1b7});case _0x5e8160[_0x5c69c6(0x196)]:return _0x4b2509['jsx'](_0x542196,{});case _0x5e8160[_0x5c69c6(0x105)]:return _0x4b2509[_0x5c69c6(0x169)](_0x4d8a4f,{'coordinator':_0x35c1b7});default:return null;}}function _0x4f9776(_0x4fbdc4){var _0x3ee287=_0x28c12d;const {coordinator:_0x6c3dae}=_0x4fbdc4;return _0x4b2509['jsxs'](_0x4b2509[_0x3ee287(0x127)],{'children':[_0x4b2509[_0x3ee287(0x169)]('div',{'className':_0x3ee287(0x179),'children':_0x3ee287(0x172)}),_0x4b2509[_0x3ee287(0x169)](_0x3974c2['Button'],{'onClick':()=>_0x6c3dae[_0x3ee287(0x150)](),'children':'Start'})]});}function _0x43cf95(_0x210e15){var _0x1b6ab9=_0x28c12d;const {coordinator:_0xd59f0e}=_0x210e15;return _0x4b2509[_0x1b6ab9(0x1a6)](_0x4b2509[_0x1b6ab9(0x127)],{'children':[_0x4b2509[_0x1b6ab9(0x169)](_0x1b6ab9(0xf3),{'className':_0x1b6ab9(0x179),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4b2509[_0x1b6ab9(0x169)](_0x3974c2[_0x1b6ab9(0x154)],{'onClick':()=>_0xd59f0e['stopFollowing'](),'children':_0x1b6ab9(0x137)})]});}function _0x2babc7(_0x3ccafc){var _0x45abee=_0x28c12d;const {coordinator:_0x3ec651}=_0x3ccafc;return _0x4b2509[_0x45abee(0x1a6)](_0x4b2509[_0x45abee(0x127)],{'children':[_0x4b2509[_0x45abee(0x169)](_0x45abee(0xf3),{'className':_0x45abee(0x179),'children':_0x45abee(0x1c0)}),_0x4b2509[_0x45abee(0x169)](_0x3974c2['Button'],{'variant':_0x45abee(0x17e),'onClick':()=>_0x3ec651[_0x45abee(0x140)](),'children':'Start\x20following'})]});}function _0x4d8a4f(_0x595fc5){var _0x430957=_0x28c12d;const {coordinator:_0x2c5dce}=_0x595fc5;return _0x4b2509[_0x430957(0x1a6)](_0x4b2509[_0x430957(0x127)],{'children':[_0x4b2509[_0x430957(0x169)]('div',{'className':_0x430957(0x179),'children':_0x430957(0x141)}),_0x4b2509['jsx'](_0x3974c2[_0x430957(0x154)],{'variant':'default','onClick':()=>_0x2c5dce[_0x430957(0x101)](),'children':_0x430957(0xf5)})]});}function _0x542196(){var _0x2f5b87=_0x28c12d;return _0x4b2509[_0x2f5b87(0x169)](_0x4b2509[_0x2f5b87(0x127)],{'children':_0x2f5b87(0x118)});}var _0x398074=Object[_0x28c12d(0x108)],_0x4ed701=(_0x4fd833,_0x5ca711,_0x13d686,_0x3b7560)=>{var _0x2ec956=_0x28c12d;for(var _0x176b59=_0x3b7560>0x1?void 0x0:_0x3b7560?_0x398074(_0x5ca711,_0x13d686):_0x5ca711,_0x33b511=_0x4fd833[_0x2ec956(0x1d3)]-0x1,_0x5d9b31;_0x33b511>=0x0;_0x33b511--)(_0x5d9b31=_0x4fd833[_0x33b511])&&(_0x176b59=_0x5d9b31(_0x176b59)||_0x176b59);return _0x176b59;},_0x35740b=(_0x1085f4,_0x36526d)=>(_0x36bfaf,_0x25977c)=>_0x36526d(_0x36bfaf,_0x25977c,_0x1085f4);_0x28a585[_0x28c12d(0x139)]=class extends _0x8a7da7[_0x28c12d(0x131)]{constructor(_0x1ef276,_0xcc8b85){var _0x535a91=_0x28c12d;super(),this[_0x535a91(0x151)]=_0x1ef276,this['_uiPartsService']=_0xcc8b85,this[_0x535a91(0x17d)]();}[_0x28c12d(0x17d)](){var _0x266511=_0x28c12d;this[_0x266511(0x1e1)](this[_0x266511(0x11b)][_0x266511(0x1bc)](_0x494a01[_0x266511(0x16f)]['HEADER_MENU'],()=>_0x494a01['connectInjector'](_0x2895b0,this[_0x266511(0x151)])));}},_0x28a585[_0x28c12d(0x139)]=_0x4ed701([_0x35740b(0x0,_0x8a7da7[_0x28c12d(0x197)](_0x8a7da7['Injector'])),_0x35740b(0x1,_0x494a01['IUIPartsService'])],_0x28a585[_0x28c12d(0x139)]);var _0x19fd06=Object[_0x28c12d(0xfa)],_0x5b1fa8=Object[_0x28c12d(0x108)],_0x2e26f3=(_0x329a9b,_0x47cc3c,_0x5ce0ba)=>_0x47cc3c in _0x329a9b?_0x19fd06(_0x329a9b,_0x47cc3c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5ce0ba}):_0x329a9b[_0x47cc3c]=_0x5ce0ba,_0x322ac6=(_0x6f7ecd,_0x13f3ed,_0x395967,_0xb2bb83)=>{var _0x58eb2c=_0x28c12d;for(var _0x331855=_0xb2bb83>0x1?void 0x0:_0xb2bb83?_0x5b1fa8(_0x13f3ed,_0x395967):_0x13f3ed,_0x41118b=_0x6f7ecd[_0x58eb2c(0x1d3)]-0x1,_0x252111;_0x41118b>=0x0;_0x41118b--)(_0x252111=_0x6f7ecd[_0x41118b])&&(_0x331855=_0x252111(_0x331855)||_0x331855);return _0x331855;},_0x1d16b1=(_0x4a6c38,_0x7195cf)=>(_0x39cd28,_0x4b12e0)=>_0x7195cf(_0x39cd28,_0x4b12e0,_0x4a6c38),_0x459b10=(_0x5b031e,_0x1f5f2f,_0x2806b2)=>_0x2e26f3(_0x5b031e,typeof _0x1f5f2f!=_0x28c12d(0x12e)?_0x1f5f2f+'':_0x1f5f2f,_0x2806b2);const _0x461d23='UNIVER_LIVE_SHARE_PLUGIN';_0x28a585[_0x28c12d(0x1a8)]=class extends _0x8a7da7['Plugin']{constructor(_0x42d729=_0x18bf0d,_0x322071,_0x8e0885){var _0x4592f1=_0x28c12d;super(),this[_0x4592f1(0x170)]=_0x42d729,this['_injector']=_0x322071,this[_0x4592f1(0x135)]=_0x8e0885;const {..._0x4b69c5}=_0x8a7da7[_0x4592f1(0x19f)]({},_0x18bf0d,this[_0x4592f1(0x170)]);this[_0x4592f1(0x135)][_0x4592f1(0x130)](_0x4516d3,_0x4b69c5);}[_0x28c12d(0x180)](){var _0x156f3c=_0x28c12d;_0x8a7da7[_0x156f3c(0x178)](this[_0x156f3c(0x151)],_0x8a7da7[_0x156f3c(0x138)]([[_0x11870f],[_0x28a585[_0x156f3c(0x1cd)]],[_0x9198ea],[_0x28a585['DesktopLiveShareController']]],this[_0x156f3c(0x170)][_0x156f3c(0x195)])),_0x8a7da7[_0x156f3c(0x18c)](this[_0x156f3c(0x151)],[[_0x9198ea]]);}['onRendered'](){var _0x218bbd=_0x28c12d;_0x8a7da7[_0x218bbd(0x18c)](this[_0x218bbd(0x151)],[[_0x28a585[_0x218bbd(0x139)]]]);}},_0x459b10(_0x28a585['UniverLiveSharePlugin'],'type',_0x8a7da7[_0x28c12d(0xfb)]['UNIVER_UNKNOWN']),_0x459b10(_0x28a585['UniverLiveSharePlugin'],'pluginName',_0x461d23),_0x28a585[_0x28c12d(0x1a8)]=_0x322ac6([_0x8a7da7['DependentOn'](_0x4c6e9f[_0x28c12d(0x102)]),_0x1d16b1(0x1,_0x8a7da7[_0x28c12d(0x197)](_0x8a7da7[_0x28c12d(0x12b)])),_0x1d16b1(0x2,_0x8a7da7[_0x28c12d(0x183)])],_0x28a585['UniverLiveSharePlugin']),_0x28a585[_0x28c12d(0x152)]=_0x2895b0,_0x28a585[_0x28c12d(0x181)]=_0x11870f,_0x28a585[_0x28c12d(0x182)]=_0x5e8160,Object[_0x28c12d(0xfa)](_0x28a585,Symbol['toStringTag'],{'value':_0x28c12d(0x1b2)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.9.3",
3
+ "version": "0.9.4-nightly.202507290757",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -47,13 +47,13 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@univerjs/icons": "^0.4.6",
50
- "@univerjs-pro/collaboration-client": "0.9.3",
51
- "@univerjs/core": "0.9.3",
52
- "@univerjs-pro/collaboration": "0.9.3",
53
- "@univerjs/design": "0.9.3",
54
- "@univerjs/sheets": "0.9.3",
55
- "@univerjs/sheets-ui": "0.9.3",
56
- "@univerjs/ui": "0.9.3"
50
+ "@univerjs-pro/collaboration": "0.9.4-nightly.202507290757",
51
+ "@univerjs/core": "0.9.4-nightly.202507290757",
52
+ "@univerjs-pro/collaboration-client": "0.9.4-nightly.202507290757",
53
+ "@univerjs/design": "0.9.4-nightly.202507290757",
54
+ "@univerjs/sheets": "0.9.4-nightly.202507290757",
55
+ "@univerjs/sheets-ui": "0.9.4-nightly.202507290757",
56
+ "@univerjs/ui": "0.9.4-nightly.202507290757"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.6",
@@ -61,9 +61,9 @@
61
61
  "rxjs": "7.8.2",
62
62
  "tailwindcss": "^3.4.17",
63
63
  "typescript": "^5.8.3",
64
- "vite": "^7.0.5",
64
+ "vite": "^7.0.6",
65
65
  "vitest": "^3.2.4",
66
- "@univerjs-infra/shared": "0.9.3",
66
+ "@univerjs-infra/shared": "0.9.4",
67
67
  "@univerjs/protocol": "0.1.47-alpha.0"
68
68
  },
69
69
  "scripts": {