@univerjs-pro/live-share 0.7.0-nightly.202505231607 → 0.7.0-nightly.202505251606
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x354cf4=_0x1be7;(function(_0xc06cb1,_0x43ee8e){var _0xefb4a9=_0x1be7,_0x1f7b27=_0xc06cb1();while(!![]){try{var _0x5a53e9=-parseInt(_0xefb4a9(0x24c))/0x1+parseInt(_0xefb4a9(0x20b))/0x2*(-parseInt(_0xefb4a9(0x21d))/0x3)+parseInt(_0xefb4a9(0x26b))/0x4*(-parseInt(_0xefb4a9(0x1d4))/0x5)+-parseInt(_0xefb4a9(0x1e6))/0x6*(-parseInt(_0xefb4a9(0x21c))/0x7)+-parseInt(_0xefb4a9(0x25a))/0x8+parseInt(_0xefb4a9(0x20c))/0x9*(-parseInt(_0xefb4a9(0x258))/0xa)+parseInt(_0xefb4a9(0x215))/0xb;if(_0x5a53e9===_0x43ee8e)break;else _0x1f7b27['push'](_0x1f7b27['shift']());}catch(_0x1de692){_0x1f7b27['push'](_0x1f7b27['shift']());}}}(_0x1dab,0x3d7a3));var U=Object[_0x354cf4(0x238)],F=(_0x3fe256,_0x250fb0,_0x294c51)=>_0x250fb0 in _0x3fe256?U(_0x3fe256,_0x250fb0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x294c51}):_0x3fe256[_0x250fb0]=_0x294c51,v=(_0x3db1ac,_0x22aaf8,_0x366ca6)=>F(_0x3db1ac,typeof _0x22aaf8!=_0x354cf4(0x1dd)?_0x22aaf8+'':_0x22aaf8,_0x366ca6);Object['defineProperty'](exports,Symbol[_0x354cf4(0x28c)],{'value':_0x354cf4(0x24e)});const m=require(_0x354cf4(0x23f)),o=require('@univerjs/core'),C=require('@univerjs/sheets'),D=require(_0x354cf4(0x249)),p=require(_0x354cf4(0x207)),l=require('react/jsx-runtime'),g=require(_0x354cf4(0x1f8)),f=require(_0x354cf4(0x291)),_=require(_0x354cf4(0x29d)),x=require('rxjs'),b=require(_0x354cf4(0x211)),$='live-share.config',L={};class E extends o[_0x354cf4(0x1ee)]{constructor(){var _0x38d4d6=_0x354cf4;super(...arguments),v(this,_0x38d4d6(0x1d0),new Set()),v(this,_0x38d4d6(0x208),new Set());}[_0x354cf4(0x275)](_0xdf7b81){var _0x4730f3=_0x354cf4;return this['_sharedOperations'][_0x4730f3(0x1da)](_0xdf7b81),o[_0x4730f3(0x25b)](()=>this[_0x4730f3(0x1d0)][_0x4730f3(0x271)](_0xdf7b81));}[_0x354cf4(0x23a)](_0x3683a6){var _0x117047=_0x354cf4;return this[_0x117047(0x208)]['add'](_0x3683a6),o[_0x117047(0x25b)](()=>this[_0x117047(0x208)]['delete'](_0x3683a6));}[_0x354cf4(0x20a)](_0x55a8bc){var _0x20e359=_0x354cf4;return this[_0x20e359(0x1d0)]['has'](_0x55a8bc);}[_0x354cf4(0x214)](_0x1fb524){var _0x1b1e35=_0x354cf4;return Array[_0x1b1e35(0x273)](this[_0x1b1e35(0x208)])[_0x1b1e35(0x265)](_0x5bb69f=>_0x5bb69f(_0x1fb524));}}var H=Object[_0x354cf4(0x1d5)],V=(_0xcbeaba,_0x52c0e5,_0x3f9989,_0x987cc5)=>{var _0x19c979=_0x354cf4;for(var _0x3b97b4=_0x987cc5>0x1?void 0x0:_0x987cc5?H(_0x52c0e5,_0x3f9989):_0x52c0e5,_0x5c1d31=_0xcbeaba[_0x19c979(0x269)]-0x1,_0x40610;_0x5c1d31>=0x0;_0x5c1d31--)(_0x40610=_0xcbeaba[_0x5c1d31])&&(_0x3b97b4=_0x40610(_0x3b97b4)||_0x3b97b4);return _0x3b97b4;},k=(_0x578191,_0x474f29)=>(_0x40721d,_0x5b1887)=>_0x474f29(_0x40721d,_0x5b1887,_0x578191);let O=class extends o[_0x354cf4(0x1ee)]{constructor(_0x498b12){var _0x46f4c7=_0x354cf4;super(),this[_0x46f4c7(0x28e)]=_0x498b12,this[_0x46f4c7(0x219)]();}['_init'](){var _0x34cbb4=_0x354cf4;[D[_0x34cbb4(0x2a7)]['id'],D[_0x34cbb4(0x202)]['id'],C[_0x34cbb4(0x294)]['id']]['forEach'](_0x2e2296=>{var _0x4f61ab=_0x34cbb4;this[_0x4f61ab(0x1ef)](this[_0x4f61ab(0x28e)][_0x4f61ab(0x275)](_0x2e2296));});}};O=V([k(0x0,o[_0x354cf4(0x1db)](E))],O);var u=function(){var _0x6e939b=_0x354cf4;return u=Object['assign']||function(_0xd77f7e){var _0x246fcb=_0x1be7;for(var _0x4a04fc,_0x12d58c=0x1,_0x39388f=arguments['length'];_0x12d58c<_0x39388f;_0x12d58c++){_0x4a04fc=arguments[_0x12d58c];for(var _0x105bac in _0x4a04fc)Object['prototype'][_0x246fcb(0x1ec)]['call'](_0x4a04fc,_0x105bac)&&(_0xd77f7e[_0x105bac]=_0x4a04fc[_0x105bac]);}return _0xd77f7e;},u[_0x6e939b(0x216)](this,arguments);},M=function(_0x16356c,_0x1b4baa){var _0x3f1bbf=_0x354cf4,_0x513816={};for(var _0x207932 in _0x16356c)Object[_0x3f1bbf(0x25c)][_0x3f1bbf(0x1ec)]['call'](_0x16356c,_0x207932)&&_0x1b4baa[_0x3f1bbf(0x282)](_0x207932)<0x0&&(_0x513816[_0x207932]=_0x16356c[_0x207932]);if(_0x16356c!=null&&typeof Object[_0x3f1bbf(0x2ad)]==_0x3f1bbf(0x1f1)){for(var _0x5a8d27=0x0,_0x207932=Object[_0x3f1bbf(0x2ad)](_0x16356c);_0x5a8d27<_0x207932[_0x3f1bbf(0x269)];_0x5a8d27++)_0x1b4baa[_0x3f1bbf(0x282)](_0x207932[_0x5a8d27])<0x0&&Object[_0x3f1bbf(0x25c)][_0x3f1bbf(0x206)][_0x3f1bbf(0x2aa)](_0x16356c,_0x207932[_0x5a8d27])&&(_0x513816[_0x207932[_0x5a8d27]]=_0x16356c[_0x207932[_0x5a8d27]]);}return _0x513816;},j=f['forwardRef'](function(_0x56e1a7,_0x34511a){var _0x5c5db6=_0x354cf4,_0x1f30a2=_0x56e1a7[_0x5c5db6(0x27e)],_0x324342=_0x56e1a7['id'],_0x447829=_0x56e1a7[_0x5c5db6(0x2ae)],_0xaf068=_0x56e1a7['extend'],_0x54220a=M(_0x56e1a7,[_0x5c5db6(0x27e),'id',_0x5c5db6(0x2ae),'extend']),_0x5c7462='univerjs-icon\x20univerjs-icon-'[_0x5c5db6(0x261)](_0x324342,'\x20')[_0x5c5db6(0x261)](_0x447829||'')[_0x5c5db6(0x29f)](),_0x412636=f[_0x5c5db6(0x1d2)]('_'['concat'](G()));return y(_0x1f30a2,''['concat'](_0x324342),{'defIds':_0x1f30a2[_0x5c5db6(0x20e)],'idSuffix':_0x412636[_0x5c5db6(0x29c)]},u({'ref':_0x34511a,'className':_0x5c7462},_0x54220a),_0xaf068);});function y(_0x1c42e5,_0x3dcd52,_0xa38c14,_0x400120,_0x482dad){var _0x1c62ae=_0x354cf4;return f['createElement'](_0x1c42e5[_0x1c62ae(0x222)],u(u({'key':_0x3dcd52},q(_0x1c42e5,_0xa38c14,_0x482dad)),_0x400120),(W(_0x1c42e5,_0xa38c14)[_0x1c62ae(0x241)]||[])['map'](function(_0x165ed8,_0xce83ac){var _0x2de755=_0x1c62ae;return y(_0x165ed8,''[_0x2de755(0x261)](_0x3dcd52,'-')['concat'](_0x1c42e5[_0x2de755(0x222)],'-')[_0x2de755(0x261)](_0xce83ac),_0xa38c14,void 0x0,_0x482dad);}));}function q(_0x334f11,_0x2bb67e,_0x54c536){var _0x1d60c3=_0x354cf4,_0x3ce941=u({},_0x334f11['attrs']);_0x54c536!=null&&_0x54c536['colorChannel1']&&_0x3ce941[_0x1d60c3(0x25e)]===_0x1d60c3(0x1e8)&&(_0x3ce941[_0x1d60c3(0x25e)]=_0x54c536[_0x1d60c3(0x1e8)]),_0x334f11['tag']==='mask'&&_0x3ce941['id']&&(_0x3ce941['id']=_0x3ce941['id']+_0x2bb67e['idSuffix']),Object[_0x1d60c3(0x2a1)](_0x3ce941)[_0x1d60c3(0x1d6)](function(_0x36c19c){var _0x32409d=_0x1d60c3,_0x592ebd=_0x36c19c[0x0],_0x476ff1=_0x36c19c[0x1];_0x592ebd===_0x32409d(0x295)&&typeof _0x476ff1==_0x32409d(0x255)&&(_0x3ce941[_0x592ebd]=_0x476ff1[_0x32409d(0x210)](/url\(#(.*)\)/,_0x32409d(0x235)[_0x32409d(0x261)](_0x2bb67e[_0x32409d(0x23c)],')')));});var _0x534877=_0x2bb67e['defIds'];return!_0x534877||_0x534877[_0x1d60c3(0x269)]===0x0||(_0x334f11[_0x1d60c3(0x222)]==='use'&&_0x3ce941[_0x1d60c3(0x286)]&&(_0x3ce941['xlink:href']=_0x3ce941[_0x1d60c3(0x286)]+_0x2bb67e['idSuffix']),Object[_0x1d60c3(0x2a1)](_0x3ce941)['forEach'](function(_0x2e04ab){var _0x3cc1f5=_0x1d60c3,_0x3ab019=_0x2e04ab[0x0],_0x247d9c=_0x2e04ab[0x1];typeof _0x247d9c==_0x3cc1f5(0x255)&&(_0x3ce941[_0x3ab019]=_0x247d9c['replace'](/url\(#(.*)\)/,_0x3cc1f5(0x235)[_0x3cc1f5(0x261)](_0x2bb67e[_0x3cc1f5(0x23c)],')')));})),_0x3ce941;}function W(_0x262cc2,_0x28a891){var _0x161821=_0x354cf4,_0x1ce3e1,_0x3144e4=_0x28a891['defIds'];return!_0x3144e4||_0x3144e4[_0x161821(0x269)]===0x0?_0x262cc2:_0x262cc2['tag']===_0x161821(0x23b)&&(!((_0x1ce3e1=_0x262cc2[_0x161821(0x241)])===null||_0x1ce3e1===void 0x0)&&_0x1ce3e1[_0x161821(0x269)])?u(u({},_0x262cc2),{'children':_0x262cc2['children']['map'](function(_0x380378){var _0x46f65c=_0x161821;return typeof _0x380378[_0x46f65c(0x262)]['id']=='string'&&_0x3144e4&&_0x3144e4[_0x46f65c(0x282)](_0x380378[_0x46f65c(0x262)]['id'])>-0x1?u(u({},_0x380378),{'attrs':u(u({},_0x380378[_0x46f65c(0x262)]),{'id':_0x380378[_0x46f65c(0x262)]['id']+_0x28a891[_0x46f65c(0x23c)]})}):_0x380378;})}):_0x262cc2;}function G(){var _0x301576=_0x354cf4;return Math['random']()[_0x301576(0x283)](0x24)['substring'](0x2,0x8);}j[_0x354cf4(0x2ab)]=_0x354cf4(0x203);var B={'tag':_0x354cf4(0x2a3),'attrs':{'fill':_0x354cf4(0x243),'viewBox':'0\x200\x2016\x2016','width':_0x354cf4(0x292),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x354cf4(0x2a5),'d':_0x354cf4(0x296)}},{'tag':_0x354cf4(0x29b),'attrs':{'fill':_0x354cf4(0x2a5),'d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':_0x354cf4(0x2a4),'clipRule':'evenodd'}}]},P=f[_0x354cf4(0x1ce)](function(_0x2f450e,_0x141064){var _0x4ad107=_0x354cf4;return f['createElement'](j,Object['assign']({},_0x2f450e,{'id':_0x4ad107(0x1f6),'ref':_0x141064,'icon':B}));});P[_0x354cf4(0x2ab)]='LiveShareSingle';function _0x1be7(_0x55aca2,_0x21bb3e){var _0x1dab3a=_0x1dab();return _0x1be7=function(_0x1be746,_0x46a39f){_0x1be746=_0x1be746-0x1ce;var _0x488d0f=_0x1dab3a[_0x1be746];return _0x488d0f;},_0x1be7(_0x55aca2,_0x21bb3e);}var Y=Object[_0x354cf4(0x1d5)],R=(_0x472161,_0x4483b4,_0x286c65,_0x25bf1b)=>{var _0x22af5e=_0x354cf4;for(var _0x4ed5e=_0x25bf1b>0x1?void 0x0:_0x25bf1b?Y(_0x4483b4,_0x286c65):_0x4483b4,_0x85bf2=_0x472161[_0x22af5e(0x269)]-0x1,_0x2097ea;_0x85bf2>=0x0;_0x85bf2--)(_0x2097ea=_0x472161[_0x85bf2])&&(_0x4ed5e=_0x2097ea(_0x4ed5e)||_0x4ed5e);return _0x4ed5e;},S=(_0x1ee44c,_0x27df8e)=>(_0x102838,_0x3c4dc4)=>_0x27df8e(_0x102838,_0x3c4dc4,_0x1ee44c);exports[_0x354cf4(0x1e4)]=class extends o[_0x354cf4(0x1f2)]{constructor(_0x5bbccb,_0x2f844a,_0x287bc6){var _0x432402=_0x354cf4;super(),v(this,_0x432402(0x1e1),new Map()),(this['_univerInstanceService']=_0x5bbccb,this[_0x432402(0x25d)]=_0x2f844a,this[_0x432402(0x29e)]=_0x287bc6,this[_0x432402(0x219)]());}async['getLiveShareCoordinator'](_0x631cf6){var _0x1d5f89=_0x354cf4;return this['_entities'][_0x1d5f89(0x287)](_0x631cf6)||await this[_0x1d5f89(0x230)](_0x631cf6),this[_0x1d5f89(0x1e1)][_0x1d5f89(0x20d)](_0x631cf6);}[_0x354cf4(0x219)](){var _0x4dfbc8=_0x354cf4;this[_0x4dfbc8(0x22c)][_0x4dfbc8(0x21e)](o[_0x4dfbc8(0x24a)][_0x4dfbc8(0x240)])[_0x4dfbc8(0x201)](b[_0x4dfbc8(0x2a6)](this[_0x4dfbc8(0x1f5)]))[_0x4dfbc8(0x1f3)](async _0x4587c4=>{var _0x4912f9=_0x4dfbc8;const _0x7052fd=_0x4587c4[_0x4912f9(0x257)]();this[_0x4912f9(0x1e1)][_0x4912f9(0x287)](_0x7052fd)||this[_0x4912f9(0x230)](_0x7052fd);}),this[_0x4dfbc8(0x22c)][_0x4dfbc8(0x1d7)](o[_0x4dfbc8(0x24a)][_0x4dfbc8(0x240)])[_0x4dfbc8(0x201)](b[_0x4dfbc8(0x2a6)](this[_0x4dfbc8(0x1f5)]))[_0x4dfbc8(0x1f3)](_0x356b0c=>{var _0x1dff71=_0x4dfbc8;const _0x2714b7=_0x356b0c['getUnitId'](),_0x26f1bf=this[_0x1dff71(0x1e1)][_0x1dff71(0x20d)](_0x2714b7);_0x26f1bf==null||_0x26f1bf[_0x1dff71(0x289)]();});}async[_0x354cf4(0x230)](_0x25bc8c){var _0x2428d4=_0x354cf4;const _0x76330a=await this[_0x2428d4(0x29e)]['requireSession'](_0x25bc8c),_0x48a417=this[_0x2428d4(0x25d)][_0x2428d4(0x1e3)](exports[_0x2428d4(0x27a)],_0x25bc8c,_0x76330a);return _0x48a417['init'](),this[_0x2428d4(0x1e1)][_0x2428d4(0x281)](_0x25bc8c,_0x48a417),_0x48a417;}},exports[_0x354cf4(0x1e4)]=R([S(0x0,o[_0x354cf4(0x299)]),S(0x1,o[_0x354cf4(0x1db)](o[_0x354cf4(0x2a0)])),S(0x2,o[_0x354cf4(0x1db)](m[_0x354cf4(0x28a)]))],exports[_0x354cf4(0x1e4)]);var h=(_0x3ca9e5=>(_0x3ca9e5[_0x354cf4(0x232)]=_0x354cf4(0x2a8),_0x3ca9e5[_0x354cf4(0x276)]=_0x354cf4(0x228),_0x3ca9e5[_0x354cf4(0x284)]=_0x354cf4(0x200),_0x3ca9e5[_0x354cf4(0x278)]='not-following',_0x3ca9e5['PRESENTING']=_0x354cf4(0x26a),_0x3ca9e5))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports['LiveShareCoordinator']=class extends o[_0x354cf4(0x1f2)]{constructor(_0x59350f,_0x3ca2b5,_0x15baeb,_0x583f4f,_0x526132){var _0x4e2013=_0x354cf4;super(),v(this,'_status$',new x[(_0x4e2013(0x1dc))](_0x4e2013(0x228))),v(this,'status$',this[_0x4e2013(0x267)][_0x4e2013(0x1e5)]()),v(this,_0x4e2013(0x219),!0x1),v(this,_0x4e2013(0x26e),null),v(this,_0x4e2013(0x290),null),(this['_unitID']=_0x59350f,this[_0x4e2013(0x244)]=_0x3ca2b5,this[_0x4e2013(0x297)]=_0x15baeb,this[_0x4e2013(0x28e)]=_0x583f4f,this[_0x4e2013(0x231)]=_0x526132);}get[_0x354cf4(0x224)](){var _0x519b0c=_0x354cf4;return this[_0x519b0c(0x267)][_0x519b0c(0x260)]();}[_0x354cf4(0x289)](){var _0x4e37d0=_0x354cf4,_0x1deaac;(_0x1deaac=this[_0x4e37d0(0x26e)])==null||_0x1deaac[_0x4e37d0(0x289)](),this[_0x4e37d0(0x267)]['next'](_0x4e37d0(0x228)),this['_status$'][_0x4e37d0(0x250)]();}[_0x354cf4(0x1e7)](){var _0x175c19=_0x354cf4;this['_init']||(this[_0x175c19(0x219)]=!0x0,this[_0x175c19(0x244)][_0x175c19(0x1fa)][_0x175c19(0x201)](b['takeUntil'](this[_0x175c19(0x1f5)]))[_0x175c19(0x1f3)](_0x2d73a6=>{var _0x4d006c=_0x175c19;switch(_0x2d73a6){case m[_0x4d006c(0x1f4)][_0x4d006c(0x232)]:this[_0x4d006c(0x23d)]();break;case m['SessionStatus'][_0x4d006c(0x28f)]:this[_0x4d006c(0x28d)]();break;}}),this['_collabSession'][_0x175c19(0x227)][_0x175c19(0x201)](b[_0x175c19(0x2a6)](this[_0x175c19(0x1f5)]))[_0x175c19(0x1f3)](_0x4dcfc1=>{var _0x28ce57=_0x175c19;const {eventID:_0x4a3009}=_0x4dcfc1;switch(_0x4a3009){case _[_0x28ce57(0x27f)][_0x28ce57(0x22e)]:this[_0x28ce57(0x229)](_0x4dcfc1);break;case _[_0x28ce57(0x27f)][_0x28ce57(0x213)]:this[_0x28ce57(0x21b)](_0x4dcfc1);break;case _[_0x28ce57(0x27f)][_0x28ce57(0x285)]:this[_0x28ce57(0x248)]();break;case _['CollaborationEvent'][_0x28ce57(0x22a)]:this[_0x28ce57(0x252)](_0x4dcfc1);break;}}));}[_0x354cf4(0x1d9)](){var _0x3bf810=_0x354cf4;this[_0x3bf810(0x244)][_0x3bf810(0x2a9)]({'eventID':_[_0x3bf810(0x27f)][_0x3bf810(0x1f7)],'data':{'unitID':this[_0x3bf810(0x22b)],'userID':this[_0x3bf810(0x244)]['getMemberID']()}},this['_unitID']);}['stopPresenting'](){var _0xb41a09=_0x354cf4;this['_status']===_0xb41a09(0x26a)&&(this[_0xb41a09(0x267)][_0xb41a09(0x264)](_0xb41a09(0x228)),this[_0xb41a09(0x244)][_0xb41a09(0x2a9)]({'eventID':_[_0xb41a09(0x27f)][_0xb41a09(0x285)],'data':{'unitID':this[_0xb41a09(0x22b)]}},this['_unitID']));}[_0x354cf4(0x1fb)](){var _0x47239e=_0x354cf4;this['_status']==='not-following'&&(this[_0x47239e(0x267)]['next'](_0x47239e(0x200)),this[_0x47239e(0x2ac)]());}[_0x354cf4(0x253)](){var _0x5de418=_0x354cf4;this[_0x5de418(0x224)]==='following'&&this[_0x5de418(0x1d8)]();}[_0x354cf4(0x229)](_0xe2c2e4){var _0x28a6b0=_0x354cf4;const {presenter:_0x410dfe}=_0xe2c2e4['data'],_0x48fc59=this[_0x28a6b0(0x244)][_0x28a6b0(0x26f)]();this[_0x28a6b0(0x290)]=_0x410dfe,_0x410dfe===_0x48fc59?(this[_0x28a6b0(0x1d8)](),this[_0x28a6b0(0x1fe)]()):this['_status']!==_0x28a6b0(0x268)&&(this[_0x28a6b0(0x1ff)](),this[_0x28a6b0(0x2ac)]());}[_0x354cf4(0x27c)](){var _0x2d5ef7=_0x354cf4;const _0x15cd0d={'eventID':_[_0x2d5ef7(0x27f)][_0x2d5ef7(0x20f)]};this[_0x2d5ef7(0x244)]['send'](_0x15cd0d,this[_0x2d5ef7(0x22b)]);}[_0x354cf4(0x248)](){var _0x61991c=_0x354cf4;this[_0x61991c(0x290)]=null,this['_status']!==_0x61991c(0x26a)&&this[_0x61991c(0x246)]();}[_0x354cf4(0x252)](_0x1ad587){var _0x38194d=_0x354cf4;if(this[_0x38194d(0x224)]==='following'&&this[_0x38194d(0x290)]===_0x1ad587[_0x38194d(0x1d1)][_0x38194d(0x1e9)]){const _0x5c1cbc=_[_0x38194d(0x1e0)](_0x1ad587[_0x38194d(0x1d1)])['mutations'][_0x38194d(0x26c)]()[_0x38194d(0x277)](_0x54680a=>_0x54680a['id']===C[_0x38194d(0x1cf)]['id']);if(_0x5c1cbc){const _0x34c3ab=_0x5c1cbc[_0x38194d(0x1f0)][_0x38194d(0x270)],_0xd9badf=_0x5c1cbc['params'][_0x38194d(0x218)]['id'];setTimeout(()=>{var _0x79f7e2=_0x38194d;this[_0x79f7e2(0x231)][_0x79f7e2(0x237)](C[_0x79f7e2(0x294)]['id'],{'unitId':_0x34c3ab,'subUnitId':_0xd9badf},{'fromCollab':!0x0});});}}}[_0x354cf4(0x1fe)](){var _0x23cd10=_0x354cf4;this['_status$']['next'](_0x23cd10(0x26a));const _0x30d565=new Map(),_0x347c6f=this[_0x23cd10(0x26e)]=new o[(_0x23cd10(0x209))]();_0x347c6f[_0x23cd10(0x1da)](o[_0x23cd10(0x25b)](()=>{var _0x40788c=_0x23cd10;_0x30d565[_0x40788c(0x1d6)](_0x32c36b=>_0x32c36b['complete']()),_0x30d565[_0x40788c(0x22f)]();})),_0x347c6f[_0x23cd10(0x1da)](this[_0x23cd10(0x231)][_0x23cd10(0x25f)](_0x37cc8a=>{var _0x4f9127=_0x23cd10,_0x579a44;if(_0x37cc8a['type']!==o[_0x4f9127(0x254)][_0x4f9127(0x236)]||!this[_0x4f9127(0x28e)][_0x4f9127(0x20a)](_0x37cc8a['id']))return;const {id:_0x47bdad}=_0x37cc8a;let _0x31f981;_0x30d565[_0x4f9127(0x287)](_0x47bdad)?_0x31f981=_0x30d565['get'](_0x47bdad):(_0x31f981=new x[(_0x4f9127(0x28b))](),_0x30d565[_0x4f9127(0x281)](_0x47bdad,_0x31f981),_0x31f981[_0x4f9127(0x201)](b[_0x4f9127(0x242)]((_0x579a44=this[_0x4f9127(0x297)][_0x4f9127(0x1ea)](Z))!=null?_0x579a44:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4f9127(0x1f3)](_0x116a79=>{var _0x297489=_0x4f9127;this[_0x297489(0x244)][_0x297489(0x2a9)]({'eventID':_[_0x297489(0x27f)][_0x297489(0x213)],'data':{'unitID':this['_unitID'],'operations':{[_0x116a79['id']]:{'id':_0x116a79['id'],'params':JSON[_0x297489(0x204)](_0x116a79[_0x297489(0x1f0)])}}}},this[_0x297489(0x22b)]);})),_0x31f981[_0x4f9127(0x264)](_0x37cc8a);})),this['_liveShareService'][_0x23cd10(0x214)](this['_unitID'])['forEach'](_0x38acbd=>this[_0x23cd10(0x244)][_0x23cd10(0x2a9)]({'eventID':_[_0x23cd10(0x27f)][_0x23cd10(0x213)],'data':{'unitID':this[_0x23cd10(0x22b)],'operations':{[_0x38acbd['id']]:{'id':_0x38acbd['id'],'params':JSON['stringify'](_0x38acbd[_0x23cd10(0x1f0)])}}}},this[_0x23cd10(0x22b)]));}['_stopPresenting'](){var _0xdd9c87=_0x354cf4,_0x2012d8;this[_0xdd9c87(0x267)][_0xdd9c87(0x264)]('idle'),(_0x2012d8=this[_0xdd9c87(0x26e)])==null||_0x2012d8[_0xdd9c87(0x289)](),this[_0xdd9c87(0x26e)]=null;}['_startFollowing'](){var _0x512f44=_0x354cf4,_0x4ba869;(_0x4ba869=this[_0x512f44(0x26e)])==null||_0x4ba869[_0x512f44(0x289)](),this['_status$']['next']('following');}['_beIdle'](){var _0x12f40a=_0x354cf4,_0x1761e9;this[_0x12f40a(0x267)][_0x12f40a(0x264)](_0x12f40a(0x228)),(_0x1761e9=this[_0x12f40a(0x26e)])==null||_0x1761e9['dispose'](),this['_commandDisposable']=null;}[_0x354cf4(0x1d8)](){var _0x4cca42=_0x354cf4,_0x10baef;this[_0x4cca42(0x267)]['next'](_0x4cca42(0x268)),(_0x10baef=this[_0x4cca42(0x26e)])==null||_0x10baef[_0x4cca42(0x289)]();}[_0x354cf4(0x21b)](_0x1af6db){var _0x5b12a3=_0x354cf4;if(['presenting',_0x5b12a3(0x268),_0x5b12a3(0x2a8)]['includes'](this[_0x5b12a3(0x224)])||!_0x1af6db['data'][_0x5b12a3(0x263)]||_0x1af6db[_0x5b12a3(0x1d1)][_0x5b12a3(0x263)]===this[_0x5b12a3(0x244)][_0x5b12a3(0x26f)]())return;this[_0x5b12a3(0x224)]===_0x5b12a3(0x228)&&this[_0x5b12a3(0x2ac)]();const _0x1277b0=_0x1af6db[_0x5b12a3(0x1d1)]['operations'];Object[_0x5b12a3(0x217)](_0x1277b0)['forEach'](_0x4ce0e4=>{var _0x19a2c1=_0x5b12a3;this[_0x19a2c1(0x231)][_0x19a2c1(0x237)](_0x4ce0e4['id'],_0x4ce0e4[_0x19a2c1(0x1f0)]?JSON[_0x19a2c1(0x1df)](_0x4ce0e4['params']):null,{'fromCollab':!0x0});});}[_0x354cf4(0x23d)](){var _0x7ba9cc=_0x354cf4,_0x206c16;this[_0x7ba9cc(0x267)]['next']('offline'),(_0x206c16=this[_0x7ba9cc(0x26e)])==null||_0x206c16['dispose']();}['_handleOnline'](){var _0x46cfdf=_0x354cf4;this[_0x46cfdf(0x267)][_0x46cfdf(0x264)](_0x46cfdf(0x228)),this[_0x46cfdf(0x27c)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x354cf4(0x29a)]),S(0x3,o[_0x354cf4(0x1db)](E)),S(0x4,o['ICommandService'])],exports[_0x354cf4(0x27a)]);function A(){var _0x3a3069=_0x354cf4;const _0x18f7ee=p['useDependency'](exports[_0x3a3069(0x1e4)]),_0x3cb775=p['useDependency'](o[_0x3a3069(0x299)]),_0x39719f=p[_0x3a3069(0x251)](()=>_0x3cb775['getCurrentTypeOfUnit$'](o['UniverInstanceType'][_0x3a3069(0x240)]),void 0x0,!0x1,[]),[_0x1ef9df,_0x5ac020]=f[_0x3a3069(0x23e)](null),[_0x41a28d,_0x172ea6]=f[_0x3a3069(0x23e)](h[_0x3a3069(0x276)]),_0xf9a3e4=f[_0x3a3069(0x1d2)](null);return f[_0x3a3069(0x279)](()=>(_0x39719f&&_0x18f7ee[_0x3a3069(0x24b)](_0x39719f[_0x3a3069(0x257)]())[_0x3a3069(0x1eb)](_0x452df8=>{var _0x478e62=_0x3a3069;_0x5ac020(_0x452df8),_0xf9a3e4[_0x478e62(0x29c)]=_0x452df8['status$'][_0x478e62(0x1f3)](_0x3b5e87=>{_0x172ea6(_0x3b5e87);});}),()=>{var _0x4481c1=_0x3a3069,_0x1acebe;(_0x1acebe=_0xf9a3e4[_0x4481c1(0x29c)])==null||_0x1acebe['unsubscribe'](),_0xf9a3e4['current']=null;}),[_0x39719f,_0x18f7ee]),_0x1ef9df?l[_0x3a3069(0x239)](g[_0x3a3069(0x225)],{'align':_0x3a3069(0x1d3),'disabled':_0x41a28d===h['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','overlay':l[_0x3a3069(0x239)](K,{'status':_0x41a28d,'coordinator':_0x1ef9df}),'children':l[_0x3a3069(0x239)](_0x3a3069(0x272),{'className':g['clsx'](_0x3a3069(0x21a),{'univer-cursor-not-allowed':_0x41a28d===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x41a28d!==h[_0x3a3069(0x232)]}),'type':_0x3a3069(0x272),'children':l['jsx'](P,{'className':'univer-size-4'})})}):null;}function K(_0x24712b){var _0x5e55f8=_0x354cf4;const {status:_0x30f03c,coordinator:_0x536eac}=_0x24712b;switch(_0x30f03c){case h['IDLE']:return l[_0x5e55f8(0x239)](z,{'coordinator':_0x536eac});case h['FOLLOWING']:return l['jsx'](Q,{'coordinator':_0x536eac});case h['NOT_FOLLOWING']:return l[_0x5e55f8(0x239)](X,{'coordinator':_0x536eac});case h[_0x5e55f8(0x232)]:return l['jsx'](te,{});case h[_0x5e55f8(0x1f9)]:return l[_0x5e55f8(0x239)](ee,{'coordinator':_0x536eac});default:return null;}}function z(_0x14a6c7){var _0x40e957=_0x354cf4;const {coordinator:_0x30a89e}=_0x14a6c7;return l[_0x40e957(0x245)](l[_0x40e957(0x24d)],{'children':[l[_0x40e957(0x239)]('div',{'className':_0x40e957(0x259),'children':'Present\x20this\x20document'}),l[_0x40e957(0x239)](g[_0x40e957(0x2b0)],{'onClick':()=>_0x30a89e[_0x40e957(0x1d9)](),'children':_0x40e957(0x233)})]});}function Q(_0x27a8da){var _0x359d58=_0x354cf4;const {coordinator:_0x310062}=_0x27a8da;return l[_0x359d58(0x245)](l[_0x359d58(0x24d)],{'children':[l['jsx'](_0x359d58(0x274),{'className':_0x359d58(0x259),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x359d58(0x239)](g[_0x359d58(0x2b0)],{'onClick':()=>_0x310062['stopFollowing'](),'children':_0x359d58(0x2a2)})]});}function X(_0x3aab41){var _0x249bf4=_0x354cf4;const {coordinator:_0x3ac028}=_0x3aab41;return l['jsxs'](l[_0x249bf4(0x24d)],{'children':[l[_0x249bf4(0x239)](_0x249bf4(0x274),{'className':_0x249bf4(0x259),'children':_0x249bf4(0x26d)}),l[_0x249bf4(0x239)](g['Button'],{'variant':_0x249bf4(0x280),'onClick':()=>_0x3ac028[_0x249bf4(0x1fb)](),'children':_0x249bf4(0x220)})]});}function ee(_0x4ee3c0){var _0x17e1dc=_0x354cf4;const {coordinator:_0x3e8450}=_0x4ee3c0;return l[_0x17e1dc(0x245)](l[_0x17e1dc(0x24d)],{'children':[l[_0x17e1dc(0x239)]('div',{'className':_0x17e1dc(0x259),'children':'You\x27re\x20presenting\x20the\x20document'}),l['jsx'](g[_0x17e1dc(0x2b0)],{'variant':_0x17e1dc(0x27d),'onClick':()=>_0x3e8450[_0x17e1dc(0x298)](),'children':_0x17e1dc(0x2af)})]});}function te(){var _0x18a272=_0x354cf4;return l[_0x18a272(0x239)](l[_0x18a272(0x24d)],{'children':'You\x27are\x20offline.'});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0x3ae9cc,_0x191d89,_0xda4b08,_0x1d1efe)=>{var _0xfe0b37=_0x354cf4;for(var _0x1591a8=_0x1d1efe>0x1?void 0x0:_0x1d1efe?ie(_0x191d89,_0xda4b08):_0x191d89,_0x3d4fda=_0x3ae9cc[_0xfe0b37(0x269)]-0x1,_0x12effe;_0x3d4fda>=0x0;_0x3d4fda--)(_0x12effe=_0x3ae9cc[_0x3d4fda])&&(_0x1591a8=_0x12effe(_0x1591a8)||_0x1591a8);return _0x1591a8;},N=(_0x4a0565,_0x736b1a)=>(_0x584ac6,_0x2459f1)=>_0x736b1a(_0x584ac6,_0x2459f1,_0x4a0565);exports[_0x354cf4(0x293)]=class extends o[_0x354cf4(0x1ee)]{constructor(_0x55e67d,_0x315dc7){var _0x4ba289=_0x354cf4;super(),this[_0x4ba289(0x25d)]=_0x55e67d,this[_0x4ba289(0x226)]=_0x315dc7,this['_mountLiveShare']();}[_0x354cf4(0x1fc)](){var _0x52527f=_0x354cf4;this['disposeWithMe'](this[_0x52527f(0x226)][_0x52527f(0x22d)](p['BuiltInUIPart'][_0x52527f(0x234)],()=>p[_0x52527f(0x24f)](A,this[_0x52527f(0x25d)])));}},exports[_0x354cf4(0x293)]=ne([N(0x0,o[_0x354cf4(0x1db)](o[_0x354cf4(0x2a0)])),N(0x1,p[_0x354cf4(0x1e2)])],exports[_0x354cf4(0x293)]);function _0x1dab(){var _0x44484e=['complete','useObservable','_handleNewChangeSets','stopFollowing','CommandType','string','onRendered','getUnitId','122750sbAbuf','univer-w-full\x20univer-mb-3\x20univer-text-sm','1585632MlKOyI','toDisposable','prototype','_injector','fill','onCommandExecuted','getValue','concat','attrs','presenter','next','map','type','_status$','not-following','length','presenting','906616GQMxyA','reverse','You\x27re\x20not\x20following\x20the\x20presenter','_commandDisposable','getMemberID','unitId','delete','button','from','div','registerSharedOperation','IDLE','find','NOT_FOLLOWING','useEffect','LiveShareCoordinator','UNIVER_LIVE_SHARE_PLUGIN','_fetchOperations','default','icon','CollaborationEvent','text','set','indexOf','toString','FOLLOWING','LIVESHARE_TERMINATE','xlink:href','has','setConfig','dispose','CollaborationSessionService','Subject','toStringTag','_handleOnline','_liveShareService','ONLINE','_presenter','react','1em','DesktopLiveShareController','SetWorksheetActiveOperation','mask','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','_configService','stopPresenting','IUniverInstanceService','IConfigService','path','current','@univerjs-pro/collaboration','_collabSessionService','trim','Injector','entries','Stop\x20following','svg','evenodd','currentColor','takeUntil','SetZoomRatioOperation','offline','send','call','displayName','_startFollowing','getOwnPropertySymbols','className','Stop\x20presenting','Button','forwardRef','InsertSheetMutation','_sharedOperations','data','useRef','end','10sbsIqz','getOwnPropertyDescriptor','forEach','getTypeOfUnitDisposed$','_stopFollowing','tryStartPresenting','add','Inject','BehaviorSubject','symbol','touchDependencies','parse','parseProtocolChangeset','_entities','IUIPartsService','createInstance','LiveShareController','asObservable','1907514rOYtKZ','init','colorChannel1','memberID','getConfig','then','hasOwnProperty','UniverCollaborationClientPlugin','Disposable','disposeWithMe','params','function','RxDisposable','subscribe','SessionStatus','dispose$','live-share-single','LIVESHARE_REQUEST_HOST','@univerjs/design','PRESENTING','sessionStatus$','startFollowing','_mountLiveShare','LiveShareService','_startPresenting','_stopPresenting','following','pipe','SetScrollOperation','UniverIcon','stringify','LiveShareStatus','propertyIsEnumerable','@univerjs/ui','_reporters','DisposableCollection','shouldShareOperation','49540PWrOyH','315ywQUxt','get','defIds','LIVESHARE_FETCH_OPERATIONS','replace','rxjs/operators','_config','LIVESHARE_OPERATION','getInitialStates','14456431bWZTCV','apply','values','sheet','_init','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','_handleOperation','7MWObxo','24gHchBt','getTypeOfUnitAdded$','pluginName','Start\x20following','UNIVER_UNKNOWN','tag','Plugin','_status','Dropdown','_uiPartsService','event$','idle','_handleNewHost','NEW_CHANGESETS','_unitID','_univerInstanceService','registerComponent','LIVESHARE_NEW_HOST','clear','_startLiveShareCoordinator','_commandService','OFFLINE','Start','HEADER_MENU','url(#$1','OPERATION','executeCommand','defineProperty','jsx','registerInitialStateReporter','defs','idSuffix','_handleOffline','useState','@univerjs-pro/collaboration-client','UNIVER_SHEET','children','throttleTime','none','_collabSession','jsxs','_beIdle','UniverLiveSharePlugin','_handleTerminate','@univerjs/sheets-ui','UniverInstanceType','getLiveShareCoordinator','101032lVMAUz','Fragment','Module','connectInjector'];_0x1dab=function(){return _0x44484e;};return _0x1dab();}var re=Object[_0x354cf4(0x238)],se=Object['getOwnPropertyDescriptor'],oe=(_0x29407e,_0x13dcb6,_0xe97c47)=>_0x13dcb6 in _0x29407e?re(_0x29407e,_0x13dcb6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xe97c47}):_0x29407e[_0x13dcb6]=_0xe97c47,ae=(_0x2ab3d3,_0x33ce2f,_0x54db02,_0x210a98)=>{var _0x57e418=_0x354cf4;for(var _0x3e70ce=_0x210a98>0x1?void 0x0:_0x210a98?se(_0x33ce2f,_0x54db02):_0x33ce2f,_0x3bc5ba=_0x2ab3d3[_0x57e418(0x269)]-0x1,_0x3f2114;_0x3bc5ba>=0x0;_0x3bc5ba--)(_0x3f2114=_0x2ab3d3[_0x3bc5ba])&&(_0x3e70ce=_0x3f2114(_0x3e70ce)||_0x3e70ce);return _0x3e70ce;},w=(_0x1a3064,_0x547253)=>(_0x4246c9,_0x37c9aa)=>_0x547253(_0x4246c9,_0x37c9aa,_0x1a3064),T=(_0x250ea3,_0x1c5a02,_0x25ba6c)=>oe(_0x250ea3,typeof _0x1c5a02!='symbol'?_0x1c5a02+'':_0x1c5a02,_0x25ba6c);const le=_0x354cf4(0x27b);exports[_0x354cf4(0x247)]=class extends o[_0x354cf4(0x223)]{constructor(_0x1c332e=L,_0x19c9d8,_0x3277a){var _0x413862=_0x354cf4;super(),this['_config']=_0x1c332e,this[_0x413862(0x25d)]=_0x19c9d8,this[_0x413862(0x297)]=_0x3277a;const {..._0x3eaa52}=o['merge']({},L,this[_0x413862(0x212)]);this[_0x413862(0x297)][_0x413862(0x288)]($,_0x3eaa52);}['onStarting'](){var _0x4d835d=_0x354cf4;o['registerDependencies'](this[_0x4d835d(0x25d)],o['mergeOverrideWithDependencies']([[E],[exports[_0x4d835d(0x1e4)]],[O],[exports[_0x4d835d(0x293)]]],this[_0x4d835d(0x212)]['override'])),o['touchDependencies'](this['_injector'],[[O]]);}[_0x354cf4(0x256)](){var _0xb35b9d=_0x354cf4;o[_0xb35b9d(0x1de)](this[_0xb35b9d(0x25d)],[[exports[_0xb35b9d(0x293)]]]);}},T(exports['UniverLiveSharePlugin'],_0x354cf4(0x266),o[_0x354cf4(0x24a)][_0x354cf4(0x221)]),T(exports['UniverLiveSharePlugin'],_0x354cf4(0x21f),le),exports[_0x354cf4(0x247)]=ae([o['DependentOn'](m[_0x354cf4(0x1ed)]),w(0x1,o[_0x354cf4(0x1db)](o[_0x354cf4(0x2a0)])),w(0x2,o[_0x354cf4(0x29a)])],exports[_0x354cf4(0x247)]),exports['LiveShare']=A,exports[_0x354cf4(0x1fd)]=E,exports[_0x354cf4(0x205)]=h;
|
|
1
|
+
'use strict';var _0x16d22e=_0x61e2;function _0xc29d(){var _0x20a7b4=['add','LiveShareStatus','rxjs/operators','_collabSession','type','UniverIcon','not-following','idle','_startLiveShareCoordinator','set','replace','getMemberID','data','3160vbHJnF','_startPresenting','BehaviorSubject','getTypeOfUnitAdded$','8524zGAPXF','_sharedOperations','_injector','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','current','merge','status$','toString','idSuffix','ICommandService','symbol','Module','_handleOffline','LIVESHARE_TERMINATE','values','getCurrentTypeOfUnit$','stopFollowing','You\x27re\x20presenting\x20the\x20document','forEach','sessionStatus$','params','_config','_stopPresenting','has','FOLLOWING','unitId','UNIVER_SHEET','LIVESHARE_NEW_HOST','xlink:href','_commandDisposable','url(#$1','startFollowing','@univerjs/ui','getOwnPropertyDescriptor','jsx','parseProtocolChangeset','38241iqquEz','_handleOperation','SetWorksheetActiveOperation','displayName','0\x200\x2016\x2016','getOwnPropertySymbols','IDLE','apply','className','mask','CollaborationSessionService','complete','UniverLiveSharePlugin','_uiPartsService','LiveShareCoordinator','next','univer-w-full\x20univer-mb-3\x20univer-text-sm','7658FoHTiS','_mountLiveShare','takeUntil','pluginName','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','_presenter','useEffect','subscribe','offline','useObservable','getUnitId','431874fPIfTw','send','UniverInstanceType','IConfigService','unsubscribe','string','event$','You\x27re\x20not\x20following\x20the\x20presenter','useState','children','945003jwcjjX','path','getConfig','getTypeOfUnitDisposed$','_startFollowing','DesktopLiveShareController','IUniverInstanceService','_handleNewHost','getValue','_univerInstanceService','_handleTerminate','stringify','defs','fill','onRendered','connectInjector','clear','dispose$','Injector','4809PDLgpG','hasOwnProperty','createElement','evenodd','CollaborationEvent','Fragment','LiveShare','function','_unitID','univer-size-4','substring','sheet','SetZoomRatioOperation','Disposable','stopPresenting','colorChannel1','@univerjs-pro/collaboration','Start\x20following','asObservable','SetScrollOperation','disposeWithMe','LiveShareController','51COAUkI','parse','NEW_CHANGESETS','concat','svg','@univerjs/sheets-ui','get','SAME_OPERATION_SHARE_INTERVAL','Plugin','requireSession','tryStartPresenting','react','useDependency','NOT_FOLLOWING','button','use','propertyIsEnumerable','dispose','1em','following','delete','_reporters','_stopFollowing','@univerjs/design','createInstance','@univerjs-pro/collaboration-client','1045TJdXsE','10897788cDCqvi','memberID','_commandService','CommandType','DisposableCollection','clsx','pipe','BuiltInUIPart','PRESENTING','tag','end','div','registerSharedOperation','random','Inject','_handleOnline','Button','LIVESHARE_OPERATION','defineProperty','_configService','forwardRef','extend','touchDependencies','useRef','_status','find','presenting','InsertSheetMutation','length','toDisposable','LIVESHARE_REQUEST_HOST','_collabSessionService','Present\x20this\x20document','mergeOverrideWithDependencies','SessionStatus','_entities','icon','Subject','_handleNewChangeSets','11TXOUiu','_fetchOperations','jsxs','operations','_status$','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','univerjs-icon\x20univerjs-icon-','live-share-single','assign','indexOf','prototype','_init','onStarting','map','IUIPartsService','670dDojcE','includes','OFFLINE','react/jsx-runtime','live-share.config','_liveShareService','entries','_beIdle','UNIVER_UNKNOWN','rxjs','RxDisposable','then','Stop\x20following','LiveShareService','presenter','init','attrs','shouldShareOperation','text','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','call'];_0xc29d=function(){return _0x20a7b4;};return _0xc29d();}(function(_0x12ebf8,_0x4ab15f){var _0x516b47=_0x61e2,_0x59bd1d=_0x12ebf8();while(!![]){try{var _0x48d7b4=parseInt(_0x516b47(0x253))/0x1+-parseInt(_0x516b47(0x23e))/0x2*(parseInt(_0x516b47(0x27c))/0x3)+-parseInt(_0x516b47(0x209))/0x4*(-parseInt(_0x516b47(0x296))/0x5)+parseInt(_0x516b47(0x249))/0x6+parseInt(_0x516b47(0x266))/0x7*(parseInt(_0x516b47(0x205))/0x8)+-parseInt(_0x516b47(0x22d))/0x9*(parseInt(_0x516b47(0x1e3))/0xa)+parseInt(_0x516b47(0x1d4))/0xb*(-parseInt(_0x516b47(0x297))/0xc);if(_0x48d7b4===_0x4ab15f)break;else _0x59bd1d['push'](_0x59bd1d['shift']());}catch(_0x5ab398){_0x59bd1d['push'](_0x59bd1d['shift']());}}}(_0xc29d,0x74299));var U=Object['defineProperty'],F=(_0x3463c0,_0x324032,_0x482ba7)=>_0x324032 in _0x3463c0?U(_0x3463c0,_0x324032,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x482ba7}):_0x3463c0[_0x324032]=_0x482ba7,v=(_0x105c83,_0x4a53d7,_0x477e46)=>F(_0x105c83,typeof _0x4a53d7!=_0x16d22e(0x213)?_0x4a53d7+'':_0x4a53d7,_0x477e46);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x16d22e(0x214)});const m=require(_0x16d22e(0x295)),o=require('@univerjs/core'),C=require('@univerjs/sheets'),D=require(_0x16d22e(0x281)),p=require(_0x16d22e(0x229)),l=require(_0x16d22e(0x1e6)),g=require(_0x16d22e(0x293)),f=require(_0x16d22e(0x287)),_=require(_0x16d22e(0x276)),x=require(_0x16d22e(0x1ec)),b=require(_0x16d22e(0x1fa)),$=_0x16d22e(0x1e7),L={};class E extends o[_0x16d22e(0x273)]{constructor(){var _0x545ec7=_0x16d22e;super(...arguments),v(this,_0x545ec7(0x20a),new Set()),v(this,_0x545ec7(0x291),new Set());}[_0x16d22e(0x2a3)](_0x2587ff){var _0x58395c=_0x16d22e;return this[_0x58395c(0x20a)][_0x58395c(0x1f8)](_0x2587ff),o[_0x58395c(0x2b4)](()=>this['_sharedOperations']['delete'](_0x2587ff));}['registerInitialStateReporter'](_0xc7cbd5){var _0x402cfb=_0x16d22e;return this[_0x402cfb(0x291)]['add'](_0xc7cbd5),o[_0x402cfb(0x2b4)](()=>this[_0x402cfb(0x291)][_0x402cfb(0x290)](_0xc7cbd5));}[_0x16d22e(0x1f4)](_0x51bbf2){var _0x5be7e3=_0x16d22e;return this['_sharedOperations'][_0x5be7e3(0x220)](_0x51bbf2);}['getInitialStates'](_0x3ba4de){var _0xaa023c=_0x16d22e;return Array['from'](this[_0xaa023c(0x291)])[_0xaa023c(0x1e1)](_0xa42eb8=>_0xa42eb8(_0x3ba4de));}}var H=Object[_0x16d22e(0x22a)],V=(_0x1ebc05,_0x31c772,_0x15466a,_0x57add1)=>{var _0x1bdcf7=_0x16d22e;for(var _0x3f064e=_0x57add1>0x1?void 0x0:_0x57add1?H(_0x31c772,_0x15466a):_0x31c772,_0x502e7a=_0x1ebc05[_0x1bdcf7(0x2b3)]-0x1,_0x2abd29;_0x502e7a>=0x0;_0x502e7a--)(_0x2abd29=_0x1ebc05[_0x502e7a])&&(_0x3f064e=_0x2abd29(_0x3f064e)||_0x3f064e);return _0x3f064e;},k=(_0x2cdc26,_0x2bd7ca)=>(_0x290283,_0x50d2a4)=>_0x2bd7ca(_0x290283,_0x50d2a4,_0x2cdc26);let O=class extends o[_0x16d22e(0x273)]{constructor(_0x489a34){var _0x3f4480=_0x16d22e;super(),this[_0x3f4480(0x1e8)]=_0x489a34,this[_0x3f4480(0x1df)]();}['_init'](){var _0x5d63c2=_0x16d22e;[D[_0x5d63c2(0x272)]['id'],D[_0x5d63c2(0x279)]['id'],C[_0x5d63c2(0x22f)]['id']]['forEach'](_0x20286f=>{var _0x31c33d=_0x5d63c2;this[_0x31c33d(0x27a)](this['_liveShareService'][_0x31c33d(0x2a3)](_0x20286f));});}};O=V([k(0x0,o['Inject'](E))],O);var u=function(){var _0x4b9f54=_0x16d22e;return u=Object[_0x4b9f54(0x1dc)]||function(_0x218f78){var _0x2fc811=_0x4b9f54;for(var _0x521a9c,_0x12f461=0x1,_0x3da339=arguments[_0x2fc811(0x2b3)];_0x12f461<_0x3da339;_0x12f461++){_0x521a9c=arguments[_0x12f461];for(var _0x17ddda in _0x521a9c)Object[_0x2fc811(0x1de)][_0x2fc811(0x267)]['call'](_0x521a9c,_0x17ddda)&&(_0x218f78[_0x17ddda]=_0x521a9c[_0x17ddda]);}return _0x218f78;},u[_0x4b9f54(0x234)](this,arguments);},M=function(_0x1b239d,_0x352185){var _0x5b9e0d=_0x16d22e,_0x356f09={};for(var _0x44d0a8 in _0x1b239d)Object[_0x5b9e0d(0x1de)][_0x5b9e0d(0x267)][_0x5b9e0d(0x1f7)](_0x1b239d,_0x44d0a8)&&_0x352185[_0x5b9e0d(0x1dd)](_0x44d0a8)<0x0&&(_0x356f09[_0x44d0a8]=_0x1b239d[_0x44d0a8]);if(_0x1b239d!=null&&typeof Object[_0x5b9e0d(0x232)]==_0x5b9e0d(0x26d)){for(var _0x35bc12=0x0,_0x44d0a8=Object['getOwnPropertySymbols'](_0x1b239d);_0x35bc12<_0x44d0a8[_0x5b9e0d(0x2b3)];_0x35bc12++)_0x352185[_0x5b9e0d(0x1dd)](_0x44d0a8[_0x35bc12])<0x0&&Object['prototype'][_0x5b9e0d(0x28c)]['call'](_0x1b239d,_0x44d0a8[_0x35bc12])&&(_0x356f09[_0x44d0a8[_0x35bc12]]=_0x1b239d[_0x44d0a8[_0x35bc12]]);}return _0x356f09;},j=f[_0x16d22e(0x2ab)](function(_0x575c7e,_0x4c0e6b){var _0x3d8214=_0x16d22e,_0x44baaf=_0x575c7e[_0x3d8214(0x1d1)],_0x3eafac=_0x575c7e['id'],_0x25b474=_0x575c7e[_0x3d8214(0x235)],_0x104450=_0x575c7e[_0x3d8214(0x2ac)],_0x4caa7b=M(_0x575c7e,[_0x3d8214(0x1d1),'id',_0x3d8214(0x235),_0x3d8214(0x2ac)]),_0x1dace7=_0x3d8214(0x1da)['concat'](_0x3eafac,'\x20')[_0x3d8214(0x27f)](_0x25b474||'')['trim'](),_0x334c85=f[_0x3d8214(0x2ae)]('_'[_0x3d8214(0x27f)](G()));return y(_0x44baaf,''['concat'](_0x3eafac),{'defIds':_0x44baaf['defIds'],'idSuffix':_0x334c85[_0x3d8214(0x20d)]},u({'ref':_0x4c0e6b,'className':_0x1dace7},_0x4caa7b),_0x104450);});function y(_0x41af67,_0x29729a,_0x2540fa,_0x380b5f,_0x320513){var _0xe075e0=_0x16d22e;return f[_0xe075e0(0x268)](_0x41af67[_0xe075e0(0x2a0)],u(u({'key':_0x29729a},q(_0x41af67,_0x2540fa,_0x320513)),_0x380b5f),(W(_0x41af67,_0x2540fa)[_0xe075e0(0x252)]||[])['map'](function(_0x1c90d2,_0x362827){var _0x2a15d1=_0xe075e0;return y(_0x1c90d2,''[_0x2a15d1(0x27f)](_0x29729a,'-')['concat'](_0x41af67[_0x2a15d1(0x2a0)],'-')[_0x2a15d1(0x27f)](_0x362827),_0x2540fa,void 0x0,_0x320513);}));}function q(_0x4bbb9a,_0x2e8a1c,_0x5468f4){var _0x55c23f=_0x16d22e,_0x14bdbd=u({},_0x4bbb9a[_0x55c23f(0x1f3)]);_0x5468f4!=null&&_0x5468f4[_0x55c23f(0x275)]&&_0x14bdbd['fill']===_0x55c23f(0x275)&&(_0x14bdbd[_0x55c23f(0x260)]=_0x5468f4[_0x55c23f(0x275)]),_0x4bbb9a[_0x55c23f(0x2a0)]===_0x55c23f(0x236)&&_0x14bdbd['id']&&(_0x14bdbd['id']=_0x14bdbd['id']+_0x2e8a1c[_0x55c23f(0x211)]),Object[_0x55c23f(0x1e9)](_0x14bdbd)[_0x55c23f(0x21b)](function(_0x38b9e2){var _0x1c1ba9=_0x55c23f,_0x2147e6=_0x38b9e2[0x0],_0xfeaa8e=_0x38b9e2[0x1];_0x2147e6==='mask'&&typeof _0xfeaa8e==_0x1c1ba9(0x24e)&&(_0x14bdbd[_0x2147e6]=_0xfeaa8e[_0x1c1ba9(0x202)](/url\(#(.*)\)/,_0x1c1ba9(0x227)['concat'](_0x2e8a1c['idSuffix'],')')));});var _0x240550=_0x2e8a1c['defIds'];return!_0x240550||_0x240550[_0x55c23f(0x2b3)]===0x0||(_0x4bbb9a[_0x55c23f(0x2a0)]===_0x55c23f(0x28b)&&_0x14bdbd[_0x55c23f(0x225)]&&(_0x14bdbd['xlink:href']=_0x14bdbd[_0x55c23f(0x225)]+_0x2e8a1c['idSuffix']),Object[_0x55c23f(0x1e9)](_0x14bdbd)[_0x55c23f(0x21b)](function(_0x27fe2e){var _0x3269ce=_0x55c23f,_0x26f4f8=_0x27fe2e[0x0],_0x303cfa=_0x27fe2e[0x1];typeof _0x303cfa=='string'&&(_0x14bdbd[_0x26f4f8]=_0x303cfa['replace'](/url\(#(.*)\)/,'url(#$1'[_0x3269ce(0x27f)](_0x2e8a1c['idSuffix'],')')));})),_0x14bdbd;}function W(_0x52f95e,_0x34d436){var _0x2ac048=_0x16d22e,_0x2e74f4,_0x29e854=_0x34d436['defIds'];return!_0x29e854||_0x29e854[_0x2ac048(0x2b3)]===0x0?_0x52f95e:_0x52f95e[_0x2ac048(0x2a0)]===_0x2ac048(0x25f)&&(!((_0x2e74f4=_0x52f95e[_0x2ac048(0x252)])===null||_0x2e74f4===void 0x0)&&_0x2e74f4[_0x2ac048(0x2b3)])?u(u({},_0x52f95e),{'children':_0x52f95e[_0x2ac048(0x252)][_0x2ac048(0x1e1)](function(_0x448ced){var _0x35a1b2=_0x2ac048;return typeof _0x448ced[_0x35a1b2(0x1f3)]['id']=='string'&&_0x29e854&&_0x29e854[_0x35a1b2(0x1dd)](_0x448ced[_0x35a1b2(0x1f3)]['id'])>-0x1?u(u({},_0x448ced),{'attrs':u(u({},_0x448ced['attrs']),{'id':_0x448ced[_0x35a1b2(0x1f3)]['id']+_0x34d436[_0x35a1b2(0x211)]})}):_0x448ced;})}):_0x52f95e;}function G(){var _0x514621=_0x16d22e;return Math[_0x514621(0x2a4)]()[_0x514621(0x210)](0x24)[_0x514621(0x270)](0x2,0x8);}j[_0x16d22e(0x230)]=_0x16d22e(0x1fd);var B={'tag':_0x16d22e(0x280),'attrs':{'fill':'none','viewBox':_0x16d22e(0x231),'width':_0x16d22e(0x28e),'height':'1em'},'children':[{'tag':_0x16d22e(0x254),'attrs':{'fill':'currentColor','d':_0x16d22e(0x242)}},{'tag':_0x16d22e(0x254),'attrs':{'fill':'currentColor','d':_0x16d22e(0x20c),'fillRule':'evenodd','clipRule':_0x16d22e(0x269)}}]},P=f[_0x16d22e(0x2ab)](function(_0x56ca4c,_0x5ef69c){var _0x4911b5=_0x16d22e;return f['createElement'](j,Object[_0x4911b5(0x1dc)]({},_0x56ca4c,{'id':_0x4911b5(0x1db),'ref':_0x5ef69c,'icon':B}));});P[_0x16d22e(0x230)]='LiveShareSingle';var Y=Object[_0x16d22e(0x22a)],R=(_0x41f15e,_0x526e59,_0x540be7,_0x4e2e45)=>{var _0x3b719c=_0x16d22e;for(var _0x16c7e9=_0x4e2e45>0x1?void 0x0:_0x4e2e45?Y(_0x526e59,_0x540be7):_0x526e59,_0x49702c=_0x41f15e[_0x3b719c(0x2b3)]-0x1,_0x17b873;_0x49702c>=0x0;_0x49702c--)(_0x17b873=_0x41f15e[_0x49702c])&&(_0x16c7e9=_0x17b873(_0x16c7e9)||_0x16c7e9);return _0x16c7e9;},S=(_0x48112b,_0xdb233d)=>(_0x28856d,_0x5333c0)=>_0xdb233d(_0x28856d,_0x5333c0,_0x48112b);exports[_0x16d22e(0x27b)]=class extends o[_0x16d22e(0x1ed)]{constructor(_0x5b8c45,_0x5568a9,_0x12c8c3){var _0x206e2a=_0x16d22e;super(),v(this,_0x206e2a(0x1d0),new Map()),(this[_0x206e2a(0x25c)]=_0x5b8c45,this['_injector']=_0x5568a9,this[_0x206e2a(0x1cc)]=_0x12c8c3,this[_0x206e2a(0x1df)]());}async['getLiveShareCoordinator'](_0x5726f6){var _0x4a2162=_0x16d22e;return this['_entities'][_0x4a2162(0x220)](_0x5726f6)||await this[_0x4a2162(0x200)](_0x5726f6),this[_0x4a2162(0x1d0)][_0x4a2162(0x282)](_0x5726f6);}[_0x16d22e(0x1df)](){var _0x11cc1c=_0x16d22e;this[_0x11cc1c(0x25c)][_0x11cc1c(0x208)](o[_0x11cc1c(0x24b)]['UNIVER_SHEET'])[_0x11cc1c(0x29d)](b['takeUntil'](this[_0x11cc1c(0x264)]))[_0x11cc1c(0x245)](async _0x353ccf=>{var _0x42cd8a=_0x11cc1c;const _0x47f7f5=_0x353ccf[_0x42cd8a(0x248)]();this['_entities'][_0x42cd8a(0x220)](_0x47f7f5)||this[_0x42cd8a(0x200)](_0x47f7f5);}),this[_0x11cc1c(0x25c)][_0x11cc1c(0x256)](o[_0x11cc1c(0x24b)][_0x11cc1c(0x223)])[_0x11cc1c(0x29d)](b[_0x11cc1c(0x240)](this[_0x11cc1c(0x264)]))[_0x11cc1c(0x245)](_0x53b19e=>{var _0x49d71a=_0x11cc1c;const _0x469541=_0x53b19e[_0x49d71a(0x248)](),_0xddcc1f=this['_entities'][_0x49d71a(0x282)](_0x469541);_0xddcc1f==null||_0xddcc1f[_0x49d71a(0x28d)]();});}async['_startLiveShareCoordinator'](_0x61ceac){var _0x52f765=_0x16d22e;const _0x19632e=await this['_collabSessionService'][_0x52f765(0x285)](_0x61ceac),_0x37100c=this['_injector'][_0x52f765(0x294)](exports[_0x52f765(0x23b)],_0x61ceac,_0x19632e);return _0x37100c['init'](),this[_0x52f765(0x1d0)][_0x52f765(0x201)](_0x61ceac,_0x37100c),_0x37100c;}},exports['LiveShareController']=R([S(0x0,o['IUniverInstanceService']),S(0x1,o['Inject'](o[_0x16d22e(0x265)])),S(0x2,o[_0x16d22e(0x2a5)](m[_0x16d22e(0x237)]))],exports[_0x16d22e(0x27b)]);var h=(_0xc8f266=>(_0xc8f266['OFFLINE']=_0x16d22e(0x246),_0xc8f266[_0x16d22e(0x233)]=_0x16d22e(0x1ff),_0xc8f266['FOLLOWING']='following',_0xc8f266[_0x16d22e(0x289)]=_0x16d22e(0x1fe),_0xc8f266[_0x16d22e(0x29f)]='presenting',_0xc8f266))(h||{});const Z=_0x16d22e(0x283),J=0xc8;exports[_0x16d22e(0x23b)]=class extends o[_0x16d22e(0x1ed)]{constructor(_0x1678df,_0x29b33a,_0x400cd3,_0x357b54,_0x1a1fcd){var _0x325399=_0x16d22e;super(),v(this,'_status$',new x[(_0x325399(0x207))](_0x325399(0x1ff))),v(this,_0x325399(0x20f),this['_status$'][_0x325399(0x278)]()),v(this,'_init',!0x1),v(this,_0x325399(0x226),null),v(this,_0x325399(0x243),null),(this[_0x325399(0x26e)]=_0x1678df,this[_0x325399(0x1fb)]=_0x29b33a,this['_configService']=_0x400cd3,this[_0x325399(0x1e8)]=_0x357b54,this[_0x325399(0x299)]=_0x1a1fcd);}get[_0x16d22e(0x2af)](){var _0x14bd8d=_0x16d22e;return this[_0x14bd8d(0x1d8)][_0x14bd8d(0x25b)]();}[_0x16d22e(0x28d)](){var _0x39cc3b=_0x16d22e,_0x22e01e;(_0x22e01e=this[_0x39cc3b(0x226)])==null||_0x22e01e[_0x39cc3b(0x28d)](),this[_0x39cc3b(0x1d8)][_0x39cc3b(0x23c)](_0x39cc3b(0x1ff)),this[_0x39cc3b(0x1d8)][_0x39cc3b(0x238)]();}[_0x16d22e(0x1f2)](){var _0x32f5db=_0x16d22e;this['_init']||(this[_0x32f5db(0x1df)]=!0x0,this['_collabSession'][_0x32f5db(0x21c)][_0x32f5db(0x29d)](b[_0x32f5db(0x240)](this['dispose$']))[_0x32f5db(0x245)](_0x3cb65a=>{var _0x3d8135=_0x32f5db;switch(_0x3cb65a){case m[_0x3d8135(0x1cf)]['OFFLINE']:this['_handleOffline']();break;case m['SessionStatus']['ONLINE']:this[_0x3d8135(0x2a6)]();break;}}),this[_0x32f5db(0x1fb)][_0x32f5db(0x24f)][_0x32f5db(0x29d)](b[_0x32f5db(0x240)](this['dispose$']))[_0x32f5db(0x245)](_0x139d10=>{var _0x16a149=_0x32f5db;const {eventID:_0x5b0336}=_0x139d10;switch(_0x5b0336){case _['CollaborationEvent'][_0x16a149(0x224)]:this[_0x16a149(0x25a)](_0x139d10);break;case _[_0x16a149(0x26a)]['LIVESHARE_OPERATION']:this[_0x16a149(0x22e)](_0x139d10);break;case _[_0x16a149(0x26a)][_0x16a149(0x216)]:this[_0x16a149(0x25d)]();break;case _[_0x16a149(0x26a)][_0x16a149(0x27e)]:this[_0x16a149(0x1d3)](_0x139d10);break;}}));}[_0x16d22e(0x286)](){var _0x4cf2dc=_0x16d22e;this[_0x4cf2dc(0x1fb)][_0x4cf2dc(0x24a)]({'eventID':_[_0x4cf2dc(0x26a)][_0x4cf2dc(0x1cb)],'data':{'unitID':this[_0x4cf2dc(0x26e)],'userID':this[_0x4cf2dc(0x1fb)][_0x4cf2dc(0x203)]()}},this['_unitID']);}[_0x16d22e(0x274)](){var _0x880f9a=_0x16d22e;this[_0x880f9a(0x2af)]==='presenting'&&(this[_0x880f9a(0x1d8)][_0x880f9a(0x23c)](_0x880f9a(0x1ff)),this[_0x880f9a(0x1fb)][_0x880f9a(0x24a)]({'eventID':_[_0x880f9a(0x26a)][_0x880f9a(0x216)],'data':{'unitID':this[_0x880f9a(0x26e)]}},this[_0x880f9a(0x26e)]));}[_0x16d22e(0x228)](){var _0x11b892=_0x16d22e;this['_status']===_0x11b892(0x1fe)&&(this['_status$']['next'](_0x11b892(0x28f)),this[_0x11b892(0x257)]());}[_0x16d22e(0x219)](){var _0x46b045=_0x16d22e;this[_0x46b045(0x2af)]===_0x46b045(0x28f)&&this['_stopFollowing']();}[_0x16d22e(0x25a)](_0x1e7d82){var _0x27fb61=_0x16d22e;const {presenter:_0x5281b5}=_0x1e7d82[_0x27fb61(0x204)],_0x461bac=this[_0x27fb61(0x1fb)]['getMemberID']();this[_0x27fb61(0x243)]=_0x5281b5,_0x5281b5===_0x461bac?(this[_0x27fb61(0x292)](),this[_0x27fb61(0x206)]()):this['_status']!==_0x27fb61(0x1fe)&&(this['_stopPresenting'](),this[_0x27fb61(0x257)]());}[_0x16d22e(0x1d5)](){var _0x2ac05d=_0x16d22e;const _0x4e1074={'eventID':_[_0x2ac05d(0x26a)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x2ac05d(0x1fb)]['send'](_0x4e1074,this[_0x2ac05d(0x26e)]);}['_handleTerminate'](){var _0xc5d3ed=_0x16d22e;this[_0xc5d3ed(0x243)]=null,this[_0xc5d3ed(0x2af)]!==_0xc5d3ed(0x2b1)&&this[_0xc5d3ed(0x1ea)]();}['_handleNewChangeSets'](_0x235f89){var _0x3ec532=_0x16d22e;if(this[_0x3ec532(0x2af)]===_0x3ec532(0x28f)&&this['_presenter']===_0x235f89['data'][_0x3ec532(0x298)]){const _0x339205=_[_0x3ec532(0x22c)](_0x235f89[_0x3ec532(0x204)])['mutations']['reverse']()[_0x3ec532(0x2b0)](_0x4cc41a=>_0x4cc41a['id']===C[_0x3ec532(0x2b2)]['id']);if(_0x339205){const _0x20976f=_0x339205[_0x3ec532(0x21d)][_0x3ec532(0x222)],_0x188622=_0x339205[_0x3ec532(0x21d)][_0x3ec532(0x271)]['id'];setTimeout(()=>{var _0x3b0f8f=_0x3ec532;this['_commandService']['executeCommand'](C[_0x3b0f8f(0x22f)]['id'],{'unitId':_0x20976f,'subUnitId':_0x188622},{'fromCollab':!0x0});});}}}[_0x16d22e(0x206)](){var _0x3035c6=_0x16d22e;this[_0x3035c6(0x1d8)]['next'](_0x3035c6(0x2b1));const _0x3e9bf8=new Map(),_0x1f0683=this['_commandDisposable']=new o[(_0x3035c6(0x29b))]();_0x1f0683['add'](o[_0x3035c6(0x2b4)](()=>{var _0x427d6a=_0x3035c6;_0x3e9bf8[_0x427d6a(0x21b)](_0xb0b598=>_0xb0b598[_0x427d6a(0x238)]()),_0x3e9bf8[_0x427d6a(0x263)]();})),_0x1f0683[_0x3035c6(0x1f8)](this[_0x3035c6(0x299)]['onCommandExecuted'](_0x31f093=>{var _0x1ab226=_0x3035c6,_0x5932c3;if(_0x31f093[_0x1ab226(0x1fc)]!==o[_0x1ab226(0x29a)]['OPERATION']||!this[_0x1ab226(0x1e8)][_0x1ab226(0x1f4)](_0x31f093['id']))return;const {id:_0x242968}=_0x31f093;let _0x462290;_0x3e9bf8[_0x1ab226(0x220)](_0x242968)?_0x462290=_0x3e9bf8['get'](_0x242968):(_0x462290=new x[(_0x1ab226(0x1d2))](),_0x3e9bf8['set'](_0x242968,_0x462290),_0x462290[_0x1ab226(0x29d)](b['throttleTime']((_0x5932c3=this[_0x1ab226(0x2aa)][_0x1ab226(0x255)](Z))!=null?_0x5932c3:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1ab226(0x245)](_0x362afa=>{var _0xc3be9f=_0x1ab226;this['_collabSession'][_0xc3be9f(0x24a)]({'eventID':_[_0xc3be9f(0x26a)][_0xc3be9f(0x2a8)],'data':{'unitID':this[_0xc3be9f(0x26e)],'operations':{[_0x362afa['id']]:{'id':_0x362afa['id'],'params':JSON['stringify'](_0x362afa[_0xc3be9f(0x21d)])}}}},this['_unitID']);})),_0x462290['next'](_0x31f093);})),this[_0x3035c6(0x1e8)]['getInitialStates'](this[_0x3035c6(0x26e)])[_0x3035c6(0x21b)](_0x5e0c9e=>this[_0x3035c6(0x1fb)][_0x3035c6(0x24a)]({'eventID':_[_0x3035c6(0x26a)][_0x3035c6(0x2a8)],'data':{'unitID':this[_0x3035c6(0x26e)],'operations':{[_0x5e0c9e['id']]:{'id':_0x5e0c9e['id'],'params':JSON[_0x3035c6(0x25e)](_0x5e0c9e[_0x3035c6(0x21d)])}}}},this[_0x3035c6(0x26e)]));}[_0x16d22e(0x21f)](){var _0x5c58a5=_0x16d22e,_0x4a393f;this[_0x5c58a5(0x1d8)][_0x5c58a5(0x23c)](_0x5c58a5(0x1ff)),(_0x4a393f=this[_0x5c58a5(0x226)])==null||_0x4a393f[_0x5c58a5(0x28d)](),this[_0x5c58a5(0x226)]=null;}[_0x16d22e(0x257)](){var _0x514b44=_0x16d22e,_0x23373e;(_0x23373e=this[_0x514b44(0x226)])==null||_0x23373e[_0x514b44(0x28d)](),this[_0x514b44(0x1d8)][_0x514b44(0x23c)](_0x514b44(0x28f));}['_beIdle'](){var _0x44df8b=_0x16d22e,_0xb917e5;this[_0x44df8b(0x1d8)]['next']('idle'),(_0xb917e5=this[_0x44df8b(0x226)])==null||_0xb917e5[_0x44df8b(0x28d)](),this['_commandDisposable']=null;}[_0x16d22e(0x292)](){var _0x3d5ad2=_0x16d22e,_0x2b9b75;this[_0x3d5ad2(0x1d8)][_0x3d5ad2(0x23c)]('not-following'),(_0x2b9b75=this['_commandDisposable'])==null||_0x2b9b75[_0x3d5ad2(0x28d)]();}[_0x16d22e(0x22e)](_0x53dcce){var _0x44e1d3=_0x16d22e;if([_0x44e1d3(0x2b1),_0x44e1d3(0x1fe),_0x44e1d3(0x246)][_0x44e1d3(0x1e4)](this[_0x44e1d3(0x2af)])||!_0x53dcce[_0x44e1d3(0x204)]['presenter']||_0x53dcce['data'][_0x44e1d3(0x1f1)]===this['_collabSession'][_0x44e1d3(0x203)]())return;this[_0x44e1d3(0x2af)]===_0x44e1d3(0x1ff)&&this[_0x44e1d3(0x257)]();const _0x2b961b=_0x53dcce['data'][_0x44e1d3(0x1d7)];Object[_0x44e1d3(0x217)](_0x2b961b)[_0x44e1d3(0x21b)](_0x5ef2ce=>{var _0x2dae46=_0x44e1d3;this[_0x2dae46(0x299)]['executeCommand'](_0x5ef2ce['id'],_0x5ef2ce['params']?JSON[_0x2dae46(0x27d)](_0x5ef2ce[_0x2dae46(0x21d)]):null,{'fromCollab':!0x0});});}[_0x16d22e(0x215)](){var _0x1c7b5e=_0x16d22e,_0x481319;this['_status$']['next'](_0x1c7b5e(0x246)),(_0x481319=this[_0x1c7b5e(0x226)])==null||_0x481319[_0x1c7b5e(0x28d)]();}[_0x16d22e(0x2a6)](){var _0x31fbc2=_0x16d22e;this['_status$'][_0x31fbc2(0x23c)](_0x31fbc2(0x1ff)),this['_fetchOperations']();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x16d22e(0x24c)]),S(0x3,o[_0x16d22e(0x2a5)](E)),S(0x4,o[_0x16d22e(0x212)])],exports[_0x16d22e(0x23b)]);function A(){var _0x3fe29a=_0x16d22e;const _0x4cf7a0=p[_0x3fe29a(0x288)](exports[_0x3fe29a(0x27b)]),_0x119565=p[_0x3fe29a(0x288)](o[_0x3fe29a(0x259)]),_0x570fd9=p[_0x3fe29a(0x247)](()=>_0x119565[_0x3fe29a(0x218)](o['UniverInstanceType'][_0x3fe29a(0x223)]),void 0x0,!0x1,[]),[_0x34c861,_0x2eb75b]=f[_0x3fe29a(0x251)](null),[_0x572932,_0x46e03c]=f['useState'](h['IDLE']),_0x2aa438=f[_0x3fe29a(0x2ae)](null);return f[_0x3fe29a(0x244)](()=>(_0x570fd9&&_0x4cf7a0['getLiveShareCoordinator'](_0x570fd9[_0x3fe29a(0x248)]())[_0x3fe29a(0x1ee)](_0x4cf748=>{var _0x219d73=_0x3fe29a;_0x2eb75b(_0x4cf748),_0x2aa438[_0x219d73(0x20d)]=_0x4cf748[_0x219d73(0x20f)][_0x219d73(0x245)](_0x1c9e14=>{_0x46e03c(_0x1c9e14);});}),()=>{var _0x2864ab=_0x3fe29a,_0x13f9af;(_0x13f9af=_0x2aa438[_0x2864ab(0x20d)])==null||_0x13f9af[_0x2864ab(0x24d)](),_0x2aa438[_0x2864ab(0x20d)]=null;}),[_0x570fd9,_0x4cf7a0]),_0x34c861?l[_0x3fe29a(0x22b)](g['Dropdown'],{'align':_0x3fe29a(0x2a1),'disabled':_0x572932===h[_0x3fe29a(0x1e5)],'className':_0x3fe29a(0x1f6),'overlay':l['jsx'](K,{'status':_0x572932,'coordinator':_0x34c861}),'children':l['jsx']('button',{'className':g[_0x3fe29a(0x29c)](_0x3fe29a(0x1d9),{'univer-cursor-not-allowed':_0x572932===h[_0x3fe29a(0x1e5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x572932!==h[_0x3fe29a(0x1e5)]}),'type':_0x3fe29a(0x28a),'children':l[_0x3fe29a(0x22b)](P,{'className':_0x3fe29a(0x26f)})})}):null;}function K(_0x19be2b){var _0x4863ca=_0x16d22e;const {status:_0x400803,coordinator:_0x1aa717}=_0x19be2b;switch(_0x400803){case h['IDLE']:return l[_0x4863ca(0x22b)](z,{'coordinator':_0x1aa717});case h[_0x4863ca(0x221)]:return l[_0x4863ca(0x22b)](Q,{'coordinator':_0x1aa717});case h[_0x4863ca(0x289)]:return l[_0x4863ca(0x22b)](X,{'coordinator':_0x1aa717});case h[_0x4863ca(0x1e5)]:return l[_0x4863ca(0x22b)](te,{});case h['PRESENTING']:return l['jsx'](ee,{'coordinator':_0x1aa717});default:return null;}}function z(_0x19b737){var _0x553ab8=_0x16d22e;const {coordinator:_0x77bac2}=_0x19b737;return l[_0x553ab8(0x1d6)](l[_0x553ab8(0x26b)],{'children':[l[_0x553ab8(0x22b)](_0x553ab8(0x2a2),{'className':_0x553ab8(0x23d),'children':_0x553ab8(0x1cd)}),l['jsx'](g[_0x553ab8(0x2a7)],{'onClick':()=>_0x77bac2[_0x553ab8(0x286)](),'children':'Start'})]});}function Q(_0x44ea0a){var _0x2e0229=_0x16d22e;const {coordinator:_0x4968d0}=_0x44ea0a;return l[_0x2e0229(0x1d6)](l[_0x2e0229(0x26b)],{'children':[l[_0x2e0229(0x22b)](_0x2e0229(0x2a2),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x2e0229(0x22b)](g[_0x2e0229(0x2a7)],{'onClick':()=>_0x4968d0['stopFollowing'](),'children':_0x2e0229(0x1ef)})]});}function X(_0x2cbe3f){var _0x4797e0=_0x16d22e;const {coordinator:_0x289a51}=_0x2cbe3f;return l[_0x4797e0(0x1d6)](l[_0x4797e0(0x26b)],{'children':[l['jsx'](_0x4797e0(0x2a2),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x4797e0(0x250)}),l['jsx'](g[_0x4797e0(0x2a7)],{'variant':_0x4797e0(0x1f5),'onClick':()=>_0x289a51[_0x4797e0(0x228)](),'children':_0x4797e0(0x277)})]});}function ee(_0x50e6dc){var _0x266871=_0x16d22e;const {coordinator:_0x55643e}=_0x50e6dc;return l[_0x266871(0x1d6)](l['Fragment'],{'children':[l[_0x266871(0x22b)]('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x266871(0x21a)}),l[_0x266871(0x22b)](g[_0x266871(0x2a7)],{'variant':'default','onClick':()=>_0x55643e['stopPresenting'](),'children':'Stop\x20presenting'})]});}function te(){var _0x577321=_0x16d22e;return l[_0x577321(0x22b)](l['Fragment'],{'children':'You\x27are\x20offline.'});}var ie=Object[_0x16d22e(0x22a)],ne=(_0x36742c,_0x294383,_0x30e08a,_0x543318)=>{var _0x2684c4=_0x16d22e;for(var _0x9e949d=_0x543318>0x1?void 0x0:_0x543318?ie(_0x294383,_0x30e08a):_0x294383,_0x23e6d7=_0x36742c[_0x2684c4(0x2b3)]-0x1,_0x25bb99;_0x23e6d7>=0x0;_0x23e6d7--)(_0x25bb99=_0x36742c[_0x23e6d7])&&(_0x9e949d=_0x25bb99(_0x9e949d)||_0x9e949d);return _0x9e949d;},N=(_0x28ecb6,_0x3f1b8a)=>(_0x48b7a2,_0x56fda9)=>_0x3f1b8a(_0x48b7a2,_0x56fda9,_0x28ecb6);exports['DesktopLiveShareController']=class extends o[_0x16d22e(0x273)]{constructor(_0x56212b,_0x4137fb){var _0x533f60=_0x16d22e;super(),this['_injector']=_0x56212b,this[_0x533f60(0x23a)]=_0x4137fb,this[_0x533f60(0x23f)]();}['_mountLiveShare'](){var _0xfb559f=_0x16d22e;this[_0xfb559f(0x27a)](this[_0xfb559f(0x23a)]['registerComponent'](p[_0xfb559f(0x29e)]['HEADER_MENU'],()=>p[_0xfb559f(0x262)](A,this[_0xfb559f(0x20b)])));}},exports['DesktopLiveShareController']=ne([N(0x0,o[_0x16d22e(0x2a5)](o[_0x16d22e(0x265)])),N(0x1,p[_0x16d22e(0x1e2)])],exports['DesktopLiveShareController']);var re=Object[_0x16d22e(0x2a9)],se=Object[_0x16d22e(0x22a)],oe=(_0x42db5e,_0x34523b,_0x5d1229)=>_0x34523b in _0x42db5e?re(_0x42db5e,_0x34523b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5d1229}):_0x42db5e[_0x34523b]=_0x5d1229,ae=(_0x3b3d8a,_0x535af3,_0x5900b0,_0x29d8f9)=>{var _0x59eb1e=_0x16d22e;for(var _0x3f3c9a=_0x29d8f9>0x1?void 0x0:_0x29d8f9?se(_0x535af3,_0x5900b0):_0x535af3,_0x4102ab=_0x3b3d8a[_0x59eb1e(0x2b3)]-0x1,_0x1f0107;_0x4102ab>=0x0;_0x4102ab--)(_0x1f0107=_0x3b3d8a[_0x4102ab])&&(_0x3f3c9a=_0x1f0107(_0x3f3c9a)||_0x3f3c9a);return _0x3f3c9a;},w=(_0x2f01eb,_0x4a4e7b)=>(_0x4d5873,_0x4e55c9)=>_0x4a4e7b(_0x4d5873,_0x4e55c9,_0x2f01eb),T=(_0x1b36f6,_0x40778b,_0x504071)=>oe(_0x1b36f6,typeof _0x40778b!='symbol'?_0x40778b+'':_0x40778b,_0x504071);const le='UNIVER_LIVE_SHARE_PLUGIN';function _0x61e2(_0x1fa46a,_0x3f7460){var _0xc29d32=_0xc29d();return _0x61e2=function(_0x61e22a,_0x1313a9){_0x61e22a=_0x61e22a-0x1cb;var _0x178974=_0xc29d32[_0x61e22a];return _0x178974;},_0x61e2(_0x1fa46a,_0x3f7460);}exports[_0x16d22e(0x239)]=class extends o[_0x16d22e(0x284)]{constructor(_0x265802=L,_0x3b3a7f,_0x10fb21){var _0x4aa7f6=_0x16d22e;super(),this['_config']=_0x265802,this['_injector']=_0x3b3a7f,this[_0x4aa7f6(0x2aa)]=_0x10fb21;const {..._0x376494}=o[_0x4aa7f6(0x20e)]({},L,this[_0x4aa7f6(0x21e)]);this['_configService']['setConfig']($,_0x376494);}[_0x16d22e(0x1e0)](){var _0x1671fe=_0x16d22e;o['registerDependencies'](this[_0x1671fe(0x20b)],o[_0x1671fe(0x1ce)]([[E],[exports[_0x1671fe(0x27b)]],[O],[exports[_0x1671fe(0x258)]]],this[_0x1671fe(0x21e)]['override'])),o[_0x1671fe(0x2ad)](this[_0x1671fe(0x20b)],[[O]]);}[_0x16d22e(0x261)](){var _0x1e7405=_0x16d22e;o['touchDependencies'](this[_0x1e7405(0x20b)],[[exports[_0x1e7405(0x258)]]]);}},T(exports[_0x16d22e(0x239)],_0x16d22e(0x1fc),o['UniverInstanceType'][_0x16d22e(0x1eb)]),T(exports[_0x16d22e(0x239)],_0x16d22e(0x241),le),exports[_0x16d22e(0x239)]=ae([o['DependentOn'](m['UniverCollaborationClientPlugin']),w(0x1,o[_0x16d22e(0x2a5)](o[_0x16d22e(0x265)])),w(0x2,o[_0x16d22e(0x24c)])],exports[_0x16d22e(0x239)]),exports[_0x16d22e(0x26c)]=A,exports[_0x16d22e(0x1f0)]=E,exports[_0x16d22e(0x1f9)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x1937ef=_0x1576;(function(_0x173e22,_0x13f115){var _0x2e05a7=_0x1576,_0x580398=_0x173e22();while(!![]){try{var _0x3a5c00=parseInt(_0x2e05a7(0x124))/0x1*(-parseInt(_0x2e05a7(0x112))/0x2)+-parseInt(_0x2e05a7(0x10e))/0x3*(-parseInt(_0x2e05a7(0x15c))/0x4)+-parseInt(_0x2e05a7(0x14a))/0x5+parseInt(_0x2e05a7(0x13a))/0x6+-parseInt(_0x2e05a7(0x128))/0x7*(-parseInt(_0x2e05a7(0x141))/0x8)+parseInt(_0x2e05a7(0x184))/0x9*(-parseInt(_0x2e05a7(0x118))/0xa)+-parseInt(_0x2e05a7(0x189))/0xb;if(_0x3a5c00===_0x13f115)break;else _0x580398['push'](_0x580398['shift']());}catch(_0x2e8d69){_0x580398['push'](_0x580398['shift']());}}}(_0x2729,0xc3caa));var q=Object[_0x1937ef(0xdf)],z=(_0x51b8bd,_0x345540,_0x299412)=>_0x345540 in _0x51b8bd?q(_0x51b8bd,_0x345540,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x299412}):_0x51b8bd[_0x345540]=_0x299412,d=(_0x1fb40d,_0x2e115a,_0x230351)=>z(_0x1fb40d,typeof _0x2e115a!='symbol'?_0x2e115a+'':_0x2e115a,_0x230351);import{CollaborationSessionService as _0x2ba0ce,SessionStatus as _0x1c4986,UniverCollaborationClientPlugin as _0x310c99}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4e5696,toDisposable as _0x3445ea,Inject as _0x30f351,IUniverInstanceService as _0x4bbec0,Injector as _0x5a81c2,IConfigService as _0x268cc5,ICommandService as _0x519049,RxDisposable as _0x404045,UniverInstanceType as _0x389694,DisposableCollection as _0x1eb65a,CommandType as _0x47fa0b,DependentOn as _0x434d74,Plugin as _0xa8483a,merge as _0x520eac,registerDependencies as _0x47f38e,mergeOverrideWithDependencies as _0xf1e502,touchDependencies as _0x30d27b}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x555a90,InsertSheetMutation as _0x585918}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x530f88,SetScrollOperation as _0x3e80bd}from'@univerjs/sheets-ui';import{useDependency as _0x105a7f,useObservable as _0x56d616,IUIPartsService as _0x54648c,BuiltInUIPart as _0x3c9586,connectInjector as _0x46516c}from'@univerjs/ui';import{jsx as _0x2b8ee2,jsxs as _0x592a31,Fragment as _0x2a759f}from'react/jsx-runtime';import{Dropdown as _0xfb031,clsx as _0x4c4971,Button as _0x13e900}from'@univerjs/design';import{forwardRef as _0x4eb534,useRef as _0x412035,createElement as _0x3edc2f,useState as _0x4ec9cf,useEffect as _0x127a28}from'react';import{CollaborationEvent as _0x3698f7,parseProtocolChangeset as _0x4bddcf}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x428c9f,Subject as _0x35c93d}from'rxjs';import{takeUntil as _0x27da68,throttleTime as _0x50f4b3}from'rxjs/operators';function _0x2729(){var _0x52a53d=['get','_univerInstanceService','displayName','NEW_CHANGESETS','onCommandExecuted','colorChannel1','send','idSuffix','NOT_FOLLOWING','apply','forEach','dispose$','415521yegSHx','button','getMemberID','presenting','requireSession','6651172MJInsR','div','includes','UNIVER_UNKNOWN','defineProperty','children','stringify','function','substring','prototype','symbol','stopPresenting','UNIVER_LIVE_SHARE_PLUGIN','concat','getValue','univerjs-icon\x20univerjs-icon-','Present\x20this\x20document','_status$','_handleNewChangeSets','UNIVER_SHEET','_commandDisposable','presenter','map','offline','_init','UniverIcon','LIVESHARE_TERMINATE','fill','onStarting','LIVESHARE_OPERATION','registerInitialStateReporter','_stopFollowing','_stopPresenting','OFFLINE','path','LIVESHARE_FETCH_OPERATIONS','Start\x20following','length','shouldShareOperation','end','_unitID','_reporters','url(#$1','sheet','mask','_config','_startLiveShareCoordinator','set','getInitialStates','params','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','3UcgVkm','_startPresenting','_sharedOperations','_collabSessionService','5682KaHOis','operations','currentColor','getOwnPropertyDescriptor','replace','You\x27are\x20offline.','320XOqCrV','getOwnPropertySymbols','1em','memberID','subscribe','Stop\x20presenting','LIVESHARE_NEW_HOST','_status','idle','_handleOnline','add','_collabSession','128xsjLnX','Start','none','extend','9709rIdvkQ','_entities','entries','className','disposeWithMe','univer-w-full\x20univer-mb-3\x20univer-text-sm','reverse','call','xlink:href','stopFollowing','_beIdle','pluginName','attrs','random','unitId','SAME_OPERATION_SHARE_INTERVAL','asObservable','tryStartPresenting','4811406agjwxt','Stop\x20following','not-following','delete','LIVESHARE_REQUEST_HOST','_commandService','_handleNewHost','5624weheXg','registerSharedOperation','You\x27re\x20presenting\x20the\x20document','_configService','dispose','indexOf','ONLINE','onRendered','executeCommand','525070RwnDiV','univer-size-4','_mountLiveShare','startFollowing','text','_presenter','use','has','_liveShareService','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','type','_startFollowing','_fetchOperations','IDLE','default','defs','values','hasOwnProperty','6302888STMlpd','next','defIds','_injector','string','current','getUnitId','_uiPartsService','unsubscribe','mutations','data','evenodd','PRESENTING','_handleTerminate','event$','status$','getLiveShareCoordinator','following','icon','_handleOffline','live-share-single','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','assign','svg','pipe','live-share.config','0\x200\x2016\x2016','tag'];_0x2729=function(){return _0x52a53d;};return _0x2729();}const Oe=_0x1937ef(0x175),T={};class L extends _0x4e5696{constructor(){var _0x50524c=_0x1937ef;super(...arguments),d(this,_0x50524c(0x110),new Set()),d(this,_0x50524c(0x104),new Set());}[_0x1937ef(0x142)](_0x951be9){var _0x541c26=_0x1937ef;return this[_0x541c26(0x110)]['add'](_0x951be9),_0x3445ea(()=>this[_0x541c26(0x110)][_0x541c26(0x13d)](_0x951be9));}[_0x1937ef(0xf9)](_0x65ab9){var _0x53d93f=_0x1937ef;return this[_0x53d93f(0x104)][_0x53d93f(0x122)](_0x65ab9),_0x3445ea(()=>this[_0x53d93f(0x104)]['delete'](_0x65ab9));}[_0x1937ef(0x101)](_0x467e72){var _0x5bd0d6=_0x1937ef;return this[_0x5bd0d6(0x110)][_0x5bd0d6(0x151)](_0x467e72);}['getInitialStates'](_0x1ce978){return Array['from'](this['_reporters'])['map'](_0x4bc242=>_0x4bc242(_0x1ce978));}}var Ee=Object[_0x1937ef(0x115)],Ce=(_0x1a1f5e,_0x179481,_0x27dafd,_0x3a5290)=>{for(var _0x32cd2f=_0x3a5290>0x1?void 0x0:_0x3a5290?Ee(_0x179481,_0x27dafd):_0x179481,_0x1f3cb8=_0x1a1f5e['length']-0x1,_0x4594a1;_0x1f3cb8>=0x0;_0x1f3cb8--)(_0x4594a1=_0x1a1f5e[_0x1f3cb8])&&(_0x32cd2f=_0x4594a1(_0x32cd2f)||_0x32cd2f);return _0x32cd2f;},Ne=(_0x48ea18,_0x3c6730)=>(_0x1dc0de,_0x586bb7)=>_0x3c6730(_0x1dc0de,_0x586bb7,_0x48ea18);let m=class extends _0x4e5696{constructor(_0x18f69d){var _0x35bbd7=_0x1937ef;super(),this[_0x35bbd7(0x152)]=_0x18f69d,this['_init']();}[_0x1937ef(0xf3)](){[_0x530f88['id'],_0x3e80bd['id'],_0x555a90['id']]['forEach'](_0x3f5484=>{var _0x368979=_0x1576;this[_0x368979(0x12c)](this[_0x368979(0x152)][_0x368979(0x142)](_0x3f5484));});}};m=Ce([Ne(0x0,_0x30f351(L))],m);var c=function(){var _0x110f8b=_0x1937ef;return c=Object[_0x110f8b(0x172)]||function(_0x209f02){var _0x45bea2=_0x110f8b;for(var _0x24a608,_0x3bc3bd=0x1,_0x1f6255=arguments['length'];_0x3bc3bd<_0x1f6255;_0x3bc3bd++){_0x24a608=arguments[_0x3bc3bd];for(var _0x65f2a3 in _0x24a608)Object[_0x45bea2(0xe4)][_0x45bea2(0x15b)][_0x45bea2(0x12f)](_0x24a608,_0x65f2a3)&&(_0x209f02[_0x65f2a3]=_0x24a608[_0x65f2a3]);}return _0x209f02;},c[_0x110f8b(0x181)](this,arguments);},we=function(_0x2e83c1,_0x1519f3){var _0x1b580e=_0x1937ef,_0xa53279={};for(var _0x11279b in _0x2e83c1)Object[_0x1b580e(0xe4)]['hasOwnProperty']['call'](_0x2e83c1,_0x11279b)&&_0x1519f3['indexOf'](_0x11279b)<0x0&&(_0xa53279[_0x11279b]=_0x2e83c1[_0x11279b]);if(_0x2e83c1!=null&&typeof Object['getOwnPropertySymbols']==_0x1b580e(0xe2)){for(var _0x33a8a7=0x0,_0x11279b=Object[_0x1b580e(0x119)](_0x2e83c1);_0x33a8a7<_0x11279b[_0x1b580e(0x100)];_0x33a8a7++)_0x1519f3[_0x1b580e(0x146)](_0x11279b[_0x33a8a7])<0x0&&Object[_0x1b580e(0xe4)]['propertyIsEnumerable'][_0x1b580e(0x12f)](_0x2e83c1,_0x11279b[_0x33a8a7])&&(_0xa53279[_0x11279b[_0x33a8a7]]=_0x2e83c1[_0x11279b[_0x33a8a7]]);}return _0xa53279;},W=_0x4eb534(function(_0x567881,_0x2a65ab){var _0x5e8f05=_0x1937ef,_0x2a4568=_0x567881[_0x5e8f05(0x16e)],_0xe115b0=_0x567881['id'],_0x3ac5e1=_0x567881['className'],_0x351914=_0x567881[_0x5e8f05(0x127)],_0x1c82de=we(_0x567881,[_0x5e8f05(0x16e),'id',_0x5e8f05(0x12b),_0x5e8f05(0x127)]),_0x517195=_0x5e8f05(0xea)[_0x5e8f05(0xe8)](_0xe115b0,'\x20')[_0x5e8f05(0xe8)](_0x3ac5e1||'')['trim'](),_0x887b02=_0x412035('_'[_0x5e8f05(0xe8)](Le()));return Y(_0x2a4568,''[_0x5e8f05(0xe8)](_0xe115b0),{'defIds':_0x2a4568['defIds'],'idSuffix':_0x887b02[_0x5e8f05(0x161)]},c({'ref':_0x2a65ab,'className':_0x517195},_0x1c82de),_0x351914);});function Y(_0x5777be,_0x276c79,_0x24613d,_0x42b273,_0x556e01){var _0x234991=_0x1937ef;return _0x3edc2f(_0x5777be[_0x234991(0x177)],c(c({'key':_0x276c79},De(_0x5777be,_0x24613d,_0x556e01)),_0x42b273),(xe(_0x5777be,_0x24613d)[_0x234991(0xe0)]||[])[_0x234991(0xf1)](function(_0x38cb4a,_0x42ff63){var _0x549104=_0x234991;return Y(_0x38cb4a,''[_0x549104(0xe8)](_0x276c79,'-')[_0x549104(0xe8)](_0x5777be['tag'],'-')[_0x549104(0xe8)](_0x42ff63),_0x24613d,void 0x0,_0x556e01);}));}function De(_0x2470e7,_0x264a6a,_0x30ce26){var _0x1b1c47=_0x1937ef,_0x5e3333=c({},_0x2470e7[_0x1b1c47(0x134)]);_0x30ce26!=null&&_0x30ce26[_0x1b1c47(0x17d)]&&_0x5e3333[_0x1b1c47(0xf6)]==='colorChannel1'&&(_0x5e3333['fill']=_0x30ce26['colorChannel1']),_0x2470e7[_0x1b1c47(0x177)]===_0x1b1c47(0x107)&&_0x5e3333['id']&&(_0x5e3333['id']=_0x5e3333['id']+_0x264a6a[_0x1b1c47(0x17f)]),Object[_0x1b1c47(0x12a)](_0x5e3333)['forEach'](function(_0x50caaa){var _0x40127a=_0x1b1c47,_0xfdcf5c=_0x50caaa[0x0],_0x254c94=_0x50caaa[0x1];_0xfdcf5c===_0x40127a(0x107)&&typeof _0x254c94=='string'&&(_0x5e3333[_0xfdcf5c]=_0x254c94[_0x40127a(0x116)](/url\(#(.*)\)/,_0x40127a(0x105)['concat'](_0x264a6a[_0x40127a(0x17f)],')')));});var _0x2aa8d8=_0x264a6a[_0x1b1c47(0x15e)];return!_0x2aa8d8||_0x2aa8d8[_0x1b1c47(0x100)]===0x0||(_0x2470e7[_0x1b1c47(0x177)]===_0x1b1c47(0x150)&&_0x5e3333[_0x1b1c47(0x130)]&&(_0x5e3333[_0x1b1c47(0x130)]=_0x5e3333['xlink:href']+_0x264a6a[_0x1b1c47(0x17f)]),Object[_0x1b1c47(0x12a)](_0x5e3333)[_0x1b1c47(0x182)](function(_0x2f1ffe){var _0x7d3e91=_0x1b1c47,_0x4c3565=_0x2f1ffe[0x0],_0x4cd0d1=_0x2f1ffe[0x1];typeof _0x4cd0d1=='string'&&(_0x5e3333[_0x4c3565]=_0x4cd0d1[_0x7d3e91(0x116)](/url\(#(.*)\)/,'url(#$1'[_0x7d3e91(0xe8)](_0x264a6a[_0x7d3e91(0x17f)],')')));})),_0x5e3333;}function xe(_0x206816,_0x683920){var _0x2adf0c=_0x1937ef,_0x448bc9,_0x4cb0fe=_0x683920[_0x2adf0c(0x15e)];return!_0x4cb0fe||_0x4cb0fe[_0x2adf0c(0x100)]===0x0?_0x206816:_0x206816[_0x2adf0c(0x177)]===_0x2adf0c(0x159)&&(!((_0x448bc9=_0x206816[_0x2adf0c(0xe0)])===null||_0x448bc9===void 0x0)&&_0x448bc9['length'])?c(c({},_0x206816),{'children':_0x206816[_0x2adf0c(0xe0)][_0x2adf0c(0xf1)](function(_0x49f89e){var _0x89bddd=_0x2adf0c;return typeof _0x49f89e[_0x89bddd(0x134)]['id']==_0x89bddd(0x160)&&_0x4cb0fe&&_0x4cb0fe['indexOf'](_0x49f89e[_0x89bddd(0x134)]['id'])>-0x1?c(c({},_0x49f89e),{'attrs':c(c({},_0x49f89e[_0x89bddd(0x134)]),{'id':_0x49f89e['attrs']['id']+_0x683920['idSuffix']})}):_0x49f89e;})}):_0x206816;}function Le(){var _0x15a6ed=_0x1937ef;return Math[_0x15a6ed(0x135)]()['toString'](0x24)[_0x15a6ed(0xe3)](0x2,0x8);}W[_0x1937ef(0x17a)]=_0x1937ef(0xf4);var ye={'tag':_0x1937ef(0x173),'attrs':{'fill':_0x1937ef(0x126),'viewBox':_0x1937ef(0x176),'width':_0x1937ef(0x11a),'height':_0x1937ef(0x11a)},'children':[{'tag':'path','attrs':{'fill':_0x1937ef(0x114),'d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':_0x1937ef(0xfd),'attrs':{'fill':_0x1937ef(0x114),'d':_0x1937ef(0x10d),'fillRule':_0x1937ef(0x167),'clipRule':_0x1937ef(0x167)}}]},B=_0x4eb534(function(_0x40f7ac,_0x33e63e){var _0x1c3091=_0x1937ef;return _0x3edc2f(W,Object[_0x1c3091(0x172)]({},_0x40f7ac,{'id':_0x1c3091(0x170),'ref':_0x33e63e,'icon':ye}));});B[_0x1937ef(0x17a)]='LiveShareSingle';var Re=Object[_0x1937ef(0x115)],Z=(_0x45040f,_0x163a26,_0x6ab64e,_0x1470f8)=>{var _0x16a682=_0x1937ef;for(var _0x54af03=_0x1470f8>0x1?void 0x0:_0x1470f8?Re(_0x163a26,_0x6ab64e):_0x163a26,_0x41721f=_0x45040f[_0x16a682(0x100)]-0x1,_0x576eda;_0x41721f>=0x0;_0x41721f--)(_0x576eda=_0x45040f[_0x41721f])&&(_0x54af03=_0x576eda(_0x54af03)||_0x54af03);return _0x54af03;},f=(_0x4fc4e8,_0x3a6869)=>(_0x35dc83,_0x14c249)=>_0x3a6869(_0x35dc83,_0x14c249,_0x4fc4e8);let I=class extends _0x404045{constructor(_0x38ebb1,_0x1f3604,_0x1e1bff){var _0x4eed97=_0x1937ef;super(),d(this,_0x4eed97(0x129),new Map()),(this[_0x4eed97(0x179)]=_0x38ebb1,this[_0x4eed97(0x15f)]=_0x1f3604,this['_collabSessionService']=_0x1e1bff,this['_init']());}async[_0x1937ef(0x16c)](_0x1b8e77){var _0x1e7a6f=_0x1937ef;return this[_0x1e7a6f(0x129)][_0x1e7a6f(0x151)](_0x1b8e77)||await this[_0x1e7a6f(0x109)](_0x1b8e77),this[_0x1e7a6f(0x129)][_0x1e7a6f(0x178)](_0x1b8e77);}[_0x1937ef(0xf3)](){var _0x1ad96c=_0x1937ef;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x389694[_0x1ad96c(0xee)])[_0x1ad96c(0x174)](_0x27da68(this[_0x1ad96c(0x183)]))[_0x1ad96c(0x11c)](async _0x372407=>{var _0x322b4d=_0x1ad96c;const _0x3178a3=_0x372407[_0x322b4d(0x162)]();this['_entities'][_0x322b4d(0x151)](_0x3178a3)||this[_0x322b4d(0x109)](_0x3178a3);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x389694[_0x1ad96c(0xee)])[_0x1ad96c(0x174)](_0x27da68(this[_0x1ad96c(0x183)]))['subscribe'](_0x2bdfbf=>{var _0x2a2073=_0x1ad96c;const _0x17cf06=_0x2bdfbf[_0x2a2073(0x162)](),_0x14ae28=this[_0x2a2073(0x129)][_0x2a2073(0x178)](_0x17cf06);_0x14ae28==null||_0x14ae28[_0x2a2073(0x145)]();});}async[_0x1937ef(0x109)](_0x46a360){var _0x2f3677=_0x1937ef;const _0x88faf7=await this[_0x2f3677(0x111)][_0x2f3677(0x188)](_0x46a360),_0x26509a=this['_injector']['createInstance'](w,_0x46a360,_0x88faf7);return _0x26509a['init'](),this['_entities'][_0x2f3677(0x10a)](_0x46a360,_0x26509a),_0x26509a;}};I=Z([f(0x0,_0x4bbec0),f(0x1,_0x30f351(_0x5a81c2)),f(0x2,_0x30f351(_0x2ba0ce))],I);var h=(_0x410445=>(_0x410445['OFFLINE']=_0x1937ef(0xf2),_0x410445[_0x1937ef(0x157)]=_0x1937ef(0x120),_0x410445['FOLLOWING']=_0x1937ef(0x16d),_0x410445[_0x1937ef(0x180)]='not-following',_0x410445[_0x1937ef(0x168)]='presenting',_0x410445))(h||{});const Pe=_0x1937ef(0x137),Ae=0xc8;let w=class extends _0x404045{constructor(_0x44f08c,_0x44dcff,_0x62f1c,_0x4af01b,_0x2b7b05){var _0x5d5930=_0x1937ef;super(),d(this,_0x5d5930(0xec),new _0x428c9f(_0x5d5930(0x120))),d(this,_0x5d5930(0x16b),this['_status$'][_0x5d5930(0x138)]()),d(this,_0x5d5930(0xf3),!0x1),d(this,_0x5d5930(0xef),null),d(this,_0x5d5930(0x14f),null),(this['_unitID']=_0x44f08c,this[_0x5d5930(0x123)]=_0x44dcff,this[_0x5d5930(0x144)]=_0x62f1c,this[_0x5d5930(0x152)]=_0x4af01b,this[_0x5d5930(0x13f)]=_0x2b7b05);}get[_0x1937ef(0x11f)](){var _0x2f1494=_0x1937ef;return this[_0x2f1494(0xec)][_0x2f1494(0xe9)]();}[_0x1937ef(0x145)](){var _0x338587=_0x1937ef,_0xdee2c5;(_0xdee2c5=this[_0x338587(0xef)])==null||_0xdee2c5[_0x338587(0x145)](),this[_0x338587(0xec)]['next'](_0x338587(0x120)),this[_0x338587(0xec)]['complete']();}['init'](){var _0x1494ab=_0x1937ef;this[_0x1494ab(0xf3)]||(this[_0x1494ab(0xf3)]=!0x0,this[_0x1494ab(0x123)]['sessionStatus$'][_0x1494ab(0x174)](_0x27da68(this[_0x1494ab(0x183)]))['subscribe'](_0x4862bf=>{var _0xc817e4=_0x1494ab;switch(_0x4862bf){case _0x1c4986[_0xc817e4(0xfc)]:this[_0xc817e4(0x16f)]();break;case _0x1c4986[_0xc817e4(0x147)]:this[_0xc817e4(0x121)]();break;}}),this['_collabSession'][_0x1494ab(0x16a)][_0x1494ab(0x174)](_0x27da68(this[_0x1494ab(0x183)]))[_0x1494ab(0x11c)](_0x429e47=>{var _0x5c4500=_0x1494ab;const {eventID:_0x35c88a}=_0x429e47;switch(_0x35c88a){case _0x3698f7[_0x5c4500(0x11e)]:this[_0x5c4500(0x140)](_0x429e47);break;case _0x3698f7[_0x5c4500(0xf8)]:this['_handleOperation'](_0x429e47);break;case _0x3698f7[_0x5c4500(0xf5)]:this['_handleTerminate']();break;case _0x3698f7[_0x5c4500(0x17b)]:this[_0x5c4500(0xed)](_0x429e47);break;}}));}[_0x1937ef(0x139)](){var _0x17446e=_0x1937ef;this[_0x17446e(0x123)][_0x17446e(0x17e)]({'eventID':_0x3698f7[_0x17446e(0x13e)],'data':{'unitID':this[_0x17446e(0x103)],'userID':this['_collabSession'][_0x17446e(0x186)]()}},this['_unitID']);}[_0x1937ef(0xe6)](){var _0x2660c8=_0x1937ef;this[_0x2660c8(0x11f)]===_0x2660c8(0x187)&&(this[_0x2660c8(0xec)][_0x2660c8(0x15d)](_0x2660c8(0x120)),this[_0x2660c8(0x123)]['send']({'eventID':_0x3698f7[_0x2660c8(0xf5)],'data':{'unitID':this[_0x2660c8(0x103)]}},this[_0x2660c8(0x103)]));}[_0x1937ef(0x14d)](){var _0x1db15d=_0x1937ef;this[_0x1db15d(0x11f)]==='not-following'&&(this[_0x1db15d(0xec)]['next'](_0x1db15d(0x16d)),this[_0x1db15d(0x155)]());}[_0x1937ef(0x131)](){var _0x8515b4=_0x1937ef;this[_0x8515b4(0x11f)]==='following'&&this['_stopFollowing']();}['_handleNewHost'](_0x28e388){var _0x5da328=_0x1937ef;const {presenter:_0x204ff2}=_0x28e388[_0x5da328(0x166)],_0x35b675=this[_0x5da328(0x123)]['getMemberID']();this['_presenter']=_0x204ff2,_0x204ff2===_0x35b675?(this[_0x5da328(0xfa)](),this[_0x5da328(0x10f)]()):this['_status']!==_0x5da328(0x13c)&&(this[_0x5da328(0xfb)](),this['_startFollowing']());}[_0x1937ef(0x156)](){var _0x5f3b36=_0x1937ef;const _0x3a4a6e={'eventID':_0x3698f7[_0x5f3b36(0xfe)]};this['_collabSession'][_0x5f3b36(0x17e)](_0x3a4a6e,this[_0x5f3b36(0x103)]);}[_0x1937ef(0x169)](){var _0x226ab4=_0x1937ef;this['_presenter']=null,this[_0x226ab4(0x11f)]!==_0x226ab4(0x187)&&this[_0x226ab4(0x132)]();}[_0x1937ef(0xed)](_0x45cb98){var _0x4a33f7=_0x1937ef;if(this[_0x4a33f7(0x11f)]==='following'&&this[_0x4a33f7(0x14f)]===_0x45cb98[_0x4a33f7(0x166)][_0x4a33f7(0x11b)]){const _0x382dc8=_0x4bddcf(_0x45cb98[_0x4a33f7(0x166)])[_0x4a33f7(0x165)][_0x4a33f7(0x12e)]()['find'](_0x313fb3=>_0x313fb3['id']===_0x585918['id']);if(_0x382dc8){const _0x293004=_0x382dc8[_0x4a33f7(0x10c)][_0x4a33f7(0x136)],_0x50a9c6=_0x382dc8[_0x4a33f7(0x10c)][_0x4a33f7(0x106)]['id'];setTimeout(()=>{var _0x42a08b=_0x4a33f7;this['_commandService'][_0x42a08b(0x149)](_0x555a90['id'],{'unitId':_0x293004,'subUnitId':_0x50a9c6},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x12b75a=_0x1937ef;this[_0x12b75a(0xec)][_0x12b75a(0x15d)](_0x12b75a(0x187));const _0x4bb14b=new Map(),_0x2f6e42=this[_0x12b75a(0xef)]=new _0x1eb65a();_0x2f6e42[_0x12b75a(0x122)](_0x3445ea(()=>{var _0x2ac822=_0x12b75a;_0x4bb14b[_0x2ac822(0x182)](_0x15e5e6=>_0x15e5e6['complete']()),_0x4bb14b['clear']();})),_0x2f6e42[_0x12b75a(0x122)](this['_commandService'][_0x12b75a(0x17c)](_0x252a19=>{var _0x2546ad=_0x12b75a,_0x92f89d;if(_0x252a19[_0x2546ad(0x154)]!==_0x47fa0b['OPERATION']||!this[_0x2546ad(0x152)][_0x2546ad(0x101)](_0x252a19['id']))return;const {id:_0x5e8116}=_0x252a19;let _0x11981d;_0x4bb14b[_0x2546ad(0x151)](_0x5e8116)?_0x11981d=_0x4bb14b[_0x2546ad(0x178)](_0x5e8116):(_0x11981d=new _0x35c93d(),_0x4bb14b[_0x2546ad(0x10a)](_0x5e8116,_0x11981d),_0x11981d[_0x2546ad(0x174)](_0x50f4b3((_0x92f89d=this[_0x2546ad(0x144)]['getConfig'](Pe))!=null?_0x92f89d:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x7aec52=>{var _0x22f697=_0x2546ad;this[_0x22f697(0x123)][_0x22f697(0x17e)]({'eventID':_0x3698f7[_0x22f697(0xf8)],'data':{'unitID':this['_unitID'],'operations':{[_0x7aec52['id']]:{'id':_0x7aec52['id'],'params':JSON[_0x22f697(0xe1)](_0x7aec52[_0x22f697(0x10c)])}}}},this[_0x22f697(0x103)]);})),_0x11981d[_0x2546ad(0x15d)](_0x252a19);})),this[_0x12b75a(0x152)][_0x12b75a(0x10b)](this['_unitID'])['forEach'](_0x5a7090=>this[_0x12b75a(0x123)][_0x12b75a(0x17e)]({'eventID':_0x3698f7['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x12b75a(0x103)],'operations':{[_0x5a7090['id']]:{'id':_0x5a7090['id'],'params':JSON['stringify'](_0x5a7090[_0x12b75a(0x10c)])}}}},this[_0x12b75a(0x103)]));}[_0x1937ef(0xfb)](){var _0xe88f8a=_0x1937ef,_0x4a3ad4;this['_status$'][_0xe88f8a(0x15d)](_0xe88f8a(0x120)),(_0x4a3ad4=this[_0xe88f8a(0xef)])==null||_0x4a3ad4[_0xe88f8a(0x145)](),this[_0xe88f8a(0xef)]=null;}['_startFollowing'](){var _0x5e1a9f=_0x1937ef,_0x17d784;(_0x17d784=this[_0x5e1a9f(0xef)])==null||_0x17d784['dispose'](),this[_0x5e1a9f(0xec)][_0x5e1a9f(0x15d)](_0x5e1a9f(0x16d));}['_beIdle'](){var _0x1827d8=_0x1937ef,_0x2b7088;this[_0x1827d8(0xec)]['next'](_0x1827d8(0x120)),(_0x2b7088=this['_commandDisposable'])==null||_0x2b7088['dispose'](),this[_0x1827d8(0xef)]=null;}['_stopFollowing'](){var _0x518bf1=_0x1937ef,_0x5e7d68;this[_0x518bf1(0xec)][_0x518bf1(0x15d)](_0x518bf1(0x13c)),(_0x5e7d68=this['_commandDisposable'])==null||_0x5e7d68[_0x518bf1(0x145)]();}['_handleOperation'](_0x3deec3){var _0x27a25c=_0x1937ef;if(['presenting',_0x27a25c(0x13c),_0x27a25c(0xf2)][_0x27a25c(0x18b)](this[_0x27a25c(0x11f)])||!_0x3deec3[_0x27a25c(0x166)][_0x27a25c(0xf0)]||_0x3deec3['data'][_0x27a25c(0xf0)]===this[_0x27a25c(0x123)][_0x27a25c(0x186)]())return;this[_0x27a25c(0x11f)]===_0x27a25c(0x120)&&this[_0x27a25c(0x155)]();const _0x2e6698=_0x3deec3[_0x27a25c(0x166)][_0x27a25c(0x113)];Object[_0x27a25c(0x15a)](_0x2e6698)[_0x27a25c(0x182)](_0x3eed35=>{var _0x496900=_0x27a25c;this[_0x496900(0x13f)]['executeCommand'](_0x3eed35['id'],_0x3eed35['params']?JSON['parse'](_0x3eed35[_0x496900(0x10c)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x3ad1b5=_0x1937ef,_0x2f56a8;this[_0x3ad1b5(0xec)][_0x3ad1b5(0x15d)](_0x3ad1b5(0xf2)),(_0x2f56a8=this[_0x3ad1b5(0xef)])==null||_0x2f56a8[_0x3ad1b5(0x145)]();}[_0x1937ef(0x121)](){var _0x2f053f=_0x1937ef;this['_status$'][_0x2f053f(0x15d)](_0x2f053f(0x120)),this[_0x2f053f(0x156)]();}};w=Z([f(0x2,_0x268cc5),f(0x3,_0x30f351(L)),f(0x4,_0x519049)],w);function Te(){var _0x1a057f=_0x1937ef;const _0x70b5fc=_0x105a7f(I),_0x49abab=_0x105a7f(_0x4bbec0),_0x29bbaf=_0x56d616(()=>_0x49abab['getCurrentTypeOfUnit$'](_0x389694[_0x1a057f(0xee)]),void 0x0,!0x1,[]),[_0x51b1ec,_0x202e85]=_0x4ec9cf(null),[_0x37cf1d,_0x41754f]=_0x4ec9cf(h[_0x1a057f(0x157)]),_0x593a8e=_0x412035(null);return _0x127a28(()=>(_0x29bbaf&&_0x70b5fc[_0x1a057f(0x16c)](_0x29bbaf['getUnitId']())['then'](_0x1fab39=>{var _0x485c0a=_0x1a057f;_0x202e85(_0x1fab39),_0x593a8e[_0x485c0a(0x161)]=_0x1fab39[_0x485c0a(0x16b)][_0x485c0a(0x11c)](_0x5ba079=>{_0x41754f(_0x5ba079);});}),()=>{var _0x5a5fb5=_0x1a057f,_0x39c103;(_0x39c103=_0x593a8e['current'])==null||_0x39c103[_0x5a5fb5(0x164)](),_0x593a8e['current']=null;}),[_0x29bbaf,_0x70b5fc]),_0x51b1ec?_0x2b8ee2(_0xfb031,{'align':_0x1a057f(0x102),'disabled':_0x37cf1d===h[_0x1a057f(0xfc)],'className':_0x1a057f(0x171),'overlay':_0x2b8ee2($e,{'status':_0x37cf1d,'coordinator':_0x51b1ec}),'children':_0x2b8ee2(_0x1a057f(0x185),{'className':_0x4c4971(_0x1a057f(0x153),{'univer-cursor-not-allowed':_0x37cf1d===h[_0x1a057f(0xfc)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x37cf1d!==h['OFFLINE']}),'type':_0x1a057f(0x185),'children':_0x2b8ee2(B,{'className':_0x1a057f(0x14b)})})}):null;}function $e(_0x2e8c93){var _0x144bcf=_0x1937ef;const {status:_0x2fb7eb,coordinator:_0x458f08}=_0x2e8c93;switch(_0x2fb7eb){case h[_0x144bcf(0x157)]:return _0x2b8ee2(Fe,{'coordinator':_0x458f08});case h['FOLLOWING']:return _0x2b8ee2(He,{'coordinator':_0x458f08});case h[_0x144bcf(0x180)]:return _0x2b8ee2(je,{'coordinator':_0x458f08});case h[_0x144bcf(0xfc)]:return _0x2b8ee2(Ve,{});case h[_0x144bcf(0x168)]:return _0x2b8ee2(Ue,{'coordinator':_0x458f08});default:return null;}}function Fe(_0x1807ed){var _0x1b506e=_0x1937ef;const {coordinator:_0xd4be6b}=_0x1807ed;return _0x592a31(_0x2a759f,{'children':[_0x2b8ee2(_0x1b506e(0x18a),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x1b506e(0xeb)}),_0x2b8ee2(_0x13e900,{'onClick':()=>_0xd4be6b[_0x1b506e(0x139)](),'children':_0x1b506e(0x125)})]});}function He(_0x34c38b){var _0x158fe5=_0x1937ef;const {coordinator:_0x35d10b}=_0x34c38b;return _0x592a31(_0x2a759f,{'children':[_0x2b8ee2('div',{'className':_0x158fe5(0x12d),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x2b8ee2(_0x13e900,{'onClick':()=>_0x35d10b[_0x158fe5(0x131)](),'children':_0x158fe5(0x13b)})]});}function je(_0x576acf){var _0x498fd2=_0x1937ef;const {coordinator:_0x1703e9}=_0x576acf;return _0x592a31(_0x2a759f,{'children':[_0x2b8ee2('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2b8ee2(_0x13e900,{'variant':_0x498fd2(0x14e),'onClick':()=>_0x1703e9[_0x498fd2(0x14d)](),'children':_0x498fd2(0xff)})]});}function Ue(_0x36a252){var _0x24f9c7=_0x1937ef;const {coordinator:_0x54dbed}=_0x36a252;return _0x592a31(_0x2a759f,{'children':[_0x2b8ee2(_0x24f9c7(0x18a),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x24f9c7(0x143)}),_0x2b8ee2(_0x13e900,{'variant':_0x24f9c7(0x158),'onClick':()=>_0x54dbed[_0x24f9c7(0xe6)](),'children':_0x24f9c7(0x11d)})]});}function _0x1576(_0x3bd1fb,_0x1aa911){var _0x2729a6=_0x2729();return _0x1576=function(_0x15765a,_0xc9d3f6){_0x15765a=_0x15765a-0xde;var _0x414ee6=_0x2729a6[_0x15765a];return _0x414ee6;},_0x1576(_0x3bd1fb,_0x1aa911);}function Ve(){var _0x32307a=_0x1937ef;return _0x2b8ee2(_0x2a759f,{'children':_0x32307a(0x117)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x4c616f,_0x18dc02,_0x4240f5,_0x282517)=>{for(var _0x22a4f9=_0x282517>0x1?void 0x0:_0x282517?Me(_0x18dc02,_0x4240f5):_0x18dc02,_0x4da4d2=_0x4c616f['length']-0x1,_0x4f12cd;_0x4da4d2>=0x0;_0x4da4d2--)(_0x4f12cd=_0x4c616f[_0x4da4d2])&&(_0x22a4f9=_0x4f12cd(_0x22a4f9)||_0x22a4f9);return _0x22a4f9;},$=(_0x37e13d,_0x4f3291)=>(_0x481e7e,_0x2540b9)=>_0x4f3291(_0x481e7e,_0x2540b9,_0x37e13d);let b=class extends _0x4e5696{constructor(_0x50a24c,_0x753939){var _0x322556=_0x1937ef;super(),this[_0x322556(0x15f)]=_0x50a24c,this[_0x322556(0x163)]=_0x753939,this[_0x322556(0x14c)]();}[_0x1937ef(0x14c)](){var _0x549109=_0x1937ef;this[_0x549109(0x12c)](this[_0x549109(0x163)]['registerComponent'](_0x3c9586['HEADER_MENU'],()=>_0x46516c(Te,this[_0x549109(0x15f)])));}};b=ke([$(0x0,_0x30f351(_0x5a81c2)),$(0x1,_0x54648c)],b);var Ge=Object['defineProperty'],We=Object[_0x1937ef(0x115)],Ye=(_0xa1e8f4,_0x2b64c5,_0x43d69e)=>_0x2b64c5 in _0xa1e8f4?Ge(_0xa1e8f4,_0x2b64c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43d69e}):_0xa1e8f4[_0x2b64c5]=_0x43d69e,Be=(_0x56c0c8,_0x38db95,_0x28265a,_0xac03d8)=>{var _0x22e1b3=_0x1937ef;for(var _0x2b5af3=_0xac03d8>0x1?void 0x0:_0xac03d8?We(_0x38db95,_0x28265a):_0x38db95,_0x5bce6a=_0x56c0c8[_0x22e1b3(0x100)]-0x1,_0x81a124;_0x5bce6a>=0x0;_0x5bce6a--)(_0x81a124=_0x56c0c8[_0x5bce6a])&&(_0x2b5af3=_0x81a124(_0x2b5af3)||_0x2b5af3);return _0x2b5af3;},F=(_0x5d6175,_0xbc5d91)=>(_0x5056ad,_0x59adb0)=>_0xbc5d91(_0x5056ad,_0x59adb0,_0x5d6175),J=(_0xeed6f,_0x319523,_0x4594eb)=>Ye(_0xeed6f,typeof _0x319523!=_0x1937ef(0xe5)?_0x319523+'':_0x319523,_0x4594eb);const Ze=_0x1937ef(0xe7);let O=class extends _0xa8483a{constructor(_0x571de8=T,_0x4846c5,_0x3d7654){var _0x46a759=_0x1937ef;super(),this[_0x46a759(0x108)]=_0x571de8,this[_0x46a759(0x15f)]=_0x4846c5,this[_0x46a759(0x144)]=_0x3d7654;const {..._0x2911cc}=_0x520eac({},T,this['_config']);this[_0x46a759(0x144)]['setConfig'](Oe,_0x2911cc);}[_0x1937ef(0xf7)](){var _0x7d6217=_0x1937ef;_0x47f38e(this[_0x7d6217(0x15f)],_0xf1e502([[L],[I],[m],[b]],this['_config']['override'])),_0x30d27b(this[_0x7d6217(0x15f)],[[m]]);}[_0x1937ef(0x148)](){var _0x4f8c9f=_0x1937ef;_0x30d27b(this[_0x4f8c9f(0x15f)],[[b]]);}};J(O,_0x1937ef(0x154),_0x389694[_0x1937ef(0xde)]),J(O,_0x1937ef(0x133),Ze),O=Be([_0x434d74(_0x310c99),F(0x1,_0x30f351(_0x5a81c2)),F(0x2,_0x268cc5)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x5baa88=_0x505a;(function(_0x1cbfcd,_0x4f2cf8){var _0x3c608a=_0x505a,_0x15779b=_0x1cbfcd();while(!![]){try{var _0x190775=parseInt(_0x3c608a(0x17a))/0x1*(-parseInt(_0x3c608a(0x155))/0x2)+-parseInt(_0x3c608a(0x15e))/0x3*(-parseInt(_0x3c608a(0x1b5))/0x4)+parseInt(_0x3c608a(0x145))/0x5*(-parseInt(_0x3c608a(0x1c8))/0x6)+parseInt(_0x3c608a(0x19a))/0x7*(parseInt(_0x3c608a(0x13b))/0x8)+parseInt(_0x3c608a(0x149))/0x9*(parseInt(_0x3c608a(0x19f))/0xa)+parseInt(_0x3c608a(0x154))/0xb+parseInt(_0x3c608a(0x1d1))/0xc;if(_0x190775===_0x4f2cf8)break;else _0x15779b['push'](_0x15779b['shift']());}catch(_0x2d5539){_0x15779b['push'](_0x15779b['shift']());}}}(_0x4c13,0xac1d3));var q=Object[_0x5baa88(0x1c1)],z=(_0x402861,_0x3093d2,_0x1aec80)=>_0x3093d2 in _0x402861?q(_0x402861,_0x3093d2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1aec80}):_0x402861[_0x3093d2]=_0x1aec80,d=(_0x2f1312,_0x3a9b55,_0x906fa1)=>z(_0x2f1312,typeof _0x3a9b55!='symbol'?_0x3a9b55+'':_0x3a9b55,_0x906fa1);import{CollaborationSessionService as _0x257046,SessionStatus as _0x1bb2ed,UniverCollaborationClientPlugin as _0x5156dc}from'@univerjs-pro/collaboration-client';import{Disposable as _0x51f6c2,toDisposable as _0x44bf91,Inject as _0x5ac674,IUniverInstanceService as _0x6a6c5,Injector as _0x2df4bc,IConfigService as _0x537e94,ICommandService as _0x2b092b,RxDisposable as _0x323762,UniverInstanceType as _0x476fde,DisposableCollection as _0x468b9a,CommandType as _0x365184,DependentOn as _0x3d9c8c,Plugin as _0x5cf9ba,merge as _0x2ec77f,registerDependencies as _0x5b4057,mergeOverrideWithDependencies as _0x54df49,touchDependencies as _0x1652d1}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3f8280,InsertSheetMutation as _0x44a377}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x435432,SetScrollOperation as _0x184813}from'@univerjs/sheets-ui';import{useDependency as _0x595637,useObservable as _0x5a552f,IUIPartsService as _0x163c83,BuiltInUIPart as _0x428af2,connectInjector as _0x3bec91}from'@univerjs/ui';import{jsx as _0x34107d,jsxs as _0x4b2209,Fragment as _0x231007}from'react/jsx-runtime';import{Dropdown as _0x527d10,clsx as _0xc8bcb9,Button as _0x45fc60}from'@univerjs/design';import{forwardRef as _0x4b90dd,useRef as _0x5de855,createElement as _0x26c226,useState as _0x4e7a17,useEffect as _0x359dd9}from'react';import{CollaborationEvent as _0x5d49dc,parseProtocolChangeset as _0x2e7d6b}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x5c7498,Subject as _0x289af7}from'rxjs';import{takeUntil as _0x34f785,throttleTime as _0x3a0090}from'rxjs/operators';const Oe=_0x5baa88(0x16b),T={};class L extends _0x51f6c2{constructor(){var _0x3da87b=_0x5baa88;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x3da87b(0x177),new Set());}[_0x5baa88(0x1c6)](_0x56821b){var _0x47f179=_0x5baa88;return this[_0x47f179(0x179)][_0x47f179(0x16c)](_0x56821b),_0x44bf91(()=>this[_0x47f179(0x179)][_0x47f179(0x127)](_0x56821b));}[_0x5baa88(0x14c)](_0x4a602c){var _0x57945d=_0x5baa88;return this[_0x57945d(0x177)][_0x57945d(0x16c)](_0x4a602c),_0x44bf91(()=>this[_0x57945d(0x177)][_0x57945d(0x127)](_0x4a602c));}[_0x5baa88(0x14b)](_0x2a717d){var _0x2d400f=_0x5baa88;return this['_sharedOperations'][_0x2d400f(0x135)](_0x2a717d);}['getInitialStates'](_0x30c65a){var _0xad2d7f=_0x5baa88;return Array[_0xad2d7f(0x126)](this[_0xad2d7f(0x177)])[_0xad2d7f(0x15f)](_0x172f1c=>_0x172f1c(_0x30c65a));}}var Ee=Object['getOwnPropertyDescriptor'],Ce=(_0x2e51e7,_0x5b89b1,_0x240a31,_0x51a232)=>{for(var _0x2f4d63=_0x51a232>0x1?void 0x0:_0x51a232?Ee(_0x5b89b1,_0x240a31):_0x5b89b1,_0x2c4989=_0x2e51e7['length']-0x1,_0x38cea1;_0x2c4989>=0x0;_0x2c4989--)(_0x38cea1=_0x2e51e7[_0x2c4989])&&(_0x2f4d63=_0x38cea1(_0x2f4d63)||_0x2f4d63);return _0x2f4d63;},Ne=(_0x339f02,_0x4c83fe)=>(_0x2fb06d,_0x131c2a)=>_0x4c83fe(_0x2fb06d,_0x131c2a,_0x339f02);let m=class extends _0x51f6c2{constructor(_0x574808){var _0x5782b9=_0x5baa88;super(),this[_0x5782b9(0x17d)]=_0x574808,this['_init']();}[_0x5baa88(0x18a)](){[_0x435432['id'],_0x184813['id'],_0x3f8280['id']]['forEach'](_0x3efee7=>{var _0x218143=_0x505a;this[_0x218143(0x1a4)](this[_0x218143(0x17d)][_0x218143(0x1c6)](_0x3efee7));});}};m=Ce([Ne(0x0,_0x5ac674(L))],m);var c=function(){var _0x3e044d=_0x5baa88;return c=Object['assign']||function(_0x4eb4b9){var _0x589879=_0x505a;for(var _0x569489,_0x5c2b84=0x1,_0x5c2f81=arguments['length'];_0x5c2b84<_0x5c2f81;_0x5c2b84++){_0x569489=arguments[_0x5c2b84];for(var _0x52fcd5 in _0x569489)Object['prototype'][_0x589879(0x1ad)][_0x589879(0x164)](_0x569489,_0x52fcd5)&&(_0x4eb4b9[_0x52fcd5]=_0x569489[_0x52fcd5]);}return _0x4eb4b9;},c[_0x3e044d(0x1cd)](this,arguments);},we=function(_0x4f8adc,_0x335f82){var _0x2b57be=_0x5baa88,_0x41863f={};for(var _0x4b3f2c in _0x4f8adc)Object[_0x2b57be(0x175)][_0x2b57be(0x1ad)][_0x2b57be(0x164)](_0x4f8adc,_0x4b3f2c)&&_0x335f82[_0x2b57be(0x1a1)](_0x4b3f2c)<0x0&&(_0x41863f[_0x4b3f2c]=_0x4f8adc[_0x4b3f2c]);if(_0x4f8adc!=null&&typeof Object[_0x2b57be(0x17b)]=='function'){for(var _0x578129=0x0,_0x4b3f2c=Object[_0x2b57be(0x17b)](_0x4f8adc);_0x578129<_0x4b3f2c[_0x2b57be(0x128)];_0x578129++)_0x335f82['indexOf'](_0x4b3f2c[_0x578129])<0x0&&Object[_0x2b57be(0x175)][_0x2b57be(0x1ce)][_0x2b57be(0x164)](_0x4f8adc,_0x4b3f2c[_0x578129])&&(_0x41863f[_0x4b3f2c[_0x578129]]=_0x4f8adc[_0x4b3f2c[_0x578129]]);}return _0x41863f;},W=_0x4b90dd(function(_0x46be1e,_0x210f0d){var _0xfe91dc=_0x5baa88,_0x4dc2b4=_0x46be1e[_0xfe91dc(0x152)],_0x3a5b95=_0x46be1e['id'],_0x365f3b=_0x46be1e[_0xfe91dc(0x141)],_0x4fd783=_0x46be1e[_0xfe91dc(0x167)],_0x4c102d=we(_0x46be1e,[_0xfe91dc(0x152),'id',_0xfe91dc(0x141),_0xfe91dc(0x167)]),_0x19e11d=_0xfe91dc(0x15a)['concat'](_0x3a5b95,'\x20')[_0xfe91dc(0x19b)](_0x365f3b||'')[_0xfe91dc(0x199)](),_0x39e899=_0x5de855('_'['concat'](Le()));return Y(_0x4dc2b4,''['concat'](_0x3a5b95),{'defIds':_0x4dc2b4[_0xfe91dc(0x1c5)],'idSuffix':_0x39e899[_0xfe91dc(0x1b9)]},c({'ref':_0x210f0d,'className':_0x19e11d},_0x4c102d),_0x4fd783);});function Y(_0x20f7c2,_0x37f770,_0x438dd3,_0x249e1e,_0x3b406e){var _0x1e5b05=_0x5baa88;return _0x26c226(_0x20f7c2[_0x1e5b05(0x156)],c(c({'key':_0x37f770},De(_0x20f7c2,_0x438dd3,_0x3b406e)),_0x249e1e),(xe(_0x20f7c2,_0x438dd3)[_0x1e5b05(0x19e)]||[])[_0x1e5b05(0x15f)](function(_0x30b380,_0xb42dee){var _0x26ddb7=_0x1e5b05;return Y(_0x30b380,''[_0x26ddb7(0x19b)](_0x37f770,'-')[_0x26ddb7(0x19b)](_0x20f7c2['tag'],'-')[_0x26ddb7(0x19b)](_0xb42dee),_0x438dd3,void 0x0,_0x3b406e);}));}function De(_0x249e48,_0x18cb50,_0x297482){var _0x3dcf63=_0x5baa88,_0x448c3a=c({},_0x249e48[_0x3dcf63(0x181)]);_0x297482!=null&&_0x297482['colorChannel1']&&_0x448c3a[_0x3dcf63(0x13e)]===_0x3dcf63(0x147)&&(_0x448c3a[_0x3dcf63(0x13e)]=_0x297482[_0x3dcf63(0x147)]),_0x249e48[_0x3dcf63(0x156)]===_0x3dcf63(0x1bb)&&_0x448c3a['id']&&(_0x448c3a['id']=_0x448c3a['id']+_0x18cb50[_0x3dcf63(0x1b0)]),Object[_0x3dcf63(0x16e)](_0x448c3a)[_0x3dcf63(0x150)](function(_0x2a9175){var _0x221662=_0x3dcf63,_0x8e4b43=_0x2a9175[0x0],_0x21ef0a=_0x2a9175[0x1];_0x8e4b43==='mask'&&typeof _0x21ef0a=='string'&&(_0x448c3a[_0x8e4b43]=_0x21ef0a[_0x221662(0x130)](/url\(#(.*)\)/,_0x221662(0x1d2)[_0x221662(0x19b)](_0x18cb50[_0x221662(0x1b0)],')')));});var _0x39f4e1=_0x18cb50[_0x3dcf63(0x1c5)];return!_0x39f4e1||_0x39f4e1[_0x3dcf63(0x128)]===0x0||(_0x249e48['tag']===_0x3dcf63(0x1d3)&&_0x448c3a[_0x3dcf63(0x1a8)]&&(_0x448c3a[_0x3dcf63(0x1a8)]=_0x448c3a[_0x3dcf63(0x1a8)]+_0x18cb50[_0x3dcf63(0x1b0)]),Object[_0x3dcf63(0x16e)](_0x448c3a)[_0x3dcf63(0x150)](function(_0x50e5e5){var _0x4bc426=_0x3dcf63,_0x234075=_0x50e5e5[0x0],_0xd8b35b=_0x50e5e5[0x1];typeof _0xd8b35b==_0x4bc426(0x16f)&&(_0x448c3a[_0x234075]=_0xd8b35b[_0x4bc426(0x130)](/url\(#(.*)\)/,_0x4bc426(0x1d2)[_0x4bc426(0x19b)](_0x18cb50['idSuffix'],')')));})),_0x448c3a;}function xe(_0x474119,_0x5eb69c){var _0x597061=_0x5baa88,_0x1b30c4,_0x248534=_0x5eb69c[_0x597061(0x1c5)];return!_0x248534||_0x248534['length']===0x0?_0x474119:_0x474119[_0x597061(0x156)]==='defs'&&(!((_0x1b30c4=_0x474119[_0x597061(0x19e)])===null||_0x1b30c4===void 0x0)&&_0x1b30c4[_0x597061(0x128)])?c(c({},_0x474119),{'children':_0x474119['children']['map'](function(_0x997044){var _0x5d8ebe=_0x597061;return typeof _0x997044[_0x5d8ebe(0x181)]['id']==_0x5d8ebe(0x16f)&&_0x248534&&_0x248534['indexOf'](_0x997044[_0x5d8ebe(0x181)]['id'])>-0x1?c(c({},_0x997044),{'attrs':c(c({},_0x997044[_0x5d8ebe(0x181)]),{'id':_0x997044[_0x5d8ebe(0x181)]['id']+_0x5eb69c['idSuffix']})}):_0x997044;})}):_0x474119;}function Le(){var _0x535041=_0x5baa88;return Math['random']()[_0x535041(0x12e)](0x24)['substring'](0x2,0x8);}W[_0x5baa88(0x14e)]=_0x5baa88(0x12f);var ye={'tag':'svg','attrs':{'fill':_0x5baa88(0x136),'viewBox':'0\x200\x2016\x2016','width':_0x5baa88(0x1b2),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':_0x5baa88(0x139),'attrs':{'fill':_0x5baa88(0x146),'d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':'evenodd','clipRule':_0x5baa88(0x1c4)}}]},B=_0x4b90dd(function(_0x3a6588,_0x1ba96f){var _0x5a43d7=_0x5baa88;return _0x26c226(W,Object[_0x5a43d7(0x196)]({},_0x3a6588,{'id':_0x5a43d7(0x193),'ref':_0x1ba96f,'icon':ye}));});function _0x4c13(){var _0x123f04=['defineProperty','offline','includes','evenodd','defIds','registerSharedOperation','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','174XFAHNZ','_status','dispose','dispose$','Stop\x20following','apply','propertyIsEnumerable','_collabSessionService','Start\x20following','14547972IpWMhn','url(#$1','use','from','delete','length','LIVESHARE_TERMINATE','following','HEADER_MENU','default','override','toString','UniverIcon','replace','_commandDisposable','_handleNewHost','params','_handleNewChangeSets','has','none','_startFollowing','onStarting','path','stringify','859048ycdzzv','LIVESHARE_OPERATION','next','fill','onRendered','getCurrentTypeOfUnit$','className','unitId','parse','pipe','70010DRGuPc','currentColor','colorChannel1','ONLINE','1754514ezXGLz','UNIVER_SHEET','shouldShareOperation','registerInitialStateReporter','idle','displayName','UNIVER_UNKNOWN','forEach','find','icon','LIVESHARE_NEW_HOST','398596kdXgAU','2pPYZAs','tag','_fetchOperations','reverse','div','univerjs-icon\x20univerjs-icon-','univer-w-full\x20univer-mb-3\x20univer-text-sm','_configService','_collabSession','33hZKWlb','map','startFollowing','data','_status$','_handleOffline','call','stopPresenting','type','extend','tryStartPresenting','set','registerComponent','live-share.config','add','getLiveShareCoordinator','entries','string','_presenter','getInitialStates','operations','_startLiveShareCoordinator','mutations','prototype','_commandService','_reporters','presenter','_sharedOperations','1250551FIRORl','getOwnPropertySymbols','subscribe','_liveShareService','You\x27are\x20offline.','_beIdle','getUnitId','attrs','Stop\x20presenting','_handleOnline','setConfig','sessionStatus$','You\x27re\x20following\x20the\x20presenter','values','UNIVER_LIVE_SHARE_PLUGIN','_uiPartsService','_init','not-following','getTypeOfUnitDisposed$','status$','send','symbol','end','OFFLINE','clear','live-share-single','_startPresenting','_univerInstanceService','assign','executeCommand','You\x27re\x20not\x20following\x20the\x20presenter','trim','28ZnIyXQ','concat','_config','_injector','children','30oIbuHu','stopFollowing','indexOf','get','asObservable','disposeWithMe','getValue','NEW_CHANGESETS','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','xlink:href','_mountLiveShare','getMemberID','_stopFollowing','OPERATION','hasOwnProperty','_entities','unsubscribe','idSuffix','PRESENTING','1em','LIVESHARE_REQUEST_HOST','_stopPresenting','35876XviyCo','_unitID','presenting','getTypeOfUnitAdded$','current','text','mask','getOwnPropertyDescriptor','_handleOperation','init','NOT_FOLLOWING','IDLE'];_0x4c13=function(){return _0x123f04;};return _0x4c13();}B[_0x5baa88(0x14e)]='LiveShareSingle';var Re=Object[_0x5baa88(0x1bc)],Z=(_0x2bef35,_0x1f49d2,_0x1c1f81,_0x5808ae)=>{var _0x41e730=_0x5baa88;for(var _0x2d329b=_0x5808ae>0x1?void 0x0:_0x5808ae?Re(_0x1f49d2,_0x1c1f81):_0x1f49d2,_0x493e90=_0x2bef35[_0x41e730(0x128)]-0x1,_0x3c0ece;_0x493e90>=0x0;_0x493e90--)(_0x3c0ece=_0x2bef35[_0x493e90])&&(_0x2d329b=_0x3c0ece(_0x2d329b)||_0x2d329b);return _0x2d329b;},f=(_0x5738ae,_0x549f41)=>(_0x4982d1,_0x4ca765)=>_0x549f41(_0x4982d1,_0x4ca765,_0x5738ae);let I=class extends _0x323762{constructor(_0x31dfd4,_0x19be20,_0x30f0ea){var _0x38d48a=_0x5baa88;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x31dfd4,this[_0x38d48a(0x19d)]=_0x19be20,this[_0x38d48a(0x1cf)]=_0x30f0ea,this[_0x38d48a(0x18a)]());}async[_0x5baa88(0x16d)](_0x1fcb74){var _0x2caba6=_0x5baa88;return this[_0x2caba6(0x1ae)][_0x2caba6(0x135)](_0x1fcb74)||await this[_0x2caba6(0x173)](_0x1fcb74),this[_0x2caba6(0x1ae)][_0x2caba6(0x1a2)](_0x1fcb74);}[_0x5baa88(0x18a)](){var _0x42a5d4=_0x5baa88;this['_univerInstanceService'][_0x42a5d4(0x1b8)](_0x476fde[_0x42a5d4(0x14a)])[_0x42a5d4(0x144)](_0x34f785(this['dispose$']))['subscribe'](async _0x12c069=>{var _0xbb092=_0x42a5d4;const _0x21c581=_0x12c069[_0xbb092(0x180)]();this[_0xbb092(0x1ae)][_0xbb092(0x135)](_0x21c581)||this[_0xbb092(0x173)](_0x21c581);}),this[_0x42a5d4(0x195)][_0x42a5d4(0x18c)](_0x476fde[_0x42a5d4(0x14a)])[_0x42a5d4(0x144)](_0x34f785(this[_0x42a5d4(0x1cb)]))[_0x42a5d4(0x17c)](_0x308ce8=>{var _0x1ba3a1=_0x42a5d4;const _0x3f486b=_0x308ce8['getUnitId'](),_0x522af1=this['_entities'][_0x1ba3a1(0x1a2)](_0x3f486b);_0x522af1==null||_0x522af1[_0x1ba3a1(0x1ca)]();});}async[_0x5baa88(0x173)](_0x14ce46){var _0x202198=_0x5baa88;const _0x5bf929=await this[_0x202198(0x1cf)]['requireSession'](_0x14ce46),_0x5e7f08=this[_0x202198(0x19d)]['createInstance'](w,_0x14ce46,_0x5bf929);return _0x5e7f08[_0x202198(0x1be)](),this[_0x202198(0x1ae)][_0x202198(0x169)](_0x14ce46,_0x5e7f08),_0x5e7f08;}};function _0x505a(_0x7f7598,_0xacaeb4){var _0x4c13b7=_0x4c13();return _0x505a=function(_0x505a95,_0x51b335){_0x505a95=_0x505a95-0x126;var _0xb03eb5=_0x4c13b7[_0x505a95];return _0xb03eb5;},_0x505a(_0x7f7598,_0xacaeb4);}I=Z([f(0x0,_0x6a6c5),f(0x1,_0x5ac674(_0x2df4bc)),f(0x2,_0x5ac674(_0x257046))],I);var h=(_0x292296=>(_0x292296[_0x5baa88(0x191)]=_0x5baa88(0x1c2),_0x292296['IDLE']=_0x5baa88(0x14d),_0x292296['FOLLOWING']=_0x5baa88(0x12a),_0x292296[_0x5baa88(0x1bf)]=_0x5baa88(0x18b),_0x292296['PRESENTING']=_0x5baa88(0x1b7),_0x292296))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let w=class extends _0x323762{constructor(_0x59f8b0,_0xc72dac,_0x30ade8,_0x49fb0b,_0x1087dd){var _0x48319e=_0x5baa88;super(),d(this,'_status$',new _0x5c7498('idle')),d(this,_0x48319e(0x18d),this[_0x48319e(0x162)][_0x48319e(0x1a3)]()),d(this,_0x48319e(0x18a),!0x1),d(this,_0x48319e(0x131),null),d(this,_0x48319e(0x170),null),(this[_0x48319e(0x1b6)]=_0x59f8b0,this[_0x48319e(0x15d)]=_0xc72dac,this[_0x48319e(0x15c)]=_0x30ade8,this[_0x48319e(0x17d)]=_0x49fb0b,this[_0x48319e(0x176)]=_0x1087dd);}get['_status'](){var _0x5e91b4=_0x5baa88;return this['_status$'][_0x5e91b4(0x1a5)]();}[_0x5baa88(0x1ca)](){var _0xa51d65=_0x5baa88,_0x2b9137;(_0x2b9137=this[_0xa51d65(0x131)])==null||_0x2b9137[_0xa51d65(0x1ca)](),this[_0xa51d65(0x162)][_0xa51d65(0x13d)]('idle'),this['_status$']['complete']();}[_0x5baa88(0x1be)](){var _0x44dd26=_0x5baa88;this[_0x44dd26(0x18a)]||(this[_0x44dd26(0x18a)]=!0x0,this[_0x44dd26(0x15d)][_0x44dd26(0x185)][_0x44dd26(0x144)](_0x34f785(this[_0x44dd26(0x1cb)]))[_0x44dd26(0x17c)](_0x30fb76=>{var _0x1e76be=_0x44dd26;switch(_0x30fb76){case _0x1bb2ed[_0x1e76be(0x191)]:this['_handleOffline']();break;case _0x1bb2ed[_0x1e76be(0x148)]:this[_0x1e76be(0x183)]();break;}}),this[_0x44dd26(0x15d)]['event$'][_0x44dd26(0x144)](_0x34f785(this[_0x44dd26(0x1cb)]))['subscribe'](_0x3c06b3=>{var _0x3c8308=_0x44dd26;const {eventID:_0x32f977}=_0x3c06b3;switch(_0x32f977){case _0x5d49dc[_0x3c8308(0x153)]:this[_0x3c8308(0x132)](_0x3c06b3);break;case _0x5d49dc[_0x3c8308(0x13c)]:this[_0x3c8308(0x1bd)](_0x3c06b3);break;case _0x5d49dc[_0x3c8308(0x129)]:this['_handleTerminate']();break;case _0x5d49dc[_0x3c8308(0x1a6)]:this[_0x3c8308(0x134)](_0x3c06b3);break;}}));}[_0x5baa88(0x168)](){var _0x5b5fec=_0x5baa88;this[_0x5b5fec(0x15d)][_0x5b5fec(0x18e)]({'eventID':_0x5d49dc[_0x5b5fec(0x1b3)],'data':{'unitID':this[_0x5b5fec(0x1b6)],'userID':this[_0x5b5fec(0x15d)][_0x5b5fec(0x1aa)]()}},this[_0x5b5fec(0x1b6)]);}['stopPresenting'](){var _0x2e7b70=_0x5baa88;this[_0x2e7b70(0x1c9)]===_0x2e7b70(0x1b7)&&(this[_0x2e7b70(0x162)][_0x2e7b70(0x13d)](_0x2e7b70(0x14d)),this['_collabSession'][_0x2e7b70(0x18e)]({'eventID':_0x5d49dc[_0x2e7b70(0x129)],'data':{'unitID':this[_0x2e7b70(0x1b6)]}},this['_unitID']));}[_0x5baa88(0x160)](){var _0x3da0ef=_0x5baa88;this[_0x3da0ef(0x1c9)]===_0x3da0ef(0x18b)&&(this[_0x3da0ef(0x162)]['next']('following'),this[_0x3da0ef(0x137)]());}[_0x5baa88(0x1a0)](){var _0x69ba91=_0x5baa88;this['_status']===_0x69ba91(0x12a)&&this[_0x69ba91(0x1ab)]();}[_0x5baa88(0x132)](_0x2fa867){var _0x28ca27=_0x5baa88;const {presenter:_0x3f4eff}=_0x2fa867['data'],_0x3f191c=this[_0x28ca27(0x15d)][_0x28ca27(0x1aa)]();this[_0x28ca27(0x170)]=_0x3f4eff,_0x3f4eff===_0x3f191c?(this[_0x28ca27(0x1ab)](),this[_0x28ca27(0x194)]()):this[_0x28ca27(0x1c9)]!=='not-following'&&(this[_0x28ca27(0x1b4)](),this[_0x28ca27(0x137)]());}['_fetchOperations'](){var _0x2046e9=_0x5baa88;const _0x5a4608={'eventID':_0x5d49dc['LIVESHARE_FETCH_OPERATIONS']};this[_0x2046e9(0x15d)][_0x2046e9(0x18e)](_0x5a4608,this[_0x2046e9(0x1b6)]);}['_handleTerminate'](){var _0x2cf420=_0x5baa88;this['_presenter']=null,this[_0x2cf420(0x1c9)]!=='presenting'&&this[_0x2cf420(0x17f)]();}[_0x5baa88(0x134)](_0x54bcac){var _0x41e946=_0x5baa88;if(this[_0x41e946(0x1c9)]===_0x41e946(0x12a)&&this['_presenter']===_0x54bcac[_0x41e946(0x161)]['memberID']){const _0x6fc8a3=_0x2e7d6b(_0x54bcac[_0x41e946(0x161)])[_0x41e946(0x174)][_0x41e946(0x158)]()[_0x41e946(0x151)](_0x1d502e=>_0x1d502e['id']===_0x44a377['id']);if(_0x6fc8a3){const _0x550ddb=_0x6fc8a3[_0x41e946(0x133)][_0x41e946(0x142)],_0x68a95c=_0x6fc8a3[_0x41e946(0x133)]['sheet']['id'];setTimeout(()=>{var _0xacd93e=_0x41e946;this[_0xacd93e(0x176)][_0xacd93e(0x197)](_0x3f8280['id'],{'unitId':_0x550ddb,'subUnitId':_0x68a95c},{'fromCollab':!0x0});});}}}[_0x5baa88(0x194)](){var _0x1cf1e3=_0x5baa88;this[_0x1cf1e3(0x162)][_0x1cf1e3(0x13d)](_0x1cf1e3(0x1b7));const _0x1acd0b=new Map(),_0x204fbd=this['_commandDisposable']=new _0x468b9a();_0x204fbd[_0x1cf1e3(0x16c)](_0x44bf91(()=>{var _0x24782b=_0x1cf1e3;_0x1acd0b['forEach'](_0x1b4b6c=>_0x1b4b6c['complete']()),_0x1acd0b[_0x24782b(0x192)]();})),_0x204fbd[_0x1cf1e3(0x16c)](this[_0x1cf1e3(0x176)]['onCommandExecuted'](_0x48aeb5=>{var _0x569b52=_0x1cf1e3,_0x340c7e;if(_0x48aeb5[_0x569b52(0x166)]!==_0x365184[_0x569b52(0x1ac)]||!this[_0x569b52(0x17d)][_0x569b52(0x14b)](_0x48aeb5['id']))return;const {id:_0x3d7023}=_0x48aeb5;let _0x2852b7;_0x1acd0b[_0x569b52(0x135)](_0x3d7023)?_0x2852b7=_0x1acd0b[_0x569b52(0x1a2)](_0x3d7023):(_0x2852b7=new _0x289af7(),_0x1acd0b[_0x569b52(0x169)](_0x3d7023,_0x2852b7),_0x2852b7['pipe'](_0x3a0090((_0x340c7e=this[_0x569b52(0x15c)]['getConfig'](Pe))!=null?_0x340c7e:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x569b52(0x17c)](_0xf92ee3=>{var _0x4e79b7=_0x569b52;this['_collabSession'][_0x4e79b7(0x18e)]({'eventID':_0x5d49dc['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4e79b7(0x1b6)],'operations':{[_0xf92ee3['id']]:{'id':_0xf92ee3['id'],'params':JSON[_0x4e79b7(0x13a)](_0xf92ee3['params'])}}}},this['_unitID']);})),_0x2852b7[_0x569b52(0x13d)](_0x48aeb5);})),this[_0x1cf1e3(0x17d)][_0x1cf1e3(0x171)](this[_0x1cf1e3(0x1b6)])[_0x1cf1e3(0x150)](_0x27ee98=>this[_0x1cf1e3(0x15d)]['send']({'eventID':_0x5d49dc[_0x1cf1e3(0x13c)],'data':{'unitID':this['_unitID'],'operations':{[_0x27ee98['id']]:{'id':_0x27ee98['id'],'params':JSON['stringify'](_0x27ee98[_0x1cf1e3(0x133)])}}}},this[_0x1cf1e3(0x1b6)]));}[_0x5baa88(0x1b4)](){var _0x3bb04a=_0x5baa88,_0x36d752;this[_0x3bb04a(0x162)][_0x3bb04a(0x13d)](_0x3bb04a(0x14d)),(_0x36d752=this[_0x3bb04a(0x131)])==null||_0x36d752[_0x3bb04a(0x1ca)](),this[_0x3bb04a(0x131)]=null;}[_0x5baa88(0x137)](){var _0x51801a=_0x5baa88,_0x3b6472;(_0x3b6472=this[_0x51801a(0x131)])==null||_0x3b6472[_0x51801a(0x1ca)](),this['_status$'][_0x51801a(0x13d)](_0x51801a(0x12a));}[_0x5baa88(0x17f)](){var _0x556ec2=_0x5baa88,_0x31b160;this[_0x556ec2(0x162)]['next'](_0x556ec2(0x14d)),(_0x31b160=this[_0x556ec2(0x131)])==null||_0x31b160[_0x556ec2(0x1ca)](),this['_commandDisposable']=null;}[_0x5baa88(0x1ab)](){var _0x4394fb=_0x5baa88,_0x56a2b1;this[_0x4394fb(0x162)][_0x4394fb(0x13d)](_0x4394fb(0x18b)),(_0x56a2b1=this[_0x4394fb(0x131)])==null||_0x56a2b1[_0x4394fb(0x1ca)]();}['_handleOperation'](_0x196027){var _0x4e8fe7=_0x5baa88;if(['presenting',_0x4e8fe7(0x18b),_0x4e8fe7(0x1c2)][_0x4e8fe7(0x1c3)](this['_status'])||!_0x196027[_0x4e8fe7(0x161)][_0x4e8fe7(0x178)]||_0x196027[_0x4e8fe7(0x161)][_0x4e8fe7(0x178)]===this[_0x4e8fe7(0x15d)][_0x4e8fe7(0x1aa)]())return;this[_0x4e8fe7(0x1c9)]===_0x4e8fe7(0x14d)&&this[_0x4e8fe7(0x137)]();const _0x10ee94=_0x196027[_0x4e8fe7(0x161)][_0x4e8fe7(0x172)];Object[_0x4e8fe7(0x187)](_0x10ee94)[_0x4e8fe7(0x150)](_0x5b816a=>{var _0x3b0eb9=_0x4e8fe7;this[_0x3b0eb9(0x176)]['executeCommand'](_0x5b816a['id'],_0x5b816a[_0x3b0eb9(0x133)]?JSON[_0x3b0eb9(0x143)](_0x5b816a[_0x3b0eb9(0x133)]):null,{'fromCollab':!0x0});});}[_0x5baa88(0x163)](){var _0x53520d=_0x5baa88,_0x3e21dd;this[_0x53520d(0x162)][_0x53520d(0x13d)](_0x53520d(0x1c2)),(_0x3e21dd=this[_0x53520d(0x131)])==null||_0x3e21dd[_0x53520d(0x1ca)]();}[_0x5baa88(0x183)](){var _0x1cd500=_0x5baa88;this['_status$'][_0x1cd500(0x13d)](_0x1cd500(0x14d)),this[_0x1cd500(0x157)]();}};w=Z([f(0x2,_0x537e94),f(0x3,_0x5ac674(L)),f(0x4,_0x2b092b)],w);function Te(){var _0x2c8a51=_0x5baa88;const _0x6c538f=_0x595637(I),_0x3570a5=_0x595637(_0x6a6c5),_0x58b26c=_0x5a552f(()=>_0x3570a5[_0x2c8a51(0x140)](_0x476fde['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x273507,_0x43f526]=_0x4e7a17(null),[_0x44d3f8,_0x5d4fab]=_0x4e7a17(h[_0x2c8a51(0x1c0)]),_0x122a0f=_0x5de855(null);return _0x359dd9(()=>(_0x58b26c&&_0x6c538f[_0x2c8a51(0x16d)](_0x58b26c[_0x2c8a51(0x180)]())['then'](_0x403fad=>{var _0x10f347=_0x2c8a51;_0x43f526(_0x403fad),_0x122a0f[_0x10f347(0x1b9)]=_0x403fad['status$'][_0x10f347(0x17c)](_0x466b13=>{_0x5d4fab(_0x466b13);});}),()=>{var _0x4bf9de=_0x2c8a51,_0xa69a7;(_0xa69a7=_0x122a0f['current'])==null||_0xa69a7[_0x4bf9de(0x1af)](),_0x122a0f[_0x4bf9de(0x1b9)]=null;}),[_0x58b26c,_0x6c538f]),_0x273507?_0x34107d(_0x527d10,{'align':_0x2c8a51(0x190),'disabled':_0x44d3f8===h[_0x2c8a51(0x191)],'className':_0x2c8a51(0x1a7),'overlay':_0x34107d($e,{'status':_0x44d3f8,'coordinator':_0x273507}),'children':_0x34107d('button',{'className':_0xc8bcb9(_0x2c8a51(0x1c7),{'univer-cursor-not-allowed':_0x44d3f8===h[_0x2c8a51(0x191)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x44d3f8!==h[_0x2c8a51(0x191)]}),'type':'button','children':_0x34107d(B,{'className':'univer-size-4'})})}):null;}function $e(_0x5866e4){var _0x14a12e=_0x5baa88;const {status:_0x547095,coordinator:_0x2ae335}=_0x5866e4;switch(_0x547095){case h[_0x14a12e(0x1c0)]:return _0x34107d(Fe,{'coordinator':_0x2ae335});case h['FOLLOWING']:return _0x34107d(He,{'coordinator':_0x2ae335});case h[_0x14a12e(0x1bf)]:return _0x34107d(je,{'coordinator':_0x2ae335});case h[_0x14a12e(0x191)]:return _0x34107d(Ve,{});case h[_0x14a12e(0x1b1)]:return _0x34107d(Ue,{'coordinator':_0x2ae335});default:return null;}}function Fe(_0x50acf7){var _0x78b839=_0x5baa88;const {coordinator:_0x5b638d}=_0x50acf7;return _0x4b2209(_0x231007,{'children':[_0x34107d('div',{'className':_0x78b839(0x15b),'children':'Present\x20this\x20document'}),_0x34107d(_0x45fc60,{'onClick':()=>_0x5b638d[_0x78b839(0x168)](),'children':'Start'})]});}function He(_0x366060){var _0x15ca23=_0x5baa88;const {coordinator:_0x123231}=_0x366060;return _0x4b2209(_0x231007,{'children':[_0x34107d('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x15ca23(0x186)}),_0x34107d(_0x45fc60,{'onClick':()=>_0x123231['stopFollowing'](),'children':_0x15ca23(0x1cc)})]});}function je(_0x37af43){var _0x5ccfed=_0x5baa88;const {coordinator:_0x2dbcd5}=_0x37af43;return _0x4b2209(_0x231007,{'children':[_0x34107d('div',{'className':_0x5ccfed(0x15b),'children':_0x5ccfed(0x198)}),_0x34107d(_0x45fc60,{'variant':_0x5ccfed(0x1ba),'onClick':()=>_0x2dbcd5[_0x5ccfed(0x160)](),'children':_0x5ccfed(0x1d0)})]});}function Ue(_0x22f238){var _0x518e80=_0x5baa88;const {coordinator:_0x2abc90}=_0x22f238;return _0x4b2209(_0x231007,{'children':[_0x34107d(_0x518e80(0x159),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x34107d(_0x45fc60,{'variant':_0x518e80(0x12c),'onClick':()=>_0x2abc90[_0x518e80(0x165)](),'children':_0x518e80(0x182)})]});}function Ve(){var _0x57297f=_0x5baa88;return _0x34107d(_0x231007,{'children':_0x57297f(0x17e)});}var Me=Object[_0x5baa88(0x1bc)],ke=(_0x8faa5c,_0x189421,_0x4a59fb,_0x5bd7f2)=>{var _0x33af7f=_0x5baa88;for(var _0xde2407=_0x5bd7f2>0x1?void 0x0:_0x5bd7f2?Me(_0x189421,_0x4a59fb):_0x189421,_0x6d97db=_0x8faa5c[_0x33af7f(0x128)]-0x1,_0x21033f;_0x6d97db>=0x0;_0x6d97db--)(_0x21033f=_0x8faa5c[_0x6d97db])&&(_0xde2407=_0x21033f(_0xde2407)||_0xde2407);return _0xde2407;},$=(_0x41771d,_0x425f38)=>(_0x3d1b95,_0x20c16d)=>_0x425f38(_0x3d1b95,_0x20c16d,_0x41771d);let b=class extends _0x51f6c2{constructor(_0x2fe84d,_0xfab69e){var _0x29f728=_0x5baa88;super(),this[_0x29f728(0x19d)]=_0x2fe84d,this[_0x29f728(0x189)]=_0xfab69e,this[_0x29f728(0x1a9)]();}[_0x5baa88(0x1a9)](){var _0x10934e=_0x5baa88;this[_0x10934e(0x1a4)](this[_0x10934e(0x189)][_0x10934e(0x16a)](_0x428af2[_0x10934e(0x12b)],()=>_0x3bec91(Te,this[_0x10934e(0x19d)])));}};b=ke([$(0x0,_0x5ac674(_0x2df4bc)),$(0x1,_0x163c83)],b);var Ge=Object['defineProperty'],We=Object[_0x5baa88(0x1bc)],Ye=(_0x1d48e3,_0x22b056,_0x28c932)=>_0x22b056 in _0x1d48e3?Ge(_0x1d48e3,_0x22b056,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28c932}):_0x1d48e3[_0x22b056]=_0x28c932,Be=(_0x188662,_0x294e9a,_0x1de047,_0x5a03bd)=>{for(var _0x30d5b7=_0x5a03bd>0x1?void 0x0:_0x5a03bd?We(_0x294e9a,_0x1de047):_0x294e9a,_0x46501f=_0x188662['length']-0x1,_0x4611c0;_0x46501f>=0x0;_0x46501f--)(_0x4611c0=_0x188662[_0x46501f])&&(_0x30d5b7=_0x4611c0(_0x30d5b7)||_0x30d5b7);return _0x30d5b7;},F=(_0x11b59e,_0x8e5e11)=>(_0x5490fa,_0x2e8515)=>_0x8e5e11(_0x5490fa,_0x2e8515,_0x11b59e),J=(_0x36253a,_0x5c7ebb,_0x3045c5)=>Ye(_0x36253a,typeof _0x5c7ebb!=_0x5baa88(0x18f)?_0x5c7ebb+'':_0x5c7ebb,_0x3045c5);const Ze=_0x5baa88(0x188);let O=class extends _0x5cf9ba{constructor(_0x1ee9f6=T,_0x1c2514,_0x424dca){var _0x17bbb1=_0x5baa88;super(),this[_0x17bbb1(0x19c)]=_0x1ee9f6,this[_0x17bbb1(0x19d)]=_0x1c2514,this[_0x17bbb1(0x15c)]=_0x424dca;const {..._0x1c1531}=_0x2ec77f({},T,this['_config']);this[_0x17bbb1(0x15c)][_0x17bbb1(0x184)](Oe,_0x1c1531);}[_0x5baa88(0x138)](){var _0x3071eb=_0x5baa88;_0x5b4057(this[_0x3071eb(0x19d)],_0x54df49([[L],[I],[m],[b]],this[_0x3071eb(0x19c)][_0x3071eb(0x12d)])),_0x1652d1(this[_0x3071eb(0x19d)],[[m]]);}[_0x5baa88(0x13f)](){var _0x47197a=_0x5baa88;_0x1652d1(this[_0x47197a(0x19d)],[[b]]);}};J(O,'type',_0x476fde[_0x5baa88(0x14f)]),J(O,'pluginName',Ze),O=Be([_0x3d9c8c(_0x5156dc),F(0x1,_0x5ac674(_0x2df4bc)),F(0x2,_0x537e94)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x1937ef=_0x1576;(function(_0x173e22,_0x13f115){var _0x2e05a7=_0x1576,_0x580398=_0x173e22();while(!![]){try{var _0x3a5c00=parseInt(_0x2e05a7(0x124))/0x1*(-parseInt(_0x2e05a7(0x112))/0x2)+-parseInt(_0x2e05a7(0x10e))/0x3*(-parseInt(_0x2e05a7(0x15c))/0x4)+-parseInt(_0x2e05a7(0x14a))/0x5+parseInt(_0x2e05a7(0x13a))/0x6+-parseInt(_0x2e05a7(0x128))/0x7*(-parseInt(_0x2e05a7(0x141))/0x8)+parseInt(_0x2e05a7(0x184))/0x9*(-parseInt(_0x2e05a7(0x118))/0xa)+-parseInt(_0x2e05a7(0x189))/0xb;if(_0x3a5c00===_0x13f115)break;else _0x580398['push'](_0x580398['shift']());}catch(_0x2e8d69){_0x580398['push'](_0x580398['shift']());}}}(_0x2729,0xc3caa));var q=Object[_0x1937ef(0xdf)],z=(_0x51b8bd,_0x345540,_0x299412)=>_0x345540 in _0x51b8bd?q(_0x51b8bd,_0x345540,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x299412}):_0x51b8bd[_0x345540]=_0x299412,d=(_0x1fb40d,_0x2e115a,_0x230351)=>z(_0x1fb40d,typeof _0x2e115a!='symbol'?_0x2e115a+'':_0x2e115a,_0x230351);import{CollaborationSessionService as _0x2ba0ce,SessionStatus as _0x1c4986,UniverCollaborationClientPlugin as _0x310c99}from'@univerjs-pro/collaboration-client';import{Disposable as _0x4e5696,toDisposable as _0x3445ea,Inject as _0x30f351,IUniverInstanceService as _0x4bbec0,Injector as _0x5a81c2,IConfigService as _0x268cc5,ICommandService as _0x519049,RxDisposable as _0x404045,UniverInstanceType as _0x389694,DisposableCollection as _0x1eb65a,CommandType as _0x47fa0b,DependentOn as _0x434d74,Plugin as _0xa8483a,merge as _0x520eac,registerDependencies as _0x47f38e,mergeOverrideWithDependencies as _0xf1e502,touchDependencies as _0x30d27b}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x555a90,InsertSheetMutation as _0x585918}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x530f88,SetScrollOperation as _0x3e80bd}from'@univerjs/sheets-ui';import{useDependency as _0x105a7f,useObservable as _0x56d616,IUIPartsService as _0x54648c,BuiltInUIPart as _0x3c9586,connectInjector as _0x46516c}from'@univerjs/ui';import{jsx as _0x2b8ee2,jsxs as _0x592a31,Fragment as _0x2a759f}from'react/jsx-runtime';import{Dropdown as _0xfb031,clsx as _0x4c4971,Button as _0x13e900}from'@univerjs/design';import{forwardRef as _0x4eb534,useRef as _0x412035,createElement as _0x3edc2f,useState as _0x4ec9cf,useEffect as _0x127a28}from'react';import{CollaborationEvent as _0x3698f7,parseProtocolChangeset as _0x4bddcf}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x428c9f,Subject as _0x35c93d}from'rxjs';import{takeUntil as _0x27da68,throttleTime as _0x50f4b3}from'rxjs/operators';function _0x2729(){var _0x52a53d=['get','_univerInstanceService','displayName','NEW_CHANGESETS','onCommandExecuted','colorChannel1','send','idSuffix','NOT_FOLLOWING','apply','forEach','dispose$','415521yegSHx','button','getMemberID','presenting','requireSession','6651172MJInsR','div','includes','UNIVER_UNKNOWN','defineProperty','children','stringify','function','substring','prototype','symbol','stopPresenting','UNIVER_LIVE_SHARE_PLUGIN','concat','getValue','univerjs-icon\x20univerjs-icon-','Present\x20this\x20document','_status$','_handleNewChangeSets','UNIVER_SHEET','_commandDisposable','presenter','map','offline','_init','UniverIcon','LIVESHARE_TERMINATE','fill','onStarting','LIVESHARE_OPERATION','registerInitialStateReporter','_stopFollowing','_stopPresenting','OFFLINE','path','LIVESHARE_FETCH_OPERATIONS','Start\x20following','length','shouldShareOperation','end','_unitID','_reporters','url(#$1','sheet','mask','_config','_startLiveShareCoordinator','set','getInitialStates','params','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','3UcgVkm','_startPresenting','_sharedOperations','_collabSessionService','5682KaHOis','operations','currentColor','getOwnPropertyDescriptor','replace','You\x27are\x20offline.','320XOqCrV','getOwnPropertySymbols','1em','memberID','subscribe','Stop\x20presenting','LIVESHARE_NEW_HOST','_status','idle','_handleOnline','add','_collabSession','128xsjLnX','Start','none','extend','9709rIdvkQ','_entities','entries','className','disposeWithMe','univer-w-full\x20univer-mb-3\x20univer-text-sm','reverse','call','xlink:href','stopFollowing','_beIdle','pluginName','attrs','random','unitId','SAME_OPERATION_SHARE_INTERVAL','asObservable','tryStartPresenting','4811406agjwxt','Stop\x20following','not-following','delete','LIVESHARE_REQUEST_HOST','_commandService','_handleNewHost','5624weheXg','registerSharedOperation','You\x27re\x20presenting\x20the\x20document','_configService','dispose','indexOf','ONLINE','onRendered','executeCommand','525070RwnDiV','univer-size-4','_mountLiveShare','startFollowing','text','_presenter','use','has','_liveShareService','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','type','_startFollowing','_fetchOperations','IDLE','default','defs','values','hasOwnProperty','6302888STMlpd','next','defIds','_injector','string','current','getUnitId','_uiPartsService','unsubscribe','mutations','data','evenodd','PRESENTING','_handleTerminate','event$','status$','getLiveShareCoordinator','following','icon','_handleOffline','live-share-single','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','assign','svg','pipe','live-share.config','0\x200\x2016\x2016','tag'];_0x2729=function(){return _0x52a53d;};return _0x2729();}const Oe=_0x1937ef(0x175),T={};class L extends _0x4e5696{constructor(){var _0x50524c=_0x1937ef;super(...arguments),d(this,_0x50524c(0x110),new Set()),d(this,_0x50524c(0x104),new Set());}[_0x1937ef(0x142)](_0x951be9){var _0x541c26=_0x1937ef;return this[_0x541c26(0x110)]['add'](_0x951be9),_0x3445ea(()=>this[_0x541c26(0x110)][_0x541c26(0x13d)](_0x951be9));}[_0x1937ef(0xf9)](_0x65ab9){var _0x53d93f=_0x1937ef;return this[_0x53d93f(0x104)][_0x53d93f(0x122)](_0x65ab9),_0x3445ea(()=>this[_0x53d93f(0x104)]['delete'](_0x65ab9));}[_0x1937ef(0x101)](_0x467e72){var _0x5bd0d6=_0x1937ef;return this[_0x5bd0d6(0x110)][_0x5bd0d6(0x151)](_0x467e72);}['getInitialStates'](_0x1ce978){return Array['from'](this['_reporters'])['map'](_0x4bc242=>_0x4bc242(_0x1ce978));}}var Ee=Object[_0x1937ef(0x115)],Ce=(_0x1a1f5e,_0x179481,_0x27dafd,_0x3a5290)=>{for(var _0x32cd2f=_0x3a5290>0x1?void 0x0:_0x3a5290?Ee(_0x179481,_0x27dafd):_0x179481,_0x1f3cb8=_0x1a1f5e['length']-0x1,_0x4594a1;_0x1f3cb8>=0x0;_0x1f3cb8--)(_0x4594a1=_0x1a1f5e[_0x1f3cb8])&&(_0x32cd2f=_0x4594a1(_0x32cd2f)||_0x32cd2f);return _0x32cd2f;},Ne=(_0x48ea18,_0x3c6730)=>(_0x1dc0de,_0x586bb7)=>_0x3c6730(_0x1dc0de,_0x586bb7,_0x48ea18);let m=class extends _0x4e5696{constructor(_0x18f69d){var _0x35bbd7=_0x1937ef;super(),this[_0x35bbd7(0x152)]=_0x18f69d,this['_init']();}[_0x1937ef(0xf3)](){[_0x530f88['id'],_0x3e80bd['id'],_0x555a90['id']]['forEach'](_0x3f5484=>{var _0x368979=_0x1576;this[_0x368979(0x12c)](this[_0x368979(0x152)][_0x368979(0x142)](_0x3f5484));});}};m=Ce([Ne(0x0,_0x30f351(L))],m);var c=function(){var _0x110f8b=_0x1937ef;return c=Object[_0x110f8b(0x172)]||function(_0x209f02){var _0x45bea2=_0x110f8b;for(var _0x24a608,_0x3bc3bd=0x1,_0x1f6255=arguments['length'];_0x3bc3bd<_0x1f6255;_0x3bc3bd++){_0x24a608=arguments[_0x3bc3bd];for(var _0x65f2a3 in _0x24a608)Object[_0x45bea2(0xe4)][_0x45bea2(0x15b)][_0x45bea2(0x12f)](_0x24a608,_0x65f2a3)&&(_0x209f02[_0x65f2a3]=_0x24a608[_0x65f2a3]);}return _0x209f02;},c[_0x110f8b(0x181)](this,arguments);},we=function(_0x2e83c1,_0x1519f3){var _0x1b580e=_0x1937ef,_0xa53279={};for(var _0x11279b in _0x2e83c1)Object[_0x1b580e(0xe4)]['hasOwnProperty']['call'](_0x2e83c1,_0x11279b)&&_0x1519f3['indexOf'](_0x11279b)<0x0&&(_0xa53279[_0x11279b]=_0x2e83c1[_0x11279b]);if(_0x2e83c1!=null&&typeof Object['getOwnPropertySymbols']==_0x1b580e(0xe2)){for(var _0x33a8a7=0x0,_0x11279b=Object[_0x1b580e(0x119)](_0x2e83c1);_0x33a8a7<_0x11279b[_0x1b580e(0x100)];_0x33a8a7++)_0x1519f3[_0x1b580e(0x146)](_0x11279b[_0x33a8a7])<0x0&&Object[_0x1b580e(0xe4)]['propertyIsEnumerable'][_0x1b580e(0x12f)](_0x2e83c1,_0x11279b[_0x33a8a7])&&(_0xa53279[_0x11279b[_0x33a8a7]]=_0x2e83c1[_0x11279b[_0x33a8a7]]);}return _0xa53279;},W=_0x4eb534(function(_0x567881,_0x2a65ab){var _0x5e8f05=_0x1937ef,_0x2a4568=_0x567881[_0x5e8f05(0x16e)],_0xe115b0=_0x567881['id'],_0x3ac5e1=_0x567881['className'],_0x351914=_0x567881[_0x5e8f05(0x127)],_0x1c82de=we(_0x567881,[_0x5e8f05(0x16e),'id',_0x5e8f05(0x12b),_0x5e8f05(0x127)]),_0x517195=_0x5e8f05(0xea)[_0x5e8f05(0xe8)](_0xe115b0,'\x20')[_0x5e8f05(0xe8)](_0x3ac5e1||'')['trim'](),_0x887b02=_0x412035('_'[_0x5e8f05(0xe8)](Le()));return Y(_0x2a4568,''[_0x5e8f05(0xe8)](_0xe115b0),{'defIds':_0x2a4568['defIds'],'idSuffix':_0x887b02[_0x5e8f05(0x161)]},c({'ref':_0x2a65ab,'className':_0x517195},_0x1c82de),_0x351914);});function Y(_0x5777be,_0x276c79,_0x24613d,_0x42b273,_0x556e01){var _0x234991=_0x1937ef;return _0x3edc2f(_0x5777be[_0x234991(0x177)],c(c({'key':_0x276c79},De(_0x5777be,_0x24613d,_0x556e01)),_0x42b273),(xe(_0x5777be,_0x24613d)[_0x234991(0xe0)]||[])[_0x234991(0xf1)](function(_0x38cb4a,_0x42ff63){var _0x549104=_0x234991;return Y(_0x38cb4a,''[_0x549104(0xe8)](_0x276c79,'-')[_0x549104(0xe8)](_0x5777be['tag'],'-')[_0x549104(0xe8)](_0x42ff63),_0x24613d,void 0x0,_0x556e01);}));}function De(_0x2470e7,_0x264a6a,_0x30ce26){var _0x1b1c47=_0x1937ef,_0x5e3333=c({},_0x2470e7[_0x1b1c47(0x134)]);_0x30ce26!=null&&_0x30ce26[_0x1b1c47(0x17d)]&&_0x5e3333[_0x1b1c47(0xf6)]==='colorChannel1'&&(_0x5e3333['fill']=_0x30ce26['colorChannel1']),_0x2470e7[_0x1b1c47(0x177)]===_0x1b1c47(0x107)&&_0x5e3333['id']&&(_0x5e3333['id']=_0x5e3333['id']+_0x264a6a[_0x1b1c47(0x17f)]),Object[_0x1b1c47(0x12a)](_0x5e3333)['forEach'](function(_0x50caaa){var _0x40127a=_0x1b1c47,_0xfdcf5c=_0x50caaa[0x0],_0x254c94=_0x50caaa[0x1];_0xfdcf5c===_0x40127a(0x107)&&typeof _0x254c94=='string'&&(_0x5e3333[_0xfdcf5c]=_0x254c94[_0x40127a(0x116)](/url\(#(.*)\)/,_0x40127a(0x105)['concat'](_0x264a6a[_0x40127a(0x17f)],')')));});var _0x2aa8d8=_0x264a6a[_0x1b1c47(0x15e)];return!_0x2aa8d8||_0x2aa8d8[_0x1b1c47(0x100)]===0x0||(_0x2470e7[_0x1b1c47(0x177)]===_0x1b1c47(0x150)&&_0x5e3333[_0x1b1c47(0x130)]&&(_0x5e3333[_0x1b1c47(0x130)]=_0x5e3333['xlink:href']+_0x264a6a[_0x1b1c47(0x17f)]),Object[_0x1b1c47(0x12a)](_0x5e3333)[_0x1b1c47(0x182)](function(_0x2f1ffe){var _0x7d3e91=_0x1b1c47,_0x4c3565=_0x2f1ffe[0x0],_0x4cd0d1=_0x2f1ffe[0x1];typeof _0x4cd0d1=='string'&&(_0x5e3333[_0x4c3565]=_0x4cd0d1[_0x7d3e91(0x116)](/url\(#(.*)\)/,'url(#$1'[_0x7d3e91(0xe8)](_0x264a6a[_0x7d3e91(0x17f)],')')));})),_0x5e3333;}function xe(_0x206816,_0x683920){var _0x2adf0c=_0x1937ef,_0x448bc9,_0x4cb0fe=_0x683920[_0x2adf0c(0x15e)];return!_0x4cb0fe||_0x4cb0fe[_0x2adf0c(0x100)]===0x0?_0x206816:_0x206816[_0x2adf0c(0x177)]===_0x2adf0c(0x159)&&(!((_0x448bc9=_0x206816[_0x2adf0c(0xe0)])===null||_0x448bc9===void 0x0)&&_0x448bc9['length'])?c(c({},_0x206816),{'children':_0x206816[_0x2adf0c(0xe0)][_0x2adf0c(0xf1)](function(_0x49f89e){var _0x89bddd=_0x2adf0c;return typeof _0x49f89e[_0x89bddd(0x134)]['id']==_0x89bddd(0x160)&&_0x4cb0fe&&_0x4cb0fe['indexOf'](_0x49f89e[_0x89bddd(0x134)]['id'])>-0x1?c(c({},_0x49f89e),{'attrs':c(c({},_0x49f89e[_0x89bddd(0x134)]),{'id':_0x49f89e['attrs']['id']+_0x683920['idSuffix']})}):_0x49f89e;})}):_0x206816;}function Le(){var _0x15a6ed=_0x1937ef;return Math[_0x15a6ed(0x135)]()['toString'](0x24)[_0x15a6ed(0xe3)](0x2,0x8);}W[_0x1937ef(0x17a)]=_0x1937ef(0xf4);var ye={'tag':_0x1937ef(0x173),'attrs':{'fill':_0x1937ef(0x126),'viewBox':_0x1937ef(0x176),'width':_0x1937ef(0x11a),'height':_0x1937ef(0x11a)},'children':[{'tag':'path','attrs':{'fill':_0x1937ef(0x114),'d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':_0x1937ef(0xfd),'attrs':{'fill':_0x1937ef(0x114),'d':_0x1937ef(0x10d),'fillRule':_0x1937ef(0x167),'clipRule':_0x1937ef(0x167)}}]},B=_0x4eb534(function(_0x40f7ac,_0x33e63e){var _0x1c3091=_0x1937ef;return _0x3edc2f(W,Object[_0x1c3091(0x172)]({},_0x40f7ac,{'id':_0x1c3091(0x170),'ref':_0x33e63e,'icon':ye}));});B[_0x1937ef(0x17a)]='LiveShareSingle';var Re=Object[_0x1937ef(0x115)],Z=(_0x45040f,_0x163a26,_0x6ab64e,_0x1470f8)=>{var _0x16a682=_0x1937ef;for(var _0x54af03=_0x1470f8>0x1?void 0x0:_0x1470f8?Re(_0x163a26,_0x6ab64e):_0x163a26,_0x41721f=_0x45040f[_0x16a682(0x100)]-0x1,_0x576eda;_0x41721f>=0x0;_0x41721f--)(_0x576eda=_0x45040f[_0x41721f])&&(_0x54af03=_0x576eda(_0x54af03)||_0x54af03);return _0x54af03;},f=(_0x4fc4e8,_0x3a6869)=>(_0x35dc83,_0x14c249)=>_0x3a6869(_0x35dc83,_0x14c249,_0x4fc4e8);let I=class extends _0x404045{constructor(_0x38ebb1,_0x1f3604,_0x1e1bff){var _0x4eed97=_0x1937ef;super(),d(this,_0x4eed97(0x129),new Map()),(this[_0x4eed97(0x179)]=_0x38ebb1,this[_0x4eed97(0x15f)]=_0x1f3604,this['_collabSessionService']=_0x1e1bff,this['_init']());}async[_0x1937ef(0x16c)](_0x1b8e77){var _0x1e7a6f=_0x1937ef;return this[_0x1e7a6f(0x129)][_0x1e7a6f(0x151)](_0x1b8e77)||await this[_0x1e7a6f(0x109)](_0x1b8e77),this[_0x1e7a6f(0x129)][_0x1e7a6f(0x178)](_0x1b8e77);}[_0x1937ef(0xf3)](){var _0x1ad96c=_0x1937ef;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x389694[_0x1ad96c(0xee)])[_0x1ad96c(0x174)](_0x27da68(this[_0x1ad96c(0x183)]))[_0x1ad96c(0x11c)](async _0x372407=>{var _0x322b4d=_0x1ad96c;const _0x3178a3=_0x372407[_0x322b4d(0x162)]();this['_entities'][_0x322b4d(0x151)](_0x3178a3)||this[_0x322b4d(0x109)](_0x3178a3);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x389694[_0x1ad96c(0xee)])[_0x1ad96c(0x174)](_0x27da68(this[_0x1ad96c(0x183)]))['subscribe'](_0x2bdfbf=>{var _0x2a2073=_0x1ad96c;const _0x17cf06=_0x2bdfbf[_0x2a2073(0x162)](),_0x14ae28=this[_0x2a2073(0x129)][_0x2a2073(0x178)](_0x17cf06);_0x14ae28==null||_0x14ae28[_0x2a2073(0x145)]();});}async[_0x1937ef(0x109)](_0x46a360){var _0x2f3677=_0x1937ef;const _0x88faf7=await this[_0x2f3677(0x111)][_0x2f3677(0x188)](_0x46a360),_0x26509a=this['_injector']['createInstance'](w,_0x46a360,_0x88faf7);return _0x26509a['init'](),this['_entities'][_0x2f3677(0x10a)](_0x46a360,_0x26509a),_0x26509a;}};I=Z([f(0x0,_0x4bbec0),f(0x1,_0x30f351(_0x5a81c2)),f(0x2,_0x30f351(_0x2ba0ce))],I);var h=(_0x410445=>(_0x410445['OFFLINE']=_0x1937ef(0xf2),_0x410445[_0x1937ef(0x157)]=_0x1937ef(0x120),_0x410445['FOLLOWING']=_0x1937ef(0x16d),_0x410445[_0x1937ef(0x180)]='not-following',_0x410445[_0x1937ef(0x168)]='presenting',_0x410445))(h||{});const Pe=_0x1937ef(0x137),Ae=0xc8;let w=class extends _0x404045{constructor(_0x44f08c,_0x44dcff,_0x62f1c,_0x4af01b,_0x2b7b05){var _0x5d5930=_0x1937ef;super(),d(this,_0x5d5930(0xec),new _0x428c9f(_0x5d5930(0x120))),d(this,_0x5d5930(0x16b),this['_status$'][_0x5d5930(0x138)]()),d(this,_0x5d5930(0xf3),!0x1),d(this,_0x5d5930(0xef),null),d(this,_0x5d5930(0x14f),null),(this['_unitID']=_0x44f08c,this[_0x5d5930(0x123)]=_0x44dcff,this[_0x5d5930(0x144)]=_0x62f1c,this[_0x5d5930(0x152)]=_0x4af01b,this[_0x5d5930(0x13f)]=_0x2b7b05);}get[_0x1937ef(0x11f)](){var _0x2f1494=_0x1937ef;return this[_0x2f1494(0xec)][_0x2f1494(0xe9)]();}[_0x1937ef(0x145)](){var _0x338587=_0x1937ef,_0xdee2c5;(_0xdee2c5=this[_0x338587(0xef)])==null||_0xdee2c5[_0x338587(0x145)](),this[_0x338587(0xec)]['next'](_0x338587(0x120)),this[_0x338587(0xec)]['complete']();}['init'](){var _0x1494ab=_0x1937ef;this[_0x1494ab(0xf3)]||(this[_0x1494ab(0xf3)]=!0x0,this[_0x1494ab(0x123)]['sessionStatus$'][_0x1494ab(0x174)](_0x27da68(this[_0x1494ab(0x183)]))['subscribe'](_0x4862bf=>{var _0xc817e4=_0x1494ab;switch(_0x4862bf){case _0x1c4986[_0xc817e4(0xfc)]:this[_0xc817e4(0x16f)]();break;case _0x1c4986[_0xc817e4(0x147)]:this[_0xc817e4(0x121)]();break;}}),this['_collabSession'][_0x1494ab(0x16a)][_0x1494ab(0x174)](_0x27da68(this[_0x1494ab(0x183)]))[_0x1494ab(0x11c)](_0x429e47=>{var _0x5c4500=_0x1494ab;const {eventID:_0x35c88a}=_0x429e47;switch(_0x35c88a){case _0x3698f7[_0x5c4500(0x11e)]:this[_0x5c4500(0x140)](_0x429e47);break;case _0x3698f7[_0x5c4500(0xf8)]:this['_handleOperation'](_0x429e47);break;case _0x3698f7[_0x5c4500(0xf5)]:this['_handleTerminate']();break;case _0x3698f7[_0x5c4500(0x17b)]:this[_0x5c4500(0xed)](_0x429e47);break;}}));}[_0x1937ef(0x139)](){var _0x17446e=_0x1937ef;this[_0x17446e(0x123)][_0x17446e(0x17e)]({'eventID':_0x3698f7[_0x17446e(0x13e)],'data':{'unitID':this[_0x17446e(0x103)],'userID':this['_collabSession'][_0x17446e(0x186)]()}},this['_unitID']);}[_0x1937ef(0xe6)](){var _0x2660c8=_0x1937ef;this[_0x2660c8(0x11f)]===_0x2660c8(0x187)&&(this[_0x2660c8(0xec)][_0x2660c8(0x15d)](_0x2660c8(0x120)),this[_0x2660c8(0x123)]['send']({'eventID':_0x3698f7[_0x2660c8(0xf5)],'data':{'unitID':this[_0x2660c8(0x103)]}},this[_0x2660c8(0x103)]));}[_0x1937ef(0x14d)](){var _0x1db15d=_0x1937ef;this[_0x1db15d(0x11f)]==='not-following'&&(this[_0x1db15d(0xec)]['next'](_0x1db15d(0x16d)),this[_0x1db15d(0x155)]());}[_0x1937ef(0x131)](){var _0x8515b4=_0x1937ef;this[_0x8515b4(0x11f)]==='following'&&this['_stopFollowing']();}['_handleNewHost'](_0x28e388){var _0x5da328=_0x1937ef;const {presenter:_0x204ff2}=_0x28e388[_0x5da328(0x166)],_0x35b675=this[_0x5da328(0x123)]['getMemberID']();this['_presenter']=_0x204ff2,_0x204ff2===_0x35b675?(this[_0x5da328(0xfa)](),this[_0x5da328(0x10f)]()):this['_status']!==_0x5da328(0x13c)&&(this[_0x5da328(0xfb)](),this['_startFollowing']());}[_0x1937ef(0x156)](){var _0x5f3b36=_0x1937ef;const _0x3a4a6e={'eventID':_0x3698f7[_0x5f3b36(0xfe)]};this['_collabSession'][_0x5f3b36(0x17e)](_0x3a4a6e,this[_0x5f3b36(0x103)]);}[_0x1937ef(0x169)](){var _0x226ab4=_0x1937ef;this['_presenter']=null,this[_0x226ab4(0x11f)]!==_0x226ab4(0x187)&&this[_0x226ab4(0x132)]();}[_0x1937ef(0xed)](_0x45cb98){var _0x4a33f7=_0x1937ef;if(this[_0x4a33f7(0x11f)]==='following'&&this[_0x4a33f7(0x14f)]===_0x45cb98[_0x4a33f7(0x166)][_0x4a33f7(0x11b)]){const _0x382dc8=_0x4bddcf(_0x45cb98[_0x4a33f7(0x166)])[_0x4a33f7(0x165)][_0x4a33f7(0x12e)]()['find'](_0x313fb3=>_0x313fb3['id']===_0x585918['id']);if(_0x382dc8){const _0x293004=_0x382dc8[_0x4a33f7(0x10c)][_0x4a33f7(0x136)],_0x50a9c6=_0x382dc8[_0x4a33f7(0x10c)][_0x4a33f7(0x106)]['id'];setTimeout(()=>{var _0x42a08b=_0x4a33f7;this['_commandService'][_0x42a08b(0x149)](_0x555a90['id'],{'unitId':_0x293004,'subUnitId':_0x50a9c6},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x12b75a=_0x1937ef;this[_0x12b75a(0xec)][_0x12b75a(0x15d)](_0x12b75a(0x187));const _0x4bb14b=new Map(),_0x2f6e42=this[_0x12b75a(0xef)]=new _0x1eb65a();_0x2f6e42[_0x12b75a(0x122)](_0x3445ea(()=>{var _0x2ac822=_0x12b75a;_0x4bb14b[_0x2ac822(0x182)](_0x15e5e6=>_0x15e5e6['complete']()),_0x4bb14b['clear']();})),_0x2f6e42[_0x12b75a(0x122)](this['_commandService'][_0x12b75a(0x17c)](_0x252a19=>{var _0x2546ad=_0x12b75a,_0x92f89d;if(_0x252a19[_0x2546ad(0x154)]!==_0x47fa0b['OPERATION']||!this[_0x2546ad(0x152)][_0x2546ad(0x101)](_0x252a19['id']))return;const {id:_0x5e8116}=_0x252a19;let _0x11981d;_0x4bb14b[_0x2546ad(0x151)](_0x5e8116)?_0x11981d=_0x4bb14b[_0x2546ad(0x178)](_0x5e8116):(_0x11981d=new _0x35c93d(),_0x4bb14b[_0x2546ad(0x10a)](_0x5e8116,_0x11981d),_0x11981d[_0x2546ad(0x174)](_0x50f4b3((_0x92f89d=this[_0x2546ad(0x144)]['getConfig'](Pe))!=null?_0x92f89d:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x7aec52=>{var _0x22f697=_0x2546ad;this[_0x22f697(0x123)][_0x22f697(0x17e)]({'eventID':_0x3698f7[_0x22f697(0xf8)],'data':{'unitID':this['_unitID'],'operations':{[_0x7aec52['id']]:{'id':_0x7aec52['id'],'params':JSON[_0x22f697(0xe1)](_0x7aec52[_0x22f697(0x10c)])}}}},this[_0x22f697(0x103)]);})),_0x11981d[_0x2546ad(0x15d)](_0x252a19);})),this[_0x12b75a(0x152)][_0x12b75a(0x10b)](this['_unitID'])['forEach'](_0x5a7090=>this[_0x12b75a(0x123)][_0x12b75a(0x17e)]({'eventID':_0x3698f7['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x12b75a(0x103)],'operations':{[_0x5a7090['id']]:{'id':_0x5a7090['id'],'params':JSON['stringify'](_0x5a7090[_0x12b75a(0x10c)])}}}},this[_0x12b75a(0x103)]));}[_0x1937ef(0xfb)](){var _0xe88f8a=_0x1937ef,_0x4a3ad4;this['_status$'][_0xe88f8a(0x15d)](_0xe88f8a(0x120)),(_0x4a3ad4=this[_0xe88f8a(0xef)])==null||_0x4a3ad4[_0xe88f8a(0x145)](),this[_0xe88f8a(0xef)]=null;}['_startFollowing'](){var _0x5e1a9f=_0x1937ef,_0x17d784;(_0x17d784=this[_0x5e1a9f(0xef)])==null||_0x17d784['dispose'](),this[_0x5e1a9f(0xec)][_0x5e1a9f(0x15d)](_0x5e1a9f(0x16d));}['_beIdle'](){var _0x1827d8=_0x1937ef,_0x2b7088;this[_0x1827d8(0xec)]['next'](_0x1827d8(0x120)),(_0x2b7088=this['_commandDisposable'])==null||_0x2b7088['dispose'](),this[_0x1827d8(0xef)]=null;}['_stopFollowing'](){var _0x518bf1=_0x1937ef,_0x5e7d68;this[_0x518bf1(0xec)][_0x518bf1(0x15d)](_0x518bf1(0x13c)),(_0x5e7d68=this['_commandDisposable'])==null||_0x5e7d68[_0x518bf1(0x145)]();}['_handleOperation'](_0x3deec3){var _0x27a25c=_0x1937ef;if(['presenting',_0x27a25c(0x13c),_0x27a25c(0xf2)][_0x27a25c(0x18b)](this[_0x27a25c(0x11f)])||!_0x3deec3[_0x27a25c(0x166)][_0x27a25c(0xf0)]||_0x3deec3['data'][_0x27a25c(0xf0)]===this[_0x27a25c(0x123)][_0x27a25c(0x186)]())return;this[_0x27a25c(0x11f)]===_0x27a25c(0x120)&&this[_0x27a25c(0x155)]();const _0x2e6698=_0x3deec3[_0x27a25c(0x166)][_0x27a25c(0x113)];Object[_0x27a25c(0x15a)](_0x2e6698)[_0x27a25c(0x182)](_0x3eed35=>{var _0x496900=_0x27a25c;this[_0x496900(0x13f)]['executeCommand'](_0x3eed35['id'],_0x3eed35['params']?JSON['parse'](_0x3eed35[_0x496900(0x10c)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x3ad1b5=_0x1937ef,_0x2f56a8;this[_0x3ad1b5(0xec)][_0x3ad1b5(0x15d)](_0x3ad1b5(0xf2)),(_0x2f56a8=this[_0x3ad1b5(0xef)])==null||_0x2f56a8[_0x3ad1b5(0x145)]();}[_0x1937ef(0x121)](){var _0x2f053f=_0x1937ef;this['_status$'][_0x2f053f(0x15d)](_0x2f053f(0x120)),this[_0x2f053f(0x156)]();}};w=Z([f(0x2,_0x268cc5),f(0x3,_0x30f351(L)),f(0x4,_0x519049)],w);function Te(){var _0x1a057f=_0x1937ef;const _0x70b5fc=_0x105a7f(I),_0x49abab=_0x105a7f(_0x4bbec0),_0x29bbaf=_0x56d616(()=>_0x49abab['getCurrentTypeOfUnit$'](_0x389694[_0x1a057f(0xee)]),void 0x0,!0x1,[]),[_0x51b1ec,_0x202e85]=_0x4ec9cf(null),[_0x37cf1d,_0x41754f]=_0x4ec9cf(h[_0x1a057f(0x157)]),_0x593a8e=_0x412035(null);return _0x127a28(()=>(_0x29bbaf&&_0x70b5fc[_0x1a057f(0x16c)](_0x29bbaf['getUnitId']())['then'](_0x1fab39=>{var _0x485c0a=_0x1a057f;_0x202e85(_0x1fab39),_0x593a8e[_0x485c0a(0x161)]=_0x1fab39[_0x485c0a(0x16b)][_0x485c0a(0x11c)](_0x5ba079=>{_0x41754f(_0x5ba079);});}),()=>{var _0x5a5fb5=_0x1a057f,_0x39c103;(_0x39c103=_0x593a8e['current'])==null||_0x39c103[_0x5a5fb5(0x164)](),_0x593a8e['current']=null;}),[_0x29bbaf,_0x70b5fc]),_0x51b1ec?_0x2b8ee2(_0xfb031,{'align':_0x1a057f(0x102),'disabled':_0x37cf1d===h[_0x1a057f(0xfc)],'className':_0x1a057f(0x171),'overlay':_0x2b8ee2($e,{'status':_0x37cf1d,'coordinator':_0x51b1ec}),'children':_0x2b8ee2(_0x1a057f(0x185),{'className':_0x4c4971(_0x1a057f(0x153),{'univer-cursor-not-allowed':_0x37cf1d===h[_0x1a057f(0xfc)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x37cf1d!==h['OFFLINE']}),'type':_0x1a057f(0x185),'children':_0x2b8ee2(B,{'className':_0x1a057f(0x14b)})})}):null;}function $e(_0x2e8c93){var _0x144bcf=_0x1937ef;const {status:_0x2fb7eb,coordinator:_0x458f08}=_0x2e8c93;switch(_0x2fb7eb){case h[_0x144bcf(0x157)]:return _0x2b8ee2(Fe,{'coordinator':_0x458f08});case h['FOLLOWING']:return _0x2b8ee2(He,{'coordinator':_0x458f08});case h[_0x144bcf(0x180)]:return _0x2b8ee2(je,{'coordinator':_0x458f08});case h[_0x144bcf(0xfc)]:return _0x2b8ee2(Ve,{});case h[_0x144bcf(0x168)]:return _0x2b8ee2(Ue,{'coordinator':_0x458f08});default:return null;}}function Fe(_0x1807ed){var _0x1b506e=_0x1937ef;const {coordinator:_0xd4be6b}=_0x1807ed;return _0x592a31(_0x2a759f,{'children':[_0x2b8ee2(_0x1b506e(0x18a),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x1b506e(0xeb)}),_0x2b8ee2(_0x13e900,{'onClick':()=>_0xd4be6b[_0x1b506e(0x139)](),'children':_0x1b506e(0x125)})]});}function He(_0x34c38b){var _0x158fe5=_0x1937ef;const {coordinator:_0x35d10b}=_0x34c38b;return _0x592a31(_0x2a759f,{'children':[_0x2b8ee2('div',{'className':_0x158fe5(0x12d),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x2b8ee2(_0x13e900,{'onClick':()=>_0x35d10b[_0x158fe5(0x131)](),'children':_0x158fe5(0x13b)})]});}function je(_0x576acf){var _0x498fd2=_0x1937ef;const {coordinator:_0x1703e9}=_0x576acf;return _0x592a31(_0x2a759f,{'children':[_0x2b8ee2('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x2b8ee2(_0x13e900,{'variant':_0x498fd2(0x14e),'onClick':()=>_0x1703e9[_0x498fd2(0x14d)](),'children':_0x498fd2(0xff)})]});}function Ue(_0x36a252){var _0x24f9c7=_0x1937ef;const {coordinator:_0x54dbed}=_0x36a252;return _0x592a31(_0x2a759f,{'children':[_0x2b8ee2(_0x24f9c7(0x18a),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x24f9c7(0x143)}),_0x2b8ee2(_0x13e900,{'variant':_0x24f9c7(0x158),'onClick':()=>_0x54dbed[_0x24f9c7(0xe6)](),'children':_0x24f9c7(0x11d)})]});}function _0x1576(_0x3bd1fb,_0x1aa911){var _0x2729a6=_0x2729();return _0x1576=function(_0x15765a,_0xc9d3f6){_0x15765a=_0x15765a-0xde;var _0x414ee6=_0x2729a6[_0x15765a];return _0x414ee6;},_0x1576(_0x3bd1fb,_0x1aa911);}function Ve(){var _0x32307a=_0x1937ef;return _0x2b8ee2(_0x2a759f,{'children':_0x32307a(0x117)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x4c616f,_0x18dc02,_0x4240f5,_0x282517)=>{for(var _0x22a4f9=_0x282517>0x1?void 0x0:_0x282517?Me(_0x18dc02,_0x4240f5):_0x18dc02,_0x4da4d2=_0x4c616f['length']-0x1,_0x4f12cd;_0x4da4d2>=0x0;_0x4da4d2--)(_0x4f12cd=_0x4c616f[_0x4da4d2])&&(_0x22a4f9=_0x4f12cd(_0x22a4f9)||_0x22a4f9);return _0x22a4f9;},$=(_0x37e13d,_0x4f3291)=>(_0x481e7e,_0x2540b9)=>_0x4f3291(_0x481e7e,_0x2540b9,_0x37e13d);let b=class extends _0x4e5696{constructor(_0x50a24c,_0x753939){var _0x322556=_0x1937ef;super(),this[_0x322556(0x15f)]=_0x50a24c,this[_0x322556(0x163)]=_0x753939,this[_0x322556(0x14c)]();}[_0x1937ef(0x14c)](){var _0x549109=_0x1937ef;this[_0x549109(0x12c)](this[_0x549109(0x163)]['registerComponent'](_0x3c9586['HEADER_MENU'],()=>_0x46516c(Te,this[_0x549109(0x15f)])));}};b=ke([$(0x0,_0x30f351(_0x5a81c2)),$(0x1,_0x54648c)],b);var Ge=Object['defineProperty'],We=Object[_0x1937ef(0x115)],Ye=(_0xa1e8f4,_0x2b64c5,_0x43d69e)=>_0x2b64c5 in _0xa1e8f4?Ge(_0xa1e8f4,_0x2b64c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x43d69e}):_0xa1e8f4[_0x2b64c5]=_0x43d69e,Be=(_0x56c0c8,_0x38db95,_0x28265a,_0xac03d8)=>{var _0x22e1b3=_0x1937ef;for(var _0x2b5af3=_0xac03d8>0x1?void 0x0:_0xac03d8?We(_0x38db95,_0x28265a):_0x38db95,_0x5bce6a=_0x56c0c8[_0x22e1b3(0x100)]-0x1,_0x81a124;_0x5bce6a>=0x0;_0x5bce6a--)(_0x81a124=_0x56c0c8[_0x5bce6a])&&(_0x2b5af3=_0x81a124(_0x2b5af3)||_0x2b5af3);return _0x2b5af3;},F=(_0x5d6175,_0xbc5d91)=>(_0x5056ad,_0x59adb0)=>_0xbc5d91(_0x5056ad,_0x59adb0,_0x5d6175),J=(_0xeed6f,_0x319523,_0x4594eb)=>Ye(_0xeed6f,typeof _0x319523!=_0x1937ef(0xe5)?_0x319523+'':_0x319523,_0x4594eb);const Ze=_0x1937ef(0xe7);let O=class extends _0xa8483a{constructor(_0x571de8=T,_0x4846c5,_0x3d7654){var _0x46a759=_0x1937ef;super(),this[_0x46a759(0x108)]=_0x571de8,this[_0x46a759(0x15f)]=_0x4846c5,this[_0x46a759(0x144)]=_0x3d7654;const {..._0x2911cc}=_0x520eac({},T,this['_config']);this[_0x46a759(0x144)]['setConfig'](Oe,_0x2911cc);}[_0x1937ef(0xf7)](){var _0x7d6217=_0x1937ef;_0x47f38e(this[_0x7d6217(0x15f)],_0xf1e502([[L],[I],[m],[b]],this['_config']['override'])),_0x30d27b(this[_0x7d6217(0x15f)],[[m]]);}[_0x1937ef(0x148)](){var _0x4f8c9f=_0x1937ef;_0x30d27b(this[_0x4f8c9f(0x15f)],[[b]]);}};J(O,_0x1937ef(0x154),_0x389694[_0x1937ef(0xde)]),J(O,_0x1937ef(0x133),Ze),O=Be([_0x434d74(_0x310c99),F(0x1,_0x30f351(_0x5a81c2)),F(0x2,_0x268cc5)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x5baa88=_0x505a;(function(_0x1cbfcd,_0x4f2cf8){var _0x3c608a=_0x505a,_0x15779b=_0x1cbfcd();while(!![]){try{var _0x190775=parseInt(_0x3c608a(0x17a))/0x1*(-parseInt(_0x3c608a(0x155))/0x2)+-parseInt(_0x3c608a(0x15e))/0x3*(-parseInt(_0x3c608a(0x1b5))/0x4)+parseInt(_0x3c608a(0x145))/0x5*(-parseInt(_0x3c608a(0x1c8))/0x6)+parseInt(_0x3c608a(0x19a))/0x7*(parseInt(_0x3c608a(0x13b))/0x8)+parseInt(_0x3c608a(0x149))/0x9*(parseInt(_0x3c608a(0x19f))/0xa)+parseInt(_0x3c608a(0x154))/0xb+parseInt(_0x3c608a(0x1d1))/0xc;if(_0x190775===_0x4f2cf8)break;else _0x15779b['push'](_0x15779b['shift']());}catch(_0x2d5539){_0x15779b['push'](_0x15779b['shift']());}}}(_0x4c13,0xac1d3));var q=Object[_0x5baa88(0x1c1)],z=(_0x402861,_0x3093d2,_0x1aec80)=>_0x3093d2 in _0x402861?q(_0x402861,_0x3093d2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1aec80}):_0x402861[_0x3093d2]=_0x1aec80,d=(_0x2f1312,_0x3a9b55,_0x906fa1)=>z(_0x2f1312,typeof _0x3a9b55!='symbol'?_0x3a9b55+'':_0x3a9b55,_0x906fa1);import{CollaborationSessionService as _0x257046,SessionStatus as _0x1bb2ed,UniverCollaborationClientPlugin as _0x5156dc}from'@univerjs-pro/collaboration-client';import{Disposable as _0x51f6c2,toDisposable as _0x44bf91,Inject as _0x5ac674,IUniverInstanceService as _0x6a6c5,Injector as _0x2df4bc,IConfigService as _0x537e94,ICommandService as _0x2b092b,RxDisposable as _0x323762,UniverInstanceType as _0x476fde,DisposableCollection as _0x468b9a,CommandType as _0x365184,DependentOn as _0x3d9c8c,Plugin as _0x5cf9ba,merge as _0x2ec77f,registerDependencies as _0x5b4057,mergeOverrideWithDependencies as _0x54df49,touchDependencies as _0x1652d1}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3f8280,InsertSheetMutation as _0x44a377}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x435432,SetScrollOperation as _0x184813}from'@univerjs/sheets-ui';import{useDependency as _0x595637,useObservable as _0x5a552f,IUIPartsService as _0x163c83,BuiltInUIPart as _0x428af2,connectInjector as _0x3bec91}from'@univerjs/ui';import{jsx as _0x34107d,jsxs as _0x4b2209,Fragment as _0x231007}from'react/jsx-runtime';import{Dropdown as _0x527d10,clsx as _0xc8bcb9,Button as _0x45fc60}from'@univerjs/design';import{forwardRef as _0x4b90dd,useRef as _0x5de855,createElement as _0x26c226,useState as _0x4e7a17,useEffect as _0x359dd9}from'react';import{CollaborationEvent as _0x5d49dc,parseProtocolChangeset as _0x2e7d6b}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x5c7498,Subject as _0x289af7}from'rxjs';import{takeUntil as _0x34f785,throttleTime as _0x3a0090}from'rxjs/operators';const Oe=_0x5baa88(0x16b),T={};class L extends _0x51f6c2{constructor(){var _0x3da87b=_0x5baa88;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x3da87b(0x177),new Set());}[_0x5baa88(0x1c6)](_0x56821b){var _0x47f179=_0x5baa88;return this[_0x47f179(0x179)][_0x47f179(0x16c)](_0x56821b),_0x44bf91(()=>this[_0x47f179(0x179)][_0x47f179(0x127)](_0x56821b));}[_0x5baa88(0x14c)](_0x4a602c){var _0x57945d=_0x5baa88;return this[_0x57945d(0x177)][_0x57945d(0x16c)](_0x4a602c),_0x44bf91(()=>this[_0x57945d(0x177)][_0x57945d(0x127)](_0x4a602c));}[_0x5baa88(0x14b)](_0x2a717d){var _0x2d400f=_0x5baa88;return this['_sharedOperations'][_0x2d400f(0x135)](_0x2a717d);}['getInitialStates'](_0x30c65a){var _0xad2d7f=_0x5baa88;return Array[_0xad2d7f(0x126)](this[_0xad2d7f(0x177)])[_0xad2d7f(0x15f)](_0x172f1c=>_0x172f1c(_0x30c65a));}}var Ee=Object['getOwnPropertyDescriptor'],Ce=(_0x2e51e7,_0x5b89b1,_0x240a31,_0x51a232)=>{for(var _0x2f4d63=_0x51a232>0x1?void 0x0:_0x51a232?Ee(_0x5b89b1,_0x240a31):_0x5b89b1,_0x2c4989=_0x2e51e7['length']-0x1,_0x38cea1;_0x2c4989>=0x0;_0x2c4989--)(_0x38cea1=_0x2e51e7[_0x2c4989])&&(_0x2f4d63=_0x38cea1(_0x2f4d63)||_0x2f4d63);return _0x2f4d63;},Ne=(_0x339f02,_0x4c83fe)=>(_0x2fb06d,_0x131c2a)=>_0x4c83fe(_0x2fb06d,_0x131c2a,_0x339f02);let m=class extends _0x51f6c2{constructor(_0x574808){var _0x5782b9=_0x5baa88;super(),this[_0x5782b9(0x17d)]=_0x574808,this['_init']();}[_0x5baa88(0x18a)](){[_0x435432['id'],_0x184813['id'],_0x3f8280['id']]['forEach'](_0x3efee7=>{var _0x218143=_0x505a;this[_0x218143(0x1a4)](this[_0x218143(0x17d)][_0x218143(0x1c6)](_0x3efee7));});}};m=Ce([Ne(0x0,_0x5ac674(L))],m);var c=function(){var _0x3e044d=_0x5baa88;return c=Object['assign']||function(_0x4eb4b9){var _0x589879=_0x505a;for(var _0x569489,_0x5c2b84=0x1,_0x5c2f81=arguments['length'];_0x5c2b84<_0x5c2f81;_0x5c2b84++){_0x569489=arguments[_0x5c2b84];for(var _0x52fcd5 in _0x569489)Object['prototype'][_0x589879(0x1ad)][_0x589879(0x164)](_0x569489,_0x52fcd5)&&(_0x4eb4b9[_0x52fcd5]=_0x569489[_0x52fcd5]);}return _0x4eb4b9;},c[_0x3e044d(0x1cd)](this,arguments);},we=function(_0x4f8adc,_0x335f82){var _0x2b57be=_0x5baa88,_0x41863f={};for(var _0x4b3f2c in _0x4f8adc)Object[_0x2b57be(0x175)][_0x2b57be(0x1ad)][_0x2b57be(0x164)](_0x4f8adc,_0x4b3f2c)&&_0x335f82[_0x2b57be(0x1a1)](_0x4b3f2c)<0x0&&(_0x41863f[_0x4b3f2c]=_0x4f8adc[_0x4b3f2c]);if(_0x4f8adc!=null&&typeof Object[_0x2b57be(0x17b)]=='function'){for(var _0x578129=0x0,_0x4b3f2c=Object[_0x2b57be(0x17b)](_0x4f8adc);_0x578129<_0x4b3f2c[_0x2b57be(0x128)];_0x578129++)_0x335f82['indexOf'](_0x4b3f2c[_0x578129])<0x0&&Object[_0x2b57be(0x175)][_0x2b57be(0x1ce)][_0x2b57be(0x164)](_0x4f8adc,_0x4b3f2c[_0x578129])&&(_0x41863f[_0x4b3f2c[_0x578129]]=_0x4f8adc[_0x4b3f2c[_0x578129]]);}return _0x41863f;},W=_0x4b90dd(function(_0x46be1e,_0x210f0d){var _0xfe91dc=_0x5baa88,_0x4dc2b4=_0x46be1e[_0xfe91dc(0x152)],_0x3a5b95=_0x46be1e['id'],_0x365f3b=_0x46be1e[_0xfe91dc(0x141)],_0x4fd783=_0x46be1e[_0xfe91dc(0x167)],_0x4c102d=we(_0x46be1e,[_0xfe91dc(0x152),'id',_0xfe91dc(0x141),_0xfe91dc(0x167)]),_0x19e11d=_0xfe91dc(0x15a)['concat'](_0x3a5b95,'\x20')[_0xfe91dc(0x19b)](_0x365f3b||'')[_0xfe91dc(0x199)](),_0x39e899=_0x5de855('_'['concat'](Le()));return Y(_0x4dc2b4,''['concat'](_0x3a5b95),{'defIds':_0x4dc2b4[_0xfe91dc(0x1c5)],'idSuffix':_0x39e899[_0xfe91dc(0x1b9)]},c({'ref':_0x210f0d,'className':_0x19e11d},_0x4c102d),_0x4fd783);});function Y(_0x20f7c2,_0x37f770,_0x438dd3,_0x249e1e,_0x3b406e){var _0x1e5b05=_0x5baa88;return _0x26c226(_0x20f7c2[_0x1e5b05(0x156)],c(c({'key':_0x37f770},De(_0x20f7c2,_0x438dd3,_0x3b406e)),_0x249e1e),(xe(_0x20f7c2,_0x438dd3)[_0x1e5b05(0x19e)]||[])[_0x1e5b05(0x15f)](function(_0x30b380,_0xb42dee){var _0x26ddb7=_0x1e5b05;return Y(_0x30b380,''[_0x26ddb7(0x19b)](_0x37f770,'-')[_0x26ddb7(0x19b)](_0x20f7c2['tag'],'-')[_0x26ddb7(0x19b)](_0xb42dee),_0x438dd3,void 0x0,_0x3b406e);}));}function De(_0x249e48,_0x18cb50,_0x297482){var _0x3dcf63=_0x5baa88,_0x448c3a=c({},_0x249e48[_0x3dcf63(0x181)]);_0x297482!=null&&_0x297482['colorChannel1']&&_0x448c3a[_0x3dcf63(0x13e)]===_0x3dcf63(0x147)&&(_0x448c3a[_0x3dcf63(0x13e)]=_0x297482[_0x3dcf63(0x147)]),_0x249e48[_0x3dcf63(0x156)]===_0x3dcf63(0x1bb)&&_0x448c3a['id']&&(_0x448c3a['id']=_0x448c3a['id']+_0x18cb50[_0x3dcf63(0x1b0)]),Object[_0x3dcf63(0x16e)](_0x448c3a)[_0x3dcf63(0x150)](function(_0x2a9175){var _0x221662=_0x3dcf63,_0x8e4b43=_0x2a9175[0x0],_0x21ef0a=_0x2a9175[0x1];_0x8e4b43==='mask'&&typeof _0x21ef0a=='string'&&(_0x448c3a[_0x8e4b43]=_0x21ef0a[_0x221662(0x130)](/url\(#(.*)\)/,_0x221662(0x1d2)[_0x221662(0x19b)](_0x18cb50[_0x221662(0x1b0)],')')));});var _0x39f4e1=_0x18cb50[_0x3dcf63(0x1c5)];return!_0x39f4e1||_0x39f4e1[_0x3dcf63(0x128)]===0x0||(_0x249e48['tag']===_0x3dcf63(0x1d3)&&_0x448c3a[_0x3dcf63(0x1a8)]&&(_0x448c3a[_0x3dcf63(0x1a8)]=_0x448c3a[_0x3dcf63(0x1a8)]+_0x18cb50[_0x3dcf63(0x1b0)]),Object[_0x3dcf63(0x16e)](_0x448c3a)[_0x3dcf63(0x150)](function(_0x50e5e5){var _0x4bc426=_0x3dcf63,_0x234075=_0x50e5e5[0x0],_0xd8b35b=_0x50e5e5[0x1];typeof _0xd8b35b==_0x4bc426(0x16f)&&(_0x448c3a[_0x234075]=_0xd8b35b[_0x4bc426(0x130)](/url\(#(.*)\)/,_0x4bc426(0x1d2)[_0x4bc426(0x19b)](_0x18cb50['idSuffix'],')')));})),_0x448c3a;}function xe(_0x474119,_0x5eb69c){var _0x597061=_0x5baa88,_0x1b30c4,_0x248534=_0x5eb69c[_0x597061(0x1c5)];return!_0x248534||_0x248534['length']===0x0?_0x474119:_0x474119[_0x597061(0x156)]==='defs'&&(!((_0x1b30c4=_0x474119[_0x597061(0x19e)])===null||_0x1b30c4===void 0x0)&&_0x1b30c4[_0x597061(0x128)])?c(c({},_0x474119),{'children':_0x474119['children']['map'](function(_0x997044){var _0x5d8ebe=_0x597061;return typeof _0x997044[_0x5d8ebe(0x181)]['id']==_0x5d8ebe(0x16f)&&_0x248534&&_0x248534['indexOf'](_0x997044[_0x5d8ebe(0x181)]['id'])>-0x1?c(c({},_0x997044),{'attrs':c(c({},_0x997044[_0x5d8ebe(0x181)]),{'id':_0x997044[_0x5d8ebe(0x181)]['id']+_0x5eb69c['idSuffix']})}):_0x997044;})}):_0x474119;}function Le(){var _0x535041=_0x5baa88;return Math['random']()[_0x535041(0x12e)](0x24)['substring'](0x2,0x8);}W[_0x5baa88(0x14e)]=_0x5baa88(0x12f);var ye={'tag':'svg','attrs':{'fill':_0x5baa88(0x136),'viewBox':'0\x200\x2016\x2016','width':_0x5baa88(0x1b2),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':'currentColor','d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':_0x5baa88(0x139),'attrs':{'fill':_0x5baa88(0x146),'d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':'evenodd','clipRule':_0x5baa88(0x1c4)}}]},B=_0x4b90dd(function(_0x3a6588,_0x1ba96f){var _0x5a43d7=_0x5baa88;return _0x26c226(W,Object[_0x5a43d7(0x196)]({},_0x3a6588,{'id':_0x5a43d7(0x193),'ref':_0x1ba96f,'icon':ye}));});function _0x4c13(){var _0x123f04=['defineProperty','offline','includes','evenodd','defIds','registerSharedOperation','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','174XFAHNZ','_status','dispose','dispose$','Stop\x20following','apply','propertyIsEnumerable','_collabSessionService','Start\x20following','14547972IpWMhn','url(#$1','use','from','delete','length','LIVESHARE_TERMINATE','following','HEADER_MENU','default','override','toString','UniverIcon','replace','_commandDisposable','_handleNewHost','params','_handleNewChangeSets','has','none','_startFollowing','onStarting','path','stringify','859048ycdzzv','LIVESHARE_OPERATION','next','fill','onRendered','getCurrentTypeOfUnit$','className','unitId','parse','pipe','70010DRGuPc','currentColor','colorChannel1','ONLINE','1754514ezXGLz','UNIVER_SHEET','shouldShareOperation','registerInitialStateReporter','idle','displayName','UNIVER_UNKNOWN','forEach','find','icon','LIVESHARE_NEW_HOST','398596kdXgAU','2pPYZAs','tag','_fetchOperations','reverse','div','univerjs-icon\x20univerjs-icon-','univer-w-full\x20univer-mb-3\x20univer-text-sm','_configService','_collabSession','33hZKWlb','map','startFollowing','data','_status$','_handleOffline','call','stopPresenting','type','extend','tryStartPresenting','set','registerComponent','live-share.config','add','getLiveShareCoordinator','entries','string','_presenter','getInitialStates','operations','_startLiveShareCoordinator','mutations','prototype','_commandService','_reporters','presenter','_sharedOperations','1250551FIRORl','getOwnPropertySymbols','subscribe','_liveShareService','You\x27are\x20offline.','_beIdle','getUnitId','attrs','Stop\x20presenting','_handleOnline','setConfig','sessionStatus$','You\x27re\x20following\x20the\x20presenter','values','UNIVER_LIVE_SHARE_PLUGIN','_uiPartsService','_init','not-following','getTypeOfUnitDisposed$','status$','send','symbol','end','OFFLINE','clear','live-share-single','_startPresenting','_univerInstanceService','assign','executeCommand','You\x27re\x20not\x20following\x20the\x20presenter','trim','28ZnIyXQ','concat','_config','_injector','children','30oIbuHu','stopFollowing','indexOf','get','asObservable','disposeWithMe','getValue','NEW_CHANGESETS','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','xlink:href','_mountLiveShare','getMemberID','_stopFollowing','OPERATION','hasOwnProperty','_entities','unsubscribe','idSuffix','PRESENTING','1em','LIVESHARE_REQUEST_HOST','_stopPresenting','35876XviyCo','_unitID','presenting','getTypeOfUnitAdded$','current','text','mask','getOwnPropertyDescriptor','_handleOperation','init','NOT_FOLLOWING','IDLE'];_0x4c13=function(){return _0x123f04;};return _0x4c13();}B[_0x5baa88(0x14e)]='LiveShareSingle';var Re=Object[_0x5baa88(0x1bc)],Z=(_0x2bef35,_0x1f49d2,_0x1c1f81,_0x5808ae)=>{var _0x41e730=_0x5baa88;for(var _0x2d329b=_0x5808ae>0x1?void 0x0:_0x5808ae?Re(_0x1f49d2,_0x1c1f81):_0x1f49d2,_0x493e90=_0x2bef35[_0x41e730(0x128)]-0x1,_0x3c0ece;_0x493e90>=0x0;_0x493e90--)(_0x3c0ece=_0x2bef35[_0x493e90])&&(_0x2d329b=_0x3c0ece(_0x2d329b)||_0x2d329b);return _0x2d329b;},f=(_0x5738ae,_0x549f41)=>(_0x4982d1,_0x4ca765)=>_0x549f41(_0x4982d1,_0x4ca765,_0x5738ae);let I=class extends _0x323762{constructor(_0x31dfd4,_0x19be20,_0x30f0ea){var _0x38d48a=_0x5baa88;super(),d(this,'_entities',new Map()),(this['_univerInstanceService']=_0x31dfd4,this[_0x38d48a(0x19d)]=_0x19be20,this[_0x38d48a(0x1cf)]=_0x30f0ea,this[_0x38d48a(0x18a)]());}async[_0x5baa88(0x16d)](_0x1fcb74){var _0x2caba6=_0x5baa88;return this[_0x2caba6(0x1ae)][_0x2caba6(0x135)](_0x1fcb74)||await this[_0x2caba6(0x173)](_0x1fcb74),this[_0x2caba6(0x1ae)][_0x2caba6(0x1a2)](_0x1fcb74);}[_0x5baa88(0x18a)](){var _0x42a5d4=_0x5baa88;this['_univerInstanceService'][_0x42a5d4(0x1b8)](_0x476fde[_0x42a5d4(0x14a)])[_0x42a5d4(0x144)](_0x34f785(this['dispose$']))['subscribe'](async _0x12c069=>{var _0xbb092=_0x42a5d4;const _0x21c581=_0x12c069[_0xbb092(0x180)]();this[_0xbb092(0x1ae)][_0xbb092(0x135)](_0x21c581)||this[_0xbb092(0x173)](_0x21c581);}),this[_0x42a5d4(0x195)][_0x42a5d4(0x18c)](_0x476fde[_0x42a5d4(0x14a)])[_0x42a5d4(0x144)](_0x34f785(this[_0x42a5d4(0x1cb)]))[_0x42a5d4(0x17c)](_0x308ce8=>{var _0x1ba3a1=_0x42a5d4;const _0x3f486b=_0x308ce8['getUnitId'](),_0x522af1=this['_entities'][_0x1ba3a1(0x1a2)](_0x3f486b);_0x522af1==null||_0x522af1[_0x1ba3a1(0x1ca)]();});}async[_0x5baa88(0x173)](_0x14ce46){var _0x202198=_0x5baa88;const _0x5bf929=await this[_0x202198(0x1cf)]['requireSession'](_0x14ce46),_0x5e7f08=this[_0x202198(0x19d)]['createInstance'](w,_0x14ce46,_0x5bf929);return _0x5e7f08[_0x202198(0x1be)](),this[_0x202198(0x1ae)][_0x202198(0x169)](_0x14ce46,_0x5e7f08),_0x5e7f08;}};function _0x505a(_0x7f7598,_0xacaeb4){var _0x4c13b7=_0x4c13();return _0x505a=function(_0x505a95,_0x51b335){_0x505a95=_0x505a95-0x126;var _0xb03eb5=_0x4c13b7[_0x505a95];return _0xb03eb5;},_0x505a(_0x7f7598,_0xacaeb4);}I=Z([f(0x0,_0x6a6c5),f(0x1,_0x5ac674(_0x2df4bc)),f(0x2,_0x5ac674(_0x257046))],I);var h=(_0x292296=>(_0x292296[_0x5baa88(0x191)]=_0x5baa88(0x1c2),_0x292296['IDLE']=_0x5baa88(0x14d),_0x292296['FOLLOWING']=_0x5baa88(0x12a),_0x292296[_0x5baa88(0x1bf)]=_0x5baa88(0x18b),_0x292296['PRESENTING']=_0x5baa88(0x1b7),_0x292296))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let w=class extends _0x323762{constructor(_0x59f8b0,_0xc72dac,_0x30ade8,_0x49fb0b,_0x1087dd){var _0x48319e=_0x5baa88;super(),d(this,'_status$',new _0x5c7498('idle')),d(this,_0x48319e(0x18d),this[_0x48319e(0x162)][_0x48319e(0x1a3)]()),d(this,_0x48319e(0x18a),!0x1),d(this,_0x48319e(0x131),null),d(this,_0x48319e(0x170),null),(this[_0x48319e(0x1b6)]=_0x59f8b0,this[_0x48319e(0x15d)]=_0xc72dac,this[_0x48319e(0x15c)]=_0x30ade8,this[_0x48319e(0x17d)]=_0x49fb0b,this[_0x48319e(0x176)]=_0x1087dd);}get['_status'](){var _0x5e91b4=_0x5baa88;return this['_status$'][_0x5e91b4(0x1a5)]();}[_0x5baa88(0x1ca)](){var _0xa51d65=_0x5baa88,_0x2b9137;(_0x2b9137=this[_0xa51d65(0x131)])==null||_0x2b9137[_0xa51d65(0x1ca)](),this[_0xa51d65(0x162)][_0xa51d65(0x13d)]('idle'),this['_status$']['complete']();}[_0x5baa88(0x1be)](){var _0x44dd26=_0x5baa88;this[_0x44dd26(0x18a)]||(this[_0x44dd26(0x18a)]=!0x0,this[_0x44dd26(0x15d)][_0x44dd26(0x185)][_0x44dd26(0x144)](_0x34f785(this[_0x44dd26(0x1cb)]))[_0x44dd26(0x17c)](_0x30fb76=>{var _0x1e76be=_0x44dd26;switch(_0x30fb76){case _0x1bb2ed[_0x1e76be(0x191)]:this['_handleOffline']();break;case _0x1bb2ed[_0x1e76be(0x148)]:this[_0x1e76be(0x183)]();break;}}),this[_0x44dd26(0x15d)]['event$'][_0x44dd26(0x144)](_0x34f785(this[_0x44dd26(0x1cb)]))['subscribe'](_0x3c06b3=>{var _0x3c8308=_0x44dd26;const {eventID:_0x32f977}=_0x3c06b3;switch(_0x32f977){case _0x5d49dc[_0x3c8308(0x153)]:this[_0x3c8308(0x132)](_0x3c06b3);break;case _0x5d49dc[_0x3c8308(0x13c)]:this[_0x3c8308(0x1bd)](_0x3c06b3);break;case _0x5d49dc[_0x3c8308(0x129)]:this['_handleTerminate']();break;case _0x5d49dc[_0x3c8308(0x1a6)]:this[_0x3c8308(0x134)](_0x3c06b3);break;}}));}[_0x5baa88(0x168)](){var _0x5b5fec=_0x5baa88;this[_0x5b5fec(0x15d)][_0x5b5fec(0x18e)]({'eventID':_0x5d49dc[_0x5b5fec(0x1b3)],'data':{'unitID':this[_0x5b5fec(0x1b6)],'userID':this[_0x5b5fec(0x15d)][_0x5b5fec(0x1aa)]()}},this[_0x5b5fec(0x1b6)]);}['stopPresenting'](){var _0x2e7b70=_0x5baa88;this[_0x2e7b70(0x1c9)]===_0x2e7b70(0x1b7)&&(this[_0x2e7b70(0x162)][_0x2e7b70(0x13d)](_0x2e7b70(0x14d)),this['_collabSession'][_0x2e7b70(0x18e)]({'eventID':_0x5d49dc[_0x2e7b70(0x129)],'data':{'unitID':this[_0x2e7b70(0x1b6)]}},this['_unitID']));}[_0x5baa88(0x160)](){var _0x3da0ef=_0x5baa88;this[_0x3da0ef(0x1c9)]===_0x3da0ef(0x18b)&&(this[_0x3da0ef(0x162)]['next']('following'),this[_0x3da0ef(0x137)]());}[_0x5baa88(0x1a0)](){var _0x69ba91=_0x5baa88;this['_status']===_0x69ba91(0x12a)&&this[_0x69ba91(0x1ab)]();}[_0x5baa88(0x132)](_0x2fa867){var _0x28ca27=_0x5baa88;const {presenter:_0x3f4eff}=_0x2fa867['data'],_0x3f191c=this[_0x28ca27(0x15d)][_0x28ca27(0x1aa)]();this[_0x28ca27(0x170)]=_0x3f4eff,_0x3f4eff===_0x3f191c?(this[_0x28ca27(0x1ab)](),this[_0x28ca27(0x194)]()):this[_0x28ca27(0x1c9)]!=='not-following'&&(this[_0x28ca27(0x1b4)](),this[_0x28ca27(0x137)]());}['_fetchOperations'](){var _0x2046e9=_0x5baa88;const _0x5a4608={'eventID':_0x5d49dc['LIVESHARE_FETCH_OPERATIONS']};this[_0x2046e9(0x15d)][_0x2046e9(0x18e)](_0x5a4608,this[_0x2046e9(0x1b6)]);}['_handleTerminate'](){var _0x2cf420=_0x5baa88;this['_presenter']=null,this[_0x2cf420(0x1c9)]!=='presenting'&&this[_0x2cf420(0x17f)]();}[_0x5baa88(0x134)](_0x54bcac){var _0x41e946=_0x5baa88;if(this[_0x41e946(0x1c9)]===_0x41e946(0x12a)&&this['_presenter']===_0x54bcac[_0x41e946(0x161)]['memberID']){const _0x6fc8a3=_0x2e7d6b(_0x54bcac[_0x41e946(0x161)])[_0x41e946(0x174)][_0x41e946(0x158)]()[_0x41e946(0x151)](_0x1d502e=>_0x1d502e['id']===_0x44a377['id']);if(_0x6fc8a3){const _0x550ddb=_0x6fc8a3[_0x41e946(0x133)][_0x41e946(0x142)],_0x68a95c=_0x6fc8a3[_0x41e946(0x133)]['sheet']['id'];setTimeout(()=>{var _0xacd93e=_0x41e946;this[_0xacd93e(0x176)][_0xacd93e(0x197)](_0x3f8280['id'],{'unitId':_0x550ddb,'subUnitId':_0x68a95c},{'fromCollab':!0x0});});}}}[_0x5baa88(0x194)](){var _0x1cf1e3=_0x5baa88;this[_0x1cf1e3(0x162)][_0x1cf1e3(0x13d)](_0x1cf1e3(0x1b7));const _0x1acd0b=new Map(),_0x204fbd=this['_commandDisposable']=new _0x468b9a();_0x204fbd[_0x1cf1e3(0x16c)](_0x44bf91(()=>{var _0x24782b=_0x1cf1e3;_0x1acd0b['forEach'](_0x1b4b6c=>_0x1b4b6c['complete']()),_0x1acd0b[_0x24782b(0x192)]();})),_0x204fbd[_0x1cf1e3(0x16c)](this[_0x1cf1e3(0x176)]['onCommandExecuted'](_0x48aeb5=>{var _0x569b52=_0x1cf1e3,_0x340c7e;if(_0x48aeb5[_0x569b52(0x166)]!==_0x365184[_0x569b52(0x1ac)]||!this[_0x569b52(0x17d)][_0x569b52(0x14b)](_0x48aeb5['id']))return;const {id:_0x3d7023}=_0x48aeb5;let _0x2852b7;_0x1acd0b[_0x569b52(0x135)](_0x3d7023)?_0x2852b7=_0x1acd0b[_0x569b52(0x1a2)](_0x3d7023):(_0x2852b7=new _0x289af7(),_0x1acd0b[_0x569b52(0x169)](_0x3d7023,_0x2852b7),_0x2852b7['pipe'](_0x3a0090((_0x340c7e=this[_0x569b52(0x15c)]['getConfig'](Pe))!=null?_0x340c7e:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x569b52(0x17c)](_0xf92ee3=>{var _0x4e79b7=_0x569b52;this['_collabSession'][_0x4e79b7(0x18e)]({'eventID':_0x5d49dc['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x4e79b7(0x1b6)],'operations':{[_0xf92ee3['id']]:{'id':_0xf92ee3['id'],'params':JSON[_0x4e79b7(0x13a)](_0xf92ee3['params'])}}}},this['_unitID']);})),_0x2852b7[_0x569b52(0x13d)](_0x48aeb5);})),this[_0x1cf1e3(0x17d)][_0x1cf1e3(0x171)](this[_0x1cf1e3(0x1b6)])[_0x1cf1e3(0x150)](_0x27ee98=>this[_0x1cf1e3(0x15d)]['send']({'eventID':_0x5d49dc[_0x1cf1e3(0x13c)],'data':{'unitID':this['_unitID'],'operations':{[_0x27ee98['id']]:{'id':_0x27ee98['id'],'params':JSON['stringify'](_0x27ee98[_0x1cf1e3(0x133)])}}}},this[_0x1cf1e3(0x1b6)]));}[_0x5baa88(0x1b4)](){var _0x3bb04a=_0x5baa88,_0x36d752;this[_0x3bb04a(0x162)][_0x3bb04a(0x13d)](_0x3bb04a(0x14d)),(_0x36d752=this[_0x3bb04a(0x131)])==null||_0x36d752[_0x3bb04a(0x1ca)](),this[_0x3bb04a(0x131)]=null;}[_0x5baa88(0x137)](){var _0x51801a=_0x5baa88,_0x3b6472;(_0x3b6472=this[_0x51801a(0x131)])==null||_0x3b6472[_0x51801a(0x1ca)](),this['_status$'][_0x51801a(0x13d)](_0x51801a(0x12a));}[_0x5baa88(0x17f)](){var _0x556ec2=_0x5baa88,_0x31b160;this[_0x556ec2(0x162)]['next'](_0x556ec2(0x14d)),(_0x31b160=this[_0x556ec2(0x131)])==null||_0x31b160[_0x556ec2(0x1ca)](),this['_commandDisposable']=null;}[_0x5baa88(0x1ab)](){var _0x4394fb=_0x5baa88,_0x56a2b1;this[_0x4394fb(0x162)][_0x4394fb(0x13d)](_0x4394fb(0x18b)),(_0x56a2b1=this[_0x4394fb(0x131)])==null||_0x56a2b1[_0x4394fb(0x1ca)]();}['_handleOperation'](_0x196027){var _0x4e8fe7=_0x5baa88;if(['presenting',_0x4e8fe7(0x18b),_0x4e8fe7(0x1c2)][_0x4e8fe7(0x1c3)](this['_status'])||!_0x196027[_0x4e8fe7(0x161)][_0x4e8fe7(0x178)]||_0x196027[_0x4e8fe7(0x161)][_0x4e8fe7(0x178)]===this[_0x4e8fe7(0x15d)][_0x4e8fe7(0x1aa)]())return;this[_0x4e8fe7(0x1c9)]===_0x4e8fe7(0x14d)&&this[_0x4e8fe7(0x137)]();const _0x10ee94=_0x196027[_0x4e8fe7(0x161)][_0x4e8fe7(0x172)];Object[_0x4e8fe7(0x187)](_0x10ee94)[_0x4e8fe7(0x150)](_0x5b816a=>{var _0x3b0eb9=_0x4e8fe7;this[_0x3b0eb9(0x176)]['executeCommand'](_0x5b816a['id'],_0x5b816a[_0x3b0eb9(0x133)]?JSON[_0x3b0eb9(0x143)](_0x5b816a[_0x3b0eb9(0x133)]):null,{'fromCollab':!0x0});});}[_0x5baa88(0x163)](){var _0x53520d=_0x5baa88,_0x3e21dd;this[_0x53520d(0x162)][_0x53520d(0x13d)](_0x53520d(0x1c2)),(_0x3e21dd=this[_0x53520d(0x131)])==null||_0x3e21dd[_0x53520d(0x1ca)]();}[_0x5baa88(0x183)](){var _0x1cd500=_0x5baa88;this['_status$'][_0x1cd500(0x13d)](_0x1cd500(0x14d)),this[_0x1cd500(0x157)]();}};w=Z([f(0x2,_0x537e94),f(0x3,_0x5ac674(L)),f(0x4,_0x2b092b)],w);function Te(){var _0x2c8a51=_0x5baa88;const _0x6c538f=_0x595637(I),_0x3570a5=_0x595637(_0x6a6c5),_0x58b26c=_0x5a552f(()=>_0x3570a5[_0x2c8a51(0x140)](_0x476fde['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x273507,_0x43f526]=_0x4e7a17(null),[_0x44d3f8,_0x5d4fab]=_0x4e7a17(h[_0x2c8a51(0x1c0)]),_0x122a0f=_0x5de855(null);return _0x359dd9(()=>(_0x58b26c&&_0x6c538f[_0x2c8a51(0x16d)](_0x58b26c[_0x2c8a51(0x180)]())['then'](_0x403fad=>{var _0x10f347=_0x2c8a51;_0x43f526(_0x403fad),_0x122a0f[_0x10f347(0x1b9)]=_0x403fad['status$'][_0x10f347(0x17c)](_0x466b13=>{_0x5d4fab(_0x466b13);});}),()=>{var _0x4bf9de=_0x2c8a51,_0xa69a7;(_0xa69a7=_0x122a0f['current'])==null||_0xa69a7[_0x4bf9de(0x1af)](),_0x122a0f[_0x4bf9de(0x1b9)]=null;}),[_0x58b26c,_0x6c538f]),_0x273507?_0x34107d(_0x527d10,{'align':_0x2c8a51(0x190),'disabled':_0x44d3f8===h[_0x2c8a51(0x191)],'className':_0x2c8a51(0x1a7),'overlay':_0x34107d($e,{'status':_0x44d3f8,'coordinator':_0x273507}),'children':_0x34107d('button',{'className':_0xc8bcb9(_0x2c8a51(0x1c7),{'univer-cursor-not-allowed':_0x44d3f8===h[_0x2c8a51(0x191)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x44d3f8!==h[_0x2c8a51(0x191)]}),'type':'button','children':_0x34107d(B,{'className':'univer-size-4'})})}):null;}function $e(_0x5866e4){var _0x14a12e=_0x5baa88;const {status:_0x547095,coordinator:_0x2ae335}=_0x5866e4;switch(_0x547095){case h[_0x14a12e(0x1c0)]:return _0x34107d(Fe,{'coordinator':_0x2ae335});case h['FOLLOWING']:return _0x34107d(He,{'coordinator':_0x2ae335});case h[_0x14a12e(0x1bf)]:return _0x34107d(je,{'coordinator':_0x2ae335});case h[_0x14a12e(0x191)]:return _0x34107d(Ve,{});case h[_0x14a12e(0x1b1)]:return _0x34107d(Ue,{'coordinator':_0x2ae335});default:return null;}}function Fe(_0x50acf7){var _0x78b839=_0x5baa88;const {coordinator:_0x5b638d}=_0x50acf7;return _0x4b2209(_0x231007,{'children':[_0x34107d('div',{'className':_0x78b839(0x15b),'children':'Present\x20this\x20document'}),_0x34107d(_0x45fc60,{'onClick':()=>_0x5b638d[_0x78b839(0x168)](),'children':'Start'})]});}function He(_0x366060){var _0x15ca23=_0x5baa88;const {coordinator:_0x123231}=_0x366060;return _0x4b2209(_0x231007,{'children':[_0x34107d('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x15ca23(0x186)}),_0x34107d(_0x45fc60,{'onClick':()=>_0x123231['stopFollowing'](),'children':_0x15ca23(0x1cc)})]});}function je(_0x37af43){var _0x5ccfed=_0x5baa88;const {coordinator:_0x2dbcd5}=_0x37af43;return _0x4b2209(_0x231007,{'children':[_0x34107d('div',{'className':_0x5ccfed(0x15b),'children':_0x5ccfed(0x198)}),_0x34107d(_0x45fc60,{'variant':_0x5ccfed(0x1ba),'onClick':()=>_0x2dbcd5[_0x5ccfed(0x160)](),'children':_0x5ccfed(0x1d0)})]});}function Ue(_0x22f238){var _0x518e80=_0x5baa88;const {coordinator:_0x2abc90}=_0x22f238;return _0x4b2209(_0x231007,{'children':[_0x34107d(_0x518e80(0x159),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x34107d(_0x45fc60,{'variant':_0x518e80(0x12c),'onClick':()=>_0x2abc90[_0x518e80(0x165)](),'children':_0x518e80(0x182)})]});}function Ve(){var _0x57297f=_0x5baa88;return _0x34107d(_0x231007,{'children':_0x57297f(0x17e)});}var Me=Object[_0x5baa88(0x1bc)],ke=(_0x8faa5c,_0x189421,_0x4a59fb,_0x5bd7f2)=>{var _0x33af7f=_0x5baa88;for(var _0xde2407=_0x5bd7f2>0x1?void 0x0:_0x5bd7f2?Me(_0x189421,_0x4a59fb):_0x189421,_0x6d97db=_0x8faa5c[_0x33af7f(0x128)]-0x1,_0x21033f;_0x6d97db>=0x0;_0x6d97db--)(_0x21033f=_0x8faa5c[_0x6d97db])&&(_0xde2407=_0x21033f(_0xde2407)||_0xde2407);return _0xde2407;},$=(_0x41771d,_0x425f38)=>(_0x3d1b95,_0x20c16d)=>_0x425f38(_0x3d1b95,_0x20c16d,_0x41771d);let b=class extends _0x51f6c2{constructor(_0x2fe84d,_0xfab69e){var _0x29f728=_0x5baa88;super(),this[_0x29f728(0x19d)]=_0x2fe84d,this[_0x29f728(0x189)]=_0xfab69e,this[_0x29f728(0x1a9)]();}[_0x5baa88(0x1a9)](){var _0x10934e=_0x5baa88;this[_0x10934e(0x1a4)](this[_0x10934e(0x189)][_0x10934e(0x16a)](_0x428af2[_0x10934e(0x12b)],()=>_0x3bec91(Te,this[_0x10934e(0x19d)])));}};b=ke([$(0x0,_0x5ac674(_0x2df4bc)),$(0x1,_0x163c83)],b);var Ge=Object['defineProperty'],We=Object[_0x5baa88(0x1bc)],Ye=(_0x1d48e3,_0x22b056,_0x28c932)=>_0x22b056 in _0x1d48e3?Ge(_0x1d48e3,_0x22b056,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x28c932}):_0x1d48e3[_0x22b056]=_0x28c932,Be=(_0x188662,_0x294e9a,_0x1de047,_0x5a03bd)=>{for(var _0x30d5b7=_0x5a03bd>0x1?void 0x0:_0x5a03bd?We(_0x294e9a,_0x1de047):_0x294e9a,_0x46501f=_0x188662['length']-0x1,_0x4611c0;_0x46501f>=0x0;_0x46501f--)(_0x4611c0=_0x188662[_0x46501f])&&(_0x30d5b7=_0x4611c0(_0x30d5b7)||_0x30d5b7);return _0x30d5b7;},F=(_0x11b59e,_0x8e5e11)=>(_0x5490fa,_0x2e8515)=>_0x8e5e11(_0x5490fa,_0x2e8515,_0x11b59e),J=(_0x36253a,_0x5c7ebb,_0x3045c5)=>Ye(_0x36253a,typeof _0x5c7ebb!=_0x5baa88(0x18f)?_0x5c7ebb+'':_0x5c7ebb,_0x3045c5);const Ze=_0x5baa88(0x188);let O=class extends _0x5cf9ba{constructor(_0x1ee9f6=T,_0x1c2514,_0x424dca){var _0x17bbb1=_0x5baa88;super(),this[_0x17bbb1(0x19c)]=_0x1ee9f6,this[_0x17bbb1(0x19d)]=_0x1c2514,this[_0x17bbb1(0x15c)]=_0x424dca;const {..._0x1c1531}=_0x2ec77f({},T,this['_config']);this[_0x17bbb1(0x15c)][_0x17bbb1(0x184)](Oe,_0x1c1531);}[_0x5baa88(0x138)](){var _0x3071eb=_0x5baa88;_0x5b4057(this[_0x3071eb(0x19d)],_0x54df49([[L],[I],[m],[b]],this[_0x3071eb(0x19c)][_0x3071eb(0x12d)])),_0x1652d1(this[_0x3071eb(0x19d)],[[m]]);}[_0x5baa88(0x13f)](){var _0x47197a=_0x5baa88;_0x1652d1(this[_0x47197a(0x19d)],[[b]]);}};J(O,'type',_0x476fde[_0x5baa88(0x14f)]),J(O,'pluginName',Ze),O=Be([_0x3d9c8c(_0x5156dc),F(0x1,_0x5ac674(_0x2df4bc)),F(0x2,_0x537e94)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x5522(_0x412ca0,_0x545a42){var _0xec0561=_0xec05();return _0x5522=function(_0x55223c,_0x17a718){_0x55223c=_0x55223c-0x103;var _0x2f8d0f=_0xec0561[_0x55223c];return _0x2f8d0f;},_0x5522(_0x412ca0,_0x545a42);}function _0xec05(){var _0x3ecbfc=['CollaborationSessionService','div','_config','Dropdown','createInstance','registerSharedOperation','requireSession','UNIVER_SHEET','570904uLBJBw','concat','touchDependencies','LIVESHARE_NEW_HOST','ICommandService','univer-size-4','getLiveShareCoordinator','default','_commandService','onStarting','UNIVER_UNKNOWN','_entities','LiveShareService','Stop\x20following','following','_liveShareService','_stopFollowing','getTypeOfUnitAdded$','_collabSessionService','Start','toStringTag','symbol','_status','jsx','defIds','useRef','@univerjs/design','_uiPartsService','InsertSheetMutation','FOLLOWING','SessionStatus','You\x27re\x20following\x20the\x20presenter','_startPresenting','reverse','Fragment','LiveShareStatus','dispose$','extend','registerDependencies','assign','use','attrs','icon','entries','fill','live-share.config','forwardRef','_status$','children','HEADER_MENU','react/jsx-runtime','2353764mXhsyD','idle','Present\x20this\x20document','parseProtocolChangeset','_collabSession','_fetchOperations','disposeWithMe','string','defs','Plugin','stringify','_startLiveShareCoordinator','908946qmCsNT','UniverLiveSharePlugin','NOT_FOLLOWING','amd','0\x200\x2016\x2016','_handleTerminate','getMemberID','toDisposable','jsxs','_injector','dispose','1em','@univerjs-pro/collaboration-client','throttleTime','NEW_CHANGESETS','mergeOverrideWithDependencies','_handleOffline','CommandType','@univerjs/ui','current','getCurrentTypeOfUnit$','forEach','evenodd','Inject','DependentOn','stopFollowing','trim','PRESENTING','startFollowing','presenting','getConfig','_handleNewHost','clsx','_reporters','LiveShareController','from','memberID','next','indexOf','You\x27are\x20offline.','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','live-share-single','_startFollowing','5594672kdvLmB','length','_configService','unitId','not-following','_univerInstanceService','useState','LiveShareCoordinator','_init','registerInitialStateReporter','_handleOperation','merge','shouldShareOperation','connectInjector','rxjs/operators','univer-w-full\x20univer-mb-3\x20univer-text-sm','map','UniverProLiveShare','_mountLiveShare','14iBGfLJ','onCommandExecuted','init','currentColor','executeCommand','LiveShare','random','getOwnPropertySymbols','unsubscribe','univerjs-icon\x20univerjs-icon-','LiveShareSingle','path','LIVESHARE_OPERATION','set','2519415IaNtrE','none','React','operators','className','DesktopLiveShareController','_unitID','_sharedOperations','LIVESHARE_FETCH_OPERATIONS','Disposable','then','mutations','SetZoomRatioOperation','@univerjs/sheets','getOwnPropertyDescriptor','@univerjs/core','parse','_handleNewChangeSets','status$','params','_presenter','sessionStatus$','UniverInstanceType','OFFLINE','get','Module','find','substring','values','IDLE','operations','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','createElement','getInitialStates','IUniverInstanceService','subscribe','getUnitId','button','type','rxjs','data','470324BjHWaA','clear','_commandDisposable','pipe','Stop\x20presenting','OPERATION','defineProperty','stopPresenting','has','displayName','mask','UniverProCollaborationClient','SetWorksheetActiveOperation','LIVESHARE_TERMINATE','tryStartPresenting','_stopPresenting','UniverCore','svg','object','UniverSheets','colorChannel1','_handleOnline','hasOwnProperty','992757oClfMN','tag','IUIPartsService','SAME_OPERATION_SHARE_INTERVAL','function','react','idSuffix','override','replace','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','Button','_beIdle','LIVESHARE_REQUEST_HOST','UniverUi','UniverDesign','useDependency','IConfigService','takeUntil','add','UNIVER_LIVE_SHARE_PLUGIN','offline','CollaborationEvent','delete','send','complete','UniverSheetsUi','RxDisposable','sheet','getTypeOfUnitDisposed$','xlink:href','prototype','BuiltInUIPart','Injector'];_0xec05=function(){return _0x3ecbfc;};return _0xec05();}(function(_0x2bdba5,_0x1b77b4){var _0x31c250=_0x5522,_0x124dc4=_0x2bdba5();while(!![]){try{var _0x33e58e=parseInt(_0x31c250(0x1cd))/0x1+parseInt(_0x31c250(0x119))/0x2+-parseInt(_0x31c250(0x1e4))/0x3+-parseInt(_0x31c250(0x14c))/0x4+-parseInt(_0x31c250(0x1a4))/0x5+-parseInt(_0x31c250(0x158))/0x6*(-parseInt(_0x31c250(0x196))/0x7)+parseInt(_0x31c250(0x183))/0x8;if(_0x33e58e===_0x1b77b4)break;else _0x124dc4['push'](_0x124dc4['shift']());}catch(_0x4f623b){_0x124dc4['push'](_0x124dc4['shift']());}}}(_0xec05,0x51c01),function(_0x208026,_0x242146){var _0x4f5853=_0x5522;typeof exports==_0x4f5853(0x1df)&&typeof module<'u'?_0x242146(exports,require(_0x4f5853(0x164)),require('@univerjs/core'),require(_0x4f5853(0x1b1)),require('@univerjs/sheets-ui'),require(_0x4f5853(0x16a)),require(_0x4f5853(0x14b)),require(_0x4f5853(0x133)),require(_0x4f5853(0x1e9)),require('@univerjs-pro/collaboration'),require(_0x4f5853(0x1cb)),require(_0x4f5853(0x191))):typeof define==_0x4f5853(0x1e8)&&define[_0x4f5853(0x15b)]?define(['exports',_0x4f5853(0x164),_0x4f5853(0x1b3),'@univerjs/sheets','@univerjs/sheets-ui',_0x4f5853(0x16a),_0x4f5853(0x14b),_0x4f5853(0x133),_0x4f5853(0x1e9),'@univerjs-pro/collaboration',_0x4f5853(0x1cb),'rxjs/operators'],_0x242146):(_0x208026=typeof globalThis<'u'?globalThis:_0x208026||self,_0x242146(_0x208026[_0x4f5853(0x194)]={},_0x208026[_0x4f5853(0x1d8)],_0x208026[_0x4f5853(0x1dd)],_0x208026[_0x4f5853(0x1e0)],_0x208026[_0x4f5853(0x109)],_0x208026[_0x4f5853(0x1f1)],_0x208026[_0x4f5853(0x1a6)],_0x208026[_0x4f5853(0x1f2)],_0x208026['React'],_0x208026['UniverProCollaboration'],_0x208026[_0x4f5853(0x1cb)],_0x208026[_0x4f5853(0x1cb)][_0x4f5853(0x1a7)]));}(this,function(_0x12e219,_0x536f61,_0x598b3e,_0x219f43,_0x5d24ea,_0x57153a,_0x304ff8,_0x16b02c,_0x172e02,_0x4eafb2,_0x421976,_0x32e90b){'use strict';var _0x42ab61=_0x5522;var _0x358811=Object['defineProperty'],_0x2ae69c=(_0x5cf5ea,_0x22c7da,_0x361a06)=>_0x22c7da in _0x5cf5ea?_0x358811(_0x5cf5ea,_0x22c7da,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x361a06}):_0x5cf5ea[_0x22c7da]=_0x361a06,_0x3b2dfa=(_0x2128d5,_0x1a7fcf,_0x187f85)=>_0x2ae69c(_0x2128d5,typeof _0x1a7fcf!='symbol'?_0x1a7fcf+'':_0x1a7fcf,_0x187f85);const _0xbded63=_0x42ab61(0x146),_0x4c2c3f={};class _0x2b64dc extends _0x598b3e[_0x42ab61(0x1ad)]{constructor(){var _0xf993a2=_0x42ab61;super(...arguments),_0x3b2dfa(this,'_sharedOperations',new Set()),_0x3b2dfa(this,_0xf993a2(0x179),new Set());}[_0x42ab61(0x116)](_0x40ba13){var _0x430102=_0x42ab61;return this[_0x430102(0x1ab)][_0x430102(0x1f6)](_0x40ba13),_0x598b3e['toDisposable'](()=>this[_0x430102(0x1ab)]['delete'](_0x40ba13));}[_0x42ab61(0x18c)](_0x2a3ecb){var _0x5b62a6=_0x42ab61;return this[_0x5b62a6(0x179)][_0x5b62a6(0x1f6)](_0x2a3ecb),_0x598b3e[_0x5b62a6(0x15f)](()=>this[_0x5b62a6(0x179)][_0x5b62a6(0x106)](_0x2a3ecb));}[_0x42ab61(0x18f)](_0x194fda){var _0x2417a3=_0x42ab61;return this[_0x2417a3(0x1ab)][_0x2417a3(0x1d5)](_0x194fda);}['getInitialStates'](_0x579079){var _0x29559b=_0x42ab61;return Array[_0x29559b(0x17b)](this[_0x29559b(0x179)])[_0x29559b(0x193)](_0x2b8a50=>_0x2b8a50(_0x579079));}}var _0x40017f=Object[_0x42ab61(0x1b2)],_0x3815a8=(_0x4dec46,_0x4084e4,_0x2592e7,_0x211dd6)=>{var _0x2c50fb=_0x42ab61;for(var _0x1edf52=_0x211dd6>0x1?void 0x0:_0x211dd6?_0x40017f(_0x4084e4,_0x2592e7):_0x4084e4,_0x81d0a1=_0x4dec46[_0x2c50fb(0x184)]-0x1,_0x57e837;_0x81d0a1>=0x0;_0x81d0a1--)(_0x57e837=_0x4dec46[_0x81d0a1])&&(_0x1edf52=_0x57e837(_0x1edf52)||_0x1edf52);return _0x1edf52;},_0x3480d9=(_0x185487,_0x3dcf93)=>(_0x537ab3,_0x42752b)=>_0x3dcf93(_0x537ab3,_0x42752b,_0x185487);let _0x22f3a3=class extends _0x598b3e['Disposable']{constructor(_0xea4005){var _0x19e6a0=_0x42ab61;super(),this['_liveShareService']=_0xea4005,this[_0x19e6a0(0x18b)]();}[_0x42ab61(0x18b)](){var _0x12fc0c=_0x42ab61;[_0x5d24ea[_0x12fc0c(0x1b0)]['id'],_0x5d24ea['SetScrollOperation']['id'],_0x219f43[_0x12fc0c(0x1d9)]['id']][_0x12fc0c(0x16d)](_0x43bb14=>{var _0x37bcb2=_0x12fc0c;this[_0x37bcb2(0x152)](this['_liveShareService'][_0x37bcb2(0x116)](_0x43bb14));});}};_0x22f3a3=_0x3815a8([_0x3480d9(0x0,_0x598b3e[_0x42ab61(0x16f)](_0x2b64dc))],_0x22f3a3);var _0xeb7d39=function(){var _0x39e640=_0x42ab61;return _0xeb7d39=Object[_0x39e640(0x140)]||function(_0x36c40e){var _0x162f01=_0x39e640;for(var _0xd80f85,_0xc92760=0x1,_0x1ac729=arguments[_0x162f01(0x184)];_0xc92760<_0x1ac729;_0xc92760++){_0xd80f85=arguments[_0xc92760];for(var _0x41c0cd in _0xd80f85)Object['prototype'][_0x162f01(0x1e3)]['call'](_0xd80f85,_0x41c0cd)&&(_0x36c40e[_0x41c0cd]=_0xd80f85[_0x41c0cd]);}return _0x36c40e;},_0xeb7d39['apply'](this,arguments);},_0x57fd8b=function(_0x516f18,_0x276687){var _0x2b157a=_0x42ab61,_0x356398={};for(var _0x504e2d in _0x516f18)Object[_0x2b157a(0x10e)]['hasOwnProperty']['call'](_0x516f18,_0x504e2d)&&_0x276687[_0x2b157a(0x17e)](_0x504e2d)<0x0&&(_0x356398[_0x504e2d]=_0x516f18[_0x504e2d]);if(_0x516f18!=null&&typeof Object[_0x2b157a(0x19d)]=='function'){for(var _0x4f1a54=0x0,_0x504e2d=Object[_0x2b157a(0x19d)](_0x516f18);_0x4f1a54<_0x504e2d['length'];_0x4f1a54++)_0x276687[_0x2b157a(0x17e)](_0x504e2d[_0x4f1a54])<0x0&&Object[_0x2b157a(0x10e)]['propertyIsEnumerable']['call'](_0x516f18,_0x504e2d[_0x4f1a54])&&(_0x356398[_0x504e2d[_0x4f1a54]]=_0x516f18[_0x504e2d[_0x4f1a54]]);}return _0x356398;},_0x1953c8=_0x172e02[_0x42ab61(0x147)](function(_0x56de9e,_0x5c79a4){var _0x4878cd=_0x42ab61,_0x147ec3=_0x56de9e[_0x4878cd(0x143)],_0x1ce858=_0x56de9e['id'],_0x30137d=_0x56de9e[_0x4878cd(0x1a8)],_0x3d14a7=_0x56de9e['extend'],_0x4c1b95=_0x57fd8b(_0x56de9e,['icon','id',_0x4878cd(0x1a8),_0x4878cd(0x13e)]),_0x5c0b7b=_0x4878cd(0x19f)['concat'](_0x1ce858,'\x20')['concat'](_0x30137d||'')[_0x4878cd(0x172)](),_0x194565=_0x172e02[_0x4878cd(0x132)]('_'[_0x4878cd(0x11a)](_0x5699fe()));return _0x1f257d(_0x147ec3,''[_0x4878cd(0x11a)](_0x1ce858),{'defIds':_0x147ec3[_0x4878cd(0x131)],'idSuffix':_0x194565[_0x4878cd(0x16b)]},_0xeb7d39({'ref':_0x5c79a4,'className':_0x5c0b7b},_0x4c1b95),_0x3d14a7);});function _0x1f257d(_0x1a27b4,_0x33239e,_0xdda413,_0x59c7a1,_0x490b96){var _0x596f51=_0x42ab61;return _0x172e02[_0x596f51(0x1c4)](_0x1a27b4[_0x596f51(0x1e5)],_0xeb7d39(_0xeb7d39({'key':_0x33239e},_0x117b54(_0x1a27b4,_0xdda413,_0x490b96)),_0x59c7a1),(_0x36973e(_0x1a27b4,_0xdda413)[_0x596f51(0x149)]||[])[_0x596f51(0x193)](function(_0x7164f7,_0x333be6){var _0x5b4362=_0x596f51;return _0x1f257d(_0x7164f7,''[_0x5b4362(0x11a)](_0x33239e,'-')[_0x5b4362(0x11a)](_0x1a27b4[_0x5b4362(0x1e5)],'-')[_0x5b4362(0x11a)](_0x333be6),_0xdda413,void 0x0,_0x490b96);}));}function _0x117b54(_0x3a30a7,_0x3a2992,_0xf9bd97){var _0x38cd9f=_0x42ab61,_0x4d892f=_0xeb7d39({},_0x3a30a7[_0x38cd9f(0x142)]);_0xf9bd97!=null&&_0xf9bd97[_0x38cd9f(0x1e1)]&&_0x4d892f[_0x38cd9f(0x145)]===_0x38cd9f(0x1e1)&&(_0x4d892f[_0x38cd9f(0x145)]=_0xf9bd97[_0x38cd9f(0x1e1)]),_0x3a30a7['tag']===_0x38cd9f(0x1d7)&&_0x4d892f['id']&&(_0x4d892f['id']=_0x4d892f['id']+_0x3a2992['idSuffix']),Object[_0x38cd9f(0x144)](_0x4d892f)['forEach'](function(_0x4ee262){var _0x476d91=_0x38cd9f,_0x430a9b=_0x4ee262[0x0],_0x2c2bb7=_0x4ee262[0x1];_0x430a9b===_0x476d91(0x1d7)&&typeof _0x2c2bb7==_0x476d91(0x153)&&(_0x4d892f[_0x430a9b]=_0x2c2bb7[_0x476d91(0x1ec)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x3a2992[_0x476d91(0x1ea)],')')));});var _0x594094=_0x3a2992[_0x38cd9f(0x131)];return!_0x594094||_0x594094['length']===0x0||(_0x3a30a7[_0x38cd9f(0x1e5)]===_0x38cd9f(0x141)&&_0x4d892f[_0x38cd9f(0x10d)]&&(_0x4d892f[_0x38cd9f(0x10d)]=_0x4d892f[_0x38cd9f(0x10d)]+_0x3a2992[_0x38cd9f(0x1ea)]),Object[_0x38cd9f(0x144)](_0x4d892f)[_0x38cd9f(0x16d)](function(_0x2750f5){var _0x1d2a1e=_0x38cd9f,_0x22fdeb=_0x2750f5[0x0],_0x2a23ba=_0x2750f5[0x1];typeof _0x2a23ba==_0x1d2a1e(0x153)&&(_0x4d892f[_0x22fdeb]=_0x2a23ba['replace'](/url\(#(.*)\)/,'url(#$1'[_0x1d2a1e(0x11a)](_0x3a2992[_0x1d2a1e(0x1ea)],')')));})),_0x4d892f;}function _0x36973e(_0x554abb,_0xe44927){var _0x5dcf93=_0x42ab61,_0x2de37c,_0x5397f2=_0xe44927[_0x5dcf93(0x131)];return!_0x5397f2||_0x5397f2[_0x5dcf93(0x184)]===0x0?_0x554abb:_0x554abb[_0x5dcf93(0x1e5)]===_0x5dcf93(0x154)&&(!((_0x2de37c=_0x554abb[_0x5dcf93(0x149)])===null||_0x2de37c===void 0x0)&&_0x2de37c[_0x5dcf93(0x184)])?_0xeb7d39(_0xeb7d39({},_0x554abb),{'children':_0x554abb[_0x5dcf93(0x149)][_0x5dcf93(0x193)](function(_0x2ed3a6){var _0x372aac=_0x5dcf93;return typeof _0x2ed3a6[_0x372aac(0x142)]['id']=='string'&&_0x5397f2&&_0x5397f2['indexOf'](_0x2ed3a6[_0x372aac(0x142)]['id'])>-0x1?_0xeb7d39(_0xeb7d39({},_0x2ed3a6),{'attrs':_0xeb7d39(_0xeb7d39({},_0x2ed3a6[_0x372aac(0x142)]),{'id':_0x2ed3a6[_0x372aac(0x142)]['id']+_0xe44927['idSuffix']})}):_0x2ed3a6;})}):_0x554abb;}function _0x5699fe(){var _0x3011ef=_0x42ab61;return Math[_0x3011ef(0x19c)]()['toString'](0x24)[_0x3011ef(0x1bf)](0x2,0x8);}_0x1953c8[_0x42ab61(0x1d6)]='UniverIcon';var _0xc5eff3={'tag':_0x42ab61(0x1de),'attrs':{'fill':_0x42ab61(0x1a5),'viewBox':_0x42ab61(0x15c),'width':_0x42ab61(0x163),'height':_0x42ab61(0x163)},'children':[{'tag':_0x42ab61(0x1a1),'attrs':{'fill':_0x42ab61(0x199),'d':_0x42ab61(0x1c3)}},{'tag':_0x42ab61(0x1a1),'attrs':{'fill':'currentColor','d':_0x42ab61(0x1ed),'fillRule':_0x42ab61(0x16e),'clipRule':_0x42ab61(0x16e)}}]},_0x4495a7=_0x172e02[_0x42ab61(0x147)](function(_0x22dfce,_0x2071de){var _0x1347e5=_0x42ab61;return _0x172e02[_0x1347e5(0x1c4)](_0x1953c8,Object[_0x1347e5(0x140)]({},_0x22dfce,{'id':_0x1347e5(0x181),'ref':_0x2071de,'icon':_0xc5eff3}));});_0x4495a7[_0x42ab61(0x1d6)]=_0x42ab61(0x1a0);var _0x290b4e=Object[_0x42ab61(0x1b2)],_0x5e5880=(_0x155928,_0x2b631e,_0x1ad659,_0x269ca7)=>{var _0x1a78ff=_0x42ab61;for(var _0x158dbc=_0x269ca7>0x1?void 0x0:_0x269ca7?_0x290b4e(_0x2b631e,_0x1ad659):_0x2b631e,_0x52405f=_0x155928[_0x1a78ff(0x184)]-0x1,_0x116500;_0x52405f>=0x0;_0x52405f--)(_0x116500=_0x155928[_0x52405f])&&(_0x158dbc=_0x116500(_0x158dbc)||_0x158dbc);return _0x158dbc;},_0x4017b2=(_0x64f642,_0x2a681c)=>(_0x4fb8bf,_0x45e0e5)=>_0x2a681c(_0x4fb8bf,_0x45e0e5,_0x64f642);_0x12e219[_0x42ab61(0x17a)]=class extends _0x598b3e[_0x42ab61(0x10a)]{constructor(_0x4f6ef6,_0x25c05a,_0x3bfbd3){var _0xf38fa9=_0x42ab61;super(),_0x3b2dfa(this,'_entities',new Map()),(this[_0xf38fa9(0x188)]=_0x4f6ef6,this[_0xf38fa9(0x161)]=_0x25c05a,this[_0xf38fa9(0x12b)]=_0x3bfbd3,this['_init']());}async[_0x42ab61(0x11f)](_0x7706eb){var _0x1dd563=_0x42ab61;return this[_0x1dd563(0x124)][_0x1dd563(0x1d5)](_0x7706eb)||await this['_startLiveShareCoordinator'](_0x7706eb),this[_0x1dd563(0x124)][_0x1dd563(0x1bc)](_0x7706eb);}[_0x42ab61(0x18b)](){var _0x3bbe37=_0x42ab61;this['_univerInstanceService'][_0x3bbe37(0x12a)](_0x598b3e[_0x3bbe37(0x1ba)][_0x3bbe37(0x118)])[_0x3bbe37(0x1d0)](_0x32e90b[_0x3bbe37(0x1f5)](this[_0x3bbe37(0x13d)]))[_0x3bbe37(0x1c7)](async _0x3472ec=>{var _0xa0f203=_0x3bbe37;const _0x596c46=_0x3472ec[_0xa0f203(0x1c8)]();this[_0xa0f203(0x124)][_0xa0f203(0x1d5)](_0x596c46)||this[_0xa0f203(0x157)](_0x596c46);}),this[_0x3bbe37(0x188)][_0x3bbe37(0x10c)](_0x598b3e[_0x3bbe37(0x1ba)]['UNIVER_SHEET'])['pipe'](_0x32e90b['takeUntil'](this[_0x3bbe37(0x13d)]))['subscribe'](_0x4c9f3f=>{var _0x4be304=_0x3bbe37;const _0x52969d=_0x4c9f3f['getUnitId'](),_0x2d14fb=this[_0x4be304(0x124)][_0x4be304(0x1bc)](_0x52969d);_0x2d14fb==null||_0x2d14fb['dispose']();});}async[_0x42ab61(0x157)](_0x441823){var _0x29a1b3=_0x42ab61;const _0x45693c=await this[_0x29a1b3(0x12b)][_0x29a1b3(0x117)](_0x441823),_0x2f857a=this[_0x29a1b3(0x161)][_0x29a1b3(0x115)](_0x12e219[_0x29a1b3(0x18a)],_0x441823,_0x45693c);return _0x2f857a[_0x29a1b3(0x198)](),this['_entities'][_0x29a1b3(0x1a3)](_0x441823,_0x2f857a),_0x2f857a;}},_0x12e219['LiveShareController']=_0x5e5880([_0x4017b2(0x0,_0x598b3e[_0x42ab61(0x1c6)]),_0x4017b2(0x1,_0x598b3e[_0x42ab61(0x16f)](_0x598b3e['Injector'])),_0x4017b2(0x2,_0x598b3e[_0x42ab61(0x16f)](_0x536f61[_0x42ab61(0x111)]))],_0x12e219['LiveShareController']);var _0x128b7f=(_0x306162=>(_0x306162[_0x42ab61(0x1bb)]=_0x42ab61(0x104),_0x306162[_0x42ab61(0x1c1)]='idle',_0x306162['FOLLOWING']=_0x42ab61(0x127),_0x306162[_0x42ab61(0x15a)]='not-following',_0x306162['PRESENTING']=_0x42ab61(0x175),_0x306162))(_0x128b7f||{});const _0x2cd416=_0x42ab61(0x1e7),_0x16e5bc=0xc8;_0x12e219[_0x42ab61(0x18a)]=class extends _0x598b3e[_0x42ab61(0x10a)]{constructor(_0x52749e,_0x6bc49f,_0x1c59cd,_0x27b71e,_0x12d6e9){var _0xffdf50=_0x42ab61;super(),_0x3b2dfa(this,_0xffdf50(0x148),new _0x421976['BehaviorSubject']('idle')),_0x3b2dfa(this,_0xffdf50(0x1b6),this['_status$']['asObservable']()),_0x3b2dfa(this,_0xffdf50(0x18b),!0x1),_0x3b2dfa(this,_0xffdf50(0x1cf),null),_0x3b2dfa(this,_0xffdf50(0x1b8),null),(this['_unitID']=_0x52749e,this[_0xffdf50(0x150)]=_0x6bc49f,this[_0xffdf50(0x185)]=_0x1c59cd,this[_0xffdf50(0x128)]=_0x27b71e,this[_0xffdf50(0x121)]=_0x12d6e9);}get[_0x42ab61(0x12f)](){var _0x31014b=_0x42ab61;return this[_0x31014b(0x148)]['getValue']();}[_0x42ab61(0x162)](){var _0x3421f4=_0x42ab61,_0x3af9c9;(_0x3af9c9=this[_0x3421f4(0x1cf)])==null||_0x3af9c9[_0x3421f4(0x162)](),this[_0x3421f4(0x148)][_0x3421f4(0x17d)](_0x3421f4(0x14d)),this['_status$'][_0x3421f4(0x108)]();}[_0x42ab61(0x198)](){var _0x1500d0=_0x42ab61;this['_init']||(this['_init']=!0x0,this[_0x1500d0(0x150)][_0x1500d0(0x1b9)]['pipe'](_0x32e90b[_0x1500d0(0x1f5)](this['dispose$']))[_0x1500d0(0x1c7)](_0x6ec489=>{var _0xb67c2b=_0x1500d0;switch(_0x6ec489){case _0x536f61[_0xb67c2b(0x137)][_0xb67c2b(0x1bb)]:this[_0xb67c2b(0x168)]();break;case _0x536f61[_0xb67c2b(0x137)]['ONLINE']:this[_0xb67c2b(0x1e2)]();break;}}),this[_0x1500d0(0x150)]['event$']['pipe'](_0x32e90b['takeUntil'](this[_0x1500d0(0x13d)]))[_0x1500d0(0x1c7)](_0x232b85=>{var _0x5056c6=_0x1500d0;const {eventID:_0x193f38}=_0x232b85;switch(_0x193f38){case _0x4eafb2[_0x5056c6(0x105)][_0x5056c6(0x11c)]:this[_0x5056c6(0x177)](_0x232b85);break;case _0x4eafb2[_0x5056c6(0x105)][_0x5056c6(0x1a2)]:this['_handleOperation'](_0x232b85);break;case _0x4eafb2[_0x5056c6(0x105)][_0x5056c6(0x1da)]:this[_0x5056c6(0x15d)]();break;case _0x4eafb2[_0x5056c6(0x105)][_0x5056c6(0x166)]:this[_0x5056c6(0x1b5)](_0x232b85);break;}}));}[_0x42ab61(0x1db)](){var _0x48851e=_0x42ab61;this[_0x48851e(0x150)][_0x48851e(0x107)]({'eventID':_0x4eafb2[_0x48851e(0x105)][_0x48851e(0x1f0)],'data':{'unitID':this[_0x48851e(0x1aa)],'userID':this[_0x48851e(0x150)][_0x48851e(0x15e)]()}},this[_0x48851e(0x1aa)]);}['stopPresenting'](){var _0x5b0c42=_0x42ab61;this[_0x5b0c42(0x12f)]===_0x5b0c42(0x175)&&(this[_0x5b0c42(0x148)][_0x5b0c42(0x17d)](_0x5b0c42(0x14d)),this[_0x5b0c42(0x150)]['send']({'eventID':_0x4eafb2[_0x5b0c42(0x105)][_0x5b0c42(0x1da)],'data':{'unitID':this[_0x5b0c42(0x1aa)]}},this['_unitID']));}[_0x42ab61(0x174)](){var _0xe2513b=_0x42ab61;this[_0xe2513b(0x12f)]===_0xe2513b(0x187)&&(this[_0xe2513b(0x148)][_0xe2513b(0x17d)]('following'),this[_0xe2513b(0x182)]());}[_0x42ab61(0x171)](){var _0x8e0adf=_0x42ab61;this['_status']===_0x8e0adf(0x127)&&this[_0x8e0adf(0x129)]();}['_handleNewHost'](_0x1b673c){var _0x2e49a0=_0x42ab61;const {presenter:_0xb8aec5}=_0x1b673c[_0x2e49a0(0x1cc)],_0x29915a=this[_0x2e49a0(0x150)][_0x2e49a0(0x15e)]();this['_presenter']=_0xb8aec5,_0xb8aec5===_0x29915a?(this[_0x2e49a0(0x129)](),this['_startPresenting']()):this[_0x2e49a0(0x12f)]!==_0x2e49a0(0x187)&&(this[_0x2e49a0(0x1dc)](),this[_0x2e49a0(0x182)]());}[_0x42ab61(0x151)](){var _0x4a2553=_0x42ab61;const _0x16a14f={'eventID':_0x4eafb2[_0x4a2553(0x105)][_0x4a2553(0x1ac)]};this[_0x4a2553(0x150)][_0x4a2553(0x107)](_0x16a14f,this['_unitID']);}[_0x42ab61(0x15d)](){var _0x2004ee=_0x42ab61;this[_0x2004ee(0x1b8)]=null,this['_status']!==_0x2004ee(0x175)&&this['_beIdle']();}[_0x42ab61(0x1b5)](_0x3e9742){var _0x1af6aa=_0x42ab61;if(this['_status']==='following'&&this['_presenter']===_0x3e9742[_0x1af6aa(0x1cc)][_0x1af6aa(0x17c)]){const _0xeb8477=_0x4eafb2[_0x1af6aa(0x14f)](_0x3e9742[_0x1af6aa(0x1cc)])[_0x1af6aa(0x1af)][_0x1af6aa(0x13a)]()[_0x1af6aa(0x1be)](_0x2f95c3=>_0x2f95c3['id']===_0x219f43[_0x1af6aa(0x135)]['id']);if(_0xeb8477){const _0x594a5d=_0xeb8477[_0x1af6aa(0x1b7)][_0x1af6aa(0x186)],_0x8805e2=_0xeb8477['params'][_0x1af6aa(0x10b)]['id'];setTimeout(()=>{var _0x5990ba=_0x1af6aa;this[_0x5990ba(0x121)][_0x5990ba(0x19a)](_0x219f43['SetWorksheetActiveOperation']['id'],{'unitId':_0x594a5d,'subUnitId':_0x8805e2},{'fromCollab':!0x0});});}}}[_0x42ab61(0x139)](){var _0x21b8e3=_0x42ab61;this['_status$'][_0x21b8e3(0x17d)](_0x21b8e3(0x175));const _0xd643d=new Map(),_0x465f8c=this[_0x21b8e3(0x1cf)]=new _0x598b3e['DisposableCollection']();_0x465f8c[_0x21b8e3(0x1f6)](_0x598b3e['toDisposable'](()=>{var _0x30d64b=_0x21b8e3;_0xd643d['forEach'](_0x48bfab=>_0x48bfab['complete']()),_0xd643d[_0x30d64b(0x1ce)]();})),_0x465f8c['add'](this['_commandService'][_0x21b8e3(0x197)](_0x5d4b32=>{var _0x204931=_0x21b8e3,_0x2b12e0;if(_0x5d4b32[_0x204931(0x1ca)]!==_0x598b3e[_0x204931(0x169)][_0x204931(0x1d2)]||!this['_liveShareService'][_0x204931(0x18f)](_0x5d4b32['id']))return;const {id:_0x3629db}=_0x5d4b32;let _0x3e1fab;_0xd643d[_0x204931(0x1d5)](_0x3629db)?_0x3e1fab=_0xd643d['get'](_0x3629db):(_0x3e1fab=new _0x421976['Subject'](),_0xd643d['set'](_0x3629db,_0x3e1fab),_0x3e1fab[_0x204931(0x1d0)](_0x32e90b[_0x204931(0x165)]((_0x2b12e0=this[_0x204931(0x185)][_0x204931(0x176)](_0x2cd416))!=null?_0x2b12e0:_0x16e5bc,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x204931(0x1c7)](_0x29a28b=>{var _0x3c7f1c=_0x204931;this['_collabSession'][_0x3c7f1c(0x107)]({'eventID':_0x4eafb2[_0x3c7f1c(0x105)][_0x3c7f1c(0x1a2)],'data':{'unitID':this['_unitID'],'operations':{[_0x29a28b['id']]:{'id':_0x29a28b['id'],'params':JSON['stringify'](_0x29a28b['params'])}}}},this[_0x3c7f1c(0x1aa)]);})),_0x3e1fab[_0x204931(0x17d)](_0x5d4b32);})),this[_0x21b8e3(0x128)][_0x21b8e3(0x1c5)](this['_unitID'])['forEach'](_0xdcaba3=>this[_0x21b8e3(0x150)][_0x21b8e3(0x107)]({'eventID':_0x4eafb2[_0x21b8e3(0x105)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x21b8e3(0x1aa)],'operations':{[_0xdcaba3['id']]:{'id':_0xdcaba3['id'],'params':JSON[_0x21b8e3(0x156)](_0xdcaba3[_0x21b8e3(0x1b7)])}}}},this['_unitID']));}[_0x42ab61(0x1dc)](){var _0x1d6874=_0x42ab61,_0x4152b9;this[_0x1d6874(0x148)][_0x1d6874(0x17d)](_0x1d6874(0x14d)),(_0x4152b9=this[_0x1d6874(0x1cf)])==null||_0x4152b9['dispose'](),this[_0x1d6874(0x1cf)]=null;}[_0x42ab61(0x182)](){var _0x111791=_0x42ab61,_0x241595;(_0x241595=this['_commandDisposable'])==null||_0x241595['dispose'](),this[_0x111791(0x148)][_0x111791(0x17d)](_0x111791(0x127));}[_0x42ab61(0x1ef)](){var _0x44f7fb=_0x42ab61,_0x316828;this[_0x44f7fb(0x148)][_0x44f7fb(0x17d)](_0x44f7fb(0x14d)),(_0x316828=this[_0x44f7fb(0x1cf)])==null||_0x316828['dispose'](),this[_0x44f7fb(0x1cf)]=null;}['_stopFollowing'](){var _0x4b96ca=_0x42ab61,_0x12d255;this['_status$'][_0x4b96ca(0x17d)]('not-following'),(_0x12d255=this[_0x4b96ca(0x1cf)])==null||_0x12d255[_0x4b96ca(0x162)]();}[_0x42ab61(0x18d)](_0x4f26ee){var _0x409f7a=_0x42ab61;if([_0x409f7a(0x175),_0x409f7a(0x187),_0x409f7a(0x104)]['includes'](this[_0x409f7a(0x12f)])||!_0x4f26ee[_0x409f7a(0x1cc)]['presenter']||_0x4f26ee[_0x409f7a(0x1cc)]['presenter']===this[_0x409f7a(0x150)][_0x409f7a(0x15e)]())return;this[_0x409f7a(0x12f)]===_0x409f7a(0x14d)&&this[_0x409f7a(0x182)]();const _0x1f9e15=_0x4f26ee[_0x409f7a(0x1cc)][_0x409f7a(0x1c2)];Object[_0x409f7a(0x1c0)](_0x1f9e15)[_0x409f7a(0x16d)](_0x28bad2=>{var _0x48be41=_0x409f7a;this[_0x48be41(0x121)][_0x48be41(0x19a)](_0x28bad2['id'],_0x28bad2[_0x48be41(0x1b7)]?JSON[_0x48be41(0x1b4)](_0x28bad2[_0x48be41(0x1b7)]):null,{'fromCollab':!0x0});});}[_0x42ab61(0x168)](){var _0x2df6ea=_0x42ab61,_0x1db788;this[_0x2df6ea(0x148)][_0x2df6ea(0x17d)]('offline'),(_0x1db788=this[_0x2df6ea(0x1cf)])==null||_0x1db788['dispose']();}[_0x42ab61(0x1e2)](){var _0x4f1638=_0x42ab61;this[_0x4f1638(0x148)]['next'](_0x4f1638(0x14d)),this[_0x4f1638(0x151)]();}},_0x12e219['LiveShareCoordinator']=_0x5e5880([_0x4017b2(0x2,_0x598b3e[_0x42ab61(0x1f4)]),_0x4017b2(0x3,_0x598b3e[_0x42ab61(0x16f)](_0x2b64dc)),_0x4017b2(0x4,_0x598b3e[_0x42ab61(0x11d)])],_0x12e219[_0x42ab61(0x18a)]);function _0x37db21(){var _0x2f618e=_0x42ab61;const _0x2afb48=_0x57153a[_0x2f618e(0x1f3)](_0x12e219['LiveShareController']),_0x53b74b=_0x57153a[_0x2f618e(0x1f3)](_0x598b3e['IUniverInstanceService']),_0x45d1f6=_0x57153a['useObservable'](()=>_0x53b74b[_0x2f618e(0x16c)](_0x598b3e[_0x2f618e(0x1ba)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x5151b8,_0x522528]=_0x172e02['useState'](null),[_0x1ce943,_0x409473]=_0x172e02[_0x2f618e(0x189)](_0x128b7f[_0x2f618e(0x1c1)]),_0x5273af=_0x172e02[_0x2f618e(0x132)](null);return _0x172e02['useEffect'](()=>(_0x45d1f6&&_0x2afb48[_0x2f618e(0x11f)](_0x45d1f6['getUnitId']())[_0x2f618e(0x1ae)](_0x5d9e61=>{var _0x61e4a1=_0x2f618e;_0x522528(_0x5d9e61),_0x5273af[_0x61e4a1(0x16b)]=_0x5d9e61[_0x61e4a1(0x1b6)][_0x61e4a1(0x1c7)](_0x34ed7c=>{_0x409473(_0x34ed7c);});}),()=>{var _0x17c0bf=_0x2f618e,_0xf8f0c7;(_0xf8f0c7=_0x5273af[_0x17c0bf(0x16b)])==null||_0xf8f0c7[_0x17c0bf(0x19e)](),_0x5273af['current']=null;}),[_0x45d1f6,_0x2afb48]),_0x5151b8?_0x304ff8[_0x2f618e(0x130)](_0x16b02c[_0x2f618e(0x114)],{'align':'end','disabled':_0x1ce943===_0x128b7f['OFFLINE'],'className':_0x2f618e(0x180),'overlay':_0x304ff8[_0x2f618e(0x130)](_0x352bd0,{'status':_0x1ce943,'coordinator':_0x5151b8}),'children':_0x304ff8[_0x2f618e(0x130)](_0x2f618e(0x1c9),{'className':_0x16b02c[_0x2f618e(0x178)]('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x1ce943===_0x128b7f[_0x2f618e(0x1bb)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1ce943!==_0x128b7f['OFFLINE']}),'type':_0x2f618e(0x1c9),'children':_0x304ff8[_0x2f618e(0x130)](_0x4495a7,{'className':_0x2f618e(0x11e)})})}):null;}function _0x352bd0(_0x1eb99e){var _0x4eaae5=_0x42ab61;const {status:_0x2ec02c,coordinator:_0x33c644}=_0x1eb99e;switch(_0x2ec02c){case _0x128b7f[_0x4eaae5(0x1c1)]:return _0x304ff8[_0x4eaae5(0x130)](_0x5d0933,{'coordinator':_0x33c644});case _0x128b7f[_0x4eaae5(0x136)]:return _0x304ff8[_0x4eaae5(0x130)](_0x6d6984,{'coordinator':_0x33c644});case _0x128b7f[_0x4eaae5(0x15a)]:return _0x304ff8[_0x4eaae5(0x130)](_0x570939,{'coordinator':_0x33c644});case _0x128b7f[_0x4eaae5(0x1bb)]:return _0x304ff8[_0x4eaae5(0x130)](_0x1df83f,{});case _0x128b7f[_0x4eaae5(0x173)]:return _0x304ff8[_0x4eaae5(0x130)](_0x5bdd60,{'coordinator':_0x33c644});default:return null;}}function _0x5d0933(_0x544045){var _0x30a92c=_0x42ab61;const {coordinator:_0x2921d9}=_0x544045;return _0x304ff8[_0x30a92c(0x160)](_0x304ff8[_0x30a92c(0x13b)],{'children':[_0x304ff8[_0x30a92c(0x130)](_0x30a92c(0x112),{'className':_0x30a92c(0x192),'children':_0x30a92c(0x14e)}),_0x304ff8[_0x30a92c(0x130)](_0x16b02c['Button'],{'onClick':()=>_0x2921d9[_0x30a92c(0x1db)](),'children':_0x30a92c(0x12c)})]});}function _0x6d6984(_0x54ab6a){var _0x50b2bb=_0x42ab61;const {coordinator:_0x1e82ed}=_0x54ab6a;return _0x304ff8[_0x50b2bb(0x160)](_0x304ff8['Fragment'],{'children':[_0x304ff8[_0x50b2bb(0x130)](_0x50b2bb(0x112),{'className':_0x50b2bb(0x192),'children':_0x50b2bb(0x138)}),_0x304ff8['jsx'](_0x16b02c[_0x50b2bb(0x1ee)],{'onClick':()=>_0x1e82ed[_0x50b2bb(0x171)](),'children':_0x50b2bb(0x126)})]});}function _0x570939(_0x30c953){var _0xa6e353=_0x42ab61;const {coordinator:_0x5d73b8}=_0x30c953;return _0x304ff8[_0xa6e353(0x160)](_0x304ff8[_0xa6e353(0x13b)],{'children':[_0x304ff8[_0xa6e353(0x130)]('div',{'className':_0xa6e353(0x192),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x304ff8[_0xa6e353(0x130)](_0x16b02c[_0xa6e353(0x1ee)],{'variant':'text','onClick':()=>_0x5d73b8[_0xa6e353(0x174)](),'children':'Start\x20following'})]});}function _0x5bdd60(_0x11e2c1){var _0x30f6c3=_0x42ab61;const {coordinator:_0x4b3e78}=_0x11e2c1;return _0x304ff8[_0x30f6c3(0x160)](_0x304ff8[_0x30f6c3(0x13b)],{'children':[_0x304ff8['jsx'](_0x30f6c3(0x112),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x304ff8[_0x30f6c3(0x130)](_0x16b02c[_0x30f6c3(0x1ee)],{'variant':_0x30f6c3(0x120),'onClick':()=>_0x4b3e78[_0x30f6c3(0x1d4)](),'children':_0x30f6c3(0x1d1)})]});}function _0x1df83f(){var _0x417775=_0x42ab61;return _0x304ff8[_0x417775(0x130)](_0x304ff8[_0x417775(0x13b)],{'children':_0x417775(0x17f)});}var _0x5eb2d4=Object[_0x42ab61(0x1b2)],_0x5a5d0c=(_0x1596df,_0x57a8e7,_0x57be69,_0x1f2026)=>{var _0x5994ba=_0x42ab61;for(var _0x469730=_0x1f2026>0x1?void 0x0:_0x1f2026?_0x5eb2d4(_0x57a8e7,_0x57be69):_0x57a8e7,_0x1226ab=_0x1596df[_0x5994ba(0x184)]-0x1,_0x5e28b8;_0x1226ab>=0x0;_0x1226ab--)(_0x5e28b8=_0x1596df[_0x1226ab])&&(_0x469730=_0x5e28b8(_0x469730)||_0x469730);return _0x469730;},_0x3606df=(_0x27f29c,_0x1b30a2)=>(_0x4140df,_0x17e87d)=>_0x1b30a2(_0x4140df,_0x17e87d,_0x27f29c);_0x12e219[_0x42ab61(0x1a9)]=class extends _0x598b3e[_0x42ab61(0x1ad)]{constructor(_0x5a4fed,_0x4dee23){var _0x24d513=_0x42ab61;super(),this[_0x24d513(0x161)]=_0x5a4fed,this[_0x24d513(0x134)]=_0x4dee23,this[_0x24d513(0x195)]();}[_0x42ab61(0x195)](){var _0x3dbdd9=_0x42ab61;this[_0x3dbdd9(0x152)](this[_0x3dbdd9(0x134)]['registerComponent'](_0x57153a[_0x3dbdd9(0x10f)][_0x3dbdd9(0x14a)],()=>_0x57153a[_0x3dbdd9(0x190)](_0x37db21,this[_0x3dbdd9(0x161)])));}},_0x12e219[_0x42ab61(0x1a9)]=_0x5a5d0c([_0x3606df(0x0,_0x598b3e[_0x42ab61(0x16f)](_0x598b3e[_0x42ab61(0x110)])),_0x3606df(0x1,_0x57153a[_0x42ab61(0x1e6)])],_0x12e219['DesktopLiveShareController']);var _0x4cfc98=Object['defineProperty'],_0x17c2a3=Object[_0x42ab61(0x1b2)],_0x17eff3=(_0x96b030,_0x3bca64,_0x3fb7b4)=>_0x3bca64 in _0x96b030?_0x4cfc98(_0x96b030,_0x3bca64,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3fb7b4}):_0x96b030[_0x3bca64]=_0x3fb7b4,_0x465343=(_0x13191e,_0x7611fa,_0x506d02,_0x5bd4da)=>{for(var _0x4b6295=_0x5bd4da>0x1?void 0x0:_0x5bd4da?_0x17c2a3(_0x7611fa,_0x506d02):_0x7611fa,_0x4bba63=_0x13191e['length']-0x1,_0x800288;_0x4bba63>=0x0;_0x4bba63--)(_0x800288=_0x13191e[_0x4bba63])&&(_0x4b6295=_0x800288(_0x4b6295)||_0x4b6295);return _0x4b6295;},_0x3f2c6d=(_0x2ebf1c,_0x226f1f)=>(_0x12278d,_0x4dba84)=>_0x226f1f(_0x12278d,_0x4dba84,_0x2ebf1c),_0x42d14a=(_0xf40cd6,_0x27ce8d,_0x2d2007)=>_0x17eff3(_0xf40cd6,typeof _0x27ce8d!=_0x42ab61(0x12e)?_0x27ce8d+'':_0x27ce8d,_0x2d2007);const _0x2b273b=_0x42ab61(0x103);_0x12e219[_0x42ab61(0x159)]=class extends _0x598b3e[_0x42ab61(0x155)]{constructor(_0xfa65=_0x4c2c3f,_0x25df52,_0x47471a){var _0x836804=_0x42ab61;super(),this['_config']=_0xfa65,this[_0x836804(0x161)]=_0x25df52,this['_configService']=_0x47471a;const {..._0x3a98b6}=_0x598b3e[_0x836804(0x18e)]({},_0x4c2c3f,this['_config']);this['_configService']['setConfig'](_0xbded63,_0x3a98b6);}[_0x42ab61(0x122)](){var _0x263254=_0x42ab61;_0x598b3e[_0x263254(0x13f)](this['_injector'],_0x598b3e[_0x263254(0x167)]([[_0x2b64dc],[_0x12e219[_0x263254(0x17a)]],[_0x22f3a3],[_0x12e219[_0x263254(0x1a9)]]],this[_0x263254(0x113)][_0x263254(0x1eb)])),_0x598b3e[_0x263254(0x11b)](this[_0x263254(0x161)],[[_0x22f3a3]]);}['onRendered'](){var _0x1b8cc5=_0x42ab61;_0x598b3e[_0x1b8cc5(0x11b)](this[_0x1b8cc5(0x161)],[[_0x12e219[_0x1b8cc5(0x1a9)]]]);}},_0x42d14a(_0x12e219[_0x42ab61(0x159)],_0x42ab61(0x1ca),_0x598b3e[_0x42ab61(0x1ba)][_0x42ab61(0x123)]),_0x42d14a(_0x12e219[_0x42ab61(0x159)],'pluginName',_0x2b273b),_0x12e219[_0x42ab61(0x159)]=_0x465343([_0x598b3e[_0x42ab61(0x170)](_0x536f61['UniverCollaborationClientPlugin']),_0x3f2c6d(0x1,_0x598b3e[_0x42ab61(0x16f)](_0x598b3e[_0x42ab61(0x110)])),_0x3f2c6d(0x2,_0x598b3e[_0x42ab61(0x1f4)])],_0x12e219[_0x42ab61(0x159)]),_0x12e219[_0x42ab61(0x19b)]=_0x37db21,_0x12e219[_0x42ab61(0x125)]=_0x2b64dc,_0x12e219[_0x42ab61(0x13c)]=_0x128b7f,Object[_0x42ab61(0x1d3)](_0x12e219,Symbol[_0x42ab61(0x12d)],{'value':_0x42ab61(0x1bd)});}));
|
|
1
|
+
(function(_0xf00c9a,_0x26b891){var _0x51b3db=_0x522d,_0x4fcfef=_0xf00c9a();while(!![]){try{var _0x32a3d5=-parseInt(_0x51b3db(0x24f))/0x1+parseInt(_0x51b3db(0x187))/0x2+-parseInt(_0x51b3db(0x22b))/0x3+parseInt(_0x51b3db(0x22f))/0x4+-parseInt(_0x51b3db(0x1c2))/0x5*(parseInt(_0x51b3db(0x20a))/0x6)+-parseInt(_0x51b3db(0x18c))/0x7*(-parseInt(_0x51b3db(0x246))/0x8)+-parseInt(_0x51b3db(0x1b8))/0x9*(parseInt(_0x51b3db(0x257))/0xa);if(_0x32a3d5===_0x26b891)break;else _0x4fcfef['push'](_0x4fcfef['shift']());}catch(_0xc8a9e8){_0x4fcfef['push'](_0x4fcfef['shift']());}}}(_0xc531,0x4619c),function(_0x4acb5a,_0x43720f){var _0x16589f=_0x522d;typeof exports==_0x16589f(0x263)&&typeof module<'u'?_0x43720f(exports,require('@univerjs-pro/collaboration-client'),require(_0x16589f(0x1d3)),require(_0x16589f(0x1e5)),require(_0x16589f(0x24b)),require(_0x16589f(0x26f)),require('react/jsx-runtime'),require('@univerjs/design'),require(_0x16589f(0x1a8)),require(_0x16589f(0x1ff)),require(_0x16589f(0x23e)),require(_0x16589f(0x247))):typeof define==_0x16589f(0x1af)&&define[_0x16589f(0x21b)]?define(['exports',_0x16589f(0x20e),_0x16589f(0x1d3),_0x16589f(0x1e5),'@univerjs/sheets-ui',_0x16589f(0x26f),_0x16589f(0x1b9),_0x16589f(0x1bb),_0x16589f(0x1a8),_0x16589f(0x1ff),_0x16589f(0x23e),_0x16589f(0x247)],_0x43720f):(_0x4acb5a=typeof globalThis<'u'?globalThis:_0x4acb5a||self,_0x43720f(_0x4acb5a['UniverProLiveShare']={},_0x4acb5a[_0x16589f(0x205)],_0x4acb5a[_0x16589f(0x260)],_0x4acb5a[_0x16589f(0x20f)],_0x4acb5a[_0x16589f(0x233)],_0x4acb5a[_0x16589f(0x245)],_0x4acb5a[_0x16589f(0x1dc)],_0x4acb5a['UniverDesign'],_0x4acb5a['React'],_0x4acb5a[_0x16589f(0x230)],_0x4acb5a[_0x16589f(0x23e)],_0x4acb5a[_0x16589f(0x23e)][_0x16589f(0x24a)]));}(this,function(_0x1393e0,_0x59a0da,_0x2888c7,_0x1b1857,_0x1a7578,_0x409307,_0x10c72f,_0x13b3d5,_0x211363,_0x2b64eb,_0x50b554,_0x51c3d9){'use strict';var _0x205c5d=_0x522d;var _0x4fd9ed=Object[_0x205c5d(0x26e)],_0x145524=(_0x6491d7,_0xc71ddc,_0x5a9299)=>_0xc71ddc in _0x6491d7?_0x4fd9ed(_0x6491d7,_0xc71ddc,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5a9299}):_0x6491d7[_0xc71ddc]=_0x5a9299,_0x584f6b=(_0x63a531,_0x51d0cb,_0x4752ae)=>_0x145524(_0x63a531,typeof _0x51d0cb!=_0x205c5d(0x200)?_0x51d0cb+'':_0x51d0cb,_0x4752ae);const _0x6389c6=_0x205c5d(0x1a7),_0x4c52ee={};class _0x307808 extends _0x2888c7[_0x205c5d(0x1f2)]{constructor(){var _0x2946fa=_0x205c5d;super(...arguments),_0x584f6b(this,_0x2946fa(0x1e8),new Set()),_0x584f6b(this,'_reporters',new Set());}[_0x205c5d(0x27b)](_0x43d824){var _0x1982dd=_0x205c5d;return this[_0x1982dd(0x1e8)][_0x1982dd(0x26a)](_0x43d824),_0x2888c7[_0x1982dd(0x185)](()=>this[_0x1982dd(0x1e8)]['delete'](_0x43d824));}[_0x205c5d(0x1ba)](_0x881dcb){var _0x4995f9=_0x205c5d;return this[_0x4995f9(0x19b)]['add'](_0x881dcb),_0x2888c7[_0x4995f9(0x185)](()=>this['_reporters'][_0x4995f9(0x1ce)](_0x881dcb));}[_0x205c5d(0x24d)](_0xebad8b){var _0x6ed9bd=_0x205c5d;return this[_0x6ed9bd(0x1e8)]['has'](_0xebad8b);}['getInitialStates'](_0xfba99c){var _0x370803=_0x205c5d;return Array[_0x370803(0x20c)](this[_0x370803(0x19b)])[_0x370803(0x181)](_0x1288ad=>_0x1288ad(_0xfba99c));}}var _0x4b0302=Object[_0x205c5d(0x1b6)],_0x3e383b=(_0x4877da,_0x2d07ed,_0x1cb8d2,_0x39f7a0)=>{var _0x539eca=_0x205c5d;for(var _0x412d01=_0x39f7a0>0x1?void 0x0:_0x39f7a0?_0x4b0302(_0x2d07ed,_0x1cb8d2):_0x2d07ed,_0x56b07a=_0x4877da[_0x539eca(0x201)]-0x1,_0x1c06fa;_0x56b07a>=0x0;_0x56b07a--)(_0x1c06fa=_0x4877da[_0x56b07a])&&(_0x412d01=_0x1c06fa(_0x412d01)||_0x412d01);return _0x412d01;},_0x7af3dc=(_0x38322d,_0x57ed20)=>(_0x4c45fb,_0x1fe3ad)=>_0x57ed20(_0x4c45fb,_0x1fe3ad,_0x38322d);let _0x24c23c=class extends _0x2888c7[_0x205c5d(0x1f2)]{constructor(_0x3cbb1d){var _0x512b37=_0x205c5d;super(),this[_0x512b37(0x1aa)]=_0x3cbb1d,this[_0x512b37(0x272)]();}['_init'](){var _0x232c6b=_0x205c5d;[_0x1a7578['SetZoomRatioOperation']['id'],_0x1a7578[_0x232c6b(0x1de)]['id'],_0x1b1857['SetWorksheetActiveOperation']['id']][_0x232c6b(0x194)](_0x5bba85=>{var _0x1a0282=_0x232c6b;this[_0x1a0282(0x18e)](this[_0x1a0282(0x1aa)][_0x1a0282(0x27b)](_0x5bba85));});}};_0x24c23c=_0x3e383b([_0x7af3dc(0x0,_0x2888c7[_0x205c5d(0x209)](_0x307808))],_0x24c23c);var _0x1c397d=function(){var _0x415576=_0x205c5d;return _0x1c397d=Object[_0x415576(0x1d2)]||function(_0x28f064){var _0x12cc09=_0x415576;for(var _0x4a52e7,_0x5ca4c4=0x1,_0x578f67=arguments[_0x12cc09(0x201)];_0x5ca4c4<_0x578f67;_0x5ca4c4++){_0x4a52e7=arguments[_0x5ca4c4];for(var _0x35d6eb in _0x4a52e7)Object[_0x12cc09(0x1b1)][_0x12cc09(0x18d)][_0x12cc09(0x254)](_0x4a52e7,_0x35d6eb)&&(_0x28f064[_0x35d6eb]=_0x4a52e7[_0x35d6eb]);}return _0x28f064;},_0x1c397d[_0x415576(0x182)](this,arguments);},_0x496e84=function(_0x457147,_0x4729){var _0x2276c0=_0x205c5d,_0x338987={};for(var _0x625976 in _0x457147)Object[_0x2276c0(0x1b1)]['hasOwnProperty'][_0x2276c0(0x254)](_0x457147,_0x625976)&&_0x4729['indexOf'](_0x625976)<0x0&&(_0x338987[_0x625976]=_0x457147[_0x625976]);if(_0x457147!=null&&typeof Object[_0x2276c0(0x1f7)]==_0x2276c0(0x1af)){for(var _0x57f1b2=0x0,_0x625976=Object[_0x2276c0(0x1f7)](_0x457147);_0x57f1b2<_0x625976['length'];_0x57f1b2++)_0x4729[_0x2276c0(0x226)](_0x625976[_0x57f1b2])<0x0&&Object[_0x2276c0(0x1b1)][_0x2276c0(0x1bd)]['call'](_0x457147,_0x625976[_0x57f1b2])&&(_0x338987[_0x625976[_0x57f1b2]]=_0x457147[_0x625976[_0x57f1b2]]);}return _0x338987;},_0x13b026=_0x211363[_0x205c5d(0x1e2)](function(_0xcc4157,_0x55bde8){var _0x31e320=_0x205c5d,_0x28f278=_0xcc4157[_0x31e320(0x1d7)],_0x54a424=_0xcc4157['id'],_0x499379=_0xcc4157['className'],_0x42cd47=_0xcc4157['extend'],_0x3348cc=_0x496e84(_0xcc4157,['icon','id',_0x31e320(0x1e4),_0x31e320(0x22c)]),_0x188d43=_0x31e320(0x276)[_0x31e320(0x26b)](_0x54a424,'\x20')[_0x31e320(0x26b)](_0x499379||'')[_0x31e320(0x25f)](),_0x16788b=_0x211363[_0x31e320(0x183)]('_'[_0x31e320(0x26b)](_0x1d333a()));return _0x19b05a(_0x28f278,''[_0x31e320(0x26b)](_0x54a424),{'defIds':_0x28f278[_0x31e320(0x24c)],'idSuffix':_0x16788b['current']},_0x1c397d({'ref':_0x55bde8,'className':_0x188d43},_0x3348cc),_0x42cd47);});function _0x19b05a(_0x26a476,_0x23b76a,_0x15235f,_0x2a11ee,_0x29c940){var _0x1698a7=_0x205c5d;return _0x211363['createElement'](_0x26a476[_0x1698a7(0x1d9)],_0x1c397d(_0x1c397d({'key':_0x23b76a},_0xf87d52(_0x26a476,_0x15235f,_0x29c940)),_0x2a11ee),(_0x489c36(_0x26a476,_0x15235f)[_0x1698a7(0x1b7)]||[])[_0x1698a7(0x181)](function(_0x16aca5,_0x11855a){var _0x4167bd=_0x1698a7;return _0x19b05a(_0x16aca5,''['concat'](_0x23b76a,'-')[_0x4167bd(0x26b)](_0x26a476[_0x4167bd(0x1d9)],'-')[_0x4167bd(0x26b)](_0x11855a),_0x15235f,void 0x0,_0x29c940);}));}function _0xf87d52(_0x39afed,_0x4554c0,_0x270768){var _0x41ced4=_0x205c5d,_0x5c029f=_0x1c397d({},_0x39afed[_0x41ced4(0x25c)]);_0x270768!=null&&_0x270768[_0x41ced4(0x1dd)]&&_0x5c029f['fill']===_0x41ced4(0x1dd)&&(_0x5c029f[_0x41ced4(0x203)]=_0x270768[_0x41ced4(0x1dd)]),_0x39afed[_0x41ced4(0x1d9)]===_0x41ced4(0x1f3)&&_0x5c029f['id']&&(_0x5c029f['id']=_0x5c029f['id']+_0x4554c0[_0x41ced4(0x27a)]),Object[_0x41ced4(0x1ef)](_0x5c029f)[_0x41ced4(0x194)](function(_0x8ce429){var _0x1e74ca=_0x41ced4,_0x45704d=_0x8ce429[0x0],_0x55d682=_0x8ce429[0x1];_0x45704d===_0x1e74ca(0x1f3)&&typeof _0x55d682=='string'&&(_0x5c029f[_0x45704d]=_0x55d682[_0x1e74ca(0x227)](/url\(#(.*)\)/,_0x1e74ca(0x228)[_0x1e74ca(0x26b)](_0x4554c0[_0x1e74ca(0x27a)],')')));});var _0x3cf0a9=_0x4554c0[_0x41ced4(0x24c)];return!_0x3cf0a9||_0x3cf0a9['length']===0x0||(_0x39afed[_0x41ced4(0x1d9)]===_0x41ced4(0x25b)&&_0x5c029f['xlink:href']&&(_0x5c029f[_0x41ced4(0x25d)]=_0x5c029f['xlink:href']+_0x4554c0['idSuffix']),Object[_0x41ced4(0x1ef)](_0x5c029f)[_0x41ced4(0x194)](function(_0x410f9b){var _0x3b7cac=_0x41ced4,_0x4885ef=_0x410f9b[0x0],_0x46e94b=_0x410f9b[0x1];typeof _0x46e94b==_0x3b7cac(0x268)&&(_0x5c029f[_0x4885ef]=_0x46e94b[_0x3b7cac(0x227)](/url\(#(.*)\)/,_0x3b7cac(0x228)['concat'](_0x4554c0['idSuffix'],')')));})),_0x5c029f;}function _0x489c36(_0x3d245c,_0x22633d){var _0x5ec1aa=_0x205c5d,_0x327a6c,_0x1d1b46=_0x22633d[_0x5ec1aa(0x24c)];return!_0x1d1b46||_0x1d1b46['length']===0x0?_0x3d245c:_0x3d245c['tag']===_0x5ec1aa(0x238)&&(!((_0x327a6c=_0x3d245c[_0x5ec1aa(0x1b7)])===null||_0x327a6c===void 0x0)&&_0x327a6c[_0x5ec1aa(0x201)])?_0x1c397d(_0x1c397d({},_0x3d245c),{'children':_0x3d245c['children']['map'](function(_0x620378){var _0x264490=_0x5ec1aa;return typeof _0x620378['attrs']['id']==_0x264490(0x268)&&_0x1d1b46&&_0x1d1b46['indexOf'](_0x620378[_0x264490(0x25c)]['id'])>-0x1?_0x1c397d(_0x1c397d({},_0x620378),{'attrs':_0x1c397d(_0x1c397d({},_0x620378[_0x264490(0x25c)]),{'id':_0x620378[_0x264490(0x25c)]['id']+_0x22633d[_0x264490(0x27a)]})}):_0x620378;})}):_0x3d245c;}function _0x1d333a(){var _0x2aad35=_0x205c5d;return Math[_0x2aad35(0x1ae)]()[_0x2aad35(0x1fc)](0x24)[_0x2aad35(0x19c)](0x2,0x8);}_0x13b026[_0x205c5d(0x1df)]=_0x205c5d(0x1c1);var _0x2f99dc={'tag':_0x205c5d(0x25e),'attrs':{'fill':_0x205c5d(0x207),'viewBox':_0x205c5d(0x253),'width':_0x205c5d(0x19e),'height':_0x205c5d(0x19e)},'children':[{'tag':_0x205c5d(0x1d8),'attrs':{'fill':_0x205c5d(0x214),'d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':_0x205c5d(0x1d8),'attrs':{'fill':_0x205c5d(0x214),'d':_0x205c5d(0x1f1),'fillRule':_0x205c5d(0x188),'clipRule':_0x205c5d(0x188)}}]},_0x20421c=_0x211363[_0x205c5d(0x1e2)](function(_0x5dd485,_0x4c8335){var _0xbdcb80=_0x205c5d;return _0x211363[_0xbdcb80(0x273)](_0x13b026,Object[_0xbdcb80(0x1d2)]({},_0x5dd485,{'id':'live-share-single','ref':_0x4c8335,'icon':_0x2f99dc}));});_0x20421c['displayName']=_0x205c5d(0x199);var _0x1b6e91=Object['getOwnPropertyDescriptor'],_0x25d84b=(_0x42d6e7,_0x4e2d4d,_0x12920d,_0x375c4c)=>{var _0x6630df=_0x205c5d;for(var _0x3e870f=_0x375c4c>0x1?void 0x0:_0x375c4c?_0x1b6e91(_0x4e2d4d,_0x12920d):_0x4e2d4d,_0x14e6ba=_0x42d6e7[_0x6630df(0x201)]-0x1,_0xfad266;_0x14e6ba>=0x0;_0x14e6ba--)(_0xfad266=_0x42d6e7[_0x14e6ba])&&(_0x3e870f=_0xfad266(_0x3e870f)||_0x3e870f);return _0x3e870f;},_0x35b946=(_0x10e79d,_0x18b076)=>(_0x1da157,_0xac5922)=>_0x18b076(_0x1da157,_0xac5922,_0x10e79d);_0x1393e0['LiveShareController']=class extends _0x2888c7['RxDisposable']{constructor(_0x2f1748,_0x283f0f,_0x2fe52a){var _0x5a8039=_0x205c5d;super(),_0x584f6b(this,_0x5a8039(0x1d0),new Map()),(this['_univerInstanceService']=_0x2f1748,this[_0x5a8039(0x243)]=_0x283f0f,this[_0x5a8039(0x1c9)]=_0x2fe52a,this[_0x5a8039(0x272)]());}async[_0x205c5d(0x21a)](_0x492ba0){var _0x214ef6=_0x205c5d;return this[_0x214ef6(0x1d0)][_0x214ef6(0x1b4)](_0x492ba0)||await this[_0x214ef6(0x274)](_0x492ba0),this[_0x214ef6(0x1d0)][_0x214ef6(0x20b)](_0x492ba0);}['_init'](){var _0x32eb1a=_0x205c5d;this['_univerInstanceService'][_0x32eb1a(0x1ca)](_0x2888c7['UniverInstanceType'][_0x32eb1a(0x1f4)])[_0x32eb1a(0x1a5)](_0x51c3d9[_0x32eb1a(0x1b3)](this[_0x32eb1a(0x192)]))[_0x32eb1a(0x1e0)](async _0xccafce=>{var _0x1a3109=_0x32eb1a;const _0x478123=_0xccafce[_0x1a3109(0x186)]();this[_0x1a3109(0x1d0)]['has'](_0x478123)||this['_startLiveShareCoordinator'](_0x478123);}),this[_0x32eb1a(0x18a)][_0x32eb1a(0x1fe)](_0x2888c7['UniverInstanceType'][_0x32eb1a(0x1f4)])[_0x32eb1a(0x1a5)](_0x51c3d9['takeUntil'](this[_0x32eb1a(0x192)]))[_0x32eb1a(0x1e0)](_0x51e268=>{var _0x5271db=_0x32eb1a;const _0x116e68=_0x51e268[_0x5271db(0x186)](),_0x509b77=this[_0x5271db(0x1d0)][_0x5271db(0x20b)](_0x116e68);_0x509b77==null||_0x509b77['dispose']();});}async[_0x205c5d(0x274)](_0x4d23a3){var _0x55f69b=_0x205c5d;const _0x2a488d=await this[_0x55f69b(0x1c9)][_0x55f69b(0x1a6)](_0x4d23a3),_0x2543a3=this[_0x55f69b(0x243)][_0x55f69b(0x215)](_0x1393e0[_0x55f69b(0x1c7)],_0x4d23a3,_0x2a488d);return _0x2543a3[_0x55f69b(0x204)](),this[_0x55f69b(0x1d0)]['set'](_0x4d23a3,_0x2543a3),_0x2543a3;}},_0x1393e0[_0x205c5d(0x1e7)]=_0x25d84b([_0x35b946(0x0,_0x2888c7['IUniverInstanceService']),_0x35b946(0x1,_0x2888c7[_0x205c5d(0x209)](_0x2888c7['Injector'])),_0x35b946(0x2,_0x2888c7['Inject'](_0x59a0da[_0x205c5d(0x1b0)]))],_0x1393e0['LiveShareController']);var _0x585d28=(_0x4468c8=>(_0x4468c8[_0x205c5d(0x1b5)]=_0x205c5d(0x25a),_0x4468c8['IDLE']=_0x205c5d(0x1d6),_0x4468c8[_0x205c5d(0x1c8)]=_0x205c5d(0x241),_0x4468c8[_0x205c5d(0x1c5)]=_0x205c5d(0x220),_0x4468c8[_0x205c5d(0x1e6)]='presenting',_0x4468c8))(_0x585d28||{});const _0x3f2b86='SAME_OPERATION_SHARE_INTERVAL',_0x36a823=0xc8;_0x1393e0[_0x205c5d(0x1c7)]=class extends _0x2888c7['RxDisposable']{constructor(_0x144b4b,_0xfbf7a3,_0xa1de30,_0x54df8d,_0x1aaca3){var _0x598c06=_0x205c5d;super(),_0x584f6b(this,_0x598c06(0x23f),new _0x50b554[(_0x598c06(0x26c))](_0x598c06(0x1d6))),_0x584f6b(this,_0x598c06(0x252),this[_0x598c06(0x23f)]['asObservable']()),_0x584f6b(this,_0x598c06(0x272),!0x1),_0x584f6b(this,_0x598c06(0x249),null),_0x584f6b(this,_0x598c06(0x1c0),null),(this[_0x598c06(0x250)]=_0x144b4b,this[_0x598c06(0x1a3)]=_0xfbf7a3,this['_configService']=_0xa1de30,this[_0x598c06(0x1aa)]=_0x54df8d,this[_0x598c06(0x189)]=_0x1aaca3);}get[_0x205c5d(0x1cf)](){var _0x4bacb9=_0x205c5d;return this[_0x4bacb9(0x23f)]['getValue']();}[_0x205c5d(0x223)](){var _0xbde31=_0x205c5d,_0x398797;(_0x398797=this[_0xbde31(0x249)])==null||_0x398797['dispose'](),this[_0xbde31(0x23f)][_0xbde31(0x1cd)](_0xbde31(0x1d6)),this[_0xbde31(0x23f)][_0xbde31(0x1f5)]();}['init'](){var _0x14650d=_0x205c5d;this['_init']||(this[_0x14650d(0x272)]=!0x0,this['_collabSession'][_0x14650d(0x269)]['pipe'](_0x51c3d9[_0x14650d(0x1b3)](this[_0x14650d(0x192)]))[_0x14650d(0x1e0)](_0x5d4b8b=>{var _0x3d87ef=_0x14650d;switch(_0x5d4b8b){case _0x59a0da[_0x3d87ef(0x190)]['OFFLINE']:this[_0x3d87ef(0x1ea)]();break;case _0x59a0da[_0x3d87ef(0x190)][_0x3d87ef(0x224)]:this[_0x3d87ef(0x248)]();break;}}),this['_collabSession'][_0x14650d(0x21e)][_0x14650d(0x1a5)](_0x51c3d9[_0x14650d(0x1b3)](this[_0x14650d(0x192)]))[_0x14650d(0x1e0)](_0x543a1d=>{var _0x1dbab4=_0x14650d;const {eventID:_0x475ce1}=_0x543a1d;switch(_0x475ce1){case _0x2b64eb[_0x1dbab4(0x235)]['LIVESHARE_NEW_HOST']:this[_0x1dbab4(0x1a4)](_0x543a1d);break;case _0x2b64eb[_0x1dbab4(0x235)][_0x1dbab4(0x19f)]:this[_0x1dbab4(0x221)](_0x543a1d);break;case _0x2b64eb[_0x1dbab4(0x235)][_0x1dbab4(0x212)]:this[_0x1dbab4(0x1f0)]();break;case _0x2b64eb[_0x1dbab4(0x235)][_0x1dbab4(0x18b)]:this[_0x1dbab4(0x1a0)](_0x543a1d);break;}}));}[_0x205c5d(0x1c3)](){var _0x267ab8=_0x205c5d;this[_0x267ab8(0x1a3)][_0x267ab8(0x195)]({'eventID':_0x2b64eb[_0x267ab8(0x235)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x267ab8(0x1a3)][_0x267ab8(0x1ee)]()}},this[_0x267ab8(0x250)]);}[_0x205c5d(0x229)](){var _0x2e2f5b=_0x205c5d;this[_0x2e2f5b(0x1cf)]===_0x2e2f5b(0x1d4)&&(this[_0x2e2f5b(0x23f)][_0x2e2f5b(0x1cd)]('idle'),this[_0x2e2f5b(0x1a3)][_0x2e2f5b(0x195)]({'eventID':_0x2b64eb[_0x2e2f5b(0x235)][_0x2e2f5b(0x212)],'data':{'unitID':this['_unitID']}},this[_0x2e2f5b(0x250)]));}[_0x205c5d(0x1bf)](){var _0x137211=_0x205c5d;this[_0x137211(0x1cf)]===_0x137211(0x220)&&(this[_0x137211(0x23f)][_0x137211(0x1cd)](_0x137211(0x241)),this[_0x137211(0x256)]());}[_0x205c5d(0x232)](){var _0x482a02=_0x205c5d;this[_0x482a02(0x1cf)]===_0x482a02(0x241)&&this[_0x482a02(0x234)]();}[_0x205c5d(0x1a4)](_0x524bc5){var _0xbb86e0=_0x205c5d;const {presenter:_0x19c013}=_0x524bc5['data'],_0x32fcc7=this['_collabSession'][_0xbb86e0(0x1ee)]();this[_0xbb86e0(0x1c0)]=_0x19c013,_0x19c013===_0x32fcc7?(this[_0xbb86e0(0x234)](),this['_startPresenting']()):this[_0xbb86e0(0x1cf)]!==_0xbb86e0(0x220)&&(this['_stopPresenting'](),this[_0xbb86e0(0x256)]());}[_0x205c5d(0x1a2)](){var _0x272fc3=_0x205c5d;const _0x544144={'eventID':_0x2b64eb[_0x272fc3(0x235)][_0x272fc3(0x217)]};this[_0x272fc3(0x1a3)]['send'](_0x544144,this[_0x272fc3(0x250)]);}[_0x205c5d(0x1f0)](){var _0x1175f3=_0x205c5d;this['_presenter']=null,this[_0x1175f3(0x1cf)]!==_0x1175f3(0x1d4)&&this['_beIdle']();}[_0x205c5d(0x1a0)](_0x19792f){var _0x505557=_0x205c5d;if(this[_0x505557(0x1cf)]===_0x505557(0x241)&&this['_presenter']===_0x19792f[_0x505557(0x184)][_0x505557(0x208)]){const _0x4aaa11=_0x2b64eb[_0x505557(0x211)](_0x19792f['data'])[_0x505557(0x1d5)][_0x505557(0x23b)]()['find'](_0x594fb2=>_0x594fb2['id']===_0x1b1857[_0x505557(0x210)]['id']);if(_0x4aaa11){const _0xb20500=_0x4aaa11[_0x505557(0x271)][_0x505557(0x1da)],_0xfcfae2=_0x4aaa11[_0x505557(0x271)]['sheet']['id'];setTimeout(()=>{var _0x21c29d=_0x505557;this['_commandService'][_0x21c29d(0x278)](_0x1b1857[_0x21c29d(0x193)]['id'],{'unitId':_0xb20500,'subUnitId':_0xfcfae2},{'fromCollab':!0x0});});}}}[_0x205c5d(0x1f6)](){var _0x4622fe=_0x205c5d;this[_0x4622fe(0x23f)][_0x4622fe(0x1cd)]('presenting');const _0xf8906a=new Map(),_0x3809a1=this[_0x4622fe(0x249)]=new _0x2888c7[(_0x4622fe(0x266))]();_0x3809a1[_0x4622fe(0x26a)](_0x2888c7['toDisposable'](()=>{var _0xe64f84=_0x4622fe;_0xf8906a['forEach'](_0x31e6ef=>_0x31e6ef[_0xe64f84(0x1f5)]()),_0xf8906a[_0xe64f84(0x24e)]();})),_0x3809a1[_0x4622fe(0x26a)](this[_0x4622fe(0x189)]['onCommandExecuted'](_0x48e6a8=>{var _0x33addd=_0x4622fe,_0x311c4b;if(_0x48e6a8['type']!==_0x2888c7[_0x33addd(0x275)]['OPERATION']||!this['_liveShareService'][_0x33addd(0x24d)](_0x48e6a8['id']))return;const {id:_0x3a35ed}=_0x48e6a8;let _0x23bb4c;_0xf8906a[_0x33addd(0x1b4)](_0x3a35ed)?_0x23bb4c=_0xf8906a[_0x33addd(0x20b)](_0x3a35ed):(_0x23bb4c=new _0x50b554[(_0x33addd(0x231))](),_0xf8906a[_0x33addd(0x196)](_0x3a35ed,_0x23bb4c),_0x23bb4c[_0x33addd(0x1a5)](_0x51c3d9[_0x33addd(0x265)]((_0x311c4b=this[_0x33addd(0x22e)][_0x33addd(0x191)](_0x3f2b86))!=null?_0x311c4b:_0x36a823,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x55774e=>{var _0x4af356=_0x33addd;this[_0x4af356(0x1a3)][_0x4af356(0x195)]({'eventID':_0x2b64eb[_0x4af356(0x235)][_0x4af356(0x19f)],'data':{'unitID':this[_0x4af356(0x250)],'operations':{[_0x55774e['id']]:{'id':_0x55774e['id'],'params':JSON[_0x4af356(0x242)](_0x55774e[_0x4af356(0x271)])}}}},this[_0x4af356(0x250)]);})),_0x23bb4c['next'](_0x48e6a8);})),this['_liveShareService'][_0x4622fe(0x264)](this['_unitID'])['forEach'](_0x4d933a=>this[_0x4622fe(0x1a3)][_0x4622fe(0x195)]({'eventID':_0x2b64eb[_0x4622fe(0x235)][_0x4622fe(0x19f)],'data':{'unitID':this[_0x4622fe(0x250)],'operations':{[_0x4d933a['id']]:{'id':_0x4d933a['id'],'params':JSON[_0x4622fe(0x242)](_0x4d933a['params'])}}}},this['_unitID']));}[_0x205c5d(0x1a1)](){var _0x1d1d54=_0x205c5d,_0x3269bb;this[_0x1d1d54(0x23f)][_0x1d1d54(0x1cd)](_0x1d1d54(0x1d6)),(_0x3269bb=this[_0x1d1d54(0x249)])==null||_0x3269bb[_0x1d1d54(0x223)](),this[_0x1d1d54(0x249)]=null;}[_0x205c5d(0x256)](){var _0x3ed797=_0x205c5d,_0x39effa;(_0x39effa=this[_0x3ed797(0x249)])==null||_0x39effa[_0x3ed797(0x223)](),this[_0x3ed797(0x23f)][_0x3ed797(0x1cd)](_0x3ed797(0x241));}[_0x205c5d(0x1ab)](){var _0x1112cd=_0x205c5d,_0x36946c;this[_0x1112cd(0x23f)]['next'](_0x1112cd(0x1d6)),(_0x36946c=this[_0x1112cd(0x249)])==null||_0x36946c['dispose'](),this[_0x1112cd(0x249)]=null;}[_0x205c5d(0x234)](){var _0x52d496=_0x205c5d,_0x403b8b;this[_0x52d496(0x23f)]['next'](_0x52d496(0x220)),(_0x403b8b=this[_0x52d496(0x249)])==null||_0x403b8b[_0x52d496(0x223)]();}[_0x205c5d(0x221)](_0x250749){var _0x2b7a47=_0x205c5d;if([_0x2b7a47(0x1d4),_0x2b7a47(0x220),'offline'][_0x2b7a47(0x1eb)](this[_0x2b7a47(0x1cf)])||!_0x250749[_0x2b7a47(0x184)][_0x2b7a47(0x18f)]||_0x250749['data'][_0x2b7a47(0x18f)]===this['_collabSession'][_0x2b7a47(0x1ee)]())return;this['_status']===_0x2b7a47(0x1d6)&&this[_0x2b7a47(0x256)]();const _0x496a32=_0x250749[_0x2b7a47(0x184)][_0x2b7a47(0x23c)];Object[_0x2b7a47(0x267)](_0x496a32)[_0x2b7a47(0x194)](_0x5d8ca6=>{var _0x389da6=_0x2b7a47;this[_0x389da6(0x189)][_0x389da6(0x278)](_0x5d8ca6['id'],_0x5d8ca6['params']?JSON['parse'](_0x5d8ca6['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x164a37=_0x205c5d,_0x26528f;this[_0x164a37(0x23f)][_0x164a37(0x1cd)]('offline'),(_0x26528f=this[_0x164a37(0x249)])==null||_0x26528f[_0x164a37(0x223)]();}['_handleOnline'](){var _0x480dad=_0x205c5d;this[_0x480dad(0x23f)][_0x480dad(0x1cd)](_0x480dad(0x1d6)),this[_0x480dad(0x1a2)]();}},_0x1393e0['LiveShareCoordinator']=_0x25d84b([_0x35b946(0x2,_0x2888c7[_0x205c5d(0x197)]),_0x35b946(0x3,_0x2888c7[_0x205c5d(0x209)](_0x307808)),_0x35b946(0x4,_0x2888c7[_0x205c5d(0x239)])],_0x1393e0[_0x205c5d(0x1c7)]);function _0x25a5c0(){var _0x560cb1=_0x205c5d;const _0x1c58cf=_0x409307['useDependency'](_0x1393e0[_0x560cb1(0x1e7)]),_0x42e92f=_0x409307[_0x560cb1(0x1e9)](_0x2888c7[_0x560cb1(0x1cb)]),_0x5188d1=_0x409307[_0x560cb1(0x1bc)](()=>_0x42e92f[_0x560cb1(0x20d)](_0x2888c7[_0x560cb1(0x1fb)][_0x560cb1(0x1f4)]),void 0x0,!0x1,[]),[_0x4121c5,_0xec820c]=_0x211363[_0x560cb1(0x1fa)](null),[_0x2ce62f,_0xc0bf44]=_0x211363[_0x560cb1(0x1fa)](_0x585d28['IDLE']),_0x5cb690=_0x211363['useRef'](null);return _0x211363[_0x560cb1(0x1a9)](()=>(_0x5188d1&&_0x1c58cf['getLiveShareCoordinator'](_0x5188d1[_0x560cb1(0x186)]())[_0x560cb1(0x1ed)](_0x4f27e5=>{var _0x3a5b85=_0x560cb1;_0xec820c(_0x4f27e5),_0x5cb690[_0x3a5b85(0x1e1)]=_0x4f27e5[_0x3a5b85(0x252)]['subscribe'](_0x57e7e1=>{_0xc0bf44(_0x57e7e1);});}),()=>{var _0x3d5a4b;(_0x3d5a4b=_0x5cb690['current'])==null||_0x3d5a4b['unsubscribe'](),_0x5cb690['current']=null;}),[_0x5188d1,_0x1c58cf]),_0x4121c5?_0x10c72f[_0x560cb1(0x279)](_0x13b3d5[_0x560cb1(0x218)],{'align':'end','disabled':_0x2ce62f===_0x585d28[_0x560cb1(0x1b5)],'className':_0x560cb1(0x1cc),'overlay':_0x10c72f[_0x560cb1(0x279)](_0x159317,{'status':_0x2ce62f,'coordinator':_0x4121c5}),'children':_0x10c72f[_0x560cb1(0x279)](_0x560cb1(0x244),{'className':_0x13b3d5[_0x560cb1(0x258)](_0x560cb1(0x236),{'univer-cursor-not-allowed':_0x2ce62f===_0x585d28[_0x560cb1(0x1b5)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2ce62f!==_0x585d28[_0x560cb1(0x1b5)]}),'type':_0x560cb1(0x244),'children':_0x10c72f[_0x560cb1(0x279)](_0x20421c,{'className':'univer-size-4'})})}):null;}function _0x159317(_0x4abcfb){var _0x2261c6=_0x205c5d;const {status:_0x4ad55a,coordinator:_0x292cee}=_0x4abcfb;switch(_0x4ad55a){case _0x585d28[_0x2261c6(0x261)]:return _0x10c72f[_0x2261c6(0x279)](_0x1643d4,{'coordinator':_0x292cee});case _0x585d28['FOLLOWING']:return _0x10c72f[_0x2261c6(0x279)](_0x20ac25,{'coordinator':_0x292cee});case _0x585d28[_0x2261c6(0x1c5)]:return _0x10c72f[_0x2261c6(0x279)](_0x9107ec,{'coordinator':_0x292cee});case _0x585d28[_0x2261c6(0x1b5)]:return _0x10c72f[_0x2261c6(0x279)](_0x5f51be,{});case _0x585d28[_0x2261c6(0x1e6)]:return _0x10c72f['jsx'](_0x12c516,{'coordinator':_0x292cee});default:return null;}}function _0x1643d4(_0x46c7e2){var _0x5a9b2a=_0x205c5d;const {coordinator:_0x2a4ac3}=_0x46c7e2;return _0x10c72f[_0x5a9b2a(0x26d)](_0x10c72f[_0x5a9b2a(0x1e3)],{'children':[_0x10c72f[_0x5a9b2a(0x279)](_0x5a9b2a(0x1f9),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x10c72f['jsx'](_0x13b3d5['Button'],{'onClick':()=>_0x2a4ac3[_0x5a9b2a(0x1c3)](),'children':_0x5a9b2a(0x1c4)})]});}function _0x20ac25(_0x26a75e){var _0x5eb923=_0x205c5d;const {coordinator:_0x42597b}=_0x26a75e;return _0x10c72f[_0x5eb923(0x26d)](_0x10c72f[_0x5eb923(0x1e3)],{'children':[_0x10c72f[_0x5eb923(0x279)](_0x5eb923(0x1f9),{'className':_0x5eb923(0x240),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x10c72f[_0x5eb923(0x279)](_0x13b3d5[_0x5eb923(0x255)],{'onClick':()=>_0x42597b['stopFollowing'](),'children':_0x5eb923(0x1be)})]});}function _0x9107ec(_0xed0cf6){var _0x343a78=_0x205c5d;const {coordinator:_0x10b33d}=_0xed0cf6;return _0x10c72f[_0x343a78(0x26d)](_0x10c72f['Fragment'],{'children':[_0x10c72f[_0x343a78(0x279)](_0x343a78(0x1f9),{'className':_0x343a78(0x240),'children':_0x343a78(0x1ec)}),_0x10c72f['jsx'](_0x13b3d5[_0x343a78(0x255)],{'variant':_0x343a78(0x1ac),'onClick':()=>_0x10b33d['startFollowing'](),'children':_0x343a78(0x270)})]});}function _0x12c516(_0xfe0ab9){var _0x40d47f=_0x205c5d;const {coordinator:_0x31151a}=_0xfe0ab9;return _0x10c72f[_0x40d47f(0x26d)](_0x10c72f[_0x40d47f(0x1e3)],{'children':[_0x10c72f['jsx'](_0x40d47f(0x1f9),{'className':_0x40d47f(0x240),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x10c72f[_0x40d47f(0x279)](_0x13b3d5['Button'],{'variant':_0x40d47f(0x225),'onClick':()=>_0x31151a[_0x40d47f(0x229)](),'children':'Stop\x20presenting'})]});}function _0x5f51be(){var _0x402829=_0x205c5d;return _0x10c72f['jsx'](_0x10c72f['Fragment'],{'children':_0x402829(0x21c)});}var _0x1cea77=Object[_0x205c5d(0x1b6)],_0x47aa06=(_0x199464,_0x349368,_0x46e80c,_0x5432b7)=>{for(var _0x2f980e=_0x5432b7>0x1?void 0x0:_0x5432b7?_0x1cea77(_0x349368,_0x46e80c):_0x349368,_0x38e6c3=_0x199464['length']-0x1,_0x333eeb;_0x38e6c3>=0x0;_0x38e6c3--)(_0x333eeb=_0x199464[_0x38e6c3])&&(_0x2f980e=_0x333eeb(_0x2f980e)||_0x2f980e);return _0x2f980e;},_0xe652a4=(_0x5245c6,_0xe5dc1e)=>(_0x153c32,_0x17c1e9)=>_0xe5dc1e(_0x153c32,_0x17c1e9,_0x5245c6);_0x1393e0['DesktopLiveShareController']=class extends _0x2888c7[_0x205c5d(0x1f2)]{constructor(_0x7cea74,_0x546ea7){var _0x13352a=_0x205c5d;super(),this[_0x13352a(0x243)]=_0x7cea74,this[_0x13352a(0x1c6)]=_0x546ea7,this[_0x13352a(0x198)]();}['_mountLiveShare'](){var _0x1055e3=_0x205c5d;this[_0x1055e3(0x18e)](this[_0x1055e3(0x1c6)][_0x1055e3(0x216)](_0x409307['BuiltInUIPart']['HEADER_MENU'],()=>_0x409307[_0x1055e3(0x262)](_0x25a5c0,this[_0x1055e3(0x243)])));}},_0x1393e0[_0x205c5d(0x22a)]=_0x47aa06([_0xe652a4(0x0,_0x2888c7[_0x205c5d(0x209)](_0x2888c7['Injector'])),_0xe652a4(0x1,_0x409307[_0x205c5d(0x19d)])],_0x1393e0[_0x205c5d(0x22a)]);var _0x3845a7=Object[_0x205c5d(0x26e)],_0x2390bc=Object['getOwnPropertyDescriptor'],_0x3dee06=(_0x4dbd2e,_0x510fa7,_0xfd91c2)=>_0x510fa7 in _0x4dbd2e?_0x3845a7(_0x4dbd2e,_0x510fa7,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xfd91c2}):_0x4dbd2e[_0x510fa7]=_0xfd91c2,_0x458671=(_0x1fb628,_0x55a2dc,_0x37a2c9,_0x230683)=>{var _0x323064=_0x205c5d;for(var _0x122bb7=_0x230683>0x1?void 0x0:_0x230683?_0x2390bc(_0x55a2dc,_0x37a2c9):_0x55a2dc,_0x1a3047=_0x1fb628[_0x323064(0x201)]-0x1,_0xfcff27;_0x1a3047>=0x0;_0x1a3047--)(_0xfcff27=_0x1fb628[_0x1a3047])&&(_0x122bb7=_0xfcff27(_0x122bb7)||_0x122bb7);return _0x122bb7;},_0x2e8544=(_0x5273a0,_0x5c7bff)=>(_0x2b4719,_0x137660)=>_0x5c7bff(_0x2b4719,_0x137660,_0x5273a0),_0x1d2288=(_0x129a00,_0x1ff250,_0x503af7)=>_0x3dee06(_0x129a00,typeof _0x1ff250!=_0x205c5d(0x200)?_0x1ff250+'':_0x1ff250,_0x503af7);const _0x2d70f9=_0x205c5d(0x1b2);_0x1393e0['UniverLiveSharePlugin']=class extends _0x2888c7['Plugin']{constructor(_0x1d46a2=_0x4c52ee,_0xc4f9e9,_0xb66aa2){var _0x12c445=_0x205c5d;super(),this[_0x12c445(0x1d1)]=_0x1d46a2,this[_0x12c445(0x243)]=_0xc4f9e9,this[_0x12c445(0x22e)]=_0xb66aa2;const {..._0x393f95}=_0x2888c7[_0x12c445(0x1db)]({},_0x4c52ee,this[_0x12c445(0x1d1)]);this[_0x12c445(0x22e)][_0x12c445(0x277)](_0x6389c6,_0x393f95);}[_0x205c5d(0x237)](){var _0xc33fd6=_0x205c5d;_0x2888c7[_0xc33fd6(0x251)](this['_injector'],_0x2888c7[_0xc33fd6(0x23d)]([[_0x307808],[_0x1393e0[_0xc33fd6(0x1e7)]],[_0x24c23c],[_0x1393e0[_0xc33fd6(0x22a)]]],this[_0xc33fd6(0x1d1)][_0xc33fd6(0x19a)])),_0x2888c7[_0xc33fd6(0x21f)](this['_injector'],[[_0x24c23c]]);}[_0x205c5d(0x206)](){var _0x229a82=_0x205c5d;_0x2888c7[_0x229a82(0x21f)](this[_0x229a82(0x243)],[[_0x1393e0['DesktopLiveShareController']]]);}},_0x1d2288(_0x1393e0['UniverLiveSharePlugin'],_0x205c5d(0x213),_0x2888c7['UniverInstanceType'][_0x205c5d(0x1ad)]),_0x1d2288(_0x1393e0['UniverLiveSharePlugin'],_0x205c5d(0x1fd),_0x2d70f9),_0x1393e0[_0x205c5d(0x219)]=_0x458671([_0x2888c7[_0x205c5d(0x222)](_0x59a0da['UniverCollaborationClientPlugin']),_0x2e8544(0x1,_0x2888c7[_0x205c5d(0x209)](_0x2888c7[_0x205c5d(0x1f8)])),_0x2e8544(0x2,_0x2888c7[_0x205c5d(0x197)])],_0x1393e0[_0x205c5d(0x219)]),_0x1393e0[_0x205c5d(0x23a)]=_0x25a5c0,_0x1393e0[_0x205c5d(0x202)]=_0x307808,_0x1393e0[_0x205c5d(0x21d)]=_0x585d28,Object['defineProperty'](_0x1393e0,Symbol[_0x205c5d(0x22d)],{'value':_0x205c5d(0x259)});}));function _0x522d(_0x2e2661,_0x3e7a8e){var _0xc531e9=_0xc531();return _0x522d=function(_0x522dfb,_0x532c3b){_0x522dfb=_0x522dfb-0x181;var _0x411f22=_0xc531e9[_0x522dfb];return _0x411f22;},_0x522d(_0x2e2661,_0x3e7a8e);}function _0xc531(){var _0x33e5aa=['icon','path','tag','unitId','merge','React','colorChannel1','SetScrollOperation','displayName','subscribe','current','forwardRef','Fragment','className','@univerjs/sheets','PRESENTING','LiveShareController','_sharedOperations','useDependency','_handleOffline','includes','You\x27re\x20not\x20following\x20the\x20presenter','then','getMemberID','entries','_handleTerminate','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','Disposable','mask','UNIVER_SHEET','complete','_startPresenting','getOwnPropertySymbols','Injector','div','useState','UniverInstanceType','toString','pluginName','getTypeOfUnitDisposed$','@univerjs-pro/collaboration','symbol','length','LiveShareService','fill','init','UniverProCollaborationClient','onRendered','none','memberID','Inject','1146eBfLRb','get','from','getCurrentTypeOfUnit$','@univerjs-pro/collaboration-client','UniverSheets','InsertSheetMutation','parseProtocolChangeset','LIVESHARE_TERMINATE','type','currentColor','createInstance','registerComponent','LIVESHARE_FETCH_OPERATIONS','Dropdown','UniverLiveSharePlugin','getLiveShareCoordinator','amd','You\x27are\x20offline.','LiveShareStatus','event$','touchDependencies','not-following','_handleOperation','DependentOn','dispose','ONLINE','default','indexOf','replace','url(#$1','stopPresenting','DesktopLiveShareController','815289ovPuzd','extend','toStringTag','_configService','1691884tBlUrT','UniverProCollaboration','Subject','stopFollowing','UniverSheetsUi','_stopFollowing','CollaborationEvent','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','onStarting','defs','ICommandService','LiveShare','reverse','operations','mergeOverrideWithDependencies','rxjs','_status$','univer-w-full\x20univer-mb-3\x20univer-text-sm','following','stringify','_injector','button','UniverUi','8dwssSS','rxjs/operators','_handleOnline','_commandDisposable','operators','@univerjs/sheets-ui','defIds','shouldShareOperation','clear','143160hWiprZ','_unitID','registerDependencies','status$','0\x200\x2016\x2016','call','Button','_startFollowing','59590vamuWf','clsx','Module','offline','use','attrs','xlink:href','svg','trim','UniverCore','IDLE','connectInjector','object','getInitialStates','throttleTime','DisposableCollection','values','string','sessionStatus$','add','concat','BehaviorSubject','jsxs','defineProperty','@univerjs/ui','Start\x20following','params','_init','createElement','_startLiveShareCoordinator','CommandType','univerjs-icon\x20univerjs-icon-','setConfig','executeCommand','jsx','idSuffix','registerSharedOperation','map','apply','useRef','data','toDisposable','getUnitId','817898WIYFNs','evenodd','_commandService','_univerInstanceService','NEW_CHANGESETS','2167865IxcLav','hasOwnProperty','disposeWithMe','presenter','SessionStatus','getConfig','dispose$','SetWorksheetActiveOperation','forEach','send','set','IConfigService','_mountLiveShare','LiveShareSingle','override','_reporters','substring','IUIPartsService','1em','LIVESHARE_OPERATION','_handleNewChangeSets','_stopPresenting','_fetchOperations','_collabSession','_handleNewHost','pipe','requireSession','live-share.config','react','useEffect','_liveShareService','_beIdle','text','UNIVER_UNKNOWN','random','function','CollaborationSessionService','prototype','UNIVER_LIVE_SHARE_PLUGIN','takeUntil','has','OFFLINE','getOwnPropertyDescriptor','children','333ZSDJYm','react/jsx-runtime','registerInitialStateReporter','@univerjs/design','useObservable','propertyIsEnumerable','Stop\x20following','startFollowing','_presenter','UniverIcon','5735hdYxwI','tryStartPresenting','Start','NOT_FOLLOWING','_uiPartsService','LiveShareCoordinator','FOLLOWING','_collabSessionService','getTypeOfUnitAdded$','IUniverInstanceService','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','next','delete','_status','_entities','_config','assign','@univerjs/core','presenting','mutations','idle'];_0xc531=function(){return _0x33e5aa;};return _0xc531();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.7.0-nightly.
|
|
3
|
+
"version": "0.7.0-nightly.202505251606",
|
|
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.3.24",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.7.0-nightly.
|
|
51
|
-
"@univerjs-pro/collaboration-client": "0.7.0-nightly.
|
|
52
|
-
"@univerjs/core": "0.7.0-nightly.
|
|
53
|
-
"@univerjs/
|
|
54
|
-
"@univerjs/
|
|
55
|
-
"@univerjs/ui": "0.7.0-nightly.
|
|
56
|
-
"@univerjs/sheets-ui": "0.7.0-nightly.
|
|
50
|
+
"@univerjs-pro/collaboration": "0.7.0-nightly.202505251606",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.7.0-nightly.202505251606",
|
|
52
|
+
"@univerjs/core": "0.7.0-nightly.202505251606",
|
|
53
|
+
"@univerjs/design": "0.7.0-nightly.202505251606",
|
|
54
|
+
"@univerjs/sheets": "0.7.0-nightly.202505251606",
|
|
55
|
+
"@univerjs/ui": "0.7.0-nightly.202505251606",
|
|
56
|
+
"@univerjs/sheets-ui": "0.7.0-nightly.202505251606"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.3",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
64
|
"vite": "^6.3.5",
|
|
65
65
|
"vitest": "^3.1.4",
|
|
66
|
-
"@univerjs
|
|
67
|
-
"@univerjs/
|
|
66
|
+
"@univerjs/protocol": "0.1.47-alpha.0",
|
|
67
|
+
"@univerjs-infra/shared": "0.7.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"test": "vitest run",
|