@univerjs-pro/live-share 0.7.0-nightly.202505151607 → 0.7.0-nightly.202505171606
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x895217=_0xdba3;(function(_0x538780,_0x459f22){var _0x4da1c5=_0xdba3,_0xb50875=_0x538780();while(!![]){try{var _0x187f06=parseInt(_0x4da1c5(0x1ea))/0x1*(-parseInt(_0x4da1c5(0x208))/0x2)+parseInt(_0x4da1c5(0x1a6))/0x3*(parseInt(_0x4da1c5(0x1c2))/0x4)+-parseInt(_0x4da1c5(0x20e))/0x5*(-parseInt(_0x4da1c5(0x198))/0x6)+parseInt(_0x4da1c5(0x22f))/0x7+-parseInt(_0x4da1c5(0x1f9))/0x8+parseInt(_0x4da1c5(0x1f7))/0x9+-parseInt(_0x4da1c5(0x23d))/0xa;if(_0x187f06===_0x459f22)break;else _0xb50875['push'](_0xb50875['shift']());}catch(_0x22445f){_0xb50875['push'](_0xb50875['shift']());}}}(_0x4b27,0x498fe));var U=Object[_0x895217(0x262)],F=(_0x2143f8,_0x591704,_0x38961a)=>_0x591704 in _0x2143f8?U(_0x2143f8,_0x591704,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38961a}):_0x2143f8[_0x591704]=_0x38961a,v=(_0x24fbda,_0x4f0cac,_0x516c6c)=>F(_0x24fbda,typeof _0x4f0cac!=_0x895217(0x1f2)?_0x4f0cac+'':_0x4f0cac,_0x516c6c);Object[_0x895217(0x262)](exports,Symbol[_0x895217(0x1d4)],{'value':_0x895217(0x21e)});const m=require(_0x895217(0x231)),o=require(_0x895217(0x270)),C=require(_0x895217(0x256)),D=require(_0x895217(0x21c)),p=require(_0x895217(0x1b8)),l=require(_0x895217(0x22c)),g=require(_0x895217(0x25c)),f=require(_0x895217(0x1ad)),_=require(_0x895217(0x239)),x=require('rxjs'),b=require(_0x895217(0x1cb)),$=_0x895217(0x228),L={};class E extends o['Disposable']{constructor(){var _0x588b6a=_0x895217;super(...arguments),v(this,'_sharedOperations',new Set()),v(this,_0x588b6a(0x1b6),new Set());}[_0x895217(0x24a)](_0x3af8c4){var _0x998671=_0x895217;return this[_0x998671(0x1e8)][_0x998671(0x1bb)](_0x3af8c4),o[_0x998671(0x1df)](()=>this['_sharedOperations'][_0x998671(0x1a4)](_0x3af8c4));}[_0x895217(0x1f6)](_0x4f080c){var _0xaf31f4=_0x895217;return this[_0xaf31f4(0x1b6)][_0xaf31f4(0x1bb)](_0x4f080c),o[_0xaf31f4(0x1df)](()=>this['_reporters']['delete'](_0x4f080c));}[_0x895217(0x1ba)](_0x5c2201){var _0x172acd=_0x895217;return this[_0x172acd(0x1e8)][_0x172acd(0x1dc)](_0x5c2201);}[_0x895217(0x258)](_0x4be690){var _0x10b261=_0x895217;return Array[_0x10b261(0x201)](this[_0x10b261(0x1b6)])['map'](_0x5d787d=>_0x5d787d(_0x4be690));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x29e0a5,_0x3bc6e8,_0x5812f0,_0x1dea82)=>{var _0xd16dff=_0x895217;for(var _0x1e5626=_0x1dea82>0x1?void 0x0:_0x1dea82?H(_0x3bc6e8,_0x5812f0):_0x3bc6e8,_0x4e9f3d=_0x29e0a5[_0xd16dff(0x257)]-0x1,_0x3ae4df;_0x4e9f3d>=0x0;_0x4e9f3d--)(_0x3ae4df=_0x29e0a5[_0x4e9f3d])&&(_0x1e5626=_0x3ae4df(_0x1e5626)||_0x1e5626);return _0x1e5626;},k=(_0x199ebe,_0x5a39ef)=>(_0x26e351,_0x32621a)=>_0x5a39ef(_0x26e351,_0x32621a,_0x199ebe);let O=class extends o[_0x895217(0x193)]{constructor(_0x39f1a3){var _0x2a6828=_0x895217;super(),this['_liveShareService']=_0x39f1a3,this[_0x2a6828(0x1a1)]();}[_0x895217(0x1a1)](){var _0x3caf7c=_0x895217;[D[_0x3caf7c(0x1eb)]['id'],D[_0x3caf7c(0x18e)]['id'],C['SetWorksheetActiveOperation']['id']][_0x3caf7c(0x189)](_0xf6551b=>{var _0x29ade5=_0x3caf7c;this[_0x29ade5(0x192)](this[_0x29ade5(0x1b2)][_0x29ade5(0x24a)](_0xf6551b));});}};O=V([k(0x0,o[_0x895217(0x1d7)](E))],O);var u=function(){var _0x79828a=_0x895217;return u=Object['assign']||function(_0x584cc3){var _0x551d4d=_0xdba3;for(var _0x51ff72,_0x3b1362=0x1,_0xbc413f=arguments[_0x551d4d(0x257)];_0x3b1362<_0xbc413f;_0x3b1362++){_0x51ff72=arguments[_0x3b1362];for(var _0x33674a in _0x51ff72)Object['prototype'][_0x551d4d(0x199)][_0x551d4d(0x19b)](_0x51ff72,_0x33674a)&&(_0x584cc3[_0x33674a]=_0x51ff72[_0x33674a]);}return _0x584cc3;},u[_0x79828a(0x271)](this,arguments);},M=function(_0x1122c0,_0x51cd2d){var _0x30dafa=_0x895217,_0xf45581={};for(var _0x4dc2ab in _0x1122c0)Object[_0x30dafa(0x1c6)][_0x30dafa(0x199)][_0x30dafa(0x19b)](_0x1122c0,_0x4dc2ab)&&_0x51cd2d[_0x30dafa(0x1e4)](_0x4dc2ab)<0x0&&(_0xf45581[_0x4dc2ab]=_0x1122c0[_0x4dc2ab]);if(_0x1122c0!=null&&typeof Object[_0x30dafa(0x1fc)]==_0x30dafa(0x1be)){for(var _0x31fec7=0x0,_0x4dc2ab=Object[_0x30dafa(0x1fc)](_0x1122c0);_0x31fec7<_0x4dc2ab[_0x30dafa(0x257)];_0x31fec7++)_0x51cd2d['indexOf'](_0x4dc2ab[_0x31fec7])<0x0&&Object[_0x30dafa(0x1c6)]['propertyIsEnumerable'][_0x30dafa(0x19b)](_0x1122c0,_0x4dc2ab[_0x31fec7])&&(_0xf45581[_0x4dc2ab[_0x31fec7]]=_0x1122c0[_0x4dc2ab[_0x31fec7]]);}return _0xf45581;},j=f[_0x895217(0x196)](function(_0x30c6f6,_0x1413f2){var _0x2a67e1=_0x895217,_0x45014e=_0x30c6f6[_0x2a67e1(0x1f8)],_0x189e1d=_0x30c6f6['id'],_0x50f15a=_0x30c6f6[_0x2a67e1(0x195)],_0x4c81e8=_0x30c6f6['extend'],_0x5b7a70=M(_0x30c6f6,['icon','id',_0x2a67e1(0x195),_0x2a67e1(0x216)]),_0x421c5b=_0x2a67e1(0x218)['concat'](_0x189e1d,'\x20')['concat'](_0x50f15a||'')['trim'](),_0x4174a1=f['useRef']('_'['concat'](G()));return y(_0x45014e,''[_0x2a67e1(0x207)](_0x189e1d),{'defIds':_0x45014e['defIds'],'idSuffix':_0x4174a1[_0x2a67e1(0x1c4)]},u({'ref':_0x1413f2,'className':_0x421c5b},_0x5b7a70),_0x4c81e8);});function y(_0x14f381,_0xef608e,_0x5044e8,_0x424de2,_0x4b3900){var _0x27a4af=_0x895217;return f['createElement'](_0x14f381['tag'],u(u({'key':_0xef608e},q(_0x14f381,_0x5044e8,_0x4b3900)),_0x424de2),(W(_0x14f381,_0x5044e8)[_0x27a4af(0x234)]||[])['map'](function(_0x147606,_0x6f5375){var _0x597ae9=_0x27a4af;return y(_0x147606,''[_0x597ae9(0x207)](_0xef608e,'-')[_0x597ae9(0x207)](_0x14f381[_0x597ae9(0x24d)],'-')[_0x597ae9(0x207)](_0x6f5375),_0x5044e8,void 0x0,_0x4b3900);}));}function q(_0x318fa6,_0xe6c202,_0x18479b){var _0x2cfb6c=_0x895217,_0x284a29=u({},_0x318fa6[_0x2cfb6c(0x253)]);_0x18479b!=null&&_0x18479b['colorChannel1']&&_0x284a29[_0x2cfb6c(0x200)]===_0x2cfb6c(0x265)&&(_0x284a29[_0x2cfb6c(0x200)]=_0x18479b[_0x2cfb6c(0x265)]),_0x318fa6[_0x2cfb6c(0x24d)]===_0x2cfb6c(0x1da)&&_0x284a29['id']&&(_0x284a29['id']=_0x284a29['id']+_0xe6c202[_0x2cfb6c(0x1b0)]),Object[_0x2cfb6c(0x1bd)](_0x284a29)['forEach'](function(_0x47517a){var _0x19d6e1=_0x2cfb6c,_0x5aeafe=_0x47517a[0x0],_0x3f5064=_0x47517a[0x1];_0x5aeafe===_0x19d6e1(0x1da)&&typeof _0x3f5064==_0x19d6e1(0x237)&&(_0x284a29[_0x5aeafe]=_0x3f5064[_0x19d6e1(0x217)](/url\(#(.*)\)/,'url(#$1'[_0x19d6e1(0x207)](_0xe6c202[_0x19d6e1(0x1b0)],')')));});var _0x2f9e34=_0xe6c202['defIds'];return!_0x2f9e34||_0x2f9e34[_0x2cfb6c(0x257)]===0x0||(_0x318fa6[_0x2cfb6c(0x24d)]===_0x2cfb6c(0x1dd)&&_0x284a29[_0x2cfb6c(0x1c1)]&&(_0x284a29[_0x2cfb6c(0x1c1)]=_0x284a29[_0x2cfb6c(0x1c1)]+_0xe6c202[_0x2cfb6c(0x1b0)]),Object[_0x2cfb6c(0x1bd)](_0x284a29)['forEach'](function(_0x5ed706){var _0x5944a0=_0x2cfb6c,_0x9b0ffb=_0x5ed706[0x0],_0x2c6386=_0x5ed706[0x1];typeof _0x2c6386==_0x5944a0(0x237)&&(_0x284a29[_0x9b0ffb]=_0x2c6386[_0x5944a0(0x217)](/url\(#(.*)\)/,_0x5944a0(0x230)[_0x5944a0(0x207)](_0xe6c202[_0x5944a0(0x1b0)],')')));})),_0x284a29;}function W(_0x18b258,_0x23f92e){var _0x7f2962=_0x895217,_0x488064,_0xe09f3c=_0x23f92e[_0x7f2962(0x229)];return!_0xe09f3c||_0xe09f3c['length']===0x0?_0x18b258:_0x18b258[_0x7f2962(0x24d)]===_0x7f2962(0x188)&&(!((_0x488064=_0x18b258['children'])===null||_0x488064===void 0x0)&&_0x488064[_0x7f2962(0x257)])?u(u({},_0x18b258),{'children':_0x18b258['children'][_0x7f2962(0x225)](function(_0x38ad42){var _0xde04b2=_0x7f2962;return typeof _0x38ad42['attrs']['id']==_0xde04b2(0x237)&&_0xe09f3c&&_0xe09f3c[_0xde04b2(0x1e4)](_0x38ad42[_0xde04b2(0x253)]['id'])>-0x1?u(u({},_0x38ad42),{'attrs':u(u({},_0x38ad42['attrs']),{'id':_0x38ad42[_0xde04b2(0x253)]['id']+_0x23f92e[_0xde04b2(0x1b0)]})}):_0x38ad42;})}):_0x18b258;}function G(){var _0xb69736=_0x895217;return Math[_0xb69736(0x1f3)]()[_0xb69736(0x251)](0x24)[_0xb69736(0x1fa)](0x2,0x8);}j['displayName']='UniverIcon';var B={'tag':_0x895217(0x221),'attrs':{'fill':_0x895217(0x238),'viewBox':_0x895217(0x1fe),'width':_0x895217(0x22e),'height':_0x895217(0x22e)},'children':[{'tag':_0x895217(0x1f5),'attrs':{'fill':_0x895217(0x1a8),'d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':_0x895217(0x1f5),'attrs':{'fill':_0x895217(0x1a8),'d':'M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','fillRule':'evenodd','clipRule':_0x895217(0x1a3)}}]},P=f[_0x895217(0x196)](function(_0x1ea69c,_0x4f7011){var _0x39400d=_0x895217;return f['createElement'](j,Object[_0x39400d(0x1ff)]({},_0x1ea69c,{'id':_0x39400d(0x20c),'ref':_0x4f7011,'icon':B}));});P['displayName']=_0x895217(0x1b4);var Y=Object[_0x895217(0x1d9)],R=(_0x54da4c,_0x2f46ab,_0x254083,_0x2f9c34)=>{var _0x444ed1=_0x895217;for(var _0x56941e=_0x2f9c34>0x1?void 0x0:_0x2f9c34?Y(_0x2f46ab,_0x254083):_0x2f46ab,_0x61f6d9=_0x54da4c[_0x444ed1(0x257)]-0x1,_0xe27a56;_0x61f6d9>=0x0;_0x61f6d9--)(_0xe27a56=_0x54da4c[_0x61f6d9])&&(_0x56941e=_0xe27a56(_0x56941e)||_0x56941e);return _0x56941e;},S=(_0x296f83,_0x4ba05d)=>(_0x4adc67,_0x159bee)=>_0x4ba05d(_0x4adc67,_0x159bee,_0x296f83);exports[_0x895217(0x235)]=class extends o[_0x895217(0x19c)]{constructor(_0x36422e,_0x20a825,_0x551c3c){var _0x4f5a47=_0x895217;super(),v(this,_0x4f5a47(0x18d),new Map()),(this[_0x4f5a47(0x240)]=_0x36422e,this[_0x4f5a47(0x18f)]=_0x20a825,this['_collabSessionService']=_0x551c3c,this[_0x4f5a47(0x1a1)]());}async[_0x895217(0x1ac)](_0x20129d){var _0x4cd9f6=_0x895217;return this[_0x4cd9f6(0x18d)][_0x4cd9f6(0x1dc)](_0x20129d)||await this[_0x4cd9f6(0x214)](_0x20129d),this[_0x4cd9f6(0x18d)][_0x4cd9f6(0x1d2)](_0x20129d);}[_0x895217(0x1a1)](){var _0x2886e0=_0x895217;this['_univerInstanceService'][_0x2886e0(0x1aa)](o[_0x2886e0(0x1ef)][_0x2886e0(0x23a)])[_0x2886e0(0x205)](b[_0x2886e0(0x1ec)](this[_0x2886e0(0x1ee)]))['subscribe'](async _0x451862=>{var _0x3be356=_0x2886e0;const _0x456913=_0x451862[_0x3be356(0x20d)]();this[_0x3be356(0x18d)][_0x3be356(0x1dc)](_0x456913)||this[_0x3be356(0x214)](_0x456913);}),this['_univerInstanceService'][_0x2886e0(0x1fb)](o[_0x2886e0(0x1ef)]['UNIVER_SHEET'])[_0x2886e0(0x205)](b[_0x2886e0(0x1ec)](this[_0x2886e0(0x1ee)]))[_0x2886e0(0x23b)](_0xe133ca=>{var _0x5211b2=_0x2886e0;const _0x35c63f=_0xe133ca[_0x5211b2(0x20d)](),_0x271c6c=this[_0x5211b2(0x18d)][_0x5211b2(0x1d2)](_0x35c63f);_0x271c6c==null||_0x271c6c[_0x5211b2(0x212)]();});}async[_0x895217(0x214)](_0x4701c1){var _0x15c9ba=_0x895217;const _0x577a9f=await this[_0x15c9ba(0x26c)][_0x15c9ba(0x186)](_0x4701c1),_0x22678e=this[_0x15c9ba(0x18f)][_0x15c9ba(0x204)](exports[_0x15c9ba(0x21a)],_0x4701c1,_0x577a9f);return _0x22678e[_0x15c9ba(0x1e7)](),this['_entities'][_0x15c9ba(0x209)](_0x4701c1,_0x22678e),_0x22678e;}},exports[_0x895217(0x235)]=R([S(0x0,o[_0x895217(0x1c7)]),S(0x1,o[_0x895217(0x1d7)](o[_0x895217(0x1d6)])),S(0x2,o[_0x895217(0x1d7)](m[_0x895217(0x23e)]))],exports[_0x895217(0x235)]);var h=(_0x8011e7=>(_0x8011e7[_0x895217(0x1d0)]=_0x895217(0x246),_0x8011e7[_0x895217(0x1ce)]=_0x895217(0x215),_0x8011e7['FOLLOWING']='following',_0x8011e7['NOT_FOLLOWING']=_0x895217(0x1b5),_0x8011e7[_0x895217(0x268)]=_0x895217(0x1cf),_0x8011e7))(h||{});const Z=_0x895217(0x261),J=0xc8;function _0xdba3(_0x40f5e5,_0x1c67c7){var _0x4b2790=_0x4b27();return _0xdba3=function(_0xdba386,_0x13903a){_0xdba386=_0xdba386-0x185;var _0x51ecd1=_0x4b2790[_0xdba386];return _0x51ecd1;},_0xdba3(_0x40f5e5,_0x1c67c7);}exports[_0x895217(0x21a)]=class extends o['RxDisposable']{constructor(_0x550742,_0x17133a,_0x582343,_0x473383,_0x511ff8){var _0x49c1d2=_0x895217;super(),v(this,_0x49c1d2(0x21b),new x['BehaviorSubject'](_0x49c1d2(0x215))),v(this,_0x49c1d2(0x250),this['_status$'][_0x49c1d2(0x1bf)]()),v(this,'_init',!0x1),v(this,_0x49c1d2(0x245),null),v(this,_0x49c1d2(0x1b1),null),(this['_unitID']=_0x550742,this['_collabSession']=_0x17133a,this['_configService']=_0x582343,this['_liveShareService']=_0x473383,this[_0x49c1d2(0x19e)]=_0x511ff8);}get[_0x895217(0x185)](){var _0x1cb703=_0x895217;return this[_0x1cb703(0x21b)][_0x1cb703(0x227)]();}['dispose'](){var _0x10ddd1=_0x895217,_0x3c3f6a;(_0x3c3f6a=this['_commandDisposable'])==null||_0x3c3f6a[_0x10ddd1(0x212)](),this[_0x10ddd1(0x21b)]['next'](_0x10ddd1(0x215)),this['_status$'][_0x10ddd1(0x1cc)]();}['init'](){var _0x59ccb2=_0x895217;this[_0x59ccb2(0x1a1)]||(this[_0x59ccb2(0x1a1)]=!0x0,this[_0x59ccb2(0x259)][_0x59ccb2(0x254)][_0x59ccb2(0x205)](b['takeUntil'](this[_0x59ccb2(0x1ee)]))[_0x59ccb2(0x23b)](_0x57bec4=>{var _0x3db1df=_0x59ccb2;switch(_0x57bec4){case m[_0x3db1df(0x187)]['OFFLINE']:this[_0x3db1df(0x26b)]();break;case m[_0x3db1df(0x187)][_0x3db1df(0x206)]:this[_0x3db1df(0x1e3)]();break;}}),this['_collabSession']['event$'][_0x59ccb2(0x205)](b[_0x59ccb2(0x1ec)](this[_0x59ccb2(0x1ee)]))[_0x59ccb2(0x23b)](_0x720ac2=>{var _0x5d8f62=_0x59ccb2;const {eventID:_0x4bb005}=_0x720ac2;switch(_0x4bb005){case _['CollaborationEvent'][_0x5d8f62(0x1e1)]:this[_0x5d8f62(0x1d3)](_0x720ac2);break;case _[_0x5d8f62(0x25f)][_0x5d8f62(0x213)]:this[_0x5d8f62(0x21f)](_0x720ac2);break;case _[_0x5d8f62(0x25f)][_0x5d8f62(0x18a)]:this[_0x5d8f62(0x18b)]();break;case _[_0x5d8f62(0x25f)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x720ac2);break;}}));}[_0x895217(0x219)](){var _0x4cacdf=_0x895217;this[_0x4cacdf(0x259)][_0x4cacdf(0x249)]({'eventID':_[_0x4cacdf(0x25f)][_0x4cacdf(0x1f4)],'data':{'unitID':this[_0x4cacdf(0x25d)],'userID':this['_collabSession'][_0x4cacdf(0x18c)]()}},this[_0x4cacdf(0x25d)]);}[_0x895217(0x1af)](){var _0x12db62=_0x895217;this[_0x12db62(0x185)]==='presenting'&&(this[_0x12db62(0x21b)][_0x12db62(0x25a)](_0x12db62(0x215)),this['_collabSession'][_0x12db62(0x249)]({'eventID':_[_0x12db62(0x25f)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x12db62(0x25d)]}},this[_0x12db62(0x25d)]));}[_0x895217(0x203)](){var _0x25bfa7=_0x895217;this[_0x25bfa7(0x185)]===_0x25bfa7(0x1b5)&&(this['_status$'][_0x25bfa7(0x25a)](_0x25bfa7(0x1db)),this[_0x25bfa7(0x1a9)]());}['stopFollowing'](){var _0x1824f8=_0x895217;this['_status']===_0x1824f8(0x1db)&&this['_stopFollowing']();}[_0x895217(0x1d3)](_0x1f8760){var _0x171a1b=_0x895217;const {presenter:_0x55511a}=_0x1f8760['data'],_0x36a509=this[_0x171a1b(0x259)]['getMemberID']();this['_presenter']=_0x55511a,_0x55511a===_0x36a509?(this['_stopFollowing'](),this[_0x171a1b(0x222)]()):this[_0x171a1b(0x185)]!==_0x171a1b(0x1b5)&&(this['_stopPresenting'](),this[_0x171a1b(0x1a9)]());}['_fetchOperations'](){var _0xe571f=_0x895217;const _0x24678a={'eventID':_[_0xe571f(0x25f)][_0xe571f(0x20a)]};this[_0xe571f(0x259)][_0xe571f(0x249)](_0x24678a,this[_0xe571f(0x25d)]);}[_0x895217(0x18b)](){var _0x5ca4d9=_0x895217;this['_presenter']=null,this[_0x5ca4d9(0x185)]!==_0x5ca4d9(0x1cf)&&this['_beIdle']();}[_0x895217(0x1fd)](_0x569b05){var _0x356a2c=_0x895217;if(this['_status']===_0x356a2c(0x1db)&&this[_0x356a2c(0x1b1)]===_0x569b05[_0x356a2c(0x236)][_0x356a2c(0x20f)]){const _0x3d6404=_[_0x356a2c(0x223)](_0x569b05[_0x356a2c(0x236)])[_0x356a2c(0x243)][_0x356a2c(0x26a)]()['find'](_0x433631=>_0x433631['id']===C[_0x356a2c(0x1a2)]['id']);if(_0x3d6404){const _0x574775=_0x3d6404[_0x356a2c(0x247)][_0x356a2c(0x24b)],_0x491fa6=_0x3d6404['params'][_0x356a2c(0x255)]['id'];setTimeout(()=>{var _0x46a9d0=_0x356a2c;this[_0x46a9d0(0x19e)][_0x46a9d0(0x26d)](C[_0x46a9d0(0x19d)]['id'],{'unitId':_0x574775,'subUnitId':_0x491fa6},{'fromCollab':!0x0});});}}}[_0x895217(0x222)](){var _0x3e6cc8=_0x895217;this[_0x3e6cc8(0x21b)]['next'](_0x3e6cc8(0x1cf));const _0x3a5167=new Map(),_0x30c3c2=this['_commandDisposable']=new o[(_0x3e6cc8(0x267))]();_0x30c3c2[_0x3e6cc8(0x1bb)](o[_0x3e6cc8(0x1df)](()=>{var _0x465736=_0x3e6cc8;_0x3a5167[_0x465736(0x189)](_0x4915a5=>_0x4915a5[_0x465736(0x1cc)]()),_0x3a5167[_0x465736(0x1f0)]();})),_0x30c3c2['add'](this['_commandService'][_0x3e6cc8(0x202)](_0x25b31e=>{var _0x142ab3=_0x3e6cc8,_0x16f1fa;if(_0x25b31e['type']!==o[_0x142ab3(0x1bc)][_0x142ab3(0x241)]||!this['_liveShareService'][_0x142ab3(0x1ba)](_0x25b31e['id']))return;const {id:_0x3b1b3e}=_0x25b31e;let _0x36387b;_0x3a5167[_0x142ab3(0x1dc)](_0x3b1b3e)?_0x36387b=_0x3a5167[_0x142ab3(0x1d2)](_0x3b1b3e):(_0x36387b=new x['Subject'](),_0x3a5167[_0x142ab3(0x209)](_0x3b1b3e,_0x36387b),_0x36387b['pipe'](b[_0x142ab3(0x22a)]((_0x16f1fa=this[_0x142ab3(0x26f)][_0x142ab3(0x272)](Z))!=null?_0x16f1fa:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x35f1d2=>{var _0x22bfa8=_0x142ab3;this[_0x22bfa8(0x259)][_0x22bfa8(0x249)]({'eventID':_[_0x22bfa8(0x25f)][_0x22bfa8(0x213)],'data':{'unitID':this[_0x22bfa8(0x25d)],'operations':{[_0x35f1d2['id']]:{'id':_0x35f1d2['id'],'params':JSON[_0x22bfa8(0x1ca)](_0x35f1d2[_0x22bfa8(0x247)])}}}},this[_0x22bfa8(0x25d)]);})),_0x36387b[_0x142ab3(0x25a)](_0x25b31e);})),this[_0x3e6cc8(0x1b2)]['getInitialStates'](this[_0x3e6cc8(0x25d)])['forEach'](_0x23a0b3=>this[_0x3e6cc8(0x259)]['send']({'eventID':_[_0x3e6cc8(0x25f)][_0x3e6cc8(0x213)],'data':{'unitID':this[_0x3e6cc8(0x25d)],'operations':{[_0x23a0b3['id']]:{'id':_0x23a0b3['id'],'params':JSON[_0x3e6cc8(0x1ca)](_0x23a0b3[_0x3e6cc8(0x247)])}}}},this[_0x3e6cc8(0x25d)]));}['_stopPresenting'](){var _0x27ce83=_0x895217,_0x442604;this['_status$'][_0x27ce83(0x25a)](_0x27ce83(0x215)),(_0x442604=this[_0x27ce83(0x245)])==null||_0x442604[_0x27ce83(0x212)](),this['_commandDisposable']=null;}[_0x895217(0x1a9)](){var _0x50c96e=_0x895217,_0x77454e;(_0x77454e=this[_0x50c96e(0x245)])==null||_0x77454e[_0x50c96e(0x212)](),this[_0x50c96e(0x21b)]['next'](_0x50c96e(0x1db));}[_0x895217(0x226)](){var _0x1efb71=_0x895217,_0x321dfa;this[_0x1efb71(0x21b)][_0x1efb71(0x25a)](_0x1efb71(0x215)),(_0x321dfa=this[_0x1efb71(0x245)])==null||_0x321dfa['dispose'](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x59111f=_0x895217,_0x1b401a;this[_0x59111f(0x21b)]['next']('not-following'),(_0x1b401a=this[_0x59111f(0x245)])==null||_0x1b401a['dispose']();}[_0x895217(0x21f)](_0x1e3a70){var _0x49290a=_0x895217;if(['presenting',_0x49290a(0x1b5),_0x49290a(0x246)][_0x49290a(0x1a0)](this[_0x49290a(0x185)])||!_0x1e3a70[_0x49290a(0x236)]['presenter']||_0x1e3a70[_0x49290a(0x236)][_0x49290a(0x1d8)]===this[_0x49290a(0x259)][_0x49290a(0x18c)]())return;this['_status']===_0x49290a(0x215)&&this['_startFollowing']();const _0x124f2a=_0x1e3a70['data'][_0x49290a(0x190)];Object[_0x49290a(0x1e2)](_0x124f2a)[_0x49290a(0x189)](_0x43e1c5=>{var _0x355036=_0x49290a;this['_commandService'][_0x355036(0x26d)](_0x43e1c5['id'],_0x43e1c5[_0x355036(0x247)]?JSON[_0x355036(0x1d1)](_0x43e1c5[_0x355036(0x247)]):null,{'fromCollab':!0x0});});}[_0x895217(0x26b)](){var _0x2288f0=_0x895217,_0x1e6a90;this[_0x2288f0(0x21b)]['next'](_0x2288f0(0x246)),(_0x1e6a90=this['_commandDisposable'])==null||_0x1e6a90[_0x2288f0(0x212)]();}[_0x895217(0x1e3)](){var _0x5857ca=_0x895217;this[_0x5857ca(0x21b)][_0x5857ca(0x25a)](_0x5857ca(0x215)),this['_fetchOperations']();}},exports[_0x895217(0x21a)]=R([S(0x2,o[_0x895217(0x20b)]),S(0x3,o[_0x895217(0x1d7)](E)),S(0x4,o[_0x895217(0x1e0)])],exports[_0x895217(0x21a)]);function A(){var _0x52a75f=_0x895217;const _0x1349dc=p[_0x52a75f(0x26e)](exports[_0x52a75f(0x235)]),_0x458f77=p[_0x52a75f(0x26e)](o[_0x52a75f(0x1c7)]),_0xc95f0c=p[_0x52a75f(0x19f)](()=>_0x458f77[_0x52a75f(0x264)](o[_0x52a75f(0x1ef)][_0x52a75f(0x23a)]),void 0x0,!0x1,[]),[_0x9909b4,_0xb8744b]=f[_0x52a75f(0x25e)](null),[_0x46db05,_0x4132c9]=f['useState'](h[_0x52a75f(0x1ce)]),_0x5d272f=f[_0x52a75f(0x1a5)](null);return f[_0x52a75f(0x260)](()=>(_0xc95f0c&&_0x1349dc[_0x52a75f(0x1ac)](_0xc95f0c[_0x52a75f(0x20d)]())[_0x52a75f(0x252)](_0x516e4f=>{var _0x23e024=_0x52a75f;_0xb8744b(_0x516e4f),_0x5d272f['current']=_0x516e4f[_0x23e024(0x250)][_0x23e024(0x23b)](_0x24450d=>{_0x4132c9(_0x24450d);});}),()=>{var _0x1de74b=_0x52a75f,_0x464a24;(_0x464a24=_0x5d272f['current'])==null||_0x464a24[_0x1de74b(0x224)](),_0x5d272f['current']=null;}),[_0xc95f0c,_0x1349dc]),_0x9909b4?l[_0x52a75f(0x1c3)](g[_0x52a75f(0x22d)],{'align':_0x52a75f(0x1ab),'disabled':_0x46db05===h[_0x52a75f(0x1d0)],'className':_0x52a75f(0x210),'overlay':l[_0x52a75f(0x1c3)](K,{'status':_0x46db05,'coordinator':_0x9909b4}),'children':l[_0x52a75f(0x1c3)](_0x52a75f(0x1c9),{'className':g[_0x52a75f(0x269)](_0x52a75f(0x21d),{'univer-cursor-not-allowed':_0x46db05===h[_0x52a75f(0x1d0)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x46db05!==h[_0x52a75f(0x1d0)]}),'type':_0x52a75f(0x1c9),'children':l[_0x52a75f(0x1c3)](P,{'className':_0x52a75f(0x191)})})}):null;}function K(_0x44441e){var _0x3c577b=_0x895217;const {status:_0x2a2eee,coordinator:_0x57bb18}=_0x44441e;switch(_0x2a2eee){case h[_0x3c577b(0x1ce)]:return l[_0x3c577b(0x1c3)](z,{'coordinator':_0x57bb18});case h[_0x3c577b(0x1e9)]:return l[_0x3c577b(0x1c3)](Q,{'coordinator':_0x57bb18});case h[_0x3c577b(0x211)]:return l[_0x3c577b(0x1c3)](X,{'coordinator':_0x57bb18});case h[_0x3c577b(0x1d0)]:return l[_0x3c577b(0x1c3)](te,{});case h['PRESENTING']:return l['jsx'](ee,{'coordinator':_0x57bb18});default:return null;}}function z(_0x390cc6){var _0x15ec42=_0x895217;const {coordinator:_0x40ed51}=_0x390cc6;return l[_0x15ec42(0x242)](l[_0x15ec42(0x248)],{'children':[l[_0x15ec42(0x1c3)]('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x15ec42(0x194)}),l[_0x15ec42(0x1c3)](g[_0x15ec42(0x1b7)],{'onClick':()=>_0x40ed51['tryStartPresenting'](),'children':'Start'})]});}function Q(_0x917b03){var _0x3e817d=_0x895217;const {coordinator:_0xd87b39}=_0x917b03;return l[_0x3e817d(0x242)](l[_0x3e817d(0x248)],{'children':[l['jsx'](_0x3e817d(0x233),{'className':_0x3e817d(0x197),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x3e817d(0x1c3)](g[_0x3e817d(0x1b7)],{'onClick':()=>_0xd87b39['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x4b27(){var _0x531fa5=['_handleOffline','_collabSessionService','executeCommand','useDependency','_configService','@univerjs/core','apply','getConfig','_status','requireSession','SessionStatus','defs','forEach','LIVESHARE_TERMINATE','_handleTerminate','getMemberID','_entities','SetScrollOperation','_injector','operations','univer-size-4','disposeWithMe','Disposable','Present\x20this\x20document','className','forwardRef','univer-w-full\x20univer-mb-3\x20univer-text-sm','1476zFipPq','hasOwnProperty','onStarting','call','RxDisposable','SetWorksheetActiveOperation','_commandService','useObservable','includes','_init','InsertSheetMutation','evenodd','delete','useRef','1615683RovWdb','LiveShareService','currentColor','_startFollowing','getTypeOfUnitAdded$','end','getLiveShareCoordinator','react','Start\x20following','stopPresenting','idSuffix','_presenter','_liveShareService','UniverLiveSharePlugin','LiveShareSingle','not-following','_reporters','Button','@univerjs/ui','registerComponent','shouldShareOperation','add','CommandType','entries','function','asObservable','override','xlink:href','4zgbYnZ','jsx','current','LiveShare','prototype','IUniverInstanceService','setConfig','button','stringify','rxjs/operators','complete','_config','IDLE','presenting','OFFLINE','parse','get','_handleNewHost','toStringTag','DependentOn','Injector','Inject','presenter','getOwnPropertyDescriptor','mask','following','has','use','DesktopLiveShareController','toDisposable','ICommandService','LIVESHARE_NEW_HOST','values','_handleOnline','indexOf','connectInjector','merge','init','_sharedOperations','FOLLOWING','110Yzcomf','SetZoomRatioOperation','takeUntil','_mountLiveShare','dispose$','UniverInstanceType','clear','touchDependencies','symbol','random','LIVESHARE_REQUEST_HOST','path','registerInitialStateReporter','1617678wGsiAw','icon','1074064yGCQOs','substring','getTypeOfUnitDisposed$','getOwnPropertySymbols','_handleNewChangeSets','0\x200\x2016\x2016','assign','fill','from','onCommandExecuted','startFollowing','createInstance','pipe','ONLINE','concat','708YOEqFE','set','LIVESHARE_FETCH_OPERATIONS','IConfigService','live-share-single','getUnitId','9045kAWXJg','memberID','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','NOT_FOLLOWING','dispose','LIVESHARE_OPERATION','_startLiveShareCoordinator','idle','extend','replace','univerjs-icon\x20univerjs-icon-','tryStartPresenting','LiveShareCoordinator','_status$','@univerjs/sheets-ui','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','Module','_handleOperation','BuiltInUIPart','svg','_startPresenting','parseProtocolChangeset','unsubscribe','map','_beIdle','getValue','live-share.config','defIds','throttleTime','You\x27are\x20offline.','react/jsx-runtime','Dropdown','1em','104643wEYJMq','url(#$1','@univerjs-pro/collaboration-client','default','div','children','LiveShareController','data','string','none','@univerjs-pro/collaboration','UNIVER_SHEET','subscribe','_uiPartsService','7037580vjFmzX','CollaborationSessionService','You\x27re\x20not\x20following\x20the\x20presenter','_univerInstanceService','OPERATION','jsxs','mutations','UniverCollaborationClientPlugin','_commandDisposable','offline','params','Fragment','send','registerSharedOperation','unitId','Stop\x20presenting','tag','type','HEADER_MENU','status$','toString','then','attrs','sessionStatus$','sheet','@univerjs/sheets','length','getInitialStates','_collabSession','next','text','@univerjs/design','_unitID','useState','CollaborationEvent','useEffect','SAME_OPERATION_SHARE_INTERVAL','defineProperty','pluginName','getCurrentTypeOfUnit$','colorChannel1','UNIVER_UNKNOWN','DisposableCollection','PRESENTING','clsx','reverse'];_0x4b27=function(){return _0x531fa5;};return _0x4b27();}function X(_0x54bc35){var _0x2375a3=_0x895217;const {coordinator:_0x2495ea}=_0x54bc35;return l[_0x2375a3(0x242)](l['Fragment'],{'children':[l[_0x2375a3(0x1c3)](_0x2375a3(0x233),{'className':_0x2375a3(0x197),'children':_0x2375a3(0x23f)}),l[_0x2375a3(0x1c3)](g[_0x2375a3(0x1b7)],{'variant':_0x2375a3(0x25b),'onClick':()=>_0x2495ea[_0x2375a3(0x203)](),'children':_0x2375a3(0x1ae)})]});}function ee(_0x4e216f){var _0x3cfb9b=_0x895217;const {coordinator:_0xda0373}=_0x4e216f;return l['jsxs'](l[_0x3cfb9b(0x248)],{'children':[l['jsx'](_0x3cfb9b(0x233),{'className':_0x3cfb9b(0x197),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x3cfb9b(0x1c3)](g[_0x3cfb9b(0x1b7)],{'variant':_0x3cfb9b(0x232),'onClick':()=>_0xda0373[_0x3cfb9b(0x1af)](),'children':_0x3cfb9b(0x24c)})]});}function te(){var _0x5c5f6f=_0x895217;return l['jsx'](l[_0x5c5f6f(0x248)],{'children':_0x5c5f6f(0x22b)});}var ie=Object[_0x895217(0x1d9)],ne=(_0x4dc15d,_0x3501dd,_0x43d20b,_0x3b0162)=>{var _0x1105c2=_0x895217;for(var _0x4cf917=_0x3b0162>0x1?void 0x0:_0x3b0162?ie(_0x3501dd,_0x43d20b):_0x3501dd,_0x99e21=_0x4dc15d[_0x1105c2(0x257)]-0x1,_0x5b00bb;_0x99e21>=0x0;_0x99e21--)(_0x5b00bb=_0x4dc15d[_0x99e21])&&(_0x4cf917=_0x5b00bb(_0x4cf917)||_0x4cf917);return _0x4cf917;},N=(_0x58b5ed,_0x3f0ef2)=>(_0x2fa8d4,_0x1d8eec)=>_0x3f0ef2(_0x2fa8d4,_0x1d8eec,_0x58b5ed);exports[_0x895217(0x1de)]=class extends o['Disposable']{constructor(_0x4a7b6d,_0x1dd61c){var _0x3afb8c=_0x895217;super(),this[_0x3afb8c(0x18f)]=_0x4a7b6d,this[_0x3afb8c(0x23c)]=_0x1dd61c,this[_0x3afb8c(0x1ed)]();}['_mountLiveShare'](){var _0x418318=_0x895217;this[_0x418318(0x192)](this[_0x418318(0x23c)][_0x418318(0x1b9)](p[_0x418318(0x220)][_0x418318(0x24f)],()=>p[_0x418318(0x1e5)](A,this[_0x418318(0x18f)])));}},exports[_0x895217(0x1de)]=ne([N(0x0,o[_0x895217(0x1d7)](o[_0x895217(0x1d6)])),N(0x1,p['IUIPartsService'])],exports['DesktopLiveShareController']);var re=Object[_0x895217(0x262)],se=Object[_0x895217(0x1d9)],oe=(_0x3bb109,_0x21f397,_0x240361)=>_0x21f397 in _0x3bb109?re(_0x3bb109,_0x21f397,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x240361}):_0x3bb109[_0x21f397]=_0x240361,ae=(_0x40ab19,_0x3e15fd,_0x3863ff,_0x30f0ad)=>{var _0x4e2552=_0x895217;for(var _0x524213=_0x30f0ad>0x1?void 0x0:_0x30f0ad?se(_0x3e15fd,_0x3863ff):_0x3e15fd,_0x4d2c92=_0x40ab19[_0x4e2552(0x257)]-0x1,_0x77b815;_0x4d2c92>=0x0;_0x4d2c92--)(_0x77b815=_0x40ab19[_0x4d2c92])&&(_0x524213=_0x77b815(_0x524213)||_0x524213);return _0x524213;},w=(_0x1b7a61,_0x1928db)=>(_0x244663,_0x5df450)=>_0x1928db(_0x244663,_0x5df450,_0x1b7a61),T=(_0x4ed4f6,_0x2f07b0,_0x2ffa1c)=>oe(_0x4ed4f6,typeof _0x2f07b0!=_0x895217(0x1f2)?_0x2f07b0+'':_0x2f07b0,_0x2ffa1c);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x895217(0x1b3)]=class extends o['Plugin']{constructor(_0x190972=L,_0x5aeea6,_0x37b49c){var _0x3b913f=_0x895217;super(),this[_0x3b913f(0x1cd)]=_0x190972,this['_injector']=_0x5aeea6,this['_configService']=_0x37b49c;const {..._0xbae58d}=o[_0x3b913f(0x1e6)]({},L,this['_config']);this[_0x3b913f(0x26f)][_0x3b913f(0x1c8)]($,_0xbae58d);}[_0x895217(0x19a)](){var _0x4fd425=_0x895217;o['registerDependencies'](this[_0x4fd425(0x18f)],o['mergeOverrideWithDependencies']([[E],[exports[_0x4fd425(0x235)]],[O],[exports['DesktopLiveShareController']]],this['_config'][_0x4fd425(0x1c0)])),o[_0x4fd425(0x1f1)](this[_0x4fd425(0x18f)],[[O]]);}['onRendered'](){var _0x4e8697=_0x895217;o[_0x4e8697(0x1f1)](this['_injector'],[[exports[_0x4e8697(0x1de)]]]);}},T(exports[_0x895217(0x1b3)],_0x895217(0x24e),o[_0x895217(0x1ef)][_0x895217(0x266)]),T(exports[_0x895217(0x1b3)],_0x895217(0x263),le),exports[_0x895217(0x1b3)]=ae([o[_0x895217(0x1d5)](m[_0x895217(0x244)]),w(0x1,o['Inject'](o[_0x895217(0x1d6)])),w(0x2,o[_0x895217(0x20b)])],exports[_0x895217(0x1b3)]),exports[_0x895217(0x1c5)]=A,exports[_0x895217(0x1a7)]=E,exports['LiveShareStatus']=h;
|
|
1
|
+
'use strict';function _0x4dc4(_0x18bba0,_0x49f634){var _0x312d87=_0x312d();return _0x4dc4=function(_0x4dc4b1,_0xc35709){_0x4dc4b1=_0x4dc4b1-0x19b;var _0x5e8a09=_0x312d87[_0x4dc4b1];return _0x5e8a09;},_0x4dc4(_0x18bba0,_0x49f634);}var _0x56a41b=_0x4dc4;(function(_0x3f07ab,_0x482492){var _0x230269=_0x4dc4,_0x53ed9a=_0x3f07ab();while(!![]){try{var _0x3832c5=parseInt(_0x230269(0x1d6))/0x1+-parseInt(_0x230269(0x213))/0x2*(parseInt(_0x230269(0x22d))/0x3)+parseInt(_0x230269(0x205))/0x4*(-parseInt(_0x230269(0x237))/0x5)+parseInt(_0x230269(0x1b7))/0x6+parseInt(_0x230269(0x241))/0x7+-parseInt(_0x230269(0x216))/0x8+parseInt(_0x230269(0x271))/0x9;if(_0x3832c5===_0x482492)break;else _0x53ed9a['push'](_0x53ed9a['shift']());}catch(_0x224927){_0x53ed9a['push'](_0x53ed9a['shift']());}}}(_0x312d,0x20162));var U=Object[_0x56a41b(0x202)],F=(_0x208413,_0x2b169f,_0x1d3945)=>_0x2b169f in _0x208413?U(_0x208413,_0x2b169f,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1d3945}):_0x208413[_0x2b169f]=_0x1d3945,v=(_0x1c9d8c,_0x5d9ced,_0x3ae161)=>F(_0x1c9d8c,typeof _0x5d9ced!=_0x56a41b(0x233)?_0x5d9ced+'':_0x5d9ced,_0x3ae161);Object[_0x56a41b(0x202)](exports,Symbol[_0x56a41b(0x1df)],{'value':_0x56a41b(0x245)});const m=require(_0x56a41b(0x1e4)),o=require(_0x56a41b(0x252)),C=require('@univerjs/sheets'),D=require(_0x56a41b(0x1ca)),p=require(_0x56a41b(0x1b9)),l=require('react/jsx-runtime'),g=require(_0x56a41b(0x222)),f=require(_0x56a41b(0x20c)),_=require('@univerjs-pro/collaboration'),x=require(_0x56a41b(0x23e)),b=require('rxjs/operators'),$=_0x56a41b(0x27e),L={};class E extends o['Disposable']{constructor(){var _0x3b035b=_0x56a41b;super(...arguments),v(this,_0x3b035b(0x272),new Set()),v(this,'_reporters',new Set());}[_0x56a41b(0x261)](_0x3bb0a7){var _0x27b222=_0x56a41b;return this['_sharedOperations'][_0x27b222(0x248)](_0x3bb0a7),o['toDisposable'](()=>this[_0x27b222(0x272)][_0x27b222(0x1e0)](_0x3bb0a7));}[_0x56a41b(0x219)](_0x1c7a8b){var _0x2cc1de=_0x56a41b;return this[_0x2cc1de(0x1cc)][_0x2cc1de(0x248)](_0x1c7a8b),o[_0x2cc1de(0x1a9)](()=>this[_0x2cc1de(0x1cc)][_0x2cc1de(0x1e0)](_0x1c7a8b));}[_0x56a41b(0x22a)](_0x2c8377){var _0x25b827=_0x56a41b;return this[_0x25b827(0x272)][_0x25b827(0x1e1)](_0x2c8377);}['getInitialStates'](_0x171367){var _0xb9ccf7=_0x56a41b;return Array[_0xb9ccf7(0x22e)](this[_0xb9ccf7(0x1cc)])[_0xb9ccf7(0x1bc)](_0x431523=>_0x431523(_0x171367));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x2307cf,_0x416aa7,_0x4c07c2,_0x1c759f)=>{var _0x2dedba=_0x56a41b;for(var _0x25cbac=_0x1c759f>0x1?void 0x0:_0x1c759f?H(_0x416aa7,_0x4c07c2):_0x416aa7,_0x4bdb4a=_0x2307cf[_0x2dedba(0x1d9)]-0x1,_0x2ae663;_0x4bdb4a>=0x0;_0x4bdb4a--)(_0x2ae663=_0x2307cf[_0x4bdb4a])&&(_0x25cbac=_0x2ae663(_0x25cbac)||_0x25cbac);return _0x25cbac;},k=(_0x3f041b,_0x18bc0f)=>(_0x5c7db4,_0xa2997c)=>_0x18bc0f(_0x5c7db4,_0xa2997c,_0x3f041b);let O=class extends o[_0x56a41b(0x250)]{constructor(_0x10d33e){super(),this['_liveShareService']=_0x10d33e,this['_init']();}[_0x56a41b(0x1e7)](){var _0x3fec0d=_0x56a41b;[D[_0x3fec0d(0x21c)]['id'],D['SetScrollOperation']['id'],C[_0x3fec0d(0x21e)]['id']][_0x3fec0d(0x1d4)](_0x42c3bd=>{var _0x586920=_0x3fec0d;this[_0x586920(0x22b)](this[_0x586920(0x1c1)][_0x586920(0x261)](_0x42c3bd));});}};O=V([k(0x0,o[_0x56a41b(0x1c0)](E))],O);var u=function(){var _0x33c592=_0x56a41b;return u=Object[_0x33c592(0x24b)]||function(_0x44e6b6){var _0x2648bf=_0x33c592;for(var _0x46a9e1,_0x1b01ff=0x1,_0xb9fd86=arguments['length'];_0x1b01ff<_0xb9fd86;_0x1b01ff++){_0x46a9e1=arguments[_0x1b01ff];for(var _0x3699f6 in _0x46a9e1)Object[_0x2648bf(0x1c3)]['hasOwnProperty'][_0x2648bf(0x236)](_0x46a9e1,_0x3699f6)&&(_0x44e6b6[_0x3699f6]=_0x46a9e1[_0x3699f6]);}return _0x44e6b6;},u['apply'](this,arguments);},M=function(_0x16f335,_0x40d537){var _0x41608b=_0x56a41b,_0x320d1c={};for(var _0x3136cc in _0x16f335)Object['prototype'][_0x41608b(0x26f)][_0x41608b(0x236)](_0x16f335,_0x3136cc)&&_0x40d537['indexOf'](_0x3136cc)<0x0&&(_0x320d1c[_0x3136cc]=_0x16f335[_0x3136cc]);if(_0x16f335!=null&&typeof Object[_0x41608b(0x19d)]==_0x41608b(0x1ec)){for(var _0x1fb78a=0x0,_0x3136cc=Object['getOwnPropertySymbols'](_0x16f335);_0x1fb78a<_0x3136cc[_0x41608b(0x1d9)];_0x1fb78a++)_0x40d537[_0x41608b(0x1ff)](_0x3136cc[_0x1fb78a])<0x0&&Object[_0x41608b(0x1c3)][_0x41608b(0x255)][_0x41608b(0x236)](_0x16f335,_0x3136cc[_0x1fb78a])&&(_0x320d1c[_0x3136cc[_0x1fb78a]]=_0x16f335[_0x3136cc[_0x1fb78a]]);}return _0x320d1c;},j=f[_0x56a41b(0x23c)](function(_0x18fcd4,_0x4aa0b1){var _0x1bfae6=_0x56a41b,_0x1f19ee=_0x18fcd4[_0x1bfae6(0x1cd)],_0x59c269=_0x18fcd4['id'],_0x3a57c5=_0x18fcd4['className'],_0x57bf11=_0x18fcd4[_0x1bfae6(0x1ee)],_0x45c0aa=M(_0x18fcd4,[_0x1bfae6(0x1cd),'id',_0x1bfae6(0x1db),_0x1bfae6(0x1ee)]),_0x1a3dcf=_0x1bfae6(0x269)[_0x1bfae6(0x1e6)](_0x59c269,'\x20')[_0x1bfae6(0x1e6)](_0x3a57c5||'')[_0x1bfae6(0x240)](),_0x3700ba=f['useRef']('_'[_0x1bfae6(0x1e6)](G()));return y(_0x1f19ee,''[_0x1bfae6(0x1e6)](_0x59c269),{'defIds':_0x1f19ee[_0x1bfae6(0x1d7)],'idSuffix':_0x3700ba['current']},u({'ref':_0x4aa0b1,'className':_0x1a3dcf},_0x45c0aa),_0x57bf11);});function y(_0x3a3fb1,_0x5ddade,_0x228199,_0x588fd4,_0x153aae){var _0x52a2e0=_0x56a41b;return f[_0x52a2e0(0x1b5)](_0x3a3fb1[_0x52a2e0(0x1d5)],u(u({'key':_0x5ddade},q(_0x3a3fb1,_0x228199,_0x153aae)),_0x588fd4),(W(_0x3a3fb1,_0x228199)['children']||[])[_0x52a2e0(0x1bc)](function(_0xa97fa5,_0x59db7d){var _0x3d84a5=_0x52a2e0;return y(_0xa97fa5,''['concat'](_0x5ddade,'-')[_0x3d84a5(0x1e6)](_0x3a3fb1[_0x3d84a5(0x1d5)],'-')['concat'](_0x59db7d),_0x228199,void 0x0,_0x153aae);}));}function q(_0x220453,_0x2987d4,_0x55159c){var _0x2ddf9c=_0x56a41b,_0x3f624d=u({},_0x220453[_0x2ddf9c(0x1d1)]);_0x55159c!=null&&_0x55159c[_0x2ddf9c(0x1c7)]&&_0x3f624d[_0x2ddf9c(0x1a8)]===_0x2ddf9c(0x1c7)&&(_0x3f624d[_0x2ddf9c(0x1a8)]=_0x55159c[_0x2ddf9c(0x1c7)]),_0x220453['tag']===_0x2ddf9c(0x27a)&&_0x3f624d['id']&&(_0x3f624d['id']=_0x3f624d['id']+_0x2987d4[_0x2ddf9c(0x1fe)]),Object[_0x2ddf9c(0x1ad)](_0x3f624d)['forEach'](function(_0x745900){var _0x1280e6=_0x2ddf9c,_0x2e42a3=_0x745900[0x0],_0x82fc21=_0x745900[0x1];_0x2e42a3==='mask'&&typeof _0x82fc21==_0x1280e6(0x238)&&(_0x3f624d[_0x2e42a3]=_0x82fc21[_0x1280e6(0x1f5)](/url\(#(.*)\)/,_0x1280e6(0x23f)[_0x1280e6(0x1e6)](_0x2987d4[_0x1280e6(0x1fe)],')')));});var _0x22e127=_0x2987d4['defIds'];return!_0x22e127||_0x22e127[_0x2ddf9c(0x1d9)]===0x0||(_0x220453[_0x2ddf9c(0x1d5)]===_0x2ddf9c(0x1b6)&&_0x3f624d[_0x2ddf9c(0x1b8)]&&(_0x3f624d[_0x2ddf9c(0x1b8)]=_0x3f624d[_0x2ddf9c(0x1b8)]+_0x2987d4[_0x2ddf9c(0x1fe)]),Object[_0x2ddf9c(0x1ad)](_0x3f624d)['forEach'](function(_0x4d4810){var _0x21f08a=_0x2ddf9c,_0x1695b0=_0x4d4810[0x0],_0x2898a3=_0x4d4810[0x1];typeof _0x2898a3==_0x21f08a(0x238)&&(_0x3f624d[_0x1695b0]=_0x2898a3[_0x21f08a(0x1f5)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x2987d4[_0x21f08a(0x1fe)],')')));})),_0x3f624d;}function W(_0x53dd09,_0x31f730){var _0x54e21b=_0x56a41b,_0x5540ea,_0x39aaa6=_0x31f730[_0x54e21b(0x1d7)];return!_0x39aaa6||_0x39aaa6[_0x54e21b(0x1d9)]===0x0?_0x53dd09:_0x53dd09[_0x54e21b(0x1d5)]==='defs'&&(!((_0x5540ea=_0x53dd09[_0x54e21b(0x1dc)])===null||_0x5540ea===void 0x0)&&_0x5540ea[_0x54e21b(0x1d9)])?u(u({},_0x53dd09),{'children':_0x53dd09['children'][_0x54e21b(0x1bc)](function(_0xdffe29){var _0x1079ac=_0x54e21b;return typeof _0xdffe29['attrs']['id']==_0x1079ac(0x238)&&_0x39aaa6&&_0x39aaa6[_0x1079ac(0x1ff)](_0xdffe29[_0x1079ac(0x1d1)]['id'])>-0x1?u(u({},_0xdffe29),{'attrs':u(u({},_0xdffe29[_0x1079ac(0x1d1)]),{'id':_0xdffe29[_0x1079ac(0x1d1)]['id']+_0x31f730[_0x1079ac(0x1fe)]})}):_0xdffe29;})}):_0x53dd09;}function G(){var _0x38528d=_0x56a41b;return Math['random']()[_0x38528d(0x1e3)](0x24)[_0x38528d(0x270)](0x2,0x8);}j['displayName']=_0x56a41b(0x206);var B={'tag':_0x56a41b(0x244),'attrs':{'fill':'none','viewBox':'0\x200\x2016\x2016','width':_0x56a41b(0x260),'height':_0x56a41b(0x260)},'children':[{'tag':_0x56a41b(0x214),'attrs':{'fill':_0x56a41b(0x1c4),'d':_0x56a41b(0x254)}},{'tag':_0x56a41b(0x214),'attrs':{'fill':_0x56a41b(0x1c4),'d':_0x56a41b(0x1f8),'fillRule':'evenodd','clipRule':_0x56a41b(0x1c6)}}]},P=f['forwardRef'](function(_0x346be7,_0x3277ac){var _0x3ffcbb=_0x56a41b;return f[_0x3ffcbb(0x1b5)](j,Object[_0x3ffcbb(0x24b)]({},_0x346be7,{'id':_0x3ffcbb(0x223),'ref':_0x3277ac,'icon':B}));});P[_0x56a41b(0x1a6)]=_0x56a41b(0x19f);var Y=Object[_0x56a41b(0x23a)],R=(_0x585243,_0x25245f,_0x2233fc,_0x2e890c)=>{var _0x418ecc=_0x56a41b;for(var _0x562c86=_0x2e890c>0x1?void 0x0:_0x2e890c?Y(_0x25245f,_0x2233fc):_0x25245f,_0x3e4c58=_0x585243[_0x418ecc(0x1d9)]-0x1,_0xb1d659;_0x3e4c58>=0x0;_0x3e4c58--)(_0xb1d659=_0x585243[_0x3e4c58])&&(_0x562c86=_0xb1d659(_0x562c86)||_0x562c86);return _0x562c86;},S=(_0x1c11d3,_0x55b5f0)=>(_0x442293,_0x4039de)=>_0x55b5f0(_0x442293,_0x4039de,_0x1c11d3);exports[_0x56a41b(0x1f9)]=class extends o[_0x56a41b(0x1eb)]{constructor(_0x37e8bb,_0x1de95a,_0x2a3243){var _0x2a3532=_0x56a41b;super(),v(this,'_entities',new Map()),(this[_0x2a3532(0x25b)]=_0x37e8bb,this[_0x2a3532(0x232)]=_0x1de95a,this['_collabSessionService']=_0x2a3243,this[_0x2a3532(0x1e7)]());}async[_0x56a41b(0x1a7)](_0x57cea){var _0x7adbe8=_0x56a41b;return this[_0x7adbe8(0x212)][_0x7adbe8(0x1e1)](_0x57cea)||await this['_startLiveShareCoordinator'](_0x57cea),this[_0x7adbe8(0x212)][_0x7adbe8(0x1fd)](_0x57cea);}[_0x56a41b(0x1e7)](){var _0xf4c2dd=_0x56a41b;this['_univerInstanceService']['getTypeOfUnitAdded$'](o[_0xf4c2dd(0x1b1)][_0xf4c2dd(0x234)])['pipe'](b['takeUntil'](this['dispose$']))[_0xf4c2dd(0x1ef)](async _0x59ad4d=>{var _0x1c6f5b=_0xf4c2dd;const _0x5407d7=_0x59ad4d[_0x1c6f5b(0x1cf)]();this[_0x1c6f5b(0x212)][_0x1c6f5b(0x1e1)](_0x5407d7)||this[_0x1c6f5b(0x1aa)](_0x5407d7);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](o[_0xf4c2dd(0x1b1)][_0xf4c2dd(0x234)])['pipe'](b[_0xf4c2dd(0x1a2)](this[_0xf4c2dd(0x1fa)]))[_0xf4c2dd(0x1ef)](_0x374ef1=>{var _0x5b9d8a=_0xf4c2dd;const _0x57bcf1=_0x374ef1['getUnitId'](),_0x1df198=this[_0x5b9d8a(0x212)][_0x5b9d8a(0x1fd)](_0x57bcf1);_0x1df198==null||_0x1df198['dispose']();});}async[_0x56a41b(0x1aa)](_0x2e7335){var _0x30228e=_0x56a41b;const _0xf4b29a=await this[_0x30228e(0x228)][_0x30228e(0x225)](_0x2e7335),_0x5a6c0f=this['_injector']['createInstance'](exports[_0x30228e(0x23d)],_0x2e7335,_0xf4b29a);return _0x5a6c0f['init'](),this['_entities'][_0x30228e(0x1ab)](_0x2e7335,_0x5a6c0f),_0x5a6c0f;}},exports['LiveShareController']=R([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0x56a41b(0x1c0)](o[_0x56a41b(0x20a)])),S(0x2,o[_0x56a41b(0x1c0)](m[_0x56a41b(0x227)]))],exports[_0x56a41b(0x1f9)]);var h=(_0x36645e=>(_0x36645e[_0x56a41b(0x1ac)]=_0x56a41b(0x1be),_0x36645e[_0x56a41b(0x1f1)]='idle',_0x36645e['FOLLOWING']=_0x56a41b(0x1ea),_0x36645e['NOT_FOLLOWING']='not-following',_0x36645e['PRESENTING']=_0x56a41b(0x1f2),_0x36645e))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports[_0x56a41b(0x23d)]=class extends o[_0x56a41b(0x1eb)]{constructor(_0x3cf54b,_0x39adfe,_0x3a08be,_0x54f397,_0x1ef586){var _0x354097=_0x56a41b;super(),v(this,'_status$',new x[(_0x354097(0x1f0))](_0x354097(0x27f))),v(this,'status$',this[_0x354097(0x278)][_0x354097(0x24d)]()),v(this,_0x354097(0x1e7),!0x1),v(this,_0x354097(0x235),null),v(this,'_presenter',null),(this[_0x354097(0x26e)]=_0x3cf54b,this['_collabSession']=_0x39adfe,this[_0x354097(0x251)]=_0x3a08be,this[_0x354097(0x1c1)]=_0x54f397,this['_commandService']=_0x1ef586);}get['_status'](){return this['_status$']['getValue']();}[_0x56a41b(0x25e)](){var _0x27b901=_0x56a41b,_0x503f10;(_0x503f10=this[_0x27b901(0x235)])==null||_0x503f10[_0x27b901(0x25e)](),this[_0x27b901(0x278)]['next']('idle'),this[_0x27b901(0x278)][_0x27b901(0x220)]();}[_0x56a41b(0x217)](){var _0x10cd66=_0x56a41b;this['_init']||(this[_0x10cd66(0x1e7)]=!0x0,this[_0x10cd66(0x209)][_0x10cd66(0x1fb)][_0x10cd66(0x1d2)](b['takeUntil'](this[_0x10cd66(0x1fa)]))[_0x10cd66(0x1ef)](_0x49203e=>{var _0x291985=_0x10cd66;switch(_0x49203e){case m[_0x291985(0x26a)][_0x291985(0x1ac)]:this[_0x291985(0x253)]();break;case m['SessionStatus'][_0x291985(0x1bb)]:this[_0x291985(0x204)]();break;}}),this[_0x10cd66(0x209)]['event$']['pipe'](b[_0x10cd66(0x1a2)](this['dispose$']))[_0x10cd66(0x1ef)](_0x433d7c=>{var _0x50b094=_0x10cd66;const {eventID:_0x3fad3b}=_0x433d7c;switch(_0x3fad3b){case _[_0x50b094(0x1af)][_0x50b094(0x1ce)]:this[_0x50b094(0x1b4)](_0x433d7c);break;case _[_0x50b094(0x1af)][_0x50b094(0x25c)]:this[_0x50b094(0x1ed)](_0x433d7c);break;case _[_0x50b094(0x1af)][_0x50b094(0x20d)]:this[_0x50b094(0x22c)]();break;case _[_0x50b094(0x1af)][_0x50b094(0x230)]:this[_0x50b094(0x21a)](_0x433d7c);break;}}));}['tryStartPresenting'](){var _0x297325=_0x56a41b;this[_0x297325(0x209)][_0x297325(0x1fc)]({'eventID':_[_0x297325(0x1af)][_0x297325(0x215)],'data':{'unitID':this[_0x297325(0x26e)],'userID':this[_0x297325(0x209)][_0x297325(0x211)]()}},this[_0x297325(0x26e)]);}[_0x56a41b(0x239)](){var _0xd9828c=_0x56a41b;this[_0xd9828c(0x243)]===_0xd9828c(0x1f2)&&(this[_0xd9828c(0x278)]['next']('idle'),this[_0xd9828c(0x209)][_0xd9828c(0x1fc)]({'eventID':_[_0xd9828c(0x1af)][_0xd9828c(0x20d)],'data':{'unitID':this[_0xd9828c(0x26e)]}},this[_0xd9828c(0x26e)]));}[_0x56a41b(0x218)](){var _0x53bcf8=_0x56a41b;this[_0x53bcf8(0x243)]===_0x53bcf8(0x25d)&&(this['_status$'][_0x53bcf8(0x229)](_0x53bcf8(0x1ea)),this[_0x53bcf8(0x1ba)]());}[_0x56a41b(0x273)](){var _0x1f7ee7=_0x56a41b;this[_0x1f7ee7(0x243)]===_0x1f7ee7(0x1ea)&&this[_0x1f7ee7(0x1b3)]();}[_0x56a41b(0x1b4)](_0x525652){var _0x431fa6=_0x56a41b;const {presenter:_0x36ec5d}=_0x525652['data'],_0x32f395=this[_0x431fa6(0x209)]['getMemberID']();this[_0x431fa6(0x249)]=_0x36ec5d,_0x36ec5d===_0x32f395?(this[_0x431fa6(0x1b3)](),this['_startPresenting']()):this['_status']!==_0x431fa6(0x25d)&&(this[_0x431fa6(0x1f6)](),this[_0x431fa6(0x1ba)]());}[_0x56a41b(0x1d3)](){var _0x556326=_0x56a41b;const _0x3f412f={'eventID':_[_0x556326(0x1af)][_0x556326(0x20e)]};this[_0x556326(0x209)][_0x556326(0x1fc)](_0x3f412f,this[_0x556326(0x26e)]);}[_0x56a41b(0x22c)](){var _0x3c23fb=_0x56a41b;this['_presenter']=null,this[_0x3c23fb(0x243)]!==_0x3c23fb(0x1f2)&&this[_0x3c23fb(0x1cb)]();}[_0x56a41b(0x21a)](_0x548d56){var _0x4ebac4=_0x56a41b;if(this[_0x4ebac4(0x243)]==='following'&&this['_presenter']===_0x548d56[_0x4ebac4(0x21d)]['memberID']){const _0x28ce55=_['parseProtocolChangeset'](_0x548d56[_0x4ebac4(0x21d)])[_0x4ebac4(0x267)][_0x4ebac4(0x19e)]()[_0x4ebac4(0x265)](_0x11e239=>_0x11e239['id']===C['InsertSheetMutation']['id']);if(_0x28ce55){const _0x4cd0ae=_0x28ce55[_0x4ebac4(0x1f7)][_0x4ebac4(0x25a)],_0x52fd41=_0x28ce55[_0x4ebac4(0x1f7)]['sheet']['id'];setTimeout(()=>{var _0x347f72=_0x4ebac4;this[_0x347f72(0x208)][_0x347f72(0x226)](C[_0x347f72(0x21e)]['id'],{'unitId':_0x4cd0ae,'subUnitId':_0x52fd41},{'fromCollab':!0x0});});}}}[_0x56a41b(0x1f4)](){var _0x533ac0=_0x56a41b;this[_0x533ac0(0x278)][_0x533ac0(0x229)](_0x533ac0(0x1f2));const _0x576f3a=new Map(),_0x4ee5e4=this[_0x533ac0(0x235)]=new o[(_0x533ac0(0x1e5))]();_0x4ee5e4['add'](o[_0x533ac0(0x1a9)](()=>{var _0x5f4280=_0x533ac0;_0x576f3a['forEach'](_0x20d495=>_0x20d495[_0x5f4280(0x220)]()),_0x576f3a[_0x5f4280(0x1a3)]();})),_0x4ee5e4[_0x533ac0(0x248)](this[_0x533ac0(0x208)][_0x533ac0(0x277)](_0x27af79=>{var _0x215e10=_0x533ac0,_0x259a5a;if(_0x27af79[_0x215e10(0x1a4)]!==o[_0x215e10(0x256)]['OPERATION']||!this[_0x215e10(0x1c1)][_0x215e10(0x22a)](_0x27af79['id']))return;const {id:_0x5c5af3}=_0x27af79;let _0x4211ec;_0x576f3a[_0x215e10(0x1e1)](_0x5c5af3)?_0x4211ec=_0x576f3a['get'](_0x5c5af3):(_0x4211ec=new x['Subject'](),_0x576f3a[_0x215e10(0x1ab)](_0x5c5af3,_0x4211ec),_0x4211ec[_0x215e10(0x1d2)](b[_0x215e10(0x27b)]((_0x259a5a=this[_0x215e10(0x251)][_0x215e10(0x242)](Z))!=null?_0x259a5a:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x215e10(0x1ef)](_0x4e8186=>{var _0xc864b1=_0x215e10;this[_0xc864b1(0x209)][_0xc864b1(0x1fc)]({'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x4e8186['id']]:{'id':_0x4e8186['id'],'params':JSON[_0xc864b1(0x262)](_0x4e8186[_0xc864b1(0x1f7)])}}}},this['_unitID']);})),_0x4211ec['next'](_0x27af79);})),this['_liveShareService'][_0x533ac0(0x210)](this[_0x533ac0(0x26e)])[_0x533ac0(0x1d4)](_0x55edf7=>this['_collabSession'][_0x533ac0(0x1fc)]({'eventID':_[_0x533ac0(0x1af)][_0x533ac0(0x25c)],'data':{'unitID':this['_unitID'],'operations':{[_0x55edf7['id']]:{'id':_0x55edf7['id'],'params':JSON[_0x533ac0(0x262)](_0x55edf7[_0x533ac0(0x1f7)])}}}},this[_0x533ac0(0x26e)]));}['_stopPresenting'](){var _0x2a036d=_0x56a41b,_0x23af52;this[_0x2a036d(0x278)][_0x2a036d(0x229)](_0x2a036d(0x27f)),(_0x23af52=this[_0x2a036d(0x235)])==null||_0x23af52[_0x2a036d(0x25e)](),this[_0x2a036d(0x235)]=null;}[_0x56a41b(0x1ba)](){var _0x2ab2a2=_0x56a41b,_0x4f17a7;(_0x4f17a7=this[_0x2ab2a2(0x235)])==null||_0x4f17a7[_0x2ab2a2(0x25e)](),this[_0x2ab2a2(0x278)]['next'](_0x2ab2a2(0x1ea));}[_0x56a41b(0x1cb)](){var _0x54b7aa=_0x56a41b,_0x332b20;this[_0x54b7aa(0x278)][_0x54b7aa(0x229)]('idle'),(_0x332b20=this[_0x54b7aa(0x235)])==null||_0x332b20[_0x54b7aa(0x25e)](),this['_commandDisposable']=null;}[_0x56a41b(0x1b3)](){var _0x3f9312=_0x56a41b,_0x25753d;this[_0x3f9312(0x278)]['next'](_0x3f9312(0x25d)),(_0x25753d=this[_0x3f9312(0x235)])==null||_0x25753d[_0x3f9312(0x25e)]();}[_0x56a41b(0x1ed)](_0x11d088){var _0x5e13ec=_0x56a41b;if([_0x5e13ec(0x1f2),'not-following',_0x5e13ec(0x1be)][_0x5e13ec(0x1de)](this[_0x5e13ec(0x243)])||!_0x11d088[_0x5e13ec(0x21d)][_0x5e13ec(0x1c9)]||_0x11d088[_0x5e13ec(0x21d)]['presenter']===this[_0x5e13ec(0x209)]['getMemberID']())return;this[_0x5e13ec(0x243)]==='idle'&&this['_startFollowing']();const _0x534f37=_0x11d088[_0x5e13ec(0x21d)][_0x5e13ec(0x266)];Object[_0x5e13ec(0x24c)](_0x534f37)[_0x5e13ec(0x1d4)](_0x43fc52=>{var _0x2ed39d=_0x5e13ec;this[_0x2ed39d(0x208)][_0x2ed39d(0x226)](_0x43fc52['id'],_0x43fc52[_0x2ed39d(0x1f7)]?JSON['parse'](_0x43fc52[_0x2ed39d(0x1f7)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x165b42=_0x56a41b,_0x4ff481;this['_status$'][_0x165b42(0x229)](_0x165b42(0x1be)),(_0x4ff481=this[_0x165b42(0x235)])==null||_0x4ff481['dispose']();}['_handleOnline'](){var _0x341d2d=_0x56a41b;this[_0x341d2d(0x278)][_0x341d2d(0x229)](_0x341d2d(0x27f)),this[_0x341d2d(0x1d3)]();}},exports[_0x56a41b(0x23d)]=R([S(0x2,o[_0x56a41b(0x26c)]),S(0x3,o[_0x56a41b(0x1c0)](E)),S(0x4,o[_0x56a41b(0x1a0)])],exports[_0x56a41b(0x23d)]);function A(){var _0xe374cd=_0x56a41b;const _0x18db5c=p[_0xe374cd(0x264)](exports[_0xe374cd(0x1f9)]),_0x56f29d=p[_0xe374cd(0x264)](o[_0xe374cd(0x263)]),_0x239427=p[_0xe374cd(0x27c)](()=>_0x56f29d['getCurrentTypeOfUnit$'](o['UniverInstanceType'][_0xe374cd(0x234)]),void 0x0,!0x1,[]),[_0x22e0b0,_0x3ef17f]=f['useState'](null),[_0x5738d2,_0x5043f9]=f[_0xe374cd(0x1b0)](h[_0xe374cd(0x1f1)]),_0xf752e1=f[_0xe374cd(0x231)](null);return f[_0xe374cd(0x21f)](()=>(_0x239427&&_0x18db5c[_0xe374cd(0x1a7)](_0x239427[_0xe374cd(0x1cf)]())[_0xe374cd(0x258)](_0xa151f=>{var _0x5c9a3f=_0xe374cd;_0x3ef17f(_0xa151f),_0xf752e1[_0x5c9a3f(0x207)]=_0xa151f['status$'][_0x5c9a3f(0x1ef)](_0x3a3344=>{_0x5043f9(_0x3a3344);});}),()=>{var _0x41b131=_0xe374cd,_0x2bfa31;(_0x2bfa31=_0xf752e1['current'])==null||_0x2bfa31[_0x41b131(0x1f3)](),_0xf752e1['current']=null;}),[_0x239427,_0x18db5c]),_0x22e0b0?l['jsx'](g['Dropdown'],{'align':_0xe374cd(0x1a1),'disabled':_0x5738d2===h['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','overlay':l['jsx'](K,{'status':_0x5738d2,'coordinator':_0x22e0b0}),'children':l[_0xe374cd(0x25f)]('button',{'className':g[_0xe374cd(0x201)](_0xe374cd(0x23b),{'univer-cursor-not-allowed':_0x5738d2===h[_0xe374cd(0x1ac)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5738d2!==h[_0xe374cd(0x1ac)]}),'type':_0xe374cd(0x203),'children':l[_0xe374cd(0x25f)](P,{'className':'univer-size-4'})})}):null;}function _0x312d(){var _0x567e34=['UniverCollaborationClientPlugin','DesktopLiveShareController','Disposable','_configService','@univerjs/core','_handleOffline','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','propertyIsEnumerable','CommandType','UniverLiveSharePlugin','then','jsxs','unitId','_univerInstanceService','LIVESHARE_OPERATION','not-following','dispose','jsx','1em','registerSharedOperation','stringify','IUniverInstanceService','useDependency','find','operations','mutations','onRendered','univerjs-icon\x20univerjs-icon-','SessionStatus','Button','IConfigService','tryStartPresenting','_unitID','hasOwnProperty','substring','711315NEXsDY','_sharedOperations','stopFollowing','PRESENTING','BuiltInUIPart','setConfig','onCommandExecuted','_status$','div','mask','throttleTime','useObservable','mergeOverrideWithDependencies','live-share.config','idle','Stop\x20presenting','UNIVER_LIVE_SHARE_PLUGIN','getOwnPropertySymbols','reverse','LiveShareSingle','ICommandService','end','takeUntil','clear','type','DependentOn','displayName','getLiveShareCoordinator','fill','toDisposable','_startLiveShareCoordinator','set','OFFLINE','entries','_uiPartsService','CollaborationEvent','useState','UniverInstanceType','You\x27re\x20not\x20following\x20the\x20presenter','_stopFollowing','_handleNewHost','createElement','use','285156tLlowe','xlink:href','@univerjs/ui','_startFollowing','ONLINE','map','You\x27are\x20offline.','offline','override','Inject','_liveShareService','You\x27re\x20presenting\x20the\x20document','prototype','currentColor','onStarting','evenodd','colorChannel1','Stop\x20following','presenter','@univerjs/sheets-ui','_beIdle','_reporters','icon','LIVESHARE_NEW_HOST','getUnitId','connectInjector','attrs','pipe','_fetchOperations','forEach','tag','218611MZEODS','defIds','touchDependencies','length','Start\x20following','className','children','registerDependencies','includes','toStringTag','delete','has','You\x27re\x20following\x20the\x20presenter','toString','@univerjs-pro/collaboration-client','DisposableCollection','concat','_init','_config','Present\x20this\x20document','following','RxDisposable','function','_handleOperation','extend','subscribe','BehaviorSubject','IDLE','presenting','unsubscribe','_startPresenting','replace','_stopPresenting','params','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','LiveShareController','dispose$','sessionStatus$','send','get','idSuffix','indexOf','LiveShare','clsx','defineProperty','button','_handleOnline','4uwgYSu','UniverIcon','current','_commandService','_collabSession','Injector','univer-w-full\x20univer-mb-3\x20univer-text-sm','react','LIVESHARE_TERMINATE','LIVESHARE_FETCH_OPERATIONS','pluginName','getInitialStates','getMemberID','_entities','3628TdmLOn','path','LIVESHARE_REQUEST_HOST','229464iCQbts','init','startFollowing','registerInitialStateReporter','_handleNewChangeSets','LiveShareService','SetZoomRatioOperation','data','SetWorksheetActiveOperation','useEffect','complete','IUIPartsService','@univerjs/design','live-share-single','_mountLiveShare','requireSession','executeCommand','CollaborationSessionService','_collabSessionService','next','shouldShareOperation','disposeWithMe','_handleTerminate','78zrrZMf','from','Fragment','NEW_CHANGESETS','useRef','_injector','symbol','UNIVER_SHEET','_commandDisposable','call','843110nbDFPj','string','stopPresenting','getOwnPropertyDescriptor','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','forwardRef','LiveShareCoordinator','rxjs','url(#$1','trim','215061enXDhA','getConfig','_status','svg','Module','Plugin','HEADER_MENU','add','_presenter','LiveShareStatus','assign','values','asObservable'];_0x312d=function(){return _0x567e34;};return _0x312d();}function K(_0x458775){var _0x1551b1=_0x56a41b;const {status:_0x1b84a3,coordinator:_0x4a2d87}=_0x458775;switch(_0x1b84a3){case h['IDLE']:return l[_0x1551b1(0x25f)](z,{'coordinator':_0x4a2d87});case h['FOLLOWING']:return l[_0x1551b1(0x25f)](Q,{'coordinator':_0x4a2d87});case h['NOT_FOLLOWING']:return l[_0x1551b1(0x25f)](X,{'coordinator':_0x4a2d87});case h[_0x1551b1(0x1ac)]:return l['jsx'](te,{});case h[_0x1551b1(0x274)]:return l[_0x1551b1(0x25f)](ee,{'coordinator':_0x4a2d87});default:return null;}}function z(_0x43d8d4){var _0x59373b=_0x56a41b;const {coordinator:_0x10d3e7}=_0x43d8d4;return l[_0x59373b(0x259)](l[_0x59373b(0x22f)],{'children':[l[_0x59373b(0x25f)]('div',{'className':_0x59373b(0x20b),'children':_0x59373b(0x1e9)}),l['jsx'](g[_0x59373b(0x26b)],{'onClick':()=>_0x10d3e7[_0x59373b(0x26d)](),'children':'Start'})]});}function Q(_0x10d453){var _0x7f5e43=_0x56a41b;const {coordinator:_0x5e771d}=_0x10d453;return l[_0x7f5e43(0x259)](l['Fragment'],{'children':[l[_0x7f5e43(0x25f)](_0x7f5e43(0x279),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x7f5e43(0x1e2)}),l[_0x7f5e43(0x25f)](g[_0x7f5e43(0x26b)],{'onClick':()=>_0x5e771d[_0x7f5e43(0x273)](),'children':_0x7f5e43(0x1c8)})]});}function X(_0x5a4910){var _0x1fb1ec=_0x56a41b;const {coordinator:_0x411c34}=_0x5a4910;return l['jsxs'](l[_0x1fb1ec(0x22f)],{'children':[l[_0x1fb1ec(0x25f)]('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x1fb1ec(0x1b2)}),l['jsx'](g[_0x1fb1ec(0x26b)],{'variant':'text','onClick':()=>_0x411c34[_0x1fb1ec(0x218)](),'children':_0x1fb1ec(0x1da)})]});}function ee(_0x466c11){var _0x3851ce=_0x56a41b;const {coordinator:_0x34dbb5}=_0x466c11;return l[_0x3851ce(0x259)](l[_0x3851ce(0x22f)],{'children':[l[_0x3851ce(0x25f)](_0x3851ce(0x279),{'className':_0x3851ce(0x20b),'children':_0x3851ce(0x1c2)}),l[_0x3851ce(0x25f)](g[_0x3851ce(0x26b)],{'variant':'default','onClick':()=>_0x34dbb5[_0x3851ce(0x239)](),'children':_0x3851ce(0x19b)})]});}function te(){var _0xe0d1ea=_0x56a41b;return l['jsx'](l[_0xe0d1ea(0x22f)],{'children':_0xe0d1ea(0x1bd)});}var ie=Object[_0x56a41b(0x23a)],ne=(_0x261971,_0x3d10ef,_0x58e9df,_0x5d4dc5)=>{var _0x374ceb=_0x56a41b;for(var _0x31f99c=_0x5d4dc5>0x1?void 0x0:_0x5d4dc5?ie(_0x3d10ef,_0x58e9df):_0x3d10ef,_0x28ce9a=_0x261971[_0x374ceb(0x1d9)]-0x1,_0x5e4760;_0x28ce9a>=0x0;_0x28ce9a--)(_0x5e4760=_0x261971[_0x28ce9a])&&(_0x31f99c=_0x5e4760(_0x31f99c)||_0x31f99c);return _0x31f99c;},N=(_0x23ab7d,_0x18b734)=>(_0x24895f,_0x6c29fc)=>_0x18b734(_0x24895f,_0x6c29fc,_0x23ab7d);exports[_0x56a41b(0x24f)]=class extends o['Disposable']{constructor(_0x7f4c3a,_0x3aa6b7){var _0x4fd3b6=_0x56a41b;super(),this['_injector']=_0x7f4c3a,this[_0x4fd3b6(0x1ae)]=_0x3aa6b7,this['_mountLiveShare']();}[_0x56a41b(0x224)](){var _0x28a3a7=_0x56a41b;this[_0x28a3a7(0x22b)](this[_0x28a3a7(0x1ae)]['registerComponent'](p[_0x28a3a7(0x275)][_0x28a3a7(0x247)],()=>p[_0x28a3a7(0x1d0)](A,this[_0x28a3a7(0x232)])));}},exports['DesktopLiveShareController']=ne([N(0x0,o['Inject'](o[_0x56a41b(0x20a)])),N(0x1,p[_0x56a41b(0x221)])],exports[_0x56a41b(0x24f)]);var re=Object[_0x56a41b(0x202)],se=Object[_0x56a41b(0x23a)],oe=(_0x1ad41e,_0x28f3a5,_0x229fc5)=>_0x28f3a5 in _0x1ad41e?re(_0x1ad41e,_0x28f3a5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x229fc5}):_0x1ad41e[_0x28f3a5]=_0x229fc5,ae=(_0x3a3e57,_0x179592,_0x51e7bb,_0x454a97)=>{for(var _0xe12a75=_0x454a97>0x1?void 0x0:_0x454a97?se(_0x179592,_0x51e7bb):_0x179592,_0x3ee633=_0x3a3e57['length']-0x1,_0x3b90ee;_0x3ee633>=0x0;_0x3ee633--)(_0x3b90ee=_0x3a3e57[_0x3ee633])&&(_0xe12a75=_0x3b90ee(_0xe12a75)||_0xe12a75);return _0xe12a75;},w=(_0x29c092,_0x3ff401)=>(_0x24956e,_0xdf2054)=>_0x3ff401(_0x24956e,_0xdf2054,_0x29c092),T=(_0x392717,_0x563b76,_0x447916)=>oe(_0x392717,typeof _0x563b76!=_0x56a41b(0x233)?_0x563b76+'':_0x563b76,_0x447916);const le=_0x56a41b(0x19c);exports[_0x56a41b(0x257)]=class extends o[_0x56a41b(0x246)]{constructor(_0x3cb84e=L,_0x4cefb0,_0x6a3cfa){var _0x638ad1=_0x56a41b;super(),this[_0x638ad1(0x1e8)]=_0x3cb84e,this[_0x638ad1(0x232)]=_0x4cefb0,this['_configService']=_0x6a3cfa;const {..._0x14b7ee}=o['merge']({},L,this['_config']);this[_0x638ad1(0x251)][_0x638ad1(0x276)]($,_0x14b7ee);}[_0x56a41b(0x1c5)](){var _0x2ed3b6=_0x56a41b;o[_0x2ed3b6(0x1dd)](this[_0x2ed3b6(0x232)],o[_0x2ed3b6(0x27d)]([[E],[exports[_0x2ed3b6(0x1f9)]],[O],[exports['DesktopLiveShareController']]],this[_0x2ed3b6(0x1e8)][_0x2ed3b6(0x1bf)])),o['touchDependencies'](this[_0x2ed3b6(0x232)],[[O]]);}[_0x56a41b(0x268)](){var _0x26f833=_0x56a41b;o[_0x26f833(0x1d8)](this['_injector'],[[exports[_0x26f833(0x24f)]]]);}},T(exports[_0x56a41b(0x257)],_0x56a41b(0x1a4),o[_0x56a41b(0x1b1)]['UNIVER_UNKNOWN']),T(exports[_0x56a41b(0x257)],_0x56a41b(0x20f),le),exports[_0x56a41b(0x257)]=ae([o[_0x56a41b(0x1a5)](m[_0x56a41b(0x24e)]),w(0x1,o[_0x56a41b(0x1c0)](o[_0x56a41b(0x20a)])),w(0x2,o[_0x56a41b(0x26c)])],exports[_0x56a41b(0x257)]),exports[_0x56a41b(0x200)]=A,exports[_0x56a41b(0x21b)]=E,exports[_0x56a41b(0x24a)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x5d9347=_0x4a5c;function _0x4a5c(_0x27b724,_0x131fbd){var _0x542b27=_0x542b();return _0x4a5c=function(_0x4a5c1c,_0x1baa81){_0x4a5c1c=_0x4a5c1c-0x1e9;var _0x3b57ad=_0x542b27[_0x4a5c1c];return _0x3b57ad;},_0x4a5c(_0x27b724,_0x131fbd);}(function(_0x55ae24,_0x2ff00f){var _0x59fb73=_0x4a5c,_0x49c096=_0x55ae24();while(!![]){try{var _0x3d6022=parseInt(_0x59fb73(0x273))/0x1*(parseInt(_0x59fb73(0x263))/0x2)+parseInt(_0x59fb73(0x285))/0x3*(-parseInt(_0x59fb73(0x200))/0x4)+-parseInt(_0x59fb73(0x297))/0x5*(parseInt(_0x59fb73(0x216))/0x6)+parseInt(_0x59fb73(0x21b))/0x7*(-parseInt(_0x59fb73(0x1f6))/0x8)+parseInt(_0x59fb73(0x1ea))/0x9+parseInt(_0x59fb73(0x249))/0xa+parseInt(_0x59fb73(0x206))/0xb*(parseInt(_0x59fb73(0x1ec))/0xc);if(_0x3d6022===_0x2ff00f)break;else _0x49c096['push'](_0x49c096['shift']());}catch(_0x4a7c5f){_0x49c096['push'](_0x49c096['shift']());}}}(_0x542b,0xd58e7));var q=Object[_0x5d9347(0x279)],z=(_0x4e593f,_0x5ae8e2,_0x2eda14)=>_0x5ae8e2 in _0x4e593f?q(_0x4e593f,_0x5ae8e2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2eda14}):_0x4e593f[_0x5ae8e2]=_0x2eda14,d=(_0xc44bc3,_0x140b5a,_0x595949)=>z(_0xc44bc3,typeof _0x140b5a!=_0x5d9347(0x299)?_0x140b5a+'':_0x140b5a,_0x595949);import{CollaborationSessionService as _0x1c6d67,SessionStatus as _0x35e4cc,UniverCollaborationClientPlugin as _0x1442f5}from'@univerjs-pro/collaboration-client';import{Disposable as _0x1b499d,toDisposable as _0x24c67b,Inject as _0xf4c6bc,IUniverInstanceService as _0x28a93b,Injector as _0x58103d,IConfigService as _0x15f64d,ICommandService as _0x111072,RxDisposable as _0x228607,UniverInstanceType as _0x1b1d71,DisposableCollection as _0x1c4956,CommandType as _0x2037d8,DependentOn as _0x1f205f,Plugin as _0x42940a,merge as _0x3945fc,registerDependencies as _0x2bca35,mergeOverrideWithDependencies as _0x54dac0,touchDependencies as _0x3e0e7b}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x32e572,InsertSheetMutation as _0x2fa200}from'@univerjs/sheets';function _0x542b(){var _0x4d49bf=['assign','presenter','shouldShareOperation','stringify','svg','_commandService','colorChannel1','_fetchOperations','idle','HEADER_MENU','onCommandExecuted','_collabSessionService','250KayyxJ','live-share-single','_collabSession','_entities','dispose$','hasOwnProperty','_injector','1em','_stopPresenting','OPERATION','delete','executeCommand','defIds','className','NOT_FOLLOWING','_uiPartsService','13993MJERJc','next','find','Present\x20this\x20document','ONLINE','Start','defineProperty','onRendered','getMemberID','registerSharedOperation','getOwnPropertyDescriptor','_config','subscribe','registerComponent','_status','getOwnPropertySymbols','then','fill','9LlTMIS','sessionStatus$','SAME_OPERATION_SHARE_INTERVAL','clear','You\x27re\x20presenting\x20the\x20document','LIVESHARE_TERMINATE','getCurrentTypeOfUnit$','init','default','current','_unitID','children','univerjs-icon\x20univerjs-icon-','params','_reporters','presenting','has','Start\x20following','5kgwsie','string','symbol','0\x200\x2016\x2016','10367361elkpvI','LIVESHARE_REQUEST_HOST','2724NFwyMS','displayName','mutations','_status$','following','IDLE','xlink:href','prototype','_commandDisposable','tryStartPresenting','16maekno','button','univer-w-full\x20univer-mb-3\x20univer-text-sm','stopFollowing','forEach','path','defs','extend','LIVESHARE_FETCH_OPERATIONS','_startFollowing','750124gknDvz','PRESENTING','data','currentColor','_mountLiveShare','_startLiveShareCoordinator','913vvaCpQ','getTypeOfUnitAdded$','override','startFollowing','_handleNewHost','getTypeOfUnitDisposed$','_presenter','replace','dispose','idSuffix','_stopFollowing','apply','_init','length','type','function','10086870vunQgz','attrs','map','_liveShareService','getUnitId','375256Infban','Stop\x20presenting','url(#$1','OFFLINE','parse','_beIdle','stopPresenting','from','indexOf','registerInitialStateReporter','entries','random','not-following','_handleTerminate','pipe','_configService','call','trim','toString','disposeWithMe','add','event$','offline','pluginName','unsubscribe','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','operations','_sharedOperations','_handleNewChangeSets','includes','_handleOnline','UNIVER_SHEET','tag','getInitialStates','icon','status$','Stop\x20following','concat','div','FOLLOWING','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','set','complete','sheet','send','evenodd','3057860jqfvra','mask','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','unitId','getConfig','LIVESHARE_OPERATION','_handleOffline','end','_handleOperation','text','getLiveShareCoordinator','get','_univerInstanceService','propertyIsEnumerable'];_0x542b=function(){return _0x4d49bf;};return _0x542b();}import{SetZoomRatioOperation as _0x21f87e,SetScrollOperation as _0x214d0a}from'@univerjs/sheets-ui';import{useDependency as _0x3d7b2a,useObservable as _0x226374,IUIPartsService as _0x22c001,BuiltInUIPart as _0x2015b7,connectInjector as _0xec9de6}from'@univerjs/ui';import{jsx as _0x14e593,jsxs as _0x458d04,Fragment as _0x4df0c0}from'react/jsx-runtime';import{Dropdown as _0x466fb1,clsx as _0x5ad817,Button as _0x30e4ae}from'@univerjs/design';import{forwardRef as _0xc7e6ad,useRef as _0x15b2bf,createElement as _0x5d9238,useState as _0x423282,useEffect as _0x232a4c}from'react';import{CollaborationEvent as _0x311d5f,parseProtocolChangeset as _0x5a446c}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x21ccd9,Subject as _0x2436f5}from'rxjs';import{takeUntil as _0x4bb18e,throttleTime as _0x1e6f21}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x1b499d{constructor(){var _0x1e34de=_0x5d9347;super(...arguments),d(this,_0x1e34de(0x236),new Set()),d(this,'_reporters',new Set());}['registerSharedOperation'](_0x59e1a8){var _0x435b1e=_0x5d9347;return this[_0x435b1e(0x236)][_0x435b1e(0x22f)](_0x59e1a8),_0x24c67b(()=>this[_0x435b1e(0x236)][_0x435b1e(0x26d)](_0x59e1a8));}[_0x5d9347(0x224)](_0x12ff30){var _0x5b6844=_0x5d9347;return this[_0x5b6844(0x293)][_0x5b6844(0x22f)](_0x12ff30),_0x24c67b(()=>this[_0x5b6844(0x293)][_0x5b6844(0x26d)](_0x12ff30));}[_0x5d9347(0x259)](_0x568934){var _0x4c4dfc=_0x5d9347;return this[_0x4c4dfc(0x236)][_0x4c4dfc(0x295)](_0x568934);}['getInitialStates'](_0x5c09d7){var _0x3e5666=_0x5d9347;return Array[_0x3e5666(0x222)](this[_0x3e5666(0x293)])[_0x3e5666(0x218)](_0x4c0391=>_0x4c0391(_0x5c09d7));}}var Ee=Object[_0x5d9347(0x27d)],Ce=(_0x3cfbef,_0x5e7dca,_0x945da3,_0x42e02e)=>{var _0x3c37bb=_0x5d9347;for(var _0xc079d0=_0x42e02e>0x1?void 0x0:_0x42e02e?Ee(_0x5e7dca,_0x945da3):_0x5e7dca,_0x5109c2=_0x3cfbef[_0x3c37bb(0x213)]-0x1,_0x54c0b9;_0x5109c2>=0x0;_0x5109c2--)(_0x54c0b9=_0x3cfbef[_0x5109c2])&&(_0xc079d0=_0x54c0b9(_0xc079d0)||_0xc079d0);return _0xc079d0;},Ne=(_0x362b47,_0x9742d6)=>(_0x57faea,_0x83bc70)=>_0x9742d6(_0x57faea,_0x83bc70,_0x362b47);let m=class extends _0x1b499d{constructor(_0x5f08de){var _0x3edd3f=_0x5d9347;super(),this[_0x3edd3f(0x219)]=_0x5f08de,this[_0x3edd3f(0x212)]();}[_0x5d9347(0x212)](){var _0x4edfa4=_0x5d9347;[_0x21f87e['id'],_0x214d0a['id'],_0x32e572['id']][_0x4edfa4(0x1fa)](_0x380009=>{var _0x30ff57=_0x4edfa4;this[_0x30ff57(0x22e)](this[_0x30ff57(0x219)][_0x30ff57(0x27c)](_0x380009));});}};m=Ce([Ne(0x0,_0xf4c6bc(L))],m);var c=function(){var _0x6c8d3=_0x5d9347;return c=Object[_0x6c8d3(0x257)]||function(_0x1eadb9){var _0x19d4f3=_0x6c8d3;for(var _0x283f18,_0xefbedd=0x1,_0x3893d1=arguments[_0x19d4f3(0x213)];_0xefbedd<_0x3893d1;_0xefbedd++){_0x283f18=arguments[_0xefbedd];for(var _0x285afb in _0x283f18)Object[_0x19d4f3(0x1f3)]['hasOwnProperty'][_0x19d4f3(0x22b)](_0x283f18,_0x285afb)&&(_0x1eadb9[_0x285afb]=_0x283f18[_0x285afb]);}return _0x1eadb9;},c[_0x6c8d3(0x211)](this,arguments);},we=function(_0x515abe,_0x3d6bb2){var _0x355cad=_0x5d9347,_0x2536a9={};for(var _0x42e1b6 in _0x515abe)Object[_0x355cad(0x1f3)][_0x355cad(0x268)][_0x355cad(0x22b)](_0x515abe,_0x42e1b6)&&_0x3d6bb2[_0x355cad(0x223)](_0x42e1b6)<0x0&&(_0x2536a9[_0x42e1b6]=_0x515abe[_0x42e1b6]);if(_0x515abe!=null&&typeof Object[_0x355cad(0x282)]==_0x355cad(0x215)){for(var _0xb5815d=0x0,_0x42e1b6=Object[_0x355cad(0x282)](_0x515abe);_0xb5815d<_0x42e1b6['length'];_0xb5815d++)_0x3d6bb2[_0x355cad(0x223)](_0x42e1b6[_0xb5815d])<0x0&&Object[_0x355cad(0x1f3)][_0x355cad(0x256)]['call'](_0x515abe,_0x42e1b6[_0xb5815d])&&(_0x2536a9[_0x42e1b6[_0xb5815d]]=_0x515abe[_0x42e1b6[_0xb5815d]]);}return _0x2536a9;},W=_0xc7e6ad(function(_0x1097cb,_0x1b53ee){var _0x2a3994=_0x5d9347,_0x2772f6=_0x1097cb[_0x2a3994(0x23d)],_0x4e6c98=_0x1097cb['id'],_0x57c3e1=_0x1097cb['className'],_0x3eb88c=_0x1097cb[_0x2a3994(0x1fd)],_0x39bc1c=we(_0x1097cb,[_0x2a3994(0x23d),'id',_0x2a3994(0x270),_0x2a3994(0x1fd)]),_0x7b2835=_0x2a3994(0x291)['concat'](_0x4e6c98,'\x20')[_0x2a3994(0x240)](_0x57c3e1||'')[_0x2a3994(0x22c)](),_0x4af794=_0x15b2bf('_'[_0x2a3994(0x240)](Le()));return Y(_0x2772f6,''[_0x2a3994(0x240)](_0x4e6c98),{'defIds':_0x2772f6[_0x2a3994(0x26f)],'idSuffix':_0x4af794[_0x2a3994(0x28e)]},c({'ref':_0x1b53ee,'className':_0x7b2835},_0x39bc1c),_0x3eb88c);});function Y(_0x4cb51b,_0x97fd3b,_0x1431e6,_0x38d963,_0x365855){var _0x3238de=_0x5d9347;return _0x5d9238(_0x4cb51b[_0x3238de(0x23b)],c(c({'key':_0x97fd3b},De(_0x4cb51b,_0x1431e6,_0x365855)),_0x38d963),(xe(_0x4cb51b,_0x1431e6)[_0x3238de(0x290)]||[])[_0x3238de(0x218)](function(_0x500277,_0x16c11c){var _0x5e439b=_0x3238de;return Y(_0x500277,''[_0x5e439b(0x240)](_0x97fd3b,'-')[_0x5e439b(0x240)](_0x4cb51b[_0x5e439b(0x23b)],'-')['concat'](_0x16c11c),_0x1431e6,void 0x0,_0x365855);}));}function De(_0x3a812a,_0x124474,_0xbd8383){var _0x5428ad=_0x5d9347,_0x10a9d6=c({},_0x3a812a['attrs']);_0xbd8383!=null&&_0xbd8383['colorChannel1']&&_0x10a9d6[_0x5428ad(0x284)]===_0x5428ad(0x25d)&&(_0x10a9d6[_0x5428ad(0x284)]=_0xbd8383[_0x5428ad(0x25d)]),_0x3a812a[_0x5428ad(0x23b)]===_0x5428ad(0x24a)&&_0x10a9d6['id']&&(_0x10a9d6['id']=_0x10a9d6['id']+_0x124474['idSuffix']),Object[_0x5428ad(0x225)](_0x10a9d6)[_0x5428ad(0x1fa)](function(_0x18ca5b){var _0x43c32a=_0x5428ad,_0x350b78=_0x18ca5b[0x0],_0x568d1a=_0x18ca5b[0x1];_0x350b78===_0x43c32a(0x24a)&&typeof _0x568d1a==_0x43c32a(0x298)&&(_0x10a9d6[_0x350b78]=_0x568d1a[_0x43c32a(0x20d)](/url\(#(.*)\)/,_0x43c32a(0x21d)[_0x43c32a(0x240)](_0x124474['idSuffix'],')')));});var _0x584e67=_0x124474[_0x5428ad(0x26f)];return!_0x584e67||_0x584e67['length']===0x0||(_0x3a812a[_0x5428ad(0x23b)]==='use'&&_0x10a9d6[_0x5428ad(0x1f2)]&&(_0x10a9d6['xlink:href']=_0x10a9d6['xlink:href']+_0x124474[_0x5428ad(0x20f)]),Object[_0x5428ad(0x225)](_0x10a9d6)[_0x5428ad(0x1fa)](function(_0x3ef65e){var _0x2d6055=_0x5428ad,_0x46d3ca=_0x3ef65e[0x0],_0x3ebede=_0x3ef65e[0x1];typeof _0x3ebede==_0x2d6055(0x298)&&(_0x10a9d6[_0x46d3ca]=_0x3ebede[_0x2d6055(0x20d)](/url\(#(.*)\)/,_0x2d6055(0x21d)[_0x2d6055(0x240)](_0x124474['idSuffix'],')')));})),_0x10a9d6;}function xe(_0x56dd24,_0x5031f7){var _0x4ac063=_0x5d9347,_0x340304,_0x29d16c=_0x5031f7[_0x4ac063(0x26f)];return!_0x29d16c||_0x29d16c['length']===0x0?_0x56dd24:_0x56dd24[_0x4ac063(0x23b)]===_0x4ac063(0x1fc)&&(!((_0x340304=_0x56dd24[_0x4ac063(0x290)])===null||_0x340304===void 0x0)&&_0x340304[_0x4ac063(0x213)])?c(c({},_0x56dd24),{'children':_0x56dd24[_0x4ac063(0x290)][_0x4ac063(0x218)](function(_0x356de0){var _0x4ac7f8=_0x4ac063;return typeof _0x356de0[_0x4ac7f8(0x217)]['id']==_0x4ac7f8(0x298)&&_0x29d16c&&_0x29d16c['indexOf'](_0x356de0[_0x4ac7f8(0x217)]['id'])>-0x1?c(c({},_0x356de0),{'attrs':c(c({},_0x356de0[_0x4ac7f8(0x217)]),{'id':_0x356de0['attrs']['id']+_0x5031f7[_0x4ac7f8(0x20f)]})}):_0x356de0;})}):_0x56dd24;}function Le(){var _0x240c31=_0x5d9347;return Math[_0x240c31(0x226)]()[_0x240c31(0x22d)](0x24)['substring'](0x2,0x8);}W[_0x5d9347(0x1ed)]='UniverIcon';var ye={'tag':_0x5d9347(0x25b),'attrs':{'fill':'none','viewBox':_0x5d9347(0x1e9),'width':_0x5d9347(0x26a),'height':_0x5d9347(0x26a)},'children':[{'tag':_0x5d9347(0x1fb),'attrs':{'fill':_0x5d9347(0x203),'d':_0x5d9347(0x243)}},{'tag':_0x5d9347(0x1fb),'attrs':{'fill':'currentColor','d':_0x5d9347(0x24b),'fillRule':_0x5d9347(0x248),'clipRule':_0x5d9347(0x248)}}]},B=_0xc7e6ad(function(_0x38d28e,_0x47bd46){var _0x158161=_0x5d9347;return _0x5d9238(W,Object[_0x158161(0x257)]({},_0x38d28e,{'id':_0x158161(0x264),'ref':_0x47bd46,'icon':ye}));});B['displayName']='LiveShareSingle';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x25ff56,_0x5806bc,_0xacced0,_0x331b2d)=>{for(var _0x1ebf09=_0x331b2d>0x1?void 0x0:_0x331b2d?Re(_0x5806bc,_0xacced0):_0x5806bc,_0x458a32=_0x25ff56['length']-0x1,_0x288b84;_0x458a32>=0x0;_0x458a32--)(_0x288b84=_0x25ff56[_0x458a32])&&(_0x1ebf09=_0x288b84(_0x1ebf09)||_0x1ebf09);return _0x1ebf09;},f=(_0x4ee510,_0xc66007)=>(_0x3ac084,_0x55d071)=>_0xc66007(_0x3ac084,_0x55d071,_0x4ee510);let I=class extends _0x228607{constructor(_0x52eb27,_0x2c2576,_0xd29bfa){var _0x434887=_0x5d9347;super(),d(this,_0x434887(0x266),new Map()),(this[_0x434887(0x255)]=_0x52eb27,this[_0x434887(0x269)]=_0x2c2576,this[_0x434887(0x262)]=_0xd29bfa,this['_init']());}async[_0x5d9347(0x253)](_0x362ae3){var _0x3bde86=_0x5d9347;return this[_0x3bde86(0x266)][_0x3bde86(0x295)](_0x362ae3)||await this[_0x3bde86(0x205)](_0x362ae3),this[_0x3bde86(0x266)][_0x3bde86(0x254)](_0x362ae3);}[_0x5d9347(0x212)](){var _0x186a71=_0x5d9347;this[_0x186a71(0x255)][_0x186a71(0x207)](_0x1b1d71[_0x186a71(0x23a)])['pipe'](_0x4bb18e(this['dispose$']))['subscribe'](async _0x32def2=>{var _0x2c1a39=_0x186a71;const _0x40787=_0x32def2['getUnitId']();this[_0x2c1a39(0x266)][_0x2c1a39(0x295)](_0x40787)||this[_0x2c1a39(0x205)](_0x40787);}),this[_0x186a71(0x255)][_0x186a71(0x20b)](_0x1b1d71['UNIVER_SHEET'])[_0x186a71(0x229)](_0x4bb18e(this[_0x186a71(0x267)]))[_0x186a71(0x27f)](_0x2f41f3=>{var _0x3a254c=_0x186a71;const _0x2409d5=_0x2f41f3['getUnitId'](),_0x4c6183=this[_0x3a254c(0x266)][_0x3a254c(0x254)](_0x2409d5);_0x4c6183==null||_0x4c6183[_0x3a254c(0x20e)]();});}async[_0x5d9347(0x205)](_0x17c11c){var _0x2b5c0a=_0x5d9347;const _0x32096d=await this['_collabSessionService']['requireSession'](_0x17c11c),_0x43a3bf=this[_0x2b5c0a(0x269)]['createInstance'](w,_0x17c11c,_0x32096d);return _0x43a3bf[_0x2b5c0a(0x28c)](),this[_0x2b5c0a(0x266)][_0x2b5c0a(0x244)](_0x17c11c,_0x43a3bf),_0x43a3bf;}};I=Z([f(0x0,_0x28a93b),f(0x1,_0xf4c6bc(_0x58103d)),f(0x2,_0xf4c6bc(_0x1c6d67))],I);var h=(_0x405a74=>(_0x405a74[_0x5d9347(0x21e)]=_0x5d9347(0x231),_0x405a74['IDLE']=_0x5d9347(0x25f),_0x405a74[_0x5d9347(0x242)]=_0x5d9347(0x1f0),_0x405a74['NOT_FOLLOWING']=_0x5d9347(0x227),_0x405a74[_0x5d9347(0x201)]=_0x5d9347(0x294),_0x405a74))(h||{});const Pe=_0x5d9347(0x287),Ae=0xc8;let w=class extends _0x228607{constructor(_0x443c3c,_0xe094de,_0x538cc8,_0x40c205,_0x49d40f){var _0x2e055c=_0x5d9347;super(),d(this,_0x2e055c(0x1ef),new _0x21ccd9(_0x2e055c(0x25f))),d(this,_0x2e055c(0x23e),this[_0x2e055c(0x1ef)]['asObservable']()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0x2e055c(0x20c),null),(this[_0x2e055c(0x28f)]=_0x443c3c,this[_0x2e055c(0x265)]=_0xe094de,this['_configService']=_0x538cc8,this[_0x2e055c(0x219)]=_0x40c205,this['_commandService']=_0x49d40f);}get[_0x5d9347(0x281)](){var _0x12a679=_0x5d9347;return this[_0x12a679(0x1ef)]['getValue']();}[_0x5d9347(0x20e)](){var _0x5d922e=_0x5d9347,_0x4738bf;(_0x4738bf=this[_0x5d922e(0x1f4)])==null||_0x4738bf[_0x5d922e(0x20e)](),this['_status$'][_0x5d922e(0x274)]('idle'),this['_status$'][_0x5d922e(0x245)]();}[_0x5d9347(0x28c)](){var _0x4641a0=_0x5d9347;this[_0x4641a0(0x212)]||(this[_0x4641a0(0x212)]=!0x0,this[_0x4641a0(0x265)][_0x4641a0(0x286)][_0x4641a0(0x229)](_0x4bb18e(this[_0x4641a0(0x267)]))[_0x4641a0(0x27f)](_0x12059a=>{var _0x5d0c31=_0x4641a0;switch(_0x12059a){case _0x35e4cc[_0x5d0c31(0x21e)]:this[_0x5d0c31(0x24f)]();break;case _0x35e4cc[_0x5d0c31(0x277)]:this[_0x5d0c31(0x239)]();break;}}),this[_0x4641a0(0x265)][_0x4641a0(0x230)]['pipe'](_0x4bb18e(this[_0x4641a0(0x267)]))[_0x4641a0(0x27f)](_0x487469=>{var _0xc2ffca=_0x4641a0;const {eventID:_0xc328ae}=_0x487469;switch(_0xc328ae){case _0x311d5f['LIVESHARE_NEW_HOST']:this[_0xc2ffca(0x20a)](_0x487469);break;case _0x311d5f[_0xc2ffca(0x24e)]:this[_0xc2ffca(0x251)](_0x487469);break;case _0x311d5f[_0xc2ffca(0x28a)]:this[_0xc2ffca(0x228)]();break;case _0x311d5f['NEW_CHANGESETS']:this[_0xc2ffca(0x237)](_0x487469);break;}}));}[_0x5d9347(0x1f5)](){var _0x5d5a1c=_0x5d9347;this[_0x5d5a1c(0x265)][_0x5d5a1c(0x247)]({'eventID':_0x311d5f[_0x5d5a1c(0x1eb)],'data':{'unitID':this[_0x5d5a1c(0x28f)],'userID':this[_0x5d5a1c(0x265)][_0x5d5a1c(0x27b)]()}},this[_0x5d5a1c(0x28f)]);}[_0x5d9347(0x221)](){var _0x235e5d=_0x5d9347;this[_0x235e5d(0x281)]===_0x235e5d(0x294)&&(this['_status$'][_0x235e5d(0x274)]('idle'),this[_0x235e5d(0x265)][_0x235e5d(0x247)]({'eventID':_0x311d5f[_0x235e5d(0x28a)],'data':{'unitID':this[_0x235e5d(0x28f)]}},this[_0x235e5d(0x28f)]));}[_0x5d9347(0x209)](){var _0x2b5756=_0x5d9347;this[_0x2b5756(0x281)]==='not-following'&&(this['_status$']['next'](_0x2b5756(0x1f0)),this[_0x2b5756(0x1ff)]());}[_0x5d9347(0x1f9)](){var _0x514afe=_0x5d9347;this[_0x514afe(0x281)]===_0x514afe(0x1f0)&&this['_stopFollowing']();}['_handleNewHost'](_0x4a58db){var _0x3edaad=_0x5d9347;const {presenter:_0x433873}=_0x4a58db[_0x3edaad(0x202)],_0xa542d5=this[_0x3edaad(0x265)][_0x3edaad(0x27b)]();this['_presenter']=_0x433873,_0x433873===_0xa542d5?(this[_0x3edaad(0x210)](),this['_startPresenting']()):this[_0x3edaad(0x281)]!==_0x3edaad(0x227)&&(this[_0x3edaad(0x26b)](),this[_0x3edaad(0x1ff)]());}[_0x5d9347(0x25e)](){var _0x155d37=_0x5d9347;const _0x30c94b={'eventID':_0x311d5f[_0x155d37(0x1fe)]};this[_0x155d37(0x265)][_0x155d37(0x247)](_0x30c94b,this['_unitID']);}['_handleTerminate'](){var _0x21e19c=_0x5d9347;this[_0x21e19c(0x20c)]=null,this[_0x21e19c(0x281)]!=='presenting'&&this[_0x21e19c(0x220)]();}[_0x5d9347(0x237)](_0x404e6a){var _0x48bc77=_0x5d9347;if(this['_status']===_0x48bc77(0x1f0)&&this[_0x48bc77(0x20c)]===_0x404e6a[_0x48bc77(0x202)]['memberID']){const _0x3b9855=_0x5a446c(_0x404e6a[_0x48bc77(0x202)])[_0x48bc77(0x1ee)]['reverse']()[_0x48bc77(0x275)](_0x278393=>_0x278393['id']===_0x2fa200['id']);if(_0x3b9855){const _0x34ccde=_0x3b9855[_0x48bc77(0x292)][_0x48bc77(0x24c)],_0x37b8ff=_0x3b9855[_0x48bc77(0x292)][_0x48bc77(0x246)]['id'];setTimeout(()=>{var _0x2c55ae=_0x48bc77;this[_0x2c55ae(0x25c)]['executeCommand'](_0x32e572['id'],{'unitId':_0x34ccde,'subUnitId':_0x37b8ff},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x50602f=_0x5d9347;this[_0x50602f(0x1ef)][_0x50602f(0x274)]('presenting');const _0x58c4ef=new Map(),_0x390c00=this[_0x50602f(0x1f4)]=new _0x1c4956();_0x390c00[_0x50602f(0x22f)](_0x24c67b(()=>{var _0xc55a93=_0x50602f;_0x58c4ef[_0xc55a93(0x1fa)](_0x28cb98=>_0x28cb98[_0xc55a93(0x245)]()),_0x58c4ef[_0xc55a93(0x288)]();})),_0x390c00[_0x50602f(0x22f)](this[_0x50602f(0x25c)][_0x50602f(0x261)](_0x515167=>{var _0x1847e0=_0x50602f,_0x41c631;if(_0x515167[_0x1847e0(0x214)]!==_0x2037d8[_0x1847e0(0x26c)]||!this['_liveShareService'][_0x1847e0(0x259)](_0x515167['id']))return;const {id:_0x31df88}=_0x515167;let _0x6a3217;_0x58c4ef[_0x1847e0(0x295)](_0x31df88)?_0x6a3217=_0x58c4ef[_0x1847e0(0x254)](_0x31df88):(_0x6a3217=new _0x2436f5(),_0x58c4ef['set'](_0x31df88,_0x6a3217),_0x6a3217[_0x1847e0(0x229)](_0x1e6f21((_0x41c631=this['_configService'][_0x1847e0(0x24d)](Pe))!=null?_0x41c631:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1847e0(0x27f)](_0x34e1d3=>{var _0xfa126e=_0x1847e0;this[_0xfa126e(0x265)]['send']({'eventID':_0x311d5f['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xfa126e(0x28f)],'operations':{[_0x34e1d3['id']]:{'id':_0x34e1d3['id'],'params':JSON[_0xfa126e(0x25a)](_0x34e1d3[_0xfa126e(0x292)])}}}},this[_0xfa126e(0x28f)]);})),_0x6a3217['next'](_0x515167);})),this[_0x50602f(0x219)][_0x50602f(0x23c)](this[_0x50602f(0x28f)])[_0x50602f(0x1fa)](_0x2e945a=>this['_collabSession'][_0x50602f(0x247)]({'eventID':_0x311d5f['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x50602f(0x28f)],'operations':{[_0x2e945a['id']]:{'id':_0x2e945a['id'],'params':JSON[_0x50602f(0x25a)](_0x2e945a['params'])}}}},this[_0x50602f(0x28f)]));}[_0x5d9347(0x26b)](){var _0x4e548d=_0x5d9347,_0x43a3d1;this['_status$']['next']('idle'),(_0x43a3d1=this[_0x4e548d(0x1f4)])==null||_0x43a3d1[_0x4e548d(0x20e)](),this['_commandDisposable']=null;}[_0x5d9347(0x1ff)](){var _0x56a8b6=_0x5d9347,_0xe2ea65;(_0xe2ea65=this[_0x56a8b6(0x1f4)])==null||_0xe2ea65[_0x56a8b6(0x20e)](),this[_0x56a8b6(0x1ef)][_0x56a8b6(0x274)]('following');}[_0x5d9347(0x220)](){var _0x12e18a=_0x5d9347,_0x2b9724;this[_0x12e18a(0x1ef)][_0x12e18a(0x274)](_0x12e18a(0x25f)),(_0x2b9724=this[_0x12e18a(0x1f4)])==null||_0x2b9724[_0x12e18a(0x20e)](),this['_commandDisposable']=null;}[_0x5d9347(0x210)](){var _0x428673=_0x5d9347,_0x41b22c;this['_status$'][_0x428673(0x274)](_0x428673(0x227)),(_0x41b22c=this['_commandDisposable'])==null||_0x41b22c[_0x428673(0x20e)]();}[_0x5d9347(0x251)](_0x59b86d){var _0x48fa47=_0x5d9347;if(['presenting','not-following',_0x48fa47(0x231)][_0x48fa47(0x238)](this[_0x48fa47(0x281)])||!_0x59b86d['data'][_0x48fa47(0x258)]||_0x59b86d['data'][_0x48fa47(0x258)]===this['_collabSession'][_0x48fa47(0x27b)]())return;this[_0x48fa47(0x281)]===_0x48fa47(0x25f)&&this[_0x48fa47(0x1ff)]();const _0x12294c=_0x59b86d['data'][_0x48fa47(0x235)];Object['values'](_0x12294c)[_0x48fa47(0x1fa)](_0x26cfb9=>{var _0x392449=_0x48fa47;this[_0x392449(0x25c)][_0x392449(0x26e)](_0x26cfb9['id'],_0x26cfb9['params']?JSON[_0x392449(0x21f)](_0x26cfb9[_0x392449(0x292)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x4badc1=_0x5d9347,_0x440718;this[_0x4badc1(0x1ef)][_0x4badc1(0x274)]('offline'),(_0x440718=this[_0x4badc1(0x1f4)])==null||_0x440718[_0x4badc1(0x20e)]();}['_handleOnline'](){var _0x577c76=_0x5d9347;this[_0x577c76(0x1ef)][_0x577c76(0x274)]('idle'),this['_fetchOperations']();}};w=Z([f(0x2,_0x15f64d),f(0x3,_0xf4c6bc(L)),f(0x4,_0x111072)],w);function Te(){var _0x2756e6=_0x5d9347;const _0x3c85c=_0x3d7b2a(I),_0x4c7674=_0x3d7b2a(_0x28a93b),_0x4031ae=_0x226374(()=>_0x4c7674[_0x2756e6(0x28b)](_0x1b1d71[_0x2756e6(0x23a)]),void 0x0,!0x1,[]),[_0x1ba8de,_0x179381]=_0x423282(null),[_0x49ff49,_0xef14c0]=_0x423282(h[_0x2756e6(0x1f1)]),_0x21f100=_0x15b2bf(null);return _0x232a4c(()=>(_0x4031ae&&_0x3c85c['getLiveShareCoordinator'](_0x4031ae[_0x2756e6(0x21a)]())[_0x2756e6(0x283)](_0x32429a=>{var _0x29fe30=_0x2756e6;_0x179381(_0x32429a),_0x21f100['current']=_0x32429a[_0x29fe30(0x23e)][_0x29fe30(0x27f)](_0x38216e=>{_0xef14c0(_0x38216e);});}),()=>{var _0x343072=_0x2756e6,_0x59b667;(_0x59b667=_0x21f100[_0x343072(0x28e)])==null||_0x59b667[_0x343072(0x233)](),_0x21f100[_0x343072(0x28e)]=null;}),[_0x4031ae,_0x3c85c]),_0x1ba8de?_0x14e593(_0x466fb1,{'align':_0x2756e6(0x250),'disabled':_0x49ff49===h['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','overlay':_0x14e593($e,{'status':_0x49ff49,'coordinator':_0x1ba8de}),'children':_0x14e593(_0x2756e6(0x1f7),{'className':_0x5ad817(_0x2756e6(0x234),{'univer-cursor-not-allowed':_0x49ff49===h[_0x2756e6(0x21e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x49ff49!==h['OFFLINE']}),'type':'button','children':_0x14e593(B,{'className':'univer-size-4'})})}):null;}function $e(_0x5f198f){var _0x1a1667=_0x5d9347;const {status:_0x25d4c3,coordinator:_0x4748cb}=_0x5f198f;switch(_0x25d4c3){case h['IDLE']:return _0x14e593(Fe,{'coordinator':_0x4748cb});case h[_0x1a1667(0x242)]:return _0x14e593(He,{'coordinator':_0x4748cb});case h[_0x1a1667(0x271)]:return _0x14e593(je,{'coordinator':_0x4748cb});case h[_0x1a1667(0x21e)]:return _0x14e593(Ve,{});case h[_0x1a1667(0x201)]:return _0x14e593(Ue,{'coordinator':_0x4748cb});default:return null;}}function Fe(_0x6a7302){var _0xf6885d=_0x5d9347;const {coordinator:_0x4c3fc1}=_0x6a7302;return _0x458d04(_0x4df0c0,{'children':[_0x14e593(_0xf6885d(0x241),{'className':_0xf6885d(0x1f8),'children':_0xf6885d(0x276)}),_0x14e593(_0x30e4ae,{'onClick':()=>_0x4c3fc1['tryStartPresenting'](),'children':_0xf6885d(0x278)})]});}function He(_0x2a6e56){var _0x1c4083=_0x5d9347;const {coordinator:_0x1dfb2b}=_0x2a6e56;return _0x458d04(_0x4df0c0,{'children':[_0x14e593(_0x1c4083(0x241),{'className':_0x1c4083(0x1f8),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x14e593(_0x30e4ae,{'onClick':()=>_0x1dfb2b[_0x1c4083(0x1f9)](),'children':_0x1c4083(0x23f)})]});}function je(_0x408c74){var _0x43ebec=_0x5d9347;const {coordinator:_0x4f845e}=_0x408c74;return _0x458d04(_0x4df0c0,{'children':[_0x14e593(_0x43ebec(0x241),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x14e593(_0x30e4ae,{'variant':_0x43ebec(0x252),'onClick':()=>_0x4f845e[_0x43ebec(0x209)](),'children':_0x43ebec(0x296)})]});}function Ue(_0x324e35){var _0x410ec7=_0x5d9347;const {coordinator:_0x1a0c1b}=_0x324e35;return _0x458d04(_0x4df0c0,{'children':[_0x14e593('div',{'className':_0x410ec7(0x1f8),'children':_0x410ec7(0x289)}),_0x14e593(_0x30e4ae,{'variant':_0x410ec7(0x28d),'onClick':()=>_0x1a0c1b['stopPresenting'](),'children':_0x410ec7(0x21c)})]});}function Ve(){return _0x14e593(_0x4df0c0,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x5d9347(0x27d)],ke=(_0xe1dbd,_0xce76a9,_0x4b59c1,_0x21c23c)=>{var _0x1be1bb=_0x5d9347;for(var _0x2a20aa=_0x21c23c>0x1?void 0x0:_0x21c23c?Me(_0xce76a9,_0x4b59c1):_0xce76a9,_0x52ed60=_0xe1dbd[_0x1be1bb(0x213)]-0x1,_0x59453d;_0x52ed60>=0x0;_0x52ed60--)(_0x59453d=_0xe1dbd[_0x52ed60])&&(_0x2a20aa=_0x59453d(_0x2a20aa)||_0x2a20aa);return _0x2a20aa;},$=(_0x365632,_0x204c30)=>(_0xfccb89,_0x19b05b)=>_0x204c30(_0xfccb89,_0x19b05b,_0x365632);let b=class extends _0x1b499d{constructor(_0x4ed213,_0x4902c9){var _0x22b375=_0x5d9347;super(),this[_0x22b375(0x269)]=_0x4ed213,this[_0x22b375(0x272)]=_0x4902c9,this[_0x22b375(0x204)]();}[_0x5d9347(0x204)](){var _0x21f98a=_0x5d9347;this['disposeWithMe'](this[_0x21f98a(0x272)][_0x21f98a(0x280)](_0x2015b7[_0x21f98a(0x260)],()=>_0xec9de6(Te,this[_0x21f98a(0x269)])));}};b=ke([$(0x0,_0xf4c6bc(_0x58103d)),$(0x1,_0x22c001)],b);var Ge=Object[_0x5d9347(0x279)],We=Object[_0x5d9347(0x27d)],Ye=(_0x3ed4de,_0x137401,_0x4b6138)=>_0x137401 in _0x3ed4de?Ge(_0x3ed4de,_0x137401,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b6138}):_0x3ed4de[_0x137401]=_0x4b6138,Be=(_0xa5c85,_0x14de2f,_0x3f85d8,_0x268db9)=>{var _0x35c3a3=_0x5d9347;for(var _0x1d37da=_0x268db9>0x1?void 0x0:_0x268db9?We(_0x14de2f,_0x3f85d8):_0x14de2f,_0x316d21=_0xa5c85[_0x35c3a3(0x213)]-0x1,_0x5f0d43;_0x316d21>=0x0;_0x316d21--)(_0x5f0d43=_0xa5c85[_0x316d21])&&(_0x1d37da=_0x5f0d43(_0x1d37da)||_0x1d37da);return _0x1d37da;},F=(_0x3faacb,_0xc01c94)=>(_0xccaf24,_0x2a6b83)=>_0xc01c94(_0xccaf24,_0x2a6b83,_0x3faacb),J=(_0x43ff03,_0xf3ce53,_0x183ac1)=>Ye(_0x43ff03,typeof _0xf3ce53!=_0x5d9347(0x299)?_0xf3ce53+'':_0xf3ce53,_0x183ac1);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x42940a{constructor(_0x2a6059=T,_0x56f3be,_0x2328b2){var _0x35ba05=_0x5d9347;super(),this[_0x35ba05(0x27e)]=_0x2a6059,this[_0x35ba05(0x269)]=_0x56f3be,this[_0x35ba05(0x22a)]=_0x2328b2;const {..._0x5d29a2}=_0x3945fc({},T,this[_0x35ba05(0x27e)]);this[_0x35ba05(0x22a)]['setConfig'](Oe,_0x5d29a2);}['onStarting'](){var _0x2c8dd7=_0x5d9347;_0x2bca35(this['_injector'],_0x54dac0([[L],[I],[m],[b]],this[_0x2c8dd7(0x27e)][_0x2c8dd7(0x208)])),_0x3e0e7b(this[_0x2c8dd7(0x269)],[[m]]);}[_0x5d9347(0x27a)](){_0x3e0e7b(this['_injector'],[[b]]);}};J(O,'type',_0x1b1d71['UNIVER_UNKNOWN']),J(O,_0x5d9347(0x232),Ze),O=Be([_0x1f205f(_0x1442f5),F(0x1,_0xf4c6bc(_0x58103d)),F(0x2,_0x15f64d)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x1ff1a2=_0x22c1;(function(_0x35f696,_0x45e9e9){var _0x3923c9=_0x22c1,_0x1011bf=_0x35f696();while(!![]){try{var _0x5c7446=-parseInt(_0x3923c9(0x151))/0x1*(parseInt(_0x3923c9(0x15d))/0x2)+-parseInt(_0x3923c9(0x15e))/0x3+-parseInt(_0x3923c9(0x10b))/0x4+parseInt(_0x3923c9(0x140))/0x5*(-parseInt(_0x3923c9(0x109))/0x6)+parseInt(_0x3923c9(0x127))/0x7+-parseInt(_0x3923c9(0x13b))/0x8*(parseInt(_0x3923c9(0x194))/0x9)+-parseInt(_0x3923c9(0x196))/0xa*(-parseInt(_0x3923c9(0x14b))/0xb);if(_0x5c7446===_0x45e9e9)break;else _0x1011bf['push'](_0x1011bf['shift']());}catch(_0x65dcef){_0x1011bf['push'](_0x1011bf['shift']());}}}(_0x27ca,0xa1587));var q=Object[_0x1ff1a2(0x188)],z=(_0x4d4780,_0x285e8b,_0x31623d)=>_0x285e8b in _0x4d4780?q(_0x4d4780,_0x285e8b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x31623d}):_0x4d4780[_0x285e8b]=_0x31623d,d=(_0x130ecc,_0x44500d,_0x3dbd18)=>z(_0x130ecc,typeof _0x44500d!=_0x1ff1a2(0x12d)?_0x44500d+'':_0x44500d,_0x3dbd18);import{CollaborationSessionService as _0x1127a7,SessionStatus as _0x5290d1,UniverCollaborationClientPlugin as _0x2c6185}from'@univerjs-pro/collaboration-client';import{Disposable as _0x29220f,toDisposable as _0x1d67cf,Inject as _0x483899,IUniverInstanceService as _0x48e571,Injector as _0x334295,IConfigService as _0x229618,ICommandService as _0x59ff0d,RxDisposable as _0x3b5bde,UniverInstanceType as _0x364c1d,DisposableCollection as _0x4c4fe1,CommandType as _0x1641f1,DependentOn as _0x8e9b8a,Plugin as _0x1993ba,merge as _0x4c21bc,registerDependencies as _0x5e3490,mergeOverrideWithDependencies as _0x27c800,touchDependencies as _0x3a2ff7}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x46d4ed,InsertSheetMutation as _0x10b772}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x134894,SetScrollOperation as _0x555f63}from'@univerjs/sheets-ui';import{useDependency as _0x38b656,useObservable as _0x48282a,IUIPartsService as _0x281f7f,BuiltInUIPart as _0x1bbf6a,connectInjector as _0x24e830}from'@univerjs/ui';import{jsx as _0x174d70,jsxs as _0x5048be,Fragment as _0x67d0fb}from'react/jsx-runtime';import{Dropdown as _0x2b2b6c,clsx as _0x22711e,Button as _0x38bd9d}from'@univerjs/design';import{forwardRef as _0x1bddfa,useRef as _0x30f6b4,createElement as _0x418354,useState as _0x347517,useEffect as _0x268f44}from'react';import{CollaborationEvent as _0x4b85f5,parseProtocolChangeset as _0x38523f}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x5022f2,Subject as _0x393ea6}from'rxjs';import{takeUntil as _0x1a1ba3,throttleTime as _0x1ddfb5}from'rxjs/operators';const Oe=_0x1ff1a2(0x11f),T={};class L extends _0x29220f{constructor(){var _0x4150c5=_0x1ff1a2;super(...arguments),d(this,_0x4150c5(0x15f),new Set()),d(this,'_reporters',new Set());}[_0x1ff1a2(0x103)](_0x196bad){var _0x801d9a=_0x1ff1a2;return this[_0x801d9a(0x15f)][_0x801d9a(0x108)](_0x196bad),_0x1d67cf(()=>this[_0x801d9a(0x15f)][_0x801d9a(0x159)](_0x196bad));}['registerInitialStateReporter'](_0x5a69a3){var _0x3d1b7d=_0x1ff1a2;return this[_0x3d1b7d(0x113)][_0x3d1b7d(0x108)](_0x5a69a3),_0x1d67cf(()=>this['_reporters'][_0x3d1b7d(0x159)](_0x5a69a3));}[_0x1ff1a2(0x187)](_0x101688){var _0x3ae542=_0x1ff1a2;return this[_0x3ae542(0x15f)]['has'](_0x101688);}['getInitialStates'](_0x98efbd){var _0x5de05b=_0x1ff1a2;return Array[_0x5de05b(0x169)](this[_0x5de05b(0x113)])[_0x5de05b(0x12b)](_0x1a8241=>_0x1a8241(_0x98efbd));}}var Ee=Object[_0x1ff1a2(0x11b)],Ce=(_0x3e1f6e,_0x7a63ea,_0x512b22,_0x124a75)=>{for(var _0x36301b=_0x124a75>0x1?void 0x0:_0x124a75?Ee(_0x7a63ea,_0x512b22):_0x7a63ea,_0x30fcde=_0x3e1f6e['length']-0x1,_0x1d0ebb;_0x30fcde>=0x0;_0x30fcde--)(_0x1d0ebb=_0x3e1f6e[_0x30fcde])&&(_0x36301b=_0x1d0ebb(_0x36301b)||_0x36301b);return _0x36301b;},Ne=(_0x130c0f,_0x44bfe5)=>(_0x23ada6,_0x24a3c5)=>_0x44bfe5(_0x23ada6,_0x24a3c5,_0x130c0f);let m=class extends _0x29220f{constructor(_0x22ea3c){var _0xd1507=_0x1ff1a2;super(),this[_0xd1507(0x176)]=_0x22ea3c,this[_0xd1507(0x19f)]();}[_0x1ff1a2(0x19f)](){var _0x2b6a3a=_0x1ff1a2;[_0x134894['id'],_0x555f63['id'],_0x46d4ed['id']][_0x2b6a3a(0x148)](_0x330184=>{var _0x46d262=_0x2b6a3a;this[_0x46d262(0x16d)](this[_0x46d262(0x176)][_0x46d262(0x103)](_0x330184));});}};m=Ce([Ne(0x0,_0x483899(L))],m);var c=function(){var _0x712e50=_0x1ff1a2;return c=Object[_0x712e50(0x135)]||function(_0x2fc7e4){var _0x39bc21=_0x712e50;for(var _0x364040,_0xa2bdea=0x1,_0x4644e6=arguments[_0x39bc21(0x19b)];_0xa2bdea<_0x4644e6;_0xa2bdea++){_0x364040=arguments[_0xa2bdea];for(var _0x154ba6 in _0x364040)Object[_0x39bc21(0x11a)][_0x39bc21(0x13c)][_0x39bc21(0x174)](_0x364040,_0x154ba6)&&(_0x2fc7e4[_0x154ba6]=_0x364040[_0x154ba6]);}return _0x2fc7e4;},c[_0x712e50(0x12a)](this,arguments);},we=function(_0x50d818,_0x2df38d){var _0x5f53e6=_0x1ff1a2,_0x44bcc4={};for(var _0x4344a2 in _0x50d818)Object[_0x5f53e6(0x11a)][_0x5f53e6(0x13c)][_0x5f53e6(0x174)](_0x50d818,_0x4344a2)&&_0x2df38d[_0x5f53e6(0x120)](_0x4344a2)<0x0&&(_0x44bcc4[_0x4344a2]=_0x50d818[_0x4344a2]);if(_0x50d818!=null&&typeof Object['getOwnPropertySymbols']==_0x5f53e6(0x105)){for(var _0x1460b5=0x0,_0x4344a2=Object['getOwnPropertySymbols'](_0x50d818);_0x1460b5<_0x4344a2[_0x5f53e6(0x19b)];_0x1460b5++)_0x2df38d[_0x5f53e6(0x120)](_0x4344a2[_0x1460b5])<0x0&&Object[_0x5f53e6(0x11a)][_0x5f53e6(0x1ad)][_0x5f53e6(0x174)](_0x50d818,_0x4344a2[_0x1460b5])&&(_0x44bcc4[_0x4344a2[_0x1460b5]]=_0x50d818[_0x4344a2[_0x1460b5]]);}return _0x44bcc4;},W=_0x1bddfa(function(_0x471888,_0x43c419){var _0x4b2d6d=_0x1ff1a2,_0x30307e=_0x471888[_0x4b2d6d(0x1a7)],_0x4d2197=_0x471888['id'],_0x492c3c=_0x471888[_0x4b2d6d(0x134)],_0x5cd1d9=_0x471888[_0x4b2d6d(0x1a9)],_0x30bb3d=we(_0x471888,[_0x4b2d6d(0x1a7),'id','className',_0x4b2d6d(0x1a9)]),_0x361872='univerjs-icon\x20univerjs-icon-'[_0x4b2d6d(0x16c)](_0x4d2197,'\x20')[_0x4b2d6d(0x16c)](_0x492c3c||'')[_0x4b2d6d(0x156)](),_0x50dfe7=_0x30f6b4('_'[_0x4b2d6d(0x16c)](Le()));return Y(_0x30307e,''['concat'](_0x4d2197),{'defIds':_0x30307e[_0x4b2d6d(0x130)],'idSuffix':_0x50dfe7[_0x4b2d6d(0x136)]},c({'ref':_0x43c419,'className':_0x361872},_0x30bb3d),_0x5cd1d9);});function Y(_0x4a1cf6,_0x4e309d,_0x1a120f,_0x3ac307,_0xb5004e){var _0x10ec22=_0x1ff1a2;return _0x418354(_0x4a1cf6[_0x10ec22(0x17d)],c(c({'key':_0x4e309d},De(_0x4a1cf6,_0x1a120f,_0xb5004e)),_0x3ac307),(xe(_0x4a1cf6,_0x1a120f)[_0x10ec22(0x1a0)]||[])[_0x10ec22(0x12b)](function(_0x222789,_0x95746){var _0x5ee542=_0x10ec22;return Y(_0x222789,''[_0x5ee542(0x16c)](_0x4e309d,'-')[_0x5ee542(0x16c)](_0x4a1cf6['tag'],'-')['concat'](_0x95746),_0x1a120f,void 0x0,_0xb5004e);}));}function De(_0x55e87a,_0x5b314e,_0x562cc8){var _0x97fb8b=_0x1ff1a2,_0x340d4f=c({},_0x55e87a['attrs']);_0x562cc8!=null&&_0x562cc8[_0x97fb8b(0x185)]&&_0x340d4f[_0x97fb8b(0x162)]===_0x97fb8b(0x185)&&(_0x340d4f[_0x97fb8b(0x162)]=_0x562cc8[_0x97fb8b(0x185)]),_0x55e87a[_0x97fb8b(0x17d)]===_0x97fb8b(0x181)&&_0x340d4f['id']&&(_0x340d4f['id']=_0x340d4f['id']+_0x5b314e[_0x97fb8b(0x1aa)]),Object[_0x97fb8b(0x175)](_0x340d4f)[_0x97fb8b(0x148)](function(_0x22c399){var _0x4b462f=_0x97fb8b,_0x5f231d=_0x22c399[0x0],_0x26c733=_0x22c399[0x1];_0x5f231d===_0x4b462f(0x181)&&typeof _0x26c733==_0x4b462f(0x139)&&(_0x340d4f[_0x5f231d]=_0x26c733[_0x4b462f(0x172)](/url\(#(.*)\)/,_0x4b462f(0x1ac)['concat'](_0x5b314e[_0x4b462f(0x1aa)],')')));});var _0x59bbab=_0x5b314e['defIds'];return!_0x59bbab||_0x59bbab['length']===0x0||(_0x55e87a[_0x97fb8b(0x17d)]===_0x97fb8b(0x12c)&&_0x340d4f[_0x97fb8b(0x168)]&&(_0x340d4f[_0x97fb8b(0x168)]=_0x340d4f[_0x97fb8b(0x168)]+_0x5b314e[_0x97fb8b(0x1aa)]),Object['entries'](_0x340d4f)['forEach'](function(_0x573784){var _0x235a83=_0x97fb8b,_0x84902a=_0x573784[0x0],_0x37a34b=_0x573784[0x1];typeof _0x37a34b==_0x235a83(0x139)&&(_0x340d4f[_0x84902a]=_0x37a34b[_0x235a83(0x172)](/url\(#(.*)\)/,_0x235a83(0x1ac)[_0x235a83(0x16c)](_0x5b314e[_0x235a83(0x1aa)],')')));})),_0x340d4f;}function xe(_0x44ea0f,_0x5713d4){var _0x38eb5d=_0x1ff1a2,_0x1a412a,_0x215993=_0x5713d4[_0x38eb5d(0x130)];return!_0x215993||_0x215993[_0x38eb5d(0x19b)]===0x0?_0x44ea0f:_0x44ea0f[_0x38eb5d(0x17d)]==='defs'&&(!((_0x1a412a=_0x44ea0f[_0x38eb5d(0x1a0)])===null||_0x1a412a===void 0x0)&&_0x1a412a[_0x38eb5d(0x19b)])?c(c({},_0x44ea0f),{'children':_0x44ea0f['children']['map'](function(_0x41ad08){var _0x1250ec=_0x38eb5d;return typeof _0x41ad08[_0x1250ec(0x199)]['id']=='string'&&_0x215993&&_0x215993[_0x1250ec(0x120)](_0x41ad08[_0x1250ec(0x199)]['id'])>-0x1?c(c({},_0x41ad08),{'attrs':c(c({},_0x41ad08['attrs']),{'id':_0x41ad08['attrs']['id']+_0x5713d4[_0x1250ec(0x1aa)]})}):_0x41ad08;})}):_0x44ea0f;}function Le(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}W[_0x1ff1a2(0x124)]='UniverIcon';var ye={'tag':'svg','attrs':{'fill':_0x1ff1a2(0x102),'viewBox':_0x1ff1a2(0x1a2),'width':_0x1ff1a2(0x198),'height':_0x1ff1a2(0x198)},'children':[{'tag':'path','attrs':{'fill':_0x1ff1a2(0x184),'d':_0x1ff1a2(0x160)}},{'tag':_0x1ff1a2(0x149),'attrs':{'fill':_0x1ff1a2(0x184),'d':_0x1ff1a2(0x146),'fillRule':'evenodd','clipRule':_0x1ff1a2(0x106)}}]},B=_0x1bddfa(function(_0x5d1c5a,_0x5871ba){var _0x25de7c=_0x1ff1a2;return _0x418354(W,Object[_0x25de7c(0x135)]({},_0x5d1c5a,{'id':_0x25de7c(0x15a),'ref':_0x5871ba,'icon':ye}));});B[_0x1ff1a2(0x124)]=_0x1ff1a2(0x143);var Re=Object[_0x1ff1a2(0x11b)],Z=(_0x3ddef3,_0x4956ea,_0x354677,_0x593d59)=>{var _0x29ea4d=_0x1ff1a2;for(var _0x12e556=_0x593d59>0x1?void 0x0:_0x593d59?Re(_0x4956ea,_0x354677):_0x4956ea,_0x2f852a=_0x3ddef3[_0x29ea4d(0x19b)]-0x1,_0x53d2ef;_0x2f852a>=0x0;_0x2f852a--)(_0x53d2ef=_0x3ddef3[_0x2f852a])&&(_0x12e556=_0x53d2ef(_0x12e556)||_0x12e556);return _0x12e556;},f=(_0x389c35,_0x1464c1)=>(_0x1f9422,_0xcd6ab3)=>_0x1464c1(_0x1f9422,_0xcd6ab3,_0x389c35);let I=class extends _0x3b5bde{constructor(_0x52c53e,_0x3600c1,_0x15a3e2){var _0x5a331e=_0x1ff1a2;super(),d(this,_0x5a331e(0x18e),new Map()),(this[_0x5a331e(0x157)]=_0x52c53e,this[_0x5a331e(0x111)]=_0x3600c1,this[_0x5a331e(0x1a6)]=_0x15a3e2,this['_init']());}async[_0x1ff1a2(0x14e)](_0x400dc5){var _0x194710=_0x1ff1a2;return this[_0x194710(0x18e)]['has'](_0x400dc5)||await this['_startLiveShareCoordinator'](_0x400dc5),this[_0x194710(0x18e)][_0x194710(0x165)](_0x400dc5);}['_init'](){var _0x5f0672=_0x1ff1a2;this[_0x5f0672(0x157)][_0x5f0672(0x17a)](_0x364c1d[_0x5f0672(0x153)])['pipe'](_0x1a1ba3(this[_0x5f0672(0x121)]))['subscribe'](async _0x5cf770=>{var _0x532c4c=_0x5f0672;const _0x4cc99c=_0x5cf770[_0x532c4c(0x183)]();this[_0x532c4c(0x18e)][_0x532c4c(0x17e)](_0x4cc99c)||this[_0x532c4c(0x101)](_0x4cc99c);}),this[_0x5f0672(0x157)][_0x5f0672(0x126)](_0x364c1d[_0x5f0672(0x153)])[_0x5f0672(0x132)](_0x1a1ba3(this[_0x5f0672(0x121)]))[_0x5f0672(0x138)](_0x5984c9=>{var _0x11e4d7=_0x5f0672;const _0x674b40=_0x5984c9['getUnitId'](),_0x34acd3=this[_0x11e4d7(0x18e)][_0x11e4d7(0x165)](_0x674b40);_0x34acd3==null||_0x34acd3['dispose']();});}async[_0x1ff1a2(0x101)](_0x57fec4){var _0x1ea5b1=_0x1ff1a2;const _0x1a56f1=await this[_0x1ea5b1(0x1a6)]['requireSession'](_0x57fec4),_0x45fcac=this[_0x1ea5b1(0x111)][_0x1ea5b1(0x11e)](w,_0x57fec4,_0x1a56f1);return _0x45fcac[_0x1ea5b1(0x1a4)](),this[_0x1ea5b1(0x18e)][_0x1ea5b1(0x191)](_0x57fec4,_0x45fcac),_0x45fcac;}};I=Z([f(0x0,_0x48e571),f(0x1,_0x483899(_0x334295)),f(0x2,_0x483899(_0x1127a7))],I);var h=(_0x6d3d7=>(_0x6d3d7[_0x1ff1a2(0x179)]='offline',_0x6d3d7['IDLE']='idle',_0x6d3d7[_0x1ff1a2(0x119)]=_0x1ff1a2(0x10c),_0x6d3d7['NOT_FOLLOWING']=_0x1ff1a2(0x118),_0x6d3d7[_0x1ff1a2(0x12f)]='presenting',_0x6d3d7))(h||{});const Pe=_0x1ff1a2(0x186),Ae=0xc8;let w=class extends _0x3b5bde{constructor(_0x316ffb,_0x1d0e05,_0x7b3d8d,_0x482088,_0x5c7de7){var _0x2a55a2=_0x1ff1a2;super(),d(this,_0x2a55a2(0x16f),new _0x5022f2(_0x2a55a2(0x107))),d(this,_0x2a55a2(0x15c),this[_0x2a55a2(0x16f)][_0x2a55a2(0x142)]()),d(this,_0x2a55a2(0x19f),!0x1),d(this,_0x2a55a2(0x170),null),d(this,_0x2a55a2(0x100),null),(this[_0x2a55a2(0x152)]=_0x316ffb,this[_0x2a55a2(0x16a)]=_0x1d0e05,this[_0x2a55a2(0x14a)]=_0x7b3d8d,this['_liveShareService']=_0x482088,this[_0x2a55a2(0x17c)]=_0x5c7de7);}get['_status'](){var _0x93a2f8=_0x1ff1a2;return this[_0x93a2f8(0x16f)][_0x93a2f8(0x18a)]();}[_0x1ff1a2(0x1ab)](){var _0x41a952=_0x1ff1a2,_0x11a07d;(_0x11a07d=this[_0x41a952(0x170)])==null||_0x11a07d[_0x41a952(0x1ab)](),this[_0x41a952(0x16f)][_0x41a952(0x177)](_0x41a952(0x107)),this[_0x41a952(0x16f)][_0x41a952(0x15b)]();}[_0x1ff1a2(0x1a4)](){var _0x53480d=_0x1ff1a2;this[_0x53480d(0x19f)]||(this[_0x53480d(0x19f)]=!0x0,this[_0x53480d(0x16a)][_0x53480d(0x164)]['pipe'](_0x1a1ba3(this[_0x53480d(0x121)]))[_0x53480d(0x138)](_0xf09693=>{var _0x1e708f=_0x53480d;switch(_0xf09693){case _0x5290d1[_0x1e708f(0x179)]:this[_0x1e708f(0x112)]();break;case _0x5290d1['ONLINE']:this[_0x1e708f(0x147)]();break;}}),this[_0x53480d(0x16a)][_0x53480d(0x125)][_0x53480d(0x132)](_0x1a1ba3(this[_0x53480d(0x121)]))[_0x53480d(0x138)](_0x11c0dc=>{var _0x28550d=_0x53480d;const {eventID:_0x29209d}=_0x11c0dc;switch(_0x29209d){case _0x4b85f5['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x11c0dc);break;case _0x4b85f5[_0x28550d(0x1ae)]:this[_0x28550d(0x16b)](_0x11c0dc);break;case _0x4b85f5['LIVESHARE_TERMINATE']:this[_0x28550d(0x13a)]();break;case _0x4b85f5[_0x28550d(0x189)]:this[_0x28550d(0x167)](_0x11c0dc);break;}}));}[_0x1ff1a2(0x154)](){var _0x15def0=_0x1ff1a2;this[_0x15def0(0x16a)][_0x15def0(0x18b)]({'eventID':_0x4b85f5[_0x15def0(0x19c)],'data':{'unitID':this[_0x15def0(0x152)],'userID':this['_collabSession'][_0x15def0(0x10e)]()}},this[_0x15def0(0x152)]);}['stopPresenting'](){var _0x3b962b=_0x1ff1a2;this[_0x3b962b(0x14f)]===_0x3b962b(0x10f)&&(this[_0x3b962b(0x16f)][_0x3b962b(0x177)](_0x3b962b(0x107)),this[_0x3b962b(0x16a)][_0x3b962b(0x18b)]({'eventID':_0x4b85f5['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x3b962b(0x152)]}},this['_unitID']));}[_0x1ff1a2(0x195)](){var _0x5bf0ce=_0x1ff1a2;this[_0x5bf0ce(0x14f)]===_0x5bf0ce(0x118)&&(this[_0x5bf0ce(0x16f)][_0x5bf0ce(0x177)](_0x5bf0ce(0x10c)),this[_0x5bf0ce(0x141)]());}[_0x1ff1a2(0x173)](){var _0x249cb3=_0x1ff1a2;this[_0x249cb3(0x14f)]==='following'&&this[_0x249cb3(0x117)]();}[_0x1ff1a2(0x131)](_0x5b5f29){var _0x7ee604=_0x1ff1a2;const {presenter:_0x184988}=_0x5b5f29[_0x7ee604(0x13f)],_0x330131=this[_0x7ee604(0x16a)]['getMemberID']();this['_presenter']=_0x184988,_0x184988===_0x330131?(this[_0x7ee604(0x117)](),this['_startPresenting']()):this[_0x7ee604(0x14f)]!==_0x7ee604(0x118)&&(this[_0x7ee604(0x158)](),this[_0x7ee604(0x141)]());}['_fetchOperations'](){var _0x57aa07=_0x1ff1a2;const _0x59e015={'eventID':_0x4b85f5[_0x57aa07(0x19e)]};this[_0x57aa07(0x16a)][_0x57aa07(0x18b)](_0x59e015,this[_0x57aa07(0x152)]);}[_0x1ff1a2(0x13a)](){var _0x5e195d=_0x1ff1a2;this['_presenter']=null,this[_0x5e195d(0x14f)]!==_0x5e195d(0x10f)&&this['_beIdle']();}['_handleNewChangeSets'](_0x283278){var _0x5253b7=_0x1ff1a2;if(this[_0x5253b7(0x14f)]===_0x5253b7(0x10c)&&this[_0x5253b7(0x100)]===_0x283278[_0x5253b7(0x13f)][_0x5253b7(0x11d)]){const _0x5d7e78=_0x38523f(_0x283278[_0x5253b7(0x13f)])[_0x5253b7(0x133)][_0x5253b7(0x190)]()[_0x5253b7(0x145)](_0x4a55e4=>_0x4a55e4['id']===_0x10b772['id']);if(_0x5d7e78){const _0xddd9cb=_0x5d7e78[_0x5253b7(0x163)]['unitId'],_0x1195e1=_0x5d7e78[_0x5253b7(0x163)][_0x5253b7(0x19a)]['id'];setTimeout(()=>{var _0x3d6950=_0x5253b7;this['_commandService'][_0x3d6950(0x1a3)](_0x46d4ed['id'],{'unitId':_0xddd9cb,'subUnitId':_0x1195e1},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x833fe1=_0x1ff1a2;this[_0x833fe1(0x16f)][_0x833fe1(0x177)]('presenting');const _0xfdf0b8=new Map(),_0xdd3d59=this[_0x833fe1(0x170)]=new _0x4c4fe1();_0xdd3d59[_0x833fe1(0x108)](_0x1d67cf(()=>{var _0x18dfec=_0x833fe1;_0xfdf0b8[_0x18dfec(0x148)](_0x1bf3e3=>_0x1bf3e3[_0x18dfec(0x15b)]()),_0xfdf0b8['clear']();})),_0xdd3d59['add'](this[_0x833fe1(0x17c)][_0x833fe1(0x137)](_0x25297a=>{var _0x2f9483=_0x833fe1,_0x4a4a3;if(_0x25297a[_0x2f9483(0x11c)]!==_0x1641f1[_0x2f9483(0x129)]||!this[_0x2f9483(0x176)][_0x2f9483(0x187)](_0x25297a['id']))return;const {id:_0x44a4cb}=_0x25297a;let _0x4cdac1;_0xfdf0b8[_0x2f9483(0x17e)](_0x44a4cb)?_0x4cdac1=_0xfdf0b8['get'](_0x44a4cb):(_0x4cdac1=new _0x393ea6(),_0xfdf0b8[_0x2f9483(0x191)](_0x44a4cb,_0x4cdac1),_0x4cdac1[_0x2f9483(0x132)](_0x1ddfb5((_0x4a4a3=this[_0x2f9483(0x14a)][_0x2f9483(0x114)](Pe))!=null?_0x4a4a3:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2f9483(0x138)](_0x48bac9=>{var _0x345bae=_0x2f9483;this[_0x345bae(0x16a)]['send']({'eventID':_0x4b85f5[_0x345bae(0x1ae)],'data':{'unitID':this['_unitID'],'operations':{[_0x48bac9['id']]:{'id':_0x48bac9['id'],'params':JSON[_0x345bae(0x116)](_0x48bac9[_0x345bae(0x163)])}}}},this[_0x345bae(0x152)]);})),_0x4cdac1[_0x2f9483(0x177)](_0x25297a);})),this[_0x833fe1(0x176)][_0x833fe1(0x18d)](this[_0x833fe1(0x152)])[_0x833fe1(0x148)](_0x5dc423=>this[_0x833fe1(0x16a)]['send']({'eventID':_0x4b85f5[_0x833fe1(0x1ae)],'data':{'unitID':this[_0x833fe1(0x152)],'operations':{[_0x5dc423['id']]:{'id':_0x5dc423['id'],'params':JSON[_0x833fe1(0x116)](_0x5dc423[_0x833fe1(0x163)])}}}},this['_unitID']));}[_0x1ff1a2(0x158)](){var _0x40717e=_0x1ff1a2,_0x376e61;this['_status$'][_0x40717e(0x177)](_0x40717e(0x107)),(_0x376e61=this['_commandDisposable'])==null||_0x376e61[_0x40717e(0x1ab)](),this[_0x40717e(0x170)]=null;}['_startFollowing'](){var _0x572c45=_0x1ff1a2,_0x2e8828;(_0x2e8828=this[_0x572c45(0x170)])==null||_0x2e8828['dispose'](),this[_0x572c45(0x16f)][_0x572c45(0x177)](_0x572c45(0x10c));}[_0x1ff1a2(0x10a)](){var _0xe7dd34=_0x1ff1a2,_0x36f564;this[_0xe7dd34(0x16f)][_0xe7dd34(0x177)]('idle'),(_0x36f564=this[_0xe7dd34(0x170)])==null||_0x36f564[_0xe7dd34(0x1ab)](),this[_0xe7dd34(0x170)]=null;}['_stopFollowing'](){var _0x39a0b7=_0x1ff1a2,_0x1f4d04;this[_0x39a0b7(0x16f)][_0x39a0b7(0x177)]('not-following'),(_0x1f4d04=this[_0x39a0b7(0x170)])==null||_0x1f4d04[_0x39a0b7(0x1ab)]();}[_0x1ff1a2(0x16b)](_0x2a2192){var _0x24d551=_0x1ff1a2;if([_0x24d551(0x10f),_0x24d551(0x118),_0x24d551(0x17b)][_0x24d551(0x193)](this['_status'])||!_0x2a2192[_0x24d551(0x13f)][_0x24d551(0x13e)]||_0x2a2192['data'][_0x24d551(0x13e)]===this['_collabSession']['getMemberID']())return;this[_0x24d551(0x14f)]==='idle'&&this[_0x24d551(0x141)]();const _0x26a4a2=_0x2a2192['data'][_0x24d551(0x19d)];Object['values'](_0x26a4a2)['forEach'](_0x303e31=>{var _0x351c56=_0x24d551;this['_commandService']['executeCommand'](_0x303e31['id'],_0x303e31[_0x351c56(0x163)]?JSON[_0x351c56(0x171)](_0x303e31[_0x351c56(0x163)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x75763a=_0x1ff1a2,_0x49798c;this[_0x75763a(0x16f)][_0x75763a(0x177)](_0x75763a(0x17b)),(_0x49798c=this[_0x75763a(0x170)])==null||_0x49798c[_0x75763a(0x1ab)]();}[_0x1ff1a2(0x147)](){var _0x27bae7=_0x1ff1a2;this['_status$'][_0x27bae7(0x177)]('idle'),this[_0x27bae7(0x104)]();}};w=Z([f(0x2,_0x229618),f(0x3,_0x483899(L)),f(0x4,_0x59ff0d)],w);function Te(){var _0x11c58d=_0x1ff1a2;const _0x592b2f=_0x38b656(I),_0x30feeb=_0x38b656(_0x48e571),_0x45ce59=_0x48282a(()=>_0x30feeb[_0x11c58d(0x13d)](_0x364c1d[_0x11c58d(0x153)]),void 0x0,!0x1,[]),[_0x1c8f47,_0xeaa0bd]=_0x347517(null),[_0x29d177,_0x1741d2]=_0x347517(h['IDLE']),_0xb8daf7=_0x30f6b4(null);return _0x268f44(()=>(_0x45ce59&&_0x592b2f[_0x11c58d(0x14e)](_0x45ce59[_0x11c58d(0x183)]())[_0x11c58d(0x17f)](_0x3051d5=>{var _0x4e0d13=_0x11c58d;_0xeaa0bd(_0x3051d5),_0xb8daf7[_0x4e0d13(0x136)]=_0x3051d5[_0x4e0d13(0x15c)][_0x4e0d13(0x138)](_0x36b496=>{_0x1741d2(_0x36b496);});}),()=>{var _0x445cd5=_0x11c58d,_0x1f267a;(_0x1f267a=_0xb8daf7[_0x445cd5(0x136)])==null||_0x1f267a[_0x445cd5(0x1a5)](),_0xb8daf7[_0x445cd5(0x136)]=null;}),[_0x45ce59,_0x592b2f]),_0x1c8f47?_0x174d70(_0x2b2b6c,{'align':_0x11c58d(0x122),'disabled':_0x29d177===h['OFFLINE'],'className':_0x11c58d(0x10d),'overlay':_0x174d70($e,{'status':_0x29d177,'coordinator':_0x1c8f47}),'children':_0x174d70(_0x11c58d(0x144),{'className':_0x22711e(_0x11c58d(0x18c),{'univer-cursor-not-allowed':_0x29d177===h[_0x11c58d(0x179)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x29d177!==h['OFFLINE']}),'type':_0x11c58d(0x144),'children':_0x174d70(B,{'className':_0x11c58d(0x1a1)})})}):null;}function $e(_0x406d33){var _0x13b626=_0x1ff1a2;const {status:_0x103c55,coordinator:_0x58539e}=_0x406d33;switch(_0x103c55){case h[_0x13b626(0x192)]:return _0x174d70(Fe,{'coordinator':_0x58539e});case h['FOLLOWING']:return _0x174d70(He,{'coordinator':_0x58539e});case h[_0x13b626(0x150)]:return _0x174d70(je,{'coordinator':_0x58539e});case h[_0x13b626(0x179)]:return _0x174d70(Ve,{});case h[_0x13b626(0x12f)]:return _0x174d70(Ue,{'coordinator':_0x58539e});default:return null;}}function _0x27ca(){var _0x5a350d=['_handleNewHost','pipe','mutations','className','assign','current','onCommandExecuted','subscribe','string','_handleTerminate','1435064qBZuUF','hasOwnProperty','getCurrentTypeOfUnit$','presenter','data','1738220eqyoGn','_startFollowing','asObservable','LiveShareSingle','button','find','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','_handleOnline','forEach','path','_configService','1236213RTcvmN','UNIVER_UNKNOWN','override','getLiveShareCoordinator','_status','NOT_FOLLOWING','4481VMAmOE','_unitID','UNIVER_SHEET','tryStartPresenting','univer-w-full\x20univer-mb-3\x20univer-text-sm','trim','_univerInstanceService','_stopPresenting','delete','live-share-single','complete','status$','134wrRsio','2838468njoeEx','_sharedOperations','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','Stop\x20presenting','fill','params','sessionStatus$','get','onStarting','_handleNewChangeSets','xlink:href','from','_collabSession','_handleOperation','concat','disposeWithMe','onRendered','_status$','_commandDisposable','parse','replace','stopFollowing','call','entries','_liveShareService','next','stopPresenting','OFFLINE','getTypeOfUnitAdded$','offline','_commandService','tag','has','then','_config','mask','pluginName','getUnitId','currentColor','colorChannel1','SAME_OPERATION_SHARE_INTERVAL','shouldShareOperation','defineProperty','NEW_CHANGESETS','getValue','send','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','getInitialStates','_entities','text','reverse','set','IDLE','includes','45PrCdye','startFollowing','250KUQscP','_uiPartsService','1em','attrs','sheet','length','LIVESHARE_REQUEST_HOST','operations','LIVESHARE_FETCH_OPERATIONS','_init','children','univer-size-4','0\x200\x2016\x2016','executeCommand','init','unsubscribe','_collabSessionService','icon','You\x27re\x20following\x20the\x20presenter','extend','idSuffix','dispose','url(#$1','propertyIsEnumerable','LIVESHARE_OPERATION','_presenter','_startLiveShareCoordinator','none','registerSharedOperation','_fetchOperations','function','evenodd','idle','add','6QDIqwS','_beIdle','230404ZinzoQ','following','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','getMemberID','presenting','_mountLiveShare','_injector','_handleOffline','_reporters','getConfig','div','stringify','_stopFollowing','not-following','FOLLOWING','prototype','getOwnPropertyDescriptor','type','memberID','createInstance','live-share.config','indexOf','dispose$','end','registerComponent','displayName','event$','getTypeOfUnitDisposed$','2798873jgxTTH','You\x27re\x20presenting\x20the\x20document','OPERATION','apply','map','use','symbol','HEADER_MENU','PRESENTING','defIds'];_0x27ca=function(){return _0x5a350d;};return _0x27ca();}function Fe(_0x506560){var _0x2c4f64=_0x1ff1a2;const {coordinator:_0x1d6d3f}=_0x506560;return _0x5048be(_0x67d0fb,{'children':[_0x174d70(_0x2c4f64(0x115),{'className':_0x2c4f64(0x155),'children':'Present\x20this\x20document'}),_0x174d70(_0x38bd9d,{'onClick':()=>_0x1d6d3f[_0x2c4f64(0x154)](),'children':'Start'})]});}function He(_0x220fe3){var _0x8ae6c2=_0x1ff1a2;const {coordinator:_0x5bbcfc}=_0x220fe3;return _0x5048be(_0x67d0fb,{'children':[_0x174d70(_0x8ae6c2(0x115),{'className':_0x8ae6c2(0x155),'children':_0x8ae6c2(0x1a8)}),_0x174d70(_0x38bd9d,{'onClick':()=>_0x5bbcfc[_0x8ae6c2(0x173)](),'children':'Stop\x20following'})]});}function je(_0x4cf748){var _0x5a8d53=_0x1ff1a2;const {coordinator:_0x43a2d8}=_0x4cf748;return _0x5048be(_0x67d0fb,{'children':[_0x174d70(_0x5a8d53(0x115),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x174d70(_0x38bd9d,{'variant':_0x5a8d53(0x18f),'onClick':()=>_0x43a2d8[_0x5a8d53(0x195)](),'children':'Start\x20following'})]});}function Ue(_0x3f8803){var _0x5c3985=_0x1ff1a2;const {coordinator:_0x2cf4f1}=_0x3f8803;return _0x5048be(_0x67d0fb,{'children':[_0x174d70(_0x5c3985(0x115),{'className':_0x5c3985(0x155),'children':_0x5c3985(0x128)}),_0x174d70(_0x38bd9d,{'variant':'default','onClick':()=>_0x2cf4f1[_0x5c3985(0x178)](),'children':_0x5c3985(0x161)})]});}function Ve(){return _0x174d70(_0x67d0fb,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x1ff1a2(0x11b)],ke=(_0xb49ad8,_0x4d8f23,_0x139ce1,_0x2a79f4)=>{var _0x5dbb49=_0x1ff1a2;for(var _0x1c6d92=_0x2a79f4>0x1?void 0x0:_0x2a79f4?Me(_0x4d8f23,_0x139ce1):_0x4d8f23,_0x358448=_0xb49ad8[_0x5dbb49(0x19b)]-0x1,_0x359d68;_0x358448>=0x0;_0x358448--)(_0x359d68=_0xb49ad8[_0x358448])&&(_0x1c6d92=_0x359d68(_0x1c6d92)||_0x1c6d92);return _0x1c6d92;},$=(_0x2ac3de,_0x427e6f)=>(_0x3f26c2,_0x5958a6)=>_0x427e6f(_0x3f26c2,_0x5958a6,_0x2ac3de);let b=class extends _0x29220f{constructor(_0x58c525,_0x273c58){var _0x224b14=_0x1ff1a2;super(),this['_injector']=_0x58c525,this[_0x224b14(0x197)]=_0x273c58,this[_0x224b14(0x110)]();}[_0x1ff1a2(0x110)](){var _0x52db9b=_0x1ff1a2;this[_0x52db9b(0x16d)](this[_0x52db9b(0x197)][_0x52db9b(0x123)](_0x1bbf6a[_0x52db9b(0x12e)],()=>_0x24e830(Te,this[_0x52db9b(0x111)])));}};b=ke([$(0x0,_0x483899(_0x334295)),$(0x1,_0x281f7f)],b);var Ge=Object[_0x1ff1a2(0x188)],We=Object[_0x1ff1a2(0x11b)],Ye=(_0x569c97,_0x1c194a,_0x124cbe)=>_0x1c194a in _0x569c97?Ge(_0x569c97,_0x1c194a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x124cbe}):_0x569c97[_0x1c194a]=_0x124cbe,Be=(_0x3c9931,_0x9e5787,_0x32e8e6,_0x225f9e)=>{for(var _0x3162c9=_0x225f9e>0x1?void 0x0:_0x225f9e?We(_0x9e5787,_0x32e8e6):_0x9e5787,_0x186597=_0x3c9931['length']-0x1,_0x112c4a;_0x186597>=0x0;_0x186597--)(_0x112c4a=_0x3c9931[_0x186597])&&(_0x3162c9=_0x112c4a(_0x3162c9)||_0x3162c9);return _0x3162c9;},F=(_0x1d723b,_0x25c2e1)=>(_0xc0c8a4,_0x2867de)=>_0x25c2e1(_0xc0c8a4,_0x2867de,_0x1d723b),J=(_0x26107d,_0x42b130,_0x3144f0)=>Ye(_0x26107d,typeof _0x42b130!='symbol'?_0x42b130+'':_0x42b130,_0x3144f0);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x1993ba{constructor(_0x3b44bf=T,_0x3030f6,_0x8fd1f7){var _0x246d8c=_0x1ff1a2;super(),this[_0x246d8c(0x180)]=_0x3b44bf,this['_injector']=_0x3030f6,this[_0x246d8c(0x14a)]=_0x8fd1f7;const {..._0x33941a}=_0x4c21bc({},T,this[_0x246d8c(0x180)]);this[_0x246d8c(0x14a)]['setConfig'](Oe,_0x33941a);}[_0x1ff1a2(0x166)](){var _0x11cfac=_0x1ff1a2;_0x5e3490(this[_0x11cfac(0x111)],_0x27c800([[L],[I],[m],[b]],this[_0x11cfac(0x180)][_0x11cfac(0x14d)])),_0x3a2ff7(this[_0x11cfac(0x111)],[[m]]);}[_0x1ff1a2(0x16e)](){var _0x38d2a7=_0x1ff1a2;_0x3a2ff7(this[_0x38d2a7(0x111)],[[b]]);}};function _0x22c1(_0x4a92fb,_0x2798e5){var _0x27cab4=_0x27ca();return _0x22c1=function(_0x22c184,_0x1866f2){_0x22c184=_0x22c184-0x100;var _0x4d18e2=_0x27cab4[_0x22c184];return _0x4d18e2;},_0x22c1(_0x4a92fb,_0x2798e5);}J(O,_0x1ff1a2(0x11c),_0x364c1d[_0x1ff1a2(0x14c)]),J(O,_0x1ff1a2(0x182),Ze),O=Be([_0x8e9b8a(_0x2c6185),F(0x1,_0x483899(_0x334295)),F(0x2,_0x229618)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x5d9347=_0x4a5c;function _0x4a5c(_0x27b724,_0x131fbd){var _0x542b27=_0x542b();return _0x4a5c=function(_0x4a5c1c,_0x1baa81){_0x4a5c1c=_0x4a5c1c-0x1e9;var _0x3b57ad=_0x542b27[_0x4a5c1c];return _0x3b57ad;},_0x4a5c(_0x27b724,_0x131fbd);}(function(_0x55ae24,_0x2ff00f){var _0x59fb73=_0x4a5c,_0x49c096=_0x55ae24();while(!![]){try{var _0x3d6022=parseInt(_0x59fb73(0x273))/0x1*(parseInt(_0x59fb73(0x263))/0x2)+parseInt(_0x59fb73(0x285))/0x3*(-parseInt(_0x59fb73(0x200))/0x4)+-parseInt(_0x59fb73(0x297))/0x5*(parseInt(_0x59fb73(0x216))/0x6)+parseInt(_0x59fb73(0x21b))/0x7*(-parseInt(_0x59fb73(0x1f6))/0x8)+parseInt(_0x59fb73(0x1ea))/0x9+parseInt(_0x59fb73(0x249))/0xa+parseInt(_0x59fb73(0x206))/0xb*(parseInt(_0x59fb73(0x1ec))/0xc);if(_0x3d6022===_0x2ff00f)break;else _0x49c096['push'](_0x49c096['shift']());}catch(_0x4a7c5f){_0x49c096['push'](_0x49c096['shift']());}}}(_0x542b,0xd58e7));var q=Object[_0x5d9347(0x279)],z=(_0x4e593f,_0x5ae8e2,_0x2eda14)=>_0x5ae8e2 in _0x4e593f?q(_0x4e593f,_0x5ae8e2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2eda14}):_0x4e593f[_0x5ae8e2]=_0x2eda14,d=(_0xc44bc3,_0x140b5a,_0x595949)=>z(_0xc44bc3,typeof _0x140b5a!=_0x5d9347(0x299)?_0x140b5a+'':_0x140b5a,_0x595949);import{CollaborationSessionService as _0x1c6d67,SessionStatus as _0x35e4cc,UniverCollaborationClientPlugin as _0x1442f5}from'@univerjs-pro/collaboration-client';import{Disposable as _0x1b499d,toDisposable as _0x24c67b,Inject as _0xf4c6bc,IUniverInstanceService as _0x28a93b,Injector as _0x58103d,IConfigService as _0x15f64d,ICommandService as _0x111072,RxDisposable as _0x228607,UniverInstanceType as _0x1b1d71,DisposableCollection as _0x1c4956,CommandType as _0x2037d8,DependentOn as _0x1f205f,Plugin as _0x42940a,merge as _0x3945fc,registerDependencies as _0x2bca35,mergeOverrideWithDependencies as _0x54dac0,touchDependencies as _0x3e0e7b}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x32e572,InsertSheetMutation as _0x2fa200}from'@univerjs/sheets';function _0x542b(){var _0x4d49bf=['assign','presenter','shouldShareOperation','stringify','svg','_commandService','colorChannel1','_fetchOperations','idle','HEADER_MENU','onCommandExecuted','_collabSessionService','250KayyxJ','live-share-single','_collabSession','_entities','dispose$','hasOwnProperty','_injector','1em','_stopPresenting','OPERATION','delete','executeCommand','defIds','className','NOT_FOLLOWING','_uiPartsService','13993MJERJc','next','find','Present\x20this\x20document','ONLINE','Start','defineProperty','onRendered','getMemberID','registerSharedOperation','getOwnPropertyDescriptor','_config','subscribe','registerComponent','_status','getOwnPropertySymbols','then','fill','9LlTMIS','sessionStatus$','SAME_OPERATION_SHARE_INTERVAL','clear','You\x27re\x20presenting\x20the\x20document','LIVESHARE_TERMINATE','getCurrentTypeOfUnit$','init','default','current','_unitID','children','univerjs-icon\x20univerjs-icon-','params','_reporters','presenting','has','Start\x20following','5kgwsie','string','symbol','0\x200\x2016\x2016','10367361elkpvI','LIVESHARE_REQUEST_HOST','2724NFwyMS','displayName','mutations','_status$','following','IDLE','xlink:href','prototype','_commandDisposable','tryStartPresenting','16maekno','button','univer-w-full\x20univer-mb-3\x20univer-text-sm','stopFollowing','forEach','path','defs','extend','LIVESHARE_FETCH_OPERATIONS','_startFollowing','750124gknDvz','PRESENTING','data','currentColor','_mountLiveShare','_startLiveShareCoordinator','913vvaCpQ','getTypeOfUnitAdded$','override','startFollowing','_handleNewHost','getTypeOfUnitDisposed$','_presenter','replace','dispose','idSuffix','_stopFollowing','apply','_init','length','type','function','10086870vunQgz','attrs','map','_liveShareService','getUnitId','375256Infban','Stop\x20presenting','url(#$1','OFFLINE','parse','_beIdle','stopPresenting','from','indexOf','registerInitialStateReporter','entries','random','not-following','_handleTerminate','pipe','_configService','call','trim','toString','disposeWithMe','add','event$','offline','pluginName','unsubscribe','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','operations','_sharedOperations','_handleNewChangeSets','includes','_handleOnline','UNIVER_SHEET','tag','getInitialStates','icon','status$','Stop\x20following','concat','div','FOLLOWING','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','set','complete','sheet','send','evenodd','3057860jqfvra','mask','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','unitId','getConfig','LIVESHARE_OPERATION','_handleOffline','end','_handleOperation','text','getLiveShareCoordinator','get','_univerInstanceService','propertyIsEnumerable'];_0x542b=function(){return _0x4d49bf;};return _0x542b();}import{SetZoomRatioOperation as _0x21f87e,SetScrollOperation as _0x214d0a}from'@univerjs/sheets-ui';import{useDependency as _0x3d7b2a,useObservable as _0x226374,IUIPartsService as _0x22c001,BuiltInUIPart as _0x2015b7,connectInjector as _0xec9de6}from'@univerjs/ui';import{jsx as _0x14e593,jsxs as _0x458d04,Fragment as _0x4df0c0}from'react/jsx-runtime';import{Dropdown as _0x466fb1,clsx as _0x5ad817,Button as _0x30e4ae}from'@univerjs/design';import{forwardRef as _0xc7e6ad,useRef as _0x15b2bf,createElement as _0x5d9238,useState as _0x423282,useEffect as _0x232a4c}from'react';import{CollaborationEvent as _0x311d5f,parseProtocolChangeset as _0x5a446c}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x21ccd9,Subject as _0x2436f5}from'rxjs';import{takeUntil as _0x4bb18e,throttleTime as _0x1e6f21}from'rxjs/operators';const Oe='live-share.config',T={};class L extends _0x1b499d{constructor(){var _0x1e34de=_0x5d9347;super(...arguments),d(this,_0x1e34de(0x236),new Set()),d(this,'_reporters',new Set());}['registerSharedOperation'](_0x59e1a8){var _0x435b1e=_0x5d9347;return this[_0x435b1e(0x236)][_0x435b1e(0x22f)](_0x59e1a8),_0x24c67b(()=>this[_0x435b1e(0x236)][_0x435b1e(0x26d)](_0x59e1a8));}[_0x5d9347(0x224)](_0x12ff30){var _0x5b6844=_0x5d9347;return this[_0x5b6844(0x293)][_0x5b6844(0x22f)](_0x12ff30),_0x24c67b(()=>this[_0x5b6844(0x293)][_0x5b6844(0x26d)](_0x12ff30));}[_0x5d9347(0x259)](_0x568934){var _0x4c4dfc=_0x5d9347;return this[_0x4c4dfc(0x236)][_0x4c4dfc(0x295)](_0x568934);}['getInitialStates'](_0x5c09d7){var _0x3e5666=_0x5d9347;return Array[_0x3e5666(0x222)](this[_0x3e5666(0x293)])[_0x3e5666(0x218)](_0x4c0391=>_0x4c0391(_0x5c09d7));}}var Ee=Object[_0x5d9347(0x27d)],Ce=(_0x3cfbef,_0x5e7dca,_0x945da3,_0x42e02e)=>{var _0x3c37bb=_0x5d9347;for(var _0xc079d0=_0x42e02e>0x1?void 0x0:_0x42e02e?Ee(_0x5e7dca,_0x945da3):_0x5e7dca,_0x5109c2=_0x3cfbef[_0x3c37bb(0x213)]-0x1,_0x54c0b9;_0x5109c2>=0x0;_0x5109c2--)(_0x54c0b9=_0x3cfbef[_0x5109c2])&&(_0xc079d0=_0x54c0b9(_0xc079d0)||_0xc079d0);return _0xc079d0;},Ne=(_0x362b47,_0x9742d6)=>(_0x57faea,_0x83bc70)=>_0x9742d6(_0x57faea,_0x83bc70,_0x362b47);let m=class extends _0x1b499d{constructor(_0x5f08de){var _0x3edd3f=_0x5d9347;super(),this[_0x3edd3f(0x219)]=_0x5f08de,this[_0x3edd3f(0x212)]();}[_0x5d9347(0x212)](){var _0x4edfa4=_0x5d9347;[_0x21f87e['id'],_0x214d0a['id'],_0x32e572['id']][_0x4edfa4(0x1fa)](_0x380009=>{var _0x30ff57=_0x4edfa4;this[_0x30ff57(0x22e)](this[_0x30ff57(0x219)][_0x30ff57(0x27c)](_0x380009));});}};m=Ce([Ne(0x0,_0xf4c6bc(L))],m);var c=function(){var _0x6c8d3=_0x5d9347;return c=Object[_0x6c8d3(0x257)]||function(_0x1eadb9){var _0x19d4f3=_0x6c8d3;for(var _0x283f18,_0xefbedd=0x1,_0x3893d1=arguments[_0x19d4f3(0x213)];_0xefbedd<_0x3893d1;_0xefbedd++){_0x283f18=arguments[_0xefbedd];for(var _0x285afb in _0x283f18)Object[_0x19d4f3(0x1f3)]['hasOwnProperty'][_0x19d4f3(0x22b)](_0x283f18,_0x285afb)&&(_0x1eadb9[_0x285afb]=_0x283f18[_0x285afb]);}return _0x1eadb9;},c[_0x6c8d3(0x211)](this,arguments);},we=function(_0x515abe,_0x3d6bb2){var _0x355cad=_0x5d9347,_0x2536a9={};for(var _0x42e1b6 in _0x515abe)Object[_0x355cad(0x1f3)][_0x355cad(0x268)][_0x355cad(0x22b)](_0x515abe,_0x42e1b6)&&_0x3d6bb2[_0x355cad(0x223)](_0x42e1b6)<0x0&&(_0x2536a9[_0x42e1b6]=_0x515abe[_0x42e1b6]);if(_0x515abe!=null&&typeof Object[_0x355cad(0x282)]==_0x355cad(0x215)){for(var _0xb5815d=0x0,_0x42e1b6=Object[_0x355cad(0x282)](_0x515abe);_0xb5815d<_0x42e1b6['length'];_0xb5815d++)_0x3d6bb2[_0x355cad(0x223)](_0x42e1b6[_0xb5815d])<0x0&&Object[_0x355cad(0x1f3)][_0x355cad(0x256)]['call'](_0x515abe,_0x42e1b6[_0xb5815d])&&(_0x2536a9[_0x42e1b6[_0xb5815d]]=_0x515abe[_0x42e1b6[_0xb5815d]]);}return _0x2536a9;},W=_0xc7e6ad(function(_0x1097cb,_0x1b53ee){var _0x2a3994=_0x5d9347,_0x2772f6=_0x1097cb[_0x2a3994(0x23d)],_0x4e6c98=_0x1097cb['id'],_0x57c3e1=_0x1097cb['className'],_0x3eb88c=_0x1097cb[_0x2a3994(0x1fd)],_0x39bc1c=we(_0x1097cb,[_0x2a3994(0x23d),'id',_0x2a3994(0x270),_0x2a3994(0x1fd)]),_0x7b2835=_0x2a3994(0x291)['concat'](_0x4e6c98,'\x20')[_0x2a3994(0x240)](_0x57c3e1||'')[_0x2a3994(0x22c)](),_0x4af794=_0x15b2bf('_'[_0x2a3994(0x240)](Le()));return Y(_0x2772f6,''[_0x2a3994(0x240)](_0x4e6c98),{'defIds':_0x2772f6[_0x2a3994(0x26f)],'idSuffix':_0x4af794[_0x2a3994(0x28e)]},c({'ref':_0x1b53ee,'className':_0x7b2835},_0x39bc1c),_0x3eb88c);});function Y(_0x4cb51b,_0x97fd3b,_0x1431e6,_0x38d963,_0x365855){var _0x3238de=_0x5d9347;return _0x5d9238(_0x4cb51b[_0x3238de(0x23b)],c(c({'key':_0x97fd3b},De(_0x4cb51b,_0x1431e6,_0x365855)),_0x38d963),(xe(_0x4cb51b,_0x1431e6)[_0x3238de(0x290)]||[])[_0x3238de(0x218)](function(_0x500277,_0x16c11c){var _0x5e439b=_0x3238de;return Y(_0x500277,''[_0x5e439b(0x240)](_0x97fd3b,'-')[_0x5e439b(0x240)](_0x4cb51b[_0x5e439b(0x23b)],'-')['concat'](_0x16c11c),_0x1431e6,void 0x0,_0x365855);}));}function De(_0x3a812a,_0x124474,_0xbd8383){var _0x5428ad=_0x5d9347,_0x10a9d6=c({},_0x3a812a['attrs']);_0xbd8383!=null&&_0xbd8383['colorChannel1']&&_0x10a9d6[_0x5428ad(0x284)]===_0x5428ad(0x25d)&&(_0x10a9d6[_0x5428ad(0x284)]=_0xbd8383[_0x5428ad(0x25d)]),_0x3a812a[_0x5428ad(0x23b)]===_0x5428ad(0x24a)&&_0x10a9d6['id']&&(_0x10a9d6['id']=_0x10a9d6['id']+_0x124474['idSuffix']),Object[_0x5428ad(0x225)](_0x10a9d6)[_0x5428ad(0x1fa)](function(_0x18ca5b){var _0x43c32a=_0x5428ad,_0x350b78=_0x18ca5b[0x0],_0x568d1a=_0x18ca5b[0x1];_0x350b78===_0x43c32a(0x24a)&&typeof _0x568d1a==_0x43c32a(0x298)&&(_0x10a9d6[_0x350b78]=_0x568d1a[_0x43c32a(0x20d)](/url\(#(.*)\)/,_0x43c32a(0x21d)[_0x43c32a(0x240)](_0x124474['idSuffix'],')')));});var _0x584e67=_0x124474[_0x5428ad(0x26f)];return!_0x584e67||_0x584e67['length']===0x0||(_0x3a812a[_0x5428ad(0x23b)]==='use'&&_0x10a9d6[_0x5428ad(0x1f2)]&&(_0x10a9d6['xlink:href']=_0x10a9d6['xlink:href']+_0x124474[_0x5428ad(0x20f)]),Object[_0x5428ad(0x225)](_0x10a9d6)[_0x5428ad(0x1fa)](function(_0x3ef65e){var _0x2d6055=_0x5428ad,_0x46d3ca=_0x3ef65e[0x0],_0x3ebede=_0x3ef65e[0x1];typeof _0x3ebede==_0x2d6055(0x298)&&(_0x10a9d6[_0x46d3ca]=_0x3ebede[_0x2d6055(0x20d)](/url\(#(.*)\)/,_0x2d6055(0x21d)[_0x2d6055(0x240)](_0x124474['idSuffix'],')')));})),_0x10a9d6;}function xe(_0x56dd24,_0x5031f7){var _0x4ac063=_0x5d9347,_0x340304,_0x29d16c=_0x5031f7[_0x4ac063(0x26f)];return!_0x29d16c||_0x29d16c['length']===0x0?_0x56dd24:_0x56dd24[_0x4ac063(0x23b)]===_0x4ac063(0x1fc)&&(!((_0x340304=_0x56dd24[_0x4ac063(0x290)])===null||_0x340304===void 0x0)&&_0x340304[_0x4ac063(0x213)])?c(c({},_0x56dd24),{'children':_0x56dd24[_0x4ac063(0x290)][_0x4ac063(0x218)](function(_0x356de0){var _0x4ac7f8=_0x4ac063;return typeof _0x356de0[_0x4ac7f8(0x217)]['id']==_0x4ac7f8(0x298)&&_0x29d16c&&_0x29d16c['indexOf'](_0x356de0[_0x4ac7f8(0x217)]['id'])>-0x1?c(c({},_0x356de0),{'attrs':c(c({},_0x356de0[_0x4ac7f8(0x217)]),{'id':_0x356de0['attrs']['id']+_0x5031f7[_0x4ac7f8(0x20f)]})}):_0x356de0;})}):_0x56dd24;}function Le(){var _0x240c31=_0x5d9347;return Math[_0x240c31(0x226)]()[_0x240c31(0x22d)](0x24)['substring'](0x2,0x8);}W[_0x5d9347(0x1ed)]='UniverIcon';var ye={'tag':_0x5d9347(0x25b),'attrs':{'fill':'none','viewBox':_0x5d9347(0x1e9),'width':_0x5d9347(0x26a),'height':_0x5d9347(0x26a)},'children':[{'tag':_0x5d9347(0x1fb),'attrs':{'fill':_0x5d9347(0x203),'d':_0x5d9347(0x243)}},{'tag':_0x5d9347(0x1fb),'attrs':{'fill':'currentColor','d':_0x5d9347(0x24b),'fillRule':_0x5d9347(0x248),'clipRule':_0x5d9347(0x248)}}]},B=_0xc7e6ad(function(_0x38d28e,_0x47bd46){var _0x158161=_0x5d9347;return _0x5d9238(W,Object[_0x158161(0x257)]({},_0x38d28e,{'id':_0x158161(0x264),'ref':_0x47bd46,'icon':ye}));});B['displayName']='LiveShareSingle';var Re=Object['getOwnPropertyDescriptor'],Z=(_0x25ff56,_0x5806bc,_0xacced0,_0x331b2d)=>{for(var _0x1ebf09=_0x331b2d>0x1?void 0x0:_0x331b2d?Re(_0x5806bc,_0xacced0):_0x5806bc,_0x458a32=_0x25ff56['length']-0x1,_0x288b84;_0x458a32>=0x0;_0x458a32--)(_0x288b84=_0x25ff56[_0x458a32])&&(_0x1ebf09=_0x288b84(_0x1ebf09)||_0x1ebf09);return _0x1ebf09;},f=(_0x4ee510,_0xc66007)=>(_0x3ac084,_0x55d071)=>_0xc66007(_0x3ac084,_0x55d071,_0x4ee510);let I=class extends _0x228607{constructor(_0x52eb27,_0x2c2576,_0xd29bfa){var _0x434887=_0x5d9347;super(),d(this,_0x434887(0x266),new Map()),(this[_0x434887(0x255)]=_0x52eb27,this[_0x434887(0x269)]=_0x2c2576,this[_0x434887(0x262)]=_0xd29bfa,this['_init']());}async[_0x5d9347(0x253)](_0x362ae3){var _0x3bde86=_0x5d9347;return this[_0x3bde86(0x266)][_0x3bde86(0x295)](_0x362ae3)||await this[_0x3bde86(0x205)](_0x362ae3),this[_0x3bde86(0x266)][_0x3bde86(0x254)](_0x362ae3);}[_0x5d9347(0x212)](){var _0x186a71=_0x5d9347;this[_0x186a71(0x255)][_0x186a71(0x207)](_0x1b1d71[_0x186a71(0x23a)])['pipe'](_0x4bb18e(this['dispose$']))['subscribe'](async _0x32def2=>{var _0x2c1a39=_0x186a71;const _0x40787=_0x32def2['getUnitId']();this[_0x2c1a39(0x266)][_0x2c1a39(0x295)](_0x40787)||this[_0x2c1a39(0x205)](_0x40787);}),this[_0x186a71(0x255)][_0x186a71(0x20b)](_0x1b1d71['UNIVER_SHEET'])[_0x186a71(0x229)](_0x4bb18e(this[_0x186a71(0x267)]))[_0x186a71(0x27f)](_0x2f41f3=>{var _0x3a254c=_0x186a71;const _0x2409d5=_0x2f41f3['getUnitId'](),_0x4c6183=this[_0x3a254c(0x266)][_0x3a254c(0x254)](_0x2409d5);_0x4c6183==null||_0x4c6183[_0x3a254c(0x20e)]();});}async[_0x5d9347(0x205)](_0x17c11c){var _0x2b5c0a=_0x5d9347;const _0x32096d=await this['_collabSessionService']['requireSession'](_0x17c11c),_0x43a3bf=this[_0x2b5c0a(0x269)]['createInstance'](w,_0x17c11c,_0x32096d);return _0x43a3bf[_0x2b5c0a(0x28c)](),this[_0x2b5c0a(0x266)][_0x2b5c0a(0x244)](_0x17c11c,_0x43a3bf),_0x43a3bf;}};I=Z([f(0x0,_0x28a93b),f(0x1,_0xf4c6bc(_0x58103d)),f(0x2,_0xf4c6bc(_0x1c6d67))],I);var h=(_0x405a74=>(_0x405a74[_0x5d9347(0x21e)]=_0x5d9347(0x231),_0x405a74['IDLE']=_0x5d9347(0x25f),_0x405a74[_0x5d9347(0x242)]=_0x5d9347(0x1f0),_0x405a74['NOT_FOLLOWING']=_0x5d9347(0x227),_0x405a74[_0x5d9347(0x201)]=_0x5d9347(0x294),_0x405a74))(h||{});const Pe=_0x5d9347(0x287),Ae=0xc8;let w=class extends _0x228607{constructor(_0x443c3c,_0xe094de,_0x538cc8,_0x40c205,_0x49d40f){var _0x2e055c=_0x5d9347;super(),d(this,_0x2e055c(0x1ef),new _0x21ccd9(_0x2e055c(0x25f))),d(this,_0x2e055c(0x23e),this[_0x2e055c(0x1ef)]['asObservable']()),d(this,'_init',!0x1),d(this,'_commandDisposable',null),d(this,_0x2e055c(0x20c),null),(this[_0x2e055c(0x28f)]=_0x443c3c,this[_0x2e055c(0x265)]=_0xe094de,this['_configService']=_0x538cc8,this[_0x2e055c(0x219)]=_0x40c205,this['_commandService']=_0x49d40f);}get[_0x5d9347(0x281)](){var _0x12a679=_0x5d9347;return this[_0x12a679(0x1ef)]['getValue']();}[_0x5d9347(0x20e)](){var _0x5d922e=_0x5d9347,_0x4738bf;(_0x4738bf=this[_0x5d922e(0x1f4)])==null||_0x4738bf[_0x5d922e(0x20e)](),this['_status$'][_0x5d922e(0x274)]('idle'),this['_status$'][_0x5d922e(0x245)]();}[_0x5d9347(0x28c)](){var _0x4641a0=_0x5d9347;this[_0x4641a0(0x212)]||(this[_0x4641a0(0x212)]=!0x0,this[_0x4641a0(0x265)][_0x4641a0(0x286)][_0x4641a0(0x229)](_0x4bb18e(this[_0x4641a0(0x267)]))[_0x4641a0(0x27f)](_0x12059a=>{var _0x5d0c31=_0x4641a0;switch(_0x12059a){case _0x35e4cc[_0x5d0c31(0x21e)]:this[_0x5d0c31(0x24f)]();break;case _0x35e4cc[_0x5d0c31(0x277)]:this[_0x5d0c31(0x239)]();break;}}),this[_0x4641a0(0x265)][_0x4641a0(0x230)]['pipe'](_0x4bb18e(this[_0x4641a0(0x267)]))[_0x4641a0(0x27f)](_0x487469=>{var _0xc2ffca=_0x4641a0;const {eventID:_0xc328ae}=_0x487469;switch(_0xc328ae){case _0x311d5f['LIVESHARE_NEW_HOST']:this[_0xc2ffca(0x20a)](_0x487469);break;case _0x311d5f[_0xc2ffca(0x24e)]:this[_0xc2ffca(0x251)](_0x487469);break;case _0x311d5f[_0xc2ffca(0x28a)]:this[_0xc2ffca(0x228)]();break;case _0x311d5f['NEW_CHANGESETS']:this[_0xc2ffca(0x237)](_0x487469);break;}}));}[_0x5d9347(0x1f5)](){var _0x5d5a1c=_0x5d9347;this[_0x5d5a1c(0x265)][_0x5d5a1c(0x247)]({'eventID':_0x311d5f[_0x5d5a1c(0x1eb)],'data':{'unitID':this[_0x5d5a1c(0x28f)],'userID':this[_0x5d5a1c(0x265)][_0x5d5a1c(0x27b)]()}},this[_0x5d5a1c(0x28f)]);}[_0x5d9347(0x221)](){var _0x235e5d=_0x5d9347;this[_0x235e5d(0x281)]===_0x235e5d(0x294)&&(this['_status$'][_0x235e5d(0x274)]('idle'),this[_0x235e5d(0x265)][_0x235e5d(0x247)]({'eventID':_0x311d5f[_0x235e5d(0x28a)],'data':{'unitID':this[_0x235e5d(0x28f)]}},this[_0x235e5d(0x28f)]));}[_0x5d9347(0x209)](){var _0x2b5756=_0x5d9347;this[_0x2b5756(0x281)]==='not-following'&&(this['_status$']['next'](_0x2b5756(0x1f0)),this[_0x2b5756(0x1ff)]());}[_0x5d9347(0x1f9)](){var _0x514afe=_0x5d9347;this[_0x514afe(0x281)]===_0x514afe(0x1f0)&&this['_stopFollowing']();}['_handleNewHost'](_0x4a58db){var _0x3edaad=_0x5d9347;const {presenter:_0x433873}=_0x4a58db[_0x3edaad(0x202)],_0xa542d5=this[_0x3edaad(0x265)][_0x3edaad(0x27b)]();this['_presenter']=_0x433873,_0x433873===_0xa542d5?(this[_0x3edaad(0x210)](),this['_startPresenting']()):this[_0x3edaad(0x281)]!==_0x3edaad(0x227)&&(this[_0x3edaad(0x26b)](),this[_0x3edaad(0x1ff)]());}[_0x5d9347(0x25e)](){var _0x155d37=_0x5d9347;const _0x30c94b={'eventID':_0x311d5f[_0x155d37(0x1fe)]};this[_0x155d37(0x265)][_0x155d37(0x247)](_0x30c94b,this['_unitID']);}['_handleTerminate'](){var _0x21e19c=_0x5d9347;this[_0x21e19c(0x20c)]=null,this[_0x21e19c(0x281)]!=='presenting'&&this[_0x21e19c(0x220)]();}[_0x5d9347(0x237)](_0x404e6a){var _0x48bc77=_0x5d9347;if(this['_status']===_0x48bc77(0x1f0)&&this[_0x48bc77(0x20c)]===_0x404e6a[_0x48bc77(0x202)]['memberID']){const _0x3b9855=_0x5a446c(_0x404e6a[_0x48bc77(0x202)])[_0x48bc77(0x1ee)]['reverse']()[_0x48bc77(0x275)](_0x278393=>_0x278393['id']===_0x2fa200['id']);if(_0x3b9855){const _0x34ccde=_0x3b9855[_0x48bc77(0x292)][_0x48bc77(0x24c)],_0x37b8ff=_0x3b9855[_0x48bc77(0x292)][_0x48bc77(0x246)]['id'];setTimeout(()=>{var _0x2c55ae=_0x48bc77;this[_0x2c55ae(0x25c)]['executeCommand'](_0x32e572['id'],{'unitId':_0x34ccde,'subUnitId':_0x37b8ff},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x50602f=_0x5d9347;this[_0x50602f(0x1ef)][_0x50602f(0x274)]('presenting');const _0x58c4ef=new Map(),_0x390c00=this[_0x50602f(0x1f4)]=new _0x1c4956();_0x390c00[_0x50602f(0x22f)](_0x24c67b(()=>{var _0xc55a93=_0x50602f;_0x58c4ef[_0xc55a93(0x1fa)](_0x28cb98=>_0x28cb98[_0xc55a93(0x245)]()),_0x58c4ef[_0xc55a93(0x288)]();})),_0x390c00[_0x50602f(0x22f)](this[_0x50602f(0x25c)][_0x50602f(0x261)](_0x515167=>{var _0x1847e0=_0x50602f,_0x41c631;if(_0x515167[_0x1847e0(0x214)]!==_0x2037d8[_0x1847e0(0x26c)]||!this['_liveShareService'][_0x1847e0(0x259)](_0x515167['id']))return;const {id:_0x31df88}=_0x515167;let _0x6a3217;_0x58c4ef[_0x1847e0(0x295)](_0x31df88)?_0x6a3217=_0x58c4ef[_0x1847e0(0x254)](_0x31df88):(_0x6a3217=new _0x2436f5(),_0x58c4ef['set'](_0x31df88,_0x6a3217),_0x6a3217[_0x1847e0(0x229)](_0x1e6f21((_0x41c631=this['_configService'][_0x1847e0(0x24d)](Pe))!=null?_0x41c631:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1847e0(0x27f)](_0x34e1d3=>{var _0xfa126e=_0x1847e0;this[_0xfa126e(0x265)]['send']({'eventID':_0x311d5f['LIVESHARE_OPERATION'],'data':{'unitID':this[_0xfa126e(0x28f)],'operations':{[_0x34e1d3['id']]:{'id':_0x34e1d3['id'],'params':JSON[_0xfa126e(0x25a)](_0x34e1d3[_0xfa126e(0x292)])}}}},this[_0xfa126e(0x28f)]);})),_0x6a3217['next'](_0x515167);})),this[_0x50602f(0x219)][_0x50602f(0x23c)](this[_0x50602f(0x28f)])[_0x50602f(0x1fa)](_0x2e945a=>this['_collabSession'][_0x50602f(0x247)]({'eventID':_0x311d5f['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x50602f(0x28f)],'operations':{[_0x2e945a['id']]:{'id':_0x2e945a['id'],'params':JSON[_0x50602f(0x25a)](_0x2e945a['params'])}}}},this[_0x50602f(0x28f)]));}[_0x5d9347(0x26b)](){var _0x4e548d=_0x5d9347,_0x43a3d1;this['_status$']['next']('idle'),(_0x43a3d1=this[_0x4e548d(0x1f4)])==null||_0x43a3d1[_0x4e548d(0x20e)](),this['_commandDisposable']=null;}[_0x5d9347(0x1ff)](){var _0x56a8b6=_0x5d9347,_0xe2ea65;(_0xe2ea65=this[_0x56a8b6(0x1f4)])==null||_0xe2ea65[_0x56a8b6(0x20e)](),this[_0x56a8b6(0x1ef)][_0x56a8b6(0x274)]('following');}[_0x5d9347(0x220)](){var _0x12e18a=_0x5d9347,_0x2b9724;this[_0x12e18a(0x1ef)][_0x12e18a(0x274)](_0x12e18a(0x25f)),(_0x2b9724=this[_0x12e18a(0x1f4)])==null||_0x2b9724[_0x12e18a(0x20e)](),this['_commandDisposable']=null;}[_0x5d9347(0x210)](){var _0x428673=_0x5d9347,_0x41b22c;this['_status$'][_0x428673(0x274)](_0x428673(0x227)),(_0x41b22c=this['_commandDisposable'])==null||_0x41b22c[_0x428673(0x20e)]();}[_0x5d9347(0x251)](_0x59b86d){var _0x48fa47=_0x5d9347;if(['presenting','not-following',_0x48fa47(0x231)][_0x48fa47(0x238)](this[_0x48fa47(0x281)])||!_0x59b86d['data'][_0x48fa47(0x258)]||_0x59b86d['data'][_0x48fa47(0x258)]===this['_collabSession'][_0x48fa47(0x27b)]())return;this[_0x48fa47(0x281)]===_0x48fa47(0x25f)&&this[_0x48fa47(0x1ff)]();const _0x12294c=_0x59b86d['data'][_0x48fa47(0x235)];Object['values'](_0x12294c)[_0x48fa47(0x1fa)](_0x26cfb9=>{var _0x392449=_0x48fa47;this[_0x392449(0x25c)][_0x392449(0x26e)](_0x26cfb9['id'],_0x26cfb9['params']?JSON[_0x392449(0x21f)](_0x26cfb9[_0x392449(0x292)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x4badc1=_0x5d9347,_0x440718;this[_0x4badc1(0x1ef)][_0x4badc1(0x274)]('offline'),(_0x440718=this[_0x4badc1(0x1f4)])==null||_0x440718[_0x4badc1(0x20e)]();}['_handleOnline'](){var _0x577c76=_0x5d9347;this[_0x577c76(0x1ef)][_0x577c76(0x274)]('idle'),this['_fetchOperations']();}};w=Z([f(0x2,_0x15f64d),f(0x3,_0xf4c6bc(L)),f(0x4,_0x111072)],w);function Te(){var _0x2756e6=_0x5d9347;const _0x3c85c=_0x3d7b2a(I),_0x4c7674=_0x3d7b2a(_0x28a93b),_0x4031ae=_0x226374(()=>_0x4c7674[_0x2756e6(0x28b)](_0x1b1d71[_0x2756e6(0x23a)]),void 0x0,!0x1,[]),[_0x1ba8de,_0x179381]=_0x423282(null),[_0x49ff49,_0xef14c0]=_0x423282(h[_0x2756e6(0x1f1)]),_0x21f100=_0x15b2bf(null);return _0x232a4c(()=>(_0x4031ae&&_0x3c85c['getLiveShareCoordinator'](_0x4031ae[_0x2756e6(0x21a)]())[_0x2756e6(0x283)](_0x32429a=>{var _0x29fe30=_0x2756e6;_0x179381(_0x32429a),_0x21f100['current']=_0x32429a[_0x29fe30(0x23e)][_0x29fe30(0x27f)](_0x38216e=>{_0xef14c0(_0x38216e);});}),()=>{var _0x343072=_0x2756e6,_0x59b667;(_0x59b667=_0x21f100[_0x343072(0x28e)])==null||_0x59b667[_0x343072(0x233)](),_0x21f100[_0x343072(0x28e)]=null;}),[_0x4031ae,_0x3c85c]),_0x1ba8de?_0x14e593(_0x466fb1,{'align':_0x2756e6(0x250),'disabled':_0x49ff49===h['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','overlay':_0x14e593($e,{'status':_0x49ff49,'coordinator':_0x1ba8de}),'children':_0x14e593(_0x2756e6(0x1f7),{'className':_0x5ad817(_0x2756e6(0x234),{'univer-cursor-not-allowed':_0x49ff49===h[_0x2756e6(0x21e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x49ff49!==h['OFFLINE']}),'type':'button','children':_0x14e593(B,{'className':'univer-size-4'})})}):null;}function $e(_0x5f198f){var _0x1a1667=_0x5d9347;const {status:_0x25d4c3,coordinator:_0x4748cb}=_0x5f198f;switch(_0x25d4c3){case h['IDLE']:return _0x14e593(Fe,{'coordinator':_0x4748cb});case h[_0x1a1667(0x242)]:return _0x14e593(He,{'coordinator':_0x4748cb});case h[_0x1a1667(0x271)]:return _0x14e593(je,{'coordinator':_0x4748cb});case h[_0x1a1667(0x21e)]:return _0x14e593(Ve,{});case h[_0x1a1667(0x201)]:return _0x14e593(Ue,{'coordinator':_0x4748cb});default:return null;}}function Fe(_0x6a7302){var _0xf6885d=_0x5d9347;const {coordinator:_0x4c3fc1}=_0x6a7302;return _0x458d04(_0x4df0c0,{'children':[_0x14e593(_0xf6885d(0x241),{'className':_0xf6885d(0x1f8),'children':_0xf6885d(0x276)}),_0x14e593(_0x30e4ae,{'onClick':()=>_0x4c3fc1['tryStartPresenting'](),'children':_0xf6885d(0x278)})]});}function He(_0x2a6e56){var _0x1c4083=_0x5d9347;const {coordinator:_0x1dfb2b}=_0x2a6e56;return _0x458d04(_0x4df0c0,{'children':[_0x14e593(_0x1c4083(0x241),{'className':_0x1c4083(0x1f8),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x14e593(_0x30e4ae,{'onClick':()=>_0x1dfb2b[_0x1c4083(0x1f9)](),'children':_0x1c4083(0x23f)})]});}function je(_0x408c74){var _0x43ebec=_0x5d9347;const {coordinator:_0x4f845e}=_0x408c74;return _0x458d04(_0x4df0c0,{'children':[_0x14e593(_0x43ebec(0x241),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x14e593(_0x30e4ae,{'variant':_0x43ebec(0x252),'onClick':()=>_0x4f845e[_0x43ebec(0x209)](),'children':_0x43ebec(0x296)})]});}function Ue(_0x324e35){var _0x410ec7=_0x5d9347;const {coordinator:_0x1a0c1b}=_0x324e35;return _0x458d04(_0x4df0c0,{'children':[_0x14e593('div',{'className':_0x410ec7(0x1f8),'children':_0x410ec7(0x289)}),_0x14e593(_0x30e4ae,{'variant':_0x410ec7(0x28d),'onClick':()=>_0x1a0c1b['stopPresenting'](),'children':_0x410ec7(0x21c)})]});}function Ve(){return _0x14e593(_0x4df0c0,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x5d9347(0x27d)],ke=(_0xe1dbd,_0xce76a9,_0x4b59c1,_0x21c23c)=>{var _0x1be1bb=_0x5d9347;for(var _0x2a20aa=_0x21c23c>0x1?void 0x0:_0x21c23c?Me(_0xce76a9,_0x4b59c1):_0xce76a9,_0x52ed60=_0xe1dbd[_0x1be1bb(0x213)]-0x1,_0x59453d;_0x52ed60>=0x0;_0x52ed60--)(_0x59453d=_0xe1dbd[_0x52ed60])&&(_0x2a20aa=_0x59453d(_0x2a20aa)||_0x2a20aa);return _0x2a20aa;},$=(_0x365632,_0x204c30)=>(_0xfccb89,_0x19b05b)=>_0x204c30(_0xfccb89,_0x19b05b,_0x365632);let b=class extends _0x1b499d{constructor(_0x4ed213,_0x4902c9){var _0x22b375=_0x5d9347;super(),this[_0x22b375(0x269)]=_0x4ed213,this[_0x22b375(0x272)]=_0x4902c9,this[_0x22b375(0x204)]();}[_0x5d9347(0x204)](){var _0x21f98a=_0x5d9347;this['disposeWithMe'](this[_0x21f98a(0x272)][_0x21f98a(0x280)](_0x2015b7[_0x21f98a(0x260)],()=>_0xec9de6(Te,this[_0x21f98a(0x269)])));}};b=ke([$(0x0,_0xf4c6bc(_0x58103d)),$(0x1,_0x22c001)],b);var Ge=Object[_0x5d9347(0x279)],We=Object[_0x5d9347(0x27d)],Ye=(_0x3ed4de,_0x137401,_0x4b6138)=>_0x137401 in _0x3ed4de?Ge(_0x3ed4de,_0x137401,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4b6138}):_0x3ed4de[_0x137401]=_0x4b6138,Be=(_0xa5c85,_0x14de2f,_0x3f85d8,_0x268db9)=>{var _0x35c3a3=_0x5d9347;for(var _0x1d37da=_0x268db9>0x1?void 0x0:_0x268db9?We(_0x14de2f,_0x3f85d8):_0x14de2f,_0x316d21=_0xa5c85[_0x35c3a3(0x213)]-0x1,_0x5f0d43;_0x316d21>=0x0;_0x316d21--)(_0x5f0d43=_0xa5c85[_0x316d21])&&(_0x1d37da=_0x5f0d43(_0x1d37da)||_0x1d37da);return _0x1d37da;},F=(_0x3faacb,_0xc01c94)=>(_0xccaf24,_0x2a6b83)=>_0xc01c94(_0xccaf24,_0x2a6b83,_0x3faacb),J=(_0x43ff03,_0xf3ce53,_0x183ac1)=>Ye(_0x43ff03,typeof _0xf3ce53!=_0x5d9347(0x299)?_0xf3ce53+'':_0xf3ce53,_0x183ac1);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x42940a{constructor(_0x2a6059=T,_0x56f3be,_0x2328b2){var _0x35ba05=_0x5d9347;super(),this[_0x35ba05(0x27e)]=_0x2a6059,this[_0x35ba05(0x269)]=_0x56f3be,this[_0x35ba05(0x22a)]=_0x2328b2;const {..._0x5d29a2}=_0x3945fc({},T,this[_0x35ba05(0x27e)]);this[_0x35ba05(0x22a)]['setConfig'](Oe,_0x5d29a2);}['onStarting'](){var _0x2c8dd7=_0x5d9347;_0x2bca35(this['_injector'],_0x54dac0([[L],[I],[m],[b]],this[_0x2c8dd7(0x27e)][_0x2c8dd7(0x208)])),_0x3e0e7b(this[_0x2c8dd7(0x269)],[[m]]);}[_0x5d9347(0x27a)](){_0x3e0e7b(this['_injector'],[[b]]);}};J(O,'type',_0x1b1d71['UNIVER_UNKNOWN']),J(O,_0x5d9347(0x232),Ze),O=Be([_0x1f205f(_0x1442f5),F(0x1,_0xf4c6bc(_0x58103d)),F(0x2,_0x15f64d)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
|
1
|
+
var _0x1ff1a2=_0x22c1;(function(_0x35f696,_0x45e9e9){var _0x3923c9=_0x22c1,_0x1011bf=_0x35f696();while(!![]){try{var _0x5c7446=-parseInt(_0x3923c9(0x151))/0x1*(parseInt(_0x3923c9(0x15d))/0x2)+-parseInt(_0x3923c9(0x15e))/0x3+-parseInt(_0x3923c9(0x10b))/0x4+parseInt(_0x3923c9(0x140))/0x5*(-parseInt(_0x3923c9(0x109))/0x6)+parseInt(_0x3923c9(0x127))/0x7+-parseInt(_0x3923c9(0x13b))/0x8*(parseInt(_0x3923c9(0x194))/0x9)+-parseInt(_0x3923c9(0x196))/0xa*(-parseInt(_0x3923c9(0x14b))/0xb);if(_0x5c7446===_0x45e9e9)break;else _0x1011bf['push'](_0x1011bf['shift']());}catch(_0x65dcef){_0x1011bf['push'](_0x1011bf['shift']());}}}(_0x27ca,0xa1587));var q=Object[_0x1ff1a2(0x188)],z=(_0x4d4780,_0x285e8b,_0x31623d)=>_0x285e8b in _0x4d4780?q(_0x4d4780,_0x285e8b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x31623d}):_0x4d4780[_0x285e8b]=_0x31623d,d=(_0x130ecc,_0x44500d,_0x3dbd18)=>z(_0x130ecc,typeof _0x44500d!=_0x1ff1a2(0x12d)?_0x44500d+'':_0x44500d,_0x3dbd18);import{CollaborationSessionService as _0x1127a7,SessionStatus as _0x5290d1,UniverCollaborationClientPlugin as _0x2c6185}from'@univerjs-pro/collaboration-client';import{Disposable as _0x29220f,toDisposable as _0x1d67cf,Inject as _0x483899,IUniverInstanceService as _0x48e571,Injector as _0x334295,IConfigService as _0x229618,ICommandService as _0x59ff0d,RxDisposable as _0x3b5bde,UniverInstanceType as _0x364c1d,DisposableCollection as _0x4c4fe1,CommandType as _0x1641f1,DependentOn as _0x8e9b8a,Plugin as _0x1993ba,merge as _0x4c21bc,registerDependencies as _0x5e3490,mergeOverrideWithDependencies as _0x27c800,touchDependencies as _0x3a2ff7}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x46d4ed,InsertSheetMutation as _0x10b772}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x134894,SetScrollOperation as _0x555f63}from'@univerjs/sheets-ui';import{useDependency as _0x38b656,useObservable as _0x48282a,IUIPartsService as _0x281f7f,BuiltInUIPart as _0x1bbf6a,connectInjector as _0x24e830}from'@univerjs/ui';import{jsx as _0x174d70,jsxs as _0x5048be,Fragment as _0x67d0fb}from'react/jsx-runtime';import{Dropdown as _0x2b2b6c,clsx as _0x22711e,Button as _0x38bd9d}from'@univerjs/design';import{forwardRef as _0x1bddfa,useRef as _0x30f6b4,createElement as _0x418354,useState as _0x347517,useEffect as _0x268f44}from'react';import{CollaborationEvent as _0x4b85f5,parseProtocolChangeset as _0x38523f}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x5022f2,Subject as _0x393ea6}from'rxjs';import{takeUntil as _0x1a1ba3,throttleTime as _0x1ddfb5}from'rxjs/operators';const Oe=_0x1ff1a2(0x11f),T={};class L extends _0x29220f{constructor(){var _0x4150c5=_0x1ff1a2;super(...arguments),d(this,_0x4150c5(0x15f),new Set()),d(this,'_reporters',new Set());}[_0x1ff1a2(0x103)](_0x196bad){var _0x801d9a=_0x1ff1a2;return this[_0x801d9a(0x15f)][_0x801d9a(0x108)](_0x196bad),_0x1d67cf(()=>this[_0x801d9a(0x15f)][_0x801d9a(0x159)](_0x196bad));}['registerInitialStateReporter'](_0x5a69a3){var _0x3d1b7d=_0x1ff1a2;return this[_0x3d1b7d(0x113)][_0x3d1b7d(0x108)](_0x5a69a3),_0x1d67cf(()=>this['_reporters'][_0x3d1b7d(0x159)](_0x5a69a3));}[_0x1ff1a2(0x187)](_0x101688){var _0x3ae542=_0x1ff1a2;return this[_0x3ae542(0x15f)]['has'](_0x101688);}['getInitialStates'](_0x98efbd){var _0x5de05b=_0x1ff1a2;return Array[_0x5de05b(0x169)](this[_0x5de05b(0x113)])[_0x5de05b(0x12b)](_0x1a8241=>_0x1a8241(_0x98efbd));}}var Ee=Object[_0x1ff1a2(0x11b)],Ce=(_0x3e1f6e,_0x7a63ea,_0x512b22,_0x124a75)=>{for(var _0x36301b=_0x124a75>0x1?void 0x0:_0x124a75?Ee(_0x7a63ea,_0x512b22):_0x7a63ea,_0x30fcde=_0x3e1f6e['length']-0x1,_0x1d0ebb;_0x30fcde>=0x0;_0x30fcde--)(_0x1d0ebb=_0x3e1f6e[_0x30fcde])&&(_0x36301b=_0x1d0ebb(_0x36301b)||_0x36301b);return _0x36301b;},Ne=(_0x130c0f,_0x44bfe5)=>(_0x23ada6,_0x24a3c5)=>_0x44bfe5(_0x23ada6,_0x24a3c5,_0x130c0f);let m=class extends _0x29220f{constructor(_0x22ea3c){var _0xd1507=_0x1ff1a2;super(),this[_0xd1507(0x176)]=_0x22ea3c,this[_0xd1507(0x19f)]();}[_0x1ff1a2(0x19f)](){var _0x2b6a3a=_0x1ff1a2;[_0x134894['id'],_0x555f63['id'],_0x46d4ed['id']][_0x2b6a3a(0x148)](_0x330184=>{var _0x46d262=_0x2b6a3a;this[_0x46d262(0x16d)](this[_0x46d262(0x176)][_0x46d262(0x103)](_0x330184));});}};m=Ce([Ne(0x0,_0x483899(L))],m);var c=function(){var _0x712e50=_0x1ff1a2;return c=Object[_0x712e50(0x135)]||function(_0x2fc7e4){var _0x39bc21=_0x712e50;for(var _0x364040,_0xa2bdea=0x1,_0x4644e6=arguments[_0x39bc21(0x19b)];_0xa2bdea<_0x4644e6;_0xa2bdea++){_0x364040=arguments[_0xa2bdea];for(var _0x154ba6 in _0x364040)Object[_0x39bc21(0x11a)][_0x39bc21(0x13c)][_0x39bc21(0x174)](_0x364040,_0x154ba6)&&(_0x2fc7e4[_0x154ba6]=_0x364040[_0x154ba6]);}return _0x2fc7e4;},c[_0x712e50(0x12a)](this,arguments);},we=function(_0x50d818,_0x2df38d){var _0x5f53e6=_0x1ff1a2,_0x44bcc4={};for(var _0x4344a2 in _0x50d818)Object[_0x5f53e6(0x11a)][_0x5f53e6(0x13c)][_0x5f53e6(0x174)](_0x50d818,_0x4344a2)&&_0x2df38d[_0x5f53e6(0x120)](_0x4344a2)<0x0&&(_0x44bcc4[_0x4344a2]=_0x50d818[_0x4344a2]);if(_0x50d818!=null&&typeof Object['getOwnPropertySymbols']==_0x5f53e6(0x105)){for(var _0x1460b5=0x0,_0x4344a2=Object['getOwnPropertySymbols'](_0x50d818);_0x1460b5<_0x4344a2[_0x5f53e6(0x19b)];_0x1460b5++)_0x2df38d[_0x5f53e6(0x120)](_0x4344a2[_0x1460b5])<0x0&&Object[_0x5f53e6(0x11a)][_0x5f53e6(0x1ad)][_0x5f53e6(0x174)](_0x50d818,_0x4344a2[_0x1460b5])&&(_0x44bcc4[_0x4344a2[_0x1460b5]]=_0x50d818[_0x4344a2[_0x1460b5]]);}return _0x44bcc4;},W=_0x1bddfa(function(_0x471888,_0x43c419){var _0x4b2d6d=_0x1ff1a2,_0x30307e=_0x471888[_0x4b2d6d(0x1a7)],_0x4d2197=_0x471888['id'],_0x492c3c=_0x471888[_0x4b2d6d(0x134)],_0x5cd1d9=_0x471888[_0x4b2d6d(0x1a9)],_0x30bb3d=we(_0x471888,[_0x4b2d6d(0x1a7),'id','className',_0x4b2d6d(0x1a9)]),_0x361872='univerjs-icon\x20univerjs-icon-'[_0x4b2d6d(0x16c)](_0x4d2197,'\x20')[_0x4b2d6d(0x16c)](_0x492c3c||'')[_0x4b2d6d(0x156)](),_0x50dfe7=_0x30f6b4('_'[_0x4b2d6d(0x16c)](Le()));return Y(_0x30307e,''['concat'](_0x4d2197),{'defIds':_0x30307e[_0x4b2d6d(0x130)],'idSuffix':_0x50dfe7[_0x4b2d6d(0x136)]},c({'ref':_0x43c419,'className':_0x361872},_0x30bb3d),_0x5cd1d9);});function Y(_0x4a1cf6,_0x4e309d,_0x1a120f,_0x3ac307,_0xb5004e){var _0x10ec22=_0x1ff1a2;return _0x418354(_0x4a1cf6[_0x10ec22(0x17d)],c(c({'key':_0x4e309d},De(_0x4a1cf6,_0x1a120f,_0xb5004e)),_0x3ac307),(xe(_0x4a1cf6,_0x1a120f)[_0x10ec22(0x1a0)]||[])[_0x10ec22(0x12b)](function(_0x222789,_0x95746){var _0x5ee542=_0x10ec22;return Y(_0x222789,''[_0x5ee542(0x16c)](_0x4e309d,'-')[_0x5ee542(0x16c)](_0x4a1cf6['tag'],'-')['concat'](_0x95746),_0x1a120f,void 0x0,_0xb5004e);}));}function De(_0x55e87a,_0x5b314e,_0x562cc8){var _0x97fb8b=_0x1ff1a2,_0x340d4f=c({},_0x55e87a['attrs']);_0x562cc8!=null&&_0x562cc8[_0x97fb8b(0x185)]&&_0x340d4f[_0x97fb8b(0x162)]===_0x97fb8b(0x185)&&(_0x340d4f[_0x97fb8b(0x162)]=_0x562cc8[_0x97fb8b(0x185)]),_0x55e87a[_0x97fb8b(0x17d)]===_0x97fb8b(0x181)&&_0x340d4f['id']&&(_0x340d4f['id']=_0x340d4f['id']+_0x5b314e[_0x97fb8b(0x1aa)]),Object[_0x97fb8b(0x175)](_0x340d4f)[_0x97fb8b(0x148)](function(_0x22c399){var _0x4b462f=_0x97fb8b,_0x5f231d=_0x22c399[0x0],_0x26c733=_0x22c399[0x1];_0x5f231d===_0x4b462f(0x181)&&typeof _0x26c733==_0x4b462f(0x139)&&(_0x340d4f[_0x5f231d]=_0x26c733[_0x4b462f(0x172)](/url\(#(.*)\)/,_0x4b462f(0x1ac)['concat'](_0x5b314e[_0x4b462f(0x1aa)],')')));});var _0x59bbab=_0x5b314e['defIds'];return!_0x59bbab||_0x59bbab['length']===0x0||(_0x55e87a[_0x97fb8b(0x17d)]===_0x97fb8b(0x12c)&&_0x340d4f[_0x97fb8b(0x168)]&&(_0x340d4f[_0x97fb8b(0x168)]=_0x340d4f[_0x97fb8b(0x168)]+_0x5b314e[_0x97fb8b(0x1aa)]),Object['entries'](_0x340d4f)['forEach'](function(_0x573784){var _0x235a83=_0x97fb8b,_0x84902a=_0x573784[0x0],_0x37a34b=_0x573784[0x1];typeof _0x37a34b==_0x235a83(0x139)&&(_0x340d4f[_0x84902a]=_0x37a34b[_0x235a83(0x172)](/url\(#(.*)\)/,_0x235a83(0x1ac)[_0x235a83(0x16c)](_0x5b314e[_0x235a83(0x1aa)],')')));})),_0x340d4f;}function xe(_0x44ea0f,_0x5713d4){var _0x38eb5d=_0x1ff1a2,_0x1a412a,_0x215993=_0x5713d4[_0x38eb5d(0x130)];return!_0x215993||_0x215993[_0x38eb5d(0x19b)]===0x0?_0x44ea0f:_0x44ea0f[_0x38eb5d(0x17d)]==='defs'&&(!((_0x1a412a=_0x44ea0f[_0x38eb5d(0x1a0)])===null||_0x1a412a===void 0x0)&&_0x1a412a[_0x38eb5d(0x19b)])?c(c({},_0x44ea0f),{'children':_0x44ea0f['children']['map'](function(_0x41ad08){var _0x1250ec=_0x38eb5d;return typeof _0x41ad08[_0x1250ec(0x199)]['id']=='string'&&_0x215993&&_0x215993[_0x1250ec(0x120)](_0x41ad08[_0x1250ec(0x199)]['id'])>-0x1?c(c({},_0x41ad08),{'attrs':c(c({},_0x41ad08['attrs']),{'id':_0x41ad08['attrs']['id']+_0x5713d4[_0x1250ec(0x1aa)]})}):_0x41ad08;})}):_0x44ea0f;}function Le(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}W[_0x1ff1a2(0x124)]='UniverIcon';var ye={'tag':'svg','attrs':{'fill':_0x1ff1a2(0x102),'viewBox':_0x1ff1a2(0x1a2),'width':_0x1ff1a2(0x198),'height':_0x1ff1a2(0x198)},'children':[{'tag':'path','attrs':{'fill':_0x1ff1a2(0x184),'d':_0x1ff1a2(0x160)}},{'tag':_0x1ff1a2(0x149),'attrs':{'fill':_0x1ff1a2(0x184),'d':_0x1ff1a2(0x146),'fillRule':'evenodd','clipRule':_0x1ff1a2(0x106)}}]},B=_0x1bddfa(function(_0x5d1c5a,_0x5871ba){var _0x25de7c=_0x1ff1a2;return _0x418354(W,Object[_0x25de7c(0x135)]({},_0x5d1c5a,{'id':_0x25de7c(0x15a),'ref':_0x5871ba,'icon':ye}));});B[_0x1ff1a2(0x124)]=_0x1ff1a2(0x143);var Re=Object[_0x1ff1a2(0x11b)],Z=(_0x3ddef3,_0x4956ea,_0x354677,_0x593d59)=>{var _0x29ea4d=_0x1ff1a2;for(var _0x12e556=_0x593d59>0x1?void 0x0:_0x593d59?Re(_0x4956ea,_0x354677):_0x4956ea,_0x2f852a=_0x3ddef3[_0x29ea4d(0x19b)]-0x1,_0x53d2ef;_0x2f852a>=0x0;_0x2f852a--)(_0x53d2ef=_0x3ddef3[_0x2f852a])&&(_0x12e556=_0x53d2ef(_0x12e556)||_0x12e556);return _0x12e556;},f=(_0x389c35,_0x1464c1)=>(_0x1f9422,_0xcd6ab3)=>_0x1464c1(_0x1f9422,_0xcd6ab3,_0x389c35);let I=class extends _0x3b5bde{constructor(_0x52c53e,_0x3600c1,_0x15a3e2){var _0x5a331e=_0x1ff1a2;super(),d(this,_0x5a331e(0x18e),new Map()),(this[_0x5a331e(0x157)]=_0x52c53e,this[_0x5a331e(0x111)]=_0x3600c1,this[_0x5a331e(0x1a6)]=_0x15a3e2,this['_init']());}async[_0x1ff1a2(0x14e)](_0x400dc5){var _0x194710=_0x1ff1a2;return this[_0x194710(0x18e)]['has'](_0x400dc5)||await this['_startLiveShareCoordinator'](_0x400dc5),this[_0x194710(0x18e)][_0x194710(0x165)](_0x400dc5);}['_init'](){var _0x5f0672=_0x1ff1a2;this[_0x5f0672(0x157)][_0x5f0672(0x17a)](_0x364c1d[_0x5f0672(0x153)])['pipe'](_0x1a1ba3(this[_0x5f0672(0x121)]))['subscribe'](async _0x5cf770=>{var _0x532c4c=_0x5f0672;const _0x4cc99c=_0x5cf770[_0x532c4c(0x183)]();this[_0x532c4c(0x18e)][_0x532c4c(0x17e)](_0x4cc99c)||this[_0x532c4c(0x101)](_0x4cc99c);}),this[_0x5f0672(0x157)][_0x5f0672(0x126)](_0x364c1d[_0x5f0672(0x153)])[_0x5f0672(0x132)](_0x1a1ba3(this[_0x5f0672(0x121)]))[_0x5f0672(0x138)](_0x5984c9=>{var _0x11e4d7=_0x5f0672;const _0x674b40=_0x5984c9['getUnitId'](),_0x34acd3=this[_0x11e4d7(0x18e)][_0x11e4d7(0x165)](_0x674b40);_0x34acd3==null||_0x34acd3['dispose']();});}async[_0x1ff1a2(0x101)](_0x57fec4){var _0x1ea5b1=_0x1ff1a2;const _0x1a56f1=await this[_0x1ea5b1(0x1a6)]['requireSession'](_0x57fec4),_0x45fcac=this[_0x1ea5b1(0x111)][_0x1ea5b1(0x11e)](w,_0x57fec4,_0x1a56f1);return _0x45fcac[_0x1ea5b1(0x1a4)](),this[_0x1ea5b1(0x18e)][_0x1ea5b1(0x191)](_0x57fec4,_0x45fcac),_0x45fcac;}};I=Z([f(0x0,_0x48e571),f(0x1,_0x483899(_0x334295)),f(0x2,_0x483899(_0x1127a7))],I);var h=(_0x6d3d7=>(_0x6d3d7[_0x1ff1a2(0x179)]='offline',_0x6d3d7['IDLE']='idle',_0x6d3d7[_0x1ff1a2(0x119)]=_0x1ff1a2(0x10c),_0x6d3d7['NOT_FOLLOWING']=_0x1ff1a2(0x118),_0x6d3d7[_0x1ff1a2(0x12f)]='presenting',_0x6d3d7))(h||{});const Pe=_0x1ff1a2(0x186),Ae=0xc8;let w=class extends _0x3b5bde{constructor(_0x316ffb,_0x1d0e05,_0x7b3d8d,_0x482088,_0x5c7de7){var _0x2a55a2=_0x1ff1a2;super(),d(this,_0x2a55a2(0x16f),new _0x5022f2(_0x2a55a2(0x107))),d(this,_0x2a55a2(0x15c),this[_0x2a55a2(0x16f)][_0x2a55a2(0x142)]()),d(this,_0x2a55a2(0x19f),!0x1),d(this,_0x2a55a2(0x170),null),d(this,_0x2a55a2(0x100),null),(this[_0x2a55a2(0x152)]=_0x316ffb,this[_0x2a55a2(0x16a)]=_0x1d0e05,this[_0x2a55a2(0x14a)]=_0x7b3d8d,this['_liveShareService']=_0x482088,this[_0x2a55a2(0x17c)]=_0x5c7de7);}get['_status'](){var _0x93a2f8=_0x1ff1a2;return this[_0x93a2f8(0x16f)][_0x93a2f8(0x18a)]();}[_0x1ff1a2(0x1ab)](){var _0x41a952=_0x1ff1a2,_0x11a07d;(_0x11a07d=this[_0x41a952(0x170)])==null||_0x11a07d[_0x41a952(0x1ab)](),this[_0x41a952(0x16f)][_0x41a952(0x177)](_0x41a952(0x107)),this[_0x41a952(0x16f)][_0x41a952(0x15b)]();}[_0x1ff1a2(0x1a4)](){var _0x53480d=_0x1ff1a2;this[_0x53480d(0x19f)]||(this[_0x53480d(0x19f)]=!0x0,this[_0x53480d(0x16a)][_0x53480d(0x164)]['pipe'](_0x1a1ba3(this[_0x53480d(0x121)]))[_0x53480d(0x138)](_0xf09693=>{var _0x1e708f=_0x53480d;switch(_0xf09693){case _0x5290d1[_0x1e708f(0x179)]:this[_0x1e708f(0x112)]();break;case _0x5290d1['ONLINE']:this[_0x1e708f(0x147)]();break;}}),this[_0x53480d(0x16a)][_0x53480d(0x125)][_0x53480d(0x132)](_0x1a1ba3(this[_0x53480d(0x121)]))[_0x53480d(0x138)](_0x11c0dc=>{var _0x28550d=_0x53480d;const {eventID:_0x29209d}=_0x11c0dc;switch(_0x29209d){case _0x4b85f5['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x11c0dc);break;case _0x4b85f5[_0x28550d(0x1ae)]:this[_0x28550d(0x16b)](_0x11c0dc);break;case _0x4b85f5['LIVESHARE_TERMINATE']:this[_0x28550d(0x13a)]();break;case _0x4b85f5[_0x28550d(0x189)]:this[_0x28550d(0x167)](_0x11c0dc);break;}}));}[_0x1ff1a2(0x154)](){var _0x15def0=_0x1ff1a2;this[_0x15def0(0x16a)][_0x15def0(0x18b)]({'eventID':_0x4b85f5[_0x15def0(0x19c)],'data':{'unitID':this[_0x15def0(0x152)],'userID':this['_collabSession'][_0x15def0(0x10e)]()}},this[_0x15def0(0x152)]);}['stopPresenting'](){var _0x3b962b=_0x1ff1a2;this[_0x3b962b(0x14f)]===_0x3b962b(0x10f)&&(this[_0x3b962b(0x16f)][_0x3b962b(0x177)](_0x3b962b(0x107)),this[_0x3b962b(0x16a)][_0x3b962b(0x18b)]({'eventID':_0x4b85f5['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x3b962b(0x152)]}},this['_unitID']));}[_0x1ff1a2(0x195)](){var _0x5bf0ce=_0x1ff1a2;this[_0x5bf0ce(0x14f)]===_0x5bf0ce(0x118)&&(this[_0x5bf0ce(0x16f)][_0x5bf0ce(0x177)](_0x5bf0ce(0x10c)),this[_0x5bf0ce(0x141)]());}[_0x1ff1a2(0x173)](){var _0x249cb3=_0x1ff1a2;this[_0x249cb3(0x14f)]==='following'&&this[_0x249cb3(0x117)]();}[_0x1ff1a2(0x131)](_0x5b5f29){var _0x7ee604=_0x1ff1a2;const {presenter:_0x184988}=_0x5b5f29[_0x7ee604(0x13f)],_0x330131=this[_0x7ee604(0x16a)]['getMemberID']();this['_presenter']=_0x184988,_0x184988===_0x330131?(this[_0x7ee604(0x117)](),this['_startPresenting']()):this[_0x7ee604(0x14f)]!==_0x7ee604(0x118)&&(this[_0x7ee604(0x158)](),this[_0x7ee604(0x141)]());}['_fetchOperations'](){var _0x57aa07=_0x1ff1a2;const _0x59e015={'eventID':_0x4b85f5[_0x57aa07(0x19e)]};this[_0x57aa07(0x16a)][_0x57aa07(0x18b)](_0x59e015,this[_0x57aa07(0x152)]);}[_0x1ff1a2(0x13a)](){var _0x5e195d=_0x1ff1a2;this['_presenter']=null,this[_0x5e195d(0x14f)]!==_0x5e195d(0x10f)&&this['_beIdle']();}['_handleNewChangeSets'](_0x283278){var _0x5253b7=_0x1ff1a2;if(this[_0x5253b7(0x14f)]===_0x5253b7(0x10c)&&this[_0x5253b7(0x100)]===_0x283278[_0x5253b7(0x13f)][_0x5253b7(0x11d)]){const _0x5d7e78=_0x38523f(_0x283278[_0x5253b7(0x13f)])[_0x5253b7(0x133)][_0x5253b7(0x190)]()[_0x5253b7(0x145)](_0x4a55e4=>_0x4a55e4['id']===_0x10b772['id']);if(_0x5d7e78){const _0xddd9cb=_0x5d7e78[_0x5253b7(0x163)]['unitId'],_0x1195e1=_0x5d7e78[_0x5253b7(0x163)][_0x5253b7(0x19a)]['id'];setTimeout(()=>{var _0x3d6950=_0x5253b7;this['_commandService'][_0x3d6950(0x1a3)](_0x46d4ed['id'],{'unitId':_0xddd9cb,'subUnitId':_0x1195e1},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x833fe1=_0x1ff1a2;this[_0x833fe1(0x16f)][_0x833fe1(0x177)]('presenting');const _0xfdf0b8=new Map(),_0xdd3d59=this[_0x833fe1(0x170)]=new _0x4c4fe1();_0xdd3d59[_0x833fe1(0x108)](_0x1d67cf(()=>{var _0x18dfec=_0x833fe1;_0xfdf0b8[_0x18dfec(0x148)](_0x1bf3e3=>_0x1bf3e3[_0x18dfec(0x15b)]()),_0xfdf0b8['clear']();})),_0xdd3d59['add'](this[_0x833fe1(0x17c)][_0x833fe1(0x137)](_0x25297a=>{var _0x2f9483=_0x833fe1,_0x4a4a3;if(_0x25297a[_0x2f9483(0x11c)]!==_0x1641f1[_0x2f9483(0x129)]||!this[_0x2f9483(0x176)][_0x2f9483(0x187)](_0x25297a['id']))return;const {id:_0x44a4cb}=_0x25297a;let _0x4cdac1;_0xfdf0b8[_0x2f9483(0x17e)](_0x44a4cb)?_0x4cdac1=_0xfdf0b8['get'](_0x44a4cb):(_0x4cdac1=new _0x393ea6(),_0xfdf0b8[_0x2f9483(0x191)](_0x44a4cb,_0x4cdac1),_0x4cdac1[_0x2f9483(0x132)](_0x1ddfb5((_0x4a4a3=this[_0x2f9483(0x14a)][_0x2f9483(0x114)](Pe))!=null?_0x4a4a3:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2f9483(0x138)](_0x48bac9=>{var _0x345bae=_0x2f9483;this[_0x345bae(0x16a)]['send']({'eventID':_0x4b85f5[_0x345bae(0x1ae)],'data':{'unitID':this['_unitID'],'operations':{[_0x48bac9['id']]:{'id':_0x48bac9['id'],'params':JSON[_0x345bae(0x116)](_0x48bac9[_0x345bae(0x163)])}}}},this[_0x345bae(0x152)]);})),_0x4cdac1[_0x2f9483(0x177)](_0x25297a);})),this[_0x833fe1(0x176)][_0x833fe1(0x18d)](this[_0x833fe1(0x152)])[_0x833fe1(0x148)](_0x5dc423=>this[_0x833fe1(0x16a)]['send']({'eventID':_0x4b85f5[_0x833fe1(0x1ae)],'data':{'unitID':this[_0x833fe1(0x152)],'operations':{[_0x5dc423['id']]:{'id':_0x5dc423['id'],'params':JSON[_0x833fe1(0x116)](_0x5dc423[_0x833fe1(0x163)])}}}},this['_unitID']));}[_0x1ff1a2(0x158)](){var _0x40717e=_0x1ff1a2,_0x376e61;this['_status$'][_0x40717e(0x177)](_0x40717e(0x107)),(_0x376e61=this['_commandDisposable'])==null||_0x376e61[_0x40717e(0x1ab)](),this[_0x40717e(0x170)]=null;}['_startFollowing'](){var _0x572c45=_0x1ff1a2,_0x2e8828;(_0x2e8828=this[_0x572c45(0x170)])==null||_0x2e8828['dispose'](),this[_0x572c45(0x16f)][_0x572c45(0x177)](_0x572c45(0x10c));}[_0x1ff1a2(0x10a)](){var _0xe7dd34=_0x1ff1a2,_0x36f564;this[_0xe7dd34(0x16f)][_0xe7dd34(0x177)]('idle'),(_0x36f564=this[_0xe7dd34(0x170)])==null||_0x36f564[_0xe7dd34(0x1ab)](),this[_0xe7dd34(0x170)]=null;}['_stopFollowing'](){var _0x39a0b7=_0x1ff1a2,_0x1f4d04;this[_0x39a0b7(0x16f)][_0x39a0b7(0x177)]('not-following'),(_0x1f4d04=this[_0x39a0b7(0x170)])==null||_0x1f4d04[_0x39a0b7(0x1ab)]();}[_0x1ff1a2(0x16b)](_0x2a2192){var _0x24d551=_0x1ff1a2;if([_0x24d551(0x10f),_0x24d551(0x118),_0x24d551(0x17b)][_0x24d551(0x193)](this['_status'])||!_0x2a2192[_0x24d551(0x13f)][_0x24d551(0x13e)]||_0x2a2192['data'][_0x24d551(0x13e)]===this['_collabSession']['getMemberID']())return;this[_0x24d551(0x14f)]==='idle'&&this[_0x24d551(0x141)]();const _0x26a4a2=_0x2a2192['data'][_0x24d551(0x19d)];Object['values'](_0x26a4a2)['forEach'](_0x303e31=>{var _0x351c56=_0x24d551;this['_commandService']['executeCommand'](_0x303e31['id'],_0x303e31[_0x351c56(0x163)]?JSON[_0x351c56(0x171)](_0x303e31[_0x351c56(0x163)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x75763a=_0x1ff1a2,_0x49798c;this[_0x75763a(0x16f)][_0x75763a(0x177)](_0x75763a(0x17b)),(_0x49798c=this[_0x75763a(0x170)])==null||_0x49798c[_0x75763a(0x1ab)]();}[_0x1ff1a2(0x147)](){var _0x27bae7=_0x1ff1a2;this['_status$'][_0x27bae7(0x177)]('idle'),this[_0x27bae7(0x104)]();}};w=Z([f(0x2,_0x229618),f(0x3,_0x483899(L)),f(0x4,_0x59ff0d)],w);function Te(){var _0x11c58d=_0x1ff1a2;const _0x592b2f=_0x38b656(I),_0x30feeb=_0x38b656(_0x48e571),_0x45ce59=_0x48282a(()=>_0x30feeb[_0x11c58d(0x13d)](_0x364c1d[_0x11c58d(0x153)]),void 0x0,!0x1,[]),[_0x1c8f47,_0xeaa0bd]=_0x347517(null),[_0x29d177,_0x1741d2]=_0x347517(h['IDLE']),_0xb8daf7=_0x30f6b4(null);return _0x268f44(()=>(_0x45ce59&&_0x592b2f[_0x11c58d(0x14e)](_0x45ce59[_0x11c58d(0x183)]())[_0x11c58d(0x17f)](_0x3051d5=>{var _0x4e0d13=_0x11c58d;_0xeaa0bd(_0x3051d5),_0xb8daf7[_0x4e0d13(0x136)]=_0x3051d5[_0x4e0d13(0x15c)][_0x4e0d13(0x138)](_0x36b496=>{_0x1741d2(_0x36b496);});}),()=>{var _0x445cd5=_0x11c58d,_0x1f267a;(_0x1f267a=_0xb8daf7[_0x445cd5(0x136)])==null||_0x1f267a[_0x445cd5(0x1a5)](),_0xb8daf7[_0x445cd5(0x136)]=null;}),[_0x45ce59,_0x592b2f]),_0x1c8f47?_0x174d70(_0x2b2b6c,{'align':_0x11c58d(0x122),'disabled':_0x29d177===h['OFFLINE'],'className':_0x11c58d(0x10d),'overlay':_0x174d70($e,{'status':_0x29d177,'coordinator':_0x1c8f47}),'children':_0x174d70(_0x11c58d(0x144),{'className':_0x22711e(_0x11c58d(0x18c),{'univer-cursor-not-allowed':_0x29d177===h[_0x11c58d(0x179)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x29d177!==h['OFFLINE']}),'type':_0x11c58d(0x144),'children':_0x174d70(B,{'className':_0x11c58d(0x1a1)})})}):null;}function $e(_0x406d33){var _0x13b626=_0x1ff1a2;const {status:_0x103c55,coordinator:_0x58539e}=_0x406d33;switch(_0x103c55){case h[_0x13b626(0x192)]:return _0x174d70(Fe,{'coordinator':_0x58539e});case h['FOLLOWING']:return _0x174d70(He,{'coordinator':_0x58539e});case h[_0x13b626(0x150)]:return _0x174d70(je,{'coordinator':_0x58539e});case h[_0x13b626(0x179)]:return _0x174d70(Ve,{});case h[_0x13b626(0x12f)]:return _0x174d70(Ue,{'coordinator':_0x58539e});default:return null;}}function _0x27ca(){var _0x5a350d=['_handleNewHost','pipe','mutations','className','assign','current','onCommandExecuted','subscribe','string','_handleTerminate','1435064qBZuUF','hasOwnProperty','getCurrentTypeOfUnit$','presenter','data','1738220eqyoGn','_startFollowing','asObservable','LiveShareSingle','button','find','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','_handleOnline','forEach','path','_configService','1236213RTcvmN','UNIVER_UNKNOWN','override','getLiveShareCoordinator','_status','NOT_FOLLOWING','4481VMAmOE','_unitID','UNIVER_SHEET','tryStartPresenting','univer-w-full\x20univer-mb-3\x20univer-text-sm','trim','_univerInstanceService','_stopPresenting','delete','live-share-single','complete','status$','134wrRsio','2838468njoeEx','_sharedOperations','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','Stop\x20presenting','fill','params','sessionStatus$','get','onStarting','_handleNewChangeSets','xlink:href','from','_collabSession','_handleOperation','concat','disposeWithMe','onRendered','_status$','_commandDisposable','parse','replace','stopFollowing','call','entries','_liveShareService','next','stopPresenting','OFFLINE','getTypeOfUnitAdded$','offline','_commandService','tag','has','then','_config','mask','pluginName','getUnitId','currentColor','colorChannel1','SAME_OPERATION_SHARE_INTERVAL','shouldShareOperation','defineProperty','NEW_CHANGESETS','getValue','send','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','getInitialStates','_entities','text','reverse','set','IDLE','includes','45PrCdye','startFollowing','250KUQscP','_uiPartsService','1em','attrs','sheet','length','LIVESHARE_REQUEST_HOST','operations','LIVESHARE_FETCH_OPERATIONS','_init','children','univer-size-4','0\x200\x2016\x2016','executeCommand','init','unsubscribe','_collabSessionService','icon','You\x27re\x20following\x20the\x20presenter','extend','idSuffix','dispose','url(#$1','propertyIsEnumerable','LIVESHARE_OPERATION','_presenter','_startLiveShareCoordinator','none','registerSharedOperation','_fetchOperations','function','evenodd','idle','add','6QDIqwS','_beIdle','230404ZinzoQ','following','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','getMemberID','presenting','_mountLiveShare','_injector','_handleOffline','_reporters','getConfig','div','stringify','_stopFollowing','not-following','FOLLOWING','prototype','getOwnPropertyDescriptor','type','memberID','createInstance','live-share.config','indexOf','dispose$','end','registerComponent','displayName','event$','getTypeOfUnitDisposed$','2798873jgxTTH','You\x27re\x20presenting\x20the\x20document','OPERATION','apply','map','use','symbol','HEADER_MENU','PRESENTING','defIds'];_0x27ca=function(){return _0x5a350d;};return _0x27ca();}function Fe(_0x506560){var _0x2c4f64=_0x1ff1a2;const {coordinator:_0x1d6d3f}=_0x506560;return _0x5048be(_0x67d0fb,{'children':[_0x174d70(_0x2c4f64(0x115),{'className':_0x2c4f64(0x155),'children':'Present\x20this\x20document'}),_0x174d70(_0x38bd9d,{'onClick':()=>_0x1d6d3f[_0x2c4f64(0x154)](),'children':'Start'})]});}function He(_0x220fe3){var _0x8ae6c2=_0x1ff1a2;const {coordinator:_0x5bbcfc}=_0x220fe3;return _0x5048be(_0x67d0fb,{'children':[_0x174d70(_0x8ae6c2(0x115),{'className':_0x8ae6c2(0x155),'children':_0x8ae6c2(0x1a8)}),_0x174d70(_0x38bd9d,{'onClick':()=>_0x5bbcfc[_0x8ae6c2(0x173)](),'children':'Stop\x20following'})]});}function je(_0x4cf748){var _0x5a8d53=_0x1ff1a2;const {coordinator:_0x43a2d8}=_0x4cf748;return _0x5048be(_0x67d0fb,{'children':[_0x174d70(_0x5a8d53(0x115),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x174d70(_0x38bd9d,{'variant':_0x5a8d53(0x18f),'onClick':()=>_0x43a2d8[_0x5a8d53(0x195)](),'children':'Start\x20following'})]});}function Ue(_0x3f8803){var _0x5c3985=_0x1ff1a2;const {coordinator:_0x2cf4f1}=_0x3f8803;return _0x5048be(_0x67d0fb,{'children':[_0x174d70(_0x5c3985(0x115),{'className':_0x5c3985(0x155),'children':_0x5c3985(0x128)}),_0x174d70(_0x38bd9d,{'variant':'default','onClick':()=>_0x2cf4f1[_0x5c3985(0x178)](),'children':_0x5c3985(0x161)})]});}function Ve(){return _0x174d70(_0x67d0fb,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x1ff1a2(0x11b)],ke=(_0xb49ad8,_0x4d8f23,_0x139ce1,_0x2a79f4)=>{var _0x5dbb49=_0x1ff1a2;for(var _0x1c6d92=_0x2a79f4>0x1?void 0x0:_0x2a79f4?Me(_0x4d8f23,_0x139ce1):_0x4d8f23,_0x358448=_0xb49ad8[_0x5dbb49(0x19b)]-0x1,_0x359d68;_0x358448>=0x0;_0x358448--)(_0x359d68=_0xb49ad8[_0x358448])&&(_0x1c6d92=_0x359d68(_0x1c6d92)||_0x1c6d92);return _0x1c6d92;},$=(_0x2ac3de,_0x427e6f)=>(_0x3f26c2,_0x5958a6)=>_0x427e6f(_0x3f26c2,_0x5958a6,_0x2ac3de);let b=class extends _0x29220f{constructor(_0x58c525,_0x273c58){var _0x224b14=_0x1ff1a2;super(),this['_injector']=_0x58c525,this[_0x224b14(0x197)]=_0x273c58,this[_0x224b14(0x110)]();}[_0x1ff1a2(0x110)](){var _0x52db9b=_0x1ff1a2;this[_0x52db9b(0x16d)](this[_0x52db9b(0x197)][_0x52db9b(0x123)](_0x1bbf6a[_0x52db9b(0x12e)],()=>_0x24e830(Te,this[_0x52db9b(0x111)])));}};b=ke([$(0x0,_0x483899(_0x334295)),$(0x1,_0x281f7f)],b);var Ge=Object[_0x1ff1a2(0x188)],We=Object[_0x1ff1a2(0x11b)],Ye=(_0x569c97,_0x1c194a,_0x124cbe)=>_0x1c194a in _0x569c97?Ge(_0x569c97,_0x1c194a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x124cbe}):_0x569c97[_0x1c194a]=_0x124cbe,Be=(_0x3c9931,_0x9e5787,_0x32e8e6,_0x225f9e)=>{for(var _0x3162c9=_0x225f9e>0x1?void 0x0:_0x225f9e?We(_0x9e5787,_0x32e8e6):_0x9e5787,_0x186597=_0x3c9931['length']-0x1,_0x112c4a;_0x186597>=0x0;_0x186597--)(_0x112c4a=_0x3c9931[_0x186597])&&(_0x3162c9=_0x112c4a(_0x3162c9)||_0x3162c9);return _0x3162c9;},F=(_0x1d723b,_0x25c2e1)=>(_0xc0c8a4,_0x2867de)=>_0x25c2e1(_0xc0c8a4,_0x2867de,_0x1d723b),J=(_0x26107d,_0x42b130,_0x3144f0)=>Ye(_0x26107d,typeof _0x42b130!='symbol'?_0x42b130+'':_0x42b130,_0x3144f0);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x1993ba{constructor(_0x3b44bf=T,_0x3030f6,_0x8fd1f7){var _0x246d8c=_0x1ff1a2;super(),this[_0x246d8c(0x180)]=_0x3b44bf,this['_injector']=_0x3030f6,this[_0x246d8c(0x14a)]=_0x8fd1f7;const {..._0x33941a}=_0x4c21bc({},T,this[_0x246d8c(0x180)]);this[_0x246d8c(0x14a)]['setConfig'](Oe,_0x33941a);}[_0x1ff1a2(0x166)](){var _0x11cfac=_0x1ff1a2;_0x5e3490(this[_0x11cfac(0x111)],_0x27c800([[L],[I],[m],[b]],this[_0x11cfac(0x180)][_0x11cfac(0x14d)])),_0x3a2ff7(this[_0x11cfac(0x111)],[[m]]);}[_0x1ff1a2(0x16e)](){var _0x38d2a7=_0x1ff1a2;_0x3a2ff7(this[_0x38d2a7(0x111)],[[b]]);}};function _0x22c1(_0x4a92fb,_0x2798e5){var _0x27cab4=_0x27ca();return _0x22c1=function(_0x22c184,_0x1866f2){_0x22c184=_0x22c184-0x100;var _0x4d18e2=_0x27cab4[_0x22c184];return _0x4d18e2;},_0x22c1(_0x4a92fb,_0x2798e5);}J(O,_0x1ff1a2(0x11c),_0x364c1d[_0x1ff1a2(0x14c)]),J(O,_0x1ff1a2(0x182),Ze),O=Be([_0x8e9b8a(_0x2c6185),F(0x1,_0x483899(_0x334295)),F(0x2,_0x229618)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,w as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0xa9f8(_0x447d59,_0x1c9f03){var _0x67181c=_0x6718();return _0xa9f8=function(_0xa9f804,_0x34c29f){_0xa9f804=_0xa9f804-0x192;var _0x5d7279=_0x67181c[_0xa9f804];return _0x5d7279;},_0xa9f8(_0x447d59,_0x1c9f03);}(function(_0x4c03df,_0x158ffb){var _0x3fc870=_0xa9f8,_0x2d8942=_0x4c03df();while(!![]){try{var _0x3f8673=-parseInt(_0x3fc870(0x19e))/0x1+-parseInt(_0x3fc870(0x20c))/0x2*(-parseInt(_0x3fc870(0x274))/0x3)+parseInt(_0x3fc870(0x1cd))/0x4*(-parseInt(_0x3fc870(0x284))/0x5)+parseInt(_0x3fc870(0x255))/0x6+parseInt(_0x3fc870(0x1b4))/0x7*(-parseInt(_0x3fc870(0x256))/0x8)+parseInt(_0x3fc870(0x1e8))/0x9*(parseInt(_0x3fc870(0x218))/0xa)+parseInt(_0x3fc870(0x1c5))/0xb;if(_0x3f8673===_0x158ffb)break;else _0x2d8942['push'](_0x2d8942['shift']());}catch(_0x566c92){_0x2d8942['push'](_0x2d8942['shift']());}}}(_0x6718,0x24af9),function(_0x10a2d7,_0x361a24){var _0xf2f5b4=_0xa9f8;typeof exports==_0xf2f5b4(0x246)&&typeof module<'u'?_0x361a24(exports,require(_0xf2f5b4(0x1a1)),require(_0xf2f5b4(0x1ba)),require('@univerjs/sheets'),require(_0xf2f5b4(0x282)),require(_0xf2f5b4(0x1b7)),require(_0xf2f5b4(0x212)),require(_0xf2f5b4(0x1c1)),require('react'),require(_0xf2f5b4(0x278)),require(_0xf2f5b4(0x236)),require(_0xf2f5b4(0x22a))):typeof define==_0xf2f5b4(0x1f7)&&define['amd']?define(['exports',_0xf2f5b4(0x1a1),_0xf2f5b4(0x1ba),_0xf2f5b4(0x277),'@univerjs/sheets-ui',_0xf2f5b4(0x1b7),_0xf2f5b4(0x212),_0xf2f5b4(0x1c1),_0xf2f5b4(0x25f),_0xf2f5b4(0x278),_0xf2f5b4(0x236),'rxjs/operators'],_0x361a24):(_0x10a2d7=typeof globalThis<'u'?globalThis:_0x10a2d7||self,_0x361a24(_0x10a2d7[_0xf2f5b4(0x20d)]={},_0x10a2d7[_0xf2f5b4(0x19c)],_0x10a2d7[_0xf2f5b4(0x271)],_0x10a2d7[_0xf2f5b4(0x192)],_0x10a2d7[_0xf2f5b4(0x272)],_0x10a2d7['UniverUi'],_0x10a2d7['React'],_0x10a2d7[_0xf2f5b4(0x285)],_0x10a2d7[_0xf2f5b4(0x22b)],_0x10a2d7[_0xf2f5b4(0x1b5)],_0x10a2d7[_0xf2f5b4(0x236)],_0x10a2d7[_0xf2f5b4(0x236)][_0xf2f5b4(0x25a)]));}(this,function(_0x18426b,_0x2a75f5,_0x23c0bc,_0x3d90cb,_0x5bb537,_0xac2ef8,_0x1a4230,_0x3ff39e,_0x14ccb2,_0xf36e76,_0xf53d8f,_0x728467){'use strict';var _0x586962=_0xa9f8;var _0x24d449=Object['defineProperty'],_0x25a9af=(_0x1bb5aa,_0x3158e3,_0x1f8dfb)=>_0x3158e3 in _0x1bb5aa?_0x24d449(_0x1bb5aa,_0x3158e3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f8dfb}):_0x1bb5aa[_0x3158e3]=_0x1f8dfb,_0x3784f0=(_0x576174,_0x5817a2,_0x237b11)=>_0x25a9af(_0x576174,typeof _0x5817a2!=_0x586962(0x235)?_0x5817a2+'':_0x5817a2,_0x237b11);const _0x3996a0=_0x586962(0x228),_0x55d46e={};class _0x487acb extends _0x23c0bc[_0x586962(0x1be)]{constructor(){super(...arguments),_0x3784f0(this,'_sharedOperations',new Set()),_0x3784f0(this,'_reporters',new Set());}[_0x586962(0x245)](_0x30be01){var _0x504fcd=_0x586962;return this[_0x504fcd(0x260)][_0x504fcd(0x26e)](_0x30be01),_0x23c0bc[_0x504fcd(0x1ac)](()=>this['_sharedOperations']['delete'](_0x30be01));}['registerInitialStateReporter'](_0x552cc8){var _0x56f205=_0x586962;return this[_0x56f205(0x248)][_0x56f205(0x26e)](_0x552cc8),_0x23c0bc[_0x56f205(0x1ac)](()=>this[_0x56f205(0x248)][_0x56f205(0x201)](_0x552cc8));}[_0x586962(0x1bf)](_0x21402c){var _0x1be1a9=_0x586962;return this['_sharedOperations'][_0x1be1a9(0x25b)](_0x21402c);}[_0x586962(0x229)](_0x57f25a){var _0x215b64=_0x586962;return Array[_0x215b64(0x1b6)](this['_reporters'])[_0x215b64(0x243)](_0x5ef4ee=>_0x5ef4ee(_0x57f25a));}}var _0x3d6e0c=Object[_0x586962(0x1e6)],_0x7e3975=(_0x18af7f,_0x480b29,_0x2cdcd9,_0x47d0e5)=>{for(var _0x4ed7f4=_0x47d0e5>0x1?void 0x0:_0x47d0e5?_0x3d6e0c(_0x480b29,_0x2cdcd9):_0x480b29,_0x2f5237=_0x18af7f['length']-0x1,_0x470468;_0x2f5237>=0x0;_0x2f5237--)(_0x470468=_0x18af7f[_0x2f5237])&&(_0x4ed7f4=_0x470468(_0x4ed7f4)||_0x4ed7f4);return _0x4ed7f4;},_0xc4b87e=(_0x78933c,_0x4dec45)=>(_0x5c3051,_0x44252c)=>_0x4dec45(_0x5c3051,_0x44252c,_0x78933c);let _0xf02daa=class extends _0x23c0bc[_0x586962(0x1be)]{constructor(_0x2a00f5){var _0x7fd157=_0x586962;super(),this['_liveShareService']=_0x2a00f5,this[_0x7fd157(0x208)]();}[_0x586962(0x208)](){var _0x6f77c3=_0x586962;[_0x5bb537[_0x6f77c3(0x1a5)]['id'],_0x5bb537[_0x6f77c3(0x1b9)]['id'],_0x3d90cb[_0x6f77c3(0x21e)]['id']][_0x6f77c3(0x281)](_0x4d5b2f=>{var _0x21743e=_0x6f77c3;this['disposeWithMe'](this[_0x21743e(0x26d)][_0x21743e(0x245)](_0x4d5b2f));});}};_0xf02daa=_0x7e3975([_0xc4b87e(0x0,_0x23c0bc[_0x586962(0x254)](_0x487acb))],_0xf02daa);var _0x490187=function(){var _0x5748aa=_0x586962;return _0x490187=Object[_0x5748aa(0x205)]||function(_0x4962e2){var _0x22c9b5=_0x5748aa;for(var _0x2a45e1,_0x10c04a=0x1,_0x57bcef=arguments[_0x22c9b5(0x27a)];_0x10c04a<_0x57bcef;_0x10c04a++){_0x2a45e1=arguments[_0x10c04a];for(var _0x57e3f6 in _0x2a45e1)Object['prototype'][_0x22c9b5(0x250)]['call'](_0x2a45e1,_0x57e3f6)&&(_0x4962e2[_0x57e3f6]=_0x2a45e1[_0x57e3f6]);}return _0x4962e2;},_0x490187[_0x5748aa(0x234)](this,arguments);},_0xeee36=function(_0x21fd2c,_0x1bb4de){var _0x5323ba=_0x586962,_0x2c4020={};for(var _0x1c2ba5 in _0x21fd2c)Object[_0x5323ba(0x1f8)][_0x5323ba(0x250)][_0x5323ba(0x27c)](_0x21fd2c,_0x1c2ba5)&&_0x1bb4de[_0x5323ba(0x1f2)](_0x1c2ba5)<0x0&&(_0x2c4020[_0x1c2ba5]=_0x21fd2c[_0x1c2ba5]);if(_0x21fd2c!=null&&typeof Object[_0x5323ba(0x1dc)]=='function'){for(var _0x468989=0x0,_0x1c2ba5=Object[_0x5323ba(0x1dc)](_0x21fd2c);_0x468989<_0x1c2ba5['length'];_0x468989++)_0x1bb4de[_0x5323ba(0x1f2)](_0x1c2ba5[_0x468989])<0x0&&Object[_0x5323ba(0x1f8)]['propertyIsEnumerable']['call'](_0x21fd2c,_0x1c2ba5[_0x468989])&&(_0x2c4020[_0x1c2ba5[_0x468989]]=_0x21fd2c[_0x1c2ba5[_0x468989]]);}return _0x2c4020;},_0x468147=_0x14ccb2[_0x586962(0x24a)](function(_0x2a91c8,_0xa098ad){var _0x1326db=_0x586962,_0xd7c58d=_0x2a91c8['icon'],_0x3f6c22=_0x2a91c8['id'],_0xb1b21d=_0x2a91c8[_0x1326db(0x283)],_0x39def6=_0x2a91c8[_0x1326db(0x20e)],_0x2b8c19=_0xeee36(_0x2a91c8,[_0x1326db(0x204),'id',_0x1326db(0x283),_0x1326db(0x20e)]),_0x2ed21e=_0x1326db(0x26b)[_0x1326db(0x1d2)](_0x3f6c22,'\x20')[_0x1326db(0x1d2)](_0xb1b21d||'')[_0x1326db(0x1fe)](),_0x35c492=_0x14ccb2['useRef']('_'[_0x1326db(0x1d2)](_0x1efbaa()));return _0x4c7c99(_0xd7c58d,''[_0x1326db(0x1d2)](_0x3f6c22),{'defIds':_0xd7c58d[_0x1326db(0x251)],'idSuffix':_0x35c492[_0x1326db(0x247)]},_0x490187({'ref':_0xa098ad,'className':_0x2ed21e},_0x2b8c19),_0x39def6);});function _0x4c7c99(_0x4a13ac,_0x21cb28,_0x330405,_0x5e7794,_0x508af8){var _0x404f29=_0x586962;return _0x14ccb2[_0x404f29(0x24e)](_0x4a13ac[_0x404f29(0x215)],_0x490187(_0x490187({'key':_0x21cb28},_0x5ad53e(_0x4a13ac,_0x330405,_0x508af8)),_0x5e7794),(_0x4f37ab(_0x4a13ac,_0x330405)['children']||[])[_0x404f29(0x243)](function(_0x402720,_0x372526){var _0x5ee630=_0x404f29;return _0x4c7c99(_0x402720,''['concat'](_0x21cb28,'-')['concat'](_0x4a13ac['tag'],'-')[_0x5ee630(0x1d2)](_0x372526),_0x330405,void 0x0,_0x508af8);}));}function _0x5ad53e(_0x190122,_0x13b009,_0x2e59a6){var _0x55125f=_0x586962,_0x1e386b=_0x490187({},_0x190122[_0x55125f(0x26a)]);_0x2e59a6!=null&&_0x2e59a6[_0x55125f(0x1f1)]&&_0x1e386b[_0x55125f(0x24d)]===_0x55125f(0x1f1)&&(_0x1e386b[_0x55125f(0x24d)]=_0x2e59a6[_0x55125f(0x1f1)]),_0x190122[_0x55125f(0x215)]===_0x55125f(0x19a)&&_0x1e386b['id']&&(_0x1e386b['id']=_0x1e386b['id']+_0x13b009['idSuffix']),Object[_0x55125f(0x1c2)](_0x1e386b)[_0x55125f(0x281)](function(_0x2f21b9){var _0x3433cf=_0x55125f,_0x5b1b44=_0x2f21b9[0x0],_0x1a1ec3=_0x2f21b9[0x1];_0x5b1b44===_0x3433cf(0x19a)&&typeof _0x1a1ec3==_0x3433cf(0x21c)&&(_0x1e386b[_0x5b1b44]=_0x1a1ec3[_0x3433cf(0x20f)](/url\(#(.*)\)/,_0x3433cf(0x23f)[_0x3433cf(0x1d2)](_0x13b009['idSuffix'],')')));});var _0x442ed8=_0x13b009[_0x55125f(0x251)];return!_0x442ed8||_0x442ed8['length']===0x0||(_0x190122[_0x55125f(0x215)]==='use'&&_0x1e386b[_0x55125f(0x19f)]&&(_0x1e386b['xlink:href']=_0x1e386b[_0x55125f(0x19f)]+_0x13b009[_0x55125f(0x1d1)]),Object[_0x55125f(0x1c2)](_0x1e386b)[_0x55125f(0x281)](function(_0x37809d){var _0x48fdd3=_0x55125f,_0x3409de=_0x37809d[0x0],_0x484233=_0x37809d[0x1];typeof _0x484233==_0x48fdd3(0x21c)&&(_0x1e386b[_0x3409de]=_0x484233[_0x48fdd3(0x20f)](/url\(#(.*)\)/,_0x48fdd3(0x23f)[_0x48fdd3(0x1d2)](_0x13b009[_0x48fdd3(0x1d1)],')')));})),_0x1e386b;}function _0x4f37ab(_0x14cfac,_0x371014){var _0x57fd45=_0x586962,_0x297d35,_0x56380a=_0x371014[_0x57fd45(0x251)];return!_0x56380a||_0x56380a[_0x57fd45(0x27a)]===0x0?_0x14cfac:_0x14cfac[_0x57fd45(0x215)]===_0x57fd45(0x1c6)&&(!((_0x297d35=_0x14cfac['children'])===null||_0x297d35===void 0x0)&&_0x297d35[_0x57fd45(0x27a)])?_0x490187(_0x490187({},_0x14cfac),{'children':_0x14cfac[_0x57fd45(0x280)][_0x57fd45(0x243)](function(_0x4f4aaa){var _0x5bf308=_0x57fd45;return typeof _0x4f4aaa[_0x5bf308(0x26a)]['id']=='string'&&_0x56380a&&_0x56380a['indexOf'](_0x4f4aaa['attrs']['id'])>-0x1?_0x490187(_0x490187({},_0x4f4aaa),{'attrs':_0x490187(_0x490187({},_0x4f4aaa['attrs']),{'id':_0x4f4aaa['attrs']['id']+_0x371014[_0x5bf308(0x1d1)]})}):_0x4f4aaa;})}):_0x14cfac;}function _0x1efbaa(){return Math['random']()['toString'](0x24)['substring'](0x2,0x8);}_0x468147['displayName']=_0x586962(0x1c8);var _0x3a8895={'tag':_0x586962(0x25e),'attrs':{'fill':_0x586962(0x222),'viewBox':_0x586962(0x226),'width':_0x586962(0x1f4),'height':_0x586962(0x1f4)},'children':[{'tag':_0x586962(0x221),'attrs':{'fill':'currentColor','d':'M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z'}},{'tag':'path','attrs':{'fill':_0x586962(0x209),'d':_0x586962(0x1fc),'fillRule':'evenodd','clipRule':_0x586962(0x1a7)}}]},_0x2fe734=_0x14ccb2['forwardRef'](function(_0x43fe32,_0x4f0752){var _0x2b2710=_0x586962;return _0x14ccb2[_0x2b2710(0x24e)](_0x468147,Object['assign']({},_0x43fe32,{'id':_0x2b2710(0x20b),'ref':_0x4f0752,'icon':_0x3a8895}));});_0x2fe734[_0x586962(0x194)]=_0x586962(0x224);var _0x1abe5b=Object[_0x586962(0x1e6)],_0x21500d=(_0x3f05cf,_0x4beaa6,_0x5af780,_0x2d431d)=>{var _0x3ae791=_0x586962;for(var _0x44c7b0=_0x2d431d>0x1?void 0x0:_0x2d431d?_0x1abe5b(_0x4beaa6,_0x5af780):_0x4beaa6,_0x56ee3e=_0x3f05cf[_0x3ae791(0x27a)]-0x1,_0x54d41d;_0x56ee3e>=0x0;_0x56ee3e--)(_0x54d41d=_0x3f05cf[_0x56ee3e])&&(_0x44c7b0=_0x54d41d(_0x44c7b0)||_0x44c7b0);return _0x44c7b0;},_0x39d47a=(_0x3012a6,_0x43d155)=>(_0x2539e9,_0x30a3b1)=>_0x43d155(_0x2539e9,_0x30a3b1,_0x3012a6);_0x18426b[_0x586962(0x1ea)]=class extends _0x23c0bc[_0x586962(0x210)]{constructor(_0x144f68,_0x3d265f,_0x647765){var _0x4a8692=_0x586962;super(),_0x3784f0(this,_0x4a8692(0x23b),new Map()),(this[_0x4a8692(0x200)]=_0x144f68,this['_injector']=_0x3d265f,this[_0x4a8692(0x1e3)]=_0x647765,this[_0x4a8692(0x208)]());}async[_0x586962(0x1e4)](_0x5715fc){var _0x57d9e9=_0x586962;return this[_0x57d9e9(0x23b)][_0x57d9e9(0x25b)](_0x5715fc)||await this[_0x57d9e9(0x1d5)](_0x5715fc),this[_0x57d9e9(0x23b)][_0x57d9e9(0x1bc)](_0x5715fc);}['_init'](){var _0x27e8e3=_0x586962;this[_0x27e8e3(0x200)][_0x27e8e3(0x1cf)](_0x23c0bc[_0x27e8e3(0x220)]['UNIVER_SHEET'])[_0x27e8e3(0x1d4)](_0x728467[_0x27e8e3(0x233)](this[_0x27e8e3(0x1a4)]))[_0x27e8e3(0x214)](async _0x329523=>{var _0x4e1abc=_0x27e8e3;const _0x366357=_0x329523[_0x4e1abc(0x241)]();this[_0x4e1abc(0x23b)][_0x4e1abc(0x25b)](_0x366357)||this['_startLiveShareCoordinator'](_0x366357);}),this[_0x27e8e3(0x200)][_0x27e8e3(0x203)](_0x23c0bc[_0x27e8e3(0x220)]['UNIVER_SHEET'])['pipe'](_0x728467[_0x27e8e3(0x233)](this[_0x27e8e3(0x1a4)]))[_0x27e8e3(0x214)](_0x4ea861=>{var _0x4703d2=_0x27e8e3;const _0x4db1ac=_0x4ea861[_0x4703d2(0x241)](),_0x1925bb=this[_0x4703d2(0x23b)][_0x4703d2(0x1bc)](_0x4db1ac);_0x1925bb==null||_0x1925bb['dispose']();});}async[_0x586962(0x1d5)](_0x3935c5){var _0x28f19d=_0x586962;const _0x1a4941=await this['_collabSessionService'][_0x28f19d(0x1f6)](_0x3935c5),_0x5b8a57=this['_injector'][_0x28f19d(0x1ab)](_0x18426b['LiveShareCoordinator'],_0x3935c5,_0x1a4941);return _0x5b8a57[_0x28f19d(0x1ff)](),this[_0x28f19d(0x23b)]['set'](_0x3935c5,_0x5b8a57),_0x5b8a57;}},_0x18426b['LiveShareController']=_0x21500d([_0x39d47a(0x0,_0x23c0bc[_0x586962(0x257)]),_0x39d47a(0x1,_0x23c0bc[_0x586962(0x254)](_0x23c0bc['Injector'])),_0x39d47a(0x2,_0x23c0bc[_0x586962(0x254)](_0x2a75f5[_0x586962(0x27e)]))],_0x18426b['LiveShareController']);var _0x2eafdf=(_0x58b4e5=>(_0x58b4e5[_0x586962(0x21b)]=_0x586962(0x22c),_0x58b4e5['IDLE']=_0x586962(0x267),_0x58b4e5['FOLLOWING']='following',_0x58b4e5[_0x586962(0x1f9)]=_0x586962(0x21d),_0x58b4e5['PRESENTING']='presenting',_0x58b4e5))(_0x2eafdf||{});const _0x39bf8b=_0x586962(0x1d7),_0x2c1052=0xc8;_0x18426b['LiveShareCoordinator']=class extends _0x23c0bc['RxDisposable']{constructor(_0x27fafe,_0x39e2b2,_0x253a6b,_0x29bace,_0x1c5878){var _0x1c6e9b=_0x586962;super(),_0x3784f0(this,_0x1c6e9b(0x22d),new _0xf53d8f[(_0x1c6e9b(0x1c4))](_0x1c6e9b(0x267))),_0x3784f0(this,_0x1c6e9b(0x237),this[_0x1c6e9b(0x22d)][_0x1c6e9b(0x26f)]()),_0x3784f0(this,_0x1c6e9b(0x208),!0x1),_0x3784f0(this,'_commandDisposable',null),_0x3784f0(this,_0x1c6e9b(0x223),null),(this[_0x1c6e9b(0x232)]=_0x27fafe,this[_0x1c6e9b(0x286)]=_0x39e2b2,this['_configService']=_0x253a6b,this[_0x1c6e9b(0x26d)]=_0x29bace,this[_0x1c6e9b(0x275)]=_0x1c5878);}get['_status'](){var _0x301194=_0x586962;return this[_0x301194(0x22d)][_0x301194(0x266)]();}[_0x586962(0x1df)](){var _0x1613c6=_0x586962,_0x4a4d85;(_0x4a4d85=this[_0x1613c6(0x196)])==null||_0x4a4d85[_0x1613c6(0x1df)](),this['_status$']['next'](_0x1613c6(0x267)),this['_status$'][_0x1613c6(0x23e)]();}[_0x586962(0x1ff)](){var _0x4b67ad=_0x586962;this[_0x4b67ad(0x208)]||(this['_init']=!0x0,this[_0x4b67ad(0x286)]['sessionStatus$'][_0x4b67ad(0x1d4)](_0x728467[_0x4b67ad(0x233)](this[_0x4b67ad(0x1a4)]))[_0x4b67ad(0x214)](_0x1b873d=>{var _0x4741ed=_0x4b67ad;switch(_0x1b873d){case _0x2a75f5[_0x4741ed(0x240)][_0x4741ed(0x21b)]:this['_handleOffline']();break;case _0x2a75f5[_0x4741ed(0x240)]['ONLINE']:this[_0x4741ed(0x1a0)]();break;}}),this[_0x4b67ad(0x286)][_0x4b67ad(0x230)][_0x4b67ad(0x1d4)](_0x728467[_0x4b67ad(0x233)](this[_0x4b67ad(0x1a4)]))[_0x4b67ad(0x214)](_0x5738f4=>{var _0x414bd6=_0x4b67ad;const {eventID:_0x15ebd7}=_0x5738f4;switch(_0x15ebd7){case _0xf36e76['CollaborationEvent']['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x5738f4);break;case _0xf36e76[_0x414bd6(0x206)][_0x414bd6(0x264)]:this[_0x414bd6(0x195)](_0x5738f4);break;case _0xf36e76[_0x414bd6(0x206)][_0x414bd6(0x1e5)]:this[_0x414bd6(0x1a6)]();break;case _0xf36e76[_0x414bd6(0x206)]['NEW_CHANGESETS']:this[_0x414bd6(0x1a2)](_0x5738f4);break;}}));}[_0x586962(0x253)](){var _0x35c22b=_0x586962;this[_0x35c22b(0x286)]['send']({'eventID':_0xf36e76['CollaborationEvent'][_0x35c22b(0x1e1)],'data':{'unitID':this[_0x35c22b(0x232)],'userID':this['_collabSession']['getMemberID']()}},this[_0x35c22b(0x232)]);}[_0x586962(0x270)](){var _0x387d30=_0x586962;this[_0x387d30(0x252)]===_0x387d30(0x1f3)&&(this[_0x387d30(0x22d)]['next'](_0x387d30(0x267)),this['_collabSession'][_0x387d30(0x1a8)]({'eventID':_0xf36e76[_0x387d30(0x206)][_0x387d30(0x1e5)],'data':{'unitID':this[_0x387d30(0x232)]}},this[_0x387d30(0x232)]));}['startFollowing'](){var _0x5a0064=_0x586962;this['_status']==='not-following'&&(this[_0x5a0064(0x22d)][_0x5a0064(0x1fb)](_0x5a0064(0x1c9)),this[_0x5a0064(0x276)]());}[_0x586962(0x1b2)](){var _0x4b2fc6=_0x586962;this[_0x4b2fc6(0x252)]==='following'&&this[_0x4b2fc6(0x1db)]();}[_0x586962(0x213)](_0x2fbbbb){var _0x4266c2=_0x586962;const {presenter:_0x477d74}=_0x2fbbbb[_0x4266c2(0x273)],_0x9a677a=this[_0x4266c2(0x286)][_0x4266c2(0x1cc)]();this[_0x4266c2(0x223)]=_0x477d74,_0x477d74===_0x9a677a?(this[_0x4266c2(0x1db)](),this[_0x4266c2(0x22f)]()):this[_0x4266c2(0x252)]!=='not-following'&&(this['_stopPresenting'](),this[_0x4266c2(0x276)]());}[_0x586962(0x239)](){var _0xe7c4cd=_0x586962;const _0x44af4e={'eventID':_0xf36e76['CollaborationEvent'][_0xe7c4cd(0x26c)]};this[_0xe7c4cd(0x286)][_0xe7c4cd(0x1a8)](_0x44af4e,this[_0xe7c4cd(0x232)]);}['_handleTerminate'](){var _0x245bc8=_0x586962;this['_presenter']=null,this[_0x245bc8(0x252)]!=='presenting'&&this[_0x245bc8(0x207)]();}['_handleNewChangeSets'](_0xd3a470){var _0x56e35d=_0x586962;if(this[_0x56e35d(0x252)]==='following'&&this[_0x56e35d(0x223)]===_0xd3a470[_0x56e35d(0x273)][_0x56e35d(0x1ca)]){const _0x3c8a0b=_0xf36e76[_0x56e35d(0x1a9)](_0xd3a470[_0x56e35d(0x273)])['mutations']['reverse']()[_0x56e35d(0x1ae)](_0x4dac52=>_0x4dac52['id']===_0x3d90cb[_0x56e35d(0x211)]['id']);if(_0x3c8a0b){const _0x1bb17f=_0x3c8a0b[_0x56e35d(0x1d0)][_0x56e35d(0x1e9)],_0x3f1a21=_0x3c8a0b['params'][_0x56e35d(0x1ec)]['id'];setTimeout(()=>{var _0x27af2e=_0x56e35d;this[_0x27af2e(0x275)][_0x27af2e(0x1d9)](_0x3d90cb[_0x27af2e(0x21e)]['id'],{'unitId':_0x1bb17f,'subUnitId':_0x3f1a21},{'fromCollab':!0x0});});}}}[_0x586962(0x22f)](){var _0x5ecab4=_0x586962;this[_0x5ecab4(0x22d)][_0x5ecab4(0x1fb)]('presenting');const _0x19ee3d=new Map(),_0x49bd3d=this[_0x5ecab4(0x196)]=new _0x23c0bc[(_0x5ecab4(0x1e7))]();_0x49bd3d[_0x5ecab4(0x26e)](_0x23c0bc[_0x5ecab4(0x1ac)](()=>{var _0x5927e3=_0x5ecab4;_0x19ee3d[_0x5927e3(0x281)](_0x2d68d2=>_0x2d68d2[_0x5927e3(0x23e)]()),_0x19ee3d[_0x5927e3(0x1ee)]();})),_0x49bd3d[_0x5ecab4(0x26e)](this[_0x5ecab4(0x275)][_0x5ecab4(0x265)](_0x444dae=>{var _0x2f3e24=_0x5ecab4,_0x2011e5;if(_0x444dae[_0x2f3e24(0x198)]!==_0x23c0bc[_0x2f3e24(0x21f)]['OPERATION']||!this[_0x2f3e24(0x26d)][_0x2f3e24(0x1bf)](_0x444dae['id']))return;const {id:_0x2f6c89}=_0x444dae;let _0x218b3f;_0x19ee3d['has'](_0x2f6c89)?_0x218b3f=_0x19ee3d[_0x2f3e24(0x1bc)](_0x2f6c89):(_0x218b3f=new _0xf53d8f[(_0x2f3e24(0x19b))](),_0x19ee3d['set'](_0x2f6c89,_0x218b3f),_0x218b3f['pipe'](_0x728467[_0x2f3e24(0x1ad)]((_0x2011e5=this[_0x2f3e24(0x1c0)]['getConfig'](_0x39bf8b))!=null?_0x2011e5:_0x2c1052,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x580da0=>{var _0x474a43=_0x2f3e24;this['_collabSession'][_0x474a43(0x1a8)]({'eventID':_0xf36e76['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x474a43(0x232)],'operations':{[_0x580da0['id']]:{'id':_0x580da0['id'],'params':JSON[_0x474a43(0x249)](_0x580da0[_0x474a43(0x1d0)])}}}},this[_0x474a43(0x232)]);})),_0x218b3f['next'](_0x444dae);})),this[_0x5ecab4(0x26d)]['getInitialStates'](this[_0x5ecab4(0x232)])[_0x5ecab4(0x281)](_0x5497cc=>this[_0x5ecab4(0x286)]['send']({'eventID':_0xf36e76[_0x5ecab4(0x206)][_0x5ecab4(0x264)],'data':{'unitID':this['_unitID'],'operations':{[_0x5497cc['id']]:{'id':_0x5497cc['id'],'params':JSON[_0x5ecab4(0x249)](_0x5497cc[_0x5ecab4(0x1d0)])}}}},this['_unitID']));}[_0x586962(0x1a3)](){var _0x28e6a3=_0x586962,_0x4e6ce6;this['_status$'][_0x28e6a3(0x1fb)](_0x28e6a3(0x267)),(_0x4e6ce6=this[_0x28e6a3(0x196)])==null||_0x4e6ce6['dispose'](),this[_0x28e6a3(0x196)]=null;}[_0x586962(0x276)](){var _0x17b651=_0x586962,_0x5a4de4;(_0x5a4de4=this[_0x17b651(0x196)])==null||_0x5a4de4[_0x17b651(0x1df)](),this[_0x17b651(0x22d)][_0x17b651(0x1fb)](_0x17b651(0x1c9));}['_beIdle'](){var _0xe9d5d9=_0x586962,_0x9034f;this[_0xe9d5d9(0x22d)][_0xe9d5d9(0x1fb)](_0xe9d5d9(0x267)),(_0x9034f=this[_0xe9d5d9(0x196)])==null||_0x9034f['dispose'](),this[_0xe9d5d9(0x196)]=null;}['_stopFollowing'](){var _0x5dc44=_0x586962,_0x72ea38;this[_0x5dc44(0x22d)][_0x5dc44(0x1fb)](_0x5dc44(0x21d)),(_0x72ea38=this['_commandDisposable'])==null||_0x72ea38[_0x5dc44(0x1df)]();}[_0x586962(0x195)](_0x4588e9){var _0x204531=_0x586962;if([_0x204531(0x1f3),_0x204531(0x21d),_0x204531(0x22c)][_0x204531(0x1eb)](this['_status'])||!_0x4588e9[_0x204531(0x273)][_0x204531(0x197)]||_0x4588e9['data'][_0x204531(0x197)]===this[_0x204531(0x286)]['getMemberID']())return;this[_0x204531(0x252)]===_0x204531(0x267)&&this[_0x204531(0x276)]();const _0x3b63c0=_0x4588e9[_0x204531(0x273)]['operations'];Object[_0x204531(0x262)](_0x3b63c0)['forEach'](_0x1cd8aa=>{var _0x10f3fe=_0x204531;this['_commandService'][_0x10f3fe(0x1d9)](_0x1cd8aa['id'],_0x1cd8aa[_0x10f3fe(0x1d0)]?JSON[_0x10f3fe(0x22e)](_0x1cd8aa[_0x10f3fe(0x1d0)]):null,{'fromCollab':!0x0});});}[_0x586962(0x1c7)](){var _0x464d1f=_0x586962,_0x3ef9c4;this[_0x464d1f(0x22d)]['next'](_0x464d1f(0x22c)),(_0x3ef9c4=this[_0x464d1f(0x196)])==null||_0x3ef9c4[_0x464d1f(0x1df)]();}['_handleOnline'](){var _0x18bde3=_0x586962;this['_status$'][_0x18bde3(0x1fb)]('idle'),this[_0x18bde3(0x239)]();}},_0x18426b['LiveShareCoordinator']=_0x21500d([_0x39d47a(0x2,_0x23c0bc['IConfigService']),_0x39d47a(0x3,_0x23c0bc[_0x586962(0x254)](_0x487acb)),_0x39d47a(0x4,_0x23c0bc[_0x586962(0x1b3)])],_0x18426b[_0x586962(0x225)]);function _0x7589ec(){var _0x516516=_0x586962;const _0x50aa51=_0xac2ef8['useDependency'](_0x18426b[_0x516516(0x1ea)]),_0x5c30e4=_0xac2ef8['useDependency'](_0x23c0bc[_0x516516(0x257)]),_0x1f3b73=_0xac2ef8['useObservable'](()=>_0x5c30e4['getCurrentTypeOfUnit$'](_0x23c0bc['UniverInstanceType'][_0x516516(0x1bd)]),void 0x0,!0x1,[]),[_0xdfde6b,_0x473d26]=_0x14ccb2[_0x516516(0x21a)](null),[_0x7c74d5,_0x2dc195]=_0x14ccb2[_0x516516(0x21a)](_0x2eafdf[_0x516516(0x19d)]),_0x7501aa=_0x14ccb2[_0x516516(0x1bb)](null);return _0x14ccb2['useEffect'](()=>(_0x1f3b73&&_0x50aa51[_0x516516(0x1e4)](_0x1f3b73[_0x516516(0x241)]())[_0x516516(0x27b)](_0x13e428=>{var _0x252f66=_0x516516;_0x473d26(_0x13e428),_0x7501aa[_0x252f66(0x247)]=_0x13e428[_0x252f66(0x237)][_0x252f66(0x214)](_0x500ee2=>{_0x2dc195(_0x500ee2);});}),()=>{var _0xc57eeb=_0x516516,_0x28c015;(_0x28c015=_0x7501aa[_0xc57eeb(0x247)])==null||_0x28c015[_0xc57eeb(0x20a)](),_0x7501aa[_0xc57eeb(0x247)]=null;}),[_0x1f3b73,_0x50aa51]),_0xdfde6b?_0x1a4230['jsx'](_0x3ff39e[_0x516516(0x1c3)],{'align':'end','disabled':_0x7c74d5===_0x2eafdf[_0x516516(0x21b)],'className':_0x516516(0x1da),'overlay':_0x1a4230['jsx'](_0x585727,{'status':_0x7c74d5,'coordinator':_0xdfde6b}),'children':_0x1a4230[_0x516516(0x1b8)](_0x516516(0x24c),{'className':_0x3ff39e[_0x516516(0x227)](_0x516516(0x25c),{'univer-cursor-not-allowed':_0x7c74d5===_0x2eafdf[_0x516516(0x21b)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x7c74d5!==_0x2eafdf[_0x516516(0x21b)]}),'type':'button','children':_0x1a4230[_0x516516(0x1b8)](_0x2fe734,{'className':_0x516516(0x1d8)})})}):null;}function _0x585727(_0x1db665){var _0x359f11=_0x586962;const {status:_0x34011f,coordinator:_0x1d8c07}=_0x1db665;switch(_0x34011f){case _0x2eafdf[_0x359f11(0x19d)]:return _0x1a4230[_0x359f11(0x1b8)](_0x472fff,{'coordinator':_0x1d8c07});case _0x2eafdf[_0x359f11(0x1f5)]:return _0x1a4230[_0x359f11(0x1b8)](_0x1238e0,{'coordinator':_0x1d8c07});case _0x2eafdf[_0x359f11(0x1f9)]:return _0x1a4230[_0x359f11(0x1b8)](_0x454fd9,{'coordinator':_0x1d8c07});case _0x2eafdf[_0x359f11(0x21b)]:return _0x1a4230['jsx'](_0x3da55c,{});case _0x2eafdf[_0x359f11(0x261)]:return _0x1a4230[_0x359f11(0x1b8)](_0x46778b,{'coordinator':_0x1d8c07});default:return null;}}function _0x472fff(_0xd7bf0e){var _0x5b3260=_0x586962;const {coordinator:_0x2eb5da}=_0xd7bf0e;return _0x1a4230[_0x5b3260(0x1aa)](_0x1a4230[_0x5b3260(0x25d)],{'children':[_0x1a4230[_0x5b3260(0x1b8)](_0x5b3260(0x216),{'className':_0x5b3260(0x258),'children':_0x5b3260(0x24b)}),_0x1a4230[_0x5b3260(0x1b8)](_0x3ff39e['Button'],{'onClick':()=>_0x2eb5da[_0x5b3260(0x253)](),'children':'Start'})]});}function _0x1238e0(_0x240702){var _0x15b1be=_0x586962;const {coordinator:_0x559b33}=_0x240702;return _0x1a4230[_0x15b1be(0x1aa)](_0x1a4230[_0x15b1be(0x25d)],{'children':[_0x1a4230[_0x15b1be(0x1b8)]('div',{'className':_0x15b1be(0x258),'children':_0x15b1be(0x202)}),_0x1a4230['jsx'](_0x3ff39e[_0x15b1be(0x23c)],{'onClick':()=>_0x559b33['stopFollowing'](),'children':_0x15b1be(0x219)})]});}function _0x454fd9(_0xeb98ff){var _0xa8c925=_0x586962;const {coordinator:_0x4ce6d0}=_0xeb98ff;return _0x1a4230[_0xa8c925(0x1aa)](_0x1a4230[_0xa8c925(0x25d)],{'children':[_0x1a4230['jsx'](_0xa8c925(0x216),{'className':_0xa8c925(0x258),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x1a4230[_0xa8c925(0x1b8)](_0x3ff39e['Button'],{'variant':_0xa8c925(0x193),'onClick':()=>_0x4ce6d0[_0xa8c925(0x1b0)](),'children':_0xa8c925(0x1f0)})]});}function _0x46778b(_0x82477){var _0x18c27f=_0x586962;const {coordinator:_0x574445}=_0x82477;return _0x1a4230['jsxs'](_0x1a4230[_0x18c27f(0x25d)],{'children':[_0x1a4230[_0x18c27f(0x1b8)]('div',{'className':_0x18c27f(0x258),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x1a4230['jsx'](_0x3ff39e[_0x18c27f(0x23c)],{'variant':'default','onClick':()=>_0x574445[_0x18c27f(0x270)](),'children':_0x18c27f(0x1dd)})]});}function _0x3da55c(){var _0x4e98c4=_0x586962;return _0x1a4230['jsx'](_0x1a4230[_0x4e98c4(0x25d)],{'children':_0x4e98c4(0x269)});}var _0x129080=Object[_0x586962(0x1e6)],_0x4df436=(_0x5cbb4a,_0x3f2702,_0x5a114f,_0x1e18c8)=>{for(var _0xd9f381=_0x1e18c8>0x1?void 0x0:_0x1e18c8?_0x129080(_0x3f2702,_0x5a114f):_0x3f2702,_0xd07daf=_0x5cbb4a['length']-0x1,_0x555884;_0xd07daf>=0x0;_0xd07daf--)(_0x555884=_0x5cbb4a[_0xd07daf])&&(_0xd9f381=_0x555884(_0xd9f381)||_0xd9f381);return _0xd9f381;},_0x33ddaf=(_0x2eb09c,_0x408077)=>(_0x427b1d,_0x367aac)=>_0x408077(_0x427b1d,_0x367aac,_0x2eb09c);_0x18426b[_0x586962(0x242)]=class extends _0x23c0bc[_0x586962(0x1be)]{constructor(_0x2c32de,_0x352a12){var _0x39821b=_0x586962;super(),this[_0x39821b(0x1af)]=_0x2c32de,this['_uiPartsService']=_0x352a12,this[_0x39821b(0x1ed)]();}[_0x586962(0x1ed)](){var _0x1caeee=_0x586962;this[_0x1caeee(0x1b1)](this[_0x1caeee(0x1de)][_0x1caeee(0x279)](_0xac2ef8['BuiltInUIPart'][_0x1caeee(0x1fa)],()=>_0xac2ef8[_0x1caeee(0x1d6)](_0x7589ec,this[_0x1caeee(0x1af)])));}},_0x18426b['DesktopLiveShareController']=_0x4df436([_0x33ddaf(0x0,_0x23c0bc[_0x586962(0x254)](_0x23c0bc[_0x586962(0x1cb)])),_0x33ddaf(0x1,_0xac2ef8['IUIPartsService'])],_0x18426b[_0x586962(0x242)]);var _0x36dfe0=Object[_0x586962(0x1e0)],_0x53b8df=Object[_0x586962(0x1e6)],_0x20b991=(_0x26630a,_0x1144b0,_0x1beef0)=>_0x1144b0 in _0x26630a?_0x36dfe0(_0x26630a,_0x1144b0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1beef0}):_0x26630a[_0x1144b0]=_0x1beef0,_0x283775=(_0x346a3e,_0x3da9bc,_0x532363,_0x25cabd)=>{for(var _0x680ae5=_0x25cabd>0x1?void 0x0:_0x25cabd?_0x53b8df(_0x3da9bc,_0x532363):_0x3da9bc,_0x5df240=_0x346a3e['length']-0x1,_0xca7965;_0x5df240>=0x0;_0x5df240--)(_0xca7965=_0x346a3e[_0x5df240])&&(_0x680ae5=_0xca7965(_0x680ae5)||_0x680ae5);return _0x680ae5;},_0x42c4eb=(_0x71a565,_0x4047ec)=>(_0x4cbbea,_0x11c102)=>_0x4047ec(_0x4cbbea,_0x11c102,_0x71a565),_0x1a3561=(_0x5f30e1,_0x5ba9c4,_0x8e1804)=>_0x20b991(_0x5f30e1,typeof _0x5ba9c4!=_0x586962(0x235)?_0x5ba9c4+'':_0x5ba9c4,_0x8e1804);const _0x43590b=_0x586962(0x1fd);_0x18426b[_0x586962(0x1d3)]=class extends _0x23c0bc[_0x586962(0x259)]{constructor(_0x36f3f2=_0x55d46e,_0x4280fe,_0x16a8c6){var _0x1fa899=_0x586962;super(),this[_0x1fa899(0x1ce)]=_0x36f3f2,this[_0x1fa899(0x1af)]=_0x4280fe,this['_configService']=_0x16a8c6;const {..._0x488448}=_0x23c0bc[_0x1fa899(0x231)]({},_0x55d46e,this[_0x1fa899(0x1ce)]);this['_configService'][_0x1fa899(0x244)](_0x3996a0,_0x488448);}[_0x586962(0x27f)](){var _0xf134c9=_0x586962;_0x23c0bc[_0xf134c9(0x23d)](this[_0xf134c9(0x1af)],_0x23c0bc['mergeOverrideWithDependencies']([[_0x487acb],[_0x18426b[_0xf134c9(0x1ea)]],[_0xf02daa],[_0x18426b[_0xf134c9(0x242)]]],this['_config'][_0xf134c9(0x1ef)])),_0x23c0bc[_0xf134c9(0x263)](this['_injector'],[[_0xf02daa]]);}[_0x586962(0x1e2)](){var _0x4cd30b=_0x586962;_0x23c0bc[_0x4cd30b(0x263)](this[_0x4cd30b(0x1af)],[[_0x18426b['DesktopLiveShareController']]]);}},_0x1a3561(_0x18426b[_0x586962(0x1d3)],_0x586962(0x198),_0x23c0bc[_0x586962(0x220)]['UNIVER_UNKNOWN']),_0x1a3561(_0x18426b['UniverLiveSharePlugin'],_0x586962(0x23a),_0x43590b),_0x18426b[_0x586962(0x1d3)]=_0x283775([_0x23c0bc[_0x586962(0x27d)](_0x2a75f5[_0x586962(0x199)]),_0x42c4eb(0x1,_0x23c0bc[_0x586962(0x254)](_0x23c0bc[_0x586962(0x1cb)])),_0x42c4eb(0x2,_0x23c0bc[_0x586962(0x268)])],_0x18426b[_0x586962(0x1d3)]),_0x18426b[_0x586962(0x24f)]=_0x7589ec,_0x18426b['LiveShareService']=_0x487acb,_0x18426b[_0x586962(0x217)]=_0x2eafdf,Object['defineProperty'](_0x18426b,Symbol['toStringTag'],{'value':_0x586962(0x238)});}));function _0x6718(){var _0xd1e02a=['InsertSheetMutation','react/jsx-runtime','_handleNewHost','subscribe','tag','div','LiveShareStatus','10nkaYHQ','Stop\x20following','useState','OFFLINE','string','not-following','SetWorksheetActiveOperation','CommandType','UniverInstanceType','path','none','_presenter','LiveShareSingle','LiveShareCoordinator','0\x200\x2016\x2016','clsx','live-share.config','getInitialStates','rxjs/operators','React','offline','_status$','parse','_startPresenting','event$','merge','_unitID','takeUntil','apply','symbol','rxjs','status$','Module','_fetchOperations','pluginName','_entities','Button','registerDependencies','complete','url(#$1','SessionStatus','getUnitId','DesktopLiveShareController','map','setConfig','registerSharedOperation','object','current','_reporters','stringify','forwardRef','Present\x20this\x20document','button','fill','createElement','LiveShare','hasOwnProperty','defIds','_status','tryStartPresenting','Inject','970872HIdKBY','1186696MYzQEP','IUniverInstanceService','univer-w-full\x20univer-mb-3\x20univer-text-sm','Plugin','operators','has','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','Fragment','svg','react','_sharedOperations','PRESENTING','values','touchDependencies','LIVESHARE_OPERATION','onCommandExecuted','getValue','idle','IConfigService','You\x27are\x20offline.','attrs','univerjs-icon\x20univerjs-icon-','LIVESHARE_FETCH_OPERATIONS','_liveShareService','add','asObservable','stopPresenting','UniverCore','UniverSheetsUi','data','255453xbdNGe','_commandService','_startFollowing','@univerjs/sheets','@univerjs-pro/collaboration','registerComponent','length','then','call','DependentOn','CollaborationSessionService','onStarting','children','forEach','@univerjs/sheets-ui','className','5OLSpbj','UniverDesign','_collabSession','UniverSheets','text','displayName','_handleOperation','_commandDisposable','presenter','type','UniverCollaborationClientPlugin','mask','Subject','UniverProCollaborationClient','IDLE','140901XgLnmj','xlink:href','_handleOnline','@univerjs-pro/collaboration-client','_handleNewChangeSets','_stopPresenting','dispose$','SetZoomRatioOperation','_handleTerminate','evenodd','send','parseProtocolChangeset','jsxs','createInstance','toDisposable','throttleTime','find','_injector','startFollowing','disposeWithMe','stopFollowing','ICommandService','7JWAiXk','UniverProCollaboration','from','@univerjs/ui','jsx','SetScrollOperation','@univerjs/core','useRef','get','UNIVER_SHEET','Disposable','shouldShareOperation','_configService','@univerjs/design','entries','Dropdown','BehaviorSubject','1652244KqsGwq','defs','_handleOffline','UniverIcon','following','memberID','Injector','getMemberID','847972FRZGkO','_config','getTypeOfUnitAdded$','params','idSuffix','concat','UniverLiveSharePlugin','pipe','_startLiveShareCoordinator','connectInjector','SAME_OPERATION_SHARE_INTERVAL','univer-size-4','executeCommand','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','_stopFollowing','getOwnPropertySymbols','Stop\x20presenting','_uiPartsService','dispose','defineProperty','LIVESHARE_REQUEST_HOST','onRendered','_collabSessionService','getLiveShareCoordinator','LIVESHARE_TERMINATE','getOwnPropertyDescriptor','DisposableCollection','2288961xvLgGK','unitId','LiveShareController','includes','sheet','_mountLiveShare','clear','override','Start\x20following','colorChannel1','indexOf','presenting','1em','FOLLOWING','requireSession','function','prototype','NOT_FOLLOWING','HEADER_MENU','next','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','UNIVER_LIVE_SHARE_PLUGIN','trim','init','_univerInstanceService','delete','You\x27re\x20following\x20the\x20presenter','getTypeOfUnitDisposed$','icon','assign','CollaborationEvent','_beIdle','_init','currentColor','unsubscribe','live-share-single','2JdAsik','UniverProLiveShare','extend','replace','RxDisposable'];_0x6718=function(){return _0xd1e02a;};return _0x6718();}
|
|
1
|
+
function _0xcff1(_0x3f7ecb,_0x123051){var _0xd14348=_0xd143();return _0xcff1=function(_0xcff1d2,_0x2e0289){_0xcff1d2=_0xcff1d2-0xf5;var _0x7290b=_0xd14348[_0xcff1d2];return _0x7290b;},_0xcff1(_0x3f7ecb,_0x123051);}(function(_0x2b8ae0,_0xfaf989){var _0x15680d=_0xcff1,_0x5af04f=_0x2b8ae0();while(!![]){try{var _0xdde478=parseInt(_0x15680d(0x1a6))/0x1+-parseInt(_0x15680d(0x1b5))/0x2+parseInt(_0x15680d(0x186))/0x3*(parseInt(_0x15680d(0x16f))/0x4)+parseInt(_0x15680d(0x10c))/0x5*(parseInt(_0x15680d(0x1b2))/0x6)+parseInt(_0x15680d(0x109))/0x7+-parseInt(_0x15680d(0x185))/0x8+-parseInt(_0x15680d(0x1b0))/0x9;if(_0xdde478===_0xfaf989)break;else _0x5af04f['push'](_0x5af04f['shift']());}catch(_0x3000a4){_0x5af04f['push'](_0x5af04f['shift']());}}}(_0xd143,0x7c747),function(_0x553d58,_0x53296d){var _0x458bca=_0xcff1;typeof exports=='object'&&typeof module<'u'?_0x53296d(exports,require(_0x458bca(0x122)),require('@univerjs/core'),require(_0x458bca(0x1bb)),require(_0x458bca(0x187)),require(_0x458bca(0x179)),require(_0x458bca(0x111)),require(_0x458bca(0x183)),require('react'),require(_0x458bca(0xfc)),require(_0x458bca(0x115)),require('rxjs/operators')):typeof define==_0x458bca(0x10f)&&define[_0x458bca(0x1c6)]?define([_0x458bca(0x1b8),'@univerjs-pro/collaboration-client',_0x458bca(0x128),_0x458bca(0x1bb),_0x458bca(0x187),_0x458bca(0x179),_0x458bca(0x111),_0x458bca(0x183),_0x458bca(0x17b),_0x458bca(0xfc),'rxjs',_0x458bca(0x1a0)],_0x53296d):(_0x553d58=typeof globalThis<'u'?globalThis:_0x553d58||self,_0x53296d(_0x553d58[_0x458bca(0x15e)]={},_0x553d58['UniverProCollaborationClient'],_0x553d58[_0x458bca(0x169)],_0x553d58[_0x458bca(0x1cb)],_0x553d58[_0x458bca(0x14d)],_0x553d58[_0x458bca(0x1d0)],_0x553d58[_0x458bca(0x117)],_0x553d58[_0x458bca(0x1c4)],_0x553d58[_0x458bca(0x117)],_0x553d58[_0x458bca(0x16d)],_0x553d58['rxjs'],_0x553d58['rxjs']['operators']));}(this,function(_0x3d861f,_0x11b719,_0x3dbd58,_0x4f5ad8,_0x317f21,_0x7fe9c7,_0x1bf1a5,_0x57b64a,_0x689e08,_0xc6d31d,_0x40d515,_0x55fd86){'use strict';var _0x23bb2b=_0xcff1;var _0x3fb9cb=Object[_0x23bb2b(0x161)],_0x5807a9=(_0x3468a8,_0x4b7044,_0x211b22)=>_0x4b7044 in _0x3468a8?_0x3fb9cb(_0x3468a8,_0x4b7044,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x211b22}):_0x3468a8[_0x4b7044]=_0x211b22,_0x48adf5=(_0x54d3e4,_0x2a715c,_0x7c5e5c)=>_0x5807a9(_0x54d3e4,typeof _0x2a715c!=_0x23bb2b(0x1d5)?_0x2a715c+'':_0x2a715c,_0x7c5e5c);const _0x349052=_0x23bb2b(0x18e),_0x4811d1={};class _0x3cf37c extends _0x3dbd58[_0x23bb2b(0x1a4)]{constructor(){super(...arguments),_0x48adf5(this,'_sharedOperations',new Set()),_0x48adf5(this,'_reporters',new Set());}[_0x23bb2b(0x1a3)](_0x8dd297){var _0x967e11=_0x23bb2b;return this['_sharedOperations'][_0x967e11(0x151)](_0x8dd297),_0x3dbd58[_0x967e11(0x110)](()=>this[_0x967e11(0x121)][_0x967e11(0x13e)](_0x8dd297));}['registerInitialStateReporter'](_0x35bf87){var _0x4d0fd0=_0x23bb2b;return this[_0x4d0fd0(0x114)][_0x4d0fd0(0x151)](_0x35bf87),_0x3dbd58['toDisposable'](()=>this[_0x4d0fd0(0x114)][_0x4d0fd0(0x13e)](_0x35bf87));}[_0x23bb2b(0x11d)](_0x237468){var _0x502728=_0x23bb2b;return this[_0x502728(0x121)][_0x502728(0x1cd)](_0x237468);}['getInitialStates'](_0x5b4cda){var _0x357572=_0x23bb2b;return Array[_0x357572(0x177)](this[_0x357572(0x114)])[_0x357572(0x178)](_0x407ed0=>_0x407ed0(_0x5b4cda));}}var _0x1ffe33=Object[_0x23bb2b(0x107)],_0x17ae9d=(_0x5fd218,_0x20b26a,_0x52870f,_0x3eccbb)=>{var _0x2fff42=_0x23bb2b;for(var _0x228f8b=_0x3eccbb>0x1?void 0x0:_0x3eccbb?_0x1ffe33(_0x20b26a,_0x52870f):_0x20b26a,_0x42faef=_0x5fd218[_0x2fff42(0x150)]-0x1,_0x56d389;_0x42faef>=0x0;_0x42faef--)(_0x56d389=_0x5fd218[_0x42faef])&&(_0x228f8b=_0x56d389(_0x228f8b)||_0x228f8b);return _0x228f8b;},_0x526171=(_0x2b5104,_0x1af2a2)=>(_0x2bcb54,_0x12ea85)=>_0x1af2a2(_0x2bcb54,_0x12ea85,_0x2b5104);let _0x23f086=class extends _0x3dbd58[_0x23bb2b(0x1a4)]{constructor(_0x251fb0){var _0x34b222=_0x23bb2b;super(),this[_0x34b222(0x171)]=_0x251fb0,this[_0x34b222(0x1a9)]();}[_0x23bb2b(0x1a9)](){var _0x51be70=_0x23bb2b;[_0x317f21[_0x51be70(0x16a)]['id'],_0x317f21[_0x51be70(0x1e1)]['id'],_0x4f5ad8['SetWorksheetActiveOperation']['id']][_0x51be70(0x102)](_0x4ef9f6=>{var _0x1d95b2=_0x51be70;this[_0x1d95b2(0x1b1)](this['_liveShareService'][_0x1d95b2(0x1a3)](_0x4ef9f6));});}};_0x23f086=_0x17ae9d([_0x526171(0x0,_0x3dbd58[_0x23bb2b(0xf5)](_0x3cf37c))],_0x23f086);var _0x1e9e6a=function(){return _0x1e9e6a=Object['assign']||function(_0x43873a){var _0x154e62=_0xcff1;for(var _0x8f0525,_0x20de3b=0x1,_0x165c9d=arguments[_0x154e62(0x150)];_0x20de3b<_0x165c9d;_0x20de3b++){_0x8f0525=arguments[_0x20de3b];for(var _0x46b19e in _0x8f0525)Object[_0x154e62(0x188)]['hasOwnProperty'][_0x154e62(0x104)](_0x8f0525,_0x46b19e)&&(_0x43873a[_0x46b19e]=_0x8f0525[_0x46b19e]);}return _0x43873a;},_0x1e9e6a['apply'](this,arguments);},_0x2fab15=function(_0x4a2c37,_0x4fe2bd){var _0x5b305b=_0x23bb2b,_0x145e7e={};for(var _0x2bda56 in _0x4a2c37)Object[_0x5b305b(0x188)][_0x5b305b(0x1c8)]['call'](_0x4a2c37,_0x2bda56)&&_0x4fe2bd['indexOf'](_0x2bda56)<0x0&&(_0x145e7e[_0x2bda56]=_0x4a2c37[_0x2bda56]);if(_0x4a2c37!=null&&typeof Object[_0x5b305b(0x1dc)]==_0x5b305b(0x10f)){for(var _0x5d9f69=0x0,_0x2bda56=Object[_0x5b305b(0x1dc)](_0x4a2c37);_0x5d9f69<_0x2bda56[_0x5b305b(0x150)];_0x5d9f69++)_0x4fe2bd[_0x5b305b(0x164)](_0x2bda56[_0x5d9f69])<0x0&&Object['prototype'][_0x5b305b(0x12f)]['call'](_0x4a2c37,_0x2bda56[_0x5d9f69])&&(_0x145e7e[_0x2bda56[_0x5d9f69]]=_0x4a2c37[_0x2bda56[_0x5d9f69]]);}return _0x145e7e;},_0x414f65=_0x689e08[_0x23bb2b(0x157)](function(_0x1a7998,_0xf2be60){var _0x318382=_0x23bb2b,_0x161630=_0x1a7998[_0x318382(0x19e)],_0x28bedc=_0x1a7998['id'],_0x4ecbc8=_0x1a7998['className'],_0x576b06=_0x1a7998[_0x318382(0x166)],_0x5eefac=_0x2fab15(_0x1a7998,[_0x318382(0x19e),'id',_0x318382(0x18c),_0x318382(0x166)]),_0x164fb6='univerjs-icon\x20univerjs-icon-'[_0x318382(0x17d)](_0x28bedc,'\x20')[_0x318382(0x17d)](_0x4ecbc8||'')[_0x318382(0x1da)](),_0x29ae20=_0x689e08[_0x318382(0x18d)]('_'['concat'](_0xd608f4()));return _0x248e16(_0x161630,''[_0x318382(0x17d)](_0x28bedc),{'defIds':_0x161630[_0x318382(0xfe)],'idSuffix':_0x29ae20[_0x318382(0x13c)]},_0x1e9e6a({'ref':_0xf2be60,'className':_0x164fb6},_0x5eefac),_0x576b06);});function _0x248e16(_0x1f3b83,_0x38d8c5,_0x56ef41,_0x3365cd,_0x7520b){var _0x1320e3=_0x23bb2b;return _0x689e08[_0x1320e3(0x1ac)](_0x1f3b83['tag'],_0x1e9e6a(_0x1e9e6a({'key':_0x38d8c5},_0x1151c7(_0x1f3b83,_0x56ef41,_0x7520b)),_0x3365cd),(_0x255e81(_0x1f3b83,_0x56ef41)[_0x1320e3(0x145)]||[])[_0x1320e3(0x178)](function(_0x412c67,_0x4a4d1f){var _0x454ebd=_0x1320e3;return _0x248e16(_0x412c67,''[_0x454ebd(0x17d)](_0x38d8c5,'-')[_0x454ebd(0x17d)](_0x1f3b83['tag'],'-')[_0x454ebd(0x17d)](_0x4a4d1f),_0x56ef41,void 0x0,_0x7520b);}));}function _0x1151c7(_0x2df093,_0x1d5364,_0x470966){var _0x3d0bb4=_0x23bb2b,_0x4bb87b=_0x1e9e6a({},_0x2df093[_0x3d0bb4(0x12b)]);_0x470966!=null&&_0x470966[_0x3d0bb4(0x1ad)]&&_0x4bb87b[_0x3d0bb4(0x17f)]===_0x3d0bb4(0x1ad)&&(_0x4bb87b[_0x3d0bb4(0x17f)]=_0x470966[_0x3d0bb4(0x1ad)]),_0x2df093[_0x3d0bb4(0x16c)]==='mask'&&_0x4bb87b['id']&&(_0x4bb87b['id']=_0x4bb87b['id']+_0x1d5364['idSuffix']),Object[_0x3d0bb4(0x12e)](_0x4bb87b)['forEach'](function(_0x3bc2ab){var _0x7649e7=_0x3d0bb4,_0x13dc88=_0x3bc2ab[0x0],_0x2ab6ed=_0x3bc2ab[0x1];_0x13dc88==='mask'&&typeof _0x2ab6ed==_0x7649e7(0x14a)&&(_0x4bb87b[_0x13dc88]=_0x2ab6ed[_0x7649e7(0x12a)](/url\(#(.*)\)/,_0x7649e7(0x1ab)['concat'](_0x1d5364[_0x7649e7(0x118)],')')));});var _0x5b2cc2=_0x1d5364[_0x3d0bb4(0xfe)];return!_0x5b2cc2||_0x5b2cc2[_0x3d0bb4(0x150)]===0x0||(_0x2df093[_0x3d0bb4(0x16c)]===_0x3d0bb4(0x14f)&&_0x4bb87b['xlink:href']&&(_0x4bb87b['xlink:href']=_0x4bb87b[_0x3d0bb4(0x1ca)]+_0x1d5364[_0x3d0bb4(0x118)]),Object[_0x3d0bb4(0x12e)](_0x4bb87b)[_0x3d0bb4(0x102)](function(_0x29db4e){var _0x32cc6f=_0x3d0bb4,_0x25a5eb=_0x29db4e[0x0],_0x28328b=_0x29db4e[0x1];typeof _0x28328b==_0x32cc6f(0x14a)&&(_0x4bb87b[_0x25a5eb]=_0x28328b[_0x32cc6f(0x12a)](/url\(#(.*)\)/,_0x32cc6f(0x1ab)[_0x32cc6f(0x17d)](_0x1d5364[_0x32cc6f(0x118)],')')));})),_0x4bb87b;}function _0x255e81(_0x5c2d37,_0x59a69c){var _0x5184b2=_0x23bb2b,_0x43520c,_0x26c530=_0x59a69c[_0x5184b2(0xfe)];return!_0x26c530||_0x26c530[_0x5184b2(0x150)]===0x0?_0x5c2d37:_0x5c2d37[_0x5184b2(0x16c)]==='defs'&&(!((_0x43520c=_0x5c2d37[_0x5184b2(0x145)])===null||_0x43520c===void 0x0)&&_0x43520c['length'])?_0x1e9e6a(_0x1e9e6a({},_0x5c2d37),{'children':_0x5c2d37['children'][_0x5184b2(0x178)](function(_0x57e79a){var _0x252c7e=_0x5184b2;return typeof _0x57e79a[_0x252c7e(0x12b)]['id']==_0x252c7e(0x14a)&&_0x26c530&&_0x26c530['indexOf'](_0x57e79a[_0x252c7e(0x12b)]['id'])>-0x1?_0x1e9e6a(_0x1e9e6a({},_0x57e79a),{'attrs':_0x1e9e6a(_0x1e9e6a({},_0x57e79a[_0x252c7e(0x12b)]),{'id':_0x57e79a['attrs']['id']+_0x59a69c[_0x252c7e(0x118)]})}):_0x57e79a;})}):_0x5c2d37;}function _0xd608f4(){var _0x33e2db=_0x23bb2b;return Math[_0x33e2db(0x140)]()[_0x33e2db(0x175)](0x24)[_0x33e2db(0x19a)](0x2,0x8);}_0x414f65['displayName']=_0x23bb2b(0x180);var _0x568790={'tag':_0x23bb2b(0x142),'attrs':{'fill':_0x23bb2b(0x13f),'viewBox':_0x23bb2b(0x1cf),'width':'1em','height':_0x23bb2b(0x181)},'children':[{'tag':_0x23bb2b(0x184),'attrs':{'fill':_0x23bb2b(0x15d),'d':_0x23bb2b(0x1e0)}},{'tag':_0x23bb2b(0x184),'attrs':{'fill':'currentColor','d':_0x23bb2b(0x198),'fillRule':_0x23bb2b(0x1ce),'clipRule':_0x23bb2b(0x1ce)}}]},_0x427753=_0x689e08['forwardRef'](function(_0x1329f8,_0x5690e1){var _0x295115=_0x23bb2b;return _0x689e08[_0x295115(0x1ac)](_0x414f65,Object[_0x295115(0x148)]({},_0x1329f8,{'id':_0x295115(0x195),'ref':_0x5690e1,'icon':_0x568790}));});_0x427753[_0x23bb2b(0x1bc)]=_0x23bb2b(0x106);var _0x4ebb9a=Object['getOwnPropertyDescriptor'],_0x5cd501=(_0x7d842f,_0x33afcf,_0x4a6e46,_0x5db2bb)=>{var _0x5db5a2=_0x23bb2b;for(var _0x3574d5=_0x5db2bb>0x1?void 0x0:_0x5db2bb?_0x4ebb9a(_0x33afcf,_0x4a6e46):_0x33afcf,_0x1ecf51=_0x7d842f[_0x5db5a2(0x150)]-0x1,_0x18bd0a;_0x1ecf51>=0x0;_0x1ecf51--)(_0x18bd0a=_0x7d842f[_0x1ecf51])&&(_0x3574d5=_0x18bd0a(_0x3574d5)||_0x3574d5);return _0x3574d5;},_0x364fff=(_0x1ca7f6,_0x4b3755)=>(_0x5c50c5,_0x47ca4b)=>_0x4b3755(_0x5c50c5,_0x47ca4b,_0x1ca7f6);_0x3d861f[_0x23bb2b(0x146)]=class extends _0x3dbd58[_0x23bb2b(0x192)]{constructor(_0x100405,_0x2fa808,_0x1b003a){var _0x35667e=_0x23bb2b;super(),_0x48adf5(this,_0x35667e(0x1c3),new Map()),(this[_0x35667e(0x124)]=_0x100405,this[_0x35667e(0x1d3)]=_0x2fa808,this[_0x35667e(0x17e)]=_0x1b003a,this[_0x35667e(0x1a9)]());}async['getLiveShareCoordinator'](_0x2047d4){var _0x41bdf0=_0x23bb2b;return this[_0x41bdf0(0x1c3)][_0x41bdf0(0x1cd)](_0x2047d4)||await this[_0x41bdf0(0x120)](_0x2047d4),this[_0x41bdf0(0x1c3)][_0x41bdf0(0x10e)](_0x2047d4);}['_init'](){var _0x47ef3d=_0x23bb2b;this[_0x47ef3d(0x124)][_0x47ef3d(0x165)](_0x3dbd58[_0x47ef3d(0x163)]['UNIVER_SHEET'])['pipe'](_0x55fd86[_0x47ef3d(0x127)](this[_0x47ef3d(0x12d)]))['subscribe'](async _0x17fa71=>{var _0xbeb5db=_0x47ef3d;const _0x1ab4b8=_0x17fa71['getUnitId']();this[_0xbeb5db(0x1c3)][_0xbeb5db(0x1cd)](_0x1ab4b8)||this['_startLiveShareCoordinator'](_0x1ab4b8);}),this[_0x47ef3d(0x124)]['getTypeOfUnitDisposed$'](_0x3dbd58[_0x47ef3d(0x163)][_0x47ef3d(0x199)])[_0x47ef3d(0x191)](_0x55fd86[_0x47ef3d(0x127)](this[_0x47ef3d(0x12d)]))[_0x47ef3d(0x1cc)](_0x520809=>{var _0x345c09=_0x47ef3d;const _0x52248e=_0x520809[_0x345c09(0x1b3)](),_0x32423c=this['_entities'][_0x345c09(0x10e)](_0x52248e);_0x32423c==null||_0x32423c[_0x345c09(0x176)]();});}async[_0x23bb2b(0x120)](_0x4cdf67){var _0x52c611=_0x23bb2b;const _0x3f412d=await this[_0x52c611(0x17e)][_0x52c611(0x1bf)](_0x4cdf67),_0x182ad5=this[_0x52c611(0x1d3)]['createInstance'](_0x3d861f[_0x52c611(0x1ba)],_0x4cdf67,_0x3f412d);return _0x182ad5[_0x52c611(0x113)](),this['_entities'][_0x52c611(0x1d9)](_0x4cdf67,_0x182ad5),_0x182ad5;}},_0x3d861f[_0x23bb2b(0x146)]=_0x5cd501([_0x364fff(0x0,_0x3dbd58['IUniverInstanceService']),_0x364fff(0x1,_0x3dbd58[_0x23bb2b(0xf5)](_0x3dbd58[_0x23bb2b(0x167)])),_0x364fff(0x2,_0x3dbd58[_0x23bb2b(0xf5)](_0x11b719['CollaborationSessionService']))],_0x3d861f['LiveShareController']);var _0x3f2aa1=(_0xe66e8=>(_0xe66e8[_0x23bb2b(0x1db)]='offline',_0xe66e8[_0x23bb2b(0x126)]=_0x23bb2b(0x17c),_0xe66e8[_0x23bb2b(0x1c5)]='following',_0xe66e8[_0x23bb2b(0x123)]=_0x23bb2b(0x193),_0xe66e8[_0x23bb2b(0x132)]=_0x23bb2b(0x13b),_0xe66e8))(_0x3f2aa1||{});const _0x3662ab=_0x23bb2b(0x174),_0x1ea43f=0xc8;_0x3d861f[_0x23bb2b(0x1ba)]=class extends _0x3dbd58[_0x23bb2b(0x192)]{constructor(_0x432224,_0x3ab42b,_0x528f56,_0x5774f5,_0x588243){var _0x5b43a3=_0x23bb2b;super(),_0x48adf5(this,_0x5b43a3(0x129),new _0x40d515[(_0x5b43a3(0x125))](_0x5b43a3(0x17c))),_0x48adf5(this,'status$',this[_0x5b43a3(0x129)][_0x5b43a3(0x168)]()),_0x48adf5(this,_0x5b43a3(0x1a9),!0x1),_0x48adf5(this,'_commandDisposable',null),_0x48adf5(this,'_presenter',null),(this['_unitID']=_0x432224,this[_0x5b43a3(0x131)]=_0x3ab42b,this[_0x5b43a3(0xfb)]=_0x528f56,this[_0x5b43a3(0x171)]=_0x5774f5,this['_commandService']=_0x588243);}get[_0x23bb2b(0x160)](){return this['_status$']['getValue']();}[_0x23bb2b(0x176)](){var _0x41da9c=_0x23bb2b,_0xfd8205;(_0xfd8205=this[_0x41da9c(0x14c)])==null||_0xfd8205[_0x41da9c(0x176)](),this[_0x41da9c(0x129)][_0x41da9c(0x18a)](_0x41da9c(0x17c)),this[_0x41da9c(0x129)][_0x41da9c(0x10a)]();}[_0x23bb2b(0x113)](){var _0x2ed0d5=_0x23bb2b;this['_init']||(this[_0x2ed0d5(0x1a9)]=!0x0,this[_0x2ed0d5(0x131)][_0x2ed0d5(0x19d)][_0x2ed0d5(0x191)](_0x55fd86[_0x2ed0d5(0x127)](this[_0x2ed0d5(0x12d)]))[_0x2ed0d5(0x1cc)](_0x423bb4=>{var _0x1bf29c=_0x2ed0d5;switch(_0x423bb4){case _0x11b719[_0x1bf29c(0x112)][_0x1bf29c(0x1db)]:this[_0x1bf29c(0x19b)]();break;case _0x11b719[_0x1bf29c(0x112)][_0x1bf29c(0x1c0)]:this[_0x1bf29c(0x1ae)]();break;}}),this[_0x2ed0d5(0x131)]['event$']['pipe'](_0x55fd86[_0x2ed0d5(0x127)](this[_0x2ed0d5(0x12d)]))[_0x2ed0d5(0x1cc)](_0x4375cb=>{var _0x35b0b2=_0x2ed0d5;const {eventID:_0x1ceb4a}=_0x4375cb;switch(_0x1ceb4a){case _0xc6d31d['CollaborationEvent'][_0x35b0b2(0x1a8)]:this[_0x35b0b2(0x1b4)](_0x4375cb);break;case _0xc6d31d[_0x35b0b2(0x141)]['LIVESHARE_OPERATION']:this[_0x35b0b2(0x12c)](_0x4375cb);break;case _0xc6d31d[_0x35b0b2(0x141)][_0x35b0b2(0x1d8)]:this[_0x35b0b2(0x108)]();break;case _0xc6d31d[_0x35b0b2(0x141)][_0x35b0b2(0x190)]:this[_0x35b0b2(0x156)](_0x4375cb);break;}}));}['tryStartPresenting'](){var _0x18a42d=_0x23bb2b;this[_0x18a42d(0x131)][_0x18a42d(0xf8)]({'eventID':_0xc6d31d[_0x18a42d(0x141)][_0x18a42d(0x136)],'data':{'unitID':this[_0x18a42d(0x1b7)],'userID':this['_collabSession'][_0x18a42d(0xf9)]()}},this[_0x18a42d(0x1b7)]);}[_0x23bb2b(0x1bd)](){var _0x24ef9d=_0x23bb2b;this[_0x24ef9d(0x160)]===_0x24ef9d(0x13b)&&(this[_0x24ef9d(0x129)][_0x24ef9d(0x18a)](_0x24ef9d(0x17c)),this['_collabSession']['send']({'eventID':_0xc6d31d[_0x24ef9d(0x141)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x24ef9d(0x1b7)]}},this['_unitID']));}[_0x23bb2b(0x196)](){var _0x30fc4d=_0x23bb2b;this['_status']===_0x30fc4d(0x193)&&(this[_0x30fc4d(0x129)]['next'](_0x30fc4d(0x13d)),this[_0x30fc4d(0x134)]());}['stopFollowing'](){var _0x107362=_0x23bb2b;this['_status']==='following'&&this[_0x107362(0x1c7)]();}[_0x23bb2b(0x1b4)](_0x336379){var _0x17cbbc=_0x23bb2b;const {presenter:_0x4e2ee9}=_0x336379[_0x17cbbc(0x149)],_0x24fd18=this[_0x17cbbc(0x131)]['getMemberID']();this['_presenter']=_0x4e2ee9,_0x4e2ee9===_0x24fd18?(this[_0x17cbbc(0x1c7)](),this[_0x17cbbc(0x116)]()):this[_0x17cbbc(0x160)]!==_0x17cbbc(0x193)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x23bb2b(0x10d)](){var _0x3924d8=_0x23bb2b;const _0x547a7c={'eventID':_0xc6d31d['CollaborationEvent'][_0x3924d8(0x162)]};this[_0x3924d8(0x131)][_0x3924d8(0xf8)](_0x547a7c,this[_0x3924d8(0x1b7)]);}[_0x23bb2b(0x108)](){var _0x109d96=_0x23bb2b;this[_0x109d96(0x1a7)]=null,this[_0x109d96(0x160)]!==_0x109d96(0x13b)&&this[_0x109d96(0x11e)]();}[_0x23bb2b(0x156)](_0x437fd9){var _0x11e31c=_0x23bb2b;if(this['_status']===_0x11e31c(0x13d)&&this[_0x11e31c(0x1a7)]===_0x437fd9[_0x11e31c(0x149)][_0x11e31c(0x1df)]){const _0x5dcc8f=_0xc6d31d[_0x11e31c(0x155)](_0x437fd9['data'])[_0x11e31c(0x1dd)][_0x11e31c(0x1d4)]()[_0x11e31c(0x144)](_0x171953=>_0x171953['id']===_0x4f5ad8[_0x11e31c(0xfd)]['id']);if(_0x5dcc8f){const _0x18c6d4=_0x5dcc8f['params']['unitId'],_0x5a9084=_0x5dcc8f['params'][_0x11e31c(0x130)]['id'];setTimeout(()=>{var _0xbe538d=_0x11e31c;this['_commandService'][_0xbe538d(0xff)](_0x4f5ad8[_0xbe538d(0x173)]['id'],{'unitId':_0x18c6d4,'subUnitId':_0x5a9084},{'fromCollab':!0x0});});}}}[_0x23bb2b(0x116)](){var _0x5ab5e0=_0x23bb2b;this[_0x5ab5e0(0x129)][_0x5ab5e0(0x18a)](_0x5ab5e0(0x13b));const _0x503b76=new Map(),_0x1c9d0f=this[_0x5ab5e0(0x14c)]=new _0x3dbd58[(_0x5ab5e0(0x1e2))]();_0x1c9d0f[_0x5ab5e0(0x151)](_0x3dbd58[_0x5ab5e0(0x110)](()=>{var _0xcd44b7=_0x5ab5e0;_0x503b76[_0xcd44b7(0x102)](_0x3b9da4=>_0x3b9da4['complete']()),_0x503b76['clear']();})),_0x1c9d0f[_0x5ab5e0(0x151)](this[_0x5ab5e0(0x103)]['onCommandExecuted'](_0x436a9b=>{var _0x4209ad=_0x5ab5e0,_0x1293e8;if(_0x436a9b[_0x4209ad(0xf7)]!==_0x3dbd58['CommandType'][_0x4209ad(0x11c)]||!this[_0x4209ad(0x171)][_0x4209ad(0x11d)](_0x436a9b['id']))return;const {id:_0xb2b93b}=_0x436a9b;let _0x65619a;_0x503b76[_0x4209ad(0x1cd)](_0xb2b93b)?_0x65619a=_0x503b76['get'](_0xb2b93b):(_0x65619a=new _0x40d515[(_0x4209ad(0x15a))](),_0x503b76[_0x4209ad(0x1d9)](_0xb2b93b,_0x65619a),_0x65619a['pipe'](_0x55fd86['throttleTime']((_0x1293e8=this[_0x4209ad(0xfb)][_0x4209ad(0x1aa)](_0x3662ab))!=null?_0x1293e8:_0x1ea43f,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4209ad(0x1cc)](_0x530ab9=>{var _0x12d0a8=_0x4209ad;this[_0x12d0a8(0x131)][_0x12d0a8(0xf8)]({'eventID':_0xc6d31d[_0x12d0a8(0x141)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x12d0a8(0x1b7)],'operations':{[_0x530ab9['id']]:{'id':_0x530ab9['id'],'params':JSON[_0x12d0a8(0x138)](_0x530ab9[_0x12d0a8(0x1de)])}}}},this[_0x12d0a8(0x1b7)]);})),_0x65619a[_0x4209ad(0x18a)](_0x436a9b);})),this[_0x5ab5e0(0x171)][_0x5ab5e0(0x1a2)](this['_unitID'])['forEach'](_0x3da2bf=>this[_0x5ab5e0(0x131)]['send']({'eventID':_0xc6d31d[_0x5ab5e0(0x141)][_0x5ab5e0(0x147)],'data':{'unitID':this[_0x5ab5e0(0x1b7)],'operations':{[_0x3da2bf['id']]:{'id':_0x3da2bf['id'],'params':JSON[_0x5ab5e0(0x138)](_0x3da2bf[_0x5ab5e0(0x1de)])}}}},this[_0x5ab5e0(0x1b7)]));}['_stopPresenting'](){var _0x58459d=_0x23bb2b,_0x1cc92a;this[_0x58459d(0x129)][_0x58459d(0x18a)]('idle'),(_0x1cc92a=this[_0x58459d(0x14c)])==null||_0x1cc92a['dispose'](),this[_0x58459d(0x14c)]=null;}['_startFollowing'](){var _0xbf85a4=_0x23bb2b,_0x31f6a3;(_0x31f6a3=this[_0xbf85a4(0x14c)])==null||_0x31f6a3[_0xbf85a4(0x176)](),this[_0xbf85a4(0x129)][_0xbf85a4(0x18a)]('following');}[_0x23bb2b(0x11e)](){var _0xb609a=_0x23bb2b,_0x79a7e8;this[_0xb609a(0x129)]['next'](_0xb609a(0x17c)),(_0x79a7e8=this['_commandDisposable'])==null||_0x79a7e8[_0xb609a(0x176)](),this[_0xb609a(0x14c)]=null;}[_0x23bb2b(0x1c7)](){var _0x52cff0=_0x23bb2b,_0x3cc063;this[_0x52cff0(0x129)][_0x52cff0(0x18a)](_0x52cff0(0x193)),(_0x3cc063=this['_commandDisposable'])==null||_0x3cc063['dispose']();}[_0x23bb2b(0x12c)](_0x434c7d){var _0x7c454f=_0x23bb2b;if([_0x7c454f(0x13b),_0x7c454f(0x193),_0x7c454f(0x194)][_0x7c454f(0x15c)](this['_status'])||!_0x434c7d['data']['presenter']||_0x434c7d[_0x7c454f(0x149)][_0x7c454f(0x137)]===this[_0x7c454f(0x131)][_0x7c454f(0xf9)]())return;this[_0x7c454f(0x160)]===_0x7c454f(0x17c)&&this[_0x7c454f(0x134)]();const _0x4647a7=_0x434c7d[_0x7c454f(0x149)][_0x7c454f(0x135)];Object[_0x7c454f(0x11a)](_0x4647a7)['forEach'](_0xb24181=>{var _0x3ae4c1=_0x7c454f;this[_0x3ae4c1(0x103)][_0x3ae4c1(0xff)](_0xb24181['id'],_0xb24181['params']?JSON['parse'](_0xb24181['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x36371d=_0x23bb2b,_0x5e6fac;this[_0x36371d(0x129)][_0x36371d(0x18a)]('offline'),(_0x5e6fac=this[_0x36371d(0x14c)])==null||_0x5e6fac[_0x36371d(0x176)]();}[_0x23bb2b(0x1ae)](){var _0x34db45=_0x23bb2b;this[_0x34db45(0x129)][_0x34db45(0x18a)]('idle'),this['_fetchOperations']();}},_0x3d861f[_0x23bb2b(0x1ba)]=_0x5cd501([_0x364fff(0x2,_0x3dbd58[_0x23bb2b(0x1b9)]),_0x364fff(0x3,_0x3dbd58[_0x23bb2b(0xf5)](_0x3cf37c)),_0x364fff(0x4,_0x3dbd58['ICommandService'])],_0x3d861f['LiveShareCoordinator']);function _0xf18eb6(){var _0x4defc3=_0x23bb2b;const _0x1acc3f=_0x7fe9c7[_0x4defc3(0x14e)](_0x3d861f['LiveShareController']),_0x16bd55=_0x7fe9c7[_0x4defc3(0x14e)](_0x3dbd58[_0x4defc3(0x19c)]),_0x3217f1=_0x7fe9c7[_0x4defc3(0x1d7)](()=>_0x16bd55['getCurrentTypeOfUnit$'](_0x3dbd58[_0x4defc3(0x163)][_0x4defc3(0x199)]),void 0x0,!0x1,[]),[_0x11fd33,_0x45bf5d]=_0x689e08[_0x4defc3(0x172)](null),[_0x5dd996,_0x3bf342]=_0x689e08[_0x4defc3(0x172)](_0x3f2aa1[_0x4defc3(0x126)]),_0x1ad268=_0x689e08['useRef'](null);return _0x689e08[_0x4defc3(0x105)](()=>(_0x3217f1&&_0x1acc3f[_0x4defc3(0x1c1)](_0x3217f1['getUnitId']())[_0x4defc3(0x154)](_0x573ade=>{var _0x3c3eaa=_0x4defc3;_0x45bf5d(_0x573ade),_0x1ad268[_0x3c3eaa(0x13c)]=_0x573ade[_0x3c3eaa(0x11f)][_0x3c3eaa(0x1cc)](_0x2c076a=>{_0x3bf342(_0x2c076a);});}),()=>{var _0x2b1934=_0x4defc3,_0x1318c3;(_0x1318c3=_0x1ad268[_0x2b1934(0x13c)])==null||_0x1318c3['unsubscribe'](),_0x1ad268[_0x2b1934(0x13c)]=null;}),[_0x3217f1,_0x1acc3f]),_0x11fd33?_0x1bf1a5['jsx'](_0x57b64a[_0x4defc3(0x18b)],{'align':'end','disabled':_0x5dd996===_0x3f2aa1[_0x4defc3(0x1db)],'className':'univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','overlay':_0x1bf1a5[_0x4defc3(0x1d6)](_0xda3d7a,{'status':_0x5dd996,'coordinator':_0x11fd33}),'children':_0x1bf1a5[_0x4defc3(0x1d6)](_0x4defc3(0x143),{'className':_0x57b64a[_0x4defc3(0x18f)]('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x5dd996===_0x3f2aa1['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x5dd996!==_0x3f2aa1['OFFLINE']}),'type':'button','children':_0x1bf1a5['jsx'](_0x427753,{'className':_0x4defc3(0x1d2)})})}):null;}function _0xda3d7a(_0x4cb45d){var _0x149bd5=_0x23bb2b;const {status:_0x577cac,coordinator:_0x469dca}=_0x4cb45d;switch(_0x577cac){case _0x3f2aa1[_0x149bd5(0x126)]:return _0x1bf1a5[_0x149bd5(0x1d6)](_0x2442f0,{'coordinator':_0x469dca});case _0x3f2aa1['FOLLOWING']:return _0x1bf1a5[_0x149bd5(0x1d6)](_0x41b606,{'coordinator':_0x469dca});case _0x3f2aa1['NOT_FOLLOWING']:return _0x1bf1a5[_0x149bd5(0x1d6)](_0x5288d2,{'coordinator':_0x469dca});case _0x3f2aa1[_0x149bd5(0x1db)]:return _0x1bf1a5['jsx'](_0x279db3,{});case _0x3f2aa1[_0x149bd5(0x132)]:return _0x1bf1a5[_0x149bd5(0x1d6)](_0xa2cbf3,{'coordinator':_0x469dca});default:return null;}}function _0x2442f0(_0x46832e){var _0x46af9d=_0x23bb2b;const {coordinator:_0x6c3235}=_0x46832e;return _0x1bf1a5[_0x46af9d(0x152)](_0x1bf1a5[_0x46af9d(0x1c9)],{'children':[_0x1bf1a5['jsx'](_0x46af9d(0x13a),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x46af9d(0x153)}),_0x1bf1a5[_0x46af9d(0x1d6)](_0x57b64a['Button'],{'onClick':()=>_0x6c3235['tryStartPresenting'](),'children':'Start'})]});}function _0x41b606(_0x4cd46c){var _0x47715e=_0x23bb2b;const {coordinator:_0x248a01}=_0x4cd46c;return _0x1bf1a5[_0x47715e(0x152)](_0x1bf1a5['Fragment'],{'children':[_0x1bf1a5[_0x47715e(0x1d6)](_0x47715e(0x13a),{'className':_0x47715e(0x1af),'children':_0x47715e(0x15b)}),_0x1bf1a5[_0x47715e(0x1d6)](_0x57b64a[_0x47715e(0x101)],{'onClick':()=>_0x248a01['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x5288d2(_0x318bca){var _0x4f7141=_0x23bb2b;const {coordinator:_0x48a14c}=_0x318bca;return _0x1bf1a5['jsxs'](_0x1bf1a5['Fragment'],{'children':[_0x1bf1a5[_0x4f7141(0x1d6)](_0x4f7141(0x13a),{'className':_0x4f7141(0x1af),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x1bf1a5[_0x4f7141(0x1d6)](_0x57b64a[_0x4f7141(0x101)],{'variant':_0x4f7141(0x10b),'onClick':()=>_0x48a14c[_0x4f7141(0x196)](),'children':_0x4f7141(0x139)})]});}function _0xa2cbf3(_0x23ef7f){var _0x1dc30e=_0x23bb2b;const {coordinator:_0x3e6a3e}=_0x23ef7f;return _0x1bf1a5[_0x1dc30e(0x152)](_0x1bf1a5[_0x1dc30e(0x1c9)],{'children':[_0x1bf1a5[_0x1dc30e(0x1d6)](_0x1dc30e(0x13a),{'className':_0x1dc30e(0x1af),'children':_0x1dc30e(0x16e)}),_0x1bf1a5[_0x1dc30e(0x1d6)](_0x57b64a[_0x1dc30e(0x101)],{'variant':'default','onClick':()=>_0x3e6a3e['stopPresenting'](),'children':_0x1dc30e(0x119)})]});}function _0x279db3(){var _0x54602c=_0x23bb2b;return _0x1bf1a5['jsx'](_0x1bf1a5[_0x54602c(0x1c9)],{'children':_0x54602c(0x159)});}var _0x4cee38=Object[_0x23bb2b(0x107)],_0x23a260=(_0x4daf71,_0x563e9d,_0x469acf,_0x4f7851)=>{for(var _0x232950=_0x4f7851>0x1?void 0x0:_0x4f7851?_0x4cee38(_0x563e9d,_0x469acf):_0x563e9d,_0x42300e=_0x4daf71['length']-0x1,_0x59aa6a;_0x42300e>=0x0;_0x42300e--)(_0x59aa6a=_0x4daf71[_0x42300e])&&(_0x232950=_0x59aa6a(_0x232950)||_0x232950);return _0x232950;},_0x57d26c=(_0x4ce4d0,_0x45f0a1)=>(_0x33f3d4,_0x5e4abf)=>_0x45f0a1(_0x33f3d4,_0x5e4abf,_0x4ce4d0);_0x3d861f[_0x23bb2b(0xfa)]=class extends _0x3dbd58['Disposable']{constructor(_0x32494a,_0x50c57a){var _0x5178b7=_0x23bb2b;super(),this[_0x5178b7(0x1d3)]=_0x32494a,this[_0x5178b7(0x1d1)]=_0x50c57a,this[_0x5178b7(0x100)]();}[_0x23bb2b(0x100)](){var _0xff1a53=_0x23bb2b;this[_0xff1a53(0x1b1)](this[_0xff1a53(0x1d1)][_0xff1a53(0x133)](_0x7fe9c7[_0xff1a53(0x16b)][_0xff1a53(0x19f)],()=>_0x7fe9c7[_0xff1a53(0x17a)](_0xf18eb6,this['_injector'])));}},_0x3d861f[_0x23bb2b(0xfa)]=_0x23a260([_0x57d26c(0x0,_0x3dbd58[_0x23bb2b(0xf5)](_0x3dbd58['Injector'])),_0x57d26c(0x1,_0x7fe9c7[_0x23bb2b(0x182)])],_0x3d861f[_0x23bb2b(0xfa)]);var _0xee27ac=Object[_0x23bb2b(0x161)],_0x537520=Object[_0x23bb2b(0x107)],_0xda7724=(_0x17abce,_0x4a469b,_0x4aaeee)=>_0x4a469b in _0x17abce?_0xee27ac(_0x17abce,_0x4a469b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4aaeee}):_0x17abce[_0x4a469b]=_0x4aaeee,_0x187511=(_0x30132a,_0x5eef28,_0x102823,_0x27afc9)=>{var _0x5b0e15=_0x23bb2b;for(var _0x31f432=_0x27afc9>0x1?void 0x0:_0x27afc9?_0x537520(_0x5eef28,_0x102823):_0x5eef28,_0x3ccefd=_0x30132a[_0x5b0e15(0x150)]-0x1,_0x30996f;_0x3ccefd>=0x0;_0x3ccefd--)(_0x30996f=_0x30132a[_0x3ccefd])&&(_0x31f432=_0x30996f(_0x31f432)||_0x31f432);return _0x31f432;},_0x45a3a2=(_0x3da106,_0x10edb3)=>(_0x3bbc41,_0x154fda)=>_0x10edb3(_0x3bbc41,_0x154fda,_0x3da106),_0x3b2db8=(_0x2e310b,_0x263052,_0x29f987)=>_0xda7724(_0x2e310b,typeof _0x263052!=_0x23bb2b(0x1d5)?_0x263052+'':_0x263052,_0x29f987);const _0x53c02b=_0x23bb2b(0x1c2);_0x3d861f[_0x23bb2b(0x14b)]=class extends _0x3dbd58[_0x23bb2b(0x1a5)]{constructor(_0xeb8430=_0x4811d1,_0x50757c,_0x20f9c4){var _0x28297e=_0x23bb2b;super(),this[_0x28297e(0x189)]=_0xeb8430,this[_0x28297e(0x1d3)]=_0x50757c,this['_configService']=_0x20f9c4;const {..._0x4ac976}=_0x3dbd58['merge']({},_0x4811d1,this[_0x28297e(0x189)]);this[_0x28297e(0xfb)][_0x28297e(0x1b6)](_0x349052,_0x4ac976);}[_0x23bb2b(0x1a1)](){var _0x41034a=_0x23bb2b;_0x3dbd58[_0x41034a(0x158)](this[_0x41034a(0x1d3)],_0x3dbd58[_0x41034a(0x1be)]([[_0x3cf37c],[_0x3d861f['LiveShareController']],[_0x23f086],[_0x3d861f[_0x41034a(0xfa)]]],this['_config']['override'])),_0x3dbd58['touchDependencies'](this[_0x41034a(0x1d3)],[[_0x23f086]]);}['onRendered'](){var _0x21b591=_0x23bb2b;_0x3dbd58['touchDependencies'](this[_0x21b591(0x1d3)],[[_0x3d861f['DesktopLiveShareController']]]);}},_0x3b2db8(_0x3d861f[_0x23bb2b(0x14b)],_0x23bb2b(0xf7),_0x3dbd58[_0x23bb2b(0x163)]['UNIVER_UNKNOWN']),_0x3b2db8(_0x3d861f[_0x23bb2b(0x14b)],_0x23bb2b(0x197),_0x53c02b),_0x3d861f[_0x23bb2b(0x14b)]=_0x187511([_0x3dbd58['DependentOn'](_0x11b719['UniverCollaborationClientPlugin']),_0x45a3a2(0x1,_0x3dbd58[_0x23bb2b(0xf5)](_0x3dbd58[_0x23bb2b(0x167)])),_0x45a3a2(0x2,_0x3dbd58[_0x23bb2b(0x1b9)])],_0x3d861f[_0x23bb2b(0x14b)]),_0x3d861f[_0x23bb2b(0x15f)]=_0xf18eb6,_0x3d861f[_0x23bb2b(0x170)]=_0x3cf37c,_0x3d861f[_0x23bb2b(0x11b)]=_0x3f2aa1,Object[_0x23bb2b(0x161)](_0x3d861f,Symbol['toStringTag'],{'value':_0x23bb2b(0xf6)});}));function _0xd143(){var _0x5240f6=['You\x27re\x20presenting\x20the\x20document','99788YJRzQD','LiveShareService','_liveShareService','useState','SetWorksheetActiveOperation','SAME_OPERATION_SHARE_INTERVAL','toString','dispose','from','map','@univerjs/ui','connectInjector','react','idle','concat','_collabSessionService','fill','UniverIcon','1em','IUIPartsService','@univerjs/design','path','1103744scSOMI','18NjTxsk','@univerjs/sheets-ui','prototype','_config','next','Dropdown','className','useRef','live-share.config','clsx','NEW_CHANGESETS','pipe','RxDisposable','not-following','offline','live-share-single','startFollowing','pluginName','M3.60732\x201.40002C2.17138\x201.40002\x201.00732\x202.56408\x201.00732\x204.00002V7.93118C1.00732\x209.36712\x202.17138\x2010.5312\x203.60732\x2010.5312H7.40636C7.40211\x2010.56\x207.3999\x2010.5895\x207.3999\x2010.6195V13.2043H4.9999C4.66853\x2013.2043\x204.3999\x2013.473\x204.3999\x2013.8043C4.3999\x2014.1357\x204.66853\x2014.4043\x204.9999\x2014.4043H10.9999C11.3313\x2014.4043\x2011.5999\x2014.1357\x2011.5999\x2013.8043C11.5999\x2013.473\x2011.3313\x2013.2043\x2010.9999\x2013.2043H8.5999V10.6195C8.5999\x2010.5895\x208.5977\x2010.56\x208.59344\x2010.5312H12.393C13.8289\x2010.5312\x2014.993\x209.36712\x2014.993\x207.93118V4.00002C14.993\x202.56408\x2013.8289\x201.40002\x2012.393\x201.40002H3.60732ZM2.20732\x204.00002C2.20732\x203.22683\x202.83413\x202.60002\x203.60732\x202.60002H12.393C13.1662\x202.60002\x2013.793\x203.22683\x2013.793\x204.00002V7.93118C13.793\x208.70438\x2013.1662\x209.33118\x2012.393\x209.33118H3.60732C2.83413\x209.33118\x202.20732\x208.70438\x202.20732\x207.93118V4.00002Z','UNIVER_SHEET','substring','_handleOffline','IUniverInstanceService','sessionStatus$','icon','HEADER_MENU','rxjs/operators','onStarting','getInitialStates','registerSharedOperation','Disposable','Plugin','644491JVWxdz','_presenter','LIVESHARE_NEW_HOST','_init','getConfig','url(#$1','createElement','colorChannel1','_handleOnline','univer-w-full\x20univer-mb-3\x20univer-text-sm','721098AHEQYA','disposeWithMe','6zUIUVC','getUnitId','_handleNewHost','1245042WmPHIK','setConfig','_unitID','exports','IConfigService','LiveShareCoordinator','@univerjs/sheets','displayName','stopPresenting','mergeOverrideWithDependencies','requireSession','ONLINE','getLiveShareCoordinator','UNIVER_LIVE_SHARE_PLUGIN','_entities','UniverDesign','FOLLOWING','amd','_stopFollowing','hasOwnProperty','Fragment','xlink:href','UniverSheets','subscribe','has','evenodd','0\x200\x2016\x2016','UniverUi','_uiPartsService','univer-size-4','_injector','reverse','symbol','jsx','useObservable','LIVESHARE_TERMINATE','set','trim','OFFLINE','getOwnPropertySymbols','mutations','params','memberID','M8.41311\x204.08315C8.22793\x203.93752\x208.07717\x204.04341\x208.07717\x204.30052V4.98473H8.04641C6.96438\x204.98473\x205.12332\x206.20406\x205.1083\x207.28752C5.1083\x207.37462\x205.18044\x207.399\x205.24905\x207.28752C5.59854\x206.67925\x207.06802\x206.36363\x207.81704\x206.36363H8.07644V7.08547C8.07644\x207.30077\x208.24014\x207.44847\x208.42593\x207.30284L10.1369\x205.96367C10.322\x205.81877\x2010.322\x205.58187\x2010.1369\x205.43624L8.41311\x204.08315Z','SetScrollOperation','DisposableCollection','Inject','Module','type','send','getMemberID','DesktopLiveShareController','_configService','@univerjs-pro/collaboration','InsertSheetMutation','defIds','executeCommand','_mountLiveShare','Button','forEach','_commandService','call','useEffect','LiveShareSingle','getOwnPropertyDescriptor','_handleTerminate','1228696JyFxSv','complete','text','1903385nKCymZ','_fetchOperations','get','function','toDisposable','react/jsx-runtime','SessionStatus','init','_reporters','rxjs','_startPresenting','React','idSuffix','Stop\x20presenting','values','LiveShareStatus','OPERATION','shouldShareOperation','_beIdle','status$','_startLiveShareCoordinator','_sharedOperations','@univerjs-pro/collaboration-client','NOT_FOLLOWING','_univerInstanceService','BehaviorSubject','IDLE','takeUntil','@univerjs/core','_status$','replace','attrs','_handleOperation','dispose$','entries','propertyIsEnumerable','sheet','_collabSession','PRESENTING','registerComponent','_startFollowing','operations','LIVESHARE_REQUEST_HOST','presenter','stringify','Start\x20following','div','presenting','current','following','delete','none','random','CollaborationEvent','svg','button','find','children','LiveShareController','LIVESHARE_OPERATION','assign','data','string','UniverLiveSharePlugin','_commandDisposable','UniverSheetsUi','useDependency','use','length','add','jsxs','Present\x20this\x20document','then','parseProtocolChangeset','_handleNewChangeSets','forwardRef','registerDependencies','You\x27are\x20offline.','Subject','You\x27re\x20following\x20the\x20presenter','includes','currentColor','UniverProLiveShare','LiveShare','_status','defineProperty','LIVESHARE_FETCH_OPERATIONS','UniverInstanceType','indexOf','getTypeOfUnitAdded$','extend','Injector','asObservable','UniverCore','SetZoomRatioOperation','BuiltInUIPart','tag','UniverProCollaboration'];_0xd143=function(){return _0x5240f6;};return _0xd143();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.7.0-nightly.
|
|
3
|
+
"version": "0.7.0-nightly.202505171606",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -47,13 +47,13 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@univerjs/icons": "^0.3.24",
|
|
50
|
-
"@univerjs-pro/collaboration": "0.7.0-nightly.
|
|
51
|
-
"@univerjs/core": "0.7.0-nightly.
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs/sheets
|
|
54
|
-
"@univerjs
|
|
55
|
-
"@univerjs/sheets": "0.7.0-nightly.
|
|
56
|
-
"@univerjs/ui": "0.7.0-nightly.
|
|
50
|
+
"@univerjs-pro/collaboration": "0.7.0-nightly.202505171606",
|
|
51
|
+
"@univerjs/core": "0.7.0-nightly.202505171606",
|
|
52
|
+
"@univerjs-pro/collaboration-client": "0.7.0-nightly.202505171606",
|
|
53
|
+
"@univerjs/sheets": "0.7.0-nightly.202505171606",
|
|
54
|
+
"@univerjs/design": "0.7.0-nightly.202505171606",
|
|
55
|
+
"@univerjs/sheets-ui": "0.7.0-nightly.202505171606",
|
|
56
|
+
"@univerjs/ui": "0.7.0-nightly.202505171606"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.3",
|
|
@@ -63,8 +63,8 @@
|
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
64
|
"vite": "^6.3.5",
|
|
65
65
|
"vitest": "^3.1.3",
|
|
66
|
-
"@univerjs/
|
|
67
|
-
"@univerjs
|
|
66
|
+
"@univerjs-infra/shared": "0.7.0",
|
|
67
|
+
"@univerjs/protocol": "0.1.46-alpha.3"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
70
|
"test": "vitest run",
|