@univerjs-pro/live-share 0.8.0-nightly.202505271607 → 0.8.0-nightly.202505291607
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/index.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/index.js +1 -1
- package/lib/umd/index.js +1 -1
- package/package.json +10 -10
package/lib/cjs/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';var _0x52bceb=_0xac8c;(function(_0x6a16e9,_0x56d853){var _0x1eae6c=_0xac8c,_0x7ef1c5=_0x6a16e9();while(!![]){try{var _0x43ed62=parseInt(_0x1eae6c(0x100))/0x1+-parseInt(_0x1eae6c(0xb2))/0x2*(-parseInt(_0x1eae6c(0x168))/0x3)+-parseInt(_0x1eae6c(0x132))/0x4*(-parseInt(_0x1eae6c(0x95))/0x5)+parseInt(_0x1eae6c(0xe2))/0x6+-parseInt(_0x1eae6c(0xe7))/0x7+parseInt(_0x1eae6c(0x136))/0x8*(-parseInt(_0x1eae6c(0xb0))/0x9)+parseInt(_0x1eae6c(0xd1))/0xa*(parseInt(_0x1eae6c(0xff))/0xb);if(_0x43ed62===_0x56d853)break;else _0x7ef1c5['push'](_0x7ef1c5['shift']());}catch(_0x4a1e2d){_0x7ef1c5['push'](_0x7ef1c5['shift']());}}}(_0xf020,0xe5ef1));var U=Object['defineProperty'],F=(_0x4f3dc2,_0x51a7c5,_0x515ec5)=>_0x51a7c5 in _0x4f3dc2?U(_0x4f3dc2,_0x51a7c5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x515ec5}):_0x4f3dc2[_0x51a7c5]=_0x515ec5,v=(_0x220b50,_0x2d1c6c,_0x5173d3)=>F(_0x220b50,typeof _0x2d1c6c!=_0x52bceb(0xa1)?_0x2d1c6c+'':_0x2d1c6c,_0x5173d3);Object[_0x52bceb(0xcd)](exports,Symbol[_0x52bceb(0x164)],{'value':_0x52bceb(0x108)});const m=require(_0x52bceb(0xfa)),o=require(_0x52bceb(0x106)),C=require(_0x52bceb(0x10b)),w=require(_0x52bceb(0x109)),p=require(_0x52bceb(0x169)),l=require(_0x52bceb(0xc9)),g=require(_0x52bceb(0xd7)),f=require('react'),_=require(_0x52bceb(0xf5)),D=require(_0x52bceb(0x15d)),b=require(_0x52bceb(0xdf)),$=_0x52bceb(0xc7),x={};class E extends o['Disposable']{constructor(){var _0x2393a3=_0x52bceb;super(...arguments),v(this,_0x2393a3(0x16c),new Set()),v(this,_0x2393a3(0xfd),new Set());}['registerSharedOperation'](_0x2d0ce7){var _0xf32967=_0x52bceb;return this['_sharedOperations']['add'](_0x2d0ce7),o['toDisposable'](()=>this[_0xf32967(0x16c)][_0xf32967(0x133)](_0x2d0ce7));}[_0x52bceb(0xb8)](_0x35f533){var _0x3e0e8a=_0x52bceb;return this[_0x3e0e8a(0xfd)][_0x3e0e8a(0x12d)](_0x35f533),o[_0x3e0e8a(0xbe)](()=>this[_0x3e0e8a(0xfd)]['delete'](_0x35f533));}[_0x52bceb(0x119)](_0x1e60c2){var _0x3c4896=_0x52bceb;return this[_0x3c4896(0x16c)]['has'](_0x1e60c2);}[_0x52bceb(0xb5)](_0x35503f){var _0x3ecf10=_0x52bceb;return Array[_0x3ecf10(0xf4)](this[_0x3ecf10(0xfd)])['map'](_0xb019eb=>_0xb019eb(_0x35503f));}}var H=Object[_0x52bceb(0xa4)],V=(_0x4046ac,_0x2e6e49,_0x22462d,_0x46ac3b)=>{var _0x53fa86=_0x52bceb;for(var _0x3848f3=_0x46ac3b>0x1?void 0x0:_0x46ac3b?H(_0x2e6e49,_0x22462d):_0x2e6e49,_0x1cb656=_0x4046ac[_0x53fa86(0x127)]-0x1,_0x31f5e9;_0x1cb656>=0x0;_0x1cb656--)(_0x31f5e9=_0x4046ac[_0x1cb656])&&(_0x3848f3=_0x31f5e9(_0x3848f3)||_0x3848f3);return _0x3848f3;},k=(_0x29ecc0,_0x7515e9)=>(_0x3a2dc0,_0x53d199)=>_0x7515e9(_0x3a2dc0,_0x53d199,_0x29ecc0);let O=class extends o['Disposable']{constructor(_0x58809c){var _0x2360be=_0x52bceb;super(),this['_liveShareService']=_0x58809c,this[_0x2360be(0x9c)]();}[_0x52bceb(0x9c)](){var _0x75ef0c=_0x52bceb;[w['SetZoomRatioOperation']['id'],w[_0x75ef0c(0x14a)]['id'],C[_0x75ef0c(0x118)]['id']]['forEach'](_0x5100d4=>{var _0x2d400b=_0x75ef0c;this[_0x2d400b(0x110)](this[_0x2d400b(0xd0)]['registerSharedOperation'](_0x5100d4));});}};O=V([k(0x0,o[_0x52bceb(0xe6)](E))],O);var u=function(){var _0x263b10=_0x52bceb;return u=Object[_0x263b10(0x172)]||function(_0x275ea6){var _0x2e18a4=_0x263b10;for(var _0x3b0a3e,_0x43809b=0x1,_0x17e56c=arguments['length'];_0x43809b<_0x17e56c;_0x43809b++){_0x3b0a3e=arguments[_0x43809b];for(var _0x13ccca in _0x3b0a3e)Object[_0x2e18a4(0x11b)]['hasOwnProperty']['call'](_0x3b0a3e,_0x13ccca)&&(_0x275ea6[_0x13ccca]=_0x3b0a3e[_0x13ccca]);}return _0x275ea6;},u[_0x263b10(0xb9)](this,arguments);},M=function(_0x3c3337,_0x2e7a91){var _0x562ef3=_0x52bceb,_0x5ac1f5={};for(var _0x14a806 in _0x3c3337)Object['prototype'][_0x562ef3(0x125)]['call'](_0x3c3337,_0x14a806)&&_0x2e7a91['indexOf'](_0x14a806)<0x0&&(_0x5ac1f5[_0x14a806]=_0x3c3337[_0x14a806]);if(_0x3c3337!=null&&typeof Object[_0x562ef3(0xc6)]==_0x562ef3(0x12f)){for(var _0x1fa47b=0x0,_0x14a806=Object['getOwnPropertySymbols'](_0x3c3337);_0x1fa47b<_0x14a806[_0x562ef3(0x127)];_0x1fa47b++)_0x2e7a91[_0x562ef3(0x146)](_0x14a806[_0x1fa47b])<0x0&&Object[_0x562ef3(0x11b)]['propertyIsEnumerable'][_0x562ef3(0xab)](_0x3c3337,_0x14a806[_0x1fa47b])&&(_0x5ac1f5[_0x14a806[_0x1fa47b]]=_0x3c3337[_0x14a806[_0x1fa47b]]);}return _0x5ac1f5;},j=f[_0x52bceb(0x174)](function(_0x17b5a2,_0x151cf3){var _0x41e522=_0x52bceb,_0x22a7fa=_0x17b5a2['icon'],_0x500d00=_0x17b5a2['id'],_0x306ecc=_0x17b5a2['className'],_0x5b60c1=_0x17b5a2['extend'],_0x5b177b=M(_0x17b5a2,[_0x41e522(0x9b),'id',_0x41e522(0xce),'extend']),_0x2fcaa6=_0x41e522(0x149)[_0x41e522(0xf0)](_0x500d00,'\x20')['concat'](_0x306ecc||'')['trim'](),_0x3e1e8f=f['useRef']('_'[_0x41e522(0xf0)](G()));return y(_0x22a7fa,''[_0x41e522(0xf0)](_0x500d00),{'defIds':_0x22a7fa[_0x41e522(0x167)],'idSuffix':_0x3e1e8f[_0x41e522(0x11c)]},u({'ref':_0x151cf3,'className':_0x2fcaa6},_0x5b177b),_0x5b60c1);});function _0xac8c(_0x3e1a80,_0x40fdd0){var _0xf02072=_0xf020();return _0xac8c=function(_0xac8cb4,_0x5e022f){_0xac8cb4=_0xac8cb4-0x95;var _0x32c950=_0xf02072[_0xac8cb4];return _0x32c950;},_0xac8c(_0x3e1a80,_0x40fdd0);}function y(_0x5f165d,_0x4f480d,_0x5e54d3,_0x44be14,_0xec00e7){var _0xcdba02=_0x52bceb;return f[_0xcdba02(0xcf)](_0x5f165d[_0xcdba02(0xdc)],u(u({'key':_0x4f480d},q(_0x5f165d,_0x5e54d3,_0xec00e7)),_0x44be14),(W(_0x5f165d,_0x5e54d3)[_0xcdba02(0xdb)]||[])[_0xcdba02(0xbf)](function(_0x4e0fb0,_0x3d6d8f){var _0x164860=_0xcdba02;return y(_0x4e0fb0,''['concat'](_0x4f480d,'-')[_0x164860(0xf0)](_0x5f165d[_0x164860(0xdc)],'-')[_0x164860(0xf0)](_0x3d6d8f),_0x5e54d3,void 0x0,_0xec00e7);}));}function q(_0x2f0b96,_0x567341,_0x56b99c){var _0x30dcb5=_0x52bceb,_0x28f864=u({},_0x2f0b96['attrs']);_0x56b99c!=null&&_0x56b99c['colorChannel1']&&_0x28f864['fill']===_0x30dcb5(0xbc)&&(_0x28f864[_0x30dcb5(0x15b)]=_0x56b99c[_0x30dcb5(0xbc)]),_0x2f0b96[_0x30dcb5(0xdc)]===_0x30dcb5(0x175)&&_0x28f864['id']&&(_0x28f864['id']=_0x28f864['id']+_0x567341['idSuffix']),Object[_0x30dcb5(0x153)](_0x28f864)[_0x30dcb5(0x126)](function(_0x4b3a32){var _0x4c087d=_0x30dcb5,_0x52f9aa=_0x4b3a32[0x0],_0x1f882c=_0x4b3a32[0x1];_0x52f9aa==='mask'&&typeof _0x1f882c==_0x4c087d(0xa0)&&(_0x28f864[_0x52f9aa]=_0x1f882c['replace'](/url\(#(.*)\)/,_0x4c087d(0xbb)[_0x4c087d(0xf0)](_0x567341['idSuffix'],')')));});var _0x15cb6c=_0x567341[_0x30dcb5(0x167)];return!_0x15cb6c||_0x15cb6c[_0x30dcb5(0x127)]===0x0||(_0x2f0b96[_0x30dcb5(0xdc)]===_0x30dcb5(0x179)&&_0x28f864['xlink:href']&&(_0x28f864['xlink:href']=_0x28f864['xlink:href']+_0x567341[_0x30dcb5(0xac)]),Object['entries'](_0x28f864)[_0x30dcb5(0x126)](function(_0x404985){var _0x1c387f=_0x30dcb5,_0x5b777f=_0x404985[0x0],_0x4f1376=_0x404985[0x1];typeof _0x4f1376==_0x1c387f(0xa0)&&(_0x28f864[_0x5b777f]=_0x4f1376[_0x1c387f(0xb3)](/url\(#(.*)\)/,_0x1c387f(0xbb)[_0x1c387f(0xf0)](_0x567341[_0x1c387f(0xac)],')')));})),_0x28f864;}function W(_0x415eba,_0x4d445a){var _0x3dd35a=_0x52bceb,_0x59d4a4,_0x2aca10=_0x4d445a['defIds'];return!_0x2aca10||_0x2aca10[_0x3dd35a(0x127)]===0x0?_0x415eba:_0x415eba['tag']===_0x3dd35a(0x99)&&(!((_0x59d4a4=_0x415eba[_0x3dd35a(0xdb)])===null||_0x59d4a4===void 0x0)&&_0x59d4a4[_0x3dd35a(0x127)])?u(u({},_0x415eba),{'children':_0x415eba[_0x3dd35a(0xdb)][_0x3dd35a(0xbf)](function(_0x7d7048){var _0x20c4b7=_0x3dd35a;return typeof _0x7d7048[_0x20c4b7(0xb4)]['id']=='string'&&_0x2aca10&&_0x2aca10['indexOf'](_0x7d7048[_0x20c4b7(0xb4)]['id'])>-0x1?u(u({},_0x7d7048),{'attrs':u(u({},_0x7d7048[_0x20c4b7(0xb4)]),{'id':_0x7d7048[_0x20c4b7(0xb4)]['id']+_0x4d445a[_0x20c4b7(0xac)]})}):_0x7d7048;})}):_0x415eba;}function G(){var _0x21a47d=_0x52bceb;return Math[_0x21a47d(0x13f)]()[_0x21a47d(0x163)](0x24)[_0x21a47d(0x14b)](0x2,0x8);}j[_0x52bceb(0xa9)]=_0x52bceb(0x120);var B={'tag':'svg','attrs':{'xmlns':_0x52bceb(0xf1),'fill':_0x52bceb(0xfc),'viewBox':'0\x200\x2017\x2017','width':_0x52bceb(0x11d),'height':_0x52bceb(0x11d)},'children':[{'tag':_0x52bceb(0xad),'attrs':{'fill':'currentColor','d':_0x52bceb(0x16b)}},{'tag':'path','attrs':{'fill':_0x52bceb(0x154),'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':_0x52bceb(0xfb),'clipRule':'evenodd'}}]},P=f['forwardRef'](function(_0x23af4e,_0x57e4cc){var _0x4843d1=_0x52bceb;return f[_0x4843d1(0xcf)](j,Object['assign']({},_0x23af4e,{'id':_0x4843d1(0x138),'ref':_0x57e4cc,'icon':B}));});P['displayName']=_0x52bceb(0x114);var Y=Object[_0x52bceb(0xa4)],R=(_0x367452,_0x754b23,_0x33ff28,_0x5a904b)=>{var _0x47be8a=_0x52bceb;for(var _0x1639e0=_0x5a904b>0x1?void 0x0:_0x5a904b?Y(_0x754b23,_0x33ff28):_0x754b23,_0x34f2e0=_0x367452[_0x47be8a(0x127)]-0x1,_0x1059f3;_0x34f2e0>=0x0;_0x34f2e0--)(_0x1059f3=_0x367452[_0x34f2e0])&&(_0x1639e0=_0x1059f3(_0x1639e0)||_0x1639e0);return _0x1639e0;},S=(_0x7fb1f6,_0x77116d)=>(_0xfe5bb1,_0x323a70)=>_0x77116d(_0xfe5bb1,_0x323a70,_0x7fb1f6);exports[_0x52bceb(0xc8)]=class extends o[_0x52bceb(0x128)]{constructor(_0x4cd6a7,_0x5b60a2,_0x5df010){var _0x427abc=_0x52bceb;super(),v(this,_0x427abc(0xd5),new Map()),(this[_0x427abc(0xc2)]=_0x4cd6a7,this[_0x427abc(0x10e)]=_0x5b60a2,this[_0x427abc(0xa7)]=_0x5df010,this[_0x427abc(0x9c)]());}async[_0x52bceb(0xdd)](_0x2ab6b4){var _0xfeb58a=_0x52bceb;return this[_0xfeb58a(0xd5)]['has'](_0x2ab6b4)||await this[_0xfeb58a(0x134)](_0x2ab6b4),this['_entities'][_0xfeb58a(0x141)](_0x2ab6b4);}[_0x52bceb(0x9c)](){var _0x5a3527=_0x52bceb;this[_0x5a3527(0xc2)]['getTypeOfUnitAdded$'](o[_0x5a3527(0x107)][_0x5a3527(0x121)])[_0x5a3527(0xa5)](b[_0x5a3527(0x178)](this[_0x5a3527(0xe9)]))[_0x5a3527(0x148)](async _0x13652f=>{var _0x548ce7=_0x5a3527;const _0x3ff401=_0x13652f[_0x548ce7(0x131)]();this['_entities'][_0x548ce7(0x14e)](_0x3ff401)||this['_startLiveShareCoordinator'](_0x3ff401);}),this[_0x5a3527(0xc2)][_0x5a3527(0x10a)](o[_0x5a3527(0x107)]['UNIVER_SHEET'])[_0x5a3527(0xa5)](b[_0x5a3527(0x178)](this[_0x5a3527(0xe9)]))[_0x5a3527(0x148)](_0x402755=>{var _0x2e5546=_0x5a3527;const _0x539169=_0x402755['getUnitId'](),_0x434bc0=this['_entities'][_0x2e5546(0x141)](_0x539169);_0x434bc0==null||_0x434bc0[_0x2e5546(0x9f)]();});}async['_startLiveShareCoordinator'](_0x2152d4){var _0x26ce26=_0x52bceb;const _0x3a9773=await this['_collabSessionService']['requireSession'](_0x2152d4),_0x56938c=this[_0x26ce26(0x10e)][_0x26ce26(0x10c)](exports['LiveShareCoordinator'],_0x2152d4,_0x3a9773);return _0x56938c['init'](),this[_0x26ce26(0xd5)][_0x26ce26(0x111)](_0x2152d4,_0x56938c),_0x56938c;}},exports[_0x52bceb(0xc8)]=R([S(0x0,o[_0x52bceb(0x177)]),S(0x1,o[_0x52bceb(0xe6)](o[_0x52bceb(0x176)])),S(0x2,o['Inject'](m[_0x52bceb(0x135)]))],exports[_0x52bceb(0xc8)]);var h=(_0x3b1e8a=>(_0x3b1e8a[_0x52bceb(0xf3)]=_0x52bceb(0x16d),_0x3b1e8a[_0x52bceb(0xed)]=_0x52bceb(0xca),_0x3b1e8a[_0x52bceb(0xc4)]=_0x52bceb(0xe4),_0x3b1e8a[_0x52bceb(0xf6)]=_0x52bceb(0xf7),_0x3b1e8a[_0x52bceb(0x10d)]=_0x52bceb(0xf9),_0x3b1e8a))(h||{});const Z=_0x52bceb(0x162),J=0xc8;exports[_0x52bceb(0x10f)]=class extends o[_0x52bceb(0x128)]{constructor(_0x5d7f72,_0x2ea6c8,_0xf48875,_0x5976bd,_0x1d7441){var _0x679284=_0x52bceb;super(),v(this,_0x679284(0xc1),new D[(_0x679284(0xcb))]('idle')),v(this,_0x679284(0x13a),this['_status$'][_0x679284(0xc0)]()),v(this,_0x679284(0x9c),!0x1),v(this,_0x679284(0x144),null),v(this,_0x679284(0xc5),null),(this[_0x679284(0xf2)]=_0x5d7f72,this[_0x679284(0x15a)]=_0x2ea6c8,this['_configService']=_0xf48875,this[_0x679284(0xd0)]=_0x5976bd,this[_0x679284(0xef)]=_0x1d7441);}get[_0x52bceb(0x11a)](){var _0x1e9af3=_0x52bceb;return this[_0x1e9af3(0xc1)][_0x1e9af3(0x102)]();}[_0x52bceb(0x9f)](){var _0x383e87=_0x52bceb,_0x284968;(_0x284968=this['_commandDisposable'])==null||_0x284968[_0x383e87(0x9f)](),this[_0x383e87(0xc1)][_0x383e87(0x130)]('idle'),this['_status$'][_0x383e87(0x101)]();}[_0x52bceb(0x113)](){var _0x585f48=_0x52bceb;this['_init']||(this['_init']=!0x0,this[_0x585f48(0x15a)][_0x585f48(0x98)][_0x585f48(0xa5)](b[_0x585f48(0x178)](this[_0x585f48(0xe9)]))[_0x585f48(0x148)](_0x3664e2=>{var _0x5bd626=_0x585f48;switch(_0x3664e2){case m['SessionStatus']['OFFLINE']:this['_handleOffline']();break;case m[_0x5bd626(0xde)][_0x5bd626(0xb6)]:this[_0x5bd626(0x14f)]();break;}}),this['_collabSession'][_0x585f48(0x150)]['pipe'](b[_0x585f48(0x178)](this[_0x585f48(0xe9)]))[_0x585f48(0x148)](_0x1a3e24=>{var _0x25c8f5=_0x585f48;const {eventID:_0x2c6d80}=_0x1a3e24;switch(_0x2c6d80){case _[_0x25c8f5(0x137)][_0x25c8f5(0x112)]:this[_0x25c8f5(0x13d)](_0x1a3e24);break;case _[_0x25c8f5(0x137)]['LIVESHARE_OPERATION']:this[_0x25c8f5(0xaa)](_0x1a3e24);break;case _[_0x25c8f5(0x137)][_0x25c8f5(0xae)]:this[_0x25c8f5(0x123)]();break;case _[_0x25c8f5(0x137)][_0x25c8f5(0xaf)]:this[_0x25c8f5(0xe1)](_0x1a3e24);break;}}));}['tryStartPresenting'](){var _0x1eb931=_0x52bceb;this['_collabSession']['send']({'eventID':_[_0x1eb931(0x137)][_0x1eb931(0x171)],'data':{'unitID':this[_0x1eb931(0xf2)],'userID':this[_0x1eb931(0x15a)][_0x1eb931(0x115)]()}},this[_0x1eb931(0xf2)]);}[_0x52bceb(0xa8)](){var _0x38b226=_0x52bceb;this[_0x38b226(0x11a)]===_0x38b226(0xf9)&&(this[_0x38b226(0xc1)][_0x38b226(0x130)](_0x38b226(0xca)),this[_0x38b226(0x15a)]['send']({'eventID':_[_0x38b226(0x137)][_0x38b226(0xae)],'data':{'unitID':this[_0x38b226(0xf2)]}},this[_0x38b226(0xf2)]));}[_0x52bceb(0x11e)](){var _0x494573=_0x52bceb;this[_0x494573(0x11a)]==='not-following'&&(this['_status$'][_0x494573(0x130)]('following'),this[_0x494573(0x170)]());}[_0x52bceb(0xc3)](){var _0x3c4581=_0x52bceb;this['_status']===_0x3c4581(0xe4)&&this[_0x3c4581(0x11f)]();}['_handleNewHost'](_0x526ac3){var _0x10f519=_0x52bceb;const {presenter:_0x4d1274}=_0x526ac3[_0x10f519(0x103)],_0x1cb90f=this[_0x10f519(0x15a)][_0x10f519(0x115)]();this[_0x10f519(0xc5)]=_0x4d1274,_0x4d1274===_0x1cb90f?(this[_0x10f519(0x11f)](),this[_0x10f519(0x14d)]()):this[_0x10f519(0x11a)]!==_0x10f519(0xf7)&&(this[_0x10f519(0xba)](),this['_startFollowing']());}['_fetchOperations'](){var _0x329825=_0x52bceb;const _0xd58e76={'eventID':_[_0x329825(0x137)]['LIVESHARE_FETCH_OPERATIONS']};this[_0x329825(0x15a)]['send'](_0xd58e76,this[_0x329825(0xf2)]);}[_0x52bceb(0x123)](){var _0x4d792d=_0x52bceb;this[_0x4d792d(0xc5)]=null,this['_status']!==_0x4d792d(0xf9)&&this[_0x4d792d(0x165)]();}[_0x52bceb(0xe1)](_0x94fe05){var _0x38c512=_0x52bceb;if(this['_status']===_0x38c512(0xe4)&&this[_0x38c512(0xc5)]===_0x94fe05['data']['memberID']){const _0x3f2f55=_[_0x38c512(0x105)](_0x94fe05[_0x38c512(0x103)])[_0x38c512(0xda)][_0x38c512(0x14c)]()[_0x38c512(0x145)](_0x38516f=>_0x38516f['id']===C[_0x38c512(0x161)]['id']);if(_0x3f2f55){const _0x29e567=_0x3f2f55[_0x38c512(0x9d)][_0x38c512(0x139)],_0x31baf5=_0x3f2f55['params'][_0x38c512(0xf8)]['id'];setTimeout(()=>{var _0x26ee57=_0x38c512;this[_0x26ee57(0xef)][_0x26ee57(0x16e)](C[_0x26ee57(0x118)]['id'],{'unitId':_0x29e567,'subUnitId':_0x31baf5},{'fromCollab':!0x0});});}}}[_0x52bceb(0x14d)](){var _0x273e06=_0x52bceb;this[_0x273e06(0xc1)][_0x273e06(0x130)](_0x273e06(0xf9));const _0x46fe4d=new Map(),_0x49c898=this[_0x273e06(0x144)]=new o['DisposableCollection']();_0x49c898['add'](o[_0x273e06(0xbe)](()=>{var _0x14b4e7=_0x273e06;_0x46fe4d[_0x14b4e7(0x126)](_0x344de1=>_0x344de1[_0x14b4e7(0x101)]()),_0x46fe4d['clear']();})),_0x49c898[_0x273e06(0x12d)](this[_0x273e06(0xef)]['onCommandExecuted'](_0x2b8faf=>{var _0x2dba5e=_0x273e06,_0x1fc7e5;if(_0x2b8faf[_0x2dba5e(0x15c)]!==o[_0x2dba5e(0x13b)][_0x2dba5e(0x13e)]||!this[_0x2dba5e(0xd0)][_0x2dba5e(0x119)](_0x2b8faf['id']))return;const {id:_0xdcf97f}=_0x2b8faf;let _0x144da6;_0x46fe4d[_0x2dba5e(0x14e)](_0xdcf97f)?_0x144da6=_0x46fe4d['get'](_0xdcf97f):(_0x144da6=new D['Subject'](),_0x46fe4d['set'](_0xdcf97f,_0x144da6),_0x144da6[_0x2dba5e(0xa5)](b[_0x2dba5e(0x151)]((_0x1fc7e5=this[_0x2dba5e(0xea)][_0x2dba5e(0x96)](Z))!=null?_0x1fc7e5:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x50c49f=>{var _0x270d1f=_0x2dba5e;this[_0x270d1f(0x15a)][_0x270d1f(0x116)]({'eventID':_[_0x270d1f(0x137)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x270d1f(0xf2)],'operations':{[_0x50c49f['id']]:{'id':_0x50c49f['id'],'params':JSON[_0x270d1f(0xa3)](_0x50c49f[_0x270d1f(0x9d)])}}}},this[_0x270d1f(0xf2)]);})),_0x144da6[_0x2dba5e(0x130)](_0x2b8faf);})),this[_0x273e06(0xd0)][_0x273e06(0xb5)](this['_unitID'])[_0x273e06(0x126)](_0x414c65=>this[_0x273e06(0x15a)][_0x273e06(0x116)]({'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x273e06(0xf2)],'operations':{[_0x414c65['id']]:{'id':_0x414c65['id'],'params':JSON[_0x273e06(0xa3)](_0x414c65[_0x273e06(0x9d)])}}}},this[_0x273e06(0xf2)]));}[_0x52bceb(0xba)](){var _0x2e3e75=_0x52bceb,_0x3e3eb8;this['_status$'][_0x2e3e75(0x130)](_0x2e3e75(0xca)),(_0x3e3eb8=this['_commandDisposable'])==null||_0x3e3eb8[_0x2e3e75(0x9f)](),this[_0x2e3e75(0x144)]=null;}['_startFollowing'](){var _0x353fc0=_0x52bceb,_0x47ef17;(_0x47ef17=this[_0x353fc0(0x144)])==null||_0x47ef17[_0x353fc0(0x9f)](),this['_status$'][_0x353fc0(0x130)](_0x353fc0(0xe4));}[_0x52bceb(0x165)](){var _0x29442c=_0x52bceb,_0x4ca65c;this['_status$'][_0x29442c(0x130)](_0x29442c(0xca)),(_0x4ca65c=this['_commandDisposable'])==null||_0x4ca65c[_0x29442c(0x9f)](),this[_0x29442c(0x144)]=null;}[_0x52bceb(0x11f)](){var _0x468d2d=_0x52bceb,_0x22320c;this[_0x468d2d(0xc1)][_0x468d2d(0x130)]('not-following'),(_0x22320c=this['_commandDisposable'])==null||_0x22320c[_0x468d2d(0x9f)]();}[_0x52bceb(0xaa)](_0xe38ed1){var _0x23c337=_0x52bceb;if([_0x23c337(0xf9),_0x23c337(0xf7),'offline'][_0x23c337(0x140)](this[_0x23c337(0x11a)])||!_0xe38ed1['data'][_0x23c337(0xcc)]||_0xe38ed1[_0x23c337(0x103)][_0x23c337(0xcc)]===this[_0x23c337(0x15a)]['getMemberID']())return;this['_status']===_0x23c337(0xca)&&this[_0x23c337(0x170)]();const _0x3d21f4=_0xe38ed1[_0x23c337(0x103)]['operations'];Object[_0x23c337(0x143)](_0x3d21f4)[_0x23c337(0x126)](_0x395686=>{var _0x5e3447=_0x23c337;this['_commandService'][_0x5e3447(0x16e)](_0x395686['id'],_0x395686[_0x5e3447(0x9d)]?JSON[_0x5e3447(0x15e)](_0x395686[_0x5e3447(0x9d)]):null,{'fromCollab':!0x0});});}[_0x52bceb(0x158)](){var _0x25af69=_0x52bceb,_0x25a1e1;this['_status$']['next']('offline'),(_0x25a1e1=this[_0x25af69(0x144)])==null||_0x25a1e1[_0x25af69(0x9f)]();}[_0x52bceb(0x14f)](){var _0x26e704=_0x52bceb;this[_0x26e704(0xc1)][_0x26e704(0x130)]('idle'),this[_0x26e704(0xfe)]();}},exports[_0x52bceb(0x10f)]=R([S(0x2,o['IConfigService']),S(0x3,o[_0x52bceb(0xe6)](E)),S(0x4,o['ICommandService'])],exports[_0x52bceb(0x10f)]);function A(){var _0x3cc8de=_0x52bceb;const _0x1f16c1=p[_0x3cc8de(0x9a)](exports[_0x3cc8de(0xc8)]),_0x2104e5=p[_0x3cc8de(0x9a)](o[_0x3cc8de(0x177)]),_0x4bd499=p[_0x3cc8de(0x12e)](()=>_0x2104e5[_0x3cc8de(0x15f)](o[_0x3cc8de(0x107)][_0x3cc8de(0x121)]),void 0x0,!0x1,[]),[_0x250d64,_0x5a79e4]=f['useState'](null),[_0x412a26,_0x114c5d]=f['useState'](h[_0x3cc8de(0xed)]),_0x56310d=f[_0x3cc8de(0x147)](null);return f[_0x3cc8de(0x12c)](()=>(_0x4bd499&&_0x1f16c1[_0x3cc8de(0xdd)](_0x4bd499[_0x3cc8de(0x131)]())[_0x3cc8de(0x160)](_0x2759ce=>{var _0x449d94=_0x3cc8de;_0x5a79e4(_0x2759ce),_0x56310d[_0x449d94(0x11c)]=_0x2759ce[_0x449d94(0x13a)][_0x449d94(0x148)](_0x11b877=>{_0x114c5d(_0x11b877);});}),()=>{var _0x3b7368=_0x3cc8de,_0x5186a9;(_0x5186a9=_0x56310d[_0x3b7368(0x11c)])==null||_0x5186a9['unsubscribe'](),_0x56310d[_0x3b7368(0x11c)]=null;}),[_0x4bd499,_0x1f16c1]),_0x250d64?l[_0x3cc8de(0xd4)](g[_0x3cc8de(0xe5)],{'align':_0x3cc8de(0xd9),'disabled':_0x412a26===h[_0x3cc8de(0xf3)],'className':'univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','overlay':l[_0x3cc8de(0xd4)](K,{'status':_0x412a26,'coordinator':_0x250d64}),'children':l['jsx'](_0x3cc8de(0x173),{'className':g[_0x3cc8de(0xbd)]('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x412a26===h[_0x3cc8de(0xf3)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x412a26!==h[_0x3cc8de(0xf3)]}),'type':_0x3cc8de(0x173),'children':l[_0x3cc8de(0xd4)](P,{'className':'univer-size-4'})})}):null;}function K(_0x25abe4){var _0x1a438a=_0x52bceb;const {status:_0x418541,coordinator:_0x260621}=_0x25abe4;switch(_0x418541){case h['IDLE']:return l['jsx'](z,{'coordinator':_0x260621});case h[_0x1a438a(0xc4)]:return l[_0x1a438a(0xd4)](Q,{'coordinator':_0x260621});case h['NOT_FOLLOWING']:return l[_0x1a438a(0xd4)](X,{'coordinator':_0x260621});case h[_0x1a438a(0xf3)]:return l[_0x1a438a(0xd4)](te,{});case h['PRESENTING']:return l[_0x1a438a(0xd4)](ee,{'coordinator':_0x260621});default:return null;}}function z(_0x597c51){var _0x28403b=_0x52bceb;const {coordinator:_0x41d267}=_0x597c51;return l[_0x28403b(0xe3)](l[_0x28403b(0x159)],{'children':[l[_0x28403b(0xd4)](_0x28403b(0x16a),{'className':_0x28403b(0x97),'children':_0x28403b(0x9e)}),l['jsx'](g[_0x28403b(0xee)],{'onClick':()=>_0x41d267[_0x28403b(0x12a)](),'children':'Start'})]});}function Q(_0x53123f){var _0x3bbc75=_0x52bceb;const {coordinator:_0x6fd9a3}=_0x53123f;return l['jsxs'](l['Fragment'],{'children':[l[_0x3bbc75(0xd4)](_0x3bbc75(0x16a),{'className':_0x3bbc75(0x97),'children':'You\x27re\x20following\x20the\x20presenter'}),l[_0x3bbc75(0xd4)](g[_0x3bbc75(0xee)],{'onClick':()=>_0x6fd9a3[_0x3bbc75(0xc3)](),'children':_0x3bbc75(0xd6)})]});}function X(_0xcfc940){var _0x4c7f7f=_0x52bceb;const {coordinator:_0x50b0c4}=_0xcfc940;return l[_0x4c7f7f(0xe3)](l[_0x4c7f7f(0x159)],{'children':[l[_0x4c7f7f(0xd4)](_0x4c7f7f(0x16a),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l['jsx'](g['Button'],{'variant':_0x4c7f7f(0x155),'onClick':()=>_0x50b0c4[_0x4c7f7f(0x11e)](),'children':_0x4c7f7f(0xa2)})]});}function ee(_0x499fc7){var _0x1cc6be=_0x52bceb;const {coordinator:_0x5c66b3}=_0x499fc7;return l[_0x1cc6be(0xe3)](l[_0x1cc6be(0x159)],{'children':[l[_0x1cc6be(0xd4)]('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x1cc6be(0xa6)}),l['jsx'](g[_0x1cc6be(0xee)],{'variant':'default','onClick':()=>_0x5c66b3['stopPresenting'](),'children':_0x1cc6be(0xd2)})]});}function te(){var _0x3f7798=_0x52bceb;return l[_0x3f7798(0xd4)](l[_0x3f7798(0x159)],{'children':_0x3f7798(0xec)});}var ie=Object[_0x52bceb(0xa4)],ne=(_0x290d8e,_0x376297,_0xa91158,_0x5dc8ef)=>{var _0xe56df2=_0x52bceb;for(var _0x43a74c=_0x5dc8ef>0x1?void 0x0:_0x5dc8ef?ie(_0x376297,_0xa91158):_0x376297,_0x3b8de5=_0x290d8e[_0xe56df2(0x127)]-0x1,_0x11f039;_0x3b8de5>=0x0;_0x3b8de5--)(_0x11f039=_0x290d8e[_0x3b8de5])&&(_0x43a74c=_0x11f039(_0x43a74c)||_0x43a74c);return _0x43a74c;},L=(_0x30d3b6,_0xc756b9)=>(_0x2dcbd1,_0x3861f4)=>_0xc756b9(_0x2dcbd1,_0x3861f4,_0x30d3b6);exports[_0x52bceb(0x156)]=class extends o[_0x52bceb(0xb7)]{constructor(_0x2387f6,_0x59134f){var _0x20b417=_0x52bceb;super(),this[_0x20b417(0x10e)]=_0x2387f6,this['_uiPartsService']=_0x59134f,this[_0x20b417(0x129)]();}[_0x52bceb(0x129)](){var _0x332db3=_0x52bceb;this[_0x332db3(0x110)](this['_uiPartsService'][_0x332db3(0xb1)](p[_0x332db3(0xeb)]['HEADER_MENU'],()=>p['connectInjector'](A,this[_0x332db3(0x10e)])));}},exports[_0x52bceb(0x156)]=ne([L(0x0,o[_0x52bceb(0xe6)](o[_0x52bceb(0x176)])),L(0x1,p[_0x52bceb(0xe8)])],exports[_0x52bceb(0x156)]);function _0xf020(){var _0x258137=['toDisposable','map','asObservable','_status$','_univerInstanceService','stopFollowing','FOLLOWING','_presenter','getOwnPropertySymbols','live-share.config','LiveShareController','react/jsx-runtime','idle','BehaviorSubject','presenter','defineProperty','className','createElement','_liveShareService','840oYQXTB','Stop\x20presenting','DependentOn','jsx','_entities','Stop\x20following','@univerjs/design','UniverCollaborationClientPlugin','end','mutations','children','tag','getLiveShareCoordinator','SessionStatus','rxjs/operators','Plugin','_handleNewChangeSets','1092456euYgbM','jsxs','following','Dropdown','Inject','4714430PrOjEx','IUIPartsService','dispose$','_configService','BuiltInUIPart','You\x27are\x20offline.','IDLE','Button','_commandService','concat','http://www.w3.org/2000/svg','_unitID','OFFLINE','from','@univerjs-pro/collaboration','NOT_FOLLOWING','not-following','sheet','presenting','@univerjs-pro/collaboration-client','evenodd','none','_reporters','_fetchOperations','2684Dlbhct','325304FWHkvj','complete','getValue','data','_config','parseProtocolChangeset','@univerjs/core','UniverInstanceType','Module','@univerjs/sheets-ui','getTypeOfUnitDisposed$','@univerjs/sheets','createInstance','PRESENTING','_injector','LiveShareCoordinator','disposeWithMe','set','LIVESHARE_NEW_HOST','init','LiveShareIcon','getMemberID','send','merge','SetWorksheetActiveOperation','shouldShareOperation','_status','prototype','current','1em','startFollowing','_stopFollowing','UniverIcon','UNIVER_SHEET','LiveShareStatus','_handleTerminate','UniverLiveSharePlugin','hasOwnProperty','forEach','length','RxDisposable','_mountLiveShare','tryStartPresenting','registerDependencies','useEffect','add','useObservable','function','next','getUnitId','636668CWxzQE','delete','_startLiveShareCoordinator','CollaborationSessionService','7649032cncMRP','CollaborationEvent','live-share-icon','unitId','status$','CommandType','touchDependencies','_handleNewHost','OPERATION','random','includes','get','LiveShare','values','_commandDisposable','find','indexOf','useRef','subscribe','univerjs-icon\x20univerjs-icon-','SetScrollOperation','substring','reverse','_startPresenting','has','_handleOnline','event$','throttleTime','onRendered','entries','currentColor','text','DesktopLiveShareController','IConfigService','_handleOffline','Fragment','_collabSession','fill','type','rxjs','parse','getCurrentTypeOfUnit$','then','InsertSheetMutation','SAME_OPERATION_SHARE_INTERVAL','toString','toStringTag','_beIdle','UNIVER_UNKNOWN','defIds','33GuPcRc','@univerjs/ui','div','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','_sharedOperations','offline','executeCommand','LiveShareService','_startFollowing','LIVESHARE_REQUEST_HOST','assign','button','forwardRef','mask','Injector','IUniverInstanceService','takeUntil','use','10YduSeI','getConfig','univer-w-full\x20univer-mb-3\x20univer-text-sm','sessionStatus$','defs','useDependency','icon','_init','params','Present\x20this\x20document','dispose','string','symbol','Start\x20following','stringify','getOwnPropertyDescriptor','pipe','You\x27re\x20presenting\x20the\x20document','_collabSessionService','stopPresenting','displayName','_handleOperation','call','idSuffix','path','LIVESHARE_TERMINATE','NEW_CHANGESETS','9kxpgWo','registerComponent','313676psrFwD','replace','attrs','getInitialStates','ONLINE','Disposable','registerInitialStateReporter','apply','_stopPresenting','url(#$1','colorChannel1','clsx'];_0xf020=function(){return _0x258137;};return _0xf020();}var re=Object[_0x52bceb(0xcd)],se=Object[_0x52bceb(0xa4)],oe=(_0x5094c4,_0x4ed784,_0x3bad58)=>_0x4ed784 in _0x5094c4?re(_0x5094c4,_0x4ed784,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3bad58}):_0x5094c4[_0x4ed784]=_0x3bad58,ae=(_0xbd2a26,_0x4ef222,_0x2680dd,_0x594741)=>{for(var _0xf76624=_0x594741>0x1?void 0x0:_0x594741?se(_0x4ef222,_0x2680dd):_0x4ef222,_0x38c79e=_0xbd2a26['length']-0x1,_0xca8282;_0x38c79e>=0x0;_0x38c79e--)(_0xca8282=_0xbd2a26[_0x38c79e])&&(_0xf76624=_0xca8282(_0xf76624)||_0xf76624);return _0xf76624;},N=(_0x6aaeaa,_0x480136)=>(_0x420790,_0x26e03c)=>_0x480136(_0x420790,_0x26e03c,_0x6aaeaa),T=(_0x416ec6,_0x69659f,_0x1cbf96)=>oe(_0x416ec6,typeof _0x69659f!=_0x52bceb(0xa1)?_0x69659f+'':_0x69659f,_0x1cbf96);const le='UNIVER_LIVE_SHARE_PLUGIN';exports[_0x52bceb(0x124)]=class extends o[_0x52bceb(0xe0)]{constructor(_0x1aaed0=x,_0x23a845,_0xddf09d){var _0x7f7f7c=_0x52bceb;super(),this[_0x7f7f7c(0x104)]=_0x1aaed0,this['_injector']=_0x23a845,this[_0x7f7f7c(0xea)]=_0xddf09d;const {..._0x18ce1f}=o[_0x7f7f7c(0x117)]({},x,this[_0x7f7f7c(0x104)]);this[_0x7f7f7c(0xea)]['setConfig']($,_0x18ce1f);}['onStarting'](){var _0x4a7502=_0x52bceb;o[_0x4a7502(0x12b)](this[_0x4a7502(0x10e)],o['mergeOverrideWithDependencies']([[E],[exports[_0x4a7502(0xc8)]],[O],[exports['DesktopLiveShareController']]],this['_config']['override'])),o['touchDependencies'](this[_0x4a7502(0x10e)],[[O]]);}[_0x52bceb(0x152)](){var _0x43169f=_0x52bceb;o[_0x43169f(0x13c)](this[_0x43169f(0x10e)],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x52bceb(0x124)],_0x52bceb(0x15c),o[_0x52bceb(0x107)][_0x52bceb(0x166)]),T(exports[_0x52bceb(0x124)],'pluginName',le),exports['UniverLiveSharePlugin']=ae([o[_0x52bceb(0xd3)](m[_0x52bceb(0xd8)]),N(0x1,o[_0x52bceb(0xe6)](o['Injector'])),N(0x2,o[_0x52bceb(0x157)])],exports[_0x52bceb(0x124)]),exports[_0x52bceb(0x142)]=A,exports[_0x52bceb(0x16f)]=E,exports[_0x52bceb(0x122)]=h;
|
|
1
|
+
'use strict';var _0x3b6da5=_0x48b0;(function(_0x421603,_0x194873){var _0x572a6b=_0x48b0,_0xf8a294=_0x421603();while(!![]){try{var _0x330bfe=parseInt(_0x572a6b(0x16c))/0x1+-parseInt(_0x572a6b(0x1b3))/0x2+parseInt(_0x572a6b(0x203))/0x3*(parseInt(_0x572a6b(0x1d1))/0x4)+-parseInt(_0x572a6b(0x191))/0x5+parseInt(_0x572a6b(0x16a))/0x6*(parseInt(_0x572a6b(0x1ff))/0x7)+parseInt(_0x572a6b(0x20a))/0x8+parseInt(_0x572a6b(0x1e4))/0x9*(-parseInt(_0x572a6b(0x239))/0xa);if(_0x330bfe===_0x194873)break;else _0xf8a294['push'](_0xf8a294['shift']());}catch(_0x2e4244){_0xf8a294['push'](_0xf8a294['shift']());}}}(_0x5e61,0xd65be));function _0x5e61(){var _0x264603=['674008PazUcV','mutations','LiveShare','IDLE','IUIPartsService','useObservable','@univerjs/sheets','You\x27re\x20presenting\x20the\x20document','trim','_handleNewHost','@univerjs-pro/collaboration','presenting','symbol','end','_collabSession','_status','memberID','_config','_handleNewChangeSets','2493TmdmeZ','@univerjs/ui','entries','_handleOnline','parseProtocolChangeset','UniverInstanceType','1em','pluginName','Fragment','UNIVER_LIVE_SHARE_PLUGIN','Stop\x20presenting','SAME_OPERATION_SHARE_INTERVAL','values','extend','useRef','SetWorksheetActiveOperation','live-share-icon','map','_stopPresenting','call','getInitialStates','length','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','forEach','DesktopLiveShareController','_mountLiveShare','url(#$1','7LwTvZA','none','path','getOwnPropertySymbols','9gCoXdm','tag','_configService','defineProperty','startFollowing','toDisposable','_liveShareService','13535600kfvPMw','getTypeOfUnitDisposed$','getOwnPropertyDescriptor','asObservable','shouldShareOperation','ICommandService','_startFollowing','UNIVER_UNKNOWN','_fetchOperations','parse','getConfig','propertyIsEnumerable','next','init','function','offline','type','get','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','createElement','live-share.config','@univerjs-pro/collaboration-client','has','LIVESHARE_FETCH_OPERATIONS','OPERATION','operations','button','setConfig','_entities','univerjs-icon\x20univerjs-icon-','Injector','tryStartPresenting','sessionStatus$','LiveShareCoordinator','from','colorChannel1','react/jsx-runtime','LIVESHARE_TERMINATE','icon','CollaborationEvent','override','idle','hasOwnProperty','delete','indexOf','univer-w-full\x20univer-mb-3\x20univer-text-sm','_commandService','48770YcmcAD','fill','registerComponent','throttleTime','status$','LIVESHARE_OPERATION','disposeWithMe','concat','BuiltInUIPart','clsx','_collabSessionService','Module','CommandType','touchDependencies','displayName','InsertSheetMutation','_sharedOperations','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','pipe','className','onCommandExecuted','Dropdown','Disposable','LiveShareStatus','SessionStatus','ONLINE','reverse','@univerjs/sheets-ui','current','NEW_CHANGESETS','5868402AniChi','defIds','793629ZnZemP','_handleOffline','LiveShareController','random','then','stopPresenting','useState','RxDisposable','OFFLINE','rxjs/operators','rxjs','http://www.w3.org/2000/svg','requireSession','idSuffix','_beIdle','_commandDisposable','FOLLOWING','use','You\x27re\x20following\x20the\x20presenter','toStringTag','_injector','presenter','params','toString','registerSharedOperation','DependentOn','dispose','string','not-following','apply','jsxs','_univerInstanceService','Inject','_handleOperation','stopFollowing','_startLiveShareCoordinator','NOT_FOLLOWING','5507065BeNwoD','_reporters','_status$','Subject','BehaviorSubject','You\x27are\x20offline.','Plugin','takeUntil','merge','univer-size-4','LIVESHARE_REQUEST_HOST','defs','getValue','jsx','add','_handleTerminate','LiveShareIcon','CollaborationSessionService','_unitID','xlink:href','Button','UniverIcon','mask','data','default','UNIVER_SHEET','dispose$','sheet','@univerjs/design','IConfigService','div','stringify','PRESENTING','LIVESHARE_NEW_HOST','1277592fhhtMq','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','_presenter','following','getMemberID','evenodd','set','HEADER_MENU','svg','_startPresenting','UniverLiveSharePlugin','getUnitId','currentColor','send','includes','find','_init','prototype','Start\x20following','_uiPartsService','_stopFollowing','attrs','unsubscribe','complete','LiveShareService','children','SetScrollOperation','assign','replace','subscribe'];_0x5e61=function(){return _0x264603;};return _0x5e61();}var U=Object['defineProperty'],F=(_0x98f691,_0x370ef9,_0x528e24)=>_0x370ef9 in _0x98f691?U(_0x98f691,_0x370ef9,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x528e24}):_0x98f691[_0x370ef9]=_0x528e24,v=(_0x3c0d2b,_0x2c79a5,_0x5416a9)=>F(_0x3c0d2b,typeof _0x2c79a5!=_0x3b6da5(0x1dd)?_0x2c79a5+'':_0x2c79a5,_0x5416a9);Object[_0x3b6da5(0x206)](exports,Symbol[_0x3b6da5(0x17f)],{'value':_0x3b6da5(0x157)});const m=require(_0x3b6da5(0x21f)),o=require('@univerjs/core'),C=require(_0x3b6da5(0x1d7)),w=require(_0x3b6da5(0x167)),p=require(_0x3b6da5(0x1e5)),l=require(_0x3b6da5(0x22e)),g=require(_0x3b6da5(0x1ad)),f=require('react'),_=require(_0x3b6da5(0x1db)),D=require(_0x3b6da5(0x176)),b=require(_0x3b6da5(0x175)),$=_0x3b6da5(0x21e),x={};class O extends o['Disposable']{constructor(){var _0x271e38=_0x3b6da5;super(...arguments),v(this,_0x271e38(0x15c),new Set()),v(this,_0x271e38(0x192),new Set());}[_0x3b6da5(0x184)](_0x473d20){var _0x2f06e7=_0x3b6da5;return this[_0x2f06e7(0x15c)][_0x2f06e7(0x19f)](_0x473d20),o[_0x2f06e7(0x208)](()=>this[_0x2f06e7(0x15c)][_0x2f06e7(0x235)](_0x473d20));}['registerInitialStateReporter'](_0x43b94c){var _0x2c9bdc=_0x3b6da5;return this['_reporters']['add'](_0x43b94c),o['toDisposable'](()=>this[_0x2c9bdc(0x192)][_0x2c9bdc(0x235)](_0x43b94c));}['shouldShareOperation'](_0x24fc88){return this['_sharedOperations']['has'](_0x24fc88);}[_0x3b6da5(0x1f8)](_0x4fccf4){var _0x49c5fd=_0x3b6da5;return Array[_0x49c5fd(0x22c)](this[_0x49c5fd(0x192)])[_0x49c5fd(0x1f5)](_0x3e16af=>_0x3e16af(_0x4fccf4));}}var H=Object[_0x3b6da5(0x20c)],V=(_0x30c4f4,_0x5ce0c,_0x2d7198,_0x477a37)=>{for(var _0x546603=_0x477a37>0x1?void 0x0:_0x477a37?H(_0x5ce0c,_0x2d7198):_0x5ce0c,_0x530e51=_0x30c4f4['length']-0x1,_0x3f497c;_0x530e51>=0x0;_0x530e51--)(_0x3f497c=_0x30c4f4[_0x530e51])&&(_0x546603=_0x3f497c(_0x546603)||_0x546603);return _0x546603;},k=(_0x4e125b,_0xd4d0f)=>(_0x4a1d69,_0x21fb7e)=>_0xd4d0f(_0x4a1d69,_0x21fb7e,_0x4e125b);let E=class extends o[_0x3b6da5(0x162)]{constructor(_0xb83b0f){var _0x460e1f=_0x3b6da5;super(),this['_liveShareService']=_0xb83b0f,this[_0x460e1f(0x1c3)]();}['_init'](){var _0x36afd1=_0x3b6da5;[w['SetZoomRatioOperation']['id'],w[_0x36afd1(0x1cd)]['id'],C[_0x36afd1(0x1f3)]['id']][_0x36afd1(0x1fb)](_0x59577f=>{var _0x3d8448=_0x36afd1;this[_0x3d8448(0x152)](this[_0x3d8448(0x209)][_0x3d8448(0x184)](_0x59577f));});}};E=V([k(0x0,o[_0x3b6da5(0x18c)](O))],E);var u=function(){var _0x28d5f4=_0x3b6da5;return u=Object[_0x28d5f4(0x1ce)]||function(_0x181798){var _0x40ce3b=_0x28d5f4;for(var _0x425287,_0x375b1f=0x1,_0x1219cc=arguments[_0x40ce3b(0x1f9)];_0x375b1f<_0x1219cc;_0x375b1f++){_0x425287=arguments[_0x375b1f];for(var _0x42691b in _0x425287)Object[_0x40ce3b(0x1c4)][_0x40ce3b(0x234)][_0x40ce3b(0x1f7)](_0x425287,_0x42691b)&&(_0x181798[_0x42691b]=_0x425287[_0x42691b]);}return _0x181798;},u[_0x28d5f4(0x189)](this,arguments);},M=function(_0x4dde14,_0x5755cd){var _0x1b8496=_0x3b6da5,_0x338119={};for(var _0x527fca in _0x4dde14)Object['prototype']['hasOwnProperty'][_0x1b8496(0x1f7)](_0x4dde14,_0x527fca)&&_0x5755cd[_0x1b8496(0x236)](_0x527fca)<0x0&&(_0x338119[_0x527fca]=_0x4dde14[_0x527fca]);if(_0x4dde14!=null&&typeof Object[_0x1b8496(0x202)]==_0x1b8496(0x218)){for(var _0x457f46=0x0,_0x527fca=Object[_0x1b8496(0x202)](_0x4dde14);_0x457f46<_0x527fca['length'];_0x457f46++)_0x5755cd[_0x1b8496(0x236)](_0x527fca[_0x457f46])<0x0&&Object[_0x1b8496(0x1c4)][_0x1b8496(0x215)][_0x1b8496(0x1f7)](_0x4dde14,_0x527fca[_0x457f46])&&(_0x338119[_0x527fca[_0x457f46]]=_0x4dde14[_0x527fca[_0x457f46]]);}return _0x338119;},j=f['forwardRef'](function(_0x233c40,_0x2d306a){var _0x5ba81d=_0x3b6da5,_0x4aa889=_0x233c40['icon'],_0x46e6df=_0x233c40['id'],_0x3697a8=_0x233c40[_0x5ba81d(0x15f)],_0x34b35c=_0x233c40[_0x5ba81d(0x1f1)],_0x5d2215=M(_0x233c40,[_0x5ba81d(0x230),'id',_0x5ba81d(0x15f),_0x5ba81d(0x1f1)]),_0x4d8170=_0x5ba81d(0x227)[_0x5ba81d(0x153)](_0x46e6df,'\x20')[_0x5ba81d(0x153)](_0x3697a8||'')[_0x5ba81d(0x1d9)](),_0x4e70a1=f[_0x5ba81d(0x1f2)]('_'[_0x5ba81d(0x153)](G()));return y(_0x4aa889,''[_0x5ba81d(0x153)](_0x46e6df),{'defIds':_0x4aa889[_0x5ba81d(0x16b)],'idSuffix':_0x4e70a1[_0x5ba81d(0x168)]},u({'ref':_0x2d306a,'className':_0x4d8170},_0x5d2215),_0x34b35c);});function y(_0x571e2b,_0x2fca5f,_0x5216da,_0xcb6926,_0x48105d){var _0x2cbbf8=_0x3b6da5;return f[_0x2cbbf8(0x21d)](_0x571e2b[_0x2cbbf8(0x204)],u(u({'key':_0x2fca5f},q(_0x571e2b,_0x5216da,_0x48105d)),_0xcb6926),(W(_0x571e2b,_0x5216da)[_0x2cbbf8(0x1cc)]||[])[_0x2cbbf8(0x1f5)](function(_0x5ad7dc,_0x327e66){var _0x1c0d69=_0x2cbbf8;return y(_0x5ad7dc,''[_0x1c0d69(0x153)](_0x2fca5f,'-')[_0x1c0d69(0x153)](_0x571e2b[_0x1c0d69(0x204)],'-')[_0x1c0d69(0x153)](_0x327e66),_0x5216da,void 0x0,_0x48105d);}));}function q(_0x3c11b1,_0x4cb328,_0x4e53bc){var _0x40e128=_0x3b6da5,_0x20e9b4=u({},_0x3c11b1[_0x40e128(0x1c8)]);_0x4e53bc!=null&&_0x4e53bc[_0x40e128(0x22d)]&&_0x20e9b4[_0x40e128(0x23a)]==='colorChannel1'&&(_0x20e9b4['fill']=_0x4e53bc['colorChannel1']),_0x3c11b1[_0x40e128(0x204)]==='mask'&&_0x20e9b4['id']&&(_0x20e9b4['id']=_0x20e9b4['id']+_0x4cb328[_0x40e128(0x179)]),Object['entries'](_0x20e9b4)[_0x40e128(0x1fb)](function(_0x235696){var _0x3abf7a=_0x40e128,_0x121213=_0x235696[0x0],_0x358941=_0x235696[0x1];_0x121213===_0x3abf7a(0x1a7)&&typeof _0x358941==_0x3abf7a(0x187)&&(_0x20e9b4[_0x121213]=_0x358941[_0x3abf7a(0x1cf)](/url\(#(.*)\)/,_0x3abf7a(0x1fe)[_0x3abf7a(0x153)](_0x4cb328[_0x3abf7a(0x179)],')')));});var _0x5c6b61=_0x4cb328[_0x40e128(0x16b)];return!_0x5c6b61||_0x5c6b61['length']===0x0||(_0x3c11b1['tag']===_0x40e128(0x17d)&&_0x20e9b4[_0x40e128(0x1a4)]&&(_0x20e9b4[_0x40e128(0x1a4)]=_0x20e9b4['xlink:href']+_0x4cb328[_0x40e128(0x179)]),Object[_0x40e128(0x1e6)](_0x20e9b4)[_0x40e128(0x1fb)](function(_0x47a11a){var _0x1afe2d=_0x40e128,_0x1aeb0a=_0x47a11a[0x0],_0x1ce0ab=_0x47a11a[0x1];typeof _0x1ce0ab==_0x1afe2d(0x187)&&(_0x20e9b4[_0x1aeb0a]=_0x1ce0ab[_0x1afe2d(0x1cf)](/url\(#(.*)\)/,_0x1afe2d(0x1fe)[_0x1afe2d(0x153)](_0x4cb328[_0x1afe2d(0x179)],')')));})),_0x20e9b4;}function W(_0x65ae10,_0x51e8eb){var _0x34ea77=_0x3b6da5,_0x403116,_0x41ffb9=_0x51e8eb['defIds'];return!_0x41ffb9||_0x41ffb9[_0x34ea77(0x1f9)]===0x0?_0x65ae10:_0x65ae10[_0x34ea77(0x204)]===_0x34ea77(0x19c)&&(!((_0x403116=_0x65ae10[_0x34ea77(0x1cc)])===null||_0x403116===void 0x0)&&_0x403116[_0x34ea77(0x1f9)])?u(u({},_0x65ae10),{'children':_0x65ae10[_0x34ea77(0x1cc)][_0x34ea77(0x1f5)](function(_0x21702a){var _0x233360=_0x34ea77;return typeof _0x21702a[_0x233360(0x1c8)]['id']=='string'&&_0x41ffb9&&_0x41ffb9['includes'](_0x21702a['attrs']['id'])?u(u({},_0x21702a),{'attrs':u(u({},_0x21702a[_0x233360(0x1c8)]),{'id':_0x21702a[_0x233360(0x1c8)]['id']+_0x51e8eb[_0x233360(0x179)]})}):_0x21702a;})}):_0x65ae10;}function G(){var _0xd84554=_0x3b6da5;return Math[_0xd84554(0x16f)]()[_0xd84554(0x183)](0x24)['substring'](0x2,0x8);}j[_0x3b6da5(0x15a)]=_0x3b6da5(0x1a6);var B={'tag':_0x3b6da5(0x1bb),'attrs':{'xmlns':_0x3b6da5(0x177),'fill':_0x3b6da5(0x200),'viewBox':'0\x200\x2017\x2017','width':_0x3b6da5(0x1ea),'height':'1em'},'children':[{'tag':_0x3b6da5(0x201),'attrs':{'fill':_0x3b6da5(0x1bf),'d':_0x3b6da5(0x21c)}},{'tag':'path','attrs':{'fill':_0x3b6da5(0x1bf),'d':_0x3b6da5(0x15d),'fillRule':_0x3b6da5(0x1b8),'clipRule':_0x3b6da5(0x1b8)}}]},P=f['forwardRef'](function(_0x55b72e,_0x6e5c84){var _0x4e0750=_0x3b6da5;return f[_0x4e0750(0x21d)](j,Object['assign']({},_0x55b72e,{'id':_0x4e0750(0x1f4),'ref':_0x6e5c84,'icon':B}));});P[_0x3b6da5(0x15a)]=_0x3b6da5(0x1a1);var Y=Object['getOwnPropertyDescriptor'],R=(_0x4f8440,_0x5d500f,_0x6f97ef,_0x22aacb)=>{var _0x5938de=_0x3b6da5;for(var _0x2266ea=_0x22aacb>0x1?void 0x0:_0x22aacb?Y(_0x5d500f,_0x6f97ef):_0x5d500f,_0xf8109c=_0x4f8440[_0x5938de(0x1f9)]-0x1,_0x3b5bae;_0xf8109c>=0x0;_0xf8109c--)(_0x3b5bae=_0x4f8440[_0xf8109c])&&(_0x2266ea=_0x3b5bae(_0x2266ea)||_0x2266ea);return _0x2266ea;},S=(_0x1d56ae,_0x163481)=>(_0x1ea2da,_0x32b859)=>_0x163481(_0x1ea2da,_0x32b859,_0x1d56ae);exports[_0x3b6da5(0x16e)]=class extends o[_0x3b6da5(0x173)]{constructor(_0x22d548,_0x3c39f4,_0x42904e){var _0x2b6adc=_0x3b6da5;super(),v(this,_0x2b6adc(0x226),new Map()),(this['_univerInstanceService']=_0x22d548,this[_0x2b6adc(0x180)]=_0x3c39f4,this['_collabSessionService']=_0x42904e,this['_init']());}async['getLiveShareCoordinator'](_0x48c4eb){var _0x519f7b=_0x3b6da5;return this[_0x519f7b(0x226)][_0x519f7b(0x220)](_0x48c4eb)||await this[_0x519f7b(0x18f)](_0x48c4eb),this[_0x519f7b(0x226)][_0x519f7b(0x21b)](_0x48c4eb);}['_init'](){var _0x39fd65=_0x3b6da5;this[_0x39fd65(0x18b)]['getTypeOfUnitAdded$'](o['UniverInstanceType'][_0x39fd65(0x1aa)])[_0x39fd65(0x15e)](b['takeUntil'](this[_0x39fd65(0x1ab)]))[_0x39fd65(0x1d0)](async _0x242df6=>{var _0x41916e=_0x39fd65;const _0x147c76=_0x242df6['getUnitId']();this['_entities'][_0x41916e(0x220)](_0x147c76)||this[_0x41916e(0x18f)](_0x147c76);}),this['_univerInstanceService'][_0x39fd65(0x20b)](o['UniverInstanceType'][_0x39fd65(0x1aa)])['pipe'](b['takeUntil'](this[_0x39fd65(0x1ab)]))[_0x39fd65(0x1d0)](_0x2b6fc6=>{var _0x36172b=_0x39fd65;const _0x518990=_0x2b6fc6[_0x36172b(0x1be)](),_0x3d6746=this['_entities']['get'](_0x518990);_0x3d6746==null||_0x3d6746[_0x36172b(0x186)]();});}async['_startLiveShareCoordinator'](_0xc057ef){var _0x4c1162=_0x3b6da5;const _0x1510b6=await this[_0x4c1162(0x156)][_0x4c1162(0x178)](_0xc057ef),_0x420688=this['_injector']['createInstance'](exports['LiveShareCoordinator'],_0xc057ef,_0x1510b6);return _0x420688[_0x4c1162(0x217)](),this[_0x4c1162(0x226)][_0x4c1162(0x1b9)](_0xc057ef,_0x420688),_0x420688;}},exports[_0x3b6da5(0x16e)]=R([S(0x0,o['IUniverInstanceService']),S(0x1,o['Inject'](o[_0x3b6da5(0x228)])),S(0x2,o[_0x3b6da5(0x18c)](m[_0x3b6da5(0x1a2)]))],exports['LiveShareController']);var h=(_0x525154=>(_0x525154[_0x3b6da5(0x174)]=_0x3b6da5(0x219),_0x525154[_0x3b6da5(0x1d4)]='idle',_0x525154[_0x3b6da5(0x17c)]='following',_0x525154['NOT_FOLLOWING']=_0x3b6da5(0x188),_0x525154[_0x3b6da5(0x1b1)]=_0x3b6da5(0x1dc),_0x525154))(h||{});const Z=_0x3b6da5(0x1ef),J=0xc8;exports[_0x3b6da5(0x22b)]=class extends o['RxDisposable']{constructor(_0x1780ef,_0x371483,_0x518a79,_0x2c39ab,_0x30ff82){var _0x37c583=_0x3b6da5;super(),v(this,_0x37c583(0x193),new D[(_0x37c583(0x195))](_0x37c583(0x233))),v(this,_0x37c583(0x150),this[_0x37c583(0x193)][_0x37c583(0x20d)]()),v(this,'_init',!0x1),v(this,'_commandDisposable',null),v(this,'_presenter',null),(this[_0x37c583(0x1a3)]=_0x1780ef,this['_collabSession']=_0x371483,this[_0x37c583(0x205)]=_0x518a79,this['_liveShareService']=_0x2c39ab,this[_0x37c583(0x238)]=_0x30ff82);}get['_status'](){var _0x336898=_0x3b6da5;return this[_0x336898(0x193)][_0x336898(0x19d)]();}[_0x3b6da5(0x186)](){var _0x3c6424=_0x3b6da5,_0x371241;(_0x371241=this[_0x3c6424(0x17b)])==null||_0x371241[_0x3c6424(0x186)](),this[_0x3c6424(0x193)][_0x3c6424(0x216)](_0x3c6424(0x233)),this['_status$'][_0x3c6424(0x1ca)]();}[_0x3b6da5(0x217)](){var _0x5dfe84=_0x3b6da5;this[_0x5dfe84(0x1c3)]||(this[_0x5dfe84(0x1c3)]=!0x0,this[_0x5dfe84(0x1df)][_0x5dfe84(0x22a)][_0x5dfe84(0x15e)](b[_0x5dfe84(0x198)](this[_0x5dfe84(0x1ab)]))[_0x5dfe84(0x1d0)](_0x29c92d=>{var _0x832ec0=_0x5dfe84;switch(_0x29c92d){case m[_0x832ec0(0x164)]['OFFLINE']:this[_0x832ec0(0x16d)]();break;case m[_0x832ec0(0x164)][_0x832ec0(0x165)]:this[_0x832ec0(0x1e7)]();break;}}),this[_0x5dfe84(0x1df)]['event$'][_0x5dfe84(0x15e)](b[_0x5dfe84(0x198)](this['dispose$']))[_0x5dfe84(0x1d0)](_0x460e2f=>{var _0x47df8b=_0x5dfe84;const {eventID:_0x414acd}=_0x460e2f;switch(_0x414acd){case _['CollaborationEvent'][_0x47df8b(0x1b2)]:this[_0x47df8b(0x1da)](_0x460e2f);break;case _[_0x47df8b(0x231)][_0x47df8b(0x151)]:this[_0x47df8b(0x18d)](_0x460e2f);break;case _['CollaborationEvent'][_0x47df8b(0x22f)]:this['_handleTerminate']();break;case _['CollaborationEvent'][_0x47df8b(0x169)]:this[_0x47df8b(0x1e3)](_0x460e2f);break;}}));}[_0x3b6da5(0x229)](){var _0x11b4c0=_0x3b6da5;this['_collabSession'][_0x11b4c0(0x1c0)]({'eventID':_['CollaborationEvent'][_0x11b4c0(0x19b)],'data':{'unitID':this[_0x11b4c0(0x1a3)],'userID':this[_0x11b4c0(0x1df)][_0x11b4c0(0x1b7)]()}},this[_0x11b4c0(0x1a3)]);}[_0x3b6da5(0x171)](){var _0x40d049=_0x3b6da5;this[_0x40d049(0x1e0)]===_0x40d049(0x1dc)&&(this[_0x40d049(0x193)][_0x40d049(0x216)](_0x40d049(0x233)),this[_0x40d049(0x1df)]['send']({'eventID':_[_0x40d049(0x231)][_0x40d049(0x22f)],'data':{'unitID':this[_0x40d049(0x1a3)]}},this['_unitID']));}[_0x3b6da5(0x207)](){var _0x4e58e5=_0x3b6da5;this[_0x4e58e5(0x1e0)]===_0x4e58e5(0x188)&&(this[_0x4e58e5(0x193)][_0x4e58e5(0x216)](_0x4e58e5(0x1b6)),this[_0x4e58e5(0x210)]());}[_0x3b6da5(0x18e)](){var _0x5c5aaa=_0x3b6da5;this['_status']===_0x5c5aaa(0x1b6)&&this[_0x5c5aaa(0x1c7)]();}[_0x3b6da5(0x1da)](_0x46deb4){var _0x4df05f=_0x3b6da5;const {presenter:_0x1fc969}=_0x46deb4[_0x4df05f(0x1a8)],_0x218a94=this[_0x4df05f(0x1df)][_0x4df05f(0x1b7)]();this[_0x4df05f(0x1b5)]=_0x1fc969,_0x1fc969===_0x218a94?(this[_0x4df05f(0x1c7)](),this[_0x4df05f(0x1bc)]()):this['_status']!==_0x4df05f(0x188)&&(this[_0x4df05f(0x1f6)](),this[_0x4df05f(0x210)]());}[_0x3b6da5(0x212)](){var _0x3475cd=_0x3b6da5;const _0xf65ef9={'eventID':_[_0x3475cd(0x231)][_0x3475cd(0x221)]};this[_0x3475cd(0x1df)][_0x3475cd(0x1c0)](_0xf65ef9,this[_0x3475cd(0x1a3)]);}[_0x3b6da5(0x1a0)](){var _0x31f3f8=_0x3b6da5;this[_0x31f3f8(0x1b5)]=null,this[_0x31f3f8(0x1e0)]!=='presenting'&&this[_0x31f3f8(0x17a)]();}[_0x3b6da5(0x1e3)](_0x3594fc){var _0x5d6c97=_0x3b6da5;if(this[_0x5d6c97(0x1e0)]===_0x5d6c97(0x1b6)&&this['_presenter']===_0x3594fc[_0x5d6c97(0x1a8)][_0x5d6c97(0x1e1)]){const _0x4a6eb7=_[_0x5d6c97(0x1e8)](_0x3594fc['data'])[_0x5d6c97(0x1d2)][_0x5d6c97(0x166)]()[_0x5d6c97(0x1c2)](_0x7d7a06=>_0x7d7a06['id']===C[_0x5d6c97(0x15b)]['id']);if(_0x4a6eb7){const _0x17b0e6=_0x4a6eb7[_0x5d6c97(0x182)]['unitId'],_0x4ab903=_0x4a6eb7['params'][_0x5d6c97(0x1ac)]['id'];setTimeout(()=>{var _0x392547=_0x5d6c97;this[_0x392547(0x238)]['executeCommand'](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x17b0e6,'subUnitId':_0x4ab903},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x3fc1ce=_0x3b6da5;this['_status$']['next']('presenting');const _0x5c53a5=new Map(),_0x34406e=this[_0x3fc1ce(0x17b)]=new o['DisposableCollection']();_0x34406e[_0x3fc1ce(0x19f)](o[_0x3fc1ce(0x208)](()=>{var _0x26df95=_0x3fc1ce;_0x5c53a5[_0x26df95(0x1fb)](_0x212fc3=>_0x212fc3['complete']()),_0x5c53a5['clear']();})),_0x34406e[_0x3fc1ce(0x19f)](this[_0x3fc1ce(0x238)][_0x3fc1ce(0x160)](_0x326484=>{var _0x380dc=_0x3fc1ce,_0x4391d1;if(_0x326484[_0x380dc(0x21a)]!==o[_0x380dc(0x158)][_0x380dc(0x222)]||!this['_liveShareService'][_0x380dc(0x20e)](_0x326484['id']))return;const {id:_0x255d41}=_0x326484;let _0x5274d8;_0x5c53a5[_0x380dc(0x220)](_0x255d41)?_0x5274d8=_0x5c53a5[_0x380dc(0x21b)](_0x255d41):(_0x5274d8=new D[(_0x380dc(0x194))](),_0x5c53a5[_0x380dc(0x1b9)](_0x255d41,_0x5274d8),_0x5274d8[_0x380dc(0x15e)](b[_0x380dc(0x23c)]((_0x4391d1=this['_configService'][_0x380dc(0x214)](Z))!=null?_0x4391d1:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x380dc(0x1d0)](_0x5184bf=>{var _0x483034=_0x380dc;this[_0x483034(0x1df)]['send']({'eventID':_[_0x483034(0x231)]['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x483034(0x1a3)],'operations':{[_0x5184bf['id']]:{'id':_0x5184bf['id'],'params':JSON[_0x483034(0x1b0)](_0x5184bf[_0x483034(0x182)])}}}},this[_0x483034(0x1a3)]);})),_0x5274d8['next'](_0x326484);})),this[_0x3fc1ce(0x209)][_0x3fc1ce(0x1f8)](this['_unitID'])[_0x3fc1ce(0x1fb)](_0x3bcdc3=>this[_0x3fc1ce(0x1df)]['send']({'eventID':_['CollaborationEvent'][_0x3fc1ce(0x151)],'data':{'unitID':this[_0x3fc1ce(0x1a3)],'operations':{[_0x3bcdc3['id']]:{'id':_0x3bcdc3['id'],'params':JSON[_0x3fc1ce(0x1b0)](_0x3bcdc3[_0x3fc1ce(0x182)])}}}},this[_0x3fc1ce(0x1a3)]));}[_0x3b6da5(0x1f6)](){var _0x1372a9=_0x3b6da5,_0x47053f;this[_0x1372a9(0x193)][_0x1372a9(0x216)](_0x1372a9(0x233)),(_0x47053f=this[_0x1372a9(0x17b)])==null||_0x47053f['dispose'](),this[_0x1372a9(0x17b)]=null;}['_startFollowing'](){var _0x59cff2=_0x3b6da5,_0x4ae100;(_0x4ae100=this[_0x59cff2(0x17b)])==null||_0x4ae100['dispose'](),this[_0x59cff2(0x193)]['next'](_0x59cff2(0x1b6));}['_beIdle'](){var _0xa0f441=_0x3b6da5,_0x5737b2;this[_0xa0f441(0x193)][_0xa0f441(0x216)](_0xa0f441(0x233)),(_0x5737b2=this[_0xa0f441(0x17b)])==null||_0x5737b2[_0xa0f441(0x186)](),this[_0xa0f441(0x17b)]=null;}[_0x3b6da5(0x1c7)](){var _0x2e04d5=_0x3b6da5,_0x576905;this[_0x2e04d5(0x193)][_0x2e04d5(0x216)](_0x2e04d5(0x188)),(_0x576905=this[_0x2e04d5(0x17b)])==null||_0x576905[_0x2e04d5(0x186)]();}[_0x3b6da5(0x18d)](_0x5dd23b){var _0x2432fc=_0x3b6da5;if([_0x2432fc(0x1dc),'not-following',_0x2432fc(0x219)][_0x2432fc(0x1c1)](this['_status'])||!_0x5dd23b[_0x2432fc(0x1a8)]['presenter']||_0x5dd23b[_0x2432fc(0x1a8)][_0x2432fc(0x181)]===this['_collabSession'][_0x2432fc(0x1b7)]())return;this[_0x2432fc(0x1e0)]===_0x2432fc(0x233)&&this[_0x2432fc(0x210)]();const _0x437fda=_0x5dd23b[_0x2432fc(0x1a8)][_0x2432fc(0x223)];Object[_0x2432fc(0x1f0)](_0x437fda)[_0x2432fc(0x1fb)](_0x5156ef=>{var _0x15f601=_0x2432fc;this[_0x15f601(0x238)]['executeCommand'](_0x5156ef['id'],_0x5156ef[_0x15f601(0x182)]?JSON[_0x15f601(0x213)](_0x5156ef[_0x15f601(0x182)]):null,{'fromCollab':!0x0});});}[_0x3b6da5(0x16d)](){var _0x558baa=_0x3b6da5,_0x1a0097;this[_0x558baa(0x193)][_0x558baa(0x216)](_0x558baa(0x219)),(_0x1a0097=this['_commandDisposable'])==null||_0x1a0097['dispose']();}['_handleOnline'](){var _0x15a052=_0x3b6da5;this[_0x15a052(0x193)][_0x15a052(0x216)](_0x15a052(0x233)),this[_0x15a052(0x212)]();}},exports[_0x3b6da5(0x22b)]=R([S(0x2,o[_0x3b6da5(0x1ae)]),S(0x3,o[_0x3b6da5(0x18c)](O)),S(0x4,o[_0x3b6da5(0x20f)])],exports[_0x3b6da5(0x22b)]);function A(){var _0x4fbd4d=_0x3b6da5;const _0x5dd89a=p['useDependency'](exports['LiveShareController']),_0x517118=p['useDependency'](o['IUniverInstanceService']),_0x3bac6b=p[_0x4fbd4d(0x1d6)](()=>_0x517118['getCurrentTypeOfUnit$'](o[_0x4fbd4d(0x1e9)][_0x4fbd4d(0x1aa)]),void 0x0,!0x1,[]),[_0x553fd8,_0xfea547]=f[_0x4fbd4d(0x172)](null),[_0x435a1c,_0x7beca2]=f[_0x4fbd4d(0x172)](h[_0x4fbd4d(0x1d4)]),_0x293f80=f['useRef'](null);return f['useEffect'](()=>(_0x3bac6b&&_0x5dd89a['getLiveShareCoordinator'](_0x3bac6b['getUnitId']())[_0x4fbd4d(0x170)](_0x30a48b=>{var _0x16bfb1=_0x4fbd4d;_0xfea547(_0x30a48b),_0x293f80[_0x16bfb1(0x168)]=_0x30a48b['status$'][_0x16bfb1(0x1d0)](_0x54188f=>{_0x7beca2(_0x54188f);});}),()=>{var _0x2bd0dd=_0x4fbd4d,_0x429a2b;(_0x429a2b=_0x293f80[_0x2bd0dd(0x168)])==null||_0x429a2b[_0x2bd0dd(0x1c9)](),_0x293f80[_0x2bd0dd(0x168)]=null;}),[_0x3bac6b,_0x5dd89a]),_0x553fd8?l[_0x4fbd4d(0x19e)](g[_0x4fbd4d(0x161)],{'align':_0x4fbd4d(0x1de),'disabled':_0x435a1c===h[_0x4fbd4d(0x174)],'className':_0x4fbd4d(0x1b4),'overlay':l['jsx'](K,{'status':_0x435a1c,'coordinator':_0x553fd8}),'children':l[_0x4fbd4d(0x19e)](_0x4fbd4d(0x224),{'className':g[_0x4fbd4d(0x155)](_0x4fbd4d(0x1fa),{'univer-cursor-not-allowed':_0x435a1c===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x435a1c!==h[_0x4fbd4d(0x174)]}),'type':_0x4fbd4d(0x224),'children':l[_0x4fbd4d(0x19e)](P,{'className':_0x4fbd4d(0x19a)})})}):null;}function K(_0x263251){var _0x516d8e=_0x3b6da5;const {status:_0x222fef,coordinator:_0x1e69a8}=_0x263251;switch(_0x222fef){case h[_0x516d8e(0x1d4)]:return l[_0x516d8e(0x19e)](z,{'coordinator':_0x1e69a8});case h[_0x516d8e(0x17c)]:return l['jsx'](Q,{'coordinator':_0x1e69a8});case h[_0x516d8e(0x190)]:return l[_0x516d8e(0x19e)](X,{'coordinator':_0x1e69a8});case h[_0x516d8e(0x174)]:return l[_0x516d8e(0x19e)](te,{});case h[_0x516d8e(0x1b1)]:return l['jsx'](ee,{'coordinator':_0x1e69a8});default:return null;}}function z(_0x1f4e0d){var _0x4720d9=_0x3b6da5;const {coordinator:_0x3ce870}=_0x1f4e0d;return l[_0x4720d9(0x18a)](l[_0x4720d9(0x1ec)],{'children':[l['jsx']('div',{'className':_0x4720d9(0x237),'children':'Present\x20this\x20document'}),l[_0x4720d9(0x19e)](g[_0x4720d9(0x1a5)],{'onClick':()=>_0x3ce870['tryStartPresenting'](),'children':'Start'})]});}function Q(_0x2a1e99){var _0x142035=_0x3b6da5;const {coordinator:_0x544fd4}=_0x2a1e99;return l['jsxs'](l[_0x142035(0x1ec)],{'children':[l[_0x142035(0x19e)](_0x142035(0x1af),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x142035(0x17e)}),l['jsx'](g[_0x142035(0x1a5)],{'onClick':()=>_0x544fd4['stopFollowing'](),'children':'Stop\x20following'})]});}function _0x48b0(_0xed7fa0,_0x1f6071){var _0x5e611c=_0x5e61();return _0x48b0=function(_0x48b04c,_0x18bf38){_0x48b04c=_0x48b04c-0x150;var _0x1310c9=_0x5e611c[_0x48b04c];return _0x1310c9;},_0x48b0(_0xed7fa0,_0x1f6071);}function X(_0x307cd0){var _0x1003cc=_0x3b6da5;const {coordinator:_0x3de4b5}=_0x307cd0;return l[_0x1003cc(0x18a)](l['Fragment'],{'children':[l[_0x1003cc(0x19e)](_0x1003cc(0x1af),{'className':_0x1003cc(0x237),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x1003cc(0x19e)](g[_0x1003cc(0x1a5)],{'variant':'text','onClick':()=>_0x3de4b5['startFollowing'](),'children':_0x1003cc(0x1c5)})]});}function ee(_0x118f69){var _0x48e063=_0x3b6da5;const {coordinator:_0x282ede}=_0x118f69;return l['jsxs'](l[_0x48e063(0x1ec)],{'children':[l['jsx'](_0x48e063(0x1af),{'className':_0x48e063(0x237),'children':_0x48e063(0x1d8)}),l[_0x48e063(0x19e)](g[_0x48e063(0x1a5)],{'variant':_0x48e063(0x1a9),'onClick':()=>_0x282ede['stopPresenting'](),'children':_0x48e063(0x1ee)})]});}function te(){var _0x51fa01=_0x3b6da5;return l[_0x51fa01(0x19e)](l[_0x51fa01(0x1ec)],{'children':_0x51fa01(0x196)});}var ie=Object[_0x3b6da5(0x20c)],ne=(_0x4fee59,_0x4f106a,_0x3bc921,_0x5acc01)=>{var _0x2aec2c=_0x3b6da5;for(var _0x285d71=_0x5acc01>0x1?void 0x0:_0x5acc01?ie(_0x4f106a,_0x3bc921):_0x4f106a,_0x21f0f9=_0x4fee59[_0x2aec2c(0x1f9)]-0x1,_0x434c4c;_0x21f0f9>=0x0;_0x21f0f9--)(_0x434c4c=_0x4fee59[_0x21f0f9])&&(_0x285d71=_0x434c4c(_0x285d71)||_0x285d71);return _0x285d71;},L=(_0x299027,_0x12099a)=>(_0x1c38ea,_0x37db51)=>_0x12099a(_0x1c38ea,_0x37db51,_0x299027);exports[_0x3b6da5(0x1fc)]=class extends o[_0x3b6da5(0x162)]{constructor(_0x3b3949,_0x209af8){var _0xf9a6cb=_0x3b6da5;super(),this[_0xf9a6cb(0x180)]=_0x3b3949,this[_0xf9a6cb(0x1c6)]=_0x209af8,this[_0xf9a6cb(0x1fd)]();}['_mountLiveShare'](){var _0x23e13e=_0x3b6da5;this[_0x23e13e(0x152)](this[_0x23e13e(0x1c6)][_0x23e13e(0x23b)](p[_0x23e13e(0x154)][_0x23e13e(0x1ba)],()=>p['connectInjector'](A,this['_injector'])));}},exports[_0x3b6da5(0x1fc)]=ne([L(0x0,o[_0x3b6da5(0x18c)](o['Injector'])),L(0x1,p[_0x3b6da5(0x1d5)])],exports[_0x3b6da5(0x1fc)]);var re=Object['defineProperty'],se=Object[_0x3b6da5(0x20c)],oe=(_0x33740c,_0x33eeb0,_0x3224e6)=>_0x33eeb0 in _0x33740c?re(_0x33740c,_0x33eeb0,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3224e6}):_0x33740c[_0x33eeb0]=_0x3224e6,ae=(_0x2015eb,_0x3b53cc,_0x4eeb92,_0x2fb97a)=>{var _0x2f97ca=_0x3b6da5;for(var _0x2ec747=_0x2fb97a>0x1?void 0x0:_0x2fb97a?se(_0x3b53cc,_0x4eeb92):_0x3b53cc,_0x28edb7=_0x2015eb[_0x2f97ca(0x1f9)]-0x1,_0x518493;_0x28edb7>=0x0;_0x28edb7--)(_0x518493=_0x2015eb[_0x28edb7])&&(_0x2ec747=_0x518493(_0x2ec747)||_0x2ec747);return _0x2ec747;},N=(_0x3851a5,_0x50f6e5)=>(_0x32284a,_0x38109a)=>_0x50f6e5(_0x32284a,_0x38109a,_0x3851a5),T=(_0x56c964,_0x3007af,_0xdb9829)=>oe(_0x56c964,typeof _0x3007af!='symbol'?_0x3007af+'':_0x3007af,_0xdb9829);const le=_0x3b6da5(0x1ed);exports[_0x3b6da5(0x1bd)]=class extends o[_0x3b6da5(0x197)]{constructor(_0x5a1fac=x,_0x58958a,_0x724baf){var _0x256d04=_0x3b6da5;super(),this[_0x256d04(0x1e2)]=_0x5a1fac,this['_injector']=_0x58958a,this[_0x256d04(0x205)]=_0x724baf;const {..._0xe7070b}=o[_0x256d04(0x199)]({},x,this[_0x256d04(0x1e2)]);this[_0x256d04(0x205)][_0x256d04(0x225)]($,_0xe7070b);}['onStarting'](){var _0x180a7d=_0x3b6da5;o['registerDependencies'](this[_0x180a7d(0x180)],o['mergeOverrideWithDependencies']([[O],[exports[_0x180a7d(0x16e)]],[E],[exports[_0x180a7d(0x1fc)]]],this[_0x180a7d(0x1e2)][_0x180a7d(0x232)])),o[_0x180a7d(0x159)](this['_injector'],[[E]]);}['onRendered'](){var _0x3d46c2=_0x3b6da5;o[_0x3d46c2(0x159)](this[_0x3d46c2(0x180)],[[exports['DesktopLiveShareController']]]);}},T(exports['UniverLiveSharePlugin'],_0x3b6da5(0x21a),o[_0x3b6da5(0x1e9)][_0x3b6da5(0x211)]),T(exports[_0x3b6da5(0x1bd)],_0x3b6da5(0x1eb),le),exports[_0x3b6da5(0x1bd)]=ae([o[_0x3b6da5(0x185)](m['UniverCollaborationClientPlugin']),N(0x1,o[_0x3b6da5(0x18c)](o[_0x3b6da5(0x228)])),N(0x2,o[_0x3b6da5(0x1ae)])],exports[_0x3b6da5(0x1bd)]),exports[_0x3b6da5(0x1d3)]=A,exports[_0x3b6da5(0x1cb)]=O,exports[_0x3b6da5(0x163)]=h;
|
package/lib/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x4c562c=_0x4c96;(function(_0x300af4,_0x362c6a){var _0x338fbb=_0x4c96,_0x327a0f=_0x300af4();while(!![]){try{var _0xd5d020=parseInt(_0x338fbb(0x1a0))/0x1*(parseInt(_0x338fbb(0x1bc))/0x2)+-parseInt(_0x338fbb(0x196))/0x3*(parseInt(_0x338fbb(0x1bb))/0x4)+-parseInt(_0x338fbb(0x202))/0x5*(-parseInt(_0x338fbb(0x20d))/0x6)+-parseInt(_0x338fbb(0x172))/0x7*(parseInt(_0x338fbb(0x1ba))/0x8)+parseInt(_0x338fbb(0x15b))/0x9*(parseInt(_0x338fbb(0x19b))/0xa)+-parseInt(_0x338fbb(0x1e6))/0xb*(-parseInt(_0x338fbb(0x1df))/0xc)+-parseInt(_0x338fbb(0x177))/0xd*(parseInt(_0x338fbb(0x19e))/0xe);if(_0xd5d020===_0x362c6a)break;else _0x327a0f['push'](_0x327a0f['shift']());}catch(_0x2ffa8b){_0x327a0f['push'](_0x327a0f['shift']());}}}(_0x1f35,0x3a14b));var q=Object[_0x4c562c(0x162)],z=(_0x435ae3,_0x133333,_0x38b93e)=>_0x133333 in _0x435ae3?q(_0x435ae3,_0x133333,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38b93e}):_0x435ae3[_0x133333]=_0x38b93e,d=(_0x1feeca,_0x4ce593,_0x595ab5)=>z(_0x1feeca,typeof _0x4ce593!='symbol'?_0x4ce593+'':_0x4ce593,_0x595ab5);import{CollaborationSessionService as _0x4bced4,SessionStatus as _0x406a9c,UniverCollaborationClientPlugin as _0x364d6e}from'@univerjs-pro/collaboration-client';import{Disposable as _0x33c3c3,toDisposable as _0x5c277b,Inject as _0x28b8e2,IUniverInstanceService as _0x39e568,Injector as _0x37932d,IConfigService as _0x12fb39,ICommandService as _0x444a63,RxDisposable as _0x30c532,UniverInstanceType as _0x5516a4,DisposableCollection as _0x533c1f,CommandType as _0x29ff11,DependentOn as _0x4f811b,Plugin as _0x490596,merge as _0x37f4ea,registerDependencies as _0x434b8c,mergeOverrideWithDependencies as _0x22b299,touchDependencies as _0x87b0fb}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x4db634,InsertSheetMutation as _0x18021c}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x3796db,SetScrollOperation as _0x458e24}from'@univerjs/sheets-ui';import{useDependency as _0x2fae43,useObservable as _0x2cbc5c,IUIPartsService as _0x331a18,BuiltInUIPart as _0x376e2d,connectInjector as _0x2fb9f7}from'@univerjs/ui';import{jsx as _0x7764ac,jsxs as _0x55f059,Fragment as _0x31bb70}from'react/jsx-runtime';import{Dropdown as _0x1b79cb,clsx as _0x371cc7,Button as _0x33e106}from'@univerjs/design';import{forwardRef as _0x5a5524,useRef as _0x666d59,createElement as _0x4d5163,useState as _0x1aef14,useEffect as _0x40246b}from'react';import{CollaborationEvent as _0x273bef,parseProtocolChangeset as _0x4fdd2c}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2470ba,Subject as _0x2dfbad}from'rxjs';function _0x1f35(){var _0x48b754=['405141odvJGv','svg','apply','propertyIsEnumerable','pluginName','getLiveShareCoordinator','_commandDisposable','substring','LiveShareIcon','idle','params','_uiPartsService','You\x27re\x20following\x20the\x20presenter','following','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','_beIdle','0\x200\x2017\x2017','_stopPresenting','symbol','not-following','event$','delete','_liveShareService','You\x27are\x20offline.','UNIVER_UNKNOWN','memberID','requireSession','subscribe','15445Zlukhn','values','onCommandExecuted','then','_status','extend','getOwnPropertySymbols','dispose$','call','sheet','from','138aePxmU','defIds','getMemberID','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','You\x27re\x20not\x20following\x20the\x20presenter','univer-w-full\x20univer-mb-3\x20univer-text-sm','forEach','_mountLiveShare','9OoYGMG','toString','send','univer-size-4','operations','indexOf','type','defineProperty','_fetchOperations','unsubscribe','LIVESHARE_NEW_HOST','PRESENTING','asObservable','button','Start\x20following','_presenter','function','currentColor','_collabSession','getInitialStates','stopPresenting','_stopFollowing','_status$','7mOBhGJ','SAME_OPERATION_SHARE_INTERVAL','mutations','_configService','getUnitId','644566SlzUVQ','_startFollowing','startFollowing','unitId','_handleOnline','clear','http://www.w3.org/2000/svg','getTypeOfUnitAdded$','div','tag','_handleOffline','NEW_CHANGESETS','_config','length','getTypeOfUnitDisposed$','complete','getOwnPropertyDescriptor','_handleNewChangeSets','UniverIcon','UNIVER_LIVE_SHARE_PLUGIN','disposeWithMe','displayName','none','_handleOperation','_sharedOperations','_entities','pipe','presenter','_collabSessionService','colorChannel1','LIVESHARE_OPERATION','6ZSjzcS','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','_commandService','prototype','HEADER_MENU','803290TKSauJ','_unitID','setConfig','98MGvUFc','className','82151xwbqkb','getCurrentTypeOfUnit$','map','dispose','assign','next','fill','children','includes','parse','OFFLINE','offline','set','find','_reporters','UNIVER_SHEET','OPERATION','get','Stop\x20following','idSuffix','entries','executeCommand','_startLiveShareCoordinator','LIVESHARE_TERMINATE','_startPresenting','_univerInstanceService','239160xeycXM','557484BCzQsp','10QiEDnM','IDLE','_injector','live-share.config','Stop\x20presenting','concat','default','status$','mask','Start','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','NOT_FOLLOWING','attrs','icon','text','1em','string','replace','_handleTerminate','sessionStatus$','evenodd','LIVESHARE_FETCH_OPERATIONS','xlink:href','FOLLOWING','init','path','data','current','registerSharedOperation','add','ONLINE','tryStartPresenting','has','_init','url(#$1','108QbspDw','random','reverse','hasOwnProperty','stopFollowing','presenting','live-share-icon'];_0x1f35=function(){return _0x48b754;};return _0x1f35();}import{takeUntil as _0x5182f0,throttleTime as _0x28ab2b}from'rxjs/operators';const Oe=_0x4c562c(0x1bf),T={};class L extends _0x33c3c3{constructor(){var _0x46ea76=_0x4c562c;super(...arguments),d(this,_0x46ea76(0x18f),new Set()),d(this,_0x46ea76(0x1ae),new Set());}[_0x4c562c(0x1d8)](_0x268d36){var _0x144125=_0x4c562c;return this[_0x144125(0x18f)][_0x144125(0x1d9)](_0x268d36),_0x5c277b(()=>this[_0x144125(0x18f)][_0x144125(0x1fb)](_0x268d36));}['registerInitialStateReporter'](_0x1b6696){var _0x512bb1=_0x4c562c;return this[_0x512bb1(0x1ae)]['add'](_0x1b6696),_0x5c277b(()=>this[_0x512bb1(0x1ae)][_0x512bb1(0x1fb)](_0x1b6696));}['shouldShareOperation'](_0x3cc72f){var _0x3deb7b=_0x4c562c;return this[_0x3deb7b(0x18f)][_0x3deb7b(0x1dc)](_0x3cc72f);}[_0x4c562c(0x16e)](_0x53c56f){var _0x4acfbd=_0x4c562c;return Array[_0x4acfbd(0x20c)](this[_0x4acfbd(0x1ae)])['map'](_0x1ca293=>_0x1ca293(_0x53c56f));}}function _0x4c96(_0x4da714,_0x36708b){var _0x1f351d=_0x1f35();return _0x4c96=function(_0x4c9640,_0x1df910){_0x4c9640=_0x4c9640-0x154;var _0x53503b=_0x1f351d[_0x4c9640];return _0x53503b;},_0x4c96(_0x4da714,_0x36708b);}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x410ab3,_0x3f7b0d,_0x55112f,_0x2d20d1)=>{var _0x426f99=_0x4c562c;for(var _0x1df922=_0x2d20d1>0x1?void 0x0:_0x2d20d1?Ee(_0x3f7b0d,_0x55112f):_0x3f7b0d,_0x1ea845=_0x410ab3[_0x426f99(0x184)]-0x1,_0x58198b;_0x1ea845>=0x0;_0x1ea845--)(_0x58198b=_0x410ab3[_0x1ea845])&&(_0x1df922=_0x58198b(_0x1df922)||_0x1df922);return _0x1df922;},Ne=(_0x5dee8b,_0x2f5f2b)=>(_0x4556a5,_0x2b2a5f)=>_0x2f5f2b(_0x4556a5,_0x2b2a5f,_0x5dee8b);let m=class extends _0x33c3c3{constructor(_0x38eff5){super(),this['_liveShareService']=_0x38eff5,this['_init']();}[_0x4c562c(0x1dd)](){var _0x56eea7=_0x4c562c;[_0x3796db['id'],_0x458e24['id'],_0x4db634['id']][_0x56eea7(0x159)](_0x1364ed=>{var _0x21d2fc=_0x56eea7;this[_0x21d2fc(0x18b)](this[_0x21d2fc(0x1fc)][_0x21d2fc(0x1d8)](_0x1364ed));});}};m=we([Ne(0x0,_0x28b8e2(L))],m);var c=function(){var _0x17f4bf=_0x4c562c;return c=Object[_0x17f4bf(0x1a4)]||function(_0x91f75c){var _0x34d3c9=_0x17f4bf;for(var _0x7c2d99,_0x4a2052=0x1,_0x39e866=arguments[_0x34d3c9(0x184)];_0x4a2052<_0x39e866;_0x4a2052++){_0x7c2d99=arguments[_0x4a2052];for(var _0x22239c in _0x7c2d99)Object[_0x34d3c9(0x199)][_0x34d3c9(0x1e2)][_0x34d3c9(0x20a)](_0x7c2d99,_0x22239c)&&(_0x91f75c[_0x22239c]=_0x7c2d99[_0x22239c]);}return _0x91f75c;},c[_0x17f4bf(0x1e8)](this,arguments);},Ce=function(_0x1902d2,_0xd4534){var _0x567312=_0x4c562c,_0xb8b042={};for(var _0x1b1fda in _0x1902d2)Object[_0x567312(0x199)][_0x567312(0x1e2)][_0x567312(0x20a)](_0x1902d2,_0x1b1fda)&&_0xd4534[_0x567312(0x160)](_0x1b1fda)<0x0&&(_0xb8b042[_0x1b1fda]=_0x1902d2[_0x1b1fda]);if(_0x1902d2!=null&&typeof Object[_0x567312(0x208)]==_0x567312(0x16b)){for(var _0x410787=0x0,_0x1b1fda=Object[_0x567312(0x208)](_0x1902d2);_0x410787<_0x1b1fda[_0x567312(0x184)];_0x410787++)_0xd4534[_0x567312(0x160)](_0x1b1fda[_0x410787])<0x0&&Object[_0x567312(0x199)][_0x567312(0x1e9)][_0x567312(0x20a)](_0x1902d2,_0x1b1fda[_0x410787])&&(_0xb8b042[_0x1b1fda[_0x410787]]=_0x1902d2[_0x1b1fda[_0x410787]]);}return _0xb8b042;},W=_0x5a5524(function(_0x4f5dd0,_0x2a9fbe){var _0x3f6b3b=_0x4c562c,_0x11aec6=_0x4f5dd0[_0x3f6b3b(0x1c9)],_0xd43ba7=_0x4f5dd0['id'],_0x55478b=_0x4f5dd0['className'],_0x1df97d=_0x4f5dd0[_0x3f6b3b(0x207)],_0x2dd629=Ce(_0x4f5dd0,[_0x3f6b3b(0x1c9),'id',_0x3f6b3b(0x19f),_0x3f6b3b(0x207)]),_0x2c5abe='univerjs-icon\x20univerjs-icon-'[_0x3f6b3b(0x1c1)](_0xd43ba7,'\x20')[_0x3f6b3b(0x1c1)](_0x55478b||'')['trim'](),_0x55b6ad=_0x666d59('_'[_0x3f6b3b(0x1c1)](Le()));return Y(_0x11aec6,''[_0x3f6b3b(0x1c1)](_0xd43ba7),{'defIds':_0x11aec6[_0x3f6b3b(0x154)],'idSuffix':_0x55b6ad[_0x3f6b3b(0x1d7)]},c({'ref':_0x2a9fbe,'className':_0x2c5abe},_0x2dd629),_0x1df97d);});function Y(_0x5dbe45,_0x2e9faf,_0x725586,_0x2f7440,_0x4944b5){var _0x222a8d=_0x4c562c;return _0x4d5163(_0x5dbe45[_0x222a8d(0x180)],c(c({'key':_0x2e9faf},De(_0x5dbe45,_0x725586,_0x4944b5)),_0x2f7440),(xe(_0x5dbe45,_0x725586)[_0x222a8d(0x1a7)]||[])[_0x222a8d(0x1a2)](function(_0x4fa380,_0x2e198d){var _0x350684=_0x222a8d;return Y(_0x4fa380,''[_0x350684(0x1c1)](_0x2e9faf,'-')[_0x350684(0x1c1)](_0x5dbe45[_0x350684(0x180)],'-')[_0x350684(0x1c1)](_0x2e198d),_0x725586,void 0x0,_0x4944b5);}));}function De(_0x5de3d4,_0x58a9ff,_0xaa9b5d){var _0x5a5e8e=_0x4c562c,_0x540083=c({},_0x5de3d4[_0x5a5e8e(0x1c8)]);_0xaa9b5d!=null&&_0xaa9b5d[_0x5a5e8e(0x194)]&&_0x540083[_0x5a5e8e(0x1a6)]===_0x5a5e8e(0x194)&&(_0x540083[_0x5a5e8e(0x1a6)]=_0xaa9b5d[_0x5a5e8e(0x194)]),_0x5de3d4[_0x5a5e8e(0x180)]==='mask'&&_0x540083['id']&&(_0x540083['id']=_0x540083['id']+_0x58a9ff[_0x5a5e8e(0x1b3)]),Object['entries'](_0x540083)[_0x5a5e8e(0x159)](function(_0x5f08fd){var _0x3f932b=_0x5a5e8e,_0x2c9206=_0x5f08fd[0x0],_0x2c9eb1=_0x5f08fd[0x1];_0x2c9206===_0x3f932b(0x1c4)&&typeof _0x2c9eb1==_0x3f932b(0x1cc)&&(_0x540083[_0x2c9206]=_0x2c9eb1[_0x3f932b(0x1cd)](/url\(#(.*)\)/,_0x3f932b(0x1de)['concat'](_0x58a9ff[_0x3f932b(0x1b3)],')')));});var _0x42b815=_0x58a9ff[_0x5a5e8e(0x154)];return!_0x42b815||_0x42b815['length']===0x0||(_0x5de3d4[_0x5a5e8e(0x180)]==='use'&&_0x540083[_0x5a5e8e(0x1d2)]&&(_0x540083[_0x5a5e8e(0x1d2)]=_0x540083[_0x5a5e8e(0x1d2)]+_0x58a9ff['idSuffix']),Object[_0x5a5e8e(0x1b4)](_0x540083)[_0x5a5e8e(0x159)](function(_0x2e73f6){var _0x3fe72d=_0x5a5e8e,_0x2d87cb=_0x2e73f6[0x0],_0x1217f2=_0x2e73f6[0x1];typeof _0x1217f2==_0x3fe72d(0x1cc)&&(_0x540083[_0x2d87cb]=_0x1217f2['replace'](/url\(#(.*)\)/,_0x3fe72d(0x1de)[_0x3fe72d(0x1c1)](_0x58a9ff['idSuffix'],')')));})),_0x540083;}function xe(_0x20fdc0,_0x470c46){var _0x5e97c8=_0x4c562c,_0x25e7a6,_0x2b3948=_0x470c46[_0x5e97c8(0x154)];return!_0x2b3948||_0x2b3948[_0x5e97c8(0x184)]===0x0?_0x20fdc0:_0x20fdc0[_0x5e97c8(0x180)]==='defs'&&(!((_0x25e7a6=_0x20fdc0[_0x5e97c8(0x1a7)])===null||_0x25e7a6===void 0x0)&&_0x25e7a6[_0x5e97c8(0x184)])?c(c({},_0x20fdc0),{'children':_0x20fdc0['children']['map'](function(_0x4e859d){var _0x4b3d23=_0x5e97c8;return typeof _0x4e859d[_0x4b3d23(0x1c8)]['id']=='string'&&_0x2b3948&&_0x2b3948[_0x4b3d23(0x160)](_0x4e859d[_0x4b3d23(0x1c8)]['id'])>-0x1?c(c({},_0x4e859d),{'attrs':c(c({},_0x4e859d[_0x4b3d23(0x1c8)]),{'id':_0x4e859d[_0x4b3d23(0x1c8)]['id']+_0x470c46[_0x4b3d23(0x1b3)]})}):_0x4e859d;})}):_0x20fdc0;}function Le(){var _0x105a53=_0x4c562c;return Math[_0x105a53(0x1e0)]()[_0x105a53(0x15c)](0x24)[_0x105a53(0x1ed)](0x2,0x8);}W[_0x4c562c(0x18c)]=_0x4c562c(0x189);var ye={'tag':_0x4c562c(0x1e7),'attrs':{'xmlns':_0x4c562c(0x17d),'fill':_0x4c562c(0x18d),'viewBox':_0x4c562c(0x1f6),'width':_0x4c562c(0x1cb),'height':_0x4c562c(0x1cb)},'children':[{'tag':_0x4c562c(0x1d5),'attrs':{'fill':_0x4c562c(0x16c),'d':_0x4c562c(0x1c6)}},{'tag':_0x4c562c(0x1d5),'attrs':{'fill':_0x4c562c(0x16c),'d':_0x4c562c(0x1f4),'fillRule':_0x4c562c(0x1d0),'clipRule':_0x4c562c(0x1d0)}}]},B=_0x5a5524(function(_0x320cff,_0x25f741){var _0x427ed1=_0x4c562c;return _0x4d5163(W,Object['assign']({},_0x320cff,{'id':_0x427ed1(0x1e5),'ref':_0x25f741,'icon':ye}));});B[_0x4c562c(0x18c)]=_0x4c562c(0x1ee);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x47b72e,_0x45e2dc,_0x4ba8e8,_0x4f7e1a)=>{var _0x173614=_0x4c562c;for(var _0xda7a82=_0x4f7e1a>0x1?void 0x0:_0x4f7e1a?Re(_0x45e2dc,_0x4ba8e8):_0x45e2dc,_0x40399e=_0x47b72e[_0x173614(0x184)]-0x1,_0x4f947a;_0x40399e>=0x0;_0x40399e--)(_0x4f947a=_0x47b72e[_0x40399e])&&(_0xda7a82=_0x4f947a(_0xda7a82)||_0xda7a82);return _0xda7a82;},f=(_0x3c2712,_0x492e53)=>(_0x3ee31e,_0x261ff9)=>_0x492e53(_0x3ee31e,_0x261ff9,_0x3c2712);let I=class extends _0x30c532{constructor(_0x409ef4,_0x64b075,_0xed39e){var _0x3f2a43=_0x4c562c;super(),d(this,_0x3f2a43(0x190),new Map()),(this[_0x3f2a43(0x1b9)]=_0x409ef4,this[_0x3f2a43(0x1be)]=_0x64b075,this[_0x3f2a43(0x193)]=_0xed39e,this[_0x3f2a43(0x1dd)]());}async[_0x4c562c(0x1eb)](_0x41aa7c){var _0x35f5e9=_0x4c562c;return this['_entities'][_0x35f5e9(0x1dc)](_0x41aa7c)||await this['_startLiveShareCoordinator'](_0x41aa7c),this['_entities'][_0x35f5e9(0x1b1)](_0x41aa7c);}[_0x4c562c(0x1dd)](){var _0x5e2db5=_0x4c562c;this[_0x5e2db5(0x1b9)][_0x5e2db5(0x17e)](_0x5516a4[_0x5e2db5(0x1af)])[_0x5e2db5(0x191)](_0x5182f0(this[_0x5e2db5(0x209)]))['subscribe'](async _0x4d21ee=>{var _0x4d53a4=_0x5e2db5;const _0x3ea49a=_0x4d21ee[_0x4d53a4(0x176)]();this[_0x4d53a4(0x190)][_0x4d53a4(0x1dc)](_0x3ea49a)||this[_0x4d53a4(0x1b6)](_0x3ea49a);}),this[_0x5e2db5(0x1b9)][_0x5e2db5(0x185)](_0x5516a4['UNIVER_SHEET'])['pipe'](_0x5182f0(this[_0x5e2db5(0x209)]))[_0x5e2db5(0x201)](_0x37fb0c=>{var _0x19940c=_0x5e2db5;const _0x2489d2=_0x37fb0c[_0x19940c(0x176)](),_0x4695c6=this[_0x19940c(0x190)]['get'](_0x2489d2);_0x4695c6==null||_0x4695c6[_0x19940c(0x1a3)]();});}async[_0x4c562c(0x1b6)](_0x188f75){var _0x329197=_0x4c562c;const _0xac8da2=await this[_0x329197(0x193)][_0x329197(0x200)](_0x188f75),_0x5d449f=this['_injector']['createInstance'](C,_0x188f75,_0xac8da2);return _0x5d449f[_0x329197(0x1d4)](),this[_0x329197(0x190)][_0x329197(0x1ac)](_0x188f75,_0x5d449f),_0x5d449f;}};I=Z([f(0x0,_0x39e568),f(0x1,_0x28b8e2(_0x37932d)),f(0x2,_0x28b8e2(_0x4bced4))],I);var h=(_0x5ef23c=>(_0x5ef23c[_0x4c562c(0x1aa)]='offline',_0x5ef23c[_0x4c562c(0x1bd)]='idle',_0x5ef23c[_0x4c562c(0x1d3)]=_0x4c562c(0x1f3),_0x5ef23c[_0x4c562c(0x1c7)]=_0x4c562c(0x1f9),_0x5ef23c[_0x4c562c(0x166)]=_0x4c562c(0x1e4),_0x5ef23c))(h||{});const Pe=_0x4c562c(0x173),Ae=0xc8;let C=class extends _0x30c532{constructor(_0x1b2439,_0x501702,_0x80e4a3,_0x50b221,_0xac5ce7){var _0x3f6d28=_0x4c562c;super(),d(this,_0x3f6d28(0x171),new _0x2470ba('idle')),d(this,_0x3f6d28(0x1c3),this['_status$'][_0x3f6d28(0x167)]()),d(this,_0x3f6d28(0x1dd),!0x1),d(this,_0x3f6d28(0x1ec),null),d(this,_0x3f6d28(0x16a),null),(this[_0x3f6d28(0x19c)]=_0x1b2439,this[_0x3f6d28(0x16d)]=_0x501702,this[_0x3f6d28(0x175)]=_0x80e4a3,this['_liveShareService']=_0x50b221,this[_0x3f6d28(0x198)]=_0xac5ce7);}get[_0x4c562c(0x206)](){var _0x4f784c=_0x4c562c;return this[_0x4f784c(0x171)]['getValue']();}[_0x4c562c(0x1a3)](){var _0x2dc576=_0x4c562c,_0x3d9838;(_0x3d9838=this[_0x2dc576(0x1ec)])==null||_0x3d9838[_0x2dc576(0x1a3)](),this[_0x2dc576(0x171)][_0x2dc576(0x1a5)]('idle'),this[_0x2dc576(0x171)][_0x2dc576(0x186)]();}[_0x4c562c(0x1d4)](){var _0x300f01=_0x4c562c;this[_0x300f01(0x1dd)]||(this[_0x300f01(0x1dd)]=!0x0,this['_collabSession'][_0x300f01(0x1cf)][_0x300f01(0x191)](_0x5182f0(this['dispose$']))[_0x300f01(0x201)](_0x4ee737=>{var _0x3552b4=_0x300f01;switch(_0x4ee737){case _0x406a9c['OFFLINE']:this[_0x3552b4(0x181)]();break;case _0x406a9c[_0x3552b4(0x1da)]:this[_0x3552b4(0x17b)]();break;}}),this[_0x300f01(0x16d)][_0x300f01(0x1fa)][_0x300f01(0x191)](_0x5182f0(this[_0x300f01(0x209)]))[_0x300f01(0x201)](_0x47cde8=>{var _0x39e378=_0x300f01;const {eventID:_0x10fad7}=_0x47cde8;switch(_0x10fad7){case _0x273bef[_0x39e378(0x165)]:this['_handleNewHost'](_0x47cde8);break;case _0x273bef[_0x39e378(0x195)]:this[_0x39e378(0x18e)](_0x47cde8);break;case _0x273bef[_0x39e378(0x1b7)]:this[_0x39e378(0x1ce)]();break;case _0x273bef[_0x39e378(0x182)]:this[_0x39e378(0x188)](_0x47cde8);break;}}));}['tryStartPresenting'](){var _0xccfa37=_0x4c562c;this['_collabSession'][_0xccfa37(0x15d)]({'eventID':_0x273bef['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0xccfa37(0x19c)],'userID':this[_0xccfa37(0x16d)][_0xccfa37(0x155)]()}},this[_0xccfa37(0x19c)]);}[_0x4c562c(0x16f)](){var _0x10abe9=_0x4c562c;this['_status']==='presenting'&&(this[_0x10abe9(0x171)][_0x10abe9(0x1a5)](_0x10abe9(0x1ef)),this[_0x10abe9(0x16d)]['send']({'eventID':_0x273bef['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x10abe9(0x19c)]}},this[_0x10abe9(0x19c)]));}[_0x4c562c(0x179)](){var _0x2f257d=_0x4c562c;this[_0x2f257d(0x206)]===_0x2f257d(0x1f9)&&(this['_status$']['next'](_0x2f257d(0x1f3)),this[_0x2f257d(0x178)]());}[_0x4c562c(0x1e3)](){var _0x1b5d40=_0x4c562c;this[_0x1b5d40(0x206)]===_0x1b5d40(0x1f3)&&this[_0x1b5d40(0x170)]();}['_handleNewHost'](_0x244d53){var _0x20a1e1=_0x4c562c;const {presenter:_0x1b5dd7}=_0x244d53[_0x20a1e1(0x1d6)],_0x3fc00a=this[_0x20a1e1(0x16d)][_0x20a1e1(0x155)]();this['_presenter']=_0x1b5dd7,_0x1b5dd7===_0x3fc00a?(this[_0x20a1e1(0x170)](),this['_startPresenting']()):this[_0x20a1e1(0x206)]!=='not-following'&&(this['_stopPresenting'](),this[_0x20a1e1(0x178)]());}[_0x4c562c(0x163)](){var _0x182599=_0x4c562c;const _0x5d4dc0={'eventID':_0x273bef[_0x182599(0x1d1)]};this[_0x182599(0x16d)][_0x182599(0x15d)](_0x5d4dc0,this[_0x182599(0x19c)]);}[_0x4c562c(0x1ce)](){var _0x232348=_0x4c562c;this['_presenter']=null,this[_0x232348(0x206)]!==_0x232348(0x1e4)&&this[_0x232348(0x1f5)]();}[_0x4c562c(0x188)](_0x6957ec){var _0x353b18=_0x4c562c;if(this[_0x353b18(0x206)]===_0x353b18(0x1f3)&&this[_0x353b18(0x16a)]===_0x6957ec[_0x353b18(0x1d6)][_0x353b18(0x1ff)]){const _0x2580fb=_0x4fdd2c(_0x6957ec[_0x353b18(0x1d6)])[_0x353b18(0x174)][_0x353b18(0x1e1)]()[_0x353b18(0x1ad)](_0x5badb5=>_0x5badb5['id']===_0x18021c['id']);if(_0x2580fb){const _0x1b9364=_0x2580fb[_0x353b18(0x1f0)][_0x353b18(0x17a)],_0x371654=_0x2580fb[_0x353b18(0x1f0)][_0x353b18(0x20b)]['id'];setTimeout(()=>{var _0x2c05ac=_0x353b18;this[_0x2c05ac(0x198)][_0x2c05ac(0x1b5)](_0x4db634['id'],{'unitId':_0x1b9364,'subUnitId':_0x371654},{'fromCollab':!0x0});});}}}[_0x4c562c(0x1b8)](){var _0x33e201=_0x4c562c;this[_0x33e201(0x171)][_0x33e201(0x1a5)](_0x33e201(0x1e4));const _0x10cce3=new Map(),_0xca3706=this[_0x33e201(0x1ec)]=new _0x533c1f();_0xca3706[_0x33e201(0x1d9)](_0x5c277b(()=>{var _0x1898ef=_0x33e201;_0x10cce3[_0x1898ef(0x159)](_0x169d83=>_0x169d83[_0x1898ef(0x186)]()),_0x10cce3[_0x1898ef(0x17c)]();})),_0xca3706[_0x33e201(0x1d9)](this[_0x33e201(0x198)][_0x33e201(0x204)](_0x275146=>{var _0x2f9f0f=_0x33e201,_0x597466;if(_0x275146[_0x2f9f0f(0x161)]!==_0x29ff11[_0x2f9f0f(0x1b0)]||!this['_liveShareService']['shouldShareOperation'](_0x275146['id']))return;const {id:_0x6d3b7f}=_0x275146;let _0xce94a4;_0x10cce3[_0x2f9f0f(0x1dc)](_0x6d3b7f)?_0xce94a4=_0x10cce3['get'](_0x6d3b7f):(_0xce94a4=new _0x2dfbad(),_0x10cce3[_0x2f9f0f(0x1ac)](_0x6d3b7f,_0xce94a4),_0xce94a4[_0x2f9f0f(0x191)](_0x28ab2b((_0x597466=this[_0x2f9f0f(0x175)]['getConfig'](Pe))!=null?_0x597466:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2f9f0f(0x201)](_0x708071=>{var _0x2de09e=_0x2f9f0f;this[_0x2de09e(0x16d)]['send']({'eventID':_0x273bef['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2de09e(0x19c)],'operations':{[_0x708071['id']]:{'id':_0x708071['id'],'params':JSON['stringify'](_0x708071['params'])}}}},this[_0x2de09e(0x19c)]);})),_0xce94a4[_0x2f9f0f(0x1a5)](_0x275146);})),this['_liveShareService'][_0x33e201(0x16e)](this[_0x33e201(0x19c)])[_0x33e201(0x159)](_0x1e0bcf=>this[_0x33e201(0x16d)][_0x33e201(0x15d)]({'eventID':_0x273bef[_0x33e201(0x195)],'data':{'unitID':this[_0x33e201(0x19c)],'operations':{[_0x1e0bcf['id']]:{'id':_0x1e0bcf['id'],'params':JSON['stringify'](_0x1e0bcf[_0x33e201(0x1f0)])}}}},this[_0x33e201(0x19c)]));}[_0x4c562c(0x1f7)](){var _0xcff531=_0x4c562c,_0x490c0d;this[_0xcff531(0x171)][_0xcff531(0x1a5)](_0xcff531(0x1ef)),(_0x490c0d=this[_0xcff531(0x1ec)])==null||_0x490c0d[_0xcff531(0x1a3)](),this['_commandDisposable']=null;}[_0x4c562c(0x178)](){var _0x2913b8=_0x4c562c,_0x374dc7;(_0x374dc7=this[_0x2913b8(0x1ec)])==null||_0x374dc7[_0x2913b8(0x1a3)](),this['_status$']['next'](_0x2913b8(0x1f3));}[_0x4c562c(0x1f5)](){var _0x1fac8c=_0x4c562c,_0x57cd1e;this[_0x1fac8c(0x171)][_0x1fac8c(0x1a5)]('idle'),(_0x57cd1e=this['_commandDisposable'])==null||_0x57cd1e[_0x1fac8c(0x1a3)](),this[_0x1fac8c(0x1ec)]=null;}[_0x4c562c(0x170)](){var _0x2476bc=_0x4c562c,_0x34d2ad;this[_0x2476bc(0x171)][_0x2476bc(0x1a5)](_0x2476bc(0x1f9)),(_0x34d2ad=this[_0x2476bc(0x1ec)])==null||_0x34d2ad['dispose']();}['_handleOperation'](_0x34cb80){var _0x4ab46a=_0x4c562c;if(['presenting',_0x4ab46a(0x1f9),_0x4ab46a(0x1ab)][_0x4ab46a(0x1a8)](this[_0x4ab46a(0x206)])||!_0x34cb80['data']['presenter']||_0x34cb80[_0x4ab46a(0x1d6)][_0x4ab46a(0x192)]===this[_0x4ab46a(0x16d)][_0x4ab46a(0x155)]())return;this['_status']===_0x4ab46a(0x1ef)&&this[_0x4ab46a(0x178)]();const _0x5c1866=_0x34cb80['data'][_0x4ab46a(0x15f)];Object[_0x4ab46a(0x203)](_0x5c1866)[_0x4ab46a(0x159)](_0x8213af=>{var _0xc6b37f=_0x4ab46a;this['_commandService'][_0xc6b37f(0x1b5)](_0x8213af['id'],_0x8213af['params']?JSON[_0xc6b37f(0x1a9)](_0x8213af[_0xc6b37f(0x1f0)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x3cfd19=_0x4c562c,_0x541e56;this[_0x3cfd19(0x171)][_0x3cfd19(0x1a5)](_0x3cfd19(0x1ab)),(_0x541e56=this[_0x3cfd19(0x1ec)])==null||_0x541e56[_0x3cfd19(0x1a3)]();}[_0x4c562c(0x17b)](){var _0x3c6b13=_0x4c562c;this[_0x3c6b13(0x171)][_0x3c6b13(0x1a5)](_0x3c6b13(0x1ef)),this['_fetchOperations']();}};C=Z([f(0x2,_0x12fb39),f(0x3,_0x28b8e2(L)),f(0x4,_0x444a63)],C);function Te(){var _0x2efdaf=_0x4c562c;const _0xa3eb21=_0x2fae43(I),_0x3bb343=_0x2fae43(_0x39e568),_0x285ee5=_0x2cbc5c(()=>_0x3bb343[_0x2efdaf(0x1a1)](_0x5516a4[_0x2efdaf(0x1af)]),void 0x0,!0x1,[]),[_0x11c6e7,_0x2a9433]=_0x1aef14(null),[_0x533c18,_0x10c56d]=_0x1aef14(h['IDLE']),_0x34e261=_0x666d59(null);return _0x40246b(()=>(_0x285ee5&&_0xa3eb21[_0x2efdaf(0x1eb)](_0x285ee5[_0x2efdaf(0x176)]())[_0x2efdaf(0x205)](_0x44411c=>{var _0x28e482=_0x2efdaf;_0x2a9433(_0x44411c),_0x34e261[_0x28e482(0x1d7)]=_0x44411c[_0x28e482(0x1c3)][_0x28e482(0x201)](_0x4b4f40=>{_0x10c56d(_0x4b4f40);});}),()=>{var _0x9eb8ff=_0x2efdaf,_0x18ba7e;(_0x18ba7e=_0x34e261[_0x9eb8ff(0x1d7)])==null||_0x18ba7e[_0x9eb8ff(0x164)](),_0x34e261['current']=null;}),[_0x285ee5,_0xa3eb21]),_0x11c6e7?_0x7764ac(_0x1b79cb,{'align':'end','disabled':_0x533c18===h[_0x2efdaf(0x1aa)],'className':_0x2efdaf(0x197),'overlay':_0x7764ac($e,{'status':_0x533c18,'coordinator':_0x11c6e7}),'children':_0x7764ac(_0x2efdaf(0x168),{'className':_0x371cc7(_0x2efdaf(0x156),{'univer-cursor-not-allowed':_0x533c18===h[_0x2efdaf(0x1aa)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x533c18!==h[_0x2efdaf(0x1aa)]}),'type':_0x2efdaf(0x168),'children':_0x7764ac(B,{'className':_0x2efdaf(0x15e)})})}):null;}function $e(_0x17a275){var _0x2703fc=_0x4c562c;const {status:_0x4da168,coordinator:_0x5d641a}=_0x17a275;switch(_0x4da168){case h[_0x2703fc(0x1bd)]:return _0x7764ac(Fe,{'coordinator':_0x5d641a});case h[_0x2703fc(0x1d3)]:return _0x7764ac(He,{'coordinator':_0x5d641a});case h['NOT_FOLLOWING']:return _0x7764ac(je,{'coordinator':_0x5d641a});case h[_0x2703fc(0x1aa)]:return _0x7764ac(Ve,{});case h[_0x2703fc(0x166)]:return _0x7764ac(Ue,{'coordinator':_0x5d641a});default:return null;}}function Fe(_0x487f3f){var _0x4f21dd=_0x4c562c;const {coordinator:_0x2c8713}=_0x487f3f;return _0x55f059(_0x31bb70,{'children':[_0x7764ac(_0x4f21dd(0x17f),{'className':_0x4f21dd(0x158),'children':'Present\x20this\x20document'}),_0x7764ac(_0x33e106,{'onClick':()=>_0x2c8713[_0x4f21dd(0x1db)](),'children':_0x4f21dd(0x1c5)})]});}function He(_0x55bdda){var _0x40de61=_0x4c562c;const {coordinator:_0x443370}=_0x55bdda;return _0x55f059(_0x31bb70,{'children':[_0x7764ac('div',{'className':_0x40de61(0x158),'children':_0x40de61(0x1f2)}),_0x7764ac(_0x33e106,{'onClick':()=>_0x443370[_0x40de61(0x1e3)](),'children':_0x40de61(0x1b2)})]});}function je(_0x19ccbe){var _0x5c617f=_0x4c562c;const {coordinator:_0x3b492e}=_0x19ccbe;return _0x55f059(_0x31bb70,{'children':[_0x7764ac(_0x5c617f(0x17f),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5c617f(0x157)}),_0x7764ac(_0x33e106,{'variant':_0x5c617f(0x1ca),'onClick':()=>_0x3b492e[_0x5c617f(0x179)](),'children':_0x5c617f(0x169)})]});}function Ue(_0x14ed7b){var _0x4530a1=_0x4c562c;const {coordinator:_0x3fd453}=_0x14ed7b;return _0x55f059(_0x31bb70,{'children':[_0x7764ac(_0x4530a1(0x17f),{'className':_0x4530a1(0x158),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x7764ac(_0x33e106,{'variant':_0x4530a1(0x1c2),'onClick':()=>_0x3fd453[_0x4530a1(0x16f)](),'children':_0x4530a1(0x1c0)})]});}function Ve(){var _0x40a2db=_0x4c562c;return _0x7764ac(_0x31bb70,{'children':_0x40a2db(0x1fd)});}var Me=Object[_0x4c562c(0x187)],ke=(_0x233bbe,_0x3aae78,_0x357b91,_0x25c99e)=>{for(var _0x49faa4=_0x25c99e>0x1?void 0x0:_0x25c99e?Me(_0x3aae78,_0x357b91):_0x3aae78,_0x4c1b71=_0x233bbe['length']-0x1,_0x5e44be;_0x4c1b71>=0x0;_0x4c1b71--)(_0x5e44be=_0x233bbe[_0x4c1b71])&&(_0x49faa4=_0x5e44be(_0x49faa4)||_0x49faa4);return _0x49faa4;},$=(_0x225bca,_0x1bcb3f)=>(_0x2307ec,_0x417c20)=>_0x1bcb3f(_0x2307ec,_0x417c20,_0x225bca);let b=class extends _0x33c3c3{constructor(_0x455cd0,_0x2d1199){var _0x3a7a95=_0x4c562c;super(),this[_0x3a7a95(0x1be)]=_0x455cd0,this[_0x3a7a95(0x1f1)]=_0x2d1199,this[_0x3a7a95(0x15a)]();}[_0x4c562c(0x15a)](){var _0x3b31ed=_0x4c562c;this[_0x3b31ed(0x18b)](this['_uiPartsService']['registerComponent'](_0x376e2d[_0x3b31ed(0x19a)],()=>_0x2fb9f7(Te,this[_0x3b31ed(0x1be)])));}};b=ke([$(0x0,_0x28b8e2(_0x37932d)),$(0x1,_0x331a18)],b);var Ge=Object[_0x4c562c(0x162)],We=Object[_0x4c562c(0x187)],Ye=(_0x41d755,_0x5ecf78,_0x3057c6)=>_0x5ecf78 in _0x41d755?Ge(_0x41d755,_0x5ecf78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3057c6}):_0x41d755[_0x5ecf78]=_0x3057c6,Be=(_0x5278af,_0x355bd6,_0x4520be,_0x4a2481)=>{var _0x36b273=_0x4c562c;for(var _0x54a060=_0x4a2481>0x1?void 0x0:_0x4a2481?We(_0x355bd6,_0x4520be):_0x355bd6,_0x4761cf=_0x5278af[_0x36b273(0x184)]-0x1,_0x4cc1aa;_0x4761cf>=0x0;_0x4761cf--)(_0x4cc1aa=_0x5278af[_0x4761cf])&&(_0x54a060=_0x4cc1aa(_0x54a060)||_0x54a060);return _0x54a060;},F=(_0x33ab9f,_0x2cd63c)=>(_0x158e6c,_0x401d34)=>_0x2cd63c(_0x158e6c,_0x401d34,_0x33ab9f),J=(_0x5bee20,_0x20c9aa,_0x207788)=>Ye(_0x5bee20,typeof _0x20c9aa!=_0x4c562c(0x1f8)?_0x20c9aa+'':_0x20c9aa,_0x207788);const Ze=_0x4c562c(0x18a);let O=class extends _0x490596{constructor(_0x4d275c=T,_0x5d540f,_0x19a2ff){var _0x285cc3=_0x4c562c;super(),this[_0x285cc3(0x183)]=_0x4d275c,this[_0x285cc3(0x1be)]=_0x5d540f,this[_0x285cc3(0x175)]=_0x19a2ff;const {..._0x4cf274}=_0x37f4ea({},T,this[_0x285cc3(0x183)]);this[_0x285cc3(0x175)][_0x285cc3(0x19d)](Oe,_0x4cf274);}['onStarting'](){var _0x17e778=_0x4c562c;_0x434b8c(this[_0x17e778(0x1be)],_0x22b299([[L],[I],[m],[b]],this[_0x17e778(0x183)]['override'])),_0x87b0fb(this['_injector'],[[m]]);}['onRendered'](){var _0x517f34=_0x4c562c;_0x87b0fb(this[_0x517f34(0x1be)],[[b]]);}};J(O,_0x4c562c(0x161),_0x5516a4[_0x4c562c(0x1fe)]),J(O,_0x4c562c(0x1ea),Ze),O=Be([_0x4f811b(_0x364d6e),F(0x1,_0x28b8e2(_0x37932d)),F(0x2,_0x12fb39)],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 _0x48e897=_0x32c6;(function(_0x57e8a1,_0x4fed58){var _0x3aa19f=_0x32c6,_0x41fff8=_0x57e8a1();while(!![]){try{var _0x450534=parseInt(_0x3aa19f(0x231))/0x1*(parseInt(_0x3aa19f(0x245))/0x2)+parseInt(_0x3aa19f(0x1c5))/0x3+parseInt(_0x3aa19f(0x24c))/0x4*(parseInt(_0x3aa19f(0x1dd))/0x5)+-parseInt(_0x3aa19f(0x228))/0x6*(-parseInt(_0x3aa19f(0x1bf))/0x7)+parseInt(_0x3aa19f(0x243))/0x8+parseInt(_0x3aa19f(0x1af))/0x9+-parseInt(_0x3aa19f(0x1c9))/0xa;if(_0x450534===_0x4fed58)break;else _0x41fff8['push'](_0x41fff8['shift']());}catch(_0x54dbcd){_0x41fff8['push'](_0x41fff8['shift']());}}}(_0x1275,0xeabb6));var q=Object[_0x48e897(0x232)],z=(_0x2d8d22,_0x301261,_0x2e460a)=>_0x301261 in _0x2d8d22?q(_0x2d8d22,_0x301261,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2e460a}):_0x2d8d22[_0x301261]=_0x2e460a,d=(_0x32781c,_0x241fba,_0x3e245c)=>z(_0x32781c,typeof _0x241fba!=_0x48e897(0x1be)?_0x241fba+'':_0x241fba,_0x3e245c);import{CollaborationSessionService as _0x5e869c,SessionStatus as _0x2d0dfb,UniverCollaborationClientPlugin as _0x17815a}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3c2739,toDisposable as _0x57e236,Inject as _0x189c3d,IUniverInstanceService as _0x41b018,Injector as _0x57c965,IConfigService as _0x5d5944,ICommandService as _0xa11c32,RxDisposable as _0xcb0c2c,UniverInstanceType as _0x1ee84e,DisposableCollection as _0x52ba43,CommandType as _0x4dc604,DependentOn as _0x1b4e2c,Plugin as _0x3f4c4d,merge as _0x218892,registerDependencies as _0x326bf9,mergeOverrideWithDependencies as _0x50c96c,touchDependencies as _0x2bc9cc}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x5eba01,InsertSheetMutation as _0x1d263c}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x4944c9,SetScrollOperation as _0x36199a}from'@univerjs/sheets-ui';import{useDependency as _0x3f5601,useObservable as _0x1d597b,IUIPartsService as _0x510262,BuiltInUIPart as _0x3e180e,connectInjector as _0x4c0a72}from'@univerjs/ui';import{jsx as _0x325a97,jsxs as _0x1b43c4,Fragment as _0x3962b6}from'react/jsx-runtime';import{Dropdown as _0x550238,clsx as _0x3d682b,Button as _0x59600f}from'@univerjs/design';import{forwardRef as _0x314661,useRef as _0x5e59ea,createElement as _0x119c32,useState as _0x3e4387,useEffect as _0xb44850}from'react';import{CollaborationEvent as _0x516bcd,parseProtocolChangeset as _0x1d12fd}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x199ef3,Subject as _0x5f4b81}from'rxjs';import{takeUntil as _0x10d2c5,throttleTime as _0x2824d4}from'rxjs/operators';const Oe=_0x48e897(0x213),T={};class L extends _0x3c2739{constructor(){var _0x42f0fb=_0x48e897;super(...arguments),d(this,_0x42f0fb(0x24f),new Set()),d(this,_0x42f0fb(0x233),new Set());}[_0x48e897(0x24d)](_0x28e6db){var _0x175091=_0x48e897;return this[_0x175091(0x24f)][_0x175091(0x1dc)](_0x28e6db),_0x57e236(()=>this['_sharedOperations'][_0x175091(0x1cc)](_0x28e6db));}[_0x48e897(0x1c3)](_0x54cfbe){var _0xe5d2f6=_0x48e897;return this[_0xe5d2f6(0x233)][_0xe5d2f6(0x1dc)](_0x54cfbe),_0x57e236(()=>this[_0xe5d2f6(0x233)][_0xe5d2f6(0x1cc)](_0x54cfbe));}[_0x48e897(0x22e)](_0x132c05){var _0xce57f5=_0x48e897;return this['_sharedOperations'][_0xce57f5(0x244)](_0x132c05);}[_0x48e897(0x252)](_0x55b43a){var _0x29ea78=_0x48e897;return Array[_0x29ea78(0x1cb)](this[_0x29ea78(0x233)])[_0x29ea78(0x242)](_0x84a17c=>_0x84a17c(_0x55b43a));}}var Ee=Object[_0x48e897(0x1d6)],we=(_0x2bda5e,_0x454b66,_0x405c31,_0x3015e6)=>{var _0xd49cf7=_0x48e897;for(var _0x9cc2f9=_0x3015e6>0x1?void 0x0:_0x3015e6?Ee(_0x454b66,_0x405c31):_0x454b66,_0x15296d=_0x2bda5e[_0xd49cf7(0x1cf)]-0x1,_0x1f77ff;_0x15296d>=0x0;_0x15296d--)(_0x1f77ff=_0x2bda5e[_0x15296d])&&(_0x9cc2f9=_0x1f77ff(_0x9cc2f9)||_0x9cc2f9);return _0x9cc2f9;},Ne=(_0x2d9f00,_0x405e14)=>(_0x1cae31,_0xd1105)=>_0x405e14(_0x1cae31,_0xd1105,_0x2d9f00);let m=class extends _0x3c2739{constructor(_0x390ca6){var _0x4e94a9=_0x48e897;super(),this['_liveShareService']=_0x390ca6,this[_0x4e94a9(0x1c2)]();}[_0x48e897(0x1c2)](){[_0x4944c9['id'],_0x36199a['id'],_0x5eba01['id']]['forEach'](_0x54afb2=>{var _0xf2344=_0x32c6;this[_0xf2344(0x1e3)](this[_0xf2344(0x1b7)][_0xf2344(0x24d)](_0x54afb2));});}};function _0x32c6(_0x1630b5,_0x28d892){var _0x1275f1=_0x1275();return _0x32c6=function(_0x32c606,_0x44757a){_0x32c606=_0x32c606-0x1af;var _0x48d50f=_0x1275f1[_0x32c606];return _0x48d50f;},_0x32c6(_0x1630b5,_0x28d892);}m=we([Ne(0x0,_0x189c3d(L))],m);var c=function(){var _0x52e519=_0x48e897;return c=Object[_0x52e519(0x21d)]||function(_0x4f63d4){var _0x38ed89=_0x52e519;for(var _0x289958,_0x5a7e75=0x1,_0x510944=arguments['length'];_0x5a7e75<_0x510944;_0x5a7e75++){_0x289958=arguments[_0x5a7e75];for(var _0x525d82 in _0x289958)Object[_0x38ed89(0x20a)][_0x38ed89(0x1f8)]['call'](_0x289958,_0x525d82)&&(_0x4f63d4[_0x525d82]=_0x289958[_0x525d82]);}return _0x4f63d4;},c[_0x52e519(0x211)](this,arguments);},Ce=function(_0x396845,_0x371eee){var _0x1850c4=_0x48e897,_0x389fcc={};for(var _0x4ff6fa in _0x396845)Object[_0x1850c4(0x20a)]['hasOwnProperty']['call'](_0x396845,_0x4ff6fa)&&_0x371eee[_0x1850c4(0x1da)](_0x4ff6fa)<0x0&&(_0x389fcc[_0x4ff6fa]=_0x396845[_0x4ff6fa]);if(_0x396845!=null&&typeof Object[_0x1850c4(0x215)]=='function'){for(var _0x398ca9=0x0,_0x4ff6fa=Object[_0x1850c4(0x215)](_0x396845);_0x398ca9<_0x4ff6fa[_0x1850c4(0x1cf)];_0x398ca9++)_0x371eee[_0x1850c4(0x1da)](_0x4ff6fa[_0x398ca9])<0x0&&Object[_0x1850c4(0x20a)][_0x1850c4(0x1ce)]['call'](_0x396845,_0x4ff6fa[_0x398ca9])&&(_0x389fcc[_0x4ff6fa[_0x398ca9]]=_0x396845[_0x4ff6fa[_0x398ca9]]);}return _0x389fcc;},W=_0x314661(function(_0x3e3623,_0x1d3b2a){var _0x5913af=_0x48e897,_0xc98c0f=_0x3e3623[_0x5913af(0x251)],_0x4bd94c=_0x3e3623['id'],_0x90c43d=_0x3e3623[_0x5913af(0x219)],_0x2b3d45=_0x3e3623['extend'],_0x38b87a=Ce(_0x3e3623,[_0x5913af(0x251),'id','className',_0x5913af(0x23e)]),_0x48725a=_0x5913af(0x1b5)[_0x5913af(0x1e1)](_0x4bd94c,'\x20')[_0x5913af(0x1e1)](_0x90c43d||'')[_0x5913af(0x236)](),_0x460f90=_0x5e59ea('_'['concat'](Le()));return Y(_0xc98c0f,''[_0x5913af(0x1e1)](_0x4bd94c),{'defIds':_0xc98c0f[_0x5913af(0x20d)],'idSuffix':_0x460f90[_0x5913af(0x1f6)]},c({'ref':_0x1d3b2a,'className':_0x48725a},_0x38b87a),_0x2b3d45);});function Y(_0x3f4bd3,_0x4b207e,_0x12a2ba,_0x5f45eb,_0x199081){var _0x46b7eb=_0x48e897;return _0x119c32(_0x3f4bd3[_0x46b7eb(0x218)],c(c({'key':_0x4b207e},De(_0x3f4bd3,_0x12a2ba,_0x199081)),_0x5f45eb),(xe(_0x3f4bd3,_0x12a2ba)[_0x46b7eb(0x22b)]||[])['map'](function(_0x49a8c0,_0x5e036d){var _0x4169e2=_0x46b7eb;return Y(_0x49a8c0,''[_0x4169e2(0x1e1)](_0x4b207e,'-')[_0x4169e2(0x1e1)](_0x3f4bd3[_0x4169e2(0x218)],'-')['concat'](_0x5e036d),_0x12a2ba,void 0x0,_0x199081);}));}function De(_0x24f538,_0x4fb030,_0x1d176e){var _0x205494=_0x48e897,_0x3ce0ce=c({},_0x24f538[_0x205494(0x1ea)]);_0x1d176e!=null&&_0x1d176e[_0x205494(0x1bc)]&&_0x3ce0ce[_0x205494(0x23c)]===_0x205494(0x1bc)&&(_0x3ce0ce[_0x205494(0x23c)]=_0x1d176e[_0x205494(0x1bc)]),_0x24f538[_0x205494(0x218)]==='mask'&&_0x3ce0ce['id']&&(_0x3ce0ce['id']=_0x3ce0ce['id']+_0x4fb030[_0x205494(0x1bb)]),Object[_0x205494(0x1b0)](_0x3ce0ce)['forEach'](function(_0x162b86){var _0x52cf67=_0x205494,_0x381381=_0x162b86[0x0],_0x4a30e0=_0x162b86[0x1];_0x381381===_0x52cf67(0x234)&&typeof _0x4a30e0=='string'&&(_0x3ce0ce[_0x381381]=_0x4a30e0['replace'](/url\(#(.*)\)/,_0x52cf67(0x226)['concat'](_0x4fb030['idSuffix'],')')));});var _0x4d76a0=_0x4fb030[_0x205494(0x20d)];return!_0x4d76a0||_0x4d76a0['length']===0x0||(_0x24f538[_0x205494(0x218)]===_0x205494(0x23a)&&_0x3ce0ce[_0x205494(0x21f)]&&(_0x3ce0ce[_0x205494(0x21f)]=_0x3ce0ce['xlink:href']+_0x4fb030[_0x205494(0x1bb)]),Object[_0x205494(0x1b0)](_0x3ce0ce)[_0x205494(0x1fa)](function(_0x35cbef){var _0x39b510=_0x205494,_0x4d3f6b=_0x35cbef[0x0],_0x31ffa8=_0x35cbef[0x1];typeof _0x31ffa8==_0x39b510(0x238)&&(_0x3ce0ce[_0x4d3f6b]=_0x31ffa8['replace'](/url\(#(.*)\)/,_0x39b510(0x226)[_0x39b510(0x1e1)](_0x4fb030['idSuffix'],')')));})),_0x3ce0ce;}function xe(_0x36452b,_0x58b413){var _0x2bd813=_0x48e897,_0x33f8c8,_0x5e771a=_0x58b413['defIds'];return!_0x5e771a||_0x5e771a['length']===0x0?_0x36452b:_0x36452b[_0x2bd813(0x218)]===_0x2bd813(0x1e7)&&(!((_0x33f8c8=_0x36452b[_0x2bd813(0x22b)])===null||_0x33f8c8===void 0x0)&&_0x33f8c8[_0x2bd813(0x1cf)])?c(c({},_0x36452b),{'children':_0x36452b[_0x2bd813(0x22b)]['map'](function(_0x5b58ba){var _0x4c84af=_0x2bd813;return typeof _0x5b58ba[_0x4c84af(0x1ea)]['id']==_0x4c84af(0x238)&&_0x5e771a&&_0x5e771a[_0x4c84af(0x1ff)](_0x5b58ba['attrs']['id'])?c(c({},_0x5b58ba),{'attrs':c(c({},_0x5b58ba[_0x4c84af(0x1ea)]),{'id':_0x5b58ba[_0x4c84af(0x1ea)]['id']+_0x58b413[_0x4c84af(0x1bb)]})}):_0x5b58ba;})}):_0x36452b;}function Le(){var _0x407578=_0x48e897;return Math[_0x407578(0x1c6)]()['toString'](0x24)[_0x407578(0x206)](0x2,0x8);}W[_0x48e897(0x21c)]=_0x48e897(0x210);var ye={'tag':_0x48e897(0x20f),'attrs':{'xmlns':_0x48e897(0x1f4),'fill':_0x48e897(0x208),'viewBox':_0x48e897(0x1bd),'width':_0x48e897(0x253),'height':'1em'},'children':[{'tag':_0x48e897(0x1d5),'attrs':{'fill':_0x48e897(0x23b),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x48e897(0x23b),'d':_0x48e897(0x23f),'fillRule':_0x48e897(0x1c7),'clipRule':'evenodd'}}]},B=_0x314661(function(_0x21a89f,_0x5f590f){var _0x139591=_0x48e897;return _0x119c32(W,Object[_0x139591(0x21d)]({},_0x21a89f,{'id':_0x139591(0x1ed),'ref':_0x5f590f,'icon':ye}));});B[_0x48e897(0x21c)]=_0x48e897(0x1e2);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x7967f6,_0x441fc6,_0x45a027,_0x1f6ca1)=>{var _0x2ae177=_0x48e897;for(var _0x3b0a7b=_0x1f6ca1>0x1?void 0x0:_0x1f6ca1?Re(_0x441fc6,_0x45a027):_0x441fc6,_0x4213c2=_0x7967f6[_0x2ae177(0x1cf)]-0x1,_0x5d6e26;_0x4213c2>=0x0;_0x4213c2--)(_0x5d6e26=_0x7967f6[_0x4213c2])&&(_0x3b0a7b=_0x5d6e26(_0x3b0a7b)||_0x3b0a7b);return _0x3b0a7b;},f=(_0x231255,_0x208cd1)=>(_0x14c46b,_0x39cb88)=>_0x208cd1(_0x14c46b,_0x39cb88,_0x231255);let I=class extends _0xcb0c2c{constructor(_0x48a22d,_0x2294db,_0xa860f7){var _0x3d1a3a=_0x48e897;super(),d(this,_0x3d1a3a(0x237),new Map()),(this['_univerInstanceService']=_0x48a22d,this['_injector']=_0x2294db,this[_0x3d1a3a(0x24e)]=_0xa860f7,this[_0x3d1a3a(0x1c2)]());}async[_0x48e897(0x21e)](_0x3511c7){var _0x4fb4d6=_0x48e897;return this[_0x4fb4d6(0x237)][_0x4fb4d6(0x244)](_0x3511c7)||await this[_0x4fb4d6(0x1c1)](_0x3511c7),this[_0x4fb4d6(0x237)]['get'](_0x3511c7);}['_init'](){var _0x4877bd=_0x48e897;this[_0x4877bd(0x1b9)][_0x4877bd(0x1ba)](_0x1ee84e[_0x4877bd(0x1f2)])[_0x4877bd(0x20c)](_0x10d2c5(this[_0x4877bd(0x230)]))[_0x4877bd(0x1e0)](async _0x59ad18=>{var _0x497345=_0x4877bd;const _0x3e5d6e=_0x59ad18[_0x497345(0x1d8)]();this['_entities']['has'](_0x3e5d6e)||this[_0x497345(0x1c1)](_0x3e5d6e);}),this[_0x4877bd(0x1b9)]['getTypeOfUnitDisposed$'](_0x1ee84e['UNIVER_SHEET'])[_0x4877bd(0x20c)](_0x10d2c5(this[_0x4877bd(0x230)]))[_0x4877bd(0x1e0)](_0xd0c332=>{var _0x46fe7f=_0x4877bd;const _0x55d22d=_0xd0c332['getUnitId'](),_0x1f40cd=this['_entities'][_0x46fe7f(0x1ef)](_0x55d22d);_0x1f40cd==null||_0x1f40cd[_0x46fe7f(0x1df)]();});}async[_0x48e897(0x1c1)](_0x2498d8){var _0x544a33=_0x48e897;const _0xf60abd=await this[_0x544a33(0x24e)][_0x544a33(0x1ec)](_0x2498d8),_0x365aee=this['_injector'][_0x544a33(0x22c)](C,_0x2498d8,_0xf60abd);return _0x365aee[_0x544a33(0x1e8)](),this['_entities'][_0x544a33(0x200)](_0x2498d8,_0x365aee),_0x365aee;}};I=Z([f(0x0,_0x41b018),f(0x1,_0x189c3d(_0x57c965)),f(0x2,_0x189c3d(_0x5e869c))],I);var h=(_0x377aa0=>(_0x377aa0[_0x48e897(0x1b6)]=_0x48e897(0x1c4),_0x377aa0[_0x48e897(0x220)]=_0x48e897(0x1c0),_0x377aa0['FOLLOWING']=_0x48e897(0x261),_0x377aa0[_0x48e897(0x20b)]=_0x48e897(0x1b1),_0x377aa0[_0x48e897(0x203)]='presenting',_0x377aa0))(h||{});const Pe=_0x48e897(0x227),Ae=0xc8;let C=class extends _0xcb0c2c{constructor(_0x1b41bd,_0x54a93c,_0x149d5b,_0x2129ad,_0x145a7b){var _0x58dc99=_0x48e897;super(),d(this,'_status$',new _0x199ef3(_0x58dc99(0x1c0))),d(this,'status$',this[_0x58dc99(0x1fb)][_0x58dc99(0x204)]()),d(this,_0x58dc99(0x1c2),!0x1),d(this,_0x58dc99(0x235),null),d(this,_0x58dc99(0x205),null),(this[_0x58dc99(0x214)]=_0x1b41bd,this[_0x58dc99(0x250)]=_0x54a93c,this['_configService']=_0x149d5b,this[_0x58dc99(0x1b7)]=_0x2129ad,this[_0x58dc99(0x1db)]=_0x145a7b);}get[_0x48e897(0x1d0)](){var _0x17ef48=_0x48e897;return this[_0x17ef48(0x1fb)][_0x17ef48(0x1d1)]();}[_0x48e897(0x1df)](){var _0x400273=_0x48e897,_0x4bdb95;(_0x4bdb95=this[_0x400273(0x235)])==null||_0x4bdb95[_0x400273(0x1df)](),this['_status$'][_0x400273(0x22d)](_0x400273(0x1c0)),this[_0x400273(0x1fb)][_0x400273(0x1b8)]();}[_0x48e897(0x1e8)](){var _0x120601=_0x48e897;this['_init']||(this[_0x120601(0x1c2)]=!0x0,this[_0x120601(0x250)]['sessionStatus$'][_0x120601(0x20c)](_0x10d2c5(this[_0x120601(0x230)]))[_0x120601(0x1e0)](_0x31247d=>{var _0x5826f0=_0x120601;switch(_0x31247d){case _0x2d0dfb[_0x5826f0(0x1b6)]:this['_handleOffline']();break;case _0x2d0dfb['ONLINE']:this[_0x5826f0(0x229)]();break;}}),this['_collabSession']['event$']['pipe'](_0x10d2c5(this[_0x120601(0x230)]))[_0x120601(0x1e0)](_0x104f5d=>{var _0x327005=_0x120601;const {eventID:_0x59c7c3}=_0x104f5d;switch(_0x59c7c3){case _0x516bcd['LIVESHARE_NEW_HOST']:this[_0x327005(0x221)](_0x104f5d);break;case _0x516bcd[_0x327005(0x21a)]:this[_0x327005(0x1d4)](_0x104f5d);break;case _0x516bcd[_0x327005(0x1c8)]:this['_handleTerminate']();break;case _0x516bcd[_0x327005(0x209)]:this['_handleNewChangeSets'](_0x104f5d);break;}}));}[_0x48e897(0x1f7)](){var _0x227c79=_0x48e897;this[_0x227c79(0x250)][_0x227c79(0x249)]({'eventID':_0x516bcd[_0x227c79(0x248)],'data':{'unitID':this[_0x227c79(0x214)],'userID':this[_0x227c79(0x250)][_0x227c79(0x259)]()}},this[_0x227c79(0x214)]);}[_0x48e897(0x1b2)](){var _0x4f5670=_0x48e897;this['_status']===_0x4f5670(0x255)&&(this['_status$']['next'](_0x4f5670(0x1c0)),this['_collabSession'][_0x4f5670(0x249)]({'eventID':_0x516bcd[_0x4f5670(0x1c8)],'data':{'unitID':this[_0x4f5670(0x214)]}},this[_0x4f5670(0x214)]));}[_0x48e897(0x25f)](){var _0x839e0a=_0x48e897;this[_0x839e0a(0x1d0)]===_0x839e0a(0x1b1)&&(this['_status$'][_0x839e0a(0x22d)](_0x839e0a(0x261)),this[_0x839e0a(0x202)]());}[_0x48e897(0x1d2)](){var _0x4e03b1=_0x48e897;this[_0x4e03b1(0x1d0)]===_0x4e03b1(0x261)&&this[_0x4e03b1(0x22f)]();}[_0x48e897(0x221)](_0x561216){var _0x1c0b27=_0x48e897;const {presenter:_0x1cc3db}=_0x561216[_0x1c0b27(0x254)],_0x5a2d58=this['_collabSession'][_0x1c0b27(0x259)]();this[_0x1c0b27(0x205)]=_0x1cc3db,_0x1cc3db===_0x5a2d58?(this[_0x1c0b27(0x22f)](),this[_0x1c0b27(0x246)]()):this['_status']!==_0x1c0b27(0x1b1)&&(this[_0x1c0b27(0x223)](),this['_startFollowing']());}['_fetchOperations'](){var _0x23a9a9=_0x48e897;const _0x36b1c8={'eventID':_0x516bcd[_0x23a9a9(0x260)]};this[_0x23a9a9(0x250)][_0x23a9a9(0x249)](_0x36b1c8,this[_0x23a9a9(0x214)]);}['_handleTerminate'](){var _0x4f51ec=_0x48e897;this[_0x4f51ec(0x205)]=null,this[_0x4f51ec(0x1d0)]!=='presenting'&&this[_0x4f51ec(0x1fd)]();}[_0x48e897(0x1e9)](_0x3e1c74){var _0x2a5cb1=_0x48e897;if(this[_0x2a5cb1(0x1d0)]===_0x2a5cb1(0x261)&&this['_presenter']===_0x3e1c74[_0x2a5cb1(0x254)]['memberID']){const _0x2ce3b1=_0x1d12fd(_0x3e1c74[_0x2a5cb1(0x254)])[_0x2a5cb1(0x201)][_0x2a5cb1(0x217)]()[_0x2a5cb1(0x1f1)](_0x3f1948=>_0x3f1948['id']===_0x1d263c['id']);if(_0x2ce3b1){const _0x2285b6=_0x2ce3b1[_0x2a5cb1(0x257)]['unitId'],_0x31b23b=_0x2ce3b1[_0x2a5cb1(0x257)][_0x2a5cb1(0x1f9)]['id'];setTimeout(()=>{var _0x37cce3=_0x2a5cb1;this[_0x37cce3(0x1db)]['executeCommand'](_0x5eba01['id'],{'unitId':_0x2285b6,'subUnitId':_0x31b23b},{'fromCollab':!0x0});});}}}[_0x48e897(0x246)](){var _0x4fac15=_0x48e897;this[_0x4fac15(0x1fb)][_0x4fac15(0x22d)](_0x4fac15(0x255));const _0x6ccf51=new Map(),_0x3c93ed=this[_0x4fac15(0x235)]=new _0x52ba43();_0x3c93ed[_0x4fac15(0x1dc)](_0x57e236(()=>{var _0x3bf3e2=_0x4fac15;_0x6ccf51[_0x3bf3e2(0x1fa)](_0x193f27=>_0x193f27['complete']()),_0x6ccf51[_0x3bf3e2(0x1e4)]();})),_0x3c93ed[_0x4fac15(0x1dc)](this[_0x4fac15(0x1db)][_0x4fac15(0x1b4)](_0x405bd4=>{var _0x1a0693=_0x4fac15,_0x10558a;if(_0x405bd4[_0x1a0693(0x212)]!==_0x4dc604[_0x1a0693(0x241)]||!this[_0x1a0693(0x1b7)]['shouldShareOperation'](_0x405bd4['id']))return;const {id:_0x1976ae}=_0x405bd4;let _0x4851fa;_0x6ccf51['has'](_0x1976ae)?_0x4851fa=_0x6ccf51[_0x1a0693(0x1ef)](_0x1976ae):(_0x4851fa=new _0x5f4b81(),_0x6ccf51[_0x1a0693(0x200)](_0x1976ae,_0x4851fa),_0x4851fa['pipe'](_0x2824d4((_0x10558a=this[_0x1a0693(0x1e6)][_0x1a0693(0x24a)](Pe))!=null?_0x10558a:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1a0693(0x1e0)](_0x1d8745=>{var _0x1b9ae5=_0x1a0693;this[_0x1b9ae5(0x250)][_0x1b9ae5(0x249)]({'eventID':_0x516bcd[_0x1b9ae5(0x21a)],'data':{'unitID':this[_0x1b9ae5(0x214)],'operations':{[_0x1d8745['id']]:{'id':_0x1d8745['id'],'params':JSON[_0x1b9ae5(0x222)](_0x1d8745[_0x1b9ae5(0x257)])}}}},this[_0x1b9ae5(0x214)]);})),_0x4851fa[_0x1a0693(0x22d)](_0x405bd4);})),this[_0x4fac15(0x1b7)][_0x4fac15(0x252)](this[_0x4fac15(0x214)])[_0x4fac15(0x1fa)](_0x5bc5d0=>this[_0x4fac15(0x250)]['send']({'eventID':_0x516bcd[_0x4fac15(0x21a)],'data':{'unitID':this[_0x4fac15(0x214)],'operations':{[_0x5bc5d0['id']]:{'id':_0x5bc5d0['id'],'params':JSON[_0x4fac15(0x222)](_0x5bc5d0[_0x4fac15(0x257)])}}}},this[_0x4fac15(0x214)]));}[_0x48e897(0x223)](){var _0x270461=_0x48e897,_0x199390;this[_0x270461(0x1fb)][_0x270461(0x22d)](_0x270461(0x1c0)),(_0x199390=this[_0x270461(0x235)])==null||_0x199390[_0x270461(0x1df)](),this['_commandDisposable']=null;}[_0x48e897(0x202)](){var _0x48bb22=_0x48e897,_0x55dbe8;(_0x55dbe8=this[_0x48bb22(0x235)])==null||_0x55dbe8[_0x48bb22(0x1df)](),this['_status$'][_0x48bb22(0x22d)](_0x48bb22(0x261));}[_0x48e897(0x1fd)](){var _0x489e69=_0x48e897,_0x51bd09;this[_0x489e69(0x1fb)][_0x489e69(0x22d)]('idle'),(_0x51bd09=this[_0x489e69(0x235)])==null||_0x51bd09[_0x489e69(0x1df)](),this[_0x489e69(0x235)]=null;}[_0x48e897(0x22f)](){var _0x2e4d60=_0x48e897,_0x516fc6;this[_0x2e4d60(0x1fb)]['next'](_0x2e4d60(0x1b1)),(_0x516fc6=this[_0x2e4d60(0x235)])==null||_0x516fc6[_0x2e4d60(0x1df)]();}['_handleOperation'](_0x21ebd1){var _0x433635=_0x48e897;if([_0x433635(0x255),_0x433635(0x1b1),'offline']['includes'](this[_0x433635(0x1d0)])||!_0x21ebd1['data'][_0x433635(0x1d3)]||_0x21ebd1['data'][_0x433635(0x1d3)]===this[_0x433635(0x250)][_0x433635(0x259)]())return;this[_0x433635(0x1d0)]===_0x433635(0x1c0)&&this['_startFollowing']();const _0x1a1fb5=_0x21ebd1['data'][_0x433635(0x225)];Object[_0x433635(0x1cd)](_0x1a1fb5)[_0x433635(0x1fa)](_0x30fef4=>{var _0x9a0c33=_0x433635;this[_0x9a0c33(0x1db)][_0x9a0c33(0x216)](_0x30fef4['id'],_0x30fef4[_0x9a0c33(0x257)]?JSON['parse'](_0x30fef4[_0x9a0c33(0x257)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x211e3b=_0x48e897,_0x178d9e;this[_0x211e3b(0x1fb)]['next'](_0x211e3b(0x1c4)),(_0x178d9e=this['_commandDisposable'])==null||_0x178d9e[_0x211e3b(0x1df)]();}[_0x48e897(0x229)](){var _0x5484ab=_0x48e897;this['_status$'][_0x5484ab(0x22d)](_0x5484ab(0x1c0)),this[_0x5484ab(0x1f3)]();}};C=Z([f(0x2,_0x5d5944),f(0x3,_0x189c3d(L)),f(0x4,_0xa11c32)],C);function Te(){var _0x575928=_0x48e897;const _0x3ac5c1=_0x3f5601(I),_0x30af77=_0x3f5601(_0x41b018),_0x52eb65=_0x1d597b(()=>_0x30af77[_0x575928(0x1f5)](_0x1ee84e[_0x575928(0x1f2)]),void 0x0,!0x1,[]),[_0x1f811e,_0x2f4e68]=_0x3e4387(null),[_0x2fa5e9,_0x279ed6]=_0x3e4387(h[_0x575928(0x220)]),_0x2a3737=_0x5e59ea(null);return _0xb44850(()=>(_0x52eb65&&_0x3ac5c1[_0x575928(0x21e)](_0x52eb65[_0x575928(0x1d8)]())[_0x575928(0x21b)](_0xeeb86c=>{var _0x5936e9=_0x575928;_0x2f4e68(_0xeeb86c),_0x2a3737['current']=_0xeeb86c[_0x5936e9(0x207)]['subscribe'](_0x17c228=>{_0x279ed6(_0x17c228);});}),()=>{var _0x25648a=_0x575928,_0x4fac78;(_0x4fac78=_0x2a3737['current'])==null||_0x4fac78[_0x25648a(0x1de)](),_0x2a3737[_0x25648a(0x1f6)]=null;}),[_0x52eb65,_0x3ac5c1]),_0x1f811e?_0x325a97(_0x550238,{'align':_0x575928(0x1fe),'disabled':_0x2fa5e9===h['OFFLINE'],'className':_0x575928(0x23d),'overlay':_0x325a97($e,{'status':_0x2fa5e9,'coordinator':_0x1f811e}),'children':_0x325a97('button',{'className':_0x3d682b('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x2fa5e9===h[_0x575928(0x1b6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2fa5e9!==h[_0x575928(0x1b6)]}),'type':_0x575928(0x25d),'children':_0x325a97(B,{'className':_0x575928(0x25b)})})}):null;}function $e(_0x31b968){var _0x48dea6=_0x48e897;const {status:_0x12bfe6,coordinator:_0x58de46}=_0x31b968;switch(_0x12bfe6){case h[_0x48dea6(0x220)]:return _0x325a97(Fe,{'coordinator':_0x58de46});case h[_0x48dea6(0x25c)]:return _0x325a97(He,{'coordinator':_0x58de46});case h['NOT_FOLLOWING']:return _0x325a97(je,{'coordinator':_0x58de46});case h[_0x48dea6(0x1b6)]:return _0x325a97(Ve,{});case h[_0x48dea6(0x203)]:return _0x325a97(Ue,{'coordinator':_0x58de46});default:return null;}}function Fe(_0x16b34d){var _0x288064=_0x48e897;const {coordinator:_0x502aa0}=_0x16b34d;return _0x1b43c4(_0x3962b6,{'children':[_0x325a97(_0x288064(0x239),{'className':_0x288064(0x1ca),'children':_0x288064(0x24b)}),_0x325a97(_0x59600f,{'onClick':()=>_0x502aa0[_0x288064(0x1f7)](),'children':'Start'})]});}function He(_0x310744){var _0x718a22=_0x48e897;const {coordinator:_0x10b55f}=_0x310744;return _0x1b43c4(_0x3962b6,{'children':[_0x325a97(_0x718a22(0x239),{'className':_0x718a22(0x1ca),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x325a97(_0x59600f,{'onClick':()=>_0x10b55f[_0x718a22(0x1d2)](),'children':_0x718a22(0x20e)})]});}function je(_0x30a8e4){var _0x58b12=_0x48e897;const {coordinator:_0x4dd262}=_0x30a8e4;return _0x1b43c4(_0x3962b6,{'children':[_0x325a97(_0x58b12(0x239),{'className':_0x58b12(0x1ca),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x325a97(_0x59600f,{'variant':'text','onClick':()=>_0x4dd262[_0x58b12(0x25f)](),'children':_0x58b12(0x25e)})]});}function Ue(_0x49d727){var _0x201874=_0x48e897;const {coordinator:_0x33f595}=_0x49d727;return _0x1b43c4(_0x3962b6,{'children':[_0x325a97(_0x201874(0x239),{'className':_0x201874(0x1ca),'children':_0x201874(0x258)}),_0x325a97(_0x59600f,{'variant':'default','onClick':()=>_0x33f595[_0x201874(0x1b2)](),'children':_0x201874(0x25a)})]});}function Ve(){return _0x325a97(_0x3962b6,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x48e897(0x1d6)],ke=(_0x4a87f4,_0x233e5c,_0x10e7ab,_0x202777)=>{var _0x23a4b0=_0x48e897;for(var _0x33997d=_0x202777>0x1?void 0x0:_0x202777?Me(_0x233e5c,_0x10e7ab):_0x233e5c,_0x517fa7=_0x4a87f4[_0x23a4b0(0x1cf)]-0x1,_0x491b0f;_0x517fa7>=0x0;_0x517fa7--)(_0x491b0f=_0x4a87f4[_0x517fa7])&&(_0x33997d=_0x491b0f(_0x33997d)||_0x33997d);return _0x33997d;},$=(_0x2b1912,_0x2fcb17)=>(_0x523061,_0x468440)=>_0x2fcb17(_0x523061,_0x468440,_0x2b1912);let b=class extends _0x3c2739{constructor(_0xe505af,_0x378a7e){var _0x3bc197=_0x48e897;super(),this[_0x3bc197(0x240)]=_0xe505af,this[_0x3bc197(0x1eb)]=_0x378a7e,this[_0x3bc197(0x247)]();}[_0x48e897(0x247)](){var _0x5d1317=_0x48e897;this['disposeWithMe'](this['_uiPartsService'][_0x5d1317(0x1fc)](_0x3e180e[_0x5d1317(0x1d9)],()=>_0x4c0a72(Te,this[_0x5d1317(0x240)])));}};b=ke([$(0x0,_0x189c3d(_0x57c965)),$(0x1,_0x510262)],b);var Ge=Object[_0x48e897(0x232)],We=Object[_0x48e897(0x1d6)],Ye=(_0x20f4c4,_0x8205ae,_0x1a49dd)=>_0x8205ae in _0x20f4c4?Ge(_0x20f4c4,_0x8205ae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a49dd}):_0x20f4c4[_0x8205ae]=_0x1a49dd,Be=(_0x4d9db3,_0x489405,_0x236c32,_0x34ac50)=>{var _0x34b892=_0x48e897;for(var _0x32c1c6=_0x34ac50>0x1?void 0x0:_0x34ac50?We(_0x489405,_0x236c32):_0x489405,_0x3b428d=_0x4d9db3[_0x34b892(0x1cf)]-0x1,_0xf4081;_0x3b428d>=0x0;_0x3b428d--)(_0xf4081=_0x4d9db3[_0x3b428d])&&(_0x32c1c6=_0xf4081(_0x32c1c6)||_0x32c1c6);return _0x32c1c6;},F=(_0x1c2ae2,_0x15179a)=>(_0x30f85c,_0x47ad7a)=>_0x15179a(_0x30f85c,_0x47ad7a,_0x1c2ae2),J=(_0x359b87,_0xe6d4b3,_0x5d4de6)=>Ye(_0x359b87,typeof _0xe6d4b3!=_0x48e897(0x1be)?_0xe6d4b3+'':_0xe6d4b3,_0x5d4de6);const Ze=_0x48e897(0x1e5);let O=class extends _0x3f4c4d{constructor(_0x1b1400=T,_0x40ed29,_0x35b679){var _0x4364a1=_0x48e897;super(),this[_0x4364a1(0x1ee)]=_0x1b1400,this[_0x4364a1(0x240)]=_0x40ed29,this['_configService']=_0x35b679;const {..._0xe607cb}=_0x218892({},T,this[_0x4364a1(0x1ee)]);this[_0x4364a1(0x1e6)][_0x4364a1(0x1b3)](Oe,_0xe607cb);}[_0x48e897(0x224)](){var _0x5c6f4c=_0x48e897;_0x326bf9(this[_0x5c6f4c(0x240)],_0x50c96c([[L],[I],[m],[b]],this['_config'][_0x5c6f4c(0x1f0)])),_0x2bc9cc(this[_0x5c6f4c(0x240)],[[m]]);}[_0x48e897(0x1d7)](){var _0x33b2f5=_0x48e897;_0x2bc9cc(this[_0x33b2f5(0x240)],[[b]]);}};J(O,_0x48e897(0x212),_0x1ee84e[_0x48e897(0x256)]),J(O,_0x48e897(0x22a),Ze),O=Be([_0x1b4e2c(_0x17815a),F(0x1,_0x189c3d(_0x57c965)),F(0x2,_0x5d5944)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};function _0x1275(){var _0x3ee82e=['_sharedOperations','_collabSession','icon','getInitialStates','1em','data','presenting','UNIVER_UNKNOWN','params','You\x27re\x20presenting\x20the\x20document','getMemberID','Stop\x20presenting','univer-size-4','FOLLOWING','button','Start\x20following','startFollowing','LIVESHARE_FETCH_OPERATIONS','following','11261700IcRvKN','entries','not-following','stopPresenting','setConfig','onCommandExecuted','univerjs-icon\x20univerjs-icon-','OFFLINE','_liveShareService','complete','_univerInstanceService','getTypeOfUnitAdded$','idSuffix','colorChannel1','0\x200\x2017\x2017','symbol','6538bkRvIs','idle','_startLiveShareCoordinator','_init','registerInitialStateReporter','offline','44028oBcCGd','random','evenodd','LIVESHARE_TERMINATE','48155390GngHbT','univer-w-full\x20univer-mb-3\x20univer-text-sm','from','delete','values','propertyIsEnumerable','length','_status','getValue','stopFollowing','presenter','_handleOperation','path','getOwnPropertyDescriptor','onRendered','getUnitId','HEADER_MENU','indexOf','_commandService','add','4363355msaWIt','unsubscribe','dispose','subscribe','concat','LiveShareIcon','disposeWithMe','clear','UNIVER_LIVE_SHARE_PLUGIN','_configService','defs','init','_handleNewChangeSets','attrs','_uiPartsService','requireSession','live-share-icon','_config','get','override','find','UNIVER_SHEET','_fetchOperations','http://www.w3.org/2000/svg','getCurrentTypeOfUnit$','current','tryStartPresenting','hasOwnProperty','sheet','forEach','_status$','registerComponent','_beIdle','end','includes','set','mutations','_startFollowing','PRESENTING','asObservable','_presenter','substring','status$','none','NEW_CHANGESETS','prototype','NOT_FOLLOWING','pipe','defIds','Stop\x20following','svg','UniverIcon','apply','type','live-share.config','_unitID','getOwnPropertySymbols','executeCommand','reverse','tag','className','LIVESHARE_OPERATION','then','displayName','assign','getLiveShareCoordinator','xlink:href','IDLE','_handleNewHost','stringify','_stopPresenting','onStarting','operations','url(#$1','SAME_OPERATION_SHARE_INTERVAL','9906BeKmEz','_handleOnline','pluginName','children','createInstance','next','shouldShareOperation','_stopFollowing','dispose$','4dGmDLX','defineProperty','_reporters','mask','_commandDisposable','trim','_entities','string','div','use','currentColor','fill','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','extend','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','_injector','OPERATION','map','6672672dbryBK','has','631118gGhDsw','_startPresenting','_mountLiveShare','LIVESHARE_REQUEST_HOST','send','getConfig','Present\x20this\x20document','4zMuinz','registerSharedOperation','_collabSessionService'];_0x1275=function(){return _0x3ee82e;};return _0x1275();}
|
package/lib/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var _0x4c562c=_0x4c96;(function(_0x300af4,_0x362c6a){var _0x338fbb=_0x4c96,_0x327a0f=_0x300af4();while(!![]){try{var _0xd5d020=parseInt(_0x338fbb(0x1a0))/0x1*(parseInt(_0x338fbb(0x1bc))/0x2)+-parseInt(_0x338fbb(0x196))/0x3*(parseInt(_0x338fbb(0x1bb))/0x4)+-parseInt(_0x338fbb(0x202))/0x5*(-parseInt(_0x338fbb(0x20d))/0x6)+-parseInt(_0x338fbb(0x172))/0x7*(parseInt(_0x338fbb(0x1ba))/0x8)+parseInt(_0x338fbb(0x15b))/0x9*(parseInt(_0x338fbb(0x19b))/0xa)+-parseInt(_0x338fbb(0x1e6))/0xb*(-parseInt(_0x338fbb(0x1df))/0xc)+-parseInt(_0x338fbb(0x177))/0xd*(parseInt(_0x338fbb(0x19e))/0xe);if(_0xd5d020===_0x362c6a)break;else _0x327a0f['push'](_0x327a0f['shift']());}catch(_0x2ffa8b){_0x327a0f['push'](_0x327a0f['shift']());}}}(_0x1f35,0x3a14b));var q=Object[_0x4c562c(0x162)],z=(_0x435ae3,_0x133333,_0x38b93e)=>_0x133333 in _0x435ae3?q(_0x435ae3,_0x133333,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x38b93e}):_0x435ae3[_0x133333]=_0x38b93e,d=(_0x1feeca,_0x4ce593,_0x595ab5)=>z(_0x1feeca,typeof _0x4ce593!='symbol'?_0x4ce593+'':_0x4ce593,_0x595ab5);import{CollaborationSessionService as _0x4bced4,SessionStatus as _0x406a9c,UniverCollaborationClientPlugin as _0x364d6e}from'@univerjs-pro/collaboration-client';import{Disposable as _0x33c3c3,toDisposable as _0x5c277b,Inject as _0x28b8e2,IUniverInstanceService as _0x39e568,Injector as _0x37932d,IConfigService as _0x12fb39,ICommandService as _0x444a63,RxDisposable as _0x30c532,UniverInstanceType as _0x5516a4,DisposableCollection as _0x533c1f,CommandType as _0x29ff11,DependentOn as _0x4f811b,Plugin as _0x490596,merge as _0x37f4ea,registerDependencies as _0x434b8c,mergeOverrideWithDependencies as _0x22b299,touchDependencies as _0x87b0fb}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x4db634,InsertSheetMutation as _0x18021c}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x3796db,SetScrollOperation as _0x458e24}from'@univerjs/sheets-ui';import{useDependency as _0x2fae43,useObservable as _0x2cbc5c,IUIPartsService as _0x331a18,BuiltInUIPart as _0x376e2d,connectInjector as _0x2fb9f7}from'@univerjs/ui';import{jsx as _0x7764ac,jsxs as _0x55f059,Fragment as _0x31bb70}from'react/jsx-runtime';import{Dropdown as _0x1b79cb,clsx as _0x371cc7,Button as _0x33e106}from'@univerjs/design';import{forwardRef as _0x5a5524,useRef as _0x666d59,createElement as _0x4d5163,useState as _0x1aef14,useEffect as _0x40246b}from'react';import{CollaborationEvent as _0x273bef,parseProtocolChangeset as _0x4fdd2c}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x2470ba,Subject as _0x2dfbad}from'rxjs';function _0x1f35(){var _0x48b754=['405141odvJGv','svg','apply','propertyIsEnumerable','pluginName','getLiveShareCoordinator','_commandDisposable','substring','LiveShareIcon','idle','params','_uiPartsService','You\x27re\x20following\x20the\x20presenter','following','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','_beIdle','0\x200\x2017\x2017','_stopPresenting','symbol','not-following','event$','delete','_liveShareService','You\x27are\x20offline.','UNIVER_UNKNOWN','memberID','requireSession','subscribe','15445Zlukhn','values','onCommandExecuted','then','_status','extend','getOwnPropertySymbols','dispose$','call','sheet','from','138aePxmU','defIds','getMemberID','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','You\x27re\x20not\x20following\x20the\x20presenter','univer-w-full\x20univer-mb-3\x20univer-text-sm','forEach','_mountLiveShare','9OoYGMG','toString','send','univer-size-4','operations','indexOf','type','defineProperty','_fetchOperations','unsubscribe','LIVESHARE_NEW_HOST','PRESENTING','asObservable','button','Start\x20following','_presenter','function','currentColor','_collabSession','getInitialStates','stopPresenting','_stopFollowing','_status$','7mOBhGJ','SAME_OPERATION_SHARE_INTERVAL','mutations','_configService','getUnitId','644566SlzUVQ','_startFollowing','startFollowing','unitId','_handleOnline','clear','http://www.w3.org/2000/svg','getTypeOfUnitAdded$','div','tag','_handleOffline','NEW_CHANGESETS','_config','length','getTypeOfUnitDisposed$','complete','getOwnPropertyDescriptor','_handleNewChangeSets','UniverIcon','UNIVER_LIVE_SHARE_PLUGIN','disposeWithMe','displayName','none','_handleOperation','_sharedOperations','_entities','pipe','presenter','_collabSessionService','colorChannel1','LIVESHARE_OPERATION','6ZSjzcS','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','_commandService','prototype','HEADER_MENU','803290TKSauJ','_unitID','setConfig','98MGvUFc','className','82151xwbqkb','getCurrentTypeOfUnit$','map','dispose','assign','next','fill','children','includes','parse','OFFLINE','offline','set','find','_reporters','UNIVER_SHEET','OPERATION','get','Stop\x20following','idSuffix','entries','executeCommand','_startLiveShareCoordinator','LIVESHARE_TERMINATE','_startPresenting','_univerInstanceService','239160xeycXM','557484BCzQsp','10QiEDnM','IDLE','_injector','live-share.config','Stop\x20presenting','concat','default','status$','mask','Start','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','NOT_FOLLOWING','attrs','icon','text','1em','string','replace','_handleTerminate','sessionStatus$','evenodd','LIVESHARE_FETCH_OPERATIONS','xlink:href','FOLLOWING','init','path','data','current','registerSharedOperation','add','ONLINE','tryStartPresenting','has','_init','url(#$1','108QbspDw','random','reverse','hasOwnProperty','stopFollowing','presenting','live-share-icon'];_0x1f35=function(){return _0x48b754;};return _0x1f35();}import{takeUntil as _0x5182f0,throttleTime as _0x28ab2b}from'rxjs/operators';const Oe=_0x4c562c(0x1bf),T={};class L extends _0x33c3c3{constructor(){var _0x46ea76=_0x4c562c;super(...arguments),d(this,_0x46ea76(0x18f),new Set()),d(this,_0x46ea76(0x1ae),new Set());}[_0x4c562c(0x1d8)](_0x268d36){var _0x144125=_0x4c562c;return this[_0x144125(0x18f)][_0x144125(0x1d9)](_0x268d36),_0x5c277b(()=>this[_0x144125(0x18f)][_0x144125(0x1fb)](_0x268d36));}['registerInitialStateReporter'](_0x1b6696){var _0x512bb1=_0x4c562c;return this[_0x512bb1(0x1ae)]['add'](_0x1b6696),_0x5c277b(()=>this[_0x512bb1(0x1ae)][_0x512bb1(0x1fb)](_0x1b6696));}['shouldShareOperation'](_0x3cc72f){var _0x3deb7b=_0x4c562c;return this[_0x3deb7b(0x18f)][_0x3deb7b(0x1dc)](_0x3cc72f);}[_0x4c562c(0x16e)](_0x53c56f){var _0x4acfbd=_0x4c562c;return Array[_0x4acfbd(0x20c)](this[_0x4acfbd(0x1ae)])['map'](_0x1ca293=>_0x1ca293(_0x53c56f));}}function _0x4c96(_0x4da714,_0x36708b){var _0x1f351d=_0x1f35();return _0x4c96=function(_0x4c9640,_0x1df910){_0x4c9640=_0x4c9640-0x154;var _0x53503b=_0x1f351d[_0x4c9640];return _0x53503b;},_0x4c96(_0x4da714,_0x36708b);}var Ee=Object['getOwnPropertyDescriptor'],we=(_0x410ab3,_0x3f7b0d,_0x55112f,_0x2d20d1)=>{var _0x426f99=_0x4c562c;for(var _0x1df922=_0x2d20d1>0x1?void 0x0:_0x2d20d1?Ee(_0x3f7b0d,_0x55112f):_0x3f7b0d,_0x1ea845=_0x410ab3[_0x426f99(0x184)]-0x1,_0x58198b;_0x1ea845>=0x0;_0x1ea845--)(_0x58198b=_0x410ab3[_0x1ea845])&&(_0x1df922=_0x58198b(_0x1df922)||_0x1df922);return _0x1df922;},Ne=(_0x5dee8b,_0x2f5f2b)=>(_0x4556a5,_0x2b2a5f)=>_0x2f5f2b(_0x4556a5,_0x2b2a5f,_0x5dee8b);let m=class extends _0x33c3c3{constructor(_0x38eff5){super(),this['_liveShareService']=_0x38eff5,this['_init']();}[_0x4c562c(0x1dd)](){var _0x56eea7=_0x4c562c;[_0x3796db['id'],_0x458e24['id'],_0x4db634['id']][_0x56eea7(0x159)](_0x1364ed=>{var _0x21d2fc=_0x56eea7;this[_0x21d2fc(0x18b)](this[_0x21d2fc(0x1fc)][_0x21d2fc(0x1d8)](_0x1364ed));});}};m=we([Ne(0x0,_0x28b8e2(L))],m);var c=function(){var _0x17f4bf=_0x4c562c;return c=Object[_0x17f4bf(0x1a4)]||function(_0x91f75c){var _0x34d3c9=_0x17f4bf;for(var _0x7c2d99,_0x4a2052=0x1,_0x39e866=arguments[_0x34d3c9(0x184)];_0x4a2052<_0x39e866;_0x4a2052++){_0x7c2d99=arguments[_0x4a2052];for(var _0x22239c in _0x7c2d99)Object[_0x34d3c9(0x199)][_0x34d3c9(0x1e2)][_0x34d3c9(0x20a)](_0x7c2d99,_0x22239c)&&(_0x91f75c[_0x22239c]=_0x7c2d99[_0x22239c]);}return _0x91f75c;},c[_0x17f4bf(0x1e8)](this,arguments);},Ce=function(_0x1902d2,_0xd4534){var _0x567312=_0x4c562c,_0xb8b042={};for(var _0x1b1fda in _0x1902d2)Object[_0x567312(0x199)][_0x567312(0x1e2)][_0x567312(0x20a)](_0x1902d2,_0x1b1fda)&&_0xd4534[_0x567312(0x160)](_0x1b1fda)<0x0&&(_0xb8b042[_0x1b1fda]=_0x1902d2[_0x1b1fda]);if(_0x1902d2!=null&&typeof Object[_0x567312(0x208)]==_0x567312(0x16b)){for(var _0x410787=0x0,_0x1b1fda=Object[_0x567312(0x208)](_0x1902d2);_0x410787<_0x1b1fda[_0x567312(0x184)];_0x410787++)_0xd4534[_0x567312(0x160)](_0x1b1fda[_0x410787])<0x0&&Object[_0x567312(0x199)][_0x567312(0x1e9)][_0x567312(0x20a)](_0x1902d2,_0x1b1fda[_0x410787])&&(_0xb8b042[_0x1b1fda[_0x410787]]=_0x1902d2[_0x1b1fda[_0x410787]]);}return _0xb8b042;},W=_0x5a5524(function(_0x4f5dd0,_0x2a9fbe){var _0x3f6b3b=_0x4c562c,_0x11aec6=_0x4f5dd0[_0x3f6b3b(0x1c9)],_0xd43ba7=_0x4f5dd0['id'],_0x55478b=_0x4f5dd0['className'],_0x1df97d=_0x4f5dd0[_0x3f6b3b(0x207)],_0x2dd629=Ce(_0x4f5dd0,[_0x3f6b3b(0x1c9),'id',_0x3f6b3b(0x19f),_0x3f6b3b(0x207)]),_0x2c5abe='univerjs-icon\x20univerjs-icon-'[_0x3f6b3b(0x1c1)](_0xd43ba7,'\x20')[_0x3f6b3b(0x1c1)](_0x55478b||'')['trim'](),_0x55b6ad=_0x666d59('_'[_0x3f6b3b(0x1c1)](Le()));return Y(_0x11aec6,''[_0x3f6b3b(0x1c1)](_0xd43ba7),{'defIds':_0x11aec6[_0x3f6b3b(0x154)],'idSuffix':_0x55b6ad[_0x3f6b3b(0x1d7)]},c({'ref':_0x2a9fbe,'className':_0x2c5abe},_0x2dd629),_0x1df97d);});function Y(_0x5dbe45,_0x2e9faf,_0x725586,_0x2f7440,_0x4944b5){var _0x222a8d=_0x4c562c;return _0x4d5163(_0x5dbe45[_0x222a8d(0x180)],c(c({'key':_0x2e9faf},De(_0x5dbe45,_0x725586,_0x4944b5)),_0x2f7440),(xe(_0x5dbe45,_0x725586)[_0x222a8d(0x1a7)]||[])[_0x222a8d(0x1a2)](function(_0x4fa380,_0x2e198d){var _0x350684=_0x222a8d;return Y(_0x4fa380,''[_0x350684(0x1c1)](_0x2e9faf,'-')[_0x350684(0x1c1)](_0x5dbe45[_0x350684(0x180)],'-')[_0x350684(0x1c1)](_0x2e198d),_0x725586,void 0x0,_0x4944b5);}));}function De(_0x5de3d4,_0x58a9ff,_0xaa9b5d){var _0x5a5e8e=_0x4c562c,_0x540083=c({},_0x5de3d4[_0x5a5e8e(0x1c8)]);_0xaa9b5d!=null&&_0xaa9b5d[_0x5a5e8e(0x194)]&&_0x540083[_0x5a5e8e(0x1a6)]===_0x5a5e8e(0x194)&&(_0x540083[_0x5a5e8e(0x1a6)]=_0xaa9b5d[_0x5a5e8e(0x194)]),_0x5de3d4[_0x5a5e8e(0x180)]==='mask'&&_0x540083['id']&&(_0x540083['id']=_0x540083['id']+_0x58a9ff[_0x5a5e8e(0x1b3)]),Object['entries'](_0x540083)[_0x5a5e8e(0x159)](function(_0x5f08fd){var _0x3f932b=_0x5a5e8e,_0x2c9206=_0x5f08fd[0x0],_0x2c9eb1=_0x5f08fd[0x1];_0x2c9206===_0x3f932b(0x1c4)&&typeof _0x2c9eb1==_0x3f932b(0x1cc)&&(_0x540083[_0x2c9206]=_0x2c9eb1[_0x3f932b(0x1cd)](/url\(#(.*)\)/,_0x3f932b(0x1de)['concat'](_0x58a9ff[_0x3f932b(0x1b3)],')')));});var _0x42b815=_0x58a9ff[_0x5a5e8e(0x154)];return!_0x42b815||_0x42b815['length']===0x0||(_0x5de3d4[_0x5a5e8e(0x180)]==='use'&&_0x540083[_0x5a5e8e(0x1d2)]&&(_0x540083[_0x5a5e8e(0x1d2)]=_0x540083[_0x5a5e8e(0x1d2)]+_0x58a9ff['idSuffix']),Object[_0x5a5e8e(0x1b4)](_0x540083)[_0x5a5e8e(0x159)](function(_0x2e73f6){var _0x3fe72d=_0x5a5e8e,_0x2d87cb=_0x2e73f6[0x0],_0x1217f2=_0x2e73f6[0x1];typeof _0x1217f2==_0x3fe72d(0x1cc)&&(_0x540083[_0x2d87cb]=_0x1217f2['replace'](/url\(#(.*)\)/,_0x3fe72d(0x1de)[_0x3fe72d(0x1c1)](_0x58a9ff['idSuffix'],')')));})),_0x540083;}function xe(_0x20fdc0,_0x470c46){var _0x5e97c8=_0x4c562c,_0x25e7a6,_0x2b3948=_0x470c46[_0x5e97c8(0x154)];return!_0x2b3948||_0x2b3948[_0x5e97c8(0x184)]===0x0?_0x20fdc0:_0x20fdc0[_0x5e97c8(0x180)]==='defs'&&(!((_0x25e7a6=_0x20fdc0[_0x5e97c8(0x1a7)])===null||_0x25e7a6===void 0x0)&&_0x25e7a6[_0x5e97c8(0x184)])?c(c({},_0x20fdc0),{'children':_0x20fdc0['children']['map'](function(_0x4e859d){var _0x4b3d23=_0x5e97c8;return typeof _0x4e859d[_0x4b3d23(0x1c8)]['id']=='string'&&_0x2b3948&&_0x2b3948[_0x4b3d23(0x160)](_0x4e859d[_0x4b3d23(0x1c8)]['id'])>-0x1?c(c({},_0x4e859d),{'attrs':c(c({},_0x4e859d[_0x4b3d23(0x1c8)]),{'id':_0x4e859d[_0x4b3d23(0x1c8)]['id']+_0x470c46[_0x4b3d23(0x1b3)]})}):_0x4e859d;})}):_0x20fdc0;}function Le(){var _0x105a53=_0x4c562c;return Math[_0x105a53(0x1e0)]()[_0x105a53(0x15c)](0x24)[_0x105a53(0x1ed)](0x2,0x8);}W[_0x4c562c(0x18c)]=_0x4c562c(0x189);var ye={'tag':_0x4c562c(0x1e7),'attrs':{'xmlns':_0x4c562c(0x17d),'fill':_0x4c562c(0x18d),'viewBox':_0x4c562c(0x1f6),'width':_0x4c562c(0x1cb),'height':_0x4c562c(0x1cb)},'children':[{'tag':_0x4c562c(0x1d5),'attrs':{'fill':_0x4c562c(0x16c),'d':_0x4c562c(0x1c6)}},{'tag':_0x4c562c(0x1d5),'attrs':{'fill':_0x4c562c(0x16c),'d':_0x4c562c(0x1f4),'fillRule':_0x4c562c(0x1d0),'clipRule':_0x4c562c(0x1d0)}}]},B=_0x5a5524(function(_0x320cff,_0x25f741){var _0x427ed1=_0x4c562c;return _0x4d5163(W,Object['assign']({},_0x320cff,{'id':_0x427ed1(0x1e5),'ref':_0x25f741,'icon':ye}));});B[_0x4c562c(0x18c)]=_0x4c562c(0x1ee);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x47b72e,_0x45e2dc,_0x4ba8e8,_0x4f7e1a)=>{var _0x173614=_0x4c562c;for(var _0xda7a82=_0x4f7e1a>0x1?void 0x0:_0x4f7e1a?Re(_0x45e2dc,_0x4ba8e8):_0x45e2dc,_0x40399e=_0x47b72e[_0x173614(0x184)]-0x1,_0x4f947a;_0x40399e>=0x0;_0x40399e--)(_0x4f947a=_0x47b72e[_0x40399e])&&(_0xda7a82=_0x4f947a(_0xda7a82)||_0xda7a82);return _0xda7a82;},f=(_0x3c2712,_0x492e53)=>(_0x3ee31e,_0x261ff9)=>_0x492e53(_0x3ee31e,_0x261ff9,_0x3c2712);let I=class extends _0x30c532{constructor(_0x409ef4,_0x64b075,_0xed39e){var _0x3f2a43=_0x4c562c;super(),d(this,_0x3f2a43(0x190),new Map()),(this[_0x3f2a43(0x1b9)]=_0x409ef4,this[_0x3f2a43(0x1be)]=_0x64b075,this[_0x3f2a43(0x193)]=_0xed39e,this[_0x3f2a43(0x1dd)]());}async[_0x4c562c(0x1eb)](_0x41aa7c){var _0x35f5e9=_0x4c562c;return this['_entities'][_0x35f5e9(0x1dc)](_0x41aa7c)||await this['_startLiveShareCoordinator'](_0x41aa7c),this['_entities'][_0x35f5e9(0x1b1)](_0x41aa7c);}[_0x4c562c(0x1dd)](){var _0x5e2db5=_0x4c562c;this[_0x5e2db5(0x1b9)][_0x5e2db5(0x17e)](_0x5516a4[_0x5e2db5(0x1af)])[_0x5e2db5(0x191)](_0x5182f0(this[_0x5e2db5(0x209)]))['subscribe'](async _0x4d21ee=>{var _0x4d53a4=_0x5e2db5;const _0x3ea49a=_0x4d21ee[_0x4d53a4(0x176)]();this[_0x4d53a4(0x190)][_0x4d53a4(0x1dc)](_0x3ea49a)||this[_0x4d53a4(0x1b6)](_0x3ea49a);}),this[_0x5e2db5(0x1b9)][_0x5e2db5(0x185)](_0x5516a4['UNIVER_SHEET'])['pipe'](_0x5182f0(this[_0x5e2db5(0x209)]))[_0x5e2db5(0x201)](_0x37fb0c=>{var _0x19940c=_0x5e2db5;const _0x2489d2=_0x37fb0c[_0x19940c(0x176)](),_0x4695c6=this[_0x19940c(0x190)]['get'](_0x2489d2);_0x4695c6==null||_0x4695c6[_0x19940c(0x1a3)]();});}async[_0x4c562c(0x1b6)](_0x188f75){var _0x329197=_0x4c562c;const _0xac8da2=await this[_0x329197(0x193)][_0x329197(0x200)](_0x188f75),_0x5d449f=this['_injector']['createInstance'](C,_0x188f75,_0xac8da2);return _0x5d449f[_0x329197(0x1d4)](),this[_0x329197(0x190)][_0x329197(0x1ac)](_0x188f75,_0x5d449f),_0x5d449f;}};I=Z([f(0x0,_0x39e568),f(0x1,_0x28b8e2(_0x37932d)),f(0x2,_0x28b8e2(_0x4bced4))],I);var h=(_0x5ef23c=>(_0x5ef23c[_0x4c562c(0x1aa)]='offline',_0x5ef23c[_0x4c562c(0x1bd)]='idle',_0x5ef23c[_0x4c562c(0x1d3)]=_0x4c562c(0x1f3),_0x5ef23c[_0x4c562c(0x1c7)]=_0x4c562c(0x1f9),_0x5ef23c[_0x4c562c(0x166)]=_0x4c562c(0x1e4),_0x5ef23c))(h||{});const Pe=_0x4c562c(0x173),Ae=0xc8;let C=class extends _0x30c532{constructor(_0x1b2439,_0x501702,_0x80e4a3,_0x50b221,_0xac5ce7){var _0x3f6d28=_0x4c562c;super(),d(this,_0x3f6d28(0x171),new _0x2470ba('idle')),d(this,_0x3f6d28(0x1c3),this['_status$'][_0x3f6d28(0x167)]()),d(this,_0x3f6d28(0x1dd),!0x1),d(this,_0x3f6d28(0x1ec),null),d(this,_0x3f6d28(0x16a),null),(this[_0x3f6d28(0x19c)]=_0x1b2439,this[_0x3f6d28(0x16d)]=_0x501702,this[_0x3f6d28(0x175)]=_0x80e4a3,this['_liveShareService']=_0x50b221,this[_0x3f6d28(0x198)]=_0xac5ce7);}get[_0x4c562c(0x206)](){var _0x4f784c=_0x4c562c;return this[_0x4f784c(0x171)]['getValue']();}[_0x4c562c(0x1a3)](){var _0x2dc576=_0x4c562c,_0x3d9838;(_0x3d9838=this[_0x2dc576(0x1ec)])==null||_0x3d9838[_0x2dc576(0x1a3)](),this[_0x2dc576(0x171)][_0x2dc576(0x1a5)]('idle'),this[_0x2dc576(0x171)][_0x2dc576(0x186)]();}[_0x4c562c(0x1d4)](){var _0x300f01=_0x4c562c;this[_0x300f01(0x1dd)]||(this[_0x300f01(0x1dd)]=!0x0,this['_collabSession'][_0x300f01(0x1cf)][_0x300f01(0x191)](_0x5182f0(this['dispose$']))[_0x300f01(0x201)](_0x4ee737=>{var _0x3552b4=_0x300f01;switch(_0x4ee737){case _0x406a9c['OFFLINE']:this[_0x3552b4(0x181)]();break;case _0x406a9c[_0x3552b4(0x1da)]:this[_0x3552b4(0x17b)]();break;}}),this[_0x300f01(0x16d)][_0x300f01(0x1fa)][_0x300f01(0x191)](_0x5182f0(this[_0x300f01(0x209)]))[_0x300f01(0x201)](_0x47cde8=>{var _0x39e378=_0x300f01;const {eventID:_0x10fad7}=_0x47cde8;switch(_0x10fad7){case _0x273bef[_0x39e378(0x165)]:this['_handleNewHost'](_0x47cde8);break;case _0x273bef[_0x39e378(0x195)]:this[_0x39e378(0x18e)](_0x47cde8);break;case _0x273bef[_0x39e378(0x1b7)]:this[_0x39e378(0x1ce)]();break;case _0x273bef[_0x39e378(0x182)]:this[_0x39e378(0x188)](_0x47cde8);break;}}));}['tryStartPresenting'](){var _0xccfa37=_0x4c562c;this['_collabSession'][_0xccfa37(0x15d)]({'eventID':_0x273bef['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0xccfa37(0x19c)],'userID':this[_0xccfa37(0x16d)][_0xccfa37(0x155)]()}},this[_0xccfa37(0x19c)]);}[_0x4c562c(0x16f)](){var _0x10abe9=_0x4c562c;this['_status']==='presenting'&&(this[_0x10abe9(0x171)][_0x10abe9(0x1a5)](_0x10abe9(0x1ef)),this[_0x10abe9(0x16d)]['send']({'eventID':_0x273bef['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x10abe9(0x19c)]}},this[_0x10abe9(0x19c)]));}[_0x4c562c(0x179)](){var _0x2f257d=_0x4c562c;this[_0x2f257d(0x206)]===_0x2f257d(0x1f9)&&(this['_status$']['next'](_0x2f257d(0x1f3)),this[_0x2f257d(0x178)]());}[_0x4c562c(0x1e3)](){var _0x1b5d40=_0x4c562c;this[_0x1b5d40(0x206)]===_0x1b5d40(0x1f3)&&this[_0x1b5d40(0x170)]();}['_handleNewHost'](_0x244d53){var _0x20a1e1=_0x4c562c;const {presenter:_0x1b5dd7}=_0x244d53[_0x20a1e1(0x1d6)],_0x3fc00a=this[_0x20a1e1(0x16d)][_0x20a1e1(0x155)]();this['_presenter']=_0x1b5dd7,_0x1b5dd7===_0x3fc00a?(this[_0x20a1e1(0x170)](),this['_startPresenting']()):this[_0x20a1e1(0x206)]!=='not-following'&&(this['_stopPresenting'](),this[_0x20a1e1(0x178)]());}[_0x4c562c(0x163)](){var _0x182599=_0x4c562c;const _0x5d4dc0={'eventID':_0x273bef[_0x182599(0x1d1)]};this[_0x182599(0x16d)][_0x182599(0x15d)](_0x5d4dc0,this[_0x182599(0x19c)]);}[_0x4c562c(0x1ce)](){var _0x232348=_0x4c562c;this['_presenter']=null,this[_0x232348(0x206)]!==_0x232348(0x1e4)&&this[_0x232348(0x1f5)]();}[_0x4c562c(0x188)](_0x6957ec){var _0x353b18=_0x4c562c;if(this[_0x353b18(0x206)]===_0x353b18(0x1f3)&&this[_0x353b18(0x16a)]===_0x6957ec[_0x353b18(0x1d6)][_0x353b18(0x1ff)]){const _0x2580fb=_0x4fdd2c(_0x6957ec[_0x353b18(0x1d6)])[_0x353b18(0x174)][_0x353b18(0x1e1)]()[_0x353b18(0x1ad)](_0x5badb5=>_0x5badb5['id']===_0x18021c['id']);if(_0x2580fb){const _0x1b9364=_0x2580fb[_0x353b18(0x1f0)][_0x353b18(0x17a)],_0x371654=_0x2580fb[_0x353b18(0x1f0)][_0x353b18(0x20b)]['id'];setTimeout(()=>{var _0x2c05ac=_0x353b18;this[_0x2c05ac(0x198)][_0x2c05ac(0x1b5)](_0x4db634['id'],{'unitId':_0x1b9364,'subUnitId':_0x371654},{'fromCollab':!0x0});});}}}[_0x4c562c(0x1b8)](){var _0x33e201=_0x4c562c;this[_0x33e201(0x171)][_0x33e201(0x1a5)](_0x33e201(0x1e4));const _0x10cce3=new Map(),_0xca3706=this[_0x33e201(0x1ec)]=new _0x533c1f();_0xca3706[_0x33e201(0x1d9)](_0x5c277b(()=>{var _0x1898ef=_0x33e201;_0x10cce3[_0x1898ef(0x159)](_0x169d83=>_0x169d83[_0x1898ef(0x186)]()),_0x10cce3[_0x1898ef(0x17c)]();})),_0xca3706[_0x33e201(0x1d9)](this[_0x33e201(0x198)][_0x33e201(0x204)](_0x275146=>{var _0x2f9f0f=_0x33e201,_0x597466;if(_0x275146[_0x2f9f0f(0x161)]!==_0x29ff11[_0x2f9f0f(0x1b0)]||!this['_liveShareService']['shouldShareOperation'](_0x275146['id']))return;const {id:_0x6d3b7f}=_0x275146;let _0xce94a4;_0x10cce3[_0x2f9f0f(0x1dc)](_0x6d3b7f)?_0xce94a4=_0x10cce3['get'](_0x6d3b7f):(_0xce94a4=new _0x2dfbad(),_0x10cce3[_0x2f9f0f(0x1ac)](_0x6d3b7f,_0xce94a4),_0xce94a4[_0x2f9f0f(0x191)](_0x28ab2b((_0x597466=this[_0x2f9f0f(0x175)]['getConfig'](Pe))!=null?_0x597466:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2f9f0f(0x201)](_0x708071=>{var _0x2de09e=_0x2f9f0f;this[_0x2de09e(0x16d)]['send']({'eventID':_0x273bef['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x2de09e(0x19c)],'operations':{[_0x708071['id']]:{'id':_0x708071['id'],'params':JSON['stringify'](_0x708071['params'])}}}},this[_0x2de09e(0x19c)]);})),_0xce94a4[_0x2f9f0f(0x1a5)](_0x275146);})),this['_liveShareService'][_0x33e201(0x16e)](this[_0x33e201(0x19c)])[_0x33e201(0x159)](_0x1e0bcf=>this[_0x33e201(0x16d)][_0x33e201(0x15d)]({'eventID':_0x273bef[_0x33e201(0x195)],'data':{'unitID':this[_0x33e201(0x19c)],'operations':{[_0x1e0bcf['id']]:{'id':_0x1e0bcf['id'],'params':JSON['stringify'](_0x1e0bcf[_0x33e201(0x1f0)])}}}},this[_0x33e201(0x19c)]));}[_0x4c562c(0x1f7)](){var _0xcff531=_0x4c562c,_0x490c0d;this[_0xcff531(0x171)][_0xcff531(0x1a5)](_0xcff531(0x1ef)),(_0x490c0d=this[_0xcff531(0x1ec)])==null||_0x490c0d[_0xcff531(0x1a3)](),this['_commandDisposable']=null;}[_0x4c562c(0x178)](){var _0x2913b8=_0x4c562c,_0x374dc7;(_0x374dc7=this[_0x2913b8(0x1ec)])==null||_0x374dc7[_0x2913b8(0x1a3)](),this['_status$']['next'](_0x2913b8(0x1f3));}[_0x4c562c(0x1f5)](){var _0x1fac8c=_0x4c562c,_0x57cd1e;this[_0x1fac8c(0x171)][_0x1fac8c(0x1a5)]('idle'),(_0x57cd1e=this['_commandDisposable'])==null||_0x57cd1e[_0x1fac8c(0x1a3)](),this[_0x1fac8c(0x1ec)]=null;}[_0x4c562c(0x170)](){var _0x2476bc=_0x4c562c,_0x34d2ad;this[_0x2476bc(0x171)][_0x2476bc(0x1a5)](_0x2476bc(0x1f9)),(_0x34d2ad=this[_0x2476bc(0x1ec)])==null||_0x34d2ad['dispose']();}['_handleOperation'](_0x34cb80){var _0x4ab46a=_0x4c562c;if(['presenting',_0x4ab46a(0x1f9),_0x4ab46a(0x1ab)][_0x4ab46a(0x1a8)](this[_0x4ab46a(0x206)])||!_0x34cb80['data']['presenter']||_0x34cb80[_0x4ab46a(0x1d6)][_0x4ab46a(0x192)]===this[_0x4ab46a(0x16d)][_0x4ab46a(0x155)]())return;this['_status']===_0x4ab46a(0x1ef)&&this[_0x4ab46a(0x178)]();const _0x5c1866=_0x34cb80['data'][_0x4ab46a(0x15f)];Object[_0x4ab46a(0x203)](_0x5c1866)[_0x4ab46a(0x159)](_0x8213af=>{var _0xc6b37f=_0x4ab46a;this['_commandService'][_0xc6b37f(0x1b5)](_0x8213af['id'],_0x8213af['params']?JSON[_0xc6b37f(0x1a9)](_0x8213af[_0xc6b37f(0x1f0)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x3cfd19=_0x4c562c,_0x541e56;this[_0x3cfd19(0x171)][_0x3cfd19(0x1a5)](_0x3cfd19(0x1ab)),(_0x541e56=this[_0x3cfd19(0x1ec)])==null||_0x541e56[_0x3cfd19(0x1a3)]();}[_0x4c562c(0x17b)](){var _0x3c6b13=_0x4c562c;this[_0x3c6b13(0x171)][_0x3c6b13(0x1a5)](_0x3c6b13(0x1ef)),this['_fetchOperations']();}};C=Z([f(0x2,_0x12fb39),f(0x3,_0x28b8e2(L)),f(0x4,_0x444a63)],C);function Te(){var _0x2efdaf=_0x4c562c;const _0xa3eb21=_0x2fae43(I),_0x3bb343=_0x2fae43(_0x39e568),_0x285ee5=_0x2cbc5c(()=>_0x3bb343[_0x2efdaf(0x1a1)](_0x5516a4[_0x2efdaf(0x1af)]),void 0x0,!0x1,[]),[_0x11c6e7,_0x2a9433]=_0x1aef14(null),[_0x533c18,_0x10c56d]=_0x1aef14(h['IDLE']),_0x34e261=_0x666d59(null);return _0x40246b(()=>(_0x285ee5&&_0xa3eb21[_0x2efdaf(0x1eb)](_0x285ee5[_0x2efdaf(0x176)]())[_0x2efdaf(0x205)](_0x44411c=>{var _0x28e482=_0x2efdaf;_0x2a9433(_0x44411c),_0x34e261[_0x28e482(0x1d7)]=_0x44411c[_0x28e482(0x1c3)][_0x28e482(0x201)](_0x4b4f40=>{_0x10c56d(_0x4b4f40);});}),()=>{var _0x9eb8ff=_0x2efdaf,_0x18ba7e;(_0x18ba7e=_0x34e261[_0x9eb8ff(0x1d7)])==null||_0x18ba7e[_0x9eb8ff(0x164)](),_0x34e261['current']=null;}),[_0x285ee5,_0xa3eb21]),_0x11c6e7?_0x7764ac(_0x1b79cb,{'align':'end','disabled':_0x533c18===h[_0x2efdaf(0x1aa)],'className':_0x2efdaf(0x197),'overlay':_0x7764ac($e,{'status':_0x533c18,'coordinator':_0x11c6e7}),'children':_0x7764ac(_0x2efdaf(0x168),{'className':_0x371cc7(_0x2efdaf(0x156),{'univer-cursor-not-allowed':_0x533c18===h[_0x2efdaf(0x1aa)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x533c18!==h[_0x2efdaf(0x1aa)]}),'type':_0x2efdaf(0x168),'children':_0x7764ac(B,{'className':_0x2efdaf(0x15e)})})}):null;}function $e(_0x17a275){var _0x2703fc=_0x4c562c;const {status:_0x4da168,coordinator:_0x5d641a}=_0x17a275;switch(_0x4da168){case h[_0x2703fc(0x1bd)]:return _0x7764ac(Fe,{'coordinator':_0x5d641a});case h[_0x2703fc(0x1d3)]:return _0x7764ac(He,{'coordinator':_0x5d641a});case h['NOT_FOLLOWING']:return _0x7764ac(je,{'coordinator':_0x5d641a});case h[_0x2703fc(0x1aa)]:return _0x7764ac(Ve,{});case h[_0x2703fc(0x166)]:return _0x7764ac(Ue,{'coordinator':_0x5d641a});default:return null;}}function Fe(_0x487f3f){var _0x4f21dd=_0x4c562c;const {coordinator:_0x2c8713}=_0x487f3f;return _0x55f059(_0x31bb70,{'children':[_0x7764ac(_0x4f21dd(0x17f),{'className':_0x4f21dd(0x158),'children':'Present\x20this\x20document'}),_0x7764ac(_0x33e106,{'onClick':()=>_0x2c8713[_0x4f21dd(0x1db)](),'children':_0x4f21dd(0x1c5)})]});}function He(_0x55bdda){var _0x40de61=_0x4c562c;const {coordinator:_0x443370}=_0x55bdda;return _0x55f059(_0x31bb70,{'children':[_0x7764ac('div',{'className':_0x40de61(0x158),'children':_0x40de61(0x1f2)}),_0x7764ac(_0x33e106,{'onClick':()=>_0x443370[_0x40de61(0x1e3)](),'children':_0x40de61(0x1b2)})]});}function je(_0x19ccbe){var _0x5c617f=_0x4c562c;const {coordinator:_0x3b492e}=_0x19ccbe;return _0x55f059(_0x31bb70,{'children':[_0x7764ac(_0x5c617f(0x17f),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5c617f(0x157)}),_0x7764ac(_0x33e106,{'variant':_0x5c617f(0x1ca),'onClick':()=>_0x3b492e[_0x5c617f(0x179)](),'children':_0x5c617f(0x169)})]});}function Ue(_0x14ed7b){var _0x4530a1=_0x4c562c;const {coordinator:_0x3fd453}=_0x14ed7b;return _0x55f059(_0x31bb70,{'children':[_0x7764ac(_0x4530a1(0x17f),{'className':_0x4530a1(0x158),'children':'You\x27re\x20presenting\x20the\x20document'}),_0x7764ac(_0x33e106,{'variant':_0x4530a1(0x1c2),'onClick':()=>_0x3fd453[_0x4530a1(0x16f)](),'children':_0x4530a1(0x1c0)})]});}function Ve(){var _0x40a2db=_0x4c562c;return _0x7764ac(_0x31bb70,{'children':_0x40a2db(0x1fd)});}var Me=Object[_0x4c562c(0x187)],ke=(_0x233bbe,_0x3aae78,_0x357b91,_0x25c99e)=>{for(var _0x49faa4=_0x25c99e>0x1?void 0x0:_0x25c99e?Me(_0x3aae78,_0x357b91):_0x3aae78,_0x4c1b71=_0x233bbe['length']-0x1,_0x5e44be;_0x4c1b71>=0x0;_0x4c1b71--)(_0x5e44be=_0x233bbe[_0x4c1b71])&&(_0x49faa4=_0x5e44be(_0x49faa4)||_0x49faa4);return _0x49faa4;},$=(_0x225bca,_0x1bcb3f)=>(_0x2307ec,_0x417c20)=>_0x1bcb3f(_0x2307ec,_0x417c20,_0x225bca);let b=class extends _0x33c3c3{constructor(_0x455cd0,_0x2d1199){var _0x3a7a95=_0x4c562c;super(),this[_0x3a7a95(0x1be)]=_0x455cd0,this[_0x3a7a95(0x1f1)]=_0x2d1199,this[_0x3a7a95(0x15a)]();}[_0x4c562c(0x15a)](){var _0x3b31ed=_0x4c562c;this[_0x3b31ed(0x18b)](this['_uiPartsService']['registerComponent'](_0x376e2d[_0x3b31ed(0x19a)],()=>_0x2fb9f7(Te,this[_0x3b31ed(0x1be)])));}};b=ke([$(0x0,_0x28b8e2(_0x37932d)),$(0x1,_0x331a18)],b);var Ge=Object[_0x4c562c(0x162)],We=Object[_0x4c562c(0x187)],Ye=(_0x41d755,_0x5ecf78,_0x3057c6)=>_0x5ecf78 in _0x41d755?Ge(_0x41d755,_0x5ecf78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3057c6}):_0x41d755[_0x5ecf78]=_0x3057c6,Be=(_0x5278af,_0x355bd6,_0x4520be,_0x4a2481)=>{var _0x36b273=_0x4c562c;for(var _0x54a060=_0x4a2481>0x1?void 0x0:_0x4a2481?We(_0x355bd6,_0x4520be):_0x355bd6,_0x4761cf=_0x5278af[_0x36b273(0x184)]-0x1,_0x4cc1aa;_0x4761cf>=0x0;_0x4761cf--)(_0x4cc1aa=_0x5278af[_0x4761cf])&&(_0x54a060=_0x4cc1aa(_0x54a060)||_0x54a060);return _0x54a060;},F=(_0x33ab9f,_0x2cd63c)=>(_0x158e6c,_0x401d34)=>_0x2cd63c(_0x158e6c,_0x401d34,_0x33ab9f),J=(_0x5bee20,_0x20c9aa,_0x207788)=>Ye(_0x5bee20,typeof _0x20c9aa!=_0x4c562c(0x1f8)?_0x20c9aa+'':_0x20c9aa,_0x207788);const Ze=_0x4c562c(0x18a);let O=class extends _0x490596{constructor(_0x4d275c=T,_0x5d540f,_0x19a2ff){var _0x285cc3=_0x4c562c;super(),this[_0x285cc3(0x183)]=_0x4d275c,this[_0x285cc3(0x1be)]=_0x5d540f,this[_0x285cc3(0x175)]=_0x19a2ff;const {..._0x4cf274}=_0x37f4ea({},T,this[_0x285cc3(0x183)]);this[_0x285cc3(0x175)][_0x285cc3(0x19d)](Oe,_0x4cf274);}['onStarting'](){var _0x17e778=_0x4c562c;_0x434b8c(this[_0x17e778(0x1be)],_0x22b299([[L],[I],[m],[b]],this[_0x17e778(0x183)]['override'])),_0x87b0fb(this['_injector'],[[m]]);}['onRendered'](){var _0x517f34=_0x4c562c;_0x87b0fb(this[_0x517f34(0x1be)],[[b]]);}};J(O,_0x4c562c(0x161),_0x5516a4[_0x4c562c(0x1fe)]),J(O,_0x4c562c(0x1ea),Ze),O=Be([_0x4f811b(_0x364d6e),F(0x1,_0x28b8e2(_0x37932d)),F(0x2,_0x12fb39)],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 _0x48e897=_0x32c6;(function(_0x57e8a1,_0x4fed58){var _0x3aa19f=_0x32c6,_0x41fff8=_0x57e8a1();while(!![]){try{var _0x450534=parseInt(_0x3aa19f(0x231))/0x1*(parseInt(_0x3aa19f(0x245))/0x2)+parseInt(_0x3aa19f(0x1c5))/0x3+parseInt(_0x3aa19f(0x24c))/0x4*(parseInt(_0x3aa19f(0x1dd))/0x5)+-parseInt(_0x3aa19f(0x228))/0x6*(-parseInt(_0x3aa19f(0x1bf))/0x7)+parseInt(_0x3aa19f(0x243))/0x8+parseInt(_0x3aa19f(0x1af))/0x9+-parseInt(_0x3aa19f(0x1c9))/0xa;if(_0x450534===_0x4fed58)break;else _0x41fff8['push'](_0x41fff8['shift']());}catch(_0x54dbcd){_0x41fff8['push'](_0x41fff8['shift']());}}}(_0x1275,0xeabb6));var q=Object[_0x48e897(0x232)],z=(_0x2d8d22,_0x301261,_0x2e460a)=>_0x301261 in _0x2d8d22?q(_0x2d8d22,_0x301261,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2e460a}):_0x2d8d22[_0x301261]=_0x2e460a,d=(_0x32781c,_0x241fba,_0x3e245c)=>z(_0x32781c,typeof _0x241fba!=_0x48e897(0x1be)?_0x241fba+'':_0x241fba,_0x3e245c);import{CollaborationSessionService as _0x5e869c,SessionStatus as _0x2d0dfb,UniverCollaborationClientPlugin as _0x17815a}from'@univerjs-pro/collaboration-client';import{Disposable as _0x3c2739,toDisposable as _0x57e236,Inject as _0x189c3d,IUniverInstanceService as _0x41b018,Injector as _0x57c965,IConfigService as _0x5d5944,ICommandService as _0xa11c32,RxDisposable as _0xcb0c2c,UniverInstanceType as _0x1ee84e,DisposableCollection as _0x52ba43,CommandType as _0x4dc604,DependentOn as _0x1b4e2c,Plugin as _0x3f4c4d,merge as _0x218892,registerDependencies as _0x326bf9,mergeOverrideWithDependencies as _0x50c96c,touchDependencies as _0x2bc9cc}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x5eba01,InsertSheetMutation as _0x1d263c}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x4944c9,SetScrollOperation as _0x36199a}from'@univerjs/sheets-ui';import{useDependency as _0x3f5601,useObservable as _0x1d597b,IUIPartsService as _0x510262,BuiltInUIPart as _0x3e180e,connectInjector as _0x4c0a72}from'@univerjs/ui';import{jsx as _0x325a97,jsxs as _0x1b43c4,Fragment as _0x3962b6}from'react/jsx-runtime';import{Dropdown as _0x550238,clsx as _0x3d682b,Button as _0x59600f}from'@univerjs/design';import{forwardRef as _0x314661,useRef as _0x5e59ea,createElement as _0x119c32,useState as _0x3e4387,useEffect as _0xb44850}from'react';import{CollaborationEvent as _0x516bcd,parseProtocolChangeset as _0x1d12fd}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x199ef3,Subject as _0x5f4b81}from'rxjs';import{takeUntil as _0x10d2c5,throttleTime as _0x2824d4}from'rxjs/operators';const Oe=_0x48e897(0x213),T={};class L extends _0x3c2739{constructor(){var _0x42f0fb=_0x48e897;super(...arguments),d(this,_0x42f0fb(0x24f),new Set()),d(this,_0x42f0fb(0x233),new Set());}[_0x48e897(0x24d)](_0x28e6db){var _0x175091=_0x48e897;return this[_0x175091(0x24f)][_0x175091(0x1dc)](_0x28e6db),_0x57e236(()=>this['_sharedOperations'][_0x175091(0x1cc)](_0x28e6db));}[_0x48e897(0x1c3)](_0x54cfbe){var _0xe5d2f6=_0x48e897;return this[_0xe5d2f6(0x233)][_0xe5d2f6(0x1dc)](_0x54cfbe),_0x57e236(()=>this[_0xe5d2f6(0x233)][_0xe5d2f6(0x1cc)](_0x54cfbe));}[_0x48e897(0x22e)](_0x132c05){var _0xce57f5=_0x48e897;return this['_sharedOperations'][_0xce57f5(0x244)](_0x132c05);}[_0x48e897(0x252)](_0x55b43a){var _0x29ea78=_0x48e897;return Array[_0x29ea78(0x1cb)](this[_0x29ea78(0x233)])[_0x29ea78(0x242)](_0x84a17c=>_0x84a17c(_0x55b43a));}}var Ee=Object[_0x48e897(0x1d6)],we=(_0x2bda5e,_0x454b66,_0x405c31,_0x3015e6)=>{var _0xd49cf7=_0x48e897;for(var _0x9cc2f9=_0x3015e6>0x1?void 0x0:_0x3015e6?Ee(_0x454b66,_0x405c31):_0x454b66,_0x15296d=_0x2bda5e[_0xd49cf7(0x1cf)]-0x1,_0x1f77ff;_0x15296d>=0x0;_0x15296d--)(_0x1f77ff=_0x2bda5e[_0x15296d])&&(_0x9cc2f9=_0x1f77ff(_0x9cc2f9)||_0x9cc2f9);return _0x9cc2f9;},Ne=(_0x2d9f00,_0x405e14)=>(_0x1cae31,_0xd1105)=>_0x405e14(_0x1cae31,_0xd1105,_0x2d9f00);let m=class extends _0x3c2739{constructor(_0x390ca6){var _0x4e94a9=_0x48e897;super(),this['_liveShareService']=_0x390ca6,this[_0x4e94a9(0x1c2)]();}[_0x48e897(0x1c2)](){[_0x4944c9['id'],_0x36199a['id'],_0x5eba01['id']]['forEach'](_0x54afb2=>{var _0xf2344=_0x32c6;this[_0xf2344(0x1e3)](this[_0xf2344(0x1b7)][_0xf2344(0x24d)](_0x54afb2));});}};function _0x32c6(_0x1630b5,_0x28d892){var _0x1275f1=_0x1275();return _0x32c6=function(_0x32c606,_0x44757a){_0x32c606=_0x32c606-0x1af;var _0x48d50f=_0x1275f1[_0x32c606];return _0x48d50f;},_0x32c6(_0x1630b5,_0x28d892);}m=we([Ne(0x0,_0x189c3d(L))],m);var c=function(){var _0x52e519=_0x48e897;return c=Object[_0x52e519(0x21d)]||function(_0x4f63d4){var _0x38ed89=_0x52e519;for(var _0x289958,_0x5a7e75=0x1,_0x510944=arguments['length'];_0x5a7e75<_0x510944;_0x5a7e75++){_0x289958=arguments[_0x5a7e75];for(var _0x525d82 in _0x289958)Object[_0x38ed89(0x20a)][_0x38ed89(0x1f8)]['call'](_0x289958,_0x525d82)&&(_0x4f63d4[_0x525d82]=_0x289958[_0x525d82]);}return _0x4f63d4;},c[_0x52e519(0x211)](this,arguments);},Ce=function(_0x396845,_0x371eee){var _0x1850c4=_0x48e897,_0x389fcc={};for(var _0x4ff6fa in _0x396845)Object[_0x1850c4(0x20a)]['hasOwnProperty']['call'](_0x396845,_0x4ff6fa)&&_0x371eee[_0x1850c4(0x1da)](_0x4ff6fa)<0x0&&(_0x389fcc[_0x4ff6fa]=_0x396845[_0x4ff6fa]);if(_0x396845!=null&&typeof Object[_0x1850c4(0x215)]=='function'){for(var _0x398ca9=0x0,_0x4ff6fa=Object[_0x1850c4(0x215)](_0x396845);_0x398ca9<_0x4ff6fa[_0x1850c4(0x1cf)];_0x398ca9++)_0x371eee[_0x1850c4(0x1da)](_0x4ff6fa[_0x398ca9])<0x0&&Object[_0x1850c4(0x20a)][_0x1850c4(0x1ce)]['call'](_0x396845,_0x4ff6fa[_0x398ca9])&&(_0x389fcc[_0x4ff6fa[_0x398ca9]]=_0x396845[_0x4ff6fa[_0x398ca9]]);}return _0x389fcc;},W=_0x314661(function(_0x3e3623,_0x1d3b2a){var _0x5913af=_0x48e897,_0xc98c0f=_0x3e3623[_0x5913af(0x251)],_0x4bd94c=_0x3e3623['id'],_0x90c43d=_0x3e3623[_0x5913af(0x219)],_0x2b3d45=_0x3e3623['extend'],_0x38b87a=Ce(_0x3e3623,[_0x5913af(0x251),'id','className',_0x5913af(0x23e)]),_0x48725a=_0x5913af(0x1b5)[_0x5913af(0x1e1)](_0x4bd94c,'\x20')[_0x5913af(0x1e1)](_0x90c43d||'')[_0x5913af(0x236)](),_0x460f90=_0x5e59ea('_'['concat'](Le()));return Y(_0xc98c0f,''[_0x5913af(0x1e1)](_0x4bd94c),{'defIds':_0xc98c0f[_0x5913af(0x20d)],'idSuffix':_0x460f90[_0x5913af(0x1f6)]},c({'ref':_0x1d3b2a,'className':_0x48725a},_0x38b87a),_0x2b3d45);});function Y(_0x3f4bd3,_0x4b207e,_0x12a2ba,_0x5f45eb,_0x199081){var _0x46b7eb=_0x48e897;return _0x119c32(_0x3f4bd3[_0x46b7eb(0x218)],c(c({'key':_0x4b207e},De(_0x3f4bd3,_0x12a2ba,_0x199081)),_0x5f45eb),(xe(_0x3f4bd3,_0x12a2ba)[_0x46b7eb(0x22b)]||[])['map'](function(_0x49a8c0,_0x5e036d){var _0x4169e2=_0x46b7eb;return Y(_0x49a8c0,''[_0x4169e2(0x1e1)](_0x4b207e,'-')[_0x4169e2(0x1e1)](_0x3f4bd3[_0x4169e2(0x218)],'-')['concat'](_0x5e036d),_0x12a2ba,void 0x0,_0x199081);}));}function De(_0x24f538,_0x4fb030,_0x1d176e){var _0x205494=_0x48e897,_0x3ce0ce=c({},_0x24f538[_0x205494(0x1ea)]);_0x1d176e!=null&&_0x1d176e[_0x205494(0x1bc)]&&_0x3ce0ce[_0x205494(0x23c)]===_0x205494(0x1bc)&&(_0x3ce0ce[_0x205494(0x23c)]=_0x1d176e[_0x205494(0x1bc)]),_0x24f538[_0x205494(0x218)]==='mask'&&_0x3ce0ce['id']&&(_0x3ce0ce['id']=_0x3ce0ce['id']+_0x4fb030[_0x205494(0x1bb)]),Object[_0x205494(0x1b0)](_0x3ce0ce)['forEach'](function(_0x162b86){var _0x52cf67=_0x205494,_0x381381=_0x162b86[0x0],_0x4a30e0=_0x162b86[0x1];_0x381381===_0x52cf67(0x234)&&typeof _0x4a30e0=='string'&&(_0x3ce0ce[_0x381381]=_0x4a30e0['replace'](/url\(#(.*)\)/,_0x52cf67(0x226)['concat'](_0x4fb030['idSuffix'],')')));});var _0x4d76a0=_0x4fb030[_0x205494(0x20d)];return!_0x4d76a0||_0x4d76a0['length']===0x0||(_0x24f538[_0x205494(0x218)]===_0x205494(0x23a)&&_0x3ce0ce[_0x205494(0x21f)]&&(_0x3ce0ce[_0x205494(0x21f)]=_0x3ce0ce['xlink:href']+_0x4fb030[_0x205494(0x1bb)]),Object[_0x205494(0x1b0)](_0x3ce0ce)[_0x205494(0x1fa)](function(_0x35cbef){var _0x39b510=_0x205494,_0x4d3f6b=_0x35cbef[0x0],_0x31ffa8=_0x35cbef[0x1];typeof _0x31ffa8==_0x39b510(0x238)&&(_0x3ce0ce[_0x4d3f6b]=_0x31ffa8['replace'](/url\(#(.*)\)/,_0x39b510(0x226)[_0x39b510(0x1e1)](_0x4fb030['idSuffix'],')')));})),_0x3ce0ce;}function xe(_0x36452b,_0x58b413){var _0x2bd813=_0x48e897,_0x33f8c8,_0x5e771a=_0x58b413['defIds'];return!_0x5e771a||_0x5e771a['length']===0x0?_0x36452b:_0x36452b[_0x2bd813(0x218)]===_0x2bd813(0x1e7)&&(!((_0x33f8c8=_0x36452b[_0x2bd813(0x22b)])===null||_0x33f8c8===void 0x0)&&_0x33f8c8[_0x2bd813(0x1cf)])?c(c({},_0x36452b),{'children':_0x36452b[_0x2bd813(0x22b)]['map'](function(_0x5b58ba){var _0x4c84af=_0x2bd813;return typeof _0x5b58ba[_0x4c84af(0x1ea)]['id']==_0x4c84af(0x238)&&_0x5e771a&&_0x5e771a[_0x4c84af(0x1ff)](_0x5b58ba['attrs']['id'])?c(c({},_0x5b58ba),{'attrs':c(c({},_0x5b58ba[_0x4c84af(0x1ea)]),{'id':_0x5b58ba[_0x4c84af(0x1ea)]['id']+_0x58b413[_0x4c84af(0x1bb)]})}):_0x5b58ba;})}):_0x36452b;}function Le(){var _0x407578=_0x48e897;return Math[_0x407578(0x1c6)]()['toString'](0x24)[_0x407578(0x206)](0x2,0x8);}W[_0x48e897(0x21c)]=_0x48e897(0x210);var ye={'tag':_0x48e897(0x20f),'attrs':{'xmlns':_0x48e897(0x1f4),'fill':_0x48e897(0x208),'viewBox':_0x48e897(0x1bd),'width':_0x48e897(0x253),'height':'1em'},'children':[{'tag':_0x48e897(0x1d5),'attrs':{'fill':_0x48e897(0x23b),'d':'M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z'}},{'tag':'path','attrs':{'fill':_0x48e897(0x23b),'d':_0x48e897(0x23f),'fillRule':_0x48e897(0x1c7),'clipRule':'evenodd'}}]},B=_0x314661(function(_0x21a89f,_0x5f590f){var _0x139591=_0x48e897;return _0x119c32(W,Object[_0x139591(0x21d)]({},_0x21a89f,{'id':_0x139591(0x1ed),'ref':_0x5f590f,'icon':ye}));});B[_0x48e897(0x21c)]=_0x48e897(0x1e2);var Re=Object['getOwnPropertyDescriptor'],Z=(_0x7967f6,_0x441fc6,_0x45a027,_0x1f6ca1)=>{var _0x2ae177=_0x48e897;for(var _0x3b0a7b=_0x1f6ca1>0x1?void 0x0:_0x1f6ca1?Re(_0x441fc6,_0x45a027):_0x441fc6,_0x4213c2=_0x7967f6[_0x2ae177(0x1cf)]-0x1,_0x5d6e26;_0x4213c2>=0x0;_0x4213c2--)(_0x5d6e26=_0x7967f6[_0x4213c2])&&(_0x3b0a7b=_0x5d6e26(_0x3b0a7b)||_0x3b0a7b);return _0x3b0a7b;},f=(_0x231255,_0x208cd1)=>(_0x14c46b,_0x39cb88)=>_0x208cd1(_0x14c46b,_0x39cb88,_0x231255);let I=class extends _0xcb0c2c{constructor(_0x48a22d,_0x2294db,_0xa860f7){var _0x3d1a3a=_0x48e897;super(),d(this,_0x3d1a3a(0x237),new Map()),(this['_univerInstanceService']=_0x48a22d,this['_injector']=_0x2294db,this[_0x3d1a3a(0x24e)]=_0xa860f7,this[_0x3d1a3a(0x1c2)]());}async[_0x48e897(0x21e)](_0x3511c7){var _0x4fb4d6=_0x48e897;return this[_0x4fb4d6(0x237)][_0x4fb4d6(0x244)](_0x3511c7)||await this[_0x4fb4d6(0x1c1)](_0x3511c7),this[_0x4fb4d6(0x237)]['get'](_0x3511c7);}['_init'](){var _0x4877bd=_0x48e897;this[_0x4877bd(0x1b9)][_0x4877bd(0x1ba)](_0x1ee84e[_0x4877bd(0x1f2)])[_0x4877bd(0x20c)](_0x10d2c5(this[_0x4877bd(0x230)]))[_0x4877bd(0x1e0)](async _0x59ad18=>{var _0x497345=_0x4877bd;const _0x3e5d6e=_0x59ad18[_0x497345(0x1d8)]();this['_entities']['has'](_0x3e5d6e)||this[_0x497345(0x1c1)](_0x3e5d6e);}),this[_0x4877bd(0x1b9)]['getTypeOfUnitDisposed$'](_0x1ee84e['UNIVER_SHEET'])[_0x4877bd(0x20c)](_0x10d2c5(this[_0x4877bd(0x230)]))[_0x4877bd(0x1e0)](_0xd0c332=>{var _0x46fe7f=_0x4877bd;const _0x55d22d=_0xd0c332['getUnitId'](),_0x1f40cd=this['_entities'][_0x46fe7f(0x1ef)](_0x55d22d);_0x1f40cd==null||_0x1f40cd[_0x46fe7f(0x1df)]();});}async[_0x48e897(0x1c1)](_0x2498d8){var _0x544a33=_0x48e897;const _0xf60abd=await this[_0x544a33(0x24e)][_0x544a33(0x1ec)](_0x2498d8),_0x365aee=this['_injector'][_0x544a33(0x22c)](C,_0x2498d8,_0xf60abd);return _0x365aee[_0x544a33(0x1e8)](),this['_entities'][_0x544a33(0x200)](_0x2498d8,_0x365aee),_0x365aee;}};I=Z([f(0x0,_0x41b018),f(0x1,_0x189c3d(_0x57c965)),f(0x2,_0x189c3d(_0x5e869c))],I);var h=(_0x377aa0=>(_0x377aa0[_0x48e897(0x1b6)]=_0x48e897(0x1c4),_0x377aa0[_0x48e897(0x220)]=_0x48e897(0x1c0),_0x377aa0['FOLLOWING']=_0x48e897(0x261),_0x377aa0[_0x48e897(0x20b)]=_0x48e897(0x1b1),_0x377aa0[_0x48e897(0x203)]='presenting',_0x377aa0))(h||{});const Pe=_0x48e897(0x227),Ae=0xc8;let C=class extends _0xcb0c2c{constructor(_0x1b41bd,_0x54a93c,_0x149d5b,_0x2129ad,_0x145a7b){var _0x58dc99=_0x48e897;super(),d(this,'_status$',new _0x199ef3(_0x58dc99(0x1c0))),d(this,'status$',this[_0x58dc99(0x1fb)][_0x58dc99(0x204)]()),d(this,_0x58dc99(0x1c2),!0x1),d(this,_0x58dc99(0x235),null),d(this,_0x58dc99(0x205),null),(this[_0x58dc99(0x214)]=_0x1b41bd,this[_0x58dc99(0x250)]=_0x54a93c,this['_configService']=_0x149d5b,this[_0x58dc99(0x1b7)]=_0x2129ad,this[_0x58dc99(0x1db)]=_0x145a7b);}get[_0x48e897(0x1d0)](){var _0x17ef48=_0x48e897;return this[_0x17ef48(0x1fb)][_0x17ef48(0x1d1)]();}[_0x48e897(0x1df)](){var _0x400273=_0x48e897,_0x4bdb95;(_0x4bdb95=this[_0x400273(0x235)])==null||_0x4bdb95[_0x400273(0x1df)](),this['_status$'][_0x400273(0x22d)](_0x400273(0x1c0)),this[_0x400273(0x1fb)][_0x400273(0x1b8)]();}[_0x48e897(0x1e8)](){var _0x120601=_0x48e897;this['_init']||(this[_0x120601(0x1c2)]=!0x0,this[_0x120601(0x250)]['sessionStatus$'][_0x120601(0x20c)](_0x10d2c5(this[_0x120601(0x230)]))[_0x120601(0x1e0)](_0x31247d=>{var _0x5826f0=_0x120601;switch(_0x31247d){case _0x2d0dfb[_0x5826f0(0x1b6)]:this['_handleOffline']();break;case _0x2d0dfb['ONLINE']:this[_0x5826f0(0x229)]();break;}}),this['_collabSession']['event$']['pipe'](_0x10d2c5(this[_0x120601(0x230)]))[_0x120601(0x1e0)](_0x104f5d=>{var _0x327005=_0x120601;const {eventID:_0x59c7c3}=_0x104f5d;switch(_0x59c7c3){case _0x516bcd['LIVESHARE_NEW_HOST']:this[_0x327005(0x221)](_0x104f5d);break;case _0x516bcd[_0x327005(0x21a)]:this[_0x327005(0x1d4)](_0x104f5d);break;case _0x516bcd[_0x327005(0x1c8)]:this['_handleTerminate']();break;case _0x516bcd[_0x327005(0x209)]:this['_handleNewChangeSets'](_0x104f5d);break;}}));}[_0x48e897(0x1f7)](){var _0x227c79=_0x48e897;this[_0x227c79(0x250)][_0x227c79(0x249)]({'eventID':_0x516bcd[_0x227c79(0x248)],'data':{'unitID':this[_0x227c79(0x214)],'userID':this[_0x227c79(0x250)][_0x227c79(0x259)]()}},this[_0x227c79(0x214)]);}[_0x48e897(0x1b2)](){var _0x4f5670=_0x48e897;this['_status']===_0x4f5670(0x255)&&(this['_status$']['next'](_0x4f5670(0x1c0)),this['_collabSession'][_0x4f5670(0x249)]({'eventID':_0x516bcd[_0x4f5670(0x1c8)],'data':{'unitID':this[_0x4f5670(0x214)]}},this[_0x4f5670(0x214)]));}[_0x48e897(0x25f)](){var _0x839e0a=_0x48e897;this[_0x839e0a(0x1d0)]===_0x839e0a(0x1b1)&&(this['_status$'][_0x839e0a(0x22d)](_0x839e0a(0x261)),this[_0x839e0a(0x202)]());}[_0x48e897(0x1d2)](){var _0x4e03b1=_0x48e897;this[_0x4e03b1(0x1d0)]===_0x4e03b1(0x261)&&this[_0x4e03b1(0x22f)]();}[_0x48e897(0x221)](_0x561216){var _0x1c0b27=_0x48e897;const {presenter:_0x1cc3db}=_0x561216[_0x1c0b27(0x254)],_0x5a2d58=this['_collabSession'][_0x1c0b27(0x259)]();this[_0x1c0b27(0x205)]=_0x1cc3db,_0x1cc3db===_0x5a2d58?(this[_0x1c0b27(0x22f)](),this[_0x1c0b27(0x246)]()):this['_status']!==_0x1c0b27(0x1b1)&&(this[_0x1c0b27(0x223)](),this['_startFollowing']());}['_fetchOperations'](){var _0x23a9a9=_0x48e897;const _0x36b1c8={'eventID':_0x516bcd[_0x23a9a9(0x260)]};this[_0x23a9a9(0x250)][_0x23a9a9(0x249)](_0x36b1c8,this[_0x23a9a9(0x214)]);}['_handleTerminate'](){var _0x4f51ec=_0x48e897;this[_0x4f51ec(0x205)]=null,this[_0x4f51ec(0x1d0)]!=='presenting'&&this[_0x4f51ec(0x1fd)]();}[_0x48e897(0x1e9)](_0x3e1c74){var _0x2a5cb1=_0x48e897;if(this[_0x2a5cb1(0x1d0)]===_0x2a5cb1(0x261)&&this['_presenter']===_0x3e1c74[_0x2a5cb1(0x254)]['memberID']){const _0x2ce3b1=_0x1d12fd(_0x3e1c74[_0x2a5cb1(0x254)])[_0x2a5cb1(0x201)][_0x2a5cb1(0x217)]()[_0x2a5cb1(0x1f1)](_0x3f1948=>_0x3f1948['id']===_0x1d263c['id']);if(_0x2ce3b1){const _0x2285b6=_0x2ce3b1[_0x2a5cb1(0x257)]['unitId'],_0x31b23b=_0x2ce3b1[_0x2a5cb1(0x257)][_0x2a5cb1(0x1f9)]['id'];setTimeout(()=>{var _0x37cce3=_0x2a5cb1;this[_0x37cce3(0x1db)]['executeCommand'](_0x5eba01['id'],{'unitId':_0x2285b6,'subUnitId':_0x31b23b},{'fromCollab':!0x0});});}}}[_0x48e897(0x246)](){var _0x4fac15=_0x48e897;this[_0x4fac15(0x1fb)][_0x4fac15(0x22d)](_0x4fac15(0x255));const _0x6ccf51=new Map(),_0x3c93ed=this[_0x4fac15(0x235)]=new _0x52ba43();_0x3c93ed[_0x4fac15(0x1dc)](_0x57e236(()=>{var _0x3bf3e2=_0x4fac15;_0x6ccf51[_0x3bf3e2(0x1fa)](_0x193f27=>_0x193f27['complete']()),_0x6ccf51[_0x3bf3e2(0x1e4)]();})),_0x3c93ed[_0x4fac15(0x1dc)](this[_0x4fac15(0x1db)][_0x4fac15(0x1b4)](_0x405bd4=>{var _0x1a0693=_0x4fac15,_0x10558a;if(_0x405bd4[_0x1a0693(0x212)]!==_0x4dc604[_0x1a0693(0x241)]||!this[_0x1a0693(0x1b7)]['shouldShareOperation'](_0x405bd4['id']))return;const {id:_0x1976ae}=_0x405bd4;let _0x4851fa;_0x6ccf51['has'](_0x1976ae)?_0x4851fa=_0x6ccf51[_0x1a0693(0x1ef)](_0x1976ae):(_0x4851fa=new _0x5f4b81(),_0x6ccf51[_0x1a0693(0x200)](_0x1976ae,_0x4851fa),_0x4851fa['pipe'](_0x2824d4((_0x10558a=this[_0x1a0693(0x1e6)][_0x1a0693(0x24a)](Pe))!=null?_0x10558a:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x1a0693(0x1e0)](_0x1d8745=>{var _0x1b9ae5=_0x1a0693;this[_0x1b9ae5(0x250)][_0x1b9ae5(0x249)]({'eventID':_0x516bcd[_0x1b9ae5(0x21a)],'data':{'unitID':this[_0x1b9ae5(0x214)],'operations':{[_0x1d8745['id']]:{'id':_0x1d8745['id'],'params':JSON[_0x1b9ae5(0x222)](_0x1d8745[_0x1b9ae5(0x257)])}}}},this[_0x1b9ae5(0x214)]);})),_0x4851fa[_0x1a0693(0x22d)](_0x405bd4);})),this[_0x4fac15(0x1b7)][_0x4fac15(0x252)](this[_0x4fac15(0x214)])[_0x4fac15(0x1fa)](_0x5bc5d0=>this[_0x4fac15(0x250)]['send']({'eventID':_0x516bcd[_0x4fac15(0x21a)],'data':{'unitID':this[_0x4fac15(0x214)],'operations':{[_0x5bc5d0['id']]:{'id':_0x5bc5d0['id'],'params':JSON[_0x4fac15(0x222)](_0x5bc5d0[_0x4fac15(0x257)])}}}},this[_0x4fac15(0x214)]));}[_0x48e897(0x223)](){var _0x270461=_0x48e897,_0x199390;this[_0x270461(0x1fb)][_0x270461(0x22d)](_0x270461(0x1c0)),(_0x199390=this[_0x270461(0x235)])==null||_0x199390[_0x270461(0x1df)](),this['_commandDisposable']=null;}[_0x48e897(0x202)](){var _0x48bb22=_0x48e897,_0x55dbe8;(_0x55dbe8=this[_0x48bb22(0x235)])==null||_0x55dbe8[_0x48bb22(0x1df)](),this['_status$'][_0x48bb22(0x22d)](_0x48bb22(0x261));}[_0x48e897(0x1fd)](){var _0x489e69=_0x48e897,_0x51bd09;this[_0x489e69(0x1fb)][_0x489e69(0x22d)]('idle'),(_0x51bd09=this[_0x489e69(0x235)])==null||_0x51bd09[_0x489e69(0x1df)](),this[_0x489e69(0x235)]=null;}[_0x48e897(0x22f)](){var _0x2e4d60=_0x48e897,_0x516fc6;this[_0x2e4d60(0x1fb)]['next'](_0x2e4d60(0x1b1)),(_0x516fc6=this[_0x2e4d60(0x235)])==null||_0x516fc6[_0x2e4d60(0x1df)]();}['_handleOperation'](_0x21ebd1){var _0x433635=_0x48e897;if([_0x433635(0x255),_0x433635(0x1b1),'offline']['includes'](this[_0x433635(0x1d0)])||!_0x21ebd1['data'][_0x433635(0x1d3)]||_0x21ebd1['data'][_0x433635(0x1d3)]===this[_0x433635(0x250)][_0x433635(0x259)]())return;this[_0x433635(0x1d0)]===_0x433635(0x1c0)&&this['_startFollowing']();const _0x1a1fb5=_0x21ebd1['data'][_0x433635(0x225)];Object[_0x433635(0x1cd)](_0x1a1fb5)[_0x433635(0x1fa)](_0x30fef4=>{var _0x9a0c33=_0x433635;this[_0x9a0c33(0x1db)][_0x9a0c33(0x216)](_0x30fef4['id'],_0x30fef4[_0x9a0c33(0x257)]?JSON['parse'](_0x30fef4[_0x9a0c33(0x257)]):null,{'fromCollab':!0x0});});}['_handleOffline'](){var _0x211e3b=_0x48e897,_0x178d9e;this[_0x211e3b(0x1fb)]['next'](_0x211e3b(0x1c4)),(_0x178d9e=this['_commandDisposable'])==null||_0x178d9e[_0x211e3b(0x1df)]();}[_0x48e897(0x229)](){var _0x5484ab=_0x48e897;this['_status$'][_0x5484ab(0x22d)](_0x5484ab(0x1c0)),this[_0x5484ab(0x1f3)]();}};C=Z([f(0x2,_0x5d5944),f(0x3,_0x189c3d(L)),f(0x4,_0xa11c32)],C);function Te(){var _0x575928=_0x48e897;const _0x3ac5c1=_0x3f5601(I),_0x30af77=_0x3f5601(_0x41b018),_0x52eb65=_0x1d597b(()=>_0x30af77[_0x575928(0x1f5)](_0x1ee84e[_0x575928(0x1f2)]),void 0x0,!0x1,[]),[_0x1f811e,_0x2f4e68]=_0x3e4387(null),[_0x2fa5e9,_0x279ed6]=_0x3e4387(h[_0x575928(0x220)]),_0x2a3737=_0x5e59ea(null);return _0xb44850(()=>(_0x52eb65&&_0x3ac5c1[_0x575928(0x21e)](_0x52eb65[_0x575928(0x1d8)]())[_0x575928(0x21b)](_0xeeb86c=>{var _0x5936e9=_0x575928;_0x2f4e68(_0xeeb86c),_0x2a3737['current']=_0xeeb86c[_0x5936e9(0x207)]['subscribe'](_0x17c228=>{_0x279ed6(_0x17c228);});}),()=>{var _0x25648a=_0x575928,_0x4fac78;(_0x4fac78=_0x2a3737['current'])==null||_0x4fac78[_0x25648a(0x1de)](),_0x2a3737[_0x25648a(0x1f6)]=null;}),[_0x52eb65,_0x3ac5c1]),_0x1f811e?_0x325a97(_0x550238,{'align':_0x575928(0x1fe),'disabled':_0x2fa5e9===h['OFFLINE'],'className':_0x575928(0x23d),'overlay':_0x325a97($e,{'status':_0x2fa5e9,'coordinator':_0x1f811e}),'children':_0x325a97('button',{'className':_0x3d682b('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x2fa5e9===h[_0x575928(0x1b6)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x2fa5e9!==h[_0x575928(0x1b6)]}),'type':_0x575928(0x25d),'children':_0x325a97(B,{'className':_0x575928(0x25b)})})}):null;}function $e(_0x31b968){var _0x48dea6=_0x48e897;const {status:_0x12bfe6,coordinator:_0x58de46}=_0x31b968;switch(_0x12bfe6){case h[_0x48dea6(0x220)]:return _0x325a97(Fe,{'coordinator':_0x58de46});case h[_0x48dea6(0x25c)]:return _0x325a97(He,{'coordinator':_0x58de46});case h['NOT_FOLLOWING']:return _0x325a97(je,{'coordinator':_0x58de46});case h[_0x48dea6(0x1b6)]:return _0x325a97(Ve,{});case h[_0x48dea6(0x203)]:return _0x325a97(Ue,{'coordinator':_0x58de46});default:return null;}}function Fe(_0x16b34d){var _0x288064=_0x48e897;const {coordinator:_0x502aa0}=_0x16b34d;return _0x1b43c4(_0x3962b6,{'children':[_0x325a97(_0x288064(0x239),{'className':_0x288064(0x1ca),'children':_0x288064(0x24b)}),_0x325a97(_0x59600f,{'onClick':()=>_0x502aa0[_0x288064(0x1f7)](),'children':'Start'})]});}function He(_0x310744){var _0x718a22=_0x48e897;const {coordinator:_0x10b55f}=_0x310744;return _0x1b43c4(_0x3962b6,{'children':[_0x325a97(_0x718a22(0x239),{'className':_0x718a22(0x1ca),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x325a97(_0x59600f,{'onClick':()=>_0x10b55f[_0x718a22(0x1d2)](),'children':_0x718a22(0x20e)})]});}function je(_0x30a8e4){var _0x58b12=_0x48e897;const {coordinator:_0x4dd262}=_0x30a8e4;return _0x1b43c4(_0x3962b6,{'children':[_0x325a97(_0x58b12(0x239),{'className':_0x58b12(0x1ca),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),_0x325a97(_0x59600f,{'variant':'text','onClick':()=>_0x4dd262[_0x58b12(0x25f)](),'children':_0x58b12(0x25e)})]});}function Ue(_0x49d727){var _0x201874=_0x48e897;const {coordinator:_0x33f595}=_0x49d727;return _0x1b43c4(_0x3962b6,{'children':[_0x325a97(_0x201874(0x239),{'className':_0x201874(0x1ca),'children':_0x201874(0x258)}),_0x325a97(_0x59600f,{'variant':'default','onClick':()=>_0x33f595[_0x201874(0x1b2)](),'children':_0x201874(0x25a)})]});}function Ve(){return _0x325a97(_0x3962b6,{'children':'You\x27are\x20offline.'});}var Me=Object[_0x48e897(0x1d6)],ke=(_0x4a87f4,_0x233e5c,_0x10e7ab,_0x202777)=>{var _0x23a4b0=_0x48e897;for(var _0x33997d=_0x202777>0x1?void 0x0:_0x202777?Me(_0x233e5c,_0x10e7ab):_0x233e5c,_0x517fa7=_0x4a87f4[_0x23a4b0(0x1cf)]-0x1,_0x491b0f;_0x517fa7>=0x0;_0x517fa7--)(_0x491b0f=_0x4a87f4[_0x517fa7])&&(_0x33997d=_0x491b0f(_0x33997d)||_0x33997d);return _0x33997d;},$=(_0x2b1912,_0x2fcb17)=>(_0x523061,_0x468440)=>_0x2fcb17(_0x523061,_0x468440,_0x2b1912);let b=class extends _0x3c2739{constructor(_0xe505af,_0x378a7e){var _0x3bc197=_0x48e897;super(),this[_0x3bc197(0x240)]=_0xe505af,this[_0x3bc197(0x1eb)]=_0x378a7e,this[_0x3bc197(0x247)]();}[_0x48e897(0x247)](){var _0x5d1317=_0x48e897;this['disposeWithMe'](this['_uiPartsService'][_0x5d1317(0x1fc)](_0x3e180e[_0x5d1317(0x1d9)],()=>_0x4c0a72(Te,this[_0x5d1317(0x240)])));}};b=ke([$(0x0,_0x189c3d(_0x57c965)),$(0x1,_0x510262)],b);var Ge=Object[_0x48e897(0x232)],We=Object[_0x48e897(0x1d6)],Ye=(_0x20f4c4,_0x8205ae,_0x1a49dd)=>_0x8205ae in _0x20f4c4?Ge(_0x20f4c4,_0x8205ae,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1a49dd}):_0x20f4c4[_0x8205ae]=_0x1a49dd,Be=(_0x4d9db3,_0x489405,_0x236c32,_0x34ac50)=>{var _0x34b892=_0x48e897;for(var _0x32c1c6=_0x34ac50>0x1?void 0x0:_0x34ac50?We(_0x489405,_0x236c32):_0x489405,_0x3b428d=_0x4d9db3[_0x34b892(0x1cf)]-0x1,_0xf4081;_0x3b428d>=0x0;_0x3b428d--)(_0xf4081=_0x4d9db3[_0x3b428d])&&(_0x32c1c6=_0xf4081(_0x32c1c6)||_0x32c1c6);return _0x32c1c6;},F=(_0x1c2ae2,_0x15179a)=>(_0x30f85c,_0x47ad7a)=>_0x15179a(_0x30f85c,_0x47ad7a,_0x1c2ae2),J=(_0x359b87,_0xe6d4b3,_0x5d4de6)=>Ye(_0x359b87,typeof _0xe6d4b3!=_0x48e897(0x1be)?_0xe6d4b3+'':_0xe6d4b3,_0x5d4de6);const Ze=_0x48e897(0x1e5);let O=class extends _0x3f4c4d{constructor(_0x1b1400=T,_0x40ed29,_0x35b679){var _0x4364a1=_0x48e897;super(),this[_0x4364a1(0x1ee)]=_0x1b1400,this[_0x4364a1(0x240)]=_0x40ed29,this['_configService']=_0x35b679;const {..._0xe607cb}=_0x218892({},T,this[_0x4364a1(0x1ee)]);this[_0x4364a1(0x1e6)][_0x4364a1(0x1b3)](Oe,_0xe607cb);}[_0x48e897(0x224)](){var _0x5c6f4c=_0x48e897;_0x326bf9(this[_0x5c6f4c(0x240)],_0x50c96c([[L],[I],[m],[b]],this['_config'][_0x5c6f4c(0x1f0)])),_0x2bc9cc(this[_0x5c6f4c(0x240)],[[m]]);}[_0x48e897(0x1d7)](){var _0x33b2f5=_0x48e897;_0x2bc9cc(this[_0x33b2f5(0x240)],[[b]]);}};J(O,_0x48e897(0x212),_0x1ee84e[_0x48e897(0x256)]),J(O,_0x48e897(0x22a),Ze),O=Be([_0x1b4e2c(_0x17815a),F(0x1,_0x189c3d(_0x57c965)),F(0x2,_0x5d5944)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};function _0x1275(){var _0x3ee82e=['_sharedOperations','_collabSession','icon','getInitialStates','1em','data','presenting','UNIVER_UNKNOWN','params','You\x27re\x20presenting\x20the\x20document','getMemberID','Stop\x20presenting','univer-size-4','FOLLOWING','button','Start\x20following','startFollowing','LIVESHARE_FETCH_OPERATIONS','following','11261700IcRvKN','entries','not-following','stopPresenting','setConfig','onCommandExecuted','univerjs-icon\x20univerjs-icon-','OFFLINE','_liveShareService','complete','_univerInstanceService','getTypeOfUnitAdded$','idSuffix','colorChannel1','0\x200\x2017\x2017','symbol','6538bkRvIs','idle','_startLiveShareCoordinator','_init','registerInitialStateReporter','offline','44028oBcCGd','random','evenodd','LIVESHARE_TERMINATE','48155390GngHbT','univer-w-full\x20univer-mb-3\x20univer-text-sm','from','delete','values','propertyIsEnumerable','length','_status','getValue','stopFollowing','presenter','_handleOperation','path','getOwnPropertyDescriptor','onRendered','getUnitId','HEADER_MENU','indexOf','_commandService','add','4363355msaWIt','unsubscribe','dispose','subscribe','concat','LiveShareIcon','disposeWithMe','clear','UNIVER_LIVE_SHARE_PLUGIN','_configService','defs','init','_handleNewChangeSets','attrs','_uiPartsService','requireSession','live-share-icon','_config','get','override','find','UNIVER_SHEET','_fetchOperations','http://www.w3.org/2000/svg','getCurrentTypeOfUnit$','current','tryStartPresenting','hasOwnProperty','sheet','forEach','_status$','registerComponent','_beIdle','end','includes','set','mutations','_startFollowing','PRESENTING','asObservable','_presenter','substring','status$','none','NEW_CHANGESETS','prototype','NOT_FOLLOWING','pipe','defIds','Stop\x20following','svg','UniverIcon','apply','type','live-share.config','_unitID','getOwnPropertySymbols','executeCommand','reverse','tag','className','LIVESHARE_OPERATION','then','displayName','assign','getLiveShareCoordinator','xlink:href','IDLE','_handleNewHost','stringify','_stopPresenting','onStarting','operations','url(#$1','SAME_OPERATION_SHARE_INTERVAL','9906BeKmEz','_handleOnline','pluginName','children','createInstance','next','shouldShareOperation','_stopFollowing','dispose$','4dGmDLX','defineProperty','_reporters','mask','_commandDisposable','trim','_entities','string','div','use','currentColor','fill','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','extend','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','_injector','OPERATION','map','6672672dbryBK','has','631118gGhDsw','_startPresenting','_mountLiveShare','LIVESHARE_REQUEST_HOST','send','getConfig','Present\x20this\x20document','4zMuinz','registerSharedOperation','_collabSessionService'];_0x1275=function(){return _0x3ee82e;};return _0x1275();}
|
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x266a(_0x3c3302,_0x533ff4){var _0x1343e1=_0x1343();return _0x266a=function(_0x266ade,_0x277e95){_0x266ade=_0x266ade-0x149;var _0xde35d9=_0x1343e1[_0x266ade];return _0xde35d9;},_0x266a(_0x3c3302,_0x533ff4);}(function(_0x177f07,_0x314740){var _0x19ea6=_0x266a,_0x1a3dca=_0x177f07();while(!![]){try{var _0x26683a=parseInt(_0x19ea6(0x1c4))/0x1+parseInt(_0x19ea6(0x223))/0x2*(parseInt(_0x19ea6(0x159))/0x3)+-parseInt(_0x19ea6(0x1c5))/0x4+parseInt(_0x19ea6(0x1fe))/0x5+parseInt(_0x19ea6(0x1fa))/0x6+parseInt(_0x19ea6(0x1a7))/0x7+-parseInt(_0x19ea6(0x209))/0x8;if(_0x26683a===_0x314740)break;else _0x1a3dca['push'](_0x1a3dca['shift']());}catch(_0x336ff4){_0x1a3dca['push'](_0x1a3dca['shift']());}}}(_0x1343,0x1aaa2),function(_0x5a6268,_0x369906){var _0x1ff95a=_0x266a;typeof exports=='object'&&typeof module<'u'?_0x369906(exports,require('@univerjs-pro/collaboration-client'),require(_0x1ff95a(0x19b)),require(_0x1ff95a(0x17c)),require(_0x1ff95a(0x163)),require(_0x1ff95a(0x174)),require(_0x1ff95a(0x21b)),require(_0x1ff95a(0x17b)),require(_0x1ff95a(0x1ad)),require('@univerjs-pro/collaboration'),require(_0x1ff95a(0x1cf)),require(_0x1ff95a(0x212))):typeof define==_0x1ff95a(0x1bb)&&define[_0x1ff95a(0x213)]?define([_0x1ff95a(0x1a3),_0x1ff95a(0x158),_0x1ff95a(0x19b),_0x1ff95a(0x17c),'@univerjs/sheets-ui','@univerjs/ui','react/jsx-runtime',_0x1ff95a(0x17b),_0x1ff95a(0x1ad),'@univerjs-pro/collaboration',_0x1ff95a(0x1cf),_0x1ff95a(0x212)],_0x369906):(_0x5a6268=typeof globalThis<'u'?globalThis:_0x5a6268||self,_0x369906(_0x5a6268['UniverProLiveShare']={},_0x5a6268[_0x1ff95a(0x1e6)],_0x5a6268[_0x1ff95a(0x1a0)],_0x5a6268[_0x1ff95a(0x204)],_0x5a6268[_0x1ff95a(0x1db)],_0x5a6268['UniverUi'],_0x5a6268['React'],_0x5a6268['UniverDesign'],_0x5a6268[_0x1ff95a(0x22a)],_0x5a6268[_0x1ff95a(0x20e)],_0x5a6268[_0x1ff95a(0x1cf)],_0x5a6268[_0x1ff95a(0x1cf)][_0x1ff95a(0x20a)]));}(this,function(_0x3c637c,_0x10f456,_0x24c918,_0x573cd9,_0x4976ab,_0x57fa80,_0x49b96a,_0x108119,_0x24c598,_0x17dce8,_0x363439,_0x531bc2){'use strict';var _0x5a24a7=_0x266a;var _0x27ec94=Object[_0x5a24a7(0x1e7)],_0x37cd18=(_0x9280cc,_0xfcdfda,_0x31b94c)=>_0xfcdfda in _0x9280cc?_0x27ec94(_0x9280cc,_0xfcdfda,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x31b94c}):_0x9280cc[_0xfcdfda]=_0x31b94c,_0xe9e033=(_0x4e5497,_0xee43d,_0x327e4e)=>_0x37cd18(_0x4e5497,typeof _0xee43d!='symbol'?_0xee43d+'':_0xee43d,_0x327e4e);const _0xa3d734=_0x5a24a7(0x179),_0x5dc332={};class _0x1be4e6 extends _0x24c918[_0x5a24a7(0x199)]{constructor(){var _0x551cce=_0x5a24a7;super(...arguments),_0xe9e033(this,_0x551cce(0x198),new Set()),_0xe9e033(this,_0x551cce(0x1b2),new Set());}[_0x5a24a7(0x1d0)](_0x442772){var _0x56a7d1=_0x5a24a7;return this[_0x56a7d1(0x198)]['add'](_0x442772),_0x24c918[_0x56a7d1(0x181)](()=>this['_sharedOperations'][_0x56a7d1(0x15e)](_0x442772));}['registerInitialStateReporter'](_0x431768){var _0x2f5db2=_0x5a24a7;return this[_0x2f5db2(0x1b2)][_0x2f5db2(0x220)](_0x431768),_0x24c918[_0x2f5db2(0x181)](()=>this[_0x2f5db2(0x1b2)][_0x2f5db2(0x15e)](_0x431768));}['shouldShareOperation'](_0xc01b7c){var _0x4bc7b0=_0x5a24a7;return this['_sharedOperations'][_0x4bc7b0(0x154)](_0xc01b7c);}[_0x5a24a7(0x1bc)](_0x35dbf2){var _0x64b3cc=_0x5a24a7;return Array['from'](this['_reporters'])[_0x64b3cc(0x1e2)](_0x1029ec=>_0x1029ec(_0x35dbf2));}}var _0x37baba=Object[_0x5a24a7(0x1c1)],_0x47f61a=(_0x2ecf1f,_0x39cba2,_0x1ead1b,_0x7ab82)=>{var _0x531713=_0x5a24a7;for(var _0x6a91bc=_0x7ab82>0x1?void 0x0:_0x7ab82?_0x37baba(_0x39cba2,_0x1ead1b):_0x39cba2,_0x2e1258=_0x2ecf1f[_0x531713(0x226)]-0x1,_0xe58b02;_0x2e1258>=0x0;_0x2e1258--)(_0xe58b02=_0x2ecf1f[_0x2e1258])&&(_0x6a91bc=_0xe58b02(_0x6a91bc)||_0x6a91bc);return _0x6a91bc;},_0x4b5dd6=(_0x3d1c84,_0x3a88e3)=>(_0x30e428,_0x4ae3b1)=>_0x3a88e3(_0x30e428,_0x4ae3b1,_0x3d1c84);let _0x2ef749=class extends _0x24c918[_0x5a24a7(0x199)]{constructor(_0x2686e6){var _0x514663=_0x5a24a7;super(),this[_0x514663(0x1fc)]=_0x2686e6,this[_0x514663(0x20f)]();}['_init'](){var _0x798d=_0x5a24a7;[_0x4976ab[_0x798d(0x19a)]['id'],_0x4976ab[_0x798d(0x16f)]['id'],_0x573cd9[_0x798d(0x1d4)]['id']][_0x798d(0x1c0)](_0x1475db=>{var _0x5d4624=_0x798d;this[_0x5d4624(0x184)](this[_0x5d4624(0x1fc)][_0x5d4624(0x1d0)](_0x1475db));});}};_0x2ef749=_0x47f61a([_0x4b5dd6(0x0,_0x24c918[_0x5a24a7(0x21c)](_0x1be4e6))],_0x2ef749);var _0x3d5813=function(){var _0x150229=_0x5a24a7;return _0x3d5813=Object[_0x150229(0x151)]||function(_0x33f2ae){var _0x5e86db=_0x150229;for(var _0x2249c3,_0x4bfe04=0x1,_0x1c587d=arguments[_0x5e86db(0x226)];_0x4bfe04<_0x1c587d;_0x4bfe04++){_0x2249c3=arguments[_0x4bfe04];for(var _0x256ecf in _0x2249c3)Object['prototype']['hasOwnProperty'][_0x5e86db(0x22d)](_0x2249c3,_0x256ecf)&&(_0x33f2ae[_0x256ecf]=_0x2249c3[_0x256ecf]);}return _0x33f2ae;},_0x3d5813[_0x150229(0x1ca)](this,arguments);},_0x9d899a=function(_0x4d5342,_0x2b53b9){var _0x6aa3f8=_0x5a24a7,_0x3f1848={};for(var _0x2d7c37 in _0x4d5342)Object['prototype']['hasOwnProperty'][_0x6aa3f8(0x22d)](_0x4d5342,_0x2d7c37)&&_0x2b53b9['indexOf'](_0x2d7c37)<0x0&&(_0x3f1848[_0x2d7c37]=_0x4d5342[_0x2d7c37]);if(_0x4d5342!=null&&typeof Object['getOwnPropertySymbols']==_0x6aa3f8(0x1bb)){for(var _0x3bfe3d=0x0,_0x2d7c37=Object[_0x6aa3f8(0x14c)](_0x4d5342);_0x3bfe3d<_0x2d7c37['length'];_0x3bfe3d++)_0x2b53b9['indexOf'](_0x2d7c37[_0x3bfe3d])<0x0&&Object[_0x6aa3f8(0x1f6)][_0x6aa3f8(0x14e)][_0x6aa3f8(0x22d)](_0x4d5342,_0x2d7c37[_0x3bfe3d])&&(_0x3f1848[_0x2d7c37[_0x3bfe3d]]=_0x4d5342[_0x2d7c37[_0x3bfe3d]]);}return _0x3f1848;},_0x281d5c=_0x24c598[_0x5a24a7(0x189)](function(_0x48f9ce,_0x35fda){var _0x4e367d=_0x5a24a7,_0xe29d9b=_0x48f9ce[_0x4e367d(0x1ab)],_0x42a527=_0x48f9ce['id'],_0x303197=_0x48f9ce[_0x4e367d(0x178)],_0x29d984=_0x48f9ce[_0x4e367d(0x218)],_0x2ff167=_0x9d899a(_0x48f9ce,[_0x4e367d(0x1ab),'id','className',_0x4e367d(0x218)]),_0x3a70f4='univerjs-icon\x20univerjs-icon-'[_0x4e367d(0x193)](_0x42a527,'\x20')['concat'](_0x303197||'')['trim'](),_0x506d69=_0x24c598[_0x4e367d(0x18d)]('_'[_0x4e367d(0x193)](_0x489002()));return _0x50492e(_0xe29d9b,''[_0x4e367d(0x193)](_0x42a527),{'defIds':_0xe29d9b[_0x4e367d(0x1a8)],'idSuffix':_0x506d69[_0x4e367d(0x21a)]},_0x3d5813({'ref':_0x35fda,'className':_0x3a70f4},_0x2ff167),_0x29d984);});function _0x50492e(_0x17050c,_0x505dbe,_0x23c696,_0x382a3f,_0x21a31e){var _0x359847=_0x5a24a7;return _0x24c598['createElement'](_0x17050c[_0x359847(0x205)],_0x3d5813(_0x3d5813({'key':_0x505dbe},_0x1515f8(_0x17050c,_0x23c696,_0x21a31e)),_0x382a3f),(_0x4477f4(_0x17050c,_0x23c696)[_0x359847(0x19c)]||[])['map'](function(_0x8237cb,_0x408b4f){var _0x1de3ad=_0x359847;return _0x50492e(_0x8237cb,''[_0x1de3ad(0x193)](_0x505dbe,'-')[_0x1de3ad(0x193)](_0x17050c[_0x1de3ad(0x205)],'-')['concat'](_0x408b4f),_0x23c696,void 0x0,_0x21a31e);}));}function _0x1515f8(_0x2a75ff,_0x4d8acc,_0x146607){var _0x5587fd=_0x5a24a7,_0x4d2123=_0x3d5813({},_0x2a75ff[_0x5587fd(0x207)]);_0x146607!=null&&_0x146607[_0x5587fd(0x191)]&&_0x4d2123[_0x5587fd(0x1df)]===_0x5587fd(0x191)&&(_0x4d2123[_0x5587fd(0x1df)]=_0x146607[_0x5587fd(0x191)]),_0x2a75ff[_0x5587fd(0x205)]===_0x5587fd(0x202)&&_0x4d2123['id']&&(_0x4d2123['id']=_0x4d2123['id']+_0x4d8acc[_0x5587fd(0x153)]),Object[_0x5587fd(0x214)](_0x4d2123)[_0x5587fd(0x1c0)](function(_0x5e834d){var _0x42403c=_0x5587fd,_0x97266c=_0x5e834d[0x0],_0x2038f4=_0x5e834d[0x1];_0x97266c==='mask'&&typeof _0x2038f4==_0x42403c(0x1b0)&&(_0x4d2123[_0x97266c]=_0x2038f4[_0x42403c(0x1de)](/url\(#(.*)\)/,'url(#$1'[_0x42403c(0x193)](_0x4d8acc[_0x42403c(0x153)],')')));});var _0x4d45b0=_0x4d8acc[_0x5587fd(0x1a8)];return!_0x4d45b0||_0x4d45b0['length']===0x0||(_0x2a75ff[_0x5587fd(0x205)]===_0x5587fd(0x1fb)&&_0x4d2123[_0x5587fd(0x1f2)]&&(_0x4d2123['xlink:href']=_0x4d2123[_0x5587fd(0x1f2)]+_0x4d8acc['idSuffix']),Object['entries'](_0x4d2123)[_0x5587fd(0x1c0)](function(_0x2a4e12){var _0xa10e55=_0x5587fd,_0x18c3ce=_0x2a4e12[0x0],_0x2ca9d3=_0x2a4e12[0x1];typeof _0x2ca9d3==_0xa10e55(0x1b0)&&(_0x4d2123[_0x18c3ce]=_0x2ca9d3[_0xa10e55(0x1de)](/url\(#(.*)\)/,_0xa10e55(0x1d6)['concat'](_0x4d8acc[_0xa10e55(0x153)],')')));})),_0x4d2123;}function _0x4477f4(_0x2b17fe,_0x4fe608){var _0x14ca66=_0x5a24a7,_0x2741b6,_0x4c7c0a=_0x4fe608[_0x14ca66(0x1a8)];return!_0x4c7c0a||_0x4c7c0a[_0x14ca66(0x226)]===0x0?_0x2b17fe:_0x2b17fe[_0x14ca66(0x205)]===_0x14ca66(0x1d9)&&(!((_0x2741b6=_0x2b17fe[_0x14ca66(0x19c)])===null||_0x2741b6===void 0x0)&&_0x2741b6['length'])?_0x3d5813(_0x3d5813({},_0x2b17fe),{'children':_0x2b17fe[_0x14ca66(0x19c)][_0x14ca66(0x1e2)](function(_0xf2c991){var _0x4f7cb1=_0x14ca66;return typeof _0xf2c991[_0x4f7cb1(0x207)]['id']==_0x4f7cb1(0x1b0)&&_0x4c7c0a&&_0x4c7c0a['indexOf'](_0xf2c991['attrs']['id'])>-0x1?_0x3d5813(_0x3d5813({},_0xf2c991),{'attrs':_0x3d5813(_0x3d5813({},_0xf2c991[_0x4f7cb1(0x207)]),{'id':_0xf2c991[_0x4f7cb1(0x207)]['id']+_0x4fe608[_0x4f7cb1(0x153)]})}):_0xf2c991;})}):_0x2b17fe;}function _0x489002(){var _0x2e89db=_0x5a24a7;return Math[_0x2e89db(0x17e)]()['toString'](0x24)['substring'](0x2,0x8);}_0x281d5c[_0x5a24a7(0x225)]=_0x5a24a7(0x168);var _0xda387e={'tag':'svg','attrs':{'xmlns':_0x5a24a7(0x20d),'fill':_0x5a24a7(0x1bf),'viewBox':_0x5a24a7(0x1da),'width':_0x5a24a7(0x1f7),'height':_0x5a24a7(0x1f7)},'children':[{'tag':_0x5a24a7(0x1a6),'attrs':{'fill':_0x5a24a7(0x167),'d':_0x5a24a7(0x150)}},{'tag':_0x5a24a7(0x1a6),'attrs':{'fill':_0x5a24a7(0x167),'d':_0x5a24a7(0x161),'fillRule':_0x5a24a7(0x222),'clipRule':_0x5a24a7(0x222)}}]},_0x5e8f6e=_0x24c598[_0x5a24a7(0x189)](function(_0xf571aa,_0x257191){var _0x46e557=_0x5a24a7;return _0x24c598[_0x46e557(0x1c6)](_0x281d5c,Object[_0x46e557(0x151)]({},_0xf571aa,{'id':_0x46e557(0x170),'ref':_0x257191,'icon':_0xda387e}));});_0x5e8f6e['displayName']=_0x5a24a7(0x1d1);var _0x545b3d=Object[_0x5a24a7(0x1c1)],_0x13e6e0=(_0x5e4ff1,_0x45ff68,_0xa8f335,_0x3844ab)=>{for(var _0x5a0373=_0x3844ab>0x1?void 0x0:_0x3844ab?_0x545b3d(_0x45ff68,_0xa8f335):_0x45ff68,_0x173dc4=_0x5e4ff1['length']-0x1,_0x4046d7;_0x173dc4>=0x0;_0x173dc4--)(_0x4046d7=_0x5e4ff1[_0x173dc4])&&(_0x5a0373=_0x4046d7(_0x5a0373)||_0x5a0373);return _0x5a0373;},_0x56c5b1=(_0x26ec16,_0x164279)=>(_0x45284d,_0x42c97b)=>_0x164279(_0x45284d,_0x42c97b,_0x26ec16);_0x3c637c['LiveShareController']=class extends _0x24c918[_0x5a24a7(0x195)]{constructor(_0x272a8e,_0x31bce8,_0x26b941){var _0x1e099b=_0x5a24a7;super(),_0xe9e033(this,_0x1e099b(0x169),new Map()),(this[_0x1e099b(0x1aa)]=_0x272a8e,this[_0x1e099b(0x18b)]=_0x31bce8,this[_0x1e099b(0x165)]=_0x26b941,this[_0x1e099b(0x20f)]());}async['getLiveShareCoordinator'](_0x408968){var _0xd99ca1=_0x5a24a7;return this[_0xd99ca1(0x169)][_0xd99ca1(0x154)](_0x408968)||await this['_startLiveShareCoordinator'](_0x408968),this['_entities'][_0xd99ca1(0x1f1)](_0x408968);}[_0x5a24a7(0x20f)](){var _0x45a394=_0x5a24a7;this[_0x45a394(0x1aa)][_0x45a394(0x215)](_0x24c918['UniverInstanceType'][_0x45a394(0x17a)])[_0x45a394(0x200)](_0x531bc2[_0x45a394(0x1b8)](this[_0x45a394(0x22b)]))[_0x45a394(0x17f)](async _0x37726a=>{var _0x31340d=_0x45a394;const _0x54cf35=_0x37726a[_0x31340d(0x229)]();this['_entities']['has'](_0x54cf35)||this['_startLiveShareCoordinator'](_0x54cf35);}),this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x24c918[_0x45a394(0x1a2)][_0x45a394(0x17a)])[_0x45a394(0x200)](_0x531bc2[_0x45a394(0x1b8)](this[_0x45a394(0x22b)]))[_0x45a394(0x17f)](_0x20c987=>{var _0x1c8d51=_0x45a394;const _0x4cc5d1=_0x20c987[_0x1c8d51(0x229)](),_0x2241b9=this['_entities']['get'](_0x4cc5d1);_0x2241b9==null||_0x2241b9['dispose']();});}async[_0x5a24a7(0x1e3)](_0x36a4de){var _0x2e7dce=_0x5a24a7;const _0x10a1bc=await this['_collabSessionService'][_0x2e7dce(0x1f4)](_0x36a4de),_0x3f8f5b=this[_0x2e7dce(0x18b)][_0x2e7dce(0x1c2)](_0x3c637c['LiveShareCoordinator'],_0x36a4de,_0x10a1bc);return _0x3f8f5b[_0x2e7dce(0x201)](),this[_0x2e7dce(0x169)][_0x2e7dce(0x203)](_0x36a4de,_0x3f8f5b),_0x3f8f5b;}},_0x3c637c[_0x5a24a7(0x1f9)]=_0x13e6e0([_0x56c5b1(0x0,_0x24c918[_0x5a24a7(0x1eb)]),_0x56c5b1(0x1,_0x24c918['Inject'](_0x24c918[_0x5a24a7(0x1b6)])),_0x56c5b1(0x2,_0x24c918[_0x5a24a7(0x21c)](_0x10f456['CollaborationSessionService']))],_0x3c637c[_0x5a24a7(0x1f9)]);var _0x4a2cf2=(_0x3d5804=>(_0x3d5804[_0x5a24a7(0x157)]=_0x5a24a7(0x1d7),_0x3d5804[_0x5a24a7(0x216)]=_0x5a24a7(0x192),_0x3d5804[_0x5a24a7(0x1af)]=_0x5a24a7(0x1e8),_0x3d5804[_0x5a24a7(0x176)]=_0x5a24a7(0x160),_0x3d5804['PRESENTING']='presenting',_0x3d5804))(_0x4a2cf2||{});const _0x192432='SAME_OPERATION_SHARE_INTERVAL',_0x153680=0xc8;_0x3c637c[_0x5a24a7(0x1f5)]=class extends _0x24c918[_0x5a24a7(0x195)]{constructor(_0x43e730,_0x47bcb7,_0x5c4a73,_0x69fa13,_0x56cbce){var _0x174d06=_0x5a24a7;super(),_0xe9e033(this,_0x174d06(0x186),new _0x363439[(_0x174d06(0x1dc))](_0x174d06(0x192))),_0xe9e033(this,_0x174d06(0x172),this['_status$'][_0x174d06(0x224)]()),_0xe9e033(this,_0x174d06(0x20f),!0x1),_0xe9e033(this,_0x174d06(0x1b7),null),_0xe9e033(this,_0x174d06(0x166),null),(this[_0x174d06(0x210)]=_0x43e730,this[_0x174d06(0x206)]=_0x47bcb7,this[_0x174d06(0x1f3)]=_0x5c4a73,this[_0x174d06(0x1fc)]=_0x69fa13,this[_0x174d06(0x21d)]=_0x56cbce);}get[_0x5a24a7(0x1a4)](){var _0x127259=_0x5a24a7;return this[_0x127259(0x186)]['getValue']();}[_0x5a24a7(0x1e4)](){var _0x4f7a00=_0x5a24a7,_0x324aef;(_0x324aef=this['_commandDisposable'])==null||_0x324aef[_0x4f7a00(0x1e4)](),this[_0x4f7a00(0x186)]['next']('idle'),this[_0x4f7a00(0x186)][_0x4f7a00(0x187)]();}[_0x5a24a7(0x201)](){var _0x4af6d3=_0x5a24a7;this[_0x4af6d3(0x20f)]||(this[_0x4af6d3(0x20f)]=!0x0,this['_collabSession'][_0x4af6d3(0x1fd)][_0x4af6d3(0x200)](_0x531bc2[_0x4af6d3(0x1b8)](this[_0x4af6d3(0x22b)]))[_0x4af6d3(0x17f)](_0x3730c6=>{var _0x247b13=_0x4af6d3;switch(_0x3730c6){case _0x10f456['SessionStatus'][_0x247b13(0x157)]:this['_handleOffline']();break;case _0x10f456[_0x247b13(0x1cb)][_0x247b13(0x211)]:this[_0x247b13(0x18c)]();break;}}),this[_0x4af6d3(0x206)]['event$'][_0x4af6d3(0x200)](_0x531bc2[_0x4af6d3(0x1b8)](this[_0x4af6d3(0x22b)]))['subscribe'](_0x2ed52b=>{var _0x2a4908=_0x4af6d3;const {eventID:_0x4f1128}=_0x2ed52b;switch(_0x4f1128){case _0x17dce8[_0x2a4908(0x18e)]['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x2ed52b);break;case _0x17dce8[_0x2a4908(0x18e)][_0x2a4908(0x180)]:this[_0x2a4908(0x14d)](_0x2ed52b);break;case _0x17dce8[_0x2a4908(0x18e)]['LIVESHARE_TERMINATE']:this[_0x2a4908(0x1b3)]();break;case _0x17dce8[_0x2a4908(0x18e)][_0x2a4908(0x20b)]:this['_handleNewChangeSets'](_0x2ed52b);break;}}));}[_0x5a24a7(0x149)](){var _0x28c28d=_0x5a24a7;this[_0x28c28d(0x206)][_0x28c28d(0x15f)]({'eventID':_0x17dce8[_0x28c28d(0x18e)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x28c28d(0x210)],'userID':this[_0x28c28d(0x206)][_0x28c28d(0x15b)]()}},this[_0x28c28d(0x210)]);}[_0x5a24a7(0x16d)](){var _0x5591c2=_0x5a24a7;this[_0x5591c2(0x1a4)]===_0x5591c2(0x1d3)&&(this['_status$'][_0x5591c2(0x221)](_0x5591c2(0x192)),this[_0x5591c2(0x206)]['send']({'eventID':_0x17dce8[_0x5591c2(0x18e)][_0x5591c2(0x1ce)],'data':{'unitID':this['_unitID']}},this[_0x5591c2(0x210)]));}['startFollowing'](){var _0x38a2f9=_0x5a24a7;this['_status']===_0x38a2f9(0x160)&&(this[_0x38a2f9(0x186)]['next'](_0x38a2f9(0x1e8)),this[_0x38a2f9(0x177)]());}[_0x5a24a7(0x1b1)](){var _0x641b84=_0x5a24a7;this[_0x641b84(0x1a4)]===_0x641b84(0x1e8)&&this[_0x641b84(0x15c)]();}['_handleNewHost'](_0x1df51d){var _0x4b414a=_0x5a24a7;const {presenter:_0x54e44f}=_0x1df51d[_0x4b414a(0x20c)],_0x37166d=this[_0x4b414a(0x206)][_0x4b414a(0x15b)]();this['_presenter']=_0x54e44f,_0x54e44f===_0x37166d?(this[_0x4b414a(0x15c)](),this['_startPresenting']()):this[_0x4b414a(0x1a4)]!=='not-following'&&(this[_0x4b414a(0x1d2)](),this[_0x4b414a(0x177)]());}[_0x5a24a7(0x18a)](){var _0x4d833c=_0x5a24a7;const _0x4142a7={'eventID':_0x17dce8[_0x4d833c(0x18e)][_0x4d833c(0x155)]};this[_0x4d833c(0x206)][_0x4d833c(0x15f)](_0x4142a7,this[_0x4d833c(0x210)]);}[_0x5a24a7(0x1b3)](){var _0x3203bb=_0x5a24a7;this[_0x3203bb(0x166)]=null,this[_0x3203bb(0x1a4)]!==_0x3203bb(0x1d3)&&this[_0x3203bb(0x1ee)]();}['_handleNewChangeSets'](_0x3e943b){var _0x59f3fd=_0x5a24a7;if(this['_status']===_0x59f3fd(0x1e8)&&this['_presenter']===_0x3e943b[_0x59f3fd(0x20c)][_0x59f3fd(0x190)]){const _0x568df0=_0x17dce8[_0x59f3fd(0x219)](_0x3e943b[_0x59f3fd(0x20c)])['mutations'][_0x59f3fd(0x1d5)]()[_0x59f3fd(0x171)](_0xba22c0=>_0xba22c0['id']===_0x573cd9['InsertSheetMutation']['id']);if(_0x568df0){const _0x5e1196=_0x568df0['params'][_0x59f3fd(0x194)],_0x14bbf6=_0x568df0['params'][_0x59f3fd(0x1ef)]['id'];setTimeout(()=>{var _0x46a011=_0x59f3fd;this[_0x46a011(0x21d)][_0x46a011(0x162)](_0x573cd9[_0x46a011(0x1d4)]['id'],{'unitId':_0x5e1196,'subUnitId':_0x14bbf6},{'fromCollab':!0x0});});}}}['_startPresenting'](){var _0x4c567b=_0x5a24a7;this[_0x4c567b(0x186)][_0x4c567b(0x221)](_0x4c567b(0x1d3));const _0x1bf0ea=new Map(),_0x18524c=this[_0x4c567b(0x1b7)]=new _0x24c918[(_0x4c567b(0x1ed))]();_0x18524c[_0x4c567b(0x220)](_0x24c918[_0x4c567b(0x181)](()=>{var _0x53986a=_0x4c567b;_0x1bf0ea[_0x53986a(0x1c0)](_0x33c755=>_0x33c755[_0x53986a(0x187)]()),_0x1bf0ea[_0x53986a(0x1b9)]();})),_0x18524c['add'](this[_0x4c567b(0x21d)]['onCommandExecuted'](_0x52e452=>{var _0x7127a8=_0x4c567b,_0x28cc0d;if(_0x52e452['type']!==_0x24c918[_0x7127a8(0x1a5)][_0x7127a8(0x21f)]||!this['_liveShareService'][_0x7127a8(0x1ff)](_0x52e452['id']))return;const {id:_0x24b46c}=_0x52e452;let _0x1796d6;_0x1bf0ea[_0x7127a8(0x154)](_0x24b46c)?_0x1796d6=_0x1bf0ea[_0x7127a8(0x1f1)](_0x24b46c):(_0x1796d6=new _0x363439[(_0x7127a8(0x14a))](),_0x1bf0ea[_0x7127a8(0x203)](_0x24b46c,_0x1796d6),_0x1796d6[_0x7127a8(0x200)](_0x531bc2[_0x7127a8(0x19d)]((_0x28cc0d=this['_configService'][_0x7127a8(0x228)](_0x192432))!=null?_0x28cc0d:_0x153680,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4e9dd7=>{var _0x4473b9=_0x7127a8;this['_collabSession'][_0x4473b9(0x15f)]({'eventID':_0x17dce8[_0x4473b9(0x18e)][_0x4473b9(0x180)],'data':{'unitID':this['_unitID'],'operations':{[_0x4e9dd7['id']]:{'id':_0x4e9dd7['id'],'params':JSON[_0x4473b9(0x1c7)](_0x4e9dd7[_0x4473b9(0x1a1)])}}}},this[_0x4473b9(0x210)]);})),_0x1796d6[_0x7127a8(0x221)](_0x52e452);})),this['_liveShareService']['getInitialStates'](this['_unitID'])[_0x4c567b(0x1c0)](_0x57a2af=>this['_collabSession'][_0x4c567b(0x15f)]({'eventID':_0x17dce8['CollaborationEvent'][_0x4c567b(0x180)],'data':{'unitID':this[_0x4c567b(0x210)],'operations':{[_0x57a2af['id']]:{'id':_0x57a2af['id'],'params':JSON[_0x4c567b(0x1c7)](_0x57a2af['params'])}}}},this['_unitID']));}[_0x5a24a7(0x1d2)](){var _0x5153f1=_0x5a24a7,_0x163ae2;this[_0x5153f1(0x186)][_0x5153f1(0x221)](_0x5153f1(0x192)),(_0x163ae2=this[_0x5153f1(0x1b7)])==null||_0x163ae2[_0x5153f1(0x1e4)](),this[_0x5153f1(0x1b7)]=null;}[_0x5a24a7(0x177)](){var _0x301c7d=_0x5a24a7,_0x1f83a1;(_0x1f83a1=this['_commandDisposable'])==null||_0x1f83a1[_0x301c7d(0x1e4)](),this[_0x301c7d(0x186)]['next']('following');}[_0x5a24a7(0x1ee)](){var _0x1540ce=_0x5a24a7,_0x3775d4;this[_0x1540ce(0x186)][_0x1540ce(0x221)](_0x1540ce(0x192)),(_0x3775d4=this[_0x1540ce(0x1b7)])==null||_0x3775d4[_0x1540ce(0x1e4)](),this[_0x1540ce(0x1b7)]=null;}[_0x5a24a7(0x15c)](){var _0x42d996=_0x5a24a7,_0x3e8a6f;this[_0x42d996(0x186)][_0x42d996(0x221)](_0x42d996(0x160)),(_0x3e8a6f=this[_0x42d996(0x1b7)])==null||_0x3e8a6f['dispose']();}[_0x5a24a7(0x14d)](_0x3ae40c){var _0x3d1a2d=_0x5a24a7;if([_0x3d1a2d(0x1d3),_0x3d1a2d(0x160),_0x3d1a2d(0x1d7)]['includes'](this[_0x3d1a2d(0x1a4)])||!_0x3ae40c[_0x3d1a2d(0x20c)][_0x3d1a2d(0x156)]||_0x3ae40c[_0x3d1a2d(0x20c)][_0x3d1a2d(0x156)]===this[_0x3d1a2d(0x206)][_0x3d1a2d(0x15b)]())return;this[_0x3d1a2d(0x1a4)]===_0x3d1a2d(0x192)&&this['_startFollowing']();const _0x43f6de=_0x3ae40c[_0x3d1a2d(0x20c)][_0x3d1a2d(0x21e)];Object['values'](_0x43f6de)['forEach'](_0x36ad5c=>{var _0x21dc74=_0x3d1a2d;this['_commandService'][_0x21dc74(0x162)](_0x36ad5c['id'],_0x36ad5c[_0x21dc74(0x1a1)]?JSON[_0x21dc74(0x152)](_0x36ad5c['params']):null,{'fromCollab':!0x0});});}[_0x5a24a7(0x1cd)](){var _0x49aedf=_0x5a24a7,_0xbbeef4;this[_0x49aedf(0x186)][_0x49aedf(0x221)](_0x49aedf(0x1d7)),(_0xbbeef4=this['_commandDisposable'])==null||_0xbbeef4[_0x49aedf(0x1e4)]();}[_0x5a24a7(0x18c)](){var _0x1855e8=_0x5a24a7;this['_status$'][_0x1855e8(0x221)](_0x1855e8(0x192)),this['_fetchOperations']();}},_0x3c637c[_0x5a24a7(0x1f5)]=_0x13e6e0([_0x56c5b1(0x2,_0x24c918[_0x5a24a7(0x183)]),_0x56c5b1(0x3,_0x24c918[_0x5a24a7(0x21c)](_0x1be4e6)),_0x56c5b1(0x4,_0x24c918[_0x5a24a7(0x1d8)])],_0x3c637c['LiveShareCoordinator']);function _0x342162(){var _0x121be3=_0x5a24a7;const _0x3a8df0=_0x57fa80[_0x121be3(0x1a9)](_0x3c637c[_0x121be3(0x1f9)]),_0x26b26e=_0x57fa80[_0x121be3(0x1a9)](_0x24c918[_0x121be3(0x1eb)]),_0x425ed5=_0x57fa80[_0x121be3(0x1c9)](()=>_0x26b26e[_0x121be3(0x1b5)](_0x24c918[_0x121be3(0x1a2)][_0x121be3(0x17a)]),void 0x0,!0x1,[]),[_0x2878e,_0x3d19ec]=_0x24c598[_0x121be3(0x22f)](null),[_0x42b926,_0x41b57e]=_0x24c598[_0x121be3(0x22f)](_0x4a2cf2[_0x121be3(0x216)]),_0x204397=_0x24c598['useRef'](null);return _0x24c598[_0x121be3(0x164)](()=>(_0x425ed5&&_0x3a8df0['getLiveShareCoordinator'](_0x425ed5[_0x121be3(0x229)]())[_0x121be3(0x17d)](_0x22e137=>{var _0x4636bd=_0x121be3;_0x3d19ec(_0x22e137),_0x204397[_0x4636bd(0x21a)]=_0x22e137[_0x4636bd(0x172)][_0x4636bd(0x17f)](_0x127c8f=>{_0x41b57e(_0x127c8f);});}),()=>{var _0x221dfb=_0x121be3,_0x261741;(_0x261741=_0x204397[_0x221dfb(0x21a)])==null||_0x261741[_0x221dfb(0x16a)](),_0x204397[_0x221dfb(0x21a)]=null;}),[_0x425ed5,_0x3a8df0]),_0x2878e?_0x49b96a[_0x121be3(0x182)](_0x108119['Dropdown'],{'align':_0x121be3(0x22c),'disabled':_0x42b926===_0x4a2cf2[_0x121be3(0x157)],'className':'univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','overlay':_0x49b96a[_0x121be3(0x182)](_0x1bdc16,{'status':_0x42b926,'coordinator':_0x2878e}),'children':_0x49b96a['jsx'](_0x121be3(0x196),{'className':_0x108119[_0x121be3(0x15a)]('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x42b926===_0x4a2cf2[_0x121be3(0x157)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x42b926!==_0x4a2cf2['OFFLINE']}),'type':_0x121be3(0x196),'children':_0x49b96a[_0x121be3(0x182)](_0x5e8f6e,{'className':'univer-size-4'})})}):null;}function _0x1bdc16(_0x15c855){var _0x3243a2=_0x5a24a7;const {status:_0x2acddb,coordinator:_0x1c1246}=_0x15c855;switch(_0x2acddb){case _0x4a2cf2['IDLE']:return _0x49b96a[_0x3243a2(0x182)](_0x137f3d,{'coordinator':_0x1c1246});case _0x4a2cf2[_0x3243a2(0x1af)]:return _0x49b96a['jsx'](_0x7db8b7,{'coordinator':_0x1c1246});case _0x4a2cf2[_0x3243a2(0x176)]:return _0x49b96a[_0x3243a2(0x182)](_0x488bb4,{'coordinator':_0x1c1246});case _0x4a2cf2[_0x3243a2(0x157)]:return _0x49b96a[_0x3243a2(0x182)](_0x9b657e,{});case _0x4a2cf2['PRESENTING']:return _0x49b96a[_0x3243a2(0x182)](_0x59d800,{'coordinator':_0x1c1246});default:return null;}}function _0x137f3d(_0xac2db5){var _0xbdf325=_0x5a24a7;const {coordinator:_0x18c516}=_0xac2db5;return _0x49b96a['jsxs'](_0x49b96a[_0xbdf325(0x1c8)],{'children':[_0x49b96a[_0xbdf325(0x182)]('div',{'className':_0xbdf325(0x1f0),'children':'Present\x20this\x20document'}),_0x49b96a[_0xbdf325(0x182)](_0x108119['Button'],{'onClick':()=>_0x18c516[_0xbdf325(0x149)](),'children':_0xbdf325(0x1bd)})]});}function _0x7db8b7(_0x38abab){var _0x37de0b=_0x5a24a7;const {coordinator:_0x221839}=_0x38abab;return _0x49b96a[_0x37de0b(0x175)](_0x49b96a[_0x37de0b(0x1c8)],{'children':[_0x49b96a['jsx'](_0x37de0b(0x1e9),{'className':_0x37de0b(0x1f0),'children':_0x37de0b(0x18f)}),_0x49b96a['jsx'](_0x108119[_0x37de0b(0x1cc)],{'onClick':()=>_0x221839[_0x37de0b(0x1b1)](),'children':'Stop\x20following'})]});}function _0x488bb4(_0x5f54d6){var _0x4d57be=_0x5a24a7;const {coordinator:_0x218189}=_0x5f54d6;return _0x49b96a[_0x4d57be(0x175)](_0x49b96a['Fragment'],{'children':[_0x49b96a[_0x4d57be(0x182)](_0x4d57be(0x1e9),{'className':_0x4d57be(0x1f0),'children':_0x4d57be(0x16b)}),_0x49b96a[_0x4d57be(0x182)](_0x108119[_0x4d57be(0x1cc)],{'variant':_0x4d57be(0x14f),'onClick':()=>_0x218189['startFollowing'](),'children':_0x4d57be(0x197)})]});}function _0x59d800(_0x5770a9){var _0x3051c9=_0x5a24a7;const {coordinator:_0x1bacad}=_0x5770a9;return _0x49b96a[_0x3051c9(0x175)](_0x49b96a[_0x3051c9(0x1c8)],{'children':[_0x49b96a[_0x3051c9(0x182)](_0x3051c9(0x1e9),{'className':_0x3051c9(0x1f0),'children':_0x3051c9(0x1ec)}),_0x49b96a[_0x3051c9(0x182)](_0x108119[_0x3051c9(0x1cc)],{'variant':'default','onClick':()=>_0x1bacad[_0x3051c9(0x16d)](),'children':'Stop\x20presenting'})]});}function _0x9b657e(){return _0x49b96a['jsx'](_0x49b96a['Fragment'],{'children':'You\x27are\x20offline.'});}var _0x501969=Object[_0x5a24a7(0x1c1)],_0x127935=(_0x41443a,_0xfce18d,_0x121c33,_0x553434)=>{var _0x21bff2=_0x5a24a7;for(var _0x17f0e3=_0x553434>0x1?void 0x0:_0x553434?_0x501969(_0xfce18d,_0x121c33):_0xfce18d,_0x356b4a=_0x41443a[_0x21bff2(0x226)]-0x1,_0x11fd97;_0x356b4a>=0x0;_0x356b4a--)(_0x11fd97=_0x41443a[_0x356b4a])&&(_0x17f0e3=_0x11fd97(_0x17f0e3)||_0x17f0e3);return _0x17f0e3;},_0xe5503c=(_0x51df6d,_0xacd11c)=>(_0x28c137,_0x3e365a)=>_0xacd11c(_0x28c137,_0x3e365a,_0x51df6d);_0x3c637c[_0x5a24a7(0x16c)]=class extends _0x24c918[_0x5a24a7(0x199)]{constructor(_0x23c5e3,_0xfd8a41){var _0xf29466=_0x5a24a7;super(),this['_injector']=_0x23c5e3,this['_uiPartsService']=_0xfd8a41,this[_0xf29466(0x15d)]();}[_0x5a24a7(0x15d)](){var _0x59be3d=_0x5a24a7;this[_0x59be3d(0x184)](this[_0x59be3d(0x1ea)][_0x59be3d(0x1f8)](_0x57fa80[_0x59be3d(0x16e)][_0x59be3d(0x19f)],()=>_0x57fa80['connectInjector'](_0x342162,this[_0x59be3d(0x18b)])));}},_0x3c637c['DesktopLiveShareController']=_0x127935([_0xe5503c(0x0,_0x24c918[_0x5a24a7(0x21c)](_0x24c918[_0x5a24a7(0x1b6)])),_0xe5503c(0x1,_0x57fa80['IUIPartsService'])],_0x3c637c['DesktopLiveShareController']);var _0x6d7da2=Object[_0x5a24a7(0x1e7)],_0x44280b=Object['getOwnPropertyDescriptor'],_0x3ba22e=(_0x32b0ba,_0x7dcf97,_0x58f28c)=>_0x7dcf97 in _0x32b0ba?_0x6d7da2(_0x32b0ba,_0x7dcf97,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x58f28c}):_0x32b0ba[_0x7dcf97]=_0x58f28c,_0x2c5363=(_0x5519a9,_0x4f050a,_0x1a4662,_0x5b05d1)=>{var _0x132127=_0x5a24a7;for(var _0x47a640=_0x5b05d1>0x1?void 0x0:_0x5b05d1?_0x44280b(_0x4f050a,_0x1a4662):_0x4f050a,_0x5965f0=_0x5519a9[_0x132127(0x226)]-0x1,_0x296781;_0x5965f0>=0x0;_0x5965f0--)(_0x296781=_0x5519a9[_0x5965f0])&&(_0x47a640=_0x296781(_0x47a640)||_0x47a640);return _0x47a640;},_0x21c9c8=(_0x12884c,_0x2dbafe)=>(_0x2fdd43,_0x310798)=>_0x2dbafe(_0x2fdd43,_0x310798,_0x12884c),_0x28fd02=(_0x1d12c8,_0x241640,_0x180b22)=>_0x3ba22e(_0x1d12c8,typeof _0x241640!=_0x5a24a7(0x217)?_0x241640+'':_0x241640,_0x180b22);const _0x41e6fa=_0x5a24a7(0x14b);_0x3c637c['UniverLiveSharePlugin']=class extends _0x24c918[_0x5a24a7(0x1ba)]{constructor(_0xc43275=_0x5dc332,_0x4ac3a5,_0x11fcc2){var _0x1b1bab=_0x5a24a7;super(),this['_config']=_0xc43275,this[_0x1b1bab(0x18b)]=_0x4ac3a5,this[_0x1b1bab(0x1f3)]=_0x11fcc2;const {..._0x595b4c}=_0x24c918[_0x1b1bab(0x208)]({},_0x5dc332,this[_0x1b1bab(0x1e0)]);this['_configService'][_0x1b1bab(0x1b4)](_0xa3d734,_0x595b4c);}[_0x5a24a7(0x1ac)](){var _0x54ee71=_0x5a24a7;_0x24c918['registerDependencies'](this[_0x54ee71(0x18b)],_0x24c918[_0x54ee71(0x173)]([[_0x1be4e6],[_0x3c637c[_0x54ee71(0x1f9)]],[_0x2ef749],[_0x3c637c['DesktopLiveShareController']]],this[_0x54ee71(0x1e0)][_0x54ee71(0x1e5)])),_0x24c918[_0x54ee71(0x185)](this[_0x54ee71(0x18b)],[[_0x2ef749]]);}[_0x5a24a7(0x188)](){var _0x681b7b=_0x5a24a7;_0x24c918[_0x681b7b(0x185)](this[_0x681b7b(0x18b)],[[_0x3c637c[_0x681b7b(0x16c)]]]);}},_0x28fd02(_0x3c637c[_0x5a24a7(0x1e1)],_0x5a24a7(0x1dd),_0x24c918[_0x5a24a7(0x1a2)]['UNIVER_UNKNOWN']),_0x28fd02(_0x3c637c[_0x5a24a7(0x1e1)],_0x5a24a7(0x227),_0x41e6fa),_0x3c637c['UniverLiveSharePlugin']=_0x2c5363([_0x24c918[_0x5a24a7(0x22e)](_0x10f456['UniverCollaborationClientPlugin']),_0x21c9c8(0x1,_0x24c918[_0x5a24a7(0x21c)](_0x24c918['Injector'])),_0x21c9c8(0x2,_0x24c918[_0x5a24a7(0x183)])],_0x3c637c['UniverLiveSharePlugin']),_0x3c637c[_0x5a24a7(0x1be)]=_0x342162,_0x3c637c[_0x5a24a7(0x1c3)]=_0x1be4e6,_0x3c637c[_0x5a24a7(0x19e)]=_0x4a2cf2,Object[_0x5a24a7(0x1e7)](_0x3c637c,Symbol[_0x5a24a7(0x1ae)],{'value':'Module'});}));function _0x1343(){var _0x5d8936=['amd','entries','getTypeOfUnitAdded$','IDLE','symbol','extend','parseProtocolChangeset','current','react/jsx-runtime','Inject','_commandService','operations','OPERATION','add','next','evenodd','28444BheDng','asObservable','displayName','length','pluginName','getConfig','getUnitId','React','dispose$','end','call','DependentOn','useState','tryStartPresenting','Subject','UNIVER_LIVE_SHARE_PLUGIN','getOwnPropertySymbols','_handleOperation','propertyIsEnumerable','text','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','assign','parse','idSuffix','has','LIVESHARE_FETCH_OPERATIONS','presenter','OFFLINE','@univerjs-pro/collaboration-client','15CSJPfp','clsx','getMemberID','_stopFollowing','_mountLiveShare','delete','send','not-following','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','executeCommand','@univerjs/sheets-ui','useEffect','_collabSessionService','_presenter','currentColor','UniverIcon','_entities','unsubscribe','You\x27re\x20not\x20following\x20the\x20presenter','DesktopLiveShareController','stopPresenting','BuiltInUIPart','SetScrollOperation','live-share-icon','find','status$','mergeOverrideWithDependencies','@univerjs/ui','jsxs','NOT_FOLLOWING','_startFollowing','className','live-share.config','UNIVER_SHEET','@univerjs/design','@univerjs/sheets','then','random','subscribe','LIVESHARE_OPERATION','toDisposable','jsx','IConfigService','disposeWithMe','touchDependencies','_status$','complete','onRendered','forwardRef','_fetchOperations','_injector','_handleOnline','useRef','CollaborationEvent','You\x27re\x20following\x20the\x20presenter','memberID','colorChannel1','idle','concat','unitId','RxDisposable','button','Start\x20following','_sharedOperations','Disposable','SetZoomRatioOperation','@univerjs/core','children','throttleTime','LiveShareStatus','HEADER_MENU','UniverCore','params','UniverInstanceType','exports','_status','CommandType','path','199675bvWvaZ','defIds','useDependency','_univerInstanceService','icon','onStarting','react','toStringTag','FOLLOWING','string','stopFollowing','_reporters','_handleTerminate','setConfig','getCurrentTypeOfUnit$','Injector','_commandDisposable','takeUntil','clear','Plugin','function','getInitialStates','Start','LiveShare','none','forEach','getOwnPropertyDescriptor','createInstance','LiveShareService','185050EoorJY','559116TheAun','createElement','stringify','Fragment','useObservable','apply','SessionStatus','Button','_handleOffline','LIVESHARE_TERMINATE','rxjs','registerSharedOperation','LiveShareIcon','_stopPresenting','presenting','SetWorksheetActiveOperation','reverse','url(#$1','offline','ICommandService','defs','0\x200\x2017\x2017','UniverSheetsUi','BehaviorSubject','type','replace','fill','_config','UniverLiveSharePlugin','map','_startLiveShareCoordinator','dispose','override','UniverProCollaborationClient','defineProperty','following','div','_uiPartsService','IUniverInstanceService','You\x27re\x20presenting\x20the\x20document','DisposableCollection','_beIdle','sheet','univer-w-full\x20univer-mb-3\x20univer-text-sm','get','xlink:href','_configService','requireSession','LiveShareCoordinator','prototype','1em','registerComponent','LiveShareController','1074702frEZze','use','_liveShareService','sessionStatus$','805310kbmLTM','shouldShareOperation','pipe','init','mask','set','UniverSheets','tag','_collabSession','attrs','merge','3006936BUmQAy','operators','NEW_CHANGESETS','data','http://www.w3.org/2000/svg','UniverProCollaboration','_init','_unitID','ONLINE','rxjs/operators'];_0x1343=function(){return _0x5d8936;};return _0x1343();}
|
|
1
|
+
function _0x5e11(_0x4eaaea,_0x572212){var _0x3f8cc6=_0x3f8c();return _0x5e11=function(_0x5e114,_0xe2c411){_0x5e114=_0x5e114-0xaf;var _0x5d883d=_0x3f8cc6[_0x5e114];return _0x5d883d;},_0x5e11(_0x4eaaea,_0x572212);}(function(_0x222cbf,_0x4ef5cc){var _0x511c56=_0x5e11,_0x30e237=_0x222cbf();while(!![]){try{var _0x71b247=-parseInt(_0x511c56(0x16c))/0x1*(parseInt(_0x511c56(0xcf))/0x2)+-parseInt(_0x511c56(0xfc))/0x3+parseInt(_0x511c56(0xdb))/0x4+parseInt(_0x511c56(0x17e))/0x5+parseInt(_0x511c56(0x1a4))/0x6+-parseInt(_0x511c56(0x142))/0x7*(-parseInt(_0x511c56(0x113))/0x8)+-parseInt(_0x511c56(0x136))/0x9*(parseInt(_0x511c56(0xc1))/0xa);if(_0x71b247===_0x4ef5cc)break;else _0x30e237['push'](_0x30e237['shift']());}catch(_0x5ed354){_0x30e237['push'](_0x30e237['shift']());}}}(_0x3f8c,0x7ad98),function(_0x3ebb1c,_0x2bb350){var _0x37a2d2=_0x5e11;typeof exports==_0x37a2d2(0x159)&&typeof module<'u'?_0x2bb350(exports,require(_0x37a2d2(0x148)),require(_0x37a2d2(0x1a2)),require(_0x37a2d2(0x111)),require(_0x37a2d2(0x15d)),require(_0x37a2d2(0x177)),require(_0x37a2d2(0x134)),require(_0x37a2d2(0xbe)),require('react'),require(_0x37a2d2(0x13b)),require(_0x37a2d2(0x151)),require(_0x37a2d2(0x19e))):typeof define==_0x37a2d2(0x174)&&define[_0x37a2d2(0x135)]?define([_0x37a2d2(0xd1),_0x37a2d2(0x148),_0x37a2d2(0x1a2),'@univerjs/sheets',_0x37a2d2(0x15d),_0x37a2d2(0x177),_0x37a2d2(0x134),_0x37a2d2(0xbe),_0x37a2d2(0x11e),_0x37a2d2(0x13b),_0x37a2d2(0x151),_0x37a2d2(0x19e)],_0x2bb350):(_0x3ebb1c=typeof globalThis<'u'?globalThis:_0x3ebb1c||self,_0x2bb350(_0x3ebb1c['UniverProLiveShare']={},_0x3ebb1c[_0x37a2d2(0xfd)],_0x3ebb1c[_0x37a2d2(0xf6)],_0x3ebb1c[_0x37a2d2(0x149)],_0x3ebb1c[_0x37a2d2(0x145)],_0x3ebb1c[_0x37a2d2(0x19d)],_0x3ebb1c[_0x37a2d2(0x16e)],_0x3ebb1c['UniverDesign'],_0x3ebb1c[_0x37a2d2(0x16e)],_0x3ebb1c[_0x37a2d2(0x11a)],_0x3ebb1c[_0x37a2d2(0x151)],_0x3ebb1c[_0x37a2d2(0x151)][_0x37a2d2(0x127)]));}(this,function(_0x4d74f3,_0x2b39f1,_0x49d9fa,_0x39ef07,_0x3014f0,_0x42d30c,_0x2ddd3f,_0x1528d4,_0x2f384d,_0x50d2af,_0x5c6cb4,_0x289ff0){'use strict';var _0x3ab491=_0x5e11;var _0x24ee28=Object[_0x3ab491(0xc4)],_0x1d385f=(_0x434451,_0x26f68a,_0x27625d)=>_0x26f68a in _0x434451?_0x24ee28(_0x434451,_0x26f68a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x27625d}):_0x434451[_0x26f68a]=_0x27625d,_0x587504=(_0x1348c0,_0x3d1dd5,_0x1073e3)=>_0x1d385f(_0x1348c0,typeof _0x3d1dd5!='symbol'?_0x3d1dd5+'':_0x3d1dd5,_0x1073e3);const _0x111530=_0x3ab491(0x13f),_0x179639={};class _0x1ccb40 extends _0x49d9fa[_0x3ab491(0x133)]{constructor(){var _0x3663e6=_0x3ab491;super(...arguments),_0x587504(this,_0x3663e6(0x173),new Set()),_0x587504(this,_0x3663e6(0xf2),new Set());}['registerSharedOperation'](_0x36071f){var _0x1e9b60=_0x3ab491;return this['_sharedOperations'][_0x1e9b60(0x139)](_0x36071f),_0x49d9fa['toDisposable'](()=>this[_0x1e9b60(0x173)][_0x1e9b60(0xda)](_0x36071f));}[_0x3ab491(0x10d)](_0x40e5da){var _0x1efcac=_0x3ab491;return this[_0x1efcac(0xf2)][_0x1efcac(0x139)](_0x40e5da),_0x49d9fa['toDisposable'](()=>this['_reporters']['delete'](_0x40e5da));}[_0x3ab491(0xe0)](_0x51f3e3){var _0x5d956f=_0x3ab491;return this[_0x5d956f(0x173)][_0x5d956f(0x115)](_0x51f3e3);}[_0x3ab491(0x105)](_0x2e19bb){var _0x2e7f32=_0x3ab491;return Array[_0x2e7f32(0x175)](this[_0x2e7f32(0xf2)])[_0x2e7f32(0x13c)](_0xcef869=>_0xcef869(_0x2e19bb));}}var _0x46d3c8=Object[_0x3ab491(0x16b)],_0x1d5cb1=(_0x6c9043,_0x3fcbbf,_0x5af757,_0x1cd563)=>{var _0x3d1312=_0x3ab491;for(var _0x1dad7e=_0x1cd563>0x1?void 0x0:_0x1cd563?_0x46d3c8(_0x3fcbbf,_0x5af757):_0x3fcbbf,_0xc73f5a=_0x6c9043[_0x3d1312(0xb3)]-0x1,_0x4030f0;_0xc73f5a>=0x0;_0xc73f5a--)(_0x4030f0=_0x6c9043[_0xc73f5a])&&(_0x1dad7e=_0x4030f0(_0x1dad7e)||_0x1dad7e);return _0x1dad7e;},_0x3bf4e4=(_0x577daf,_0x5f540a)=>(_0x30ff1f,_0x46d3a6)=>_0x5f540a(_0x30ff1f,_0x46d3a6,_0x577daf);let _0x1707e8=class extends _0x49d9fa[_0x3ab491(0x133)]{constructor(_0x9c5229){var _0x1c7502=_0x3ab491;super(),this[_0x1c7502(0x129)]=_0x9c5229,this[_0x1c7502(0x154)]();}[_0x3ab491(0x154)](){var _0x5bd9a1=_0x3ab491;[_0x3014f0[_0x5bd9a1(0x161)]['id'],_0x3014f0[_0x5bd9a1(0xf1)]['id'],_0x39ef07[_0x5bd9a1(0x14c)]['id']][_0x5bd9a1(0xd8)](_0x2aa3b9=>{var _0x4a47a0=_0x5bd9a1;this[_0x4a47a0(0xc9)](this[_0x4a47a0(0x129)]['registerSharedOperation'](_0x2aa3b9));});}};_0x1707e8=_0x1d5cb1([_0x3bf4e4(0x0,_0x49d9fa[_0x3ab491(0x153)](_0x1ccb40))],_0x1707e8);var _0x24f675=function(){return _0x24f675=Object['assign']||function(_0x108fc4){var _0x536503=_0x5e11;for(var _0x1e6865,_0x3dfb7c=0x1,_0x21f4b4=arguments[_0x536503(0xb3)];_0x3dfb7c<_0x21f4b4;_0x3dfb7c++){_0x1e6865=arguments[_0x3dfb7c];for(var _0x4a7074 in _0x1e6865)Object['prototype'][_0x536503(0xd4)]['call'](_0x1e6865,_0x4a7074)&&(_0x108fc4[_0x4a7074]=_0x1e6865[_0x4a7074]);}return _0x108fc4;},_0x24f675['apply'](this,arguments);},_0x58ba7c=function(_0x5820c2,_0xbbeee8){var _0x4d1c4a=_0x3ab491,_0x2ff0d3={};for(var _0x27db7f in _0x5820c2)Object[_0x4d1c4a(0xeb)][_0x4d1c4a(0xd4)][_0x4d1c4a(0x12a)](_0x5820c2,_0x27db7f)&&_0xbbeee8['indexOf'](_0x27db7f)<0x0&&(_0x2ff0d3[_0x27db7f]=_0x5820c2[_0x27db7f]);if(_0x5820c2!=null&&typeof Object[_0x4d1c4a(0xd5)]=='function'){for(var _0x4f26e5=0x0,_0x27db7f=Object['getOwnPropertySymbols'](_0x5820c2);_0x4f26e5<_0x27db7f[_0x4d1c4a(0xb3)];_0x4f26e5++)_0xbbeee8[_0x4d1c4a(0x189)](_0x27db7f[_0x4f26e5])<0x0&&Object[_0x4d1c4a(0xeb)][_0x4d1c4a(0x11d)][_0x4d1c4a(0x12a)](_0x5820c2,_0x27db7f[_0x4f26e5])&&(_0x2ff0d3[_0x27db7f[_0x4f26e5]]=_0x5820c2[_0x27db7f[_0x4f26e5]]);}return _0x2ff0d3;},_0x22c1d1=_0x2f384d['forwardRef'](function(_0x323b68,_0x521345){var _0x5264f0=_0x3ab491,_0x55690b=_0x323b68[_0x5264f0(0x182)],_0x15d0a5=_0x323b68['id'],_0x4d1d8f=_0x323b68[_0x5264f0(0x196)],_0xf7c723=_0x323b68[_0x5264f0(0x11c)],_0x45d698=_0x58ba7c(_0x323b68,['icon','id',_0x5264f0(0x196),_0x5264f0(0x11c)]),_0x366b32=_0x5264f0(0xc3)[_0x5264f0(0x15c)](_0x15d0a5,'\x20')[_0x5264f0(0x15c)](_0x4d1d8f||'')[_0x5264f0(0x17d)](),_0x1180bf=_0x2f384d[_0x5264f0(0xf3)]('_'['concat'](_0x4478f3()));return _0x2d50e4(_0x55690b,''[_0x5264f0(0x15c)](_0x15d0a5),{'defIds':_0x55690b[_0x5264f0(0x13e)],'idSuffix':_0x1180bf[_0x5264f0(0x122)]},_0x24f675({'ref':_0x521345,'className':_0x366b32},_0x45d698),_0xf7c723);});function _0x2d50e4(_0xe3d180,_0x5259d1,_0x567e46,_0x4ea590,_0x51206d){var _0x43717e=_0x3ab491;return _0x2f384d['createElement'](_0xe3d180['tag'],_0x24f675(_0x24f675({'key':_0x5259d1},_0x1638a8(_0xe3d180,_0x567e46,_0x51206d)),_0x4ea590),(_0x5891f8(_0xe3d180,_0x567e46)[_0x43717e(0x181)]||[])[_0x43717e(0x13c)](function(_0x2ee7fe,_0x97008c){var _0x460fde=_0x43717e;return _0x2d50e4(_0x2ee7fe,''[_0x460fde(0x15c)](_0x5259d1,'-')['concat'](_0xe3d180[_0x460fde(0x14d)],'-')[_0x460fde(0x15c)](_0x97008c),_0x567e46,void 0x0,_0x51206d);}));}function _0x1638a8(_0x466927,_0x3dd5ad,_0x5634a4){var _0x3a5609=_0x3ab491,_0x418a04=_0x24f675({},_0x466927['attrs']);_0x5634a4!=null&&_0x5634a4[_0x3a5609(0x193)]&&_0x418a04[_0x3a5609(0xe5)]===_0x3a5609(0x193)&&(_0x418a04['fill']=_0x5634a4[_0x3a5609(0x193)]),_0x466927['tag']===_0x3a5609(0x163)&&_0x418a04['id']&&(_0x418a04['id']=_0x418a04['id']+_0x3dd5ad[_0x3a5609(0x197)]),Object[_0x3a5609(0xef)](_0x418a04)[_0x3a5609(0xd8)](function(_0x230dae){var _0x3aa1a8=_0x3a5609,_0x31468f=_0x230dae[0x0],_0x3d0d04=_0x230dae[0x1];_0x31468f===_0x3aa1a8(0x163)&&typeof _0x3d0d04==_0x3aa1a8(0x124)&&(_0x418a04[_0x31468f]=_0x3d0d04['replace'](/url\(#(.*)\)/,_0x3aa1a8(0x14f)[_0x3aa1a8(0x15c)](_0x3dd5ad[_0x3aa1a8(0x197)],')')));});var _0x2df1ae=_0x3dd5ad[_0x3a5609(0x13e)];return!_0x2df1ae||_0x2df1ae[_0x3a5609(0xb3)]===0x0||(_0x466927[_0x3a5609(0x14d)]===_0x3a5609(0x164)&&_0x418a04[_0x3a5609(0x131)]&&(_0x418a04[_0x3a5609(0x131)]=_0x418a04[_0x3a5609(0x131)]+_0x3dd5ad[_0x3a5609(0x197)]),Object[_0x3a5609(0xef)](_0x418a04)['forEach'](function(_0x257c51){var _0x59ee3b=_0x3a5609,_0x1b6dd6=_0x257c51[0x0],_0x1738d6=_0x257c51[0x1];typeof _0x1738d6==_0x59ee3b(0x124)&&(_0x418a04[_0x1b6dd6]=_0x1738d6[_0x59ee3b(0xd0)](/url\(#(.*)\)/,_0x59ee3b(0x14f)['concat'](_0x3dd5ad[_0x59ee3b(0x197)],')')));})),_0x418a04;}function _0x5891f8(_0x4c9dff,_0x4f769a){var _0x720fe5=_0x3ab491,_0x1ef136,_0xeb0791=_0x4f769a['defIds'];return!_0xeb0791||_0xeb0791[_0x720fe5(0xb3)]===0x0?_0x4c9dff:_0x4c9dff['tag']===_0x720fe5(0x19f)&&(!((_0x1ef136=_0x4c9dff['children'])===null||_0x1ef136===void 0x0)&&_0x1ef136['length'])?_0x24f675(_0x24f675({},_0x4c9dff),{'children':_0x4c9dff['children'][_0x720fe5(0x13c)](function(_0xc839c2){var _0x246f2b=_0x720fe5;return typeof _0xc839c2['attrs']['id']==_0x246f2b(0x124)&&_0xeb0791&&_0xeb0791['includes'](_0xc839c2['attrs']['id'])?_0x24f675(_0x24f675({},_0xc839c2),{'attrs':_0x24f675(_0x24f675({},_0xc839c2[_0x246f2b(0x19b)]),{'id':_0xc839c2['attrs']['id']+_0x4f769a[_0x246f2b(0x197)]})}):_0xc839c2;})}):_0x4c9dff;}function _0x4478f3(){var _0x4c8b9c=_0x3ab491;return Math[_0x4c8b9c(0x118)]()['toString'](0x24)['substring'](0x2,0x8);}_0x22c1d1['displayName']='UniverIcon';var _0x3ae1b1={'tag':_0x3ab491(0xdf),'attrs':{'xmlns':_0x3ab491(0x119),'fill':'none','viewBox':_0x3ab491(0x109),'width':'1em','height':_0x3ab491(0xc8)},'children':[{'tag':'path','attrs':{'fill':_0x3ab491(0x199),'d':_0x3ab491(0x1a6)}},{'tag':_0x3ab491(0x106),'attrs':{'fill':_0x3ab491(0x199),'d':_0x3ab491(0xcb),'fillRule':_0x3ab491(0xec),'clipRule':_0x3ab491(0xec)}}]},_0x5c010e=_0x2f384d[_0x3ab491(0x192)](function(_0x124172,_0x35d79d){var _0x292759=_0x3ab491;return _0x2f384d[_0x292759(0xc6)](_0x22c1d1,Object[_0x292759(0x176)]({},_0x124172,{'id':'live-share-icon','ref':_0x35d79d,'icon':_0x3ae1b1}));});_0x5c010e[_0x3ab491(0xf9)]='LiveShareIcon';var _0x162310=Object[_0x3ab491(0x16b)],_0x5a14d4=(_0x235656,_0x544956,_0x36f65e,_0x3b10c2)=>{var _0x46cb9c=_0x3ab491;for(var _0xbc4ca1=_0x3b10c2>0x1?void 0x0:_0x3b10c2?_0x162310(_0x544956,_0x36f65e):_0x544956,_0x41ff66=_0x235656[_0x46cb9c(0xb3)]-0x1,_0x396754;_0x41ff66>=0x0;_0x41ff66--)(_0x396754=_0x235656[_0x41ff66])&&(_0xbc4ca1=_0x396754(_0xbc4ca1)||_0xbc4ca1);return _0xbc4ca1;},_0x532ade=(_0x13bac0,_0x5cdf4f)=>(_0x107054,_0x2ef86e)=>_0x5cdf4f(_0x107054,_0x2ef86e,_0x13bac0);_0x4d74f3[_0x3ab491(0xbb)]=class extends _0x49d9fa[_0x3ab491(0x114)]{constructor(_0x505396,_0x193257,_0x4e296b){var _0x844c2e=_0x3ab491;super(),_0x587504(this,'_entities',new Map()),(this[_0x844c2e(0x168)]=_0x505396,this['_injector']=_0x193257,this['_collabSessionService']=_0x4e296b,this[_0x844c2e(0x154)]());}async[_0x3ab491(0x183)](_0x596ba3){var _0x1198f4=_0x3ab491;return this[_0x1198f4(0x18e)][_0x1198f4(0x115)](_0x596ba3)||await this['_startLiveShareCoordinator'](_0x596ba3),this[_0x1198f4(0x18e)]['get'](_0x596ba3);}[_0x3ab491(0x154)](){var _0x2d22bd=_0x3ab491;this['_univerInstanceService'][_0x2d22bd(0xb5)](_0x49d9fa[_0x2d22bd(0xb7)][_0x2d22bd(0x12e)])[_0x2d22bd(0xf0)](_0x289ff0[_0x2d22bd(0x18d)](this[_0x2d22bd(0x112)]))[_0x2d22bd(0xdd)](async _0x3075a4=>{var _0x2e8f31=_0x2d22bd;const _0x555adc=_0x3075a4[_0x2e8f31(0x10f)]();this[_0x2e8f31(0x18e)]['has'](_0x555adc)||this[_0x2e8f31(0x172)](_0x555adc);}),this[_0x2d22bd(0x168)][_0x2d22bd(0xcd)](_0x49d9fa['UniverInstanceType']['UNIVER_SHEET'])[_0x2d22bd(0xf0)](_0x289ff0[_0x2d22bd(0x18d)](this[_0x2d22bd(0x112)]))[_0x2d22bd(0xdd)](_0x1862ee=>{var _0x531fad=_0x2d22bd;const _0x166070=_0x1862ee[_0x531fad(0x10f)](),_0x35a56b=this[_0x531fad(0x18e)][_0x531fad(0xb8)](_0x166070);_0x35a56b==null||_0x35a56b[_0x531fad(0x15a)]();});}async['_startLiveShareCoordinator'](_0x24afb9){var _0x4b98ad=_0x3ab491;const _0x1ef937=await this['_collabSessionService'][_0x4b98ad(0xd3)](_0x24afb9),_0x21b1c8=this[_0x4b98ad(0x102)][_0x4b98ad(0xe9)](_0x4d74f3[_0x4b98ad(0xfe)],_0x24afb9,_0x1ef937);return _0x21b1c8[_0x4b98ad(0xb9)](),this[_0x4b98ad(0x18e)][_0x4b98ad(0x15e)](_0x24afb9,_0x21b1c8),_0x21b1c8;}},_0x4d74f3[_0x3ab491(0xbb)]=_0x5a14d4([_0x532ade(0x0,_0x49d9fa[_0x3ab491(0x170)]),_0x532ade(0x1,_0x49d9fa[_0x3ab491(0x153)](_0x49d9fa['Injector'])),_0x532ade(0x2,_0x49d9fa['Inject'](_0x2b39f1[_0x3ab491(0x14b)]))],_0x4d74f3[_0x3ab491(0xbb)]);var _0x484d9e=(_0x49d99d=>(_0x49d99d[_0x3ab491(0x16a)]=_0x3ab491(0x137),_0x49d99d[_0x3ab491(0x179)]=_0x3ab491(0x117),_0x49d99d[_0x3ab491(0xc5)]='following',_0x49d99d[_0x3ab491(0x18f)]=_0x3ab491(0x147),_0x49d99d[_0x3ab491(0xc7)]=_0x3ab491(0x19c),_0x49d99d))(_0x484d9e||{});const _0x4b468f=_0x3ab491(0xce),_0x8e7c07=0xc8;_0x4d74f3[_0x3ab491(0xfe)]=class extends _0x49d9fa[_0x3ab491(0x114)]{constructor(_0x344d80,_0xa5108b,_0x6c4d4,_0x18bd9c,_0x198b5c){var _0x1be47c=_0x3ab491;super(),_0x587504(this,_0x1be47c(0xd2),new _0x5c6cb4['BehaviorSubject'](_0x1be47c(0x117))),_0x587504(this,_0x1be47c(0xbd),this[_0x1be47c(0xd2)][_0x1be47c(0x184)]()),_0x587504(this,'_init',!0x1),_0x587504(this,_0x1be47c(0xc2),null),_0x587504(this,_0x1be47c(0xc0),null),(this[_0x1be47c(0x156)]=_0x344d80,this[_0x1be47c(0x120)]=_0xa5108b,this['_configService']=_0x6c4d4,this[_0x1be47c(0x129)]=_0x18bd9c,this['_commandService']=_0x198b5c);}get['_status'](){var _0x2fa59b=_0x3ab491;return this[_0x2fa59b(0xd2)][_0x2fa59b(0x107)]();}[_0x3ab491(0x15a)](){var _0x50151c=_0x3ab491,_0x517722;(_0x517722=this[_0x50151c(0xc2)])==null||_0x517722[_0x50151c(0x15a)](),this[_0x50151c(0xd2)][_0x50151c(0x195)](_0x50151c(0x117)),this['_status$'][_0x50151c(0xb0)]();}[_0x3ab491(0xb9)](){var _0x2cca24=_0x3ab491;this[_0x2cca24(0x154)]||(this[_0x2cca24(0x154)]=!0x0,this[_0x2cca24(0x120)][_0x2cca24(0x166)]['pipe'](_0x289ff0[_0x2cca24(0x18d)](this[_0x2cca24(0x112)]))[_0x2cca24(0xdd)](_0x29f97d=>{var _0x2a48e6=_0x2cca24;switch(_0x29f97d){case _0x2b39f1[_0x2a48e6(0x121)][_0x2a48e6(0x16a)]:this['_handleOffline']();break;case _0x2b39f1[_0x2a48e6(0x121)][_0x2a48e6(0x162)]:this[_0x2a48e6(0x10e)]();break;}}),this[_0x2cca24(0x120)][_0x2cca24(0xd9)]['pipe'](_0x289ff0[_0x2cca24(0x18d)](this[_0x2cca24(0x112)]))[_0x2cca24(0xdd)](_0x3118bd=>{var _0x17be86=_0x2cca24;const {eventID:_0x1c0fe8}=_0x3118bd;switch(_0x1c0fe8){case _0x50d2af[_0x17be86(0xd7)][_0x17be86(0x160)]:this[_0x17be86(0xba)](_0x3118bd);break;case _0x50d2af[_0x17be86(0xd7)][_0x17be86(0xb2)]:this[_0x17be86(0xcc)](_0x3118bd);break;case _0x50d2af[_0x17be86(0xd7)][_0x17be86(0xd6)]:this[_0x17be86(0x144)]();break;case _0x50d2af['CollaborationEvent'][_0x17be86(0x12b)]:this[_0x17be86(0x18a)](_0x3118bd);break;}}));}[_0x3ab491(0x191)](){var _0x40cdb3=_0x3ab491;this[_0x40cdb3(0x120)][_0x40cdb3(0xf8)]({'eventID':_0x50d2af['CollaborationEvent'][_0x40cdb3(0x167)],'data':{'unitID':this[_0x40cdb3(0x156)],'userID':this['_collabSession'][_0x40cdb3(0x185)]()}},this[_0x40cdb3(0x156)]);}[_0x3ab491(0x14e)](){var _0x19c9d1=_0x3ab491;this[_0x19c9d1(0x15f)]===_0x19c9d1(0x19c)&&(this[_0x19c9d1(0xd2)][_0x19c9d1(0x195)](_0x19c9d1(0x117)),this[_0x19c9d1(0x120)][_0x19c9d1(0xf8)]({'eventID':_0x50d2af[_0x19c9d1(0xd7)]['LIVESHARE_TERMINATE'],'data':{'unitID':this[_0x19c9d1(0x156)]}},this[_0x19c9d1(0x156)]));}['startFollowing'](){var _0xc5cf1a=_0x3ab491;this[_0xc5cf1a(0x15f)]===_0xc5cf1a(0x147)&&(this[_0xc5cf1a(0xd2)][_0xc5cf1a(0x195)](_0xc5cf1a(0xe2)),this[_0xc5cf1a(0x14a)]());}[_0x3ab491(0xe1)](){var _0x49b80f=_0x3ab491;this[_0x49b80f(0x15f)]===_0x49b80f(0xe2)&&this[_0x49b80f(0xfa)]();}['_handleNewHost'](_0xba10df){var _0x21e9bd=_0x3ab491;const {presenter:_0x2d2f45}=_0xba10df[_0x21e9bd(0x155)],_0x156b9d=this[_0x21e9bd(0x120)]['getMemberID']();this[_0x21e9bd(0xc0)]=_0x2d2f45,_0x2d2f45===_0x156b9d?(this[_0x21e9bd(0xfa)](),this[_0x21e9bd(0x132)]()):this[_0x21e9bd(0x15f)]!==_0x21e9bd(0x147)&&(this['_stopPresenting'](),this['_startFollowing']());}[_0x3ab491(0x187)](){var _0xda6af0=_0x3ab491;const _0x3b93ea={'eventID':_0x50d2af[_0xda6af0(0xd7)][_0xda6af0(0x17a)]};this[_0xda6af0(0x120)][_0xda6af0(0xf8)](_0x3b93ea,this['_unitID']);}['_handleTerminate'](){var _0x2168c2=_0x3ab491;this[_0x2168c2(0xc0)]=null,this[_0x2168c2(0x15f)]!==_0x2168c2(0x19c)&&this[_0x2168c2(0x150)]();}['_handleNewChangeSets'](_0x3f74d8){var _0xd4c9c0=_0x3ab491;if(this[_0xd4c9c0(0x15f)]===_0xd4c9c0(0xe2)&&this[_0xd4c9c0(0xc0)]===_0x3f74d8['data'][_0xd4c9c0(0xe8)]){const _0x1080fb=_0x50d2af[_0xd4c9c0(0xb4)](_0x3f74d8[_0xd4c9c0(0x155)])[_0xd4c9c0(0x180)]['reverse']()[_0xd4c9c0(0xe6)](_0x1e7248=>_0x1e7248['id']===_0x39ef07[_0xd4c9c0(0x10b)]['id']);if(_0x1080fb){const _0x2b3cab=_0x1080fb[_0xd4c9c0(0xe4)][_0xd4c9c0(0xde)],_0x2e6b01=_0x1080fb[_0xd4c9c0(0xe4)][_0xd4c9c0(0x169)]['id'];setTimeout(()=>{var _0x3b190c=_0xd4c9c0;this[_0x3b190c(0x178)][_0x3b190c(0x101)](_0x39ef07[_0x3b190c(0x14c)]['id'],{'unitId':_0x2b3cab,'subUnitId':_0x2e6b01},{'fromCollab':!0x0});});}}}[_0x3ab491(0x132)](){var _0x260e16=_0x3ab491;this[_0x260e16(0xd2)][_0x260e16(0x195)]('presenting');const _0x571205=new Map(),_0xbbb1b5=this[_0x260e16(0xc2)]=new _0x49d9fa['DisposableCollection']();_0xbbb1b5[_0x260e16(0x139)](_0x49d9fa['toDisposable'](()=>{var _0x23c1f9=_0x260e16;_0x571205[_0x23c1f9(0xd8)](_0x4c1e36=>_0x4c1e36[_0x23c1f9(0xb0)]()),_0x571205['clear']();})),_0xbbb1b5['add'](this[_0x260e16(0x178)][_0x260e16(0x104)](_0x135356=>{var _0x32e675=_0x260e16,_0x293d3f;if(_0x135356[_0x32e675(0x16f)]!==_0x49d9fa['CommandType'][_0x32e675(0xbf)]||!this[_0x32e675(0x129)][_0x32e675(0xe0)](_0x135356['id']))return;const {id:_0x27b958}=_0x135356;let _0x525450;_0x571205[_0x32e675(0x115)](_0x27b958)?_0x525450=_0x571205['get'](_0x27b958):(_0x525450=new _0x5c6cb4[(_0x32e675(0x1a0))](),_0x571205[_0x32e675(0x15e)](_0x27b958,_0x525450),_0x525450[_0x32e675(0xf0)](_0x289ff0['throttleTime']((_0x293d3f=this[_0x32e675(0x108)]['getConfig'](_0x4b468f))!=null?_0x293d3f:_0x8e7c07,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x4b3cf4=>{var _0x241559=_0x32e675;this[_0x241559(0x120)][_0x241559(0xf8)]({'eventID':_0x50d2af[_0x241559(0xd7)][_0x241559(0xb2)],'data':{'unitID':this[_0x241559(0x156)],'operations':{[_0x4b3cf4['id']]:{'id':_0x4b3cf4['id'],'params':JSON[_0x241559(0xff)](_0x4b3cf4[_0x241559(0xe4)])}}}},this[_0x241559(0x156)]);})),_0x525450['next'](_0x135356);})),this[_0x260e16(0x129)][_0x260e16(0x105)](this[_0x260e16(0x156)])[_0x260e16(0xd8)](_0x59cac9=>this[_0x260e16(0x120)][_0x260e16(0xf8)]({'eventID':_0x50d2af['CollaborationEvent'][_0x260e16(0xb2)],'data':{'unitID':this[_0x260e16(0x156)],'operations':{[_0x59cac9['id']]:{'id':_0x59cac9['id'],'params':JSON[_0x260e16(0xff)](_0x59cac9['params'])}}}},this[_0x260e16(0x156)]));}[_0x3ab491(0xbc)](){var _0x2a2ce3=_0x3ab491,_0xc0d5b6;this[_0x2a2ce3(0xd2)][_0x2a2ce3(0x195)](_0x2a2ce3(0x117)),(_0xc0d5b6=this['_commandDisposable'])==null||_0xc0d5b6['dispose'](),this[_0x2a2ce3(0xc2)]=null;}[_0x3ab491(0x14a)](){var _0x1a5529=_0x3ab491,_0x462703;(_0x462703=this[_0x1a5529(0xc2)])==null||_0x462703[_0x1a5529(0x15a)](),this[_0x1a5529(0xd2)]['next'](_0x1a5529(0xe2));}[_0x3ab491(0x150)](){var _0x1fa60e=_0x3ab491,_0x1750dc;this[_0x1fa60e(0xd2)][_0x1fa60e(0x195)](_0x1fa60e(0x117)),(_0x1750dc=this[_0x1fa60e(0xc2)])==null||_0x1750dc[_0x1fa60e(0x15a)](),this[_0x1fa60e(0xc2)]=null;}['_stopFollowing'](){var _0x4cc18a=_0x3ab491,_0x56ca79;this['_status$'][_0x4cc18a(0x195)]('not-following'),(_0x56ca79=this[_0x4cc18a(0xc2)])==null||_0x56ca79['dispose']();}[_0x3ab491(0xcc)](_0x37ecd4){var _0x45c030=_0x3ab491;if([_0x45c030(0x19c),_0x45c030(0x147),_0x45c030(0x137)][_0x45c030(0x1a3)](this['_status'])||!_0x37ecd4[_0x45c030(0x155)][_0x45c030(0xb1)]||_0x37ecd4[_0x45c030(0x155)][_0x45c030(0xb1)]===this[_0x45c030(0x120)][_0x45c030(0x185)]())return;this[_0x45c030(0x15f)]==='idle'&&this['_startFollowing']();const _0x970a26=_0x37ecd4[_0x45c030(0x155)][_0x45c030(0xe7)];Object['values'](_0x970a26)[_0x45c030(0xd8)](_0x487800=>{var _0x445946=_0x45c030;this[_0x445946(0x178)][_0x445946(0x101)](_0x487800['id'],_0x487800['params']?JSON[_0x445946(0x17b)](_0x487800[_0x445946(0xe4)]):null,{'fromCollab':!0x0});});}[_0x3ab491(0x18c)](){var _0x3d1165=_0x3ab491,_0x302b7f;this['_status$'][_0x3d1165(0x195)](_0x3d1165(0x137)),(_0x302b7f=this[_0x3d1165(0xc2)])==null||_0x302b7f[_0x3d1165(0x15a)]();}[_0x3ab491(0x10e)](){var _0x37a27d=_0x3ab491;this[_0x37a27d(0xd2)][_0x37a27d(0x195)](_0x37a27d(0x117)),this['_fetchOperations']();}},_0x4d74f3[_0x3ab491(0xfe)]=_0x5a14d4([_0x532ade(0x2,_0x49d9fa[_0x3ab491(0xfb)]),_0x532ade(0x3,_0x49d9fa[_0x3ab491(0x153)](_0x1ccb40)),_0x532ade(0x4,_0x49d9fa[_0x3ab491(0x125)])],_0x4d74f3[_0x3ab491(0xfe)]);function _0x493f03(){var _0xf8ca47=_0x3ab491;const _0x160816=_0x42d30c['useDependency'](_0x4d74f3[_0xf8ca47(0xbb)]),_0x53f1f0=_0x42d30c[_0xf8ca47(0x128)](_0x49d9fa[_0xf8ca47(0x170)]),_0x1cb5e6=_0x42d30c[_0xf8ca47(0x138)](()=>_0x53f1f0[_0xf8ca47(0xca)](_0x49d9fa['UniverInstanceType'][_0xf8ca47(0x12e)]),void 0x0,!0x1,[]),[_0x36c943,_0x4470a1]=_0x2f384d[_0xf8ca47(0x194)](null),[_0x15f93f,_0x528cf0]=_0x2f384d[_0xf8ca47(0x194)](_0x484d9e['IDLE']),_0x584ee9=_0x2f384d[_0xf8ca47(0xf3)](null);return _0x2f384d['useEffect'](()=>(_0x1cb5e6&&_0x160816[_0xf8ca47(0x183)](_0x1cb5e6['getUnitId']())[_0xf8ca47(0x165)](_0x362758=>{var _0x318c2c=_0xf8ca47;_0x4470a1(_0x362758),_0x584ee9[_0x318c2c(0x122)]=_0x362758[_0x318c2c(0xbd)][_0x318c2c(0xdd)](_0x343568=>{_0x528cf0(_0x343568);});}),()=>{var _0x5615e0=_0xf8ca47,_0x41f418;(_0x41f418=_0x584ee9[_0x5615e0(0x122)])==null||_0x41f418[_0x5615e0(0x15b)](),_0x584ee9[_0x5615e0(0x122)]=null;}),[_0x1cb5e6,_0x160816]),_0x36c943?_0x2ddd3f[_0xf8ca47(0x13d)](_0x1528d4[_0xf8ca47(0x123)],{'align':_0xf8ca47(0x18b),'disabled':_0x15f93f===_0x484d9e[_0xf8ca47(0x16a)],'className':_0xf8ca47(0x141),'overlay':_0x2ddd3f['jsx'](_0x153342,{'status':_0x15f93f,'coordinator':_0x36c943}),'children':_0x2ddd3f[_0xf8ca47(0x13d)](_0xf8ca47(0x130),{'className':_0x1528d4[_0xf8ca47(0xe3)]('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x15f93f===_0x484d9e[_0xf8ca47(0x16a)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x15f93f!==_0x484d9e[_0xf8ca47(0x16a)]}),'type':_0xf8ca47(0x130),'children':_0x2ddd3f[_0xf8ca47(0x13d)](_0x5c010e,{'className':_0xf8ca47(0xaf)})})}):null;}function _0x153342(_0x2ab534){var _0x2baf12=_0x3ab491;const {status:_0x254cec,coordinator:_0x1d0e60}=_0x2ab534;switch(_0x254cec){case _0x484d9e[_0x2baf12(0x179)]:return _0x2ddd3f[_0x2baf12(0x13d)](_0x1b0984,{'coordinator':_0x1d0e60});case _0x484d9e['FOLLOWING']:return _0x2ddd3f[_0x2baf12(0x13d)](_0x503a94,{'coordinator':_0x1d0e60});case _0x484d9e[_0x2baf12(0x18f)]:return _0x2ddd3f['jsx'](_0x468cc8,{'coordinator':_0x1d0e60});case _0x484d9e['OFFLINE']:return _0x2ddd3f['jsx'](_0x301f59,{});case _0x484d9e['PRESENTING']:return _0x2ddd3f[_0x2baf12(0x13d)](_0x530484,{'coordinator':_0x1d0e60});default:return null;}}function _0x1b0984(_0x896b5a){var _0x349bc4=_0x3ab491;const {coordinator:_0x550814}=_0x896b5a;return _0x2ddd3f[_0x349bc4(0xf7)](_0x2ddd3f[_0x349bc4(0xee)],{'children':[_0x2ddd3f[_0x349bc4(0x13d)](_0x349bc4(0x103),{'className':_0x349bc4(0x1a1),'children':'Present\x20this\x20document'}),_0x2ddd3f['jsx'](_0x1528d4['Button'],{'onClick':()=>_0x550814[_0x349bc4(0x191)](),'children':_0x349bc4(0x146)})]});}function _0x503a94(_0x2266f3){var _0x5a04fe=_0x3ab491;const {coordinator:_0x15a2df}=_0x2266f3;return _0x2ddd3f[_0x5a04fe(0xf7)](_0x2ddd3f['Fragment'],{'children':[_0x2ddd3f['jsx'](_0x5a04fe(0x103),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x5a04fe(0x12d)}),_0x2ddd3f[_0x5a04fe(0x13d)](_0x1528d4[_0x5a04fe(0x12c)],{'onClick':()=>_0x15a2df[_0x5a04fe(0xe1)](),'children':_0x5a04fe(0x13a)})]});}function _0x468cc8(_0x1bf98e){var _0x38c11c=_0x3ab491;const {coordinator:_0x37efe6}=_0x1bf98e;return _0x2ddd3f[_0x38c11c(0xf7)](_0x2ddd3f[_0x38c11c(0xee)],{'children':[_0x2ddd3f['jsx']('div',{'className':_0x38c11c(0x1a1),'children':_0x38c11c(0x17f)}),_0x2ddd3f[_0x38c11c(0x13d)](_0x1528d4[_0x38c11c(0x12c)],{'variant':'text','onClick':()=>_0x37efe6[_0x38c11c(0x11b)](),'children':_0x38c11c(0x17c)})]});}function _0x530484(_0x37892a){var _0x6379c8=_0x3ab491;const {coordinator:_0x585124}=_0x37892a;return _0x2ddd3f[_0x6379c8(0xf7)](_0x2ddd3f['Fragment'],{'children':[_0x2ddd3f[_0x6379c8(0x13d)](_0x6379c8(0x103),{'className':_0x6379c8(0x1a1),'children':_0x6379c8(0x152)}),_0x2ddd3f[_0x6379c8(0x13d)](_0x1528d4[_0x6379c8(0x12c)],{'variant':_0x6379c8(0x157),'onClick':()=>_0x585124[_0x6379c8(0x14e)](),'children':_0x6379c8(0x10a)})]});}function _0x301f59(){var _0x5ad4f9=_0x3ab491;return _0x2ddd3f['jsx'](_0x2ddd3f[_0x5ad4f9(0xee)],{'children':'You\x27are\x20offline.'});}var _0x5a90d0=Object['getOwnPropertyDescriptor'],_0x1e99a8=(_0x52f6c8,_0x594a07,_0xa2c621,_0x32a0b)=>{var _0x584fbe=_0x3ab491;for(var _0x11e6b5=_0x32a0b>0x1?void 0x0:_0x32a0b?_0x5a90d0(_0x594a07,_0xa2c621):_0x594a07,_0x373e1a=_0x52f6c8[_0x584fbe(0xb3)]-0x1,_0x5edc9c;_0x373e1a>=0x0;_0x373e1a--)(_0x5edc9c=_0x52f6c8[_0x373e1a])&&(_0x11e6b5=_0x5edc9c(_0x11e6b5)||_0x11e6b5);return _0x11e6b5;},_0x4d530a=(_0x4c9f14,_0x3e6c87)=>(_0x1d9758,_0xb1de79)=>_0x3e6c87(_0x1d9758,_0xb1de79,_0x4c9f14);_0x4d74f3['DesktopLiveShareController']=class extends _0x49d9fa[_0x3ab491(0x133)]{constructor(_0x2da18c,_0x2d9ab3){var _0x242962=_0x3ab491;super(),this[_0x242962(0x102)]=_0x2da18c,this[_0x242962(0xed)]=_0x2d9ab3,this[_0x242962(0x10c)]();}['_mountLiveShare'](){var _0x1a81a4=_0x3ab491;this[_0x1a81a4(0xc9)](this[_0x1a81a4(0xed)][_0x1a81a4(0xf4)](_0x42d30c['BuiltInUIPart'][_0x1a81a4(0x19a)],()=>_0x42d30c[_0x1a81a4(0x126)](_0x493f03,this[_0x1a81a4(0x102)])));}},_0x4d74f3['DesktopLiveShareController']=_0x1e99a8([_0x4d530a(0x0,_0x49d9fa[_0x3ab491(0x153)](_0x49d9fa[_0x3ab491(0x186)])),_0x4d530a(0x1,_0x42d30c[_0x3ab491(0x110)])],_0x4d74f3[_0x3ab491(0x100)]);var _0x535f7c=Object[_0x3ab491(0xc4)],_0x407b9f=Object[_0x3ab491(0x16b)],_0x14bf5a=(_0x13a349,_0x39aba1,_0x4e29dc)=>_0x39aba1 in _0x13a349?_0x535f7c(_0x13a349,_0x39aba1,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e29dc}):_0x13a349[_0x39aba1]=_0x4e29dc,_0x325d77=(_0x4da17a,_0xc80feb,_0xcfb615,_0x508358)=>{for(var _0x50204e=_0x508358>0x1?void 0x0:_0x508358?_0x407b9f(_0xc80feb,_0xcfb615):_0xc80feb,_0x5b320d=_0x4da17a['length']-0x1,_0x1dd9a6;_0x5b320d>=0x0;_0x5b320d--)(_0x1dd9a6=_0x4da17a[_0x5b320d])&&(_0x50204e=_0x1dd9a6(_0x50204e)||_0x50204e);return _0x50204e;},_0x577d34=(_0xfe70c3,_0x5062b2)=>(_0x14ae32,_0x4b376a)=>_0x5062b2(_0x14ae32,_0x4b376a,_0xfe70c3),_0x3dfd0f=(_0x493590,_0x242816,_0x2a1173)=>_0x14bf5a(_0x493590,typeof _0x242816!='symbol'?_0x242816+'':_0x242816,_0x2a1173);const _0x25e94b=_0x3ab491(0xb6);_0x4d74f3[_0x3ab491(0x140)]=class extends _0x49d9fa[_0x3ab491(0x16d)]{constructor(_0x3623f2=_0x179639,_0xabf6aa,_0x3cac71){var _0x294e58=_0x3ab491;super(),this[_0x294e58(0x188)]=_0x3623f2,this[_0x294e58(0x102)]=_0xabf6aa,this[_0x294e58(0x108)]=_0x3cac71;const {..._0x375fb1}=_0x49d9fa[_0x294e58(0xf5)]({},_0x179639,this[_0x294e58(0x188)]);this[_0x294e58(0x108)]['setConfig'](_0x111530,_0x375fb1);}[_0x3ab491(0xdc)](){var _0xc1d8bb=_0x3ab491;_0x49d9fa['registerDependencies'](this[_0xc1d8bb(0x102)],_0x49d9fa[_0xc1d8bb(0x143)]([[_0x1ccb40],[_0x4d74f3[_0xc1d8bb(0xbb)]],[_0x1707e8],[_0x4d74f3[_0xc1d8bb(0x100)]]],this[_0xc1d8bb(0x188)]['override'])),_0x49d9fa[_0xc1d8bb(0x11f)](this[_0xc1d8bb(0x102)],[[_0x1707e8]]);}[_0x3ab491(0x12f)](){var _0x1ba845=_0x3ab491;_0x49d9fa[_0x1ba845(0x11f)](this[_0x1ba845(0x102)],[[_0x4d74f3[_0x1ba845(0x100)]]]);}},_0x3dfd0f(_0x4d74f3[_0x3ab491(0x140)],_0x3ab491(0x16f),_0x49d9fa[_0x3ab491(0xb7)]['UNIVER_UNKNOWN']),_0x3dfd0f(_0x4d74f3[_0x3ab491(0x140)],_0x3ab491(0x1a5),_0x25e94b),_0x4d74f3[_0x3ab491(0x140)]=_0x325d77([_0x49d9fa[_0x3ab491(0x198)](_0x2b39f1[_0x3ab491(0x116)]),_0x577d34(0x1,_0x49d9fa[_0x3ab491(0x153)](_0x49d9fa['Injector'])),_0x577d34(0x2,_0x49d9fa[_0x3ab491(0xfb)])],_0x4d74f3[_0x3ab491(0x140)]),_0x4d74f3[_0x3ab491(0x158)]=_0x493f03,_0x4d74f3[_0x3ab491(0x171)]=_0x1ccb40,_0x4d74f3[_0x3ab491(0x190)]=_0x484d9e,Object[_0x3ab491(0xc4)](_0x4d74f3,Symbol['toStringTag'],{'value':_0x3ab491(0xea)});}));function _0x3f8c(){var _0x5578d9=['ICommandService','connectInjector','operators','useDependency','_liveShareService','call','NEW_CHANGESETS','Button','You\x27re\x20following\x20the\x20presenter','UNIVER_SHEET','onRendered','button','xlink:href','_startPresenting','Disposable','react/jsx-runtime','amd','99YlNEaf','offline','useObservable','add','Stop\x20following','@univerjs-pro/collaboration','map','jsx','defIds','live-share.config','UniverLiveSharePlugin','univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','315vDbBnO','mergeOverrideWithDependencies','_handleTerminate','UniverSheetsUi','Start','not-following','@univerjs-pro/collaboration-client','UniverSheets','_startFollowing','CollaborationSessionService','SetWorksheetActiveOperation','tag','stopPresenting','url(#$1','_beIdle','rxjs','You\x27re\x20presenting\x20the\x20document','Inject','_init','data','_unitID','default','LiveShare','object','dispose','unsubscribe','concat','@univerjs/sheets-ui','set','_status','LIVESHARE_NEW_HOST','SetZoomRatioOperation','ONLINE','mask','use','then','sessionStatus$','LIVESHARE_REQUEST_HOST','_univerInstanceService','sheet','OFFLINE','getOwnPropertyDescriptor','7HrenWd','Plugin','React','type','IUniverInstanceService','LiveShareService','_startLiveShareCoordinator','_sharedOperations','function','from','assign','@univerjs/ui','_commandService','IDLE','LIVESHARE_FETCH_OPERATIONS','parse','Start\x20following','trim','2898680Elrvpu','You\x27re\x20not\x20following\x20the\x20presenter','mutations','children','icon','getLiveShareCoordinator','asObservable','getMemberID','Injector','_fetchOperations','_config','indexOf','_handleNewChangeSets','end','_handleOffline','takeUntil','_entities','NOT_FOLLOWING','LiveShareStatus','tryStartPresenting','forwardRef','colorChannel1','useState','next','className','idSuffix','DependentOn','currentColor','HEADER_MENU','attrs','presenting','UniverUi','rxjs/operators','defs','Subject','univer-w-full\x20univer-mb-3\x20univer-text-sm','@univerjs/core','includes','878094pORjkw','pluginName','M9.20459\x204.90474C9.20459\x204.64763\x209.35535\x204.54174\x209.54053\x204.68737L11.2643\x206.04046C11.4495\x206.18609\x2011.4495\x206.42299\x2011.2643\x206.56789L9.55334\x207.90706C9.36755\x208.05269\x209.20386\x207.90499\x209.20386\x207.68969V6.96785H8.94446C8.19543\x206.96785\x206.72595\x207.28347\x206.37646\x207.89174C6.30786\x208.00322\x206.23572\x207.97884\x206.23572\x207.89174C6.25073\x206.80828\x208.0918\x205.58895\x209.17383\x205.58895H9.20459V4.90474Z','univer-size-4','complete','presenter','LIVESHARE_OPERATION','length','parseProtocolChangeset','getTypeOfUnitAdded$','UNIVER_LIVE_SHARE_PLUGIN','UniverInstanceType','get','init','_handleNewHost','LiveShareController','_stopPresenting','status$','@univerjs/design','OPERATION','_presenter','402590aeLzGD','_commandDisposable','univerjs-icon\x20univerjs-icon-','defineProperty','FOLLOWING','createElement','PRESENTING','1em','disposeWithMe','getCurrentTypeOfUnit$','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','_handleOperation','getTypeOfUnitDisposed$','SAME_OPERATION_SHARE_INTERVAL','41004NemeGc','replace','exports','_status$','requireSession','hasOwnProperty','getOwnPropertySymbols','LIVESHARE_TERMINATE','CollaborationEvent','forEach','event$','delete','1743700pJhRfX','onStarting','subscribe','unitId','svg','shouldShareOperation','stopFollowing','following','clsx','params','fill','find','operations','memberID','createInstance','Module','prototype','evenodd','_uiPartsService','Fragment','entries','pipe','SetScrollOperation','_reporters','useRef','registerComponent','merge','UniverCore','jsxs','send','displayName','_stopFollowing','IConfigService','728340IipGRj','UniverProCollaborationClient','LiveShareCoordinator','stringify','DesktopLiveShareController','executeCommand','_injector','div','onCommandExecuted','getInitialStates','path','getValue','_configService','0\x200\x2017\x2017','Stop\x20presenting','InsertSheetMutation','_mountLiveShare','registerInitialStateReporter','_handleOnline','getUnitId','IUIPartsService','@univerjs/sheets','dispose$','30280XonfNt','RxDisposable','has','UniverCollaborationClientPlugin','idle','random','http://www.w3.org/2000/svg','UniverProCollaboration','startFollowing','extend','propertyIsEnumerable','react','touchDependencies','_collabSession','SessionStatus','current','Dropdown','string'];_0x3f8c=function(){return _0x5578d9;};return _0x3f8c();}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@univerjs-pro/live-share",
|
|
3
|
-
"version": "0.8.0-nightly.
|
|
3
|
+
"version": "0.8.0-nightly.202505291607",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "UniverSheet normal ui-plugin-sheets",
|
|
6
6
|
"author": "DreamNum <developer@univer.ai>",
|
|
@@ -46,14 +46,14 @@
|
|
|
46
46
|
"rxjs": ">=7.0.0"
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@univerjs/icons": "^0.4.
|
|
50
|
-
"@univerjs/
|
|
51
|
-
"@univerjs-pro/collaboration": "0.8.0-nightly.
|
|
52
|
-
"@univerjs/
|
|
53
|
-
"@univerjs
|
|
54
|
-
"@univerjs/sheets
|
|
55
|
-
"@univerjs/
|
|
56
|
-
"@univerjs/ui": "0.8.0-nightly.
|
|
49
|
+
"@univerjs/icons": "^0.4.4",
|
|
50
|
+
"@univerjs-pro/collaboration": "0.8.0-nightly.202505291607",
|
|
51
|
+
"@univerjs-pro/collaboration-client": "0.8.0-nightly.202505291607",
|
|
52
|
+
"@univerjs/core": "0.8.0-nightly.202505291607",
|
|
53
|
+
"@univerjs/design": "0.8.0-nightly.202505291607",
|
|
54
|
+
"@univerjs/sheets": "0.8.0-nightly.202505291607",
|
|
55
|
+
"@univerjs/ui": "0.8.0-nightly.202505291607",
|
|
56
|
+
"@univerjs/sheets-ui": "0.8.0-nightly.202505291607"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"postcss": "^8.5.3",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"typescript": "^5.8.3",
|
|
64
64
|
"vite": "^6.3.5",
|
|
65
65
|
"vitest": "^3.1.4",
|
|
66
|
-
"@univerjs-infra/shared": "0.8.0-beta.
|
|
66
|
+
"@univerjs-infra/shared": "0.8.0-beta.1",
|
|
67
67
|
"@univerjs/protocol": "0.1.47-alpha.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|