@univerjs-pro/live-share 0.8.1-nightly.202506141606 → 0.8.1-nightly.202506161607

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x172af3=_0x529f;(function(_0x529b15,_0x3e316d){var _0x219961=_0x529f,_0x48d60f=_0x529b15();while(!![]){try{var _0x3ae95e=-parseInt(_0x219961(0x27c))/0x1+parseInt(_0x219961(0x22f))/0x2+parseInt(_0x219961(0x1c3))/0x3*(-parseInt(_0x219961(0x1c9))/0x4)+-parseInt(_0x219961(0x24f))/0x5+-parseInt(_0x219961(0x1d5))/0x6*(parseInt(_0x219961(0x1b6))/0x7)+parseInt(_0x219961(0x27b))/0x8+parseInt(_0x219961(0x26a))/0x9*(parseInt(_0x219961(0x27f))/0xa);if(_0x3ae95e===_0x3e316d)break;else _0x48d60f['push'](_0x48d60f['shift']());}catch(_0x271a54){_0x48d60f['push'](_0x48d60f['shift']());}}}(_0xfe4a,0x27d9d));var U=Object[_0x172af3(0x240)],F=(_0x4eabd4,_0x11a074,_0x54f7b9)=>_0x11a074 in _0x4eabd4?U(_0x4eabd4,_0x11a074,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x54f7b9}):_0x4eabd4[_0x11a074]=_0x54f7b9,v=(_0x54c6e4,_0x4dfc3e,_0x380c8c)=>F(_0x54c6e4,typeof _0x4dfc3e!=_0x172af3(0x1ef)?_0x4dfc3e+'':_0x4dfc3e,_0x380c8c);Object['defineProperty'](exports,Symbol[_0x172af3(0x20f)],{'value':_0x172af3(0x218)});const m=require(_0x172af3(0x251)),o=require('@univerjs/core'),C=require(_0x172af3(0x22d)),w=require(_0x172af3(0x25b)),p=require(_0x172af3(0x20c)),l=require(_0x172af3(0x221)),g=require('@univerjs/design'),f=require('react'),_=require('@univerjs-pro/collaboration'),D=require(_0x172af3(0x25e)),b=require(_0x172af3(0x226)),$=_0x172af3(0x1b4),x={};class O extends o[_0x172af3(0x272)]{constructor(){var _0x304725=_0x172af3;super(...arguments),v(this,_0x304725(0x26c),new Set()),v(this,_0x304725(0x253),new Set());}[_0x172af3(0x264)](_0x28394f){var _0x138eaf=_0x172af3;return this['_sharedOperations'][_0x138eaf(0x273)](_0x28394f),o[_0x138eaf(0x1c0)](()=>this[_0x138eaf(0x26c)][_0x138eaf(0x1da)](_0x28394f));}[_0x172af3(0x1f6)](_0x305482){var _0xed450b=_0x172af3;return this[_0xed450b(0x253)][_0xed450b(0x273)](_0x305482),o[_0xed450b(0x1c0)](()=>this[_0xed450b(0x253)][_0xed450b(0x1da)](_0x305482));}[_0x172af3(0x1ff)](_0xe9afd8){var _0x104879=_0x172af3;return this[_0x104879(0x26c)]['has'](_0xe9afd8);}['getInitialStates'](_0x187ddf){var _0x40bbf1=_0x172af3;return Array['from'](this[_0x40bbf1(0x253)])[_0x40bbf1(0x227)](_0x7a084e=>_0x7a084e(_0x187ddf));}}var H=Object[_0x172af3(0x1e2)],V=(_0x570c2e,_0x365dcd,_0x3cf957,_0x1c19d5)=>{var _0x2c88d4=_0x172af3;for(var _0x95d6a1=_0x1c19d5>0x1?void 0x0:_0x1c19d5?H(_0x365dcd,_0x3cf957):_0x365dcd,_0x14ec31=_0x570c2e[_0x2c88d4(0x1b7)]-0x1,_0x4173dd;_0x14ec31>=0x0;_0x14ec31--)(_0x4173dd=_0x570c2e[_0x14ec31])&&(_0x95d6a1=_0x4173dd(_0x95d6a1)||_0x95d6a1);return _0x95d6a1;},k=(_0x350fef,_0x1e6a10)=>(_0x472110,_0x17707b)=>_0x1e6a10(_0x472110,_0x17707b,_0x350fef);let E=class extends o[_0x172af3(0x272)]{constructor(_0x5b8670){var _0x3dd94a=_0x172af3;super(),this['_liveShareService']=_0x5b8670,this[_0x3dd94a(0x225)]();}[_0x172af3(0x225)](){var _0x223d8f=_0x172af3;[w[_0x223d8f(0x1ed)]['id'],w[_0x223d8f(0x246)]['id'],C[_0x223d8f(0x242)]['id']][_0x223d8f(0x219)](_0x222422=>{var _0x4c1659=_0x223d8f;this[_0x4c1659(0x1c8)](this[_0x4c1659(0x1de)][_0x4c1659(0x264)](_0x222422));});}};E=V([k(0x0,o[_0x172af3(0x275)](O))],E);var u=function(){var _0x10cd85=_0x172af3;return u=Object[_0x10cd85(0x1a8)]||function(_0x2d8e58){var _0x41eff5=_0x10cd85;for(var _0xdc82e6,_0x10a3a5=0x1,_0x45e531=arguments[_0x41eff5(0x1b7)];_0x10a3a5<_0x45e531;_0x10a3a5++){_0xdc82e6=arguments[_0x10a3a5];for(var _0x2218d6 in _0xdc82e6)Object['prototype'][_0x41eff5(0x1db)]['call'](_0xdc82e6,_0x2218d6)&&(_0x2d8e58[_0x2218d6]=_0xdc82e6[_0x2218d6]);}return _0x2d8e58;},u[_0x10cd85(0x23c)](this,arguments);},M=function(_0x1f51eb,_0x4bbaf9){var _0x45c6f3=_0x172af3,_0xf804ab={};for(var _0x25f8ef in _0x1f51eb)Object[_0x45c6f3(0x277)][_0x45c6f3(0x1db)][_0x45c6f3(0x211)](_0x1f51eb,_0x25f8ef)&&_0x4bbaf9['indexOf'](_0x25f8ef)<0x0&&(_0xf804ab[_0x25f8ef]=_0x1f51eb[_0x25f8ef]);if(_0x1f51eb!=null&&typeof Object[_0x45c6f3(0x1d9)]==_0x45c6f3(0x232)){for(var _0x58fbb5=0x0,_0x25f8ef=Object['getOwnPropertySymbols'](_0x1f51eb);_0x58fbb5<_0x25f8ef['length'];_0x58fbb5++)_0x4bbaf9[_0x45c6f3(0x1ca)](_0x25f8ef[_0x58fbb5])<0x0&&Object[_0x45c6f3(0x277)][_0x45c6f3(0x21a)][_0x45c6f3(0x211)](_0x1f51eb,_0x25f8ef[_0x58fbb5])&&(_0xf804ab[_0x25f8ef[_0x58fbb5]]=_0x1f51eb[_0x25f8ef[_0x58fbb5]]);}return _0xf804ab;},j=f[_0x172af3(0x268)](function(_0x31749f,_0x54a74c){var _0x59c340=_0x172af3,_0xdb49bf=_0x31749f[_0x59c340(0x24d)],_0x33bc3d=_0x31749f['id'],_0x4dd5df=_0x31749f[_0x59c340(0x283)],_0x57deab=_0x31749f[_0x59c340(0x21c)],_0x189401=M(_0x31749f,[_0x59c340(0x24d),'id',_0x59c340(0x283),_0x59c340(0x21c)]),_0xbd2557=_0x59c340(0x1d0)['concat'](_0x33bc3d,'\x20')['concat'](_0x4dd5df||'')[_0x59c340(0x249)](),_0x3dc0db=f[_0x59c340(0x276)]('_'[_0x59c340(0x243)](G()));return y(_0xdb49bf,''[_0x59c340(0x243)](_0x33bc3d),{'defIds':_0xdb49bf[_0x59c340(0x209)],'idSuffix':_0x3dc0db[_0x59c340(0x23d)]},u({'ref':_0x54a74c,'className':_0xbd2557},_0x189401),_0x57deab);});function y(_0x23560b,_0x2952c1,_0xcc90a3,_0x4c501e,_0x3a9e00){var _0x218b7b=_0x172af3;return f[_0x218b7b(0x20a)](_0x23560b[_0x218b7b(0x255)],u(u({'key':_0x2952c1},q(_0x23560b,_0xcc90a3,_0x3a9e00)),_0x4c501e),(W(_0x23560b,_0xcc90a3)['children']||[])[_0x218b7b(0x227)](function(_0x27f33d,_0xd252b5){var _0x18b0db=_0x218b7b;return y(_0x27f33d,''[_0x18b0db(0x243)](_0x2952c1,'-')[_0x18b0db(0x243)](_0x23560b[_0x18b0db(0x255)],'-')[_0x18b0db(0x243)](_0xd252b5),_0xcc90a3,void 0x0,_0x3a9e00);}));}function q(_0x5b36ed,_0x2ff40d,_0x2029f6){var _0x359a00=_0x172af3,_0x7398e4=u({},_0x5b36ed[_0x359a00(0x1cd)]);_0x2029f6!=null&&_0x2029f6[_0x359a00(0x22c)]&&_0x7398e4['fill']===_0x359a00(0x22c)&&(_0x7398e4[_0x359a00(0x1be)]=_0x2029f6[_0x359a00(0x22c)]),_0x5b36ed[_0x359a00(0x255)]===_0x359a00(0x20b)&&_0x7398e4['id']&&(_0x7398e4['id']=_0x7398e4['id']+_0x2ff40d[_0x359a00(0x1ce)]),Object[_0x359a00(0x267)](_0x7398e4)[_0x359a00(0x219)](function(_0x2ef49f){var _0x339922=_0x359a00,_0xa0090c=_0x2ef49f[0x0],_0x3516a8=_0x2ef49f[0x1];_0xa0090c===_0x339922(0x20b)&&typeof _0x3516a8=='string'&&(_0x7398e4[_0xa0090c]=_0x3516a8[_0x339922(0x237)](/url\(#(.*)\)/,_0x339922(0x1a7)[_0x339922(0x243)](_0x2ff40d['idSuffix'],')')));});var _0x2e94a1=_0x2ff40d[_0x359a00(0x209)];return!_0x2e94a1||_0x2e94a1['length']===0x0||(_0x5b36ed[_0x359a00(0x255)]===_0x359a00(0x1d1)&&_0x7398e4[_0x359a00(0x28a)]&&(_0x7398e4['xlink:href']=_0x7398e4[_0x359a00(0x28a)]+_0x2ff40d[_0x359a00(0x1ce)]),Object['entries'](_0x7398e4)['forEach'](function(_0x208ce5){var _0x5c9751=_0x359a00,_0xe66f7a=_0x208ce5[0x0],_0x1f7aa7=_0x208ce5[0x1];typeof _0x1f7aa7==_0x5c9751(0x284)&&(_0x7398e4[_0xe66f7a]=_0x1f7aa7[_0x5c9751(0x237)](/url\(#(.*)\)/,_0x5c9751(0x1a7)[_0x5c9751(0x243)](_0x2ff40d[_0x5c9751(0x1ce)],')')));})),_0x7398e4;}function W(_0x4cc65c,_0x185dab){var _0x5f5e98=_0x172af3,_0x4e9ca7,_0x480c6c=_0x185dab[_0x5f5e98(0x209)];return!_0x480c6c||_0x480c6c[_0x5f5e98(0x1b7)]===0x0?_0x4cc65c:_0x4cc65c[_0x5f5e98(0x255)]===_0x5f5e98(0x245)&&(!((_0x4e9ca7=_0x4cc65c['children'])===null||_0x4e9ca7===void 0x0)&&_0x4e9ca7[_0x5f5e98(0x1b7)])?u(u({},_0x4cc65c),{'children':_0x4cc65c[_0x5f5e98(0x26f)]['map'](function(_0x2271c3){var _0x42267e=_0x5f5e98;return typeof _0x2271c3[_0x42267e(0x1cd)]['id']==_0x42267e(0x284)&&_0x480c6c&&_0x480c6c[_0x42267e(0x215)](_0x2271c3[_0x42267e(0x1cd)]['id'])?u(u({},_0x2271c3),{'attrs':u(u({},_0x2271c3[_0x42267e(0x1cd)]),{'id':_0x2271c3['attrs']['id']+_0x185dab[_0x42267e(0x1ce)]})}):_0x2271c3;})}):_0x4cc65c;}function G(){var _0x30c408=_0x172af3;return Math['random']()['toString'](0x24)[_0x30c408(0x289)](0x2,0x8);}j[_0x172af3(0x1fb)]=_0x172af3(0x1e7);var B={'tag':_0x172af3(0x1eb),'attrs':{'xmlns':_0x172af3(0x1e5),'fill':_0x172af3(0x1b0),'viewBox':_0x172af3(0x25a),'width':_0x172af3(0x223),'height':_0x172af3(0x223)},'children':[{'tag':_0x172af3(0x1e9),'attrs':{'fill':_0x172af3(0x1cf),'d':_0x172af3(0x228)}},{'tag':_0x172af3(0x1e9),'attrs':{'fill':_0x172af3(0x1cf),'d':_0x172af3(0x1e4),'fillRule':_0x172af3(0x1f0),'clipRule':_0x172af3(0x1f0)}}]},P=f[_0x172af3(0x268)](function(_0x1f3d3c,_0x1effa2){var _0x4a2768=_0x172af3;return f[_0x4a2768(0x20a)](j,Object['assign']({},_0x1f3d3c,{'id':_0x4a2768(0x1cb),'ref':_0x1effa2,'icon':B}));});P[_0x172af3(0x1fb)]=_0x172af3(0x1b1);var Y=Object[_0x172af3(0x1e2)],R=(_0x4485f8,_0x1f0b52,_0x11c69b,_0x324fbb)=>{for(var _0x48f8a3=_0x324fbb>0x1?void 0x0:_0x324fbb?Y(_0x1f0b52,_0x11c69b):_0x1f0b52,_0x133ce9=_0x4485f8['length']-0x1,_0x10ae57;_0x133ce9>=0x0;_0x133ce9--)(_0x10ae57=_0x4485f8[_0x133ce9])&&(_0x48f8a3=_0x10ae57(_0x48f8a3)||_0x48f8a3);return _0x48f8a3;},S=(_0xda6e60,_0x39cb67)=>(_0x4f0641,_0x35d7f1)=>_0x39cb67(_0x4f0641,_0x35d7f1,_0xda6e60);exports[_0x172af3(0x22b)]=class extends o[_0x172af3(0x1f8)]{constructor(_0x5d0bae,_0x310de8,_0x51cc33){var _0x4b8882=_0x172af3;super(),v(this,_0x4b8882(0x27d),new Map()),(this['_univerInstanceService']=_0x5d0bae,this[_0x4b8882(0x24b)]=_0x310de8,this[_0x4b8882(0x20d)]=_0x51cc33,this[_0x4b8882(0x225)]());}async[_0x172af3(0x1d7)](_0x327f06){var _0x59f157=_0x172af3;return this[_0x59f157(0x27d)]['has'](_0x327f06)||await this[_0x59f157(0x21d)](_0x327f06),this[_0x59f157(0x27d)]['get'](_0x327f06);}['_init'](){var _0x5e6fa4=_0x172af3;this['_univerInstanceService'][_0x5e6fa4(0x1bf)](o[_0x5e6fa4(0x21f)]['UNIVER_SHEET'])['pipe'](b[_0x5e6fa4(0x1ad)](this[_0x5e6fa4(0x258)]))[_0x5e6fa4(0x269)](async _0xebe753=>{var _0x461291=_0x5e6fa4;const _0x50fe96=_0xebe753[_0x461291(0x24c)]();this[_0x461291(0x27d)][_0x461291(0x1a5)](_0x50fe96)||this[_0x461291(0x21d)](_0x50fe96);}),this[_0x5e6fa4(0x202)][_0x5e6fa4(0x241)](o[_0x5e6fa4(0x21f)][_0x5e6fa4(0x222)])['pipe'](b[_0x5e6fa4(0x1ad)](this[_0x5e6fa4(0x258)]))[_0x5e6fa4(0x269)](_0x364b91=>{var _0x31dd4c=_0x5e6fa4;const _0x9ec1fc=_0x364b91[_0x31dd4c(0x24c)](),_0x373a7c=this[_0x31dd4c(0x27d)][_0x31dd4c(0x244)](_0x9ec1fc);_0x373a7c==null||_0x373a7c['dispose']();});}async['_startLiveShareCoordinator'](_0x76d8fe){var _0x31c929=_0x172af3;const _0x1d1a3c=await this['_collabSessionService'][_0x31c929(0x24a)](_0x76d8fe),_0x27b294=this[_0x31c929(0x24b)][_0x31c929(0x281)](exports['LiveShareCoordinator'],_0x76d8fe,_0x1d1a3c);return _0x27b294[_0x31c929(0x22a)](),this[_0x31c929(0x27d)][_0x31c929(0x210)](_0x76d8fe,_0x27b294),_0x27b294;}},exports[_0x172af3(0x22b)]=R([S(0x0,o[_0x172af3(0x1ab)]),S(0x1,o[_0x172af3(0x275)](o[_0x172af3(0x206)])),S(0x2,o[_0x172af3(0x275)](m[_0x172af3(0x1f3)]))],exports[_0x172af3(0x22b)]);var h=(_0x4d2dc7=>(_0x4d2dc7[_0x172af3(0x1a2)]='offline',_0x4d2dc7['IDLE']=_0x172af3(0x1fa),_0x4d2dc7[_0x172af3(0x1e1)]=_0x172af3(0x1c2),_0x4d2dc7[_0x172af3(0x282)]=_0x172af3(0x1ba),_0x4d2dc7[_0x172af3(0x1e6)]='presenting',_0x4d2dc7))(h||{});const Z=_0x172af3(0x239),J=0xc8;exports[_0x172af3(0x1aa)]=class extends o[_0x172af3(0x1f8)]{constructor(_0x1f6686,_0x2ad1de,_0xdaa5f0,_0x4fc225,_0x3f020c){var _0x155fa9=_0x172af3;super(),v(this,_0x155fa9(0x1ae),new D[(_0x155fa9(0x216))](_0x155fa9(0x1fa))),v(this,_0x155fa9(0x23f),this[_0x155fa9(0x1ae)]['asObservable']()),v(this,_0x155fa9(0x225),!0x1),v(this,_0x155fa9(0x217),null),v(this,_0x155fa9(0x24e),null),(this[_0x155fa9(0x212)]=_0x1f6686,this[_0x155fa9(0x201)]=_0x2ad1de,this[_0x155fa9(0x20e)]=_0xdaa5f0,this[_0x155fa9(0x1de)]=_0x4fc225,this['_commandService']=_0x3f020c);}get[_0x172af3(0x1c1)](){var _0x547d07=_0x172af3;return this[_0x547d07(0x1ae)]['getValue']();}[_0x172af3(0x224)](){var _0xa6ac95=_0x172af3,_0x3e97cf;(_0x3e97cf=this[_0xa6ac95(0x217)])==null||_0x3e97cf[_0xa6ac95(0x224)](),this[_0xa6ac95(0x1ae)][_0xa6ac95(0x1fd)](_0xa6ac95(0x1fa)),this[_0xa6ac95(0x1ae)][_0xa6ac95(0x1fe)]();}[_0x172af3(0x22a)](){var _0x656986=_0x172af3;this[_0x656986(0x225)]||(this[_0x656986(0x225)]=!0x0,this[_0x656986(0x201)][_0x656986(0x254)][_0x656986(0x1bd)](b[_0x656986(0x1ad)](this['dispose$']))[_0x656986(0x269)](_0x48fad6=>{var _0x565927=_0x656986;switch(_0x48fad6){case m[_0x565927(0x1e3)][_0x565927(0x1a2)]:this[_0x565927(0x1d4)]();break;case m[_0x565927(0x1e3)]['ONLINE']:this[_0x565927(0x1b3)]();break;}}),this['_collabSession'][_0x656986(0x1f7)][_0x656986(0x1bd)](b['takeUntil'](this[_0x656986(0x258)]))['subscribe'](_0x5c6685=>{var _0x3fcf6d=_0x656986;const {eventID:_0x273ab0}=_0x5c6685;switch(_0x273ab0){case _['CollaborationEvent'][_0x3fcf6d(0x23b)]:this[_0x3fcf6d(0x1a3)](_0x5c6685);break;case _[_0x3fcf6d(0x21b)][_0x3fcf6d(0x27e)]:this[_0x3fcf6d(0x200)](_0x5c6685);break;case _[_0x3fcf6d(0x21b)][_0x3fcf6d(0x1c4)]:this[_0x3fcf6d(0x1b8)]();break;case _[_0x3fcf6d(0x21b)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x5c6685);break;}}));}['tryStartPresenting'](){var _0xac65ba=_0x172af3;this[_0xac65ba(0x201)][_0xac65ba(0x26e)]({'eventID':_['CollaborationEvent']['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0xac65ba(0x212)],'userID':this['_collabSession'][_0xac65ba(0x1d3)]()}},this[_0xac65ba(0x212)]);}[_0x172af3(0x1bb)](){var _0x39e530=_0x172af3;this[_0x39e530(0x1c1)]===_0x39e530(0x1f9)&&(this[_0x39e530(0x1ae)][_0x39e530(0x1fd)]('idle'),this[_0x39e530(0x201)]['send']({'eventID':_[_0x39e530(0x21b)][_0x39e530(0x1c4)],'data':{'unitID':this[_0x39e530(0x212)]}},this[_0x39e530(0x212)]));}[_0x172af3(0x1ec)](){var _0x3701b0=_0x172af3;this[_0x3701b0(0x1c1)]===_0x3701b0(0x1ba)&&(this[_0x3701b0(0x1ae)]['next'](_0x3701b0(0x1c2)),this[_0x3701b0(0x287)]());}[_0x172af3(0x231)](){var _0x4bf9ea=_0x172af3;this[_0x4bf9ea(0x1c1)]==='following'&&this[_0x4bf9ea(0x236)]();}['_handleNewHost'](_0x301463){var _0x15d0e0=_0x172af3;const {presenter:_0x41d232}=_0x301463['data'],_0x5c6494=this[_0x15d0e0(0x201)]['getMemberID']();this[_0x15d0e0(0x24e)]=_0x41d232,_0x41d232===_0x5c6494?(this[_0x15d0e0(0x236)](),this[_0x15d0e0(0x1bc)]()):this['_status']!==_0x15d0e0(0x1ba)&&(this[_0x15d0e0(0x205)](),this[_0x15d0e0(0x287)]());}[_0x172af3(0x1ac)](){var _0x39a279=_0x172af3;const _0x33dfe6={'eventID':_[_0x39a279(0x21b)][_0x39a279(0x1dc)]};this[_0x39a279(0x201)][_0x39a279(0x26e)](_0x33dfe6,this['_unitID']);}['_handleTerminate'](){var _0x22f162=_0x172af3;this[_0x22f162(0x24e)]=null,this[_0x22f162(0x1c1)]!==_0x22f162(0x1f9)&&this[_0x22f162(0x259)]();}[_0x172af3(0x26d)](_0x1eae1c){var _0x486713=_0x172af3;if(this['_status']===_0x486713(0x1c2)&&this['_presenter']===_0x1eae1c['data'][_0x486713(0x248)]){const _0x30c68b=_[_0x486713(0x261)](_0x1eae1c[_0x486713(0x25c)])[_0x486713(0x262)][_0x486713(0x230)]()[_0x486713(0x288)](_0xcc6efa=>_0xcc6efa['id']===C['InsertSheetMutation']['id']);if(_0x30c68b){const _0xcaab1f=_0x30c68b[_0x486713(0x1f1)]['unitId'],_0xfbc437=_0x30c68b[_0x486713(0x1f1)]['sheet']['id'];setTimeout(()=>{var _0x29ddbe=_0x486713;this[_0x29ddbe(0x1a4)][_0x29ddbe(0x256)](C[_0x29ddbe(0x242)]['id'],{'unitId':_0xcaab1f,'subUnitId':_0xfbc437},{'fromCollab':!0x0});});}}}[_0x172af3(0x1bc)](){var _0x12e44f=_0x172af3;this[_0x12e44f(0x1ae)][_0x12e44f(0x1fd)](_0x12e44f(0x1f9));const _0x28eaef=new Map(),_0x39178d=this[_0x12e44f(0x217)]=new o[(_0x12e44f(0x235))]();_0x39178d[_0x12e44f(0x273)](o[_0x12e44f(0x1c0)](()=>{var _0x16be22=_0x12e44f;_0x28eaef[_0x16be22(0x219)](_0x3a22f8=>_0x3a22f8[_0x16be22(0x1fe)]()),_0x28eaef[_0x16be22(0x1ee)]();})),_0x39178d[_0x12e44f(0x273)](this[_0x12e44f(0x1a4)][_0x12e44f(0x280)](_0xeb5ad2=>{var _0x3cb790=_0x12e44f,_0x14d509;if(_0xeb5ad2[_0x3cb790(0x250)]!==o['CommandType'][_0x3cb790(0x23a)]||!this[_0x3cb790(0x1de)][_0x3cb790(0x1ff)](_0xeb5ad2['id']))return;const {id:_0x12bb13}=_0xeb5ad2;let _0x28cae1;_0x28eaef['has'](_0x12bb13)?_0x28cae1=_0x28eaef[_0x3cb790(0x244)](_0x12bb13):(_0x28cae1=new D[(_0x3cb790(0x257))](),_0x28eaef[_0x3cb790(0x210)](_0x12bb13,_0x28cae1),_0x28cae1[_0x3cb790(0x1bd)](b[_0x3cb790(0x203)]((_0x14d509=this[_0x3cb790(0x20e)][_0x3cb790(0x1f2)](Z))!=null?_0x14d509:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x3cb790(0x269)](_0x41e0d4=>{var _0x166083=_0x3cb790;this[_0x166083(0x201)][_0x166083(0x26e)]({'eventID':_[_0x166083(0x21b)][_0x166083(0x27e)],'data':{'unitID':this[_0x166083(0x212)],'operations':{[_0x41e0d4['id']]:{'id':_0x41e0d4['id'],'params':JSON['stringify'](_0x41e0d4[_0x166083(0x1f1)])}}}},this[_0x166083(0x212)]);})),_0x28cae1[_0x3cb790(0x1fd)](_0xeb5ad2);})),this[_0x12e44f(0x1de)]['getInitialStates'](this[_0x12e44f(0x212)])[_0x12e44f(0x219)](_0x1082d0=>this[_0x12e44f(0x201)][_0x12e44f(0x26e)]({'eventID':_['CollaborationEvent'][_0x12e44f(0x27e)],'data':{'unitID':this['_unitID'],'operations':{[_0x1082d0['id']]:{'id':_0x1082d0['id'],'params':JSON[_0x12e44f(0x1cc)](_0x1082d0['params'])}}}},this[_0x12e44f(0x212)]));}['_stopPresenting'](){var _0x3959de=_0x172af3,_0x3f06b3;this[_0x3959de(0x1ae)][_0x3959de(0x1fd)]('idle'),(_0x3f06b3=this[_0x3959de(0x217)])==null||_0x3f06b3['dispose'](),this[_0x3959de(0x217)]=null;}['_startFollowing'](){var _0xca6c4c=_0x172af3,_0x27f480;(_0x27f480=this['_commandDisposable'])==null||_0x27f480[_0xca6c4c(0x224)](),this[_0xca6c4c(0x1ae)][_0xca6c4c(0x1fd)](_0xca6c4c(0x1c2));}[_0x172af3(0x259)](){var _0x613d3c=_0x172af3,_0x59f530;this[_0x613d3c(0x1ae)]['next'](_0x613d3c(0x1fa)),(_0x59f530=this['_commandDisposable'])==null||_0x59f530[_0x613d3c(0x224)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0xb28165=_0x172af3,_0x2c4655;this[_0xb28165(0x1ae)][_0xb28165(0x1fd)](_0xb28165(0x1ba)),(_0x2c4655=this[_0xb28165(0x217)])==null||_0x2c4655[_0xb28165(0x224)]();}['_handleOperation'](_0x471452){var _0x2dbe90=_0x172af3;if([_0x2dbe90(0x1f9),_0x2dbe90(0x1ba),_0x2dbe90(0x278)][_0x2dbe90(0x215)](this[_0x2dbe90(0x1c1)])||!_0x471452[_0x2dbe90(0x25c)][_0x2dbe90(0x220)]||_0x471452[_0x2dbe90(0x25c)][_0x2dbe90(0x220)]===this['_collabSession'][_0x2dbe90(0x1d3)]())return;this[_0x2dbe90(0x1c1)]===_0x2dbe90(0x1fa)&&this[_0x2dbe90(0x287)]();const _0x5bff11=_0x471452['data'][_0x2dbe90(0x21e)];Object[_0x2dbe90(0x271)](_0x5bff11)['forEach'](_0x3c7b0e=>{var _0x30f2e4=_0x2dbe90;this['_commandService'][_0x30f2e4(0x256)](_0x3c7b0e['id'],_0x3c7b0e['params']?JSON['parse'](_0x3c7b0e[_0x30f2e4(0x1f1)]):null,{'fromCollab':!0x0});});}[_0x172af3(0x1d4)](){var _0x5015c2=_0x172af3,_0x208275;this[_0x5015c2(0x1ae)][_0x5015c2(0x1fd)](_0x5015c2(0x278)),(_0x208275=this[_0x5015c2(0x217)])==null||_0x208275['dispose']();}[_0x172af3(0x1b3)](){var _0x4f5797=_0x172af3;this[_0x4f5797(0x1ae)][_0x4f5797(0x1fd)](_0x4f5797(0x1fa)),this[_0x4f5797(0x1ac)]();}},exports[_0x172af3(0x1aa)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0x172af3(0x275)](O)),S(0x4,o[_0x172af3(0x279)])],exports['LiveShareCoordinator']);function A(){var _0x520ebe=_0x172af3;const _0x1a3a7b=p['useDependency'](exports[_0x520ebe(0x22b)]),_0x321149=p[_0x520ebe(0x26b)](o[_0x520ebe(0x1ab)]),_0x1ee95c=p[_0x520ebe(0x214)](()=>_0x321149['getCurrentTypeOfUnit$'](o['UniverInstanceType'][_0x520ebe(0x222)]),void 0x0,!0x1,[]),[_0x2cbf31,_0x37d1c6]=f['useState'](null),[_0x76892c,_0x22ca62]=f[_0x520ebe(0x1ea)](h[_0x520ebe(0x229)]),_0x40d890=f[_0x520ebe(0x276)](null);return f[_0x520ebe(0x274)](()=>(_0x1ee95c&&_0x1a3a7b['getLiveShareCoordinator'](_0x1ee95c[_0x520ebe(0x24c)]())[_0x520ebe(0x28b)](_0x34df94=>{var _0x30f923=_0x520ebe;_0x37d1c6(_0x34df94),_0x40d890['current']=_0x34df94['status$'][_0x30f923(0x269)](_0x4ca6c8=>{_0x22ca62(_0x4ca6c8);});}),()=>{var _0x554879=_0x520ebe,_0x1b9a16;(_0x1b9a16=_0x40d890[_0x554879(0x23d)])==null||_0x1b9a16['unsubscribe'](),_0x40d890[_0x554879(0x23d)]=null;}),[_0x1ee95c,_0x1a3a7b]),_0x2cbf31?l[_0x520ebe(0x286)](g[_0x520ebe(0x285)],{'align':_0x520ebe(0x1fc),'disabled':_0x76892c===h[_0x520ebe(0x1a2)],'className':_0x520ebe(0x1a1),'overlay':l[_0x520ebe(0x286)](K,{'status':_0x76892c,'coordinator':_0x2cbf31}),'children':l['jsx'](_0x520ebe(0x1a9),{'className':g['clsx'](_0x520ebe(0x213),{'univer-cursor-not-allowed':_0x76892c===h[_0x520ebe(0x1a2)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x76892c!==h[_0x520ebe(0x1a2)]}),'type':_0x520ebe(0x1a9),'children':l[_0x520ebe(0x286)](P,{'className':'univer-size-4'})})}):null;}function K(_0x519f8e){var _0xdd543d=_0x172af3;const {status:_0x32d458,coordinator:_0x589d33}=_0x519f8e;switch(_0x32d458){case h['IDLE']:return l['jsx'](z,{'coordinator':_0x589d33});case h[_0xdd543d(0x1e1)]:return l[_0xdd543d(0x286)](Q,{'coordinator':_0x589d33});case h[_0xdd543d(0x282)]:return l[_0xdd543d(0x286)](X,{'coordinator':_0x589d33});case h[_0xdd543d(0x1a2)]:return l[_0xdd543d(0x286)](te,{});case h['PRESENTING']:return l[_0xdd543d(0x286)](ee,{'coordinator':_0x589d33});default:return null;}}function z(_0x225301){var _0xebb54c=_0x172af3;const {coordinator:_0x4b5a17}=_0x225301;return l[_0xebb54c(0x1d2)](l[_0xebb54c(0x1b5)],{'children':[l[_0xebb54c(0x286)](_0xebb54c(0x1f5),{'className':_0xebb54c(0x1b9),'children':_0xebb54c(0x23e)}),l[_0xebb54c(0x286)](g[_0xebb54c(0x1e0)],{'onClick':()=>_0x4b5a17[_0xebb54c(0x238)](),'children':_0xebb54c(0x25f)})]});}function _0x529f(_0x5a5c6e,_0x1019dc){var _0xfe4a35=_0xfe4a();return _0x529f=function(_0x529f65,_0x150e2e){_0x529f65=_0x529f65-0x1a1;var _0x2a1857=_0xfe4a35[_0x529f65];return _0x2a1857;},_0x529f(_0x5a5c6e,_0x1019dc);}function Q(_0x3fc891){var _0x25ddc4=_0x172af3;const {coordinator:_0x472b74}=_0x3fc891;return l['jsxs'](l['Fragment'],{'children':[l[_0x25ddc4(0x286)]('div',{'className':_0x25ddc4(0x1b9),'children':_0x25ddc4(0x270)}),l[_0x25ddc4(0x286)](g[_0x25ddc4(0x1e0)],{'onClick':()=>_0x472b74[_0x25ddc4(0x231)](),'children':'Stop\x20following'})]});}function X(_0xc28d81){var _0x91a38f=_0x172af3;const {coordinator:_0x1025ed}=_0xc28d81;return l[_0x91a38f(0x1d2)](l[_0x91a38f(0x1b5)],{'children':[l[_0x91a38f(0x286)](_0x91a38f(0x1f5),{'className':_0x91a38f(0x1b9),'children':_0x91a38f(0x1d8)}),l[_0x91a38f(0x286)](g[_0x91a38f(0x1e0)],{'variant':_0x91a38f(0x22e),'onClick':()=>_0x1025ed[_0x91a38f(0x1ec)](),'children':_0x91a38f(0x1b2)})]});}function _0xfe4a(){var _0x15bcf8=['UniverInstanceType','presenter','react/jsx-runtime','UNIVER_SHEET','1em','dispose','_init','rxjs/operators','map','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','IDLE','init','LiveShareController','colorChannel1','@univerjs/sheets','text','576838DyQmdr','reverse','stopFollowing','function','connectInjector','_config','DisposableCollection','_stopFollowing','replace','tryStartPresenting','SAME_OPERATION_SHARE_INTERVAL','OPERATION','LIVESHARE_NEW_HOST','apply','current','Present\x20this\x20document','status$','defineProperty','getTypeOfUnitDisposed$','SetWorksheetActiveOperation','concat','get','defs','SetScrollOperation','LiveShare','memberID','trim','requireSession','_injector','getUnitId','icon','_presenter','3830iwdCBQ','type','@univerjs-pro/collaboration-client','onStarting','_reporters','sessionStatus$','tag','executeCommand','Subject','dispose$','_beIdle','0\x200\x2017\x2017','@univerjs/sheets-ui','data','Stop\x20presenting','rxjs','Start','HEADER_MENU','parseProtocolChangeset','mutations','registerDependencies','registerSharedOperation','UNIVER_UNKNOWN','mergeOverrideWithDependencies','entries','forwardRef','subscribe','1908JrabbF','useDependency','_sharedOperations','_handleNewChangeSets','send','children','You\x27re\x20following\x20the\x20presenter','values','Disposable','add','useEffect','Inject','useRef','prototype','offline','ICommandService','_uiPartsService','187152ANZCuc','218590kIGcsp','_entities','LIVESHARE_OPERATION','25180sxINfq','onCommandExecuted','createInstance','NOT_FOLLOWING','className','string','Dropdown','jsx','_startFollowing','find','substring','xlink:href','then','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','OFFLINE','_handleNewHost','_commandService','has','_mountLiveShare','url(#$1','assign','button','LiveShareCoordinator','IUniverInstanceService','_fetchOperations','takeUntil','_status$','LiveShareService','none','LiveShareIcon','Start\x20following','_handleOnline','live-share.config','Fragment','343aGhnRo','length','_handleTerminate','univer-mb-3\x20univer-w-full\x20univer-text-sm','not-following','stopPresenting','_startPresenting','pipe','fill','getTypeOfUnitAdded$','toDisposable','_status','following','4569Iqowzg','LIVESHARE_TERMINATE','You\x27re\x20presenting\x20the\x20document','touchDependencies','setConfig','disposeWithMe','484PlEGmr','indexOf','live-share-icon','stringify','attrs','idSuffix','currentColor','univerjs-icon\x20univerjs-icon-','use','jsxs','getMemberID','_handleOffline','34134fFVFBv','UNIVER_LIVE_SHARE_PLUGIN','getLiveShareCoordinator','You\x27re\x20not\x20following\x20the\x20presenter','getOwnPropertySymbols','delete','hasOwnProperty','LIVESHARE_FETCH_OPERATIONS','merge','_liveShareService','LiveShareStatus','Button','FOLLOWING','getOwnPropertyDescriptor','SessionStatus','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','http://www.w3.org/2000/svg','PRESENTING','UniverIcon','pluginName','path','useState','svg','startFollowing','SetZoomRatioOperation','clear','symbol','evenodd','params','getConfig','CollaborationSessionService','BuiltInUIPart','div','registerInitialStateReporter','event$','RxDisposable','presenting','idle','displayName','end','next','complete','shouldShareOperation','_handleOperation','_collabSession','_univerInstanceService','throttleTime','IConfigService','_stopPresenting','Injector','DesktopLiveShareController','UniverLiveSharePlugin','defIds','createElement','mask','@univerjs/ui','_collabSessionService','_configService','toStringTag','set','call','_unitID','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','useObservable','includes','BehaviorSubject','_commandDisposable','Module','forEach','propertyIsEnumerable','CollaborationEvent','extend','_startLiveShareCoordinator','operations'];_0xfe4a=function(){return _0x15bcf8;};return _0xfe4a();}function ee(_0x4189c7){var _0x556d10=_0x172af3;const {coordinator:_0x37c51d}=_0x4189c7;return l[_0x556d10(0x1d2)](l[_0x556d10(0x1b5)],{'children':[l[_0x556d10(0x286)]('div',{'className':_0x556d10(0x1b9),'children':_0x556d10(0x1c5)}),l[_0x556d10(0x286)](g[_0x556d10(0x1e0)],{'variant':'default','onClick':()=>_0x37c51d[_0x556d10(0x1bb)](),'children':_0x556d10(0x25d)})]});}function te(){var _0x32c6ab=_0x172af3;return l[_0x32c6ab(0x286)](l[_0x32c6ab(0x1b5)],{'children':'You\x27are\x20offline.'});}var ie=Object[_0x172af3(0x1e2)],ne=(_0x38d755,_0x4645f8,_0x458bad,_0x19d222)=>{var _0x3f1f9a=_0x172af3;for(var _0x59cc44=_0x19d222>0x1?void 0x0:_0x19d222?ie(_0x4645f8,_0x458bad):_0x4645f8,_0x30f531=_0x38d755[_0x3f1f9a(0x1b7)]-0x1,_0x2cb840;_0x30f531>=0x0;_0x30f531--)(_0x2cb840=_0x38d755[_0x30f531])&&(_0x59cc44=_0x2cb840(_0x59cc44)||_0x59cc44);return _0x59cc44;},L=(_0x1ba22d,_0x449959)=>(_0x297955,_0x4a7fe8)=>_0x449959(_0x297955,_0x4a7fe8,_0x1ba22d);exports['DesktopLiveShareController']=class extends o[_0x172af3(0x272)]{constructor(_0x2cccb3,_0x3f8162){var _0x5be244=_0x172af3;super(),this['_injector']=_0x2cccb3,this[_0x5be244(0x27a)]=_0x3f8162,this[_0x5be244(0x1a6)]();}[_0x172af3(0x1a6)](){var _0x5d9905=_0x172af3;this['disposeWithMe'](this[_0x5d9905(0x27a)]['registerComponent'](p[_0x5d9905(0x1f4)][_0x5d9905(0x260)],()=>p[_0x5d9905(0x233)](A,this['_injector'])));}},exports[_0x172af3(0x207)]=ne([L(0x0,o[_0x172af3(0x275)](o[_0x172af3(0x206)])),L(0x1,p['IUIPartsService'])],exports[_0x172af3(0x207)]);var re=Object[_0x172af3(0x240)],se=Object[_0x172af3(0x1e2)],oe=(_0x33dfd5,_0x3bc0cf,_0x328d20)=>_0x3bc0cf in _0x33dfd5?re(_0x33dfd5,_0x3bc0cf,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x328d20}):_0x33dfd5[_0x3bc0cf]=_0x328d20,ae=(_0x2e319a,_0x5c80a8,_0x41e32b,_0x899ccf)=>{var _0xb79b10=_0x172af3;for(var _0x2cc470=_0x899ccf>0x1?void 0x0:_0x899ccf?se(_0x5c80a8,_0x41e32b):_0x5c80a8,_0x4e6f1b=_0x2e319a[_0xb79b10(0x1b7)]-0x1,_0xbaaa72;_0x4e6f1b>=0x0;_0x4e6f1b--)(_0xbaaa72=_0x2e319a[_0x4e6f1b])&&(_0x2cc470=_0xbaaa72(_0x2cc470)||_0x2cc470);return _0x2cc470;},N=(_0x304486,_0x3f580f)=>(_0x580357,_0x4796c1)=>_0x3f580f(_0x580357,_0x4796c1,_0x304486),T=(_0x59c203,_0x2995a6,_0x48f354)=>oe(_0x59c203,typeof _0x2995a6!=_0x172af3(0x1ef)?_0x2995a6+'':_0x2995a6,_0x48f354);const le=_0x172af3(0x1d6);exports['UniverLiveSharePlugin']=class extends o['Plugin']{constructor(_0x3f1094=x,_0x6d38a2,_0x48227c){var _0x3bb55a=_0x172af3;super(),this['_config']=_0x3f1094,this['_injector']=_0x6d38a2,this[_0x3bb55a(0x20e)]=_0x48227c;const {..._0x5909dc}=o[_0x3bb55a(0x1dd)]({},x,this[_0x3bb55a(0x234)]);this['_configService'][_0x3bb55a(0x1c7)]($,_0x5909dc);}[_0x172af3(0x252)](){var _0x5e1773=_0x172af3;o[_0x5e1773(0x263)](this[_0x5e1773(0x24b)],o[_0x5e1773(0x266)]([[O],[exports['LiveShareController']],[E],[exports[_0x5e1773(0x207)]]],this[_0x5e1773(0x234)]['override'])),o[_0x5e1773(0x1c6)](this['_injector'],[[E]]);}['onRendered'](){var _0x3f1bba=_0x172af3;o[_0x3f1bba(0x1c6)](this[_0x3f1bba(0x24b)],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x172af3(0x208)],_0x172af3(0x250),o['UniverInstanceType'][_0x172af3(0x265)]),T(exports[_0x172af3(0x208)],_0x172af3(0x1e8),le),exports[_0x172af3(0x208)]=ae([o['DependentOn'](m['UniverCollaborationClientPlugin']),N(0x1,o[_0x172af3(0x275)](o[_0x172af3(0x206)])),N(0x2,o[_0x172af3(0x204)])],exports[_0x172af3(0x208)]),exports[_0x172af3(0x247)]=A,exports[_0x172af3(0x1af)]=O,exports[_0x172af3(0x1df)]=h;
1
+ 'use strict';var _0xa5e750=_0x1427;(function(_0x3a2099,_0x2c6489){var _0x294478=_0x1427,_0x39c2e0=_0x3a2099();while(!![]){try{var _0x35d392=parseInt(_0x294478(0x26f))/0x1*(-parseInt(_0x294478(0x27b))/0x2)+parseInt(_0x294478(0x25e))/0x3+parseInt(_0x294478(0x283))/0x4+parseInt(_0x294478(0x1c6))/0x5+parseInt(_0x294478(0x211))/0x6+parseInt(_0x294478(0x1e7))/0x7+parseInt(_0x294478(0x1ef))/0x8*(-parseInt(_0x294478(0x20b))/0x9);if(_0x35d392===_0x2c6489)break;else _0x39c2e0['push'](_0x39c2e0['shift']());}catch(_0x4c63bc){_0x39c2e0['push'](_0x39c2e0['shift']());}}}(_0x579a,0xa4928));var U=Object[_0xa5e750(0x207)],F=(_0x27f860,_0x3546ac,_0x4932d9)=>_0x3546ac in _0x27f860?U(_0x27f860,_0x3546ac,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4932d9}):_0x27f860[_0x3546ac]=_0x4932d9,v=(_0x2ff16e,_0x467970,_0x171c56)=>F(_0x2ff16e,typeof _0x467970!=_0xa5e750(0x268)?_0x467970+'':_0x467970,_0x171c56);Object[_0xa5e750(0x207)](exports,Symbol[_0xa5e750(0x286)],{'value':_0xa5e750(0x28c)});const m=require('@univerjs-pro/collaboration-client'),o=require(_0xa5e750(0x20e)),C=require(_0xa5e750(0x236)),w=require(_0xa5e750(0x225)),p=require(_0xa5e750(0x288)),l=require('react/jsx-runtime'),g=require(_0xa5e750(0x1bd)),f=require('react'),_=require(_0xa5e750(0x25b)),D=require(_0xa5e750(0x22b)),b=require(_0xa5e750(0x209)),$=_0xa5e750(0x1fe),x={};class O extends o[_0xa5e750(0x210)]{constructor(){var _0x305b91=_0xa5e750;super(...arguments),v(this,_0x305b91(0x296),new Set()),v(this,_0x305b91(0x1be),new Set());}[_0xa5e750(0x22f)](_0x38c510){var _0x9fa6c1=_0xa5e750;return this[_0x9fa6c1(0x296)]['add'](_0x38c510),o[_0x9fa6c1(0x1d9)](()=>this[_0x9fa6c1(0x296)][_0x9fa6c1(0x237)](_0x38c510));}[_0xa5e750(0x291)](_0x29db58){var _0x4164d6=_0xa5e750;return this[_0x4164d6(0x1be)][_0x4164d6(0x1c4)](_0x29db58),o[_0x4164d6(0x1d9)](()=>this[_0x4164d6(0x1be)]['delete'](_0x29db58));}[_0xa5e750(0x257)](_0x198211){var _0x18d8be=_0xa5e750;return this[_0x18d8be(0x296)][_0x18d8be(0x1bc)](_0x198211);}[_0xa5e750(0x1e2)](_0x44de0b){var _0x1077e0=_0xa5e750;return Array['from'](this[_0x1077e0(0x1be)])[_0x1077e0(0x1ee)](_0x3eaf52=>_0x3eaf52(_0x44de0b));}}var H=Object[_0xa5e750(0x1d4)],V=(_0x3df9f9,_0x10e0a1,_0xeec80,_0x4ca410)=>{var _0x7b5a1a=_0xa5e750;for(var _0x264fc3=_0x4ca410>0x1?void 0x0:_0x4ca410?H(_0x10e0a1,_0xeec80):_0x10e0a1,_0x57df8c=_0x3df9f9[_0x7b5a1a(0x25a)]-0x1,_0x352e94;_0x57df8c>=0x0;_0x57df8c--)(_0x352e94=_0x3df9f9[_0x57df8c])&&(_0x264fc3=_0x352e94(_0x264fc3)||_0x264fc3);return _0x264fc3;},k=(_0x4de807,_0x1c6048)=>(_0x5ce981,_0x5240be)=>_0x1c6048(_0x5ce981,_0x5240be,_0x4de807);let E=class extends o[_0xa5e750(0x210)]{constructor(_0x114034){var _0x5ecb7b=_0xa5e750;super(),this[_0x5ecb7b(0x28b)]=_0x114034,this[_0x5ecb7b(0x1d2)]();}[_0xa5e750(0x1d2)](){var _0x2841c8=_0xa5e750;[w['SetZoomRatioOperation']['id'],w['SetScrollOperation']['id'],C['SetWorksheetActiveOperation']['id']][_0x2841c8(0x220)](_0xe92224=>{var _0x3e37c0=_0x2841c8;this[_0x3e37c0(0x27a)](this[_0x3e37c0(0x28b)][_0x3e37c0(0x22f)](_0xe92224));});}};E=V([k(0x0,o['Inject'](O))],E);var u=function(){var _0x392da8=_0xa5e750;return u=Object[_0x392da8(0x27c)]||function(_0x463b93){var _0x5050d2=_0x392da8;for(var _0x250626,_0x42c21f=0x1,_0x40f65a=arguments['length'];_0x42c21f<_0x40f65a;_0x42c21f++){_0x250626=arguments[_0x42c21f];for(var _0x16fcc3 in _0x250626)Object[_0x5050d2(0x1c0)]['hasOwnProperty'][_0x5050d2(0x267)](_0x250626,_0x16fcc3)&&(_0x463b93[_0x16fcc3]=_0x250626[_0x16fcc3]);}return _0x463b93;},u[_0x392da8(0x269)](this,arguments);},M=function(_0x326e60,_0x796c96){var _0x5283e5=_0xa5e750,_0x30bae3={};for(var _0x4e1416 in _0x326e60)Object[_0x5283e5(0x1c0)][_0x5283e5(0x277)][_0x5283e5(0x267)](_0x326e60,_0x4e1416)&&_0x796c96[_0x5283e5(0x20a)](_0x4e1416)<0x0&&(_0x30bae3[_0x4e1416]=_0x326e60[_0x4e1416]);if(_0x326e60!=null&&typeof Object[_0x5283e5(0x270)]=='function'){for(var _0x261e39=0x0,_0x4e1416=Object[_0x5283e5(0x270)](_0x326e60);_0x261e39<_0x4e1416[_0x5283e5(0x25a)];_0x261e39++)_0x796c96[_0x5283e5(0x20a)](_0x4e1416[_0x261e39])<0x0&&Object[_0x5283e5(0x1c0)][_0x5283e5(0x216)][_0x5283e5(0x267)](_0x326e60,_0x4e1416[_0x261e39])&&(_0x30bae3[_0x4e1416[_0x261e39]]=_0x326e60[_0x4e1416[_0x261e39]]);}return _0x30bae3;},j=f['forwardRef'](function(_0x1dae0e,_0x2e0ca8){var _0x2ebfa6=_0xa5e750,_0x193ade=_0x1dae0e['icon'],_0x5d24ff=_0x1dae0e['id'],_0x5494dc=_0x1dae0e[_0x2ebfa6(0x1c2)],_0x5643de=_0x1dae0e[_0x2ebfa6(0x1c9)],_0x471693=M(_0x1dae0e,[_0x2ebfa6(0x217),'id',_0x2ebfa6(0x1c2),_0x2ebfa6(0x1c9)]),_0x49df46=_0x2ebfa6(0x202)[_0x2ebfa6(0x272)](_0x5d24ff,'\x20')[_0x2ebfa6(0x272)](_0x5494dc||'')['trim'](),_0xd8bbc9=f[_0x2ebfa6(0x1ca)]('_'[_0x2ebfa6(0x272)](G()));return y(_0x193ade,''['concat'](_0x5d24ff),{'defIds':_0x193ade[_0x2ebfa6(0x1ba)],'idSuffix':_0xd8bbc9[_0x2ebfa6(0x1c8)]},u({'ref':_0x2e0ca8,'className':_0x49df46},_0x471693),_0x5643de);});function _0x1427(_0x59f758,_0x4c83bd){var _0x579afb=_0x579a();return _0x1427=function(_0x142746,_0x584457){_0x142746=_0x142746-0x1b3;var _0x5c5c8c=_0x579afb[_0x142746];return _0x5c5c8c;},_0x1427(_0x59f758,_0x4c83bd);}function y(_0x13e881,_0x3f5035,_0x3d4ae3,_0x24f533,_0x43dd40){var _0xaf73a2=_0xa5e750;return f[_0xaf73a2(0x27e)](_0x13e881[_0xaf73a2(0x21f)],u(u({'key':_0x3f5035},q(_0x13e881,_0x3d4ae3,_0x43dd40)),_0x24f533),(W(_0x13e881,_0x3d4ae3)[_0xaf73a2(0x242)]||[])[_0xaf73a2(0x1ee)](function(_0x961280,_0x39c234){var _0x4ac999=_0xaf73a2;return y(_0x961280,''['concat'](_0x3f5035,'-')[_0x4ac999(0x272)](_0x13e881[_0x4ac999(0x21f)],'-')[_0x4ac999(0x272)](_0x39c234),_0x3d4ae3,void 0x0,_0x43dd40);}));}function q(_0x4ed046,_0x395c8b,_0x10bcd6){var _0x3e4715=_0xa5e750,_0x57ae5f=u({},_0x4ed046['attrs']);_0x10bcd6!=null&&_0x10bcd6[_0x3e4715(0x1cb)]&&_0x57ae5f[_0x3e4715(0x230)]===_0x3e4715(0x1cb)&&(_0x57ae5f['fill']=_0x10bcd6[_0x3e4715(0x1cb)]),_0x4ed046['tag']===_0x3e4715(0x1df)&&_0x57ae5f['id']&&(_0x57ae5f['id']=_0x57ae5f['id']+_0x395c8b[_0x3e4715(0x243)]),Object[_0x3e4715(0x1ed)](_0x57ae5f)['forEach'](function(_0x1f2ed7){var _0x3f9f89=_0x3e4715,_0x841cd9=_0x1f2ed7[0x0],_0x4da890=_0x1f2ed7[0x1];_0x841cd9===_0x3f9f89(0x1df)&&typeof _0x4da890=='string'&&(_0x57ae5f[_0x841cd9]=_0x4da890[_0x3f9f89(0x219)](/url\(#(.*)\)/,_0x3f9f89(0x256)[_0x3f9f89(0x272)](_0x395c8b[_0x3f9f89(0x243)],')')));});var _0x4732ee=_0x395c8b[_0x3e4715(0x1ba)];return!_0x4732ee||_0x4732ee[_0x3e4715(0x25a)]===0x0||(_0x4ed046[_0x3e4715(0x21f)]===_0x3e4715(0x214)&&_0x57ae5f[_0x3e4715(0x23c)]&&(_0x57ae5f[_0x3e4715(0x23c)]=_0x57ae5f[_0x3e4715(0x23c)]+_0x395c8b[_0x3e4715(0x243)]),Object['entries'](_0x57ae5f)['forEach'](function(_0x50b6c8){var _0x583ccc=_0x3e4715,_0x5beea8=_0x50b6c8[0x0],_0x5b2706=_0x50b6c8[0x1];typeof _0x5b2706=='string'&&(_0x57ae5f[_0x5beea8]=_0x5b2706[_0x583ccc(0x219)](/url\(#(.*)\)/,_0x583ccc(0x256)[_0x583ccc(0x272)](_0x395c8b['idSuffix'],')')));})),_0x57ae5f;}function W(_0x4da65f,_0x11207e){var _0x294823=_0xa5e750,_0x2c6192,_0x597e78=_0x11207e[_0x294823(0x1ba)];return!_0x597e78||_0x597e78[_0x294823(0x25a)]===0x0?_0x4da65f:_0x4da65f[_0x294823(0x21f)]===_0x294823(0x21b)&&(!((_0x2c6192=_0x4da65f['children'])===null||_0x2c6192===void 0x0)&&_0x2c6192[_0x294823(0x25a)])?u(u({},_0x4da65f),{'children':_0x4da65f[_0x294823(0x242)][_0x294823(0x1ee)](function(_0x508270){var _0x13a789=_0x294823;return typeof _0x508270[_0x13a789(0x1c1)]['id']==_0x13a789(0x1dd)&&_0x597e78&&_0x597e78[_0x13a789(0x28e)](_0x508270[_0x13a789(0x1c1)]['id'])?u(u({},_0x508270),{'attrs':u(u({},_0x508270['attrs']),{'id':_0x508270[_0x13a789(0x1c1)]['id']+_0x11207e[_0x13a789(0x243)]})}):_0x508270;})}):_0x4da65f;}function G(){var _0x2faa19=_0xa5e750;return Math[_0x2faa19(0x294)]()[_0x2faa19(0x1e5)](0x24)['substring'](0x2,0x8);}j[_0xa5e750(0x224)]=_0xa5e750(0x24f);var B={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0xa5e750(0x1e8),'viewBox':_0xa5e750(0x208),'width':_0xa5e750(0x201),'height':_0xa5e750(0x201)},'children':[{'tag':_0xa5e750(0x1cc),'attrs':{'fill':_0xa5e750(0x246),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':_0xa5e750(0x1cc),'attrs':{'fill':_0xa5e750(0x246),'d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0xa5e750(0x22a),'clipRule':_0xa5e750(0x22a)}}]},P=f[_0xa5e750(0x23d)](function(_0x3b2684,_0x242a01){var _0x59e391=_0xa5e750;return f['createElement'](j,Object[_0x59e391(0x27c)]({},_0x3b2684,{'id':_0x59e391(0x1ea),'ref':_0x242a01,'icon':B}));});P[_0xa5e750(0x224)]='LiveShareIcon';var Y=Object['getOwnPropertyDescriptor'],R=(_0x4f0f08,_0xb9017a,_0x165826,_0x45149a)=>{var _0x2cb5e7=_0xa5e750;for(var _0x24c8e9=_0x45149a>0x1?void 0x0:_0x45149a?Y(_0xb9017a,_0x165826):_0xb9017a,_0xe4ed03=_0x4f0f08[_0x2cb5e7(0x25a)]-0x1,_0x32271f;_0xe4ed03>=0x0;_0xe4ed03--)(_0x32271f=_0x4f0f08[_0xe4ed03])&&(_0x24c8e9=_0x32271f(_0x24c8e9)||_0x24c8e9);return _0x24c8e9;},S=(_0x4b2726,_0x361251)=>(_0x50c3d8,_0x2e8ea9)=>_0x361251(_0x50c3d8,_0x2e8ea9,_0x4b2726);exports[_0xa5e750(0x1de)]=class extends o['RxDisposable']{constructor(_0x52a189,_0x1f148f,_0x1ab9eb){var _0x54e3a1=_0xa5e750;super(),v(this,_0x54e3a1(0x278),new Map()),(this[_0x54e3a1(0x27d)]=_0x52a189,this[_0x54e3a1(0x222)]=_0x1f148f,this[_0x54e3a1(0x22e)]=_0x1ab9eb,this[_0x54e3a1(0x1d2)]());}async[_0xa5e750(0x1c3)](_0x3611ce){var _0xfab578=_0xa5e750;return this[_0xfab578(0x278)][_0xfab578(0x1bc)](_0x3611ce)||await this[_0xfab578(0x20d)](_0x3611ce),this[_0xfab578(0x278)]['get'](_0x3611ce);}[_0xa5e750(0x1d2)](){var _0x5c46f4=_0xa5e750;this[_0x5c46f4(0x27d)][_0x5c46f4(0x1da)](o[_0x5c46f4(0x1dc)][_0x5c46f4(0x1f2)])[_0x5c46f4(0x1f0)](b[_0x5c46f4(0x23f)](this[_0x5c46f4(0x265)]))[_0x5c46f4(0x258)](async _0x1b9000=>{var _0x609f40=_0x5c46f4;const _0x3a8d6d=_0x1b9000[_0x609f40(0x280)]();this[_0x609f40(0x278)][_0x609f40(0x1bc)](_0x3a8d6d)||this[_0x609f40(0x20d)](_0x3a8d6d);}),this['_univerInstanceService'][_0x5c46f4(0x295)](o['UniverInstanceType'][_0x5c46f4(0x1f2)])[_0x5c46f4(0x1f0)](b[_0x5c46f4(0x23f)](this[_0x5c46f4(0x265)]))[_0x5c46f4(0x258)](_0x2d8077=>{var _0x3c3c63=_0x5c46f4;const _0x438436=_0x2d8077['getUnitId'](),_0x48c5c2=this[_0x3c3c63(0x278)]['get'](_0x438436);_0x48c5c2==null||_0x48c5c2[_0x3c3c63(0x249)]();});}async[_0xa5e750(0x20d)](_0x75a2b3){var _0x3c3e52=_0xa5e750;const _0x5c2ba4=await this['_collabSessionService'][_0x3c3e52(0x1fa)](_0x75a2b3),_0x21a67b=this['_injector'][_0x3c3e52(0x1b3)](exports['LiveShareCoordinator'],_0x75a2b3,_0x5c2ba4);return _0x21a67b[_0x3c3e52(0x232)](),this[_0x3c3e52(0x278)][_0x3c3e52(0x21d)](_0x75a2b3,_0x21a67b),_0x21a67b;}},exports[_0xa5e750(0x1de)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o[_0xa5e750(0x287)](o['Injector'])),S(0x2,o['Inject'](m[_0xa5e750(0x290)]))],exports[_0xa5e750(0x1de)]);var h=(_0x4911f0=>(_0x4911f0[_0xa5e750(0x285)]=_0xa5e750(0x234),_0x4911f0[_0xa5e750(0x25c)]='idle',_0x4911f0[_0xa5e750(0x241)]=_0xa5e750(0x1e0),_0x4911f0[_0xa5e750(0x1e9)]=_0xa5e750(0x26a),_0x4911f0[_0xa5e750(0x292)]=_0xa5e750(0x248),_0x4911f0))(h||{});const Z='SAME_OPERATION_SHARE_INTERVAL',J=0xc8;exports['LiveShareCoordinator']=class extends o[_0xa5e750(0x21e)]{constructor(_0x309313,_0x1ab477,_0x4d8b56,_0x1186fe,_0x96045){var _0x499508=_0xa5e750;super(),v(this,_0x499508(0x1b7),new D[(_0x499508(0x20c))](_0x499508(0x23a))),v(this,'status$',this[_0x499508(0x1b7)]['asObservable']()),v(this,_0x499508(0x1d2),!0x1),v(this,_0x499508(0x1f3),null),v(this,_0x499508(0x1b9),null),(this['_unitID']=_0x309313,this['_collabSession']=_0x1ab477,this[_0x499508(0x279)]=_0x4d8b56,this[_0x499508(0x28b)]=_0x1186fe,this[_0x499508(0x215)]=_0x96045);}get['_status'](){var _0x3dd341=_0xa5e750;return this[_0x3dd341(0x1b7)][_0x3dd341(0x261)]();}[_0xa5e750(0x249)](){var _0x50acf3=_0xa5e750,_0x46bca0;(_0x46bca0=this[_0x50acf3(0x1f3)])==null||_0x46bca0[_0x50acf3(0x249)](),this[_0x50acf3(0x1b7)][_0x50acf3(0x204)](_0x50acf3(0x23a)),this[_0x50acf3(0x1b7)]['complete']();}[_0xa5e750(0x232)](){var _0x51c548=_0xa5e750;this['_init']||(this[_0x51c548(0x1d2)]=!0x0,this[_0x51c548(0x221)][_0x51c548(0x24d)][_0x51c548(0x1f0)](b[_0x51c548(0x23f)](this['dispose$']))[_0x51c548(0x258)](_0x412b58=>{var _0x2a55b4=_0x51c548;switch(_0x412b58){case m['SessionStatus'][_0x2a55b4(0x285)]:this['_handleOffline']();break;case m[_0x2a55b4(0x1cd)][_0x2a55b4(0x1f4)]:this[_0x2a55b4(0x1ff)]();break;}}),this[_0x51c548(0x221)][_0x51c548(0x22d)][_0x51c548(0x1f0)](b[_0x51c548(0x23f)](this[_0x51c548(0x265)]))[_0x51c548(0x258)](_0x14d02a=>{var _0x48b152=_0x51c548;const {eventID:_0x20187f}=_0x14d02a;switch(_0x20187f){case _[_0x48b152(0x1f6)]['LIVESHARE_NEW_HOST']:this[_0x48b152(0x1d8)](_0x14d02a);break;case _[_0x48b152(0x1f6)][_0x48b152(0x1fb)]:this[_0x48b152(0x250)](_0x14d02a);break;case _[_0x48b152(0x1f6)]['LIVESHARE_TERMINATE']:this[_0x48b152(0x205)]();break;case _['CollaborationEvent'][_0x48b152(0x284)]:this[_0x48b152(0x223)](_0x14d02a);break;}}));}[_0xa5e750(0x238)](){var _0x6b93fa=_0xa5e750;this[_0x6b93fa(0x221)]['send']({'eventID':_[_0x6b93fa(0x1f6)][_0x6b93fa(0x263)],'data':{'unitID':this[_0x6b93fa(0x27f)],'userID':this[_0x6b93fa(0x221)][_0x6b93fa(0x273)]()}},this[_0x6b93fa(0x27f)]);}[_0xa5e750(0x1eb)](){var _0x5d0938=_0xa5e750;this[_0x5d0938(0x1d5)]===_0x5d0938(0x248)&&(this[_0x5d0938(0x1b7)][_0x5d0938(0x204)](_0x5d0938(0x23a)),this[_0x5d0938(0x221)][_0x5d0938(0x1e6)]({'eventID':_[_0x5d0938(0x1f6)][_0x5d0938(0x260)],'data':{'unitID':this[_0x5d0938(0x27f)]}},this[_0x5d0938(0x27f)]));}['startFollowing'](){var _0xc77e24=_0xa5e750;this[_0xc77e24(0x1d5)]===_0xc77e24(0x26a)&&(this[_0xc77e24(0x1b7)]['next']('following'),this[_0xc77e24(0x226)]());}[_0xa5e750(0x28f)](){var _0x3434cd=_0xa5e750;this[_0x3434cd(0x1d5)]===_0x3434cd(0x1e0)&&this[_0x3434cd(0x275)]();}[_0xa5e750(0x1d8)](_0x1bb734){var _0x858164=_0xa5e750;const {presenter:_0x3ab232}=_0x1bb734[_0x858164(0x1d1)],_0x594941=this[_0x858164(0x221)][_0x858164(0x273)]();this['_presenter']=_0x3ab232,_0x3ab232===_0x594941?(this[_0x858164(0x275)](),this[_0x858164(0x23b)]()):this[_0x858164(0x1d5)]!==_0x858164(0x26a)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0xa5e750(0x1f9)](){var _0x3c5fab=_0xa5e750;const _0x3eddbb={'eventID':_[_0x3c5fab(0x1f6)][_0x3c5fab(0x1ce)]};this['_collabSession'][_0x3c5fab(0x1e6)](_0x3eddbb,this[_0x3c5fab(0x27f)]);}[_0xa5e750(0x205)](){var _0x2da9b2=_0xa5e750;this[_0x2da9b2(0x1b9)]=null,this[_0x2da9b2(0x1d5)]!==_0x2da9b2(0x248)&&this['_beIdle']();}[_0xa5e750(0x223)](_0x5b1b8e){var _0x1a2223=_0xa5e750;if(this[_0x1a2223(0x1d5)]===_0x1a2223(0x1e0)&&this[_0x1a2223(0x1b9)]===_0x5b1b8e[_0x1a2223(0x1d1)][_0x1a2223(0x228)]){const _0x8621=_[_0x1a2223(0x1f8)](_0x5b1b8e[_0x1a2223(0x1d1)])['mutations'][_0x1a2223(0x200)]()[_0x1a2223(0x1e3)](_0x5a731a=>_0x5a731a['id']===C['InsertSheetMutation']['id']);if(_0x8621){const _0x56bafc=_0x8621[_0x1a2223(0x266)][_0x1a2223(0x26d)],_0x24b29f=_0x8621[_0x1a2223(0x266)][_0x1a2223(0x1f1)]['id'];setTimeout(()=>{var _0xf67a06=_0x1a2223;this[_0xf67a06(0x215)]['executeCommand'](C[_0xf67a06(0x1c5)]['id'],{'unitId':_0x56bafc,'subUnitId':_0x24b29f},{'fromCollab':!0x0});});}}}[_0xa5e750(0x23b)](){var _0x783db8=_0xa5e750;this[_0x783db8(0x1b7)]['next'](_0x783db8(0x248));const _0x31f12c=new Map(),_0x5b09b5=this[_0x783db8(0x1f3)]=new o[(_0x783db8(0x21c))]();_0x5b09b5['add'](o[_0x783db8(0x1d9)](()=>{var _0x3744e2=_0x783db8;_0x31f12c[_0x3744e2(0x220)](_0x4183ad=>_0x4183ad['complete']()),_0x31f12c[_0x3744e2(0x24b)]();})),_0x5b09b5[_0x783db8(0x1c4)](this['_commandService'][_0x783db8(0x1bf)](_0x42550a=>{var _0x476038=_0x783db8,_0x40a94b;if(_0x42550a[_0x476038(0x1d6)]!==o[_0x476038(0x239)][_0x476038(0x276)]||!this[_0x476038(0x28b)][_0x476038(0x257)](_0x42550a['id']))return;const {id:_0x5c3c91}=_0x42550a;let _0x570e6a;_0x31f12c[_0x476038(0x1bc)](_0x5c3c91)?_0x570e6a=_0x31f12c[_0x476038(0x252)](_0x5c3c91):(_0x570e6a=new D[(_0x476038(0x1c7))](),_0x31f12c['set'](_0x5c3c91,_0x570e6a),_0x570e6a[_0x476038(0x1f0)](b[_0x476038(0x1d7)]((_0x40a94b=this[_0x476038(0x279)][_0x476038(0x1fd)](Z))!=null?_0x40a94b:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x476038(0x258)](_0xa49e6e=>{var _0x43bb5f=_0x476038;this['_collabSession']['send']({'eventID':_['CollaborationEvent'][_0x43bb5f(0x1fb)],'data':{'unitID':this[_0x43bb5f(0x27f)],'operations':{[_0xa49e6e['id']]:{'id':_0xa49e6e['id'],'params':JSON['stringify'](_0xa49e6e[_0x43bb5f(0x266)])}}}},this[_0x43bb5f(0x27f)]);})),_0x570e6a[_0x476038(0x204)](_0x42550a);})),this['_liveShareService'][_0x783db8(0x1e2)](this[_0x783db8(0x27f)])[_0x783db8(0x220)](_0xbc8ab4=>this[_0x783db8(0x221)][_0x783db8(0x1e6)]({'eventID':_[_0x783db8(0x1f6)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x783db8(0x27f)],'operations':{[_0xbc8ab4['id']]:{'id':_0xbc8ab4['id'],'params':JSON[_0x783db8(0x218)](_0xbc8ab4[_0x783db8(0x266)])}}}},this[_0x783db8(0x27f)]));}['_stopPresenting'](){var _0x157f73=_0xa5e750,_0x253ad2;this[_0x157f73(0x1b7)][_0x157f73(0x204)](_0x157f73(0x23a)),(_0x253ad2=this[_0x157f73(0x1f3)])==null||_0x253ad2[_0x157f73(0x249)](),this[_0x157f73(0x1f3)]=null;}[_0xa5e750(0x226)](){var _0x530f57=_0xa5e750,_0x1e723b;(_0x1e723b=this[_0x530f57(0x1f3)])==null||_0x1e723b[_0x530f57(0x249)](),this['_status$'][_0x530f57(0x204)](_0x530f57(0x1e0));}['_beIdle'](){var _0xab2e57=_0xa5e750,_0x2a4539;this[_0xab2e57(0x1b7)][_0xab2e57(0x204)](_0xab2e57(0x23a)),(_0x2a4539=this[_0xab2e57(0x1f3)])==null||_0x2a4539[_0xab2e57(0x249)](),this[_0xab2e57(0x1f3)]=null;}[_0xa5e750(0x275)](){var _0x623924=_0xa5e750,_0x5003a5;this['_status$'][_0x623924(0x204)](_0x623924(0x26a)),(_0x5003a5=this[_0x623924(0x1f3)])==null||_0x5003a5[_0x623924(0x249)]();}['_handleOperation'](_0x3dcd52){var _0x474f2b=_0xa5e750;if(['presenting',_0x474f2b(0x26a),_0x474f2b(0x234)]['includes'](this['_status'])||!_0x3dcd52['data'][_0x474f2b(0x274)]||_0x3dcd52[_0x474f2b(0x1d1)]['presenter']===this[_0x474f2b(0x221)]['getMemberID']())return;this[_0x474f2b(0x1d5)]===_0x474f2b(0x23a)&&this[_0x474f2b(0x226)]();const _0x51d4d0=_0x3dcd52[_0x474f2b(0x1d1)][_0x474f2b(0x1d0)];Object[_0x474f2b(0x20f)](_0x51d4d0)['forEach'](_0x428f26=>{var _0x449ef6=_0x474f2b;this['_commandService'][_0x449ef6(0x244)](_0x428f26['id'],_0x428f26['params']?JSON[_0x449ef6(0x25d)](_0x428f26[_0x449ef6(0x266)]):null,{'fromCollab':!0x0});});}[_0xa5e750(0x21a)](){var _0x53e5ff=_0xa5e750,_0x1704bc;this['_status$'][_0x53e5ff(0x204)](_0x53e5ff(0x234)),(_0x1704bc=this[_0x53e5ff(0x1f3)])==null||_0x1704bc['dispose']();}[_0xa5e750(0x1ff)](){var _0xec006f=_0xa5e750;this[_0xec006f(0x1b7)][_0xec006f(0x204)](_0xec006f(0x23a)),this[_0xec006f(0x1f9)]();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0xa5e750(0x28a)]),S(0x3,o[_0xa5e750(0x287)](O)),S(0x4,o['ICommandService'])],exports[_0xa5e750(0x231)]);function A(){var _0x359688=_0xa5e750;const _0x2c96c8=p['useDependency'](exports[_0x359688(0x1de)]),_0x9a7d8b=p[_0x359688(0x281)](o['IUniverInstanceService']),_0x11f600=p['useObservable'](()=>_0x9a7d8b[_0x359688(0x264)](o[_0x359688(0x1dc)]['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x85b397,_0x858f62]=f[_0x359688(0x1e4)](null),[_0x17d22d,_0x3ebaba]=f[_0x359688(0x1e4)](h['IDLE']),_0x16fc6b=f['useRef'](null);return f['useEffect'](()=>(_0x11f600&&_0x2c96c8[_0x359688(0x1c3)](_0x11f600[_0x359688(0x280)]())['then'](_0x56f002=>{var _0x77d99b=_0x359688;_0x858f62(_0x56f002),_0x16fc6b['current']=_0x56f002[_0x77d99b(0x24a)][_0x77d99b(0x258)](_0x397ba1=>{_0x3ebaba(_0x397ba1);});}),()=>{var _0x4f1807=_0x359688,_0x32c1ff;(_0x32c1ff=_0x16fc6b[_0x4f1807(0x1c8)])==null||_0x32c1ff[_0x4f1807(0x229)](),_0x16fc6b[_0x4f1807(0x1c8)]=null;}),[_0x11f600,_0x2c96c8]),_0x85b397?l[_0x359688(0x1bb)](g[_0x359688(0x1b6)],{'align':'end','disabled':_0x17d22d===h[_0x359688(0x285)],'className':_0x359688(0x227),'overlay':l[_0x359688(0x1bb)](K,{'status':_0x17d22d,'coordinator':_0x85b397}),'children':l[_0x359688(0x1bb)](_0x359688(0x26e),{'className':g['clsx'](_0x359688(0x1b8),{'univer-cursor-not-allowed':_0x17d22d===h[_0x359688(0x285)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x17d22d!==h['OFFLINE']}),'type':_0x359688(0x26e),'children':l['jsx'](P,{'className':'univer-size-4'})})}):null;}function K(_0x1d2a49){var _0x38d00=_0xa5e750;const {status:_0x59c6ce,coordinator:_0x11fd8d}=_0x1d2a49;switch(_0x59c6ce){case h[_0x38d00(0x25c)]:return l['jsx'](z,{'coordinator':_0x11fd8d});case h[_0x38d00(0x241)]:return l[_0x38d00(0x1bb)](Q,{'coordinator':_0x11fd8d});case h[_0x38d00(0x1e9)]:return l[_0x38d00(0x1bb)](X,{'coordinator':_0x11fd8d});case h[_0x38d00(0x285)]:return l[_0x38d00(0x1bb)](te,{});case h[_0x38d00(0x292)]:return l[_0x38d00(0x1bb)](ee,{'coordinator':_0x11fd8d});default:return null;}}function z(_0x3273e6){var _0x25b1a1=_0xa5e750;const {coordinator:_0x1d6b4c}=_0x3273e6;return l['jsxs'](l[_0x25b1a1(0x1b5)],{'children':[l[_0x25b1a1(0x1bb)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':'Present\x20this\x20document'}),l[_0x25b1a1(0x1bb)](g[_0x25b1a1(0x28d)],{'onClick':()=>_0x1d6b4c[_0x25b1a1(0x238)](),'children':_0x25b1a1(0x206)})]});}function Q(_0x489e7b){var _0x70c163=_0xa5e750;const {coordinator:_0x52471e}=_0x489e7b;return l[_0x70c163(0x1f5)](l[_0x70c163(0x1b5)],{'children':[l[_0x70c163(0x1bb)](_0x70c163(0x26c),{'className':_0x70c163(0x1db),'children':_0x70c163(0x254)}),l[_0x70c163(0x1bb)](g['Button'],{'onClick':()=>_0x52471e[_0x70c163(0x28f)](),'children':_0x70c163(0x203)})]});}function X(_0x3b9d27){var _0x29e2f6=_0xa5e750;const {coordinator:_0x3ac489}=_0x3b9d27;return l[_0x29e2f6(0x1f5)](l[_0x29e2f6(0x1b5)],{'children':[l[_0x29e2f6(0x1bb)]('div',{'className':'univer-mb-3\x20univer-w-full\x20univer-text-sm','children':_0x29e2f6(0x271)}),l['jsx'](g[_0x29e2f6(0x28d)],{'variant':_0x29e2f6(0x1b4),'onClick':()=>_0x3ac489['startFollowing'](),'children':_0x29e2f6(0x1cf)})]});}function ee(_0x2999aa){var _0x817c6a=_0xa5e750;const {coordinator:_0x50a5a5}=_0x2999aa;return l[_0x817c6a(0x1f5)](l[_0x817c6a(0x1b5)],{'children':[l[_0x817c6a(0x1bb)](_0x817c6a(0x26c),{'className':_0x817c6a(0x1db),'children':'You\x27re\x20presenting\x20the\x20document'}),l[_0x817c6a(0x1bb)](g['Button'],{'variant':'default','onClick':()=>_0x50a5a5[_0x817c6a(0x1eb)](),'children':_0x817c6a(0x213)})]});}function te(){var _0x2b1bc3=_0xa5e750;return l[_0x2b1bc3(0x1bb)](l[_0x2b1bc3(0x1b5)],{'children':'You\x27are\x20offline.'});}var ie=Object[_0xa5e750(0x1d4)],ne=(_0x411536,_0x436db9,_0x4b9b80,_0x2dc80c)=>{for(var _0x59b0cb=_0x2dc80c>0x1?void 0x0:_0x2dc80c?ie(_0x436db9,_0x4b9b80):_0x436db9,_0x59784f=_0x411536['length']-0x1,_0x15621b;_0x59784f>=0x0;_0x59784f--)(_0x15621b=_0x411536[_0x59784f])&&(_0x59b0cb=_0x15621b(_0x59b0cb)||_0x59b0cb);return _0x59b0cb;},L=(_0x2145b5,_0x356d3d)=>(_0x41518c,_0x1e2e13)=>_0x356d3d(_0x41518c,_0x1e2e13,_0x2145b5);function _0x579a(){var _0x281783=['Disposable','1275894ZiYlvE','DesktopLiveShareController','Stop\x20presenting','use','_commandService','propertyIsEnumerable','icon','stringify','replace','_handleOffline','defs','DisposableCollection','set','RxDisposable','tag','forEach','_collabSession','_injector','_handleNewChangeSets','displayName','@univerjs/sheets-ui','_startFollowing','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','memberID','unsubscribe','evenodd','rxjs','connectInjector','event$','_collabSessionService','registerSharedOperation','fill','LiveShareCoordinator','init','UNIVER_UNKNOWN','offline','LiveShareService','@univerjs/sheets','delete','tryStartPresenting','CommandType','idle','_startPresenting','xlink:href','forwardRef','override','takeUntil','setConfig','FOLLOWING','children','idSuffix','executeCommand','IUIPartsService','currentColor','_config','presenting','dispose','status$','clear','mergeOverrideWithDependencies','sessionStatus$','LiveShare','UniverIcon','_handleOperation','LiveShareStatus','get','UNIVER_LIVE_SHARE_PLUGIN','You\x27re\x20following\x20the\x20presenter','Injector','url(#$1','shouldShareOperation','subscribe','pluginName','length','@univerjs-pro/collaboration','IDLE','parse','3660447YLPVJN','BuiltInUIPart','LIVESHARE_TERMINATE','getValue','registerComponent','LIVESHARE_REQUEST_HOST','getCurrentTypeOfUnit$','dispose$','params','call','symbol','apply','not-following','_mountLiveShare','div','unitId','button','42byGqMV','getOwnPropertySymbols','You\x27re\x20not\x20following\x20the\x20presenter','concat','getMemberID','presenter','_stopFollowing','OPERATION','hasOwnProperty','_entities','_configService','disposeWithMe','45602APwBak','assign','_univerInstanceService','createElement','_unitID','getUnitId','useDependency','_uiPartsService','4629488vwBWcH','NEW_CHANGESETS','OFFLINE','toStringTag','Inject','@univerjs/ui','onRendered','IConfigService','_liveShareService','Module','Button','includes','stopFollowing','CollaborationSessionService','registerInitialStateReporter','PRESENTING','UniverCollaborationClientPlugin','random','getTypeOfUnitDisposed$','_sharedOperations','createInstance','text','Fragment','Dropdown','_status$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','_presenter','defIds','jsx','has','@univerjs/design','_reporters','onCommandExecuted','prototype','attrs','className','getLiveShareCoordinator','add','SetWorksheetActiveOperation','20080DkoWLM','Subject','current','extend','useRef','colorChannel1','path','SessionStatus','LIVESHARE_FETCH_OPERATIONS','Start\x20following','operations','data','_init','Plugin','getOwnPropertyDescriptor','_status','type','throttleTime','_handleNewHost','toDisposable','getTypeOfUnitAdded$','univer-mb-3\x20univer-w-full\x20univer-text-sm','UniverInstanceType','string','LiveShareController','mask','following','merge','getInitialStates','find','useState','toString','send','9217320EKQQZz','none','NOT_FOLLOWING','live-share-icon','stopPresenting','UniverLiveSharePlugin','entries','map','109184VxtFeR','pipe','sheet','UNIVER_SHEET','_commandDisposable','ONLINE','jsxs','CollaborationEvent','registerDependencies','parseProtocolChangeset','_fetchOperations','requireSession','LIVESHARE_OPERATION','HEADER_MENU','getConfig','live-share.config','_handleOnline','reverse','1em','univerjs-icon\x20univerjs-icon-','Stop\x20following','next','_handleTerminate','Start','defineProperty','0\x200\x2017\x2017','rxjs/operators','indexOf','1503AuyLZE','BehaviorSubject','_startLiveShareCoordinator','@univerjs/core','values'];_0x579a=function(){return _0x281783;};return _0x579a();}exports[_0xa5e750(0x212)]=class extends o[_0xa5e750(0x210)]{constructor(_0x44beab,_0x4d19a6){var _0x4cfc4e=_0xa5e750;super(),this['_injector']=_0x44beab,this[_0x4cfc4e(0x282)]=_0x4d19a6,this[_0x4cfc4e(0x26b)]();}[_0xa5e750(0x26b)](){var _0x41c1ed=_0xa5e750;this[_0x41c1ed(0x27a)](this['_uiPartsService'][_0x41c1ed(0x262)](p[_0x41c1ed(0x25f)][_0x41c1ed(0x1fc)],()=>p[_0x41c1ed(0x22c)](A,this['_injector'])));}},exports[_0xa5e750(0x212)]=ne([L(0x0,o[_0xa5e750(0x287)](o[_0xa5e750(0x255)])),L(0x1,p[_0xa5e750(0x245)])],exports['DesktopLiveShareController']);var re=Object['defineProperty'],se=Object[_0xa5e750(0x1d4)],oe=(_0x43f647,_0x36b018,_0x3ed08c)=>_0x36b018 in _0x43f647?re(_0x43f647,_0x36b018,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ed08c}):_0x43f647[_0x36b018]=_0x3ed08c,ae=(_0x3b5c0a,_0x3d745e,_0x19eb48,_0x3286a6)=>{var _0x39dd14=_0xa5e750;for(var _0x513657=_0x3286a6>0x1?void 0x0:_0x3286a6?se(_0x3d745e,_0x19eb48):_0x3d745e,_0x58a445=_0x3b5c0a[_0x39dd14(0x25a)]-0x1,_0x4b5a48;_0x58a445>=0x0;_0x58a445--)(_0x4b5a48=_0x3b5c0a[_0x58a445])&&(_0x513657=_0x4b5a48(_0x513657)||_0x513657);return _0x513657;},N=(_0x4d69e4,_0x2c05f3)=>(_0x35b23a,_0x313e03)=>_0x2c05f3(_0x35b23a,_0x313e03,_0x4d69e4),T=(_0x1fc5c5,_0x4221bc,_0x550400)=>oe(_0x1fc5c5,typeof _0x4221bc!=_0xa5e750(0x268)?_0x4221bc+'':_0x4221bc,_0x550400);const le=_0xa5e750(0x253);exports[_0xa5e750(0x1ec)]=class extends o[_0xa5e750(0x1d3)]{constructor(_0x47d776=x,_0x2400e4,_0xd785c8){var _0x2e8254=_0xa5e750;super(),this[_0x2e8254(0x247)]=_0x47d776,this[_0x2e8254(0x222)]=_0x2400e4,this[_0x2e8254(0x279)]=_0xd785c8;const {..._0x3e4488}=o[_0x2e8254(0x1e1)]({},x,this[_0x2e8254(0x247)]);this[_0x2e8254(0x279)][_0x2e8254(0x240)]($,_0x3e4488);}['onStarting'](){var _0x36e217=_0xa5e750;o[_0x36e217(0x1f7)](this[_0x36e217(0x222)],o[_0x36e217(0x24c)]([[O],[exports[_0x36e217(0x1de)]],[E],[exports[_0x36e217(0x212)]]],this['_config'][_0x36e217(0x23e)])),o['touchDependencies'](this[_0x36e217(0x222)],[[E]]);}[_0xa5e750(0x289)](){var _0x79e508=_0xa5e750;o['touchDependencies'](this[_0x79e508(0x222)],[[exports[_0x79e508(0x212)]]]);}},T(exports[_0xa5e750(0x1ec)],_0xa5e750(0x1d6),o[_0xa5e750(0x1dc)][_0xa5e750(0x233)]),T(exports[_0xa5e750(0x1ec)],_0xa5e750(0x259),le),exports['UniverLiveSharePlugin']=ae([o['DependentOn'](m[_0xa5e750(0x293)]),N(0x1,o[_0xa5e750(0x287)](o[_0xa5e750(0x255)])),N(0x2,o['IConfigService'])],exports[_0xa5e750(0x1ec)]),exports[_0xa5e750(0x24e)]=A,exports[_0xa5e750(0x235)]=O,exports[_0xa5e750(0x251)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x9778e6=_0x4bc8;(function(_0x14ac5d,_0x11d897){var _0x1eb99b=_0x4bc8,_0x2de207=_0x14ac5d();while(!![]){try{var _0x3e6909=-parseInt(_0x1eb99b(0x200))/0x1+-parseInt(_0x1eb99b(0x1fd))/0x2+-parseInt(_0x1eb99b(0x20b))/0x3+parseInt(_0x1eb99b(0x223))/0x4*(parseInt(_0x1eb99b(0x236))/0x5)+parseInt(_0x1eb99b(0x1be))/0x6*(parseInt(_0x1eb99b(0x251))/0x7)+-parseInt(_0x1eb99b(0x1c6))/0x8*(-parseInt(_0x1eb99b(0x227))/0x9)+parseInt(_0x1eb99b(0x1aa))/0xa*(parseInt(_0x1eb99b(0x250))/0xb);if(_0x3e6909===_0x11d897)break;else _0x2de207['push'](_0x2de207['shift']());}catch(_0x500ae6){_0x2de207['push'](_0x2de207['shift']());}}}(_0x1ca5,0x7b5c3));function _0x4bc8(_0x15361e,_0x447668){var _0x1ca50d=_0x1ca5();return _0x4bc8=function(_0x4bc897,_0x3ba5f8){_0x4bc897=_0x4bc897-0x1aa;var _0x34657f=_0x1ca50d[_0x4bc897];return _0x34657f;},_0x4bc8(_0x15361e,_0x447668);}var q=Object[_0x9778e6(0x1d2)],z=(_0x26e524,_0xf61c4d,_0x4196fd)=>_0xf61c4d in _0x26e524?q(_0x26e524,_0xf61c4d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4196fd}):_0x26e524[_0xf61c4d]=_0x4196fd,d=(_0x1fdead,_0x1207bb,_0x41fe7a)=>z(_0x1fdead,typeof _0x1207bb!=_0x9778e6(0x1f3)?_0x1207bb+'':_0x1207bb,_0x41fe7a);import{CollaborationSessionService as _0x4a76a3,SessionStatus as _0x3b9352,UniverCollaborationClientPlugin as _0x571ab9}from'@univerjs-pro/collaboration-client';import{Disposable as _0x2e3155,toDisposable as _0x516894,Inject as _0x16d04b,IUniverInstanceService as _0x521bf2,Injector as _0x58e3c4,IConfigService as _0x3f3ec1,ICommandService as _0x3ac4bd,RxDisposable as _0x56497b,UniverInstanceType as _0x595007,DisposableCollection as _0x72472d,CommandType as _0x22b12f,DependentOn as _0x2d3671,Plugin as _0x2e613d,merge as _0x1f82eb,registerDependencies as _0x4f0f22,mergeOverrideWithDependencies as _0x1a5aac,touchDependencies as _0x3bf4fc}from'@univerjs/core';import{SetWorksheetActiveOperation as _0xc3474a,InsertSheetMutation as _0x37a933}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x48bc76,SetScrollOperation as _0x4aa3ed}from'@univerjs/sheets-ui';import{useDependency as _0x1e8d4a,useObservable as _0x104952,IUIPartsService as _0x3628a7,BuiltInUIPart as _0x48da4f,connectInjector as _0x328b1c}from'@univerjs/ui';import{jsx as _0x16b57f,jsxs as _0xa7baf9,Fragment as _0x3c08dd}from'react/jsx-runtime';import{Dropdown as _0x4368ad,clsx as _0x571c3e,Button as _0x2cc199}from'@univerjs/design';import{forwardRef as _0x3c17af,useRef as _0x2a7acc,createElement as _0x44a707,useState as _0x3e204,useEffect as _0x278b9b}from'react';import{CollaborationEvent as _0x18ef0a,parseProtocolChangeset as _0x8ba9d1}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x572475,Subject as _0x9b51d0}from'rxjs';import{takeUntil as _0x109cce,throttleTime as _0xeb248e}from'rxjs/operators';const Oe=_0x9778e6(0x1c5),T={};class L extends _0x2e3155{constructor(){var _0xd1aa01=_0x9778e6;super(...arguments),d(this,_0xd1aa01(0x24a),new Set()),d(this,_0xd1aa01(0x241),new Set());}[_0x9778e6(0x213)](_0x41f394){var _0x2f126e=_0x9778e6;return this[_0x2f126e(0x24a)][_0x2f126e(0x232)](_0x41f394),_0x516894(()=>this[_0x2f126e(0x24a)]['delete'](_0x41f394));}[_0x9778e6(0x240)](_0x527f31){var _0x3b7f11=_0x9778e6;return this[_0x3b7f11(0x241)]['add'](_0x527f31),_0x516894(()=>this['_reporters'][_0x3b7f11(0x1e0)](_0x527f31));}['shouldShareOperation'](_0xb20aac){var _0x3c2509=_0x9778e6;return this['_sharedOperations'][_0x3c2509(0x228)](_0xb20aac);}[_0x9778e6(0x1c4)](_0x323e4f){var _0x2d87e6=_0x9778e6;return Array[_0x2d87e6(0x256)](this['_reporters'])['map'](_0x216371=>_0x216371(_0x323e4f));}}var Ee=Object[_0x9778e6(0x1d8)],we=(_0x154012,_0x3128ea,_0x2039d9,_0x215468)=>{for(var _0x9535d2=_0x215468>0x1?void 0x0:_0x215468?Ee(_0x3128ea,_0x2039d9):_0x3128ea,_0x1cf8ee=_0x154012['length']-0x1,_0x539d84;_0x1cf8ee>=0x0;_0x1cf8ee--)(_0x539d84=_0x154012[_0x1cf8ee])&&(_0x9535d2=_0x539d84(_0x9535d2)||_0x9535d2);return _0x9535d2;},Ne=(_0x21bc29,_0x50a234)=>(_0x58eed9,_0x31dcbb)=>_0x50a234(_0x58eed9,_0x31dcbb,_0x21bc29);let m=class extends _0x2e3155{constructor(_0x54a40b){var _0x48a647=_0x9778e6;super(),this[_0x48a647(0x1fe)]=_0x54a40b,this['_init']();}[_0x9778e6(0x252)](){[_0x48bc76['id'],_0x4aa3ed['id'],_0xc3474a['id']]['forEach'](_0x5d2021=>{var _0x51202e=_0x4bc8;this[_0x51202e(0x1db)](this[_0x51202e(0x1fe)][_0x51202e(0x213)](_0x5d2021));});}};m=we([Ne(0x0,_0x16d04b(L))],m);var c=function(){var _0x2a1847=_0x9778e6;return c=Object[_0x2a1847(0x1d6)]||function(_0x526998){var _0x212f88=_0x2a1847;for(var _0x892e65,_0x1c2e1f=0x1,_0x51918f=arguments[_0x212f88(0x1e6)];_0x1c2e1f<_0x51918f;_0x1c2e1f++){_0x892e65=arguments[_0x1c2e1f];for(var _0x300345 in _0x892e65)Object[_0x212f88(0x1af)][_0x212f88(0x21d)][_0x212f88(0x1e5)](_0x892e65,_0x300345)&&(_0x526998[_0x300345]=_0x892e65[_0x300345]);}return _0x526998;},c['apply'](this,arguments);},Ce=function(_0x4d049a,_0x5be463){var _0x5b89ea=_0x9778e6,_0x155407={};for(var _0x2d3459 in _0x4d049a)Object[_0x5b89ea(0x1af)]['hasOwnProperty'][_0x5b89ea(0x1e5)](_0x4d049a,_0x2d3459)&&_0x5be463['indexOf'](_0x2d3459)<0x0&&(_0x155407[_0x2d3459]=_0x4d049a[_0x2d3459]);if(_0x4d049a!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x3599ae=0x0,_0x2d3459=Object[_0x5b89ea(0x225)](_0x4d049a);_0x3599ae<_0x2d3459[_0x5b89ea(0x1e6)];_0x3599ae++)_0x5be463['indexOf'](_0x2d3459[_0x3599ae])<0x0&&Object[_0x5b89ea(0x1af)][_0x5b89ea(0x22b)][_0x5b89ea(0x1e5)](_0x4d049a,_0x2d3459[_0x3599ae])&&(_0x155407[_0x2d3459[_0x3599ae]]=_0x4d049a[_0x2d3459[_0x3599ae]]);}return _0x155407;},W=_0x3c17af(function(_0x3baaaf,_0x23cbbb){var _0x37676c=_0x9778e6,_0x30e14e=_0x3baaaf['icon'],_0x38f7a2=_0x3baaaf['id'],_0x15ffb4=_0x3baaaf[_0x37676c(0x229)],_0x24fca3=_0x3baaaf[_0x37676c(0x239)],_0x24835c=Ce(_0x3baaaf,[_0x37676c(0x205),'id',_0x37676c(0x229),_0x37676c(0x239)]),_0x4e7213=_0x37676c(0x21f)[_0x37676c(0x234)](_0x38f7a2,'\x20')['concat'](_0x15ffb4||'')[_0x37676c(0x24b)](),_0x16eb74=_0x2a7acc('_'[_0x37676c(0x234)](Le()));return Y(_0x30e14e,''[_0x37676c(0x234)](_0x38f7a2),{'defIds':_0x30e14e['defIds'],'idSuffix':_0x16eb74[_0x37676c(0x1f8)]},c({'ref':_0x23cbbb,'className':_0x4e7213},_0x24835c),_0x24fca3);});function Y(_0x43644b,_0x441f21,_0x3fcc06,_0x55ce89,_0x5b4d27){var _0x552e4b=_0x9778e6;return _0x44a707(_0x43644b[_0x552e4b(0x1b5)],c(c({'key':_0x441f21},De(_0x43644b,_0x3fcc06,_0x5b4d27)),_0x55ce89),(xe(_0x43644b,_0x3fcc06)[_0x552e4b(0x1d9)]||[])[_0x552e4b(0x23e)](function(_0xa30801,_0x2ca8dd){var _0x1c3150=_0x552e4b;return Y(_0xa30801,''[_0x1c3150(0x234)](_0x441f21,'-')[_0x1c3150(0x234)](_0x43644b['tag'],'-')['concat'](_0x2ca8dd),_0x3fcc06,void 0x0,_0x5b4d27);}));}function De(_0x182fd1,_0x5077e5,_0x831702){var _0x3be067=_0x9778e6,_0x5158d3=c({},_0x182fd1[_0x3be067(0x1e7)]);_0x831702!=null&&_0x831702[_0x3be067(0x215)]&&_0x5158d3['fill']==='colorChannel1'&&(_0x5158d3[_0x3be067(0x1c0)]=_0x831702[_0x3be067(0x215)]),_0x182fd1[_0x3be067(0x1b5)]==='mask'&&_0x5158d3['id']&&(_0x5158d3['id']=_0x5158d3['id']+_0x5077e5[_0x3be067(0x207)]),Object[_0x3be067(0x1c9)](_0x5158d3)[_0x3be067(0x22c)](function(_0x5560e5){var _0x400d95=_0x3be067,_0x178b7f=_0x5560e5[0x0],_0xfa8479=_0x5560e5[0x1];_0x178b7f==='mask'&&typeof _0xfa8479==_0x400d95(0x1b1)&&(_0x5158d3[_0x178b7f]=_0xfa8479[_0x400d95(0x1ae)](/url\(#(.*)\)/,_0x400d95(0x20d)[_0x400d95(0x234)](_0x5077e5[_0x400d95(0x207)],')')));});var _0x55d415=_0x5077e5['defIds'];return!_0x55d415||_0x55d415[_0x3be067(0x1e6)]===0x0||(_0x182fd1[_0x3be067(0x1b5)]==='use'&&_0x5158d3[_0x3be067(0x243)]&&(_0x5158d3[_0x3be067(0x243)]=_0x5158d3[_0x3be067(0x243)]+_0x5077e5['idSuffix']),Object[_0x3be067(0x1c9)](_0x5158d3)[_0x3be067(0x22c)](function(_0x26b38d){var _0x227253=_0x3be067,_0x233bde=_0x26b38d[0x0],_0x485e3c=_0x26b38d[0x1];typeof _0x485e3c==_0x227253(0x1b1)&&(_0x5158d3[_0x233bde]=_0x485e3c[_0x227253(0x1ae)](/url\(#(.*)\)/,'url(#$1'[_0x227253(0x234)](_0x5077e5[_0x227253(0x207)],')')));})),_0x5158d3;}function xe(_0x35cc67,_0x1734a2){var _0x3c56a4=_0x9778e6,_0x2ca0de,_0x9110c3=_0x1734a2[_0x3c56a4(0x1d0)];return!_0x9110c3||_0x9110c3[_0x3c56a4(0x1e6)]===0x0?_0x35cc67:_0x35cc67['tag']===_0x3c56a4(0x1b0)&&(!((_0x2ca0de=_0x35cc67[_0x3c56a4(0x1d9)])===null||_0x2ca0de===void 0x0)&&_0x2ca0de[_0x3c56a4(0x1e6)])?c(c({},_0x35cc67),{'children':_0x35cc67[_0x3c56a4(0x1d9)][_0x3c56a4(0x23e)](function(_0x3d2552){var _0x21170a=_0x3c56a4;return typeof _0x3d2552[_0x21170a(0x1e7)]['id']==_0x21170a(0x1b1)&&_0x9110c3&&_0x9110c3[_0x21170a(0x24c)](_0x3d2552['attrs']['id'])?c(c({},_0x3d2552),{'attrs':c(c({},_0x3d2552['attrs']),{'id':_0x3d2552['attrs']['id']+_0x1734a2[_0x21170a(0x207)]})}):_0x3d2552;})}):_0x35cc67;}function Le(){var _0x296200=_0x9778e6;return Math[_0x296200(0x1cb)]()['toString'](0x24)[_0x296200(0x20c)](0x2,0x8);}W[_0x9778e6(0x206)]=_0x9778e6(0x219);var ye={'tag':_0x9778e6(0x1bd),'attrs':{'xmlns':_0x9778e6(0x245),'fill':'none','viewBox':_0x9778e6(0x21e),'width':_0x9778e6(0x1ee),'height':_0x9778e6(0x1ee)},'children':[{'tag':_0x9778e6(0x1b3),'attrs':{'fill':_0x9778e6(0x1ca),'d':_0x9778e6(0x1c7)}},{'tag':_0x9778e6(0x1b3),'attrs':{'fill':_0x9778e6(0x1ca),'d':_0x9778e6(0x249),'fillRule':_0x9778e6(0x23b),'clipRule':_0x9778e6(0x23b)}}]},B=_0x3c17af(function(_0x20b13a,_0x46e66c){var _0x12211c=_0x9778e6;return _0x44a707(W,Object[_0x12211c(0x1d6)]({},_0x20b13a,{'id':_0x12211c(0x1fb),'ref':_0x46e66c,'icon':ye}));});B[_0x9778e6(0x206)]=_0x9778e6(0x1c8);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x163aa8,_0x233050,_0x2401be,_0x239fd1)=>{for(var _0x4f040e=_0x239fd1>0x1?void 0x0:_0x239fd1?Re(_0x233050,_0x2401be):_0x233050,_0x554d77=_0x163aa8['length']-0x1,_0xc8dc02;_0x554d77>=0x0;_0x554d77--)(_0xc8dc02=_0x163aa8[_0x554d77])&&(_0x4f040e=_0xc8dc02(_0x4f040e)||_0x4f040e);return _0x4f040e;},f=(_0x938857,_0x4424fa)=>(_0x2d391e,_0x4a8213)=>_0x4424fa(_0x2d391e,_0x4a8213,_0x938857);let I=class extends _0x56497b{constructor(_0x585701,_0x452757,_0x4267a2){var _0x281a94=_0x9778e6;super(),d(this,'_entities',new Map()),(this[_0x281a94(0x1bc)]=_0x585701,this[_0x281a94(0x25a)]=_0x452757,this[_0x281a94(0x22e)]=_0x4267a2,this[_0x281a94(0x252)]());}async[_0x9778e6(0x1bf)](_0x56dfd9){var _0x52512e=_0x9778e6;return this[_0x52512e(0x217)][_0x52512e(0x228)](_0x56dfd9)||await this[_0x52512e(0x255)](_0x56dfd9),this[_0x52512e(0x217)][_0x52512e(0x247)](_0x56dfd9);}[_0x9778e6(0x252)](){var _0xd5a30c=_0x9778e6;this[_0xd5a30c(0x1bc)][_0xd5a30c(0x238)](_0x595007[_0xd5a30c(0x1f6)])['pipe'](_0x109cce(this[_0xd5a30c(0x221)]))[_0xd5a30c(0x1fa)](async _0xe0b0c6=>{var _0x4508e5=_0xd5a30c;const _0x373326=_0xe0b0c6[_0x4508e5(0x224)]();this[_0x4508e5(0x217)][_0x4508e5(0x228)](_0x373326)||this[_0x4508e5(0x255)](_0x373326);}),this[_0xd5a30c(0x1bc)]['getTypeOfUnitDisposed$'](_0x595007['UNIVER_SHEET'])[_0xd5a30c(0x1f5)](_0x109cce(this[_0xd5a30c(0x221)]))[_0xd5a30c(0x1fa)](_0x52fa72=>{var _0x248dff=_0xd5a30c;const _0x2a810a=_0x52fa72['getUnitId'](),_0x445d9c=this[_0x248dff(0x217)][_0x248dff(0x247)](_0x2a810a);_0x445d9c==null||_0x445d9c[_0x248dff(0x1fc)]();});}async[_0x9778e6(0x255)](_0x4bbccd){var _0x1d72ae=_0x9778e6;const _0x43c962=await this[_0x1d72ae(0x22e)]['requireSession'](_0x4bbccd),_0x16198c=this[_0x1d72ae(0x25a)]['createInstance'](C,_0x4bbccd,_0x43c962);return _0x16198c[_0x1d72ae(0x1b8)](),this[_0x1d72ae(0x217)][_0x1d72ae(0x22d)](_0x4bbccd,_0x16198c),_0x16198c;}};I=Z([f(0x0,_0x521bf2),f(0x1,_0x16d04b(_0x58e3c4)),f(0x2,_0x16d04b(_0x4a76a3))],I);var h=(_0x223ec6=>(_0x223ec6[_0x9778e6(0x1d4)]=_0x9778e6(0x1e8),_0x223ec6[_0x9778e6(0x1cd)]=_0x9778e6(0x24e),_0x223ec6['FOLLOWING']='following',_0x223ec6['NOT_FOLLOWING']=_0x9778e6(0x202),_0x223ec6['PRESENTING']=_0x9778e6(0x1b2),_0x223ec6))(h||{});const Pe=_0x9778e6(0x201),Ae=0xc8;let C=class extends _0x56497b{constructor(_0x59878a,_0xa07c25,_0x3ab47f,_0x20ca62,_0x5e2543){var _0x352431=_0x9778e6;super(),d(this,_0x352431(0x20f),new _0x572475('idle')),d(this,_0x352431(0x208),this[_0x352431(0x20f)]['asObservable']()),d(this,_0x352431(0x252),!0x1),d(this,_0x352431(0x220),null),d(this,_0x352431(0x22f),null),(this[_0x352431(0x1c2)]=_0x59878a,this['_collabSession']=_0xa07c25,this[_0x352431(0x212)]=_0x3ab47f,this[_0x352431(0x1fe)]=_0x20ca62,this[_0x352431(0x235)]=_0x5e2543);}get[_0x9778e6(0x21c)](){var _0x2f7ade=_0x9778e6;return this[_0x2f7ade(0x20f)][_0x2f7ade(0x248)]();}[_0x9778e6(0x1fc)](){var _0x497318=_0x9778e6,_0x1f137e;(_0x1f137e=this['_commandDisposable'])==null||_0x1f137e[_0x497318(0x1fc)](),this[_0x497318(0x20f)]['next'](_0x497318(0x24e)),this[_0x497318(0x20f)][_0x497318(0x1de)]();}[_0x9778e6(0x1b8)](){var _0x360bc6=_0x9778e6;this[_0x360bc6(0x252)]||(this['_init']=!0x0,this[_0x360bc6(0x1d1)][_0x360bc6(0x1f2)][_0x360bc6(0x1f5)](_0x109cce(this[_0x360bc6(0x221)]))[_0x360bc6(0x1fa)](_0x55c0e6=>{var _0x21db46=_0x360bc6;switch(_0x55c0e6){case _0x3b9352[_0x21db46(0x1d4)]:this[_0x21db46(0x1ab)]();break;case _0x3b9352[_0x21db46(0x23c)]:this[_0x21db46(0x1e3)]();break;}}),this[_0x360bc6(0x1d1)][_0x360bc6(0x257)][_0x360bc6(0x1f5)](_0x109cce(this['dispose$']))[_0x360bc6(0x1fa)](_0x40c1ee=>{var _0x1d59c7=_0x360bc6;const {eventID:_0x1a8084}=_0x40c1ee;switch(_0x1a8084){case _0x18ef0a[_0x1d59c7(0x1d3)]:this[_0x1d59c7(0x24f)](_0x40c1ee);break;case _0x18ef0a[_0x1d59c7(0x1b6)]:this['_handleOperation'](_0x40c1ee);break;case _0x18ef0a[_0x1d59c7(0x259)]:this[_0x1d59c7(0x1ba)]();break;case _0x18ef0a[_0x1d59c7(0x1f9)]:this['_handleNewChangeSets'](_0x40c1ee);break;}}));}[_0x9778e6(0x1eb)](){var _0x493789=_0x9778e6;this[_0x493789(0x1d1)][_0x493789(0x23f)]({'eventID':_0x18ef0a[_0x493789(0x1cc)],'data':{'unitID':this[_0x493789(0x1c2)],'userID':this[_0x493789(0x1d1)]['getMemberID']()}},this[_0x493789(0x1c2)]);}[_0x9778e6(0x1ad)](){var _0x1f0c09=_0x9778e6;this[_0x1f0c09(0x21c)]==='presenting'&&(this[_0x1f0c09(0x20f)]['next'](_0x1f0c09(0x24e)),this[_0x1f0c09(0x1d1)][_0x1f0c09(0x23f)]({'eventID':_0x18ef0a[_0x1f0c09(0x259)],'data':{'unitID':this[_0x1f0c09(0x1c2)]}},this[_0x1f0c09(0x1c2)]));}[_0x9778e6(0x231)](){var _0x87d918=_0x9778e6;this['_status']===_0x87d918(0x202)&&(this['_status$'][_0x87d918(0x230)]('following'),this[_0x87d918(0x1da)]());}[_0x9778e6(0x1b4)](){var _0x313bfa=_0x9778e6;this['_status']===_0x313bfa(0x1c3)&&this[_0x313bfa(0x1e1)]();}[_0x9778e6(0x24f)](_0x1e6251){var _0x45c2e2=_0x9778e6;const {presenter:_0x25eb82}=_0x1e6251[_0x45c2e2(0x1ef)],_0x17edca=this['_collabSession'][_0x45c2e2(0x258)]();this[_0x45c2e2(0x22f)]=_0x25eb82,_0x25eb82===_0x17edca?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x45c2e2(0x21c)]!=='not-following'&&(this['_stopPresenting'](),this[_0x45c2e2(0x1da)]());}['_fetchOperations'](){var _0x2f20d2=_0x9778e6;const _0x515b27={'eventID':_0x18ef0a[_0x2f20d2(0x214)]};this[_0x2f20d2(0x1d1)][_0x2f20d2(0x23f)](_0x515b27,this['_unitID']);}[_0x9778e6(0x1ba)](){var _0x2950b8=_0x9778e6;this[_0x2950b8(0x22f)]=null,this[_0x2950b8(0x21c)]!=='presenting'&&this[_0x2950b8(0x204)]();}[_0x9778e6(0x22a)](_0x3dcaf8){var _0xa7653f=_0x9778e6;if(this[_0xa7653f(0x21c)]===_0xa7653f(0x1c3)&&this['_presenter']===_0x3dcaf8[_0xa7653f(0x1ef)]['memberID']){const _0x540ab7=_0x8ba9d1(_0x3dcaf8['data'])[_0xa7653f(0x1ac)]['reverse']()[_0xa7653f(0x1ff)](_0x11b8e9=>_0x11b8e9['id']===_0x37a933['id']);if(_0x540ab7){const _0x1990eb=_0x540ab7[_0xa7653f(0x1b7)][_0xa7653f(0x1f7)],_0xbb730b=_0x540ab7[_0xa7653f(0x1b7)][_0xa7653f(0x21b)]['id'];setTimeout(()=>{var _0x168fe7=_0xa7653f;this[_0x168fe7(0x235)][_0x168fe7(0x20e)](_0xc3474a['id'],{'unitId':_0x1990eb,'subUnitId':_0xbb730b},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x3a1dc3=_0x9778e6;this['_status$'][_0x3a1dc3(0x230)](_0x3a1dc3(0x1b2));const _0x4462f7=new Map(),_0x231123=this[_0x3a1dc3(0x220)]=new _0x72472d();_0x231123[_0x3a1dc3(0x232)](_0x516894(()=>{var _0x13707c=_0x3a1dc3;_0x4462f7[_0x13707c(0x22c)](_0x4b9c13=>_0x4b9c13[_0x13707c(0x1de)]()),_0x4462f7['clear']();})),_0x231123[_0x3a1dc3(0x232)](this[_0x3a1dc3(0x235)][_0x3a1dc3(0x203)](_0x345d34=>{var _0x4f37e1=_0x3a1dc3,_0x5aed38;if(_0x345d34[_0x4f37e1(0x25b)]!==_0x22b12f['OPERATION']||!this[_0x4f37e1(0x1fe)][_0x4f37e1(0x1b9)](_0x345d34['id']))return;const {id:_0xb54910}=_0x345d34;let _0x135a84;_0x4462f7['has'](_0xb54910)?_0x135a84=_0x4462f7[_0x4f37e1(0x247)](_0xb54910):(_0x135a84=new _0x9b51d0(),_0x4462f7[_0x4f37e1(0x22d)](_0xb54910,_0x135a84),_0x135a84[_0x4f37e1(0x1f5)](_0xeb248e((_0x5aed38=this[_0x4f37e1(0x212)][_0x4f37e1(0x209)](Pe))!=null?_0x5aed38:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4f37e1(0x1fa)](_0x12ca8c=>{var _0x2ec78f=_0x4f37e1;this[_0x2ec78f(0x1d1)][_0x2ec78f(0x23f)]({'eventID':_0x18ef0a[_0x2ec78f(0x1b6)],'data':{'unitID':this[_0x2ec78f(0x1c2)],'operations':{[_0x12ca8c['id']]:{'id':_0x12ca8c['id'],'params':JSON[_0x2ec78f(0x1e2)](_0x12ca8c[_0x2ec78f(0x1b7)])}}}},this['_unitID']);})),_0x135a84[_0x4f37e1(0x230)](_0x345d34);})),this['_liveShareService'][_0x3a1dc3(0x1c4)](this[_0x3a1dc3(0x1c2)])[_0x3a1dc3(0x22c)](_0x19ff4a=>this[_0x3a1dc3(0x1d1)][_0x3a1dc3(0x23f)]({'eventID':_0x18ef0a[_0x3a1dc3(0x1b6)],'data':{'unitID':this['_unitID'],'operations':{[_0x19ff4a['id']]:{'id':_0x19ff4a['id'],'params':JSON[_0x3a1dc3(0x1e2)](_0x19ff4a[_0x3a1dc3(0x1b7)])}}}},this['_unitID']));}[_0x9778e6(0x24d)](){var _0x612c59=_0x9778e6,_0x13bb51;this[_0x612c59(0x20f)][_0x612c59(0x230)]('idle'),(_0x13bb51=this[_0x612c59(0x220)])==null||_0x13bb51['dispose'](),this[_0x612c59(0x220)]=null;}[_0x9778e6(0x1da)](){var _0x1f1057=_0x9778e6,_0x35c0af;(_0x35c0af=this[_0x1f1057(0x220)])==null||_0x35c0af[_0x1f1057(0x1fc)](),this[_0x1f1057(0x20f)][_0x1f1057(0x230)]('following');}[_0x9778e6(0x204)](){var _0x301940=_0x9778e6,_0x4164eb;this['_status$'][_0x301940(0x230)]('idle'),(_0x4164eb=this['_commandDisposable'])==null||_0x4164eb[_0x301940(0x1fc)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x5b5724=_0x9778e6,_0x244ce7;this[_0x5b5724(0x20f)][_0x5b5724(0x230)](_0x5b5724(0x202)),(_0x244ce7=this[_0x5b5724(0x220)])==null||_0x244ce7[_0x5b5724(0x1fc)]();}[_0x9778e6(0x23d)](_0x56a3b5){var _0x268d49=_0x9778e6;if([_0x268d49(0x1b2),_0x268d49(0x202),'offline'][_0x268d49(0x24c)](this[_0x268d49(0x21c)])||!_0x56a3b5[_0x268d49(0x1ef)][_0x268d49(0x1f0)]||_0x56a3b5[_0x268d49(0x1ef)]['presenter']===this[_0x268d49(0x1d1)]['getMemberID']())return;this[_0x268d49(0x21c)]===_0x268d49(0x24e)&&this[_0x268d49(0x1da)]();const _0x31a7de=_0x56a3b5[_0x268d49(0x1ef)]['operations'];Object[_0x268d49(0x21a)](_0x31a7de)['forEach'](_0x141c41=>{var _0x5274ec=_0x268d49;this[_0x5274ec(0x235)][_0x5274ec(0x20e)](_0x141c41['id'],_0x141c41[_0x5274ec(0x1b7)]?JSON[_0x5274ec(0x233)](_0x141c41['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x4ba58e=_0x9778e6,_0x15f6f8;this[_0x4ba58e(0x20f)][_0x4ba58e(0x230)](_0x4ba58e(0x1e8)),(_0x15f6f8=this[_0x4ba58e(0x220)])==null||_0x15f6f8['dispose']();}[_0x9778e6(0x1e3)](){var _0x1ebf6d=_0x9778e6;this[_0x1ebf6d(0x20f)][_0x1ebf6d(0x230)](_0x1ebf6d(0x24e)),this[_0x1ebf6d(0x218)]();}};C=Z([f(0x2,_0x3f3ec1),f(0x3,_0x16d04b(L)),f(0x4,_0x3ac4bd)],C);function Te(){var _0x15129b=_0x9778e6;const _0x2021f0=_0x1e8d4a(I),_0x19de99=_0x1e8d4a(_0x521bf2),_0x139b86=_0x104952(()=>_0x19de99[_0x15129b(0x226)](_0x595007[_0x15129b(0x1f6)]),void 0x0,!0x1,[]),[_0x4fe615,_0x5ee33c]=_0x3e204(null),[_0x3725a9,_0x309794]=_0x3e204(h[_0x15129b(0x1cd)]),_0x28b18a=_0x2a7acc(null);return _0x278b9b(()=>(_0x139b86&&_0x2021f0[_0x15129b(0x1bf)](_0x139b86[_0x15129b(0x224)]())[_0x15129b(0x242)](_0x4e04bf=>{var _0x2a60d0=_0x15129b;_0x5ee33c(_0x4e04bf),_0x28b18a[_0x2a60d0(0x1f8)]=_0x4e04bf['status$']['subscribe'](_0x2daf30=>{_0x309794(_0x2daf30);});}),()=>{var _0x28f18f=_0x15129b,_0x298c53;(_0x298c53=_0x28b18a[_0x28f18f(0x1f8)])==null||_0x298c53[_0x28f18f(0x20a)](),_0x28b18a['current']=null;}),[_0x139b86,_0x2021f0]),_0x4fe615?_0x16b57f(_0x4368ad,{'align':'end','disabled':_0x3725a9===h[_0x15129b(0x1d4)],'className':_0x15129b(0x23a),'overlay':_0x16b57f($e,{'status':_0x3725a9,'coordinator':_0x4fe615}),'children':_0x16b57f(_0x15129b(0x1d7),{'className':_0x571c3e(_0x15129b(0x1e4),{'univer-cursor-not-allowed':_0x3725a9===h[_0x15129b(0x1d4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3725a9!==h[_0x15129b(0x1d4)]}),'type':_0x15129b(0x1d7),'children':_0x16b57f(B,{'className':_0x15129b(0x216)})})}):null;}function _0x1ca5(){var _0x43c624=['UniverIcon','values','sheet','_status','hasOwnProperty','0\x200\x2017\x2017','univerjs-icon\x20univerjs-icon-','_commandDisposable','dispose$','onRendered','82456BrdoRV','getUnitId','getOwnPropertySymbols','getCurrentTypeOfUnit$','126081wTUSST','has','className','_handleNewChangeSets','propertyIsEnumerable','forEach','set','_collabSessionService','_presenter','next','startFollowing','add','parse','concat','_commandService','25WCrIHr','_config','getTypeOfUnitAdded$','extend','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','evenodd','ONLINE','_handleOperation','map','send','registerInitialStateReporter','_reporters','then','xlink:href','onStarting','http://www.w3.org/2000/svg','text','get','getValue','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_sharedOperations','trim','includes','_stopPresenting','idle','_handleNewHost','22DNszsp','7xnCYPj','_init','default','Present\x20this\x20document','_startLiveShareCoordinator','from','event$','getMemberID','LIVESHARE_TERMINATE','_injector','type','5673350KqvAgc','_handleOffline','mutations','stopPresenting','replace','prototype','defs','string','presenting','path','stopFollowing','tag','LIVESHARE_OPERATION','params','init','shouldShareOperation','_handleTerminate','UNIVER_UNKNOWN','_univerInstanceService','svg','2405190KwJoEC','getLiveShareCoordinator','fill','You\x27are\x20offline.','_unitID','following','getInitialStates','live-share.config','248QYNZBR','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','LiveShareIcon','entries','currentColor','random','LIVESHARE_REQUEST_HOST','IDLE','Stop\x20following','div','defIds','_collabSession','defineProperty','LIVESHARE_NEW_HOST','OFFLINE','_mountLiveShare','assign','button','getOwnPropertyDescriptor','children','_startFollowing','disposeWithMe','_uiPartsService','NOT_FOLLOWING','complete','univer-mb-3\x20univer-w-full\x20univer-text-sm','delete','_stopFollowing','stringify','_handleOnline','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','call','length','attrs','offline','You\x27re\x20presenting\x20the\x20document','UNIVER_LIVE_SHARE_PLUGIN','tryStartPresenting','Stop\x20presenting','HEADER_MENU','1em','data','presenter','override','sessionStatus$','symbol','PRESENTING','pipe','UNIVER_SHEET','unitId','current','NEW_CHANGESETS','subscribe','live-share-icon','dispose','1431398rWBTbG','_liveShareService','find','97783CxzKdb','SAME_OPERATION_SHARE_INTERVAL','not-following','onCommandExecuted','_beIdle','icon','displayName','idSuffix','status$','getConfig','unsubscribe','2262357CmEJNj','substring','url(#$1','executeCommand','_status$','FOLLOWING','You\x27re\x20not\x20following\x20the\x20presenter','_configService','registerSharedOperation','LIVESHARE_FETCH_OPERATIONS','colorChannel1','univer-size-4','_entities','_fetchOperations'];_0x1ca5=function(){return _0x43c624;};return _0x1ca5();}function $e(_0x56447f){var _0x17dfc8=_0x9778e6;const {status:_0x30d87e,coordinator:_0x6700b4}=_0x56447f;switch(_0x30d87e){case h['IDLE']:return _0x16b57f(Fe,{'coordinator':_0x6700b4});case h[_0x17dfc8(0x210)]:return _0x16b57f(He,{'coordinator':_0x6700b4});case h[_0x17dfc8(0x1dd)]:return _0x16b57f(je,{'coordinator':_0x6700b4});case h[_0x17dfc8(0x1d4)]:return _0x16b57f(Ve,{});case h[_0x17dfc8(0x1f4)]:return _0x16b57f(Ue,{'coordinator':_0x6700b4});default:return null;}}function Fe(_0x10993c){var _0x462e42=_0x9778e6;const {coordinator:_0x128451}=_0x10993c;return _0xa7baf9(_0x3c08dd,{'children':[_0x16b57f(_0x462e42(0x1cf),{'className':_0x462e42(0x1df),'children':_0x462e42(0x254)}),_0x16b57f(_0x2cc199,{'onClick':()=>_0x128451[_0x462e42(0x1eb)](),'children':'Start'})]});}function He(_0x73395e){var _0x41920b=_0x9778e6;const {coordinator:_0x15dc69}=_0x73395e;return _0xa7baf9(_0x3c08dd,{'children':[_0x16b57f('div',{'className':_0x41920b(0x1df),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x16b57f(_0x2cc199,{'onClick':()=>_0x15dc69[_0x41920b(0x1b4)](),'children':_0x41920b(0x1ce)})]});}function je(_0x108783){var _0x16ba73=_0x9778e6;const {coordinator:_0x28ae63}=_0x108783;return _0xa7baf9(_0x3c08dd,{'children':[_0x16b57f(_0x16ba73(0x1cf),{'className':_0x16ba73(0x1df),'children':_0x16ba73(0x211)}),_0x16b57f(_0x2cc199,{'variant':_0x16ba73(0x246),'onClick':()=>_0x28ae63[_0x16ba73(0x231)](),'children':'Start\x20following'})]});}function Ue(_0x529e6c){var _0x49928f=_0x9778e6;const {coordinator:_0x3ab0fd}=_0x529e6c;return _0xa7baf9(_0x3c08dd,{'children':[_0x16b57f(_0x49928f(0x1cf),{'className':_0x49928f(0x1df),'children':_0x49928f(0x1e9)}),_0x16b57f(_0x2cc199,{'variant':_0x49928f(0x253),'onClick':()=>_0x3ab0fd[_0x49928f(0x1ad)](),'children':_0x49928f(0x1ec)})]});}function Ve(){var _0xb86d4d=_0x9778e6;return _0x16b57f(_0x3c08dd,{'children':_0xb86d4d(0x1c1)});}var Me=Object[_0x9778e6(0x1d8)],ke=(_0x428261,_0x3470a6,_0x51eba9,_0x58bd24)=>{for(var _0x279155=_0x58bd24>0x1?void 0x0:_0x58bd24?Me(_0x3470a6,_0x51eba9):_0x3470a6,_0x385067=_0x428261['length']-0x1,_0x2e5976;_0x385067>=0x0;_0x385067--)(_0x2e5976=_0x428261[_0x385067])&&(_0x279155=_0x2e5976(_0x279155)||_0x279155);return _0x279155;},$=(_0x522291,_0x5d824a)=>(_0x107270,_0x3e15f6)=>_0x5d824a(_0x107270,_0x3e15f6,_0x522291);let b=class extends _0x2e3155{constructor(_0x161338,_0x4d6de6){var _0x215a3e=_0x9778e6;super(),this[_0x215a3e(0x25a)]=_0x161338,this[_0x215a3e(0x1dc)]=_0x4d6de6,this['_mountLiveShare']();}[_0x9778e6(0x1d5)](){var _0x3ea2ed=_0x9778e6;this['disposeWithMe'](this[_0x3ea2ed(0x1dc)]['registerComponent'](_0x48da4f[_0x3ea2ed(0x1ed)],()=>_0x328b1c(Te,this[_0x3ea2ed(0x25a)])));}};b=ke([$(0x0,_0x16d04b(_0x58e3c4)),$(0x1,_0x3628a7)],b);var Ge=Object[_0x9778e6(0x1d2)],We=Object[_0x9778e6(0x1d8)],Ye=(_0x4b4eeb,_0xb3e767,_0x5774a4)=>_0xb3e767 in _0x4b4eeb?Ge(_0x4b4eeb,_0xb3e767,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5774a4}):_0x4b4eeb[_0xb3e767]=_0x5774a4,Be=(_0x262f7c,_0x696649,_0x16433,_0x46326d)=>{var _0x365e1d=_0x9778e6;for(var _0x465847=_0x46326d>0x1?void 0x0:_0x46326d?We(_0x696649,_0x16433):_0x696649,_0x32d4a8=_0x262f7c[_0x365e1d(0x1e6)]-0x1,_0x46465f;_0x32d4a8>=0x0;_0x32d4a8--)(_0x46465f=_0x262f7c[_0x32d4a8])&&(_0x465847=_0x46465f(_0x465847)||_0x465847);return _0x465847;},F=(_0x2d383f,_0x734eb8)=>(_0xf10a80,_0x1f5497)=>_0x734eb8(_0xf10a80,_0x1f5497,_0x2d383f),J=(_0xfe0826,_0x4f6431,_0x379f2e)=>Ye(_0xfe0826,typeof _0x4f6431!=_0x9778e6(0x1f3)?_0x4f6431+'':_0x4f6431,_0x379f2e);const Ze=_0x9778e6(0x1ea);let O=class extends _0x2e613d{constructor(_0x4a32a9=T,_0x5bab26,_0x19b372){var _0x42ef4e=_0x9778e6;super(),this[_0x42ef4e(0x237)]=_0x4a32a9,this[_0x42ef4e(0x25a)]=_0x5bab26,this['_configService']=_0x19b372;const {..._0x1e3470}=_0x1f82eb({},T,this[_0x42ef4e(0x237)]);this['_configService']['setConfig'](Oe,_0x1e3470);}[_0x9778e6(0x244)](){var _0x48707b=_0x9778e6;_0x4f0f22(this[_0x48707b(0x25a)],_0x1a5aac([[L],[I],[m],[b]],this[_0x48707b(0x237)][_0x48707b(0x1f1)])),_0x3bf4fc(this['_injector'],[[m]]);}[_0x9778e6(0x222)](){var _0x2f3bbd=_0x9778e6;_0x3bf4fc(this[_0x2f3bbd(0x25a)],[[b]]);}};J(O,_0x9778e6(0x25b),_0x595007[_0x9778e6(0x1bb)]),J(O,'pluginName',Ze),O=Be([_0x2d3671(_0x571ab9),F(0x1,_0x16d04b(_0x58e3c4)),F(0x2,_0x3f3ec1)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x29ea9a=_0x51d1;(function(_0x2e539b,_0x30b79d){var _0x442bc2=_0x51d1,_0x2006dd=_0x2e539b();while(!![]){try{var _0x21830c=-parseInt(_0x442bc2(0x107))/0x1+parseInt(_0x442bc2(0x18d))/0x2*(parseInt(_0x442bc2(0x125))/0x3)+parseInt(_0x442bc2(0x121))/0x4*(-parseInt(_0x442bc2(0x16b))/0x5)+parseInt(_0x442bc2(0x184))/0x6+-parseInt(_0x442bc2(0x10d))/0x7+parseInt(_0x442bc2(0x15f))/0x8*(parseInt(_0x442bc2(0x15d))/0x9)+parseInt(_0x442bc2(0x18a))/0xa*(parseInt(_0x442bc2(0x16a))/0xb);if(_0x21830c===_0x30b79d)break;else _0x2006dd['push'](_0x2006dd['shift']());}catch(_0x35012c){_0x2006dd['push'](_0x2006dd['shift']());}}}(_0x1c84,0xc04ca));var q=Object[_0x29ea9a(0xe3)],z=(_0x1e27de,_0x3e9bd2,_0x102936)=>_0x3e9bd2 in _0x1e27de?q(_0x1e27de,_0x3e9bd2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x102936}):_0x1e27de[_0x3e9bd2]=_0x102936,d=(_0x30636d,_0x190c7f,_0x1a56e2)=>z(_0x30636d,typeof _0x190c7f!=_0x29ea9a(0x15c)?_0x190c7f+'':_0x190c7f,_0x1a56e2);import{CollaborationSessionService as _0x94a5e1,SessionStatus as _0x2862a6,UniverCollaborationClientPlugin as _0x1a961f}from'@univerjs-pro/collaboration-client';import{Disposable as _0x31e7a4,toDisposable as _0x5bc629,Inject as _0xf646c1,IUniverInstanceService as _0x3459c1,Injector as _0x4498f3,IConfigService as _0x548d47,ICommandService as _0x1b0ea8,RxDisposable as _0x4e23fa,UniverInstanceType as _0x2e7d47,DisposableCollection as _0x20d871,CommandType as _0x110f27,DependentOn as _0x484a52,Plugin as _0xe5ff50,merge as _0x1fc8bd,registerDependencies as _0x2df774,mergeOverrideWithDependencies as _0x1e76da,touchDependencies as _0x21061e}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x4a98a2,InsertSheetMutation as _0x438976}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x9bc1a6,SetScrollOperation as _0x35abd8}from'@univerjs/sheets-ui';import{useDependency as _0x1c7154,useObservable as _0x47ceac,IUIPartsService as _0x410032,BuiltInUIPart as _0x591b35,connectInjector as _0x2ac8da}from'@univerjs/ui';import{jsx as _0x4a136f,jsxs as _0x6bb112,Fragment as _0x1f470d}from'react/jsx-runtime';import{Dropdown as _0x1f3e5a,clsx as _0x42ee3f,Button as _0x1b521d}from'@univerjs/design';import{forwardRef as _0x583fa1,useRef as _0x5b9881,createElement as _0x4ad7a6,useState as _0x445d54,useEffect as _0x212ac3}from'react';import{CollaborationEvent as _0x4ba672,parseProtocolChangeset as _0x3bfe1e}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2ba6f1,Subject as _0x2ae17d}from'rxjs';import{takeUntil as _0xe8d355,throttleTime as _0x66b6b3}from'rxjs/operators';function _0x51d1(_0x329407,_0x58d95c){var _0x1c846c=_0x1c84();return _0x51d1=function(_0x51d167,_0x5f2db0){_0x51d167=_0x51d167-0xe2;var _0x1d1a4e=_0x1c846c[_0x51d167];return _0x1d1a4e;},_0x51d1(_0x329407,_0x58d95c);}const Oe=_0x29ea9a(0x17e),T={};class L extends _0x31e7a4{constructor(){super(...arguments),d(this,'_sharedOperations',new Set()),d(this,'_reporters',new Set());}['registerSharedOperation'](_0x49f752){var _0x230441=_0x29ea9a;return this['_sharedOperations'][_0x230441(0x154)](_0x49f752),_0x5bc629(()=>this[_0x230441(0x174)][_0x230441(0x118)](_0x49f752));}[_0x29ea9a(0x190)](_0x22e292){var _0x4a4c06=_0x29ea9a;return this['_reporters'][_0x4a4c06(0x154)](_0x22e292),_0x5bc629(()=>this[_0x4a4c06(0x164)]['delete'](_0x22e292));}[_0x29ea9a(0x12b)](_0x2e6cb2){var _0x4ece42=_0x29ea9a;return this['_sharedOperations'][_0x4ece42(0x169)](_0x2e6cb2);}['getInitialStates'](_0x51579d){var _0x22cbd6=_0x29ea9a;return Array[_0x22cbd6(0xec)](this['_reporters'])[_0x22cbd6(0x152)](_0x534788=>_0x534788(_0x51579d));}}var Ee=Object[_0x29ea9a(0x144)],we=(_0x4729e6,_0x25efc6,_0x4428ce,_0x5dd2d0)=>{var _0x523514=_0x29ea9a;for(var _0xc78f72=_0x5dd2d0>0x1?void 0x0:_0x5dd2d0?Ee(_0x25efc6,_0x4428ce):_0x25efc6,_0x355086=_0x4729e6[_0x523514(0xfd)]-0x1,_0x219f89;_0x355086>=0x0;_0x355086--)(_0x219f89=_0x4729e6[_0x355086])&&(_0xc78f72=_0x219f89(_0xc78f72)||_0xc78f72);return _0xc78f72;},Ne=(_0x17cca6,_0xa35939)=>(_0x5730c2,_0x314f4a)=>_0xa35939(_0x5730c2,_0x314f4a,_0x17cca6);let m=class extends _0x31e7a4{constructor(_0x456393){var _0x32c753=_0x29ea9a;super(),this[_0x32c753(0xe7)]=_0x456393,this[_0x32c753(0x191)]();}['_init'](){var _0x16f081=_0x29ea9a;[_0x9bc1a6['id'],_0x35abd8['id'],_0x4a98a2['id']][_0x16f081(0xfe)](_0x2dd668=>{var _0x50365d=_0x16f081;this[_0x50365d(0x11f)](this['_liveShareService']['registerSharedOperation'](_0x2dd668));});}};m=we([Ne(0x0,_0xf646c1(L))],m);var c=function(){var _0x4f80ae=_0x29ea9a;return c=Object[_0x4f80ae(0x129)]||function(_0x546113){var _0x1a2a1a=_0x4f80ae;for(var _0x2504bc,_0x5b7c09=0x1,_0x319fa3=arguments[_0x1a2a1a(0xfd)];_0x5b7c09<_0x319fa3;_0x5b7c09++){_0x2504bc=arguments[_0x5b7c09];for(var _0x37eb23 in _0x2504bc)Object[_0x1a2a1a(0xf8)][_0x1a2a1a(0x156)]['call'](_0x2504bc,_0x37eb23)&&(_0x546113[_0x37eb23]=_0x2504bc[_0x37eb23]);}return _0x546113;},c[_0x4f80ae(0x10f)](this,arguments);},Ce=function(_0x16c132,_0x13cf8f){var _0x3e8ae1=_0x29ea9a,_0x31237b={};for(var _0x19e3ca in _0x16c132)Object[_0x3e8ae1(0xf8)][_0x3e8ae1(0x156)][_0x3e8ae1(0x115)](_0x16c132,_0x19e3ca)&&_0x13cf8f[_0x3e8ae1(0xf2)](_0x19e3ca)<0x0&&(_0x31237b[_0x19e3ca]=_0x16c132[_0x19e3ca]);if(_0x16c132!=null&&typeof Object['getOwnPropertySymbols']==_0x3e8ae1(0x12a)){for(var _0x5ab7cc=0x0,_0x19e3ca=Object[_0x3e8ae1(0xed)](_0x16c132);_0x5ab7cc<_0x19e3ca[_0x3e8ae1(0xfd)];_0x5ab7cc++)_0x13cf8f[_0x3e8ae1(0xf2)](_0x19e3ca[_0x5ab7cc])<0x0&&Object[_0x3e8ae1(0xf8)]['propertyIsEnumerable']['call'](_0x16c132,_0x19e3ca[_0x5ab7cc])&&(_0x31237b[_0x19e3ca[_0x5ab7cc]]=_0x16c132[_0x19e3ca[_0x5ab7cc]]);}return _0x31237b;},W=_0x583fa1(function(_0x59348e,_0x575072){var _0x22ea0f=_0x29ea9a,_0x1a3048=_0x59348e[_0x22ea0f(0x110)],_0x501b1e=_0x59348e['id'],_0x428719=_0x59348e['className'],_0x4a1f29=_0x59348e[_0x22ea0f(0x185)],_0x5daae5=Ce(_0x59348e,[_0x22ea0f(0x110),'id',_0x22ea0f(0x162),_0x22ea0f(0x185)]),_0xdfe4ba=_0x22ea0f(0xe2)[_0x22ea0f(0x15a)](_0x501b1e,'\x20')[_0x22ea0f(0x15a)](_0x428719||'')[_0x22ea0f(0x14e)](),_0x8c5030=_0x5b9881('_'[_0x22ea0f(0x15a)](Le()));return Y(_0x1a3048,''['concat'](_0x501b1e),{'defIds':_0x1a3048[_0x22ea0f(0x16d)],'idSuffix':_0x8c5030[_0x22ea0f(0x150)]},c({'ref':_0x575072,'className':_0xdfe4ba},_0x5daae5),_0x4a1f29);});function Y(_0x351519,_0x7b0a64,_0x40ce57,_0x167839,_0x617ee6){var _0x123fb6=_0x29ea9a;return _0x4ad7a6(_0x351519[_0x123fb6(0x153)],c(c({'key':_0x7b0a64},De(_0x351519,_0x40ce57,_0x617ee6)),_0x167839),(xe(_0x351519,_0x40ce57)['children']||[])[_0x123fb6(0x152)](function(_0x573246,_0xd28742){var _0x4c1d74=_0x123fb6;return Y(_0x573246,''[_0x4c1d74(0x15a)](_0x7b0a64,'-')[_0x4c1d74(0x15a)](_0x351519['tag'],'-')[_0x4c1d74(0x15a)](_0xd28742),_0x40ce57,void 0x0,_0x617ee6);}));}function De(_0x178ca2,_0x127977,_0x199db4){var _0x1ece7c=_0x29ea9a,_0x3faf2d=c({},_0x178ca2['attrs']);_0x199db4!=null&&_0x199db4[_0x1ece7c(0x13b)]&&_0x3faf2d[_0x1ece7c(0x116)]==='colorChannel1'&&(_0x3faf2d[_0x1ece7c(0x116)]=_0x199db4[_0x1ece7c(0x13b)]),_0x178ca2[_0x1ece7c(0x153)]===_0x1ece7c(0xfb)&&_0x3faf2d['id']&&(_0x3faf2d['id']=_0x3faf2d['id']+_0x127977[_0x1ece7c(0xf1)]),Object[_0x1ece7c(0x148)](_0x3faf2d)[_0x1ece7c(0xfe)](function(_0x45616f){var _0xb5b206=_0x1ece7c,_0x4ab0d9=_0x45616f[0x0],_0x4fa357=_0x45616f[0x1];_0x4ab0d9===_0xb5b206(0xfb)&&typeof _0x4fa357==_0xb5b206(0x143)&&(_0x3faf2d[_0x4ab0d9]=_0x4fa357['replace'](/url\(#(.*)\)/,_0xb5b206(0xee)[_0xb5b206(0x15a)](_0x127977['idSuffix'],')')));});var _0x3ec402=_0x127977['defIds'];return!_0x3ec402||_0x3ec402[_0x1ece7c(0xfd)]===0x0||(_0x178ca2[_0x1ece7c(0x153)]==='use'&&_0x3faf2d[_0x1ece7c(0x142)]&&(_0x3faf2d[_0x1ece7c(0x142)]=_0x3faf2d[_0x1ece7c(0x142)]+_0x127977[_0x1ece7c(0xf1)]),Object[_0x1ece7c(0x148)](_0x3faf2d)[_0x1ece7c(0xfe)](function(_0x5a4901){var _0x2af601=_0x1ece7c,_0x27507f=_0x5a4901[0x0],_0x378233=_0x5a4901[0x1];typeof _0x378233=='string'&&(_0x3faf2d[_0x27507f]=_0x378233[_0x2af601(0x108)](/url\(#(.*)\)/,_0x2af601(0xee)[_0x2af601(0x15a)](_0x127977[_0x2af601(0xf1)],')')));})),_0x3faf2d;}function xe(_0x2d6f75,_0x2db820){var _0x4a7e05=_0x29ea9a,_0x30f5c6,_0x47d695=_0x2db820[_0x4a7e05(0x16d)];return!_0x47d695||_0x47d695[_0x4a7e05(0xfd)]===0x0?_0x2d6f75:_0x2d6f75['tag']===_0x4a7e05(0x117)&&(!((_0x30f5c6=_0x2d6f75['children'])===null||_0x30f5c6===void 0x0)&&_0x30f5c6[_0x4a7e05(0xfd)])?c(c({},_0x2d6f75),{'children':_0x2d6f75[_0x4a7e05(0xe5)][_0x4a7e05(0x152)](function(_0xf66d93){var _0x5d9e9d=_0x4a7e05;return typeof _0xf66d93[_0x5d9e9d(0x163)]['id']==_0x5d9e9d(0x143)&&_0x47d695&&_0x47d695[_0x5d9e9d(0x14a)](_0xf66d93['attrs']['id'])?c(c({},_0xf66d93),{'attrs':c(c({},_0xf66d93[_0x5d9e9d(0x163)]),{'id':_0xf66d93['attrs']['id']+_0x2db820[_0x5d9e9d(0xf1)]})}):_0xf66d93;})}):_0x2d6f75;}function Le(){var _0x31daf6=_0x29ea9a;return Math[_0x31daf6(0x155)]()[_0x31daf6(0xf9)](0x24)[_0x31daf6(0x135)](0x2,0x8);}W[_0x29ea9a(0x12c)]=_0x29ea9a(0xf3);var ye={'tag':_0x29ea9a(0x160),'attrs':{'xmlns':_0x29ea9a(0x159),'fill':_0x29ea9a(0x13f),'viewBox':_0x29ea9a(0x11c),'width':'1em','height':_0x29ea9a(0xeb)},'children':[{'tag':'path','attrs':{'fill':_0x29ea9a(0x15e),'d':_0x29ea9a(0x133)}},{'tag':_0x29ea9a(0x13d),'attrs':{'fill':_0x29ea9a(0x15e),'d':_0x29ea9a(0x10c),'fillRule':'evenodd','clipRule':'evenodd'}}]},B=_0x583fa1(function(_0x5eb44d,_0x1d0b83){var _0x36dd0c=_0x29ea9a;return _0x4ad7a6(W,Object[_0x36dd0c(0x129)]({},_0x5eb44d,{'id':_0x36dd0c(0x175),'ref':_0x1d0b83,'icon':ye}));});B[_0x29ea9a(0x12c)]=_0x29ea9a(0xe4);var Re=Object[_0x29ea9a(0x144)],Z=(_0x4a1d99,_0x639301,_0x3ca504,_0x1ee71b)=>{var _0x2c75d5=_0x29ea9a;for(var _0xdeff43=_0x1ee71b>0x1?void 0x0:_0x1ee71b?Re(_0x639301,_0x3ca504):_0x639301,_0xb45533=_0x4a1d99[_0x2c75d5(0xfd)]-0x1,_0x50dfce;_0xb45533>=0x0;_0xb45533--)(_0x50dfce=_0x4a1d99[_0xb45533])&&(_0xdeff43=_0x50dfce(_0xdeff43)||_0xdeff43);return _0xdeff43;},f=(_0x54ad62,_0x4708ba)=>(_0x3dfb05,_0xc7ff4f)=>_0x4708ba(_0x3dfb05,_0xc7ff4f,_0x54ad62);let I=class extends _0x4e23fa{constructor(_0x1cce31,_0x50b9af,_0x17cfc2){var _0x53d623=_0x29ea9a;super(),d(this,_0x53d623(0x149),new Map()),(this[_0x53d623(0x17d)]=_0x1cce31,this[_0x53d623(0x176)]=_0x50b9af,this[_0x53d623(0x183)]=_0x17cfc2,this[_0x53d623(0x191)]());}async[_0x29ea9a(0x134)](_0x5b2e16){var _0x3ef8dd=_0x29ea9a;return this[_0x3ef8dd(0x149)][_0x3ef8dd(0x169)](_0x5b2e16)||await this['_startLiveShareCoordinator'](_0x5b2e16),this[_0x3ef8dd(0x149)][_0x3ef8dd(0x103)](_0x5b2e16);}[_0x29ea9a(0x191)](){var _0x41d61e=_0x29ea9a;this[_0x41d61e(0x17d)][_0x41d61e(0xf5)](_0x2e7d47[_0x41d61e(0x17a)])[_0x41d61e(0x10b)](_0xe8d355(this[_0x41d61e(0x16e)]))['subscribe'](async _0x182770=>{var _0x3f6f23=_0x41d61e;const _0x235b5c=_0x182770[_0x3f6f23(0x11b)]();this[_0x3f6f23(0x149)][_0x3f6f23(0x169)](_0x235b5c)||this['_startLiveShareCoordinator'](_0x235b5c);}),this[_0x41d61e(0x17d)][_0x41d61e(0x186)](_0x2e7d47[_0x41d61e(0x17a)])[_0x41d61e(0x10b)](_0xe8d355(this['dispose$']))[_0x41d61e(0x127)](_0x3cdcd7=>{var _0xf57f0d=_0x41d61e;const _0x34c9e6=_0x3cdcd7['getUnitId'](),_0x2c7fb8=this[_0xf57f0d(0x149)]['get'](_0x34c9e6);_0x2c7fb8==null||_0x2c7fb8[_0xf57f0d(0x14d)]();});}async['_startLiveShareCoordinator'](_0x162ec6){var _0x2c22e6=_0x29ea9a;const _0x45ac00=await this['_collabSessionService'][_0x2c22e6(0x11d)](_0x162ec6),_0x4f6b13=this[_0x2c22e6(0x176)][_0x2c22e6(0x161)](C,_0x162ec6,_0x45ac00);return _0x4f6b13[_0x2c22e6(0x111)](),this[_0x2c22e6(0x149)]['set'](_0x162ec6,_0x4f6b13),_0x4f6b13;}};I=Z([f(0x0,_0x3459c1),f(0x1,_0xf646c1(_0x4498f3)),f(0x2,_0xf646c1(_0x94a5e1))],I);var h=(_0xc86bd0=>(_0xc86bd0[_0x29ea9a(0x114)]='offline',_0xc86bd0[_0x29ea9a(0x109)]='idle',_0xc86bd0[_0x29ea9a(0x14b)]=_0x29ea9a(0x13e),_0xc86bd0[_0x29ea9a(0x188)]=_0x29ea9a(0xfa),_0xc86bd0['PRESENTING']='presenting',_0xc86bd0))(h||{});const Pe=_0x29ea9a(0x187),Ae=0xc8;let C=class extends _0x4e23fa{constructor(_0x52c8ee,_0x215b8b,_0xd5ef52,_0x3e8131,_0x30510b){var _0x275bac=_0x29ea9a;super(),d(this,_0x275bac(0x147),new _0x2ba6f1(_0x275bac(0x14c))),d(this,'status$',this[_0x275bac(0x147)][_0x275bac(0xe9)]()),d(this,_0x275bac(0x191),!0x1),d(this,_0x275bac(0x182),null),d(this,_0x275bac(0x13c),null),(this[_0x275bac(0x189)]=_0x52c8ee,this[_0x275bac(0xf7)]=_0x215b8b,this['_configService']=_0xd5ef52,this['_liveShareService']=_0x3e8131,this['_commandService']=_0x30510b);}get[_0x29ea9a(0x171)](){var _0x1c0415=_0x29ea9a;return this[_0x1c0415(0x147)]['getValue']();}[_0x29ea9a(0x14d)](){var _0x46e4a8=_0x29ea9a,_0x1e2fd3;(_0x1e2fd3=this['_commandDisposable'])==null||_0x1e2fd3['dispose'](),this[_0x46e4a8(0x147)][_0x46e4a8(0x140)](_0x46e4a8(0x14c)),this['_status$'][_0x46e4a8(0x14f)]();}[_0x29ea9a(0x111)](){var _0x3e1a6c=_0x29ea9a;this[_0x3e1a6c(0x191)]||(this['_init']=!0x0,this[_0x3e1a6c(0xf7)][_0x3e1a6c(0x168)][_0x3e1a6c(0x10b)](_0xe8d355(this['dispose$']))[_0x3e1a6c(0x127)](_0x33a298=>{var _0x433edb=_0x3e1a6c;switch(_0x33a298){case _0x2862a6[_0x433edb(0x114)]:this[_0x433edb(0xe6)]();break;case _0x2862a6[_0x433edb(0x119)]:this[_0x433edb(0xea)]();break;}}),this[_0x3e1a6c(0xf7)][_0x3e1a6c(0x130)][_0x3e1a6c(0x10b)](_0xe8d355(this[_0x3e1a6c(0x16e)]))['subscribe'](_0xcdd238=>{var _0x176846=_0x3e1a6c;const {eventID:_0x222dc3}=_0xcdd238;switch(_0x222dc3){case _0x4ba672[_0x176846(0x141)]:this[_0x176846(0x100)](_0xcdd238);break;case _0x4ba672['LIVESHARE_OPERATION']:this[_0x176846(0x17b)](_0xcdd238);break;case _0x4ba672[_0x176846(0x113)]:this[_0x176846(0x179)]();break;case _0x4ba672['NEW_CHANGESETS']:this[_0x176846(0x11e)](_0xcdd238);break;}}));}['tryStartPresenting'](){var _0x5a07cc=_0x29ea9a;this[_0x5a07cc(0xf7)][_0x5a07cc(0xef)]({'eventID':_0x4ba672['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x5a07cc(0x18e)]()}},this[_0x5a07cc(0x189)]);}['stopPresenting'](){var _0x42b4d6=_0x29ea9a;this['_status']===_0x42b4d6(0x105)&&(this[_0x42b4d6(0x147)][_0x42b4d6(0x140)]('idle'),this[_0x42b4d6(0xf7)][_0x42b4d6(0xef)]({'eventID':_0x4ba672[_0x42b4d6(0x113)],'data':{'unitID':this['_unitID']}},this[_0x42b4d6(0x189)]));}['startFollowing'](){var _0x319e7d=_0x29ea9a;this[_0x319e7d(0x171)]===_0x319e7d(0xfa)&&(this['_status$'][_0x319e7d(0x140)](_0x319e7d(0x13e)),this[_0x319e7d(0x192)]());}[_0x29ea9a(0x178)](){var _0x2355c5=_0x29ea9a;this[_0x2355c5(0x171)]===_0x2355c5(0x13e)&&this[_0x2355c5(0x139)]();}[_0x29ea9a(0x100)](_0x9946a1){var _0x5e3cb2=_0x29ea9a;const {presenter:_0x8feeef}=_0x9946a1['data'],_0x484067=this[_0x5e3cb2(0xf7)][_0x5e3cb2(0x18e)]();this['_presenter']=_0x8feeef,_0x8feeef===_0x484067?(this[_0x5e3cb2(0x139)](),this['_startPresenting']()):this[_0x5e3cb2(0x171)]!==_0x5e3cb2(0xfa)&&(this[_0x5e3cb2(0x165)](),this['_startFollowing']());}[_0x29ea9a(0x145)](){var _0x517ee2=_0x29ea9a;const _0x139f05={'eventID':_0x4ba672[_0x517ee2(0x193)]};this[_0x517ee2(0xf7)][_0x517ee2(0xef)](_0x139f05,this[_0x517ee2(0x189)]);}[_0x29ea9a(0x179)](){var _0x4a90a8=_0x29ea9a;this[_0x4a90a8(0x13c)]=null,this['_status']!==_0x4a90a8(0x105)&&this['_beIdle']();}[_0x29ea9a(0x11e)](_0x59f989){var _0x50d831=_0x29ea9a;if(this[_0x50d831(0x171)]===_0x50d831(0x13e)&&this[_0x50d831(0x13c)]===_0x59f989[_0x50d831(0x120)][_0x50d831(0x18c)]){const _0x2eb3eb=_0x3bfe1e(_0x59f989[_0x50d831(0x120)])[_0x50d831(0x11a)]['reverse']()[_0x50d831(0xfc)](_0x170a2c=>_0x170a2c['id']===_0x438976['id']);if(_0x2eb3eb){const _0xe99f74=_0x2eb3eb['params'][_0x50d831(0x166)],_0x4181ae=_0x2eb3eb[_0x50d831(0x131)]['sheet']['id'];setTimeout(()=>{var _0xcfc9a7=_0x50d831;this[_0xcfc9a7(0x137)]['executeCommand'](_0x4a98a2['id'],{'unitId':_0xe99f74,'subUnitId':_0x4181ae},{'fromCollab':!0x0});});}}}[_0x29ea9a(0xf0)](){var _0x292509=_0x29ea9a;this[_0x292509(0x147)]['next']('presenting');const _0xaf012f=new Map(),_0x156205=this['_commandDisposable']=new _0x20d871();_0x156205[_0x292509(0x154)](_0x5bc629(()=>{var _0x524e09=_0x292509;_0xaf012f[_0x524e09(0xfe)](_0x40801e=>_0x40801e[_0x524e09(0x14f)]()),_0xaf012f[_0x524e09(0x177)]();})),_0x156205['add'](this[_0x292509(0x137)][_0x292509(0x181)](_0x100f14=>{var _0x1fea4f=_0x292509,_0x27232b;if(_0x100f14['type']!==_0x110f27[_0x1fea4f(0x126)]||!this['_liveShareService']['shouldShareOperation'](_0x100f14['id']))return;const {id:_0x18db32}=_0x100f14;let _0x24fe15;_0xaf012f[_0x1fea4f(0x169)](_0x18db32)?_0x24fe15=_0xaf012f[_0x1fea4f(0x103)](_0x18db32):(_0x24fe15=new _0x2ae17d(),_0xaf012f[_0x1fea4f(0x13a)](_0x18db32,_0x24fe15),_0x24fe15['pipe'](_0x66b6b3((_0x27232b=this[_0x1fea4f(0x136)][_0x1fea4f(0x138)](Pe))!=null?_0x27232b:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1fea4f(0x127)](_0x31ba6=>{var _0x187f78=_0x1fea4f;this['_collabSession']['send']({'eventID':_0x4ba672[_0x187f78(0x10a)],'data':{'unitID':this[_0x187f78(0x189)],'operations':{[_0x31ba6['id']]:{'id':_0x31ba6['id'],'params':JSON[_0x187f78(0x167)](_0x31ba6['params'])}}}},this[_0x187f78(0x189)]);})),_0x24fe15[_0x1fea4f(0x140)](_0x100f14);})),this['_liveShareService'][_0x292509(0x10e)](this['_unitID'])[_0x292509(0xfe)](_0x430b5d=>this[_0x292509(0xf7)]['send']({'eventID':_0x4ba672['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x292509(0x189)],'operations':{[_0x430b5d['id']]:{'id':_0x430b5d['id'],'params':JSON[_0x292509(0x167)](_0x430b5d[_0x292509(0x131)])}}}},this[_0x292509(0x189)]));}[_0x29ea9a(0x165)](){var _0x481fa1=_0x29ea9a,_0x52f8a2;this[_0x481fa1(0x147)]['next']('idle'),(_0x52f8a2=this[_0x481fa1(0x182)])==null||_0x52f8a2[_0x481fa1(0x14d)](),this[_0x481fa1(0x182)]=null;}[_0x29ea9a(0x192)](){var _0x24bd24=_0x29ea9a,_0x19333c;(_0x19333c=this[_0x24bd24(0x182)])==null||_0x19333c[_0x24bd24(0x14d)](),this[_0x24bd24(0x147)][_0x24bd24(0x140)](_0x24bd24(0x13e));}[_0x29ea9a(0x18f)](){var _0x201217=_0x29ea9a,_0x5e5564;this['_status$'][_0x201217(0x140)](_0x201217(0x14c)),(_0x5e5564=this[_0x201217(0x182)])==null||_0x5e5564[_0x201217(0x14d)](),this[_0x201217(0x182)]=null;}[_0x29ea9a(0x139)](){var _0x260e9d=_0x29ea9a,_0x939aef;this[_0x260e9d(0x147)]['next'](_0x260e9d(0xfa)),(_0x939aef=this[_0x260e9d(0x182)])==null||_0x939aef[_0x260e9d(0x14d)]();}[_0x29ea9a(0x17b)](_0x283abf){var _0x5517e9=_0x29ea9a;if([_0x5517e9(0x105),_0x5517e9(0xfa),'offline'][_0x5517e9(0x14a)](this['_status'])||!_0x283abf[_0x5517e9(0x120)]['presenter']||_0x283abf[_0x5517e9(0x120)]['presenter']===this[_0x5517e9(0xf7)][_0x5517e9(0x18e)]())return;this['_status']===_0x5517e9(0x14c)&&this[_0x5517e9(0x192)]();const _0x2eab83=_0x283abf[_0x5517e9(0x120)][_0x5517e9(0x15b)];Object[_0x5517e9(0x122)](_0x2eab83)[_0x5517e9(0xfe)](_0x3bee2d=>{var _0x45bd06=_0x5517e9;this[_0x45bd06(0x137)][_0x45bd06(0x170)](_0x3bee2d['id'],_0x3bee2d[_0x45bd06(0x131)]?JSON['parse'](_0x3bee2d[_0x45bd06(0x131)]):null,{'fromCollab':!0x0});});}[_0x29ea9a(0xe6)](){var _0x92359d=_0x29ea9a,_0x642c3c;this[_0x92359d(0x147)][_0x92359d(0x140)]('offline'),(_0x642c3c=this['_commandDisposable'])==null||_0x642c3c[_0x92359d(0x14d)]();}[_0x29ea9a(0xea)](){var _0x45fb61=_0x29ea9a;this[_0x45fb61(0x147)][_0x45fb61(0x140)]('idle'),this[_0x45fb61(0x145)]();}};C=Z([f(0x2,_0x548d47),f(0x3,_0xf646c1(L)),f(0x4,_0x1b0ea8)],C);function Te(){var _0xf9ddca=_0x29ea9a;const _0x45a09a=_0x1c7154(I),_0x5e7ead=_0x1c7154(_0x3459c1),_0xd3caca=_0x47ceac(()=>_0x5e7ead[_0xf9ddca(0x132)](_0x2e7d47[_0xf9ddca(0x17a)]),void 0x0,!0x1,[]),[_0x3b8e9c,_0xd0e9f3]=_0x445d54(null),[_0x224d15,_0x32f3b5]=_0x445d54(h['IDLE']),_0xa80675=_0x5b9881(null);return _0x212ac3(()=>(_0xd3caca&&_0x45a09a[_0xf9ddca(0x134)](_0xd3caca[_0xf9ddca(0x11b)]())[_0xf9ddca(0x151)](_0x206eb9=>{var _0x5bbaba=_0xf9ddca;_0xd0e9f3(_0x206eb9),_0xa80675[_0x5bbaba(0x150)]=_0x206eb9['status$']['subscribe'](_0x5070a4=>{_0x32f3b5(_0x5070a4);});}),()=>{var _0x43059c=_0xf9ddca,_0x182b58;(_0x182b58=_0xa80675[_0x43059c(0x150)])==null||_0x182b58[_0x43059c(0x180)](),_0xa80675[_0x43059c(0x150)]=null;}),[_0xd3caca,_0x45a09a]),_0x3b8e9c?_0x4a136f(_0x1f3e5a,{'align':_0xf9ddca(0x17f),'disabled':_0x224d15===h['OFFLINE'],'className':_0xf9ddca(0x17c),'overlay':_0x4a136f($e,{'status':_0x224d15,'coordinator':_0x3b8e9c}),'children':_0x4a136f('button',{'className':_0x42ee3f(_0xf9ddca(0x16f),{'univer-cursor-not-allowed':_0x224d15===h[_0xf9ddca(0x114)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x224d15!==h['OFFLINE']}),'type':'button','children':_0x4a136f(B,{'className':_0xf9ddca(0xff)})})}):null;}function $e(_0x9a85bb){var _0x33288a=_0x29ea9a;const {status:_0x5817e0,coordinator:_0x333446}=_0x9a85bb;switch(_0x5817e0){case h[_0x33288a(0x109)]:return _0x4a136f(Fe,{'coordinator':_0x333446});case h[_0x33288a(0x14b)]:return _0x4a136f(He,{'coordinator':_0x333446});case h[_0x33288a(0x188)]:return _0x4a136f(je,{'coordinator':_0x333446});case h[_0x33288a(0x114)]:return _0x4a136f(Ve,{});case h[_0x33288a(0x172)]:return _0x4a136f(Ue,{'coordinator':_0x333446});default:return null;}}function Fe(_0xa7ebdc){var _0x1afe45=_0x29ea9a;const {coordinator:_0x2a99e0}=_0xa7ebdc;return _0x6bb112(_0x1f470d,{'children':[_0x4a136f(_0x1afe45(0x112),{'className':_0x1afe45(0x18b),'children':'Present\x20this\x20document'}),_0x4a136f(_0x1b521d,{'onClick':()=>_0x2a99e0[_0x1afe45(0xf6)](),'children':'Start'})]});}function He(_0x203364){var _0x2826aa=_0x29ea9a;const {coordinator:_0x4f5e11}=_0x203364;return _0x6bb112(_0x1f470d,{'children':[_0x4a136f(_0x2826aa(0x112),{'className':_0x2826aa(0x18b),'children':_0x2826aa(0x124)}),_0x4a136f(_0x1b521d,{'onClick':()=>_0x4f5e11[_0x2826aa(0x178)](),'children':_0x2826aa(0xe8)})]});}function je(_0x3c4956){var _0x3fd904=_0x29ea9a;const {coordinator:_0x36814f}=_0x3c4956;return _0x6bb112(_0x1f470d,{'children':[_0x4a136f(_0x3fd904(0x112),{'className':_0x3fd904(0x18b),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4a136f(_0x1b521d,{'variant':_0x3fd904(0x157),'onClick':()=>_0x36814f[_0x3fd904(0x16c)](),'children':_0x3fd904(0x102)})]});}function Ue(_0xf5f8c5){var _0x4d988e=_0x29ea9a;const {coordinator:_0x148e48}=_0xf5f8c5;return _0x6bb112(_0x1f470d,{'children':[_0x4a136f(_0x4d988e(0x112),{'className':_0x4d988e(0x18b),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4a136f(_0x1b521d,{'variant':_0x4d988e(0x12f),'onClick':()=>_0x148e48['stopPresenting'](),'children':_0x4d988e(0x101)})]});}function Ve(){var _0x500d47=_0x29ea9a;return _0x4a136f(_0x1f470d,{'children':_0x500d47(0x12e)});}var Me=Object[_0x29ea9a(0x144)],ke=(_0xafba00,_0x26e348,_0x1b621e,_0x448c0e)=>{var _0x288742=_0x29ea9a;for(var _0x565988=_0x448c0e>0x1?void 0x0:_0x448c0e?Me(_0x26e348,_0x1b621e):_0x26e348,_0xca3a23=_0xafba00[_0x288742(0xfd)]-0x1,_0x1d090b;_0xca3a23>=0x0;_0xca3a23--)(_0x1d090b=_0xafba00[_0xca3a23])&&(_0x565988=_0x1d090b(_0x565988)||_0x565988);return _0x565988;},$=(_0x41c942,_0x2be0b4)=>(_0x4004b3,_0x43d979)=>_0x2be0b4(_0x4004b3,_0x43d979,_0x41c942);let b=class extends _0x31e7a4{constructor(_0x58032c,_0x7039b4){var _0x287563=_0x29ea9a;super(),this[_0x287563(0x176)]=_0x58032c,this['_uiPartsService']=_0x7039b4,this[_0x287563(0x106)]();}[_0x29ea9a(0x106)](){var _0x1f40fb=_0x29ea9a;this[_0x1f40fb(0x11f)](this['_uiPartsService'][_0x1f40fb(0xf4)](_0x591b35[_0x1f40fb(0x12d)],()=>_0x2ac8da(Te,this[_0x1f40fb(0x176)])));}};b=ke([$(0x0,_0xf646c1(_0x4498f3)),$(0x1,_0x410032)],b);var Ge=Object['defineProperty'],We=Object[_0x29ea9a(0x144)],Ye=(_0x3e98b5,_0x5c2556,_0x21b3d4)=>_0x5c2556 in _0x3e98b5?Ge(_0x3e98b5,_0x5c2556,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21b3d4}):_0x3e98b5[_0x5c2556]=_0x21b3d4,Be=(_0x2e2445,_0x33b4e8,_0x325c9c,_0x5e81cd)=>{var _0x7738a5=_0x29ea9a;for(var _0xc12076=_0x5e81cd>0x1?void 0x0:_0x5e81cd?We(_0x33b4e8,_0x325c9c):_0x33b4e8,_0x3a3cfb=_0x2e2445[_0x7738a5(0xfd)]-0x1,_0xb942d8;_0x3a3cfb>=0x0;_0x3a3cfb--)(_0xb942d8=_0x2e2445[_0x3a3cfb])&&(_0xc12076=_0xb942d8(_0xc12076)||_0xc12076);return _0xc12076;},F=(_0x2c32ba,_0x531112)=>(_0x575a22,_0x10a097)=>_0x531112(_0x575a22,_0x10a097,_0x2c32ba),J=(_0x189e2c,_0x38a65c,_0x560644)=>Ye(_0x189e2c,typeof _0x38a65c!='symbol'?_0x38a65c+'':_0x38a65c,_0x560644);function _0x1c84(){var _0xb87989=['displayName','HEADER_MENU','You\x27are\x20offline.','default','event$','params','getCurrentTypeOfUnit$','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','getLiveShareCoordinator','substring','_configService','_commandService','getConfig','_stopFollowing','set','colorChannel1','_presenter','path','following','none','next','LIVESHARE_NEW_HOST','xlink:href','string','getOwnPropertyDescriptor','_fetchOperations','UNIVER_UNKNOWN','_status$','entries','_entities','includes','FOLLOWING','idle','dispose','trim','complete','current','then','map','tag','add','random','hasOwnProperty','text','_config','http://www.w3.org/2000/svg','concat','operations','symbol','9piTwWA','currentColor','7618824eCinFs','svg','createInstance','className','attrs','_reporters','_stopPresenting','unitId','stringify','sessionStatus$','has','1444223VFnhuk','4701655KSNqAh','startFollowing','defIds','dispose$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','executeCommand','_status','PRESENTING','override','_sharedOperations','live-share-icon','_injector','clear','stopFollowing','_handleTerminate','UNIVER_SHEET','_handleOperation','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_univerInstanceService','live-share.config','end','unsubscribe','onCommandExecuted','_commandDisposable','_collabSessionService','7728972HJLjtG','extend','getTypeOfUnitDisposed$','SAME_OPERATION_SHARE_INTERVAL','NOT_FOLLOWING','_unitID','10QvhuZD','univer-mb-3\x20univer-w-full\x20univer-text-sm','memberID','4MrDisJ','getMemberID','_beIdle','registerInitialStateReporter','_init','_startFollowing','LIVESHARE_FETCH_OPERATIONS','univerjs-icon\x20univerjs-icon-','defineProperty','LiveShareIcon','children','_handleOffline','_liveShareService','Stop\x20following','asObservable','_handleOnline','1em','from','getOwnPropertySymbols','url(#$1','send','_startPresenting','idSuffix','indexOf','UniverIcon','registerComponent','getTypeOfUnitAdded$','tryStartPresenting','_collabSession','prototype','toString','not-following','mask','find','length','forEach','univer-size-4','_handleNewHost','Stop\x20presenting','Start\x20following','get','pluginName','presenting','_mountLiveShare','735406bnpZXG','replace','IDLE','LIVESHARE_OPERATION','pipe','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','8515199DXvfLa','getInitialStates','apply','icon','init','div','LIVESHARE_TERMINATE','OFFLINE','call','fill','defs','delete','ONLINE','mutations','getUnitId','0\x200\x2017\x2017','requireSession','_handleNewChangeSets','disposeWithMe','data','4dXQVXl','values','UNIVER_LIVE_SHARE_PLUGIN','You\x27re\x20following\x20the\x20presenter','1962066RNeIFH','OPERATION','subscribe','onStarting','assign','function','shouldShareOperation'];_0x1c84=function(){return _0xb87989;};return _0x1c84();}const Ze=_0x29ea9a(0x123);let O=class extends _0xe5ff50{constructor(_0x270f78=T,_0x1ef3a4,_0x197e8a){var _0x683045=_0x29ea9a;super(),this[_0x683045(0x158)]=_0x270f78,this[_0x683045(0x176)]=_0x1ef3a4,this[_0x683045(0x136)]=_0x197e8a;const {..._0x5c320c}=_0x1fc8bd({},T,this['_config']);this[_0x683045(0x136)]['setConfig'](Oe,_0x5c320c);}[_0x29ea9a(0x128)](){var _0x2a2072=_0x29ea9a;_0x2df774(this[_0x2a2072(0x176)],_0x1e76da([[L],[I],[m],[b]],this['_config'][_0x2a2072(0x173)])),_0x21061e(this[_0x2a2072(0x176)],[[m]]);}['onRendered'](){_0x21061e(this['_injector'],[[b]]);}};J(O,'type',_0x2e7d47[_0x29ea9a(0x146)]),J(O,_0x29ea9a(0x104),Ze),O=Be([_0x484a52(_0x1a961f),F(0x1,_0xf646c1(_0x4498f3)),F(0x2,_0x548d47)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x9778e6=_0x4bc8;(function(_0x14ac5d,_0x11d897){var _0x1eb99b=_0x4bc8,_0x2de207=_0x14ac5d();while(!![]){try{var _0x3e6909=-parseInt(_0x1eb99b(0x200))/0x1+-parseInt(_0x1eb99b(0x1fd))/0x2+-parseInt(_0x1eb99b(0x20b))/0x3+parseInt(_0x1eb99b(0x223))/0x4*(parseInt(_0x1eb99b(0x236))/0x5)+parseInt(_0x1eb99b(0x1be))/0x6*(parseInt(_0x1eb99b(0x251))/0x7)+-parseInt(_0x1eb99b(0x1c6))/0x8*(-parseInt(_0x1eb99b(0x227))/0x9)+parseInt(_0x1eb99b(0x1aa))/0xa*(parseInt(_0x1eb99b(0x250))/0xb);if(_0x3e6909===_0x11d897)break;else _0x2de207['push'](_0x2de207['shift']());}catch(_0x500ae6){_0x2de207['push'](_0x2de207['shift']());}}}(_0x1ca5,0x7b5c3));function _0x4bc8(_0x15361e,_0x447668){var _0x1ca50d=_0x1ca5();return _0x4bc8=function(_0x4bc897,_0x3ba5f8){_0x4bc897=_0x4bc897-0x1aa;var _0x34657f=_0x1ca50d[_0x4bc897];return _0x34657f;},_0x4bc8(_0x15361e,_0x447668);}var q=Object[_0x9778e6(0x1d2)],z=(_0x26e524,_0xf61c4d,_0x4196fd)=>_0xf61c4d in _0x26e524?q(_0x26e524,_0xf61c4d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4196fd}):_0x26e524[_0xf61c4d]=_0x4196fd,d=(_0x1fdead,_0x1207bb,_0x41fe7a)=>z(_0x1fdead,typeof _0x1207bb!=_0x9778e6(0x1f3)?_0x1207bb+'':_0x1207bb,_0x41fe7a);import{CollaborationSessionService as _0x4a76a3,SessionStatus as _0x3b9352,UniverCollaborationClientPlugin as _0x571ab9}from'@univerjs-pro/collaboration-client';import{Disposable as _0x2e3155,toDisposable as _0x516894,Inject as _0x16d04b,IUniverInstanceService as _0x521bf2,Injector as _0x58e3c4,IConfigService as _0x3f3ec1,ICommandService as _0x3ac4bd,RxDisposable as _0x56497b,UniverInstanceType as _0x595007,DisposableCollection as _0x72472d,CommandType as _0x22b12f,DependentOn as _0x2d3671,Plugin as _0x2e613d,merge as _0x1f82eb,registerDependencies as _0x4f0f22,mergeOverrideWithDependencies as _0x1a5aac,touchDependencies as _0x3bf4fc}from'@univerjs/core';import{SetWorksheetActiveOperation as _0xc3474a,InsertSheetMutation as _0x37a933}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x48bc76,SetScrollOperation as _0x4aa3ed}from'@univerjs/sheets-ui';import{useDependency as _0x1e8d4a,useObservable as _0x104952,IUIPartsService as _0x3628a7,BuiltInUIPart as _0x48da4f,connectInjector as _0x328b1c}from'@univerjs/ui';import{jsx as _0x16b57f,jsxs as _0xa7baf9,Fragment as _0x3c08dd}from'react/jsx-runtime';import{Dropdown as _0x4368ad,clsx as _0x571c3e,Button as _0x2cc199}from'@univerjs/design';import{forwardRef as _0x3c17af,useRef as _0x2a7acc,createElement as _0x44a707,useState as _0x3e204,useEffect as _0x278b9b}from'react';import{CollaborationEvent as _0x18ef0a,parseProtocolChangeset as _0x8ba9d1}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x572475,Subject as _0x9b51d0}from'rxjs';import{takeUntil as _0x109cce,throttleTime as _0xeb248e}from'rxjs/operators';const Oe=_0x9778e6(0x1c5),T={};class L extends _0x2e3155{constructor(){var _0xd1aa01=_0x9778e6;super(...arguments),d(this,_0xd1aa01(0x24a),new Set()),d(this,_0xd1aa01(0x241),new Set());}[_0x9778e6(0x213)](_0x41f394){var _0x2f126e=_0x9778e6;return this[_0x2f126e(0x24a)][_0x2f126e(0x232)](_0x41f394),_0x516894(()=>this[_0x2f126e(0x24a)]['delete'](_0x41f394));}[_0x9778e6(0x240)](_0x527f31){var _0x3b7f11=_0x9778e6;return this[_0x3b7f11(0x241)]['add'](_0x527f31),_0x516894(()=>this['_reporters'][_0x3b7f11(0x1e0)](_0x527f31));}['shouldShareOperation'](_0xb20aac){var _0x3c2509=_0x9778e6;return this['_sharedOperations'][_0x3c2509(0x228)](_0xb20aac);}[_0x9778e6(0x1c4)](_0x323e4f){var _0x2d87e6=_0x9778e6;return Array[_0x2d87e6(0x256)](this['_reporters'])['map'](_0x216371=>_0x216371(_0x323e4f));}}var Ee=Object[_0x9778e6(0x1d8)],we=(_0x154012,_0x3128ea,_0x2039d9,_0x215468)=>{for(var _0x9535d2=_0x215468>0x1?void 0x0:_0x215468?Ee(_0x3128ea,_0x2039d9):_0x3128ea,_0x1cf8ee=_0x154012['length']-0x1,_0x539d84;_0x1cf8ee>=0x0;_0x1cf8ee--)(_0x539d84=_0x154012[_0x1cf8ee])&&(_0x9535d2=_0x539d84(_0x9535d2)||_0x9535d2);return _0x9535d2;},Ne=(_0x21bc29,_0x50a234)=>(_0x58eed9,_0x31dcbb)=>_0x50a234(_0x58eed9,_0x31dcbb,_0x21bc29);let m=class extends _0x2e3155{constructor(_0x54a40b){var _0x48a647=_0x9778e6;super(),this[_0x48a647(0x1fe)]=_0x54a40b,this['_init']();}[_0x9778e6(0x252)](){[_0x48bc76['id'],_0x4aa3ed['id'],_0xc3474a['id']]['forEach'](_0x5d2021=>{var _0x51202e=_0x4bc8;this[_0x51202e(0x1db)](this[_0x51202e(0x1fe)][_0x51202e(0x213)](_0x5d2021));});}};m=we([Ne(0x0,_0x16d04b(L))],m);var c=function(){var _0x2a1847=_0x9778e6;return c=Object[_0x2a1847(0x1d6)]||function(_0x526998){var _0x212f88=_0x2a1847;for(var _0x892e65,_0x1c2e1f=0x1,_0x51918f=arguments[_0x212f88(0x1e6)];_0x1c2e1f<_0x51918f;_0x1c2e1f++){_0x892e65=arguments[_0x1c2e1f];for(var _0x300345 in _0x892e65)Object[_0x212f88(0x1af)][_0x212f88(0x21d)][_0x212f88(0x1e5)](_0x892e65,_0x300345)&&(_0x526998[_0x300345]=_0x892e65[_0x300345]);}return _0x526998;},c['apply'](this,arguments);},Ce=function(_0x4d049a,_0x5be463){var _0x5b89ea=_0x9778e6,_0x155407={};for(var _0x2d3459 in _0x4d049a)Object[_0x5b89ea(0x1af)]['hasOwnProperty'][_0x5b89ea(0x1e5)](_0x4d049a,_0x2d3459)&&_0x5be463['indexOf'](_0x2d3459)<0x0&&(_0x155407[_0x2d3459]=_0x4d049a[_0x2d3459]);if(_0x4d049a!=null&&typeof Object['getOwnPropertySymbols']=='function'){for(var _0x3599ae=0x0,_0x2d3459=Object[_0x5b89ea(0x225)](_0x4d049a);_0x3599ae<_0x2d3459[_0x5b89ea(0x1e6)];_0x3599ae++)_0x5be463['indexOf'](_0x2d3459[_0x3599ae])<0x0&&Object[_0x5b89ea(0x1af)][_0x5b89ea(0x22b)][_0x5b89ea(0x1e5)](_0x4d049a,_0x2d3459[_0x3599ae])&&(_0x155407[_0x2d3459[_0x3599ae]]=_0x4d049a[_0x2d3459[_0x3599ae]]);}return _0x155407;},W=_0x3c17af(function(_0x3baaaf,_0x23cbbb){var _0x37676c=_0x9778e6,_0x30e14e=_0x3baaaf['icon'],_0x38f7a2=_0x3baaaf['id'],_0x15ffb4=_0x3baaaf[_0x37676c(0x229)],_0x24fca3=_0x3baaaf[_0x37676c(0x239)],_0x24835c=Ce(_0x3baaaf,[_0x37676c(0x205),'id',_0x37676c(0x229),_0x37676c(0x239)]),_0x4e7213=_0x37676c(0x21f)[_0x37676c(0x234)](_0x38f7a2,'\x20')['concat'](_0x15ffb4||'')[_0x37676c(0x24b)](),_0x16eb74=_0x2a7acc('_'[_0x37676c(0x234)](Le()));return Y(_0x30e14e,''[_0x37676c(0x234)](_0x38f7a2),{'defIds':_0x30e14e['defIds'],'idSuffix':_0x16eb74[_0x37676c(0x1f8)]},c({'ref':_0x23cbbb,'className':_0x4e7213},_0x24835c),_0x24fca3);});function Y(_0x43644b,_0x441f21,_0x3fcc06,_0x55ce89,_0x5b4d27){var _0x552e4b=_0x9778e6;return _0x44a707(_0x43644b[_0x552e4b(0x1b5)],c(c({'key':_0x441f21},De(_0x43644b,_0x3fcc06,_0x5b4d27)),_0x55ce89),(xe(_0x43644b,_0x3fcc06)[_0x552e4b(0x1d9)]||[])[_0x552e4b(0x23e)](function(_0xa30801,_0x2ca8dd){var _0x1c3150=_0x552e4b;return Y(_0xa30801,''[_0x1c3150(0x234)](_0x441f21,'-')[_0x1c3150(0x234)](_0x43644b['tag'],'-')['concat'](_0x2ca8dd),_0x3fcc06,void 0x0,_0x5b4d27);}));}function De(_0x182fd1,_0x5077e5,_0x831702){var _0x3be067=_0x9778e6,_0x5158d3=c({},_0x182fd1[_0x3be067(0x1e7)]);_0x831702!=null&&_0x831702[_0x3be067(0x215)]&&_0x5158d3['fill']==='colorChannel1'&&(_0x5158d3[_0x3be067(0x1c0)]=_0x831702[_0x3be067(0x215)]),_0x182fd1[_0x3be067(0x1b5)]==='mask'&&_0x5158d3['id']&&(_0x5158d3['id']=_0x5158d3['id']+_0x5077e5[_0x3be067(0x207)]),Object[_0x3be067(0x1c9)](_0x5158d3)[_0x3be067(0x22c)](function(_0x5560e5){var _0x400d95=_0x3be067,_0x178b7f=_0x5560e5[0x0],_0xfa8479=_0x5560e5[0x1];_0x178b7f==='mask'&&typeof _0xfa8479==_0x400d95(0x1b1)&&(_0x5158d3[_0x178b7f]=_0xfa8479[_0x400d95(0x1ae)](/url\(#(.*)\)/,_0x400d95(0x20d)[_0x400d95(0x234)](_0x5077e5[_0x400d95(0x207)],')')));});var _0x55d415=_0x5077e5['defIds'];return!_0x55d415||_0x55d415[_0x3be067(0x1e6)]===0x0||(_0x182fd1[_0x3be067(0x1b5)]==='use'&&_0x5158d3[_0x3be067(0x243)]&&(_0x5158d3[_0x3be067(0x243)]=_0x5158d3[_0x3be067(0x243)]+_0x5077e5['idSuffix']),Object[_0x3be067(0x1c9)](_0x5158d3)[_0x3be067(0x22c)](function(_0x26b38d){var _0x227253=_0x3be067,_0x233bde=_0x26b38d[0x0],_0x485e3c=_0x26b38d[0x1];typeof _0x485e3c==_0x227253(0x1b1)&&(_0x5158d3[_0x233bde]=_0x485e3c[_0x227253(0x1ae)](/url\(#(.*)\)/,'url(#$1'[_0x227253(0x234)](_0x5077e5[_0x227253(0x207)],')')));})),_0x5158d3;}function xe(_0x35cc67,_0x1734a2){var _0x3c56a4=_0x9778e6,_0x2ca0de,_0x9110c3=_0x1734a2[_0x3c56a4(0x1d0)];return!_0x9110c3||_0x9110c3[_0x3c56a4(0x1e6)]===0x0?_0x35cc67:_0x35cc67['tag']===_0x3c56a4(0x1b0)&&(!((_0x2ca0de=_0x35cc67[_0x3c56a4(0x1d9)])===null||_0x2ca0de===void 0x0)&&_0x2ca0de[_0x3c56a4(0x1e6)])?c(c({},_0x35cc67),{'children':_0x35cc67[_0x3c56a4(0x1d9)][_0x3c56a4(0x23e)](function(_0x3d2552){var _0x21170a=_0x3c56a4;return typeof _0x3d2552[_0x21170a(0x1e7)]['id']==_0x21170a(0x1b1)&&_0x9110c3&&_0x9110c3[_0x21170a(0x24c)](_0x3d2552['attrs']['id'])?c(c({},_0x3d2552),{'attrs':c(c({},_0x3d2552['attrs']),{'id':_0x3d2552['attrs']['id']+_0x1734a2[_0x21170a(0x207)]})}):_0x3d2552;})}):_0x35cc67;}function Le(){var _0x296200=_0x9778e6;return Math[_0x296200(0x1cb)]()['toString'](0x24)[_0x296200(0x20c)](0x2,0x8);}W[_0x9778e6(0x206)]=_0x9778e6(0x219);var ye={'tag':_0x9778e6(0x1bd),'attrs':{'xmlns':_0x9778e6(0x245),'fill':'none','viewBox':_0x9778e6(0x21e),'width':_0x9778e6(0x1ee),'height':_0x9778e6(0x1ee)},'children':[{'tag':_0x9778e6(0x1b3),'attrs':{'fill':_0x9778e6(0x1ca),'d':_0x9778e6(0x1c7)}},{'tag':_0x9778e6(0x1b3),'attrs':{'fill':_0x9778e6(0x1ca),'d':_0x9778e6(0x249),'fillRule':_0x9778e6(0x23b),'clipRule':_0x9778e6(0x23b)}}]},B=_0x3c17af(function(_0x20b13a,_0x46e66c){var _0x12211c=_0x9778e6;return _0x44a707(W,Object[_0x12211c(0x1d6)]({},_0x20b13a,{'id':_0x12211c(0x1fb),'ref':_0x46e66c,'icon':ye}));});B[_0x9778e6(0x206)]=_0x9778e6(0x1c8);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x163aa8,_0x233050,_0x2401be,_0x239fd1)=>{for(var _0x4f040e=_0x239fd1>0x1?void 0x0:_0x239fd1?Re(_0x233050,_0x2401be):_0x233050,_0x554d77=_0x163aa8['length']-0x1,_0xc8dc02;_0x554d77>=0x0;_0x554d77--)(_0xc8dc02=_0x163aa8[_0x554d77])&&(_0x4f040e=_0xc8dc02(_0x4f040e)||_0x4f040e);return _0x4f040e;},f=(_0x938857,_0x4424fa)=>(_0x2d391e,_0x4a8213)=>_0x4424fa(_0x2d391e,_0x4a8213,_0x938857);let I=class extends _0x56497b{constructor(_0x585701,_0x452757,_0x4267a2){var _0x281a94=_0x9778e6;super(),d(this,'_entities',new Map()),(this[_0x281a94(0x1bc)]=_0x585701,this[_0x281a94(0x25a)]=_0x452757,this[_0x281a94(0x22e)]=_0x4267a2,this[_0x281a94(0x252)]());}async[_0x9778e6(0x1bf)](_0x56dfd9){var _0x52512e=_0x9778e6;return this[_0x52512e(0x217)][_0x52512e(0x228)](_0x56dfd9)||await this[_0x52512e(0x255)](_0x56dfd9),this[_0x52512e(0x217)][_0x52512e(0x247)](_0x56dfd9);}[_0x9778e6(0x252)](){var _0xd5a30c=_0x9778e6;this[_0xd5a30c(0x1bc)][_0xd5a30c(0x238)](_0x595007[_0xd5a30c(0x1f6)])['pipe'](_0x109cce(this[_0xd5a30c(0x221)]))[_0xd5a30c(0x1fa)](async _0xe0b0c6=>{var _0x4508e5=_0xd5a30c;const _0x373326=_0xe0b0c6[_0x4508e5(0x224)]();this[_0x4508e5(0x217)][_0x4508e5(0x228)](_0x373326)||this[_0x4508e5(0x255)](_0x373326);}),this[_0xd5a30c(0x1bc)]['getTypeOfUnitDisposed$'](_0x595007['UNIVER_SHEET'])[_0xd5a30c(0x1f5)](_0x109cce(this[_0xd5a30c(0x221)]))[_0xd5a30c(0x1fa)](_0x52fa72=>{var _0x248dff=_0xd5a30c;const _0x2a810a=_0x52fa72['getUnitId'](),_0x445d9c=this[_0x248dff(0x217)][_0x248dff(0x247)](_0x2a810a);_0x445d9c==null||_0x445d9c[_0x248dff(0x1fc)]();});}async[_0x9778e6(0x255)](_0x4bbccd){var _0x1d72ae=_0x9778e6;const _0x43c962=await this[_0x1d72ae(0x22e)]['requireSession'](_0x4bbccd),_0x16198c=this[_0x1d72ae(0x25a)]['createInstance'](C,_0x4bbccd,_0x43c962);return _0x16198c[_0x1d72ae(0x1b8)](),this[_0x1d72ae(0x217)][_0x1d72ae(0x22d)](_0x4bbccd,_0x16198c),_0x16198c;}};I=Z([f(0x0,_0x521bf2),f(0x1,_0x16d04b(_0x58e3c4)),f(0x2,_0x16d04b(_0x4a76a3))],I);var h=(_0x223ec6=>(_0x223ec6[_0x9778e6(0x1d4)]=_0x9778e6(0x1e8),_0x223ec6[_0x9778e6(0x1cd)]=_0x9778e6(0x24e),_0x223ec6['FOLLOWING']='following',_0x223ec6['NOT_FOLLOWING']=_0x9778e6(0x202),_0x223ec6['PRESENTING']=_0x9778e6(0x1b2),_0x223ec6))(h||{});const Pe=_0x9778e6(0x201),Ae=0xc8;let C=class extends _0x56497b{constructor(_0x59878a,_0xa07c25,_0x3ab47f,_0x20ca62,_0x5e2543){var _0x352431=_0x9778e6;super(),d(this,_0x352431(0x20f),new _0x572475('idle')),d(this,_0x352431(0x208),this[_0x352431(0x20f)]['asObservable']()),d(this,_0x352431(0x252),!0x1),d(this,_0x352431(0x220),null),d(this,_0x352431(0x22f),null),(this[_0x352431(0x1c2)]=_0x59878a,this['_collabSession']=_0xa07c25,this[_0x352431(0x212)]=_0x3ab47f,this[_0x352431(0x1fe)]=_0x20ca62,this[_0x352431(0x235)]=_0x5e2543);}get[_0x9778e6(0x21c)](){var _0x2f7ade=_0x9778e6;return this[_0x2f7ade(0x20f)][_0x2f7ade(0x248)]();}[_0x9778e6(0x1fc)](){var _0x497318=_0x9778e6,_0x1f137e;(_0x1f137e=this['_commandDisposable'])==null||_0x1f137e[_0x497318(0x1fc)](),this[_0x497318(0x20f)]['next'](_0x497318(0x24e)),this[_0x497318(0x20f)][_0x497318(0x1de)]();}[_0x9778e6(0x1b8)](){var _0x360bc6=_0x9778e6;this[_0x360bc6(0x252)]||(this['_init']=!0x0,this[_0x360bc6(0x1d1)][_0x360bc6(0x1f2)][_0x360bc6(0x1f5)](_0x109cce(this[_0x360bc6(0x221)]))[_0x360bc6(0x1fa)](_0x55c0e6=>{var _0x21db46=_0x360bc6;switch(_0x55c0e6){case _0x3b9352[_0x21db46(0x1d4)]:this[_0x21db46(0x1ab)]();break;case _0x3b9352[_0x21db46(0x23c)]:this[_0x21db46(0x1e3)]();break;}}),this[_0x360bc6(0x1d1)][_0x360bc6(0x257)][_0x360bc6(0x1f5)](_0x109cce(this['dispose$']))[_0x360bc6(0x1fa)](_0x40c1ee=>{var _0x1d59c7=_0x360bc6;const {eventID:_0x1a8084}=_0x40c1ee;switch(_0x1a8084){case _0x18ef0a[_0x1d59c7(0x1d3)]:this[_0x1d59c7(0x24f)](_0x40c1ee);break;case _0x18ef0a[_0x1d59c7(0x1b6)]:this['_handleOperation'](_0x40c1ee);break;case _0x18ef0a[_0x1d59c7(0x259)]:this[_0x1d59c7(0x1ba)]();break;case _0x18ef0a[_0x1d59c7(0x1f9)]:this['_handleNewChangeSets'](_0x40c1ee);break;}}));}[_0x9778e6(0x1eb)](){var _0x493789=_0x9778e6;this[_0x493789(0x1d1)][_0x493789(0x23f)]({'eventID':_0x18ef0a[_0x493789(0x1cc)],'data':{'unitID':this[_0x493789(0x1c2)],'userID':this[_0x493789(0x1d1)]['getMemberID']()}},this[_0x493789(0x1c2)]);}[_0x9778e6(0x1ad)](){var _0x1f0c09=_0x9778e6;this[_0x1f0c09(0x21c)]==='presenting'&&(this[_0x1f0c09(0x20f)]['next'](_0x1f0c09(0x24e)),this[_0x1f0c09(0x1d1)][_0x1f0c09(0x23f)]({'eventID':_0x18ef0a[_0x1f0c09(0x259)],'data':{'unitID':this[_0x1f0c09(0x1c2)]}},this[_0x1f0c09(0x1c2)]));}[_0x9778e6(0x231)](){var _0x87d918=_0x9778e6;this['_status']===_0x87d918(0x202)&&(this['_status$'][_0x87d918(0x230)]('following'),this[_0x87d918(0x1da)]());}[_0x9778e6(0x1b4)](){var _0x313bfa=_0x9778e6;this['_status']===_0x313bfa(0x1c3)&&this[_0x313bfa(0x1e1)]();}[_0x9778e6(0x24f)](_0x1e6251){var _0x45c2e2=_0x9778e6;const {presenter:_0x25eb82}=_0x1e6251[_0x45c2e2(0x1ef)],_0x17edca=this['_collabSession'][_0x45c2e2(0x258)]();this[_0x45c2e2(0x22f)]=_0x25eb82,_0x25eb82===_0x17edca?(this['_stopFollowing'](),this['_startPresenting']()):this[_0x45c2e2(0x21c)]!=='not-following'&&(this['_stopPresenting'](),this[_0x45c2e2(0x1da)]());}['_fetchOperations'](){var _0x2f20d2=_0x9778e6;const _0x515b27={'eventID':_0x18ef0a[_0x2f20d2(0x214)]};this[_0x2f20d2(0x1d1)][_0x2f20d2(0x23f)](_0x515b27,this['_unitID']);}[_0x9778e6(0x1ba)](){var _0x2950b8=_0x9778e6;this[_0x2950b8(0x22f)]=null,this[_0x2950b8(0x21c)]!=='presenting'&&this[_0x2950b8(0x204)]();}[_0x9778e6(0x22a)](_0x3dcaf8){var _0xa7653f=_0x9778e6;if(this[_0xa7653f(0x21c)]===_0xa7653f(0x1c3)&&this['_presenter']===_0x3dcaf8[_0xa7653f(0x1ef)]['memberID']){const _0x540ab7=_0x8ba9d1(_0x3dcaf8['data'])[_0xa7653f(0x1ac)]['reverse']()[_0xa7653f(0x1ff)](_0x11b8e9=>_0x11b8e9['id']===_0x37a933['id']);if(_0x540ab7){const _0x1990eb=_0x540ab7[_0xa7653f(0x1b7)][_0xa7653f(0x1f7)],_0xbb730b=_0x540ab7[_0xa7653f(0x1b7)][_0xa7653f(0x21b)]['id'];setTimeout(()=>{var _0x168fe7=_0xa7653f;this[_0x168fe7(0x235)][_0x168fe7(0x20e)](_0xc3474a['id'],{'unitId':_0x1990eb,'subUnitId':_0xbb730b},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x3a1dc3=_0x9778e6;this['_status$'][_0x3a1dc3(0x230)](_0x3a1dc3(0x1b2));const _0x4462f7=new Map(),_0x231123=this[_0x3a1dc3(0x220)]=new _0x72472d();_0x231123[_0x3a1dc3(0x232)](_0x516894(()=>{var _0x13707c=_0x3a1dc3;_0x4462f7[_0x13707c(0x22c)](_0x4b9c13=>_0x4b9c13[_0x13707c(0x1de)]()),_0x4462f7['clear']();})),_0x231123[_0x3a1dc3(0x232)](this[_0x3a1dc3(0x235)][_0x3a1dc3(0x203)](_0x345d34=>{var _0x4f37e1=_0x3a1dc3,_0x5aed38;if(_0x345d34[_0x4f37e1(0x25b)]!==_0x22b12f['OPERATION']||!this[_0x4f37e1(0x1fe)][_0x4f37e1(0x1b9)](_0x345d34['id']))return;const {id:_0xb54910}=_0x345d34;let _0x135a84;_0x4462f7['has'](_0xb54910)?_0x135a84=_0x4462f7[_0x4f37e1(0x247)](_0xb54910):(_0x135a84=new _0x9b51d0(),_0x4462f7[_0x4f37e1(0x22d)](_0xb54910,_0x135a84),_0x135a84[_0x4f37e1(0x1f5)](_0xeb248e((_0x5aed38=this[_0x4f37e1(0x212)][_0x4f37e1(0x209)](Pe))!=null?_0x5aed38:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x4f37e1(0x1fa)](_0x12ca8c=>{var _0x2ec78f=_0x4f37e1;this[_0x2ec78f(0x1d1)][_0x2ec78f(0x23f)]({'eventID':_0x18ef0a[_0x2ec78f(0x1b6)],'data':{'unitID':this[_0x2ec78f(0x1c2)],'operations':{[_0x12ca8c['id']]:{'id':_0x12ca8c['id'],'params':JSON[_0x2ec78f(0x1e2)](_0x12ca8c[_0x2ec78f(0x1b7)])}}}},this['_unitID']);})),_0x135a84[_0x4f37e1(0x230)](_0x345d34);})),this['_liveShareService'][_0x3a1dc3(0x1c4)](this[_0x3a1dc3(0x1c2)])[_0x3a1dc3(0x22c)](_0x19ff4a=>this[_0x3a1dc3(0x1d1)][_0x3a1dc3(0x23f)]({'eventID':_0x18ef0a[_0x3a1dc3(0x1b6)],'data':{'unitID':this['_unitID'],'operations':{[_0x19ff4a['id']]:{'id':_0x19ff4a['id'],'params':JSON[_0x3a1dc3(0x1e2)](_0x19ff4a[_0x3a1dc3(0x1b7)])}}}},this['_unitID']));}[_0x9778e6(0x24d)](){var _0x612c59=_0x9778e6,_0x13bb51;this[_0x612c59(0x20f)][_0x612c59(0x230)]('idle'),(_0x13bb51=this[_0x612c59(0x220)])==null||_0x13bb51['dispose'](),this[_0x612c59(0x220)]=null;}[_0x9778e6(0x1da)](){var _0x1f1057=_0x9778e6,_0x35c0af;(_0x35c0af=this[_0x1f1057(0x220)])==null||_0x35c0af[_0x1f1057(0x1fc)](),this[_0x1f1057(0x20f)][_0x1f1057(0x230)]('following');}[_0x9778e6(0x204)](){var _0x301940=_0x9778e6,_0x4164eb;this['_status$'][_0x301940(0x230)]('idle'),(_0x4164eb=this['_commandDisposable'])==null||_0x4164eb[_0x301940(0x1fc)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x5b5724=_0x9778e6,_0x244ce7;this[_0x5b5724(0x20f)][_0x5b5724(0x230)](_0x5b5724(0x202)),(_0x244ce7=this[_0x5b5724(0x220)])==null||_0x244ce7[_0x5b5724(0x1fc)]();}[_0x9778e6(0x23d)](_0x56a3b5){var _0x268d49=_0x9778e6;if([_0x268d49(0x1b2),_0x268d49(0x202),'offline'][_0x268d49(0x24c)](this[_0x268d49(0x21c)])||!_0x56a3b5[_0x268d49(0x1ef)][_0x268d49(0x1f0)]||_0x56a3b5[_0x268d49(0x1ef)]['presenter']===this[_0x268d49(0x1d1)]['getMemberID']())return;this[_0x268d49(0x21c)]===_0x268d49(0x24e)&&this[_0x268d49(0x1da)]();const _0x31a7de=_0x56a3b5[_0x268d49(0x1ef)]['operations'];Object[_0x268d49(0x21a)](_0x31a7de)['forEach'](_0x141c41=>{var _0x5274ec=_0x268d49;this[_0x5274ec(0x235)][_0x5274ec(0x20e)](_0x141c41['id'],_0x141c41[_0x5274ec(0x1b7)]?JSON[_0x5274ec(0x233)](_0x141c41['params']):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x4ba58e=_0x9778e6,_0x15f6f8;this[_0x4ba58e(0x20f)][_0x4ba58e(0x230)](_0x4ba58e(0x1e8)),(_0x15f6f8=this[_0x4ba58e(0x220)])==null||_0x15f6f8['dispose']();}[_0x9778e6(0x1e3)](){var _0x1ebf6d=_0x9778e6;this[_0x1ebf6d(0x20f)][_0x1ebf6d(0x230)](_0x1ebf6d(0x24e)),this[_0x1ebf6d(0x218)]();}};C=Z([f(0x2,_0x3f3ec1),f(0x3,_0x16d04b(L)),f(0x4,_0x3ac4bd)],C);function Te(){var _0x15129b=_0x9778e6;const _0x2021f0=_0x1e8d4a(I),_0x19de99=_0x1e8d4a(_0x521bf2),_0x139b86=_0x104952(()=>_0x19de99[_0x15129b(0x226)](_0x595007[_0x15129b(0x1f6)]),void 0x0,!0x1,[]),[_0x4fe615,_0x5ee33c]=_0x3e204(null),[_0x3725a9,_0x309794]=_0x3e204(h[_0x15129b(0x1cd)]),_0x28b18a=_0x2a7acc(null);return _0x278b9b(()=>(_0x139b86&&_0x2021f0[_0x15129b(0x1bf)](_0x139b86[_0x15129b(0x224)]())[_0x15129b(0x242)](_0x4e04bf=>{var _0x2a60d0=_0x15129b;_0x5ee33c(_0x4e04bf),_0x28b18a[_0x2a60d0(0x1f8)]=_0x4e04bf['status$']['subscribe'](_0x2daf30=>{_0x309794(_0x2daf30);});}),()=>{var _0x28f18f=_0x15129b,_0x298c53;(_0x298c53=_0x28b18a[_0x28f18f(0x1f8)])==null||_0x298c53[_0x28f18f(0x20a)](),_0x28b18a['current']=null;}),[_0x139b86,_0x2021f0]),_0x4fe615?_0x16b57f(_0x4368ad,{'align':'end','disabled':_0x3725a9===h[_0x15129b(0x1d4)],'className':_0x15129b(0x23a),'overlay':_0x16b57f($e,{'status':_0x3725a9,'coordinator':_0x4fe615}),'children':_0x16b57f(_0x15129b(0x1d7),{'className':_0x571c3e(_0x15129b(0x1e4),{'univer-cursor-not-allowed':_0x3725a9===h[_0x15129b(0x1d4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x3725a9!==h[_0x15129b(0x1d4)]}),'type':_0x15129b(0x1d7),'children':_0x16b57f(B,{'className':_0x15129b(0x216)})})}):null;}function _0x1ca5(){var _0x43c624=['UniverIcon','values','sheet','_status','hasOwnProperty','0\x200\x2017\x2017','univerjs-icon\x20univerjs-icon-','_commandDisposable','dispose$','onRendered','82456BrdoRV','getUnitId','getOwnPropertySymbols','getCurrentTypeOfUnit$','126081wTUSST','has','className','_handleNewChangeSets','propertyIsEnumerable','forEach','set','_collabSessionService','_presenter','next','startFollowing','add','parse','concat','_commandService','25WCrIHr','_config','getTypeOfUnitAdded$','extend','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','evenodd','ONLINE','_handleOperation','map','send','registerInitialStateReporter','_reporters','then','xlink:href','onStarting','http://www.w3.org/2000/svg','text','get','getValue','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','_sharedOperations','trim','includes','_stopPresenting','idle','_handleNewHost','22DNszsp','7xnCYPj','_init','default','Present\x20this\x20document','_startLiveShareCoordinator','from','event$','getMemberID','LIVESHARE_TERMINATE','_injector','type','5673350KqvAgc','_handleOffline','mutations','stopPresenting','replace','prototype','defs','string','presenting','path','stopFollowing','tag','LIVESHARE_OPERATION','params','init','shouldShareOperation','_handleTerminate','UNIVER_UNKNOWN','_univerInstanceService','svg','2405190KwJoEC','getLiveShareCoordinator','fill','You\x27are\x20offline.','_unitID','following','getInitialStates','live-share.config','248QYNZBR','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','LiveShareIcon','entries','currentColor','random','LIVESHARE_REQUEST_HOST','IDLE','Stop\x20following','div','defIds','_collabSession','defineProperty','LIVESHARE_NEW_HOST','OFFLINE','_mountLiveShare','assign','button','getOwnPropertyDescriptor','children','_startFollowing','disposeWithMe','_uiPartsService','NOT_FOLLOWING','complete','univer-mb-3\x20univer-w-full\x20univer-text-sm','delete','_stopFollowing','stringify','_handleOnline','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','call','length','attrs','offline','You\x27re\x20presenting\x20the\x20document','UNIVER_LIVE_SHARE_PLUGIN','tryStartPresenting','Stop\x20presenting','HEADER_MENU','1em','data','presenter','override','sessionStatus$','symbol','PRESENTING','pipe','UNIVER_SHEET','unitId','current','NEW_CHANGESETS','subscribe','live-share-icon','dispose','1431398rWBTbG','_liveShareService','find','97783CxzKdb','SAME_OPERATION_SHARE_INTERVAL','not-following','onCommandExecuted','_beIdle','icon','displayName','idSuffix','status$','getConfig','unsubscribe','2262357CmEJNj','substring','url(#$1','executeCommand','_status$','FOLLOWING','You\x27re\x20not\x20following\x20the\x20presenter','_configService','registerSharedOperation','LIVESHARE_FETCH_OPERATIONS','colorChannel1','univer-size-4','_entities','_fetchOperations'];_0x1ca5=function(){return _0x43c624;};return _0x1ca5();}function $e(_0x56447f){var _0x17dfc8=_0x9778e6;const {status:_0x30d87e,coordinator:_0x6700b4}=_0x56447f;switch(_0x30d87e){case h['IDLE']:return _0x16b57f(Fe,{'coordinator':_0x6700b4});case h[_0x17dfc8(0x210)]:return _0x16b57f(He,{'coordinator':_0x6700b4});case h[_0x17dfc8(0x1dd)]:return _0x16b57f(je,{'coordinator':_0x6700b4});case h[_0x17dfc8(0x1d4)]:return _0x16b57f(Ve,{});case h[_0x17dfc8(0x1f4)]:return _0x16b57f(Ue,{'coordinator':_0x6700b4});default:return null;}}function Fe(_0x10993c){var _0x462e42=_0x9778e6;const {coordinator:_0x128451}=_0x10993c;return _0xa7baf9(_0x3c08dd,{'children':[_0x16b57f(_0x462e42(0x1cf),{'className':_0x462e42(0x1df),'children':_0x462e42(0x254)}),_0x16b57f(_0x2cc199,{'onClick':()=>_0x128451[_0x462e42(0x1eb)](),'children':'Start'})]});}function He(_0x73395e){var _0x41920b=_0x9778e6;const {coordinator:_0x15dc69}=_0x73395e;return _0xa7baf9(_0x3c08dd,{'children':[_0x16b57f('div',{'className':_0x41920b(0x1df),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x16b57f(_0x2cc199,{'onClick':()=>_0x15dc69[_0x41920b(0x1b4)](),'children':_0x41920b(0x1ce)})]});}function je(_0x108783){var _0x16ba73=_0x9778e6;const {coordinator:_0x28ae63}=_0x108783;return _0xa7baf9(_0x3c08dd,{'children':[_0x16b57f(_0x16ba73(0x1cf),{'className':_0x16ba73(0x1df),'children':_0x16ba73(0x211)}),_0x16b57f(_0x2cc199,{'variant':_0x16ba73(0x246),'onClick':()=>_0x28ae63[_0x16ba73(0x231)](),'children':'Start\x20following'})]});}function Ue(_0x529e6c){var _0x49928f=_0x9778e6;const {coordinator:_0x3ab0fd}=_0x529e6c;return _0xa7baf9(_0x3c08dd,{'children':[_0x16b57f(_0x49928f(0x1cf),{'className':_0x49928f(0x1df),'children':_0x49928f(0x1e9)}),_0x16b57f(_0x2cc199,{'variant':_0x49928f(0x253),'onClick':()=>_0x3ab0fd[_0x49928f(0x1ad)](),'children':_0x49928f(0x1ec)})]});}function Ve(){var _0xb86d4d=_0x9778e6;return _0x16b57f(_0x3c08dd,{'children':_0xb86d4d(0x1c1)});}var Me=Object[_0x9778e6(0x1d8)],ke=(_0x428261,_0x3470a6,_0x51eba9,_0x58bd24)=>{for(var _0x279155=_0x58bd24>0x1?void 0x0:_0x58bd24?Me(_0x3470a6,_0x51eba9):_0x3470a6,_0x385067=_0x428261['length']-0x1,_0x2e5976;_0x385067>=0x0;_0x385067--)(_0x2e5976=_0x428261[_0x385067])&&(_0x279155=_0x2e5976(_0x279155)||_0x279155);return _0x279155;},$=(_0x522291,_0x5d824a)=>(_0x107270,_0x3e15f6)=>_0x5d824a(_0x107270,_0x3e15f6,_0x522291);let b=class extends _0x2e3155{constructor(_0x161338,_0x4d6de6){var _0x215a3e=_0x9778e6;super(),this[_0x215a3e(0x25a)]=_0x161338,this[_0x215a3e(0x1dc)]=_0x4d6de6,this['_mountLiveShare']();}[_0x9778e6(0x1d5)](){var _0x3ea2ed=_0x9778e6;this['disposeWithMe'](this[_0x3ea2ed(0x1dc)]['registerComponent'](_0x48da4f[_0x3ea2ed(0x1ed)],()=>_0x328b1c(Te,this[_0x3ea2ed(0x25a)])));}};b=ke([$(0x0,_0x16d04b(_0x58e3c4)),$(0x1,_0x3628a7)],b);var Ge=Object[_0x9778e6(0x1d2)],We=Object[_0x9778e6(0x1d8)],Ye=(_0x4b4eeb,_0xb3e767,_0x5774a4)=>_0xb3e767 in _0x4b4eeb?Ge(_0x4b4eeb,_0xb3e767,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5774a4}):_0x4b4eeb[_0xb3e767]=_0x5774a4,Be=(_0x262f7c,_0x696649,_0x16433,_0x46326d)=>{var _0x365e1d=_0x9778e6;for(var _0x465847=_0x46326d>0x1?void 0x0:_0x46326d?We(_0x696649,_0x16433):_0x696649,_0x32d4a8=_0x262f7c[_0x365e1d(0x1e6)]-0x1,_0x46465f;_0x32d4a8>=0x0;_0x32d4a8--)(_0x46465f=_0x262f7c[_0x32d4a8])&&(_0x465847=_0x46465f(_0x465847)||_0x465847);return _0x465847;},F=(_0x2d383f,_0x734eb8)=>(_0xf10a80,_0x1f5497)=>_0x734eb8(_0xf10a80,_0x1f5497,_0x2d383f),J=(_0xfe0826,_0x4f6431,_0x379f2e)=>Ye(_0xfe0826,typeof _0x4f6431!=_0x9778e6(0x1f3)?_0x4f6431+'':_0x4f6431,_0x379f2e);const Ze=_0x9778e6(0x1ea);let O=class extends _0x2e613d{constructor(_0x4a32a9=T,_0x5bab26,_0x19b372){var _0x42ef4e=_0x9778e6;super(),this[_0x42ef4e(0x237)]=_0x4a32a9,this[_0x42ef4e(0x25a)]=_0x5bab26,this['_configService']=_0x19b372;const {..._0x1e3470}=_0x1f82eb({},T,this[_0x42ef4e(0x237)]);this['_configService']['setConfig'](Oe,_0x1e3470);}[_0x9778e6(0x244)](){var _0x48707b=_0x9778e6;_0x4f0f22(this[_0x48707b(0x25a)],_0x1a5aac([[L],[I],[m],[b]],this[_0x48707b(0x237)][_0x48707b(0x1f1)])),_0x3bf4fc(this['_injector'],[[m]]);}[_0x9778e6(0x222)](){var _0x2f3bbd=_0x9778e6;_0x3bf4fc(this[_0x2f3bbd(0x25a)],[[b]]);}};J(O,_0x9778e6(0x25b),_0x595007[_0x9778e6(0x1bb)]),J(O,'pluginName',Ze),O=Be([_0x2d3671(_0x571ab9),F(0x1,_0x16d04b(_0x58e3c4)),F(0x2,_0x3f3ec1)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
1
+ var _0x29ea9a=_0x51d1;(function(_0x2e539b,_0x30b79d){var _0x442bc2=_0x51d1,_0x2006dd=_0x2e539b();while(!![]){try{var _0x21830c=-parseInt(_0x442bc2(0x107))/0x1+parseInt(_0x442bc2(0x18d))/0x2*(parseInt(_0x442bc2(0x125))/0x3)+parseInt(_0x442bc2(0x121))/0x4*(-parseInt(_0x442bc2(0x16b))/0x5)+parseInt(_0x442bc2(0x184))/0x6+-parseInt(_0x442bc2(0x10d))/0x7+parseInt(_0x442bc2(0x15f))/0x8*(parseInt(_0x442bc2(0x15d))/0x9)+parseInt(_0x442bc2(0x18a))/0xa*(parseInt(_0x442bc2(0x16a))/0xb);if(_0x21830c===_0x30b79d)break;else _0x2006dd['push'](_0x2006dd['shift']());}catch(_0x35012c){_0x2006dd['push'](_0x2006dd['shift']());}}}(_0x1c84,0xc04ca));var q=Object[_0x29ea9a(0xe3)],z=(_0x1e27de,_0x3e9bd2,_0x102936)=>_0x3e9bd2 in _0x1e27de?q(_0x1e27de,_0x3e9bd2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x102936}):_0x1e27de[_0x3e9bd2]=_0x102936,d=(_0x30636d,_0x190c7f,_0x1a56e2)=>z(_0x30636d,typeof _0x190c7f!=_0x29ea9a(0x15c)?_0x190c7f+'':_0x190c7f,_0x1a56e2);import{CollaborationSessionService as _0x94a5e1,SessionStatus as _0x2862a6,UniverCollaborationClientPlugin as _0x1a961f}from'@univerjs-pro/collaboration-client';import{Disposable as _0x31e7a4,toDisposable as _0x5bc629,Inject as _0xf646c1,IUniverInstanceService as _0x3459c1,Injector as _0x4498f3,IConfigService as _0x548d47,ICommandService as _0x1b0ea8,RxDisposable as _0x4e23fa,UniverInstanceType as _0x2e7d47,DisposableCollection as _0x20d871,CommandType as _0x110f27,DependentOn as _0x484a52,Plugin as _0xe5ff50,merge as _0x1fc8bd,registerDependencies as _0x2df774,mergeOverrideWithDependencies as _0x1e76da,touchDependencies as _0x21061e}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x4a98a2,InsertSheetMutation as _0x438976}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x9bc1a6,SetScrollOperation as _0x35abd8}from'@univerjs/sheets-ui';import{useDependency as _0x1c7154,useObservable as _0x47ceac,IUIPartsService as _0x410032,BuiltInUIPart as _0x591b35,connectInjector as _0x2ac8da}from'@univerjs/ui';import{jsx as _0x4a136f,jsxs as _0x6bb112,Fragment as _0x1f470d}from'react/jsx-runtime';import{Dropdown as _0x1f3e5a,clsx as _0x42ee3f,Button as _0x1b521d}from'@univerjs/design';import{forwardRef as _0x583fa1,useRef as _0x5b9881,createElement as _0x4ad7a6,useState as _0x445d54,useEffect as _0x212ac3}from'react';import{CollaborationEvent as _0x4ba672,parseProtocolChangeset as _0x3bfe1e}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2ba6f1,Subject as _0x2ae17d}from'rxjs';import{takeUntil as _0xe8d355,throttleTime as _0x66b6b3}from'rxjs/operators';function _0x51d1(_0x329407,_0x58d95c){var _0x1c846c=_0x1c84();return _0x51d1=function(_0x51d167,_0x5f2db0){_0x51d167=_0x51d167-0xe2;var _0x1d1a4e=_0x1c846c[_0x51d167];return _0x1d1a4e;},_0x51d1(_0x329407,_0x58d95c);}const Oe=_0x29ea9a(0x17e),T={};class L extends _0x31e7a4{constructor(){super(...arguments),d(this,'_sharedOperations',new Set()),d(this,'_reporters',new Set());}['registerSharedOperation'](_0x49f752){var _0x230441=_0x29ea9a;return this['_sharedOperations'][_0x230441(0x154)](_0x49f752),_0x5bc629(()=>this[_0x230441(0x174)][_0x230441(0x118)](_0x49f752));}[_0x29ea9a(0x190)](_0x22e292){var _0x4a4c06=_0x29ea9a;return this['_reporters'][_0x4a4c06(0x154)](_0x22e292),_0x5bc629(()=>this[_0x4a4c06(0x164)]['delete'](_0x22e292));}[_0x29ea9a(0x12b)](_0x2e6cb2){var _0x4ece42=_0x29ea9a;return this['_sharedOperations'][_0x4ece42(0x169)](_0x2e6cb2);}['getInitialStates'](_0x51579d){var _0x22cbd6=_0x29ea9a;return Array[_0x22cbd6(0xec)](this['_reporters'])[_0x22cbd6(0x152)](_0x534788=>_0x534788(_0x51579d));}}var Ee=Object[_0x29ea9a(0x144)],we=(_0x4729e6,_0x25efc6,_0x4428ce,_0x5dd2d0)=>{var _0x523514=_0x29ea9a;for(var _0xc78f72=_0x5dd2d0>0x1?void 0x0:_0x5dd2d0?Ee(_0x25efc6,_0x4428ce):_0x25efc6,_0x355086=_0x4729e6[_0x523514(0xfd)]-0x1,_0x219f89;_0x355086>=0x0;_0x355086--)(_0x219f89=_0x4729e6[_0x355086])&&(_0xc78f72=_0x219f89(_0xc78f72)||_0xc78f72);return _0xc78f72;},Ne=(_0x17cca6,_0xa35939)=>(_0x5730c2,_0x314f4a)=>_0xa35939(_0x5730c2,_0x314f4a,_0x17cca6);let m=class extends _0x31e7a4{constructor(_0x456393){var _0x32c753=_0x29ea9a;super(),this[_0x32c753(0xe7)]=_0x456393,this[_0x32c753(0x191)]();}['_init'](){var _0x16f081=_0x29ea9a;[_0x9bc1a6['id'],_0x35abd8['id'],_0x4a98a2['id']][_0x16f081(0xfe)](_0x2dd668=>{var _0x50365d=_0x16f081;this[_0x50365d(0x11f)](this['_liveShareService']['registerSharedOperation'](_0x2dd668));});}};m=we([Ne(0x0,_0xf646c1(L))],m);var c=function(){var _0x4f80ae=_0x29ea9a;return c=Object[_0x4f80ae(0x129)]||function(_0x546113){var _0x1a2a1a=_0x4f80ae;for(var _0x2504bc,_0x5b7c09=0x1,_0x319fa3=arguments[_0x1a2a1a(0xfd)];_0x5b7c09<_0x319fa3;_0x5b7c09++){_0x2504bc=arguments[_0x5b7c09];for(var _0x37eb23 in _0x2504bc)Object[_0x1a2a1a(0xf8)][_0x1a2a1a(0x156)]['call'](_0x2504bc,_0x37eb23)&&(_0x546113[_0x37eb23]=_0x2504bc[_0x37eb23]);}return _0x546113;},c[_0x4f80ae(0x10f)](this,arguments);},Ce=function(_0x16c132,_0x13cf8f){var _0x3e8ae1=_0x29ea9a,_0x31237b={};for(var _0x19e3ca in _0x16c132)Object[_0x3e8ae1(0xf8)][_0x3e8ae1(0x156)][_0x3e8ae1(0x115)](_0x16c132,_0x19e3ca)&&_0x13cf8f[_0x3e8ae1(0xf2)](_0x19e3ca)<0x0&&(_0x31237b[_0x19e3ca]=_0x16c132[_0x19e3ca]);if(_0x16c132!=null&&typeof Object['getOwnPropertySymbols']==_0x3e8ae1(0x12a)){for(var _0x5ab7cc=0x0,_0x19e3ca=Object[_0x3e8ae1(0xed)](_0x16c132);_0x5ab7cc<_0x19e3ca[_0x3e8ae1(0xfd)];_0x5ab7cc++)_0x13cf8f[_0x3e8ae1(0xf2)](_0x19e3ca[_0x5ab7cc])<0x0&&Object[_0x3e8ae1(0xf8)]['propertyIsEnumerable']['call'](_0x16c132,_0x19e3ca[_0x5ab7cc])&&(_0x31237b[_0x19e3ca[_0x5ab7cc]]=_0x16c132[_0x19e3ca[_0x5ab7cc]]);}return _0x31237b;},W=_0x583fa1(function(_0x59348e,_0x575072){var _0x22ea0f=_0x29ea9a,_0x1a3048=_0x59348e[_0x22ea0f(0x110)],_0x501b1e=_0x59348e['id'],_0x428719=_0x59348e['className'],_0x4a1f29=_0x59348e[_0x22ea0f(0x185)],_0x5daae5=Ce(_0x59348e,[_0x22ea0f(0x110),'id',_0x22ea0f(0x162),_0x22ea0f(0x185)]),_0xdfe4ba=_0x22ea0f(0xe2)[_0x22ea0f(0x15a)](_0x501b1e,'\x20')[_0x22ea0f(0x15a)](_0x428719||'')[_0x22ea0f(0x14e)](),_0x8c5030=_0x5b9881('_'[_0x22ea0f(0x15a)](Le()));return Y(_0x1a3048,''['concat'](_0x501b1e),{'defIds':_0x1a3048[_0x22ea0f(0x16d)],'idSuffix':_0x8c5030[_0x22ea0f(0x150)]},c({'ref':_0x575072,'className':_0xdfe4ba},_0x5daae5),_0x4a1f29);});function Y(_0x351519,_0x7b0a64,_0x40ce57,_0x167839,_0x617ee6){var _0x123fb6=_0x29ea9a;return _0x4ad7a6(_0x351519[_0x123fb6(0x153)],c(c({'key':_0x7b0a64},De(_0x351519,_0x40ce57,_0x617ee6)),_0x167839),(xe(_0x351519,_0x40ce57)['children']||[])[_0x123fb6(0x152)](function(_0x573246,_0xd28742){var _0x4c1d74=_0x123fb6;return Y(_0x573246,''[_0x4c1d74(0x15a)](_0x7b0a64,'-')[_0x4c1d74(0x15a)](_0x351519['tag'],'-')[_0x4c1d74(0x15a)](_0xd28742),_0x40ce57,void 0x0,_0x617ee6);}));}function De(_0x178ca2,_0x127977,_0x199db4){var _0x1ece7c=_0x29ea9a,_0x3faf2d=c({},_0x178ca2['attrs']);_0x199db4!=null&&_0x199db4[_0x1ece7c(0x13b)]&&_0x3faf2d[_0x1ece7c(0x116)]==='colorChannel1'&&(_0x3faf2d[_0x1ece7c(0x116)]=_0x199db4[_0x1ece7c(0x13b)]),_0x178ca2[_0x1ece7c(0x153)]===_0x1ece7c(0xfb)&&_0x3faf2d['id']&&(_0x3faf2d['id']=_0x3faf2d['id']+_0x127977[_0x1ece7c(0xf1)]),Object[_0x1ece7c(0x148)](_0x3faf2d)[_0x1ece7c(0xfe)](function(_0x45616f){var _0xb5b206=_0x1ece7c,_0x4ab0d9=_0x45616f[0x0],_0x4fa357=_0x45616f[0x1];_0x4ab0d9===_0xb5b206(0xfb)&&typeof _0x4fa357==_0xb5b206(0x143)&&(_0x3faf2d[_0x4ab0d9]=_0x4fa357['replace'](/url\(#(.*)\)/,_0xb5b206(0xee)[_0xb5b206(0x15a)](_0x127977['idSuffix'],')')));});var _0x3ec402=_0x127977['defIds'];return!_0x3ec402||_0x3ec402[_0x1ece7c(0xfd)]===0x0||(_0x178ca2[_0x1ece7c(0x153)]==='use'&&_0x3faf2d[_0x1ece7c(0x142)]&&(_0x3faf2d[_0x1ece7c(0x142)]=_0x3faf2d[_0x1ece7c(0x142)]+_0x127977[_0x1ece7c(0xf1)]),Object[_0x1ece7c(0x148)](_0x3faf2d)[_0x1ece7c(0xfe)](function(_0x5a4901){var _0x2af601=_0x1ece7c,_0x27507f=_0x5a4901[0x0],_0x378233=_0x5a4901[0x1];typeof _0x378233=='string'&&(_0x3faf2d[_0x27507f]=_0x378233[_0x2af601(0x108)](/url\(#(.*)\)/,_0x2af601(0xee)[_0x2af601(0x15a)](_0x127977[_0x2af601(0xf1)],')')));})),_0x3faf2d;}function xe(_0x2d6f75,_0x2db820){var _0x4a7e05=_0x29ea9a,_0x30f5c6,_0x47d695=_0x2db820[_0x4a7e05(0x16d)];return!_0x47d695||_0x47d695[_0x4a7e05(0xfd)]===0x0?_0x2d6f75:_0x2d6f75['tag']===_0x4a7e05(0x117)&&(!((_0x30f5c6=_0x2d6f75['children'])===null||_0x30f5c6===void 0x0)&&_0x30f5c6[_0x4a7e05(0xfd)])?c(c({},_0x2d6f75),{'children':_0x2d6f75[_0x4a7e05(0xe5)][_0x4a7e05(0x152)](function(_0xf66d93){var _0x5d9e9d=_0x4a7e05;return typeof _0xf66d93[_0x5d9e9d(0x163)]['id']==_0x5d9e9d(0x143)&&_0x47d695&&_0x47d695[_0x5d9e9d(0x14a)](_0xf66d93['attrs']['id'])?c(c({},_0xf66d93),{'attrs':c(c({},_0xf66d93[_0x5d9e9d(0x163)]),{'id':_0xf66d93['attrs']['id']+_0x2db820[_0x5d9e9d(0xf1)]})}):_0xf66d93;})}):_0x2d6f75;}function Le(){var _0x31daf6=_0x29ea9a;return Math[_0x31daf6(0x155)]()[_0x31daf6(0xf9)](0x24)[_0x31daf6(0x135)](0x2,0x8);}W[_0x29ea9a(0x12c)]=_0x29ea9a(0xf3);var ye={'tag':_0x29ea9a(0x160),'attrs':{'xmlns':_0x29ea9a(0x159),'fill':_0x29ea9a(0x13f),'viewBox':_0x29ea9a(0x11c),'width':'1em','height':_0x29ea9a(0xeb)},'children':[{'tag':'path','attrs':{'fill':_0x29ea9a(0x15e),'d':_0x29ea9a(0x133)}},{'tag':_0x29ea9a(0x13d),'attrs':{'fill':_0x29ea9a(0x15e),'d':_0x29ea9a(0x10c),'fillRule':'evenodd','clipRule':'evenodd'}}]},B=_0x583fa1(function(_0x5eb44d,_0x1d0b83){var _0x36dd0c=_0x29ea9a;return _0x4ad7a6(W,Object[_0x36dd0c(0x129)]({},_0x5eb44d,{'id':_0x36dd0c(0x175),'ref':_0x1d0b83,'icon':ye}));});B[_0x29ea9a(0x12c)]=_0x29ea9a(0xe4);var Re=Object[_0x29ea9a(0x144)],Z=(_0x4a1d99,_0x639301,_0x3ca504,_0x1ee71b)=>{var _0x2c75d5=_0x29ea9a;for(var _0xdeff43=_0x1ee71b>0x1?void 0x0:_0x1ee71b?Re(_0x639301,_0x3ca504):_0x639301,_0xb45533=_0x4a1d99[_0x2c75d5(0xfd)]-0x1,_0x50dfce;_0xb45533>=0x0;_0xb45533--)(_0x50dfce=_0x4a1d99[_0xb45533])&&(_0xdeff43=_0x50dfce(_0xdeff43)||_0xdeff43);return _0xdeff43;},f=(_0x54ad62,_0x4708ba)=>(_0x3dfb05,_0xc7ff4f)=>_0x4708ba(_0x3dfb05,_0xc7ff4f,_0x54ad62);let I=class extends _0x4e23fa{constructor(_0x1cce31,_0x50b9af,_0x17cfc2){var _0x53d623=_0x29ea9a;super(),d(this,_0x53d623(0x149),new Map()),(this[_0x53d623(0x17d)]=_0x1cce31,this[_0x53d623(0x176)]=_0x50b9af,this[_0x53d623(0x183)]=_0x17cfc2,this[_0x53d623(0x191)]());}async[_0x29ea9a(0x134)](_0x5b2e16){var _0x3ef8dd=_0x29ea9a;return this[_0x3ef8dd(0x149)][_0x3ef8dd(0x169)](_0x5b2e16)||await this['_startLiveShareCoordinator'](_0x5b2e16),this[_0x3ef8dd(0x149)][_0x3ef8dd(0x103)](_0x5b2e16);}[_0x29ea9a(0x191)](){var _0x41d61e=_0x29ea9a;this[_0x41d61e(0x17d)][_0x41d61e(0xf5)](_0x2e7d47[_0x41d61e(0x17a)])[_0x41d61e(0x10b)](_0xe8d355(this[_0x41d61e(0x16e)]))['subscribe'](async _0x182770=>{var _0x3f6f23=_0x41d61e;const _0x235b5c=_0x182770[_0x3f6f23(0x11b)]();this[_0x3f6f23(0x149)][_0x3f6f23(0x169)](_0x235b5c)||this['_startLiveShareCoordinator'](_0x235b5c);}),this[_0x41d61e(0x17d)][_0x41d61e(0x186)](_0x2e7d47[_0x41d61e(0x17a)])[_0x41d61e(0x10b)](_0xe8d355(this['dispose$']))[_0x41d61e(0x127)](_0x3cdcd7=>{var _0xf57f0d=_0x41d61e;const _0x34c9e6=_0x3cdcd7['getUnitId'](),_0x2c7fb8=this[_0xf57f0d(0x149)]['get'](_0x34c9e6);_0x2c7fb8==null||_0x2c7fb8[_0xf57f0d(0x14d)]();});}async['_startLiveShareCoordinator'](_0x162ec6){var _0x2c22e6=_0x29ea9a;const _0x45ac00=await this['_collabSessionService'][_0x2c22e6(0x11d)](_0x162ec6),_0x4f6b13=this[_0x2c22e6(0x176)][_0x2c22e6(0x161)](C,_0x162ec6,_0x45ac00);return _0x4f6b13[_0x2c22e6(0x111)](),this[_0x2c22e6(0x149)]['set'](_0x162ec6,_0x4f6b13),_0x4f6b13;}};I=Z([f(0x0,_0x3459c1),f(0x1,_0xf646c1(_0x4498f3)),f(0x2,_0xf646c1(_0x94a5e1))],I);var h=(_0xc86bd0=>(_0xc86bd0[_0x29ea9a(0x114)]='offline',_0xc86bd0[_0x29ea9a(0x109)]='idle',_0xc86bd0[_0x29ea9a(0x14b)]=_0x29ea9a(0x13e),_0xc86bd0[_0x29ea9a(0x188)]=_0x29ea9a(0xfa),_0xc86bd0['PRESENTING']='presenting',_0xc86bd0))(h||{});const Pe=_0x29ea9a(0x187),Ae=0xc8;let C=class extends _0x4e23fa{constructor(_0x52c8ee,_0x215b8b,_0xd5ef52,_0x3e8131,_0x30510b){var _0x275bac=_0x29ea9a;super(),d(this,_0x275bac(0x147),new _0x2ba6f1(_0x275bac(0x14c))),d(this,'status$',this[_0x275bac(0x147)][_0x275bac(0xe9)]()),d(this,_0x275bac(0x191),!0x1),d(this,_0x275bac(0x182),null),d(this,_0x275bac(0x13c),null),(this[_0x275bac(0x189)]=_0x52c8ee,this[_0x275bac(0xf7)]=_0x215b8b,this['_configService']=_0xd5ef52,this['_liveShareService']=_0x3e8131,this['_commandService']=_0x30510b);}get[_0x29ea9a(0x171)](){var _0x1c0415=_0x29ea9a;return this[_0x1c0415(0x147)]['getValue']();}[_0x29ea9a(0x14d)](){var _0x46e4a8=_0x29ea9a,_0x1e2fd3;(_0x1e2fd3=this['_commandDisposable'])==null||_0x1e2fd3['dispose'](),this[_0x46e4a8(0x147)][_0x46e4a8(0x140)](_0x46e4a8(0x14c)),this['_status$'][_0x46e4a8(0x14f)]();}[_0x29ea9a(0x111)](){var _0x3e1a6c=_0x29ea9a;this[_0x3e1a6c(0x191)]||(this['_init']=!0x0,this[_0x3e1a6c(0xf7)][_0x3e1a6c(0x168)][_0x3e1a6c(0x10b)](_0xe8d355(this['dispose$']))[_0x3e1a6c(0x127)](_0x33a298=>{var _0x433edb=_0x3e1a6c;switch(_0x33a298){case _0x2862a6[_0x433edb(0x114)]:this[_0x433edb(0xe6)]();break;case _0x2862a6[_0x433edb(0x119)]:this[_0x433edb(0xea)]();break;}}),this[_0x3e1a6c(0xf7)][_0x3e1a6c(0x130)][_0x3e1a6c(0x10b)](_0xe8d355(this[_0x3e1a6c(0x16e)]))['subscribe'](_0xcdd238=>{var _0x176846=_0x3e1a6c;const {eventID:_0x222dc3}=_0xcdd238;switch(_0x222dc3){case _0x4ba672[_0x176846(0x141)]:this[_0x176846(0x100)](_0xcdd238);break;case _0x4ba672['LIVESHARE_OPERATION']:this[_0x176846(0x17b)](_0xcdd238);break;case _0x4ba672[_0x176846(0x113)]:this[_0x176846(0x179)]();break;case _0x4ba672['NEW_CHANGESETS']:this[_0x176846(0x11e)](_0xcdd238);break;}}));}['tryStartPresenting'](){var _0x5a07cc=_0x29ea9a;this[_0x5a07cc(0xf7)][_0x5a07cc(0xef)]({'eventID':_0x4ba672['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x5a07cc(0x18e)]()}},this[_0x5a07cc(0x189)]);}['stopPresenting'](){var _0x42b4d6=_0x29ea9a;this['_status']===_0x42b4d6(0x105)&&(this[_0x42b4d6(0x147)][_0x42b4d6(0x140)]('idle'),this[_0x42b4d6(0xf7)][_0x42b4d6(0xef)]({'eventID':_0x4ba672[_0x42b4d6(0x113)],'data':{'unitID':this['_unitID']}},this[_0x42b4d6(0x189)]));}['startFollowing'](){var _0x319e7d=_0x29ea9a;this[_0x319e7d(0x171)]===_0x319e7d(0xfa)&&(this['_status$'][_0x319e7d(0x140)](_0x319e7d(0x13e)),this[_0x319e7d(0x192)]());}[_0x29ea9a(0x178)](){var _0x2355c5=_0x29ea9a;this[_0x2355c5(0x171)]===_0x2355c5(0x13e)&&this[_0x2355c5(0x139)]();}[_0x29ea9a(0x100)](_0x9946a1){var _0x5e3cb2=_0x29ea9a;const {presenter:_0x8feeef}=_0x9946a1['data'],_0x484067=this[_0x5e3cb2(0xf7)][_0x5e3cb2(0x18e)]();this['_presenter']=_0x8feeef,_0x8feeef===_0x484067?(this[_0x5e3cb2(0x139)](),this['_startPresenting']()):this[_0x5e3cb2(0x171)]!==_0x5e3cb2(0xfa)&&(this[_0x5e3cb2(0x165)](),this['_startFollowing']());}[_0x29ea9a(0x145)](){var _0x517ee2=_0x29ea9a;const _0x139f05={'eventID':_0x4ba672[_0x517ee2(0x193)]};this[_0x517ee2(0xf7)][_0x517ee2(0xef)](_0x139f05,this[_0x517ee2(0x189)]);}[_0x29ea9a(0x179)](){var _0x4a90a8=_0x29ea9a;this[_0x4a90a8(0x13c)]=null,this['_status']!==_0x4a90a8(0x105)&&this['_beIdle']();}[_0x29ea9a(0x11e)](_0x59f989){var _0x50d831=_0x29ea9a;if(this[_0x50d831(0x171)]===_0x50d831(0x13e)&&this[_0x50d831(0x13c)]===_0x59f989[_0x50d831(0x120)][_0x50d831(0x18c)]){const _0x2eb3eb=_0x3bfe1e(_0x59f989[_0x50d831(0x120)])[_0x50d831(0x11a)]['reverse']()[_0x50d831(0xfc)](_0x170a2c=>_0x170a2c['id']===_0x438976['id']);if(_0x2eb3eb){const _0xe99f74=_0x2eb3eb['params'][_0x50d831(0x166)],_0x4181ae=_0x2eb3eb[_0x50d831(0x131)]['sheet']['id'];setTimeout(()=>{var _0xcfc9a7=_0x50d831;this[_0xcfc9a7(0x137)]['executeCommand'](_0x4a98a2['id'],{'unitId':_0xe99f74,'subUnitId':_0x4181ae},{'fromCollab':!0x0});});}}}[_0x29ea9a(0xf0)](){var _0x292509=_0x29ea9a;this[_0x292509(0x147)]['next']('presenting');const _0xaf012f=new Map(),_0x156205=this['_commandDisposable']=new _0x20d871();_0x156205[_0x292509(0x154)](_0x5bc629(()=>{var _0x524e09=_0x292509;_0xaf012f[_0x524e09(0xfe)](_0x40801e=>_0x40801e[_0x524e09(0x14f)]()),_0xaf012f[_0x524e09(0x177)]();})),_0x156205['add'](this[_0x292509(0x137)][_0x292509(0x181)](_0x100f14=>{var _0x1fea4f=_0x292509,_0x27232b;if(_0x100f14['type']!==_0x110f27[_0x1fea4f(0x126)]||!this['_liveShareService']['shouldShareOperation'](_0x100f14['id']))return;const {id:_0x18db32}=_0x100f14;let _0x24fe15;_0xaf012f[_0x1fea4f(0x169)](_0x18db32)?_0x24fe15=_0xaf012f[_0x1fea4f(0x103)](_0x18db32):(_0x24fe15=new _0x2ae17d(),_0xaf012f[_0x1fea4f(0x13a)](_0x18db32,_0x24fe15),_0x24fe15['pipe'](_0x66b6b3((_0x27232b=this[_0x1fea4f(0x136)][_0x1fea4f(0x138)](Pe))!=null?_0x27232b:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1fea4f(0x127)](_0x31ba6=>{var _0x187f78=_0x1fea4f;this['_collabSession']['send']({'eventID':_0x4ba672[_0x187f78(0x10a)],'data':{'unitID':this[_0x187f78(0x189)],'operations':{[_0x31ba6['id']]:{'id':_0x31ba6['id'],'params':JSON[_0x187f78(0x167)](_0x31ba6['params'])}}}},this[_0x187f78(0x189)]);})),_0x24fe15[_0x1fea4f(0x140)](_0x100f14);})),this['_liveShareService'][_0x292509(0x10e)](this['_unitID'])[_0x292509(0xfe)](_0x430b5d=>this[_0x292509(0xf7)]['send']({'eventID':_0x4ba672['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x292509(0x189)],'operations':{[_0x430b5d['id']]:{'id':_0x430b5d['id'],'params':JSON[_0x292509(0x167)](_0x430b5d[_0x292509(0x131)])}}}},this[_0x292509(0x189)]));}[_0x29ea9a(0x165)](){var _0x481fa1=_0x29ea9a,_0x52f8a2;this[_0x481fa1(0x147)]['next']('idle'),(_0x52f8a2=this[_0x481fa1(0x182)])==null||_0x52f8a2[_0x481fa1(0x14d)](),this[_0x481fa1(0x182)]=null;}[_0x29ea9a(0x192)](){var _0x24bd24=_0x29ea9a,_0x19333c;(_0x19333c=this[_0x24bd24(0x182)])==null||_0x19333c[_0x24bd24(0x14d)](),this[_0x24bd24(0x147)][_0x24bd24(0x140)](_0x24bd24(0x13e));}[_0x29ea9a(0x18f)](){var _0x201217=_0x29ea9a,_0x5e5564;this['_status$'][_0x201217(0x140)](_0x201217(0x14c)),(_0x5e5564=this[_0x201217(0x182)])==null||_0x5e5564[_0x201217(0x14d)](),this[_0x201217(0x182)]=null;}[_0x29ea9a(0x139)](){var _0x260e9d=_0x29ea9a,_0x939aef;this[_0x260e9d(0x147)]['next'](_0x260e9d(0xfa)),(_0x939aef=this[_0x260e9d(0x182)])==null||_0x939aef[_0x260e9d(0x14d)]();}[_0x29ea9a(0x17b)](_0x283abf){var _0x5517e9=_0x29ea9a;if([_0x5517e9(0x105),_0x5517e9(0xfa),'offline'][_0x5517e9(0x14a)](this['_status'])||!_0x283abf[_0x5517e9(0x120)]['presenter']||_0x283abf[_0x5517e9(0x120)]['presenter']===this[_0x5517e9(0xf7)][_0x5517e9(0x18e)]())return;this['_status']===_0x5517e9(0x14c)&&this[_0x5517e9(0x192)]();const _0x2eab83=_0x283abf[_0x5517e9(0x120)][_0x5517e9(0x15b)];Object[_0x5517e9(0x122)](_0x2eab83)[_0x5517e9(0xfe)](_0x3bee2d=>{var _0x45bd06=_0x5517e9;this[_0x45bd06(0x137)][_0x45bd06(0x170)](_0x3bee2d['id'],_0x3bee2d[_0x45bd06(0x131)]?JSON['parse'](_0x3bee2d[_0x45bd06(0x131)]):null,{'fromCollab':!0x0});});}[_0x29ea9a(0xe6)](){var _0x92359d=_0x29ea9a,_0x642c3c;this[_0x92359d(0x147)][_0x92359d(0x140)]('offline'),(_0x642c3c=this['_commandDisposable'])==null||_0x642c3c[_0x92359d(0x14d)]();}[_0x29ea9a(0xea)](){var _0x45fb61=_0x29ea9a;this[_0x45fb61(0x147)][_0x45fb61(0x140)]('idle'),this[_0x45fb61(0x145)]();}};C=Z([f(0x2,_0x548d47),f(0x3,_0xf646c1(L)),f(0x4,_0x1b0ea8)],C);function Te(){var _0xf9ddca=_0x29ea9a;const _0x45a09a=_0x1c7154(I),_0x5e7ead=_0x1c7154(_0x3459c1),_0xd3caca=_0x47ceac(()=>_0x5e7ead[_0xf9ddca(0x132)](_0x2e7d47[_0xf9ddca(0x17a)]),void 0x0,!0x1,[]),[_0x3b8e9c,_0xd0e9f3]=_0x445d54(null),[_0x224d15,_0x32f3b5]=_0x445d54(h['IDLE']),_0xa80675=_0x5b9881(null);return _0x212ac3(()=>(_0xd3caca&&_0x45a09a[_0xf9ddca(0x134)](_0xd3caca[_0xf9ddca(0x11b)]())[_0xf9ddca(0x151)](_0x206eb9=>{var _0x5bbaba=_0xf9ddca;_0xd0e9f3(_0x206eb9),_0xa80675[_0x5bbaba(0x150)]=_0x206eb9['status$']['subscribe'](_0x5070a4=>{_0x32f3b5(_0x5070a4);});}),()=>{var _0x43059c=_0xf9ddca,_0x182b58;(_0x182b58=_0xa80675[_0x43059c(0x150)])==null||_0x182b58[_0x43059c(0x180)](),_0xa80675[_0x43059c(0x150)]=null;}),[_0xd3caca,_0x45a09a]),_0x3b8e9c?_0x4a136f(_0x1f3e5a,{'align':_0xf9ddca(0x17f),'disabled':_0x224d15===h['OFFLINE'],'className':_0xf9ddca(0x17c),'overlay':_0x4a136f($e,{'status':_0x224d15,'coordinator':_0x3b8e9c}),'children':_0x4a136f('button',{'className':_0x42ee3f(_0xf9ddca(0x16f),{'univer-cursor-not-allowed':_0x224d15===h[_0xf9ddca(0x114)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x224d15!==h['OFFLINE']}),'type':'button','children':_0x4a136f(B,{'className':_0xf9ddca(0xff)})})}):null;}function $e(_0x9a85bb){var _0x33288a=_0x29ea9a;const {status:_0x5817e0,coordinator:_0x333446}=_0x9a85bb;switch(_0x5817e0){case h[_0x33288a(0x109)]:return _0x4a136f(Fe,{'coordinator':_0x333446});case h[_0x33288a(0x14b)]:return _0x4a136f(He,{'coordinator':_0x333446});case h[_0x33288a(0x188)]:return _0x4a136f(je,{'coordinator':_0x333446});case h[_0x33288a(0x114)]:return _0x4a136f(Ve,{});case h[_0x33288a(0x172)]:return _0x4a136f(Ue,{'coordinator':_0x333446});default:return null;}}function Fe(_0xa7ebdc){var _0x1afe45=_0x29ea9a;const {coordinator:_0x2a99e0}=_0xa7ebdc;return _0x6bb112(_0x1f470d,{'children':[_0x4a136f(_0x1afe45(0x112),{'className':_0x1afe45(0x18b),'children':'Present\x20this\x20document'}),_0x4a136f(_0x1b521d,{'onClick':()=>_0x2a99e0[_0x1afe45(0xf6)](),'children':'Start'})]});}function He(_0x203364){var _0x2826aa=_0x29ea9a;const {coordinator:_0x4f5e11}=_0x203364;return _0x6bb112(_0x1f470d,{'children':[_0x4a136f(_0x2826aa(0x112),{'className':_0x2826aa(0x18b),'children':_0x2826aa(0x124)}),_0x4a136f(_0x1b521d,{'onClick':()=>_0x4f5e11[_0x2826aa(0x178)](),'children':_0x2826aa(0xe8)})]});}function je(_0x3c4956){var _0x3fd904=_0x29ea9a;const {coordinator:_0x36814f}=_0x3c4956;return _0x6bb112(_0x1f470d,{'children':[_0x4a136f(_0x3fd904(0x112),{'className':_0x3fd904(0x18b),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x4a136f(_0x1b521d,{'variant':_0x3fd904(0x157),'onClick':()=>_0x36814f[_0x3fd904(0x16c)](),'children':_0x3fd904(0x102)})]});}function Ue(_0xf5f8c5){var _0x4d988e=_0x29ea9a;const {coordinator:_0x148e48}=_0xf5f8c5;return _0x6bb112(_0x1f470d,{'children':[_0x4a136f(_0x4d988e(0x112),{'className':_0x4d988e(0x18b),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x4a136f(_0x1b521d,{'variant':_0x4d988e(0x12f),'onClick':()=>_0x148e48['stopPresenting'](),'children':_0x4d988e(0x101)})]});}function Ve(){var _0x500d47=_0x29ea9a;return _0x4a136f(_0x1f470d,{'children':_0x500d47(0x12e)});}var Me=Object[_0x29ea9a(0x144)],ke=(_0xafba00,_0x26e348,_0x1b621e,_0x448c0e)=>{var _0x288742=_0x29ea9a;for(var _0x565988=_0x448c0e>0x1?void 0x0:_0x448c0e?Me(_0x26e348,_0x1b621e):_0x26e348,_0xca3a23=_0xafba00[_0x288742(0xfd)]-0x1,_0x1d090b;_0xca3a23>=0x0;_0xca3a23--)(_0x1d090b=_0xafba00[_0xca3a23])&&(_0x565988=_0x1d090b(_0x565988)||_0x565988);return _0x565988;},$=(_0x41c942,_0x2be0b4)=>(_0x4004b3,_0x43d979)=>_0x2be0b4(_0x4004b3,_0x43d979,_0x41c942);let b=class extends _0x31e7a4{constructor(_0x58032c,_0x7039b4){var _0x287563=_0x29ea9a;super(),this[_0x287563(0x176)]=_0x58032c,this['_uiPartsService']=_0x7039b4,this[_0x287563(0x106)]();}[_0x29ea9a(0x106)](){var _0x1f40fb=_0x29ea9a;this[_0x1f40fb(0x11f)](this['_uiPartsService'][_0x1f40fb(0xf4)](_0x591b35[_0x1f40fb(0x12d)],()=>_0x2ac8da(Te,this[_0x1f40fb(0x176)])));}};b=ke([$(0x0,_0xf646c1(_0x4498f3)),$(0x1,_0x410032)],b);var Ge=Object['defineProperty'],We=Object[_0x29ea9a(0x144)],Ye=(_0x3e98b5,_0x5c2556,_0x21b3d4)=>_0x5c2556 in _0x3e98b5?Ge(_0x3e98b5,_0x5c2556,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x21b3d4}):_0x3e98b5[_0x5c2556]=_0x21b3d4,Be=(_0x2e2445,_0x33b4e8,_0x325c9c,_0x5e81cd)=>{var _0x7738a5=_0x29ea9a;for(var _0xc12076=_0x5e81cd>0x1?void 0x0:_0x5e81cd?We(_0x33b4e8,_0x325c9c):_0x33b4e8,_0x3a3cfb=_0x2e2445[_0x7738a5(0xfd)]-0x1,_0xb942d8;_0x3a3cfb>=0x0;_0x3a3cfb--)(_0xb942d8=_0x2e2445[_0x3a3cfb])&&(_0xc12076=_0xb942d8(_0xc12076)||_0xc12076);return _0xc12076;},F=(_0x2c32ba,_0x531112)=>(_0x575a22,_0x10a097)=>_0x531112(_0x575a22,_0x10a097,_0x2c32ba),J=(_0x189e2c,_0x38a65c,_0x560644)=>Ye(_0x189e2c,typeof _0x38a65c!='symbol'?_0x38a65c+'':_0x38a65c,_0x560644);function _0x1c84(){var _0xb87989=['displayName','HEADER_MENU','You\x27are\x20offline.','default','event$','params','getCurrentTypeOfUnit$','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','getLiveShareCoordinator','substring','_configService','_commandService','getConfig','_stopFollowing','set','colorChannel1','_presenter','path','following','none','next','LIVESHARE_NEW_HOST','xlink:href','string','getOwnPropertyDescriptor','_fetchOperations','UNIVER_UNKNOWN','_status$','entries','_entities','includes','FOLLOWING','idle','dispose','trim','complete','current','then','map','tag','add','random','hasOwnProperty','text','_config','http://www.w3.org/2000/svg','concat','operations','symbol','9piTwWA','currentColor','7618824eCinFs','svg','createInstance','className','attrs','_reporters','_stopPresenting','unitId','stringify','sessionStatus$','has','1444223VFnhuk','4701655KSNqAh','startFollowing','defIds','dispose$','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','executeCommand','_status','PRESENTING','override','_sharedOperations','live-share-icon','_injector','clear','stopFollowing','_handleTerminate','UNIVER_SHEET','_handleOperation','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','_univerInstanceService','live-share.config','end','unsubscribe','onCommandExecuted','_commandDisposable','_collabSessionService','7728972HJLjtG','extend','getTypeOfUnitDisposed$','SAME_OPERATION_SHARE_INTERVAL','NOT_FOLLOWING','_unitID','10QvhuZD','univer-mb-3\x20univer-w-full\x20univer-text-sm','memberID','4MrDisJ','getMemberID','_beIdle','registerInitialStateReporter','_init','_startFollowing','LIVESHARE_FETCH_OPERATIONS','univerjs-icon\x20univerjs-icon-','defineProperty','LiveShareIcon','children','_handleOffline','_liveShareService','Stop\x20following','asObservable','_handleOnline','1em','from','getOwnPropertySymbols','url(#$1','send','_startPresenting','idSuffix','indexOf','UniverIcon','registerComponent','getTypeOfUnitAdded$','tryStartPresenting','_collabSession','prototype','toString','not-following','mask','find','length','forEach','univer-size-4','_handleNewHost','Stop\x20presenting','Start\x20following','get','pluginName','presenting','_mountLiveShare','735406bnpZXG','replace','IDLE','LIVESHARE_OPERATION','pipe','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','8515199DXvfLa','getInitialStates','apply','icon','init','div','LIVESHARE_TERMINATE','OFFLINE','call','fill','defs','delete','ONLINE','mutations','getUnitId','0\x200\x2017\x2017','requireSession','_handleNewChangeSets','disposeWithMe','data','4dXQVXl','values','UNIVER_LIVE_SHARE_PLUGIN','You\x27re\x20following\x20the\x20presenter','1962066RNeIFH','OPERATION','subscribe','onStarting','assign','function','shouldShareOperation'];_0x1c84=function(){return _0xb87989;};return _0x1c84();}const Ze=_0x29ea9a(0x123);let O=class extends _0xe5ff50{constructor(_0x270f78=T,_0x1ef3a4,_0x197e8a){var _0x683045=_0x29ea9a;super(),this[_0x683045(0x158)]=_0x270f78,this[_0x683045(0x176)]=_0x1ef3a4,this[_0x683045(0x136)]=_0x197e8a;const {..._0x5c320c}=_0x1fc8bd({},T,this['_config']);this[_0x683045(0x136)]['setConfig'](Oe,_0x5c320c);}[_0x29ea9a(0x128)](){var _0x2a2072=_0x29ea9a;_0x2df774(this[_0x2a2072(0x176)],_0x1e76da([[L],[I],[m],[b]],this['_config'][_0x2a2072(0x173)])),_0x21061e(this[_0x2a2072(0x176)],[[m]]);}['onRendered'](){_0x21061e(this['_injector'],[[b]]);}};J(O,'type',_0x2e7d47[_0x29ea9a(0x146)]),J(O,_0x29ea9a(0x104),Ze),O=Be([_0x484a52(_0x1a961f),F(0x1,_0xf646c1(_0x4498f3)),F(0x2,_0x548d47)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x20cf(){var _0x2cf59f=['pipe','div','getCurrentTypeOfUnit$','UniverProCollaborationClient','Present\x20this\x20document','dispose$','createInstance','set','asObservable','add','tryStartPresenting','CommandType','onRendered','useState','@univerjs/ui','SessionStatus','className','You\x27re\x20presenting\x20the\x20document','_startPresenting','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','override','LiveShareService','UniverCore','init','2038353fQuNGT','@univerjs/core','pluginName','getInitialStates','_commandService','operations','UniverProCollaboration','ONLINE','icon','_handleOperation','_reporters','rxjs/operators','6360330igAbBL','PRESENTING','includes','operators','@univerjs-pro/collaboration','defineProperty','UniverSheetsUi','You\x27are\x20offline.','unsubscribe','10231760wMFAeB','requireSession','delete','xlink:href','DisposableCollection','getOwnPropertySymbols','trim','attrs','stringify','idSuffix','_injector','1588239cjENWl','UniverDesign','startFollowing','getUnitId','Injector','Dropdown','symbol','presenter','memberID','send','parse','998115IostEN','throttleTime','_status','idle','LiveShare','@univerjs/sheets','BehaviorSubject','colorChannel1','stopFollowing','mask','_startLiveShareCoordinator','stopPresenting','forwardRef','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','object','_stopPresenting','_startFollowing','live-share-icon','Start','Stop\x20presenting','disposeWithMe','length','InsertSheetMutation','_univerInstanceService','LiveShareCoordinator','SAME_OPERATION_SHARE_INTERVAL','toString','_handleTerminate','UniverUi','UNIVER_SHEET','takeUntil','mutations','Plugin','setConfig','displayName','registerSharedOperation','executeCommand','find','presenting','_handleNewChangeSets','string','RxDisposable','_commandDisposable','live-share.config','react','call','clear','params','function','unitId','registerDependencies','681996xYibdf','_stopFollowing','complete','useRef','_status$','toDisposable','UniverInstanceType','_fetchOperations','children','_beIdle','UniverIcon','entries','subscribe','assign','apply','_sharedOperations','concat','replace','toStringTag','type','2Cpcphe','LiveShareStatus','_presenter','Fragment','getLiveShareCoordinator','OPERATION','getOwnPropertyDescriptor','button','getConfig','shouldShareOperation','univer-mb-3\x20univer-w-full\x20univer-text-sm','_collabSessionService','OFFLINE','offline','next','default','fill','registerComponent','1em','Inject','3891364vflmsl','url(#$1','React','current','@univerjs/design','UniverCollaborationClientPlugin','jsx','clsx','end','LIVESHARE_TERMINATE','_configService','UniverSheets','tag','jsxs','dispose','_unitID','IUIPartsService','_handleOnline','Disposable','hasOwnProperty','rxjs','propertyIsEnumerable','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','FOLLOWING','LiveShareController','NEW_CHANGESETS','_handleOffline','UniverProLiveShare','indexOf','path','onStarting','currentColor','svg','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','UNIVER_LIVE_SHARE_PLUGIN','ICommandService','_handleNewHost','forEach','http://www.w3.org/2000/svg','You\x27re\x20not\x20following\x20the\x20presenter','getMemberID','createElement','univerjs-icon\x20univerjs-icon-','IUniverInstanceService','LIVESHARE_NEW_HOST','DependentOn','useEffect','IConfigService','24biJgsO','substring','@univerjs-pro/collaboration-client','SetScrollOperation','data','NOT_FOLLOWING','not-following','following','has','Module','extend','_config','IDLE','_mountLiveShare','UNIVER_UNKNOWN','@univerjs/sheets-ui','get','map','UniverLiveSharePlugin','from','SetZoomRatioOperation','evenodd','_entities','text','reverse','_uiPartsService','prototype','_init','defIds','_collabSession','parseProtocolChangeset','touchDependencies','values','Subject','DesktopLiveShareController','Button','event$','_liveShareService','use','CollaborationEvent','LIVESHARE_OPERATION'];_0x20cf=function(){return _0x2cf59f;};return _0x20cf();}function _0x5441(_0x5f31bf,_0x121cbe){var _0x20cf05=_0x20cf();return _0x5441=function(_0x5441a3,_0x443e9c){_0x5441a3=_0x5441a3-0x105;var _0x2c659a=_0x20cf05[_0x5441a3];return _0x2c659a;},_0x5441(_0x5f31bf,_0x121cbe);}(function(_0x266915,_0x3b7aca){var _0x359fb3=_0x5441,_0x4c511d=_0x266915();while(!![]){try{var _0xb85ea9=-parseInt(_0x359fb3(0x171))/0x1*(parseInt(_0x359fb3(0x1b8))/0x2)+parseInt(_0x359fb3(0x146))/0x3+-parseInt(_0x359fb3(0x1cc))/0x4+parseInt(_0x359fb3(0x152))/0x5+-parseInt(_0x359fb3(0x1a4))/0x6+parseInt(_0x359fb3(0x15b))/0x7+parseInt(_0x359fb3(0x105))/0x8*(-parseInt(_0x359fb3(0x166))/0x9);if(_0xb85ea9===_0x3b7aca)break;else _0x4c511d['push'](_0x4c511d['shift']());}catch(_0x4101f7){_0x4c511d['push'](_0x4c511d['shift']());}}}(_0x20cf,0xc31ba),function(_0x4f5e26,_0x1fe49c){var _0x49ec35=_0x5441;typeof exports==_0x49ec35(0x17f)&&typeof module<'u'?_0x1fe49c(exports,require(_0x49ec35(0x107)),require(_0x49ec35(0x147)),require(_0x49ec35(0x176)),require(_0x49ec35(0x114)),require(_0x49ec35(0x13c)),require('react/jsx-runtime'),require('@univerjs/design'),require('react'),require(_0x49ec35(0x156)),require(_0x49ec35(0x1e0)),require(_0x49ec35(0x151))):typeof define==_0x49ec35(0x1a1)&&define['amd']?define(['exports','@univerjs-pro/collaboration-client',_0x49ec35(0x147),_0x49ec35(0x176),_0x49ec35(0x114),'@univerjs/ui','react/jsx-runtime',_0x49ec35(0x1d0),_0x49ec35(0x19d),_0x49ec35(0x156),'rxjs','rxjs/operators'],_0x1fe49c):(_0x4f5e26=typeof globalThis<'u'?globalThis:_0x4f5e26||self,_0x1fe49c(_0x4f5e26[_0x49ec35(0x1e7)]={},_0x4f5e26[_0x49ec35(0x131)],_0x4f5e26[_0x49ec35(0x144)],_0x4f5e26[_0x49ec35(0x1d7)],_0x4f5e26[_0x49ec35(0x158)],_0x4f5e26[_0x49ec35(0x18d)],_0x4f5e26[_0x49ec35(0x1ce)],_0x4f5e26[_0x49ec35(0x167)],_0x4f5e26[_0x49ec35(0x1ce)],_0x4f5e26[_0x49ec35(0x14c)],_0x4f5e26[_0x49ec35(0x1e0)],_0x4f5e26['rxjs'][_0x49ec35(0x155)]));}(this,function(_0x2a3b99,_0x149759,_0x6fbf19,_0x21c53d,_0x305a22,_0x35edf1,_0x4f88dd,_0x51ebe9,_0x6e62c0,_0x3c0848,_0x2e9a4,_0xd12273){'use strict';var _0x8cbab7=_0x5441;var _0x302a6a=Object['defineProperty'],_0x48d2ca=(_0x45a6f5,_0x246c73,_0x297ae5)=>_0x246c73 in _0x45a6f5?_0x302a6a(_0x45a6f5,_0x246c73,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x297ae5}):_0x45a6f5[_0x246c73]=_0x297ae5,_0x3f43da=(_0x51d433,_0x3686c7,_0x319760)=>_0x48d2ca(_0x51d433,typeof _0x3686c7!='symbol'?_0x3686c7+'':_0x3686c7,_0x319760);const _0x3863b5=_0x8cbab7(0x19c),_0x212de5={};class _0x42c9b5 extends _0x6fbf19['Disposable']{constructor(){var _0x3a9383=_0x8cbab7;super(...arguments),_0x3f43da(this,_0x3a9383(0x1b3),new Set()),_0x3f43da(this,_0x3a9383(0x150),new Set());}[_0x8cbab7(0x194)](_0x1c15fe){var _0x38632f=_0x8cbab7;return this[_0x38632f(0x1b3)]['add'](_0x1c15fe),_0x6fbf19[_0x38632f(0x1a9)](()=>this[_0x38632f(0x1b3)][_0x38632f(0x15d)](_0x1c15fe));}['registerInitialStateReporter'](_0x32e578){var _0x13ca47=_0x8cbab7;return this[_0x13ca47(0x150)][_0x13ca47(0x137)](_0x32e578),_0x6fbf19[_0x13ca47(0x1a9)](()=>this['_reporters'][_0x13ca47(0x15d)](_0x32e578));}[_0x8cbab7(0x1c1)](_0x2d5a01){return this['_sharedOperations']['has'](_0x2d5a01);}[_0x8cbab7(0x149)](_0x1c7a91){var _0x26a1a3=_0x8cbab7;return Array[_0x26a1a3(0x118)](this[_0x26a1a3(0x150)])[_0x26a1a3(0x116)](_0x1bf1c0=>_0x1bf1c0(_0x1c7a91));}}var _0x4dad81=Object[_0x8cbab7(0x1be)],_0x3615bc=(_0x6eb443,_0x166154,_0x19ea80,_0x2b1fab)=>{var _0x60cd99=_0x8cbab7;for(var _0x5d05fe=_0x2b1fab>0x1?void 0x0:_0x2b1fab?_0x4dad81(_0x166154,_0x19ea80):_0x166154,_0x561912=_0x6eb443[_0x60cd99(0x186)]-0x1,_0x53e8de;_0x561912>=0x0;_0x561912--)(_0x53e8de=_0x6eb443[_0x561912])&&(_0x5d05fe=_0x53e8de(_0x5d05fe)||_0x5d05fe);return _0x5d05fe;},_0x5736ad=(_0x1b7ef4,_0x36b7d6)=>(_0x2516ad,_0x2808c7)=>_0x36b7d6(_0x2516ad,_0x2808c7,_0x1b7ef4);let _0x175749=class extends _0x6fbf19[_0x8cbab7(0x1de)]{constructor(_0x52e53f){var _0x2e02cc=_0x8cbab7;super(),this[_0x2e02cc(0x12a)]=_0x52e53f,this[_0x2e02cc(0x120)]();}[_0x8cbab7(0x120)](){var _0x489b52=_0x8cbab7;[_0x305a22[_0x489b52(0x119)]['id'],_0x305a22[_0x489b52(0x108)]['id'],_0x21c53d['SetWorksheetActiveOperation']['id']]['forEach'](_0x4378c1=>{var _0x241155=_0x489b52;this[_0x241155(0x185)](this['_liveShareService'][_0x241155(0x194)](_0x4378c1));});}};_0x175749=_0x3615bc([_0x5736ad(0x0,_0x6fbf19[_0x8cbab7(0x1cb)](_0x42c9b5))],_0x175749);var _0x5ebf7c=function(){var _0x4d78ee=_0x8cbab7;return _0x5ebf7c=Object[_0x4d78ee(0x1b1)]||function(_0x58760e){var _0x20595a=_0x4d78ee;for(var _0x1a47de,_0x3cde1c=0x1,_0x183c0c=arguments[_0x20595a(0x186)];_0x3cde1c<_0x183c0c;_0x3cde1c++){_0x1a47de=arguments[_0x3cde1c];for(var _0x4152e0 in _0x1a47de)Object['prototype'][_0x20595a(0x1df)][_0x20595a(0x19e)](_0x1a47de,_0x4152e0)&&(_0x58760e[_0x4152e0]=_0x1a47de[_0x4152e0]);}return _0x58760e;},_0x5ebf7c[_0x4d78ee(0x1b2)](this,arguments);},_0x3d8f0c=function(_0x3677a6,_0x9965af){var _0x45e7f7=_0x8cbab7,_0x2a431a={};for(var _0x190823 in _0x3677a6)Object[_0x45e7f7(0x11f)]['hasOwnProperty'][_0x45e7f7(0x19e)](_0x3677a6,_0x190823)&&_0x9965af[_0x45e7f7(0x1e8)](_0x190823)<0x0&&(_0x2a431a[_0x190823]=_0x3677a6[_0x190823]);if(_0x3677a6!=null&&typeof Object[_0x45e7f7(0x160)]==_0x45e7f7(0x1a1)){for(var _0x45d59f=0x0,_0x190823=Object[_0x45e7f7(0x160)](_0x3677a6);_0x45d59f<_0x190823[_0x45e7f7(0x186)];_0x45d59f++)_0x9965af[_0x45e7f7(0x1e8)](_0x190823[_0x45d59f])<0x0&&Object[_0x45e7f7(0x11f)][_0x45e7f7(0x1e1)][_0x45e7f7(0x19e)](_0x3677a6,_0x190823[_0x45d59f])&&(_0x2a431a[_0x190823[_0x45d59f]]=_0x3677a6[_0x190823[_0x45d59f]]);}return _0x2a431a;},_0x133e75=_0x6e62c0['forwardRef'](function(_0x4312bf,_0x2a9437){var _0x55902f=_0x8cbab7,_0xf40f2c=_0x4312bf[_0x55902f(0x14e)],_0x370ba6=_0x4312bf['id'],_0x1746e7=_0x4312bf[_0x55902f(0x13e)],_0x46ad3d=_0x4312bf[_0x55902f(0x10f)],_0x2804bc=_0x3d8f0c(_0x4312bf,[_0x55902f(0x14e),'id',_0x55902f(0x13e),_0x55902f(0x10f)]),_0x2ec8cd=_0x55902f(0x1f6)['concat'](_0x370ba6,'\x20')['concat'](_0x1746e7||'')[_0x55902f(0x161)](),_0x2cfb98=_0x6e62c0[_0x55902f(0x1a7)]('_'[_0x55902f(0x1b4)](_0x54ab60()));return _0x5d6f24(_0xf40f2c,''[_0x55902f(0x1b4)](_0x370ba6),{'defIds':_0xf40f2c[_0x55902f(0x121)],'idSuffix':_0x2cfb98[_0x55902f(0x1cf)]},_0x5ebf7c({'ref':_0x2a9437,'className':_0x2ec8cd},_0x2804bc),_0x46ad3d);});function _0x5d6f24(_0x4f631e,_0x96656b,_0x2f1753,_0x3614ee,_0x13d8d8){var _0x479348=_0x8cbab7;return _0x6e62c0['createElement'](_0x4f631e[_0x479348(0x1d8)],_0x5ebf7c(_0x5ebf7c({'key':_0x96656b},_0x41aed(_0x4f631e,_0x2f1753,_0x13d8d8)),_0x3614ee),(_0x33abec(_0x4f631e,_0x2f1753)['children']||[])[_0x479348(0x116)](function(_0x4b385a,_0x2f2b92){var _0x502e13=_0x479348;return _0x5d6f24(_0x4b385a,''[_0x502e13(0x1b4)](_0x96656b,'-')[_0x502e13(0x1b4)](_0x4f631e[_0x502e13(0x1d8)],'-')[_0x502e13(0x1b4)](_0x2f2b92),_0x2f1753,void 0x0,_0x13d8d8);}));}function _0x41aed(_0x4a044c,_0x3b34f0,_0xc029b1){var _0x161b3a=_0x8cbab7,_0x16afd0=_0x5ebf7c({},_0x4a044c['attrs']);_0xc029b1!=null&&_0xc029b1[_0x161b3a(0x178)]&&_0x16afd0[_0x161b3a(0x1c8)]===_0x161b3a(0x178)&&(_0x16afd0[_0x161b3a(0x1c8)]=_0xc029b1[_0x161b3a(0x178)]),_0x4a044c[_0x161b3a(0x1d8)]===_0x161b3a(0x17a)&&_0x16afd0['id']&&(_0x16afd0['id']=_0x16afd0['id']+_0x3b34f0[_0x161b3a(0x164)]),Object[_0x161b3a(0x1af)](_0x16afd0)[_0x161b3a(0x1f1)](function(_0x544a6a){var _0x4f9098=_0x161b3a,_0x23c08e=_0x544a6a[0x0],_0xfc2710=_0x544a6a[0x1];_0x23c08e==='mask'&&typeof _0xfc2710==_0x4f9098(0x199)&&(_0x16afd0[_0x23c08e]=_0xfc2710[_0x4f9098(0x1b5)](/url\(#(.*)\)/,_0x4f9098(0x1cd)[_0x4f9098(0x1b4)](_0x3b34f0[_0x4f9098(0x164)],')')));});var _0x4ec96c=_0x3b34f0[_0x161b3a(0x121)];return!_0x4ec96c||_0x4ec96c[_0x161b3a(0x186)]===0x0||(_0x4a044c[_0x161b3a(0x1d8)]===_0x161b3a(0x12b)&&_0x16afd0[_0x161b3a(0x15e)]&&(_0x16afd0['xlink:href']=_0x16afd0[_0x161b3a(0x15e)]+_0x3b34f0[_0x161b3a(0x164)]),Object[_0x161b3a(0x1af)](_0x16afd0)[_0x161b3a(0x1f1)](function(_0x8e88f0){var _0x4ffcc8=_0x161b3a,_0x745a68=_0x8e88f0[0x0],_0x23da25=_0x8e88f0[0x1];typeof _0x23da25==_0x4ffcc8(0x199)&&(_0x16afd0[_0x745a68]=_0x23da25[_0x4ffcc8(0x1b5)](/url\(#(.*)\)/,_0x4ffcc8(0x1cd)[_0x4ffcc8(0x1b4)](_0x3b34f0['idSuffix'],')')));})),_0x16afd0;}function _0x33abec(_0x45c444,_0x3a6b29){var _0x21eaf4=_0x8cbab7,_0x32d904,_0x4890c3=_0x3a6b29['defIds'];return!_0x4890c3||_0x4890c3[_0x21eaf4(0x186)]===0x0?_0x45c444:_0x45c444['tag']==='defs'&&(!((_0x32d904=_0x45c444[_0x21eaf4(0x1ac)])===null||_0x32d904===void 0x0)&&_0x32d904[_0x21eaf4(0x186)])?_0x5ebf7c(_0x5ebf7c({},_0x45c444),{'children':_0x45c444['children']['map'](function(_0x521682){var _0x10daff=_0x21eaf4;return typeof _0x521682[_0x10daff(0x162)]['id']==_0x10daff(0x199)&&_0x4890c3&&_0x4890c3[_0x10daff(0x154)](_0x521682['attrs']['id'])?_0x5ebf7c(_0x5ebf7c({},_0x521682),{'attrs':_0x5ebf7c(_0x5ebf7c({},_0x521682[_0x10daff(0x162)]),{'id':_0x521682[_0x10daff(0x162)]['id']+_0x3a6b29[_0x10daff(0x164)]})}):_0x521682;})}):_0x45c444;}function _0x54ab60(){var _0x5c2ed4=_0x8cbab7;return Math['random']()[_0x5c2ed4(0x18b)](0x24)[_0x5c2ed4(0x106)](0x2,0x8);}_0x133e75[_0x8cbab7(0x193)]=_0x8cbab7(0x1ae);var _0x2e1562={'tag':_0x8cbab7(0x1ec),'attrs':{'xmlns':_0x8cbab7(0x1f2),'fill':'none','viewBox':'0\x200\x2017\x2017','width':_0x8cbab7(0x1ca),'height':_0x8cbab7(0x1ca)},'children':[{'tag':_0x8cbab7(0x1e9),'attrs':{'fill':'currentColor','d':_0x8cbab7(0x17e)}},{'tag':_0x8cbab7(0x1e9),'attrs':{'fill':_0x8cbab7(0x1eb),'d':_0x8cbab7(0x1ed),'fillRule':_0x8cbab7(0x11a),'clipRule':'evenodd'}}]},_0x426b84=_0x6e62c0[_0x8cbab7(0x17d)](function(_0x2c810a,_0x170fd0){var _0xe1b6f=_0x8cbab7;return _0x6e62c0[_0xe1b6f(0x1f5)](_0x133e75,Object[_0xe1b6f(0x1b1)]({},_0x2c810a,{'id':_0xe1b6f(0x182),'ref':_0x170fd0,'icon':_0x2e1562}));});_0x426b84[_0x8cbab7(0x193)]='LiveShareIcon';var _0x25ceab=Object['getOwnPropertyDescriptor'],_0x5a41fd=(_0x3ac263,_0x54428d,_0x35b4fa,_0x19154a)=>{var _0x2288bc=_0x8cbab7;for(var _0x5ee80a=_0x19154a>0x1?void 0x0:_0x19154a?_0x25ceab(_0x54428d,_0x35b4fa):_0x54428d,_0x4e432b=_0x3ac263[_0x2288bc(0x186)]-0x1,_0x32ab93;_0x4e432b>=0x0;_0x4e432b--)(_0x32ab93=_0x3ac263[_0x4e432b])&&(_0x5ee80a=_0x32ab93(_0x5ee80a)||_0x5ee80a);return _0x5ee80a;},_0x43bcc3=(_0x32371c,_0x28139e)=>(_0x485dd6,_0x110f29)=>_0x28139e(_0x485dd6,_0x110f29,_0x32371c);_0x2a3b99[_0x8cbab7(0x1e4)]=class extends _0x6fbf19[_0x8cbab7(0x19a)]{constructor(_0xe9acc1,_0xb36089,_0x238157){var _0x207b49=_0x8cbab7;super(),_0x3f43da(this,_0x207b49(0x11b),new Map()),(this[_0x207b49(0x188)]=_0xe9acc1,this[_0x207b49(0x165)]=_0xb36089,this[_0x207b49(0x1c3)]=_0x238157,this[_0x207b49(0x120)]());}async[_0x8cbab7(0x1bc)](_0x13bed9){var _0x42ff14=_0x8cbab7;return this[_0x42ff14(0x11b)][_0x42ff14(0x10d)](_0x13bed9)||await this[_0x42ff14(0x17b)](_0x13bed9),this['_entities'][_0x42ff14(0x115)](_0x13bed9);}[_0x8cbab7(0x120)](){var _0x5ebf42=_0x8cbab7;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x6fbf19[_0x5ebf42(0x1aa)][_0x5ebf42(0x18e)])[_0x5ebf42(0x12e)](_0xd12273[_0x5ebf42(0x18f)](this['dispose$']))[_0x5ebf42(0x1b0)](async _0x12f635=>{var _0x42b961=_0x5ebf42;const _0x42db54=_0x12f635[_0x42b961(0x169)]();this['_entities'][_0x42b961(0x10d)](_0x42db54)||this[_0x42b961(0x17b)](_0x42db54);}),this[_0x5ebf42(0x188)]['getTypeOfUnitDisposed$'](_0x6fbf19['UniverInstanceType'][_0x5ebf42(0x18e)])['pipe'](_0xd12273[_0x5ebf42(0x18f)](this[_0x5ebf42(0x133)]))[_0x5ebf42(0x1b0)](_0x2bb90f=>{var _0x5a34ce=_0x5ebf42;const _0x519e7b=_0x2bb90f[_0x5a34ce(0x169)](),_0x1c26d9=this[_0x5a34ce(0x11b)][_0x5a34ce(0x115)](_0x519e7b);_0x1c26d9==null||_0x1c26d9[_0x5a34ce(0x1da)]();});}async[_0x8cbab7(0x17b)](_0xdeed9a){var _0x421eaa=_0x8cbab7;const _0x37c0ff=await this[_0x421eaa(0x1c3)][_0x421eaa(0x15c)](_0xdeed9a),_0x559da4=this[_0x421eaa(0x165)][_0x421eaa(0x134)](_0x2a3b99[_0x421eaa(0x189)],_0xdeed9a,_0x37c0ff);return _0x559da4['init'](),this[_0x421eaa(0x11b)][_0x421eaa(0x135)](_0xdeed9a,_0x559da4),_0x559da4;}},_0x2a3b99[_0x8cbab7(0x1e4)]=_0x5a41fd([_0x43bcc3(0x0,_0x6fbf19[_0x8cbab7(0x1f7)]),_0x43bcc3(0x1,_0x6fbf19['Inject'](_0x6fbf19[_0x8cbab7(0x16a)])),_0x43bcc3(0x2,_0x6fbf19['Inject'](_0x149759['CollaborationSessionService']))],_0x2a3b99[_0x8cbab7(0x1e4)]);var _0xc98a21=(_0x5367e7=>(_0x5367e7['OFFLINE']='offline',_0x5367e7['IDLE']=_0x8cbab7(0x174),_0x5367e7[_0x8cbab7(0x1e3)]=_0x8cbab7(0x10c),_0x5367e7[_0x8cbab7(0x10a)]=_0x8cbab7(0x10b),_0x5367e7[_0x8cbab7(0x153)]='presenting',_0x5367e7))(_0xc98a21||{});const _0x58dad8=_0x8cbab7(0x18a),_0xe99e49=0xc8;_0x2a3b99[_0x8cbab7(0x189)]=class extends _0x6fbf19[_0x8cbab7(0x19a)]{constructor(_0x4bce06,_0x10aab0,_0x5186a0,_0x2c8a66,_0x12735d){var _0x461124=_0x8cbab7;super(),_0x3f43da(this,_0x461124(0x1a8),new _0x2e9a4[(_0x461124(0x177))](_0x461124(0x174))),_0x3f43da(this,'status$',this[_0x461124(0x1a8)][_0x461124(0x136)]()),_0x3f43da(this,'_init',!0x1),_0x3f43da(this,_0x461124(0x19b),null),_0x3f43da(this,_0x461124(0x1ba),null),(this['_unitID']=_0x4bce06,this['_collabSession']=_0x10aab0,this[_0x461124(0x1d6)]=_0x5186a0,this[_0x461124(0x12a)]=_0x2c8a66,this[_0x461124(0x14a)]=_0x12735d);}get[_0x8cbab7(0x173)](){var _0x4c9073=_0x8cbab7;return this[_0x4c9073(0x1a8)]['getValue']();}[_0x8cbab7(0x1da)](){var _0x2ba8e1=_0x8cbab7,_0x909eaf;(_0x909eaf=this[_0x2ba8e1(0x19b)])==null||_0x909eaf[_0x2ba8e1(0x1da)](),this[_0x2ba8e1(0x1a8)][_0x2ba8e1(0x1c6)](_0x2ba8e1(0x174)),this[_0x2ba8e1(0x1a8)][_0x2ba8e1(0x1a6)]();}[_0x8cbab7(0x145)](){var _0x532610=_0x8cbab7;this[_0x532610(0x120)]||(this[_0x532610(0x120)]=!0x0,this[_0x532610(0x122)]['sessionStatus$'][_0x532610(0x12e)](_0xd12273[_0x532610(0x18f)](this[_0x532610(0x133)]))['subscribe'](_0x52de89=>{var _0x306eb0=_0x532610;switch(_0x52de89){case _0x149759['SessionStatus'][_0x306eb0(0x1c4)]:this[_0x306eb0(0x1e6)]();break;case _0x149759[_0x306eb0(0x13d)][_0x306eb0(0x14d)]:this[_0x306eb0(0x1dd)]();break;}}),this[_0x532610(0x122)][_0x532610(0x129)][_0x532610(0x12e)](_0xd12273[_0x532610(0x18f)](this[_0x532610(0x133)]))[_0x532610(0x1b0)](_0x19e568=>{var _0x410984=_0x532610;const {eventID:_0x32bf45}=_0x19e568;switch(_0x32bf45){case _0x3c0848[_0x410984(0x12c)][_0x410984(0x1f8)]:this[_0x410984(0x1f0)](_0x19e568);break;case _0x3c0848['CollaborationEvent']['LIVESHARE_OPERATION']:this['_handleOperation'](_0x19e568);break;case _0x3c0848[_0x410984(0x12c)][_0x410984(0x1d5)]:this[_0x410984(0x18c)]();break;case _0x3c0848[_0x410984(0x12c)][_0x410984(0x1e5)]:this[_0x410984(0x198)](_0x19e568);break;}}));}[_0x8cbab7(0x138)](){var _0x7dc8dc=_0x8cbab7;this['_collabSession'][_0x7dc8dc(0x16f)]({'eventID':_0x3c0848[_0x7dc8dc(0x12c)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x7dc8dc(0x1db)],'userID':this[_0x7dc8dc(0x122)]['getMemberID']()}},this['_unitID']);}[_0x8cbab7(0x17c)](){var _0x1b6a79=_0x8cbab7;this[_0x1b6a79(0x173)]===_0x1b6a79(0x197)&&(this['_status$'][_0x1b6a79(0x1c6)](_0x1b6a79(0x174)),this['_collabSession'][_0x1b6a79(0x16f)]({'eventID':_0x3c0848[_0x1b6a79(0x12c)][_0x1b6a79(0x1d5)],'data':{'unitID':this['_unitID']}},this[_0x1b6a79(0x1db)]));}['startFollowing'](){var _0x138249=_0x8cbab7;this[_0x138249(0x173)]===_0x138249(0x10b)&&(this[_0x138249(0x1a8)]['next'](_0x138249(0x10c)),this[_0x138249(0x181)]());}[_0x8cbab7(0x179)](){var _0x287a30=_0x8cbab7;this['_status']===_0x287a30(0x10c)&&this[_0x287a30(0x1a5)]();}[_0x8cbab7(0x1f0)](_0xb3aa4a){var _0x27d477=_0x8cbab7;const {presenter:_0x3b798f}=_0xb3aa4a['data'],_0x3e6116=this['_collabSession'][_0x27d477(0x1f4)]();this[_0x27d477(0x1ba)]=_0x3b798f,_0x3b798f===_0x3e6116?(this[_0x27d477(0x1a5)](),this['_startPresenting']()):this[_0x27d477(0x173)]!==_0x27d477(0x10b)&&(this[_0x27d477(0x180)](),this[_0x27d477(0x181)]());}[_0x8cbab7(0x1ab)](){var _0x3d28d3=_0x8cbab7;const _0x1174f4={'eventID':_0x3c0848[_0x3d28d3(0x12c)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x3d28d3(0x122)][_0x3d28d3(0x16f)](_0x1174f4,this[_0x3d28d3(0x1db)]);}['_handleTerminate'](){var _0x5a34d1=_0x8cbab7;this[_0x5a34d1(0x1ba)]=null,this[_0x5a34d1(0x173)]!==_0x5a34d1(0x197)&&this['_beIdle']();}[_0x8cbab7(0x198)](_0x1ab76f){var _0x28b746=_0x8cbab7;if(this[_0x28b746(0x173)]==='following'&&this[_0x28b746(0x1ba)]===_0x1ab76f[_0x28b746(0x109)][_0x28b746(0x16e)]){const _0xabc68d=_0x3c0848[_0x28b746(0x123)](_0x1ab76f[_0x28b746(0x109)])[_0x28b746(0x190)][_0x28b746(0x11d)]()[_0x28b746(0x196)](_0x1e4149=>_0x1e4149['id']===_0x21c53d[_0x28b746(0x187)]['id']);if(_0xabc68d){const _0x39275e=_0xabc68d[_0x28b746(0x1a0)][_0x28b746(0x1a2)],_0x4df739=_0xabc68d[_0x28b746(0x1a0)]['sheet']['id'];setTimeout(()=>{var _0x3d5bab=_0x28b746;this[_0x3d5bab(0x14a)][_0x3d5bab(0x195)](_0x21c53d['SetWorksheetActiveOperation']['id'],{'unitId':_0x39275e,'subUnitId':_0x4df739},{'fromCollab':!0x0});});}}}[_0x8cbab7(0x140)](){var _0x357429=_0x8cbab7;this[_0x357429(0x1a8)][_0x357429(0x1c6)](_0x357429(0x197));const _0x40884f=new Map(),_0x2d5611=this['_commandDisposable']=new _0x6fbf19[(_0x357429(0x15f))]();_0x2d5611[_0x357429(0x137)](_0x6fbf19[_0x357429(0x1a9)](()=>{var _0x282455=_0x357429;_0x40884f[_0x282455(0x1f1)](_0x362e96=>_0x362e96['complete']()),_0x40884f[_0x282455(0x19f)]();})),_0x2d5611[_0x357429(0x137)](this[_0x357429(0x14a)]['onCommandExecuted'](_0x3a9239=>{var _0x1aaf6c=_0x357429,_0x58681c;if(_0x3a9239[_0x1aaf6c(0x1b7)]!==_0x6fbf19[_0x1aaf6c(0x139)][_0x1aaf6c(0x1bd)]||!this[_0x1aaf6c(0x12a)][_0x1aaf6c(0x1c1)](_0x3a9239['id']))return;const {id:_0x5f513c}=_0x3a9239;let _0x13e495;_0x40884f[_0x1aaf6c(0x10d)](_0x5f513c)?_0x13e495=_0x40884f[_0x1aaf6c(0x115)](_0x5f513c):(_0x13e495=new _0x2e9a4[(_0x1aaf6c(0x126))](),_0x40884f[_0x1aaf6c(0x135)](_0x5f513c,_0x13e495),_0x13e495[_0x1aaf6c(0x12e)](_0xd12273[_0x1aaf6c(0x172)]((_0x58681c=this[_0x1aaf6c(0x1d6)][_0x1aaf6c(0x1c0)](_0x58dad8))!=null?_0x58681c:_0xe99e49,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x1ed76d=>{var _0x4546a2=_0x1aaf6c;this['_collabSession'][_0x4546a2(0x16f)]({'eventID':_0x3c0848[_0x4546a2(0x12c)][_0x4546a2(0x12d)],'data':{'unitID':this[_0x4546a2(0x1db)],'operations':{[_0x1ed76d['id']]:{'id':_0x1ed76d['id'],'params':JSON[_0x4546a2(0x163)](_0x1ed76d[_0x4546a2(0x1a0)])}}}},this[_0x4546a2(0x1db)]);})),_0x13e495['next'](_0x3a9239);})),this[_0x357429(0x12a)][_0x357429(0x149)](this[_0x357429(0x1db)])['forEach'](_0x11122e=>this[_0x357429(0x122)][_0x357429(0x16f)]({'eventID':_0x3c0848[_0x357429(0x12c)][_0x357429(0x12d)],'data':{'unitID':this['_unitID'],'operations':{[_0x11122e['id']]:{'id':_0x11122e['id'],'params':JSON[_0x357429(0x163)](_0x11122e[_0x357429(0x1a0)])}}}},this[_0x357429(0x1db)]));}[_0x8cbab7(0x180)](){var _0x3805b2=_0x8cbab7,_0x3b7e77;this[_0x3805b2(0x1a8)][_0x3805b2(0x1c6)](_0x3805b2(0x174)),(_0x3b7e77=this[_0x3805b2(0x19b)])==null||_0x3b7e77[_0x3805b2(0x1da)](),this[_0x3805b2(0x19b)]=null;}[_0x8cbab7(0x181)](){var _0x14f0b6=_0x8cbab7,_0x4356bb;(_0x4356bb=this[_0x14f0b6(0x19b)])==null||_0x4356bb[_0x14f0b6(0x1da)](),this['_status$']['next'](_0x14f0b6(0x10c));}[_0x8cbab7(0x1ad)](){var _0x3e82c3=_0x8cbab7,_0x50c9f9;this[_0x3e82c3(0x1a8)][_0x3e82c3(0x1c6)]('idle'),(_0x50c9f9=this['_commandDisposable'])==null||_0x50c9f9[_0x3e82c3(0x1da)](),this[_0x3e82c3(0x19b)]=null;}[_0x8cbab7(0x1a5)](){var _0x73d177=_0x8cbab7,_0x208b37;this[_0x73d177(0x1a8)][_0x73d177(0x1c6)](_0x73d177(0x10b)),(_0x208b37=this[_0x73d177(0x19b)])==null||_0x208b37['dispose']();}[_0x8cbab7(0x14f)](_0x4afb35){var _0x19e418=_0x8cbab7;if([_0x19e418(0x197),'not-following',_0x19e418(0x1c5)][_0x19e418(0x154)](this[_0x19e418(0x173)])||!_0x4afb35[_0x19e418(0x109)]['presenter']||_0x4afb35['data'][_0x19e418(0x16d)]===this[_0x19e418(0x122)][_0x19e418(0x1f4)]())return;this[_0x19e418(0x173)]===_0x19e418(0x174)&&this[_0x19e418(0x181)]();const _0x56a51e=_0x4afb35[_0x19e418(0x109)][_0x19e418(0x14b)];Object[_0x19e418(0x125)](_0x56a51e)[_0x19e418(0x1f1)](_0x47f2f2=>{var _0x531c7f=_0x19e418;this[_0x531c7f(0x14a)][_0x531c7f(0x195)](_0x47f2f2['id'],_0x47f2f2[_0x531c7f(0x1a0)]?JSON[_0x531c7f(0x170)](_0x47f2f2['params']):null,{'fromCollab':!0x0});});}[_0x8cbab7(0x1e6)](){var _0x3510bd=_0x8cbab7,_0x10de93;this[_0x3510bd(0x1a8)][_0x3510bd(0x1c6)](_0x3510bd(0x1c5)),(_0x10de93=this[_0x3510bd(0x19b)])==null||_0x10de93[_0x3510bd(0x1da)]();}[_0x8cbab7(0x1dd)](){var _0x57dae5=_0x8cbab7;this[_0x57dae5(0x1a8)][_0x57dae5(0x1c6)](_0x57dae5(0x174)),this[_0x57dae5(0x1ab)]();}},_0x2a3b99[_0x8cbab7(0x189)]=_0x5a41fd([_0x43bcc3(0x2,_0x6fbf19[_0x8cbab7(0x1fb)]),_0x43bcc3(0x3,_0x6fbf19[_0x8cbab7(0x1cb)](_0x42c9b5)),_0x43bcc3(0x4,_0x6fbf19[_0x8cbab7(0x1ef)])],_0x2a3b99[_0x8cbab7(0x189)]);function _0x293d4c(){var _0x6edf14=_0x8cbab7;const _0xc62d42=_0x35edf1['useDependency'](_0x2a3b99[_0x6edf14(0x1e4)]),_0x186f40=_0x35edf1['useDependency'](_0x6fbf19[_0x6edf14(0x1f7)]),_0x4853c3=_0x35edf1['useObservable'](()=>_0x186f40[_0x6edf14(0x130)](_0x6fbf19[_0x6edf14(0x1aa)][_0x6edf14(0x18e)]),void 0x0,!0x1,[]),[_0x2bfe3f,_0x1204be]=_0x6e62c0[_0x6edf14(0x13b)](null),[_0xc06390,_0x58a109]=_0x6e62c0['useState'](_0xc98a21[_0x6edf14(0x111)]),_0x175848=_0x6e62c0[_0x6edf14(0x1a7)](null);return _0x6e62c0[_0x6edf14(0x1fa)](()=>(_0x4853c3&&_0xc62d42[_0x6edf14(0x1bc)](_0x4853c3[_0x6edf14(0x169)]())['then'](_0x297294=>{_0x1204be(_0x297294),_0x175848['current']=_0x297294['status$']['subscribe'](_0x390c9f=>{_0x58a109(_0x390c9f);});}),()=>{var _0x27aba3=_0x6edf14,_0x26ce2b;(_0x26ce2b=_0x175848['current'])==null||_0x26ce2b[_0x27aba3(0x15a)](),_0x175848[_0x27aba3(0x1cf)]=null;}),[_0x4853c3,_0xc62d42]),_0x2bfe3f?_0x4f88dd[_0x6edf14(0x1d2)](_0x51ebe9[_0x6edf14(0x16b)],{'align':_0x6edf14(0x1d4),'disabled':_0xc06390===_0xc98a21[_0x6edf14(0x1c4)],'className':_0x6edf14(0x1e2),'overlay':_0x4f88dd['jsx'](_0x1c2007,{'status':_0xc06390,'coordinator':_0x2bfe3f}),'children':_0x4f88dd[_0x6edf14(0x1d2)](_0x6edf14(0x1bf),{'className':_0x51ebe9[_0x6edf14(0x1d3)](_0x6edf14(0x141),{'univer-cursor-not-allowed':_0xc06390===_0xc98a21[_0x6edf14(0x1c4)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0xc06390!==_0xc98a21[_0x6edf14(0x1c4)]}),'type':_0x6edf14(0x1bf),'children':_0x4f88dd[_0x6edf14(0x1d2)](_0x426b84,{'className':'univer-size-4'})})}):null;}function _0x1c2007(_0x347738){var _0x299df7=_0x8cbab7;const {status:_0x26f5f1,coordinator:_0x4f7229}=_0x347738;switch(_0x26f5f1){case _0xc98a21['IDLE']:return _0x4f88dd['jsx'](_0x4cc56b,{'coordinator':_0x4f7229});case _0xc98a21[_0x299df7(0x1e3)]:return _0x4f88dd[_0x299df7(0x1d2)](_0x1bc565,{'coordinator':_0x4f7229});case _0xc98a21['NOT_FOLLOWING']:return _0x4f88dd[_0x299df7(0x1d2)](_0x2c5824,{'coordinator':_0x4f7229});case _0xc98a21[_0x299df7(0x1c4)]:return _0x4f88dd[_0x299df7(0x1d2)](_0x457f79,{});case _0xc98a21[_0x299df7(0x153)]:return _0x4f88dd[_0x299df7(0x1d2)](_0x5bf013,{'coordinator':_0x4f7229});default:return null;}}function _0x4cc56b(_0x4668c1){var _0xf175e2=_0x8cbab7;const {coordinator:_0x2affa9}=_0x4668c1;return _0x4f88dd[_0xf175e2(0x1d9)](_0x4f88dd[_0xf175e2(0x1bb)],{'children':[_0x4f88dd[_0xf175e2(0x1d2)](_0xf175e2(0x12f),{'className':_0xf175e2(0x1c2),'children':_0xf175e2(0x132)}),_0x4f88dd[_0xf175e2(0x1d2)](_0x51ebe9[_0xf175e2(0x128)],{'onClick':()=>_0x2affa9[_0xf175e2(0x138)](),'children':_0xf175e2(0x183)})]});}function _0x1bc565(_0x2c74ae){var _0x475626=_0x8cbab7;const {coordinator:_0x5e2a9c}=_0x2c74ae;return _0x4f88dd[_0x475626(0x1d9)](_0x4f88dd[_0x475626(0x1bb)],{'children':[_0x4f88dd[_0x475626(0x1d2)](_0x475626(0x12f),{'className':_0x475626(0x1c2),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x4f88dd[_0x475626(0x1d2)](_0x51ebe9['Button'],{'onClick':()=>_0x5e2a9c[_0x475626(0x179)](),'children':'Stop\x20following'})]});}function _0x2c5824(_0xe2dad){var _0x48a231=_0x8cbab7;const {coordinator:_0x20916c}=_0xe2dad;return _0x4f88dd[_0x48a231(0x1d9)](_0x4f88dd[_0x48a231(0x1bb)],{'children':[_0x4f88dd['jsx'](_0x48a231(0x12f),{'className':_0x48a231(0x1c2),'children':_0x48a231(0x1f3)}),_0x4f88dd[_0x48a231(0x1d2)](_0x51ebe9[_0x48a231(0x128)],{'variant':_0x48a231(0x11c),'onClick':()=>_0x20916c[_0x48a231(0x168)](),'children':'Start\x20following'})]});}function _0x5bf013(_0xd0a2c4){var _0x50585f=_0x8cbab7;const {coordinator:_0x24e730}=_0xd0a2c4;return _0x4f88dd[_0x50585f(0x1d9)](_0x4f88dd[_0x50585f(0x1bb)],{'children':[_0x4f88dd[_0x50585f(0x1d2)](_0x50585f(0x12f),{'className':_0x50585f(0x1c2),'children':_0x50585f(0x13f)}),_0x4f88dd[_0x50585f(0x1d2)](_0x51ebe9['Button'],{'variant':_0x50585f(0x1c7),'onClick':()=>_0x24e730['stopPresenting'](),'children':_0x50585f(0x184)})]});}function _0x457f79(){var _0x90b262=_0x8cbab7;return _0x4f88dd[_0x90b262(0x1d2)](_0x4f88dd['Fragment'],{'children':_0x90b262(0x159)});}var _0xbe0f2c=Object['getOwnPropertyDescriptor'],_0x538f8f=(_0x161f6c,_0x320a0a,_0x39276b,_0x53430c)=>{var _0x4daac3=_0x8cbab7;for(var _0xce3376=_0x53430c>0x1?void 0x0:_0x53430c?_0xbe0f2c(_0x320a0a,_0x39276b):_0x320a0a,_0x38934e=_0x161f6c[_0x4daac3(0x186)]-0x1,_0x336865;_0x38934e>=0x0;_0x38934e--)(_0x336865=_0x161f6c[_0x38934e])&&(_0xce3376=_0x336865(_0xce3376)||_0xce3376);return _0xce3376;},_0x1fac57=(_0x4f60f5,_0x51dbf5)=>(_0x19bc1f,_0xfb3d6d)=>_0x51dbf5(_0x19bc1f,_0xfb3d6d,_0x4f60f5);_0x2a3b99[_0x8cbab7(0x127)]=class extends _0x6fbf19[_0x8cbab7(0x1de)]{constructor(_0x22e80d,_0x5c9796){var _0x2a46bf=_0x8cbab7;super(),this[_0x2a46bf(0x165)]=_0x22e80d,this[_0x2a46bf(0x11e)]=_0x5c9796,this[_0x2a46bf(0x112)]();}[_0x8cbab7(0x112)](){var _0x22f241=_0x8cbab7;this['disposeWithMe'](this[_0x22f241(0x11e)][_0x22f241(0x1c9)](_0x35edf1['BuiltInUIPart']['HEADER_MENU'],()=>_0x35edf1['connectInjector'](_0x293d4c,this[_0x22f241(0x165)])));}},_0x2a3b99[_0x8cbab7(0x127)]=_0x538f8f([_0x1fac57(0x0,_0x6fbf19[_0x8cbab7(0x1cb)](_0x6fbf19['Injector'])),_0x1fac57(0x1,_0x35edf1[_0x8cbab7(0x1dc)])],_0x2a3b99[_0x8cbab7(0x127)]);var _0xb66fbe=Object[_0x8cbab7(0x157)],_0x3fcf9f=Object[_0x8cbab7(0x1be)],_0x3f2f82=(_0x15dcca,_0xb01a05,_0x1b505f)=>_0xb01a05 in _0x15dcca?_0xb66fbe(_0x15dcca,_0xb01a05,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1b505f}):_0x15dcca[_0xb01a05]=_0x1b505f,_0x139afe=(_0x52bb5f,_0x26787e,_0x39bde2,_0x18488b)=>{var _0x4dc4dc=_0x8cbab7;for(var _0x1164b4=_0x18488b>0x1?void 0x0:_0x18488b?_0x3fcf9f(_0x26787e,_0x39bde2):_0x26787e,_0x4df89e=_0x52bb5f[_0x4dc4dc(0x186)]-0x1,_0x2c9ef9;_0x4df89e>=0x0;_0x4df89e--)(_0x2c9ef9=_0x52bb5f[_0x4df89e])&&(_0x1164b4=_0x2c9ef9(_0x1164b4)||_0x1164b4);return _0x1164b4;},_0x303f03=(_0x6a6ffb,_0x3fdc10)=>(_0x29a66d,_0xf9c8f8)=>_0x3fdc10(_0x29a66d,_0xf9c8f8,_0x6a6ffb),_0x1a85d1=(_0x5d36d4,_0x2f3022,_0x1fc042)=>_0x3f2f82(_0x5d36d4,typeof _0x2f3022!=_0x8cbab7(0x16c)?_0x2f3022+'':_0x2f3022,_0x1fc042);const _0x439d56=_0x8cbab7(0x1ee);_0x2a3b99[_0x8cbab7(0x117)]=class extends _0x6fbf19[_0x8cbab7(0x191)]{constructor(_0x57d262=_0x212de5,_0x46c57a,_0x11e9e9){var _0xf77823=_0x8cbab7;super(),this[_0xf77823(0x110)]=_0x57d262,this['_injector']=_0x46c57a,this[_0xf77823(0x1d6)]=_0x11e9e9;const {..._0x357662}=_0x6fbf19['merge']({},_0x212de5,this[_0xf77823(0x110)]);this[_0xf77823(0x1d6)][_0xf77823(0x192)](_0x3863b5,_0x357662);}[_0x8cbab7(0x1ea)](){var _0x1f8d0c=_0x8cbab7;_0x6fbf19[_0x1f8d0c(0x1a3)](this[_0x1f8d0c(0x165)],_0x6fbf19['mergeOverrideWithDependencies']([[_0x42c9b5],[_0x2a3b99[_0x1f8d0c(0x1e4)]],[_0x175749],[_0x2a3b99['DesktopLiveShareController']]],this[_0x1f8d0c(0x110)][_0x1f8d0c(0x142)])),_0x6fbf19[_0x1f8d0c(0x124)](this[_0x1f8d0c(0x165)],[[_0x175749]]);}[_0x8cbab7(0x13a)](){var _0x34f8b1=_0x8cbab7;_0x6fbf19[_0x34f8b1(0x124)](this[_0x34f8b1(0x165)],[[_0x2a3b99[_0x34f8b1(0x127)]]]);}},_0x1a85d1(_0x2a3b99[_0x8cbab7(0x117)],_0x8cbab7(0x1b7),_0x6fbf19[_0x8cbab7(0x1aa)][_0x8cbab7(0x113)]),_0x1a85d1(_0x2a3b99[_0x8cbab7(0x117)],_0x8cbab7(0x148),_0x439d56),_0x2a3b99[_0x8cbab7(0x117)]=_0x139afe([_0x6fbf19[_0x8cbab7(0x1f9)](_0x149759[_0x8cbab7(0x1d1)]),_0x303f03(0x1,_0x6fbf19[_0x8cbab7(0x1cb)](_0x6fbf19[_0x8cbab7(0x16a)])),_0x303f03(0x2,_0x6fbf19[_0x8cbab7(0x1fb)])],_0x2a3b99['UniverLiveSharePlugin']),_0x2a3b99[_0x8cbab7(0x175)]=_0x293d4c,_0x2a3b99[_0x8cbab7(0x143)]=_0x42c9b5,_0x2a3b99[_0x8cbab7(0x1b9)]=_0xc98a21,Object[_0x8cbab7(0x157)](_0x2a3b99,Symbol[_0x8cbab7(0x1b6)],{'value':_0x8cbab7(0x10e)});}));
1
+ function _0x115c(_0x2c432e,_0x3c1003){var _0x1c35cb=_0x1c35();return _0x115c=function(_0x115ca6,_0x3e0330){_0x115ca6=_0x115ca6-0x89;var _0x3f6de6=_0x1c35cb[_0x115ca6];return _0x3f6de6;},_0x115c(_0x2c432e,_0x3c1003);}(function(_0x38a848,_0x25cb1a){var _0x3ad520=_0x115c,_0x360f24=_0x38a848();while(!![]){try{var _0x5a5c66=-parseInt(_0x3ad520(0xf2))/0x1+parseInt(_0x3ad520(0xfd))/0x2*(parseInt(_0x3ad520(0x15f))/0x3)+-parseInt(_0x3ad520(0xa0))/0x4*(-parseInt(_0x3ad520(0x141))/0x5)+-parseInt(_0x3ad520(0x137))/0x6+parseInt(_0x3ad520(0xf6))/0x7*(-parseInt(_0x3ad520(0xba))/0x8)+-parseInt(_0x3ad520(0x109))/0x9*(-parseInt(_0x3ad520(0x8d))/0xa)+-parseInt(_0x3ad520(0x181))/0xb*(parseInt(_0x3ad520(0xea))/0xc);if(_0x5a5c66===_0x25cb1a)break;else _0x360f24['push'](_0x360f24['shift']());}catch(_0x218677){_0x360f24['push'](_0x360f24['shift']());}}}(_0x1c35,0x2cb9e),function(_0x56c7e8,_0x43dc6c){var _0x496d60=_0x115c;typeof exports==_0x496d60(0xa4)&&typeof module<'u'?_0x43dc6c(exports,require('@univerjs-pro/collaboration-client'),require(_0x496d60(0x10e)),require('@univerjs/sheets'),require('@univerjs/sheets-ui'),require('@univerjs/ui'),require(_0x496d60(0x10d)),require(_0x496d60(0x103)),require(_0x496d60(0x9b)),require('@univerjs-pro/collaboration'),require(_0x496d60(0x104)),require('rxjs/operators')):typeof define==_0x496d60(0x118)&&define[_0x496d60(0x16e)]?define(['exports',_0x496d60(0xa2),_0x496d60(0x10e),_0x496d60(0x17a),'@univerjs/sheets-ui',_0x496d60(0xe4),_0x496d60(0x10d),_0x496d60(0x103),'react',_0x496d60(0x99),_0x496d60(0x104),_0x496d60(0x15d)],_0x43dc6c):(_0x56c7e8=typeof globalThis<'u'?globalThis:_0x56c7e8||self,_0x43dc6c(_0x56c7e8[_0x496d60(0xd4)]={},_0x56c7e8['UniverProCollaborationClient'],_0x56c7e8[_0x496d60(0x136)],_0x56c7e8[_0x496d60(0xce)],_0x56c7e8[_0x496d60(0xe2)],_0x56c7e8[_0x496d60(0x14e)],_0x56c7e8[_0x496d60(0xcf)],_0x56c7e8[_0x496d60(0x184)],_0x56c7e8[_0x496d60(0xcf)],_0x56c7e8['UniverProCollaboration'],_0x56c7e8['rxjs'],_0x56c7e8[_0x496d60(0x104)][_0x496d60(0xf1)]));}(this,function(_0x1ce817,_0x1d09ee,_0x3de664,_0xfb8100,_0x5d896e,_0x5b02c5,_0x183b5d,_0x318939,_0x200ed7,_0x2ffff0,_0x268533,_0x11e3ef){'use strict';var _0x1536fe=_0x115c;var _0x3b037f=Object[_0x1536fe(0x173)],_0x463b46=(_0x41b07d,_0x4e9baa,_0xa4327d)=>_0x4e9baa in _0x41b07d?_0x3b037f(_0x41b07d,_0x4e9baa,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xa4327d}):_0x41b07d[_0x4e9baa]=_0xa4327d,_0x2b7a21=(_0x522911,_0x376002,_0x1d0e1a)=>_0x463b46(_0x522911,typeof _0x376002!=_0x1536fe(0xbe)?_0x376002+'':_0x376002,_0x1d0e1a);const _0x4f9b65=_0x1536fe(0x171),_0x2b0129={};class _0x1d2d40 extends _0x3de664[_0x1536fe(0x8c)]{constructor(){var _0x13a7f8=_0x1536fe;super(...arguments),_0x2b7a21(this,_0x13a7f8(0xaa),new Set()),_0x2b7a21(this,_0x13a7f8(0x9d),new Set());}[_0x1536fe(0x15c)](_0x27730a){var _0x484b7e=_0x1536fe;return this[_0x484b7e(0xaa)][_0x484b7e(0x169)](_0x27730a),_0x3de664[_0x484b7e(0x168)](()=>this[_0x484b7e(0xaa)]['delete'](_0x27730a));}[_0x1536fe(0x159)](_0x9884c2){var _0x141c9e=_0x1536fe;return this[_0x141c9e(0x9d)][_0x141c9e(0x169)](_0x9884c2),_0x3de664[_0x141c9e(0x168)](()=>this[_0x141c9e(0x9d)][_0x141c9e(0xf3)](_0x9884c2));}[_0x1536fe(0xac)](_0x40d068){var _0x1ea36b=_0x1536fe;return this[_0x1ea36b(0xaa)][_0x1ea36b(0x129)](_0x40d068);}[_0x1536fe(0xca)](_0x26d43b){var _0x226727=_0x1536fe;return Array[_0x226727(0xe7)](this['_reporters'])[_0x226727(0x11f)](_0x33778d=>_0x33778d(_0x26d43b));}}var _0x163b45=Object[_0x1536fe(0x16c)],_0x401832=(_0x4de95f,_0xa30696,_0x27eb01,_0xbd55cd)=>{var _0x1cb570=_0x1536fe;for(var _0x56d6a9=_0xbd55cd>0x1?void 0x0:_0xbd55cd?_0x163b45(_0xa30696,_0x27eb01):_0xa30696,_0xe498a6=_0x4de95f[_0x1cb570(0x153)]-0x1,_0x12466c;_0xe498a6>=0x0;_0xe498a6--)(_0x12466c=_0x4de95f[_0xe498a6])&&(_0x56d6a9=_0x12466c(_0x56d6a9)||_0x56d6a9);return _0x56d6a9;},_0x4f9fcb=(_0x253cb0,_0x4b4a28)=>(_0x3e801e,_0xd0da96)=>_0x4b4a28(_0x3e801e,_0xd0da96,_0x253cb0);let _0x20c99b=class extends _0x3de664[_0x1536fe(0x8c)]{constructor(_0x24633e){var _0xdb877b=_0x1536fe;super(),this['_liveShareService']=_0x24633e,this[_0xdb877b(0x128)]();}[_0x1536fe(0x128)](){var _0x3c4b1d=_0x1536fe;[_0x5d896e['SetZoomRatioOperation']['id'],_0x5d896e['SetScrollOperation']['id'],_0xfb8100['SetWorksheetActiveOperation']['id']][_0x3c4b1d(0x16d)](_0x202da4=>{var _0x4805d0=_0x3c4b1d;this[_0x4805d0(0x13a)](this['_liveShareService']['registerSharedOperation'](_0x202da4));});}};_0x20c99b=_0x401832([_0x4f9fcb(0x0,_0x3de664[_0x1536fe(0xcd)](_0x1d2d40))],_0x20c99b);var _0x32d03b=function(){var _0x376b35=_0x1536fe;return _0x32d03b=Object[_0x376b35(0x125)]||function(_0x47e012){var _0x3bfe82=_0x376b35;for(var _0x50d097,_0x265948=0x1,_0x448d04=arguments[_0x3bfe82(0x153)];_0x265948<_0x448d04;_0x265948++){_0x50d097=arguments[_0x265948];for(var _0xe42007 in _0x50d097)Object[_0x3bfe82(0x16f)]['hasOwnProperty'][_0x3bfe82(0x93)](_0x50d097,_0xe42007)&&(_0x47e012[_0xe42007]=_0x50d097[_0xe42007]);}return _0x47e012;},_0x32d03b[_0x376b35(0xb5)](this,arguments);},_0x26fab7=function(_0x41a098,_0x36a043){var _0x19c6e6=_0x1536fe,_0x1673ed={};for(var _0x61397d in _0x41a098)Object[_0x19c6e6(0x16f)][_0x19c6e6(0x152)][_0x19c6e6(0x93)](_0x41a098,_0x61397d)&&_0x36a043[_0x19c6e6(0x11d)](_0x61397d)<0x0&&(_0x1673ed[_0x61397d]=_0x41a098[_0x61397d]);if(_0x41a098!=null&&typeof Object[_0x19c6e6(0x132)]==_0x19c6e6(0x118)){for(var _0x32a41d=0x0,_0x61397d=Object[_0x19c6e6(0x132)](_0x41a098);_0x32a41d<_0x61397d[_0x19c6e6(0x153)];_0x32a41d++)_0x36a043[_0x19c6e6(0x11d)](_0x61397d[_0x32a41d])<0x0&&Object[_0x19c6e6(0x16f)]['propertyIsEnumerable'][_0x19c6e6(0x93)](_0x41a098,_0x61397d[_0x32a41d])&&(_0x1673ed[_0x61397d[_0x32a41d]]=_0x41a098[_0x61397d[_0x32a41d]]);}return _0x1673ed;},_0x5f1372=_0x200ed7['forwardRef'](function(_0x5f532d,_0xee10dd){var _0x263c5a=_0x1536fe,_0x552122=_0x5f532d[_0x263c5a(0xfa)],_0x1984fc=_0x5f532d['id'],_0x372989=_0x5f532d[_0x263c5a(0x95)],_0x5ac199=_0x5f532d[_0x263c5a(0xb3)],_0x2077d6=_0x26fab7(_0x5f532d,[_0x263c5a(0xfa),'id','className',_0x263c5a(0xb3)]),_0x4d71cc=_0x263c5a(0x91)[_0x263c5a(0xd3)](_0x1984fc,'\x20')[_0x263c5a(0xd3)](_0x372989||'')['trim'](),_0x37da63=_0x200ed7[_0x263c5a(0xf4)]('_'[_0x263c5a(0xd3)](_0x455533()));return _0x32f3d6(_0x552122,''[_0x263c5a(0xd3)](_0x1984fc),{'defIds':_0x552122[_0x263c5a(0xfc)],'idSuffix':_0x37da63[_0x263c5a(0x17c)]},_0x32d03b({'ref':_0xee10dd,'className':_0x4d71cc},_0x2077d6),_0x5ac199);});function _0x32f3d6(_0x1af3ff,_0x8a180d,_0x1541dc,_0x8f869e,_0x283a8d){var _0x57e831=_0x1536fe;return _0x200ed7['createElement'](_0x1af3ff['tag'],_0x32d03b(_0x32d03b({'key':_0x8a180d},_0x42d16a(_0x1af3ff,_0x1541dc,_0x283a8d)),_0x8f869e),(_0x874880(_0x1af3ff,_0x1541dc)[_0x57e831(0xc1)]||[])[_0x57e831(0x11f)](function(_0x359836,_0x1fe223){var _0xf08413=_0x57e831;return _0x32f3d6(_0x359836,''[_0xf08413(0xd3)](_0x8a180d,'-')[_0xf08413(0xd3)](_0x1af3ff[_0xf08413(0x9f)],'-')['concat'](_0x1fe223),_0x1541dc,void 0x0,_0x283a8d);}));}function _0x42d16a(_0x5c4f22,_0x171084,_0xbfc8a9){var _0x460d5e=_0x1536fe,_0x5722fd=_0x32d03b({},_0x5c4f22[_0x460d5e(0xc0)]);_0xbfc8a9!=null&&_0xbfc8a9[_0x460d5e(0x183)]&&_0x5722fd[_0x460d5e(0xf5)]===_0x460d5e(0x183)&&(_0x5722fd['fill']=_0xbfc8a9['colorChannel1']),_0x5c4f22[_0x460d5e(0x9f)]===_0x460d5e(0x149)&&_0x5722fd['id']&&(_0x5722fd['id']=_0x5722fd['id']+_0x171084[_0x460d5e(0xef)]),Object[_0x460d5e(0x13e)](_0x5722fd)['forEach'](function(_0x3b007f){var _0x1aecbb=_0x460d5e,_0x4f2583=_0x3b007f[0x0],_0x38bbdf=_0x3b007f[0x1];_0x4f2583==='mask'&&typeof _0x38bbdf==_0x1aecbb(0xa9)&&(_0x5722fd[_0x4f2583]=_0x38bbdf[_0x1aecbb(0xb6)](/url\(#(.*)\)/,_0x1aecbb(0x92)[_0x1aecbb(0xd3)](_0x171084[_0x1aecbb(0xef)],')')));});var _0xf118d=_0x171084['defIds'];return!_0xf118d||_0xf118d[_0x460d5e(0x153)]===0x0||(_0x5c4f22[_0x460d5e(0x9f)]==='use'&&_0x5722fd[_0x460d5e(0x131)]&&(_0x5722fd['xlink:href']=_0x5722fd[_0x460d5e(0x131)]+_0x171084[_0x460d5e(0xef)]),Object[_0x460d5e(0x13e)](_0x5722fd)[_0x460d5e(0x16d)](function(_0x375da8){var _0x4a6828=_0x460d5e,_0x289919=_0x375da8[0x0],_0x2d0ae6=_0x375da8[0x1];typeof _0x2d0ae6==_0x4a6828(0xa9)&&(_0x5722fd[_0x289919]=_0x2d0ae6['replace'](/url\(#(.*)\)/,'url(#$1'[_0x4a6828(0xd3)](_0x171084['idSuffix'],')')));})),_0x5722fd;}function _0x874880(_0x1ee1d2,_0x32e54a){var _0x16e27b=_0x1536fe,_0xf3702a,_0x255966=_0x32e54a['defIds'];return!_0x255966||_0x255966['length']===0x0?_0x1ee1d2:_0x1ee1d2[_0x16e27b(0x9f)]==='defs'&&(!((_0xf3702a=_0x1ee1d2[_0x16e27b(0xc1)])===null||_0xf3702a===void 0x0)&&_0xf3702a[_0x16e27b(0x153)])?_0x32d03b(_0x32d03b({},_0x1ee1d2),{'children':_0x1ee1d2[_0x16e27b(0xc1)]['map'](function(_0x164195){var _0x40b5e8=_0x16e27b;return typeof _0x164195['attrs']['id']=='string'&&_0x255966&&_0x255966[_0x40b5e8(0xee)](_0x164195[_0x40b5e8(0xc0)]['id'])?_0x32d03b(_0x32d03b({},_0x164195),{'attrs':_0x32d03b(_0x32d03b({},_0x164195[_0x40b5e8(0xc0)]),{'id':_0x164195[_0x40b5e8(0xc0)]['id']+_0x32e54a['idSuffix']})}):_0x164195;})}):_0x1ee1d2;}function _0x455533(){var _0x1b4602=_0x1536fe;return Math['random']()[_0x1b4602(0xcb)](0x24)['substring'](0x2,0x8);}_0x5f1372[_0x1536fe(0x119)]=_0x1536fe(0xe0);var _0xcb4864={'tag':_0x1536fe(0xff),'attrs':{'xmlns':_0x1536fe(0xab),'fill':_0x1536fe(0x166),'viewBox':_0x1536fe(0xbc),'width':_0x1536fe(0x175),'height':_0x1536fe(0x175)},'children':[{'tag':_0x1536fe(0x10c),'attrs':{'fill':_0x1536fe(0xd0),'d':_0x1536fe(0x120)}},{'tag':_0x1536fe(0x10c),'attrs':{'fill':_0x1536fe(0xd0),'d':_0x1536fe(0x98),'fillRule':_0x1536fe(0xe5),'clipRule':_0x1536fe(0xe5)}}]},_0x145c04=_0x200ed7[_0x1536fe(0xfe)](function(_0x164e8b,_0x4ff0c0){var _0x3282fa=_0x1536fe;return _0x200ed7[_0x3282fa(0x15e)](_0x5f1372,Object[_0x3282fa(0x125)]({},_0x164e8b,{'id':_0x3282fa(0x160),'ref':_0x4ff0c0,'icon':_0xcb4864}));});_0x145c04[_0x1536fe(0x119)]='LiveShareIcon';var _0x57df12=Object['getOwnPropertyDescriptor'],_0xc444b9=(_0x2c9900,_0x475495,_0x14f53a,_0x358e8f)=>{var _0x4a6f93=_0x1536fe;for(var _0x27bedd=_0x358e8f>0x1?void 0x0:_0x358e8f?_0x57df12(_0x475495,_0x14f53a):_0x475495,_0x471114=_0x2c9900[_0x4a6f93(0x153)]-0x1,_0xe33edc;_0x471114>=0x0;_0x471114--)(_0xe33edc=_0x2c9900[_0x471114])&&(_0x27bedd=_0xe33edc(_0x27bedd)||_0x27bedd);return _0x27bedd;},_0xc68594=(_0x491ff1,_0x435319)=>(_0x15899f,_0x2ab757)=>_0x435319(_0x15899f,_0x2ab757,_0x491ff1);_0x1ce817[_0x1536fe(0xdd)]=class extends _0x3de664[_0x1536fe(0xad)]{constructor(_0x3a6f0c,_0x566bce,_0x1f7db8){var _0x37c5ab=_0x1536fe;super(),_0x2b7a21(this,_0x37c5ab(0x139),new Map()),(this[_0x37c5ab(0x163)]=_0x3a6f0c,this[_0x37c5ab(0x8b)]=_0x566bce,this[_0x37c5ab(0x123)]=_0x1f7db8,this[_0x37c5ab(0x128)]());}async['getLiveShareCoordinator'](_0x28bbca){var _0x2cbc2f=_0x1536fe;return this[_0x2cbc2f(0x139)][_0x2cbc2f(0x129)](_0x28bbca)||await this[_0x2cbc2f(0x144)](_0x28bbca),this[_0x2cbc2f(0x139)][_0x2cbc2f(0xd5)](_0x28bbca);}[_0x1536fe(0x128)](){var _0x50599f=_0x1536fe;this[_0x50599f(0x163)][_0x50599f(0xd1)](_0x3de664['UniverInstanceType'][_0x50599f(0xd9)])[_0x50599f(0x178)](_0x11e3ef[_0x50599f(0x13c)](this[_0x50599f(0x138)]))[_0x50599f(0x12b)](async _0x5b991a=>{var _0x15a966=_0x50599f;const _0x1a3fbf=_0x5b991a[_0x15a966(0xb2)]();this[_0x15a966(0x139)]['has'](_0x1a3fbf)||this[_0x15a966(0x144)](_0x1a3fbf);}),this[_0x50599f(0x163)][_0x50599f(0xc4)](_0x3de664[_0x50599f(0xe8)][_0x50599f(0xd9)])[_0x50599f(0x178)](_0x11e3ef['takeUntil'](this[_0x50599f(0x138)]))[_0x50599f(0x12b)](_0x12ef56=>{var _0x39ac3a=_0x50599f;const _0xda4a2e=_0x12ef56[_0x39ac3a(0xb2)](),_0x200505=this[_0x39ac3a(0x139)]['get'](_0xda4a2e);_0x200505==null||_0x200505[_0x39ac3a(0x174)]();});}async[_0x1536fe(0x144)](_0x19c3f0){var _0x2c0f9f=_0x1536fe;const _0x5b96ca=await this['_collabSessionService'][_0x2c0f9f(0xc3)](_0x19c3f0),_0x30a5e6=this[_0x2c0f9f(0x8b)][_0x2c0f9f(0xa7)](_0x1ce817['LiveShareCoordinator'],_0x19c3f0,_0x5b96ca);return _0x30a5e6[_0x2c0f9f(0x15b)](),this['_entities'][_0x2c0f9f(0xc9)](_0x19c3f0,_0x30a5e6),_0x30a5e6;}},_0x1ce817[_0x1536fe(0xdd)]=_0xc444b9([_0xc68594(0x0,_0x3de664[_0x1536fe(0x167)]),_0xc68594(0x1,_0x3de664[_0x1536fe(0xcd)](_0x3de664[_0x1536fe(0x177)])),_0xc68594(0x2,_0x3de664[_0x1536fe(0xcd)](_0x1d09ee[_0x1536fe(0x114)]))],_0x1ce817['LiveShareController']);var _0x1d52f0=(_0x247289=>(_0x247289['OFFLINE']=_0x1536fe(0x13d),_0x247289[_0x1536fe(0x142)]='idle',_0x247289[_0x1536fe(0x180)]=_0x1536fe(0x113),_0x247289[_0x1536fe(0x100)]='not-following',_0x247289[_0x1536fe(0x16b)]=_0x1536fe(0xc8),_0x247289))(_0x1d52f0||{});const _0x44ab8d='SAME_OPERATION_SHARE_INTERVAL',_0x52fe74=0xc8;_0x1ce817[_0x1536fe(0xf9)]=class extends _0x3de664['RxDisposable']{constructor(_0x34f633,_0x140f3d,_0xb76eb3,_0x21e35b,_0x24b212){var _0x150eb6=_0x1536fe;super(),_0x2b7a21(this,_0x150eb6(0xb0),new _0x268533[(_0x150eb6(0x185))](_0x150eb6(0x97))),_0x2b7a21(this,_0x150eb6(0xeb),this['_status$'][_0x150eb6(0xdf)]()),_0x2b7a21(this,_0x150eb6(0x128),!0x1),_0x2b7a21(this,_0x150eb6(0x90),null),_0x2b7a21(this,_0x150eb6(0x17d),null),(this[_0x150eb6(0x94)]=_0x34f633,this[_0x150eb6(0x11a)]=_0x140f3d,this[_0x150eb6(0x9e)]=_0xb76eb3,this[_0x150eb6(0x15a)]=_0x21e35b,this[_0x150eb6(0x17e)]=_0x24b212);}get[_0x1536fe(0x13b)](){var _0x3c7283=_0x1536fe;return this[_0x3c7283(0xb0)][_0x3c7283(0x14c)]();}[_0x1536fe(0x174)](){var _0x25bbf7=_0x1536fe,_0x3ff610;(_0x3ff610=this[_0x25bbf7(0x90)])==null||_0x3ff610[_0x25bbf7(0x174)](),this[_0x25bbf7(0xb0)]['next'](_0x25bbf7(0x97)),this[_0x25bbf7(0xb0)][_0x25bbf7(0x12a)]();}[_0x1536fe(0x15b)](){var _0x1f1ec5=_0x1536fe;this[_0x1f1ec5(0x128)]||(this['_init']=!0x0,this[_0x1f1ec5(0x11a)][_0x1f1ec5(0xb1)][_0x1f1ec5(0x178)](_0x11e3ef['takeUntil'](this['dispose$']))[_0x1f1ec5(0x12b)](_0x386ffa=>{var _0x3b316b=_0x1f1ec5;switch(_0x386ffa){case _0x1d09ee[_0x3b316b(0x154)][_0x3b316b(0x127)]:this[_0x3b316b(0x158)]();break;case _0x1d09ee[_0x3b316b(0x154)][_0x3b316b(0x12e)]:this['_handleOnline']();break;}}),this['_collabSession'][_0x1f1ec5(0x12d)][_0x1f1ec5(0x178)](_0x11e3ef[_0x1f1ec5(0x13c)](this['dispose$']))[_0x1f1ec5(0x12b)](_0x3a3bf3=>{var _0xccbee4=_0x1f1ec5;const {eventID:_0x1e5e81}=_0x3a3bf3;switch(_0x1e5e81){case _0x2ffff0[_0xccbee4(0xd2)]['LIVESHARE_NEW_HOST']:this[_0xccbee4(0xb8)](_0x3a3bf3);break;case _0x2ffff0[_0xccbee4(0xd2)]['LIVESHARE_OPERATION']:this[_0xccbee4(0x135)](_0x3a3bf3);break;case _0x2ffff0['CollaborationEvent'][_0xccbee4(0x172)]:this[_0xccbee4(0x176)]();break;case _0x2ffff0[_0xccbee4(0xd2)][_0xccbee4(0x102)]:this[_0xccbee4(0x143)](_0x3a3bf3);break;}}));}['tryStartPresenting'](){var _0x277ba8=_0x1536fe;this[_0x277ba8(0x11a)][_0x277ba8(0x133)]({'eventID':_0x2ffff0[_0x277ba8(0xd2)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x277ba8(0x94)],'userID':this[_0x277ba8(0x11a)]['getMemberID']()}},this[_0x277ba8(0x94)]);}[_0x1536fe(0xbd)](){var _0x596bea=_0x1536fe;this[_0x596bea(0x13b)]===_0x596bea(0xc8)&&(this['_status$']['next'](_0x596bea(0x97)),this[_0x596bea(0x11a)][_0x596bea(0x133)]({'eventID':_0x2ffff0[_0x596bea(0xd2)][_0x596bea(0x172)],'data':{'unitID':this[_0x596bea(0x94)]}},this[_0x596bea(0x94)]));}[_0x1536fe(0x12f)](){var _0xe7f46a=_0x1536fe;this[_0xe7f46a(0x13b)]===_0xe7f46a(0xae)&&(this['_status$'][_0xe7f46a(0x11e)](_0xe7f46a(0x113)),this[_0xe7f46a(0x107)]());}[_0x1536fe(0x16a)](){var _0x226bbd=_0x1536fe;this[_0x226bbd(0x13b)]===_0x226bbd(0x113)&&this[_0x226bbd(0xa8)]();}['_handleNewHost'](_0x3feeb1){var _0x315792=_0x1536fe;const {presenter:_0x327b61}=_0x3feeb1['data'],_0x3cd4a3=this[_0x315792(0x11a)]['getMemberID']();this[_0x315792(0x17d)]=_0x327b61,_0x327b61===_0x3cd4a3?(this[_0x315792(0xa8)](),this[_0x315792(0x124)]()):this[_0x315792(0x13b)]!==_0x315792(0xae)&&(this[_0x315792(0x108)](),this[_0x315792(0x107)]());}[_0x1536fe(0xb9)](){var _0x2e5814=_0x1536fe;const _0x5c167f={'eventID':_0x2ffff0[_0x2e5814(0xd2)][_0x2e5814(0xf0)]};this[_0x2e5814(0x11a)][_0x2e5814(0x133)](_0x5c167f,this[_0x2e5814(0x94)]);}[_0x1536fe(0x176)](){var _0x330277=_0x1536fe;this[_0x330277(0x17d)]=null,this[_0x330277(0x13b)]!==_0x330277(0xc8)&&this[_0x330277(0xc2)]();}[_0x1536fe(0x143)](_0x3c45da){var _0x383fc1=_0x1536fe;if(this[_0x383fc1(0x13b)]===_0x383fc1(0x113)&&this[_0x383fc1(0x17d)]===_0x3c45da[_0x383fc1(0x148)][_0x383fc1(0x155)]){const _0xf82052=_0x2ffff0[_0x383fc1(0xaf)](_0x3c45da[_0x383fc1(0x148)])[_0x383fc1(0x179)][_0x383fc1(0x14f)]()[_0x383fc1(0x17b)](_0x1f290c=>_0x1f290c['id']===_0xfb8100[_0x383fc1(0x9a)]['id']);if(_0xf82052){const _0x4b1fcc=_0xf82052[_0x383fc1(0xbf)][_0x383fc1(0xf8)],_0x21923b=_0xf82052[_0x383fc1(0xbf)][_0x383fc1(0x9c)]['id'];setTimeout(()=>{var _0x4d6458=_0x383fc1;this[_0x4d6458(0x17e)][_0x4d6458(0x170)](_0xfb8100[_0x4d6458(0x140)]['id'],{'unitId':_0x4b1fcc,'subUnitId':_0x21923b},{'fromCollab':!0x0});});}}}[_0x1536fe(0x124)](){var _0x5ee726=_0x1536fe;this[_0x5ee726(0xb0)][_0x5ee726(0x11e)](_0x5ee726(0xc8));const _0x261ef4=new Map(),_0x46003b=this[_0x5ee726(0x90)]=new _0x3de664['DisposableCollection']();_0x46003b[_0x5ee726(0x169)](_0x3de664['toDisposable'](()=>{var _0x5a952f=_0x5ee726;_0x261ef4[_0x5a952f(0x16d)](_0x5bd93e=>_0x5bd93e[_0x5a952f(0x12a)]()),_0x261ef4[_0x5a952f(0x116)]();})),_0x46003b[_0x5ee726(0x169)](this[_0x5ee726(0x17e)][_0x5ee726(0xe3)](_0x442d17=>{var _0x1ffad2=_0x5ee726,_0x22e445;if(_0x442d17['type']!==_0x3de664[_0x1ffad2(0x156)]['OPERATION']||!this[_0x1ffad2(0x15a)][_0x1ffad2(0xac)](_0x442d17['id']))return;const {id:_0x187f25}=_0x442d17;let _0x47f79a;_0x261ef4[_0x1ffad2(0x129)](_0x187f25)?_0x47f79a=_0x261ef4[_0x1ffad2(0xd5)](_0x187f25):(_0x47f79a=new _0x268533[(_0x1ffad2(0x12c))](),_0x261ef4[_0x1ffad2(0xc9)](_0x187f25,_0x47f79a),_0x47f79a[_0x1ffad2(0x178)](_0x11e3ef[_0x1ffad2(0x111)]((_0x22e445=this['_configService'][_0x1ffad2(0x105)](_0x44ab8d))!=null?_0x22e445:_0x52fe74,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1ffad2(0x12b)](_0x4818e6=>{var _0x1de500=_0x1ffad2;this['_collabSession'][_0x1de500(0x133)]({'eventID':_0x2ffff0[_0x1de500(0xd2)][_0x1de500(0xdc)],'data':{'unitID':this[_0x1de500(0x94)],'operations':{[_0x4818e6['id']]:{'id':_0x4818e6['id'],'params':JSON[_0x1de500(0x150)](_0x4818e6[_0x1de500(0xbf)])}}}},this[_0x1de500(0x94)]);})),_0x47f79a['next'](_0x442d17);})),this[_0x5ee726(0x15a)][_0x5ee726(0xca)](this['_unitID'])[_0x5ee726(0x16d)](_0x25b1b5=>this[_0x5ee726(0x11a)][_0x5ee726(0x133)]({'eventID':_0x2ffff0[_0x5ee726(0xd2)][_0x5ee726(0xdc)],'data':{'unitID':this['_unitID'],'operations':{[_0x25b1b5['id']]:{'id':_0x25b1b5['id'],'params':JSON[_0x5ee726(0x150)](_0x25b1b5['params'])}}}},this[_0x5ee726(0x94)]));}[_0x1536fe(0x108)](){var _0x22b5a3=_0x1536fe,_0x36a24c;this[_0x22b5a3(0xb0)]['next']('idle'),(_0x36a24c=this[_0x22b5a3(0x90)])==null||_0x36a24c[_0x22b5a3(0x174)](),this[_0x22b5a3(0x90)]=null;}[_0x1536fe(0x107)](){var _0x1f3428=_0x1536fe,_0xbe9c1;(_0xbe9c1=this['_commandDisposable'])==null||_0xbe9c1['dispose'](),this['_status$'][_0x1f3428(0x11e)]('following');}[_0x1536fe(0xc2)](){var _0x51a941=_0x1536fe,_0x13eaa6;this[_0x51a941(0xb0)]['next']('idle'),(_0x13eaa6=this[_0x51a941(0x90)])==null||_0x13eaa6[_0x51a941(0x174)](),this['_commandDisposable']=null;}[_0x1536fe(0xa8)](){var _0x51054c=_0x1536fe,_0x363e9a;this[_0x51054c(0xb0)][_0x51054c(0x11e)](_0x51054c(0xae)),(_0x363e9a=this[_0x51054c(0x90)])==null||_0x363e9a['dispose']();}[_0x1536fe(0x135)](_0x1e3fc5){var _0x880075=_0x1536fe;if([_0x880075(0xc8),'not-following',_0x880075(0x13d)][_0x880075(0xee)](this[_0x880075(0x13b)])||!_0x1e3fc5[_0x880075(0x148)][_0x880075(0xc7)]||_0x1e3fc5[_0x880075(0x148)][_0x880075(0xc7)]===this[_0x880075(0x11a)][_0x880075(0x157)]())return;this[_0x880075(0x13b)]===_0x880075(0x97)&&this[_0x880075(0x107)]();const _0x405a59=_0x1e3fc5[_0x880075(0x148)][_0x880075(0x106)];Object['values'](_0x405a59)[_0x880075(0x16d)](_0x8306f4=>{var _0x2c445e=_0x880075;this['_commandService'][_0x2c445e(0x170)](_0x8306f4['id'],_0x8306f4[_0x2c445e(0xbf)]?JSON[_0x2c445e(0xf7)](_0x8306f4[_0x2c445e(0xbf)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x59e34d=_0x1536fe,_0x5bd621;this[_0x59e34d(0xb0)][_0x59e34d(0x11e)](_0x59e34d(0x13d)),(_0x5bd621=this[_0x59e34d(0x90)])==null||_0x5bd621[_0x59e34d(0x174)]();}[_0x1536fe(0xdb)](){var _0x4d76ae=_0x1536fe;this[_0x4d76ae(0xb0)][_0x4d76ae(0x11e)](_0x4d76ae(0x97)),this[_0x4d76ae(0xb9)]();}},_0x1ce817['LiveShareCoordinator']=_0xc444b9([_0xc68594(0x2,_0x3de664[_0x1536fe(0xa5)]),_0xc68594(0x3,_0x3de664[_0x1536fe(0xcd)](_0x1d2d40)),_0xc68594(0x4,_0x3de664['ICommandService'])],_0x1ce817['LiveShareCoordinator']);function _0xa7a2ad(){var _0x20c00e=_0x1536fe;const _0x2792df=_0x5b02c5[_0x20c00e(0xe1)](_0x1ce817['LiveShareController']),_0x2f9f54=_0x5b02c5[_0x20c00e(0xe1)](_0x3de664['IUniverInstanceService']),_0x4f929c=_0x5b02c5[_0x20c00e(0x17f)](()=>_0x2f9f54[_0x20c00e(0x164)](_0x3de664['UniverInstanceType']['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x27d404,_0x370d09]=_0x200ed7[_0x20c00e(0x8f)](null),[_0x466c11,_0x1b219d]=_0x200ed7[_0x20c00e(0x8f)](_0x1d52f0['IDLE']),_0x1634af=_0x200ed7['useRef'](null);return _0x200ed7[_0x20c00e(0x11c)](()=>(_0x4f929c&&_0x2792df[_0x20c00e(0x121)](_0x4f929c['getUnitId']())['then'](_0x43e98b=>{var _0x4aaa38=_0x20c00e;_0x370d09(_0x43e98b),_0x1634af['current']=_0x43e98b[_0x4aaa38(0xeb)][_0x4aaa38(0x12b)](_0xf0a847=>{_0x1b219d(_0xf0a847);});}),()=>{var _0x22c86c=_0x20c00e,_0x1dc745;(_0x1dc745=_0x1634af[_0x22c86c(0x17c)])==null||_0x1dc745[_0x22c86c(0x8e)](),_0x1634af[_0x22c86c(0x17c)]=null;}),[_0x4f929c,_0x2792df]),_0x27d404?_0x183b5d[_0x20c00e(0xe9)](_0x318939[_0x20c00e(0xe6)],{'align':'end','disabled':_0x466c11===_0x1d52f0[_0x20c00e(0x127)],'className':_0x20c00e(0x147),'overlay':_0x183b5d[_0x20c00e(0xe9)](_0x4fbfb7,{'status':_0x466c11,'coordinator':_0x27d404}),'children':_0x183b5d['jsx'](_0x20c00e(0x162),{'className':_0x318939[_0x20c00e(0x115)](_0x20c00e(0xd8),{'univer-cursor-not-allowed':_0x466c11===_0x1d52f0[_0x20c00e(0x127)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x466c11!==_0x1d52f0['OFFLINE']}),'type':'button','children':_0x183b5d[_0x20c00e(0xe9)](_0x145c04,{'className':_0x20c00e(0x10b)})})}):null;}function _0x4fbfb7(_0x8c2d1b){var _0x513a46=_0x1536fe;const {status:_0x52d696,coordinator:_0x7bd990}=_0x8c2d1b;switch(_0x52d696){case _0x1d52f0[_0x513a46(0x142)]:return _0x183b5d[_0x513a46(0xe9)](_0x159c32,{'coordinator':_0x7bd990});case _0x1d52f0[_0x513a46(0x180)]:return _0x183b5d[_0x513a46(0xe9)](_0x8be13,{'coordinator':_0x7bd990});case _0x1d52f0['NOT_FOLLOWING']:return _0x183b5d[_0x513a46(0xe9)](_0x2f4cf4,{'coordinator':_0x7bd990});case _0x1d52f0['OFFLINE']:return _0x183b5d[_0x513a46(0xe9)](_0x26392b,{});case _0x1d52f0[_0x513a46(0x16b)]:return _0x183b5d[_0x513a46(0xe9)](_0x363dd9,{'coordinator':_0x7bd990});default:return null;}}function _0x159c32(_0x471441){var _0x55e8b3=_0x1536fe;const {coordinator:_0x237d66}=_0x471441;return _0x183b5d['jsxs'](_0x183b5d[_0x55e8b3(0x14d)],{'children':[_0x183b5d[_0x55e8b3(0xe9)](_0x55e8b3(0xfb),{'className':_0x55e8b3(0x112),'children':'Present\x20this\x20document'}),_0x183b5d[_0x55e8b3(0xe9)](_0x318939['Button'],{'onClick':()=>_0x237d66['tryStartPresenting'](),'children':'Start'})]});}function _0x8be13(_0x24e647){var _0x391a59=_0x1536fe;const {coordinator:_0x23e179}=_0x24e647;return _0x183b5d[_0x391a59(0x182)](_0x183b5d['Fragment'],{'children':[_0x183b5d[_0x391a59(0xe9)](_0x391a59(0xfb),{'className':_0x391a59(0x112),'children':_0x391a59(0x146)}),_0x183b5d[_0x391a59(0xe9)](_0x318939[_0x391a59(0x8a)],{'onClick':()=>_0x23e179[_0x391a59(0x16a)](),'children':_0x391a59(0xb7)})]});}function _0x2f4cf4(_0x545da4){var _0x31348e=_0x1536fe;const {coordinator:_0x4b8e84}=_0x545da4;return _0x183b5d[_0x31348e(0x182)](_0x183b5d[_0x31348e(0x14d)],{'children':[_0x183b5d[_0x31348e(0xe9)]('div',{'className':_0x31348e(0x112),'children':_0x31348e(0x10f)}),_0x183b5d[_0x31348e(0xe9)](_0x318939[_0x31348e(0x8a)],{'variant':_0x31348e(0xb4),'onClick':()=>_0x4b8e84[_0x31348e(0x12f)](),'children':_0x31348e(0x117)})]});}function _0x363dd9(_0x9b7a8c){var _0x59a8c6=_0x1536fe;const {coordinator:_0x8c0efc}=_0x9b7a8c;return _0x183b5d['jsxs'](_0x183b5d[_0x59a8c6(0x14d)],{'children':[_0x183b5d['jsx']('div',{'className':_0x59a8c6(0x112),'children':_0x59a8c6(0x96)}),_0x183b5d[_0x59a8c6(0xe9)](_0x318939['Button'],{'variant':_0x59a8c6(0x11b),'onClick':()=>_0x8c0efc[_0x59a8c6(0xbd)](),'children':_0x59a8c6(0x126)})]});}function _0x26392b(){var _0x2e274e=_0x1536fe;return _0x183b5d[_0x2e274e(0xe9)](_0x183b5d['Fragment'],{'children':_0x2e274e(0x145)});}var _0x487c1c=Object[_0x1536fe(0x16c)],_0x4d48d0=(_0x771b4f,_0x35ffd0,_0x464bf7,_0x47a9d0)=>{for(var _0x377c27=_0x47a9d0>0x1?void 0x0:_0x47a9d0?_0x487c1c(_0x35ffd0,_0x464bf7):_0x35ffd0,_0x40ed16=_0x771b4f['length']-0x1,_0x1cc74a;_0x40ed16>=0x0;_0x40ed16--)(_0x1cc74a=_0x771b4f[_0x40ed16])&&(_0x377c27=_0x1cc74a(_0x377c27)||_0x377c27);return _0x377c27;},_0x46e2c6=(_0x461cda,_0x1fd057)=>(_0xace34c,_0x73faab)=>_0x1fd057(_0xace34c,_0x73faab,_0x461cda);_0x1ce817[_0x1536fe(0x165)]=class extends _0x3de664[_0x1536fe(0x8c)]{constructor(_0x5e9480,_0x4ca6a1){var _0x43ffb5=_0x1536fe;super(),this[_0x43ffb5(0x8b)]=_0x5e9480,this['_uiPartsService']=_0x4ca6a1,this[_0x43ffb5(0xcc)]();}[_0x1536fe(0xcc)](){var _0xff4596=_0x1536fe;this[_0xff4596(0x13a)](this['_uiPartsService'][_0xff4596(0xa3)](_0x5b02c5[_0xff4596(0x134)][_0xff4596(0x10a)],()=>_0x5b02c5[_0xff4596(0xd6)](_0xa7a2ad,this[_0xff4596(0x8b)])));}},_0x1ce817[_0x1536fe(0x165)]=_0x4d48d0([_0x46e2c6(0x0,_0x3de664[_0x1536fe(0xcd)](_0x3de664[_0x1536fe(0x177)])),_0x46e2c6(0x1,_0x5b02c5[_0x1536fe(0xc5)])],_0x1ce817['DesktopLiveShareController']);var _0x1b7793=Object[_0x1536fe(0x173)],_0x36a389=Object[_0x1536fe(0x16c)],_0x57c0f5=(_0x467b57,_0xfb8007,_0x123043)=>_0xfb8007 in _0x467b57?_0x1b7793(_0x467b57,_0xfb8007,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x123043}):_0x467b57[_0xfb8007]=_0x123043,_0xba84b3=(_0x3273ae,_0x284722,_0x1c9ddd,_0x2a641c)=>{for(var _0x14f012=_0x2a641c>0x1?void 0x0:_0x2a641c?_0x36a389(_0x284722,_0x1c9ddd):_0x284722,_0x1eed0a=_0x3273ae['length']-0x1,_0x47ef55;_0x1eed0a>=0x0;_0x1eed0a--)(_0x47ef55=_0x3273ae[_0x1eed0a])&&(_0x14f012=_0x47ef55(_0x14f012)||_0x14f012);return _0x14f012;},_0x1acb2d=(_0x47f200,_0x4c8050)=>(_0x189c77,_0x9318b8)=>_0x4c8050(_0x189c77,_0x9318b8,_0x47f200),_0x2f1b9e=(_0x3734db,_0x456f87,_0x55025d)=>_0x57c0f5(_0x3734db,typeof _0x456f87!=_0x1536fe(0xbe)?_0x456f87+'':_0x456f87,_0x55025d);const _0x247b73=_0x1536fe(0x130);_0x1ce817['UniverLiveSharePlugin']=class extends _0x3de664[_0x1536fe(0xde)]{constructor(_0x456916=_0x2b0129,_0x47139b,_0x26170e){var _0x1bf4b7=_0x1536fe;super(),this[_0x1bf4b7(0xa1)]=_0x456916,this[_0x1bf4b7(0x8b)]=_0x47139b,this[_0x1bf4b7(0x9e)]=_0x26170e;const {..._0x2dbfb5}=_0x3de664[_0x1bf4b7(0xed)]({},_0x2b0129,this[_0x1bf4b7(0xa1)]);this[_0x1bf4b7(0x9e)][_0x1bf4b7(0xa6)](_0x4f9b65,_0x2dbfb5);}[_0x1536fe(0x14a)](){var _0x1fdbee=_0x1536fe;_0x3de664[_0x1fdbee(0x161)](this[_0x1fdbee(0x8b)],_0x3de664[_0x1fdbee(0x14b)]([[_0x1d2d40],[_0x1ce817[_0x1fdbee(0xdd)]],[_0x20c99b],[_0x1ce817[_0x1fdbee(0x165)]]],this[_0x1fdbee(0xa1)]['override'])),_0x3de664[_0x1fdbee(0x122)](this['_injector'],[[_0x20c99b]]);}['onRendered'](){var _0x506bdc=_0x1536fe;_0x3de664[_0x506bdc(0x122)](this[_0x506bdc(0x8b)],[[_0x1ce817[_0x506bdc(0x165)]]]);}},_0x2f1b9e(_0x1ce817['UniverLiveSharePlugin'],_0x1536fe(0x89),_0x3de664['UniverInstanceType'][_0x1536fe(0xbb)]),_0x2f1b9e(_0x1ce817[_0x1536fe(0xc6)],_0x1536fe(0x110),_0x247b73),_0x1ce817['UniverLiveSharePlugin']=_0xba84b3([_0x3de664[_0x1536fe(0x13f)](_0x1d09ee['UniverCollaborationClientPlugin']),_0x1acb2d(0x1,_0x3de664['Inject'](_0x3de664['Injector'])),_0x1acb2d(0x2,_0x3de664[_0x1536fe(0xa5)])],_0x1ce817[_0x1536fe(0xc6)]),_0x1ce817[_0x1536fe(0xda)]=_0xa7a2ad,_0x1ce817[_0x1536fe(0x151)]=_0x1d2d40,_0x1ce817[_0x1536fe(0x101)]=_0x1d52f0,Object['defineProperty'](_0x1ce817,Symbol[_0x1536fe(0xd7)],{'value':_0x1536fe(0xec)});}));function _0x1c35(){var _0x8b39b3=['_commandService','useObservable','FOLLOWING','3113286AWFJQN','jsxs','colorChannel1','UniverDesign','BehaviorSubject','type','Button','_injector','Disposable','24130MSTLHE','unsubscribe','useState','_commandDisposable','univerjs-icon\x20univerjs-icon-','url(#$1','call','_unitID','className','You\x27re\x20presenting\x20the\x20document','idle','M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','@univerjs-pro/collaboration','InsertSheetMutation','react','sheet','_reporters','_configService','tag','4LWhowy','_config','@univerjs-pro/collaboration-client','registerComponent','object','IConfigService','setConfig','createInstance','_stopFollowing','string','_sharedOperations','http://www.w3.org/2000/svg','shouldShareOperation','RxDisposable','not-following','parseProtocolChangeset','_status$','sessionStatus$','getUnitId','extend','text','apply','replace','Stop\x20following','_handleNewHost','_fetchOperations','71432UrrNwG','UNIVER_UNKNOWN','0\x200\x2017\x2017','stopPresenting','symbol','params','attrs','children','_beIdle','requireSession','getTypeOfUnitDisposed$','IUIPartsService','UniverLiveSharePlugin','presenter','presenting','set','getInitialStates','toString','_mountLiveShare','Inject','UniverSheets','React','currentColor','getTypeOfUnitAdded$','CollaborationEvent','concat','UniverProLiveShare','get','connectInjector','toStringTag','univer-border-none\x20univer-text-gray-600\x20univer-outline-none','UNIVER_SHEET','LiveShare','_handleOnline','LIVESHARE_OPERATION','LiveShareController','Plugin','asObservable','UniverIcon','useDependency','UniverSheetsUi','onCommandExecuted','@univerjs/ui','evenodd','Dropdown','from','UniverInstanceType','jsx','12pvcovH','status$','Module','merge','includes','idSuffix','LIVESHARE_FETCH_OPERATIONS','operators','238757EDWiGK','delete','useRef','fill','7YTvMHH','parse','unitId','LiveShareCoordinator','icon','div','defIds','40zUUtYN','forwardRef','svg','NOT_FOLLOWING','LiveShareStatus','NEW_CHANGESETS','@univerjs/design','rxjs','getConfig','operations','_startFollowing','_stopPresenting','837zwTrug','HEADER_MENU','univer-size-4','path','react/jsx-runtime','@univerjs/core','You\x27re\x20not\x20following\x20the\x20presenter','pluginName','throttleTime','univer-mb-3\x20univer-w-full\x20univer-text-sm','following','CollaborationSessionService','clsx','clear','Start\x20following','function','displayName','_collabSession','default','useEffect','indexOf','next','map','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','getLiveShareCoordinator','touchDependencies','_collabSessionService','_startPresenting','assign','Stop\x20presenting','OFFLINE','_init','has','complete','subscribe','Subject','event$','ONLINE','startFollowing','UNIVER_LIVE_SHARE_PLUGIN','xlink:href','getOwnPropertySymbols','send','BuiltInUIPart','_handleOperation','UniverCore','451800IEGAht','dispose$','_entities','disposeWithMe','_status','takeUntil','offline','entries','DependentOn','SetWorksheetActiveOperation','1330305yOEFkC','IDLE','_handleNewChangeSets','_startLiveShareCoordinator','You\x27are\x20offline.','You\x27re\x20following\x20the\x20presenter','univer-box-border\x20univer-min-w-60\x20univer-bg-gray-900\x20univer-px-4\x20univer-py-3\x20univer-text-gray-900\x20dark:!univer-bg-white\x20dark:!univer-text-white','data','mask','onStarting','mergeOverrideWithDependencies','getValue','Fragment','UniverUi','reverse','stringify','LiveShareService','hasOwnProperty','length','SessionStatus','memberID','CommandType','getMemberID','_handleOffline','registerInitialStateReporter','_liveShareService','init','registerSharedOperation','rxjs/operators','createElement','44811UMhNyn','live-share-icon','registerDependencies','button','_univerInstanceService','getCurrentTypeOfUnit$','DesktopLiveShareController','none','IUniverInstanceService','toDisposable','add','stopFollowing','PRESENTING','getOwnPropertyDescriptor','forEach','amd','prototype','executeCommand','live-share.config','LIVESHARE_TERMINATE','defineProperty','dispose','1em','_handleTerminate','Injector','pipe','mutations','@univerjs/sheets','find','current','_presenter'];_0x1c35=function(){return _0x8b39b3;};return _0x1c35();}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.8.1-nightly.202506141606",
3
+ "version": "0.8.1-nightly.202506161607",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -47,13 +47,13 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@univerjs/icons": "^0.4.4",
50
- "@univerjs-pro/collaboration-client": "0.8.1-nightly.202506141606",
51
- "@univerjs/core": "0.8.1-nightly.202506141606",
52
- "@univerjs/design": "0.8.1-nightly.202506141606",
53
- "@univerjs/sheets": "0.8.1-nightly.202506141606",
54
- "@univerjs/sheets-ui": "0.8.1-nightly.202506141606",
55
- "@univerjs-pro/collaboration": "0.8.1-nightly.202506141606",
56
- "@univerjs/ui": "0.8.1-nightly.202506141606"
50
+ "@univerjs-pro/collaboration": "0.8.1-nightly.202506161607",
51
+ "@univerjs-pro/collaboration-client": "0.8.1-nightly.202506161607",
52
+ "@univerjs/core": "0.8.1-nightly.202506161607",
53
+ "@univerjs/sheets": "0.8.1-nightly.202506161607",
54
+ "@univerjs/sheets-ui": "0.8.1-nightly.202506161607",
55
+ "@univerjs/design": "0.8.1-nightly.202506161607",
56
+ "@univerjs/ui": "0.8.1-nightly.202506161607"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.5",