@univerjs-pro/live-share 0.8.0-nightly.202506081606 → 0.8.0-nightly.202506091607

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cjs/index.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var _0x47e78f=_0x1592;(function(_0xc5dc05,_0x3947e2){var _0x55aa51=_0x1592,_0xb9de40=_0xc5dc05();while(!![]){try{var _0x1b1fac=-parseInt(_0x55aa51(0x186))/0x1+parseInt(_0x55aa51(0x1d7))/0x2+-parseInt(_0x55aa51(0x1b4))/0x3+parseInt(_0x55aa51(0x1d9))/0x4+parseInt(_0x55aa51(0x1d0))/0x5*(parseInt(_0x55aa51(0x1ba))/0x6)+-parseInt(_0x55aa51(0x14d))/0x7*(-parseInt(_0x55aa51(0x17e))/0x8)+parseInt(_0x55aa51(0x184))/0x9*(-parseInt(_0x55aa51(0x15e))/0xa);if(_0x1b1fac===_0x3947e2)break;else _0xb9de40['push'](_0xb9de40['shift']());}catch(_0x41309e){_0xb9de40['push'](_0xb9de40['shift']());}}}(_0x371c,0x85a09));var U=Object[_0x47e78f(0x1ed)],F=(_0x3c21ec,_0x1245ed,_0x5980ae)=>_0x1245ed in _0x3c21ec?U(_0x3c21ec,_0x1245ed,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5980ae}):_0x3c21ec[_0x1245ed]=_0x5980ae,v=(_0x39aed3,_0x166dd1,_0x4763cc)=>F(_0x39aed3,typeof _0x166dd1!=_0x47e78f(0x198)?_0x166dd1+'':_0x166dd1,_0x4763cc);function _0x1592(_0x1d5a95,_0x56f16f){var _0x371ce2=_0x371c();return _0x1592=function(_0x159279,_0x4ccd42){_0x159279=_0x159279-0x138;var _0x4df72e=_0x371ce2[_0x159279];return _0x4df72e;},_0x1592(_0x1d5a95,_0x56f16f);}Object[_0x47e78f(0x1ed)](exports,Symbol[_0x47e78f(0x1d8)],{'value':_0x47e78f(0x18f)});const m=require(_0x47e78f(0x145)),o=require(_0x47e78f(0x1a4)),C=require('@univerjs/sheets'),w=require(_0x47e78f(0x1f2)),p=require(_0x47e78f(0x1ee)),l=require(_0x47e78f(0x17a)),g=require(_0x47e78f(0x1d4)),f=require(_0x47e78f(0x13d)),_=require(_0x47e78f(0x1c5)),D=require(_0x47e78f(0x1a1)),b=require(_0x47e78f(0x17f)),$=_0x47e78f(0x1f3),x={};class O extends o['Disposable']{constructor(){var _0xa86d4c=_0x47e78f;super(...arguments),v(this,_0xa86d4c(0x1dc),new Set()),v(this,_0xa86d4c(0x1f0),new Set());}[_0x47e78f(0x1dd)](_0x2d1c4e){var _0x5ae2bc=_0x47e78f;return this[_0x5ae2bc(0x1dc)][_0x5ae2bc(0x208)](_0x2d1c4e),o[_0x5ae2bc(0x1b8)](()=>this[_0x5ae2bc(0x1dc)][_0x5ae2bc(0x195)](_0x2d1c4e));}[_0x47e78f(0x152)](_0x3f23d0){var _0x1b1d32=_0x47e78f;return this[_0x1b1d32(0x1f0)][_0x1b1d32(0x208)](_0x3f23d0),o[_0x1b1d32(0x1b8)](()=>this[_0x1b1d32(0x1f0)]['delete'](_0x3f23d0));}[_0x47e78f(0x218)](_0x1c65b3){var _0x2bb1f4=_0x47e78f;return this[_0x2bb1f4(0x1dc)][_0x2bb1f4(0x1d3)](_0x1c65b3);}['getInitialStates'](_0x125033){var _0x5dc849=_0x47e78f;return Array[_0x5dc849(0x158)](this[_0x5dc849(0x1f0)])['map'](_0x4806a1=>_0x4806a1(_0x125033));}}var H=Object['getOwnPropertyDescriptor'],V=(_0x381ef3,_0x2a8502,_0x436e0b,_0x57d5e5)=>{var _0x534975=_0x47e78f;for(var _0x264c1f=_0x57d5e5>0x1?void 0x0:_0x57d5e5?H(_0x2a8502,_0x436e0b):_0x2a8502,_0x329ea6=_0x381ef3[_0x534975(0x1de)]-0x1,_0x49789b;_0x329ea6>=0x0;_0x329ea6--)(_0x49789b=_0x381ef3[_0x329ea6])&&(_0x264c1f=_0x49789b(_0x264c1f)||_0x264c1f);return _0x264c1f;},k=(_0x2dfd78,_0x335af8)=>(_0x1c0e9a,_0x1957d4)=>_0x335af8(_0x1c0e9a,_0x1957d4,_0x2dfd78);let E=class extends o[_0x47e78f(0x207)]{constructor(_0x34b21b){var _0xe5a61d=_0x47e78f;super(),this[_0xe5a61d(0x20b)]=_0x34b21b,this[_0xe5a61d(0x1eb)]();}[_0x47e78f(0x1eb)](){var _0x2d9b9e=_0x47e78f;[w[_0x2d9b9e(0x190)]['id'],w[_0x2d9b9e(0x217)]['id'],C[_0x2d9b9e(0x1f8)]['id']][_0x2d9b9e(0x1f5)](_0x3d5078=>{var _0x47e4be=_0x2d9b9e;this['disposeWithMe'](this[_0x47e4be(0x20b)][_0x47e4be(0x1dd)](_0x3d5078));});}};E=V([k(0x0,o[_0x47e78f(0x213)](O))],E);var u=function(){var _0x9ab3d6=_0x47e78f;return u=Object['assign']||function(_0x517d07){var _0x202358=_0x1592;for(var _0x5e61e3,_0x5aace3=0x1,_0x6fdea4=arguments['length'];_0x5aace3<_0x6fdea4;_0x5aace3++){_0x5e61e3=arguments[_0x5aace3];for(var _0x108132 in _0x5e61e3)Object[_0x202358(0x14f)][_0x202358(0x168)][_0x202358(0x1e7)](_0x5e61e3,_0x108132)&&(_0x517d07[_0x108132]=_0x5e61e3[_0x108132]);}return _0x517d07;},u[_0x9ab3d6(0x19a)](this,arguments);},M=function(_0x165774,_0x166f92){var _0x4cbe81=_0x47e78f,_0x2122f3={};for(var _0x29fb2a in _0x165774)Object[_0x4cbe81(0x14f)]['hasOwnProperty'][_0x4cbe81(0x1e7)](_0x165774,_0x29fb2a)&&_0x166f92['indexOf'](_0x29fb2a)<0x0&&(_0x2122f3[_0x29fb2a]=_0x165774[_0x29fb2a]);if(_0x165774!=null&&typeof Object[_0x4cbe81(0x1bf)]=='function'){for(var _0x4a66e1=0x0,_0x29fb2a=Object[_0x4cbe81(0x1bf)](_0x165774);_0x4a66e1<_0x29fb2a[_0x4cbe81(0x1de)];_0x4a66e1++)_0x166f92['indexOf'](_0x29fb2a[_0x4a66e1])<0x0&&Object[_0x4cbe81(0x14f)][_0x4cbe81(0x1ec)]['call'](_0x165774,_0x29fb2a[_0x4a66e1])&&(_0x2122f3[_0x29fb2a[_0x4a66e1]]=_0x165774[_0x29fb2a[_0x4a66e1]]);}return _0x2122f3;},j=f['forwardRef'](function(_0x12ca38,_0x30f3ee){var _0x428b0a=_0x47e78f,_0x2048a3=_0x12ca38[_0x428b0a(0x161)],_0x1cb9ef=_0x12ca38['id'],_0x48bbe1=_0x12ca38['className'],_0x16415d=_0x12ca38[_0x428b0a(0x155)],_0x51ef9e=M(_0x12ca38,[_0x428b0a(0x161),'id',_0x428b0a(0x203),_0x428b0a(0x155)]),_0x5b3958=_0x428b0a(0x1f6)[_0x428b0a(0x19d)](_0x1cb9ef,'\x20')[_0x428b0a(0x19d)](_0x48bbe1||'')[_0x428b0a(0x1b0)](),_0x3f04f1=f[_0x428b0a(0x214)]('_'[_0x428b0a(0x19d)](G()));return y(_0x2048a3,''[_0x428b0a(0x19d)](_0x1cb9ef),{'defIds':_0x2048a3[_0x428b0a(0x14a)],'idSuffix':_0x3f04f1[_0x428b0a(0x146)]},u({'ref':_0x30f3ee,'className':_0x5b3958},_0x51ef9e),_0x16415d);});function y(_0x270cac,_0x2043c7,_0x24a231,_0x497aae,_0x1c84f6){var _0x15d68e=_0x47e78f;return f[_0x15d68e(0x16e)](_0x270cac[_0x15d68e(0x143)],u(u({'key':_0x2043c7},q(_0x270cac,_0x24a231,_0x1c84f6)),_0x497aae),(W(_0x270cac,_0x24a231)[_0x15d68e(0x1f4)]||[])[_0x15d68e(0x200)](function(_0x49ec6e,_0x3a4ac3){var _0xbfd7ca=_0x15d68e;return y(_0x49ec6e,''[_0xbfd7ca(0x19d)](_0x2043c7,'-')['concat'](_0x270cac[_0xbfd7ca(0x143)],'-')['concat'](_0x3a4ac3),_0x24a231,void 0x0,_0x1c84f6);}));}function q(_0x5978d9,_0x29ebd0,_0x4a1528){var _0x2aff7c=_0x47e78f,_0x174317=u({},_0x5978d9[_0x2aff7c(0x1cd)]);_0x4a1528!=null&&_0x4a1528['colorChannel1']&&_0x174317[_0x2aff7c(0x1da)]===_0x2aff7c(0x211)&&(_0x174317[_0x2aff7c(0x1da)]=_0x4a1528[_0x2aff7c(0x211)]),_0x5978d9[_0x2aff7c(0x143)]==='mask'&&_0x174317['id']&&(_0x174317['id']=_0x174317['id']+_0x29ebd0[_0x2aff7c(0x1b1)]),Object[_0x2aff7c(0x215)](_0x174317)[_0x2aff7c(0x1f5)](function(_0x51420b){var _0x5689a8=_0x2aff7c,_0x3e6232=_0x51420b[0x0],_0x2454e1=_0x51420b[0x1];_0x3e6232===_0x5689a8(0x1a6)&&typeof _0x2454e1==_0x5689a8(0x147)&&(_0x174317[_0x3e6232]=_0x2454e1[_0x5689a8(0x15b)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x29ebd0[_0x5689a8(0x1b1)],')')));});var _0x57e06a=_0x29ebd0[_0x2aff7c(0x14a)];return!_0x57e06a||_0x57e06a[_0x2aff7c(0x1de)]===0x0||(_0x5978d9['tag']==='use'&&_0x174317[_0x2aff7c(0x144)]&&(_0x174317[_0x2aff7c(0x144)]=_0x174317[_0x2aff7c(0x144)]+_0x29ebd0[_0x2aff7c(0x1b1)]),Object['entries'](_0x174317)[_0x2aff7c(0x1f5)](function(_0x5c3882){var _0x3e6a42=_0x2aff7c,_0x1706f0=_0x5c3882[0x0],_0x48ca68=_0x5c3882[0x1];typeof _0x48ca68=='string'&&(_0x174317[_0x1706f0]=_0x48ca68[_0x3e6a42(0x15b)](/url\(#(.*)\)/,_0x3e6a42(0x1b5)[_0x3e6a42(0x19d)](_0x29ebd0[_0x3e6a42(0x1b1)],')')));})),_0x174317;}function W(_0x35062c,_0x4882e1){var _0x856d62=_0x47e78f,_0x4159e8,_0x50798b=_0x4882e1[_0x856d62(0x14a)];return!_0x50798b||_0x50798b[_0x856d62(0x1de)]===0x0?_0x35062c:_0x35062c[_0x856d62(0x143)]===_0x856d62(0x1d2)&&(!((_0x4159e8=_0x35062c[_0x856d62(0x1f4)])===null||_0x4159e8===void 0x0)&&_0x4159e8['length'])?u(u({},_0x35062c),{'children':_0x35062c['children'][_0x856d62(0x200)](function(_0x155cf9){var _0x1b350f=_0x856d62;return typeof _0x155cf9[_0x1b350f(0x1cd)]['id']=='string'&&_0x50798b&&_0x50798b[_0x1b350f(0x139)](_0x155cf9['attrs']['id'])?u(u({},_0x155cf9),{'attrs':u(u({},_0x155cf9[_0x1b350f(0x1cd)]),{'id':_0x155cf9[_0x1b350f(0x1cd)]['id']+_0x4882e1[_0x1b350f(0x1b1)]})}):_0x155cf9;})}):_0x35062c;}function G(){var _0x3c3e54=_0x47e78f;return Math['random']()['toString'](0x24)[_0x3c3e54(0x210)](0x2,0x8);}j[_0x47e78f(0x1a0)]=_0x47e78f(0x183);var B={'tag':'svg','attrs':{'xmlns':_0x47e78f(0x170),'fill':'none','viewBox':_0x47e78f(0x1cf),'width':_0x47e78f(0x205),'height':'1em'},'children':[{'tag':_0x47e78f(0x13f),'attrs':{'fill':_0x47e78f(0x1d6),'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':_0x47e78f(0x13f),'attrs':{'fill':'currentColor','d':'M1.98682\x202.73096C1.98682\x202.17867\x202.43457\x201.73096\x202.98682\x201.73096H14.9868C15.5391\x201.73096\x2015.9868\x202.17867\x2015.9868\x202.73096V9.90105C15.9868\x2010.4533\x2015.5391\x2010.901\x2014.9868\x2010.901H9.62183V13.5577H12.9868C13.3375\x2013.5577\x2013.6218\x2013.842\x2013.6218\x2014.1927C13.6218\x2014.5434\x2013.3375\x2014.8277\x2012.9868\x2014.8277H4.98682C4.63611\x2014.8277\x204.35181\x2014.5434\x204.35181\x2014.1927C4.35181\x2013.842\x204.63611\x2013.5577\x204.98682\x2013.5577H8.35181V10.901H2.98682C2.43457\x2010.901\x201.98682\x2010.4533\x201.98682\x209.90105V2.73096ZM3.25684\x209.63106V3.00095H14.7168V9.63106H3.25684Z','fillRule':_0x47e78f(0x188),'clipRule':'evenodd'}}]},P=f[_0x47e78f(0x151)](function(_0x339b08,_0x2b3380){var _0x3d9a54=_0x47e78f;return f[_0x3d9a54(0x16e)](j,Object[_0x3d9a54(0x1c4)]({},_0x339b08,{'id':'live-share-icon','ref':_0x2b3380,'icon':B}));});P[_0x47e78f(0x1a0)]='LiveShareIcon';var Y=Object[_0x47e78f(0x1e2)],R=(_0x50ae67,_0x2a20eb,_0x3e6259,_0x1cf185)=>{for(var _0x3c41c9=_0x1cf185>0x1?void 0x0:_0x1cf185?Y(_0x2a20eb,_0x3e6259):_0x2a20eb,_0x416b23=_0x50ae67['length']-0x1,_0x4c1aee;_0x416b23>=0x0;_0x416b23--)(_0x4c1aee=_0x50ae67[_0x416b23])&&(_0x3c41c9=_0x4c1aee(_0x3c41c9)||_0x3c41c9);return _0x3c41c9;},S=(_0x1d8c4b,_0x2d7195)=>(_0x529fe7,_0x556a76)=>_0x2d7195(_0x529fe7,_0x556a76,_0x1d8c4b);exports[_0x47e78f(0x19b)]=class extends o['RxDisposable']{constructor(_0x180435,_0x423a8c,_0x3dde18){var _0x503582=_0x47e78f;super(),v(this,_0x503582(0x18d),new Map()),(this[_0x503582(0x154)]=_0x180435,this['_injector']=_0x423a8c,this[_0x503582(0x193)]=_0x3dde18,this[_0x503582(0x1eb)]());}async[_0x47e78f(0x182)](_0xefab5f){var _0x1b28b6=_0x47e78f;return this[_0x1b28b6(0x18d)]['has'](_0xefab5f)||await this['_startLiveShareCoordinator'](_0xefab5f),this[_0x1b28b6(0x18d)][_0x1b28b6(0x1b7)](_0xefab5f);}[_0x47e78f(0x1eb)](){var _0x16abb4=_0x47e78f;this[_0x16abb4(0x154)]['getTypeOfUnitAdded$'](o[_0x16abb4(0x1d1)][_0x16abb4(0x189)])[_0x16abb4(0x175)](b[_0x16abb4(0x169)](this[_0x16abb4(0x148)]))['subscribe'](async _0x27d754=>{var _0x5f1933=_0x16abb4;const _0x11dad4=_0x27d754[_0x5f1933(0x165)]();this[_0x5f1933(0x18d)][_0x5f1933(0x1d3)](_0x11dad4)||this['_startLiveShareCoordinator'](_0x11dad4);}),this['_univerInstanceService'][_0x16abb4(0x13e)](o['UniverInstanceType'][_0x16abb4(0x189)])[_0x16abb4(0x175)](b[_0x16abb4(0x169)](this[_0x16abb4(0x148)]))['subscribe'](_0xc46022=>{var _0x526476=_0x16abb4;const _0x3397a6=_0xc46022[_0x526476(0x165)](),_0x26bf4f=this[_0x526476(0x18d)]['get'](_0x3397a6);_0x26bf4f==null||_0x26bf4f[_0x526476(0x179)]();});}async[_0x47e78f(0x21c)](_0x247af2){var _0x3e39dd=_0x47e78f;const _0x31503c=await this[_0x3e39dd(0x193)][_0x3e39dd(0x162)](_0x247af2),_0x24ce2e=this[_0x3e39dd(0x1f1)]['createInstance'](exports[_0x3e39dd(0x18c)],_0x247af2,_0x31503c);return _0x24ce2e[_0x3e39dd(0x196)](),this['_entities']['set'](_0x247af2,_0x24ce2e),_0x24ce2e;}},exports[_0x47e78f(0x19b)]=R([S(0x0,o[_0x47e78f(0x1a7)]),S(0x1,o['Inject'](o['Injector'])),S(0x2,o[_0x47e78f(0x213)](m[_0x47e78f(0x1e1)]))],exports[_0x47e78f(0x19b)]);var h=(_0x55bf22=>(_0x55bf22['OFFLINE']=_0x47e78f(0x212),_0x55bf22['IDLE']=_0x47e78f(0x1c8),_0x55bf22[_0x47e78f(0x1ca)]=_0x47e78f(0x199),_0x55bf22[_0x47e78f(0x219)]='not-following',_0x55bf22[_0x47e78f(0x1ab)]='presenting',_0x55bf22))(h||{});const Z=_0x47e78f(0x166),J=0xc8;exports[_0x47e78f(0x18c)]=class extends o['RxDisposable']{constructor(_0x60e2af,_0x1c62bc,_0x3b7405,_0x46e503,_0x51f582){var _0x444ffb=_0x47e78f;super(),v(this,_0x444ffb(0x21d),new D[(_0x444ffb(0x20e))](_0x444ffb(0x1c8))),v(this,_0x444ffb(0x153),this[_0x444ffb(0x21d)][_0x444ffb(0x1ef)]()),v(this,'_init',!0x1),v(this,_0x444ffb(0x1e0),null),v(this,_0x444ffb(0x1a3),null),(this[_0x444ffb(0x19c)]=_0x60e2af,this[_0x444ffb(0x14c)]=_0x1c62bc,this['_configService']=_0x3b7405,this['_liveShareService']=_0x46e503,this[_0x444ffb(0x174)]=_0x51f582);}get[_0x47e78f(0x21e)](){var _0x3b2ce0=_0x47e78f;return this[_0x3b2ce0(0x21d)][_0x3b2ce0(0x17b)]();}[_0x47e78f(0x179)](){var _0x1d7414=_0x47e78f,_0x12cc23;(_0x12cc23=this[_0x1d7414(0x1e0)])==null||_0x12cc23['dispose'](),this[_0x1d7414(0x21d)]['next'](_0x1d7414(0x1c8)),this[_0x1d7414(0x21d)][_0x1d7414(0x16d)]();}[_0x47e78f(0x196)](){var _0x57b893=_0x47e78f;this[_0x57b893(0x1eb)]||(this['_init']=!0x0,this['_collabSession']['sessionStatus$'][_0x57b893(0x175)](b[_0x57b893(0x169)](this[_0x57b893(0x148)]))[_0x57b893(0x142)](_0x4da5cd=>{var _0x55076f=_0x57b893;switch(_0x4da5cd){case m['SessionStatus'][_0x55076f(0x191)]:this['_handleOffline']();break;case m[_0x55076f(0x176)][_0x55076f(0x1b9)]:this[_0x55076f(0x1df)]();break;}}),this['_collabSession']['event$'][_0x57b893(0x175)](b['takeUntil'](this[_0x57b893(0x148)]))[_0x57b893(0x142)](_0x3f084f=>{var _0x7b183=_0x57b893;const {eventID:_0x430f58}=_0x3f084f;switch(_0x430f58){case _['CollaborationEvent'][_0x7b183(0x192)]:this[_0x7b183(0x163)](_0x3f084f);break;case _[_0x7b183(0x216)][_0x7b183(0x15d)]:this[_0x7b183(0x167)](_0x3f084f);break;case _[_0x7b183(0x216)][_0x7b183(0x1b6)]:this[_0x7b183(0x1fb)]();break;case _[_0x7b183(0x216)]['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x3f084f);break;}}));}[_0x47e78f(0x17c)](){var _0x23dd84=_0x47e78f;this[_0x23dd84(0x14c)][_0x23dd84(0x141)]({'eventID':_[_0x23dd84(0x216)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this[_0x23dd84(0x14c)][_0x23dd84(0x204)]()}},this[_0x23dd84(0x19c)]);}[_0x47e78f(0x206)](){var _0x1fc0b4=_0x47e78f;this[_0x1fc0b4(0x21e)]===_0x1fc0b4(0x140)&&(this[_0x1fc0b4(0x21d)]['next'](_0x1fc0b4(0x1c8)),this['_collabSession']['send']({'eventID':_['CollaborationEvent'][_0x1fc0b4(0x1b6)],'data':{'unitID':this[_0x1fc0b4(0x19c)]}},this[_0x1fc0b4(0x19c)]));}[_0x47e78f(0x16f)](){var _0x127b1c=_0x47e78f;this['_status']===_0x127b1c(0x1bd)&&(this['_status$'][_0x127b1c(0x1e6)](_0x127b1c(0x199)),this[_0x127b1c(0x172)]());}['stopFollowing'](){var _0x3904a8=_0x47e78f;this['_status']==='following'&&this[_0x3904a8(0x1ae)]();}[_0x47e78f(0x163)](_0x58c3f8){var _0x4ee3e7=_0x47e78f;const {presenter:_0x2bcb4d}=_0x58c3f8['data'],_0x4f83c3=this['_collabSession']['getMemberID']();this['_presenter']=_0x2bcb4d,_0x2bcb4d===_0x4f83c3?(this[_0x4ee3e7(0x1ae)](),this['_startPresenting']()):this[_0x4ee3e7(0x21e)]!==_0x4ee3e7(0x1bd)&&(this[_0x4ee3e7(0x21f)](),this[_0x4ee3e7(0x172)]());}[_0x47e78f(0x1f7)](){var _0x34aa1f=_0x47e78f;const _0xc3f15f={'eventID':_['CollaborationEvent'][_0x34aa1f(0x21a)]};this[_0x34aa1f(0x14c)][_0x34aa1f(0x141)](_0xc3f15f,this[_0x34aa1f(0x19c)]);}[_0x47e78f(0x1fb)](){var _0x3bf569=_0x47e78f;this['_presenter']=null,this[_0x3bf569(0x21e)]!==_0x3bf569(0x140)&&this[_0x3bf569(0x1c0)]();}[_0x47e78f(0x20f)](_0x44933d){var _0x2ba520=_0x47e78f;if(this['_status']===_0x2ba520(0x199)&&this[_0x2ba520(0x1a3)]===_0x44933d[_0x2ba520(0x160)][_0x2ba520(0x1ac)]){const _0xafc0c3=_['parseProtocolChangeset'](_0x44933d[_0x2ba520(0x160)])[_0x2ba520(0x17d)][_0x2ba520(0x1fd)]()[_0x2ba520(0x14e)](_0x12ae8e=>_0x12ae8e['id']===C['InsertSheetMutation']['id']);if(_0xafc0c3){const _0x3a2781=_0xafc0c3['params'][_0x2ba520(0x185)],_0x167f0d=_0xafc0c3[_0x2ba520(0x181)][_0x2ba520(0x187)]['id'];setTimeout(()=>{var _0x274071=_0x2ba520;this[_0x274071(0x174)][_0x274071(0x18b)](C[_0x274071(0x1f8)]['id'],{'unitId':_0x3a2781,'subUnitId':_0x167f0d},{'fromCollab':!0x0});});}}}[_0x47e78f(0x1ea)](){var _0x59537c=_0x47e78f;this[_0x59537c(0x21d)][_0x59537c(0x1e6)](_0x59537c(0x140));const _0x20c507=new Map(),_0x6ebd99=this[_0x59537c(0x1e0)]=new o['DisposableCollection']();_0x6ebd99[_0x59537c(0x208)](o[_0x59537c(0x1b8)](()=>{var _0x111707=_0x59537c;_0x20c507[_0x111707(0x1f5)](_0x1749aa=>_0x1749aa[_0x111707(0x16d)]()),_0x20c507[_0x111707(0x1c3)]();})),_0x6ebd99[_0x59537c(0x208)](this['_commandService']['onCommandExecuted'](_0x3f4220=>{var _0x54fb9b=_0x59537c,_0x308ece;if(_0x3f4220[_0x54fb9b(0x15c)]!==o['CommandType']['OPERATION']||!this['_liveShareService'][_0x54fb9b(0x218)](_0x3f4220['id']))return;const {id:_0x243141}=_0x3f4220;let _0x281690;_0x20c507[_0x54fb9b(0x1d3)](_0x243141)?_0x281690=_0x20c507[_0x54fb9b(0x1b7)](_0x243141):(_0x281690=new D['Subject'](),_0x20c507[_0x54fb9b(0x16a)](_0x243141,_0x281690),_0x281690[_0x54fb9b(0x175)](b[_0x54fb9b(0x194)]((_0x308ece=this['_configService'][_0x54fb9b(0x202)](Z))!=null?_0x308ece:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x7d8c33=>{var _0x2ef2bb=_0x54fb9b;this[_0x2ef2bb(0x14c)][_0x2ef2bb(0x141)]({'eventID':_[_0x2ef2bb(0x216)][_0x2ef2bb(0x15d)],'data':{'unitID':this[_0x2ef2bb(0x19c)],'operations':{[_0x7d8c33['id']]:{'id':_0x7d8c33['id'],'params':JSON[_0x2ef2bb(0x178)](_0x7d8c33[_0x2ef2bb(0x181)])}}}},this['_unitID']);})),_0x281690[_0x54fb9b(0x1e6)](_0x3f4220);})),this[_0x59537c(0x20b)][_0x59537c(0x159)](this[_0x59537c(0x19c)])[_0x59537c(0x1f5)](_0x5c8356=>this[_0x59537c(0x14c)][_0x59537c(0x141)]({'eventID':_['CollaborationEvent']['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x59537c(0x19c)],'operations':{[_0x5c8356['id']]:{'id':_0x5c8356['id'],'params':JSON['stringify'](_0x5c8356[_0x59537c(0x181)])}}}},this[_0x59537c(0x19c)]));}[_0x47e78f(0x21f)](){var _0x48b1fa=_0x47e78f,_0x4b3707;this['_status$'][_0x48b1fa(0x1e6)]('idle'),(_0x4b3707=this[_0x48b1fa(0x1e0)])==null||_0x4b3707[_0x48b1fa(0x179)](),this[_0x48b1fa(0x1e0)]=null;}[_0x47e78f(0x172)](){var _0xbdfaee=_0x47e78f,_0x3c0065;(_0x3c0065=this[_0xbdfaee(0x1e0)])==null||_0x3c0065[_0xbdfaee(0x179)](),this[_0xbdfaee(0x21d)][_0xbdfaee(0x1e6)](_0xbdfaee(0x199));}[_0x47e78f(0x1c0)](){var _0x4948ec=_0x47e78f,_0x258c0f;this[_0x4948ec(0x21d)]['next'](_0x4948ec(0x1c8)),(_0x258c0f=this[_0x4948ec(0x1e0)])==null||_0x258c0f['dispose'](),this[_0x4948ec(0x1e0)]=null;}[_0x47e78f(0x1ae)](){var _0x44bc4b=_0x47e78f,_0x1b9d3d;this[_0x44bc4b(0x21d)][_0x44bc4b(0x1e6)]('not-following'),(_0x1b9d3d=this[_0x44bc4b(0x1e0)])==null||_0x1b9d3d['dispose']();}[_0x47e78f(0x167)](_0x74d37f){var _0x7dd73b=_0x47e78f;if(['presenting',_0x7dd73b(0x1bd),'offline'][_0x7dd73b(0x139)](this['_status'])||!_0x74d37f['data'][_0x7dd73b(0x1af)]||_0x74d37f['data']['presenter']===this[_0x7dd73b(0x14c)][_0x7dd73b(0x204)]())return;this[_0x7dd73b(0x21e)]==='idle'&&this[_0x7dd73b(0x172)]();const _0x1728c7=_0x74d37f[_0x7dd73b(0x160)][_0x7dd73b(0x1b2)];Object[_0x7dd73b(0x19f)](_0x1728c7)[_0x7dd73b(0x1f5)](_0x3dbdf9=>{var _0x53e43a=_0x7dd73b;this['_commandService'][_0x53e43a(0x18b)](_0x3dbdf9['id'],_0x3dbdf9[_0x53e43a(0x181)]?JSON[_0x53e43a(0x1a8)](_0x3dbdf9[_0x53e43a(0x181)]):null,{'fromCollab':!0x0});});}[_0x47e78f(0x13c)](){var _0x573c90=_0x47e78f,_0x2867a5;this[_0x573c90(0x21d)][_0x573c90(0x1e6)](_0x573c90(0x212)),(_0x2867a5=this[_0x573c90(0x1e0)])==null||_0x2867a5[_0x573c90(0x179)]();}['_handleOnline'](){var _0x4bf148=_0x47e78f;this['_status$'][_0x4bf148(0x1e6)](_0x4bf148(0x1c8)),this[_0x4bf148(0x1f7)]();}},exports[_0x47e78f(0x18c)]=R([S(0x2,o['IConfigService']),S(0x3,o['Inject'](O)),S(0x4,o['ICommandService'])],exports[_0x47e78f(0x18c)]);function A(){var _0x71d3f6=_0x47e78f;const _0x3edb0e=p[_0x71d3f6(0x149)](exports[_0x71d3f6(0x19b)]),_0x5a5a91=p[_0x71d3f6(0x149)](o['IUniverInstanceService']),_0x22a020=p[_0x71d3f6(0x1f9)](()=>_0x5a5a91[_0x71d3f6(0x19e)](o[_0x71d3f6(0x1d1)][_0x71d3f6(0x189)]),void 0x0,!0x1,[]),[_0x25a928,_0x5b0bef]=f[_0x71d3f6(0x1fe)](null),[_0x267f38,_0x4f722a]=f['useState'](h[_0x71d3f6(0x150)]),_0x52bd05=f[_0x71d3f6(0x214)](null);return f[_0x71d3f6(0x1e9)](()=>(_0x22a020&&_0x3edb0e['getLiveShareCoordinator'](_0x22a020['getUnitId']())[_0x71d3f6(0x1be)](_0x49a80b=>{var _0x43a1c6=_0x71d3f6;_0x5b0bef(_0x49a80b),_0x52bd05[_0x43a1c6(0x146)]=_0x49a80b[_0x43a1c6(0x153)]['subscribe'](_0x37f3d3=>{_0x4f722a(_0x37f3d3);});}),()=>{var _0x3c32d6=_0x71d3f6,_0x27eabb;(_0x27eabb=_0x52bd05['current'])==null||_0x27eabb[_0x3c32d6(0x1bc)](),_0x52bd05[_0x3c32d6(0x146)]=null;}),[_0x22a020,_0x3edb0e]),_0x25a928?l[_0x71d3f6(0x1e3)](g[_0x71d3f6(0x1e8)],{'align':'end','disabled':_0x267f38===h[_0x71d3f6(0x191)],'className':_0x71d3f6(0x1cc),'overlay':l[_0x71d3f6(0x1e3)](K,{'status':_0x267f38,'coordinator':_0x25a928}),'children':l['jsx']('button',{'className':g['clsx'](_0x71d3f6(0x1c2),{'univer-cursor-not-allowed':_0x267f38===h['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x267f38!==h[_0x71d3f6(0x191)]}),'type':_0x71d3f6(0x1c9),'children':l[_0x71d3f6(0x1e3)](P,{'className':_0x71d3f6(0x1b3)})})}):null;}function _0x371c(){var _0x230106=['delete','init','DependentOn','symbol','following','apply','LiveShareController','_unitID','concat','getCurrentTypeOfUnit$','values','displayName','rxjs','univer-w-full\x20univer-mb-3\x20univer-text-sm','_presenter','@univerjs/core','text','mask','IUniverInstanceService','parse','LiveShareStatus','_configService','PRESENTING','memberID','Fragment','_stopFollowing','presenter','trim','idSuffix','operations','univer-size-4','2000091PXLqcq','url(#$1','LIVESHARE_TERMINATE','get','toDisposable','ONLINE','4340448XLZxsg','connectInjector','unsubscribe','not-following','then','getOwnPropertySymbols','_beIdle','_uiPartsService','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','clear','assign','@univerjs-pro/collaboration','UniverCollaborationClientPlugin','_mountLiveShare','idle','button','FOLLOWING','touchDependencies','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','attrs','_config','0\x200\x2017\x2017','5bGEZrL','UniverInstanceType','defs','has','@univerjs/design','You\x27are\x20offline.','currentColor','1447288ncPDeH','toStringTag','2598172HXiQbL','fill','registerComponent','_sharedOperations','registerSharedOperation','length','_handleOnline','_commandDisposable','CollaborationSessionService','getOwnPropertyDescriptor','jsx','jsxs','LiveShareService','next','call','Dropdown','useEffect','_startPresenting','_init','propertyIsEnumerable','defineProperty','@univerjs/ui','asObservable','_reporters','_injector','@univerjs/sheets-ui','live-share.config','children','forEach','univerjs-icon\x20univerjs-icon-','_fetchOperations','SetWorksheetActiveOperation','useObservable','IUIPartsService','_handleTerminate','disposeWithMe','reverse','useState','Stop\x20presenting','map','DesktopLiveShareController','getConfig','className','getMemberID','1em','stopPresenting','Disposable','add','stopFollowing','Button','_liveShareService','UNIVER_UNKNOWN','mergeOverrideWithDependencies','BehaviorSubject','_handleNewChangeSets','substring','colorChannel1','offline','Inject','useRef','entries','CollaborationEvent','SetScrollOperation','shouldShareOperation','NOT_FOLLOWING','LIVESHARE_FETCH_OPERATIONS','UNIVER_LIVE_SHARE_PLUGIN','_startLiveShareCoordinator','_status$','_status','_stopPresenting','onRendered','includes','setConfig','BuiltInUIPart','_handleOffline','react','getTypeOfUnitDisposed$','path','presenting','send','subscribe','tag','xlink:href','@univerjs-pro/collaboration-client','current','string','dispose$','useDependency','defIds','merge','_collabSession','7DmrBRq','find','prototype','IDLE','forwardRef','registerInitialStateReporter','status$','_univerInstanceService','extend','Start\x20following','LiveShare','from','getInitialStates','You\x27re\x20presenting\x20the\x20document','replace','type','LIVESHARE_OPERATION','1290guYcLo','div','data','icon','requireSession','_handleNewHost','Stop\x20following','getUnitId','SAME_OPERATION_SHARE_INTERVAL','_handleOperation','hasOwnProperty','takeUntil','set','IConfigService','UniverLiveSharePlugin','complete','createElement','startFollowing','http://www.w3.org/2000/svg','HEADER_MENU','_startFollowing','Start','_commandService','pipe','SessionStatus','Present\x20this\x20document','stringify','dispose','react/jsx-runtime','getValue','tryStartPresenting','mutations','6191224eiziCw','rxjs/operators','Injector','params','getLiveShareCoordinator','UniverIcon','109161JWaEep','unitId','91823IRHlgP','sheet','evenodd','UNIVER_SHEET','onStarting','executeCommand','LiveShareCoordinator','_entities','You\x27re\x20following\x20the\x20presenter','Module','SetZoomRatioOperation','OFFLINE','LIVESHARE_NEW_HOST','_collabSessionService','throttleTime'];_0x371c=function(){return _0x230106;};return _0x371c();}function K(_0x5eb0f5){var _0x3c5408=_0x47e78f;const {status:_0x24e456,coordinator:_0x45fc6c}=_0x5eb0f5;switch(_0x24e456){case h[_0x3c5408(0x150)]:return l['jsx'](z,{'coordinator':_0x45fc6c});case h['FOLLOWING']:return l[_0x3c5408(0x1e3)](Q,{'coordinator':_0x45fc6c});case h[_0x3c5408(0x219)]:return l['jsx'](X,{'coordinator':_0x45fc6c});case h[_0x3c5408(0x191)]:return l[_0x3c5408(0x1e3)](te,{});case h['PRESENTING']:return l[_0x3c5408(0x1e3)](ee,{'coordinator':_0x45fc6c});default:return null;}}function z(_0x11fc6d){var _0x275bb0=_0x47e78f;const {coordinator:_0x328d6c}=_0x11fc6d;return l['jsxs'](l[_0x275bb0(0x1ad)],{'children':[l[_0x275bb0(0x1e3)](_0x275bb0(0x15f),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x275bb0(0x177)}),l[_0x275bb0(0x1e3)](g[_0x275bb0(0x20a)],{'onClick':()=>_0x328d6c[_0x275bb0(0x17c)](),'children':_0x275bb0(0x173)})]});}function Q(_0x402c7a){var _0xaa3037=_0x47e78f;const {coordinator:_0x67d749}=_0x402c7a;return l[_0xaa3037(0x1e4)](l[_0xaa3037(0x1ad)],{'children':[l[_0xaa3037(0x1e3)](_0xaa3037(0x15f),{'className':_0xaa3037(0x1a2),'children':_0xaa3037(0x18e)}),l[_0xaa3037(0x1e3)](g[_0xaa3037(0x20a)],{'onClick':()=>_0x67d749[_0xaa3037(0x209)](),'children':_0xaa3037(0x164)})]});}function X(_0x22fff6){var _0x3078de=_0x47e78f;const {coordinator:_0x47ef37}=_0x22fff6;return l[_0x3078de(0x1e4)](l[_0x3078de(0x1ad)],{'children':[l['jsx'](_0x3078de(0x15f),{'className':_0x3078de(0x1a2),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x3078de(0x1e3)](g['Button'],{'variant':_0x3078de(0x1a5),'onClick':()=>_0x47ef37[_0x3078de(0x16f)](),'children':_0x3078de(0x156)})]});}function ee(_0x3da6c1){var _0x10895f=_0x47e78f;const {coordinator:_0x2bd2ca}=_0x3da6c1;return l[_0x10895f(0x1e4)](l['Fragment'],{'children':[l[_0x10895f(0x1e3)](_0x10895f(0x15f),{'className':_0x10895f(0x1a2),'children':_0x10895f(0x15a)}),l['jsx'](g['Button'],{'variant':'default','onClick':()=>_0x2bd2ca[_0x10895f(0x206)](),'children':_0x10895f(0x1ff)})]});}function te(){var _0x136afc=_0x47e78f;return l[_0x136afc(0x1e3)](l['Fragment'],{'children':_0x136afc(0x1d5)});}var ie=Object[_0x47e78f(0x1e2)],ne=(_0x130cea,_0x1a65f1,_0x462479,_0x2dc0d4)=>{for(var _0x40e1cb=_0x2dc0d4>0x1?void 0x0:_0x2dc0d4?ie(_0x1a65f1,_0x462479):_0x1a65f1,_0x970da8=_0x130cea['length']-0x1,_0x207dee;_0x970da8>=0x0;_0x970da8--)(_0x207dee=_0x130cea[_0x970da8])&&(_0x40e1cb=_0x207dee(_0x40e1cb)||_0x40e1cb);return _0x40e1cb;},L=(_0x3141d1,_0x377f27)=>(_0x1c0627,_0x5725b8)=>_0x377f27(_0x1c0627,_0x5725b8,_0x3141d1);exports[_0x47e78f(0x201)]=class extends o[_0x47e78f(0x207)]{constructor(_0x2f2e0d,_0x4ff8c3){var _0x13cc14=_0x47e78f;super(),this[_0x13cc14(0x1f1)]=_0x2f2e0d,this[_0x13cc14(0x1c1)]=_0x4ff8c3,this[_0x13cc14(0x1c7)]();}[_0x47e78f(0x1c7)](){var _0x4747ef=_0x47e78f;this[_0x4747ef(0x1fc)](this[_0x4747ef(0x1c1)][_0x4747ef(0x1db)](p[_0x4747ef(0x13b)][_0x4747ef(0x171)],()=>p[_0x4747ef(0x1bb)](A,this[_0x4747ef(0x1f1)])));}},exports[_0x47e78f(0x201)]=ne([L(0x0,o[_0x47e78f(0x213)](o[_0x47e78f(0x180)])),L(0x1,p[_0x47e78f(0x1fa)])],exports[_0x47e78f(0x201)]);var re=Object[_0x47e78f(0x1ed)],se=Object[_0x47e78f(0x1e2)],oe=(_0x5da30f,_0x1b71a2,_0x23b377)=>_0x1b71a2 in _0x5da30f?re(_0x5da30f,_0x1b71a2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x23b377}):_0x5da30f[_0x1b71a2]=_0x23b377,ae=(_0x542533,_0x2f203e,_0x1f7fca,_0x2d2618)=>{for(var _0x5e3000=_0x2d2618>0x1?void 0x0:_0x2d2618?se(_0x2f203e,_0x1f7fca):_0x2f203e,_0x55f89e=_0x542533['length']-0x1,_0x123f0d;_0x55f89e>=0x0;_0x55f89e--)(_0x123f0d=_0x542533[_0x55f89e])&&(_0x5e3000=_0x123f0d(_0x5e3000)||_0x5e3000);return _0x5e3000;},N=(_0x3e7a79,_0x124b3b)=>(_0x2913d2,_0x3e33d3)=>_0x124b3b(_0x2913d2,_0x3e33d3,_0x3e7a79),T=(_0x12cc29,_0x4a877f,_0x68caa4)=>oe(_0x12cc29,typeof _0x4a877f!='symbol'?_0x4a877f+'':_0x4a877f,_0x68caa4);const le=_0x47e78f(0x21b);exports[_0x47e78f(0x16c)]=class extends o['Plugin']{constructor(_0x283bb0=x,_0x13a465,_0x2e6efc){var _0x50436e=_0x47e78f;super(),this[_0x50436e(0x1ce)]=_0x283bb0,this['_injector']=_0x13a465,this[_0x50436e(0x1aa)]=_0x2e6efc;const {..._0x398007}=o[_0x50436e(0x14b)]({},x,this[_0x50436e(0x1ce)]);this[_0x50436e(0x1aa)][_0x50436e(0x13a)]($,_0x398007);}[_0x47e78f(0x18a)](){var _0x486d73=_0x47e78f;o['registerDependencies'](this[_0x486d73(0x1f1)],o[_0x486d73(0x20d)]([[O],[exports[_0x486d73(0x19b)]],[E],[exports['DesktopLiveShareController']]],this[_0x486d73(0x1ce)]['override'])),o[_0x486d73(0x1cb)](this['_injector'],[[E]]);}[_0x47e78f(0x138)](){var _0x509053=_0x47e78f;o[_0x509053(0x1cb)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},T(exports['UniverLiveSharePlugin'],_0x47e78f(0x15c),o['UniverInstanceType'][_0x47e78f(0x20c)]),T(exports['UniverLiveSharePlugin'],'pluginName',le),exports[_0x47e78f(0x16c)]=ae([o[_0x47e78f(0x197)](m[_0x47e78f(0x1c6)]),N(0x1,o[_0x47e78f(0x213)](o[_0x47e78f(0x180)])),N(0x2,o[_0x47e78f(0x16b)])],exports['UniverLiveSharePlugin']),exports[_0x47e78f(0x157)]=A,exports[_0x47e78f(0x1e5)]=O,exports[_0x47e78f(0x1a9)]=h;
1
+ 'use strict';var _0x30436a=_0x209c;(function(_0x5bec24,_0x402ec5){var _0x34d8ea=_0x209c,_0x45b3e1=_0x5bec24();while(!![]){try{var _0x202455=-parseInt(_0x34d8ea(0x170))/0x1+parseInt(_0x34d8ea(0x142))/0x2*(parseInt(_0x34d8ea(0xf9))/0x3)+-parseInt(_0x34d8ea(0x110))/0x4*(parseInt(_0x34d8ea(0x102))/0x5)+-parseInt(_0x34d8ea(0x129))/0x6*(-parseInt(_0x34d8ea(0xf8))/0x7)+-parseInt(_0x34d8ea(0xe4))/0x8*(parseInt(_0x34d8ea(0x15f))/0x9)+-parseInt(_0x34d8ea(0x116))/0xa*(parseInt(_0x34d8ea(0x159))/0xb)+-parseInt(_0x34d8ea(0xd0))/0xc*(-parseInt(_0x34d8ea(0xc3))/0xd);if(_0x202455===_0x402ec5)break;else _0x45b3e1['push'](_0x45b3e1['shift']());}catch(_0x274524){_0x45b3e1['push'](_0x45b3e1['shift']());}}}(_0x80ec,0x99847));var U=Object[_0x30436a(0xe2)],F=(_0x2b3ca2,_0x301628,_0x2db90e)=>_0x301628 in _0x2b3ca2?U(_0x2b3ca2,_0x301628,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2db90e}):_0x2b3ca2[_0x301628]=_0x2db90e,v=(_0x41cf9c,_0xb22492,_0xcacbe2)=>F(_0x41cf9c,typeof _0xb22492!=_0x30436a(0x173)?_0xb22492+'':_0xb22492,_0xcacbe2);Object[_0x30436a(0xe2)](exports,Symbol['toStringTag'],{'value':_0x30436a(0xdd)});const m=require(_0x30436a(0x17a)),o=require('@univerjs/core'),C=require('@univerjs/sheets'),w=require(_0x30436a(0xdf)),p=require(_0x30436a(0x163)),l=require(_0x30436a(0xf4)),g=require('@univerjs/design'),f=require(_0x30436a(0xd6)),_=require(_0x30436a(0xcb)),D=require(_0x30436a(0x186)),b=require(_0x30436a(0x185)),$=_0x30436a(0xb6),x={};class O extends o['Disposable']{constructor(){var _0x5c4f61=_0x30436a;super(...arguments),v(this,'_sharedOperations',new Set()),v(this,_0x5c4f61(0x17e),new Set());}['registerSharedOperation'](_0x1b7d72){var _0xbf342=_0x30436a;return this[_0xbf342(0xcc)][_0xbf342(0x153)](_0x1b7d72),o[_0xbf342(0x123)](()=>this[_0xbf342(0xcc)][_0xbf342(0x113)](_0x1b7d72));}['registerInitialStateReporter'](_0x1807c5){var _0x1c018c=_0x30436a;return this[_0x1c018c(0x17e)]['add'](_0x1807c5),o['toDisposable'](()=>this[_0x1c018c(0x17e)]['delete'](_0x1807c5));}[_0x30436a(0x109)](_0x2d8837){var _0x22b652=_0x30436a;return this['_sharedOperations'][_0x22b652(0xde)](_0x2d8837);}['getInitialStates'](_0x132ab3){var _0x1a7713=_0x30436a;return Array[_0x1a7713(0x16b)](this[_0x1a7713(0x17e)])[_0x1a7713(0x137)](_0x1b5cfd=>_0x1b5cfd(_0x132ab3));}}var H=Object[_0x30436a(0x124)],V=(_0x342ca1,_0x2071c2,_0x5ea10a,_0x1aae48)=>{var _0x30d517=_0x30436a;for(var _0xa2a12a=_0x1aae48>0x1?void 0x0:_0x1aae48?H(_0x2071c2,_0x5ea10a):_0x2071c2,_0x4a7aa9=_0x342ca1[_0x30d517(0x17f)]-0x1,_0x378214;_0x4a7aa9>=0x0;_0x4a7aa9--)(_0x378214=_0x342ca1[_0x4a7aa9])&&(_0xa2a12a=_0x378214(_0xa2a12a)||_0xa2a12a);return _0xa2a12a;},k=(_0x8e5b08,_0x4c267f)=>(_0x16a031,_0x5c03c8)=>_0x4c267f(_0x16a031,_0x5c03c8,_0x8e5b08);let E=class extends o[_0x30436a(0x14e)]{constructor(_0x5ad0da){var _0x55445f=_0x30436a;super(),this[_0x55445f(0x145)]=_0x5ad0da,this[_0x55445f(0x15b)]();}[_0x30436a(0x15b)](){var _0x142a68=_0x30436a;[w[_0x142a68(0x12b)]['id'],w['SetScrollOperation']['id'],C[_0x142a68(0xe6)]['id']][_0x142a68(0x162)](_0x395893=>{var _0x245ae6=_0x142a68;this['disposeWithMe'](this['_liveShareService'][_0x245ae6(0xc0)](_0x395893));});}};E=V([k(0x0,o['Inject'](O))],E);function _0x209c(_0x542bb8,_0x314347){var _0x80ec41=_0x80ec();return _0x209c=function(_0x209c22,_0x4c2584){_0x209c22=_0x209c22-0xaf;var _0x28824c=_0x80ec41[_0x209c22];return _0x28824c;},_0x209c(_0x542bb8,_0x314347);}var u=function(){var _0x3e551b=_0x30436a;return u=Object['assign']||function(_0x20aab2){var _0xb23847=_0x209c;for(var _0x35d1b7,_0x32d33d=0x1,_0x356019=arguments['length'];_0x32d33d<_0x356019;_0x32d33d++){_0x35d1b7=arguments[_0x32d33d];for(var _0x2dd274 in _0x35d1b7)Object['prototype'][_0xb23847(0xc7)][_0xb23847(0xb2)](_0x35d1b7,_0x2dd274)&&(_0x20aab2[_0x2dd274]=_0x35d1b7[_0x2dd274]);}return _0x20aab2;},u[_0x3e551b(0x193)](this,arguments);},M=function(_0x4c5bd7,_0x38c1c7){var _0x104425=_0x30436a,_0x13a05d={};for(var _0x110555 in _0x4c5bd7)Object[_0x104425(0x122)][_0x104425(0xc7)]['call'](_0x4c5bd7,_0x110555)&&_0x38c1c7['indexOf'](_0x110555)<0x0&&(_0x13a05d[_0x110555]=_0x4c5bd7[_0x110555]);if(_0x4c5bd7!=null&&typeof Object[_0x104425(0x195)]==_0x104425(0x158)){for(var _0xcf74c2=0x0,_0x110555=Object[_0x104425(0x195)](_0x4c5bd7);_0xcf74c2<_0x110555[_0x104425(0x17f)];_0xcf74c2++)_0x38c1c7['indexOf'](_0x110555[_0xcf74c2])<0x0&&Object[_0x104425(0x122)][_0x104425(0x144)][_0x104425(0xb2)](_0x4c5bd7,_0x110555[_0xcf74c2])&&(_0x13a05d[_0x110555[_0xcf74c2]]=_0x4c5bd7[_0x110555[_0xcf74c2]]);}return _0x13a05d;},j=f['forwardRef'](function(_0x1ae0d7,_0x343da4){var _0x2a73d7=_0x30436a,_0x34a10f=_0x1ae0d7[_0x2a73d7(0x178)],_0x54c2f2=_0x1ae0d7['id'],_0x167e07=_0x1ae0d7[_0x2a73d7(0xe7)],_0x36e343=_0x1ae0d7[_0x2a73d7(0x183)],_0x2e4dc3=M(_0x1ae0d7,[_0x2a73d7(0x178),'id',_0x2a73d7(0xe7),_0x2a73d7(0x183)]),_0x1436a9=_0x2a73d7(0xd3)['concat'](_0x54c2f2,'\x20')[_0x2a73d7(0x16e)](_0x167e07||'')[_0x2a73d7(0x10d)](),_0x3080c9=f['useRef']('_'[_0x2a73d7(0x16e)](G()));return y(_0x34a10f,''['concat'](_0x54c2f2),{'defIds':_0x34a10f[_0x2a73d7(0xb0)],'idSuffix':_0x3080c9[_0x2a73d7(0x12a)]},u({'ref':_0x343da4,'className':_0x1436a9},_0x2e4dc3),_0x36e343);});function y(_0x1f4f0f,_0x3ea235,_0x40583d,_0x4d40b6,_0x376897){var _0x24e95a=_0x30436a;return f['createElement'](_0x1f4f0f[_0x24e95a(0xc1)],u(u({'key':_0x3ea235},q(_0x1f4f0f,_0x40583d,_0x376897)),_0x4d40b6),(W(_0x1f4f0f,_0x40583d)[_0x24e95a(0xb5)]||[])[_0x24e95a(0x137)](function(_0x3d7446,_0x1b8f7f){var _0x576550=_0x24e95a;return y(_0x3d7446,''[_0x576550(0x16e)](_0x3ea235,'-')[_0x576550(0x16e)](_0x1f4f0f['tag'],'-')[_0x576550(0x16e)](_0x1b8f7f),_0x40583d,void 0x0,_0x376897);}));}function q(_0x32c30d,_0x1f6aa6,_0x2eb731){var _0x426f51=_0x30436a,_0x5c246f=u({},_0x32c30d[_0x426f51(0x175)]);_0x2eb731!=null&&_0x2eb731[_0x426f51(0x131)]&&_0x5c246f[_0x426f51(0xec)]===_0x426f51(0x131)&&(_0x5c246f[_0x426f51(0xec)]=_0x2eb731[_0x426f51(0x131)]),_0x32c30d[_0x426f51(0xc1)]==='mask'&&_0x5c246f['id']&&(_0x5c246f['id']=_0x5c246f['id']+_0x1f6aa6['idSuffix']),Object[_0x426f51(0x151)](_0x5c246f)[_0x426f51(0x162)](function(_0x5548df){var _0x25546c=_0x426f51,_0x240754=_0x5548df[0x0],_0x49bd09=_0x5548df[0x1];_0x240754==='mask'&&typeof _0x49bd09==_0x25546c(0xaf)&&(_0x5c246f[_0x240754]=_0x49bd09['replace'](/url\(#(.*)\)/,_0x25546c(0xfd)['concat'](_0x1f6aa6[_0x25546c(0xbc)],')')));});var _0x3d00ae=_0x1f6aa6['defIds'];return!_0x3d00ae||_0x3d00ae[_0x426f51(0x17f)]===0x0||(_0x32c30d[_0x426f51(0xc1)]==='use'&&_0x5c246f['xlink:href']&&(_0x5c246f[_0x426f51(0xbf)]=_0x5c246f[_0x426f51(0xbf)]+_0x1f6aa6[_0x426f51(0xbc)]),Object[_0x426f51(0x151)](_0x5c246f)['forEach'](function(_0x517eba){var _0x20acf0=_0x426f51,_0x479575=_0x517eba[0x0],_0x100761=_0x517eba[0x1];typeof _0x100761==_0x20acf0(0xaf)&&(_0x5c246f[_0x479575]=_0x100761[_0x20acf0(0x119)](/url\(#(.*)\)/,_0x20acf0(0xfd)[_0x20acf0(0x16e)](_0x1f6aa6[_0x20acf0(0xbc)],')')));})),_0x5c246f;}function W(_0x492665,_0x193c79){var _0x45596d=_0x30436a,_0x2cdef5,_0x48bda9=_0x193c79[_0x45596d(0xb0)];return!_0x48bda9||_0x48bda9[_0x45596d(0x17f)]===0x0?_0x492665:_0x492665[_0x45596d(0xc1)]===_0x45596d(0x171)&&(!((_0x2cdef5=_0x492665['children'])===null||_0x2cdef5===void 0x0)&&_0x2cdef5['length'])?u(u({},_0x492665),{'children':_0x492665['children'][_0x45596d(0x137)](function(_0x22f745){var _0x55cb68=_0x45596d;return typeof _0x22f745[_0x55cb68(0x175)]['id']==_0x55cb68(0xaf)&&_0x48bda9&&_0x48bda9['includes'](_0x22f745['attrs']['id'])?u(u({},_0x22f745),{'attrs':u(u({},_0x22f745[_0x55cb68(0x175)]),{'id':_0x22f745[_0x55cb68(0x175)]['id']+_0x193c79[_0x55cb68(0xbc)]})}):_0x22f745;})}):_0x492665;}function G(){var _0x345a03=_0x30436a;return Math['random']()[_0x345a03(0x197)](0x24)[_0x345a03(0x157)](0x2,0x8);}j[_0x30436a(0xee)]='UniverIcon';function _0x80ec(){var _0x14f55a=['_entities','getUnitId','delete','Injector','onCommandExecuted','350bYyruY','getLiveShareCoordinator','IConfigService','replace','OPERATION','following','You\x27re\x20presenting\x20the\x20document','UNIVER_SHEET','_handleTerminate','0\x200\x2017\x2017','NOT_FOLLOWING','status$','prototype','toDisposable','getOwnPropertyDescriptor','univer-w-full\x20univer-mb-3\x20univer-text-sm','clear','SessionStatus','LIVESHARE_REQUEST_HOST','2932086oBBtDm','current','SetZoomRatioOperation','jsx','pipe','onStarting','_stopFollowing','_univerInstanceService','colorChannel1','values','DesktopLiveShareController','init','_configService','LIVESHARE_FETCH_OPERATIONS','map','memberID','PRESENTING','Plugin','LIVESHARE_OPERATION','_commandDisposable','params','UNIVER_LIVE_SHARE_PLUGIN','OFFLINE','tryStartPresenting','throttleTime','8MgHXuo','http://www.w3.org/2000/svg','propertyIsEnumerable','_liveShareService','LIVESHARE_NEW_HOST','Present\x20this\x20document','send','_mountLiveShare','_startPresenting','mutations','set','end','Disposable','button','BuiltInUIPart','entries','getConfig','add','_handleOnline','RxDisposable','requireSession','substring','function','134167FHfIlh','DependentOn','_init','default','currentColor','UniverInstanceType','29583wDrkCO','Stop\x20presenting','_injector','forEach','@univerjs/ui','live-share-icon','getCurrentTypeOfUnit$','_handleOffline','Inject','presenting','_startLiveShareCoordinator','CollaborationSessionService','from','next','LiveShare','concat','_stopPresenting','591930mCEvRj','defs','asObservable','symbol','SAME_OPERATION_SHARE_INTERVAL','attrs','takeUntil','_startFollowing','icon','_status','@univerjs-pro/collaboration-client','IDLE','find','get','_reporters','length','BehaviorSubject','LiveShareCoordinator','offline','extend','getMemberID','rxjs/operators','rxjs','pluginName','getValue','Start','subscribe','event$','stopPresenting','getTypeOfUnitAdded$','UniverCollaborationClientPlugin','Dropdown','override','getTypeOfUnitDisposed$','presenter','apply','_uiPartsService','getOwnPropertySymbols','FOLLOWING','toString','string','defIds','operations','call','CommandType','univer-size-4','children','live-share.config','complete','disposeWithMe','_beIdle','svg','Fragment','idSuffix','You\x27re\x20following\x20the\x20presenter','IUniverInstanceService','xlink:href','registerSharedOperation','tag','_handleOperation','30856059PQXSXR','sheet','LIVESHARE_TERMINATE','executeCommand','hasOwnProperty','_config','LiveShareIcon','none','@univerjs-pro/collaboration','_sharedOperations','dispose','CollaborationEvent','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','12kKEAET','DisposableCollection','_handleNewHost','univerjs-icon\x20univerjs-icon-','useState','LiveShareController','react','div','_commandService','touchDependencies','jsxs','not-following','path','Module','has','@univerjs/sheets-ui','connectInjector','_presenter','defineProperty','_collabSession','2864PRudVz','UniverLiveSharePlugin','SetWorksheetActiveOperation','className','ICommandService','evenodd','ONLINE','dispose$','fill','createInstance','displayName','getInitialStates','_status$','registerDependencies','LiveShareStatus','forwardRef','react/jsx-runtime','setConfig','stopFollowing','Subject','7VwgZGJ','756816QBgCEs','Start\x20following','then','idle','url(#$1','useObservable','type','You\x27are\x20offline.','_handleNewChangeSets','105ESAaSg','data','assign','Button','NEW_CHANGESETS','stringify','mergeOverrideWithDependencies','shouldShareOperation','startFollowing','1em','unitId','trim','_unitID','unsubscribe','199416tBlYzB'];_0x80ec=function(){return _0x14f55a;};return _0x80ec();}var B={'tag':_0x30436a(0xba),'attrs':{'xmlns':_0x30436a(0x143),'fill':_0x30436a(0xca),'viewBox':_0x30436a(0x11f),'width':'1em','height':_0x30436a(0x10b)},'children':[{'tag':_0x30436a(0xdc),'attrs':{'fill':_0x30436a(0x15d),'d':_0x30436a(0xcf)}},{'tag':_0x30436a(0xdc),'attrs':{'fill':_0x30436a(0x15d),'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':_0x30436a(0xe9),'clipRule':_0x30436a(0xe9)}}]},P=f[_0x30436a(0xf3)](function(_0x33fc37,_0x5c6668){var _0x3b5769=_0x30436a;return f['createElement'](j,Object[_0x3b5769(0x104)]({},_0x33fc37,{'id':_0x3b5769(0x164),'ref':_0x5c6668,'icon':B}));});P[_0x30436a(0xee)]=_0x30436a(0xc9);var Y=Object[_0x30436a(0x124)],R=(_0xa35d07,_0x5d1d18,_0x59de0e,_0x54586a)=>{var _0x59ccbe=_0x30436a;for(var _0x147a32=_0x54586a>0x1?void 0x0:_0x54586a?Y(_0x5d1d18,_0x59de0e):_0x5d1d18,_0x363a00=_0xa35d07[_0x59ccbe(0x17f)]-0x1,_0x9b3272;_0x363a00>=0x0;_0x363a00--)(_0x9b3272=_0xa35d07[_0x363a00])&&(_0x147a32=_0x9b3272(_0x147a32)||_0x147a32);return _0x147a32;},S=(_0x5f32fd,_0xd12b3a)=>(_0x19381c,_0x566534)=>_0xd12b3a(_0x19381c,_0x566534,_0x5f32fd);exports[_0x30436a(0xd5)]=class extends o[_0x30436a(0x155)]{constructor(_0x5bc1fe,_0x288030,_0x5e9c3d){var _0x156d8d=_0x30436a;super(),v(this,'_entities',new Map()),(this[_0x156d8d(0x130)]=_0x5bc1fe,this['_injector']=_0x288030,this['_collabSessionService']=_0x5e9c3d,this[_0x156d8d(0x15b)]());}async[_0x30436a(0x117)](_0x24afc1){var _0x5762df=_0x30436a;return this[_0x5762df(0x111)][_0x5762df(0xde)](_0x24afc1)||await this['_startLiveShareCoordinator'](_0x24afc1),this[_0x5762df(0x111)][_0x5762df(0x17d)](_0x24afc1);}[_0x30436a(0x15b)](){var _0x305638=_0x30436a;this['_univerInstanceService'][_0x305638(0x18d)](o[_0x305638(0x15e)][_0x305638(0x11d)])[_0x305638(0x12d)](b[_0x305638(0x176)](this[_0x305638(0xeb)]))[_0x305638(0x18a)](async _0x4fb803=>{var _0xf13e77=_0x305638;const _0x1c766e=_0x4fb803['getUnitId']();this[_0xf13e77(0x111)]['has'](_0x1c766e)||this[_0xf13e77(0x169)](_0x1c766e);}),this[_0x305638(0x130)][_0x305638(0x191)](o[_0x305638(0x15e)]['UNIVER_SHEET'])[_0x305638(0x12d)](b['takeUntil'](this['dispose$']))[_0x305638(0x18a)](_0x23bfa5=>{var _0x46628f=_0x305638;const _0x1d66a6=_0x23bfa5[_0x46628f(0x112)](),_0x1103a2=this[_0x46628f(0x111)][_0x46628f(0x17d)](_0x1d66a6);_0x1103a2==null||_0x1103a2['dispose']();});}async['_startLiveShareCoordinator'](_0x894da9){var _0x3bbc16=_0x30436a;const _0x580b15=await this['_collabSessionService'][_0x3bbc16(0x156)](_0x894da9),_0xe96b27=this[_0x3bbc16(0x161)][_0x3bbc16(0xed)](exports[_0x3bbc16(0x181)],_0x894da9,_0x580b15);return _0xe96b27[_0x3bbc16(0x134)](),this[_0x3bbc16(0x111)]['set'](_0x894da9,_0xe96b27),_0xe96b27;}},exports[_0x30436a(0xd5)]=R([S(0x0,o[_0x30436a(0xbe)]),S(0x1,o[_0x30436a(0x167)](o[_0x30436a(0x114)])),S(0x2,o[_0x30436a(0x167)](m[_0x30436a(0x16a)]))],exports[_0x30436a(0xd5)]);var h=(_0x3c2adf=>(_0x3c2adf['OFFLINE']='offline',_0x3c2adf[_0x30436a(0x17b)]=_0x30436a(0xfc),_0x3c2adf['FOLLOWING']=_0x30436a(0x11b),_0x3c2adf[_0x30436a(0x120)]='not-following',_0x3c2adf[_0x30436a(0x139)]=_0x30436a(0x168),_0x3c2adf))(h||{});const Z=_0x30436a(0x174),J=0xc8;exports[_0x30436a(0x181)]=class extends o[_0x30436a(0x155)]{constructor(_0x25115b,_0x254353,_0x5a12a8,_0x3af993,_0x187459){var _0x51bf9e=_0x30436a;super(),v(this,_0x51bf9e(0xf0),new D[(_0x51bf9e(0x180))](_0x51bf9e(0xfc))),v(this,'status$',this[_0x51bf9e(0xf0)][_0x51bf9e(0x172)]()),v(this,'_init',!0x1),v(this,_0x51bf9e(0x13c),null),v(this,'_presenter',null),(this[_0x51bf9e(0x10e)]=_0x25115b,this[_0x51bf9e(0xe3)]=_0x254353,this[_0x51bf9e(0x135)]=_0x5a12a8,this[_0x51bf9e(0x145)]=_0x3af993,this['_commandService']=_0x187459);}get[_0x30436a(0x179)](){var _0x5ca21d=_0x30436a;return this[_0x5ca21d(0xf0)][_0x5ca21d(0x188)]();}[_0x30436a(0xcd)](){var _0x33867c=_0x30436a,_0x2004a7;(_0x2004a7=this[_0x33867c(0x13c)])==null||_0x2004a7[_0x33867c(0xcd)](),this['_status$'][_0x33867c(0x16c)](_0x33867c(0xfc)),this[_0x33867c(0xf0)]['complete']();}[_0x30436a(0x134)](){var _0x10d7a6=_0x30436a;this[_0x10d7a6(0x15b)]||(this[_0x10d7a6(0x15b)]=!0x0,this[_0x10d7a6(0xe3)]['sessionStatus$'][_0x10d7a6(0x12d)](b[_0x10d7a6(0x176)](this[_0x10d7a6(0xeb)]))[_0x10d7a6(0x18a)](_0x11758e=>{var _0x5d92c7=_0x10d7a6;switch(_0x11758e){case m[_0x5d92c7(0x127)]['OFFLINE']:this['_handleOffline']();break;case m[_0x5d92c7(0x127)][_0x5d92c7(0xea)]:this['_handleOnline']();break;}}),this[_0x10d7a6(0xe3)][_0x10d7a6(0x18b)][_0x10d7a6(0x12d)](b['takeUntil'](this['dispose$']))[_0x10d7a6(0x18a)](_0x8c7fcf=>{var _0x4f1791=_0x10d7a6;const {eventID:_0x2e6e97}=_0x8c7fcf;switch(_0x2e6e97){case _[_0x4f1791(0xce)][_0x4f1791(0x146)]:this[_0x4f1791(0xd2)](_0x8c7fcf);break;case _[_0x4f1791(0xce)][_0x4f1791(0x13b)]:this[_0x4f1791(0xc2)](_0x8c7fcf);break;case _[_0x4f1791(0xce)][_0x4f1791(0xc5)]:this[_0x4f1791(0x11e)]();break;case _[_0x4f1791(0xce)][_0x4f1791(0x106)]:this[_0x4f1791(0x101)](_0x8c7fcf);break;}}));}[_0x30436a(0x140)](){var _0x1b9806=_0x30436a;this['_collabSession']['send']({'eventID':_[_0x1b9806(0xce)][_0x1b9806(0x128)],'data':{'unitID':this[_0x1b9806(0x10e)],'userID':this[_0x1b9806(0xe3)][_0x1b9806(0x184)]()}},this[_0x1b9806(0x10e)]);}[_0x30436a(0x18c)](){var _0x241d8c=_0x30436a;this[_0x241d8c(0x179)]===_0x241d8c(0x168)&&(this['_status$'][_0x241d8c(0x16c)]('idle'),this[_0x241d8c(0xe3)][_0x241d8c(0x148)]({'eventID':_[_0x241d8c(0xce)][_0x241d8c(0xc5)],'data':{'unitID':this[_0x241d8c(0x10e)]}},this[_0x241d8c(0x10e)]));}[_0x30436a(0x10a)](){var _0x4e92a9=_0x30436a;this[_0x4e92a9(0x179)]===_0x4e92a9(0xdb)&&(this[_0x4e92a9(0xf0)]['next'](_0x4e92a9(0x11b)),this[_0x4e92a9(0x177)]());}[_0x30436a(0xf6)](){var _0x30ffd0=_0x30436a;this[_0x30ffd0(0x179)]===_0x30ffd0(0x11b)&&this[_0x30ffd0(0x12f)]();}['_handleNewHost'](_0x10e992){var _0x3dc292=_0x30436a;const {presenter:_0x2ed22d}=_0x10e992['data'],_0x3e83c2=this[_0x3dc292(0xe3)][_0x3dc292(0x184)]();this['_presenter']=_0x2ed22d,_0x2ed22d===_0x3e83c2?(this[_0x3dc292(0x12f)](),this['_startPresenting']()):this[_0x3dc292(0x179)]!==_0x3dc292(0xdb)&&(this[_0x3dc292(0x16f)](),this['_startFollowing']());}['_fetchOperations'](){var _0xe036a7=_0x30436a;const _0x195f69={'eventID':_[_0xe036a7(0xce)][_0xe036a7(0x136)]};this[_0xe036a7(0xe3)]['send'](_0x195f69,this['_unitID']);}[_0x30436a(0x11e)](){var _0x2f88b6=_0x30436a;this[_0x2f88b6(0xe1)]=null,this[_0x2f88b6(0x179)]!=='presenting'&&this[_0x2f88b6(0xb9)]();}[_0x30436a(0x101)](_0x2f0d7c){var _0x582255=_0x30436a;if(this[_0x582255(0x179)]==='following'&&this['_presenter']===_0x2f0d7c[_0x582255(0x103)][_0x582255(0x138)]){const _0x2ff2cd=_['parseProtocolChangeset'](_0x2f0d7c[_0x582255(0x103)])[_0x582255(0x14b)]['reverse']()[_0x582255(0x17c)](_0x361089=>_0x361089['id']===C['InsertSheetMutation']['id']);if(_0x2ff2cd){const _0x2ed430=_0x2ff2cd['params'][_0x582255(0x10c)],_0x2a9a92=_0x2ff2cd['params'][_0x582255(0xc4)]['id'];setTimeout(()=>{var _0x1c94f8=_0x582255;this['_commandService'][_0x1c94f8(0xc6)](C['SetWorksheetActiveOperation']['id'],{'unitId':_0x2ed430,'subUnitId':_0x2a9a92},{'fromCollab':!0x0});});}}}[_0x30436a(0x14a)](){var _0x54c724=_0x30436a;this[_0x54c724(0xf0)][_0x54c724(0x16c)](_0x54c724(0x168));const _0x4e5a50=new Map(),_0x4ff8c5=this[_0x54c724(0x13c)]=new o[(_0x54c724(0xd1))]();_0x4ff8c5[_0x54c724(0x153)](o[_0x54c724(0x123)](()=>{var _0x5ec32a=_0x54c724;_0x4e5a50[_0x5ec32a(0x162)](_0x889803=>_0x889803[_0x5ec32a(0xb7)]()),_0x4e5a50[_0x5ec32a(0x126)]();})),_0x4ff8c5['add'](this[_0x54c724(0xd8)][_0x54c724(0x115)](_0xa3dd78=>{var _0x2396ad=_0x54c724,_0xb7fc84;if(_0xa3dd78[_0x2396ad(0xff)]!==o[_0x2396ad(0xb3)][_0x2396ad(0x11a)]||!this[_0x2396ad(0x145)]['shouldShareOperation'](_0xa3dd78['id']))return;const {id:_0x4715b0}=_0xa3dd78;let _0x39993d;_0x4e5a50[_0x2396ad(0xde)](_0x4715b0)?_0x39993d=_0x4e5a50[_0x2396ad(0x17d)](_0x4715b0):(_0x39993d=new D[(_0x2396ad(0xf7))](),_0x4e5a50[_0x2396ad(0x14c)](_0x4715b0,_0x39993d),_0x39993d['pipe'](b[_0x2396ad(0x141)]((_0xb7fc84=this[_0x2396ad(0x135)][_0x2396ad(0x152)](Z))!=null?_0xb7fc84:J,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x5aacad=>{var _0x7c40cc=_0x2396ad;this[_0x7c40cc(0xe3)]['send']({'eventID':_['CollaborationEvent'][_0x7c40cc(0x13b)],'data':{'unitID':this[_0x7c40cc(0x10e)],'operations':{[_0x5aacad['id']]:{'id':_0x5aacad['id'],'params':JSON['stringify'](_0x5aacad[_0x7c40cc(0x13d)])}}}},this[_0x7c40cc(0x10e)]);})),_0x39993d['next'](_0xa3dd78);})),this['_liveShareService'][_0x54c724(0xef)](this[_0x54c724(0x10e)])[_0x54c724(0x162)](_0x3bf1e9=>this[_0x54c724(0xe3)][_0x54c724(0x148)]({'eventID':_[_0x54c724(0xce)][_0x54c724(0x13b)],'data':{'unitID':this[_0x54c724(0x10e)],'operations':{[_0x3bf1e9['id']]:{'id':_0x3bf1e9['id'],'params':JSON[_0x54c724(0x107)](_0x3bf1e9[_0x54c724(0x13d)])}}}},this[_0x54c724(0x10e)]));}[_0x30436a(0x16f)](){var _0x16bebb=_0x30436a,_0x435e89;this[_0x16bebb(0xf0)][_0x16bebb(0x16c)](_0x16bebb(0xfc)),(_0x435e89=this[_0x16bebb(0x13c)])==null||_0x435e89['dispose'](),this['_commandDisposable']=null;}[_0x30436a(0x177)](){var _0x4bbda6=_0x30436a,_0x343f45;(_0x343f45=this['_commandDisposable'])==null||_0x343f45[_0x4bbda6(0xcd)](),this[_0x4bbda6(0xf0)][_0x4bbda6(0x16c)](_0x4bbda6(0x11b));}[_0x30436a(0xb9)](){var _0x5434df=_0x30436a,_0x46c090;this[_0x5434df(0xf0)][_0x5434df(0x16c)](_0x5434df(0xfc)),(_0x46c090=this[_0x5434df(0x13c)])==null||_0x46c090[_0x5434df(0xcd)](),this[_0x5434df(0x13c)]=null;}[_0x30436a(0x12f)](){var _0x281e9d=_0x30436a,_0x4eefee;this[_0x281e9d(0xf0)][_0x281e9d(0x16c)]('not-following'),(_0x4eefee=this['_commandDisposable'])==null||_0x4eefee['dispose']();}[_0x30436a(0xc2)](_0x5a3433){var _0xe832ac=_0x30436a;if([_0xe832ac(0x168),_0xe832ac(0xdb),_0xe832ac(0x182)]['includes'](this[_0xe832ac(0x179)])||!_0x5a3433['data'][_0xe832ac(0x192)]||_0x5a3433[_0xe832ac(0x103)]['presenter']===this[_0xe832ac(0xe3)][_0xe832ac(0x184)]())return;this['_status']===_0xe832ac(0xfc)&&this['_startFollowing']();const _0x3c5a5d=_0x5a3433[_0xe832ac(0x103)][_0xe832ac(0xb1)];Object[_0xe832ac(0x132)](_0x3c5a5d)[_0xe832ac(0x162)](_0x95886c=>{var _0x563621=_0xe832ac;this['_commandService'][_0x563621(0xc6)](_0x95886c['id'],_0x95886c[_0x563621(0x13d)]?JSON['parse'](_0x95886c[_0x563621(0x13d)]):null,{'fromCollab':!0x0});});}[_0x30436a(0x166)](){var _0x2230af=_0x30436a,_0x42d8e2;this[_0x2230af(0xf0)]['next'](_0x2230af(0x182)),(_0x42d8e2=this[_0x2230af(0x13c)])==null||_0x42d8e2[_0x2230af(0xcd)]();}[_0x30436a(0x154)](){var _0x56f7f3=_0x30436a;this[_0x56f7f3(0xf0)][_0x56f7f3(0x16c)](_0x56f7f3(0xfc)),this['_fetchOperations']();}},exports['LiveShareCoordinator']=R([S(0x2,o[_0x30436a(0x118)]),S(0x3,o[_0x30436a(0x167)](O)),S(0x4,o[_0x30436a(0xe8)])],exports[_0x30436a(0x181)]);function A(){var _0x3021df=_0x30436a;const _0x349dac=p['useDependency'](exports['LiveShareController']),_0x45e9b5=p['useDependency'](o[_0x3021df(0xbe)]),_0x1e7dd6=p[_0x3021df(0xfe)](()=>_0x45e9b5[_0x3021df(0x165)](o[_0x3021df(0x15e)][_0x3021df(0x11d)]),void 0x0,!0x1,[]),[_0x3d4bfc,_0x3bf987]=f[_0x3021df(0xd4)](null),[_0x29796b,_0x39c2dd]=f[_0x3021df(0xd4)](h[_0x3021df(0x17b)]),_0x30f27f=f['useRef'](null);return f['useEffect'](()=>(_0x1e7dd6&&_0x349dac[_0x3021df(0x117)](_0x1e7dd6[_0x3021df(0x112)]())[_0x3021df(0xfb)](_0xb81932=>{var _0x53ca88=_0x3021df;_0x3bf987(_0xb81932),_0x30f27f[_0x53ca88(0x12a)]=_0xb81932[_0x53ca88(0x121)]['subscribe'](_0x252b4a=>{_0x39c2dd(_0x252b4a);});}),()=>{var _0x304cc0=_0x3021df,_0x2c556f;(_0x2c556f=_0x30f27f[_0x304cc0(0x12a)])==null||_0x2c556f[_0x304cc0(0x10f)](),_0x30f27f[_0x304cc0(0x12a)]=null;}),[_0x1e7dd6,_0x349dac]),_0x3d4bfc?l[_0x3021df(0x12c)](g[_0x3021df(0x18f)],{'align':_0x3021df(0x14d),'disabled':_0x29796b===h[_0x3021df(0x13f)],'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[_0x3021df(0x12c)](K,{'status':_0x29796b,'coordinator':_0x3d4bfc}),'children':l[_0x3021df(0x12c)](_0x3021df(0x14f),{'className':g['clsx']('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x29796b===h[_0x3021df(0x13f)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x29796b!==h[_0x3021df(0x13f)]}),'type':_0x3021df(0x14f),'children':l[_0x3021df(0x12c)](P,{'className':_0x3021df(0xb4)})})}):null;}function K(_0x4a691c){var _0x5ef261=_0x30436a;const {status:_0x23068d,coordinator:_0x423cb9}=_0x4a691c;switch(_0x23068d){case h['IDLE']:return l[_0x5ef261(0x12c)](z,{'coordinator':_0x423cb9});case h[_0x5ef261(0x196)]:return l[_0x5ef261(0x12c)](Q,{'coordinator':_0x423cb9});case h[_0x5ef261(0x120)]:return l['jsx'](X,{'coordinator':_0x423cb9});case h[_0x5ef261(0x13f)]:return l['jsx'](te,{});case h['PRESENTING']:return l[_0x5ef261(0x12c)](ee,{'coordinator':_0x423cb9});default:return null;}}function z(_0x8849f){var _0x1a5e7c=_0x30436a;const {coordinator:_0x5cc8b6}=_0x8849f;return l[_0x1a5e7c(0xda)](l[_0x1a5e7c(0xbb)],{'children':[l[_0x1a5e7c(0x12c)]('div',{'className':_0x1a5e7c(0x125),'children':_0x1a5e7c(0x147)}),l[_0x1a5e7c(0x12c)](g['Button'],{'onClick':()=>_0x5cc8b6[_0x1a5e7c(0x140)](),'children':_0x1a5e7c(0x189)})]});}function Q(_0x2d3186){var _0x35b5e4=_0x30436a;const {coordinator:_0x4ca398}=_0x2d3186;return l[_0x35b5e4(0xda)](l[_0x35b5e4(0xbb)],{'children':[l['jsx']('div',{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x35b5e4(0xbd)}),l['jsx'](g[_0x35b5e4(0x105)],{'onClick':()=>_0x4ca398[_0x35b5e4(0xf6)](),'children':'Stop\x20following'})]});}function X(_0x490ec7){var _0x124a48=_0x30436a;const {coordinator:_0x13ccc7}=_0x490ec7;return l[_0x124a48(0xda)](l['Fragment'],{'children':[l[_0x124a48(0x12c)]('div',{'className':_0x124a48(0x125),'children':'You\x27re\x20not\x20following\x20the\x20presenter'}),l[_0x124a48(0x12c)](g['Button'],{'variant':'text','onClick':()=>_0x13ccc7[_0x124a48(0x10a)](),'children':_0x124a48(0xfa)})]});}function ee(_0x324339){var _0xa221a6=_0x30436a;const {coordinator:_0x30362e}=_0x324339;return l['jsxs'](l[_0xa221a6(0xbb)],{'children':[l[_0xa221a6(0x12c)](_0xa221a6(0xd7),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0xa221a6(0x11c)}),l['jsx'](g[_0xa221a6(0x105)],{'variant':_0xa221a6(0x15c),'onClick':()=>_0x30362e['stopPresenting'](),'children':_0xa221a6(0x160)})]});}function te(){var _0x2e629f=_0x30436a;return l[_0x2e629f(0x12c)](l['Fragment'],{'children':_0x2e629f(0x100)});}var ie=Object['getOwnPropertyDescriptor'],ne=(_0xce302f,_0x37babd,_0x4bd7cf,_0x4bd403)=>{var _0xf3daa0=_0x30436a;for(var _0x16a78b=_0x4bd403>0x1?void 0x0:_0x4bd403?ie(_0x37babd,_0x4bd7cf):_0x37babd,_0x21df62=_0xce302f[_0xf3daa0(0x17f)]-0x1,_0x5637c2;_0x21df62>=0x0;_0x21df62--)(_0x5637c2=_0xce302f[_0x21df62])&&(_0x16a78b=_0x5637c2(_0x16a78b)||_0x16a78b);return _0x16a78b;},L=(_0x449706,_0x2671be)=>(_0x3201f5,_0x5a8b20)=>_0x2671be(_0x3201f5,_0x5a8b20,_0x449706);exports['DesktopLiveShareController']=class extends o[_0x30436a(0x14e)]{constructor(_0x34d220,_0x5b0d58){var _0xe6497a=_0x30436a;super(),this['_injector']=_0x34d220,this[_0xe6497a(0x194)]=_0x5b0d58,this[_0xe6497a(0x149)]();}[_0x30436a(0x149)](){var _0x379daf=_0x30436a;this[_0x379daf(0xb8)](this[_0x379daf(0x194)]['registerComponent'](p[_0x379daf(0x150)]['HEADER_MENU'],()=>p[_0x379daf(0xe0)](A,this['_injector'])));}},exports[_0x30436a(0x133)]=ne([L(0x0,o[_0x30436a(0x167)](o[_0x30436a(0x114)])),L(0x1,p['IUIPartsService'])],exports['DesktopLiveShareController']);var re=Object[_0x30436a(0xe2)],se=Object[_0x30436a(0x124)],oe=(_0x5f2912,_0x4916b2,_0x2c69a5)=>_0x4916b2 in _0x5f2912?re(_0x5f2912,_0x4916b2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2c69a5}):_0x5f2912[_0x4916b2]=_0x2c69a5,ae=(_0xa3fb06,_0x1fba7e,_0x53a7de,_0x9aa3f7)=>{var _0x3a1378=_0x30436a;for(var _0x23eeb5=_0x9aa3f7>0x1?void 0x0:_0x9aa3f7?se(_0x1fba7e,_0x53a7de):_0x1fba7e,_0x2dcc9a=_0xa3fb06[_0x3a1378(0x17f)]-0x1,_0x39f7cb;_0x2dcc9a>=0x0;_0x2dcc9a--)(_0x39f7cb=_0xa3fb06[_0x2dcc9a])&&(_0x23eeb5=_0x39f7cb(_0x23eeb5)||_0x23eeb5);return _0x23eeb5;},N=(_0x28206d,_0x4ccda9)=>(_0x41ec04,_0x4cddfa)=>_0x4ccda9(_0x41ec04,_0x4cddfa,_0x28206d),T=(_0x111fea,_0x52db6a,_0x17f3b1)=>oe(_0x111fea,typeof _0x52db6a!=_0x30436a(0x173)?_0x52db6a+'':_0x52db6a,_0x17f3b1);const le=_0x30436a(0x13e);exports[_0x30436a(0xe5)]=class extends o[_0x30436a(0x13a)]{constructor(_0x17615b=x,_0x270105,_0x1d008b){var _0x2af07a=_0x30436a;super(),this[_0x2af07a(0xc8)]=_0x17615b,this['_injector']=_0x270105,this['_configService']=_0x1d008b;const {..._0x5a163c}=o['merge']({},x,this['_config']);this['_configService'][_0x2af07a(0xf5)]($,_0x5a163c);}[_0x30436a(0x12e)](){var _0x5e5027=_0x30436a;o[_0x5e5027(0xf1)](this[_0x5e5027(0x161)],o[_0x5e5027(0x108)]([[O],[exports['LiveShareController']],[E],[exports[_0x5e5027(0x133)]]],this[_0x5e5027(0xc8)][_0x5e5027(0x190)])),o['touchDependencies'](this[_0x5e5027(0x161)],[[E]]);}['onRendered'](){var _0x481548=_0x30436a;o[_0x481548(0xd9)](this['_injector'],[[exports['DesktopLiveShareController']]]);}},T(exports[_0x30436a(0xe5)],_0x30436a(0xff),o[_0x30436a(0x15e)]['UNIVER_UNKNOWN']),T(exports['UniverLiveSharePlugin'],_0x30436a(0x187),le),exports['UniverLiveSharePlugin']=ae([o[_0x30436a(0x15a)](m[_0x30436a(0x18e)]),N(0x1,o['Inject'](o['Injector'])),N(0x2,o['IConfigService'])],exports[_0x30436a(0xe5)]),exports[_0x30436a(0x16d)]=A,exports['LiveShareService']=O,exports[_0x30436a(0xf2)]=h;
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- var _0x5258fa=_0x139a;(function(_0x517ff7,_0x860d13){var _0x2b8d48=_0x139a,_0x3d7aec=_0x517ff7();while(!![]){try{var _0xc3a79d=parseInt(_0x2b8d48(0xca))/0x1*(parseInt(_0x2b8d48(0xb5))/0x2)+parseInt(_0x2b8d48(0xe9))/0x3*(-parseInt(_0x2b8d48(0x117))/0x4)+-parseInt(_0x2b8d48(0xa5))/0x5+-parseInt(_0x2b8d48(0xd2))/0x6*(parseInt(_0x2b8d48(0x10b))/0x7)+parseInt(_0x2b8d48(0xc2))/0x8*(parseInt(_0x2b8d48(0x107))/0x9)+-parseInt(_0x2b8d48(0x145))/0xa*(parseInt(_0x2b8d48(0x11e))/0xb)+-parseInt(_0x2b8d48(0xeb))/0xc*(-parseInt(_0x2b8d48(0x123))/0xd);if(_0xc3a79d===_0x860d13)break;else _0x3d7aec['push'](_0x3d7aec['shift']());}catch(_0x563652){_0x3d7aec['push'](_0x3d7aec['shift']());}}}(_0x1961,0x9b17e));function _0x139a(_0x194edb,_0xc3070e){var _0x196191=_0x1961();return _0x139a=function(_0x139a9b,_0x512bd4){_0x139a9b=_0x139a9b-0x99;var _0x25b3e4=_0x196191[_0x139a9b];return _0x25b3e4;},_0x139a(_0x194edb,_0xc3070e);}var q=Object[_0x5258fa(0x9f)],z=(_0x351192,_0x5b1dba,_0x3ce5e3)=>_0x5b1dba in _0x351192?q(_0x351192,_0x5b1dba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ce5e3}):_0x351192[_0x5b1dba]=_0x3ce5e3,d=(_0x458fea,_0x581d72,_0x4fed65)=>z(_0x458fea,typeof _0x581d72!=_0x5258fa(0xbf)?_0x581d72+'':_0x581d72,_0x4fed65);import{CollaborationSessionService as _0x166df7,SessionStatus as _0x6072e1,UniverCollaborationClientPlugin as _0xbe77e1}from'@univerjs-pro/collaboration-client';import{Disposable as _0x5d78d5,toDisposable as _0x104973,Inject as _0x15c34c,IUniverInstanceService as _0x30f196,Injector as _0x1bb1a3,IConfigService as _0xf2eda3,ICommandService as _0x225c55,RxDisposable as _0x5123e3,UniverInstanceType as _0x14c1f5,DisposableCollection as _0x2872b8,CommandType as _0x16b9f5,DependentOn as _0x36185f,Plugin as _0x607589,merge as _0x1c848f,registerDependencies as _0x1910a1,mergeOverrideWithDependencies as _0x2ab882,touchDependencies as _0xbfe10e}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x266111,InsertSheetMutation as _0x58b5c8}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x3a60b0,SetScrollOperation as _0x399981}from'@univerjs/sheets-ui';import{useDependency as _0x1a879f,useObservable as _0x2c858e,IUIPartsService as _0x48f43a,BuiltInUIPart as _0x5e9d9c,connectInjector as _0x21477e}from'@univerjs/ui';function _0x1961(){var _0x17567c=['registerSharedOperation','_stopFollowing','LIVESHARE_REQUEST_HOST','sessionStatus$','startFollowing','url(#$1','SAME_OPERATION_SHARE_INTERVAL','requireSession','getOwnPropertyDescriptor','defineProperty','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','svg','_reporters','toString','unitId','1126065viKAlJ','prototype','extend','live-share.config','_handleNewHost','call','_status$','executeCommand','UniverIcon','operations','_status','_beIdle','getLiveShareCoordinator','idSuffix','_handleOperation','idle','310162bAPFhl','string','_handleOnline','xlink:href','mask','concat','trim','complete','Start\x20following','memberID','symbol','next','_fetchOperations','8244712ltLhWv','Stop\x20following','http://www.w3.org/2000/svg','stopPresenting','stringify','assign','_init','use','5YCApvA','hasOwnProperty','attrs','not-following','_unitID','UNIVER_SHEET','parse','UNIVER_UNKNOWN','22236fndPlu','getOwnPropertySymbols','IDLE','getUnitId','_handleNewChangeSets','add','div','asObservable','dispose','icon','univer-size-4','You\x27re\x20not\x20following\x20the\x20presenter','onCommandExecuted','following','_configService','find','_presenter','button','getConfig','get','setConfig','_univerInstanceService','_injector','2999622JRYTKO','_stopPresenting','3248124EzDVgQ','LIVESHARE_NEW_HOST','LIVESHARE_OPERATION','function','_config','registerInitialStateReporter','You\x27re\x20presenting\x20the\x20document','getValue','replace','live-share-icon','entries','end','tag','defIds','0\x200\x2017\x2017','PRESENTING','LIVESHARE_FETCH_OPERATIONS','pipe','onStarting','disposeWithMe','_mountLiveShare','univer-w-full\x20univer-mb-3\x20univer-text-sm','Stop\x20presenting','_uiPartsService','map','path','getMemberID','_collabSession','9RHCwOK','from','Present\x20this\x20document','registerComponent','1379FNQHYW','delete','1em','_liveShareService','HEADER_MENU','reverse','values','set','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','subscribe','apply','includes','4epbNTb','presenter','children','current','_entities','dispose$','evenodd','303534jnUYuK','tryStartPresenting','none','then','fill','39eOdOxK','data','propertyIsEnumerable','presenting','unsubscribe','onRendered','type','_commandDisposable','shouldShareOperation','stopFollowing','currentColor','_handleTerminate','forEach','override','_collabSessionService','className','send','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','_handleOffline','indexOf','_startFollowing','colorChannel1','clear','substring','FOLLOWING','getInitialStates','_startPresenting','OFFLINE','offline','has','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','_commandService','getTypeOfUnitDisposed$','Start','10kOLrQL','_startLiveShareCoordinator','LIVESHARE_TERMINATE','status$','params','NEW_CHANGESETS','ONLINE','length','_sharedOperations','displayName','init'];_0x1961=function(){return _0x17567c;};return _0x1961();}import{jsx as _0x5e2a77,jsxs as _0x57e686,Fragment as _0x49f367}from'react/jsx-runtime';import{Dropdown as _0x57c4cd,clsx as _0x3354fe,Button as _0x32a223}from'@univerjs/design';import{forwardRef as _0x541777,useRef as _0x26071b,createElement as _0xe5743d,useState as _0x5b847f,useEffect as _0x2a5c1b}from'react';import{CollaborationEvent as _0x5e4eb2,parseProtocolChangeset as _0x3e708c}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x513b10,Subject as _0x49a04c}from'rxjs';import{takeUntil as _0x3dec29,throttleTime as _0x56270f}from'rxjs/operators';const Oe=_0x5258fa(0xa8),T={};class L extends _0x5d78d5{constructor(){super(...arguments),d(this,'_sharedOperations',new Set()),d(this,'_reporters',new Set());}[_0x5258fa(0x150)](_0x424064){var _0x406f72=_0x5258fa;return this[_0x406f72(0x14d)][_0x406f72(0xd7)](_0x424064),_0x104973(()=>this[_0x406f72(0x14d)][_0x406f72(0x10c)](_0x424064));}[_0x5258fa(0xf0)](_0xafb6f){var _0x5c03c5=_0x5258fa;return this['_reporters']['add'](_0xafb6f),_0x104973(()=>this[_0x5c03c5(0xa2)][_0x5c03c5(0x10c)](_0xafb6f));}['shouldShareOperation'](_0x258e8f){var _0x2c7c5a=_0x5258fa;return this[_0x2c7c5a(0x14d)]['has'](_0x258e8f);}[_0x5258fa(0x13c)](_0x348174){var _0x45bc2a=_0x5258fa;return Array[_0x45bc2a(0x108)](this[_0x45bc2a(0xa2)])[_0x45bc2a(0x103)](_0x56e5a2=>_0x56e5a2(_0x348174));}}var Ee=Object[_0x5258fa(0x9e)],we=(_0xce797b,_0x56dd88,_0x1520b1,_0x3d6f23)=>{var _0xf5b9b0=_0x5258fa;for(var _0x1852de=_0x3d6f23>0x1?void 0x0:_0x3d6f23?Ee(_0x56dd88,_0x1520b1):_0x56dd88,_0x1c113d=_0xce797b[_0xf5b9b0(0x14c)]-0x1,_0x1ca097;_0x1c113d>=0x0;_0x1c113d--)(_0x1ca097=_0xce797b[_0x1c113d])&&(_0x1852de=_0x1ca097(_0x1852de)||_0x1852de);return _0x1852de;},Ne=(_0x1423ba,_0x3c5c47)=>(_0x30fea2,_0x4609a8)=>_0x3c5c47(_0x30fea2,_0x4609a8,_0x1423ba);let m=class extends _0x5d78d5{constructor(_0x2489ac){var _0x4756c8=_0x5258fa;super(),this['_liveShareService']=_0x2489ac,this[_0x4756c8(0xc8)]();}[_0x5258fa(0xc8)](){[_0x3a60b0['id'],_0x399981['id'],_0x266111['id']]['forEach'](_0x7cdfaa=>{var _0x4fc7f1=_0x139a;this[_0x4fc7f1(0xfe)](this[_0x4fc7f1(0x10e)][_0x4fc7f1(0x150)](_0x7cdfaa));});}};m=we([Ne(0x0,_0x15c34c(L))],m);var c=function(){var _0xc1b193=_0x5258fa;return c=Object['assign']||function(_0x189425){var _0x2c524e=_0x139a;for(var _0x80c157,_0x11064b=0x1,_0x1358fc=arguments[_0x2c524e(0x14c)];_0x11064b<_0x1358fc;_0x11064b++){_0x80c157=arguments[_0x11064b];for(var _0x2f94fc in _0x80c157)Object['prototype'][_0x2c524e(0xcb)][_0x2c524e(0xaa)](_0x80c157,_0x2f94fc)&&(_0x189425[_0x2f94fc]=_0x80c157[_0x2f94fc]);}return _0x189425;},c[_0xc1b193(0x115)](this,arguments);},Ce=function(_0x4c7e9f,_0x268726){var _0x2cb23c=_0x5258fa,_0x37e4ca={};for(var _0x4475a3 in _0x4c7e9f)Object['prototype'][_0x2cb23c(0xcb)][_0x2cb23c(0xaa)](_0x4c7e9f,_0x4475a3)&&_0x268726[_0x2cb23c(0x136)](_0x4475a3)<0x0&&(_0x37e4ca[_0x4475a3]=_0x4c7e9f[_0x4475a3]);if(_0x4c7e9f!=null&&typeof Object[_0x2cb23c(0xd3)]==_0x2cb23c(0xee)){for(var _0xe5af2c=0x0,_0x4475a3=Object[_0x2cb23c(0xd3)](_0x4c7e9f);_0xe5af2c<_0x4475a3['length'];_0xe5af2c++)_0x268726[_0x2cb23c(0x136)](_0x4475a3[_0xe5af2c])<0x0&&Object[_0x2cb23c(0xa6)][_0x2cb23c(0x125)]['call'](_0x4c7e9f,_0x4475a3[_0xe5af2c])&&(_0x37e4ca[_0x4475a3[_0xe5af2c]]=_0x4c7e9f[_0x4475a3[_0xe5af2c]]);}return _0x37e4ca;},W=_0x541777(function(_0x4f5f7b,_0x4b36dc){var _0xe05a70=_0x5258fa,_0x3f0de1=_0x4f5f7b['icon'],_0x4c8990=_0x4f5f7b['id'],_0x1a3707=_0x4f5f7b[_0xe05a70(0x132)],_0x4848c5=_0x4f5f7b['extend'],_0x4ec7f3=Ce(_0x4f5f7b,[_0xe05a70(0xdb),'id',_0xe05a70(0x132),_0xe05a70(0xa7)]),_0x237c50='univerjs-icon\x20univerjs-icon-'['concat'](_0x4c8990,'\x20')[_0xe05a70(0xba)](_0x1a3707||'')[_0xe05a70(0xbb)](),_0x31212b=_0x26071b('_'[_0xe05a70(0xba)](Le()));return Y(_0x3f0de1,''[_0xe05a70(0xba)](_0x4c8990),{'defIds':_0x3f0de1[_0xe05a70(0xf8)],'idSuffix':_0x31212b[_0xe05a70(0x11a)]},c({'ref':_0x4b36dc,'className':_0x237c50},_0x4ec7f3),_0x4848c5);});function Y(_0x9aa26f,_0x12a3ce,_0x1ff5d8,_0x4992b3,_0xcc4081){var _0xa6acde=_0x5258fa;return _0xe5743d(_0x9aa26f[_0xa6acde(0xf7)],c(c({'key':_0x12a3ce},De(_0x9aa26f,_0x1ff5d8,_0xcc4081)),_0x4992b3),(xe(_0x9aa26f,_0x1ff5d8)[_0xa6acde(0x119)]||[])[_0xa6acde(0x103)](function(_0x21688a,_0x25038a){var _0x5dc11b=_0xa6acde;return Y(_0x21688a,''[_0x5dc11b(0xba)](_0x12a3ce,'-')[_0x5dc11b(0xba)](_0x9aa26f['tag'],'-')[_0x5dc11b(0xba)](_0x25038a),_0x1ff5d8,void 0x0,_0xcc4081);}));}function De(_0x4aaecd,_0x3e4082,_0x50d5a8){var _0x27b903=_0x5258fa,_0x583c7b=c({},_0x4aaecd[_0x27b903(0xcc)]);_0x50d5a8!=null&&_0x50d5a8[_0x27b903(0x138)]&&_0x583c7b[_0x27b903(0x122)]===_0x27b903(0x138)&&(_0x583c7b[_0x27b903(0x122)]=_0x50d5a8['colorChannel1']),_0x4aaecd[_0x27b903(0xf7)]===_0x27b903(0xb9)&&_0x583c7b['id']&&(_0x583c7b['id']=_0x583c7b['id']+_0x3e4082['idSuffix']),Object[_0x27b903(0xf5)](_0x583c7b)[_0x27b903(0x12f)](function(_0x3d70f0){var _0x3c008b=_0x27b903,_0x11d835=_0x3d70f0[0x0],_0x5458b9=_0x3d70f0[0x1];_0x11d835==='mask'&&typeof _0x5458b9==_0x3c008b(0xb6)&&(_0x583c7b[_0x11d835]=_0x5458b9[_0x3c008b(0xf3)](/url\(#(.*)\)/,_0x3c008b(0x9b)['concat'](_0x3e4082[_0x3c008b(0xb2)],')')));});var _0x1f62f4=_0x3e4082[_0x27b903(0xf8)];return!_0x1f62f4||_0x1f62f4[_0x27b903(0x14c)]===0x0||(_0x4aaecd[_0x27b903(0xf7)]===_0x27b903(0xc9)&&_0x583c7b[_0x27b903(0xb8)]&&(_0x583c7b[_0x27b903(0xb8)]=_0x583c7b['xlink:href']+_0x3e4082[_0x27b903(0xb2)]),Object[_0x27b903(0xf5)](_0x583c7b)[_0x27b903(0x12f)](function(_0x9bac31){var _0x34e2a0=_0x27b903,_0x7c0466=_0x9bac31[0x0],_0xc2dd41=_0x9bac31[0x1];typeof _0xc2dd41==_0x34e2a0(0xb6)&&(_0x583c7b[_0x7c0466]=_0xc2dd41[_0x34e2a0(0xf3)](/url\(#(.*)\)/,_0x34e2a0(0x9b)['concat'](_0x3e4082[_0x34e2a0(0xb2)],')')));})),_0x583c7b;}function xe(_0x332f8c,_0x329f01){var _0x3b44d5=_0x5258fa,_0x2e1e81,_0x548e1f=_0x329f01[_0x3b44d5(0xf8)];return!_0x548e1f||_0x548e1f[_0x3b44d5(0x14c)]===0x0?_0x332f8c:_0x332f8c[_0x3b44d5(0xf7)]==='defs'&&(!((_0x2e1e81=_0x332f8c[_0x3b44d5(0x119)])===null||_0x2e1e81===void 0x0)&&_0x2e1e81[_0x3b44d5(0x14c)])?c(c({},_0x332f8c),{'children':_0x332f8c[_0x3b44d5(0x119)][_0x3b44d5(0x103)](function(_0x1b7a2d){var _0x1fe392=_0x3b44d5;return typeof _0x1b7a2d[_0x1fe392(0xcc)]['id']==_0x1fe392(0xb6)&&_0x548e1f&&_0x548e1f[_0x1fe392(0x116)](_0x1b7a2d[_0x1fe392(0xcc)]['id'])?c(c({},_0x1b7a2d),{'attrs':c(c({},_0x1b7a2d[_0x1fe392(0xcc)]),{'id':_0x1b7a2d['attrs']['id']+_0x329f01[_0x1fe392(0xb2)]})}):_0x1b7a2d;})}):_0x332f8c;}function Le(){var _0x5079a2=_0x5258fa;return Math['random']()[_0x5079a2(0xa3)](0x24)[_0x5079a2(0x13a)](0x2,0x8);}W[_0x5258fa(0x14e)]=_0x5258fa(0xad);var ye={'tag':_0x5258fa(0xa1),'attrs':{'xmlns':_0x5258fa(0xc4),'fill':_0x5258fa(0x120),'viewBox':_0x5258fa(0xf9),'width':_0x5258fa(0x10d),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x5258fa(0x12d),'d':_0x5258fa(0x141)}},{'tag':_0x5258fa(0x104),'attrs':{'fill':_0x5258fa(0x12d),'d':_0x5258fa(0xa0),'fillRule':_0x5258fa(0x11d),'clipRule':_0x5258fa(0x11d)}}]},B=_0x541777(function(_0x207e36,_0xdcb45c){var _0x9d5824=_0x5258fa;return _0xe5743d(W,Object[_0x9d5824(0xc7)]({},_0x207e36,{'id':_0x9d5824(0xf4),'ref':_0xdcb45c,'icon':ye}));});B[_0x5258fa(0x14e)]='LiveShareIcon';var Re=Object[_0x5258fa(0x9e)],Z=(_0x1cc305,_0x282081,_0x3dcee3,_0x5e63de)=>{var _0x1c9b9a=_0x5258fa;for(var _0x36bd65=_0x5e63de>0x1?void 0x0:_0x5e63de?Re(_0x282081,_0x3dcee3):_0x282081,_0x10acc0=_0x1cc305[_0x1c9b9a(0x14c)]-0x1,_0x29c53a;_0x10acc0>=0x0;_0x10acc0--)(_0x29c53a=_0x1cc305[_0x10acc0])&&(_0x36bd65=_0x29c53a(_0x36bd65)||_0x36bd65);return _0x36bd65;},f=(_0x535dbc,_0x3d98b9)=>(_0x986af1,_0x54711d)=>_0x3d98b9(_0x986af1,_0x54711d,_0x535dbc);let I=class extends _0x5123e3{constructor(_0x16eda5,_0xe09f0a,_0x8d541e){var _0x4b4d77=_0x5258fa;super(),d(this,_0x4b4d77(0x11b),new Map()),(this[_0x4b4d77(0xe7)]=_0x16eda5,this[_0x4b4d77(0xe8)]=_0xe09f0a,this['_collabSessionService']=_0x8d541e,this[_0x4b4d77(0xc8)]());}async[_0x5258fa(0xb1)](_0x5a25d6){var _0x405f36=_0x5258fa;return this[_0x405f36(0x11b)][_0x405f36(0x140)](_0x5a25d6)||await this[_0x405f36(0x146)](_0x5a25d6),this[_0x405f36(0x11b)][_0x405f36(0xe5)](_0x5a25d6);}[_0x5258fa(0xc8)](){var _0x378353=_0x5258fa;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x14c1f5['UNIVER_SHEET'])[_0x378353(0xfc)](_0x3dec29(this['dispose$']))[_0x378353(0x114)](async _0x497a88=>{var _0x5cdddd=_0x378353;const _0x24ccf7=_0x497a88[_0x5cdddd(0xd5)]();this[_0x5cdddd(0x11b)]['has'](_0x24ccf7)||this['_startLiveShareCoordinator'](_0x24ccf7);}),this[_0x378353(0xe7)][_0x378353(0x143)](_0x14c1f5[_0x378353(0xcf)])[_0x378353(0xfc)](_0x3dec29(this[_0x378353(0x11c)]))[_0x378353(0x114)](_0x1bc627=>{var _0x2065e3=_0x378353;const _0x210eee=_0x1bc627[_0x2065e3(0xd5)](),_0x40879a=this['_entities'][_0x2065e3(0xe5)](_0x210eee);_0x40879a==null||_0x40879a['dispose']();});}async[_0x5258fa(0x146)](_0x57a64b){var _0x4cda0d=_0x5258fa;const _0x1004ae=await this[_0x4cda0d(0x131)][_0x4cda0d(0x9d)](_0x57a64b),_0x2bc36c=this[_0x4cda0d(0xe8)]['createInstance'](C,_0x57a64b,_0x1004ae);return _0x2bc36c[_0x4cda0d(0x14f)](),this[_0x4cda0d(0x11b)][_0x4cda0d(0x112)](_0x57a64b,_0x2bc36c),_0x2bc36c;}};I=Z([f(0x0,_0x30f196),f(0x1,_0x15c34c(_0x1bb1a3)),f(0x2,_0x15c34c(_0x166df7))],I);var h=(_0x515e4b=>(_0x515e4b[_0x5258fa(0x13e)]=_0x5258fa(0x13f),_0x515e4b[_0x5258fa(0xd4)]=_0x5258fa(0xb4),_0x515e4b[_0x5258fa(0x13b)]=_0x5258fa(0xdf),_0x515e4b['NOT_FOLLOWING']=_0x5258fa(0xcd),_0x515e4b['PRESENTING']='presenting',_0x515e4b))(h||{});const Pe=_0x5258fa(0x9c),Ae=0xc8;let C=class extends _0x5123e3{constructor(_0x3047bc,_0x55dc15,_0x162d05,_0x5aeb67,_0x51a31a){var _0x24d12f=_0x5258fa;super(),d(this,_0x24d12f(0xab),new _0x513b10('idle')),d(this,_0x24d12f(0x148),this[_0x24d12f(0xab)][_0x24d12f(0xd9)]()),d(this,_0x24d12f(0xc8),!0x1),d(this,_0x24d12f(0x12a),null),d(this,'_presenter',null),(this[_0x24d12f(0xce)]=_0x3047bc,this['_collabSession']=_0x55dc15,this[_0x24d12f(0xe0)]=_0x162d05,this[_0x24d12f(0x10e)]=_0x5aeb67,this[_0x24d12f(0x142)]=_0x51a31a);}get[_0x5258fa(0xaf)](){var _0x210c6e=_0x5258fa;return this[_0x210c6e(0xab)][_0x210c6e(0xf2)]();}[_0x5258fa(0xda)](){var _0x917d5a=_0x5258fa,_0x4ac8ba;(_0x4ac8ba=this[_0x917d5a(0x12a)])==null||_0x4ac8ba[_0x917d5a(0xda)](),this['_status$'][_0x917d5a(0xc0)](_0x917d5a(0xb4)),this[_0x917d5a(0xab)][_0x917d5a(0xbc)]();}[_0x5258fa(0x14f)](){var _0x545346=_0x5258fa;this[_0x545346(0xc8)]||(this['_init']=!0x0,this['_collabSession'][_0x545346(0x99)][_0x545346(0xfc)](_0x3dec29(this[_0x545346(0x11c)]))['subscribe'](_0xd46afb=>{var _0x1fbd64=_0x545346;switch(_0xd46afb){case _0x6072e1[_0x1fbd64(0x13e)]:this['_handleOffline']();break;case _0x6072e1[_0x1fbd64(0x14b)]:this[_0x1fbd64(0xb7)]();break;}}),this['_collabSession']['event$'][_0x545346(0xfc)](_0x3dec29(this[_0x545346(0x11c)]))[_0x545346(0x114)](_0x1ac858=>{var _0x1b92f2=_0x545346;const {eventID:_0x5c80e6}=_0x1ac858;switch(_0x5c80e6){case _0x5e4eb2[_0x1b92f2(0xec)]:this[_0x1b92f2(0xa9)](_0x1ac858);break;case _0x5e4eb2[_0x1b92f2(0xed)]:this[_0x1b92f2(0xb3)](_0x1ac858);break;case _0x5e4eb2['LIVESHARE_TERMINATE']:this[_0x1b92f2(0x12e)]();break;case _0x5e4eb2[_0x1b92f2(0x14a)]:this['_handleNewChangeSets'](_0x1ac858);break;}}));}[_0x5258fa(0x11f)](){var _0x3a1bf7=_0x5258fa;this[_0x3a1bf7(0x106)][_0x3a1bf7(0x133)]({'eventID':_0x5e4eb2[_0x3a1bf7(0x152)],'data':{'unitID':this['_unitID'],'userID':this[_0x3a1bf7(0x106)][_0x3a1bf7(0x105)]()}},this['_unitID']);}[_0x5258fa(0xc5)](){var _0x43a2a9=_0x5258fa;this[_0x43a2a9(0xaf)]===_0x43a2a9(0x126)&&(this[_0x43a2a9(0xab)]['next'](_0x43a2a9(0xb4)),this['_collabSession'][_0x43a2a9(0x133)]({'eventID':_0x5e4eb2[_0x43a2a9(0x147)],'data':{'unitID':this[_0x43a2a9(0xce)]}},this[_0x43a2a9(0xce)]));}[_0x5258fa(0x9a)](){var _0x598f7d=_0x5258fa;this['_status']===_0x598f7d(0xcd)&&(this[_0x598f7d(0xab)]['next'](_0x598f7d(0xdf)),this[_0x598f7d(0x137)]());}[_0x5258fa(0x12c)](){var _0x2f7bb5=_0x5258fa;this[_0x2f7bb5(0xaf)]===_0x2f7bb5(0xdf)&&this[_0x2f7bb5(0x151)]();}[_0x5258fa(0xa9)](_0x4061a7){var _0x39a4b9=_0x5258fa;const {presenter:_0x2665e4}=_0x4061a7[_0x39a4b9(0x124)],_0x3bdc60=this[_0x39a4b9(0x106)]['getMemberID']();this['_presenter']=_0x2665e4,_0x2665e4===_0x3bdc60?(this[_0x39a4b9(0x151)](),this[_0x39a4b9(0x13d)]()):this['_status']!==_0x39a4b9(0xcd)&&(this[_0x39a4b9(0xea)](),this[_0x39a4b9(0x137)]());}[_0x5258fa(0xc1)](){var _0x1567b4=_0x5258fa;const _0x26ce7e={'eventID':_0x5e4eb2[_0x1567b4(0xfb)]};this[_0x1567b4(0x106)][_0x1567b4(0x133)](_0x26ce7e,this[_0x1567b4(0xce)]);}[_0x5258fa(0x12e)](){var _0x2bfd6c=_0x5258fa;this[_0x2bfd6c(0xe2)]=null,this[_0x2bfd6c(0xaf)]!==_0x2bfd6c(0x126)&&this[_0x2bfd6c(0xb0)]();}[_0x5258fa(0xd6)](_0x3ebc91){var _0x21d463=_0x5258fa;if(this[_0x21d463(0xaf)]===_0x21d463(0xdf)&&this[_0x21d463(0xe2)]===_0x3ebc91[_0x21d463(0x124)][_0x21d463(0xbe)]){const _0x595031=_0x3e708c(_0x3ebc91[_0x21d463(0x124)])['mutations'][_0x21d463(0x110)]()[_0x21d463(0xe1)](_0x4d080c=>_0x4d080c['id']===_0x58b5c8['id']);if(_0x595031){const _0x3a3e73=_0x595031[_0x21d463(0x149)][_0x21d463(0xa4)],_0x358585=_0x595031[_0x21d463(0x149)]['sheet']['id'];setTimeout(()=>{var _0x51050b=_0x21d463;this['_commandService'][_0x51050b(0xac)](_0x266111['id'],{'unitId':_0x3a3e73,'subUnitId':_0x358585},{'fromCollab':!0x0});});}}}[_0x5258fa(0x13d)](){var _0x1dfa08=_0x5258fa;this['_status$'][_0x1dfa08(0xc0)]('presenting');const _0x229265=new Map(),_0xf58a46=this[_0x1dfa08(0x12a)]=new _0x2872b8();_0xf58a46[_0x1dfa08(0xd7)](_0x104973(()=>{var _0x5919b3=_0x1dfa08;_0x229265['forEach'](_0x3b52a9=>_0x3b52a9['complete']()),_0x229265[_0x5919b3(0x139)]();})),_0xf58a46[_0x1dfa08(0xd7)](this[_0x1dfa08(0x142)][_0x1dfa08(0xde)](_0x4bd72e=>{var _0x250f8b=_0x1dfa08,_0x23cd5e;if(_0x4bd72e[_0x250f8b(0x129)]!==_0x16b9f5['OPERATION']||!this[_0x250f8b(0x10e)][_0x250f8b(0x12b)](_0x4bd72e['id']))return;const {id:_0x3d9e8f}=_0x4bd72e;let _0xac24dd;_0x229265['has'](_0x3d9e8f)?_0xac24dd=_0x229265[_0x250f8b(0xe5)](_0x3d9e8f):(_0xac24dd=new _0x49a04c(),_0x229265[_0x250f8b(0x112)](_0x3d9e8f,_0xac24dd),_0xac24dd['pipe'](_0x56270f((_0x23cd5e=this['_configService'][_0x250f8b(0xe4)](Pe))!=null?_0x23cd5e:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x250f8b(0x114)](_0x56745a=>{var _0xc97558=_0x250f8b;this[_0xc97558(0x106)][_0xc97558(0x133)]({'eventID':_0x5e4eb2[_0xc97558(0xed)],'data':{'unitID':this[_0xc97558(0xce)],'operations':{[_0x56745a['id']]:{'id':_0x56745a['id'],'params':JSON[_0xc97558(0xc6)](_0x56745a[_0xc97558(0x149)])}}}},this[_0xc97558(0xce)]);})),_0xac24dd[_0x250f8b(0xc0)](_0x4bd72e);})),this[_0x1dfa08(0x10e)][_0x1dfa08(0x13c)](this['_unitID'])[_0x1dfa08(0x12f)](_0x242f72=>this['_collabSession']['send']({'eventID':_0x5e4eb2['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1dfa08(0xce)],'operations':{[_0x242f72['id']]:{'id':_0x242f72['id'],'params':JSON[_0x1dfa08(0xc6)](_0x242f72['params'])}}}},this['_unitID']));}[_0x5258fa(0xea)](){var _0x2207b2=_0x5258fa,_0x530bc5;this[_0x2207b2(0xab)][_0x2207b2(0xc0)](_0x2207b2(0xb4)),(_0x530bc5=this[_0x2207b2(0x12a)])==null||_0x530bc5[_0x2207b2(0xda)](),this[_0x2207b2(0x12a)]=null;}['_startFollowing'](){var _0x8f5826=_0x5258fa,_0x3f857b;(_0x3f857b=this[_0x8f5826(0x12a)])==null||_0x3f857b[_0x8f5826(0xda)](),this['_status$'][_0x8f5826(0xc0)](_0x8f5826(0xdf));}[_0x5258fa(0xb0)](){var _0x21efba=_0x5258fa,_0x35f6ad;this[_0x21efba(0xab)][_0x21efba(0xc0)](_0x21efba(0xb4)),(_0x35f6ad=this[_0x21efba(0x12a)])==null||_0x35f6ad[_0x21efba(0xda)](),this[_0x21efba(0x12a)]=null;}[_0x5258fa(0x151)](){var _0x2a7e36=_0x5258fa,_0x21a69c;this[_0x2a7e36(0xab)][_0x2a7e36(0xc0)](_0x2a7e36(0xcd)),(_0x21a69c=this['_commandDisposable'])==null||_0x21a69c[_0x2a7e36(0xda)]();}[_0x5258fa(0xb3)](_0x84100f){var _0x4c7f83=_0x5258fa;if(['presenting','not-following',_0x4c7f83(0x13f)]['includes'](this[_0x4c7f83(0xaf)])||!_0x84100f[_0x4c7f83(0x124)][_0x4c7f83(0x118)]||_0x84100f['data'][_0x4c7f83(0x118)]===this[_0x4c7f83(0x106)]['getMemberID']())return;this[_0x4c7f83(0xaf)]===_0x4c7f83(0xb4)&&this[_0x4c7f83(0x137)]();const _0x6c73ca=_0x84100f[_0x4c7f83(0x124)][_0x4c7f83(0xae)];Object[_0x4c7f83(0x111)](_0x6c73ca)['forEach'](_0xe83195=>{var _0x1da899=_0x4c7f83;this[_0x1da899(0x142)]['executeCommand'](_0xe83195['id'],_0xe83195[_0x1da899(0x149)]?JSON[_0x1da899(0xd0)](_0xe83195['params']):null,{'fromCollab':!0x0});});}[_0x5258fa(0x135)](){var _0x525eef=_0x5258fa,_0x1df924;this['_status$'][_0x525eef(0xc0)](_0x525eef(0x13f)),(_0x1df924=this[_0x525eef(0x12a)])==null||_0x1df924['dispose']();}[_0x5258fa(0xb7)](){var _0x399713=_0x5258fa;this[_0x399713(0xab)][_0x399713(0xc0)](_0x399713(0xb4)),this['_fetchOperations']();}};C=Z([f(0x2,_0xf2eda3),f(0x3,_0x15c34c(L)),f(0x4,_0x225c55)],C);function Te(){var _0x563dec=_0x5258fa;const _0x4f3789=_0x1a879f(I),_0x2da8c3=_0x1a879f(_0x30f196),_0x2b8b15=_0x2c858e(()=>_0x2da8c3['getCurrentTypeOfUnit$'](_0x14c1f5['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x36aa98,_0x1e141b]=_0x5b847f(null),[_0x4155ab,_0x3d5fef]=_0x5b847f(h['IDLE']),_0x19f582=_0x26071b(null);return _0x2a5c1b(()=>(_0x2b8b15&&_0x4f3789['getLiveShareCoordinator'](_0x2b8b15['getUnitId']())[_0x563dec(0x121)](_0x1be488=>{var _0x2332a0=_0x563dec;_0x1e141b(_0x1be488),_0x19f582[_0x2332a0(0x11a)]=_0x1be488[_0x2332a0(0x148)][_0x2332a0(0x114)](_0x3b665a=>{_0x3d5fef(_0x3b665a);});}),()=>{var _0x3bb493=_0x563dec,_0x22bc4b;(_0x22bc4b=_0x19f582[_0x3bb493(0x11a)])==null||_0x22bc4b[_0x3bb493(0x127)](),_0x19f582[_0x3bb493(0x11a)]=null;}),[_0x2b8b15,_0x4f3789]),_0x36aa98?_0x5e2a77(_0x57c4cd,{'align':_0x563dec(0xf6),'disabled':_0x4155ab===h['OFFLINE'],'className':_0x563dec(0x134),'overlay':_0x5e2a77($e,{'status':_0x4155ab,'coordinator':_0x36aa98}),'children':_0x5e2a77(_0x563dec(0xe3),{'className':_0x3354fe(_0x563dec(0x113),{'univer-cursor-not-allowed':_0x4155ab===h[_0x563dec(0x13e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4155ab!==h[_0x563dec(0x13e)]}),'type':_0x563dec(0xe3),'children':_0x5e2a77(B,{'className':_0x563dec(0xdc)})})}):null;}function $e(_0x2e8138){var _0x257b1=_0x5258fa;const {status:_0x17a195,coordinator:_0x29122c}=_0x2e8138;switch(_0x17a195){case h[_0x257b1(0xd4)]:return _0x5e2a77(Fe,{'coordinator':_0x29122c});case h[_0x257b1(0x13b)]:return _0x5e2a77(He,{'coordinator':_0x29122c});case h['NOT_FOLLOWING']:return _0x5e2a77(je,{'coordinator':_0x29122c});case h[_0x257b1(0x13e)]:return _0x5e2a77(Ve,{});case h[_0x257b1(0xfa)]:return _0x5e2a77(Ue,{'coordinator':_0x29122c});default:return null;}}function Fe(_0x2a2f3a){var _0x5a1536=_0x5258fa;const {coordinator:_0x411181}=_0x2a2f3a;return _0x57e686(_0x49f367,{'children':[_0x5e2a77('div',{'className':_0x5a1536(0x100),'children':_0x5a1536(0x109)}),_0x5e2a77(_0x32a223,{'onClick':()=>_0x411181[_0x5a1536(0x11f)](),'children':_0x5a1536(0x144)})]});}function He(_0x371f8f){var _0x50a77f=_0x5258fa;const {coordinator:_0x4ad7d8}=_0x371f8f;return _0x57e686(_0x49f367,{'children':[_0x5e2a77(_0x50a77f(0xd8),{'className':_0x50a77f(0x100),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x5e2a77(_0x32a223,{'onClick':()=>_0x4ad7d8[_0x50a77f(0x12c)](),'children':_0x50a77f(0xc3)})]});}function je(_0x5a04e3){var _0x16316c=_0x5258fa;const {coordinator:_0x282ada}=_0x5a04e3;return _0x57e686(_0x49f367,{'children':[_0x5e2a77(_0x16316c(0xd8),{'className':_0x16316c(0x100),'children':_0x16316c(0xdd)}),_0x5e2a77(_0x32a223,{'variant':'text','onClick':()=>_0x282ada[_0x16316c(0x9a)](),'children':_0x16316c(0xbd)})]});}function Ue(_0x41aea7){var _0x600243=_0x5258fa;const {coordinator:_0x45db9c}=_0x41aea7;return _0x57e686(_0x49f367,{'children':[_0x5e2a77(_0x600243(0xd8),{'className':_0x600243(0x100),'children':_0x600243(0xf1)}),_0x5e2a77(_0x32a223,{'variant':'default','onClick':()=>_0x45db9c[_0x600243(0xc5)](),'children':_0x600243(0x101)})]});}function Ve(){return _0x5e2a77(_0x49f367,{'children':'You\x27are\x20offline.'});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x539ecf,_0x35670f,_0x5c52e9,_0x29da7d)=>{for(var _0x4237df=_0x29da7d>0x1?void 0x0:_0x29da7d?Me(_0x35670f,_0x5c52e9):_0x35670f,_0x1df4d9=_0x539ecf['length']-0x1,_0xf75b98;_0x1df4d9>=0x0;_0x1df4d9--)(_0xf75b98=_0x539ecf[_0x1df4d9])&&(_0x4237df=_0xf75b98(_0x4237df)||_0x4237df);return _0x4237df;},$=(_0x4cab6c,_0x3edae9)=>(_0x334a58,_0x5b0497)=>_0x3edae9(_0x334a58,_0x5b0497,_0x4cab6c);let b=class extends _0x5d78d5{constructor(_0x3a833c,_0x5786c6){var _0x5f0ba1=_0x5258fa;super(),this[_0x5f0ba1(0xe8)]=_0x3a833c,this[_0x5f0ba1(0x102)]=_0x5786c6,this[_0x5f0ba1(0xff)]();}['_mountLiveShare'](){var _0x38e8ca=_0x5258fa;this[_0x38e8ca(0xfe)](this[_0x38e8ca(0x102)][_0x38e8ca(0x10a)](_0x5e9d9c[_0x38e8ca(0x10f)],()=>_0x21477e(Te,this[_0x38e8ca(0xe8)])));}};b=ke([$(0x0,_0x15c34c(_0x1bb1a3)),$(0x1,_0x48f43a)],b);var Ge=Object[_0x5258fa(0x9f)],We=Object[_0x5258fa(0x9e)],Ye=(_0x366853,_0x2d9f78,_0x4094ca)=>_0x2d9f78 in _0x366853?Ge(_0x366853,_0x2d9f78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4094ca}):_0x366853[_0x2d9f78]=_0x4094ca,Be=(_0x5a9b1f,_0x2ad13e,_0x220fa4,_0x434ca9)=>{for(var _0x5cd7ea=_0x434ca9>0x1?void 0x0:_0x434ca9?We(_0x2ad13e,_0x220fa4):_0x2ad13e,_0x331996=_0x5a9b1f['length']-0x1,_0x11ef89;_0x331996>=0x0;_0x331996--)(_0x11ef89=_0x5a9b1f[_0x331996])&&(_0x5cd7ea=_0x11ef89(_0x5cd7ea)||_0x5cd7ea);return _0x5cd7ea;},F=(_0x56e940,_0x50aec0)=>(_0x1c40fc,_0x498e04)=>_0x50aec0(_0x1c40fc,_0x498e04,_0x56e940),J=(_0x49d951,_0xd45167,_0x5187e5)=>Ye(_0x49d951,typeof _0xd45167!=_0x5258fa(0xbf)?_0xd45167+'':_0xd45167,_0x5187e5);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x607589{constructor(_0x33054d=T,_0x3734dc,_0x1c19b3){var _0x54be2f=_0x5258fa;super(),this['_config']=_0x33054d,this[_0x54be2f(0xe8)]=_0x3734dc,this['_configService']=_0x1c19b3;const {..._0x1f7b91}=_0x1c848f({},T,this[_0x54be2f(0xef)]);this['_configService'][_0x54be2f(0xe6)](Oe,_0x1f7b91);}[_0x5258fa(0xfd)](){var _0x5077c3=_0x5258fa;_0x1910a1(this[_0x5077c3(0xe8)],_0x2ab882([[L],[I],[m],[b]],this[_0x5077c3(0xef)][_0x5077c3(0x130)])),_0xbfe10e(this[_0x5077c3(0xe8)],[[m]]);}[_0x5258fa(0x128)](){var _0xda77b3=_0x5258fa;_0xbfe10e(this[_0xda77b3(0xe8)],[[b]]);}};J(O,_0x5258fa(0x129),_0x14c1f5[_0x5258fa(0xd1)]),J(O,'pluginName',Ze),O=Be([_0x36185f(_0xbe77e1),F(0x1,_0x15c34c(_0x1bb1a3)),F(0x2,_0xf2eda3)],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 _0x3eb66f=_0xaf36;(function(_0x24bffa,_0x48a22d){var _0x44bc06=_0xaf36,_0xadd4dc=_0x24bffa();while(!![]){try{var _0x1ea307=parseInt(_0x44bc06(0x118))/0x1*(parseInt(_0x44bc06(0x195))/0x2)+-parseInt(_0x44bc06(0x16c))/0x3+parseInt(_0x44bc06(0x196))/0x4+-parseInt(_0x44bc06(0x14c))/0x5+parseInt(_0x44bc06(0x11f))/0x6+parseInt(_0x44bc06(0x125))/0x7*(-parseInt(_0x44bc06(0x102))/0x8)+parseInt(_0x44bc06(0x185))/0x9;if(_0x1ea307===_0x48a22d)break;else _0xadd4dc['push'](_0xadd4dc['shift']());}catch(_0x2666aa){_0xadd4dc['push'](_0xadd4dc['shift']());}}}(_0x59c0,0xb71bb));var q=Object[_0x3eb66f(0x10a)],z=(_0x59cb9d,_0x39743b,_0xdc1b55)=>_0x39743b in _0x59cb9d?q(_0x59cb9d,_0x39743b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xdc1b55}):_0x59cb9d[_0x39743b]=_0xdc1b55,d=(_0xd68d5f,_0x5d7255,_0x134a70)=>z(_0xd68d5f,typeof _0x5d7255!=_0x3eb66f(0x15b)?_0x5d7255+'':_0x5d7255,_0x134a70);import{CollaborationSessionService as _0x1b8367,SessionStatus as _0x39791d,UniverCollaborationClientPlugin as _0x26cab8}from'@univerjs-pro/collaboration-client';import{Disposable as _0x28094d,toDisposable as _0x56fa4e,Inject as _0x3f84a3,IUniverInstanceService as _0x516a71,Injector as _0x15d8b5,IConfigService as _0x314f53,ICommandService as _0x39ff78,RxDisposable as _0x2968d7,UniverInstanceType as _0x58c155,DisposableCollection as _0x22943b,CommandType as _0x50cabc,DependentOn as _0x419c79,Plugin as _0x47a77d,merge as _0x1f5ca3,registerDependencies as _0x1df7a9,mergeOverrideWithDependencies as _0x227802,touchDependencies as _0x4f8b46}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3b7bd5,InsertSheetMutation as _0x2a9f7c}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x22565f,SetScrollOperation as _0x1c3c05}from'@univerjs/sheets-ui';import{useDependency as _0x318ee9,useObservable as _0x394850,IUIPartsService as _0x326cbf,BuiltInUIPart as _0x45e07f,connectInjector as _0x67a89}from'@univerjs/ui';import{jsx as _0x317f25,jsxs as _0x387033,Fragment as _0xcbf086}from'react/jsx-runtime';import{Dropdown as _0x11722c,clsx as _0x81ab49,Button as _0x29954b}from'@univerjs/design';import{forwardRef as _0x33acf1,useRef as _0x3891b2,createElement as _0x5c13bc,useState as _0xd7af93,useEffect as _0x59b4f4}from'react';import{CollaborationEvent as _0x40c637,parseProtocolChangeset as _0x4c17bf}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x22c326,Subject as _0x4a1280}from'rxjs';function _0xaf36(_0x509563,_0x237477){var _0x59c0c3=_0x59c0();return _0xaf36=function(_0xaf3622,_0x5241e9){_0xaf3622=_0xaf3622-0x100;var _0x520cd9=_0x59c0c3[_0xaf3622];return _0x520cd9;},_0xaf36(_0x509563,_0x237477);}function _0x59c0(){var _0x40178f=['9165863puziSU','not-following','LIVESHARE_TERMINATE','indexOf','UNIVER_SHEET','path','xlink:href','use','tryStartPresenting','pluginName','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','mask','_status$','_mountLiveShare','function','colorChannel1','FOLLOWING','event$','text','getMemberID','_unitID','hasOwnProperty','getConfig','_handleTerminate','getValue','Start\x20following','status$','_injector','unsubscribe','div','getLiveShareCoordinator','children','getOwnPropertySymbols','LIVESHARE_FETCH_OPERATIONS','icon','toString','OFFLINE','type','You\x27are\x20offline.','3807035vbYxKl','get','_stopFollowing','delete','_univerInstanceService','trim','You\x27re\x20not\x20following\x20the\x20presenter','next','Stop\x20presenting','entries','concat','parse','dispose','registerSharedOperation','_commandDisposable','symbol','map','PRESENTING','_startFollowing','_liveShareService','stopFollowing','getUnitId','_stopPresenting','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','evenodd','UNIVER_UNKNOWN','IDLE','defIds','svg','replace','univer-w-full\x20univer-mb-3\x20univer-text-sm','following','1092006djtKtZ','_fetchOperations','complete','You\x27re\x20following\x20the\x20presenter','_handleOperation','_presenter','dispose$','send','_handleNewHost','sessionStatus$','tag','onStarting','0\x200\x2017\x2017','_reporters','displayName','getTypeOfUnitAdded$','asObservable','http://www.w3.org/2000/svg','_startPresenting','getInitialStates','LIVESHARE_OPERATION','shouldShareOperation','subscribe','disposeWithMe','has','2694780ifHsJH','currentColor','operations','_handleOffline','getTypeOfUnitDisposed$','_status','attrs','unitId','NOT_FOLLOWING','idle','live-share.config','univer-size-4','_uiPartsService','registerComponent','assign','className','1892318vsNcDN','4099936nHSwvN','button','presenting','fill','memberID','_init','_entities','_config','registerInitialStateReporter','presenter','createInstance','from','startFollowing','length','stopPresenting','OPERATION','HEADER_MENU','offline','executeCommand','includes','default','string','8MxjwOj','_sharedOperations','url(#$1','_startLiveShareCoordinator','requireSession','params','UNIVER_LIVE_SHARE_PLUGIN','_commandService','defineProperty','_handleOnline','call','set','data','Start','random','univerjs-icon\x20univerjs-icon-','_handleNewChangeSets','setConfig','_collabSession','forEach','idSuffix','getOwnPropertyDescriptor','1ruDppF','stringify','init','_configService','pipe','add','1em','5485596ykxVvK','prototype','_collabSessionService','defs','current','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'];_0x59c0=function(){return _0x40178f;};return _0x59c0();}import{takeUntil as _0x64489,throttleTime as _0x1cb448}from'rxjs/operators';const Oe=_0x3eb66f(0x18f),T={};class L extends _0x28094d{constructor(){var _0x2460f1=_0x3eb66f;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x2460f1(0x179),new Set());}[_0x3eb66f(0x159)](_0x465716){var _0xffa05f=_0x3eb66f;return this[_0xffa05f(0x103)][_0xffa05f(0x11d)](_0x465716),_0x56fa4e(()=>this[_0xffa05f(0x103)][_0xffa05f(0x14f)](_0x465716));}[_0x3eb66f(0x19e)](_0xe08eaa){var _0x5d5a16=_0x3eb66f;return this[_0x5d5a16(0x179)][_0x5d5a16(0x11d)](_0xe08eaa),_0x56fa4e(()=>this['_reporters'][_0x5d5a16(0x14f)](_0xe08eaa));}[_0x3eb66f(0x181)](_0x3640ae){var _0x44c344=_0x3eb66f;return this[_0x44c344(0x103)]['has'](_0x3640ae);}[_0x3eb66f(0x17f)](_0x130761){var _0x40ab2f=_0x3eb66f;return Array[_0x40ab2f(0x1a1)](this[_0x40ab2f(0x179)])[_0x40ab2f(0x15c)](_0x14bbfb=>_0x14bbfb(_0x130761));}}var Ee=Object[_0x3eb66f(0x117)],we=(_0x547a73,_0x4abe3f,_0x24a2f9,_0x20d92a)=>{var _0x126fbd=_0x3eb66f;for(var _0x566479=_0x20d92a>0x1?void 0x0:_0x20d92a?Ee(_0x4abe3f,_0x24a2f9):_0x4abe3f,_0x132d91=_0x547a73[_0x126fbd(0x1a3)]-0x1,_0x17fc56;_0x132d91>=0x0;_0x132d91--)(_0x17fc56=_0x547a73[_0x132d91])&&(_0x566479=_0x17fc56(_0x566479)||_0x566479);return _0x566479;},Ne=(_0x44562a,_0x59caee)=>(_0x37ca82,_0x13bee0)=>_0x59caee(_0x37ca82,_0x13bee0,_0x44562a);let m=class extends _0x28094d{constructor(_0x5ad8d4){var _0x331d83=_0x3eb66f;super(),this[_0x331d83(0x15f)]=_0x5ad8d4,this[_0x331d83(0x19b)]();}['_init'](){var _0x10c4bc=_0x3eb66f;[_0x22565f['id'],_0x1c3c05['id'],_0x3b7bd5['id']][_0x10c4bc(0x115)](_0x3b68c5=>{var _0x138e3b=_0x10c4bc;this[_0x138e3b(0x183)](this['_liveShareService'][_0x138e3b(0x159)](_0x3b68c5));});}};m=we([Ne(0x0,_0x3f84a3(L))],m);var c=function(){var _0x264bf1=_0x3eb66f;return c=Object[_0x264bf1(0x193)]||function(_0x1729ff){var _0x4dfda6=_0x264bf1;for(var _0x36d04a,_0x34fa1b=0x1,_0x82953b=arguments[_0x4dfda6(0x1a3)];_0x34fa1b<_0x82953b;_0x34fa1b++){_0x36d04a=arguments[_0x34fa1b];for(var _0x93544f in _0x36d04a)Object[_0x4dfda6(0x120)][_0x4dfda6(0x13a)][_0x4dfda6(0x10c)](_0x36d04a,_0x93544f)&&(_0x1729ff[_0x93544f]=_0x36d04a[_0x93544f]);}return _0x1729ff;},c['apply'](this,arguments);},Ce=function(_0x45a122,_0x493b35){var _0x11f1e8=_0x3eb66f,_0x5ca805={};for(var _0x1ae2a4 in _0x45a122)Object['prototype'][_0x11f1e8(0x13a)][_0x11f1e8(0x10c)](_0x45a122,_0x1ae2a4)&&_0x493b35[_0x11f1e8(0x128)](_0x1ae2a4)<0x0&&(_0x5ca805[_0x1ae2a4]=_0x45a122[_0x1ae2a4]);if(_0x45a122!=null&&typeof Object[_0x11f1e8(0x145)]==_0x11f1e8(0x133)){for(var _0xb1b3a1=0x0,_0x1ae2a4=Object['getOwnPropertySymbols'](_0x45a122);_0xb1b3a1<_0x1ae2a4[_0x11f1e8(0x1a3)];_0xb1b3a1++)_0x493b35[_0x11f1e8(0x128)](_0x1ae2a4[_0xb1b3a1])<0x0&&Object[_0x11f1e8(0x120)]['propertyIsEnumerable'][_0x11f1e8(0x10c)](_0x45a122,_0x1ae2a4[_0xb1b3a1])&&(_0x5ca805[_0x1ae2a4[_0xb1b3a1]]=_0x45a122[_0x1ae2a4[_0xb1b3a1]]);}return _0x5ca805;},W=_0x33acf1(function(_0x4ebfab,_0x4cd491){var _0x4a0548=_0x3eb66f,_0x110929=_0x4ebfab['icon'],_0x116ffe=_0x4ebfab['id'],_0x22281a=_0x4ebfab['className'],_0x23edd6=_0x4ebfab['extend'],_0x379481=Ce(_0x4ebfab,[_0x4a0548(0x147),'id',_0x4a0548(0x194),'extend']),_0x3c434a=_0x4a0548(0x111)[_0x4a0548(0x156)](_0x116ffe,'\x20')[_0x4a0548(0x156)](_0x22281a||'')[_0x4a0548(0x151)](),_0x293f41=_0x3891b2('_'[_0x4a0548(0x156)](Le()));return Y(_0x110929,''[_0x4a0548(0x156)](_0x116ffe),{'defIds':_0x110929[_0x4a0548(0x167)],'idSuffix':_0x293f41[_0x4a0548(0x123)]},c({'ref':_0x4cd491,'className':_0x3c434a},_0x379481),_0x23edd6);});function Y(_0x561962,_0x416939,_0x5b956a,_0x38f1d3,_0x270928){var _0x3a3dee=_0x3eb66f;return _0x5c13bc(_0x561962['tag'],c(c({'key':_0x416939},De(_0x561962,_0x5b956a,_0x270928)),_0x38f1d3),(xe(_0x561962,_0x5b956a)[_0x3a3dee(0x144)]||[])['map'](function(_0x5d28b7,_0x13d91d){var _0x460642=_0x3a3dee;return Y(_0x5d28b7,''[_0x460642(0x156)](_0x416939,'-')[_0x460642(0x156)](_0x561962[_0x460642(0x176)],'-')[_0x460642(0x156)](_0x13d91d),_0x5b956a,void 0x0,_0x270928);}));}function De(_0x18d6f1,_0x2806a0,_0x162d92){var _0x149b4b=_0x3eb66f,_0x2dcbad=c({},_0x18d6f1[_0x149b4b(0x18b)]);_0x162d92!=null&&_0x162d92[_0x149b4b(0x134)]&&_0x2dcbad[_0x149b4b(0x199)]==='colorChannel1'&&(_0x2dcbad[_0x149b4b(0x199)]=_0x162d92[_0x149b4b(0x134)]),_0x18d6f1[_0x149b4b(0x176)]==='mask'&&_0x2dcbad['id']&&(_0x2dcbad['id']=_0x2dcbad['id']+_0x2806a0[_0x149b4b(0x116)]),Object[_0x149b4b(0x155)](_0x2dcbad)[_0x149b4b(0x115)](function(_0x53c51a){var _0x29834c=_0x149b4b,_0x208bcf=_0x53c51a[0x0],_0x9fe15c=_0x53c51a[0x1];_0x208bcf===_0x29834c(0x130)&&typeof _0x9fe15c==_0x29834c(0x101)&&(_0x2dcbad[_0x208bcf]=_0x9fe15c[_0x29834c(0x169)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x2806a0[_0x29834c(0x116)],')')));});var _0x5ca4b2=_0x2806a0['defIds'];return!_0x5ca4b2||_0x5ca4b2[_0x149b4b(0x1a3)]===0x0||(_0x18d6f1[_0x149b4b(0x176)]===_0x149b4b(0x12c)&&_0x2dcbad[_0x149b4b(0x12b)]&&(_0x2dcbad[_0x149b4b(0x12b)]=_0x2dcbad[_0x149b4b(0x12b)]+_0x2806a0['idSuffix']),Object[_0x149b4b(0x155)](_0x2dcbad)[_0x149b4b(0x115)](function(_0x54a16b){var _0x70d968=_0x149b4b,_0x39beda=_0x54a16b[0x0],_0x16a7f2=_0x54a16b[0x1];typeof _0x16a7f2==_0x70d968(0x101)&&(_0x2dcbad[_0x39beda]=_0x16a7f2[_0x70d968(0x169)](/url\(#(.*)\)/,_0x70d968(0x104)['concat'](_0x2806a0[_0x70d968(0x116)],')')));})),_0x2dcbad;}function xe(_0x34c4d2,_0x13d914){var _0x5e7632=_0x3eb66f,_0x1b3355,_0x472dc8=_0x13d914[_0x5e7632(0x167)];return!_0x472dc8||_0x472dc8['length']===0x0?_0x34c4d2:_0x34c4d2[_0x5e7632(0x176)]===_0x5e7632(0x122)&&(!((_0x1b3355=_0x34c4d2[_0x5e7632(0x144)])===null||_0x1b3355===void 0x0)&&_0x1b3355[_0x5e7632(0x1a3)])?c(c({},_0x34c4d2),{'children':_0x34c4d2[_0x5e7632(0x144)][_0x5e7632(0x15c)](function(_0x3b9116){var _0x200a7a=_0x5e7632;return typeof _0x3b9116[_0x200a7a(0x18b)]['id']=='string'&&_0x472dc8&&_0x472dc8[_0x200a7a(0x1a9)](_0x3b9116[_0x200a7a(0x18b)]['id'])?c(c({},_0x3b9116),{'attrs':c(c({},_0x3b9116[_0x200a7a(0x18b)]),{'id':_0x3b9116[_0x200a7a(0x18b)]['id']+_0x13d914[_0x200a7a(0x116)]})}):_0x3b9116;})}):_0x34c4d2;}function Le(){var _0x2323be=_0x3eb66f;return Math[_0x2323be(0x110)]()[_0x2323be(0x148)](0x24)['substring'](0x2,0x8);}W[_0x3eb66f(0x17a)]='UniverIcon';var ye={'tag':_0x3eb66f(0x168),'attrs':{'xmlns':_0x3eb66f(0x17d),'fill':'none','viewBox':_0x3eb66f(0x178),'width':_0x3eb66f(0x11e),'height':'1em'},'children':[{'tag':_0x3eb66f(0x12a),'attrs':{'fill':_0x3eb66f(0x186),'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':_0x3eb66f(0x186),'d':_0x3eb66f(0x12f),'fillRule':_0x3eb66f(0x164),'clipRule':'evenodd'}}]},B=_0x33acf1(function(_0x1b4209,_0x447a32){return _0x5c13bc(W,Object['assign']({},_0x1b4209,{'id':'live-share-icon','ref':_0x447a32,'icon':ye}));});B[_0x3eb66f(0x17a)]='LiveShareIcon';var Re=Object[_0x3eb66f(0x117)],Z=(_0xa5b805,_0x216d71,_0x28e6ff,_0x58feb7)=>{var _0x80a609=_0x3eb66f;for(var _0x1fada2=_0x58feb7>0x1?void 0x0:_0x58feb7?Re(_0x216d71,_0x28e6ff):_0x216d71,_0x304dd2=_0xa5b805[_0x80a609(0x1a3)]-0x1,_0x14e103;_0x304dd2>=0x0;_0x304dd2--)(_0x14e103=_0xa5b805[_0x304dd2])&&(_0x1fada2=_0x14e103(_0x1fada2)||_0x1fada2);return _0x1fada2;},f=(_0x2e5c93,_0x4eaa7)=>(_0x3b602f,_0x474e19)=>_0x4eaa7(_0x3b602f,_0x474e19,_0x2e5c93);let I=class extends _0x2968d7{constructor(_0x191f88,_0x980a71,_0x160263){var _0x43201a=_0x3eb66f;super(),d(this,_0x43201a(0x19c),new Map()),(this[_0x43201a(0x150)]=_0x191f88,this['_injector']=_0x980a71,this[_0x43201a(0x121)]=_0x160263,this[_0x43201a(0x19b)]());}async['getLiveShareCoordinator'](_0x644c2b){var _0x1dfabd=_0x3eb66f;return this[_0x1dfabd(0x19c)][_0x1dfabd(0x184)](_0x644c2b)||await this[_0x1dfabd(0x105)](_0x644c2b),this[_0x1dfabd(0x19c)][_0x1dfabd(0x14d)](_0x644c2b);}['_init'](){var _0x2e9506=_0x3eb66f;this[_0x2e9506(0x150)][_0x2e9506(0x17b)](_0x58c155[_0x2e9506(0x129)])[_0x2e9506(0x11c)](_0x64489(this[_0x2e9506(0x172)]))[_0x2e9506(0x182)](async _0x425593=>{var _0x4945d4=_0x2e9506;const _0x1d9035=_0x425593[_0x4945d4(0x161)]();this['_entities'][_0x4945d4(0x184)](_0x1d9035)||this[_0x4945d4(0x105)](_0x1d9035);}),this[_0x2e9506(0x150)][_0x2e9506(0x189)](_0x58c155[_0x2e9506(0x129)])[_0x2e9506(0x11c)](_0x64489(this['dispose$']))[_0x2e9506(0x182)](_0x515a74=>{var _0x4a7a1c=_0x2e9506;const _0x26e7f1=_0x515a74[_0x4a7a1c(0x161)](),_0x1dc535=this['_entities']['get'](_0x26e7f1);_0x1dc535==null||_0x1dc535['dispose']();});}async[_0x3eb66f(0x105)](_0x37258e){var _0x2d09bf=_0x3eb66f;const _0x53f0ba=await this[_0x2d09bf(0x121)][_0x2d09bf(0x106)](_0x37258e),_0x287bf8=this[_0x2d09bf(0x140)][_0x2d09bf(0x1a0)](C,_0x37258e,_0x53f0ba);return _0x287bf8[_0x2d09bf(0x11a)](),this['_entities'][_0x2d09bf(0x10d)](_0x37258e,_0x287bf8),_0x287bf8;}};I=Z([f(0x0,_0x516a71),f(0x1,_0x3f84a3(_0x15d8b5)),f(0x2,_0x3f84a3(_0x1b8367))],I);var h=(_0x5cd094=>(_0x5cd094[_0x3eb66f(0x149)]=_0x3eb66f(0x1a7),_0x5cd094[_0x3eb66f(0x166)]='idle',_0x5cd094[_0x3eb66f(0x135)]=_0x3eb66f(0x16b),_0x5cd094[_0x3eb66f(0x18d)]=_0x3eb66f(0x126),_0x5cd094[_0x3eb66f(0x15d)]=_0x3eb66f(0x198),_0x5cd094))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x2968d7{constructor(_0x2835e7,_0x597389,_0x1ad216,_0x42f58a,_0x30b660){var _0x4637f6=_0x3eb66f;super(),d(this,_0x4637f6(0x131),new _0x22c326(_0x4637f6(0x18e))),d(this,'status$',this[_0x4637f6(0x131)][_0x4637f6(0x17c)]()),d(this,'_init',!0x1),d(this,_0x4637f6(0x15a),null),d(this,_0x4637f6(0x171),null),(this[_0x4637f6(0x139)]=_0x2835e7,this[_0x4637f6(0x114)]=_0x597389,this[_0x4637f6(0x11b)]=_0x1ad216,this[_0x4637f6(0x15f)]=_0x42f58a,this[_0x4637f6(0x109)]=_0x30b660);}get[_0x3eb66f(0x18a)](){var _0x6a0a02=_0x3eb66f;return this[_0x6a0a02(0x131)][_0x6a0a02(0x13d)]();}[_0x3eb66f(0x158)](){var _0x22eac7=_0x3eb66f,_0x3e9a4e;(_0x3e9a4e=this[_0x22eac7(0x15a)])==null||_0x3e9a4e[_0x22eac7(0x158)](),this[_0x22eac7(0x131)][_0x22eac7(0x153)](_0x22eac7(0x18e)),this[_0x22eac7(0x131)][_0x22eac7(0x16e)]();}[_0x3eb66f(0x11a)](){var _0x4c977a=_0x3eb66f;this[_0x4c977a(0x19b)]||(this['_init']=!0x0,this[_0x4c977a(0x114)][_0x4c977a(0x175)][_0x4c977a(0x11c)](_0x64489(this['dispose$']))[_0x4c977a(0x182)](_0xf72c5b=>{var _0x17f580=_0x4c977a;switch(_0xf72c5b){case _0x39791d[_0x17f580(0x149)]:this['_handleOffline']();break;case _0x39791d['ONLINE']:this[_0x17f580(0x10b)]();break;}}),this[_0x4c977a(0x114)][_0x4c977a(0x136)]['pipe'](_0x64489(this['dispose$']))[_0x4c977a(0x182)](_0x4f1338=>{var _0x251f11=_0x4c977a;const {eventID:_0x204de6}=_0x4f1338;switch(_0x204de6){case _0x40c637['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x4f1338);break;case _0x40c637[_0x251f11(0x180)]:this[_0x251f11(0x170)](_0x4f1338);break;case _0x40c637['LIVESHARE_TERMINATE']:this[_0x251f11(0x13c)]();break;case _0x40c637['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x4f1338);break;}}));}['tryStartPresenting'](){var _0x1eb66c=_0x3eb66f;this[_0x1eb66c(0x114)]['send']({'eventID':_0x40c637['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1eb66c(0x139)],'userID':this[_0x1eb66c(0x114)][_0x1eb66c(0x138)]()}},this[_0x1eb66c(0x139)]);}[_0x3eb66f(0x1a4)](){var _0x327742=_0x3eb66f;this['_status']===_0x327742(0x198)&&(this[_0x327742(0x131)][_0x327742(0x153)]('idle'),this[_0x327742(0x114)][_0x327742(0x173)]({'eventID':_0x40c637[_0x327742(0x127)],'data':{'unitID':this[_0x327742(0x139)]}},this[_0x327742(0x139)]));}['startFollowing'](){var _0x507ba6=_0x3eb66f;this[_0x507ba6(0x18a)]===_0x507ba6(0x126)&&(this['_status$'][_0x507ba6(0x153)](_0x507ba6(0x16b)),this[_0x507ba6(0x15e)]());}['stopFollowing'](){var _0x3e30d8=_0x3eb66f;this[_0x3e30d8(0x18a)]===_0x3e30d8(0x16b)&&this['_stopFollowing']();}[_0x3eb66f(0x174)](_0x15215b){var _0x46f13e=_0x3eb66f;const {presenter:_0x30af10}=_0x15215b[_0x46f13e(0x10e)],_0x54b30e=this[_0x46f13e(0x114)]['getMemberID']();this[_0x46f13e(0x171)]=_0x30af10,_0x30af10===_0x54b30e?(this['_stopFollowing'](),this[_0x46f13e(0x17e)]()):this[_0x46f13e(0x18a)]!==_0x46f13e(0x126)&&(this[_0x46f13e(0x162)](),this[_0x46f13e(0x15e)]());}[_0x3eb66f(0x16d)](){var _0x5d4bd5=_0x3eb66f;const _0x40c1a6={'eventID':_0x40c637[_0x5d4bd5(0x146)]};this['_collabSession'][_0x5d4bd5(0x173)](_0x40c1a6,this[_0x5d4bd5(0x139)]);}[_0x3eb66f(0x13c)](){var _0x659622=_0x3eb66f;this[_0x659622(0x171)]=null,this[_0x659622(0x18a)]!==_0x659622(0x198)&&this['_beIdle']();}[_0x3eb66f(0x112)](_0x2e1d73){var _0x2280f4=_0x3eb66f;if(this['_status']==='following'&&this[_0x2280f4(0x171)]===_0x2e1d73['data'][_0x2280f4(0x19a)]){const _0x302ee2=_0x4c17bf(_0x2e1d73['data'])['mutations']['reverse']()['find'](_0x20a2d0=>_0x20a2d0['id']===_0x2a9f7c['id']);if(_0x302ee2){const _0x543e43=_0x302ee2[_0x2280f4(0x107)][_0x2280f4(0x18c)],_0x335cc4=_0x302ee2[_0x2280f4(0x107)]['sheet']['id'];setTimeout(()=>{var _0x25ca2b=_0x2280f4;this['_commandService'][_0x25ca2b(0x1a8)](_0x3b7bd5['id'],{'unitId':_0x543e43,'subUnitId':_0x335cc4},{'fromCollab':!0x0});});}}}[_0x3eb66f(0x17e)](){var _0x23010c=_0x3eb66f;this['_status$'][_0x23010c(0x153)](_0x23010c(0x198));const _0x5ceb43=new Map(),_0x3ab671=this[_0x23010c(0x15a)]=new _0x22943b();_0x3ab671[_0x23010c(0x11d)](_0x56fa4e(()=>{var _0x5180d0=_0x23010c;_0x5ceb43['forEach'](_0x122fc5=>_0x122fc5[_0x5180d0(0x16e)]()),_0x5ceb43['clear']();})),_0x3ab671[_0x23010c(0x11d)](this[_0x23010c(0x109)]['onCommandExecuted'](_0x57b028=>{var _0x5c255f=_0x23010c,_0x40a3fa;if(_0x57b028[_0x5c255f(0x14a)]!==_0x50cabc[_0x5c255f(0x1a5)]||!this[_0x5c255f(0x15f)]['shouldShareOperation'](_0x57b028['id']))return;const {id:_0x18c313}=_0x57b028;let _0x3ded07;_0x5ceb43[_0x5c255f(0x184)](_0x18c313)?_0x3ded07=_0x5ceb43['get'](_0x18c313):(_0x3ded07=new _0x4a1280(),_0x5ceb43['set'](_0x18c313,_0x3ded07),_0x3ded07['pipe'](_0x1cb448((_0x40a3fa=this[_0x5c255f(0x11b)][_0x5c255f(0x13b)](Pe))!=null?_0x40a3fa:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5c255f(0x182)](_0x4165a6=>{var _0x3fe6d5=_0x5c255f;this[_0x3fe6d5(0x114)]['send']({'eventID':_0x40c637['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x4165a6['id']]:{'id':_0x4165a6['id'],'params':JSON[_0x3fe6d5(0x119)](_0x4165a6[_0x3fe6d5(0x107)])}}}},this['_unitID']);})),_0x3ded07[_0x5c255f(0x153)](_0x57b028);})),this[_0x23010c(0x15f)][_0x23010c(0x17f)](this[_0x23010c(0x139)])[_0x23010c(0x115)](_0x16de63=>this[_0x23010c(0x114)]['send']({'eventID':_0x40c637[_0x23010c(0x180)],'data':{'unitID':this['_unitID'],'operations':{[_0x16de63['id']]:{'id':_0x16de63['id'],'params':JSON[_0x23010c(0x119)](_0x16de63[_0x23010c(0x107)])}}}},this[_0x23010c(0x139)]));}[_0x3eb66f(0x162)](){var _0x130467=_0x3eb66f,_0x54fd2e;this[_0x130467(0x131)]['next'](_0x130467(0x18e)),(_0x54fd2e=this[_0x130467(0x15a)])==null||_0x54fd2e[_0x130467(0x158)](),this['_commandDisposable']=null;}[_0x3eb66f(0x15e)](){var _0x510ac4=_0x3eb66f,_0x55a288;(_0x55a288=this[_0x510ac4(0x15a)])==null||_0x55a288[_0x510ac4(0x158)](),this['_status$']['next'](_0x510ac4(0x16b));}['_beIdle'](){var _0x2218a8=_0x3eb66f,_0x22ce86;this[_0x2218a8(0x131)][_0x2218a8(0x153)](_0x2218a8(0x18e)),(_0x22ce86=this['_commandDisposable'])==null||_0x22ce86[_0x2218a8(0x158)](),this['_commandDisposable']=null;}[_0x3eb66f(0x14e)](){var _0x535976=_0x3eb66f,_0x2c0dde;this['_status$'][_0x535976(0x153)](_0x535976(0x126)),(_0x2c0dde=this['_commandDisposable'])==null||_0x2c0dde['dispose']();}[_0x3eb66f(0x170)](_0x24f7c7){var _0x15c87a=_0x3eb66f;if([_0x15c87a(0x198),_0x15c87a(0x126),_0x15c87a(0x1a7)][_0x15c87a(0x1a9)](this[_0x15c87a(0x18a)])||!_0x24f7c7['data']['presenter']||_0x24f7c7[_0x15c87a(0x10e)][_0x15c87a(0x19f)]===this['_collabSession'][_0x15c87a(0x138)]())return;this[_0x15c87a(0x18a)]===_0x15c87a(0x18e)&&this['_startFollowing']();const _0x2f485e=_0x24f7c7[_0x15c87a(0x10e)][_0x15c87a(0x187)];Object['values'](_0x2f485e)[_0x15c87a(0x115)](_0x158936=>{var _0x512fb5=_0x15c87a;this['_commandService'][_0x512fb5(0x1a8)](_0x158936['id'],_0x158936[_0x512fb5(0x107)]?JSON[_0x512fb5(0x157)](_0x158936[_0x512fb5(0x107)]):null,{'fromCollab':!0x0});});}[_0x3eb66f(0x188)](){var _0x3a44e5=_0x3eb66f,_0x574c0c;this['_status$']['next'](_0x3a44e5(0x1a7)),(_0x574c0c=this['_commandDisposable'])==null||_0x574c0c[_0x3a44e5(0x158)]();}['_handleOnline'](){var _0x2d947d=_0x3eb66f;this[_0x2d947d(0x131)][_0x2d947d(0x153)](_0x2d947d(0x18e)),this[_0x2d947d(0x16d)]();}};C=Z([f(0x2,_0x314f53),f(0x3,_0x3f84a3(L)),f(0x4,_0x39ff78)],C);function Te(){var _0x41b232=_0x3eb66f;const _0x206bc3=_0x318ee9(I),_0x3cb97e=_0x318ee9(_0x516a71),_0x2713e6=_0x394850(()=>_0x3cb97e['getCurrentTypeOfUnit$'](_0x58c155[_0x41b232(0x129)]),void 0x0,!0x1,[]),[_0x21c736,_0x2b34db]=_0xd7af93(null),[_0x13b350,_0x3b5c0d]=_0xd7af93(h[_0x41b232(0x166)]),_0x2731f4=_0x3891b2(null);return _0x59b4f4(()=>(_0x2713e6&&_0x206bc3[_0x41b232(0x143)](_0x2713e6['getUnitId']())['then'](_0x3e4914=>{var _0x5f29cb=_0x41b232;_0x2b34db(_0x3e4914),_0x2731f4['current']=_0x3e4914[_0x5f29cb(0x13f)][_0x5f29cb(0x182)](_0x471ea4=>{_0x3b5c0d(_0x471ea4);});}),()=>{var _0x9e0507=_0x41b232,_0x45d08a;(_0x45d08a=_0x2731f4[_0x9e0507(0x123)])==null||_0x45d08a[_0x9e0507(0x141)](),_0x2731f4['current']=null;}),[_0x2713e6,_0x206bc3]),_0x21c736?_0x317f25(_0x11722c,{'align':'end','disabled':_0x13b350===h[_0x41b232(0x149)],'className':_0x41b232(0x124),'overlay':_0x317f25($e,{'status':_0x13b350,'coordinator':_0x21c736}),'children':_0x317f25(_0x41b232(0x197),{'className':_0x81ab49(_0x41b232(0x163),{'univer-cursor-not-allowed':_0x13b350===h[_0x41b232(0x149)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x13b350!==h[_0x41b232(0x149)]}),'type':_0x41b232(0x197),'children':_0x317f25(B,{'className':_0x41b232(0x190)})})}):null;}function $e(_0x4fd75a){var _0x3b8523=_0x3eb66f;const {status:_0x26b86d,coordinator:_0x49d2df}=_0x4fd75a;switch(_0x26b86d){case h[_0x3b8523(0x166)]:return _0x317f25(Fe,{'coordinator':_0x49d2df});case h[_0x3b8523(0x135)]:return _0x317f25(He,{'coordinator':_0x49d2df});case h[_0x3b8523(0x18d)]:return _0x317f25(je,{'coordinator':_0x49d2df});case h[_0x3b8523(0x149)]:return _0x317f25(Ve,{});case h[_0x3b8523(0x15d)]:return _0x317f25(Ue,{'coordinator':_0x49d2df});default:return null;}}function Fe(_0x499b26){var _0x2d2586=_0x3eb66f;const {coordinator:_0x1df800}=_0x499b26;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0x2d2586(0x142),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x317f25(_0x29954b,{'onClick':()=>_0x1df800[_0x2d2586(0x12d)](),'children':_0x2d2586(0x10f)})]});}function He(_0x553cbf){var _0x305378=_0x3eb66f;const {coordinator:_0x45933c}=_0x553cbf;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0x305378(0x142),{'className':_0x305378(0x16a),'children':_0x305378(0x16f)}),_0x317f25(_0x29954b,{'onClick':()=>_0x45933c[_0x305378(0x160)](),'children':'Stop\x20following'})]});}function je(_0x59c570){var _0x130793=_0x3eb66f;const {coordinator:_0x535713}=_0x59c570;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0x130793(0x142),{'className':_0x130793(0x16a),'children':_0x130793(0x152)}),_0x317f25(_0x29954b,{'variant':_0x130793(0x137),'onClick':()=>_0x535713[_0x130793(0x1a2)](),'children':_0x130793(0x13e)})]});}function Ue(_0x227770){var _0xe31be0=_0x3eb66f;const {coordinator:_0x4c0903}=_0x227770;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0xe31be0(0x142),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x317f25(_0x29954b,{'variant':_0xe31be0(0x100),'onClick':()=>_0x4c0903[_0xe31be0(0x1a4)](),'children':_0xe31be0(0x154)})]});}function Ve(){var _0x2d4639=_0x3eb66f;return _0x317f25(_0xcbf086,{'children':_0x2d4639(0x14b)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x176aab,_0x3e99de,_0x438bba,_0x303e97)=>{for(var _0x466db5=_0x303e97>0x1?void 0x0:_0x303e97?Me(_0x3e99de,_0x438bba):_0x3e99de,_0x37da53=_0x176aab['length']-0x1,_0x363d41;_0x37da53>=0x0;_0x37da53--)(_0x363d41=_0x176aab[_0x37da53])&&(_0x466db5=_0x363d41(_0x466db5)||_0x466db5);return _0x466db5;},$=(_0x52b8fc,_0x5b6691)=>(_0x59eb1f,_0x3d9047)=>_0x5b6691(_0x59eb1f,_0x3d9047,_0x52b8fc);let b=class extends _0x28094d{constructor(_0x1ed1ff,_0x40625d){var _0x8f0c25=_0x3eb66f;super(),this[_0x8f0c25(0x140)]=_0x1ed1ff,this[_0x8f0c25(0x191)]=_0x40625d,this[_0x8f0c25(0x132)]();}['_mountLiveShare'](){var _0x19c19a=_0x3eb66f;this[_0x19c19a(0x183)](this['_uiPartsService'][_0x19c19a(0x192)](_0x45e07f[_0x19c19a(0x1a6)],()=>_0x67a89(Te,this['_injector'])));}};b=ke([$(0x0,_0x3f84a3(_0x15d8b5)),$(0x1,_0x326cbf)],b);var Ge=Object['defineProperty'],We=Object[_0x3eb66f(0x117)],Ye=(_0x70e9c1,_0x954166,_0x276c9e)=>_0x954166 in _0x70e9c1?Ge(_0x70e9c1,_0x954166,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x276c9e}):_0x70e9c1[_0x954166]=_0x276c9e,Be=(_0x47328e,_0x4cfded,_0x2f2279,_0x30ee14)=>{for(var _0x5a74f6=_0x30ee14>0x1?void 0x0:_0x30ee14?We(_0x4cfded,_0x2f2279):_0x4cfded,_0x4c4c3a=_0x47328e['length']-0x1,_0x1bacac;_0x4c4c3a>=0x0;_0x4c4c3a--)(_0x1bacac=_0x47328e[_0x4c4c3a])&&(_0x5a74f6=_0x1bacac(_0x5a74f6)||_0x5a74f6);return _0x5a74f6;},F=(_0x5e3ec0,_0x2a89c8)=>(_0x45cef5,_0x20c7d8)=>_0x2a89c8(_0x45cef5,_0x20c7d8,_0x5e3ec0),J=(_0x16e971,_0xd9f221,_0x337e01)=>Ye(_0x16e971,typeof _0xd9f221!=_0x3eb66f(0x15b)?_0xd9f221+'':_0xd9f221,_0x337e01);const Ze=_0x3eb66f(0x108);let O=class extends _0x47a77d{constructor(_0x2305ee=T,_0x2250c8,_0x4d146b){var _0x8c5b86=_0x3eb66f;super(),this[_0x8c5b86(0x19d)]=_0x2305ee,this[_0x8c5b86(0x140)]=_0x2250c8,this[_0x8c5b86(0x11b)]=_0x4d146b;const {..._0x96d20d}=_0x1f5ca3({},T,this[_0x8c5b86(0x19d)]);this[_0x8c5b86(0x11b)][_0x8c5b86(0x113)](Oe,_0x96d20d);}[_0x3eb66f(0x177)](){var _0x5f1ff0=_0x3eb66f;_0x1df7a9(this[_0x5f1ff0(0x140)],_0x227802([[L],[I],[m],[b]],this[_0x5f1ff0(0x19d)]['override'])),_0x4f8b46(this[_0x5f1ff0(0x140)],[[m]]);}['onRendered'](){var _0x2d4ecf=_0x3eb66f;_0x4f8b46(this[_0x2d4ecf(0x140)],[[b]]);}};J(O,_0x3eb66f(0x14a),_0x58c155[_0x3eb66f(0x165)]),J(O,_0x3eb66f(0x12e),Ze),O=Be([_0x419c79(_0x26cab8),F(0x1,_0x3f84a3(_0x15d8b5)),F(0x2,_0x314f53)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/index.js CHANGED
@@ -1 +1 @@
1
- var _0x5258fa=_0x139a;(function(_0x517ff7,_0x860d13){var _0x2b8d48=_0x139a,_0x3d7aec=_0x517ff7();while(!![]){try{var _0xc3a79d=parseInt(_0x2b8d48(0xca))/0x1*(parseInt(_0x2b8d48(0xb5))/0x2)+parseInt(_0x2b8d48(0xe9))/0x3*(-parseInt(_0x2b8d48(0x117))/0x4)+-parseInt(_0x2b8d48(0xa5))/0x5+-parseInt(_0x2b8d48(0xd2))/0x6*(parseInt(_0x2b8d48(0x10b))/0x7)+parseInt(_0x2b8d48(0xc2))/0x8*(parseInt(_0x2b8d48(0x107))/0x9)+-parseInt(_0x2b8d48(0x145))/0xa*(parseInt(_0x2b8d48(0x11e))/0xb)+-parseInt(_0x2b8d48(0xeb))/0xc*(-parseInt(_0x2b8d48(0x123))/0xd);if(_0xc3a79d===_0x860d13)break;else _0x3d7aec['push'](_0x3d7aec['shift']());}catch(_0x563652){_0x3d7aec['push'](_0x3d7aec['shift']());}}}(_0x1961,0x9b17e));function _0x139a(_0x194edb,_0xc3070e){var _0x196191=_0x1961();return _0x139a=function(_0x139a9b,_0x512bd4){_0x139a9b=_0x139a9b-0x99;var _0x25b3e4=_0x196191[_0x139a9b];return _0x25b3e4;},_0x139a(_0x194edb,_0xc3070e);}var q=Object[_0x5258fa(0x9f)],z=(_0x351192,_0x5b1dba,_0x3ce5e3)=>_0x5b1dba in _0x351192?q(_0x351192,_0x5b1dba,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3ce5e3}):_0x351192[_0x5b1dba]=_0x3ce5e3,d=(_0x458fea,_0x581d72,_0x4fed65)=>z(_0x458fea,typeof _0x581d72!=_0x5258fa(0xbf)?_0x581d72+'':_0x581d72,_0x4fed65);import{CollaborationSessionService as _0x166df7,SessionStatus as _0x6072e1,UniverCollaborationClientPlugin as _0xbe77e1}from'@univerjs-pro/collaboration-client';import{Disposable as _0x5d78d5,toDisposable as _0x104973,Inject as _0x15c34c,IUniverInstanceService as _0x30f196,Injector as _0x1bb1a3,IConfigService as _0xf2eda3,ICommandService as _0x225c55,RxDisposable as _0x5123e3,UniverInstanceType as _0x14c1f5,DisposableCollection as _0x2872b8,CommandType as _0x16b9f5,DependentOn as _0x36185f,Plugin as _0x607589,merge as _0x1c848f,registerDependencies as _0x1910a1,mergeOverrideWithDependencies as _0x2ab882,touchDependencies as _0xbfe10e}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x266111,InsertSheetMutation as _0x58b5c8}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x3a60b0,SetScrollOperation as _0x399981}from'@univerjs/sheets-ui';import{useDependency as _0x1a879f,useObservable as _0x2c858e,IUIPartsService as _0x48f43a,BuiltInUIPart as _0x5e9d9c,connectInjector as _0x21477e}from'@univerjs/ui';function _0x1961(){var _0x17567c=['registerSharedOperation','_stopFollowing','LIVESHARE_REQUEST_HOST','sessionStatus$','startFollowing','url(#$1','SAME_OPERATION_SHARE_INTERVAL','requireSession','getOwnPropertyDescriptor','defineProperty','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','svg','_reporters','toString','unitId','1126065viKAlJ','prototype','extend','live-share.config','_handleNewHost','call','_status$','executeCommand','UniverIcon','operations','_status','_beIdle','getLiveShareCoordinator','idSuffix','_handleOperation','idle','310162bAPFhl','string','_handleOnline','xlink:href','mask','concat','trim','complete','Start\x20following','memberID','symbol','next','_fetchOperations','8244712ltLhWv','Stop\x20following','http://www.w3.org/2000/svg','stopPresenting','stringify','assign','_init','use','5YCApvA','hasOwnProperty','attrs','not-following','_unitID','UNIVER_SHEET','parse','UNIVER_UNKNOWN','22236fndPlu','getOwnPropertySymbols','IDLE','getUnitId','_handleNewChangeSets','add','div','asObservable','dispose','icon','univer-size-4','You\x27re\x20not\x20following\x20the\x20presenter','onCommandExecuted','following','_configService','find','_presenter','button','getConfig','get','setConfig','_univerInstanceService','_injector','2999622JRYTKO','_stopPresenting','3248124EzDVgQ','LIVESHARE_NEW_HOST','LIVESHARE_OPERATION','function','_config','registerInitialStateReporter','You\x27re\x20presenting\x20the\x20document','getValue','replace','live-share-icon','entries','end','tag','defIds','0\x200\x2017\x2017','PRESENTING','LIVESHARE_FETCH_OPERATIONS','pipe','onStarting','disposeWithMe','_mountLiveShare','univer-w-full\x20univer-mb-3\x20univer-text-sm','Stop\x20presenting','_uiPartsService','map','path','getMemberID','_collabSession','9RHCwOK','from','Present\x20this\x20document','registerComponent','1379FNQHYW','delete','1em','_liveShareService','HEADER_MENU','reverse','values','set','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','subscribe','apply','includes','4epbNTb','presenter','children','current','_entities','dispose$','evenodd','303534jnUYuK','tryStartPresenting','none','then','fill','39eOdOxK','data','propertyIsEnumerable','presenting','unsubscribe','onRendered','type','_commandDisposable','shouldShareOperation','stopFollowing','currentColor','_handleTerminate','forEach','override','_collabSessionService','className','send','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','_handleOffline','indexOf','_startFollowing','colorChannel1','clear','substring','FOLLOWING','getInitialStates','_startPresenting','OFFLINE','offline','has','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','_commandService','getTypeOfUnitDisposed$','Start','10kOLrQL','_startLiveShareCoordinator','LIVESHARE_TERMINATE','status$','params','NEW_CHANGESETS','ONLINE','length','_sharedOperations','displayName','init'];_0x1961=function(){return _0x17567c;};return _0x1961();}import{jsx as _0x5e2a77,jsxs as _0x57e686,Fragment as _0x49f367}from'react/jsx-runtime';import{Dropdown as _0x57c4cd,clsx as _0x3354fe,Button as _0x32a223}from'@univerjs/design';import{forwardRef as _0x541777,useRef as _0x26071b,createElement as _0xe5743d,useState as _0x5b847f,useEffect as _0x2a5c1b}from'react';import{CollaborationEvent as _0x5e4eb2,parseProtocolChangeset as _0x3e708c}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x513b10,Subject as _0x49a04c}from'rxjs';import{takeUntil as _0x3dec29,throttleTime as _0x56270f}from'rxjs/operators';const Oe=_0x5258fa(0xa8),T={};class L extends _0x5d78d5{constructor(){super(...arguments),d(this,'_sharedOperations',new Set()),d(this,'_reporters',new Set());}[_0x5258fa(0x150)](_0x424064){var _0x406f72=_0x5258fa;return this[_0x406f72(0x14d)][_0x406f72(0xd7)](_0x424064),_0x104973(()=>this[_0x406f72(0x14d)][_0x406f72(0x10c)](_0x424064));}[_0x5258fa(0xf0)](_0xafb6f){var _0x5c03c5=_0x5258fa;return this['_reporters']['add'](_0xafb6f),_0x104973(()=>this[_0x5c03c5(0xa2)][_0x5c03c5(0x10c)](_0xafb6f));}['shouldShareOperation'](_0x258e8f){var _0x2c7c5a=_0x5258fa;return this[_0x2c7c5a(0x14d)]['has'](_0x258e8f);}[_0x5258fa(0x13c)](_0x348174){var _0x45bc2a=_0x5258fa;return Array[_0x45bc2a(0x108)](this[_0x45bc2a(0xa2)])[_0x45bc2a(0x103)](_0x56e5a2=>_0x56e5a2(_0x348174));}}var Ee=Object[_0x5258fa(0x9e)],we=(_0xce797b,_0x56dd88,_0x1520b1,_0x3d6f23)=>{var _0xf5b9b0=_0x5258fa;for(var _0x1852de=_0x3d6f23>0x1?void 0x0:_0x3d6f23?Ee(_0x56dd88,_0x1520b1):_0x56dd88,_0x1c113d=_0xce797b[_0xf5b9b0(0x14c)]-0x1,_0x1ca097;_0x1c113d>=0x0;_0x1c113d--)(_0x1ca097=_0xce797b[_0x1c113d])&&(_0x1852de=_0x1ca097(_0x1852de)||_0x1852de);return _0x1852de;},Ne=(_0x1423ba,_0x3c5c47)=>(_0x30fea2,_0x4609a8)=>_0x3c5c47(_0x30fea2,_0x4609a8,_0x1423ba);let m=class extends _0x5d78d5{constructor(_0x2489ac){var _0x4756c8=_0x5258fa;super(),this['_liveShareService']=_0x2489ac,this[_0x4756c8(0xc8)]();}[_0x5258fa(0xc8)](){[_0x3a60b0['id'],_0x399981['id'],_0x266111['id']]['forEach'](_0x7cdfaa=>{var _0x4fc7f1=_0x139a;this[_0x4fc7f1(0xfe)](this[_0x4fc7f1(0x10e)][_0x4fc7f1(0x150)](_0x7cdfaa));});}};m=we([Ne(0x0,_0x15c34c(L))],m);var c=function(){var _0xc1b193=_0x5258fa;return c=Object['assign']||function(_0x189425){var _0x2c524e=_0x139a;for(var _0x80c157,_0x11064b=0x1,_0x1358fc=arguments[_0x2c524e(0x14c)];_0x11064b<_0x1358fc;_0x11064b++){_0x80c157=arguments[_0x11064b];for(var _0x2f94fc in _0x80c157)Object['prototype'][_0x2c524e(0xcb)][_0x2c524e(0xaa)](_0x80c157,_0x2f94fc)&&(_0x189425[_0x2f94fc]=_0x80c157[_0x2f94fc]);}return _0x189425;},c[_0xc1b193(0x115)](this,arguments);},Ce=function(_0x4c7e9f,_0x268726){var _0x2cb23c=_0x5258fa,_0x37e4ca={};for(var _0x4475a3 in _0x4c7e9f)Object['prototype'][_0x2cb23c(0xcb)][_0x2cb23c(0xaa)](_0x4c7e9f,_0x4475a3)&&_0x268726[_0x2cb23c(0x136)](_0x4475a3)<0x0&&(_0x37e4ca[_0x4475a3]=_0x4c7e9f[_0x4475a3]);if(_0x4c7e9f!=null&&typeof Object[_0x2cb23c(0xd3)]==_0x2cb23c(0xee)){for(var _0xe5af2c=0x0,_0x4475a3=Object[_0x2cb23c(0xd3)](_0x4c7e9f);_0xe5af2c<_0x4475a3['length'];_0xe5af2c++)_0x268726[_0x2cb23c(0x136)](_0x4475a3[_0xe5af2c])<0x0&&Object[_0x2cb23c(0xa6)][_0x2cb23c(0x125)]['call'](_0x4c7e9f,_0x4475a3[_0xe5af2c])&&(_0x37e4ca[_0x4475a3[_0xe5af2c]]=_0x4c7e9f[_0x4475a3[_0xe5af2c]]);}return _0x37e4ca;},W=_0x541777(function(_0x4f5f7b,_0x4b36dc){var _0xe05a70=_0x5258fa,_0x3f0de1=_0x4f5f7b['icon'],_0x4c8990=_0x4f5f7b['id'],_0x1a3707=_0x4f5f7b[_0xe05a70(0x132)],_0x4848c5=_0x4f5f7b['extend'],_0x4ec7f3=Ce(_0x4f5f7b,[_0xe05a70(0xdb),'id',_0xe05a70(0x132),_0xe05a70(0xa7)]),_0x237c50='univerjs-icon\x20univerjs-icon-'['concat'](_0x4c8990,'\x20')[_0xe05a70(0xba)](_0x1a3707||'')[_0xe05a70(0xbb)](),_0x31212b=_0x26071b('_'[_0xe05a70(0xba)](Le()));return Y(_0x3f0de1,''[_0xe05a70(0xba)](_0x4c8990),{'defIds':_0x3f0de1[_0xe05a70(0xf8)],'idSuffix':_0x31212b[_0xe05a70(0x11a)]},c({'ref':_0x4b36dc,'className':_0x237c50},_0x4ec7f3),_0x4848c5);});function Y(_0x9aa26f,_0x12a3ce,_0x1ff5d8,_0x4992b3,_0xcc4081){var _0xa6acde=_0x5258fa;return _0xe5743d(_0x9aa26f[_0xa6acde(0xf7)],c(c({'key':_0x12a3ce},De(_0x9aa26f,_0x1ff5d8,_0xcc4081)),_0x4992b3),(xe(_0x9aa26f,_0x1ff5d8)[_0xa6acde(0x119)]||[])[_0xa6acde(0x103)](function(_0x21688a,_0x25038a){var _0x5dc11b=_0xa6acde;return Y(_0x21688a,''[_0x5dc11b(0xba)](_0x12a3ce,'-')[_0x5dc11b(0xba)](_0x9aa26f['tag'],'-')[_0x5dc11b(0xba)](_0x25038a),_0x1ff5d8,void 0x0,_0xcc4081);}));}function De(_0x4aaecd,_0x3e4082,_0x50d5a8){var _0x27b903=_0x5258fa,_0x583c7b=c({},_0x4aaecd[_0x27b903(0xcc)]);_0x50d5a8!=null&&_0x50d5a8[_0x27b903(0x138)]&&_0x583c7b[_0x27b903(0x122)]===_0x27b903(0x138)&&(_0x583c7b[_0x27b903(0x122)]=_0x50d5a8['colorChannel1']),_0x4aaecd[_0x27b903(0xf7)]===_0x27b903(0xb9)&&_0x583c7b['id']&&(_0x583c7b['id']=_0x583c7b['id']+_0x3e4082['idSuffix']),Object[_0x27b903(0xf5)](_0x583c7b)[_0x27b903(0x12f)](function(_0x3d70f0){var _0x3c008b=_0x27b903,_0x11d835=_0x3d70f0[0x0],_0x5458b9=_0x3d70f0[0x1];_0x11d835==='mask'&&typeof _0x5458b9==_0x3c008b(0xb6)&&(_0x583c7b[_0x11d835]=_0x5458b9[_0x3c008b(0xf3)](/url\(#(.*)\)/,_0x3c008b(0x9b)['concat'](_0x3e4082[_0x3c008b(0xb2)],')')));});var _0x1f62f4=_0x3e4082[_0x27b903(0xf8)];return!_0x1f62f4||_0x1f62f4[_0x27b903(0x14c)]===0x0||(_0x4aaecd[_0x27b903(0xf7)]===_0x27b903(0xc9)&&_0x583c7b[_0x27b903(0xb8)]&&(_0x583c7b[_0x27b903(0xb8)]=_0x583c7b['xlink:href']+_0x3e4082[_0x27b903(0xb2)]),Object[_0x27b903(0xf5)](_0x583c7b)[_0x27b903(0x12f)](function(_0x9bac31){var _0x34e2a0=_0x27b903,_0x7c0466=_0x9bac31[0x0],_0xc2dd41=_0x9bac31[0x1];typeof _0xc2dd41==_0x34e2a0(0xb6)&&(_0x583c7b[_0x7c0466]=_0xc2dd41[_0x34e2a0(0xf3)](/url\(#(.*)\)/,_0x34e2a0(0x9b)['concat'](_0x3e4082[_0x34e2a0(0xb2)],')')));})),_0x583c7b;}function xe(_0x332f8c,_0x329f01){var _0x3b44d5=_0x5258fa,_0x2e1e81,_0x548e1f=_0x329f01[_0x3b44d5(0xf8)];return!_0x548e1f||_0x548e1f[_0x3b44d5(0x14c)]===0x0?_0x332f8c:_0x332f8c[_0x3b44d5(0xf7)]==='defs'&&(!((_0x2e1e81=_0x332f8c[_0x3b44d5(0x119)])===null||_0x2e1e81===void 0x0)&&_0x2e1e81[_0x3b44d5(0x14c)])?c(c({},_0x332f8c),{'children':_0x332f8c[_0x3b44d5(0x119)][_0x3b44d5(0x103)](function(_0x1b7a2d){var _0x1fe392=_0x3b44d5;return typeof _0x1b7a2d[_0x1fe392(0xcc)]['id']==_0x1fe392(0xb6)&&_0x548e1f&&_0x548e1f[_0x1fe392(0x116)](_0x1b7a2d[_0x1fe392(0xcc)]['id'])?c(c({},_0x1b7a2d),{'attrs':c(c({},_0x1b7a2d[_0x1fe392(0xcc)]),{'id':_0x1b7a2d['attrs']['id']+_0x329f01[_0x1fe392(0xb2)]})}):_0x1b7a2d;})}):_0x332f8c;}function Le(){var _0x5079a2=_0x5258fa;return Math['random']()[_0x5079a2(0xa3)](0x24)[_0x5079a2(0x13a)](0x2,0x8);}W[_0x5258fa(0x14e)]=_0x5258fa(0xad);var ye={'tag':_0x5258fa(0xa1),'attrs':{'xmlns':_0x5258fa(0xc4),'fill':_0x5258fa(0x120),'viewBox':_0x5258fa(0xf9),'width':_0x5258fa(0x10d),'height':'1em'},'children':[{'tag':'path','attrs':{'fill':_0x5258fa(0x12d),'d':_0x5258fa(0x141)}},{'tag':_0x5258fa(0x104),'attrs':{'fill':_0x5258fa(0x12d),'d':_0x5258fa(0xa0),'fillRule':_0x5258fa(0x11d),'clipRule':_0x5258fa(0x11d)}}]},B=_0x541777(function(_0x207e36,_0xdcb45c){var _0x9d5824=_0x5258fa;return _0xe5743d(W,Object[_0x9d5824(0xc7)]({},_0x207e36,{'id':_0x9d5824(0xf4),'ref':_0xdcb45c,'icon':ye}));});B[_0x5258fa(0x14e)]='LiveShareIcon';var Re=Object[_0x5258fa(0x9e)],Z=(_0x1cc305,_0x282081,_0x3dcee3,_0x5e63de)=>{var _0x1c9b9a=_0x5258fa;for(var _0x36bd65=_0x5e63de>0x1?void 0x0:_0x5e63de?Re(_0x282081,_0x3dcee3):_0x282081,_0x10acc0=_0x1cc305[_0x1c9b9a(0x14c)]-0x1,_0x29c53a;_0x10acc0>=0x0;_0x10acc0--)(_0x29c53a=_0x1cc305[_0x10acc0])&&(_0x36bd65=_0x29c53a(_0x36bd65)||_0x36bd65);return _0x36bd65;},f=(_0x535dbc,_0x3d98b9)=>(_0x986af1,_0x54711d)=>_0x3d98b9(_0x986af1,_0x54711d,_0x535dbc);let I=class extends _0x5123e3{constructor(_0x16eda5,_0xe09f0a,_0x8d541e){var _0x4b4d77=_0x5258fa;super(),d(this,_0x4b4d77(0x11b),new Map()),(this[_0x4b4d77(0xe7)]=_0x16eda5,this[_0x4b4d77(0xe8)]=_0xe09f0a,this['_collabSessionService']=_0x8d541e,this[_0x4b4d77(0xc8)]());}async[_0x5258fa(0xb1)](_0x5a25d6){var _0x405f36=_0x5258fa;return this[_0x405f36(0x11b)][_0x405f36(0x140)](_0x5a25d6)||await this[_0x405f36(0x146)](_0x5a25d6),this[_0x405f36(0x11b)][_0x405f36(0xe5)](_0x5a25d6);}[_0x5258fa(0xc8)](){var _0x378353=_0x5258fa;this['_univerInstanceService']['getTypeOfUnitAdded$'](_0x14c1f5['UNIVER_SHEET'])[_0x378353(0xfc)](_0x3dec29(this['dispose$']))[_0x378353(0x114)](async _0x497a88=>{var _0x5cdddd=_0x378353;const _0x24ccf7=_0x497a88[_0x5cdddd(0xd5)]();this[_0x5cdddd(0x11b)]['has'](_0x24ccf7)||this['_startLiveShareCoordinator'](_0x24ccf7);}),this[_0x378353(0xe7)][_0x378353(0x143)](_0x14c1f5[_0x378353(0xcf)])[_0x378353(0xfc)](_0x3dec29(this[_0x378353(0x11c)]))[_0x378353(0x114)](_0x1bc627=>{var _0x2065e3=_0x378353;const _0x210eee=_0x1bc627[_0x2065e3(0xd5)](),_0x40879a=this['_entities'][_0x2065e3(0xe5)](_0x210eee);_0x40879a==null||_0x40879a['dispose']();});}async[_0x5258fa(0x146)](_0x57a64b){var _0x4cda0d=_0x5258fa;const _0x1004ae=await this[_0x4cda0d(0x131)][_0x4cda0d(0x9d)](_0x57a64b),_0x2bc36c=this[_0x4cda0d(0xe8)]['createInstance'](C,_0x57a64b,_0x1004ae);return _0x2bc36c[_0x4cda0d(0x14f)](),this[_0x4cda0d(0x11b)][_0x4cda0d(0x112)](_0x57a64b,_0x2bc36c),_0x2bc36c;}};I=Z([f(0x0,_0x30f196),f(0x1,_0x15c34c(_0x1bb1a3)),f(0x2,_0x15c34c(_0x166df7))],I);var h=(_0x515e4b=>(_0x515e4b[_0x5258fa(0x13e)]=_0x5258fa(0x13f),_0x515e4b[_0x5258fa(0xd4)]=_0x5258fa(0xb4),_0x515e4b[_0x5258fa(0x13b)]=_0x5258fa(0xdf),_0x515e4b['NOT_FOLLOWING']=_0x5258fa(0xcd),_0x515e4b['PRESENTING']='presenting',_0x515e4b))(h||{});const Pe=_0x5258fa(0x9c),Ae=0xc8;let C=class extends _0x5123e3{constructor(_0x3047bc,_0x55dc15,_0x162d05,_0x5aeb67,_0x51a31a){var _0x24d12f=_0x5258fa;super(),d(this,_0x24d12f(0xab),new _0x513b10('idle')),d(this,_0x24d12f(0x148),this[_0x24d12f(0xab)][_0x24d12f(0xd9)]()),d(this,_0x24d12f(0xc8),!0x1),d(this,_0x24d12f(0x12a),null),d(this,'_presenter',null),(this[_0x24d12f(0xce)]=_0x3047bc,this['_collabSession']=_0x55dc15,this[_0x24d12f(0xe0)]=_0x162d05,this[_0x24d12f(0x10e)]=_0x5aeb67,this[_0x24d12f(0x142)]=_0x51a31a);}get[_0x5258fa(0xaf)](){var _0x210c6e=_0x5258fa;return this[_0x210c6e(0xab)][_0x210c6e(0xf2)]();}[_0x5258fa(0xda)](){var _0x917d5a=_0x5258fa,_0x4ac8ba;(_0x4ac8ba=this[_0x917d5a(0x12a)])==null||_0x4ac8ba[_0x917d5a(0xda)](),this['_status$'][_0x917d5a(0xc0)](_0x917d5a(0xb4)),this[_0x917d5a(0xab)][_0x917d5a(0xbc)]();}[_0x5258fa(0x14f)](){var _0x545346=_0x5258fa;this[_0x545346(0xc8)]||(this['_init']=!0x0,this['_collabSession'][_0x545346(0x99)][_0x545346(0xfc)](_0x3dec29(this[_0x545346(0x11c)]))['subscribe'](_0xd46afb=>{var _0x1fbd64=_0x545346;switch(_0xd46afb){case _0x6072e1[_0x1fbd64(0x13e)]:this['_handleOffline']();break;case _0x6072e1[_0x1fbd64(0x14b)]:this[_0x1fbd64(0xb7)]();break;}}),this['_collabSession']['event$'][_0x545346(0xfc)](_0x3dec29(this[_0x545346(0x11c)]))[_0x545346(0x114)](_0x1ac858=>{var _0x1b92f2=_0x545346;const {eventID:_0x5c80e6}=_0x1ac858;switch(_0x5c80e6){case _0x5e4eb2[_0x1b92f2(0xec)]:this[_0x1b92f2(0xa9)](_0x1ac858);break;case _0x5e4eb2[_0x1b92f2(0xed)]:this[_0x1b92f2(0xb3)](_0x1ac858);break;case _0x5e4eb2['LIVESHARE_TERMINATE']:this[_0x1b92f2(0x12e)]();break;case _0x5e4eb2[_0x1b92f2(0x14a)]:this['_handleNewChangeSets'](_0x1ac858);break;}}));}[_0x5258fa(0x11f)](){var _0x3a1bf7=_0x5258fa;this[_0x3a1bf7(0x106)][_0x3a1bf7(0x133)]({'eventID':_0x5e4eb2[_0x3a1bf7(0x152)],'data':{'unitID':this['_unitID'],'userID':this[_0x3a1bf7(0x106)][_0x3a1bf7(0x105)]()}},this['_unitID']);}[_0x5258fa(0xc5)](){var _0x43a2a9=_0x5258fa;this[_0x43a2a9(0xaf)]===_0x43a2a9(0x126)&&(this[_0x43a2a9(0xab)]['next'](_0x43a2a9(0xb4)),this['_collabSession'][_0x43a2a9(0x133)]({'eventID':_0x5e4eb2[_0x43a2a9(0x147)],'data':{'unitID':this[_0x43a2a9(0xce)]}},this[_0x43a2a9(0xce)]));}[_0x5258fa(0x9a)](){var _0x598f7d=_0x5258fa;this['_status']===_0x598f7d(0xcd)&&(this[_0x598f7d(0xab)]['next'](_0x598f7d(0xdf)),this[_0x598f7d(0x137)]());}[_0x5258fa(0x12c)](){var _0x2f7bb5=_0x5258fa;this[_0x2f7bb5(0xaf)]===_0x2f7bb5(0xdf)&&this[_0x2f7bb5(0x151)]();}[_0x5258fa(0xa9)](_0x4061a7){var _0x39a4b9=_0x5258fa;const {presenter:_0x2665e4}=_0x4061a7[_0x39a4b9(0x124)],_0x3bdc60=this[_0x39a4b9(0x106)]['getMemberID']();this['_presenter']=_0x2665e4,_0x2665e4===_0x3bdc60?(this[_0x39a4b9(0x151)](),this[_0x39a4b9(0x13d)]()):this['_status']!==_0x39a4b9(0xcd)&&(this[_0x39a4b9(0xea)](),this[_0x39a4b9(0x137)]());}[_0x5258fa(0xc1)](){var _0x1567b4=_0x5258fa;const _0x26ce7e={'eventID':_0x5e4eb2[_0x1567b4(0xfb)]};this[_0x1567b4(0x106)][_0x1567b4(0x133)](_0x26ce7e,this[_0x1567b4(0xce)]);}[_0x5258fa(0x12e)](){var _0x2bfd6c=_0x5258fa;this[_0x2bfd6c(0xe2)]=null,this[_0x2bfd6c(0xaf)]!==_0x2bfd6c(0x126)&&this[_0x2bfd6c(0xb0)]();}[_0x5258fa(0xd6)](_0x3ebc91){var _0x21d463=_0x5258fa;if(this[_0x21d463(0xaf)]===_0x21d463(0xdf)&&this[_0x21d463(0xe2)]===_0x3ebc91[_0x21d463(0x124)][_0x21d463(0xbe)]){const _0x595031=_0x3e708c(_0x3ebc91[_0x21d463(0x124)])['mutations'][_0x21d463(0x110)]()[_0x21d463(0xe1)](_0x4d080c=>_0x4d080c['id']===_0x58b5c8['id']);if(_0x595031){const _0x3a3e73=_0x595031[_0x21d463(0x149)][_0x21d463(0xa4)],_0x358585=_0x595031[_0x21d463(0x149)]['sheet']['id'];setTimeout(()=>{var _0x51050b=_0x21d463;this['_commandService'][_0x51050b(0xac)](_0x266111['id'],{'unitId':_0x3a3e73,'subUnitId':_0x358585},{'fromCollab':!0x0});});}}}[_0x5258fa(0x13d)](){var _0x1dfa08=_0x5258fa;this['_status$'][_0x1dfa08(0xc0)]('presenting');const _0x229265=new Map(),_0xf58a46=this[_0x1dfa08(0x12a)]=new _0x2872b8();_0xf58a46[_0x1dfa08(0xd7)](_0x104973(()=>{var _0x5919b3=_0x1dfa08;_0x229265['forEach'](_0x3b52a9=>_0x3b52a9['complete']()),_0x229265[_0x5919b3(0x139)]();})),_0xf58a46[_0x1dfa08(0xd7)](this[_0x1dfa08(0x142)][_0x1dfa08(0xde)](_0x4bd72e=>{var _0x250f8b=_0x1dfa08,_0x23cd5e;if(_0x4bd72e[_0x250f8b(0x129)]!==_0x16b9f5['OPERATION']||!this[_0x250f8b(0x10e)][_0x250f8b(0x12b)](_0x4bd72e['id']))return;const {id:_0x3d9e8f}=_0x4bd72e;let _0xac24dd;_0x229265['has'](_0x3d9e8f)?_0xac24dd=_0x229265[_0x250f8b(0xe5)](_0x3d9e8f):(_0xac24dd=new _0x49a04c(),_0x229265[_0x250f8b(0x112)](_0x3d9e8f,_0xac24dd),_0xac24dd['pipe'](_0x56270f((_0x23cd5e=this['_configService'][_0x250f8b(0xe4)](Pe))!=null?_0x23cd5e:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x250f8b(0x114)](_0x56745a=>{var _0xc97558=_0x250f8b;this[_0xc97558(0x106)][_0xc97558(0x133)]({'eventID':_0x5e4eb2[_0xc97558(0xed)],'data':{'unitID':this[_0xc97558(0xce)],'operations':{[_0x56745a['id']]:{'id':_0x56745a['id'],'params':JSON[_0xc97558(0xc6)](_0x56745a[_0xc97558(0x149)])}}}},this[_0xc97558(0xce)]);})),_0xac24dd[_0x250f8b(0xc0)](_0x4bd72e);})),this[_0x1dfa08(0x10e)][_0x1dfa08(0x13c)](this['_unitID'])[_0x1dfa08(0x12f)](_0x242f72=>this['_collabSession']['send']({'eventID':_0x5e4eb2['LIVESHARE_OPERATION'],'data':{'unitID':this[_0x1dfa08(0xce)],'operations':{[_0x242f72['id']]:{'id':_0x242f72['id'],'params':JSON[_0x1dfa08(0xc6)](_0x242f72['params'])}}}},this['_unitID']));}[_0x5258fa(0xea)](){var _0x2207b2=_0x5258fa,_0x530bc5;this[_0x2207b2(0xab)][_0x2207b2(0xc0)](_0x2207b2(0xb4)),(_0x530bc5=this[_0x2207b2(0x12a)])==null||_0x530bc5[_0x2207b2(0xda)](),this[_0x2207b2(0x12a)]=null;}['_startFollowing'](){var _0x8f5826=_0x5258fa,_0x3f857b;(_0x3f857b=this[_0x8f5826(0x12a)])==null||_0x3f857b[_0x8f5826(0xda)](),this['_status$'][_0x8f5826(0xc0)](_0x8f5826(0xdf));}[_0x5258fa(0xb0)](){var _0x21efba=_0x5258fa,_0x35f6ad;this[_0x21efba(0xab)][_0x21efba(0xc0)](_0x21efba(0xb4)),(_0x35f6ad=this[_0x21efba(0x12a)])==null||_0x35f6ad[_0x21efba(0xda)](),this[_0x21efba(0x12a)]=null;}[_0x5258fa(0x151)](){var _0x2a7e36=_0x5258fa,_0x21a69c;this[_0x2a7e36(0xab)][_0x2a7e36(0xc0)](_0x2a7e36(0xcd)),(_0x21a69c=this['_commandDisposable'])==null||_0x21a69c[_0x2a7e36(0xda)]();}[_0x5258fa(0xb3)](_0x84100f){var _0x4c7f83=_0x5258fa;if(['presenting','not-following',_0x4c7f83(0x13f)]['includes'](this[_0x4c7f83(0xaf)])||!_0x84100f[_0x4c7f83(0x124)][_0x4c7f83(0x118)]||_0x84100f['data'][_0x4c7f83(0x118)]===this[_0x4c7f83(0x106)]['getMemberID']())return;this[_0x4c7f83(0xaf)]===_0x4c7f83(0xb4)&&this[_0x4c7f83(0x137)]();const _0x6c73ca=_0x84100f[_0x4c7f83(0x124)][_0x4c7f83(0xae)];Object[_0x4c7f83(0x111)](_0x6c73ca)['forEach'](_0xe83195=>{var _0x1da899=_0x4c7f83;this[_0x1da899(0x142)]['executeCommand'](_0xe83195['id'],_0xe83195[_0x1da899(0x149)]?JSON[_0x1da899(0xd0)](_0xe83195['params']):null,{'fromCollab':!0x0});});}[_0x5258fa(0x135)](){var _0x525eef=_0x5258fa,_0x1df924;this['_status$'][_0x525eef(0xc0)](_0x525eef(0x13f)),(_0x1df924=this[_0x525eef(0x12a)])==null||_0x1df924['dispose']();}[_0x5258fa(0xb7)](){var _0x399713=_0x5258fa;this[_0x399713(0xab)][_0x399713(0xc0)](_0x399713(0xb4)),this['_fetchOperations']();}};C=Z([f(0x2,_0xf2eda3),f(0x3,_0x15c34c(L)),f(0x4,_0x225c55)],C);function Te(){var _0x563dec=_0x5258fa;const _0x4f3789=_0x1a879f(I),_0x2da8c3=_0x1a879f(_0x30f196),_0x2b8b15=_0x2c858e(()=>_0x2da8c3['getCurrentTypeOfUnit$'](_0x14c1f5['UNIVER_SHEET']),void 0x0,!0x1,[]),[_0x36aa98,_0x1e141b]=_0x5b847f(null),[_0x4155ab,_0x3d5fef]=_0x5b847f(h['IDLE']),_0x19f582=_0x26071b(null);return _0x2a5c1b(()=>(_0x2b8b15&&_0x4f3789['getLiveShareCoordinator'](_0x2b8b15['getUnitId']())[_0x563dec(0x121)](_0x1be488=>{var _0x2332a0=_0x563dec;_0x1e141b(_0x1be488),_0x19f582[_0x2332a0(0x11a)]=_0x1be488[_0x2332a0(0x148)][_0x2332a0(0x114)](_0x3b665a=>{_0x3d5fef(_0x3b665a);});}),()=>{var _0x3bb493=_0x563dec,_0x22bc4b;(_0x22bc4b=_0x19f582[_0x3bb493(0x11a)])==null||_0x22bc4b[_0x3bb493(0x127)](),_0x19f582[_0x3bb493(0x11a)]=null;}),[_0x2b8b15,_0x4f3789]),_0x36aa98?_0x5e2a77(_0x57c4cd,{'align':_0x563dec(0xf6),'disabled':_0x4155ab===h['OFFLINE'],'className':_0x563dec(0x134),'overlay':_0x5e2a77($e,{'status':_0x4155ab,'coordinator':_0x36aa98}),'children':_0x5e2a77(_0x563dec(0xe3),{'className':_0x3354fe(_0x563dec(0x113),{'univer-cursor-not-allowed':_0x4155ab===h[_0x563dec(0x13e)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x4155ab!==h[_0x563dec(0x13e)]}),'type':_0x563dec(0xe3),'children':_0x5e2a77(B,{'className':_0x563dec(0xdc)})})}):null;}function $e(_0x2e8138){var _0x257b1=_0x5258fa;const {status:_0x17a195,coordinator:_0x29122c}=_0x2e8138;switch(_0x17a195){case h[_0x257b1(0xd4)]:return _0x5e2a77(Fe,{'coordinator':_0x29122c});case h[_0x257b1(0x13b)]:return _0x5e2a77(He,{'coordinator':_0x29122c});case h['NOT_FOLLOWING']:return _0x5e2a77(je,{'coordinator':_0x29122c});case h[_0x257b1(0x13e)]:return _0x5e2a77(Ve,{});case h[_0x257b1(0xfa)]:return _0x5e2a77(Ue,{'coordinator':_0x29122c});default:return null;}}function Fe(_0x2a2f3a){var _0x5a1536=_0x5258fa;const {coordinator:_0x411181}=_0x2a2f3a;return _0x57e686(_0x49f367,{'children':[_0x5e2a77('div',{'className':_0x5a1536(0x100),'children':_0x5a1536(0x109)}),_0x5e2a77(_0x32a223,{'onClick':()=>_0x411181[_0x5a1536(0x11f)](),'children':_0x5a1536(0x144)})]});}function He(_0x371f8f){var _0x50a77f=_0x5258fa;const {coordinator:_0x4ad7d8}=_0x371f8f;return _0x57e686(_0x49f367,{'children':[_0x5e2a77(_0x50a77f(0xd8),{'className':_0x50a77f(0x100),'children':'You\x27re\x20following\x20the\x20presenter'}),_0x5e2a77(_0x32a223,{'onClick':()=>_0x4ad7d8[_0x50a77f(0x12c)](),'children':_0x50a77f(0xc3)})]});}function je(_0x5a04e3){var _0x16316c=_0x5258fa;const {coordinator:_0x282ada}=_0x5a04e3;return _0x57e686(_0x49f367,{'children':[_0x5e2a77(_0x16316c(0xd8),{'className':_0x16316c(0x100),'children':_0x16316c(0xdd)}),_0x5e2a77(_0x32a223,{'variant':'text','onClick':()=>_0x282ada[_0x16316c(0x9a)](),'children':_0x16316c(0xbd)})]});}function Ue(_0x41aea7){var _0x600243=_0x5258fa;const {coordinator:_0x45db9c}=_0x41aea7;return _0x57e686(_0x49f367,{'children':[_0x5e2a77(_0x600243(0xd8),{'className':_0x600243(0x100),'children':_0x600243(0xf1)}),_0x5e2a77(_0x32a223,{'variant':'default','onClick':()=>_0x45db9c[_0x600243(0xc5)](),'children':_0x600243(0x101)})]});}function Ve(){return _0x5e2a77(_0x49f367,{'children':'You\x27are\x20offline.'});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x539ecf,_0x35670f,_0x5c52e9,_0x29da7d)=>{for(var _0x4237df=_0x29da7d>0x1?void 0x0:_0x29da7d?Me(_0x35670f,_0x5c52e9):_0x35670f,_0x1df4d9=_0x539ecf['length']-0x1,_0xf75b98;_0x1df4d9>=0x0;_0x1df4d9--)(_0xf75b98=_0x539ecf[_0x1df4d9])&&(_0x4237df=_0xf75b98(_0x4237df)||_0x4237df);return _0x4237df;},$=(_0x4cab6c,_0x3edae9)=>(_0x334a58,_0x5b0497)=>_0x3edae9(_0x334a58,_0x5b0497,_0x4cab6c);let b=class extends _0x5d78d5{constructor(_0x3a833c,_0x5786c6){var _0x5f0ba1=_0x5258fa;super(),this[_0x5f0ba1(0xe8)]=_0x3a833c,this[_0x5f0ba1(0x102)]=_0x5786c6,this[_0x5f0ba1(0xff)]();}['_mountLiveShare'](){var _0x38e8ca=_0x5258fa;this[_0x38e8ca(0xfe)](this[_0x38e8ca(0x102)][_0x38e8ca(0x10a)](_0x5e9d9c[_0x38e8ca(0x10f)],()=>_0x21477e(Te,this[_0x38e8ca(0xe8)])));}};b=ke([$(0x0,_0x15c34c(_0x1bb1a3)),$(0x1,_0x48f43a)],b);var Ge=Object[_0x5258fa(0x9f)],We=Object[_0x5258fa(0x9e)],Ye=(_0x366853,_0x2d9f78,_0x4094ca)=>_0x2d9f78 in _0x366853?Ge(_0x366853,_0x2d9f78,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4094ca}):_0x366853[_0x2d9f78]=_0x4094ca,Be=(_0x5a9b1f,_0x2ad13e,_0x220fa4,_0x434ca9)=>{for(var _0x5cd7ea=_0x434ca9>0x1?void 0x0:_0x434ca9?We(_0x2ad13e,_0x220fa4):_0x2ad13e,_0x331996=_0x5a9b1f['length']-0x1,_0x11ef89;_0x331996>=0x0;_0x331996--)(_0x11ef89=_0x5a9b1f[_0x331996])&&(_0x5cd7ea=_0x11ef89(_0x5cd7ea)||_0x5cd7ea);return _0x5cd7ea;},F=(_0x56e940,_0x50aec0)=>(_0x1c40fc,_0x498e04)=>_0x50aec0(_0x1c40fc,_0x498e04,_0x56e940),J=(_0x49d951,_0xd45167,_0x5187e5)=>Ye(_0x49d951,typeof _0xd45167!=_0x5258fa(0xbf)?_0xd45167+'':_0xd45167,_0x5187e5);const Ze='UNIVER_LIVE_SHARE_PLUGIN';let O=class extends _0x607589{constructor(_0x33054d=T,_0x3734dc,_0x1c19b3){var _0x54be2f=_0x5258fa;super(),this['_config']=_0x33054d,this[_0x54be2f(0xe8)]=_0x3734dc,this['_configService']=_0x1c19b3;const {..._0x1f7b91}=_0x1c848f({},T,this[_0x54be2f(0xef)]);this['_configService'][_0x54be2f(0xe6)](Oe,_0x1f7b91);}[_0x5258fa(0xfd)](){var _0x5077c3=_0x5258fa;_0x1910a1(this[_0x5077c3(0xe8)],_0x2ab882([[L],[I],[m],[b]],this[_0x5077c3(0xef)][_0x5077c3(0x130)])),_0xbfe10e(this[_0x5077c3(0xe8)],[[m]]);}[_0x5258fa(0x128)](){var _0xda77b3=_0x5258fa;_0xbfe10e(this[_0xda77b3(0xe8)],[[b]]);}};J(O,_0x5258fa(0x129),_0x14c1f5[_0x5258fa(0xd1)]),J(O,'pluginName',Ze),O=Be([_0x36185f(_0xbe77e1),F(0x1,_0x15c34c(_0x1bb1a3)),F(0x2,_0xf2eda3)],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 _0x3eb66f=_0xaf36;(function(_0x24bffa,_0x48a22d){var _0x44bc06=_0xaf36,_0xadd4dc=_0x24bffa();while(!![]){try{var _0x1ea307=parseInt(_0x44bc06(0x118))/0x1*(parseInt(_0x44bc06(0x195))/0x2)+-parseInt(_0x44bc06(0x16c))/0x3+parseInt(_0x44bc06(0x196))/0x4+-parseInt(_0x44bc06(0x14c))/0x5+parseInt(_0x44bc06(0x11f))/0x6+parseInt(_0x44bc06(0x125))/0x7*(-parseInt(_0x44bc06(0x102))/0x8)+parseInt(_0x44bc06(0x185))/0x9;if(_0x1ea307===_0x48a22d)break;else _0xadd4dc['push'](_0xadd4dc['shift']());}catch(_0x2666aa){_0xadd4dc['push'](_0xadd4dc['shift']());}}}(_0x59c0,0xb71bb));var q=Object[_0x3eb66f(0x10a)],z=(_0x59cb9d,_0x39743b,_0xdc1b55)=>_0x39743b in _0x59cb9d?q(_0x59cb9d,_0x39743b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0xdc1b55}):_0x59cb9d[_0x39743b]=_0xdc1b55,d=(_0xd68d5f,_0x5d7255,_0x134a70)=>z(_0xd68d5f,typeof _0x5d7255!=_0x3eb66f(0x15b)?_0x5d7255+'':_0x5d7255,_0x134a70);import{CollaborationSessionService as _0x1b8367,SessionStatus as _0x39791d,UniverCollaborationClientPlugin as _0x26cab8}from'@univerjs-pro/collaboration-client';import{Disposable as _0x28094d,toDisposable as _0x56fa4e,Inject as _0x3f84a3,IUniverInstanceService as _0x516a71,Injector as _0x15d8b5,IConfigService as _0x314f53,ICommandService as _0x39ff78,RxDisposable as _0x2968d7,UniverInstanceType as _0x58c155,DisposableCollection as _0x22943b,CommandType as _0x50cabc,DependentOn as _0x419c79,Plugin as _0x47a77d,merge as _0x1f5ca3,registerDependencies as _0x1df7a9,mergeOverrideWithDependencies as _0x227802,touchDependencies as _0x4f8b46}from'@univerjs/core';import{SetWorksheetActiveOperation as _0x3b7bd5,InsertSheetMutation as _0x2a9f7c}from'@univerjs/sheets';import{SetZoomRatioOperation as _0x22565f,SetScrollOperation as _0x1c3c05}from'@univerjs/sheets-ui';import{useDependency as _0x318ee9,useObservable as _0x394850,IUIPartsService as _0x326cbf,BuiltInUIPart as _0x45e07f,connectInjector as _0x67a89}from'@univerjs/ui';import{jsx as _0x317f25,jsxs as _0x387033,Fragment as _0xcbf086}from'react/jsx-runtime';import{Dropdown as _0x11722c,clsx as _0x81ab49,Button as _0x29954b}from'@univerjs/design';import{forwardRef as _0x33acf1,useRef as _0x3891b2,createElement as _0x5c13bc,useState as _0xd7af93,useEffect as _0x59b4f4}from'react';import{CollaborationEvent as _0x40c637,parseProtocolChangeset as _0x4c17bf}from'@univerjs-pro/collaboration';import{BehaviorSubject as _0x22c326,Subject as _0x4a1280}from'rxjs';function _0xaf36(_0x509563,_0x237477){var _0x59c0c3=_0x59c0();return _0xaf36=function(_0xaf3622,_0x5241e9){_0xaf3622=_0xaf3622-0x100;var _0x520cd9=_0x59c0c3[_0xaf3622];return _0x520cd9;},_0xaf36(_0x509563,_0x237477);}function _0x59c0(){var _0x40178f=['9165863puziSU','not-following','LIVESHARE_TERMINATE','indexOf','UNIVER_SHEET','path','xlink:href','use','tryStartPresenting','pluginName','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','mask','_status$','_mountLiveShare','function','colorChannel1','FOLLOWING','event$','text','getMemberID','_unitID','hasOwnProperty','getConfig','_handleTerminate','getValue','Start\x20following','status$','_injector','unsubscribe','div','getLiveShareCoordinator','children','getOwnPropertySymbols','LIVESHARE_FETCH_OPERATIONS','icon','toString','OFFLINE','type','You\x27are\x20offline.','3807035vbYxKl','get','_stopFollowing','delete','_univerInstanceService','trim','You\x27re\x20not\x20following\x20the\x20presenter','next','Stop\x20presenting','entries','concat','parse','dispose','registerSharedOperation','_commandDisposable','symbol','map','PRESENTING','_startFollowing','_liveShareService','stopFollowing','getUnitId','_stopPresenting','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','evenodd','UNIVER_UNKNOWN','IDLE','defIds','svg','replace','univer-w-full\x20univer-mb-3\x20univer-text-sm','following','1092006djtKtZ','_fetchOperations','complete','You\x27re\x20following\x20the\x20presenter','_handleOperation','_presenter','dispose$','send','_handleNewHost','sessionStatus$','tag','onStarting','0\x200\x2017\x2017','_reporters','displayName','getTypeOfUnitAdded$','asObservable','http://www.w3.org/2000/svg','_startPresenting','getInitialStates','LIVESHARE_OPERATION','shouldShareOperation','subscribe','disposeWithMe','has','2694780ifHsJH','currentColor','operations','_handleOffline','getTypeOfUnitDisposed$','_status','attrs','unitId','NOT_FOLLOWING','idle','live-share.config','univer-size-4','_uiPartsService','registerComponent','assign','className','1892318vsNcDN','4099936nHSwvN','button','presenting','fill','memberID','_init','_entities','_config','registerInitialStateReporter','presenter','createInstance','from','startFollowing','length','stopPresenting','OPERATION','HEADER_MENU','offline','executeCommand','includes','default','string','8MxjwOj','_sharedOperations','url(#$1','_startLiveShareCoordinator','requireSession','params','UNIVER_LIVE_SHARE_PLUGIN','_commandService','defineProperty','_handleOnline','call','set','data','Start','random','univerjs-icon\x20univerjs-icon-','_handleNewChangeSets','setConfig','_collabSession','forEach','idSuffix','getOwnPropertyDescriptor','1ruDppF','stringify','init','_configService','pipe','add','1em','5485596ykxVvK','prototype','_collabSessionService','defs','current','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'];_0x59c0=function(){return _0x40178f;};return _0x59c0();}import{takeUntil as _0x64489,throttleTime as _0x1cb448}from'rxjs/operators';const Oe=_0x3eb66f(0x18f),T={};class L extends _0x28094d{constructor(){var _0x2460f1=_0x3eb66f;super(...arguments),d(this,'_sharedOperations',new Set()),d(this,_0x2460f1(0x179),new Set());}[_0x3eb66f(0x159)](_0x465716){var _0xffa05f=_0x3eb66f;return this[_0xffa05f(0x103)][_0xffa05f(0x11d)](_0x465716),_0x56fa4e(()=>this[_0xffa05f(0x103)][_0xffa05f(0x14f)](_0x465716));}[_0x3eb66f(0x19e)](_0xe08eaa){var _0x5d5a16=_0x3eb66f;return this[_0x5d5a16(0x179)][_0x5d5a16(0x11d)](_0xe08eaa),_0x56fa4e(()=>this['_reporters'][_0x5d5a16(0x14f)](_0xe08eaa));}[_0x3eb66f(0x181)](_0x3640ae){var _0x44c344=_0x3eb66f;return this[_0x44c344(0x103)]['has'](_0x3640ae);}[_0x3eb66f(0x17f)](_0x130761){var _0x40ab2f=_0x3eb66f;return Array[_0x40ab2f(0x1a1)](this[_0x40ab2f(0x179)])[_0x40ab2f(0x15c)](_0x14bbfb=>_0x14bbfb(_0x130761));}}var Ee=Object[_0x3eb66f(0x117)],we=(_0x547a73,_0x4abe3f,_0x24a2f9,_0x20d92a)=>{var _0x126fbd=_0x3eb66f;for(var _0x566479=_0x20d92a>0x1?void 0x0:_0x20d92a?Ee(_0x4abe3f,_0x24a2f9):_0x4abe3f,_0x132d91=_0x547a73[_0x126fbd(0x1a3)]-0x1,_0x17fc56;_0x132d91>=0x0;_0x132d91--)(_0x17fc56=_0x547a73[_0x132d91])&&(_0x566479=_0x17fc56(_0x566479)||_0x566479);return _0x566479;},Ne=(_0x44562a,_0x59caee)=>(_0x37ca82,_0x13bee0)=>_0x59caee(_0x37ca82,_0x13bee0,_0x44562a);let m=class extends _0x28094d{constructor(_0x5ad8d4){var _0x331d83=_0x3eb66f;super(),this[_0x331d83(0x15f)]=_0x5ad8d4,this[_0x331d83(0x19b)]();}['_init'](){var _0x10c4bc=_0x3eb66f;[_0x22565f['id'],_0x1c3c05['id'],_0x3b7bd5['id']][_0x10c4bc(0x115)](_0x3b68c5=>{var _0x138e3b=_0x10c4bc;this[_0x138e3b(0x183)](this['_liveShareService'][_0x138e3b(0x159)](_0x3b68c5));});}};m=we([Ne(0x0,_0x3f84a3(L))],m);var c=function(){var _0x264bf1=_0x3eb66f;return c=Object[_0x264bf1(0x193)]||function(_0x1729ff){var _0x4dfda6=_0x264bf1;for(var _0x36d04a,_0x34fa1b=0x1,_0x82953b=arguments[_0x4dfda6(0x1a3)];_0x34fa1b<_0x82953b;_0x34fa1b++){_0x36d04a=arguments[_0x34fa1b];for(var _0x93544f in _0x36d04a)Object[_0x4dfda6(0x120)][_0x4dfda6(0x13a)][_0x4dfda6(0x10c)](_0x36d04a,_0x93544f)&&(_0x1729ff[_0x93544f]=_0x36d04a[_0x93544f]);}return _0x1729ff;},c['apply'](this,arguments);},Ce=function(_0x45a122,_0x493b35){var _0x11f1e8=_0x3eb66f,_0x5ca805={};for(var _0x1ae2a4 in _0x45a122)Object['prototype'][_0x11f1e8(0x13a)][_0x11f1e8(0x10c)](_0x45a122,_0x1ae2a4)&&_0x493b35[_0x11f1e8(0x128)](_0x1ae2a4)<0x0&&(_0x5ca805[_0x1ae2a4]=_0x45a122[_0x1ae2a4]);if(_0x45a122!=null&&typeof Object[_0x11f1e8(0x145)]==_0x11f1e8(0x133)){for(var _0xb1b3a1=0x0,_0x1ae2a4=Object['getOwnPropertySymbols'](_0x45a122);_0xb1b3a1<_0x1ae2a4[_0x11f1e8(0x1a3)];_0xb1b3a1++)_0x493b35[_0x11f1e8(0x128)](_0x1ae2a4[_0xb1b3a1])<0x0&&Object[_0x11f1e8(0x120)]['propertyIsEnumerable'][_0x11f1e8(0x10c)](_0x45a122,_0x1ae2a4[_0xb1b3a1])&&(_0x5ca805[_0x1ae2a4[_0xb1b3a1]]=_0x45a122[_0x1ae2a4[_0xb1b3a1]]);}return _0x5ca805;},W=_0x33acf1(function(_0x4ebfab,_0x4cd491){var _0x4a0548=_0x3eb66f,_0x110929=_0x4ebfab['icon'],_0x116ffe=_0x4ebfab['id'],_0x22281a=_0x4ebfab['className'],_0x23edd6=_0x4ebfab['extend'],_0x379481=Ce(_0x4ebfab,[_0x4a0548(0x147),'id',_0x4a0548(0x194),'extend']),_0x3c434a=_0x4a0548(0x111)[_0x4a0548(0x156)](_0x116ffe,'\x20')[_0x4a0548(0x156)](_0x22281a||'')[_0x4a0548(0x151)](),_0x293f41=_0x3891b2('_'[_0x4a0548(0x156)](Le()));return Y(_0x110929,''[_0x4a0548(0x156)](_0x116ffe),{'defIds':_0x110929[_0x4a0548(0x167)],'idSuffix':_0x293f41[_0x4a0548(0x123)]},c({'ref':_0x4cd491,'className':_0x3c434a},_0x379481),_0x23edd6);});function Y(_0x561962,_0x416939,_0x5b956a,_0x38f1d3,_0x270928){var _0x3a3dee=_0x3eb66f;return _0x5c13bc(_0x561962['tag'],c(c({'key':_0x416939},De(_0x561962,_0x5b956a,_0x270928)),_0x38f1d3),(xe(_0x561962,_0x5b956a)[_0x3a3dee(0x144)]||[])['map'](function(_0x5d28b7,_0x13d91d){var _0x460642=_0x3a3dee;return Y(_0x5d28b7,''[_0x460642(0x156)](_0x416939,'-')[_0x460642(0x156)](_0x561962[_0x460642(0x176)],'-')[_0x460642(0x156)](_0x13d91d),_0x5b956a,void 0x0,_0x270928);}));}function De(_0x18d6f1,_0x2806a0,_0x162d92){var _0x149b4b=_0x3eb66f,_0x2dcbad=c({},_0x18d6f1[_0x149b4b(0x18b)]);_0x162d92!=null&&_0x162d92[_0x149b4b(0x134)]&&_0x2dcbad[_0x149b4b(0x199)]==='colorChannel1'&&(_0x2dcbad[_0x149b4b(0x199)]=_0x162d92[_0x149b4b(0x134)]),_0x18d6f1[_0x149b4b(0x176)]==='mask'&&_0x2dcbad['id']&&(_0x2dcbad['id']=_0x2dcbad['id']+_0x2806a0[_0x149b4b(0x116)]),Object[_0x149b4b(0x155)](_0x2dcbad)[_0x149b4b(0x115)](function(_0x53c51a){var _0x29834c=_0x149b4b,_0x208bcf=_0x53c51a[0x0],_0x9fe15c=_0x53c51a[0x1];_0x208bcf===_0x29834c(0x130)&&typeof _0x9fe15c==_0x29834c(0x101)&&(_0x2dcbad[_0x208bcf]=_0x9fe15c[_0x29834c(0x169)](/url\(#(.*)\)/,'url(#$1'['concat'](_0x2806a0[_0x29834c(0x116)],')')));});var _0x5ca4b2=_0x2806a0['defIds'];return!_0x5ca4b2||_0x5ca4b2[_0x149b4b(0x1a3)]===0x0||(_0x18d6f1[_0x149b4b(0x176)]===_0x149b4b(0x12c)&&_0x2dcbad[_0x149b4b(0x12b)]&&(_0x2dcbad[_0x149b4b(0x12b)]=_0x2dcbad[_0x149b4b(0x12b)]+_0x2806a0['idSuffix']),Object[_0x149b4b(0x155)](_0x2dcbad)[_0x149b4b(0x115)](function(_0x54a16b){var _0x70d968=_0x149b4b,_0x39beda=_0x54a16b[0x0],_0x16a7f2=_0x54a16b[0x1];typeof _0x16a7f2==_0x70d968(0x101)&&(_0x2dcbad[_0x39beda]=_0x16a7f2[_0x70d968(0x169)](/url\(#(.*)\)/,_0x70d968(0x104)['concat'](_0x2806a0[_0x70d968(0x116)],')')));})),_0x2dcbad;}function xe(_0x34c4d2,_0x13d914){var _0x5e7632=_0x3eb66f,_0x1b3355,_0x472dc8=_0x13d914[_0x5e7632(0x167)];return!_0x472dc8||_0x472dc8['length']===0x0?_0x34c4d2:_0x34c4d2[_0x5e7632(0x176)]===_0x5e7632(0x122)&&(!((_0x1b3355=_0x34c4d2[_0x5e7632(0x144)])===null||_0x1b3355===void 0x0)&&_0x1b3355[_0x5e7632(0x1a3)])?c(c({},_0x34c4d2),{'children':_0x34c4d2[_0x5e7632(0x144)][_0x5e7632(0x15c)](function(_0x3b9116){var _0x200a7a=_0x5e7632;return typeof _0x3b9116[_0x200a7a(0x18b)]['id']=='string'&&_0x472dc8&&_0x472dc8[_0x200a7a(0x1a9)](_0x3b9116[_0x200a7a(0x18b)]['id'])?c(c({},_0x3b9116),{'attrs':c(c({},_0x3b9116[_0x200a7a(0x18b)]),{'id':_0x3b9116[_0x200a7a(0x18b)]['id']+_0x13d914[_0x200a7a(0x116)]})}):_0x3b9116;})}):_0x34c4d2;}function Le(){var _0x2323be=_0x3eb66f;return Math[_0x2323be(0x110)]()[_0x2323be(0x148)](0x24)['substring'](0x2,0x8);}W[_0x3eb66f(0x17a)]='UniverIcon';var ye={'tag':_0x3eb66f(0x168),'attrs':{'xmlns':_0x3eb66f(0x17d),'fill':'none','viewBox':_0x3eb66f(0x178),'width':_0x3eb66f(0x11e),'height':'1em'},'children':[{'tag':_0x3eb66f(0x12a),'attrs':{'fill':_0x3eb66f(0x186),'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':_0x3eb66f(0x186),'d':_0x3eb66f(0x12f),'fillRule':_0x3eb66f(0x164),'clipRule':'evenodd'}}]},B=_0x33acf1(function(_0x1b4209,_0x447a32){return _0x5c13bc(W,Object['assign']({},_0x1b4209,{'id':'live-share-icon','ref':_0x447a32,'icon':ye}));});B[_0x3eb66f(0x17a)]='LiveShareIcon';var Re=Object[_0x3eb66f(0x117)],Z=(_0xa5b805,_0x216d71,_0x28e6ff,_0x58feb7)=>{var _0x80a609=_0x3eb66f;for(var _0x1fada2=_0x58feb7>0x1?void 0x0:_0x58feb7?Re(_0x216d71,_0x28e6ff):_0x216d71,_0x304dd2=_0xa5b805[_0x80a609(0x1a3)]-0x1,_0x14e103;_0x304dd2>=0x0;_0x304dd2--)(_0x14e103=_0xa5b805[_0x304dd2])&&(_0x1fada2=_0x14e103(_0x1fada2)||_0x1fada2);return _0x1fada2;},f=(_0x2e5c93,_0x4eaa7)=>(_0x3b602f,_0x474e19)=>_0x4eaa7(_0x3b602f,_0x474e19,_0x2e5c93);let I=class extends _0x2968d7{constructor(_0x191f88,_0x980a71,_0x160263){var _0x43201a=_0x3eb66f;super(),d(this,_0x43201a(0x19c),new Map()),(this[_0x43201a(0x150)]=_0x191f88,this['_injector']=_0x980a71,this[_0x43201a(0x121)]=_0x160263,this[_0x43201a(0x19b)]());}async['getLiveShareCoordinator'](_0x644c2b){var _0x1dfabd=_0x3eb66f;return this[_0x1dfabd(0x19c)][_0x1dfabd(0x184)](_0x644c2b)||await this[_0x1dfabd(0x105)](_0x644c2b),this[_0x1dfabd(0x19c)][_0x1dfabd(0x14d)](_0x644c2b);}['_init'](){var _0x2e9506=_0x3eb66f;this[_0x2e9506(0x150)][_0x2e9506(0x17b)](_0x58c155[_0x2e9506(0x129)])[_0x2e9506(0x11c)](_0x64489(this[_0x2e9506(0x172)]))[_0x2e9506(0x182)](async _0x425593=>{var _0x4945d4=_0x2e9506;const _0x1d9035=_0x425593[_0x4945d4(0x161)]();this['_entities'][_0x4945d4(0x184)](_0x1d9035)||this[_0x4945d4(0x105)](_0x1d9035);}),this[_0x2e9506(0x150)][_0x2e9506(0x189)](_0x58c155[_0x2e9506(0x129)])[_0x2e9506(0x11c)](_0x64489(this['dispose$']))[_0x2e9506(0x182)](_0x515a74=>{var _0x4a7a1c=_0x2e9506;const _0x26e7f1=_0x515a74[_0x4a7a1c(0x161)](),_0x1dc535=this['_entities']['get'](_0x26e7f1);_0x1dc535==null||_0x1dc535['dispose']();});}async[_0x3eb66f(0x105)](_0x37258e){var _0x2d09bf=_0x3eb66f;const _0x53f0ba=await this[_0x2d09bf(0x121)][_0x2d09bf(0x106)](_0x37258e),_0x287bf8=this[_0x2d09bf(0x140)][_0x2d09bf(0x1a0)](C,_0x37258e,_0x53f0ba);return _0x287bf8[_0x2d09bf(0x11a)](),this['_entities'][_0x2d09bf(0x10d)](_0x37258e,_0x287bf8),_0x287bf8;}};I=Z([f(0x0,_0x516a71),f(0x1,_0x3f84a3(_0x15d8b5)),f(0x2,_0x3f84a3(_0x1b8367))],I);var h=(_0x5cd094=>(_0x5cd094[_0x3eb66f(0x149)]=_0x3eb66f(0x1a7),_0x5cd094[_0x3eb66f(0x166)]='idle',_0x5cd094[_0x3eb66f(0x135)]=_0x3eb66f(0x16b),_0x5cd094[_0x3eb66f(0x18d)]=_0x3eb66f(0x126),_0x5cd094[_0x3eb66f(0x15d)]=_0x3eb66f(0x198),_0x5cd094))(h||{});const Pe='SAME_OPERATION_SHARE_INTERVAL',Ae=0xc8;let C=class extends _0x2968d7{constructor(_0x2835e7,_0x597389,_0x1ad216,_0x42f58a,_0x30b660){var _0x4637f6=_0x3eb66f;super(),d(this,_0x4637f6(0x131),new _0x22c326(_0x4637f6(0x18e))),d(this,'status$',this[_0x4637f6(0x131)][_0x4637f6(0x17c)]()),d(this,'_init',!0x1),d(this,_0x4637f6(0x15a),null),d(this,_0x4637f6(0x171),null),(this[_0x4637f6(0x139)]=_0x2835e7,this[_0x4637f6(0x114)]=_0x597389,this[_0x4637f6(0x11b)]=_0x1ad216,this[_0x4637f6(0x15f)]=_0x42f58a,this[_0x4637f6(0x109)]=_0x30b660);}get[_0x3eb66f(0x18a)](){var _0x6a0a02=_0x3eb66f;return this[_0x6a0a02(0x131)][_0x6a0a02(0x13d)]();}[_0x3eb66f(0x158)](){var _0x22eac7=_0x3eb66f,_0x3e9a4e;(_0x3e9a4e=this[_0x22eac7(0x15a)])==null||_0x3e9a4e[_0x22eac7(0x158)](),this[_0x22eac7(0x131)][_0x22eac7(0x153)](_0x22eac7(0x18e)),this[_0x22eac7(0x131)][_0x22eac7(0x16e)]();}[_0x3eb66f(0x11a)](){var _0x4c977a=_0x3eb66f;this[_0x4c977a(0x19b)]||(this['_init']=!0x0,this[_0x4c977a(0x114)][_0x4c977a(0x175)][_0x4c977a(0x11c)](_0x64489(this['dispose$']))[_0x4c977a(0x182)](_0xf72c5b=>{var _0x17f580=_0x4c977a;switch(_0xf72c5b){case _0x39791d[_0x17f580(0x149)]:this['_handleOffline']();break;case _0x39791d['ONLINE']:this[_0x17f580(0x10b)]();break;}}),this[_0x4c977a(0x114)][_0x4c977a(0x136)]['pipe'](_0x64489(this['dispose$']))[_0x4c977a(0x182)](_0x4f1338=>{var _0x251f11=_0x4c977a;const {eventID:_0x204de6}=_0x4f1338;switch(_0x204de6){case _0x40c637['LIVESHARE_NEW_HOST']:this['_handleNewHost'](_0x4f1338);break;case _0x40c637[_0x251f11(0x180)]:this[_0x251f11(0x170)](_0x4f1338);break;case _0x40c637['LIVESHARE_TERMINATE']:this[_0x251f11(0x13c)]();break;case _0x40c637['NEW_CHANGESETS']:this['_handleNewChangeSets'](_0x4f1338);break;}}));}['tryStartPresenting'](){var _0x1eb66c=_0x3eb66f;this[_0x1eb66c(0x114)]['send']({'eventID':_0x40c637['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this[_0x1eb66c(0x139)],'userID':this[_0x1eb66c(0x114)][_0x1eb66c(0x138)]()}},this[_0x1eb66c(0x139)]);}[_0x3eb66f(0x1a4)](){var _0x327742=_0x3eb66f;this['_status']===_0x327742(0x198)&&(this[_0x327742(0x131)][_0x327742(0x153)]('idle'),this[_0x327742(0x114)][_0x327742(0x173)]({'eventID':_0x40c637[_0x327742(0x127)],'data':{'unitID':this[_0x327742(0x139)]}},this[_0x327742(0x139)]));}['startFollowing'](){var _0x507ba6=_0x3eb66f;this[_0x507ba6(0x18a)]===_0x507ba6(0x126)&&(this['_status$'][_0x507ba6(0x153)](_0x507ba6(0x16b)),this[_0x507ba6(0x15e)]());}['stopFollowing'](){var _0x3e30d8=_0x3eb66f;this[_0x3e30d8(0x18a)]===_0x3e30d8(0x16b)&&this['_stopFollowing']();}[_0x3eb66f(0x174)](_0x15215b){var _0x46f13e=_0x3eb66f;const {presenter:_0x30af10}=_0x15215b[_0x46f13e(0x10e)],_0x54b30e=this[_0x46f13e(0x114)]['getMemberID']();this[_0x46f13e(0x171)]=_0x30af10,_0x30af10===_0x54b30e?(this['_stopFollowing'](),this[_0x46f13e(0x17e)]()):this[_0x46f13e(0x18a)]!==_0x46f13e(0x126)&&(this[_0x46f13e(0x162)](),this[_0x46f13e(0x15e)]());}[_0x3eb66f(0x16d)](){var _0x5d4bd5=_0x3eb66f;const _0x40c1a6={'eventID':_0x40c637[_0x5d4bd5(0x146)]};this['_collabSession'][_0x5d4bd5(0x173)](_0x40c1a6,this[_0x5d4bd5(0x139)]);}[_0x3eb66f(0x13c)](){var _0x659622=_0x3eb66f;this[_0x659622(0x171)]=null,this[_0x659622(0x18a)]!==_0x659622(0x198)&&this['_beIdle']();}[_0x3eb66f(0x112)](_0x2e1d73){var _0x2280f4=_0x3eb66f;if(this['_status']==='following'&&this[_0x2280f4(0x171)]===_0x2e1d73['data'][_0x2280f4(0x19a)]){const _0x302ee2=_0x4c17bf(_0x2e1d73['data'])['mutations']['reverse']()['find'](_0x20a2d0=>_0x20a2d0['id']===_0x2a9f7c['id']);if(_0x302ee2){const _0x543e43=_0x302ee2[_0x2280f4(0x107)][_0x2280f4(0x18c)],_0x335cc4=_0x302ee2[_0x2280f4(0x107)]['sheet']['id'];setTimeout(()=>{var _0x25ca2b=_0x2280f4;this['_commandService'][_0x25ca2b(0x1a8)](_0x3b7bd5['id'],{'unitId':_0x543e43,'subUnitId':_0x335cc4},{'fromCollab':!0x0});});}}}[_0x3eb66f(0x17e)](){var _0x23010c=_0x3eb66f;this['_status$'][_0x23010c(0x153)](_0x23010c(0x198));const _0x5ceb43=new Map(),_0x3ab671=this[_0x23010c(0x15a)]=new _0x22943b();_0x3ab671[_0x23010c(0x11d)](_0x56fa4e(()=>{var _0x5180d0=_0x23010c;_0x5ceb43['forEach'](_0x122fc5=>_0x122fc5[_0x5180d0(0x16e)]()),_0x5ceb43['clear']();})),_0x3ab671[_0x23010c(0x11d)](this[_0x23010c(0x109)]['onCommandExecuted'](_0x57b028=>{var _0x5c255f=_0x23010c,_0x40a3fa;if(_0x57b028[_0x5c255f(0x14a)]!==_0x50cabc[_0x5c255f(0x1a5)]||!this[_0x5c255f(0x15f)]['shouldShareOperation'](_0x57b028['id']))return;const {id:_0x18c313}=_0x57b028;let _0x3ded07;_0x5ceb43[_0x5c255f(0x184)](_0x18c313)?_0x3ded07=_0x5ceb43['get'](_0x18c313):(_0x3ded07=new _0x4a1280(),_0x5ceb43['set'](_0x18c313,_0x3ded07),_0x3ded07['pipe'](_0x1cb448((_0x40a3fa=this[_0x5c255f(0x11b)][_0x5c255f(0x13b)](Pe))!=null?_0x40a3fa:Ae,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x5c255f(0x182)](_0x4165a6=>{var _0x3fe6d5=_0x5c255f;this[_0x3fe6d5(0x114)]['send']({'eventID':_0x40c637['LIVESHARE_OPERATION'],'data':{'unitID':this['_unitID'],'operations':{[_0x4165a6['id']]:{'id':_0x4165a6['id'],'params':JSON[_0x3fe6d5(0x119)](_0x4165a6[_0x3fe6d5(0x107)])}}}},this['_unitID']);})),_0x3ded07[_0x5c255f(0x153)](_0x57b028);})),this[_0x23010c(0x15f)][_0x23010c(0x17f)](this[_0x23010c(0x139)])[_0x23010c(0x115)](_0x16de63=>this[_0x23010c(0x114)]['send']({'eventID':_0x40c637[_0x23010c(0x180)],'data':{'unitID':this['_unitID'],'operations':{[_0x16de63['id']]:{'id':_0x16de63['id'],'params':JSON[_0x23010c(0x119)](_0x16de63[_0x23010c(0x107)])}}}},this[_0x23010c(0x139)]));}[_0x3eb66f(0x162)](){var _0x130467=_0x3eb66f,_0x54fd2e;this[_0x130467(0x131)]['next'](_0x130467(0x18e)),(_0x54fd2e=this[_0x130467(0x15a)])==null||_0x54fd2e[_0x130467(0x158)](),this['_commandDisposable']=null;}[_0x3eb66f(0x15e)](){var _0x510ac4=_0x3eb66f,_0x55a288;(_0x55a288=this[_0x510ac4(0x15a)])==null||_0x55a288[_0x510ac4(0x158)](),this['_status$']['next'](_0x510ac4(0x16b));}['_beIdle'](){var _0x2218a8=_0x3eb66f,_0x22ce86;this[_0x2218a8(0x131)][_0x2218a8(0x153)](_0x2218a8(0x18e)),(_0x22ce86=this['_commandDisposable'])==null||_0x22ce86[_0x2218a8(0x158)](),this['_commandDisposable']=null;}[_0x3eb66f(0x14e)](){var _0x535976=_0x3eb66f,_0x2c0dde;this['_status$'][_0x535976(0x153)](_0x535976(0x126)),(_0x2c0dde=this['_commandDisposable'])==null||_0x2c0dde['dispose']();}[_0x3eb66f(0x170)](_0x24f7c7){var _0x15c87a=_0x3eb66f;if([_0x15c87a(0x198),_0x15c87a(0x126),_0x15c87a(0x1a7)][_0x15c87a(0x1a9)](this[_0x15c87a(0x18a)])||!_0x24f7c7['data']['presenter']||_0x24f7c7[_0x15c87a(0x10e)][_0x15c87a(0x19f)]===this['_collabSession'][_0x15c87a(0x138)]())return;this[_0x15c87a(0x18a)]===_0x15c87a(0x18e)&&this['_startFollowing']();const _0x2f485e=_0x24f7c7[_0x15c87a(0x10e)][_0x15c87a(0x187)];Object['values'](_0x2f485e)[_0x15c87a(0x115)](_0x158936=>{var _0x512fb5=_0x15c87a;this['_commandService'][_0x512fb5(0x1a8)](_0x158936['id'],_0x158936[_0x512fb5(0x107)]?JSON[_0x512fb5(0x157)](_0x158936[_0x512fb5(0x107)]):null,{'fromCollab':!0x0});});}[_0x3eb66f(0x188)](){var _0x3a44e5=_0x3eb66f,_0x574c0c;this['_status$']['next'](_0x3a44e5(0x1a7)),(_0x574c0c=this['_commandDisposable'])==null||_0x574c0c[_0x3a44e5(0x158)]();}['_handleOnline'](){var _0x2d947d=_0x3eb66f;this[_0x2d947d(0x131)][_0x2d947d(0x153)](_0x2d947d(0x18e)),this[_0x2d947d(0x16d)]();}};C=Z([f(0x2,_0x314f53),f(0x3,_0x3f84a3(L)),f(0x4,_0x39ff78)],C);function Te(){var _0x41b232=_0x3eb66f;const _0x206bc3=_0x318ee9(I),_0x3cb97e=_0x318ee9(_0x516a71),_0x2713e6=_0x394850(()=>_0x3cb97e['getCurrentTypeOfUnit$'](_0x58c155[_0x41b232(0x129)]),void 0x0,!0x1,[]),[_0x21c736,_0x2b34db]=_0xd7af93(null),[_0x13b350,_0x3b5c0d]=_0xd7af93(h[_0x41b232(0x166)]),_0x2731f4=_0x3891b2(null);return _0x59b4f4(()=>(_0x2713e6&&_0x206bc3[_0x41b232(0x143)](_0x2713e6['getUnitId']())['then'](_0x3e4914=>{var _0x5f29cb=_0x41b232;_0x2b34db(_0x3e4914),_0x2731f4['current']=_0x3e4914[_0x5f29cb(0x13f)][_0x5f29cb(0x182)](_0x471ea4=>{_0x3b5c0d(_0x471ea4);});}),()=>{var _0x9e0507=_0x41b232,_0x45d08a;(_0x45d08a=_0x2731f4[_0x9e0507(0x123)])==null||_0x45d08a[_0x9e0507(0x141)](),_0x2731f4['current']=null;}),[_0x2713e6,_0x206bc3]),_0x21c736?_0x317f25(_0x11722c,{'align':'end','disabled':_0x13b350===h[_0x41b232(0x149)],'className':_0x41b232(0x124),'overlay':_0x317f25($e,{'status':_0x13b350,'coordinator':_0x21c736}),'children':_0x317f25(_0x41b232(0x197),{'className':_0x81ab49(_0x41b232(0x163),{'univer-cursor-not-allowed':_0x13b350===h[_0x41b232(0x149)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x13b350!==h[_0x41b232(0x149)]}),'type':_0x41b232(0x197),'children':_0x317f25(B,{'className':_0x41b232(0x190)})})}):null;}function $e(_0x4fd75a){var _0x3b8523=_0x3eb66f;const {status:_0x26b86d,coordinator:_0x49d2df}=_0x4fd75a;switch(_0x26b86d){case h[_0x3b8523(0x166)]:return _0x317f25(Fe,{'coordinator':_0x49d2df});case h[_0x3b8523(0x135)]:return _0x317f25(He,{'coordinator':_0x49d2df});case h[_0x3b8523(0x18d)]:return _0x317f25(je,{'coordinator':_0x49d2df});case h[_0x3b8523(0x149)]:return _0x317f25(Ve,{});case h[_0x3b8523(0x15d)]:return _0x317f25(Ue,{'coordinator':_0x49d2df});default:return null;}}function Fe(_0x499b26){var _0x2d2586=_0x3eb66f;const {coordinator:_0x1df800}=_0x499b26;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0x2d2586(0x142),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'Present\x20this\x20document'}),_0x317f25(_0x29954b,{'onClick':()=>_0x1df800[_0x2d2586(0x12d)](),'children':_0x2d2586(0x10f)})]});}function He(_0x553cbf){var _0x305378=_0x3eb66f;const {coordinator:_0x45933c}=_0x553cbf;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0x305378(0x142),{'className':_0x305378(0x16a),'children':_0x305378(0x16f)}),_0x317f25(_0x29954b,{'onClick':()=>_0x45933c[_0x305378(0x160)](),'children':'Stop\x20following'})]});}function je(_0x59c570){var _0x130793=_0x3eb66f;const {coordinator:_0x535713}=_0x59c570;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0x130793(0x142),{'className':_0x130793(0x16a),'children':_0x130793(0x152)}),_0x317f25(_0x29954b,{'variant':_0x130793(0x137),'onClick':()=>_0x535713[_0x130793(0x1a2)](),'children':_0x130793(0x13e)})]});}function Ue(_0x227770){var _0xe31be0=_0x3eb66f;const {coordinator:_0x4c0903}=_0x227770;return _0x387033(_0xcbf086,{'children':[_0x317f25(_0xe31be0(0x142),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':'You\x27re\x20presenting\x20the\x20document'}),_0x317f25(_0x29954b,{'variant':_0xe31be0(0x100),'onClick':()=>_0x4c0903[_0xe31be0(0x1a4)](),'children':_0xe31be0(0x154)})]});}function Ve(){var _0x2d4639=_0x3eb66f;return _0x317f25(_0xcbf086,{'children':_0x2d4639(0x14b)});}var Me=Object['getOwnPropertyDescriptor'],ke=(_0x176aab,_0x3e99de,_0x438bba,_0x303e97)=>{for(var _0x466db5=_0x303e97>0x1?void 0x0:_0x303e97?Me(_0x3e99de,_0x438bba):_0x3e99de,_0x37da53=_0x176aab['length']-0x1,_0x363d41;_0x37da53>=0x0;_0x37da53--)(_0x363d41=_0x176aab[_0x37da53])&&(_0x466db5=_0x363d41(_0x466db5)||_0x466db5);return _0x466db5;},$=(_0x52b8fc,_0x5b6691)=>(_0x59eb1f,_0x3d9047)=>_0x5b6691(_0x59eb1f,_0x3d9047,_0x52b8fc);let b=class extends _0x28094d{constructor(_0x1ed1ff,_0x40625d){var _0x8f0c25=_0x3eb66f;super(),this[_0x8f0c25(0x140)]=_0x1ed1ff,this[_0x8f0c25(0x191)]=_0x40625d,this[_0x8f0c25(0x132)]();}['_mountLiveShare'](){var _0x19c19a=_0x3eb66f;this[_0x19c19a(0x183)](this['_uiPartsService'][_0x19c19a(0x192)](_0x45e07f[_0x19c19a(0x1a6)],()=>_0x67a89(Te,this['_injector'])));}};b=ke([$(0x0,_0x3f84a3(_0x15d8b5)),$(0x1,_0x326cbf)],b);var Ge=Object['defineProperty'],We=Object[_0x3eb66f(0x117)],Ye=(_0x70e9c1,_0x954166,_0x276c9e)=>_0x954166 in _0x70e9c1?Ge(_0x70e9c1,_0x954166,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x276c9e}):_0x70e9c1[_0x954166]=_0x276c9e,Be=(_0x47328e,_0x4cfded,_0x2f2279,_0x30ee14)=>{for(var _0x5a74f6=_0x30ee14>0x1?void 0x0:_0x30ee14?We(_0x4cfded,_0x2f2279):_0x4cfded,_0x4c4c3a=_0x47328e['length']-0x1,_0x1bacac;_0x4c4c3a>=0x0;_0x4c4c3a--)(_0x1bacac=_0x47328e[_0x4c4c3a])&&(_0x5a74f6=_0x1bacac(_0x5a74f6)||_0x5a74f6);return _0x5a74f6;},F=(_0x5e3ec0,_0x2a89c8)=>(_0x45cef5,_0x20c7d8)=>_0x2a89c8(_0x45cef5,_0x20c7d8,_0x5e3ec0),J=(_0x16e971,_0xd9f221,_0x337e01)=>Ye(_0x16e971,typeof _0xd9f221!=_0x3eb66f(0x15b)?_0xd9f221+'':_0xd9f221,_0x337e01);const Ze=_0x3eb66f(0x108);let O=class extends _0x47a77d{constructor(_0x2305ee=T,_0x2250c8,_0x4d146b){var _0x8c5b86=_0x3eb66f;super(),this[_0x8c5b86(0x19d)]=_0x2305ee,this[_0x8c5b86(0x140)]=_0x2250c8,this[_0x8c5b86(0x11b)]=_0x4d146b;const {..._0x96d20d}=_0x1f5ca3({},T,this[_0x8c5b86(0x19d)]);this[_0x8c5b86(0x11b)][_0x8c5b86(0x113)](Oe,_0x96d20d);}[_0x3eb66f(0x177)](){var _0x5f1ff0=_0x3eb66f;_0x1df7a9(this[_0x5f1ff0(0x140)],_0x227802([[L],[I],[m],[b]],this[_0x5f1ff0(0x19d)]['override'])),_0x4f8b46(this[_0x5f1ff0(0x140)],[[m]]);}['onRendered'](){var _0x2d4ecf=_0x3eb66f;_0x4f8b46(this[_0x2d4ecf(0x140)],[[b]]);}};J(O,_0x3eb66f(0x14a),_0x58c155[_0x3eb66f(0x165)]),J(O,_0x3eb66f(0x12e),Ze),O=Be([_0x419c79(_0x26cab8),F(0x1,_0x3f84a3(_0x15d8b5)),F(0x2,_0x314f53)],O);export{b as DesktopLiveShareController,Te as LiveShare,I as LiveShareController,C as LiveShareCoordinator,L as LiveShareService,h as LiveShareStatus,O as UniverLiveSharePlugin};
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x465a(_0x285d61,_0x4d9227){var _0x16ae83=_0x16ae();return _0x465a=function(_0x465a30,_0x196a95){_0x465a30=_0x465a30-0x121;var _0x2ef50c=_0x16ae83[_0x465a30];return _0x2ef50c;},_0x465a(_0x285d61,_0x4d9227);}(function(_0x2d8044,_0x51020c){var _0x1c76dc=_0x465a,_0x54a471=_0x2d8044();while(!![]){try{var _0x37fda2=parseInt(_0x1c76dc(0x129))/0x1+parseInt(_0x1c76dc(0x12a))/0x2*(parseInt(_0x1c76dc(0x130))/0x3)+-parseInt(_0x1c76dc(0x1ca))/0x4+-parseInt(_0x1c76dc(0x195))/0x5+-parseInt(_0x1c76dc(0x1b8))/0x6*(parseInt(_0x1c76dc(0x20d))/0x7)+parseInt(_0x1c76dc(0x136))/0x8*(parseInt(_0x1c76dc(0x16b))/0x9)+parseInt(_0x1c76dc(0x1a9))/0xa;if(_0x37fda2===_0x51020c)break;else _0x54a471['push'](_0x54a471['shift']());}catch(_0x49ada0){_0x54a471['push'](_0x54a471['shift']());}}}(_0x16ae,0x334cd),function(_0x42e9b2,_0x1c25af){var _0x5d6270=_0x465a;typeof exports=='object'&&typeof module<'u'?_0x1c25af(exports,require(_0x5d6270(0x16e)),require(_0x5d6270(0x1f5)),require(_0x5d6270(0x1f3)),require(_0x5d6270(0x1f7)),require(_0x5d6270(0x207)),require('react/jsx-runtime'),require('@univerjs/design'),require(_0x5d6270(0x1d4)),require(_0x5d6270(0x16d)),require('rxjs'),require(_0x5d6270(0x178))):typeof define==_0x5d6270(0x143)&&define['amd']?define([_0x5d6270(0x158),_0x5d6270(0x16e),'@univerjs/core',_0x5d6270(0x1f3),_0x5d6270(0x1f7),_0x5d6270(0x207),_0x5d6270(0x1ae),_0x5d6270(0x1a3),'react',_0x5d6270(0x16d),'rxjs',_0x5d6270(0x178)],_0x1c25af):(_0x42e9b2=typeof globalThis<'u'?globalThis:_0x42e9b2||self,_0x1c25af(_0x42e9b2['UniverProLiveShare']={},_0x42e9b2['UniverProCollaborationClient'],_0x42e9b2[_0x5d6270(0x19a)],_0x42e9b2['UniverSheets'],_0x42e9b2[_0x5d6270(0x1b0)],_0x42e9b2[_0x5d6270(0x174)],_0x42e9b2[_0x5d6270(0x1ee)],_0x42e9b2['UniverDesign'],_0x42e9b2[_0x5d6270(0x1ee)],_0x42e9b2['UniverProCollaboration'],_0x42e9b2[_0x5d6270(0x1c0)],_0x42e9b2['rxjs'][_0x5d6270(0x1a2)]));}(this,function(_0x4283c3,_0xa185a6,_0x457ba8,_0x30d724,_0x497c1a,_0x4ed24c,_0x266ae0,_0x4d8cc3,_0x646ae3,_0x14b659,_0x1caf80,_0x1c91c9){'use strict';var _0x4e5a84=_0x465a;var _0x31c86d=Object[_0x4e5a84(0x16c)],_0x4ff86e=(_0x21068f,_0x2adff5,_0x1458ca)=>_0x2adff5 in _0x21068f?_0x31c86d(_0x21068f,_0x2adff5,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1458ca}):_0x21068f[_0x2adff5]=_0x1458ca,_0xe37336=(_0x5335f2,_0x236057,_0x4a287b)=>_0x4ff86e(_0x5335f2,typeof _0x236057!=_0x4e5a84(0x20e)?_0x236057+'':_0x236057,_0x4a287b);const _0xe02570=_0x4e5a84(0x19f),_0x286e71={};class _0xe7b1f9 extends _0x457ba8[_0x4e5a84(0x1d8)]{constructor(){var _0x5c01b1=_0x4e5a84;super(...arguments),_0xe37336(this,_0x5c01b1(0x142),new Set()),_0xe37336(this,'_reporters',new Set());}[_0x4e5a84(0x190)](_0x2342b0){var _0x358013=_0x4e5a84;return this['_sharedOperations'][_0x358013(0x1a1)](_0x2342b0),_0x457ba8[_0x358013(0x1d6)](()=>this[_0x358013(0x142)][_0x358013(0x15b)](_0x2342b0));}[_0x4e5a84(0x170)](_0x3d15e1){var _0x45fa3e=_0x4e5a84;return this[_0x45fa3e(0x185)]['add'](_0x3d15e1),_0x457ba8[_0x45fa3e(0x1d6)](()=>this[_0x45fa3e(0x185)][_0x45fa3e(0x15b)](_0x3d15e1));}[_0x4e5a84(0x128)](_0x419c92){var _0x55b806=_0x4e5a84;return this[_0x55b806(0x142)][_0x55b806(0x175)](_0x419c92);}[_0x4e5a84(0x132)](_0x28a91b){var _0x5e2daa=_0x4e5a84;return Array[_0x5e2daa(0x1e6)](this[_0x5e2daa(0x185)])[_0x5e2daa(0x177)](_0x3c3e44=>_0x3c3e44(_0x28a91b));}}var _0x4cde44=Object[_0x4e5a84(0x1fd)],_0xa887bc=(_0x3e5b37,_0x40a98d,_0x36ae5e,_0x32860b)=>{var _0x2d857b=_0x4e5a84;for(var _0x221447=_0x32860b>0x1?void 0x0:_0x32860b?_0x4cde44(_0x40a98d,_0x36ae5e):_0x40a98d,_0x5799bf=_0x3e5b37[_0x2d857b(0x157)]-0x1,_0x1d9552;_0x5799bf>=0x0;_0x5799bf--)(_0x1d9552=_0x3e5b37[_0x5799bf])&&(_0x221447=_0x1d9552(_0x221447)||_0x221447);return _0x221447;},_0x214d52=(_0x3e9ba9,_0x3d3556)=>(_0x19d112,_0x40ce4b)=>_0x3d3556(_0x19d112,_0x40ce4b,_0x3e9ba9);let _0x4783ce=class extends _0x457ba8[_0x4e5a84(0x1d8)]{constructor(_0x50ee65){var _0x3c3e47=_0x4e5a84;super(),this[_0x3c3e47(0x172)]=_0x50ee65,this[_0x3c3e47(0x179)]();}[_0x4e5a84(0x179)](){var _0x5c25fa=_0x4e5a84;[_0x497c1a[_0x5c25fa(0x1ce)]['id'],_0x497c1a['SetScrollOperation']['id'],_0x30d724['SetWorksheetActiveOperation']['id']][_0x5c25fa(0x165)](_0x5b68b2=>{var _0x4b53f0=_0x5c25fa;this['disposeWithMe'](this[_0x4b53f0(0x172)]['registerSharedOperation'](_0x5b68b2));});}};_0x4783ce=_0xa887bc([_0x214d52(0x0,_0x457ba8[_0x4e5a84(0x13c)](_0xe7b1f9))],_0x4783ce);var _0x298233=function(){var _0x1f043e=_0x4e5a84;return _0x298233=Object['assign']||function(_0x3d7a39){var _0x3da2f0=_0x465a;for(var _0x191591,_0x26a202=0x1,_0x5b887d=arguments['length'];_0x26a202<_0x5b887d;_0x26a202++){_0x191591=arguments[_0x26a202];for(var _0x4ddb30 in _0x191591)Object['prototype'][_0x3da2f0(0x15f)][_0x3da2f0(0x148)](_0x191591,_0x4ddb30)&&(_0x3d7a39[_0x4ddb30]=_0x191591[_0x4ddb30]);}return _0x3d7a39;},_0x298233[_0x1f043e(0x163)](this,arguments);},_0x537b32=function(_0x21e174,_0x5204fb){var _0x32a275=_0x4e5a84,_0x2a1374={};for(var _0xcb2cef in _0x21e174)Object[_0x32a275(0x135)]['hasOwnProperty'][_0x32a275(0x148)](_0x21e174,_0xcb2cef)&&_0x5204fb[_0x32a275(0x1c3)](_0xcb2cef)<0x0&&(_0x2a1374[_0xcb2cef]=_0x21e174[_0xcb2cef]);if(_0x21e174!=null&&typeof Object[_0x32a275(0x1cb)]==_0x32a275(0x143)){for(var _0x44378e=0x0,_0xcb2cef=Object['getOwnPropertySymbols'](_0x21e174);_0x44378e<_0xcb2cef[_0x32a275(0x157)];_0x44378e++)_0x5204fb[_0x32a275(0x1c3)](_0xcb2cef[_0x44378e])<0x0&&Object[_0x32a275(0x135)][_0x32a275(0x16a)][_0x32a275(0x148)](_0x21e174,_0xcb2cef[_0x44378e])&&(_0x2a1374[_0xcb2cef[_0x44378e]]=_0x21e174[_0xcb2cef[_0x44378e]]);}return _0x2a1374;},_0x5e7a23=_0x646ae3[_0x4e5a84(0x1b7)](function(_0xe24237,_0x2dcded){var _0x454ba2=_0x4e5a84,_0x128715=_0xe24237[_0x454ba2(0x1dc)],_0x21946b=_0xe24237['id'],_0x4ba976=_0xe24237['className'],_0x8c7e7e=_0xe24237['extend'],_0x19cdd5=_0x537b32(_0xe24237,[_0x454ba2(0x1dc),'id',_0x454ba2(0x15e),_0x454ba2(0x14c)]),_0x552b68=_0x454ba2(0x1c9)[_0x454ba2(0x1c5)](_0x21946b,'\x20')[_0x454ba2(0x1c5)](_0x4ba976||'')[_0x454ba2(0x162)](),_0x109004=_0x646ae3[_0x454ba2(0x14b)]('_'[_0x454ba2(0x1c5)](_0xd0ffbc()));return _0x3f863e(_0x128715,''[_0x454ba2(0x1c5)](_0x21946b),{'defIds':_0x128715['defIds'],'idSuffix':_0x109004[_0x454ba2(0x1e3)]},_0x298233({'ref':_0x2dcded,'className':_0x552b68},_0x19cdd5),_0x8c7e7e);});function _0x3f863e(_0x534416,_0x255c29,_0x5eea1f,_0x582764,_0x4cc570){var _0x30258e=_0x4e5a84;return _0x646ae3[_0x30258e(0x12e)](_0x534416[_0x30258e(0x154)],_0x298233(_0x298233({'key':_0x255c29},_0x188351(_0x534416,_0x5eea1f,_0x4cc570)),_0x582764),(_0x5ac5c0(_0x534416,_0x5eea1f)[_0x30258e(0x1d3)]||[])[_0x30258e(0x177)](function(_0x354bbe,_0x54e03c){var _0x28d0f1=_0x30258e;return _0x3f863e(_0x354bbe,''[_0x28d0f1(0x1c5)](_0x255c29,'-')[_0x28d0f1(0x1c5)](_0x534416[_0x28d0f1(0x154)],'-')[_0x28d0f1(0x1c5)](_0x54e03c),_0x5eea1f,void 0x0,_0x4cc570);}));}function _0x188351(_0x2a4e31,_0x3d8d48,_0x3f4805){var _0x45a8d1=_0x4e5a84,_0x1b7b24=_0x298233({},_0x2a4e31['attrs']);_0x3f4805!=null&&_0x3f4805['colorChannel1']&&_0x1b7b24['fill']===_0x45a8d1(0x1c2)&&(_0x1b7b24[_0x45a8d1(0x17f)]=_0x3f4805[_0x45a8d1(0x1c2)]),_0x2a4e31[_0x45a8d1(0x154)]==='mask'&&_0x1b7b24['id']&&(_0x1b7b24['id']=_0x1b7b24['id']+_0x3d8d48[_0x45a8d1(0x131)]),Object[_0x45a8d1(0x213)](_0x1b7b24)[_0x45a8d1(0x165)](function(_0x5a2dea){var _0x1e6b2f=_0x45a8d1,_0x4870c3=_0x5a2dea[0x0],_0x199962=_0x5a2dea[0x1];_0x4870c3===_0x1e6b2f(0x203)&&typeof _0x199962==_0x1e6b2f(0x145)&&(_0x1b7b24[_0x4870c3]=_0x199962[_0x1e6b2f(0x169)](/url\(#(.*)\)/,_0x1e6b2f(0x1f0)[_0x1e6b2f(0x1c5)](_0x3d8d48[_0x1e6b2f(0x131)],')')));});var _0x3c25b4=_0x3d8d48[_0x45a8d1(0x18e)];return!_0x3c25b4||_0x3c25b4[_0x45a8d1(0x157)]===0x0||(_0x2a4e31[_0x45a8d1(0x154)]==='use'&&_0x1b7b24[_0x45a8d1(0x12c)]&&(_0x1b7b24[_0x45a8d1(0x12c)]=_0x1b7b24[_0x45a8d1(0x12c)]+_0x3d8d48[_0x45a8d1(0x131)]),Object[_0x45a8d1(0x213)](_0x1b7b24)[_0x45a8d1(0x165)](function(_0x2872cc){var _0x450750=_0x45a8d1,_0x22bd14=_0x2872cc[0x0],_0x149682=_0x2872cc[0x1];typeof _0x149682=='string'&&(_0x1b7b24[_0x22bd14]=_0x149682[_0x450750(0x169)](/url\(#(.*)\)/,_0x450750(0x1f0)[_0x450750(0x1c5)](_0x3d8d48['idSuffix'],')')));})),_0x1b7b24;}function _0x5ac5c0(_0x15b603,_0x1b9486){var _0xedfc76=_0x4e5a84,_0x3d162c,_0x34fe28=_0x1b9486[_0xedfc76(0x18e)];return!_0x34fe28||_0x34fe28[_0xedfc76(0x157)]===0x0?_0x15b603:_0x15b603[_0xedfc76(0x154)]===_0xedfc76(0x153)&&(!((_0x3d162c=_0x15b603[_0xedfc76(0x1d3)])===null||_0x3d162c===void 0x0)&&_0x3d162c[_0xedfc76(0x157)])?_0x298233(_0x298233({},_0x15b603),{'children':_0x15b603[_0xedfc76(0x1d3)]['map'](function(_0x5c27b6){var _0x52d4d2=_0xedfc76;return typeof _0x5c27b6[_0x52d4d2(0x20b)]['id']==_0x52d4d2(0x145)&&_0x34fe28&&_0x34fe28[_0x52d4d2(0x1bb)](_0x5c27b6[_0x52d4d2(0x20b)]['id'])?_0x298233(_0x298233({},_0x5c27b6),{'attrs':_0x298233(_0x298233({},_0x5c27b6[_0x52d4d2(0x20b)]),{'id':_0x5c27b6[_0x52d4d2(0x20b)]['id']+_0x1b9486[_0x52d4d2(0x131)]})}):_0x5c27b6;})}):_0x15b603;}function _0xd0ffbc(){var _0x5c94be=_0x4e5a84;return Math['random']()[_0x5c94be(0x206)](0x24)[_0x5c94be(0x1c6)](0x2,0x8);}_0x5e7a23[_0x4e5a84(0x1f1)]='UniverIcon';var _0x5c175f={'tag':'svg','attrs':{'xmlns':'http://www.w3.org/2000/svg','fill':_0x4e5a84(0x14d),'viewBox':_0x4e5a84(0x156),'width':_0x4e5a84(0x191),'height':_0x4e5a84(0x191)},'children':[{'tag':'path','attrs':{'fill':_0x4e5a84(0x17c),'d':_0x4e5a84(0x210)}},{'tag':_0x4e5a84(0x17d),'attrs':{'fill':_0x4e5a84(0x17c),'d':_0x4e5a84(0x1de),'fillRule':_0x4e5a84(0x1b5),'clipRule':'evenodd'}}]},_0x3a4854=_0x646ae3[_0x4e5a84(0x1b7)](function(_0xb6df36,_0x5c8d95){var _0x19538f=_0x4e5a84;return _0x646ae3[_0x19538f(0x12e)](_0x5e7a23,Object[_0x19538f(0x159)]({},_0xb6df36,{'id':_0x19538f(0x167),'ref':_0x5c8d95,'icon':_0x5c175f}));});_0x3a4854[_0x4e5a84(0x1f1)]=_0x4e5a84(0x1e5);var _0xad6688=Object['getOwnPropertyDescriptor'],_0x4275d4=(_0x29acfa,_0x4ed2f9,_0x2779b2,_0x3dec42)=>{var _0x2212fe=_0x4e5a84;for(var _0x40b7cf=_0x3dec42>0x1?void 0x0:_0x3dec42?_0xad6688(_0x4ed2f9,_0x2779b2):_0x4ed2f9,_0x299204=_0x29acfa[_0x2212fe(0x157)]-0x1,_0x3d54ba;_0x299204>=0x0;_0x299204--)(_0x3d54ba=_0x29acfa[_0x299204])&&(_0x40b7cf=_0x3d54ba(_0x40b7cf)||_0x40b7cf);return _0x40b7cf;},_0x6feff1=(_0x22ee74,_0x326f7b)=>(_0x101134,_0xc8354b)=>_0x326f7b(_0x101134,_0xc8354b,_0x22ee74);_0x4283c3[_0x4e5a84(0x1ed)]=class extends _0x457ba8[_0x4e5a84(0x1ec)]{constructor(_0xdf09e2,_0x2af307,_0xe79dd8){var _0x58abfc=_0x4e5a84;super(),_0xe37336(this,_0x58abfc(0x15d),new Map()),(this[_0x58abfc(0x19e)]=_0xdf09e2,this[_0x58abfc(0x155)]=_0x2af307,this['_collabSessionService']=_0xe79dd8,this['_init']());}async['getLiveShareCoordinator'](_0xf3e61a){var _0x216120=_0x4e5a84;return this['_entities']['has'](_0xf3e61a)||await this[_0x216120(0x20a)](_0xf3e61a),this[_0x216120(0x15d)][_0x216120(0x181)](_0xf3e61a);}['_init'](){var _0x2a38cc=_0x4e5a84;this['_univerInstanceService'][_0x2a38cc(0x212)](_0x457ba8[_0x2a38cc(0x1e1)][_0x2a38cc(0x126)])[_0x2a38cc(0x1b2)](_0x1c91c9[_0x2a38cc(0x192)](this['dispose$']))[_0x2a38cc(0x12b)](async _0x491822=>{var _0x1e0e9e=_0x2a38cc;const _0x4e82ac=_0x491822['getUnitId']();this[_0x1e0e9e(0x15d)]['has'](_0x4e82ac)||this[_0x1e0e9e(0x20a)](_0x4e82ac);}),this['_univerInstanceService'][_0x2a38cc(0x1e0)](_0x457ba8['UniverInstanceType']['UNIVER_SHEET'])[_0x2a38cc(0x1b2)](_0x1c91c9[_0x2a38cc(0x192)](this[_0x2a38cc(0x13d)]))[_0x2a38cc(0x12b)](_0x291c6a=>{var _0x1d7706=_0x2a38cc;const _0x277f88=_0x291c6a['getUnitId'](),_0x565cfc=this[_0x1d7706(0x15d)][_0x1d7706(0x181)](_0x277f88);_0x565cfc==null||_0x565cfc[_0x1d7706(0x16f)]();});}async[_0x4e5a84(0x20a)](_0x39c099){var _0x58e50d=_0x4e5a84;const _0x4f98a1=await this[_0x58e50d(0x176)][_0x58e50d(0x18a)](_0x39c099),_0xc4efe8=this[_0x58e50d(0x155)][_0x58e50d(0x1df)](_0x4283c3[_0x58e50d(0x1b1)],_0x39c099,_0x4f98a1);return _0xc4efe8[_0x58e50d(0x18c)](),this['_entities'][_0x58e50d(0x124)](_0x39c099,_0xc4efe8),_0xc4efe8;}},_0x4283c3[_0x4e5a84(0x1ed)]=_0x4275d4([_0x6feff1(0x0,_0x457ba8[_0x4e5a84(0x149)]),_0x6feff1(0x1,_0x457ba8[_0x4e5a84(0x13c)](_0x457ba8['Injector'])),_0x6feff1(0x2,_0x457ba8['Inject'](_0xa185a6[_0x4e5a84(0x197)]))],_0x4283c3[_0x4e5a84(0x1ed)]);var _0x28fff0=(_0x1c409e=>(_0x1c409e['OFFLINE']=_0x4e5a84(0x173),_0x1c409e[_0x4e5a84(0x186)]=_0x4e5a84(0x123),_0x1c409e[_0x4e5a84(0x209)]=_0x4e5a84(0x1f6),_0x1c409e[_0x4e5a84(0x1b3)]=_0x4e5a84(0x1e4),_0x1c409e[_0x4e5a84(0x1d7)]='presenting',_0x1c409e))(_0x28fff0||{});const _0x2f8354='SAME_OPERATION_SHARE_INTERVAL',_0x28ca22=0xc8;_0x4283c3[_0x4e5a84(0x1b1)]=class extends _0x457ba8[_0x4e5a84(0x1ec)]{constructor(_0x31e35d,_0xffacda,_0x4f9dd7,_0xcf8ae9,_0x5d78c9){var _0x5e02aa=_0x4e5a84;super(),_0xe37336(this,_0x5e02aa(0x18f),new _0x1caf80[(_0x5e02aa(0x160))](_0x5e02aa(0x123))),_0xe37336(this,_0x5e02aa(0x141),this[_0x5e02aa(0x18f)][_0x5e02aa(0x1eb)]()),_0xe37336(this,_0x5e02aa(0x179),!0x1),_0xe37336(this,_0x5e02aa(0x17b),null),_0xe37336(this,_0x5e02aa(0x1a8),null),(this['_unitID']=_0x31e35d,this[_0x5e02aa(0x1a0)]=_0xffacda,this['_configService']=_0x4f9dd7,this['_liveShareService']=_0xcf8ae9,this[_0x5e02aa(0x122)]=_0x5d78c9);}get['_status'](){var _0x5414fd=_0x4e5a84;return this[_0x5414fd(0x18f)][_0x5414fd(0x17e)]();}[_0x4e5a84(0x16f)](){var _0xe39d8a=_0x4e5a84,_0x1c9bae;(_0x1c9bae=this[_0xe39d8a(0x17b)])==null||_0x1c9bae[_0xe39d8a(0x16f)](),this['_status$'][_0xe39d8a(0x1f9)](_0xe39d8a(0x123)),this[_0xe39d8a(0x18f)][_0xe39d8a(0x20c)]();}[_0x4e5a84(0x18c)](){var _0xe24011=_0x4e5a84;this[_0xe24011(0x179)]||(this[_0xe24011(0x179)]=!0x0,this['_collabSession']['sessionStatus$'][_0xe24011(0x1b2)](_0x1c91c9[_0xe24011(0x192)](this[_0xe24011(0x13d)]))[_0xe24011(0x12b)](_0x26f093=>{var _0x1d158a=_0xe24011;switch(_0x26f093){case _0xa185a6[_0x1d158a(0x19d)][_0x1d158a(0x1ba)]:this[_0x1d158a(0x1dd)]();break;case _0xa185a6[_0x1d158a(0x19d)]['ONLINE']:this[_0x1d158a(0x204)]();break;}}),this['_collabSession'][_0xe24011(0x18b)][_0xe24011(0x1b2)](_0x1c91c9['takeUntil'](this[_0xe24011(0x13d)]))[_0xe24011(0x12b)](_0x51b548=>{var _0x17f042=_0xe24011;const {eventID:_0x38a224}=_0x51b548;switch(_0x38a224){case _0x14b659[_0x17f042(0x1db)][_0x17f042(0x1bd)]:this[_0x17f042(0x202)](_0x51b548);break;case _0x14b659['CollaborationEvent'][_0x17f042(0x1d9)]:this[_0x17f042(0x1da)](_0x51b548);break;case _0x14b659[_0x17f042(0x1db)][_0x17f042(0x1ff)]:this['_handleTerminate']();break;case _0x14b659[_0x17f042(0x1db)][_0x17f042(0x198)]:this[_0x17f042(0x168)](_0x51b548);break;}}));}[_0x4e5a84(0x20f)](){var _0x15346d=_0x4e5a84;this[_0x15346d(0x1a0)][_0x15346d(0x1f2)]({'eventID':_0x14b659[_0x15346d(0x1db)][_0x15346d(0x1d2)],'data':{'unitID':this[_0x15346d(0x1b6)],'userID':this[_0x15346d(0x1a0)][_0x15346d(0x14f)]()}},this['_unitID']);}[_0x4e5a84(0x1aa)](){var _0x1c1a55=_0x4e5a84;this[_0x1c1a55(0x166)]===_0x1c1a55(0x187)&&(this[_0x1c1a55(0x18f)][_0x1c1a55(0x1f9)](_0x1c1a55(0x123)),this[_0x1c1a55(0x1a0)]['send']({'eventID':_0x14b659['CollaborationEvent'][_0x1c1a55(0x1ff)],'data':{'unitID':this[_0x1c1a55(0x1b6)]}},this[_0x1c1a55(0x1b6)]));}['startFollowing'](){var _0x19ebf9=_0x4e5a84;this[_0x19ebf9(0x166)]===_0x19ebf9(0x1e4)&&(this[_0x19ebf9(0x18f)]['next'](_0x19ebf9(0x1f6)),this[_0x19ebf9(0x211)]());}[_0x4e5a84(0x1fb)](){var _0x347bc3=_0x4e5a84;this[_0x347bc3(0x166)]===_0x347bc3(0x1f6)&&this[_0x347bc3(0x15a)]();}['_handleNewHost'](_0x5ca81d){var _0x234791=_0x4e5a84;const {presenter:_0x1c6ec6}=_0x5ca81d[_0x234791(0x1e7)],_0x2a1958=this['_collabSession'][_0x234791(0x14f)]();this[_0x234791(0x1a8)]=_0x1c6ec6,_0x1c6ec6===_0x2a1958?(this['_stopFollowing'](),this[_0x234791(0x19b)]()):this[_0x234791(0x166)]!==_0x234791(0x1e4)&&(this[_0x234791(0x1d1)](),this[_0x234791(0x211)]());}['_fetchOperations'](){var _0x113875=_0x4e5a84;const _0x417b20={'eventID':_0x14b659[_0x113875(0x1db)][_0x113875(0x208)]};this[_0x113875(0x1a0)][_0x113875(0x1f2)](_0x417b20,this['_unitID']);}[_0x4e5a84(0x184)](){var _0x35ce1d=_0x4e5a84;this[_0x35ce1d(0x1a8)]=null,this['_status']!==_0x35ce1d(0x187)&&this[_0x35ce1d(0x125)]();}['_handleNewChangeSets'](_0x4e01bb){var _0x2040a4=_0x4e5a84;if(this[_0x2040a4(0x166)]===_0x2040a4(0x1f6)&&this[_0x2040a4(0x1a8)]===_0x4e01bb[_0x2040a4(0x1e7)][_0x2040a4(0x1a7)]){const _0x5d9fc0=_0x14b659[_0x2040a4(0x144)](_0x4e01bb[_0x2040a4(0x1e7)])[_0x2040a4(0x15c)]['reverse']()['find'](_0x23995d=>_0x23995d['id']===_0x30d724[_0x2040a4(0x146)]['id']);if(_0x5d9fc0){const _0x2e5480=_0x5d9fc0[_0x2040a4(0x1f8)][_0x2040a4(0x1c7)],_0x3b58c5=_0x5d9fc0['params'][_0x2040a4(0x1cc)]['id'];setTimeout(()=>{var _0xb8956d=_0x2040a4;this[_0xb8956d(0x122)][_0xb8956d(0x1c4)](_0x30d724[_0xb8956d(0x13e)]['id'],{'unitId':_0x2e5480,'subUnitId':_0x3b58c5},{'fromCollab':!0x0});});}}}[_0x4e5a84(0x19b)](){var _0x4cfc68=_0x4e5a84;this[_0x4cfc68(0x18f)]['next']('presenting');const _0x187c08=new Map(),_0x45fe2b=this[_0x4cfc68(0x17b)]=new _0x457ba8[(_0x4cfc68(0x188))]();_0x45fe2b['add'](_0x457ba8[_0x4cfc68(0x1d6)](()=>{var _0x2c3f04=_0x4cfc68;_0x187c08[_0x2c3f04(0x165)](_0x2f0f20=>_0x2f0f20[_0x2c3f04(0x20c)]()),_0x187c08['clear']();})),_0x45fe2b['add'](this[_0x4cfc68(0x122)][_0x4cfc68(0x1b4)](_0x1f6aeb=>{var _0x2cd3f3=_0x4cfc68,_0x1d20a4;if(_0x1f6aeb[_0x2cd3f3(0x1d0)]!==_0x457ba8[_0x2cd3f3(0x196)]['OPERATION']||!this[_0x2cd3f3(0x172)][_0x2cd3f3(0x128)](_0x1f6aeb['id']))return;const {id:_0x3ff0a5}=_0x1f6aeb;let _0xca5860;_0x187c08[_0x2cd3f3(0x175)](_0x3ff0a5)?_0xca5860=_0x187c08['get'](_0x3ff0a5):(_0xca5860=new _0x1caf80['Subject'](),_0x187c08[_0x2cd3f3(0x124)](_0x3ff0a5,_0xca5860),_0xca5860['pipe'](_0x1c91c9[_0x2cd3f3(0x1fe)]((_0x1d20a4=this[_0x2cd3f3(0x1d5)][_0x2cd3f3(0x1a4)](_0x2f8354))!=null?_0x1d20a4:_0x28ca22,void 0x0,{'trailing':!0x0,'leading':!0x0}))[_0x2cd3f3(0x12b)](_0xe6d125=>{var _0x2bdd74=_0x2cd3f3;this['_collabSession'][_0x2bdd74(0x1f2)]({'eventID':_0x14b659[_0x2bdd74(0x1db)][_0x2bdd74(0x1d9)],'data':{'unitID':this[_0x2bdd74(0x1b6)],'operations':{[_0xe6d125['id']]:{'id':_0xe6d125['id'],'params':JSON[_0x2bdd74(0x1e8)](_0xe6d125[_0x2bdd74(0x1f8)])}}}},this[_0x2bdd74(0x1b6)]);})),_0xca5860['next'](_0x1f6aeb);})),this['_liveShareService']['getInitialStates'](this['_unitID'])['forEach'](_0x3125fe=>this[_0x4cfc68(0x1a0)]['send']({'eventID':_0x14b659[_0x4cfc68(0x1db)][_0x4cfc68(0x1d9)],'data':{'unitID':this['_unitID'],'operations':{[_0x3125fe['id']]:{'id':_0x3125fe['id'],'params':JSON[_0x4cfc68(0x1e8)](_0x3125fe['params'])}}}},this[_0x4cfc68(0x1b6)]));}[_0x4e5a84(0x1d1)](){var _0x172102=_0x4e5a84,_0x39f1b1;this[_0x172102(0x18f)][_0x172102(0x1f9)](_0x172102(0x123)),(_0x39f1b1=this[_0x172102(0x17b)])==null||_0x39f1b1[_0x172102(0x16f)](),this[_0x172102(0x17b)]=null;}[_0x4e5a84(0x211)](){var _0x4c4d7c=_0x4e5a84,_0x54eab8;(_0x54eab8=this[_0x4c4d7c(0x17b)])==null||_0x54eab8[_0x4c4d7c(0x16f)](),this[_0x4c4d7c(0x18f)][_0x4c4d7c(0x1f9)]('following');}['_beIdle'](){var _0x481038=_0x4e5a84,_0x508f52;this['_status$'][_0x481038(0x1f9)](_0x481038(0x123)),(_0x508f52=this[_0x481038(0x17b)])==null||_0x508f52[_0x481038(0x16f)](),this['_commandDisposable']=null;}['_stopFollowing'](){var _0x2bd92e=_0x4e5a84,_0x55c3ad;this[_0x2bd92e(0x18f)][_0x2bd92e(0x1f9)](_0x2bd92e(0x1e4)),(_0x55c3ad=this[_0x2bd92e(0x17b)])==null||_0x55c3ad['dispose']();}[_0x4e5a84(0x1da)](_0x53d2cd){var _0x381359=_0x4e5a84;if(['presenting','not-following',_0x381359(0x173)][_0x381359(0x1bb)](this['_status'])||!_0x53d2cd[_0x381359(0x1e7)]['presenter']||_0x53d2cd[_0x381359(0x1e7)][_0x381359(0x161)]===this[_0x381359(0x1a0)]['getMemberID']())return;this[_0x381359(0x166)]===_0x381359(0x123)&&this[_0x381359(0x211)]();const _0x37b6ab=_0x53d2cd[_0x381359(0x1e7)][_0x381359(0x152)];Object[_0x381359(0x18d)](_0x37b6ab)[_0x381359(0x165)](_0x2754d4=>{var _0x2bad93=_0x381359;this['_commandService'][_0x2bad93(0x1c4)](_0x2754d4['id'],_0x2754d4['params']?JSON['parse'](_0x2754d4[_0x2bad93(0x1f8)]):null,{'fromCollab':!0x0});});}[_0x4e5a84(0x1dd)](){var _0x4863ec=_0x4e5a84,_0x1798c7;this[_0x4863ec(0x18f)][_0x4863ec(0x1f9)]('offline'),(_0x1798c7=this[_0x4863ec(0x17b)])==null||_0x1798c7[_0x4863ec(0x16f)]();}[_0x4e5a84(0x204)](){var _0x10fdf3=_0x4e5a84;this[_0x10fdf3(0x18f)][_0x10fdf3(0x1f9)](_0x10fdf3(0x123)),this['_fetchOperations']();}},_0x4283c3['LiveShareCoordinator']=_0x4275d4([_0x6feff1(0x2,_0x457ba8[_0x4e5a84(0x180)]),_0x6feff1(0x3,_0x457ba8[_0x4e5a84(0x13c)](_0xe7b1f9)),_0x6feff1(0x4,_0x457ba8[_0x4e5a84(0x1a5)])],_0x4283c3[_0x4e5a84(0x1b1)]);function _0x51dbb0(){var _0x53f328=_0x4e5a84;const _0x36ea7b=_0x4ed24c[_0x53f328(0x17a)](_0x4283c3[_0x53f328(0x1ed)]),_0x28135b=_0x4ed24c['useDependency'](_0x457ba8[_0x53f328(0x149)]),_0x3f8820=_0x4ed24c[_0x53f328(0x1cf)](()=>_0x28135b['getCurrentTypeOfUnit$'](_0x457ba8[_0x53f328(0x1e1)][_0x53f328(0x126)]),void 0x0,!0x1,[]),[_0x1e246f,_0xc4e962]=_0x646ae3['useState'](null),[_0x550ead,_0x2e5504]=_0x646ae3[_0x53f328(0x199)](_0x28fff0[_0x53f328(0x186)]),_0x2ba6e2=_0x646ae3[_0x53f328(0x14b)](null);return _0x646ae3[_0x53f328(0x1a6)](()=>(_0x3f8820&&_0x36ea7b[_0x53f328(0x1ac)](_0x3f8820[_0x53f328(0x1fa)]())[_0x53f328(0x13f)](_0x6ef5=>{var _0x5a5ba2=_0x53f328;_0xc4e962(_0x6ef5),_0x2ba6e2[_0x5a5ba2(0x1e3)]=_0x6ef5[_0x5a5ba2(0x141)][_0x5a5ba2(0x12b)](_0x713f85=>{_0x2e5504(_0x713f85);});}),()=>{var _0x17b258=_0x53f328,_0x4bf73c;(_0x4bf73c=_0x2ba6e2[_0x17b258(0x1e3)])==null||_0x4bf73c['unsubscribe'](),_0x2ba6e2[_0x17b258(0x1e3)]=null;}),[_0x3f8820,_0x36ea7b]),_0x1e246f?_0x266ae0[_0x53f328(0x194)](_0x4d8cc3[_0x53f328(0x171)],{'align':'end','disabled':_0x550ead===_0x28fff0[_0x53f328(0x1ba)],'className':_0x53f328(0x205),'overlay':_0x266ae0[_0x53f328(0x194)](_0xb681b0,{'status':_0x550ead,'coordinator':_0x1e246f}),'children':_0x266ae0['jsx'](_0x53f328(0x1af),{'className':_0x4d8cc3[_0x53f328(0x127)](_0x53f328(0x1cd),{'univer-cursor-not-allowed':_0x550ead===_0x28fff0['OFFLINE'],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x550ead!==_0x28fff0[_0x53f328(0x1ba)]}),'type':_0x53f328(0x1af),'children':_0x266ae0[_0x53f328(0x194)](_0x3a4854,{'className':_0x53f328(0x19c)})})}):null;}function _0xb681b0(_0xcb37bb){var _0x5e9682=_0x4e5a84;const {status:_0x131329,coordinator:_0x4c1d96}=_0xcb37bb;switch(_0x131329){case _0x28fff0[_0x5e9682(0x186)]:return _0x266ae0['jsx'](_0x3e2404,{'coordinator':_0x4c1d96});case _0x28fff0[_0x5e9682(0x209)]:return _0x266ae0[_0x5e9682(0x194)](_0x1967e5,{'coordinator':_0x4c1d96});case _0x28fff0[_0x5e9682(0x1b3)]:return _0x266ae0[_0x5e9682(0x194)](_0x40a338,{'coordinator':_0x4c1d96});case _0x28fff0['OFFLINE']:return _0x266ae0['jsx'](_0x3a3ce2,{});case _0x28fff0[_0x5e9682(0x1d7)]:return _0x266ae0[_0x5e9682(0x194)](_0x340694,{'coordinator':_0x4c1d96});default:return null;}}function _0x3e2404(_0x293032){var _0x41f0cb=_0x4e5a84;const {coordinator:_0x55043c}=_0x293032;return _0x266ae0[_0x41f0cb(0x147)](_0x266ae0['Fragment'],{'children':[_0x266ae0[_0x41f0cb(0x194)](_0x41f0cb(0x182),{'className':_0x41f0cb(0x1ad),'children':_0x41f0cb(0x150)}),_0x266ae0[_0x41f0cb(0x194)](_0x4d8cc3[_0x41f0cb(0x1ab)],{'onClick':()=>_0x55043c[_0x41f0cb(0x20f)](),'children':_0x41f0cb(0x193)})]});}function _0x1967e5(_0x24b21a){var _0x52e33c=_0x4e5a84;const {coordinator:_0x100af1}=_0x24b21a;return _0x266ae0['jsxs'](_0x266ae0[_0x52e33c(0x183)],{'children':[_0x266ae0[_0x52e33c(0x194)](_0x52e33c(0x182),{'className':_0x52e33c(0x1ad),'children':_0x52e33c(0x12d)}),_0x266ae0[_0x52e33c(0x194)](_0x4d8cc3['Button'],{'onClick':()=>_0x100af1[_0x52e33c(0x1fb)](),'children':_0x52e33c(0x1be)})]});}function _0x40a338(_0x10f385){var _0x24505f=_0x4e5a84;const {coordinator:_0x16d46d}=_0x10f385;return _0x266ae0[_0x24505f(0x147)](_0x266ae0[_0x24505f(0x183)],{'children':[_0x266ae0[_0x24505f(0x194)](_0x24505f(0x182),{'className':_0x24505f(0x1ad),'children':_0x24505f(0x12f)}),_0x266ae0[_0x24505f(0x194)](_0x4d8cc3[_0x24505f(0x1ab)],{'variant':'text','onClick':()=>_0x16d46d[_0x24505f(0x121)](),'children':_0x24505f(0x14e)})]});}function _0x340694(_0x5d1cc8){var _0x4901f5=_0x4e5a84;const {coordinator:_0x4c3a31}=_0x5d1cc8;return _0x266ae0[_0x4901f5(0x147)](_0x266ae0[_0x4901f5(0x183)],{'children':[_0x266ae0[_0x4901f5(0x194)](_0x4901f5(0x182),{'className':_0x4901f5(0x1ad),'children':_0x4901f5(0x139)}),_0x266ae0['jsx'](_0x4d8cc3[_0x4901f5(0x1ab)],{'variant':_0x4901f5(0x1e9),'onClick':()=>_0x4c3a31[_0x4901f5(0x1aa)](),'children':'Stop\x20presenting'})]});}function _0x3a3ce2(){var _0x2fc94d=_0x4e5a84;return _0x266ae0['jsx'](_0x266ae0[_0x2fc94d(0x183)],{'children':'You\x27are\x20offline.'});}var _0x297e8b=Object['getOwnPropertyDescriptor'],_0x16bd84=(_0x58b78f,_0x228fe9,_0x599d52,_0x53b737)=>{for(var _0x149454=_0x53b737>0x1?void 0x0:_0x53b737?_0x297e8b(_0x228fe9,_0x599d52):_0x228fe9,_0x580ff8=_0x58b78f['length']-0x1,_0x1973e2;_0x580ff8>=0x0;_0x580ff8--)(_0x1973e2=_0x58b78f[_0x580ff8])&&(_0x149454=_0x1973e2(_0x149454)||_0x149454);return _0x149454;},_0x14ca9a=(_0x34be82,_0x1bf783)=>(_0xaafc2e,_0x145477)=>_0x1bf783(_0xaafc2e,_0x145477,_0x34be82);_0x4283c3[_0x4e5a84(0x1c1)]=class extends _0x457ba8[_0x4e5a84(0x1d8)]{constructor(_0x1ff2e8,_0x242cee){var _0x383049=_0x4e5a84;super(),this[_0x383049(0x155)]=_0x1ff2e8,this[_0x383049(0x137)]=_0x242cee,this[_0x383049(0x134)]();}[_0x4e5a84(0x134)](){var _0x8fa15=_0x4e5a84;this['disposeWithMe'](this['_uiPartsService']['registerComponent'](_0x4ed24c[_0x8fa15(0x214)][_0x8fa15(0x138)],()=>_0x4ed24c[_0x8fa15(0x200)](_0x51dbb0,this[_0x8fa15(0x155)])));}},_0x4283c3[_0x4e5a84(0x1c1)]=_0x16bd84([_0x14ca9a(0x0,_0x457ba8[_0x4e5a84(0x13c)](_0x457ba8[_0x4e5a84(0x1e2)])),_0x14ca9a(0x1,_0x4ed24c[_0x4e5a84(0x1c8)])],_0x4283c3[_0x4e5a84(0x1c1)]);var _0x19b546=Object[_0x4e5a84(0x16c)],_0x436e71=Object['getOwnPropertyDescriptor'],_0x2cd963=(_0x4666d9,_0x1feea2,_0x49fb1d)=>_0x1feea2 in _0x4666d9?_0x19b546(_0x4666d9,_0x1feea2,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x49fb1d}):_0x4666d9[_0x1feea2]=_0x49fb1d,_0x467b5b=(_0x27ce2e,_0x5942f4,_0x24d674,_0x10c0f6)=>{var _0x12e936=_0x4e5a84;for(var _0x117905=_0x10c0f6>0x1?void 0x0:_0x10c0f6?_0x436e71(_0x5942f4,_0x24d674):_0x5942f4,_0x577335=_0x27ce2e[_0x12e936(0x157)]-0x1,_0x1a550c;_0x577335>=0x0;_0x577335--)(_0x1a550c=_0x27ce2e[_0x577335])&&(_0x117905=_0x1a550c(_0x117905)||_0x117905);return _0x117905;},_0x1bf226=(_0x447b67,_0x17b8f7)=>(_0x462329,_0x543025)=>_0x17b8f7(_0x462329,_0x543025,_0x447b67),_0x24c2a6=(_0x326ef9,_0x5ec768,_0x275eff)=>_0x2cd963(_0x326ef9,typeof _0x5ec768!='symbol'?_0x5ec768+'':_0x5ec768,_0x275eff);const _0x4f10b6='UNIVER_LIVE_SHARE_PLUGIN';_0x4283c3[_0x4e5a84(0x151)]=class extends _0x457ba8['Plugin']{constructor(_0xbb2f82=_0x286e71,_0x554017,_0x22600a){var _0x27c7ef=_0x4e5a84;super(),this[_0x27c7ef(0x1ef)]=_0xbb2f82,this[_0x27c7ef(0x155)]=_0x554017,this[_0x27c7ef(0x1d5)]=_0x22600a;const {..._0x484441}=_0x457ba8[_0x27c7ef(0x1bf)]({},_0x286e71,this[_0x27c7ef(0x1ef)]);this[_0x27c7ef(0x1d5)][_0x27c7ef(0x1f4)](_0xe02570,_0x484441);}[_0x4e5a84(0x140)](){var _0x59df72=_0x4e5a84;_0x457ba8[_0x59df72(0x1ea)](this['_injector'],_0x457ba8['mergeOverrideWithDependencies']([[_0xe7b1f9],[_0x4283c3[_0x59df72(0x1ed)]],[_0x4783ce],[_0x4283c3[_0x59df72(0x1c1)]]],this[_0x59df72(0x1ef)][_0x59df72(0x189)])),_0x457ba8[_0x59df72(0x14a)](this[_0x59df72(0x155)],[[_0x4783ce]]);}[_0x4e5a84(0x201)](){var _0x1ef8bb=_0x4e5a84;_0x457ba8[_0x1ef8bb(0x14a)](this[_0x1ef8bb(0x155)],[[_0x4283c3['DesktopLiveShareController']]]);}},_0x24c2a6(_0x4283c3['UniverLiveSharePlugin'],_0x4e5a84(0x1d0),_0x457ba8[_0x4e5a84(0x1e1)]['UNIVER_UNKNOWN']),_0x24c2a6(_0x4283c3[_0x4e5a84(0x151)],'pluginName',_0x4f10b6),_0x4283c3[_0x4e5a84(0x151)]=_0x467b5b([_0x457ba8[_0x4e5a84(0x1fc)](_0xa185a6[_0x4e5a84(0x1bc)]),_0x1bf226(0x1,_0x457ba8[_0x4e5a84(0x13c)](_0x457ba8[_0x4e5a84(0x1e2)])),_0x1bf226(0x2,_0x457ba8[_0x4e5a84(0x180)])],_0x4283c3[_0x4e5a84(0x151)]),_0x4283c3[_0x4e5a84(0x1b9)]=_0x51dbb0,_0x4283c3[_0x4e5a84(0x13a)]=_0xe7b1f9,_0x4283c3[_0x4e5a84(0x133)]=_0x28fff0,Object[_0x4e5a84(0x16c)](_0x4283c3,Symbol[_0x4e5a84(0x13b)],{'value':_0x4e5a84(0x164)});}));function _0x16ae(){var _0x5ef3e2=['IConfigService','get','div','Fragment','_handleTerminate','_reporters','IDLE','presenting','DisposableCollection','override','requireSession','event$','init','values','defIds','_status$','registerSharedOperation','1em','takeUntil','Start','jsx','1165325cRxFJd','CommandType','CollaborationSessionService','NEW_CHANGESETS','useState','UniverCore','_startPresenting','univer-size-4','SessionStatus','_univerInstanceService','live-share.config','_collabSession','add','operators','@univerjs/design','getConfig','ICommandService','useEffect','memberID','_presenter','6533440AUemHH','stopPresenting','Button','getLiveShareCoordinator','univer-w-full\x20univer-mb-3\x20univer-text-sm','react/jsx-runtime','button','UniverSheetsUi','LiveShareCoordinator','pipe','NOT_FOLLOWING','onCommandExecuted','evenodd','_unitID','forwardRef','42UXrJHY','LiveShare','OFFLINE','includes','UniverCollaborationClientPlugin','LIVESHARE_NEW_HOST','Stop\x20following','merge','rxjs','DesktopLiveShareController','colorChannel1','indexOf','executeCommand','concat','substring','unitId','IUIPartsService','univerjs-icon\x20univerjs-icon-','1532492kMNONp','getOwnPropertySymbols','sheet','univer-outline-none\x20univer-text-gray-600\x20univer-border-none','SetZoomRatioOperation','useObservable','type','_stopPresenting','LIVESHARE_REQUEST_HOST','children','react','_configService','toDisposable','PRESENTING','Disposable','LIVESHARE_OPERATION','_handleOperation','CollaborationEvent','icon','_handleOffline','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','createInstance','getTypeOfUnitDisposed$','UniverInstanceType','Injector','current','not-following','LiveShareIcon','from','data','stringify','default','registerDependencies','asObservable','RxDisposable','LiveShareController','React','_config','url(#$1','displayName','send','@univerjs/sheets','setConfig','@univerjs/core','following','@univerjs/sheets-ui','params','next','getUnitId','stopFollowing','DependentOn','getOwnPropertyDescriptor','throttleTime','LIVESHARE_TERMINATE','connectInjector','onRendered','_handleNewHost','mask','_handleOnline','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','toString','@univerjs/ui','LIVESHARE_FETCH_OPERATIONS','FOLLOWING','_startLiveShareCoordinator','attrs','complete','2905mQlHdr','symbol','tryStartPresenting','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','_startFollowing','getTypeOfUnitAdded$','entries','BuiltInUIPart','startFollowing','_commandService','idle','set','_beIdle','UNIVER_SHEET','clsx','shouldShareOperation','51758EXMJba','25642BAICbI','subscribe','xlink:href','You\x27re\x20following\x20the\x20presenter','createElement','You\x27re\x20not\x20following\x20the\x20presenter','6JJmiTg','idSuffix','getInitialStates','LiveShareStatus','_mountLiveShare','prototype','393896WNxYfo','_uiPartsService','HEADER_MENU','You\x27re\x20presenting\x20the\x20document','LiveShareService','toStringTag','Inject','dispose$','SetWorksheetActiveOperation','then','onStarting','status$','_sharedOperations','function','parseProtocolChangeset','string','InsertSheetMutation','jsxs','call','IUniverInstanceService','touchDependencies','useRef','extend','none','Start\x20following','getMemberID','Present\x20this\x20document','UniverLiveSharePlugin','operations','defs','tag','_injector','0\x200\x2017\x2017','length','exports','assign','_stopFollowing','delete','mutations','_entities','className','hasOwnProperty','BehaviorSubject','presenter','trim','apply','Module','forEach','_status','live-share-icon','_handleNewChangeSets','replace','propertyIsEnumerable','18EdIXMl','defineProperty','@univerjs-pro/collaboration','@univerjs-pro/collaboration-client','dispose','registerInitialStateReporter','Dropdown','_liveShareService','offline','UniverUi','has','_collabSessionService','map','rxjs/operators','_init','useDependency','_commandDisposable','currentColor','path','getValue','fill'];_0x16ae=function(){return _0x5ef3e2;};return _0x16ae();}
1
+ function _0x436d(){var _0x5ee7d5=['getCurrentTypeOfUnit$','get','LiveShareCoordinator','presenting','createElement','_collabSession','executeCommand','Start','has','defIds','7534496OiQOwg','getOwnPropertySymbols','currentColor','colorChannel1','pluginName','React','then','prototype','Stop\x20presenting','NOT_FOLLOWING','_injector','_handleNewHost','assign','displayName','takeUntil','params','_stopFollowing','clear','57BzAkuj','_handleOperation','presenter','subscribe','startFollowing','_startPresenting','live-share.config','status$','extend','throttleTime','attrs','getTypeOfUnitDisposed$','following','24BzXRAr','UniverDesign','@univerjs-pro/collaboration-client','from','parse','disposeWithMe','_handleTerminate','concat','_unitID','memberID','forwardRef','url(#$1','_fetchOperations','rxjs','string','_startFollowing','CollaborationEvent','DesktopLiveShareController','6309259OtzHuE','Stop\x20following','xlink:href','onRendered','Fragment','_reporters','useDependency','svg','InsertSheetMutation','getValue','symbol','set','UniverLiveSharePlugin','_init','add','useState','tryStartPresenting','@univerjs/sheets','PRESENTING','Button','getInitialStates','LiveShareStatus','stopPresenting','UniverProLiveShare','_handleNewChangeSets','pipe','react/jsx-runtime','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','_handleOffline','unitId','indexOf','includes','_commandDisposable','LiveShare','touchDependencies','univerjs-icon\x20univerjs-icon-','defs','UniverUi','ICommandService','complete','unsubscribe','IUniverInstanceService','_uiPartsService','className','registerSharedOperation','DependentOn','getOwnPropertyDescriptor','Disposable','length','Injector','idSuffix','UniverProCollaborationClient','current','event$','merge','button','@univerjs/sheets-ui','div','IUIPartsService','useRef','propertyIsEnumerable','Start\x20following','Plugin','getTypeOfUnitAdded$','OPERATION','1809438xXIlCL','2357050yRsXen','_status','NEW_CHANGESETS','_liveShareService','IDLE','idle','550775GurYoe','_entities','LiveShareController','@univerjs/core','data','react','replace','mutations','14eIOaEp','toDisposable','default','override','Subject','SessionStatus','values','fill','none','jsx','substring','_presenter','entries','shouldShareOperation','_configService','ONLINE','toStringTag','use','univer-w-full\x20univer-mb-3\x20univer-text-sm','248048kdOLnh','@univerjs/design','offline','Present\x20this\x20document','_commandService','_status$','SAME_OPERATION_SHARE_INTERVAL','operators','call','_config','icon','setConfig','exports','mask','@univerjs-pro/collaboration','trim','_startLiveShareCoordinator','73258OozRin','jsxs','onCommandExecuted','tag','getUnitId','forEach','useObservable','evenodd','stringify','registerInitialStateReporter','getConfig','next','http://www.w3.org/2000/svg','LIVESHARE_TERMINATE','sheet','Dropdown','UNIVER_LIVE_SHARE_PLUGIN','_handleOnline','9idGhkw','rxjs/operators','You\x27re\x20presenting\x20the\x20document','You\x27are\x20offline.','SetScrollOperation','children','LIVESHARE_FETCH_OPERATIONS','_beIdle','live-share-icon','dispose$','not-following','CommandType','toString','HEADER_MENU','CollaborationSessionService','UniverProCollaboration','univer-size-4','parseProtocolChangeset','requireSession','init','UniverSheets','delete','LIVESHARE_OPERATION','0\x200\x2017\x2017','_collabSessionService','Module','OFFLINE','getMemberID','hasOwnProperty','_sharedOperations','registerComponent','You\x27re\x20following\x20the\x20presenter','stopFollowing','map','defineProperty','@univerjs/ui','BehaviorSubject','connectInjector','1em','type','UniverInstanceType','28VBTEoF','You\x27re\x20not\x20following\x20the\x20presenter','IConfigService','UNIVER_SHEET','UniverIcon','send','getLiveShareCoordinator','Inject','dispose','DisposableCollection','UniverCore','apply','createInstance','SetWorksheetActiveOperation'];_0x436d=function(){return _0x5ee7d5;};return _0x436d();}function _0x37fa(_0x868c3a,_0xf0572b){var _0x436d88=_0x436d();return _0x37fa=function(_0x37fa67,_0x2a24c7){_0x37fa67=_0x37fa67-0xca;var _0x3a7dcc=_0x436d88[_0x37fa67];return _0x3a7dcc;},_0x37fa(_0x868c3a,_0xf0572b);}(function(_0x2a53ce,_0x542902){var _0x27420e=_0x37fa,_0x186686=_0x2a53ce();while(!![]){try{var _0x2dda7e=parseInt(_0x27420e(0x134))/0x1+parseInt(_0x27420e(0x145))/0x2*(-parseInt(_0x27420e(0x1aa))/0x3)+parseInt(_0x27420e(0x180))/0x4*(-parseInt(_0x27420e(0x119))/0x5)+-parseInt(_0x27420e(0x112))/0x6*(parseInt(_0x27420e(0x121))/0x7)+-parseInt(_0x27420e(0x198))/0x8*(-parseInt(_0x27420e(0x157))/0x9)+parseInt(_0x27420e(0x113))/0xa+-parseInt(_0x27420e(0xd1))/0xb*(-parseInt(_0x27420e(0x1b7))/0xc);if(_0x2dda7e===_0x542902)break;else _0x186686['push'](_0x186686['shift']());}catch(_0xc4243d){_0x186686['push'](_0x186686['shift']());}}}(_0x436d,0x7aaf9),function(_0x5aa92c,_0x5bba74){var _0x237cfe=_0x37fa;typeof exports=='object'&&typeof module<'u'?_0x5bba74(exports,require(_0x237cfe(0x1b9)),require('@univerjs/core'),require(_0x237cfe(0xe2)),require(_0x237cfe(0x109)),require(_0x237cfe(0x17a)),require(_0x237cfe(0xeb)),require(_0x237cfe(0x135)),require(_0x237cfe(0x11e)),require(_0x237cfe(0x142)),require(_0x237cfe(0xcc)),require(_0x237cfe(0x158))):typeof define=='function'&&define['amd']?define([_0x237cfe(0x140),_0x237cfe(0x1b9),_0x237cfe(0x11c),_0x237cfe(0xe2),_0x237cfe(0x109),_0x237cfe(0x17a),'react/jsx-runtime','@univerjs/design',_0x237cfe(0x11e),'@univerjs-pro/collaboration','rxjs',_0x237cfe(0x158)],_0x5bba74):(_0x5aa92c=typeof globalThis<'u'?globalThis:_0x5aa92c||self,_0x5bba74(_0x5aa92c[_0x237cfe(0xe8)]={},_0x5aa92c[_0x237cfe(0x104)],_0x5aa92c[_0x237cfe(0x18a)],_0x5aa92c[_0x237cfe(0x16b)],_0x5aa92c['UniverSheetsUi'],_0x5aa92c[_0x237cfe(0xf6)],_0x5aa92c[_0x237cfe(0x19d)],_0x5aa92c[_0x237cfe(0x1b8)],_0x5aa92c[_0x237cfe(0x19d)],_0x5aa92c[_0x237cfe(0x166)],_0x5aa92c[_0x237cfe(0xcc)],_0x5aa92c['rxjs'][_0x237cfe(0x13b)]));}(this,function(_0x565b9d,_0x30c176,_0x1036c4,_0x6b5b,_0x31fb7b,_0x42a8f4,_0x30007c,_0x3f92b9,_0xcbca53,_0xfcf66,_0x978848,_0x483d17){'use strict';var _0x543230=_0x37fa;var _0x5e12e0=Object[_0x543230(0x179)],_0x42ac7c=(_0x9acc61,_0x45eede,_0x3a14bd)=>_0x45eede in _0x9acc61?_0x5e12e0(_0x9acc61,_0x45eede,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3a14bd}):_0x9acc61[_0x45eede]=_0x3a14bd,_0xabe042=(_0x9c9abf,_0x50739a,_0x217ea7)=>_0x42ac7c(_0x9c9abf,typeof _0x50739a!=_0x543230(0xdb)?_0x50739a+'':_0x50739a,_0x217ea7);const _0x5991ee=_0x543230(0x1b0),_0x4e279d={};class _0x50f0d8 extends _0x1036c4[_0x543230(0x100)]{constructor(){var _0x7738de=_0x543230;super(...arguments),_0xabe042(this,'_sharedOperations',new Set()),_0xabe042(this,_0x7738de(0xd6),new Set());}[_0x543230(0xfd)](_0x2abe9b){var _0x14b8b4=_0x543230;return this[_0x14b8b4(0x174)][_0x14b8b4(0xdf)](_0x2abe9b),_0x1036c4[_0x14b8b4(0x122)](()=>this[_0x14b8b4(0x174)]['delete'](_0x2abe9b));}[_0x543230(0x14e)](_0x3fc766){var _0x582a84=_0x543230;return this['_reporters'][_0x582a84(0xdf)](_0x3fc766),_0x1036c4[_0x582a84(0x122)](()=>this[_0x582a84(0xd6)][_0x582a84(0x16c)](_0x3fc766));}[_0x543230(0x12e)](_0x580e92){var _0x53a30b=_0x543230;return this[_0x53a30b(0x174)][_0x53a30b(0x196)](_0x580e92);}[_0x543230(0xe5)](_0x37285b){var _0x5b18b=_0x543230;return Array[_0x5b18b(0x1ba)](this[_0x5b18b(0xd6)])[_0x5b18b(0x178)](_0x59f51d=>_0x59f51d(_0x37285b));}}var _0x49729c=Object['getOwnPropertyDescriptor'],_0x4d3f7b=(_0x307752,_0x48f7e7,_0x3ae835,_0x21d072)=>{var _0x2d3b3a=_0x543230;for(var _0x8ef2c6=_0x21d072>0x1?void 0x0:_0x21d072?_0x49729c(_0x48f7e7,_0x3ae835):_0x48f7e7,_0x434231=_0x307752[_0x2d3b3a(0x101)]-0x1,_0x4b0ffe;_0x434231>=0x0;_0x434231--)(_0x4b0ffe=_0x307752[_0x434231])&&(_0x8ef2c6=_0x4b0ffe(_0x8ef2c6)||_0x8ef2c6);return _0x8ef2c6;},_0x3123e4=(_0x1b60b1,_0x2e2c32)=>(_0x3d271e,_0x4eca26)=>_0x2e2c32(_0x3d271e,_0x4eca26,_0x1b60b1);let _0xff3e31=class extends _0x1036c4['Disposable']{constructor(_0x47b602){var _0x15655a=_0x543230;super(),this[_0x15655a(0x116)]=_0x47b602,this[_0x15655a(0xde)]();}[_0x543230(0xde)](){var _0x2593f0=_0x543230;[_0x31fb7b['SetZoomRatioOperation']['id'],_0x31fb7b[_0x2593f0(0x15b)]['id'],_0x6b5b[_0x2593f0(0x18d)]['id']][_0x2593f0(0x14a)](_0x2314d7=>{var _0x3798b5=_0x2593f0;this[_0x3798b5(0x1bc)](this[_0x3798b5(0x116)]['registerSharedOperation'](_0x2314d7));});}};_0xff3e31=_0x4d3f7b([_0x3123e4(0x0,_0x1036c4[_0x543230(0x187)](_0x50f0d8))],_0xff3e31);var _0x1bcaeb=function(){var _0x244087=_0x543230;return _0x1bcaeb=Object[_0x244087(0x1a4)]||function(_0x178a94){var _0x3ec711=_0x244087;for(var _0x1bedab,_0x3a0c88=0x1,_0x2d9309=arguments[_0x3ec711(0x101)];_0x3a0c88<_0x2d9309;_0x3a0c88++){_0x1bedab=arguments[_0x3a0c88];for(var _0x287419 in _0x1bedab)Object['prototype'][_0x3ec711(0x173)][_0x3ec711(0x13c)](_0x1bedab,_0x287419)&&(_0x178a94[_0x287419]=_0x1bedab[_0x287419]);}return _0x178a94;},_0x1bcaeb[_0x244087(0x18b)](this,arguments);},_0x21a89a=function(_0x164acf,_0x33a84d){var _0x42886e=_0x543230,_0x3765f6={};for(var _0x1735c2 in _0x164acf)Object[_0x42886e(0x19f)][_0x42886e(0x173)][_0x42886e(0x13c)](_0x164acf,_0x1735c2)&&_0x33a84d[_0x42886e(0xef)](_0x1735c2)<0x0&&(_0x3765f6[_0x1735c2]=_0x164acf[_0x1735c2]);if(_0x164acf!=null&&typeof Object[_0x42886e(0x199)]=='function'){for(var _0x4fc011=0x0,_0x1735c2=Object[_0x42886e(0x199)](_0x164acf);_0x4fc011<_0x1735c2['length'];_0x4fc011++)_0x33a84d[_0x42886e(0xef)](_0x1735c2[_0x4fc011])<0x0&&Object[_0x42886e(0x19f)][_0x42886e(0x10d)][_0x42886e(0x13c)](_0x164acf,_0x1735c2[_0x4fc011])&&(_0x3765f6[_0x1735c2[_0x4fc011]]=_0x164acf[_0x1735c2[_0x4fc011]]);}return _0x3765f6;},_0x221589=_0xcbca53[_0x543230(0x1c1)](function(_0x41c59d,_0x33c32e){var _0x53e2c7=_0x543230,_0x19dcf0=_0x41c59d['icon'],_0x856411=_0x41c59d['id'],_0x254a68=_0x41c59d[_0x53e2c7(0xfc)],_0x4bf3bc=_0x41c59d[_0x53e2c7(0x1b2)],_0x3e30b6=_0x21a89a(_0x41c59d,[_0x53e2c7(0x13e),'id','className',_0x53e2c7(0x1b2)]),_0x42b105=_0x53e2c7(0xf4)[_0x53e2c7(0x1be)](_0x856411,'\x20')[_0x53e2c7(0x1be)](_0x254a68||'')[_0x53e2c7(0x143)](),_0x239761=_0xcbca53[_0x53e2c7(0x10c)]('_'['concat'](_0x42e3e3()));return _0x4ec5a0(_0x19dcf0,''[_0x53e2c7(0x1be)](_0x856411),{'defIds':_0x19dcf0[_0x53e2c7(0x197)],'idSuffix':_0x239761[_0x53e2c7(0x105)]},_0x1bcaeb({'ref':_0x33c32e,'className':_0x42b105},_0x3e30b6),_0x4bf3bc);});function _0x4ec5a0(_0x18285f,_0x224c77,_0x187b14,_0x510f8d,_0x4d50b0){var _0x52f4be=_0x543230;return _0xcbca53['createElement'](_0x18285f[_0x52f4be(0x148)],_0x1bcaeb(_0x1bcaeb({'key':_0x224c77},_0x2d1c5f(_0x18285f,_0x187b14,_0x4d50b0)),_0x510f8d),(_0x333ad5(_0x18285f,_0x187b14)[_0x52f4be(0x15c)]||[])[_0x52f4be(0x178)](function(_0xac0dbc,_0x14fc74){var _0x23af83=_0x52f4be;return _0x4ec5a0(_0xac0dbc,''[_0x23af83(0x1be)](_0x224c77,'-')['concat'](_0x18285f[_0x23af83(0x148)],'-')[_0x23af83(0x1be)](_0x14fc74),_0x187b14,void 0x0,_0x4d50b0);}));}function _0x2d1c5f(_0x4890f1,_0x385bbe,_0x50ef07){var _0x2ba85a=_0x543230,_0x3ca035=_0x1bcaeb({},_0x4890f1[_0x2ba85a(0x1b4)]);_0x50ef07!=null&&_0x50ef07['colorChannel1']&&_0x3ca035[_0x2ba85a(0x128)]===_0x2ba85a(0x19b)&&(_0x3ca035[_0x2ba85a(0x128)]=_0x50ef07[_0x2ba85a(0x19b)]),_0x4890f1['tag']===_0x2ba85a(0x141)&&_0x3ca035['id']&&(_0x3ca035['id']=_0x3ca035['id']+_0x385bbe['idSuffix']),Object[_0x2ba85a(0x12d)](_0x3ca035)['forEach'](function(_0x2d2a04){var _0x5ca871=_0x2ba85a,_0x437796=_0x2d2a04[0x0],_0x13d351=_0x2d2a04[0x1];_0x437796==='mask'&&typeof _0x13d351==_0x5ca871(0xcd)&&(_0x3ca035[_0x437796]=_0x13d351[_0x5ca871(0x11f)](/url\(#(.*)\)/,_0x5ca871(0xca)[_0x5ca871(0x1be)](_0x385bbe['idSuffix'],')')));});var _0x1863a7=_0x385bbe[_0x2ba85a(0x197)];return!_0x1863a7||_0x1863a7[_0x2ba85a(0x101)]===0x0||(_0x4890f1[_0x2ba85a(0x148)]===_0x2ba85a(0x132)&&_0x3ca035['xlink:href']&&(_0x3ca035[_0x2ba85a(0xd3)]=_0x3ca035[_0x2ba85a(0xd3)]+_0x385bbe[_0x2ba85a(0x103)]),Object[_0x2ba85a(0x12d)](_0x3ca035)[_0x2ba85a(0x14a)](function(_0x564741){var _0x1d9c04=_0x2ba85a,_0x2169de=_0x564741[0x0],_0x382c13=_0x564741[0x1];typeof _0x382c13==_0x1d9c04(0xcd)&&(_0x3ca035[_0x2169de]=_0x382c13[_0x1d9c04(0x11f)](/url\(#(.*)\)/,'url(#$1'[_0x1d9c04(0x1be)](_0x385bbe[_0x1d9c04(0x103)],')')));})),_0x3ca035;}function _0x333ad5(_0x5723ea,_0x244bc3){var _0x2d91c3=_0x543230,_0x3886f1,_0x27aebf=_0x244bc3[_0x2d91c3(0x197)];return!_0x27aebf||_0x27aebf[_0x2d91c3(0x101)]===0x0?_0x5723ea:_0x5723ea[_0x2d91c3(0x148)]===_0x2d91c3(0xf5)&&(!((_0x3886f1=_0x5723ea['children'])===null||_0x3886f1===void 0x0)&&_0x3886f1[_0x2d91c3(0x101)])?_0x1bcaeb(_0x1bcaeb({},_0x5723ea),{'children':_0x5723ea[_0x2d91c3(0x15c)]['map'](function(_0x3c51a4){var _0x522883=_0x2d91c3;return typeof _0x3c51a4[_0x522883(0x1b4)]['id']==_0x522883(0xcd)&&_0x27aebf&&_0x27aebf[_0x522883(0xf0)](_0x3c51a4[_0x522883(0x1b4)]['id'])?_0x1bcaeb(_0x1bcaeb({},_0x3c51a4),{'attrs':_0x1bcaeb(_0x1bcaeb({},_0x3c51a4[_0x522883(0x1b4)]),{'id':_0x3c51a4[_0x522883(0x1b4)]['id']+_0x244bc3['idSuffix']})}):_0x3c51a4;})}):_0x5723ea;}function _0x42e3e3(){var _0x3e2538=_0x543230;return Math['random']()[_0x3e2538(0x163)](0x24)[_0x3e2538(0x12b)](0x2,0x8);}_0x221589[_0x543230(0x1a5)]=_0x543230(0x184);var _0x118035={'tag':_0x543230(0xd8),'attrs':{'xmlns':_0x543230(0x151),'fill':_0x543230(0x129),'viewBox':_0x543230(0x16e),'width':_0x543230(0x17d),'height':_0x543230(0x17d)},'children':[{'tag':'path','attrs':{'fill':_0x543230(0x19a),'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':_0x543230(0x19a),'d':_0x543230(0xec),'fillRule':_0x543230(0x14c),'clipRule':_0x543230(0x14c)}}]},_0x57962a=_0xcbca53['forwardRef'](function(_0x490d28,_0x19efb){var _0xed070c=_0x543230;return _0xcbca53[_0xed070c(0x192)](_0x221589,Object['assign']({},_0x490d28,{'id':_0xed070c(0x15f),'ref':_0x19efb,'icon':_0x118035}));});_0x57962a[_0x543230(0x1a5)]='LiveShareIcon';var _0x53dac3=Object['getOwnPropertyDescriptor'],_0x42fc35=(_0x958701,_0xfba911,_0x5b1d10,_0x2b1d32)=>{var _0x370c4e=_0x543230;for(var _0x4c43d4=_0x2b1d32>0x1?void 0x0:_0x2b1d32?_0x53dac3(_0xfba911,_0x5b1d10):_0xfba911,_0x1cc35b=_0x958701[_0x370c4e(0x101)]-0x1,_0x2518b3;_0x1cc35b>=0x0;_0x1cc35b--)(_0x2518b3=_0x958701[_0x1cc35b])&&(_0x4c43d4=_0x2518b3(_0x4c43d4)||_0x4c43d4);return _0x4c43d4;},_0x592f3d=(_0x385796,_0x32a0a6)=>(_0x4f8339,_0x381139)=>_0x32a0a6(_0x4f8339,_0x381139,_0x385796);_0x565b9d[_0x543230(0x11b)]=class extends _0x1036c4['RxDisposable']{constructor(_0x44106c,_0x5dbdfa,_0x131a5e){var _0x36560a=_0x543230;super(),_0xabe042(this,'_entities',new Map()),(this['_univerInstanceService']=_0x44106c,this[_0x36560a(0x1a2)]=_0x5dbdfa,this[_0x36560a(0x16f)]=_0x131a5e,this[_0x36560a(0xde)]());}async[_0x543230(0x186)](_0x4fab6a){var _0x1c8451=_0x543230;return this[_0x1c8451(0x11a)]['has'](_0x4fab6a)||await this[_0x1c8451(0x144)](_0x4fab6a),this[_0x1c8451(0x11a)]['get'](_0x4fab6a);}[_0x543230(0xde)](){var _0x78dd34=_0x543230;this['_univerInstanceService'][_0x78dd34(0x110)](_0x1036c4[_0x78dd34(0x17f)][_0x78dd34(0x183)])[_0x78dd34(0xea)](_0x483d17[_0x78dd34(0x1a6)](this[_0x78dd34(0x160)]))[_0x78dd34(0x1ad)](async _0x59d97b=>{var _0x4b373d=_0x78dd34;const _0x2d8710=_0x59d97b[_0x4b373d(0x149)]();this[_0x4b373d(0x11a)][_0x4b373d(0x196)](_0x2d8710)||this[_0x4b373d(0x144)](_0x2d8710);}),this['_univerInstanceService'][_0x78dd34(0x1b5)](_0x1036c4[_0x78dd34(0x17f)][_0x78dd34(0x183)])[_0x78dd34(0xea)](_0x483d17[_0x78dd34(0x1a6)](this[_0x78dd34(0x160)]))['subscribe'](_0x33e140=>{var _0x25a39d=_0x78dd34;const _0x5ee613=_0x33e140['getUnitId'](),_0x2524d4=this[_0x25a39d(0x11a)]['get'](_0x5ee613);_0x2524d4==null||_0x2524d4['dispose']();});}async[_0x543230(0x144)](_0x340d78){var _0x3cbc3e=_0x543230;const _0x1a2d0c=await this[_0x3cbc3e(0x16f)][_0x3cbc3e(0x169)](_0x340d78),_0x55b320=this[_0x3cbc3e(0x1a2)][_0x3cbc3e(0x18c)](_0x565b9d[_0x3cbc3e(0x190)],_0x340d78,_0x1a2d0c);return _0x55b320['init'](),this[_0x3cbc3e(0x11a)]['set'](_0x340d78,_0x55b320),_0x55b320;}},_0x565b9d[_0x543230(0x11b)]=_0x42fc35([_0x592f3d(0x0,_0x1036c4[_0x543230(0xfa)]),_0x592f3d(0x1,_0x1036c4['Inject'](_0x1036c4[_0x543230(0x102)])),_0x592f3d(0x2,_0x1036c4[_0x543230(0x187)](_0x30c176[_0x543230(0x165)]))],_0x565b9d[_0x543230(0x11b)]);var _0x1b37f6=(_0x1d60c8=>(_0x1d60c8['OFFLINE']=_0x543230(0x136),_0x1d60c8['IDLE']=_0x543230(0x118),_0x1d60c8['FOLLOWING']=_0x543230(0x1b6),_0x1d60c8[_0x543230(0x1a1)]='not-following',_0x1d60c8[_0x543230(0xe3)]=_0x543230(0x191),_0x1d60c8))(_0x1b37f6||{});const _0x10e68b=_0x543230(0x13a),_0x426489=0xc8;_0x565b9d['LiveShareCoordinator']=class extends _0x1036c4['RxDisposable']{constructor(_0x1546ab,_0x2e422a,_0x1a08e8,_0x37f176,_0x6fca2f){var _0x526763=_0x543230;super(),_0xabe042(this,_0x526763(0x139),new _0x978848[(_0x526763(0x17b))](_0x526763(0x118))),_0xabe042(this,_0x526763(0x1b1),this[_0x526763(0x139)]['asObservable']()),_0xabe042(this,'_init',!0x1),_0xabe042(this,_0x526763(0xf1),null),_0xabe042(this,_0x526763(0x12c),null),(this[_0x526763(0x1bf)]=_0x1546ab,this[_0x526763(0x193)]=_0x2e422a,this[_0x526763(0x12f)]=_0x1a08e8,this[_0x526763(0x116)]=_0x37f176,this[_0x526763(0x138)]=_0x6fca2f);}get['_status'](){var _0x4a472d=_0x543230;return this[_0x4a472d(0x139)][_0x4a472d(0xda)]();}[_0x543230(0x188)](){var _0x5611b5=_0x543230,_0x4291a1;(_0x4291a1=this[_0x5611b5(0xf1)])==null||_0x4291a1[_0x5611b5(0x188)](),this[_0x5611b5(0x139)][_0x5611b5(0x150)](_0x5611b5(0x118)),this[_0x5611b5(0x139)][_0x5611b5(0xf8)]();}[_0x543230(0x16a)](){var _0x2b9a4c=_0x543230;this[_0x2b9a4c(0xde)]||(this[_0x2b9a4c(0xde)]=!0x0,this[_0x2b9a4c(0x193)]['sessionStatus$']['pipe'](_0x483d17[_0x2b9a4c(0x1a6)](this[_0x2b9a4c(0x160)]))[_0x2b9a4c(0x1ad)](_0x187fb8=>{var _0x35a244=_0x2b9a4c;switch(_0x187fb8){case _0x30c176[_0x35a244(0x126)][_0x35a244(0x171)]:this[_0x35a244(0xed)]();break;case _0x30c176[_0x35a244(0x126)][_0x35a244(0x130)]:this[_0x35a244(0x156)]();break;}}),this['_collabSession'][_0x2b9a4c(0x106)][_0x2b9a4c(0xea)](_0x483d17[_0x2b9a4c(0x1a6)](this['dispose$']))[_0x2b9a4c(0x1ad)](_0x9610fd=>{var _0x57a6f3=_0x2b9a4c;const {eventID:_0x44836a}=_0x9610fd;switch(_0x44836a){case _0xfcf66[_0x57a6f3(0xcf)]['LIVESHARE_NEW_HOST']:this[_0x57a6f3(0x1a3)](_0x9610fd);break;case _0xfcf66[_0x57a6f3(0xcf)][_0x57a6f3(0x16d)]:this[_0x57a6f3(0x1ab)](_0x9610fd);break;case _0xfcf66['CollaborationEvent'][_0x57a6f3(0x152)]:this[_0x57a6f3(0x1bd)]();break;case _0xfcf66[_0x57a6f3(0xcf)][_0x57a6f3(0x115)]:this[_0x57a6f3(0xe9)](_0x9610fd);break;}}));}[_0x543230(0xe1)](){var _0x42a850=_0x543230;this[_0x42a850(0x193)][_0x42a850(0x185)]({'eventID':_0xfcf66[_0x42a850(0xcf)]['LIVESHARE_REQUEST_HOST'],'data':{'unitID':this['_unitID'],'userID':this['_collabSession'][_0x42a850(0x172)]()}},this['_unitID']);}['stopPresenting'](){var _0x527f49=_0x543230;this['_status']===_0x527f49(0x191)&&(this['_status$'][_0x527f49(0x150)](_0x527f49(0x118)),this[_0x527f49(0x193)][_0x527f49(0x185)]({'eventID':_0xfcf66[_0x527f49(0xcf)][_0x527f49(0x152)],'data':{'unitID':this[_0x527f49(0x1bf)]}},this['_unitID']));}[_0x543230(0x1ae)](){var _0xe822a4=_0x543230;this[_0xe822a4(0x114)]==='not-following'&&(this['_status$'][_0xe822a4(0x150)]('following'),this[_0xe822a4(0xce)]());}['stopFollowing'](){var _0x439843=_0x543230;this[_0x439843(0x114)]===_0x439843(0x1b6)&&this[_0x439843(0x1a8)]();}[_0x543230(0x1a3)](_0x4599f8){var _0x2fc713=_0x543230;const {presenter:_0x5d9048}=_0x4599f8[_0x2fc713(0x11d)],_0x4b161d=this[_0x2fc713(0x193)][_0x2fc713(0x172)]();this[_0x2fc713(0x12c)]=_0x5d9048,_0x5d9048===_0x4b161d?(this[_0x2fc713(0x1a8)](),this['_startPresenting']()):this[_0x2fc713(0x114)]!=='not-following'&&(this['_stopPresenting'](),this[_0x2fc713(0xce)]());}[_0x543230(0xcb)](){var _0x12c77c=_0x543230;const _0x12c6ca={'eventID':_0xfcf66[_0x12c77c(0xcf)][_0x12c77c(0x15d)]};this[_0x12c77c(0x193)][_0x12c77c(0x185)](_0x12c6ca,this[_0x12c77c(0x1bf)]);}[_0x543230(0x1bd)](){var _0x113e75=_0x543230;this[_0x113e75(0x12c)]=null,this[_0x113e75(0x114)]!==_0x113e75(0x191)&&this[_0x113e75(0x15e)]();}[_0x543230(0xe9)](_0x39c9ab){var _0x3483d1=_0x543230;if(this['_status']===_0x3483d1(0x1b6)&&this[_0x3483d1(0x12c)]===_0x39c9ab['data'][_0x3483d1(0x1c0)]){const _0x5a5370=_0xfcf66[_0x3483d1(0x168)](_0x39c9ab[_0x3483d1(0x11d)])[_0x3483d1(0x120)]['reverse']()['find'](_0x2f86cf=>_0x2f86cf['id']===_0x6b5b[_0x3483d1(0xd9)]['id']);if(_0x5a5370){const _0x2bb471=_0x5a5370['params'][_0x3483d1(0xee)],_0x66d006=_0x5a5370[_0x3483d1(0x1a7)][_0x3483d1(0x153)]['id'];setTimeout(()=>{var _0x519b49=_0x3483d1;this[_0x519b49(0x138)][_0x519b49(0x194)](_0x6b5b[_0x519b49(0x18d)]['id'],{'unitId':_0x2bb471,'subUnitId':_0x66d006},{'fromCollab':!0x0});});}}}[_0x543230(0x1af)](){var _0x3a15e3=_0x543230;this[_0x3a15e3(0x139)][_0x3a15e3(0x150)](_0x3a15e3(0x191));const _0x5008a5=new Map(),_0x1acf26=this[_0x3a15e3(0xf1)]=new _0x1036c4[(_0x3a15e3(0x189))]();_0x1acf26[_0x3a15e3(0xdf)](_0x1036c4['toDisposable'](()=>{var _0x169880=_0x3a15e3;_0x5008a5[_0x169880(0x14a)](_0x3f8f92=>_0x3f8f92[_0x169880(0xf8)]()),_0x5008a5[_0x169880(0x1a9)]();})),_0x1acf26['add'](this[_0x3a15e3(0x138)][_0x3a15e3(0x147)](_0x26d0d3=>{var _0x4b6e81=_0x3a15e3,_0x5a7063;if(_0x26d0d3[_0x4b6e81(0x17e)]!==_0x1036c4[_0x4b6e81(0x162)][_0x4b6e81(0x111)]||!this[_0x4b6e81(0x116)]['shouldShareOperation'](_0x26d0d3['id']))return;const {id:_0x1048fa}=_0x26d0d3;let _0x5dd920;_0x5008a5[_0x4b6e81(0x196)](_0x1048fa)?_0x5dd920=_0x5008a5[_0x4b6e81(0x18f)](_0x1048fa):(_0x5dd920=new _0x978848[(_0x4b6e81(0x125))](),_0x5008a5[_0x4b6e81(0xdc)](_0x1048fa,_0x5dd920),_0x5dd920[_0x4b6e81(0xea)](_0x483d17[_0x4b6e81(0x1b3)]((_0x5a7063=this[_0x4b6e81(0x12f)][_0x4b6e81(0x14f)](_0x10e68b))!=null?_0x5a7063:_0x426489,void 0x0,{'trailing':!0x0,'leading':!0x0}))['subscribe'](_0x28dc9c=>{var _0xbdc4b0=_0x4b6e81;this[_0xbdc4b0(0x193)][_0xbdc4b0(0x185)]({'eventID':_0xfcf66['CollaborationEvent'][_0xbdc4b0(0x16d)],'data':{'unitID':this[_0xbdc4b0(0x1bf)],'operations':{[_0x28dc9c['id']]:{'id':_0x28dc9c['id'],'params':JSON[_0xbdc4b0(0x14d)](_0x28dc9c['params'])}}}},this[_0xbdc4b0(0x1bf)]);})),_0x5dd920[_0x4b6e81(0x150)](_0x26d0d3);})),this['_liveShareService'][_0x3a15e3(0xe5)](this[_0x3a15e3(0x1bf)])[_0x3a15e3(0x14a)](_0x575727=>this[_0x3a15e3(0x193)][_0x3a15e3(0x185)]({'eventID':_0xfcf66[_0x3a15e3(0xcf)][_0x3a15e3(0x16d)],'data':{'unitID':this[_0x3a15e3(0x1bf)],'operations':{[_0x575727['id']]:{'id':_0x575727['id'],'params':JSON[_0x3a15e3(0x14d)](_0x575727[_0x3a15e3(0x1a7)])}}}},this[_0x3a15e3(0x1bf)]));}['_stopPresenting'](){var _0x33c77f=_0x543230,_0x156987;this[_0x33c77f(0x139)]['next'](_0x33c77f(0x118)),(_0x156987=this[_0x33c77f(0xf1)])==null||_0x156987[_0x33c77f(0x188)](),this[_0x33c77f(0xf1)]=null;}[_0x543230(0xce)](){var _0x1897d9=_0x543230,_0x50884c;(_0x50884c=this[_0x1897d9(0xf1)])==null||_0x50884c['dispose'](),this[_0x1897d9(0x139)][_0x1897d9(0x150)]('following');}[_0x543230(0x15e)](){var _0x26ba26=_0x543230,_0x139c7c;this[_0x26ba26(0x139)]['next'](_0x26ba26(0x118)),(_0x139c7c=this['_commandDisposable'])==null||_0x139c7c[_0x26ba26(0x188)](),this[_0x26ba26(0xf1)]=null;}[_0x543230(0x1a8)](){var _0x312e2f=_0x543230,_0x18b540;this[_0x312e2f(0x139)][_0x312e2f(0x150)](_0x312e2f(0x161)),(_0x18b540=this[_0x312e2f(0xf1)])==null||_0x18b540[_0x312e2f(0x188)]();}['_handleOperation'](_0x1ea257){var _0x299b0f=_0x543230;if([_0x299b0f(0x191),'not-following',_0x299b0f(0x136)][_0x299b0f(0xf0)](this[_0x299b0f(0x114)])||!_0x1ea257[_0x299b0f(0x11d)][_0x299b0f(0x1ac)]||_0x1ea257[_0x299b0f(0x11d)][_0x299b0f(0x1ac)]===this[_0x299b0f(0x193)][_0x299b0f(0x172)]())return;this['_status']===_0x299b0f(0x118)&&this[_0x299b0f(0xce)]();const _0x6665a9=_0x1ea257[_0x299b0f(0x11d)]['operations'];Object[_0x299b0f(0x127)](_0x6665a9)['forEach'](_0x4325d5=>{var _0x550117=_0x299b0f;this[_0x550117(0x138)]['executeCommand'](_0x4325d5['id'],_0x4325d5[_0x550117(0x1a7)]?JSON[_0x550117(0x1bb)](_0x4325d5[_0x550117(0x1a7)]):null,{'fromCollab':!0x0});});}[_0x543230(0xed)](){var _0x1e3d41=_0x543230,_0x50c9c1;this['_status$'][_0x1e3d41(0x150)](_0x1e3d41(0x136)),(_0x50c9c1=this['_commandDisposable'])==null||_0x50c9c1[_0x1e3d41(0x188)]();}['_handleOnline'](){var _0x4343f3=_0x543230;this['_status$'][_0x4343f3(0x150)]('idle'),this[_0x4343f3(0xcb)]();}},_0x565b9d['LiveShareCoordinator']=_0x42fc35([_0x592f3d(0x2,_0x1036c4[_0x543230(0x182)]),_0x592f3d(0x3,_0x1036c4[_0x543230(0x187)](_0x50f0d8)),_0x592f3d(0x4,_0x1036c4[_0x543230(0xf7)])],_0x565b9d['LiveShareCoordinator']);function _0x4819eb(){var _0x4932e7=_0x543230;const _0xf2dbd4=_0x42a8f4[_0x4932e7(0xd7)](_0x565b9d[_0x4932e7(0x11b)]),_0x5b4b8f=_0x42a8f4['useDependency'](_0x1036c4[_0x4932e7(0xfa)]),_0x3b6f18=_0x42a8f4[_0x4932e7(0x14b)](()=>_0x5b4b8f[_0x4932e7(0x18e)](_0x1036c4['UniverInstanceType'][_0x4932e7(0x183)]),void 0x0,!0x1,[]),[_0x308a51,_0x4bbe5c]=_0xcbca53[_0x4932e7(0xe0)](null),[_0x56171f,_0x40932a]=_0xcbca53[_0x4932e7(0xe0)](_0x1b37f6[_0x4932e7(0x117)]),_0x4585eb=_0xcbca53['useRef'](null);return _0xcbca53['useEffect'](()=>(_0x3b6f18&&_0xf2dbd4[_0x4932e7(0x186)](_0x3b6f18['getUnitId']())[_0x4932e7(0x19e)](_0x1ccf3a=>{var _0x47af24=_0x4932e7;_0x4bbe5c(_0x1ccf3a),_0x4585eb[_0x47af24(0x105)]=_0x1ccf3a['status$']['subscribe'](_0x275dac=>{_0x40932a(_0x275dac);});}),()=>{var _0x53086c=_0x4932e7,_0x1b12c8;(_0x1b12c8=_0x4585eb[_0x53086c(0x105)])==null||_0x1b12c8[_0x53086c(0xf9)](),_0x4585eb[_0x53086c(0x105)]=null;}),[_0x3b6f18,_0xf2dbd4]),_0x308a51?_0x30007c[_0x4932e7(0x12a)](_0x3f92b9[_0x4932e7(0x154)],{'align':'end','disabled':_0x56171f===_0x1b37f6['OFFLINE'],'className':'univer-box-border\x20univer-min-w-60\x20univer-px-4\x20univer-py-3\x20univer-bg-gray-900\x20univer-text-gray-900\x20dark:!univer-text-white\x20dark:!univer-bg-white','overlay':_0x30007c['jsx'](_0x102854,{'status':_0x56171f,'coordinator':_0x308a51}),'children':_0x30007c[_0x4932e7(0x12a)](_0x4932e7(0x108),{'className':_0x3f92b9['clsx']('univer-outline-none\x20univer-text-gray-600\x20univer-border-none',{'univer-cursor-not-allowed':_0x56171f===_0x1b37f6[_0x4932e7(0x171)],'univer-cursor-pointer\x20hover:univer-bg-gray-400':_0x56171f!==_0x1b37f6[_0x4932e7(0x171)]}),'type':_0x4932e7(0x108),'children':_0x30007c[_0x4932e7(0x12a)](_0x57962a,{'className':_0x4932e7(0x167)})})}):null;}function _0x102854(_0x1de96f){var _0x325759=_0x543230;const {status:_0x45a3bb,coordinator:_0x32811a}=_0x1de96f;switch(_0x45a3bb){case _0x1b37f6['IDLE']:return _0x30007c[_0x325759(0x12a)](_0x3c9c49,{'coordinator':_0x32811a});case _0x1b37f6['FOLLOWING']:return _0x30007c[_0x325759(0x12a)](_0x24abf9,{'coordinator':_0x32811a});case _0x1b37f6['NOT_FOLLOWING']:return _0x30007c[_0x325759(0x12a)](_0x387bc2,{'coordinator':_0x32811a});case _0x1b37f6[_0x325759(0x171)]:return _0x30007c[_0x325759(0x12a)](_0x1dd38f,{});case _0x1b37f6[_0x325759(0xe3)]:return _0x30007c['jsx'](_0x189a5f,{'coordinator':_0x32811a});default:return null;}}function _0x3c9c49(_0x46d494){var _0x22ad8e=_0x543230;const {coordinator:_0x19beb9}=_0x46d494;return _0x30007c[_0x22ad8e(0x146)](_0x30007c[_0x22ad8e(0xd5)],{'children':[_0x30007c['jsx'](_0x22ad8e(0x10a),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x22ad8e(0x137)}),_0x30007c[_0x22ad8e(0x12a)](_0x3f92b9[_0x22ad8e(0xe4)],{'onClick':()=>_0x19beb9[_0x22ad8e(0xe1)](),'children':_0x22ad8e(0x195)})]});}function _0x24abf9(_0x56dafb){var _0x57499a=_0x543230;const {coordinator:_0x38299c}=_0x56dafb;return _0x30007c[_0x57499a(0x146)](_0x30007c[_0x57499a(0xd5)],{'children':[_0x30007c['jsx'](_0x57499a(0x10a),{'className':_0x57499a(0x133),'children':_0x57499a(0x176)}),_0x30007c[_0x57499a(0x12a)](_0x3f92b9[_0x57499a(0xe4)],{'onClick':()=>_0x38299c[_0x57499a(0x177)](),'children':_0x57499a(0xd2)})]});}function _0x387bc2(_0x4885e5){var _0xcd02af=_0x543230;const {coordinator:_0x5aae4c}=_0x4885e5;return _0x30007c['jsxs'](_0x30007c[_0xcd02af(0xd5)],{'children':[_0x30007c[_0xcd02af(0x12a)](_0xcd02af(0x10a),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0xcd02af(0x181)}),_0x30007c[_0xcd02af(0x12a)](_0x3f92b9['Button'],{'variant':'text','onClick':()=>_0x5aae4c[_0xcd02af(0x1ae)](),'children':_0xcd02af(0x10e)})]});}function _0x189a5f(_0x307da6){var _0x1a24f5=_0x543230;const {coordinator:_0x5c11c0}=_0x307da6;return _0x30007c['jsxs'](_0x30007c['Fragment'],{'children':[_0x30007c[_0x1a24f5(0x12a)](_0x1a24f5(0x10a),{'className':'univer-w-full\x20univer-mb-3\x20univer-text-sm','children':_0x1a24f5(0x159)}),_0x30007c[_0x1a24f5(0x12a)](_0x3f92b9[_0x1a24f5(0xe4)],{'variant':_0x1a24f5(0x123),'onClick':()=>_0x5c11c0[_0x1a24f5(0xe7)](),'children':_0x1a24f5(0x1a0)})]});}function _0x1dd38f(){var _0x283a7e=_0x543230;return _0x30007c[_0x283a7e(0x12a)](_0x30007c[_0x283a7e(0xd5)],{'children':_0x283a7e(0x15a)});}var _0xe05321=Object[_0x543230(0xff)],_0x4b5716=(_0x55b308,_0x2c6bc2,_0xfb9a4a,_0x1bf91d)=>{for(var _0xeb4007=_0x1bf91d>0x1?void 0x0:_0x1bf91d?_0xe05321(_0x2c6bc2,_0xfb9a4a):_0x2c6bc2,_0x102e26=_0x55b308['length']-0x1,_0x1ae276;_0x102e26>=0x0;_0x102e26--)(_0x1ae276=_0x55b308[_0x102e26])&&(_0xeb4007=_0x1ae276(_0xeb4007)||_0xeb4007);return _0xeb4007;},_0x20de6d=(_0x6083f,_0x44e4a2)=>(_0x1d7445,_0x1aaaa1)=>_0x44e4a2(_0x1d7445,_0x1aaaa1,_0x6083f);_0x565b9d[_0x543230(0xd0)]=class extends _0x1036c4['Disposable']{constructor(_0x4d55af,_0x47a9c7){var _0x2f1fa2=_0x543230;super(),this[_0x2f1fa2(0x1a2)]=_0x4d55af,this[_0x2f1fa2(0xfb)]=_0x47a9c7,this['_mountLiveShare']();}['_mountLiveShare'](){var _0x2087e7=_0x543230;this['disposeWithMe'](this['_uiPartsService'][_0x2087e7(0x175)](_0x42a8f4['BuiltInUIPart'][_0x2087e7(0x164)],()=>_0x42a8f4[_0x2087e7(0x17c)](_0x4819eb,this[_0x2087e7(0x1a2)])));}},_0x565b9d[_0x543230(0xd0)]=_0x4b5716([_0x20de6d(0x0,_0x1036c4[_0x543230(0x187)](_0x1036c4[_0x543230(0x102)])),_0x20de6d(0x1,_0x42a8f4[_0x543230(0x10b)])],_0x565b9d[_0x543230(0xd0)]);var _0x582e0f=Object[_0x543230(0x179)],_0x617bfb=Object[_0x543230(0xff)],_0x31a484=(_0x5931aa,_0x25db84,_0x4e9deb)=>_0x25db84 in _0x5931aa?_0x582e0f(_0x5931aa,_0x25db84,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e9deb}):_0x5931aa[_0x25db84]=_0x4e9deb,_0x4e1dfe=(_0x197b76,_0x6e59cb,_0x3d8265,_0x8f2c9e)=>{var _0x9c8cf9=_0x543230;for(var _0x4ec800=_0x8f2c9e>0x1?void 0x0:_0x8f2c9e?_0x617bfb(_0x6e59cb,_0x3d8265):_0x6e59cb,_0x32d688=_0x197b76[_0x9c8cf9(0x101)]-0x1,_0x1cec52;_0x32d688>=0x0;_0x32d688--)(_0x1cec52=_0x197b76[_0x32d688])&&(_0x4ec800=_0x1cec52(_0x4ec800)||_0x4ec800);return _0x4ec800;},_0x4b20f7=(_0x26d5e1,_0x1d584a)=>(_0x3942d0,_0x198778)=>_0x1d584a(_0x3942d0,_0x198778,_0x26d5e1),_0x2359e0=(_0x2703a3,_0x4643f4,_0x480951)=>_0x31a484(_0x2703a3,typeof _0x4643f4!=_0x543230(0xdb)?_0x4643f4+'':_0x4643f4,_0x480951);const _0x332cea=_0x543230(0x155);_0x565b9d['UniverLiveSharePlugin']=class extends _0x1036c4[_0x543230(0x10f)]{constructor(_0x15357c=_0x4e279d,_0x14f1e2,_0x20e8fd){var _0x44aa05=_0x543230;super(),this[_0x44aa05(0x13d)]=_0x15357c,this[_0x44aa05(0x1a2)]=_0x14f1e2,this['_configService']=_0x20e8fd;const {..._0x2dd3ad}=_0x1036c4[_0x44aa05(0x107)]({},_0x4e279d,this['_config']);this[_0x44aa05(0x12f)][_0x44aa05(0x13f)](_0x5991ee,_0x2dd3ad);}['onStarting'](){var _0x46aca1=_0x543230;_0x1036c4['registerDependencies'](this[_0x46aca1(0x1a2)],_0x1036c4['mergeOverrideWithDependencies']([[_0x50f0d8],[_0x565b9d[_0x46aca1(0x11b)]],[_0xff3e31],[_0x565b9d[_0x46aca1(0xd0)]]],this[_0x46aca1(0x13d)][_0x46aca1(0x124)])),_0x1036c4[_0x46aca1(0xf3)](this[_0x46aca1(0x1a2)],[[_0xff3e31]]);}[_0x543230(0xd4)](){var _0xa5ebbf=_0x543230;_0x1036c4['touchDependencies'](this[_0xa5ebbf(0x1a2)],[[_0x565b9d[_0xa5ebbf(0xd0)]]]);}},_0x2359e0(_0x565b9d['UniverLiveSharePlugin'],_0x543230(0x17e),_0x1036c4[_0x543230(0x17f)]['UNIVER_UNKNOWN']),_0x2359e0(_0x565b9d[_0x543230(0xdd)],_0x543230(0x19c),_0x332cea),_0x565b9d[_0x543230(0xdd)]=_0x4e1dfe([_0x1036c4[_0x543230(0xfe)](_0x30c176['UniverCollaborationClientPlugin']),_0x4b20f7(0x1,_0x1036c4[_0x543230(0x187)](_0x1036c4[_0x543230(0x102)])),_0x4b20f7(0x2,_0x1036c4[_0x543230(0x182)])],_0x565b9d['UniverLiveSharePlugin']),_0x565b9d[_0x543230(0xf2)]=_0x4819eb,_0x565b9d['LiveShareService']=_0x50f0d8,_0x565b9d[_0x543230(0xe6)]=_0x1b37f6,Object[_0x543230(0x179)](_0x565b9d,Symbol[_0x543230(0x131)],{'value':_0x543230(0x170)});}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@univerjs-pro/live-share",
3
- "version": "0.8.0-nightly.202506081606",
3
+ "version": "0.8.0-nightly.202506091607",
4
4
  "private": false,
5
5
  "description": "UniverSheet normal ui-plugin-sheets",
6
6
  "author": "DreamNum <developer@univer.ai>",
@@ -47,13 +47,13 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@univerjs/icons": "^0.4.4",
50
- "@univerjs-pro/collaboration": "0.8.0-nightly.202506081606",
51
- "@univerjs-pro/collaboration-client": "0.8.0-nightly.202506081606",
52
- "@univerjs/core": "0.8.0-nightly.202506081606",
53
- "@univerjs/sheets": "0.8.0-nightly.202506081606",
54
- "@univerjs/design": "0.8.0-nightly.202506081606",
55
- "@univerjs/sheets-ui": "0.8.0-nightly.202506081606",
56
- "@univerjs/ui": "0.8.0-nightly.202506081606"
50
+ "@univerjs-pro/collaboration": "0.8.0-nightly.202506091607",
51
+ "@univerjs-pro/collaboration-client": "0.8.0-nightly.202506091607",
52
+ "@univerjs/core": "0.8.0-nightly.202506091607",
53
+ "@univerjs/sheets": "0.8.0-nightly.202506091607",
54
+ "@univerjs/design": "0.8.0-nightly.202506091607",
55
+ "@univerjs/sheets-ui": "0.8.0-nightly.202506091607",
56
+ "@univerjs/ui": "0.8.0-nightly.202506091607"
57
57
  },
58
58
  "devDependencies": {
59
59
  "postcss": "^8.5.4",
@@ -63,8 +63,8 @@
63
63
  "typescript": "^5.8.3",
64
64
  "vite": "^6.3.5",
65
65
  "vitest": "^3.2.0",
66
- "@univerjs-infra/shared": "0.8.0",
67
- "@univerjs/protocol": "0.1.47-alpha.0"
66
+ "@univerjs/protocol": "0.1.47-alpha.0",
67
+ "@univerjs-infra/shared": "0.8.0"
68
68
  },
69
69
  "scripts": {
70
70
  "test": "vitest run",