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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x51f54d=_0xfd87;(function(_0x1b9b35,_0x5c0e3d){var _0x4fbc0d=_0xfd87,_0x40363f=_0x1b9b35();while(!![]){try{var _0x9146c1=parseInt(_0x4fbc0d(0x201))/0x1+parseInt(_0x4fbc0d(0x1ad))/0x2+parseInt(_0x4fbc0d(0x1a7))/0x3+-parseInt(_0x4fbc0d(0x1f5))/0x4*(parseInt(_0x4fbc0d(0x250))/0x5)+-parseInt(_0x4fbc0d(0x1b3))/0x6*(parseInt(_0x4fbc0d(0x230))/0x7)+parseInt(_0x4fbc0d(0x26d))/0x8*(parseInt(_0x4fbc0d(0x1a2))/0x9)+-parseInt(_0x4fbc0d(0x272))/0xa;if(_0x9146c1===_0x5c0e3d)break;else _0x40363f['push'](_0x40363f['shift']());}catch(_0x5093d9){_0x40363f['push'](_0x40363f['shift']());}}}(_0x594e,0xb571d));var U=Object[_0x51f54d(0x240)],F=(_0x1eceaa,_0x2e64f1,_0x425620)=>_0x2e64f1 in _0x1eceaa?U(_0x1eceaa,_0x2e64f1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x425620}):_0x1eceaa[_0x2e64f1]=_0x425620,v=(_0x446ce2,_0x1a4584,_0x2a9e1b)=>F(_0x446ce2,typeof _0x1a4584!=_0x51f54d(0x25f)?_0x1a4584+'':_0x1a4584,_0x2a9e1b);Object[_0x51f54d(0x240)](exports,Symbol['toStringTag'],{'value':_0x51f54d(0x1f2)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$=_0x51f54d(0x253),x={};class O extends o[_0x51f54d(0x206)]{constructor(){var _0x33c496=_0x51f54d;super(...arguments),v(this,'_sharedOperations',new Set()),v(this,_0x33c496(0x256),new Set());}[_0x51f54d(0x25d)](_0x47d85f){var _0x18bd3a=_0x51f54d;return this[_0x18bd3a(0x1f8)][_0x18bd3a(0x247)](_0x47d85f),o[_0x18bd3a(0x1f6)](()=>this[_0x18bd3a(0x1f8)][_0x18bd3a(0x26f)](_0x47d85f));}[_0x51f54d(0x1cf)](_0x3375ea){var _0x449c85=_0x51f54d;return this['_reporters']['add'](_0x3375ea),o[_0x449c85(0x1f6)](()=>this[_0x449c85(0x256)][_0x449c85(0x26f)](_0x3375ea));}[_0x51f54d(0x20a)](_0x5d7389){var _0x154afa=_0x51f54d;return this[_0x154afa(0x1f8)][_0x154afa(0x237)](_0x5d7389);}['getInitialStates'](_0x175a4c){var _0x4a2cc0=_0x51f54d;return Array[_0x4a2cc0(0x1c7)](this[_0x4a2cc0(0x256)])[_0x4a2cc0(0x21c)](_0x13fff5=>_0x13fff5(_0x175a4c));}}var H=Object[_0x51f54d(0x1b1)],V=(_0x3fe2b8,_0x174c5b,_0x33a2dd,_0x4f645b)=>{var _0x1ea138=_0x51f54d;for(var _0x5ec556=_0x4f645b>0x1?void 0x0:_0x4f645b?H(_0x174c5b,_0x33a2dd):_0x174c5b,_0x34d1f9=_0x3fe2b8[_0x1ea138(0x19f)]-0x1,_0x4775d7;_0x34d1f9>=0x0;_0x34d1f9--)(_0x4775d7=_0x3fe2b8[_0x34d1f9])&&(_0x5ec556=_0x4775d7(_0x5ec556)||_0x5ec556);return _0x5ec556;},k=(_0x52320e,_0x5871f5)=>(_0x1bf455,_0x45b43c)=>_0x5871f5(_0x1bf455,_0x45b43c,_0x52320e);function _0xfd87(_0x109949,_0x427fe8){var _0x594eac=_0x594e();return _0xfd87=function(_0xfd877e,_0x2c4c4a){_0xfd877e=_0xfd877e-0x19d;var _0x5ea03e=_0x594eac[_0xfd877e];return _0x5ea03e;},_0xfd87(_0x109949,_0x427fe8);}let E=class extends o['Disposable']{constructor(_0x3fe28c){var _0xc1bb5=_0x51f54d;super(),this['_liveShareService']=_0x3fe28c,this[_0xc1bb5(0x1bd)]();}[_0x51f54d(0x1bd)](){var _0x556688=_0x51f54d;[w['SetZoomRatioOperation']['id'],w[_0x556688(0x241)]['id'],C['SetWorksheetActiveOperation']['id']]['forEach'](_0x2f02e5=>{var _0x31e0b5=_0x556688;this[_0x31e0b5(0x1db)](this[_0x31e0b5(0x1eb)][_0x31e0b5(0x25d)](_0x2f02e5));});}};E=V([k(0x0,o[_0x51f54d(0x21b)](O))],E);var u=function(){var _0x10da66=_0x51f54d;return u=Object[_0x10da66(0x1a0)]||function(_0x1744e7){var _0x19821e=_0x10da66;for(var _0x42c166,_0x51bc51=0x1,_0x4333d6=arguments[_0x19821e(0x19f)];_0x51bc51<_0x4333d6;_0x51bc51++){_0x42c166=arguments[_0x51bc51];for(var _0x5114f1 in _0x42c166)Object[_0x19821e(0x1ac)][_0x19821e(0x1e6)][_0x19821e(0x1a5)](_0x42c166,_0x5114f1)&&(_0x1744e7[_0x5114f1]=_0x42c166[_0x5114f1]);}return _0x1744e7;},u[_0x10da66(0x248)](this,arguments);},M=function(_0x165602,_0x592ba5){var _0x43aef0=_0x51f54d,_0x45cda6={};for(var _0x37dd8f in _0x165602)Object[_0x43aef0(0x1ac)][_0x43aef0(0x1e6)]['call'](_0x165602,_0x37dd8f)&&_0x592ba5['indexOf'](_0x37dd8f)<0x0&&(_0x45cda6[_0x37dd8f]=_0x165602[_0x37dd8f]);if(_0x165602!=null&&typeof Object[_0x43aef0(0x1e2)]==_0x43aef0(0x21e)){for(var _0xa6e5f9=0x0,_0x37dd8f=Object[_0x43aef0(0x1e2)](_0x165602);_0xa6e5f9<_0x37dd8f[_0x43aef0(0x19f)];_0xa6e5f9++)_0x592ba5['indexOf'](_0x37dd8f[_0xa6e5f9])<0x0&&Object['prototype'][_0x43aef0(0x21a)][_0x43aef0(0x1a5)](_0x165602,_0x37dd8f[_0xa6e5f9])&&(_0x45cda6[_0x37dd8f[_0xa6e5f9]]=_0x165602[_0x37dd8f[_0xa6e5f9]]);}return _0x45cda6;},j=f[_0x51f54d(0x23f)](function(_0x1c870e,_0x4d302c){var _0x30e82e=_0x51f54d,_0x11c168=_0x1c870e['icon'],_0x2db42a=_0x1c870e['id'],_0x16dca5=_0x1c870e[_0x30e82e(0x202)],_0x3dee39=_0x1c870e[_0x30e82e(0x239)],_0x437677=M(_0x1c870e,[_0x30e82e(0x270),'id','className','extend']),_0x32326d=_0x30e82e(0x1dd)['concat'](_0x2db42a,'\x20')[_0x30e82e(0x27a)](_0x16dca5||'')['trim'](),_0x305c1d=f['useRef']('_'['concat'](G()));return y(_0x11c168,''[_0x30e82e(0x27a)](_0x2db42a),{'defIds':_0x11c168[_0x30e82e(0x22f)],'idSuffix':_0x305c1d[_0x30e82e(0x233)]},u({'ref':_0x4d302c,'className':_0x32326d},_0x437677),_0x3dee39);});function y(_0x4ea89c,_0x4500f8,_0x193692,_0xb53df4,_0x32ac07){var _0x240a58=_0x51f54d;return f[_0x240a58(0x267)](_0x4ea89c['tag'],u(u({'key':_0x4500f8},q(_0x4ea89c,_0x193692,_0x32ac07)),_0xb53df4),(W(_0x4ea89c,_0x193692)[_0x240a58(0x24f)]||[])[_0x240a58(0x21c)](function(_0xb6863e,_0x5ac181){var _0x1b4395=_0x240a58;return y(_0xb6863e,''[_0x1b4395(0x27a)](_0x4500f8,'-')[_0x1b4395(0x27a)](_0x4ea89c['tag'],'-')['concat'](_0x5ac181),_0x193692,void 0x0,_0x32ac07);}));}function q(_0x2df358,_0x160b26,_0x6689fe){var _0x27506c=_0x51f54d,_0x295bea=u({},_0x2df358[_0x27506c(0x1be)]);_0x6689fe!=null&&_0x6689fe[_0x27506c(0x226)]&&_0x295bea[_0x27506c(0x27e)]===_0x27506c(0x226)&&(_0x295bea[_0x27506c(0x27e)]=_0x6689fe[_0x27506c(0x226)]),_0x2df358[_0x27506c(0x214)]==='mask'&&_0x295bea['id']&&(_0x295bea['id']=_0x295bea['id']+_0x160b26[_0x27506c(0x1f9)]),Object[_0x27506c(0x231)](_0x295bea)[_0x27506c(0x26b)](function(_0x5dc2ce){var _0x4338d6=_0x27506c,_0x40540b=_0x5dc2ce[0x0],_0xd483a2=_0x5dc2ce[0x1];_0x40540b===_0x4338d6(0x221)&&typeof _0xd483a2=='string'&&(_0x295bea[_0x40540b]=_0xd483a2[_0x4338d6(0x232)](/url\(#(.*)\)/,_0x4338d6(0x219)['concat'](_0x160b26[_0x4338d6(0x1f9)],')')));});var _0x3bcb1c=_0x160b26['defIds'];return!_0x3bcb1c||_0x3bcb1c[_0x27506c(0x19f)]===0x0||(_0x2df358[_0x27506c(0x214)]===_0x27506c(0x200)&&_0x295bea[_0x27506c(0x1d4)]&&(_0x295bea[_0x27506c(0x1d4)]=_0x295bea[_0x27506c(0x1d4)]+_0x160b26[_0x27506c(0x1f9)]),Object['entries'](_0x295bea)[_0x27506c(0x26b)](function(_0x4154d9){var _0xc0892e=_0x27506c,_0xca89ca=_0x4154d9[0x0],_0x3455ab=_0x4154d9[0x1];typeof _0x3455ab==_0xc0892e(0x236)&&(_0x295bea[_0xca89ca]=_0x3455ab['replace'](/url\(#(.*)\)/,_0xc0892e(0x219)[_0xc0892e(0x27a)](_0x160b26[_0xc0892e(0x1f9)],')')));})),_0x295bea;}function W(_0x2f56e7,_0x5ac71f){var _0x403ea5=_0x51f54d,_0x48b4a1,_0x20257e=_0x5ac71f[_0x403ea5(0x22f)];return!_0x20257e||_0x20257e[_0x403ea5(0x19f)]===0x0?_0x2f56e7:_0x2f56e7[_0x403ea5(0x214)]===_0x403ea5(0x20e)&&(!((_0x48b4a1=_0x2f56e7[_0x403ea5(0x24f)])===null||_0x48b4a1===void 0x0)&&_0x48b4a1['length'])?u(u({},_0x2f56e7),{'children':_0x2f56e7[_0x403ea5(0x24f)][_0x403ea5(0x21c)](function(_0x4adb2f){var _0x511fc9=_0x403ea5;return typeof _0x4adb2f[_0x511fc9(0x1be)]['id']==_0x511fc9(0x236)&&_0x20257e&&_0x20257e[_0x511fc9(0x1c4)](_0x4adb2f[_0x511fc9(0x1be)]['id'])?u(u({},_0x4adb2f),{'attrs':u(u({},_0x4adb2f['attrs']),{'id':_0x4adb2f['attrs']['id']+_0x5ac71f[_0x511fc9(0x1f9)]})}):_0x4adb2f;})}):_0x2f56e7;}function G(){var _0x4c72ff=_0x51f54d;return Math[_0x4c72ff(0x1f3)]()[_0x4c72ff(0x1e7)](0x24)['substring'](0x2,0x8);}j[_0x51f54d(0x217)]=_0x51f54d(0x21f);var B={'tag':_0x51f54d(0x213),'attrs':{'xmlns':_0x51f54d(0x1ef),'fill':_0x51f54d(0x24b),'viewBox':_0x51f54d(0x1d2),'width':_0x51f54d(0x26a),'height':_0x51f54d(0x26a)},'children':[{'tag':_0x51f54d(0x1ec),'attrs':{'fill':'currentColor','d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0x51f54d(0x1ec),'attrs':{'fill':_0x51f54d(0x1b4),'d':_0x51f54d(0x249),'fillRule':_0x51f54d(0x218),'clipRule':'evenodd'}}]},P=f[_0x51f54d(0x23f)](function(_0x25e111,_0x56e1e4){var _0x3fa95b=_0x51f54d;return f[_0x3fa95b(0x267)](j,Object['assign']({},_0x25e111,{'id':'live-share-icon','ref':_0x56e1e4,'icon':B}));});P[_0x51f54d(0x217)]=_0x51f54d(0x24e);var Y=Object['getOwnPropertyDescriptor'],R=(_0x26d726,_0x201c85,_0x2f7815,_0x5d0792)=>{var _0x3b2505=_0x51f54d;for(var _0x81058c=_0x5d0792>0x1?void 0x0:_0x5d0792?Y(_0x201c85,_0x2f7815):_0x201c85,_0x1fe3c1=_0x26d726[_0x3b2505(0x19f)]-0x1,_0x417783;_0x1fe3c1>=0x0;_0x1fe3c1--)(_0x417783=_0x26d726[_0x1fe3c1])&&(_0x81058c=_0x417783(_0x81058c)||_0x81058c);return _0x81058c;},S=(_0x58d22c,_0x2d3937)=>(_0x26390d,_0x2c214f)=>_0x2d3937(_0x26390d,_0x2c214f,_0x58d22c);exports['LiveShareController']=class extends o[_0x51f54d(0x1a8)]{constructor(_0x20fe92,_0x5cb1a9,_0x3e2b50){var _0x232db0=_0x51f54d;super(),v(this,_0x232db0(0x234),new Map()),(this[_0x232db0(0x25c)]=_0x20fe92,this['_injector']=_0x5cb1a9,this[_0x232db0(0x276)]=_0x3e2b50,this['_init']());}async[_0x51f54d(0x246)](_0x6da8a6){var _0x3a59aa=_0x51f54d;return this[_0x3a59aa(0x234)][_0x3a59aa(0x237)](_0x6da8a6)||await this[_0x3a59aa(0x1d3)](_0x6da8a6),this['_entities'][_0x3a59aa(0x224)](_0x6da8a6);}[_0x51f54d(0x1bd)](){var _0xbc7f18=_0x51f54d;this[_0xbc7f18(0x25c)]['getTypeOfUnitAdded$'](o[_0xbc7f18(0x215)][_0xbc7f18(0x1af)])[_0xbc7f18(0x279)](b[_0xbc7f18(0x22a)](this[_0xbc7f18(0x271)]))['subscribe'](async _0x49a755=>{var _0x52ca2f=_0xbc7f18;const _0x12db29=_0x49a755[_0x52ca2f(0x1dc)]();this[_0x52ca2f(0x234)][_0x52ca2f(0x237)](_0x12db29)||this[_0x52ca2f(0x1d3)](_0x12db29);}),this['_univerInstanceService'][_0xbc7f18(0x220)](o[_0xbc7f18(0x215)][_0xbc7f18(0x1af)])['pipe'](b[_0xbc7f18(0x22a)](this[_0xbc7f18(0x271)]))['subscribe'](_0x2415ea=>{var _0x56ee9e=_0xbc7f18;const _0x186edb=_0x2415ea[_0x56ee9e(0x1dc)](),_0x2e0188=this[_0x56ee9e(0x234)][_0x56ee9e(0x224)](_0x186edb);_0x2e0188==null||_0x2e0188[_0x56ee9e(0x23a)]();});}async[_0x51f54d(0x1d3)](_0x48cef1){var _0x443b38=_0x51f54d;const _0x3824a9=await this[_0x443b38(0x276)][_0x443b38(0x1ae)](_0x48cef1),_0x356dbe=this[_0x443b38(0x278)]['createInstance'](exports[_0x443b38(0x245)],_0x48cef1,_0x3824a9);return _0x356dbe[_0x443b38(0x1f0)](),this[_0x443b38(0x234)][_0x443b38(0x1e9)](_0x48cef1,_0x356dbe),_0x356dbe;}},exports['LiveShareController']=R([S(0x0,o[_0x51f54d(0x216)]),S(0x1,o[_0x51f54d(0x21b)](o[_0x51f54d(0x24d)])),S(0x2,o[_0x51f54d(0x21b)](m[_0x51f54d(0x225)]))],exports[_0x51f54d(0x1aa)]);var h=(_0x2e57cf=>(_0x2e57cf['OFFLINE']=_0x51f54d(0x1fe),_0x2e57cf[_0x51f54d(0x238)]='idle',_0x2e57cf[_0x51f54d(0x263)]=_0x51f54d(0x1a1),_0x2e57cf[_0x51f54d(0x1d9)]=_0x51f54d(0x1bc),_0x2e57cf[_0x51f54d(0x27b)]=_0x51f54d(0x1f1),_0x2e57cf))(h||{});const Z=_0x51f54d(0x1ca),J=0xc8;exports[_0x51f54d(0x245)]=class extends o[_0x51f54d(0x1a8)]{constructor(_0x397847,_0x1e8d83,_0x17ba24,_0x44426f,_0x4e7224){var _0x470c54=_0x51f54d;super(),v(this,'_status$',new D[(_0x470c54(0x1ba))](_0x470c54(0x1cb))),v(this,_0x470c54(0x1d0),this['_status$'][_0x470c54(0x1d5)]()),v(this,_0x470c54(0x1bd),!0x1),v(this,_0x470c54(0x1fd),null),v(this,_0x470c54(0x1ed),null),(this['_unitID']=_0x397847,this[_0x470c54(0x1d8)]=_0x1e8d83,this[_0x470c54(0x205)]=_0x17ba24,this[_0x470c54(0x1eb)]=_0x44426f,this[_0x470c54(0x22d)]=_0x4e7224);}get[_0x51f54d(0x1b9)](){var _0x2c0724=_0x51f54d;return this['_status$'][_0x2c0724(0x1f7)]();}['dispose'](){var _0xc19a11=_0x51f54d,_0xea7015;(_0xea7015=this[_0xc19a11(0x1fd)])==null||_0xea7015[_0xc19a11(0x23a)](),this['_status$'][_0xc19a11(0x1c1)]('idle'),this['_status$'][_0xc19a11(0x1c6)]();}[_0x51f54d(0x1f0)](){var _0x56b9ab=_0x51f54d;this[_0x56b9ab(0x1bd)]||(this[_0x56b9ab(0x1bd)]=!0x0,this[_0x56b9ab(0x1d8)]['sessionStatus$']['pipe'](b[_0x56b9ab(0x22a)](this[_0x56b9ab(0x271)]))[_0x56b9ab(0x266)](_0x2d0dee=>{var _0xb1fbed=_0x56b9ab;switch(_0x2d0dee){case m[_0xb1fbed(0x1b6)][_0xb1fbed(0x1c8)]:this[_0xb1fbed(0x252)]();break;case m['SessionStatus']['ONLINE']:this[_0xb1fbed(0x254)]();break;}}),this[_0x56b9ab(0x1d8)][_0x56b9ab(0x222)][_0x56b9ab(0x279)](b[_0x56b9ab(0x22a)](this[_0x56b9ab(0x271)]))[_0x56b9ab(0x266)](_0x3132d6=>{var _0x1d0ab4=_0x56b9ab;const {eventID:_0x3d8abd}=_0x3132d6;switch(_0x3d8abd){case _['CollaborationEvent'][_0x1d0ab4(0x19d)]:this['_handleNewHost'](_0x3132d6);break;case _['CollaborationEvent']['LIVESHARE_OPERATION']:this['_handleOperation'](_0x3132d6);break;case _['CollaborationEvent'][_0x1d0ab4(0x228)]:this[_0x1d0ab4(0x21d)]();break;case _[_0x1d0ab4(0x23c)][_0x1d0ab4(0x20d)]:this[_0x1d0ab4(0x1e0)](_0x3132d6);break;}}));}[_0x51f54d(0x229)](){var _0x4e17e2=_0x51f54d;this[_0x4e17e2(0x1d8)][_0x4e17e2(0x1c3)]({'eventID':_[_0x4e17e2(0x23c)][_0x4e17e2(0x1a9)],'data':{'unitID':this[_0x4e17e2(0x242)],'userID':this['_collabSession'][_0x4e17e2(0x1d6)]()}},this[_0x4e17e2(0x242)]);}[_0x51f54d(0x1b8)](){var _0x168e4c=_0x51f54d;this[_0x168e4c(0x1b9)]===_0x168e4c(0x1f1)&&(this[_0x168e4c(0x27d)][_0x168e4c(0x1c1)](_0x168e4c(0x1cb)),this[_0x168e4c(0x1d8)]['send']({'eventID':_['CollaborationEvent']['LIVESHARE_TERMINATE'],'data':{'unitID':this['_unitID']}},this[_0x168e4c(0x242)]));}['startFollowing'](){var _0x1c087=_0x51f54d;this[_0x1c087(0x1b9)]===_0x1c087(0x1bc)&&(this[_0x1c087(0x27d)]['next'](_0x1c087(0x1a1)),this['_startFollowing']());}[_0x51f54d(0x257)](){var _0x46c2a7=_0x51f54d;this[_0x46c2a7(0x1b9)]==='following'&&this[_0x46c2a7(0x1bf)]();}['_handleNewHost'](_0x56f886){var _0x54ac4a=_0x51f54d;const {presenter:_0x17e2f7}=_0x56f886[_0x54ac4a(0x251)],_0x2e9843=this[_0x54ac4a(0x1d8)][_0x54ac4a(0x1d6)]();this[_0x54ac4a(0x1ed)]=_0x17e2f7,_0x17e2f7===_0x2e9843?(this[_0x54ac4a(0x1bf)](),this[_0x54ac4a(0x20b)]()):this[_0x54ac4a(0x1b9)]!==_0x54ac4a(0x1bc)&&(this['_stopPresenting'](),this[_0x54ac4a(0x1e3)]());}[_0x51f54d(0x203)](){var _0x49f900=_0x51f54d;const _0x5bed98={'eventID':_['CollaborationEvent'][_0x49f900(0x1fc)]};this[_0x49f900(0x1d8)]['send'](_0x5bed98,this[_0x49f900(0x242)]);}['_handleTerminate'](){var _0x55d2ff=_0x51f54d;this['_presenter']=null,this[_0x55d2ff(0x1b9)]!==_0x55d2ff(0x1f1)&&this[_0x55d2ff(0x25a)]();}['_handleNewChangeSets'](_0x422da3){var _0xa9c159=_0x51f54d;if(this['_status']===_0xa9c159(0x1a1)&&this['_presenter']===_0x422da3[_0xa9c159(0x251)][_0xa9c159(0x273)]){const _0x5e6526=_[_0xa9c159(0x1fa)](_0x422da3[_0xa9c159(0x251)])['mutations'][_0xa9c159(0x27c)]()[_0xa9c159(0x255)](_0x27ba0b=>_0x27ba0b['id']===C[_0xa9c159(0x262)]['id']);if(_0x5e6526){const _0x842f74=_0x5e6526[_0xa9c159(0x1e4)]['unitId'],_0x5e264f=_0x5e6526['params'][_0xa9c159(0x1c9)]['id'];setTimeout(()=>{var _0x4ee8c5=_0xa9c159;this[_0x4ee8c5(0x22d)][_0x4ee8c5(0x26c)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x842f74,'subUnitId':_0x5e264f},{'fromCollab':!0x0});});}}}[_0x51f54d(0x20b)](){var _0x3a4989=_0x51f54d;this['_status$'][_0x3a4989(0x1c1)](_0x3a4989(0x1f1));const _0x54722=new Map(),_0x47ead1=this[_0x3a4989(0x1fd)]=new o[(_0x3a4989(0x1a4))]();_0x47ead1[_0x3a4989(0x247)](o[_0x3a4989(0x1f6)](()=>{var _0x5cf408=_0x3a4989;_0x54722[_0x5cf408(0x26b)](_0x50d289=>_0x50d289[_0x5cf408(0x1c6)]()),_0x54722[_0x5cf408(0x269)]();})),_0x47ead1['add'](this[_0x3a4989(0x22d)][_0x3a4989(0x212)](_0x1024ef=>{var _0x30aa80=_0x3a4989,_0xd4c2f3;if(_0x1024ef[_0x30aa80(0x1d1)]!==o[_0x30aa80(0x1a3)][_0x30aa80(0x1ce)]||!this[_0x30aa80(0x1eb)][_0x30aa80(0x20a)](_0x1024ef['id']))return;const {id:_0xb8b877}=_0x1024ef;let _0x244c37;_0x54722[_0x30aa80(0x237)](_0xb8b877)?_0x244c37=_0x54722['get'](_0xb8b877):(_0x244c37=new D[(_0x30aa80(0x1ff))](),_0x54722[_0x30aa80(0x1e9)](_0xb8b877,_0x244c37),_0x244c37[_0x30aa80(0x279)](b[_0x30aa80(0x211)]((_0xd4c2f3=this['_configService'][_0x30aa80(0x1c2)](Z))!=null?_0xd4c2f3:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x30aa80(0x266)](_0x5ec96d=>{var _0x1f6b84=_0x30aa80;this['_collabSession'][_0x1f6b84(0x1c3)]({'eventID':_[_0x1f6b84(0x23c)][_0x1f6b84(0x244)],'data':{'unitID':this[_0x1f6b84(0x242)],'operations':{[_0x5ec96d['id']]:{'id':_0x5ec96d['id'],'params':JSON[_0x1f6b84(0x258)](_0x5ec96d['params'])}}}},this[_0x1f6b84(0x242)]);})),_0x244c37[_0x30aa80(0x1c1)](_0x1024ef);})),this[_0x3a4989(0x1eb)]['getInitialStates'](this[_0x3a4989(0x242)])['forEach'](_0x38caa6=>this['_collabSession'][_0x3a4989(0x1c3)]({'eventID':_[_0x3a4989(0x23c)][_0x3a4989(0x244)],'data':{'unitID':this[_0x3a4989(0x242)],'operations':{[_0x38caa6['id']]:{'id':_0x38caa6['id'],'params':JSON[_0x3a4989(0x258)](_0x38caa6['params'])}}}},this[_0x3a4989(0x242)]));}[_0x51f54d(0x207)](){var _0x2a8989=_0x51f54d,_0xb5674e;this[_0x2a8989(0x27d)]['next'](_0x2a8989(0x1cb)),(_0xb5674e=this[_0x2a8989(0x1fd)])==null||_0xb5674e['dispose'](),this[_0x2a8989(0x1fd)]=null;}[_0x51f54d(0x1e3)](){var _0x1e0405=_0x51f54d,_0x17e045;(_0x17e045=this[_0x1e0405(0x1fd)])==null||_0x17e045[_0x1e0405(0x23a)](),this[_0x1e0405(0x27d)][_0x1e0405(0x1c1)]('following');}['_beIdle'](){var _0x5b61a2=_0x51f54d,_0x3711b6;this[_0x5b61a2(0x27d)]['next'](_0x5b61a2(0x1cb)),(_0x3711b6=this[_0x5b61a2(0x1fd)])==null||_0x3711b6[_0x5b61a2(0x23a)](),this[_0x5b61a2(0x1fd)]=null;}[_0x51f54d(0x1bf)](){var _0x5d772b=_0x51f54d,_0x2db040;this[_0x5d772b(0x27d)][_0x5d772b(0x1c1)](_0x5d772b(0x1bc)),(_0x2db040=this[_0x5d772b(0x1fd)])==null||_0x2db040[_0x5d772b(0x23a)]();}[_0x51f54d(0x209)](_0x2a408f){var _0x58fb9b=_0x51f54d;if([_0x58fb9b(0x1f1),_0x58fb9b(0x1bc),_0x58fb9b(0x1fe)][_0x58fb9b(0x1c4)](this[_0x58fb9b(0x1b9)])||!_0x2a408f[_0x58fb9b(0x251)][_0x58fb9b(0x1b5)]||_0x2a408f[_0x58fb9b(0x251)][_0x58fb9b(0x1b5)]===this['_collabSession']['getMemberID']())return;this['_status']===_0x58fb9b(0x1cb)&&this[_0x58fb9b(0x1e3)]();const _0x348268=_0x2a408f[_0x58fb9b(0x251)][_0x58fb9b(0x1b0)];Object[_0x58fb9b(0x1fb)](_0x348268)[_0x58fb9b(0x26b)](_0x2d53d0=>{var _0x29cea5=_0x58fb9b;this[_0x29cea5(0x22d)][_0x29cea5(0x26c)](_0x2d53d0['id'],_0x2d53d0[_0x29cea5(0x1e4)]?JSON[_0x29cea5(0x243)](_0x2d53d0['params']):null,{'fromCollab':!0x0});});}[_0x51f54d(0x252)](){var _0x5de591=_0x51f54d,_0x28321b;this[_0x5de591(0x27d)][_0x5de591(0x1c1)](_0x5de591(0x1fe)),(_0x28321b=this[_0x5de591(0x1fd)])==null||_0x28321b[_0x5de591(0x23a)]();}[_0x51f54d(0x254)](){var _0x1629c2=_0x51f54d;this['_status$'][_0x1629c2(0x1c1)](_0x1629c2(0x1cb)),this[_0x1629c2(0x203)]();}},exports[_0x51f54d(0x245)]=R([S(0x2,o[_0x51f54d(0x23e)]),S(0x3,o['Inject'](O)),S(0x4,o[_0x51f54d(0x1cc)])],exports['LiveShareCoordinator']);function A(){var _0x340a3d=_0x51f54d;const _0x4852c4=p[_0x340a3d(0x277)](exports[_0x340a3d(0x1aa)]),_0x3b7cc9=p[_0x340a3d(0x277)](o[_0x340a3d(0x216)]),_0x3a2114=p['useObservable'](()=>_0x3b7cc9[_0x340a3d(0x264)](o[_0x340a3d(0x215)][_0x340a3d(0x1af)]),void 0x0,!0x1,[]),[_0x1f3802,_0x2d0620]=f['useState'](null),[_0x423b1b,_0x15b2ea]=f[_0x340a3d(0x1a6)](h[_0x340a3d(0x238)]),_0x59bcb0=f[_0x340a3d(0x1c5)](null);return f[_0x340a3d(0x1e5)](()=>(_0x3a2114&&_0x4852c4['getLiveShareCoordinator'](_0x3a2114[_0x340a3d(0x1dc)]())['then'](_0x58a494=>{var _0x1eb0de=_0x340a3d;_0x2d0620(_0x58a494),_0x59bcb0[_0x1eb0de(0x233)]=_0x58a494[_0x1eb0de(0x1d0)]['subscribe'](_0x37490d=>{_0x15b2ea(_0x37490d);});}),()=>{var _0x5332f5=_0x340a3d,_0x4c1f9b;(_0x4c1f9b=_0x59bcb0[_0x5332f5(0x233)])==null||_0x4c1f9b[_0x5332f5(0x265)](),_0x59bcb0['current']=null;}),[_0x3a2114,_0x4852c4]),_0x1f3802?l[_0x340a3d(0x1f4)](g[_0x340a3d(0x25e)],{'align':'end','disabled':_0x423b1b===h['OFFLINE'],'className':_0x340a3d(0x1df),'overlay':l[_0x340a3d(0x1f4)](K,{'status':_0x423b1b,'coordinator':_0x1f3802}),'children':l['jsx']('button',{'className':g[_0x340a3d(0x261)](_0x340a3d(0x1ea),{'univer-cursor-not-allowed':_0x423b1b===h[_0x340a3d(0x1c8)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x423b1b!==h['OFFLINE']}),'type':_0x340a3d(0x274),'children':l['jsx'](P,{'className':_0x340a3d(0x22b)})})}):null;}function K(_0x3f1ee1){var _0x4339af=_0x51f54d;const {status:_0x8c85d2,coordinator:_0x541cef}=_0x3f1ee1;switch(_0x8c85d2){case h[_0x4339af(0x238)]:return l[_0x4339af(0x1f4)](z,{'coordinator':_0x541cef});case h[_0x4339af(0x263)]:return l['jsx'](Q,{'coordinator':_0x541cef});case h[_0x4339af(0x1d9)]:return l[_0x4339af(0x1f4)](X,{'coordinator':_0x541cef});case h[_0x4339af(0x1c8)]:return l[_0x4339af(0x1f4)](te,{});case h['PRESENTING']:return l[_0x4339af(0x1f4)](ee,{'coordinator':_0x541cef});default:return null;}}function z(_0x486b98){var _0x188a26=_0x51f54d;const {coordinator:_0x4d830e}=_0x486b98;return l[_0x188a26(0x260)](l[_0x188a26(0x23d)],{'children':[l[_0x188a26(0x1f4)]('div',{'className':_0x188a26(0x1e8),'children':'Present\x20this\x20document'}),l[_0x188a26(0x1f4)](g[_0x188a26(0x1ab)],{'onClick':()=>_0x4d830e['tryStartPresenting'](),'children':'Start'})]});}function Q(_0x4ad70){var _0x51f39e=_0x51f54d;const {coordinator:_0x530ddc}=_0x4ad70;return l[_0x51f39e(0x260)](l[_0x51f39e(0x23d)],{'children':[l[_0x51f39e(0x1f4)](_0x51f39e(0x275),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x51f39e(0x1c0)}),l[_0x51f39e(0x1f4)](g[_0x51f39e(0x1ab)],{'onClick':()=>_0x530ddc[_0x51f39e(0x257)](),'children':_0x51f39e(0x26e)})]});}function X(_0x172a82){var _0x4ea448=_0x51f54d;const {coordinator:_0x2d980a}=_0x172a82;return l[_0x4ea448(0x260)](l[_0x4ea448(0x23d)],{'children':[l[_0x4ea448(0x1f4)](_0x4ea448(0x275),{'className':_0x4ea448(0x1e8),'children':_0x4ea448(0x1b7)}),l['jsx'](g[_0x4ea448(0x1ab)],{'variant':'text','onClick':()=>_0x2d980a[_0x4ea448(0x235)](),'children':_0x4ea448(0x223)})]});}function _0x594e(){var _0xe696e=['univer-mb-3\x20univer-w-full\x20univer-text-sm','set','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_liveShareService','path','_presenter','DesktopLiveShareController','http://www.w3.org/2000/svg','init','presenting','Module','random','jsx','104572BZesTQ','toDisposable','getValue','_sharedOperations','idSuffix','parseProtocolChangeset','values','LIVESHARE_FETCH_OPERATIONS','_commandDisposable','offline','Subject','use','35739IhRyIT','className','_fetchOperations','LiveShareService','_configService','Disposable','_stopPresenting','onRendered','_handleOperation','shouldShareOperation','_startPresenting','LiveShareStatus','NEW_CHANGESETS','defs','UNIVER_UNKNOWN','_config','throttleTime','onCommandExecuted','svg','tag','UniverInstanceType','IUniverInstanceService','displayName','evenodd','url(#$1','propertyIsEnumerable','Inject','map','_handleTerminate','function','UniverIcon','getTypeOfUnitDisposed$','mask','event$','Start\x20following','get','CollaborationSessionService','colorChannel1','Stop\x20presenting','LIVESHARE_TERMINATE','tryStartPresenting','takeUntil','univer-size-4','touchDependencies','_commandService','onStarting','defIds','133dMUcaX','entries','replace','current','_entities','startFollowing','string','has','IDLE','extend','dispose','override','CollaborationEvent','Fragment','IConfigService','forwardRef','defineProperty','SetScrollOperation','_unitID','parse','LIVESHARE_OPERATION','LiveShareCoordinator','getLiveShareCoordinator','add','apply','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','IUIPartsService','none','registerDependencies','Injector','LiveShareIcon','children','30YrtRtn','data','_handleOffline','live-share.config','_handleOnline','find','_reporters','stopFollowing','stringify','UNIVER_LIVE_SHARE_PLUGIN','_beIdle','UniverCollaborationClientPlugin','_univerInstanceService','registerSharedOperation','Dropdown','symbol','jsxs','clsx','InsertSheetMutation','FOLLOWING','getCurrentTypeOfUnit$','unsubscribe','subscribe','createElement','connectInjector','clear','1em','forEach','executeCommand','3410408pIAEKV','Stop\x20following','delete','icon','dispose$','6340700WtRVPb','memberID','button','div','_collabSessionService','useDependency','_injector','pipe','concat','PRESENTING','reverse','_status$','fill','LIVESHARE_NEW_HOST','pluginName','length','assign','following','18IyFxzv','CommandType','DisposableCollection','call','useState','235695OMbSnm','RxDisposable','LIVESHARE_REQUEST_HOST','LiveShareController','Button','prototype','1360120QjxGDD','requireSession','UNIVER_SHEET','operations','getOwnPropertyDescriptor','setConfig','35634vcVYKk','currentColor','presenter','SessionStatus','You\x27re\x20not\x20following\x20the\x20presenter','stopPresenting','_status','BehaviorSubject','default','not-following','_init','attrs','_stopFollowing','You\x27re\x20following\x20the\x20presenter','next','getConfig','send','includes','useRef','complete','from','OFFLINE','sheet','SAME_OPERATION_SHARE_INTERVAL','idle','ICommandService','You\x27re\x20presenting\x20the\x20document','OPERATION','registerInitialStateReporter','status$','type','0\x200\x2017\x2017','_startLiveShareCoordinator','xlink:href','asObservable','getMemberID','_uiPartsService','_collabSession','NOT_FOLLOWING','BuiltInUIPart','disposeWithMe','getUnitId','univerjs-icon\x20univerjs-icon-','_mountLiveShare','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_handleNewChangeSets','UniverLiveSharePlugin','getOwnPropertySymbols','_startFollowing','params','useEffect','hasOwnProperty','toString'];_0x594e=function(){return _0xe696e;};return _0x594e();}function ee(_0x42962){var _0x10d30f=_0x51f54d;const {coordinator:_0x29555c}=_0x42962;return l[_0x10d30f(0x260)](l[_0x10d30f(0x23d)],{'children':[l[_0x10d30f(0x1f4)]('div',{'className':_0x10d30f(0x1e8),'children':_0x10d30f(0x1cd)}),l[_0x10d30f(0x1f4)](g[_0x10d30f(0x1ab)],{'variant':_0x10d30f(0x1bb),'onClick':()=>_0x29555c[_0x10d30f(0x1b8)](),'children':_0x10d30f(0x227)})]});}function te(){var _0x35a4f0=_0x51f54d;return l[_0x35a4f0(0x1f4)](l['Fragment'],{'children':'You\x27are\x20offline.'});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0xcee59d,_0x1b267d,_0x579cb8,_0x4ecc8b)=>{var _0x3626df=_0x51f54d;for(var _0x3d2ea2=_0x4ecc8b>0x1?void 0x0:_0x4ecc8b?ie(_0x1b267d,_0x579cb8):_0x1b267d,_0x144dbe=_0xcee59d[_0x3626df(0x19f)]-0x1,_0x5a8c29;_0x144dbe>=0x0;_0x144dbe--)(_0x5a8c29=_0xcee59d[_0x144dbe])&&(_0x3d2ea2=_0x5a8c29(_0x3d2ea2)||_0x3d2ea2);return _0x3d2ea2;},L=(_0x4b0b6f,_0x582c10)=>(_0x1143fe,_0x4da8b6)=>_0x582c10(_0x1143fe,_0x4da8b6,_0x4b0b6f);exports[_0x51f54d(0x1ee)]=class extends o[_0x51f54d(0x206)]{constructor(_0x1b0822,_0x2a76ad){var _0x5a3598=_0x51f54d;super(),this[_0x5a3598(0x278)]=_0x1b0822,this[_0x5a3598(0x1d7)]=_0x2a76ad,this[_0x5a3598(0x1de)]();}[_0x51f54d(0x1de)](){var _0x10fc18=_0x51f54d;this[_0x10fc18(0x1db)](this[_0x10fc18(0x1d7)]['registerComponent'](p[_0x10fc18(0x1da)]['HEADER_MENU'],()=>p[_0x10fc18(0x268)](A,this[_0x10fc18(0x278)])));}},exports[_0x51f54d(0x1ee)]=ne([L(0x0,o[_0x51f54d(0x21b)](o[_0x51f54d(0x24d)])),L(0x1,p[_0x51f54d(0x24a)])],exports[_0x51f54d(0x1ee)]);var re=Object['defineProperty'],se=Object[_0x51f54d(0x1b1)],oe=(_0x299411,_0x1ba88b,_0x40445c)=>_0x1ba88b in _0x299411?re(_0x299411,_0x1ba88b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x40445c}):_0x299411[_0x1ba88b]=_0x40445c,ae=(_0x33a5d1,_0x75d706,_0x277f6c,_0x1ae0b5)=>{var _0x3af211=_0x51f54d;for(var _0x1cb2a4=_0x1ae0b5>0x1?void 0x0:_0x1ae0b5?se(_0x75d706,_0x277f6c):_0x75d706,_0x277907=_0x33a5d1[_0x3af211(0x19f)]-0x1,_0x621419;_0x277907>=0x0;_0x277907--)(_0x621419=_0x33a5d1[_0x277907])&&(_0x1cb2a4=_0x621419(_0x1cb2a4)||_0x1cb2a4);return _0x1cb2a4;},N=(_0x77eb7e,_0x1aa774)=>(_0x231d4b,_0x42428f)=>_0x1aa774(_0x231d4b,_0x42428f,_0x77eb7e),T=(_0x369d92,_0x54fc93,_0x29587f)=>oe(_0x369d92,typeof _0x54fc93!=_0x51f54d(0x25f)?_0x54fc93+'':_0x54fc93,_0x29587f);const le=_0x51f54d(0x259);exports[_0x51f54d(0x1e1)]=class extends o['Plugin']{constructor(_0x21ad2e=x,_0x4e7c18,_0x210479){var _0x2e91df=_0x51f54d;super(),this[_0x2e91df(0x210)]=_0x21ad2e,this[_0x2e91df(0x278)]=_0x4e7c18,this[_0x2e91df(0x205)]=_0x210479;const {..._0x11c8ee}=o['merge']({},x,this[_0x2e91df(0x210)]);this['_configService'][_0x2e91df(0x1b2)]($,_0x11c8ee);}[_0x51f54d(0x22e)](){var _0x5f06df=_0x51f54d;o[_0x5f06df(0x24c)](this[_0x5f06df(0x278)],o['mergeOverrideWithDependencies']([[O],[exports[_0x5f06df(0x1aa)]],[E],[exports[_0x5f06df(0x1ee)]]],this['_config'][_0x5f06df(0x23b)])),o[_0x5f06df(0x22c)](this[_0x5f06df(0x278)],[[E]]);}[_0x51f54d(0x208)](){var _0x55b1cb=_0x51f54d;o[_0x55b1cb(0x22c)](this[_0x55b1cb(0x278)],[[exports[_0x55b1cb(0x1ee)]]]);}},T(exports[_0x51f54d(0x1e1)],'type',o[_0x51f54d(0x215)][_0x51f54d(0x20f)]),T(exports[_0x51f54d(0x1e1)],_0x51f54d(0x19e),le),exports[_0x51f54d(0x1e1)]=ae([o['DependentOn'](m[_0x51f54d(0x25b)]),N(0x1,o[_0x51f54d(0x21b)](o['Injector'])),N(0x2,o[_0x51f54d(0x23e)])],exports['UniverLiveSharePlugin']),exports['LiveShare']=A,exports[_0x51f54d(0x204)]=O,exports[_0x51f54d(0x20c)]=h;
1
+ 'use strict';var _0x4ede74=_0x5890;(function(_0x533d1,_0xaa5f1){var _0x2248cf=_0x5890,_0x17e376=_0x533d1();while(!![]){try{var _0x2ff006=-parseInt(_0x2248cf(0x1ee))/0x1+-parseInt(_0x2248cf(0x241))/0x2+parseInt(_0x2248cf(0x202))/0x3+parseInt(_0x2248cf(0x1d3))/0x4+parseInt(_0x2248cf(0x1db))/0x5*(-parseInt(_0x2248cf(0x243))/0x6)+parseInt(_0x2248cf(0x26c))/0x7+parseInt(_0x2248cf(0x1e5))/0x8*(-parseInt(_0x2248cf(0x24e))/0x9);if(_0x2ff006===_0xaa5f1)break;else _0x17e376['push'](_0x17e376['shift']());}catch(_0x33c8db){_0x17e376['push'](_0x17e376['shift']());}}}(_0x46ef,0x92de5));var U=Object[_0x4ede74(0x1f9)],F=(_0x4cd7a1,_0x4bc64c,_0x55a10d)=>_0x4bc64c in _0x4cd7a1?U(_0x4cd7a1,_0x4bc64c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x55a10d}):_0x4cd7a1[_0x4bc64c]=_0x55a10d,v=(_0x2dfc0c,_0x22286d,_0x2a15ec)=>F(_0x2dfc0c,typeof _0x22286d!='symbol'?_0x22286d+'':_0x22286d,_0x2a15ec);Object['defineProperty'](exports,Symbol['toStringTag'],{'value':_0x4ede74(0x1d4)});const m=require('@univerjs-pro/collaboration-client'),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require('@univerjs/sheets-ui'),p=require('@univerjs/ui'),l=require('react/jsx-runtime'),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require('rxjs'),b=require('rxjs/operators'),$=_0x4ede74(0x278),x={};class O extends o['Disposable']{constructor(){super(...arguments),v(this,'_sharedOperations',new Set()),v(this,'_reporters',new Set());}['registerSharedOperation'](_0x26cc8a){var _0x274150=_0x4ede74;return this[_0x274150(0x1b9)][_0x274150(0x255)](_0x26cc8a),o['toDisposable'](()=>this[_0x274150(0x1b9)][_0x274150(0x1a5)](_0x26cc8a));}[_0x4ede74(0x1bd)](_0x26999d){var _0x38ce0a=_0x4ede74;return this[_0x38ce0a(0x1cf)]['add'](_0x26999d),o['toDisposable'](()=>this[_0x38ce0a(0x1cf)][_0x38ce0a(0x1a5)](_0x26999d));}['shouldShareOperation'](_0x21b2b0){var _0x516db5=_0x4ede74;return this[_0x516db5(0x1b9)][_0x516db5(0x1bf)](_0x21b2b0);}[_0x4ede74(0x231)](_0x5bd9bf){var _0x3545d6=_0x4ede74;return Array['from'](this[_0x3545d6(0x1cf)])[_0x3545d6(0x23e)](_0xed2bf4=>_0xed2bf4(_0x5bd9bf));}}var H=Object[_0x4ede74(0x27a)],V=(_0x3682f1,_0x380a4f,_0x23741c,_0x573fac)=>{var _0x530868=_0x4ede74;for(var _0x13a513=_0x573fac>0x1?void 0x0:_0x573fac?H(_0x380a4f,_0x23741c):_0x380a4f,_0x2b7e9b=_0x3682f1[_0x530868(0x1a2)]-0x1,_0x5f51d9;_0x2b7e9b>=0x0;_0x2b7e9b--)(_0x5f51d9=_0x3682f1[_0x2b7e9b])&&(_0x13a513=_0x5f51d9(_0x13a513)||_0x13a513);return _0x13a513;},k=(_0x4ef7ad,_0x440022)=>(_0x42d678,_0x51c432)=>_0x440022(_0x42d678,_0x51c432,_0x4ef7ad);let E=class extends o[_0x4ede74(0x1af)]{constructor(_0x289602){var _0x386f3b=_0x4ede74;super(),this[_0x386f3b(0x209)]=_0x289602,this[_0x386f3b(0x272)]();}['_init'](){var _0xe4e60b=_0x4ede74;[w[_0xe4e60b(0x1ce)]['id'],w['SetScrollOperation']['id'],C[_0xe4e60b(0x276)]['id']][_0xe4e60b(0x219)](_0x386d95=>{var _0x21074e=_0xe4e60b;this['disposeWithMe'](this[_0x21074e(0x209)][_0x21074e(0x1f5)](_0x386d95));});}};E=V([k(0x0,o[_0x4ede74(0x1e4)](O))],E);var u=function(){var _0x55e0b7=_0x4ede74;return u=Object[_0x55e0b7(0x23f)]||function(_0x50e35f){var _0x478a5c=_0x55e0b7;for(var _0x3836d6,_0x3150e4=0x1,_0x3bcd67=arguments['length'];_0x3150e4<_0x3bcd67;_0x3150e4++){_0x3836d6=arguments[_0x3150e4];for(var _0x58e32e in _0x3836d6)Object['prototype'][_0x478a5c(0x256)]['call'](_0x3836d6,_0x58e32e)&&(_0x50e35f[_0x58e32e]=_0x3836d6[_0x58e32e]);}return _0x50e35f;},u[_0x55e0b7(0x270)](this,arguments);},M=function(_0x38cebd,_0x196b5e){var _0x56058b=_0x4ede74,_0xa8878f={};for(var _0x48dfa2 in _0x38cebd)Object[_0x56058b(0x1d9)][_0x56058b(0x256)][_0x56058b(0x244)](_0x38cebd,_0x48dfa2)&&_0x196b5e[_0x56058b(0x215)](_0x48dfa2)<0x0&&(_0xa8878f[_0x48dfa2]=_0x38cebd[_0x48dfa2]);if(_0x38cebd!=null&&typeof Object[_0x56058b(0x25a)]=='function'){for(var _0x2dc32a=0x0,_0x48dfa2=Object['getOwnPropertySymbols'](_0x38cebd);_0x2dc32a<_0x48dfa2[_0x56058b(0x1a2)];_0x2dc32a++)_0x196b5e[_0x56058b(0x215)](_0x48dfa2[_0x2dc32a])<0x0&&Object[_0x56058b(0x1d9)]['propertyIsEnumerable']['call'](_0x38cebd,_0x48dfa2[_0x2dc32a])&&(_0xa8878f[_0x48dfa2[_0x2dc32a]]=_0x38cebd[_0x48dfa2[_0x2dc32a]]);}return _0xa8878f;},j=f[_0x4ede74(0x1dd)](function(_0x6aaf60,_0x387486){var _0x2d2563=_0x4ede74,_0x1611ba=_0x6aaf60['icon'],_0x21b17a=_0x6aaf60['id'],_0xef0534=_0x6aaf60[_0x2d2563(0x208)],_0xc1eb9d=_0x6aaf60[_0x2d2563(0x23b)],_0xf76a6e=M(_0x6aaf60,[_0x2d2563(0x1c6),'id','className',_0x2d2563(0x23b)]),_0x1ad59f=_0x2d2563(0x203)[_0x2d2563(0x20e)](_0x21b17a,'\x20')['concat'](_0xef0534||'')['trim'](),_0xd64903=f[_0x2d2563(0x200)]('_'['concat'](G()));return y(_0x1611ba,''[_0x2d2563(0x20e)](_0x21b17a),{'defIds':_0x1611ba[_0x2d2563(0x223)],'idSuffix':_0xd64903[_0x2d2563(0x211)]},u({'ref':_0x387486,'className':_0x1ad59f},_0xf76a6e),_0xc1eb9d);});function y(_0x3b2f02,_0x318785,_0x42e3e4,_0x40e1ea,_0x4f07ba){var _0x355237=_0x4ede74;return f[_0x355237(0x254)](_0x3b2f02['tag'],u(u({'key':_0x318785},q(_0x3b2f02,_0x42e3e4,_0x4f07ba)),_0x40e1ea),(W(_0x3b2f02,_0x42e3e4)[_0x355237(0x1bb)]||[])[_0x355237(0x23e)](function(_0x1f9d9e,_0x8b7f20){var _0x22d053=_0x355237;return y(_0x1f9d9e,''['concat'](_0x318785,'-')[_0x22d053(0x20e)](_0x3b2f02[_0x22d053(0x1c2)],'-')['concat'](_0x8b7f20),_0x42e3e4,void 0x0,_0x4f07ba);}));}function q(_0x2f4181,_0xf921e1,_0x234fd7){var _0x5d5a5a=_0x4ede74,_0x3a8d63=u({},_0x2f4181[_0x5d5a5a(0x1fe)]);_0x234fd7!=null&&_0x234fd7[_0x5d5a5a(0x1fa)]&&_0x3a8d63[_0x5d5a5a(0x24f)]===_0x5d5a5a(0x1fa)&&(_0x3a8d63[_0x5d5a5a(0x24f)]=_0x234fd7[_0x5d5a5a(0x1fa)]),_0x2f4181[_0x5d5a5a(0x1c2)]==='mask'&&_0x3a8d63['id']&&(_0x3a8d63['id']=_0x3a8d63['id']+_0xf921e1[_0x5d5a5a(0x1a1)]),Object['entries'](_0x3a8d63)['forEach'](function(_0x564124){var _0x239db8=_0x5d5a5a,_0x36d36b=_0x564124[0x0],_0x3f6c6d=_0x564124[0x1];_0x36d36b===_0x239db8(0x22e)&&typeof _0x3f6c6d==_0x239db8(0x226)&&(_0x3a8d63[_0x36d36b]=_0x3f6c6d['replace'](/url\(#(.*)\)/,_0x239db8(0x1cb)['concat'](_0xf921e1[_0x239db8(0x1a1)],')')));});var _0x1524f3=_0xf921e1['defIds'];return!_0x1524f3||_0x1524f3[_0x5d5a5a(0x1a2)]===0x0||(_0x2f4181[_0x5d5a5a(0x1c2)]==='use'&&_0x3a8d63['xlink:href']&&(_0x3a8d63[_0x5d5a5a(0x1f7)]=_0x3a8d63['xlink:href']+_0xf921e1[_0x5d5a5a(0x1a1)]),Object[_0x5d5a5a(0x1c7)](_0x3a8d63)[_0x5d5a5a(0x219)](function(_0xe48586){var _0x5eb3ef=_0x5d5a5a,_0x477054=_0xe48586[0x0],_0x3beb4c=_0xe48586[0x1];typeof _0x3beb4c==_0x5eb3ef(0x226)&&(_0x3a8d63[_0x477054]=_0x3beb4c['replace'](/url\(#(.*)\)/,_0x5eb3ef(0x1cb)[_0x5eb3ef(0x20e)](_0xf921e1[_0x5eb3ef(0x1a1)],')')));})),_0x3a8d63;}function W(_0x28269f,_0x5f3aa1){var _0x422293=_0x4ede74,_0x278edc,_0x4c4cbf=_0x5f3aa1['defIds'];return!_0x4c4cbf||_0x4c4cbf[_0x422293(0x1a2)]===0x0?_0x28269f:_0x28269f[_0x422293(0x1c2)]===_0x422293(0x1c4)&&(!((_0x278edc=_0x28269f[_0x422293(0x1bb)])===null||_0x278edc===void 0x0)&&_0x278edc[_0x422293(0x1a2)])?u(u({},_0x28269f),{'children':_0x28269f[_0x422293(0x1bb)][_0x422293(0x23e)](function(_0x29b422){var _0x440b2d=_0x422293;return typeof _0x29b422[_0x440b2d(0x1fe)]['id']==_0x440b2d(0x226)&&_0x4c4cbf&&_0x4c4cbf['includes'](_0x29b422[_0x440b2d(0x1fe)]['id'])?u(u({},_0x29b422),{'attrs':u(u({},_0x29b422[_0x440b2d(0x1fe)]),{'id':_0x29b422[_0x440b2d(0x1fe)]['id']+_0x5f3aa1['idSuffix']})}):_0x29b422;})}):_0x28269f;}function G(){var _0xce7d9=_0x4ede74;return Math[_0xce7d9(0x1a8)]()['toString'](0x24)[_0xce7d9(0x1ad)](0x2,0x8);}j[_0x4ede74(0x22d)]=_0x4ede74(0x273);var B={'tag':_0x4ede74(0x221),'attrs':{'xmlns':_0x4ede74(0x265),'fill':'none','viewBox':_0x4ede74(0x1d8),'width':_0x4ede74(0x1ea),'height':_0x4ede74(0x1ea)},'children':[{'tag':'path','attrs':{'fill':_0x4ede74(0x1c3),'d':_0x4ede74(0x23c)}},{'tag':_0x4ede74(0x228),'attrs':{'fill':_0x4ede74(0x1c3),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x4ede74(0x1bc),'clipRule':_0x4ede74(0x1bc)}}]},P=f['forwardRef'](function(_0x584479,_0x36939b){var _0x2f6a99=_0x4ede74;return f[_0x2f6a99(0x254)](j,Object[_0x2f6a99(0x23f)]({},_0x584479,{'id':_0x2f6a99(0x26e),'ref':_0x36939b,'icon':B}));});P[_0x4ede74(0x22d)]='LiveShareIcon';var Y=Object[_0x4ede74(0x27a)],R=(_0x1750b8,_0x3432df,_0x57105f,_0x5a60c8)=>{var _0x192739=_0x4ede74;for(var _0x4d858a=_0x5a60c8>0x1?void 0x0:_0x5a60c8?Y(_0x3432df,_0x57105f):_0x3432df,_0x2e7db0=_0x1750b8[_0x192739(0x1a2)]-0x1,_0x4c1697;_0x2e7db0>=0x0;_0x2e7db0--)(_0x4c1697=_0x1750b8[_0x2e7db0])&&(_0x4d858a=_0x4c1697(_0x4d858a)||_0x4d858a);return _0x4d858a;},S=(_0x331527,_0x25b4ca)=>(_0x3e7255,_0x1ea7e3)=>_0x25b4ca(_0x3e7255,_0x1ea7e3,_0x331527);exports['LiveShareController']=class extends o['RxDisposable']{constructor(_0x49621a,_0x1e3bb3,_0x3c7086){var _0x5d3966=_0x4ede74;super(),v(this,_0x5d3966(0x1f3),new Map()),(this[_0x5d3966(0x260)]=_0x49621a,this['_injector']=_0x1e3bb3,this[_0x5d3966(0x1d1)]=_0x3c7086,this[_0x5d3966(0x272)]());}async['getLiveShareCoordinator'](_0x582fca){var _0x20ee72=_0x4ede74;return this[_0x20ee72(0x1f3)][_0x20ee72(0x1bf)](_0x582fca)||await this['_startLiveShareCoordinator'](_0x582fca),this['_entities'][_0x20ee72(0x250)](_0x582fca);}[_0x4ede74(0x272)](){var _0x36a27d=_0x4ede74;this[_0x36a27d(0x260)][_0x36a27d(0x251)](o['UniverInstanceType'][_0x36a27d(0x259)])[_0x36a27d(0x26d)](b['takeUntil'](this[_0x36a27d(0x1b5)]))[_0x36a27d(0x1e6)](async _0xbe34c6=>{var _0x52f1bc=_0x36a27d;const _0x125d97=_0xbe34c6[_0x52f1bc(0x1f6)]();this[_0x52f1bc(0x1f3)][_0x52f1bc(0x1bf)](_0x125d97)||this[_0x52f1bc(0x23a)](_0x125d97);}),this[_0x36a27d(0x260)]['getTypeOfUnitDisposed$'](o[_0x36a27d(0x1dc)][_0x36a27d(0x259)])['pipe'](b[_0x36a27d(0x1e7)](this[_0x36a27d(0x1b5)]))['subscribe'](_0x130927=>{var _0x2da569=_0x36a27d;const _0x30ac16=_0x130927['getUnitId'](),_0x5189ab=this[_0x2da569(0x1f3)]['get'](_0x30ac16);_0x5189ab==null||_0x5189ab[_0x2da569(0x258)]();});}async[_0x4ede74(0x23a)](_0x53b383){var _0x2540df=_0x4ede74;const _0xce7d7c=await this[_0x2540df(0x1d1)][_0x2540df(0x1c1)](_0x53b383),_0x4a3173=this['_injector'][_0x2540df(0x24a)](exports[_0x2540df(0x201)],_0x53b383,_0xce7d7c);return _0x4a3173[_0x2540df(0x1be)](),this[_0x2540df(0x1f3)][_0x2540df(0x21e)](_0x53b383,_0x4a3173),_0x4a3173;}},exports[_0x4ede74(0x22a)]=R([S(0x0,o[_0x4ede74(0x1d6)]),S(0x1,o[_0x4ede74(0x1e4)](o[_0x4ede74(0x248)])),S(0x2,o[_0x4ede74(0x1e4)](m[_0x4ede74(0x207)]))],exports['LiveShareController']);var h=(_0x5db1ba=>(_0x5db1ba[_0x4ede74(0x1a3)]=_0x4ede74(0x274),_0x5db1ba[_0x4ede74(0x1a4)]=_0x4ede74(0x21b),_0x5db1ba['FOLLOWING']=_0x4ede74(0x1ac),_0x5db1ba[_0x4ede74(0x236)]=_0x4ede74(0x1fc),_0x5db1ba[_0x4ede74(0x252)]='presenting',_0x5db1ba))(h||{});const Z=_0x4ede74(0x1e3),J=0xc8;exports['LiveShareCoordinator']=class extends o[_0x4ede74(0x20a)]{constructor(_0x490af7,_0x3932a7,_0x17b2bc,_0x5eae9b,_0x2da737){var _0x1926bb=_0x4ede74;super(),v(this,_0x1926bb(0x214),new D[(_0x1926bb(0x23d))](_0x1926bb(0x21b))),v(this,_0x1926bb(0x1b6),this[_0x1926bb(0x214)][_0x1926bb(0x277)]()),v(this,_0x1926bb(0x272),!0x1),v(this,_0x1926bb(0x268),null),v(this,'_presenter',null),(this[_0x1926bb(0x25c)]=_0x490af7,this[_0x1926bb(0x216)]=_0x3932a7,this[_0x1926bb(0x27b)]=_0x17b2bc,this[_0x1926bb(0x209)]=_0x5eae9b,this[_0x1926bb(0x1d2)]=_0x2da737);}get[_0x4ede74(0x20b)](){var _0x298e8b=_0x4ede74;return this[_0x298e8b(0x214)][_0x298e8b(0x245)]();}['dispose'](){var _0x354e3b=_0x4ede74,_0x4ae585;(_0x4ae585=this[_0x354e3b(0x268)])==null||_0x4ae585[_0x354e3b(0x258)](),this[_0x354e3b(0x214)][_0x354e3b(0x275)](_0x354e3b(0x21b)),this[_0x354e3b(0x214)][_0x354e3b(0x1f2)]();}[_0x4ede74(0x1be)](){var _0x16034d=_0x4ede74;this[_0x16034d(0x272)]||(this['_init']=!0x0,this[_0x16034d(0x216)]['sessionStatus$'][_0x16034d(0x26d)](b['takeUntil'](this[_0x16034d(0x1b5)]))['subscribe'](_0x35016d=>{var _0x30b0be=_0x16034d;switch(_0x35016d){case m[_0x30b0be(0x225)][_0x30b0be(0x1a3)]:this[_0x30b0be(0x1ef)]();break;case m[_0x30b0be(0x225)][_0x30b0be(0x1ca)]:this[_0x30b0be(0x1ab)]();break;}}),this['_collabSession'][_0x16034d(0x24c)]['pipe'](b[_0x16034d(0x1e7)](this[_0x16034d(0x1b5)]))['subscribe'](_0x22dd43=>{var _0x18f1d8=_0x16034d;const {eventID:_0x4a1479}=_0x22dd43;switch(_0x4a1479){case _[_0x18f1d8(0x1e1)][_0x18f1d8(0x269)]:this[_0x18f1d8(0x26a)](_0x22dd43);break;case _[_0x18f1d8(0x1e1)][_0x18f1d8(0x1ba)]:this[_0x18f1d8(0x20c)](_0x22dd43);break;case _[_0x18f1d8(0x1e1)][_0x18f1d8(0x235)]:this[_0x18f1d8(0x217)]();break;case _[_0x18f1d8(0x1e1)][_0x18f1d8(0x240)]:this[_0x18f1d8(0x227)](_0x22dd43);break;}}));}[_0x4ede74(0x1f8)](){var _0x5cf273=_0x4ede74;this[_0x5cf273(0x216)]['send']({'eventID':_['CollaborationEvent'][_0x5cf273(0x230)],'data':{'unitID':this['_unitID'],'userID':this[_0x5cf273(0x216)][_0x5cf273(0x20d)]()}},this[_0x5cf273(0x25c)]);}[_0x4ede74(0x21c)](){var _0x1112a5=_0x4ede74;this[_0x1112a5(0x20b)]===_0x1112a5(0x1ed)&&(this[_0x1112a5(0x214)][_0x1112a5(0x275)](_0x1112a5(0x21b)),this[_0x1112a5(0x216)][_0x1112a5(0x1a7)]({'eventID':_[_0x1112a5(0x1e1)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x1112a5(0x25c)]}},this[_0x1112a5(0x25c)]));}[_0x4ede74(0x1fd)](){var _0x4f6614=_0x4ede74;this[_0x4f6614(0x20b)]===_0x4f6614(0x1fc)&&(this['_status$'][_0x4f6614(0x275)](_0x4f6614(0x1ac)),this[_0x4f6614(0x1b1)]());}[_0x4ede74(0x1df)](){var _0x19eb3d=_0x4ede74;this[_0x19eb3d(0x20b)]===_0x19eb3d(0x1ac)&&this['_stopFollowing']();}[_0x4ede74(0x26a)](_0x1f4829){var _0x4b8041=_0x4ede74;const {presenter:_0x760213}=_0x1f4829[_0x4b8041(0x233)],_0x41602e=this['_collabSession'][_0x4b8041(0x20d)]();this[_0x4b8041(0x25b)]=_0x760213,_0x760213===_0x41602e?(this[_0x4b8041(0x279)](),this[_0x4b8041(0x246)]()):this[_0x4b8041(0x20b)]!==_0x4b8041(0x1fc)&&(this[_0x4b8041(0x1a6)](),this[_0x4b8041(0x1b1)]());}['_fetchOperations'](){var _0x1700da=_0x4ede74;const _0x40c9a6={'eventID':_['CollaborationEvent'][_0x1700da(0x205)]};this['_collabSession'][_0x1700da(0x1a7)](_0x40c9a6,this[_0x1700da(0x25c)]);}[_0x4ede74(0x217)](){var _0x48f135=_0x4ede74;this[_0x48f135(0x25b)]=null,this[_0x48f135(0x20b)]!==_0x48f135(0x1ed)&&this[_0x48f135(0x212)]();}['_handleNewChangeSets'](_0x8b903b){var _0x31df4a=_0x4ede74;if(this[_0x31df4a(0x20b)]===_0x31df4a(0x1ac)&&this['_presenter']===_0x8b903b[_0x31df4a(0x233)][_0x31df4a(0x1c9)]){const _0x1ecc91=_[_0x31df4a(0x21f)](_0x8b903b[_0x31df4a(0x233)])['mutations']['reverse']()['find'](_0x39619d=>_0x39619d['id']===C[_0x31df4a(0x1aa)]['id']);if(_0x1ecc91){const _0x309296=_0x1ecc91[_0x31df4a(0x271)][_0x31df4a(0x249)],_0x41c20f=_0x1ecc91[_0x31df4a(0x271)]['sheet']['id'];setTimeout(()=>{var _0x5c88d8=_0x31df4a;this[_0x5c88d8(0x1d2)]['executeCommand'](C[_0x5c88d8(0x276)]['id'],{'unitId':_0x309296,'subUnitId':_0x41c20f},{'fromCollab':!0x0});});}}}[_0x4ede74(0x246)](){var _0x29ac05=_0x4ede74;this[_0x29ac05(0x214)][_0x29ac05(0x275)](_0x29ac05(0x1ed));const _0xf7371f=new Map(),_0x3a8732=this['_commandDisposable']=new o[(_0x29ac05(0x218))]();_0x3a8732[_0x29ac05(0x255)](o[_0x29ac05(0x232)](()=>{var _0x5d5e0f=_0x29ac05;_0xf7371f[_0x5d5e0f(0x219)](_0x426bb3=>_0x426bb3[_0x5d5e0f(0x1f2)]()),_0xf7371f[_0x5d5e0f(0x22c)]();})),_0x3a8732[_0x29ac05(0x255)](this['_commandService'][_0x29ac05(0x222)](_0x265a4d=>{var _0x385704=_0x29ac05,_0x558019;if(_0x265a4d[_0x385704(0x1eb)]!==o[_0x385704(0x210)]['OPERATION']||!this['_liveShareService'][_0x385704(0x229)](_0x265a4d['id']))return;const {id:_0x4f0320}=_0x265a4d;let _0x135be9;_0xf7371f[_0x385704(0x1bf)](_0x4f0320)?_0x135be9=_0xf7371f['get'](_0x4f0320):(_0x135be9=new D[(_0x385704(0x1b7))](),_0xf7371f[_0x385704(0x21e)](_0x4f0320,_0x135be9),_0x135be9[_0x385704(0x26d)](b['throttleTime']((_0x558019=this[_0x385704(0x27b)]['getConfig'](Z))!=null?_0x558019:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x385704(0x1e6)](_0x20220a=>{var _0x1a86bf=_0x385704;this[_0x1a86bf(0x216)][_0x1a86bf(0x1a7)]({'eventID':_[_0x1a86bf(0x1e1)][_0x1a86bf(0x1ba)],'data':{'unitID':this[_0x1a86bf(0x25c)],'operations':{[_0x20220a['id']]:{'id':_0x20220a['id'],'params':JSON[_0x1a86bf(0x1e2)](_0x20220a[_0x1a86bf(0x271)])}}}},this[_0x1a86bf(0x25c)]);})),_0x135be9[_0x385704(0x275)](_0x265a4d);})),this[_0x29ac05(0x209)][_0x29ac05(0x231)](this['_unitID'])[_0x29ac05(0x219)](_0x46a408=>this[_0x29ac05(0x216)][_0x29ac05(0x1a7)]({'eventID':_[_0x29ac05(0x1e1)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x29ac05(0x25c)],'operations':{[_0x46a408['id']]:{'id':_0x46a408['id'],'params':JSON[_0x29ac05(0x1e2)](_0x46a408[_0x29ac05(0x271)])}}}},this[_0x29ac05(0x25c)]));}[_0x4ede74(0x1a6)](){var _0x562257=_0x4ede74,_0x565120;this['_status$'][_0x562257(0x275)](_0x562257(0x21b)),(_0x565120=this['_commandDisposable'])==null||_0x565120[_0x562257(0x258)](),this['_commandDisposable']=null;}[_0x4ede74(0x1b1)](){var _0x1b9f41=_0x4ede74,_0x171ec6;(_0x171ec6=this[_0x1b9f41(0x268)])==null||_0x171ec6['dispose'](),this[_0x1b9f41(0x214)][_0x1b9f41(0x275)](_0x1b9f41(0x1ac));}[_0x4ede74(0x212)](){var _0xd8973e=_0x4ede74,_0x2edaa4;this['_status$'][_0xd8973e(0x275)]('idle'),(_0x2edaa4=this['_commandDisposable'])==null||_0x2edaa4[_0xd8973e(0x258)](),this[_0xd8973e(0x268)]=null;}[_0x4ede74(0x279)](){var _0x1271bf=_0x4ede74,_0x47ead9;this[_0x1271bf(0x214)][_0x1271bf(0x275)](_0x1271bf(0x1fc)),(_0x47ead9=this[_0x1271bf(0x268)])==null||_0x47ead9[_0x1271bf(0x258)]();}[_0x4ede74(0x20c)](_0x5f269e){var _0x3e3ee1=_0x4ede74;if(['presenting',_0x3e3ee1(0x1fc),_0x3e3ee1(0x274)][_0x3e3ee1(0x1b4)](this[_0x3e3ee1(0x20b)])||!_0x5f269e[_0x3e3ee1(0x233)][_0x3e3ee1(0x1de)]||_0x5f269e['data']['presenter']===this[_0x3e3ee1(0x216)][_0x3e3ee1(0x20d)]())return;this[_0x3e3ee1(0x20b)]===_0x3e3ee1(0x21b)&&this['_startFollowing']();const _0x2aa515=_0x5f269e[_0x3e3ee1(0x233)]['operations'];Object[_0x3e3ee1(0x220)](_0x2aa515)['forEach'](_0x2e0666=>{var _0x3a1724=_0x3e3ee1;this['_commandService'][_0x3a1724(0x1f4)](_0x2e0666['id'],_0x2e0666[_0x3a1724(0x271)]?JSON[_0x3a1724(0x1b0)](_0x2e0666[_0x3a1724(0x271)]):null,{'fromCollab':!0x0});});}[_0x4ede74(0x1ef)](){var _0x1efac8=_0x4ede74,_0x24108c;this[_0x1efac8(0x214)][_0x1efac8(0x275)]('offline'),(_0x24108c=this[_0x1efac8(0x268)])==null||_0x24108c['dispose']();}[_0x4ede74(0x1ab)](){var _0x4aebb1=_0x4ede74;this[_0x4aebb1(0x214)]['next'](_0x4aebb1(0x21b)),this['_fetchOperations']();}},exports[_0x4ede74(0x201)]=R([S(0x2,o[_0x4ede74(0x1ec)]),S(0x3,o[_0x4ede74(0x1e4)](O)),S(0x4,o['ICommandService'])],exports[_0x4ede74(0x201)]);function _0x46ef(){var _0x167827=['LIVESHARE_OPERATION','children','evenodd','registerInitialStateReporter','init','has','UNIVER_UNKNOWN','requireSession','tag','currentColor','defs','BuiltInUIPart','icon','entries','DesktopLiveShareController','memberID','ONLINE','url(#$1','_config','getLiveShareCoordinator','SetZoomRatioOperation','_reporters','connectInjector','_collabSessionService','_commandService','3693852gXzzeE','Module','registerComponent','IUniverInstanceService','LiveShare','0\x200\x2017\x2017','prototype','touchDependencies','78310JHycrl','UniverInstanceType','forwardRef','presenter','stopFollowing','IUIPartsService','CollaborationEvent','stringify','SAME_OPERATION_SHARE_INTERVAL','Inject','8968mrTxeX','subscribe','takeUntil','HEADER_MENU','jsxs','1em','type','IConfigService','presenting','456721GDgIur','_handleOffline','LiveShareStatus','useState','complete','_entities','executeCommand','registerSharedOperation','getUnitId','xlink:href','tryStartPresenting','defineProperty','colorChannel1','end','not-following','startFollowing','attrs','clsx','useRef','LiveShareCoordinator','2474427nTettY','univerjs-icon\x20univerjs-icon-','pluginName','LIVESHARE_FETCH_OPERATIONS','Present\x20this\x20document','CollaborationSessionService','className','_liveShareService','RxDisposable','_status','_handleOperation','getMemberID','concat','_mountLiveShare','CommandType','current','_beIdle','Fragment','_status$','indexOf','_collabSession','_handleTerminate','DisposableCollection','forEach','default','idle','stopPresenting','setConfig','set','parseProtocolChangeset','values','svg','onCommandExecuted','defIds','text','SessionStatus','string','_handleNewChangeSets','path','shouldShareOperation','LiveShareController','useDependency','clear','displayName','mask','onStarting','LIVESHARE_REQUEST_HOST','getInitialStates','toDisposable','data','mergeOverrideWithDependencies','LIVESHARE_TERMINATE','NOT_FOLLOWING','Dropdown','registerDependencies','useObservable','_startLiveShareCoordinator','extend','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','BehaviorSubject','map','assign','NEW_CHANGESETS','2227062mdRRTs','Stop\x20presenting','54rafABR','call','getValue','_startPresenting','UniverLiveSharePlugin','Injector','unitId','createInstance','DependentOn','event$','univer-mb-3\x20univer-w-full\x20univer-text-sm','531EODFUk','fill','get','getTypeOfUnitAdded$','PRESENTING','Plugin','createElement','add','hasOwnProperty','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','dispose','UNIVER_SHEET','getOwnPropertySymbols','_presenter','_unitID','UNIVER_LIVE_SHARE_PLUGIN','unsubscribe','getCurrentTypeOfUnit$','_univerInstanceService','Button','UniverCollaborationClientPlugin','div','You\x27re\x20following\x20the\x20presenter','http://www.w3.org/2000/svg','override','Start','_commandDisposable','LIVESHARE_NEW_HOST','_handleNewHost','button','4414550csfXJu','pipe','live-share-icon','You\x27re\x20presenting\x20the\x20document','apply','params','_init','UniverIcon','offline','next','SetWorksheetActiveOperation','asObservable','live-share.config','_stopFollowing','getOwnPropertyDescriptor','_configService','idSuffix','length','OFFLINE','IDLE','delete','_stopPresenting','send','random','merge','InsertSheetMutation','_handleOnline','following','substring','jsx','Disposable','parse','_startFollowing','useEffect','_uiPartsService','includes','dispose$','status$','Subject','_injector','_sharedOperations'];_0x46ef=function(){return _0x167827;};return _0x46ef();}function _0x5890(_0x791344,_0x4df684){var _0x46efda=_0x46ef();return _0x5890=function(_0x58901b,_0x2d8d52){_0x58901b=_0x58901b-0x1a1;var _0x3b5b2e=_0x46efda[_0x58901b];return _0x3b5b2e;},_0x5890(_0x791344,_0x4df684);}function A(){var _0x2b43ae=_0x4ede74;const _0x1ebf21=p['useDependency'](exports[_0x2b43ae(0x22a)]),_0x4e5bc1=p[_0x2b43ae(0x22b)](o['IUniverInstanceService']),_0x5f2a05=p[_0x2b43ae(0x239)](()=>_0x4e5bc1[_0x2b43ae(0x25f)](o[_0x2b43ae(0x1dc)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x41cbc6,_0x4b061f]=f[_0x2b43ae(0x1f1)](null),[_0x1b7a95,_0x2e67b2]=f[_0x2b43ae(0x1f1)](h['IDLE']),_0x326504=f[_0x2b43ae(0x200)](null);return f[_0x2b43ae(0x1b2)](()=>(_0x5f2a05&&_0x1ebf21[_0x2b43ae(0x1cd)](_0x5f2a05[_0x2b43ae(0x1f6)]())['then'](_0x57b941=>{var _0x514bae=_0x2b43ae;_0x4b061f(_0x57b941),_0x326504[_0x514bae(0x211)]=_0x57b941[_0x514bae(0x1b6)][_0x514bae(0x1e6)](_0x24f230=>{_0x2e67b2(_0x24f230);});}),()=>{var _0x46ad7c=_0x2b43ae,_0x399812;(_0x399812=_0x326504[_0x46ad7c(0x211)])==null||_0x399812[_0x46ad7c(0x25e)](),_0x326504[_0x46ad7c(0x211)]=null;}),[_0x5f2a05,_0x1ebf21]),_0x41cbc6?l[_0x2b43ae(0x1ae)](g[_0x2b43ae(0x237)],{'align':_0x2b43ae(0x1fb),'disabled':_0x1b7a95===h[_0x2b43ae(0x1a3)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':l[_0x2b43ae(0x1ae)](K,{'status':_0x1b7a95,'coordinator':_0x41cbc6}),'children':l['jsx'](_0x2b43ae(0x26b),{'className':g[_0x2b43ae(0x1ff)](_0x2b43ae(0x257),{'univer-cursor-not-allowed':_0x1b7a95===h[_0x2b43ae(0x1a3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1b7a95!==h[_0x2b43ae(0x1a3)]}),'type':'button','children':l[_0x2b43ae(0x1ae)](P,{'className':'univer-size-4'})})}):null;}function K(_0x43e0ed){var _0xdba310=_0x4ede74;const {status:_0x481b09,coordinator:_0x4b32b0}=_0x43e0ed;switch(_0x481b09){case h[_0xdba310(0x1a4)]:return l[_0xdba310(0x1ae)](z,{'coordinator':_0x4b32b0});case h['FOLLOWING']:return l[_0xdba310(0x1ae)](Q,{'coordinator':_0x4b32b0});case h[_0xdba310(0x236)]:return l[_0xdba310(0x1ae)](X,{'coordinator':_0x4b32b0});case h[_0xdba310(0x1a3)]:return l['jsx'](te,{});case h['PRESENTING']:return l[_0xdba310(0x1ae)](ee,{'coordinator':_0x4b32b0});default:return null;}}function z(_0x40796d){var _0x2c604c=_0x4ede74;const {coordinator:_0x4119a9}=_0x40796d;return l[_0x2c604c(0x1e9)](l[_0x2c604c(0x213)],{'children':[l[_0x2c604c(0x1ae)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x2c604c(0x206)}),l[_0x2c604c(0x1ae)](g['Button'],{'onClick':()=>_0x4119a9[_0x2c604c(0x1f8)](),'children':_0x2c604c(0x267)})]});}function Q(_0x2f99b5){var _0x4c529e=_0x4ede74;const {coordinator:_0x512819}=_0x2f99b5;return l['jsxs'](l[_0x4c529e(0x213)],{'children':[l[_0x4c529e(0x1ae)](_0x4c529e(0x263),{'className':_0x4c529e(0x24d),'children':_0x4c529e(0x264)}),l['jsx'](g[_0x4c529e(0x261)],{'onClick':()=>_0x512819['stopFollowing'](),'children':'Stop\x20following'})]});}function X(_0x177e1e){var _0x108747=_0x4ede74;const {coordinator:_0x3ef2fa}=_0x177e1e;return l[_0x108747(0x1e9)](l[_0x108747(0x213)],{'children':[l['jsx']('div',{'className':_0x108747(0x24d),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x108747(0x1ae)](g[_0x108747(0x261)],{'variant':_0x108747(0x224),'onClick':()=>_0x3ef2fa[_0x108747(0x1fd)](),'children':'Start\x20following'})]});}function ee(_0x9a9287){var _0x3c6884=_0x4ede74;const {coordinator:_0x5846fd}=_0x9a9287;return l[_0x3c6884(0x1e9)](l[_0x3c6884(0x213)],{'children':[l['jsx'](_0x3c6884(0x263),{'className':_0x3c6884(0x24d),'children':_0x3c6884(0x26f)}),l[_0x3c6884(0x1ae)](g[_0x3c6884(0x261)],{'variant':_0x3c6884(0x21a),'onClick':()=>_0x5846fd[_0x3c6884(0x21c)](),'children':_0x3c6884(0x242)})]});}function te(){var _0x291a37=_0x4ede74;return l[_0x291a37(0x1ae)](l['Fragment'],{'children':'You\x27are\x20offline.'});}var ie=Object[_0x4ede74(0x27a)],ne=(_0x139bf3,_0x198df9,_0x15d9cc,_0x32b15e)=>{var _0x2ad402=_0x4ede74;for(var _0x2b1436=_0x32b15e>0x1?void 0x0:_0x32b15e?ie(_0x198df9,_0x15d9cc):_0x198df9,_0x477ed3=_0x139bf3[_0x2ad402(0x1a2)]-0x1,_0x3f4ccc;_0x477ed3>=0x0;_0x477ed3--)(_0x3f4ccc=_0x139bf3[_0x477ed3])&&(_0x2b1436=_0x3f4ccc(_0x2b1436)||_0x2b1436);return _0x2b1436;},L=(_0x10c683,_0x39ab4c)=>(_0x5e3fed,_0x1709f7)=>_0x39ab4c(_0x5e3fed,_0x1709f7,_0x10c683);exports['DesktopLiveShareController']=class extends o[_0x4ede74(0x1af)]{constructor(_0x49fc9d,_0x10cd2e){var _0x2dca20=_0x4ede74;super(),this[_0x2dca20(0x1b8)]=_0x49fc9d,this[_0x2dca20(0x1b3)]=_0x10cd2e,this[_0x2dca20(0x20f)]();}[_0x4ede74(0x20f)](){var _0x141536=_0x4ede74;this['disposeWithMe'](this['_uiPartsService'][_0x141536(0x1d5)](p[_0x141536(0x1c5)][_0x141536(0x1e8)],()=>p[_0x141536(0x1d0)](A,this[_0x141536(0x1b8)])));}},exports['DesktopLiveShareController']=ne([L(0x0,o['Inject'](o[_0x4ede74(0x248)])),L(0x1,p[_0x4ede74(0x1e0)])],exports[_0x4ede74(0x1c8)]);var re=Object[_0x4ede74(0x1f9)],se=Object['getOwnPropertyDescriptor'],oe=(_0x1174fa,_0x4a4fb0,_0x1954e9)=>_0x4a4fb0 in _0x1174fa?re(_0x1174fa,_0x4a4fb0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1954e9}):_0x1174fa[_0x4a4fb0]=_0x1954e9,ae=(_0x1593f7,_0x160be4,_0x3ae9c9,_0x168d68)=>{var _0x5eeb94=_0x4ede74;for(var _0x1a4161=_0x168d68>0x1?void 0x0:_0x168d68?se(_0x160be4,_0x3ae9c9):_0x160be4,_0x800e7c=_0x1593f7[_0x5eeb94(0x1a2)]-0x1,_0x4429e8;_0x800e7c>=0x0;_0x800e7c--)(_0x4429e8=_0x1593f7[_0x800e7c])&&(_0x1a4161=_0x4429e8(_0x1a4161)||_0x1a4161);return _0x1a4161;},N=(_0xba365b,_0x1d1c5a)=>(_0x43b536,_0x63bc20)=>_0x1d1c5a(_0x43b536,_0x63bc20,_0xba365b),T=(_0x2314ee,_0x89b69a,_0x2d730f)=>oe(_0x2314ee,typeof _0x89b69a!='symbol'?_0x89b69a+'':_0x89b69a,_0x2d730f);const le=_0x4ede74(0x25d);exports[_0x4ede74(0x247)]=class extends o[_0x4ede74(0x253)]{constructor(_0x5b1476=x,_0x39cf1c,_0xe502db){var _0x1f0dad=_0x4ede74;super(),this['_config']=_0x5b1476,this[_0x1f0dad(0x1b8)]=_0x39cf1c,this[_0x1f0dad(0x27b)]=_0xe502db;const {..._0x6ecb5f}=o[_0x1f0dad(0x1a9)]({},x,this[_0x1f0dad(0x1cc)]);this['_configService'][_0x1f0dad(0x21d)]($,_0x6ecb5f);}[_0x4ede74(0x22f)](){var _0x472f6e=_0x4ede74;o[_0x472f6e(0x238)](this['_injector'],o[_0x472f6e(0x234)]([[O],[exports[_0x472f6e(0x22a)]],[E],[exports[_0x472f6e(0x1c8)]]],this[_0x472f6e(0x1cc)][_0x472f6e(0x266)])),o[_0x472f6e(0x1da)](this[_0x472f6e(0x1b8)],[[E]]);}['onRendered'](){var _0x25925c=_0x4ede74;o[_0x25925c(0x1da)](this[_0x25925c(0x1b8)],[[exports[_0x25925c(0x1c8)]]]);}},T(exports[_0x4ede74(0x247)],'type',o['UniverInstanceType'][_0x4ede74(0x1c0)]),T(exports[_0x4ede74(0x247)],_0x4ede74(0x204),le),exports['UniverLiveSharePlugin']=ae([o[_0x4ede74(0x24b)](m[_0x4ede74(0x262)]),N(0x1,o['Inject'](o['Injector'])),N(0x2,o[_0x4ede74(0x1ec)])],exports[_0x4ede74(0x247)]),exports[_0x4ede74(0x1d7)]=A,exports['LiveShareService']=O,exports[_0x4ede74(0x1f0)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x20f48d=_0x39bb;(function(_0x2c2ed3,_0x4cc686){var _0x3fec1a=_0x39bb,_0x93ac42=_0x2c2ed3();while(!![]){try{var _0x368a15=-parseInt(_0x3fec1a(0x14e))/0x1*(parseInt(_0x3fec1a(0x153))/0x2)+-parseInt(_0x3fec1a(0xe4))/0x3*(parseInt(_0x3fec1a(0x131))/0x4)+-parseInt(_0x3fec1a(0xfa))/0x5+parseInt(_0x3fec1a(0x10f))/0x6*(parseInt(_0x3fec1a(0xda))/0x7)+-parseInt(_0x3fec1a(0x13f))/0x8*(parseInt(_0x3fec1a(0x15b))/0x9)+parseInt(_0x3fec1a(0xfc))/0xa+parseInt(_0x3fec1a(0x160))/0xb*(parseInt(_0x3fec1a(0x16a))/0xc);if(_0x368a15===_0x4cc686)break;else _0x93ac42['push'](_0x93ac42['shift']());}catch(_0x5bb1a1){_0x93ac42['push'](_0x93ac42['shift']());}}}(_0x1354,0x98d78));var q=Object[_0x20f48d(0x122)],z=(_0x5a6317,_0x42ce78,_0x14d706)=>_0x42ce78 in _0x5a6317?q(_0x5a6317,_0x42ce78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14d706}):_0x5a6317[_0x42ce78]=_0x14d706,d=(_0x33db0b,_0x3fe3d6,_0x1a9268)=>z(_0x33db0b,typeof _0x3fe3d6!=_0x20f48d(0xf1)?_0x3fe3d6+'':_0x3fe3d6,_0x1a9268);import{CollaborationSessionService as _0xc5bf75,SessionStatus as _0x7c9eda,UniverCollaborationClientPlugin as _0x2d4e6e}from'@univerjs-pro/collaboration-client';import{Disposable as _0x1a511f,toDisposable as _0x3f3e9d,Inject as _0x5e6b53,IUniverInstanceService as _0x10d7b1,Injector as _0x25d4db,IConfigService as _0x27f4d,ICommandService as _0x4bf68b,RxDisposable as _0x4aa7c3,UniverInstanceType as _0x1df0c8,DisposableCollection as _0x48f9ff,CommandType as _0x39bd65,DependentOn as _0x1a4ce7,Plugin as _0x5c6f5f,merge as _0x1b809b,registerDependencies as _0x1d9d68,mergeOverrideWithDependencies as _0x1c6ef3,touchDependencies as _0x4e8b78}from'@univerjs/core';function _0x1354(){var _0x193eb8=['getOwnPropertySymbols','delete','add','LIVESHARE_REQUEST_HOST','3822qvuYSI','mask','Start\x20following','icon','Present\x20this\x20document','trim','onStarting','toString','presenter','pluginName','string','getMemberID','default','_startFollowing','UNIVER_LIVE_SHARE_PLUGIN','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27are\x20offline.','currentColor','shouldShareOperation','defineProperty','OFFLINE','sessionStatus$','idle','mutations','_configService','getTypeOfUnitAdded$','sheet','pipe','function','set','disposeWithMe','requireSession','getCurrentTypeOfUnit$','_liveShareService','22508DkZXBX','event$','div','getTypeOfUnitDisposed$','_mountLiveShare','replace','HEADER_MENU','executeCommand','getConfig','colorChannel1','_entities','path','get','IDLE','3325032VliWIt','memberID','ONLINE','offline','reverse','_univerInstanceService','_startLiveShareCoordinator','getUnitId','entries','not-following','data','FOLLOWING','indexOf','startFollowing','forEach','1096319BgspSD','complete','_handleOperation','_commandDisposable','idSuffix','2XeScrb','1em','following','children','defs','extend','_handleTerminate','getInitialStates','27GdMIPB','tryStartPresenting','registerSharedOperation','substring','_sharedOperations','11NvWjpe','random','unsubscribe','_stopPresenting','_config','_status','_uiPartsService','then','You\x27re\x20not\x20following\x20the\x20presenter','text','42252636MBuIPn','_beIdle','LIVESHARE_OPERATION','presenting','_handleOffline','status$','stopPresenting','values','clear','displayName','_handleNewChangeSets','_fetchOperations','button','use','_collabSessionService','You\x27re\x20following\x20the\x20presenter','xlink:href','PRESENTING','0\x200\x2017\x2017','_injector','NEW_CHANGESETS','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','prototype','UNIVER_SHEET','univer-size-4','send','propertyIsEnumerable','onRendered','stopFollowing','apply','getLiveShareCoordinator','subscribe','map','init','call','Start','defIds','stringify','registerInitialStateReporter','9548uqyBEd','length','attrs','current','live-share.config','_reporters','unitId','_status$','_init','tag','597nRqtBa','includes','SAME_OPERATION_SHARE_INTERVAL','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','hasOwnProperty','LIVESHARE_NEW_HOST','has','_stopFollowing','onCommandExecuted','type','className','LIVESHARE_TERMINATE','symbol','_commandService','_unitID','fill','dispose','LiveShareIcon','evenodd','dispose$','assign','2851440mbZLZW','_collabSession','2693860fzOzxd','http://www.w3.org/2000/svg','_handleNewHost','params','concat','getOwnPropertyDescriptor','_startPresenting','_handleOnline','_presenter','end','url(#$1','createInstance','UNIVER_UNKNOWN','next','registerComponent'];_0x1354=function(){return _0x193eb8;};return _0x1354();}import{SetWorksheetActiveOperation as _0x30ebd3,InsertSheetMutation as _0x3e383d}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x2686c8,SetScrollOperation as _0x15ddba}from'@univerjs/sheets-ui';import{useDependency as _0x2713b0,useObservable as _0x1d60ce,IUIPartsService as _0xe05b9c,BuiltInUIPart as _0x22f3b6,connectInjector as _0x123b5d}from'@univerjs/ui';import{jsx as _0x591b4e,jsxs as _0xf95584,Fragment as _0xb7edf3}from'react/jsx-runtime';import{Dropdown as _0x3a1168,clsx as _0x25609c,Button as _0x3b8bcf}from'@univerjs/design';function _0x39bb(_0x58224d,_0x8a8988){var _0x13544a=_0x1354();return _0x39bb=function(_0x39bb79,_0x2af241){_0x39bb79=_0x39bb79-0xbf;var _0x19cce5=_0x13544a[_0x39bb79];return _0x19cce5;},_0x39bb(_0x58224d,_0x8a8988);}import{forwardRef as _0x11114f,useRef as _0x5991aa,createElement as _0x3f4386,useState as _0x5e8cb1,useEffect as _0x613455}from'react';import{CollaborationEvent as _0x18a2fa,parseProtocolChangeset as _0x585eb4}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0xd52750,Subject as _0x127c60}from'rxjs';import{takeUntil as _0xc6f40a,throttleTime as _0x34d54c}from'rxjs/operators';const Oe=_0x20f48d(0xde),T={};class L extends _0x1a511f{constructor(){var _0x16e71b=_0x20f48d;super(...arguments),d(this,_0x16e71b(0x15f),new Set()),d(this,_0x16e71b(0xdf),new Set());}['registerSharedOperation'](_0x5abf48){var _0x561a43=_0x20f48d;return this[_0x561a43(0x15f)][_0x561a43(0x10d)](_0x5abf48),_0x3f3e9d(()=>this[_0x561a43(0x15f)][_0x561a43(0x10c)](_0x5abf48));}[_0x20f48d(0xd9)](_0x248586){var _0x3b4578=_0x20f48d;return this[_0x3b4578(0xdf)][_0x3b4578(0x10d)](_0x248586),_0x3f3e9d(()=>this[_0x3b4578(0xdf)][_0x3b4578(0x10c)](_0x248586));}['shouldShareOperation'](_0x576407){var _0x4cd022=_0x20f48d;return this['_sharedOperations'][_0x4cd022(0xeb)](_0x576407);}[_0x20f48d(0x15a)](_0x3d2644){var _0x3a25f0=_0x20f48d;return Array['from'](this[_0x3a25f0(0xdf)])[_0x3a25f0(0xd3)](_0x59d816=>_0x59d816(_0x3d2644));}}var Ee=Object[_0x20f48d(0x101)],we=(_0x391951,_0x129d60,_0x417ef3,_0x3bbed2)=>{var _0xc20129=_0x20f48d;for(var _0x284266=_0x3bbed2>0x1?void 0x0:_0x3bbed2?Ee(_0x129d60,_0x417ef3):_0x129d60,_0x4a4069=_0x391951[_0xc20129(0xdb)]-0x1,_0x58d83b;_0x4a4069>=0x0;_0x4a4069--)(_0x58d83b=_0x391951[_0x4a4069])&&(_0x284266=_0x58d83b(_0x284266)||_0x284266);return _0x284266;},Ne=(_0x27cc41,_0x37a93a)=>(_0x51a5aa,_0x5f5dc8)=>_0x37a93a(_0x51a5aa,_0x5f5dc8,_0x27cc41);let m=class extends _0x1a511f{constructor(_0x5c72e2){var _0x3efb33=_0x20f48d;super(),this[_0x3efb33(0x130)]=_0x5c72e2,this[_0x3efb33(0xe2)]();}['_init'](){var _0x253745=_0x20f48d;[_0x2686c8['id'],_0x15ddba['id'],_0x30ebd3['id']][_0x253745(0x14d)](_0x34b4ee=>{var _0x13e36c=_0x253745;this[_0x13e36c(0x12d)](this[_0x13e36c(0x130)][_0x13e36c(0x15d)](_0x34b4ee));});}};m=we([Ne(0x0,_0x5e6b53(L))],m);var c=function(){var _0x32987f=_0x20f48d;return c=Object[_0x32987f(0xf9)]||function(_0x5ea257){var _0x1dda28=_0x32987f;for(var _0x4f84b5,_0x16f4a2=0x1,_0x465a70=arguments[_0x1dda28(0xdb)];_0x16f4a2<_0x465a70;_0x16f4a2++){_0x4f84b5=arguments[_0x16f4a2];for(var _0xb9a3ce in _0x4f84b5)Object[_0x1dda28(0xc9)][_0x1dda28(0xe9)][_0x1dda28(0xd5)](_0x4f84b5,_0xb9a3ce)&&(_0x5ea257[_0xb9a3ce]=_0x4f84b5[_0xb9a3ce]);}return _0x5ea257;},c[_0x32987f(0xd0)](this,arguments);},Ce=function(_0x10fc2d,_0x532d5a){var _0x312b0e=_0x20f48d,_0x126207={};for(var _0x2da836 in _0x10fc2d)Object[_0x312b0e(0xc9)][_0x312b0e(0xe9)][_0x312b0e(0xd5)](_0x10fc2d,_0x2da836)&&_0x532d5a[_0x312b0e(0x14b)](_0x2da836)<0x0&&(_0x126207[_0x2da836]=_0x10fc2d[_0x2da836]);if(_0x10fc2d!=null&&typeof Object[_0x312b0e(0x10b)]==_0x312b0e(0x12b)){for(var _0x17929f=0x0,_0x2da836=Object['getOwnPropertySymbols'](_0x10fc2d);_0x17929f<_0x2da836[_0x312b0e(0xdb)];_0x17929f++)_0x532d5a[_0x312b0e(0x14b)](_0x2da836[_0x17929f])<0x0&&Object['prototype'][_0x312b0e(0xcd)][_0x312b0e(0xd5)](_0x10fc2d,_0x2da836[_0x17929f])&&(_0x126207[_0x2da836[_0x17929f]]=_0x10fc2d[_0x2da836[_0x17929f]]);}return _0x126207;},W=_0x11114f(function(_0x48085e,_0x138cf8){var _0x4cb002=_0x20f48d,_0xff3a=_0x48085e['icon'],_0x58397f=_0x48085e['id'],_0x2d9278=_0x48085e[_0x4cb002(0xef)],_0x4783b6=_0x48085e[_0x4cb002(0x158)],_0x61ae00=Ce(_0x48085e,[_0x4cb002(0x112),'id','className',_0x4cb002(0x158)]),_0x586eda='univerjs-icon\x20univerjs-icon-'[_0x4cb002(0x100)](_0x58397f,'\x20')[_0x4cb002(0x100)](_0x2d9278||'')[_0x4cb002(0x114)](),_0xaf7d55=_0x5991aa('_'['concat'](Le()));return Y(_0xff3a,''['concat'](_0x58397f),{'defIds':_0xff3a[_0x4cb002(0xd7)],'idSuffix':_0xaf7d55['current']},c({'ref':_0x138cf8,'className':_0x586eda},_0x61ae00),_0x4783b6);});function Y(_0x1aa5ea,_0x499209,_0x5dec01,_0x1f6278,_0x4e4d66){var _0x1626d8=_0x20f48d;return _0x3f4386(_0x1aa5ea['tag'],c(c({'key':_0x499209},De(_0x1aa5ea,_0x5dec01,_0x4e4d66)),_0x1f6278),(xe(_0x1aa5ea,_0x5dec01)[_0x1626d8(0x156)]||[])[_0x1626d8(0xd3)](function(_0x560e67,_0x1a6182){var _0x498a95=_0x1626d8;return Y(_0x560e67,''[_0x498a95(0x100)](_0x499209,'-')['concat'](_0x1aa5ea[_0x498a95(0xe3)],'-')[_0x498a95(0x100)](_0x1a6182),_0x5dec01,void 0x0,_0x4e4d66);}));}function De(_0x3ebdf1,_0x3cc285,_0xade262){var _0x583d8d=_0x20f48d,_0x5c752b=c({},_0x3ebdf1[_0x583d8d(0xdc)]);_0xade262!=null&&_0xade262[_0x583d8d(0x13a)]&&_0x5c752b[_0x583d8d(0xf4)]===_0x583d8d(0x13a)&&(_0x5c752b[_0x583d8d(0xf4)]=_0xade262[_0x583d8d(0x13a)]),_0x3ebdf1[_0x583d8d(0xe3)]===_0x583d8d(0x110)&&_0x5c752b['id']&&(_0x5c752b['id']=_0x5c752b['id']+_0x3cc285[_0x583d8d(0x152)]),Object[_0x583d8d(0x147)](_0x5c752b)[_0x583d8d(0x14d)](function(_0xa41835){var _0x59ad06=_0x583d8d,_0x40322d=_0xa41835[0x0],_0x42f436=_0xa41835[0x1];_0x40322d==='mask'&&typeof _0x42f436==_0x59ad06(0x119)&&(_0x5c752b[_0x40322d]=_0x42f436[_0x59ad06(0x136)](/url\(#(.*)\)/,_0x59ad06(0x106)[_0x59ad06(0x100)](_0x3cc285[_0x59ad06(0x152)],')')));});var _0x5c70bf=_0x3cc285[_0x583d8d(0xd7)];return!_0x5c70bf||_0x5c70bf['length']===0x0||(_0x3ebdf1[_0x583d8d(0xe3)]===_0x583d8d(0xc0)&&_0x5c752b['xlink:href']&&(_0x5c752b[_0x583d8d(0xc3)]=_0x5c752b[_0x583d8d(0xc3)]+_0x3cc285['idSuffix']),Object[_0x583d8d(0x147)](_0x5c752b)[_0x583d8d(0x14d)](function(_0x8460c7){var _0x165fd7=_0x583d8d,_0x5488b6=_0x8460c7[0x0],_0x51c173=_0x8460c7[0x1];typeof _0x51c173=='string'&&(_0x5c752b[_0x5488b6]=_0x51c173['replace'](/url\(#(.*)\)/,'url(#$1'[_0x165fd7(0x100)](_0x3cc285[_0x165fd7(0x152)],')')));})),_0x5c752b;}function xe(_0x230754,_0x2da33b){var _0x2fa412=_0x20f48d,_0x5be48b,_0x49f6c1=_0x2da33b[_0x2fa412(0xd7)];return!_0x49f6c1||_0x49f6c1['length']===0x0?_0x230754:_0x230754[_0x2fa412(0xe3)]===_0x2fa412(0x157)&&(!((_0x5be48b=_0x230754[_0x2fa412(0x156)])===null||_0x5be48b===void 0x0)&&_0x5be48b[_0x2fa412(0xdb)])?c(c({},_0x230754),{'children':_0x230754[_0x2fa412(0x156)][_0x2fa412(0xd3)](function(_0x5b1f6b){var _0x33d8a6=_0x2fa412;return typeof _0x5b1f6b[_0x33d8a6(0xdc)]['id']==_0x33d8a6(0x119)&&_0x49f6c1&&_0x49f6c1[_0x33d8a6(0xe5)](_0x5b1f6b[_0x33d8a6(0xdc)]['id'])?c(c({},_0x5b1f6b),{'attrs':c(c({},_0x5b1f6b[_0x33d8a6(0xdc)]),{'id':_0x5b1f6b['attrs']['id']+_0x2da33b[_0x33d8a6(0x152)]})}):_0x5b1f6b;})}):_0x230754;}function Le(){var _0xfe5172=_0x20f48d;return Math[_0xfe5172(0x161)]()[_0xfe5172(0x116)](0x24)[_0xfe5172(0x15e)](0x2,0x8);}W[_0x20f48d(0x173)]='UniverIcon';var ye={'tag':'svg','attrs':{'xmlns':_0x20f48d(0xfd),'fill':'none','viewBox':_0x20f48d(0xc5),'width':_0x20f48d(0x154),'height':_0x20f48d(0x154)},'children':[{'tag':'path','attrs':{'fill':_0x20f48d(0x120),'d':_0x20f48d(0xe7)}},{'tag':_0x20f48d(0x13c),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x20f48d(0xf7),'clipRule':'evenodd'}}]},B=_0x11114f(function(_0xd0a02f,_0x2d7153){var _0x5e4663=_0x20f48d;return _0x3f4386(W,Object[_0x5e4663(0xf9)]({},_0xd0a02f,{'id':'live-share-icon','ref':_0x2d7153,'icon':ye}));});B[_0x20f48d(0x173)]=_0x20f48d(0xf6);var Re=Object[_0x20f48d(0x101)],Z=(_0x2daa00,_0x508644,_0x38e735,_0x2fb5bd)=>{for(var _0xe27228=_0x2fb5bd>0x1?void 0x0:_0x2fb5bd?Re(_0x508644,_0x38e735):_0x508644,_0x21afd2=_0x2daa00['length']-0x1,_0x42809d;_0x21afd2>=0x0;_0x21afd2--)(_0x42809d=_0x2daa00[_0x21afd2])&&(_0xe27228=_0x42809d(_0xe27228)||_0xe27228);return _0xe27228;},f=(_0x3194ec,_0x1f7372)=>(_0x2b2128,_0x4d7cd6)=>_0x1f7372(_0x2b2128,_0x4d7cd6,_0x3194ec);let I=class extends _0x4aa7c3{constructor(_0x48d520,_0xb09bbc,_0x3d90ba){var _0xc18116=_0x20f48d;super(),d(this,'_entities',new Map()),(this[_0xc18116(0x144)]=_0x48d520,this[_0xc18116(0xc6)]=_0xb09bbc,this[_0xc18116(0xc1)]=_0x3d90ba,this[_0xc18116(0xe2)]());}async[_0x20f48d(0xd1)](_0x58de9f){var _0x183613=_0x20f48d;return this[_0x183613(0x13b)][_0x183613(0xeb)](_0x58de9f)||await this[_0x183613(0x145)](_0x58de9f),this[_0x183613(0x13b)]['get'](_0x58de9f);}['_init'](){var _0x4a2baa=_0x20f48d;this[_0x4a2baa(0x144)][_0x4a2baa(0x128)](_0x1df0c8[_0x4a2baa(0xca)])[_0x4a2baa(0x12a)](_0xc6f40a(this[_0x4a2baa(0xf8)]))[_0x4a2baa(0xd2)](async _0x3dd5b2=>{var _0x1b839b=_0x4a2baa;const _0x58086a=_0x3dd5b2['getUnitId']();this[_0x1b839b(0x13b)][_0x1b839b(0xeb)](_0x58086a)||this[_0x1b839b(0x145)](_0x58086a);}),this[_0x4a2baa(0x144)][_0x4a2baa(0x134)](_0x1df0c8[_0x4a2baa(0xca)])[_0x4a2baa(0x12a)](_0xc6f40a(this['dispose$']))[_0x4a2baa(0xd2)](_0x12bc9a=>{var _0x41fc05=_0x4a2baa;const _0x70ebec=_0x12bc9a[_0x41fc05(0x146)](),_0x1aae01=this[_0x41fc05(0x13b)]['get'](_0x70ebec);_0x1aae01==null||_0x1aae01[_0x41fc05(0xf5)]();});}async['_startLiveShareCoordinator'](_0x5c4a12){var _0x3cca2=_0x20f48d;const _0x43f3a1=await this['_collabSessionService'][_0x3cca2(0x12e)](_0x5c4a12),_0x35cc71=this[_0x3cca2(0xc6)][_0x3cca2(0x107)](C,_0x5c4a12,_0x43f3a1);return _0x35cc71[_0x3cca2(0xd4)](),this[_0x3cca2(0x13b)][_0x3cca2(0x12c)](_0x5c4a12,_0x35cc71),_0x35cc71;}};I=Z([f(0x0,_0x10d7b1),f(0x1,_0x5e6b53(_0x25d4db)),f(0x2,_0x5e6b53(_0xc5bf75))],I);var h=(_0x149a58=>(_0x149a58[_0x20f48d(0x123)]=_0x20f48d(0x142),_0x149a58[_0x20f48d(0x13e)]=_0x20f48d(0x125),_0x149a58[_0x20f48d(0x14a)]='following',_0x149a58['NOT_FOLLOWING']=_0x20f48d(0x148),_0x149a58[_0x20f48d(0xc4)]=_0x20f48d(0x16d),_0x149a58))(h||{});const Pe=_0x20f48d(0xe6),Ae=0xc8;let C=class extends _0x4aa7c3{constructor(_0x21c6dc,_0x1aa65a,_0x19fcf3,_0x9bf42f,_0x6c312d){var _0x24e1a3=_0x20f48d;super(),d(this,_0x24e1a3(0xe1),new _0xd52750(_0x24e1a3(0x125))),d(this,'status$',this[_0x24e1a3(0xe1)]['asObservable']()),d(this,_0x24e1a3(0xe2),!0x1),d(this,_0x24e1a3(0x151),null),d(this,'_presenter',null),(this['_unitID']=_0x21c6dc,this['_collabSession']=_0x1aa65a,this['_configService']=_0x19fcf3,this[_0x24e1a3(0x130)]=_0x9bf42f,this[_0x24e1a3(0xf2)]=_0x6c312d);}get[_0x20f48d(0x165)](){var _0x145d52=_0x20f48d;return this[_0x145d52(0xe1)]['getValue']();}['dispose'](){var _0x2d6852=_0x20f48d,_0x33e68e;(_0x33e68e=this['_commandDisposable'])==null||_0x33e68e[_0x2d6852(0xf5)](),this['_status$'][_0x2d6852(0x109)](_0x2d6852(0x125)),this[_0x2d6852(0xe1)][_0x2d6852(0x14f)]();}[_0x20f48d(0xd4)](){var _0x181658=_0x20f48d;this[_0x181658(0xe2)]||(this[_0x181658(0xe2)]=!0x0,this[_0x181658(0xfb)][_0x181658(0x124)][_0x181658(0x12a)](_0xc6f40a(this[_0x181658(0xf8)]))[_0x181658(0xd2)](_0x126922=>{var _0x5ba407=_0x181658;switch(_0x126922){case _0x7c9eda[_0x5ba407(0x123)]:this[_0x5ba407(0x16e)]();break;case _0x7c9eda[_0x5ba407(0x141)]:this[_0x5ba407(0x103)]();break;}}),this['_collabSession'][_0x181658(0x132)][_0x181658(0x12a)](_0xc6f40a(this[_0x181658(0xf8)]))[_0x181658(0xd2)](_0x73fbaa=>{var _0x6da9e7=_0x181658;const {eventID:_0x33fe2a}=_0x73fbaa;switch(_0x33fe2a){case _0x18a2fa[_0x6da9e7(0xea)]:this[_0x6da9e7(0xfe)](_0x73fbaa);break;case _0x18a2fa['LIVESHARE_OPERATION']:this['_handleOperation'](_0x73fbaa);break;case _0x18a2fa[_0x6da9e7(0xf0)]:this[_0x6da9e7(0x159)]();break;case _0x18a2fa[_0x6da9e7(0xc7)]:this[_0x6da9e7(0x174)](_0x73fbaa);break;}}));}[_0x20f48d(0x15c)](){var _0xa7feb9=_0x20f48d;this[_0xa7feb9(0xfb)][_0xa7feb9(0xcc)]({'eventID':_0x18a2fa[_0xa7feb9(0x10e)],'data':{'unitID':this[_0xa7feb9(0xf3)],'userID':this[_0xa7feb9(0xfb)]['getMemberID']()}},this[_0xa7feb9(0xf3)]);}[_0x20f48d(0x170)](){var _0x2a5616=_0x20f48d;this['_status']===_0x2a5616(0x16d)&&(this['_status$']['next'](_0x2a5616(0x125)),this[_0x2a5616(0xfb)]['send']({'eventID':_0x18a2fa['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x2a5616(0xf3)]}},this[_0x2a5616(0xf3)]));}['startFollowing'](){var _0x106373=_0x20f48d;this[_0x106373(0x165)]==='not-following'&&(this[_0x106373(0xe1)]['next'](_0x106373(0x155)),this[_0x106373(0x11c)]());}[_0x20f48d(0xcf)](){var _0x617ad6=_0x20f48d;this[_0x617ad6(0x165)]==='following'&&this[_0x617ad6(0xec)]();}[_0x20f48d(0xfe)](_0x27b3f4){var _0x232fe9=_0x20f48d;const {presenter:_0x278bf3}=_0x27b3f4[_0x232fe9(0x149)],_0x4e497e=this[_0x232fe9(0xfb)][_0x232fe9(0x11a)]();this[_0x232fe9(0x104)]=_0x278bf3,_0x278bf3===_0x4e497e?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x232fe9(0x165)]!=='not-following'&&(this['_stopPresenting'](),this[_0x232fe9(0x11c)]());}[_0x20f48d(0x175)](){var _0x1ea5f2=_0x20f48d;const _0x14d822={'eventID':_0x18a2fa['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x1ea5f2(0xcc)](_0x14d822,this[_0x1ea5f2(0xf3)]);}['_handleTerminate'](){var _0x277797=_0x20f48d;this[_0x277797(0x104)]=null,this[_0x277797(0x165)]!==_0x277797(0x16d)&&this['_beIdle']();}[_0x20f48d(0x174)](_0x53c9c9){var _0x3876b0=_0x20f48d;if(this[_0x3876b0(0x165)]==='following'&&this['_presenter']===_0x53c9c9[_0x3876b0(0x149)][_0x3876b0(0x140)]){const _0x2d880f=_0x585eb4(_0x53c9c9['data'])[_0x3876b0(0x126)][_0x3876b0(0x143)]()['find'](_0x7f9915=>_0x7f9915['id']===_0x3e383d['id']);if(_0x2d880f){const _0x5dc93c=_0x2d880f['params'][_0x3876b0(0xe0)],_0x5c171c=_0x2d880f[_0x3876b0(0xff)][_0x3876b0(0x129)]['id'];setTimeout(()=>{var _0x101596=_0x3876b0;this[_0x101596(0xf2)][_0x101596(0x138)](_0x30ebd3['id'],{'unitId':_0x5dc93c,'subUnitId':_0x5c171c},{'fromCollab':!0x0});});}}}[_0x20f48d(0x102)](){var _0x107fad=_0x20f48d;this[_0x107fad(0xe1)][_0x107fad(0x109)](_0x107fad(0x16d));const _0x189c64=new Map(),_0x51dce0=this[_0x107fad(0x151)]=new _0x48f9ff();_0x51dce0['add'](_0x3f3e9d(()=>{var _0x1223dc=_0x107fad;_0x189c64['forEach'](_0x301d7d=>_0x301d7d[_0x1223dc(0x14f)]()),_0x189c64[_0x1223dc(0x172)]();})),_0x51dce0[_0x107fad(0x10d)](this[_0x107fad(0xf2)][_0x107fad(0xed)](_0x1dd1f2=>{var _0x162e69=_0x107fad,_0x1fe835;if(_0x1dd1f2[_0x162e69(0xee)]!==_0x39bd65['OPERATION']||!this[_0x162e69(0x130)][_0x162e69(0x121)](_0x1dd1f2['id']))return;const {id:_0x34e474}=_0x1dd1f2;let _0x2150e1;_0x189c64[_0x162e69(0xeb)](_0x34e474)?_0x2150e1=_0x189c64[_0x162e69(0x13d)](_0x34e474):(_0x2150e1=new _0x127c60(),_0x189c64[_0x162e69(0x12c)](_0x34e474,_0x2150e1),_0x2150e1[_0x162e69(0x12a)](_0x34d54c((_0x1fe835=this[_0x162e69(0x127)][_0x162e69(0x139)](Pe))!=null?_0x1fe835:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x162e69(0xd2)](_0x40a9f3=>{var _0x198215=_0x162e69;this[_0x198215(0xfb)]['send']({'eventID':_0x18a2fa[_0x198215(0x16c)],'data':{'unitID':this[_0x198215(0xf3)],'operations':{[_0x40a9f3['id']]:{'id':_0x40a9f3['id'],'params':JSON[_0x198215(0xd8)](_0x40a9f3['params'])}}}},this[_0x198215(0xf3)]);})),_0x2150e1[_0x162e69(0x109)](_0x1dd1f2);})),this[_0x107fad(0x130)][_0x107fad(0x15a)](this[_0x107fad(0xf3)])[_0x107fad(0x14d)](_0x10b4f2=>this[_0x107fad(0xfb)][_0x107fad(0xcc)]({'eventID':_0x18a2fa['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x10b4f2['id']]:{'id':_0x10b4f2['id'],'params':JSON[_0x107fad(0xd8)](_0x10b4f2[_0x107fad(0xff)])}}}},this[_0x107fad(0xf3)]));}[_0x20f48d(0x163)](){var _0x45503f=_0x20f48d,_0x59a185;this['_status$']['next'](_0x45503f(0x125)),(_0x59a185=this[_0x45503f(0x151)])==null||_0x59a185[_0x45503f(0xf5)](),this[_0x45503f(0x151)]=null;}[_0x20f48d(0x11c)](){var _0x12d4d1=_0x20f48d,_0x56d0ac;(_0x56d0ac=this[_0x12d4d1(0x151)])==null||_0x56d0ac[_0x12d4d1(0xf5)](),this['_status$']['next'](_0x12d4d1(0x155));}[_0x20f48d(0x16b)](){var _0xbb4df2=_0x20f48d,_0x7320ea;this[_0xbb4df2(0xe1)][_0xbb4df2(0x109)](_0xbb4df2(0x125)),(_0x7320ea=this['_commandDisposable'])==null||_0x7320ea[_0xbb4df2(0xf5)](),this[_0xbb4df2(0x151)]=null;}[_0x20f48d(0xec)](){var _0x91d738=_0x20f48d,_0x152b2e;this['_status$']['next'](_0x91d738(0x148)),(_0x152b2e=this['_commandDisposable'])==null||_0x152b2e[_0x91d738(0xf5)]();}[_0x20f48d(0x150)](_0x507d49){var _0x5af945=_0x20f48d;if([_0x5af945(0x16d),'not-following',_0x5af945(0x142)][_0x5af945(0xe5)](this[_0x5af945(0x165)])||!_0x507d49[_0x5af945(0x149)][_0x5af945(0x117)]||_0x507d49['data']['presenter']===this[_0x5af945(0xfb)][_0x5af945(0x11a)]())return;this[_0x5af945(0x165)]===_0x5af945(0x125)&&this['_startFollowing']();const _0x2f79b6=_0x507d49[_0x5af945(0x149)]['operations'];Object[_0x5af945(0x171)](_0x2f79b6)['forEach'](_0x5594db=>{var _0x44fab5=_0x5af945;this[_0x44fab5(0xf2)][_0x44fab5(0x138)](_0x5594db['id'],_0x5594db[_0x44fab5(0xff)]?JSON['parse'](_0x5594db['params']):null,{'fromCollab':!0x0});});}[_0x20f48d(0x16e)](){var _0x15b16c=_0x20f48d,_0x5ce6d5;this[_0x15b16c(0xe1)][_0x15b16c(0x109)](_0x15b16c(0x142)),(_0x5ce6d5=this[_0x15b16c(0x151)])==null||_0x5ce6d5[_0x15b16c(0xf5)]();}[_0x20f48d(0x103)](){var _0x3a7680=_0x20f48d;this['_status$'][_0x3a7680(0x109)](_0x3a7680(0x125)),this[_0x3a7680(0x175)]();}};C=Z([f(0x2,_0x27f4d),f(0x3,_0x5e6b53(L)),f(0x4,_0x4bf68b)],C);function Te(){var _0x2a2912=_0x20f48d;const _0x3e0e8f=_0x2713b0(I),_0x1ab237=_0x2713b0(_0x10d7b1),_0x10fea5=_0x1d60ce(()=>_0x1ab237[_0x2a2912(0x12f)](_0x1df0c8['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x13482a,_0x2b578f]=_0x5e8cb1(null),[_0x355e54,_0xac4b1c]=_0x5e8cb1(h['IDLE']),_0x36257c=_0x5991aa(null);return _0x613455(()=>(_0x10fea5&&_0x3e0e8f[_0x2a2912(0xd1)](_0x10fea5[_0x2a2912(0x146)]())[_0x2a2912(0x167)](_0x36fad5=>{var _0x559aed=_0x2a2912;_0x2b578f(_0x36fad5),_0x36257c[_0x559aed(0xdd)]=_0x36fad5[_0x559aed(0x16f)][_0x559aed(0xd2)](_0x240c49=>{_0xac4b1c(_0x240c49);});}),()=>{var _0x50398e=_0x2a2912,_0xa10712;(_0xa10712=_0x36257c[_0x50398e(0xdd)])==null||_0xa10712[_0x50398e(0x162)](),_0x36257c[_0x50398e(0xdd)]=null;}),[_0x10fea5,_0x3e0e8f]),_0x13482a?_0x591b4e(_0x3a1168,{'align':_0x2a2912(0x105),'disabled':_0x355e54===h['OFFLINE'],'className':_0x2a2912(0xe8),'overlay':_0x591b4e($e,{'status':_0x355e54,'coordinator':_0x13482a}),'children':_0x591b4e(_0x2a2912(0xbf),{'className':_0x25609c(_0x2a2912(0xc8),{'univer-cursor-not-allowed':_0x355e54===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x355e54!==h[_0x2a2912(0x123)]}),'type':'button','children':_0x591b4e(B,{'className':_0x2a2912(0xcb)})})}):null;}function $e(_0x31e430){var _0x4c70ee=_0x20f48d;const {status:_0x49a101,coordinator:_0xbc1520}=_0x31e430;switch(_0x49a101){case h[_0x4c70ee(0x13e)]:return _0x591b4e(Fe,{'coordinator':_0xbc1520});case h[_0x4c70ee(0x14a)]:return _0x591b4e(He,{'coordinator':_0xbc1520});case h['NOT_FOLLOWING']:return _0x591b4e(je,{'coordinator':_0xbc1520});case h[_0x4c70ee(0x123)]:return _0x591b4e(Ve,{});case h[_0x4c70ee(0xc4)]:return _0x591b4e(Ue,{'coordinator':_0xbc1520});default:return null;}}function Fe(_0x20c32d){var _0x37eb8e=_0x20f48d;const {coordinator:_0x3175d9}=_0x20c32d;return _0xf95584(_0xb7edf3,{'children':[_0x591b4e(_0x37eb8e(0x133),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x37eb8e(0x113)}),_0x591b4e(_0x3b8bcf,{'onClick':()=>_0x3175d9[_0x37eb8e(0x15c)](),'children':_0x37eb8e(0xd6)})]});}function He(_0x312c16){var _0xe4c6ac=_0x20f48d;const {coordinator:_0xb1b530}=_0x312c16;return _0xf95584(_0xb7edf3,{'children':[_0x591b4e('div',{'className':_0xe4c6ac(0x11e),'children':_0xe4c6ac(0xc2)}),_0x591b4e(_0x3b8bcf,{'onClick':()=>_0xb1b530[_0xe4c6ac(0xcf)](),'children':'Stop\x20following'})]});}function je(_0x5a9d64){var _0x570224=_0x20f48d;const {coordinator:_0x1e4aa5}=_0x5a9d64;return _0xf95584(_0xb7edf3,{'children':[_0x591b4e(_0x570224(0x133),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x570224(0x168)}),_0x591b4e(_0x3b8bcf,{'variant':_0x570224(0x169),'onClick':()=>_0x1e4aa5[_0x570224(0x14c)](),'children':_0x570224(0x111)})]});}function Ue(_0x2a7216){var _0x31db84=_0x20f48d;const {coordinator:_0x2f30b4}=_0x2a7216;return _0xf95584(_0xb7edf3,{'children':[_0x591b4e(_0x31db84(0x133),{'className':_0x31db84(0x11e),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x591b4e(_0x3b8bcf,{'variant':_0x31db84(0x11b),'onClick':()=>_0x2f30b4[_0x31db84(0x170)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x1ea2b1=_0x20f48d;return _0x591b4e(_0xb7edf3,{'children':_0x1ea2b1(0x11f)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x1e86b3,_0x5704cc,_0x257239,_0x46ca42)=>{for(var _0x1c5c74=_0x46ca42>0x1?void 0x0:_0x46ca42?Me(_0x5704cc,_0x257239):_0x5704cc,_0x16e8d0=_0x1e86b3['length']-0x1,_0x6cf96c;_0x16e8d0>=0x0;_0x16e8d0--)(_0x6cf96c=_0x1e86b3[_0x16e8d0])&&(_0x1c5c74=_0x6cf96c(_0x1c5c74)||_0x1c5c74);return _0x1c5c74;},$=(_0x498f27,_0x3f0482)=>(_0x344315,_0x7a0af)=>_0x3f0482(_0x344315,_0x7a0af,_0x498f27);let b=class extends _0x1a511f{constructor(_0x1844b9,_0x2de9fd){var _0x7e94a1=_0x20f48d;super(),this[_0x7e94a1(0xc6)]=_0x1844b9,this[_0x7e94a1(0x166)]=_0x2de9fd,this[_0x7e94a1(0x135)]();}[_0x20f48d(0x135)](){var _0x44de3f=_0x20f48d;this[_0x44de3f(0x12d)](this[_0x44de3f(0x166)][_0x44de3f(0x10a)](_0x22f3b6[_0x44de3f(0x137)],()=>_0x123b5d(Te,this['_injector'])));}};b=ke([$(0x0,_0x5e6b53(_0x25d4db)),$(0x1,_0xe05b9c)],b);var Ge=Object[_0x20f48d(0x122)],We=Object[_0x20f48d(0x101)],Ye=(_0x15d16d,_0x4527c9,_0x440aed)=>_0x4527c9 in _0x15d16d?Ge(_0x15d16d,_0x4527c9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x440aed}):_0x15d16d[_0x4527c9]=_0x440aed,Be=(_0xc1efcc,_0x1e7ca1,_0x3c23ac,_0x111ade)=>{var _0xfde630=_0x20f48d;for(var _0x5d8198=_0x111ade>0x1?void 0x0:_0x111ade?We(_0x1e7ca1,_0x3c23ac):_0x1e7ca1,_0x123851=_0xc1efcc[_0xfde630(0xdb)]-0x1,_0x5d8846;_0x123851>=0x0;_0x123851--)(_0x5d8846=_0xc1efcc[_0x123851])&&(_0x5d8198=_0x5d8846(_0x5d8198)||_0x5d8198);return _0x5d8198;},F=(_0x57a572,_0x3620b5)=>(_0x8a1bcb,_0x172e19)=>_0x3620b5(_0x8a1bcb,_0x172e19,_0x57a572),J=(_0x3d5ec4,_0x5c8a5f,_0x21eca2)=>Ye(_0x3d5ec4,typeof _0x5c8a5f!=_0x20f48d(0xf1)?_0x5c8a5f+'':_0x5c8a5f,_0x21eca2);const Ze=_0x20f48d(0x11d);let O=class extends _0x5c6f5f{constructor(_0x351256=T,_0x490d32,_0x8e6d18){var _0x56ffb4=_0x20f48d;super(),this['_config']=_0x351256,this[_0x56ffb4(0xc6)]=_0x490d32,this['_configService']=_0x8e6d18;const {..._0x14b40d}=_0x1b809b({},T,this[_0x56ffb4(0x164)]);this[_0x56ffb4(0x127)]['setConfig'](Oe,_0x14b40d);}[_0x20f48d(0x115)](){var _0x45a5aa=_0x20f48d;_0x1d9d68(this['_injector'],_0x1c6ef3([[L],[I],[m],[b]],this[_0x45a5aa(0x164)]['override'])),_0x4e8b78(this[_0x45a5aa(0xc6)],[[m]]);}[_0x20f48d(0xce)](){var _0xfd7ab0=_0x20f48d;_0x4e8b78(this[_0xfd7ab0(0xc6)],[[b]]);}};J(O,'type',_0x1df0c8[_0x20f48d(0x108)]),J(O,_0x20f48d(0x118),Ze),O=Be([_0x1a4ce7(_0x2d4e6e),F(0x1,_0x5e6b53(_0x25d4db)),F(0x2,_0x27f4d)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x451375=_0xa190;(function(_0x1e9cbb,_0x5bffbc){var _0x185ef2=_0xa190,_0x37c213=_0x1e9cbb();while(!![]){try{var _0x57a358=parseInt(_0x185ef2(0xa1))/0x1+parseInt(_0x185ef2(0xe7))/0x2+-parseInt(_0x185ef2(0xe6))/0x3*(-parseInt(_0x185ef2(0xc3))/0x4)+parseInt(_0x185ef2(0xf6))/0x5+parseInt(_0x185ef2(0xc8))/0x6*(parseInt(_0x185ef2(0xdb))/0x7)+-parseInt(_0x185ef2(0x126))/0x8+-parseInt(_0x185ef2(0x96))/0x9*(parseInt(_0x185ef2(0xd4))/0xa);if(_0x57a358===_0x5bffbc)break;else _0x37c213['push'](_0x37c213['shift']());}catch(_0x4db724){_0x37c213['push'](_0x37c213['shift']());}}}(_0x5bdd,0x19817));var q=Object['defineProperty'],z=(_0x575a9e,_0x54851e,_0x3ab20b)=>_0x54851e in _0x575a9e?q(_0x575a9e,_0x54851e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ab20b}):_0x575a9e[_0x54851e]=_0x3ab20b,d=(_0x2fbd89,_0x2ff064,_0x327381)=>z(_0x2fbd89,typeof _0x2ff064!=_0x451375(0xd5)?_0x2ff064+'':_0x2ff064,_0x327381);import{CollaborationSessionService as _0x28a12b,SessionStatus as _0xd06163,UniverCollaborationClientPlugin as _0x1dd0cd}from'@univerjs-pro/collaboration-client';import{Disposable as _0x2313b0,toDisposable as _0x43b1a9,Inject as _0x28c77f,IUniverInstanceService as _0x3e5199,Injector as _0x335107,IConfigService as _0x346109,ICommandService as _0x4a09d4,RxDisposable as _0x36a016,UniverInstanceType as _0x4c20a0,DisposableCollection as _0x1b939f,CommandType as _0x1862c6,DependentOn as _0x32035a,Plugin as _0x1c27e2,merge as _0x3c06a8,registerDependencies as _0x4552ae,mergeOverrideWithDependencies as _0x32a788,touchDependencies as _0x21a21b}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x21f0ce,InsertSheetMutation as _0x198dc6}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x274716,SetScrollOperation as _0x186685}from'@univerjs/sheets-ui';import{useDependency as _0x2de017,useObservable as _0x25276a,IUIPartsService as _0xb65b9,BuiltInUIPart as _0x51a6c7,connectInjector as _0x2c0420}from'@univerjs/ui';import{jsx as _0x5aa147,jsxs as _0x2b969d,Fragment as _0x5b6ea3}from'react/jsx-runtime';function _0x5bdd(){var _0x59216a=['icon','48gDjMyl','358320JQoUiu','disposeWithMe','includes','trim','1em','operations','onCommandExecuted','_collabSession','FOLLOWING','substring','UNIVER_SHEET','_entities','_handleOffline','asObservable','button','82435yfXSnr','none','unsubscribe','_handleTerminate','_reporters','following','parse','tryStartPresenting','indexOf','getMemberID','values','getConfig','_liveShareService','You\x27re\x20following\x20the\x20presenter','extend','next','data','_configService','set','_handleOnline','registerComponent','onRendered','random','idSuffix','requireSession','_collabSessionService','defIds','univer-size-4','LiveShareIcon','_stopFollowing','setConfig','getOwnPropertySymbols','_fetchOperations','dispose','current','UNIVER_UNKNOWN','hasOwnProperty','call','prototype','getOwnPropertyDescriptor','LIVESHARE_OPERATION','_stopPresenting','presenter','url(#$1','stringify','currentColor','You\x27re\x20presenting\x20the\x20document','mutations','580968svnHWO','find','You\x27are\x20offline.','Stop\x20following','getCurrentTypeOfUnit$','string','propertyIsEnumerable','UniverIcon','executeCommand','_handleOperation','tag','_handleNewHost','You\x27re\x20not\x20following\x20the\x20presenter','xlink:href','status$','pipe','add','colorChannel1','length','LIVESHARE_TERMINATE','className','NEW_CHANGESETS','stopFollowing','_startFollowing','shouldShareOperation','registerSharedOperation','function','evenodd','9dTaiwk','_mountLiveShare','text','override','get','_config','not-following','end','getInitialStates','attrs','map','179962dUejhy','complete','Present\x20this\x20document','assign','apply','default','OPERATION','delete','fill','_univerInstanceService','getUnitId','type','_uiPartsService','defineProperty','LIVESHARE_FETCH_OPERATIONS','IDLE','_commandDisposable','forEach','defs','_presenter','_status$','onStarting','_commandService','dispose$','OFFLINE','_startLiveShareCoordinator','_handleNewChangeSets','offline','live-share.config','_unitID','0\x200\x2017\x2017','idle','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','LIVESHARE_REQUEST_HOST','27436WdZUYh','startFollowing','mask','_injector','children','1128tfXBPc','_beIdle','init','params','getLiveShareCoordinator','createInstance','registerInitialStateReporter','entries','then','subscribe','_startPresenting','has','3507490XDIwTF','symbol','univer-mb-3\x20univer-w-full\x20univer-text-sm','div','displayName','clear','HEADER_MENU','1582biOOVN','getTypeOfUnitAdded$','stopPresenting','send','_init','NOT_FOLLOWING','_status','concat','sessionStatus$','replace'];_0x5bdd=function(){return _0x59216a;};return _0x5bdd();}import{Dropdown as _0x159863,clsx as _0x87598b,Button as _0x352964}from'@univerjs/design';import{forwardRef as _0x11caf0,useRef as _0x48017c,createElement as _0x3ad40e,useState as _0x55d604,useEffect as _0x44053b}from'react';import{CollaborationEvent as _0x248176,parseProtocolChangeset as _0x17584c}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2f2b8d,Subject as _0x1044e5}from'rxjs';import{takeUntil as _0x261e2b,throttleTime as _0x28b226}from'rxjs/operators';const Oe=_0x451375(0xbd),T={};class L extends _0x2313b0{constructor(){var _0x14a96d=_0x451375;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x14a96d(0xfa),new Set());}[_0x451375(0x93)](_0xe10ed1){var _0x416a36=_0x451375;return this['_sharedOperations'][_0x416a36(0x8a)](_0xe10ed1),_0x43b1a9(()=>this['_sharedOperations'][_0x416a36(0xa8)](_0xe10ed1));}[_0x451375(0xce)](_0x52fc81){var _0x9e9dd9=_0x451375;return this['_reporters'][_0x9e9dd9(0x8a)](_0x52fc81),_0x43b1a9(()=>this[_0x9e9dd9(0xfa)][_0x9e9dd9(0xa8)](_0x52fc81));}[_0x451375(0x92)](_0x2e83d3){return this['_sharedOperations']['has'](_0x2e83d3);}[_0x451375(0x9e)](_0x3e9bb6){var _0x44eb1a=_0x451375;return Array['from'](this[_0x44eb1a(0xfa)])[_0x44eb1a(0xa0)](_0x5925b2=>_0x5925b2(_0x3e9bb6));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x168b22,_0x5bace9,_0x2c0490,_0x2b85a1)=>{var _0x2bbb8f=_0x451375;for(var _0x2447c2=_0x2b85a1>0x1?void 0x0:_0x2b85a1?Ee(_0x5bace9,_0x2c0490):_0x5bace9,_0x29180e=_0x168b22[_0x2bbb8f(0x8c)]-0x1,_0x355b58;_0x29180e>=0x0;_0x29180e--)(_0x355b58=_0x168b22[_0x29180e])&&(_0x2447c2=_0x355b58(_0x2447c2)||_0x2447c2);return _0x2447c2;},Ne=(_0x4ab97c,_0x26ff09)=>(_0x21d977,_0x31a0da)=>_0x26ff09(_0x21d977,_0x31a0da,_0x4ab97c);let m=class extends _0x2313b0{constructor(_0x1d2686){var _0x220503=_0x451375;super(),this['_liveShareService']=_0x1d2686,this[_0x220503(0xdf)]();}[_0x451375(0xdf)](){var _0x4470bf=_0x451375;[_0x274716['id'],_0x186685['id'],_0x21f0ce['id']][_0x4470bf(0xb2)](_0x59a128=>{var _0x162c91=_0x4470bf;this[_0x162c91(0xe8)](this[_0x162c91(0x102)][_0x162c91(0x93)](_0x59a128));});}};m=we([Ne(0x0,_0x28c77f(L))],m);var c=function(){var _0x7b8dfc=_0x451375;return c=Object[_0x7b8dfc(0xa4)]||function(_0x5cf3c4){var _0x36c87f=_0x7b8dfc;for(var _0x386ab4,_0x2d2e19=0x1,_0x129e0a=arguments[_0x36c87f(0x8c)];_0x2d2e19<_0x129e0a;_0x2d2e19++){_0x386ab4=arguments[_0x2d2e19];for(var _0x40a2ad in _0x386ab4)Object[_0x36c87f(0x11c)]['hasOwnProperty']['call'](_0x386ab4,_0x40a2ad)&&(_0x5cf3c4[_0x40a2ad]=_0x386ab4[_0x40a2ad]);}return _0x5cf3c4;},c[_0x7b8dfc(0xa5)](this,arguments);},Ce=function(_0x58cf11,_0x33e72f){var _0xb697ad=_0x451375,_0x442487={};for(var _0x1601cf in _0x58cf11)Object[_0xb697ad(0x11c)][_0xb697ad(0x11a)][_0xb697ad(0x11b)](_0x58cf11,_0x1601cf)&&_0x33e72f['indexOf'](_0x1601cf)<0x0&&(_0x442487[_0x1601cf]=_0x58cf11[_0x1601cf]);if(_0x58cf11!=null&&typeof Object[_0xb697ad(0x115)]==_0xb697ad(0x94)){for(var _0x5cf0c1=0x0,_0x1601cf=Object[_0xb697ad(0x115)](_0x58cf11);_0x5cf0c1<_0x1601cf[_0xb697ad(0x8c)];_0x5cf0c1++)_0x33e72f[_0xb697ad(0xfe)](_0x1601cf[_0x5cf0c1])<0x0&&Object[_0xb697ad(0x11c)][_0xb697ad(0x80)][_0xb697ad(0x11b)](_0x58cf11,_0x1601cf[_0x5cf0c1])&&(_0x442487[_0x1601cf[_0x5cf0c1]]=_0x58cf11[_0x1601cf[_0x5cf0c1]]);}return _0x442487;},W=_0x11caf0(function(_0x2c5602,_0x472b23){var _0x508acd=_0x451375,_0x4b87ee=_0x2c5602[_0x508acd(0xe5)],_0x15f482=_0x2c5602['id'],_0x5db530=_0x2c5602[_0x508acd(0x8e)],_0x3c9d14=_0x2c5602[_0x508acd(0x104)],_0x21e4b6=Ce(_0x2c5602,[_0x508acd(0xe5),'id',_0x508acd(0x8e),_0x508acd(0x104)]),_0x29b9cd='univerjs-icon\x20univerjs-icon-'[_0x508acd(0xe2)](_0x15f482,'\x20')[_0x508acd(0xe2)](_0x5db530||'')[_0x508acd(0xea)](),_0x5adb1d=_0x48017c('_'['concat'](Le()));return Y(_0x4b87ee,''[_0x508acd(0xe2)](_0x15f482),{'defIds':_0x4b87ee[_0x508acd(0x110)],'idSuffix':_0x5adb1d[_0x508acd(0x118)]},c({'ref':_0x472b23,'className':_0x29b9cd},_0x21e4b6),_0x3c9d14);});function Y(_0x2e2f8b,_0x1e9555,_0x10736b,_0x58e852,_0x3ee648){var _0x4ce094=_0x451375;return _0x3ad40e(_0x2e2f8b[_0x4ce094(0x84)],c(c({'key':_0x1e9555},De(_0x2e2f8b,_0x10736b,_0x3ee648)),_0x58e852),(xe(_0x2e2f8b,_0x10736b)[_0x4ce094(0xc7)]||[])[_0x4ce094(0xa0)](function(_0x2bf3e5,_0x2ed0e0){var _0x5ebe57=_0x4ce094;return Y(_0x2bf3e5,''['concat'](_0x1e9555,'-')['concat'](_0x2e2f8b[_0x5ebe57(0x84)],'-')[_0x5ebe57(0xe2)](_0x2ed0e0),_0x10736b,void 0x0,_0x3ee648);}));}function De(_0x5caf90,_0x2ad276,_0x5748bc){var _0x271fc3=_0x451375,_0x31bff3=c({},_0x5caf90[_0x271fc3(0x9f)]);_0x5748bc!=null&&_0x5748bc['colorChannel1']&&_0x31bff3[_0x271fc3(0xa9)]===_0x271fc3(0x8b)&&(_0x31bff3['fill']=_0x5748bc[_0x271fc3(0x8b)]),_0x5caf90[_0x271fc3(0x84)]==='mask'&&_0x31bff3['id']&&(_0x31bff3['id']=_0x31bff3['id']+_0x2ad276[_0x271fc3(0x10d)]),Object['entries'](_0x31bff3)[_0x271fc3(0xb2)](function(_0x558cc0){var _0x39f431=_0x271fc3,_0x44a0d3=_0x558cc0[0x0],_0x186ed4=_0x558cc0[0x1];_0x44a0d3===_0x39f431(0xc5)&&typeof _0x186ed4==_0x39f431(0x12b)&&(_0x31bff3[_0x44a0d3]=_0x186ed4['replace'](/url\(#(.*)\)/,_0x39f431(0x121)[_0x39f431(0xe2)](_0x2ad276[_0x39f431(0x10d)],')')));});var _0x4ee8a5=_0x2ad276['defIds'];return!_0x4ee8a5||_0x4ee8a5[_0x271fc3(0x8c)]===0x0||(_0x5caf90[_0x271fc3(0x84)]==='use'&&_0x31bff3[_0x271fc3(0x87)]&&(_0x31bff3[_0x271fc3(0x87)]=_0x31bff3[_0x271fc3(0x87)]+_0x2ad276['idSuffix']),Object[_0x271fc3(0xcf)](_0x31bff3)[_0x271fc3(0xb2)](function(_0x16df4b){var _0x162431=_0x271fc3,_0x558a26=_0x16df4b[0x0],_0x2a2fad=_0x16df4b[0x1];typeof _0x2a2fad==_0x162431(0x12b)&&(_0x31bff3[_0x558a26]=_0x2a2fad[_0x162431(0xe4)](/url\(#(.*)\)/,_0x162431(0x121)[_0x162431(0xe2)](_0x2ad276[_0x162431(0x10d)],')')));})),_0x31bff3;}function xe(_0x3bdc0c,_0x2e8ed3){var _0x3da090=_0x451375,_0x33577a,_0x5a2010=_0x2e8ed3['defIds'];return!_0x5a2010||_0x5a2010[_0x3da090(0x8c)]===0x0?_0x3bdc0c:_0x3bdc0c[_0x3da090(0x84)]===_0x3da090(0xb3)&&(!((_0x33577a=_0x3bdc0c[_0x3da090(0xc7)])===null||_0x33577a===void 0x0)&&_0x33577a[_0x3da090(0x8c)])?c(c({},_0x3bdc0c),{'children':_0x3bdc0c[_0x3da090(0xc7)][_0x3da090(0xa0)](function(_0x36d0bb){var _0x121666=_0x3da090;return typeof _0x36d0bb[_0x121666(0x9f)]['id']==_0x121666(0x12b)&&_0x5a2010&&_0x5a2010[_0x121666(0xe9)](_0x36d0bb[_0x121666(0x9f)]['id'])?c(c({},_0x36d0bb),{'attrs':c(c({},_0x36d0bb[_0x121666(0x9f)]),{'id':_0x36d0bb[_0x121666(0x9f)]['id']+_0x2e8ed3[_0x121666(0x10d)]})}):_0x36d0bb;})}):_0x3bdc0c;}function Le(){var _0x29df3c=_0x451375;return Math[_0x29df3c(0x10c)]()['toString'](0x24)[_0x29df3c(0xf0)](0x2,0x8);}W[_0x451375(0xd8)]=_0x451375(0x81);var ye={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x451375(0xf7),'viewBox':_0x451375(0xbf),'width':_0x451375(0xeb),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x451375(0x123),'d':_0x451375(0xc1)}},{'tag':'path','attrs':{'fill':_0x451375(0x123),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x451375(0x95),'clipRule':'evenodd'}}]},B=_0x11caf0(function(_0x43688f,_0x2612ca){return _0x3ad40e(W,Object['assign']({},_0x43688f,{'id':'live-share-icon','ref':_0x2612ca,'icon':ye}));});B[_0x451375(0xd8)]=_0x451375(0x112);var Re=Object[_0x451375(0x11d)],Z=(_0x1e8e3c,_0xac14ff,_0x1d3dfc,_0x5c5eb1)=>{var _0x3b9b1f=_0x451375;for(var _0x199c7c=_0x5c5eb1>0x1?void 0x0:_0x5c5eb1?Re(_0xac14ff,_0x1d3dfc):_0xac14ff,_0x253127=_0x1e8e3c[_0x3b9b1f(0x8c)]-0x1,_0x17b5c3;_0x253127>=0x0;_0x253127--)(_0x17b5c3=_0x1e8e3c[_0x253127])&&(_0x199c7c=_0x17b5c3(_0x199c7c)||_0x199c7c);return _0x199c7c;},f=(_0x52abe5,_0x2362e9)=>(_0x6aec4c,_0xacdf00)=>_0x2362e9(_0x6aec4c,_0xacdf00,_0x52abe5);let I=class extends _0x36a016{constructor(_0x8a0738,_0x21bf37,_0x3c9e24){var _0x533e04=_0x451375;super(),d(this,_0x533e04(0xf2),new Map()),(this[_0x533e04(0xaa)]=_0x8a0738,this[_0x533e04(0xc6)]=_0x21bf37,this[_0x533e04(0x10f)]=_0x3c9e24,this['_init']());}async[_0x451375(0xcc)](_0x1a088b){var _0x58ca37=_0x451375;return this['_entities'][_0x58ca37(0xd3)](_0x1a088b)||await this[_0x58ca37(0xba)](_0x1a088b),this[_0x58ca37(0xf2)][_0x58ca37(0x9a)](_0x1a088b);}[_0x451375(0xdf)](){var _0x5b9904=_0x451375;this[_0x5b9904(0xaa)][_0x5b9904(0xdc)](_0x4c20a0[_0x5b9904(0xf1)])['pipe'](_0x261e2b(this[_0x5b9904(0xb8)]))[_0x5b9904(0xd1)](async _0xa98328=>{var _0x327ed3=_0x5b9904;const _0x35cc97=_0xa98328['getUnitId']();this[_0x327ed3(0xf2)][_0x327ed3(0xd3)](_0x35cc97)||this[_0x327ed3(0xba)](_0x35cc97);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4c20a0['UNIVER_SHEET'])[_0x5b9904(0x89)](_0x261e2b(this[_0x5b9904(0xb8)]))[_0x5b9904(0xd1)](_0x1f1528=>{var _0x232484=_0x5b9904;const _0x195bed=_0x1f1528['getUnitId'](),_0x1e1910=this['_entities']['get'](_0x195bed);_0x1e1910==null||_0x1e1910[_0x232484(0x117)]();});}async[_0x451375(0xba)](_0x1e1d04){var _0x5d11b2=_0x451375;const _0x3e8206=await this[_0x5d11b2(0x10f)][_0x5d11b2(0x10e)](_0x1e1d04),_0x1f2fcc=this[_0x5d11b2(0xc6)][_0x5d11b2(0xcd)](C,_0x1e1d04,_0x3e8206);return _0x1f2fcc[_0x5d11b2(0xca)](),this[_0x5d11b2(0xf2)][_0x5d11b2(0x108)](_0x1e1d04,_0x1f2fcc),_0x1f2fcc;}};I=Z([f(0x0,_0x3e5199),f(0x1,_0x28c77f(_0x335107)),f(0x2,_0x28c77f(_0x28a12b))],I);var h=(_0x118872=>(_0x118872[_0x451375(0xb9)]=_0x451375(0xbc),_0x118872[_0x451375(0xb0)]=_0x451375(0xc0),_0x118872['FOLLOWING']=_0x451375(0xfb),_0x118872[_0x451375(0xe0)]='not-following',_0x118872['PRESENTING']='presenting',_0x118872))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x36a016{constructor(_0x563bc5,_0x3bc5db,_0x11d0b5,_0x57d2f0,_0x97ec45){var _0xd76d38=_0x451375;super(),d(this,_0xd76d38(0xb5),new _0x2f2b8d('idle')),d(this,_0xd76d38(0x88),this['_status$'][_0xd76d38(0xf4)]()),d(this,_0xd76d38(0xdf),!0x1),d(this,'_commandDisposable',null),d(this,_0xd76d38(0xb4),null),(this['_unitID']=_0x563bc5,this[_0xd76d38(0xee)]=_0x3bc5db,this[_0xd76d38(0x107)]=_0x11d0b5,this[_0xd76d38(0x102)]=_0x57d2f0,this[_0xd76d38(0xb7)]=_0x97ec45);}get[_0x451375(0xe1)](){var _0x6cc70=_0x451375;return this[_0x6cc70(0xb5)]['getValue']();}[_0x451375(0x117)](){var _0x3bf5fc=_0x451375,_0x31a480;(_0x31a480=this[_0x3bf5fc(0xb1)])==null||_0x31a480['dispose'](),this[_0x3bf5fc(0xb5)][_0x3bf5fc(0x105)](_0x3bf5fc(0xc0)),this[_0x3bf5fc(0xb5)][_0x3bf5fc(0xa2)]();}['init'](){var _0x5e7bdb=_0x451375;this[_0x5e7bdb(0xdf)]||(this['_init']=!0x0,this[_0x5e7bdb(0xee)][_0x5e7bdb(0xe3)][_0x5e7bdb(0x89)](_0x261e2b(this[_0x5e7bdb(0xb8)]))[_0x5e7bdb(0xd1)](_0x44288a=>{var _0x504e32=_0x5e7bdb;switch(_0x44288a){case _0xd06163['OFFLINE']:this[_0x504e32(0xf3)]();break;case _0xd06163['ONLINE']:this[_0x504e32(0x109)]();break;}}),this['_collabSession']['event$']['pipe'](_0x261e2b(this[_0x5e7bdb(0xb8)]))['subscribe'](_0xb03598=>{var _0x344a64=_0x5e7bdb;const {eventID:_0x38f07f}=_0xb03598;switch(_0x38f07f){case _0x248176['LIVESHARE_NEW_HOST']:this[_0x344a64(0x85)](_0xb03598);break;case _0x248176[_0x344a64(0x11e)]:this[_0x344a64(0x83)](_0xb03598);break;case _0x248176[_0x344a64(0x8d)]:this['_handleTerminate']();break;case _0x248176[_0x344a64(0x8f)]:this[_0x344a64(0xbb)](_0xb03598);break;}}));}[_0x451375(0xfd)](){var _0x21abc4=_0x451375;this['_collabSession'][_0x21abc4(0xde)]({'eventID':_0x248176[_0x21abc4(0xc2)],'data':{'unitID':this[_0x21abc4(0xbe)],'userID':this['_collabSession'][_0x21abc4(0xff)]()}},this[_0x21abc4(0xbe)]);}[_0x451375(0xdd)](){var _0x7b7a4a=_0x451375;this[_0x7b7a4a(0xe1)]==='presenting'&&(this[_0x7b7a4a(0xb5)]['next']('idle'),this['_collabSession'][_0x7b7a4a(0xde)]({'eventID':_0x248176[_0x7b7a4a(0x8d)],'data':{'unitID':this[_0x7b7a4a(0xbe)]}},this['_unitID']));}[_0x451375(0xc4)](){var _0x4d6a3d=_0x451375;this[_0x4d6a3d(0xe1)]==='not-following'&&(this['_status$'][_0x4d6a3d(0x105)](_0x4d6a3d(0xfb)),this[_0x4d6a3d(0x91)]());}['stopFollowing'](){var _0x2baaae=_0x451375;this[_0x2baaae(0xe1)]===_0x2baaae(0xfb)&&this[_0x2baaae(0x113)]();}[_0x451375(0x85)](_0x12787f){var _0x319170=_0x451375;const {presenter:_0x44b10a}=_0x12787f['data'],_0xb153c3=this['_collabSession']['getMemberID']();this[_0x319170(0xb4)]=_0x44b10a,_0x44b10a===_0xb153c3?(this[_0x319170(0x113)](),this[_0x319170(0xd2)]()):this[_0x319170(0xe1)]!==_0x319170(0x9c)&&(this[_0x319170(0x11f)](),this['_startFollowing']());}[_0x451375(0x116)](){var _0x451ef0=_0x451375;const _0x4bef16={'eventID':_0x248176[_0x451ef0(0xaf)]};this[_0x451ef0(0xee)][_0x451ef0(0xde)](_0x4bef16,this[_0x451ef0(0xbe)]);}[_0x451375(0xf9)](){var _0x1dff1c=_0x451375;this[_0x1dff1c(0xb4)]=null,this['_status']!=='presenting'&&this[_0x1dff1c(0xc9)]();}[_0x451375(0xbb)](_0x343e27){var _0x4acffb=_0x451375;if(this[_0x4acffb(0xe1)]===_0x4acffb(0xfb)&&this[_0x4acffb(0xb4)]===_0x343e27[_0x4acffb(0x106)]['memberID']){const _0x2bf607=_0x17584c(_0x343e27[_0x4acffb(0x106)])[_0x4acffb(0x125)]['reverse']()[_0x4acffb(0x127)](_0x6e8be5=>_0x6e8be5['id']===_0x198dc6['id']);if(_0x2bf607){const _0x4b17c6=_0x2bf607[_0x4acffb(0xcb)]['unitId'],_0x471c42=_0x2bf607[_0x4acffb(0xcb)]['sheet']['id'];setTimeout(()=>{var _0x16814a=_0x4acffb;this[_0x16814a(0xb7)][_0x16814a(0x82)](_0x21f0ce['id'],{'unitId':_0x4b17c6,'subUnitId':_0x471c42},{'fromCollab':!0x0});});}}}[_0x451375(0xd2)](){var _0xad2cf4=_0x451375;this[_0xad2cf4(0xb5)][_0xad2cf4(0x105)]('presenting');const _0x1b7070=new Map(),_0x1b5804=this[_0xad2cf4(0xb1)]=new _0x1b939f();_0x1b5804[_0xad2cf4(0x8a)](_0x43b1a9(()=>{var _0x494faa=_0xad2cf4;_0x1b7070[_0x494faa(0xb2)](_0x708097=>_0x708097[_0x494faa(0xa2)]()),_0x1b7070[_0x494faa(0xd9)]();})),_0x1b5804[_0xad2cf4(0x8a)](this[_0xad2cf4(0xb7)][_0xad2cf4(0xed)](_0x427efd=>{var _0xabf870=_0xad2cf4,_0x44fb57;if(_0x427efd[_0xabf870(0xac)]!==_0x1862c6[_0xabf870(0xa7)]||!this[_0xabf870(0x102)][_0xabf870(0x92)](_0x427efd['id']))return;const {id:_0x2323f7}=_0x427efd;let _0x5161d5;_0x1b7070[_0xabf870(0xd3)](_0x2323f7)?_0x5161d5=_0x1b7070['get'](_0x2323f7):(_0x5161d5=new _0x1044e5(),_0x1b7070[_0xabf870(0x108)](_0x2323f7,_0x5161d5),_0x5161d5['pipe'](_0x28b226((_0x44fb57=this[_0xabf870(0x107)][_0xabf870(0x101)](Pe))!=null?_0x44fb57:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xabf870(0xd1)](_0x4e1fc3=>{var _0x5127d9=_0xabf870;this[_0x5127d9(0xee)]['send']({'eventID':_0x248176[_0x5127d9(0x11e)],'data':{'unitID':this[_0x5127d9(0xbe)],'operations':{[_0x4e1fc3['id']]:{'id':_0x4e1fc3['id'],'params':JSON[_0x5127d9(0x122)](_0x4e1fc3[_0x5127d9(0xcb)])}}}},this['_unitID']);})),_0x5161d5[_0xabf870(0x105)](_0x427efd);})),this[_0xad2cf4(0x102)][_0xad2cf4(0x9e)](this[_0xad2cf4(0xbe)])[_0xad2cf4(0xb2)](_0x5af010=>this[_0xad2cf4(0xee)][_0xad2cf4(0xde)]({'eventID':_0x248176[_0xad2cf4(0x11e)],'data':{'unitID':this[_0xad2cf4(0xbe)],'operations':{[_0x5af010['id']]:{'id':_0x5af010['id'],'params':JSON[_0xad2cf4(0x122)](_0x5af010[_0xad2cf4(0xcb)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x2badc6=_0x451375,_0x1ceb0d;this[_0x2badc6(0xb5)][_0x2badc6(0x105)]('idle'),(_0x1ceb0d=this['_commandDisposable'])==null||_0x1ceb0d[_0x2badc6(0x117)](),this[_0x2badc6(0xb1)]=null;}[_0x451375(0x91)](){var _0xbc2e7=_0x451375,_0x3f009f;(_0x3f009f=this['_commandDisposable'])==null||_0x3f009f[_0xbc2e7(0x117)](),this[_0xbc2e7(0xb5)][_0xbc2e7(0x105)]('following');}[_0x451375(0xc9)](){var _0x7b2231=_0x451375,_0x9b4ecd;this[_0x7b2231(0xb5)]['next'](_0x7b2231(0xc0)),(_0x9b4ecd=this[_0x7b2231(0xb1)])==null||_0x9b4ecd[_0x7b2231(0x117)](),this['_commandDisposable']=null;}[_0x451375(0x113)](){var _0x4c770e=_0x451375,_0x113d7b;this['_status$'][_0x4c770e(0x105)]('not-following'),(_0x113d7b=this[_0x4c770e(0xb1)])==null||_0x113d7b['dispose']();}['_handleOperation'](_0x1a5ccc){var _0x527dfe=_0x451375;if(['presenting',_0x527dfe(0x9c),_0x527dfe(0xbc)][_0x527dfe(0xe9)](this['_status'])||!_0x1a5ccc['data'][_0x527dfe(0x120)]||_0x1a5ccc[_0x527dfe(0x106)][_0x527dfe(0x120)]===this[_0x527dfe(0xee)][_0x527dfe(0xff)]())return;this['_status']==='idle'&&this['_startFollowing']();const _0xb0e559=_0x1a5ccc[_0x527dfe(0x106)][_0x527dfe(0xec)];Object[_0x527dfe(0x100)](_0xb0e559)['forEach'](_0x49c313=>{var _0x544a45=_0x527dfe;this[_0x544a45(0xb7)][_0x544a45(0x82)](_0x49c313['id'],_0x49c313['params']?JSON[_0x544a45(0xfc)](_0x49c313[_0x544a45(0xcb)]):null,{'fromCollab':!0x0});});}[_0x451375(0xf3)](){var _0x4db867=_0x451375,_0x45686d;this[_0x4db867(0xb5)][_0x4db867(0x105)](_0x4db867(0xbc)),(_0x45686d=this['_commandDisposable'])==null||_0x45686d[_0x4db867(0x117)]();}[_0x451375(0x109)](){var _0x392a0a=_0x451375;this[_0x392a0a(0xb5)][_0x392a0a(0x105)](_0x392a0a(0xc0)),this[_0x392a0a(0x116)]();}};C=Z([f(0x2,_0x346109),f(0x3,_0x28c77f(L)),f(0x4,_0x4a09d4)],C);function Te(){var _0x2327f3=_0x451375;const _0x48ff66=_0x2de017(I),_0x441d35=_0x2de017(_0x3e5199),_0x47257a=_0x25276a(()=>_0x441d35[_0x2327f3(0x12a)](_0x4c20a0[_0x2327f3(0xf1)]),void 0x0,!0x1,[]),[_0x2e6505,_0xae1bc]=_0x55d604(null),[_0x1ac521,_0x33ceca]=_0x55d604(h[_0x2327f3(0xb0)]),_0x45a0db=_0x48017c(null);return _0x44053b(()=>(_0x47257a&&_0x48ff66[_0x2327f3(0xcc)](_0x47257a[_0x2327f3(0xab)]())[_0x2327f3(0xd0)](_0x3c6371=>{var _0x26f634=_0x2327f3;_0xae1bc(_0x3c6371),_0x45a0db['current']=_0x3c6371[_0x26f634(0x88)][_0x26f634(0xd1)](_0x5bd015=>{_0x33ceca(_0x5bd015);});}),()=>{var _0x6dbefd=_0x2327f3,_0x8a6c67;(_0x8a6c67=_0x45a0db[_0x6dbefd(0x118)])==null||_0x8a6c67[_0x6dbefd(0xf8)](),_0x45a0db['current']=null;}),[_0x47257a,_0x48ff66]),_0x2e6505?_0x5aa147(_0x159863,{'align':_0x2327f3(0x9d),'disabled':_0x1ac521===h[_0x2327f3(0xb9)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x5aa147($e,{'status':_0x1ac521,'coordinator':_0x2e6505}),'children':_0x5aa147(_0x2327f3(0xf5),{'className':_0x87598b('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x1ac521===h[_0x2327f3(0xb9)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1ac521!==h[_0x2327f3(0xb9)]}),'type':_0x2327f3(0xf5),'children':_0x5aa147(B,{'className':_0x2327f3(0x111)})})}):null;}function $e(_0x4731bd){var _0x185e7e=_0x451375;const {status:_0x2e0820,coordinator:_0x437528}=_0x4731bd;switch(_0x2e0820){case h['IDLE']:return _0x5aa147(Fe,{'coordinator':_0x437528});case h[_0x185e7e(0xef)]:return _0x5aa147(He,{'coordinator':_0x437528});case h['NOT_FOLLOWING']:return _0x5aa147(je,{'coordinator':_0x437528});case h[_0x185e7e(0xb9)]:return _0x5aa147(Ve,{});case h['PRESENTING']:return _0x5aa147(Ue,{'coordinator':_0x437528});default:return null;}}function Fe(_0x81a50f){var _0x238dd8=_0x451375;const {coordinator:_0x366f8d}=_0x81a50f;return _0x2b969d(_0x5b6ea3,{'children':[_0x5aa147(_0x238dd8(0xd7),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x238dd8(0xa3)}),_0x5aa147(_0x352964,{'onClick':()=>_0x366f8d[_0x238dd8(0xfd)](),'children':'Start'})]});}function He(_0x58ecba){var _0x374d5e=_0x451375;const {coordinator:_0x4d3ed5}=_0x58ecba;return _0x2b969d(_0x5b6ea3,{'children':[_0x5aa147(_0x374d5e(0xd7),{'className':_0x374d5e(0xd6),'children':_0x374d5e(0x103)}),_0x5aa147(_0x352964,{'onClick':()=>_0x4d3ed5[_0x374d5e(0x90)](),'children':_0x374d5e(0x129)})]});}function je(_0x510960){var _0x465aa5=_0x451375;const {coordinator:_0x248453}=_0x510960;return _0x2b969d(_0x5b6ea3,{'children':[_0x5aa147(_0x465aa5(0xd7),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x465aa5(0x86)}),_0x5aa147(_0x352964,{'variant':_0x465aa5(0x98),'onClick':()=>_0x248453['startFollowing'](),'children':'Start\x20following'})]});}function Ue(_0x23dc1b){var _0x6f889c=_0x451375;const {coordinator:_0x5f4f84}=_0x23dc1b;return _0x2b969d(_0x5b6ea3,{'children':[_0x5aa147(_0x6f889c(0xd7),{'className':_0x6f889c(0xd6),'children':_0x6f889c(0x124)}),_0x5aa147(_0x352964,{'variant':_0x6f889c(0xa6),'onClick':()=>_0x5f4f84[_0x6f889c(0xdd)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x2fda1d=_0x451375;return _0x5aa147(_0x5b6ea3,{'children':_0x2fda1d(0x128)});}var Me=Object[_0x451375(0x11d)],ke=(_0x570146,_0x5e55bd,_0x339ca5,_0x3f5675)=>{for(var _0x4bf585=_0x3f5675>0x1?void 0x0:_0x3f5675?Me(_0x5e55bd,_0x339ca5):_0x5e55bd,_0x4ec0c8=_0x570146['length']-0x1,_0x3939e1;_0x4ec0c8>=0x0;_0x4ec0c8--)(_0x3939e1=_0x570146[_0x4ec0c8])&&(_0x4bf585=_0x3939e1(_0x4bf585)||_0x4bf585);return _0x4bf585;},$=(_0xcc8bba,_0x406f94)=>(_0x250d55,_0x24e081)=>_0x406f94(_0x250d55,_0x24e081,_0xcc8bba);let b=class extends _0x2313b0{constructor(_0x16662e,_0x435ddb){var _0x410118=_0x451375;super(),this[_0x410118(0xc6)]=_0x16662e,this[_0x410118(0xad)]=_0x435ddb,this[_0x410118(0x97)]();}[_0x451375(0x97)](){var _0x6b6d42=_0x451375;this[_0x6b6d42(0xe8)](this[_0x6b6d42(0xad)][_0x6b6d42(0x10a)](_0x51a6c7[_0x6b6d42(0xda)],()=>_0x2c0420(Te,this[_0x6b6d42(0xc6)])));}};function _0xa190(_0x32c439,_0x2d498f){var _0x5bdd32=_0x5bdd();return _0xa190=function(_0xa19085,_0xc55785){_0xa19085=_0xa19085-0x80;var _0xeab724=_0x5bdd32[_0xa19085];return _0xeab724;},_0xa190(_0x32c439,_0x2d498f);}b=ke([$(0x0,_0x28c77f(_0x335107)),$(0x1,_0xb65b9)],b);var Ge=Object[_0x451375(0xae)],We=Object[_0x451375(0x11d)],Ye=(_0x18d7aa,_0x445b22,_0x5989cd)=>_0x445b22 in _0x18d7aa?Ge(_0x18d7aa,_0x445b22,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5989cd}):_0x18d7aa[_0x445b22]=_0x5989cd,Be=(_0x2c0ed6,_0x8470f6,_0x2a43bf,_0x3e765a)=>{var _0x5b0760=_0x451375;for(var _0x2388d3=_0x3e765a>0x1?void 0x0:_0x3e765a?We(_0x8470f6,_0x2a43bf):_0x8470f6,_0x360398=_0x2c0ed6[_0x5b0760(0x8c)]-0x1,_0x2697e3;_0x360398>=0x0;_0x360398--)(_0x2697e3=_0x2c0ed6[_0x360398])&&(_0x2388d3=_0x2697e3(_0x2388d3)||_0x2388d3);return _0x2388d3;},F=(_0x54775e,_0x28c224)=>(_0x37f304,_0x8fce35)=>_0x28c224(_0x37f304,_0x8fce35,_0x54775e),J=(_0x45a759,_0x51ab50,_0x7823dd)=>Ye(_0x45a759,typeof _0x51ab50!=_0x451375(0xd5)?_0x51ab50+'':_0x51ab50,_0x7823dd);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x1c27e2{constructor(_0x295921=T,_0x148e91,_0x672e2e){var _0x5054f2=_0x451375;super(),this[_0x5054f2(0x9b)]=_0x295921,this[_0x5054f2(0xc6)]=_0x148e91,this[_0x5054f2(0x107)]=_0x672e2e;const {..._0x1ea8db}=_0x3c06a8({},T,this[_0x5054f2(0x9b)]);this[_0x5054f2(0x107)][_0x5054f2(0x114)](Oe,_0x1ea8db);}[_0x451375(0xb6)](){var _0x3ffa5e=_0x451375;_0x4552ae(this[_0x3ffa5e(0xc6)],_0x32a788([[L],[I],[m],[b]],this['_config'][_0x3ffa5e(0x99)])),_0x21a21b(this['_injector'],[[m]]);}[_0x451375(0x10b)](){var _0x1b8371=_0x451375;_0x21a21b(this[_0x1b8371(0xc6)],[[b]]);}};J(O,_0x451375(0xac),_0x4c20a0[_0x451375(0x119)]),J(O,'pluginName',Ze),O=Be([_0x32035a(_0x1dd0cd),F(0x1,_0x28c77f(_0x335107)),F(0x2,_0x346109)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x20f48d=_0x39bb;(function(_0x2c2ed3,_0x4cc686){var _0x3fec1a=_0x39bb,_0x93ac42=_0x2c2ed3();while(!![]){try{var _0x368a15=-parseInt(_0x3fec1a(0x14e))/0x1*(parseInt(_0x3fec1a(0x153))/0x2)+-parseInt(_0x3fec1a(0xe4))/0x3*(parseInt(_0x3fec1a(0x131))/0x4)+-parseInt(_0x3fec1a(0xfa))/0x5+parseInt(_0x3fec1a(0x10f))/0x6*(parseInt(_0x3fec1a(0xda))/0x7)+-parseInt(_0x3fec1a(0x13f))/0x8*(parseInt(_0x3fec1a(0x15b))/0x9)+parseInt(_0x3fec1a(0xfc))/0xa+parseInt(_0x3fec1a(0x160))/0xb*(parseInt(_0x3fec1a(0x16a))/0xc);if(_0x368a15===_0x4cc686)break;else _0x93ac42['push'](_0x93ac42['shift']());}catch(_0x5bb1a1){_0x93ac42['push'](_0x93ac42['shift']());}}}(_0x1354,0x98d78));var q=Object[_0x20f48d(0x122)],z=(_0x5a6317,_0x42ce78,_0x14d706)=>_0x42ce78 in _0x5a6317?q(_0x5a6317,_0x42ce78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x14d706}):_0x5a6317[_0x42ce78]=_0x14d706,d=(_0x33db0b,_0x3fe3d6,_0x1a9268)=>z(_0x33db0b,typeof _0x3fe3d6!=_0x20f48d(0xf1)?_0x3fe3d6+'':_0x3fe3d6,_0x1a9268);import{CollaborationSessionService as _0xc5bf75,SessionStatus as _0x7c9eda,UniverCollaborationClientPlugin as _0x2d4e6e}from'@univerjs-pro/collaboration-client';import{Disposable as _0x1a511f,toDisposable as _0x3f3e9d,Inject as _0x5e6b53,IUniverInstanceService as _0x10d7b1,Injector as _0x25d4db,IConfigService as _0x27f4d,ICommandService as _0x4bf68b,RxDisposable as _0x4aa7c3,UniverInstanceType as _0x1df0c8,DisposableCollection as _0x48f9ff,CommandType as _0x39bd65,DependentOn as _0x1a4ce7,Plugin as _0x5c6f5f,merge as _0x1b809b,registerDependencies as _0x1d9d68,mergeOverrideWithDependencies as _0x1c6ef3,touchDependencies as _0x4e8b78}from'@univerjs/core';function _0x1354(){var _0x193eb8=['getOwnPropertySymbols','delete','add','LIVESHARE_REQUEST_HOST','3822qvuYSI','mask','Start\x20following','icon','Present\x20this\x20document','trim','onStarting','toString','presenter','pluginName','string','getMemberID','default','_startFollowing','UNIVER_LIVE_SHARE_PLUGIN','univer-mb-3\x20univer-w-full\x20univer-text-sm','You\x27are\x20offline.','currentColor','shouldShareOperation','defineProperty','OFFLINE','sessionStatus$','idle','mutations','_configService','getTypeOfUnitAdded$','sheet','pipe','function','set','disposeWithMe','requireSession','getCurrentTypeOfUnit$','_liveShareService','22508DkZXBX','event$','div','getTypeOfUnitDisposed$','_mountLiveShare','replace','HEADER_MENU','executeCommand','getConfig','colorChannel1','_entities','path','get','IDLE','3325032VliWIt','memberID','ONLINE','offline','reverse','_univerInstanceService','_startLiveShareCoordinator','getUnitId','entries','not-following','data','FOLLOWING','indexOf','startFollowing','forEach','1096319BgspSD','complete','_handleOperation','_commandDisposable','idSuffix','2XeScrb','1em','following','children','defs','extend','_handleTerminate','getInitialStates','27GdMIPB','tryStartPresenting','registerSharedOperation','substring','_sharedOperations','11NvWjpe','random','unsubscribe','_stopPresenting','_config','_status','_uiPartsService','then','You\x27re\x20not\x20following\x20the\x20presenter','text','42252636MBuIPn','_beIdle','LIVESHARE_OPERATION','presenting','_handleOffline','status$','stopPresenting','values','clear','displayName','_handleNewChangeSets','_fetchOperations','button','use','_collabSessionService','You\x27re\x20following\x20the\x20presenter','xlink:href','PRESENTING','0\x200\x2017\x2017','_injector','NEW_CHANGESETS','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','prototype','UNIVER_SHEET','univer-size-4','send','propertyIsEnumerable','onRendered','stopFollowing','apply','getLiveShareCoordinator','subscribe','map','init','call','Start','defIds','stringify','registerInitialStateReporter','9548uqyBEd','length','attrs','current','live-share.config','_reporters','unitId','_status$','_init','tag','597nRqtBa','includes','SAME_OPERATION_SHARE_INTERVAL','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','hasOwnProperty','LIVESHARE_NEW_HOST','has','_stopFollowing','onCommandExecuted','type','className','LIVESHARE_TERMINATE','symbol','_commandService','_unitID','fill','dispose','LiveShareIcon','evenodd','dispose$','assign','2851440mbZLZW','_collabSession','2693860fzOzxd','http://www.w3.org/2000/svg','_handleNewHost','params','concat','getOwnPropertyDescriptor','_startPresenting','_handleOnline','_presenter','end','url(#$1','createInstance','UNIVER_UNKNOWN','next','registerComponent'];_0x1354=function(){return _0x193eb8;};return _0x1354();}import{SetWorksheetActiveOperation as _0x30ebd3,InsertSheetMutation as _0x3e383d}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x2686c8,SetScrollOperation as _0x15ddba}from'@univerjs/sheets-ui';import{useDependency as _0x2713b0,useObservable as _0x1d60ce,IUIPartsService as _0xe05b9c,BuiltInUIPart as _0x22f3b6,connectInjector as _0x123b5d}from'@univerjs/ui';import{jsx as _0x591b4e,jsxs as _0xf95584,Fragment as _0xb7edf3}from'react/jsx-runtime';import{Dropdown as _0x3a1168,clsx as _0x25609c,Button as _0x3b8bcf}from'@univerjs/design';function _0x39bb(_0x58224d,_0x8a8988){var _0x13544a=_0x1354();return _0x39bb=function(_0x39bb79,_0x2af241){_0x39bb79=_0x39bb79-0xbf;var _0x19cce5=_0x13544a[_0x39bb79];return _0x19cce5;},_0x39bb(_0x58224d,_0x8a8988);}import{forwardRef as _0x11114f,useRef as _0x5991aa,createElement as _0x3f4386,useState as _0x5e8cb1,useEffect as _0x613455}from'react';import{CollaborationEvent as _0x18a2fa,parseProtocolChangeset as _0x585eb4}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0xd52750,Subject as _0x127c60}from'rxjs';import{takeUntil as _0xc6f40a,throttleTime as _0x34d54c}from'rxjs/operators';const Oe=_0x20f48d(0xde),T={};class L extends _0x1a511f{constructor(){var _0x16e71b=_0x20f48d;super(...arguments),d(this,_0x16e71b(0x15f),new Set()),d(this,_0x16e71b(0xdf),new Set());}['registerSharedOperation'](_0x5abf48){var _0x561a43=_0x20f48d;return this[_0x561a43(0x15f)][_0x561a43(0x10d)](_0x5abf48),_0x3f3e9d(()=>this[_0x561a43(0x15f)][_0x561a43(0x10c)](_0x5abf48));}[_0x20f48d(0xd9)](_0x248586){var _0x3b4578=_0x20f48d;return this[_0x3b4578(0xdf)][_0x3b4578(0x10d)](_0x248586),_0x3f3e9d(()=>this[_0x3b4578(0xdf)][_0x3b4578(0x10c)](_0x248586));}['shouldShareOperation'](_0x576407){var _0x4cd022=_0x20f48d;return this['_sharedOperations'][_0x4cd022(0xeb)](_0x576407);}[_0x20f48d(0x15a)](_0x3d2644){var _0x3a25f0=_0x20f48d;return Array['from'](this[_0x3a25f0(0xdf)])[_0x3a25f0(0xd3)](_0x59d816=>_0x59d816(_0x3d2644));}}var Ee=Object[_0x20f48d(0x101)],we=(_0x391951,_0x129d60,_0x417ef3,_0x3bbed2)=>{var _0xc20129=_0x20f48d;for(var _0x284266=_0x3bbed2>0x1?void 0x0:_0x3bbed2?Ee(_0x129d60,_0x417ef3):_0x129d60,_0x4a4069=_0x391951[_0xc20129(0xdb)]-0x1,_0x58d83b;_0x4a4069>=0x0;_0x4a4069--)(_0x58d83b=_0x391951[_0x4a4069])&&(_0x284266=_0x58d83b(_0x284266)||_0x284266);return _0x284266;},Ne=(_0x27cc41,_0x37a93a)=>(_0x51a5aa,_0x5f5dc8)=>_0x37a93a(_0x51a5aa,_0x5f5dc8,_0x27cc41);let m=class extends _0x1a511f{constructor(_0x5c72e2){var _0x3efb33=_0x20f48d;super(),this[_0x3efb33(0x130)]=_0x5c72e2,this[_0x3efb33(0xe2)]();}['_init'](){var _0x253745=_0x20f48d;[_0x2686c8['id'],_0x15ddba['id'],_0x30ebd3['id']][_0x253745(0x14d)](_0x34b4ee=>{var _0x13e36c=_0x253745;this[_0x13e36c(0x12d)](this[_0x13e36c(0x130)][_0x13e36c(0x15d)](_0x34b4ee));});}};m=we([Ne(0x0,_0x5e6b53(L))],m);var c=function(){var _0x32987f=_0x20f48d;return c=Object[_0x32987f(0xf9)]||function(_0x5ea257){var _0x1dda28=_0x32987f;for(var _0x4f84b5,_0x16f4a2=0x1,_0x465a70=arguments[_0x1dda28(0xdb)];_0x16f4a2<_0x465a70;_0x16f4a2++){_0x4f84b5=arguments[_0x16f4a2];for(var _0xb9a3ce in _0x4f84b5)Object[_0x1dda28(0xc9)][_0x1dda28(0xe9)][_0x1dda28(0xd5)](_0x4f84b5,_0xb9a3ce)&&(_0x5ea257[_0xb9a3ce]=_0x4f84b5[_0xb9a3ce]);}return _0x5ea257;},c[_0x32987f(0xd0)](this,arguments);},Ce=function(_0x10fc2d,_0x532d5a){var _0x312b0e=_0x20f48d,_0x126207={};for(var _0x2da836 in _0x10fc2d)Object[_0x312b0e(0xc9)][_0x312b0e(0xe9)][_0x312b0e(0xd5)](_0x10fc2d,_0x2da836)&&_0x532d5a[_0x312b0e(0x14b)](_0x2da836)<0x0&&(_0x126207[_0x2da836]=_0x10fc2d[_0x2da836]);if(_0x10fc2d!=null&&typeof Object[_0x312b0e(0x10b)]==_0x312b0e(0x12b)){for(var _0x17929f=0x0,_0x2da836=Object['getOwnPropertySymbols'](_0x10fc2d);_0x17929f<_0x2da836[_0x312b0e(0xdb)];_0x17929f++)_0x532d5a[_0x312b0e(0x14b)](_0x2da836[_0x17929f])<0x0&&Object['prototype'][_0x312b0e(0xcd)][_0x312b0e(0xd5)](_0x10fc2d,_0x2da836[_0x17929f])&&(_0x126207[_0x2da836[_0x17929f]]=_0x10fc2d[_0x2da836[_0x17929f]]);}return _0x126207;},W=_0x11114f(function(_0x48085e,_0x138cf8){var _0x4cb002=_0x20f48d,_0xff3a=_0x48085e['icon'],_0x58397f=_0x48085e['id'],_0x2d9278=_0x48085e[_0x4cb002(0xef)],_0x4783b6=_0x48085e[_0x4cb002(0x158)],_0x61ae00=Ce(_0x48085e,[_0x4cb002(0x112),'id','className',_0x4cb002(0x158)]),_0x586eda='univerjs-icon\x20univerjs-icon-'[_0x4cb002(0x100)](_0x58397f,'\x20')[_0x4cb002(0x100)](_0x2d9278||'')[_0x4cb002(0x114)](),_0xaf7d55=_0x5991aa('_'['concat'](Le()));return Y(_0xff3a,''['concat'](_0x58397f),{'defIds':_0xff3a[_0x4cb002(0xd7)],'idSuffix':_0xaf7d55['current']},c({'ref':_0x138cf8,'className':_0x586eda},_0x61ae00),_0x4783b6);});function Y(_0x1aa5ea,_0x499209,_0x5dec01,_0x1f6278,_0x4e4d66){var _0x1626d8=_0x20f48d;return _0x3f4386(_0x1aa5ea['tag'],c(c({'key':_0x499209},De(_0x1aa5ea,_0x5dec01,_0x4e4d66)),_0x1f6278),(xe(_0x1aa5ea,_0x5dec01)[_0x1626d8(0x156)]||[])[_0x1626d8(0xd3)](function(_0x560e67,_0x1a6182){var _0x498a95=_0x1626d8;return Y(_0x560e67,''[_0x498a95(0x100)](_0x499209,'-')['concat'](_0x1aa5ea[_0x498a95(0xe3)],'-')[_0x498a95(0x100)](_0x1a6182),_0x5dec01,void 0x0,_0x4e4d66);}));}function De(_0x3ebdf1,_0x3cc285,_0xade262){var _0x583d8d=_0x20f48d,_0x5c752b=c({},_0x3ebdf1[_0x583d8d(0xdc)]);_0xade262!=null&&_0xade262[_0x583d8d(0x13a)]&&_0x5c752b[_0x583d8d(0xf4)]===_0x583d8d(0x13a)&&(_0x5c752b[_0x583d8d(0xf4)]=_0xade262[_0x583d8d(0x13a)]),_0x3ebdf1[_0x583d8d(0xe3)]===_0x583d8d(0x110)&&_0x5c752b['id']&&(_0x5c752b['id']=_0x5c752b['id']+_0x3cc285[_0x583d8d(0x152)]),Object[_0x583d8d(0x147)](_0x5c752b)[_0x583d8d(0x14d)](function(_0xa41835){var _0x59ad06=_0x583d8d,_0x40322d=_0xa41835[0x0],_0x42f436=_0xa41835[0x1];_0x40322d==='mask'&&typeof _0x42f436==_0x59ad06(0x119)&&(_0x5c752b[_0x40322d]=_0x42f436[_0x59ad06(0x136)](/url\(#(.*)\)/,_0x59ad06(0x106)[_0x59ad06(0x100)](_0x3cc285[_0x59ad06(0x152)],')')));});var _0x5c70bf=_0x3cc285[_0x583d8d(0xd7)];return!_0x5c70bf||_0x5c70bf['length']===0x0||(_0x3ebdf1[_0x583d8d(0xe3)]===_0x583d8d(0xc0)&&_0x5c752b['xlink:href']&&(_0x5c752b[_0x583d8d(0xc3)]=_0x5c752b[_0x583d8d(0xc3)]+_0x3cc285['idSuffix']),Object[_0x583d8d(0x147)](_0x5c752b)[_0x583d8d(0x14d)](function(_0x8460c7){var _0x165fd7=_0x583d8d,_0x5488b6=_0x8460c7[0x0],_0x51c173=_0x8460c7[0x1];typeof _0x51c173=='string'&&(_0x5c752b[_0x5488b6]=_0x51c173['replace'](/url\(#(.*)\)/,'url(#$1'[_0x165fd7(0x100)](_0x3cc285[_0x165fd7(0x152)],')')));})),_0x5c752b;}function xe(_0x230754,_0x2da33b){var _0x2fa412=_0x20f48d,_0x5be48b,_0x49f6c1=_0x2da33b[_0x2fa412(0xd7)];return!_0x49f6c1||_0x49f6c1['length']===0x0?_0x230754:_0x230754[_0x2fa412(0xe3)]===_0x2fa412(0x157)&&(!((_0x5be48b=_0x230754[_0x2fa412(0x156)])===null||_0x5be48b===void 0x0)&&_0x5be48b[_0x2fa412(0xdb)])?c(c({},_0x230754),{'children':_0x230754[_0x2fa412(0x156)][_0x2fa412(0xd3)](function(_0x5b1f6b){var _0x33d8a6=_0x2fa412;return typeof _0x5b1f6b[_0x33d8a6(0xdc)]['id']==_0x33d8a6(0x119)&&_0x49f6c1&&_0x49f6c1[_0x33d8a6(0xe5)](_0x5b1f6b[_0x33d8a6(0xdc)]['id'])?c(c({},_0x5b1f6b),{'attrs':c(c({},_0x5b1f6b[_0x33d8a6(0xdc)]),{'id':_0x5b1f6b['attrs']['id']+_0x2da33b[_0x33d8a6(0x152)]})}):_0x5b1f6b;})}):_0x230754;}function Le(){var _0xfe5172=_0x20f48d;return Math[_0xfe5172(0x161)]()[_0xfe5172(0x116)](0x24)[_0xfe5172(0x15e)](0x2,0x8);}W[_0x20f48d(0x173)]='UniverIcon';var ye={'tag':'svg','attrs':{'xmlns':_0x20f48d(0xfd),'fill':'none','viewBox':_0x20f48d(0xc5),'width':_0x20f48d(0x154),'height':_0x20f48d(0x154)},'children':[{'tag':'path','attrs':{'fill':_0x20f48d(0x120),'d':_0x20f48d(0xe7)}},{'tag':_0x20f48d(0x13c),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x20f48d(0xf7),'clipRule':'evenodd'}}]},B=_0x11114f(function(_0xd0a02f,_0x2d7153){var _0x5e4663=_0x20f48d;return _0x3f4386(W,Object[_0x5e4663(0xf9)]({},_0xd0a02f,{'id':'live-share-icon','ref':_0x2d7153,'icon':ye}));});B[_0x20f48d(0x173)]=_0x20f48d(0xf6);var Re=Object[_0x20f48d(0x101)],Z=(_0x2daa00,_0x508644,_0x38e735,_0x2fb5bd)=>{for(var _0xe27228=_0x2fb5bd>0x1?void 0x0:_0x2fb5bd?Re(_0x508644,_0x38e735):_0x508644,_0x21afd2=_0x2daa00['length']-0x1,_0x42809d;_0x21afd2>=0x0;_0x21afd2--)(_0x42809d=_0x2daa00[_0x21afd2])&&(_0xe27228=_0x42809d(_0xe27228)||_0xe27228);return _0xe27228;},f=(_0x3194ec,_0x1f7372)=>(_0x2b2128,_0x4d7cd6)=>_0x1f7372(_0x2b2128,_0x4d7cd6,_0x3194ec);let I=class extends _0x4aa7c3{constructor(_0x48d520,_0xb09bbc,_0x3d90ba){var _0xc18116=_0x20f48d;super(),d(this,'_entities',new Map()),(this[_0xc18116(0x144)]=_0x48d520,this[_0xc18116(0xc6)]=_0xb09bbc,this[_0xc18116(0xc1)]=_0x3d90ba,this[_0xc18116(0xe2)]());}async[_0x20f48d(0xd1)](_0x58de9f){var _0x183613=_0x20f48d;return this[_0x183613(0x13b)][_0x183613(0xeb)](_0x58de9f)||await this[_0x183613(0x145)](_0x58de9f),this[_0x183613(0x13b)]['get'](_0x58de9f);}['_init'](){var _0x4a2baa=_0x20f48d;this[_0x4a2baa(0x144)][_0x4a2baa(0x128)](_0x1df0c8[_0x4a2baa(0xca)])[_0x4a2baa(0x12a)](_0xc6f40a(this[_0x4a2baa(0xf8)]))[_0x4a2baa(0xd2)](async _0x3dd5b2=>{var _0x1b839b=_0x4a2baa;const _0x58086a=_0x3dd5b2['getUnitId']();this[_0x1b839b(0x13b)][_0x1b839b(0xeb)](_0x58086a)||this[_0x1b839b(0x145)](_0x58086a);}),this[_0x4a2baa(0x144)][_0x4a2baa(0x134)](_0x1df0c8[_0x4a2baa(0xca)])[_0x4a2baa(0x12a)](_0xc6f40a(this['dispose$']))[_0x4a2baa(0xd2)](_0x12bc9a=>{var _0x41fc05=_0x4a2baa;const _0x70ebec=_0x12bc9a[_0x41fc05(0x146)](),_0x1aae01=this[_0x41fc05(0x13b)]['get'](_0x70ebec);_0x1aae01==null||_0x1aae01[_0x41fc05(0xf5)]();});}async['_startLiveShareCoordinator'](_0x5c4a12){var _0x3cca2=_0x20f48d;const _0x43f3a1=await this['_collabSessionService'][_0x3cca2(0x12e)](_0x5c4a12),_0x35cc71=this[_0x3cca2(0xc6)][_0x3cca2(0x107)](C,_0x5c4a12,_0x43f3a1);return _0x35cc71[_0x3cca2(0xd4)](),this[_0x3cca2(0x13b)][_0x3cca2(0x12c)](_0x5c4a12,_0x35cc71),_0x35cc71;}};I=Z([f(0x0,_0x10d7b1),f(0x1,_0x5e6b53(_0x25d4db)),f(0x2,_0x5e6b53(_0xc5bf75))],I);var h=(_0x149a58=>(_0x149a58[_0x20f48d(0x123)]=_0x20f48d(0x142),_0x149a58[_0x20f48d(0x13e)]=_0x20f48d(0x125),_0x149a58[_0x20f48d(0x14a)]='following',_0x149a58['NOT_FOLLOWING']=_0x20f48d(0x148),_0x149a58[_0x20f48d(0xc4)]=_0x20f48d(0x16d),_0x149a58))(h||{});const Pe=_0x20f48d(0xe6),Ae=0xc8;let C=class extends _0x4aa7c3{constructor(_0x21c6dc,_0x1aa65a,_0x19fcf3,_0x9bf42f,_0x6c312d){var _0x24e1a3=_0x20f48d;super(),d(this,_0x24e1a3(0xe1),new _0xd52750(_0x24e1a3(0x125))),d(this,'status$',this[_0x24e1a3(0xe1)]['asObservable']()),d(this,_0x24e1a3(0xe2),!0x1),d(this,_0x24e1a3(0x151),null),d(this,'_presenter',null),(this['_unitID']=_0x21c6dc,this['_collabSession']=_0x1aa65a,this['_configService']=_0x19fcf3,this[_0x24e1a3(0x130)]=_0x9bf42f,this[_0x24e1a3(0xf2)]=_0x6c312d);}get[_0x20f48d(0x165)](){var _0x145d52=_0x20f48d;return this[_0x145d52(0xe1)]['getValue']();}['dispose'](){var _0x2d6852=_0x20f48d,_0x33e68e;(_0x33e68e=this['_commandDisposable'])==null||_0x33e68e[_0x2d6852(0xf5)](),this['_status$'][_0x2d6852(0x109)](_0x2d6852(0x125)),this[_0x2d6852(0xe1)][_0x2d6852(0x14f)]();}[_0x20f48d(0xd4)](){var _0x181658=_0x20f48d;this[_0x181658(0xe2)]||(this[_0x181658(0xe2)]=!0x0,this[_0x181658(0xfb)][_0x181658(0x124)][_0x181658(0x12a)](_0xc6f40a(this[_0x181658(0xf8)]))[_0x181658(0xd2)](_0x126922=>{var _0x5ba407=_0x181658;switch(_0x126922){case _0x7c9eda[_0x5ba407(0x123)]:this[_0x5ba407(0x16e)]();break;case _0x7c9eda[_0x5ba407(0x141)]:this[_0x5ba407(0x103)]();break;}}),this['_collabSession'][_0x181658(0x132)][_0x181658(0x12a)](_0xc6f40a(this[_0x181658(0xf8)]))[_0x181658(0xd2)](_0x73fbaa=>{var _0x6da9e7=_0x181658;const {eventID:_0x33fe2a}=_0x73fbaa;switch(_0x33fe2a){case _0x18a2fa[_0x6da9e7(0xea)]:this[_0x6da9e7(0xfe)](_0x73fbaa);break;case _0x18a2fa['LIVESHARE_OPERATION']:this['_handleOperation'](_0x73fbaa);break;case _0x18a2fa[_0x6da9e7(0xf0)]:this[_0x6da9e7(0x159)]();break;case _0x18a2fa[_0x6da9e7(0xc7)]:this[_0x6da9e7(0x174)](_0x73fbaa);break;}}));}[_0x20f48d(0x15c)](){var _0xa7feb9=_0x20f48d;this[_0xa7feb9(0xfb)][_0xa7feb9(0xcc)]({'eventID':_0x18a2fa[_0xa7feb9(0x10e)],'data':{'unitID':this[_0xa7feb9(0xf3)],'userID':this[_0xa7feb9(0xfb)]['getMemberID']()}},this[_0xa7feb9(0xf3)]);}[_0x20f48d(0x170)](){var _0x2a5616=_0x20f48d;this['_status']===_0x2a5616(0x16d)&&(this['_status$']['next'](_0x2a5616(0x125)),this[_0x2a5616(0xfb)]['send']({'eventID':_0x18a2fa['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x2a5616(0xf3)]}},this[_0x2a5616(0xf3)]));}['startFollowing'](){var _0x106373=_0x20f48d;this[_0x106373(0x165)]==='not-following'&&(this[_0x106373(0xe1)]['next'](_0x106373(0x155)),this[_0x106373(0x11c)]());}[_0x20f48d(0xcf)](){var _0x617ad6=_0x20f48d;this[_0x617ad6(0x165)]==='following'&&this[_0x617ad6(0xec)]();}[_0x20f48d(0xfe)](_0x27b3f4){var _0x232fe9=_0x20f48d;const {presenter:_0x278bf3}=_0x27b3f4[_0x232fe9(0x149)],_0x4e497e=this[_0x232fe9(0xfb)][_0x232fe9(0x11a)]();this[_0x232fe9(0x104)]=_0x278bf3,_0x278bf3===_0x4e497e?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x232fe9(0x165)]!=='not-following'&&(this['_stopPresenting'](),this[_0x232fe9(0x11c)]());}[_0x20f48d(0x175)](){var _0x1ea5f2=_0x20f48d;const _0x14d822={'eventID':_0x18a2fa['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x1ea5f2(0xcc)](_0x14d822,this[_0x1ea5f2(0xf3)]);}['_handleTerminate'](){var _0x277797=_0x20f48d;this[_0x277797(0x104)]=null,this[_0x277797(0x165)]!==_0x277797(0x16d)&&this['_beIdle']();}[_0x20f48d(0x174)](_0x53c9c9){var _0x3876b0=_0x20f48d;if(this[_0x3876b0(0x165)]==='following'&&this['_presenter']===_0x53c9c9[_0x3876b0(0x149)][_0x3876b0(0x140)]){const _0x2d880f=_0x585eb4(_0x53c9c9['data'])[_0x3876b0(0x126)][_0x3876b0(0x143)]()['find'](_0x7f9915=>_0x7f9915['id']===_0x3e383d['id']);if(_0x2d880f){const _0x5dc93c=_0x2d880f['params'][_0x3876b0(0xe0)],_0x5c171c=_0x2d880f[_0x3876b0(0xff)][_0x3876b0(0x129)]['id'];setTimeout(()=>{var _0x101596=_0x3876b0;this[_0x101596(0xf2)][_0x101596(0x138)](_0x30ebd3['id'],{'unitId':_0x5dc93c,'subUnitId':_0x5c171c},{'fromCollab':!0x0});});}}}[_0x20f48d(0x102)](){var _0x107fad=_0x20f48d;this[_0x107fad(0xe1)][_0x107fad(0x109)](_0x107fad(0x16d));const _0x189c64=new Map(),_0x51dce0=this[_0x107fad(0x151)]=new _0x48f9ff();_0x51dce0['add'](_0x3f3e9d(()=>{var _0x1223dc=_0x107fad;_0x189c64['forEach'](_0x301d7d=>_0x301d7d[_0x1223dc(0x14f)]()),_0x189c64[_0x1223dc(0x172)]();})),_0x51dce0[_0x107fad(0x10d)](this[_0x107fad(0xf2)][_0x107fad(0xed)](_0x1dd1f2=>{var _0x162e69=_0x107fad,_0x1fe835;if(_0x1dd1f2[_0x162e69(0xee)]!==_0x39bd65['OPERATION']||!this[_0x162e69(0x130)][_0x162e69(0x121)](_0x1dd1f2['id']))return;const {id:_0x34e474}=_0x1dd1f2;let _0x2150e1;_0x189c64[_0x162e69(0xeb)](_0x34e474)?_0x2150e1=_0x189c64[_0x162e69(0x13d)](_0x34e474):(_0x2150e1=new _0x127c60(),_0x189c64[_0x162e69(0x12c)](_0x34e474,_0x2150e1),_0x2150e1[_0x162e69(0x12a)](_0x34d54c((_0x1fe835=this[_0x162e69(0x127)][_0x162e69(0x139)](Pe))!=null?_0x1fe835:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x162e69(0xd2)](_0x40a9f3=>{var _0x198215=_0x162e69;this[_0x198215(0xfb)]['send']({'eventID':_0x18a2fa[_0x198215(0x16c)],'data':{'unitID':this[_0x198215(0xf3)],'operations':{[_0x40a9f3['id']]:{'id':_0x40a9f3['id'],'params':JSON[_0x198215(0xd8)](_0x40a9f3['params'])}}}},this[_0x198215(0xf3)]);})),_0x2150e1[_0x162e69(0x109)](_0x1dd1f2);})),this[_0x107fad(0x130)][_0x107fad(0x15a)](this[_0x107fad(0xf3)])[_0x107fad(0x14d)](_0x10b4f2=>this[_0x107fad(0xfb)][_0x107fad(0xcc)]({'eventID':_0x18a2fa['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x10b4f2['id']]:{'id':_0x10b4f2['id'],'params':JSON[_0x107fad(0xd8)](_0x10b4f2[_0x107fad(0xff)])}}}},this[_0x107fad(0xf3)]));}[_0x20f48d(0x163)](){var _0x45503f=_0x20f48d,_0x59a185;this['_status$']['next'](_0x45503f(0x125)),(_0x59a185=this[_0x45503f(0x151)])==null||_0x59a185[_0x45503f(0xf5)](),this[_0x45503f(0x151)]=null;}[_0x20f48d(0x11c)](){var _0x12d4d1=_0x20f48d,_0x56d0ac;(_0x56d0ac=this[_0x12d4d1(0x151)])==null||_0x56d0ac[_0x12d4d1(0xf5)](),this['_status$']['next'](_0x12d4d1(0x155));}[_0x20f48d(0x16b)](){var _0xbb4df2=_0x20f48d,_0x7320ea;this[_0xbb4df2(0xe1)][_0xbb4df2(0x109)](_0xbb4df2(0x125)),(_0x7320ea=this['_commandDisposable'])==null||_0x7320ea[_0xbb4df2(0xf5)](),this[_0xbb4df2(0x151)]=null;}[_0x20f48d(0xec)](){var _0x91d738=_0x20f48d,_0x152b2e;this['_status$']['next'](_0x91d738(0x148)),(_0x152b2e=this['_commandDisposable'])==null||_0x152b2e[_0x91d738(0xf5)]();}[_0x20f48d(0x150)](_0x507d49){var _0x5af945=_0x20f48d;if([_0x5af945(0x16d),'not-following',_0x5af945(0x142)][_0x5af945(0xe5)](this[_0x5af945(0x165)])||!_0x507d49[_0x5af945(0x149)][_0x5af945(0x117)]||_0x507d49['data']['presenter']===this[_0x5af945(0xfb)][_0x5af945(0x11a)]())return;this[_0x5af945(0x165)]===_0x5af945(0x125)&&this['_startFollowing']();const _0x2f79b6=_0x507d49[_0x5af945(0x149)]['operations'];Object[_0x5af945(0x171)](_0x2f79b6)['forEach'](_0x5594db=>{var _0x44fab5=_0x5af945;this[_0x44fab5(0xf2)][_0x44fab5(0x138)](_0x5594db['id'],_0x5594db[_0x44fab5(0xff)]?JSON['parse'](_0x5594db['params']):null,{'fromCollab':!0x0});});}[_0x20f48d(0x16e)](){var _0x15b16c=_0x20f48d,_0x5ce6d5;this[_0x15b16c(0xe1)][_0x15b16c(0x109)](_0x15b16c(0x142)),(_0x5ce6d5=this[_0x15b16c(0x151)])==null||_0x5ce6d5[_0x15b16c(0xf5)]();}[_0x20f48d(0x103)](){var _0x3a7680=_0x20f48d;this['_status$'][_0x3a7680(0x109)](_0x3a7680(0x125)),this[_0x3a7680(0x175)]();}};C=Z([f(0x2,_0x27f4d),f(0x3,_0x5e6b53(L)),f(0x4,_0x4bf68b)],C);function Te(){var _0x2a2912=_0x20f48d;const _0x3e0e8f=_0x2713b0(I),_0x1ab237=_0x2713b0(_0x10d7b1),_0x10fea5=_0x1d60ce(()=>_0x1ab237[_0x2a2912(0x12f)](_0x1df0c8['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x13482a,_0x2b578f]=_0x5e8cb1(null),[_0x355e54,_0xac4b1c]=_0x5e8cb1(h['IDLE']),_0x36257c=_0x5991aa(null);return _0x613455(()=>(_0x10fea5&&_0x3e0e8f[_0x2a2912(0xd1)](_0x10fea5[_0x2a2912(0x146)]())[_0x2a2912(0x167)](_0x36fad5=>{var _0x559aed=_0x2a2912;_0x2b578f(_0x36fad5),_0x36257c[_0x559aed(0xdd)]=_0x36fad5[_0x559aed(0x16f)][_0x559aed(0xd2)](_0x240c49=>{_0xac4b1c(_0x240c49);});}),()=>{var _0x50398e=_0x2a2912,_0xa10712;(_0xa10712=_0x36257c[_0x50398e(0xdd)])==null||_0xa10712[_0x50398e(0x162)](),_0x36257c[_0x50398e(0xdd)]=null;}),[_0x10fea5,_0x3e0e8f]),_0x13482a?_0x591b4e(_0x3a1168,{'align':_0x2a2912(0x105),'disabled':_0x355e54===h['OFFLINE'],'className':_0x2a2912(0xe8),'overlay':_0x591b4e($e,{'status':_0x355e54,'coordinator':_0x13482a}),'children':_0x591b4e(_0x2a2912(0xbf),{'className':_0x25609c(_0x2a2912(0xc8),{'univer-cursor-not-allowed':_0x355e54===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x355e54!==h[_0x2a2912(0x123)]}),'type':'button','children':_0x591b4e(B,{'className':_0x2a2912(0xcb)})})}):null;}function $e(_0x31e430){var _0x4c70ee=_0x20f48d;const {status:_0x49a101,coordinator:_0xbc1520}=_0x31e430;switch(_0x49a101){case h[_0x4c70ee(0x13e)]:return _0x591b4e(Fe,{'coordinator':_0xbc1520});case h[_0x4c70ee(0x14a)]:return _0x591b4e(He,{'coordinator':_0xbc1520});case h['NOT_FOLLOWING']:return _0x591b4e(je,{'coordinator':_0xbc1520});case h[_0x4c70ee(0x123)]:return _0x591b4e(Ve,{});case h[_0x4c70ee(0xc4)]:return _0x591b4e(Ue,{'coordinator':_0xbc1520});default:return null;}}function Fe(_0x20c32d){var _0x37eb8e=_0x20f48d;const {coordinator:_0x3175d9}=_0x20c32d;return _0xf95584(_0xb7edf3,{'children':[_0x591b4e(_0x37eb8e(0x133),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x37eb8e(0x113)}),_0x591b4e(_0x3b8bcf,{'onClick':()=>_0x3175d9[_0x37eb8e(0x15c)](),'children':_0x37eb8e(0xd6)})]});}function He(_0x312c16){var _0xe4c6ac=_0x20f48d;const {coordinator:_0xb1b530}=_0x312c16;return _0xf95584(_0xb7edf3,{'children':[_0x591b4e('div',{'className':_0xe4c6ac(0x11e),'children':_0xe4c6ac(0xc2)}),_0x591b4e(_0x3b8bcf,{'onClick':()=>_0xb1b530[_0xe4c6ac(0xcf)](),'children':'Stop\x20following'})]});}function je(_0x5a9d64){var _0x570224=_0x20f48d;const {coordinator:_0x1e4aa5}=_0x5a9d64;return _0xf95584(_0xb7edf3,{'children':[_0x591b4e(_0x570224(0x133),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x570224(0x168)}),_0x591b4e(_0x3b8bcf,{'variant':_0x570224(0x169),'onClick':()=>_0x1e4aa5[_0x570224(0x14c)](),'children':_0x570224(0x111)})]});}function Ue(_0x2a7216){var _0x31db84=_0x20f48d;const {coordinator:_0x2f30b4}=_0x2a7216;return _0xf95584(_0xb7edf3,{'children':[_0x591b4e(_0x31db84(0x133),{'className':_0x31db84(0x11e),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x591b4e(_0x3b8bcf,{'variant':_0x31db84(0x11b),'onClick':()=>_0x2f30b4[_0x31db84(0x170)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x1ea2b1=_0x20f48d;return _0x591b4e(_0xb7edf3,{'children':_0x1ea2b1(0x11f)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x1e86b3,_0x5704cc,_0x257239,_0x46ca42)=>{for(var _0x1c5c74=_0x46ca42>0x1?void 0x0:_0x46ca42?Me(_0x5704cc,_0x257239):_0x5704cc,_0x16e8d0=_0x1e86b3['length']-0x1,_0x6cf96c;_0x16e8d0>=0x0;_0x16e8d0--)(_0x6cf96c=_0x1e86b3[_0x16e8d0])&&(_0x1c5c74=_0x6cf96c(_0x1c5c74)||_0x1c5c74);return _0x1c5c74;},$=(_0x498f27,_0x3f0482)=>(_0x344315,_0x7a0af)=>_0x3f0482(_0x344315,_0x7a0af,_0x498f27);let b=class extends _0x1a511f{constructor(_0x1844b9,_0x2de9fd){var _0x7e94a1=_0x20f48d;super(),this[_0x7e94a1(0xc6)]=_0x1844b9,this[_0x7e94a1(0x166)]=_0x2de9fd,this[_0x7e94a1(0x135)]();}[_0x20f48d(0x135)](){var _0x44de3f=_0x20f48d;this[_0x44de3f(0x12d)](this[_0x44de3f(0x166)][_0x44de3f(0x10a)](_0x22f3b6[_0x44de3f(0x137)],()=>_0x123b5d(Te,this['_injector'])));}};b=ke([$(0x0,_0x5e6b53(_0x25d4db)),$(0x1,_0xe05b9c)],b);var Ge=Object[_0x20f48d(0x122)],We=Object[_0x20f48d(0x101)],Ye=(_0x15d16d,_0x4527c9,_0x440aed)=>_0x4527c9 in _0x15d16d?Ge(_0x15d16d,_0x4527c9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x440aed}):_0x15d16d[_0x4527c9]=_0x440aed,Be=(_0xc1efcc,_0x1e7ca1,_0x3c23ac,_0x111ade)=>{var _0xfde630=_0x20f48d;for(var _0x5d8198=_0x111ade>0x1?void 0x0:_0x111ade?We(_0x1e7ca1,_0x3c23ac):_0x1e7ca1,_0x123851=_0xc1efcc[_0xfde630(0xdb)]-0x1,_0x5d8846;_0x123851>=0x0;_0x123851--)(_0x5d8846=_0xc1efcc[_0x123851])&&(_0x5d8198=_0x5d8846(_0x5d8198)||_0x5d8198);return _0x5d8198;},F=(_0x57a572,_0x3620b5)=>(_0x8a1bcb,_0x172e19)=>_0x3620b5(_0x8a1bcb,_0x172e19,_0x57a572),J=(_0x3d5ec4,_0x5c8a5f,_0x21eca2)=>Ye(_0x3d5ec4,typeof _0x5c8a5f!=_0x20f48d(0xf1)?_0x5c8a5f+'':_0x5c8a5f,_0x21eca2);const Ze=_0x20f48d(0x11d);let O=class extends _0x5c6f5f{constructor(_0x351256=T,_0x490d32,_0x8e6d18){var _0x56ffb4=_0x20f48d;super(),this['_config']=_0x351256,this[_0x56ffb4(0xc6)]=_0x490d32,this['_configService']=_0x8e6d18;const {..._0x14b40d}=_0x1b809b({},T,this[_0x56ffb4(0x164)]);this[_0x56ffb4(0x127)]['setConfig'](Oe,_0x14b40d);}[_0x20f48d(0x115)](){var _0x45a5aa=_0x20f48d;_0x1d9d68(this['_injector'],_0x1c6ef3([[L],[I],[m],[b]],this[_0x45a5aa(0x164)]['override'])),_0x4e8b78(this[_0x45a5aa(0xc6)],[[m]]);}[_0x20f48d(0xce)](){var _0xfd7ab0=_0x20f48d;_0x4e8b78(this[_0xfd7ab0(0xc6)],[[b]]);}};J(O,'type',_0x1df0c8[_0x20f48d(0x108)]),J(O,_0x20f48d(0x118),Ze),O=Be([_0x1a4ce7(_0x2d4e6e),F(0x1,_0x5e6b53(_0x25d4db)),F(0x2,_0x27f4d)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x451375=_0xa190;(function(_0x1e9cbb,_0x5bffbc){var _0x185ef2=_0xa190,_0x37c213=_0x1e9cbb();while(!![]){try{var _0x57a358=parseInt(_0x185ef2(0xa1))/0x1+parseInt(_0x185ef2(0xe7))/0x2+-parseInt(_0x185ef2(0xe6))/0x3*(-parseInt(_0x185ef2(0xc3))/0x4)+parseInt(_0x185ef2(0xf6))/0x5+parseInt(_0x185ef2(0xc8))/0x6*(parseInt(_0x185ef2(0xdb))/0x7)+-parseInt(_0x185ef2(0x126))/0x8+-parseInt(_0x185ef2(0x96))/0x9*(parseInt(_0x185ef2(0xd4))/0xa);if(_0x57a358===_0x5bffbc)break;else _0x37c213['push'](_0x37c213['shift']());}catch(_0x4db724){_0x37c213['push'](_0x37c213['shift']());}}}(_0x5bdd,0x19817));var q=Object['defineProperty'],z=(_0x575a9e,_0x54851e,_0x3ab20b)=>_0x54851e in _0x575a9e?q(_0x575a9e,_0x54851e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ab20b}):_0x575a9e[_0x54851e]=_0x3ab20b,d=(_0x2fbd89,_0x2ff064,_0x327381)=>z(_0x2fbd89,typeof _0x2ff064!=_0x451375(0xd5)?_0x2ff064+'':_0x2ff064,_0x327381);import{CollaborationSessionService as _0x28a12b,SessionStatus as _0xd06163,UniverCollaborationClientPlugin as _0x1dd0cd}from'@univerjs-pro/collaboration-client';import{Disposable as _0x2313b0,toDisposable as _0x43b1a9,Inject as _0x28c77f,IUniverInstanceService as _0x3e5199,Injector as _0x335107,IConfigService as _0x346109,ICommandService as _0x4a09d4,RxDisposable as _0x36a016,UniverInstanceType as _0x4c20a0,DisposableCollection as _0x1b939f,CommandType as _0x1862c6,DependentOn as _0x32035a,Plugin as _0x1c27e2,merge as _0x3c06a8,registerDependencies as _0x4552ae,mergeOverrideWithDependencies as _0x32a788,touchDependencies as _0x21a21b}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x21f0ce,InsertSheetMutation as _0x198dc6}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x274716,SetScrollOperation as _0x186685}from'@univerjs/sheets-ui';import{useDependency as _0x2de017,useObservable as _0x25276a,IUIPartsService as _0xb65b9,BuiltInUIPart as _0x51a6c7,connectInjector as _0x2c0420}from'@univerjs/ui';import{jsx as _0x5aa147,jsxs as _0x2b969d,Fragment as _0x5b6ea3}from'react/jsx-runtime';function _0x5bdd(){var _0x59216a=['icon','48gDjMyl','358320JQoUiu','disposeWithMe','includes','trim','1em','operations','onCommandExecuted','_collabSession','FOLLOWING','substring','UNIVER_SHEET','_entities','_handleOffline','asObservable','button','82435yfXSnr','none','unsubscribe','_handleTerminate','_reporters','following','parse','tryStartPresenting','indexOf','getMemberID','values','getConfig','_liveShareService','You\x27re\x20following\x20the\x20presenter','extend','next','data','_configService','set','_handleOnline','registerComponent','onRendered','random','idSuffix','requireSession','_collabSessionService','defIds','univer-size-4','LiveShareIcon','_stopFollowing','setConfig','getOwnPropertySymbols','_fetchOperations','dispose','current','UNIVER_UNKNOWN','hasOwnProperty','call','prototype','getOwnPropertyDescriptor','LIVESHARE_OPERATION','_stopPresenting','presenter','url(#$1','stringify','currentColor','You\x27re\x20presenting\x20the\x20document','mutations','580968svnHWO','find','You\x27are\x20offline.','Stop\x20following','getCurrentTypeOfUnit$','string','propertyIsEnumerable','UniverIcon','executeCommand','_handleOperation','tag','_handleNewHost','You\x27re\x20not\x20following\x20the\x20presenter','xlink:href','status$','pipe','add','colorChannel1','length','LIVESHARE_TERMINATE','className','NEW_CHANGESETS','stopFollowing','_startFollowing','shouldShareOperation','registerSharedOperation','function','evenodd','9dTaiwk','_mountLiveShare','text','override','get','_config','not-following','end','getInitialStates','attrs','map','179962dUejhy','complete','Present\x20this\x20document','assign','apply','default','OPERATION','delete','fill','_univerInstanceService','getUnitId','type','_uiPartsService','defineProperty','LIVESHARE_FETCH_OPERATIONS','IDLE','_commandDisposable','forEach','defs','_presenter','_status$','onStarting','_commandService','dispose$','OFFLINE','_startLiveShareCoordinator','_handleNewChangeSets','offline','live-share.config','_unitID','0\x200\x2017\x2017','idle','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','LIVESHARE_REQUEST_HOST','27436WdZUYh','startFollowing','mask','_injector','children','1128tfXBPc','_beIdle','init','params','getLiveShareCoordinator','createInstance','registerInitialStateReporter','entries','then','subscribe','_startPresenting','has','3507490XDIwTF','symbol','univer-mb-3\x20univer-w-full\x20univer-text-sm','div','displayName','clear','HEADER_MENU','1582biOOVN','getTypeOfUnitAdded$','stopPresenting','send','_init','NOT_FOLLOWING','_status','concat','sessionStatus$','replace'];_0x5bdd=function(){return _0x59216a;};return _0x5bdd();}import{Dropdown as _0x159863,clsx as _0x87598b,Button as _0x352964}from'@univerjs/design';import{forwardRef as _0x11caf0,useRef as _0x48017c,createElement as _0x3ad40e,useState as _0x55d604,useEffect as _0x44053b}from'react';import{CollaborationEvent as _0x248176,parseProtocolChangeset as _0x17584c}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2f2b8d,Subject as _0x1044e5}from'rxjs';import{takeUntil as _0x261e2b,throttleTime as _0x28b226}from'rxjs/operators';const Oe=_0x451375(0xbd),T={};class L extends _0x2313b0{constructor(){var _0x14a96d=_0x451375;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x14a96d(0xfa),new Set());}[_0x451375(0x93)](_0xe10ed1){var _0x416a36=_0x451375;return this['_sharedOperations'][_0x416a36(0x8a)](_0xe10ed1),_0x43b1a9(()=>this['_sharedOperations'][_0x416a36(0xa8)](_0xe10ed1));}[_0x451375(0xce)](_0x52fc81){var _0x9e9dd9=_0x451375;return this['_reporters'][_0x9e9dd9(0x8a)](_0x52fc81),_0x43b1a9(()=>this[_0x9e9dd9(0xfa)][_0x9e9dd9(0xa8)](_0x52fc81));}[_0x451375(0x92)](_0x2e83d3){return this['_sharedOperations']['has'](_0x2e83d3);}[_0x451375(0x9e)](_0x3e9bb6){var _0x44eb1a=_0x451375;return Array['from'](this[_0x44eb1a(0xfa)])[_0x44eb1a(0xa0)](_0x5925b2=>_0x5925b2(_0x3e9bb6));}}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x168b22,_0x5bace9,_0x2c0490,_0x2b85a1)=>{var _0x2bbb8f=_0x451375;for(var _0x2447c2=_0x2b85a1>0x1?void 0x0:_0x2b85a1?Ee(_0x5bace9,_0x2c0490):_0x5bace9,_0x29180e=_0x168b22[_0x2bbb8f(0x8c)]-0x1,_0x355b58;_0x29180e>=0x0;_0x29180e--)(_0x355b58=_0x168b22[_0x29180e])&&(_0x2447c2=_0x355b58(_0x2447c2)||_0x2447c2);return _0x2447c2;},Ne=(_0x4ab97c,_0x26ff09)=>(_0x21d977,_0x31a0da)=>_0x26ff09(_0x21d977,_0x31a0da,_0x4ab97c);let m=class extends _0x2313b0{constructor(_0x1d2686){var _0x220503=_0x451375;super(),this['_liveShareService']=_0x1d2686,this[_0x220503(0xdf)]();}[_0x451375(0xdf)](){var _0x4470bf=_0x451375;[_0x274716['id'],_0x186685['id'],_0x21f0ce['id']][_0x4470bf(0xb2)](_0x59a128=>{var _0x162c91=_0x4470bf;this[_0x162c91(0xe8)](this[_0x162c91(0x102)][_0x162c91(0x93)](_0x59a128));});}};m=we([Ne(0x0,_0x28c77f(L))],m);var c=function(){var _0x7b8dfc=_0x451375;return c=Object[_0x7b8dfc(0xa4)]||function(_0x5cf3c4){var _0x36c87f=_0x7b8dfc;for(var _0x386ab4,_0x2d2e19=0x1,_0x129e0a=arguments[_0x36c87f(0x8c)];_0x2d2e19<_0x129e0a;_0x2d2e19++){_0x386ab4=arguments[_0x2d2e19];for(var _0x40a2ad in _0x386ab4)Object[_0x36c87f(0x11c)]['hasOwnProperty']['call'](_0x386ab4,_0x40a2ad)&&(_0x5cf3c4[_0x40a2ad]=_0x386ab4[_0x40a2ad]);}return _0x5cf3c4;},c[_0x7b8dfc(0xa5)](this,arguments);},Ce=function(_0x58cf11,_0x33e72f){var _0xb697ad=_0x451375,_0x442487={};for(var _0x1601cf in _0x58cf11)Object[_0xb697ad(0x11c)][_0xb697ad(0x11a)][_0xb697ad(0x11b)](_0x58cf11,_0x1601cf)&&_0x33e72f['indexOf'](_0x1601cf)<0x0&&(_0x442487[_0x1601cf]=_0x58cf11[_0x1601cf]);if(_0x58cf11!=null&&typeof Object[_0xb697ad(0x115)]==_0xb697ad(0x94)){for(var _0x5cf0c1=0x0,_0x1601cf=Object[_0xb697ad(0x115)](_0x58cf11);_0x5cf0c1<_0x1601cf[_0xb697ad(0x8c)];_0x5cf0c1++)_0x33e72f[_0xb697ad(0xfe)](_0x1601cf[_0x5cf0c1])<0x0&&Object[_0xb697ad(0x11c)][_0xb697ad(0x80)][_0xb697ad(0x11b)](_0x58cf11,_0x1601cf[_0x5cf0c1])&&(_0x442487[_0x1601cf[_0x5cf0c1]]=_0x58cf11[_0x1601cf[_0x5cf0c1]]);}return _0x442487;},W=_0x11caf0(function(_0x2c5602,_0x472b23){var _0x508acd=_0x451375,_0x4b87ee=_0x2c5602[_0x508acd(0xe5)],_0x15f482=_0x2c5602['id'],_0x5db530=_0x2c5602[_0x508acd(0x8e)],_0x3c9d14=_0x2c5602[_0x508acd(0x104)],_0x21e4b6=Ce(_0x2c5602,[_0x508acd(0xe5),'id',_0x508acd(0x8e),_0x508acd(0x104)]),_0x29b9cd='univerjs-icon\x20univerjs-icon-'[_0x508acd(0xe2)](_0x15f482,'\x20')[_0x508acd(0xe2)](_0x5db530||'')[_0x508acd(0xea)](),_0x5adb1d=_0x48017c('_'['concat'](Le()));return Y(_0x4b87ee,''[_0x508acd(0xe2)](_0x15f482),{'defIds':_0x4b87ee[_0x508acd(0x110)],'idSuffix':_0x5adb1d[_0x508acd(0x118)]},c({'ref':_0x472b23,'className':_0x29b9cd},_0x21e4b6),_0x3c9d14);});function Y(_0x2e2f8b,_0x1e9555,_0x10736b,_0x58e852,_0x3ee648){var _0x4ce094=_0x451375;return _0x3ad40e(_0x2e2f8b[_0x4ce094(0x84)],c(c({'key':_0x1e9555},De(_0x2e2f8b,_0x10736b,_0x3ee648)),_0x58e852),(xe(_0x2e2f8b,_0x10736b)[_0x4ce094(0xc7)]||[])[_0x4ce094(0xa0)](function(_0x2bf3e5,_0x2ed0e0){var _0x5ebe57=_0x4ce094;return Y(_0x2bf3e5,''['concat'](_0x1e9555,'-')['concat'](_0x2e2f8b[_0x5ebe57(0x84)],'-')[_0x5ebe57(0xe2)](_0x2ed0e0),_0x10736b,void 0x0,_0x3ee648);}));}function De(_0x5caf90,_0x2ad276,_0x5748bc){var _0x271fc3=_0x451375,_0x31bff3=c({},_0x5caf90[_0x271fc3(0x9f)]);_0x5748bc!=null&&_0x5748bc['colorChannel1']&&_0x31bff3[_0x271fc3(0xa9)]===_0x271fc3(0x8b)&&(_0x31bff3['fill']=_0x5748bc[_0x271fc3(0x8b)]),_0x5caf90[_0x271fc3(0x84)]==='mask'&&_0x31bff3['id']&&(_0x31bff3['id']=_0x31bff3['id']+_0x2ad276[_0x271fc3(0x10d)]),Object['entries'](_0x31bff3)[_0x271fc3(0xb2)](function(_0x558cc0){var _0x39f431=_0x271fc3,_0x44a0d3=_0x558cc0[0x0],_0x186ed4=_0x558cc0[0x1];_0x44a0d3===_0x39f431(0xc5)&&typeof _0x186ed4==_0x39f431(0x12b)&&(_0x31bff3[_0x44a0d3]=_0x186ed4['replace'](/url\(#(.*)\)/,_0x39f431(0x121)[_0x39f431(0xe2)](_0x2ad276[_0x39f431(0x10d)],')')));});var _0x4ee8a5=_0x2ad276['defIds'];return!_0x4ee8a5||_0x4ee8a5[_0x271fc3(0x8c)]===0x0||(_0x5caf90[_0x271fc3(0x84)]==='use'&&_0x31bff3[_0x271fc3(0x87)]&&(_0x31bff3[_0x271fc3(0x87)]=_0x31bff3[_0x271fc3(0x87)]+_0x2ad276['idSuffix']),Object[_0x271fc3(0xcf)](_0x31bff3)[_0x271fc3(0xb2)](function(_0x16df4b){var _0x162431=_0x271fc3,_0x558a26=_0x16df4b[0x0],_0x2a2fad=_0x16df4b[0x1];typeof _0x2a2fad==_0x162431(0x12b)&&(_0x31bff3[_0x558a26]=_0x2a2fad[_0x162431(0xe4)](/url\(#(.*)\)/,_0x162431(0x121)[_0x162431(0xe2)](_0x2ad276[_0x162431(0x10d)],')')));})),_0x31bff3;}function xe(_0x3bdc0c,_0x2e8ed3){var _0x3da090=_0x451375,_0x33577a,_0x5a2010=_0x2e8ed3['defIds'];return!_0x5a2010||_0x5a2010[_0x3da090(0x8c)]===0x0?_0x3bdc0c:_0x3bdc0c[_0x3da090(0x84)]===_0x3da090(0xb3)&&(!((_0x33577a=_0x3bdc0c[_0x3da090(0xc7)])===null||_0x33577a===void 0x0)&&_0x33577a[_0x3da090(0x8c)])?c(c({},_0x3bdc0c),{'children':_0x3bdc0c[_0x3da090(0xc7)][_0x3da090(0xa0)](function(_0x36d0bb){var _0x121666=_0x3da090;return typeof _0x36d0bb[_0x121666(0x9f)]['id']==_0x121666(0x12b)&&_0x5a2010&&_0x5a2010[_0x121666(0xe9)](_0x36d0bb[_0x121666(0x9f)]['id'])?c(c({},_0x36d0bb),{'attrs':c(c({},_0x36d0bb[_0x121666(0x9f)]),{'id':_0x36d0bb[_0x121666(0x9f)]['id']+_0x2e8ed3[_0x121666(0x10d)]})}):_0x36d0bb;})}):_0x3bdc0c;}function Le(){var _0x29df3c=_0x451375;return Math[_0x29df3c(0x10c)]()['toString'](0x24)[_0x29df3c(0xf0)](0x2,0x8);}W[_0x451375(0xd8)]=_0x451375(0x81);var ye={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x451375(0xf7),'viewBox':_0x451375(0xbf),'width':_0x451375(0xeb),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x451375(0x123),'d':_0x451375(0xc1)}},{'tag':'path','attrs':{'fill':_0x451375(0x123),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x451375(0x95),'clipRule':'evenodd'}}]},B=_0x11caf0(function(_0x43688f,_0x2612ca){return _0x3ad40e(W,Object['assign']({},_0x43688f,{'id':'live-share-icon','ref':_0x2612ca,'icon':ye}));});B[_0x451375(0xd8)]=_0x451375(0x112);var Re=Object[_0x451375(0x11d)],Z=(_0x1e8e3c,_0xac14ff,_0x1d3dfc,_0x5c5eb1)=>{var _0x3b9b1f=_0x451375;for(var _0x199c7c=_0x5c5eb1>0x1?void 0x0:_0x5c5eb1?Re(_0xac14ff,_0x1d3dfc):_0xac14ff,_0x253127=_0x1e8e3c[_0x3b9b1f(0x8c)]-0x1,_0x17b5c3;_0x253127>=0x0;_0x253127--)(_0x17b5c3=_0x1e8e3c[_0x253127])&&(_0x199c7c=_0x17b5c3(_0x199c7c)||_0x199c7c);return _0x199c7c;},f=(_0x52abe5,_0x2362e9)=>(_0x6aec4c,_0xacdf00)=>_0x2362e9(_0x6aec4c,_0xacdf00,_0x52abe5);let I=class extends _0x36a016{constructor(_0x8a0738,_0x21bf37,_0x3c9e24){var _0x533e04=_0x451375;super(),d(this,_0x533e04(0xf2),new Map()),(this[_0x533e04(0xaa)]=_0x8a0738,this[_0x533e04(0xc6)]=_0x21bf37,this[_0x533e04(0x10f)]=_0x3c9e24,this['_init']());}async[_0x451375(0xcc)](_0x1a088b){var _0x58ca37=_0x451375;return this['_entities'][_0x58ca37(0xd3)](_0x1a088b)||await this[_0x58ca37(0xba)](_0x1a088b),this[_0x58ca37(0xf2)][_0x58ca37(0x9a)](_0x1a088b);}[_0x451375(0xdf)](){var _0x5b9904=_0x451375;this[_0x5b9904(0xaa)][_0x5b9904(0xdc)](_0x4c20a0[_0x5b9904(0xf1)])['pipe'](_0x261e2b(this[_0x5b9904(0xb8)]))[_0x5b9904(0xd1)](async _0xa98328=>{var _0x327ed3=_0x5b9904;const _0x35cc97=_0xa98328['getUnitId']();this[_0x327ed3(0xf2)][_0x327ed3(0xd3)](_0x35cc97)||this[_0x327ed3(0xba)](_0x35cc97);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x4c20a0['UNIVER_SHEET'])[_0x5b9904(0x89)](_0x261e2b(this[_0x5b9904(0xb8)]))[_0x5b9904(0xd1)](_0x1f1528=>{var _0x232484=_0x5b9904;const _0x195bed=_0x1f1528['getUnitId'](),_0x1e1910=this['_entities']['get'](_0x195bed);_0x1e1910==null||_0x1e1910[_0x232484(0x117)]();});}async[_0x451375(0xba)](_0x1e1d04){var _0x5d11b2=_0x451375;const _0x3e8206=await this[_0x5d11b2(0x10f)][_0x5d11b2(0x10e)](_0x1e1d04),_0x1f2fcc=this[_0x5d11b2(0xc6)][_0x5d11b2(0xcd)](C,_0x1e1d04,_0x3e8206);return _0x1f2fcc[_0x5d11b2(0xca)](),this[_0x5d11b2(0xf2)][_0x5d11b2(0x108)](_0x1e1d04,_0x1f2fcc),_0x1f2fcc;}};I=Z([f(0x0,_0x3e5199),f(0x1,_0x28c77f(_0x335107)),f(0x2,_0x28c77f(_0x28a12b))],I);var h=(_0x118872=>(_0x118872[_0x451375(0xb9)]=_0x451375(0xbc),_0x118872[_0x451375(0xb0)]=_0x451375(0xc0),_0x118872['FOLLOWING']=_0x451375(0xfb),_0x118872[_0x451375(0xe0)]='not-following',_0x118872['PRESENTING']='presenting',_0x118872))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x36a016{constructor(_0x563bc5,_0x3bc5db,_0x11d0b5,_0x57d2f0,_0x97ec45){var _0xd76d38=_0x451375;super(),d(this,_0xd76d38(0xb5),new _0x2f2b8d('idle')),d(this,_0xd76d38(0x88),this['_status$'][_0xd76d38(0xf4)]()),d(this,_0xd76d38(0xdf),!0x1),d(this,'_commandDisposable',null),d(this,_0xd76d38(0xb4),null),(this['_unitID']=_0x563bc5,this[_0xd76d38(0xee)]=_0x3bc5db,this[_0xd76d38(0x107)]=_0x11d0b5,this[_0xd76d38(0x102)]=_0x57d2f0,this[_0xd76d38(0xb7)]=_0x97ec45);}get[_0x451375(0xe1)](){var _0x6cc70=_0x451375;return this[_0x6cc70(0xb5)]['getValue']();}[_0x451375(0x117)](){var _0x3bf5fc=_0x451375,_0x31a480;(_0x31a480=this[_0x3bf5fc(0xb1)])==null||_0x31a480['dispose'](),this[_0x3bf5fc(0xb5)][_0x3bf5fc(0x105)](_0x3bf5fc(0xc0)),this[_0x3bf5fc(0xb5)][_0x3bf5fc(0xa2)]();}['init'](){var _0x5e7bdb=_0x451375;this[_0x5e7bdb(0xdf)]||(this['_init']=!0x0,this[_0x5e7bdb(0xee)][_0x5e7bdb(0xe3)][_0x5e7bdb(0x89)](_0x261e2b(this[_0x5e7bdb(0xb8)]))[_0x5e7bdb(0xd1)](_0x44288a=>{var _0x504e32=_0x5e7bdb;switch(_0x44288a){case _0xd06163['OFFLINE']:this[_0x504e32(0xf3)]();break;case _0xd06163['ONLINE']:this[_0x504e32(0x109)]();break;}}),this['_collabSession']['event$']['pipe'](_0x261e2b(this[_0x5e7bdb(0xb8)]))['subscribe'](_0xb03598=>{var _0x344a64=_0x5e7bdb;const {eventID:_0x38f07f}=_0xb03598;switch(_0x38f07f){case _0x248176['LIVESHARE_NEW_HOST']:this[_0x344a64(0x85)](_0xb03598);break;case _0x248176[_0x344a64(0x11e)]:this[_0x344a64(0x83)](_0xb03598);break;case _0x248176[_0x344a64(0x8d)]:this['_handleTerminate']();break;case _0x248176[_0x344a64(0x8f)]:this[_0x344a64(0xbb)](_0xb03598);break;}}));}[_0x451375(0xfd)](){var _0x21abc4=_0x451375;this['_collabSession'][_0x21abc4(0xde)]({'eventID':_0x248176[_0x21abc4(0xc2)],'data':{'unitID':this[_0x21abc4(0xbe)],'userID':this['_collabSession'][_0x21abc4(0xff)]()}},this[_0x21abc4(0xbe)]);}[_0x451375(0xdd)](){var _0x7b7a4a=_0x451375;this[_0x7b7a4a(0xe1)]==='presenting'&&(this[_0x7b7a4a(0xb5)]['next']('idle'),this['_collabSession'][_0x7b7a4a(0xde)]({'eventID':_0x248176[_0x7b7a4a(0x8d)],'data':{'unitID':this[_0x7b7a4a(0xbe)]}},this['_unitID']));}[_0x451375(0xc4)](){var _0x4d6a3d=_0x451375;this[_0x4d6a3d(0xe1)]==='not-following'&&(this['_status$'][_0x4d6a3d(0x105)](_0x4d6a3d(0xfb)),this[_0x4d6a3d(0x91)]());}['stopFollowing'](){var _0x2baaae=_0x451375;this[_0x2baaae(0xe1)]===_0x2baaae(0xfb)&&this[_0x2baaae(0x113)]();}[_0x451375(0x85)](_0x12787f){var _0x319170=_0x451375;const {presenter:_0x44b10a}=_0x12787f['data'],_0xb153c3=this['_collabSession']['getMemberID']();this[_0x319170(0xb4)]=_0x44b10a,_0x44b10a===_0xb153c3?(this[_0x319170(0x113)](),this[_0x319170(0xd2)]()):this[_0x319170(0xe1)]!==_0x319170(0x9c)&&(this[_0x319170(0x11f)](),this['_startFollowing']());}[_0x451375(0x116)](){var _0x451ef0=_0x451375;const _0x4bef16={'eventID':_0x248176[_0x451ef0(0xaf)]};this[_0x451ef0(0xee)][_0x451ef0(0xde)](_0x4bef16,this[_0x451ef0(0xbe)]);}[_0x451375(0xf9)](){var _0x1dff1c=_0x451375;this[_0x1dff1c(0xb4)]=null,this['_status']!=='presenting'&&this[_0x1dff1c(0xc9)]();}[_0x451375(0xbb)](_0x343e27){var _0x4acffb=_0x451375;if(this[_0x4acffb(0xe1)]===_0x4acffb(0xfb)&&this[_0x4acffb(0xb4)]===_0x343e27[_0x4acffb(0x106)]['memberID']){const _0x2bf607=_0x17584c(_0x343e27[_0x4acffb(0x106)])[_0x4acffb(0x125)]['reverse']()[_0x4acffb(0x127)](_0x6e8be5=>_0x6e8be5['id']===_0x198dc6['id']);if(_0x2bf607){const _0x4b17c6=_0x2bf607[_0x4acffb(0xcb)]['unitId'],_0x471c42=_0x2bf607[_0x4acffb(0xcb)]['sheet']['id'];setTimeout(()=>{var _0x16814a=_0x4acffb;this[_0x16814a(0xb7)][_0x16814a(0x82)](_0x21f0ce['id'],{'unitId':_0x4b17c6,'subUnitId':_0x471c42},{'fromCollab':!0x0});});}}}[_0x451375(0xd2)](){var _0xad2cf4=_0x451375;this[_0xad2cf4(0xb5)][_0xad2cf4(0x105)]('presenting');const _0x1b7070=new Map(),_0x1b5804=this[_0xad2cf4(0xb1)]=new _0x1b939f();_0x1b5804[_0xad2cf4(0x8a)](_0x43b1a9(()=>{var _0x494faa=_0xad2cf4;_0x1b7070[_0x494faa(0xb2)](_0x708097=>_0x708097[_0x494faa(0xa2)]()),_0x1b7070[_0x494faa(0xd9)]();})),_0x1b5804[_0xad2cf4(0x8a)](this[_0xad2cf4(0xb7)][_0xad2cf4(0xed)](_0x427efd=>{var _0xabf870=_0xad2cf4,_0x44fb57;if(_0x427efd[_0xabf870(0xac)]!==_0x1862c6[_0xabf870(0xa7)]||!this[_0xabf870(0x102)][_0xabf870(0x92)](_0x427efd['id']))return;const {id:_0x2323f7}=_0x427efd;let _0x5161d5;_0x1b7070[_0xabf870(0xd3)](_0x2323f7)?_0x5161d5=_0x1b7070['get'](_0x2323f7):(_0x5161d5=new _0x1044e5(),_0x1b7070[_0xabf870(0x108)](_0x2323f7,_0x5161d5),_0x5161d5['pipe'](_0x28b226((_0x44fb57=this[_0xabf870(0x107)][_0xabf870(0x101)](Pe))!=null?_0x44fb57:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xabf870(0xd1)](_0x4e1fc3=>{var _0x5127d9=_0xabf870;this[_0x5127d9(0xee)]['send']({'eventID':_0x248176[_0x5127d9(0x11e)],'data':{'unitID':this[_0x5127d9(0xbe)],'operations':{[_0x4e1fc3['id']]:{'id':_0x4e1fc3['id'],'params':JSON[_0x5127d9(0x122)](_0x4e1fc3[_0x5127d9(0xcb)])}}}},this['_unitID']);})),_0x5161d5[_0xabf870(0x105)](_0x427efd);})),this[_0xad2cf4(0x102)][_0xad2cf4(0x9e)](this[_0xad2cf4(0xbe)])[_0xad2cf4(0xb2)](_0x5af010=>this[_0xad2cf4(0xee)][_0xad2cf4(0xde)]({'eventID':_0x248176[_0xad2cf4(0x11e)],'data':{'unitID':this[_0xad2cf4(0xbe)],'operations':{[_0x5af010['id']]:{'id':_0x5af010['id'],'params':JSON[_0xad2cf4(0x122)](_0x5af010[_0xad2cf4(0xcb)])}}}},this['_unitID']));}['_stopPresenting'](){var _0x2badc6=_0x451375,_0x1ceb0d;this[_0x2badc6(0xb5)][_0x2badc6(0x105)]('idle'),(_0x1ceb0d=this['_commandDisposable'])==null||_0x1ceb0d[_0x2badc6(0x117)](),this[_0x2badc6(0xb1)]=null;}[_0x451375(0x91)](){var _0xbc2e7=_0x451375,_0x3f009f;(_0x3f009f=this['_commandDisposable'])==null||_0x3f009f[_0xbc2e7(0x117)](),this[_0xbc2e7(0xb5)][_0xbc2e7(0x105)]('following');}[_0x451375(0xc9)](){var _0x7b2231=_0x451375,_0x9b4ecd;this[_0x7b2231(0xb5)]['next'](_0x7b2231(0xc0)),(_0x9b4ecd=this[_0x7b2231(0xb1)])==null||_0x9b4ecd[_0x7b2231(0x117)](),this['_commandDisposable']=null;}[_0x451375(0x113)](){var _0x4c770e=_0x451375,_0x113d7b;this['_status$'][_0x4c770e(0x105)]('not-following'),(_0x113d7b=this[_0x4c770e(0xb1)])==null||_0x113d7b['dispose']();}['_handleOperation'](_0x1a5ccc){var _0x527dfe=_0x451375;if(['presenting',_0x527dfe(0x9c),_0x527dfe(0xbc)][_0x527dfe(0xe9)](this['_status'])||!_0x1a5ccc['data'][_0x527dfe(0x120)]||_0x1a5ccc[_0x527dfe(0x106)][_0x527dfe(0x120)]===this[_0x527dfe(0xee)][_0x527dfe(0xff)]())return;this['_status']==='idle'&&this['_startFollowing']();const _0xb0e559=_0x1a5ccc[_0x527dfe(0x106)][_0x527dfe(0xec)];Object[_0x527dfe(0x100)](_0xb0e559)['forEach'](_0x49c313=>{var _0x544a45=_0x527dfe;this[_0x544a45(0xb7)][_0x544a45(0x82)](_0x49c313['id'],_0x49c313['params']?JSON[_0x544a45(0xfc)](_0x49c313[_0x544a45(0xcb)]):null,{'fromCollab':!0x0});});}[_0x451375(0xf3)](){var _0x4db867=_0x451375,_0x45686d;this[_0x4db867(0xb5)][_0x4db867(0x105)](_0x4db867(0xbc)),(_0x45686d=this['_commandDisposable'])==null||_0x45686d[_0x4db867(0x117)]();}[_0x451375(0x109)](){var _0x392a0a=_0x451375;this[_0x392a0a(0xb5)][_0x392a0a(0x105)](_0x392a0a(0xc0)),this[_0x392a0a(0x116)]();}};C=Z([f(0x2,_0x346109),f(0x3,_0x28c77f(L)),f(0x4,_0x4a09d4)],C);function Te(){var _0x2327f3=_0x451375;const _0x48ff66=_0x2de017(I),_0x441d35=_0x2de017(_0x3e5199),_0x47257a=_0x25276a(()=>_0x441d35[_0x2327f3(0x12a)](_0x4c20a0[_0x2327f3(0xf1)]),void 0x0,!0x1,[]),[_0x2e6505,_0xae1bc]=_0x55d604(null),[_0x1ac521,_0x33ceca]=_0x55d604(h[_0x2327f3(0xb0)]),_0x45a0db=_0x48017c(null);return _0x44053b(()=>(_0x47257a&&_0x48ff66[_0x2327f3(0xcc)](_0x47257a[_0x2327f3(0xab)]())[_0x2327f3(0xd0)](_0x3c6371=>{var _0x26f634=_0x2327f3;_0xae1bc(_0x3c6371),_0x45a0db['current']=_0x3c6371[_0x26f634(0x88)][_0x26f634(0xd1)](_0x5bd015=>{_0x33ceca(_0x5bd015);});}),()=>{var _0x6dbefd=_0x2327f3,_0x8a6c67;(_0x8a6c67=_0x45a0db[_0x6dbefd(0x118)])==null||_0x8a6c67[_0x6dbefd(0xf8)](),_0x45a0db['current']=null;}),[_0x47257a,_0x48ff66]),_0x2e6505?_0x5aa147(_0x159863,{'align':_0x2327f3(0x9d),'disabled':_0x1ac521===h[_0x2327f3(0xb9)],'className':'univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','overlay':_0x5aa147($e,{'status':_0x1ac521,'coordinator':_0x2e6505}),'children':_0x5aa147(_0x2327f3(0xf5),{'className':_0x87598b('univer-border-none\x20univer-text-gray-600\x20univer-outline-none',{'univer-cursor-not-allowed':_0x1ac521===h[_0x2327f3(0xb9)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1ac521!==h[_0x2327f3(0xb9)]}),'type':_0x2327f3(0xf5),'children':_0x5aa147(B,{'className':_0x2327f3(0x111)})})}):null;}function $e(_0x4731bd){var _0x185e7e=_0x451375;const {status:_0x2e0820,coordinator:_0x437528}=_0x4731bd;switch(_0x2e0820){case h['IDLE']:return _0x5aa147(Fe,{'coordinator':_0x437528});case h[_0x185e7e(0xef)]:return _0x5aa147(He,{'coordinator':_0x437528});case h['NOT_FOLLOWING']:return _0x5aa147(je,{'coordinator':_0x437528});case h[_0x185e7e(0xb9)]:return _0x5aa147(Ve,{});case h['PRESENTING']:return _0x5aa147(Ue,{'coordinator':_0x437528});default:return null;}}function Fe(_0x81a50f){var _0x238dd8=_0x451375;const {coordinator:_0x366f8d}=_0x81a50f;return _0x2b969d(_0x5b6ea3,{'children':[_0x5aa147(_0x238dd8(0xd7),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x238dd8(0xa3)}),_0x5aa147(_0x352964,{'onClick':()=>_0x366f8d[_0x238dd8(0xfd)](),'children':'Start'})]});}function He(_0x58ecba){var _0x374d5e=_0x451375;const {coordinator:_0x4d3ed5}=_0x58ecba;return _0x2b969d(_0x5b6ea3,{'children':[_0x5aa147(_0x374d5e(0xd7),{'className':_0x374d5e(0xd6),'children':_0x374d5e(0x103)}),_0x5aa147(_0x352964,{'onClick':()=>_0x4d3ed5[_0x374d5e(0x90)](),'children':_0x374d5e(0x129)})]});}function je(_0x510960){var _0x465aa5=_0x451375;const {coordinator:_0x248453}=_0x510960;return _0x2b969d(_0x5b6ea3,{'children':[_0x5aa147(_0x465aa5(0xd7),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x465aa5(0x86)}),_0x5aa147(_0x352964,{'variant':_0x465aa5(0x98),'onClick':()=>_0x248453['startFollowing'](),'children':'Start\x20following'})]});}function Ue(_0x23dc1b){var _0x6f889c=_0x451375;const {coordinator:_0x5f4f84}=_0x23dc1b;return _0x2b969d(_0x5b6ea3,{'children':[_0x5aa147(_0x6f889c(0xd7),{'className':_0x6f889c(0xd6),'children':_0x6f889c(0x124)}),_0x5aa147(_0x352964,{'variant':_0x6f889c(0xa6),'onClick':()=>_0x5f4f84[_0x6f889c(0xdd)](),'children':'Stop\x20presenting'})]});}function Ve(){var _0x2fda1d=_0x451375;return _0x5aa147(_0x5b6ea3,{'children':_0x2fda1d(0x128)});}var Me=Object[_0x451375(0x11d)],ke=(_0x570146,_0x5e55bd,_0x339ca5,_0x3f5675)=>{for(var _0x4bf585=_0x3f5675>0x1?void 0x0:_0x3f5675?Me(_0x5e55bd,_0x339ca5):_0x5e55bd,_0x4ec0c8=_0x570146['length']-0x1,_0x3939e1;_0x4ec0c8>=0x0;_0x4ec0c8--)(_0x3939e1=_0x570146[_0x4ec0c8])&&(_0x4bf585=_0x3939e1(_0x4bf585)||_0x4bf585);return _0x4bf585;},$=(_0xcc8bba,_0x406f94)=>(_0x250d55,_0x24e081)=>_0x406f94(_0x250d55,_0x24e081,_0xcc8bba);let b=class extends _0x2313b0{constructor(_0x16662e,_0x435ddb){var _0x410118=_0x451375;super(),this[_0x410118(0xc6)]=_0x16662e,this[_0x410118(0xad)]=_0x435ddb,this[_0x410118(0x97)]();}[_0x451375(0x97)](){var _0x6b6d42=_0x451375;this[_0x6b6d42(0xe8)](this[_0x6b6d42(0xad)][_0x6b6d42(0x10a)](_0x51a6c7[_0x6b6d42(0xda)],()=>_0x2c0420(Te,this[_0x6b6d42(0xc6)])));}};function _0xa190(_0x32c439,_0x2d498f){var _0x5bdd32=_0x5bdd();return _0xa190=function(_0xa19085,_0xc55785){_0xa19085=_0xa19085-0x80;var _0xeab724=_0x5bdd32[_0xa19085];return _0xeab724;},_0xa190(_0x32c439,_0x2d498f);}b=ke([$(0x0,_0x28c77f(_0x335107)),$(0x1,_0xb65b9)],b);var Ge=Object[_0x451375(0xae)],We=Object[_0x451375(0x11d)],Ye=(_0x18d7aa,_0x445b22,_0x5989cd)=>_0x445b22 in _0x18d7aa?Ge(_0x18d7aa,_0x445b22,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5989cd}):_0x18d7aa[_0x445b22]=_0x5989cd,Be=(_0x2c0ed6,_0x8470f6,_0x2a43bf,_0x3e765a)=>{var _0x5b0760=_0x451375;for(var _0x2388d3=_0x3e765a>0x1?void 0x0:_0x3e765a?We(_0x8470f6,_0x2a43bf):_0x8470f6,_0x360398=_0x2c0ed6[_0x5b0760(0x8c)]-0x1,_0x2697e3;_0x360398>=0x0;_0x360398--)(_0x2697e3=_0x2c0ed6[_0x360398])&&(_0x2388d3=_0x2697e3(_0x2388d3)||_0x2388d3);return _0x2388d3;},F=(_0x54775e,_0x28c224)=>(_0x37f304,_0x8fce35)=>_0x28c224(_0x37f304,_0x8fce35,_0x54775e),J=(_0x45a759,_0x51ab50,_0x7823dd)=>Ye(_0x45a759,typeof _0x51ab50!=_0x451375(0xd5)?_0x51ab50+'':_0x51ab50,_0x7823dd);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x1c27e2{constructor(_0x295921=T,_0x148e91,_0x672e2e){var _0x5054f2=_0x451375;super(),this[_0x5054f2(0x9b)]=_0x295921,this[_0x5054f2(0xc6)]=_0x148e91,this[_0x5054f2(0x107)]=_0x672e2e;const {..._0x1ea8db}=_0x3c06a8({},T,this[_0x5054f2(0x9b)]);this[_0x5054f2(0x107)][_0x5054f2(0x114)](Oe,_0x1ea8db);}[_0x451375(0xb6)](){var _0x3ffa5e=_0x451375;_0x4552ae(this[_0x3ffa5e(0xc6)],_0x32a788([[L],[I],[m],[b]],this['_config'][_0x3ffa5e(0x99)])),_0x21a21b(this['_injector'],[[m]]);}[_0x451375(0x10b)](){var _0x1b8371=_0x451375;_0x21a21b(this[_0x1b8371(0xc6)],[[b]]);}};J(O,_0x451375(0xac),_0x4c20a0[_0x451375(0x119)]),J(O,'pluginName',Ze),O=Be([_0x32035a(_0x1dd0cd),F(0x1,_0x28c77f(_0x335107)),F(0x2,_0x346109)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- (function(_0x8fc982,_0x349e9f){var _0x32dc5d=_0x6915,_0x257837=_0x8fc982();while(!![]){try{var _0x5c23ca=parseInt(_0x32dc5d(0x1b3))/0x1*(parseInt(_0x32dc5d(0x243))/0x2)+parseInt(_0x32dc5d(0x272))/0x3*(-parseInt(_0x32dc5d(0x224))/0x4)+parseInt(_0x32dc5d(0x1d0))/0x5*(-parseInt(_0x32dc5d(0x203))/0x6)+parseInt(_0x32dc5d(0x1c1))/0x7*(parseInt(_0x32dc5d(0x1ae))/0x8)+-parseInt(_0x32dc5d(0x265))/0x9+-parseInt(_0x32dc5d(0x1ed))/0xa+parseInt(_0x32dc5d(0x1f1))/0xb;if(_0x5c23ca===_0x349e9f)break;else _0x257837['push'](_0x257837['shift']());}catch(_0xa67862){_0x257837['push'](_0x257837['shift']());}}}(_0x18a6,0x57128),function(_0x458a95,_0x5b747b){var _0x113d13=_0x6915;typeof exports==_0x113d13(0x29b)&&typeof module<'u'?_0x5b747b(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define==_0x113d13(0x230)&&define[_0x113d13(0x294)]?define([_0x113d13(0x20f),'@univerjs-pro/collaboration-client','@univerjs/core',_0x113d13(0x26a),_0x113d13(0x1c6),_0x113d13(0x28f),_0x113d13(0x1a8),_0x113d13(0x1bb),_0x113d13(0x212),_0x113d13(0x219),_0x113d13(0x1a9),_0x113d13(0x293)],_0x5b747b):(_0x458a95=typeof globalThis<'u'?globalThis:_0x458a95||self,_0x5b747b(_0x458a95[_0x113d13(0x22c)]={},_0x458a95[_0x113d13(0x221)],_0x458a95[_0x113d13(0x1d3)],_0x458a95[_0x113d13(0x238)],_0x458a95['UniverSheetsUi'],_0x458a95[_0x113d13(0x288)],_0x458a95[_0x113d13(0x207)],_0x458a95[_0x113d13(0x223)],_0x458a95[_0x113d13(0x207)],_0x458a95[_0x113d13(0x25a)],_0x458a95[_0x113d13(0x1a9)],_0x458a95[_0x113d13(0x1a9)][_0x113d13(0x1f0)]));}(this,function(_0x56259b,_0x25c12f,_0x2b7017,_0x2dcc44,_0x483512,_0x558d9b,_0x1baef6,_0x4f2ab1,_0x5c1116,_0x3c711c,_0x298f1e,_0x5e4e89){'use strict';var _0x2dae78=_0x6915;var _0xbb4e6=Object[_0x2dae78(0x1e6)],_0x2186ed=(_0x495420,_0x3189dd,_0x539851)=>_0x3189dd in _0x495420?_0xbb4e6(_0x495420,_0x3189dd,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x539851}):_0x495420[_0x3189dd]=_0x539851,_0x173f71=(_0x4b5f96,_0x59f388,_0x4e0be6)=>_0x2186ed(_0x4b5f96,typeof _0x59f388!='symbol'?_0x59f388+'':_0x59f388,_0x4e0be6);const _0x245a56=_0x2dae78(0x21e),_0x1f924c={};class _0x561933 extends _0x2b7017['Disposable']{constructor(){var _0x1b63be=_0x2dae78;super(...arguments),_0x173f71(this,_0x1b63be(0x1d6),new Set()),_0x173f71(this,_0x1b63be(0x23b),new Set());}[_0x2dae78(0x261)](_0x2f57b4){var _0x839a26=_0x2dae78;return this[_0x839a26(0x1d6)][_0x839a26(0x1b8)](_0x2f57b4),_0x2b7017['toDisposable'](()=>this[_0x839a26(0x1d6)]['delete'](_0x2f57b4));}[_0x2dae78(0x253)](_0x325b80){var _0x51187d=_0x2dae78;return this['_reporters'][_0x51187d(0x1b8)](_0x325b80),_0x2b7017[_0x51187d(0x1d1)](()=>this[_0x51187d(0x23b)][_0x51187d(0x1b6)](_0x325b80));}[_0x2dae78(0x29d)](_0x172dc7){var _0x350b48=_0x2dae78;return this[_0x350b48(0x1d6)][_0x350b48(0x21d)](_0x172dc7);}['getInitialStates'](_0xa065e2){var _0x55eed9=_0x2dae78;return Array[_0x55eed9(0x247)](this[_0x55eed9(0x23b)])['map'](_0x5d7c36=>_0x5d7c36(_0xa065e2));}}var _0x31f5ce=Object[_0x2dae78(0x246)],_0x136645=(_0x1f1f76,_0x5b3f41,_0x1e88c9,_0x1956fb)=>{var _0x3e7c3e=_0x2dae78;for(var _0x39b618=_0x1956fb>0x1?void 0x0:_0x1956fb?_0x31f5ce(_0x5b3f41,_0x1e88c9):_0x5b3f41,_0x5e172c=_0x1f1f76[_0x3e7c3e(0x209)]-0x1,_0x5ca725;_0x5e172c>=0x0;_0x5e172c--)(_0x5ca725=_0x1f1f76[_0x5e172c])&&(_0x39b618=_0x5ca725(_0x39b618)||_0x39b618);return _0x39b618;},_0x284e80=(_0x362edc,_0x272936)=>(_0x285c1a,_0x22f433)=>_0x272936(_0x285c1a,_0x22f433,_0x362edc);let _0x29c2bc=class extends _0x2b7017[_0x2dae78(0x1b0)]{constructor(_0x58e077){var _0x4d7962=_0x2dae78;super(),this[_0x4d7962(0x244)]=_0x58e077,this['_init']();}[_0x2dae78(0x1d9)](){var _0x5e497e=_0x2dae78;[_0x483512['SetZoomRatioOperation']['id'],_0x483512['SetScrollOperation']['id'],_0x2dcc44[_0x5e497e(0x1ad)]['id']][_0x5e497e(0x1bd)](_0x218c9e=>{var _0x27e900=_0x5e497e;this[_0x27e900(0x24a)](this['_liveShareService'][_0x27e900(0x261)](_0x218c9e));});}};_0x29c2bc=_0x136645([_0x284e80(0x0,_0x2b7017['Inject'](_0x561933))],_0x29c2bc);var _0x37a525=function(){var _0x159c67=_0x2dae78;return _0x37a525=Object[_0x159c67(0x1e7)]||function(_0x2d5cc6){var _0x1a6092=_0x159c67;for(var _0xad2d72,_0x9b8ce5=0x1,_0x3513cd=arguments[_0x1a6092(0x209)];_0x9b8ce5<_0x3513cd;_0x9b8ce5++){_0xad2d72=arguments[_0x9b8ce5];for(var _0x45a02d in _0xad2d72)Object[_0x1a6092(0x1a4)]['hasOwnProperty'][_0x1a6092(0x281)](_0xad2d72,_0x45a02d)&&(_0x2d5cc6[_0x45a02d]=_0xad2d72[_0x45a02d]);}return _0x2d5cc6;},_0x37a525[_0x159c67(0x226)](this,arguments);},_0x502002=function(_0x89fdb2,_0x27a215){var _0x2d3468=_0x2dae78,_0x4117a4={};for(var _0x55b9d1 in _0x89fdb2)Object[_0x2d3468(0x1a4)][_0x2d3468(0x1c7)][_0x2d3468(0x281)](_0x89fdb2,_0x55b9d1)&&_0x27a215[_0x2d3468(0x295)](_0x55b9d1)<0x0&&(_0x4117a4[_0x55b9d1]=_0x89fdb2[_0x55b9d1]);if(_0x89fdb2!=null&&typeof Object[_0x2d3468(0x1ff)]==_0x2d3468(0x230)){for(var _0x7e7f6d=0x0,_0x55b9d1=Object['getOwnPropertySymbols'](_0x89fdb2);_0x7e7f6d<_0x55b9d1[_0x2d3468(0x209)];_0x7e7f6d++)_0x27a215['indexOf'](_0x55b9d1[_0x7e7f6d])<0x0&&Object[_0x2d3468(0x1a4)][_0x2d3468(0x1ea)][_0x2d3468(0x281)](_0x89fdb2,_0x55b9d1[_0x7e7f6d])&&(_0x4117a4[_0x55b9d1[_0x7e7f6d]]=_0x89fdb2[_0x55b9d1[_0x7e7f6d]]);}return _0x4117a4;},_0x3b5527=_0x5c1116[_0x2dae78(0x1e9)](function(_0x3c97c1,_0xda89d){var _0x225f56=_0x2dae78,_0x485157=_0x3c97c1[_0x225f56(0x211)],_0x447b1b=_0x3c97c1['id'],_0x4e5471=_0x3c97c1[_0x225f56(0x214)],_0x517452=_0x3c97c1[_0x225f56(0x240)],_0xac121f=_0x502002(_0x3c97c1,['icon','id',_0x225f56(0x214),_0x225f56(0x240)]),_0x376f98=_0x225f56(0x1b5)[_0x225f56(0x255)](_0x447b1b,'\x20')[_0x225f56(0x255)](_0x4e5471||'')[_0x225f56(0x1fc)](),_0x4c4880=_0x5c1116[_0x225f56(0x29c)]('_'[_0x225f56(0x255)](_0x458c40()));return _0x170f3e(_0x485157,''[_0x225f56(0x255)](_0x447b1b),{'defIds':_0x485157[_0x225f56(0x200)],'idSuffix':_0x4c4880[_0x225f56(0x259)]},_0x37a525({'ref':_0xda89d,'className':_0x376f98},_0xac121f),_0x517452);});function _0x170f3e(_0x5a7212,_0x2706f8,_0x5a67a5,_0xe337cb,_0x529fc3){var _0x494119=_0x2dae78;return _0x5c1116[_0x494119(0x205)](_0x5a7212['tag'],_0x37a525(_0x37a525({'key':_0x2706f8},_0x48b829(_0x5a7212,_0x5a67a5,_0x529fc3)),_0xe337cb),(_0x101075(_0x5a7212,_0x5a67a5)[_0x494119(0x21f)]||[])[_0x494119(0x206)](function(_0x36019e,_0x5bf622){var _0x5b23a7=_0x494119;return _0x170f3e(_0x36019e,''[_0x5b23a7(0x255)](_0x2706f8,'-')[_0x5b23a7(0x255)](_0x5a7212[_0x5b23a7(0x202)],'-')[_0x5b23a7(0x255)](_0x5bf622),_0x5a67a5,void 0x0,_0x529fc3);}));}function _0x48b829(_0x353084,_0x3c4c25,_0x8018a){var _0x3da6d2=_0x2dae78,_0x56b614=_0x37a525({},_0x353084['attrs']);_0x8018a!=null&&_0x8018a[_0x3da6d2(0x27e)]&&_0x56b614[_0x3da6d2(0x23e)]==='colorChannel1'&&(_0x56b614[_0x3da6d2(0x23e)]=_0x8018a['colorChannel1']),_0x353084[_0x3da6d2(0x202)]===_0x3da6d2(0x1d8)&&_0x56b614['id']&&(_0x56b614['id']=_0x56b614['id']+_0x3c4c25['idSuffix']),Object[_0x3da6d2(0x269)](_0x56b614)[_0x3da6d2(0x1bd)](function(_0x26a66a){var _0x7507c0=_0x3da6d2,_0x4b4eb0=_0x26a66a[0x0],_0x444fce=_0x26a66a[0x1];_0x4b4eb0===_0x7507c0(0x1d8)&&typeof _0x444fce=='string'&&(_0x56b614[_0x4b4eb0]=_0x444fce[_0x7507c0(0x25f)](/url\(#(.*)\)/,_0x7507c0(0x252)['concat'](_0x3c4c25['idSuffix'],')')));});var _0x166757=_0x3c4c25[_0x3da6d2(0x200)];return!_0x166757||_0x166757[_0x3da6d2(0x209)]===0x0||(_0x353084[_0x3da6d2(0x202)]===_0x3da6d2(0x251)&&_0x56b614[_0x3da6d2(0x1f9)]&&(_0x56b614[_0x3da6d2(0x1f9)]=_0x56b614['xlink:href']+_0x3c4c25[_0x3da6d2(0x227)]),Object[_0x3da6d2(0x269)](_0x56b614)[_0x3da6d2(0x1bd)](function(_0x1dc433){var _0x4ee982=_0x3da6d2,_0x3982ff=_0x1dc433[0x0],_0x2b925a=_0x1dc433[0x1];typeof _0x2b925a==_0x4ee982(0x24f)&&(_0x56b614[_0x3982ff]=_0x2b925a[_0x4ee982(0x25f)](/url\(#(.*)\)/,_0x4ee982(0x252)['concat'](_0x3c4c25[_0x4ee982(0x227)],')')));})),_0x56b614;}function _0x101075(_0x4a6b7c,_0x287fb8){var _0x16e006=_0x2dae78,_0x288ff7,_0x4f34cf=_0x287fb8[_0x16e006(0x200)];return!_0x4f34cf||_0x4f34cf[_0x16e006(0x209)]===0x0?_0x4a6b7c:_0x4a6b7c[_0x16e006(0x202)]===_0x16e006(0x1fe)&&(!((_0x288ff7=_0x4a6b7c[_0x16e006(0x21f)])===null||_0x288ff7===void 0x0)&&_0x288ff7['length'])?_0x37a525(_0x37a525({},_0x4a6b7c),{'children':_0x4a6b7c[_0x16e006(0x21f)][_0x16e006(0x206)](function(_0x4e08bc){var _0x21c902=_0x16e006;return typeof _0x4e08bc[_0x21c902(0x1a3)]['id']=='string'&&_0x4f34cf&&_0x4f34cf[_0x21c902(0x208)](_0x4e08bc[_0x21c902(0x1a3)]['id'])?_0x37a525(_0x37a525({},_0x4e08bc),{'attrs':_0x37a525(_0x37a525({},_0x4e08bc[_0x21c902(0x1a3)]),{'id':_0x4e08bc['attrs']['id']+_0x287fb8[_0x21c902(0x227)]})}):_0x4e08bc;})}):_0x4a6b7c;}function _0x458c40(){var _0x334ce7=_0x2dae78;return Math[_0x334ce7(0x1bc)]()[_0x334ce7(0x278)](0x24)[_0x334ce7(0x273)](0x2,0x8);}_0x3b5527[_0x2dae78(0x283)]='UniverIcon';var _0x2df275={'tag':_0x2dae78(0x20a),'attrs':{'xmlns':_0x2dae78(0x1de),'fill':'none','viewBox':_0x2dae78(0x274),'width':_0x2dae78(0x1e8),'height':'1em'},'children':[{'tag':_0x2dae78(0x1cd),'attrs':{'fill':_0x2dae78(0x287),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x2dae78(0x287),'d':_0x2dae78(0x1c3),'fillRule':_0x2dae78(0x1c2),'clipRule':'evenodd'}}]},_0x34ee0e=_0x5c1116['forwardRef'](function(_0x4d585a,_0x56c3fd){var _0xecb1fb=_0x2dae78;return _0x5c1116[_0xecb1fb(0x205)](_0x3b5527,Object[_0xecb1fb(0x1e7)]({},_0x4d585a,{'id':_0xecb1fb(0x271),'ref':_0x56c3fd,'icon':_0x2df275}));});_0x34ee0e[_0x2dae78(0x283)]=_0x2dae78(0x290);var _0x4663d4=Object['getOwnPropertyDescriptor'],_0x3ddac3=(_0xdf5b9a,_0xff3aca,_0x31b648,_0x3094cf)=>{for(var _0x23d8a8=_0x3094cf>0x1?void 0x0:_0x3094cf?_0x4663d4(_0xff3aca,_0x31b648):_0xff3aca,_0xf8e404=_0xdf5b9a['length']-0x1,_0x332839;_0xf8e404>=0x0;_0xf8e404--)(_0x332839=_0xdf5b9a[_0xf8e404])&&(_0x23d8a8=_0x332839(_0x23d8a8)||_0x23d8a8);return _0x23d8a8;},_0x3c706d=(_0x4236f1,_0x332786)=>(_0x3a5acf,_0x12e8ca)=>_0x332786(_0x3a5acf,_0x12e8ca,_0x4236f1);_0x56259b['LiveShareController']=class extends _0x2b7017[_0x2dae78(0x1c5)]{constructor(_0x4b2c0a,_0x36ce6a,_0x19b537){var _0x5a1617=_0x2dae78;super(),_0x173f71(this,'_entities',new Map()),(this['_univerInstanceService']=_0x4b2c0a,this[_0x5a1617(0x28e)]=_0x36ce6a,this['_collabSessionService']=_0x19b537,this[_0x5a1617(0x1d9)]());}async[_0x2dae78(0x1dd)](_0x378de0){var _0x4edf33=_0x2dae78;return this[_0x4edf33(0x22f)][_0x4edf33(0x21d)](_0x378de0)||await this[_0x4edf33(0x21b)](_0x378de0),this[_0x4edf33(0x22f)][_0x4edf33(0x220)](_0x378de0);}['_init'](){var _0x4d0a39=_0x2dae78;this[_0x4d0a39(0x1d7)][_0x4d0a39(0x24b)](_0x2b7017[_0x4d0a39(0x249)][_0x4d0a39(0x250)])['pipe'](_0x5e4e89[_0x4d0a39(0x210)](this[_0x4d0a39(0x296)]))[_0x4d0a39(0x26f)](async _0x3cd509=>{var _0x1e4abc=_0x4d0a39;const _0x31f3a0=_0x3cd509[_0x1e4abc(0x23c)]();this[_0x1e4abc(0x22f)][_0x1e4abc(0x21d)](_0x31f3a0)||this[_0x1e4abc(0x21b)](_0x31f3a0);}),this[_0x4d0a39(0x1d7)]['getTypeOfUnitDisposed$'](_0x2b7017[_0x4d0a39(0x249)]['UNIVER_SHEET'])[_0x4d0a39(0x279)](_0x5e4e89[_0x4d0a39(0x210)](this['dispose$']))['subscribe'](_0x185184=>{var _0x303e6f=_0x4d0a39;const _0x3e69d7=_0x185184[_0x303e6f(0x23c)](),_0x5f362b=this[_0x303e6f(0x22f)][_0x303e6f(0x220)](_0x3e69d7);_0x5f362b==null||_0x5f362b['dispose']();});}async['_startLiveShareCoordinator'](_0x38ae8f){var _0x72ebd=_0x2dae78;const _0x4a986d=await this[_0x72ebd(0x262)][_0x72ebd(0x1cc)](_0x38ae8f),_0xf1d85e=this[_0x72ebd(0x28e)]['createInstance'](_0x56259b[_0x72ebd(0x1fd)],_0x38ae8f,_0x4a986d);return _0xf1d85e[_0x72ebd(0x1ac)](),this[_0x72ebd(0x22f)]['set'](_0x38ae8f,_0xf1d85e),_0xf1d85e;}},_0x56259b['LiveShareController']=_0x3ddac3([_0x3c706d(0x0,_0x2b7017[_0x2dae78(0x1c8)]),_0x3c706d(0x1,_0x2b7017['Inject'](_0x2b7017['Injector'])),_0x3c706d(0x2,_0x2b7017['Inject'](_0x25c12f[_0x2dae78(0x1dc)]))],_0x56259b[_0x2dae78(0x1e2)]);var _0x8b9dfd=(_0x2e8cbf=>(_0x2e8cbf['OFFLINE']='offline',_0x2e8cbf[_0x2dae78(0x235)]=_0x2dae78(0x216),_0x2e8cbf[_0x2dae78(0x28b)]=_0x2dae78(0x23a),_0x2e8cbf[_0x2dae78(0x284)]=_0x2dae78(0x1b4),_0x2e8cbf[_0x2dae78(0x267)]='presenting',_0x2e8cbf))(_0x8b9dfd||{});const _0x25810f=_0x2dae78(0x1e0),_0x1ec601=0xc8;_0x56259b[_0x2dae78(0x1fd)]=class extends _0x2b7017[_0x2dae78(0x1c5)]{constructor(_0x1efd6f,_0x2c239c,_0x399a35,_0x5ac91e,_0x5aa2ed){var _0x10dac4=_0x2dae78;super(),_0x173f71(this,_0x10dac4(0x291),new _0x298f1e[(_0x10dac4(0x27d))](_0x10dac4(0x216))),_0x173f71(this,_0x10dac4(0x1b9),this['_status$'][_0x10dac4(0x233)]()),_0x173f71(this,_0x10dac4(0x1d9),!0x1),_0x173f71(this,_0x10dac4(0x258),null),_0x173f71(this,_0x10dac4(0x231),null),(this[_0x10dac4(0x280)]=_0x1efd6f,this[_0x10dac4(0x234)]=_0x2c239c,this[_0x10dac4(0x298)]=_0x399a35,this[_0x10dac4(0x244)]=_0x5ac91e,this[_0x10dac4(0x289)]=_0x5aa2ed);}get[_0x2dae78(0x275)](){var _0x43932b=_0x2dae78;return this[_0x43932b(0x291)][_0x43932b(0x1d4)]();}[_0x2dae78(0x22a)](){var _0x3dcbf8=_0x2dae78,_0x1a5f20;(_0x1a5f20=this[_0x3dcbf8(0x258)])==null||_0x1a5f20[_0x3dcbf8(0x22a)](),this['_status$'][_0x3dcbf8(0x27b)](_0x3dcbf8(0x216)),this[_0x3dcbf8(0x291)][_0x3dcbf8(0x217)]();}[_0x2dae78(0x1ac)](){var _0x4b918f=_0x2dae78;this[_0x4b918f(0x1d9)]||(this[_0x4b918f(0x1d9)]=!0x0,this[_0x4b918f(0x234)][_0x4b918f(0x285)]['pipe'](_0x5e4e89[_0x4b918f(0x210)](this[_0x4b918f(0x296)]))['subscribe'](_0x2868c6=>{var _0x13cebd=_0x4b918f;switch(_0x2868c6){case _0x25c12f['SessionStatus'][_0x13cebd(0x1e1)]:this[_0x13cebd(0x299)]();break;case _0x25c12f[_0x13cebd(0x21a)][_0x13cebd(0x218)]:this['_handleOnline']();break;}}),this['_collabSession']['event$']['pipe'](_0x5e4e89['takeUntil'](this[_0x4b918f(0x296)]))[_0x4b918f(0x26f)](_0x1c6e0b=>{var _0x10fa84=_0x4b918f;const {eventID:_0x2f4b0c}=_0x1c6e0b;switch(_0x2f4b0c){case _0x3c711c[_0x10fa84(0x1b7)][_0x10fa84(0x260)]:this[_0x10fa84(0x277)](_0x1c6e0b);break;case _0x3c711c['CollaborationEvent'][_0x10fa84(0x286)]:this[_0x10fa84(0x236)](_0x1c6e0b);break;case _0x3c711c[_0x10fa84(0x1b7)][_0x10fa84(0x29a)]:this[_0x10fa84(0x1f2)]();break;case _0x3c711c[_0x10fa84(0x1b7)][_0x10fa84(0x215)]:this['_handleNewChangeSets'](_0x1c6e0b);break;}}));}[_0x2dae78(0x1ee)](){var _0x47bb77=_0x2dae78;this[_0x47bb77(0x234)][_0x47bb77(0x228)]({'eventID':_0x3c711c[_0x47bb77(0x1b7)][_0x47bb77(0x1d2)],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x47bb77(0x256)]()}},this[_0x47bb77(0x280)]);}[_0x2dae78(0x24d)](){var _0x1a4dd1=_0x2dae78;this[_0x1a4dd1(0x275)]===_0x1a4dd1(0x26c)&&(this['_status$']['next'](_0x1a4dd1(0x216)),this[_0x1a4dd1(0x234)]['send']({'eventID':_0x3c711c['CollaborationEvent'][_0x1a4dd1(0x29a)],'data':{'unitID':this[_0x1a4dd1(0x280)]}},this[_0x1a4dd1(0x280)]));}[_0x2dae78(0x1ef)](){var _0x49ff62=_0x2dae78;this['_status']==='not-following'&&(this[_0x49ff62(0x291)][_0x49ff62(0x27b)](_0x49ff62(0x23a)),this[_0x49ff62(0x263)]());}[_0x2dae78(0x1a6)](){var _0x5f09c7=_0x2dae78;this[_0x5f09c7(0x275)]==='following'&&this[_0x5f09c7(0x20b)]();}[_0x2dae78(0x277)](_0x498175){var _0x5295db=_0x2dae78;const {presenter:_0x35f540}=_0x498175[_0x5295db(0x1ba)],_0xfe4a3b=this[_0x5295db(0x234)][_0x5295db(0x256)]();this[_0x5295db(0x231)]=_0x35f540,_0x35f540===_0xfe4a3b?(this['_stopFollowing'](),this[_0x5295db(0x23f)]()):this[_0x5295db(0x275)]!==_0x5295db(0x1b4)&&(this[_0x5295db(0x20d)](),this['_startFollowing']());}['_fetchOperations'](){var _0x11c528=_0x2dae78;const _0x3444b6={'eventID':_0x3c711c['CollaborationEvent']['LIVESHARE_FETCH_OPERATIONS']};this['_collabSession'][_0x11c528(0x228)](_0x3444b6,this[_0x11c528(0x280)]);}['_handleTerminate'](){var _0x353f90=_0x2dae78;this[_0x353f90(0x231)]=null,this[_0x353f90(0x275)]!==_0x353f90(0x26c)&&this[_0x353f90(0x1fb)]();}[_0x2dae78(0x242)](_0x1d9eda){var _0x296564=_0x2dae78;if(this[_0x296564(0x275)]==='following'&&this[_0x296564(0x231)]===_0x1d9eda[_0x296564(0x1ba)][_0x296564(0x28c)]){const _0x222200=_0x3c711c[_0x296564(0x257)](_0x1d9eda[_0x296564(0x1ba)])[_0x296564(0x1f7)][_0x296564(0x1f5)]()[_0x296564(0x204)](_0x2bcf3a=>_0x2bcf3a['id']===_0x2dcc44['InsertSheetMutation']['id']);if(_0x222200){const _0x255ff0=_0x222200[_0x296564(0x25c)][_0x296564(0x28a)],_0x3f527a=_0x222200['params'][_0x296564(0x1d5)]['id'];setTimeout(()=>{var _0x279ec3=_0x296564;this[_0x279ec3(0x289)][_0x279ec3(0x270)](_0x2dcc44[_0x279ec3(0x1ad)]['id'],{'unitId':_0x255ff0,'subUnitId':_0x3f527a},{'fromCollab':!0x0});});}}}[_0x2dae78(0x23f)](){var _0x3980f9=_0x2dae78;this[_0x3980f9(0x291)][_0x3980f9(0x27b)]('presenting');const _0x4956d3=new Map(),_0xfa15c9=this[_0x3980f9(0x258)]=new _0x2b7017[(_0x3980f9(0x232))]();_0xfa15c9['add'](_0x2b7017[_0x3980f9(0x1d1)](()=>{var _0x587775=_0x3980f9;_0x4956d3['forEach'](_0x113086=>_0x113086['complete']()),_0x4956d3[_0x587775(0x28d)]();})),_0xfa15c9['add'](this['_commandService']['onCommandExecuted'](_0xe2e216=>{var _0xb56a76=_0x3980f9,_0x51c7aa;if(_0xe2e216[_0xb56a76(0x276)]!==_0x2b7017[_0xb56a76(0x1c9)]['OPERATION']||!this[_0xb56a76(0x244)]['shouldShareOperation'](_0xe2e216['id']))return;const {id:_0x44db50}=_0xe2e216;let _0x567999;_0x4956d3[_0xb56a76(0x21d)](_0x44db50)?_0x567999=_0x4956d3[_0xb56a76(0x220)](_0x44db50):(_0x567999=new _0x298f1e[(_0xb56a76(0x248))](),_0x4956d3[_0xb56a76(0x1f3)](_0x44db50,_0x567999),_0x567999[_0xb56a76(0x279)](_0x5e4e89['throttleTime']((_0x51c7aa=this['_configService'][_0xb56a76(0x1b2)](_0x25810f))!=null?_0x51c7aa:_0x1ec601,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0xb56a76(0x26f)](_0x289eca=>{var _0x25a6d7=_0xb56a76;this['_collabSession'][_0x25a6d7(0x228)]({'eventID':_0x3c711c['CollaborationEvent'][_0x25a6d7(0x286)],'data':{'unitID':this[_0x25a6d7(0x280)],'operations':{[_0x289eca['id']]:{'id':_0x289eca['id'],'params':JSON[_0x25a6d7(0x26e)](_0x289eca[_0x25a6d7(0x25c)])}}}},this['_unitID']);})),_0x567999[_0xb56a76(0x27b)](_0xe2e216);})),this['_liveShareService']['getInitialStates'](this[_0x3980f9(0x280)])[_0x3980f9(0x1bd)](_0x32763f=>this[_0x3980f9(0x234)][_0x3980f9(0x228)]({'eventID':_0x3c711c[_0x3980f9(0x1b7)]['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x32763f['id']]:{'id':_0x32763f['id'],'params':JSON['stringify'](_0x32763f[_0x3980f9(0x25c)])}}}},this['_unitID']));}[_0x2dae78(0x20d)](){var _0x280b77=_0x2dae78,_0x5564a8;this['_status$']['next']('idle'),(_0x5564a8=this[_0x280b77(0x258)])==null||_0x5564a8['dispose'](),this['_commandDisposable']=null;}[_0x2dae78(0x263)](){var _0x15d928=_0x2dae78,_0x32a040;(_0x32a040=this[_0x15d928(0x258)])==null||_0x32a040[_0x15d928(0x22a)](),this[_0x15d928(0x291)][_0x15d928(0x27b)](_0x15d928(0x23a));}['_beIdle'](){var _0x10ba0f=_0x2dae78,_0x5eedea;this[_0x10ba0f(0x291)]['next']('idle'),(_0x5eedea=this[_0x10ba0f(0x258)])==null||_0x5eedea['dispose'](),this[_0x10ba0f(0x258)]=null;}['_stopFollowing'](){var _0x156b87=_0x2dae78,_0x54b74b;this[_0x156b87(0x291)][_0x156b87(0x27b)]('not-following'),(_0x54b74b=this[_0x156b87(0x258)])==null||_0x54b74b[_0x156b87(0x22a)]();}['_handleOperation'](_0x4b05dc){var _0x57fc89=_0x2dae78;if([_0x57fc89(0x26c),'not-following',_0x57fc89(0x1fa)][_0x57fc89(0x208)](this['_status'])||!_0x4b05dc[_0x57fc89(0x1ba)][_0x57fc89(0x1df)]||_0x4b05dc[_0x57fc89(0x1ba)][_0x57fc89(0x1df)]===this[_0x57fc89(0x234)][_0x57fc89(0x256)]())return;this['_status']===_0x57fc89(0x216)&&this[_0x57fc89(0x263)]();const _0xdb73f6=_0x4b05dc[_0x57fc89(0x1ba)][_0x57fc89(0x1eb)];Object[_0x57fc89(0x27f)](_0xdb73f6)[_0x57fc89(0x1bd)](_0xf59f54=>{var _0x11f823=_0x57fc89;this[_0x11f823(0x289)]['executeCommand'](_0xf59f54['id'],_0xf59f54[_0x11f823(0x25c)]?JSON[_0x11f823(0x25b)](_0xf59f54['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x2ebc2e=_0x2dae78,_0x2ecad0;this[_0x2ebc2e(0x291)][_0x2ebc2e(0x27b)](_0x2ebc2e(0x1fa)),(_0x2ecad0=this[_0x2ebc2e(0x258)])==null||_0x2ecad0[_0x2ebc2e(0x22a)]();}[_0x2dae78(0x27c)](){var _0x1718c4=_0x2dae78;this['_status$'][_0x1718c4(0x27b)](_0x1718c4(0x216)),this['_fetchOperations']();}},_0x56259b['LiveShareCoordinator']=_0x3ddac3([_0x3c706d(0x2,_0x2b7017[_0x2dae78(0x25e)]),_0x3c706d(0x3,_0x2b7017[_0x2dae78(0x1ce)](_0x561933)),_0x3c706d(0x4,_0x2b7017[_0x2dae78(0x239)])],_0x56259b[_0x2dae78(0x1fd)]);function _0x16e19d(){var _0x4b8b41=_0x2dae78;const _0x4c2630=_0x558d9b[_0x4b8b41(0x268)](_0x56259b[_0x4b8b41(0x1e2)]),_0x216212=_0x558d9b[_0x4b8b41(0x268)](_0x2b7017['IUniverInstanceService']),_0xdcb2e=_0x558d9b['useObservable'](()=>_0x216212[_0x4b8b41(0x1be)](_0x2b7017[_0x4b8b41(0x249)][_0x4b8b41(0x250)]),void 0x0,!0x1,[]),[_0x4fc440,_0x2c4492]=_0x5c1116[_0x4b8b41(0x1f8)](null),[_0x1c8a12,_0x58de25]=_0x5c1116[_0x4b8b41(0x1f8)](_0x8b9dfd[_0x4b8b41(0x235)]),_0x1e5d7e=_0x5c1116[_0x4b8b41(0x29c)](null);return _0x5c1116['useEffect'](()=>(_0xdcb2e&&_0x4c2630[_0x4b8b41(0x1dd)](_0xdcb2e[_0x4b8b41(0x23c)]())[_0x4b8b41(0x1bf)](_0x428784=>{var _0xfb44ea=_0x4b8b41;_0x2c4492(_0x428784),_0x1e5d7e[_0xfb44ea(0x259)]=_0x428784['status$'][_0xfb44ea(0x26f)](_0x31ecde=>{_0x58de25(_0x31ecde);});}),()=>{var _0x597cd1=_0x4b8b41,_0x1e50a7;(_0x1e50a7=_0x1e5d7e[_0x597cd1(0x259)])==null||_0x1e50a7['unsubscribe'](),_0x1e5d7e['current']=null;}),[_0xdcb2e,_0x4c2630]),_0x4fc440?_0x1baef6[_0x4b8b41(0x292)](_0x4f2ab1[_0x4b8b41(0x1f4)],{'align':_0x4b8b41(0x237),'disabled':_0x1c8a12===_0x8b9dfd[_0x4b8b41(0x1e1)],'className':_0x4b8b41(0x23d),'overlay':_0x1baef6[_0x4b8b41(0x292)](_0x5bc121,{'status':_0x1c8a12,'coordinator':_0x4fc440}),'children':_0x1baef6['jsx'](_0x4b8b41(0x22d),{'className':_0x4f2ab1['clsx'](_0x4b8b41(0x1cb),{'univer-cursor-not-allowed':_0x1c8a12===_0x8b9dfd[_0x4b8b41(0x1e1)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x1c8a12!==_0x8b9dfd[_0x4b8b41(0x1e1)]}),'type':_0x4b8b41(0x22d),'children':_0x1baef6[_0x4b8b41(0x292)](_0x34ee0e,{'className':_0x4b8b41(0x1c0)})})}):null;}function _0x5bc121(_0x9803da){var _0x3a9bd=_0x2dae78;const {status:_0xe5cb8,coordinator:_0x4e8cb4}=_0x9803da;switch(_0xe5cb8){case _0x8b9dfd[_0x3a9bd(0x235)]:return _0x1baef6['jsx'](_0x532241,{'coordinator':_0x4e8cb4});case _0x8b9dfd[_0x3a9bd(0x28b)]:return _0x1baef6[_0x3a9bd(0x292)](_0x3abf8a,{'coordinator':_0x4e8cb4});case _0x8b9dfd[_0x3a9bd(0x284)]:return _0x1baef6['jsx'](_0x427554,{'coordinator':_0x4e8cb4});case _0x8b9dfd[_0x3a9bd(0x1e1)]:return _0x1baef6[_0x3a9bd(0x292)](_0x42936e,{});case _0x8b9dfd['PRESENTING']:return _0x1baef6[_0x3a9bd(0x292)](_0x457796,{'coordinator':_0x4e8cb4});default:return null;}}function _0x532241(_0x86f0ea){var _0x229152=_0x2dae78;const {coordinator:_0x547667}=_0x86f0ea;return _0x1baef6[_0x229152(0x21c)](_0x1baef6[_0x229152(0x22e)],{'children':[_0x1baef6[_0x229152(0x292)](_0x229152(0x22b),{'className':_0x229152(0x229),'children':_0x229152(0x1e5)}),_0x1baef6[_0x229152(0x292)](_0x4f2ab1[_0x229152(0x213)],{'onClick':()=>_0x547667[_0x229152(0x1ee)](),'children':_0x229152(0x24e)})]});}function _0x3abf8a(_0x438aa2){var _0x1d78d0=_0x2dae78;const {coordinator:_0x55586b}=_0x438aa2;return _0x1baef6[_0x1d78d0(0x21c)](_0x1baef6[_0x1d78d0(0x22e)],{'children':[_0x1baef6['jsx'](_0x1d78d0(0x22b),{'className':_0x1d78d0(0x229),'children':_0x1d78d0(0x1db)}),_0x1baef6[_0x1d78d0(0x292)](_0x4f2ab1[_0x1d78d0(0x213)],{'onClick':()=>_0x55586b[_0x1d78d0(0x1a6)](),'children':'Stop\x20following'})]});}function _0x427554(_0x41cba8){var _0x176c54=_0x2dae78;const {coordinator:_0x1e81ee}=_0x41cba8;return _0x1baef6[_0x176c54(0x21c)](_0x1baef6[_0x176c54(0x22e)],{'children':[_0x1baef6[_0x176c54(0x292)](_0x176c54(0x22b),{'className':_0x176c54(0x229),'children':_0x176c54(0x1f6)}),_0x1baef6[_0x176c54(0x292)](_0x4f2ab1[_0x176c54(0x213)],{'variant':_0x176c54(0x1a7),'onClick':()=>_0x1e81ee[_0x176c54(0x1ef)](),'children':_0x176c54(0x1cf)})]});}function _0x457796(_0x387812){var _0x54dc67=_0x2dae78;const {coordinator:_0x31e772}=_0x387812;return _0x1baef6[_0x54dc67(0x21c)](_0x1baef6[_0x54dc67(0x22e)],{'children':[_0x1baef6[_0x54dc67(0x292)](_0x54dc67(0x22b),{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x1baef6[_0x54dc67(0x292)](_0x4f2ab1['Button'],{'variant':_0x54dc67(0x225),'onClick':()=>_0x31e772[_0x54dc67(0x24d)](),'children':_0x54dc67(0x1e3)})]});}function _0x42936e(){var _0x3131ba=_0x2dae78;return _0x1baef6[_0x3131ba(0x292)](_0x1baef6[_0x3131ba(0x22e)],{'children':_0x3131ba(0x24c)});}var _0x558ecb=Object['getOwnPropertyDescriptor'],_0x14cf2e=(_0xe9b329,_0x80ccec,_0x1416ac,_0x5ba6a3)=>{var _0x4b5bab=_0x2dae78;for(var _0x4602db=_0x5ba6a3>0x1?void 0x0:_0x5ba6a3?_0x558ecb(_0x80ccec,_0x1416ac):_0x80ccec,_0x120978=_0xe9b329[_0x4b5bab(0x209)]-0x1,_0x4d61f9;_0x120978>=0x0;_0x120978--)(_0x4d61f9=_0xe9b329[_0x120978])&&(_0x4602db=_0x4d61f9(_0x4602db)||_0x4602db);return _0x4602db;},_0x2ffd78=(_0x2a6f23,_0x26f23e)=>(_0x44e0d1,_0x1bcc64)=>_0x26f23e(_0x44e0d1,_0x1bcc64,_0x2a6f23);_0x56259b['DesktopLiveShareController']=class extends _0x2b7017[_0x2dae78(0x1b0)]{constructor(_0x4e4605,_0x16267f){var _0x1c5558=_0x2dae78;super(),this['_injector']=_0x4e4605,this[_0x1c5558(0x1b1)]=_0x16267f,this[_0x1c5558(0x25d)]();}[_0x2dae78(0x25d)](){var _0x184166=_0x2dae78;this[_0x184166(0x24a)](this[_0x184166(0x1b1)][_0x184166(0x1ec)](_0x558d9b['BuiltInUIPart'][_0x184166(0x1aa)],()=>_0x558d9b[_0x184166(0x1c4)](_0x16e19d,this[_0x184166(0x28e)])));}},_0x56259b[_0x2dae78(0x26d)]=_0x14cf2e([_0x2ffd78(0x0,_0x2b7017[_0x2dae78(0x1ce)](_0x2b7017['Injector'])),_0x2ffd78(0x1,_0x558d9b[_0x2dae78(0x1da)])],_0x56259b[_0x2dae78(0x26d)]);var _0x48ac40=Object[_0x2dae78(0x1e6)],_0x2204da=Object['getOwnPropertyDescriptor'],_0x294563=(_0x35bb1b,_0x17cd48,_0x279f9d)=>_0x17cd48 in _0x35bb1b?_0x48ac40(_0x35bb1b,_0x17cd48,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x279f9d}):_0x35bb1b[_0x17cd48]=_0x279f9d,_0x362d02=(_0x594761,_0x1742e7,_0x52ae51,_0x499540)=>{var _0x3a07af=_0x2dae78;for(var _0x58d207=_0x499540>0x1?void 0x0:_0x499540?_0x2204da(_0x1742e7,_0x52ae51):_0x1742e7,_0x35850e=_0x594761[_0x3a07af(0x209)]-0x1,_0x46005c;_0x35850e>=0x0;_0x35850e--)(_0x46005c=_0x594761[_0x35850e])&&(_0x58d207=_0x46005c(_0x58d207)||_0x58d207);return _0x58d207;},_0x40bdf0=(_0x31cad6,_0x5ccf93)=>(_0x7ba73b,_0x532b3e)=>_0x5ccf93(_0x7ba73b,_0x532b3e,_0x31cad6),_0x382080=(_0x1e444f,_0x4b2165,_0x4b43ce)=>_0x294563(_0x1e444f,typeof _0x4b2165!=_0x2dae78(0x282)?_0x4b2165+'':_0x4b2165,_0x4b43ce);const _0x185fea='UNIVER_LIVE_SHARE_PLUGIN';_0x56259b[_0x2dae78(0x1ca)]=class extends _0x2b7017[_0x2dae78(0x1ab)]{constructor(_0x2dbf57=_0x1f924c,_0x2c22ef,_0x1c0694){var _0x2cb9ca=_0x2dae78;super(),this['_config']=_0x2dbf57,this[_0x2cb9ca(0x28e)]=_0x2c22ef,this[_0x2cb9ca(0x298)]=_0x1c0694;const {..._0x162b8a}=_0x2b7017[_0x2cb9ca(0x297)]({},_0x1f924c,this[_0x2cb9ca(0x254)]);this['_configService'][_0x2cb9ca(0x20e)](_0x245a56,_0x162b8a);}[_0x2dae78(0x1a5)](){var _0x3e9c03=_0x2dae78;_0x2b7017[_0x3e9c03(0x1e4)](this[_0x3e9c03(0x28e)],_0x2b7017[_0x3e9c03(0x245)]([[_0x561933],[_0x56259b[_0x3e9c03(0x1e2)]],[_0x29c2bc],[_0x56259b[_0x3e9c03(0x26d)]]],this[_0x3e9c03(0x254)][_0x3e9c03(0x20c)])),_0x2b7017[_0x3e9c03(0x26b)](this[_0x3e9c03(0x28e)],[[_0x29c2bc]]);}['onRendered'](){var _0x1471e2=_0x2dae78;_0x2b7017[_0x1471e2(0x26b)](this['_injector'],[[_0x56259b[_0x1471e2(0x26d)]]]);}},_0x382080(_0x56259b[_0x2dae78(0x1ca)],_0x2dae78(0x276),_0x2b7017['UniverInstanceType'][_0x2dae78(0x222)]),_0x382080(_0x56259b[_0x2dae78(0x1ca)],_0x2dae78(0x201),_0x185fea),_0x56259b[_0x2dae78(0x1ca)]=_0x362d02([_0x2b7017['DependentOn'](_0x25c12f[_0x2dae78(0x1af)]),_0x40bdf0(0x1,_0x2b7017[_0x2dae78(0x1ce)](_0x2b7017['Injector'])),_0x40bdf0(0x2,_0x2b7017[_0x2dae78(0x25e)])],_0x56259b[_0x2dae78(0x1ca)]),_0x56259b[_0x2dae78(0x266)]=_0x16e19d,_0x56259b[_0x2dae78(0x264)]=_0x561933,_0x56259b['LiveShareStatus']=_0x8b9dfd,Object[_0x2dae78(0x1e6)](_0x56259b,Symbol[_0x2dae78(0x27a)],{'value':_0x2dae78(0x241)});}));function _0x6915(_0x171d7e,_0x219f9f){var _0x18a681=_0x18a6();return _0x6915=function(_0x69153f,_0x4ef46f){_0x69153f=_0x69153f-0x1a3;var _0x42e104=_0x18a681[_0x69153f];return _0x42e104;},_0x6915(_0x171d7e,_0x219f9f);}function _0x18a6(){var _0x4fbf4e=['_beIdle','trim','LiveShareCoordinator','defs','getOwnPropertySymbols','defIds','pluginName','tag','1856874yIpNZw','find','createElement','map','React','includes','length','svg','_stopFollowing','override','_stopPresenting','setConfig','exports','takeUntil','icon','react','Button','className','NEW_CHANGESETS','idle','complete','ONLINE','@univerjs-pro/collaboration','SessionStatus','_startLiveShareCoordinator','jsxs','has','live-share.config','children','get','UniverProCollaborationClient','UNIVER_UNKNOWN','UniverDesign','1329392QFGstj','default','apply','idSuffix','send','univer-mb-3\x20univer-w-full\x20univer-text-sm','dispose','div','UniverProLiveShare','button','Fragment','_entities','function','_presenter','DisposableCollection','asObservable','_collabSession','IDLE','_handleOperation','end','UniverSheets','ICommandService','following','_reporters','getUnitId','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','fill','_startPresenting','extend','Module','_handleNewChangeSets','52pZZUoX','_liveShareService','mergeOverrideWithDependencies','getOwnPropertyDescriptor','from','Subject','UniverInstanceType','disposeWithMe','getTypeOfUnitAdded$','You\x27are\x20offline.','stopPresenting','Start','string','UNIVER_SHEET','use','url(#$1','registerInitialStateReporter','_config','concat','getMemberID','parseProtocolChangeset','_commandDisposable','current','UniverProCollaboration','parse','params','_mountLiveShare','IConfigService','replace','LIVESHARE_NEW_HOST','registerSharedOperation','_collabSessionService','_startFollowing','LiveShareService','6131043lhaFYX','LiveShare','PRESENTING','useDependency','entries','@univerjs/sheets','touchDependencies','presenting','DesktopLiveShareController','stringify','subscribe','executeCommand','live-share-icon','3tCdTNC','substring','0\x200\x2017\x2017','_status','type','_handleNewHost','toString','pipe','toStringTag','next','_handleOnline','BehaviorSubject','colorChannel1','values','_unitID','call','symbol','displayName','NOT_FOLLOWING','sessionStatus$','LIVESHARE_OPERATION','currentColor','UniverUi','_commandService','unitId','FOLLOWING','memberID','clear','_injector','@univerjs/ui','LiveShareIcon','_status$','jsx','rxjs/operators','amd','indexOf','dispose$','merge','_configService','_handleOffline','LIVESHARE_TERMINATE','object','useRef','shouldShareOperation','attrs','prototype','onStarting','stopFollowing','text','react/jsx-runtime','rxjs','HEADER_MENU','Plugin','init','SetWorksheetActiveOperation','1664uaqwek','UniverCollaborationClientPlugin','Disposable','_uiPartsService','getConfig','24968SSAYjZ','not-following','univerjs-icon\x20univerjs-icon-','delete','CollaborationEvent','add','status$','data','@univerjs/design','random','forEach','getCurrentTypeOfUnit$','then','univer-size-4','13244XdgiGd','evenodd','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','connectInjector','RxDisposable','@univerjs/sheets-ui','hasOwnProperty','IUniverInstanceService','CommandType','UniverLiveSharePlugin','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','requireSession','path','Inject','Start\x20following','10XUCAhh','toDisposable','LIVESHARE_REQUEST_HOST','UniverCore','getValue','sheet','_sharedOperations','_univerInstanceService','mask','_init','IUIPartsService','You\x27re\x20following\x20the\x20presenter','CollaborationSessionService','getLiveShareCoordinator','http://www.w3.org/2000/svg','presenter','SAME_OPERATION_SHARE_INTERVAL','OFFLINE','LiveShareController','Stop\x20presenting','registerDependencies','Present\x20this\x20document','defineProperty','assign','1em','forwardRef','propertyIsEnumerable','operations','registerComponent','3032700koEWXC','tryStartPresenting','startFollowing','operators','13747217bBzSVN','_handleTerminate','set','Dropdown','reverse','You\x27re\x20not\x20following\x20the\x20presenter','mutations','useState','xlink:href','offline'];_0x18a6=function(){return _0x4fbf4e;};return _0x18a6();}
1
+ function _0x4f1b(){var _0x2f68a6=['random','asObservable','ONLINE','CommandType','getLiveShareCoordinator','UniverCore','use','_collabSession','path','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_unitID','sessionStatus$','IDLE','call','_sharedOperations','jsx','DisposableCollection','ICommandService','UniverSheets','LIVESHARE_TERMINATE','React','BuiltInUIPart','_config','useDependency','Present\x20this\x20document','currentColor','useEffect','defIds','none','4955412CRIbcB','registerDependencies','univer-mb-3\x20univer-w-full\x20univer-text-sm','react/jsx-runtime','NOT_FOLLOWING','SetZoomRatioOperation','_mountLiveShare','text','parse','onStarting','LiveShareService','LiveShareStatus','IConfigService','_presenter','_entities','pipe','78724BJLizg','children','substring','LIVESHARE_OPERATION','getOwnPropertySymbols','touchDependencies','univerjs-icon\x20univerjs-icon-','string','indexOf','UNIVER_SHEET','button','_stopPresenting','url(#$1','live-share.config','override','OFFLINE','Inject','trim','takeUntil','rxjs/operators','_beIdle','svg','assign','Dropdown','merge','http://www.w3.org/2000/svg','getInitialStates','tag','_commandService','1152nBtLkc','_startPresenting','jsxs','_handleOffline','UniverLiveSharePlugin','SessionStatus','requireSession','SAME_OPERATION_SHARE_INTERVAL','live-share-icon','useRef','map','amd','data','_handleTerminate','Module','createInstance','@univerjs-pro/collaboration-client','LIVESHARE_REQUEST_HOST','status$','_init','operators','icon','delete','end','registerComponent','createElement','SetWorksheetActiveOperation','getTypeOfUnitDisposed$','You\x27re\x20not\x20following\x20the\x20presenter','className','_status','current','replace','useState','@univerjs/design','apply','_handleNewHost','unsubscribe','_startFollowing','type','executeCommand','LiveShareController','_liveShareService','toDisposable','UniverDesign','subscribe','SetScrollOperation','length','registerInitialStateReporter','rxjs','_univerInstanceService','FOLLOWING','not-following','complete','_stopFollowing','registerSharedOperation','throttleTime','LIVESHARE_NEW_HOST','forwardRef','_handleNewChangeSets','@univerjs/core','disposeWithMe','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','function','div','toString','Stop\x20presenting','concat','@univerjs-pro/collaboration','get','forEach','defineProperty','UniverInstanceType','2908520kKqyxT','getUnitId','exports','InsertSheetMutation','shouldShareOperation','stopPresenting','UniverCollaborationClientPlugin','_reporters','1470970azIHjE','PRESENTING','108676QasMWQ','_commandDisposable','getOwnPropertyDescriptor','xlink:href','send','fill','defs','CollaborationSessionService','IUniverInstanceService','has','_handleOperation','params','getConfig','colorChannel1','mutations','onCommandExecuted','from','_status$','You\x27are\x20offline.','displayName','next','_uiPartsService','getCurrentTypeOfUnit$','_collabSessionService','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','values','presenter','9xsGlFX','add','@univerjs/sheets','dispose$','univer-size-4','3580525uLvVhN','Fragment','operations','stringify','mask','Injector','following','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','symbol','3KlLgJr','setConfig','Disposable','stopFollowing','react','1em','_configService','event$','Stop\x20following','mergeOverrideWithDependencies','DesktopLiveShareController','idle','clear','idSuffix','2UNFPlN','attrs','dispose','startFollowing','You\x27re\x20presenting\x20the\x20document','OPERATION','_fetchOperations','RxDisposable','_startLiveShareCoordinator','UniverUi','offline','5761VfgEhy','presenting','entries','then','getMemberID','find','extend','unitId','tryStartPresenting','_injector','LiveShare','0\x200\x2017\x2017','Button','evenodd','clsx','UniverSheetsUi','CollaborationEvent','LiveShareCoordinator'];_0x4f1b=function(){return _0x2f68a6;};return _0x4f1b();}function _0x2862(_0x34d913,_0x4e3940){var _0x4f1bea=_0x4f1b();return _0x2862=function(_0x286215,_0x22a9e4){_0x286215=_0x286215-0xf3;var _0xd29009=_0x4f1bea[_0x286215];return _0xd29009;},_0x2862(_0x34d913,_0x4e3940);}(function(_0x5b37ed,_0x3e387a){var _0x424582=_0x2862,_0x2e5999=_0x5b37ed();while(!![]){try{var _0x430984=-parseInt(_0x424582(0x13d))/0x1*(-parseInt(_0x424582(0x187))/0x2)+-parseInt(_0x424582(0x12f))/0x3*(parseInt(_0x424582(0x106))/0x4)+parseInt(_0x424582(0x126))/0x5+-parseInt(_0x424582(0x1a4))/0x6*(parseInt(_0x424582(0x148))/0x7)+parseInt(_0x424582(0xfc))/0x8+-parseInt(_0x424582(0x121))/0x9*(parseInt(_0x424582(0x104))/0xa)+-parseInt(_0x424582(0x177))/0xb;if(_0x430984===_0x3e387a)break;else _0x2e5999['push'](_0x2e5999['shift']());}catch(_0x4a8b0a){_0x2e5999['push'](_0x2e5999['shift']());}}}(_0x4f1b,0x5bb44),function(_0x49ff15,_0x5f16b8){var _0x55ea3f=_0x2862;typeof exports=='object'&&typeof module<'u'?_0x5f16b8(exports,require('@univerjs-pro/collaboration-client'),require('@univerjs/core'),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require('@univerjs-pro/collaboration'),require('rxjs'),require('rxjs/operators')):typeof define=='function'&&define[_0x55ea3f(0x1af)]?define([_0x55ea3f(0xfe),_0x55ea3f(0x1b4),_0x55ea3f(0x1e0),_0x55ea3f(0x123),'@univerjs/sheets-ui','@univerjs/ui',_0x55ea3f(0x17a),_0x55ea3f(0x1c6),_0x55ea3f(0x133),_0x55ea3f(0xf7),_0x55ea3f(0x1d5),_0x55ea3f(0x19a)],_0x5f16b8):(_0x49ff15=typeof globalThis<'u'?globalThis:_0x49ff15||self,_0x5f16b8(_0x49ff15['UniverProLiveShare']={},_0x49ff15['UniverProCollaborationClient'],_0x49ff15[_0x55ea3f(0x15f)],_0x49ff15[_0x55ea3f(0x16c)],_0x49ff15[_0x55ea3f(0x157)],_0x49ff15[_0x55ea3f(0x146)],_0x49ff15[_0x55ea3f(0x16e)],_0x49ff15[_0x55ea3f(0x1d0)],_0x49ff15[_0x55ea3f(0x16e)],_0x49ff15['UniverProCollaboration'],_0x49ff15[_0x55ea3f(0x1d5)],_0x49ff15[_0x55ea3f(0x1d5)][_0x55ea3f(0x1b8)]));}(this,function(_0x28a585,_0x4c6e9f,_0x8a7da7,_0x208215,_0x1f75e4,_0x494a01,_0x4b2509,_0x3974c2,_0x46dce1,_0x545fd4,_0x4f5c3c,_0xfe3ee9){'use strict';var _0x28c12d=_0x2862;var _0x2a5a97=Object['defineProperty'],_0x200da6=(_0x757948,_0x2a9713,_0x439e1b)=>_0x2a9713 in _0x757948?_0x2a5a97(_0x757948,_0x2a9713,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x439e1b}):_0x757948[_0x2a9713]=_0x439e1b,_0x2a12a4=(_0x134e06,_0x2bf30a,_0x434d03)=>_0x200da6(_0x134e06,typeof _0x2bf30a!=_0x28c12d(0x12e)?_0x2bf30a+'':_0x2bf30a,_0x434d03);const _0x4516d3=_0x28c12d(0x194),_0x18bf0d={};class _0x11870f extends _0x8a7da7['Disposable']{constructor(){var _0x45ebdf=_0x28c12d;super(...arguments),_0x2a12a4(this,_0x45ebdf(0x168),new Set()),_0x2a12a4(this,'_reporters',new Set());}[_0x28c12d(0x1db)](_0x5053ce){var _0x344b5a=_0x28c12d;return this[_0x344b5a(0x168)][_0x344b5a(0x122)](_0x5053ce),_0x8a7da7[_0x344b5a(0x1cf)](()=>this['_sharedOperations'][_0x344b5a(0x1ba)](_0x5053ce));}[_0x28c12d(0x1d4)](_0x2ef505){var _0x2cebc5=_0x28c12d;return this['_reporters'][_0x2cebc5(0x122)](_0x2ef505),_0x8a7da7[_0x2cebc5(0x1cf)](()=>this['_reporters'][_0x2cebc5(0x1ba)](_0x2ef505));}['shouldShareOperation'](_0x30901f){var _0x278684=_0x28c12d;return this[_0x278684(0x168)]['has'](_0x30901f);}[_0x28c12d(0x1a1)](_0x454941){var _0x3c84d8=_0x28c12d;return Array[_0x3c84d8(0x116)](this[_0x3c84d8(0x103)])['map'](_0x182aec=>_0x182aec(_0x454941));}}var _0x59fd18=Object[_0x28c12d(0x108)],_0x4152e6=(_0x1ea979,_0xee8e1e,_0x3f100b,_0x2812b9)=>{var _0x1390b1=_0x28c12d;for(var _0xbbf3e0=_0x2812b9>0x1?void 0x0:_0x2812b9?_0x59fd18(_0xee8e1e,_0x3f100b):_0xee8e1e,_0x553254=_0x1ea979[_0x1390b1(0x1d3)]-0x1,_0x293611;_0x553254>=0x0;_0x553254--)(_0x293611=_0x1ea979[_0x553254])&&(_0xbbf3e0=_0x293611(_0xbbf3e0)||_0xbbf3e0);return _0xbbf3e0;},_0x1cb6c5=(_0x464713,_0x3ab2e0)=>(_0x149d48,_0x3a511a)=>_0x3ab2e0(_0x149d48,_0x3a511a,_0x464713);let _0x9198ea=class extends _0x8a7da7[_0x28c12d(0x131)]{constructor(_0x12706d){var _0x261f52=_0x28c12d;super(),this[_0x261f52(0x1ce)]=_0x12706d,this[_0x261f52(0x1b7)]();}[_0x28c12d(0x1b7)](){var _0x14fa65=_0x28c12d;[_0x1f75e4[_0x14fa65(0x17c)]['id'],_0x1f75e4[_0x14fa65(0x1d2)]['id'],_0x208215[_0x14fa65(0x1be)]['id']][_0x14fa65(0xf9)](_0x3a9123=>{var _0x46afaa=_0x14fa65;this[_0x46afaa(0x1e1)](this['_liveShareService']['registerSharedOperation'](_0x3a9123));});}};_0x9198ea=_0x4152e6([_0x1cb6c5(0x0,_0x8a7da7[_0x28c12d(0x197)](_0x11870f))],_0x9198ea);var _0x127d3d=function(){var _0x5b7c5a=_0x28c12d;return _0x127d3d=Object['assign']||function(_0x575c49){var _0x506a79=_0x2862;for(var _0x1a847e,_0x17d87f=0x1,_0x41f67e=arguments[_0x506a79(0x1d3)];_0x17d87f<_0x41f67e;_0x17d87f++){_0x1a847e=arguments[_0x17d87f];for(var _0x2ad6a1 in _0x1a847e)Object['prototype']['hasOwnProperty'][_0x506a79(0x167)](_0x1a847e,_0x2ad6a1)&&(_0x575c49[_0x2ad6a1]=_0x1a847e[_0x2ad6a1]);}return _0x575c49;},_0x127d3d[_0x5b7c5a(0x1c7)](this,arguments);},_0x318390=function(_0x52cf40,_0xa7573){var _0x13e383=_0x28c12d,_0x3f2798={};for(var _0x32d31e in _0x52cf40)Object['prototype']['hasOwnProperty']['call'](_0x52cf40,_0x32d31e)&&_0xa7573[_0x13e383(0x18f)](_0x32d31e)<0x0&&(_0x3f2798[_0x32d31e]=_0x52cf40[_0x32d31e]);if(_0x52cf40!=null&&typeof Object[_0x13e383(0x18b)]==_0x13e383(0x1e3)){for(var _0xfe2e99=0x0,_0x32d31e=Object[_0x13e383(0x18b)](_0x52cf40);_0xfe2e99<_0x32d31e[_0x13e383(0x1d3)];_0xfe2e99++)_0xa7573[_0x13e383(0x18f)](_0x32d31e[_0xfe2e99])<0x0&&Object['prototype']['propertyIsEnumerable'][_0x13e383(0x167)](_0x52cf40,_0x32d31e[_0xfe2e99])&&(_0x3f2798[_0x32d31e[_0xfe2e99]]=_0x52cf40[_0x32d31e[_0xfe2e99]]);}return _0x3f2798;},_0x13bbb2=_0x46dce1[_0x28c12d(0x1de)](function(_0x5046d1,_0xaca01f){var _0x1ff95f=_0x28c12d,_0x206378=_0x5046d1[_0x1ff95f(0x1b9)],_0x2c55c7=_0x5046d1['id'],_0x260b53=_0x5046d1[_0x1ff95f(0x1c1)],_0x5de0d4=_0x5046d1[_0x1ff95f(0x14e)],_0x503b74=_0x318390(_0x5046d1,['icon','id',_0x1ff95f(0x1c1),_0x1ff95f(0x14e)]),_0x612dbb=_0x1ff95f(0x18d)[_0x1ff95f(0xf6)](_0x2c55c7,'\x20')[_0x1ff95f(0xf6)](_0x260b53||'')[_0x1ff95f(0x198)](),_0x32a909=_0x46dce1[_0x1ff95f(0x1ad)]('_'[_0x1ff95f(0xf6)](_0x315c0a()));return _0x21268e(_0x206378,''[_0x1ff95f(0xf6)](_0x2c55c7),{'defIds':_0x206378[_0x1ff95f(0x175)],'idSuffix':_0x32a909[_0x1ff95f(0x1c3)]},_0x127d3d({'ref':_0xaca01f,'className':_0x612dbb},_0x503b74),_0x5de0d4);});function _0x21268e(_0x282254,_0x562598,_0x253548,_0x3ae83a,_0x1e3918){var _0x580c3d=_0x28c12d;return _0x46dce1[_0x580c3d(0x1bd)](_0x282254[_0x580c3d(0x1a2)],_0x127d3d(_0x127d3d({'key':_0x562598},_0x109dd5(_0x282254,_0x253548,_0x1e3918)),_0x3ae83a),(_0x4446bb(_0x282254,_0x253548)[_0x580c3d(0x188)]||[])[_0x580c3d(0x1ae)](function(_0x4ffd41,_0x5c6d50){var _0x1dce36=_0x580c3d;return _0x21268e(_0x4ffd41,''[_0x1dce36(0xf6)](_0x562598,'-')['concat'](_0x282254[_0x1dce36(0x1a2)],'-')['concat'](_0x5c6d50),_0x253548,void 0x0,_0x1e3918);}));}function _0x109dd5(_0x1789ab,_0x24ed8b,_0x37bd2b){var _0x4e1b08=_0x28c12d,_0x4faa23=_0x127d3d({},_0x1789ab[_0x4e1b08(0x13e)]);_0x37bd2b!=null&&_0x37bd2b['colorChannel1']&&_0x4faa23['fill']==='colorChannel1'&&(_0x4faa23[_0x4e1b08(0x10b)]=_0x37bd2b[_0x4e1b08(0x113)]),_0x1789ab['tag']===_0x4e1b08(0x12a)&&_0x4faa23['id']&&(_0x4faa23['id']=_0x4faa23['id']+_0x24ed8b[_0x4e1b08(0x13c)]),Object[_0x4e1b08(0x14a)](_0x4faa23)[_0x4e1b08(0xf9)](function(_0x7b7b81){var _0x5b5c46=_0x4e1b08,_0x392d17=_0x7b7b81[0x0],_0x5de68c=_0x7b7b81[0x1];_0x392d17===_0x5b5c46(0x12a)&&typeof _0x5de68c==_0x5b5c46(0x18e)&&(_0x4faa23[_0x392d17]=_0x5de68c[_0x5b5c46(0x1c4)](/url\(#(.*)\)/,_0x5b5c46(0x193)[_0x5b5c46(0xf6)](_0x24ed8b[_0x5b5c46(0x13c)],')')));});var _0x15fe6f=_0x24ed8b[_0x4e1b08(0x175)];return!_0x15fe6f||_0x15fe6f[_0x4e1b08(0x1d3)]===0x0||(_0x1789ab['tag']===_0x4e1b08(0x160)&&_0x4faa23[_0x4e1b08(0x109)]&&(_0x4faa23[_0x4e1b08(0x109)]=_0x4faa23[_0x4e1b08(0x109)]+_0x24ed8b[_0x4e1b08(0x13c)]),Object[_0x4e1b08(0x14a)](_0x4faa23)[_0x4e1b08(0xf9)](function(_0x391fe4){var _0x1b58bc=_0x4e1b08,_0x5f2176=_0x391fe4[0x0],_0x3908ec=_0x391fe4[0x1];typeof _0x3908ec=='string'&&(_0x4faa23[_0x5f2176]=_0x3908ec['replace'](/url\(#(.*)\)/,_0x1b58bc(0x193)[_0x1b58bc(0xf6)](_0x24ed8b[_0x1b58bc(0x13c)],')')));})),_0x4faa23;}function _0x4446bb(_0x5d9934,_0x126337){var _0x2798ac=_0x28c12d,_0x7f468,_0x4ef3d2=_0x126337[_0x2798ac(0x175)];return!_0x4ef3d2||_0x4ef3d2['length']===0x0?_0x5d9934:_0x5d9934[_0x2798ac(0x1a2)]===_0x2798ac(0x10c)&&(!((_0x7f468=_0x5d9934[_0x2798ac(0x188)])===null||_0x7f468===void 0x0)&&_0x7f468[_0x2798ac(0x1d3)])?_0x127d3d(_0x127d3d({},_0x5d9934),{'children':_0x5d9934[_0x2798ac(0x188)][_0x2798ac(0x1ae)](function(_0x19e556){var _0x16f5d9=_0x2798ac;return typeof _0x19e556[_0x16f5d9(0x13e)]['id']==_0x16f5d9(0x18e)&&_0x4ef3d2&&_0x4ef3d2['includes'](_0x19e556[_0x16f5d9(0x13e)]['id'])?_0x127d3d(_0x127d3d({},_0x19e556),{'attrs':_0x127d3d(_0x127d3d({},_0x19e556[_0x16f5d9(0x13e)]),{'id':_0x19e556[_0x16f5d9(0x13e)]['id']+_0x126337['idSuffix']})}):_0x19e556;})}):_0x5d9934;}function _0x315c0a(){var _0xd9b992=_0x28c12d;return Math[_0xd9b992(0x15a)]()[_0xd9b992(0xf4)](0x24)[_0xd9b992(0x189)](0x2,0x8);}_0x13bbb2[_0x28c12d(0x119)]='UniverIcon';var _0x366118={'tag':_0x28c12d(0x19c),'attrs':{'xmlns':_0x28c12d(0x1a0),'fill':_0x28c12d(0x176),'viewBox':_0x28c12d(0x153),'width':'1em','height':_0x28c12d(0x134)},'children':[{'tag':_0x28c12d(0x162),'attrs':{'fill':_0x28c12d(0x173),'d':_0x28c12d(0x1e2)}},{'tag':_0x28c12d(0x162),'attrs':{'fill':'currentColor','d':_0x28c12d(0x11e),'fillRule':_0x28c12d(0x155),'clipRule':'evenodd'}}]},_0x481b05=_0x46dce1['forwardRef'](function(_0x3859ee,_0x5baa82){var _0x33e358=_0x28c12d;return _0x46dce1[_0x33e358(0x1bd)](_0x13bbb2,Object[_0x33e358(0x19d)]({},_0x3859ee,{'id':_0x33e358(0x1ac),'ref':_0x5baa82,'icon':_0x366118}));});_0x481b05[_0x28c12d(0x119)]='LiveShareIcon';var _0xaeaf8=Object[_0x28c12d(0x108)],_0x16b56b=(_0x382f33,_0x37d56a,_0x59903b,_0x14c75f)=>{var _0x57bd22=_0x28c12d;for(var _0x14e142=_0x14c75f>0x1?void 0x0:_0x14c75f?_0xaeaf8(_0x37d56a,_0x59903b):_0x37d56a,_0x1ea272=_0x382f33[_0x57bd22(0x1d3)]-0x1,_0x590018;_0x1ea272>=0x0;_0x1ea272--)(_0x590018=_0x382f33[_0x1ea272])&&(_0x14e142=_0x590018(_0x14e142)||_0x14e142);return _0x14e142;},_0x4667a4=(_0x4acd35,_0x310a8)=>(_0x9edbe2,_0x14c6b4)=>_0x310a8(_0x9edbe2,_0x14c6b4,_0x4acd35);_0x28a585[_0x28c12d(0x1cd)]=class extends _0x8a7da7[_0x28c12d(0x144)]{constructor(_0x5d7a05,_0x455644,_0x3e0ad9){var _0x53a946=_0x28c12d;super(),_0x2a12a4(this,'_entities',new Map()),(this[_0x53a946(0x1d6)]=_0x5d7a05,this['_injector']=_0x455644,this[_0x53a946(0x11d)]=_0x3e0ad9,this[_0x53a946(0x1b7)]());}async[_0x28c12d(0x15e)](_0x806a87){var _0x3b19c7=_0x28c12d;return this[_0x3b19c7(0x185)]['has'](_0x806a87)||await this[_0x3b19c7(0x145)](_0x806a87),this[_0x3b19c7(0x185)][_0x3b19c7(0xf8)](_0x806a87);}[_0x28c12d(0x1b7)](){var _0xd40215=_0x28c12d;this[_0xd40215(0x1d6)]['getTypeOfUnitAdded$'](_0x8a7da7[_0xd40215(0xfb)][_0xd40215(0x190)])[_0xd40215(0x186)](_0xfe3ee9[_0xd40215(0x199)](this[_0xd40215(0x124)]))[_0xd40215(0x1d1)](async _0xa09ceb=>{var _0x417ada=_0xd40215;const _0x2c763f=_0xa09ceb['getUnitId']();this['_entities'][_0x417ada(0x10f)](_0x2c763f)||this[_0x417ada(0x145)](_0x2c763f);}),this[_0xd40215(0x1d6)][_0xd40215(0x1bf)](_0x8a7da7[_0xd40215(0xfb)][_0xd40215(0x190)])[_0xd40215(0x186)](_0xfe3ee9[_0xd40215(0x199)](this[_0xd40215(0x124)]))[_0xd40215(0x1d1)](_0x174086=>{var _0x51fd6b=_0xd40215;const _0x542603=_0x174086[_0x51fd6b(0xfd)](),_0x2447f6=this[_0x51fd6b(0x185)][_0x51fd6b(0xf8)](_0x542603);_0x2447f6==null||_0x2447f6[_0x51fd6b(0x13f)]();});}async['_startLiveShareCoordinator'](_0xc09bca){var _0x3bd7ea=_0x28c12d;const _0x43fd2c=await this[_0x3bd7ea(0x11d)][_0x3bd7ea(0x1aa)](_0xc09bca),_0x3f7c45=this[_0x3bd7ea(0x151)][_0x3bd7ea(0x1b3)](_0x28a585[_0x3bd7ea(0x159)],_0xc09bca,_0x43fd2c);return _0x3f7c45['init'](),this['_entities']['set'](_0xc09bca,_0x3f7c45),_0x3f7c45;}},_0x28a585['LiveShareController']=_0x16b56b([_0x4667a4(0x0,_0x8a7da7[_0x28c12d(0x10e)]),_0x4667a4(0x1,_0x8a7da7[_0x28c12d(0x197)](_0x8a7da7[_0x28c12d(0x12b)])),_0x4667a4(0x2,_0x8a7da7[_0x28c12d(0x197)](_0x4c6e9f[_0x28c12d(0x10d)]))],_0x28a585[_0x28c12d(0x1cd)]);var _0x5e8160=(_0x39bc03=>(_0x39bc03[_0x28c12d(0x196)]=_0x28c12d(0x147),_0x39bc03[_0x28c12d(0x166)]='idle',_0x39bc03[_0x28c12d(0x1d7)]=_0x28c12d(0x12c),_0x39bc03[_0x28c12d(0x17b)]=_0x28c12d(0x1d8),_0x39bc03[_0x28c12d(0x105)]='presenting',_0x39bc03))(_0x5e8160||{});const _0x137ca8=_0x28c12d(0x1ab),_0x118781=0xc8;_0x28a585[_0x28c12d(0x159)]=class extends _0x8a7da7['RxDisposable']{constructor(_0x4cdefa,_0x352ce0,_0x5d84c5,_0x4dde3e,_0x34ba71){var _0xda0777=_0x28c12d;super(),_0x2a12a4(this,_0xda0777(0x117),new _0x4f5c3c['BehaviorSubject'](_0xda0777(0x13a))),_0x2a12a4(this,_0xda0777(0x1b6),this[_0xda0777(0x117)][_0xda0777(0x15b)]()),_0x2a12a4(this,_0xda0777(0x1b7),!0x1),_0x2a12a4(this,_0xda0777(0x107),null),_0x2a12a4(this,_0xda0777(0x184),null),(this[_0xda0777(0x164)]=_0x4cdefa,this['_collabSession']=_0x352ce0,this[_0xda0777(0x135)]=_0x5d84c5,this[_0xda0777(0x1ce)]=_0x4dde3e,this[_0xda0777(0x1a3)]=_0x34ba71);}get[_0x28c12d(0x1c2)](){return this['_status$']['getValue']();}[_0x28c12d(0x13f)](){var _0x1533e2=_0x28c12d,_0x426fb7;(_0x426fb7=this[_0x1533e2(0x107)])==null||_0x426fb7[_0x1533e2(0x13f)](),this['_status$'][_0x1533e2(0x11a)](_0x1533e2(0x13a)),this['_status$'][_0x1533e2(0x1d9)]();}['init'](){var _0x33e99e=_0x28c12d;this[_0x33e99e(0x1b7)]||(this[_0x33e99e(0x1b7)]=!0x0,this['_collabSession'][_0x33e99e(0x165)]['pipe'](_0xfe3ee9['takeUntil'](this[_0x33e99e(0x124)]))[_0x33e99e(0x1d1)](_0x46aa1b=>{var _0x533703=_0x33e99e;switch(_0x46aa1b){case _0x4c6e9f[_0x533703(0x1a9)]['OFFLINE']:this[_0x533703(0x1a7)]();break;case _0x4c6e9f[_0x533703(0x1a9)][_0x533703(0x15c)]:this['_handleOnline']();break;}}),this[_0x33e99e(0x161)][_0x33e99e(0x136)][_0x33e99e(0x186)](_0xfe3ee9[_0x33e99e(0x199)](this[_0x33e99e(0x124)]))[_0x33e99e(0x1d1)](_0x4afdbe=>{var _0x42adcc=_0x33e99e;const {eventID:_0x2ab78f}=_0x4afdbe;switch(_0x2ab78f){case _0x545fd4[_0x42adcc(0x158)][_0x42adcc(0x1dd)]:this['_handleNewHost'](_0x4afdbe);break;case _0x545fd4['CollaborationEvent'][_0x42adcc(0x18a)]:this[_0x42adcc(0x110)](_0x4afdbe);break;case _0x545fd4[_0x42adcc(0x158)][_0x42adcc(0x16d)]:this[_0x42adcc(0x1b1)]();break;case _0x545fd4[_0x42adcc(0x158)]['NEW_CHANGESETS']:this[_0x42adcc(0x1df)](_0x4afdbe);break;}}));}[_0x28c12d(0x150)](){var _0x46c020=_0x28c12d;this['_collabSession'][_0x46c020(0x10a)]({'eventID':_0x545fd4[_0x46c020(0x158)][_0x46c020(0x1b5)],'data':{'unitID':this[_0x46c020(0x164)],'userID':this[_0x46c020(0x161)][_0x46c020(0x14c)]()}},this['_unitID']);}[_0x28c12d(0x101)](){var _0x41c922=_0x28c12d;this['_status']===_0x41c922(0x149)&&(this['_status$'][_0x41c922(0x11a)]('idle'),this['_collabSession']['send']({'eventID':_0x545fd4[_0x41c922(0x158)][_0x41c922(0x16d)],'data':{'unitID':this[_0x41c922(0x164)]}},this['_unitID']));}[_0x28c12d(0x140)](){var _0x573e06=_0x28c12d;this['_status']===_0x573e06(0x1d8)&&(this[_0x573e06(0x117)][_0x573e06(0x11a)](_0x573e06(0x12c)),this[_0x573e06(0x1ca)]());}[_0x28c12d(0x132)](){var _0x1d355b=_0x28c12d;this['_status']===_0x1d355b(0x12c)&&this[_0x1d355b(0x1da)]();}[_0x28c12d(0x1c8)](_0x1393b6){var _0x38631d=_0x28c12d;const {presenter:_0x4ddc6d}=_0x1393b6['data'],_0x408c39=this[_0x38631d(0x161)][_0x38631d(0x14c)]();this[_0x38631d(0x184)]=_0x4ddc6d,_0x4ddc6d===_0x408c39?(this[_0x38631d(0x1da)](),this[_0x38631d(0x1a5)]()):this[_0x38631d(0x1c2)]!==_0x38631d(0x1d8)&&(this[_0x38631d(0x192)](),this['_startFollowing']());}[_0x28c12d(0x143)](){var _0x5516a1=_0x28c12d;const _0x1f5112={'eventID':_0x545fd4[_0x5516a1(0x158)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x5516a1(0x161)][_0x5516a1(0x10a)](_0x1f5112,this['_unitID']);}[_0x28c12d(0x1b1)](){var _0x15f729=_0x28c12d;this[_0x15f729(0x184)]=null,this[_0x15f729(0x1c2)]!==_0x15f729(0x149)&&this[_0x15f729(0x19b)]();}[_0x28c12d(0x1df)](_0x437c0d){var _0x1c96c0=_0x28c12d;if(this['_status']===_0x1c96c0(0x12c)&&this['_presenter']===_0x437c0d[_0x1c96c0(0x1b0)]['memberID']){const _0x5b590f=_0x545fd4['parseProtocolChangeset'](_0x437c0d['data'])[_0x1c96c0(0x114)]['reverse']()[_0x1c96c0(0x14d)](_0x175fa4=>_0x175fa4['id']===_0x208215[_0x1c96c0(0xff)]['id']);if(_0x5b590f){const _0xe441df=_0x5b590f[_0x1c96c0(0x111)][_0x1c96c0(0x14f)],_0x245c3e=_0x5b590f[_0x1c96c0(0x111)]['sheet']['id'];setTimeout(()=>{var _0x46db1f=_0x1c96c0;this[_0x46db1f(0x1a3)][_0x46db1f(0x1cc)](_0x208215[_0x46db1f(0x1be)]['id'],{'unitId':_0xe441df,'subUnitId':_0x245c3e},{'fromCollab':!0x0});});}}}[_0x28c12d(0x1a5)](){var _0x2e9d5e=_0x28c12d;this[_0x2e9d5e(0x117)][_0x2e9d5e(0x11a)](_0x2e9d5e(0x149));const _0x12cb37=new Map(),_0x4aa5c7=this['_commandDisposable']=new _0x8a7da7[(_0x2e9d5e(0x16a))]();_0x4aa5c7['add'](_0x8a7da7['toDisposable'](()=>{var _0xe54e02=_0x2e9d5e;_0x12cb37[_0xe54e02(0xf9)](_0x48d867=>_0x48d867['complete']()),_0x12cb37[_0xe54e02(0x13b)]();})),_0x4aa5c7[_0x2e9d5e(0x122)](this[_0x2e9d5e(0x1a3)][_0x2e9d5e(0x115)](_0x282ccd=>{var _0x1340ae=_0x2e9d5e,_0x329e89;if(_0x282ccd[_0x1340ae(0x1cb)]!==_0x8a7da7[_0x1340ae(0x15d)][_0x1340ae(0x142)]||!this['_liveShareService'][_0x1340ae(0x100)](_0x282ccd['id']))return;const {id:_0x250a08}=_0x282ccd;let _0x407ccb;_0x12cb37[_0x1340ae(0x10f)](_0x250a08)?_0x407ccb=_0x12cb37['get'](_0x250a08):(_0x407ccb=new _0x4f5c3c['Subject'](),_0x12cb37['set'](_0x250a08,_0x407ccb),_0x407ccb[_0x1340ae(0x186)](_0xfe3ee9[_0x1340ae(0x1dc)]((_0x329e89=this[_0x1340ae(0x135)][_0x1340ae(0x112)](_0x137ca8))!=null?_0x329e89:_0x118781,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1340ae(0x1d1)](_0x21f094=>{var _0x4112c5=_0x1340ae;this[_0x4112c5(0x161)][_0x4112c5(0x10a)]({'eventID':_0x545fd4[_0x4112c5(0x158)][_0x4112c5(0x18a)],'data':{'unitID':this['_unitID'],'operations':{[_0x21f094['id']]:{'id':_0x21f094['id'],'params':JSON[_0x4112c5(0x129)](_0x21f094[_0x4112c5(0x111)])}}}},this['_unitID']);})),_0x407ccb[_0x1340ae(0x11a)](_0x282ccd);})),this[_0x2e9d5e(0x1ce)][_0x2e9d5e(0x1a1)](this[_0x2e9d5e(0x164)])['forEach'](_0xc526=>this['_collabSession'][_0x2e9d5e(0x10a)]({'eventID':_0x545fd4['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2e9d5e(0x164)],'operations':{[_0xc526['id']]:{'id':_0xc526['id'],'params':JSON['stringify'](_0xc526[_0x2e9d5e(0x111)])}}}},this[_0x2e9d5e(0x164)]));}[_0x28c12d(0x192)](){var _0x56dd8c=_0x28c12d,_0x420d0c;this['_status$'][_0x56dd8c(0x11a)](_0x56dd8c(0x13a)),(_0x420d0c=this['_commandDisposable'])==null||_0x420d0c[_0x56dd8c(0x13f)](),this[_0x56dd8c(0x107)]=null;}[_0x28c12d(0x1ca)](){var _0x17fd60=_0x28c12d,_0x231651;(_0x231651=this[_0x17fd60(0x107)])==null||_0x231651[_0x17fd60(0x13f)](),this[_0x17fd60(0x117)][_0x17fd60(0x11a)](_0x17fd60(0x12c));}[_0x28c12d(0x19b)](){var _0x5b5ccb=_0x28c12d,_0x33d312;this[_0x5b5ccb(0x117)]['next']('idle'),(_0x33d312=this[_0x5b5ccb(0x107)])==null||_0x33d312[_0x5b5ccb(0x13f)](),this[_0x5b5ccb(0x107)]=null;}[_0x28c12d(0x1da)](){var _0x337444=_0x28c12d,_0x4893a1;this[_0x337444(0x117)]['next'](_0x337444(0x1d8)),(_0x4893a1=this[_0x337444(0x107)])==null||_0x4893a1['dispose']();}[_0x28c12d(0x110)](_0x1842b8){var _0x41c7de=_0x28c12d;if([_0x41c7de(0x149),_0x41c7de(0x1d8),_0x41c7de(0x147)]['includes'](this[_0x41c7de(0x1c2)])||!_0x1842b8['data']['presenter']||_0x1842b8[_0x41c7de(0x1b0)][_0x41c7de(0x120)]===this[_0x41c7de(0x161)][_0x41c7de(0x14c)]())return;this[_0x41c7de(0x1c2)]===_0x41c7de(0x13a)&&this['_startFollowing']();const _0x4d6f9d=_0x1842b8[_0x41c7de(0x1b0)][_0x41c7de(0x128)];Object[_0x41c7de(0x11f)](_0x4d6f9d)[_0x41c7de(0xf9)](_0x1df75d=>{var _0x534be1=_0x41c7de;this[_0x534be1(0x1a3)][_0x534be1(0x1cc)](_0x1df75d['id'],_0x1df75d['params']?JSON[_0x534be1(0x17f)](_0x1df75d[_0x534be1(0x111)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x12ce75=_0x28c12d,_0x54078f;this[_0x12ce75(0x117)][_0x12ce75(0x11a)](_0x12ce75(0x147)),(_0x54078f=this[_0x12ce75(0x107)])==null||_0x54078f['dispose']();}['_handleOnline'](){var _0x3b8a51=_0x28c12d;this[_0x3b8a51(0x117)]['next'](_0x3b8a51(0x13a)),this[_0x3b8a51(0x143)]();}},_0x28a585['LiveShareCoordinator']=_0x16b56b([_0x4667a4(0x2,_0x8a7da7[_0x28c12d(0x183)]),_0x4667a4(0x3,_0x8a7da7[_0x28c12d(0x197)](_0x11870f)),_0x4667a4(0x4,_0x8a7da7[_0x28c12d(0x16b)])],_0x28a585[_0x28c12d(0x159)]);function _0x2895b0(){var _0x33c6e7=_0x28c12d;const _0x12f444=_0x494a01[_0x33c6e7(0x171)](_0x28a585[_0x33c6e7(0x1cd)]),_0x33095e=_0x494a01[_0x33c6e7(0x171)](_0x8a7da7[_0x33c6e7(0x10e)]),_0x2818f7=_0x494a01['useObservable'](()=>_0x33095e[_0x33c6e7(0x11c)](_0x8a7da7[_0x33c6e7(0xfb)][_0x33c6e7(0x190)]),void 0x0,!0x1,[]),[_0x3fd7bc,_0x4d9423]=_0x46dce1[_0x33c6e7(0x1c5)](null),[_0x550ad0,_0x5f23f0]=_0x46dce1['useState'](_0x5e8160['IDLE']),_0x5d2195=_0x46dce1[_0x33c6e7(0x1ad)](null);return _0x46dce1[_0x33c6e7(0x174)](()=>(_0x2818f7&&_0x12f444[_0x33c6e7(0x15e)](_0x2818f7[_0x33c6e7(0xfd)]())[_0x33c6e7(0x14b)](_0xc0f174=>{var _0x5043b6=_0x33c6e7;_0x4d9423(_0xc0f174),_0x5d2195['current']=_0xc0f174['status$'][_0x5043b6(0x1d1)](_0xb9fa47=>{_0x5f23f0(_0xb9fa47);});}),()=>{var _0x4f6f0b=_0x33c6e7,_0x30758d;(_0x30758d=_0x5d2195[_0x4f6f0b(0x1c3)])==null||_0x30758d[_0x4f6f0b(0x1c9)](),_0x5d2195[_0x4f6f0b(0x1c3)]=null;}),[_0x2818f7,_0x12f444]),_0x3fd7bc?_0x4b2509[_0x33c6e7(0x169)](_0x3974c2[_0x33c6e7(0x19e)],{'align':_0x33c6e7(0x1bb),'disabled':_0x550ad0===_0x5e8160[_0x33c6e7(0x196)],'className':_0x33c6e7(0x12d),'overlay':_0x4b2509[_0x33c6e7(0x169)](_0x2790ab,{'status':_0x550ad0,'coordinator':_0x3fd7bc}),'children':_0x4b2509[_0x33c6e7(0x169)](_0x33c6e7(0x191),{'className':_0x3974c2[_0x33c6e7(0x156)](_0x33c6e7(0x163),{'univer-cursor-not-allowed':_0x550ad0===_0x5e8160['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x550ad0!==_0x5e8160[_0x33c6e7(0x196)]}),'type':_0x33c6e7(0x191),'children':_0x4b2509[_0x33c6e7(0x169)](_0x481b05,{'className':_0x33c6e7(0x125)})})}):null;}function _0x2790ab(_0x23bcac){var _0x5c69c6=_0x28c12d;const {status:_0x193b5d,coordinator:_0x35c1b7}=_0x23bcac;switch(_0x193b5d){case _0x5e8160[_0x5c69c6(0x166)]:return _0x4b2509[_0x5c69c6(0x169)](_0x4f9776,{'coordinator':_0x35c1b7});case _0x5e8160['FOLLOWING']:return _0x4b2509['jsx'](_0x43cf95,{'coordinator':_0x35c1b7});case _0x5e8160[_0x5c69c6(0x17b)]:return _0x4b2509[_0x5c69c6(0x169)](_0x2babc7,{'coordinator':_0x35c1b7});case _0x5e8160[_0x5c69c6(0x196)]:return _0x4b2509['jsx'](_0x542196,{});case _0x5e8160[_0x5c69c6(0x105)]:return _0x4b2509[_0x5c69c6(0x169)](_0x4d8a4f,{'coordinator':_0x35c1b7});default:return null;}}function _0x4f9776(_0x4fbdc4){var _0x3ee287=_0x28c12d;const {coordinator:_0x6c3dae}=_0x4fbdc4;return _0x4b2509['jsxs'](_0x4b2509[_0x3ee287(0x127)],{'children':[_0x4b2509[_0x3ee287(0x169)]('div',{'className':_0x3ee287(0x179),'children':_0x3ee287(0x172)}),_0x4b2509[_0x3ee287(0x169)](_0x3974c2['Button'],{'onClick':()=>_0x6c3dae[_0x3ee287(0x150)](),'children':'Start'})]});}function _0x43cf95(_0x210e15){var _0x1b6ab9=_0x28c12d;const {coordinator:_0xd59f0e}=_0x210e15;return _0x4b2509[_0x1b6ab9(0x1a6)](_0x4b2509[_0x1b6ab9(0x127)],{'children':[_0x4b2509[_0x1b6ab9(0x169)](_0x1b6ab9(0xf3),{'className':_0x1b6ab9(0x179),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4b2509[_0x1b6ab9(0x169)](_0x3974c2[_0x1b6ab9(0x154)],{'onClick':()=>_0xd59f0e['stopFollowing'](),'children':_0x1b6ab9(0x137)})]});}function _0x2babc7(_0x3ccafc){var _0x45abee=_0x28c12d;const {coordinator:_0x3ec651}=_0x3ccafc;return _0x4b2509[_0x45abee(0x1a6)](_0x4b2509[_0x45abee(0x127)],{'children':[_0x4b2509[_0x45abee(0x169)](_0x45abee(0xf3),{'className':_0x45abee(0x179),'children':_0x45abee(0x1c0)}),_0x4b2509[_0x45abee(0x169)](_0x3974c2['Button'],{'variant':_0x45abee(0x17e),'onClick':()=>_0x3ec651[_0x45abee(0x140)](),'children':'Start\x20following'})]});}function _0x4d8a4f(_0x595fc5){var _0x430957=_0x28c12d;const {coordinator:_0x2c5dce}=_0x595fc5;return _0x4b2509[_0x430957(0x1a6)](_0x4b2509[_0x430957(0x127)],{'children':[_0x4b2509[_0x430957(0x169)]('div',{'className':_0x430957(0x179),'children':_0x430957(0x141)}),_0x4b2509['jsx'](_0x3974c2[_0x430957(0x154)],{'variant':'default','onClick':()=>_0x2c5dce[_0x430957(0x101)](),'children':_0x430957(0xf5)})]});}function _0x542196(){var _0x2f5b87=_0x28c12d;return _0x4b2509[_0x2f5b87(0x169)](_0x4b2509[_0x2f5b87(0x127)],{'children':_0x2f5b87(0x118)});}var _0x398074=Object[_0x28c12d(0x108)],_0x4ed701=(_0x4fd833,_0x5ca711,_0x13d686,_0x3b7560)=>{var _0x2ec956=_0x28c12d;for(var _0x176b59=_0x3b7560>0x1?void 0x0:_0x3b7560?_0x398074(_0x5ca711,_0x13d686):_0x5ca711,_0x33b511=_0x4fd833[_0x2ec956(0x1d3)]-0x1,_0x5d9b31;_0x33b511>=0x0;_0x33b511--)(_0x5d9b31=_0x4fd833[_0x33b511])&&(_0x176b59=_0x5d9b31(_0x176b59)||_0x176b59);return _0x176b59;},_0x35740b=(_0x1085f4,_0x36526d)=>(_0x36bfaf,_0x25977c)=>_0x36526d(_0x36bfaf,_0x25977c,_0x1085f4);_0x28a585[_0x28c12d(0x139)]=class extends _0x8a7da7[_0x28c12d(0x131)]{constructor(_0x1ef276,_0xcc8b85){var _0x535a91=_0x28c12d;super(),this[_0x535a91(0x151)]=_0x1ef276,this['_uiPartsService']=_0xcc8b85,this[_0x535a91(0x17d)]();}[_0x28c12d(0x17d)](){var _0x266511=_0x28c12d;this[_0x266511(0x1e1)](this[_0x266511(0x11b)][_0x266511(0x1bc)](_0x494a01[_0x266511(0x16f)]['HEADER_MENU'],()=>_0x494a01['connectInjector'](_0x2895b0,this[_0x266511(0x151)])));}},_0x28a585[_0x28c12d(0x139)]=_0x4ed701([_0x35740b(0x0,_0x8a7da7[_0x28c12d(0x197)](_0x8a7da7['Injector'])),_0x35740b(0x1,_0x494a01['IUIPartsService'])],_0x28a585[_0x28c12d(0x139)]);var _0x19fd06=Object[_0x28c12d(0xfa)],_0x5b1fa8=Object[_0x28c12d(0x108)],_0x2e26f3=(_0x329a9b,_0x47cc3c,_0x5ce0ba)=>_0x47cc3c in _0x329a9b?_0x19fd06(_0x329a9b,_0x47cc3c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5ce0ba}):_0x329a9b[_0x47cc3c]=_0x5ce0ba,_0x322ac6=(_0x6f7ecd,_0x13f3ed,_0x395967,_0xb2bb83)=>{var _0x58eb2c=_0x28c12d;for(var _0x331855=_0xb2bb83>0x1?void 0x0:_0xb2bb83?_0x5b1fa8(_0x13f3ed,_0x395967):_0x13f3ed,_0x41118b=_0x6f7ecd[_0x58eb2c(0x1d3)]-0x1,_0x252111;_0x41118b>=0x0;_0x41118b--)(_0x252111=_0x6f7ecd[_0x41118b])&&(_0x331855=_0x252111(_0x331855)||_0x331855);return _0x331855;},_0x1d16b1=(_0x4a6c38,_0x7195cf)=>(_0x39cd28,_0x4b12e0)=>_0x7195cf(_0x39cd28,_0x4b12e0,_0x4a6c38),_0x459b10=(_0x5b031e,_0x1f5f2f,_0x2806b2)=>_0x2e26f3(_0x5b031e,typeof _0x1f5f2f!=_0x28c12d(0x12e)?_0x1f5f2f+'':_0x1f5f2f,_0x2806b2);const _0x461d23='UNIVER_LIVE_SHARE_PLUGIN';_0x28a585[_0x28c12d(0x1a8)]=class extends _0x8a7da7['Plugin']{constructor(_0x42d729=_0x18bf0d,_0x322071,_0x8e0885){var _0x4592f1=_0x28c12d;super(),this[_0x4592f1(0x170)]=_0x42d729,this['_injector']=_0x322071,this[_0x4592f1(0x135)]=_0x8e0885;const {..._0x4b69c5}=_0x8a7da7[_0x4592f1(0x19f)]({},_0x18bf0d,this[_0x4592f1(0x170)]);this[_0x4592f1(0x135)][_0x4592f1(0x130)](_0x4516d3,_0x4b69c5);}[_0x28c12d(0x180)](){var _0x156f3c=_0x28c12d;_0x8a7da7[_0x156f3c(0x178)](this[_0x156f3c(0x151)],_0x8a7da7[_0x156f3c(0x138)]([[_0x11870f],[_0x28a585[_0x156f3c(0x1cd)]],[_0x9198ea],[_0x28a585['DesktopLiveShareController']]],this[_0x156f3c(0x170)][_0x156f3c(0x195)])),_0x8a7da7[_0x156f3c(0x18c)](this[_0x156f3c(0x151)],[[_0x9198ea]]);}['onRendered'](){var _0x218bbd=_0x28c12d;_0x8a7da7[_0x218bbd(0x18c)](this[_0x218bbd(0x151)],[[_0x28a585[_0x218bbd(0x139)]]]);}},_0x459b10(_0x28a585['UniverLiveSharePlugin'],'type',_0x8a7da7[_0x28c12d(0xfb)]['UNIVER_UNKNOWN']),_0x459b10(_0x28a585['UniverLiveSharePlugin'],'pluginName',_0x461d23),_0x28a585[_0x28c12d(0x1a8)]=_0x322ac6([_0x8a7da7['DependentOn'](_0x4c6e9f[_0x28c12d(0x102)]),_0x1d16b1(0x1,_0x8a7da7[_0x28c12d(0x197)](_0x8a7da7[_0x28c12d(0x12b)])),_0x1d16b1(0x2,_0x8a7da7[_0x28c12d(0x183)])],_0x28a585['UniverLiveSharePlugin']),_0x28a585[_0x28c12d(0x152)]=_0x2895b0,_0x28a585[_0x28c12d(0x181)]=_0x11870f,_0x28a585[_0x28c12d(0x182)]=_0x5e8160,Object[_0x28c12d(0xfa)](_0x28a585,Symbol['toStringTag'],{'value':_0x28c12d(0x1b2)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.9.4-nightly.202507290713",
3
+ "version": "0.9.4-nightly.202507290757",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -47,13 +47,13 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@univerjs/icons": "^0.4.6",
50
- "@univerjs-pro/collaboration": "0.9.4-nightly.202507290713",
51
- "@univerjs-pro/collaboration-client": "0.9.4-nightly.202507290713",
52
- "@univerjs/design": "0.9.4-nightly.202507290713",
53
- "@univerjs/core": "0.9.4-nightly.202507290713",
54
- "@univerjs/sheets": "0.9.4-nightly.202507290713",
55
- "@univerjs/ui": "0.9.4-nightly.202507290713",
56
- "@univerjs/sheets-ui": "0.9.4-nightly.202507290713"
50
+ "@univerjs-pro/collaboration": "0.9.4-nightly.202507290757",
51
+ "@univerjs/core": "0.9.4-nightly.202507290757",
52
+ "@univerjs-pro/collaboration-client": "0.9.4-nightly.202507290757",
53
+ "@univerjs/design": "0.9.4-nightly.202507290757",
54
+ "@univerjs/sheets": "0.9.4-nightly.202507290757",
55
+ "@univerjs/sheets-ui": "0.9.4-nightly.202507290757",
56
+ "@univerjs/ui": "0.9.4-nightly.202507290757"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.6",